diff --git a/.gitattributes b/.gitattributes index 149a7c2ba9a6..83f99733d550 100644 --- a/.gitattributes +++ b/.gitattributes @@ -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. diff --git a/.oxlintrc.json b/.oxlintrc.json index 08499c44323b..925c19480b0b 100644 --- a/.oxlintrc.json +++ b/.oxlintrc.json @@ -188,6 +188,7 @@ "**/.sst", "**/*.d.ts", "**/sdk.gen.ts", + "packages/cli-rs/**", "packages/plugins/figma/skills/**", ".agent/**", ".agents/**", diff --git a/bun.lock b/bun.lock index 1b2c3bc98ea3..6060f9524d7a 100644 --- a/bun.lock +++ b/bun.lock @@ -170,6 +170,22 @@ "vite-plugin-solid": "catalog:", }, }, + "packages/cli-rs": { + "name": "@opencode/cli-rs", + "devDependencies": { + "@opencode/httpapi-codegen": "workspace:*", + "@opencode/plugin": "workspace:*", + "@opencode/protocol": "workspace:*", + "@opencode/tui": "workspace:*", + "@opentui/core": "catalog:", + "@opentui/solid": "catalog:", + "@tsconfig/bun": "catalog:", + "@types/bun": "catalog:", + "@typescript/native": "catalog:", + "effect": "catalog:", + "solid-js": "catalog:", + }, + }, "packages/client": { "name": "@opencode/client", "version": "2.3.0", @@ -1797,6 +1813,8 @@ "@opencode/cli": ["@opencode/cli@workspace:packages/cli"], + "@opencode/cli-rs": ["@opencode/cli-rs@workspace:packages/cli-rs"], + "@opencode/client": ["@opencode/client@workspace:packages/client"], "@opencode/codemode": ["@opencode/codemode@workspace:packages/codemode"], diff --git a/packages/cli-rs/.cargo/config.toml b/packages/cli-rs/.cargo/config.toml new file mode 100644 index 000000000000..26e926ea2d1b --- /dev/null +++ b/packages/cli-rs/.cargo/config.toml @@ -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. diff --git a/packages/cli-rs/.gitignore b/packages/cli-rs/.gitignore new file mode 100644 index 000000000000..2b133950ea34 --- /dev/null +++ b/packages/cli-rs/.gitignore @@ -0,0 +1,3 @@ +/target +/parity/out +/.opentui diff --git a/packages/cli-rs/AGENTS.md b/packages/cli-rs/AGENTS.md new file mode 100644 index 000000000000..d28367085053 --- /dev/null +++ b/packages/cli-rs/AGENTS.md @@ -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`) and linked statically. + The crate has no native library: `.cargo/config.toml` points `OPENTUI_LIB_DIR` at + `.opentui//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 ` 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 ::`, 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/-.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`. diff --git a/packages/cli-rs/Cargo.lock b/packages/cli-rs/Cargo.lock new file mode 100644 index 000000000000..fa68d1bb0356 --- /dev/null +++ b/packages/cli-rs/Cargo.lock @@ -0,0 +1,2371 @@ +# This file is automatically @generated by Cargo. +# It is not intended for manual editing. +version = 4 + +[[package]] +name = "aho-corasick" +version = "1.1.5" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "c982642fa9e8606056828ee9a8505737230110bb1099153c79efe865c59d12ba" +dependencies = [ + "memchr", +] + +[[package]] +name = "atomic-waker" +version = "1.1.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "1505bd5d3d116872e7271a6d4e16d81d0c8570876c8de68093a09ac269d8aac0" + +[[package]] +name = "autocfg" +version = "1.5.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "f2032f911046de80f0a198e0901378627c33f59ea0ac00e363d481118bd70a53" + +[[package]] +name = "base64" +version = "0.23.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "ac07cdecf99051d9a5238b80f35af32cdeba5b336e55d957b318b50137e18da5" + +[[package]] +name = "bitflags" +version = "2.13.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "3ded4057c258ba199e2d26386d3af3780957ecaee6c4ef4041c6b4b8b97c0b06" + +[[package]] +name = "block-buffer" +version = "0.12.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "d2f6c7dbe95a6ed67ad9f18e57daf93a2f034c524b99fd2b76d18fdfeb6660aa" +dependencies = [ + "hybrid-array", +] + +[[package]] +name = "bstr" +version = "1.13.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "6bb31b46c14244e20ee9984b11bf5c992b91fb6939fea616e3512c8baecdbe5f" +dependencies = [ + "memchr", + "serde_core", +] + +[[package]] +name = "bumpalo" +version = "3.20.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "72f5acc6cb2ba439de613abc23857ec3d78374d8ed5ac84e9d11336e87da8649" + +[[package]] +name = "bytes" +version = "1.12.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "fc652a48c352aef3ea3aed32080501cf3ef6ed5da78602a020c991775b0aff04" +dependencies = [ + "serde", +] + +[[package]] +name = "cc" +version = "1.11.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "375989decec1a0fa424442bed520fa12ede43a48475ce8c7417d2c69b32b5f6b" +dependencies = [ + "find-msvc-tools", + "jobserver", + "libc", + "shlex", +] + +[[package]] +name = "cfg-if" +version = "1.0.5" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "4e7648175b45a9a48536d676f68d918270699102aa8dab5496df06904c914600" + +[[package]] +name = "chacha20" +version = "0.10.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "65c35e4b699c7e15ccbe7ee35c005e4fc0a278d22238a2857e6ce2dadeda1b06" +dependencies = [ + "cfg-if", + "cpufeatures", + "rand_core", +] + +[[package]] +name = "combine" +version = "4.6.9" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "4356eba6976435498d05a311ee9fc486da3bc81c200d3f0d7dd9703b41913f92" +dependencies = [ + "bytes", + "memchr", +] + +[[package]] +name = "const-oid" +version = "0.10.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "a6ef517f0926dd24a1582492c791b6a4818a4d94e789a334894aa15b0d12f55c" + +[[package]] +name = "core-foundation" +version = "0.10.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "b2a6cd9ae233e7f62ba4e9353e81a88df7fc8a5987b8d445b4d90c879bd156f6" +dependencies = [ + "core-foundation-sys", + "libc", +] + +[[package]] +name = "core-foundation-sys" +version = "0.8.7" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "773648b94d0e5d620f64f280777445740e61fe701025087ec8b57f45c791888b" + +[[package]] +name = "cpufeatures" +version = "0.3.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "5ca28b0ae3115b884660db4118d803791fd6756b6e88f39c0f3f7859060d7566" +dependencies = [ + "libc", +] + +[[package]] +name = "crypto-common" +version = "0.2.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "ce6e4c961d6cd6c9a86db418387425e8bdeaf05b3c8bc1411e6dca4c252f1453" +dependencies = [ + "hybrid-array", +] + +[[package]] +name = "data-encoding" +version = "2.11.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "4583a4551df46e2792f82ceeac45e850d2e2d5debba0b91f102385cda5b11f06" + +[[package]] +name = "digest" +version = "0.11.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "f1dd6dbb5841937940781866fa1281a1ff7bd3bf827091440879f9994983d5c2" +dependencies = [ + "block-buffer", + "const-oid", + "crypto-common", +] + +[[package]] +name = "either" +version = "1.19.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "0e9c71c2167ca323c882b99918929403426e2373ea17242ff5653e0d5e1058be" + +[[package]] +name = "equivalent" +version = "1.0.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "00d174d5400e5e8fd687ad1049e2f578285fa914201b1af7e8b112a4546bd826" + +[[package]] +name = "errno" +version = "0.3.14" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "39cab71617ae0d63f51a36d69f866391735b51691dbda63cf6f96d042b63efeb" +dependencies = [ + "libc", + "windows-sys 0.61.2", +] + +[[package]] +name = "find-msvc-tools" +version = "0.1.15" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "1c66915cc5391097de7a2b0b972e8505aa33c0df401fd3a6811dbdb32881ba48" + +[[package]] +name = "foldhash" +version = "0.2.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "77ce24cb58228fbb8aa041425bb1050850ac19177686ea6e0f41a70416f56fdb" + +[[package]] +name = "form_urlencoded" +version = "1.2.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "cb4cb245038516f5f85277875cdaa4f7d2c9a0fa0468de06ed190163b1581fcf" +dependencies = [ + "percent-encoding", +] + +[[package]] +name = "futures-channel" +version = "0.3.34" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "b1f9e3d69d39e4862ffed03ed071a76f9a13ba1d9109d355b0f0aa6b15e393c4" +dependencies = [ + "futures-core", +] + +[[package]] +name = "futures-core" +version = "0.3.34" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "92d699e522242e69e3003b94ecc1f960f3a5e015aa7c5d7486e65ad01dd94f5e" + +[[package]] +name = "futures-io" +version = "0.3.34" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "53c0fa8157de1303bfffdaa1cc2a673bfffb60102f76b0ef4441659124373fed" + +[[package]] +name = "futures-macro" +version = "0.3.34" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "9fb9654ba8355388abeb8dcb4fc62f511300867002afc858860463bdd9fe0c44" +dependencies = [ + "proc-macro2", + "quote", + "syn 3.0.9", +] + +[[package]] +name = "futures-sink" +version = "0.3.34" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "1944426bf7d03f1d14f708785e4b33efd750b36d48a157b836b3efc15ede8e1d" + +[[package]] +name = "futures-task" +version = "0.3.34" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "cd417de3d1d015fc3bfd2b1ea46dfc7bab72ef86f1cc7cc9c78e728b34a6d1fd" + +[[package]] +name = "futures-util" +version = "0.3.34" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "0d50a92467f8ba5dd6e3ee5d4bd04d73ab2e4e1c44474a0674821dfce14b79bc" +dependencies = [ + "futures-core", + "futures-io", + "futures-macro", + "futures-sink", + "futures-task", + "memchr", + "pin-project-lite", + "slab", +] + +[[package]] +name = "getrandom" +version = "0.2.17" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "ff2abc00be7fca6ebc474524697ae276ad847ad0a6b3faa4bcb027e9a4614ad0" +dependencies = [ + "cfg-if", + "libc", + "wasi", +] + +[[package]] +name = "getrandom" +version = "0.4.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "300e883d756b2e4ec94e02791f39b04b522276138852cfc41d9fb7e904106099" +dependencies = [ + "cfg-if", + "libc", + "r-efi", + "rand_core", +] + +[[package]] +name = "hashbrown" +version = "0.17.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "ed5909b6e89a2db4456e54cd5f673791d7eca6732202bbf2a9cc504fe2f9b84a" + +[[package]] +name = "http" +version = "1.5.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "918d3568bebf352712bc2ef3d46a8bcf1a75b373be6539de198e9105cbbf9ce0" +dependencies = [ + "bytes", + "itoa", +] + +[[package]] +name = "http-body" +version = "1.1.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "ca2a8f2913ee65f60facd6a5905613afaa448497a0230cc41ce022d93290bc2c" +dependencies = [ + "bytes", + "http", +] + +[[package]] +name = "http-body-util" +version = "0.1.5" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "23169fe34a5fbcdd3f3862e78fb9b6fccd5f02a6dc6f732547005d45631ce71c" +dependencies = [ + "bytes", + "futures-core", + "http", + "http-body", + "pin-project-lite", +] + +[[package]] +name = "httparse" +version = "1.10.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "6dbf3de79e51f3d586ab4cb9d5c3e2c14aa28ed23d180cf89b4df0454a69cc87" + +[[package]] +name = "hybrid-array" +version = "0.4.15" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "27f864f10dfb56725ce5ce5472bc52252c8f93a4ab86327122cebf62c5f59a17" +dependencies = [ + "typenum", +] + +[[package]] +name = "hyper" +version = "1.12.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "2c3e324da4c95177d6291d4c8730197c0d1822f8a9766814a4a44fa5ab797c9c" +dependencies = [ + "atomic-waker", + "bytes", + "futures-core", + "http", + "http-body", + "httparse", + "itoa", + "pin-project-lite", + "smallvec", + "tokio", + "want", +] + +[[package]] +name = "hyper-rustls" +version = "0.27.10" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "dfa8e654703247911e29c23fbeaa261834bd9bb74efba2f9acddc37bfb127f53" +dependencies = [ + "http", + "hyper", + "hyper-util", + "rustls", + "tokio", + "tokio-rustls", + "tower-service", +] + +[[package]] +name = "hyper-util" +version = "0.1.21" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "ddc03d96684f9226b8a787cdb71488417b53ab5ea8fdb1dac946cb9431cc8bff" +dependencies = [ + "base64", + "bytes", + "futures-channel", + "futures-util", + "http", + "http-body", + "httparse", + "hyper", + "ipnet", + "libc", + "percent-encoding", + "pin-project-lite", + "socket2", + "tokio", + "tower-service", + "tracing", +] + +[[package]] +name = "idna" +version = "1.1.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "3b0875f23caa03898994f6ddc501886a45c7d3d62d04d2d90788d47be1b1e4de" +dependencies = [ + "idna_adapter", + "smallvec", + "utf8_iter", +] + +[[package]] +name = "idna_adapter" +version = "1.0.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "cfdf4f5d937a025381f5ab13624b1c5f51414bfe5c9885663226eae8d6d39560" + +[[package]] +name = "indexmap" +version = "2.14.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "cc4e190f5d26ca7051642629da2c52fc03bde85a03197c99408dcd291734c855" +dependencies = [ + "equivalent", + "hashbrown", + "serde", + "serde_core", +] + +[[package]] +name = "inotify" +version = "0.11.5" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "4cc00ea907cab49550b7da656f80ebb97be1b997d931fbcd28d39734e17ce592" +dependencies = [ + "bitflags", + "inotify-sys", + "libc", +] + +[[package]] +name = "inotify-sys" +version = "0.1.8" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "c033f80b2c113cdf91ab7a33faa9cbc014726dcad99880c8609af2a370edf37d" +dependencies = [ + "libc", +] + +[[package]] +name = "ipnet" +version = "2.12.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "791930b43c0d5973160d90a8f3894509f2b273430f5c5c73b668636d0287c5c0" + +[[package]] +name = "itoa" +version = "1.0.18" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "8f42a60cbdf9a97f5d2305f08a87dc4e09308d1276d28c869c684d7777685682" + +[[package]] +name = "jni" +version = "0.22.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "5efd9a482cf3a427f00d6b35f14332adc7902ce91efb778580e180ff90fa3498" +dependencies = [ + "cfg-if", + "combine", + "jni-macros", + "jni-sys", + "log", + "simd_cesu8", + "thiserror", + "walkdir", + "windows-link", +] + +[[package]] +name = "jni-macros" +version = "0.22.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "a00109accc170f0bdb141fed3e393c565b6f5e072365c3bd58f5b062591560a3" +dependencies = [ + "proc-macro2", + "quote", + "rustc_version", + "simd_cesu8", + "syn 2.0.119", +] + +[[package]] +name = "jni-sys" +version = "0.4.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "c6377a88cb3910bee9b0fa88d4f42e1d2da8e79915598f65fb0c7ee14c878af2" +dependencies = [ + "jni-sys-macros", +] + +[[package]] +name = "jni-sys-macros" +version = "0.4.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "38c0b942f458fe50cdac086d2f946512305e5631e720728f2a61aabcd47a6264" +dependencies = [ + "quote", + "syn 2.0.119", +] + +[[package]] +name = "jobserver" +version = "0.1.35" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "1c00acbd29eabad4a2392fa0e921c874934dbbf4194312ad20f04a0ed67a3cb3" +dependencies = [ + "getrandom 0.4.3", + "libc", +] + +[[package]] +name = "js-sys" +version = "0.3.107" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "8dc09d2154098bbf4ef54eab6b117a3c24cbbffe94046b16ee6d6d4510584d3a" +dependencies = [ + "cfg-if", + "futures-util", + "wasm-bindgen", +] + +[[package]] +name = "kqueue" +version = "1.2.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "8d763e5b24120b4ddf50de6c92308156765aabfbbccebf401da7cff2d70a41ea" +dependencies = [ + "kqueue-sys", + "libc", +] + +[[package]] +name = "kqueue-sys" +version = "1.1.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "07293a4e297ac234359b510362495713f75ea345d5307140414f20c69ffeb087" +dependencies = [ + "bitflags", + "libc", +] + +[[package]] +name = "libc" +version = "0.2.191" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "65cd87c9a6d60536580b316ad985726104730a5151c99845f2490428ef91240a" + +[[package]] +name = "linux-raw-sys" +version = "0.12.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "32a66949e030da00e8c7d4434b251670a91556f4144941d37452769c25d58a53" + +[[package]] +name = "lock_api" +version = "0.4.14" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "224399e74b87b5f3557511d98dff8b14089b3dadafcab6bb93eab67d3aace965" +dependencies = [ + "scopeguard", +] + +[[package]] +name = "log" +version = "0.4.35" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "5d15f86d12da44cd8d4ec3c73984537eb7f4cadcb9776a575a0a8a05ca11005c" + +[[package]] +name = "luau0-src" +version = "0.24.1+luau747.sk.55536aec" +source = "git+https://github.com/simonklee/luau-src-rs?rev=553892c79eac79091232f87218d6a94d97779f7b#553892c79eac79091232f87218d6a94d97779f7b" +dependencies = [ + "cc", +] + +[[package]] +name = "maybe-dangling" +version = "0.1.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "59dbb09ed53f8e4f314e353dc6c1853ae5b4c480a668a422657804a544ea9f65" + +[[package]] +name = "memchr" +version = "2.8.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "cf8baf1c55e62ffcace7a9f06f4bd9cd3f0c4beb022d3b367256b91b87513d98" + +[[package]] +name = "mio" +version = "1.2.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "1788edb87fdc09c7e26304471e2f5be8cdefb1b6930d6e3985fc02ff53bf86ee" +dependencies = [ + "libc", + "log", + "wasi", + "windows-sys 0.61.2", +] + +[[package]] +name = "mlua" +version = "0.12.2" +source = "git+https://github.com/mlua-rs/mlua?rev=01b48a402fffa83c1429b4a49cfd55c6caaa5939#01b48a402fffa83c1429b4a49cfd55c6caaa5939" +dependencies = [ + "bstr", + "either", + "libc", + "maybe-dangling", + "mlua-sys", + "num-traits", + "parking_lot", + "rustc-hash", +] + +[[package]] +name = "mlua-sys" +version = "0.14.0" +source = "git+https://github.com/mlua-rs/mlua?rev=01b48a402fffa83c1429b4a49cfd55c6caaa5939#01b48a402fffa83c1429b4a49cfd55c6caaa5939" +dependencies = [ + "cc", + "cfg-if", + "libc", + "luau0-src", + "pkg-config", +] + +[[package]] +name = "notify" +version = "8.2.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "82f812702fbc75d35416d3f884e04925be7e9498f4eceea2e24ba34559284674" +dependencies = [ + "bitflags", + "inotify", + "kqueue", + "libc", + "log", + "mio", + "notify-types", + "objc2-core-foundation", + "objc2-core-services", + "walkdir", + "windows-sys 0.61.2", +] + +[[package]] +name = "notify-types" +version = "2.2.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "0a437a9308232ce794b1e7fdf540d38ea37efc3c73492640c13b4c8568b8f108" +dependencies = [ + "bitflags", +] + +[[package]] +name = "num-traits" +version = "0.2.19" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "071dfc062690e90b734c0b2273ce72ad0ffa95f0c74596bc250dcfd960262841" +dependencies = [ + "autocfg", +] + +[[package]] +name = "objc2-core-foundation" +version = "0.3.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "2a180dd8642fa45cdb7dd721cd4c11b1cadd4929ce112ebd8b9f5803cc79d536" +dependencies = [ + "bitflags", +] + +[[package]] +name = "objc2-core-services" +version = "0.3.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "583300ad934cba24ff5292aee751ecc070f7ca6b39a574cc21b7b5e588e06a0b" +dependencies = [ + "libc", + "objc2-core-foundation", +] + +[[package]] +name = "once_cell" +version = "1.21.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "9f7c3e4beb33f85d45ae3e3a1792185706c8e16d043238c593331cc7cd313b50" + +[[package]] +name = "opencode-acp" +version = "0.1.0" +dependencies = [ + "base64", + "bytes", + "futures-util", + "indexmap", + "log", + "opencode-api", + "opencode-service", + "opencode-util", + "percent-encoding", + "regex", + "serde_json", + "tokio", + "tokio-util", + "url", +] + +[[package]] +name = "opencode-api" +version = "0.1.0" +dependencies = [ + "base64", + "bytes", + "futures-util", + "idna_adapter", + "indexmap", + "log", + "memchr", + "opencode-api-types", + "opencode-util", + "percent-encoding", + "rand", + "reqwest", + "rustls", + "rustls-platform-verifier", + "serde", + "serde_json", + "thiserror", + "tokio", + "tokio-tungstenite", + "tokio-util", + "url", +] + +[[package]] +name = "opencode-api-types" +version = "0.1.0" +dependencies = [ + "bytes", + "indexmap", + "percent-encoding", + "serde", + "serde_json", + "url", +] + +[[package]] +name = "opencode-cli" +version = "0.1.0" +dependencies = [ + "base64", + "futures-util", + "indexmap", + "libc", + "log", + "opencode-acp", + "opencode-api", + "opencode-latex", + "opencode-local", + "opencode-mermaid", + "opencode-mini", + "opencode-plugin", + "opencode-service", + "opencode-store", + "opencode-tui", + "opencode-ui", + "opencode-util", + "opentui", + "regex", + "reqwest", + "rustix", + "serde", + "serde_json", + "tokio", + "unicode-width", + "url", +] + +[[package]] +name = "opencode-drive" +version = "0.1.0" +dependencies = [ + "log", + "opencode-api-types", + "opencode-util", + "opentui", + "serde", + "serde_json", + "tokio-tungstenite", +] + +[[package]] +name = "opencode-latex" +version = "0.1.0" +dependencies = [ + "opencode-parity", + "opencode-plugin", + "opencode-plugin-abi", + "opencode-ui", + "opentui", + "serde_json", + "unicode-segmentation", + "unicode-width", +] + +[[package]] +name = "opencode-local" +version = "0.1.0" +dependencies = [ + "base64", + "indexmap", + "log", + "notify", + "opencode-api-types", + "opencode-util", + "rand", + "rustix", + "serde", + "serde_json", + "sha1", + "thiserror", +] + +[[package]] +name = "opencode-mermaid" +version = "0.1.0" +dependencies = [ + "indexmap", + "opencode-parity", + "opencode-plugin", + "opencode-plugin-abi", + "opencode-ui", + "opentui", + "regex", + "serde_json", + "unicode-segmentation", +] + +[[package]] +name = "opencode-mini" +version = "0.1.0" +dependencies = [ + "futures-util", + "indexmap", + "log", + "opencode-api", + "opencode-local", + "opencode-store", + "opencode-ui", + "opencode-util", + "opentui", + "rustix", + "serde", + "serde_json", + "tokio", + "unicode-width", +] + +[[package]] +name = "opencode-parity" +version = "0.1.0" +dependencies = [ + "opentui", + "regex", + "serde", + "serde_json", +] + +[[package]] +name = "opencode-plugin" +version = "0.1.0" +dependencies = [ + "libc", + "log", + "mlua", + "opencode-api-types", + "opencode-plugin-abi", + "opencode-ui", + "opencode-util", + "opentui", + "ring", + "serde", + "serde_json", + "unicode-segmentation", + "unicode-width", + "url", +] + +[[package]] +name = "opencode-plugin-abi" +version = "0.1.0" +dependencies = [ + "opencode-api-types", + "serde", + "serde_json", +] + +[[package]] +name = "opencode-service" +version = "0.1.0" +dependencies = [ + "base64", + "bytes", + "futures-util", + "log", + "opencode-api", + "opencode-local", + "opencode-util", + "rand", + "reqwest", + "rustix", + "serde_json", + "thiserror", + "tokio", + "url", +] + +[[package]] +name = "opencode-store" +version = "0.1.0" +dependencies = [ + "bytes", + "futures-util", + "indexmap", + "log", + "opencode-api", + "opencode-local", + "opencode-service", + "opencode-util", + "serde", + "serde_json", + "tokio", + "tokio-util", +] + +[[package]] +name = "opencode-tui" +version = "0.1.0" +dependencies = [ + "base64", + "bytes", + "futures-util", + "indexmap", + "log", + "opencode-api", + "opencode-drive", + "opencode-latex", + "opencode-local", + "opencode-mermaid", + "opencode-parity", + "opencode-plugin", + "opencode-plugin-abi", + "opencode-store", + "opencode-ui", + "opencode-util", + "opentui", + "rand", + "regex", + "ring", + "serde", + "serde_json", + "tokio", + "tokio-tungstenite", + "unicode-width", + "url", +] + +[[package]] +name = "opencode-ui" +version = "0.1.0" +dependencies = [ + "base64", + "indexmap", + "log", + "opencode-api-types", + "opencode-parity", + "opencode-util", + "opentui", + "regex", + "serde", + "serde_json", + "tree-sitter-agda", + "tree-sitter-bash", + "tree-sitter-c", + "tree-sitter-c-sharp", + "tree-sitter-clojure-orchard", + "tree-sitter-cpp", + "tree-sitter-css", + "tree-sitter-diff", + "tree-sitter-elixir", + "tree-sitter-go", + "tree-sitter-haskell", + "tree-sitter-hcl", + "tree-sitter-html", + "tree-sitter-java", + "tree-sitter-javascript", + "tree-sitter-json", + "tree-sitter-julia", + "tree-sitter-lua", + "tree-sitter-make", + "tree-sitter-md", + "tree-sitter-nix", + "tree-sitter-php", + "tree-sitter-python", + "tree-sitter-r", + "tree-sitter-ruby", + "tree-sitter-rust", + "tree-sitter-scala", + "tree-sitter-toml-ng", + "tree-sitter-typescript", + "tree-sitter-vim", + "tree-sitter-vue-next", + "tree-sitter-xml", + "tree-sitter-yaml", + "tree-sitter-zig", + "unicode-width", + "url", +] + +[[package]] +name = "opencode-util" +version = "0.1.0" +dependencies = [ + "libc", + "ring", + "serde_json", + "windows-sys 0.61.2", +] + +[[package]] +name = "openssl-probe" +version = "0.2.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "7e036b411754132fd6b74e94b74e9a13c5cf606fa93d1885c35860d3060820b1" + +[[package]] +name = "opentui" +version = "0.9.7" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "837759c1c31ba219383bad833bd76608b70a5850c2321e1f83405b9c856c5cd4" +dependencies = [ + "libc", + "opentui-sys", + "tokio", + "tree-sitter", + "tree-sitter-javascript", + "tree-sitter-md", + "tree-sitter-rust", + "tree-sitter-typescript", + "tree-sitter-zig", + "windows-sys 0.61.2", +] + +[[package]] +name = "opentui-sys" +version = "0.9.7" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "74fb68b041aef76af4640b7ccc232a7141bac6a92264a00ffc353dd4dba5c90e" + +[[package]] +name = "parking_lot" +version = "0.12.5" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "93857453250e3077bd71ff98b6a65ea6621a19bb0f559a85248955ac12c45a1a" +dependencies = [ + "lock_api", + "parking_lot_core", +] + +[[package]] +name = "parking_lot_core" +version = "0.9.12" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "2621685985a2ebf1c516881c026032ac7deafcda1a2c9b7850dc81e3dfcb64c1" +dependencies = [ + "cfg-if", + "libc", + "redox_syscall", + "smallvec", + "windows-link", +] + +[[package]] +name = "percent-encoding" +version = "2.3.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "9b4f627cb1b25917193a259e49bdad08f671f8d9708acfd5fe0a8c1455d87220" + +[[package]] +name = "pin-project-lite" +version = "0.2.17" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "a89322df9ebe1c1578d689c92318e070967d1042b512afbe49518723f4e6d5cd" + +[[package]] +name = "pkg-config" +version = "0.3.34" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "f6b464fbc74e149a392436b17d523f769e057cb6877f6a5c4618bc6f11800548" + +[[package]] +name = "proc-macro2" +version = "1.0.107" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "985e7ec9bb745e6ce6535b544d84d6cd6f7ad8bd711c398938ae983b91a766d9" +dependencies = [ + "unicode-ident", +] + +[[package]] +name = "quote" +version = "1.0.47" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "1fbf4db142a473a8d80c26bbf18454ed458bf8d26c8219c331daecfdbd079001" +dependencies = [ + "proc-macro2", +] + +[[package]] +name = "r-efi" +version = "6.0.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "f8dcc9c7d52a811697d2151c701e0d08956f92b0e24136cf4cf27b57a6a0d9bf" + +[[package]] +name = "rand" +version = "0.10.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "65c9fb96cbc91e3478eaae79a69fcd3f1ae4ad052e471fe6732fff548984b4af" +dependencies = [ + "chacha20", + "getrandom 0.4.3", + "rand_core", +] + +[[package]] +name = "rand_core" +version = "0.10.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "63b8176103e19a2643978565ca18b50549f6101881c443590420e4dc998a3c69" + +[[package]] +name = "redox_syscall" +version = "0.5.18" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "ed2bf2547551a7053d6fdfafda3f938979645c44812fbfcda098faae3f1a362d" +dependencies = [ + "bitflags", +] + +[[package]] +name = "regex" +version = "1.13.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "f020237b6c8eed93db2e2cb53c00c60a8e1bc73da7d073199a1180401450218d" +dependencies = [ + "aho-corasick", + "memchr", + "regex-automata", + "regex-syntax", +] + +[[package]] +name = "regex-automata" +version = "0.4.18" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "ad8553b9b26413251cbf30e620595c7a41b3887f03da04579c0e6b0d6a06b4b2" +dependencies = [ + "aho-corasick", + "memchr", + "regex-syntax", +] + +[[package]] +name = "regex-syntax" +version = "0.8.11" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "d6f6ff9a378485b298a5286656da665ba74413d36db0979633275d2e708145d4" + +[[package]] +name = "reqwest" +version = "0.13.5" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "16a1cfa75cc186dd73d5818e510e042e40927bccc9c236b061cea97e1eb08029" +dependencies = [ + "base64", + "bytes", + "futures-core", + "futures-util", + "http", + "http-body", + "http-body-util", + "hyper", + "hyper-rustls", + "hyper-util", + "js-sys", + "log", + "percent-encoding", + "pin-project-lite", + "rustls", + "rustls-pki-types", + "rustls-platform-verifier", + "serde", + "serde_json", + "sync_wrapper", + "tokio", + "tokio-rustls", + "tokio-util", + "tower", + "tower-http", + "tower-service", + "url", + "wasm-bindgen", + "wasm-bindgen-futures", + "wasm-streams", + "web-sys", +] + +[[package]] +name = "ring" +version = "0.17.14" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "a4689e6c2294d81e88dc6261c768b63bc4fcdb852be6d1352498b114f61383b7" +dependencies = [ + "cc", + "cfg-if", + "getrandom 0.2.17", + "libc", + "untrusted", + "windows-sys 0.52.0", +] + +[[package]] +name = "rustc-hash" +version = "2.1.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "6b1e7f9a428571be2dc5bc0505c13fb6bf936822b894ec87abf8a08a4e51742d" + +[[package]] +name = "rustc_version" +version = "0.4.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "cfcb3a22ef46e85b45de6ee7e79d063319ebb6594faafcf1c225ea92ab6e9b92" +dependencies = [ + "semver", +] + +[[package]] +name = "rustix" +version = "1.1.6" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "e5e76742e5294153d4dde1207dbec5bdd81eef6fabdc0d2118babadabfd858aa" +dependencies = [ + "bitflags", + "errno", + "libc", + "linux-raw-sys", + "windows-sys 0.61.2", +] + +[[package]] +name = "rustls" +version = "0.23.46" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "48e13bd8c0e9365c43cfa5c9e8f9ad49d3c8444926c9aac819e0e4dc503c8fdf" +dependencies = [ + "once_cell", + "ring", + "rustls-pki-types", + "rustls-webpki", + "subtle", + "zeroize", +] + +[[package]] +name = "rustls-native-certs" +version = "0.8.5" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "4a073f5dc7469f984c52ad2752b63b0807745133b6de880b7b64c1ac4c48aec4" +dependencies = [ + "openssl-probe", + "rustls-pki-types", + "schannel", + "security-framework", +] + +[[package]] +name = "rustls-pki-types" +version = "1.15.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "2f4925028c7eb5d1fcdaf196971378ed9d2c1c4efc7dc5d011256f76c99c0a96" +dependencies = [ + "zeroize", +] + +[[package]] +name = "rustls-platform-verifier" +version = "0.7.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "1167586491e2b18b8bfbb293e8180ec17c201c4f076d7cb3070ca964e7598f98" +dependencies = [ + "core-foundation", + "core-foundation-sys", + "jni", + "log", + "once_cell", + "rustls", + "rustls-native-certs", + "rustls-platform-verifier-android", + "rustls-webpki", + "security-framework", + "security-framework-sys", + "webpki-root-certs", + "windows-sys 0.61.2", +] + +[[package]] +name = "rustls-platform-verifier-android" +version = "0.2.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "eec689c0bc40ff2458a5977b6619cb718087084a18e02a131c599b62d05e1a5f" + +[[package]] +name = "rustls-webpki" +version = "0.103.16" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "4443b1b6d39d7c663139942cc4558262562d2c84123bb6282ef177009ca8b281" +dependencies = [ + "ring", + "rustls-pki-types", + "untrusted", +] + +[[package]] +name = "rustversion" +version = "1.0.23" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "cf54715a573b99ac80df0bc206da022bcd442c974952c7b9720069370852e21f" + +[[package]] +name = "same-file" +version = "1.0.6" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "93fc1dc3aaa9bfed95e02e6eadabb4baf7e3078b0bd1b4d7b6b0b68378900502" +dependencies = [ + "winapi-util", +] + +[[package]] +name = "schannel" +version = "0.1.30" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "9cb23c424d8ee841bb4d813677ca237e2a610067d594fec130f87d6093495ab5" +dependencies = [ + "windows-sys 0.61.2", +] + +[[package]] +name = "scopeguard" +version = "1.2.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "94143f37725109f92c262ed2cf5e59bce7498c01bcc1502d7b9afe439a4e9f49" + +[[package]] +name = "security-framework" +version = "3.7.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "b7f4bc775c73d9a02cde8bf7b2ec4c9d12743edf609006c7facc23998404cd1d" +dependencies = [ + "bitflags", + "core-foundation", + "core-foundation-sys", + "libc", + "security-framework-sys", +] + +[[package]] +name = "security-framework-sys" +version = "2.17.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "6ce2691df843ecc5d231c0b14ece2acc3efb62c0a398c7e1d875f3983ce020e3" +dependencies = [ + "core-foundation-sys", + "libc", +] + +[[package]] +name = "semver" +version = "1.0.28" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "8a7852d02fc848982e0c167ef163aaff9cd91dc640ba85e263cb1ce46fae51cd" + +[[package]] +name = "serde" +version = "1.0.229" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "4148590afebada386688f18773da617792bf2ef03ffc1e4cbd2b1d45b023e0ba" +dependencies = [ + "serde_core", + "serde_derive", +] + +[[package]] +name = "serde_core" +version = "1.0.229" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "67dca2c9c51e58a4791a4b1ed58308b39c64224d349a935ab5039aa360942a48" +dependencies = [ + "serde_derive", +] + +[[package]] +name = "serde_derive" +version = "1.0.229" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "e7a5d71263a5a7d47b41f6b3f06ba276f10cc18b0931f1799f710578e2309348" +dependencies = [ + "proc-macro2", + "quote", + "syn 3.0.9", +] + +[[package]] +name = "serde_json" +version = "1.0.154" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "e7e9cc8b1b85264074fbcc02a88680c4096b1e47df8f739dceb03bf482f04bd6" +dependencies = [ + "foldhash", + "indexmap", + "itoa", + "memchr", + "serde", + "serde_core", + "zmij", +] + +[[package]] +name = "sha1" +version = "0.11.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "aacc4cc499359472b4abe1bf11d0b12e688af9a805fa5e3016f9a386dc2d0214" +dependencies = [ + "cfg-if", + "cpufeatures", + "digest", +] + +[[package]] +name = "shlex" +version = "2.0.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "f8fadd59c855ef2080decdef8ff161eb6661b86933c9d82e5ba29dc602a55aba" + +[[package]] +name = "signal-hook-registry" +version = "1.4.8" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "c4db69cba1110affc0e9f7bcd48bbf87b3f4fc7c61fc9155afd4c469eb3d6c1b" +dependencies = [ + "errno", + "libc", +] + +[[package]] +name = "simd_cesu8" +version = "1.2.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "11031e251abf8611c80f460e19dbdeb54a66db918e49c65a7065b46ac7aec520" +dependencies = [ + "rustc_version", + "simdutf8", +] + +[[package]] +name = "simdutf8" +version = "0.1.5" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "e3a9fe34e3e7a50316060351f37187a3f546bce95496156754b601a5fa71b76e" + +[[package]] +name = "slab" +version = "0.4.12" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "0c790de23124f9ab44544d7ac05d60440adc586479ce501c1d6d7da3cd8c9cf5" + +[[package]] +name = "smallvec" +version = "1.16.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "d0d5d4b1981b8bbbb7aed204cae5726d683d5d6ac7e74ec54122ea28f315e7c8" + +[[package]] +name = "socket2" +version = "0.6.5" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "c3d1e2c7f27f8d4cb10542a02c49005dbd6e93095799d6f3be745fae9f8fedd4" +dependencies = [ + "libc", + "windows-sys 0.61.2", +] + +[[package]] +name = "streaming-iterator" +version = "0.1.9" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "2b2231b7c3057d5e4ad0156fb3dc807d900806020c5ffa3ee6ff2c8c76fb8520" + +[[package]] +name = "subtle" +version = "2.6.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "13c2bddecc57b384dee18652358fb23172facb8a2c51ccc10d74c157bdea3292" + +[[package]] +name = "syn" +version = "2.0.119" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "872831b642d1a07999a962a351ed35b955ea2cfc8f3862091e2a240a84f17297" +dependencies = [ + "proc-macro2", + "quote", + "unicode-ident", +] + +[[package]] +name = "syn" +version = "3.0.9" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "d78c8dee4c7bf0e14673097256fed6142ce9d3b85a408189d07482442145823b" +dependencies = [ + "proc-macro2", + "quote", + "unicode-ident", +] + +[[package]] +name = "sync_wrapper" +version = "1.0.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "0bf256ce5efdfa370213c1dabab5935a12e49f2c58d15e9eac2870d3b4f27263" +dependencies = [ + "futures-core", +] + +[[package]] +name = "thiserror" +version = "2.0.21" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "09e52cb86a36cede5cb101bf8908837b3e4c6e5e59fe7fd85c23fb56200d189e" +dependencies = [ + "thiserror-impl", +] + +[[package]] +name = "thiserror-impl" +version = "2.0.21" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "fe5197923287db20a58125f0bc85c062f7f2c892de97b18c356f9efb14b28524" +dependencies = [ + "proc-macro2", + "quote", + "syn 3.0.9", +] + +[[package]] +name = "tokio" +version = "1.54.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "b52fd3255258d26fac7264ab5a76b53c13367136dc011d3d6ad4f8ed070396a3" +dependencies = [ + "bytes", + "libc", + "mio", + "pin-project-lite", + "signal-hook-registry", + "socket2", + "tokio-macros", + "windows-sys 0.61.2", +] + +[[package]] +name = "tokio-macros" +version = "2.7.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "78773a2a397f451582ce068015985c33193cf6dea8b74d2a639fe457b2f07b0e" +dependencies = [ + "proc-macro2", + "quote", + "syn 3.0.9", +] + +[[package]] +name = "tokio-rustls" +version = "0.26.6" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "c9cc2678c2cdd569ef8215e2afd7954ada2ae20b4fdd2c5fe6139a3b02d105db" +dependencies = [ + "rustls", + "tokio", +] + +[[package]] +name = "tokio-tungstenite" +version = "0.30.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "17a073bfed563fa236697a068031408a93cd9522e08abf9933ead3e73411bd71" +dependencies = [ + "futures-util", + "log", + "rustls", + "rustls-native-certs", + "rustls-pki-types", + "tokio", + "tokio-rustls", + "tungstenite", +] + +[[package]] +name = "tokio-util" +version = "0.7.20" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "e464cf451ba96ebfc6f9b6542f17ee8b8956e33f1e40d9690624e59d7a7f8a4b" +dependencies = [ + "bytes", + "futures-core", + "futures-sink", + "pin-project-lite", + "tokio", +] + +[[package]] +name = "tower" +version = "0.5.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "ebe5ef63511595f1344e2d5cfa636d973292adc0eec1f0ad45fae9f0851ab1d4" +dependencies = [ + "futures-core", + "futures-util", + "pin-project-lite", + "sync_wrapper", + "tokio", + "tower-layer", + "tower-service", +] + +[[package]] +name = "tower-http" +version = "0.6.11" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "4cfcf7e2740e6fc6d4d688b4ef00650406bb94adf4731e43c096c3a19fe40840" +dependencies = [ + "bitflags", + "bytes", + "futures-util", + "http", + "http-body", + "pin-project-lite", + "tower", + "tower-layer", + "tower-service", + "url", +] + +[[package]] +name = "tower-layer" +version = "0.3.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "121c2a6cda46980bb0fcd1647ffaf6cd3fc79a013de288782836f6df9c48780e" + +[[package]] +name = "tower-service" +version = "0.3.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "8df9b6e13f2d32c91b9bd719c00d1958837bc7dec474d94952798cc8e69eeec3" + +[[package]] +name = "tracing" +version = "0.1.44" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "63e71662fa4b2a2c3a26f570f037eb95bb1f85397f3cd8076caed2f026a6d100" +dependencies = [ + "pin-project-lite", + "tracing-core", +] + +[[package]] +name = "tracing-core" +version = "0.1.36" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "db97caf9d906fbde555dd62fa95ddba9eecfd14cb388e4f491a66d74cd5fb79a" +dependencies = [ + "once_cell", +] + +[[package]] +name = "tree-sitter" +version = "0.27.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "a5129de2ccc97808c4583d48f1fb44576d015cf241e432800572bda11ef30c3b" +dependencies = [ + "cc", + "regex", + "serde_json", + "streaming-iterator", + "tree-sitter-language", +] + +[[package]] +name = "tree-sitter-agda" +version = "1.3.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "79170741bc75a42d93a69f7e2d39bece006bea602af30650f7f323645094d693" +dependencies = [ + "cc", + "tree-sitter-language", +] + +[[package]] +name = "tree-sitter-bash" +version = "0.25.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "871b0606e667e98a1237ebdc1b0d7056e0aebfdc3141d12b399865d4cb6ed8a6" +dependencies = [ + "cc", + "tree-sitter-language", +] + +[[package]] +name = "tree-sitter-c" +version = "0.24.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "1a3aad8f0129083a59fe8596157552d2bb7148c492d44c21558d68ca1c722707" +dependencies = [ + "cc", + "tree-sitter-language", +] + +[[package]] +name = "tree-sitter-c-sharp" +version = "0.23.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "67f06accca7b45351758663b8215089e643d53bd9a660ce0349314263737fcb0" +dependencies = [ + "cc", + "tree-sitter-language", +] + +[[package]] +name = "tree-sitter-clojure-orchard" +version = "0.2.9" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "61a0e0695faad3475bcddbf300c9d11a301a2df96b0873eee46ab7e64f7f65d8" +dependencies = [ + "cc", + "tree-sitter-language", +] + +[[package]] +name = "tree-sitter-cpp" +version = "0.23.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "df2196ea9d47b4ab4a31b9297eaa5a5d19a0b121dceb9f118f6790ad0ab94743" +dependencies = [ + "cc", + "tree-sitter-language", +] + +[[package]] +name = "tree-sitter-css" +version = "0.25.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "a5cbc5e18f29a2c6d6435891f42569525cf95435a3e01c2f1947abcde178686f" +dependencies = [ + "cc", + "tree-sitter-language", +] + +[[package]] +name = "tree-sitter-diff" +version = "0.1.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "dfe1e5ca280a65dfe5ba4205c1bcc84edf486464fed315db53dee6da9a335889" +dependencies = [ + "cc", + "tree-sitter-language", +] + +[[package]] +name = "tree-sitter-elixir" +version = "0.3.5" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "66dd064a762ed95bfc29857fa3cb7403bb1e5cb88112de0f6341b7e47284ba40" +dependencies = [ + "cc", + "tree-sitter-language", +] + +[[package]] +name = "tree-sitter-go" +version = "0.25.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "c8560a4d2f835cc0d4d2c2e03cbd0dde2f6114b43bc491164238d333e28b16ea" +dependencies = [ + "cc", + "tree-sitter-language", +] + +[[package]] +name = "tree-sitter-haskell" +version = "0.23.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "977c51e504548cba13fc27cb5a2edab2124cf6716a1934915d07ab99523b05a4" +dependencies = [ + "cc", + "tree-sitter-language", +] + +[[package]] +name = "tree-sitter-hcl" +version = "1.2.0" +source = "git+https://github.com/tree-sitter-grammars/tree-sitter-hcl?tag=v1.2.0#fad991865fee927dd1de5e172fb3f08ac674d914" +dependencies = [ + "cc", + "tree-sitter-language", +] + +[[package]] +name = "tree-sitter-html" +version = "0.23.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "261b708e5d92061ede329babaaa427b819329a9d427a1d710abb0f67bbef63ee" +dependencies = [ + "cc", + "tree-sitter-language", +] + +[[package]] +name = "tree-sitter-java" +version = "0.23.5" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "0aa6cbcdc8c679b214e616fd3300da67da0e492e066df01bcf5a5921a71e90d6" +dependencies = [ + "cc", + "tree-sitter-language", +] + +[[package]] +name = "tree-sitter-javascript" +version = "0.25.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "68204f2abc0627a90bdf06e605f5c470aa26fdcb2081ea553a04bdad756693f5" +dependencies = [ + "cc", + "tree-sitter-language", +] + +[[package]] +name = "tree-sitter-json" +version = "0.24.8" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "4d727acca406c0020cffc6cf35516764f36c8e3dc4408e5ebe2cb35a947ec471" +dependencies = [ + "cc", + "tree-sitter-language", +] + +[[package]] +name = "tree-sitter-julia" +version = "0.23.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "4144731a178812ee867619b1e98b3b91e54c1652304b26e5ebe3175b701de323" +dependencies = [ + "cc", + "tree-sitter-language", +] + +[[package]] +name = "tree-sitter-language" +version = "0.1.9" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "d0af592be68c579aa78a16846bd19422978c3c52e438523d45ff5d1bff1f9d4a" + +[[package]] +name = "tree-sitter-lua" +version = "0.5.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "8daaf5f4235188a58603c39760d5fa5d4b920d36a299c934adddae757f32a10c" +dependencies = [ + "cc", + "tree-sitter-language", +] + +[[package]] +name = "tree-sitter-make" +version = "1.1.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "c5998dc7cbcbdab19fae8aefef982bf2d6544513d8d2e69cc44aec4c63810104" +dependencies = [ + "cc", + "tree-sitter-language", +] + +[[package]] +name = "tree-sitter-md" +version = "0.5.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "8ed661bfe3c264961425f77cd89ad2998bf5d629e71ce8bab1e5d7e940d6246e" +dependencies = [ + "cc", + "tree-sitter-language", +] + +[[package]] +name = "tree-sitter-nix" +version = "0.3.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "4952a9733f3a98f6683a0ccd1035d84ab7a52f7e84eeed58548d86765ad92de3" +dependencies = [ + "cc", + "tree-sitter-language", +] + +[[package]] +name = "tree-sitter-php" +version = "0.24.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "0d8c17c3ab69052c5eeaa7ff5cd972dd1bc25d1b97ee779fec391ad3b5df5592" +dependencies = [ + "cc", + "tree-sitter-language", +] + +[[package]] +name = "tree-sitter-python" +version = "0.23.6" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "3d065aaa27f3aaceaf60c1f0e0ac09e1cb9eb8ed28e7bcdaa52129cffc7f4b04" +dependencies = [ + "cc", + "tree-sitter-language", +] + +[[package]] +name = "tree-sitter-r" +version = "1.2.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "429133cbda9f8a46e03ef3aae6abb6c3d22875f8585cad472138101bfd517255" +dependencies = [ + "cc", + "tree-sitter-language", +] + +[[package]] +name = "tree-sitter-ruby" +version = "0.23.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "be0484ea4ef6bb9c575b4fdabde7e31340a8d2dbc7d52b321ac83da703249f95" +dependencies = [ + "cc", + "tree-sitter-language", +] + +[[package]] +name = "tree-sitter-rust" +version = "0.24.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "439e577dbe07423ec2582ac62c7531120dbfccfa6e5f92406f93dd271a120e45" +dependencies = [ + "cc", + "tree-sitter-language", +] + +[[package]] +name = "tree-sitter-scala" +version = "0.24.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "7516aeb3d1f40ede8e3045b163e86993b3434514dd06c34c0b75e782d9a0b251" +dependencies = [ + "cc", + "tree-sitter-language", +] + +[[package]] +name = "tree-sitter-toml-ng" +version = "0.7.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "e9adc2c898ae49730e857d75be403da3f92bb81d8e37a2f918a08dd10de5ebb1" +dependencies = [ + "cc", + "tree-sitter-language", +] + +[[package]] +name = "tree-sitter-typescript" +version = "0.23.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "6c5f76ed8d947a75cc446d5fccd8b602ebf0cde64ccf2ffa434d873d7a575eff" +dependencies = [ + "cc", + "tree-sitter-language", +] + +[[package]] +name = "tree-sitter-vim" +version = "0.4.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "45b6a26a808d8209e0b9514f5ffe0ea01d9fc8dcb33c01ff71f5979164811d6e" +dependencies = [ + "cc", + "tree-sitter", +] + +[[package]] +name = "tree-sitter-vue-next" +version = "0.1.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "e9ac89acaa8165aaabfa8ae9683aa423b0d2bf42c815dae5ca031a36a75525f1" +dependencies = [ + "cc", + "tree-sitter-language", +] + +[[package]] +name = "tree-sitter-xml" +version = "0.7.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "e670041f591d994f54d597ddcd8f4ebc930e282c4c76a42268743b71f0c8b6b3" +dependencies = [ + "cc", + "tree-sitter-language", +] + +[[package]] +name = "tree-sitter-yaml" +version = "0.7.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "53c223db85f05e34794f065454843b0668ebc15d240ada63e2b5939f43ce7c97" +dependencies = [ + "cc", + "tree-sitter-language", +] + +[[package]] +name = "tree-sitter-zig" +version = "1.1.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "ab11fc124851b0db4dd5e55983bbd9631192e93238389dcd44521715e5d53e28" +dependencies = [ + "cc", + "tree-sitter-language", +] + +[[package]] +name = "try-lock" +version = "0.2.5" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "e421abadd41a4225275504ea4d6566923418b7f05506fbc9c0fe86ba7396114b" + +[[package]] +name = "tungstenite" +version = "0.30.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "e48ac77174b19c110a50ab2128b24215ac9cb40e0e12e093fb602d175c569d22" +dependencies = [ + "bytes", + "data-encoding", + "http", + "httparse", + "log", + "rand", + "rustls", + "rustls-pki-types", + "sha1", + "thiserror", +] + +[[package]] +name = "typenum" +version = "1.20.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "b6f5e870be6c3b371b77fe0ee0bafb859fa4964b4404c27de1d380043c4dda20" + +[[package]] +name = "unicode-ident" +version = "1.0.27" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "a2c754d6c33795a1c324727428e5a7dedb5b06195f9890bdbcba760d3e246563" + +[[package]] +name = "unicode-segmentation" +version = "1.13.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "c6f5d3c3b1bf09027a88a6bc961fc00497d651009560b5463668dc81b0fa87a8" + +[[package]] +name = "unicode-width" +version = "0.2.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "ca718471876992059f251e33aafc334346ada08042b7661dd1fe313a9bced557" + +[[package]] +name = "untrusted" +version = "0.9.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "8ecb6da28b8a351d773b68d5825ac39017e680750f980f3a1a85cd8dd28a47c1" + +[[package]] +name = "url" +version = "2.5.8" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "ff67a8a4397373c3ef660812acab3268222035010ab8680ec4215f38ba3d0eed" +dependencies = [ + "form_urlencoded", + "idna", + "percent-encoding", + "serde", +] + +[[package]] +name = "utf8_iter" +version = "1.1.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "af3bd9d3e571c26fcce9d033b87ea5ab061b8d2ffe9b7a5675d810d68f03edf0" +dependencies = [ + "utf_types", +] + +[[package]] +name = "utf_types" +version = "1.0.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "3a3b425286980a367278453f3b6d28cdcb134b574e5a35824a6ff5eebad50bb6" + +[[package]] +name = "walkdir" +version = "2.5.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "29790946404f91d9c5d06f9874efddea1dc06c5efe94541a7d6863108e3a5e4b" +dependencies = [ + "same-file", + "winapi-util", +] + +[[package]] +name = "want" +version = "0.3.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "ec4cdd0dd910afe868b7ef477227d8d538b46b3075031afee8a9f2acb0a2ed0b" +dependencies = [ + "try-lock", +] + +[[package]] +name = "wasi" +version = "0.11.1+wasi-snapshot-preview1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "ccf3ec651a847eb01de73ccad15eb7d99f80485de043efb2f370cd654f4ea44b" + +[[package]] +name = "wasm-bindgen" +version = "0.2.130" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "a0181c14ddd6c7b8b0b0132a5f1ea2f32be0d893cd3ea97b6e3b28886b8a3d1c" +dependencies = [ + "cfg-if", + "rustversion", + "wasm-bindgen-macro", + "wasm-bindgen-shared", +] + +[[package]] +name = "wasm-bindgen-futures" +version = "0.4.80" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "5e14e0327cb5368ad60ccb22d04a9827a693c95a926d8d125e9fa39e0baec501" +dependencies = [ + "js-sys", + "tokio", + "wasm-bindgen", +] + +[[package]] +name = "wasm-bindgen-macro" +version = "0.2.130" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "6e931a02a39abdbf66966fc35902b5ed58344750a70885bed4ebb3d8eaf28ed9" +dependencies = [ + "quote", + "wasm-bindgen-macro-support", +] + +[[package]] +name = "wasm-bindgen-macro-support" +version = "0.2.130" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "2ca4b54280e455bd831e33a6b8e734baf432fe63fbc35c42ac14ce67a043a53a" +dependencies = [ + "bumpalo", + "proc-macro2", + "quote", + "syn 3.0.9", + "wasm-bindgen-shared", +] + +[[package]] +name = "wasm-bindgen-shared" +version = "0.2.130" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "3b1f9c3798725016c6ee5f2f57869ec0831e8bbc0ab0310a86e787e97f41389e" +dependencies = [ + "unicode-ident", +] + +[[package]] +name = "wasm-streams" +version = "0.5.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "9d1ec4f6517c9e11ae630e200b2b65d193279042e28edd4a2cda233e46670bbb" +dependencies = [ + "futures-util", + "js-sys", + "wasm-bindgen", + "wasm-bindgen-futures", + "web-sys", +] + +[[package]] +name = "web-sys" +version = "0.3.107" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "d7d179596ff5ec0f6de4db64d54011bde6289cc49603d3a6e4ce3f329207ab88" +dependencies = [ + "js-sys", + "wasm-bindgen", +] + +[[package]] +name = "webpki-root-certs" +version = "1.0.11" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "e49d0e65abc00c142e8f9428da991da9f1a250c39be97459901eb12b9b49f62a" +dependencies = [ + "rustls-pki-types", +] + +[[package]] +name = "winapi-util" +version = "0.1.11" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "c2a7b1c03c876122aa43f3020e6c3c3ee5c05081c9a00739faf7503aeba10d22" +dependencies = [ + "windows-sys 0.61.2", +] + +[[package]] +name = "windows-link" +version = "0.2.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "f0805222e57f7521d6a62e36fa9163bc891acd422f971defe97d64e70d0a4fe5" + +[[package]] +name = "windows-sys" +version = "0.52.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "282be5f36a8ce781fad8c8ae18fa3f9beff57ec1b52cb3de0789201425d9a33d" +dependencies = [ + "windows-targets", +] + +[[package]] +name = "windows-sys" +version = "0.61.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "ae137229bcbd6cdf0f7b80a31df61766145077ddf49416a728b02cb3921ff3fc" +dependencies = [ + "windows-link", +] + +[[package]] +name = "windows-targets" +version = "0.52.6" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "9b724f72796e036ab90c1021d4780d4d3d648aca59e491e6b98e725b84e99973" +dependencies = [ + "windows_aarch64_gnullvm", + "windows_aarch64_msvc", + "windows_i686_gnu", + "windows_i686_gnullvm", + "windows_i686_msvc", + "windows_x86_64_gnu", + "windows_x86_64_gnullvm", + "windows_x86_64_msvc", +] + +[[package]] +name = "windows_aarch64_gnullvm" +version = "0.52.6" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "32a4622180e7a0ec044bb555404c800bc9fd9ec262ec147edd5989ccd0c02cd3" + +[[package]] +name = "windows_aarch64_msvc" +version = "0.52.6" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "09ec2a7bb152e2252b53fa7803150007879548bc709c039df7627cabbd05d469" + +[[package]] +name = "windows_i686_gnu" +version = "0.52.6" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "8e9b5ad5ab802e97eb8e295ac6720e509ee4c243f69d781394014ebfe8bbfa0b" + +[[package]] +name = "windows_i686_gnullvm" +version = "0.52.6" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "0eee52d38c090b3caa76c563b86c3a4bd71ef1a819287c19d586d7334ae8ed66" + +[[package]] +name = "windows_i686_msvc" +version = "0.52.6" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "240948bc05c5e7c6dabba28bf89d89ffce3e303022809e73deaefe4f6ec56c66" + +[[package]] +name = "windows_x86_64_gnu" +version = "0.52.6" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "147a5c80aabfbf0c7d901cb5895d1de30ef2907eb21fbbab29ca94c5b08b1a78" + +[[package]] +name = "windows_x86_64_gnullvm" +version = "0.52.6" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "24d5b23dc417412679681396f2b49f3de8c1473deb516bd34410872eff51ed0d" + +[[package]] +name = "windows_x86_64_msvc" +version = "0.52.6" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "589f6da84c646204747d1270a2a5661ea66ed1cced2631d546fdfb155959f9ec" + +[[package]] +name = "zeroize" +version = "1.9.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "e13084392c5e4bc371903e2935a5eaeed24905a7511356b883835e18a78f6879" + +[[package]] +name = "zmij" +version = "1.0.23" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "29666d0abbfad1e3dc4dcf6144730dd3a3ab225bbbdac83319345b1b44ccfc1b" diff --git a/packages/cli-rs/Cargo.toml b/packages/cli-rs/Cargo.toml new file mode 100644 index 000000000000..e47dea3b6b14 --- /dev/null +++ b/packages/cli-rs/Cargo.toml @@ -0,0 +1,185 @@ +[workspace] +members = ["crates/*"] +resolver = "3" + +[workspace.package] +version = "0.1.0" +edition = "2024" +license = "MIT" +publish = false + +[workspace.lints.rust] +unsafe_code = "deny" +# From Anomaly's shared Rust lint set, the ones the client already has no findings for, so it keeps none. +unsafe_op_in_unsafe_fn = "deny" +unused_must_use = "deny" + +[workspace.lints.clippy] +await_holding_lock = "deny" +await_holding_refcell_ref = "deny" +dbg_macro = "deny" +todo = "warn" +# Every `unsafe` block states the invariant that makes it sound in a `// SAFETY:` comment. +undocumented_unsafe_blocks = "deny" + +[workspace.dependencies] +opencode-acp = { path = "crates/acp" } +opencode-api = { path = "crates/api" } +opencode-api-types = { path = "crates/api-types" } +opencode-drive = { path = "crates/drive" } +opencode-latex = { path = "crates/latex" } +opencode-local = { path = "crates/local" } +opencode-mermaid = { path = "crates/mermaid" } +opencode-mini = { path = "crates/mini" } +opencode-parity = { path = "crates/parity" } +# Without their default features: `ts` (TypeScript TUI plugins on the JS host) is chosen by opencode-cli, so a build +# without it has no JS host anywhere (ts-feature). +opencode-plugin = { path = "crates/plugin", default-features = false } +opencode-plugin-abi = { path = "crates/plugin-abi", features = ["host"] } +opencode-service = { path = "crates/service" } +opencode-store = { path = "crates/store" } +opencode-tui = { path = "crates/tui", default-features = false } +opencode-ui = { path = "crates/ui" } +opencode-util = { path = "crates/util" } + +# OpenTUI's Rust crates (`packages/rust` of anomalyco/opentui), pinned exactly to a release on crates.io. The crate +# has no native library: script/opentui-native.ts installs the release's, checked against its table; see README.md. +opentui = { version = "=0.9.7", features = ["static", "tokio", "tree-sitter"] } + +# Expected third-party crates, declared once so steps rarely edit manifests. A crate takes one with +# `name.workspace = true` and adds features with `features = [...]`. +base64 = "0.23" +bytes = "1" +futures-util = { version = "0.3", default-features = false, features = ["std", "sink"] } +# The IDNA stub: `url` rejects non-ASCII hosts instead of pulling ICU4X (deviation A10-ascii-hosts). Pinned so a +# `cargo update` cannot bring 1.2 back. +idna_adapter = "=1.0.0" +indexmap = { version = "2", features = ["serde"] } +libc = "0.2" +log = { version = "0.4", features = ["std"] } +memchr = "2" +# Luau plugins, behind opencode-plugin's default feature `luau` (O-178): Luau's VM and compiler. Values cross as +# JSON (`crates/plugin/src/luau/json.rs`), so mlua's own serde is off. +mlua = { version = "0.12", features = ["luau"] } +notify = "8" +percent-encoding = "2" +rand = "0.10" +regex = "1" +ring = "0.17" +# TLS is rustls on ring with the platform's roots, configured once in `opencode_api::transport`, for HTTP/1.1 only, as +# Bun's fetch speaks. +reqwest = { version = "0.13", default-features = false, features = ["rustls-no-provider", "json", "stream"] } +rustix = { version = "1", features = ["fs", "process"] } +rustls = { version = "0.23", default-features = false, features = ["ring", "std", "tls12"] } +rustls-platform-verifier = "0.7" +serde = { version = "1", features = ["derive"] } +serde_json = { version = "1", features = ["preserve_order", "raw_value"] } +sha1 = "0.11" +thiserror = "2" +tokio = { version = "1.53", features = ["rt-multi-thread", "macros", "sync", "time", "io-util", "process", "fs", "net", "signal"] } +tokio-tungstenite = { version = "0.30", features = ["rustls-tls-native-roots"] } +tokio-util = "0.7" +unicode-width = "0.2" +url = "2" +# Win32 calls, for opencode-util's `win` module only (DW1); each use adds its features there. +windows-sys = "0.61" + +# Tree-sitter grammars for opencode-ui's `grammars` feature (crates/ui/src/grammars), pinned to +# the WASM releases packages/tui/src/parsers-config.ts loads where crates.io has them. The five opentui bundles take +# its versions. +tree-sitter-javascript = "0.25" +tree-sitter-md = "0.5" +tree-sitter-rust = "0.24" +tree-sitter-typescript = "0.23" +tree-sitter-zig = "1.1" +tree-sitter-bash = "=0.25.0" +tree-sitter-css = "=0.25.0" +tree-sitter-diff = "=0.1.0" +tree-sitter-go = "=0.25.0" +tree-sitter-html = "=0.23.2" +tree-sitter-json = "=0.24.8" +tree-sitter-python = "=0.23.6" +tree-sitter-yaml = "=0.7.2" +tree-sitter-agda = "=1.3.3" +tree-sitter-c = "=0.24.1" +tree-sitter-c-sharp = "=0.23.1" +tree-sitter-clojure-orchard = "0.2.9" +tree-sitter-cpp = "=0.23.4" +tree-sitter-elixir = "=0.3.5" +tree-sitter-haskell = "=0.23.1" +tree-sitter-hcl = { git = "https://github.com/tree-sitter-grammars/tree-sitter-hcl", tag = "v1.2.0" } +tree-sitter-java = "=0.23.5" +tree-sitter-julia = "=0.23.1" +tree-sitter-lua = "=0.5.0" +tree-sitter-make = "=1.1.1" +tree-sitter-nix = "0.3.0" +tree-sitter-php = "=0.24.2" +tree-sitter-r = "=1.2.0" +tree-sitter-ruby = "=0.23.1" +tree-sitter-scala = "=0.24.0" +tree-sitter-toml-ng = "=0.7.0" +tree-sitter-vim = "0.4.0" +tree-sitter-vue-next = "0.1.0" +tree-sitter-xml = "=0.7.0" + +# Luau 747 (O-172): mlua `main`'s "Bump Luau to 0.747", whose mlua-sys takes `luau0-src` 0.24.0+luau747 from +# crates.io. mlua 0.12.2's mlua-sys pins 740's type numbers, so `luau0-src` cannot move alone. The patch goes once +# mlua 0.12.3 is on crates.io (its deprecation notes say "since 0.12.3"), which `mlua = "0.12"` takes. +[patch.crates-io] +mlua = { git = "https://github.com/mlua-rs/mlua", rev = "01b48a402fffa83c1429b4a49cfd55c6caaa5939" } +mlua-sys = { git = "https://github.com/mlua-rs/mlua", rev = "01b48a402fffa83c1429b4a49cfd55c6caaa5939" } +# Luau 747 with simonklee/luau's fixes (O-176), their flags on by default: linear-time plain `string.find`, +# `string.split` and literal `gsub`; table built-ins and pattern matching bounded between interrupts; a collector goal +# by heap size, for the carrier to set; small allocator pages while a heap is small; single-class patterns matched +# against a byte table; `string.format` and `bit32` edge cases defined; and a build without the codegen-only libraries, +# in one parallel pass, whose release builds define `NDEBUG` (no `LUAU_ASSERT`); and hashes keyed per VM from the OS +# (SipHash-1-3 for strings of 32 bytes or more, a salted interning table, every table key's main position) with a +# linear table resize, so a plugin can't flood a hash chain. `pairs` order over a table's hash part differs between +# VMs. Each fix moves back to stock once upstream takes it; the patch goes when the fork's diff is empty. mlua-sys 0.14 +# takes 0.24.1 unchanged. +luau0-src = { git = "https://github.com/simonklee/luau-src-rs", rev = "553892c79eac79091232f87218d6a94d97779f7b" } + +# File and line tables only, for the workspace and its dependencies: backtraces still show file and line, and a test +# binary's debug info is small enough to pass through the linker. Full debug info with `split-debuginfo = "unpacked"` +# left 30,700 `.dwo` files (4.8 GB) in a fresh target/ and about 600 MB more per edit in `tui`, which incremental +# builds never delete. `CARGO_PROFILE_DEV_DEBUG=true` brings full debug info back for a debugger. `test` inherits this. +[profile.dev] +debug = "line-tables-only" + +# Dependencies optimised a little, which the workspace's tests run on: a workspace test run took 166 s instead of 185 s, +# for 8 to 14 s more in a cold build and 3% more in target/. The workspace's own crates stay at 0, so an edit rebuilds +# as fast as before (opt-level 1 for them took an edit in tui from 5 s to 9-25 s). Full optimisation for the ones that +# do the most work in the tests: OpenTUI's Rust side, JSON, tree-sitter's runtime, and Luau's C++ (mlua-sys's build +# script compiles it, with mlua-sys's level). +[profile.dev.package."*"] +opt-level = 1 + +[profile.dev.package.opentui] +opt-level = 3 + +[profile.dev.package.serde_json] +opt-level = 3 + +[profile.dev.package.tree-sitter] +opt-level = 3 + +[profile.dev.package.mlua-sys] +opt-level = 3 + +# The idna_adapter stub debug-asserts that an ASCII host character is lowercase, and `idna` instantiates it. +# tower-http resolves a redirect's `Location` with `Url::join` before reqwest consults its redirect policy, so +# with `Policy::none()` a `Location` such as `https://B%C3%BCcher.example` still reaches the stub +# (A10-ascii-hosts). Every other parse goes through `js::parse_url`/`join_url` first. +[profile.dev.package.idna] +debug-assertions = false + +[profile.dev.package.idna_adapter] +debug-assertions = false + +[profile.release] +debug = "line-tables-only" + +[profile.dist] +inherits = "release" +lto = "fat" +codegen-units = 1 diff --git a/packages/cli-rs/README.md b/packages/cli-rs/README.md new file mode 100644 index 000000000000..25836f75cd6c --- /dev/null +++ b/packages/cli-rs/README.md @@ -0,0 +1,115 @@ +# OpenCode native CLI + +The OpenCode CLI and TUI in Rust, on OpenTUI's Rust crates. It is a client: it finds or starts the TypeScript +`opencode` server and talks to it over HTTP. Until it replaces `packages/cli` and `packages/tui` as `opencode`, its +command is `opencode-native`. + +## Try a preview build + +```sh +curl -fsSL https://raw.githubusercontent.com/simonklee/opencode-native-preview/main/install.sh | bash +``` + +This installs the newest nightly from +[`simonklee/opencode-native-preview`](https://github.com/simonklee/opencode-native-preview): `opencode-native` and the +TypeScript `opencode` server of the same commit, in `~/.local/lib/opencode-native/`, with a link in `~/.local/bin`. +The bundled `opencode` stays off `PATH`, so your own is untouched. Run the script again to update both; +`opencode-native upgrade` only says how. + +- **Which server it runs.** `OPENCODE_TS_BIN`, else the `opencode` beside its own executable (through links), else + `opencode` on `PATH`. That binary is the background service and the standalone server; `serve`, `plugin` and + remote access are delegated to it, and TypeScript TUI plugins run on its Bun. +- **Shared state.** It uses your real sessions, service and `cli.json`. The bundled server is built for the channel + `latest`, the default when `OPENCODE_CHANNEL` is unset, so it shares `service.json` with a TypeScript release. + When the TUI or `mini` finds a service of another version there, it restarts it on its own binary and says + `Restarting background server (version mismatch)...`, as the TypeScript TUI does. Under another `OPENCODE_CHANNEL` + it never restarts one. +- **Separate TUI state.** `OPENCODE_TUI_CHANNEL=native-preview` keeps tabs and other client-local state apart from + the TypeScript TUI's. +- **Reporting a bug.** Include `opencode-native --version` and the end of `~/.local/share/opencode/log/opencode.log` + (`opencode-native debug paths` prints the `log` directory). Each start logs `cli starting` with the version and + the commit. + +## Build + +```sh +bun run --cwd packages/cli-rs cargo build --bin opencode-native +``` + +Run cargo this way. `bun run cargo` first installs OpenTUI's native library, and cargo reads `.cargo/config.toml` +only inside `packages/cli-rs`. + +The client pins `packages/rust` of [`anomalyco/opentui`](https://github.com/anomalyco/opentui) to a release, as the +crates.io crates `opentui` and `opentui-sys` at +an exact `version` in `Cargo.toml`; the release tag is `v`. The crate has no native library, and the +bindings accept only the `opentui.h` they were generated from. `script/opentui-native.ts` (`bun run opentui:native`) installs the release's +`opentui-native--.zip` into `.opentui//host`, checked against the script's sha256 table and the +release's header hash, with the zip's licence files under `licenses/`. Zips are cached in +`$XDG_CACHE_HOME/opencode/opentui-native`. A plain `cargo` run that finds the directory empty fails with the command +to run. `opentui:native --target ` installs another target's library and prints the directory to set as +`OPENTUI_LIB_DIR`. + +To move to another release, add its rows to the table in `script/opentui-native.ts` (from +`gh release view -R anomalyco/opentui --json assets`), change the `version` and the directory in +`.cargo/config.toml`, and commit them with `Cargo.lock`. A pin between releases (a git `rev`) has no zip: build its +library from OpenTUI's source and set `OPENTUI_LIB_DIR`. Changes to OpenTUI's Rust crates are pull requests to +`anomalyco/opentui`. + +On Linux and macOS the library links statically with its own libc++, so neither the build nor the binary needs +`libopentui` or a system libc++. The Linux release builds match OpenTUI's floor: + +- **glibc**: `cargo zigbuild --profile dist --target x86_64-unknown-linux-gnu.2.17` (or `aarch64-…`). The binary + needs `libc.so.6`, `libm.so.6`, `libpthread.so.0` and `libdl.so.2` at `GLIBC_2.17` or older, and no libstdc++ or + libgcc_s. +- **musl** (`x86_64-unknown-linux-musl`, `aarch64-unknown-linux-musl`): fully static, with Rust's default + `crt-static` (O-188), so the binary needs no library and runs on any Linux. A static executable cannot `dlopen`, so + the musl builds have no Zed editor context. + +`--release` keeps line-table debug info (about 180 MB; `strip` brings it to about 40 MB). `--profile dist` adds fat +LTO for a smaller, faster binary in `target/dist/`; its link takes about 10 minutes. + +**Editor.** rust-analyzer finds no project when you open the repository root. Open `packages/cli-rs`, or in VS Code +set `{ "rust-analyzer.linkedProjects": ["packages/cli-rs/Cargo.toml"] }`. Its `cargo check` fails in `opentui-sys` +until you run `bun run --cwd packages/cli-rs opentui:native` once. + +## Run + +```sh +bun run --cwd packages/cli-rs cargo build --release --bin opencode-native +cd ~/src/my-project +~/src/opencode/packages/cli-rs/target/release/opencode-native # home +~/src/opencode/packages/cli-rs/target/release/opencode-native -c # continue the last session here +``` + +With no flags it finds the running background service, as `opencode` does, or starts one. +`bun run --cwd packages/cli-rs live [directory]` (`script/live.sh`) instead connects to the live service with the URL +and password `opencode service` reports, on the `dev` TUI storage channel, as the root `dev:live` does. + +The TUI reads the same `cli.json` (keybinds, theme, session settings) as the TypeScript TUI. Main keys, with the +default leader `ctrl+x`: + +| Key | Action | +| --- | --- | +| `enter` | Send the prompt (on home it creates a session) | +| `esc` | Interrupt a running reply; close a dialog; reject a permission | +| `l`, `m`, `n` | Session list, models, new session | +| `ctrl+p` | Command palette | +| `pageup`, `pagedown` | Scroll the transcript | +| `ctrl+g` or `home`, `ctrl+alt+g` or `end` | First and last message | +| `ctrl+c` | Clear the prompt, or quit when it is empty | + +## Plugins + +`opencode-native` runs the TypeScript TUI plugins the TypeScript TUI runs, on a Bun process of its own. It also runs +Luau plugins. `/plugins` shows each plugin's state and error. + +- [`docs/plugins.md`](docs/plugins.md): how plugins work, how to write one in Luau or TypeScript, and how they are + found, approved and reloaded. +- [`docs/plugin-abi.md`](docs/plugin-abi.md): the contract, in full. +- [`crates/plugin-abi/README.md`](crates/plugin-abi/README.md): the contract's Rust SDK, which the built-ins use. + +## More + +- [`docs/architecture.md`](docs/architecture.md): the crates, how the client reaches the server, the store, the TUI. +- [`docs/testing.md`](docs/testing.md): the parity suites against the TypeScript client, the other checks, and the + manual Windows checklist. diff --git a/packages/cli-rs/assets/queries/agda/highlights.scm b/packages/cli-rs/assets/queries/agda/highlights.scm new file mode 100644 index 000000000000..4626a8c12cae --- /dev/null +++ b/packages/cli-rs/assets/queries/agda/highlights.scm @@ -0,0 +1,87 @@ +; Constants +(integer) @number + +; Variables and Symbols +(typed_binding + (atom + (qid) @variable)) + +(untyped_binding) @variable + +(typed_binding + (expr) @type) + +(id) @function + +(bid) @function + +(function_name + (atom + (qid) @function)) + +(field_name) @function + +[ + (data_name) + (record_name) +] @constructor + +; Set +(SetN) @type.builtin + +(expr + . + (atom) @function) + +((atom) @boolean + (#any-of? @boolean "true" "false" "True" "False")) + +; Imports and Module Declarations +"import" @keyword.import + +(module_name) @module + +; Pragmas and comments +(pragma) @keyword.directive + +(comment) @comment @spell + +; Keywords +[ + "where" + "data" + "rewrite" + "postulate" + "public" + "private" + "tactic" + "Prop" + "quote" + "renaming" + "open" + "in" + "hiding" + "constructor" + "abstract" + "let" + "field" + "mutual" + "module" + "infix" + "infixl" + "infixr" +] @keyword + +"record" @keyword.type + +;(expr +; f_name: (atom) @function) +; Brackets +[ + "(" + ")" + "{" + "}" +] @punctuation.bracket + +"=" @operator diff --git a/packages/cli-rs/assets/queries/bash/highlights.scm b/packages/cli-rs/assets/queries/bash/highlights.scm new file mode 100644 index 000000000000..98d28abaee26 --- /dev/null +++ b/packages/cli-rs/assets/queries/bash/highlights.scm @@ -0,0 +1,261 @@ +[ + "(" + ")" + "{" + "}" + "[" + "]" + "[[" + "]]" + "((" + "))" +] @punctuation.bracket + +[ + ";" + ";;" + ";&" + ";;&" + "&" +] @punctuation.delimiter + +[ + ">" + ">>" + "<" + "<<" + "&&" + "|" + "|&" + "||" + "=" + "+=" + "=~" + "==" + "!=" + "&>" + "&>>" + "<&" + ">&" + ">|" + "<&-" + ">&-" + "<<-" + "<<<" + ".." + "!" +] @operator + +; Do *not* spell check strings since they typically have some sort of +; interpolation in them, or, are typically used for things like filenames, URLs, +; flags and file content. +[ + (string) + (raw_string) + (ansi_c_string) + (heredoc_body) +] @string + +[ + (heredoc_start) + (heredoc_end) +] @label + +(variable_assignment + (word) @string) + +(command + argument: "$" @string) ; bare dollar + +(concatenation + (word) @string) + +[ + "if" + "then" + "else" + "elif" + "fi" + "case" + "in" + "esac" +] @keyword.conditional + +[ + "for" + "do" + "done" + "select" + "until" + "while" +] @keyword.repeat + +[ + "declare" + "typeset" + "readonly" + "local" + "unset" + "unsetenv" +] @keyword + +"export" @keyword.import + +"function" @keyword.function + +(special_variable_name) @constant + +; trap -l +((word) @constant.builtin + (#any-of? @constant.builtin + "SIGHUP" "SIGINT" "SIGQUIT" "SIGILL" "SIGTRAP" "SIGABRT" "SIGBUS" "SIGFPE" "SIGKILL" "SIGUSR1" + "SIGSEGV" "SIGUSR2" "SIGPIPE" "SIGALRM" "SIGTERM" "SIGSTKFLT" "SIGCHLD" "SIGCONT" "SIGSTOP" + "SIGTSTP" "SIGTTIN" "SIGTTOU" "SIGURG" "SIGXCPU" "SIGXFSZ" "SIGVTALRM" "SIGPROF" "SIGWINCH" + "SIGIO" "SIGPWR" "SIGSYS" "SIGRTMIN" "SIGRTMIN+1" "SIGRTMIN+2" "SIGRTMIN+3" "SIGRTMIN+4" + "SIGRTMIN+5" "SIGRTMIN+6" "SIGRTMIN+7" "SIGRTMIN+8" "SIGRTMIN+9" "SIGRTMIN+10" "SIGRTMIN+11" + "SIGRTMIN+12" "SIGRTMIN+13" "SIGRTMIN+14" "SIGRTMIN+15" "SIGRTMAX-14" "SIGRTMAX-13" + "SIGRTMAX-12" "SIGRTMAX-11" "SIGRTMAX-10" "SIGRTMAX-9" "SIGRTMAX-8" "SIGRTMAX-7" "SIGRTMAX-6" + "SIGRTMAX-5" "SIGRTMAX-4" "SIGRTMAX-3" "SIGRTMAX-2" "SIGRTMAX-1" "SIGRTMAX")) + +((word) @boolean + (#any-of? @boolean "true" "false")) + +(comment) @comment @spell + +(test_operator) @operator + +(command_substitution + "$(" @punctuation.special + ")" @punctuation.special) + +(process_substitution + [ + "<(" + ">(" + ] @punctuation.special + ")" @punctuation.special) + +(arithmetic_expansion + [ + "$((" + "((" + ] @punctuation.special + "))" @punctuation.special) + +(arithmetic_expansion + "," @punctuation.delimiter) + +(ternary_expression + [ + "?" + ":" + ] @keyword.conditional.ternary) + +(binary_expression + operator: _ @operator) + +(unary_expression + operator: _ @operator) + +(postfix_expression + operator: _ @operator) + +(function_definition + name: (word) @function) + +(command_name + (word) @function.call) + +(command_name + (word) @function.builtin + (#any-of? @function.builtin + "." ":" "alias" "bg" "bind" "break" "builtin" "caller" "cd" "command" "compgen" "complete" + "compopt" "continue" "coproc" "dirs" "disown" "echo" "enable" "eval" "exec" "exit" "false" "fc" + "fg" "getopts" "hash" "help" "history" "jobs" "kill" "let" "logout" "mapfile" "popd" "printf" + "pushd" "pwd" "read" "readarray" "return" "set" "shift" "shopt" "source" "suspend" "test" "time" + "times" "trap" "true" "type" "typeset" "ulimit" "umask" "unalias" "wait")) + +(command + argument: [ + (word) @variable.parameter + (concatenation + (word) @variable.parameter) + ]) + +(declaration_command + (word) @variable.parameter) + +(unset_command + (word) @variable.parameter) + +(number) @number + +((word) @number + (#match? @number "^[0-9]+$")) + +(file_redirect + (word) @string.special.path) + +(herestring_redirect + (word) @string) + +(file_descriptor) @operator + +(simple_expansion + "$" @punctuation.special) @none + +(expansion + "${" @punctuation.special + "}" @punctuation.special) @none + +(expansion + operator: _ @punctuation.special) + +(expansion + "@" + . + operator: _ @character.special) + +((expansion + (subscript + index: (word) @character.special)) + (#any-of? @character.special "@" "*")) + +"``" @punctuation.special + +(variable_name) @variable + +((variable_name) @constant + (#match? @constant "^[A-Z][A-Z_0-9]*$")) + +((variable_name) @variable.builtin + (#any-of? @variable.builtin + ; https://www.gnu.org/software/bash/manual/html_node/Bourne-Shell-Variables.html + "CDPATH" "HOME" "IFS" "MAIL" "MAILPATH" "OPTARG" "OPTIND" "PATH" "PS1" "PS2" + ; https://www.gnu.org/software/bash/manual/html_node/Bash-Variables.html + "_" "BASH" "BASHOPTS" "BASHPID" "BASH_ALIASES" "BASH_ARGC" "BASH_ARGV" "BASH_ARGV0" "BASH_CMDS" + "BASH_COMMAND" "BASH_COMPAT" "BASH_ENV" "BASH_EXECUTION_STRING" "BASH_LINENO" + "BASH_LOADABLES_PATH" "BASH_REMATCH" "BASH_SOURCE" "BASH_SUBSHELL" "BASH_VERSINFO" + "BASH_VERSION" "BASH_XTRACEFD" "CHILD_MAX" "COLUMNS" "COMP_CWORD" "COMP_LINE" "COMP_POINT" + "COMP_TYPE" "COMP_KEY" "COMP_WORDBREAKS" "COMP_WORDS" "COMPREPLY" "COPROC" "DIRSTACK" "EMACS" + "ENV" "EPOCHREALTIME" "EPOCHSECONDS" "EUID" "EXECIGNORE" "FCEDIT" "FIGNORE" "FUNCNAME" + "FUNCNEST" "GLOBIGNORE" "GROUPS" "histchars" "HISTCMD" "HISTCONTROL" "HISTFILE" "HISTFILESIZE" + "HISTIGNORE" "HISTSIZE" "HISTTIMEFORMAT" "HOSTFILE" "HOSTNAME" "HOSTTYPE" "IGNOREEOF" "INPUTRC" + "INSIDE_EMACS" "LANG" "LC_ALL" "LC_COLLATE" "LC_CTYPE" "LC_MESSAGES" "LC_NUMERIC" "LC_TIME" + "LINENO" "LINES" "MACHTYPE" "MAILCHECK" "MAPFILE" "OLDPWD" "OPTERR" "OSTYPE" "PIPESTATUS" + "POSIXLY_CORRECT" "PPID" "PROMPT_COMMAND" "PROMPT_DIRTRIM" "PS0" "PS3" "PS4" "PWD" "RANDOM" + "READLINE_ARGUMENT" "READLINE_LINE" "READLINE_MARK" "READLINE_POINT" "REPLY" "SECONDS" "SHELL" + "SHELLOPTS" "SHLVL" "SRANDOM" "TIMEFORMAT" "TMOUT" "TMPDIR" "UID")) + +(case_item + value: (word) @variable.parameter) + +[ + (regex) + (extglob_pattern) +] @string.regexp + +((program + . + (comment) @keyword.directive @nospell) + (#match? @keyword.directive "^#!/")) diff --git a/packages/cli-rs/assets/queries/c/highlights.scm b/packages/cli-rs/assets/queries/c/highlights.scm new file mode 100644 index 000000000000..956178b8abf3 --- /dev/null +++ b/packages/cli-rs/assets/queries/c/highlights.scm @@ -0,0 +1,341 @@ +; Lower priority to prefer @variable.parameter when identifier appears in parameter_declaration. +((identifier) @variable + (#set! priority 95)) + +(preproc_def + (preproc_arg) @variable) + +[ + "default" + "goto" + "asm" + "__asm__" +] @keyword + +[ + "enum" + "struct" + "union" + "typedef" +] @keyword.type + +[ + "sizeof" + "offsetof" +] @keyword.operator + +(alignof_expression + . + _ @keyword.operator) + +"return" @keyword.return + +[ + "while" + "for" + "do" + "continue" + "break" +] @keyword.repeat + +[ + "if" + "else" + "case" + "switch" +] @keyword.conditional + +[ + "#if" + "#ifdef" + "#ifndef" + "#else" + "#elif" + "#endif" + "#elifdef" + "#elifndef" + (preproc_directive) +] @keyword.directive + +"#define" @keyword.directive.define + +"#include" @keyword.import + +[ + ";" + ":" + "," + "." + "::" +] @punctuation.delimiter + +"..." @punctuation.special + +[ + "(" + ")" + "[" + "]" + "{" + "}" +] @punctuation.bracket + +[ + "=" + "-" + "*" + "/" + "+" + "%" + "~" + "|" + "&" + "^" + "<<" + ">>" + "->" + "<" + "<=" + ">=" + ">" + "==" + "!=" + "!" + "&&" + "||" + "-=" + "+=" + "*=" + "/=" + "%=" + "|=" + "&=" + "^=" + ">>=" + "<<=" + "--" + "++" +] @operator + +; Make sure the comma operator is given a highlight group after the comma +; punctuator so the operator is highlighted properly. +(comma_expression + "," @operator) + +[ + (true) + (false) +] @boolean + +(conditional_expression + [ + "?" + ":" + ] @keyword.conditional.ternary) + +(string_literal) @string + +(system_lib_string) @string + +(escape_sequence) @string.escape + +(null) @constant.builtin + +(number_literal) @number + +(char_literal) @character + +(preproc_defined) @function.macro + +((field_expression + (field_identifier) @property) @_parent + (#not-has-parent? @_parent template_method function_declarator call_expression)) + +(field_designator) @property + +((field_identifier) @property + (#has-ancestor? @property field_declaration) + (#not-has-ancestor? @property function_declarator)) + +(statement_identifier) @label + +(declaration + type: (type_identifier) @_type + declarator: (identifier) @label + (#eq? @_type "__label__")) + +[ + (type_identifier) + (type_descriptor) +] @type + +(storage_class_specifier) @keyword.modifier + +[ + (type_qualifier) + (gnu_asm_qualifier) + "__extension__" +] @keyword.modifier + +(linkage_specification + "extern" @keyword.modifier) + +(type_definition + declarator: (type_identifier) @type.definition) + +(primitive_type) @type.builtin + +(sized_type_specifier + _ @type.builtin + type: _?) + +((identifier) @constant + (#match? @constant "^[A-Z][A-Z0-9_]+$")) + +(preproc_def + (preproc_arg) @constant + (#match? @constant "^[A-Z][A-Z0-9_]+$")) + +(enumerator + name: (identifier) @constant) + +(case_statement + value: (identifier) @constant) + +((identifier) @constant.builtin + ; format-ignore + (#any-of? @constant.builtin + "stderr" "stdin" "stdout" + "__FILE__" "__LINE__" "__DATE__" "__TIME__" + "__STDC__" "__STDC_VERSION__" "__STDC_HOSTED__" + "__cplusplus" "__OBJC__" "__ASSEMBLER__" + "__BASE_FILE__" "__FILE_NAME__" "__INCLUDE_LEVEL__" + "__TIMESTAMP__" "__clang__" "__clang_major__" + "__clang_minor__" "__clang_patchlevel__" + "__clang_version__" "__clang_literal_encoding__" + "__clang_wide_literal_encoding__" + "__FUNCTION__" "__func__" "__PRETTY_FUNCTION__" + "__VA_ARGS__" "__VA_OPT__")) + +(preproc_def + (preproc_arg) @constant.builtin + ; format-ignore + (#any-of? @constant.builtin + "stderr" "stdin" "stdout" + "__FILE__" "__LINE__" "__DATE__" "__TIME__" + "__STDC__" "__STDC_VERSION__" "__STDC_HOSTED__" + "__cplusplus" "__OBJC__" "__ASSEMBLER__" + "__BASE_FILE__" "__FILE_NAME__" "__INCLUDE_LEVEL__" + "__TIMESTAMP__" "__clang__" "__clang_major__" + "__clang_minor__" "__clang_patchlevel__" + "__clang_version__" "__clang_literal_encoding__" + "__clang_wide_literal_encoding__" + "__FUNCTION__" "__func__" "__PRETTY_FUNCTION__" + "__VA_ARGS__" "__VA_OPT__")) + +(attribute_specifier + (argument_list + (identifier) @variable.builtin)) + +(attribute_specifier + (argument_list + (call_expression + function: (identifier) @variable.builtin))) + +((call_expression + function: (identifier) @function.builtin) + (#match? @function.builtin "^__builtin_")) + +((call_expression + function: (identifier) @function.builtin) + (#has-ancestor? @function.builtin attribute_specifier)) + +; Preproc def / undef +(preproc_def + name: (_) @constant.macro) + +(preproc_call + directive: (preproc_directive) @_u + argument: (_) @constant.macro + (#eq? @_u "#undef")) + +(preproc_ifdef + name: (identifier) @constant.macro) + +(preproc_elifdef + name: (identifier) @constant.macro) + +(preproc_defined + (identifier) @constant.macro) + +(call_expression + function: (identifier) @function.call) + +(call_expression + function: (field_expression + field: (field_identifier) @function.call)) + +(function_declarator + declarator: (identifier) @function) + +(function_declarator + declarator: (parenthesized_declarator + (pointer_declarator + declarator: (field_identifier) @function))) + +(preproc_function_def + name: (identifier) @function.macro) + +(comment) @comment @spell + +((comment) @comment.documentation + (#match? @comment.documentation "^/[*][*][^*](?s:.)*[*]/$")) + +; Parameters +(parameter_declaration + declarator: (identifier) @variable.parameter) + +(parameter_declaration + declarator: (array_declarator) @variable.parameter) + +(parameter_declaration + declarator: (pointer_declarator) @variable.parameter) + +; K&R functions +; To enable support for K&R functions, +; add the following lines to your own query config and uncomment them. +; They are commented out as they'll conflict with C++ +; Note that you'll need to have `; extends` at the top of your query file. +; +; (parameter_list (identifier) @variable.parameter) +; +; (function_definition +; declarator: _ +; (declaration +; declarator: (identifier) @variable.parameter)) +; +; (function_definition +; declarator: _ +; (declaration +; declarator: (array_declarator) @variable.parameter)) +; +; (function_definition +; declarator: _ +; (declaration +; declarator: (pointer_declarator) @variable.parameter)) +(preproc_params + (identifier) @variable.parameter) + +[ + "__attribute__" + "__declspec" + "__based" + "__cdecl" + "__clrcall" + "__stdcall" + "__fastcall" + "__thiscall" + "__vectorcall" + (ms_pointer_modifier) + (attribute_declaration) +] @attribute diff --git a/packages/cli-rs/assets/queries/clojure/highlights.scm b/packages/cli-rs/assets/queries/clojure/highlights.scm new file mode 100644 index 000000000000..264276634197 --- /dev/null +++ b/packages/cli-rs/assets/queries/clojure/highlights.scm @@ -0,0 +1,347 @@ +; >> Explanation +; Parsers for lisps are a bit weird in that they just return the raw forms. +; This means we have to do a bit of extra work in the queries to get things +; highlighted as they should be. +; +; For the most part this means that some things have to be assigned multiple +; groups. +; By doing this we can add a basic capture and then later refine it with more +; specialized captures. +; This can mean that sometimes things are highlighted weirdly because they +; have multiple highlight groups applied to them. +; >> Literals +((dis_expr) @comment + (#set! priority 105) + ; Higher priority to mark the whole sexpr as a comment + ) + +(kwd_lit) @string.special.symbol + +(str_lit) @string + +(num_lit) @number + +(char_lit) @character + +(bool_lit) @boolean + +(nil_lit) @constant.builtin + +(comment) @comment @spell + +(regex_lit) @string.regexp + +[ + "'" + "`" +] @string.escape + +[ + "~" + "~@" + "#" +] @punctuation.special + +[ + "{" + "}" + "[" + "]" + "(" + ")" +] @punctuation.bracket + +; >> Symbols +; General symbol highlighting +(sym_lit) @variable + +; General function calls +(list_lit + . + (sym_lit) @function.call) + +(anon_fn_lit + . + (sym_lit) @function.call) + +; Quoted symbols +(quoting_lit + (sym_lit) @string.special.symbol) + +(syn_quoting_lit + (sym_lit) @string.special.symbol) + +; Used in destructure pattern +((sym_lit) @variable.parameter + (#lua-match? @variable.parameter "^[&]")) + +; Inline function variables +((sym_lit) @variable.builtin + (#lua-match? @variable.builtin "^%%%d*$")) + +((sym_lit) @variable.builtin + (#eq? @variable.builtin "%&")) + +; Constructor +((sym_lit) @constructor + (#lua-match? @constructor "^-%>[^>].*")) + +; Builtin dynamic variables +((sym_lit) @variable.builtin + (#any-of? @variable.builtin + "*agent*" "*allow-unresolved-vars*" "*assert*" "*clojure-version*" "*command-line-args*" + "*compile-files*" "*compile-path*" "*compiler-options*" "*data-readers*" + "*default-data-reader-fn*" "*err*" "*file*" "*flush-on-newline*" "*fn-loader*" "*in*" + "*math-context*" "*ns*" "*out*" "*print-dup*" "*print-length*" "*print-level*" "*print-meta*" + "*print-namespace-maps*" "*print-readably*" "*read-eval*" "*reader-resolver*" "*source-path*" + "*suppress-read*" "*unchecked-math*" "*use-context-classloader*" "*verbose-defrecords*" + "*warn-on-reflection*")) + +; Builtin repl variables +((sym_lit) @variable.builtin + (#any-of? @variable.builtin "*1" "*2" "*3" "*e")) + +; Types +(sym_lit + name: (sym_name) @_name + (#lua-match? @_name "^[%u][^/%s]*$")) @type + +; Symbols with `.` but not `/` +(sym_lit + !namespace + name: (sym_name) @_name + (#lua-match? @_name "^[^.]+[.]")) @type + +; Interop +; (.instanceMember instance args*) +; (.instanceMember Classname args*) +((sym_lit + name: (sym_name) @_name) @function.method + (#lua-match? @_name "^%.[^-]")) + +; (.-instanceField instance) +((sym_name) @variable.member + (#lua-match? @variable.member "^%.%-%S*")) + +; Classname/staticField +(sym_lit + namespace: (sym_ns) @_namespace + (#lua-match? @_namespace "^[%u]%S*$")) @variable.member + +; (Classname/staticMethod args*) +(list_lit + . + (sym_lit + namespace: (sym_ns) @_namespace + (#lua-match? @_namespace "^%u")) @function.method) + +; TODO: Special casing for the `.` macro +; Operators +((sym_lit) @operator + (#any-of? @operator "*" "*'" "+" "+'" "-" "-'" "/" "<" "<=" ">" ">=" "=" "==")) + +((sym_lit) @keyword.operator + (#any-of? @keyword.operator "not" "not=" "and" "or")) + +; Definition functions +((sym_lit) @keyword + (#any-of? @keyword + "def" "defonce" "defrecord" "defmacro" "definline" "definterface" "defmulti" "defmethod" + "defstruct" "defprotocol" "deftype")) + +((sym_lit) @keyword + (#eq? @keyword "declare")) + +((sym_name) @keyword.coroutine + (#any-of? @keyword.coroutine + "alts!" "alts!!" "await" "await-for" "await1" "chan" "close!" "future" "go" "sync" "thread" + "timeout" "!" ">!!")) + +((sym_lit + name: (sym_name) @_keyword.function.name) @keyword.function + (#any-of? @_keyword.function.name "defn" "defn-" "fn" "fn*")) + +; Comment +((sym_lit) @comment + (#eq? @comment "comment")) + +; Conditionals +((sym_lit) @keyword.conditional + (#any-of? @keyword.conditional "case" "cond" "cond->" "cond->>" "condp")) + +((sym_lit) @keyword.conditional + (#any-of? @keyword.conditional "if" "if-let" "if-not" "if-some")) + +((sym_lit) @keyword.conditional + (#any-of? @keyword.conditional "when" "when-first" "when-let" "when-not" "when-some")) + +; Repeats +((sym_lit) @keyword.repeat + (#any-of? @keyword.repeat "doseq" "dotimes" "for" "loop" "recur" "while")) + +; Exception +((sym_lit) @keyword.exception + (#any-of? @keyword.exception "throw" "try" "catch" "finally")) + +; Includes +((sym_lit) @keyword.import + (#any-of? @keyword.import "ns" "import" "require" "use")) + +; Builtin macros +; TODO: Do all these items belong here? +((sym_lit + name: (sym_name) @function.macro) + (#any-of? @function.macro + "." ".." "->" "->>" "amap" "areduce" "as->" "assert" "binding" "bound-fn" "delay" "do" "dosync" + "doto" "extend-protocol" "extend-type" "gen-class" "gen-interface" "io!" "lazy-cat" "lazy-seq" + "let" "letfn" "locking" "memfn" "monitor-enter" "monitor-exit" "proxy" "proxy-super" "pvalues" + "refer-clojure" "reify" "set!" "some->" "some->>" "time" "unquote" "unquote-splicing" "var" + "vswap!" "with-bindings" "with-in-str" "with-loading-context" "with-local-vars" "with-open" + "with-out-str" "with-precision" "with-redefs")) + +; All builtin functions +; (->> (ns-publics *ns*) +; (keep (fn [[s v]] (when-not (:macro (meta v)) s))) +; sort +; clojure.pprint/pprint)) +; ...and then lots of manual filtering... +((sym_lit + name: (sym_name) @function.builtin) + (#any-of? @function.builtin + "->ArrayChunk" "->Eduction" "->Vec" "->VecNode" "->VecSeq" "-cache-protocol-fn" "-reset-methods" + "PrintWriter-on" "StackTraceElement->vec" "Throwable->map" "accessor" "aclone" "add-classpath" + "add-tap" "add-watch" "agent" "agent-error" "agent-errors" "aget" "alength" "alias" "all-ns" + "alter" "alter-meta!" "alter-var-root" "ancestors" "any?" "apply" "array-map" "aset" + "aset-boolean" "aset-byte" "aset-char" "aset-double" "aset-float" "aset-int" "aset-long" + "aset-short" "assoc" "assoc!" "assoc-in" "associative?" "atom" "bases" "bean" "bigdec" "bigint" + "biginteger" "bit-and" "bit-and-not" "bit-clear" "bit-flip" "bit-not" "bit-or" "bit-set" + "bit-shift-left" "bit-shift-right" "bit-test" "bit-xor" "boolean" "boolean-array" "boolean?" + "booleans" "bound-fn*" "bound?" "bounded-count" "butlast" "byte" "byte-array" "bytes" "bytes?" + "cast" "cat" "char" "char-array" "char-escape-string" "char-name-string" "char?" "chars" "chunk" + "chunk-append" "chunk-buffer" "chunk-cons" "chunk-first" "chunk-next" "chunk-rest" + "chunked-seq?" "class" "class?" "clear-agent-errors" "clojure-version" "coll?" "commute" "comp" + "comparator" "compare" "compare-and-set!" "compile" "complement" "completing" "concat" "conj" + "conj!" "cons" "constantly" "construct-proxy" "contains?" "count" "counted?" "create-ns" + "create-struct" "cycle" "dec" "dec'" "decimal?" "dedupe" "default-data-readers" "delay?" + "deliver" "denominator" "deref" "derive" "descendants" "destructure" "disj" "disj!" "dissoc" + "dissoc!" "distinct" "distinct?" "doall" "dorun" "double" "double-array" "eduction" "empty" + "empty?" "ensure" "ensure-reduced" "enumeration-seq" "error-handler" "error-mode" "eval" "even?" + "every-pred" "every?" "extend" "extenders" "extends?" "false?" "ffirst" "file-seq" "filter" + "filterv" "find" "find-keyword" "find-ns" "find-protocol-impl" "find-protocol-method" "find-var" + "first" "flatten" "float" "float-array" "float?" "floats" "flush" "fn?" "fnext" "fnil" "force" + "format" "frequencies" "future-call" "future-cancel" "future-cancelled?" "future-done?" + "future?" "gensym" "get" "get-in" "get-method" "get-proxy-class" "get-thread-bindings" + "get-validator" "group-by" "halt-when" "hash" "hash-combine" "hash-map" "hash-ordered-coll" + "hash-set" "hash-unordered-coll" "ident?" "identical?" "identity" "ifn?" "in-ns" "inc" "inc'" + "indexed?" "init-proxy" "inst-ms" "inst-ms*" "inst?" "instance?" "int" "int-array" "int?" + "integer?" "interleave" "intern" "interpose" "into" "into-array" "ints" "isa?" "iterate" + "iterator-seq" "juxt" "keep" "keep-indexed" "key" "keys" "keyword" "keyword?" "last" "line-seq" + "list" "list*" "list?" "load" "load-file" "load-reader" "load-string" "loaded-libs" "long" + "long-array" "longs" "macroexpand" "macroexpand-1" "make-array" "make-hierarchy" "map" + "map-entry?" "map-indexed" "map?" "mapcat" "mapv" "max" "max-key" "memoize" "merge" "merge-with" + "meta" "method-sig" "methods" "min" "min-key" "mix-collection-hash" "mod" "munge" "name" + "namespace" "namespace-munge" "nat-int?" "neg-int?" "neg?" "newline" "next" "nfirst" "nil?" + "nnext" "not-any?" "not-empty" "not-every?" "ns-aliases" "ns-imports" "ns-interns" "ns-map" + "ns-name" "ns-publics" "ns-refers" "ns-resolve" "ns-unalias" "ns-unmap" "nth" "nthnext" + "nthrest" "num" "number?" "numerator" "object-array" "odd?" "parents" "partial" "partition" + "partition-all" "partition-by" "pcalls" "peek" "persistent!" "pmap" "pop" "pop!" + "pop-thread-bindings" "pos-int?" "pos?" "pr" "pr-str" "prefer-method" "prefers" + "primitives-classnames" "print" "print-ctor" "print-dup" "print-method" "print-simple" + "print-str" "printf" "println" "println-str" "prn" "prn-str" "promise" "proxy-call-with-super" + "proxy-mappings" "proxy-name" "push-thread-bindings" "qualified-ident?" "qualified-keyword?" + "qualified-symbol?" "quot" "rand" "rand-int" "rand-nth" "random-sample" "range" "ratio?" + "rational?" "rationalize" "re-find" "re-groups" "re-matcher" "re-matches" "re-pattern" "re-seq" + "read" "read+string" "read-line" "read-string" "reader-conditional" "reader-conditional?" + "realized?" "record?" "reduce" "reduce-kv" "reduced" "reduced?" "reductions" "ref" + "ref-history-count" "ref-max-history" "ref-min-history" "ref-set" "refer" + "release-pending-sends" "rem" "remove" "remove-all-methods" "remove-method" "remove-ns" + "remove-tap" "remove-watch" "repeat" "repeatedly" "replace" "replicate" "requiring-resolve" + "reset!" "reset-meta!" "reset-vals!" "resolve" "rest" "restart-agent" "resultset-seq" "reverse" + "reversible?" "rseq" "rsubseq" "run!" "satisfies?" "second" "select-keys" "send" "send-off" + "send-via" "seq" "seq?" "seqable?" "seque" "sequence" "sequential?" "set" + "set-agent-send-executor!" "set-agent-send-off-executor!" "set-error-handler!" "set-error-mode!" + "set-validator!" "set?" "short" "short-array" "shorts" "shuffle" "shutdown-agents" + "simple-ident?" "simple-keyword?" "simple-symbol?" "slurp" "some" "some-fn" "some?" "sort" + "sort-by" "sorted-map" "sorted-map-by" "sorted-set" "sorted-set-by" "sorted?" "special-symbol?" + "spit" "split-at" "split-with" "str" "string?" "struct" "struct-map" "subs" "subseq" "subvec" + "supers" "swap!" "swap-vals!" "symbol" "symbol?" "tagged-literal" "tagged-literal?" "take" + "take-last" "take-nth" "take-while" "tap>" "test" "the-ns" "thread-bound?" "to-array" + "to-array-2d" "trampoline" "transduce" "transient" "tree-seq" "true?" "type" "unchecked-add" + "unchecked-add-int" "unchecked-byte" "unchecked-char" "unchecked-dec" "unchecked-dec-int" + "unchecked-divide-int" "unchecked-double" "unchecked-float" "unchecked-inc" "unchecked-inc-int" + "unchecked-int" "unchecked-long" "unchecked-multiply" "unchecked-multiply-int" + "unchecked-negate" "unchecked-negate-int" "unchecked-remainder-int" "unchecked-short" + "unchecked-subtract" "unchecked-subtract-int" "underive" "unquote" "unquote-splicing" + "unreduced" "unsigned-bit-shift-right" "update" "update-in" "update-proxy" "uri?" "uuid?" "val" + "vals" "var-get" "var-set" "var?" "vary-meta" "vec" "vector" "vector-of" "vector?" "volatile!" + "volatile?" "vreset!" "with-bindings*" "with-meta" "with-redefs-fn" "xml-seq" "zero?" "zipmap" + ; earlier + "drop" "drop-last" "drop-while" "double?" "doubles" "ex-data" "ex-info" + ; 1.10 + "ex-cause" "ex-message" + ; 1.11 + "NaN?" "abs" "infinite?" "iteration" "random-uuid" "parse-boolean" "parse-double" "parse-long" + "parse-uuid" "seq-to-map-for-destructuring" "update-keys" "update-vals" + ; 1.12 + "partitionv" "partitionv-all" "splitv-at")) + +; >> Context based highlighting +; def-likes +; Correctly highlight docstrings +;(list_lit +;. +;(sym_lit) @_keyword ; Don't really want to highlight twice +;(#any-of? @_keyword +;"def" "defonce" "defrecord" "defmacro" "definline" +;"defmulti" "defmethod" "defstruct" "defprotocol" +;"deftype") +;. +;(sym_lit) +;. +; TODO: Add @comment highlight +;(str_lit)? +;. +;(_)) +; Function definitions +(list_lit + . + ((sym_lit + name: (sym_name) @_keyword.function.name) + (#any-of? @_keyword.function.name "defn" "defn-" "fn" "fn*")) + . + (sym_lit)? @function + . + ; TODO: Add @comment highlight + (str_lit)?) + +; TODO: Fix parameter highlighting +; I think there's a bug here in nvim-treesitter +; TODO: Reproduce bug and file ticket +;. +;[(vec_lit +; (sym_lit)* @variable.parameter) +; (list_lit +; (vec_lit +; (sym_lit)* @variable.parameter))]) +;[((list_lit +; (vec_lit +; (sym_lit) @variable.parameter) +; (_) +; + +; ((vec_lit +; (sym_lit) @variable.parameter) +; (_))) +; Meta punctuation +; NOTE: When the above `Function definitions` query captures the +; the @function it also captures the child meta_lit +; We capture the meta_lit symbol (^) after so that the later +; highlighting overrides the former +"^" @punctuation.special + +; namespaces +(list_lit + . + (sym_lit) @_include + (#eq? @_include "ns") + . + (sym_lit) @module) diff --git a/packages/cli-rs/assets/queries/cpp/highlights.scm b/packages/cli-rs/assets/queries/cpp/highlights.scm new file mode 100644 index 000000000000..7477e3d220f3 --- /dev/null +++ b/packages/cli-rs/assets/queries/cpp/highlights.scm @@ -0,0 +1,268 @@ +; inherits: c + +((identifier) @variable.member + (#match? @variable.member "^m_(?s:.)*$")) + +(parameter_declaration + declarator: (reference_declarator) @variable.parameter) + +; function(Foo ...foo) +(variadic_parameter_declaration + declarator: (variadic_declarator + (_) @variable.parameter)) + +; int foo = 0 +(optional_parameter_declaration + declarator: (_) @variable.parameter) + +;(field_expression) @variable.parameter ;; How to highlight this? +((field_expression + (field_identifier) @function.method) @_parent + (#has-parent? @_parent template_method function_declarator)) + +(field_declaration + (field_identifier) @variable.member) + +(field_initializer + (field_identifier) @property) + +(function_declarator + declarator: (field_identifier) @function.method) + +(concept_definition + name: (identifier) @type.definition) + +(alias_declaration + name: (type_identifier) @type.definition) + +(auto) @type.builtin + +(namespace_identifier) @module + +((namespace_identifier) @type + (#lua-match? @type "^[%u]")) + +(case_statement + value: (qualified_identifier + (identifier) @constant)) + +(using_declaration + . + "using" + . + "namespace" + . + [ + (qualified_identifier) + (identifier) + ] @module) + +(destructor_name + (identifier) @function.method) + +; functions +(function_declarator + (qualified_identifier + (identifier) @function)) + +(function_declarator + (qualified_identifier + (qualified_identifier + (identifier) @function))) + +(function_declarator + (qualified_identifier + (qualified_identifier + (qualified_identifier + (identifier) @function)))) + +((qualified_identifier + (qualified_identifier + (qualified_identifier + (qualified_identifier + (identifier) @function)))) @_parent + (#has-ancestor? @_parent function_declarator)) + +(function_declarator + (template_function + (identifier) @function)) + +(operator_name) @function + +"operator" @function + +"static_assert" @function.builtin + +(call_expression + (qualified_identifier + (identifier) @function.call)) + +(call_expression + (qualified_identifier + (qualified_identifier + (identifier) @function.call))) + +(call_expression + (qualified_identifier + (qualified_identifier + (qualified_identifier + (identifier) @function.call)))) + +((qualified_identifier + (qualified_identifier + (qualified_identifier + (qualified_identifier + (identifier) @function.call)))) @_parent + (#has-ancestor? @_parent call_expression)) + +(call_expression + (template_function + (identifier) @function.call)) + +(call_expression + (qualified_identifier + (template_function + (identifier) @function.call))) + +(call_expression + (qualified_identifier + (qualified_identifier + (template_function + (identifier) @function.call)))) + +(call_expression + (qualified_identifier + (qualified_identifier + (qualified_identifier + (template_function + (identifier) @function.call))))) + +((qualified_identifier + (qualified_identifier + (qualified_identifier + (qualified_identifier + (template_function + (identifier) @function.call))))) @_parent + (#has-ancestor? @_parent call_expression)) + +; methods +(function_declarator + (template_method + (field_identifier) @function.method)) + +(call_expression + (field_expression + (field_identifier) @function.method.call)) + +; constructors +((function_declarator + (qualified_identifier + (identifier) @constructor)) + (#lua-match? @constructor "^%u")) + +((call_expression + function: (identifier) @constructor) + (#lua-match? @constructor "^%u")) + +((call_expression + function: (qualified_identifier + name: (identifier) @constructor)) + (#lua-match? @constructor "^%u")) + +((call_expression + function: (field_expression + field: (field_identifier) @constructor)) + (#lua-match? @constructor "^%u")) + +; constructing a type in an initializer list: Constructor (): **SuperType (1)** +((field_initializer + (field_identifier) @constructor + (argument_list)) + (#lua-match? @constructor "^%u")) + +; Constants +(this) @variable.builtin + +(null + "nullptr" @constant.builtin) + +(true) @boolean + +(false) @boolean + +; Literals +(raw_string_literal) @string + +; Keywords +[ + "try" + "catch" + "noexcept" + "throw" +] @keyword.exception + +[ + "decltype" + "explicit" + "friend" + "override" + "using" + "requires" + "constexpr" +] @keyword + +[ + "class" + "namespace" + "template" + "typename" + "concept" +] @keyword.type + +[ + "co_await" + "co_yield" + "co_return" +] @keyword.coroutine + +[ + "public" + "private" + "protected" + "final" + "virtual" +] @keyword.modifier + +[ + "new" + "delete" + "xor" + "bitand" + "bitor" + "compl" + "not" + "xor_eq" + "and_eq" + "or_eq" + "not_eq" + "and" + "or" +] @keyword.operator + +"<=>" @operator + +"::" @punctuation.delimiter + +(template_argument_list + [ + "<" + ">" + ] @punctuation.bracket) + +(template_parameter_list + [ + "<" + ">" + ] @punctuation.bracket) + +(literal_suffix) @operator diff --git a/packages/cli-rs/assets/queries/csharp/highlights.scm b/packages/cli-rs/assets/queries/csharp/highlights.scm new file mode 100644 index 000000000000..d4393b997523 --- /dev/null +++ b/packages/cli-rs/assets/queries/csharp/highlights.scm @@ -0,0 +1,577 @@ +[ + (identifier) + (preproc_arg) +] @variable + +((preproc_arg) @constant.macro + (#match? @constant.macro "^[_A-Z][_A-Z0-9]*$")) + +((identifier) @keyword + (#eq? @keyword "value") + (#has-ancestor? @keyword accessor_declaration)) + +(method_declaration + name: (identifier) @function.method) + +(local_function_statement + name: (identifier) @function.method) + +(method_declaration + returns: [ + (identifier) @type + (generic_name + (identifier) @type) + ]) + +(event_declaration + type: (identifier) @type) + +(event_declaration + name: (identifier) @variable.member) + +(event_field_declaration + (variable_declaration + (variable_declarator + name: (identifier) @variable.member))) + +(declaration_pattern + type: (identifier) @type) + +(local_function_statement + type: (identifier) @type) + +(interpolation) @none + +(member_access_expression + name: (identifier) @variable.member) + +(invocation_expression + (member_access_expression + name: (identifier) @function.method.call)) + +(invocation_expression + function: (conditional_access_expression + (member_binding_expression + name: (identifier) @function.method.call))) + +(namespace_declaration + name: [ + (qualified_name) + (identifier) + ] @module) + +(qualified_name + (identifier) @type) + +(namespace_declaration + name: (identifier) @module) + +(file_scoped_namespace_declaration + name: (identifier) @module) + +(qualified_name + (identifier) @module + (#not-has-ancestor? @module method_declaration) + (#not-has-ancestor? @module record_declaration) + (#has-ancestor? @module namespace_declaration file_scoped_namespace_declaration)) + +(invocation_expression + (identifier) @function.method.call) + +(field_declaration + (variable_declaration + (variable_declarator + (identifier) @variable.member))) + +(initializer_expression + (assignment_expression + left: (identifier) @variable.member)) + +(parameter + name: (identifier) @variable.parameter) + +(parameter_list + name: (identifier) @variable.parameter) + +(bracketed_parameter_list + name: (identifier) @variable.parameter) + +(implicit_parameter) @variable.parameter + +(parameter_list + (parameter + type: (identifier) @type)) + +(integer_literal) @number + +(real_literal) @number.float + +(null_literal) @constant.builtin + +(calling_convention + [ + (identifier) + "Cdecl" + "Stdcall" + "Thiscall" + "Fastcall" + ] @attribute.builtin) + +(character_literal) @character + +[ + (string_literal) + (raw_string_literal) + (verbatim_string_literal) + (interpolated_string_expression) +] @string + +(escape_sequence) @string.escape + +[ + "true" + "false" +] @boolean + +(predefined_type) @type.builtin + +(implicit_type) @keyword + +(comment) @comment @spell + +((comment) @comment.documentation + (#match? @comment.documentation "^/[*][*][^*](?s:.)*[*]/$")) + +((comment) @comment.documentation + (#lua-match? @comment.documentation "^///[^/]")) + +((comment) @comment.documentation + (#match? @comment.documentation "^///$")) + +(using_directive + (identifier) @type) + +(using_directive + (type) @type.definition) + +(property_declaration + name: (identifier) @property) + +(property_declaration + type: (identifier) @type) + +(nullable_type + type: (identifier) @type) + +(array_type + type: (identifier) @type) + +(ref_type + type: (identifier) @type) + +(pointer_type + type: (identifier) @type) + +(catch_declaration + type: (identifier) @type) + +(interface_declaration + name: (identifier) @type) + +(class_declaration + name: (identifier) @type) + +(record_declaration + name: (identifier) @type) + +(struct_declaration + name: (identifier) @type) + +(enum_declaration + name: (identifier) @type) + +(enum_member_declaration + name: (identifier) @variable.member) + +(operator_declaration + type: (identifier) @type) + +(conversion_operator_declaration + type: (identifier) @type) + +(explicit_interface_specifier + [ + (identifier) @type + (generic_name + (identifier) @type) + ]) + +(explicit_interface_specifier + (identifier) @type) + +(primary_constructor_base_type + type: (identifier) @type) + +[ + "assembly" + "module" + "this" + "base" +] @variable.builtin + +(constructor_declaration + name: (identifier) @constructor) + +(destructor_declaration + name: (identifier) @constructor) + +(constructor_initializer + "base" @constructor) + +(variable_declaration + (identifier) @type) + +(object_creation_expression + (identifier) @type) + +; Generic Types. +(typeof_expression + (generic_name + (identifier) @type)) + +(type_argument_list + (generic_name + (identifier) @type)) + +(base_list + (generic_name + (identifier) @type)) + +(type_parameter_constraint + [ + (identifier) @type + (type + (generic_name + (identifier) @type)) + ]) + +(object_creation_expression + (generic_name + (identifier) @type)) + +(property_declaration + (generic_name + (identifier) @type)) + +(_ + type: (generic_name + (identifier) @type)) + +; Generic Method invocation with generic type +(invocation_expression + function: (generic_name + . + (identifier) @function.method.call)) + +(invocation_expression + (member_access_expression + (generic_name + (identifier) @function.method))) + +(base_list + (identifier) @type) + +(type_argument_list + (identifier) @type) + +(type_parameter_list + (type_parameter) @type) + +(type_parameter + name: (identifier) @type) + +(type_parameter_constraints_clause + "where" + . + (identifier) @type) + +(attribute + name: (identifier) @attribute) + +(foreach_statement + type: (identifier) @type) + +(goto_statement + (identifier) @label) + +(labeled_statement + (identifier) @label) + +(tuple_element + type: (identifier) @type) + +(tuple_expression + (argument + (declaration_expression + type: (identifier) @type))) + +(cast_expression + type: (identifier) @type) + +(lambda_expression + type: (identifier) @type) + +(as_expression + right: (identifier) @type) + +(typeof_expression + (identifier) @type) + +(preproc_error) @keyword.exception + +[ + "#define" + "#undef" +] @keyword.directive.define + +[ + "#if" + "#elif" + "#else" + "#endif" + "#region" + "#endregion" + "#line" + "#pragma" + "#nullable" + "#error" + (shebang_directive) +] @keyword.directive + +[ + (preproc_line) + (preproc_pragma) + (preproc_nullable) +] @constant.macro + +(preproc_pragma + (identifier) @constant) + +(preproc_if + (identifier) @constant) + +[ + "if" + "else" + "switch" + "break" + "case" + "when" +] @keyword.conditional + +[ + "while" + "for" + "do" + "continue" + "goto" + "foreach" +] @keyword.repeat + +[ + "try" + "catch" + "throw" + "finally" +] @keyword.exception + +[ + "+" + "?" + ":" + "++" + "-" + "--" + "&" + "&&" + "|" + "||" + "!" + "!=" + "==" + "*" + "/" + "%" + "<" + "<=" + ">" + ">=" + "=" + "-=" + "+=" + "*=" + "/=" + "%=" + "^" + "^=" + "&=" + "|=" + "~" + ">>" + ">>>" + "<<" + "<<=" + ">>=" + ">>>=" + "=>" + "??" + "??=" + ".." +] @operator + +(list_pattern + ".." @character.special) + +(discard) @character.special + +[ + ";" + "." + "," + ":" +] @punctuation.delimiter + +(conditional_expression + [ + "?" + ":" + ] @keyword.conditional.ternary) + +[ + "[" + "]" + "{" + "}" + "(" + ")" +] @punctuation.bracket + +(interpolation_brace) @punctuation.special + +(type_argument_list + [ + "<" + ">" + ] @punctuation.bracket) + +[ + "using" + "as" +] @keyword.import + +(alias_qualified_name + (identifier + "global") @keyword.import) + +[ + "with" + "new" + "typeof" + "sizeof" + "is" + "and" + "or" + "not" + "stackalloc" + "__makeref" + "__reftype" + "__refvalue" + "in" + "out" + "ref" +] @keyword.operator + +[ + "lock" + "params" + "operator" + "default" + "implicit" + "explicit" + "override" + "get" + "set" + "init" + "where" + "add" + "remove" + "checked" + "unchecked" + "fixed" + "alias" + "file" + "unsafe" +] @keyword + +(attribute_target_specifier + . + _ @keyword) + +[ + "enum" + "record" + "class" + "struct" + "interface" + "namespace" + "event" + "delegate" +] @keyword.type + +[ + "async" + "await" +] @keyword.coroutine + +[ + "const" + "extern" + "readonly" + "static" + "volatile" + "required" + "managed" + "unmanaged" + "notnull" + "abstract" + "private" + "protected" + "internal" + "public" + "partial" + "sealed" + "virtual" + "global" +] @keyword.modifier + +(scoped_type + "scoped" @keyword.modifier) + +(query_expression + (_ + [ + "from" + "orderby" + "select" + "group" + "by" + "ascending" + "descending" + "equals" + "let" + ] @keyword)) + +[ + "return" + "yield" +] @keyword.return diff --git a/packages/cli-rs/assets/queries/css/highlights.scm b/packages/cli-rs/assets/queries/css/highlights.scm new file mode 100644 index 000000000000..161c59cfbb0c --- /dev/null +++ b/packages/cli-rs/assets/queries/css/highlights.scm @@ -0,0 +1,109 @@ +[ + "@media" + "@charset" + "@namespace" + "@supports" + "@keyframes" + (at_keyword) +] @keyword.directive + +"@import" @keyword.import + +[ + (to) + (from) +] @keyword + +(comment) @comment @spell + +(tag_name) @tag + +(class_name) @type + +(id_name) @constant + +[ + (property_name) + (feature_name) +] @property + +[ + (nesting_selector) + (universal_selector) +] @character.special + +(function_name) @function + +[ + "~" + ">" + "+" + "-" + "*" + "/" + "=" + "^=" + "|=" + "~=" + "$=" + "*=" +] @operator + +[ + "and" + "or" + "not" + "only" +] @keyword.operator + +(important) @keyword.modifier + +(attribute_selector + (plain_value) @string) + +(pseudo_element_selector + "::" + (tag_name) @attribute) + +(pseudo_class_selector + (class_name) @attribute) + +(attribute_name) @tag.attribute + +(namespace_name) @module + +(keyframes_name) @variable + +((property_name) @variable + (#match? @variable "^[-][-]")) + +((plain_value) @variable + (#match? @variable "^[-][-]")) + +[ + (string_value) + (color_value) + (unit) +] @string + +(integer_value) @number + +(float_value) @number.float + +[ + "#" + "," + "." + ":" + "::" + ";" +] @punctuation.delimiter + +[ + "{" + ")" + "(" + "}" + "[" + "]" +] @punctuation.bracket diff --git a/packages/cli-rs/assets/queries/diff/highlights.scm b/packages/cli-rs/assets/queries/diff/highlights.scm new file mode 100644 index 000000000000..54c57a8070f0 --- /dev/null +++ b/packages/cli-rs/assets/queries/diff/highlights.scm @@ -0,0 +1,49 @@ +(comment) @comment @spell + +[ + (addition) + (new_file) +] @diff.plus + +[ + (deletion) + (old_file) +] @diff.minus + +(commit) @constant + +(location) @attribute + +(command + "diff" @function + (argument) @variable.parameter) + +(filename) @string.special.path + +(mode) @number + +([ + ".." + "+" + "++" + "+++" + "++++" + "-" + "--" + "---" + "----" +] @punctuation.special + (#set! priority 95)) + +[ + (binary_change) + (similarity) + (file_change) +] @label + +(index + "index" @keyword) + +(similarity + (score) @number + "%" @number) diff --git a/packages/cli-rs/assets/queries/elixir/highlights.scm b/packages/cli-rs/assets/queries/elixir/highlights.scm new file mode 100644 index 000000000000..6574ba1c53e2 --- /dev/null +++ b/packages/cli-rs/assets/queries/elixir/highlights.scm @@ -0,0 +1,217 @@ +; Punctuation +[ + "," + ";" +] @punctuation.delimiter + +[ + "(" + ")" + "<<" + ">>" + "[" + "]" + "{" + "}" +] @punctuation.bracket + +"%" @punctuation.special + +; Identifiers +(identifier) @variable + +; Unused Identifiers +((identifier) @comment + (#match? @comment "^_")) + +; Comments +(comment) @comment @spell + +; Strings +(string) @string + +; Modules +(alias) @module + +; Atoms & Keywords +[ + (atom) + (quoted_atom) + (keyword) + (quoted_keyword) +] @string.special.symbol + +; Interpolation +(interpolation + [ + "#{" + "}" + ] @string.special) + +; Escape sequences +(escape_sequence) @string.escape + +; Integers +(integer) @number + +; Floats +(float) @number.float + +; Characters +[ + (char) + (charlist) +] @character + +; Booleans +(boolean) @boolean + +; Nil +(nil) @constant.builtin + +; Operators +(operator_identifier) @operator + +(unary_operator + operator: _ @operator) + +(binary_operator + operator: _ @operator) + +; Pipe Operator +(binary_operator + operator: "|>" + right: (identifier) @function) + +(dot + operator: _ @operator) + +(stab_clause + operator: _ @operator) + +; Local Function Calls +(call + target: (identifier) @function.call) + +; Remote Function Calls +(call + target: (dot + left: [ + (atom) @type + (_) + ] + right: (identifier) @function.call) + (arguments)) + +; Definition Function Calls +(call + target: ((identifier) @keyword.function + (#any-of? @keyword.function + "def" "defdelegate" "defexception" "defguard" "defguardp" "defimpl" "defmacro" "defmacrop" + "defmodule" "defn" "defnp" "defoverridable" "defp" "defprotocol" "defstruct")) + (arguments + [ + (call + (identifier) @function) + (identifier) @function + (binary_operator + left: (call + target: (identifier) @function) + operator: "when") + ])?) + +; Kernel Keywords & Special Forms +(call + target: ((identifier) @keyword + (#any-of? @keyword + "alias" "case" "catch" "cond" "else" "for" "if" "import" "quote" "raise" "receive" "require" + "reraise" "super" "throw" "try" "unless" "unquote" "unquote_splicing" "use" "with"))) + +; Special Constants +((identifier) @constant.builtin + (#any-of? @constant.builtin "__CALLER__" "__DIR__" "__ENV__" "__MODULE__" "__STACKTRACE__")) + +; Reserved Keywords +[ + "after" + "catch" + "do" + "end" + "fn" + "rescue" + "when" + "else" +] @keyword + +; Operator Keywords +[ + "and" + "in" + "not in" + "not" + "or" +] @keyword.operator + +; Capture Operator +(unary_operator + operator: "&" + operand: [ + (integer) @operator + (binary_operator + left: [ + (call + target: (dot + left: (_) + right: (identifier) @function)) + (identifier) @function + ] + operator: "/" + right: (integer) @operator) + ]) + +; Non-String Sigils +(sigil + "~" @string.special + (sigil_name) @string.special @_sigil_name + quoted_start: _ @string.special + quoted_end: _ @string.special + ((sigil_modifiers) @string.special)? + (#not-any-of? @_sigil_name "s" "S")) + +; String Sigils +(sigil + "~" @string + (sigil_name) @string @_sigil_name + quoted_start: _ @string + (quoted_content) @string + quoted_end: _ @string + ((sigil_modifiers) @string)? + (#any-of? @_sigil_name "s" "S")) + +; Module attributes +(unary_operator + operator: "@" + operand: [ + (identifier) + (call + target: (identifier)) + ] @constant) @constant + +; Documentation +(unary_operator + operator: "@" + operand: (call + target: ((identifier) @_identifier + (#any-of? @_identifier "moduledoc" "typedoc" "shortdoc" "doc")) @comment.documentation + (arguments + [ + (string) + (boolean) + (charlist) + (sigil + "~" @comment.documentation + (sigil_name) @comment.documentation + quoted_start: _ @comment.documentation + (quoted_content) @comment.documentation + quoted_end: _ @comment.documentation) + ] @comment.documentation))) @comment.documentation diff --git a/packages/cli-rs/assets/queries/go/highlights.scm b/packages/cli-rs/assets/queries/go/highlights.scm new file mode 100644 index 000000000000..20d89845e783 --- /dev/null +++ b/packages/cli-rs/assets/queries/go/highlights.scm @@ -0,0 +1,254 @@ +; Forked from tree-sitter-go +; Copyright (c) 2014 Max Brunsfeld (The MIT License) +; +; Identifiers +(type_identifier) @type + +(type_spec + name: (type_identifier) @type.definition) + +(field_identifier) @property + +(identifier) @variable + +(package_identifier) @module + +(parameter_declaration + (identifier) @variable.parameter) + +(variadic_parameter_declaration + (identifier) @variable.parameter) + +(label_name) @label + +(const_spec + name: (identifier) @constant) + +; Function calls +(call_expression + function: (identifier) @function.call) + +(call_expression + function: (selector_expression + field: (field_identifier) @function.method.call)) + +; Function definitions +(function_declaration + name: (identifier) @function) + +(method_declaration + name: (field_identifier) @function.method) + +(method_elem + name: (field_identifier) @function.method) + +; Constructors +((call_expression + (identifier) @constructor) + (#match? @constructor "^[nN]ew(?s:.)+$")) + +((call_expression + (identifier) @constructor) + (#match? @constructor "^[mM]ake(?s:.)+$")) + +; Operators +[ + "--" + "-" + "-=" + ":=" + "!" + "!=" + "..." + "*" + "*" + "*=" + "/" + "/=" + "&" + "&&" + "&=" + "&^" + "&^=" + "%" + "%=" + "^" + "^=" + "+" + "++" + "+=" + "<-" + "<" + "<<" + "<<=" + "<=" + "=" + "==" + ">" + ">=" + ">>" + ">>=" + "|" + "|=" + "||" + "~" +] @operator + +; Keywords +[ + "break" + "const" + "continue" + "default" + "defer" + "goto" + "range" + "select" + "var" + "fallthrough" +] @keyword + +[ + "type" + "struct" + "interface" +] @keyword.type + +"func" @keyword.function + +"return" @keyword.return + +"go" @keyword.coroutine + +"for" @keyword.repeat + +[ + "import" + "package" +] @keyword.import + +[ + "else" + "case" + "switch" + "if" +] @keyword.conditional + +; Builtin types +[ + "chan" + "map" +] @type.builtin + +((type_identifier) @type.builtin + (#any-of? @type.builtin + "any" "bool" "byte" "comparable" "complex128" "complex64" "error" "float32" "float64" "int" + "int16" "int32" "int64" "int8" "rune" "string" "uint" "uint16" "uint32" "uint64" "uint8" + "uintptr")) + +; Builtin functions +((identifier) @function.builtin + (#any-of? @function.builtin + "append" "cap" "clear" "close" "complex" "copy" "delete" "imag" "len" "make" "max" "min" "new" + "panic" "print" "println" "real" "recover")) + +; Delimiters +"." @punctuation.delimiter + +"," @punctuation.delimiter + +":" @punctuation.delimiter + +";" @punctuation.delimiter + +"(" @punctuation.bracket + +")" @punctuation.bracket + +"{" @punctuation.bracket + +"}" @punctuation.bracket + +"[" @punctuation.bracket + +"]" @punctuation.bracket + +; Literals +(interpreted_string_literal) @string + +(raw_string_literal) @string + +(rune_literal) @string + +(escape_sequence) @string.escape + +(int_literal) @number + +(float_literal) @number.float + +(imaginary_literal) @number + +[ + (true) + (false) +] @boolean + +[ + (nil) + (iota) +] @constant.builtin + +(keyed_element + . + (literal_element + (identifier) @variable.member)) + +(field_declaration + name: (field_identifier) @variable.member) + +; Comments +(comment) @comment @spell + +; Doc Comments +(source_file + . + (comment)+ @comment.documentation) + +(source_file + (comment)+ @comment.documentation + . + (const_declaration)) + +(source_file + (comment)+ @comment.documentation + . + (function_declaration)) + +(source_file + (comment)+ @comment.documentation + . + (type_declaration)) + +(source_file + (comment)+ @comment.documentation + . + (var_declaration)) + +; Spell +((interpreted_string_literal) @spell + (#not-has-parent? @spell import_spec)) + +; Regex +(call_expression + (selector_expression) @_function + (#any-of? @_function + "regexp.Match" "regexp.MatchReader" "regexp.MatchString" "regexp.Compile" "regexp.CompilePOSIX" + "regexp.MustCompile" "regexp.MustCompilePOSIX") + (argument_list + . + [ + (raw_string_literal + (raw_string_literal_content) @string.regexp) + (interpreted_string_literal + (interpreted_string_literal_content) @string.regexp) + ])) diff --git a/packages/cli-rs/assets/queries/haskell/highlights.scm b/packages/cli-rs/assets/queries/haskell/highlights.scm new file mode 100644 index 000000000000..0880f020efcb --- /dev/null +++ b/packages/cli-rs/assets/queries/haskell/highlights.scm @@ -0,0 +1,467 @@ +; ---------------------------------------------------------------------------- +; Parameters and variables +; NOTE: These are at the top, so that they have low priority, +; and don't override destructured parameters +(variable) @variable + +(decl/function + patterns: (patterns + (_) @variable.parameter)) + +(expression/lambda + (_)+ @variable.parameter + "->") + +(decl/function + (infix + (pattern) @variable.parameter)) + +; ---------------------------------------------------------------------------- +; Literals and comments +(integer) @number + +(negation) @number + +(expression/literal + (float)) @number.float + +(char) @character + +(string) @string + +(comment) @comment + +(haddock) @comment.documentation + +; ---------------------------------------------------------------------------- +; Punctuation +[ + "(" + ")" + "{" + "}" + "[" + "]" +] @punctuation.bracket + +[ + "," + ";" +] @punctuation.delimiter + +; ---------------------------------------------------------------------------- +; Keywords, operators, includes +[ + "forall" + ; "∀" ; utf-8 is not cross-platform safe +] @keyword.repeat + +(pragma) @keyword.directive + +[ + "if" + "then" + "else" + "case" + "of" +] @keyword.conditional + +[ + "import" + "qualified" + "module" +] @keyword.import + +[ + (operator) + (constructor_operator) + (all_names) + "." + ".." + "=" + "|" + "::" + "=>" + "->" + "<-" + "\\" + "`" + "@" +] @operator + +(wildcard) @character.special + +(module + (module_id) @module) + +[ + "where" + "let" + "in" + "class" + "instance" + "pattern" + "data" + "newtype" + "family" + "type" + "as" + "hiding" + "deriving" + "via" + "stock" + "anyclass" + "do" + "mdo" + "rec" + "infix" + "infixl" + "infixr" +] @keyword + +; ---------------------------------------------------------------------------- +; Functions and variables +(decl + [ + name: (variable) @function + names: (binding_list + (variable) @function) + ]) + +(decl/bind + name: (variable) @variable) + +; Consider signatures (and accompanying functions) +; with only one value on the rhs as variables +(decl/signature + name: (variable) @variable + type: (type)) + +((decl/signature + name: (variable) @_name + type: (type)) + . + (decl + name: (variable) @variable) + match: (_) + (#eq? @_name @variable)) + +; but consider a type that involves 'IO' a decl/function +(decl/signature + name: (variable) @function + type: (type/apply + constructor: (name) @_type) + (#eq? @_type "IO")) + +((decl/signature + name: (variable) @_name + type: (type/apply + constructor: (name) @_type) + (#eq? @_type "IO")) + . + (decl + name: (variable) @function) + match: (_) + (#eq? @_name @function)) + +((decl/signature) @function + . + (decl/function + name: (variable) @function)) + +(decl/bind + name: (variable) @function + (match + expression: (expression/lambda))) + +; view patterns +(view_pattern + [ + (expression/variable) @function.call + (expression/qualified + (variable) @function.call) + ]) + +; consider infix functions as operators +(infix_id + [ + (variable) @operator + (qualified + (variable) @operator) + ]) + +; decl/function calls with an infix operator +; e.g. func <$> a <*> b +(infix + left_operand: [ + (variable) @function.call + (qualified + ((module) @module + (variable) @function.call)) + ]) + +; infix operators applied to variables +((expression/variable) @variable + . + (operator)) + +((operator) + . + [ + (expression/variable) @variable + (expression/qualified + (variable) @variable) + ]) + +; infix operator function definitions +(function + (infix + left_operand: [ + (variable) @variable + (qualified + ((module) @module + (variable) @variable)) + ]) + match: (match)) + +; decl/function calls with infix operators +([ + (expression/variable) @function.call + (expression/qualified + (variable) @function.call) +] + . + (operator) @_op + (#any-of? @_op "$" "<$>" ">>=" "=<<")) + +; right hand side of infix operator +((infix + [ + (operator) + (infix_id + (variable)) + ] ; infix or `func` + . + [ + (variable) @function.call + (qualified + (variable) @function.call) + ]) + . + (operator) @_op + (#any-of? @_op "$" "<$>" "=<<")) + +; decl/function composition, arrows, monadic composition (lhs) +([ + (expression/variable) @function + (expression/qualified + (variable) @function) +] + . + (operator) @_op + (#any-of? @_op "." ">>>" "***" ">=>" "<=<")) + +; right hand side of infix operator +((infix + [ + (operator) + (infix_id + (variable)) + ] ; infix or `func` + . + [ + (variable) @function + (qualified + (variable) @function) + ]) + . + (operator) @_op + (#any-of? @_op "." ">>>" "***" ">=>" "<=<")) + +; function composition, arrows, monadic composition (rhs) +((operator) @_op + . + [ + (expression/variable) @function + (expression/qualified + (variable) @function) + ] + (#any-of? @_op "." ">>>" "***" ">=>" "<=<")) + +; function defined in terms of a function composition +(decl/function + name: (variable) @function + (match + expression: (infix + operator: (operator) @_op + (#any-of? @_op "." ">>>" "***" ">=>" "<=<")))) + +(apply + [ + (expression/variable) @function.call + (expression/qualified + (variable) @function.call) + ]) + +; function compositions, in parentheses, applied +; lhs +(apply + . + (expression/parens + (infix + [ + (variable) @function.call + (qualified + (variable) @function.call) + ] + . + (operator)))) + +; rhs +(apply + . + (expression/parens + (infix + (operator) + . + [ + (variable) @function.call + (qualified + (variable) @function.call) + ]))) + +; variables being passed to a function call +(apply + (_) + . + [ + (expression/variable) @variable + (expression/qualified + (variable) @variable) + ]) + +; main is always a function +; (this prevents `main = undefined` from being highlighted as a variable) +(decl/bind + name: (variable) @function + (#eq? @function "main")) + +; scoped function types (func :: a -> b) +(signature + pattern: (pattern/variable) @function + type: (function)) + +; signatures that have a function type +; + binds that follow them +(decl/signature + name: (variable) @function + type: (function)) + +((decl/signature + name: (variable) @_name + type: (quantified_type)) + . + (decl/bind + (variable) @function) + (#eq? @function @_name)) + +; Treat constructor assignments (smart constructors) as functions, e.g. mkJust = Just +(bind + name: (variable) @function + match: (match + expression: (constructor))) + +; Function composition +(bind + name: (variable) @function + match: (match + expression: (infix + operator: (operator) @_op + (#eq? @_op ".")))) + +; ---------------------------------------------------------------------------- +; Types +(name) @type + +(type/unit) @type + +(type/unit + [ + "(" + ")" + ] @type) + +(type/list + [ + "[" + "]" + ] @type) + +(type/star) @type + +(constructor) @constructor + +; True or False +((constructor) @boolean + (#any-of? @boolean "True" "False")) + +; otherwise (= True) +((variable) @boolean + (#eq? @boolean "otherwise")) + +; ---------------------------------------------------------------------------- +; Quasi-quotes +(quoter) @function.call + +(quasiquote + quoter: [ + (quoter) @_name + (quoter + (qualified + id: (variable) @_name)) + ] + (#eq? @_name "qq") + body: (quasiquote_body) @string) + +; namespaced quasi-quoter +(quoter + [ + (variable) @function.call + (_ + (module) @module + . + (variable) @function.call) + ]) + +; Highlighting of quasiquote_body for other languages is handled by injections.scm +; ---------------------------------------------------------------------------- +; Exceptions/error handling +((variable) @keyword.exception + (#any-of? @keyword.exception + "error" "undefined" "try" "tryJust" "tryAny" "catch" "catches" "catchJust" "handle" "handleJust" + "throw" "throwIO" "throwTo" "throwError" "ioError" "mask" "mask_" "uninterruptibleMask" + "uninterruptibleMask_" "bracket" "bracket_" "bracketOnErrorSource" "finally" "fail" + "onException" "expectationFailure")) + +; ---------------------------------------------------------------------------- +; Debugging +((variable) @keyword.debug + (#any-of? @keyword.debug + "trace" "traceId" "traceShow" "traceShowId" "traceWith" "traceShowWith" "traceStack" "traceIO" + "traceM" "traceShowM" "traceEvent" "traceEventWith" "traceEventIO" "flushEventLog" "traceMarker" + "traceMarkerIO")) + +; ---------------------------------------------------------------------------- +; Fields +(field_name + (variable) @variable.member) + +(import_name + (name) + . + (children + (variable) @variable.member)) + +; ---------------------------------------------------------------------------- +; Spell checking +(comment) @spell diff --git a/packages/cli-rs/assets/queries/hcl/highlights.scm b/packages/cli-rs/assets/queries/hcl/highlights.scm new file mode 100644 index 000000000000..4fb7d1fcac60 --- /dev/null +++ b/packages/cli-rs/assets/queries/hcl/highlights.scm @@ -0,0 +1,118 @@ +; highlights.scm +[ + "!" + "\*" + "/" + "%" + "\+" + "-" + ">" + ">=" + "<" + "<=" + "==" + "!=" + "&&" + "||" +] @operator + +[ + "{" + "}" + "[" + "]" + "(" + ")" +] @punctuation.bracket + +[ + "." + ".*" + "," + "[*]" +] @punctuation.delimiter + +[ + (ellipsis) + "\?" + "=>" +] @punctuation.special + +[ + ":" + "=" +] @none + +[ + "for" + "endfor" + "in" +] @keyword.repeat + +[ + "if" + "else" + "endif" +] @keyword.conditional + +[ + (quoted_template_start) ; " + (quoted_template_end) ; " + (template_literal) ; non-interpolation/directive content +] @string + +[ + (heredoc_identifier) ; END + (heredoc_start) ; << or <<- +] @punctuation.delimiter + +[ + (template_interpolation_start) ; ${ + (template_interpolation_end) ; } + (template_directive_start) ; %{ + (template_directive_end) ; } + (strip_marker) ; ~ +] @punctuation.special + +(numeric_lit) @number + +(bool_lit) @boolean + +(null_lit) @constant + +(comment) @comment @spell + +(identifier) @variable + +(body + (block + (identifier) @keyword)) + +(body + (block + (body + (block + (identifier) @type)))) + +(function_call + (identifier) @function) + +(attribute + (identifier) @variable.member) + +; { key: val } +; +; highlight identifier keys as though they were block attributes +(object_elem + key: (expression + (variable_expr + (identifier) @variable.member))) + +; var.foo, data.bar +; +; first element in get_attr is a variable.builtin or a reference to a variable.builtin +(expression + (variable_expr + (identifier) @variable.builtin) + (get_attr + (identifier) @variable.member)) diff --git a/packages/cli-rs/assets/queries/html/highlights.scm b/packages/cli-rs/assets/queries/html/highlights.scm new file mode 100644 index 000000000000..ea0ff4e30858 --- /dev/null +++ b/packages/cli-rs/assets/queries/html/highlights.scm @@ -0,0 +1,13 @@ +(tag_name) @tag +(erroneous_end_tag_name) @tag.error +(doctype) @constant +(attribute_name) @attribute +(attribute_value) @string +(comment) @comment + +[ + "<" + ">" + "" +] @punctuation.bracket diff --git a/packages/cli-rs/assets/queries/java/highlights.scm b/packages/cli-rs/assets/queries/java/highlights.scm new file mode 100644 index 000000000000..66529c97589e --- /dev/null +++ b/packages/cli-rs/assets/queries/java/highlights.scm @@ -0,0 +1,330 @@ +; CREDITS @maxbrunsfeld (maxbrunsfeld@gmail.com) +; Variables +(identifier) @variable + +(underscore_pattern) @character.special + +; Methods +(method_declaration + name: (identifier) @function.method) + +(method_invocation + name: (identifier) @function.method.call) + +(super) @function.builtin + +; Parameters +(formal_parameter + name: (identifier) @variable.parameter) + +(spread_parameter + (variable_declarator + name: (identifier) @variable.parameter)) ; int... foo + +; Lambda parameter +(inferred_parameters + (identifier) @variable.parameter) ; (x,y) -> ... + +(lambda_expression + parameters: (identifier) @variable.parameter) ; x -> ... + +; Operators +[ + "+" + ":" + "++" + "-" + "--" + "&" + "&&" + "|" + "||" + "!" + "!=" + "==" + "*" + "/" + "%" + "<" + "<=" + ">" + ">=" + "=" + "-=" + "+=" + "*=" + "/=" + "%=" + "->" + "^" + "^=" + "&=" + "|=" + "~" + ">>" + ">>>" + "<<" + "::" +] @operator + +; Types +(interface_declaration + name: (identifier) @type) + +(annotation_type_declaration + name: (identifier) @type) + +(class_declaration + name: (identifier) @type) + +(record_declaration + name: (identifier) @type) + +(enum_declaration + name: (identifier) @type) + +(constructor_declaration + name: (identifier) @type) + +(compact_constructor_declaration + name: (identifier) @type) + +(type_identifier) @type + +((type_identifier) @type.builtin + (#eq? @type.builtin "var")) + +((method_invocation + object: (identifier) @type) + (#match? @type "^[A-Z]")) + +((method_reference + . + (identifier) @type) + (#match? @type "^[A-Z]")) + +((field_access + object: (identifier) @type) + (#match? @type "^[A-Z]")) + +(scoped_identifier + (identifier) @type + (#match? @type "^[A-Z]")) + +; Fields +(field_declaration + declarator: (variable_declarator + name: (identifier) @variable.member)) + +(field_access + field: (identifier) @variable.member) + +[ + (boolean_type) + (integral_type) + (floating_point_type) + (void_type) +] @type.builtin + +; Variables +((identifier) @constant + (#match? @constant "^[A-Z_][A-Z0-9_]+$")) + +(this) @variable.builtin + +; Annotations +(annotation + "@" @attribute + name: (identifier) @attribute) + +(marker_annotation + "@" @attribute + name: (identifier) @attribute) + +; Literals +(string_literal) @string + +(escape_sequence) @string.escape + +(character_literal) @character + +[ + (hex_integer_literal) + (decimal_integer_literal) + (octal_integer_literal) + (binary_integer_literal) +] @number + +[ + (decimal_floating_point_literal) + (hex_floating_point_literal) +] @number.float + +[ + (true) + (false) +] @boolean + +(null_literal) @constant.builtin + +; Keywords +[ + "assert" + "default" + "extends" + "implements" + "instanceof" + "@interface" + "permits" + "to" + "with" +] @keyword + +[ + "record" + "class" + "enum" + "interface" +] @keyword.type + +(synchronized_statement + "synchronized" @keyword) + +[ + "abstract" + "final" + "native" + "non-sealed" + "open" + "private" + "protected" + "public" + "sealed" + "static" + "strictfp" + "transitive" +] @keyword.modifier + +(modifiers + "synchronized" @keyword.modifier) + +[ + "transient" + "volatile" +] @keyword.modifier + +[ + "return" + "yield" +] @keyword.return + +"new" @keyword.operator + +; Conditionals +[ + "if" + "else" + "switch" + "case" + "when" +] @keyword.conditional + +(ternary_expression + [ + "?" + ":" + ] @keyword.conditional.ternary) + +; Loops +[ + "for" + "while" + "do" + "continue" + "break" +] @keyword.repeat + +; Includes +[ + "exports" + "import" + "module" + "opens" + "package" + "provides" + "requires" + "uses" +] @keyword.import + +(import_declaration + (asterisk + "*" @character.special)) + +; Punctuation +[ + ";" + "." + "..." + "," +] @punctuation.delimiter + +[ + "{" + "}" +] @punctuation.bracket + +[ + "[" + "]" +] @punctuation.bracket + +[ + "(" + ")" +] @punctuation.bracket + +(type_arguments + [ + "<" + ">" + ] @punctuation.bracket) + +(type_parameters + [ + "<" + ">" + ] @punctuation.bracket) + +(string_interpolation + [ + "\\{" + "}" + ] @punctuation.special) + +; Exceptions +[ + "throw" + "throws" + "finally" + "try" + "catch" +] @keyword.exception + +; Labels +(labeled_statement + (identifier) @label) + +; Comments +[ + (line_comment) + (block_comment) +] @comment @spell + +((block_comment) @comment.documentation + (#match? @comment.documentation "^/[*][*][^*](?s:.)*[*]/$")) + +((line_comment) @comment.documentation + (#lua-match? @comment.documentation "^///[^/]")) + +((line_comment) @comment.documentation + (#match? @comment.documentation "^///$")) diff --git a/packages/cli-rs/assets/queries/javascript/highlights.scm b/packages/cli-rs/assets/queries/javascript/highlights.scm new file mode 100644 index 000000000000..11dcf8d133b5 --- /dev/null +++ b/packages/cli-rs/assets/queries/javascript/highlights.scm @@ -0,0 +1,205 @@ +; Query from: https://raw.githubusercontent.com/tree-sitter/tree-sitter-javascript/refs/heads/master/queries/highlights.scm +; Variables +;---------- + +(identifier) @variable + +; Properties +;----------- + +(property_identifier) @property + +; Function and method definitions +;-------------------------------- + +(function_expression + name: (identifier) @function) +(function_declaration + name: (identifier) @function) +(method_definition + name: (property_identifier) @function.method) + +(pair + key: (property_identifier) @function.method + value: [(function_expression) (arrow_function)]) + +(assignment_expression + left: (member_expression + property: (property_identifier) @function.method) + right: [(function_expression) (arrow_function)]) + +(variable_declarator + name: (identifier) @function + value: [(function_expression) (arrow_function)]) + +(assignment_expression + left: (identifier) @function + right: [(function_expression) (arrow_function)]) + +; Function and method calls +;-------------------------- + +(call_expression + function: (identifier) @function) + +(call_expression + function: (member_expression + property: (property_identifier) @function.method)) + +; Special identifiers +;-------------------- + +((identifier) @constructor + (#match? @constructor "^[A-Z]")) + +([ + (identifier) + (shorthand_property_identifier) + (shorthand_property_identifier_pattern) + ] @constant + (#match? @constant "^[A-Z_][A-Z\\d_]+$")) + +((identifier) @variable.builtin + (#match? @variable.builtin "^(arguments|module|console|window|document)$") + (#is-not? local)) + +((identifier) @function.builtin + (#eq? @function.builtin "require") + (#is-not? local)) + +; Literals +;--------- + +(this) @variable.builtin +(super) @variable.builtin + +[ + (true) + (false) + (null) + (undefined) +] @constant.builtin + +(comment) @comment + +[ + (string) + (template_string) +] @string + +(regex) @string.special +(number) @number + +; Tokens +;------- + +[ + ";" + (optional_chain) + "." + "," +] @punctuation.delimiter + +[ + "-" + "--" + "-=" + "+" + "++" + "+=" + "*" + "*=" + "**" + "**=" + "/" + "/=" + "%" + "%=" + "<" + "<=" + "<<" + "<<=" + "=" + "==" + "===" + "!" + "!=" + "!==" + "=>" + ">" + ">=" + ">>" + ">>=" + ">>>" + ">>>=" + "~" + "^" + "&" + "|" + "^=" + "&=" + "|=" + "&&" + "||" + "??" + "&&=" + "||=" + "??=" +] @operator + +[ + "(" + ")" + "[" + "]" + "{" + "}" +] @punctuation.bracket + +(template_substitution + "${" @punctuation.special + "}" @punctuation.special) @embedded + +[ + "as" + "async" + "await" + "break" + "case" + "catch" + "class" + "const" + "continue" + "debugger" + "default" + "delete" + "do" + "else" + "export" + "extends" + "finally" + "for" + "from" + "function" + "get" + "if" + "import" + "in" + "instanceof" + "let" + "new" + "of" + "return" + "set" + "static" + "switch" + "target" + "throw" + "try" + "typeof" + "var" + "void" + "while" + "with" + "yield" +] @keyword diff --git a/packages/cli-rs/assets/queries/json/highlights.scm b/packages/cli-rs/assets/queries/json/highlights.scm new file mode 100644 index 000000000000..85915285a581 --- /dev/null +++ b/packages/cli-rs/assets/queries/json/highlights.scm @@ -0,0 +1,38 @@ +[ + (true) + (false) +] @boolean + +(null) @constant.builtin + +(number) @number + +(pair + key: (string) @property) + +(pair + value: (string) @string) + +(array + (string) @string) + +[ + "," + ":" +] @punctuation.delimiter + +[ + "[" + "]" + "{" + "}" +] @punctuation.bracket + +("\"" @conceal + (#set! conceal "")) + +(escape_sequence) @string.escape + +((escape_sequence) @conceal + (#eq? @conceal "\\\"") + (#set! conceal "\"")) diff --git a/packages/cli-rs/assets/queries/julia/highlights.scm b/packages/cli-rs/assets/queries/julia/highlights.scm new file mode 100644 index 000000000000..9a82c5d41dca --- /dev/null +++ b/packages/cli-rs/assets/queries/julia/highlights.scm @@ -0,0 +1,372 @@ +; Identifiers +(identifier) @variable + +(field_expression + (identifier) @variable.member .) + +; Symbols +(quote_expression + ":" @string.special.symbol + [ + (identifier) + (operator) + ] @string.special.symbol) + +; Function calls +(call_expression + (identifier) @function.call) + +(call_expression + (field_expression + (identifier) @function.call .)) + +(broadcast_call_expression + (identifier) @function.call) + +(broadcast_call_expression + (field_expression + (identifier) @function.call .)) + +(binary_expression + (_) + (operator) @_pipe + (identifier) @function.call + (#any-of? @_pipe "|>" ".|>")) + +; Macros +(macro_identifier + "@" @function.macro + (identifier) @function.macro) + +(macro_definition + (signature + (call_expression + . + (identifier) @function.macro))) + +; Built-in functions +; filter(name -> Base.eval(Core, name) isa Core.Builtin, names(Core)) +((identifier) @function.builtin + (#any-of? @function.builtin + "applicable" "fieldtype" "getfield" "getglobal" "invoke" "isa" "isdefined" "modifyfield!" + "modifyglobal!" "nfields" "replacefield!" "replaceglobal!" "setfield!" "setfieldonce!" + "setglobal!" "setglobalonce!" "swapfield!" "swapglobal!" "throw" "tuple" "typeassert" "typeof")) + +; Type definitions +(type_head + (_) @type.definition) + +; Type annotations +(parametrized_type_expression + [ + (identifier) @type + (field_expression + (identifier) @type .) + ] + (curly_expression + (_) @type)) + +(typed_expression + (identifier) @type .) + +(unary_typed_expression + (identifier) @type .) + +(where_expression + [ + (curly_expression + (_) @type) + (_) @type + ] .) + +(unary_expression + (operator) @operator + (_) @type + (#any-of? @operator "<:" ">:")) + +(binary_expression + (_) @type + (operator) @operator + (_) @type + (#any-of? @operator "<:" ">:")) + +; Built-in types +; filter(name -> typeof(Base.eval(Core, name)) in [DataType, UnionAll], names(Core)) +((identifier) @type.builtin + (#any-of? @type.builtin + "AbstractArray" "AbstractChar" "AbstractFloat" "AbstractString" "Any" "ArgumentError" "Array" + "AssertionError" "Bool" "BoundsError" "Char" "ConcurrencyViolationError" "Cvoid" "DataType" + "DenseArray" "DivideError" "DomainError" "ErrorException" "Exception" "Expr" "Float16" "Float32" + "Float64" "Function" "GlobalRef" "IO" "InexactError" "InitError" "Int" "Int128" "Int16" "Int32" + "Int64" "Int8" "Integer" "InterruptException" "LineNumberNode" "LoadError" "Method" + "MethodError" "Module" "NTuple" "NamedTuple" "Nothing" "Number" "OutOfMemoryError" + "OverflowError" "Pair" "Ptr" "QuoteNode" "ReadOnlyMemoryError" "Real" "Ref" "SegmentationFault" + "Signed" "StackOverflowError" "String" "Symbol" "Task" "Tuple" "Type" "TypeError" "TypeVar" + "UInt" "UInt128" "UInt16" "UInt32" "UInt64" "UInt8" "UndefInitializer" "UndefKeywordError" + "UndefRefError" "UndefVarError" "Union" "UnionAll" "Unsigned" "VecElement" "WeakRef")) + +; Keywords +[ + "global" + "local" +] @keyword + +(compound_statement + [ + "begin" + "end" + ] @keyword) + +(quote_statement + [ + "quote" + "end" + ] @keyword) + +(let_statement + [ + "let" + "end" + ] @keyword) + +(if_statement + [ + "if" + "end" + ] @keyword.conditional) + +(elseif_clause + "elseif" @keyword.conditional) + +(else_clause + "else" @keyword.conditional) + +(ternary_expression + [ + "?" + ":" + ] @keyword.conditional.ternary) + +(try_statement + [ + "try" + "end" + ] @keyword.exception) + +(catch_clause + "catch" @keyword.exception) + +(finally_clause + "finally" @keyword.exception) + +(for_statement + [ + "for" + "end" + ] @keyword.repeat) + +(for_binding + "outer" @keyword.repeat) + +; comprehensions +(for_clause + "for" @keyword.repeat) + +(if_clause + "if" @keyword.conditional) + +(while_statement + [ + "while" + "end" + ] @keyword.repeat) + +[ + (break_statement) + (continue_statement) +] @keyword.repeat + +[ + "const" + "mutable" +] @keyword.modifier + +(function_definition + [ + "function" + "end" + ] @keyword.function) + +(do_clause + [ + "do" + "end" + ] @keyword.function) + +(macro_definition + [ + "macro" + "end" + ] @keyword) + +(return_statement + "return" @keyword.return) + +(module_definition + [ + "module" + "baremodule" + "end" + ] @keyword.import) + +(export_statement + "export" @keyword.import) + +(public_statement + "public" @keyword.import) + +(import_statement + "import" @keyword.import) + +(using_statement + "using" @keyword.import) + +(import_alias + "as" @keyword.import) + +(selected_import + ":" @punctuation.delimiter) + +(struct_definition + [ + "mutable" + "struct" + "end" + ] @keyword.type) + +(abstract_definition + [ + "abstract" + "type" + "end" + ] @keyword.type) + +(primitive_definition + [ + "primitive" + "type" + "end" + ] @keyword.type) + +; Operators & Punctuation +(operator) @operator + +(adjoint_expression + "'" @operator) + +(range_expression + ":" @operator) + +(arrow_function_expression + "->" @operator) + +[ + "." + "..." +] @punctuation.special + +[ + "," + ";" + "::" +] @punctuation.delimiter + +; Treat `::` as operator in type contexts, see +; https://github.com/nvim-treesitter/nvim-treesitter/pull/7392 +(typed_expression + "::" @operator) + +(unary_typed_expression + "::" @operator) + +[ + "(" + ")" + "[" + "]" + "{" + "}" +] @punctuation.bracket + +; Interpolation +(string_interpolation + . + "$" @punctuation.special) + +(interpolation_expression + . + "$" @punctuation.special) + +; Keyword operators +((operator) @keyword.operator + (#any-of? @keyword.operator "in" "isa")) + +(where_expression + "where" @keyword.operator) + +; Built-in constants +((identifier) @constant.builtin + (#any-of? @constant.builtin "nothing" "missing")) + +((identifier) @variable.builtin + (#any-of? @variable.builtin "begin" "end") + (#has-ancestor? @variable.builtin index_expression)) + +; Literals +(boolean_literal) @boolean + +(integer_literal) @number + +(float_literal) @number.float + +((identifier) @number.float + (#any-of? @number.float "NaN" "NaN16" "NaN32" "Inf" "Inf16" "Inf32")) + +(character_literal) @character + +(escape_sequence) @string.escape + +(string_literal) @string + +(prefixed_string_literal + prefix: (identifier) @function.macro) @string + +(command_literal) @string.special + +(prefixed_command_literal + prefix: (identifier) @function.macro) @string.special + +((string_literal) @string.documentation + . + [ + (abstract_definition) + (assignment) + (const_statement) + (function_definition) + (macro_definition) + (module_definition) + (struct_definition) + ]) + +(source_file + (string_literal) @string.documentation + . + [ + (identifier) + (call_expression) + ]) + +[ + (line_comment) + (block_comment) +] @comment @spell diff --git a/packages/cli-rs/assets/queries/lua/highlights.scm b/packages/cli-rs/assets/queries/lua/highlights.scm new file mode 100644 index 000000000000..3c8d1a826a25 --- /dev/null +++ b/packages/cli-rs/assets/queries/lua/highlights.scm @@ -0,0 +1,204 @@ +; Keywords +"return" @keyword.return + +[ + "goto" + "in" + "local" + "global" +] @keyword + +(label_statement) @label + +(break_statement) @keyword + +(do_statement + [ + "do" + "end" + ] @keyword) + +(while_statement + [ + "while" + "do" + "end" + ] @repeat) + +(repeat_statement + [ + "repeat" + "until" + ] @repeat) + +(if_statement + [ + "if" + "elseif" + "else" + "then" + "end" + ] @conditional) + +(elseif_statement + [ + "elseif" + "then" + "end" + ] @conditional) + +(else_statement + [ + "else" + "end" + ] @conditional) + +(for_statement + [ + "for" + "do" + "end" + ] @repeat) + +(function_declaration + [ + "function" + "end" + ] @keyword.function) + +(function_definition + [ + "function" + "end" + ] @keyword.function) + +; Operators +(binary_expression + operator: _ @operator) + +(unary_expression + operator: _ @operator) + +"=" @operator + +[ + "and" + "not" + "or" +] @keyword.operator + +; Punctuations +[ + ";" + ":" + "," + "." +] @punctuation.delimiter + +; Brackets +[ + "(" + ")" + "[" + "]" + "{" + "}" +] @punctuation.bracket + +; Variables +(identifier) @variable + +((identifier) @variable.builtin + (#eq? @variable.builtin "self")) + +(variable_list + (attribute + "<" @punctuation.bracket + (identifier) @attribute + ">" @punctuation.bracket)) + +; Constants +((identifier) @constant + (#match? @constant "^[A-Z][A-Z_0-9]*$")) + +(vararg_expression) @constant + +(nil) @constant.builtin + +[ + (false) + (true) +] @boolean + +; Tables +(field + name: (identifier) @field) + +(dot_index_expression + field: (identifier) @field) + +(table_constructor + [ + "{" + "}" + ] @constructor) + +; Functions +(parameters + (identifier) @parameter) + +(function_declaration + name: [ + (identifier) @function + (dot_index_expression + field: (identifier) @function) + ]) + +(function_declaration + name: (method_index_expression + method: (identifier) @method)) + +(assignment_statement + (variable_list + . + name: [ + (identifier) @function + (dot_index_expression + field: (identifier) @function) + ]) + (expression_list + . + value: (function_definition))) + +(table_constructor + (field + name: (identifier) @function + value: (function_definition))) + +(function_call + name: [ + (identifier) @function.call + (dot_index_expression + field: (identifier) @function.call) + (method_index_expression + method: (identifier) @method.call) + ]) + +(function_call + (identifier) @function.builtin + (#any-of? @function.builtin + ; built-in functions in Lua 5.1 + "assert" "collectgarbage" "dofile" "error" "getfenv" "getmetatable" "ipairs" "load" "loadfile" + "loadstring" "module" "next" "pairs" "pcall" "print" "rawequal" "rawget" "rawset" "require" + "select" "setfenv" "setmetatable" "tonumber" "tostring" "type" "unpack" "xpcall")) + +; Others +(comment) @comment + +(hash_bang_line) @preproc + +(number) @number + +(string) @string + +(escape_sequence) @string.escape diff --git a/packages/cli-rs/assets/queries/make/highlights.scm b/packages/cli-rs/assets/queries/make/highlights.scm new file mode 100644 index 000000000000..afdfbe33624e --- /dev/null +++ b/packages/cli-rs/assets/queries/make/highlights.scm @@ -0,0 +1,170 @@ +(comment) @comment @spell + +(conditional + (_ + [ + "ifeq" + "else" + "ifneq" + "ifdef" + "ifndef" + ] @keyword.conditional) + "endif" @keyword.conditional) + +(rule + (targets + (word) @function)) + +(rule + (targets) @_target + (prerequisites + (word) @function + (#eq? @_target ".PHONY"))) + +(rule + (targets + (word) @function.builtin + (#any-of? @function.builtin + ".DEFAULT" ".SUFFIXES" ".DELETE_ON_ERROR" ".EXPORT_ALL_VARIABLES" ".IGNORE" ".INTERMEDIATE" + ".LOW_RESOLUTION_TIME" ".NOTPARALLEL" ".ONESHELL" ".PHONY" ".POSIX" ".PRECIOUS" ".SECONDARY" + ".SECONDEXPANSION" ".SILENT" ".SUFFIXES"))) + +(rule + [ + "&:" + ":" + "::" + "|" + ] @operator) + +[ + "export" + "unexport" +] @keyword.import + +(override_directive + "override" @keyword) + +(include_directive + [ + "include" + "-include" + ] @keyword.import + filenames: (list + (word) @string.special.path)) + +(variable_assignment + name: (word) @string.special.symbol + [ + "?=" + ":=" + "::=" + ; ":::=" + "+=" + "=" + ] @operator) + +(shell_assignment + name: (word) @string.special.symbol + "!=" @operator) + +(define_directive + "define" @keyword + name: (word) @string.special.symbol + [ + "=" + ":=" + "::=" + ; ":::=" + "?=" + "!=" + ]? @operator + "endef" @keyword) + +(variable_assignment + (word) @variable.builtin + (#any-of? @variable.builtin + ".DEFAULT_GOAL" ".EXTRA_PREREQS" ".FEATURES" ".INCLUDE_DIRS" ".RECIPEPREFIX" ".SHELLFLAGS" + ".VARIABLES" "MAKEARGS" "MAKEFILE_LIST" "MAKEFLAGS" "MAKE_RESTARTS" "MAKE_TERMERR" + "MAKE_TERMOUT" "SHELL")) + +; Use string to match bash +(variable_reference + (word) @string) @operator + +(shell_function + [ + "$" + "(" + ")" + ] @operator + "shell" @function.builtin) + +(function_call + [ + "$" + "(" + ")" + ] @operator) + +(substitution_reference + [ + "$" + "(" + ")" + ] @operator) + +(automatic_variable + "$" + _ @character.special + (#set! priority 105)) + +(automatic_variable + [ + "$" + "(" + ")" + ] @operator + (#set! priority 105)) + +(recipe_line + "@" @character.special) + +(function_call + [ + "subst" + "patsubst" + "strip" + "findstring" + "filter" + "filter-out" + "sort" + "word" + "words" + "wordlist" + "firstword" + "lastword" + "dir" + "notdir" + "suffix" + "basename" + "addsuffix" + "addprefix" + "join" + "wildcard" + "realpath" + "abspath" + "error" + "warning" + "info" + "origin" + "flavor" + "foreach" + "if" + "or" + "and" + "call" + "eval" + "file" + "value" + ] @function.builtin) diff --git a/packages/cli-rs/assets/queries/manifest.json b/packages/cli-rs/assets/queries/manifest.json new file mode 100644 index 000000000000..3d94e00a2ebd --- /dev/null +++ b/packages/cli-rs/assets/queries/manifest.json @@ -0,0 +1,262 @@ +[ + { + "filetype": "javascript", + "aliases": [ + "javascriptreact" + ], + "sources": [ + "@opentui/core@0.9.4/assets/javascript/highlights.scm" + ] + }, + { + "filetype": "typescript", + "aliases": [], + "sources": [ + "@opentui/core@0.9.4/assets/typescript/highlights.scm" + ] + }, + { + "filetype": "typescriptreact", + "aliases": [], + "sources": [ + "@opentui/core@0.9.4/assets/typescriptreact/highlights.scm" + ] + }, + { + "filetype": "markdown", + "aliases": [], + "sources": [ + "@opentui/core@0.9.4/assets/markdown/highlights.scm" + ] + }, + { + "filetype": "markdown_inline", + "aliases": [], + "sources": [ + "@opentui/core@0.9.4/assets/markdown_inline/highlights.scm" + ] + }, + { + "filetype": "zig", + "aliases": [], + "sources": [ + "@opentui/core@0.9.4/assets/zig/highlights.scm" + ] + }, + { + "filetype": "python", + "aliases": [], + "sources": [ + "https://github.com/tree-sitter/tree-sitter-python/raw/refs/heads/master/queries/highlights.scm" + ] + }, + { + "filetype": "rust", + "aliases": [], + "sources": [ + "https://raw.githubusercontent.com/nvim-treesitter/nvim-treesitter/refs/heads/master/queries/rust/highlights.scm" + ] + }, + { + "filetype": "go", + "aliases": [], + "sources": [ + "https://raw.githubusercontent.com/nvim-treesitter/nvim-treesitter/refs/heads/master/queries/go/highlights.scm" + ] + }, + { + "filetype": "cpp", + "aliases": [], + "sources": [ + "https://raw.githubusercontent.com/nvim-treesitter/nvim-treesitter/refs/heads/master/queries/cpp/highlights.scm" + ] + }, + { + "filetype": "csharp", + "aliases": [], + "sources": [ + "https://raw.githubusercontent.com/nvim-treesitter/nvim-treesitter/refs/heads/master/queries/c_sharp/highlights.scm" + ] + }, + { + "filetype": "bash", + "aliases": [], + "sources": [ + "https://raw.githubusercontent.com/nvim-treesitter/nvim-treesitter/refs/heads/master/queries/bash/highlights.scm" + ] + }, + { + "filetype": "c", + "aliases": [], + "sources": [ + "https://raw.githubusercontent.com/nvim-treesitter/nvim-treesitter/refs/heads/master/queries/c/highlights.scm" + ] + }, + { + "filetype": "java", + "aliases": [], + "sources": [ + "https://raw.githubusercontent.com/nvim-treesitter/nvim-treesitter/refs/heads/master/queries/java/highlights.scm" + ] + }, + { + "filetype": "ruby", + "aliases": [], + "sources": [ + "https://raw.githubusercontent.com/nvim-treesitter/nvim-treesitter/refs/heads/master/queries/ruby/highlights.scm" + ] + }, + { + "filetype": "php", + "aliases": [], + "sources": [ + "https://github.com/tree-sitter/tree-sitter-php/raw/refs/heads/master/queries/highlights.scm" + ] + }, + { + "filetype": "scala", + "aliases": [], + "sources": [ + "https://raw.githubusercontent.com/nvim-treesitter/nvim-treesitter/refs/heads/master/queries/scala/highlights.scm" + ] + }, + { + "filetype": "html", + "aliases": [], + "sources": [ + "https://github.com/tree-sitter/tree-sitter-html/raw/refs/heads/master/queries/highlights.scm" + ] + }, + { + "filetype": "vue", + "aliases": [], + "sources": [ + "https://raw.githubusercontent.com/anomalyco/tree-sitter-vue/v0.1.2/queries/html_tags/highlights.scm", + "https://raw.githubusercontent.com/anomalyco/tree-sitter-vue/v0.1.2/queries/vue/highlights.scm" + ] + }, + { + "filetype": "hcl", + "aliases": [], + "sources": [ + "https://raw.githubusercontent.com/nvim-treesitter/nvim-treesitter/master/queries/hcl/highlights.scm" + ] + }, + { + "filetype": "json", + "aliases": [], + "sources": [ + "https://raw.githubusercontent.com/nvim-treesitter/nvim-treesitter/refs/heads/master/queries/json/highlights.scm" + ] + }, + { + "filetype": "yaml", + "aliases": [], + "sources": [ + "https://raw.githubusercontent.com/nvim-treesitter/nvim-treesitter/refs/heads/master/queries/yaml/highlights.scm" + ] + }, + { + "filetype": "haskell", + "aliases": [], + "sources": [ + "https://raw.githubusercontent.com/nvim-treesitter/nvim-treesitter/refs/heads/master/queries/haskell/highlights.scm" + ] + }, + { + "filetype": "css", + "aliases": [], + "sources": [ + "https://raw.githubusercontent.com/nvim-treesitter/nvim-treesitter/refs/heads/master/queries/css/highlights.scm" + ] + }, + { + "filetype": "julia", + "aliases": [], + "sources": [ + "https://raw.githubusercontent.com/nvim-treesitter/nvim-treesitter/refs/heads/master/queries/julia/highlights.scm" + ] + }, + { + "filetype": "lua", + "aliases": [], + "sources": [ + "https://raw.githubusercontent.com/tree-sitter-grammars/tree-sitter-lua/v0.5.0/queries/highlights.scm" + ] + }, + { + "filetype": "clojure", + "aliases": [], + "sources": [ + "https://raw.githubusercontent.com/nvim-treesitter/nvim-treesitter/refs/heads/master/queries/clojure/highlights.scm" + ] + }, + { + "filetype": "toml", + "aliases": [], + "sources": [ + "https://raw.githubusercontent.com/nvim-treesitter/nvim-treesitter/master/queries/toml/highlights.scm" + ] + }, + { + "filetype": "nix", + "aliases": [], + "sources": [ + "https://raw.githubusercontent.com/nvim-treesitter/nvim-treesitter/refs/heads/master/queries/nix/highlights.scm" + ] + }, + { + "filetype": "diff", + "aliases": [ + "udiff", + "patch" + ], + "sources": [ + "https://raw.githubusercontent.com/tree-sitter-grammars/tree-sitter-diff/2520c3f934b3179bb540d23e0ef45f75304b5fed/queries/highlights.scm" + ] + }, + { + "filetype": "elixir", + "aliases": [], + "sources": [ + "https://raw.githubusercontent.com/nvim-treesitter/nvim-treesitter/refs/heads/master/queries/elixir/highlights.scm" + ] + }, + { + "filetype": "r", + "aliases": [], + "sources": [ + "https://raw.githubusercontent.com/nvim-treesitter/nvim-treesitter/refs/heads/master/queries/r/highlights.scm" + ] + }, + { + "filetype": "make", + "aliases": [ + "makefile" + ], + "sources": [ + "https://raw.githubusercontent.com/nvim-treesitter/nvim-treesitter/refs/heads/master/queries/make/highlights.scm" + ] + }, + { + "filetype": "vim", + "aliases": [], + "sources": [ + "https://raw.githubusercontent.com/nvim-treesitter/nvim-treesitter/refs/heads/master/queries/vim/highlights.scm" + ] + }, + { + "filetype": "xml", + "aliases": [], + "sources": [ + "https://raw.githubusercontent.com/nvim-treesitter/nvim-treesitter/refs/heads/master/queries/xml/highlights.scm" + ] + }, + { + "filetype": "agda", + "aliases": [], + "sources": [ + "https://raw.githubusercontent.com/nvim-treesitter/nvim-treesitter/refs/heads/master/queries/agda/highlights.scm" + ] + } +] diff --git a/packages/cli-rs/assets/queries/markdown/highlights.scm b/packages/cli-rs/assets/queries/markdown/highlights.scm new file mode 100644 index 000000000000..5eb9f6a6ea8a --- /dev/null +++ b/packages/cli-rs/assets/queries/markdown/highlights.scm @@ -0,0 +1,150 @@ +; Query from: https://raw.githubusercontent.com/nvim-treesitter/nvim-treesitter/refs/heads/master/queries/markdown/highlights.scm +;From MDeiml/tree-sitter-markdown & Helix +(setext_heading + (paragraph) @markup.heading.1 + (setext_h1_underline) @markup.heading.1) + +(setext_heading + (paragraph) @markup.heading.2 + (setext_h2_underline) @markup.heading.2) + +; Capture the entire heading node first based on the marker it contains +((atx_heading (atx_h1_marker)) @markup.heading.1 + (#set! priority 90)) + +((atx_heading (atx_h2_marker)) @markup.heading.2 + (#set! priority 90)) + +((atx_heading (atx_h3_marker)) @markup.heading.3 + (#set! priority 90)) + +((atx_heading (atx_h4_marker)) @markup.heading.4 + (#set! priority 90)) + +((atx_heading (atx_h5_marker)) @markup.heading.5 + (#set! priority 90)) + +((atx_heading (atx_h6_marker)) @markup.heading.6 + (#set! priority 90)) + +; Then capture and conceal just the markers (they don't need special styling) +(atx_heading + (atx_h1_marker) @conceal + (#set! conceal "")) + +(atx_heading + (atx_h2_marker) @conceal + (#set! conceal "")) + +(atx_heading + (atx_h3_marker) @conceal + (#set! conceal "")) + +(atx_heading + (atx_h4_marker) @conceal + (#set! conceal "")) + +(atx_heading + (atx_h5_marker) @conceal + (#set! conceal "")) + +(atx_heading + (atx_h6_marker) @conceal + (#set! conceal "")) + +(info_string) @label + +(pipe_table_header + (pipe_table_cell) @markup.heading) + +(pipe_table_header + "|" @punctuation.special) + +(pipe_table_row + "|" @punctuation.special) + +(pipe_table_delimiter_row + "|" @punctuation.special) + +(pipe_table_delimiter_cell) @punctuation.special + +; Code blocks (conceal backticks and language annotation) +(indented_code_block) @markup.raw.block + +((fenced_code_block) @markup.raw.block + (#set! priority 90)) + +(fenced_code_block + (fenced_code_block_delimiter) @markup.raw.block + (#set! conceal "") + (#set! conceal_lines "")) + +(fenced_code_block + (info_string + (language) @label + (#set! conceal "") + (#set! conceal_lines ""))) + +(link_destination) @markup.link.url + +[ + (link_title) + (link_label) +] @markup.link.label + +((link_label) + . + ":" @punctuation.delimiter) + +[ + (list_marker_plus) + (list_marker_minus) + (list_marker_star) + (list_marker_dot) + (list_marker_parenthesis) +] @markup.list + +; NOTE: The following has been commented out due to issues with spaces in the +; list marker nodes generated by the parser. If those spaces ever get captured +; by a different node (e.g. block_continuation) we can safely re-add these +; conceals. +; ;; Conceal bullet points +; ([(list_marker_plus) (list_marker_star)] +; @punctuation.special +; (#offset! @punctuation.special 0 0 0 -1) +; (#set! conceal "•")) +; ([(list_marker_plus) (list_marker_star)] +; @punctuation.special +; (#any-of? @punctuation.special "+" "*") +; (#set! conceal "•")) +; ((list_marker_minus) +; @punctuation.special +; (#offset! @punctuation.special 0 0 0 -1) +; (#set! conceal "—")) +; ((list_marker_minus) +; @punctuation.special +; (#eq? @punctuation.special "-") +; (#set! conceal "—")) +(thematic_break) @punctuation.special + +(task_list_marker_unchecked) @markup.list.unchecked + +(task_list_marker_checked) @markup.list.checked + +((block_quote) @markup.quote + (#set! priority 90)) + +([ + (plus_metadata) + (minus_metadata) +] @keyword.directive + (#set! priority 90)) + +[ + (block_continuation) + (block_quote_marker) +] @punctuation.special + +(backslash_escape) @string.escape + +(inline) @spell diff --git a/packages/cli-rs/assets/queries/markdown_inline/highlights.scm b/packages/cli-rs/assets/queries/markdown_inline/highlights.scm new file mode 100644 index 000000000000..7fcaac203452 --- /dev/null +++ b/packages/cli-rs/assets/queries/markdown_inline/highlights.scm @@ -0,0 +1,115 @@ +; Query from: https://raw.githubusercontent.com/nvim-treesitter/nvim-treesitter/99ddf573531c4dbe53f743ecbc1595af5eb1d32f/queries/markdown_inline/highlights.scm +; From MDeiml/tree-sitter-markdown +(code_span) @markup.raw @nospell + +(emphasis) @markup.italic + +(strong_emphasis) @markup.strong + +(strikethrough) @markup.strikethrough + +(shortcut_link + (link_text) @nospell) + +[ + (backslash_escape) + (hard_line_break) +] @string.escape + +; Conceal codeblock and text style markers +([ + (code_span_delimiter) + (emphasis_delimiter) +] @conceal + (#set! conceal "")) + +; Inline links - style all parts +(inline_link + ["[" "(" ")"] @markup.link) + +(inline_link + "]" @markup.link.bracket.close) + +; Conceal opening bracket +((inline_link + "[" @conceal) + (#set! conceal "")) + +; Conceal closing bracket with space replacement +((inline_link + "]" @conceal) + (#set! conceal " ")) + +; Conceal image links +(image + [ + "!" + "[" + "]" + "(" + (link_destination) + ")" + ] @markup.link + (#set! conceal "")) + +; Conceal full reference links +(full_reference_link + [ + "[" + "]" + (link_label) + ] @markup.link + (#set! conceal "")) + +; Conceal collapsed reference links +(collapsed_reference_link + [ + "[" + "]" + ] @markup.link + (#set! conceal "")) + +; Conceal shortcut links +(shortcut_link + [ + "[" + "]" + ] @markup.link + (#set! conceal "")) + +[ + (link_destination) + (uri_autolink) +] @markup.link.url @nospell + +[ + (link_label) + (link_text) + (link_title) + (image_description) +] @markup.link.label + +; Replace common HTML entities. +((entity_reference) @character.special + (#eq? @character.special " ") + (#set! conceal "")) + +((entity_reference) @character.special + (#eq? @character.special "<") + (#set! conceal "<")) + +((entity_reference) @character.special + (#eq? @character.special ">") + (#set! conceal ">")) + +((entity_reference) @character.special + (#eq? @character.special "&") + (#set! conceal "&")) + +((entity_reference) @character.special + (#eq? @character.special """) + (#set! conceal "\"")) + +((entity_reference) @character.special + (#any-of? @character.special " " " ") + (#set! conceal " ")) diff --git a/packages/cli-rs/assets/queries/nix/highlights.scm b/packages/cli-rs/assets/queries/nix/highlights.scm new file mode 100644 index 000000000000..24e685a32df8 --- /dev/null +++ b/packages/cli-rs/assets/queries/nix/highlights.scm @@ -0,0 +1,210 @@ +; basic keywords +[ + "assert" + "in" + "inherit" + "let" + "rec" + "with" +] @keyword + +; if/then/else +[ + "if" + "then" + "else" +] @keyword.conditional + +; field access default (`a.b or c`) +"or" @keyword.operator + +; comments +(comment) @comment @spell + +; strings +(string_fragment) @string + +(string_expression + "\"" @string) + +(indented_string_expression + "''" @string) + +; paths and URLs +[ + (path_expression) + (hpath_expression) + (spath_expression) +] @string.special.path + +(uri_expression) @string.special.url + +; escape sequences +(escape_sequence) @string.escape + +; delimiters +[ + "." + ";" + ":" + "," +] @punctuation.delimiter + +; brackets +[ + "(" + ")" + "[" + "]" + "{" + "}" +] @punctuation.bracket + +; `?` in `{ x ? y }:`, used to set defaults for named function arguments +(formal + name: (identifier) @variable.parameter + "?"? @operator) + +; `...` in `{ ... }`, used to ignore unknown named function arguments (see above) +(ellipses) @variable.parameter.builtin + +; universal is the parameter of the function expression +; `:` in `x: y`, used to separate function argument from body (see above) +(function_expression + universal: (identifier) @variable.parameter + ":" @punctuation.special) + +; function calls +(apply_expression + function: (variable_expression + name: (identifier) @function.call)) + +; basic identifiers +(variable_expression) @variable + +(variable_expression + name: (identifier) @keyword.import + (#eq? @keyword.import "import")) + +(variable_expression + name: (identifier) @boolean + (#any-of? @boolean "true" "false")) + +; string interpolation (this was very annoying to get working properly) +(interpolation + "${" @punctuation.special + (_) + "}" @punctuation.special) @none + +(select_expression + expression: (_) @_expr + attrpath: (attrpath + attr: (identifier) @variable.member) + (#not-eq? @_expr "builtins")) + +(attrset_expression + (binding_set + (binding + . + (attrpath + (identifier) @variable.member)))) + +(rec_attrset_expression + (binding_set + (binding + . + (attrpath + (identifier) @variable.member)))) + +function: (select_expression + attrpath: (attrpath + attr: (identifier) @function.call .)) + +; builtin functions (with builtins prefix) +(select_expression + expression: (variable_expression + name: (identifier) @_id) + attrpath: (attrpath + attr: (identifier) @function.builtin) + (#eq? @_id "builtins")) + +; builtin functions (without builtins prefix) +(variable_expression + name: (identifier) @function.builtin + (#any-of? @function.builtin + ; nix eval --impure --expr 'with builtins; filter (x: !(elem x [ "abort" "import" "throw" ]) && isFunction builtins.${x}) (attrNames builtins)' + "add" "addErrorContext" "all" "any" "appendContext" "attrNames" "attrValues" "baseNameOf" + "bitAnd" "bitOr" "bitXor" "break" "catAttrs" "ceil" "compareVersions" "concatLists" "concatMap" + "concatStringsSep" "deepSeq" "derivation" "derivationStrict" "dirOf" "div" "elem" "elemAt" + "fetchGit" "fetchMercurial" "fetchTarball" "fetchTree" "fetchurl" "filter" "filterSource" + "findFile" "floor" "foldl'" "fromJSON" "fromTOML" "functionArgs" "genList" "genericClosure" + "getAttr" "getContext" "getEnv" "getFlake" "groupBy" "hasAttr" "hasContext" "hashFile" + "hashString" "head" "intersectAttrs" "isAttrs" "isBool" "isFloat" "isFunction" "isInt" "isList" + "isNull" "isPath" "isString" "length" "lessThan" "listToAttrs" "map" "mapAttrs" "match" "mul" + "parseDrvName" "partition" "path" "pathExists" "placeholder" "readDir" "readFile" "removeAttrs" + "replaceStrings" "scopedImport" "seq" "sort" "split" "splitVersion" "storePath" "stringLength" + "sub" "substring" "tail" "toFile" "toJSON" "toPath" "toString" "toXML" "trace" "traceVerbose" + "tryEval" "typeOf" "unsafeDiscardOutputDependency" "unsafeDiscardStringContext" + "unsafeGetAttrPos" "zipAttrsWith" + ; primops, `__` in `nix repl` + "__add" "__filter" "__isFunction" "__split" "__addErrorContext" "__filterSource" "__isInt" + "__splitVersion" "__all" "__findFile" "__isList" "__storeDir" "__any" "__floor" "__isPath" + "__storePath" "__appendContext" "__foldl'" "__isString" "__stringLength" "__attrNames" + "__fromJSON" "__langVersion" "__sub" "__attrValues" "__functionArgs" "__length" "__substring" + "__bitAnd" "__genList" "__lessThan" "__tail" "__bitOr" "__genericClosure" "__listToAttrs" + "__toFile" "__bitXor" "__getAttr" "__mapAttrs" "__toJSON" "__catAttrs" "__getContext" "__match" + "__toPath" "__ceil" "__getEnv" "__mul" "__toXML" "__compareVersions" "__getFlake" "__nixPath" + "__trace" "__concatLists" "__groupBy" "__nixVersion" "__traceVerbose" "__concatMap" "__hasAttr" + "__parseDrvName" "__tryEval" "__concatStringsSep" "__hasContext" "__partition" "__typeOf" + "__currentSystem" "__hashFile" "__path" "__unsafeDiscardOutputDependency" "__currentTime" + "__hashString" "__pathExists" "__unsafeDiscardStringContext" "__deepSeq" "__head" "__readDir" + "__unsafeGetAttrPos" "__div" "__intersectAttrs" "__readFile" "__zipAttrsWith" "__elem" + "__isAttrs" "__replaceStrings" "__elemAt" "__isBool" "__seq" "__fetchurl" "__isFloat" "__sort")) + +; constants +(variable_expression + name: (identifier) @constant.builtin + (#any-of? @constant.builtin + ; nix eval --impure --expr 'with builtins; filter (x: !(isFunction builtins.${x} || isBool builtins.${x})) (attrNames builtins)' + "builtins" "currentSystem" "currentTime" "langVersion" "nixPath" "nixVersion" "null" "storeDir")) + +; function definition +(binding + attrpath: (attrpath + attr: (identifier) @function) + expression: (function_expression)) + +; unary operators +(unary_expression + operator: _ @operator) + +; binary operators +(binary_expression + operator: _ @operator) + +[ + "=" + "@" + "?" +] @operator + +; integers, also highlight a unary - +[ + (unary_expression + "-" + (integer_expression)) + (integer_expression) +] @number + +; floats, also highlight a unary - +[ + (unary_expression + "-" + (float_expression)) + (float_expression) +] @number.float + +; exceptions +(variable_expression + name: (identifier) @keyword.exception + (#any-of? @keyword.exception "abort" "throw")) diff --git a/packages/cli-rs/assets/queries/php/highlights.scm b/packages/cli-rs/assets/queries/php/highlights.scm new file mode 100644 index 000000000000..2bf403641a7b --- /dev/null +++ b/packages/cli-rs/assets/queries/php/highlights.scm @@ -0,0 +1,203 @@ +[ + (php_tag) + (php_end_tag) +] @tag + +; Keywords + +[ + "and" + "as" + "break" + "case" + "catch" + "class" + "clone" + "const" + "continue" + "declare" + "default" + "do" + "echo" + "else" + "elseif" + "enddeclare" + "endfor" + "endforeach" + "endif" + "endswitch" + "endwhile" + "enum" + "exit" + "extends" + "finally" + "fn" + "for" + "foreach" + "function" + "global" + "goto" + "if" + "implements" + "include" + "include_once" + "instanceof" + "insteadof" + "interface" + "match" + "namespace" + "new" + "or" + "print" + "require" + "require_once" + "return" + "switch" + "throw" + "trait" + "try" + "use" + "while" + "xor" + "yield" + "yield from" + (abstract_modifier) + (final_modifier) + (readonly_modifier) + (static_modifier) + (visibility_modifier) +] @keyword + +(function_static_declaration "static" @keyword) + +; Namespace + +(namespace_definition + name: (namespace_name + (name) @module)) + +(namespace_name + (name) @module) + +(namespace_use_clause + [ + (name) @type + (qualified_name + (name) @type) + alias: (name) @type + ]) + +(namespace_use_clause + type: "function" + [ + (name) @function + (qualified_name + (name) @function) + alias: (name) @function + ]) + +(namespace_use_clause + type: "const" + [ + (name) @constant + (qualified_name + (name) @constant) + alias: (name) @constant + ]) + +(relative_name "namespace" @module.builtin) + +; Variables + +(relative_scope) @variable.builtin + +(variable_name) @variable + +(method_declaration name: (name) @constructor + (#eq? @constructor "__construct")) + +(object_creation_expression [ + (name) @constructor + (qualified_name (name) @constructor) + (relative_name (name) @constructor) +]) + +((name) @constant + (#match? @constant "^_?[A-Z][A-Z\\d_]+$")) +((name) @constant.builtin + (#match? @constant.builtin "^__[A-Z][A-Z\d_]+__$")) +(const_declaration (const_element (name) @constant)) + +; Types + +(primitive_type) @type.builtin +(cast_type) @type.builtin +(named_type [ + (name) @type + (qualified_name (name) @type) + (relative_name (name) @type) +]) @type +(named_type (name) @type.builtin + (#any-of? @type.builtin "static" "self")) + +(scoped_call_expression + scope: [ + (name) @type + (qualified_name (name) @type) + (relative_name (name) @type) + ]) + +; Functions + +(array_creation_expression "array" @function.builtin) +(list_literal "list" @function.builtin) +(exit_statement "exit" @function.builtin "(") + +(method_declaration + name: (name) @function.method) + +(function_call_expression + function: [ + (qualified_name (name)) + (relative_name (name)) + (name) + ] @function) + +(scoped_call_expression + name: (name) @function) + +(member_call_expression + name: (name) @function.method) + +(function_definition + name: (name) @function) + +; Member + +(property_element + (variable_name) @property) + +(member_access_expression + name: (variable_name (name)) @property) +(member_access_expression + name: (name) @property) + +; Basic tokens +[ + (string) + (string_content) + (encapsed_string) + (heredoc) + (heredoc_body) + (nowdoc_body) +] @string +(boolean) @constant.builtin +(null) @constant.builtin +(integer) @number +(float) @number +(comment) @comment + +((name) @variable.builtin + (#eq? @variable.builtin "this")) + +"$" @operator diff --git a/packages/cli-rs/assets/queries/python/highlights.scm b/packages/cli-rs/assets/queries/python/highlights.scm new file mode 100644 index 000000000000..af744484432e --- /dev/null +++ b/packages/cli-rs/assets/queries/python/highlights.scm @@ -0,0 +1,137 @@ +; Identifier naming conventions + +(identifier) @variable + +((identifier) @constructor + (#match? @constructor "^[A-Z]")) + +((identifier) @constant + (#match? @constant "^[A-Z][A-Z_]*$")) + +; Function calls + +(decorator) @function +(decorator + (identifier) @function) + +(call + function: (attribute attribute: (identifier) @function.method)) +(call + function: (identifier) @function) + +; Builtin functions + +((call + function: (identifier) @function.builtin) + (#match? + @function.builtin + "^(abs|all|any|ascii|bin|bool|breakpoint|bytearray|bytes|callable|chr|classmethod|compile|complex|delattr|dict|dir|divmod|enumerate|eval|exec|filter|float|format|frozenset|getattr|globals|hasattr|hash|help|hex|id|input|int|isinstance|issubclass|iter|len|list|locals|map|max|memoryview|min|next|object|oct|open|ord|pow|print|property|range|repr|reversed|round|set|setattr|slice|sorted|staticmethod|str|sum|super|tuple|type|vars|zip|__import__)$")) + +; Function definitions + +(function_definition + name: (identifier) @function) + +(attribute attribute: (identifier) @property) +(type (identifier) @type) + +; Literals + +[ + (none) + (true) + (false) +] @constant.builtin + +[ + (integer) + (float) +] @number + +(comment) @comment +(string) @string +(escape_sequence) @escape + +(interpolation + "{" @punctuation.special + "}" @punctuation.special) @embedded + +[ + "-" + "-=" + "!=" + "*" + "**" + "**=" + "*=" + "/" + "//" + "//=" + "/=" + "&" + "&=" + "%" + "%=" + "^" + "^=" + "+" + "->" + "+=" + "<" + "<<" + "<<=" + "<=" + "<>" + "=" + ":=" + "==" + ">" + ">=" + ">>" + ">>=" + "|" + "|=" + "~" + "@=" + "and" + "in" + "is" + "not" + "or" + "is not" + "not in" +] @operator + +[ + "as" + "assert" + "async" + "await" + "break" + "class" + "continue" + "def" + "del" + "elif" + "else" + "except" + "exec" + "finally" + "for" + "from" + "global" + "if" + "import" + "lambda" + "nonlocal" + "pass" + "print" + "raise" + "return" + "try" + "while" + "with" + "yield" + "match" + "case" +] @keyword diff --git a/packages/cli-rs/assets/queries/r/highlights.scm b/packages/cli-rs/assets/queries/r/highlights.scm new file mode 100644 index 000000000000..d9ef3d29343f --- /dev/null +++ b/packages/cli-rs/assets/queries/r/highlights.scm @@ -0,0 +1,148 @@ +; Literals +(integer) @number + +(float) @number.float + +(complex) @number + +(string) @string + +(string + (string_content + (escape_sequence) @string.escape)) + +; Comments +(comment) @comment @spell + +((program + . + (comment) @keyword.directive @nospell) + (#match? @keyword.directive "^#!/")) + +; Operators +[ + "?" + ":=" + "=" + "<-" + "<<-" + "->" + "->>" + "~" + "|>" + "||" + "|" + "&&" + "&" + "<" + "<=" + ">" + ">=" + "==" + "!=" + "+" + "-" + "*" + "/" + "::" + ":::" + "**" + "^" + "$" + "@" + ":" + "!" + "special" +] @operator + +; Punctuation +[ + "(" + ")" + "{" + "}" + "[" + "]" + "[[" + "]]" +] @punctuation.bracket + +(comma) @punctuation.delimiter + +; Variables +(identifier) @variable + +; Functions +(binary_operator + lhs: (identifier) @function + operator: "<-" + rhs: (function_definition)) + +(binary_operator + lhs: (identifier) @function + operator: "=" + rhs: (function_definition)) + +; Calls +(call + function: (identifier) @function.call) + +(extract_operator + rhs: (identifier) @variable.member) + +function: (extract_operator + rhs: (identifier) @function.method.call) + +; Parameters +(parameters + (parameter + name: (identifier) @variable.parameter)) + +(arguments + (argument + name: (identifier) @variable.parameter)) + +; Namespace +(namespace_operator + lhs: (identifier) @module) + +(call + function: (namespace_operator + rhs: (identifier) @function)) + +; Keywords +(function_definition + name: "function" @keyword.function) + +(function_definition + name: "\\" @operator) + +(return) @keyword.return + +[ + "if" + "else" +] @keyword.conditional + +[ + "while" + "repeat" + "for" + "in" + (break) + (next) +] @keyword.repeat + +[ + (true) + (false) +] @boolean + +[ + (null) + (inf) + (nan) + (na) + (dots) + (dot_dot_i) +] @constant.builtin diff --git a/packages/cli-rs/assets/queries/ruby/highlights.scm b/packages/cli-rs/assets/queries/ruby/highlights.scm new file mode 100644 index 000000000000..bfb53fc29ddd --- /dev/null +++ b/packages/cli-rs/assets/queries/ruby/highlights.scm @@ -0,0 +1,309 @@ +; Variables +[ + (identifier) + (global_variable) +] @variable + +; Keywords +[ + "alias" + "begin" + "do" + "end" + "ensure" + "module" + "rescue" + "then" +] @keyword + +"class" @keyword.type + +[ + "return" + "yield" +] @keyword.return + +[ + "and" + "or" + "in" + "not" +] @keyword.operator + +[ + "def" + "undef" +] @keyword.function + +(method + "end" @keyword.function) + +[ + "case" + "else" + "elsif" + "if" + "unless" + "when" + "then" +] @keyword.conditional + +(if + "end" @keyword.conditional) + +[ + "for" + "until" + "while" + "break" + "redo" + "retry" + "next" +] @keyword.repeat + +(constant) @constant + +((identifier) @keyword.modifier + (#any-of? @keyword.modifier "private" "protected" "public")) + +[ + "rescue" + "ensure" +] @keyword.exception + +; Function calls +"defined?" @function + +(call + receiver: (constant)? @type + method: [ + (identifier) + (constant) + ] @function.call) + +(program + (call + (identifier) @keyword.import) + (#any-of? @keyword.import "require" "require_relative" "load")) + +; Function definitions +(alias + (identifier) @function) + +(setter + (identifier) @function) + +(method + name: [ + (identifier) @function + (constant) @type + ]) + +(singleton_method + name: [ + (identifier) @function + (constant) @type + ]) + +(class + name: (constant) @type) + +(module + name: (constant) @type) + +(superclass + (constant) @type) + +; Identifiers +[ + (class_variable) + (instance_variable) +] @variable.member + +((identifier) @constant.builtin + (#any-of? @constant.builtin + "__callee__" "__dir__" "__id__" "__method__" "__send__" "__ENCODING__" "__FILE__" "__LINE__")) + +((identifier) @function.builtin + (#any-of? @function.builtin "attr_reader" "attr_writer" "attr_accessor" "module_function")) + +((call + !receiver + method: (identifier) @function.builtin) + (#any-of? @function.builtin "include" "extend" "prepend" "refine" "using")) + +((identifier) @keyword.exception + (#any-of? @keyword.exception "raise" "fail" "catch" "throw")) + +((constant) @type + (#not-match? @type "^[A-Z0-9_]+$")) + +[ + (self) + (super) +] @variable.builtin + +(method_parameters + (identifier) @variable.parameter) + +(lambda_parameters + (identifier) @variable.parameter) + +(block_parameters + (identifier) @variable.parameter) + +(splat_parameter + (identifier) @variable.parameter) + +(hash_splat_parameter + (identifier) @variable.parameter) + +(optional_parameter + (identifier) @variable.parameter) + +(destructured_parameter + (identifier) @variable.parameter) + +(block_parameter + (identifier) @variable.parameter) + +(keyword_parameter + (identifier) @variable.parameter) + +; TODO: Re-enable this once it is supported +; ((identifier) @function +; (#is-not? local)) +; Literals +[ + (string_content) + (heredoc_content) + "\"" + "`" +] @string + +[ + (heredoc_beginning) + (heredoc_end) +] @label + +[ + (bare_symbol) + (simple_symbol) + (delimited_symbol) + (hash_key_symbol) +] @string.special.symbol + +(regex + (string_content) @string.regexp) + +(escape_sequence) @string.escape + +(integer) @number + +(float) @number.float + +[ + (true) + (false) +] @boolean + +(nil) @constant.builtin + +(comment) @comment @spell + +((program + . + (comment) @keyword.directive @nospell) + (#match? @keyword.directive "^#!/")) + +(program + (comment)+ @comment.documentation + (class)) + +(module + (comment)+ @comment.documentation + (body_statement + (class))) + +(class + (comment)+ @comment.documentation + (body_statement + (method))) + +(body_statement + (comment)+ @comment.documentation + (method)) + +; Operators +[ + "!" + "=" + "==" + "===" + "<=>" + "=>" + "->" + ">>" + "<<" + ">" + "<" + ">=" + "<=" + "**" + "*" + "/" + "%" + "+" + "-" + "&" + "|" + "^" + "&&" + "||" + "||=" + "&&=" + "!=" + "%=" + "+=" + "-=" + "*=" + "/=" + "=~" + "!~" + "?" + ":" + ".." + "..." +] @operator + +[ + "," + ";" + "." + "&." + "::" +] @punctuation.delimiter + +(regex + "/" @punctuation.bracket) + +(pair + ":" @punctuation.delimiter) + +[ + "(" + ")" + "[" + "]" + "{" + "}" + "%w(" + "%i(" +] @punctuation.bracket + +(block_parameters + "|" @punctuation.bracket) + +(interpolation + "#{" @punctuation.special + "}" @punctuation.special) diff --git a/packages/cli-rs/assets/queries/rust/highlights.scm b/packages/cli-rs/assets/queries/rust/highlights.scm new file mode 100644 index 000000000000..24e3bb269a94 --- /dev/null +++ b/packages/cli-rs/assets/queries/rust/highlights.scm @@ -0,0 +1,531 @@ +; Forked from https://github.com/tree-sitter/tree-sitter-rust +; Copyright (c) 2017 Maxim Sokolov +; Licensed under the MIT license. +; Identifier conventions +(shebang) @keyword.directive + +(identifier) @variable + +((identifier) @type + (#match? @type "^[A-Z]")) + +(const_item + name: (identifier) @constant) + +; Assume all-caps names are constants +((identifier) @constant + (#match? @constant "^[A-Z][A-Z0-9_]*$")) + +; Other identifiers +(type_identifier) @type + +(primitive_type) @type.builtin + +(field_identifier) @variable.member + +(shorthand_field_identifier) @variable.member + +(shorthand_field_initializer + (identifier) @variable.member) + +(mod_item + name: (identifier) @module) + +(self) @variable.builtin + +"_" @character.special + +(label + [ + "'" + (identifier) + ] @label) + +; Function definitions +(function_item + (identifier) @function) + +(function_signature_item + (identifier) @function) + +(parameter + [ + (identifier) + "_" + ] @variable.parameter) + +(parameter + (ref_pattern + [ + (mut_pattern + (identifier) @variable.parameter) + (identifier) @variable.parameter + ])) + +(closure_parameters + (_) @variable.parameter) + +; Function calls +(call_expression + function: (identifier) @function.call) + +(call_expression + function: (scoped_identifier + (identifier) @function.call .)) + +(call_expression + function: (field_expression + field: (field_identifier) @function.call)) + +(generic_function + function: (identifier) @function.call) + +(generic_function + function: (scoped_identifier + name: (identifier) @function.call)) + +(generic_function + function: (field_expression + field: (field_identifier) @function.call)) + +; Assume other uppercase names are enum constructors +((field_identifier) @constant + (#match? @constant "^[A-Z]")) + +(enum_variant + name: (identifier) @constant) + +; Assume that uppercase names in paths are types +(scoped_identifier + path: (identifier) @module) + +(scoped_identifier + (scoped_identifier + name: (identifier) @module)) + +(scoped_type_identifier + path: (identifier) @module) + +(scoped_type_identifier + path: (identifier) @type + (#match? @type "^[A-Z]")) + +(scoped_type_identifier + (scoped_identifier + name: (identifier) @module)) + +((scoped_identifier + path: (identifier) @type) + (#match? @type "^[A-Z]")) + +((scoped_identifier + name: (identifier) @type) + (#match? @type "^[A-Z]")) + +((scoped_identifier + name: (identifier) @constant) + (#match? @constant "^[A-Z][A-Z0-9_]*$")) + +((scoped_identifier + path: (identifier) @type + name: (identifier) @constant) + (#match? @type "^[A-Z]") + (#match? @constant "^[A-Z]")) + +((scoped_type_identifier + path: (identifier) @type + name: (type_identifier) @constant) + (#match? @type "^[A-Z]") + (#match? @constant "^[A-Z]")) + +[ + (crate) + (super) +] @module + +(scoped_use_list + path: (identifier) @module) + +(scoped_use_list + path: (scoped_identifier + (identifier) @module)) + +(use_list + (scoped_identifier + (identifier) @module + . + (_))) + +(use_list + (identifier) @type + (#match? @type "^[A-Z]")) + +(use_as_clause + alias: (identifier) @type + (#match? @type "^[A-Z]")) + +; Correct enum constructors +(call_expression + function: (scoped_identifier + "::" + name: (identifier) @constant) + (#match? @constant "^[A-Z]")) + +; Assume uppercase names in a match arm are constants. +((match_arm + pattern: (match_pattern + (identifier) @constant)) + (#match? @constant "^[A-Z]")) + +((match_arm + pattern: (match_pattern + (scoped_identifier + name: (identifier) @constant))) + (#match? @constant "^[A-Z]")) + +((identifier) @constant.builtin + (#any-of? @constant.builtin "Some" "None" "Ok" "Err")) + +; Macro definitions +"$" @function.macro + +(metavariable) @function.macro + +(macro_definition + "macro_rules!" @function.macro) + +; Attribute macros +(attribute_item + (attribute + (identifier) @function.macro)) + +(inner_attribute_item + (attribute + (identifier) @function.macro)) + +(attribute + (scoped_identifier + (identifier) @function.macro .)) + +; Derive macros (assume all arguments are types) +; (attribute +; (identifier) @_name +; arguments: (attribute (attribute (identifier) @type)) +; (#eq? @_name "derive")) +; Function-like macros +(macro_invocation + macro: (identifier) @function.macro) + +(macro_invocation + macro: (scoped_identifier + (identifier) @function.macro .)) + +; Literals +(boolean_literal) @boolean + +(integer_literal) @number + +(float_literal) @number.float + +[ + (raw_string_literal) + (string_literal) +] @string + +(escape_sequence) @string.escape + +(char_literal) @character + +; Keywords +[ + "use" + "mod" +] @keyword.import + +(use_as_clause + "as" @keyword.import) + +[ + "default" + "impl" + "let" + "move" + "unsafe" + "where" +] @keyword + +[ + "enum" + "struct" + "union" + "trait" + "type" +] @keyword.type + +[ + "async" + "await" + "gen" +] @keyword.coroutine + +"try" @keyword.exception + +[ + "ref" + "pub" + "raw" + (mutable_specifier) + "const" + "static" + "dyn" + "extern" +] @keyword.modifier + +(lifetime + "'" @keyword.modifier) + +(lifetime + (identifier) @attribute) + +(lifetime + (identifier) @attribute.builtin + (#any-of? @attribute.builtin "static" "_")) + +"fn" @keyword.function + +[ + "return" + "yield" +] @keyword.return + +(type_cast_expression + "as" @keyword.operator) + +(qualified_type + "as" @keyword.operator) + +(use_list + (self) @module) + +(scoped_use_list + (self) @module) + +(scoped_identifier + [ + (crate) + (super) + (self) + ] @module) + +(visibility_modifier + [ + (crate) + (super) + (self) + ] @module) + +[ + "if" + "else" + "match" +] @keyword.conditional + +[ + "break" + "continue" + "in" + "loop" + "while" +] @keyword.repeat + +"for" @keyword + +(for_expression + "for" @keyword.repeat) + +; Operators +[ + "!" + "!=" + "%" + "%=" + "&" + "&&" + "&=" + "*" + "*=" + "+" + "+=" + "-" + "-=" + ".." + "..=" + "..." + "/" + "/=" + "<" + "<<" + "<<=" + "<=" + "=" + "==" + ">" + ">=" + ">>" + ">>=" + "?" + "@" + "^" + "^=" + "|" + "|=" + "||" +] @operator + +(use_wildcard + "*" @character.special) + +(remaining_field_pattern + ".." @character.special) + +(range_pattern + [ + ".." + "..=" + "..." + ] @character.special) + +; Punctuation +[ + "(" + ")" + "[" + "]" + "{" + "}" +] @punctuation.bracket + +(closure_parameters + "|" @punctuation.bracket) + +(type_arguments + [ + "<" + ">" + ] @punctuation.bracket) + +(type_parameters + [ + "<" + ">" + ] @punctuation.bracket) + +(bracketed_type + [ + "<" + ">" + ] @punctuation.bracket) + +(for_lifetimes + [ + "<" + ">" + ] @punctuation.bracket) + +[ + "," + "." + ":" + "::" + ";" + "->" + "=>" +] @punctuation.delimiter + +(attribute_item + "#" @punctuation.special) + +(inner_attribute_item + [ + "!" + "#" + ] @punctuation.special) + +(macro_invocation + "!" @function.macro) + +(never_type + "!" @type.builtin) + +(macro_invocation + macro: (identifier) @_identifier @keyword.exception + "!" @keyword.exception + (#eq? @_identifier "panic")) + +(macro_invocation + macro: (identifier) @_identifier @keyword.exception + "!" @keyword.exception + (#contains? @_identifier "assert")) + +(macro_invocation + macro: (identifier) @_identifier @keyword.debug + "!" @keyword.debug + (#eq? @_identifier "dbg")) + +; Comments +[ + (line_comment) + (block_comment) + (outer_doc_comment_marker) + (inner_doc_comment_marker) +] @comment @spell + +(line_comment + (doc_comment)) @comment.documentation + +(block_comment + (doc_comment)) @comment.documentation + +(call_expression + function: (scoped_identifier + path: (identifier) @_regex + (#any-of? @_regex "Regex" "ByteRegexBuilder") + name: (identifier) @_new + (#eq? @_new "new")) + arguments: (arguments + (raw_string_literal + (string_content) @string.regexp))) + +(call_expression + function: (scoped_identifier + path: (scoped_identifier + (identifier) @_regex + (#any-of? @_regex "Regex" "ByteRegexBuilder") .) + name: (identifier) @_new + (#eq? @_new "new")) + arguments: (arguments + (raw_string_literal + (string_content) @string.regexp))) + +(call_expression + function: (scoped_identifier + path: (identifier) @_regex + (#any-of? @_regex "RegexSet" "RegexSetBuilder") + name: (identifier) @_new + (#eq? @_new "new")) + arguments: (arguments + (array_expression + (raw_string_literal + (string_content) @string.regexp)))) + +(call_expression + function: (scoped_identifier + path: (scoped_identifier + (identifier) @_regex + (#any-of? @_regex "RegexSet" "RegexSetBuilder") .) + name: (identifier) @_new + (#eq? @_new "new")) + arguments: (arguments + (array_expression + (raw_string_literal + (string_content) @string.regexp)))) diff --git a/packages/cli-rs/assets/queries/scala/highlights.scm b/packages/cli-rs/assets/queries/scala/highlights.scm new file mode 100644 index 000000000000..8a4b5f05495a --- /dev/null +++ b/packages/cli-rs/assets/queries/scala/highlights.scm @@ -0,0 +1,311 @@ +; CREDITS @stumash (stuart.mashaal@gmail.com) +(class_definition + name: (identifier) @type) + +(enum_definition + name: (identifier) @type) + +(object_definition + name: (identifier) @type) + +(trait_definition + name: (identifier) @type) + +(full_enum_case + name: (identifier) @type) + +(simple_enum_case + name: (identifier) @type) + +; variables +(class_parameter + name: (identifier) @variable.parameter) + +(self_type + (identifier) @variable.parameter) + +(interpolation + (identifier) @none) + +(interpolation + (block) @none) + +; types +(type_definition + name: (type_identifier) @type.definition) + +(type_identifier) @type + +; val/var definitions/declarations +(val_definition + pattern: (identifier) @variable) + +(var_definition + pattern: (identifier) @variable) + +(val_declaration + name: (identifier) @variable) + +(var_declaration + name: (identifier) @variable) + +; method definition +(function_declaration + name: (identifier) @function.method) + +(function_definition + name: (identifier) @function.method) + +; imports/exports +(import_declaration + path: (identifier) @module) + +(stable_identifier + (identifier) @module) + +((import_declaration + path: (identifier) @type) + (#match? @type "^[A-Z]")) + +((stable_identifier + (identifier) @type) + (#match? @type "^[A-Z]")) + +(export_declaration + path: (identifier) @module) + +(stable_identifier + (identifier) @module) + +((export_declaration + path: (identifier) @type) + (#match? @type "^[A-Z]")) + +((stable_identifier + (identifier) @type) + (#match? @type "^[A-Z]")) + +((namespace_selectors + (identifier) @type) + (#match? @type "^[A-Z]")) + +; method invocation +(call_expression + function: (identifier) @function.call) + +(call_expression + function: (operator_identifier) @function.call) + +(call_expression + function: (field_expression + field: (identifier) @function.method.call)) + +((call_expression + function: (identifier) @constructor) + (#match? @constructor "^[A-Z]")) + +(generic_function + function: (identifier) @function.call) + +(interpolated_string_expression + interpolator: (identifier) @function.call) + +; function definitions +(function_definition + name: (identifier) @function) + +(parameter + name: (identifier) @variable.parameter) + +(binding + name: (identifier) @variable.parameter) + +(lambda_expression + parameters: (identifier) @variable.parameter) + +; expressions +(field_expression + field: (identifier) @variable.member) + +(field_expression + value: (identifier) @type + (#match? @type "^[A-Z]")) + +(infix_expression + operator: (identifier) @operator) + +(infix_expression + operator: (operator_identifier) @operator) + +(infix_type + operator: (operator_identifier) @operator) + +(infix_type + operator: (operator_identifier) @operator) + +; literals +(boolean_literal) @boolean + +(integer_literal) @number + +(floating_point_literal) @number.float + +[ + (string) + (interpolated_string_expression) +] @string + +(character_literal) @character + +(interpolation + "$" @punctuation.special) + +; keywords +(opaque_modifier) @keyword.modifier + +(infix_modifier) @keyword + +(transparent_modifier) @keyword.modifier + +(open_modifier) @keyword.modifier + +[ + "case" + "extends" + "derives" + "finally" + ; `forSome` existential types not implemented yet + ; `macro` not implemented yet + "object" + "override" + "val" + "var" + "with" + "given" + "using" + "end" + "implicit" + "extension" + "with" +] @keyword + +[ + "enum" + "class" + "trait" + "type" +] @keyword.type + +[ + "abstract" + "final" + "lazy" + "sealed" + "private" + "protected" +] @keyword.modifier + +(inline_modifier) @keyword.modifier + +(null_literal) @constant.builtin + +(wildcard + "_") @character.special + +(namespace_wildcard + [ + "*" + "_" + ] @character.special) + +(annotation) @attribute + +; special keywords +"new" @keyword.operator + +[ + "else" + "if" + "match" + "then" +] @keyword.conditional + +[ + "(" + ")" + "[" + "]" + "{" + "}" +] @punctuation.bracket + +[ + "." + "," + ":" +] @punctuation.delimiter + +[ + "do" + "for" + "while" + "yield" +] @keyword.repeat + +"def" @keyword.function + +[ + "=>" + "?=>" + "=" + "!" + "<-" + "@" +] @operator + +[ + "import" + "export" + "package" +] @keyword.import + +[ + "try" + "catch" + "throw" +] @keyword.exception + +"return" @keyword.return + +[ + (comment) + (block_comment) +] @comment @spell + +((block_comment) @comment.documentation + (#match? @comment.documentation "^/[*][*][^*](?s:.)*[*]/$")) + +; `case` is a conditional keyword in case_block +(case_block + (case_clause + "case" @keyword.conditional)) + +(case_block + (case_clause + "=>" @punctuation.delimiter)) + +(operator_identifier) @operator + +((identifier) @type + (#match? @type "^[A-Z]")) + +((identifier) @variable.builtin + (#match? @variable.builtin "^this$")) + +((identifier) @function.builtin + (#match? @function.builtin "^super$")) + +; Scala CLI using directives +(using_directive_key) @variable.parameter + +(using_directive_value) @string diff --git a/packages/cli-rs/assets/queries/toml/highlights.scm b/packages/cli-rs/assets/queries/toml/highlights.scm new file mode 100644 index 000000000000..f4eaf3f7764c --- /dev/null +++ b/packages/cli-rs/assets/queries/toml/highlights.scm @@ -0,0 +1,39 @@ +(bare_key) @property + +[ + (string) + (quoted_key) +] @string + +(boolean) @boolean + +(comment) @comment @spell + +(escape_sequence) @string.escape + +(integer) @number + +(float) @number.float + +[ + (local_date) + (local_date_time) + (local_time) + (offset_date_time) +] @string.special + +"=" @operator + +[ + "." + "," +] @punctuation.delimiter + +[ + "[" + "]" + "[[" + "]]" + "{" + "}" +] @punctuation.bracket diff --git a/packages/cli-rs/assets/queries/typescript/highlights.scm b/packages/cli-rs/assets/queries/typescript/highlights.scm new file mode 100644 index 000000000000..9d89903c4caa --- /dev/null +++ b/packages/cli-rs/assets/queries/typescript/highlights.scm @@ -0,0 +1,604 @@ +; Query from: https://raw.githubusercontent.com/nvim-treesitter/nvim-treesitter/refs/heads/master/queries/ecma/highlights.scm +; Types +; Javascript +; Variables +;----------- +(identifier) @variable + +; Properties +;----------- +(property_identifier) @variable.member + +(shorthand_property_identifier) @variable.member + +(private_property_identifier) @variable.member + +(object_pattern + (shorthand_property_identifier_pattern) @variable) + +(object_pattern + (object_assignment_pattern + (shorthand_property_identifier_pattern) @variable)) + +; Special identifiers +;-------------------- +((identifier) @type + (#match? @type "^[A-Z]")) + +((identifier) @constant + (#match? @constant "^_*[A-Z][A-Z0-9_]*$")) + +((shorthand_property_identifier) @constant + (#match? @constant "^_*[A-Z][A-Z0-9_]*$")) + +((identifier) @variable.builtin + (#any-of? @variable.builtin "arguments" "module" "console" "window" "document")) + +((identifier) @type.builtin + (#any-of? @type.builtin + "Object" "Function" "Boolean" "Symbol" "Number" "Math" "Date" "String" "RegExp" "Map" "Set" + "WeakMap" "WeakSet" "Promise" "Array" "Int8Array" "Uint8Array" "Uint8ClampedArray" "Int16Array" + "Uint16Array" "Int32Array" "Uint32Array" "Float32Array" "Float64Array" "ArrayBuffer" "DataView" + "Error" "EvalError" "InternalError" "RangeError" "ReferenceError" "SyntaxError" "TypeError" + "URIError")) + +(statement_identifier) @label + +; Function and method definitions +;-------------------------------- +(function_expression + name: (identifier) @function) + +(function_declaration + name: (identifier) @function) + +(generator_function + name: (identifier) @function) + +(generator_function_declaration + name: (identifier) @function) + +(method_definition + name: [ + (property_identifier) + (private_property_identifier) + ] @function.method) + +(method_definition + name: (property_identifier) @constructor + (#eq? @constructor "constructor")) + +(pair + key: (property_identifier) @function.method + value: (function_expression)) + +(pair + key: (property_identifier) @function.method + value: (arrow_function)) + +(assignment_expression + left: (member_expression + property: (property_identifier) @function.method) + right: (arrow_function)) + +(assignment_expression + left: (member_expression + property: (property_identifier) @function.method) + right: (function_expression)) + +(variable_declarator + name: (identifier) @function + value: (arrow_function)) + +(variable_declarator + name: (identifier) @function + value: (function_expression)) + +(assignment_expression + left: (identifier) @function + right: (arrow_function)) + +(assignment_expression + left: (identifier) @function + right: (function_expression)) + +; Function and method calls +;-------------------------- +(call_expression + function: (identifier) @function.call) + +(call_expression + function: (member_expression + property: [ + (property_identifier) + (private_property_identifier) + ] @function.method.call)) + +(call_expression + function: (await_expression + (identifier) @function.call)) + +(call_expression + function: (await_expression + (member_expression + property: [ + (property_identifier) + (private_property_identifier) + ] @function.method.call))) + +; Builtins +;--------- +((identifier) @module.builtin + (#eq? @module.builtin "Intl")) + +((identifier) @function.builtin + (#any-of? @function.builtin + "eval" "isFinite" "isNaN" "parseFloat" "parseInt" "decodeURI" "decodeURIComponent" "encodeURI" + "encodeURIComponent" "require")) + +; Constructor +;------------ +(new_expression + constructor: (identifier) @constructor) + +; Decorators +;---------- +(decorator + "@" @attribute + (identifier) @attribute) + +(decorator + "@" @attribute + (call_expression + (identifier) @attribute)) + +(decorator + "@" @attribute + (member_expression + (property_identifier) @attribute)) + +(decorator + "@" @attribute + (call_expression + (member_expression + (property_identifier) @attribute))) + +; Literals +;--------- +[ + (this) + (super) +] @variable.builtin + +((identifier) @variable.builtin + (#eq? @variable.builtin "self")) + +[ + (true) + (false) +] @boolean + +[ + (null) + (undefined) +] @constant.builtin + +[ + (comment) + (html_comment) +] @comment @spell + +((comment) @comment.documentation + (#match? @comment.documentation "^/[*][*][^*](?s:.)*[*]/$")) + +(hash_bang_line) @keyword.directive + +((string_fragment) @keyword.directive + (#eq? @keyword.directive "use strict")) + +(string) @string + +(template_string) @string + +(escape_sequence) @string.escape + +(regex_pattern) @string.regexp + +(regex_flags) @character.special + +(regex + "/" @punctuation.bracket) ; Regex delimiters + +(number) @number + +((identifier) @number + (#any-of? @number "NaN" "Infinity")) + +; Punctuation +;------------ +[ + ";" + "." + "," + ":" +] @punctuation.delimiter + +[ + "--" + "-" + "-=" + "&&" + "+" + "++" + "+=" + "&=" + "/=" + "**=" + "<<=" + "<" + "<=" + "<<" + "=" + "==" + "===" + "!=" + "!==" + "=>" + ">" + ">=" + ">>" + "||" + "%" + "%=" + "*" + "**" + ">>>" + "&" + "|" + "^" + "??" + "*=" + ">>=" + ">>>=" + "^=" + "|=" + "&&=" + "||=" + "??=" + "..." +] @operator + +(binary_expression + "/" @operator) + +(ternary_expression + [ + "?" + ":" + ] @keyword.conditional.ternary) + +(unary_expression + [ + "!" + "~" + "-" + "+" + ] @operator) + +(unary_expression + [ + "delete" + "void" + ] @keyword.operator) + +[ + "(" + ")" + "[" + "]" + "{" + "}" +] @punctuation.bracket + +(template_substitution + [ + "${" + "}" + ] @punctuation.special) @none + +; Imports +;---------- +(namespace_import + "*" @character.special + (identifier) @module) + +(namespace_export + "*" @character.special + (identifier) @module) + +(export_statement + "*" @character.special) + +; Keywords +;---------- +[ + "if" + "else" + "switch" + "case" +] @keyword.conditional + +[ + "import" + "from" + "as" + "export" +] @keyword.import + +[ + "for" + "of" + "do" + "while" + "continue" +] @keyword.repeat + +[ + "break" + "const" + "debugger" + "extends" + "get" + "let" + "set" + "static" + "target" + "var" + "with" +] @keyword + +"class" @keyword.type + +[ + "async" + "await" +] @keyword.coroutine + +[ + "return" + "yield" +] @keyword.return + +"function" @keyword.function + +[ + "new" + "delete" + "in" + "instanceof" + "typeof" +] @keyword.operator + +[ + "throw" + "try" + "catch" + "finally" +] @keyword.exception + +(export_statement + "default" @keyword) + +(switch_default + "default" @keyword.conditional) + + +; Query from: https://raw.githubusercontent.com/nvim-treesitter/nvim-treesitter/refs/heads/master/queries/typescript/highlights.scm +; inherits: ecma + +"require" @keyword.import + +(import_require_clause + source: (string) @string.special.url) + +[ + "declare" + "implements" + "type" + "override" + "module" + "asserts" + "infer" + "is" + "using" +] @keyword + +[ + "namespace" + "interface" + "enum" +] @keyword.type + +[ + "keyof" + "satisfies" +] @keyword.operator + +(as_expression + "as" @keyword.operator) + +(mapped_type_clause + "as" @keyword.operator) + +[ + "abstract" + "private" + "protected" + "public" + "readonly" +] @keyword.modifier + +; types +(type_identifier) @type + +(predefined_type) @type.builtin + +(import_statement + "type" + (import_clause + (named_imports + (import_specifier + name: (identifier) @type)))) + +(template_literal_type) @string + +(non_null_expression + "!" @operator) + +; punctuation +(type_arguments + [ + "<" + ">" + ] @punctuation.bracket) + +(type_parameters + [ + "<" + ">" + ] @punctuation.bracket) + +(object_type + [ + "{|" + "|}" + ] @punctuation.bracket) + +(union_type + "|" @punctuation.delimiter) + +(intersection_type + "&" @punctuation.delimiter) + +(type_annotation + ":" @punctuation.delimiter) + +(type_predicate_annotation + ":" @punctuation.delimiter) + +(index_signature + ":" @punctuation.delimiter) + +(omitting_type_annotation + "-?:" @punctuation.delimiter) + +(adding_type_annotation + "+?:" @punctuation.delimiter) + +(opting_type_annotation + "?:" @punctuation.delimiter) + +"?." @punctuation.delimiter + +(abstract_method_signature + "?" @punctuation.special) + +(method_signature + "?" @punctuation.special) + +(method_definition + "?" @punctuation.special) + +(property_signature + "?" @punctuation.special) + +(optional_parameter + "?" @punctuation.special) + +(optional_type + "?" @punctuation.special) + +(public_field_definition + [ + "?" + "!" + ] @punctuation.special) + +(flow_maybe_type + "?" @punctuation.special) + +(template_type + [ + "${" + "}" + ] @punctuation.special) + +(conditional_type + [ + "?" + ":" + ] @keyword.conditional.ternary) + +; Parameters +(required_parameter + pattern: (identifier) @variable.parameter) + +(optional_parameter + pattern: (identifier) @variable.parameter) + +(required_parameter + (rest_pattern + (identifier) @variable.parameter)) + +; ({ a }) => null +(required_parameter + (object_pattern + (shorthand_property_identifier_pattern) @variable.parameter)) + +; ({ a = b }) => null +(required_parameter + (object_pattern + (object_assignment_pattern + (shorthand_property_identifier_pattern) @variable.parameter))) + +; ({ a: b }) => null +(required_parameter + (object_pattern + (pair_pattern + value: (identifier) @variable.parameter))) + +; ([ a ]) => null +(required_parameter + (array_pattern + (identifier) @variable.parameter)) + +; a => null +(arrow_function + parameter: (identifier) @variable.parameter) + +; global declaration +(ambient_declaration + "global" @module) + +; function signatures +(ambient_declaration + (function_signature + name: (identifier) @function)) + +; method signatures +(method_signature + name: (_) @function.method) + +(abstract_method_signature + name: (property_identifier) @function.method) + +; property signatures +(property_signature + name: (property_identifier) @function.method + type: (type_annotation + [ + (union_type + (parenthesized_type + (function_type))) + (function_type) + ])) diff --git a/packages/cli-rs/assets/queries/typescriptreact/highlights.scm b/packages/cli-rs/assets/queries/typescriptreact/highlights.scm new file mode 100644 index 000000000000..801332e2cff4 --- /dev/null +++ b/packages/cli-rs/assets/queries/typescriptreact/highlights.scm @@ -0,0 +1,758 @@ +; Query from: https://raw.githubusercontent.com/nvim-treesitter/nvim-treesitter/refs/heads/master/queries/ecma/highlights.scm +; Types +; Javascript +; Variables +;----------- +(identifier) @variable + +; Properties +;----------- +(property_identifier) @variable.member + +(shorthand_property_identifier) @variable.member + +(private_property_identifier) @variable.member + +(object_pattern + (shorthand_property_identifier_pattern) @variable) + +(object_pattern + (object_assignment_pattern + (shorthand_property_identifier_pattern) @variable)) + +; Special identifiers +;-------------------- +((identifier) @type + (#match? @type "^[A-Z]")) + +((identifier) @constant + (#match? @constant "^_*[A-Z][A-Z0-9_]*$")) + +((shorthand_property_identifier) @constant + (#match? @constant "^_*[A-Z][A-Z0-9_]*$")) + +((identifier) @variable.builtin + (#any-of? @variable.builtin "arguments" "module" "console" "window" "document")) + +((identifier) @type.builtin + (#any-of? @type.builtin + "Object" "Function" "Boolean" "Symbol" "Number" "Math" "Date" "String" "RegExp" "Map" "Set" + "WeakMap" "WeakSet" "Promise" "Array" "Int8Array" "Uint8Array" "Uint8ClampedArray" "Int16Array" + "Uint16Array" "Int32Array" "Uint32Array" "Float32Array" "Float64Array" "ArrayBuffer" "DataView" + "Error" "EvalError" "InternalError" "RangeError" "ReferenceError" "SyntaxError" "TypeError" + "URIError")) + +(statement_identifier) @label + +; Function and method definitions +;-------------------------------- +(function_expression + name: (identifier) @function) + +(function_declaration + name: (identifier) @function) + +(generator_function + name: (identifier) @function) + +(generator_function_declaration + name: (identifier) @function) + +(method_definition + name: [ + (property_identifier) + (private_property_identifier) + ] @function.method) + +(method_definition + name: (property_identifier) @constructor + (#eq? @constructor "constructor")) + +(pair + key: (property_identifier) @function.method + value: (function_expression)) + +(pair + key: (property_identifier) @function.method + value: (arrow_function)) + +(assignment_expression + left: (member_expression + property: (property_identifier) @function.method) + right: (arrow_function)) + +(assignment_expression + left: (member_expression + property: (property_identifier) @function.method) + right: (function_expression)) + +(variable_declarator + name: (identifier) @function + value: (arrow_function)) + +(variable_declarator + name: (identifier) @function + value: (function_expression)) + +(assignment_expression + left: (identifier) @function + right: (arrow_function)) + +(assignment_expression + left: (identifier) @function + right: (function_expression)) + +; Function and method calls +;-------------------------- +(call_expression + function: (identifier) @function.call) + +(call_expression + function: (member_expression + property: [ + (property_identifier) + (private_property_identifier) + ] @function.method.call)) + +(call_expression + function: (await_expression + (identifier) @function.call)) + +(call_expression + function: (await_expression + (member_expression + property: [ + (property_identifier) + (private_property_identifier) + ] @function.method.call))) + +; Builtins +;--------- +((identifier) @module.builtin + (#eq? @module.builtin "Intl")) + +((identifier) @function.builtin + (#any-of? @function.builtin + "eval" "isFinite" "isNaN" "parseFloat" "parseInt" "decodeURI" "decodeURIComponent" "encodeURI" + "encodeURIComponent" "require")) + +; Constructor +;------------ +(new_expression + constructor: (identifier) @constructor) + +; Decorators +;---------- +(decorator + "@" @attribute + (identifier) @attribute) + +(decorator + "@" @attribute + (call_expression + (identifier) @attribute)) + +(decorator + "@" @attribute + (member_expression + (property_identifier) @attribute)) + +(decorator + "@" @attribute + (call_expression + (member_expression + (property_identifier) @attribute))) + +; Literals +;--------- +[ + (this) + (super) +] @variable.builtin + +((identifier) @variable.builtin + (#eq? @variable.builtin "self")) + +[ + (true) + (false) +] @boolean + +[ + (null) + (undefined) +] @constant.builtin + +[ + (comment) + (html_comment) +] @comment @spell + +((comment) @comment.documentation + (#match? @comment.documentation "^/[*][*][^*](?s:.)*[*]/$")) + +(hash_bang_line) @keyword.directive + +((string_fragment) @keyword.directive + (#eq? @keyword.directive "use strict")) + +(string) @string + +(template_string) @string + +(escape_sequence) @string.escape + +(regex_pattern) @string.regexp + +(regex_flags) @character.special + +(regex + "/" @punctuation.bracket) ; Regex delimiters + +(number) @number + +((identifier) @number + (#any-of? @number "NaN" "Infinity")) + +; Punctuation +;------------ +[ + ";" + "." + "," + ":" +] @punctuation.delimiter + +[ + "--" + "-" + "-=" + "&&" + "+" + "++" + "+=" + "&=" + "/=" + "**=" + "<<=" + "<" + "<=" + "<<" + "=" + "==" + "===" + "!=" + "!==" + "=>" + ">" + ">=" + ">>" + "||" + "%" + "%=" + "*" + "**" + ">>>" + "&" + "|" + "^" + "??" + "*=" + ">>=" + ">>>=" + "^=" + "|=" + "&&=" + "||=" + "??=" + "..." +] @operator + +(binary_expression + "/" @operator) + +(ternary_expression + [ + "?" + ":" + ] @keyword.conditional.ternary) + +(unary_expression + [ + "!" + "~" + "-" + "+" + ] @operator) + +(unary_expression + [ + "delete" + "void" + ] @keyword.operator) + +[ + "(" + ")" + "[" + "]" + "{" + "}" +] @punctuation.bracket + +(template_substitution + [ + "${" + "}" + ] @punctuation.special) @none + +; Imports +;---------- +(namespace_import + "*" @character.special + (identifier) @module) + +(namespace_export + "*" @character.special + (identifier) @module) + +(export_statement + "*" @character.special) + +; Keywords +;---------- +[ + "if" + "else" + "switch" + "case" +] @keyword.conditional + +[ + "import" + "from" + "as" + "export" +] @keyword.import + +[ + "for" + "of" + "do" + "while" + "continue" +] @keyword.repeat + +[ + "break" + "const" + "debugger" + "extends" + "get" + "let" + "set" + "static" + "target" + "var" + "with" +] @keyword + +"class" @keyword.type + +[ + "async" + "await" +] @keyword.coroutine + +[ + "return" + "yield" +] @keyword.return + +"function" @keyword.function + +[ + "new" + "delete" + "in" + "instanceof" + "typeof" +] @keyword.operator + +[ + "throw" + "try" + "catch" + "finally" +] @keyword.exception + +(export_statement + "default" @keyword) + +(switch_default + "default" @keyword.conditional) + + +; Query from: https://raw.githubusercontent.com/nvim-treesitter/nvim-treesitter/refs/heads/master/queries/typescript/highlights.scm +; inherits: ecma + +"require" @keyword.import + +(import_require_clause + source: (string) @string.special.url) + +[ + "declare" + "implements" + "type" + "override" + "module" + "asserts" + "infer" + "is" + "using" +] @keyword + +[ + "namespace" + "interface" + "enum" +] @keyword.type + +[ + "keyof" + "satisfies" +] @keyword.operator + +(as_expression + "as" @keyword.operator) + +(mapped_type_clause + "as" @keyword.operator) + +[ + "abstract" + "private" + "protected" + "public" + "readonly" +] @keyword.modifier + +; types +(type_identifier) @type + +(predefined_type) @type.builtin + +(import_statement + "type" + (import_clause + (named_imports + (import_specifier + name: (identifier) @type)))) + +(template_literal_type) @string + +(non_null_expression + "!" @operator) + +; punctuation +(type_arguments + [ + "<" + ">" + ] @punctuation.bracket) + +(type_parameters + [ + "<" + ">" + ] @punctuation.bracket) + +(object_type + [ + "{|" + "|}" + ] @punctuation.bracket) + +(union_type + "|" @punctuation.delimiter) + +(intersection_type + "&" @punctuation.delimiter) + +(type_annotation + ":" @punctuation.delimiter) + +(type_predicate_annotation + ":" @punctuation.delimiter) + +(index_signature + ":" @punctuation.delimiter) + +(omitting_type_annotation + "-?:" @punctuation.delimiter) + +(adding_type_annotation + "+?:" @punctuation.delimiter) + +(opting_type_annotation + "?:" @punctuation.delimiter) + +"?." @punctuation.delimiter + +(abstract_method_signature + "?" @punctuation.special) + +(method_signature + "?" @punctuation.special) + +(method_definition + "?" @punctuation.special) + +(property_signature + "?" @punctuation.special) + +(optional_parameter + "?" @punctuation.special) + +(optional_type + "?" @punctuation.special) + +(public_field_definition + [ + "?" + "!" + ] @punctuation.special) + +(flow_maybe_type + "?" @punctuation.special) + +(template_type + [ + "${" + "}" + ] @punctuation.special) + +(conditional_type + [ + "?" + ":" + ] @keyword.conditional.ternary) + +; Parameters +(required_parameter + pattern: (identifier) @variable.parameter) + +(optional_parameter + pattern: (identifier) @variable.parameter) + +(required_parameter + (rest_pattern + (identifier) @variable.parameter)) + +; ({ a }) => null +(required_parameter + (object_pattern + (shorthand_property_identifier_pattern) @variable.parameter)) + +; ({ a = b }) => null +(required_parameter + (object_pattern + (object_assignment_pattern + (shorthand_property_identifier_pattern) @variable.parameter))) + +; ({ a: b }) => null +(required_parameter + (object_pattern + (pair_pattern + value: (identifier) @variable.parameter))) + +; ([ a ]) => null +(required_parameter + (array_pattern + (identifier) @variable.parameter)) + +; a => null +(arrow_function + parameter: (identifier) @variable.parameter) + +; global declaration +(ambient_declaration + "global" @module) + +; function signatures +(ambient_declaration + (function_signature + name: (identifier) @function)) + +; method signatures +(method_signature + name: (_) @function.method) + +(abstract_method_signature + name: (property_identifier) @function.method) + +; property signatures +(property_signature + name: (property_identifier) @function.method + type: (type_annotation + [ + (union_type + (parenthesized_type + (function_type))) + (function_type) + ])) + + +; Query from: https://raw.githubusercontent.com/nvim-treesitter/nvim-treesitter/a8c082b4f5b3b70bde2ffb08cc112dfd7e515fb3/queries/jsx/highlights.scm +(jsx_element + open_tag: (jsx_opening_element + [ + "<" + ">" + ] @tag.delimiter)) + +(jsx_element + close_tag: (jsx_closing_element + [ + "" + ] @tag.delimiter)) + +(jsx_self_closing_element + [ + "<" + "/>" + ] @tag.delimiter) + +(jsx_attribute + (property_identifier) @tag.attribute) + +(jsx_opening_element + name: (identifier) @tag.builtin) + +(jsx_closing_element + name: (identifier) @tag.builtin) + +(jsx_self_closing_element + name: (identifier) @tag.builtin) + +(jsx_opening_element + ((identifier) @tag + (#match? @tag "^[A-Z]"))) + +; Handle the dot operator effectively - +(jsx_opening_element + (member_expression + (identifier) @tag.builtin + (property_identifier) @tag)) + +(jsx_closing_element + ((identifier) @tag + (#match? @tag "^[A-Z]"))) + +; Handle the dot operator effectively - +(jsx_closing_element + (member_expression + (identifier) @tag.builtin + (property_identifier) @tag)) + +(jsx_self_closing_element + ((identifier) @tag + (#match? @tag "^[A-Z]"))) + +; Handle the dot operator effectively - +(jsx_self_closing_element + (member_expression + (identifier) @tag.builtin + (property_identifier) @tag)) + +(html_character_reference) @tag + +(jsx_text) @none @spell + +(html_character_reference) @character.special + +((jsx_element + (jsx_opening_element + name: (identifier) @_tag) + (jsx_text) @markup.heading) + (#eq? @_tag "title")) + +((jsx_element + (jsx_opening_element + name: (identifier) @_tag) + (jsx_text) @markup.heading.1) + (#eq? @_tag "h1")) + +((jsx_element + (jsx_opening_element + name: (identifier) @_tag) + (jsx_text) @markup.heading.2) + (#eq? @_tag "h2")) + +((jsx_element + (jsx_opening_element + name: (identifier) @_tag) + (jsx_text) @markup.heading.3) + (#eq? @_tag "h3")) + +((jsx_element + (jsx_opening_element + name: (identifier) @_tag) + (jsx_text) @markup.heading.4) + (#eq? @_tag "h4")) + +((jsx_element + (jsx_opening_element + name: (identifier) @_tag) + (jsx_text) @markup.heading.5) + (#eq? @_tag "h5")) + +((jsx_element + (jsx_opening_element + name: (identifier) @_tag) + (jsx_text) @markup.heading.6) + (#eq? @_tag "h6")) + +((jsx_element + (jsx_opening_element + name: (identifier) @_tag) + (jsx_text) @markup.strong) + (#any-of? @_tag "strong" "b")) + +((jsx_element + (jsx_opening_element + name: (identifier) @_tag) + (jsx_text) @markup.italic) + (#any-of? @_tag "em" "i")) + +((jsx_element + (jsx_opening_element + name: (identifier) @_tag) + (jsx_text) @markup.strikethrough) + (#any-of? @_tag "s" "del")) + +((jsx_element + (jsx_opening_element + name: (identifier) @_tag) + (jsx_text) @markup.underline) + (#eq? @_tag "u")) + +((jsx_element + (jsx_opening_element + name: (identifier) @_tag) + (jsx_text) @markup.raw) + (#any-of? @_tag "code" "kbd")) + +((jsx_element + (jsx_opening_element + name: (identifier) @_tag) + (jsx_text) @markup.link.label) + (#eq? @_tag "a")) + +((jsx_attribute + (property_identifier) @_attr + (string + (string_fragment) @string.special.url)) + (#any-of? @_attr "href" "src")) diff --git a/packages/cli-rs/assets/queries/vim/highlights.scm b/packages/cli-rs/assets/queries/vim/highlights.scm new file mode 100644 index 000000000000..2dd1915a2742 --- /dev/null +++ b/packages/cli-rs/assets/queries/vim/highlights.scm @@ -0,0 +1,354 @@ +(identifier) @variable + +((identifier) @constant + (#match? @constant "^[A-Z][A-Z_0-9]*$")) + +; Keywords +[ + "if" + "else" + "elseif" + "endif" +] @keyword.conditional + +[ + "try" + "catch" + "finally" + "endtry" + "throw" +] @keyword.exception + +[ + "for" + "endfor" + "in" + "while" + "endwhile" + "break" + "continue" +] @keyword.repeat + +[ + "function" + "endfunction" +] @keyword.function + +; Function related +(function_declaration + name: (_) @function) + +(call_expression + function: (identifier) @function.call) + +(call_expression + function: (scoped_identifier + (identifier) @function.call)) + +(parameters + (identifier) @variable.parameter) + +(default_parameter + (identifier) @variable.parameter) + +[ + (bang) + (spread) +] @punctuation.special + +[ + (no_option) + (inv_option) + (default_option) + (option_name) +] @variable.builtin + +[ + (scope) + "a:" + "$" +] @module + +; Commands and user defined commands +[ + "let" + "unlet" + "const" + "call" + "execute" + "normal" + "set" + "setfiletype" + "setlocal" + "silent" + "echo" + "echon" + "echohl" + "echomsg" + "echoerr" + "autocmd" + "augroup" + "return" + "syntax" + "filetype" + "source" + "lua" + "ruby" + "perl" + "python" + "highlight" + "command" + "delcommand" + "comclear" + "colorscheme" + "scriptencoding" + "startinsert" + "stopinsert" + "global" + "runtime" + "wincmd" + "cnext" + "cprevious" + "cNext" + "vertical" + "leftabove" + "aboveleft" + "rightbelow" + "belowright" + "topleft" + "botright" + (unknown_command_name) + "edit" + "enew" + "find" + "ex" + "visual" + "view" + "eval" + "sign" + "abort" +] @keyword + +(map_statement + cmd: _ @keyword) + +(keycode) @character.special + +(command_name) @function.macro + +; Filetype command +(filetype_statement + [ + "detect" + "plugin" + "indent" + "on" + "off" + ] @keyword) + +; Syntax command +(syntax_statement + (keyword) @string) + +(syntax_statement + [ + "enable" + "on" + "off" + "reset" + "case" + "spell" + "foldlevel" + "iskeyword" + "keyword" + "match" + "cluster" + "region" + "clear" + "include" + ] @keyword) + +(syntax_argument + name: _ @keyword) + +[ + "" + "" + "" + "\n\n', + hcl: '# Main bucket.\nresource "aws_s3_bucket" "main" {\n bucket = "app-${var.env}"\n count = 2\n tags = {\n enabled = true\n }\n}\n\nvariable "env" { default = null }\n', + haskell: + 'module Main where\n\nimport Data.List (sort)\n\n-- | Sum the list.\ntotal :: [Int] -> Int\ntotal xs = foldr (+) 0 xs\n\nmain :: IO ()\nmain = print (total [1, 2, 3]) >> putStrLn "ok"\n', + julia: + 'module App\n\n# Square each value.\nfunction squares(xs::Vector{Int})::Vector{Int}\n return [x^2 for x in xs if x > 0]\nend\n\nconst MAX = 10\nprintln("n = $(MAX)", true, nothing)\nend\n', + lua: 'local M = {}\n\n-- Greet a name.\nfunction M.greet(name, times)\n for i = 1, times or 2 do\n print("hi " .. name, i, nil, true)\n end\n return #name\nend\n\nreturn M\n', + clojure: + '(ns app.core\n (:require [clojure.string :as str]))\n\n;; Shout a name.\n(defn shout [name & {:keys [n] :or {n 1}}]\n (str/upper-case (str name "!" n nil true)))\n\n(def ^:private max-size 10)\n', + toml: '# Package.\n[package]\nname = "opencode"\nversion = "0.1.0"\nedition = 2024\npublish = false\n\n[dependencies]\nserde = { version = "1", features = ["derive"] }\n', + nix: "{ pkgs ? import { } }:\n\n# The shell.\nlet\n name = \"app\";\nin\npkgs.mkShell {\n inherit name;\n packages = with pkgs; [ bun zig ];\n shellHook = ''echo ${name}'';\n}\n", + elixir: + 'defmodule App.Greeter do\n @moduledoc "Greets."\n\n # Greet a name.\n def greet(name, opts \\\\ []) when is_binary(name) do\n times = Keyword.get(opts, :times, 2)\n IO.puts("hi #{name} #{times}")\n {:ok, nil}\n end\nend\n', + r: "library(stats)\n\n# Scale a vector.\nscale_to <- function(x, to = 1L, na.rm = TRUE) {\n if (is.null(x)) return(NA)\n m <- max(x, na.rm = na.rm)\n x / m * to\n}\nprint(scale_to(c(1, 2.5, 4)))\n", + make: "# Build.\nCC ?= cc\nSRC := $(wildcard src/*.c)\n.PHONY: all clean\nall: app\n\napp: $(SRC)\n\t$(CC) -o $@ $^\n\nclean:\n\trm -f app\n", + vim: "\" Settings.\nset number tabstop=4\nlet g:app_name = 'app'\n\nfunction! Greet(name) abort\n if a:name ==# ''\n return 0\n endif\n echo 'hi ' . a:name\nendfunction\n", + xml: '\n\n\n \n \n Build & test\n ]]>\n \n\n', + agda: "module Nat where\n\n-- Natural numbers.\ndata Nat : Set where\n zero : Nat\n suc : Nat -> Nat\n\n_+_ : Nat -> Nat -> Nat\nzero + m = m\nsuc n + m = suc (n + m)\n", +} +await Bun.write(new URL("../fixtures/U.4b/corpus.json", import.meta.url), JSON.stringify(corpus, null, 2) + "\n") + +function Snippet(props: { filetype: string }) { + const theme = useTheme() + const { currentSyntax: syntax } = useThemes() + return ( + + ) +} + +for (const filetype of Object.keys(corpus)) { + const first = corpus[filetype].split("\n")[0] + await renderComponent({ + fixture: `U.4b/${filetype}`, + width: 60, + height: 12, + element: () => , + ready: (frame) => frame.includes(first), + // A grammar loads in the tree-sitter worker the first time; give it time before the frame settles again. + act: () => Bun.sleep(1500), + }) +} diff --git a/packages/cli-rs/parity/component/U.4c-markdown.tsx b/packages/cli-rs/parity/component/U.4c-markdown.tsx new file mode 100644 index 000000000000..b7af50b4b8a5 --- /dev/null +++ b/packages/cli-rs/parity/component/U.4c-markdown.tsx @@ -0,0 +1,49 @@ +/** @jsxImportSource @opentui/solid */ +// P-COMP fixtures of `TextPart`'s options (routes/session/message-parts.tsx) beyond U.4a's rendered +// prose: U.4a's prose with markers shown (`session.markdown` is `raw`), a grid table with `cellPaddingX: 1`, and +// thematic breaks. +// crates/ui/tests/all/content.rs compares opencode_ui::markdown with them. +import { useTheme, useThemes } from "../../../tui/src/context/theme" +import { renderComponent } from "../lib/component" + +const prose: Record = await Bun.file(new URL("../fixtures/U.4a/corpus.json", import.meta.url)).json() +const corpus: Record = await Bun.file(new URL("../fixtures/U.4c/corpus.json", import.meta.url)).json() + +function TextPart(props: { text: string; conceal: boolean }) { + const theme = useTheme() + const { currentSyntax: syntax } = useThemes() + return ( + + + + ) +} + +// Also in content.rs `markdown_rules_match_typescript`. +const rules = "Before the rules.\n\n- - -\n\nBetween them.\n\n***\n\nAfter the rules." + +const cases = [ + { fixture: "U.4c/markdown-raw", text: prose.prose, conceal: false, last: "Plain closing line." }, + { fixture: "U.4c/markdown-table", text: corpus.table, conceal: true, last: "After the table." }, + { fixture: "U.4c/markdown-rules", text: rules, conceal: true, last: "After the rules." }, +] + +for (const item of cases) { + await renderComponent({ + fixture: item.fixture, + width: 60, + height: 24, + element: () => , + ready: (frame) => frame.includes(item.last), + // Inline code highlights in the tree-sitter worker after the text shows; let that land before the frame settles. + act: () => Bun.sleep(500), + }) +} diff --git a/packages/cli-rs/parity/component/U.6-motion.tsx b/packages/cli-rs/parity/component/U.6-motion.tsx new file mode 100644 index 000000000000..9b1c8ffffdfc --- /dev/null +++ b/packages/cli-rs/parity/component/U.6-motion.tsx @@ -0,0 +1,142 @@ +/** @jsxImportSource @opentui/solid */ +// P-ORACLE on frame sequences for U.6: renders the TUI's motion renderables under OpenTUI's manual clock and +// captures row 0 at fixed instants. Each fixture in parity/fixtures/U.6/ is a filmstrip: row N is the frame at +// the Nth instant listed in instants.json. crates/ui/tests/all/motion_frames.rs renders the Rust widgets in a TestApp, +// advances its clock to the same instants, and compares the stacked rows cell by cell. +// +// Instants of the stepped spinners are multiples of their interval: OpenTUI ticks a spinner on any frame within +// half an interval of a due time, Rust exactly at it (parity/deviations/T20-spinner-tick-phase.md). +import { RGBA, type OptimizedBuffer } from "@opentui/core" +import { ManualClock } from "@opentui/core/testing" +import { testRender } from "@opentui/solid" +import type { JSX } from "solid-js" +import "../../../tui/src/component/fade-in-text" +import { OneCellSpinner } from "../../../tui/src/component/one-cell-spinner" +import { ShimmerText } from "../../../tui/src/component/shimmer-text" +import { SPINNER_FRAMES } from "../../../tui/src/component/spinner-frames" +import "../../../tui/src/component/spinner-renderable" +import { WORK_SPINNERS } from "../../../tui/src/ui/one-cell-motion" +import { createColors, createFrames } from "../../../tui/src/ui/spinner" +import { readCells, writeFixture, type Fixture } from "../lib/cells" + +const MUTED = "#808080" +const TEXT = "#eeeeee" +const BACKDROP = "#0a0a0a" +const ACCENT = "#fab283" +const PAGE = "#1a1b26" +const FAINT = "#e4e4e45e" +const range = (end: number, step: number) => Array.from({ length: Math.floor(end / step) + 1 }, (_, i) => i * step) + +const scanner = { color: RGBA.fromHex(ACCENT), style: "blocks" as const, inactiveFactor: 0.6, minAlpha: 0.3 } + +const cases: { name: string; width: number; instants: number[]; element: () => JSX.Element }[] = [ + { + name: "spinner", + width: 12, + instants: range(880, 80), + element: () => ( + + + + + Working + + ), + }, + { + name: "scanner", + width: 8, + instants: range(56 * 40, 40), + element: () => , + }, + { + // The prompt footer's scanner over the page: an alpha glyph blends into the painted background. + name: "scanner-page", + width: 8, + instants: range(56 * 40, 40), + element: () => ( + + + + ), + }, + { + // A muted token with alpha, as in the `cursor` theme, over the page. + name: "spinner-page", + width: 12, + instants: range(160, 80), + element: () => ( + + + + + Working + + ), + }, + { + name: "soft-slide", + width: 1, + instants: range(1100, 100), + element: () => , + }, + { + name: "shimmer", + width: 24, + instants: range(1300, 50), + element: () => ( + + Checking for updates… + + ), + }, + { + name: "fade", + width: 16, + instants: range(240, 20), + element: () => ( + + + Welcome back + + + ), + }, +] + +const instants: Record = {} +for (const item of cases) { + const clock = new ManualClock() + const setup = await testRender(item.element, { width: item.width, height: 1, clock }) + try { + const frames: Fixture[] = [] + for (const instant of item.instants) { + clock.setTime(instant) + await setup.renderOnce() + frames.push(readCells(setup.renderer.currentRenderBuffer as OptimizedBuffer)) + } + await writeFixture(path(item.name), stack(frames)) + instants[item.name] = item.instants + console.log(`motion: U.6/${item.name} ${item.width}x${item.instants.length}`) + } finally { + setup.renderer.destroy() + } +} +await Bun.write(path("instants"), JSON.stringify(instants, null, 2) + "\n") + +function path(name: string) { + return new URL(`../fixtures/U.6/${name}.json`, import.meta.url).pathname +} + +// Row 0 of every frame, as one fixture whose styles are renumbered across frames. +function stack(frames: Fixture[]): Fixture { + const styles: string[] = [] + const runs = frames.map((frame) => + frame.runs[0]!.map(([style, count]): [number, number] => { + const key = frame.styles[style]! + const index = styles.indexOf(key) + return [index === -1 ? styles.push(key) - 1 : index, count] + }), + ) + return { width: frames[0]!.width, height: frames.length, rows: frames.map((frame) => frame.rows[0]!), styles, runs } +} diff --git a/packages/cli-rs/parity/deviations/A01-decode-error-position.md b/packages/cli-rs/parity/deviations/A01-decode-error-position.md new file mode 100644 index 000000000000..43cd2da3597c --- /dev/null +++ b/packages/cli-rs/parity/deviations/A01-decode-error-position.md @@ -0,0 +1,15 @@ +# A01: decode errors name a position, not a field path + +TypeScript: the Promise client returns `JSON.parse` of the body without checking it against a schema +(`packages/client/src/promise/generated/client.ts:2825-2830`). Only a body that is not JSON fails, as +`ClientError("MalformedResponse")` with the parser's error as the cause. + +Rust: responses decode into the generated types, so a body whose shape differs from the schema also fails +with `MalformedResponse`. The message is serde_json's, with the line and column of the failure: +``MalformedResponse: invalid type: integer `7`, expected a string at line 1 column 26``. It used to start +with the JSON path of the failing field (`data.ses_1.type: …`). + +Reason: the path came from `serde_path_to_error`, which ran on every decode: about 80 more allocations per +message and 24 % more decode time, plus 2.6 MB of code and one crate. TypeScript has no equivalent message, +so the text differs from TypeScript either way. serde_json still names a missing field +(``missing field `id` ``), and the position locates the others. diff --git a/packages/cli-rs/parity/deviations/A01-lone-surrogate-escapes.md b/packages/cli-rs/parity/deviations/A01-lone-surrogate-escapes.md new file mode 100644 index 000000000000..23988eb72c30 --- /dev/null +++ b/packages/cli-rs/parity/deviations/A01-lone-surrogate-escapes.md @@ -0,0 +1,11 @@ +# A01: lone surrogate escapes in server JSON + +**TypeScript.** `JSON.parse` keeps a lone UTF-16 surrogate escape (`"\ud83d"`) as a lone surrogate. The server's +`JSON.stringify` writes one for any string cut inside a surrogate pair, such as a truncated search excerpt. The +terminal shows it as a broken character. + +**Rust.** A response body or event payload with a lone surrogate escape reads it as U+FFFD (`opencode_api_types::de::well_formed`). +Every other character reads the same. + +**Reason.** Rust strings cannot hold a lone surrogate, and serde_json rejects one. Without the replacement the whole +response or event failed to decode, and the event stream reconnected. diff --git a/packages/cli-rs/parity/deviations/A09-bounded-queue.md b/packages/cli-rs/parity/deviations/A09-bounded-queue.md new file mode 100644 index 000000000000..956abffa29cb --- /dev/null +++ b/packages/cli-rs/parity/deviations/A09-bounded-queue.md @@ -0,0 +1,13 @@ +# A09: bounded event batch queue + +TypeScript: `createClientConnection` (`packages/client/src/solid/connection.ts:65-74`) appends every +event to an unbounded `pending` array and flushes it to `onEvent` every 10 ms on the UI thread. + +Rust: the connection loop (`crates/api/src/events.rs`, `connect`) runs on a tokio task and sends each +10 ms batch over a bounded channel (`Options::queue`, 256 batches by default). When the consumer +falls that far behind, the loop drops the stream, records "Event queue full", and reconnects. The +consumer gets `server.connected` again and resynchronizes from the server, as it does after any +reconnect. + +Reason: the Rust UI thread is separate from the network task, and `AGENTS.md` requires every queue +between tasks and the UI to be bounded. A UI that stops reading cannot grow memory without bound. diff --git a/packages/cli-rs/parity/deviations/A09-stall-grace.md b/packages/cli-rs/parity/deviations/A09-stall-grace.md new file mode 100644 index 000000000000..6939d656f0a6 --- /dev/null +++ b/packages/cli-rs/parity/deviations/A09-stall-grace.md @@ -0,0 +1,14 @@ +# A09: one second of grace before a stalled event stream drops + +TypeScript: `createClientConnection` (`packages/client/src/solid/connection.ts:84-91`) aborts the stream +with "Event stream stalled" when its 45 s watchdog fires. A watchdog whose deadline passed while the +process was stopped fires as soon as it resumes. + +Rust: when the 45 s idle deadline passes, the connection loop (`crates/api/src/events.rs`, `connect`) +gives the stream one more second. Any byte in that second keeps the stream; otherwise it drops with +"Event stream stalled", so a real stall reconnects after 46 s instead of 45 s. + +Reason: tokio's clock keeps counting while the process is stopped (Ctrl+Z). On `fg`, the runtime can see +the elapsed deadline before the events buffered in the socket, and dropping the stream then lost them +(R4-1 of the live run). The client reloads the open session after a reconnect, as TS does, but events of +other views would still be lost on the wire. diff --git a/packages/cli-rs/parity/deviations/A10-ascii-hosts.md b/packages/cli-rs/parity/deviations/A10-ascii-hosts.md new file mode 100644 index 000000000000..51534833a32f --- /dev/null +++ b/packages/cli-rs/parity/deviations/A10-ascii-hosts.md @@ -0,0 +1,48 @@ +# A10: URL hosts must be ASCII + +TypeScript: `new URL` follows the WHATWG URL standard, which maps an international host name to +its punycode form with UTS 46. `https://bücher.example` parses as `https://xn--bcher-kva.example/`. + +Rust: the `url` crate is built with the `idna_adapter` 1.0.0 stub (pinned in the root +`Cargo.toml`, used by `crates/api`), which turns IDNA off. A host with a non-ASCII character fails +to parse. A punycode host (`https://xn--bcher-kva.example`) and every ASCII host parse as before. + +Every URL a user types goes through one parse boundary, `opencode_api::js::parse_url`, which +rejects a host that is not ASCII after percent-decoding before `url` sees it (the stub asserts on +some such hosts, for example `https://Bücher.example`). The message is ": a host name must be +ASCII; write an international name in its punycode (xn--) form", from: + +- `--server` and any other base URL given to `opencode_api::Client`; +- `auth login `, `mcp add --url`, `session import ` and opening a link in the TUI; +- `pair --url`, as a usage error: "Invalid value for flag --url: "". Expected: a host name + must be ASCII; ..."; +- MCP and form URL fields (`format: uri`), in the CLI prompt and the TUI form. + +A pasted `file://` path with a non-ASCII host stays as typed, as any other non-local host does. + +URLs from other sources go through the same boundary (`parse_url`, `join_url` and `set_host`), +and `clippy.toml` forbids calling `url`'s parsers anywhere else: + +- a service registration whose URL has a non-ASCII host is an error with the message above, and + discovery treats it as not answering; +- a server URL with a non-ASCII host (`pair`, `/pair`) gets no link in the TUI, and in the CLI + keeps the `/auth/connect/` fallback; +- an ACP resource or link whose URI has a non-ASCII host is treated as an unparsable URI: its + name comes from the last path segment, and an embedded text resource is labelled with the URI; +- an OTLP endpoint (`OTEL_EXPORTER_OTLP_ENDPOINT`) with a non-ASCII host exports nothing; +- a redirect whose `Location` has a non-ASCII host fails the request with the message above, + where Bun's `fetch` follows it to the punycode host. Requests follow redirects in + `opencode_api::transport::fetch`, which resolves `Location` with `join_url`; `clippy.toml` + forbids reqwest's own `send` and `execute`. reqwest still resolves `Location` itself before it + consults its redirect policy, so the root `Cargo.toml` turns off debug assertions in `idna` and + `idna_adapter`; the result of that parse is discarded. + +The stub also stops `url` from checking UTS 46 rules on punycode labels, so a malformed `xn--` +label parses where TypeScript rejects it; the server or DNS rejects it later. + +`url` also differs from Bun's parser on URLs nobody types: `file:////x` and `file://h//x` lose empty path +segments, `zed://@` parses, a non-special URL with a host and an empty path gets no `/`, and an opaque path keeps a +space before `#` that Bun writes as `%20`. + +Reason: decision O-58 (E1). Full IDNA pulls ICU4X into the build, 21 crates with 2 build scripts +and 4 proc macros, for host names that a user can write in punycode. diff --git a/packages/cli-rs/parity/deviations/A10-tls-system-roots.md b/packages/cli-rs/parity/deviations/A10-tls-system-roots.md new file mode 100644 index 000000000000..2998885df837 --- /dev/null +++ b/packages/cli-rs/parity/deviations/A10-tls-system-roots.md @@ -0,0 +1,26 @@ +# A10: TLS trusts the system root store + +TypeScript: Bun's `fetch` and `WebSocket` verify HTTPS and `wss://` servers against the Mozilla root +certificates bundled with Bun, plus `NODE_EXTRA_CA_CERTS`. Bun's `fetch` speaks HTTP/1.1. + +Rust: every HTTPS request and `wss://` socket uses one rustls configuration +(`crates/api/src/transport.rs`, `tls_config`). It verifies certificates with +`rustls-platform-verifier`, which reads the system root store on the first certificate check +(on Linux, the CA bundle that `rustls-native-certs` finds, including `SSL_CERT_FILE`). The crypto +provider is ring, and ALPN offers `http/1.1` only, as Bun's fetch does. + +Differences: + +- A server whose certificate chains to a private CA that is installed in the system store is + trusted by the Rust client and rejected by Bun. A server that chains only to a root that Bun + bundles but the system lacks is rejected by the Rust client. +- `NODE_EXTRA_CA_CERTS` has no effect on the Rust client. Add the CA to the system store or point + `SSL_CERT_FILE` at a bundle that contains it. +- A system without a CA bundle fails the first HTTPS or `wss://` handshake with "No CA certificates + were loaded from the system". Plain `http://` and `ws://`, such as the managed service, never read + the roots. +- ring offers no post-quantum key exchange (X25519MLKEM768). Servers negotiate X25519 instead. + +Reason: decision O-50 (D2). One root store for HTTPS and `wss://`, so a socket never fails where +the HTTP request to the same server works, and ring instead of aws-lc removes a C build and about +3 MB from the binary. diff --git a/packages/cli-rs/parity/deviations/C01-directory-error.md b/packages/cli-rs/parity/deviations/C01-directory-error.md new file mode 100644 index 000000000000..28cd25dd9f2a --- /dev/null +++ b/packages/cli-rs/parity/deviations/C01-directory-error.md @@ -0,0 +1,17 @@ +# C01: the error for a root directory that cannot be entered + +TypeScript: `opencode missing` calls `process.chdir` (`packages/cli/src/commands/handlers/default.ts:23`), and +the Node error escapes the handler: + +``` +Error: ENOENT: no such file or directory, chdir '' -> 'missing' + at chdir (native) + at (.../packages/cli/src/commands/handlers/default.ts:23:51) +``` + +Rust: `Error: Failed to change directory to missing` on stderr (`opencode_local::paths::enter`, the message the +TS `run` command uses), exit 1. Both fail before they connect, with nothing on stdout. + +Reason: the TS text is libuv's wording plus a stack trace that names TS source files (as in +`C40-handler-errors`); neither is output a user or script can rely on. The exit code, the stream, and the +point of failure are the same. No P-CLI case compares it, since P-CLI compares whole lines. diff --git a/packages/cli-rs/parity/deviations/C09-db-channel.md b/packages/cli-rs/parity/deviations/C09-db-channel.md new file mode 100644 index 000000000000..cd975213c643 --- /dev/null +++ b/packages/cli-rs/parity/deviations/C09-db-channel.md @@ -0,0 +1,13 @@ +# C09: the database name in `debug paths` + +TypeScript: `databasePath` names the file after the channel embedded at build time (`version.ts`): +`opencode.db` for `latest`, `dev`, `beta`, `next`, and `prod`, else `opencode-.db`. A build run from +source has channel `local`, so it prints `opencode-local.db`. + +Rust: the same rule, `OPENCODE_DB` and `OPENCODE_DISABLE_CHANNEL_DB` included, but the channel is read at run +time: `OPENCODE_CHANNEL`, else `latest` (plan 6.6). Without the variable it prints `opencode.db`, the +database of a released client. + +Reason: the Rust client has no build channel (plan 6.6), and `latest` is the channel whose service and +database it uses by default. The P-CLI scenario `C.1/debug-paths` sets `OPENCODE_DISABLE_CHANNEL_DB=1` so both +sides print `opencode.db`. diff --git a/packages/cli-rs/parity/deviations/C11-acp-strict-json.md b/packages/cli-rs/parity/deviations/C11-acp-strict-json.md new file mode 100644 index 000000000000..5fdbd9a0c0a4 --- /dev/null +++ b/packages/cli-rs/parity/deviations/C11-acp-strict-json.md @@ -0,0 +1,14 @@ +# C11: the ACP agent reads JSON as serde_json does, not as `JSON.parse` + +**TypeScript.** The ACP SDK reads each line with `JSON.parse`. A lone surrogate escape (`"\ud800"`) stays a lone +surrogate, a number past the double range (`1e400`) reads as `Infinity` (written back as `null`), and any depth of +nesting parses. A number keeps only its value: `1.0`, `1E2` and `-0` are written back as `1`, `100` and `0`. + +**Rust.** `opencode-native acp` reads each line with serde_json. A line with a lone surrogate escape, a number past +the double range, or nesting deeper than 128 levels is a parse error: the agent answers `-32700 Parse error` with a +null id, as for any other line that is not JSON, and reads the next line. A number keeps its written form, so an id +`1.0` is answered as `1.0`. Every other line reads the same. + +**Reason.** Rust strings cannot hold a lone surrogate, and serde_json bounds nesting to keep its recursive parser off +the stack's end. ACP clients write their messages with a JSON library (Zed with serde_json), so none of these reach +the agent. The prop-cli wire hunt compared both agents over generated lines and found no other difference. diff --git a/packages/cli-rs/parity/deviations/C40-handler-errors.md b/packages/cli-rs/parity/deviations/C40-handler-errors.md new file mode 100644 index 000000000000..cdb38ef7a833 --- /dev/null +++ b/packages/cli-rs/parity/deviations/C40-handler-errors.md @@ -0,0 +1,34 @@ +# C06, C07, C25, C40: handler errors + +TypeScript: when the server answers `models`, `reload`, `debug agents`, or `debug config` with an error, +the error escapes the handler. Effect prints it to stderr with its name, message, and a JavaScript stack +trace, and the process exits 1. Example (`reload` against a declared 503): + +``` +ServiceUnavailableError: The location is restarting + at declared (.../packages/client/src/promise/generated/client.ts:2841:35) + at (.../packages/client/src/promise/generated/client.ts:397:13) + at cli.reload (.../packages/cli/src/framework/runtime.ts:100:34) + ... +``` + +Rust: `Error: ServiceUnavailableError: The location is restarting` on stderr, exit 1, the C.0 convention +for handler errors. + +Reason: the stack trace names TS source files and is not output a user or script can rely on. The exit +code, the stream, and the message are the same. `debug heap-dump` catches its errors in TS and prints the +bare message; Rust does the same, and P-CLI compares it (`C.1/debug-heap-dump-unsupported`). + +`api` (C05) has no catch either. Where TS fails with a plain `Error` (a header without a name, two +arguments that are not a method and a path), the first stderr line is the same on both sides and P-CLI +compares it. Where TS fails inside `Effect.tryPromise` (an unknown operation ID, a missing path parameter, +an OpenAPI document that does not load, a request that cannot be sent), TS prints +`UnknownError: An error occurred in Effect.tryPromise` and keeps the real message in the `[cause]` below +the stack. Rust prints the real message: `Error: Operation not found: `. P-CLI compares the exit code +and the requests of those cases, not stderr. + +`--wizard` (G15) parses each param after its prompts. A value that fails (`session list --wizard` with a +max count of 0) escapes in TS as `~effect/cli/CliError/InvalidValue: Invalid value for flag --max-count: "0". +Expected: Schema validation failed: Expected a value greater than or equal to 1` with a stack trace, exit 1. +Rust prints the same message after `Error: `, without the stack trace, exit 1. P-PTY compares the screens +before the error and the exit code (`C.15/invalid`). diff --git a/packages/cli-rs/parity/deviations/C41-pair-remote-channel.md b/packages/cli-rs/parity/deviations/C41-pair-remote-channel.md new file mode 100644 index 000000000000..61b68d8f8d5b --- /dev/null +++ b/packages/cli-rs/parity/deviations/C41-pair-remote-channel.md @@ -0,0 +1,21 @@ +# C41: `pair --remote` when the client and TS channels differ + +TypeScript: `opencode pair --remote` turns remote access on and then reads the route from the service config +of its own build channel, so it always finds the route it just wrote. + +Rust: `opencode-native pair --remote` turns remote access on by running the TS `opencode service set remote true` +(`opencode_service::delegate::enable_remote`). The TS binary writes the route into its own build channel's +config. The Rust client then reads the config of its own channel (`OPENCODE_CHANNEL`, else `latest`). When the +two channels differ, that config has no route, and the command polls until it fails after 3 minutes: + +``` +Timed out waiting for the remote tunnel; run `opencode pair --remote` again to retry. +``` + +With a release `opencode` and the default channel, both read and write `service.json`, and the command works. +To use a TS build of another channel, set `OPENCODE_CHANNEL` to that channel (for example +`OPENCODE_CHANNEL=oc-opentui-next`). + +Reason: the route belongs to the TS binary's config, and the Rust client has no reliable way to learn which +channel a TS binary was built for. Decision O-39 in `decisions.md` accepts this. No P-CLI case covers it, +since the cases run both clients on the same channel. diff --git a/packages/cli-rs/parity/deviations/CF1-slash-shadow.md b/packages/cli-rs/parity/deviations/CF1-slash-shadow.md new file mode 100644 index 000000000000..55315a5268bd --- /dev/null +++ b/packages/cli-rs/parity/deviations/CF1-slash-shadow.md @@ -0,0 +1,16 @@ +# CF1: a plugin's slash name never takes another command's + +**TypeScript.** A plugin's `slash.name` and `slash.aliases` are not checked. Slash completion lists every command +that claims a name, so a plugin's `/plugins` or `/cd` appears beside the host's. On submit, `argumentSlash` takes +the first match in keymap order, where the newest layer comes first, so a plugin's argument command with the +alias `cd` takes `/cd …` and its directory completion from the host. An empty alias completes as a bare `/`. + +**Rust.** A plugin's name or alias that the prompt could not complete (empty, or with whitespace, `/` or a control +character) is left out when the command registers. A name another command holds is left out of the plugin's slash +entry: the host's own command keeps it, and between two plugins the one whose layer registered first keeps it. The +plugin's log names each name left out, once. A plugin whose every name is taken has no slash entry; its command +stays in the palette and keeps its key. + +**Reason.** The host's slash commands, `/plugins` above all, are the user's way to reach and turn off a plugin; +a plugin must not be able to shadow them or break `/cd` completion. First-registered-wins between plugins keeps a +plugin that loads later from taking a name another plugin already shows. diff --git a/packages/cli-rs/parity/deviations/CF3-plugin-prompt.md b/packages/cli-rs/parity/deviations/CF3-plugin-prompt.md new file mode 100644 index 000000000000..a2a29d8f0438 --- /dev/null +++ b/packages/cli-rs/parity/deviations/CF3-plugin-prompt.md @@ -0,0 +1,15 @@ +# CF3: a plugin prompt's value on one line, and its description in the host's color + +**TypeScript.** A plugin's `ui.dialog.prompt` is `DialogPrompt`: a one-row textarea that starts with `value` as +given, line breaks included, and moves the cursor to the end of the first line, so a value `"Old title\n"` shows +`Old title` and submits `"Old title\n"`. `description` is the plugin's `` above the field, in OpenTUI's default +text color, white whatever the theme, at any length. + +**Rust.** The host's prompt drops a value's line breaks before the field gets it (`"a\r\nb\n"` starts as `a b`) and +bounds the value and the description to one node's text (`limits.text`). The description is drawn in the color of +the host's own prompt descriptions (`text.muted`), over at most eight rows, so the field stays on screen. + +**Reason.** The field is the host's one-row field, which scrolled a value with a line break off its only row and +showed nothing; a value on one line is what the user can see and edit. White is invisible on a light dialog, and an +unbounded description pushed the field off screen. `parity/scenarios/P.8/session-manager.app.ts` drives it: its +`rename` checkpoint differs by the 26 cells of the directory above the field, in color only. diff --git a/packages/cli-rs/parity/deviations/D01-no-plugins.md b/packages/cli-rs/parity/deviations/D01-no-plugins.md new file mode 100644 index 000000000000..46fa2e430d2e --- /dev/null +++ b/packages/cli-rs/parity/deviations/D01-no-plugins.md @@ -0,0 +1,17 @@ +# D01: `--no-plugins` + +TypeScript: `opencode` has no flag that turns plugins off for one run; its help and completions list none. + +Rust: `opencode-native --no-plugins` starts the TUI with no external plugin, of any carrier: no Luau, TypeScript or +local plugin loads, no JS host starts, and a project's plugin is not asked about. `/plugins` lists each target as +skipped, "opencode-native started with --no-plugins, which loads no external plugin". The built-ins load as always. +The root's help lists the flag, and each shell's completions offer it; it has no `--no-no-plugins` negation, and the +wizard does not ask about it. `OPENCODE_PLUGIN_LUAU=0` and `OPENCODE_PLUGIN_JS=0` still turn off one carrier while +they are set. + +The tests that hold the command table, the help and the usage errors to TypeScript's recordings leave the flag out +(`Flag::own`, `crates/cli/src/tests`), and the P-CLI completions cases mask its lines on both sides +(`parity/scenarios/C.0/own-flags.ts`). + +Reason: opencode-native has no crash guard (O-192). A plugin that crashes or freezes the client as it starts would +stop every run; the flag is the way back in to disable or remove it. diff --git a/packages/cli-rs/parity/deviations/D01-plugin-add-tui-notice.md b/packages/cli-rs/parity/deviations/D01-plugin-add-tui-notice.md new file mode 100644 index 000000000000..7b824d4a17c1 --- /dev/null +++ b/packages/cli-rs/parity/deviations/D01-plugin-add-tui-notice.md @@ -0,0 +1,20 @@ +# D01: `plugin add` of a TUI package says how opencode-native loads it + +TypeScript: `opencode plugin add ` installs the package with npm. A package with a server or GUI part goes in +the global `opencode.json` (`Plugin "" installed and added to …`); a package with only a TUI part goes in +`cli.json` (`TUI plugin "" installed and added to …/cli.json`), and the TS client loads it. + +Rust: `opencode-native plugin add` runs the TypeScript CLI with the same arguments, stdio and exit code, as every +`plugin` subcommand does (D.1), but as a child it waits for rather than in its place. opencode-native loads a TUI +package named in `cli.json` from the cache that install filled, on its JS host (`F16-typescript-plugins-skipped`). +The JS host is on by default (O-166), and then it prints nothing more, as TS. Only when `OPENCODE_PLUGIN_JS` turns +it off (`0`, `false` or `off`), and the child succeeded and added an entry to `cli.json`, it prints one more line to +stdout for each: `opencode-native loads TUI plugin "" on its JS host, which OPENCODE_PLUGIN_JS turns off: unset +it to load it. The TypeScript client (opencode) loads it as it is.` A build without the cargo feature `ts` (ts-feature) +has no JS host, so it prints for each, whatever the variable says: `opencode-native will not load TUI plugin +"": this build has no TypeScript plugin support (built without the ts feature). The TypeScript client +(opencode) loads it as it is.` A failed add, or one that changed nothing, prints nothing more. + +Reason: with the JS host turned off, "installed and added" alone would tell the user it works (field test FT-11). The +line is driven by `crates/cli/tests/delegate.rs` `adding_a_tui_package_says_how_opencode_native_loads_it`, with a fake +TypeScript binary: a P-CLI case of `plugin add` would install from npm on both sides. diff --git a/packages/cli-rs/parity/deviations/D01-upgrade.md b/packages/cli-rs/parity/deviations/D01-upgrade.md new file mode 100644 index 000000000000..a03300bafb8b --- /dev/null +++ b/packages/cli-rs/parity/deviations/D01-upgrade.md @@ -0,0 +1,30 @@ +# D01: `upgrade` upgrades nothing + +TypeScript: `opencode upgrade` (alias `update`) updates the TypeScript CLI it is. + +Rust: `opencode-native upgrade` never delegates and upgrades nothing (`crates/cli/src/commands/upgrade.rs`). Its +flags (`--method`, the version argument) parse as in TS, with TS's errors (P-CLI `D.1/upgrade-bad-method`). Past +them, it prints one message on stderr for the install it detects, and exits 1: + +| Install | Message | +| --- | --- | +| A preview build (version `0.0.0-native-`), which bundles its server | `This is an OpenCode native CLI preview build; re-run the install script to update it and its bundled server.` and the line below | +| `opencode` beside the binary's real path (the bundled layout, `shipping/distribution-plan.md` "Primary path") | ``This opencode-native is updated with the opencode installed beside it (): run `opencode upgrade`.`` | +| A source build (version `local`) without one | `This opencode-native is a source build; rebuild it to update it.` and the line below | +| Any other build without one | `This opencode-native has no updater; update it the way you installed it.` and the line below | + +The line below is ``\`opencode upgrade\` updates a separate TypeScript install, not this one.`` + +An `opencode` on `PATH` or named by `OPENCODE_TS_BIN` is a separate TypeScript install, and `upgrade` never runs it. +Those lookups only find the binary that starts a server and runs the other delegated commands (D.1). + +After the install script or `opencode upgrade` replaced both binaries, the background service still runs the old +version. The next `opencode-native` (TUI) or `opencode-native mini` restarts it on the new bundled binary, as TS's +client does after `opencode upgrade` (O-167, `S03-never-replace`). + +Reason: the user decided (native-upgrade, after U8 of dx-fresh) that `opencode-native upgrade` must not upgrade +something else. Delegating to an `opencode` on `PATH` or in `OPENCODE_TS_BIN` would update a separate install. In the +bundled layout users start everything through `opencode`, so the client running `opencode upgrade` would be the client +asking the server binary to replace the client: that is circular, and on Windows it cannot replace a running +`opencode-native.exe`. Preview builds come from the preview repository's install script, which the TypeScript updater +does not know about (`shipping/share-builds.md` section 5, step 2). The D.2 update flow replaces this. diff --git a/packages/cli-rs/parity/deviations/D01a-store-core.md b/packages/cli-rs/parity/deviations/D01a-store-core.md new file mode 100644 index 000000000000..2e74e921bdf9 --- /dev/null +++ b/packages/cli-rs/parity/deviations/D01a-store-core.md @@ -0,0 +1,50 @@ +# D01a: store core differences + +## `loadMore` has no `beforePublish` hook + +- TypeScript: `session.message.loadMore(id, { beforePublish })` runs a callback inside the Solid + batch that publishes the pages, so a view can measure before the store changes. +- Rust: `Data::message_load_more` publishes under the store lock. A view sees the pages on the next + change flush, with `Changes::messages(id)` set. +- Reason: there is no reactive batch to hook into. A view that needs the "before" state reads it + before it calls `message_load_more`. + +## Cancellation is a `CancellationToken` + +- TypeScript: `loadMore` takes an `AbortSignal`, passes it to `fetch`, and removes its listener + when it settles. +- Rust: `LoadMore { cancel: Some(token) }`. Cancelling ends the wait and drops the request future. + The visible results are the same, and `solid-data.test.ts` "bulk history" covers all seven cases. +- Reason: this is the tokio form of an abort signal. + +## `session.moved` keeps the directory only + +- TypeScript: the stored session `location` becomes the event's `location`, which can also carry + `workspaceID`. +- Rust: the generated `SessionInfo.location` is `Location.PublicRef` (directory only), so the + workspace ID is not stored. +- Reason: this follows the schema. Explicit workspace placement is reserved (root `AGENTS.md`). + +## A second `server.connected` invalidates every cached read + +- TypeScript: `server.connected` reads `session.active` and the default location again and calls + `vcs.sync` and `project.sync`, which do nothing while their reads are cached. The cache is + invalidated only when `config.connection` reports a status other than `connected`. +- Rust: every `server.connected` after the first invalidates every cached read and flushes + `Changes::everything`, so VCS and the projects are read again with the rest + (`State::apply_event`, `crates/store/src/connection.rs`). The F.7 fold oracle + (`parity/fixtures/F.7/folds.json`, `server.connected@loaded`) records the two extra reads. +- Reason: a reconnect that the status watch coalesced, or a queue-full drop (A09-bounded-queue), + never shows a disconnected status, and the events of the old stream are lost (F.7 review, + carbon-1). + +## `session.model.selected` adds its row only to a loaded transcript + +- TypeScript: `message.update` creates an empty transcript as a side effect of events that edit one, such as + `session.inbox.delivered`, `session.execution.*`, `session.revert.committed` and compaction deltas. + `session.model.selected` adds its row to any transcript that exists, so also to one created that way, and reads + the row from the server. +- Rust: those events create no transcript, so `session.model.selected` adds its row (and reads it) only for a + loaded transcript or one a head read is filling (`State::on_model_selected`, `crates/store/src/sessions.rs`). +- Reason: a transcript that was never read shows nothing either way, and its first head read brings the row; TS + spends a read on it. diff --git a/packages/cli-rs/parity/deviations/D131-epilogue-untitled.md b/packages/cli-rs/parity/deviations/D131-epilogue-untitled.md new file mode 100644 index 000000000000..850f0d613860 --- /dev/null +++ b/packages/cli-rs/parity/deviations/D131-epilogue-untitled.md @@ -0,0 +1,20 @@ +# D131: the exit summary of an untitled session + +## TypeScript + +The session route records `Locale.truncate(session()?.title ?? "", 50)` for the exit summary +(`packages/tui/src/routes/session/index.tsx:201-204`), and `epilogue` prints it as is +(`packages/tui/src/util/presentation.ts:39`). A session the server has not titled, such as one whose title +generation failed, prints a `Session` row with nothing after the label. + +## Rust + +An untitled session (no title, or an empty one) prints `New session`, or `Child session` for a child: the label TS +gives such a session in its links (`SessionTitleFallback.displayLabel`). A titled session prints its title, as in TS +(`crates/tui/src/features/epilogue.rs`). + +## Reason + +A TS defect, fixed here (O-89): the row names the session, and an empty one says nothing; the D131 Windows run +showed it for a session the server gave no title. Driven by `parity/scenarios/D131/title-untitled.pty.ts` +(checkpoint `epilogue`, one line); `title-renamed.pty.ts` checks that a titled session prints as in TS. diff --git a/packages/cli-rs/parity/deviations/D131-update-command.md b/packages/cli-rs/parity/deviations/D131-update-command.md new file mode 100644 index 000000000000..d0ef18f368da --- /dev/null +++ b/packages/cli-rs/parity/deviations/D131-update-command.md @@ -0,0 +1,19 @@ +# D131: no "Update OpenCode" command + +## TypeScript + +The CLI always hands the TUI an updater (`packages/cli/src/commands/handlers/default.ts:126-141`), so `app.tsx` +registers `opencode.update` ("Update OpenCode", `/update`, `app.tsx:1062-1072`) and the palette lists it under +System. + +## Rust + +The TUI registers `opencode.update` only once something sets an update source +(`crates/tui/src/features/update_notification.rs` `set_source`), and the CLI sets none: the palette has no "Update +OpenCode" and `/update` is not a command. The update notice and dialog exist and run under tests. + +## Reason + +The native client has no updater of its own yet: `opencode-native upgrade` delegates to the TypeScript CLI or, in a +preview build, says to re-run the install script (D01), and the D.2 update flow replaces both. Driven by +`parity/scenarios/D131/palette.pty.ts` (checkpoint `update`, at most two lines; the result row differs in one). diff --git a/packages/cli-rs/parity/deviations/DLG07-go-upsell-art.md b/packages/cli-rs/parity/deviations/DLG07-go-upsell-art.md new file mode 100644 index 000000000000..533dd2654dcc --- /dev/null +++ b/packages/cli-rs/parity/deviations/DLG07-go-upsell-art.md @@ -0,0 +1,23 @@ +# DLG07: the Go upsell art always takes its 24-bit color path + +## TypeScript + +When the screen has room (at least 22 rows, 26 below 52 columns), `DialogGoUpsell` draws `go_upsell_art` behind +the text: rings and the GO logo, at 30 fps while animations run and the frame halfway through the period while they +are off (`packages/tui/src/component/dialog-go-upsell.tsx:142-154`, `component/go-upsell-art.ts`). The logo's full +blocks (`█`) are drawn as upper half blocks (`▀`) with a top and a bottom color only when the terminal reports 24-bit +color (`capabilities.rgb`); otherwise they stay `█` in one color, the average of the two. + +## Rust + +The same art (`crates/tui/src/dialogs/go_upsell_art.rs`), cell for cell: the still frame equals TS's on a 24-bit +color terminal (P-COMP `E.16/go-upsell-art`, 90x34). It always takes the half-block path, whatever the terminal's +color depth. + +## Reason + +OpenTUI's Rust crates expose no color-depth capability to the client, so it cannot tell which path TS would take. +The 24-bit path is what TS draws in the terminals the clients target (the plugins field test saw it). Driven by +`models::go_upsell_art_matches_typescript_when_still` against `E.16/go-upsell-art-256`, the TS frame without 24-bit +color: exactly the logo's seven full-block cells differ, `█` in TS and `▀` in Rust. The difference goes away when +OpenTUI's Rust crates report the color depth. diff --git a/packages/cli-rs/parity/deviations/DLG10-link-click.md b/packages/cli-rs/parity/deviations/DLG10-link-click.md new file mode 100644 index 000000000000..addeecefbee6 --- /dev/null +++ b/packages/cli-rs/parity/deviations/DLG10-link-click.md @@ -0,0 +1,11 @@ +# DLG10: a failed open from a link click shows a toast + +TypeScript: the OAuth views draw the authorization URL with `Link` (`packages/tui/src/ui/link.tsx:18-34`), whose +`onMouseUp` calls `openUrl(...).catch(() => {})`. A click that cannot start the browser does nothing. + +Rust: a plain click on the URL runs the same open action as Enter ("open link enter", +`crates/tui/src/dialogs/integration/mod.rs`, `link`). It opens through `Local::open_url`, and a failure shows the +Enter action's "Could not open the browser" toast. A click that ends a text selection does not open the link. + +Reason: one open path for the click and Enter, which tests replace through `Local::open_url`. The toast tells the +user to copy the URL instead of failing silently. diff --git a/packages/cli-rs/parity/deviations/DLG11-mcp-dialog.md b/packages/cli-rs/parity/deviations/DLG11-mcp-dialog.md new file mode 100644 index 000000000000..11b9778e2f6b --- /dev/null +++ b/packages/cli-rs/parity/deviations/DLG11-mcp-dialog.md @@ -0,0 +1,18 @@ +# DLG11: the MCP servers dialog + +## TypeScript + +`DialogMcp` keeps a `focused` server apart from the list's selection +(`packages/tui/src/component/dialog-mcp.tsx:51,145`). The detail view replaces the `DialogSelect` +(``, `:136`), so Back mounts a new list on its first row while `focused` is still the +failed server. The toggle title then reads `retry` over a row that is not the one space acts on. +`initialServer` sets `focused` the same way without moving the list. + +## Rust + +The selection is the focused server. Back reopens the list on the failed server, and `show_server(initial)` +selects `initial`, so the title, the hint, and space always follow the highlighted row. + +## Reason + +This is a TS inconsistency between the title and the row it acts on; Rust does not copy it. diff --git a/packages/cli-rs/parity/deviations/DLG13-model-scroll.md b/packages/cli-rs/parity/deviations/DLG13-model-scroll.md new file mode 100644 index 000000000000..f2df21d26a64 --- /dev/null +++ b/packages/cli-rs/parity/deviations/DLG13-model-scroll.md @@ -0,0 +1,20 @@ +# DLG13: the model dialog scrolls to the current model + +## TypeScript + +`DialogModel` selects the current model (`current={local.model.current()}`, +`packages/tui/src/component/dialog-model.tsx:250`), but when that row starts below the first screen of the list +the list stays at the top. The highlighted row is off screen until the user moves. Seen at 90x34 with the +E.16 fixture: the current model, Claude Sonnet, is the ninth row and the list shows rows one to eight. At +90x60, where the whole list fits, the row is highlighted in place. + +## Rust + +The select scrolls to the current option when it opens, as `DialogSelect` does for every other dialog +(the `U.3/select` fixture), so the current model is on screen and highlighted. + +## Reason + +`DialogSelect` asks for this scroll (`scrollAfterLayout(true, current)`, `packages/tui/src/ui/dialog-select.tsx:181`), +and the other dialogs get it. The TypeScript client misses it here, so Rust does not copy that. P-COMP fixtures +`E.16/model` and `E.16/model-filter` are taken at 90x60, where both sides draw the same cells. diff --git a/packages/cli-rs/parity/deviations/DLG35-fuzzy-word-accents.md b/packages/cli-rs/parity/deviations/DLG35-fuzzy-word-accents.md new file mode 100644 index 000000000000..fd58a4941f62 --- /dev/null +++ b/packages/cli-rs/parity/deviations/DLG35-fuzzy-word-accents.md @@ -0,0 +1,11 @@ +# DLG35: fuzzy search with accents in a word of several + +**TypeScript.** `fuzzysort` folds accents out of targets and searches (`remove_accents`), but for each word of a +search with spaces it keeps `searches[i].toLowerCase()` for the substring check, without folding. A word with an +accent is then never found as a substring of a folded target: `ström a` gets no substring bonus on `Ångström`, so +it ranks lower than its letters do. + +**Rust.** `fuzzy` folds each word before every check, as fuzzysort does for a single-word search, so `ström a` +scores `Ångström` as `strom a` does. Searches without accents, and single words, rank as in TypeScript. + +**Reason.** The TypeScript behavior is a fuzzysort defect; folding both sides is what its accent handling intends. diff --git a/packages/cli-rs/parity/deviations/DLG35-select-right-click.md b/packages/cli-rs/parity/deviations/DLG35-select-right-click.md new file mode 100644 index 000000000000..527445434a6b --- /dev/null +++ b/packages/cli-rs/parity/deviations/DLG35-select-right-click.md @@ -0,0 +1,19 @@ +# DLG35: select rows ignore a right-click release + +## TypeScript + +Each `DialogSelect` row runs `option.onSelect` and `props.onSelect` from `onMouseUp` +(`packages/tui/src/ui/dialog-select.tsx:799-803`), whatever the button. OpenTUI Core delivers the release of any +button to `onMouseUp`, so releasing a right-click (or middle click) over a row chooses it. + +## Rust + +`Select::row_mouse` (`crates/ui/src/select.rs`) chooses a row only on `MouseEventKind::Up(MouseButton::Left)`. +Releasing any other button over a row does nothing. + +## Reason + +Choosing a row on a right-click release is a TypeScript bug: a right-click is not a request to choose, and it +can run an action the user did not ask for (O-41, `reviews/ms3-ms4.review-carbon.md` notes). The left-click path +is the same on both sides; `ui/tests/all/dialogs.rs::clicks_select_rows_and_the_backdrop_closes_the_dialog` +covers both buttons. diff --git a/packages/cli-rs/parity/deviations/DLG35-select-text-units.md b/packages/cli-rs/parity/deviations/DLG35-select-text-units.md new file mode 100644 index 000000000000..6ff4fe2b2404 --- /dev/null +++ b/packages/cli-rs/parity/deviations/DLG35-select-text-units.md @@ -0,0 +1,17 @@ +# DLG35: select truncation on non-BMP text + +## TypeScript + +`DialogSelect` cuts titles, details, and paths with `Locale.truncate`, `truncateLeft`, and `truncateMiddle` +(`packages/tui/src/util/locale.ts:31-79`), which count UTF-16 code units. + +## Rust + +The truncation helpers count Unicode scalar values, so a title with characters outside the Basic Multilingual Plane, +such as emoji, keeps one more character before the `…` than in TypeScript. Filtering matches: `fuzzy` compares +UTF-16 code units and drops accents from Latin letters as `fuzzysort`'s `remove_accents` does, from the table +`script/gen/accents.ts` writes. + +## Reason + +Counting code units would cut a surrogate pair in half, which TypeScript does and shows as a broken character. diff --git a/packages/cli-rs/parity/deviations/DW6-editor-file-quoted.md b/packages/cli-rs/parity/deviations/DW6-editor-file-quoted.md new file mode 100644 index 000000000000..08d8fa814278 --- /dev/null +++ b/packages/cli-rs/parity/deviations/DW6-editor-file-quoted.md @@ -0,0 +1,13 @@ +# DW6: the external editor's file is quoted on Windows + +TypeScript: `openEditor` (`packages/tui/src/editor.ts`) spawns the editor with `shell: true` on Windows, so Node runs +`cmd.exe /d /s /c " "` with the temp file unquoted. A temp directory with a space (for example a user +name with a space under `%TEMP%`) splits the path, and the editor opens the wrong file or none; a `&` or `^` in the +path is parsed by cmd. + +Rust: the same `cmd.exe /d /s /c` command line (`%ComSpec%`, else `cmd.exe`, as Node), with the file in double +quotes: `cmd.exe /d /s /c " """`. The editor string still reaches cmd as written, so `code --wait` and +a quoted editor path work as in TS. cmd still expands a defined `%VAR%` in the path, as it does for TS. Unix runs the +editor without a shell, as TS does. + +Reason: decision DW6 of the Windows port plan. The quotes only make paths work that TS breaks on. diff --git a/packages/cli-rs/parity/deviations/F01-plugin-click-left-release.md b/packages/cli-rs/parity/deviations/F01-plugin-click-left-release.md new file mode 100644 index 000000000000..fbc435636da4 --- /dev/null +++ b/packages/cli-rs/parity/deviations/F01-plugin-click-left-release.md @@ -0,0 +1,21 @@ +# F01: plugin clicks ignore a right-click release + +## TypeScript + +The built-in plugins act from `onMouseUp`, whatever the button: the home footer's MCP and failed-plugin counts +(`packages/tui/src/feature-plugins/home/footer.tsx:24,64`), the sidebar's MCP rows +(`feature-plugins/sidebar/mcp.tsx:56`), and the sidebar footer's card and location +(`feature-plugins/sidebar/footer.tsx:48,66,102`). OpenTUI Core delivers +the release of any button to `onMouseUp`, so releasing a right-click (or middle click) over them runs the action. +The sidebar's fold headers use `onMouseDown` (`sidebar/mcp.tsx:29`, `sidebar/todo.tsx:25`), also for any button. + +## Rust + +A plugin node's `Click` (`crates/plugin-abi`, `abi::Click`) runs on `MouseEventKind::Up(MouseButton::Left)`, or on +`MouseEventKind::Down(MouseButton::Left)` for `Click::on_down` (`crates/plugin/src/node.rs`). Other buttons do +nothing, for the built-ins and for every plugin of the one API. + +## Reason + +The same rule as `DLG35-select-right-click.md`: a right-click is not a request to act, and it can run an action the +user did not ask for (O-41). The left-click path is the same on both sides. diff --git a/packages/cli-rs/parity/deviations/F12-mermaid-leading-row.md b/packages/cli-rs/parity/deviations/F12-mermaid-leading-row.md new file mode 100644 index 000000000000..04f102337346 --- /dev/null +++ b/packages/cli-rs/parity/deviations/F12-mermaid-leading-row.md @@ -0,0 +1,13 @@ +# F12: no blank row above a diagram that opens a message + +**TypeScript.** The Mermaid renderer gives its diagram `marginTop: 1` (`packages/merman/src/markdown.ts`), because +Core's top-level Markdown sets no margin on a custom block (`F16-plugin-fence-margin.md`). Between blocks this gives +the usual one blank row. When the diagram is the first block of the text, it also leaves a blank row above it, under +the message's top edge. + +**Rust.** opentui-rust's `Markdown` puts one blank row between blocks and none before the first. The diagram has no +margin of its own. Between blocks the rows are the same (`parity/scenarios/P.2/fence-margin.app.ts`). A diagram that +opens the text starts on the first row: `P.2/mermaid-opens` is one row shorter, and otherwise equal. + +**Reason.** As for a formula (`F13-latex-leading-row.md`): a renderer does not know if its block is first, so it +cannot add the margin only there, and adding it always would put two blank rows between blocks everywhere else. diff --git a/packages/cli-rs/parity/deviations/F12b-diagram-layout-errors.md b/packages/cli-rs/parity/deviations/F12b-diagram-layout-errors.md new file mode 100644 index 000000000000..cec61f0c5c0b --- /dev/null +++ b/packages/cli-rs/parity/deviations/F12b-diagram-layout-errors.md @@ -0,0 +1,12 @@ +# F12a, F12b: a diagram the layout cannot place shows as code + +**TypeScript.** Besides `MermaidSyntaxError` and `DiagramCanvasSizeError`, which keep the fence as code, the merman +layouts throw a plain `Error` in a few dead ends: a flowchart subgraph with no collision-free responsive position +(`flowchart/layout.ts`), a state note with no exterior corridor, a transition label with no clear position, or state +composites that do not separate (`state/layout.ts`, `state/routing.ts`, `state/drawing.ts`). +`createMermaidCodeBlockRenderer` rethrows it, so the error leaves the Markdown renderer. + +**Rust.** The same dead ends return an error, and the fence renders as its code block. + +**Reason.** Showing the source is the renderer's own fallback for every other failure; an exception out of a +transcript renderer has no useful TS behavior to copy. None of the 496 corpus cases reaches these paths. diff --git a/packages/cli-rs/parity/deviations/F13-latex-edge-inputs.md b/packages/cli-rs/parity/deviations/F13-latex-edge-inputs.md new file mode 100644 index 000000000000..fbf6dcfce6a0 --- /dev/null +++ b/packages/cli-rs/parity/deviations/F13-latex-edge-inputs.md @@ -0,0 +1,25 @@ +# F13: LaTeX edge inputs that TypeScript handles by accident + +`crates/latex` ports `packages/latex/src` (`docs/architecture.md`). The P-ORACLE (`parity/fixtures/P.2/layouts.json`, 207 +sources) and the P-COMP fixtures are equal but for `P2-latex-opentui-tex`. These inputs are outside that corpus and +differ: + +- **Characters outside the Basic Multilingual Plane typed literally**, such as `𝔤` or an emoji. TS reads the + source by UTF-16 unit, so the glyph becomes two lone surrogates, two cells wide. Rust reads by `char` and draws + one glyph, as wide as `string-width` counts it. +- **Commands named like JavaScript object properties**, such as `\toString` or `\constructor`. TS looks up + `command in accents` and finds the prototype property, so the command draws as an accent. Rust rejects them as + unsupported commands, and the source shows. +- **User macros and the `maxSourceLength`, `maxExpand`, and `maxDepth` options** of `parseLatex` are not ported. + The plugin never passes them. The 256-level limit is kept; the source limit is opentui-tex's 4096 UTF-8 bytes + (`P2-latex-opentui-tex`). +- **Formulas whose layout takes more than 2²⁰ cells**, such as a ragged matrix of a thousand columns and rows. + TS allocates the rectangle and shows the formula, or the source when the allocation throws a `RangeError`. Rust + stops at `layout::MAX_CELLS` cells in all intermediate blocks, and at opentui-tex's 16 384 in one block, and shows + the source, so a formula cannot exhaust memory on the UI thread. +- **The mouse wheel over a formula.** TS stops Shift-wheel and horizontal wheel events at the formula, even when it + cannot scroll further. opentui-rust's `ScrollBox` passes a wheel step it cannot use to the transcript. + Unshifted vertical wheel steps reach the transcript in both. + +**Reason.** These follow from the TS runtime (UTF-16 strings, object lookups) or from widget behavior, not from +the formula rules. Rust keeps the intended behavior. diff --git a/packages/cli-rs/parity/deviations/F13-latex-leading-row.md b/packages/cli-rs/parity/deviations/F13-latex-leading-row.md new file mode 100644 index 000000000000..6c7f637ec1eb --- /dev/null +++ b/packages/cli-rs/parity/deviations/F13-latex-leading-row.md @@ -0,0 +1,14 @@ +# F13: no blank row above a formula that opens a message + +**TypeScript.** The LaTeX renderer gives its scroll box `marginTop: 1` (`packages/latex/src/markdown.ts:81`), +because Core's top-level Markdown sets no margin on a custom block. Between blocks this gives the usual one blank +row. When the formula is the first block of the text, it also leaves a blank row above it, under the +message's top edge. + +**Rust.** opentui-rust's `Markdown` puts one blank row between blocks and none before the first. The formula widget +has no margin of its own. Between blocks the rows are the same: `parity/fixtures/P.2/*.json` match cell for cell, +and so does the transcript in `parity/scenarios/P.2/fence-margin.app.ts`. A formula that opens the text starts on the +first row: `P.2/latex-opens` is one row shorter, and otherwise equal. + +**Reason.** A renderer does not know if its block is first, so it cannot add the margin only there. Adding it +always would put two blank rows between blocks everywhere else. diff --git a/packages/cli-rs/parity/deviations/F16-plugin-budget-and-restart.md b/packages/cli-rs/parity/deviations/F16-plugin-budget-and-restart.md new file mode 100644 index 000000000000..404a71a31cd8 --- /dev/null +++ b/packages/cli-rs/parity/deviations/F16-plugin-budget-and-restart.md @@ -0,0 +1,27 @@ +# F16: plugin calls are timed + +## TypeScript + +The TUI times no plugin callback. A slow callback makes the UI slow and nobody is told; a callback that never +returns freezes the TUI for good. + +## Rust + +Every plugin call, of a built-in and of an external plugin, is timed (synthesis 4.4). + +- A plugin over 1 ms in more than 12 of the last 120 frames it ran in is slow. One warning toast a session says + `Plugin is slow: `, with what a slow frame costs and a Disable action, and its row in `/plugins` shows p50, p99 + and worst per call kind. This applies to built-ins too. +- One call over 100 ms fails an external plugin, after the call's effects applied: the toast `Plugin failed: `, + and `/plugins` lists ` took ms, over the limit of 100 ms`. A Luau call is stopped by its VM's interrupt at + that limit. For a built-in it is logged as a host bug. `OPENCODE_PLUGIN_LIMITS` changes the limits. + +There is no crash guard: a plugin that crashes the process (only the Luau VM could) ends the client, and +`opencode-native --no-plugins` starts it with no external plugin ([`D01-no-plugins.md`](D01-no-plugins.md)). + +## Reason + +O-123 runs plugin UI code in the client's process and on its UI thread, so the budget is what tells the user which +plugin makes the UI slow. TS plugins run in the JS host's process, Luau calls stop on Luau's own CPU interrupt, and +the built-ins are first-party, so nothing in process needs a watchdog or a restarting parent (O-192). The slow state +applies to built-ins because the budget cannot tell them apart on the frame; it only informs. diff --git a/packages/cli-rs/parity/deviations/F16-plugin-composer-edits.md b/packages/cli-rs/parity/deviations/F16-plugin-composer-edits.md new file mode 100644 index 000000000000..3f34fc8b4a6e --- /dev/null +++ b/packages/cli-rs/parity/deviations/F16-plugin-composer-edits.md @@ -0,0 +1,25 @@ +# F16: a plugin edits the composer, not the focused editor + +## TypeScript + +The TUI plugin API has no composer. npm plugins edit it through OpenTUI's `renderer.currentFocusedEditor` +(`insertText`, `setText`), through the composer's internal `ref` (`set`, `submit`), or through the server with +`client.tui.appendPrompt`, which the composer turns into an insert and a move to the end +(`packages/tui/src/component/prompt/index.tsx`, `tui.prompt.append`). `currentFocusedEditor` is whatever editor has +the focus: the composer, or a dialog's input while a dialog is open, and nothing while no editor has it. + +## Rust + +The ABI has `Read::composer()` and `Host::edit_composer(ComposerEdit::{Set, Insert, Submit})`. They act on the +composer on screen, on home or in a session, whether or not it has the focus, and never on another editor: with a +dialog open an insert still goes into the composer. Without a composer on screen (a plugin's route, or a session that +hides it for a permission, a form or the drawer, where TS unmounts it) the read is `None` and an edit does nothing. An +insert goes in at the cursor, as `insertText` does; a set is the composer `ref`'s `set`; a submit is refused where +TS's `submit` refuses a disabled prompt. + +## Reason + +A plugin cannot reach OpenTUI's renderables (decision O-67), so the edit is an effect on a named target. The +composer is the target the npm plugins mean (the audit's `prompt-edit` class, `investigations/tui-plugin-audit.md`): +voice input, snippets and prompt rewriting. When the composer has the focus, which is when those plugins act, the +result is the same; `parity/scenarios/P.1/p0a-composer.app.ts` checks an insert against TS. diff --git a/packages/cli-rs/parity/deviations/F16-plugin-contract-gaps.md b/packages/cli-rs/parity/deviations/F16-plugin-contract-gaps.md new file mode 100644 index 000000000000..3f20c2e8a6bf --- /dev/null +++ b/packages/cli-rs/parity/deviations/F16-plugin-contract-gaps.md @@ -0,0 +1,15 @@ +# F16: a plugin's field text in the host's color + +**TypeScript.** A TUI plugin's `` is OpenTUI's `InputRenderable`, which draws what the user types in its own +default text color, white, and its placeholder in its own gray, `#666666`, whatever the theme. + +**Rust.** A plugin's field is the contract's `Node::Input`, the host's own field, which draws the typed text in the +theme's text color (`text.base`) and its placeholder in the muted one (`text.muted`), as the composer and the host's +dialogs do. + +**Reason.** The field is the host's, so it looks as the host's fields do on every carrier: the published package on +the JS host and its Luau port draw the same. `parity/scenarios/P.8/session-manager.app.ts` drives it: its +`searching` checkpoint differs by the 29 cells of the placeholder and its `search` checkpoint by the five of the typed +word, in color only, and the rest of the scenario is equal. +`/` focuses the field the same call shows (contract 2.x, step B, the focus waits for the view that shows it), and the +rename prompt carries its `value` and `description` (contract ergonomics 2.6), which this deviation listed before. diff --git a/packages/cli-rs/parity/deviations/F16-plugin-dialog-ends-with-activation.md b/packages/cli-rs/parity/deviations/F16-plugin-dialog-ends-with-activation.md new file mode 100644 index 000000000000..4b6b8b9f0c03 --- /dev/null +++ b/packages/cli-rs/parity/deviations/F16-plugin-dialog-ends-with-activation.md @@ -0,0 +1,39 @@ +# F16: a plugin's dialog ends with its activation + +## TypeScript + +A plugin's dialogs (`context.ui.dialog.show`, `alert`, `confirm`, `prompt`, `select`) are mounted in the host's +dialog stack, outside the activation's `owned` cleanups (`packages/tui/src/plugin/api.tsx`: `owned` releases the +docked panel, keymap layers and registrations, not dialogs). When the plugin is disabled, fails to reload, or reloads, +its open dialog stays on screen, with focus, and its callbacks belong to the activation that ended. +`packages/tui/test/plugin-keymap.test.tsx` ("a component layer ends with its activation on reload while the +component stays mounted") asserts that the dialog stays across a reload. A throw in a command or a render does not +end a TS activation, so it closes nothing. + +## Rust + +When an activation of a plugin ends, its dialog closes: on a disable (the plugin manager or `cli.json`), on a reload +that replaces the build, on an unload, at the exit, and when a call of the plugin fails. A panel, a prompt, a list, a +confirm and an alert each belong to the activation that asked for it: `Host::dialog` gets the activation's generation, the TUI records +that owner while the dialog is open, and a dialog or a confirmed action of an activation that is no longer live +(`Registry::live`) shows and runs nothing (`crates/tui/src/plugins/panel.rs`, `show`, `close`, `run`). An alert +answers however it closes, also when that close is the activation's end; its action then runs nothing, as TS's +promise resolves into an activation that is gone. The registry +calls `Host::revoked` first in the activation's disposal, before the plugin's dispose callbacks, and when it fails the +plugin (`crates/plugin/src/lib.rs`); it closes the dialog only if its owner is that plugin and not live. A dialog +that a dispose callback or a setup that failed asks for never shows. A reload whose new build fails to set up leaves +the running build and its dialog. + +The shared fixture shows it: `parity/machines/plugins.json`, rows `dialogA reload`, `dialogB reload`, `confirmA reload`, +`confirmB reload`, `alertA reload` and `alertB reload`. TS keeps the prompt, confirm or alert (`?/?/?/prompt` and so +on), and answering it after the reload changes nothing the user sees. Rust closes it and shows the plugin on its new +build (`A/yes/on/-`); an alert closed that way, whose action names a command the new build also registers, leaves the +new build's line as it was. + +## Reason + +Rich-plugins 4.14 and O-125: "a reload ends every mount of the old build", and when a plugin leaves `active` nothing +it owned is left and focus is at the composer. A dialog's action is a command name, which the host dispatches; left +open after a reload, a prompt, a list, a confirm or an alert of the old build ran the new build's command (the plugin +model, `a-stale-prompt-reaches-no-new-build` and `a-stale-alert-reaches-no-new-build`, and the P0a review). A dialog of an activation that ended can only call into +code that is gone or into a build that did not open it. diff --git a/packages/cli-rs/parity/deviations/F16-plugin-failed-route.md b/packages/cli-rs/parity/deviations/F16-plugin-failed-route.md new file mode 100644 index 000000000000..654410b26a4a --- /dev/null +++ b/packages/cli-rs/parity/deviations/F16-plugin-failed-route.md @@ -0,0 +1,18 @@ +# F16: the route of a plugin that failed says so + +## TypeScript + +A route that no plugin registers shows `plugin-route-missing.tsx`: "Unknown plugin route: /" in the warning +color, and a "go home" button. A plugin whose setup throws registers no route, so its route shows the same screen. + +## Rust + +A route that no plugin registers shows the same screen. When the plugin that owns the route is listed failed, for +example after its view overran the call limit while the route showed, the screen says "Plugin failed. Run +/plugins for details." instead, with the same "go home" button (`crates/tui/src/features/route_missing.rs`). + +## Reason + +A plugin fails at run time, under containment (synthesis 4.14), while its route is on screen, and the host then +shows its route again. "Unknown plugin route" named a route that exists and hid why it went (PL-8). The plugins +list has the error. diff --git a/packages/cli-rs/parity/deviations/F16-plugin-failure-text.md b/packages/cli-rs/parity/deviations/F16-plugin-failure-text.md new file mode 100644 index 000000000000..1dfe7ac14843 --- /dev/null +++ b/packages/cli-rs/parity/deviations/F16-plugin-failure-text.md @@ -0,0 +1,27 @@ +# F16: plugin failure toasts name the plugin; fetch errors carry the body + +## TypeScript + +A failed plugin toasts `Plugin failed: ` (`packages/tui/src/plugin/context.tsx:473-486`), where the target is +the plugin's spec or path, with "Run /plugins to view details." and "Open plugins". + +A plugin calls the generated client (`host.client.api`). An error status the route does not declare fails with +`UnexpectedStatus: `; a declared status whose body is not JSON fails with `UnsupportedContentType: `. +A declared JSON error shows its `message`, else its tag (`errorMessage` in `packages/tui/src/util/error.ts`), which is +what `/btw` toasts. + +## Rust + +The toast names the plugin's ID once a build of it described one, and its target only when none did +(`crates/plugin/src/loader/mod.rs`, `tell`). The panic toast already named the ID. + +A plugin's `fetch` takes any status (`Client::reply`). An error status whose body is a JSON object with a tag or a +message gives that message, else the tag, as TS's `errorMessage` does. Any other error status gives +`UnexpectedStatus: : `, the text trimmed and cut at 200 characters, or `UnexpectedStatus: ` +with an empty body. + +## Reason + +The plugin manager lists the plugin by ID, and the path of a local build tells the user less (plugin-live R2-3). A +plugin fetch names any path, so it declares no statuses, and the body of a non-JSON error is the only explanation the +server gave (plugin-live R2-2). diff --git a/packages/cli-rs/parity/deviations/F16-plugin-fence-margin.md b/packages/cli-rs/parity/deviations/F16-plugin-fence-margin.md new file mode 100644 index 000000000000..69babe199ef4 --- /dev/null +++ b/packages/cli-rs/parity/deviations/F16-plugin-fence-margin.md @@ -0,0 +1,25 @@ +# F16: the rows around a fence a renderer draws + +**TypeScript (`@opentui/core` 0.9.4, since #63989).** Markdown lays out its top-level blocks with one row between +them (`rowGap: 1`), a block a `renderBlock` renderer returns included, and none before the first. A renderer that sets +no margin (`markdown.registerCodeBlockRenderer`, the plugin fences of `P.2/plugin-fence-margin`) gets that one row, as +Rust does: that scenario is equal. But the built-in LaTeX and Mermaid renderers still set `marginTop: 1` +(`packages/latex/src/markdown.ts`, `packages/merman/src/markdown.ts`), a workaround for Core 0.8.4, which gave a +custom block a `NaN` margin and so no row. With the gap that margin is a second row: TS draws two blank rows above a +formula or a diagram that follows a block, and everything below moves down a row per such fence. + +**Rust.** opentui-rust's `Markdown` puts one blank row between any two blocks and none before the first, and the +LaTeX and Mermaid fences add none of their own. So a formula or a diagram after a block has one blank row above it. + +**A renderer that wraps the default view** (contract 2.x, step D: `opencode-good-fences@0.1.0`, which boxes +`defaultRender()` under a label). Its rows are equal now. In TS 0.9.4 the default code view paints its glyphs on the +Markdown's `bg` (the page, `#0a0a0a`), so inside the plugin's box each line of code sits on a strip of the page color; +in Rust the code's glyphs keep the box's background. About 44 cells differ in color only (75 after the theme change): +`P.8/good-fences`. + +**Reason.** Decision O-89: Rust keeps the spacing Core means, one row between blocks. The second row is TS's leftover +margin, not a design: once the built-in renderers drop `marginTop: 1`, `P.2/fence-margin` is equal again. Drives: +`P.2/fence-margin` (two formulas and a diagram after blocks, about 175 cells), `P.2/inline-math` (the fence pushes the +transcript up a row), the P-COMP tests `crates/latex/src/tests.rs` (`transcript_fences_match_typescript`) and +`crates/mermaid/tests/all/markdown.rs`. A fence that opens a message differs as `F13-latex-leading-row.md` and +`F12-mermaid-leading-row.md` say. diff --git a/packages/cli-rs/parity/deviations/F16-plugin-foreground.md b/packages/cli-rs/parity/deviations/F16-plugin-foreground.md new file mode 100644 index 000000000000..109c7284b726 --- /dev/null +++ b/packages/cli-rs/parity/deviations/F16-plugin-foreground.md @@ -0,0 +1,33 @@ +# F16: a plugin's program in the foreground is a job of its own + +## TypeScript + +A TUI plugin runs a program in the terminal with `api.renderer.suspend()`, then the program (for example with +`Bun.spawn` and `stdio: "inherit"`), then `api.renderer.resume()`. The program is a plain child: it shares the TUI's +process group, so Ctrl+C, Ctrl+\ and Ctrl+Z on the terminal signal the TUI as well. Its standard streams are +whatever the plugin passes. Input the program leaves unread reaches the TUI after `resume()`. Two plugins can +suspend at once. + +## Rust + +A plugin asks with `Host::try_foreground(program)` and gets the exit in a reply. The host runs the program +once the plugin's call is done (`opencode_util::job`, `features::foreground`): + +- Unix: in a process group of its own, made the terminal's foreground group while it runs. Ctrl+C and Ctrl+\ end + the program and not the TUI. Ctrl+Z stops it, and the host continues it at once, as it holds the job and has no + shell to hand a stopped one to. The reply has `"signal"` when a signal ended the program. +- Windows: the host ignores Ctrl+C and Ctrl+Break while the program runs, so the console's events end the program + and not the TUI. (Reasoned from the code; not run on Windows.) +- Standard input and output are the TUI's, standard error is the terminal (`/dev/tty`, `CONOUT$`). +- Input the program leaves unread is dropped (`tcflush`, `FlushConsoleInputBuffer`). +- One program at a time, shared with `$EDITOR`: a second request is refused with an error reply. +- A program whose plugin was disabled or failed before it started does not start; a headless TUI (drive mode) + refuses; without a `cwd`, a TUI directory that does not exist here runs the program in the host's own. +- The title is sent again after, since suspending the terminal cleared it. + +Scenarios: `P.0b/foreground-signals`, `-streams`, `-title`, `-twice` (P-PTY, Rust only). + +## Reason + +A plugin must not be able to end or stop the client with an ordinary key in a program it ran (reviews bigboi-1, +bigboi-5, carbon-1). The Rust host owns the program, so it gives it job control a shell would. diff --git a/packages/cli-rs/parity/deviations/F16-plugin-limits.md b/packages/cli-rs/parity/deviations/F16-plugin-limits.md new file mode 100644 index 000000000000..b2cd20d07196 --- /dev/null +++ b/packages/cli-rs/parity/deviations/F16-plugin-limits.md @@ -0,0 +1,35 @@ +# F16: a plugin's tree is held to limits on host work + +## TypeScript + +A plugin renders whatever tree it builds. A tree of a hundred thousand nodes, a patch of a hundred thousand lines or +a large image is built and laid out on the UI thread in full, and the TUI waits for it. A plugin's updates run as its +messages arrive, however many there are. + +## Rust + +The host admits a plugin's tree by what it would cost before it builds any of it (synthesis 4.2, phase Pl), on every +carrier and for built-ins too: + +- The nodes of a tree, its rows built at once (a node is a row, a patch, code or Markdown also its lines), a node's + text and a patch's hunks have limits. The node that would cross one shows one muted row in its place, `⋯ too many + nodes`, `⋯ too large to build at once`, `⋯ too large: bytes` or `⋯ too large: hunks`, standing for the + siblings after it, and the rest of the tree draws. A tree that breaks the contract is refused whole, as before. +- What the host holds for a plugin (its trees' nodes, its content, its decoded images) has a limit per plugin and one + for all plugins. Content past it is not kept, and a node that shows it reads `⋯ its content is past what the plugin + may hold`. +- An image is admitted by its bytes and header and decodes on one of two workers; it shows once decoded. One past the + bytes of an image, 2,048 pixels on a side, or the decoded bytes its plugin may hold, reads `⋯ image too large`. +- The rows all trees build in one frame are shared by every plugin: a revision the frame has no rows left for shows a + frame later, and a list's items mount over the frames after (a first view shows in its frame). +- A plugin's updates run in turn with other plugins' under the frame budget, after the input that came before them; + the rest run in the next frames. A mailbox full at the end of more than 12 of the last 120 frames makes its plugin + slow, with one notice: "Its mailbox is full". + +`OPENCODE_PLUGIN_LIMITS` sets the budget as before; the limits of host work are the client's. + +## Reason + +O-123 runs plugin code in the client's process and on its UI thread, so what a plugin's tree makes the host build is +UI-thread time the user waits for (synthesis 4.2, "Limits on host work"). TS has the same exposure and no limit; a +limit there would be a change of its own. diff --git a/packages/cli-rs/parity/deviations/F16-plugin-locale.md b/packages/cli-rs/parity/deviations/F16-plugin-locale.md new file mode 100644 index 000000000000..4a1435e9468b --- /dev/null +++ b/packages/cli-rs/parity/deviations/F16-plugin-locale.md @@ -0,0 +1,26 @@ +# F16: the locale a plugin is told + +**TypeScript.** A TS TUI plugin that wants the user's locale asks `Intl` +(`Intl.DateTimeFormat().resolvedOptions().locale`). Bun 1.4.4 answers `en-US` whatever the system says. I measured +this on Windows 11 (win-locale) with the user locale set to `da-DK`, with and without `LANG=de_DE.UTF-8`: `NumberFormat`, +`Collator`, `toLocaleString` and `toLocaleDateString` all gave `en-US`. On Linux the answer was the same, with and +without `LANG`. macOS was not measured. + +**Rust.** The contract's `Info::locale` is the user's locale: + +- **First,** the first of `LC_ALL`, `LC_MESSAGES` and `LANG` that names one. +- **When none does, on Windows,** the user's default locale (`GetUserDefaultLocaleName`, the regional format the user + set, such as `da-DK`). +- **Otherwise,** `None`. macOS's system language (`CFLocaleCopyCurrent`) is not read, because that would add a Core + Foundation binding for this one value. + +**Reason.** + +- **The fact names the user's locale, not Bun's default.** A Luau or linked plugin picks its strings by it, and a fixed + `en-US` would tell it nothing. +- **Terminals set the variables.** Terminal.app and iTerm2 set `LANG` from the system's language by default, so on + macOS the fact usually carries the system's locale anyway. +- **What is left:** + - A TS plugin and a Luau one can be told different locales, the TS plugin always `en-US`. + - On macOS, a launch with no locale variable is told `None`. +- **Effect:** the host formats nothing by the locale, so the only effect is which strings a plugin chooses. diff --git a/packages/cli-rs/parity/deviations/F16-plugin-manager-fallback.md b/packages/cli-rs/parity/deviations/F16-plugin-manager-fallback.md new file mode 100644 index 000000000000..faf595c3c702 --- /dev/null +++ b/packages/cli-rs/parity/deviations/F16-plugin-manager-fallback.md @@ -0,0 +1,25 @@ +# F16: the host lists the plugins while the plugin manager has failed + +## TypeScript + +The plugin manager is the built-in `opencode.plugins` (`packages/tui/src/feature-plugins/system/plugins.tsx`). It +reaches the plugin registry through the private `usePlugin()` hook, and its `/plugins` command is the only plugin list. +A throw in its dialog is not contained apart from the rest of the TUI, so there is no state in which the manager has +failed and the TUI runs on. + +## Rust + +The plugin manager is a plugin of contract 2.0 (`crates/tui/src/plugins/manager.rs`), contained as any plugin is: a +panic in one of its calls fails it, and its command and dialogs go. The toasts and the home footer still say "Run +/plugins", so while `opencode.plugins` is listed failed the host registers its own `/plugins` +(`crates/tui/src/plugins/fallback.rs`): a read-only list of the TUI plugins with their status. Enter on a row with an +error, or `view error` (space) on any, the manager's included, shows the error, and the user's enter or click on the +manager's own row, whose footer says "failed, enter enables it again", starts the manager again, after which the +host's list goes; a run of the select by name, as another plugin's `dispatch`, starts nothing. A restart whose setup +fails leaves the manager failed and the list up. A manager disabled by the user (`-opencode.plugins` in the +config) leaves no `/plugins`, as in TS. + +## Reason + +Synthesis 3.6 and 4.10 (O-125, 3): the manager is a plugin, so it can fail, and the way back to it must not depend on +it. The host keeps the smallest list that names the failures and enables the manager again. diff --git a/packages/cli-rs/parity/deviations/F16-plugin-panic-no-effects.md b/packages/cli-rs/parity/deviations/F16-plugin-panic-no-effects.md new file mode 100644 index 000000000000..2ba7a28c10c4 --- /dev/null +++ b/packages/cli-rs/parity/deviations/F16-plugin-panic-no-effects.md @@ -0,0 +1,43 @@ +# F16: a plugin call that panics has no effects + +## TypeScript + +A TUI plugin's callbacks call the host directly, and nothing undoes a call: what a callback did before it threw +stays. A toast it showed stays on screen, a route it opened stays open, a request it sent goes out, a storage write +it made stays written. + +- Setup that throws: the cleanups it registered run, the plugin is listed as failed, and a toast says + `Plugin failed: ` (`packages/tui/src/plugin/context.tsx`, `setup` and the reconcile's failure toast). +- A command that throws: the keymap reports `command-execution-error` and the command returns an error result + (`@opentui/keymap`, `executeResolvedCommand`). The plugin stays active and is not listed as failed. +- A render that throws (slot, route, dialog): `PluginBoundary` draws nothing in its place and toasts + `Plugin: crashed in : ` (`packages/tui/src/plugin/api.tsx`). The plugin stays active. + +## Rust + +A plugin call runs as one unit, on every carrier (built-ins in process, Luau and the JS host), and through every +entry point: setup, commands, event handlers, fetch replies, wakes, slot and route mount handlers, and slot, route +and fence renders. + +- What the call asked for waits until it returns. When it panics, all of it is dropped: toasts, attention, routes, + navigation, dispatches, fetches, dialogs and copies. Storage writes still show to reads at once inside the call; + after a panic, each written key gets back what it held before, and a key that held nothing is removed. +- The dispose callbacks a panicking setup runs are part of that call, so what they ask for is dropped too. A setup + that fails without a panic keeps its effects, as in TS. +- A panic fails the plugin. It is not called again. Its commands leave the keymap, its slots and routes draw empty, + and its fences fall back to the code view. The plugin manager lists it as failed with ` panicked: `, + and the toast `Plugin failed: ` says so, as for an external plugin that did not load. Enabling it again starts + a new instance. + +Built-ins were not covered before this change: only their setup caught a panic. A panic in a built-in's command, +render or handler unwound into the host. + +## Reason + +JavaScript has no transaction, so TS keeps the effects because it cannot undo them. Rust queues every effect until +the call returns, so it can apply the rule the plugin design sets (synthesis 4.5: a panicking call's effects are +dropped as a whole). A half-done call cannot leave a toast or a dialog for an action that did not happen, or a +storage value that the plugin's own invariants never allowed (spike SC found the dialog "LEAKED EFFECT" on screen +after a panic). Rust also fails the whole plugin where TS keeps it active after a command or render error, which was +already the behavior for external plugins (O-42). A panic in Rust usually means the plugin's state is broken, while +a JS exception usually does not. diff --git a/packages/cli-rs/parity/deviations/F16-plugin-renderer-claims.md b/packages/cli-rs/parity/deviations/F16-plugin-renderer-claims.md new file mode 100644 index 000000000000..97083a2a7b6f --- /dev/null +++ b/packages/cli-rs/parity/deviations/F16-plugin-renderer-claims.md @@ -0,0 +1,64 @@ +# F16: renderer claims, and what a plugin's fence falls back to + +## TypeScript + +A TUI plugin can draw the Markdown fences of a language with `markdown.registerCodeBlockRenderer(language, render)` +(`packages/tui/src/plugin/api.tsx`). It cannot draw a tool call: the transcript's tool rows are the host's alone. + +- `render` returns a renderable, or `undefined` to leave the fence to the default code view (OpenTUI's + `createMarkdownCodeBlockRenderer`). +- A `render` that throws: OpenTUI's `MarkdownRenderable.renderCustomNode` destroys the default view it built and + throws again. No `PluginBoundary` wraps it, and the plugin stays active (read, not run). +- No call is timed, so a slow `render` makes the transcript slow. +- Disabling or reloading the plugin changes the merged renderers, and OpenTUI builds every Markdown block again + (`plugin/markdown.ts`): the fence shows the default code view, or the new build's output. +- While the message streams, `render` runs for each change of the block; a plugin keeps its own last good output if it + wants one (the LaTeX and Mermaid renderers do). + +## Rust + +A plugin can claim the calls of one tool, or the fences of one language, with a renderer claim of contract 2.0 +(`abi::claim`, phase Pr). Its view draws each claimed part with a keyed tree, as a surface does, and gets the part as +it is now: a tool call's state (pending, running, completed, error), whether it waits for a permission, and its input, +without what the call returned, which the view names by reference for the host to draw; a fence's info, code, and +whether the message streams and the fence closed. The host's own row is the fallback: + +- A view that returns `None` leaves that revision to the host's row: the tool view, or the code view. +- A view that panics fails the plugin (`F16-plugin-panic-no-effects`): the route mounts again, and every part of that + plugin shows the host's row, as when the user disables it. A toast says `Plugin failed: `. +- A view that returns a tree the host refuses leaves that part to the host's row for the rest of its mount (a keep the + host does not hold is first asked for once more as a whole tree) (a fence's mount also ends at a theme change, when Markdown builds the block again). The plugin stays active, + and its other parts keep their trees. +- A view that takes longer than the overrun limit (100 ms) is treated as every overrun is (synthesis 4.4): a built-in + in process leaves that part to the host's row and stays active, and the overrun is counted as a host bug; an + external plugin fails, and every part it claimed shows the host's row, with the `Plugin failed` toast. +- Disabling or reloading the plugin mounts the route again: every part it claimed shows the host's row, or the new + build's tree. +- While a part streams, its view runs at most once a frame, with the newest content, whichever row shows the part + until then; a view at the paint that declines or fails hands the part to the host's row in that paint. +- A claimed fence learns that it closed only once Markdown decides the closing line: the transcript gives Markdown the + text trimmed, as TS does, so a closing line at the end of the text so far is a pending line that may still change, + until more text arrives or the message completes. + +Where the two differ beyond that: + +- TS throws when a plugin registers a renderer for a language that resolves to no filetype, or registers one language + twice (`plugin/api.tsx`). A Rust or Luau claim takes both: a claim of an empty name matches nothing, and within one + plugin, as across plugins, the claim made last wins. A TS plugin's on the JS host throws as in TS. +- TS shows a thought as Markdown source (``), so no renderer runs in it. Rust draws thoughts + as Markdown with the plugins' fences, so a fence claim draws in an open thought too. +- A claimed call sits in the transcript's groups as the host's row does (E.8): in a folded group it is not mounted and + its view does not run; a call that waits on a permission shows below its folded group, drawn by the claim. + +A TS plugin's code-block renderer runs on the JS host as a fence claim (contract 2.x, step D), whose view answers +after the frame: the host's code view shows until its tree comes, and a renderer that throws falls back that part +alone, with a toast, where a Rust or Luau view's panic fails the plugin (`F16-v2-compat-layer`, "Code-block +renderers"; `P.8/good-fences` draws the same package in both clients). A Rust or Luau claim, and a JS one, take the +rules above otherwise; `parity/scenarios/Pr/fence.app.ts` compares a TS renderer with its Rust twin, a linked claim. + +## Reason + +Tool claims are the transcript half of the rich-plugin design (synthesis 4.11): a plugin draws a tool's calls, and +the host keeps its own rows as the fallback. The fallbacks follow the plugin machine of synthesis 4.14 and the budget +of 4.4: a panic fails the plugin as every panicking call does in Rust, and the faults that concern one part (a slow +view, a bad tree) fall back for that part alone, so one odd input does not take the plugin's other parts down. diff --git a/packages/cli-rs/parity/deviations/F16-plugin-storage-keys.md b/packages/cli-rs/parity/deviations/F16-plugin-storage-keys.md new file mode 100644 index 000000000000..958d539a1749 --- /dev/null +++ b/packages/cli-rs/parity/deviations/F16-plugin-storage-keys.md @@ -0,0 +1,27 @@ +# F16: a plugin's dotted storage key has a name of its own + +## TypeScript + +A plugin's stored key `key` lives in `//tui/plugin.{id}.{key}.json`. Plugin IDs and keys may hold dots, +so two plugins can name one file: `acme` with the key `cloud.token` and `acme.cloud` with the key `token` read and +write the same value. + +## Rust + +- A key with no dot keeps TS's name, so a TS and a Rust client share it as before. +- A key with a dot lives in `plugin.{id}..{key}.json`. No pair of an ID and a key shares a name with another + (`crates/plugin/src/storage.rs`). +- What TS stored under a dotted key is not read: its name `plugin.{id}.{key}` is also another plugin's dot-free key's + (`acme`'s `cloud.token` is `acme.cloud`'s `token`), so reading it would hand one plugin the other's value. A TS + client and a Rust client keep a dotted key apart. +- An ID or a key that starts or ends with a dot, holds two in a row, or holds a character other than letters, digits, + `.`, `_` and `-` cannot name storage: the read or write is refused. +- A plugin declares 128 keys at most, and a stored value is 256 KiB of JSON at most. TS bounds neither: opencodebar's + price list of 1 MB and prompt-search's index of every prompt (330 KB at 900 sessions) are refused, the write's + promise rejects, and the plugin goes on (CT-36). + +## Reason + +A plugin must not read or overwrite another plugin's storage by choosing its ID or key (review carbon-6), on the +native and the pipe carriers alike. The host also keeps what it read of each key, so what a plugin may make it keep is +bounded. diff --git a/packages/cli-rs/parity/deviations/F16-plugin-title.md b/packages/cli-rs/parity/deviations/F16-plugin-title.md new file mode 100644 index 000000000000..f80ca7d9ce13 --- /dev/null +++ b/packages/cli-rs/parity/deviations/F16-plugin-title.md @@ -0,0 +1,21 @@ +# F16: a plugin's terminal title is cleaned and cut to 4091 bytes + +## TypeScript + +A TUI plugin sets the title with `api.renderer.setTerminalTitle(title)`, OpenTUI's renderer method, and the title +goes to the terminal as the plugin wrote it. Only the client's own titles go through `setTerminalTitle` in +`packages/tui/src/util/renderer.ts`, which replaces each run of control characters with one space. + +## Rust + +A plugin sets the title with `Host::set_title`. The host cleans it as it cleans its own titles +(`opencode_ui::terminal_title`): each run of C0 and C1 control characters becomes one space. It then cuts the title +to 4091 UTF-8 bytes on a character boundary. Example: a plugin title of `"p0b long "` and 3000 `é` (6009 bytes) +sends `"p0b long "` and 2041 `é` (4091 bytes). Scenario: `P.0b/title-long` (P-PTY, Rust only). + +## Reason + +OpenTUI's Rust session refuses a title longer than 4091 bytes (`ESC ] 0 ; BEL` must fit 4096 bytes, +`session.zig` `title_bytes_max`), and the refusal fails the app's terminal session, which ends the TUI. A plugin +must not be able to end the client with a long string (reviews bigboi-2, carbon-3). A control character in a +title could end the escape sequence early, so plugin titles get the cleaning the client's own titles get. diff --git a/packages/cli-rs/parity/deviations/F16-project-plugin-approval.md b/packages/cli-rs/parity/deviations/F16-project-plugin-approval.md new file mode 100644 index 000000000000..9e7969f57f49 --- /dev/null +++ b/packages/cli-rs/parity/deviations/F16-project-plugin-approval.md @@ -0,0 +1,49 @@ +# F16: a project's plugin waits for approval + +## TypeScript + +The plugin host loads every directory under the `plugins` directories: the global config directory's, then each +`.opencode/plugins` from the project root down to the working directory (`packages/tui/src/plugin/discovery.ts`, +`localPluginDirectories` and `discoverPluginTargets`; `packages/tui/src/app.tsx` reads them at start). A plugin that a +cloned repository ships in `.opencode/plugins` runs its `setup` as the TUI starts, with nothing asked. + +## Rust + +A plugin found in a project's `.opencode/plugins` does not run until the user approves it +(`crates/plugin/src/loader/approval.rs`, `Loader::reconcile`). Until then it is listed `pending` in `/plugins`, a toast +says "Plugin needs approval: <directory>" once for each build, and it claims nothing: no command, slot, route or fence +of it takes effect, and it does not replace a built-in of its ID. Enter on its row asks "Run project plugin?" with what +would run, its directory and the start of the SHA-256 of its files, Decline active. Approve loads it at once; Decline +lists it `declined` and stops asking about that build; Escape, Ctrl+C, the header and the backdrop close the question +and leave it pending. A declined row can be approved later. An answer names the build shown: if the files changed +while the question was open, nothing is saved and the new build is asked about. + +A TypeScript plugin waits when the JS host runs it (Bun found, P7 and P8): the loader's one decision point holds it +back before anything of it reaches the JS host, which does not start for it. Its toast and question say "This project +wants to run TypeScript code in opencode's JS host" and show the module directory. A Luau plugin's say "This project +wants to run a Luau plugin inside opencode" and show the plugin directory. The artifact is the real path of the +directory and a hash of what it holds: each file's path and bytes, hidden ones and those in `node_modules` included, +links followed as Bun follows them. A save that changes nothing keeps the approval; a changed file, a moved one or a +reinstalled dependency asks again and stops the running plugin (its cleanup runs). What runs is a copy of exactly the +approved files. A file outside the directory that a TypeScript plugin imports (`../shared.ts`) is not part of the +approval: the approved code chose to import it. + +A decision is kept in `plugin-approvals.json` in the client's state directory, so it lasts across clients. The global +`plugins` directory and the entries of `cli.json` need no approval, also an entry that names a project's plugin +another way (a link). A server plugin's TUI part loads without approval only when the user's own configuration +(`cli.json`, the global opencode config) names its spec or path, or its path is under a global plugin directory +(O-162). Any other is held: a local path for the same approval as a project's plugin directory, keyed by the same +artifact, and a package for one keyed by its files and its install's lockfile (`F16-typescript-plugins-skipped`). + +The shared fixture `parity/machines/plugins.json`, machine `project`, has this deviation's two `xfail` rows: TS shows +the plugin at once (`A/yes/on/-`), where opencode-native lists it pending as the client starts and declined once the +user declines it. The Rust tests check the TypeScript and Luau plugins' rows +(`plugin_pipe::a_project_typescript_plugin_waits_for_approval`, `the_manager_asks_before_a_project_typescript_plugin_runs`, +and the Luau loader's tests). + +## Reason + +Decision O-125, 1 (rich-plugins synthesis 3.9): a Luau plugin runs inside the client, on the UI thread, with the +user's permissions, and a TypeScript plugin on the JS host runs with them too, so a repository the user clones must not +run code in it unasked. An approval by path alone would cover different code after the next `git pull`, so it names +the files' bytes too. A project cannot write `cli.json` or the global directory, so those stay as in TS. diff --git a/packages/cli-rs/parity/deviations/F16-typescript-plugins-skipped.md b/packages/cli-rs/parity/deviations/F16-typescript-plugins-skipped.md new file mode 100644 index 000000000000..f21362e19ec0 --- /dev/null +++ b/packages/cli-rs/parity/deviations/F16-typescript-plugins-skipped.md @@ -0,0 +1,146 @@ +# F16: TypeScript TUI plugins run by default on the JS host when Bun is found; Luau plugins load beside them + +**TypeScript.** The plugin host (`packages/tui/src/plugin/context.tsx:290-420`) loads every `cli.json` +`plugins` entry that names no built-in, every directory under the `plugins` directories, and the server's +TUI plugins, then runs each one's `setup` beside the built-ins. + +**Rust.** The registry (`crates/plugin/src/lib.rs`, `docs/plugin-abi.md`) applies the entries that select +built-ins (`-<id>`, `<id>`, `*`, `<prefix>.*`) exactly as TS does. The loader (`crates/plugin/src/loader`, +`docs/plugins.md`) discovers the same targets as TS: the subdirectories of the `plugins` directories and the +`cli.json` entries that name no built-in. A directory with a `plugin.toml` is a Luau plugin, and loads with hot +reload. A native plugin library (`plugin.so`, `.dylib`, `.dll`) is listed `Skipped`: "opencode-native does not load +native plugin libraries". Any other directory target is a TypeScript plugin. By default it +runs on the JS host (O-166, which reverses O-151's opt-in), a Bun process the client starts (`docs/plugin-abi.md`, "The JS +host"), through the V2 compatibility layer (P8), which gives a V2 `{ id, setup }` module the context +and the modules TS gives it. Bun is looked for only when the first TypeScript plugin needs it (`OPENCODE_BUN`, the +local server's opencode binary run as its own Bun, the opencode bundled beside the client, or `bun` on the path), so a client with none runs no process for +it. Otherwise the registry lists it with status `Skipped`, its slot claims, commands and routes absent: +- `OPENCODE_PLUGIN_JS` set to `0`, `false` or `off` (any case) turns the JS host off: "TypeScript TUI plugins run on + the JS host, which OPENCODE_PLUGIN_JS turns off: unset it to turn the JS host back on"; +- a build without the cargo feature `ts` (on by default, ts-feature) has no JS host: "this build of opencode-native has + no TypeScript plugin support (built without the ts feature)"; +- with no Bun found: "TypeScript TUI plugins run on the JS host, which needs Bun: neither the server's opencode nor bun + on the path runs it; install Bun 1.4 or newer, or set OPENCODE_BUN to its absolute path". + +`scenarios/F16/ts-plugin-loads.pty.ts` drives the default: a plugin in the global `plugins` directory loads in both +clients, with no variable set. + +Plugins named by npm package run on the JS host too, from the package cache TS installs into, and only from there: +opencode-native installs and fetches nothing. TS's client prepares a `cli.json` entry with `Npm.add` +(`packages/cli/src/commands/handlers/default.ts:143`), which installs a package the cache lacks and returns an +installed one as it is (`packages/util/src/npm.ts:263-268`), and a server plugin's TUI part with `Npm.resolve` +(`npm.ts:358-366`), then loads `Host.resolve(target).tui` (`packages/tui/src/plugin/context.tsx:652-671`). The Rust +loader (`crates/plugin/src/loader/npm.rs`) finds the package as `Npm.resolve` does: under +`<cache>/npm/<key>` (`npm.ts:148`, `<cache>` the global cache, `$XDG_CACHE_HOME/opencode` else `~/.cache/opencode`), +the key being the spec's text and not a version it resolves to (`npm.ts:60-97`: `<name>@<spec>` for a version, range or +tag, `<name>@latest` for a bare name, `git-<slug>-<hash>` for a git spec, else the spec), in the generation with the +largest number (`npm.ts:149-162`), as `node_modules/<name>` (`installedName`, `npm.ts:173-183`); so the same spec +picks the same directory, and a range is never matched against another version installed under another key. The +classification is `npm-package-arg` 13 and `hosted-git-info` 9 ported: hosted git URLs (HTTPS, SSH, SCP +`git@host:path`, `www.`), `name@<hosted URL>`, GitHub's `user/repo` with a `#committish`, sourcehut's `~user/repo`, +and tarballs keyed by their text. `plugin_npm.rs` checks 95 specs against TS's own `Npm.cacheKey`. Unlike TS, only a +spec TS's `parse` classifies (a version, range or tag of a named package, or a git spec) is looked up (carbon +`jsnpm-4`). A tarball, a URL, an alias or a path keyed by its text names no package, and such a key can lead out of the +cache, as `existing@1.0.0/../../x` does in TS. The name joined under `node_modules` must be a package name (`name`, +`@scope/name`, as `validate-npm-package-name` takes it), so a `dependencies` key that is absolute or `..` is refused. +The package's real path must lie under the cache's `npm` directory, so a link out of it is refused too. The JS +host loads its `./tui` export, as for a directory. The TUI module must be one of the plugin's own files (carbon +`jsnpm-3`). TS's client imports whatever `<name>/tui` resolves to (`packages/plugin/src/host.ts` `resolve`); TS's +server checks only its own server entry (`FSUtil.contains`, `core/src/config/plugin/source.ts`). The JS host refuses a +module whose real path is not inside the plugin directory's real path, for every plugin: a `package.json` `name` of +`../../x` or an absolute path resolves anywhere. A confined (approved project) plugin's own resolution from its root is +also refused there. Either way the plugin fails, saying why. A package's `<name>/tui` resolves inside the package, by +self-reference or from the `node_modules` it sits in, so no legitimate plugin is refused. "Inside" is TS's own +`FSUtil.contains` test, `path.relative` between real paths (`realpathSync.native`, with no verbatim prefix), for the +module and for each confined root (carbon `recheck-3`, `pipe/compat/paths.ts`). So on Windows a drive letter's case, an +8.3 short name or a `\\?\` prefix on either side does not read as outside. The loader also hands the JS host real +paths without that prefix. Like any global or `cli.json` plugin a `cli.json` package needs no +approval, and its build identity is computed off the UI thread (FT-2). As TS resolves a loaded package once a session +(`context.tsx:663-665`), the directory a spec resolved to stays while the spec is a target: a later install (a new +generation) does not move it, and a package is not watched. A `cli.json` entry whose key the cache does not hold, where +TS installs it, is listed `Skipped` with the reason "not in opencode's package cache, and opencode-native installs +nothing: run `opencode-native plugin add <spec>`", and named so in the notice below. The TUI parts of the server's +plugins (`GET /api/plugin`, active with `features.tui`, by the package target or the local path the server reports, +TS `serverTuiPlugins`, `context.tsx:96-103`, `301-305`) load the same way, in TS's order: the discovered directories, +then the server parts, then `cli.json`; one the cache does not hold is left out, as TS leaves out an optional target it +cannot load (`context.tsx:362-363`). + +Unlike TS, which asks for no approval at all, a server part loads without approval only when the user's own +configuration names it (O-162, carbon `jsnpm-2`). `GET /api/plugin` carries no provenance, and a project's +`opencode.json` can name a package (a `.tgz`, a git spec) with no server export, so the server runs none of its code. +So the client reads the user's layers itself. They are the `plugins` entries of the global opencode config (`opencode.json`, +then `opencode.jsonc`, in the global config directory, in the order TS's `loadDirectory` reads them), then those of +`cli.json`. Each is a string or the `package` of `{ package, options }`. The entries fold in order, as TS's server folds +its operations (`core/src/plugin/supervisor.ts` `resolve`, carbon `recheck-1`): +- a plugin directly under a global `plugin` or `plugins` directory starts named, as discovery adds it before any + entry; +- an entry that is a part's spec, or names its path, names and enables it; +- a selector (`*`, `<prefix>.*`, `opencode.…`, or the part's ID) enables it again, without naming it; +- a removal `-<selector>` disables it, when the selector is the spec, the path or the plugin ID the server reports + (`selects` is TS's `matches`). + +A part is vouched for when it is named and, after the last entry, enabled. TS removes by plugin ID only. Matching a +removal by spec or path too can only withdraw a vouch, so the client errs toward asking. A `cli.json` change +refolds them at once. +- **Package:** it is named by an entry that is its spec exactly as written, which is the text TS's server reports as + `source.target` (`core/src/config/plugin/source.ts` `parse`, `plugin/module.ts` `source`). The same package at + another version, or one named only by the project's configuration (`opencode.json`, `.opencode/opencode.json`), + waits for approval. A managed, explicit (`OPENCODE_CONFIG`) or `OPENCODE_CONFIG_CONTENT` layer vouches for + nothing. +- **`cli.json`'s version of a package wins.** A server part for a package that a `cli.json` entry names, by its npm + name or, for a git spec, by its installed name, is left out at whatever version (carbon `recheck-2`). TS folds + `cli.json` after the server's parts, and `desired.set` keys by plugin ID, so `cli.json`'s version replaces the + server's (`tui/src/plugin/context.tsx:289-309`). The client decides by package name before anything loads. So + `cli.json`'s entry never fails as "plugin ID … is already registered" behind the server's, and the server's part is + not asked about. Two different packages with one ID still follow P.4's rule: the first one loaded keeps the ID. +- **Approval of a package:** it is keyed by the package's artifact: the SHA-256 of its own tree, folded with its + install's `package.json` and `package-lock.json`, which name its dependencies (`approval::install_root`). Once + approved it runs where it is, unstaged and unconfined: its dependencies sit beside it in the generation (about + 300 MB for a field-test plugin), so a copy of it could not import them. +- **Local path:** the path a server reports is made a real path: canonicalized, without the `\\?\` verbatim prefix + Windows gives (carbon `recheck-3`). + - **Vouched:** a direct child of a global plugin directory (the reported path's parent is one; a link there + counts, nothing deeper such as its `node_modules` does), or a path an entry of the user's configuration names + (TS resolves `./`, `../` and `file://` against the config file's directory). + - **Otherwise:** it is held as a project's plugin directory is, staged and confined, keyed by the same artifact. + - **Merging:** a part that names a target already found under any spelling (a link, another case) is that target: + one target with one decision. A `cli.json` entry for the same directory replaces the server's part in its place, + with its options, compared by real path, as TS's `mergePluginTargets` merges them. A server part never stands in + for a project's plugin the way a `cli.json` entry does (no alias). +- **Native build:** a server target never opens one. A part whose directory holds `plugin.so` (`.dylib`, `.dll`), or + that names the library itself, is left out, as TS leaves out a part with no TUI entry. +- **Remote server:** local-path parts are dropped, unless the server is on this machine: one the client started or + the service (no `--server`), or a `--server` URL whose host is a loopback address or `localhost`. A loopback port can + be a tunnel to another machine. A path it reports then is held for approval like any path the user's configuration + does not name. + +`F16-project-plugin-approval` covers the approval itself. With the JS host turned off, an npm entry and a server part are listed as a directory is, +with the JS-host reason, each server part by its package target or path beside the server plugin's own row. +`scenarios/P.8/cache-cli.app.ts` and `cache-server.app.ts` drive both on each side from one cache holding a pinned +tarball: equal screens and requests. `crates/tui/tests/all/plugin_npm.rs` checks the keys of 34 spec forms against +TS's `Npm.cacheKey`, and the not-installed reason and notice. + +Where TS draws these plugins, the Rust client tells the user once a run, in the host's notice lane (a warning toast that +stays, with "Open plugins", as its "Plugin failed" toast is told; no plugin's toast hides it): "N TypeScript plugins +not loaded", then one line per reason naming the plugins, then "Run /plugins to view details." It waits for the server's +plugin list, so the server plugins' TUI parts are in the same notice; one found later (a config change, a new +directory, a new server plugin) is told then, once. `/plugins` lists each as a TUI row `skipped`, named by the `name` of +its directory's `package.json` where there is one, else by its target, with the reason as its error; the log has +`plugin <target> skipped: <reason>` once for each. `scenarios/F16/ts-plugins-skipped.pty.ts` drives it: a server plugin +whose TUI part TS loads and Rust, with `OPENCODE_PLUGIN_JS=0`, lists as skipped, with the notice. + +What runs on the JS host differs from TS as `F16-v2-compat-layer` says, and one found in a project's +`.opencode/plugins` waits for the user's approval first (`F16-project-plugin-approval`). It is a second timing tier: a +tree, an effect and a read arrive a paint late or more; a node's layout (`getLayout()`, R1 to R3) is what the host laid +out, a frame late (`F16-v2-compat-layer`, "Layout reads"); and a handler that throws fails the plugin with none of its +effects (as `F16-plugin-panic-no-effects` does in process), where TS keeps them and the plugin. A key reaches a handler +a round trip late: a key a plugin's command declines goes on, as in TS, held at most 50 ms while the JS host answers +(CT-8, CT-19; `F16-v2-compat-layer`, "A key a command declines" and "The hold's bound"); a paste or a press the plugin +declared is the plugin's; a listener of every key only hears; and a key that switches a mode holds the next ones until +its answer applied (`hold`). All TypeScript plugins share one process: when it ends (a plugin hung, crashed or flooded +it, or it went over its memory), every other plugin is set up again with new state, where TS's plugins share the TUI's +process and die with it. The calls the process never started run once on the next one; the one it ran is not run again. + +**Reason.** User decision Q5: external plugins become Rust plugins; P.4 loads them as native shared +libraries (decision O-42). The Rust client cannot run TypeScript in its own process; O-125 and O-128 run today's V2 +plugins on a JS host beside it, as the second tier, where their features map. diff --git a/packages/cli-rs/parity/deviations/F16-v2-compat-layer.md b/packages/cli-rs/parity/deviations/F16-v2-compat-layer.md new file mode 100644 index 000000000000..510bae014498 --- /dev/null +++ b/packages/cli-rs/parity/deviations/F16-v2-compat-layer.md @@ -0,0 +1,292 @@ +# F16: a V2 TUI plugin on the JS host, through the compatibility layer (P8) + +**TypeScript.** A `{ id, setup }` module's setup gets the V2 context (`packages/tui/src/plugin/api.tsx`), and its JSX +renders through `@opentui/solid` into the TUI's own renderables, in the TUI's process. Its reads are the TUI's store, +synchronous. A module under `node_modules` (an installed package) compiles with Bun's JSX transform, whose props are +read once as the component is created; a local module compiles with Solid's compiler, whose props follow their signals +(`@opentui/solid/scripts/solid-plugin.js`). + +**Rust.** The JS host gives the module the same context and the modules TS gives it (`@opencode/plugin/tui`, Solid, +`@opentui/solid`, `@opentui/core`), from the compatibility layer (`crates/plugin/src/pipe/compat`). Its JSX renders with +Solid's universal renderer into plain nodes, which each view reads into a contract 2.0 tree for the host to draw. The +four published packages P8 runs draw cell for cell as TS draws them at the checkpoints of `parity/scenarios/P.8` +(settled pictures, not every state or the first frame after each event). The JS host is on unless +`OPENCODE_PLUGIN_JS` is `0`, `false` or `off` (O-166). What differs: + +- **Every module compiles as an installed one**, with Bun's JSX transform: a local TSX plugin that relies on Solid's + compiler for props that follow signals renders them once, as the same plugin installed from npm does in TS. A + function child, a `ref` and a memo follow their signals as in TS. +- **Reads are snapshots** the host pushes. A render that read one the host has not pushed yet renders again once it + came, at most three times; after that a read that is late shows in a render only if the plugin's JSX follows it. A + setup gets the route, `info` and the route's session at once, and a call the route while the plugin does not watch + it; other first reads in a handler (tabs, the model, a panel's state) answer before their snapshot came. A plugin + watches at most 128 reads; one no live mount or store holds goes when a new one needs its place, and one the host could not + answer rejects its `sync` and is reported once. `data.session.sync` and `message.sync` answer what the host has + loaded; they do not load a session the host has not. A session, `data.session.get` and `status` come from the one + read of every session the host has loaded, with no read a session (CT-36: opencode-sesh asks the status of each of + 900 sessions, which churned 1,800 watches past the bound). One missing from it is read from its own read where there + is one, the route's session seeded at setup and one `sync(id)` watches; any other session the host has not loaded + reads as nothing and `idle`, also while it runs, where TS's status map holds every running session. +- **An async setup that waits on the host** (a `client` call, a `sync`) hands the plugin to the host at its first such + wait, with what it registered so far; what it registers after is taken as a reload of its registrations, and a throw + after fails the plugin, where TS keeps the plugin inactive until setup resolves. +- **A command a component registers** (`keymap.layer` in a render) runs nothing once the component ended, but the + host lists it 250 ms longer, unless a new mount registered it again. A registration after setup (such a layer, a + store made late, the scroll keys a dialog with a `<scrollbox>` registers) reloads the plugin's registrations: its + open dialog stays and acts, as in TS (`P.8/sidebar-prompt` `kept`), and so does its session panel, which mounts again from the new registrations (CT-29: opencode-self-improvement's `/memory` panel registers keys as it renders, and the reload closed it; `plugin_compat::a_session_panel_stays_open_across_a_reload`). Each mount the + reload ends and begins again keeps its components, which do not run again, as TS takes a registration without a + remount (CT-21: opencode-navigator named a binding anew on each mount, `P.8/navigator`), and the field the plugin + focused in it takes the host's focus again; + a mount begun 250 ms after its end renders anew. A disposed `ui.slot` or `ui.router.register` draws nothing but stays registered until the + next reload, so a disposed `replace` still holds its slot. A layer's `enabled`, its `mode` (base unless `global`; a + mode of the plugin's own, such as `modal` or one it pushes, binds its commands everywhere, and they decline unless it + is the input mode, CT-31: opencode-usage-report's `r`, `P.8/usage-report-keys`) and + a command's `enabled` and slash `aliases` are kept (`P.8/file-browser` and `P.8/context-grid` `slash`); its + `priority` and `bindings` are not mapped. A layer's and a command's `enabled` are the command's state on the host + (contract ergonomics 2.5): a disabled command stays registered, binds no key and is in neither the palette nor the + slash list, as TS binds no disabled command, and the layer follows what they read, telling the host each change + with no reload (opencode-command-hotkeys' palette entries off a session). Its `target` holds + its commands to the plugin's focus in that node, elsewhere they decline (CT-20: @slkiser/opencode-quota's window + Escape kept Goal's select open), but the focus is the layer's record of what the plugin focused or the user edited: + the host's focus by a click or Tab does not reach it, so a target the user clicks into still declines. A command + without an `id` is named by what the host lists of it (its layer's mode, its keys, title, slash name and the rest) and + its place among the layer's commands that list the same, so a component that mounts again names it as before and does + not reload the plugin again (CT-1). Two live commands that list the same in every part are one, the newest running, + as the topmost layer's runs in TS. A plugin whose registrations change more than 64 times within 5 s, counted for + the plugin across its builds, as one that names a command anew on each mount does, fails with "it changed its + registrations … and never settled", where TS would keep it running. A fetch the plugin waits for across a reload + settles once (CT-1). +- **A key a command declines** goes on, as in TS. The JS host answers after the frame, so a key that runs a plugin's + command holds the keys after it until the JS host answered, as TS runs a command before the next key. A command + that returned `false`, whose `enabled` says no, or whose layer ended declines, and its key is routed again first, + past that command and any that declined it before, to the host's own keys and the composer (CT-8: linear's `r`, + `P.8/linear-keys`; CT-19: rundev's space and Enter, `P.8/rundev-keys`; `P.8/host-keys` has the same keys with no + plugin). The key reaches the composer a round trip to the JS host later than TS's. A disabled command binds no key, + so its key is never held (linear's `r` while its dialog is closed; `plugin_compat::a_disabled_commands_key_is_not_held`); + the hold stays for a command that is enabled and declines as it runs (rundev's keys, which return `false`), and for + an `enabled` that reads what the layer does not follow, which it asks again as the command runs. Keys no JS command + binds are never held. A command the palette or a slash runs declines nothing. +- **The hold's bound**: a hold lasts at most 50 ms (`Config::hold`). If the JS host has not answered by then, the + key that ran the command goes on as declined, first, then the keys after it, and the log says so once. A late + answer still applies its effects but does not put the key back, so a command that would have taken the key after + the limit also typed it. Declined rather than handled, so that no key is lost behind a slow JS host, and none lands + after the keys typed since (a late Enter after more text). Until the JS host sends anything again (its + acknowledgement of a read aside), a key that runs a JS command is not held: it goes on at once, as declined, and its + command runs late, in its order. A + JS host that ends, or a call it never reads, releases what it holds at once, its bound key as declined, and such + a call is not sent again to the next JS host (`plugin_compat::a_stalled_js_host_holds_keys_no_longer_than_the_limit`, + `plugin_compat::a_js_host_that_ends_while_keys_are_held_releases_them`). +- **`data.listen`** hears every event as `{ details }`, through one subscription of the plugin to each type the generated + client names (`EventSubscribeInput`), made with its first listener; a type the client does not name, as a plugin's + own `rpc.*` events, never comes. The streaming deltas (`session.*.delta`) do not come, as the host's store sends no + plugin a delta. +- **Server RPC** (CT-4): `@opencode/plugin/rpc` gives `Rpc.define`, and so does `@opencode/plugin/effect`, whose other + names (the server's Effect schemas, `Agent`, `Tool` and the rest) link but are undefined (CT-23: + opencode-superagent's TUI); and `client.rpc(definition)` calls each method as + TS's client does (`/api/rpc/<id>/<method>`, the output answered), with its events heard as the host's events of type + `rpc.<id>.<name>`. An error the server gives an RPC reaches the plugin as the client's error, not as TS's + `{ type, message, data }`, as the host's fetch answers an error as text. Every module the layer serves is also + `opentui:runtime-module:<specifier>`, encoded or not, as OpenTUI's runtime registry names it (CT-3). +- **`client` replies** whose JSON is up to just under 6 MiB (6,290,082 bytes at the default limits, as its parts in + base64 and their envelopes fill the JS host's 8 MiB overflow) arrive whole, in parts of a frame each, while nothing + waits before them; behind a backlog, less (CT-5). One past that fails with "the reply is N bytes, more than the JS + host takes", where TS has no limit. +- **Elements** (CT-2) are event emitters, as OpenTUI's renderables are: `focus()` and `blur()` of a `<scrollbox>` are + the host's focus of the node, any node emits `focused` and `blurred` as OpenTUI's do, and other events are heard and + never come. A scroll box's `scrollTop`, `scrollHeight` and `viewport` are the host's state of the scroll once it came + (before, the viewport's height is `Infinity`, so a plugin scrolls nothing by it), and `scrollTo` and `scrollBy` are + the host's scroll verb. +- **Layout reads** (contract 2.x proposal, addition 1, no wire change). A node's `getLayout()` (Yoga's six fields; + `left` and `top` against its parent, which is measured only if they are read), `width` and `height` are where the + host laid it out (`Read::rect`); the node carries an id from the view after the plugin first asked. OpenTUI answers + at once, where the host's layout reaches the JS host a frame later, so: + - **R1**: a slot mount shows its placeholder and tells the JS host of the mount once a solve laid that out, so its + first input is its room (`sidebar.content`'s 37 columns), not the terminal's size that stood in. The surface views + again after its first solve also when the room equals the terminal's size. + - **The room rule**: before the host laid a node out, a top node of the mount answers its own width, `"100%"` of the + room or a number; any other node answers zero, as OpenTUI's do before their first pass. It is exact where the + slot's container is a column; in a row (`prompt.footer.status`, `home.footer.status`) a `100%` top node answers + the container's width, and the push corrects it a frame later. opencode-tokscope's sidebar measures itself within + ten timer ticks and drew nothing (`P.8/tokscope-sidebar`). + - **A fixed size**: once laid out, a node's own numeric `width` or `height` is what it answers, as the host lays it + out at that (it does not shrink); the host's rect is of the tree before the plugin set it, a frame late. + - **R2**: the rects the plugin watches are compared and pushed when a frame's geometry is final, after each solve + that laid one of its mounts out, in place of a timer after each tree. `onSizeChange` runs as the laid-out size + changes; a 0×0 read (a node the host has not laid out yet) is no size, as OpenTUI never reports one. + - **R3**: a push may draw, lay out and push again, one round a frame. After 8 frames in a row of changed rects with + no other cause (a call or a new input of a mount), the plugin's pushes wait for one, and the log says so once + (`plugin_compat::a_layout_that_follows_its_own_size_is_held`). + A plugin that reads a nested node within a few timer ticks still loses the race. Other renderable members are + undefined. +- **Fields** (CT-11): an `<input>` or `<textarea>` hears the host's field: `onInput` each edit, `onChange` and + `onSubmit` its submit, and `value` is what was typed. An edit gives it the plugin's focus. A field's `focus()` and + its `focused` prop (one microtask after it changes) are the contract's focus of the field (contract 2.x, + `focus-input`), as the request of the mount whose render holds it, whichever call runs: what the user types goes + into it, as in TS (`P.8/file-browser`'s `typed`). A field the mount's tree does not hold yet takes the focus if the + mount's next revision shows it, and the focus is dropped if that revision does not (nor does a later one apply it); + a mount that closed takes nothing. A field in a dialog of the plugin's own is in that dialog's mount and takes the + focus as in TS (CT-37, `P.8/sensitive-encrypt`'s `typed`); a field in no mount (removed from its mount, or never + added) has no focus on the host, which is reported once. While the plugin's focused + field sits in a route, a panel or its dialog, + each key there is its `onKeyDown`, through a listener layer of the surface, which takes it with `preventDefault` + (contract gaps 2); one it does not take goes on to the host's field and keys once the JS host answered, as below. + Only an `onKeyDown` that can take a key holds one for the JS host's answer (below); a field without one, or with one + that only hears keys, holds none, and its typing goes to the host's field at once (cg2-1). A key it declines goes past + the plugin's own commands, which TS's keymap ran before the field's `onKeyDown`, in the state before it ran. A + `<scrollbox>` draws its scrollbar while its content overflows, in OpenTUI's colors, as TS's does + (`P.8/sidebar-prompt`), and its `focused` prop gives it the host's focus, so the arrows scroll it. A field draws its + placeholder and its colors as the host's (`P.8/file-browser`), and the plugin's text without a color is the host's + white-ish text, where TS's is white (`P.8/sensitive-encrypt`'s panel). + Other field events (`onPaste`, `onKeyUp` and the rest) are reported once. +- **Keys** (CT-11): `renderer.keyInput` is an emitter whose `keypress` listeners hear each key as an OpenTUI key event, + through one global listener layer the plugin registers with its first listener (a listener after setup reloads its + registrations once). `useKeyboard` listens on it while its component lives. A listener takes a key with + `preventDefault`, as in TS (contract gaps 2). TS runs listeners synchronously and the host cannot wait, so a + handler says up front that it can take a key: its source calls `preventDefault`, or it took one before (through a + helper; that first key went on, where TS stops it). While such a handler listens, the host holds each key but what + the user types into the composer or another text input, and the input after it (pastes too), until the JS host + answers, as for a key a command may decline; a key not taken goes on then, below this listener, and no listener + hears it twice. So such a key is a round trip later than in TS, held at most the hold's limit; a key typed into a + route that closed meanwhile goes with it. Typing in a text input, and every key while no handler can take one, is + only heard, and goes on at once (cg2-1, cg2-2, cg2-5): a listener that would take a typed letter from the composer + does not (FT-14 keeps a global bind off typing too). It hears keys in + the base mode only, and none while another plugin's overlay has the focus, as the contract's global layer holds. + `keyrelease` and `paste` never come. +- **Dialogs**: `select`, `confirm`, `prompt` and `alert` are the host's, each settled once as TS's are (an answer; + `undefined` on escape, the backdrop, another plugin's dialog, `clear()` or the plugin's end). A select's `search` + lists its rows for each query as TS's does (flat, in its order, the category as the footer), but the rows change + once the JS host answered the query, not in the keystroke's own frame (`P.8/select-search`). A `dialog.set` right + after `dialog.select`, `alert` or `confirm` sizes and centers it as in TS (contract 2.x, addition 4, + `P.8/session-time`); one after the dialog showed is reported once. A prompt's `value` and `description` are the + contract's (`P.8/session-manager` `rename`). A select's `actions` are the contract's footer actions, with their + keys, side and selection, and the select stays open as one runs (`P.8/session-time`'s timeline); past 4 the rest are + reported. `ui.dialog.show` shows the plugin's JSX + as the body of the host's dialog (contract ergonomics 2.7): a mount of the plugin's dialog surface, with only the + dialog's frame around it, as TS's, in the size and place `ui.dialog.set` gives, which changes it in place. Its + `<scrollbox>` scrolls and its `<input>` is a field (`P.8/sidebar-prompt`, `P.8/sensitive-encrypt`); a reload of the + plugin's registrations mounts it again and keeps it open, and a render that throws closes it. +- **Pointer**: `onMouseDown`, `onMouseUp` and `onClick` on a box or a text run as a click of the node, with an event + that has its kind and the left button but no position; a node with both a press and a release handler keeps the + press (reported). `onMouseOver`, `onMouseOut`, `onMouseScroll` and `onMouseDrag` are not mapped. +- **Absolute nodes**: a render of absolute nodes alone takes its mount's box out of the flow to fill the slot's parent, + as TS's `<Slot>` is a fragment; OpenTUI's Rust layout has no way back, so the box stays absolute if a later render + of the claim is in the flow. +- **Not mapped**, each reported once a plugin in the client's log, by the plugin's name (`plugin <id>: <id>: <feature> + is not supported by opencode-native yet`), and doing nothing (a list answers empty). The report is no toast: a toast + covered the plugin's own surface until it timed out (`P.8/file-browser`'s field focus, navigator's `minWidth`), which + TS never shows and a checkpoint saw or not by the machine's speed. Not mapped: `data.project.permission`, the location's `mcp.resource` list, `renderer` members other than + `requestRender`, `width`, `height` and `keyInput` (a method of OpenTUI's `CliRenderer` does nothing, an emitter's + returns the renderer and an async one a resolved promise, so `P.8/quick-switch` draws as TS), + `usePaste`, `onFocus`, `onBlur`, `useSelectionHandler`, `onAnimationTick`, `useTimeline`, `alignSelf`, + `flexBasis`, and a box's `flexDirection` of `row-reverse` or `column-reverse` (it draws as `row` or `column`), + `justifyContent` of `space-evenly` (as `flex-start`) and `alignItems` of `baseline` (as `stretch`). `minWidth` and `maxWidth` are the layout's `min_width` and `max_width`. `ui.panel.open`, `ui.tabs.*` and `ui.model.variant.set` answer whether they did, as in TS. + A session panel's input has `close`, `toggleFullscreen` and `focus` (CT-38), which act as requests of the panel's + mount while it lives (one kept past it does nothing) and follow it across a reload of the registrations; + `toggleFullscreen` toggles what it asked for last, which the next draw sets to what shows. The contract has no focus + of a pane, so `focus()` gives the focus to the panel's first field or scroll that shows, which moves the input to the + panel, and in a panel with neither does nothing (reported). + `data.project.permission` has no client call to load it through and would need a contract read; the location's + `mcp.resource` list is not mapped yet, though it could load through `client.mcp.resource.catalog` as those below. + A `<select>` draws as OpenTUI's renderable draws it, rows of the options that fit with the selected one marked + `▶ ` on its background (CT-14: @cleocode/goal's sidebar, `P.8/goal-select`); its keys, `onChange`, `font` and + scroll indicator are not mapped, as the contract's focus does not reach it. The intrinsics without a contract node + (`tab_select`, `ascii_font`, `diff`, `line_number`, `image`, `video`) throw as they are created, which the plugin's boundary reports as TS reports a crash in a render + (`<id> crashed in slot <path>: …`). `<Portal>` draws its children in a box that fills the room of the mount that + renders it, over the rest, which its `ref` gets as the container (CT-10): in the `app` slot that is the screen, as + TS's renderer root (opencode-landstrip's pane); elsewhere it is the slot's room, not the screen, and its `mount` is + not followed (opencode-sesh's menu draws over its sidebar section). Drawing over the whole screen from another slot + would need the contract to let a mount place a node outside its room. The TS TUI's own `<spinner>` is the contract's spinner, in the host's frames, + pace and color; its `frames`, `interval`, `color`, `backgroundColor` and `autoplay` are reported (CT-14). + `renderer.root` takes nothing, and `renderer.currentFocusedEditor` and `currentFocusedRenderable` are undefined, + each reported as it is read, so a plugin that checks they exist starts (CT-17: opencode-dollar-skills). What such a + plugin then does with the composer's editor (opencode-vim-navigation's modal editing, dollar-skills' completion) + would need the composer as a renderable a plugin edits, where the contract has only `ComposerEdit`. The root's + `findDescendantById` finds nothing, as it holds none of the host's renderables, so a plugin that finds a message's + renderable to place its own beside it starts and draws nothing there (CT-40: recap's card after the message it + summarizes); that would need a mount the contract anchors in the transcript. +- **Code-block renderers** (contract 2.x, addition 3, step D): `markdown.registerCodeBlockRenderer(language, render)` + is a fence claim of the host's, registered by the filetype the language resolves to (OpenTUI's own maps and + `infoStringToFiletype`); a second registration of a filetype by the plugin throws, as in TS, and across plugins the + last wins, an external plugin after the built-ins (good-fences takes `latex` from the built-in LaTeX, as in TS). + `render` gets the fence as OpenTUI's Markdown gives it (`lang`, `text`, `raw`) and a context whose `defaultRender()` + is the host's own code view of the fence (`Node::Fence`), whose `bg` it may set, also its code's; any other write to + it is reported. It returns a renderable built with `new` (below), or nothing to keep the host's view. + - **After the frame**: the renderer runs on the JS host, so a fence shows the host's code view in the frame it + first shows, and the plugin's tree once the JS host answered, a frame or more later; the transcript may shift + once a fence (good-fences adds the label's row). TS draws the plugin's from the start. While the fence streams its + code follows in the frame, and a tree that drew the code itself is a round trip behind (`P.8/good-fences`). + - **A renderer that throws** falls its part back to the host's code view for the part's mount, with one toast + (`<id> crashed in code block <language>: …`); the plugin stays active, where TS throws on out of Markdown's build. + - **Bounds** (host policy): a plugin holds 256 claims (good-fences registers about 60; TS has none); a fence whose + code is over 256 KiB keeps the host's code view, logged once a plugin; a part waits, the host's view showing, + while the queue to the JS host is backed up, and is sent as it drains. What a renderer asks the host for as it + draws (a toast, a fetch) is dropped, logged once: a claim's view reads only, on every carrier. + - The renderer's context has no `syntaxStyle` or `treeSitterClient`; a click on a node of its tree runs nothing + (reported), as a claim has no handler. +- **The `data` collections the contract has no read of** (`data.project`, `data.shell`, `data.session.permission`, + `data.session.form`, the location's `agent`, `command`, `reference` and `skill` lists) load through the plugin's + `client` over the host's fetch: as the plugin first lists or syncs one, on `invalidate`, and on each event that + changes it (`agent.updated`, `permission.asked`, `form.replied`, …); `form.reply` and `cancel` go through + `client.session.form` and load the list again. A list answers `undefined` until its load came, where TS's store + answers what it holds, and nothing keeps it live between events (`P.8/skills-data`: opencode-skills-tui's skills). + At most 4 loads of a collection run at once and at most 256 keys wait, each once: a key asked for while it loads loads + once more after it, so an older answer never comes after a newer one, and a waiting key past the 256 gives up its + turn until it is listed again. An event that names a session reloads only that session's permissions, and a + location's forms load once for all its sessions (CT-36: agents-view and op1/threads list each of 900 sessions' + permissions and forms, 1,800 fetches at once). A live store would need the contract to + give a plugin these collections as reads. +- **OpenTUI's exports**: the layer exports every name the installed `@opentui/core` and `@opentui/solid` export, so a + plugin's import of one links. Beyond the colors, attributes, small data (enums, border sets), Solid's renderer, and + styled text (`StyledText`, `t`, `fg`, `bg`, `bold` and the other attribute helpers, `link`, `stringToStyledText`, + which a text node's `content` draws chunk by chunk, CT-27: @encoredigitalgroup/opencode's panels drew + "[object Object]"; its tarball is proprietary, so a layer test pins it) the layer gives, each is inert: a class constructs, extends and answers its methods with nothing, a function does + nothing, and the first use of each warns once in the JS host's log, not in a toast, as the module cannot tell which + plugin used it. A renderable a plugin builds itself (`new BoxRenderable(renderer, options)`, and `TextRenderable`, + `MarkdownRenderable`, `CodeRenderable`, `ScrollBoxRenderable`, `InputRenderable`) is the node its JSX intrinsic makes, + with its options as its props, `add`, `insertBefore`, `remove` and the option setters, and draws as that JSX would: + returned from a code block's renderer, from a render, or added to a node by its ref (contract 2.x, step D; CT-15, + opencode-quick-quote returns one as its slot's element, opencode-gpt-live and opencode-task-completion-loop the same, + not checked one by one). What OpenTUI does with the renderer it is given is the host's. A call of a method any of OpenTUI's + declarations returns a promise from answers a resolved promise of an inert value, so a chain such as + `getTreeSitterClient().initialize().then(…)` runs on (CT-16, `P.8/shell-highlighting`): the grammar it registers is + not the host's, which would need the contract to take a plugin's tree-sitter grammar. The `effect` package is not + served (O-170): the layer serves what the TUI plugin API defines, not libraries a plugin expects the host to happen + to have. TS's runtime provides its own, so a plugin that imports it (opencode-plugboard and + @davidaayers/opencode-codex-usage-plugin declare it a peer) fails to load here, named + (`plugin_compat::a_plugin_that_imports_effect_fails_to_load_naming_it`). +- **Shrink and wrap**: a node with a fixed `width` or `height` does not shrink unless its `flexShrink` says so, as + OpenTUI's renderables (CT-25: @wpro-eng/opencode-config's 14-cell agent names shrank to their text; its tarball is + unlicensed, so a layer test pins it). Where a long word breaks is the host's text wrap: TS's breaks + `github-copilot/gemini-3.8-flash` after the `/`, the host's after `gemini-`, which is OpenTUI's Rust wrap, not the + layer's. A panel sized by its box's width (CT-28: opencode-tui-context's gauges and legend, `P.8/context-gauge`) + draws as TS once the host's layout reaches it (above). +- **Dialog size**: `dialog.set({ size, centered })` sizes a `ui.dialog.show` dialog, and an `alert`, a `confirm` or a + `select` it follows right away (above; CT-35's joe-broadhead status alerts are `large`, as in TS). +- **Border titles**: a box's `title`, `titleAlignment`, `bottomTitle` and `bottomTitleAlignment` are the contract + border's (CT-26: @juliuskb/opencode-voice's CPU and memory line, `P.8/voice-title`). An `onSizeChange` a plugin sets on the + renderable by its ref runs as one set as a prop does, so voice spreads its top title across the panel's width as + in TS. That row's requests differ: the plugin polls its status RPC on a timer, which runs in real time on the JS + host, so the replay sends more polls. +- **Colors**: the context's `theme` leaves are colors that carry their token, so a node the plugin colors from the + theme follows a theme change without a call, where an installed package's node keeps the color it read in TS. Its + `hue` scales and `categorical` list are the page theme's, each step carrying the contract's token of it + (`accent.500`, `categorical.3.300`), and a stateful color has TS's `state` (CT-9, `P.8/context-hue`). `source`, + `increase` and `decrease` find a color's step by its token, else by its value among the named hues, where TS matches + the object a token was read from; a color that two steps share is the first hue's. Its `surface("dialog")` and + `surface("dialog.footer")` are the host's raised surfaces (CT-8, CT-22, `P.8/tavily-surface`): a color the surface + gives differently from the page is that color, carrying no token, as the contract names none of a raised surface, + so it keeps that color across a theme change; the others keep their page token. Another name is the page's theme, + which the JS host's log says once. Neither `theme` nor `themeMode` is a signal. +- **The context's `location`** is the directory and workspace the host works in (`abi::Info.location`), where TS's is + the whole location the server answers, its project with it: an RPC call that passes it sends the directory alone in + its `location` query. It would need the contract to give a plugin the location's project. +- **Numbers** a render computes are rounded and clamped to the contract's ranges. +- **Raw writes to standard output** (`fs.writeSync(1, …)`, as oc-bg-color-sync writes `OSC 11` and `OSC 111` to set + and reset the terminal's background) reach the terminal in TS, where the plugin runs in the TUI's process. Here they + are logged, escaped, by the plugin whose code ran as they were written (`js host: plugin <id> wrote N bytes to standard + output, …`), and change nothing on screen; the JS host and its plugins keep running. Forwarding them would need + OpenTUI to write them between its frames, so they cannot cut into one (js-stdio). + +**Reason.** O-123 and O-125 keep plugin UI code native and in-process; O-128 makes TypeScript a compatibility shim on +the JS host, the second tier: what it cannot read in the frame, or that the contract does not carry, it reports rather +than imitates (rich-plugins synthesis 3.7). diff --git a/packages/cli-rs/parity/deviations/G02-print-logs-tui.md b/packages/cli-rs/parity/deviations/G02-print-logs-tui.md new file mode 100644 index 000000000000..f92d8e7f5527 --- /dev/null +++ b/packages/cli-rs/parity/deviations/G02-print-logs-tui.md @@ -0,0 +1,22 @@ +# G02: `--print-logs` while the full-screen TUI runs + +TypeScript: the stderr logger (`packages/util/src/observability/logging.ts`) writes every record with +`process.stderr.write`. OpenTUI's renderer runs with `externalOutputMode: "passthrough"` and does not capture +stderr, so while the TUI is on the alternate screen the records draw over it. A 110x32 PTY run of +`opencode --print-logs` with `OPENCODE_LOG_LEVEL=DEBUG` showed 137 records written inside the alternate screen, +and none after it. They stay on the screen until the next redraw of those cells and are not in the scrollback. + +Rust: `opencode_tui::run` sets `AppOptions::capture_stderr`. While the TUI runs, whatever the process writes to +stderr (log records, stray `eprintln!`) goes to the opentui console, and is written to the real stderr after +the terminal is restored. "Toggle console" in the palette (`app.console`, unbound by default, as in TS) shows +the console while the TUI runs. The same PTY run, with a record written to the process's stderr during the TUI, shows +no record on the screen and the record after the alternate screen is left: + +``` +log records inside the TUI: 0 +log records after the TUI: 1 +after: …[?1049l…timestamp=probe level=INFO message="written during the TUI" +``` + +Reason: records drawn over the screen corrupt the UI and are lost when the alternate screen closes. Capturing +them keeps the screen intact and keeps every record. The log file gets every record in both clients. diff --git a/packages/cli-rs/parity/deviations/G11-telemetry.md b/packages/cli-rs/parity/deviations/G11-telemetry.md new file mode 100644 index 000000000000..420d440817e7 --- /dev/null +++ b/packages/cli-rs/parity/deviations/G11-telemetry.md @@ -0,0 +1,20 @@ +# G11: OpenTelemetry and log files + +TypeScript: with `OTEL_EXPORTER_OTLP_ENDPOINT` set, the CLI exports logs to `/v1/logs` and traces (Effect spans, +the AI SDK's spans) to `/v1/traces`. Log records go to the shared file in `<data>/log` in batches written about +once a second. + +Rust: + +- Logs only. The client has no spans to export, so nothing goes to `/v1/traces`. +- The exporter posts once per batch with no retry of transient failures. A failed post drops records for 60 s, as + Effect's exporter does after its retries. +- Each record is appended to the log file at once, one write per line, instead of in batches. +- Debug and trace records of third-party crates (HTTP, TLS) are left out at every level; the client's own crates + follow `--log-level`. +- The "cli starting" record also has `client=<OPENCODE_CLIENT or opencode-native>`, because TS and Rust records share + one file. +- Panics are logged to the same file (`message="panic …" thread=… backtrace=…`), not to a separate file. + +Reason: the Rust client produces no spans, and the remaining differences are not visible to users. The extra +field tells the two clients' records apart in the shared file. diff --git a/packages/cli-rs/parity/deviations/G16-shutdown.md b/packages/cli-rs/parity/deviations/G16-shutdown.md new file mode 100644 index 000000000000..e5cf0f34b684 --- /dev/null +++ b/packages/cli-rs/parity/deviations/G16-shutdown.md @@ -0,0 +1,14 @@ +# G16: shutdown deadline + +TypeScript: SIGTERM or SIGINT interrupts the main fiber, so every finalizer runs. The exit code is 130, or 143 +after SIGTERM. The deadline reports the `Teardown.pending()` items of the LayerNode layers. + +Rust: a signal runs only the steps that commands register with `signals::on_shutdown`, newest first, then exits +with the same code. `run` registers a step that cancels its Session and jobs and waits for that. The handler's own +drops do not run. The report lists those steps. If no step is registered, the line is "nothing tracked; the stuck +work is not a registered teardown step". The deadline, the second-signal exit, and the SIGHUP rule (only with a +terminal on stdin or stdout) match TS. While the TUI runs, opentui handles the three signals and quits the app, so +the TUI exits through its normal path with code 0. + +Reason: Rust commands block their thread and have no interruptible fiber. A standalone server needs no step: its +stdin lease ends when the client exits. diff --git a/packages/cli-rs/parity/deviations/H05-theme-error-text.md b/packages/cli-rs/parity/deviations/H05-theme-error-text.md new file mode 100644 index 000000000000..52708e47bb13 --- /dev/null +++ b/packages/cli-rs/parity/deviations/H05-theme-error-text.md @@ -0,0 +1,15 @@ +# H05: theme error text for unusual broken themes + +**TypeScript.** A broken V2 theme reports `Invalid theme: <name> <value> is an invalid value`, where `<value>` is +read from the Effect Schema message (`got …`), or `value` when the message names none. A V1 theme that lacks a +color the migration reads fails later with a JavaScript type error (`undefined is not an object …`). + +**Rust.** The schema check in `crates/ui/src/theme/document.rs` reproduces the value word for the cases in +`parity/oracle/U.1-themes.ts` (15 broken themes: bad, numeric, and object colors, a syntax token that is not a hue +reference, missing keys, empty and unknown categorical hues, bad hue steps, missing semantic hues, circular and +missing references, keys the schema drops, no modes). Other malformed documents fail the same way (the theme falls +back to `opencode` with a toast) but the value word can differ, because Effect's message format for nested unions +is not reproduced. A V1 theme missing a color fails with `Color "<key>" is missing from the theme`. + +**Reason.** The message text only explains a bad file; reproducing Effect's issue formatter for every shape would +port a schema library for a toast. The V1 message replaces a JavaScript runtime error with one that names the key. diff --git a/packages/cli-rs/parity/deviations/H06-chunked-diff-highlights.md b/packages/cli-rs/parity/deviations/H06-chunked-diff-highlights.md new file mode 100644 index 000000000000..4c1f3c42db88 --- /dev/null +++ b/packages/cli-rs/parity/deviations/H06-chunked-diff-highlights.md @@ -0,0 +1,14 @@ +# H06: the chunks of a large added file are highlighted one by one + +TypeScript: the diff viewer shows an added file of more than 3,000 lines in chunks of 128 lines and mounts only the +chunks near the view (`VirtualAddedPatch`, `packages/tui/src/component/patch-diff.tsx`). A chunk is not valid source +on its own, so TS highlights the whole file once with `highlightOnce` and gives each chunk its slice of the result. + +Rust: `opencode_ui::diff::Chunked` (`crates/ui/src/diff.rs`) mounts the same chunks the same way, but each chunk's +`Diff` highlights its own 128 lines. opentui-rust's `Diff` and `Code` take no highlights from outside. Where a +construct spans a chunk boundary, such as a multi-line string or block comment, the lines after the boundary can +take other colors than in TS. JSON, the case TS's own test uses, has no multi-line constructs and colors the same. + +Reason: the chunks are what keeps a large added file from mounting thousands of lines at once (r2 review, +bigboi-ui-6). Highlighting the whole file for each chunk would bring that cost back. Files of 3,000 lines or fewer, +and every other patch, highlight as before. diff --git a/packages/cli-rs/parity/deviations/H06-highlight-queries.md b/packages/cli-rs/parity/deviations/H06-highlight-queries.md new file mode 100644 index 000000000000..4e6ac92613e6 --- /dev/null +++ b/packages/cli-rs/parity/deviations/H06-highlight-queries.md @@ -0,0 +1,36 @@ +# H06: grammars Rust does not link, and grammar versions + +TypeScript: Core highlights with its six bundled grammars and the TUI's 34 from `packages/tui/src/parsers-config.ts`. +It downloads each grammar's WASM and highlight queries on first use, caches them under +`~/.local/share/opentui/tree-sitter`, and rewrites `#lua-match?` to `#match?` as it loads them. + +Rust: `opencode_ui::grammars` links the grammars statically and registers them with the same queries. The queries are +generated into `assets/queries` by `script/gen/grammars.ts`, which reads Core's cache first, as Core does, and applies +Core's rewrite. They use Core's capture rules (`Grammar::core_captures`) and Core's theme fallback +(`SyntaxTheme::first_part_fallback`). `crates/ui/tests/all/grammars.rs` and `content.rs` match the TypeScript renders cell +for cell. Here is what still differs: + +- **OCaml and F# are not linked** (O-122). TS highlights them; Rust shows their code in the text color. Their parse + tables are the largest of the TUI's grammars (OCaml 15.4 MB and F# 14.2 MB of object code): the stripped Linux + release binary is 103.5 MB without them and 120.6 MB with them. +- **Kotlin is not linked.** TS highlights it; Rust shows its code in the text color. TS uses fwcd's + `tree-sitter-kotlin` 0.3.8, and that crate needs tree-sitter older than 0.23. fwcd's `main` (0.4.0) builds, but + the 0.3.8 query does not load against it (`Invalid node type "null"`). The crates that build with tree-sitter 0.27 + follow `main` too: `tree-sitter-kotlin-sg` 0.4.1 (ast-grep) has no `"null"`, `"!in"` or `"!is"` nodes, and + `tree-sitter-kotlin-codanna` 0.3.9 has no `"!in"`, so TS's query does not compile against either. +- **Swift is not linked, and neither client highlights it.** The cached TS query fails against the 0.7.1 grammar in + web-tree-sitter too (`Bad node name 'nil_literal'`), so Core skips Swift. +- **Other grammar versions.** Vue uses `tree-sitter-vue-next` 0.1.0 (TS: anomalyco's fork + 0.1.2). Clojure uses `tree-sitter-clojure-orchard` 0.2.9 (TS: anomalyco's fork 0.0.1). Vim uses `tree-sitter-vim` 0.4.0 + (TS: 0.8.1). Nix uses `tree-sitter-nix` 0.3.0 (TS: a WASM build from ast-grep). The crates TS pins at these versions + need an older tree-sitter or do not exist on crates.io. The queries load against all four, so the node names agree, + and their U.4b snippets match TS cell for cell. The parses can still differ on syntax that the grammar versions + handle differently. +- **Rust and Markdown use opentui-rust's crate versions:** `tree-sitter-rust` 0.24.2 (TS: 0.24.0) and + `tree-sitter-md` 0.5.4 (TS: 0.5.1). Cargo allows one version per crate in a build. +- **Markdown injections are opentui-rust's,** not the nvim-treesitter query Core uses. Core's query names a fence's + language with a directive only Core implements. The fences, HTML, front matter, and inline text inject the same + grammars, so the colors are Core's (`U.4a/markdown-fences`, `U.4b/markdown`). + +Reason: static linking instead of runtime downloads (plan H06). The client cannot download and load WASM grammars +without a WASM runtime, and the Rust crates exist for nearly every language. diff --git a/packages/cli-rs/parity/deviations/H06-streaming-highlight.md b/packages/cli-rs/parity/deviations/H06-streaming-highlight.md new file mode 100644 index 000000000000..edab2cf33ed2 --- /dev/null +++ b/packages/cli-rs/parity/deviations/H06-streaming-highlight.md @@ -0,0 +1,24 @@ +# H06: streaming code shows new text before its highlight lands + +TypeScript: Core's `CodeRenderable` (`packages/core/src/renderables/Code.ts:150,371-412`) highlights in a tree-sitter +worker. While a Markdown document streams, its fenced code blocks have `streaming: true` and `drawUnstyledText: false`. +New content does not touch the text buffer. The block keeps showing the previous highlighted text, without the new +lines, until the worker's highlight of the new content lands. A block's first content shows nothing until its first +highlight lands. A result whose snapshot changed in the meantime is dropped, and the highlight runs again. + +Rust: opentui-rust's `Code` (`opentui:packages/rust/crates/opentui/src/widget/code.rs`) highlights a view's first content, and any +replaced text, before the frame paints. Once the view shows a highlight, appended text appears at once, unhighlighted +after the old highlight. A worker thread then highlights the whole text, one highlight at a time per view. When the +highlight lands, it styles the text it covered, and text appended since stays unhighlighted until the next highlight. +Replacing the text, the filetype or the styles drops a running highlight. + +So between a delta and its highlight landing, a frame shows the new code lines unhighlighted where TypeScript does +not show them yet. Once the highlight lands, the frames are the same. Every parity checkpoint compares such settled +frames. P-APP waits until two renders 25 ms apart are equal. P-COMP and the U.4a/U.4b fixtures render one-shot +content, which highlights before the first frame. + +Reason: no stall on the UI thread. Before, every streamed delta highlighted the whole fence again on the UI thread: +48 ms per frame for a 1,000-line fence (350 ms at 4,000 lines), during which input waited. Now such a frame costs +0.08 ms. One frame per worker highlight also pays 1.6 ms to apply the result (the `markdown_stream_cost` case of an +out-of-tree probe, `/home/simon/src/opendocs/oc-rust/steps/stream-highlight.md`). Showing the new text at once also keeps streamed text from +lagging behind the reply. diff --git a/packages/cli-rs/parity/deviations/K04-unported-slash-commands.md b/packages/cli-rs/parity/deviations/K04-unported-slash-commands.md new file mode 100644 index 000000000000..2b3afbe49dde --- /dev/null +++ b/packages/cli-rs/parity/deviations/K04-unported-slash-commands.md @@ -0,0 +1,18 @@ +# K04: `/restart` is not offered + +## TypeScript + +Typing `/` lists every reachable keymap command with a slash name, its aliases, and the server's commands, +sorted, each padded to the longest name plus two (`packages/tui/src/component/prompt/autocomplete.tsx:491-521`). +With a managed background service, `service.restart` adds `/restart` (`packages/tui/src/app.tsx:1083-1098`). + +## Rust + +The list, its order, its padding rule, its fuzzy filter, and every built-in slash command but `/restart` are +ported; `E.3/complete` matches TS at every checkpoint. `service.restart` is not registered +(`crates/tui/src/features/system_commands.rs`), so `/restart` never shows, even with a managed service. + +## Reason + +Restarting stops the shared background service, which this client never does (orchestrator decision O-21). +`opencode-native service restart` restarts it as an explicit command (O-39). diff --git a/packages/cli-rs/parity/deviations/L01-jsonc-edge-cases.md b/packages/cli-rs/parity/deviations/L01-jsonc-edge-cases.md new file mode 100644 index 000000000000..bd28d51a4a3f --- /dev/null +++ b/packages/cli-rs/parity/deviations/L01-jsonc-edge-cases.md @@ -0,0 +1,18 @@ +# L01: JSONC edge cases in broken or unusual files + +**TypeScript.** `jsonc-parser` keeps a lone UTF-16 surrogate escape (`"\ud83d"`) as a lone surrogate, and +`JSON.stringify` writes it back as `\ud83d`. Removing an array index past the end of a multi-item array throws a +JavaScript `TypeError`. An unclosed block comment at the end of a file makes a token one unit longer than the +text. + +**Rust.** `crates/local/src/jsonc.rs` decodes a lone surrogate as U+FFFD, because Rust strings cannot hold one. +The out-of-range removal fails with `Can not remove Array index <n> as length is not sufficient`. The unclosed +comment token ends at the end of the text. A container nested deeper than 512 levels is a parse error, so the +file is invalid, and an edit of it fails with `Can not edit a document nested deeper than 512 levels`; +`jsonc-parser` reads about 10,000 levels and throws a stack `RangeError` past that. Every case in +`parity/oracle/F.5-config.ts jsonc` (293: edits, parses, and parse errors) is byte-equal. + +**Reason.** These inputs are broken documents; `cli.json` updates fail on them in both clients. The recursive +parser would overflow the stack and abort the process past a few thousand levels, and formatting an edit +indents every level of its lines, so its text grows with the square of the depth. The rest of the library is +ported line by line. diff --git a/packages/cli-rs/parity/deviations/L03-config-watch-debounce.md b/packages/cli-rs/parity/deviations/L03-config-watch-debounce.md new file mode 100644 index 000000000000..a71bcbcb5ce8 --- /dev/null +++ b/packages/cli-rs/parity/deviations/L03-config-watch-debounce.md @@ -0,0 +1,13 @@ +# L03: `cli.json` reload is debounced + +**TypeScript.** `ConfigProvider` (`packages/tui/src/config/index.tsx:363-371`) reloads on every `fs.watch` event +in the config directory, one reload after another, and applies each result. + +**Rust.** The settings module (`crates/tui/src/dialogs/settings.rs`, `install_reload`) starts +`CliConfig::watch` on the config directory when the TUI has real roots. The watch uses the same 50 ms debounce as +storage and `model.json` (`crates/local/src/watch.rs`), so a temporary-file-and-rename write gives one reload. +The reload runs `CliConfig::get` on the same worker thread as settings writes, so a reload and a write land in +the order they ran. A reload that resolves to the config already shown changes nothing. + +**Reason.** The reloads TS runs for the intermediate events read the same file; only the last one shows. The +debounce removes redundant reads and no state is visible in between. diff --git a/packages/cli-rs/parity/deviations/L04-migration-prototype-names.md b/packages/cli-rs/parity/deviations/L04-migration-prototype-names.md new file mode 100644 index 000000000000..e163ff43ce75 --- /dev/null +++ b/packages/cli-rs/parity/deviations/L04-migration-prototype-names.md @@ -0,0 +1,11 @@ +# L04: keybind names that are JavaScript object properties + +**TypeScript.** The in-place migration (`packages/cli/src/config/migrate.ts:66-92`) looks keybind names up with +`CommandMap[name]` and `name in Definitions`. Names such as `constructor` or `toString` find inherited +`Object.prototype` members, so a `keybinds.constructor` entry is removed and `keybinds.toString` is kept as a +current name. + +**Rust.** `migrate::rewrite` looks names up in the generated tables only, so both are unknown names and stay as +they are. The decoder drops them either way, so the loaded config is the same. + +**Reason.** The TS behavior comes from JavaScript property lookup, not from a rule. diff --git a/packages/cli-rs/parity/deviations/L06-frecency-invalid-lines.md b/packages/cli-rs/parity/deviations/L06-frecency-invalid-lines.md new file mode 100644 index 000000000000..7f01e1608707 --- /dev/null +++ b/packages/cli-rs/parity/deviations/L06-frecency-invalid-lines.md @@ -0,0 +1,15 @@ +# L06: frecency lines without a path or with unusual values + +**TypeScript.** `parseFrecency` (`packages/tui/src/prompt/frecency.tsx:12-31`) does not check lines. A JSON line +without a string `path` (for example `5` or `{}`) is kept under the key `undefined`, sorted by a missing +`lastOpen`, and written back on the next load; a `null` line throws, so the TUI loads no frecency at all. Entries +are keyed in a plain object, so a path that reads as an integer (`"1"`) sorts before the others, and the sort +subtracts `lastOpen` values: a string `"5"` counts as 5, `-0` equals `0`, and a missing one makes the order depend on +the engine's sort. + +**Rust.** `jsonl::parse_frecency` drops lines without a string `path`. Lines with a string `path` are kept exactly as +written, newest first, as in TypeScript (`jsonl_parsers_match_typescript`), keyed in insertion order and sorted by +numeric `lastOpen` with `f64::total_cmp`, so a missing or non-numeric `lastOpen` sorts first and `-0` after `0`. + +**Reason.** Such lines are corruption that no client writes: paths are absolute and `lastOpen` is a timestamp. +Keeping them adds entries that cannot match a file, and a total order keeps Rust's sort from panicking. diff --git a/packages/cli-rs/parity/deviations/M01-mini-shell.md b/packages/cli-rs/parity/deviations/M01-mini-shell.md new file mode 100644 index 000000000000..b1dae79ccf27 --- /dev/null +++ b/packages/cli-rs/parity/deviations/M01-mini-shell.md @@ -0,0 +1,38 @@ +# M01, M03, M11, M15: mini shell differences + +## Markdown after a resize replay (TypeScript defect) + +After a resize, TS `mini` writes assistant Markdown at the wrong column: at 34 columns, `Second answer:` comes out +as `Sec` / `ond answer:`, and `Third answer, the last one.` wraps after `the` although it fits. Prompts, errors, +and the entry header are right. The Rust client wraps them at the new width. `parity/scenarios/M.1/resize.pty.ts` +therefore replays a plain-text history (prompts and errors), which both clients write cell for cell. Seen with +`resize.pty.ts` at 24 and 34 columns over the Markdown history of `fixture.ts`. + +## Streaming Markdown commits complete blocks + +Core commits a streaming Markdown entry block by block from the renderable's block positions. opentui-rust's +Markdown widget does not expose them, so the Rust writer renders the text before the last blank line outside a +fence and commits those rows (`scrollback::stable_prefix`). A finished entry is the same; while it streams, a +paragraph shows once it is followed by a blank line or the entry ends. + +## Reasoning is drawn by the Markdown widget + +As in the TUI (`V04-reasoning-blocks.md`): TS draws reasoning with `<code filetype="markdown">`, whose conceal +hides `_Thinking:_`'s markers. opentui-rust's `Code` has no conceal, so the Markdown widget draws it in the +reasoning color. TS draws `Thinking:` in the Markdown emphasis color and the rest in the text color; Rust draws the +whole row in the muted reasoning color (`M.2/system-theme-no-defaults`, 1 line). + +## SIGINT and SIGUSR2 + +- TS turns an external SIGINT into the two-press exit. In the Rust client the renderer owns SIGINT and ends the + app; mini then closes as on any exit (writes what is queued, leaves split mode, prints the newline). Ctrl+C in + the terminal is a key and keeps the two-press exit. +- SIGUSR2 resolves the theme again (custom theme files and `cli.json`'s theme as read at start) against the + palette the terminal reported at start. TS asks the terminal for its palette again; opentui-rust cannot query + the terminal while the app runs. + +## Scrollback colors + +Scrollback colors are quantized to the nearest palette slot as in TS. The slot's fallback snapshot is xterm's +color for that slot, not the color the terminal reported; terminals with a palette draw their own color either +way. diff --git a/packages/cli-rs/parity/deviations/M04-mini-prompt.md b/packages/cli-rs/parity/deviations/M04-mini-prompt.md new file mode 100644 index 000000000000..45684534327e --- /dev/null +++ b/packages/cli-rs/parity/deviations/M04-mini-prompt.md @@ -0,0 +1,24 @@ +# M04, M09, M13: mini's footer prompt + +## The footer resizes once per frame + +- TypeScript: Solid batches the prompt's rows, so a menu that opens and closes inside one burst of input never + resizes the split footer. +- Rust: the prompt measures after every key. The footer height is now applied in a step before the next frame, + so the same burst resizes the footer once, to its final height. +- Reason: a split footer that grows scrolls the transcript up, and shrinking does not bring it back. Without this, + pasting `/editor seed` scrolled the transcript by the menu's rows. + +## The external editor leaves the transcript where it was + +- TypeScript: when the screen is full, the transcript sits one row higher after `$EDITOR` returns (Core's resume). +- Rust: the transcript stays where it was. +- Reason: the row is lost in Core's suspend and resume, not chosen. The `editor` scenario runs with `--no-replay` + so the screen is not full and both sides match. + +## The status row does not wrap + +- TypeScript: when the required groups (the two-press hint, the status, `esc normal`) are wider than the terminal, + the status row wraps and the footer grows. +- Rust: the status row stays one row and truncates. +- Reason: it happens only below about 20 columns; the footer height model stays simpler. diff --git a/packages/cli-rs/parity/deviations/M05-mini-requests.md b/packages/cli-rs/parity/deviations/M05-mini-requests.md new file mode 100644 index 000000000000..9d33570b64a6 --- /dev/null +++ b/packages/cli-rs/parity/deviations/M05-mini-requests.md @@ -0,0 +1,17 @@ +# M05: mini's footer views + +## No mouse in the footer + +- TypeScript: hovering a permission button or a form row selects it, and a click picks it. In the subagent + inspector, a click on `esc back` closes it and a click on `tab next` shows the next child. +- Rust: keys only. +- Reason: mini runs with mouse tracking off (M.1), so the footer never sees the pointer. + +## A child's listed permissions read their source messages + +- TypeScript: listing a child's permissions reads the source message only of a request whose tool call the child's + transcript does not hold yet, and a source that cannot be read fails the list, which then retries. +- Rust: every listed request with a tool source reads its message, as the session's own permissions do, and a + source that cannot be read leaves the request without its tool input. +- Reason: the session's permissions already resolve this way (`source` in `footers/mod.rs`). The screen is the + same whenever the server answers; only extra reads differ. diff --git a/packages/cli-rs/parity/deviations/M06-mini-covered-deltas.md b/packages/cli-rs/parity/deviations/M06-mini-covered-deltas.md new file mode 100644 index 000000000000..2fc7ec622453 --- /dev/null +++ b/packages/cli-rs/parity/deviations/M06-mini-covered-deltas.md @@ -0,0 +1,23 @@ +# M06: mini keeps a live delta that occurs in the listed text + +**TypeScript.** The stream subscribes before the messages are listed, so a delta sent before the list can arrive +after it. The fragment reconciler (`stream-v2.fragment.ts:44-63`) drops a live delta when it occurs anywhere in the +listed text that no earlier delta consumed. When mini attaches to a reply that is already streaming, the deltas sent +before the subscription never arrive, so that text is never consumed, and a later delta that happens to occur in it +(a space, a comma, " the") is dropped. A list of `"a b"` followed by the deltas `" "` and `"c"` shows `a bc`. + +A resize replay restores the text this client printed with the same projection, so a delta that waited for the list +and occurs in that text is dropped too. + +**Rust.** Deltas carry no sequence number and a listed part no version, so `Fragments::delta` uses their order: a +delta sent before the list repeats the end of the listed text. A run of deltas is dropped only when it ends where the +listed text ends. While a run occurs in the listed text but does not reach its end, it is held back, and it is shown +as soon as the next delta proves it new. The list of `"a b"` followed by `" "` and `"c"` shows `a b c`; followed by +`" "` and `"b"`, it shows `a b`. A resize replay checks the deltas that waited for its list against the text it +restores the same way. + +A new delta that equals the end of the listed text is still dropped: without a sequence number it cannot be told apart +from a repeated one. The server lists a part's text only when it ends, and sends no delta after that, so the case does +not occur with it. + +**Reason.** Simon decided to fix this defect the TS client shares in Rust, with no upstream proposal. diff --git a/packages/cli-rs/parity/deviations/M06-mini-output.md b/packages/cli-rs/parity/deviations/M06-mini-output.md new file mode 100644 index 000000000000..44f1ea054099 --- /dev/null +++ b/packages/cli-rs/parity/deviations/M06-mini-output.md @@ -0,0 +1,49 @@ +# M06, M07, M08, M14: mini's output, settings, spinners, and models + +## No launch animation for the entry header + +- TypeScript: with `mini.splash: show` and animations on, the entry header first shows in the footer with the + seed's launch spinner for about 0.8 s, then moves into the scrollback. +- Rust: the entry header is written to the scrollback at once. +- Reason: the scrollback ends the same; the animation is cosmetic and short. + +## Switching mono leaves the footer's ASCII as it started + +- TypeScript: the settings panel's "Monochrome UI" redraws everything in the new mode. +- Rust: the scrollback, its theme, and the status row switch; the composer and the panels keep the markers and + separators they started with until mini restarts. The setting is saved either way. +- Reason: the prompt and footer views take mono at construction; rebuilding them mid-session is a larger change. + +## The work spinner row of the settings panel has no icon + +- TypeScript: the "Work spinner" row shows the selected spinner animating. +- Rust: the row shows the spinner's name only. +- Reason: the panel menu draws text rows; the name is what changes. + +## Image previews draw in half blocks + +- TypeScript: with `session.image_preview`, Core's `ImageRenderable` picks the terminal's best image protocol and + fits the picture by its pixel size and the terminal's pixel resolution. +- Rust: the picture draws in Unicode half blocks, fitted by its aspect to the terminal's width and the rows above + the footer. +- Reason: scrollback rows are immutable cells; a Kitty or Sixel placement does not survive as a snapshot. The + captions, and every case without a preview, match. + +## An unknown tool's metadata draws as Markdown text + +- TypeScript: an unknown tool without output shows its metadata as highlighted JSON (`<code filetype="json">`). +- Rust: the JSON goes through the Markdown widget, so it is not highlighted. +- Reason: the writer draws code bodies with the Markdown widget (M.1); only unknown tools reach this body. + +## The context share uses the current model + +- TypeScript: `% ctx` divides a step's tokens by the context window of the step's model (`session.step.started`). +- Rust: it uses the model mini sends with. +- Reason: they differ only when the model changed while a step ran. + +## Messages and events that do not decode are dropped + +- TypeScript: the transport reads messages and events as JSON, so a field of the wrong shape shows what it can. +- Rust: messages and events are decoded into the generated types once (O4). A message that does not decode is + kept as unknown and draws nothing; an event that does not decode is skipped. A server always sends the full + shapes; this matters only for hand-made fixtures. diff --git a/packages/cli-rs/parity/deviations/M07-mini-shell-tools.md b/packages/cli-rs/parity/deviations/M07-mini-shell-tools.md new file mode 100644 index 000000000000..67279c365b15 --- /dev/null +++ b/packages/cli-rs/parity/deviations/M07-mini-shell-tools.md @@ -0,0 +1,18 @@ +# M07, M13: `!` shell turns show while `tools` is `hide` + +TypeScript: `RunFooter.append` (`packages/tui/src/mini/footer.ts:606`) drops every commit that +`toolTranscript` (`footer.ts:1176-1178`) matches, `kind === "tool"`, while `mini.tools` is `hide`. That is the +default (`verbosity.ts:17-23`). A `!` shell turn's commits are `shellCommit`s, `kind: "tool"` +(`stream-v2.transport.ts:340-353`), so at the default verbosity TS prints neither `$ <command>` nor the output: +the user's own command leaves no row in the scrollback. In `parity/scenarios/M.2/shell-output.pty.ts` with the +default settings, TS shows no shell rows after the turn ends, after 4 s more, or after another key; with +`tools: "show"` it shows them as soon as the turn ends. + +Rust: mini prints the `!` shell turn (`$ <command>`, its output, and the exit error) whatever `tools` is. + +Reason: the `tools` filter came with the verbosity presets (#47931), which gate model tool calls and skills in +the transport (`showTools()`), and whose "Tools" setting names "files skills activity work steps". Shell turns +are not gated there; they are dropped only by the footer's generic filter. `runShellTurn` even holds the turn +up to 1.5 s "so the output commit renders inside it" (`stream-v2.transport.ts:395-398`). Hiding a command the +user typed is a side effect, not the intent. With `tools: "show"` the two clients print the same rows, so the +scenario sets it and compares the output. diff --git a/packages/cli-rs/parity/deviations/N02-sound-output.md b/packages/cli-rs/parity/deviations/N02-sound-output.md new file mode 100644 index 000000000000..46b8fa4c5166 --- /dev/null +++ b/packages/cli-rs/parity/deviations/N02-sound-output.md @@ -0,0 +1,13 @@ +# N02: where attention sounds go outside the terminal TUI + +TypeScript: `audio.ts` creates one Core `Audio` engine on the first sound and starts the default playback device +for every renderer the TUI runs on. + +Rust: `features/attention/sound.rs` creates one opentui-rust `audio::Audio` engine on the first sound. Only +`opencode_tui::run` on the real terminal sets `Output::Device`, which opens the default playback device. Any other +app (the drive endpoint's headless app, tests) mixes without a device: the sound is decoded and handed to the +engine, the request reports `sound: true`, and nothing plays out loud. `Player::audio` reads that mix. + +Reason: tests and harnesses run many TUIs at once on a machine with speakers. A sound from each would be noise, and +a missing device would make results depend on the machine. Event-to-sound selection, the volume, the override +fallback and the outcome are the same as in TypeScript. diff --git a/packages/cli-rs/parity/deviations/N03-status-order.md b/packages/cli-rs/parity/deviations/N03-status-order.md new file mode 100644 index 000000000000..b54f67d9a531 --- /dev/null +++ b/packages/cli-rs/parity/deviations/N03-status-order.md @@ -0,0 +1,17 @@ +# N03: order between notifications and program status records + +TypeScript: the notifications plugin's `data.on` handlers run while the event is applied, before Solid runs the +program status effect of `context/session-tabs.tsx:180-200`. A permission request therefore writes its +notification (OSC 777, 9 or 99) first, and then the OSC 7501 records. + +Rust: the store wakes the UI with a change message, and passes the event to the plugin as a separate signal +message (`crates/store/src/connection.rs`, `Data::apply`). Two tokio tasks post these messages. The program status +records go out on the change message (`features/attention/program_status.rs`) and the notification on the signal, +so either one can come first. + +Each sequence is the same as in TypeScript: the same records in the same order, and the same notifications in the +same order. Only the order between the two kinds is not fixed. `E.19a/attention.pty.ts` compares them with +`oscByKind`. + +Reason: the terminal treats the two kinds independently, so their order has no effect. Fixing it would mean one +queue for store changes and signals, which every view would then share. diff --git a/packages/cli-rs/parity/deviations/O3-model-row-during-first-read.md b/packages/cli-rs/parity/deviations/O3-model-row-during-first-read.md new file mode 100644 index 000000000000..1cb2f1bdb289 --- /dev/null +++ b/packages/cli-rs/parity/deviations/O3-model-row-during-first-read.md @@ -0,0 +1,12 @@ +# O3: a model switch during the first transcript read keeps its row + +**TypeScript.** `session.model.selected` inserts the model-switched row only when the session's transcript is loaded +(`packages/client/src/solid/data.ts:786`). During the first `message.sync` the transcript is not loaded yet, so the +row is never inserted, and the page, read before the switch, lacks it too. The row is missing until another read. + +**Rust.** A head read in flight records the rows events create (O89-transcript-refresh), so `on_model_selected` also +inserts the row while the first read is in flight. When the page lands, the row is placed by `durable.seq` like any +row created during the read. The model test's `model row during the first head read` sequence is `KNOWN`. + +**Reason.** The user's decision O-92 (Q3 (a) of the models plan): fix in Rust the defects TS shares, and record them +as deviations. diff --git a/packages/cli-rs/parity/deviations/O4-edit-during-first-read.md b/packages/cli-rs/parity/deviations/O4-edit-during-first-read.md new file mode 100644 index 000000000000..236e279bc6fb --- /dev/null +++ b/packages/cli-rs/parity/deviations/O4-edit-during-first-read.md @@ -0,0 +1,13 @@ +# O4: a durable edit during the first transcript read is kept + +**TypeScript.** Streaming events edit a loaded message and are dropped when it is not loaded +(`packages/client/src/solid/data.ts:507-509`, `editAssistant`). During the first `message.sync` nothing is loaded, so a +`session.text.ended` (or a tool or step end) that arrives then is lost. The page, read before it, shows the text as it +was, and it stays so until another read. + +**Rust.** A head read in flight records the durable edits of its session, also before the transcript is loaded, and +replays them onto the page when it lands (O89-transcript-refresh). Each sets a whole value, so a replay the page already +holds changes nothing. The model test's `text.ended during the first head read` sequence is `KNOWN`. + +**Reason.** The user's decision O-92 (Q3 (a) of the models plan): fix in Rust the defects TS shares, and record them +as deviations. diff --git a/packages/cli-rs/parity/deviations/O5-text-started-replay.md b/packages/cli-rs/parity/deviations/O5-text-started-replay.md new file mode 100644 index 000000000000..d0655e74a166 --- /dev/null +++ b/packages/cli-rs/parity/deviations/O5-text-started-replay.md @@ -0,0 +1,15 @@ +# O5: a part start that the transcript already holds adds no second part + +**TypeScript.** `session.text.started`, `session.reasoning.started` and `session.tool.input.started` push a new part +unconditionally (`packages/client/src/solid/data.ts:1044-1048,1059-1069,1123-1132`). When a head read's page already +holds the part and the durable start is applied after it (it arrived while the read was in flight), the message gets +a second, empty part. `text.ended` then fills only the last text part, so the reply shows twice. + +**Rust.** A text or reasoning start is skipped when the message already holds more parts of that kind than the +event's `ordinal` (the server numbers text and reasoning parts from 0 within a message). A tool input start is +skipped when the message already holds a tool part with the same call ID. A start for the next ordinal or another +call ID still adds a part. The model test's `text.started replayed over a snapshot` sequence is `KNOWN`, and +`data.rs` `part_starts_are_idempotent` covers all three starts. + +**Reason.** The user's decision O-92 (Q3 (a) of the models plan): fix in Rust the defects TS shares, and record them +as deviations. diff --git a/packages/cli-rs/parity/deviations/O50-locale-compare-ascii.md b/packages/cli-rs/parity/deviations/O50-locale-compare-ascii.md new file mode 100644 index 000000000000..99fcdce98fe6 --- /dev/null +++ b/packages/cli-rs/parity/deviations/O50-locale-compare-ascii.md @@ -0,0 +1,16 @@ +# O50: `localeCompare` beyond printable ASCII + +**TypeScript.** Names sort with `a.localeCompare(b)`, which Bun answers from ICU's root collation. ICU sorts an +accented letter with its base letter (`é` with `e`, before `f`), gives each other script its own place among +the letters, puts tabs and newlines first with the other white space, and ignores DEL and most control characters. + +**Rust.** `opencode_api_types::js::locale_compare` follows ICU for printable ASCII: punctuation and symbols in ICU's +order, then digits, then letters without regard to case, lowercase first on a tie. Every other character sorts after +the letters by code point, so `é` comes after `z`, and a tab or DEL after every letter. + +It shows in the order of theme, model, provider, agent and plugin names that hold such characters. ASCII names sort +as in TypeScript. + +**Reason.** Decision O-50 (D6): one small port instead of ICU's collation tables. Matching ICU would take its root +collation data (a crate such as `icu_collator`, with its data), or an approximation that folds Latin accents into a +primary key with the table `script/gen/accents.ts` writes for `fuzzy`, and orders control characters as ICU does. diff --git a/packages/cli-rs/parity/deviations/O6-held-message-read.md b/packages/cli-rs/parity/deviations/O6-held-message-read.md new file mode 100644 index 000000000000..c172bd3cb10f --- /dev/null +++ b/packages/cli-rs/parity/deviations/O6-held-message-read.md @@ -0,0 +1,15 @@ +# O6: a single-message read that ends after its transcript ended publishes nothing + +**TypeScript.** `session.model.selected` inserts the model-switched row and then refetches that message with +`session.message.get` (`packages/client/src/solid/data.ts:782-806`). The response upserts into the session's +transcript whenever it arrives. When `session.deleted` lands while the read is in flight, the response creates the +deleted session's transcript again, with the one row, and nothing removes it. + +**Rust.** Each session's transcript window has an incarnation, a token from the store's counter. Deleting the session, +evicting its transcript and committing a revert end the window and give it a new incarnation (`State::end_transcript`). +`fetch_message` takes the incarnation when it begins and publishes its response only while the incarnation is the +same, so a response for a deleted, evicted or reverted transcript publishes nothing. The model test's `held +single-message read after a delete` sequence is `KNOWN`. + +**Reason.** The user's decision O-92 (Q3 (a) of the models plan): fix in Rust the defects TS shares, and record them +as deviations. diff --git a/packages/cli-rs/parity/deviations/O89-adopt-case-fold.md b/packages/cli-rs/parity/deviations/O89-adopt-case-fold.md new file mode 100644 index 000000000000..ce3c0023f51a --- /dev/null +++ b/packages/cli-rs/parity/deviations/O89-adopt-case-fold.md @@ -0,0 +1,11 @@ +# O89: the adopted subpath under a Windows root that case folding lengthens + +**TypeScript.** `Worktree.adopt` compares a session directory with the repository root lowercased on a Windows +drive, then takes the subpath as `directory.slice(root.length + 1)` (`packages/schema/src/worktree.ts:105-108`). +That counts UTF-16 units of the unlowered root, which no longer line up with the directory when lowercasing +changed a length. For `adopt(C:\İ\ä, root c:\i̇)` it gives the subpath `""` (checked with bun). + +**Rust.** `projects::adopt` takes the directory's path segments after the root's segments, so the example gives +`"ä"`. Every other input gives the same subpath as TypeScript. + +**Reason.** The user's decision O-89: fix in Rust the defects TS shares, and record them as deviations. diff --git a/packages/cli-rs/parity/deviations/O89-inbox-reconnect.md b/packages/cli-rs/parity/deviations/O89-inbox-reconnect.md new file mode 100644 index 000000000000..d20478aad2cc --- /dev/null +++ b/packages/cli-rs/parity/deviations/O89-inbox-reconnect.md @@ -0,0 +1,18 @@ +# O89: pending prompts after a reconnect + +**TypeScript.** `pending.sync` replaces the pending list with the server's and adds a transcript row for each prompt +it lists, but never removes the row of a prompt it no longer lists. A prompt another client cancelled while this +client's event stream was down stays in the transcript until the next transcript read. `session.inbox.delivered` moves +the row of a prompt the client holds; for a prompt it never saw admitted (its `session.inbox.enqueued` was lost with +the stream) it does nothing, so the prompt does not show until the next transcript read. A late +`session.inbox.enqueued` for a session the store found missing brings back its pending prompts and transcript (model +O9). + +**Rust** (`crates/store/src/inbox.rs`). A pending read removes the transcript row of each prompt it no longer lists, +and a synced transcript then reads its head again, in case the prompt was delivered rather than cancelled. +`session.inbox.delivered` for a prompt the store holds neither as pending nor as a row makes a synced transcript read +its head again. `session.inbox.enqueued` and local admission do nothing for a session the store found missing. The +store model's `KNOWN` sequences "cancel lost in a reconnect", "delivery of a prompt missed in a reconnect" and "late +enqueue for a missing session" cover them. + +**Reason.** The user's decision O-89: fix in Rust the defects TS shares, and record them as deviations. diff --git a/packages/cli-rs/parity/deviations/O89-jsonl-writes.md b/packages/cli-rs/parity/deviations/O89-jsonl-writes.md new file mode 100644 index 000000000000..955c8929416e --- /dev/null +++ b/packages/cli-rs/parity/deviations/O89-jsonl-writes.md @@ -0,0 +1,25 @@ +# O89: the shared stash, history, and frecency files lose as little as Rust alone can + +**TypeScript.** `prompt-stash.jsonl`, `prompt-history.jsonl`, and `frecency.jsonl` are written without a lock +(`packages/tui/src/util/persistence.ts:12-20`). `push` appends, but `pop`, `remove`, and a trimmed `push` overwrite +the file from the list in memory (`packages/tui/src/prompt/stash.tsx:54-90`, `history.tsx:121-143`), so they drop +every line another client appended since the load. + +**Rust.** Every write takes the `<state>/locks` file-key lock and works from the file, never from memory. Saves +only append. A stash pop or remove, and the trim on load, reread the file, drop or keep lines, write the new text +to a temporary file, sync it, and rename it over the file only when the file is still the one read (same inode, +size, and modification time). Otherwise they read again and redo the change, up to five times, then give up with +a logged error and leave the file as it is. The file is never truncated in place. Lines appended to the old file +after the rename check are carried over from its open handle to the end of the new file. + +**Remaining risk.** TypeScript still writes without the lock, so Rust cannot make the files fully safe: + +- A TypeScript append that opened the old file before the rename and writes after Rust has read its late lines is + lost. The window is the time between Rust's last read of the old file and the TypeScript write. +- A TypeScript rewrite (its `pop`, `remove`, or trim) that lands between Rust's check and its rename is replaced + by the Rust text. +- A TypeScript rewrite from memory drops lines Rust appended since TypeScript loaded the file, as it drops its own + other clients' lines today. + +**Reason.** The user's decision O-89: fix in Rust the defects TS shares, and record them as deviations, with no +upstream proposal (the TypeScript lock is not added). diff --git a/packages/cli-rs/parity/deviations/O89-jump-in-short-transcript.md b/packages/cli-rs/parity/deviations/O89-jump-in-short-transcript.md new file mode 100644 index 000000000000..50cba2b9be27 --- /dev/null +++ b/packages/cli-rs/parity/deviations/O89-jump-in-short-transcript.md @@ -0,0 +1,12 @@ +# O89: a message jump lands at the top when the rows fit the view + +**TypeScript.** `alignMessage` in `routes/session/index.tsx` sizes the navigation slack with +`messageNavigationSlack`, from `scroll.scrollHeight` less the current slack. OpenTUI's scroll content is at least +as tall as the viewport, so while the rows are shorter than the view the height counts empty rows, the slack comes +out short, and `scrollTo` clamps. In a session whose rows fit the screen, Next message shows "Jump to latest" and +does not move; after a new message it moves part of the way. + +**Rust.** `routes/session/scroll.rs` measures the rows to where the slack starts, so the slack is what the target +needs and the message lands at the top, as it does in a longer session. + +**Reason.** A TS defect fixed in Rust (O-89): a jump must land on its target. diff --git a/packages/cli-rs/parity/deviations/O89-list-snapshots.md b/packages/cli-rs/parity/deviations/O89-list-snapshots.md new file mode 100644 index 000000000000..18f0c6de0dba --- /dev/null +++ b/packages/cli-rs/parity/deviations/O89-list-snapshots.md @@ -0,0 +1,31 @@ +# O89: permission and form lists keep what arrived during their read + +**TypeScript.** `permission.sync` sets a session's permission list to the `GET /permission` snapshot +(`packages/client/src/solid/data.ts:1942-1948`), and the form syncs set the form list the same way. A +`permission.asked` or `form.created` event that arrives while the read is in flight is overwritten by the older +snapshot, so a request the server is waiting on disappears until the next invalidation. A request replied to or +cancelled meanwhile comes back with the snapshot. + +TS also applies `permission.asked` and `form.created` for a session it already found missing (`data.ts:1300-1306` and +`data.ts:1372-1378` have no check), so a late ask or form for a deleted session brings its permissions or forms back +until the next read (model O9). + +**Rust** (model M1, decisions O-91 and O-92). Permissions and forms share one overlay (`state::Overlay`). Each list +read takes a ticket when it starts and records an overlay of the changes that overtake it, in arrival order: + +- permissions: the asks and replies (events and local `permission_reply`) of its session; +- forms: the forms created, replied to and cancelled (events and local `form_reply` and `form_cancel`) of its owner. + A global form read is per location and records only the global forms of that location; a settlement without a + location records into every global read. + +Only the read whose ticket is current publishes, as the snapshot with the overlay applied: settled entries are +dropped, and new ones the snapshot lacks follow its own entries. A global form read replaces only the forms of the +location the server answered for; global forms of other locations stay. The overlay holds at most 1,024 changes; past +that the read publishes nothing, keeps the event-applied list, and reads again (O-92 Q1 (a)), so the bound costs a +read, never an entry. `permission.asked` and `form.created` for a session the store found missing are dropped. + +This replaces the global windows of the newest 512 IDs across all sessions (`permission_live`, `form_live`), which a +burst could overflow: it lost entries that overtook a read in the same session (O7) or in another session (O8). TS +shares O8 and O9 for both lists (O-92 Q3 (a)), and loses every overtaking entry in the O7 case. + +**Reason.** The user's decision O-89: fix in Rust the defects TS shares, and record them as deviations. diff --git a/packages/cli-rs/parity/deviations/O89-mini-replay-rows.md b/packages/cli-rs/parity/deviations/O89-mini-replay-rows.md new file mode 100644 index 000000000000..34d405d7302c --- /dev/null +++ b/packages/cli-rs/parity/deviations/O89-mini-replay-rows.md @@ -0,0 +1,25 @@ +# O89: mini prints each row once after a list + +**TypeScript.** A resize replay lists the messages again, then restores the rows only this client printed +(`performResizeReplay`). It skips a restored row whose message the list showed, by `messageIDs` and `errors`, but +three kinds of listed rows are not recorded there, so their live rows print a second time: + +- a shell (`renderMessage` marks `shellStarted` and `shellEnded`; its rows carry no message ID); +- a skill message (`skillMessages` only); +- a failed compaction's error (the list writes it without adding to `errors`). + +The streamed summary of an aborted compaction, which the list does not show, is restored without its header. The +events that arrived while the list was read apply after it: a tool call's `session.tool.input.started` among them +resets the call the list shows running to streaming, so its `session.tool.called` prints the call's start again. + +With tools hidden, a `session.text.ended` after any list (the first, a reconnect's, or a resize's) that printed its +part buffers the whole text, and the step's end prints it again below the listed text. + +**Rust.** `Transcript::replayed` restores a shell's start or end only when the list did not print it, and records +it. A listed skill message counts as shown, a listed compaction error is recorded in `errors`, and an assistant or +reasoning row of a listed message whose part the list does not hold is dropped. An input start leaves a call that is +further along as it is. With tools hidden, an end buffers only the text after what a list showed. After a resize, the +screen shows what a new client shows for the same list. + +**Reason.** The user decided to fix the defects the TS client shares in Rust and record them as deviations, with no +upstream proposal (O-89). diff --git a/packages/cli-rs/parity/deviations/O89-mini-restored-prompt.md b/packages/cli-rs/parity/deviations/O89-mini-restored-prompt.md new file mode 100644 index 000000000000..997955a847bb --- /dev/null +++ b/packages/cli-rs/parity/deviations/O89-mini-restored-prompt.md @@ -0,0 +1,12 @@ +# O89: mini prints a restored prompt once + +**TypeScript.** A resize replay lists the messages again, then restores the rows only this client printed +(`performResizeReplay`, `:1727`). A restored local user prompt does not record its message ID. When the prompt was +delivered but the terminal was resized before `message.list` had it, the next list (the turn settles, or the +stream reconnects) prints the same prompt a second time. + +**Rust.** `Transcript::restore` records the message ID of a restored user row, so the listed message counts as shown +and the prompt prints once. The skill rows and the images of that message were already handled once each. + +**Reason.** The user decided to fix the defects the TS client shares in Rust and record them as deviations, with no +upstream proposal (O-89). diff --git a/packages/cli-rs/parity/deviations/O89-mini-stderr.md b/packages/cli-rs/parity/deviations/O89-mini-stderr.md new file mode 100644 index 000000000000..203a363752fa --- /dev/null +++ b/packages/cli-rs/parity/deviations/O89-mini-stderr.md @@ -0,0 +1,16 @@ +# O89: mini writes stderr lines into the scrollback + +**TypeScript.** Mini's renderer captures only stdout (`externalOutputMode: "capture-stdout"`, +`runtime.lifecycle.ts:174`). With `opencode mini --print-logs`, each log record goes to stderr as it is and draws +over the split footer: the composer and the status row show the record until the next repaint. + +**Rust.** While the footer is up, `crates/mini/src/stderr.rs` puts a pipe on fd 2. Each line written to it becomes a +system row of the scrollback above the footer, and the footer stays intact. When mini ends, stderr is restored +first, then a last line without a newline, or lines that arrive after the app stopped, go to the real stderr. A +panic on the UI thread restores stderr before the panic is printed. Only this process's writes are captured: a +`--standalone` server started before mini keeps the real stderr. A row from stderr is not kept for a resize replay. +Windows does the same with an anonymous pipe as the standard error handle (`SetStdHandle`), which the reader polls +every 50 ms. + +**Reason.** The user decided to fix the defects the TS client shares in Rust and record them as deviations, with no +upstream proposal (O-89). diff --git a/packages/cli-rs/parity/deviations/O89-mini-subagent-thinking.md b/packages/cli-rs/parity/deviations/O89-mini-subagent-thinking.md new file mode 100644 index 000000000000..7d53413a0c12 --- /dev/null +++ b/packages/cli-rs/parity/deviations/O89-mini-subagent-thinking.md @@ -0,0 +1,13 @@ +# O89: mini's subagent reasoning follows `/settings` + +**TypeScript.** The subagent tracker takes `thinking` once, when the transport starts (`runtime.ts:801`, +`stream-v2.transport.ts:541`). After `/settings` hides Reasoning, a subagent started later still shows its +reasoning in the subagent view, and showing Reasoning again does not bring it back for children. The main transcript +follows the setting at once. + +**Rust.** `/settings` sets the tracker's `thinking` too (`Footers::set_thinking`, `Tracker::set_thinking`), so a +child's reasoning that arrives after the change follows the new setting, as the main transcript does. Reasoning +already shown stays, as in the main transcript. + +**Reason.** The user decided to fix the defects the TS client shares in Rust and record them as deviations, with no +upstream proposal (O-89). diff --git a/packages/cli-rs/parity/deviations/O89-model-switch-previous.md b/packages/cli-rs/parity/deviations/O89-model-switch-previous.md new file mode 100644 index 000000000000..48c8e22674f4 --- /dev/null +++ b/packages/cli-rs/parity/deviations/O89-model-switch-previous.md @@ -0,0 +1,15 @@ +# O89: a model switch without `previous` keeps the old model + +**TypeScript.** When `session.model.selected` has no `previous`, the row it inserts takes +`store.session.info[id].model` (`packages/client/src/solid/data.ts:783`). That is the store's proxy of the model +object. The next line sets the session's `model` to the event's, and Solid merges an object into the object at that +path, so the row's `previous` changes to the new model too. The row shows a switch from the new model to the new +model until the refetch of the projected message replaces it. + +**Rust.** `on_model_selected` clones the old model, so `previous` is the model before the switch. + +**Reach.** The server always sends `previous` when the session had a model (`core/src/session/session.ts:117`), so +only an event without it shows the difference. The F.7 fold oracle (`parity/fixtures/F.7/folds.json`, +`session.model.selected#no-previous@loaded`) records it. + +**Reason.** The user's decision O-89: fix in Rust the defects TS shares, and record them as deviations. diff --git a/packages/cli-rs/parity/deviations/O89-older-page.md b/packages/cli-rs/parity/deviations/O89-older-page.md new file mode 100644 index 000000000000..3b5824433d46 --- /dev/null +++ b/packages/cli-rs/parity/deviations/O89-older-page.md @@ -0,0 +1,14 @@ +# O89: an older-history page is not stitched onto a list that changed under it + +**TypeScript.** `loadMore` prepends the older page to whatever transcript is current and installs the page's own +`next` cursor (`packages/client/src/solid/data.ts:1910-1919`). When a latest-page refresh lands while the older +read is in flight, the page is stitched onto the refreshed list: the messages between the two pages are missing, +and the old continuation replaces the refreshed cursor. With latest page [2], an older read for [1], and a refresh +to [3], the transcript is [1, 3] with no more pages. + +**Rust.** `load_pages` publishes only while the session's cursor is still the one the read continued from. When a +refresh replaced it, the fetched pages are dropped and the load starts again from the new cursor, so the example +ends as [2, 3] with the cursor to [1] kept. When the cursor is gone (no older pages, eviction, or deletion), the +load publishes nothing. + +**Reason.** The user's decision O-89: fix in Rust the defects TS shares, and record them as deviations. diff --git a/packages/cli-rs/parity/deviations/O89-paste-chip-contrast.md b/packages/cli-rs/parity/deviations/O89-paste-chip-contrast.md new file mode 100644 index 000000000000..e3025a45e958 --- /dev/null +++ b/packages/cli-rs/parity/deviations/O89-paste-chip-contrast.md @@ -0,0 +1,24 @@ +# O89: the paste chip keeps dark text in dark mode under the system theme + +**TypeScript.** `generateSyntax` (`packages/theme/src/tui/syntax.ts`) draws `extmark.paste`, the +`[Pasted ~N lines]` chip, in the page color on `text.feedback.warning.base`, so the text is dark in dark mode and +light in light mode (#62930). When the page is transparent, as it is under the `system` theme, it takes +`text.action.primary.focused` (the selected-row text) instead. On the system theme that is the terminal's +foreground. In dark mode the chip text is then light on yellow. Example, Ghostty with Tokyo Night (background +`#1a1b26`, foreground `#a9b1d6`, yellow `#e0af68`): `#a9b1d6` on `#e0af68`, a contrast of 1.06. In light mode, with +background `#e1e2e7` and foreground `#3760bf`: `#3760bf` on `#8c6c3e`, 1.21. + +**Rust.** `opencode_ui::code::syntax_theme` keeps the intent of #62930 when the page is transparent: + +- The system theme keeps the terminal's background (OSC 11) in the channels of its transparent page. The chip text + is that color, made opaque. Tokyo Night dark: `#1a1b26` on `#e0af68` (contrast 8.55). Light: `#e1e2e7` on `#8c6c3e` + (contrast 3.75). +- A transparent page without a known background (a custom theme with `"background": "none"`) takes the opaque neutral + step with the best contrast against the chip. This is always the darkest or the lightest neutral step. +- An opaque page is unchanged: `tokyonight` dark is still `#1a1b26` on `#ff966c`. + +A known pure-black terminal background (`#000000`) can't be told apart from no background, because both resolve to +`rgba(0, 0, 0, 0)`. It takes the neutral fallback, which is the near-black end of its neutral scale on any yellow. + +**Reason.** The user decided to fix the defects the TS client shares in Rust and record them as deviations, with no +upstream proposal (O-89). diff --git a/packages/cli-rs/parity/deviations/O89-paste-over-selection.md b/packages/cli-rs/parity/deviations/O89-paste-over-selection.md new file mode 100644 index 000000000000..37b20d5cf3a3 --- /dev/null +++ b/packages/cli-rs/parity/deviations/O89-paste-over-selection.md @@ -0,0 +1,12 @@ +# O89: a paste chip over a selection marks its own label + +**TypeScript.** `pasteText` and `pasteAttachment` in `component/prompt/index.tsx` take the extmark's start from +`input.cursorOffset`, then `insertText` replaces the selection. A selection made with Shift+Right ends after the +cursor (OpenTUI's selection takes the character at its far end), so the label lands at the selection's start and +the extmark one or more offsets after it. Submitting `a`, Up, Shift+Right, then a three-line paste sends +`[l1\nl2\nl3`: the expansion replaces the wrong range. + +**Rust.** `prompt/paste.rs` deletes the selection first, then takes the cursor, so the extmark covers the label and +the prompt sends the pasted text. + +**Reason.** A TS defect fixed in Rust (O-89): the sent prompt must be what the prompt shows. diff --git a/packages/cli-rs/parity/deviations/O89-service-stop-pid.md b/packages/cli-rs/parity/deviations/O89-service-stop-pid.md new file mode 100644 index 000000000000..3907dab8e788 --- /dev/null +++ b/packages/cli-rs/parity/deviations/O89-service-stop-pid.md @@ -0,0 +1,16 @@ +# O89: `service stop` checks the registered process before signalling it + +**TypeScript.** `Service.stop` reads the registration and `terminate` sends SIGTERM, then SIGKILL, to its `pid` +after only comparing the file with a second read of the same file (`packages/client/src/effect/service.ts:129-197`). +A registration left behind by a crash or reboot names a pid that another process may own now, and `service stop`, +`restart`, or a config edit that stops the service signals that process. + +**Rust.** `stop::stop` signals a live registered pid only when it is the registered process. On Linux the process +must have started no later than the registration file was last written (one second of slack for `/proc` clock +ticks). Elsewhere, or when `/proc` cannot be read, the URL must answer `/api/info` with the registered pid, or accept +the connection and not answer in time (a hung service). Otherwise the command fails with "Process N is not the +OpenCode server registered in FILE, so it was not stopped. Remove that file if the server is gone." and leaves the +file. A dead pid is handled as before: the stale file is removed. `ensure` still stops only a process it started +itself, which it holds a handle to. + +**Reason.** The user's decision O-89: fix in Rust the defects TS shares, and record them as deviations. diff --git a/packages/cli-rs/parity/deviations/O89-slash-after-interrupt.md b/packages/cli-rs/parity/deviations/O89-slash-after-interrupt.md new file mode 100644 index 000000000000..7405d160075f --- /dev/null +++ b/packages/cli-rs/parity/deviations/O89-slash-after-interrupt.md @@ -0,0 +1,17 @@ +# O89: a slash command waits for a pending interrupt + +**TypeScript.** A slash command runs at once, however it is chosen: submitted with arguments (`/btw <question>`, +`argumentSlash` in `packages/tui/src/component/prompt/index.tsx`), picked from the autocomplete popup, or picked +from the command palette. Its requests and a pending `session.interrupt` are separate fetches, so the server can +receive the command's request before the interrupt, as it can for a prompt. + +**Rust.** While the session has an interrupt request without an answer, the command runs once every pending +interrupt of that session has its answer, as a prompt's requests do (`Shared::after_interrupts` in +`prompt/editor.rs`). This applies to a command submitted with arguments and to one picked from the popup, both for +the composer's session, and to a palette command with a slash name, for the session in view. Without a pending +interrupt the command runs at once, as in TS. + +**Reach.** Only a slash command chosen right after a second Escape (or `ctrl+⏎` of force-input) on a running +session, before the server answers the interrupt. The command's dialog or toast shows after that answer. + +**Reason.** The user's decision O-89: fix in Rust the defects TS shares, and record them as deviations. diff --git a/packages/cli-rs/parity/deviations/O89-stash-save-toast.md b/packages/cli-rs/parity/deviations/O89-stash-save-toast.md new file mode 100644 index 000000000000..27073914d9b8 --- /dev/null +++ b/packages/cli-rs/parity/deviations/O89-stash-save-toast.md @@ -0,0 +1,11 @@ +# O89: a failed stash save shows a toast + +**TypeScript.** `push` writes the stash entry with `appendText(...).catch(() => {})` +(`packages/tui/src/prompt/stash.tsx:54-72`). A write that fails (a full disk, a read-only state directory) is +ignored; the prompt is cleared and the draft lives only in memory until the TUI exits. + +**Rust.** `prompt.stash` logs the error and shows an error toast, "Could not save the stash: <error>". The prompt is +still cleared and the entry stays in the in-memory stash, so `prompt.stash.pop` or the stash list brings it back +while the TUI runs. A failed pop or remove is only logged, as before. + +**Reason.** The user's decision O-89: fix in Rust the defects TS shares, and record them as deviations. diff --git a/packages/cli-rs/parity/deviations/O89-terminal-text.md b/packages/cli-rs/parity/deviations/O89-terminal-text.md new file mode 100644 index 000000000000..0b84f53ff9d9 --- /dev/null +++ b/packages/cli-rs/parity/deviations/O89-terminal-text.md @@ -0,0 +1,24 @@ +# O89: untrusted text loses its control characters before it reaches the terminal + +**TypeScript.** Four kinds of output write model, server or file text to the terminal as it is, outside the renderer: + +- the exit epilogue prints the session title (`util/presentation.ts` `epilogue`); +- `run` prints model text, reasoning, tool titles and output, and error messages (`run/noninteractive.ts`); +- the Clack prompts print session titles, integration and model names, form text and auth URLs (`@clack/prompts`); +- `session list`, `stats`, `models`, `auth list`, `mcp list`, the `mini` error line and the error of a failed + command print titles, names and server messages. Help escapes C0 and DEL in usage errors, not C1. + +An escape sequence in that text reaches the terminal. Example: a session titled `x\e]52;c;cHduZWQ=\a` writes +"pwned" to the clipboard (OSC 52) when the TUI exits on it, and a model reply with the same bytes does it during +`opencode run hi`. + +**Rust.** `opencode_ui::terminal_text` filters that text first: it removes the escape sequences `ansi-regex` +matches, then every other C0 control except newline and tab, DEL, and C1. The client's own styling is added +after the filter, so it stays. The examples print `xy` and nothing reaches the clipboard. A tool output with color +codes prints without them; a carriage return is dropped, so `\r\n` prints as `\n`. Text without control +characters prints exactly as before, on a terminal and into a pipe. `--format json`, `session export` and +`auth export` are unchanged, as in TS: they are data, their JSON escapes C0 controls, and C1 stays as it is. Help escapes C1 in usage errors as `\xNN`, as +it does C0. + +**Reason.** The user decided to fix the defects the TS client shares in Rust and record them as deviations, with no +upstream proposal (O-89). diff --git a/packages/cli-rs/parity/deviations/O89-transcript-read-toast.md b/packages/cli-rs/parity/deviations/O89-transcript-read-toast.md new file mode 100644 index 000000000000..50ae8d2afb72 --- /dev/null +++ b/packages/cli-rs/parity/deviations/O89-transcript-read-toast.md @@ -0,0 +1,21 @@ +# O89: a failed transcript read shows a toast + +**TypeScript.** When the first `message.list` of a session fails, `data.session.message.sync` rethrows +(`packages/client/src/solid/data.ts:1880-1922`), and `createSessionRows` drops the error with `.catch(() => undefined)` +(`packages/tui/src/routes/session/rows.ts:128-143`). The session opens with an empty transcript, as if it had no +messages. Nothing is shown or logged, and nothing reads the page again until the session or the connection status +changes. A failed older page is dropped in the same way. `loadMore` rethrows (`data.ts:1924-1987`), and +`createHistoryPrepend` handles the rejection by clearing its pending load and running nothing else +(`packages/tui/src/routes/session/history.ts:25-42`). This applies to a scroll near the top and to the +previous-message walk (`routes/session/index.tsx:884`). The older messages never arrive, and nothing says why. Only +`session.first` shows its failure (`toast.error(error)`, `index.tsx:1035`). + +**Rust.** The same failures show an error toast with the error's message alone, as `toast.error` shows it: the +session's first read (`routes/session/mod.rs` `load`), an older page (`messages/list.rs` `load_older`) and the +previous-message walk (`navigation.rs`). Everything else matches TS. The transcript keeps what it had, the scroll +position is not restored after a failed first read, and Rust adds no retry: a later scroll near the top, or another +previous-message move, asks again as it does in TS. P-APP `E.6a/history-failed` records this. The cells outside the +toast equal TS's empty transcript. + +**Reason.** The user's decision O-89: fix in Rust the defects TS shares, and record them as deviations. Without the +toast, the user has no sign that the transcript failed to load. diff --git a/packages/cli-rs/parity/deviations/O89-transcript-refresh.md b/packages/cli-rs/parity/deviations/O89-transcript-refresh.md new file mode 100644 index 000000000000..89e711cab70c --- /dev/null +++ b/packages/cli-rs/parity/deviations/O89-transcript-refresh.md @@ -0,0 +1,41 @@ +# O89: a transcript refresh merges what streamed during it by `durable.seq` + +**TypeScript.** `message.sync` replaces the transcript with the latest page and keeps only local input rows that +are in the outbox or admitted (`packages/client/src/solid/data.ts:1831-1855`). When the read started before a step, +the `session.step.started` row and its text are gone once the older page lands, and later deltas for that message +are dropped because the row is not loaded. The reply reappears only after another invalidation. Events create rows for +any session, also one the store found missing (`message.update` does `draft[sessionID] ??= []`, `data.ts:495`). + +**Rust** (model M2, decisions O-91 and O-92 Q2 (a)). Each head read records what overtakes it (`messages::HeadRead`): +the rows events create, each with its event's `durable.seq`, and the durable edits (step, text, reasoning and tool +starts and ends, shell end, retry), in arrival order. The record exists from the start of the read, also before the +transcript is loaded. When the page lands: + +- The page wins, in server order. A page row that an event created during the read keeps its local copy, since the + stream saw its whole life, deltas included. +- A row created during the read that the page lacks is placed by `durable.seq` against a page row also created during + the read: a higher `seq` is newer than the page and is appended; a lower one is older and is dropped, and an older + page brings it back. A row created before the read and missing from the page is older too. A page without a cursor + is the whole transcript, so such rows are appended. +- With a cursor and no page row whose `seq` the client saw, the order is unknown: the page is published alone and the + read runs once more (coalesced through the read's key). The record has the 1,024-entry bound of the list overlays; + past it the read does the same. +- The recorded durable edits then replay onto the page. Each sets a whole value, so a replay the page already holds + changes nothing. Deltas carry no sequence and are not replayed (models Q5): a streaming text may miss a delta until + `session.text.ended` replaces it. +- Message IDs never decide the order. + +This replaces `State::message_live`, which kept every message an event touched during the read after the page. That +put a row created before the read but delivered during it after newer rows (O1; TS drops the row), and a row loaded +before the read and edited during it after the page (O2). The model-switched row and edits that arrive during the +first read are kept (O3-model-row-during-first-read, O4-edit-during-first-read). A head read whose window a revert +ended publishes nothing and reads again; deletion and eviction drop it. The `session.model.selected` refetch updates +its row only while the transcript holds it, so it cannot put back a row the merge dropped as older; TS appends it. +Events for a session the store found missing create no transcript (model O9, transcript half). + +**Known gap (O10).** When the stream lags behind the read, the page already holds rows whose events arrive after it +published. A row created before them, delivered later still, has nothing to compare with and is appended after newer +rows until the next read. TS does the same. Closing it client-side needs a re-read for the first row an event creates +in every paged window that has no row with a known `seq`. + +**Reason.** The user's decision O-89: fix in Rust the defects TS shares, and record them as deviations. diff --git a/packages/cli-rs/parity/deviations/O92-mini-relist-overflow.md b/packages/cli-rs/parity/deviations/O92-mini-relist-overflow.md new file mode 100644 index 000000000000..28c3abc912a2 --- /dev/null +++ b/packages/cli-rs/parity/deviations/O92-mini-relist-overflow.md @@ -0,0 +1,19 @@ +# O92: mini bounds the events a resize relist holds + +**TypeScript.** While a resize replay lists the messages again, `receive` pushes every event into +`state.buffered.events` (`stream-v2.transport.ts:1450-1453`), with no bound, and applies them after the list +(`performResizeReplay`, `:1737`). + +**Rust.** `Transcript::event` holds at most `RELIST_LIMIT` (4096) events. One more drops them and starts a new read +under a new ticket; the older read no longer applies. Until a relist clears the terminal again the transcript is +`lost`: + +- a reconnect hydration relists after it; +- a failed read tries again after the resize delay (250 ms); +- the clearing relist hydrates the subagents as a reconnect does, since their events were dropped too. + +Below the limit, mini prints what TS prints. Past it, the terminal is cleared and written once more, and a +`session.renamed` among the dropped events does not update the title until the next one. + +**Reason.** Every queue between tasks and the UI is bounded (`packages/cli-rs/AGENTS.md`). Bounded storage cannot +replay a slow read exactly, so the relist starts over after the dropped events (O-92, models plan M6 and S5). diff --git a/packages/cli-rs/parity/deviations/O92-shell-list.md b/packages/cli-rs/parity/deviations/O92-shell-list.md new file mode 100644 index 000000000000..a69f1b3aee01 --- /dev/null +++ b/packages/cli-rs/parity/deviations/O92-shell-list.md @@ -0,0 +1,15 @@ +# O92: the shell list keeps shells created and exited during its read + +**TypeScript.** The `shell` location resource sets the location's `shell` record to the `GET /api/shell` snapshot +(`locationResource` `publish`, `packages/client/src/solid/data.ts:1468-1479`, loaded at `1487-1494`). `shell.created`, +`shell.exited` and `shell.deleted` change the record directly (`data.ts:1379-1393`). An event that arrives while the +read is in flight is overwritten by the older snapshot: a shell started meanwhile disappears from the list, and one +that exited meanwhile comes back, until the next invalidation. + +**Rust.** A `Catalog::Shell` read starts an overlay of the shells created and exited after it began +(`store/src/shells.rs` `ShellRead`). Only that read's ticket publishes. It publishes the snapshot with the overlay +applied: a created shell is added or updated, and an exited or deleted shell is removed. The overlay holds at most +1,024 changes. If more arrive, the read publishes the snapshot alone, invalidates itself, and reads again. + +**Reason.** The user's decisions O-89 and O-92 (Q1 (a), Q3 (a)): fix in Rust the defects TS shares, and record them +as deviations. Model test: `store/tests/all/model.rs` `shells_converge_to_the_server` and the `KNOWN` shell entries. diff --git a/packages/cli-rs/parity/deviations/OT094-blank-row-fg.md b/packages/cli-rs/parity/deviations/OT094-blank-row-fg.md new file mode 100644 index 000000000000..74d44c301767 --- /dev/null +++ b/packages/cli-rs/parity/deviations/OT094-blank-row-fg.md @@ -0,0 +1,9 @@ +# OT094: the foreground of a blank row in the compact rail + +**TypeScript (`@opentui/core` 0.9.4, since #63989).** In the compact session rail, the blank row between the search +and files icons (row 2 of `E.12/rail-resize`'s `compact` checkpoint) keeps the default foreground in its eight +spaces. With Core 0.8.4 they carried the rail's tab color, `#1e1e1e`. + +**Rust.** The eight spaces carry `#1e1e1e`, as TS drew them before 0.9.4. + +**Reason.** A space shows no foreground, so nothing on screen differs; only the cell comparison sees it. 8 cells. diff --git a/packages/cli-rs/parity/deviations/OT094-kitty-requery.md b/packages/cli-rs/parity/deviations/OT094-kitty-requery.md new file mode 100644 index 000000000000..daf3f49115b1 --- /dev/null +++ b/packages/cli-rs/parity/deviations/OT094-kitty-requery.md @@ -0,0 +1,10 @@ +# OT094: Core queries the Kitty keyboard flags again after pushing them + +TypeScript (`@opentui/core` 0.9.4, since #63989): at startup the renderer queries the Kitty keyboard flags (`CSI ? u`), +pushes its flags (`CSI > 5 u`), and queries them once more. `parity/scenarios/M.4/mono-keyboard.pty.ts` records +`?`, `>5`, `?` by the settings checkpoint, and `?`, `>5`, `?`, `<` once mono pops the flags. + +Rust (OpenTUI 0.9.4's Rust crates): `?`, `>5`, and `<` after mono; no second query. + +Reason: terminal setup is OpenTUI's; the extra query changes nothing on screen or in the keys the client reads. 2 +lines a checkpoint. It goes away when the Rust crates confirm the push as Core does, or Core stops. diff --git a/packages/cli-rs/parity/deviations/OT094-legacy-shift-f3.md b/packages/cli-rs/parity/deviations/OT094-legacy-shift-f3.md new file mode 100644 index 000000000000..6498767d8786 --- /dev/null +++ b/packages/cli-rs/parity/deviations/OT094-legacy-shift-f3.md @@ -0,0 +1,12 @@ +# OT094: a legacy Shift+F3 report under the Kitty keyboard protocol + +TypeScript (`@opentui/core` 0.9.4, since #63989): after startup, with the Kitty keyboard protocol on, the legacy form +`CSI 1;2R` reads as Shift+F3, so `parity/scenarios/OT/shift-f3.pty.ts` opens the settings dialog bound to it. + +Rust (OpenTUI 0.9.4's Rust crates): with the Kitty protocol on, `CSI 1;2R` is a cursor position reply, as the +crates' conformance vectors say (`input/core_tests.rs`: a terminal in Kitty mode sends F3 as `CSI 13 ~`), so the +dialog stays closed. The Kitty form `CSI 13;2~` opens it in both. + +Reason: key parsing is OpenTUI's. A terminal with the Kitty protocol on does not send the legacy form for a key, so +only a script sees it. 12 lines at the `shift-f3` checkpoint. It goes away when the crates and Core agree on the +vector. diff --git a/packages/cli-rs/parity/deviations/OT1967-screen-256-colors.md b/packages/cli-rs/parity/deviations/OT1967-screen-256-colors.md new file mode 100644 index 000000000000..3e93941482f7 --- /dev/null +++ b/packages/cli-rs/parity/deviations/OT1967-screen-256-colors.md @@ -0,0 +1,14 @@ +# OT1967: GNU screen gets 256 colors even with `COLORTERM=truecolor` + +TypeScript: the TUI uses `@opentui/core` 0.8.1 from npm. Inside GNU screen (`STY`, or a `screen*` `TERM` without +`TMUX`), an inherited `COLORTERM=truecolor` or `24bit` makes it write 24-bit SGR colors (`38;2;r;g;b`). Screen 5 +drops these unless its `truecolor` setting is on, so cells lose their color. + +Rust: the client pins OpenTUI `48b6da69d`, which includes anomalyco/opentui#1967 and #1982. Inside GNU screen, OpenTUI +ignores `COLORTERM` and Windows Terminal's `WT_SESSION` and writes 256-color SGR (`38;5;n`). Set `OPENTUI_FORCE_TRUECOLOR=1` (or `true`) to force 24-bit color, +for example with `setenv OPENTUI_FORCE_TRUECOLOR 1` in `.screenrc` when screen's `truecolor` is on. With +`TERM=screen-256color COLORTERM=truecolor` under a PTY, the Rust home screen writes 200 `38;5`/`48;5` colors and no +`38;2`/`48;2` colors; TS writes 274 `38;2`/`48;2` colors. With `OPENTUI_FORCE_TRUECOLOR=1`, both write 24-bit. + +Reason: the OpenTUI fix landed after the npm release that TS uses. The difference goes away when TS moves to an +`@opentui/core` release that includes #1967 and #1982. diff --git a/packages/cli-rs/parity/deviations/OT1998-notification-osc.md b/packages/cli-rs/parity/deviations/OT1998-notification-osc.md new file mode 100644 index 000000000000..e4dfef23471b --- /dev/null +++ b/packages/cli-rs/parity/deviations/OT1998-notification-osc.md @@ -0,0 +1,14 @@ +# OT1998: notification text stays inside its OSC + +TypeScript: the TUI uses `@opentui/core` 0.8.4 from npm. Its native notification writer copies the text byte by +byte and drops only C0, DEL and ESC. A C1 control (U+009C is ST in its UTF-8 form) passes through, and OSC 9 text +that starts with a digit reads as a ConEmu subcommand (`9;4;…` is progress). ConEmu, detected by name, gets OSC 9. + +Rust: the client pins OpenTUI `ff703d174`, which includes anomalyco/opentui#1998. C0, DEL and C1 controls become +spaces, text that is not UTF-8 sends nothing, OSC 9 text that starts with a digit gets one leading space +(`ESC ] 9 ; ␠2 files: …`), and ConEmu gets no OSC 9 (it shows none for it anyway). The client's `normalize_text` +(`tui/src/features/attention/notify.rs`) already removes control characters and always passes a non-empty title, so +OSC 99 and OSC 777 bytes are the same as TS's, and OSC 9 bytes differ only when the title starts with a digit. + +Reason: the OpenTUI fix landed after the npm release that TS uses. The difference goes away when TS moves to an +`@opentui/core` release that includes #1998. diff --git a/packages/cli-rs/parity/deviations/OT2035-clipboard-terminal-last.md b/packages/cli-rs/parity/deviations/OT2035-clipboard-terminal-last.md new file mode 100644 index 000000000000..d553aac73202 --- /dev/null +++ b/packages/cli-rs/parity/deviations/OT2035-clipboard-terminal-last.md @@ -0,0 +1,15 @@ +# OT2035: a copy writes the terminal clipboard after the system clipboard + +TypeScript: the TUI copies with `@opentui/core` 0.8.4's `all-available` policy. It starts the system clipboard write +and sends OSC 52 to the terminal at once, while that write runs. On X11 and Wayland the last writer owns the +clipboard, so the app usually ends as the owner and the copy is gone after the user quits. + +Rust: the client pins OpenTUI `95933781d`, which includes anomalyco/opentui#2035 and #2038. In a local session, a +copy writes the system clipboard first and sends OSC 52 when that write ends (with any result) or when the app +exits; of several copies in flight, the terminal gets only the newest. The terminal then owns the selection and +the copy outlives the app. Over SSH, OSC 52 is still sent at once. A system clipboard write on macOS or Windows that +does not finish gives up after 1 s (#2038). The P-PTY scenario `E.20/copy` (no system clipboard in the sandbox) +still sends the same OSC 52 as TS. + +Reason: the OpenTUI fix landed after the npm release that TS uses (Core changed its own order in #2028). The +difference goes away when TS moves to an `@opentui/core` release that includes #2028. diff --git a/packages/cli-rs/parity/deviations/OT2042-split-footer-growth.md b/packages/cli-rs/parity/deviations/OT2042-split-footer-growth.md new file mode 100644 index 000000000000..f3d5fe79fb44 --- /dev/null +++ b/packages/cli-rs/parity/deviations/OT2042-split-footer-growth.md @@ -0,0 +1,14 @@ +# OT2042: mini's footer growth keeps transcript rows in xterm.js terminals + +TypeScript: mini uses `@opentui/core` 0.8.4 from npm. When the split footer grows (a multi-line prompt, a permission +prompt, a form), its native renderer makes room with `CSI n S`, wrapped in `ESC 7` / `ESC 8`. Terminals built on +xterm.js, such as VS Code's, discard the rows that scroll out this way, so transcript rows above the footer are lost. + +Rust: the client pins OpenTUI `95933781d`, which includes anomalyco/opentui#2042. Growth moves to the last row with +`CSI 65535 H` and writes line feeds there, without `ESC 7` / `ESC 8`, so the top rows go to scrollback in every +terminal. In xterm, kitty, Ghostty, WezTerm and tmux, which already kept the rows, the screen and the scrollback are +the same as TS's: every P-PTY `M.*` scenario and P-TUI scenario passes against the TS recordings. Only the bytes +differ there, and in xterm.js terminals Rust keeps the rows that TS loses. + +Reason: the OpenTUI fix landed after the npm release that TS uses. The difference goes away when TS moves to an +`@opentui/core` release that includes #2042. diff --git a/packages/cli-rs/parity/deviations/OT2049-markdown-engine.md b/packages/cli-rs/parity/deviations/OT2049-markdown-engine.md new file mode 100644 index 000000000000..1b7e07076652 --- /dev/null +++ b/packages/cli-rs/parity/deviations/OT2049-markdown-engine.md @@ -0,0 +1,24 @@ +# OT2049: Markdown on OpenTUI's native engine + +TypeScript (before #63989): the TUI and mini rendered Markdown with `@opentui/core` 0.8.4's `MarkdownRenderable` (marked). Since #63989 TS runs Core 0.9.4, which renders through the native engine too; the setext-heading item below was not measured again. A setext +heading (`Title` over `=====` or `---`) is drawn as plain text in the Markdown color, underline row included. While a +message streams, a closing fence closes its block as soon as the three backticks arrive, with or without a line +ending. + +Rust: the client pins OpenTUI `d3da53173`, where the `Markdown` widget runs on the native streaming engine +(anomalyco/opentui#2049, #2037, #2078). The characters now match TS where the old Rust parser differed: setext +underline rows and the blank rows around rules and headings are where TS puts them (the old parser dropped them), +and `- - -` is a rule. Two differences remain: + +- A setext heading is a heading: its text and its underline row take the `markup.heading` style (heading color, + bold; level 1 also underlined), as an ATX heading does in both clients. Seen by rendering `Title` / `=====`, + `Sub` / `---` and two rules through both clients' `TextPart` setup (the U.4c harness): every character equal, the + heading cells differ in color and attributes only. +- (Resolved by #63989.) While streaming, the engine holds a last line that has no line ending. TS on Core 0.9.4 runs + the same engine and holds it too: `parity/scenarios/OT/held-fence.sim.ts` shows the formula in both until more text + arrives, and differs only by `F16-plugin-fence-margin.md`'s row. + +Reason: the engine follows CommonMark, and Core's newer releases render through it as well. Mini commits only +closed blocks to scrollback (`stable_prefix` includes the closing blank line), so no held line is committed. The +rule color matches TS (`markdown.text`, the `U.4c/markdown-rules` fixture). The differences go away when TS moves +to an `@opentui/core` release that includes the engine. diff --git a/packages/cli-rs/parity/deviations/OT2064-extmark-mouse.md b/packages/cli-rs/parity/deviations/OT2064-extmark-mouse.md new file mode 100644 index 000000000000..b74dc85f5ea0 --- /dev/null +++ b/packages/cli-rs/parity/deviations/OT2064-extmark-mouse.md @@ -0,0 +1,15 @@ +# OT2064: when the mouse moves the prompt cursor out of an attachment label + +TypeScript (`@opentui/core` 0.9.4, since #63989, which includes anomalyco/opentui#2064): a click, a drag, a +double-click or a wheel step that ends inside an `[Image 1]` label moves the cursor out, as Rust does: the click to +the nearer edge, the drag to the side it came from, the double-click and Right to the label's end, the wheel step to +the label's start. Core already moves the cursor on the press: in `parity/scenarios/OT/extmark-mouse.pty.ts` the +cursor is at column 18 while the button is still down. + +Rust (OpenTUI 0.9.4's Rust crates): the press reports the clicked cell and leaves the cursor there (column 21); the +release moves it out, as in TS. A click on a `[Pasted ~N lines]` label expands it as in TS +(`parity/scenarios/E.4/paste-click.pty.ts`). + +Reason: the textarea's mouse handling is OpenTUI's; the cursor ends in the same place after the release in both, and +only the frame between press and release differs (the `pressed` checkpoint's cursor, 1 line). It goes away when the +Rust crates move the cursor on the press as Core does. diff --git a/packages/cli-rs/parity/deviations/OT817-super-backspace.md b/packages/cli-rs/parity/deviations/OT817-super-backspace.md new file mode 100644 index 000000000000..2942079eb743 --- /dev/null +++ b/packages/cli-rs/parity/deviations/OT817-super-backspace.md @@ -0,0 +1,13 @@ +# OT817: `super+backspace` deletes to the start of the line in the prompt + +TypeScript: the TUI uses `@opentui/core` 0.8.4 from npm. Its default textarea bindings have no `super+backspace`, so +the key does nothing in the prompt. + +Rust: the client pins OpenTUI `ff703d174`, which includes anomalyco/opentui#817. The managed textarea layer +(`ui/src/keymap/mod.rs`) appends OpenTUI's `TEXTAREA_BINDINGS` after the configured `input.*` keys, and those now +bind `super+backspace` to `input.delete.to.line.start`, as macOS editors bind Cmd+Backspace. A terminal sends the +key only when it reports the super modifier (the kitty keyboard protocol with Cmd or Super passed through), so most +setups see no difference. + +Reason: the OpenTUI change landed after the npm release that TS uses. The difference goes away when TS moves to an +`@opentui/core` release that includes #817. diff --git a/packages/cli-rs/parity/deviations/P02-early-enter.md b/packages/cli-rs/parity/deviations/P02-early-enter.md new file mode 100644 index 000000000000..50a39669fbfa --- /dev/null +++ b/packages/cli-rs/parity/deviations/P02-early-enter.md @@ -0,0 +1,15 @@ +# P02: an Enter before the catalogs load is held, not dropped + +TypeScript: `submitInner` returns early when it has no agent or model selection +(`packages/tui/src/component/prompt/index.tsx:1165-1171`). Until the location's agent list loads, +`local.agent.current()` is `undefined` (`packages/tui/src/context/local.tsx:89-98`), so an Enter does nothing and the +text stays. When agents have loaded but models have not, `local.model.selection()` is `undefined`, so the Enter shows +"Connect an integration to send prompts" and, while the integration list is also unloaded, opens the integration +dialog (`index.tsx:319-328`). Only `--prompt` waits for the catalogs and then submits (`routes/home.tsx:68-79`). + +Rust: an Enter before the agent and model catalogs load is held like `--prompt`. It submits, with its delivery, once +everything a submit needs has loaded, if the prompt still has the same text; an edit cancels it, and a later Enter +replaces it (`crates/tui/src/prompt/submit.rs`, `prompt/editor.rs` `submit_startup`). + +Reason: on a fresh start a user who types quickly loses the submit in TS, or gets a warning that names a missing +integration that is only loading. Holding the Enter reuses the `--prompt` path and shows no state TS does not. diff --git a/packages/cli-rs/parity/deviations/P08-zed-system-sqlite.md b/packages/cli-rs/parity/deviations/P08-zed-system-sqlite.md new file mode 100644 index 000000000000..9ec5015164ef --- /dev/null +++ b/packages/cli-rs/parity/deviations/P08-zed-system-sqlite.md @@ -0,0 +1,16 @@ +# P08: Zed's selection context needs the system SQLite + +TypeScript: in a Zed terminal, `editor-zed.ts` reads Zed's workspace database through the SQLite built into +the runtime (`bun:sqlite`, or `node:sqlite` under Node). The context works wherever the TUI runs. + +Rust: the TUI loads the system SQLite at run time, the first time it reads the database: `libsqlite3.so.0` on +Linux, `/usr/lib/libsqlite3.dylib` on macOS and `winsqlite3.dll` on Windows +(`crates/tui/src/prompt/editor_context.rs`, `mod sqlite`). When +the library does not load, every read is "unavailable", as for a database it cannot read: the prompt never +shows a Zed selection, and the TUI polls again every second. Nothing else changes; the binary starts and runs +without the library. + +Reason: the bundled SQLite (`rusqlite` with `bundled`) was 6 crates, about 0.8 MB of the binary and the largest +third-party C build of the client. macOS always ships the library, and almost every Linux desktop has it. +Linking the system library at build time instead would make `libsqlite3.so` a start-up +requirement of the whole binary, even without Zed. diff --git a/packages/cli-rs/parity/deviations/P2-latex-inline.md b/packages/cli-rs/parity/deviations/P2-latex-inline.md new file mode 100644 index 000000000000..9361e3ee7ee0 --- /dev/null +++ b/packages/cli-rs/parity/deviations/P2-latex-inline.md @@ -0,0 +1,27 @@ +# P.2: Markdown math, and opentui-tex's parser fixes + +**TypeScript.** The LaTeX plugin registers code-block renderers for `latex` and `math` fences only +(`packages/latex/src/plugin.ts`). Core's Markdown does not parse math, so `$…$`, `\(…\)`, `$$…$$` and `\[…\]` show +as typed: `Energy is $E=mc^2$`. + +**Rust.** Where the plugin renders (assistant text, the compaction summary, reasoning, and plugin Markdown with +the plugin fences), the TUI turns on OpenTUI's Markdown math (`MarkdownExtension::Math`, OpenTUI #2072): + +- `$$…$$` and `\[…\]` reach the `math` fence renderer and draw as display math, as a `math` fence does in both. +- `$…$` and `\(…\)` draw on one row in the text through the plugin's inline renderer (`Setup::inline_math`), in + Unicode: scripts as super- and subscript characters where Unicode has them, `\frac{a}{b}` as `a/b`, `\sqrt{x}` + as `√x`, accents as combining marks, matrices as `(a, b; c, d)`. TeX that does not parse shows as typed, without + its delimiters. With markers shown (`session.markdown` is `source`), math keeps its source and delimiters. +- Dollars that are not math stay text, as OpenTUI decides: `$5 and $10`, `$HOME`, a lone `$`, `\$`. While a + message streams, a `$` shows as text until it is decided, and math that showed never reverts. + +The parser and layout take opentui-tex's fixes; `P2-latex-opentui-tex` lists where fences then differ from TS, +such as `\displaystyle \frac{a}{b}` with no space before the fraction. Inputs TS rejects and Rust now draws: +`\ `, `\degree`, combining marks after a command or delimiter, comments inside raw groups, and `\limits` after a +styled operator. + +`P.2/inline-math` shows a message with all of these. The `latex` fence and the line of dollars match; the inline +and display math, and the rows below them, differ (191 cells). + +**Reason.** Models write `$…$` math in prose constantly, and its TeX is hard to read in a terminal. opentui-tex's +parser fixes are bug fixes: TS drew a stray space or rejected the input. diff --git a/packages/cli-rs/parity/deviations/P2-latex-opentui-tex.md b/packages/cli-rs/parity/deviations/P2-latex-opentui-tex.md new file mode 100644 index 000000000000..e92ebc007006 --- /dev/null +++ b/packages/cli-rs/parity/deviations/P2-latex-opentui-tex.md @@ -0,0 +1,746 @@ +# P.2: opentui-tex's layout, symbols, limits and streaming preview + +**TypeScript.** `packages/latex` draws a radical as a hook (`╰╯`) with a bar up the radicand's left, puts a blank +row between matrix rows, maps `\epsilon` to `ε` and `\varepsilon` to `ϵ`, keeps `\bullet` as `∙`, ignores +`\textcolor` in the drawn rows, draws an empty or blank source as nothing, measures cells with its own +`cellWidth`, and while a fence streams shows its source until the formula parses (then keeps the last formula +that parsed). + +**Rust.** `crates/latex` follows Simon's opentui-tex (`math-layout.ts`, `math-parser.ts`, `math-symbols.ts`, +`unicode-tex-backend.ts`, `tex-renderable.ts`), the reference for this plugin (O-89: a TS defect fixed in Rust): + +- the radical is `√` on the radicand's baseline under an overbar that starts with `╭`; +- matrix, `cases`, `aligned`, `array` and `\displaylines` rows follow each other without a blank row; +- `\epsilon` is `ϵ` and `\varepsilon` `ε`, as in TeX; `\bullet` is `•`; +- `\limits` and `\operatorname*` put limits above and below in inline layout too; +- `\textcolor` keeps its color (`#rgb`, `#rrggbb`, or an xcolor base color) in fences and inline math; +- a source of no or more than 4096 UTF-8 bytes, a block of more than 16 384 cells, and a formula that draws + nothing fail, so the fence shows its source; +- widths are `string-width`'s (`unicode-width`): a flag or keycap takes two cells; +- a literal delimiter not in the table (`\left a`) fails, as opentui-tex's strict mode; +- an open streaming fence draws as far as it goes with `□` for what has not come (`parseMathIncomplete`), and + keeps the last formula only when even that fails, so shown math never goes back to the source. + +The P-ORACLE (`parity/fixtures/P.2/layouts.json`, 207 TS cases) holds Rust to `crates/latex/src/oracle_rust.json` +for the cases below; `tests::layouts_match_typescript` requires each to differ from TS. P-COMP `P.2/structures` +differs in 125 cells and `P.2/adapter` in 197 (radicals and matrix rows); P-APP `P.2/fence-margin` in 2 (one +radical). + +**Reason.** opentui-tex is ahead of TS: a radical sign reads as a root where a hook does not, a blank row between +matrix rows reads as an empty row, TeX's epsilons are the other way round, and a streaming formula that keeps +drawing beats one that drops to source. + +## The oracle cases, TS then Rust + +### Radical + +`\sqrt{x^2+y^2}` + +``` + ╭─────── +╰╯x² + y² +``` + +``` + ╭─────── +√ x² + y² +``` + +`\left[\frac{-b \pm \sqrt{b^2-4ac}}{2a}\right]` + +``` +⎡ ╭──────── ⎤ +⎢ -b ± ╰╯b² - 4ac ⎥ +⎢─────────────────⎥ +⎣ 2a ⎦ +``` + +``` +⎡ ╭──────── ⎤ +⎢ -b ± √ b² - 4ac ⎥ +⎢─────────────────⎥ +⎣ 2a ⎦ +``` + +`\sqrt{x}` + +``` + ╭─ +╰╯x +``` + +``` + ╭─ +√ x +``` + +`\sqrt{x}^{}` + +``` + ╭─ +╰╯x +``` + +``` + ╭─ +√ x +``` + +`\sqrt{x}_{}` + +``` + ╭─ +╰╯x +``` + +``` + ╭─ +√ x +``` + +`\sqrt{x}^{}_{}` + +``` + ╭─ +╰╯x +``` + +``` + ╭─ +√ x +``` + +`\sqrt[\textcolor{blue}{\frac{1}{2}}]{\textcolor{red}{x}}` + +``` + 1 +─── + 2 ╭─ + ╰╯x +``` + +``` + 1 +─── + 2 ╭─ + √ x +``` + +`\sqrt[\textcolor{blue}{\sqrt{n}}]{\textcolor{red}{x}}` + +``` + ╭─ +╰╯n╭─ + ╰╯x +``` + +``` + ╭─ +√ n╭─ + √ x +``` + +`\sqrt[\textcolor{blue}{123456789}]{\textcolor{red}{x}}` + +``` +123456789╭─ + ╰╯x +``` + +``` +123456789╭─ + √ x +``` + +`\sqrt[\textcolor{blue}{\frac{123456789}{\frac{n}{m}}}]{\textcolor{red}{x}}` + +``` + 123456789 +─────────── + n + ─── + m ╭─ + ╰╯x +``` + +``` + 123456789 +─────────── + n + ─── + m ╭─ + √ x +``` + +`\sqrt[\textcolor{blue}{3}]{\textcolor{red}{\frac{a}{b}}}` + +``` +3╭─── + │ a + │─── +╰╯ b +``` + +``` +3╭─── + a +√ ─── + b +``` + +`\sqrt[\textcolor{blue}{\sqrt{\frac{n}{m}}}]{\textcolor{red}{\sqrt{\frac{a}{b}}}}` + +``` + ╭─── + │ n + │─── +╰╯ m ╭───── + │ ╭─── + │ │ a + │ │─── + ╰╯╰╯ b +``` + +``` + ╭─── + n +√ ─── + m ╭───── + ╭─── + a + √ √ ─── + b +``` + +`\sqrt[\textcolor{blue}{\text{\u6B21}}]{\textcolor{red}{\text{\u754C}}}` + +``` +\u6B21╭────── + ╰╯\u754C +``` + +``` +\u6B21╭────── + √ \u754C +``` + +`\sqrt[\textcolor{blue}{\frac{1}{2}}]{\textcolor{red}{}}` + +``` + 1 +─── + 2 ╭ + ╰╯ +``` + +``` + 1 +─── + 2 ╭ + √ +``` + +`\sqrt{\sqrt{\sqrt{x}}}` + +``` + ╭───── + │ ╭─── + │ │ ╭─ +╰╯╰╯╰╯x +``` + +``` + ╭───── + ╭─── + ╭─ +√ √ √ x +``` + +`\sqrt{\frac{a}{b}}` + +``` + ╭─── + │ a + │─── +╰╯ b +``` + +``` + ╭─── + a +√ ─── + b +``` + +`\sqrt[3]{x}` + +``` +3╭─ +╰╯x +``` + +``` +3╭─ +√ x +``` + +`\sqrt[\frac{1}{2}]{x}` + +``` + 1 +─── + 2 ╭─ + ╰╯x +``` + +``` + 1 +─── + 2 ╭─ + √ x +``` + +`\sqrt[\sqrt{n}]{x}` + +``` + ╭─ +╰╯n╭─ + ╰╯x +``` + +``` + ╭─ +√ n╭─ + √ x +``` + +`x=\sqrt{\frac{1}{2}}` + +``` + ╭─── + │ 1 +x = │─── + ╰╯ 2 +``` + +``` + ╭─── + 1 +x = √ ─── + 2 +``` + +`\int_0^\infty e^{-x^2}\,dx = \frac{\sqrt{\pi}}{2}` + +``` + ╭─ + ∞ -x² ╰╯π +∫ e dx = ───── + 0 2 +``` + +``` + ╭─ + ∞ -x² √ π +∫ e dx = ───── + 0 2 +``` + +`\sqrt[n]{x^n + y^n}` + +``` +n╭─────── +╰╯xⁿ + yⁿ +``` + +``` +n╭─────── +√ xⁿ + yⁿ +``` + +### Matrix rows + +`\begin{pmatrix}a & b \\ c & d\end{pmatrix}` + +``` +⎛a b⎞ +⎜ ⎟ +⎝c d⎠ +``` + +``` +⎛a b⎞ +⎝c d⎠ +``` + +`\begin{pmatrix}a&b\\c&d\end{pmatrix}` + +``` +⎛a b⎞ +⎜ ⎟ +⎝c d⎠ +``` + +``` +⎛a b⎞ +⎝c d⎠ +``` + +`\begin{pmatrix}a&b\\c&d\end{pmatrix}^{}` + +``` +⎛a b⎞ +⎜ ⎟ +⎝c d⎠ +``` + +``` +⎛a b⎞ +⎝c d⎠ +``` + +`\begin{pmatrix}a&b\\c&d\end{pmatrix}_{}` + +``` +⎛a b⎞ +⎜ ⎟ +⎝c d⎠ +``` + +``` +⎛a b⎞ +⎝c d⎠ +``` + +`\begin{pmatrix}a&b\\c&d\end{pmatrix}^{}_{}` + +``` +⎛a b⎞ +⎜ ⎟ +⎝c d⎠ +``` + +``` +⎛a b⎞ +⎝c d⎠ +``` + +`\begin{pmatrix}a&b\\c&d\end{pmatrix}^2` + +``` + 2 +⎛a b⎞ +⎜ ⎟ +⎝c d⎠ +``` + +``` + 2 +⎛a b⎞ +⎝c d⎠ +``` + +`\begin{cases}x & x>0\\x^2+1 & x\le0\end{cases}` + +``` +⎧x x > 0 +⎨ +⎩x² + 1 x ≤ 0 +``` + +``` +⎧x x > 0 +⎩x² + 1 x ≤ 0 +``` + +`\begin{array}{l|r}\text{a}&\text{wide}\\\text{long}&\text{b}\end{array}` + +``` +a │ wide + │ +long │ b +``` + +``` +a │ wide +long │ b +``` + +`\begin{array}{|l||r|}\text{a}&\text{b}\\\text{long}&\text{c}\end{array}` + +``` +│ a ││ b │ +│ ││ │ +│ long ││ c │ +``` + +``` +│ a ││ b │ +│ long ││ c │ +``` + +`\displaylines{x=1\\y=2}` + +``` +x = 1 + +y = 2 +``` + +``` +x = 1 +y = 2 +``` + +`\begin{aligned}&=x\\&=y\end{aligned}` + +``` + = x + + = y +``` + +``` + = x + = y +``` + +`\begin{aligned}{}&=x\\{}&=y\end{aligned}` + +``` + = x + + = y +``` + +``` + = x + = y +``` + +`\begin{array}{cc}a & b \\ c & d\end{array}` + +``` +a b + +c d +``` + +``` +a b +c d +``` + +`\begin{align*}a &= b \\ c &= d\end{align*}` + +``` +a = b + +c = d +``` + +``` +a = b +c = d +``` + +`\begin{matrix}a&&\\&b&\end{matrix}` + +``` +a + + b +``` + +``` +a + b +``` + +`\displaylines{\frac{1}{2}\\{y}}+z` + +``` + 1 +─── + 2 +z + + y +``` + +``` + 1 +─── + 2 +z + y +``` + +`\begin{array}{l|r}a&wide\\long&b\end{array}` + +``` +a │ wide + │ +long │ b +``` + +``` +a │ wide +long │ b +``` + +`\begin{aligned}a&=b+c\\&=d\end{aligned}` + +``` +a = b + c + + = d +``` + +``` +a = b + c + = d +``` + +`\begin{bmatrix}1 & 0 \\ 0 & 1\end{bmatrix} \begin{Bmatrix}a\end{Bmatrix} \begin{vmatrix}a & b \\ c & d\end{vmatrix} \begin{Vmatrix}x\end{Vmatrix}` + +``` +⎡1 0⎤ │a b│ +⎢ ⎥ {a} │ │ ║x║ +⎣0 1⎦ │c d│ +``` + +``` +⎡1 0⎤ │a b│ +⎣0 1⎦ {a} │c d│ ║x║ +``` + +`\begin{gather}a = b \\ c = d\end{gather} \begin{smallmatrix}1&2\end{smallmatrix}` + +``` +a = b + 1 2 +c = d +``` + +``` +a = b +c = d 1 2 +``` + +`\begin{cases} 0 & \text{if } x < 0 \\ \frac{x}{2} & \text{otherwise} \end{cases}` + +``` +⎧0 if x < 0 +⎪ +⎨ x +⎪─── otherwise +⎩ 2 +``` + +``` +⎧0 if x < 0 +⎪ x +⎨─── otherwise +⎩ 2 +``` + +`\begin{pmatrix} \frac{1}{2} & 0 \\ 0 & \sqrt{2} \end{pmatrix}` + +``` +⎛ 1 ⎞ +⎜─── 0 ⎟ +⎜ 2 ⎟ +⎜ ⎟ +⎜ ╭─⎟ +⎝ 0 ╰╯2⎠ +``` + +``` +⎛ 1 ⎞ +⎜─── 0 ⎟ +⎜ 2 ⎟ +⎜ ╭─⎟ +⎝ 0 √ 2⎠ +``` + +`\begin{aligned} f(x) &= (x+1)^2 \\ &= x^2 + 2x + 1 \end{aligned}` + +``` +f(x) = (x + 1)² + + = x² + 2x + 1 +``` + +``` +f(x) = (x + 1)² + = x² + 2x + 1 +``` + +### Epsilon + +`\alpha\beta\gamma\Gamma\epsilon\varepsilon\phi\varphi \infty \partial \forall \exists \emptyset` + +``` +αβγΓεϵϕφ∞∂∀∃∅ +``` + +``` +αβγΓϵεϕφ∞∂∀∃∅ +``` + +### A leading directive adds no space + +`\displaystyle \frac{a}{b} \textstyle c \scriptstyle d` + +``` + a + ─── cd + b +``` + +``` + a +─── cd + b +``` + +### Nothing to draw + +`\begin{matrix}\\\end{matrix}` + +``` +(nothing) +``` + +``` +(fails: the fence shows its source) +``` + +`\not` + +``` +(nothing) +``` + +``` +(fails: the fence shows its source) +``` + +The empty source + +``` +(nothing) +``` + +``` +(fails: the fence shows its source) +``` + +A source of three spaces + +``` +(nothing) +``` + +``` +(fails: the fence shows its source) +``` diff --git a/packages/cli-rs/parity/deviations/P3-mermaid-escape-codes.md b/packages/cli-rs/parity/deviations/P3-mermaid-escape-codes.md new file mode 100644 index 000000000000..ba408a2f691a --- /dev/null +++ b/packages/cli-rs/parity/deviations/P3-mermaid-escape-codes.md @@ -0,0 +1,12 @@ +# P.3: escape sequences in diagram text + +**TypeScript.** The Mermaid renderer measures text with `string-width`, which strips ANSI escape sequences +(`ESC [ 31 m` and the like) from the whole string before it counts, but draws text one grapheme at a time, where each +character of the sequence but `ESC` takes a cell. A label holding an escape sequence is measured narrower than it is +drawn, so its box or row is too narrow and the text overruns it. + +**Rust.** Text is measured as it is drawn, grapheme by grapheme: each character of an escape sequence but `ESC` takes +a cell, and boxes and rows fit the text. Every other grapheme measures as `string-width` 7 measures it. + +**Reason.** A diagram cannot show an escape sequence's effect, and measuring a label as wide as it draws keeps it +inside its box. Copying the strip would copy a TS defect. diff --git a/packages/cli-rs/parity/deviations/P3-mermaid-gantt-ticks.md b/packages/cli-rs/parity/deviations/P3-mermaid-gantt-ticks.md new file mode 100644 index 000000000000..c778d01cec0f --- /dev/null +++ b/packages/cli-rs/parity/deviations/P3-mermaid-gantt-ticks.md @@ -0,0 +1,10 @@ +# P.3: a Gantt axis stops at 10,000 ticks + +**TypeScript.** The Gantt axis puts a tick at every step from the first task to the last, and a step is at most a +year. A chart spanning millions of years adds millions of ticks, and one whose dates are so large that adding a step +no longer changes the value (`dateFormat x` with `1e300`) adds ticks forever: the renderer never returns. + +**Rust.** The axis takes at most 10,000 ticks, so such a chart draws, with its ticks bunched at the left of the axis. +Charts spanning up to 10,000 years draw as in TS. + +**Reason.** A fence must not hang the UI thread. No chart drawn on a terminal shows more ticks than its 64 columns. diff --git a/packages/cli-rs/parity/deviations/P3-mermaid-label-budget.md b/packages/cli-rs/parity/deviations/P3-mermaid-label-budget.md new file mode 100644 index 000000000000..77b0a97655aa --- /dev/null +++ b/packages/cli-rs/parity/deviations/P3-mermaid-label-budget.md @@ -0,0 +1,12 @@ +# P.3: a state diagram's label search is bounded + +**TypeScript.** Each transition label of a state diagram searches the spots around its route until one is clear. +With many labeled transitions between the same states, the spots crowd and the search grows faster than the number +of transitions: 128 such transitions take minutes. + +**Rust.** The search is faster but checks the same spots in the same order, so every diagram that draws, draws as in +TS. One diagram may check at most 4,000,000 spots (`state::routing::MAX_LABEL_CHECKS`; 128 labeled transitions +between two states take about 3,000,000, the diagrams in the corpus at most a few thousand). Past it the layout fails +and the fence shows its source. + +**Reason.** A fence must not freeze the UI thread for a diagram a reply can write. diff --git a/packages/cli-rs/parity/deviations/P3-mermaid-self-nesting.md b/packages/cli-rs/parity/deviations/P3-mermaid-self-nesting.md new file mode 100644 index 000000000000..52ccc3f271e1 --- /dev/null +++ b/packages/cli-rs/parity/deviations/P3-mermaid-self-nesting.md @@ -0,0 +1,11 @@ +# P.3: a group nested in itself + +**TypeScript.** Subgraphs and composite states name their parent by ID. A subgraph opened inside one of the same +ID, directly (`subgraph Outer` inside `subgraph Outer`) or by way of another (`X` inside `Y`, then `Y` inside +another `X`), and the same for `state X { … }`, make a group its own ancestor. Collecting a group's descendants then +recurses until the stack overflows, and the renderer throws a `RangeError`. + +**Rust.** Opening such a group is a syntax error at its line, so the fence keeps its previous diagram of the kind +or shows its source, as for any unsupported statement. + +**Reason.** In Rust the same recursion overflows the stack and aborts the process. diff --git a/packages/cli-rs/parity/deviations/P3-mermaid-side-route-row.md b/packages/cli-rs/parity/deviations/P3-mermaid-side-route-row.md new file mode 100644 index 000000000000..d5332352330b --- /dev/null +++ b/packages/cli-rs/parity/deviations/P3-mermaid-side-route-row.md @@ -0,0 +1,10 @@ +# P.3: a state transition routed beside the diagram on one row + +**TypeScript.** A transition that runs down a rail beside the states draws the rail from the row it leaves to the +row it arrives on, one row at a time until it reaches the arrival row. When the two rows are the same, as for a +transition from a top-level state to one nested two composites deep that sits on its row, it never reaches it, and +the renderer never returns. + +**Rust.** The rail draws no rows between, and the diagram draws. + +**Reason.** A fence must not hang the UI thread. diff --git a/packages/cli-rs/parity/deviations/S03-never-replace.md b/packages/cli-rs/parity/deviations/S03-never-replace.md new file mode 100644 index 000000000000..5859491862a9 --- /dev/null +++ b/packages/cli-rs/parity/deviations/S03-never-replace.md @@ -0,0 +1,36 @@ +# S03: the Rust client replaces a running service only on a version mismatch, as the TUI asks + +**TypeScript.** `Service.ensure` (`packages/client/src/effect/service.ts:45-127`) replaces a +service whose version does not match (`decide` returns `replace`, then `stop` with a PTY handoff), +and stops a registered service that times out three probes in a row before it starts another. The TUI +and `mini` ask for a match (`mismatch: "replace"`, `commands/handlers/default.ts:35-52`); the other +commands use any version. + +**Rust.** The TUI and `mini` restart a service of another version as TS's do (O-167, +`connect::Options::replace`, `docs/architecture.md`): same trigger, same message (`Restarting background server +(version mismatch)...` in the TUI, nothing in `mini`), same failure (the start's error). Four +differences remain: + +- Only a service in the client's own channel's registration is restarted, as TS reads only that one; + one discovery found in another channel's (O-21) is used as before. +- The client asks the resolved TS binary's version first, and does not restart a service with a + binary of that service's own version: TS restarts on itself, which is the client's version by + construction, while the Rust client may run another TS binary (`OPENCODE_TS_BIN`, `opencode` on + `PATH` behind a development build) and would otherwise restart on every start. +- A `local` build (no `OPENCODE_VERSION`) restarts only in channel `local`. TS's `local` build registers in + `service-local.json` and never sees the shared service; this client defaults to channel `latest` and shares + `service.json`, where no TS binary reports `local`, so it uses that service of any version and logs the mismatch. +- A service of another version that is still starting is waited for, then restarted; TS replaces it at + once. + +Every other command uses a service of any version (`ensure` gets no version requirement). A service +that keeps timing out is left running, and `ensure` fails with "Background service at <url> (pid +<pid>) is not responding. Stop it with `opencode service stop`, or pass --server." Only an unresponsive +contender this `ensure` call started itself, or a registration whose pid no longer runs, is stopped and +replaced, as TS does. + +**Reason.** User decisions Q2 ("this is a client we build and ship, not a server") and Q3 ("it +should work with the running server"), and the run notes of F.9: the client never replaces or stops +a service it did not start. O-167 reverses that for a version mismatch: with the server bundled beside +the client (bundle-server) both carry one version, so a mismatch means an upgrade left the old service +running, and TS's client restarts it. diff --git a/packages/cli-rs/parity/deviations/T08-devtools-channel.md b/packages/cli-rs/parity/deviations/T08-devtools-channel.md new file mode 100644 index 000000000000..e7667e4e2e3f --- /dev/null +++ b/packages/cli-rs/parity/deviations/T08-devtools-channel.md @@ -0,0 +1,18 @@ +# T08: the DevTools bar follows the run-time channel + +TypeScript: the DevTools bar (`✓ Server ○ UI Theme Tools Experiments`) shows when `debug.devtools` is on, or, +when the config does not set it, on the `local` channel (`packages/tui/src/app.tsx:496`). The channel is embedded +at build time (`packages/cli/src/version.ts`); a CLI run from source has none, so it is `local` and draws the bar. A +release build is `latest` (or `beta`, `next`, ...) and draws none. + +Rust: the same rule (`crates/tui/src/features/devtools.rs`), but the channel is read at run time: +`OPENCODE_CHANNEL`, else `latest` (plan 6.6, C09). Without the variable Rust draws no bar, as a released TS client +does; with `OPENCODE_CHANNEL=local` it draws the bar the TS CLI from source draws. + +Driven: `parity/scenarios/E.18a/channel.pty.ts` runs the home screen with no `debug.devtools` against the TS CLI +from source. TS shows the bar on the last row and moves the version row up one (3 lines). `E.18a/channel-local.pty.ts` +sets `OPENCODE_CHANNEL=local`, and both clients are equal. The plugins field test saw the bar in every TS capture +and in none of Rust's (`steps/plugins-field-test.md`, "Not plugin defects"). + +Reason: the Rust client has no build channel (plan 6.6), and `latest` is the channel whose service, database and +defaults it uses. A Rust build cannot tell a run from source from a release, so it follows the release. diff --git a/packages/cli-rs/parity/deviations/T14a-drive-capabilities.md b/packages/cli-rs/parity/deviations/T14a-drive-capabilities.md new file mode 100644 index 000000000000..aec9cbea1a46 --- /dev/null +++ b/packages/cli-rs/parity/deviations/T14a-drive-capabilities.md @@ -0,0 +1,14 @@ +# T14a: the Rust drive endpoint offers fewer capabilities + +TypeScript: the `OPENCODE_DRIVE` endpoint (`packages/simulation/src/frontend/server.ts`) offers every capability in +`Frontend.Capabilities`. Action results list the renderables (`Frontend.State.elements`, with renderable numbers), and +`ui.state`, `ui.snapshot`, `ui.focus`, `ui.click`, and `ui.recording.finish` work. + +Rust: the handshake offers `ui.type`, `ui.press`, `ui.enter`, `ui.arrow`, `ui.mouse`, `ui.resize`, `ui.matches`, and +`ui.capture`. Action results report `focused.editor` and an empty `elements` list. The other methods answer with a +JSON-RPC error that names the alternative (`ui.mouse` with coordinates). `CapturedFrame.images` is always empty. +`parity/scenarios/H.4/drive.ts` shows the difference in the `responses` of its report (`ui.state`). + +Reason: plan 7.3. Renderable numbers are a Core detail with no opentui-rust counterpart, so scenarios address the +screen by coordinates; a headless opentui-rust app writes no output bytes to record, and it has no image readback +(G.7's report). diff --git a/packages/cli-rs/parity/deviations/T20-single-line-motion-text.md b/packages/cli-rs/parity/deviations/T20-single-line-motion-text.md new file mode 100644 index 000000000000..318f9ba7dde9 --- /dev/null +++ b/packages/cli-rs/parity/deviations/T20-single-line-motion-text.md @@ -0,0 +1,12 @@ +# T20: motion text is one line + +**TypeScript.** `Spinner` lays out its label as a `<text>` that may shrink and wrap (`flexShrink={1}` on a +labeled spinner). `ShimmerText` and `FadeInText` are `TextRenderable`s, so their text wraps to the width they +get, and the shading mask covers every row. + +**Rust.** `motion::Spinner`, `ShimmerText`, and `FadeInText` paint one line, clipped at the widget's width. +The shading covers that row. + +**Reason.** Not aligned yet. Every TUI use today is a short status label (`Thinking`, `Loading worktrees…`, +`Checking for updates…`, the home tip line). Wrapping is a follow-up for the step that first shows a label +that can wrap. diff --git a/packages/cli-rs/parity/deviations/T20-spinner-tick-phase.md b/packages/cli-rs/parity/deviations/T20-spinner-tick-phase.md new file mode 100644 index 000000000000..cdfb3552bc17 --- /dev/null +++ b/packages/cli-rs/parity/deviations/T20-spinner-tick-phase.md @@ -0,0 +1,15 @@ +# T20: spinner tick phase + +**TypeScript.** `SpinnerRenderable` ticks on the renderer's shared animation clock +(`renderer.onAnimationTick`, `@opentui/core` `renderer.ts`). Due times are multiples of the interval on the +renderer clock. Any frame within half an interval of a due time runs that tick, and slower subscribers wait +until the end of their window so they share frames with faster ones. A spinner can therefore advance up to half +an interval early, when another frame happens to be painted, or late, when it shares a frame. + +**Rust.** `motion::Spinner` advances on an app interval timer started with the widget: exactly one frame per +interval from the moment it starts, independent of other frames. + +**Reason.** The half-interval window is how OpenTUI's TypeScript renderer batches frames across many live +renderables under a JavaScript event loop. The visible motion is the same (one glyph per interval). The +oracle (`parity/component/U.6-motion.tsx`) samples stepped spinners at multiples of their interval, where +both agree. diff --git a/packages/cli-rs/parity/deviations/T21-toast-replace-merge.md b/packages/cli-rs/parity/deviations/T21-toast-replace-merge.md new file mode 100644 index 000000000000..07418ed0f58b --- /dev/null +++ b/packages/cli-rs/parity/deviations/T21-toast-replace-merge.md @@ -0,0 +1,18 @@ +# T21: a replacing toast does not keep the old toast's fields + +## TypeScript + +`toast.show` replaces the current toast when it is not paused and nothing is queued +(`packages/tui/src/ui/toast.tsx:167-175`). It does so with `setStore("currentToast", toastOptions)`. A Solid +store merges an object into the object already there, so fields the new toast does not set stay from the old +one. Showing `{ title: "Failed to load theme: mine", message: "…" }` and then `{ message: "queued" }` shows the +title of the first toast over the message of the second. A wrong `action` can stay the same way. + +## Rust + +`Toasts::show` replaces the whole toast. The second toast shows only its own message. + +## Reason + +The TypeScript behavior is a store-merge defect, not a design choice: the toast's type has no field meant to +carry over. P-COMP fixture `U.3/toast-theme` shows one toast only, so both sides render the same cells. diff --git a/packages/cli-rs/parity/deviations/U01-broken-custom-opencode-theme.md b/packages/cli-rs/parity/deviations/U01-broken-custom-opencode-theme.md new file mode 100644 index 000000000000..577394eb80cf --- /dev/null +++ b/packages/cli-rs/parity/deviations/U01-broken-custom-opencode-theme.md @@ -0,0 +1,15 @@ +# U01: a broken custom `opencode` theme falls back to the built-in one + +**TypeScript.** A custom theme file named `opencode` replaces the built-in `opencode` theme +(`packages/tui/src/theme/index.ts:42-52`), and `opencode` is the theme every failed theme falls back to. When the +custom `opencode` is malformed, that fallback fails too: the `selected` memo rethrows for `opencode` +(`packages/tui/src/context/theme.tsx:298-308`), so the TUI stops. For example, `setCustomThemes({ opencode: { base: +{} } })` makes `parseTheme(allThemes().opencode)` throw `Invalid theme: opencode value is an invalid value`. + +**Rust.** `ThemeState` (`crates/ui/src/theme/state.rs`) shows the failed theme's error toast as for any broken +theme, then loads the built-in `opencode` theme and logs `custom theme opencode: <message>; using the built-in +opencode theme`. This holds whether the broken custom `opencode` was selected or was the fallback of another theme +(a broken custom theme, or `system` without a terminal palette). + +**Reason.** The user's decision O-89: fix the defects the TypeScript client shares in Rust, and record them as +deviations. A broken theme file should not stop the client. diff --git a/packages/cli-rs/parity/deviations/V01-history-hint.md b/packages/cli-rs/parity/deviations/V01-history-hint.md new file mode 100644 index 000000000000..a3320455080a --- /dev/null +++ b/packages/cli-rs/parity/deviations/V01-history-hint.md @@ -0,0 +1,11 @@ +# V01: "Loading session history…" during a scroll backfill + +TypeScript: the row under the transcript shows `Loading session history…` only while `session.first` loads every +older page (`routes/session/index.tsx:1574-1576`). A scroll near the top loads the next older page with no hint. + +Rust: the same row shows `Loading session history…` while any older page loads, including the page a scroll +near the top asks for (`crates/tui/src/routes/session/messages/list.rs`, `load_older`). + +Reason: on a slow server the reader otherwise sees the top of the transcript with no sign that more is coming. +The text, color (`text.feedback.info`), and place are TypeScript's. When E.8 adds `session.first`, it shows the +same hint for its load. diff --git a/packages/cli-rs/parity/deviations/V03-markdown-widget.md b/packages/cli-rs/parity/deviations/V03-markdown-widget.md new file mode 100644 index 000000000000..4ff6c789db7a --- /dev/null +++ b/packages/cli-rs/parity/deviations/V03-markdown-widget.md @@ -0,0 +1,22 @@ +# V03: Markdown on opentui-rust's widget + +TypeScript: `TextPart` (`packages/tui/src/routes/session/message-parts.tsx:173-200`) renders assistant text with +Core's `MarkdownRenderable`: the `marked` parser, `conceal` from `session.markdown` (markers hidden in `rendered` +mode, shown otherwise), every span styled through the syntax style (`markup.*` scopes), `renderNode` for code +fences (LaTeX, Mermaid), `streaming`, `internalBlockMode: "top-level"`, and grid tables with `cellPaddingX: 1`. + +Rust: `opencode_ui::markdown::view` wraps opentui-rust's `Markdown` widget +(`opentui:packages/rust/crates/opentui/src/widget/markdown.rs`), which has its own parser and lays out like Core's top-level mode +(G.3). Conceal, streaming, the code-block renderer hook, grid tables, and scope styles (G.11, +`Markdown::scope_styles`) are set as in TypeScript. `parity/fixtures/U.4a/markdown-prose.json`, +`U.4c/markdown-raw.json`, and `U.4c/markdown-table.json` match cell for cell, colors included +(`crates/ui/tests/all/content.rs`). + +Not in the corpus, documented by G.3 (`opentui:packages/rust/crates/opentui/docs/markdown.md`): task items keep their checkbox, +concealed escapes drop the backslash, quotes hold rendered blocks, and setext headings show as ATX headings in +source mode. + +The block background (`bg={theme.background.base}`) is not set; the widget has no background. The transcript +background shows through, which is the same color. + +Reason: the widget's own parser, which differs from `marked` and Core's tree-sitter queries in these cases. diff --git a/packages/cli-rs/parity/deviations/V04-reasoning-blocks.md b/packages/cli-rs/parity/deviations/V04-reasoning-blocks.md new file mode 100644 index 000000000000..426e8dcd0bd7 --- /dev/null +++ b/packages/cli-rs/parity/deviations/V04-reasoning-blocks.md @@ -0,0 +1,21 @@ +# V04: reasoning blocks in source mode + +TypeScript (`ReasoningBody` in `routes/session/message-parts.tsx`, used by `ReasoningPart` and by `ThoughtEntry` in +`routes/session/group-view.tsx`): + +- Rendered mode (the default) draws an open block's body with Core's `<markdown>` in the reasoning colors, as an + answer is drawn (since #63989). +- Source mode (`session.markdown: "source"`) keeps a `<code filetype="markdown">` view of the source, highlighted in + `text.muted`, with nothing concealed. + +Rust (`crates/tui/src/routes/session/messages/reasoning.rs` and `crates/tui/src/routes/session/grouping.rs`): + +- Consecutive reasoning parts form one reasoning group (E.8), whose header counts the steps and adds their + durations, as in TypeScript. +- The open body is the Markdown widget in both modes, with every syntax style in `text.muted`. In rendered mode it + matches TypeScript cell for cell (`E.6a/reasoning-open`: emphasis, code spans, a list and a table). In source mode it + is the Markdown widget with conceal off, not a code view; P-APP has no source-mode scenario, so how its cells differ + is not measured. + +Reason: the Rust `Code` widget has no Markdown view of its own, so the Markdown widget with conceal off shows the +source. diff --git a/packages/cli-rs/parity/deviations/V18-form-pattern-regex.md b/packages/cli-rs/parity/deviations/V18-form-pattern-regex.md new file mode 100644 index 000000000000..590b1ab0bafb --- /dev/null +++ b/packages/cli-rs/parity/deviations/V18-form-pattern-regex.md @@ -0,0 +1,18 @@ +# V18: form field patterns use Rust regex syntax + +**TypeScript.** A string field's `pattern` is checked with `new RegExp(field.pattern).test(value)` +(`packages/tui/src/util/form.ts:82-87`), an ECMAScript regex without flags. Lookahead, lookbehind and backreferences +work, and `\d`, `\w` and `\b` match ASCII only. + +**Rust.** `crates/ui/src/form.rs` checks the pattern with `regex::Regex`. Here is what differs: + +- **Lookahead, lookbehind and backreferences do not compile.** The field then shows `Invalid pattern: <pattern>` for + every answer, where TS checks the answer. Example: `^(?!main$)[a-z]+$` accepts `dev` in TS; Rust rejects every + answer with `Invalid pattern: ^(?!main$)[a-z]+$`. +- **`\d`, `\w` and `\b` match Unicode.** `^\d+$` accepts `١٢٣` (Arabic-Indic digits) and `^\w+$` accepts `café` in + Rust; TS rejects both with `Must match pattern: …`. + +Patterns that use neither give the same result in both clients. + +**Reason.** The user kept the `regex` crate instead of adding an ECMAScript engine such as `regress` (O-58, O-88). +`regex` runs in linear time, so a pattern from a server or tool cannot hang the UI. diff --git a/packages/cli-rs/parity/deviations/V25-tool-info-edge-inputs.md b/packages/cli-rs/parity/deviations/V25-tool-info-edge-inputs.md new file mode 100644 index 000000000000..ff6c7510b901 --- /dev/null +++ b/packages/cli-rs/parity/deviations/V25-tool-info-edge-inputs.md @@ -0,0 +1,17 @@ +# V25: tool summaries on malformed inputs + +TypeScript: `toolInlineInfo` (`packages/tui/src/mini/tool.ts:1194`) works on untyped JSON. A few +inputs that no current server writes take paths the Rust port does not copy: + +- A non-string `patch` in edit metadata, or a non-string `diff`, becomes the `body` as it is + (`runEdit`, `tool.ts:410-418`). A part whose state has a `content` that is not an array throws + outside the rule's `try` (`frame`, `tool.ts:1132`), so the caller fails. + +Rust (`crates/ui/src/tool_info.rs`): a non-string `patch` or `diff` gives no body. Content that is not +an array reads as no content. + +Reason: the `body` field is a string in both clients, and failing the whole summary on a bad +`content` would hide the tool line. Every other input, including values that make a TS rule throw +and fall back, matches the TS output: the P-ORACLE (`parity/oracle/U.5-tool-info.ts`) covers 60 parts +and 5,827 recorded parts from real sessions matched. Paths go through `ui::path::format_path`, the +port of `formatPath` that `toolPath` calls, so Windows bases follow `path.win32` as in TS. diff --git a/packages/cli-rs/parity/deviations/V26-login-unfamiliar-field-answer.md b/packages/cli-rs/parity/deviations/V26-login-unfamiliar-field-answer.md new file mode 100644 index 000000000000..8fcb3c530a86 --- /dev/null +++ b/packages/cli-rs/parity/deviations/V26-login-unfamiliar-field-answer.md @@ -0,0 +1,36 @@ +# V26: `auth login` answers a field of an unfamiliar type with a selection, where TS cannot + +**TypeScript.** The client does not decode the integration list against the schema +(`packages/client/src/promise/generated/client.ts:2827`), so a form field of a type the CLI does not know (from a +newer server) reaches `answerForm` like any other (`packages/cli/src/commands/handlers/auth/form.ts:28-47`). It is +skipped when its `when` does not hold, and takes its `default` when `hidden`. A `--answer` value is decoded as JSON +(`form.ts:51-60`). Otherwise `answerField` falls through to its text prompt (`form.ts:139-149`): the title (or key), +the description, the default as `String(default)`, and `Required` for an empty answer to a required field. An +empty answer to an optional field skips it. Any other answer comes back as `Number(value)`. + +`formValidateValue` then checks the value with its last, multiselect branch (`packages/tui/src/util/form.ts:73-75, +105-109`): a missing or empty answer to a required field gives `Answer required`, and a non-array gives +`Expected selections`. So: + +- **A prompted answer never passes.** It is a number, and the check wants an array. +- **A non-empty selection throws.** The check reads `field.options.some`, and the field has no `options`. Unless + the field is `custom`, the command ends with `TypeError: undefined is not an object (evaluating + 'field.options.some')` and a stack trace. + +**Rust.** `unknown_answer` (`crates/cli/src/commands/auth.rs`) does the same as TS (`when`, the hidden default, +`--answer`, the prompt's title, description and `Required`, and the checks above), with three differences: + +- The prompt takes a JSON value, as `--answer` does, instead of returning a number, so a selection can be typed: + `[]`, or `["a"]` for a custom field. +- The prompt's initial value is the default written as JSON (`["west"]`), so that it can be accepted as typed. TS + writes `String(default)` (`west`). +- A non-empty selection on a field that is not custom fails with `<key>: Select only available options`, which is + what the TS branch is written to report for a field whose options do not include the selection. Both clients exit + with status 1 and send nothing. + +**Reason.** In TS, a prompted answer can never pass and a non-empty selection crashes. Neither is behavior to copy. +Rust does what the TS code intends: answer the field with the one kind of value its check accepts. These P-CLI +scenarios compare the cases where TS does not throw: `C.5/login-answer-future-type`, +`C.5/login-answer-future-type-text`, `C.5/login-future-type-hidden`, `C.5/login-future-type-hidden-text` and +`C.5/login-future-type-no-tty`. These P-PTY scenarios compare the prompt: `C.5/login-future-type` and +`C.5/login-future-type-required`. diff --git a/packages/cli-rs/parity/deviations/W01-hand-pointer.md b/packages/cli-rs/parity/deviations/W01-hand-pointer.md new file mode 100644 index 000000000000..b5a3122f730c --- /dev/null +++ b/packages/cli-rs/parity/deviations/W01-hand-pointer.md @@ -0,0 +1,26 @@ +# W01: the hand pointer over clickable elements + +TypeScript: the TUI never sets a mouse pointer shape. `packages/tui/src` never calls `setMousePointer`, and Core +0.8.1's renderables set none. The renderer writes `OSC 22;default` on its first frame and `OSC 22;` on exit, so the +terminal shows its arrow everywhere: over tabs, links, buttons, select rows, and the pane resize handle. + +Rust: every element that acts on a click shows the hand (`OSC 22;pointer`) while the mouse is over it: + +- tabs in the strip and the rail, and the new-tab `+` (only over a tab or the button, not the empty strip); +- links: OSC 8 hyperlinks in the transcript (`features/links.rs`) and the OAuth link in DLG10; +- clickable footer and sidebar items: the goal, running subagents and shells, the working directory, MCP; +- buttons and dialog actions, the dialog close `esc`, select and list rows in dialogs, the composer, and the + autocomplete; +- toasts, user messages, the subagent row and other tool rows that open or expand on a click, reasoning, shell, + skill and usage headers, the revert banner, the "latest" button, and queued prompts; +- the diff viewer's file rows, controls, file menu, and image cards; prompt image attachments. + +A tool row, a reasoning header, or a dialog action that is not clickable in its current state keeps the default. +The pane resize handle shows the resize shape (`OSC 22;ew-resize`). Text, the transcript around these elements, +the prompt and other inputs, the terminal pane, and dialog backdrops keep the default pointer. + +`opencode_ui::click_pointer` picks the shape; the shared helpers (select rows, dialog footer actions and close, +toasts, `sidebar::on_click`, the inline and block tool rows) set it, so new elements built on them get it too. + +Reason: the user's decision O-46 ("yes"): a hand over tabs and every other clickable element, as a deliberate +deviation from TypeScript. diff --git a/packages/cli-rs/parity/deviations/W05-session-pane-click-guard.md b/packages/cli-rs/parity/deviations/W05-session-pane-click-guard.md new file mode 100644 index 000000000000..ef463a6b70b9 --- /dev/null +++ b/packages/cli-rs/parity/deviations/W05-session-pane-click-guard.md @@ -0,0 +1,22 @@ +# W05: the session pane's click guard lets presses through + +## TypeScript + +While the right pane (a terminal or a panel) has the input, `SessionFrame` lays a transparent box over the session +pane (`packages/tui/src/component/session-frame.tsx:300-322`). The box takes every press and release: a release +calls `focusSession`, which gives the prompt the focus back, and nothing under the box sees the click. It forwards +wheel events inside the transcript's viewport to the transcript. + +## Rust + +`SessionFrame` (`crates/tui/src/frame/mod.rs`) has no box. A left release that bubbles to the session pane calls +`focus_session` while the right pane is active, so the prompt gets the focus back the same way, and the wheel +reaches the transcript without forwarding. The press reaches the widget under the pointer first: a click on a +transcript button or a tab works while the right pane has the input, where TypeScript only moves the focus. The +prompt ignores the press while the right pane is active, as its `disabled()` does. + +## Reason + +opentui-rust cannot hand a wheel event to another widget, which the box needs to keep the transcript scrolling. +The difference is one action on the first click after the terminal or panel had the focus; the focus rule, which +the user reported (`rs-click-focus`), is the same. diff --git a/packages/cli-rs/parity/deviations/W11-zed-windows-db.md b/packages/cli-rs/parity/deviations/W11-zed-windows-db.md new file mode 100644 index 000000000000..7606040bd61f --- /dev/null +++ b/packages/cli-rs/parity/deviations/W11-zed-windows-db.md @@ -0,0 +1,13 @@ +# W11: Zed's database on Windows + +TypeScript: `resolveZedDbPath` (`editor-zed.ts`) tries `OPENCODE_ZED_DB`, then +`~/Library/Application Support/Zed/db/0-stable/db.sqlite` and `~/.local/share/zed/db/0-stable/db.sqlite`. Zed on +Windows keeps its database in neither, so a Zed terminal on Windows shows no selection context unless +`OPENCODE_ZED_DB` is set. + +Rust: on Windows the candidates end with `%LOCALAPPDATA%\Zed\db\0-stable\db.sqlite`, Zed's own path there +(`crates/tui/src/prompt/editor_context.rs`, `zed_db_candidates`). The database is read through `winsqlite3.dll` +from System32 (see P08). Other platforms are unchanged. + +Reason: the TS list misses Zed's Windows path; adding it gives Windows the context the other platforms have, and +an explicit `OPENCODE_ZED_DB` still wins. diff --git a/packages/cli-rs/parity/deviations/W2-windows-tz.md b/packages/cli-rs/parity/deviations/W2-windows-tz.md new file mode 100644 index 000000000000..eceae8eb77fc --- /dev/null +++ b/packages/cli-rs/parity/deviations/W2-windows-tz.md @@ -0,0 +1,14 @@ +# W2: `TZ` on a Windows without ICU is read in POSIX syntax + +**TypeScript.** Bun and Node on Windows take local times from ICU. Without `TZ` they use the Windows time zone with +its whole rule history; a `TZ` that is set is read as an IANA name, such as `TZ=America/New_York` (an empty one is +UTC). + +**Rust.** `crates/util/src/time.rs` takes the local offset from the ICU that Windows ships (`icu.dll` since Windows +10 1903, `icuin.dll` since 1703), loaded at first use through `win::IcuZone`, so it reads `TZ` and the Windows zone +as TypeScript does. Only where neither library loads does it fall back to the C runtime's `localtime_s`, which reads +`TZ` in POSIX syntax (`EST5EDT`), so an IANA name is misread, usually as UTC, and applies this year's rules of the +Windows zone to every year. + +**Reason.** Windows before 10 1703 has no system ICU, and reading IANA names without it needs the zone database or a +new dependency. Every supported Windows has `icu.dll`. diff --git a/packages/cli-rs/parity/deviations/W5-windows-session-pager.md b/packages/cli-rs/parity/deviations/W5-windows-session-pager.md new file mode 100644 index 000000000000..4b0336a0bb33 --- /dev/null +++ b/packages/cli-rs/parity/deviations/W5-windows-session-pager.md @@ -0,0 +1,11 @@ +# W5: `session list` on Windows pages through the system `more.com` + +**TypeScript.** On a Windows terminal, `session list` pipes the table into `cmd /c more` +(`packages/cli/src/commands/handlers/session/list.ts`). `cmd` looks for `more` in the current directory before +`PATH`, so a `more.bat` or `more.exe` in the project runs with the session list on its stdin. + +**Rust.** `crates/cli/src/commands/session.rs` (`pager`) starts `%SYSTEMROOT%\System32\more.com` directly +(`C:\Windows` when the variable is unset). If it cannot start, the list is printed, as before. + +**Reason.** Decision O-89: a defect the TS client shares is fixed in Rust. Listing sessions in an untrusted +checkout must not run code from that checkout. The pager the user sees is the same program. diff --git a/packages/cli-rs/parity/deviations/W6-windows-hostname.md b/packages/cli-rs/parity/deviations/W6-windows-hostname.md new file mode 100644 index 000000000000..eb7ef2fe9abe --- /dev/null +++ b/packages/cli-rs/parity/deviations/W6-windows-hostname.md @@ -0,0 +1,10 @@ +# W6: the lock's `hostname` on Windows is the NetBIOS name + +**TypeScript.** `packages/util/src/flock.ts:208` writes `os.hostname()` into a lock's `meta.json`. On Windows +that is the DNS host name, such as `build-machine-01`. + +**Rust.** `crates/local/src/lock.rs` (`hostname`) reads `COMPUTERNAME` on Windows: the NetBIOS name, in upper +case and at most 15 characters, such as `BUILD-MACHINE-0`. On Unix both read `uname`'s node name. + +**Reason.** The field is metadata only: no client reads it to decide who owns a lock, and the token and PID do +that. The DNS name needs `GetComputerNameExW` and a new `windows-sys` feature for no change in behaviour. diff --git a/packages/cli-rs/parity/deviations/X02-new-designs-graduated.md b/packages/cli-rs/parity/deviations/X02-new-designs-graduated.md new file mode 100644 index 000000000000..5ec5b19512b7 --- /dev/null +++ b/packages/cli-rs/parity/deviations/X02-new-designs-graduated.md @@ -0,0 +1,25 @@ +# X02: the Experiments dialog does not list "New designs" + +## TypeScript + +The Experiments dialog lists `New designs` (`packages/tui/src/component/dialog-experiments.tsx:20-25`), on unless the +config turns it off (#64988), and `experimental["new-designs"]: false` (`useNewDesigns()`, +`packages/tui/src/config/index.tsx:393-397`) switches the theme list, the dialog kit, autocomplete, the agent accent +step, and many dialogs back to the old designs. + +## Rust + +The Rust client draws the new designs only, whatever the config says (`decisions.md`, "Design target"). The +experiment is graduated as `packages/tui/AGENTS.md` describes: its registry entry and gates are gone, and the +registry, dialog, and `experimental.<id>` persistence stay. A `cli.json` that sets `new-designs` is read and +written unchanged; `false` has no effect. + +## Reason + +User decision: "designs should fit that and only that". Since #64988 a release starts with the new designs in both +clients, so only a config that turns the experiment off, or the Experiments dialog, shows the difference. Every P-COMP +and P-APP fixture is recorded from the TS TUI with the experiment on (`parity/lib/app.ts` `withNewDesigns`, which +also names a theme, since TS's test fixtures now default to `opencode-classic` with the experiment off), and +`parity/component/E.18a-settings.tsx` records the Experiments dialog with the same registry as Rust, without the +`new-designs` entry. `parity/scenarios/D131/designs.pty.ts` runs with the config a release starts with and is +equal. diff --git a/packages/cli-rs/parity/fixtures.ts b/packages/cli-rs/parity/fixtures.ts new file mode 100644 index 000000000000..e1b2f738eb1f --- /dev/null +++ b/packages/cli-rs/parity/fixtures.ts @@ -0,0 +1,37 @@ +// Regenerates the committed parity fixtures after a TypeScript change: runs every P-ORACLE script in +// parity/oracle, every P-COMP script in parity/component, and every P-APP scenario in parity/app, in name +// order. Each writes its own parity/fixtures/<step>/. +// +// Oracle scripts whose first line names them a "helper" (E.2-history.ts, F.4-local.ts, and others) write no +// fixture: Rust tests run them with arguments, so they are skipped here. +const parity = new URL(".", import.meta.url).pathname +const scripts = Array.from(new Bun.Glob("oracle/*.ts").scanSync({ cwd: parity })).sort() +const helpers = await Promise.all( + scripts.map(async (script) => /\bhelper\b/.test((await Bun.file(`${parity}${script}`).text()).split("\n", 1)[0])), +) +const oracles = scripts.filter((_, index) => !helpers[index]) +const components = Array.from(new Bun.Glob("component/*.tsx").scanSync({ cwd: parity })).sort() +const scenarios = Array.from(new Bun.Glob("scenarios/*/*.app.ts").scanSync({ cwd: parity })) + .sort() + .map((file) => file.slice("scenarios/".length, -".app.ts".length)) + +for (const script of oracles) run(["bun", "run", script]) +// Component scripts and scenarios run from parity/ so bun picks up the TUI preloads in parity/bunfig.toml. +for (const script of components) run(["bun", "run", script]) +// One process per scenario: the TUI keeps module state, such as the prompt drafts of +// component/prompt/draft-stash.ts, that would carry one scenario's input into the next. +for (const scenario of scenarios) + run(["bun", "test", "./app/scenarios.test.tsx"], { PARITY_SCENARIO: scenario }) +if (oracles.length + components.length + scenarios.length === 0) + console.log("fixtures: no oracle scripts, component scripts, or app scenarios yet") + +function run(command: string[], env: Record<string, string> = {}) { + console.log(`fixtures: ${Object.entries(env).map(([key, value]) => `${key}=${value} `).join("")}${command.join(" ")}`) + const proc = Bun.spawnSync(command, { + cwd: parity, + env: { ...process.env, ...env }, + stdout: "inherit", + stderr: "inherit", + }) + if (proc.exitCode !== 0) process.exit(proc.exitCode ?? 1) +} diff --git a/packages/cli-rs/parity/fixtures/C.13/auto.app.json b/packages/cli-rs/parity/fixtures/C.13/auto.app.json new file mode 100644 index 000000000000..ed775f53c431 --- /dev/null +++ b/packages/cli-rs/parity/fixtures/C.13/auto.app.json @@ -0,0 +1,47 @@ +{ + "scenario": "C.13/auto", + "width": 100, + "height": 30, + "directory": "/tmp/opencode/packages/tui", + "config": { + "animations": false, + "experimental": {"new-designs":true}, + "theme": {"name":"opencode"} + }, + "args": { + "auto": true + }, + "routes": [ + {"path":"/api/agent","json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":[{"id":"build","name":"build","mode":"primary","hidden":false,"permissions":[],"request":{"settings":{},"headers":{},"body":{}}}]}}, + {"path":"/api/provider","json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":[{"id":"demo","name":"Demo","activation":"auto","package":"demo"}]}}, + {"path":"/api/model","json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":[{"id":"model","modelID":"model","providerID":"demo","name":"Demo Model","capabilities":{"tools":true,"input":["text"],"output":["text"]},"variants":[],"time":{"released":0},"cost":[],"status":"active","enabled":true,"limit":{"context":1000,"output":100}}]}} + ], + "steps": [ + {"checkpoint":"home","until":"Demo Model","masks":[{"x":16,"y":16,"width":84,"height":1,"reason":"the placeholder example: random in TS and Rust"}],"fixture":"C.13/auto/home"} + ], + "requests": { + "writes": [], + "reads": [ + {"method":"GET","path":"/api/agent","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":[{"id":"build","name":"build","mode":"primary","hidden":false,"permissions":[],"request":{"settings":{},"headers":{},"body":{}}}]}}, + {"method":"GET","path":"/api/command","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":[]}}, + {"method":"GET","path":"/api/config","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":[]}, + {"method":"GET","path":"/api/experimental/migration/v1","query":{},"status":200,"json":{"status":"completed"}}, + {"method":"GET","path":"/api/form","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode"}},"data":[]}}, + {"method":"GET","path":"/api/fs/list","query":{"location[directory]":["<cwd>"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":[]}}, + {"method":"GET","path":"/api/info","query":{},"status":200,"json":{"version":"test","pid":0,"urls":[],"paths":{"tmp":"/tmp"},"capabilities":{"persistentPty":true}}}, + {"method":"GET","path":"/api/integration","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":[]}}, + {"method":"GET","path":"/api/location","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}}}, + {"method":"GET","path":"/api/mcp","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":[]}}, + {"method":"GET","path":"/api/mcp/resource","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":{"resources":[],"templates":[]}}}, + {"method":"GET","path":"/api/model","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":[{"id":"model","modelID":"model","providerID":"demo","name":"Demo Model","capabilities":{"tools":true,"input":["text"],"output":["text"]},"variants":[],"time":{"released":0},"cost":[],"status":"active","enabled":true,"limit":{"context":1000,"output":100}}]}}, + {"method":"GET","path":"/api/plugin","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":[]}}, + {"method":"GET","path":"/api/project","query":{},"status":200,"json":[]}, + {"method":"GET","path":"/api/provider","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":[{"id":"demo","name":"Demo","activation":"auto","package":"demo"}]}}, + {"method":"GET","path":"/api/reference","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode/packages/tui","canonical":"/tmp/opencode/packages/tui"}},"data":[]}}, + {"method":"GET","path":"/api/session/active","query":{},"status":200,"json":{"data":{}}}, + {"method":"GET","path":"/api/shell","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":[]}}, + {"method":"GET","path":"/api/skill","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":[]}}, + {"method":"GET","path":"/api/vcs","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":{"branch":{"current":"main","default":"main"}}}} + ] + } +} diff --git a/packages/cli-rs/parity/fixtures/C.13/auto/home.json b/packages/cli-rs/parity/fixtures/C.13/auto/home.json new file mode 100644 index 000000000000..de9366693696 --- /dev/null +++ b/packages/cli-rs/parity/fixtures/C.13/auto/home.json @@ -0,0 +1,32 @@ +{"width":100,"height":30,"styles":["#ffffffff #080808ff 0","#808080ff #080808ff 0","#ffffffff #080808ff 1","#808080ff #262626ff 0","#ffffffff #464646ff 1","#262626ff #080808ff 0","#7699feff #080808ff 0","#ffffffff #202020ff 0","#00000000 #00000000 0","#7699feff #202020ff 0","#808080ff #202020ff 0","#202020ff #080808ff 0"],"lines":[ +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ▄ ",[[0,31],[1,19],[0,1],[2,19],[0,30]]], +[" █▀▀█ █▀▀█ █▀▀█ █▀▀▄ █▀▀▀ █▀▀█ █▀▀█ █▀▀█ ",[[0,31],[1,19],[0,1],[2,19],[0,30]]], +[" █ █ █ █ █▀▀▀ █ █ █ █ █ █ █ █▀▀▀ ",[[0,31],[1,1],[3,2],[1,3],[3,2],[1,3],[3,3],[1,2],[3,2],[1,1],[0,1],[2,1],[4,3],[2,2],[4,2],[2,3],[4,2],[2,3],[4,3],[0,30]]], +[" ▀▀▀▀ █▀▀▀ ▀▀▀▀ ▀▀▀▀ ▀▀▀▀ ▀▀▀▀ ▀▀▀▀ ▀▀▀▀ ",[[0,31],[1,16],[5,2],[1,1],[0,1],[2,19],[0,30]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ┃ ",[[0,13],[6,1],[7,74],[0,12]]], +[" ┃ ",[[0,13],[6,1],[7,2],[8,84]]], +[" ┃ ",[[0,13],[6,1],[7,74],[0,12]]], +[" ┃ Build auto · Demo Model Demo ",[[0,13],[6,1],[7,2],[9,5],[7,1],[10,4],[7,1],[10,1],[7,12],[10,4],[7,44],[0,12]]], +[" ╹▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀ ",[[0,13],[6,1],[11,74],[0,12]]], +[" /tmp/opencode/packages/tui:main shift+tab agents ctrl+p commands ",[[0,13],[1,31],[0,21],[1,6],[0,9],[1,8],[0,12]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" test ",[[0,94],[1,4],[0,2]]], +[" ",[[0,100]]] +]} diff --git a/packages/cli-rs/parity/fixtures/C.13/command-defect.app.json b/packages/cli-rs/parity/fixtures/C.13/command-defect.app.json new file mode 100644 index 000000000000..b65b719eb3f9 --- /dev/null +++ b/packages/cli-rs/parity/fixtures/C.13/command-defect.app.json @@ -0,0 +1,69 @@ +{ + "scenario": "C.13/command-defect", + "width": 100, + "height": 30, + "directory": "/tmp/opencode/packages/tui", + "config": { + "animations": false, + "experimental": {"new-designs":true}, + "theme": {"name":"opencode"} + }, + "args": { + "sessionID": "ses_d" + }, + "routes": [ + {"path":"/api/agent","json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":[{"id":"build","name":"build","mode":"primary","hidden":false,"permissions":[],"request":{"settings":{},"headers":{},"body":{}}}]}}, + {"path":"/api/provider","json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":[{"id":"demo","name":"Demo","activation":"auto","package":"demo"}]}}, + {"path":"/api/model","json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":[{"id":"model","modelID":"model","providerID":"demo","name":"Demo Model","capabilities":{"tools":true,"input":["text"],"output":["text"]},"variants":[],"time":{"released":0},"cost":[],"status":"active","enabled":true,"limit":{"context":1000,"output":100}}]}}, + {"path":"/api/command","json":{"location":{"directory":"/tmp/opencode/packages/tui"},"data":[{"name":"review","description":"Review the working tree"}]}}, + {"path":"/api/session/ses_d","json":{"data":{"id":"ses_d","title":"Fix the parser","projectID":"proj_test","cost":0,"tokens":{"input":0,"output":0,"reasoning":0,"cache":{"read":0,"write":0}},"time":{"created":2,"updated":2},"location":{"directory":"/tmp/opencode/packages/tui"}}}}, + {"path":"/api/session/ses_d/message","json":{"data":[{"id":"msg_1","type":"user","text":"Why?","time":{"created":1}}],"cursor":{}}}, + {"path":"/api/session/ses_d/inbox","json":{"data":[]}}, + {"method":"POST","path":"/api/session/ses_d/agent"}, + {"method":"POST","path":"/api/session/ses_d/command","status":500,"json":{"_tag":"UnknownError","message":"Server failed to handle the request. Check server logs for details.","ref":"err_1234abcd"}} + ], + "steps": [ + {"checkpoint":"session","until":"Demo Model","fixture":"C.13/command-defect/session"}, + {"type":"/review now"}, + {"keys":["enter"]}, + {"checkpoint":"failed","until":"Check server logs","fixture":"C.13/command-defect/failed"} + ], + "requests": { + "writes": [ + {"method":"POST","path":"/api/session/ses_d/agent","query":{},"body":{"agent":"build"},"status":204}, + {"method":"POST","path":"/api/session/ses_d/model","query":{},"body":{"model":{"providerID":"demo","id":"model"}},"status":204}, + {"method":"POST","path":"/api/session/ses_d/command","query":{},"body":{"name":"review","text":"now","files":[],"agents":[],"delivery":"steer"},"status":500,"json":{"_tag":"UnknownError","message":"Server failed to handle the request. Check server logs for details.","ref":"err_1234abcd"}} + ], + "reads": [ + {"method":"GET","path":"/api/agent","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":[{"id":"build","name":"build","mode":"primary","hidden":false,"permissions":[],"request":{"settings":{},"headers":{},"body":{}}}]}}, + {"method":"GET","path":"/api/command","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui"},"data":[{"name":"review","description":"Review the working tree"}]}}, + {"method":"GET","path":"/api/config","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":[]}, + {"method":"GET","path":"/api/experimental/job","query":{"descendants":["true"],"sessionID":["ses_d"],"status":["running"]},"status":200,"json":{"data":[]}}, + {"method":"GET","path":"/api/experimental/migration/v1","query":{},"status":200,"json":{"status":"completed"}}, + {"method":"GET","path":"/api/experimental/session/ses_d/terminal","query":{},"status":200,"json":{"data":[]}}, + {"method":"GET","path":"/api/form","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode"}},"data":[]}}, + {"method":"GET","path":"/api/fs/list","query":{"location[directory]":["<cwd>"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":[]}}, + {"method":"GET","path":"/api/info","query":{},"status":200,"json":{"version":"test","pid":0,"urls":[],"paths":{"tmp":"/tmp"},"capabilities":{"persistentPty":true}}}, + {"method":"GET","path":"/api/integration","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":[]}}, + {"method":"GET","path":"/api/location","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}}}, + {"method":"GET","path":"/api/mcp","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":[]}}, + {"method":"GET","path":"/api/mcp/resource","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":{"resources":[],"templates":[]}}}, + {"method":"GET","path":"/api/model","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":[{"id":"model","modelID":"model","providerID":"demo","name":"Demo Model","capabilities":{"tools":true,"input":["text"],"output":["text"]},"variants":[],"time":{"released":0},"cost":[],"status":"active","enabled":true,"limit":{"context":1000,"output":100}}]}}, + {"method":"GET","path":"/api/plugin","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":[]}}, + {"method":"GET","path":"/api/project","query":{},"status":200,"json":[]}, + {"method":"GET","path":"/api/provider","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":[{"id":"demo","name":"Demo","activation":"auto","package":"demo"}]}}, + {"method":"GET","path":"/api/reference","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode/packages/tui","canonical":"/tmp/opencode/packages/tui"}},"data":[]}}, + {"method":"GET","path":"/api/session","query":{"limit":["200"],"order":["desc"],"parentID":["ses_d"]},"status":200,"json":{"data":[],"cursor":{}}}, + {"method":"GET","path":"/api/session/active","query":{},"status":200,"json":{"data":{}}}, + {"method":"GET","path":"/api/session/ses_d","query":{},"status":200,"json":{"data":{"id":"ses_d","title":"Fix the parser","projectID":"proj_test","cost":0,"tokens":{"input":0,"output":0,"reasoning":0,"cache":{"read":0,"write":0}},"time":{"created":2,"updated":2},"location":{"directory":"/tmp/opencode/packages/tui"}}}}, + {"method":"GET","path":"/api/session/ses_d/form","query":{},"status":200,"json":{"data":[]}}, + {"method":"GET","path":"/api/session/ses_d/inbox","query":{},"status":200,"json":{"data":[]}}, + {"method":"GET","path":"/api/session/ses_d/message","query":{"limit":["20"],"order":["desc"]},"status":200,"json":{"data":[{"id":"msg_1","type":"user","text":"Why?","time":{"created":1}}],"cursor":{}}}, + {"method":"GET","path":"/api/session/ses_d/permission","query":{},"status":200,"json":{"data":[]}}, + {"method":"GET","path":"/api/shell","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":[]}}, + {"method":"GET","path":"/api/skill","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":[]}}, + {"method":"GET","path":"/api/vcs","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":{"branch":{"current":"main","default":"main"}}}}, + {"method":"POST","path":"/api/rpc/opencode.goal/get","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"body":{"input":{"sessionID":"ses_d"}},"status":200,"json":{"output":null}} + ] + } +} diff --git a/packages/cli-rs/parity/fixtures/C.13/command-defect/failed.json b/packages/cli-rs/parity/fixtures/C.13/command-defect/failed.json new file mode 100644 index 000000000000..3b4abeef8997 --- /dev/null +++ b/packages/cli-rs/parity/fixtures/C.13/command-defect/failed.json @@ -0,0 +1,32 @@ +{"width":100,"height":30,"styles":["#ffffffff #202020ff 0","#ffffffff #202020ff 1","#808080ff #080808ff 0","#ffffffff #080808ff 0","#ef6c6cff #080808ff 0","#7699feff #141414ff 0","#ffffffff #141414ff 0","#ef6c6cff #141414ff 0","#808080ff #202020ff 0","#7699feff #080808ff 0","#7699feff #202020ff 0","#202020ff #080808ff 0"],"lines":[ +[" Fix the parser + ",[[0,3],[1,14],[0,15],[2,3],[3,65]]], +[" ┃ ┃ ",[[3,38],[4,1],[0,58],[4,1],[3,2]]], +[" ┃ ┃ Failed to run command x ┃ ",[[3,2],[5,1],[6,35],[7,1],[0,2],[1,21],[0,32],[8,1],[0,2],[7,1],[3,2]]], +[" ┃ Why? ┃ ┃ ",[[3,2],[5,1],[6,35],[7,1],[0,58],[7,1],[3,2]]], +[" ┃ ┃ Server failed to handle the request. Check server logs ┃ ",[[3,2],[5,1],[6,35],[7,1],[0,58],[7,1],[3,2]]], +[" ┃ for details. ┃ ",[[3,38],[4,1],[0,58],[4,1],[3,2]]], +[" ┃ ┃ ",[[3,38],[4,1],[0,58],[4,1],[3,2]]], +[" ",[[3,100]]], +[" ",[[3,100]]], +[" ",[[3,100]]], +[" ",[[3,100]]], +[" ",[[3,100]]], +[" ",[[3,100]]], +[" ",[[3,100]]], +[" ",[[3,100]]], +[" ",[[3,100]]], +[" ",[[3,100]]], +[" ",[[3,100]]], +[" ",[[3,100]]], +[" ",[[3,100]]], +[" ",[[3,100]]], +[" ",[[3,100]]], +[" ",[[3,100]]], +[" ┃ ",[[3,2],[9,1],[0,95],[3,2]]], +[" ┃ /review now ",[[3,2],[9,1],[0,95],[3,2]]], +[" ┃ ",[[3,2],[9,1],[0,95],[3,2]]], +[" ┃ Build · Demo Model Demo ",[[3,2],[9,1],[0,2],[10,5],[0,1],[8,1],[0,12],[8,4],[0,70],[3,2]]], +[" ╹▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀ ",[[3,2],[9,1],[11,95],[3,2]]], +[" /tmp/opencode/packages/tui:main shift+tab agents ctrl+p commands ",[[3,2],[2,31],[3,42],[2,6],[3,9],[2,8],[3,2]]], +[" ",[[3,100]]] +]} diff --git a/packages/cli-rs/parity/fixtures/C.13/command-defect/session.json b/packages/cli-rs/parity/fixtures/C.13/command-defect/session.json new file mode 100644 index 000000000000..69fa705e7cec --- /dev/null +++ b/packages/cli-rs/parity/fixtures/C.13/command-defect/session.json @@ -0,0 +1,32 @@ +{"width":100,"height":30,"styles":["#ffffffff #202020ff 0","#ffffffff #202020ff 1","#808080ff #080808ff 0","#ffffffff #080808ff 0","#7699feff #141414ff 0","#ffffffff #141414ff 0","#7699feff #080808ff 0","#7699feff #202020ff 0","#808080ff #202020ff 0","#202020ff #080808ff 0"],"lines":[ +[" Fix the parser + ",[[0,3],[1,14],[0,15],[2,3],[3,65]]], +[" ",[[3,100]]], +[" ┃ ",[[3,2],[4,1],[5,95],[3,2]]], +[" ┃ Why? ",[[3,2],[4,1],[5,95],[3,2]]], +[" ┃ ",[[3,2],[4,1],[5,95],[3,2]]], +[" ",[[3,100]]], +[" ",[[3,100]]], +[" ",[[3,100]]], +[" ",[[3,100]]], +[" ",[[3,100]]], +[" ",[[3,100]]], +[" ",[[3,100]]], +[" ",[[3,100]]], +[" ",[[3,100]]], +[" ",[[3,100]]], +[" ",[[3,100]]], +[" ",[[3,100]]], +[" ",[[3,100]]], +[" ",[[3,100]]], +[" ",[[3,100]]], +[" ",[[3,100]]], +[" ",[[3,100]]], +[" ",[[3,100]]], +[" ┃ ",[[3,2],[6,1],[0,95],[3,2]]], +[" ┃ ",[[3,2],[6,1],[0,95],[3,2]]], +[" ┃ ",[[3,2],[6,1],[0,95],[3,2]]], +[" ┃ Build · Demo Model Demo ",[[3,2],[6,1],[0,2],[7,5],[0,1],[8,1],[0,12],[8,4],[0,70],[3,2]]], +[" ╹▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀ ",[[3,2],[6,1],[9,95],[3,2]]], +[" /tmp/opencode/packages/tui:main shift+tab agents ctrl+p commands ",[[3,2],[2,31],[3,42],[2,6],[3,9],[2,8],[3,2]]], +[" ",[[3,100]]] +]} diff --git a/packages/cli-rs/parity/fixtures/C.13/prompt-continue.app.json b/packages/cli-rs/parity/fixtures/C.13/prompt-continue.app.json new file mode 100644 index 000000000000..38f648dbba2a --- /dev/null +++ b/packages/cli-rs/parity/fixtures/C.13/prompt-continue.app.json @@ -0,0 +1,71 @@ +{ + "scenario": "C.13/prompt-continue", + "width": 100, + "height": 30, + "directory": "/tmp/opencode/packages/tui", + "config": { + "animations": false, + "experimental": {"new-designs":true}, + "theme": {"name":"opencode"} + }, + "args": { + "continue": true, + "prompt": "hello" + }, + "routes": [ + {"path":"/api/agent","json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":[{"id":"build","name":"build","mode":"primary","hidden":false,"permissions":[],"request":{"settings":{},"headers":{},"body":{}}}]}}, + {"path":"/api/provider","json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":[{"id":"demo","name":"Demo","activation":"auto","package":"demo"}]}}, + {"path":"/api/model","json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":[{"id":"model","modelID":"model","providerID":"demo","name":"Demo Model","capabilities":{"tools":true,"input":["text"],"output":["text"]},"variants":[],"time":{"released":0},"cost":[],"status":"active","enabled":true,"limit":{"context":1000,"output":100}}]}}, + {"path":"/api/session","json":{"data":[{"id":"ses_b","title":"Fix the parser","projectID":"proj_test","cost":0,"tokens":{"input":0,"output":0,"reasoning":0,"cache":{"read":0,"write":0}},"time":{"created":2,"updated":2},"location":{"directory":"/tmp/opencode/packages/tui"}}],"cursor":{}}}, + {"path":"/api/session/ses_b","json":{"data":{"id":"ses_b","title":"Fix the parser","projectID":"proj_test","cost":0,"tokens":{"input":0,"output":0,"reasoning":0,"cache":{"read":0,"write":0}},"time":{"created":2,"updated":2},"location":{"directory":"/tmp/opencode/packages/tui"}}}}, + {"path":"/api/session/ses_b/message","json":{"data":[{"id":"msg_1","type":"user","text":"Why?","time":{"created":1}}],"cursor":{}}}, + {"path":"/api/session/ses_b/inbox","json":{"data":[]}}, + {"method":"POST","path":"/api/session/ses_b/agent"}, + {"method":"POST","path":"/api/session/ses_b/prompt","json":{"data":{"id":"msg_p","sessionID":"ses_b","time":{"created":3},"type":"user","payload":{"text":"hello"},"delivery":"steer"}}}, + {"path":"/api/session/dummy","json":{"data":{"id":"dummy","title":"","projectID":"proj_test","cost":0,"tokens":{"input":0,"output":0,"reasoning":0,"cache":{"read":0,"write":0}},"time":{"created":1,"updated":1},"location":{"directory":"/tmp/opencode/packages/tui"}}}}, + {"path":"/api/session/dummy/message","json":{"data":[],"cursor":{}}}, + {"path":"/api/session/dummy/inbox","json":{"data":[]}} + ], + "steps": [ + {"checkpoint":"sent","until":"Fix the parser","fixture":"C.13/prompt-continue/sent"} + ], + "requests": { + "writes": [ + {"method":"POST","path":"/api/session/ses_b/agent","query":{},"body":{"agent":"build"},"status":204}, + {"method":"POST","path":"/api/session/ses_b/model","query":{},"body":{"model":{"providerID":"demo","id":"model"}},"status":204}, + {"method":"POST","path":"/api/session/ses_b/prompt","query":{},"body":{"id":"<msg>","text":"hello","files":[],"agents":[],"delivery":"steer"},"status":200,"json":{"data":{"id":"msg_p","sessionID":"ses_b","time":{"created":3},"type":"user","payload":{"text":"hello"},"delivery":"steer"}}} + ], + "reads": [ + {"method":"GET","path":"/api/agent","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":[{"id":"build","name":"build","mode":"primary","hidden":false,"permissions":[],"request":{"settings":{},"headers":{},"body":{}}}]}}, + {"method":"GET","path":"/api/command","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":[]}}, + {"method":"GET","path":"/api/config","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":[]}, + {"method":"GET","path":"/api/experimental/job","query":{"descendants":["true"],"sessionID":["ses_b"],"status":["running"]},"status":200,"json":{"data":[]}}, + {"method":"GET","path":"/api/experimental/migration/v1","query":{},"status":200,"json":{"status":"completed"}}, + {"method":"GET","path":"/api/experimental/session/ses_b/terminal","query":{},"status":200,"json":{"data":[]}}, + {"method":"GET","path":"/api/form","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode"}},"data":[]}}, + {"method":"GET","path":"/api/fs/list","query":{"location[directory]":["<cwd>"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":[]}}, + {"method":"GET","path":"/api/info","query":{},"status":200,"json":{"version":"test","pid":0,"urls":[],"paths":{"tmp":"/tmp"},"capabilities":{"persistentPty":true}}}, + {"method":"GET","path":"/api/integration","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":[]}}, + {"method":"GET","path":"/api/location","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}}}, + {"method":"GET","path":"/api/mcp","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":[]}}, + {"method":"GET","path":"/api/mcp/resource","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":{"resources":[],"templates":[]}}}, + {"method":"GET","path":"/api/model","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":[{"id":"model","modelID":"model","providerID":"demo","name":"Demo Model","capabilities":{"tools":true,"input":["text"],"output":["text"]},"variants":[],"time":{"released":0},"cost":[],"status":"active","enabled":true,"limit":{"context":1000,"output":100}}]}}, + {"method":"GET","path":"/api/plugin","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":[]}}, + {"method":"GET","path":"/api/project","query":{},"status":200,"json":[]}, + {"method":"GET","path":"/api/provider","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":[{"id":"demo","name":"Demo","activation":"auto","package":"demo"}]}}, + {"method":"GET","path":"/api/reference","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode/packages/tui","canonical":"/tmp/opencode/packages/tui"}},"data":[]}}, + {"method":"GET","path":"/api/session","query":{"archived":["false"],"directory":["/tmp/opencode/packages/tui"],"limit":["1"],"order":["desc"],"parentID":["null"]},"status":200,"json":{"data":[{"id":"ses_b","title":"Fix the parser","projectID":"proj_test","cost":0,"tokens":{"input":0,"output":0,"reasoning":0,"cache":{"read":0,"write":0}},"time":{"created":2,"updated":2},"location":{"directory":"/tmp/opencode/packages/tui"}}],"cursor":{}}}, + {"method":"GET","path":"/api/session","query":{"limit":["200"],"order":["desc"],"parentID":["ses_b"]},"status":200,"json":{"data":[{"id":"ses_b","title":"Fix the parser","projectID":"proj_test","cost":0,"tokens":{"input":0,"output":0,"reasoning":0,"cache":{"read":0,"write":0}},"time":{"created":2,"updated":2},"location":{"directory":"/tmp/opencode/packages/tui"}}],"cursor":{}}}, + {"method":"GET","path":"/api/session/active","query":{},"status":200,"json":{"data":{}}}, + {"method":"GET","path":"/api/session/ses_b","query":{},"status":200,"json":{"data":{"id":"ses_b","title":"Fix the parser","projectID":"proj_test","cost":0,"tokens":{"input":0,"output":0,"reasoning":0,"cache":{"read":0,"write":0}},"time":{"created":2,"updated":2},"location":{"directory":"/tmp/opencode/packages/tui"}}}}, + {"method":"GET","path":"/api/session/ses_b/form","query":{},"status":200,"json":{"data":[]}}, + {"method":"GET","path":"/api/session/ses_b/inbox","query":{},"status":200,"json":{"data":[]}}, + {"method":"GET","path":"/api/session/ses_b/message","query":{"limit":["20"],"order":["desc"]},"status":200,"json":{"data":[{"id":"msg_1","type":"user","text":"Why?","time":{"created":1}}],"cursor":{}}}, + {"method":"GET","path":"/api/session/ses_b/permission","query":{},"status":200,"json":{"data":[]}}, + {"method":"GET","path":"/api/shell","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":[]}}, + {"method":"GET","path":"/api/skill","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":[]}}, + {"method":"GET","path":"/api/vcs","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":{"branch":{"current":"main","default":"main"}}}}, + {"method":"POST","path":"/api/rpc/opencode.goal/get","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"body":{"input":{"sessionID":"ses_b"}},"status":200,"json":{"output":null}} + ] + } +} diff --git a/packages/cli-rs/parity/fixtures/C.13/prompt-continue/sent.json b/packages/cli-rs/parity/fixtures/C.13/prompt-continue/sent.json new file mode 100644 index 000000000000..098c06ce1731 --- /dev/null +++ b/packages/cli-rs/parity/fixtures/C.13/prompt-continue/sent.json @@ -0,0 +1,32 @@ +{"width":100,"height":30,"styles":["#ffffffff #202020ff 0","#93a2b7ff #202020ff 1","#ffffffff #202020ff 1","#808080ff #080808ff 0","#ffffffff #080808ff 0","#7699feff #141414ff 0","#ffffffff #141414ff 0","#484848ff #141414ff 0","#7699feff #080808ff 0","#7699feff #202020ff 0","#808080ff #202020ff 0","#202020ff #080808ff 0"],"lines":[ +[" ⠋ Fix the parser + ",[[0,1],[1,1],[0,1],[2,14],[0,15],[3,3],[4,65]]], +[" ",[[4,100]]], +[" ┃ ",[[4,2],[5,1],[6,95],[4,2]]], +[" ┃ Why? ",[[4,2],[5,1],[6,95],[4,2]]], +[" ┃ ",[[4,2],[5,1],[6,95],[4,2]]], +[" ",[[4,100]]], +[" ┃ ",[[4,2],[7,1],[6,95],[4,2]]], +[" ┃ hello ",[[4,2],[7,1],[6,95],[4,2]]], +[" ┃ ",[[4,2],[7,1],[6,95],[4,2]]], +[" ",[[4,100]]], +[" ",[[4,100]]], +[" ",[[4,100]]], +[" ",[[4,100]]], +[" ",[[4,100]]], +[" ",[[4,100]]], +[" ",[[4,100]]], +[" ",[[4,100]]], +[" ",[[4,100]]], +[" ",[[4,100]]], +[" ",[[4,100]]], +[" ",[[4,100]]], +[" ",[[4,100]]], +[" ",[[4,100]]], +[" ┃ ",[[4,2],[8,1],[0,95],[4,2]]], +[" ┃ ",[[4,2],[8,1],[0,95],[4,2]]], +[" ┃ ",[[4,2],[8,1],[0,95],[4,2]]], +[" ┃ Build · Demo Model Demo ",[[4,2],[8,1],[0,2],[9,5],[0,1],[10,1],[0,12],[10,4],[0,70],[4,2]]], +[" ╹▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀ ",[[4,2],[8,1],[11,95],[4,2]]], +[" /tmp/opencode/packages/tui:main shift+tab agents ctrl+p commands ",[[4,2],[3,31],[4,42],[3,6],[4,9],[3,8],[4,2]]], +[" ",[[4,100]]] +]} diff --git a/packages/cli-rs/parity/fixtures/C.13/prompt-new.app.json b/packages/cli-rs/parity/fixtures/C.13/prompt-new.app.json new file mode 100644 index 000000000000..dc1d980f19d1 --- /dev/null +++ b/packages/cli-rs/parity/fixtures/C.13/prompt-new.app.json @@ -0,0 +1,62 @@ +{ + "scenario": "C.13/prompt-new", + "width": 100, + "height": 30, + "directory": "/tmp/opencode/packages/tui", + "config": { + "animations": false, + "experimental": {"new-designs":true}, + "theme": {"name":"opencode"} + }, + "args": { + "prompt": "hello", + "newSessionID": "ses_new" + }, + "routes": [ + {"path":"/api/agent","json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":[{"id":"build","name":"build","mode":"primary","hidden":false,"permissions":[],"request":{"settings":{},"headers":{},"body":{}}}]}}, + {"path":"/api/provider","json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":[{"id":"demo","name":"Demo","activation":"auto","package":"demo"}]}}, + {"path":"/api/model","json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":[{"id":"model","modelID":"model","providerID":"demo","name":"Demo Model","capabilities":{"tools":true,"input":["text"],"output":["text"]},"variants":[],"time":{"released":0},"cost":[],"status":"active","enabled":true,"limit":{"context":1000,"output":100}}]}}, + {"method":"POST","path":"/api/session","json":{"data":{"id":"ses_new","title":"","projectID":"proj_test","cost":0,"tokens":{"input":0,"output":0,"reasoning":0,"cache":{"read":0,"write":0}},"time":{"created":1,"updated":1},"location":{"directory":"/tmp/opencode/packages/tui"}}}}, + {"path":"/api/session/ses_new","json":{"data":{"id":"ses_new","title":"","projectID":"proj_test","cost":0,"tokens":{"input":0,"output":0,"reasoning":0,"cache":{"read":0,"write":0}},"time":{"created":1,"updated":1},"location":{"directory":"/tmp/opencode/packages/tui"}}}}, + {"path":"/api/session/ses_new/message","json":{"data":[],"cursor":{}}}, + {"path":"/api/session/ses_new/inbox","json":{"data":[]}}, + {"method":"POST","path":"/api/session/ses_new/prompt","json":{"data":{"id":"msg_p","sessionID":"ses_new","time":{"created":3},"type":"user","payload":{"text":"hello"},"delivery":"steer"}}} + ], + "steps": [ + {"checkpoint":"sent","until":"Demo Model","fixture":"C.13/prompt-new/sent"} + ], + "requests": { + "writes": [ + {"method":"POST","path":"/api/session","query":{},"body":{"id":"ses_new","agent":"build","model":{"providerID":"demo","id":"model"},"location":{"directory":"/tmp/opencode/packages/tui"}},"status":200,"json":{"data":{"id":"ses_new","title":"","projectID":"proj_test","cost":0,"tokens":{"input":0,"output":0,"reasoning":0,"cache":{"read":0,"write":0}},"time":{"created":1,"updated":1},"location":{"directory":"/tmp/opencode/packages/tui"}}}}, + {"method":"POST","path":"/api/session/ses_new/model","query":{},"body":{"model":{"providerID":"demo","id":"model"}},"status":204}, + {"method":"POST","path":"/api/session/ses_new/prompt","query":{},"body":{"id":"<msg>","text":"hello","files":[],"agents":[],"delivery":"steer"},"status":200,"json":{"data":{"id":"msg_p","sessionID":"ses_new","time":{"created":3},"type":"user","payload":{"text":"hello"},"delivery":"steer"}}} + ], + "reads": [ + {"method":"GET","path":"/api/agent","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":[{"id":"build","name":"build","mode":"primary","hidden":false,"permissions":[],"request":{"settings":{},"headers":{},"body":{}}}]}}, + {"method":"GET","path":"/api/command","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":[]}}, + {"method":"GET","path":"/api/config","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":[]}, + {"method":"GET","path":"/api/experimental/job","query":{"descendants":["true"],"sessionID":["ses_new"],"status":["running"]},"status":200,"json":{"data":[]}}, + {"method":"GET","path":"/api/experimental/migration/v1","query":{},"status":200,"json":{"status":"completed"}}, + {"method":"GET","path":"/api/experimental/session/ses_new/terminal","query":{},"status":200,"json":{"data":[]}}, + {"method":"GET","path":"/api/form","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode"}},"data":[]}}, + {"method":"GET","path":"/api/fs/list","query":{"location[directory]":["<cwd>"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":[]}}, + {"method":"GET","path":"/api/info","query":{},"status":200,"json":{"version":"test","pid":0,"urls":[],"paths":{"tmp":"/tmp"},"capabilities":{"persistentPty":true}}}, + {"method":"GET","path":"/api/integration","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":[]}}, + {"method":"GET","path":"/api/location","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}}}, + {"method":"GET","path":"/api/mcp","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":[]}}, + {"method":"GET","path":"/api/mcp/resource","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":{"resources":[],"templates":[]}}}, + {"method":"GET","path":"/api/model","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":[{"id":"model","modelID":"model","providerID":"demo","name":"Demo Model","capabilities":{"tools":true,"input":["text"],"output":["text"]},"variants":[],"time":{"released":0},"cost":[],"status":"active","enabled":true,"limit":{"context":1000,"output":100}}]}}, + {"method":"GET","path":"/api/plugin","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":[]}}, + {"method":"GET","path":"/api/project","query":{},"status":200,"json":[]}, + {"method":"GET","path":"/api/provider","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":[{"id":"demo","name":"Demo","activation":"auto","package":"demo"}]}}, + {"method":"GET","path":"/api/reference","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode/packages/tui","canonical":"/tmp/opencode/packages/tui"}},"data":[]}}, + {"method":"GET","path":"/api/session/active","query":{},"status":200,"json":{"data":{}}}, + {"method":"GET","path":"/api/session/ses_new/form","query":{},"status":200,"json":{"data":[]}}, + {"method":"GET","path":"/api/session/ses_new/permission","query":{},"status":200,"json":{"data":[]}}, + {"method":"GET","path":"/api/shell","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":[]}}, + {"method":"GET","path":"/api/skill","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":[]}}, + {"method":"GET","path":"/api/vcs","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":{"branch":{"current":"main","default":"main"}}}}, + {"method":"POST","path":"/api/rpc/opencode.goal/get","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"body":{"input":{"sessionID":"ses_new"}},"status":200,"json":{"output":null}} + ] + } +} diff --git a/packages/cli-rs/parity/fixtures/C.13/prompt-new/sent.json b/packages/cli-rs/parity/fixtures/C.13/prompt-new/sent.json new file mode 100644 index 000000000000..d21d9cf1c08e --- /dev/null +++ b/packages/cli-rs/parity/fixtures/C.13/prompt-new/sent.json @@ -0,0 +1,32 @@ +{"width":100,"height":30,"styles":["#ffffffff #202020ff 0","#93a2b7ff #202020ff 1","#808080ff #080808ff 0","#ffffffff #080808ff 0","#484848ff #141414ff 0","#ffffffff #141414ff 0","#7699feff #080808ff 0","#7699feff #202020ff 0","#808080ff #202020ff 0","#202020ff #080808ff 0"],"lines":[ +[" ⠋ + ",[[0,1],[1,1],[0,30],[2,3],[3,65]]], +[" ",[[3,100]]], +[" ┃ ",[[3,2],[4,1],[5,95],[3,2]]], +[" ┃ hello ",[[3,2],[4,1],[5,95],[3,2]]], +[" ┃ ",[[3,2],[4,1],[5,95],[3,2]]], +[" ",[[3,100]]], +[" ",[[3,100]]], +[" ",[[3,100]]], +[" ",[[3,100]]], +[" ",[[3,100]]], +[" ",[[3,100]]], +[" ",[[3,100]]], +[" ",[[3,100]]], +[" ",[[3,100]]], +[" ",[[3,100]]], +[" ",[[3,100]]], +[" ",[[3,100]]], +[" ",[[3,100]]], +[" ",[[3,100]]], +[" ",[[3,100]]], +[" ",[[3,100]]], +[" ",[[3,100]]], +[" ",[[3,100]]], +[" ┃ ",[[3,2],[6,1],[0,95],[3,2]]], +[" ┃ ",[[3,2],[6,1],[0,95],[3,2]]], +[" ┃ ",[[3,2],[6,1],[0,95],[3,2]]], +[" ┃ Build · Demo Model Demo ",[[3,2],[6,1],[0,2],[7,5],[0,1],[8,1],[0,12],[8,4],[0,70],[3,2]]], +[" ╹▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀ ",[[3,2],[6,1],[9,95],[3,2]]], +[" /tmp/opencode/packages/tui:main shift+tab agents ctrl+p commands ",[[3,2],[2,31],[3,42],[2,6],[3,9],[2,8],[3,2]]], +[" ",[[3,100]]] +]} diff --git a/packages/cli-rs/parity/fixtures/C.13/prompt-session.app.json b/packages/cli-rs/parity/fixtures/C.13/prompt-session.app.json new file mode 100644 index 000000000000..547123e3f5fc --- /dev/null +++ b/packages/cli-rs/parity/fixtures/C.13/prompt-session.app.json @@ -0,0 +1,66 @@ +{ + "scenario": "C.13/prompt-session", + "width": 100, + "height": 30, + "directory": "/tmp/opencode/packages/tui", + "config": { + "animations": false, + "experimental": {"new-designs":true}, + "theme": {"name":"opencode"} + }, + "args": { + "sessionID": "ses_b", + "prompt": "hello" + }, + "routes": [ + {"path":"/api/agent","json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":[{"id":"build","name":"build","mode":"primary","hidden":false,"permissions":[],"request":{"settings":{},"headers":{},"body":{}}}]}}, + {"path":"/api/provider","json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":[{"id":"demo","name":"Demo","activation":"auto","package":"demo"}]}}, + {"path":"/api/model","json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":[{"id":"model","modelID":"model","providerID":"demo","name":"Demo Model","capabilities":{"tools":true,"input":["text"],"output":["text"]},"variants":[],"time":{"released":0},"cost":[],"status":"active","enabled":true,"limit":{"context":1000,"output":100}}]}}, + {"path":"/api/session/ses_b","json":{"data":{"id":"ses_b","title":"Fix the parser","projectID":"proj_test","cost":0,"tokens":{"input":0,"output":0,"reasoning":0,"cache":{"read":0,"write":0}},"time":{"created":2,"updated":2},"location":{"directory":"/tmp/opencode/packages/tui"}}}}, + {"path":"/api/session/ses_b/message","json":{"data":[{"id":"msg_1","type":"user","text":"Why?","time":{"created":1}}],"cursor":{}}}, + {"path":"/api/session/ses_b/inbox","json":{"data":[]}}, + {"method":"POST","path":"/api/session/ses_b/agent"}, + {"method":"POST","path":"/api/session/ses_b/prompt","json":{"data":{"id":"msg_p","sessionID":"ses_b","time":{"created":3},"type":"user","payload":{"text":"hello"},"delivery":"steer"}}} + ], + "steps": [ + {"checkpoint":"sent","until":"Demo Model","fixture":"C.13/prompt-session/sent"} + ], + "requests": { + "writes": [ + {"method":"POST","path":"/api/session/ses_b/agent","query":{},"body":{"agent":"build"},"status":204}, + {"method":"POST","path":"/api/session/ses_b/model","query":{},"body":{"model":{"providerID":"demo","id":"model"}},"status":204}, + {"method":"POST","path":"/api/session/ses_b/prompt","query":{},"body":{"id":"<msg>","text":"hello","files":[],"agents":[],"delivery":"steer"},"status":200,"json":{"data":{"id":"msg_p","sessionID":"ses_b","time":{"created":3},"type":"user","payload":{"text":"hello"},"delivery":"steer"}}} + ], + "reads": [ + {"method":"GET","path":"/api/agent","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":[{"id":"build","name":"build","mode":"primary","hidden":false,"permissions":[],"request":{"settings":{},"headers":{},"body":{}}}]}}, + {"method":"GET","path":"/api/command","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":[]}}, + {"method":"GET","path":"/api/config","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":[]}, + {"method":"GET","path":"/api/experimental/job","query":{"descendants":["true"],"sessionID":["ses_b"],"status":["running"]},"status":200,"json":{"data":[]}}, + {"method":"GET","path":"/api/experimental/migration/v1","query":{},"status":200,"json":{"status":"completed"}}, + {"method":"GET","path":"/api/experimental/session/ses_b/terminal","query":{},"status":200,"json":{"data":[]}}, + {"method":"GET","path":"/api/form","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode"}},"data":[]}}, + {"method":"GET","path":"/api/fs/list","query":{"location[directory]":["<cwd>"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":[]}}, + {"method":"GET","path":"/api/info","query":{},"status":200,"json":{"version":"test","pid":0,"urls":[],"paths":{"tmp":"/tmp"},"capabilities":{"persistentPty":true}}}, + {"method":"GET","path":"/api/integration","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":[]}}, + {"method":"GET","path":"/api/location","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}}}, + {"method":"GET","path":"/api/mcp","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":[]}}, + {"method":"GET","path":"/api/mcp/resource","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":{"resources":[],"templates":[]}}}, + {"method":"GET","path":"/api/model","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":[{"id":"model","modelID":"model","providerID":"demo","name":"Demo Model","capabilities":{"tools":true,"input":["text"],"output":["text"]},"variants":[],"time":{"released":0},"cost":[],"status":"active","enabled":true,"limit":{"context":1000,"output":100}}]}}, + {"method":"GET","path":"/api/plugin","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":[]}}, + {"method":"GET","path":"/api/project","query":{},"status":200,"json":[]}, + {"method":"GET","path":"/api/provider","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":[{"id":"demo","name":"Demo","activation":"auto","package":"demo"}]}}, + {"method":"GET","path":"/api/reference","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode/packages/tui","canonical":"/tmp/opencode/packages/tui"}},"data":[]}}, + {"method":"GET","path":"/api/session","query":{"limit":["200"],"order":["desc"],"parentID":["ses_b"]},"status":200,"json":{"data":[],"cursor":{}}}, + {"method":"GET","path":"/api/session/active","query":{},"status":200,"json":{"data":{}}}, + {"method":"GET","path":"/api/session/ses_b","query":{},"status":200,"json":{"data":{"id":"ses_b","title":"Fix the parser","projectID":"proj_test","cost":0,"tokens":{"input":0,"output":0,"reasoning":0,"cache":{"read":0,"write":0}},"time":{"created":2,"updated":2},"location":{"directory":"/tmp/opencode/packages/tui"}}}}, + {"method":"GET","path":"/api/session/ses_b/form","query":{},"status":200,"json":{"data":[]}}, + {"method":"GET","path":"/api/session/ses_b/inbox","query":{},"status":200,"json":{"data":[]}}, + {"method":"GET","path":"/api/session/ses_b/message","query":{"limit":["20"],"order":["desc"]},"status":200,"json":{"data":[{"id":"msg_1","type":"user","text":"Why?","time":{"created":1}}],"cursor":{}}}, + {"method":"GET","path":"/api/session/ses_b/permission","query":{},"status":200,"json":{"data":[]}}, + {"method":"GET","path":"/api/shell","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":[]}}, + {"method":"GET","path":"/api/skill","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":[]}}, + {"method":"GET","path":"/api/vcs","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":{"branch":{"current":"main","default":"main"}}}}, + {"method":"POST","path":"/api/rpc/opencode.goal/get","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"body":{"input":{"sessionID":"ses_b"}},"status":200,"json":{"output":null}} + ] + } +} diff --git a/packages/cli-rs/parity/fixtures/C.13/prompt-session/sent.json b/packages/cli-rs/parity/fixtures/C.13/prompt-session/sent.json new file mode 100644 index 000000000000..098c06ce1731 --- /dev/null +++ b/packages/cli-rs/parity/fixtures/C.13/prompt-session/sent.json @@ -0,0 +1,32 @@ +{"width":100,"height":30,"styles":["#ffffffff #202020ff 0","#93a2b7ff #202020ff 1","#ffffffff #202020ff 1","#808080ff #080808ff 0","#ffffffff #080808ff 0","#7699feff #141414ff 0","#ffffffff #141414ff 0","#484848ff #141414ff 0","#7699feff #080808ff 0","#7699feff #202020ff 0","#808080ff #202020ff 0","#202020ff #080808ff 0"],"lines":[ +[" ⠋ Fix the parser + ",[[0,1],[1,1],[0,1],[2,14],[0,15],[3,3],[4,65]]], +[" ",[[4,100]]], +[" ┃ ",[[4,2],[5,1],[6,95],[4,2]]], +[" ┃ Why? ",[[4,2],[5,1],[6,95],[4,2]]], +[" ┃ ",[[4,2],[5,1],[6,95],[4,2]]], +[" ",[[4,100]]], +[" ┃ ",[[4,2],[7,1],[6,95],[4,2]]], +[" ┃ hello ",[[4,2],[7,1],[6,95],[4,2]]], +[" ┃ ",[[4,2],[7,1],[6,95],[4,2]]], +[" ",[[4,100]]], +[" ",[[4,100]]], +[" ",[[4,100]]], +[" ",[[4,100]]], +[" ",[[4,100]]], +[" ",[[4,100]]], +[" ",[[4,100]]], +[" ",[[4,100]]], +[" ",[[4,100]]], +[" ",[[4,100]]], +[" ",[[4,100]]], +[" ",[[4,100]]], +[" ",[[4,100]]], +[" ",[[4,100]]], +[" ┃ ",[[4,2],[8,1],[0,95],[4,2]]], +[" ┃ ",[[4,2],[8,1],[0,95],[4,2]]], +[" ┃ ",[[4,2],[8,1],[0,95],[4,2]]], +[" ┃ Build · Demo Model Demo ",[[4,2],[8,1],[0,2],[9,5],[0,1],[10,1],[0,12],[10,4],[0,70],[4,2]]], +[" ╹▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀ ",[[4,2],[8,1],[11,95],[4,2]]], +[" /tmp/opencode/packages/tui:main shift+tab agents ctrl+p commands ",[[4,2],[3,31],[4,42],[3,6],[4,9],[3,8],[4,2]]], +[" ",[[4,100]]] +]} diff --git a/packages/cli-rs/parity/fixtures/C.3/stats.json b/packages/cli-rs/parity/fixtures/C.3/stats.json new file mode 100644 index 000000000000..e19bf3bd9316 --- /dev/null +++ b/packages/cli-rs/parity/fixtures/C.3/stats.json @@ -0,0 +1,259 @@ +{ +"calendar": [ +{"tz":"UTC","offset":0,"input":{"name":"two weeks","activity":[{"date":"2026-01-01","steps":1},{"date":"2026-01-02","steps":50}],"from":1767225600000,"to":1767830400000,"maxWeeks":53},"output":{"weeks":[[{"date":"2025-12-29","steps":0,"level":-1},{"date":"2025-12-30","steps":0,"level":-1},{"date":"2025-12-31","steps":0,"level":-1},{"date":"2026-01-01","steps":1,"level":2},{"date":"2026-01-02","steps":50,"level":4},{"date":"2026-01-03","steps":0,"level":0},{"date":"2026-01-04","steps":0,"level":0}],[{"date":"2026-01-05","steps":0,"level":0},{"date":"2026-01-06","steps":0,"level":0},{"date":"2026-01-07","steps":0,"level":0},{"date":"2026-01-08","steps":0,"level":-1},{"date":"2026-01-09","steps":0,"level":-1},{"date":"2026-01-10","steps":0,"level":-1},{"date":"2026-01-11","steps":0,"level":-1}]],"months":[{"week":0,"label":"Jan","span":2}],"clipped":false}}, +{"tz":"UTC","offset":0,"input":{"name":"clipped to one week","activity":[],"from":1767225600000,"to":1767830400000,"maxWeeks":1},"output":{"weeks":[[{"date":"2026-01-05","steps":0,"level":0},{"date":"2026-01-06","steps":0,"level":0},{"date":"2026-01-07","steps":0,"level":0},{"date":"2026-01-08","steps":0,"level":-1},{"date":"2026-01-09","steps":0,"level":-1},{"date":"2026-01-10","steps":0,"level":-1},{"date":"2026-01-11","steps":0,"level":-1}]],"months":[{"week":0,"label":"Jan","span":1}],"clipped":true}}, +{"tz":"UTC","offset":0,"input":{"name":"capped at 53 weeks","activity":[{"date":"2026-01-01","steps":1},{"date":"2026-01-02","steps":50}],"from":1577836800000,"to":1767830400000,"maxWeeks":200},"output":{"weeks":[[{"date":"2025-01-06","steps":0,"level":0},{"date":"2025-01-07","steps":0,"level":0},{"date":"2025-01-08","steps":0,"level":0},{"date":"2025-01-09","steps":0,"level":0},{"date":"2025-01-10","steps":0,"level":0},{"date":"2025-01-11","steps":0,"level":0},{"date":"2025-01-12","steps":0,"level":0}],[{"date":"2025-01-13","steps":0,"level":0},{"date":"2025-01-14","steps":0,"level":0},{"date":"2025-01-15","steps":0,"level":0},{"date":"2025-01-16","steps":0,"level":0},{"date":"2025-01-17","steps":0,"level":0},{"date":"2025-01-18","steps":0,"level":0},{"date":"2025-01-19","steps":0,"level":0}],[{"date":"2025-01-20","steps":0,"level":0},{"date":"2025-01-21","steps":0,"level":0},{"date":"2025-01-22","steps":0,"level":0},{"date":"2025-01-23","steps":0,"level":0},{"date":"2025-01-24","steps":0,"level":0},{"date":"2025-01-25","steps":0,"level":0},{"date":"2025-01-26","steps":0,"level":0}],[{"date":"2025-01-27","steps":0,"level":0},{"date":"2025-01-28","steps":0,"level":0},{"date":"2025-01-29","steps":0,"level":0},{"date":"2025-01-30","steps":0,"level":0},{"date":"2025-01-31","steps":0,"level":0},{"date":"2025-02-01","steps":0,"level":0},{"date":"2025-02-02","steps":0,"level":0}],[{"date":"2025-02-03","steps":0,"level":0},{"date":"2025-02-04","steps":0,"level":0},{"date":"2025-02-05","steps":0,"level":0},{"date":"2025-02-06","steps":0,"level":0},{"date":"2025-02-07","steps":0,"level":0},{"date":"2025-02-08","steps":0,"level":0},{"date":"2025-02-09","steps":0,"level":0}],[{"date":"2025-02-10","steps":0,"level":0},{"date":"2025-02-11","steps":0,"level":0},{"date":"2025-02-12","steps":0,"level":0},{"date":"2025-02-13","steps":0,"level":0},{"date":"2025-02-14","steps":0,"level":0},{"date":"2025-02-15","steps":0,"level":0},{"date":"2025-02-16","steps":0,"level":0}],[{"date":"2025-02-17","steps":0,"level":0},{"date":"2025-02-18","steps":0,"level":0},{"date":"2025-02-19","steps":0,"level":0},{"date":"2025-02-20","steps":0,"level":0},{"date":"2025-02-21","steps":0,"level":0},{"date":"2025-02-22","steps":0,"level":0},{"date":"2025-02-23","steps":0,"level":0}],[{"date":"2025-02-24","steps":0,"level":0},{"date":"2025-02-25","steps":0,"level":0},{"date":"2025-02-26","steps":0,"level":0},{"date":"2025-02-27","steps":0,"level":0},{"date":"2025-02-28","steps":0,"level":0},{"date":"2025-03-01","steps":0,"level":0},{"date":"2025-03-02","steps":0,"level":0}],[{"date":"2025-03-03","steps":0,"level":0},{"date":"2025-03-04","steps":0,"level":0},{"date":"2025-03-05","steps":0,"level":0},{"date":"2025-03-06","steps":0,"level":0},{"date":"2025-03-07","steps":0,"level":0},{"date":"2025-03-08","steps":0,"level":0},{"date":"2025-03-09","steps":0,"level":0}],[{"date":"2025-03-10","steps":0,"level":0},{"date":"2025-03-11","steps":0,"level":0},{"date":"2025-03-12","steps":0,"level":0},{"date":"2025-03-13","steps":0,"level":0},{"date":"2025-03-14","steps":0,"level":0},{"date":"2025-03-15","steps":0,"level":0},{"date":"2025-03-16","steps":0,"level":0}],[{"date":"2025-03-17","steps":0,"level":0},{"date":"2025-03-18","steps":0,"level":0},{"date":"2025-03-19","steps":0,"level":0},{"date":"2025-03-20","steps":0,"level":0},{"date":"2025-03-21","steps":0,"level":0},{"date":"2025-03-22","steps":0,"level":0},{"date":"2025-03-23","steps":0,"level":0}],[{"date":"2025-03-24","steps":0,"level":0},{"date":"2025-03-25","steps":0,"level":0},{"date":"2025-03-26","steps":0,"level":0},{"date":"2025-03-27","steps":0,"level":0},{"date":"2025-03-28","steps":0,"level":0},{"date":"2025-03-29","steps":0,"level":0},{"date":"2025-03-30","steps":0,"level":0}],[{"date":"2025-03-31","steps":0,"level":0},{"date":"2025-04-01","steps":0,"level":0},{"date":"2025-04-02","steps":0,"level":0},{"date":"2025-04-03","steps":0,"level":0},{"date":"2025-04-04","steps":0,"level":0},{"date":"2025-04-05","steps":0,"level":0},{"date":"2025-04-06","steps":0,"level":0}],[{"date":"2025-04-07","steps":0,"level":0},{"date":"2025-04-08","steps":0,"level":0},{"date":"2025-04-09","steps":0,"level":0},{"date":"2025-04-10","steps":0,"level":0},{"date":"2025-04-11","steps":0,"level":0},{"date":"2025-04-12","steps":0,"level":0},{"date":"2025-04-13","steps":0,"level":0}],[{"date":"2025-04-14","steps":0,"level":0},{"date":"2025-04-15","steps":0,"level":0},{"date":"2025-04-16","steps":0,"level":0},{"date":"2025-04-17","steps":0,"level":0},{"date":"2025-04-18","steps":0,"level":0},{"date":"2025-04-19","steps":0,"level":0},{"date":"2025-04-20","steps":0,"level":0}],[{"date":"2025-04-21","steps":0,"level":0},{"date":"2025-04-22","steps":0,"level":0},{"date":"2025-04-23","steps":0,"level":0},{"date":"2025-04-24","steps":0,"level":0},{"date":"2025-04-25","steps":0,"level":0},{"date":"2025-04-26","steps":0,"level":0},{"date":"2025-04-27","steps":0,"level":0}],[{"date":"2025-04-28","steps":0,"level":0},{"date":"2025-04-29","steps":0,"level":0},{"date":"2025-04-30","steps":0,"level":0},{"date":"2025-05-01","steps":0,"level":0},{"date":"2025-05-02","steps":0,"level":0},{"date":"2025-05-03","steps":0,"level":0},{"date":"2025-05-04","steps":0,"level":0}],[{"date":"2025-05-05","steps":0,"level":0},{"date":"2025-05-06","steps":0,"level":0},{"date":"2025-05-07","steps":0,"level":0},{"date":"2025-05-08","steps":0,"level":0},{"date":"2025-05-09","steps":0,"level":0},{"date":"2025-05-10","steps":0,"level":0},{"date":"2025-05-11","steps":0,"level":0}],[{"date":"2025-05-12","steps":0,"level":0},{"date":"2025-05-13","steps":0,"level":0},{"date":"2025-05-14","steps":0,"level":0},{"date":"2025-05-15","steps":0,"level":0},{"date":"2025-05-16","steps":0,"level":0},{"date":"2025-05-17","steps":0,"level":0},{"date":"2025-05-18","steps":0,"level":0}],[{"date":"2025-05-19","steps":0,"level":0},{"date":"2025-05-20","steps":0,"level":0},{"date":"2025-05-21","steps":0,"level":0},{"date":"2025-05-22","steps":0,"level":0},{"date":"2025-05-23","steps":0,"level":0},{"date":"2025-05-24","steps":0,"level":0},{"date":"2025-05-25","steps":0,"level":0}],[{"date":"2025-05-26","steps":0,"level":0},{"date":"2025-05-27","steps":0,"level":0},{"date":"2025-05-28","steps":0,"level":0},{"date":"2025-05-29","steps":0,"level":0},{"date":"2025-05-30","steps":0,"level":0},{"date":"2025-05-31","steps":0,"level":0},{"date":"2025-06-01","steps":0,"level":0}],[{"date":"2025-06-02","steps":0,"level":0},{"date":"2025-06-03","steps":0,"level":0},{"date":"2025-06-04","steps":0,"level":0},{"date":"2025-06-05","steps":0,"level":0},{"date":"2025-06-06","steps":0,"level":0},{"date":"2025-06-07","steps":0,"level":0},{"date":"2025-06-08","steps":0,"level":0}],[{"date":"2025-06-09","steps":0,"level":0},{"date":"2025-06-10","steps":0,"level":0},{"date":"2025-06-11","steps":0,"level":0},{"date":"2025-06-12","steps":0,"level":0},{"date":"2025-06-13","steps":0,"level":0},{"date":"2025-06-14","steps":0,"level":0},{"date":"2025-06-15","steps":0,"level":0}],[{"date":"2025-06-16","steps":0,"level":0},{"date":"2025-06-17","steps":0,"level":0},{"date":"2025-06-18","steps":0,"level":0},{"date":"2025-06-19","steps":0,"level":0},{"date":"2025-06-20","steps":0,"level":0},{"date":"2025-06-21","steps":0,"level":0},{"date":"2025-06-22","steps":0,"level":0}],[{"date":"2025-06-23","steps":0,"level":0},{"date":"2025-06-24","steps":0,"level":0},{"date":"2025-06-25","steps":0,"level":0},{"date":"2025-06-26","steps":0,"level":0},{"date":"2025-06-27","steps":0,"level":0},{"date":"2025-06-28","steps":0,"level":0},{"date":"2025-06-29","steps":0,"level":0}],[{"date":"2025-06-30","steps":0,"level":0},{"date":"2025-07-01","steps":0,"level":0},{"date":"2025-07-02","steps":0,"level":0},{"date":"2025-07-03","steps":0,"level":0},{"date":"2025-07-04","steps":0,"level":0},{"date":"2025-07-05","steps":0,"level":0},{"date":"2025-07-06","steps":0,"level":0}],[{"date":"2025-07-07","steps":0,"level":0},{"date":"2025-07-08","steps":0,"level":0},{"date":"2025-07-09","steps":0,"level":0},{"date":"2025-07-10","steps":0,"level":0},{"date":"2025-07-11","steps":0,"level":0},{"date":"2025-07-12","steps":0,"level":0},{"date":"2025-07-13","steps":0,"level":0}],[{"date":"2025-07-14","steps":0,"level":0},{"date":"2025-07-15","steps":0,"level":0},{"date":"2025-07-16","steps":0,"level":0},{"date":"2025-07-17","steps":0,"level":0},{"date":"2025-07-18","steps":0,"level":0},{"date":"2025-07-19","steps":0,"level":0},{"date":"2025-07-20","steps":0,"level":0}],[{"date":"2025-07-21","steps":0,"level":0},{"date":"2025-07-22","steps":0,"level":0},{"date":"2025-07-23","steps":0,"level":0},{"date":"2025-07-24","steps":0,"level":0},{"date":"2025-07-25","steps":0,"level":0},{"date":"2025-07-26","steps":0,"level":0},{"date":"2025-07-27","steps":0,"level":0}],[{"date":"2025-07-28","steps":0,"level":0},{"date":"2025-07-29","steps":0,"level":0},{"date":"2025-07-30","steps":0,"level":0},{"date":"2025-07-31","steps":0,"level":0},{"date":"2025-08-01","steps":0,"level":0},{"date":"2025-08-02","steps":0,"level":0},{"date":"2025-08-03","steps":0,"level":0}],[{"date":"2025-08-04","steps":0,"level":0},{"date":"2025-08-05","steps":0,"level":0},{"date":"2025-08-06","steps":0,"level":0},{"date":"2025-08-07","steps":0,"level":0},{"date":"2025-08-08","steps":0,"level":0},{"date":"2025-08-09","steps":0,"level":0},{"date":"2025-08-10","steps":0,"level":0}],[{"date":"2025-08-11","steps":0,"level":0},{"date":"2025-08-12","steps":0,"level":0},{"date":"2025-08-13","steps":0,"level":0},{"date":"2025-08-14","steps":0,"level":0},{"date":"2025-08-15","steps":0,"level":0},{"date":"2025-08-16","steps":0,"level":0},{"date":"2025-08-17","steps":0,"level":0}],[{"date":"2025-08-18","steps":0,"level":0},{"date":"2025-08-19","steps":0,"level":0},{"date":"2025-08-20","steps":0,"level":0},{"date":"2025-08-21","steps":0,"level":0},{"date":"2025-08-22","steps":0,"level":0},{"date":"2025-08-23","steps":0,"level":0},{"date":"2025-08-24","steps":0,"level":0}],[{"date":"2025-08-25","steps":0,"level":0},{"date":"2025-08-26","steps":0,"level":0},{"date":"2025-08-27","steps":0,"level":0},{"date":"2025-08-28","steps":0,"level":0},{"date":"2025-08-29","steps":0,"level":0},{"date":"2025-08-30","steps":0,"level":0},{"date":"2025-08-31","steps":0,"level":0}],[{"date":"2025-09-01","steps":0,"level":0},{"date":"2025-09-02","steps":0,"level":0},{"date":"2025-09-03","steps":0,"level":0},{"date":"2025-09-04","steps":0,"level":0},{"date":"2025-09-05","steps":0,"level":0},{"date":"2025-09-06","steps":0,"level":0},{"date":"2025-09-07","steps":0,"level":0}],[{"date":"2025-09-08","steps":0,"level":0},{"date":"2025-09-09","steps":0,"level":0},{"date":"2025-09-10","steps":0,"level":0},{"date":"2025-09-11","steps":0,"level":0},{"date":"2025-09-12","steps":0,"level":0},{"date":"2025-09-13","steps":0,"level":0},{"date":"2025-09-14","steps":0,"level":0}],[{"date":"2025-09-15","steps":0,"level":0},{"date":"2025-09-16","steps":0,"level":0},{"date":"2025-09-17","steps":0,"level":0},{"date":"2025-09-18","steps":0,"level":0},{"date":"2025-09-19","steps":0,"level":0},{"date":"2025-09-20","steps":0,"level":0},{"date":"2025-09-21","steps":0,"level":0}],[{"date":"2025-09-22","steps":0,"level":0},{"date":"2025-09-23","steps":0,"level":0},{"date":"2025-09-24","steps":0,"level":0},{"date":"2025-09-25","steps":0,"level":0},{"date":"2025-09-26","steps":0,"level":0},{"date":"2025-09-27","steps":0,"level":0},{"date":"2025-09-28","steps":0,"level":0}],[{"date":"2025-09-29","steps":0,"level":0},{"date":"2025-09-30","steps":0,"level":0},{"date":"2025-10-01","steps":0,"level":0},{"date":"2025-10-02","steps":0,"level":0},{"date":"2025-10-03","steps":0,"level":0},{"date":"2025-10-04","steps":0,"level":0},{"date":"2025-10-05","steps":0,"level":0}],[{"date":"2025-10-06","steps":0,"level":0},{"date":"2025-10-07","steps":0,"level":0},{"date":"2025-10-08","steps":0,"level":0},{"date":"2025-10-09","steps":0,"level":0},{"date":"2025-10-10","steps":0,"level":0},{"date":"2025-10-11","steps":0,"level":0},{"date":"2025-10-12","steps":0,"level":0}],[{"date":"2025-10-13","steps":0,"level":0},{"date":"2025-10-14","steps":0,"level":0},{"date":"2025-10-15","steps":0,"level":0},{"date":"2025-10-16","steps":0,"level":0},{"date":"2025-10-17","steps":0,"level":0},{"date":"2025-10-18","steps":0,"level":0},{"date":"2025-10-19","steps":0,"level":0}],[{"date":"2025-10-20","steps":0,"level":0},{"date":"2025-10-21","steps":0,"level":0},{"date":"2025-10-22","steps":0,"level":0},{"date":"2025-10-23","steps":0,"level":0},{"date":"2025-10-24","steps":0,"level":0},{"date":"2025-10-25","steps":0,"level":0},{"date":"2025-10-26","steps":0,"level":0}],[{"date":"2025-10-27","steps":0,"level":0},{"date":"2025-10-28","steps":0,"level":0},{"date":"2025-10-29","steps":0,"level":0},{"date":"2025-10-30","steps":0,"level":0},{"date":"2025-10-31","steps":0,"level":0},{"date":"2025-11-01","steps":0,"level":0},{"date":"2025-11-02","steps":0,"level":0}],[{"date":"2025-11-03","steps":0,"level":0},{"date":"2025-11-04","steps":0,"level":0},{"date":"2025-11-05","steps":0,"level":0},{"date":"2025-11-06","steps":0,"level":0},{"date":"2025-11-07","steps":0,"level":0},{"date":"2025-11-08","steps":0,"level":0},{"date":"2025-11-09","steps":0,"level":0}],[{"date":"2025-11-10","steps":0,"level":0},{"date":"2025-11-11","steps":0,"level":0},{"date":"2025-11-12","steps":0,"level":0},{"date":"2025-11-13","steps":0,"level":0},{"date":"2025-11-14","steps":0,"level":0},{"date":"2025-11-15","steps":0,"level":0},{"date":"2025-11-16","steps":0,"level":0}],[{"date":"2025-11-17","steps":0,"level":0},{"date":"2025-11-18","steps":0,"level":0},{"date":"2025-11-19","steps":0,"level":0},{"date":"2025-11-20","steps":0,"level":0},{"date":"2025-11-21","steps":0,"level":0},{"date":"2025-11-22","steps":0,"level":0},{"date":"2025-11-23","steps":0,"level":0}],[{"date":"2025-11-24","steps":0,"level":0},{"date":"2025-11-25","steps":0,"level":0},{"date":"2025-11-26","steps":0,"level":0},{"date":"2025-11-27","steps":0,"level":0},{"date":"2025-11-28","steps":0,"level":0},{"date":"2025-11-29","steps":0,"level":0},{"date":"2025-11-30","steps":0,"level":0}],[{"date":"2025-12-01","steps":0,"level":0},{"date":"2025-12-02","steps":0,"level":0},{"date":"2025-12-03","steps":0,"level":0},{"date":"2025-12-04","steps":0,"level":0},{"date":"2025-12-05","steps":0,"level":0},{"date":"2025-12-06","steps":0,"level":0},{"date":"2025-12-07","steps":0,"level":0}],[{"date":"2025-12-08","steps":0,"level":0},{"date":"2025-12-09","steps":0,"level":0},{"date":"2025-12-10","steps":0,"level":0},{"date":"2025-12-11","steps":0,"level":0},{"date":"2025-12-12","steps":0,"level":0},{"date":"2025-12-13","steps":0,"level":0},{"date":"2025-12-14","steps":0,"level":0}],[{"date":"2025-12-15","steps":0,"level":0},{"date":"2025-12-16","steps":0,"level":0},{"date":"2025-12-17","steps":0,"level":0},{"date":"2025-12-18","steps":0,"level":0},{"date":"2025-12-19","steps":0,"level":0},{"date":"2025-12-20","steps":0,"level":0},{"date":"2025-12-21","steps":0,"level":0}],[{"date":"2025-12-22","steps":0,"level":0},{"date":"2025-12-23","steps":0,"level":0},{"date":"2025-12-24","steps":0,"level":0},{"date":"2025-12-25","steps":0,"level":0},{"date":"2025-12-26","steps":0,"level":0},{"date":"2025-12-27","steps":0,"level":0},{"date":"2025-12-28","steps":0,"level":0}],[{"date":"2025-12-29","steps":0,"level":0},{"date":"2025-12-30","steps":0,"level":0},{"date":"2025-12-31","steps":0,"level":0},{"date":"2026-01-01","steps":1,"level":2},{"date":"2026-01-02","steps":50,"level":4},{"date":"2026-01-03","steps":0,"level":0},{"date":"2026-01-04","steps":0,"level":0}],[{"date":"2026-01-05","steps":0,"level":0},{"date":"2026-01-06","steps":0,"level":0},{"date":"2026-01-07","steps":0,"level":0},{"date":"2026-01-08","steps":0,"level":-1},{"date":"2026-01-09","steps":0,"level":-1},{"date":"2026-01-10","steps":0,"level":-1},{"date":"2026-01-11","steps":0,"level":-1}]],"months":[{"week":0,"label":"Jan","span":4},{"week":4,"label":"Feb","span":4},{"week":8,"label":"Mar","span":4},{"week":12,"label":"Apr","span":4},{"week":16,"label":"May","span":5},{"week":21,"label":"Jun","span":4},{"week":25,"label":"Jul","span":5},{"week":30,"label":"Aug","span":4},{"week":34,"label":"Sep","span":4},{"week":38,"label":"Oct","span":5},{"week":43,"label":"Nov","span":4},{"week":47,"label":"Dec","span":4},{"week":51,"label":"Jan","span":2}],"clipped":true}}, +{"tz":"UTC","offset":0,"input":{"name":"partial months","activity":[{"date":"2026-01-01","steps":1},{"date":"2026-01-02","steps":50}],"from":1777420800000,"to":1779235200000,"maxWeeks":53},"output":{"weeks":[[{"date":"2026-04-27","steps":0,"level":-1},{"date":"2026-04-28","steps":0,"level":-1},{"date":"2026-04-29","steps":0,"level":0},{"date":"2026-04-30","steps":0,"level":0},{"date":"2026-05-01","steps":0,"level":0},{"date":"2026-05-02","steps":0,"level":0},{"date":"2026-05-03","steps":0,"level":0}],[{"date":"2026-05-04","steps":0,"level":0},{"date":"2026-05-05","steps":0,"level":0},{"date":"2026-05-06","steps":0,"level":0},{"date":"2026-05-07","steps":0,"level":0},{"date":"2026-05-08","steps":0,"level":0},{"date":"2026-05-09","steps":0,"level":0},{"date":"2026-05-10","steps":0,"level":0}],[{"date":"2026-05-11","steps":0,"level":0},{"date":"2026-05-12","steps":0,"level":0},{"date":"2026-05-13","steps":0,"level":0},{"date":"2026-05-14","steps":0,"level":0},{"date":"2026-05-15","steps":0,"level":0},{"date":"2026-05-16","steps":0,"level":0},{"date":"2026-05-17","steps":0,"level":0}],[{"date":"2026-05-18","steps":0,"level":0},{"date":"2026-05-19","steps":0,"level":0},{"date":"2026-05-20","steps":0,"level":-1},{"date":"2026-05-21","steps":0,"level":-1},{"date":"2026-05-22","steps":0,"level":-1},{"date":"2026-05-23","steps":0,"level":-1},{"date":"2026-05-24","steps":0,"level":-1}]],"months":[{"week":0,"label":"Apr","span":1},{"week":1,"label":"May","span":3}],"clipped":false}}, +{"tz":"UTC","offset":0,"input":{"name":"one day","activity":[{"date":"2026-01-01","steps":1},{"date":"2026-01-02","steps":50}],"from":1775001600000,"to":1775088000000,"maxWeeks":53},"output":{"weeks":[[{"date":"2026-03-30","steps":0,"level":-1},{"date":"2026-03-31","steps":0,"level":-1},{"date":"2026-04-01","steps":0,"level":0},{"date":"2026-04-02","steps":0,"level":-1},{"date":"2026-04-03","steps":0,"level":-1},{"date":"2026-04-04","steps":0,"level":-1},{"date":"2026-04-05","steps":0,"level":-1}]],"months":[{"week":0,"label":"Apr","span":1}],"clipped":false}}, +{"tz":"UTC","offset":0,"input":{"name":"year boundary","activity":[{"date":"2026-01-01","steps":1},{"date":"2026-01-02","steps":50}],"from":1766361600000,"to":1768176000000,"maxWeeks":53},"output":{"weeks":[[{"date":"2025-12-22","steps":0,"level":0},{"date":"2025-12-23","steps":0,"level":0},{"date":"2025-12-24","steps":0,"level":0},{"date":"2025-12-25","steps":0,"level":0},{"date":"2025-12-26","steps":0,"level":0},{"date":"2025-12-27","steps":0,"level":0},{"date":"2025-12-28","steps":0,"level":0}],[{"date":"2025-12-29","steps":0,"level":0},{"date":"2025-12-30","steps":0,"level":0},{"date":"2025-12-31","steps":0,"level":0},{"date":"2026-01-01","steps":1,"level":2},{"date":"2026-01-02","steps":50,"level":4},{"date":"2026-01-03","steps":0,"level":0},{"date":"2026-01-04","steps":0,"level":0}],[{"date":"2026-01-05","steps":0,"level":0},{"date":"2026-01-06","steps":0,"level":0},{"date":"2026-01-07","steps":0,"level":0},{"date":"2026-01-08","steps":0,"level":0},{"date":"2026-01-09","steps":0,"level":0},{"date":"2026-01-10","steps":0,"level":0},{"date":"2026-01-11","steps":0,"level":0}]],"months":[{"week":0,"label":"Dec","span":1},{"week":1,"label":"Jan","span":2}],"clipped":false}}, +{"tz":"UTC","offset":0,"input":{"name":"leap day","activity":[{"date":"2024-02-29","steps":1},{"date":"2024-03-10","steps":1}],"from":1708905600000,"to":1710201600000,"maxWeeks":53},"output":{"weeks":[[{"date":"2024-02-26","steps":0,"level":0},{"date":"2024-02-27","steps":0,"level":0},{"date":"2024-02-28","steps":0,"level":0},{"date":"2024-02-29","steps":1,"level":4},{"date":"2024-03-01","steps":0,"level":0},{"date":"2024-03-02","steps":0,"level":0},{"date":"2024-03-03","steps":0,"level":0}],[{"date":"2024-03-04","steps":0,"level":0},{"date":"2024-03-05","steps":0,"level":0},{"date":"2024-03-06","steps":0,"level":0},{"date":"2024-03-07","steps":0,"level":0},{"date":"2024-03-08","steps":0,"level":0},{"date":"2024-03-09","steps":0,"level":0},{"date":"2024-03-10","steps":1,"level":4}],[{"date":"2024-03-11","steps":0,"level":0},{"date":"2024-03-12","steps":0,"level":-1},{"date":"2024-03-13","steps":0,"level":-1},{"date":"2024-03-14","steps":0,"level":-1},{"date":"2024-03-15","steps":0,"level":-1},{"date":"2024-03-16","steps":0,"level":-1},{"date":"2024-03-17","steps":0,"level":-1}]],"months":[{"week":0,"label":"Feb","span":1},{"week":1,"label":"Mar","span":2}],"clipped":false}}, +{"tz":"UTC","offset":0,"input":{"name":"one distinct count","activity":[{"date":"2026-01-01","steps":10},{"date":"2026-01-02","steps":10}],"from":1767225600000,"to":1767830400000,"maxWeeks":53},"output":{"weeks":[[{"date":"2025-12-29","steps":0,"level":-1},{"date":"2025-12-30","steps":0,"level":-1},{"date":"2025-12-31","steps":0,"level":-1},{"date":"2026-01-01","steps":10,"level":4},{"date":"2026-01-02","steps":10,"level":4},{"date":"2026-01-03","steps":0,"level":0},{"date":"2026-01-04","steps":0,"level":0}],[{"date":"2026-01-05","steps":0,"level":0},{"date":"2026-01-06","steps":0,"level":0},{"date":"2026-01-07","steps":0,"level":0},{"date":"2026-01-08","steps":0,"level":-1},{"date":"2026-01-09","steps":0,"level":-1},{"date":"2026-01-10","steps":0,"level":-1},{"date":"2026-01-11","steps":0,"level":-1}]],"months":[{"week":0,"label":"Jan","span":2}],"clipped":false}}, +{"tz":"UTC","offset":0,"input":{"name":"eight levels","activity":[{"date":"2026-01-01","steps":1},{"date":"2026-01-02","steps":2},{"date":"2026-01-03","steps":3},{"date":"2026-01-04","steps":4},{"date":"2026-01-05","steps":5},{"date":"2026-01-06","steps":6},{"date":"2026-01-07","steps":7},{"date":"2026-01-08","steps":8}],"from":1767225600000,"to":1768003200000,"maxWeeks":53},"output":{"weeks":[[{"date":"2025-12-29","steps":0,"level":-1},{"date":"2025-12-30","steps":0,"level":-1},{"date":"2025-12-31","steps":0,"level":-1},{"date":"2026-01-01","steps":1,"level":1},{"date":"2026-01-02","steps":2,"level":1},{"date":"2026-01-03","steps":3,"level":2},{"date":"2026-01-04","steps":4,"level":2}],[{"date":"2026-01-05","steps":5,"level":3},{"date":"2026-01-06","steps":6,"level":3},{"date":"2026-01-07","steps":7,"level":4},{"date":"2026-01-08","steps":8,"level":4},{"date":"2026-01-09","steps":0,"level":0},{"date":"2026-01-10","steps":0,"level":-1},{"date":"2026-01-11","steps":0,"level":-1}]],"months":[{"week":0,"label":"Jan","span":2}],"clipped":false}}, +{"tz":"UTC","offset":0,"input":{"name":"clipped keeps range levels","activity":[{"date":"2026-01-01","steps":50},{"date":"2026-01-05","steps":1}],"from":1767225600000,"to":1767830400000,"maxWeeks":1},"output":{"weeks":[[{"date":"2026-01-05","steps":1,"level":2},{"date":"2026-01-06","steps":0,"level":0},{"date":"2026-01-07","steps":0,"level":0},{"date":"2026-01-08","steps":0,"level":-1},{"date":"2026-01-09","steps":0,"level":-1},{"date":"2026-01-10","steps":0,"level":-1},{"date":"2026-01-11","steps":0,"level":-1}]],"months":[{"week":0,"label":"Jan","span":1}],"clipped":true}}, +{"tz":"UTC","offset":0,"input":{"name":"empty range","activity":[],"from":1767225600000,"to":1767225600000,"maxWeeks":53},"output":{"weeks":[],"months":[],"clipped":false}}, +{"tz":"UTC","offset":0,"input":{"name":"reversed range","activity":[],"from":1767830400000,"to":1767225600000,"maxWeeks":53},"output":{"weeks":[],"months":[],"clipped":false}}, +{"tz":"UTC","offset":0,"input":{"name":"a year so far, mid-day end","activity":[{"date":"2026-01-01","steps":0},{"date":"2026-01-02","steps":14},{"date":"2026-01-03","steps":5},{"date":"2026-01-04","steps":19},{"date":"2026-01-05","steps":10},{"date":"2026-01-06","steps":1},{"date":"2026-01-07","steps":15},{"date":"2026-01-08","steps":6},{"date":"2026-01-09","steps":20},{"date":"2026-01-10","steps":11},{"date":"2026-01-11","steps":2},{"date":"2026-01-12","steps":16},{"date":"2026-01-13","steps":7},{"date":"2026-01-14","steps":21},{"date":"2026-01-15","steps":12},{"date":"2026-01-16","steps":3},{"date":"2026-01-17","steps":17},{"date":"2026-01-18","steps":8},{"date":"2026-01-19","steps":22},{"date":"2026-01-20","steps":13},{"date":"2026-01-21","steps":4},{"date":"2026-01-22","steps":18},{"date":"2026-01-23","steps":9},{"date":"2026-01-24","steps":0},{"date":"2026-01-25","steps":14},{"date":"2026-01-26","steps":5},{"date":"2026-01-27","steps":19},{"date":"2026-01-28","steps":10},{"date":"2026-01-29","steps":1},{"date":"2026-01-30","steps":15},{"date":"2026-01-31","steps":6},{"date":"2026-02-01","steps":20},{"date":"2026-02-02","steps":11},{"date":"2026-02-03","steps":2},{"date":"2026-02-04","steps":16},{"date":"2026-02-05","steps":7},{"date":"2026-02-06","steps":21},{"date":"2026-02-07","steps":12},{"date":"2026-02-08","steps":3},{"date":"2026-02-09","steps":17},{"date":"2026-02-10","steps":8},{"date":"2026-02-11","steps":22},{"date":"2026-02-12","steps":13},{"date":"2026-02-13","steps":4},{"date":"2026-02-14","steps":18},{"date":"2026-02-15","steps":9},{"date":"2026-02-16","steps":0},{"date":"2026-02-17","steps":14},{"date":"2026-02-18","steps":5},{"date":"2026-02-19","steps":19},{"date":"2026-02-20","steps":10},{"date":"2026-02-21","steps":1},{"date":"2026-02-22","steps":15},{"date":"2026-02-23","steps":6},{"date":"2026-02-24","steps":20},{"date":"2026-02-25","steps":11},{"date":"2026-02-26","steps":2},{"date":"2026-02-27","steps":16},{"date":"2026-02-28","steps":7},{"date":"2026-03-01","steps":21},{"date":"2026-03-02","steps":12},{"date":"2026-03-03","steps":3},{"date":"2026-03-04","steps":17},{"date":"2026-03-05","steps":8},{"date":"2026-03-06","steps":22},{"date":"2026-03-07","steps":13},{"date":"2026-03-08","steps":4},{"date":"2026-03-09","steps":18},{"date":"2026-03-10","steps":9},{"date":"2026-03-11","steps":0},{"date":"2026-03-12","steps":14},{"date":"2026-03-13","steps":5},{"date":"2026-03-14","steps":19},{"date":"2026-03-15","steps":10},{"date":"2026-03-16","steps":1},{"date":"2026-03-17","steps":15},{"date":"2026-03-18","steps":6},{"date":"2026-03-19","steps":20},{"date":"2026-03-20","steps":11},{"date":"2026-03-21","steps":2},{"date":"2026-03-22","steps":16},{"date":"2026-03-23","steps":7},{"date":"2026-03-24","steps":21},{"date":"2026-03-25","steps":12},{"date":"2026-03-26","steps":3},{"date":"2026-03-27","steps":17},{"date":"2026-03-28","steps":8},{"date":"2026-03-29","steps":22},{"date":"2026-03-30","steps":13},{"date":"2026-03-31","steps":4},{"date":"2026-04-01","steps":18},{"date":"2026-04-02","steps":9},{"date":"2026-04-03","steps":0},{"date":"2026-04-04","steps":14},{"date":"2026-04-05","steps":5},{"date":"2026-04-06","steps":19},{"date":"2026-04-07","steps":10},{"date":"2026-04-08","steps":1},{"date":"2026-04-09","steps":15},{"date":"2026-04-10","steps":6},{"date":"2026-04-11","steps":20},{"date":"2026-04-12","steps":11},{"date":"2026-04-13","steps":2},{"date":"2026-04-14","steps":16},{"date":"2026-04-15","steps":7},{"date":"2026-04-16","steps":21},{"date":"2026-04-17","steps":12},{"date":"2026-04-18","steps":3},{"date":"2026-04-19","steps":17},{"date":"2026-04-20","steps":8},{"date":"2026-04-21","steps":22},{"date":"2026-04-22","steps":13},{"date":"2026-04-23","steps":4},{"date":"2026-04-24","steps":18},{"date":"2026-04-25","steps":9},{"date":"2026-04-26","steps":0},{"date":"2026-04-27","steps":14},{"date":"2026-04-28","steps":5},{"date":"2026-04-29","steps":19},{"date":"2026-04-30","steps":10},{"date":"2026-05-01","steps":1},{"date":"2026-05-02","steps":15},{"date":"2026-05-03","steps":6},{"date":"2026-05-04","steps":20},{"date":"2026-05-05","steps":11},{"date":"2026-05-06","steps":2},{"date":"2026-05-07","steps":16},{"date":"2026-05-08","steps":7},{"date":"2026-05-09","steps":21},{"date":"2026-05-10","steps":12},{"date":"2026-05-11","steps":3},{"date":"2026-05-12","steps":17},{"date":"2026-05-13","steps":8},{"date":"2026-05-14","steps":22},{"date":"2026-05-15","steps":13},{"date":"2026-05-16","steps":4},{"date":"2026-05-17","steps":18},{"date":"2026-05-18","steps":9},{"date":"2026-05-19","steps":0},{"date":"2026-05-20","steps":14},{"date":"2026-05-21","steps":5},{"date":"2026-05-22","steps":19},{"date":"2026-05-23","steps":10},{"date":"2026-05-24","steps":1},{"date":"2026-05-25","steps":15},{"date":"2026-05-26","steps":6},{"date":"2026-05-27","steps":20},{"date":"2026-05-28","steps":11},{"date":"2026-05-29","steps":2},{"date":"2026-05-30","steps":16},{"date":"2026-05-31","steps":7},{"date":"2026-06-01","steps":21},{"date":"2026-06-02","steps":12},{"date":"2026-06-03","steps":3},{"date":"2026-06-04","steps":17},{"date":"2026-06-05","steps":8},{"date":"2026-06-06","steps":22},{"date":"2026-06-07","steps":13},{"date":"2026-06-08","steps":4},{"date":"2026-06-09","steps":18},{"date":"2026-06-10","steps":9},{"date":"2026-06-11","steps":0},{"date":"2026-06-12","steps":14},{"date":"2026-06-13","steps":5},{"date":"2026-06-14","steps":19},{"date":"2026-06-15","steps":10},{"date":"2026-06-16","steps":1},{"date":"2026-06-17","steps":15},{"date":"2026-06-18","steps":6},{"date":"2026-06-19","steps":20},{"date":"2026-06-20","steps":11},{"date":"2026-06-21","steps":2},{"date":"2026-06-22","steps":16},{"date":"2026-06-23","steps":7},{"date":"2026-06-24","steps":21},{"date":"2026-06-25","steps":12},{"date":"2026-06-26","steps":3},{"date":"2026-06-27","steps":17},{"date":"2026-06-28","steps":8},{"date":"2026-06-29","steps":22},{"date":"2026-06-30","steps":13},{"date":"2026-07-01","steps":4},{"date":"2026-07-02","steps":18},{"date":"2026-07-03","steps":9},{"date":"2026-07-04","steps":0},{"date":"2026-07-05","steps":14},{"date":"2026-07-06","steps":5},{"date":"2026-07-07","steps":19},{"date":"2026-07-08","steps":10},{"date":"2026-07-09","steps":1},{"date":"2026-07-10","steps":15},{"date":"2026-07-11","steps":6},{"date":"2026-07-12","steps":20},{"date":"2026-07-13","steps":11},{"date":"2026-07-14","steps":2},{"date":"2026-07-15","steps":16},{"date":"2026-07-16","steps":7},{"date":"2026-07-17","steps":21},{"date":"2026-07-18","steps":12},{"date":"2026-07-19","steps":3},{"date":"2026-07-20","steps":17},{"date":"2026-07-21","steps":8},{"date":"2026-07-22","steps":22},{"date":"2026-07-23","steps":13},{"date":"2026-07-24","steps":4},{"date":"2026-07-25","steps":18},{"date":"2026-07-26","steps":9},{"date":"2026-07-27","steps":0},{"date":"2026-07-28","steps":14},{"date":"2026-07-29","steps":5},{"date":"2026-07-30","steps":19},{"date":"2026-07-31","steps":10},{"date":"2026-08-01","steps":1},{"date":"2026-08-02","steps":15},{"date":"2026-08-03","steps":6},{"date":"2026-08-04","steps":20},{"date":"2026-08-05","steps":11},{"date":"2026-08-06","steps":2},{"date":"2026-08-07","steps":16},{"date":"2026-08-08","steps":7},{"date":"2026-08-09","steps":21},{"date":"2026-08-10","steps":12},{"date":"2026-08-11","steps":3},{"date":"2026-08-12","steps":17},{"date":"2026-08-13","steps":8},{"date":"2026-08-14","steps":22},{"date":"2026-08-15","steps":13},{"date":"2026-08-16","steps":4},{"date":"2026-08-17","steps":18},{"date":"2026-08-18","steps":9},{"date":"2026-08-19","steps":0},{"date":"2026-08-20","steps":14},{"date":"2026-08-21","steps":5},{"date":"2026-08-22","steps":19},{"date":"2026-08-23","steps":10},{"date":"2026-08-24","steps":1},{"date":"2026-08-25","steps":15},{"date":"2026-08-26","steps":6},{"date":"2026-08-27","steps":20},{"date":"2026-08-28","steps":11},{"date":"2026-08-29","steps":2},{"date":"2026-08-30","steps":16},{"date":"2026-08-31","steps":7},{"date":"2026-09-01","steps":21},{"date":"2026-09-02","steps":12},{"date":"2026-09-03","steps":3},{"date":"2026-09-04","steps":17},{"date":"2026-09-05","steps":8},{"date":"2026-09-06","steps":22},{"date":"2026-09-07","steps":13},{"date":"2026-09-08","steps":4},{"date":"2026-09-09","steps":18},{"date":"2026-09-10","steps":9},{"date":"2026-09-11","steps":0},{"date":"2026-09-12","steps":14},{"date":"2026-09-13","steps":5},{"date":"2026-09-14","steps":19},{"date":"2026-09-15","steps":10},{"date":"2026-09-16","steps":1},{"date":"2026-09-17","steps":15},{"date":"2026-09-18","steps":6},{"date":"2026-09-19","steps":20},{"date":"2026-09-20","steps":11},{"date":"2026-09-21","steps":2},{"date":"2026-09-22","steps":16},{"date":"2026-09-23","steps":7},{"date":"2026-09-24","steps":21},{"date":"2026-09-25","steps":12},{"date":"2026-09-26","steps":3},{"date":"2026-09-27","steps":17},{"date":"2026-09-28","steps":8},{"date":"2026-09-29","steps":22},{"date":"2026-09-30","steps":13},{"date":"2026-10-01","steps":4},{"date":"2026-10-02","steps":18},{"date":"2026-10-03","steps":9},{"date":"2026-10-04","steps":0},{"date":"2026-10-05","steps":14},{"date":"2026-10-06","steps":5},{"date":"2026-10-07","steps":19},{"date":"2026-10-08","steps":10},{"date":"2026-10-09","steps":1},{"date":"2026-10-10","steps":15},{"date":"2026-10-11","steps":6},{"date":"2026-10-12","steps":20},{"date":"2026-10-13","steps":11},{"date":"2026-10-14","steps":2},{"date":"2026-10-15","steps":16},{"date":"2026-10-16","steps":7},{"date":"2026-10-17","steps":21},{"date":"2026-10-18","steps":12},{"date":"2026-10-19","steps":3},{"date":"2026-10-20","steps":17},{"date":"2026-10-21","steps":8},{"date":"2026-10-22","steps":22},{"date":"2026-10-23","steps":13},{"date":"2026-10-24","steps":4},{"date":"2026-10-25","steps":18},{"date":"2026-10-26","steps":9},{"date":"2026-10-27","steps":0}],"from":1767225600000,"to":1793113200001,"maxWeeks":76},"output":{"weeks":[[{"date":"2025-12-29","steps":0,"level":-1},{"date":"2025-12-30","steps":0,"level":-1},{"date":"2025-12-31","steps":0,"level":-1},{"date":"2026-01-01","steps":0,"level":0},{"date":"2026-01-02","steps":14,"level":3},{"date":"2026-01-03","steps":5,"level":1},{"date":"2026-01-04","steps":19,"level":4}],[{"date":"2026-01-05","steps":10,"level":2},{"date":"2026-01-06","steps":1,"level":1},{"date":"2026-01-07","steps":15,"level":3},{"date":"2026-01-08","steps":6,"level":2},{"date":"2026-01-09","steps":20,"level":4},{"date":"2026-01-10","steps":11,"level":2},{"date":"2026-01-11","steps":2,"level":1}],[{"date":"2026-01-12","steps":16,"level":3},{"date":"2026-01-13","steps":7,"level":2},{"date":"2026-01-14","steps":21,"level":4},{"date":"2026-01-15","steps":12,"level":3},{"date":"2026-01-16","steps":3,"level":1},{"date":"2026-01-17","steps":17,"level":4},{"date":"2026-01-18","steps":8,"level":2}],[{"date":"2026-01-19","steps":22,"level":4},{"date":"2026-01-20","steps":13,"level":3},{"date":"2026-01-21","steps":4,"level":1},{"date":"2026-01-22","steps":18,"level":4},{"date":"2026-01-23","steps":9,"level":2},{"date":"2026-01-24","steps":0,"level":0},{"date":"2026-01-25","steps":14,"level":3}],[{"date":"2026-01-26","steps":5,"level":1},{"date":"2026-01-27","steps":19,"level":4},{"date":"2026-01-28","steps":10,"level":2},{"date":"2026-01-29","steps":1,"level":1},{"date":"2026-01-30","steps":15,"level":3},{"date":"2026-01-31","steps":6,"level":2},{"date":"2026-02-01","steps":20,"level":4}],[{"date":"2026-02-02","steps":11,"level":2},{"date":"2026-02-03","steps":2,"level":1},{"date":"2026-02-04","steps":16,"level":3},{"date":"2026-02-05","steps":7,"level":2},{"date":"2026-02-06","steps":21,"level":4},{"date":"2026-02-07","steps":12,"level":3},{"date":"2026-02-08","steps":3,"level":1}],[{"date":"2026-02-09","steps":17,"level":4},{"date":"2026-02-10","steps":8,"level":2},{"date":"2026-02-11","steps":22,"level":4},{"date":"2026-02-12","steps":13,"level":3},{"date":"2026-02-13","steps":4,"level":1},{"date":"2026-02-14","steps":18,"level":4},{"date":"2026-02-15","steps":9,"level":2}],[{"date":"2026-02-16","steps":0,"level":0},{"date":"2026-02-17","steps":14,"level":3},{"date":"2026-02-18","steps":5,"level":1},{"date":"2026-02-19","steps":19,"level":4},{"date":"2026-02-20","steps":10,"level":2},{"date":"2026-02-21","steps":1,"level":1},{"date":"2026-02-22","steps":15,"level":3}],[{"date":"2026-02-23","steps":6,"level":2},{"date":"2026-02-24","steps":20,"level":4},{"date":"2026-02-25","steps":11,"level":2},{"date":"2026-02-26","steps":2,"level":1},{"date":"2026-02-27","steps":16,"level":3},{"date":"2026-02-28","steps":7,"level":2},{"date":"2026-03-01","steps":21,"level":4}],[{"date":"2026-03-02","steps":12,"level":3},{"date":"2026-03-03","steps":3,"level":1},{"date":"2026-03-04","steps":17,"level":4},{"date":"2026-03-05","steps":8,"level":2},{"date":"2026-03-06","steps":22,"level":4},{"date":"2026-03-07","steps":13,"level":3},{"date":"2026-03-08","steps":4,"level":1}],[{"date":"2026-03-09","steps":18,"level":4},{"date":"2026-03-10","steps":9,"level":2},{"date":"2026-03-11","steps":0,"level":0},{"date":"2026-03-12","steps":14,"level":3},{"date":"2026-03-13","steps":5,"level":1},{"date":"2026-03-14","steps":19,"level":4},{"date":"2026-03-15","steps":10,"level":2}],[{"date":"2026-03-16","steps":1,"level":1},{"date":"2026-03-17","steps":15,"level":3},{"date":"2026-03-18","steps":6,"level":2},{"date":"2026-03-19","steps":20,"level":4},{"date":"2026-03-20","steps":11,"level":2},{"date":"2026-03-21","steps":2,"level":1},{"date":"2026-03-22","steps":16,"level":3}],[{"date":"2026-03-23","steps":7,"level":2},{"date":"2026-03-24","steps":21,"level":4},{"date":"2026-03-25","steps":12,"level":3},{"date":"2026-03-26","steps":3,"level":1},{"date":"2026-03-27","steps":17,"level":4},{"date":"2026-03-28","steps":8,"level":2},{"date":"2026-03-29","steps":22,"level":4}],[{"date":"2026-03-30","steps":13,"level":3},{"date":"2026-03-31","steps":4,"level":1},{"date":"2026-04-01","steps":18,"level":4},{"date":"2026-04-02","steps":9,"level":2},{"date":"2026-04-03","steps":0,"level":0},{"date":"2026-04-04","steps":14,"level":3},{"date":"2026-04-05","steps":5,"level":1}],[{"date":"2026-04-06","steps":19,"level":4},{"date":"2026-04-07","steps":10,"level":2},{"date":"2026-04-08","steps":1,"level":1},{"date":"2026-04-09","steps":15,"level":3},{"date":"2026-04-10","steps":6,"level":2},{"date":"2026-04-11","steps":20,"level":4},{"date":"2026-04-12","steps":11,"level":2}],[{"date":"2026-04-13","steps":2,"level":1},{"date":"2026-04-14","steps":16,"level":3},{"date":"2026-04-15","steps":7,"level":2},{"date":"2026-04-16","steps":21,"level":4},{"date":"2026-04-17","steps":12,"level":3},{"date":"2026-04-18","steps":3,"level":1},{"date":"2026-04-19","steps":17,"level":4}],[{"date":"2026-04-20","steps":8,"level":2},{"date":"2026-04-21","steps":22,"level":4},{"date":"2026-04-22","steps":13,"level":3},{"date":"2026-04-23","steps":4,"level":1},{"date":"2026-04-24","steps":18,"level":4},{"date":"2026-04-25","steps":9,"level":2},{"date":"2026-04-26","steps":0,"level":0}],[{"date":"2026-04-27","steps":14,"level":3},{"date":"2026-04-28","steps":5,"level":1},{"date":"2026-04-29","steps":19,"level":4},{"date":"2026-04-30","steps":10,"level":2},{"date":"2026-05-01","steps":1,"level":1},{"date":"2026-05-02","steps":15,"level":3},{"date":"2026-05-03","steps":6,"level":2}],[{"date":"2026-05-04","steps":20,"level":4},{"date":"2026-05-05","steps":11,"level":2},{"date":"2026-05-06","steps":2,"level":1},{"date":"2026-05-07","steps":16,"level":3},{"date":"2026-05-08","steps":7,"level":2},{"date":"2026-05-09","steps":21,"level":4},{"date":"2026-05-10","steps":12,"level":3}],[{"date":"2026-05-11","steps":3,"level":1},{"date":"2026-05-12","steps":17,"level":4},{"date":"2026-05-13","steps":8,"level":2},{"date":"2026-05-14","steps":22,"level":4},{"date":"2026-05-15","steps":13,"level":3},{"date":"2026-05-16","steps":4,"level":1},{"date":"2026-05-17","steps":18,"level":4}],[{"date":"2026-05-18","steps":9,"level":2},{"date":"2026-05-19","steps":0,"level":0},{"date":"2026-05-20","steps":14,"level":3},{"date":"2026-05-21","steps":5,"level":1},{"date":"2026-05-22","steps":19,"level":4},{"date":"2026-05-23","steps":10,"level":2},{"date":"2026-05-24","steps":1,"level":1}],[{"date":"2026-05-25","steps":15,"level":3},{"date":"2026-05-26","steps":6,"level":2},{"date":"2026-05-27","steps":20,"level":4},{"date":"2026-05-28","steps":11,"level":2},{"date":"2026-05-29","steps":2,"level":1},{"date":"2026-05-30","steps":16,"level":3},{"date":"2026-05-31","steps":7,"level":2}],[{"date":"2026-06-01","steps":21,"level":4},{"date":"2026-06-02","steps":12,"level":3},{"date":"2026-06-03","steps":3,"level":1},{"date":"2026-06-04","steps":17,"level":4},{"date":"2026-06-05","steps":8,"level":2},{"date":"2026-06-06","steps":22,"level":4},{"date":"2026-06-07","steps":13,"level":3}],[{"date":"2026-06-08","steps":4,"level":1},{"date":"2026-06-09","steps":18,"level":4},{"date":"2026-06-10","steps":9,"level":2},{"date":"2026-06-11","steps":0,"level":0},{"date":"2026-06-12","steps":14,"level":3},{"date":"2026-06-13","steps":5,"level":1},{"date":"2026-06-14","steps":19,"level":4}],[{"date":"2026-06-15","steps":10,"level":2},{"date":"2026-06-16","steps":1,"level":1},{"date":"2026-06-17","steps":15,"level":3},{"date":"2026-06-18","steps":6,"level":2},{"date":"2026-06-19","steps":20,"level":4},{"date":"2026-06-20","steps":11,"level":2},{"date":"2026-06-21","steps":2,"level":1}],[{"date":"2026-06-22","steps":16,"level":3},{"date":"2026-06-23","steps":7,"level":2},{"date":"2026-06-24","steps":21,"level":4},{"date":"2026-06-25","steps":12,"level":3},{"date":"2026-06-26","steps":3,"level":1},{"date":"2026-06-27","steps":17,"level":4},{"date":"2026-06-28","steps":8,"level":2}],[{"date":"2026-06-29","steps":22,"level":4},{"date":"2026-06-30","steps":13,"level":3},{"date":"2026-07-01","steps":4,"level":1},{"date":"2026-07-02","steps":18,"level":4},{"date":"2026-07-03","steps":9,"level":2},{"date":"2026-07-04","steps":0,"level":0},{"date":"2026-07-05","steps":14,"level":3}],[{"date":"2026-07-06","steps":5,"level":1},{"date":"2026-07-07","steps":19,"level":4},{"date":"2026-07-08","steps":10,"level":2},{"date":"2026-07-09","steps":1,"level":1},{"date":"2026-07-10","steps":15,"level":3},{"date":"2026-07-11","steps":6,"level":2},{"date":"2026-07-12","steps":20,"level":4}],[{"date":"2026-07-13","steps":11,"level":2},{"date":"2026-07-14","steps":2,"level":1},{"date":"2026-07-15","steps":16,"level":3},{"date":"2026-07-16","steps":7,"level":2},{"date":"2026-07-17","steps":21,"level":4},{"date":"2026-07-18","steps":12,"level":3},{"date":"2026-07-19","steps":3,"level":1}],[{"date":"2026-07-20","steps":17,"level":4},{"date":"2026-07-21","steps":8,"level":2},{"date":"2026-07-22","steps":22,"level":4},{"date":"2026-07-23","steps":13,"level":3},{"date":"2026-07-24","steps":4,"level":1},{"date":"2026-07-25","steps":18,"level":4},{"date":"2026-07-26","steps":9,"level":2}],[{"date":"2026-07-27","steps":0,"level":0},{"date":"2026-07-28","steps":14,"level":3},{"date":"2026-07-29","steps":5,"level":1},{"date":"2026-07-30","steps":19,"level":4},{"date":"2026-07-31","steps":10,"level":2},{"date":"2026-08-01","steps":1,"level":1},{"date":"2026-08-02","steps":15,"level":3}],[{"date":"2026-08-03","steps":6,"level":2},{"date":"2026-08-04","steps":20,"level":4},{"date":"2026-08-05","steps":11,"level":2},{"date":"2026-08-06","steps":2,"level":1},{"date":"2026-08-07","steps":16,"level":3},{"date":"2026-08-08","steps":7,"level":2},{"date":"2026-08-09","steps":21,"level":4}],[{"date":"2026-08-10","steps":12,"level":3},{"date":"2026-08-11","steps":3,"level":1},{"date":"2026-08-12","steps":17,"level":4},{"date":"2026-08-13","steps":8,"level":2},{"date":"2026-08-14","steps":22,"level":4},{"date":"2026-08-15","steps":13,"level":3},{"date":"2026-08-16","steps":4,"level":1}],[{"date":"2026-08-17","steps":18,"level":4},{"date":"2026-08-18","steps":9,"level":2},{"date":"2026-08-19","steps":0,"level":0},{"date":"2026-08-20","steps":14,"level":3},{"date":"2026-08-21","steps":5,"level":1},{"date":"2026-08-22","steps":19,"level":4},{"date":"2026-08-23","steps":10,"level":2}],[{"date":"2026-08-24","steps":1,"level":1},{"date":"2026-08-25","steps":15,"level":3},{"date":"2026-08-26","steps":6,"level":2},{"date":"2026-08-27","steps":20,"level":4},{"date":"2026-08-28","steps":11,"level":2},{"date":"2026-08-29","steps":2,"level":1},{"date":"2026-08-30","steps":16,"level":3}],[{"date":"2026-08-31","steps":7,"level":2},{"date":"2026-09-01","steps":21,"level":4},{"date":"2026-09-02","steps":12,"level":3},{"date":"2026-09-03","steps":3,"level":1},{"date":"2026-09-04","steps":17,"level":4},{"date":"2026-09-05","steps":8,"level":2},{"date":"2026-09-06","steps":22,"level":4}],[{"date":"2026-09-07","steps":13,"level":3},{"date":"2026-09-08","steps":4,"level":1},{"date":"2026-09-09","steps":18,"level":4},{"date":"2026-09-10","steps":9,"level":2},{"date":"2026-09-11","steps":0,"level":0},{"date":"2026-09-12","steps":14,"level":3},{"date":"2026-09-13","steps":5,"level":1}],[{"date":"2026-09-14","steps":19,"level":4},{"date":"2026-09-15","steps":10,"level":2},{"date":"2026-09-16","steps":1,"level":1},{"date":"2026-09-17","steps":15,"level":3},{"date":"2026-09-18","steps":6,"level":2},{"date":"2026-09-19","steps":20,"level":4},{"date":"2026-09-20","steps":11,"level":2}],[{"date":"2026-09-21","steps":2,"level":1},{"date":"2026-09-22","steps":16,"level":3},{"date":"2026-09-23","steps":7,"level":2},{"date":"2026-09-24","steps":21,"level":4},{"date":"2026-09-25","steps":12,"level":3},{"date":"2026-09-26","steps":3,"level":1},{"date":"2026-09-27","steps":17,"level":4}],[{"date":"2026-09-28","steps":8,"level":2},{"date":"2026-09-29","steps":22,"level":4},{"date":"2026-09-30","steps":13,"level":3},{"date":"2026-10-01","steps":4,"level":1},{"date":"2026-10-02","steps":18,"level":4},{"date":"2026-10-03","steps":9,"level":2},{"date":"2026-10-04","steps":0,"level":0}],[{"date":"2026-10-05","steps":14,"level":3},{"date":"2026-10-06","steps":5,"level":1},{"date":"2026-10-07","steps":19,"level":4},{"date":"2026-10-08","steps":10,"level":2},{"date":"2026-10-09","steps":1,"level":1},{"date":"2026-10-10","steps":15,"level":3},{"date":"2026-10-11","steps":6,"level":2}],[{"date":"2026-10-12","steps":20,"level":4},{"date":"2026-10-13","steps":11,"level":2},{"date":"2026-10-14","steps":2,"level":1},{"date":"2026-10-15","steps":16,"level":3},{"date":"2026-10-16","steps":7,"level":2},{"date":"2026-10-17","steps":21,"level":4},{"date":"2026-10-18","steps":12,"level":3}],[{"date":"2026-10-19","steps":3,"level":1},{"date":"2026-10-20","steps":17,"level":4},{"date":"2026-10-21","steps":8,"level":2},{"date":"2026-10-22","steps":22,"level":4},{"date":"2026-10-23","steps":13,"level":3},{"date":"2026-10-24","steps":4,"level":1},{"date":"2026-10-25","steps":18,"level":4}],[{"date":"2026-10-26","steps":9,"level":2},{"date":"2026-10-27","steps":0,"level":0},{"date":"2026-10-28","steps":0,"level":-1},{"date":"2026-10-29","steps":0,"level":-1},{"date":"2026-10-30","steps":0,"level":-1},{"date":"2026-10-31","steps":0,"level":-1},{"date":"2026-11-01","steps":0,"level":-1}]],"months":[{"week":0,"label":"Jan","span":5},{"week":5,"label":"Feb","span":4},{"week":9,"label":"Mar","span":4},{"week":13,"label":"Apr","span":5},{"week":18,"label":"May","span":4},{"week":22,"label":"Jun","span":4},{"week":26,"label":"Jul","span":5},{"week":31,"label":"Aug","span":4},{"week":35,"label":"Sep","span":4},{"week":39,"label":"Oct","span":5}],"clipped":false}}, +{"tz":"UTC","offset":0,"input":{"name":"a past year, narrow","activity":[{"date":"2025-03-01","steps":0},{"date":"2025-03-02","steps":3},{"date":"2025-03-03","steps":6},{"date":"2025-03-04","steps":9},{"date":"2025-03-05","steps":12},{"date":"2025-03-06","steps":0},{"date":"2025-03-07","steps":3},{"date":"2025-03-08","steps":6},{"date":"2025-03-09","steps":9},{"date":"2025-03-10","steps":12},{"date":"2025-03-11","steps":0},{"date":"2025-03-12","steps":3},{"date":"2025-03-13","steps":6},{"date":"2025-03-14","steps":9},{"date":"2025-03-15","steps":12},{"date":"2025-03-16","steps":0},{"date":"2025-03-17","steps":3},{"date":"2025-03-18","steps":6},{"date":"2025-03-19","steps":9},{"date":"2025-03-20","steps":12},{"date":"2025-03-21","steps":0},{"date":"2025-03-22","steps":3},{"date":"2025-03-23","steps":6},{"date":"2025-03-24","steps":9},{"date":"2025-03-25","steps":12},{"date":"2025-03-26","steps":0},{"date":"2025-03-27","steps":3},{"date":"2025-03-28","steps":6},{"date":"2025-03-29","steps":9},{"date":"2025-03-30","steps":12},{"date":"2025-03-31","steps":0},{"date":"2025-04-01","steps":3},{"date":"2025-04-02","steps":6},{"date":"2025-04-03","steps":9},{"date":"2025-04-04","steps":12},{"date":"2025-04-05","steps":0},{"date":"2025-04-06","steps":3},{"date":"2025-04-07","steps":6},{"date":"2025-04-08","steps":9},{"date":"2025-04-09","steps":12}],"from":1735689600000,"to":1767225600000,"maxWeeks":16.7},"output":{"weeks":[[{"date":"2025-09-15","steps":0,"level":0},{"date":"2025-09-16","steps":0,"level":0},{"date":"2025-09-17","steps":0,"level":0},{"date":"2025-09-18","steps":0,"level":0},{"date":"2025-09-19","steps":0,"level":0},{"date":"2025-09-20","steps":0,"level":0},{"date":"2025-09-21","steps":0,"level":0}],[{"date":"2025-09-22","steps":0,"level":0},{"date":"2025-09-23","steps":0,"level":0},{"date":"2025-09-24","steps":0,"level":0},{"date":"2025-09-25","steps":0,"level":0},{"date":"2025-09-26","steps":0,"level":0},{"date":"2025-09-27","steps":0,"level":0},{"date":"2025-09-28","steps":0,"level":0}],[{"date":"2025-09-29","steps":0,"level":0},{"date":"2025-09-30","steps":0,"level":0},{"date":"2025-10-01","steps":0,"level":0},{"date":"2025-10-02","steps":0,"level":0},{"date":"2025-10-03","steps":0,"level":0},{"date":"2025-10-04","steps":0,"level":0},{"date":"2025-10-05","steps":0,"level":0}],[{"date":"2025-10-06","steps":0,"level":0},{"date":"2025-10-07","steps":0,"level":0},{"date":"2025-10-08","steps":0,"level":0},{"date":"2025-10-09","steps":0,"level":0},{"date":"2025-10-10","steps":0,"level":0},{"date":"2025-10-11","steps":0,"level":0},{"date":"2025-10-12","steps":0,"level":0}],[{"date":"2025-10-13","steps":0,"level":0},{"date":"2025-10-14","steps":0,"level":0},{"date":"2025-10-15","steps":0,"level":0},{"date":"2025-10-16","steps":0,"level":0},{"date":"2025-10-17","steps":0,"level":0},{"date":"2025-10-18","steps":0,"level":0},{"date":"2025-10-19","steps":0,"level":0}],[{"date":"2025-10-20","steps":0,"level":0},{"date":"2025-10-21","steps":0,"level":0},{"date":"2025-10-22","steps":0,"level":0},{"date":"2025-10-23","steps":0,"level":0},{"date":"2025-10-24","steps":0,"level":0},{"date":"2025-10-25","steps":0,"level":0},{"date":"2025-10-26","steps":0,"level":0}],[{"date":"2025-10-27","steps":0,"level":0},{"date":"2025-10-28","steps":0,"level":0},{"date":"2025-10-29","steps":0,"level":0},{"date":"2025-10-30","steps":0,"level":0},{"date":"2025-10-31","steps":0,"level":0},{"date":"2025-11-01","steps":0,"level":0},{"date":"2025-11-02","steps":0,"level":0}],[{"date":"2025-11-03","steps":0,"level":0},{"date":"2025-11-04","steps":0,"level":0},{"date":"2025-11-05","steps":0,"level":0},{"date":"2025-11-06","steps":0,"level":0},{"date":"2025-11-07","steps":0,"level":0},{"date":"2025-11-08","steps":0,"level":0},{"date":"2025-11-09","steps":0,"level":0}],[{"date":"2025-11-10","steps":0,"level":0},{"date":"2025-11-11","steps":0,"level":0},{"date":"2025-11-12","steps":0,"level":0},{"date":"2025-11-13","steps":0,"level":0},{"date":"2025-11-14","steps":0,"level":0},{"date":"2025-11-15","steps":0,"level":0},{"date":"2025-11-16","steps":0,"level":0}],[{"date":"2025-11-17","steps":0,"level":0},{"date":"2025-11-18","steps":0,"level":0},{"date":"2025-11-19","steps":0,"level":0},{"date":"2025-11-20","steps":0,"level":0},{"date":"2025-11-21","steps":0,"level":0},{"date":"2025-11-22","steps":0,"level":0},{"date":"2025-11-23","steps":0,"level":0}],[{"date":"2025-11-24","steps":0,"level":0},{"date":"2025-11-25","steps":0,"level":0},{"date":"2025-11-26","steps":0,"level":0},{"date":"2025-11-27","steps":0,"level":0},{"date":"2025-11-28","steps":0,"level":0},{"date":"2025-11-29","steps":0,"level":0},{"date":"2025-11-30","steps":0,"level":0}],[{"date":"2025-12-01","steps":0,"level":0},{"date":"2025-12-02","steps":0,"level":0},{"date":"2025-12-03","steps":0,"level":0},{"date":"2025-12-04","steps":0,"level":0},{"date":"2025-12-05","steps":0,"level":0},{"date":"2025-12-06","steps":0,"level":0},{"date":"2025-12-07","steps":0,"level":0}],[{"date":"2025-12-08","steps":0,"level":0},{"date":"2025-12-09","steps":0,"level":0},{"date":"2025-12-10","steps":0,"level":0},{"date":"2025-12-11","steps":0,"level":0},{"date":"2025-12-12","steps":0,"level":0},{"date":"2025-12-13","steps":0,"level":0},{"date":"2025-12-14","steps":0,"level":0}],[{"date":"2025-12-15","steps":0,"level":0},{"date":"2025-12-16","steps":0,"level":0},{"date":"2025-12-17","steps":0,"level":0},{"date":"2025-12-18","steps":0,"level":0},{"date":"2025-12-19","steps":0,"level":0},{"date":"2025-12-20","steps":0,"level":0},{"date":"2025-12-21","steps":0,"level":0}],[{"date":"2025-12-22","steps":0,"level":0},{"date":"2025-12-23","steps":0,"level":0},{"date":"2025-12-24","steps":0,"level":0},{"date":"2025-12-25","steps":0,"level":0},{"date":"2025-12-26","steps":0,"level":0},{"date":"2025-12-27","steps":0,"level":0},{"date":"2025-12-28","steps":0,"level":0}],[{"date":"2025-12-29","steps":0,"level":0},{"date":"2025-12-30","steps":0,"level":0},{"date":"2025-12-31","steps":0,"level":0},{"date":"2026-01-01","steps":0,"level":-1},{"date":"2026-01-02","steps":0,"level":-1},{"date":"2026-01-03","steps":0,"level":-1},{"date":"2026-01-04","steps":0,"level":-1}]],"months":[{"week":0,"label":"Sep","span":2},{"week":2,"label":"Oct","span":5},{"week":7,"label":"Nov","span":4},{"week":11,"label":"Dec","span":5}],"clipped":true}}, +{"tz":"UTC","offset":0,"input":{"name":"negative width","activity":[{"date":"2026-01-01","steps":1},{"date":"2026-01-02","steps":50}],"from":1767225600000,"to":1768867200000,"maxWeeks":-3},"output":{"weeks":[[{"date":"2026-01-19","steps":0,"level":0},{"date":"2026-01-20","steps":0,"level":-1},{"date":"2026-01-21","steps":0,"level":-1},{"date":"2026-01-22","steps":0,"level":-1},{"date":"2026-01-23","steps":0,"level":-1},{"date":"2026-01-24","steps":0,"level":-1},{"date":"2026-01-25","steps":0,"level":-1}]],"months":[{"week":0,"label":"Jan","span":1}],"clipped":true}}, +{"tz":"UTC","offset":0,"input":{"name":"duplicate dates and outside activity","activity":[{"date":"2026-01-03","steps":4},{"date":"2026-01-03","steps":9},{"date":"2025-06-01","steps":100},{"date":"2026-01-04","steps":0}],"from":1767225600000,"to":1767830400000,"maxWeeks":53},"output":{"weeks":[[{"date":"2025-12-29","steps":0,"level":-1},{"date":"2025-12-30","steps":0,"level":-1},{"date":"2025-12-31","steps":0,"level":-1},{"date":"2026-01-01","steps":0,"level":0},{"date":"2026-01-02","steps":0,"level":0},{"date":"2026-01-03","steps":9,"level":2},{"date":"2026-01-04","steps":0,"level":0}],[{"date":"2026-01-05","steps":0,"level":0},{"date":"2026-01-06","steps":0,"level":0},{"date":"2026-01-07","steps":0,"level":0},{"date":"2026-01-08","steps":0,"level":-1},{"date":"2026-01-09","steps":0,"level":-1},{"date":"2026-01-10","steps":0,"level":-1},{"date":"2026-01-11","steps":0,"level":-1}]],"months":[{"week":0,"label":"Jan","span":2}],"clipped":false}}, +{"tz":"UTC","offset":0,"input":{"name":"UTC-midnight edges","activity":[{"date":"2026-01-01","steps":1},{"date":"2026-01-02","steps":50}],"from":1767225600000,"to":1769904000000,"maxWeeks":53},"output":{"weeks":[[{"date":"2025-12-29","steps":0,"level":-1},{"date":"2025-12-30","steps":0,"level":-1},{"date":"2025-12-31","steps":0,"level":-1},{"date":"2026-01-01","steps":1,"level":2},{"date":"2026-01-02","steps":50,"level":4},{"date":"2026-01-03","steps":0,"level":0},{"date":"2026-01-04","steps":0,"level":0}],[{"date":"2026-01-05","steps":0,"level":0},{"date":"2026-01-06","steps":0,"level":0},{"date":"2026-01-07","steps":0,"level":0},{"date":"2026-01-08","steps":0,"level":0},{"date":"2026-01-09","steps":0,"level":0},{"date":"2026-01-10","steps":0,"level":0},{"date":"2026-01-11","steps":0,"level":0}],[{"date":"2026-01-12","steps":0,"level":0},{"date":"2026-01-13","steps":0,"level":0},{"date":"2026-01-14","steps":0,"level":0},{"date":"2026-01-15","steps":0,"level":0},{"date":"2026-01-16","steps":0,"level":0},{"date":"2026-01-17","steps":0,"level":0},{"date":"2026-01-18","steps":0,"level":0}],[{"date":"2026-01-19","steps":0,"level":0},{"date":"2026-01-20","steps":0,"level":0},{"date":"2026-01-21","steps":0,"level":0},{"date":"2026-01-22","steps":0,"level":0},{"date":"2026-01-23","steps":0,"level":0},{"date":"2026-01-24","steps":0,"level":0},{"date":"2026-01-25","steps":0,"level":0}],[{"date":"2026-01-26","steps":0,"level":0},{"date":"2026-01-27","steps":0,"level":0},{"date":"2026-01-28","steps":0,"level":0},{"date":"2026-01-29","steps":0,"level":0},{"date":"2026-01-30","steps":0,"level":0},{"date":"2026-01-31","steps":0,"level":0},{"date":"2026-02-01","steps":0,"level":-1}]],"months":[{"week":0,"label":"Jan","span":5}],"clipped":false}}, +{"tz":"Etc/GMT-9","offset":32400,"input":{"name":"two weeks","activity":[{"date":"2026-01-01","steps":1},{"date":"2026-01-02","steps":50}],"from":1767193200000,"to":1767798000000,"maxWeeks":53},"output":{"weeks":[[{"date":"2025-12-29","steps":0,"level":-1},{"date":"2025-12-30","steps":0,"level":-1},{"date":"2025-12-31","steps":0,"level":-1},{"date":"2026-01-01","steps":1,"level":2},{"date":"2026-01-02","steps":50,"level":4},{"date":"2026-01-03","steps":0,"level":0},{"date":"2026-01-04","steps":0,"level":0}],[{"date":"2026-01-05","steps":0,"level":0},{"date":"2026-01-06","steps":0,"level":0},{"date":"2026-01-07","steps":0,"level":0},{"date":"2026-01-08","steps":0,"level":-1},{"date":"2026-01-09","steps":0,"level":-1},{"date":"2026-01-10","steps":0,"level":-1},{"date":"2026-01-11","steps":0,"level":-1}]],"months":[{"week":0,"label":"Jan","span":2}],"clipped":false}}, +{"tz":"Etc/GMT-9","offset":32400,"input":{"name":"clipped to one week","activity":[],"from":1767193200000,"to":1767798000000,"maxWeeks":1},"output":{"weeks":[[{"date":"2026-01-05","steps":0,"level":0},{"date":"2026-01-06","steps":0,"level":0},{"date":"2026-01-07","steps":0,"level":0},{"date":"2026-01-08","steps":0,"level":-1},{"date":"2026-01-09","steps":0,"level":-1},{"date":"2026-01-10","steps":0,"level":-1},{"date":"2026-01-11","steps":0,"level":-1}]],"months":[{"week":0,"label":"Jan","span":1}],"clipped":true}}, +{"tz":"Etc/GMT-9","offset":32400,"input":{"name":"capped at 53 weeks","activity":[{"date":"2026-01-01","steps":1},{"date":"2026-01-02","steps":50}],"from":1577804400000,"to":1767798000000,"maxWeeks":200},"output":{"weeks":[[{"date":"2025-01-06","steps":0,"level":0},{"date":"2025-01-07","steps":0,"level":0},{"date":"2025-01-08","steps":0,"level":0},{"date":"2025-01-09","steps":0,"level":0},{"date":"2025-01-10","steps":0,"level":0},{"date":"2025-01-11","steps":0,"level":0},{"date":"2025-01-12","steps":0,"level":0}],[{"date":"2025-01-13","steps":0,"level":0},{"date":"2025-01-14","steps":0,"level":0},{"date":"2025-01-15","steps":0,"level":0},{"date":"2025-01-16","steps":0,"level":0},{"date":"2025-01-17","steps":0,"level":0},{"date":"2025-01-18","steps":0,"level":0},{"date":"2025-01-19","steps":0,"level":0}],[{"date":"2025-01-20","steps":0,"level":0},{"date":"2025-01-21","steps":0,"level":0},{"date":"2025-01-22","steps":0,"level":0},{"date":"2025-01-23","steps":0,"level":0},{"date":"2025-01-24","steps":0,"level":0},{"date":"2025-01-25","steps":0,"level":0},{"date":"2025-01-26","steps":0,"level":0}],[{"date":"2025-01-27","steps":0,"level":0},{"date":"2025-01-28","steps":0,"level":0},{"date":"2025-01-29","steps":0,"level":0},{"date":"2025-01-30","steps":0,"level":0},{"date":"2025-01-31","steps":0,"level":0},{"date":"2025-02-01","steps":0,"level":0},{"date":"2025-02-02","steps":0,"level":0}],[{"date":"2025-02-03","steps":0,"level":0},{"date":"2025-02-04","steps":0,"level":0},{"date":"2025-02-05","steps":0,"level":0},{"date":"2025-02-06","steps":0,"level":0},{"date":"2025-02-07","steps":0,"level":0},{"date":"2025-02-08","steps":0,"level":0},{"date":"2025-02-09","steps":0,"level":0}],[{"date":"2025-02-10","steps":0,"level":0},{"date":"2025-02-11","steps":0,"level":0},{"date":"2025-02-12","steps":0,"level":0},{"date":"2025-02-13","steps":0,"level":0},{"date":"2025-02-14","steps":0,"level":0},{"date":"2025-02-15","steps":0,"level":0},{"date":"2025-02-16","steps":0,"level":0}],[{"date":"2025-02-17","steps":0,"level":0},{"date":"2025-02-18","steps":0,"level":0},{"date":"2025-02-19","steps":0,"level":0},{"date":"2025-02-20","steps":0,"level":0},{"date":"2025-02-21","steps":0,"level":0},{"date":"2025-02-22","steps":0,"level":0},{"date":"2025-02-23","steps":0,"level":0}],[{"date":"2025-02-24","steps":0,"level":0},{"date":"2025-02-25","steps":0,"level":0},{"date":"2025-02-26","steps":0,"level":0},{"date":"2025-02-27","steps":0,"level":0},{"date":"2025-02-28","steps":0,"level":0},{"date":"2025-03-01","steps":0,"level":0},{"date":"2025-03-02","steps":0,"level":0}],[{"date":"2025-03-03","steps":0,"level":0},{"date":"2025-03-04","steps":0,"level":0},{"date":"2025-03-05","steps":0,"level":0},{"date":"2025-03-06","steps":0,"level":0},{"date":"2025-03-07","steps":0,"level":0},{"date":"2025-03-08","steps":0,"level":0},{"date":"2025-03-09","steps":0,"level":0}],[{"date":"2025-03-10","steps":0,"level":0},{"date":"2025-03-11","steps":0,"level":0},{"date":"2025-03-12","steps":0,"level":0},{"date":"2025-03-13","steps":0,"level":0},{"date":"2025-03-14","steps":0,"level":0},{"date":"2025-03-15","steps":0,"level":0},{"date":"2025-03-16","steps":0,"level":0}],[{"date":"2025-03-17","steps":0,"level":0},{"date":"2025-03-18","steps":0,"level":0},{"date":"2025-03-19","steps":0,"level":0},{"date":"2025-03-20","steps":0,"level":0},{"date":"2025-03-21","steps":0,"level":0},{"date":"2025-03-22","steps":0,"level":0},{"date":"2025-03-23","steps":0,"level":0}],[{"date":"2025-03-24","steps":0,"level":0},{"date":"2025-03-25","steps":0,"level":0},{"date":"2025-03-26","steps":0,"level":0},{"date":"2025-03-27","steps":0,"level":0},{"date":"2025-03-28","steps":0,"level":0},{"date":"2025-03-29","steps":0,"level":0},{"date":"2025-03-30","steps":0,"level":0}],[{"date":"2025-03-31","steps":0,"level":0},{"date":"2025-04-01","steps":0,"level":0},{"date":"2025-04-02","steps":0,"level":0},{"date":"2025-04-03","steps":0,"level":0},{"date":"2025-04-04","steps":0,"level":0},{"date":"2025-04-05","steps":0,"level":0},{"date":"2025-04-06","steps":0,"level":0}],[{"date":"2025-04-07","steps":0,"level":0},{"date":"2025-04-08","steps":0,"level":0},{"date":"2025-04-09","steps":0,"level":0},{"date":"2025-04-10","steps":0,"level":0},{"date":"2025-04-11","steps":0,"level":0},{"date":"2025-04-12","steps":0,"level":0},{"date":"2025-04-13","steps":0,"level":0}],[{"date":"2025-04-14","steps":0,"level":0},{"date":"2025-04-15","steps":0,"level":0},{"date":"2025-04-16","steps":0,"level":0},{"date":"2025-04-17","steps":0,"level":0},{"date":"2025-04-18","steps":0,"level":0},{"date":"2025-04-19","steps":0,"level":0},{"date":"2025-04-20","steps":0,"level":0}],[{"date":"2025-04-21","steps":0,"level":0},{"date":"2025-04-22","steps":0,"level":0},{"date":"2025-04-23","steps":0,"level":0},{"date":"2025-04-24","steps":0,"level":0},{"date":"2025-04-25","steps":0,"level":0},{"date":"2025-04-26","steps":0,"level":0},{"date":"2025-04-27","steps":0,"level":0}],[{"date":"2025-04-28","steps":0,"level":0},{"date":"2025-04-29","steps":0,"level":0},{"date":"2025-04-30","steps":0,"level":0},{"date":"2025-05-01","steps":0,"level":0},{"date":"2025-05-02","steps":0,"level":0},{"date":"2025-05-03","steps":0,"level":0},{"date":"2025-05-04","steps":0,"level":0}],[{"date":"2025-05-05","steps":0,"level":0},{"date":"2025-05-06","steps":0,"level":0},{"date":"2025-05-07","steps":0,"level":0},{"date":"2025-05-08","steps":0,"level":0},{"date":"2025-05-09","steps":0,"level":0},{"date":"2025-05-10","steps":0,"level":0},{"date":"2025-05-11","steps":0,"level":0}],[{"date":"2025-05-12","steps":0,"level":0},{"date":"2025-05-13","steps":0,"level":0},{"date":"2025-05-14","steps":0,"level":0},{"date":"2025-05-15","steps":0,"level":0},{"date":"2025-05-16","steps":0,"level":0},{"date":"2025-05-17","steps":0,"level":0},{"date":"2025-05-18","steps":0,"level":0}],[{"date":"2025-05-19","steps":0,"level":0},{"date":"2025-05-20","steps":0,"level":0},{"date":"2025-05-21","steps":0,"level":0},{"date":"2025-05-22","steps":0,"level":0},{"date":"2025-05-23","steps":0,"level":0},{"date":"2025-05-24","steps":0,"level":0},{"date":"2025-05-25","steps":0,"level":0}],[{"date":"2025-05-26","steps":0,"level":0},{"date":"2025-05-27","steps":0,"level":0},{"date":"2025-05-28","steps":0,"level":0},{"date":"2025-05-29","steps":0,"level":0},{"date":"2025-05-30","steps":0,"level":0},{"date":"2025-05-31","steps":0,"level":0},{"date":"2025-06-01","steps":0,"level":0}],[{"date":"2025-06-02","steps":0,"level":0},{"date":"2025-06-03","steps":0,"level":0},{"date":"2025-06-04","steps":0,"level":0},{"date":"2025-06-05","steps":0,"level":0},{"date":"2025-06-06","steps":0,"level":0},{"date":"2025-06-07","steps":0,"level":0},{"date":"2025-06-08","steps":0,"level":0}],[{"date":"2025-06-09","steps":0,"level":0},{"date":"2025-06-10","steps":0,"level":0},{"date":"2025-06-11","steps":0,"level":0},{"date":"2025-06-12","steps":0,"level":0},{"date":"2025-06-13","steps":0,"level":0},{"date":"2025-06-14","steps":0,"level":0},{"date":"2025-06-15","steps":0,"level":0}],[{"date":"2025-06-16","steps":0,"level":0},{"date":"2025-06-17","steps":0,"level":0},{"date":"2025-06-18","steps":0,"level":0},{"date":"2025-06-19","steps":0,"level":0},{"date":"2025-06-20","steps":0,"level":0},{"date":"2025-06-21","steps":0,"level":0},{"date":"2025-06-22","steps":0,"level":0}],[{"date":"2025-06-23","steps":0,"level":0},{"date":"2025-06-24","steps":0,"level":0},{"date":"2025-06-25","steps":0,"level":0},{"date":"2025-06-26","steps":0,"level":0},{"date":"2025-06-27","steps":0,"level":0},{"date":"2025-06-28","steps":0,"level":0},{"date":"2025-06-29","steps":0,"level":0}],[{"date":"2025-06-30","steps":0,"level":0},{"date":"2025-07-01","steps":0,"level":0},{"date":"2025-07-02","steps":0,"level":0},{"date":"2025-07-03","steps":0,"level":0},{"date":"2025-07-04","steps":0,"level":0},{"date":"2025-07-05","steps":0,"level":0},{"date":"2025-07-06","steps":0,"level":0}],[{"date":"2025-07-07","steps":0,"level":0},{"date":"2025-07-08","steps":0,"level":0},{"date":"2025-07-09","steps":0,"level":0},{"date":"2025-07-10","steps":0,"level":0},{"date":"2025-07-11","steps":0,"level":0},{"date":"2025-07-12","steps":0,"level":0},{"date":"2025-07-13","steps":0,"level":0}],[{"date":"2025-07-14","steps":0,"level":0},{"date":"2025-07-15","steps":0,"level":0},{"date":"2025-07-16","steps":0,"level":0},{"date":"2025-07-17","steps":0,"level":0},{"date":"2025-07-18","steps":0,"level":0},{"date":"2025-07-19","steps":0,"level":0},{"date":"2025-07-20","steps":0,"level":0}],[{"date":"2025-07-21","steps":0,"level":0},{"date":"2025-07-22","steps":0,"level":0},{"date":"2025-07-23","steps":0,"level":0},{"date":"2025-07-24","steps":0,"level":0},{"date":"2025-07-25","steps":0,"level":0},{"date":"2025-07-26","steps":0,"level":0},{"date":"2025-07-27","steps":0,"level":0}],[{"date":"2025-07-28","steps":0,"level":0},{"date":"2025-07-29","steps":0,"level":0},{"date":"2025-07-30","steps":0,"level":0},{"date":"2025-07-31","steps":0,"level":0},{"date":"2025-08-01","steps":0,"level":0},{"date":"2025-08-02","steps":0,"level":0},{"date":"2025-08-03","steps":0,"level":0}],[{"date":"2025-08-04","steps":0,"level":0},{"date":"2025-08-05","steps":0,"level":0},{"date":"2025-08-06","steps":0,"level":0},{"date":"2025-08-07","steps":0,"level":0},{"date":"2025-08-08","steps":0,"level":0},{"date":"2025-08-09","steps":0,"level":0},{"date":"2025-08-10","steps":0,"level":0}],[{"date":"2025-08-11","steps":0,"level":0},{"date":"2025-08-12","steps":0,"level":0},{"date":"2025-08-13","steps":0,"level":0},{"date":"2025-08-14","steps":0,"level":0},{"date":"2025-08-15","steps":0,"level":0},{"date":"2025-08-16","steps":0,"level":0},{"date":"2025-08-17","steps":0,"level":0}],[{"date":"2025-08-18","steps":0,"level":0},{"date":"2025-08-19","steps":0,"level":0},{"date":"2025-08-20","steps":0,"level":0},{"date":"2025-08-21","steps":0,"level":0},{"date":"2025-08-22","steps":0,"level":0},{"date":"2025-08-23","steps":0,"level":0},{"date":"2025-08-24","steps":0,"level":0}],[{"date":"2025-08-25","steps":0,"level":0},{"date":"2025-08-26","steps":0,"level":0},{"date":"2025-08-27","steps":0,"level":0},{"date":"2025-08-28","steps":0,"level":0},{"date":"2025-08-29","steps":0,"level":0},{"date":"2025-08-30","steps":0,"level":0},{"date":"2025-08-31","steps":0,"level":0}],[{"date":"2025-09-01","steps":0,"level":0},{"date":"2025-09-02","steps":0,"level":0},{"date":"2025-09-03","steps":0,"level":0},{"date":"2025-09-04","steps":0,"level":0},{"date":"2025-09-05","steps":0,"level":0},{"date":"2025-09-06","steps":0,"level":0},{"date":"2025-09-07","steps":0,"level":0}],[{"date":"2025-09-08","steps":0,"level":0},{"date":"2025-09-09","steps":0,"level":0},{"date":"2025-09-10","steps":0,"level":0},{"date":"2025-09-11","steps":0,"level":0},{"date":"2025-09-12","steps":0,"level":0},{"date":"2025-09-13","steps":0,"level":0},{"date":"2025-09-14","steps":0,"level":0}],[{"date":"2025-09-15","steps":0,"level":0},{"date":"2025-09-16","steps":0,"level":0},{"date":"2025-09-17","steps":0,"level":0},{"date":"2025-09-18","steps":0,"level":0},{"date":"2025-09-19","steps":0,"level":0},{"date":"2025-09-20","steps":0,"level":0},{"date":"2025-09-21","steps":0,"level":0}],[{"date":"2025-09-22","steps":0,"level":0},{"date":"2025-09-23","steps":0,"level":0},{"date":"2025-09-24","steps":0,"level":0},{"date":"2025-09-25","steps":0,"level":0},{"date":"2025-09-26","steps":0,"level":0},{"date":"2025-09-27","steps":0,"level":0},{"date":"2025-09-28","steps":0,"level":0}],[{"date":"2025-09-29","steps":0,"level":0},{"date":"2025-09-30","steps":0,"level":0},{"date":"2025-10-01","steps":0,"level":0},{"date":"2025-10-02","steps":0,"level":0},{"date":"2025-10-03","steps":0,"level":0},{"date":"2025-10-04","steps":0,"level":0},{"date":"2025-10-05","steps":0,"level":0}],[{"date":"2025-10-06","steps":0,"level":0},{"date":"2025-10-07","steps":0,"level":0},{"date":"2025-10-08","steps":0,"level":0},{"date":"2025-10-09","steps":0,"level":0},{"date":"2025-10-10","steps":0,"level":0},{"date":"2025-10-11","steps":0,"level":0},{"date":"2025-10-12","steps":0,"level":0}],[{"date":"2025-10-13","steps":0,"level":0},{"date":"2025-10-14","steps":0,"level":0},{"date":"2025-10-15","steps":0,"level":0},{"date":"2025-10-16","steps":0,"level":0},{"date":"2025-10-17","steps":0,"level":0},{"date":"2025-10-18","steps":0,"level":0},{"date":"2025-10-19","steps":0,"level":0}],[{"date":"2025-10-20","steps":0,"level":0},{"date":"2025-10-21","steps":0,"level":0},{"date":"2025-10-22","steps":0,"level":0},{"date":"2025-10-23","steps":0,"level":0},{"date":"2025-10-24","steps":0,"level":0},{"date":"2025-10-25","steps":0,"level":0},{"date":"2025-10-26","steps":0,"level":0}],[{"date":"2025-10-27","steps":0,"level":0},{"date":"2025-10-28","steps":0,"level":0},{"date":"2025-10-29","steps":0,"level":0},{"date":"2025-10-30","steps":0,"level":0},{"date":"2025-10-31","steps":0,"level":0},{"date":"2025-11-01","steps":0,"level":0},{"date":"2025-11-02","steps":0,"level":0}],[{"date":"2025-11-03","steps":0,"level":0},{"date":"2025-11-04","steps":0,"level":0},{"date":"2025-11-05","steps":0,"level":0},{"date":"2025-11-06","steps":0,"level":0},{"date":"2025-11-07","steps":0,"level":0},{"date":"2025-11-08","steps":0,"level":0},{"date":"2025-11-09","steps":0,"level":0}],[{"date":"2025-11-10","steps":0,"level":0},{"date":"2025-11-11","steps":0,"level":0},{"date":"2025-11-12","steps":0,"level":0},{"date":"2025-11-13","steps":0,"level":0},{"date":"2025-11-14","steps":0,"level":0},{"date":"2025-11-15","steps":0,"level":0},{"date":"2025-11-16","steps":0,"level":0}],[{"date":"2025-11-17","steps":0,"level":0},{"date":"2025-11-18","steps":0,"level":0},{"date":"2025-11-19","steps":0,"level":0},{"date":"2025-11-20","steps":0,"level":0},{"date":"2025-11-21","steps":0,"level":0},{"date":"2025-11-22","steps":0,"level":0},{"date":"2025-11-23","steps":0,"level":0}],[{"date":"2025-11-24","steps":0,"level":0},{"date":"2025-11-25","steps":0,"level":0},{"date":"2025-11-26","steps":0,"level":0},{"date":"2025-11-27","steps":0,"level":0},{"date":"2025-11-28","steps":0,"level":0},{"date":"2025-11-29","steps":0,"level":0},{"date":"2025-11-30","steps":0,"level":0}],[{"date":"2025-12-01","steps":0,"level":0},{"date":"2025-12-02","steps":0,"level":0},{"date":"2025-12-03","steps":0,"level":0},{"date":"2025-12-04","steps":0,"level":0},{"date":"2025-12-05","steps":0,"level":0},{"date":"2025-12-06","steps":0,"level":0},{"date":"2025-12-07","steps":0,"level":0}],[{"date":"2025-12-08","steps":0,"level":0},{"date":"2025-12-09","steps":0,"level":0},{"date":"2025-12-10","steps":0,"level":0},{"date":"2025-12-11","steps":0,"level":0},{"date":"2025-12-12","steps":0,"level":0},{"date":"2025-12-13","steps":0,"level":0},{"date":"2025-12-14","steps":0,"level":0}],[{"date":"2025-12-15","steps":0,"level":0},{"date":"2025-12-16","steps":0,"level":0},{"date":"2025-12-17","steps":0,"level":0},{"date":"2025-12-18","steps":0,"level":0},{"date":"2025-12-19","steps":0,"level":0},{"date":"2025-12-20","steps":0,"level":0},{"date":"2025-12-21","steps":0,"level":0}],[{"date":"2025-12-22","steps":0,"level":0},{"date":"2025-12-23","steps":0,"level":0},{"date":"2025-12-24","steps":0,"level":0},{"date":"2025-12-25","steps":0,"level":0},{"date":"2025-12-26","steps":0,"level":0},{"date":"2025-12-27","steps":0,"level":0},{"date":"2025-12-28","steps":0,"level":0}],[{"date":"2025-12-29","steps":0,"level":0},{"date":"2025-12-30","steps":0,"level":0},{"date":"2025-12-31","steps":0,"level":0},{"date":"2026-01-01","steps":1,"level":2},{"date":"2026-01-02","steps":50,"level":4},{"date":"2026-01-03","steps":0,"level":0},{"date":"2026-01-04","steps":0,"level":0}],[{"date":"2026-01-05","steps":0,"level":0},{"date":"2026-01-06","steps":0,"level":0},{"date":"2026-01-07","steps":0,"level":0},{"date":"2026-01-08","steps":0,"level":-1},{"date":"2026-01-09","steps":0,"level":-1},{"date":"2026-01-10","steps":0,"level":-1},{"date":"2026-01-11","steps":0,"level":-1}]],"months":[{"week":0,"label":"Jan","span":4},{"week":4,"label":"Feb","span":4},{"week":8,"label":"Mar","span":4},{"week":12,"label":"Apr","span":4},{"week":16,"label":"May","span":5},{"week":21,"label":"Jun","span":4},{"week":25,"label":"Jul","span":5},{"week":30,"label":"Aug","span":4},{"week":34,"label":"Sep","span":4},{"week":38,"label":"Oct","span":5},{"week":43,"label":"Nov","span":4},{"week":47,"label":"Dec","span":4},{"week":51,"label":"Jan","span":2}],"clipped":true}}, +{"tz":"Etc/GMT-9","offset":32400,"input":{"name":"partial months","activity":[{"date":"2026-01-01","steps":1},{"date":"2026-01-02","steps":50}],"from":1777388400000,"to":1779202800000,"maxWeeks":53},"output":{"weeks":[[{"date":"2026-04-27","steps":0,"level":-1},{"date":"2026-04-28","steps":0,"level":-1},{"date":"2026-04-29","steps":0,"level":0},{"date":"2026-04-30","steps":0,"level":0},{"date":"2026-05-01","steps":0,"level":0},{"date":"2026-05-02","steps":0,"level":0},{"date":"2026-05-03","steps":0,"level":0}],[{"date":"2026-05-04","steps":0,"level":0},{"date":"2026-05-05","steps":0,"level":0},{"date":"2026-05-06","steps":0,"level":0},{"date":"2026-05-07","steps":0,"level":0},{"date":"2026-05-08","steps":0,"level":0},{"date":"2026-05-09","steps":0,"level":0},{"date":"2026-05-10","steps":0,"level":0}],[{"date":"2026-05-11","steps":0,"level":0},{"date":"2026-05-12","steps":0,"level":0},{"date":"2026-05-13","steps":0,"level":0},{"date":"2026-05-14","steps":0,"level":0},{"date":"2026-05-15","steps":0,"level":0},{"date":"2026-05-16","steps":0,"level":0},{"date":"2026-05-17","steps":0,"level":0}],[{"date":"2026-05-18","steps":0,"level":0},{"date":"2026-05-19","steps":0,"level":0},{"date":"2026-05-20","steps":0,"level":-1},{"date":"2026-05-21","steps":0,"level":-1},{"date":"2026-05-22","steps":0,"level":-1},{"date":"2026-05-23","steps":0,"level":-1},{"date":"2026-05-24","steps":0,"level":-1}]],"months":[{"week":0,"label":"Apr","span":1},{"week":1,"label":"May","span":3}],"clipped":false}}, +{"tz":"Etc/GMT-9","offset":32400,"input":{"name":"one day","activity":[{"date":"2026-01-01","steps":1},{"date":"2026-01-02","steps":50}],"from":1774969200000,"to":1775055600000,"maxWeeks":53},"output":{"weeks":[[{"date":"2026-03-30","steps":0,"level":-1},{"date":"2026-03-31","steps":0,"level":-1},{"date":"2026-04-01","steps":0,"level":0},{"date":"2026-04-02","steps":0,"level":-1},{"date":"2026-04-03","steps":0,"level":-1},{"date":"2026-04-04","steps":0,"level":-1},{"date":"2026-04-05","steps":0,"level":-1}]],"months":[{"week":0,"label":"Apr","span":1}],"clipped":false}}, +{"tz":"Etc/GMT-9","offset":32400,"input":{"name":"year boundary","activity":[{"date":"2026-01-01","steps":1},{"date":"2026-01-02","steps":50}],"from":1766329200000,"to":1768143600000,"maxWeeks":53},"output":{"weeks":[[{"date":"2025-12-22","steps":0,"level":0},{"date":"2025-12-23","steps":0,"level":0},{"date":"2025-12-24","steps":0,"level":0},{"date":"2025-12-25","steps":0,"level":0},{"date":"2025-12-26","steps":0,"level":0},{"date":"2025-12-27","steps":0,"level":0},{"date":"2025-12-28","steps":0,"level":0}],[{"date":"2025-12-29","steps":0,"level":0},{"date":"2025-12-30","steps":0,"level":0},{"date":"2025-12-31","steps":0,"level":0},{"date":"2026-01-01","steps":1,"level":2},{"date":"2026-01-02","steps":50,"level":4},{"date":"2026-01-03","steps":0,"level":0},{"date":"2026-01-04","steps":0,"level":0}],[{"date":"2026-01-05","steps":0,"level":0},{"date":"2026-01-06","steps":0,"level":0},{"date":"2026-01-07","steps":0,"level":0},{"date":"2026-01-08","steps":0,"level":0},{"date":"2026-01-09","steps":0,"level":0},{"date":"2026-01-10","steps":0,"level":0},{"date":"2026-01-11","steps":0,"level":0}]],"months":[{"week":0,"label":"Dec","span":1},{"week":1,"label":"Jan","span":2}],"clipped":false}}, +{"tz":"Etc/GMT-9","offset":32400,"input":{"name":"leap day","activity":[{"date":"2024-02-29","steps":1},{"date":"2024-03-10","steps":1}],"from":1708873200000,"to":1710169200000,"maxWeeks":53},"output":{"weeks":[[{"date":"2024-02-26","steps":0,"level":0},{"date":"2024-02-27","steps":0,"level":0},{"date":"2024-02-28","steps":0,"level":0},{"date":"2024-02-29","steps":1,"level":4},{"date":"2024-03-01","steps":0,"level":0},{"date":"2024-03-02","steps":0,"level":0},{"date":"2024-03-03","steps":0,"level":0}],[{"date":"2024-03-04","steps":0,"level":0},{"date":"2024-03-05","steps":0,"level":0},{"date":"2024-03-06","steps":0,"level":0},{"date":"2024-03-07","steps":0,"level":0},{"date":"2024-03-08","steps":0,"level":0},{"date":"2024-03-09","steps":0,"level":0},{"date":"2024-03-10","steps":1,"level":4}],[{"date":"2024-03-11","steps":0,"level":0},{"date":"2024-03-12","steps":0,"level":-1},{"date":"2024-03-13","steps":0,"level":-1},{"date":"2024-03-14","steps":0,"level":-1},{"date":"2024-03-15","steps":0,"level":-1},{"date":"2024-03-16","steps":0,"level":-1},{"date":"2024-03-17","steps":0,"level":-1}]],"months":[{"week":0,"label":"Feb","span":1},{"week":1,"label":"Mar","span":2}],"clipped":false}}, +{"tz":"Etc/GMT-9","offset":32400,"input":{"name":"one distinct count","activity":[{"date":"2026-01-01","steps":10},{"date":"2026-01-02","steps":10}],"from":1767193200000,"to":1767798000000,"maxWeeks":53},"output":{"weeks":[[{"date":"2025-12-29","steps":0,"level":-1},{"date":"2025-12-30","steps":0,"level":-1},{"date":"2025-12-31","steps":0,"level":-1},{"date":"2026-01-01","steps":10,"level":4},{"date":"2026-01-02","steps":10,"level":4},{"date":"2026-01-03","steps":0,"level":0},{"date":"2026-01-04","steps":0,"level":0}],[{"date":"2026-01-05","steps":0,"level":0},{"date":"2026-01-06","steps":0,"level":0},{"date":"2026-01-07","steps":0,"level":0},{"date":"2026-01-08","steps":0,"level":-1},{"date":"2026-01-09","steps":0,"level":-1},{"date":"2026-01-10","steps":0,"level":-1},{"date":"2026-01-11","steps":0,"level":-1}]],"months":[{"week":0,"label":"Jan","span":2}],"clipped":false}}, +{"tz":"Etc/GMT-9","offset":32400,"input":{"name":"eight levels","activity":[{"date":"2026-01-01","steps":1},{"date":"2026-01-02","steps":2},{"date":"2026-01-03","steps":3},{"date":"2026-01-04","steps":4},{"date":"2026-01-05","steps":5},{"date":"2026-01-06","steps":6},{"date":"2026-01-07","steps":7},{"date":"2026-01-08","steps":8}],"from":1767193200000,"to":1767970800000,"maxWeeks":53},"output":{"weeks":[[{"date":"2025-12-29","steps":0,"level":-1},{"date":"2025-12-30","steps":0,"level":-1},{"date":"2025-12-31","steps":0,"level":-1},{"date":"2026-01-01","steps":1,"level":1},{"date":"2026-01-02","steps":2,"level":1},{"date":"2026-01-03","steps":3,"level":2},{"date":"2026-01-04","steps":4,"level":2}],[{"date":"2026-01-05","steps":5,"level":3},{"date":"2026-01-06","steps":6,"level":3},{"date":"2026-01-07","steps":7,"level":4},{"date":"2026-01-08","steps":8,"level":4},{"date":"2026-01-09","steps":0,"level":0},{"date":"2026-01-10","steps":0,"level":-1},{"date":"2026-01-11","steps":0,"level":-1}]],"months":[{"week":0,"label":"Jan","span":2}],"clipped":false}}, +{"tz":"Etc/GMT-9","offset":32400,"input":{"name":"clipped keeps range levels","activity":[{"date":"2026-01-01","steps":50},{"date":"2026-01-05","steps":1}],"from":1767193200000,"to":1767798000000,"maxWeeks":1},"output":{"weeks":[[{"date":"2026-01-05","steps":1,"level":2},{"date":"2026-01-06","steps":0,"level":0},{"date":"2026-01-07","steps":0,"level":0},{"date":"2026-01-08","steps":0,"level":-1},{"date":"2026-01-09","steps":0,"level":-1},{"date":"2026-01-10","steps":0,"level":-1},{"date":"2026-01-11","steps":0,"level":-1}]],"months":[{"week":0,"label":"Jan","span":1}],"clipped":true}}, +{"tz":"Etc/GMT-9","offset":32400,"input":{"name":"empty range","activity":[],"from":1767193200000,"to":1767193200000,"maxWeeks":53},"output":{"weeks":[],"months":[],"clipped":false}}, +{"tz":"Etc/GMT-9","offset":32400,"input":{"name":"reversed range","activity":[],"from":1767798000000,"to":1767193200000,"maxWeeks":53},"output":{"weeks":[],"months":[],"clipped":false}}, +{"tz":"Etc/GMT-9","offset":32400,"input":{"name":"a year so far, mid-day end","activity":[{"date":"2026-01-01","steps":0},{"date":"2026-01-02","steps":14},{"date":"2026-01-03","steps":5},{"date":"2026-01-04","steps":19},{"date":"2026-01-05","steps":10},{"date":"2026-01-06","steps":1},{"date":"2026-01-07","steps":15},{"date":"2026-01-08","steps":6},{"date":"2026-01-09","steps":20},{"date":"2026-01-10","steps":11},{"date":"2026-01-11","steps":2},{"date":"2026-01-12","steps":16},{"date":"2026-01-13","steps":7},{"date":"2026-01-14","steps":21},{"date":"2026-01-15","steps":12},{"date":"2026-01-16","steps":3},{"date":"2026-01-17","steps":17},{"date":"2026-01-18","steps":8},{"date":"2026-01-19","steps":22},{"date":"2026-01-20","steps":13},{"date":"2026-01-21","steps":4},{"date":"2026-01-22","steps":18},{"date":"2026-01-23","steps":9},{"date":"2026-01-24","steps":0},{"date":"2026-01-25","steps":14},{"date":"2026-01-26","steps":5},{"date":"2026-01-27","steps":19},{"date":"2026-01-28","steps":10},{"date":"2026-01-29","steps":1},{"date":"2026-01-30","steps":15},{"date":"2026-01-31","steps":6},{"date":"2026-02-01","steps":20},{"date":"2026-02-02","steps":11},{"date":"2026-02-03","steps":2},{"date":"2026-02-04","steps":16},{"date":"2026-02-05","steps":7},{"date":"2026-02-06","steps":21},{"date":"2026-02-07","steps":12},{"date":"2026-02-08","steps":3},{"date":"2026-02-09","steps":17},{"date":"2026-02-10","steps":8},{"date":"2026-02-11","steps":22},{"date":"2026-02-12","steps":13},{"date":"2026-02-13","steps":4},{"date":"2026-02-14","steps":18},{"date":"2026-02-15","steps":9},{"date":"2026-02-16","steps":0},{"date":"2026-02-17","steps":14},{"date":"2026-02-18","steps":5},{"date":"2026-02-19","steps":19},{"date":"2026-02-20","steps":10},{"date":"2026-02-21","steps":1},{"date":"2026-02-22","steps":15},{"date":"2026-02-23","steps":6},{"date":"2026-02-24","steps":20},{"date":"2026-02-25","steps":11},{"date":"2026-02-26","steps":2},{"date":"2026-02-27","steps":16},{"date":"2026-02-28","steps":7},{"date":"2026-03-01","steps":21},{"date":"2026-03-02","steps":12},{"date":"2026-03-03","steps":3},{"date":"2026-03-04","steps":17},{"date":"2026-03-05","steps":8},{"date":"2026-03-06","steps":22},{"date":"2026-03-07","steps":13},{"date":"2026-03-08","steps":4},{"date":"2026-03-09","steps":18},{"date":"2026-03-10","steps":9},{"date":"2026-03-11","steps":0},{"date":"2026-03-12","steps":14},{"date":"2026-03-13","steps":5},{"date":"2026-03-14","steps":19},{"date":"2026-03-15","steps":10},{"date":"2026-03-16","steps":1},{"date":"2026-03-17","steps":15},{"date":"2026-03-18","steps":6},{"date":"2026-03-19","steps":20},{"date":"2026-03-20","steps":11},{"date":"2026-03-21","steps":2},{"date":"2026-03-22","steps":16},{"date":"2026-03-23","steps":7},{"date":"2026-03-24","steps":21},{"date":"2026-03-25","steps":12},{"date":"2026-03-26","steps":3},{"date":"2026-03-27","steps":17},{"date":"2026-03-28","steps":8},{"date":"2026-03-29","steps":22},{"date":"2026-03-30","steps":13},{"date":"2026-03-31","steps":4},{"date":"2026-04-01","steps":18},{"date":"2026-04-02","steps":9},{"date":"2026-04-03","steps":0},{"date":"2026-04-04","steps":14},{"date":"2026-04-05","steps":5},{"date":"2026-04-06","steps":19},{"date":"2026-04-07","steps":10},{"date":"2026-04-08","steps":1},{"date":"2026-04-09","steps":15},{"date":"2026-04-10","steps":6},{"date":"2026-04-11","steps":20},{"date":"2026-04-12","steps":11},{"date":"2026-04-13","steps":2},{"date":"2026-04-14","steps":16},{"date":"2026-04-15","steps":7},{"date":"2026-04-16","steps":21},{"date":"2026-04-17","steps":12},{"date":"2026-04-18","steps":3},{"date":"2026-04-19","steps":17},{"date":"2026-04-20","steps":8},{"date":"2026-04-21","steps":22},{"date":"2026-04-22","steps":13},{"date":"2026-04-23","steps":4},{"date":"2026-04-24","steps":18},{"date":"2026-04-25","steps":9},{"date":"2026-04-26","steps":0},{"date":"2026-04-27","steps":14},{"date":"2026-04-28","steps":5},{"date":"2026-04-29","steps":19},{"date":"2026-04-30","steps":10},{"date":"2026-05-01","steps":1},{"date":"2026-05-02","steps":15},{"date":"2026-05-03","steps":6},{"date":"2026-05-04","steps":20},{"date":"2026-05-05","steps":11},{"date":"2026-05-06","steps":2},{"date":"2026-05-07","steps":16},{"date":"2026-05-08","steps":7},{"date":"2026-05-09","steps":21},{"date":"2026-05-10","steps":12},{"date":"2026-05-11","steps":3},{"date":"2026-05-12","steps":17},{"date":"2026-05-13","steps":8},{"date":"2026-05-14","steps":22},{"date":"2026-05-15","steps":13},{"date":"2026-05-16","steps":4},{"date":"2026-05-17","steps":18},{"date":"2026-05-18","steps":9},{"date":"2026-05-19","steps":0},{"date":"2026-05-20","steps":14},{"date":"2026-05-21","steps":5},{"date":"2026-05-22","steps":19},{"date":"2026-05-23","steps":10},{"date":"2026-05-24","steps":1},{"date":"2026-05-25","steps":15},{"date":"2026-05-26","steps":6},{"date":"2026-05-27","steps":20},{"date":"2026-05-28","steps":11},{"date":"2026-05-29","steps":2},{"date":"2026-05-30","steps":16},{"date":"2026-05-31","steps":7},{"date":"2026-06-01","steps":21},{"date":"2026-06-02","steps":12},{"date":"2026-06-03","steps":3},{"date":"2026-06-04","steps":17},{"date":"2026-06-05","steps":8},{"date":"2026-06-06","steps":22},{"date":"2026-06-07","steps":13},{"date":"2026-06-08","steps":4},{"date":"2026-06-09","steps":18},{"date":"2026-06-10","steps":9},{"date":"2026-06-11","steps":0},{"date":"2026-06-12","steps":14},{"date":"2026-06-13","steps":5},{"date":"2026-06-14","steps":19},{"date":"2026-06-15","steps":10},{"date":"2026-06-16","steps":1},{"date":"2026-06-17","steps":15},{"date":"2026-06-18","steps":6},{"date":"2026-06-19","steps":20},{"date":"2026-06-20","steps":11},{"date":"2026-06-21","steps":2},{"date":"2026-06-22","steps":16},{"date":"2026-06-23","steps":7},{"date":"2026-06-24","steps":21},{"date":"2026-06-25","steps":12},{"date":"2026-06-26","steps":3},{"date":"2026-06-27","steps":17},{"date":"2026-06-28","steps":8},{"date":"2026-06-29","steps":22},{"date":"2026-06-30","steps":13},{"date":"2026-07-01","steps":4},{"date":"2026-07-02","steps":18},{"date":"2026-07-03","steps":9},{"date":"2026-07-04","steps":0},{"date":"2026-07-05","steps":14},{"date":"2026-07-06","steps":5},{"date":"2026-07-07","steps":19},{"date":"2026-07-08","steps":10},{"date":"2026-07-09","steps":1},{"date":"2026-07-10","steps":15},{"date":"2026-07-11","steps":6},{"date":"2026-07-12","steps":20},{"date":"2026-07-13","steps":11},{"date":"2026-07-14","steps":2},{"date":"2026-07-15","steps":16},{"date":"2026-07-16","steps":7},{"date":"2026-07-17","steps":21},{"date":"2026-07-18","steps":12},{"date":"2026-07-19","steps":3},{"date":"2026-07-20","steps":17},{"date":"2026-07-21","steps":8},{"date":"2026-07-22","steps":22},{"date":"2026-07-23","steps":13},{"date":"2026-07-24","steps":4},{"date":"2026-07-25","steps":18},{"date":"2026-07-26","steps":9},{"date":"2026-07-27","steps":0},{"date":"2026-07-28","steps":14},{"date":"2026-07-29","steps":5},{"date":"2026-07-30","steps":19},{"date":"2026-07-31","steps":10},{"date":"2026-08-01","steps":1},{"date":"2026-08-02","steps":15},{"date":"2026-08-03","steps":6},{"date":"2026-08-04","steps":20},{"date":"2026-08-05","steps":11},{"date":"2026-08-06","steps":2},{"date":"2026-08-07","steps":16},{"date":"2026-08-08","steps":7},{"date":"2026-08-09","steps":21},{"date":"2026-08-10","steps":12},{"date":"2026-08-11","steps":3},{"date":"2026-08-12","steps":17},{"date":"2026-08-13","steps":8},{"date":"2026-08-14","steps":22},{"date":"2026-08-15","steps":13},{"date":"2026-08-16","steps":4},{"date":"2026-08-17","steps":18},{"date":"2026-08-18","steps":9},{"date":"2026-08-19","steps":0},{"date":"2026-08-20","steps":14},{"date":"2026-08-21","steps":5},{"date":"2026-08-22","steps":19},{"date":"2026-08-23","steps":10},{"date":"2026-08-24","steps":1},{"date":"2026-08-25","steps":15},{"date":"2026-08-26","steps":6},{"date":"2026-08-27","steps":20},{"date":"2026-08-28","steps":11},{"date":"2026-08-29","steps":2},{"date":"2026-08-30","steps":16},{"date":"2026-08-31","steps":7},{"date":"2026-09-01","steps":21},{"date":"2026-09-02","steps":12},{"date":"2026-09-03","steps":3},{"date":"2026-09-04","steps":17},{"date":"2026-09-05","steps":8},{"date":"2026-09-06","steps":22},{"date":"2026-09-07","steps":13},{"date":"2026-09-08","steps":4},{"date":"2026-09-09","steps":18},{"date":"2026-09-10","steps":9},{"date":"2026-09-11","steps":0},{"date":"2026-09-12","steps":14},{"date":"2026-09-13","steps":5},{"date":"2026-09-14","steps":19},{"date":"2026-09-15","steps":10},{"date":"2026-09-16","steps":1},{"date":"2026-09-17","steps":15},{"date":"2026-09-18","steps":6},{"date":"2026-09-19","steps":20},{"date":"2026-09-20","steps":11},{"date":"2026-09-21","steps":2},{"date":"2026-09-22","steps":16},{"date":"2026-09-23","steps":7},{"date":"2026-09-24","steps":21},{"date":"2026-09-25","steps":12},{"date":"2026-09-26","steps":3},{"date":"2026-09-27","steps":17},{"date":"2026-09-28","steps":8},{"date":"2026-09-29","steps":22},{"date":"2026-09-30","steps":13},{"date":"2026-10-01","steps":4},{"date":"2026-10-02","steps":18},{"date":"2026-10-03","steps":9},{"date":"2026-10-04","steps":0},{"date":"2026-10-05","steps":14},{"date":"2026-10-06","steps":5},{"date":"2026-10-07","steps":19},{"date":"2026-10-08","steps":10},{"date":"2026-10-09","steps":1},{"date":"2026-10-10","steps":15},{"date":"2026-10-11","steps":6},{"date":"2026-10-12","steps":20},{"date":"2026-10-13","steps":11},{"date":"2026-10-14","steps":2},{"date":"2026-10-15","steps":16},{"date":"2026-10-16","steps":7},{"date":"2026-10-17","steps":21},{"date":"2026-10-18","steps":12},{"date":"2026-10-19","steps":3},{"date":"2026-10-20","steps":17},{"date":"2026-10-21","steps":8},{"date":"2026-10-22","steps":22},{"date":"2026-10-23","steps":13},{"date":"2026-10-24","steps":4},{"date":"2026-10-25","steps":18},{"date":"2026-10-26","steps":9},{"date":"2026-10-27","steps":0}],"from":1767193200000,"to":1793080800001,"maxWeeks":76},"output":{"weeks":[[{"date":"2025-12-29","steps":0,"level":-1},{"date":"2025-12-30","steps":0,"level":-1},{"date":"2025-12-31","steps":0,"level":-1},{"date":"2026-01-01","steps":0,"level":0},{"date":"2026-01-02","steps":14,"level":3},{"date":"2026-01-03","steps":5,"level":1},{"date":"2026-01-04","steps":19,"level":4}],[{"date":"2026-01-05","steps":10,"level":2},{"date":"2026-01-06","steps":1,"level":1},{"date":"2026-01-07","steps":15,"level":3},{"date":"2026-01-08","steps":6,"level":2},{"date":"2026-01-09","steps":20,"level":4},{"date":"2026-01-10","steps":11,"level":2},{"date":"2026-01-11","steps":2,"level":1}],[{"date":"2026-01-12","steps":16,"level":3},{"date":"2026-01-13","steps":7,"level":2},{"date":"2026-01-14","steps":21,"level":4},{"date":"2026-01-15","steps":12,"level":3},{"date":"2026-01-16","steps":3,"level":1},{"date":"2026-01-17","steps":17,"level":4},{"date":"2026-01-18","steps":8,"level":2}],[{"date":"2026-01-19","steps":22,"level":4},{"date":"2026-01-20","steps":13,"level":3},{"date":"2026-01-21","steps":4,"level":1},{"date":"2026-01-22","steps":18,"level":4},{"date":"2026-01-23","steps":9,"level":2},{"date":"2026-01-24","steps":0,"level":0},{"date":"2026-01-25","steps":14,"level":3}],[{"date":"2026-01-26","steps":5,"level":1},{"date":"2026-01-27","steps":19,"level":4},{"date":"2026-01-28","steps":10,"level":2},{"date":"2026-01-29","steps":1,"level":1},{"date":"2026-01-30","steps":15,"level":3},{"date":"2026-01-31","steps":6,"level":2},{"date":"2026-02-01","steps":20,"level":4}],[{"date":"2026-02-02","steps":11,"level":2},{"date":"2026-02-03","steps":2,"level":1},{"date":"2026-02-04","steps":16,"level":3},{"date":"2026-02-05","steps":7,"level":2},{"date":"2026-02-06","steps":21,"level":4},{"date":"2026-02-07","steps":12,"level":3},{"date":"2026-02-08","steps":3,"level":1}],[{"date":"2026-02-09","steps":17,"level":4},{"date":"2026-02-10","steps":8,"level":2},{"date":"2026-02-11","steps":22,"level":4},{"date":"2026-02-12","steps":13,"level":3},{"date":"2026-02-13","steps":4,"level":1},{"date":"2026-02-14","steps":18,"level":4},{"date":"2026-02-15","steps":9,"level":2}],[{"date":"2026-02-16","steps":0,"level":0},{"date":"2026-02-17","steps":14,"level":3},{"date":"2026-02-18","steps":5,"level":1},{"date":"2026-02-19","steps":19,"level":4},{"date":"2026-02-20","steps":10,"level":2},{"date":"2026-02-21","steps":1,"level":1},{"date":"2026-02-22","steps":15,"level":3}],[{"date":"2026-02-23","steps":6,"level":2},{"date":"2026-02-24","steps":20,"level":4},{"date":"2026-02-25","steps":11,"level":2},{"date":"2026-02-26","steps":2,"level":1},{"date":"2026-02-27","steps":16,"level":3},{"date":"2026-02-28","steps":7,"level":2},{"date":"2026-03-01","steps":21,"level":4}],[{"date":"2026-03-02","steps":12,"level":3},{"date":"2026-03-03","steps":3,"level":1},{"date":"2026-03-04","steps":17,"level":4},{"date":"2026-03-05","steps":8,"level":2},{"date":"2026-03-06","steps":22,"level":4},{"date":"2026-03-07","steps":13,"level":3},{"date":"2026-03-08","steps":4,"level":1}],[{"date":"2026-03-09","steps":18,"level":4},{"date":"2026-03-10","steps":9,"level":2},{"date":"2026-03-11","steps":0,"level":0},{"date":"2026-03-12","steps":14,"level":3},{"date":"2026-03-13","steps":5,"level":1},{"date":"2026-03-14","steps":19,"level":4},{"date":"2026-03-15","steps":10,"level":2}],[{"date":"2026-03-16","steps":1,"level":1},{"date":"2026-03-17","steps":15,"level":3},{"date":"2026-03-18","steps":6,"level":2},{"date":"2026-03-19","steps":20,"level":4},{"date":"2026-03-20","steps":11,"level":2},{"date":"2026-03-21","steps":2,"level":1},{"date":"2026-03-22","steps":16,"level":3}],[{"date":"2026-03-23","steps":7,"level":2},{"date":"2026-03-24","steps":21,"level":4},{"date":"2026-03-25","steps":12,"level":3},{"date":"2026-03-26","steps":3,"level":1},{"date":"2026-03-27","steps":17,"level":4},{"date":"2026-03-28","steps":8,"level":2},{"date":"2026-03-29","steps":22,"level":4}],[{"date":"2026-03-30","steps":13,"level":3},{"date":"2026-03-31","steps":4,"level":1},{"date":"2026-04-01","steps":18,"level":4},{"date":"2026-04-02","steps":9,"level":2},{"date":"2026-04-03","steps":0,"level":0},{"date":"2026-04-04","steps":14,"level":3},{"date":"2026-04-05","steps":5,"level":1}],[{"date":"2026-04-06","steps":19,"level":4},{"date":"2026-04-07","steps":10,"level":2},{"date":"2026-04-08","steps":1,"level":1},{"date":"2026-04-09","steps":15,"level":3},{"date":"2026-04-10","steps":6,"level":2},{"date":"2026-04-11","steps":20,"level":4},{"date":"2026-04-12","steps":11,"level":2}],[{"date":"2026-04-13","steps":2,"level":1},{"date":"2026-04-14","steps":16,"level":3},{"date":"2026-04-15","steps":7,"level":2},{"date":"2026-04-16","steps":21,"level":4},{"date":"2026-04-17","steps":12,"level":3},{"date":"2026-04-18","steps":3,"level":1},{"date":"2026-04-19","steps":17,"level":4}],[{"date":"2026-04-20","steps":8,"level":2},{"date":"2026-04-21","steps":22,"level":4},{"date":"2026-04-22","steps":13,"level":3},{"date":"2026-04-23","steps":4,"level":1},{"date":"2026-04-24","steps":18,"level":4},{"date":"2026-04-25","steps":9,"level":2},{"date":"2026-04-26","steps":0,"level":0}],[{"date":"2026-04-27","steps":14,"level":3},{"date":"2026-04-28","steps":5,"level":1},{"date":"2026-04-29","steps":19,"level":4},{"date":"2026-04-30","steps":10,"level":2},{"date":"2026-05-01","steps":1,"level":1},{"date":"2026-05-02","steps":15,"level":3},{"date":"2026-05-03","steps":6,"level":2}],[{"date":"2026-05-04","steps":20,"level":4},{"date":"2026-05-05","steps":11,"level":2},{"date":"2026-05-06","steps":2,"level":1},{"date":"2026-05-07","steps":16,"level":3},{"date":"2026-05-08","steps":7,"level":2},{"date":"2026-05-09","steps":21,"level":4},{"date":"2026-05-10","steps":12,"level":3}],[{"date":"2026-05-11","steps":3,"level":1},{"date":"2026-05-12","steps":17,"level":4},{"date":"2026-05-13","steps":8,"level":2},{"date":"2026-05-14","steps":22,"level":4},{"date":"2026-05-15","steps":13,"level":3},{"date":"2026-05-16","steps":4,"level":1},{"date":"2026-05-17","steps":18,"level":4}],[{"date":"2026-05-18","steps":9,"level":2},{"date":"2026-05-19","steps":0,"level":0},{"date":"2026-05-20","steps":14,"level":3},{"date":"2026-05-21","steps":5,"level":1},{"date":"2026-05-22","steps":19,"level":4},{"date":"2026-05-23","steps":10,"level":2},{"date":"2026-05-24","steps":1,"level":1}],[{"date":"2026-05-25","steps":15,"level":3},{"date":"2026-05-26","steps":6,"level":2},{"date":"2026-05-27","steps":20,"level":4},{"date":"2026-05-28","steps":11,"level":2},{"date":"2026-05-29","steps":2,"level":1},{"date":"2026-05-30","steps":16,"level":3},{"date":"2026-05-31","steps":7,"level":2}],[{"date":"2026-06-01","steps":21,"level":4},{"date":"2026-06-02","steps":12,"level":3},{"date":"2026-06-03","steps":3,"level":1},{"date":"2026-06-04","steps":17,"level":4},{"date":"2026-06-05","steps":8,"level":2},{"date":"2026-06-06","steps":22,"level":4},{"date":"2026-06-07","steps":13,"level":3}],[{"date":"2026-06-08","steps":4,"level":1},{"date":"2026-06-09","steps":18,"level":4},{"date":"2026-06-10","steps":9,"level":2},{"date":"2026-06-11","steps":0,"level":0},{"date":"2026-06-12","steps":14,"level":3},{"date":"2026-06-13","steps":5,"level":1},{"date":"2026-06-14","steps":19,"level":4}],[{"date":"2026-06-15","steps":10,"level":2},{"date":"2026-06-16","steps":1,"level":1},{"date":"2026-06-17","steps":15,"level":3},{"date":"2026-06-18","steps":6,"level":2},{"date":"2026-06-19","steps":20,"level":4},{"date":"2026-06-20","steps":11,"level":2},{"date":"2026-06-21","steps":2,"level":1}],[{"date":"2026-06-22","steps":16,"level":3},{"date":"2026-06-23","steps":7,"level":2},{"date":"2026-06-24","steps":21,"level":4},{"date":"2026-06-25","steps":12,"level":3},{"date":"2026-06-26","steps":3,"level":1},{"date":"2026-06-27","steps":17,"level":4},{"date":"2026-06-28","steps":8,"level":2}],[{"date":"2026-06-29","steps":22,"level":4},{"date":"2026-06-30","steps":13,"level":3},{"date":"2026-07-01","steps":4,"level":1},{"date":"2026-07-02","steps":18,"level":4},{"date":"2026-07-03","steps":9,"level":2},{"date":"2026-07-04","steps":0,"level":0},{"date":"2026-07-05","steps":14,"level":3}],[{"date":"2026-07-06","steps":5,"level":1},{"date":"2026-07-07","steps":19,"level":4},{"date":"2026-07-08","steps":10,"level":2},{"date":"2026-07-09","steps":1,"level":1},{"date":"2026-07-10","steps":15,"level":3},{"date":"2026-07-11","steps":6,"level":2},{"date":"2026-07-12","steps":20,"level":4}],[{"date":"2026-07-13","steps":11,"level":2},{"date":"2026-07-14","steps":2,"level":1},{"date":"2026-07-15","steps":16,"level":3},{"date":"2026-07-16","steps":7,"level":2},{"date":"2026-07-17","steps":21,"level":4},{"date":"2026-07-18","steps":12,"level":3},{"date":"2026-07-19","steps":3,"level":1}],[{"date":"2026-07-20","steps":17,"level":4},{"date":"2026-07-21","steps":8,"level":2},{"date":"2026-07-22","steps":22,"level":4},{"date":"2026-07-23","steps":13,"level":3},{"date":"2026-07-24","steps":4,"level":1},{"date":"2026-07-25","steps":18,"level":4},{"date":"2026-07-26","steps":9,"level":2}],[{"date":"2026-07-27","steps":0,"level":0},{"date":"2026-07-28","steps":14,"level":3},{"date":"2026-07-29","steps":5,"level":1},{"date":"2026-07-30","steps":19,"level":4},{"date":"2026-07-31","steps":10,"level":2},{"date":"2026-08-01","steps":1,"level":1},{"date":"2026-08-02","steps":15,"level":3}],[{"date":"2026-08-03","steps":6,"level":2},{"date":"2026-08-04","steps":20,"level":4},{"date":"2026-08-05","steps":11,"level":2},{"date":"2026-08-06","steps":2,"level":1},{"date":"2026-08-07","steps":16,"level":3},{"date":"2026-08-08","steps":7,"level":2},{"date":"2026-08-09","steps":21,"level":4}],[{"date":"2026-08-10","steps":12,"level":3},{"date":"2026-08-11","steps":3,"level":1},{"date":"2026-08-12","steps":17,"level":4},{"date":"2026-08-13","steps":8,"level":2},{"date":"2026-08-14","steps":22,"level":4},{"date":"2026-08-15","steps":13,"level":3},{"date":"2026-08-16","steps":4,"level":1}],[{"date":"2026-08-17","steps":18,"level":4},{"date":"2026-08-18","steps":9,"level":2},{"date":"2026-08-19","steps":0,"level":0},{"date":"2026-08-20","steps":14,"level":3},{"date":"2026-08-21","steps":5,"level":1},{"date":"2026-08-22","steps":19,"level":4},{"date":"2026-08-23","steps":10,"level":2}],[{"date":"2026-08-24","steps":1,"level":1},{"date":"2026-08-25","steps":15,"level":3},{"date":"2026-08-26","steps":6,"level":2},{"date":"2026-08-27","steps":20,"level":4},{"date":"2026-08-28","steps":11,"level":2},{"date":"2026-08-29","steps":2,"level":1},{"date":"2026-08-30","steps":16,"level":3}],[{"date":"2026-08-31","steps":7,"level":2},{"date":"2026-09-01","steps":21,"level":4},{"date":"2026-09-02","steps":12,"level":3},{"date":"2026-09-03","steps":3,"level":1},{"date":"2026-09-04","steps":17,"level":4},{"date":"2026-09-05","steps":8,"level":2},{"date":"2026-09-06","steps":22,"level":4}],[{"date":"2026-09-07","steps":13,"level":3},{"date":"2026-09-08","steps":4,"level":1},{"date":"2026-09-09","steps":18,"level":4},{"date":"2026-09-10","steps":9,"level":2},{"date":"2026-09-11","steps":0,"level":0},{"date":"2026-09-12","steps":14,"level":3},{"date":"2026-09-13","steps":5,"level":1}],[{"date":"2026-09-14","steps":19,"level":4},{"date":"2026-09-15","steps":10,"level":2},{"date":"2026-09-16","steps":1,"level":1},{"date":"2026-09-17","steps":15,"level":3},{"date":"2026-09-18","steps":6,"level":2},{"date":"2026-09-19","steps":20,"level":4},{"date":"2026-09-20","steps":11,"level":2}],[{"date":"2026-09-21","steps":2,"level":1},{"date":"2026-09-22","steps":16,"level":3},{"date":"2026-09-23","steps":7,"level":2},{"date":"2026-09-24","steps":21,"level":4},{"date":"2026-09-25","steps":12,"level":3},{"date":"2026-09-26","steps":3,"level":1},{"date":"2026-09-27","steps":17,"level":4}],[{"date":"2026-09-28","steps":8,"level":2},{"date":"2026-09-29","steps":22,"level":4},{"date":"2026-09-30","steps":13,"level":3},{"date":"2026-10-01","steps":4,"level":1},{"date":"2026-10-02","steps":18,"level":4},{"date":"2026-10-03","steps":9,"level":2},{"date":"2026-10-04","steps":0,"level":0}],[{"date":"2026-10-05","steps":14,"level":3},{"date":"2026-10-06","steps":5,"level":1},{"date":"2026-10-07","steps":19,"level":4},{"date":"2026-10-08","steps":10,"level":2},{"date":"2026-10-09","steps":1,"level":1},{"date":"2026-10-10","steps":15,"level":3},{"date":"2026-10-11","steps":6,"level":2}],[{"date":"2026-10-12","steps":20,"level":4},{"date":"2026-10-13","steps":11,"level":2},{"date":"2026-10-14","steps":2,"level":1},{"date":"2026-10-15","steps":16,"level":3},{"date":"2026-10-16","steps":7,"level":2},{"date":"2026-10-17","steps":21,"level":4},{"date":"2026-10-18","steps":12,"level":3}],[{"date":"2026-10-19","steps":3,"level":1},{"date":"2026-10-20","steps":17,"level":4},{"date":"2026-10-21","steps":8,"level":2},{"date":"2026-10-22","steps":22,"level":4},{"date":"2026-10-23","steps":13,"level":3},{"date":"2026-10-24","steps":4,"level":1},{"date":"2026-10-25","steps":18,"level":4}],[{"date":"2026-10-26","steps":9,"level":2},{"date":"2026-10-27","steps":0,"level":0},{"date":"2026-10-28","steps":0,"level":-1},{"date":"2026-10-29","steps":0,"level":-1},{"date":"2026-10-30","steps":0,"level":-1},{"date":"2026-10-31","steps":0,"level":-1},{"date":"2026-11-01","steps":0,"level":-1}]],"months":[{"week":0,"label":"Jan","span":5},{"week":5,"label":"Feb","span":4},{"week":9,"label":"Mar","span":4},{"week":13,"label":"Apr","span":5},{"week":18,"label":"May","span":4},{"week":22,"label":"Jun","span":4},{"week":26,"label":"Jul","span":5},{"week":31,"label":"Aug","span":4},{"week":35,"label":"Sep","span":4},{"week":39,"label":"Oct","span":5}],"clipped":false}}, +{"tz":"Etc/GMT-9","offset":32400,"input":{"name":"a past year, narrow","activity":[{"date":"2025-03-01","steps":0},{"date":"2025-03-02","steps":3},{"date":"2025-03-03","steps":6},{"date":"2025-03-04","steps":9},{"date":"2025-03-05","steps":12},{"date":"2025-03-06","steps":0},{"date":"2025-03-07","steps":3},{"date":"2025-03-08","steps":6},{"date":"2025-03-09","steps":9},{"date":"2025-03-10","steps":12},{"date":"2025-03-11","steps":0},{"date":"2025-03-12","steps":3},{"date":"2025-03-13","steps":6},{"date":"2025-03-14","steps":9},{"date":"2025-03-15","steps":12},{"date":"2025-03-16","steps":0},{"date":"2025-03-17","steps":3},{"date":"2025-03-18","steps":6},{"date":"2025-03-19","steps":9},{"date":"2025-03-20","steps":12},{"date":"2025-03-21","steps":0},{"date":"2025-03-22","steps":3},{"date":"2025-03-23","steps":6},{"date":"2025-03-24","steps":9},{"date":"2025-03-25","steps":12},{"date":"2025-03-26","steps":0},{"date":"2025-03-27","steps":3},{"date":"2025-03-28","steps":6},{"date":"2025-03-29","steps":9},{"date":"2025-03-30","steps":12},{"date":"2025-03-31","steps":0},{"date":"2025-04-01","steps":3},{"date":"2025-04-02","steps":6},{"date":"2025-04-03","steps":9},{"date":"2025-04-04","steps":12},{"date":"2025-04-05","steps":0},{"date":"2025-04-06","steps":3},{"date":"2025-04-07","steps":6},{"date":"2025-04-08","steps":9},{"date":"2025-04-09","steps":12}],"from":1735657200000,"to":1767193200000,"maxWeeks":16.7},"output":{"weeks":[[{"date":"2025-09-15","steps":0,"level":0},{"date":"2025-09-16","steps":0,"level":0},{"date":"2025-09-17","steps":0,"level":0},{"date":"2025-09-18","steps":0,"level":0},{"date":"2025-09-19","steps":0,"level":0},{"date":"2025-09-20","steps":0,"level":0},{"date":"2025-09-21","steps":0,"level":0}],[{"date":"2025-09-22","steps":0,"level":0},{"date":"2025-09-23","steps":0,"level":0},{"date":"2025-09-24","steps":0,"level":0},{"date":"2025-09-25","steps":0,"level":0},{"date":"2025-09-26","steps":0,"level":0},{"date":"2025-09-27","steps":0,"level":0},{"date":"2025-09-28","steps":0,"level":0}],[{"date":"2025-09-29","steps":0,"level":0},{"date":"2025-09-30","steps":0,"level":0},{"date":"2025-10-01","steps":0,"level":0},{"date":"2025-10-02","steps":0,"level":0},{"date":"2025-10-03","steps":0,"level":0},{"date":"2025-10-04","steps":0,"level":0},{"date":"2025-10-05","steps":0,"level":0}],[{"date":"2025-10-06","steps":0,"level":0},{"date":"2025-10-07","steps":0,"level":0},{"date":"2025-10-08","steps":0,"level":0},{"date":"2025-10-09","steps":0,"level":0},{"date":"2025-10-10","steps":0,"level":0},{"date":"2025-10-11","steps":0,"level":0},{"date":"2025-10-12","steps":0,"level":0}],[{"date":"2025-10-13","steps":0,"level":0},{"date":"2025-10-14","steps":0,"level":0},{"date":"2025-10-15","steps":0,"level":0},{"date":"2025-10-16","steps":0,"level":0},{"date":"2025-10-17","steps":0,"level":0},{"date":"2025-10-18","steps":0,"level":0},{"date":"2025-10-19","steps":0,"level":0}],[{"date":"2025-10-20","steps":0,"level":0},{"date":"2025-10-21","steps":0,"level":0},{"date":"2025-10-22","steps":0,"level":0},{"date":"2025-10-23","steps":0,"level":0},{"date":"2025-10-24","steps":0,"level":0},{"date":"2025-10-25","steps":0,"level":0},{"date":"2025-10-26","steps":0,"level":0}],[{"date":"2025-10-27","steps":0,"level":0},{"date":"2025-10-28","steps":0,"level":0},{"date":"2025-10-29","steps":0,"level":0},{"date":"2025-10-30","steps":0,"level":0},{"date":"2025-10-31","steps":0,"level":0},{"date":"2025-11-01","steps":0,"level":0},{"date":"2025-11-02","steps":0,"level":0}],[{"date":"2025-11-03","steps":0,"level":0},{"date":"2025-11-04","steps":0,"level":0},{"date":"2025-11-05","steps":0,"level":0},{"date":"2025-11-06","steps":0,"level":0},{"date":"2025-11-07","steps":0,"level":0},{"date":"2025-11-08","steps":0,"level":0},{"date":"2025-11-09","steps":0,"level":0}],[{"date":"2025-11-10","steps":0,"level":0},{"date":"2025-11-11","steps":0,"level":0},{"date":"2025-11-12","steps":0,"level":0},{"date":"2025-11-13","steps":0,"level":0},{"date":"2025-11-14","steps":0,"level":0},{"date":"2025-11-15","steps":0,"level":0},{"date":"2025-11-16","steps":0,"level":0}],[{"date":"2025-11-17","steps":0,"level":0},{"date":"2025-11-18","steps":0,"level":0},{"date":"2025-11-19","steps":0,"level":0},{"date":"2025-11-20","steps":0,"level":0},{"date":"2025-11-21","steps":0,"level":0},{"date":"2025-11-22","steps":0,"level":0},{"date":"2025-11-23","steps":0,"level":0}],[{"date":"2025-11-24","steps":0,"level":0},{"date":"2025-11-25","steps":0,"level":0},{"date":"2025-11-26","steps":0,"level":0},{"date":"2025-11-27","steps":0,"level":0},{"date":"2025-11-28","steps":0,"level":0},{"date":"2025-11-29","steps":0,"level":0},{"date":"2025-11-30","steps":0,"level":0}],[{"date":"2025-12-01","steps":0,"level":0},{"date":"2025-12-02","steps":0,"level":0},{"date":"2025-12-03","steps":0,"level":0},{"date":"2025-12-04","steps":0,"level":0},{"date":"2025-12-05","steps":0,"level":0},{"date":"2025-12-06","steps":0,"level":0},{"date":"2025-12-07","steps":0,"level":0}],[{"date":"2025-12-08","steps":0,"level":0},{"date":"2025-12-09","steps":0,"level":0},{"date":"2025-12-10","steps":0,"level":0},{"date":"2025-12-11","steps":0,"level":0},{"date":"2025-12-12","steps":0,"level":0},{"date":"2025-12-13","steps":0,"level":0},{"date":"2025-12-14","steps":0,"level":0}],[{"date":"2025-12-15","steps":0,"level":0},{"date":"2025-12-16","steps":0,"level":0},{"date":"2025-12-17","steps":0,"level":0},{"date":"2025-12-18","steps":0,"level":0},{"date":"2025-12-19","steps":0,"level":0},{"date":"2025-12-20","steps":0,"level":0},{"date":"2025-12-21","steps":0,"level":0}],[{"date":"2025-12-22","steps":0,"level":0},{"date":"2025-12-23","steps":0,"level":0},{"date":"2025-12-24","steps":0,"level":0},{"date":"2025-12-25","steps":0,"level":0},{"date":"2025-12-26","steps":0,"level":0},{"date":"2025-12-27","steps":0,"level":0},{"date":"2025-12-28","steps":0,"level":0}],[{"date":"2025-12-29","steps":0,"level":0},{"date":"2025-12-30","steps":0,"level":0},{"date":"2025-12-31","steps":0,"level":0},{"date":"2026-01-01","steps":0,"level":-1},{"date":"2026-01-02","steps":0,"level":-1},{"date":"2026-01-03","steps":0,"level":-1},{"date":"2026-01-04","steps":0,"level":-1}]],"months":[{"week":0,"label":"Sep","span":2},{"week":2,"label":"Oct","span":5},{"week":7,"label":"Nov","span":4},{"week":11,"label":"Dec","span":5}],"clipped":true}}, +{"tz":"Etc/GMT-9","offset":32400,"input":{"name":"negative width","activity":[{"date":"2026-01-01","steps":1},{"date":"2026-01-02","steps":50}],"from":1767193200000,"to":1768834800000,"maxWeeks":-3},"output":{"weeks":[[{"date":"2026-01-19","steps":0,"level":0},{"date":"2026-01-20","steps":0,"level":-1},{"date":"2026-01-21","steps":0,"level":-1},{"date":"2026-01-22","steps":0,"level":-1},{"date":"2026-01-23","steps":0,"level":-1},{"date":"2026-01-24","steps":0,"level":-1},{"date":"2026-01-25","steps":0,"level":-1}]],"months":[{"week":0,"label":"Jan","span":1}],"clipped":true}}, +{"tz":"Etc/GMT-9","offset":32400,"input":{"name":"duplicate dates and outside activity","activity":[{"date":"2026-01-03","steps":4},{"date":"2026-01-03","steps":9},{"date":"2025-06-01","steps":100},{"date":"2026-01-04","steps":0}],"from":1767193200000,"to":1767798000000,"maxWeeks":53},"output":{"weeks":[[{"date":"2025-12-29","steps":0,"level":-1},{"date":"2025-12-30","steps":0,"level":-1},{"date":"2025-12-31","steps":0,"level":-1},{"date":"2026-01-01","steps":0,"level":0},{"date":"2026-01-02","steps":0,"level":0},{"date":"2026-01-03","steps":9,"level":2},{"date":"2026-01-04","steps":0,"level":0}],[{"date":"2026-01-05","steps":0,"level":0},{"date":"2026-01-06","steps":0,"level":0},{"date":"2026-01-07","steps":0,"level":0},{"date":"2026-01-08","steps":0,"level":-1},{"date":"2026-01-09","steps":0,"level":-1},{"date":"2026-01-10","steps":0,"level":-1},{"date":"2026-01-11","steps":0,"level":-1}]],"months":[{"week":0,"label":"Jan","span":2}],"clipped":false}}, +{"tz":"Etc/GMT-9","offset":32400,"input":{"name":"UTC-midnight edges","activity":[{"date":"2026-01-01","steps":1},{"date":"2026-01-02","steps":50}],"from":1767225600000,"to":1769904000000,"maxWeeks":53},"output":{"weeks":[[{"date":"2025-12-29","steps":0,"level":-1},{"date":"2025-12-30","steps":0,"level":-1},{"date":"2025-12-31","steps":0,"level":-1},{"date":"2026-01-01","steps":1,"level":2},{"date":"2026-01-02","steps":50,"level":4},{"date":"2026-01-03","steps":0,"level":0},{"date":"2026-01-04","steps":0,"level":0}],[{"date":"2026-01-05","steps":0,"level":0},{"date":"2026-01-06","steps":0,"level":0},{"date":"2026-01-07","steps":0,"level":0},{"date":"2026-01-08","steps":0,"level":0},{"date":"2026-01-09","steps":0,"level":0},{"date":"2026-01-10","steps":0,"level":0},{"date":"2026-01-11","steps":0,"level":0}],[{"date":"2026-01-12","steps":0,"level":0},{"date":"2026-01-13","steps":0,"level":0},{"date":"2026-01-14","steps":0,"level":0},{"date":"2026-01-15","steps":0,"level":0},{"date":"2026-01-16","steps":0,"level":0},{"date":"2026-01-17","steps":0,"level":0},{"date":"2026-01-18","steps":0,"level":0}],[{"date":"2026-01-19","steps":0,"level":0},{"date":"2026-01-20","steps":0,"level":0},{"date":"2026-01-21","steps":0,"level":0},{"date":"2026-01-22","steps":0,"level":0},{"date":"2026-01-23","steps":0,"level":0},{"date":"2026-01-24","steps":0,"level":0},{"date":"2026-01-25","steps":0,"level":0}],[{"date":"2026-01-26","steps":0,"level":0},{"date":"2026-01-27","steps":0,"level":0},{"date":"2026-01-28","steps":0,"level":0},{"date":"2026-01-29","steps":0,"level":0},{"date":"2026-01-30","steps":0,"level":0},{"date":"2026-01-31","steps":0,"level":0},{"date":"2026-02-01","steps":0,"level":0}]],"months":[{"week":0,"label":"Jan","span":5}],"clipped":false}}, +{"tz":"Etc/GMT+5","offset":-18000,"input":{"name":"two weeks","activity":[{"date":"2026-01-01","steps":1},{"date":"2026-01-02","steps":50}],"from":1767243600000,"to":1767848400000,"maxWeeks":53},"output":{"weeks":[[{"date":"2025-12-29","steps":0,"level":-1},{"date":"2025-12-30","steps":0,"level":-1},{"date":"2025-12-31","steps":0,"level":-1},{"date":"2026-01-01","steps":1,"level":2},{"date":"2026-01-02","steps":50,"level":4},{"date":"2026-01-03","steps":0,"level":0},{"date":"2026-01-04","steps":0,"level":0}],[{"date":"2026-01-05","steps":0,"level":0},{"date":"2026-01-06","steps":0,"level":0},{"date":"2026-01-07","steps":0,"level":0},{"date":"2026-01-08","steps":0,"level":-1},{"date":"2026-01-09","steps":0,"level":-1},{"date":"2026-01-10","steps":0,"level":-1},{"date":"2026-01-11","steps":0,"level":-1}]],"months":[{"week":0,"label":"Jan","span":2}],"clipped":false}}, +{"tz":"Etc/GMT+5","offset":-18000,"input":{"name":"clipped to one week","activity":[],"from":1767243600000,"to":1767848400000,"maxWeeks":1},"output":{"weeks":[[{"date":"2026-01-05","steps":0,"level":0},{"date":"2026-01-06","steps":0,"level":0},{"date":"2026-01-07","steps":0,"level":0},{"date":"2026-01-08","steps":0,"level":-1},{"date":"2026-01-09","steps":0,"level":-1},{"date":"2026-01-10","steps":0,"level":-1},{"date":"2026-01-11","steps":0,"level":-1}]],"months":[{"week":0,"label":"Jan","span":1}],"clipped":true}}, +{"tz":"Etc/GMT+5","offset":-18000,"input":{"name":"capped at 53 weeks","activity":[{"date":"2026-01-01","steps":1},{"date":"2026-01-02","steps":50}],"from":1577854800000,"to":1767848400000,"maxWeeks":200},"output":{"weeks":[[{"date":"2025-01-06","steps":0,"level":0},{"date":"2025-01-07","steps":0,"level":0},{"date":"2025-01-08","steps":0,"level":0},{"date":"2025-01-09","steps":0,"level":0},{"date":"2025-01-10","steps":0,"level":0},{"date":"2025-01-11","steps":0,"level":0},{"date":"2025-01-12","steps":0,"level":0}],[{"date":"2025-01-13","steps":0,"level":0},{"date":"2025-01-14","steps":0,"level":0},{"date":"2025-01-15","steps":0,"level":0},{"date":"2025-01-16","steps":0,"level":0},{"date":"2025-01-17","steps":0,"level":0},{"date":"2025-01-18","steps":0,"level":0},{"date":"2025-01-19","steps":0,"level":0}],[{"date":"2025-01-20","steps":0,"level":0},{"date":"2025-01-21","steps":0,"level":0},{"date":"2025-01-22","steps":0,"level":0},{"date":"2025-01-23","steps":0,"level":0},{"date":"2025-01-24","steps":0,"level":0},{"date":"2025-01-25","steps":0,"level":0},{"date":"2025-01-26","steps":0,"level":0}],[{"date":"2025-01-27","steps":0,"level":0},{"date":"2025-01-28","steps":0,"level":0},{"date":"2025-01-29","steps":0,"level":0},{"date":"2025-01-30","steps":0,"level":0},{"date":"2025-01-31","steps":0,"level":0},{"date":"2025-02-01","steps":0,"level":0},{"date":"2025-02-02","steps":0,"level":0}],[{"date":"2025-02-03","steps":0,"level":0},{"date":"2025-02-04","steps":0,"level":0},{"date":"2025-02-05","steps":0,"level":0},{"date":"2025-02-06","steps":0,"level":0},{"date":"2025-02-07","steps":0,"level":0},{"date":"2025-02-08","steps":0,"level":0},{"date":"2025-02-09","steps":0,"level":0}],[{"date":"2025-02-10","steps":0,"level":0},{"date":"2025-02-11","steps":0,"level":0},{"date":"2025-02-12","steps":0,"level":0},{"date":"2025-02-13","steps":0,"level":0},{"date":"2025-02-14","steps":0,"level":0},{"date":"2025-02-15","steps":0,"level":0},{"date":"2025-02-16","steps":0,"level":0}],[{"date":"2025-02-17","steps":0,"level":0},{"date":"2025-02-18","steps":0,"level":0},{"date":"2025-02-19","steps":0,"level":0},{"date":"2025-02-20","steps":0,"level":0},{"date":"2025-02-21","steps":0,"level":0},{"date":"2025-02-22","steps":0,"level":0},{"date":"2025-02-23","steps":0,"level":0}],[{"date":"2025-02-24","steps":0,"level":0},{"date":"2025-02-25","steps":0,"level":0},{"date":"2025-02-26","steps":0,"level":0},{"date":"2025-02-27","steps":0,"level":0},{"date":"2025-02-28","steps":0,"level":0},{"date":"2025-03-01","steps":0,"level":0},{"date":"2025-03-02","steps":0,"level":0}],[{"date":"2025-03-03","steps":0,"level":0},{"date":"2025-03-04","steps":0,"level":0},{"date":"2025-03-05","steps":0,"level":0},{"date":"2025-03-06","steps":0,"level":0},{"date":"2025-03-07","steps":0,"level":0},{"date":"2025-03-08","steps":0,"level":0},{"date":"2025-03-09","steps":0,"level":0}],[{"date":"2025-03-10","steps":0,"level":0},{"date":"2025-03-11","steps":0,"level":0},{"date":"2025-03-12","steps":0,"level":0},{"date":"2025-03-13","steps":0,"level":0},{"date":"2025-03-14","steps":0,"level":0},{"date":"2025-03-15","steps":0,"level":0},{"date":"2025-03-16","steps":0,"level":0}],[{"date":"2025-03-17","steps":0,"level":0},{"date":"2025-03-18","steps":0,"level":0},{"date":"2025-03-19","steps":0,"level":0},{"date":"2025-03-20","steps":0,"level":0},{"date":"2025-03-21","steps":0,"level":0},{"date":"2025-03-22","steps":0,"level":0},{"date":"2025-03-23","steps":0,"level":0}],[{"date":"2025-03-24","steps":0,"level":0},{"date":"2025-03-25","steps":0,"level":0},{"date":"2025-03-26","steps":0,"level":0},{"date":"2025-03-27","steps":0,"level":0},{"date":"2025-03-28","steps":0,"level":0},{"date":"2025-03-29","steps":0,"level":0},{"date":"2025-03-30","steps":0,"level":0}],[{"date":"2025-03-31","steps":0,"level":0},{"date":"2025-04-01","steps":0,"level":0},{"date":"2025-04-02","steps":0,"level":0},{"date":"2025-04-03","steps":0,"level":0},{"date":"2025-04-04","steps":0,"level":0},{"date":"2025-04-05","steps":0,"level":0},{"date":"2025-04-06","steps":0,"level":0}],[{"date":"2025-04-07","steps":0,"level":0},{"date":"2025-04-08","steps":0,"level":0},{"date":"2025-04-09","steps":0,"level":0},{"date":"2025-04-10","steps":0,"level":0},{"date":"2025-04-11","steps":0,"level":0},{"date":"2025-04-12","steps":0,"level":0},{"date":"2025-04-13","steps":0,"level":0}],[{"date":"2025-04-14","steps":0,"level":0},{"date":"2025-04-15","steps":0,"level":0},{"date":"2025-04-16","steps":0,"level":0},{"date":"2025-04-17","steps":0,"level":0},{"date":"2025-04-18","steps":0,"level":0},{"date":"2025-04-19","steps":0,"level":0},{"date":"2025-04-20","steps":0,"level":0}],[{"date":"2025-04-21","steps":0,"level":0},{"date":"2025-04-22","steps":0,"level":0},{"date":"2025-04-23","steps":0,"level":0},{"date":"2025-04-24","steps":0,"level":0},{"date":"2025-04-25","steps":0,"level":0},{"date":"2025-04-26","steps":0,"level":0},{"date":"2025-04-27","steps":0,"level":0}],[{"date":"2025-04-28","steps":0,"level":0},{"date":"2025-04-29","steps":0,"level":0},{"date":"2025-04-30","steps":0,"level":0},{"date":"2025-05-01","steps":0,"level":0},{"date":"2025-05-02","steps":0,"level":0},{"date":"2025-05-03","steps":0,"level":0},{"date":"2025-05-04","steps":0,"level":0}],[{"date":"2025-05-05","steps":0,"level":0},{"date":"2025-05-06","steps":0,"level":0},{"date":"2025-05-07","steps":0,"level":0},{"date":"2025-05-08","steps":0,"level":0},{"date":"2025-05-09","steps":0,"level":0},{"date":"2025-05-10","steps":0,"level":0},{"date":"2025-05-11","steps":0,"level":0}],[{"date":"2025-05-12","steps":0,"level":0},{"date":"2025-05-13","steps":0,"level":0},{"date":"2025-05-14","steps":0,"level":0},{"date":"2025-05-15","steps":0,"level":0},{"date":"2025-05-16","steps":0,"level":0},{"date":"2025-05-17","steps":0,"level":0},{"date":"2025-05-18","steps":0,"level":0}],[{"date":"2025-05-19","steps":0,"level":0},{"date":"2025-05-20","steps":0,"level":0},{"date":"2025-05-21","steps":0,"level":0},{"date":"2025-05-22","steps":0,"level":0},{"date":"2025-05-23","steps":0,"level":0},{"date":"2025-05-24","steps":0,"level":0},{"date":"2025-05-25","steps":0,"level":0}],[{"date":"2025-05-26","steps":0,"level":0},{"date":"2025-05-27","steps":0,"level":0},{"date":"2025-05-28","steps":0,"level":0},{"date":"2025-05-29","steps":0,"level":0},{"date":"2025-05-30","steps":0,"level":0},{"date":"2025-05-31","steps":0,"level":0},{"date":"2025-06-01","steps":0,"level":0}],[{"date":"2025-06-02","steps":0,"level":0},{"date":"2025-06-03","steps":0,"level":0},{"date":"2025-06-04","steps":0,"level":0},{"date":"2025-06-05","steps":0,"level":0},{"date":"2025-06-06","steps":0,"level":0},{"date":"2025-06-07","steps":0,"level":0},{"date":"2025-06-08","steps":0,"level":0}],[{"date":"2025-06-09","steps":0,"level":0},{"date":"2025-06-10","steps":0,"level":0},{"date":"2025-06-11","steps":0,"level":0},{"date":"2025-06-12","steps":0,"level":0},{"date":"2025-06-13","steps":0,"level":0},{"date":"2025-06-14","steps":0,"level":0},{"date":"2025-06-15","steps":0,"level":0}],[{"date":"2025-06-16","steps":0,"level":0},{"date":"2025-06-17","steps":0,"level":0},{"date":"2025-06-18","steps":0,"level":0},{"date":"2025-06-19","steps":0,"level":0},{"date":"2025-06-20","steps":0,"level":0},{"date":"2025-06-21","steps":0,"level":0},{"date":"2025-06-22","steps":0,"level":0}],[{"date":"2025-06-23","steps":0,"level":0},{"date":"2025-06-24","steps":0,"level":0},{"date":"2025-06-25","steps":0,"level":0},{"date":"2025-06-26","steps":0,"level":0},{"date":"2025-06-27","steps":0,"level":0},{"date":"2025-06-28","steps":0,"level":0},{"date":"2025-06-29","steps":0,"level":0}],[{"date":"2025-06-30","steps":0,"level":0},{"date":"2025-07-01","steps":0,"level":0},{"date":"2025-07-02","steps":0,"level":0},{"date":"2025-07-03","steps":0,"level":0},{"date":"2025-07-04","steps":0,"level":0},{"date":"2025-07-05","steps":0,"level":0},{"date":"2025-07-06","steps":0,"level":0}],[{"date":"2025-07-07","steps":0,"level":0},{"date":"2025-07-08","steps":0,"level":0},{"date":"2025-07-09","steps":0,"level":0},{"date":"2025-07-10","steps":0,"level":0},{"date":"2025-07-11","steps":0,"level":0},{"date":"2025-07-12","steps":0,"level":0},{"date":"2025-07-13","steps":0,"level":0}],[{"date":"2025-07-14","steps":0,"level":0},{"date":"2025-07-15","steps":0,"level":0},{"date":"2025-07-16","steps":0,"level":0},{"date":"2025-07-17","steps":0,"level":0},{"date":"2025-07-18","steps":0,"level":0},{"date":"2025-07-19","steps":0,"level":0},{"date":"2025-07-20","steps":0,"level":0}],[{"date":"2025-07-21","steps":0,"level":0},{"date":"2025-07-22","steps":0,"level":0},{"date":"2025-07-23","steps":0,"level":0},{"date":"2025-07-24","steps":0,"level":0},{"date":"2025-07-25","steps":0,"level":0},{"date":"2025-07-26","steps":0,"level":0},{"date":"2025-07-27","steps":0,"level":0}],[{"date":"2025-07-28","steps":0,"level":0},{"date":"2025-07-29","steps":0,"level":0},{"date":"2025-07-30","steps":0,"level":0},{"date":"2025-07-31","steps":0,"level":0},{"date":"2025-08-01","steps":0,"level":0},{"date":"2025-08-02","steps":0,"level":0},{"date":"2025-08-03","steps":0,"level":0}],[{"date":"2025-08-04","steps":0,"level":0},{"date":"2025-08-05","steps":0,"level":0},{"date":"2025-08-06","steps":0,"level":0},{"date":"2025-08-07","steps":0,"level":0},{"date":"2025-08-08","steps":0,"level":0},{"date":"2025-08-09","steps":0,"level":0},{"date":"2025-08-10","steps":0,"level":0}],[{"date":"2025-08-11","steps":0,"level":0},{"date":"2025-08-12","steps":0,"level":0},{"date":"2025-08-13","steps":0,"level":0},{"date":"2025-08-14","steps":0,"level":0},{"date":"2025-08-15","steps":0,"level":0},{"date":"2025-08-16","steps":0,"level":0},{"date":"2025-08-17","steps":0,"level":0}],[{"date":"2025-08-18","steps":0,"level":0},{"date":"2025-08-19","steps":0,"level":0},{"date":"2025-08-20","steps":0,"level":0},{"date":"2025-08-21","steps":0,"level":0},{"date":"2025-08-22","steps":0,"level":0},{"date":"2025-08-23","steps":0,"level":0},{"date":"2025-08-24","steps":0,"level":0}],[{"date":"2025-08-25","steps":0,"level":0},{"date":"2025-08-26","steps":0,"level":0},{"date":"2025-08-27","steps":0,"level":0},{"date":"2025-08-28","steps":0,"level":0},{"date":"2025-08-29","steps":0,"level":0},{"date":"2025-08-30","steps":0,"level":0},{"date":"2025-08-31","steps":0,"level":0}],[{"date":"2025-09-01","steps":0,"level":0},{"date":"2025-09-02","steps":0,"level":0},{"date":"2025-09-03","steps":0,"level":0},{"date":"2025-09-04","steps":0,"level":0},{"date":"2025-09-05","steps":0,"level":0},{"date":"2025-09-06","steps":0,"level":0},{"date":"2025-09-07","steps":0,"level":0}],[{"date":"2025-09-08","steps":0,"level":0},{"date":"2025-09-09","steps":0,"level":0},{"date":"2025-09-10","steps":0,"level":0},{"date":"2025-09-11","steps":0,"level":0},{"date":"2025-09-12","steps":0,"level":0},{"date":"2025-09-13","steps":0,"level":0},{"date":"2025-09-14","steps":0,"level":0}],[{"date":"2025-09-15","steps":0,"level":0},{"date":"2025-09-16","steps":0,"level":0},{"date":"2025-09-17","steps":0,"level":0},{"date":"2025-09-18","steps":0,"level":0},{"date":"2025-09-19","steps":0,"level":0},{"date":"2025-09-20","steps":0,"level":0},{"date":"2025-09-21","steps":0,"level":0}],[{"date":"2025-09-22","steps":0,"level":0},{"date":"2025-09-23","steps":0,"level":0},{"date":"2025-09-24","steps":0,"level":0},{"date":"2025-09-25","steps":0,"level":0},{"date":"2025-09-26","steps":0,"level":0},{"date":"2025-09-27","steps":0,"level":0},{"date":"2025-09-28","steps":0,"level":0}],[{"date":"2025-09-29","steps":0,"level":0},{"date":"2025-09-30","steps":0,"level":0},{"date":"2025-10-01","steps":0,"level":0},{"date":"2025-10-02","steps":0,"level":0},{"date":"2025-10-03","steps":0,"level":0},{"date":"2025-10-04","steps":0,"level":0},{"date":"2025-10-05","steps":0,"level":0}],[{"date":"2025-10-06","steps":0,"level":0},{"date":"2025-10-07","steps":0,"level":0},{"date":"2025-10-08","steps":0,"level":0},{"date":"2025-10-09","steps":0,"level":0},{"date":"2025-10-10","steps":0,"level":0},{"date":"2025-10-11","steps":0,"level":0},{"date":"2025-10-12","steps":0,"level":0}],[{"date":"2025-10-13","steps":0,"level":0},{"date":"2025-10-14","steps":0,"level":0},{"date":"2025-10-15","steps":0,"level":0},{"date":"2025-10-16","steps":0,"level":0},{"date":"2025-10-17","steps":0,"level":0},{"date":"2025-10-18","steps":0,"level":0},{"date":"2025-10-19","steps":0,"level":0}],[{"date":"2025-10-20","steps":0,"level":0},{"date":"2025-10-21","steps":0,"level":0},{"date":"2025-10-22","steps":0,"level":0},{"date":"2025-10-23","steps":0,"level":0},{"date":"2025-10-24","steps":0,"level":0},{"date":"2025-10-25","steps":0,"level":0},{"date":"2025-10-26","steps":0,"level":0}],[{"date":"2025-10-27","steps":0,"level":0},{"date":"2025-10-28","steps":0,"level":0},{"date":"2025-10-29","steps":0,"level":0},{"date":"2025-10-30","steps":0,"level":0},{"date":"2025-10-31","steps":0,"level":0},{"date":"2025-11-01","steps":0,"level":0},{"date":"2025-11-02","steps":0,"level":0}],[{"date":"2025-11-03","steps":0,"level":0},{"date":"2025-11-04","steps":0,"level":0},{"date":"2025-11-05","steps":0,"level":0},{"date":"2025-11-06","steps":0,"level":0},{"date":"2025-11-07","steps":0,"level":0},{"date":"2025-11-08","steps":0,"level":0},{"date":"2025-11-09","steps":0,"level":0}],[{"date":"2025-11-10","steps":0,"level":0},{"date":"2025-11-11","steps":0,"level":0},{"date":"2025-11-12","steps":0,"level":0},{"date":"2025-11-13","steps":0,"level":0},{"date":"2025-11-14","steps":0,"level":0},{"date":"2025-11-15","steps":0,"level":0},{"date":"2025-11-16","steps":0,"level":0}],[{"date":"2025-11-17","steps":0,"level":0},{"date":"2025-11-18","steps":0,"level":0},{"date":"2025-11-19","steps":0,"level":0},{"date":"2025-11-20","steps":0,"level":0},{"date":"2025-11-21","steps":0,"level":0},{"date":"2025-11-22","steps":0,"level":0},{"date":"2025-11-23","steps":0,"level":0}],[{"date":"2025-11-24","steps":0,"level":0},{"date":"2025-11-25","steps":0,"level":0},{"date":"2025-11-26","steps":0,"level":0},{"date":"2025-11-27","steps":0,"level":0},{"date":"2025-11-28","steps":0,"level":0},{"date":"2025-11-29","steps":0,"level":0},{"date":"2025-11-30","steps":0,"level":0}],[{"date":"2025-12-01","steps":0,"level":0},{"date":"2025-12-02","steps":0,"level":0},{"date":"2025-12-03","steps":0,"level":0},{"date":"2025-12-04","steps":0,"level":0},{"date":"2025-12-05","steps":0,"level":0},{"date":"2025-12-06","steps":0,"level":0},{"date":"2025-12-07","steps":0,"level":0}],[{"date":"2025-12-08","steps":0,"level":0},{"date":"2025-12-09","steps":0,"level":0},{"date":"2025-12-10","steps":0,"level":0},{"date":"2025-12-11","steps":0,"level":0},{"date":"2025-12-12","steps":0,"level":0},{"date":"2025-12-13","steps":0,"level":0},{"date":"2025-12-14","steps":0,"level":0}],[{"date":"2025-12-15","steps":0,"level":0},{"date":"2025-12-16","steps":0,"level":0},{"date":"2025-12-17","steps":0,"level":0},{"date":"2025-12-18","steps":0,"level":0},{"date":"2025-12-19","steps":0,"level":0},{"date":"2025-12-20","steps":0,"level":0},{"date":"2025-12-21","steps":0,"level":0}],[{"date":"2025-12-22","steps":0,"level":0},{"date":"2025-12-23","steps":0,"level":0},{"date":"2025-12-24","steps":0,"level":0},{"date":"2025-12-25","steps":0,"level":0},{"date":"2025-12-26","steps":0,"level":0},{"date":"2025-12-27","steps":0,"level":0},{"date":"2025-12-28","steps":0,"level":0}],[{"date":"2025-12-29","steps":0,"level":0},{"date":"2025-12-30","steps":0,"level":0},{"date":"2025-12-31","steps":0,"level":0},{"date":"2026-01-01","steps":1,"level":2},{"date":"2026-01-02","steps":50,"level":4},{"date":"2026-01-03","steps":0,"level":0},{"date":"2026-01-04","steps":0,"level":0}],[{"date":"2026-01-05","steps":0,"level":0},{"date":"2026-01-06","steps":0,"level":0},{"date":"2026-01-07","steps":0,"level":0},{"date":"2026-01-08","steps":0,"level":-1},{"date":"2026-01-09","steps":0,"level":-1},{"date":"2026-01-10","steps":0,"level":-1},{"date":"2026-01-11","steps":0,"level":-1}]],"months":[{"week":0,"label":"Jan","span":4},{"week":4,"label":"Feb","span":4},{"week":8,"label":"Mar","span":4},{"week":12,"label":"Apr","span":4},{"week":16,"label":"May","span":5},{"week":21,"label":"Jun","span":4},{"week":25,"label":"Jul","span":5},{"week":30,"label":"Aug","span":4},{"week":34,"label":"Sep","span":4},{"week":38,"label":"Oct","span":5},{"week":43,"label":"Nov","span":4},{"week":47,"label":"Dec","span":4},{"week":51,"label":"Jan","span":2}],"clipped":true}}, +{"tz":"Etc/GMT+5","offset":-18000,"input":{"name":"partial months","activity":[{"date":"2026-01-01","steps":1},{"date":"2026-01-02","steps":50}],"from":1777438800000,"to":1779253200000,"maxWeeks":53},"output":{"weeks":[[{"date":"2026-04-27","steps":0,"level":-1},{"date":"2026-04-28","steps":0,"level":-1},{"date":"2026-04-29","steps":0,"level":0},{"date":"2026-04-30","steps":0,"level":0},{"date":"2026-05-01","steps":0,"level":0},{"date":"2026-05-02","steps":0,"level":0},{"date":"2026-05-03","steps":0,"level":0}],[{"date":"2026-05-04","steps":0,"level":0},{"date":"2026-05-05","steps":0,"level":0},{"date":"2026-05-06","steps":0,"level":0},{"date":"2026-05-07","steps":0,"level":0},{"date":"2026-05-08","steps":0,"level":0},{"date":"2026-05-09","steps":0,"level":0},{"date":"2026-05-10","steps":0,"level":0}],[{"date":"2026-05-11","steps":0,"level":0},{"date":"2026-05-12","steps":0,"level":0},{"date":"2026-05-13","steps":0,"level":0},{"date":"2026-05-14","steps":0,"level":0},{"date":"2026-05-15","steps":0,"level":0},{"date":"2026-05-16","steps":0,"level":0},{"date":"2026-05-17","steps":0,"level":0}],[{"date":"2026-05-18","steps":0,"level":0},{"date":"2026-05-19","steps":0,"level":0},{"date":"2026-05-20","steps":0,"level":-1},{"date":"2026-05-21","steps":0,"level":-1},{"date":"2026-05-22","steps":0,"level":-1},{"date":"2026-05-23","steps":0,"level":-1},{"date":"2026-05-24","steps":0,"level":-1}]],"months":[{"week":0,"label":"Apr","span":1},{"week":1,"label":"May","span":3}],"clipped":false}}, +{"tz":"Etc/GMT+5","offset":-18000,"input":{"name":"one day","activity":[{"date":"2026-01-01","steps":1},{"date":"2026-01-02","steps":50}],"from":1775019600000,"to":1775106000000,"maxWeeks":53},"output":{"weeks":[[{"date":"2026-03-30","steps":0,"level":-1},{"date":"2026-03-31","steps":0,"level":-1},{"date":"2026-04-01","steps":0,"level":0},{"date":"2026-04-02","steps":0,"level":-1},{"date":"2026-04-03","steps":0,"level":-1},{"date":"2026-04-04","steps":0,"level":-1},{"date":"2026-04-05","steps":0,"level":-1}]],"months":[{"week":0,"label":"Apr","span":1}],"clipped":false}}, +{"tz":"Etc/GMT+5","offset":-18000,"input":{"name":"year boundary","activity":[{"date":"2026-01-01","steps":1},{"date":"2026-01-02","steps":50}],"from":1766379600000,"to":1768194000000,"maxWeeks":53},"output":{"weeks":[[{"date":"2025-12-22","steps":0,"level":0},{"date":"2025-12-23","steps":0,"level":0},{"date":"2025-12-24","steps":0,"level":0},{"date":"2025-12-25","steps":0,"level":0},{"date":"2025-12-26","steps":0,"level":0},{"date":"2025-12-27","steps":0,"level":0},{"date":"2025-12-28","steps":0,"level":0}],[{"date":"2025-12-29","steps":0,"level":0},{"date":"2025-12-30","steps":0,"level":0},{"date":"2025-12-31","steps":0,"level":0},{"date":"2026-01-01","steps":1,"level":2},{"date":"2026-01-02","steps":50,"level":4},{"date":"2026-01-03","steps":0,"level":0},{"date":"2026-01-04","steps":0,"level":0}],[{"date":"2026-01-05","steps":0,"level":0},{"date":"2026-01-06","steps":0,"level":0},{"date":"2026-01-07","steps":0,"level":0},{"date":"2026-01-08","steps":0,"level":0},{"date":"2026-01-09","steps":0,"level":0},{"date":"2026-01-10","steps":0,"level":0},{"date":"2026-01-11","steps":0,"level":0}]],"months":[{"week":0,"label":"Dec","span":1},{"week":1,"label":"Jan","span":2}],"clipped":false}}, +{"tz":"Etc/GMT+5","offset":-18000,"input":{"name":"leap day","activity":[{"date":"2024-02-29","steps":1},{"date":"2024-03-10","steps":1}],"from":1708923600000,"to":1710219600000,"maxWeeks":53},"output":{"weeks":[[{"date":"2024-02-26","steps":0,"level":0},{"date":"2024-02-27","steps":0,"level":0},{"date":"2024-02-28","steps":0,"level":0},{"date":"2024-02-29","steps":1,"level":4},{"date":"2024-03-01","steps":0,"level":0},{"date":"2024-03-02","steps":0,"level":0},{"date":"2024-03-03","steps":0,"level":0}],[{"date":"2024-03-04","steps":0,"level":0},{"date":"2024-03-05","steps":0,"level":0},{"date":"2024-03-06","steps":0,"level":0},{"date":"2024-03-07","steps":0,"level":0},{"date":"2024-03-08","steps":0,"level":0},{"date":"2024-03-09","steps":0,"level":0},{"date":"2024-03-10","steps":1,"level":4}],[{"date":"2024-03-11","steps":0,"level":0},{"date":"2024-03-12","steps":0,"level":-1},{"date":"2024-03-13","steps":0,"level":-1},{"date":"2024-03-14","steps":0,"level":-1},{"date":"2024-03-15","steps":0,"level":-1},{"date":"2024-03-16","steps":0,"level":-1},{"date":"2024-03-17","steps":0,"level":-1}]],"months":[{"week":0,"label":"Feb","span":1},{"week":1,"label":"Mar","span":2}],"clipped":false}}, +{"tz":"Etc/GMT+5","offset":-18000,"input":{"name":"one distinct count","activity":[{"date":"2026-01-01","steps":10},{"date":"2026-01-02","steps":10}],"from":1767243600000,"to":1767848400000,"maxWeeks":53},"output":{"weeks":[[{"date":"2025-12-29","steps":0,"level":-1},{"date":"2025-12-30","steps":0,"level":-1},{"date":"2025-12-31","steps":0,"level":-1},{"date":"2026-01-01","steps":10,"level":4},{"date":"2026-01-02","steps":10,"level":4},{"date":"2026-01-03","steps":0,"level":0},{"date":"2026-01-04","steps":0,"level":0}],[{"date":"2026-01-05","steps":0,"level":0},{"date":"2026-01-06","steps":0,"level":0},{"date":"2026-01-07","steps":0,"level":0},{"date":"2026-01-08","steps":0,"level":-1},{"date":"2026-01-09","steps":0,"level":-1},{"date":"2026-01-10","steps":0,"level":-1},{"date":"2026-01-11","steps":0,"level":-1}]],"months":[{"week":0,"label":"Jan","span":2}],"clipped":false}}, +{"tz":"Etc/GMT+5","offset":-18000,"input":{"name":"eight levels","activity":[{"date":"2026-01-01","steps":1},{"date":"2026-01-02","steps":2},{"date":"2026-01-03","steps":3},{"date":"2026-01-04","steps":4},{"date":"2026-01-05","steps":5},{"date":"2026-01-06","steps":6},{"date":"2026-01-07","steps":7},{"date":"2026-01-08","steps":8}],"from":1767243600000,"to":1768021200000,"maxWeeks":53},"output":{"weeks":[[{"date":"2025-12-29","steps":0,"level":-1},{"date":"2025-12-30","steps":0,"level":-1},{"date":"2025-12-31","steps":0,"level":-1},{"date":"2026-01-01","steps":1,"level":1},{"date":"2026-01-02","steps":2,"level":1},{"date":"2026-01-03","steps":3,"level":2},{"date":"2026-01-04","steps":4,"level":2}],[{"date":"2026-01-05","steps":5,"level":3},{"date":"2026-01-06","steps":6,"level":3},{"date":"2026-01-07","steps":7,"level":4},{"date":"2026-01-08","steps":8,"level":4},{"date":"2026-01-09","steps":0,"level":0},{"date":"2026-01-10","steps":0,"level":-1},{"date":"2026-01-11","steps":0,"level":-1}]],"months":[{"week":0,"label":"Jan","span":2}],"clipped":false}}, +{"tz":"Etc/GMT+5","offset":-18000,"input":{"name":"clipped keeps range levels","activity":[{"date":"2026-01-01","steps":50},{"date":"2026-01-05","steps":1}],"from":1767243600000,"to":1767848400000,"maxWeeks":1},"output":{"weeks":[[{"date":"2026-01-05","steps":1,"level":2},{"date":"2026-01-06","steps":0,"level":0},{"date":"2026-01-07","steps":0,"level":0},{"date":"2026-01-08","steps":0,"level":-1},{"date":"2026-01-09","steps":0,"level":-1},{"date":"2026-01-10","steps":0,"level":-1},{"date":"2026-01-11","steps":0,"level":-1}]],"months":[{"week":0,"label":"Jan","span":1}],"clipped":true}}, +{"tz":"Etc/GMT+5","offset":-18000,"input":{"name":"empty range","activity":[],"from":1767243600000,"to":1767243600000,"maxWeeks":53},"output":{"weeks":[],"months":[],"clipped":false}}, +{"tz":"Etc/GMT+5","offset":-18000,"input":{"name":"reversed range","activity":[],"from":1767848400000,"to":1767243600000,"maxWeeks":53},"output":{"weeks":[],"months":[],"clipped":false}}, +{"tz":"Etc/GMT+5","offset":-18000,"input":{"name":"a year so far, mid-day end","activity":[{"date":"2026-01-01","steps":0},{"date":"2026-01-02","steps":14},{"date":"2026-01-03","steps":5},{"date":"2026-01-04","steps":19},{"date":"2026-01-05","steps":10},{"date":"2026-01-06","steps":1},{"date":"2026-01-07","steps":15},{"date":"2026-01-08","steps":6},{"date":"2026-01-09","steps":20},{"date":"2026-01-10","steps":11},{"date":"2026-01-11","steps":2},{"date":"2026-01-12","steps":16},{"date":"2026-01-13","steps":7},{"date":"2026-01-14","steps":21},{"date":"2026-01-15","steps":12},{"date":"2026-01-16","steps":3},{"date":"2026-01-17","steps":17},{"date":"2026-01-18","steps":8},{"date":"2026-01-19","steps":22},{"date":"2026-01-20","steps":13},{"date":"2026-01-21","steps":4},{"date":"2026-01-22","steps":18},{"date":"2026-01-23","steps":9},{"date":"2026-01-24","steps":0},{"date":"2026-01-25","steps":14},{"date":"2026-01-26","steps":5},{"date":"2026-01-27","steps":19},{"date":"2026-01-28","steps":10},{"date":"2026-01-29","steps":1},{"date":"2026-01-30","steps":15},{"date":"2026-01-31","steps":6},{"date":"2026-02-01","steps":20},{"date":"2026-02-02","steps":11},{"date":"2026-02-03","steps":2},{"date":"2026-02-04","steps":16},{"date":"2026-02-05","steps":7},{"date":"2026-02-06","steps":21},{"date":"2026-02-07","steps":12},{"date":"2026-02-08","steps":3},{"date":"2026-02-09","steps":17},{"date":"2026-02-10","steps":8},{"date":"2026-02-11","steps":22},{"date":"2026-02-12","steps":13},{"date":"2026-02-13","steps":4},{"date":"2026-02-14","steps":18},{"date":"2026-02-15","steps":9},{"date":"2026-02-16","steps":0},{"date":"2026-02-17","steps":14},{"date":"2026-02-18","steps":5},{"date":"2026-02-19","steps":19},{"date":"2026-02-20","steps":10},{"date":"2026-02-21","steps":1},{"date":"2026-02-22","steps":15},{"date":"2026-02-23","steps":6},{"date":"2026-02-24","steps":20},{"date":"2026-02-25","steps":11},{"date":"2026-02-26","steps":2},{"date":"2026-02-27","steps":16},{"date":"2026-02-28","steps":7},{"date":"2026-03-01","steps":21},{"date":"2026-03-02","steps":12},{"date":"2026-03-03","steps":3},{"date":"2026-03-04","steps":17},{"date":"2026-03-05","steps":8},{"date":"2026-03-06","steps":22},{"date":"2026-03-07","steps":13},{"date":"2026-03-08","steps":4},{"date":"2026-03-09","steps":18},{"date":"2026-03-10","steps":9},{"date":"2026-03-11","steps":0},{"date":"2026-03-12","steps":14},{"date":"2026-03-13","steps":5},{"date":"2026-03-14","steps":19},{"date":"2026-03-15","steps":10},{"date":"2026-03-16","steps":1},{"date":"2026-03-17","steps":15},{"date":"2026-03-18","steps":6},{"date":"2026-03-19","steps":20},{"date":"2026-03-20","steps":11},{"date":"2026-03-21","steps":2},{"date":"2026-03-22","steps":16},{"date":"2026-03-23","steps":7},{"date":"2026-03-24","steps":21},{"date":"2026-03-25","steps":12},{"date":"2026-03-26","steps":3},{"date":"2026-03-27","steps":17},{"date":"2026-03-28","steps":8},{"date":"2026-03-29","steps":22},{"date":"2026-03-30","steps":13},{"date":"2026-03-31","steps":4},{"date":"2026-04-01","steps":18},{"date":"2026-04-02","steps":9},{"date":"2026-04-03","steps":0},{"date":"2026-04-04","steps":14},{"date":"2026-04-05","steps":5},{"date":"2026-04-06","steps":19},{"date":"2026-04-07","steps":10},{"date":"2026-04-08","steps":1},{"date":"2026-04-09","steps":15},{"date":"2026-04-10","steps":6},{"date":"2026-04-11","steps":20},{"date":"2026-04-12","steps":11},{"date":"2026-04-13","steps":2},{"date":"2026-04-14","steps":16},{"date":"2026-04-15","steps":7},{"date":"2026-04-16","steps":21},{"date":"2026-04-17","steps":12},{"date":"2026-04-18","steps":3},{"date":"2026-04-19","steps":17},{"date":"2026-04-20","steps":8},{"date":"2026-04-21","steps":22},{"date":"2026-04-22","steps":13},{"date":"2026-04-23","steps":4},{"date":"2026-04-24","steps":18},{"date":"2026-04-25","steps":9},{"date":"2026-04-26","steps":0},{"date":"2026-04-27","steps":14},{"date":"2026-04-28","steps":5},{"date":"2026-04-29","steps":19},{"date":"2026-04-30","steps":10},{"date":"2026-05-01","steps":1},{"date":"2026-05-02","steps":15},{"date":"2026-05-03","steps":6},{"date":"2026-05-04","steps":20},{"date":"2026-05-05","steps":11},{"date":"2026-05-06","steps":2},{"date":"2026-05-07","steps":16},{"date":"2026-05-08","steps":7},{"date":"2026-05-09","steps":21},{"date":"2026-05-10","steps":12},{"date":"2026-05-11","steps":3},{"date":"2026-05-12","steps":17},{"date":"2026-05-13","steps":8},{"date":"2026-05-14","steps":22},{"date":"2026-05-15","steps":13},{"date":"2026-05-16","steps":4},{"date":"2026-05-17","steps":18},{"date":"2026-05-18","steps":9},{"date":"2026-05-19","steps":0},{"date":"2026-05-20","steps":14},{"date":"2026-05-21","steps":5},{"date":"2026-05-22","steps":19},{"date":"2026-05-23","steps":10},{"date":"2026-05-24","steps":1},{"date":"2026-05-25","steps":15},{"date":"2026-05-26","steps":6},{"date":"2026-05-27","steps":20},{"date":"2026-05-28","steps":11},{"date":"2026-05-29","steps":2},{"date":"2026-05-30","steps":16},{"date":"2026-05-31","steps":7},{"date":"2026-06-01","steps":21},{"date":"2026-06-02","steps":12},{"date":"2026-06-03","steps":3},{"date":"2026-06-04","steps":17},{"date":"2026-06-05","steps":8},{"date":"2026-06-06","steps":22},{"date":"2026-06-07","steps":13},{"date":"2026-06-08","steps":4},{"date":"2026-06-09","steps":18},{"date":"2026-06-10","steps":9},{"date":"2026-06-11","steps":0},{"date":"2026-06-12","steps":14},{"date":"2026-06-13","steps":5},{"date":"2026-06-14","steps":19},{"date":"2026-06-15","steps":10},{"date":"2026-06-16","steps":1},{"date":"2026-06-17","steps":15},{"date":"2026-06-18","steps":6},{"date":"2026-06-19","steps":20},{"date":"2026-06-20","steps":11},{"date":"2026-06-21","steps":2},{"date":"2026-06-22","steps":16},{"date":"2026-06-23","steps":7},{"date":"2026-06-24","steps":21},{"date":"2026-06-25","steps":12},{"date":"2026-06-26","steps":3},{"date":"2026-06-27","steps":17},{"date":"2026-06-28","steps":8},{"date":"2026-06-29","steps":22},{"date":"2026-06-30","steps":13},{"date":"2026-07-01","steps":4},{"date":"2026-07-02","steps":18},{"date":"2026-07-03","steps":9},{"date":"2026-07-04","steps":0},{"date":"2026-07-05","steps":14},{"date":"2026-07-06","steps":5},{"date":"2026-07-07","steps":19},{"date":"2026-07-08","steps":10},{"date":"2026-07-09","steps":1},{"date":"2026-07-10","steps":15},{"date":"2026-07-11","steps":6},{"date":"2026-07-12","steps":20},{"date":"2026-07-13","steps":11},{"date":"2026-07-14","steps":2},{"date":"2026-07-15","steps":16},{"date":"2026-07-16","steps":7},{"date":"2026-07-17","steps":21},{"date":"2026-07-18","steps":12},{"date":"2026-07-19","steps":3},{"date":"2026-07-20","steps":17},{"date":"2026-07-21","steps":8},{"date":"2026-07-22","steps":22},{"date":"2026-07-23","steps":13},{"date":"2026-07-24","steps":4},{"date":"2026-07-25","steps":18},{"date":"2026-07-26","steps":9},{"date":"2026-07-27","steps":0},{"date":"2026-07-28","steps":14},{"date":"2026-07-29","steps":5},{"date":"2026-07-30","steps":19},{"date":"2026-07-31","steps":10},{"date":"2026-08-01","steps":1},{"date":"2026-08-02","steps":15},{"date":"2026-08-03","steps":6},{"date":"2026-08-04","steps":20},{"date":"2026-08-05","steps":11},{"date":"2026-08-06","steps":2},{"date":"2026-08-07","steps":16},{"date":"2026-08-08","steps":7},{"date":"2026-08-09","steps":21},{"date":"2026-08-10","steps":12},{"date":"2026-08-11","steps":3},{"date":"2026-08-12","steps":17},{"date":"2026-08-13","steps":8},{"date":"2026-08-14","steps":22},{"date":"2026-08-15","steps":13},{"date":"2026-08-16","steps":4},{"date":"2026-08-17","steps":18},{"date":"2026-08-18","steps":9},{"date":"2026-08-19","steps":0},{"date":"2026-08-20","steps":14},{"date":"2026-08-21","steps":5},{"date":"2026-08-22","steps":19},{"date":"2026-08-23","steps":10},{"date":"2026-08-24","steps":1},{"date":"2026-08-25","steps":15},{"date":"2026-08-26","steps":6},{"date":"2026-08-27","steps":20},{"date":"2026-08-28","steps":11},{"date":"2026-08-29","steps":2},{"date":"2026-08-30","steps":16},{"date":"2026-08-31","steps":7},{"date":"2026-09-01","steps":21},{"date":"2026-09-02","steps":12},{"date":"2026-09-03","steps":3},{"date":"2026-09-04","steps":17},{"date":"2026-09-05","steps":8},{"date":"2026-09-06","steps":22},{"date":"2026-09-07","steps":13},{"date":"2026-09-08","steps":4},{"date":"2026-09-09","steps":18},{"date":"2026-09-10","steps":9},{"date":"2026-09-11","steps":0},{"date":"2026-09-12","steps":14},{"date":"2026-09-13","steps":5},{"date":"2026-09-14","steps":19},{"date":"2026-09-15","steps":10},{"date":"2026-09-16","steps":1},{"date":"2026-09-17","steps":15},{"date":"2026-09-18","steps":6},{"date":"2026-09-19","steps":20},{"date":"2026-09-20","steps":11},{"date":"2026-09-21","steps":2},{"date":"2026-09-22","steps":16},{"date":"2026-09-23","steps":7},{"date":"2026-09-24","steps":21},{"date":"2026-09-25","steps":12},{"date":"2026-09-26","steps":3},{"date":"2026-09-27","steps":17},{"date":"2026-09-28","steps":8},{"date":"2026-09-29","steps":22},{"date":"2026-09-30","steps":13},{"date":"2026-10-01","steps":4},{"date":"2026-10-02","steps":18},{"date":"2026-10-03","steps":9},{"date":"2026-10-04","steps":0},{"date":"2026-10-05","steps":14},{"date":"2026-10-06","steps":5},{"date":"2026-10-07","steps":19},{"date":"2026-10-08","steps":10},{"date":"2026-10-09","steps":1},{"date":"2026-10-10","steps":15},{"date":"2026-10-11","steps":6},{"date":"2026-10-12","steps":20},{"date":"2026-10-13","steps":11},{"date":"2026-10-14","steps":2},{"date":"2026-10-15","steps":16},{"date":"2026-10-16","steps":7},{"date":"2026-10-17","steps":21},{"date":"2026-10-18","steps":12},{"date":"2026-10-19","steps":3},{"date":"2026-10-20","steps":17},{"date":"2026-10-21","steps":8},{"date":"2026-10-22","steps":22},{"date":"2026-10-23","steps":13},{"date":"2026-10-24","steps":4},{"date":"2026-10-25","steps":18},{"date":"2026-10-26","steps":9},{"date":"2026-10-27","steps":0}],"from":1767243600000,"to":1793131200001,"maxWeeks":76},"output":{"weeks":[[{"date":"2025-12-29","steps":0,"level":-1},{"date":"2025-12-30","steps":0,"level":-1},{"date":"2025-12-31","steps":0,"level":-1},{"date":"2026-01-01","steps":0,"level":0},{"date":"2026-01-02","steps":14,"level":3},{"date":"2026-01-03","steps":5,"level":1},{"date":"2026-01-04","steps":19,"level":4}],[{"date":"2026-01-05","steps":10,"level":2},{"date":"2026-01-06","steps":1,"level":1},{"date":"2026-01-07","steps":15,"level":3},{"date":"2026-01-08","steps":6,"level":2},{"date":"2026-01-09","steps":20,"level":4},{"date":"2026-01-10","steps":11,"level":2},{"date":"2026-01-11","steps":2,"level":1}],[{"date":"2026-01-12","steps":16,"level":3},{"date":"2026-01-13","steps":7,"level":2},{"date":"2026-01-14","steps":21,"level":4},{"date":"2026-01-15","steps":12,"level":3},{"date":"2026-01-16","steps":3,"level":1},{"date":"2026-01-17","steps":17,"level":4},{"date":"2026-01-18","steps":8,"level":2}],[{"date":"2026-01-19","steps":22,"level":4},{"date":"2026-01-20","steps":13,"level":3},{"date":"2026-01-21","steps":4,"level":1},{"date":"2026-01-22","steps":18,"level":4},{"date":"2026-01-23","steps":9,"level":2},{"date":"2026-01-24","steps":0,"level":0},{"date":"2026-01-25","steps":14,"level":3}],[{"date":"2026-01-26","steps":5,"level":1},{"date":"2026-01-27","steps":19,"level":4},{"date":"2026-01-28","steps":10,"level":2},{"date":"2026-01-29","steps":1,"level":1},{"date":"2026-01-30","steps":15,"level":3},{"date":"2026-01-31","steps":6,"level":2},{"date":"2026-02-01","steps":20,"level":4}],[{"date":"2026-02-02","steps":11,"level":2},{"date":"2026-02-03","steps":2,"level":1},{"date":"2026-02-04","steps":16,"level":3},{"date":"2026-02-05","steps":7,"level":2},{"date":"2026-02-06","steps":21,"level":4},{"date":"2026-02-07","steps":12,"level":3},{"date":"2026-02-08","steps":3,"level":1}],[{"date":"2026-02-09","steps":17,"level":4},{"date":"2026-02-10","steps":8,"level":2},{"date":"2026-02-11","steps":22,"level":4},{"date":"2026-02-12","steps":13,"level":3},{"date":"2026-02-13","steps":4,"level":1},{"date":"2026-02-14","steps":18,"level":4},{"date":"2026-02-15","steps":9,"level":2}],[{"date":"2026-02-16","steps":0,"level":0},{"date":"2026-02-17","steps":14,"level":3},{"date":"2026-02-18","steps":5,"level":1},{"date":"2026-02-19","steps":19,"level":4},{"date":"2026-02-20","steps":10,"level":2},{"date":"2026-02-21","steps":1,"level":1},{"date":"2026-02-22","steps":15,"level":3}],[{"date":"2026-02-23","steps":6,"level":2},{"date":"2026-02-24","steps":20,"level":4},{"date":"2026-02-25","steps":11,"level":2},{"date":"2026-02-26","steps":2,"level":1},{"date":"2026-02-27","steps":16,"level":3},{"date":"2026-02-28","steps":7,"level":2},{"date":"2026-03-01","steps":21,"level":4}],[{"date":"2026-03-02","steps":12,"level":3},{"date":"2026-03-03","steps":3,"level":1},{"date":"2026-03-04","steps":17,"level":4},{"date":"2026-03-05","steps":8,"level":2},{"date":"2026-03-06","steps":22,"level":4},{"date":"2026-03-07","steps":13,"level":3},{"date":"2026-03-08","steps":4,"level":1}],[{"date":"2026-03-09","steps":18,"level":4},{"date":"2026-03-10","steps":9,"level":2},{"date":"2026-03-11","steps":0,"level":0},{"date":"2026-03-12","steps":14,"level":3},{"date":"2026-03-13","steps":5,"level":1},{"date":"2026-03-14","steps":19,"level":4},{"date":"2026-03-15","steps":10,"level":2}],[{"date":"2026-03-16","steps":1,"level":1},{"date":"2026-03-17","steps":15,"level":3},{"date":"2026-03-18","steps":6,"level":2},{"date":"2026-03-19","steps":20,"level":4},{"date":"2026-03-20","steps":11,"level":2},{"date":"2026-03-21","steps":2,"level":1},{"date":"2026-03-22","steps":16,"level":3}],[{"date":"2026-03-23","steps":7,"level":2},{"date":"2026-03-24","steps":21,"level":4},{"date":"2026-03-25","steps":12,"level":3},{"date":"2026-03-26","steps":3,"level":1},{"date":"2026-03-27","steps":17,"level":4},{"date":"2026-03-28","steps":8,"level":2},{"date":"2026-03-29","steps":22,"level":4}],[{"date":"2026-03-30","steps":13,"level":3},{"date":"2026-03-31","steps":4,"level":1},{"date":"2026-04-01","steps":18,"level":4},{"date":"2026-04-02","steps":9,"level":2},{"date":"2026-04-03","steps":0,"level":0},{"date":"2026-04-04","steps":14,"level":3},{"date":"2026-04-05","steps":5,"level":1}],[{"date":"2026-04-06","steps":19,"level":4},{"date":"2026-04-07","steps":10,"level":2},{"date":"2026-04-08","steps":1,"level":1},{"date":"2026-04-09","steps":15,"level":3},{"date":"2026-04-10","steps":6,"level":2},{"date":"2026-04-11","steps":20,"level":4},{"date":"2026-04-12","steps":11,"level":2}],[{"date":"2026-04-13","steps":2,"level":1},{"date":"2026-04-14","steps":16,"level":3},{"date":"2026-04-15","steps":7,"level":2},{"date":"2026-04-16","steps":21,"level":4},{"date":"2026-04-17","steps":12,"level":3},{"date":"2026-04-18","steps":3,"level":1},{"date":"2026-04-19","steps":17,"level":4}],[{"date":"2026-04-20","steps":8,"level":2},{"date":"2026-04-21","steps":22,"level":4},{"date":"2026-04-22","steps":13,"level":3},{"date":"2026-04-23","steps":4,"level":1},{"date":"2026-04-24","steps":18,"level":4},{"date":"2026-04-25","steps":9,"level":2},{"date":"2026-04-26","steps":0,"level":0}],[{"date":"2026-04-27","steps":14,"level":3},{"date":"2026-04-28","steps":5,"level":1},{"date":"2026-04-29","steps":19,"level":4},{"date":"2026-04-30","steps":10,"level":2},{"date":"2026-05-01","steps":1,"level":1},{"date":"2026-05-02","steps":15,"level":3},{"date":"2026-05-03","steps":6,"level":2}],[{"date":"2026-05-04","steps":20,"level":4},{"date":"2026-05-05","steps":11,"level":2},{"date":"2026-05-06","steps":2,"level":1},{"date":"2026-05-07","steps":16,"level":3},{"date":"2026-05-08","steps":7,"level":2},{"date":"2026-05-09","steps":21,"level":4},{"date":"2026-05-10","steps":12,"level":3}],[{"date":"2026-05-11","steps":3,"level":1},{"date":"2026-05-12","steps":17,"level":4},{"date":"2026-05-13","steps":8,"level":2},{"date":"2026-05-14","steps":22,"level":4},{"date":"2026-05-15","steps":13,"level":3},{"date":"2026-05-16","steps":4,"level":1},{"date":"2026-05-17","steps":18,"level":4}],[{"date":"2026-05-18","steps":9,"level":2},{"date":"2026-05-19","steps":0,"level":0},{"date":"2026-05-20","steps":14,"level":3},{"date":"2026-05-21","steps":5,"level":1},{"date":"2026-05-22","steps":19,"level":4},{"date":"2026-05-23","steps":10,"level":2},{"date":"2026-05-24","steps":1,"level":1}],[{"date":"2026-05-25","steps":15,"level":3},{"date":"2026-05-26","steps":6,"level":2},{"date":"2026-05-27","steps":20,"level":4},{"date":"2026-05-28","steps":11,"level":2},{"date":"2026-05-29","steps":2,"level":1},{"date":"2026-05-30","steps":16,"level":3},{"date":"2026-05-31","steps":7,"level":2}],[{"date":"2026-06-01","steps":21,"level":4},{"date":"2026-06-02","steps":12,"level":3},{"date":"2026-06-03","steps":3,"level":1},{"date":"2026-06-04","steps":17,"level":4},{"date":"2026-06-05","steps":8,"level":2},{"date":"2026-06-06","steps":22,"level":4},{"date":"2026-06-07","steps":13,"level":3}],[{"date":"2026-06-08","steps":4,"level":1},{"date":"2026-06-09","steps":18,"level":4},{"date":"2026-06-10","steps":9,"level":2},{"date":"2026-06-11","steps":0,"level":0},{"date":"2026-06-12","steps":14,"level":3},{"date":"2026-06-13","steps":5,"level":1},{"date":"2026-06-14","steps":19,"level":4}],[{"date":"2026-06-15","steps":10,"level":2},{"date":"2026-06-16","steps":1,"level":1},{"date":"2026-06-17","steps":15,"level":3},{"date":"2026-06-18","steps":6,"level":2},{"date":"2026-06-19","steps":20,"level":4},{"date":"2026-06-20","steps":11,"level":2},{"date":"2026-06-21","steps":2,"level":1}],[{"date":"2026-06-22","steps":16,"level":3},{"date":"2026-06-23","steps":7,"level":2},{"date":"2026-06-24","steps":21,"level":4},{"date":"2026-06-25","steps":12,"level":3},{"date":"2026-06-26","steps":3,"level":1},{"date":"2026-06-27","steps":17,"level":4},{"date":"2026-06-28","steps":8,"level":2}],[{"date":"2026-06-29","steps":22,"level":4},{"date":"2026-06-30","steps":13,"level":3},{"date":"2026-07-01","steps":4,"level":1},{"date":"2026-07-02","steps":18,"level":4},{"date":"2026-07-03","steps":9,"level":2},{"date":"2026-07-04","steps":0,"level":0},{"date":"2026-07-05","steps":14,"level":3}],[{"date":"2026-07-06","steps":5,"level":1},{"date":"2026-07-07","steps":19,"level":4},{"date":"2026-07-08","steps":10,"level":2},{"date":"2026-07-09","steps":1,"level":1},{"date":"2026-07-10","steps":15,"level":3},{"date":"2026-07-11","steps":6,"level":2},{"date":"2026-07-12","steps":20,"level":4}],[{"date":"2026-07-13","steps":11,"level":2},{"date":"2026-07-14","steps":2,"level":1},{"date":"2026-07-15","steps":16,"level":3},{"date":"2026-07-16","steps":7,"level":2},{"date":"2026-07-17","steps":21,"level":4},{"date":"2026-07-18","steps":12,"level":3},{"date":"2026-07-19","steps":3,"level":1}],[{"date":"2026-07-20","steps":17,"level":4},{"date":"2026-07-21","steps":8,"level":2},{"date":"2026-07-22","steps":22,"level":4},{"date":"2026-07-23","steps":13,"level":3},{"date":"2026-07-24","steps":4,"level":1},{"date":"2026-07-25","steps":18,"level":4},{"date":"2026-07-26","steps":9,"level":2}],[{"date":"2026-07-27","steps":0,"level":0},{"date":"2026-07-28","steps":14,"level":3},{"date":"2026-07-29","steps":5,"level":1},{"date":"2026-07-30","steps":19,"level":4},{"date":"2026-07-31","steps":10,"level":2},{"date":"2026-08-01","steps":1,"level":1},{"date":"2026-08-02","steps":15,"level":3}],[{"date":"2026-08-03","steps":6,"level":2},{"date":"2026-08-04","steps":20,"level":4},{"date":"2026-08-05","steps":11,"level":2},{"date":"2026-08-06","steps":2,"level":1},{"date":"2026-08-07","steps":16,"level":3},{"date":"2026-08-08","steps":7,"level":2},{"date":"2026-08-09","steps":21,"level":4}],[{"date":"2026-08-10","steps":12,"level":3},{"date":"2026-08-11","steps":3,"level":1},{"date":"2026-08-12","steps":17,"level":4},{"date":"2026-08-13","steps":8,"level":2},{"date":"2026-08-14","steps":22,"level":4},{"date":"2026-08-15","steps":13,"level":3},{"date":"2026-08-16","steps":4,"level":1}],[{"date":"2026-08-17","steps":18,"level":4},{"date":"2026-08-18","steps":9,"level":2},{"date":"2026-08-19","steps":0,"level":0},{"date":"2026-08-20","steps":14,"level":3},{"date":"2026-08-21","steps":5,"level":1},{"date":"2026-08-22","steps":19,"level":4},{"date":"2026-08-23","steps":10,"level":2}],[{"date":"2026-08-24","steps":1,"level":1},{"date":"2026-08-25","steps":15,"level":3},{"date":"2026-08-26","steps":6,"level":2},{"date":"2026-08-27","steps":20,"level":4},{"date":"2026-08-28","steps":11,"level":2},{"date":"2026-08-29","steps":2,"level":1},{"date":"2026-08-30","steps":16,"level":3}],[{"date":"2026-08-31","steps":7,"level":2},{"date":"2026-09-01","steps":21,"level":4},{"date":"2026-09-02","steps":12,"level":3},{"date":"2026-09-03","steps":3,"level":1},{"date":"2026-09-04","steps":17,"level":4},{"date":"2026-09-05","steps":8,"level":2},{"date":"2026-09-06","steps":22,"level":4}],[{"date":"2026-09-07","steps":13,"level":3},{"date":"2026-09-08","steps":4,"level":1},{"date":"2026-09-09","steps":18,"level":4},{"date":"2026-09-10","steps":9,"level":2},{"date":"2026-09-11","steps":0,"level":0},{"date":"2026-09-12","steps":14,"level":3},{"date":"2026-09-13","steps":5,"level":1}],[{"date":"2026-09-14","steps":19,"level":4},{"date":"2026-09-15","steps":10,"level":2},{"date":"2026-09-16","steps":1,"level":1},{"date":"2026-09-17","steps":15,"level":3},{"date":"2026-09-18","steps":6,"level":2},{"date":"2026-09-19","steps":20,"level":4},{"date":"2026-09-20","steps":11,"level":2}],[{"date":"2026-09-21","steps":2,"level":1},{"date":"2026-09-22","steps":16,"level":3},{"date":"2026-09-23","steps":7,"level":2},{"date":"2026-09-24","steps":21,"level":4},{"date":"2026-09-25","steps":12,"level":3},{"date":"2026-09-26","steps":3,"level":1},{"date":"2026-09-27","steps":17,"level":4}],[{"date":"2026-09-28","steps":8,"level":2},{"date":"2026-09-29","steps":22,"level":4},{"date":"2026-09-30","steps":13,"level":3},{"date":"2026-10-01","steps":4,"level":1},{"date":"2026-10-02","steps":18,"level":4},{"date":"2026-10-03","steps":9,"level":2},{"date":"2026-10-04","steps":0,"level":0}],[{"date":"2026-10-05","steps":14,"level":3},{"date":"2026-10-06","steps":5,"level":1},{"date":"2026-10-07","steps":19,"level":4},{"date":"2026-10-08","steps":10,"level":2},{"date":"2026-10-09","steps":1,"level":1},{"date":"2026-10-10","steps":15,"level":3},{"date":"2026-10-11","steps":6,"level":2}],[{"date":"2026-10-12","steps":20,"level":4},{"date":"2026-10-13","steps":11,"level":2},{"date":"2026-10-14","steps":2,"level":1},{"date":"2026-10-15","steps":16,"level":3},{"date":"2026-10-16","steps":7,"level":2},{"date":"2026-10-17","steps":21,"level":4},{"date":"2026-10-18","steps":12,"level":3}],[{"date":"2026-10-19","steps":3,"level":1},{"date":"2026-10-20","steps":17,"level":4},{"date":"2026-10-21","steps":8,"level":2},{"date":"2026-10-22","steps":22,"level":4},{"date":"2026-10-23","steps":13,"level":3},{"date":"2026-10-24","steps":4,"level":1},{"date":"2026-10-25","steps":18,"level":4}],[{"date":"2026-10-26","steps":9,"level":2},{"date":"2026-10-27","steps":0,"level":0},{"date":"2026-10-28","steps":0,"level":-1},{"date":"2026-10-29","steps":0,"level":-1},{"date":"2026-10-30","steps":0,"level":-1},{"date":"2026-10-31","steps":0,"level":-1},{"date":"2026-11-01","steps":0,"level":-1}]],"months":[{"week":0,"label":"Jan","span":5},{"week":5,"label":"Feb","span":4},{"week":9,"label":"Mar","span":4},{"week":13,"label":"Apr","span":5},{"week":18,"label":"May","span":4},{"week":22,"label":"Jun","span":4},{"week":26,"label":"Jul","span":5},{"week":31,"label":"Aug","span":4},{"week":35,"label":"Sep","span":4},{"week":39,"label":"Oct","span":5}],"clipped":false}}, +{"tz":"Etc/GMT+5","offset":-18000,"input":{"name":"a past year, narrow","activity":[{"date":"2025-03-01","steps":0},{"date":"2025-03-02","steps":3},{"date":"2025-03-03","steps":6},{"date":"2025-03-04","steps":9},{"date":"2025-03-05","steps":12},{"date":"2025-03-06","steps":0},{"date":"2025-03-07","steps":3},{"date":"2025-03-08","steps":6},{"date":"2025-03-09","steps":9},{"date":"2025-03-10","steps":12},{"date":"2025-03-11","steps":0},{"date":"2025-03-12","steps":3},{"date":"2025-03-13","steps":6},{"date":"2025-03-14","steps":9},{"date":"2025-03-15","steps":12},{"date":"2025-03-16","steps":0},{"date":"2025-03-17","steps":3},{"date":"2025-03-18","steps":6},{"date":"2025-03-19","steps":9},{"date":"2025-03-20","steps":12},{"date":"2025-03-21","steps":0},{"date":"2025-03-22","steps":3},{"date":"2025-03-23","steps":6},{"date":"2025-03-24","steps":9},{"date":"2025-03-25","steps":12},{"date":"2025-03-26","steps":0},{"date":"2025-03-27","steps":3},{"date":"2025-03-28","steps":6},{"date":"2025-03-29","steps":9},{"date":"2025-03-30","steps":12},{"date":"2025-03-31","steps":0},{"date":"2025-04-01","steps":3},{"date":"2025-04-02","steps":6},{"date":"2025-04-03","steps":9},{"date":"2025-04-04","steps":12},{"date":"2025-04-05","steps":0},{"date":"2025-04-06","steps":3},{"date":"2025-04-07","steps":6},{"date":"2025-04-08","steps":9},{"date":"2025-04-09","steps":12}],"from":1735707600000,"to":1767243600000,"maxWeeks":16.7},"output":{"weeks":[[{"date":"2025-09-15","steps":0,"level":0},{"date":"2025-09-16","steps":0,"level":0},{"date":"2025-09-17","steps":0,"level":0},{"date":"2025-09-18","steps":0,"level":0},{"date":"2025-09-19","steps":0,"level":0},{"date":"2025-09-20","steps":0,"level":0},{"date":"2025-09-21","steps":0,"level":0}],[{"date":"2025-09-22","steps":0,"level":0},{"date":"2025-09-23","steps":0,"level":0},{"date":"2025-09-24","steps":0,"level":0},{"date":"2025-09-25","steps":0,"level":0},{"date":"2025-09-26","steps":0,"level":0},{"date":"2025-09-27","steps":0,"level":0},{"date":"2025-09-28","steps":0,"level":0}],[{"date":"2025-09-29","steps":0,"level":0},{"date":"2025-09-30","steps":0,"level":0},{"date":"2025-10-01","steps":0,"level":0},{"date":"2025-10-02","steps":0,"level":0},{"date":"2025-10-03","steps":0,"level":0},{"date":"2025-10-04","steps":0,"level":0},{"date":"2025-10-05","steps":0,"level":0}],[{"date":"2025-10-06","steps":0,"level":0},{"date":"2025-10-07","steps":0,"level":0},{"date":"2025-10-08","steps":0,"level":0},{"date":"2025-10-09","steps":0,"level":0},{"date":"2025-10-10","steps":0,"level":0},{"date":"2025-10-11","steps":0,"level":0},{"date":"2025-10-12","steps":0,"level":0}],[{"date":"2025-10-13","steps":0,"level":0},{"date":"2025-10-14","steps":0,"level":0},{"date":"2025-10-15","steps":0,"level":0},{"date":"2025-10-16","steps":0,"level":0},{"date":"2025-10-17","steps":0,"level":0},{"date":"2025-10-18","steps":0,"level":0},{"date":"2025-10-19","steps":0,"level":0}],[{"date":"2025-10-20","steps":0,"level":0},{"date":"2025-10-21","steps":0,"level":0},{"date":"2025-10-22","steps":0,"level":0},{"date":"2025-10-23","steps":0,"level":0},{"date":"2025-10-24","steps":0,"level":0},{"date":"2025-10-25","steps":0,"level":0},{"date":"2025-10-26","steps":0,"level":0}],[{"date":"2025-10-27","steps":0,"level":0},{"date":"2025-10-28","steps":0,"level":0},{"date":"2025-10-29","steps":0,"level":0},{"date":"2025-10-30","steps":0,"level":0},{"date":"2025-10-31","steps":0,"level":0},{"date":"2025-11-01","steps":0,"level":0},{"date":"2025-11-02","steps":0,"level":0}],[{"date":"2025-11-03","steps":0,"level":0},{"date":"2025-11-04","steps":0,"level":0},{"date":"2025-11-05","steps":0,"level":0},{"date":"2025-11-06","steps":0,"level":0},{"date":"2025-11-07","steps":0,"level":0},{"date":"2025-11-08","steps":0,"level":0},{"date":"2025-11-09","steps":0,"level":0}],[{"date":"2025-11-10","steps":0,"level":0},{"date":"2025-11-11","steps":0,"level":0},{"date":"2025-11-12","steps":0,"level":0},{"date":"2025-11-13","steps":0,"level":0},{"date":"2025-11-14","steps":0,"level":0},{"date":"2025-11-15","steps":0,"level":0},{"date":"2025-11-16","steps":0,"level":0}],[{"date":"2025-11-17","steps":0,"level":0},{"date":"2025-11-18","steps":0,"level":0},{"date":"2025-11-19","steps":0,"level":0},{"date":"2025-11-20","steps":0,"level":0},{"date":"2025-11-21","steps":0,"level":0},{"date":"2025-11-22","steps":0,"level":0},{"date":"2025-11-23","steps":0,"level":0}],[{"date":"2025-11-24","steps":0,"level":0},{"date":"2025-11-25","steps":0,"level":0},{"date":"2025-11-26","steps":0,"level":0},{"date":"2025-11-27","steps":0,"level":0},{"date":"2025-11-28","steps":0,"level":0},{"date":"2025-11-29","steps":0,"level":0},{"date":"2025-11-30","steps":0,"level":0}],[{"date":"2025-12-01","steps":0,"level":0},{"date":"2025-12-02","steps":0,"level":0},{"date":"2025-12-03","steps":0,"level":0},{"date":"2025-12-04","steps":0,"level":0},{"date":"2025-12-05","steps":0,"level":0},{"date":"2025-12-06","steps":0,"level":0},{"date":"2025-12-07","steps":0,"level":0}],[{"date":"2025-12-08","steps":0,"level":0},{"date":"2025-12-09","steps":0,"level":0},{"date":"2025-12-10","steps":0,"level":0},{"date":"2025-12-11","steps":0,"level":0},{"date":"2025-12-12","steps":0,"level":0},{"date":"2025-12-13","steps":0,"level":0},{"date":"2025-12-14","steps":0,"level":0}],[{"date":"2025-12-15","steps":0,"level":0},{"date":"2025-12-16","steps":0,"level":0},{"date":"2025-12-17","steps":0,"level":0},{"date":"2025-12-18","steps":0,"level":0},{"date":"2025-12-19","steps":0,"level":0},{"date":"2025-12-20","steps":0,"level":0},{"date":"2025-12-21","steps":0,"level":0}],[{"date":"2025-12-22","steps":0,"level":0},{"date":"2025-12-23","steps":0,"level":0},{"date":"2025-12-24","steps":0,"level":0},{"date":"2025-12-25","steps":0,"level":0},{"date":"2025-12-26","steps":0,"level":0},{"date":"2025-12-27","steps":0,"level":0},{"date":"2025-12-28","steps":0,"level":0}],[{"date":"2025-12-29","steps":0,"level":0},{"date":"2025-12-30","steps":0,"level":0},{"date":"2025-12-31","steps":0,"level":0},{"date":"2026-01-01","steps":0,"level":-1},{"date":"2026-01-02","steps":0,"level":-1},{"date":"2026-01-03","steps":0,"level":-1},{"date":"2026-01-04","steps":0,"level":-1}]],"months":[{"week":0,"label":"Sep","span":2},{"week":2,"label":"Oct","span":5},{"week":7,"label":"Nov","span":4},{"week":11,"label":"Dec","span":5}],"clipped":true}}, +{"tz":"Etc/GMT+5","offset":-18000,"input":{"name":"negative width","activity":[{"date":"2026-01-01","steps":1},{"date":"2026-01-02","steps":50}],"from":1767243600000,"to":1768885200000,"maxWeeks":-3},"output":{"weeks":[[{"date":"2026-01-19","steps":0,"level":0},{"date":"2026-01-20","steps":0,"level":-1},{"date":"2026-01-21","steps":0,"level":-1},{"date":"2026-01-22","steps":0,"level":-1},{"date":"2026-01-23","steps":0,"level":-1},{"date":"2026-01-24","steps":0,"level":-1},{"date":"2026-01-25","steps":0,"level":-1}]],"months":[{"week":0,"label":"Jan","span":1}],"clipped":true}}, +{"tz":"Etc/GMT+5","offset":-18000,"input":{"name":"duplicate dates and outside activity","activity":[{"date":"2026-01-03","steps":4},{"date":"2026-01-03","steps":9},{"date":"2025-06-01","steps":100},{"date":"2026-01-04","steps":0}],"from":1767243600000,"to":1767848400000,"maxWeeks":53},"output":{"weeks":[[{"date":"2025-12-29","steps":0,"level":-1},{"date":"2025-12-30","steps":0,"level":-1},{"date":"2025-12-31","steps":0,"level":-1},{"date":"2026-01-01","steps":0,"level":0},{"date":"2026-01-02","steps":0,"level":0},{"date":"2026-01-03","steps":9,"level":2},{"date":"2026-01-04","steps":0,"level":0}],[{"date":"2026-01-05","steps":0,"level":0},{"date":"2026-01-06","steps":0,"level":0},{"date":"2026-01-07","steps":0,"level":0},{"date":"2026-01-08","steps":0,"level":-1},{"date":"2026-01-09","steps":0,"level":-1},{"date":"2026-01-10","steps":0,"level":-1},{"date":"2026-01-11","steps":0,"level":-1}]],"months":[{"week":0,"label":"Jan","span":2}],"clipped":false}}, +{"tz":"Etc/GMT+5","offset":-18000,"input":{"name":"UTC-midnight edges","activity":[{"date":"2026-01-01","steps":1},{"date":"2026-01-02","steps":50}],"from":1767225600000,"to":1769904000000,"maxWeeks":53},"output":{"weeks":[[{"date":"2025-12-29","steps":0,"level":-1},{"date":"2025-12-30","steps":0,"level":-1},{"date":"2025-12-31","steps":0,"level":0},{"date":"2026-01-01","steps":1,"level":2},{"date":"2026-01-02","steps":50,"level":4},{"date":"2026-01-03","steps":0,"level":0},{"date":"2026-01-04","steps":0,"level":0}],[{"date":"2026-01-05","steps":0,"level":0},{"date":"2026-01-06","steps":0,"level":0},{"date":"2026-01-07","steps":0,"level":0},{"date":"2026-01-08","steps":0,"level":0},{"date":"2026-01-09","steps":0,"level":0},{"date":"2026-01-10","steps":0,"level":0},{"date":"2026-01-11","steps":0,"level":0}],[{"date":"2026-01-12","steps":0,"level":0},{"date":"2026-01-13","steps":0,"level":0},{"date":"2026-01-14","steps":0,"level":0},{"date":"2026-01-15","steps":0,"level":0},{"date":"2026-01-16","steps":0,"level":0},{"date":"2026-01-17","steps":0,"level":0},{"date":"2026-01-18","steps":0,"level":0}],[{"date":"2026-01-19","steps":0,"level":0},{"date":"2026-01-20","steps":0,"level":0},{"date":"2026-01-21","steps":0,"level":0},{"date":"2026-01-22","steps":0,"level":0},{"date":"2026-01-23","steps":0,"level":0},{"date":"2026-01-24","steps":0,"level":0},{"date":"2026-01-25","steps":0,"level":0}],[{"date":"2026-01-26","steps":0,"level":0},{"date":"2026-01-27","steps":0,"level":0},{"date":"2026-01-28","steps":0,"level":0},{"date":"2026-01-29","steps":0,"level":0},{"date":"2026-01-30","steps":0,"level":0},{"date":"2026-01-31","steps":0,"level":0},{"date":"2026-02-01","steps":0,"level":-1}]],"months":[{"week":0,"label":"Jan","span":5}],"clipped":false}} +], +"stats": {"full":{"range":{"from":1762300800000,"to":1793806200001},"sessions":1234,"subagents":56,"prompts":9876,"steps":54321,"tokens":{"input":12345678,"output":2345678,"reasoning":345678,"cache":{"read":987654321,"write":12345678}},"cost":1234.565,"tools":{"mode":"detail","totals":{"calls":5000,"succeeded":4900,"failed":75,"unfinished":25},"usage":[{"name":"read","calls":2000,"succeeded":1990,"failed":10,"unfinished":0,"durationP50":12.4},{"name":"bash","calls":1500,"succeeded":1400,"failed":75,"unfinished":25,"durationP50":1534},{"name":"edit","calls":800,"succeeded":800,"failed":0,"unfinished":0,"durationP50":999.5},{"name":"a-very-long-tool-name-from-some-mcp-server_with_suffix","calls":400,"succeeded":399,"failed":1,"unfinished":0,"durationP50":120000},{"name":"pending","calls":300,"succeeded":0,"failed":0,"unfinished":300},{"name":"webfetch","calls":5,"succeeded":4,"failed":1,"unfinished":0,"durationP50":0.4}]},"activeDays":243,"streak":17,"activity":[{"date":"2025-11-05","steps":0},{"date":"2025-11-06","steps":63},{"date":"2025-11-07","steps":28},{"date":"2025-11-08","steps":0},{"date":"2025-11-09","steps":55},{"date":"2025-11-10","steps":20},{"date":"2025-11-11","steps":0},{"date":"2025-11-12","steps":47},{"date":"2025-11-13","steps":12},{"date":"2025-11-14","steps":0},{"date":"2025-11-15","steps":39},{"date":"2025-11-16","steps":4},{"date":"2025-11-17","steps":0},{"date":"2025-11-18","steps":31},{"date":"2025-11-19","steps":93},{"date":"2025-11-20","steps":0},{"date":"2025-11-21","steps":23},{"date":"2025-11-22","steps":85},{"date":"2025-11-23","steps":0},{"date":"2025-11-24","steps":15},{"date":"2025-11-25","steps":77},{"date":"2025-11-26","steps":0},{"date":"2025-11-27","steps":7},{"date":"2025-11-28","steps":69},{"date":"2025-11-29","steps":0},{"date":"2025-11-30","steps":96},{"date":"2025-12-01","steps":61},{"date":"2025-12-02","steps":0},{"date":"2025-12-03","steps":88},{"date":"2025-12-04","steps":53},{"date":"2025-12-05","steps":0},{"date":"2025-12-06","steps":80},{"date":"2025-12-07","steps":45},{"date":"2025-12-08","steps":0},{"date":"2025-12-09","steps":72},{"date":"2025-12-10","steps":37},{"date":"2025-12-11","steps":0},{"date":"2025-12-12","steps":64},{"date":"2025-12-13","steps":29},{"date":"2025-12-14","steps":0},{"date":"2025-12-15","steps":56},{"date":"2025-12-16","steps":21},{"date":"2025-12-17","steps":0},{"date":"2025-12-18","steps":48},{"date":"2025-12-19","steps":13},{"date":"2025-12-20","steps":0},{"date":"2025-12-21","steps":40},{"date":"2025-12-22","steps":5},{"date":"2025-12-23","steps":0},{"date":"2025-12-24","steps":32},{"date":"2025-12-25","steps":94},{"date":"2025-12-26","steps":0},{"date":"2025-12-27","steps":24},{"date":"2025-12-28","steps":86},{"date":"2025-12-29","steps":0},{"date":"2025-12-30","steps":16},{"date":"2025-12-31","steps":78},{"date":"2026-01-01","steps":0},{"date":"2026-01-02","steps":8},{"date":"2026-01-03","steps":70},{"date":"2026-01-04","steps":0},{"date":"2026-01-05","steps":97},{"date":"2026-01-06","steps":62},{"date":"2026-01-07","steps":0},{"date":"2026-01-08","steps":89},{"date":"2026-01-09","steps":54},{"date":"2026-01-10","steps":0},{"date":"2026-01-11","steps":81},{"date":"2026-01-12","steps":46},{"date":"2026-01-13","steps":0},{"date":"2026-01-14","steps":73},{"date":"2026-01-15","steps":38},{"date":"2026-01-16","steps":0},{"date":"2026-01-17","steps":65},{"date":"2026-01-18","steps":30},{"date":"2026-01-19","steps":0},{"date":"2026-01-20","steps":57},{"date":"2026-01-21","steps":22},{"date":"2026-01-22","steps":0},{"date":"2026-01-23","steps":49},{"date":"2026-01-24","steps":14},{"date":"2026-01-25","steps":0},{"date":"2026-01-26","steps":41},{"date":"2026-01-27","steps":6},{"date":"2026-01-28","steps":0},{"date":"2026-01-29","steps":33},{"date":"2026-01-30","steps":95},{"date":"2026-01-31","steps":0},{"date":"2026-02-01","steps":25},{"date":"2026-02-02","steps":87},{"date":"2026-02-03","steps":0},{"date":"2026-02-04","steps":17},{"date":"2026-02-05","steps":79},{"date":"2026-02-06","steps":0},{"date":"2026-02-07","steps":9},{"date":"2026-02-08","steps":71},{"date":"2026-02-09","steps":0},{"date":"2026-02-10","steps":1},{"date":"2026-02-11","steps":63},{"date":"2026-02-12","steps":0},{"date":"2026-02-13","steps":90},{"date":"2026-02-14","steps":55},{"date":"2026-02-15","steps":0},{"date":"2026-02-16","steps":82},{"date":"2026-02-17","steps":47},{"date":"2026-02-18","steps":0},{"date":"2026-02-19","steps":74},{"date":"2026-02-20","steps":39},{"date":"2026-02-21","steps":0},{"date":"2026-02-22","steps":66},{"date":"2026-02-23","steps":31},{"date":"2026-02-24","steps":0},{"date":"2026-02-25","steps":58},{"date":"2026-02-26","steps":23},{"date":"2026-02-27","steps":0},{"date":"2026-02-28","steps":50},{"date":"2026-03-01","steps":15},{"date":"2026-03-02","steps":0},{"date":"2026-03-03","steps":42},{"date":"2026-03-04","steps":7},{"date":"2026-03-05","steps":0},{"date":"2026-03-06","steps":34},{"date":"2026-03-07","steps":96},{"date":"2026-03-08","steps":0},{"date":"2026-03-09","steps":26},{"date":"2026-03-10","steps":88},{"date":"2026-03-11","steps":0},{"date":"2026-03-12","steps":18},{"date":"2026-03-13","steps":80},{"date":"2026-03-14","steps":0},{"date":"2026-03-15","steps":10},{"date":"2026-03-16","steps":72},{"date":"2026-03-17","steps":0},{"date":"2026-03-18","steps":2},{"date":"2026-03-19","steps":64},{"date":"2026-03-20","steps":0},{"date":"2026-03-21","steps":91},{"date":"2026-03-22","steps":56},{"date":"2026-03-23","steps":0},{"date":"2026-03-24","steps":83},{"date":"2026-03-25","steps":48},{"date":"2026-03-26","steps":0},{"date":"2026-03-27","steps":75},{"date":"2026-03-28","steps":40},{"date":"2026-03-29","steps":0},{"date":"2026-03-30","steps":67},{"date":"2026-03-31","steps":32},{"date":"2026-04-01","steps":0},{"date":"2026-04-02","steps":59},{"date":"2026-04-03","steps":24},{"date":"2026-04-04","steps":0},{"date":"2026-04-05","steps":51},{"date":"2026-04-06","steps":16},{"date":"2026-04-07","steps":0},{"date":"2026-04-08","steps":43},{"date":"2026-04-09","steps":8},{"date":"2026-04-10","steps":0},{"date":"2026-04-11","steps":35},{"date":"2026-04-12","steps":97},{"date":"2026-04-13","steps":0},{"date":"2026-04-14","steps":27},{"date":"2026-04-15","steps":89},{"date":"2026-04-16","steps":0},{"date":"2026-04-17","steps":19},{"date":"2026-04-18","steps":81},{"date":"2026-04-19","steps":0},{"date":"2026-04-20","steps":11},{"date":"2026-04-21","steps":73},{"date":"2026-04-22","steps":0},{"date":"2026-04-23","steps":3},{"date":"2026-04-24","steps":65},{"date":"2026-04-25","steps":0},{"date":"2026-04-26","steps":92},{"date":"2026-04-27","steps":57},{"date":"2026-04-28","steps":0},{"date":"2026-04-29","steps":84},{"date":"2026-04-30","steps":49},{"date":"2026-05-01","steps":0},{"date":"2026-05-02","steps":76},{"date":"2026-05-03","steps":41},{"date":"2026-05-04","steps":0},{"date":"2026-05-05","steps":68},{"date":"2026-05-06","steps":33},{"date":"2026-05-07","steps":0},{"date":"2026-05-08","steps":60},{"date":"2026-05-09","steps":25},{"date":"2026-05-10","steps":0},{"date":"2026-05-11","steps":52},{"date":"2026-05-12","steps":17},{"date":"2026-05-13","steps":0},{"date":"2026-05-14","steps":44},{"date":"2026-05-15","steps":9},{"date":"2026-05-16","steps":0},{"date":"2026-05-17","steps":36},{"date":"2026-05-18","steps":1},{"date":"2026-05-19","steps":0},{"date":"2026-05-20","steps":28},{"date":"2026-05-21","steps":90},{"date":"2026-05-22","steps":0},{"date":"2026-05-23","steps":20},{"date":"2026-05-24","steps":82},{"date":"2026-05-25","steps":0},{"date":"2026-05-26","steps":12},{"date":"2026-05-27","steps":74},{"date":"2026-05-28","steps":0},{"date":"2026-05-29","steps":4},{"date":"2026-05-30","steps":66},{"date":"2026-05-31","steps":0},{"date":"2026-06-01","steps":93},{"date":"2026-06-02","steps":58},{"date":"2026-06-03","steps":0},{"date":"2026-06-04","steps":85},{"date":"2026-06-05","steps":50},{"date":"2026-06-06","steps":0},{"date":"2026-06-07","steps":77},{"date":"2026-06-08","steps":42},{"date":"2026-06-09","steps":0},{"date":"2026-06-10","steps":69},{"date":"2026-06-11","steps":34},{"date":"2026-06-12","steps":0},{"date":"2026-06-13","steps":61},{"date":"2026-06-14","steps":26},{"date":"2026-06-15","steps":0},{"date":"2026-06-16","steps":53},{"date":"2026-06-17","steps":18},{"date":"2026-06-18","steps":0},{"date":"2026-06-19","steps":45},{"date":"2026-06-20","steps":10},{"date":"2026-06-21","steps":0},{"date":"2026-06-22","steps":37},{"date":"2026-06-23","steps":2},{"date":"2026-06-24","steps":0},{"date":"2026-06-25","steps":29},{"date":"2026-06-26","steps":91},{"date":"2026-06-27","steps":0},{"date":"2026-06-28","steps":21},{"date":"2026-06-29","steps":83},{"date":"2026-06-30","steps":0},{"date":"2026-07-01","steps":13},{"date":"2026-07-02","steps":75},{"date":"2026-07-03","steps":0},{"date":"2026-07-04","steps":5},{"date":"2026-07-05","steps":67},{"date":"2026-07-06","steps":0},{"date":"2026-07-07","steps":94},{"date":"2026-07-08","steps":59},{"date":"2026-07-09","steps":0},{"date":"2026-07-10","steps":86},{"date":"2026-07-11","steps":51},{"date":"2026-07-12","steps":0},{"date":"2026-07-13","steps":78},{"date":"2026-07-14","steps":43},{"date":"2026-07-15","steps":0},{"date":"2026-07-16","steps":70},{"date":"2026-07-17","steps":35},{"date":"2026-07-18","steps":0},{"date":"2026-07-19","steps":62},{"date":"2026-07-20","steps":27},{"date":"2026-07-21","steps":0},{"date":"2026-07-22","steps":54},{"date":"2026-07-23","steps":19},{"date":"2026-07-24","steps":0},{"date":"2026-07-25","steps":46},{"date":"2026-07-26","steps":11},{"date":"2026-07-27","steps":0},{"date":"2026-07-28","steps":38},{"date":"2026-07-29","steps":3},{"date":"2026-07-30","steps":0},{"date":"2026-07-31","steps":30},{"date":"2026-08-01","steps":92},{"date":"2026-08-02","steps":0},{"date":"2026-08-03","steps":22},{"date":"2026-08-04","steps":84},{"date":"2026-08-05","steps":0},{"date":"2026-08-06","steps":14},{"date":"2026-08-07","steps":76},{"date":"2026-08-08","steps":0},{"date":"2026-08-09","steps":6},{"date":"2026-08-10","steps":68},{"date":"2026-08-11","steps":0},{"date":"2026-08-12","steps":95},{"date":"2026-08-13","steps":60},{"date":"2026-08-14","steps":0},{"date":"2026-08-15","steps":87},{"date":"2026-08-16","steps":52},{"date":"2026-08-17","steps":0},{"date":"2026-08-18","steps":79},{"date":"2026-08-19","steps":44},{"date":"2026-08-20","steps":0},{"date":"2026-08-21","steps":71},{"date":"2026-08-22","steps":36},{"date":"2026-08-23","steps":0},{"date":"2026-08-24","steps":63},{"date":"2026-08-25","steps":28},{"date":"2026-08-26","steps":0},{"date":"2026-08-27","steps":55},{"date":"2026-08-28","steps":20},{"date":"2026-08-29","steps":0},{"date":"2026-08-30","steps":47},{"date":"2026-08-31","steps":12},{"date":"2026-09-01","steps":0},{"date":"2026-09-02","steps":39},{"date":"2026-09-03","steps":4},{"date":"2026-09-04","steps":0},{"date":"2026-09-05","steps":31},{"date":"2026-09-06","steps":93},{"date":"2026-09-07","steps":0},{"date":"2026-09-08","steps":23},{"date":"2026-09-09","steps":85},{"date":"2026-09-10","steps":0},{"date":"2026-09-11","steps":15},{"date":"2026-09-12","steps":77},{"date":"2026-09-13","steps":0},{"date":"2026-09-14","steps":7},{"date":"2026-09-15","steps":69},{"date":"2026-09-16","steps":0},{"date":"2026-09-17","steps":96},{"date":"2026-09-18","steps":61},{"date":"2026-09-19","steps":0},{"date":"2026-09-20","steps":88},{"date":"2026-09-21","steps":53},{"date":"2026-09-22","steps":0},{"date":"2026-09-23","steps":80},{"date":"2026-09-24","steps":45},{"date":"2026-09-25","steps":0},{"date":"2026-09-26","steps":72},{"date":"2026-09-27","steps":37},{"date":"2026-09-28","steps":0},{"date":"2026-09-29","steps":64},{"date":"2026-09-30","steps":29},{"date":"2026-10-01","steps":0},{"date":"2026-10-02","steps":56},{"date":"2026-10-03","steps":21},{"date":"2026-10-04","steps":0},{"date":"2026-10-05","steps":48},{"date":"2026-10-06","steps":13},{"date":"2026-10-07","steps":0},{"date":"2026-10-08","steps":40},{"date":"2026-10-09","steps":5},{"date":"2026-10-10","steps":0},{"date":"2026-10-11","steps":32},{"date":"2026-10-12","steps":94},{"date":"2026-10-13","steps":0},{"date":"2026-10-14","steps":24},{"date":"2026-10-15","steps":86},{"date":"2026-10-16","steps":0},{"date":"2026-10-17","steps":16},{"date":"2026-10-18","steps":78},{"date":"2026-10-19","steps":0},{"date":"2026-10-20","steps":8},{"date":"2026-10-21","steps":70},{"date":"2026-10-22","steps":0},{"date":"2026-10-23","steps":97},{"date":"2026-10-24","steps":62},{"date":"2026-10-25","steps":0},{"date":"2026-10-26","steps":89},{"date":"2026-10-27","steps":54},{"date":"2026-10-28","steps":0},{"date":"2026-10-29","steps":81},{"date":"2026-10-30","steps":46},{"date":"2026-10-31","steps":0},{"date":"2026-11-01","steps":73},{"date":"2026-11-02","steps":38},{"date":"2026-11-03","steps":0},{"date":"2026-11-04","steps":65}],"models":[{"model":{"providerID":"anthropic","id":"claude-opus-5-5"},"steps":40000,"tokens":{"input":9000000,"output":1000000,"reasoning":0,"cache":{"read":500000000,"write":5000000}},"cost":900.125},{"model":{"providerID":"openai","id":"gpt-5","variant":"high"},"steps":10000,"tokens":{"input":999,"output":1,"reasoning":0,"cache":{"read":0,"write":0}},"cost":0.005},{"model":{"providerID":"openrouter","id":"some/really-long-model-identifier-that-overflows"},"steps":999,"tokens":{"input":1999999999,"output":0,"reasoning":0,"cache":{"read":0,"write":0}},"cost":334.435},{"model":{"providerID":"local","id":"tiny"},"steps":1,"tokens":{"input":0,"output":0,"reasoning":0,"cache":{"read":0,"write":0}},"cost":0}]},"singular":{"range":{"from":1793750400000,"to":1793782800001},"sessions":1,"subagents":0,"prompts":1,"steps":1,"tokens":{"input":1,"output":0,"reasoning":0,"cache":{"read":0,"write":0}},"cost":1234.565,"tools":{"mode":"summary","totals":{"calls":3,"succeeded":3,"failed":0,"unfinished":0}},"activeDays":1,"streak":1,"activity":[{"date":"2026-11-04","steps":1}],"models":[]},"no tool calls":{"range":{"from":1793750400000,"to":1793782800001},"sessions":2,"subagents":0,"prompts":1,"steps":1,"tokens":{"input":1,"output":0,"reasoning":0,"cache":{"read":0,"write":0}},"cost":1234.565,"tools":{"mode":"summary","totals":{"calls":2,"succeeded":0,"failed":0,"unfinished":2}},"activeDays":1,"streak":1,"activity":[{"date":"2026-11-04","steps":1}],"models":[]},"no tool stats":{"range":{"from":1793750400000,"to":1793782800001},"sessions":3,"subagents":0,"prompts":1,"steps":1,"tokens":{"input":1,"output":0,"reasoning":0,"cache":{"read":0,"write":0}},"cost":1234.565,"tools":{"mode":"none"},"activeDays":1,"streak":1,"activity":[{"date":"2026-11-04","steps":1}],"models":[]},"no details":{"range":{"from":1793750400000,"to":1793782800001},"sessions":1,"subagents":0,"prompts":1,"steps":1,"tokens":{"input":1,"output":0,"reasoning":0,"cache":{"read":0,"write":0}},"cost":1234.565,"tools":{"mode":"detail","totals":{"calls":0,"succeeded":0,"failed":0,"unfinished":0},"usage":[]},"activeDays":1,"streak":1,"activity":[{"date":"2026-11-04","steps":1}],"models":[]},"empty":{"range":{"from":1793750400000,"to":1793782800001},"sessions":0,"subagents":0,"prompts":0,"steps":0,"tokens":{"input":0,"output":0,"reasoning":0,"cache":{"read":0,"write":0}},"cost":0,"tools":{"mode":"summary","totals":{"calls":3,"succeeded":3,"failed":0,"unfinished":0}},"activeDays":0,"streak":0,"activity":[],"models":[]}}, +"render": [ +{"colorfgbg": null, "cases": [ +{"stats":"full","name":"summary","options":{"label":"last 365 days","scope":"all projects","models":false,"tools":false,"cost":false,"limit":5,"width":80,"color":false},"output":"opencode stats · last 365 days · all projects\n\nactivity\n Nov Dec Jan Feb Mar Apr May Jun Jul Aug Sep Oct Nov\nMo ░·░▓·▓░·█▒·▒█·█▒·▒▓·▓░·░▓·▓░·█▒·▒█·█▒·░▓·▓░·░▓·▒█·█▒\n\nTu ·▒█·▓░·░▓·▓░·░▒·▒█·█▒·▒█·▓░·░▓·▓░·█▒·▒█·█▒·░▓·▓░·░▓·\n\nWe ·▒█·█▒·▒█·█░·░▓·▓░·░▒·▒█·█▒·▒█·▓░·░▓·▓░·█▒·▒█·█▒·░▓·▓\n\nTh ▓░·░▓·▒█·█▒·▒█·█░·░▓·▓░·░▓·▒█·█▒·▒█·▓░·░▓·▓░·█▒·▒█·█ \n\nFr ▒·░▓·▓░·░▓·▓█·█▒·▒█·█░·░▓·▓░·░▓·▒█·█▒·▒█·▓░·░▓·▓░·█▒ \n\nSa ·▒█·█▒·░▓·▓░·░▓·▓█·█▒·▒█·█▒·░▓·▓░·░▓·▒█·█▒·▒█·▓░·░▓· \n\nSu ▓░·█▒·▒█·█▒·▒▓·▓░·░▓·▓█·█▒·▒█·█▒·░▓·▓░·░▓·▒█·█▒·▒█·█ \n\n less ·░▒▓█ more\n\n1.2k sessions · 56 subagents\n9.9k prompts · 54.3k steps · 1b tokens\n98.5% tool success · 243 active days · best streak 17 days\n\nopencode.ai"}, +{"stats":"full","name":"summary","options":{"label":"last 365 days","scope":"all projects","models":false,"tools":false,"cost":false,"limit":5,"width":80,"color":true},"output":"\u001b[1;36mopencode stats\u001b[0m \u001b[2m· last 365 days · all projects\u001b[0m\n\n\u001b[1;36mactivity\u001b[0m\n \u001b[2mNov Dec Jan Feb Mar Apr May Jun Jul Aug Sep Oct Nov\u001b[0m\n\u001b[2mMo\u001b[0m \u001b[2;36m░\u001b[39m\u001b[2m·\u001b[22m\u001b[2;36m░\u001b[39m\u001b[1;36m▓\u001b[39m\u001b[2m·\u001b[22m\u001b[1;36m▓\u001b[39m\u001b[2;36m░\u001b[39m\u001b[2m·\u001b[22m\u001b[1;96m█\u001b[39m\u001b[36m▒\u001b[39m\u001b[2m·\u001b[22m\u001b[36m▒\u001b[39m\u001b[1;96m█\u001b[39m\u001b[2m·\u001b[22m\u001b[1;96m█\u001b[39m\u001b[36m▒\u001b[39m\u001b[2m·\u001b[22m\u001b[36m▒\u001b[39m\u001b[1;36m▓\u001b[39m\u001b[2m·\u001b[22m\u001b[1;36m▓\u001b[39m\u001b[2;36m░\u001b[39m\u001b[2m·\u001b[22m\u001b[2;36m░\u001b[39m\u001b[1;36m▓\u001b[39m\u001b[2m·\u001b[22m\u001b[1;36m▓\u001b[39m\u001b[2;36m░\u001b[39m\u001b[2m·\u001b[22m\u001b[1;96m█\u001b[39m\u001b[36m▒\u001b[39m\u001b[2m·\u001b[22m\u001b[36m▒\u001b[39m\u001b[1;96m█\u001b[39m\u001b[2m·\u001b[22m\u001b[1;96m█\u001b[39m\u001b[36m▒\u001b[39m\u001b[2m·\u001b[22m\u001b[2;36m░\u001b[39m\u001b[1;36m▓\u001b[39m\u001b[2m·\u001b[22m\u001b[1;36m▓\u001b[39m\u001b[2;36m░\u001b[39m\u001b[2m·\u001b[22m\u001b[2;36m░\u001b[39m\u001b[1;36m▓\u001b[39m\u001b[2m·\u001b[22m\u001b[36m▒\u001b[39m\u001b[1;96m█\u001b[39m\u001b[2m·\u001b[22m\u001b[1;96m█\u001b[39m\u001b[36m▒\u001b[39m\n\n\u001b[2mTu\u001b[0m \u001b[2m·\u001b[22m\u001b[36m▒\u001b[39m\u001b[1;96m█\u001b[39m\u001b[2m·\u001b[22m\u001b[1;36m▓\u001b[39m\u001b[2;36m░\u001b[39m\u001b[2m·\u001b[22m\u001b[2;36m░\u001b[39m\u001b[1;36m▓\u001b[39m\u001b[2m·\u001b[22m\u001b[1;36m▓\u001b[39m\u001b[2;36m░\u001b[39m\u001b[2m·\u001b[22m\u001b[2;36m░\u001b[39m\u001b[36m▒\u001b[39m\u001b[2m·\u001b[22m\u001b[36m▒\u001b[39m\u001b[1;96m█\u001b[39m\u001b[2m·\u001b[22m\u001b[1;96m█\u001b[39m\u001b[36m▒\u001b[39m\u001b[2m·\u001b[22m\u001b[36m▒\u001b[39m\u001b[1;96m█\u001b[39m\u001b[2m·\u001b[22m\u001b[1;36m▓\u001b[39m\u001b[2;36m░\u001b[39m\u001b[2m·\u001b[22m\u001b[2;36m░\u001b[39m\u001b[1;36m▓\u001b[39m\u001b[2m·\u001b[22m\u001b[1;36m▓\u001b[39m\u001b[2;36m░\u001b[39m\u001b[2m·\u001b[22m\u001b[1;96m█\u001b[39m\u001b[36m▒\u001b[39m\u001b[2m·\u001b[22m\u001b[36m▒\u001b[39m\u001b[1;96m█\u001b[39m\u001b[2m·\u001b[22m\u001b[1;96m█\u001b[39m\u001b[36m▒\u001b[39m\u001b[2m·\u001b[22m\u001b[2;36m░\u001b[39m\u001b[1;36m▓\u001b[39m\u001b[2m·\u001b[22m\u001b[1;36m▓\u001b[39m\u001b[2;36m░\u001b[39m\u001b[2m·\u001b[22m\u001b[2;36m░\u001b[39m\u001b[1;36m▓\u001b[39m\u001b[2m·\u001b[22m\n\n\u001b[2mWe\u001b[0m \u001b[2m·\u001b[22m\u001b[36m▒\u001b[39m\u001b[1;96m█\u001b[39m\u001b[2m·\u001b[22m\u001b[1;96m█\u001b[39m\u001b[36m▒\u001b[39m\u001b[2m·\u001b[22m\u001b[36m▒\u001b[39m\u001b[1;96m█\u001b[39m\u001b[2m·\u001b[22m\u001b[1;96m█\u001b[39m\u001b[2;36m░\u001b[39m\u001b[2m·\u001b[22m\u001b[2;36m░\u001b[39m\u001b[1;36m▓\u001b[39m\u001b[2m·\u001b[22m\u001b[1;36m▓\u001b[39m\u001b[2;36m░\u001b[39m\u001b[2m·\u001b[22m\u001b[2;36m░\u001b[39m\u001b[36m▒\u001b[39m\u001b[2m·\u001b[22m\u001b[36m▒\u001b[39m\u001b[1;96m█\u001b[39m\u001b[2m·\u001b[22m\u001b[1;96m█\u001b[39m\u001b[36m▒\u001b[39m\u001b[2m·\u001b[22m\u001b[36m▒\u001b[39m\u001b[1;96m█\u001b[39m\u001b[2m·\u001b[22m\u001b[1;36m▓\u001b[39m\u001b[2;36m░\u001b[39m\u001b[2m·\u001b[22m\u001b[2;36m░\u001b[39m\u001b[1;36m▓\u001b[39m\u001b[2m·\u001b[22m\u001b[1;36m▓\u001b[39m\u001b[2;36m░\u001b[39m\u001b[2m·\u001b[22m\u001b[1;96m█\u001b[39m\u001b[36m▒\u001b[39m\u001b[2m·\u001b[22m\u001b[36m▒\u001b[39m\u001b[1;96m█\u001b[39m\u001b[2m·\u001b[22m\u001b[1;96m█\u001b[39m\u001b[36m▒\u001b[39m\u001b[2m·\u001b[22m\u001b[2;36m░\u001b[39m\u001b[1;36m▓\u001b[39m\u001b[2m·\u001b[22m\u001b[1;36m▓\u001b[39m\n\n\u001b[2mTh\u001b[0m \u001b[1;36m▓\u001b[39m\u001b[2;36m░\u001b[39m\u001b[2m·\u001b[22m\u001b[2;36m░\u001b[39m\u001b[1;36m▓\u001b[39m\u001b[2m·\u001b[22m\u001b[36m▒\u001b[39m\u001b[1;96m█\u001b[39m\u001b[2m·\u001b[22m\u001b[1;96m█\u001b[39m\u001b[36m▒\u001b[39m\u001b[2m·\u001b[22m\u001b[36m▒\u001b[39m\u001b[1;96m█\u001b[39m\u001b[2m·\u001b[22m\u001b[1;96m█\u001b[39m\u001b[2;36m░\u001b[39m\u001b[2m·\u001b[22m\u001b[2;36m░\u001b[39m\u001b[1;36m▓\u001b[39m\u001b[2m·\u001b[22m\u001b[1;36m▓\u001b[39m\u001b[2;36m░\u001b[39m\u001b[2m·\u001b[22m\u001b[2;36m░\u001b[39m\u001b[1;36m▓\u001b[39m\u001b[2m·\u001b[22m\u001b[36m▒\u001b[39m\u001b[1;96m█\u001b[39m\u001b[2m·\u001b[22m\u001b[1;96m█\u001b[39m\u001b[36m▒\u001b[39m\u001b[2m·\u001b[22m\u001b[36m▒\u001b[39m\u001b[1;96m█\u001b[39m\u001b[2m·\u001b[22m\u001b[1;36m▓\u001b[39m\u001b[2;36m░\u001b[39m\u001b[2m·\u001b[22m\u001b[2;36m░\u001b[39m\u001b[1;36m▓\u001b[39m\u001b[2m·\u001b[22m\u001b[1;36m▓\u001b[39m\u001b[2;36m░\u001b[39m\u001b[2m·\u001b[22m\u001b[1;96m█\u001b[39m\u001b[36m▒\u001b[39m\u001b[2m·\u001b[22m\u001b[36m▒\u001b[39m\u001b[1;96m█\u001b[39m\u001b[2m·\u001b[22m\u001b[1;96m█\u001b[39m \n\n\u001b[2mFr\u001b[0m \u001b[36m▒\u001b[39m\u001b[2m·\u001b[22m\u001b[2;36m░\u001b[39m\u001b[1;36m▓\u001b[39m\u001b[2m·\u001b[22m\u001b[1;36m▓\u001b[39m\u001b[2;36m░\u001b[39m\u001b[2m·\u001b[22m\u001b[2;36m░\u001b[39m\u001b[1;36m▓\u001b[39m\u001b[2m·\u001b[22m\u001b[1;36m▓\u001b[39m\u001b[1;96m█\u001b[39m\u001b[2m·\u001b[22m\u001b[1;96m█\u001b[39m\u001b[36m▒\u001b[39m\u001b[2m·\u001b[22m\u001b[36m▒\u001b[39m\u001b[1;96m█\u001b[39m\u001b[2m·\u001b[22m\u001b[1;96m█\u001b[39m\u001b[2;36m░\u001b[39m\u001b[2m·\u001b[22m\u001b[2;36m░\u001b[39m\u001b[1;36m▓\u001b[39m\u001b[2m·\u001b[22m\u001b[1;36m▓\u001b[39m\u001b[2;36m░\u001b[39m\u001b[2m·\u001b[22m\u001b[2;36m░\u001b[39m\u001b[1;36m▓\u001b[39m\u001b[2m·\u001b[22m\u001b[36m▒\u001b[39m\u001b[1;96m█\u001b[39m\u001b[2m·\u001b[22m\u001b[1;96m█\u001b[39m\u001b[36m▒\u001b[39m\u001b[2m·\u001b[22m\u001b[36m▒\u001b[39m\u001b[1;96m█\u001b[39m\u001b[2m·\u001b[22m\u001b[1;36m▓\u001b[39m\u001b[2;36m░\u001b[39m\u001b[2m·\u001b[22m\u001b[2;36m░\u001b[39m\u001b[1;36m▓\u001b[39m\u001b[2m·\u001b[22m\u001b[1;36m▓\u001b[39m\u001b[2;36m░\u001b[39m\u001b[2m·\u001b[22m\u001b[1;96m█\u001b[39m\u001b[36m▒\u001b[39m \n\n\u001b[2mSa\u001b[0m \u001b[2m·\u001b[22m\u001b[36m▒\u001b[39m\u001b[1;96m█\u001b[39m\u001b[2m·\u001b[22m\u001b[1;96m█\u001b[39m\u001b[36m▒\u001b[39m\u001b[2m·\u001b[22m\u001b[2;36m░\u001b[39m\u001b[1;36m▓\u001b[39m\u001b[2m·\u001b[22m\u001b[1;36m▓\u001b[39m\u001b[2;36m░\u001b[39m\u001b[2m·\u001b[22m\u001b[2;36m░\u001b[39m\u001b[1;36m▓\u001b[39m\u001b[2m·\u001b[22m\u001b[1;36m▓\u001b[39m\u001b[1;96m█\u001b[39m\u001b[2m·\u001b[22m\u001b[1;96m█\u001b[39m\u001b[36m▒\u001b[39m\u001b[2m·\u001b[22m\u001b[36m▒\u001b[39m\u001b[1;96m█\u001b[39m\u001b[2m·\u001b[22m\u001b[1;96m█\u001b[39m\u001b[36m▒\u001b[39m\u001b[2m·\u001b[22m\u001b[2;36m░\u001b[39m\u001b[1;36m▓\u001b[39m\u001b[2m·\u001b[22m\u001b[1;36m▓\u001b[39m\u001b[2;36m░\u001b[39m\u001b[2m·\u001b[22m\u001b[2;36m░\u001b[39m\u001b[1;36m▓\u001b[39m\u001b[2m·\u001b[22m\u001b[36m▒\u001b[39m\u001b[1;96m█\u001b[39m\u001b[2m·\u001b[22m\u001b[1;96m█\u001b[39m\u001b[36m▒\u001b[39m\u001b[2m·\u001b[22m\u001b[36m▒\u001b[39m\u001b[1;96m█\u001b[39m\u001b[2m·\u001b[22m\u001b[1;36m▓\u001b[39m\u001b[2;36m░\u001b[39m\u001b[2m·\u001b[22m\u001b[2;36m░\u001b[39m\u001b[1;36m▓\u001b[39m\u001b[2m·\u001b[22m \n\n\u001b[2mSu\u001b[0m \u001b[1;36m▓\u001b[39m\u001b[2;36m░\u001b[39m\u001b[2m·\u001b[22m\u001b[1;96m█\u001b[39m\u001b[36m▒\u001b[39m\u001b[2m·\u001b[22m\u001b[36m▒\u001b[39m\u001b[1;96m█\u001b[39m\u001b[2m·\u001b[22m\u001b[1;96m█\u001b[39m\u001b[36m▒\u001b[39m\u001b[2m·\u001b[22m\u001b[36m▒\u001b[39m\u001b[1;36m▓\u001b[39m\u001b[2m·\u001b[22m\u001b[1;36m▓\u001b[39m\u001b[2;36m░\u001b[39m\u001b[2m·\u001b[22m\u001b[2;36m░\u001b[39m\u001b[1;36m▓\u001b[39m\u001b[2m·\u001b[22m\u001b[1;36m▓\u001b[39m\u001b[1;96m█\u001b[39m\u001b[2m·\u001b[22m\u001b[1;96m█\u001b[39m\u001b[36m▒\u001b[39m\u001b[2m·\u001b[22m\u001b[36m▒\u001b[39m\u001b[1;96m█\u001b[39m\u001b[2m·\u001b[22m\u001b[1;96m█\u001b[39m\u001b[36m▒\u001b[39m\u001b[2m·\u001b[22m\u001b[2;36m░\u001b[39m\u001b[1;36m▓\u001b[39m\u001b[2m·\u001b[22m\u001b[1;36m▓\u001b[39m\u001b[2;36m░\u001b[39m\u001b[2m·\u001b[22m\u001b[2;36m░\u001b[39m\u001b[1;36m▓\u001b[39m\u001b[2m·\u001b[22m\u001b[36m▒\u001b[39m\u001b[1;96m█\u001b[39m\u001b[2m·\u001b[22m\u001b[1;96m█\u001b[39m\u001b[36m▒\u001b[39m\u001b[2m·\u001b[22m\u001b[36m▒\u001b[39m\u001b[1;96m█\u001b[39m\u001b[2m·\u001b[22m\u001b[1;96m█\u001b[39m \n\n \u001b[2mless\u001b[0m \u001b[2m·\u001b[22m\u001b[2;36m░\u001b[39m\u001b[36m▒\u001b[39m\u001b[1;36m▓\u001b[39m\u001b[1;96m█\u001b[39m \u001b[2mmore\u001b[0m\n\n\u001b[1;36m1.2k\u001b[0m sessions · \u001b[1;36m56\u001b[0m subagents\n\u001b[1;36m9.9k\u001b[0m prompts · \u001b[1;36m54.3k\u001b[0m steps · \u001b[1;36m1b\u001b[0m tokens\n\u001b[1;36m98.5%\u001b[0m tool success · \u001b[1;36m243\u001b[0m active days · best streak \u001b[1;36m17\u001b[0m days\n\n\u001b[2mopencode.ai\u001b[0m"}, +{"stats":"full","name":"summary wide","options":{"label":"last 365 days","scope":"all projects","models":false,"tools":false,"cost":false,"limit":5,"width":120,"color":false},"output":"opencode stats · last 365 days · all projects\n\nactivity\n Nov Dec Jan Feb Mar Apr May Jun Jul Aug Sep Oct Nov\nMo ░·░▓·▓░·█▒·▒█·█▒·▒▓·▓░·░▓·▓░·█▒·▒█·█▒·░▓·▓░·░▓·▒█·█▒\n\nTu ·▒█·▓░·░▓·▓░·░▒·▒█·█▒·▒█·▓░·░▓·▓░·█▒·▒█·█▒·░▓·▓░·░▓·\n\nWe ·▒█·█▒·▒█·█░·░▓·▓░·░▒·▒█·█▒·▒█·▓░·░▓·▓░·█▒·▒█·█▒·░▓·▓\n\nTh ▓░·░▓·▒█·█▒·▒█·█░·░▓·▓░·░▓·▒█·█▒·▒█·▓░·░▓·▓░·█▒·▒█·█ \n\nFr ▒·░▓·▓░·░▓·▓█·█▒·▒█·█░·░▓·▓░·░▓·▒█·█▒·▒█·▓░·░▓·▓░·█▒ \n\nSa ·▒█·█▒·░▓·▓░·░▓·▓█·█▒·▒█·█▒·░▓·▓░·░▓·▒█·█▒·▒█·▓░·░▓· \n\nSu ▓░·█▒·▒█·█▒·▒▓·▓░·░▓·▓█·█▒·▒█·█▒·░▓·▓░·░▓·▒█·█▒·▒█·█ \n\n less ·░▒▓█ more\n\n1.2k sessions · 56 subagents\n9.9k prompts · 54.3k steps · 1b tokens\n98.5% tool success · 243 active days · best streak 17 days\n\nopencode.ai"}, +{"stats":"full","name":"summary wide","options":{"label":"last 365 days","scope":"all projects","models":false,"tools":false,"cost":false,"limit":5,"width":120,"color":true},"output":"\u001b[1;36mopencode stats\u001b[0m \u001b[2m· last 365 days · all projects\u001b[0m\n\n\u001b[1;36mactivity\u001b[0m\n \u001b[2mNov Dec Jan Feb Mar Apr May Jun Jul Aug Sep Oct Nov\u001b[0m\n\u001b[2mMo\u001b[0m \u001b[2;36m░\u001b[39m\u001b[2m·\u001b[22m\u001b[2;36m░\u001b[39m\u001b[1;36m▓\u001b[39m\u001b[2m·\u001b[22m\u001b[1;36m▓\u001b[39m\u001b[2;36m░\u001b[39m\u001b[2m·\u001b[22m\u001b[1;96m█\u001b[39m\u001b[36m▒\u001b[39m\u001b[2m·\u001b[22m\u001b[36m▒\u001b[39m\u001b[1;96m█\u001b[39m\u001b[2m·\u001b[22m\u001b[1;96m█\u001b[39m\u001b[36m▒\u001b[39m\u001b[2m·\u001b[22m\u001b[36m▒\u001b[39m\u001b[1;36m▓\u001b[39m\u001b[2m·\u001b[22m\u001b[1;36m▓\u001b[39m\u001b[2;36m░\u001b[39m\u001b[2m·\u001b[22m\u001b[2;36m░\u001b[39m\u001b[1;36m▓\u001b[39m\u001b[2m·\u001b[22m\u001b[1;36m▓\u001b[39m\u001b[2;36m░\u001b[39m\u001b[2m·\u001b[22m\u001b[1;96m█\u001b[39m\u001b[36m▒\u001b[39m\u001b[2m·\u001b[22m\u001b[36m▒\u001b[39m\u001b[1;96m█\u001b[39m\u001b[2m·\u001b[22m\u001b[1;96m█\u001b[39m\u001b[36m▒\u001b[39m\u001b[2m·\u001b[22m\u001b[2;36m░\u001b[39m\u001b[1;36m▓\u001b[39m\u001b[2m·\u001b[22m\u001b[1;36m▓\u001b[39m\u001b[2;36m░\u001b[39m\u001b[2m·\u001b[22m\u001b[2;36m░\u001b[39m\u001b[1;36m▓\u001b[39m\u001b[2m·\u001b[22m\u001b[36m▒\u001b[39m\u001b[1;96m█\u001b[39m\u001b[2m·\u001b[22m\u001b[1;96m█\u001b[39m\u001b[36m▒\u001b[39m\n\n\u001b[2mTu\u001b[0m \u001b[2m·\u001b[22m\u001b[36m▒\u001b[39m\u001b[1;96m█\u001b[39m\u001b[2m·\u001b[22m\u001b[1;36m▓\u001b[39m\u001b[2;36m░\u001b[39m\u001b[2m·\u001b[22m\u001b[2;36m░\u001b[39m\u001b[1;36m▓\u001b[39m\u001b[2m·\u001b[22m\u001b[1;36m▓\u001b[39m\u001b[2;36m░\u001b[39m\u001b[2m·\u001b[22m\u001b[2;36m░\u001b[39m\u001b[36m▒\u001b[39m\u001b[2m·\u001b[22m\u001b[36m▒\u001b[39m\u001b[1;96m█\u001b[39m\u001b[2m·\u001b[22m\u001b[1;96m█\u001b[39m\u001b[36m▒\u001b[39m\u001b[2m·\u001b[22m\u001b[36m▒\u001b[39m\u001b[1;96m█\u001b[39m\u001b[2m·\u001b[22m\u001b[1;36m▓\u001b[39m\u001b[2;36m░\u001b[39m\u001b[2m·\u001b[22m\u001b[2;36m░\u001b[39m\u001b[1;36m▓\u001b[39m\u001b[2m·\u001b[22m\u001b[1;36m▓\u001b[39m\u001b[2;36m░\u001b[39m\u001b[2m·\u001b[22m\u001b[1;96m█\u001b[39m\u001b[36m▒\u001b[39m\u001b[2m·\u001b[22m\u001b[36m▒\u001b[39m\u001b[1;96m█\u001b[39m\u001b[2m·\u001b[22m\u001b[1;96m█\u001b[39m\u001b[36m▒\u001b[39m\u001b[2m·\u001b[22m\u001b[2;36m░\u001b[39m\u001b[1;36m▓\u001b[39m\u001b[2m·\u001b[22m\u001b[1;36m▓\u001b[39m\u001b[2;36m░\u001b[39m\u001b[2m·\u001b[22m\u001b[2;36m░\u001b[39m\u001b[1;36m▓\u001b[39m\u001b[2m·\u001b[22m\n\n\u001b[2mWe\u001b[0m \u001b[2m·\u001b[22m\u001b[36m▒\u001b[39m\u001b[1;96m█\u001b[39m\u001b[2m·\u001b[22m\u001b[1;96m█\u001b[39m\u001b[36m▒\u001b[39m\u001b[2m·\u001b[22m\u001b[36m▒\u001b[39m\u001b[1;96m█\u001b[39m\u001b[2m·\u001b[22m\u001b[1;96m█\u001b[39m\u001b[2;36m░\u001b[39m\u001b[2m·\u001b[22m\u001b[2;36m░\u001b[39m\u001b[1;36m▓\u001b[39m\u001b[2m·\u001b[22m\u001b[1;36m▓\u001b[39m\u001b[2;36m░\u001b[39m\u001b[2m·\u001b[22m\u001b[2;36m░\u001b[39m\u001b[36m▒\u001b[39m\u001b[2m·\u001b[22m\u001b[36m▒\u001b[39m\u001b[1;96m█\u001b[39m\u001b[2m·\u001b[22m\u001b[1;96m█\u001b[39m\u001b[36m▒\u001b[39m\u001b[2m·\u001b[22m\u001b[36m▒\u001b[39m\u001b[1;96m█\u001b[39m\u001b[2m·\u001b[22m\u001b[1;36m▓\u001b[39m\u001b[2;36m░\u001b[39m\u001b[2m·\u001b[22m\u001b[2;36m░\u001b[39m\u001b[1;36m▓\u001b[39m\u001b[2m·\u001b[22m\u001b[1;36m▓\u001b[39m\u001b[2;36m░\u001b[39m\u001b[2m·\u001b[22m\u001b[1;96m█\u001b[39m\u001b[36m▒\u001b[39m\u001b[2m·\u001b[22m\u001b[36m▒\u001b[39m\u001b[1;96m█\u001b[39m\u001b[2m·\u001b[22m\u001b[1;96m█\u001b[39m\u001b[36m▒\u001b[39m\u001b[2m·\u001b[22m\u001b[2;36m░\u001b[39m\u001b[1;36m▓\u001b[39m\u001b[2m·\u001b[22m\u001b[1;36m▓\u001b[39m\n\n\u001b[2mTh\u001b[0m \u001b[1;36m▓\u001b[39m\u001b[2;36m░\u001b[39m\u001b[2m·\u001b[22m\u001b[2;36m░\u001b[39m\u001b[1;36m▓\u001b[39m\u001b[2m·\u001b[22m\u001b[36m▒\u001b[39m\u001b[1;96m█\u001b[39m\u001b[2m·\u001b[22m\u001b[1;96m█\u001b[39m\u001b[36m▒\u001b[39m\u001b[2m·\u001b[22m\u001b[36m▒\u001b[39m\u001b[1;96m█\u001b[39m\u001b[2m·\u001b[22m\u001b[1;96m█\u001b[39m\u001b[2;36m░\u001b[39m\u001b[2m·\u001b[22m\u001b[2;36m░\u001b[39m\u001b[1;36m▓\u001b[39m\u001b[2m·\u001b[22m\u001b[1;36m▓\u001b[39m\u001b[2;36m░\u001b[39m\u001b[2m·\u001b[22m\u001b[2;36m░\u001b[39m\u001b[1;36m▓\u001b[39m\u001b[2m·\u001b[22m\u001b[36m▒\u001b[39m\u001b[1;96m█\u001b[39m\u001b[2m·\u001b[22m\u001b[1;96m█\u001b[39m\u001b[36m▒\u001b[39m\u001b[2m·\u001b[22m\u001b[36m▒\u001b[39m\u001b[1;96m█\u001b[39m\u001b[2m·\u001b[22m\u001b[1;36m▓\u001b[39m\u001b[2;36m░\u001b[39m\u001b[2m·\u001b[22m\u001b[2;36m░\u001b[39m\u001b[1;36m▓\u001b[39m\u001b[2m·\u001b[22m\u001b[1;36m▓\u001b[39m\u001b[2;36m░\u001b[39m\u001b[2m·\u001b[22m\u001b[1;96m█\u001b[39m\u001b[36m▒\u001b[39m\u001b[2m·\u001b[22m\u001b[36m▒\u001b[39m\u001b[1;96m█\u001b[39m\u001b[2m·\u001b[22m\u001b[1;96m█\u001b[39m \n\n\u001b[2mFr\u001b[0m \u001b[36m▒\u001b[39m\u001b[2m·\u001b[22m\u001b[2;36m░\u001b[39m\u001b[1;36m▓\u001b[39m\u001b[2m·\u001b[22m\u001b[1;36m▓\u001b[39m\u001b[2;36m░\u001b[39m\u001b[2m·\u001b[22m\u001b[2;36m░\u001b[39m\u001b[1;36m▓\u001b[39m\u001b[2m·\u001b[22m\u001b[1;36m▓\u001b[39m\u001b[1;96m█\u001b[39m\u001b[2m·\u001b[22m\u001b[1;96m█\u001b[39m\u001b[36m▒\u001b[39m\u001b[2m·\u001b[22m\u001b[36m▒\u001b[39m\u001b[1;96m█\u001b[39m\u001b[2m·\u001b[22m\u001b[1;96m█\u001b[39m\u001b[2;36m░\u001b[39m\u001b[2m·\u001b[22m\u001b[2;36m░\u001b[39m\u001b[1;36m▓\u001b[39m\u001b[2m·\u001b[22m\u001b[1;36m▓\u001b[39m\u001b[2;36m░\u001b[39m\u001b[2m·\u001b[22m\u001b[2;36m░\u001b[39m\u001b[1;36m▓\u001b[39m\u001b[2m·\u001b[22m\u001b[36m▒\u001b[39m\u001b[1;96m█\u001b[39m\u001b[2m·\u001b[22m\u001b[1;96m█\u001b[39m\u001b[36m▒\u001b[39m\u001b[2m·\u001b[22m\u001b[36m▒\u001b[39m\u001b[1;96m█\u001b[39m\u001b[2m·\u001b[22m\u001b[1;36m▓\u001b[39m\u001b[2;36m░\u001b[39m\u001b[2m·\u001b[22m\u001b[2;36m░\u001b[39m\u001b[1;36m▓\u001b[39m\u001b[2m·\u001b[22m\u001b[1;36m▓\u001b[39m\u001b[2;36m░\u001b[39m\u001b[2m·\u001b[22m\u001b[1;96m█\u001b[39m\u001b[36m▒\u001b[39m \n\n\u001b[2mSa\u001b[0m \u001b[2m·\u001b[22m\u001b[36m▒\u001b[39m\u001b[1;96m█\u001b[39m\u001b[2m·\u001b[22m\u001b[1;96m█\u001b[39m\u001b[36m▒\u001b[39m\u001b[2m·\u001b[22m\u001b[2;36m░\u001b[39m\u001b[1;36m▓\u001b[39m\u001b[2m·\u001b[22m\u001b[1;36m▓\u001b[39m\u001b[2;36m░\u001b[39m\u001b[2m·\u001b[22m\u001b[2;36m░\u001b[39m\u001b[1;36m▓\u001b[39m\u001b[2m·\u001b[22m\u001b[1;36m▓\u001b[39m\u001b[1;96m█\u001b[39m\u001b[2m·\u001b[22m\u001b[1;96m█\u001b[39m\u001b[36m▒\u001b[39m\u001b[2m·\u001b[22m\u001b[36m▒\u001b[39m\u001b[1;96m█\u001b[39m\u001b[2m·\u001b[22m\u001b[1;96m█\u001b[39m\u001b[36m▒\u001b[39m\u001b[2m·\u001b[22m\u001b[2;36m░\u001b[39m\u001b[1;36m▓\u001b[39m\u001b[2m·\u001b[22m\u001b[1;36m▓\u001b[39m\u001b[2;36m░\u001b[39m\u001b[2m·\u001b[22m\u001b[2;36m░\u001b[39m\u001b[1;36m▓\u001b[39m\u001b[2m·\u001b[22m\u001b[36m▒\u001b[39m\u001b[1;96m█\u001b[39m\u001b[2m·\u001b[22m\u001b[1;96m█\u001b[39m\u001b[36m▒\u001b[39m\u001b[2m·\u001b[22m\u001b[36m▒\u001b[39m\u001b[1;96m█\u001b[39m\u001b[2m·\u001b[22m\u001b[1;36m▓\u001b[39m\u001b[2;36m░\u001b[39m\u001b[2m·\u001b[22m\u001b[2;36m░\u001b[39m\u001b[1;36m▓\u001b[39m\u001b[2m·\u001b[22m \n\n\u001b[2mSu\u001b[0m \u001b[1;36m▓\u001b[39m\u001b[2;36m░\u001b[39m\u001b[2m·\u001b[22m\u001b[1;96m█\u001b[39m\u001b[36m▒\u001b[39m\u001b[2m·\u001b[22m\u001b[36m▒\u001b[39m\u001b[1;96m█\u001b[39m\u001b[2m·\u001b[22m\u001b[1;96m█\u001b[39m\u001b[36m▒\u001b[39m\u001b[2m·\u001b[22m\u001b[36m▒\u001b[39m\u001b[1;36m▓\u001b[39m\u001b[2m·\u001b[22m\u001b[1;36m▓\u001b[39m\u001b[2;36m░\u001b[39m\u001b[2m·\u001b[22m\u001b[2;36m░\u001b[39m\u001b[1;36m▓\u001b[39m\u001b[2m·\u001b[22m\u001b[1;36m▓\u001b[39m\u001b[1;96m█\u001b[39m\u001b[2m·\u001b[22m\u001b[1;96m█\u001b[39m\u001b[36m▒\u001b[39m\u001b[2m·\u001b[22m\u001b[36m▒\u001b[39m\u001b[1;96m█\u001b[39m\u001b[2m·\u001b[22m\u001b[1;96m█\u001b[39m\u001b[36m▒\u001b[39m\u001b[2m·\u001b[22m\u001b[2;36m░\u001b[39m\u001b[1;36m▓\u001b[39m\u001b[2m·\u001b[22m\u001b[1;36m▓\u001b[39m\u001b[2;36m░\u001b[39m\u001b[2m·\u001b[22m\u001b[2;36m░\u001b[39m\u001b[1;36m▓\u001b[39m\u001b[2m·\u001b[22m\u001b[36m▒\u001b[39m\u001b[1;96m█\u001b[39m\u001b[2m·\u001b[22m\u001b[1;96m█\u001b[39m\u001b[36m▒\u001b[39m\u001b[2m·\u001b[22m\u001b[36m▒\u001b[39m\u001b[1;96m█\u001b[39m\u001b[2m·\u001b[22m\u001b[1;96m█\u001b[39m \n\n \u001b[2mless\u001b[0m \u001b[2m·\u001b[22m\u001b[2;36m░\u001b[39m\u001b[36m▒\u001b[39m\u001b[1;36m▓\u001b[39m\u001b[1;96m█\u001b[39m \u001b[2mmore\u001b[0m\n\n\u001b[1;36m1.2k\u001b[0m sessions · \u001b[1;36m56\u001b[0m subagents\n\u001b[1;36m9.9k\u001b[0m prompts · \u001b[1;36m54.3k\u001b[0m steps · \u001b[1;36m1b\u001b[0m tokens\n\u001b[1;36m98.5%\u001b[0m tool success · \u001b[1;36m243\u001b[0m active days · best streak \u001b[1;36m17\u001b[0m days\n\n\u001b[2mopencode.ai\u001b[0m"}, +{"stats":"full","name":"summary narrow","options":{"label":"last 365 days","scope":"all projects","models":false,"tools":false,"cost":false,"limit":5,"width":40,"color":false},"output":"opencode stats · last 365 days · all projects\n\nactivity · last 36 weeks\n Mar Apr May Jun Jul Aug Sep Oct Nov\nMo ·▒▓·▓░·░▓·▓░·█▒·▒█·█▒·░▓·▓░·░▓·▒█·█▒\n\nTu ▒█·█▒·▒█·▓░·░▓·▓░·█▒·▒█·█▒·░▓·▓░·░▓·\n\nWe ░·░▒·▒█·█▒·▒█·▓░·░▓·▓░·█▒·▒█·█▒·░▓·▓\n\nTh ·░▓·▓░·░▓·▒█·█▒·▒█·▓░·░▓·▓░·█▒·▒█·█ \n\nFr ▒█·█░·░▓·▓░·░▓·▒█·█▒·▒█·▓░·░▓·▓░·█▒ \n\nSa █·█▒·▒█·█▒·░▓·▓░·░▓·▒█·█▒·▒█·▓░·░▓· \n\nSu ·░▓·▓█·█▒·▒█·█▒·░▓·▓░·░▓·▒█·█▒·▒█·█ \n\n less ·░▒▓█ more\n\n1.2k sessions · 56 subagents\n9.9k prompts · 54.3k steps · 1b tokens\n98.5% tool success · 243 active days · best streak 17 days\n\nopencode.ai"}, +{"stats":"full","name":"summary narrow","options":{"label":"last 365 days","scope":"all projects","models":false,"tools":false,"cost":false,"limit":5,"width":40,"color":true},"output":"\u001b[1;36mopencode stats\u001b[0m \u001b[2m· last 365 days · all projects\u001b[0m\n\n\u001b[1;36mactivity · last 36 weeks\u001b[0m\n \u001b[2mMar Apr May Jun Jul Aug Sep Oct Nov\u001b[0m\n\u001b[2mMo\u001b[0m \u001b[2m·\u001b[22m\u001b[36m▒\u001b[39m\u001b[1;36m▓\u001b[39m\u001b[2m·\u001b[22m\u001b[1;36m▓\u001b[39m\u001b[2;36m░\u001b[39m\u001b[2m·\u001b[22m\u001b[2;36m░\u001b[39m\u001b[1;36m▓\u001b[39m\u001b[2m·\u001b[22m\u001b[1;36m▓\u001b[39m\u001b[2;36m░\u001b[39m\u001b[2m·\u001b[22m\u001b[1;96m█\u001b[39m\u001b[36m▒\u001b[39m\u001b[2m·\u001b[22m\u001b[36m▒\u001b[39m\u001b[1;96m█\u001b[39m\u001b[2m·\u001b[22m\u001b[1;96m█\u001b[39m\u001b[36m▒\u001b[39m\u001b[2m·\u001b[22m\u001b[2;36m░\u001b[39m\u001b[1;36m▓\u001b[39m\u001b[2m·\u001b[22m\u001b[1;36m▓\u001b[39m\u001b[2;36m░\u001b[39m\u001b[2m·\u001b[22m\u001b[2;36m░\u001b[39m\u001b[1;36m▓\u001b[39m\u001b[2m·\u001b[22m\u001b[36m▒\u001b[39m\u001b[1;96m█\u001b[39m\u001b[2m·\u001b[22m\u001b[1;96m█\u001b[39m\u001b[36m▒\u001b[39m\n\n\u001b[2mTu\u001b[0m \u001b[36m▒\u001b[39m\u001b[1;96m█\u001b[39m\u001b[2m·\u001b[22m\u001b[1;96m█\u001b[39m\u001b[36m▒\u001b[39m\u001b[2m·\u001b[22m\u001b[36m▒\u001b[39m\u001b[1;96m█\u001b[39m\u001b[2m·\u001b[22m\u001b[1;36m▓\u001b[39m\u001b[2;36m░\u001b[39m\u001b[2m·\u001b[22m\u001b[2;36m░\u001b[39m\u001b[1;36m▓\u001b[39m\u001b[2m·\u001b[22m\u001b[1;36m▓\u001b[39m\u001b[2;36m░\u001b[39m\u001b[2m·\u001b[22m\u001b[1;96m█\u001b[39m\u001b[36m▒\u001b[39m\u001b[2m·\u001b[22m\u001b[36m▒\u001b[39m\u001b[1;96m█\u001b[39m\u001b[2m·\u001b[22m\u001b[1;96m█\u001b[39m\u001b[36m▒\u001b[39m\u001b[2m·\u001b[22m\u001b[2;36m░\u001b[39m\u001b[1;36m▓\u001b[39m\u001b[2m·\u001b[22m\u001b[1;36m▓\u001b[39m\u001b[2;36m░\u001b[39m\u001b[2m·\u001b[22m\u001b[2;36m░\u001b[39m\u001b[1;36m▓\u001b[39m\u001b[2m·\u001b[22m\n\n\u001b[2mWe\u001b[0m \u001b[2;36m░\u001b[39m\u001b[2m·\u001b[22m\u001b[2;36m░\u001b[39m\u001b[36m▒\u001b[39m\u001b[2m·\u001b[22m\u001b[36m▒\u001b[39m\u001b[1;96m█\u001b[39m\u001b[2m·\u001b[22m\u001b[1;96m█\u001b[39m\u001b[36m▒\u001b[39m\u001b[2m·\u001b[22m\u001b[36m▒\u001b[39m\u001b[1;96m█\u001b[39m\u001b[2m·\u001b[22m\u001b[1;36m▓\u001b[39m\u001b[2;36m░\u001b[39m\u001b[2m·\u001b[22m\u001b[2;36m░\u001b[39m\u001b[1;36m▓\u001b[39m\u001b[2m·\u001b[22m\u001b[1;36m▓\u001b[39m\u001b[2;36m░\u001b[39m\u001b[2m·\u001b[22m\u001b[1;96m█\u001b[39m\u001b[36m▒\u001b[39m\u001b[2m·\u001b[22m\u001b[36m▒\u001b[39m\u001b[1;96m█\u001b[39m\u001b[2m·\u001b[22m\u001b[1;96m█\u001b[39m\u001b[36m▒\u001b[39m\u001b[2m·\u001b[22m\u001b[2;36m░\u001b[39m\u001b[1;36m▓\u001b[39m\u001b[2m·\u001b[22m\u001b[1;36m▓\u001b[39m\n\n\u001b[2mTh\u001b[0m \u001b[2m·\u001b[22m\u001b[2;36m░\u001b[39m\u001b[1;36m▓\u001b[39m\u001b[2m·\u001b[22m\u001b[1;36m▓\u001b[39m\u001b[2;36m░\u001b[39m\u001b[2m·\u001b[22m\u001b[2;36m░\u001b[39m\u001b[1;36m▓\u001b[39m\u001b[2m·\u001b[22m\u001b[36m▒\u001b[39m\u001b[1;96m█\u001b[39m\u001b[2m·\u001b[22m\u001b[1;96m█\u001b[39m\u001b[36m▒\u001b[39m\u001b[2m·\u001b[22m\u001b[36m▒\u001b[39m\u001b[1;96m█\u001b[39m\u001b[2m·\u001b[22m\u001b[1;36m▓\u001b[39m\u001b[2;36m░\u001b[39m\u001b[2m·\u001b[22m\u001b[2;36m░\u001b[39m\u001b[1;36m▓\u001b[39m\u001b[2m·\u001b[22m\u001b[1;36m▓\u001b[39m\u001b[2;36m░\u001b[39m\u001b[2m·\u001b[22m\u001b[1;96m█\u001b[39m\u001b[36m▒\u001b[39m\u001b[2m·\u001b[22m\u001b[36m▒\u001b[39m\u001b[1;96m█\u001b[39m\u001b[2m·\u001b[22m\u001b[1;96m█\u001b[39m \n\n\u001b[2mFr\u001b[0m \u001b[36m▒\u001b[39m\u001b[1;96m█\u001b[39m\u001b[2m·\u001b[22m\u001b[1;96m█\u001b[39m\u001b[2;36m░\u001b[39m\u001b[2m·\u001b[22m\u001b[2;36m░\u001b[39m\u001b[1;36m▓\u001b[39m\u001b[2m·\u001b[22m\u001b[1;36m▓\u001b[39m\u001b[2;36m░\u001b[39m\u001b[2m·\u001b[22m\u001b[2;36m░\u001b[39m\u001b[1;36m▓\u001b[39m\u001b[2m·\u001b[22m\u001b[36m▒\u001b[39m\u001b[1;96m█\u001b[39m\u001b[2m·\u001b[22m\u001b[1;96m█\u001b[39m\u001b[36m▒\u001b[39m\u001b[2m·\u001b[22m\u001b[36m▒\u001b[39m\u001b[1;96m█\u001b[39m\u001b[2m·\u001b[22m\u001b[1;36m▓\u001b[39m\u001b[2;36m░\u001b[39m\u001b[2m·\u001b[22m\u001b[2;36m░\u001b[39m\u001b[1;36m▓\u001b[39m\u001b[2m·\u001b[22m\u001b[1;36m▓\u001b[39m\u001b[2;36m░\u001b[39m\u001b[2m·\u001b[22m\u001b[1;96m█\u001b[39m\u001b[36m▒\u001b[39m \n\n\u001b[2mSa\u001b[0m \u001b[1;96m█\u001b[39m\u001b[2m·\u001b[22m\u001b[1;96m█\u001b[39m\u001b[36m▒\u001b[39m\u001b[2m·\u001b[22m\u001b[36m▒\u001b[39m\u001b[1;96m█\u001b[39m\u001b[2m·\u001b[22m\u001b[1;96m█\u001b[39m\u001b[36m▒\u001b[39m\u001b[2m·\u001b[22m\u001b[2;36m░\u001b[39m\u001b[1;36m▓\u001b[39m\u001b[2m·\u001b[22m\u001b[1;36m▓\u001b[39m\u001b[2;36m░\u001b[39m\u001b[2m·\u001b[22m\u001b[2;36m░\u001b[39m\u001b[1;36m▓\u001b[39m\u001b[2m·\u001b[22m\u001b[36m▒\u001b[39m\u001b[1;96m█\u001b[39m\u001b[2m·\u001b[22m\u001b[1;96m█\u001b[39m\u001b[36m▒\u001b[39m\u001b[2m·\u001b[22m\u001b[36m▒\u001b[39m\u001b[1;96m█\u001b[39m\u001b[2m·\u001b[22m\u001b[1;36m▓\u001b[39m\u001b[2;36m░\u001b[39m\u001b[2m·\u001b[22m\u001b[2;36m░\u001b[39m\u001b[1;36m▓\u001b[39m\u001b[2m·\u001b[22m \n\n\u001b[2mSu\u001b[0m \u001b[2m·\u001b[22m\u001b[2;36m░\u001b[39m\u001b[1;36m▓\u001b[39m\u001b[2m·\u001b[22m\u001b[1;36m▓\u001b[39m\u001b[1;96m█\u001b[39m\u001b[2m·\u001b[22m\u001b[1;96m█\u001b[39m\u001b[36m▒\u001b[39m\u001b[2m·\u001b[22m\u001b[36m▒\u001b[39m\u001b[1;96m█\u001b[39m\u001b[2m·\u001b[22m\u001b[1;96m█\u001b[39m\u001b[36m▒\u001b[39m\u001b[2m·\u001b[22m\u001b[2;36m░\u001b[39m\u001b[1;36m▓\u001b[39m\u001b[2m·\u001b[22m\u001b[1;36m▓\u001b[39m\u001b[2;36m░\u001b[39m\u001b[2m·\u001b[22m\u001b[2;36m░\u001b[39m\u001b[1;36m▓\u001b[39m\u001b[2m·\u001b[22m\u001b[36m▒\u001b[39m\u001b[1;96m█\u001b[39m\u001b[2m·\u001b[22m\u001b[1;96m█\u001b[39m\u001b[36m▒\u001b[39m\u001b[2m·\u001b[22m\u001b[36m▒\u001b[39m\u001b[1;96m█\u001b[39m\u001b[2m·\u001b[22m\u001b[1;96m█\u001b[39m \n\n \u001b[2mless\u001b[0m \u001b[2m·\u001b[22m\u001b[2;36m░\u001b[39m\u001b[36m▒\u001b[39m\u001b[1;36m▓\u001b[39m\u001b[1;96m█\u001b[39m \u001b[2mmore\u001b[0m\n\n\u001b[1;36m1.2k\u001b[0m sessions · \u001b[1;36m56\u001b[0m subagents\n\u001b[1;36m9.9k\u001b[0m prompts · \u001b[1;36m54.3k\u001b[0m steps · \u001b[1;36m1b\u001b[0m tokens\n\u001b[1;36m98.5%\u001b[0m tool success · \u001b[1;36m243\u001b[0m active days · best streak \u001b[1;36m17\u001b[0m days\n\n\u001b[2mopencode.ai\u001b[0m"}, +{"stats":"full","name":"summary tiny","options":{"label":"last 365 days","scope":"all projects","models":false,"tools":false,"cost":false,"limit":5,"width":3,"color":false},"output":"opencode stats · last 365 days · all projects\n\nactivity · last 1 weeks\n Nov\nMo ▒\n\nTu ·\n\nWe ▓\n\nTh \n\nFr \n\nSa \n\nSu \n\n less ·░▒▓█ more\n\n1.2k sessions · 56 subagents\n9.9k prompts · 54.3k steps · 1b tokens\n98.5% tool success · 243 active days · best streak 17 days\n\nopencode.ai"}, +{"stats":"full","name":"summary tiny","options":{"label":"last 365 days","scope":"all projects","models":false,"tools":false,"cost":false,"limit":5,"width":3,"color":true},"output":"\u001b[1;36mopencode stats\u001b[0m \u001b[2m· last 365 days · all projects\u001b[0m\n\n\u001b[1;36mactivity · last 1 weeks\u001b[0m\n \u001b[2mNov\u001b[0m\n\u001b[2mMo\u001b[0m \u001b[36m▒\u001b[39m\n\n\u001b[2mTu\u001b[0m \u001b[2m·\u001b[22m\n\n\u001b[2mWe\u001b[0m \u001b[1;36m▓\u001b[39m\n\n\u001b[2mTh\u001b[0m \n\n\u001b[2mFr\u001b[0m \n\n\u001b[2mSa\u001b[0m \n\n\u001b[2mSu\u001b[0m \n\n \u001b[2mless\u001b[0m \u001b[2m·\u001b[22m\u001b[2;36m░\u001b[39m\u001b[36m▒\u001b[39m\u001b[1;36m▓\u001b[39m\u001b[1;96m█\u001b[39m \u001b[2mmore\u001b[0m\n\n\u001b[1;36m1.2k\u001b[0m sessions · \u001b[1;36m56\u001b[0m subagents\n\u001b[1;36m9.9k\u001b[0m prompts · \u001b[1;36m54.3k\u001b[0m steps · \u001b[1;36m1b\u001b[0m tokens\n\u001b[1;36m98.5%\u001b[0m tool success · \u001b[1;36m243\u001b[0m active days · best streak \u001b[1;36m17\u001b[0m days\n\n\u001b[2mopencode.ai\u001b[0m"}, +{"stats":"full","name":"models","options":{"label":"last 365 days","scope":"all projects","models":true,"tools":false,"cost":false,"limit":5,"width":80,"color":false},"output":"last 365 days · all projects\n\nMODELS\nmodel tokens steps cost\nanthropic/claude-opus-5-5 515m 40k $900.13\nopenai/gpt-5#high 1k 10k $0.01\nopenrouter/some/really-long-model… 2b 999 $334.44\nlocal/tiny 0 1 $0.00"}, +{"stats":"full","name":"models","options":{"label":"last 365 days","scope":"all projects","models":true,"tools":false,"cost":false,"limit":5,"width":80,"color":true},"output":"\u001b[2mlast 365 days · all projects\u001b[0m\n\nMODELS\nmodel tokens steps cost\nanthropic/claude-opus-5-5 515m 40k $900.13\nopenai/gpt-5#high 1k 10k $0.01\nopenrouter/some/really-long-model… 2b 999 $334.44\nlocal/tiny 0 1 $0.00"}, +{"stats":"full","name":"models narrow","options":{"label":"last 365 days","scope":"all projects","models":true,"tools":false,"cost":false,"limit":2,"width":60,"color":false},"output":"last 365 days · all projects\n\nMODELS\nanthropic/claude-opus-5-5\n 515m tokens · 40k steps · $900.13\nopenai/gpt-5#high\n 1k tokens · 10k steps · $0.01\n\n+2 more models"}, +{"stats":"full","name":"models narrow","options":{"label":"last 365 days","scope":"all projects","models":true,"tools":false,"cost":false,"limit":2,"width":60,"color":true},"output":"\u001b[2mlast 365 days · all projects\u001b[0m\n\nMODELS\nanthropic/claude-opus-5-5\n 515m tokens · 40k steps · $900.13\nopenai/gpt-5#high\n 1k tokens · 10k steps · $0.01\n\n+2 more models"}, +{"stats":"full","name":"tools","options":{"label":"last 365 days","scope":"all projects","models":false,"tools":true,"cost":false,"limit":3,"width":68,"color":false},"output":"last 365 days · all projects\n\nTOOL RELIABILITY\ntool calls error p50\nread 2k 0.50% 12ms\nbash 1.5k 5.08% 1.5s\nedit 800 0.00% 1000ms\n\n5k finished calls · 25 unfinished\n+3 more tools"}, +{"stats":"full","name":"tools","options":{"label":"last 365 days","scope":"all projects","models":false,"tools":true,"cost":false,"limit":3,"width":68,"color":true},"output":"\u001b[2mlast 365 days · all projects\u001b[0m\n\nTOOL RELIABILITY\ntool calls error p50\nread 2k 0.50% 12ms\nbash 1.5k 5.08% 1.5s\nedit 800 0.00% 1000ms\n\n5k finished calls · 25 unfinished\n+3 more tools"}, +{"stats":"full","name":"tools narrow","options":{"label":"last 365 days","scope":"all projects","models":false,"tools":true,"cost":false,"limit":5,"width":67,"color":false},"output":"last 365 days · all projects\n\nTOOL RELIABILITY\nread\n 2k calls · 0.50% error · 12ms p50\nbash\n 1.5k calls · 5.08% error · 1.5s p50\nedit\n 800 calls · 0.00% error · 1000ms p50\na-very-long-tool-name-from-some-mcp-server_with_suffix\n 400 calls · 0.25% error · 120s p50\npending\n 300 calls · - error · - p50\n\n5k finished calls · 25 unfinished\n+1 more tool"}, +{"stats":"full","name":"tools narrow","options":{"label":"last 365 days","scope":"all projects","models":false,"tools":true,"cost":false,"limit":5,"width":67,"color":true},"output":"\u001b[2mlast 365 days · all projects\u001b[0m\n\nTOOL RELIABILITY\nread\n 2k calls · 0.50% error · 12ms p50\nbash\n 1.5k calls · 5.08% error · 1.5s p50\nedit\n 800 calls · 0.00% error · 1000ms p50\na-very-long-tool-name-from-some-mcp-server_with_suffix\n 400 calls · 0.25% error · 120s p50\npending\n 300 calls · - error · - p50\n\n5k finished calls · 25 unfinished\n+1 more tool"}, +{"stats":"full","name":"tools one more","options":{"label":"last 365 days","scope":"all projects","models":false,"tools":true,"cost":false,"limit":5,"width":30,"color":false},"output":"last 365 days · all projects\n\nTOOL RELIABILITY\nread\n 2k calls · 0.50% error · 12ms p50\nbash\n 1.5k calls · 5.08% error · 1.5s p50\nedit\n 800 calls · 0.00% error · 1000ms p50\na-very-long-tool-name-from-so…\n 400 calls · 0.25% error · 120s p50\npending\n 300 calls · - error · - p50\n\n5k finished calls · 25 unfinished\n+1 more tool"}, +{"stats":"full","name":"tools one more","options":{"label":"last 365 days","scope":"all projects","models":false,"tools":true,"cost":false,"limit":5,"width":30,"color":true},"output":"\u001b[2mlast 365 days · all projects\u001b[0m\n\nTOOL RELIABILITY\nread\n 2k calls · 0.50% error · 12ms p50\nbash\n 1.5k calls · 5.08% error · 1.5s p50\nedit\n 800 calls · 0.00% error · 1000ms p50\na-very-long-tool-name-from-so…\n 400 calls · 0.25% error · 120s p50\npending\n 300 calls · - error · - p50\n\n5k finished calls · 25 unfinished\n+1 more tool"}, +{"stats":"full","name":"cost","options":{"label":"last 365 days","scope":"all projects","models":false,"tools":false,"cost":true,"limit":5,"width":80,"color":false},"output":"last 365 days · all projects\n\nCOST & TOKENS\n cost $1234.57\n input 12.3m\n output 2.3m\n reasoning 345.7k\n cache read 987.7m\n cache write 12.3m\n cached input 97.6%"}, +{"stats":"full","name":"cost","options":{"label":"last 365 days","scope":"all projects","models":false,"tools":false,"cost":true,"limit":5,"width":80,"color":true},"output":"\u001b[2mlast 365 days · all projects\u001b[0m\n\nCOST & TOKENS\n cost $1234.57\n input 12.3m\n output 2.3m\n reasoning 345.7k\n cache read 987.7m\n cache write 12.3m\n cached input 97.6%"}, +{"stats":"full","name":"full","options":{"label":"2026 so far","scope":"current project","models":true,"tools":true,"cost":true,"limit":5,"width":100,"color":false},"output":"2026 so far · current project\n\nCOST & TOKENS\n cost $1234.57\n input 12.3m\n output 2.3m\n reasoning 345.7k\n cache read 987.7m\n cache write 12.3m\n cached input 97.6%\n\nMODELS\nmodel tokens steps cost\nanthropic/claude-opus-5-5 515m 40k $900.13\nopenai/gpt-5#high 1k 10k $0.01\nopenrouter/some/really-long-model… 2b 999 $334.44\nlocal/tiny 0 1 $0.00\n\nTOOL RELIABILITY\ntool calls error p50\nread 2k 0.50% 12ms\nbash 1.5k 5.08% 1.5s\nedit 800 0.00% 1000ms\na-very-long-tool-name-from-some-m… 400 0.25% 120s\npending 300 - -\n\n5k finished calls · 25 unfinished\n+1 more tool"}, +{"stats":"full","name":"full","options":{"label":"2026 so far","scope":"current project","models":true,"tools":true,"cost":true,"limit":5,"width":100,"color":true},"output":"\u001b[2m2026 so far · current project\u001b[0m\n\nCOST & TOKENS\n cost $1234.57\n input 12.3m\n output 2.3m\n reasoning 345.7k\n cache read 987.7m\n cache write 12.3m\n cached input 97.6%\n\nMODELS\nmodel tokens steps cost\nanthropic/claude-opus-5-5 515m 40k $900.13\nopenai/gpt-5#high 1k 10k $0.01\nopenrouter/some/really-long-model… 2b 999 $334.44\nlocal/tiny 0 1 $0.00\n\nTOOL RELIABILITY\ntool calls error p50\nread 2k 0.50% 12ms\nbash 1.5k 5.08% 1.5s\nedit 800 0.00% 1000ms\na-very-long-tool-name-from-some-m… 400 0.25% 120s\npending 300 - -\n\n5k finished calls · 25 unfinished\n+1 more tool"}, +{"stats":"full","name":"full narrow","options":{"label":"last 365 days","scope":"all projects","models":true,"tools":true,"cost":true,"limit":1,"width":50,"color":false},"output":"last 365 days · all projects\n\nCOST & TOKENS\n cost $1234.57\n input 12.3m\n output 2.3m\n reasoning 345.7k\n cache read 987.7m\n cache write 12.3m\n cached input 97.6%\n\nMODELS\nanthropic/claude-opus-5-5\n 515m tokens · 40k steps · $900.13\n\n+3 more models\n\nTOOL RELIABILITY\nread\n 2k calls · 0.50% error · 12ms p50\n\n5k finished calls · 25 unfinished\n+5 more tools"}, +{"stats":"full","name":"full narrow","options":{"label":"last 365 days","scope":"all projects","models":true,"tools":true,"cost":true,"limit":1,"width":50,"color":true},"output":"\u001b[2mlast 365 days · all projects\u001b[0m\n\nCOST & TOKENS\n cost $1234.57\n input 12.3m\n output 2.3m\n reasoning 345.7k\n cache read 987.7m\n cache write 12.3m\n cached input 97.6%\n\nMODELS\nanthropic/claude-opus-5-5\n 515m tokens · 40k steps · $900.13\n\n+3 more models\n\nTOOL RELIABILITY\nread\n 2k calls · 0.50% error · 12ms p50\n\n5k finished calls · 25 unfinished\n+5 more tools"}, +{"stats":"singular","name":"summary","options":{"label":"last 365 days","scope":"all projects","models":false,"tools":false,"cost":false,"limit":5,"width":80,"color":false},"output":"opencode stats · last 365 days · all projects\n\nactivity\n Nov\nMo \n\nTu \n\nWe █\n\nTh \n\nFr \n\nSa \n\nSu \n\n less ·░▒▓█ more\n\n1 session\n1 prompt · 1 step · 1 token\n100.0% tool success · 1 active day · best streak 1 day\n\nopencode.ai"}, +{"stats":"singular","name":"summary","options":{"label":"last 365 days","scope":"all projects","models":false,"tools":false,"cost":false,"limit":5,"width":80,"color":true},"output":"\u001b[1;36mopencode stats\u001b[0m \u001b[2m· last 365 days · all projects\u001b[0m\n\n\u001b[1;36mactivity\u001b[0m\n \u001b[2mNov\u001b[0m\n\u001b[2mMo\u001b[0m \n\n\u001b[2mTu\u001b[0m \n\n\u001b[2mWe\u001b[0m \u001b[1;96m█\u001b[39m\n\n\u001b[2mTh\u001b[0m \n\n\u001b[2mFr\u001b[0m \n\n\u001b[2mSa\u001b[0m \n\n\u001b[2mSu\u001b[0m \n\n \u001b[2mless\u001b[0m \u001b[2m·\u001b[22m\u001b[2;36m░\u001b[39m\u001b[36m▒\u001b[39m\u001b[1;36m▓\u001b[39m\u001b[1;96m█\u001b[39m \u001b[2mmore\u001b[0m\n\n\u001b[1;36m1\u001b[0m session\n\u001b[1;36m1\u001b[0m prompt · \u001b[1;36m1\u001b[0m step · \u001b[1;36m1\u001b[0m token\n\u001b[1;36m100.0%\u001b[0m tool success · \u001b[1;36m1\u001b[0m active day · best streak \u001b[1;36m1\u001b[0m day\n\n\u001b[2mopencode.ai\u001b[0m"}, +{"stats":"singular","name":"full","options":{"label":"2026 so far","scope":"current project","models":true,"tools":true,"cost":true,"limit":5,"width":100,"color":false},"output":"2026 so far · current project\n\nCOST & TOKENS\n cost $1234.57\n input 1\n output 0\n reasoning 0\n cache read 0\n cache write 0\n cached input 0.00%\n\nMODELS\n no model usage\n\nTOOL RELIABILITY\n tool details unavailable"}, +{"stats":"singular","name":"full","options":{"label":"2026 so far","scope":"current project","models":true,"tools":true,"cost":true,"limit":5,"width":100,"color":true},"output":"\u001b[2m2026 so far · current project\u001b[0m\n\nCOST & TOKENS\n cost $1234.57\n input 1\n output 0\n reasoning 0\n cache read 0\n cache write 0\n cached input 0.00%\n\nMODELS\n no model usage\n\nTOOL RELIABILITY\n tool details unavailable"}, +{"stats":"singular","name":"full narrow","options":{"label":"last 365 days","scope":"all projects","models":true,"tools":true,"cost":true,"limit":1,"width":50,"color":false},"output":"last 365 days · all projects\n\nCOST & TOKENS\n cost $1234.57\n input 1\n output 0\n reasoning 0\n cache read 0\n cache write 0\n cached input 0.00%\n\nMODELS\n no model usage\n\nTOOL RELIABILITY\n tool details unavailable"}, +{"stats":"singular","name":"full narrow","options":{"label":"last 365 days","scope":"all projects","models":true,"tools":true,"cost":true,"limit":1,"width":50,"color":true},"output":"\u001b[2mlast 365 days · all projects\u001b[0m\n\nCOST & TOKENS\n cost $1234.57\n input 1\n output 0\n reasoning 0\n cache read 0\n cache write 0\n cached input 0.00%\n\nMODELS\n no model usage\n\nTOOL RELIABILITY\n tool details unavailable"}, +{"stats":"no tool calls","name":"summary","options":{"label":"last 365 days","scope":"all projects","models":false,"tools":false,"cost":false,"limit":5,"width":80,"color":false},"output":"opencode stats · last 365 days · all projects\n\nactivity\n Nov\nMo \n\nTu \n\nWe █\n\nTh \n\nFr \n\nSa \n\nSu \n\n less ·░▒▓█ more\n\n2 sessions\n1 prompt · 1 step · 1 token\nno tool calls · 1 active day · best streak 1 day\n\nopencode.ai"}, +{"stats":"no tool calls","name":"summary","options":{"label":"last 365 days","scope":"all projects","models":false,"tools":false,"cost":false,"limit":5,"width":80,"color":true},"output":"\u001b[1;36mopencode stats\u001b[0m \u001b[2m· last 365 days · all projects\u001b[0m\n\n\u001b[1;36mactivity\u001b[0m\n \u001b[2mNov\u001b[0m\n\u001b[2mMo\u001b[0m \n\n\u001b[2mTu\u001b[0m \n\n\u001b[2mWe\u001b[0m \u001b[1;96m█\u001b[39m\n\n\u001b[2mTh\u001b[0m \n\n\u001b[2mFr\u001b[0m \n\n\u001b[2mSa\u001b[0m \n\n\u001b[2mSu\u001b[0m \n\n \u001b[2mless\u001b[0m \u001b[2m·\u001b[22m\u001b[2;36m░\u001b[39m\u001b[36m▒\u001b[39m\u001b[1;36m▓\u001b[39m\u001b[1;96m█\u001b[39m \u001b[2mmore\u001b[0m\n\n\u001b[1;36m2\u001b[0m sessions\n\u001b[1;36m1\u001b[0m prompt · \u001b[1;36m1\u001b[0m step · \u001b[1;36m1\u001b[0m token\nno tool calls · \u001b[1;36m1\u001b[0m active day · best streak \u001b[1;36m1\u001b[0m day\n\n\u001b[2mopencode.ai\u001b[0m"}, +{"stats":"no tool calls","name":"full","options":{"label":"2026 so far","scope":"current project","models":true,"tools":true,"cost":true,"limit":5,"width":100,"color":false},"output":"2026 so far · current project\n\nCOST & TOKENS\n cost $1234.57\n input 1\n output 0\n reasoning 0\n cache read 0\n cache write 0\n cached input 0.00%\n\nMODELS\n no model usage\n\nTOOL RELIABILITY\n tool details unavailable"}, +{"stats":"no tool calls","name":"full","options":{"label":"2026 so far","scope":"current project","models":true,"tools":true,"cost":true,"limit":5,"width":100,"color":true},"output":"\u001b[2m2026 so far · current project\u001b[0m\n\nCOST & TOKENS\n cost $1234.57\n input 1\n output 0\n reasoning 0\n cache read 0\n cache write 0\n cached input 0.00%\n\nMODELS\n no model usage\n\nTOOL RELIABILITY\n tool details unavailable"}, +{"stats":"no tool calls","name":"full narrow","options":{"label":"last 365 days","scope":"all projects","models":true,"tools":true,"cost":true,"limit":1,"width":50,"color":false},"output":"last 365 days · all projects\n\nCOST & TOKENS\n cost $1234.57\n input 1\n output 0\n reasoning 0\n cache read 0\n cache write 0\n cached input 0.00%\n\nMODELS\n no model usage\n\nTOOL RELIABILITY\n tool details unavailable"}, +{"stats":"no tool calls","name":"full narrow","options":{"label":"last 365 days","scope":"all projects","models":true,"tools":true,"cost":true,"limit":1,"width":50,"color":true},"output":"\u001b[2mlast 365 days · all projects\u001b[0m\n\nCOST & TOKENS\n cost $1234.57\n input 1\n output 0\n reasoning 0\n cache read 0\n cache write 0\n cached input 0.00%\n\nMODELS\n no model usage\n\nTOOL RELIABILITY\n tool details unavailable"}, +{"stats":"no tool stats","name":"summary","options":{"label":"last 365 days","scope":"all projects","models":false,"tools":false,"cost":false,"limit":5,"width":80,"color":false},"output":"opencode stats · last 365 days · all projects\n\nactivity\n Nov\nMo \n\nTu \n\nWe █\n\nTh \n\nFr \n\nSa \n\nSu \n\n less ·░▒▓█ more\n\n3 sessions\n1 prompt · 1 step · 1 token\ntool stats unavailable · 1 active day · best streak 1 day\n\nopencode.ai"}, +{"stats":"no tool stats","name":"summary","options":{"label":"last 365 days","scope":"all projects","models":false,"tools":false,"cost":false,"limit":5,"width":80,"color":true},"output":"\u001b[1;36mopencode stats\u001b[0m \u001b[2m· last 365 days · all projects\u001b[0m\n\n\u001b[1;36mactivity\u001b[0m\n \u001b[2mNov\u001b[0m\n\u001b[2mMo\u001b[0m \n\n\u001b[2mTu\u001b[0m \n\n\u001b[2mWe\u001b[0m \u001b[1;96m█\u001b[39m\n\n\u001b[2mTh\u001b[0m \n\n\u001b[2mFr\u001b[0m \n\n\u001b[2mSa\u001b[0m \n\n\u001b[2mSu\u001b[0m \n\n \u001b[2mless\u001b[0m \u001b[2m·\u001b[22m\u001b[2;36m░\u001b[39m\u001b[36m▒\u001b[39m\u001b[1;36m▓\u001b[39m\u001b[1;96m█\u001b[39m \u001b[2mmore\u001b[0m\n\n\u001b[1;36m3\u001b[0m sessions\n\u001b[1;36m1\u001b[0m prompt · \u001b[1;36m1\u001b[0m step · \u001b[1;36m1\u001b[0m token\ntool stats unavailable · \u001b[1;36m1\u001b[0m active day · best streak \u001b[1;36m1\u001b[0m day\n\n\u001b[2mopencode.ai\u001b[0m"}, +{"stats":"no tool stats","name":"full","options":{"label":"2026 so far","scope":"current project","models":true,"tools":true,"cost":true,"limit":5,"width":100,"color":false},"output":"2026 so far · current project\n\nCOST & TOKENS\n cost $1234.57\n input 1\n output 0\n reasoning 0\n cache read 0\n cache write 0\n cached input 0.00%\n\nMODELS\n no model usage\n\nTOOL RELIABILITY\n tool details unavailable"}, +{"stats":"no tool stats","name":"full","options":{"label":"2026 so far","scope":"current project","models":true,"tools":true,"cost":true,"limit":5,"width":100,"color":true},"output":"\u001b[2m2026 so far · current project\u001b[0m\n\nCOST & TOKENS\n cost $1234.57\n input 1\n output 0\n reasoning 0\n cache read 0\n cache write 0\n cached input 0.00%\n\nMODELS\n no model usage\n\nTOOL RELIABILITY\n tool details unavailable"}, +{"stats":"no tool stats","name":"full narrow","options":{"label":"last 365 days","scope":"all projects","models":true,"tools":true,"cost":true,"limit":1,"width":50,"color":false},"output":"last 365 days · all projects\n\nCOST & TOKENS\n cost $1234.57\n input 1\n output 0\n reasoning 0\n cache read 0\n cache write 0\n cached input 0.00%\n\nMODELS\n no model usage\n\nTOOL RELIABILITY\n tool details unavailable"}, +{"stats":"no tool stats","name":"full narrow","options":{"label":"last 365 days","scope":"all projects","models":true,"tools":true,"cost":true,"limit":1,"width":50,"color":true},"output":"\u001b[2mlast 365 days · all projects\u001b[0m\n\nCOST & TOKENS\n cost $1234.57\n input 1\n output 0\n reasoning 0\n cache read 0\n cache write 0\n cached input 0.00%\n\nMODELS\n no model usage\n\nTOOL RELIABILITY\n tool details unavailable"}, +{"stats":"no details","name":"summary","options":{"label":"last 365 days","scope":"all projects","models":false,"tools":false,"cost":false,"limit":5,"width":80,"color":false},"output":"opencode stats · last 365 days · all projects\n\nactivity\n Nov\nMo \n\nTu \n\nWe █\n\nTh \n\nFr \n\nSa \n\nSu \n\n less ·░▒▓█ more\n\n1 session\n1 prompt · 1 step · 1 token\nno tool calls · 1 active day · best streak 1 day\n\nopencode.ai"}, +{"stats":"no details","name":"summary","options":{"label":"last 365 days","scope":"all projects","models":false,"tools":false,"cost":false,"limit":5,"width":80,"color":true},"output":"\u001b[1;36mopencode stats\u001b[0m \u001b[2m· last 365 days · all projects\u001b[0m\n\n\u001b[1;36mactivity\u001b[0m\n \u001b[2mNov\u001b[0m\n\u001b[2mMo\u001b[0m \n\n\u001b[2mTu\u001b[0m \n\n\u001b[2mWe\u001b[0m \u001b[1;96m█\u001b[39m\n\n\u001b[2mTh\u001b[0m \n\n\u001b[2mFr\u001b[0m \n\n\u001b[2mSa\u001b[0m \n\n\u001b[2mSu\u001b[0m \n\n \u001b[2mless\u001b[0m \u001b[2m·\u001b[22m\u001b[2;36m░\u001b[39m\u001b[36m▒\u001b[39m\u001b[1;36m▓\u001b[39m\u001b[1;96m█\u001b[39m \u001b[2mmore\u001b[0m\n\n\u001b[1;36m1\u001b[0m session\n\u001b[1;36m1\u001b[0m prompt · \u001b[1;36m1\u001b[0m step · \u001b[1;36m1\u001b[0m token\nno tool calls · \u001b[1;36m1\u001b[0m active day · best streak \u001b[1;36m1\u001b[0m day\n\n\u001b[2mopencode.ai\u001b[0m"}, +{"stats":"no details","name":"full","options":{"label":"2026 so far","scope":"current project","models":true,"tools":true,"cost":true,"limit":5,"width":100,"color":false},"output":"2026 so far · current project\n\nCOST & TOKENS\n cost $1234.57\n input 1\n output 0\n reasoning 0\n cache read 0\n cache write 0\n cached input 0.00%\n\nMODELS\n no model usage\n\nTOOL RELIABILITY\n no tool calls"}, +{"stats":"no details","name":"full","options":{"label":"2026 so far","scope":"current project","models":true,"tools":true,"cost":true,"limit":5,"width":100,"color":true},"output":"\u001b[2m2026 so far · current project\u001b[0m\n\nCOST & TOKENS\n cost $1234.57\n input 1\n output 0\n reasoning 0\n cache read 0\n cache write 0\n cached input 0.00%\n\nMODELS\n no model usage\n\nTOOL RELIABILITY\n no tool calls"}, +{"stats":"no details","name":"full narrow","options":{"label":"last 365 days","scope":"all projects","models":true,"tools":true,"cost":true,"limit":1,"width":50,"color":false},"output":"last 365 days · all projects\n\nCOST & TOKENS\n cost $1234.57\n input 1\n output 0\n reasoning 0\n cache read 0\n cache write 0\n cached input 0.00%\n\nMODELS\n no model usage\n\nTOOL RELIABILITY\n no tool calls"}, +{"stats":"no details","name":"full narrow","options":{"label":"last 365 days","scope":"all projects","models":true,"tools":true,"cost":true,"limit":1,"width":50,"color":true},"output":"\u001b[2mlast 365 days · all projects\u001b[0m\n\nCOST & TOKENS\n cost $1234.57\n input 1\n output 0\n reasoning 0\n cache read 0\n cache write 0\n cached input 0.00%\n\nMODELS\n no model usage\n\nTOOL RELIABILITY\n no tool calls"}, +{"stats":"empty","name":"summary","options":{"label":"last 365 days","scope":"all projects","models":false,"tools":false,"cost":false,"limit":5,"width":80,"color":false},"output":"opencode stats · last 365 days · all projects\n\nno activity in this range\n\nopencode.ai"}, +{"stats":"empty","name":"summary","options":{"label":"last 365 days","scope":"all projects","models":false,"tools":false,"cost":false,"limit":5,"width":80,"color":true},"output":"\u001b[1;36mopencode stats\u001b[0m \u001b[2m· last 365 days · all projects\u001b[0m\n\n\u001b[2mno activity in this range\u001b[0m\n\n\u001b[2mopencode.ai\u001b[0m"}, +{"stats":"empty","name":"full","options":{"label":"2026 so far","scope":"current project","models":true,"tools":true,"cost":true,"limit":5,"width":100,"color":false},"output":"2026 so far · current project\n\nCOST & TOKENS\n cost $0.00\n input 0\n output 0\n reasoning 0\n cache read 0\n cache write 0\n cached input 0.00%\n\nMODELS\n no model usage\n\nTOOL RELIABILITY\n tool details unavailable"}, +{"stats":"empty","name":"full","options":{"label":"2026 so far","scope":"current project","models":true,"tools":true,"cost":true,"limit":5,"width":100,"color":true},"output":"\u001b[2m2026 so far · current project\u001b[0m\n\nCOST & TOKENS\n cost $0.00\n input 0\n output 0\n reasoning 0\n cache read 0\n cache write 0\n cached input 0.00%\n\nMODELS\n no model usage\n\nTOOL RELIABILITY\n tool details unavailable"}, +{"stats":"empty","name":"full narrow","options":{"label":"last 365 days","scope":"all projects","models":true,"tools":true,"cost":true,"limit":1,"width":50,"color":false},"output":"last 365 days · all projects\n\nCOST & TOKENS\n cost $0.00\n input 0\n output 0\n reasoning 0\n cache read 0\n cache write 0\n cached input 0.00%\n\nMODELS\n no model usage\n\nTOOL RELIABILITY\n tool details unavailable"}, +{"stats":"empty","name":"full narrow","options":{"label":"last 365 days","scope":"all projects","models":true,"tools":true,"cost":true,"limit":1,"width":50,"color":true},"output":"\u001b[2mlast 365 days · all projects\u001b[0m\n\nCOST & TOKENS\n cost $0.00\n input 0\n output 0\n reasoning 0\n cache read 0\n cache write 0\n cached input 0.00%\n\nMODELS\n no model usage\n\nTOOL RELIABILITY\n tool details unavailable"} +]}, +{"colorfgbg": "15;0", "cases": [ +{"stats":"full","name":"summary","options":{"label":"last 365 days","scope":"all projects","models":false,"tools":false,"cost":false,"limit":5,"width":80,"color":true},"output":"\u001b[1;38;2;250;178;131mopencode stats\u001b[0m \u001b[2m· last 365 days · all projects\u001b[0m\n\n\u001b[1;38;2;250;178;131mactivity\u001b[0m\n \u001b[2mNov Dec Jan Feb Mar Apr May Jun Jul Aug Sep Oct Nov\u001b[0m\n\u001b[2mMo\u001b[0m \u001b[38;2;117;99;87m░\u001b[39m\u001b[2m·\u001b[22m\u001b[38;2;117;99;87m░\u001b[39m\u001b[38;2;206;152;116m▓\u001b[39m\u001b[2m·\u001b[22m\u001b[38;2;206;152;116m▓\u001b[39m\u001b[38;2;117;99;87m░\u001b[39m\u001b[2m·\u001b[22m\u001b[38;2;250;178;131m█\u001b[39m\u001b[38;2;161;125;102m▒\u001b[39m\u001b[2m·\u001b[22m\u001b[38;2;161;125;102m▒\u001b[39m\u001b[38;2;250;178;131m█\u001b[39m\u001b[2m·\u001b[22m\u001b[38;2;250;178;131m█\u001b[39m\u001b[38;2;161;125;102m▒\u001b[39m\u001b[2m·\u001b[22m\u001b[38;2;161;125;102m▒\u001b[39m\u001b[38;2;206;152;116m▓\u001b[39m\u001b[2m·\u001b[22m\u001b[38;2;206;152;116m▓\u001b[39m\u001b[38;2;117;99;87m░\u001b[39m\u001b[2m·\u001b[22m\u001b[38;2;117;99;87m░\u001b[39m\u001b[38;2;206;152;116m▓\u001b[39m\u001b[2m·\u001b[22m\u001b[38;2;206;152;116m▓\u001b[39m\u001b[38;2;117;99;87m░\u001b[39m\u001b[2m·\u001b[22m\u001b[38;2;250;178;131m█\u001b[39m\u001b[38;2;161;125;102m▒\u001b[39m\u001b[2m·\u001b[22m\u001b[38;2;161;125;102m▒\u001b[39m\u001b[38;2;250;178;131m█\u001b[39m\u001b[2m·\u001b[22m\u001b[38;2;250;178;131m█\u001b[39m\u001b[38;2;161;125;102m▒\u001b[39m\u001b[2m·\u001b[22m\u001b[38;2;117;99;87m░\u001b[39m\u001b[38;2;206;152;116m▓\u001b[39m\u001b[2m·\u001b[22m\u001b[38;2;206;152;116m▓\u001b[39m\u001b[38;2;117;99;87m░\u001b[39m\u001b[2m·\u001b[22m\u001b[38;2;117;99;87m░\u001b[39m\u001b[38;2;206;152;116m▓\u001b[39m\u001b[2m·\u001b[22m\u001b[38;2;161;125;102m▒\u001b[39m\u001b[38;2;250;178;131m█\u001b[39m\u001b[2m·\u001b[22m\u001b[38;2;250;178;131m█\u001b[39m\u001b[38;2;161;125;102m▒\u001b[39m\n\n\u001b[2mTu\u001b[0m \u001b[2m·\u001b[22m\u001b[38;2;161;125;102m▒\u001b[39m\u001b[38;2;250;178;131m█\u001b[39m\u001b[2m·\u001b[22m\u001b[38;2;206;152;116m▓\u001b[39m\u001b[38;2;117;99;87m░\u001b[39m\u001b[2m·\u001b[22m\u001b[38;2;117;99;87m░\u001b[39m\u001b[38;2;206;152;116m▓\u001b[39m\u001b[2m·\u001b[22m\u001b[38;2;206;152;116m▓\u001b[39m\u001b[38;2;117;99;87m░\u001b[39m\u001b[2m·\u001b[22m\u001b[38;2;117;99;87m░\u001b[39m\u001b[38;2;161;125;102m▒\u001b[39m\u001b[2m·\u001b[22m\u001b[38;2;161;125;102m▒\u001b[39m\u001b[38;2;250;178;131m█\u001b[39m\u001b[2m·\u001b[22m\u001b[38;2;250;178;131m█\u001b[39m\u001b[38;2;161;125;102m▒\u001b[39m\u001b[2m·\u001b[22m\u001b[38;2;161;125;102m▒\u001b[39m\u001b[38;2;250;178;131m█\u001b[39m\u001b[2m·\u001b[22m\u001b[38;2;206;152;116m▓\u001b[39m\u001b[38;2;117;99;87m░\u001b[39m\u001b[2m·\u001b[22m\u001b[38;2;117;99;87m░\u001b[39m\u001b[38;2;206;152;116m▓\u001b[39m\u001b[2m·\u001b[22m\u001b[38;2;206;152;116m▓\u001b[39m\u001b[38;2;117;99;87m░\u001b[39m\u001b[2m·\u001b[22m\u001b[38;2;250;178;131m█\u001b[39m\u001b[38;2;161;125;102m▒\u001b[39m\u001b[2m·\u001b[22m\u001b[38;2;161;125;102m▒\u001b[39m\u001b[38;2;250;178;131m█\u001b[39m\u001b[2m·\u001b[22m\u001b[38;2;250;178;131m█\u001b[39m\u001b[38;2;161;125;102m▒\u001b[39m\u001b[2m·\u001b[22m\u001b[38;2;117;99;87m░\u001b[39m\u001b[38;2;206;152;116m▓\u001b[39m\u001b[2m·\u001b[22m\u001b[38;2;206;152;116m▓\u001b[39m\u001b[38;2;117;99;87m░\u001b[39m\u001b[2m·\u001b[22m\u001b[38;2;117;99;87m░\u001b[39m\u001b[38;2;206;152;116m▓\u001b[39m\u001b[2m·\u001b[22m\n\n\u001b[2mWe\u001b[0m \u001b[2m·\u001b[22m\u001b[38;2;161;125;102m▒\u001b[39m\u001b[38;2;250;178;131m█\u001b[39m\u001b[2m·\u001b[22m\u001b[38;2;250;178;131m█\u001b[39m\u001b[38;2;161;125;102m▒\u001b[39m\u001b[2m·\u001b[22m\u001b[38;2;161;125;102m▒\u001b[39m\u001b[38;2;250;178;131m█\u001b[39m\u001b[2m·\u001b[22m\u001b[38;2;250;178;131m█\u001b[39m\u001b[38;2;117;99;87m░\u001b[39m\u001b[2m·\u001b[22m\u001b[38;2;117;99;87m░\u001b[39m\u001b[38;2;206;152;116m▓\u001b[39m\u001b[2m·\u001b[22m\u001b[38;2;206;152;116m▓\u001b[39m\u001b[38;2;117;99;87m░\u001b[39m\u001b[2m·\u001b[22m\u001b[38;2;117;99;87m░\u001b[39m\u001b[38;2;161;125;102m▒\u001b[39m\u001b[2m·\u001b[22m\u001b[38;2;161;125;102m▒\u001b[39m\u001b[38;2;250;178;131m█\u001b[39m\u001b[2m·\u001b[22m\u001b[38;2;250;178;131m█\u001b[39m\u001b[38;2;161;125;102m▒\u001b[39m\u001b[2m·\u001b[22m\u001b[38;2;161;125;102m▒\u001b[39m\u001b[38;2;250;178;131m█\u001b[39m\u001b[2m·\u001b[22m\u001b[38;2;206;152;116m▓\u001b[39m\u001b[38;2;117;99;87m░\u001b[39m\u001b[2m·\u001b[22m\u001b[38;2;117;99;87m░\u001b[39m\u001b[38;2;206;152;116m▓\u001b[39m\u001b[2m·\u001b[22m\u001b[38;2;206;152;116m▓\u001b[39m\u001b[38;2;117;99;87m░\u001b[39m\u001b[2m·\u001b[22m\u001b[38;2;250;178;131m█\u001b[39m\u001b[38;2;161;125;102m▒\u001b[39m\u001b[2m·\u001b[22m\u001b[38;2;161;125;102m▒\u001b[39m\u001b[38;2;250;178;131m█\u001b[39m\u001b[2m·\u001b[22m\u001b[38;2;250;178;131m█\u001b[39m\u001b[38;2;161;125;102m▒\u001b[39m\u001b[2m·\u001b[22m\u001b[38;2;117;99;87m░\u001b[39m\u001b[38;2;206;152;116m▓\u001b[39m\u001b[2m·\u001b[22m\u001b[38;2;206;152;116m▓\u001b[39m\n\n\u001b[2mTh\u001b[0m \u001b[38;2;206;152;116m▓\u001b[39m\u001b[38;2;117;99;87m░\u001b[39m\u001b[2m·\u001b[22m\u001b[38;2;117;99;87m░\u001b[39m\u001b[38;2;206;152;116m▓\u001b[39m\u001b[2m·\u001b[22m\u001b[38;2;161;125;102m▒\u001b[39m\u001b[38;2;250;178;131m█\u001b[39m\u001b[2m·\u001b[22m\u001b[38;2;250;178;131m█\u001b[39m\u001b[38;2;161;125;102m▒\u001b[39m\u001b[2m·\u001b[22m\u001b[38;2;161;125;102m▒\u001b[39m\u001b[38;2;250;178;131m█\u001b[39m\u001b[2m·\u001b[22m\u001b[38;2;250;178;131m█\u001b[39m\u001b[38;2;117;99;87m░\u001b[39m\u001b[2m·\u001b[22m\u001b[38;2;117;99;87m░\u001b[39m\u001b[38;2;206;152;116m▓\u001b[39m\u001b[2m·\u001b[22m\u001b[38;2;206;152;116m▓\u001b[39m\u001b[38;2;117;99;87m░\u001b[39m\u001b[2m·\u001b[22m\u001b[38;2;117;99;87m░\u001b[39m\u001b[38;2;206;152;116m▓\u001b[39m\u001b[2m·\u001b[22m\u001b[38;2;161;125;102m▒\u001b[39m\u001b[38;2;250;178;131m█\u001b[39m\u001b[2m·\u001b[22m\u001b[38;2;250;178;131m█\u001b[39m\u001b[38;2;161;125;102m▒\u001b[39m\u001b[2m·\u001b[22m\u001b[38;2;161;125;102m▒\u001b[39m\u001b[38;2;250;178;131m█\u001b[39m\u001b[2m·\u001b[22m\u001b[38;2;206;152;116m▓\u001b[39m\u001b[38;2;117;99;87m░\u001b[39m\u001b[2m·\u001b[22m\u001b[38;2;117;99;87m░\u001b[39m\u001b[38;2;206;152;116m▓\u001b[39m\u001b[2m·\u001b[22m\u001b[38;2;206;152;116m▓\u001b[39m\u001b[38;2;117;99;87m░\u001b[39m\u001b[2m·\u001b[22m\u001b[38;2;250;178;131m█\u001b[39m\u001b[38;2;161;125;102m▒\u001b[39m\u001b[2m·\u001b[22m\u001b[38;2;161;125;102m▒\u001b[39m\u001b[38;2;250;178;131m█\u001b[39m\u001b[2m·\u001b[22m\u001b[38;2;250;178;131m█\u001b[39m \n\n\u001b[2mFr\u001b[0m \u001b[38;2;161;125;102m▒\u001b[39m\u001b[2m·\u001b[22m\u001b[38;2;117;99;87m░\u001b[39m\u001b[38;2;206;152;116m▓\u001b[39m\u001b[2m·\u001b[22m\u001b[38;2;206;152;116m▓\u001b[39m\u001b[38;2;117;99;87m░\u001b[39m\u001b[2m·\u001b[22m\u001b[38;2;117;99;87m░\u001b[39m\u001b[38;2;206;152;116m▓\u001b[39m\u001b[2m·\u001b[22m\u001b[38;2;206;152;116m▓\u001b[39m\u001b[38;2;250;178;131m█\u001b[39m\u001b[2m·\u001b[22m\u001b[38;2;250;178;131m█\u001b[39m\u001b[38;2;161;125;102m▒\u001b[39m\u001b[2m·\u001b[22m\u001b[38;2;161;125;102m▒\u001b[39m\u001b[38;2;250;178;131m█\u001b[39m\u001b[2m·\u001b[22m\u001b[38;2;250;178;131m█\u001b[39m\u001b[38;2;117;99;87m░\u001b[39m\u001b[2m·\u001b[22m\u001b[38;2;117;99;87m░\u001b[39m\u001b[38;2;206;152;116m▓\u001b[39m\u001b[2m·\u001b[22m\u001b[38;2;206;152;116m▓\u001b[39m\u001b[38;2;117;99;87m░\u001b[39m\u001b[2m·\u001b[22m\u001b[38;2;117;99;87m░\u001b[39m\u001b[38;2;206;152;116m▓\u001b[39m\u001b[2m·\u001b[22m\u001b[38;2;161;125;102m▒\u001b[39m\u001b[38;2;250;178;131m█\u001b[39m\u001b[2m·\u001b[22m\u001b[38;2;250;178;131m█\u001b[39m\u001b[38;2;161;125;102m▒\u001b[39m\u001b[2m·\u001b[22m\u001b[38;2;161;125;102m▒\u001b[39m\u001b[38;2;250;178;131m█\u001b[39m\u001b[2m·\u001b[22m\u001b[38;2;206;152;116m▓\u001b[39m\u001b[38;2;117;99;87m░\u001b[39m\u001b[2m·\u001b[22m\u001b[38;2;117;99;87m░\u001b[39m\u001b[38;2;206;152;116m▓\u001b[39m\u001b[2m·\u001b[22m\u001b[38;2;206;152;116m▓\u001b[39m\u001b[38;2;117;99;87m░\u001b[39m\u001b[2m·\u001b[22m\u001b[38;2;250;178;131m█\u001b[39m\u001b[38;2;161;125;102m▒\u001b[39m \n\n\u001b[2mSa\u001b[0m \u001b[2m·\u001b[22m\u001b[38;2;161;125;102m▒\u001b[39m\u001b[38;2;250;178;131m█\u001b[39m\u001b[2m·\u001b[22m\u001b[38;2;250;178;131m█\u001b[39m\u001b[38;2;161;125;102m▒\u001b[39m\u001b[2m·\u001b[22m\u001b[38;2;117;99;87m░\u001b[39m\u001b[38;2;206;152;116m▓\u001b[39m\u001b[2m·\u001b[22m\u001b[38;2;206;152;116m▓\u001b[39m\u001b[38;2;117;99;87m░\u001b[39m\u001b[2m·\u001b[22m\u001b[38;2;117;99;87m░\u001b[39m\u001b[38;2;206;152;116m▓\u001b[39m\u001b[2m·\u001b[22m\u001b[38;2;206;152;116m▓\u001b[39m\u001b[38;2;250;178;131m█\u001b[39m\u001b[2m·\u001b[22m\u001b[38;2;250;178;131m█\u001b[39m\u001b[38;2;161;125;102m▒\u001b[39m\u001b[2m·\u001b[22m\u001b[38;2;161;125;102m▒\u001b[39m\u001b[38;2;250;178;131m█\u001b[39m\u001b[2m·\u001b[22m\u001b[38;2;250;178;131m█\u001b[39m\u001b[38;2;161;125;102m▒\u001b[39m\u001b[2m·\u001b[22m\u001b[38;2;117;99;87m░\u001b[39m\u001b[38;2;206;152;116m▓\u001b[39m\u001b[2m·\u001b[22m\u001b[38;2;206;152;116m▓\u001b[39m\u001b[38;2;117;99;87m░\u001b[39m\u001b[2m·\u001b[22m\u001b[38;2;117;99;87m░\u001b[39m\u001b[38;2;206;152;116m▓\u001b[39m\u001b[2m·\u001b[22m\u001b[38;2;161;125;102m▒\u001b[39m\u001b[38;2;250;178;131m█\u001b[39m\u001b[2m·\u001b[22m\u001b[38;2;250;178;131m█\u001b[39m\u001b[38;2;161;125;102m▒\u001b[39m\u001b[2m·\u001b[22m\u001b[38;2;161;125;102m▒\u001b[39m\u001b[38;2;250;178;131m█\u001b[39m\u001b[2m·\u001b[22m\u001b[38;2;206;152;116m▓\u001b[39m\u001b[38;2;117;99;87m░\u001b[39m\u001b[2m·\u001b[22m\u001b[38;2;117;99;87m░\u001b[39m\u001b[38;2;206;152;116m▓\u001b[39m\u001b[2m·\u001b[22m \n\n\u001b[2mSu\u001b[0m \u001b[38;2;206;152;116m▓\u001b[39m\u001b[38;2;117;99;87m░\u001b[39m\u001b[2m·\u001b[22m\u001b[38;2;250;178;131m█\u001b[39m\u001b[38;2;161;125;102m▒\u001b[39m\u001b[2m·\u001b[22m\u001b[38;2;161;125;102m▒\u001b[39m\u001b[38;2;250;178;131m█\u001b[39m\u001b[2m·\u001b[22m\u001b[38;2;250;178;131m█\u001b[39m\u001b[38;2;161;125;102m▒\u001b[39m\u001b[2m·\u001b[22m\u001b[38;2;161;125;102m▒\u001b[39m\u001b[38;2;206;152;116m▓\u001b[39m\u001b[2m·\u001b[22m\u001b[38;2;206;152;116m▓\u001b[39m\u001b[38;2;117;99;87m░\u001b[39m\u001b[2m·\u001b[22m\u001b[38;2;117;99;87m░\u001b[39m\u001b[38;2;206;152;116m▓\u001b[39m\u001b[2m·\u001b[22m\u001b[38;2;206;152;116m▓\u001b[39m\u001b[38;2;250;178;131m█\u001b[39m\u001b[2m·\u001b[22m\u001b[38;2;250;178;131m█\u001b[39m\u001b[38;2;161;125;102m▒\u001b[39m\u001b[2m·\u001b[22m\u001b[38;2;161;125;102m▒\u001b[39m\u001b[38;2;250;178;131m█\u001b[39m\u001b[2m·\u001b[22m\u001b[38;2;250;178;131m█\u001b[39m\u001b[38;2;161;125;102m▒\u001b[39m\u001b[2m·\u001b[22m\u001b[38;2;117;99;87m░\u001b[39m\u001b[38;2;206;152;116m▓\u001b[39m\u001b[2m·\u001b[22m\u001b[38;2;206;152;116m▓\u001b[39m\u001b[38;2;117;99;87m░\u001b[39m\u001b[2m·\u001b[22m\u001b[38;2;117;99;87m░\u001b[39m\u001b[38;2;206;152;116m▓\u001b[39m\u001b[2m·\u001b[22m\u001b[38;2;161;125;102m▒\u001b[39m\u001b[38;2;250;178;131m█\u001b[39m\u001b[2m·\u001b[22m\u001b[38;2;250;178;131m█\u001b[39m\u001b[38;2;161;125;102m▒\u001b[39m\u001b[2m·\u001b[22m\u001b[38;2;161;125;102m▒\u001b[39m\u001b[38;2;250;178;131m█\u001b[39m\u001b[2m·\u001b[22m\u001b[38;2;250;178;131m█\u001b[39m \n\n \u001b[2mless\u001b[0m \u001b[2m·\u001b[22m\u001b[38;2;117;99;87m░\u001b[39m\u001b[38;2;161;125;102m▒\u001b[39m\u001b[38;2;206;152;116m▓\u001b[39m\u001b[38;2;250;178;131m█\u001b[39m \u001b[2mmore\u001b[0m\n\n\u001b[1;38;2;250;178;131m1.2k\u001b[0m sessions · \u001b[1;38;2;250;178;131m56\u001b[0m subagents\n\u001b[1;38;2;250;178;131m9.9k\u001b[0m prompts · \u001b[1;38;2;250;178;131m54.3k\u001b[0m steps · \u001b[1;38;2;250;178;131m1b\u001b[0m tokens\n\u001b[1;38;2;250;178;131m98.5%\u001b[0m tool success · \u001b[1;38;2;250;178;131m243\u001b[0m active days · best streak \u001b[1;38;2;250;178;131m17\u001b[0m days\n\n\u001b[2mopencode.ai\u001b[0m"}, +{"stats":"full","name":"summary wide","options":{"label":"last 365 days","scope":"all projects","models":false,"tools":false,"cost":false,"limit":5,"width":120,"color":true},"output":"\u001b[1;38;2;250;178;131mopencode stats\u001b[0m \u001b[2m· last 365 days · all projects\u001b[0m\n\n\u001b[1;38;2;250;178;131mactivity\u001b[0m\n \u001b[2mNov Dec Jan Feb Mar Apr May Jun Jul Aug Sep Oct Nov\u001b[0m\n\u001b[2mMo\u001b[0m \u001b[38;2;117;99;87m░\u001b[39m\u001b[2m·\u001b[22m\u001b[38;2;117;99;87m░\u001b[39m\u001b[38;2;206;152;116m▓\u001b[39m\u001b[2m·\u001b[22m\u001b[38;2;206;152;116m▓\u001b[39m\u001b[38;2;117;99;87m░\u001b[39m\u001b[2m·\u001b[22m\u001b[38;2;250;178;131m█\u001b[39m\u001b[38;2;161;125;102m▒\u001b[39m\u001b[2m·\u001b[22m\u001b[38;2;161;125;102m▒\u001b[39m\u001b[38;2;250;178;131m█\u001b[39m\u001b[2m·\u001b[22m\u001b[38;2;250;178;131m█\u001b[39m\u001b[38;2;161;125;102m▒\u001b[39m\u001b[2m·\u001b[22m\u001b[38;2;161;125;102m▒\u001b[39m\u001b[38;2;206;152;116m▓\u001b[39m\u001b[2m·\u001b[22m\u001b[38;2;206;152;116m▓\u001b[39m\u001b[38;2;117;99;87m░\u001b[39m\u001b[2m·\u001b[22m\u001b[38;2;117;99;87m░\u001b[39m\u001b[38;2;206;152;116m▓\u001b[39m\u001b[2m·\u001b[22m\u001b[38;2;206;152;116m▓\u001b[39m\u001b[38;2;117;99;87m░\u001b[39m\u001b[2m·\u001b[22m\u001b[38;2;250;178;131m█\u001b[39m\u001b[38;2;161;125;102m▒\u001b[39m\u001b[2m·\u001b[22m\u001b[38;2;161;125;102m▒\u001b[39m\u001b[38;2;250;178;131m█\u001b[39m\u001b[2m·\u001b[22m\u001b[38;2;250;178;131m█\u001b[39m\u001b[38;2;161;125;102m▒\u001b[39m\u001b[2m·\u001b[22m\u001b[38;2;117;99;87m░\u001b[39m\u001b[38;2;206;152;116m▓\u001b[39m\u001b[2m·\u001b[22m\u001b[38;2;206;152;116m▓\u001b[39m\u001b[38;2;117;99;87m░\u001b[39m\u001b[2m·\u001b[22m\u001b[38;2;117;99;87m░\u001b[39m\u001b[38;2;206;152;116m▓\u001b[39m\u001b[2m·\u001b[22m\u001b[38;2;161;125;102m▒\u001b[39m\u001b[38;2;250;178;131m█\u001b[39m\u001b[2m·\u001b[22m\u001b[38;2;250;178;131m█\u001b[39m\u001b[38;2;161;125;102m▒\u001b[39m\n\n\u001b[2mTu\u001b[0m \u001b[2m·\u001b[22m\u001b[38;2;161;125;102m▒\u001b[39m\u001b[38;2;250;178;131m█\u001b[39m\u001b[2m·\u001b[22m\u001b[38;2;206;152;116m▓\u001b[39m\u001b[38;2;117;99;87m░\u001b[39m\u001b[2m·\u001b[22m\u001b[38;2;117;99;87m░\u001b[39m\u001b[38;2;206;152;116m▓\u001b[39m\u001b[2m·\u001b[22m\u001b[38;2;206;152;116m▓\u001b[39m\u001b[38;2;117;99;87m░\u001b[39m\u001b[2m·\u001b[22m\u001b[38;2;117;99;87m░\u001b[39m\u001b[38;2;161;125;102m▒\u001b[39m\u001b[2m·\u001b[22m\u001b[38;2;161;125;102m▒\u001b[39m\u001b[38;2;250;178;131m█\u001b[39m\u001b[2m·\u001b[22m\u001b[38;2;250;178;131m█\u001b[39m\u001b[38;2;161;125;102m▒\u001b[39m\u001b[2m·\u001b[22m\u001b[38;2;161;125;102m▒\u001b[39m\u001b[38;2;250;178;131m█\u001b[39m\u001b[2m·\u001b[22m\u001b[38;2;206;152;116m▓\u001b[39m\u001b[38;2;117;99;87m░\u001b[39m\u001b[2m·\u001b[22m\u001b[38;2;117;99;87m░\u001b[39m\u001b[38;2;206;152;116m▓\u001b[39m\u001b[2m·\u001b[22m\u001b[38;2;206;152;116m▓\u001b[39m\u001b[38;2;117;99;87m░\u001b[39m\u001b[2m·\u001b[22m\u001b[38;2;250;178;131m█\u001b[39m\u001b[38;2;161;125;102m▒\u001b[39m\u001b[2m·\u001b[22m\u001b[38;2;161;125;102m▒\u001b[39m\u001b[38;2;250;178;131m█\u001b[39m\u001b[2m·\u001b[22m\u001b[38;2;250;178;131m█\u001b[39m\u001b[38;2;161;125;102m▒\u001b[39m\u001b[2m·\u001b[22m\u001b[38;2;117;99;87m░\u001b[39m\u001b[38;2;206;152;116m▓\u001b[39m\u001b[2m·\u001b[22m\u001b[38;2;206;152;116m▓\u001b[39m\u001b[38;2;117;99;87m░\u001b[39m\u001b[2m·\u001b[22m\u001b[38;2;117;99;87m░\u001b[39m\u001b[38;2;206;152;116m▓\u001b[39m\u001b[2m·\u001b[22m\n\n\u001b[2mWe\u001b[0m \u001b[2m·\u001b[22m\u001b[38;2;161;125;102m▒\u001b[39m\u001b[38;2;250;178;131m█\u001b[39m\u001b[2m·\u001b[22m\u001b[38;2;250;178;131m█\u001b[39m\u001b[38;2;161;125;102m▒\u001b[39m\u001b[2m·\u001b[22m\u001b[38;2;161;125;102m▒\u001b[39m\u001b[38;2;250;178;131m█\u001b[39m\u001b[2m·\u001b[22m\u001b[38;2;250;178;131m█\u001b[39m\u001b[38;2;117;99;87m░\u001b[39m\u001b[2m·\u001b[22m\u001b[38;2;117;99;87m░\u001b[39m\u001b[38;2;206;152;116m▓\u001b[39m\u001b[2m·\u001b[22m\u001b[38;2;206;152;116m▓\u001b[39m\u001b[38;2;117;99;87m░\u001b[39m\u001b[2m·\u001b[22m\u001b[38;2;117;99;87m░\u001b[39m\u001b[38;2;161;125;102m▒\u001b[39m\u001b[2m·\u001b[22m\u001b[38;2;161;125;102m▒\u001b[39m\u001b[38;2;250;178;131m█\u001b[39m\u001b[2m·\u001b[22m\u001b[38;2;250;178;131m█\u001b[39m\u001b[38;2;161;125;102m▒\u001b[39m\u001b[2m·\u001b[22m\u001b[38;2;161;125;102m▒\u001b[39m\u001b[38;2;250;178;131m█\u001b[39m\u001b[2m·\u001b[22m\u001b[38;2;206;152;116m▓\u001b[39m\u001b[38;2;117;99;87m░\u001b[39m\u001b[2m·\u001b[22m\u001b[38;2;117;99;87m░\u001b[39m\u001b[38;2;206;152;116m▓\u001b[39m\u001b[2m·\u001b[22m\u001b[38;2;206;152;116m▓\u001b[39m\u001b[38;2;117;99;87m░\u001b[39m\u001b[2m·\u001b[22m\u001b[38;2;250;178;131m█\u001b[39m\u001b[38;2;161;125;102m▒\u001b[39m\u001b[2m·\u001b[22m\u001b[38;2;161;125;102m▒\u001b[39m\u001b[38;2;250;178;131m█\u001b[39m\u001b[2m·\u001b[22m\u001b[38;2;250;178;131m█\u001b[39m\u001b[38;2;161;125;102m▒\u001b[39m\u001b[2m·\u001b[22m\u001b[38;2;117;99;87m░\u001b[39m\u001b[38;2;206;152;116m▓\u001b[39m\u001b[2m·\u001b[22m\u001b[38;2;206;152;116m▓\u001b[39m\n\n\u001b[2mTh\u001b[0m \u001b[38;2;206;152;116m▓\u001b[39m\u001b[38;2;117;99;87m░\u001b[39m\u001b[2m·\u001b[22m\u001b[38;2;117;99;87m░\u001b[39m\u001b[38;2;206;152;116m▓\u001b[39m\u001b[2m·\u001b[22m\u001b[38;2;161;125;102m▒\u001b[39m\u001b[38;2;250;178;131m█\u001b[39m\u001b[2m·\u001b[22m\u001b[38;2;250;178;131m█\u001b[39m\u001b[38;2;161;125;102m▒\u001b[39m\u001b[2m·\u001b[22m\u001b[38;2;161;125;102m▒\u001b[39m\u001b[38;2;250;178;131m█\u001b[39m\u001b[2m·\u001b[22m\u001b[38;2;250;178;131m█\u001b[39m\u001b[38;2;117;99;87m░\u001b[39m\u001b[2m·\u001b[22m\u001b[38;2;117;99;87m░\u001b[39m\u001b[38;2;206;152;116m▓\u001b[39m\u001b[2m·\u001b[22m\u001b[38;2;206;152;116m▓\u001b[39m\u001b[38;2;117;99;87m░\u001b[39m\u001b[2m·\u001b[22m\u001b[38;2;117;99;87m░\u001b[39m\u001b[38;2;206;152;116m▓\u001b[39m\u001b[2m·\u001b[22m\u001b[38;2;161;125;102m▒\u001b[39m\u001b[38;2;250;178;131m█\u001b[39m\u001b[2m·\u001b[22m\u001b[38;2;250;178;131m█\u001b[39m\u001b[38;2;161;125;102m▒\u001b[39m\u001b[2m·\u001b[22m\u001b[38;2;161;125;102m▒\u001b[39m\u001b[38;2;250;178;131m█\u001b[39m\u001b[2m·\u001b[22m\u001b[38;2;206;152;116m▓\u001b[39m\u001b[38;2;117;99;87m░\u001b[39m\u001b[2m·\u001b[22m\u001b[38;2;117;99;87m░\u001b[39m\u001b[38;2;206;152;116m▓\u001b[39m\u001b[2m·\u001b[22m\u001b[38;2;206;152;116m▓\u001b[39m\u001b[38;2;117;99;87m░\u001b[39m\u001b[2m·\u001b[22m\u001b[38;2;250;178;131m█\u001b[39m\u001b[38;2;161;125;102m▒\u001b[39m\u001b[2m·\u001b[22m\u001b[38;2;161;125;102m▒\u001b[39m\u001b[38;2;250;178;131m█\u001b[39m\u001b[2m·\u001b[22m\u001b[38;2;250;178;131m█\u001b[39m \n\n\u001b[2mFr\u001b[0m \u001b[38;2;161;125;102m▒\u001b[39m\u001b[2m·\u001b[22m\u001b[38;2;117;99;87m░\u001b[39m\u001b[38;2;206;152;116m▓\u001b[39m\u001b[2m·\u001b[22m\u001b[38;2;206;152;116m▓\u001b[39m\u001b[38;2;117;99;87m░\u001b[39m\u001b[2m·\u001b[22m\u001b[38;2;117;99;87m░\u001b[39m\u001b[38;2;206;152;116m▓\u001b[39m\u001b[2m·\u001b[22m\u001b[38;2;206;152;116m▓\u001b[39m\u001b[38;2;250;178;131m█\u001b[39m\u001b[2m·\u001b[22m\u001b[38;2;250;178;131m█\u001b[39m\u001b[38;2;161;125;102m▒\u001b[39m\u001b[2m·\u001b[22m\u001b[38;2;161;125;102m▒\u001b[39m\u001b[38;2;250;178;131m█\u001b[39m\u001b[2m·\u001b[22m\u001b[38;2;250;178;131m█\u001b[39m\u001b[38;2;117;99;87m░\u001b[39m\u001b[2m·\u001b[22m\u001b[38;2;117;99;87m░\u001b[39m\u001b[38;2;206;152;116m▓\u001b[39m\u001b[2m·\u001b[22m\u001b[38;2;206;152;116m▓\u001b[39m\u001b[38;2;117;99;87m░\u001b[39m\u001b[2m·\u001b[22m\u001b[38;2;117;99;87m░\u001b[39m\u001b[38;2;206;152;116m▓\u001b[39m\u001b[2m·\u001b[22m\u001b[38;2;161;125;102m▒\u001b[39m\u001b[38;2;250;178;131m█\u001b[39m\u001b[2m·\u001b[22m\u001b[38;2;250;178;131m█\u001b[39m\u001b[38;2;161;125;102m▒\u001b[39m\u001b[2m·\u001b[22m\u001b[38;2;161;125;102m▒\u001b[39m\u001b[38;2;250;178;131m█\u001b[39m\u001b[2m·\u001b[22m\u001b[38;2;206;152;116m▓\u001b[39m\u001b[38;2;117;99;87m░\u001b[39m\u001b[2m·\u001b[22m\u001b[38;2;117;99;87m░\u001b[39m\u001b[38;2;206;152;116m▓\u001b[39m\u001b[2m·\u001b[22m\u001b[38;2;206;152;116m▓\u001b[39m\u001b[38;2;117;99;87m░\u001b[39m\u001b[2m·\u001b[22m\u001b[38;2;250;178;131m█\u001b[39m\u001b[38;2;161;125;102m▒\u001b[39m \n\n\u001b[2mSa\u001b[0m \u001b[2m·\u001b[22m\u001b[38;2;161;125;102m▒\u001b[39m\u001b[38;2;250;178;131m█\u001b[39m\u001b[2m·\u001b[22m\u001b[38;2;250;178;131m█\u001b[39m\u001b[38;2;161;125;102m▒\u001b[39m\u001b[2m·\u001b[22m\u001b[38;2;117;99;87m░\u001b[39m\u001b[38;2;206;152;116m▓\u001b[39m\u001b[2m·\u001b[22m\u001b[38;2;206;152;116m▓\u001b[39m\u001b[38;2;117;99;87m░\u001b[39m\u001b[2m·\u001b[22m\u001b[38;2;117;99;87m░\u001b[39m\u001b[38;2;206;152;116m▓\u001b[39m\u001b[2m·\u001b[22m\u001b[38;2;206;152;116m▓\u001b[39m\u001b[38;2;250;178;131m█\u001b[39m\u001b[2m·\u001b[22m\u001b[38;2;250;178;131m█\u001b[39m\u001b[38;2;161;125;102m▒\u001b[39m\u001b[2m·\u001b[22m\u001b[38;2;161;125;102m▒\u001b[39m\u001b[38;2;250;178;131m█\u001b[39m\u001b[2m·\u001b[22m\u001b[38;2;250;178;131m█\u001b[39m\u001b[38;2;161;125;102m▒\u001b[39m\u001b[2m·\u001b[22m\u001b[38;2;117;99;87m░\u001b[39m\u001b[38;2;206;152;116m▓\u001b[39m\u001b[2m·\u001b[22m\u001b[38;2;206;152;116m▓\u001b[39m\u001b[38;2;117;99;87m░\u001b[39m\u001b[2m·\u001b[22m\u001b[38;2;117;99;87m░\u001b[39m\u001b[38;2;206;152;116m▓\u001b[39m\u001b[2m·\u001b[22m\u001b[38;2;161;125;102m▒\u001b[39m\u001b[38;2;250;178;131m█\u001b[39m\u001b[2m·\u001b[22m\u001b[38;2;250;178;131m█\u001b[39m\u001b[38;2;161;125;102m▒\u001b[39m\u001b[2m·\u001b[22m\u001b[38;2;161;125;102m▒\u001b[39m\u001b[38;2;250;178;131m█\u001b[39m\u001b[2m·\u001b[22m\u001b[38;2;206;152;116m▓\u001b[39m\u001b[38;2;117;99;87m░\u001b[39m\u001b[2m·\u001b[22m\u001b[38;2;117;99;87m░\u001b[39m\u001b[38;2;206;152;116m▓\u001b[39m\u001b[2m·\u001b[22m \n\n\u001b[2mSu\u001b[0m \u001b[38;2;206;152;116m▓\u001b[39m\u001b[38;2;117;99;87m░\u001b[39m\u001b[2m·\u001b[22m\u001b[38;2;250;178;131m█\u001b[39m\u001b[38;2;161;125;102m▒\u001b[39m\u001b[2m·\u001b[22m\u001b[38;2;161;125;102m▒\u001b[39m\u001b[38;2;250;178;131m█\u001b[39m\u001b[2m·\u001b[22m\u001b[38;2;250;178;131m█\u001b[39m\u001b[38;2;161;125;102m▒\u001b[39m\u001b[2m·\u001b[22m\u001b[38;2;161;125;102m▒\u001b[39m\u001b[38;2;206;152;116m▓\u001b[39m\u001b[2m·\u001b[22m\u001b[38;2;206;152;116m▓\u001b[39m\u001b[38;2;117;99;87m░\u001b[39m\u001b[2m·\u001b[22m\u001b[38;2;117;99;87m░\u001b[39m\u001b[38;2;206;152;116m▓\u001b[39m\u001b[2m·\u001b[22m\u001b[38;2;206;152;116m▓\u001b[39m\u001b[38;2;250;178;131m█\u001b[39m\u001b[2m·\u001b[22m\u001b[38;2;250;178;131m█\u001b[39m\u001b[38;2;161;125;102m▒\u001b[39m\u001b[2m·\u001b[22m\u001b[38;2;161;125;102m▒\u001b[39m\u001b[38;2;250;178;131m█\u001b[39m\u001b[2m·\u001b[22m\u001b[38;2;250;178;131m█\u001b[39m\u001b[38;2;161;125;102m▒\u001b[39m\u001b[2m·\u001b[22m\u001b[38;2;117;99;87m░\u001b[39m\u001b[38;2;206;152;116m▓\u001b[39m\u001b[2m·\u001b[22m\u001b[38;2;206;152;116m▓\u001b[39m\u001b[38;2;117;99;87m░\u001b[39m\u001b[2m·\u001b[22m\u001b[38;2;117;99;87m░\u001b[39m\u001b[38;2;206;152;116m▓\u001b[39m\u001b[2m·\u001b[22m\u001b[38;2;161;125;102m▒\u001b[39m\u001b[38;2;250;178;131m█\u001b[39m\u001b[2m·\u001b[22m\u001b[38;2;250;178;131m█\u001b[39m\u001b[38;2;161;125;102m▒\u001b[39m\u001b[2m·\u001b[22m\u001b[38;2;161;125;102m▒\u001b[39m\u001b[38;2;250;178;131m█\u001b[39m\u001b[2m·\u001b[22m\u001b[38;2;250;178;131m█\u001b[39m \n\n \u001b[2mless\u001b[0m \u001b[2m·\u001b[22m\u001b[38;2;117;99;87m░\u001b[39m\u001b[38;2;161;125;102m▒\u001b[39m\u001b[38;2;206;152;116m▓\u001b[39m\u001b[38;2;250;178;131m█\u001b[39m \u001b[2mmore\u001b[0m\n\n\u001b[1;38;2;250;178;131m1.2k\u001b[0m sessions · \u001b[1;38;2;250;178;131m56\u001b[0m subagents\n\u001b[1;38;2;250;178;131m9.9k\u001b[0m prompts · \u001b[1;38;2;250;178;131m54.3k\u001b[0m steps · \u001b[1;38;2;250;178;131m1b\u001b[0m tokens\n\u001b[1;38;2;250;178;131m98.5%\u001b[0m tool success · \u001b[1;38;2;250;178;131m243\u001b[0m active days · best streak \u001b[1;38;2;250;178;131m17\u001b[0m days\n\n\u001b[2mopencode.ai\u001b[0m"}, +{"stats":"full","name":"summary narrow","options":{"label":"last 365 days","scope":"all projects","models":false,"tools":false,"cost":false,"limit":5,"width":40,"color":true},"output":"\u001b[1;38;2;250;178;131mopencode stats\u001b[0m \u001b[2m· last 365 days · all projects\u001b[0m\n\n\u001b[1;38;2;250;178;131mactivity · last 36 weeks\u001b[0m\n \u001b[2mMar Apr May Jun Jul Aug Sep Oct Nov\u001b[0m\n\u001b[2mMo\u001b[0m \u001b[2m·\u001b[22m\u001b[38;2;161;125;102m▒\u001b[39m\u001b[38;2;206;152;116m▓\u001b[39m\u001b[2m·\u001b[22m\u001b[38;2;206;152;116m▓\u001b[39m\u001b[38;2;117;99;87m░\u001b[39m\u001b[2m·\u001b[22m\u001b[38;2;117;99;87m░\u001b[39m\u001b[38;2;206;152;116m▓\u001b[39m\u001b[2m·\u001b[22m\u001b[38;2;206;152;116m▓\u001b[39m\u001b[38;2;117;99;87m░\u001b[39m\u001b[2m·\u001b[22m\u001b[38;2;250;178;131m█\u001b[39m\u001b[38;2;161;125;102m▒\u001b[39m\u001b[2m·\u001b[22m\u001b[38;2;161;125;102m▒\u001b[39m\u001b[38;2;250;178;131m█\u001b[39m\u001b[2m·\u001b[22m\u001b[38;2;250;178;131m█\u001b[39m\u001b[38;2;161;125;102m▒\u001b[39m\u001b[2m·\u001b[22m\u001b[38;2;117;99;87m░\u001b[39m\u001b[38;2;206;152;116m▓\u001b[39m\u001b[2m·\u001b[22m\u001b[38;2;206;152;116m▓\u001b[39m\u001b[38;2;117;99;87m░\u001b[39m\u001b[2m·\u001b[22m\u001b[38;2;117;99;87m░\u001b[39m\u001b[38;2;206;152;116m▓\u001b[39m\u001b[2m·\u001b[22m\u001b[38;2;161;125;102m▒\u001b[39m\u001b[38;2;250;178;131m█\u001b[39m\u001b[2m·\u001b[22m\u001b[38;2;250;178;131m█\u001b[39m\u001b[38;2;161;125;102m▒\u001b[39m\n\n\u001b[2mTu\u001b[0m \u001b[38;2;161;125;102m▒\u001b[39m\u001b[38;2;250;178;131m█\u001b[39m\u001b[2m·\u001b[22m\u001b[38;2;250;178;131m█\u001b[39m\u001b[38;2;161;125;102m▒\u001b[39m\u001b[2m·\u001b[22m\u001b[38;2;161;125;102m▒\u001b[39m\u001b[38;2;250;178;131m█\u001b[39m\u001b[2m·\u001b[22m\u001b[38;2;206;152;116m▓\u001b[39m\u001b[38;2;117;99;87m░\u001b[39m\u001b[2m·\u001b[22m\u001b[38;2;117;99;87m░\u001b[39m\u001b[38;2;206;152;116m▓\u001b[39m\u001b[2m·\u001b[22m\u001b[38;2;206;152;116m▓\u001b[39m\u001b[38;2;117;99;87m░\u001b[39m\u001b[2m·\u001b[22m\u001b[38;2;250;178;131m█\u001b[39m\u001b[38;2;161;125;102m▒\u001b[39m\u001b[2m·\u001b[22m\u001b[38;2;161;125;102m▒\u001b[39m\u001b[38;2;250;178;131m█\u001b[39m\u001b[2m·\u001b[22m\u001b[38;2;250;178;131m█\u001b[39m\u001b[38;2;161;125;102m▒\u001b[39m\u001b[2m·\u001b[22m\u001b[38;2;117;99;87m░\u001b[39m\u001b[38;2;206;152;116m▓\u001b[39m\u001b[2m·\u001b[22m\u001b[38;2;206;152;116m▓\u001b[39m\u001b[38;2;117;99;87m░\u001b[39m\u001b[2m·\u001b[22m\u001b[38;2;117;99;87m░\u001b[39m\u001b[38;2;206;152;116m▓\u001b[39m\u001b[2m·\u001b[22m\n\n\u001b[2mWe\u001b[0m \u001b[38;2;117;99;87m░\u001b[39m\u001b[2m·\u001b[22m\u001b[38;2;117;99;87m░\u001b[39m\u001b[38;2;161;125;102m▒\u001b[39m\u001b[2m·\u001b[22m\u001b[38;2;161;125;102m▒\u001b[39m\u001b[38;2;250;178;131m█\u001b[39m\u001b[2m·\u001b[22m\u001b[38;2;250;178;131m█\u001b[39m\u001b[38;2;161;125;102m▒\u001b[39m\u001b[2m·\u001b[22m\u001b[38;2;161;125;102m▒\u001b[39m\u001b[38;2;250;178;131m█\u001b[39m\u001b[2m·\u001b[22m\u001b[38;2;206;152;116m▓\u001b[39m\u001b[38;2;117;99;87m░\u001b[39m\u001b[2m·\u001b[22m\u001b[38;2;117;99;87m░\u001b[39m\u001b[38;2;206;152;116m▓\u001b[39m\u001b[2m·\u001b[22m\u001b[38;2;206;152;116m▓\u001b[39m\u001b[38;2;117;99;87m░\u001b[39m\u001b[2m·\u001b[22m\u001b[38;2;250;178;131m█\u001b[39m\u001b[38;2;161;125;102m▒\u001b[39m\u001b[2m·\u001b[22m\u001b[38;2;161;125;102m▒\u001b[39m\u001b[38;2;250;178;131m█\u001b[39m\u001b[2m·\u001b[22m\u001b[38;2;250;178;131m█\u001b[39m\u001b[38;2;161;125;102m▒\u001b[39m\u001b[2m·\u001b[22m\u001b[38;2;117;99;87m░\u001b[39m\u001b[38;2;206;152;116m▓\u001b[39m\u001b[2m·\u001b[22m\u001b[38;2;206;152;116m▓\u001b[39m\n\n\u001b[2mTh\u001b[0m \u001b[2m·\u001b[22m\u001b[38;2;117;99;87m░\u001b[39m\u001b[38;2;206;152;116m▓\u001b[39m\u001b[2m·\u001b[22m\u001b[38;2;206;152;116m▓\u001b[39m\u001b[38;2;117;99;87m░\u001b[39m\u001b[2m·\u001b[22m\u001b[38;2;117;99;87m░\u001b[39m\u001b[38;2;206;152;116m▓\u001b[39m\u001b[2m·\u001b[22m\u001b[38;2;161;125;102m▒\u001b[39m\u001b[38;2;250;178;131m█\u001b[39m\u001b[2m·\u001b[22m\u001b[38;2;250;178;131m█\u001b[39m\u001b[38;2;161;125;102m▒\u001b[39m\u001b[2m·\u001b[22m\u001b[38;2;161;125;102m▒\u001b[39m\u001b[38;2;250;178;131m█\u001b[39m\u001b[2m·\u001b[22m\u001b[38;2;206;152;116m▓\u001b[39m\u001b[38;2;117;99;87m░\u001b[39m\u001b[2m·\u001b[22m\u001b[38;2;117;99;87m░\u001b[39m\u001b[38;2;206;152;116m▓\u001b[39m\u001b[2m·\u001b[22m\u001b[38;2;206;152;116m▓\u001b[39m\u001b[38;2;117;99;87m░\u001b[39m\u001b[2m·\u001b[22m\u001b[38;2;250;178;131m█\u001b[39m\u001b[38;2;161;125;102m▒\u001b[39m\u001b[2m·\u001b[22m\u001b[38;2;161;125;102m▒\u001b[39m\u001b[38;2;250;178;131m█\u001b[39m\u001b[2m·\u001b[22m\u001b[38;2;250;178;131m█\u001b[39m \n\n\u001b[2mFr\u001b[0m \u001b[38;2;161;125;102m▒\u001b[39m\u001b[38;2;250;178;131m█\u001b[39m\u001b[2m·\u001b[22m\u001b[38;2;250;178;131m█\u001b[39m\u001b[38;2;117;99;87m░\u001b[39m\u001b[2m·\u001b[22m\u001b[38;2;117;99;87m░\u001b[39m\u001b[38;2;206;152;116m▓\u001b[39m\u001b[2m·\u001b[22m\u001b[38;2;206;152;116m▓\u001b[39m\u001b[38;2;117;99;87m░\u001b[39m\u001b[2m·\u001b[22m\u001b[38;2;117;99;87m░\u001b[39m\u001b[38;2;206;152;116m▓\u001b[39m\u001b[2m·\u001b[22m\u001b[38;2;161;125;102m▒\u001b[39m\u001b[38;2;250;178;131m█\u001b[39m\u001b[2m·\u001b[22m\u001b[38;2;250;178;131m█\u001b[39m\u001b[38;2;161;125;102m▒\u001b[39m\u001b[2m·\u001b[22m\u001b[38;2;161;125;102m▒\u001b[39m\u001b[38;2;250;178;131m█\u001b[39m\u001b[2m·\u001b[22m\u001b[38;2;206;152;116m▓\u001b[39m\u001b[38;2;117;99;87m░\u001b[39m\u001b[2m·\u001b[22m\u001b[38;2;117;99;87m░\u001b[39m\u001b[38;2;206;152;116m▓\u001b[39m\u001b[2m·\u001b[22m\u001b[38;2;206;152;116m▓\u001b[39m\u001b[38;2;117;99;87m░\u001b[39m\u001b[2m·\u001b[22m\u001b[38;2;250;178;131m█\u001b[39m\u001b[38;2;161;125;102m▒\u001b[39m \n\n\u001b[2mSa\u001b[0m \u001b[38;2;250;178;131m█\u001b[39m\u001b[2m·\u001b[22m\u001b[38;2;250;178;131m█\u001b[39m\u001b[38;2;161;125;102m▒\u001b[39m\u001b[2m·\u001b[22m\u001b[38;2;161;125;102m▒\u001b[39m\u001b[38;2;250;178;131m█\u001b[39m\u001b[2m·\u001b[22m\u001b[38;2;250;178;131m█\u001b[39m\u001b[38;2;161;125;102m▒\u001b[39m\u001b[2m·\u001b[22m\u001b[38;2;117;99;87m░\u001b[39m\u001b[38;2;206;152;116m▓\u001b[39m\u001b[2m·\u001b[22m\u001b[38;2;206;152;116m▓\u001b[39m\u001b[38;2;117;99;87m░\u001b[39m\u001b[2m·\u001b[22m\u001b[38;2;117;99;87m░\u001b[39m\u001b[38;2;206;152;116m▓\u001b[39m\u001b[2m·\u001b[22m\u001b[38;2;161;125;102m▒\u001b[39m\u001b[38;2;250;178;131m█\u001b[39m\u001b[2m·\u001b[22m\u001b[38;2;250;178;131m█\u001b[39m\u001b[38;2;161;125;102m▒\u001b[39m\u001b[2m·\u001b[22m\u001b[38;2;161;125;102m▒\u001b[39m\u001b[38;2;250;178;131m█\u001b[39m\u001b[2m·\u001b[22m\u001b[38;2;206;152;116m▓\u001b[39m\u001b[38;2;117;99;87m░\u001b[39m\u001b[2m·\u001b[22m\u001b[38;2;117;99;87m░\u001b[39m\u001b[38;2;206;152;116m▓\u001b[39m\u001b[2m·\u001b[22m \n\n\u001b[2mSu\u001b[0m \u001b[2m·\u001b[22m\u001b[38;2;117;99;87m░\u001b[39m\u001b[38;2;206;152;116m▓\u001b[39m\u001b[2m·\u001b[22m\u001b[38;2;206;152;116m▓\u001b[39m\u001b[38;2;250;178;131m█\u001b[39m\u001b[2m·\u001b[22m\u001b[38;2;250;178;131m█\u001b[39m\u001b[38;2;161;125;102m▒\u001b[39m\u001b[2m·\u001b[22m\u001b[38;2;161;125;102m▒\u001b[39m\u001b[38;2;250;178;131m█\u001b[39m\u001b[2m·\u001b[22m\u001b[38;2;250;178;131m█\u001b[39m\u001b[38;2;161;125;102m▒\u001b[39m\u001b[2m·\u001b[22m\u001b[38;2;117;99;87m░\u001b[39m\u001b[38;2;206;152;116m▓\u001b[39m\u001b[2m·\u001b[22m\u001b[38;2;206;152;116m▓\u001b[39m\u001b[38;2;117;99;87m░\u001b[39m\u001b[2m·\u001b[22m\u001b[38;2;117;99;87m░\u001b[39m\u001b[38;2;206;152;116m▓\u001b[39m\u001b[2m·\u001b[22m\u001b[38;2;161;125;102m▒\u001b[39m\u001b[38;2;250;178;131m█\u001b[39m\u001b[2m·\u001b[22m\u001b[38;2;250;178;131m█\u001b[39m\u001b[38;2;161;125;102m▒\u001b[39m\u001b[2m·\u001b[22m\u001b[38;2;161;125;102m▒\u001b[39m\u001b[38;2;250;178;131m█\u001b[39m\u001b[2m·\u001b[22m\u001b[38;2;250;178;131m█\u001b[39m \n\n \u001b[2mless\u001b[0m \u001b[2m·\u001b[22m\u001b[38;2;117;99;87m░\u001b[39m\u001b[38;2;161;125;102m▒\u001b[39m\u001b[38;2;206;152;116m▓\u001b[39m\u001b[38;2;250;178;131m█\u001b[39m \u001b[2mmore\u001b[0m\n\n\u001b[1;38;2;250;178;131m1.2k\u001b[0m sessions · \u001b[1;38;2;250;178;131m56\u001b[0m subagents\n\u001b[1;38;2;250;178;131m9.9k\u001b[0m prompts · \u001b[1;38;2;250;178;131m54.3k\u001b[0m steps · \u001b[1;38;2;250;178;131m1b\u001b[0m tokens\n\u001b[1;38;2;250;178;131m98.5%\u001b[0m tool success · \u001b[1;38;2;250;178;131m243\u001b[0m active days · best streak \u001b[1;38;2;250;178;131m17\u001b[0m days\n\n\u001b[2mopencode.ai\u001b[0m"}, +{"stats":"full","name":"summary tiny","options":{"label":"last 365 days","scope":"all projects","models":false,"tools":false,"cost":false,"limit":5,"width":3,"color":true},"output":"\u001b[1;38;2;250;178;131mopencode stats\u001b[0m \u001b[2m· last 365 days · all projects\u001b[0m\n\n\u001b[1;38;2;250;178;131mactivity · last 1 weeks\u001b[0m\n \u001b[2mNov\u001b[0m\n\u001b[2mMo\u001b[0m \u001b[38;2;161;125;102m▒\u001b[39m\n\n\u001b[2mTu\u001b[0m \u001b[2m·\u001b[22m\n\n\u001b[2mWe\u001b[0m \u001b[38;2;206;152;116m▓\u001b[39m\n\n\u001b[2mTh\u001b[0m \n\n\u001b[2mFr\u001b[0m \n\n\u001b[2mSa\u001b[0m \n\n\u001b[2mSu\u001b[0m \n\n \u001b[2mless\u001b[0m \u001b[2m·\u001b[22m\u001b[38;2;117;99;87m░\u001b[39m\u001b[38;2;161;125;102m▒\u001b[39m\u001b[38;2;206;152;116m▓\u001b[39m\u001b[38;2;250;178;131m█\u001b[39m \u001b[2mmore\u001b[0m\n\n\u001b[1;38;2;250;178;131m1.2k\u001b[0m sessions · \u001b[1;38;2;250;178;131m56\u001b[0m subagents\n\u001b[1;38;2;250;178;131m9.9k\u001b[0m prompts · \u001b[1;38;2;250;178;131m54.3k\u001b[0m steps · \u001b[1;38;2;250;178;131m1b\u001b[0m tokens\n\u001b[1;38;2;250;178;131m98.5%\u001b[0m tool success · \u001b[1;38;2;250;178;131m243\u001b[0m active days · best streak \u001b[1;38;2;250;178;131m17\u001b[0m days\n\n\u001b[2mopencode.ai\u001b[0m"}, +{"stats":"full","name":"models","options":{"label":"last 365 days","scope":"all projects","models":true,"tools":false,"cost":false,"limit":5,"width":80,"color":true},"output":"\u001b[2mlast 365 days · all projects\u001b[0m\n\nMODELS\nmodel tokens steps cost\nanthropic/claude-opus-5-5 515m 40k $900.13\nopenai/gpt-5#high 1k 10k $0.01\nopenrouter/some/really-long-model… 2b 999 $334.44\nlocal/tiny 0 1 $0.00"}, +{"stats":"full","name":"models narrow","options":{"label":"last 365 days","scope":"all projects","models":true,"tools":false,"cost":false,"limit":2,"width":60,"color":true},"output":"\u001b[2mlast 365 days · all projects\u001b[0m\n\nMODELS\nanthropic/claude-opus-5-5\n 515m tokens · 40k steps · $900.13\nopenai/gpt-5#high\n 1k tokens · 10k steps · $0.01\n\n+2 more models"}, +{"stats":"full","name":"tools","options":{"label":"last 365 days","scope":"all projects","models":false,"tools":true,"cost":false,"limit":3,"width":68,"color":true},"output":"\u001b[2mlast 365 days · all projects\u001b[0m\n\nTOOL RELIABILITY\ntool calls error p50\nread 2k 0.50% 12ms\nbash 1.5k 5.08% 1.5s\nedit 800 0.00% 1000ms\n\n5k finished calls · 25 unfinished\n+3 more tools"}, +{"stats":"full","name":"tools narrow","options":{"label":"last 365 days","scope":"all projects","models":false,"tools":true,"cost":false,"limit":5,"width":67,"color":true},"output":"\u001b[2mlast 365 days · all projects\u001b[0m\n\nTOOL RELIABILITY\nread\n 2k calls · 0.50% error · 12ms p50\nbash\n 1.5k calls · 5.08% error · 1.5s p50\nedit\n 800 calls · 0.00% error · 1000ms p50\na-very-long-tool-name-from-some-mcp-server_with_suffix\n 400 calls · 0.25% error · 120s p50\npending\n 300 calls · - error · - p50\n\n5k finished calls · 25 unfinished\n+1 more tool"}, +{"stats":"full","name":"tools one more","options":{"label":"last 365 days","scope":"all projects","models":false,"tools":true,"cost":false,"limit":5,"width":30,"color":true},"output":"\u001b[2mlast 365 days · all projects\u001b[0m\n\nTOOL RELIABILITY\nread\n 2k calls · 0.50% error · 12ms p50\nbash\n 1.5k calls · 5.08% error · 1.5s p50\nedit\n 800 calls · 0.00% error · 1000ms p50\na-very-long-tool-name-from-so…\n 400 calls · 0.25% error · 120s p50\npending\n 300 calls · - error · - p50\n\n5k finished calls · 25 unfinished\n+1 more tool"}, +{"stats":"full","name":"cost","options":{"label":"last 365 days","scope":"all projects","models":false,"tools":false,"cost":true,"limit":5,"width":80,"color":true},"output":"\u001b[2mlast 365 days · all projects\u001b[0m\n\nCOST & TOKENS\n cost $1234.57\n input 12.3m\n output 2.3m\n reasoning 345.7k\n cache read 987.7m\n cache write 12.3m\n cached input 97.6%"}, +{"stats":"full","name":"full","options":{"label":"2026 so far","scope":"current project","models":true,"tools":true,"cost":true,"limit":5,"width":100,"color":true},"output":"\u001b[2m2026 so far · current project\u001b[0m\n\nCOST & TOKENS\n cost $1234.57\n input 12.3m\n output 2.3m\n reasoning 345.7k\n cache read 987.7m\n cache write 12.3m\n cached input 97.6%\n\nMODELS\nmodel tokens steps cost\nanthropic/claude-opus-5-5 515m 40k $900.13\nopenai/gpt-5#high 1k 10k $0.01\nopenrouter/some/really-long-model… 2b 999 $334.44\nlocal/tiny 0 1 $0.00\n\nTOOL RELIABILITY\ntool calls error p50\nread 2k 0.50% 12ms\nbash 1.5k 5.08% 1.5s\nedit 800 0.00% 1000ms\na-very-long-tool-name-from-some-m… 400 0.25% 120s\npending 300 - -\n\n5k finished calls · 25 unfinished\n+1 more tool"}, +{"stats":"full","name":"full narrow","options":{"label":"last 365 days","scope":"all projects","models":true,"tools":true,"cost":true,"limit":1,"width":50,"color":true},"output":"\u001b[2mlast 365 days · all projects\u001b[0m\n\nCOST & TOKENS\n cost $1234.57\n input 12.3m\n output 2.3m\n reasoning 345.7k\n cache read 987.7m\n cache write 12.3m\n cached input 97.6%\n\nMODELS\nanthropic/claude-opus-5-5\n 515m tokens · 40k steps · $900.13\n\n+3 more models\n\nTOOL RELIABILITY\nread\n 2k calls · 0.50% error · 12ms p50\n\n5k finished calls · 25 unfinished\n+5 more tools"}, +{"stats":"singular","name":"summary","options":{"label":"last 365 days","scope":"all projects","models":false,"tools":false,"cost":false,"limit":5,"width":80,"color":true},"output":"\u001b[1;38;2;250;178;131mopencode stats\u001b[0m \u001b[2m· last 365 days · all projects\u001b[0m\n\n\u001b[1;38;2;250;178;131mactivity\u001b[0m\n \u001b[2mNov\u001b[0m\n\u001b[2mMo\u001b[0m \n\n\u001b[2mTu\u001b[0m \n\n\u001b[2mWe\u001b[0m \u001b[38;2;250;178;131m█\u001b[39m\n\n\u001b[2mTh\u001b[0m \n\n\u001b[2mFr\u001b[0m \n\n\u001b[2mSa\u001b[0m \n\n\u001b[2mSu\u001b[0m \n\n \u001b[2mless\u001b[0m \u001b[2m·\u001b[22m\u001b[38;2;117;99;87m░\u001b[39m\u001b[38;2;161;125;102m▒\u001b[39m\u001b[38;2;206;152;116m▓\u001b[39m\u001b[38;2;250;178;131m█\u001b[39m \u001b[2mmore\u001b[0m\n\n\u001b[1;38;2;250;178;131m1\u001b[0m session\n\u001b[1;38;2;250;178;131m1\u001b[0m prompt · \u001b[1;38;2;250;178;131m1\u001b[0m step · \u001b[1;38;2;250;178;131m1\u001b[0m token\n\u001b[1;38;2;250;178;131m100.0%\u001b[0m tool success · \u001b[1;38;2;250;178;131m1\u001b[0m active day · best streak \u001b[1;38;2;250;178;131m1\u001b[0m day\n\n\u001b[2mopencode.ai\u001b[0m"}, +{"stats":"singular","name":"full","options":{"label":"2026 so far","scope":"current project","models":true,"tools":true,"cost":true,"limit":5,"width":100,"color":true},"output":"\u001b[2m2026 so far · current project\u001b[0m\n\nCOST & TOKENS\n cost $1234.57\n input 1\n output 0\n reasoning 0\n cache read 0\n cache write 0\n cached input 0.00%\n\nMODELS\n no model usage\n\nTOOL RELIABILITY\n tool details unavailable"}, +{"stats":"singular","name":"full narrow","options":{"label":"last 365 days","scope":"all projects","models":true,"tools":true,"cost":true,"limit":1,"width":50,"color":true},"output":"\u001b[2mlast 365 days · all projects\u001b[0m\n\nCOST & TOKENS\n cost $1234.57\n input 1\n output 0\n reasoning 0\n cache read 0\n cache write 0\n cached input 0.00%\n\nMODELS\n no model usage\n\nTOOL RELIABILITY\n tool details unavailable"}, +{"stats":"no tool calls","name":"summary","options":{"label":"last 365 days","scope":"all projects","models":false,"tools":false,"cost":false,"limit":5,"width":80,"color":true},"output":"\u001b[1;38;2;250;178;131mopencode stats\u001b[0m \u001b[2m· last 365 days · all projects\u001b[0m\n\n\u001b[1;38;2;250;178;131mactivity\u001b[0m\n \u001b[2mNov\u001b[0m\n\u001b[2mMo\u001b[0m \n\n\u001b[2mTu\u001b[0m \n\n\u001b[2mWe\u001b[0m \u001b[38;2;250;178;131m█\u001b[39m\n\n\u001b[2mTh\u001b[0m \n\n\u001b[2mFr\u001b[0m \n\n\u001b[2mSa\u001b[0m \n\n\u001b[2mSu\u001b[0m \n\n \u001b[2mless\u001b[0m \u001b[2m·\u001b[22m\u001b[38;2;117;99;87m░\u001b[39m\u001b[38;2;161;125;102m▒\u001b[39m\u001b[38;2;206;152;116m▓\u001b[39m\u001b[38;2;250;178;131m█\u001b[39m \u001b[2mmore\u001b[0m\n\n\u001b[1;38;2;250;178;131m2\u001b[0m sessions\n\u001b[1;38;2;250;178;131m1\u001b[0m prompt · \u001b[1;38;2;250;178;131m1\u001b[0m step · \u001b[1;38;2;250;178;131m1\u001b[0m token\nno tool calls · \u001b[1;38;2;250;178;131m1\u001b[0m active day · best streak \u001b[1;38;2;250;178;131m1\u001b[0m day\n\n\u001b[2mopencode.ai\u001b[0m"}, +{"stats":"no tool calls","name":"full","options":{"label":"2026 so far","scope":"current project","models":true,"tools":true,"cost":true,"limit":5,"width":100,"color":true},"output":"\u001b[2m2026 so far · current project\u001b[0m\n\nCOST & TOKENS\n cost $1234.57\n input 1\n output 0\n reasoning 0\n cache read 0\n cache write 0\n cached input 0.00%\n\nMODELS\n no model usage\n\nTOOL RELIABILITY\n tool details unavailable"}, +{"stats":"no tool calls","name":"full narrow","options":{"label":"last 365 days","scope":"all projects","models":true,"tools":true,"cost":true,"limit":1,"width":50,"color":true},"output":"\u001b[2mlast 365 days · all projects\u001b[0m\n\nCOST & TOKENS\n cost $1234.57\n input 1\n output 0\n reasoning 0\n cache read 0\n cache write 0\n cached input 0.00%\n\nMODELS\n no model usage\n\nTOOL RELIABILITY\n tool details unavailable"}, +{"stats":"no tool stats","name":"summary","options":{"label":"last 365 days","scope":"all projects","models":false,"tools":false,"cost":false,"limit":5,"width":80,"color":true},"output":"\u001b[1;38;2;250;178;131mopencode stats\u001b[0m \u001b[2m· last 365 days · all projects\u001b[0m\n\n\u001b[1;38;2;250;178;131mactivity\u001b[0m\n \u001b[2mNov\u001b[0m\n\u001b[2mMo\u001b[0m \n\n\u001b[2mTu\u001b[0m \n\n\u001b[2mWe\u001b[0m \u001b[38;2;250;178;131m█\u001b[39m\n\n\u001b[2mTh\u001b[0m \n\n\u001b[2mFr\u001b[0m \n\n\u001b[2mSa\u001b[0m \n\n\u001b[2mSu\u001b[0m \n\n \u001b[2mless\u001b[0m \u001b[2m·\u001b[22m\u001b[38;2;117;99;87m░\u001b[39m\u001b[38;2;161;125;102m▒\u001b[39m\u001b[38;2;206;152;116m▓\u001b[39m\u001b[38;2;250;178;131m█\u001b[39m \u001b[2mmore\u001b[0m\n\n\u001b[1;38;2;250;178;131m3\u001b[0m sessions\n\u001b[1;38;2;250;178;131m1\u001b[0m prompt · \u001b[1;38;2;250;178;131m1\u001b[0m step · \u001b[1;38;2;250;178;131m1\u001b[0m token\ntool stats unavailable · \u001b[1;38;2;250;178;131m1\u001b[0m active day · best streak \u001b[1;38;2;250;178;131m1\u001b[0m day\n\n\u001b[2mopencode.ai\u001b[0m"}, +{"stats":"no tool stats","name":"full","options":{"label":"2026 so far","scope":"current project","models":true,"tools":true,"cost":true,"limit":5,"width":100,"color":true},"output":"\u001b[2m2026 so far · current project\u001b[0m\n\nCOST & TOKENS\n cost $1234.57\n input 1\n output 0\n reasoning 0\n cache read 0\n cache write 0\n cached input 0.00%\n\nMODELS\n no model usage\n\nTOOL RELIABILITY\n tool details unavailable"}, +{"stats":"no tool stats","name":"full narrow","options":{"label":"last 365 days","scope":"all projects","models":true,"tools":true,"cost":true,"limit":1,"width":50,"color":true},"output":"\u001b[2mlast 365 days · all projects\u001b[0m\n\nCOST & TOKENS\n cost $1234.57\n input 1\n output 0\n reasoning 0\n cache read 0\n cache write 0\n cached input 0.00%\n\nMODELS\n no model usage\n\nTOOL RELIABILITY\n tool details unavailable"}, +{"stats":"no details","name":"summary","options":{"label":"last 365 days","scope":"all projects","models":false,"tools":false,"cost":false,"limit":5,"width":80,"color":true},"output":"\u001b[1;38;2;250;178;131mopencode stats\u001b[0m \u001b[2m· last 365 days · all projects\u001b[0m\n\n\u001b[1;38;2;250;178;131mactivity\u001b[0m\n \u001b[2mNov\u001b[0m\n\u001b[2mMo\u001b[0m \n\n\u001b[2mTu\u001b[0m \n\n\u001b[2mWe\u001b[0m \u001b[38;2;250;178;131m█\u001b[39m\n\n\u001b[2mTh\u001b[0m \n\n\u001b[2mFr\u001b[0m \n\n\u001b[2mSa\u001b[0m \n\n\u001b[2mSu\u001b[0m \n\n \u001b[2mless\u001b[0m \u001b[2m·\u001b[22m\u001b[38;2;117;99;87m░\u001b[39m\u001b[38;2;161;125;102m▒\u001b[39m\u001b[38;2;206;152;116m▓\u001b[39m\u001b[38;2;250;178;131m█\u001b[39m \u001b[2mmore\u001b[0m\n\n\u001b[1;38;2;250;178;131m1\u001b[0m session\n\u001b[1;38;2;250;178;131m1\u001b[0m prompt · \u001b[1;38;2;250;178;131m1\u001b[0m step · \u001b[1;38;2;250;178;131m1\u001b[0m token\nno tool calls · \u001b[1;38;2;250;178;131m1\u001b[0m active day · best streak \u001b[1;38;2;250;178;131m1\u001b[0m day\n\n\u001b[2mopencode.ai\u001b[0m"}, +{"stats":"no details","name":"full","options":{"label":"2026 so far","scope":"current project","models":true,"tools":true,"cost":true,"limit":5,"width":100,"color":true},"output":"\u001b[2m2026 so far · current project\u001b[0m\n\nCOST & TOKENS\n cost $1234.57\n input 1\n output 0\n reasoning 0\n cache read 0\n cache write 0\n cached input 0.00%\n\nMODELS\n no model usage\n\nTOOL RELIABILITY\n no tool calls"}, +{"stats":"no details","name":"full narrow","options":{"label":"last 365 days","scope":"all projects","models":true,"tools":true,"cost":true,"limit":1,"width":50,"color":true},"output":"\u001b[2mlast 365 days · all projects\u001b[0m\n\nCOST & TOKENS\n cost $1234.57\n input 1\n output 0\n reasoning 0\n cache read 0\n cache write 0\n cached input 0.00%\n\nMODELS\n no model usage\n\nTOOL RELIABILITY\n no tool calls"}, +{"stats":"empty","name":"summary","options":{"label":"last 365 days","scope":"all projects","models":false,"tools":false,"cost":false,"limit":5,"width":80,"color":true},"output":"\u001b[1;38;2;250;178;131mopencode stats\u001b[0m \u001b[2m· last 365 days · all projects\u001b[0m\n\n\u001b[2mno activity in this range\u001b[0m\n\n\u001b[2mopencode.ai\u001b[0m"}, +{"stats":"empty","name":"full","options":{"label":"2026 so far","scope":"current project","models":true,"tools":true,"cost":true,"limit":5,"width":100,"color":true},"output":"\u001b[2m2026 so far · current project\u001b[0m\n\nCOST & TOKENS\n cost $0.00\n input 0\n output 0\n reasoning 0\n cache read 0\n cache write 0\n cached input 0.00%\n\nMODELS\n no model usage\n\nTOOL RELIABILITY\n tool details unavailable"}, +{"stats":"empty","name":"full narrow","options":{"label":"last 365 days","scope":"all projects","models":true,"tools":true,"cost":true,"limit":1,"width":50,"color":true},"output":"\u001b[2mlast 365 days · all projects\u001b[0m\n\nCOST & TOKENS\n cost $0.00\n input 0\n output 0\n reasoning 0\n cache read 0\n cache write 0\n cached input 0.00%\n\nMODELS\n no model usage\n\nTOOL RELIABILITY\n tool details unavailable"} +]}, +{"colorfgbg": "0;15", "cases": [ +{"stats":"full","name":"summary","options":{"label":"last 365 days","scope":"all projects","models":false,"tools":false,"cost":false,"limit":5,"width":80,"color":true},"output":"\u001b[1;38;2;59;125;216mopencode stats\u001b[0m \u001b[2m· last 365 days · all projects\u001b[0m\n\n\u001b[1;38;2;59;125;216mactivity\u001b[0m\n \u001b[2mNov Dec Jan Feb Mar Apr May Jun Jul Aug Sep Oct Nov\u001b[0m\n\u001b[2mMo\u001b[0m \u001b[38;2;153;169;192m░\u001b[39m\u001b[2m·\u001b[22m\u001b[38;2;153;169;192m░\u001b[39m\u001b[38;2;90;140;208m▓\u001b[39m\u001b[2m·\u001b[22m\u001b[38;2;90;140;208m▓\u001b[39m\u001b[38;2;153;169;192m░\u001b[39m\u001b[2m·\u001b[22m\u001b[38;2;59;125;216m█\u001b[39m\u001b[38;2;122;155;200m▒\u001b[39m\u001b[2m·\u001b[22m\u001b[38;2;122;155;200m▒\u001b[39m\u001b[38;2;59;125;216m█\u001b[39m\u001b[2m·\u001b[22m\u001b[38;2;59;125;216m█\u001b[39m\u001b[38;2;122;155;200m▒\u001b[39m\u001b[2m·\u001b[22m\u001b[38;2;122;155;200m▒\u001b[39m\u001b[38;2;90;140;208m▓\u001b[39m\u001b[2m·\u001b[22m\u001b[38;2;90;140;208m▓\u001b[39m\u001b[38;2;153;169;192m░\u001b[39m\u001b[2m·\u001b[22m\u001b[38;2;153;169;192m░\u001b[39m\u001b[38;2;90;140;208m▓\u001b[39m\u001b[2m·\u001b[22m\u001b[38;2;90;140;208m▓\u001b[39m\u001b[38;2;153;169;192m░\u001b[39m\u001b[2m·\u001b[22m\u001b[38;2;59;125;216m█\u001b[39m\u001b[38;2;122;155;200m▒\u001b[39m\u001b[2m·\u001b[22m\u001b[38;2;122;155;200m▒\u001b[39m\u001b[38;2;59;125;216m█\u001b[39m\u001b[2m·\u001b[22m\u001b[38;2;59;125;216m█\u001b[39m\u001b[38;2;122;155;200m▒\u001b[39m\u001b[2m·\u001b[22m\u001b[38;2;153;169;192m░\u001b[39m\u001b[38;2;90;140;208m▓\u001b[39m\u001b[2m·\u001b[22m\u001b[38;2;90;140;208m▓\u001b[39m\u001b[38;2;153;169;192m░\u001b[39m\u001b[2m·\u001b[22m\u001b[38;2;153;169;192m░\u001b[39m\u001b[38;2;90;140;208m▓\u001b[39m\u001b[2m·\u001b[22m\u001b[38;2;122;155;200m▒\u001b[39m\u001b[38;2;59;125;216m█\u001b[39m\u001b[2m·\u001b[22m\u001b[38;2;59;125;216m█\u001b[39m\u001b[38;2;122;155;200m▒\u001b[39m\n\n\u001b[2mTu\u001b[0m \u001b[2m·\u001b[22m\u001b[38;2;122;155;200m▒\u001b[39m\u001b[38;2;59;125;216m█\u001b[39m\u001b[2m·\u001b[22m\u001b[38;2;90;140;208m▓\u001b[39m\u001b[38;2;153;169;192m░\u001b[39m\u001b[2m·\u001b[22m\u001b[38;2;153;169;192m░\u001b[39m\u001b[38;2;90;140;208m▓\u001b[39m\u001b[2m·\u001b[22m\u001b[38;2;90;140;208m▓\u001b[39m\u001b[38;2;153;169;192m░\u001b[39m\u001b[2m·\u001b[22m\u001b[38;2;153;169;192m░\u001b[39m\u001b[38;2;122;155;200m▒\u001b[39m\u001b[2m·\u001b[22m\u001b[38;2;122;155;200m▒\u001b[39m\u001b[38;2;59;125;216m█\u001b[39m\u001b[2m·\u001b[22m\u001b[38;2;59;125;216m█\u001b[39m\u001b[38;2;122;155;200m▒\u001b[39m\u001b[2m·\u001b[22m\u001b[38;2;122;155;200m▒\u001b[39m\u001b[38;2;59;125;216m█\u001b[39m\u001b[2m·\u001b[22m\u001b[38;2;90;140;208m▓\u001b[39m\u001b[38;2;153;169;192m░\u001b[39m\u001b[2m·\u001b[22m\u001b[38;2;153;169;192m░\u001b[39m\u001b[38;2;90;140;208m▓\u001b[39m\u001b[2m·\u001b[22m\u001b[38;2;90;140;208m▓\u001b[39m\u001b[38;2;153;169;192m░\u001b[39m\u001b[2m·\u001b[22m\u001b[38;2;59;125;216m█\u001b[39m\u001b[38;2;122;155;200m▒\u001b[39m\u001b[2m·\u001b[22m\u001b[38;2;122;155;200m▒\u001b[39m\u001b[38;2;59;125;216m█\u001b[39m\u001b[2m·\u001b[22m\u001b[38;2;59;125;216m█\u001b[39m\u001b[38;2;122;155;200m▒\u001b[39m\u001b[2m·\u001b[22m\u001b[38;2;153;169;192m░\u001b[39m\u001b[38;2;90;140;208m▓\u001b[39m\u001b[2m·\u001b[22m\u001b[38;2;90;140;208m▓\u001b[39m\u001b[38;2;153;169;192m░\u001b[39m\u001b[2m·\u001b[22m\u001b[38;2;153;169;192m░\u001b[39m\u001b[38;2;90;140;208m▓\u001b[39m\u001b[2m·\u001b[22m\n\n\u001b[2mWe\u001b[0m \u001b[2m·\u001b[22m\u001b[38;2;122;155;200m▒\u001b[39m\u001b[38;2;59;125;216m█\u001b[39m\u001b[2m·\u001b[22m\u001b[38;2;59;125;216m█\u001b[39m\u001b[38;2;122;155;200m▒\u001b[39m\u001b[2m·\u001b[22m\u001b[38;2;122;155;200m▒\u001b[39m\u001b[38;2;59;125;216m█\u001b[39m\u001b[2m·\u001b[22m\u001b[38;2;59;125;216m█\u001b[39m\u001b[38;2;153;169;192m░\u001b[39m\u001b[2m·\u001b[22m\u001b[38;2;153;169;192m░\u001b[39m\u001b[38;2;90;140;208m▓\u001b[39m\u001b[2m·\u001b[22m\u001b[38;2;90;140;208m▓\u001b[39m\u001b[38;2;153;169;192m░\u001b[39m\u001b[2m·\u001b[22m\u001b[38;2;153;169;192m░\u001b[39m\u001b[38;2;122;155;200m▒\u001b[39m\u001b[2m·\u001b[22m\u001b[38;2;122;155;200m▒\u001b[39m\u001b[38;2;59;125;216m█\u001b[39m\u001b[2m·\u001b[22m\u001b[38;2;59;125;216m█\u001b[39m\u001b[38;2;122;155;200m▒\u001b[39m\u001b[2m·\u001b[22m\u001b[38;2;122;155;200m▒\u001b[39m\u001b[38;2;59;125;216m█\u001b[39m\u001b[2m·\u001b[22m\u001b[38;2;90;140;208m▓\u001b[39m\u001b[38;2;153;169;192m░\u001b[39m\u001b[2m·\u001b[22m\u001b[38;2;153;169;192m░\u001b[39m\u001b[38;2;90;140;208m▓\u001b[39m\u001b[2m·\u001b[22m\u001b[38;2;90;140;208m▓\u001b[39m\u001b[38;2;153;169;192m░\u001b[39m\u001b[2m·\u001b[22m\u001b[38;2;59;125;216m█\u001b[39m\u001b[38;2;122;155;200m▒\u001b[39m\u001b[2m·\u001b[22m\u001b[38;2;122;155;200m▒\u001b[39m\u001b[38;2;59;125;216m█\u001b[39m\u001b[2m·\u001b[22m\u001b[38;2;59;125;216m█\u001b[39m\u001b[38;2;122;155;200m▒\u001b[39m\u001b[2m·\u001b[22m\u001b[38;2;153;169;192m░\u001b[39m\u001b[38;2;90;140;208m▓\u001b[39m\u001b[2m·\u001b[22m\u001b[38;2;90;140;208m▓\u001b[39m\n\n\u001b[2mTh\u001b[0m \u001b[38;2;90;140;208m▓\u001b[39m\u001b[38;2;153;169;192m░\u001b[39m\u001b[2m·\u001b[22m\u001b[38;2;153;169;192m░\u001b[39m\u001b[38;2;90;140;208m▓\u001b[39m\u001b[2m·\u001b[22m\u001b[38;2;122;155;200m▒\u001b[39m\u001b[38;2;59;125;216m█\u001b[39m\u001b[2m·\u001b[22m\u001b[38;2;59;125;216m█\u001b[39m\u001b[38;2;122;155;200m▒\u001b[39m\u001b[2m·\u001b[22m\u001b[38;2;122;155;200m▒\u001b[39m\u001b[38;2;59;125;216m█\u001b[39m\u001b[2m·\u001b[22m\u001b[38;2;59;125;216m█\u001b[39m\u001b[38;2;153;169;192m░\u001b[39m\u001b[2m·\u001b[22m\u001b[38;2;153;169;192m░\u001b[39m\u001b[38;2;90;140;208m▓\u001b[39m\u001b[2m·\u001b[22m\u001b[38;2;90;140;208m▓\u001b[39m\u001b[38;2;153;169;192m░\u001b[39m\u001b[2m·\u001b[22m\u001b[38;2;153;169;192m░\u001b[39m\u001b[38;2;90;140;208m▓\u001b[39m\u001b[2m·\u001b[22m\u001b[38;2;122;155;200m▒\u001b[39m\u001b[38;2;59;125;216m█\u001b[39m\u001b[2m·\u001b[22m\u001b[38;2;59;125;216m█\u001b[39m\u001b[38;2;122;155;200m▒\u001b[39m\u001b[2m·\u001b[22m\u001b[38;2;122;155;200m▒\u001b[39m\u001b[38;2;59;125;216m█\u001b[39m\u001b[2m·\u001b[22m\u001b[38;2;90;140;208m▓\u001b[39m\u001b[38;2;153;169;192m░\u001b[39m\u001b[2m·\u001b[22m\u001b[38;2;153;169;192m░\u001b[39m\u001b[38;2;90;140;208m▓\u001b[39m\u001b[2m·\u001b[22m\u001b[38;2;90;140;208m▓\u001b[39m\u001b[38;2;153;169;192m░\u001b[39m\u001b[2m·\u001b[22m\u001b[38;2;59;125;216m█\u001b[39m\u001b[38;2;122;155;200m▒\u001b[39m\u001b[2m·\u001b[22m\u001b[38;2;122;155;200m▒\u001b[39m\u001b[38;2;59;125;216m█\u001b[39m\u001b[2m·\u001b[22m\u001b[38;2;59;125;216m█\u001b[39m \n\n\u001b[2mFr\u001b[0m \u001b[38;2;122;155;200m▒\u001b[39m\u001b[2m·\u001b[22m\u001b[38;2;153;169;192m░\u001b[39m\u001b[38;2;90;140;208m▓\u001b[39m\u001b[2m·\u001b[22m\u001b[38;2;90;140;208m▓\u001b[39m\u001b[38;2;153;169;192m░\u001b[39m\u001b[2m·\u001b[22m\u001b[38;2;153;169;192m░\u001b[39m\u001b[38;2;90;140;208m▓\u001b[39m\u001b[2m·\u001b[22m\u001b[38;2;90;140;208m▓\u001b[39m\u001b[38;2;59;125;216m█\u001b[39m\u001b[2m·\u001b[22m\u001b[38;2;59;125;216m█\u001b[39m\u001b[38;2;122;155;200m▒\u001b[39m\u001b[2m·\u001b[22m\u001b[38;2;122;155;200m▒\u001b[39m\u001b[38;2;59;125;216m█\u001b[39m\u001b[2m·\u001b[22m\u001b[38;2;59;125;216m█\u001b[39m\u001b[38;2;153;169;192m░\u001b[39m\u001b[2m·\u001b[22m\u001b[38;2;153;169;192m░\u001b[39m\u001b[38;2;90;140;208m▓\u001b[39m\u001b[2m·\u001b[22m\u001b[38;2;90;140;208m▓\u001b[39m\u001b[38;2;153;169;192m░\u001b[39m\u001b[2m·\u001b[22m\u001b[38;2;153;169;192m░\u001b[39m\u001b[38;2;90;140;208m▓\u001b[39m\u001b[2m·\u001b[22m\u001b[38;2;122;155;200m▒\u001b[39m\u001b[38;2;59;125;216m█\u001b[39m\u001b[2m·\u001b[22m\u001b[38;2;59;125;216m█\u001b[39m\u001b[38;2;122;155;200m▒\u001b[39m\u001b[2m·\u001b[22m\u001b[38;2;122;155;200m▒\u001b[39m\u001b[38;2;59;125;216m█\u001b[39m\u001b[2m·\u001b[22m\u001b[38;2;90;140;208m▓\u001b[39m\u001b[38;2;153;169;192m░\u001b[39m\u001b[2m·\u001b[22m\u001b[38;2;153;169;192m░\u001b[39m\u001b[38;2;90;140;208m▓\u001b[39m\u001b[2m·\u001b[22m\u001b[38;2;90;140;208m▓\u001b[39m\u001b[38;2;153;169;192m░\u001b[39m\u001b[2m·\u001b[22m\u001b[38;2;59;125;216m█\u001b[39m\u001b[38;2;122;155;200m▒\u001b[39m \n\n\u001b[2mSa\u001b[0m \u001b[2m·\u001b[22m\u001b[38;2;122;155;200m▒\u001b[39m\u001b[38;2;59;125;216m█\u001b[39m\u001b[2m·\u001b[22m\u001b[38;2;59;125;216m█\u001b[39m\u001b[38;2;122;155;200m▒\u001b[39m\u001b[2m·\u001b[22m\u001b[38;2;153;169;192m░\u001b[39m\u001b[38;2;90;140;208m▓\u001b[39m\u001b[2m·\u001b[22m\u001b[38;2;90;140;208m▓\u001b[39m\u001b[38;2;153;169;192m░\u001b[39m\u001b[2m·\u001b[22m\u001b[38;2;153;169;192m░\u001b[39m\u001b[38;2;90;140;208m▓\u001b[39m\u001b[2m·\u001b[22m\u001b[38;2;90;140;208m▓\u001b[39m\u001b[38;2;59;125;216m█\u001b[39m\u001b[2m·\u001b[22m\u001b[38;2;59;125;216m█\u001b[39m\u001b[38;2;122;155;200m▒\u001b[39m\u001b[2m·\u001b[22m\u001b[38;2;122;155;200m▒\u001b[39m\u001b[38;2;59;125;216m█\u001b[39m\u001b[2m·\u001b[22m\u001b[38;2;59;125;216m█\u001b[39m\u001b[38;2;122;155;200m▒\u001b[39m\u001b[2m·\u001b[22m\u001b[38;2;153;169;192m░\u001b[39m\u001b[38;2;90;140;208m▓\u001b[39m\u001b[2m·\u001b[22m\u001b[38;2;90;140;208m▓\u001b[39m\u001b[38;2;153;169;192m░\u001b[39m\u001b[2m·\u001b[22m\u001b[38;2;153;169;192m░\u001b[39m\u001b[38;2;90;140;208m▓\u001b[39m\u001b[2m·\u001b[22m\u001b[38;2;122;155;200m▒\u001b[39m\u001b[38;2;59;125;216m█\u001b[39m\u001b[2m·\u001b[22m\u001b[38;2;59;125;216m█\u001b[39m\u001b[38;2;122;155;200m▒\u001b[39m\u001b[2m·\u001b[22m\u001b[38;2;122;155;200m▒\u001b[39m\u001b[38;2;59;125;216m█\u001b[39m\u001b[2m·\u001b[22m\u001b[38;2;90;140;208m▓\u001b[39m\u001b[38;2;153;169;192m░\u001b[39m\u001b[2m·\u001b[22m\u001b[38;2;153;169;192m░\u001b[39m\u001b[38;2;90;140;208m▓\u001b[39m\u001b[2m·\u001b[22m \n\n\u001b[2mSu\u001b[0m \u001b[38;2;90;140;208m▓\u001b[39m\u001b[38;2;153;169;192m░\u001b[39m\u001b[2m·\u001b[22m\u001b[38;2;59;125;216m█\u001b[39m\u001b[38;2;122;155;200m▒\u001b[39m\u001b[2m·\u001b[22m\u001b[38;2;122;155;200m▒\u001b[39m\u001b[38;2;59;125;216m█\u001b[39m\u001b[2m·\u001b[22m\u001b[38;2;59;125;216m█\u001b[39m\u001b[38;2;122;155;200m▒\u001b[39m\u001b[2m·\u001b[22m\u001b[38;2;122;155;200m▒\u001b[39m\u001b[38;2;90;140;208m▓\u001b[39m\u001b[2m·\u001b[22m\u001b[38;2;90;140;208m▓\u001b[39m\u001b[38;2;153;169;192m░\u001b[39m\u001b[2m·\u001b[22m\u001b[38;2;153;169;192m░\u001b[39m\u001b[38;2;90;140;208m▓\u001b[39m\u001b[2m·\u001b[22m\u001b[38;2;90;140;208m▓\u001b[39m\u001b[38;2;59;125;216m█\u001b[39m\u001b[2m·\u001b[22m\u001b[38;2;59;125;216m█\u001b[39m\u001b[38;2;122;155;200m▒\u001b[39m\u001b[2m·\u001b[22m\u001b[38;2;122;155;200m▒\u001b[39m\u001b[38;2;59;125;216m█\u001b[39m\u001b[2m·\u001b[22m\u001b[38;2;59;125;216m█\u001b[39m\u001b[38;2;122;155;200m▒\u001b[39m\u001b[2m·\u001b[22m\u001b[38;2;153;169;192m░\u001b[39m\u001b[38;2;90;140;208m▓\u001b[39m\u001b[2m·\u001b[22m\u001b[38;2;90;140;208m▓\u001b[39m\u001b[38;2;153;169;192m░\u001b[39m\u001b[2m·\u001b[22m\u001b[38;2;153;169;192m░\u001b[39m\u001b[38;2;90;140;208m▓\u001b[39m\u001b[2m·\u001b[22m\u001b[38;2;122;155;200m▒\u001b[39m\u001b[38;2;59;125;216m█\u001b[39m\u001b[2m·\u001b[22m\u001b[38;2;59;125;216m█\u001b[39m\u001b[38;2;122;155;200m▒\u001b[39m\u001b[2m·\u001b[22m\u001b[38;2;122;155;200m▒\u001b[39m\u001b[38;2;59;125;216m█\u001b[39m\u001b[2m·\u001b[22m\u001b[38;2;59;125;216m█\u001b[39m \n\n \u001b[2mless\u001b[0m \u001b[2m·\u001b[22m\u001b[38;2;153;169;192m░\u001b[39m\u001b[38;2;122;155;200m▒\u001b[39m\u001b[38;2;90;140;208m▓\u001b[39m\u001b[38;2;59;125;216m█\u001b[39m \u001b[2mmore\u001b[0m\n\n\u001b[1;38;2;59;125;216m1.2k\u001b[0m sessions · \u001b[1;38;2;59;125;216m56\u001b[0m subagents\n\u001b[1;38;2;59;125;216m9.9k\u001b[0m prompts · \u001b[1;38;2;59;125;216m54.3k\u001b[0m steps · \u001b[1;38;2;59;125;216m1b\u001b[0m tokens\n\u001b[1;38;2;59;125;216m98.5%\u001b[0m tool success · \u001b[1;38;2;59;125;216m243\u001b[0m active days · best streak \u001b[1;38;2;59;125;216m17\u001b[0m days\n\n\u001b[2mopencode.ai\u001b[0m"}, +{"stats":"full","name":"summary wide","options":{"label":"last 365 days","scope":"all projects","models":false,"tools":false,"cost":false,"limit":5,"width":120,"color":true},"output":"\u001b[1;38;2;59;125;216mopencode stats\u001b[0m \u001b[2m· last 365 days · all projects\u001b[0m\n\n\u001b[1;38;2;59;125;216mactivity\u001b[0m\n \u001b[2mNov Dec Jan Feb Mar Apr May Jun Jul Aug Sep Oct Nov\u001b[0m\n\u001b[2mMo\u001b[0m \u001b[38;2;153;169;192m░\u001b[39m\u001b[2m·\u001b[22m\u001b[38;2;153;169;192m░\u001b[39m\u001b[38;2;90;140;208m▓\u001b[39m\u001b[2m·\u001b[22m\u001b[38;2;90;140;208m▓\u001b[39m\u001b[38;2;153;169;192m░\u001b[39m\u001b[2m·\u001b[22m\u001b[38;2;59;125;216m█\u001b[39m\u001b[38;2;122;155;200m▒\u001b[39m\u001b[2m·\u001b[22m\u001b[38;2;122;155;200m▒\u001b[39m\u001b[38;2;59;125;216m█\u001b[39m\u001b[2m·\u001b[22m\u001b[38;2;59;125;216m█\u001b[39m\u001b[38;2;122;155;200m▒\u001b[39m\u001b[2m·\u001b[22m\u001b[38;2;122;155;200m▒\u001b[39m\u001b[38;2;90;140;208m▓\u001b[39m\u001b[2m·\u001b[22m\u001b[38;2;90;140;208m▓\u001b[39m\u001b[38;2;153;169;192m░\u001b[39m\u001b[2m·\u001b[22m\u001b[38;2;153;169;192m░\u001b[39m\u001b[38;2;90;140;208m▓\u001b[39m\u001b[2m·\u001b[22m\u001b[38;2;90;140;208m▓\u001b[39m\u001b[38;2;153;169;192m░\u001b[39m\u001b[2m·\u001b[22m\u001b[38;2;59;125;216m█\u001b[39m\u001b[38;2;122;155;200m▒\u001b[39m\u001b[2m·\u001b[22m\u001b[38;2;122;155;200m▒\u001b[39m\u001b[38;2;59;125;216m█\u001b[39m\u001b[2m·\u001b[22m\u001b[38;2;59;125;216m█\u001b[39m\u001b[38;2;122;155;200m▒\u001b[39m\u001b[2m·\u001b[22m\u001b[38;2;153;169;192m░\u001b[39m\u001b[38;2;90;140;208m▓\u001b[39m\u001b[2m·\u001b[22m\u001b[38;2;90;140;208m▓\u001b[39m\u001b[38;2;153;169;192m░\u001b[39m\u001b[2m·\u001b[22m\u001b[38;2;153;169;192m░\u001b[39m\u001b[38;2;90;140;208m▓\u001b[39m\u001b[2m·\u001b[22m\u001b[38;2;122;155;200m▒\u001b[39m\u001b[38;2;59;125;216m█\u001b[39m\u001b[2m·\u001b[22m\u001b[38;2;59;125;216m█\u001b[39m\u001b[38;2;122;155;200m▒\u001b[39m\n\n\u001b[2mTu\u001b[0m \u001b[2m·\u001b[22m\u001b[38;2;122;155;200m▒\u001b[39m\u001b[38;2;59;125;216m█\u001b[39m\u001b[2m·\u001b[22m\u001b[38;2;90;140;208m▓\u001b[39m\u001b[38;2;153;169;192m░\u001b[39m\u001b[2m·\u001b[22m\u001b[38;2;153;169;192m░\u001b[39m\u001b[38;2;90;140;208m▓\u001b[39m\u001b[2m·\u001b[22m\u001b[38;2;90;140;208m▓\u001b[39m\u001b[38;2;153;169;192m░\u001b[39m\u001b[2m·\u001b[22m\u001b[38;2;153;169;192m░\u001b[39m\u001b[38;2;122;155;200m▒\u001b[39m\u001b[2m·\u001b[22m\u001b[38;2;122;155;200m▒\u001b[39m\u001b[38;2;59;125;216m█\u001b[39m\u001b[2m·\u001b[22m\u001b[38;2;59;125;216m█\u001b[39m\u001b[38;2;122;155;200m▒\u001b[39m\u001b[2m·\u001b[22m\u001b[38;2;122;155;200m▒\u001b[39m\u001b[38;2;59;125;216m█\u001b[39m\u001b[2m·\u001b[22m\u001b[38;2;90;140;208m▓\u001b[39m\u001b[38;2;153;169;192m░\u001b[39m\u001b[2m·\u001b[22m\u001b[38;2;153;169;192m░\u001b[39m\u001b[38;2;90;140;208m▓\u001b[39m\u001b[2m·\u001b[22m\u001b[38;2;90;140;208m▓\u001b[39m\u001b[38;2;153;169;192m░\u001b[39m\u001b[2m·\u001b[22m\u001b[38;2;59;125;216m█\u001b[39m\u001b[38;2;122;155;200m▒\u001b[39m\u001b[2m·\u001b[22m\u001b[38;2;122;155;200m▒\u001b[39m\u001b[38;2;59;125;216m█\u001b[39m\u001b[2m·\u001b[22m\u001b[38;2;59;125;216m█\u001b[39m\u001b[38;2;122;155;200m▒\u001b[39m\u001b[2m·\u001b[22m\u001b[38;2;153;169;192m░\u001b[39m\u001b[38;2;90;140;208m▓\u001b[39m\u001b[2m·\u001b[22m\u001b[38;2;90;140;208m▓\u001b[39m\u001b[38;2;153;169;192m░\u001b[39m\u001b[2m·\u001b[22m\u001b[38;2;153;169;192m░\u001b[39m\u001b[38;2;90;140;208m▓\u001b[39m\u001b[2m·\u001b[22m\n\n\u001b[2mWe\u001b[0m \u001b[2m·\u001b[22m\u001b[38;2;122;155;200m▒\u001b[39m\u001b[38;2;59;125;216m█\u001b[39m\u001b[2m·\u001b[22m\u001b[38;2;59;125;216m█\u001b[39m\u001b[38;2;122;155;200m▒\u001b[39m\u001b[2m·\u001b[22m\u001b[38;2;122;155;200m▒\u001b[39m\u001b[38;2;59;125;216m█\u001b[39m\u001b[2m·\u001b[22m\u001b[38;2;59;125;216m█\u001b[39m\u001b[38;2;153;169;192m░\u001b[39m\u001b[2m·\u001b[22m\u001b[38;2;153;169;192m░\u001b[39m\u001b[38;2;90;140;208m▓\u001b[39m\u001b[2m·\u001b[22m\u001b[38;2;90;140;208m▓\u001b[39m\u001b[38;2;153;169;192m░\u001b[39m\u001b[2m·\u001b[22m\u001b[38;2;153;169;192m░\u001b[39m\u001b[38;2;122;155;200m▒\u001b[39m\u001b[2m·\u001b[22m\u001b[38;2;122;155;200m▒\u001b[39m\u001b[38;2;59;125;216m█\u001b[39m\u001b[2m·\u001b[22m\u001b[38;2;59;125;216m█\u001b[39m\u001b[38;2;122;155;200m▒\u001b[39m\u001b[2m·\u001b[22m\u001b[38;2;122;155;200m▒\u001b[39m\u001b[38;2;59;125;216m█\u001b[39m\u001b[2m·\u001b[22m\u001b[38;2;90;140;208m▓\u001b[39m\u001b[38;2;153;169;192m░\u001b[39m\u001b[2m·\u001b[22m\u001b[38;2;153;169;192m░\u001b[39m\u001b[38;2;90;140;208m▓\u001b[39m\u001b[2m·\u001b[22m\u001b[38;2;90;140;208m▓\u001b[39m\u001b[38;2;153;169;192m░\u001b[39m\u001b[2m·\u001b[22m\u001b[38;2;59;125;216m█\u001b[39m\u001b[38;2;122;155;200m▒\u001b[39m\u001b[2m·\u001b[22m\u001b[38;2;122;155;200m▒\u001b[39m\u001b[38;2;59;125;216m█\u001b[39m\u001b[2m·\u001b[22m\u001b[38;2;59;125;216m█\u001b[39m\u001b[38;2;122;155;200m▒\u001b[39m\u001b[2m·\u001b[22m\u001b[38;2;153;169;192m░\u001b[39m\u001b[38;2;90;140;208m▓\u001b[39m\u001b[2m·\u001b[22m\u001b[38;2;90;140;208m▓\u001b[39m\n\n\u001b[2mTh\u001b[0m \u001b[38;2;90;140;208m▓\u001b[39m\u001b[38;2;153;169;192m░\u001b[39m\u001b[2m·\u001b[22m\u001b[38;2;153;169;192m░\u001b[39m\u001b[38;2;90;140;208m▓\u001b[39m\u001b[2m·\u001b[22m\u001b[38;2;122;155;200m▒\u001b[39m\u001b[38;2;59;125;216m█\u001b[39m\u001b[2m·\u001b[22m\u001b[38;2;59;125;216m█\u001b[39m\u001b[38;2;122;155;200m▒\u001b[39m\u001b[2m·\u001b[22m\u001b[38;2;122;155;200m▒\u001b[39m\u001b[38;2;59;125;216m█\u001b[39m\u001b[2m·\u001b[22m\u001b[38;2;59;125;216m█\u001b[39m\u001b[38;2;153;169;192m░\u001b[39m\u001b[2m·\u001b[22m\u001b[38;2;153;169;192m░\u001b[39m\u001b[38;2;90;140;208m▓\u001b[39m\u001b[2m·\u001b[22m\u001b[38;2;90;140;208m▓\u001b[39m\u001b[38;2;153;169;192m░\u001b[39m\u001b[2m·\u001b[22m\u001b[38;2;153;169;192m░\u001b[39m\u001b[38;2;90;140;208m▓\u001b[39m\u001b[2m·\u001b[22m\u001b[38;2;122;155;200m▒\u001b[39m\u001b[38;2;59;125;216m█\u001b[39m\u001b[2m·\u001b[22m\u001b[38;2;59;125;216m█\u001b[39m\u001b[38;2;122;155;200m▒\u001b[39m\u001b[2m·\u001b[22m\u001b[38;2;122;155;200m▒\u001b[39m\u001b[38;2;59;125;216m█\u001b[39m\u001b[2m·\u001b[22m\u001b[38;2;90;140;208m▓\u001b[39m\u001b[38;2;153;169;192m░\u001b[39m\u001b[2m·\u001b[22m\u001b[38;2;153;169;192m░\u001b[39m\u001b[38;2;90;140;208m▓\u001b[39m\u001b[2m·\u001b[22m\u001b[38;2;90;140;208m▓\u001b[39m\u001b[38;2;153;169;192m░\u001b[39m\u001b[2m·\u001b[22m\u001b[38;2;59;125;216m█\u001b[39m\u001b[38;2;122;155;200m▒\u001b[39m\u001b[2m·\u001b[22m\u001b[38;2;122;155;200m▒\u001b[39m\u001b[38;2;59;125;216m█\u001b[39m\u001b[2m·\u001b[22m\u001b[38;2;59;125;216m█\u001b[39m \n\n\u001b[2mFr\u001b[0m \u001b[38;2;122;155;200m▒\u001b[39m\u001b[2m·\u001b[22m\u001b[38;2;153;169;192m░\u001b[39m\u001b[38;2;90;140;208m▓\u001b[39m\u001b[2m·\u001b[22m\u001b[38;2;90;140;208m▓\u001b[39m\u001b[38;2;153;169;192m░\u001b[39m\u001b[2m·\u001b[22m\u001b[38;2;153;169;192m░\u001b[39m\u001b[38;2;90;140;208m▓\u001b[39m\u001b[2m·\u001b[22m\u001b[38;2;90;140;208m▓\u001b[39m\u001b[38;2;59;125;216m█\u001b[39m\u001b[2m·\u001b[22m\u001b[38;2;59;125;216m█\u001b[39m\u001b[38;2;122;155;200m▒\u001b[39m\u001b[2m·\u001b[22m\u001b[38;2;122;155;200m▒\u001b[39m\u001b[38;2;59;125;216m█\u001b[39m\u001b[2m·\u001b[22m\u001b[38;2;59;125;216m█\u001b[39m\u001b[38;2;153;169;192m░\u001b[39m\u001b[2m·\u001b[22m\u001b[38;2;153;169;192m░\u001b[39m\u001b[38;2;90;140;208m▓\u001b[39m\u001b[2m·\u001b[22m\u001b[38;2;90;140;208m▓\u001b[39m\u001b[38;2;153;169;192m░\u001b[39m\u001b[2m·\u001b[22m\u001b[38;2;153;169;192m░\u001b[39m\u001b[38;2;90;140;208m▓\u001b[39m\u001b[2m·\u001b[22m\u001b[38;2;122;155;200m▒\u001b[39m\u001b[38;2;59;125;216m█\u001b[39m\u001b[2m·\u001b[22m\u001b[38;2;59;125;216m█\u001b[39m\u001b[38;2;122;155;200m▒\u001b[39m\u001b[2m·\u001b[22m\u001b[38;2;122;155;200m▒\u001b[39m\u001b[38;2;59;125;216m█\u001b[39m\u001b[2m·\u001b[22m\u001b[38;2;90;140;208m▓\u001b[39m\u001b[38;2;153;169;192m░\u001b[39m\u001b[2m·\u001b[22m\u001b[38;2;153;169;192m░\u001b[39m\u001b[38;2;90;140;208m▓\u001b[39m\u001b[2m·\u001b[22m\u001b[38;2;90;140;208m▓\u001b[39m\u001b[38;2;153;169;192m░\u001b[39m\u001b[2m·\u001b[22m\u001b[38;2;59;125;216m█\u001b[39m\u001b[38;2;122;155;200m▒\u001b[39m \n\n\u001b[2mSa\u001b[0m \u001b[2m·\u001b[22m\u001b[38;2;122;155;200m▒\u001b[39m\u001b[38;2;59;125;216m█\u001b[39m\u001b[2m·\u001b[22m\u001b[38;2;59;125;216m█\u001b[39m\u001b[38;2;122;155;200m▒\u001b[39m\u001b[2m·\u001b[22m\u001b[38;2;153;169;192m░\u001b[39m\u001b[38;2;90;140;208m▓\u001b[39m\u001b[2m·\u001b[22m\u001b[38;2;90;140;208m▓\u001b[39m\u001b[38;2;153;169;192m░\u001b[39m\u001b[2m·\u001b[22m\u001b[38;2;153;169;192m░\u001b[39m\u001b[38;2;90;140;208m▓\u001b[39m\u001b[2m·\u001b[22m\u001b[38;2;90;140;208m▓\u001b[39m\u001b[38;2;59;125;216m█\u001b[39m\u001b[2m·\u001b[22m\u001b[38;2;59;125;216m█\u001b[39m\u001b[38;2;122;155;200m▒\u001b[39m\u001b[2m·\u001b[22m\u001b[38;2;122;155;200m▒\u001b[39m\u001b[38;2;59;125;216m█\u001b[39m\u001b[2m·\u001b[22m\u001b[38;2;59;125;216m█\u001b[39m\u001b[38;2;122;155;200m▒\u001b[39m\u001b[2m·\u001b[22m\u001b[38;2;153;169;192m░\u001b[39m\u001b[38;2;90;140;208m▓\u001b[39m\u001b[2m·\u001b[22m\u001b[38;2;90;140;208m▓\u001b[39m\u001b[38;2;153;169;192m░\u001b[39m\u001b[2m·\u001b[22m\u001b[38;2;153;169;192m░\u001b[39m\u001b[38;2;90;140;208m▓\u001b[39m\u001b[2m·\u001b[22m\u001b[38;2;122;155;200m▒\u001b[39m\u001b[38;2;59;125;216m█\u001b[39m\u001b[2m·\u001b[22m\u001b[38;2;59;125;216m█\u001b[39m\u001b[38;2;122;155;200m▒\u001b[39m\u001b[2m·\u001b[22m\u001b[38;2;122;155;200m▒\u001b[39m\u001b[38;2;59;125;216m█\u001b[39m\u001b[2m·\u001b[22m\u001b[38;2;90;140;208m▓\u001b[39m\u001b[38;2;153;169;192m░\u001b[39m\u001b[2m·\u001b[22m\u001b[38;2;153;169;192m░\u001b[39m\u001b[38;2;90;140;208m▓\u001b[39m\u001b[2m·\u001b[22m \n\n\u001b[2mSu\u001b[0m \u001b[38;2;90;140;208m▓\u001b[39m\u001b[38;2;153;169;192m░\u001b[39m\u001b[2m·\u001b[22m\u001b[38;2;59;125;216m█\u001b[39m\u001b[38;2;122;155;200m▒\u001b[39m\u001b[2m·\u001b[22m\u001b[38;2;122;155;200m▒\u001b[39m\u001b[38;2;59;125;216m█\u001b[39m\u001b[2m·\u001b[22m\u001b[38;2;59;125;216m█\u001b[39m\u001b[38;2;122;155;200m▒\u001b[39m\u001b[2m·\u001b[22m\u001b[38;2;122;155;200m▒\u001b[39m\u001b[38;2;90;140;208m▓\u001b[39m\u001b[2m·\u001b[22m\u001b[38;2;90;140;208m▓\u001b[39m\u001b[38;2;153;169;192m░\u001b[39m\u001b[2m·\u001b[22m\u001b[38;2;153;169;192m░\u001b[39m\u001b[38;2;90;140;208m▓\u001b[39m\u001b[2m·\u001b[22m\u001b[38;2;90;140;208m▓\u001b[39m\u001b[38;2;59;125;216m█\u001b[39m\u001b[2m·\u001b[22m\u001b[38;2;59;125;216m█\u001b[39m\u001b[38;2;122;155;200m▒\u001b[39m\u001b[2m·\u001b[22m\u001b[38;2;122;155;200m▒\u001b[39m\u001b[38;2;59;125;216m█\u001b[39m\u001b[2m·\u001b[22m\u001b[38;2;59;125;216m█\u001b[39m\u001b[38;2;122;155;200m▒\u001b[39m\u001b[2m·\u001b[22m\u001b[38;2;153;169;192m░\u001b[39m\u001b[38;2;90;140;208m▓\u001b[39m\u001b[2m·\u001b[22m\u001b[38;2;90;140;208m▓\u001b[39m\u001b[38;2;153;169;192m░\u001b[39m\u001b[2m·\u001b[22m\u001b[38;2;153;169;192m░\u001b[39m\u001b[38;2;90;140;208m▓\u001b[39m\u001b[2m·\u001b[22m\u001b[38;2;122;155;200m▒\u001b[39m\u001b[38;2;59;125;216m█\u001b[39m\u001b[2m·\u001b[22m\u001b[38;2;59;125;216m█\u001b[39m\u001b[38;2;122;155;200m▒\u001b[39m\u001b[2m·\u001b[22m\u001b[38;2;122;155;200m▒\u001b[39m\u001b[38;2;59;125;216m█\u001b[39m\u001b[2m·\u001b[22m\u001b[38;2;59;125;216m█\u001b[39m \n\n \u001b[2mless\u001b[0m \u001b[2m·\u001b[22m\u001b[38;2;153;169;192m░\u001b[39m\u001b[38;2;122;155;200m▒\u001b[39m\u001b[38;2;90;140;208m▓\u001b[39m\u001b[38;2;59;125;216m█\u001b[39m \u001b[2mmore\u001b[0m\n\n\u001b[1;38;2;59;125;216m1.2k\u001b[0m sessions · \u001b[1;38;2;59;125;216m56\u001b[0m subagents\n\u001b[1;38;2;59;125;216m9.9k\u001b[0m prompts · \u001b[1;38;2;59;125;216m54.3k\u001b[0m steps · \u001b[1;38;2;59;125;216m1b\u001b[0m tokens\n\u001b[1;38;2;59;125;216m98.5%\u001b[0m tool success · \u001b[1;38;2;59;125;216m243\u001b[0m active days · best streak \u001b[1;38;2;59;125;216m17\u001b[0m days\n\n\u001b[2mopencode.ai\u001b[0m"}, +{"stats":"full","name":"summary narrow","options":{"label":"last 365 days","scope":"all projects","models":false,"tools":false,"cost":false,"limit":5,"width":40,"color":true},"output":"\u001b[1;38;2;59;125;216mopencode stats\u001b[0m \u001b[2m· last 365 days · all projects\u001b[0m\n\n\u001b[1;38;2;59;125;216mactivity · last 36 weeks\u001b[0m\n \u001b[2mMar Apr May Jun Jul Aug Sep Oct Nov\u001b[0m\n\u001b[2mMo\u001b[0m \u001b[2m·\u001b[22m\u001b[38;2;122;155;200m▒\u001b[39m\u001b[38;2;90;140;208m▓\u001b[39m\u001b[2m·\u001b[22m\u001b[38;2;90;140;208m▓\u001b[39m\u001b[38;2;153;169;192m░\u001b[39m\u001b[2m·\u001b[22m\u001b[38;2;153;169;192m░\u001b[39m\u001b[38;2;90;140;208m▓\u001b[39m\u001b[2m·\u001b[22m\u001b[38;2;90;140;208m▓\u001b[39m\u001b[38;2;153;169;192m░\u001b[39m\u001b[2m·\u001b[22m\u001b[38;2;59;125;216m█\u001b[39m\u001b[38;2;122;155;200m▒\u001b[39m\u001b[2m·\u001b[22m\u001b[38;2;122;155;200m▒\u001b[39m\u001b[38;2;59;125;216m█\u001b[39m\u001b[2m·\u001b[22m\u001b[38;2;59;125;216m█\u001b[39m\u001b[38;2;122;155;200m▒\u001b[39m\u001b[2m·\u001b[22m\u001b[38;2;153;169;192m░\u001b[39m\u001b[38;2;90;140;208m▓\u001b[39m\u001b[2m·\u001b[22m\u001b[38;2;90;140;208m▓\u001b[39m\u001b[38;2;153;169;192m░\u001b[39m\u001b[2m·\u001b[22m\u001b[38;2;153;169;192m░\u001b[39m\u001b[38;2;90;140;208m▓\u001b[39m\u001b[2m·\u001b[22m\u001b[38;2;122;155;200m▒\u001b[39m\u001b[38;2;59;125;216m█\u001b[39m\u001b[2m·\u001b[22m\u001b[38;2;59;125;216m█\u001b[39m\u001b[38;2;122;155;200m▒\u001b[39m\n\n\u001b[2mTu\u001b[0m \u001b[38;2;122;155;200m▒\u001b[39m\u001b[38;2;59;125;216m█\u001b[39m\u001b[2m·\u001b[22m\u001b[38;2;59;125;216m█\u001b[39m\u001b[38;2;122;155;200m▒\u001b[39m\u001b[2m·\u001b[22m\u001b[38;2;122;155;200m▒\u001b[39m\u001b[38;2;59;125;216m█\u001b[39m\u001b[2m·\u001b[22m\u001b[38;2;90;140;208m▓\u001b[39m\u001b[38;2;153;169;192m░\u001b[39m\u001b[2m·\u001b[22m\u001b[38;2;153;169;192m░\u001b[39m\u001b[38;2;90;140;208m▓\u001b[39m\u001b[2m·\u001b[22m\u001b[38;2;90;140;208m▓\u001b[39m\u001b[38;2;153;169;192m░\u001b[39m\u001b[2m·\u001b[22m\u001b[38;2;59;125;216m█\u001b[39m\u001b[38;2;122;155;200m▒\u001b[39m\u001b[2m·\u001b[22m\u001b[38;2;122;155;200m▒\u001b[39m\u001b[38;2;59;125;216m█\u001b[39m\u001b[2m·\u001b[22m\u001b[38;2;59;125;216m█\u001b[39m\u001b[38;2;122;155;200m▒\u001b[39m\u001b[2m·\u001b[22m\u001b[38;2;153;169;192m░\u001b[39m\u001b[38;2;90;140;208m▓\u001b[39m\u001b[2m·\u001b[22m\u001b[38;2;90;140;208m▓\u001b[39m\u001b[38;2;153;169;192m░\u001b[39m\u001b[2m·\u001b[22m\u001b[38;2;153;169;192m░\u001b[39m\u001b[38;2;90;140;208m▓\u001b[39m\u001b[2m·\u001b[22m\n\n\u001b[2mWe\u001b[0m \u001b[38;2;153;169;192m░\u001b[39m\u001b[2m·\u001b[22m\u001b[38;2;153;169;192m░\u001b[39m\u001b[38;2;122;155;200m▒\u001b[39m\u001b[2m·\u001b[22m\u001b[38;2;122;155;200m▒\u001b[39m\u001b[38;2;59;125;216m█\u001b[39m\u001b[2m·\u001b[22m\u001b[38;2;59;125;216m█\u001b[39m\u001b[38;2;122;155;200m▒\u001b[39m\u001b[2m·\u001b[22m\u001b[38;2;122;155;200m▒\u001b[39m\u001b[38;2;59;125;216m█\u001b[39m\u001b[2m·\u001b[22m\u001b[38;2;90;140;208m▓\u001b[39m\u001b[38;2;153;169;192m░\u001b[39m\u001b[2m·\u001b[22m\u001b[38;2;153;169;192m░\u001b[39m\u001b[38;2;90;140;208m▓\u001b[39m\u001b[2m·\u001b[22m\u001b[38;2;90;140;208m▓\u001b[39m\u001b[38;2;153;169;192m░\u001b[39m\u001b[2m·\u001b[22m\u001b[38;2;59;125;216m█\u001b[39m\u001b[38;2;122;155;200m▒\u001b[39m\u001b[2m·\u001b[22m\u001b[38;2;122;155;200m▒\u001b[39m\u001b[38;2;59;125;216m█\u001b[39m\u001b[2m·\u001b[22m\u001b[38;2;59;125;216m█\u001b[39m\u001b[38;2;122;155;200m▒\u001b[39m\u001b[2m·\u001b[22m\u001b[38;2;153;169;192m░\u001b[39m\u001b[38;2;90;140;208m▓\u001b[39m\u001b[2m·\u001b[22m\u001b[38;2;90;140;208m▓\u001b[39m\n\n\u001b[2mTh\u001b[0m \u001b[2m·\u001b[22m\u001b[38;2;153;169;192m░\u001b[39m\u001b[38;2;90;140;208m▓\u001b[39m\u001b[2m·\u001b[22m\u001b[38;2;90;140;208m▓\u001b[39m\u001b[38;2;153;169;192m░\u001b[39m\u001b[2m·\u001b[22m\u001b[38;2;153;169;192m░\u001b[39m\u001b[38;2;90;140;208m▓\u001b[39m\u001b[2m·\u001b[22m\u001b[38;2;122;155;200m▒\u001b[39m\u001b[38;2;59;125;216m█\u001b[39m\u001b[2m·\u001b[22m\u001b[38;2;59;125;216m█\u001b[39m\u001b[38;2;122;155;200m▒\u001b[39m\u001b[2m·\u001b[22m\u001b[38;2;122;155;200m▒\u001b[39m\u001b[38;2;59;125;216m█\u001b[39m\u001b[2m·\u001b[22m\u001b[38;2;90;140;208m▓\u001b[39m\u001b[38;2;153;169;192m░\u001b[39m\u001b[2m·\u001b[22m\u001b[38;2;153;169;192m░\u001b[39m\u001b[38;2;90;140;208m▓\u001b[39m\u001b[2m·\u001b[22m\u001b[38;2;90;140;208m▓\u001b[39m\u001b[38;2;153;169;192m░\u001b[39m\u001b[2m·\u001b[22m\u001b[38;2;59;125;216m█\u001b[39m\u001b[38;2;122;155;200m▒\u001b[39m\u001b[2m·\u001b[22m\u001b[38;2;122;155;200m▒\u001b[39m\u001b[38;2;59;125;216m█\u001b[39m\u001b[2m·\u001b[22m\u001b[38;2;59;125;216m█\u001b[39m \n\n\u001b[2mFr\u001b[0m \u001b[38;2;122;155;200m▒\u001b[39m\u001b[38;2;59;125;216m█\u001b[39m\u001b[2m·\u001b[22m\u001b[38;2;59;125;216m█\u001b[39m\u001b[38;2;153;169;192m░\u001b[39m\u001b[2m·\u001b[22m\u001b[38;2;153;169;192m░\u001b[39m\u001b[38;2;90;140;208m▓\u001b[39m\u001b[2m·\u001b[22m\u001b[38;2;90;140;208m▓\u001b[39m\u001b[38;2;153;169;192m░\u001b[39m\u001b[2m·\u001b[22m\u001b[38;2;153;169;192m░\u001b[39m\u001b[38;2;90;140;208m▓\u001b[39m\u001b[2m·\u001b[22m\u001b[38;2;122;155;200m▒\u001b[39m\u001b[38;2;59;125;216m█\u001b[39m\u001b[2m·\u001b[22m\u001b[38;2;59;125;216m█\u001b[39m\u001b[38;2;122;155;200m▒\u001b[39m\u001b[2m·\u001b[22m\u001b[38;2;122;155;200m▒\u001b[39m\u001b[38;2;59;125;216m█\u001b[39m\u001b[2m·\u001b[22m\u001b[38;2;90;140;208m▓\u001b[39m\u001b[38;2;153;169;192m░\u001b[39m\u001b[2m·\u001b[22m\u001b[38;2;153;169;192m░\u001b[39m\u001b[38;2;90;140;208m▓\u001b[39m\u001b[2m·\u001b[22m\u001b[38;2;90;140;208m▓\u001b[39m\u001b[38;2;153;169;192m░\u001b[39m\u001b[2m·\u001b[22m\u001b[38;2;59;125;216m█\u001b[39m\u001b[38;2;122;155;200m▒\u001b[39m \n\n\u001b[2mSa\u001b[0m \u001b[38;2;59;125;216m█\u001b[39m\u001b[2m·\u001b[22m\u001b[38;2;59;125;216m█\u001b[39m\u001b[38;2;122;155;200m▒\u001b[39m\u001b[2m·\u001b[22m\u001b[38;2;122;155;200m▒\u001b[39m\u001b[38;2;59;125;216m█\u001b[39m\u001b[2m·\u001b[22m\u001b[38;2;59;125;216m█\u001b[39m\u001b[38;2;122;155;200m▒\u001b[39m\u001b[2m·\u001b[22m\u001b[38;2;153;169;192m░\u001b[39m\u001b[38;2;90;140;208m▓\u001b[39m\u001b[2m·\u001b[22m\u001b[38;2;90;140;208m▓\u001b[39m\u001b[38;2;153;169;192m░\u001b[39m\u001b[2m·\u001b[22m\u001b[38;2;153;169;192m░\u001b[39m\u001b[38;2;90;140;208m▓\u001b[39m\u001b[2m·\u001b[22m\u001b[38;2;122;155;200m▒\u001b[39m\u001b[38;2;59;125;216m█\u001b[39m\u001b[2m·\u001b[22m\u001b[38;2;59;125;216m█\u001b[39m\u001b[38;2;122;155;200m▒\u001b[39m\u001b[2m·\u001b[22m\u001b[38;2;122;155;200m▒\u001b[39m\u001b[38;2;59;125;216m█\u001b[39m\u001b[2m·\u001b[22m\u001b[38;2;90;140;208m▓\u001b[39m\u001b[38;2;153;169;192m░\u001b[39m\u001b[2m·\u001b[22m\u001b[38;2;153;169;192m░\u001b[39m\u001b[38;2;90;140;208m▓\u001b[39m\u001b[2m·\u001b[22m \n\n\u001b[2mSu\u001b[0m \u001b[2m·\u001b[22m\u001b[38;2;153;169;192m░\u001b[39m\u001b[38;2;90;140;208m▓\u001b[39m\u001b[2m·\u001b[22m\u001b[38;2;90;140;208m▓\u001b[39m\u001b[38;2;59;125;216m█\u001b[39m\u001b[2m·\u001b[22m\u001b[38;2;59;125;216m█\u001b[39m\u001b[38;2;122;155;200m▒\u001b[39m\u001b[2m·\u001b[22m\u001b[38;2;122;155;200m▒\u001b[39m\u001b[38;2;59;125;216m█\u001b[39m\u001b[2m·\u001b[22m\u001b[38;2;59;125;216m█\u001b[39m\u001b[38;2;122;155;200m▒\u001b[39m\u001b[2m·\u001b[22m\u001b[38;2;153;169;192m░\u001b[39m\u001b[38;2;90;140;208m▓\u001b[39m\u001b[2m·\u001b[22m\u001b[38;2;90;140;208m▓\u001b[39m\u001b[38;2;153;169;192m░\u001b[39m\u001b[2m·\u001b[22m\u001b[38;2;153;169;192m░\u001b[39m\u001b[38;2;90;140;208m▓\u001b[39m\u001b[2m·\u001b[22m\u001b[38;2;122;155;200m▒\u001b[39m\u001b[38;2;59;125;216m█\u001b[39m\u001b[2m·\u001b[22m\u001b[38;2;59;125;216m█\u001b[39m\u001b[38;2;122;155;200m▒\u001b[39m\u001b[2m·\u001b[22m\u001b[38;2;122;155;200m▒\u001b[39m\u001b[38;2;59;125;216m█\u001b[39m\u001b[2m·\u001b[22m\u001b[38;2;59;125;216m█\u001b[39m \n\n \u001b[2mless\u001b[0m \u001b[2m·\u001b[22m\u001b[38;2;153;169;192m░\u001b[39m\u001b[38;2;122;155;200m▒\u001b[39m\u001b[38;2;90;140;208m▓\u001b[39m\u001b[38;2;59;125;216m█\u001b[39m \u001b[2mmore\u001b[0m\n\n\u001b[1;38;2;59;125;216m1.2k\u001b[0m sessions · \u001b[1;38;2;59;125;216m56\u001b[0m subagents\n\u001b[1;38;2;59;125;216m9.9k\u001b[0m prompts · \u001b[1;38;2;59;125;216m54.3k\u001b[0m steps · \u001b[1;38;2;59;125;216m1b\u001b[0m tokens\n\u001b[1;38;2;59;125;216m98.5%\u001b[0m tool success · \u001b[1;38;2;59;125;216m243\u001b[0m active days · best streak \u001b[1;38;2;59;125;216m17\u001b[0m days\n\n\u001b[2mopencode.ai\u001b[0m"}, +{"stats":"full","name":"summary tiny","options":{"label":"last 365 days","scope":"all projects","models":false,"tools":false,"cost":false,"limit":5,"width":3,"color":true},"output":"\u001b[1;38;2;59;125;216mopencode stats\u001b[0m \u001b[2m· last 365 days · all projects\u001b[0m\n\n\u001b[1;38;2;59;125;216mactivity · last 1 weeks\u001b[0m\n \u001b[2mNov\u001b[0m\n\u001b[2mMo\u001b[0m \u001b[38;2;122;155;200m▒\u001b[39m\n\n\u001b[2mTu\u001b[0m \u001b[2m·\u001b[22m\n\n\u001b[2mWe\u001b[0m \u001b[38;2;90;140;208m▓\u001b[39m\n\n\u001b[2mTh\u001b[0m \n\n\u001b[2mFr\u001b[0m \n\n\u001b[2mSa\u001b[0m \n\n\u001b[2mSu\u001b[0m \n\n \u001b[2mless\u001b[0m \u001b[2m·\u001b[22m\u001b[38;2;153;169;192m░\u001b[39m\u001b[38;2;122;155;200m▒\u001b[39m\u001b[38;2;90;140;208m▓\u001b[39m\u001b[38;2;59;125;216m█\u001b[39m \u001b[2mmore\u001b[0m\n\n\u001b[1;38;2;59;125;216m1.2k\u001b[0m sessions · \u001b[1;38;2;59;125;216m56\u001b[0m subagents\n\u001b[1;38;2;59;125;216m9.9k\u001b[0m prompts · \u001b[1;38;2;59;125;216m54.3k\u001b[0m steps · \u001b[1;38;2;59;125;216m1b\u001b[0m tokens\n\u001b[1;38;2;59;125;216m98.5%\u001b[0m tool success · \u001b[1;38;2;59;125;216m243\u001b[0m active days · best streak \u001b[1;38;2;59;125;216m17\u001b[0m days\n\n\u001b[2mopencode.ai\u001b[0m"}, +{"stats":"full","name":"models","options":{"label":"last 365 days","scope":"all projects","models":true,"tools":false,"cost":false,"limit":5,"width":80,"color":true},"output":"\u001b[2mlast 365 days · all projects\u001b[0m\n\nMODELS\nmodel tokens steps cost\nanthropic/claude-opus-5-5 515m 40k $900.13\nopenai/gpt-5#high 1k 10k $0.01\nopenrouter/some/really-long-model… 2b 999 $334.44\nlocal/tiny 0 1 $0.00"}, +{"stats":"full","name":"models narrow","options":{"label":"last 365 days","scope":"all projects","models":true,"tools":false,"cost":false,"limit":2,"width":60,"color":true},"output":"\u001b[2mlast 365 days · all projects\u001b[0m\n\nMODELS\nanthropic/claude-opus-5-5\n 515m tokens · 40k steps · $900.13\nopenai/gpt-5#high\n 1k tokens · 10k steps · $0.01\n\n+2 more models"}, +{"stats":"full","name":"tools","options":{"label":"last 365 days","scope":"all projects","models":false,"tools":true,"cost":false,"limit":3,"width":68,"color":true},"output":"\u001b[2mlast 365 days · all projects\u001b[0m\n\nTOOL RELIABILITY\ntool calls error p50\nread 2k 0.50% 12ms\nbash 1.5k 5.08% 1.5s\nedit 800 0.00% 1000ms\n\n5k finished calls · 25 unfinished\n+3 more tools"}, +{"stats":"full","name":"tools narrow","options":{"label":"last 365 days","scope":"all projects","models":false,"tools":true,"cost":false,"limit":5,"width":67,"color":true},"output":"\u001b[2mlast 365 days · all projects\u001b[0m\n\nTOOL RELIABILITY\nread\n 2k calls · 0.50% error · 12ms p50\nbash\n 1.5k calls · 5.08% error · 1.5s p50\nedit\n 800 calls · 0.00% error · 1000ms p50\na-very-long-tool-name-from-some-mcp-server_with_suffix\n 400 calls · 0.25% error · 120s p50\npending\n 300 calls · - error · - p50\n\n5k finished calls · 25 unfinished\n+1 more tool"}, +{"stats":"full","name":"tools one more","options":{"label":"last 365 days","scope":"all projects","models":false,"tools":true,"cost":false,"limit":5,"width":30,"color":true},"output":"\u001b[2mlast 365 days · all projects\u001b[0m\n\nTOOL RELIABILITY\nread\n 2k calls · 0.50% error · 12ms p50\nbash\n 1.5k calls · 5.08% error · 1.5s p50\nedit\n 800 calls · 0.00% error · 1000ms p50\na-very-long-tool-name-from-so…\n 400 calls · 0.25% error · 120s p50\npending\n 300 calls · - error · - p50\n\n5k finished calls · 25 unfinished\n+1 more tool"}, +{"stats":"full","name":"cost","options":{"label":"last 365 days","scope":"all projects","models":false,"tools":false,"cost":true,"limit":5,"width":80,"color":true},"output":"\u001b[2mlast 365 days · all projects\u001b[0m\n\nCOST & TOKENS\n cost $1234.57\n input 12.3m\n output 2.3m\n reasoning 345.7k\n cache read 987.7m\n cache write 12.3m\n cached input 97.6%"}, +{"stats":"full","name":"full","options":{"label":"2026 so far","scope":"current project","models":true,"tools":true,"cost":true,"limit":5,"width":100,"color":true},"output":"\u001b[2m2026 so far · current project\u001b[0m\n\nCOST & TOKENS\n cost $1234.57\n input 12.3m\n output 2.3m\n reasoning 345.7k\n cache read 987.7m\n cache write 12.3m\n cached input 97.6%\n\nMODELS\nmodel tokens steps cost\nanthropic/claude-opus-5-5 515m 40k $900.13\nopenai/gpt-5#high 1k 10k $0.01\nopenrouter/some/really-long-model… 2b 999 $334.44\nlocal/tiny 0 1 $0.00\n\nTOOL RELIABILITY\ntool calls error p50\nread 2k 0.50% 12ms\nbash 1.5k 5.08% 1.5s\nedit 800 0.00% 1000ms\na-very-long-tool-name-from-some-m… 400 0.25% 120s\npending 300 - -\n\n5k finished calls · 25 unfinished\n+1 more tool"}, +{"stats":"full","name":"full narrow","options":{"label":"last 365 days","scope":"all projects","models":true,"tools":true,"cost":true,"limit":1,"width":50,"color":true},"output":"\u001b[2mlast 365 days · all projects\u001b[0m\n\nCOST & TOKENS\n cost $1234.57\n input 12.3m\n output 2.3m\n reasoning 345.7k\n cache read 987.7m\n cache write 12.3m\n cached input 97.6%\n\nMODELS\nanthropic/claude-opus-5-5\n 515m tokens · 40k steps · $900.13\n\n+3 more models\n\nTOOL RELIABILITY\nread\n 2k calls · 0.50% error · 12ms p50\n\n5k finished calls · 25 unfinished\n+5 more tools"}, +{"stats":"singular","name":"summary","options":{"label":"last 365 days","scope":"all projects","models":false,"tools":false,"cost":false,"limit":5,"width":80,"color":true},"output":"\u001b[1;38;2;59;125;216mopencode stats\u001b[0m \u001b[2m· last 365 days · all projects\u001b[0m\n\n\u001b[1;38;2;59;125;216mactivity\u001b[0m\n \u001b[2mNov\u001b[0m\n\u001b[2mMo\u001b[0m \n\n\u001b[2mTu\u001b[0m \n\n\u001b[2mWe\u001b[0m \u001b[38;2;59;125;216m█\u001b[39m\n\n\u001b[2mTh\u001b[0m \n\n\u001b[2mFr\u001b[0m \n\n\u001b[2mSa\u001b[0m \n\n\u001b[2mSu\u001b[0m \n\n \u001b[2mless\u001b[0m \u001b[2m·\u001b[22m\u001b[38;2;153;169;192m░\u001b[39m\u001b[38;2;122;155;200m▒\u001b[39m\u001b[38;2;90;140;208m▓\u001b[39m\u001b[38;2;59;125;216m█\u001b[39m \u001b[2mmore\u001b[0m\n\n\u001b[1;38;2;59;125;216m1\u001b[0m session\n\u001b[1;38;2;59;125;216m1\u001b[0m prompt · \u001b[1;38;2;59;125;216m1\u001b[0m step · \u001b[1;38;2;59;125;216m1\u001b[0m token\n\u001b[1;38;2;59;125;216m100.0%\u001b[0m tool success · \u001b[1;38;2;59;125;216m1\u001b[0m active day · best streak \u001b[1;38;2;59;125;216m1\u001b[0m day\n\n\u001b[2mopencode.ai\u001b[0m"}, +{"stats":"singular","name":"full","options":{"label":"2026 so far","scope":"current project","models":true,"tools":true,"cost":true,"limit":5,"width":100,"color":true},"output":"\u001b[2m2026 so far · current project\u001b[0m\n\nCOST & TOKENS\n cost $1234.57\n input 1\n output 0\n reasoning 0\n cache read 0\n cache write 0\n cached input 0.00%\n\nMODELS\n no model usage\n\nTOOL RELIABILITY\n tool details unavailable"}, +{"stats":"singular","name":"full narrow","options":{"label":"last 365 days","scope":"all projects","models":true,"tools":true,"cost":true,"limit":1,"width":50,"color":true},"output":"\u001b[2mlast 365 days · all projects\u001b[0m\n\nCOST & TOKENS\n cost $1234.57\n input 1\n output 0\n reasoning 0\n cache read 0\n cache write 0\n cached input 0.00%\n\nMODELS\n no model usage\n\nTOOL RELIABILITY\n tool details unavailable"}, +{"stats":"no tool calls","name":"summary","options":{"label":"last 365 days","scope":"all projects","models":false,"tools":false,"cost":false,"limit":5,"width":80,"color":true},"output":"\u001b[1;38;2;59;125;216mopencode stats\u001b[0m \u001b[2m· last 365 days · all projects\u001b[0m\n\n\u001b[1;38;2;59;125;216mactivity\u001b[0m\n \u001b[2mNov\u001b[0m\n\u001b[2mMo\u001b[0m \n\n\u001b[2mTu\u001b[0m \n\n\u001b[2mWe\u001b[0m \u001b[38;2;59;125;216m█\u001b[39m\n\n\u001b[2mTh\u001b[0m \n\n\u001b[2mFr\u001b[0m \n\n\u001b[2mSa\u001b[0m \n\n\u001b[2mSu\u001b[0m \n\n \u001b[2mless\u001b[0m \u001b[2m·\u001b[22m\u001b[38;2;153;169;192m░\u001b[39m\u001b[38;2;122;155;200m▒\u001b[39m\u001b[38;2;90;140;208m▓\u001b[39m\u001b[38;2;59;125;216m█\u001b[39m \u001b[2mmore\u001b[0m\n\n\u001b[1;38;2;59;125;216m2\u001b[0m sessions\n\u001b[1;38;2;59;125;216m1\u001b[0m prompt · \u001b[1;38;2;59;125;216m1\u001b[0m step · \u001b[1;38;2;59;125;216m1\u001b[0m token\nno tool calls · \u001b[1;38;2;59;125;216m1\u001b[0m active day · best streak \u001b[1;38;2;59;125;216m1\u001b[0m day\n\n\u001b[2mopencode.ai\u001b[0m"}, +{"stats":"no tool calls","name":"full","options":{"label":"2026 so far","scope":"current project","models":true,"tools":true,"cost":true,"limit":5,"width":100,"color":true},"output":"\u001b[2m2026 so far · current project\u001b[0m\n\nCOST & TOKENS\n cost $1234.57\n input 1\n output 0\n reasoning 0\n cache read 0\n cache write 0\n cached input 0.00%\n\nMODELS\n no model usage\n\nTOOL RELIABILITY\n tool details unavailable"}, +{"stats":"no tool calls","name":"full narrow","options":{"label":"last 365 days","scope":"all projects","models":true,"tools":true,"cost":true,"limit":1,"width":50,"color":true},"output":"\u001b[2mlast 365 days · all projects\u001b[0m\n\nCOST & TOKENS\n cost $1234.57\n input 1\n output 0\n reasoning 0\n cache read 0\n cache write 0\n cached input 0.00%\n\nMODELS\n no model usage\n\nTOOL RELIABILITY\n tool details unavailable"}, +{"stats":"no tool stats","name":"summary","options":{"label":"last 365 days","scope":"all projects","models":false,"tools":false,"cost":false,"limit":5,"width":80,"color":true},"output":"\u001b[1;38;2;59;125;216mopencode stats\u001b[0m \u001b[2m· last 365 days · all projects\u001b[0m\n\n\u001b[1;38;2;59;125;216mactivity\u001b[0m\n \u001b[2mNov\u001b[0m\n\u001b[2mMo\u001b[0m \n\n\u001b[2mTu\u001b[0m \n\n\u001b[2mWe\u001b[0m \u001b[38;2;59;125;216m█\u001b[39m\n\n\u001b[2mTh\u001b[0m \n\n\u001b[2mFr\u001b[0m \n\n\u001b[2mSa\u001b[0m \n\n\u001b[2mSu\u001b[0m \n\n \u001b[2mless\u001b[0m \u001b[2m·\u001b[22m\u001b[38;2;153;169;192m░\u001b[39m\u001b[38;2;122;155;200m▒\u001b[39m\u001b[38;2;90;140;208m▓\u001b[39m\u001b[38;2;59;125;216m█\u001b[39m \u001b[2mmore\u001b[0m\n\n\u001b[1;38;2;59;125;216m3\u001b[0m sessions\n\u001b[1;38;2;59;125;216m1\u001b[0m prompt · \u001b[1;38;2;59;125;216m1\u001b[0m step · \u001b[1;38;2;59;125;216m1\u001b[0m token\ntool stats unavailable · \u001b[1;38;2;59;125;216m1\u001b[0m active day · best streak \u001b[1;38;2;59;125;216m1\u001b[0m day\n\n\u001b[2mopencode.ai\u001b[0m"}, +{"stats":"no tool stats","name":"full","options":{"label":"2026 so far","scope":"current project","models":true,"tools":true,"cost":true,"limit":5,"width":100,"color":true},"output":"\u001b[2m2026 so far · current project\u001b[0m\n\nCOST & TOKENS\n cost $1234.57\n input 1\n output 0\n reasoning 0\n cache read 0\n cache write 0\n cached input 0.00%\n\nMODELS\n no model usage\n\nTOOL RELIABILITY\n tool details unavailable"}, +{"stats":"no tool stats","name":"full narrow","options":{"label":"last 365 days","scope":"all projects","models":true,"tools":true,"cost":true,"limit":1,"width":50,"color":true},"output":"\u001b[2mlast 365 days · all projects\u001b[0m\n\nCOST & TOKENS\n cost $1234.57\n input 1\n output 0\n reasoning 0\n cache read 0\n cache write 0\n cached input 0.00%\n\nMODELS\n no model usage\n\nTOOL RELIABILITY\n tool details unavailable"}, +{"stats":"no details","name":"summary","options":{"label":"last 365 days","scope":"all projects","models":false,"tools":false,"cost":false,"limit":5,"width":80,"color":true},"output":"\u001b[1;38;2;59;125;216mopencode stats\u001b[0m \u001b[2m· last 365 days · all projects\u001b[0m\n\n\u001b[1;38;2;59;125;216mactivity\u001b[0m\n \u001b[2mNov\u001b[0m\n\u001b[2mMo\u001b[0m \n\n\u001b[2mTu\u001b[0m \n\n\u001b[2mWe\u001b[0m \u001b[38;2;59;125;216m█\u001b[39m\n\n\u001b[2mTh\u001b[0m \n\n\u001b[2mFr\u001b[0m \n\n\u001b[2mSa\u001b[0m \n\n\u001b[2mSu\u001b[0m \n\n \u001b[2mless\u001b[0m \u001b[2m·\u001b[22m\u001b[38;2;153;169;192m░\u001b[39m\u001b[38;2;122;155;200m▒\u001b[39m\u001b[38;2;90;140;208m▓\u001b[39m\u001b[38;2;59;125;216m█\u001b[39m \u001b[2mmore\u001b[0m\n\n\u001b[1;38;2;59;125;216m1\u001b[0m session\n\u001b[1;38;2;59;125;216m1\u001b[0m prompt · \u001b[1;38;2;59;125;216m1\u001b[0m step · \u001b[1;38;2;59;125;216m1\u001b[0m token\nno tool calls · \u001b[1;38;2;59;125;216m1\u001b[0m active day · best streak \u001b[1;38;2;59;125;216m1\u001b[0m day\n\n\u001b[2mopencode.ai\u001b[0m"}, +{"stats":"no details","name":"full","options":{"label":"2026 so far","scope":"current project","models":true,"tools":true,"cost":true,"limit":5,"width":100,"color":true},"output":"\u001b[2m2026 so far · current project\u001b[0m\n\nCOST & TOKENS\n cost $1234.57\n input 1\n output 0\n reasoning 0\n cache read 0\n cache write 0\n cached input 0.00%\n\nMODELS\n no model usage\n\nTOOL RELIABILITY\n no tool calls"}, +{"stats":"no details","name":"full narrow","options":{"label":"last 365 days","scope":"all projects","models":true,"tools":true,"cost":true,"limit":1,"width":50,"color":true},"output":"\u001b[2mlast 365 days · all projects\u001b[0m\n\nCOST & TOKENS\n cost $1234.57\n input 1\n output 0\n reasoning 0\n cache read 0\n cache write 0\n cached input 0.00%\n\nMODELS\n no model usage\n\nTOOL RELIABILITY\n no tool calls"}, +{"stats":"empty","name":"summary","options":{"label":"last 365 days","scope":"all projects","models":false,"tools":false,"cost":false,"limit":5,"width":80,"color":true},"output":"\u001b[1;38;2;59;125;216mopencode stats\u001b[0m \u001b[2m· last 365 days · all projects\u001b[0m\n\n\u001b[2mno activity in this range\u001b[0m\n\n\u001b[2mopencode.ai\u001b[0m"}, +{"stats":"empty","name":"full","options":{"label":"2026 so far","scope":"current project","models":true,"tools":true,"cost":true,"limit":5,"width":100,"color":true},"output":"\u001b[2m2026 so far · current project\u001b[0m\n\nCOST & TOKENS\n cost $0.00\n input 0\n output 0\n reasoning 0\n cache read 0\n cache write 0\n cached input 0.00%\n\nMODELS\n no model usage\n\nTOOL RELIABILITY\n tool details unavailable"}, +{"stats":"empty","name":"full narrow","options":{"label":"last 365 days","scope":"all projects","models":true,"tools":true,"cost":true,"limit":1,"width":50,"color":true},"output":"\u001b[2mlast 365 days · all projects\u001b[0m\n\nCOST & TOKENS\n cost $0.00\n input 0\n output 0\n reasoning 0\n cache read 0\n cache write 0\n cached input 0.00%\n\nMODELS\n no model usage\n\nTOOL RELIABILITY\n tool details unavailable"} +]}, +{"colorfgbg": "0;7", "cases": [ +{"stats":"full","name":"summary","options":{"label":"last 365 days","scope":"all projects","models":false,"tools":false,"cost":false,"limit":5,"width":80,"color":true},"output":"\u001b[1;38;2;59;125;216mopencode stats\u001b[0m \u001b[2m· last 365 days · all projects\u001b[0m\n\n\u001b[1;38;2;59;125;216mactivity\u001b[0m\n \u001b[2mNov Dec Jan Feb Mar Apr May Jun Jul Aug Sep Oct Nov\u001b[0m\n\u001b[2mMo\u001b[0m \u001b[38;2;153;169;192m░\u001b[39m\u001b[2m·\u001b[22m\u001b[38;2;153;169;192m░\u001b[39m\u001b[38;2;90;140;208m▓\u001b[39m\u001b[2m·\u001b[22m\u001b[38;2;90;140;208m▓\u001b[39m\u001b[38;2;153;169;192m░\u001b[39m\u001b[2m·\u001b[22m\u001b[38;2;59;125;216m█\u001b[39m\u001b[38;2;122;155;200m▒\u001b[39m\u001b[2m·\u001b[22m\u001b[38;2;122;155;200m▒\u001b[39m\u001b[38;2;59;125;216m█\u001b[39m\u001b[2m·\u001b[22m\u001b[38;2;59;125;216m█\u001b[39m\u001b[38;2;122;155;200m▒\u001b[39m\u001b[2m·\u001b[22m\u001b[38;2;122;155;200m▒\u001b[39m\u001b[38;2;90;140;208m▓\u001b[39m\u001b[2m·\u001b[22m\u001b[38;2;90;140;208m▓\u001b[39m\u001b[38;2;153;169;192m░\u001b[39m\u001b[2m·\u001b[22m\u001b[38;2;153;169;192m░\u001b[39m\u001b[38;2;90;140;208m▓\u001b[39m\u001b[2m·\u001b[22m\u001b[38;2;90;140;208m▓\u001b[39m\u001b[38;2;153;169;192m░\u001b[39m\u001b[2m·\u001b[22m\u001b[38;2;59;125;216m█\u001b[39m\u001b[38;2;122;155;200m▒\u001b[39m\u001b[2m·\u001b[22m\u001b[38;2;122;155;200m▒\u001b[39m\u001b[38;2;59;125;216m█\u001b[39m\u001b[2m·\u001b[22m\u001b[38;2;59;125;216m█\u001b[39m\u001b[38;2;122;155;200m▒\u001b[39m\u001b[2m·\u001b[22m\u001b[38;2;153;169;192m░\u001b[39m\u001b[38;2;90;140;208m▓\u001b[39m\u001b[2m·\u001b[22m\u001b[38;2;90;140;208m▓\u001b[39m\u001b[38;2;153;169;192m░\u001b[39m\u001b[2m·\u001b[22m\u001b[38;2;153;169;192m░\u001b[39m\u001b[38;2;90;140;208m▓\u001b[39m\u001b[2m·\u001b[22m\u001b[38;2;122;155;200m▒\u001b[39m\u001b[38;2;59;125;216m█\u001b[39m\u001b[2m·\u001b[22m\u001b[38;2;59;125;216m█\u001b[39m\u001b[38;2;122;155;200m▒\u001b[39m\n\n\u001b[2mTu\u001b[0m \u001b[2m·\u001b[22m\u001b[38;2;122;155;200m▒\u001b[39m\u001b[38;2;59;125;216m█\u001b[39m\u001b[2m·\u001b[22m\u001b[38;2;90;140;208m▓\u001b[39m\u001b[38;2;153;169;192m░\u001b[39m\u001b[2m·\u001b[22m\u001b[38;2;153;169;192m░\u001b[39m\u001b[38;2;90;140;208m▓\u001b[39m\u001b[2m·\u001b[22m\u001b[38;2;90;140;208m▓\u001b[39m\u001b[38;2;153;169;192m░\u001b[39m\u001b[2m·\u001b[22m\u001b[38;2;153;169;192m░\u001b[39m\u001b[38;2;122;155;200m▒\u001b[39m\u001b[2m·\u001b[22m\u001b[38;2;122;155;200m▒\u001b[39m\u001b[38;2;59;125;216m█\u001b[39m\u001b[2m·\u001b[22m\u001b[38;2;59;125;216m█\u001b[39m\u001b[38;2;122;155;200m▒\u001b[39m\u001b[2m·\u001b[22m\u001b[38;2;122;155;200m▒\u001b[39m\u001b[38;2;59;125;216m█\u001b[39m\u001b[2m·\u001b[22m\u001b[38;2;90;140;208m▓\u001b[39m\u001b[38;2;153;169;192m░\u001b[39m\u001b[2m·\u001b[22m\u001b[38;2;153;169;192m░\u001b[39m\u001b[38;2;90;140;208m▓\u001b[39m\u001b[2m·\u001b[22m\u001b[38;2;90;140;208m▓\u001b[39m\u001b[38;2;153;169;192m░\u001b[39m\u001b[2m·\u001b[22m\u001b[38;2;59;125;216m█\u001b[39m\u001b[38;2;122;155;200m▒\u001b[39m\u001b[2m·\u001b[22m\u001b[38;2;122;155;200m▒\u001b[39m\u001b[38;2;59;125;216m█\u001b[39m\u001b[2m·\u001b[22m\u001b[38;2;59;125;216m█\u001b[39m\u001b[38;2;122;155;200m▒\u001b[39m\u001b[2m·\u001b[22m\u001b[38;2;153;169;192m░\u001b[39m\u001b[38;2;90;140;208m▓\u001b[39m\u001b[2m·\u001b[22m\u001b[38;2;90;140;208m▓\u001b[39m\u001b[38;2;153;169;192m░\u001b[39m\u001b[2m·\u001b[22m\u001b[38;2;153;169;192m░\u001b[39m\u001b[38;2;90;140;208m▓\u001b[39m\u001b[2m·\u001b[22m\n\n\u001b[2mWe\u001b[0m \u001b[2m·\u001b[22m\u001b[38;2;122;155;200m▒\u001b[39m\u001b[38;2;59;125;216m█\u001b[39m\u001b[2m·\u001b[22m\u001b[38;2;59;125;216m█\u001b[39m\u001b[38;2;122;155;200m▒\u001b[39m\u001b[2m·\u001b[22m\u001b[38;2;122;155;200m▒\u001b[39m\u001b[38;2;59;125;216m█\u001b[39m\u001b[2m·\u001b[22m\u001b[38;2;59;125;216m█\u001b[39m\u001b[38;2;153;169;192m░\u001b[39m\u001b[2m·\u001b[22m\u001b[38;2;153;169;192m░\u001b[39m\u001b[38;2;90;140;208m▓\u001b[39m\u001b[2m·\u001b[22m\u001b[38;2;90;140;208m▓\u001b[39m\u001b[38;2;153;169;192m░\u001b[39m\u001b[2m·\u001b[22m\u001b[38;2;153;169;192m░\u001b[39m\u001b[38;2;122;155;200m▒\u001b[39m\u001b[2m·\u001b[22m\u001b[38;2;122;155;200m▒\u001b[39m\u001b[38;2;59;125;216m█\u001b[39m\u001b[2m·\u001b[22m\u001b[38;2;59;125;216m█\u001b[39m\u001b[38;2;122;155;200m▒\u001b[39m\u001b[2m·\u001b[22m\u001b[38;2;122;155;200m▒\u001b[39m\u001b[38;2;59;125;216m█\u001b[39m\u001b[2m·\u001b[22m\u001b[38;2;90;140;208m▓\u001b[39m\u001b[38;2;153;169;192m░\u001b[39m\u001b[2m·\u001b[22m\u001b[38;2;153;169;192m░\u001b[39m\u001b[38;2;90;140;208m▓\u001b[39m\u001b[2m·\u001b[22m\u001b[38;2;90;140;208m▓\u001b[39m\u001b[38;2;153;169;192m░\u001b[39m\u001b[2m·\u001b[22m\u001b[38;2;59;125;216m█\u001b[39m\u001b[38;2;122;155;200m▒\u001b[39m\u001b[2m·\u001b[22m\u001b[38;2;122;155;200m▒\u001b[39m\u001b[38;2;59;125;216m█\u001b[39m\u001b[2m·\u001b[22m\u001b[38;2;59;125;216m█\u001b[39m\u001b[38;2;122;155;200m▒\u001b[39m\u001b[2m·\u001b[22m\u001b[38;2;153;169;192m░\u001b[39m\u001b[38;2;90;140;208m▓\u001b[39m\u001b[2m·\u001b[22m\u001b[38;2;90;140;208m▓\u001b[39m\n\n\u001b[2mTh\u001b[0m \u001b[38;2;90;140;208m▓\u001b[39m\u001b[38;2;153;169;192m░\u001b[39m\u001b[2m·\u001b[22m\u001b[38;2;153;169;192m░\u001b[39m\u001b[38;2;90;140;208m▓\u001b[39m\u001b[2m·\u001b[22m\u001b[38;2;122;155;200m▒\u001b[39m\u001b[38;2;59;125;216m█\u001b[39m\u001b[2m·\u001b[22m\u001b[38;2;59;125;216m█\u001b[39m\u001b[38;2;122;155;200m▒\u001b[39m\u001b[2m·\u001b[22m\u001b[38;2;122;155;200m▒\u001b[39m\u001b[38;2;59;125;216m█\u001b[39m\u001b[2m·\u001b[22m\u001b[38;2;59;125;216m█\u001b[39m\u001b[38;2;153;169;192m░\u001b[39m\u001b[2m·\u001b[22m\u001b[38;2;153;169;192m░\u001b[39m\u001b[38;2;90;140;208m▓\u001b[39m\u001b[2m·\u001b[22m\u001b[38;2;90;140;208m▓\u001b[39m\u001b[38;2;153;169;192m░\u001b[39m\u001b[2m·\u001b[22m\u001b[38;2;153;169;192m░\u001b[39m\u001b[38;2;90;140;208m▓\u001b[39m\u001b[2m·\u001b[22m\u001b[38;2;122;155;200m▒\u001b[39m\u001b[38;2;59;125;216m█\u001b[39m\u001b[2m·\u001b[22m\u001b[38;2;59;125;216m█\u001b[39m\u001b[38;2;122;155;200m▒\u001b[39m\u001b[2m·\u001b[22m\u001b[38;2;122;155;200m▒\u001b[39m\u001b[38;2;59;125;216m█\u001b[39m\u001b[2m·\u001b[22m\u001b[38;2;90;140;208m▓\u001b[39m\u001b[38;2;153;169;192m░\u001b[39m\u001b[2m·\u001b[22m\u001b[38;2;153;169;192m░\u001b[39m\u001b[38;2;90;140;208m▓\u001b[39m\u001b[2m·\u001b[22m\u001b[38;2;90;140;208m▓\u001b[39m\u001b[38;2;153;169;192m░\u001b[39m\u001b[2m·\u001b[22m\u001b[38;2;59;125;216m█\u001b[39m\u001b[38;2;122;155;200m▒\u001b[39m\u001b[2m·\u001b[22m\u001b[38;2;122;155;200m▒\u001b[39m\u001b[38;2;59;125;216m█\u001b[39m\u001b[2m·\u001b[22m\u001b[38;2;59;125;216m█\u001b[39m \n\n\u001b[2mFr\u001b[0m \u001b[38;2;122;155;200m▒\u001b[39m\u001b[2m·\u001b[22m\u001b[38;2;153;169;192m░\u001b[39m\u001b[38;2;90;140;208m▓\u001b[39m\u001b[2m·\u001b[22m\u001b[38;2;90;140;208m▓\u001b[39m\u001b[38;2;153;169;192m░\u001b[39m\u001b[2m·\u001b[22m\u001b[38;2;153;169;192m░\u001b[39m\u001b[38;2;90;140;208m▓\u001b[39m\u001b[2m·\u001b[22m\u001b[38;2;90;140;208m▓\u001b[39m\u001b[38;2;59;125;216m█\u001b[39m\u001b[2m·\u001b[22m\u001b[38;2;59;125;216m█\u001b[39m\u001b[38;2;122;155;200m▒\u001b[39m\u001b[2m·\u001b[22m\u001b[38;2;122;155;200m▒\u001b[39m\u001b[38;2;59;125;216m█\u001b[39m\u001b[2m·\u001b[22m\u001b[38;2;59;125;216m█\u001b[39m\u001b[38;2;153;169;192m░\u001b[39m\u001b[2m·\u001b[22m\u001b[38;2;153;169;192m░\u001b[39m\u001b[38;2;90;140;208m▓\u001b[39m\u001b[2m·\u001b[22m\u001b[38;2;90;140;208m▓\u001b[39m\u001b[38;2;153;169;192m░\u001b[39m\u001b[2m·\u001b[22m\u001b[38;2;153;169;192m░\u001b[39m\u001b[38;2;90;140;208m▓\u001b[39m\u001b[2m·\u001b[22m\u001b[38;2;122;155;200m▒\u001b[39m\u001b[38;2;59;125;216m█\u001b[39m\u001b[2m·\u001b[22m\u001b[38;2;59;125;216m█\u001b[39m\u001b[38;2;122;155;200m▒\u001b[39m\u001b[2m·\u001b[22m\u001b[38;2;122;155;200m▒\u001b[39m\u001b[38;2;59;125;216m█\u001b[39m\u001b[2m·\u001b[22m\u001b[38;2;90;140;208m▓\u001b[39m\u001b[38;2;153;169;192m░\u001b[39m\u001b[2m·\u001b[22m\u001b[38;2;153;169;192m░\u001b[39m\u001b[38;2;90;140;208m▓\u001b[39m\u001b[2m·\u001b[22m\u001b[38;2;90;140;208m▓\u001b[39m\u001b[38;2;153;169;192m░\u001b[39m\u001b[2m·\u001b[22m\u001b[38;2;59;125;216m█\u001b[39m\u001b[38;2;122;155;200m▒\u001b[39m \n\n\u001b[2mSa\u001b[0m \u001b[2m·\u001b[22m\u001b[38;2;122;155;200m▒\u001b[39m\u001b[38;2;59;125;216m█\u001b[39m\u001b[2m·\u001b[22m\u001b[38;2;59;125;216m█\u001b[39m\u001b[38;2;122;155;200m▒\u001b[39m\u001b[2m·\u001b[22m\u001b[38;2;153;169;192m░\u001b[39m\u001b[38;2;90;140;208m▓\u001b[39m\u001b[2m·\u001b[22m\u001b[38;2;90;140;208m▓\u001b[39m\u001b[38;2;153;169;192m░\u001b[39m\u001b[2m·\u001b[22m\u001b[38;2;153;169;192m░\u001b[39m\u001b[38;2;90;140;208m▓\u001b[39m\u001b[2m·\u001b[22m\u001b[38;2;90;140;208m▓\u001b[39m\u001b[38;2;59;125;216m█\u001b[39m\u001b[2m·\u001b[22m\u001b[38;2;59;125;216m█\u001b[39m\u001b[38;2;122;155;200m▒\u001b[39m\u001b[2m·\u001b[22m\u001b[38;2;122;155;200m▒\u001b[39m\u001b[38;2;59;125;216m█\u001b[39m\u001b[2m·\u001b[22m\u001b[38;2;59;125;216m█\u001b[39m\u001b[38;2;122;155;200m▒\u001b[39m\u001b[2m·\u001b[22m\u001b[38;2;153;169;192m░\u001b[39m\u001b[38;2;90;140;208m▓\u001b[39m\u001b[2m·\u001b[22m\u001b[38;2;90;140;208m▓\u001b[39m\u001b[38;2;153;169;192m░\u001b[39m\u001b[2m·\u001b[22m\u001b[38;2;153;169;192m░\u001b[39m\u001b[38;2;90;140;208m▓\u001b[39m\u001b[2m·\u001b[22m\u001b[38;2;122;155;200m▒\u001b[39m\u001b[38;2;59;125;216m█\u001b[39m\u001b[2m·\u001b[22m\u001b[38;2;59;125;216m█\u001b[39m\u001b[38;2;122;155;200m▒\u001b[39m\u001b[2m·\u001b[22m\u001b[38;2;122;155;200m▒\u001b[39m\u001b[38;2;59;125;216m█\u001b[39m\u001b[2m·\u001b[22m\u001b[38;2;90;140;208m▓\u001b[39m\u001b[38;2;153;169;192m░\u001b[39m\u001b[2m·\u001b[22m\u001b[38;2;153;169;192m░\u001b[39m\u001b[38;2;90;140;208m▓\u001b[39m\u001b[2m·\u001b[22m \n\n\u001b[2mSu\u001b[0m \u001b[38;2;90;140;208m▓\u001b[39m\u001b[38;2;153;169;192m░\u001b[39m\u001b[2m·\u001b[22m\u001b[38;2;59;125;216m█\u001b[39m\u001b[38;2;122;155;200m▒\u001b[39m\u001b[2m·\u001b[22m\u001b[38;2;122;155;200m▒\u001b[39m\u001b[38;2;59;125;216m█\u001b[39m\u001b[2m·\u001b[22m\u001b[38;2;59;125;216m█\u001b[39m\u001b[38;2;122;155;200m▒\u001b[39m\u001b[2m·\u001b[22m\u001b[38;2;122;155;200m▒\u001b[39m\u001b[38;2;90;140;208m▓\u001b[39m\u001b[2m·\u001b[22m\u001b[38;2;90;140;208m▓\u001b[39m\u001b[38;2;153;169;192m░\u001b[39m\u001b[2m·\u001b[22m\u001b[38;2;153;169;192m░\u001b[39m\u001b[38;2;90;140;208m▓\u001b[39m\u001b[2m·\u001b[22m\u001b[38;2;90;140;208m▓\u001b[39m\u001b[38;2;59;125;216m█\u001b[39m\u001b[2m·\u001b[22m\u001b[38;2;59;125;216m█\u001b[39m\u001b[38;2;122;155;200m▒\u001b[39m\u001b[2m·\u001b[22m\u001b[38;2;122;155;200m▒\u001b[39m\u001b[38;2;59;125;216m█\u001b[39m\u001b[2m·\u001b[22m\u001b[38;2;59;125;216m█\u001b[39m\u001b[38;2;122;155;200m▒\u001b[39m\u001b[2m·\u001b[22m\u001b[38;2;153;169;192m░\u001b[39m\u001b[38;2;90;140;208m▓\u001b[39m\u001b[2m·\u001b[22m\u001b[38;2;90;140;208m▓\u001b[39m\u001b[38;2;153;169;192m░\u001b[39m\u001b[2m·\u001b[22m\u001b[38;2;153;169;192m░\u001b[39m\u001b[38;2;90;140;208m▓\u001b[39m\u001b[2m·\u001b[22m\u001b[38;2;122;155;200m▒\u001b[39m\u001b[38;2;59;125;216m█\u001b[39m\u001b[2m·\u001b[22m\u001b[38;2;59;125;216m█\u001b[39m\u001b[38;2;122;155;200m▒\u001b[39m\u001b[2m·\u001b[22m\u001b[38;2;122;155;200m▒\u001b[39m\u001b[38;2;59;125;216m█\u001b[39m\u001b[2m·\u001b[22m\u001b[38;2;59;125;216m█\u001b[39m \n\n \u001b[2mless\u001b[0m \u001b[2m·\u001b[22m\u001b[38;2;153;169;192m░\u001b[39m\u001b[38;2;122;155;200m▒\u001b[39m\u001b[38;2;90;140;208m▓\u001b[39m\u001b[38;2;59;125;216m█\u001b[39m \u001b[2mmore\u001b[0m\n\n\u001b[1;38;2;59;125;216m1.2k\u001b[0m sessions · \u001b[1;38;2;59;125;216m56\u001b[0m subagents\n\u001b[1;38;2;59;125;216m9.9k\u001b[0m prompts · \u001b[1;38;2;59;125;216m54.3k\u001b[0m steps · \u001b[1;38;2;59;125;216m1b\u001b[0m tokens\n\u001b[1;38;2;59;125;216m98.5%\u001b[0m tool success · \u001b[1;38;2;59;125;216m243\u001b[0m active days · best streak \u001b[1;38;2;59;125;216m17\u001b[0m days\n\n\u001b[2mopencode.ai\u001b[0m"}, +{"stats":"full","name":"summary wide","options":{"label":"last 365 days","scope":"all projects","models":false,"tools":false,"cost":false,"limit":5,"width":120,"color":true},"output":"\u001b[1;38;2;59;125;216mopencode stats\u001b[0m \u001b[2m· last 365 days · all projects\u001b[0m\n\n\u001b[1;38;2;59;125;216mactivity\u001b[0m\n \u001b[2mNov Dec Jan Feb Mar Apr May Jun Jul Aug Sep Oct Nov\u001b[0m\n\u001b[2mMo\u001b[0m \u001b[38;2;153;169;192m░\u001b[39m\u001b[2m·\u001b[22m\u001b[38;2;153;169;192m░\u001b[39m\u001b[38;2;90;140;208m▓\u001b[39m\u001b[2m·\u001b[22m\u001b[38;2;90;140;208m▓\u001b[39m\u001b[38;2;153;169;192m░\u001b[39m\u001b[2m·\u001b[22m\u001b[38;2;59;125;216m█\u001b[39m\u001b[38;2;122;155;200m▒\u001b[39m\u001b[2m·\u001b[22m\u001b[38;2;122;155;200m▒\u001b[39m\u001b[38;2;59;125;216m█\u001b[39m\u001b[2m·\u001b[22m\u001b[38;2;59;125;216m█\u001b[39m\u001b[38;2;122;155;200m▒\u001b[39m\u001b[2m·\u001b[22m\u001b[38;2;122;155;200m▒\u001b[39m\u001b[38;2;90;140;208m▓\u001b[39m\u001b[2m·\u001b[22m\u001b[38;2;90;140;208m▓\u001b[39m\u001b[38;2;153;169;192m░\u001b[39m\u001b[2m·\u001b[22m\u001b[38;2;153;169;192m░\u001b[39m\u001b[38;2;90;140;208m▓\u001b[39m\u001b[2m·\u001b[22m\u001b[38;2;90;140;208m▓\u001b[39m\u001b[38;2;153;169;192m░\u001b[39m\u001b[2m·\u001b[22m\u001b[38;2;59;125;216m█\u001b[39m\u001b[38;2;122;155;200m▒\u001b[39m\u001b[2m·\u001b[22m\u001b[38;2;122;155;200m▒\u001b[39m\u001b[38;2;59;125;216m█\u001b[39m\u001b[2m·\u001b[22m\u001b[38;2;59;125;216m█\u001b[39m\u001b[38;2;122;155;200m▒\u001b[39m\u001b[2m·\u001b[22m\u001b[38;2;153;169;192m░\u001b[39m\u001b[38;2;90;140;208m▓\u001b[39m\u001b[2m·\u001b[22m\u001b[38;2;90;140;208m▓\u001b[39m\u001b[38;2;153;169;192m░\u001b[39m\u001b[2m·\u001b[22m\u001b[38;2;153;169;192m░\u001b[39m\u001b[38;2;90;140;208m▓\u001b[39m\u001b[2m·\u001b[22m\u001b[38;2;122;155;200m▒\u001b[39m\u001b[38;2;59;125;216m█\u001b[39m\u001b[2m·\u001b[22m\u001b[38;2;59;125;216m█\u001b[39m\u001b[38;2;122;155;200m▒\u001b[39m\n\n\u001b[2mTu\u001b[0m \u001b[2m·\u001b[22m\u001b[38;2;122;155;200m▒\u001b[39m\u001b[38;2;59;125;216m█\u001b[39m\u001b[2m·\u001b[22m\u001b[38;2;90;140;208m▓\u001b[39m\u001b[38;2;153;169;192m░\u001b[39m\u001b[2m·\u001b[22m\u001b[38;2;153;169;192m░\u001b[39m\u001b[38;2;90;140;208m▓\u001b[39m\u001b[2m·\u001b[22m\u001b[38;2;90;140;208m▓\u001b[39m\u001b[38;2;153;169;192m░\u001b[39m\u001b[2m·\u001b[22m\u001b[38;2;153;169;192m░\u001b[39m\u001b[38;2;122;155;200m▒\u001b[39m\u001b[2m·\u001b[22m\u001b[38;2;122;155;200m▒\u001b[39m\u001b[38;2;59;125;216m█\u001b[39m\u001b[2m·\u001b[22m\u001b[38;2;59;125;216m█\u001b[39m\u001b[38;2;122;155;200m▒\u001b[39m\u001b[2m·\u001b[22m\u001b[38;2;122;155;200m▒\u001b[39m\u001b[38;2;59;125;216m█\u001b[39m\u001b[2m·\u001b[22m\u001b[38;2;90;140;208m▓\u001b[39m\u001b[38;2;153;169;192m░\u001b[39m\u001b[2m·\u001b[22m\u001b[38;2;153;169;192m░\u001b[39m\u001b[38;2;90;140;208m▓\u001b[39m\u001b[2m·\u001b[22m\u001b[38;2;90;140;208m▓\u001b[39m\u001b[38;2;153;169;192m░\u001b[39m\u001b[2m·\u001b[22m\u001b[38;2;59;125;216m█\u001b[39m\u001b[38;2;122;155;200m▒\u001b[39m\u001b[2m·\u001b[22m\u001b[38;2;122;155;200m▒\u001b[39m\u001b[38;2;59;125;216m█\u001b[39m\u001b[2m·\u001b[22m\u001b[38;2;59;125;216m█\u001b[39m\u001b[38;2;122;155;200m▒\u001b[39m\u001b[2m·\u001b[22m\u001b[38;2;153;169;192m░\u001b[39m\u001b[38;2;90;140;208m▓\u001b[39m\u001b[2m·\u001b[22m\u001b[38;2;90;140;208m▓\u001b[39m\u001b[38;2;153;169;192m░\u001b[39m\u001b[2m·\u001b[22m\u001b[38;2;153;169;192m░\u001b[39m\u001b[38;2;90;140;208m▓\u001b[39m\u001b[2m·\u001b[22m\n\n\u001b[2mWe\u001b[0m \u001b[2m·\u001b[22m\u001b[38;2;122;155;200m▒\u001b[39m\u001b[38;2;59;125;216m█\u001b[39m\u001b[2m·\u001b[22m\u001b[38;2;59;125;216m█\u001b[39m\u001b[38;2;122;155;200m▒\u001b[39m\u001b[2m·\u001b[22m\u001b[38;2;122;155;200m▒\u001b[39m\u001b[38;2;59;125;216m█\u001b[39m\u001b[2m·\u001b[22m\u001b[38;2;59;125;216m█\u001b[39m\u001b[38;2;153;169;192m░\u001b[39m\u001b[2m·\u001b[22m\u001b[38;2;153;169;192m░\u001b[39m\u001b[38;2;90;140;208m▓\u001b[39m\u001b[2m·\u001b[22m\u001b[38;2;90;140;208m▓\u001b[39m\u001b[38;2;153;169;192m░\u001b[39m\u001b[2m·\u001b[22m\u001b[38;2;153;169;192m░\u001b[39m\u001b[38;2;122;155;200m▒\u001b[39m\u001b[2m·\u001b[22m\u001b[38;2;122;155;200m▒\u001b[39m\u001b[38;2;59;125;216m█\u001b[39m\u001b[2m·\u001b[22m\u001b[38;2;59;125;216m█\u001b[39m\u001b[38;2;122;155;200m▒\u001b[39m\u001b[2m·\u001b[22m\u001b[38;2;122;155;200m▒\u001b[39m\u001b[38;2;59;125;216m█\u001b[39m\u001b[2m·\u001b[22m\u001b[38;2;90;140;208m▓\u001b[39m\u001b[38;2;153;169;192m░\u001b[39m\u001b[2m·\u001b[22m\u001b[38;2;153;169;192m░\u001b[39m\u001b[38;2;90;140;208m▓\u001b[39m\u001b[2m·\u001b[22m\u001b[38;2;90;140;208m▓\u001b[39m\u001b[38;2;153;169;192m░\u001b[39m\u001b[2m·\u001b[22m\u001b[38;2;59;125;216m█\u001b[39m\u001b[38;2;122;155;200m▒\u001b[39m\u001b[2m·\u001b[22m\u001b[38;2;122;155;200m▒\u001b[39m\u001b[38;2;59;125;216m█\u001b[39m\u001b[2m·\u001b[22m\u001b[38;2;59;125;216m█\u001b[39m\u001b[38;2;122;155;200m▒\u001b[39m\u001b[2m·\u001b[22m\u001b[38;2;153;169;192m░\u001b[39m\u001b[38;2;90;140;208m▓\u001b[39m\u001b[2m·\u001b[22m\u001b[38;2;90;140;208m▓\u001b[39m\n\n\u001b[2mTh\u001b[0m \u001b[38;2;90;140;208m▓\u001b[39m\u001b[38;2;153;169;192m░\u001b[39m\u001b[2m·\u001b[22m\u001b[38;2;153;169;192m░\u001b[39m\u001b[38;2;90;140;208m▓\u001b[39m\u001b[2m·\u001b[22m\u001b[38;2;122;155;200m▒\u001b[39m\u001b[38;2;59;125;216m█\u001b[39m\u001b[2m·\u001b[22m\u001b[38;2;59;125;216m█\u001b[39m\u001b[38;2;122;155;200m▒\u001b[39m\u001b[2m·\u001b[22m\u001b[38;2;122;155;200m▒\u001b[39m\u001b[38;2;59;125;216m█\u001b[39m\u001b[2m·\u001b[22m\u001b[38;2;59;125;216m█\u001b[39m\u001b[38;2;153;169;192m░\u001b[39m\u001b[2m·\u001b[22m\u001b[38;2;153;169;192m░\u001b[39m\u001b[38;2;90;140;208m▓\u001b[39m\u001b[2m·\u001b[22m\u001b[38;2;90;140;208m▓\u001b[39m\u001b[38;2;153;169;192m░\u001b[39m\u001b[2m·\u001b[22m\u001b[38;2;153;169;192m░\u001b[39m\u001b[38;2;90;140;208m▓\u001b[39m\u001b[2m·\u001b[22m\u001b[38;2;122;155;200m▒\u001b[39m\u001b[38;2;59;125;216m█\u001b[39m\u001b[2m·\u001b[22m\u001b[38;2;59;125;216m█\u001b[39m\u001b[38;2;122;155;200m▒\u001b[39m\u001b[2m·\u001b[22m\u001b[38;2;122;155;200m▒\u001b[39m\u001b[38;2;59;125;216m█\u001b[39m\u001b[2m·\u001b[22m\u001b[38;2;90;140;208m▓\u001b[39m\u001b[38;2;153;169;192m░\u001b[39m\u001b[2m·\u001b[22m\u001b[38;2;153;169;192m░\u001b[39m\u001b[38;2;90;140;208m▓\u001b[39m\u001b[2m·\u001b[22m\u001b[38;2;90;140;208m▓\u001b[39m\u001b[38;2;153;169;192m░\u001b[39m\u001b[2m·\u001b[22m\u001b[38;2;59;125;216m█\u001b[39m\u001b[38;2;122;155;200m▒\u001b[39m\u001b[2m·\u001b[22m\u001b[38;2;122;155;200m▒\u001b[39m\u001b[38;2;59;125;216m█\u001b[39m\u001b[2m·\u001b[22m\u001b[38;2;59;125;216m█\u001b[39m \n\n\u001b[2mFr\u001b[0m \u001b[38;2;122;155;200m▒\u001b[39m\u001b[2m·\u001b[22m\u001b[38;2;153;169;192m░\u001b[39m\u001b[38;2;90;140;208m▓\u001b[39m\u001b[2m·\u001b[22m\u001b[38;2;90;140;208m▓\u001b[39m\u001b[38;2;153;169;192m░\u001b[39m\u001b[2m·\u001b[22m\u001b[38;2;153;169;192m░\u001b[39m\u001b[38;2;90;140;208m▓\u001b[39m\u001b[2m·\u001b[22m\u001b[38;2;90;140;208m▓\u001b[39m\u001b[38;2;59;125;216m█\u001b[39m\u001b[2m·\u001b[22m\u001b[38;2;59;125;216m█\u001b[39m\u001b[38;2;122;155;200m▒\u001b[39m\u001b[2m·\u001b[22m\u001b[38;2;122;155;200m▒\u001b[39m\u001b[38;2;59;125;216m█\u001b[39m\u001b[2m·\u001b[22m\u001b[38;2;59;125;216m█\u001b[39m\u001b[38;2;153;169;192m░\u001b[39m\u001b[2m·\u001b[22m\u001b[38;2;153;169;192m░\u001b[39m\u001b[38;2;90;140;208m▓\u001b[39m\u001b[2m·\u001b[22m\u001b[38;2;90;140;208m▓\u001b[39m\u001b[38;2;153;169;192m░\u001b[39m\u001b[2m·\u001b[22m\u001b[38;2;153;169;192m░\u001b[39m\u001b[38;2;90;140;208m▓\u001b[39m\u001b[2m·\u001b[22m\u001b[38;2;122;155;200m▒\u001b[39m\u001b[38;2;59;125;216m█\u001b[39m\u001b[2m·\u001b[22m\u001b[38;2;59;125;216m█\u001b[39m\u001b[38;2;122;155;200m▒\u001b[39m\u001b[2m·\u001b[22m\u001b[38;2;122;155;200m▒\u001b[39m\u001b[38;2;59;125;216m█\u001b[39m\u001b[2m·\u001b[22m\u001b[38;2;90;140;208m▓\u001b[39m\u001b[38;2;153;169;192m░\u001b[39m\u001b[2m·\u001b[22m\u001b[38;2;153;169;192m░\u001b[39m\u001b[38;2;90;140;208m▓\u001b[39m\u001b[2m·\u001b[22m\u001b[38;2;90;140;208m▓\u001b[39m\u001b[38;2;153;169;192m░\u001b[39m\u001b[2m·\u001b[22m\u001b[38;2;59;125;216m█\u001b[39m\u001b[38;2;122;155;200m▒\u001b[39m \n\n\u001b[2mSa\u001b[0m \u001b[2m·\u001b[22m\u001b[38;2;122;155;200m▒\u001b[39m\u001b[38;2;59;125;216m█\u001b[39m\u001b[2m·\u001b[22m\u001b[38;2;59;125;216m█\u001b[39m\u001b[38;2;122;155;200m▒\u001b[39m\u001b[2m·\u001b[22m\u001b[38;2;153;169;192m░\u001b[39m\u001b[38;2;90;140;208m▓\u001b[39m\u001b[2m·\u001b[22m\u001b[38;2;90;140;208m▓\u001b[39m\u001b[38;2;153;169;192m░\u001b[39m\u001b[2m·\u001b[22m\u001b[38;2;153;169;192m░\u001b[39m\u001b[38;2;90;140;208m▓\u001b[39m\u001b[2m·\u001b[22m\u001b[38;2;90;140;208m▓\u001b[39m\u001b[38;2;59;125;216m█\u001b[39m\u001b[2m·\u001b[22m\u001b[38;2;59;125;216m█\u001b[39m\u001b[38;2;122;155;200m▒\u001b[39m\u001b[2m·\u001b[22m\u001b[38;2;122;155;200m▒\u001b[39m\u001b[38;2;59;125;216m█\u001b[39m\u001b[2m·\u001b[22m\u001b[38;2;59;125;216m█\u001b[39m\u001b[38;2;122;155;200m▒\u001b[39m\u001b[2m·\u001b[22m\u001b[38;2;153;169;192m░\u001b[39m\u001b[38;2;90;140;208m▓\u001b[39m\u001b[2m·\u001b[22m\u001b[38;2;90;140;208m▓\u001b[39m\u001b[38;2;153;169;192m░\u001b[39m\u001b[2m·\u001b[22m\u001b[38;2;153;169;192m░\u001b[39m\u001b[38;2;90;140;208m▓\u001b[39m\u001b[2m·\u001b[22m\u001b[38;2;122;155;200m▒\u001b[39m\u001b[38;2;59;125;216m█\u001b[39m\u001b[2m·\u001b[22m\u001b[38;2;59;125;216m█\u001b[39m\u001b[38;2;122;155;200m▒\u001b[39m\u001b[2m·\u001b[22m\u001b[38;2;122;155;200m▒\u001b[39m\u001b[38;2;59;125;216m█\u001b[39m\u001b[2m·\u001b[22m\u001b[38;2;90;140;208m▓\u001b[39m\u001b[38;2;153;169;192m░\u001b[39m\u001b[2m·\u001b[22m\u001b[38;2;153;169;192m░\u001b[39m\u001b[38;2;90;140;208m▓\u001b[39m\u001b[2m·\u001b[22m \n\n\u001b[2mSu\u001b[0m \u001b[38;2;90;140;208m▓\u001b[39m\u001b[38;2;153;169;192m░\u001b[39m\u001b[2m·\u001b[22m\u001b[38;2;59;125;216m█\u001b[39m\u001b[38;2;122;155;200m▒\u001b[39m\u001b[2m·\u001b[22m\u001b[38;2;122;155;200m▒\u001b[39m\u001b[38;2;59;125;216m█\u001b[39m\u001b[2m·\u001b[22m\u001b[38;2;59;125;216m█\u001b[39m\u001b[38;2;122;155;200m▒\u001b[39m\u001b[2m·\u001b[22m\u001b[38;2;122;155;200m▒\u001b[39m\u001b[38;2;90;140;208m▓\u001b[39m\u001b[2m·\u001b[22m\u001b[38;2;90;140;208m▓\u001b[39m\u001b[38;2;153;169;192m░\u001b[39m\u001b[2m·\u001b[22m\u001b[38;2;153;169;192m░\u001b[39m\u001b[38;2;90;140;208m▓\u001b[39m\u001b[2m·\u001b[22m\u001b[38;2;90;140;208m▓\u001b[39m\u001b[38;2;59;125;216m█\u001b[39m\u001b[2m·\u001b[22m\u001b[38;2;59;125;216m█\u001b[39m\u001b[38;2;122;155;200m▒\u001b[39m\u001b[2m·\u001b[22m\u001b[38;2;122;155;200m▒\u001b[39m\u001b[38;2;59;125;216m█\u001b[39m\u001b[2m·\u001b[22m\u001b[38;2;59;125;216m█\u001b[39m\u001b[38;2;122;155;200m▒\u001b[39m\u001b[2m·\u001b[22m\u001b[38;2;153;169;192m░\u001b[39m\u001b[38;2;90;140;208m▓\u001b[39m\u001b[2m·\u001b[22m\u001b[38;2;90;140;208m▓\u001b[39m\u001b[38;2;153;169;192m░\u001b[39m\u001b[2m·\u001b[22m\u001b[38;2;153;169;192m░\u001b[39m\u001b[38;2;90;140;208m▓\u001b[39m\u001b[2m·\u001b[22m\u001b[38;2;122;155;200m▒\u001b[39m\u001b[38;2;59;125;216m█\u001b[39m\u001b[2m·\u001b[22m\u001b[38;2;59;125;216m█\u001b[39m\u001b[38;2;122;155;200m▒\u001b[39m\u001b[2m·\u001b[22m\u001b[38;2;122;155;200m▒\u001b[39m\u001b[38;2;59;125;216m█\u001b[39m\u001b[2m·\u001b[22m\u001b[38;2;59;125;216m█\u001b[39m \n\n \u001b[2mless\u001b[0m \u001b[2m·\u001b[22m\u001b[38;2;153;169;192m░\u001b[39m\u001b[38;2;122;155;200m▒\u001b[39m\u001b[38;2;90;140;208m▓\u001b[39m\u001b[38;2;59;125;216m█\u001b[39m \u001b[2mmore\u001b[0m\n\n\u001b[1;38;2;59;125;216m1.2k\u001b[0m sessions · \u001b[1;38;2;59;125;216m56\u001b[0m subagents\n\u001b[1;38;2;59;125;216m9.9k\u001b[0m prompts · \u001b[1;38;2;59;125;216m54.3k\u001b[0m steps · \u001b[1;38;2;59;125;216m1b\u001b[0m tokens\n\u001b[1;38;2;59;125;216m98.5%\u001b[0m tool success · \u001b[1;38;2;59;125;216m243\u001b[0m active days · best streak \u001b[1;38;2;59;125;216m17\u001b[0m days\n\n\u001b[2mopencode.ai\u001b[0m"}, +{"stats":"full","name":"summary narrow","options":{"label":"last 365 days","scope":"all projects","models":false,"tools":false,"cost":false,"limit":5,"width":40,"color":true},"output":"\u001b[1;38;2;59;125;216mopencode stats\u001b[0m \u001b[2m· last 365 days · all projects\u001b[0m\n\n\u001b[1;38;2;59;125;216mactivity · last 36 weeks\u001b[0m\n \u001b[2mMar Apr May Jun Jul Aug Sep Oct Nov\u001b[0m\n\u001b[2mMo\u001b[0m \u001b[2m·\u001b[22m\u001b[38;2;122;155;200m▒\u001b[39m\u001b[38;2;90;140;208m▓\u001b[39m\u001b[2m·\u001b[22m\u001b[38;2;90;140;208m▓\u001b[39m\u001b[38;2;153;169;192m░\u001b[39m\u001b[2m·\u001b[22m\u001b[38;2;153;169;192m░\u001b[39m\u001b[38;2;90;140;208m▓\u001b[39m\u001b[2m·\u001b[22m\u001b[38;2;90;140;208m▓\u001b[39m\u001b[38;2;153;169;192m░\u001b[39m\u001b[2m·\u001b[22m\u001b[38;2;59;125;216m█\u001b[39m\u001b[38;2;122;155;200m▒\u001b[39m\u001b[2m·\u001b[22m\u001b[38;2;122;155;200m▒\u001b[39m\u001b[38;2;59;125;216m█\u001b[39m\u001b[2m·\u001b[22m\u001b[38;2;59;125;216m█\u001b[39m\u001b[38;2;122;155;200m▒\u001b[39m\u001b[2m·\u001b[22m\u001b[38;2;153;169;192m░\u001b[39m\u001b[38;2;90;140;208m▓\u001b[39m\u001b[2m·\u001b[22m\u001b[38;2;90;140;208m▓\u001b[39m\u001b[38;2;153;169;192m░\u001b[39m\u001b[2m·\u001b[22m\u001b[38;2;153;169;192m░\u001b[39m\u001b[38;2;90;140;208m▓\u001b[39m\u001b[2m·\u001b[22m\u001b[38;2;122;155;200m▒\u001b[39m\u001b[38;2;59;125;216m█\u001b[39m\u001b[2m·\u001b[22m\u001b[38;2;59;125;216m█\u001b[39m\u001b[38;2;122;155;200m▒\u001b[39m\n\n\u001b[2mTu\u001b[0m \u001b[38;2;122;155;200m▒\u001b[39m\u001b[38;2;59;125;216m█\u001b[39m\u001b[2m·\u001b[22m\u001b[38;2;59;125;216m█\u001b[39m\u001b[38;2;122;155;200m▒\u001b[39m\u001b[2m·\u001b[22m\u001b[38;2;122;155;200m▒\u001b[39m\u001b[38;2;59;125;216m█\u001b[39m\u001b[2m·\u001b[22m\u001b[38;2;90;140;208m▓\u001b[39m\u001b[38;2;153;169;192m░\u001b[39m\u001b[2m·\u001b[22m\u001b[38;2;153;169;192m░\u001b[39m\u001b[38;2;90;140;208m▓\u001b[39m\u001b[2m·\u001b[22m\u001b[38;2;90;140;208m▓\u001b[39m\u001b[38;2;153;169;192m░\u001b[39m\u001b[2m·\u001b[22m\u001b[38;2;59;125;216m█\u001b[39m\u001b[38;2;122;155;200m▒\u001b[39m\u001b[2m·\u001b[22m\u001b[38;2;122;155;200m▒\u001b[39m\u001b[38;2;59;125;216m█\u001b[39m\u001b[2m·\u001b[22m\u001b[38;2;59;125;216m█\u001b[39m\u001b[38;2;122;155;200m▒\u001b[39m\u001b[2m·\u001b[22m\u001b[38;2;153;169;192m░\u001b[39m\u001b[38;2;90;140;208m▓\u001b[39m\u001b[2m·\u001b[22m\u001b[38;2;90;140;208m▓\u001b[39m\u001b[38;2;153;169;192m░\u001b[39m\u001b[2m·\u001b[22m\u001b[38;2;153;169;192m░\u001b[39m\u001b[38;2;90;140;208m▓\u001b[39m\u001b[2m·\u001b[22m\n\n\u001b[2mWe\u001b[0m \u001b[38;2;153;169;192m░\u001b[39m\u001b[2m·\u001b[22m\u001b[38;2;153;169;192m░\u001b[39m\u001b[38;2;122;155;200m▒\u001b[39m\u001b[2m·\u001b[22m\u001b[38;2;122;155;200m▒\u001b[39m\u001b[38;2;59;125;216m█\u001b[39m\u001b[2m·\u001b[22m\u001b[38;2;59;125;216m█\u001b[39m\u001b[38;2;122;155;200m▒\u001b[39m\u001b[2m·\u001b[22m\u001b[38;2;122;155;200m▒\u001b[39m\u001b[38;2;59;125;216m█\u001b[39m\u001b[2m·\u001b[22m\u001b[38;2;90;140;208m▓\u001b[39m\u001b[38;2;153;169;192m░\u001b[39m\u001b[2m·\u001b[22m\u001b[38;2;153;169;192m░\u001b[39m\u001b[38;2;90;140;208m▓\u001b[39m\u001b[2m·\u001b[22m\u001b[38;2;90;140;208m▓\u001b[39m\u001b[38;2;153;169;192m░\u001b[39m\u001b[2m·\u001b[22m\u001b[38;2;59;125;216m█\u001b[39m\u001b[38;2;122;155;200m▒\u001b[39m\u001b[2m·\u001b[22m\u001b[38;2;122;155;200m▒\u001b[39m\u001b[38;2;59;125;216m█\u001b[39m\u001b[2m·\u001b[22m\u001b[38;2;59;125;216m█\u001b[39m\u001b[38;2;122;155;200m▒\u001b[39m\u001b[2m·\u001b[22m\u001b[38;2;153;169;192m░\u001b[39m\u001b[38;2;90;140;208m▓\u001b[39m\u001b[2m·\u001b[22m\u001b[38;2;90;140;208m▓\u001b[39m\n\n\u001b[2mTh\u001b[0m \u001b[2m·\u001b[22m\u001b[38;2;153;169;192m░\u001b[39m\u001b[38;2;90;140;208m▓\u001b[39m\u001b[2m·\u001b[22m\u001b[38;2;90;140;208m▓\u001b[39m\u001b[38;2;153;169;192m░\u001b[39m\u001b[2m·\u001b[22m\u001b[38;2;153;169;192m░\u001b[39m\u001b[38;2;90;140;208m▓\u001b[39m\u001b[2m·\u001b[22m\u001b[38;2;122;155;200m▒\u001b[39m\u001b[38;2;59;125;216m█\u001b[39m\u001b[2m·\u001b[22m\u001b[38;2;59;125;216m█\u001b[39m\u001b[38;2;122;155;200m▒\u001b[39m\u001b[2m·\u001b[22m\u001b[38;2;122;155;200m▒\u001b[39m\u001b[38;2;59;125;216m█\u001b[39m\u001b[2m·\u001b[22m\u001b[38;2;90;140;208m▓\u001b[39m\u001b[38;2;153;169;192m░\u001b[39m\u001b[2m·\u001b[22m\u001b[38;2;153;169;192m░\u001b[39m\u001b[38;2;90;140;208m▓\u001b[39m\u001b[2m·\u001b[22m\u001b[38;2;90;140;208m▓\u001b[39m\u001b[38;2;153;169;192m░\u001b[39m\u001b[2m·\u001b[22m\u001b[38;2;59;125;216m█\u001b[39m\u001b[38;2;122;155;200m▒\u001b[39m\u001b[2m·\u001b[22m\u001b[38;2;122;155;200m▒\u001b[39m\u001b[38;2;59;125;216m█\u001b[39m\u001b[2m·\u001b[22m\u001b[38;2;59;125;216m█\u001b[39m \n\n\u001b[2mFr\u001b[0m \u001b[38;2;122;155;200m▒\u001b[39m\u001b[38;2;59;125;216m█\u001b[39m\u001b[2m·\u001b[22m\u001b[38;2;59;125;216m█\u001b[39m\u001b[38;2;153;169;192m░\u001b[39m\u001b[2m·\u001b[22m\u001b[38;2;153;169;192m░\u001b[39m\u001b[38;2;90;140;208m▓\u001b[39m\u001b[2m·\u001b[22m\u001b[38;2;90;140;208m▓\u001b[39m\u001b[38;2;153;169;192m░\u001b[39m\u001b[2m·\u001b[22m\u001b[38;2;153;169;192m░\u001b[39m\u001b[38;2;90;140;208m▓\u001b[39m\u001b[2m·\u001b[22m\u001b[38;2;122;155;200m▒\u001b[39m\u001b[38;2;59;125;216m█\u001b[39m\u001b[2m·\u001b[22m\u001b[38;2;59;125;216m█\u001b[39m\u001b[38;2;122;155;200m▒\u001b[39m\u001b[2m·\u001b[22m\u001b[38;2;122;155;200m▒\u001b[39m\u001b[38;2;59;125;216m█\u001b[39m\u001b[2m·\u001b[22m\u001b[38;2;90;140;208m▓\u001b[39m\u001b[38;2;153;169;192m░\u001b[39m\u001b[2m·\u001b[22m\u001b[38;2;153;169;192m░\u001b[39m\u001b[38;2;90;140;208m▓\u001b[39m\u001b[2m·\u001b[22m\u001b[38;2;90;140;208m▓\u001b[39m\u001b[38;2;153;169;192m░\u001b[39m\u001b[2m·\u001b[22m\u001b[38;2;59;125;216m█\u001b[39m\u001b[38;2;122;155;200m▒\u001b[39m \n\n\u001b[2mSa\u001b[0m \u001b[38;2;59;125;216m█\u001b[39m\u001b[2m·\u001b[22m\u001b[38;2;59;125;216m█\u001b[39m\u001b[38;2;122;155;200m▒\u001b[39m\u001b[2m·\u001b[22m\u001b[38;2;122;155;200m▒\u001b[39m\u001b[38;2;59;125;216m█\u001b[39m\u001b[2m·\u001b[22m\u001b[38;2;59;125;216m█\u001b[39m\u001b[38;2;122;155;200m▒\u001b[39m\u001b[2m·\u001b[22m\u001b[38;2;153;169;192m░\u001b[39m\u001b[38;2;90;140;208m▓\u001b[39m\u001b[2m·\u001b[22m\u001b[38;2;90;140;208m▓\u001b[39m\u001b[38;2;153;169;192m░\u001b[39m\u001b[2m·\u001b[22m\u001b[38;2;153;169;192m░\u001b[39m\u001b[38;2;90;140;208m▓\u001b[39m\u001b[2m·\u001b[22m\u001b[38;2;122;155;200m▒\u001b[39m\u001b[38;2;59;125;216m█\u001b[39m\u001b[2m·\u001b[22m\u001b[38;2;59;125;216m█\u001b[39m\u001b[38;2;122;155;200m▒\u001b[39m\u001b[2m·\u001b[22m\u001b[38;2;122;155;200m▒\u001b[39m\u001b[38;2;59;125;216m█\u001b[39m\u001b[2m·\u001b[22m\u001b[38;2;90;140;208m▓\u001b[39m\u001b[38;2;153;169;192m░\u001b[39m\u001b[2m·\u001b[22m\u001b[38;2;153;169;192m░\u001b[39m\u001b[38;2;90;140;208m▓\u001b[39m\u001b[2m·\u001b[22m \n\n\u001b[2mSu\u001b[0m \u001b[2m·\u001b[22m\u001b[38;2;153;169;192m░\u001b[39m\u001b[38;2;90;140;208m▓\u001b[39m\u001b[2m·\u001b[22m\u001b[38;2;90;140;208m▓\u001b[39m\u001b[38;2;59;125;216m█\u001b[39m\u001b[2m·\u001b[22m\u001b[38;2;59;125;216m█\u001b[39m\u001b[38;2;122;155;200m▒\u001b[39m\u001b[2m·\u001b[22m\u001b[38;2;122;155;200m▒\u001b[39m\u001b[38;2;59;125;216m█\u001b[39m\u001b[2m·\u001b[22m\u001b[38;2;59;125;216m█\u001b[39m\u001b[38;2;122;155;200m▒\u001b[39m\u001b[2m·\u001b[22m\u001b[38;2;153;169;192m░\u001b[39m\u001b[38;2;90;140;208m▓\u001b[39m\u001b[2m·\u001b[22m\u001b[38;2;90;140;208m▓\u001b[39m\u001b[38;2;153;169;192m░\u001b[39m\u001b[2m·\u001b[22m\u001b[38;2;153;169;192m░\u001b[39m\u001b[38;2;90;140;208m▓\u001b[39m\u001b[2m·\u001b[22m\u001b[38;2;122;155;200m▒\u001b[39m\u001b[38;2;59;125;216m█\u001b[39m\u001b[2m·\u001b[22m\u001b[38;2;59;125;216m█\u001b[39m\u001b[38;2;122;155;200m▒\u001b[39m\u001b[2m·\u001b[22m\u001b[38;2;122;155;200m▒\u001b[39m\u001b[38;2;59;125;216m█\u001b[39m\u001b[2m·\u001b[22m\u001b[38;2;59;125;216m█\u001b[39m \n\n \u001b[2mless\u001b[0m \u001b[2m·\u001b[22m\u001b[38;2;153;169;192m░\u001b[39m\u001b[38;2;122;155;200m▒\u001b[39m\u001b[38;2;90;140;208m▓\u001b[39m\u001b[38;2;59;125;216m█\u001b[39m \u001b[2mmore\u001b[0m\n\n\u001b[1;38;2;59;125;216m1.2k\u001b[0m sessions · \u001b[1;38;2;59;125;216m56\u001b[0m subagents\n\u001b[1;38;2;59;125;216m9.9k\u001b[0m prompts · \u001b[1;38;2;59;125;216m54.3k\u001b[0m steps · \u001b[1;38;2;59;125;216m1b\u001b[0m tokens\n\u001b[1;38;2;59;125;216m98.5%\u001b[0m tool success · \u001b[1;38;2;59;125;216m243\u001b[0m active days · best streak \u001b[1;38;2;59;125;216m17\u001b[0m days\n\n\u001b[2mopencode.ai\u001b[0m"}, +{"stats":"full","name":"summary tiny","options":{"label":"last 365 days","scope":"all projects","models":false,"tools":false,"cost":false,"limit":5,"width":3,"color":true},"output":"\u001b[1;38;2;59;125;216mopencode stats\u001b[0m \u001b[2m· last 365 days · all projects\u001b[0m\n\n\u001b[1;38;2;59;125;216mactivity · last 1 weeks\u001b[0m\n \u001b[2mNov\u001b[0m\n\u001b[2mMo\u001b[0m \u001b[38;2;122;155;200m▒\u001b[39m\n\n\u001b[2mTu\u001b[0m \u001b[2m·\u001b[22m\n\n\u001b[2mWe\u001b[0m \u001b[38;2;90;140;208m▓\u001b[39m\n\n\u001b[2mTh\u001b[0m \n\n\u001b[2mFr\u001b[0m \n\n\u001b[2mSa\u001b[0m \n\n\u001b[2mSu\u001b[0m \n\n \u001b[2mless\u001b[0m \u001b[2m·\u001b[22m\u001b[38;2;153;169;192m░\u001b[39m\u001b[38;2;122;155;200m▒\u001b[39m\u001b[38;2;90;140;208m▓\u001b[39m\u001b[38;2;59;125;216m█\u001b[39m \u001b[2mmore\u001b[0m\n\n\u001b[1;38;2;59;125;216m1.2k\u001b[0m sessions · \u001b[1;38;2;59;125;216m56\u001b[0m subagents\n\u001b[1;38;2;59;125;216m9.9k\u001b[0m prompts · \u001b[1;38;2;59;125;216m54.3k\u001b[0m steps · \u001b[1;38;2;59;125;216m1b\u001b[0m tokens\n\u001b[1;38;2;59;125;216m98.5%\u001b[0m tool success · \u001b[1;38;2;59;125;216m243\u001b[0m active days · best streak \u001b[1;38;2;59;125;216m17\u001b[0m days\n\n\u001b[2mopencode.ai\u001b[0m"}, +{"stats":"full","name":"models","options":{"label":"last 365 days","scope":"all projects","models":true,"tools":false,"cost":false,"limit":5,"width":80,"color":true},"output":"\u001b[2mlast 365 days · all projects\u001b[0m\n\nMODELS\nmodel tokens steps cost\nanthropic/claude-opus-5-5 515m 40k $900.13\nopenai/gpt-5#high 1k 10k $0.01\nopenrouter/some/really-long-model… 2b 999 $334.44\nlocal/tiny 0 1 $0.00"}, +{"stats":"full","name":"models narrow","options":{"label":"last 365 days","scope":"all projects","models":true,"tools":false,"cost":false,"limit":2,"width":60,"color":true},"output":"\u001b[2mlast 365 days · all projects\u001b[0m\n\nMODELS\nanthropic/claude-opus-5-5\n 515m tokens · 40k steps · $900.13\nopenai/gpt-5#high\n 1k tokens · 10k steps · $0.01\n\n+2 more models"}, +{"stats":"full","name":"tools","options":{"label":"last 365 days","scope":"all projects","models":false,"tools":true,"cost":false,"limit":3,"width":68,"color":true},"output":"\u001b[2mlast 365 days · all projects\u001b[0m\n\nTOOL RELIABILITY\ntool calls error p50\nread 2k 0.50% 12ms\nbash 1.5k 5.08% 1.5s\nedit 800 0.00% 1000ms\n\n5k finished calls · 25 unfinished\n+3 more tools"}, +{"stats":"full","name":"tools narrow","options":{"label":"last 365 days","scope":"all projects","models":false,"tools":true,"cost":false,"limit":5,"width":67,"color":true},"output":"\u001b[2mlast 365 days · all projects\u001b[0m\n\nTOOL RELIABILITY\nread\n 2k calls · 0.50% error · 12ms p50\nbash\n 1.5k calls · 5.08% error · 1.5s p50\nedit\n 800 calls · 0.00% error · 1000ms p50\na-very-long-tool-name-from-some-mcp-server_with_suffix\n 400 calls · 0.25% error · 120s p50\npending\n 300 calls · - error · - p50\n\n5k finished calls · 25 unfinished\n+1 more tool"}, +{"stats":"full","name":"tools one more","options":{"label":"last 365 days","scope":"all projects","models":false,"tools":true,"cost":false,"limit":5,"width":30,"color":true},"output":"\u001b[2mlast 365 days · all projects\u001b[0m\n\nTOOL RELIABILITY\nread\n 2k calls · 0.50% error · 12ms p50\nbash\n 1.5k calls · 5.08% error · 1.5s p50\nedit\n 800 calls · 0.00% error · 1000ms p50\na-very-long-tool-name-from-so…\n 400 calls · 0.25% error · 120s p50\npending\n 300 calls · - error · - p50\n\n5k finished calls · 25 unfinished\n+1 more tool"}, +{"stats":"full","name":"cost","options":{"label":"last 365 days","scope":"all projects","models":false,"tools":false,"cost":true,"limit":5,"width":80,"color":true},"output":"\u001b[2mlast 365 days · all projects\u001b[0m\n\nCOST & TOKENS\n cost $1234.57\n input 12.3m\n output 2.3m\n reasoning 345.7k\n cache read 987.7m\n cache write 12.3m\n cached input 97.6%"}, +{"stats":"full","name":"full","options":{"label":"2026 so far","scope":"current project","models":true,"tools":true,"cost":true,"limit":5,"width":100,"color":true},"output":"\u001b[2m2026 so far · current project\u001b[0m\n\nCOST & TOKENS\n cost $1234.57\n input 12.3m\n output 2.3m\n reasoning 345.7k\n cache read 987.7m\n cache write 12.3m\n cached input 97.6%\n\nMODELS\nmodel tokens steps cost\nanthropic/claude-opus-5-5 515m 40k $900.13\nopenai/gpt-5#high 1k 10k $0.01\nopenrouter/some/really-long-model… 2b 999 $334.44\nlocal/tiny 0 1 $0.00\n\nTOOL RELIABILITY\ntool calls error p50\nread 2k 0.50% 12ms\nbash 1.5k 5.08% 1.5s\nedit 800 0.00% 1000ms\na-very-long-tool-name-from-some-m… 400 0.25% 120s\npending 300 - -\n\n5k finished calls · 25 unfinished\n+1 more tool"}, +{"stats":"full","name":"full narrow","options":{"label":"last 365 days","scope":"all projects","models":true,"tools":true,"cost":true,"limit":1,"width":50,"color":true},"output":"\u001b[2mlast 365 days · all projects\u001b[0m\n\nCOST & TOKENS\n cost $1234.57\n input 12.3m\n output 2.3m\n reasoning 345.7k\n cache read 987.7m\n cache write 12.3m\n cached input 97.6%\n\nMODELS\nanthropic/claude-opus-5-5\n 515m tokens · 40k steps · $900.13\n\n+3 more models\n\nTOOL RELIABILITY\nread\n 2k calls · 0.50% error · 12ms p50\n\n5k finished calls · 25 unfinished\n+5 more tools"}, +{"stats":"singular","name":"summary","options":{"label":"last 365 days","scope":"all projects","models":false,"tools":false,"cost":false,"limit":5,"width":80,"color":true},"output":"\u001b[1;38;2;59;125;216mopencode stats\u001b[0m \u001b[2m· last 365 days · all projects\u001b[0m\n\n\u001b[1;38;2;59;125;216mactivity\u001b[0m\n \u001b[2mNov\u001b[0m\n\u001b[2mMo\u001b[0m \n\n\u001b[2mTu\u001b[0m \n\n\u001b[2mWe\u001b[0m \u001b[38;2;59;125;216m█\u001b[39m\n\n\u001b[2mTh\u001b[0m \n\n\u001b[2mFr\u001b[0m \n\n\u001b[2mSa\u001b[0m \n\n\u001b[2mSu\u001b[0m \n\n \u001b[2mless\u001b[0m \u001b[2m·\u001b[22m\u001b[38;2;153;169;192m░\u001b[39m\u001b[38;2;122;155;200m▒\u001b[39m\u001b[38;2;90;140;208m▓\u001b[39m\u001b[38;2;59;125;216m█\u001b[39m \u001b[2mmore\u001b[0m\n\n\u001b[1;38;2;59;125;216m1\u001b[0m session\n\u001b[1;38;2;59;125;216m1\u001b[0m prompt · \u001b[1;38;2;59;125;216m1\u001b[0m step · \u001b[1;38;2;59;125;216m1\u001b[0m token\n\u001b[1;38;2;59;125;216m100.0%\u001b[0m tool success · \u001b[1;38;2;59;125;216m1\u001b[0m active day · best streak \u001b[1;38;2;59;125;216m1\u001b[0m day\n\n\u001b[2mopencode.ai\u001b[0m"}, +{"stats":"singular","name":"full","options":{"label":"2026 so far","scope":"current project","models":true,"tools":true,"cost":true,"limit":5,"width":100,"color":true},"output":"\u001b[2m2026 so far · current project\u001b[0m\n\nCOST & TOKENS\n cost $1234.57\n input 1\n output 0\n reasoning 0\n cache read 0\n cache write 0\n cached input 0.00%\n\nMODELS\n no model usage\n\nTOOL RELIABILITY\n tool details unavailable"}, +{"stats":"singular","name":"full narrow","options":{"label":"last 365 days","scope":"all projects","models":true,"tools":true,"cost":true,"limit":1,"width":50,"color":true},"output":"\u001b[2mlast 365 days · all projects\u001b[0m\n\nCOST & TOKENS\n cost $1234.57\n input 1\n output 0\n reasoning 0\n cache read 0\n cache write 0\n cached input 0.00%\n\nMODELS\n no model usage\n\nTOOL RELIABILITY\n tool details unavailable"}, +{"stats":"no tool calls","name":"summary","options":{"label":"last 365 days","scope":"all projects","models":false,"tools":false,"cost":false,"limit":5,"width":80,"color":true},"output":"\u001b[1;38;2;59;125;216mopencode stats\u001b[0m \u001b[2m· last 365 days · all projects\u001b[0m\n\n\u001b[1;38;2;59;125;216mactivity\u001b[0m\n \u001b[2mNov\u001b[0m\n\u001b[2mMo\u001b[0m \n\n\u001b[2mTu\u001b[0m \n\n\u001b[2mWe\u001b[0m \u001b[38;2;59;125;216m█\u001b[39m\n\n\u001b[2mTh\u001b[0m \n\n\u001b[2mFr\u001b[0m \n\n\u001b[2mSa\u001b[0m \n\n\u001b[2mSu\u001b[0m \n\n \u001b[2mless\u001b[0m \u001b[2m·\u001b[22m\u001b[38;2;153;169;192m░\u001b[39m\u001b[38;2;122;155;200m▒\u001b[39m\u001b[38;2;90;140;208m▓\u001b[39m\u001b[38;2;59;125;216m█\u001b[39m \u001b[2mmore\u001b[0m\n\n\u001b[1;38;2;59;125;216m2\u001b[0m sessions\n\u001b[1;38;2;59;125;216m1\u001b[0m prompt · \u001b[1;38;2;59;125;216m1\u001b[0m step · \u001b[1;38;2;59;125;216m1\u001b[0m token\nno tool calls · \u001b[1;38;2;59;125;216m1\u001b[0m active day · best streak \u001b[1;38;2;59;125;216m1\u001b[0m day\n\n\u001b[2mopencode.ai\u001b[0m"}, +{"stats":"no tool calls","name":"full","options":{"label":"2026 so far","scope":"current project","models":true,"tools":true,"cost":true,"limit":5,"width":100,"color":true},"output":"\u001b[2m2026 so far · current project\u001b[0m\n\nCOST & TOKENS\n cost $1234.57\n input 1\n output 0\n reasoning 0\n cache read 0\n cache write 0\n cached input 0.00%\n\nMODELS\n no model usage\n\nTOOL RELIABILITY\n tool details unavailable"}, +{"stats":"no tool calls","name":"full narrow","options":{"label":"last 365 days","scope":"all projects","models":true,"tools":true,"cost":true,"limit":1,"width":50,"color":true},"output":"\u001b[2mlast 365 days · all projects\u001b[0m\n\nCOST & TOKENS\n cost $1234.57\n input 1\n output 0\n reasoning 0\n cache read 0\n cache write 0\n cached input 0.00%\n\nMODELS\n no model usage\n\nTOOL RELIABILITY\n tool details unavailable"}, +{"stats":"no tool stats","name":"summary","options":{"label":"last 365 days","scope":"all projects","models":false,"tools":false,"cost":false,"limit":5,"width":80,"color":true},"output":"\u001b[1;38;2;59;125;216mopencode stats\u001b[0m \u001b[2m· last 365 days · all projects\u001b[0m\n\n\u001b[1;38;2;59;125;216mactivity\u001b[0m\n \u001b[2mNov\u001b[0m\n\u001b[2mMo\u001b[0m \n\n\u001b[2mTu\u001b[0m \n\n\u001b[2mWe\u001b[0m \u001b[38;2;59;125;216m█\u001b[39m\n\n\u001b[2mTh\u001b[0m \n\n\u001b[2mFr\u001b[0m \n\n\u001b[2mSa\u001b[0m \n\n\u001b[2mSu\u001b[0m \n\n \u001b[2mless\u001b[0m \u001b[2m·\u001b[22m\u001b[38;2;153;169;192m░\u001b[39m\u001b[38;2;122;155;200m▒\u001b[39m\u001b[38;2;90;140;208m▓\u001b[39m\u001b[38;2;59;125;216m█\u001b[39m \u001b[2mmore\u001b[0m\n\n\u001b[1;38;2;59;125;216m3\u001b[0m sessions\n\u001b[1;38;2;59;125;216m1\u001b[0m prompt · \u001b[1;38;2;59;125;216m1\u001b[0m step · \u001b[1;38;2;59;125;216m1\u001b[0m token\ntool stats unavailable · \u001b[1;38;2;59;125;216m1\u001b[0m active day · best streak \u001b[1;38;2;59;125;216m1\u001b[0m day\n\n\u001b[2mopencode.ai\u001b[0m"}, +{"stats":"no tool stats","name":"full","options":{"label":"2026 so far","scope":"current project","models":true,"tools":true,"cost":true,"limit":5,"width":100,"color":true},"output":"\u001b[2m2026 so far · current project\u001b[0m\n\nCOST & TOKENS\n cost $1234.57\n input 1\n output 0\n reasoning 0\n cache read 0\n cache write 0\n cached input 0.00%\n\nMODELS\n no model usage\n\nTOOL RELIABILITY\n tool details unavailable"}, +{"stats":"no tool stats","name":"full narrow","options":{"label":"last 365 days","scope":"all projects","models":true,"tools":true,"cost":true,"limit":1,"width":50,"color":true},"output":"\u001b[2mlast 365 days · all projects\u001b[0m\n\nCOST & TOKENS\n cost $1234.57\n input 1\n output 0\n reasoning 0\n cache read 0\n cache write 0\n cached input 0.00%\n\nMODELS\n no model usage\n\nTOOL RELIABILITY\n tool details unavailable"}, +{"stats":"no details","name":"summary","options":{"label":"last 365 days","scope":"all projects","models":false,"tools":false,"cost":false,"limit":5,"width":80,"color":true},"output":"\u001b[1;38;2;59;125;216mopencode stats\u001b[0m \u001b[2m· last 365 days · all projects\u001b[0m\n\n\u001b[1;38;2;59;125;216mactivity\u001b[0m\n \u001b[2mNov\u001b[0m\n\u001b[2mMo\u001b[0m \n\n\u001b[2mTu\u001b[0m \n\n\u001b[2mWe\u001b[0m \u001b[38;2;59;125;216m█\u001b[39m\n\n\u001b[2mTh\u001b[0m \n\n\u001b[2mFr\u001b[0m \n\n\u001b[2mSa\u001b[0m \n\n\u001b[2mSu\u001b[0m \n\n \u001b[2mless\u001b[0m \u001b[2m·\u001b[22m\u001b[38;2;153;169;192m░\u001b[39m\u001b[38;2;122;155;200m▒\u001b[39m\u001b[38;2;90;140;208m▓\u001b[39m\u001b[38;2;59;125;216m█\u001b[39m \u001b[2mmore\u001b[0m\n\n\u001b[1;38;2;59;125;216m1\u001b[0m session\n\u001b[1;38;2;59;125;216m1\u001b[0m prompt · \u001b[1;38;2;59;125;216m1\u001b[0m step · \u001b[1;38;2;59;125;216m1\u001b[0m token\nno tool calls · \u001b[1;38;2;59;125;216m1\u001b[0m active day · best streak \u001b[1;38;2;59;125;216m1\u001b[0m day\n\n\u001b[2mopencode.ai\u001b[0m"}, +{"stats":"no details","name":"full","options":{"label":"2026 so far","scope":"current project","models":true,"tools":true,"cost":true,"limit":5,"width":100,"color":true},"output":"\u001b[2m2026 so far · current project\u001b[0m\n\nCOST & TOKENS\n cost $1234.57\n input 1\n output 0\n reasoning 0\n cache read 0\n cache write 0\n cached input 0.00%\n\nMODELS\n no model usage\n\nTOOL RELIABILITY\n no tool calls"}, +{"stats":"no details","name":"full narrow","options":{"label":"last 365 days","scope":"all projects","models":true,"tools":true,"cost":true,"limit":1,"width":50,"color":true},"output":"\u001b[2mlast 365 days · all projects\u001b[0m\n\nCOST & TOKENS\n cost $1234.57\n input 1\n output 0\n reasoning 0\n cache read 0\n cache write 0\n cached input 0.00%\n\nMODELS\n no model usage\n\nTOOL RELIABILITY\n no tool calls"}, +{"stats":"empty","name":"summary","options":{"label":"last 365 days","scope":"all projects","models":false,"tools":false,"cost":false,"limit":5,"width":80,"color":true},"output":"\u001b[1;38;2;59;125;216mopencode stats\u001b[0m \u001b[2m· last 365 days · all projects\u001b[0m\n\n\u001b[2mno activity in this range\u001b[0m\n\n\u001b[2mopencode.ai\u001b[0m"}, +{"stats":"empty","name":"full","options":{"label":"2026 so far","scope":"current project","models":true,"tools":true,"cost":true,"limit":5,"width":100,"color":true},"output":"\u001b[2m2026 so far · current project\u001b[0m\n\nCOST & TOKENS\n cost $0.00\n input 0\n output 0\n reasoning 0\n cache read 0\n cache write 0\n cached input 0.00%\n\nMODELS\n no model usage\n\nTOOL RELIABILITY\n tool details unavailable"}, +{"stats":"empty","name":"full narrow","options":{"label":"last 365 days","scope":"all projects","models":true,"tools":true,"cost":true,"limit":1,"width":50,"color":true},"output":"\u001b[2mlast 365 days · all projects\u001b[0m\n\nCOST & TOKENS\n cost $0.00\n input 0\n output 0\n reasoning 0\n cache read 0\n cache write 0\n cached input 0.00%\n\nMODELS\n no model usage\n\nTOOL RELIABILITY\n tool details unavailable"} +]}, +{"colorfgbg": "15;6", "cases": [ +{"stats":"full","name":"summary","options":{"label":"last 365 days","scope":"all projects","models":false,"tools":false,"cost":false,"limit":5,"width":80,"color":true},"output":"\u001b[1;38;2;250;178;131mopencode stats\u001b[0m \u001b[2m· last 365 days · all projects\u001b[0m\n\n\u001b[1;38;2;250;178;131mactivity\u001b[0m\n \u001b[2mNov Dec Jan Feb Mar Apr May Jun Jul Aug Sep Oct Nov\u001b[0m\n\u001b[2mMo\u001b[0m \u001b[38;2;117;99;87m░\u001b[39m\u001b[2m·\u001b[22m\u001b[38;2;117;99;87m░\u001b[39m\u001b[38;2;206;152;116m▓\u001b[39m\u001b[2m·\u001b[22m\u001b[38;2;206;152;116m▓\u001b[39m\u001b[38;2;117;99;87m░\u001b[39m\u001b[2m·\u001b[22m\u001b[38;2;250;178;131m█\u001b[39m\u001b[38;2;161;125;102m▒\u001b[39m\u001b[2m·\u001b[22m\u001b[38;2;161;125;102m▒\u001b[39m\u001b[38;2;250;178;131m█\u001b[39m\u001b[2m·\u001b[22m\u001b[38;2;250;178;131m█\u001b[39m\u001b[38;2;161;125;102m▒\u001b[39m\u001b[2m·\u001b[22m\u001b[38;2;161;125;102m▒\u001b[39m\u001b[38;2;206;152;116m▓\u001b[39m\u001b[2m·\u001b[22m\u001b[38;2;206;152;116m▓\u001b[39m\u001b[38;2;117;99;87m░\u001b[39m\u001b[2m·\u001b[22m\u001b[38;2;117;99;87m░\u001b[39m\u001b[38;2;206;152;116m▓\u001b[39m\u001b[2m·\u001b[22m\u001b[38;2;206;152;116m▓\u001b[39m\u001b[38;2;117;99;87m░\u001b[39m\u001b[2m·\u001b[22m\u001b[38;2;250;178;131m█\u001b[39m\u001b[38;2;161;125;102m▒\u001b[39m\u001b[2m·\u001b[22m\u001b[38;2;161;125;102m▒\u001b[39m\u001b[38;2;250;178;131m█\u001b[39m\u001b[2m·\u001b[22m\u001b[38;2;250;178;131m█\u001b[39m\u001b[38;2;161;125;102m▒\u001b[39m\u001b[2m·\u001b[22m\u001b[38;2;117;99;87m░\u001b[39m\u001b[38;2;206;152;116m▓\u001b[39m\u001b[2m·\u001b[22m\u001b[38;2;206;152;116m▓\u001b[39m\u001b[38;2;117;99;87m░\u001b[39m\u001b[2m·\u001b[22m\u001b[38;2;117;99;87m░\u001b[39m\u001b[38;2;206;152;116m▓\u001b[39m\u001b[2m·\u001b[22m\u001b[38;2;161;125;102m▒\u001b[39m\u001b[38;2;250;178;131m█\u001b[39m\u001b[2m·\u001b[22m\u001b[38;2;250;178;131m█\u001b[39m\u001b[38;2;161;125;102m▒\u001b[39m\n\n\u001b[2mTu\u001b[0m \u001b[2m·\u001b[22m\u001b[38;2;161;125;102m▒\u001b[39m\u001b[38;2;250;178;131m█\u001b[39m\u001b[2m·\u001b[22m\u001b[38;2;206;152;116m▓\u001b[39m\u001b[38;2;117;99;87m░\u001b[39m\u001b[2m·\u001b[22m\u001b[38;2;117;99;87m░\u001b[39m\u001b[38;2;206;152;116m▓\u001b[39m\u001b[2m·\u001b[22m\u001b[38;2;206;152;116m▓\u001b[39m\u001b[38;2;117;99;87m░\u001b[39m\u001b[2m·\u001b[22m\u001b[38;2;117;99;87m░\u001b[39m\u001b[38;2;161;125;102m▒\u001b[39m\u001b[2m·\u001b[22m\u001b[38;2;161;125;102m▒\u001b[39m\u001b[38;2;250;178;131m█\u001b[39m\u001b[2m·\u001b[22m\u001b[38;2;250;178;131m█\u001b[39m\u001b[38;2;161;125;102m▒\u001b[39m\u001b[2m·\u001b[22m\u001b[38;2;161;125;102m▒\u001b[39m\u001b[38;2;250;178;131m█\u001b[39m\u001b[2m·\u001b[22m\u001b[38;2;206;152;116m▓\u001b[39m\u001b[38;2;117;99;87m░\u001b[39m\u001b[2m·\u001b[22m\u001b[38;2;117;99;87m░\u001b[39m\u001b[38;2;206;152;116m▓\u001b[39m\u001b[2m·\u001b[22m\u001b[38;2;206;152;116m▓\u001b[39m\u001b[38;2;117;99;87m░\u001b[39m\u001b[2m·\u001b[22m\u001b[38;2;250;178;131m█\u001b[39m\u001b[38;2;161;125;102m▒\u001b[39m\u001b[2m·\u001b[22m\u001b[38;2;161;125;102m▒\u001b[39m\u001b[38;2;250;178;131m█\u001b[39m\u001b[2m·\u001b[22m\u001b[38;2;250;178;131m█\u001b[39m\u001b[38;2;161;125;102m▒\u001b[39m\u001b[2m·\u001b[22m\u001b[38;2;117;99;87m░\u001b[39m\u001b[38;2;206;152;116m▓\u001b[39m\u001b[2m·\u001b[22m\u001b[38;2;206;152;116m▓\u001b[39m\u001b[38;2;117;99;87m░\u001b[39m\u001b[2m·\u001b[22m\u001b[38;2;117;99;87m░\u001b[39m\u001b[38;2;206;152;116m▓\u001b[39m\u001b[2m·\u001b[22m\n\n\u001b[2mWe\u001b[0m \u001b[2m·\u001b[22m\u001b[38;2;161;125;102m▒\u001b[39m\u001b[38;2;250;178;131m█\u001b[39m\u001b[2m·\u001b[22m\u001b[38;2;250;178;131m█\u001b[39m\u001b[38;2;161;125;102m▒\u001b[39m\u001b[2m·\u001b[22m\u001b[38;2;161;125;102m▒\u001b[39m\u001b[38;2;250;178;131m█\u001b[39m\u001b[2m·\u001b[22m\u001b[38;2;250;178;131m█\u001b[39m\u001b[38;2;117;99;87m░\u001b[39m\u001b[2m·\u001b[22m\u001b[38;2;117;99;87m░\u001b[39m\u001b[38;2;206;152;116m▓\u001b[39m\u001b[2m·\u001b[22m\u001b[38;2;206;152;116m▓\u001b[39m\u001b[38;2;117;99;87m░\u001b[39m\u001b[2m·\u001b[22m\u001b[38;2;117;99;87m░\u001b[39m\u001b[38;2;161;125;102m▒\u001b[39m\u001b[2m·\u001b[22m\u001b[38;2;161;125;102m▒\u001b[39m\u001b[38;2;250;178;131m█\u001b[39m\u001b[2m·\u001b[22m\u001b[38;2;250;178;131m█\u001b[39m\u001b[38;2;161;125;102m▒\u001b[39m\u001b[2m·\u001b[22m\u001b[38;2;161;125;102m▒\u001b[39m\u001b[38;2;250;178;131m█\u001b[39m\u001b[2m·\u001b[22m\u001b[38;2;206;152;116m▓\u001b[39m\u001b[38;2;117;99;87m░\u001b[39m\u001b[2m·\u001b[22m\u001b[38;2;117;99;87m░\u001b[39m\u001b[38;2;206;152;116m▓\u001b[39m\u001b[2m·\u001b[22m\u001b[38;2;206;152;116m▓\u001b[39m\u001b[38;2;117;99;87m░\u001b[39m\u001b[2m·\u001b[22m\u001b[38;2;250;178;131m█\u001b[39m\u001b[38;2;161;125;102m▒\u001b[39m\u001b[2m·\u001b[22m\u001b[38;2;161;125;102m▒\u001b[39m\u001b[38;2;250;178;131m█\u001b[39m\u001b[2m·\u001b[22m\u001b[38;2;250;178;131m█\u001b[39m\u001b[38;2;161;125;102m▒\u001b[39m\u001b[2m·\u001b[22m\u001b[38;2;117;99;87m░\u001b[39m\u001b[38;2;206;152;116m▓\u001b[39m\u001b[2m·\u001b[22m\u001b[38;2;206;152;116m▓\u001b[39m\n\n\u001b[2mTh\u001b[0m \u001b[38;2;206;152;116m▓\u001b[39m\u001b[38;2;117;99;87m░\u001b[39m\u001b[2m·\u001b[22m\u001b[38;2;117;99;87m░\u001b[39m\u001b[38;2;206;152;116m▓\u001b[39m\u001b[2m·\u001b[22m\u001b[38;2;161;125;102m▒\u001b[39m\u001b[38;2;250;178;131m█\u001b[39m\u001b[2m·\u001b[22m\u001b[38;2;250;178;131m█\u001b[39m\u001b[38;2;161;125;102m▒\u001b[39m\u001b[2m·\u001b[22m\u001b[38;2;161;125;102m▒\u001b[39m\u001b[38;2;250;178;131m█\u001b[39m\u001b[2m·\u001b[22m\u001b[38;2;250;178;131m█\u001b[39m\u001b[38;2;117;99;87m░\u001b[39m\u001b[2m·\u001b[22m\u001b[38;2;117;99;87m░\u001b[39m\u001b[38;2;206;152;116m▓\u001b[39m\u001b[2m·\u001b[22m\u001b[38;2;206;152;116m▓\u001b[39m\u001b[38;2;117;99;87m░\u001b[39m\u001b[2m·\u001b[22m\u001b[38;2;117;99;87m░\u001b[39m\u001b[38;2;206;152;116m▓\u001b[39m\u001b[2m·\u001b[22m\u001b[38;2;161;125;102m▒\u001b[39m\u001b[38;2;250;178;131m█\u001b[39m\u001b[2m·\u001b[22m\u001b[38;2;250;178;131m█\u001b[39m\u001b[38;2;161;125;102m▒\u001b[39m\u001b[2m·\u001b[22m\u001b[38;2;161;125;102m▒\u001b[39m\u001b[38;2;250;178;131m█\u001b[39m\u001b[2m·\u001b[22m\u001b[38;2;206;152;116m▓\u001b[39m\u001b[38;2;117;99;87m░\u001b[39m\u001b[2m·\u001b[22m\u001b[38;2;117;99;87m░\u001b[39m\u001b[38;2;206;152;116m▓\u001b[39m\u001b[2m·\u001b[22m\u001b[38;2;206;152;116m▓\u001b[39m\u001b[38;2;117;99;87m░\u001b[39m\u001b[2m·\u001b[22m\u001b[38;2;250;178;131m█\u001b[39m\u001b[38;2;161;125;102m▒\u001b[39m\u001b[2m·\u001b[22m\u001b[38;2;161;125;102m▒\u001b[39m\u001b[38;2;250;178;131m█\u001b[39m\u001b[2m·\u001b[22m\u001b[38;2;250;178;131m█\u001b[39m \n\n\u001b[2mFr\u001b[0m \u001b[38;2;161;125;102m▒\u001b[39m\u001b[2m·\u001b[22m\u001b[38;2;117;99;87m░\u001b[39m\u001b[38;2;206;152;116m▓\u001b[39m\u001b[2m·\u001b[22m\u001b[38;2;206;152;116m▓\u001b[39m\u001b[38;2;117;99;87m░\u001b[39m\u001b[2m·\u001b[22m\u001b[38;2;117;99;87m░\u001b[39m\u001b[38;2;206;152;116m▓\u001b[39m\u001b[2m·\u001b[22m\u001b[38;2;206;152;116m▓\u001b[39m\u001b[38;2;250;178;131m█\u001b[39m\u001b[2m·\u001b[22m\u001b[38;2;250;178;131m█\u001b[39m\u001b[38;2;161;125;102m▒\u001b[39m\u001b[2m·\u001b[22m\u001b[38;2;161;125;102m▒\u001b[39m\u001b[38;2;250;178;131m█\u001b[39m\u001b[2m·\u001b[22m\u001b[38;2;250;178;131m█\u001b[39m\u001b[38;2;117;99;87m░\u001b[39m\u001b[2m·\u001b[22m\u001b[38;2;117;99;87m░\u001b[39m\u001b[38;2;206;152;116m▓\u001b[39m\u001b[2m·\u001b[22m\u001b[38;2;206;152;116m▓\u001b[39m\u001b[38;2;117;99;87m░\u001b[39m\u001b[2m·\u001b[22m\u001b[38;2;117;99;87m░\u001b[39m\u001b[38;2;206;152;116m▓\u001b[39m\u001b[2m·\u001b[22m\u001b[38;2;161;125;102m▒\u001b[39m\u001b[38;2;250;178;131m█\u001b[39m\u001b[2m·\u001b[22m\u001b[38;2;250;178;131m█\u001b[39m\u001b[38;2;161;125;102m▒\u001b[39m\u001b[2m·\u001b[22m\u001b[38;2;161;125;102m▒\u001b[39m\u001b[38;2;250;178;131m█\u001b[39m\u001b[2m·\u001b[22m\u001b[38;2;206;152;116m▓\u001b[39m\u001b[38;2;117;99;87m░\u001b[39m\u001b[2m·\u001b[22m\u001b[38;2;117;99;87m░\u001b[39m\u001b[38;2;206;152;116m▓\u001b[39m\u001b[2m·\u001b[22m\u001b[38;2;206;152;116m▓\u001b[39m\u001b[38;2;117;99;87m░\u001b[39m\u001b[2m·\u001b[22m\u001b[38;2;250;178;131m█\u001b[39m\u001b[38;2;161;125;102m▒\u001b[39m \n\n\u001b[2mSa\u001b[0m \u001b[2m·\u001b[22m\u001b[38;2;161;125;102m▒\u001b[39m\u001b[38;2;250;178;131m█\u001b[39m\u001b[2m·\u001b[22m\u001b[38;2;250;178;131m█\u001b[39m\u001b[38;2;161;125;102m▒\u001b[39m\u001b[2m·\u001b[22m\u001b[38;2;117;99;87m░\u001b[39m\u001b[38;2;206;152;116m▓\u001b[39m\u001b[2m·\u001b[22m\u001b[38;2;206;152;116m▓\u001b[39m\u001b[38;2;117;99;87m░\u001b[39m\u001b[2m·\u001b[22m\u001b[38;2;117;99;87m░\u001b[39m\u001b[38;2;206;152;116m▓\u001b[39m\u001b[2m·\u001b[22m\u001b[38;2;206;152;116m▓\u001b[39m\u001b[38;2;250;178;131m█\u001b[39m\u001b[2m·\u001b[22m\u001b[38;2;250;178;131m█\u001b[39m\u001b[38;2;161;125;102m▒\u001b[39m\u001b[2m·\u001b[22m\u001b[38;2;161;125;102m▒\u001b[39m\u001b[38;2;250;178;131m█\u001b[39m\u001b[2m·\u001b[22m\u001b[38;2;250;178;131m█\u001b[39m\u001b[38;2;161;125;102m▒\u001b[39m\u001b[2m·\u001b[22m\u001b[38;2;117;99;87m░\u001b[39m\u001b[38;2;206;152;116m▓\u001b[39m\u001b[2m·\u001b[22m\u001b[38;2;206;152;116m▓\u001b[39m\u001b[38;2;117;99;87m░\u001b[39m\u001b[2m·\u001b[22m\u001b[38;2;117;99;87m░\u001b[39m\u001b[38;2;206;152;116m▓\u001b[39m\u001b[2m·\u001b[22m\u001b[38;2;161;125;102m▒\u001b[39m\u001b[38;2;250;178;131m█\u001b[39m\u001b[2m·\u001b[22m\u001b[38;2;250;178;131m█\u001b[39m\u001b[38;2;161;125;102m▒\u001b[39m\u001b[2m·\u001b[22m\u001b[38;2;161;125;102m▒\u001b[39m\u001b[38;2;250;178;131m█\u001b[39m\u001b[2m·\u001b[22m\u001b[38;2;206;152;116m▓\u001b[39m\u001b[38;2;117;99;87m░\u001b[39m\u001b[2m·\u001b[22m\u001b[38;2;117;99;87m░\u001b[39m\u001b[38;2;206;152;116m▓\u001b[39m\u001b[2m·\u001b[22m \n\n\u001b[2mSu\u001b[0m \u001b[38;2;206;152;116m▓\u001b[39m\u001b[38;2;117;99;87m░\u001b[39m\u001b[2m·\u001b[22m\u001b[38;2;250;178;131m█\u001b[39m\u001b[38;2;161;125;102m▒\u001b[39m\u001b[2m·\u001b[22m\u001b[38;2;161;125;102m▒\u001b[39m\u001b[38;2;250;178;131m█\u001b[39m\u001b[2m·\u001b[22m\u001b[38;2;250;178;131m█\u001b[39m\u001b[38;2;161;125;102m▒\u001b[39m\u001b[2m·\u001b[22m\u001b[38;2;161;125;102m▒\u001b[39m\u001b[38;2;206;152;116m▓\u001b[39m\u001b[2m·\u001b[22m\u001b[38;2;206;152;116m▓\u001b[39m\u001b[38;2;117;99;87m░\u001b[39m\u001b[2m·\u001b[22m\u001b[38;2;117;99;87m░\u001b[39m\u001b[38;2;206;152;116m▓\u001b[39m\u001b[2m·\u001b[22m\u001b[38;2;206;152;116m▓\u001b[39m\u001b[38;2;250;178;131m█\u001b[39m\u001b[2m·\u001b[22m\u001b[38;2;250;178;131m█\u001b[39m\u001b[38;2;161;125;102m▒\u001b[39m\u001b[2m·\u001b[22m\u001b[38;2;161;125;102m▒\u001b[39m\u001b[38;2;250;178;131m█\u001b[39m\u001b[2m·\u001b[22m\u001b[38;2;250;178;131m█\u001b[39m\u001b[38;2;161;125;102m▒\u001b[39m\u001b[2m·\u001b[22m\u001b[38;2;117;99;87m░\u001b[39m\u001b[38;2;206;152;116m▓\u001b[39m\u001b[2m·\u001b[22m\u001b[38;2;206;152;116m▓\u001b[39m\u001b[38;2;117;99;87m░\u001b[39m\u001b[2m·\u001b[22m\u001b[38;2;117;99;87m░\u001b[39m\u001b[38;2;206;152;116m▓\u001b[39m\u001b[2m·\u001b[22m\u001b[38;2;161;125;102m▒\u001b[39m\u001b[38;2;250;178;131m█\u001b[39m\u001b[2m·\u001b[22m\u001b[38;2;250;178;131m█\u001b[39m\u001b[38;2;161;125;102m▒\u001b[39m\u001b[2m·\u001b[22m\u001b[38;2;161;125;102m▒\u001b[39m\u001b[38;2;250;178;131m█\u001b[39m\u001b[2m·\u001b[22m\u001b[38;2;250;178;131m█\u001b[39m \n\n \u001b[2mless\u001b[0m \u001b[2m·\u001b[22m\u001b[38;2;117;99;87m░\u001b[39m\u001b[38;2;161;125;102m▒\u001b[39m\u001b[38;2;206;152;116m▓\u001b[39m\u001b[38;2;250;178;131m█\u001b[39m \u001b[2mmore\u001b[0m\n\n\u001b[1;38;2;250;178;131m1.2k\u001b[0m sessions · \u001b[1;38;2;250;178;131m56\u001b[0m subagents\n\u001b[1;38;2;250;178;131m9.9k\u001b[0m prompts · \u001b[1;38;2;250;178;131m54.3k\u001b[0m steps · \u001b[1;38;2;250;178;131m1b\u001b[0m tokens\n\u001b[1;38;2;250;178;131m98.5%\u001b[0m tool success · \u001b[1;38;2;250;178;131m243\u001b[0m active days · best streak \u001b[1;38;2;250;178;131m17\u001b[0m days\n\n\u001b[2mopencode.ai\u001b[0m"}, +{"stats":"full","name":"summary wide","options":{"label":"last 365 days","scope":"all projects","models":false,"tools":false,"cost":false,"limit":5,"width":120,"color":true},"output":"\u001b[1;38;2;250;178;131mopencode stats\u001b[0m \u001b[2m· last 365 days · all projects\u001b[0m\n\n\u001b[1;38;2;250;178;131mactivity\u001b[0m\n \u001b[2mNov Dec Jan Feb Mar Apr May Jun Jul Aug Sep Oct Nov\u001b[0m\n\u001b[2mMo\u001b[0m \u001b[38;2;117;99;87m░\u001b[39m\u001b[2m·\u001b[22m\u001b[38;2;117;99;87m░\u001b[39m\u001b[38;2;206;152;116m▓\u001b[39m\u001b[2m·\u001b[22m\u001b[38;2;206;152;116m▓\u001b[39m\u001b[38;2;117;99;87m░\u001b[39m\u001b[2m·\u001b[22m\u001b[38;2;250;178;131m█\u001b[39m\u001b[38;2;161;125;102m▒\u001b[39m\u001b[2m·\u001b[22m\u001b[38;2;161;125;102m▒\u001b[39m\u001b[38;2;250;178;131m█\u001b[39m\u001b[2m·\u001b[22m\u001b[38;2;250;178;131m█\u001b[39m\u001b[38;2;161;125;102m▒\u001b[39m\u001b[2m·\u001b[22m\u001b[38;2;161;125;102m▒\u001b[39m\u001b[38;2;206;152;116m▓\u001b[39m\u001b[2m·\u001b[22m\u001b[38;2;206;152;116m▓\u001b[39m\u001b[38;2;117;99;87m░\u001b[39m\u001b[2m·\u001b[22m\u001b[38;2;117;99;87m░\u001b[39m\u001b[38;2;206;152;116m▓\u001b[39m\u001b[2m·\u001b[22m\u001b[38;2;206;152;116m▓\u001b[39m\u001b[38;2;117;99;87m░\u001b[39m\u001b[2m·\u001b[22m\u001b[38;2;250;178;131m█\u001b[39m\u001b[38;2;161;125;102m▒\u001b[39m\u001b[2m·\u001b[22m\u001b[38;2;161;125;102m▒\u001b[39m\u001b[38;2;250;178;131m█\u001b[39m\u001b[2m·\u001b[22m\u001b[38;2;250;178;131m█\u001b[39m\u001b[38;2;161;125;102m▒\u001b[39m\u001b[2m·\u001b[22m\u001b[38;2;117;99;87m░\u001b[39m\u001b[38;2;206;152;116m▓\u001b[39m\u001b[2m·\u001b[22m\u001b[38;2;206;152;116m▓\u001b[39m\u001b[38;2;117;99;87m░\u001b[39m\u001b[2m·\u001b[22m\u001b[38;2;117;99;87m░\u001b[39m\u001b[38;2;206;152;116m▓\u001b[39m\u001b[2m·\u001b[22m\u001b[38;2;161;125;102m▒\u001b[39m\u001b[38;2;250;178;131m█\u001b[39m\u001b[2m·\u001b[22m\u001b[38;2;250;178;131m█\u001b[39m\u001b[38;2;161;125;102m▒\u001b[39m\n\n\u001b[2mTu\u001b[0m \u001b[2m·\u001b[22m\u001b[38;2;161;125;102m▒\u001b[39m\u001b[38;2;250;178;131m█\u001b[39m\u001b[2m·\u001b[22m\u001b[38;2;206;152;116m▓\u001b[39m\u001b[38;2;117;99;87m░\u001b[39m\u001b[2m·\u001b[22m\u001b[38;2;117;99;87m░\u001b[39m\u001b[38;2;206;152;116m▓\u001b[39m\u001b[2m·\u001b[22m\u001b[38;2;206;152;116m▓\u001b[39m\u001b[38;2;117;99;87m░\u001b[39m\u001b[2m·\u001b[22m\u001b[38;2;117;99;87m░\u001b[39m\u001b[38;2;161;125;102m▒\u001b[39m\u001b[2m·\u001b[22m\u001b[38;2;161;125;102m▒\u001b[39m\u001b[38;2;250;178;131m█\u001b[39m\u001b[2m·\u001b[22m\u001b[38;2;250;178;131m█\u001b[39m\u001b[38;2;161;125;102m▒\u001b[39m\u001b[2m·\u001b[22m\u001b[38;2;161;125;102m▒\u001b[39m\u001b[38;2;250;178;131m█\u001b[39m\u001b[2m·\u001b[22m\u001b[38;2;206;152;116m▓\u001b[39m\u001b[38;2;117;99;87m░\u001b[39m\u001b[2m·\u001b[22m\u001b[38;2;117;99;87m░\u001b[39m\u001b[38;2;206;152;116m▓\u001b[39m\u001b[2m·\u001b[22m\u001b[38;2;206;152;116m▓\u001b[39m\u001b[38;2;117;99;87m░\u001b[39m\u001b[2m·\u001b[22m\u001b[38;2;250;178;131m█\u001b[39m\u001b[38;2;161;125;102m▒\u001b[39m\u001b[2m·\u001b[22m\u001b[38;2;161;125;102m▒\u001b[39m\u001b[38;2;250;178;131m█\u001b[39m\u001b[2m·\u001b[22m\u001b[38;2;250;178;131m█\u001b[39m\u001b[38;2;161;125;102m▒\u001b[39m\u001b[2m·\u001b[22m\u001b[38;2;117;99;87m░\u001b[39m\u001b[38;2;206;152;116m▓\u001b[39m\u001b[2m·\u001b[22m\u001b[38;2;206;152;116m▓\u001b[39m\u001b[38;2;117;99;87m░\u001b[39m\u001b[2m·\u001b[22m\u001b[38;2;117;99;87m░\u001b[39m\u001b[38;2;206;152;116m▓\u001b[39m\u001b[2m·\u001b[22m\n\n\u001b[2mWe\u001b[0m \u001b[2m·\u001b[22m\u001b[38;2;161;125;102m▒\u001b[39m\u001b[38;2;250;178;131m█\u001b[39m\u001b[2m·\u001b[22m\u001b[38;2;250;178;131m█\u001b[39m\u001b[38;2;161;125;102m▒\u001b[39m\u001b[2m·\u001b[22m\u001b[38;2;161;125;102m▒\u001b[39m\u001b[38;2;250;178;131m█\u001b[39m\u001b[2m·\u001b[22m\u001b[38;2;250;178;131m█\u001b[39m\u001b[38;2;117;99;87m░\u001b[39m\u001b[2m·\u001b[22m\u001b[38;2;117;99;87m░\u001b[39m\u001b[38;2;206;152;116m▓\u001b[39m\u001b[2m·\u001b[22m\u001b[38;2;206;152;116m▓\u001b[39m\u001b[38;2;117;99;87m░\u001b[39m\u001b[2m·\u001b[22m\u001b[38;2;117;99;87m░\u001b[39m\u001b[38;2;161;125;102m▒\u001b[39m\u001b[2m·\u001b[22m\u001b[38;2;161;125;102m▒\u001b[39m\u001b[38;2;250;178;131m█\u001b[39m\u001b[2m·\u001b[22m\u001b[38;2;250;178;131m█\u001b[39m\u001b[38;2;161;125;102m▒\u001b[39m\u001b[2m·\u001b[22m\u001b[38;2;161;125;102m▒\u001b[39m\u001b[38;2;250;178;131m█\u001b[39m\u001b[2m·\u001b[22m\u001b[38;2;206;152;116m▓\u001b[39m\u001b[38;2;117;99;87m░\u001b[39m\u001b[2m·\u001b[22m\u001b[38;2;117;99;87m░\u001b[39m\u001b[38;2;206;152;116m▓\u001b[39m\u001b[2m·\u001b[22m\u001b[38;2;206;152;116m▓\u001b[39m\u001b[38;2;117;99;87m░\u001b[39m\u001b[2m·\u001b[22m\u001b[38;2;250;178;131m█\u001b[39m\u001b[38;2;161;125;102m▒\u001b[39m\u001b[2m·\u001b[22m\u001b[38;2;161;125;102m▒\u001b[39m\u001b[38;2;250;178;131m█\u001b[39m\u001b[2m·\u001b[22m\u001b[38;2;250;178;131m█\u001b[39m\u001b[38;2;161;125;102m▒\u001b[39m\u001b[2m·\u001b[22m\u001b[38;2;117;99;87m░\u001b[39m\u001b[38;2;206;152;116m▓\u001b[39m\u001b[2m·\u001b[22m\u001b[38;2;206;152;116m▓\u001b[39m\n\n\u001b[2mTh\u001b[0m \u001b[38;2;206;152;116m▓\u001b[39m\u001b[38;2;117;99;87m░\u001b[39m\u001b[2m·\u001b[22m\u001b[38;2;117;99;87m░\u001b[39m\u001b[38;2;206;152;116m▓\u001b[39m\u001b[2m·\u001b[22m\u001b[38;2;161;125;102m▒\u001b[39m\u001b[38;2;250;178;131m█\u001b[39m\u001b[2m·\u001b[22m\u001b[38;2;250;178;131m█\u001b[39m\u001b[38;2;161;125;102m▒\u001b[39m\u001b[2m·\u001b[22m\u001b[38;2;161;125;102m▒\u001b[39m\u001b[38;2;250;178;131m█\u001b[39m\u001b[2m·\u001b[22m\u001b[38;2;250;178;131m█\u001b[39m\u001b[38;2;117;99;87m░\u001b[39m\u001b[2m·\u001b[22m\u001b[38;2;117;99;87m░\u001b[39m\u001b[38;2;206;152;116m▓\u001b[39m\u001b[2m·\u001b[22m\u001b[38;2;206;152;116m▓\u001b[39m\u001b[38;2;117;99;87m░\u001b[39m\u001b[2m·\u001b[22m\u001b[38;2;117;99;87m░\u001b[39m\u001b[38;2;206;152;116m▓\u001b[39m\u001b[2m·\u001b[22m\u001b[38;2;161;125;102m▒\u001b[39m\u001b[38;2;250;178;131m█\u001b[39m\u001b[2m·\u001b[22m\u001b[38;2;250;178;131m█\u001b[39m\u001b[38;2;161;125;102m▒\u001b[39m\u001b[2m·\u001b[22m\u001b[38;2;161;125;102m▒\u001b[39m\u001b[38;2;250;178;131m█\u001b[39m\u001b[2m·\u001b[22m\u001b[38;2;206;152;116m▓\u001b[39m\u001b[38;2;117;99;87m░\u001b[39m\u001b[2m·\u001b[22m\u001b[38;2;117;99;87m░\u001b[39m\u001b[38;2;206;152;116m▓\u001b[39m\u001b[2m·\u001b[22m\u001b[38;2;206;152;116m▓\u001b[39m\u001b[38;2;117;99;87m░\u001b[39m\u001b[2m·\u001b[22m\u001b[38;2;250;178;131m█\u001b[39m\u001b[38;2;161;125;102m▒\u001b[39m\u001b[2m·\u001b[22m\u001b[38;2;161;125;102m▒\u001b[39m\u001b[38;2;250;178;131m█\u001b[39m\u001b[2m·\u001b[22m\u001b[38;2;250;178;131m█\u001b[39m \n\n\u001b[2mFr\u001b[0m \u001b[38;2;161;125;102m▒\u001b[39m\u001b[2m·\u001b[22m\u001b[38;2;117;99;87m░\u001b[39m\u001b[38;2;206;152;116m▓\u001b[39m\u001b[2m·\u001b[22m\u001b[38;2;206;152;116m▓\u001b[39m\u001b[38;2;117;99;87m░\u001b[39m\u001b[2m·\u001b[22m\u001b[38;2;117;99;87m░\u001b[39m\u001b[38;2;206;152;116m▓\u001b[39m\u001b[2m·\u001b[22m\u001b[38;2;206;152;116m▓\u001b[39m\u001b[38;2;250;178;131m█\u001b[39m\u001b[2m·\u001b[22m\u001b[38;2;250;178;131m█\u001b[39m\u001b[38;2;161;125;102m▒\u001b[39m\u001b[2m·\u001b[22m\u001b[38;2;161;125;102m▒\u001b[39m\u001b[38;2;250;178;131m█\u001b[39m\u001b[2m·\u001b[22m\u001b[38;2;250;178;131m█\u001b[39m\u001b[38;2;117;99;87m░\u001b[39m\u001b[2m·\u001b[22m\u001b[38;2;117;99;87m░\u001b[39m\u001b[38;2;206;152;116m▓\u001b[39m\u001b[2m·\u001b[22m\u001b[38;2;206;152;116m▓\u001b[39m\u001b[38;2;117;99;87m░\u001b[39m\u001b[2m·\u001b[22m\u001b[38;2;117;99;87m░\u001b[39m\u001b[38;2;206;152;116m▓\u001b[39m\u001b[2m·\u001b[22m\u001b[38;2;161;125;102m▒\u001b[39m\u001b[38;2;250;178;131m█\u001b[39m\u001b[2m·\u001b[22m\u001b[38;2;250;178;131m█\u001b[39m\u001b[38;2;161;125;102m▒\u001b[39m\u001b[2m·\u001b[22m\u001b[38;2;161;125;102m▒\u001b[39m\u001b[38;2;250;178;131m█\u001b[39m\u001b[2m·\u001b[22m\u001b[38;2;206;152;116m▓\u001b[39m\u001b[38;2;117;99;87m░\u001b[39m\u001b[2m·\u001b[22m\u001b[38;2;117;99;87m░\u001b[39m\u001b[38;2;206;152;116m▓\u001b[39m\u001b[2m·\u001b[22m\u001b[38;2;206;152;116m▓\u001b[39m\u001b[38;2;117;99;87m░\u001b[39m\u001b[2m·\u001b[22m\u001b[38;2;250;178;131m█\u001b[39m\u001b[38;2;161;125;102m▒\u001b[39m \n\n\u001b[2mSa\u001b[0m \u001b[2m·\u001b[22m\u001b[38;2;161;125;102m▒\u001b[39m\u001b[38;2;250;178;131m█\u001b[39m\u001b[2m·\u001b[22m\u001b[38;2;250;178;131m█\u001b[39m\u001b[38;2;161;125;102m▒\u001b[39m\u001b[2m·\u001b[22m\u001b[38;2;117;99;87m░\u001b[39m\u001b[38;2;206;152;116m▓\u001b[39m\u001b[2m·\u001b[22m\u001b[38;2;206;152;116m▓\u001b[39m\u001b[38;2;117;99;87m░\u001b[39m\u001b[2m·\u001b[22m\u001b[38;2;117;99;87m░\u001b[39m\u001b[38;2;206;152;116m▓\u001b[39m\u001b[2m·\u001b[22m\u001b[38;2;206;152;116m▓\u001b[39m\u001b[38;2;250;178;131m█\u001b[39m\u001b[2m·\u001b[22m\u001b[38;2;250;178;131m█\u001b[39m\u001b[38;2;161;125;102m▒\u001b[39m\u001b[2m·\u001b[22m\u001b[38;2;161;125;102m▒\u001b[39m\u001b[38;2;250;178;131m█\u001b[39m\u001b[2m·\u001b[22m\u001b[38;2;250;178;131m█\u001b[39m\u001b[38;2;161;125;102m▒\u001b[39m\u001b[2m·\u001b[22m\u001b[38;2;117;99;87m░\u001b[39m\u001b[38;2;206;152;116m▓\u001b[39m\u001b[2m·\u001b[22m\u001b[38;2;206;152;116m▓\u001b[39m\u001b[38;2;117;99;87m░\u001b[39m\u001b[2m·\u001b[22m\u001b[38;2;117;99;87m░\u001b[39m\u001b[38;2;206;152;116m▓\u001b[39m\u001b[2m·\u001b[22m\u001b[38;2;161;125;102m▒\u001b[39m\u001b[38;2;250;178;131m█\u001b[39m\u001b[2m·\u001b[22m\u001b[38;2;250;178;131m█\u001b[39m\u001b[38;2;161;125;102m▒\u001b[39m\u001b[2m·\u001b[22m\u001b[38;2;161;125;102m▒\u001b[39m\u001b[38;2;250;178;131m█\u001b[39m\u001b[2m·\u001b[22m\u001b[38;2;206;152;116m▓\u001b[39m\u001b[38;2;117;99;87m░\u001b[39m\u001b[2m·\u001b[22m\u001b[38;2;117;99;87m░\u001b[39m\u001b[38;2;206;152;116m▓\u001b[39m\u001b[2m·\u001b[22m \n\n\u001b[2mSu\u001b[0m \u001b[38;2;206;152;116m▓\u001b[39m\u001b[38;2;117;99;87m░\u001b[39m\u001b[2m·\u001b[22m\u001b[38;2;250;178;131m█\u001b[39m\u001b[38;2;161;125;102m▒\u001b[39m\u001b[2m·\u001b[22m\u001b[38;2;161;125;102m▒\u001b[39m\u001b[38;2;250;178;131m█\u001b[39m\u001b[2m·\u001b[22m\u001b[38;2;250;178;131m█\u001b[39m\u001b[38;2;161;125;102m▒\u001b[39m\u001b[2m·\u001b[22m\u001b[38;2;161;125;102m▒\u001b[39m\u001b[38;2;206;152;116m▓\u001b[39m\u001b[2m·\u001b[22m\u001b[38;2;206;152;116m▓\u001b[39m\u001b[38;2;117;99;87m░\u001b[39m\u001b[2m·\u001b[22m\u001b[38;2;117;99;87m░\u001b[39m\u001b[38;2;206;152;116m▓\u001b[39m\u001b[2m·\u001b[22m\u001b[38;2;206;152;116m▓\u001b[39m\u001b[38;2;250;178;131m█\u001b[39m\u001b[2m·\u001b[22m\u001b[38;2;250;178;131m█\u001b[39m\u001b[38;2;161;125;102m▒\u001b[39m\u001b[2m·\u001b[22m\u001b[38;2;161;125;102m▒\u001b[39m\u001b[38;2;250;178;131m█\u001b[39m\u001b[2m·\u001b[22m\u001b[38;2;250;178;131m█\u001b[39m\u001b[38;2;161;125;102m▒\u001b[39m\u001b[2m·\u001b[22m\u001b[38;2;117;99;87m░\u001b[39m\u001b[38;2;206;152;116m▓\u001b[39m\u001b[2m·\u001b[22m\u001b[38;2;206;152;116m▓\u001b[39m\u001b[38;2;117;99;87m░\u001b[39m\u001b[2m·\u001b[22m\u001b[38;2;117;99;87m░\u001b[39m\u001b[38;2;206;152;116m▓\u001b[39m\u001b[2m·\u001b[22m\u001b[38;2;161;125;102m▒\u001b[39m\u001b[38;2;250;178;131m█\u001b[39m\u001b[2m·\u001b[22m\u001b[38;2;250;178;131m█\u001b[39m\u001b[38;2;161;125;102m▒\u001b[39m\u001b[2m·\u001b[22m\u001b[38;2;161;125;102m▒\u001b[39m\u001b[38;2;250;178;131m█\u001b[39m\u001b[2m·\u001b[22m\u001b[38;2;250;178;131m█\u001b[39m \n\n \u001b[2mless\u001b[0m \u001b[2m·\u001b[22m\u001b[38;2;117;99;87m░\u001b[39m\u001b[38;2;161;125;102m▒\u001b[39m\u001b[38;2;206;152;116m▓\u001b[39m\u001b[38;2;250;178;131m█\u001b[39m \u001b[2mmore\u001b[0m\n\n\u001b[1;38;2;250;178;131m1.2k\u001b[0m sessions · \u001b[1;38;2;250;178;131m56\u001b[0m subagents\n\u001b[1;38;2;250;178;131m9.9k\u001b[0m prompts · \u001b[1;38;2;250;178;131m54.3k\u001b[0m steps · \u001b[1;38;2;250;178;131m1b\u001b[0m tokens\n\u001b[1;38;2;250;178;131m98.5%\u001b[0m tool success · \u001b[1;38;2;250;178;131m243\u001b[0m active days · best streak \u001b[1;38;2;250;178;131m17\u001b[0m days\n\n\u001b[2mopencode.ai\u001b[0m"}, +{"stats":"full","name":"summary narrow","options":{"label":"last 365 days","scope":"all projects","models":false,"tools":false,"cost":false,"limit":5,"width":40,"color":true},"output":"\u001b[1;38;2;250;178;131mopencode stats\u001b[0m \u001b[2m· last 365 days · all projects\u001b[0m\n\n\u001b[1;38;2;250;178;131mactivity · last 36 weeks\u001b[0m\n \u001b[2mMar Apr May Jun Jul Aug Sep Oct Nov\u001b[0m\n\u001b[2mMo\u001b[0m \u001b[2m·\u001b[22m\u001b[38;2;161;125;102m▒\u001b[39m\u001b[38;2;206;152;116m▓\u001b[39m\u001b[2m·\u001b[22m\u001b[38;2;206;152;116m▓\u001b[39m\u001b[38;2;117;99;87m░\u001b[39m\u001b[2m·\u001b[22m\u001b[38;2;117;99;87m░\u001b[39m\u001b[38;2;206;152;116m▓\u001b[39m\u001b[2m·\u001b[22m\u001b[38;2;206;152;116m▓\u001b[39m\u001b[38;2;117;99;87m░\u001b[39m\u001b[2m·\u001b[22m\u001b[38;2;250;178;131m█\u001b[39m\u001b[38;2;161;125;102m▒\u001b[39m\u001b[2m·\u001b[22m\u001b[38;2;161;125;102m▒\u001b[39m\u001b[38;2;250;178;131m█\u001b[39m\u001b[2m·\u001b[22m\u001b[38;2;250;178;131m█\u001b[39m\u001b[38;2;161;125;102m▒\u001b[39m\u001b[2m·\u001b[22m\u001b[38;2;117;99;87m░\u001b[39m\u001b[38;2;206;152;116m▓\u001b[39m\u001b[2m·\u001b[22m\u001b[38;2;206;152;116m▓\u001b[39m\u001b[38;2;117;99;87m░\u001b[39m\u001b[2m·\u001b[22m\u001b[38;2;117;99;87m░\u001b[39m\u001b[38;2;206;152;116m▓\u001b[39m\u001b[2m·\u001b[22m\u001b[38;2;161;125;102m▒\u001b[39m\u001b[38;2;250;178;131m█\u001b[39m\u001b[2m·\u001b[22m\u001b[38;2;250;178;131m█\u001b[39m\u001b[38;2;161;125;102m▒\u001b[39m\n\n\u001b[2mTu\u001b[0m \u001b[38;2;161;125;102m▒\u001b[39m\u001b[38;2;250;178;131m█\u001b[39m\u001b[2m·\u001b[22m\u001b[38;2;250;178;131m█\u001b[39m\u001b[38;2;161;125;102m▒\u001b[39m\u001b[2m·\u001b[22m\u001b[38;2;161;125;102m▒\u001b[39m\u001b[38;2;250;178;131m█\u001b[39m\u001b[2m·\u001b[22m\u001b[38;2;206;152;116m▓\u001b[39m\u001b[38;2;117;99;87m░\u001b[39m\u001b[2m·\u001b[22m\u001b[38;2;117;99;87m░\u001b[39m\u001b[38;2;206;152;116m▓\u001b[39m\u001b[2m·\u001b[22m\u001b[38;2;206;152;116m▓\u001b[39m\u001b[38;2;117;99;87m░\u001b[39m\u001b[2m·\u001b[22m\u001b[38;2;250;178;131m█\u001b[39m\u001b[38;2;161;125;102m▒\u001b[39m\u001b[2m·\u001b[22m\u001b[38;2;161;125;102m▒\u001b[39m\u001b[38;2;250;178;131m█\u001b[39m\u001b[2m·\u001b[22m\u001b[38;2;250;178;131m█\u001b[39m\u001b[38;2;161;125;102m▒\u001b[39m\u001b[2m·\u001b[22m\u001b[38;2;117;99;87m░\u001b[39m\u001b[38;2;206;152;116m▓\u001b[39m\u001b[2m·\u001b[22m\u001b[38;2;206;152;116m▓\u001b[39m\u001b[38;2;117;99;87m░\u001b[39m\u001b[2m·\u001b[22m\u001b[38;2;117;99;87m░\u001b[39m\u001b[38;2;206;152;116m▓\u001b[39m\u001b[2m·\u001b[22m\n\n\u001b[2mWe\u001b[0m \u001b[38;2;117;99;87m░\u001b[39m\u001b[2m·\u001b[22m\u001b[38;2;117;99;87m░\u001b[39m\u001b[38;2;161;125;102m▒\u001b[39m\u001b[2m·\u001b[22m\u001b[38;2;161;125;102m▒\u001b[39m\u001b[38;2;250;178;131m█\u001b[39m\u001b[2m·\u001b[22m\u001b[38;2;250;178;131m█\u001b[39m\u001b[38;2;161;125;102m▒\u001b[39m\u001b[2m·\u001b[22m\u001b[38;2;161;125;102m▒\u001b[39m\u001b[38;2;250;178;131m█\u001b[39m\u001b[2m·\u001b[22m\u001b[38;2;206;152;116m▓\u001b[39m\u001b[38;2;117;99;87m░\u001b[39m\u001b[2m·\u001b[22m\u001b[38;2;117;99;87m░\u001b[39m\u001b[38;2;206;152;116m▓\u001b[39m\u001b[2m·\u001b[22m\u001b[38;2;206;152;116m▓\u001b[39m\u001b[38;2;117;99;87m░\u001b[39m\u001b[2m·\u001b[22m\u001b[38;2;250;178;131m█\u001b[39m\u001b[38;2;161;125;102m▒\u001b[39m\u001b[2m·\u001b[22m\u001b[38;2;161;125;102m▒\u001b[39m\u001b[38;2;250;178;131m█\u001b[39m\u001b[2m·\u001b[22m\u001b[38;2;250;178;131m█\u001b[39m\u001b[38;2;161;125;102m▒\u001b[39m\u001b[2m·\u001b[22m\u001b[38;2;117;99;87m░\u001b[39m\u001b[38;2;206;152;116m▓\u001b[39m\u001b[2m·\u001b[22m\u001b[38;2;206;152;116m▓\u001b[39m\n\n\u001b[2mTh\u001b[0m \u001b[2m·\u001b[22m\u001b[38;2;117;99;87m░\u001b[39m\u001b[38;2;206;152;116m▓\u001b[39m\u001b[2m·\u001b[22m\u001b[38;2;206;152;116m▓\u001b[39m\u001b[38;2;117;99;87m░\u001b[39m\u001b[2m·\u001b[22m\u001b[38;2;117;99;87m░\u001b[39m\u001b[38;2;206;152;116m▓\u001b[39m\u001b[2m·\u001b[22m\u001b[38;2;161;125;102m▒\u001b[39m\u001b[38;2;250;178;131m█\u001b[39m\u001b[2m·\u001b[22m\u001b[38;2;250;178;131m█\u001b[39m\u001b[38;2;161;125;102m▒\u001b[39m\u001b[2m·\u001b[22m\u001b[38;2;161;125;102m▒\u001b[39m\u001b[38;2;250;178;131m█\u001b[39m\u001b[2m·\u001b[22m\u001b[38;2;206;152;116m▓\u001b[39m\u001b[38;2;117;99;87m░\u001b[39m\u001b[2m·\u001b[22m\u001b[38;2;117;99;87m░\u001b[39m\u001b[38;2;206;152;116m▓\u001b[39m\u001b[2m·\u001b[22m\u001b[38;2;206;152;116m▓\u001b[39m\u001b[38;2;117;99;87m░\u001b[39m\u001b[2m·\u001b[22m\u001b[38;2;250;178;131m█\u001b[39m\u001b[38;2;161;125;102m▒\u001b[39m\u001b[2m·\u001b[22m\u001b[38;2;161;125;102m▒\u001b[39m\u001b[38;2;250;178;131m█\u001b[39m\u001b[2m·\u001b[22m\u001b[38;2;250;178;131m█\u001b[39m \n\n\u001b[2mFr\u001b[0m \u001b[38;2;161;125;102m▒\u001b[39m\u001b[38;2;250;178;131m█\u001b[39m\u001b[2m·\u001b[22m\u001b[38;2;250;178;131m█\u001b[39m\u001b[38;2;117;99;87m░\u001b[39m\u001b[2m·\u001b[22m\u001b[38;2;117;99;87m░\u001b[39m\u001b[38;2;206;152;116m▓\u001b[39m\u001b[2m·\u001b[22m\u001b[38;2;206;152;116m▓\u001b[39m\u001b[38;2;117;99;87m░\u001b[39m\u001b[2m·\u001b[22m\u001b[38;2;117;99;87m░\u001b[39m\u001b[38;2;206;152;116m▓\u001b[39m\u001b[2m·\u001b[22m\u001b[38;2;161;125;102m▒\u001b[39m\u001b[38;2;250;178;131m█\u001b[39m\u001b[2m·\u001b[22m\u001b[38;2;250;178;131m█\u001b[39m\u001b[38;2;161;125;102m▒\u001b[39m\u001b[2m·\u001b[22m\u001b[38;2;161;125;102m▒\u001b[39m\u001b[38;2;250;178;131m█\u001b[39m\u001b[2m·\u001b[22m\u001b[38;2;206;152;116m▓\u001b[39m\u001b[38;2;117;99;87m░\u001b[39m\u001b[2m·\u001b[22m\u001b[38;2;117;99;87m░\u001b[39m\u001b[38;2;206;152;116m▓\u001b[39m\u001b[2m·\u001b[22m\u001b[38;2;206;152;116m▓\u001b[39m\u001b[38;2;117;99;87m░\u001b[39m\u001b[2m·\u001b[22m\u001b[38;2;250;178;131m█\u001b[39m\u001b[38;2;161;125;102m▒\u001b[39m \n\n\u001b[2mSa\u001b[0m \u001b[38;2;250;178;131m█\u001b[39m\u001b[2m·\u001b[22m\u001b[38;2;250;178;131m█\u001b[39m\u001b[38;2;161;125;102m▒\u001b[39m\u001b[2m·\u001b[22m\u001b[38;2;161;125;102m▒\u001b[39m\u001b[38;2;250;178;131m█\u001b[39m\u001b[2m·\u001b[22m\u001b[38;2;250;178;131m█\u001b[39m\u001b[38;2;161;125;102m▒\u001b[39m\u001b[2m·\u001b[22m\u001b[38;2;117;99;87m░\u001b[39m\u001b[38;2;206;152;116m▓\u001b[39m\u001b[2m·\u001b[22m\u001b[38;2;206;152;116m▓\u001b[39m\u001b[38;2;117;99;87m░\u001b[39m\u001b[2m·\u001b[22m\u001b[38;2;117;99;87m░\u001b[39m\u001b[38;2;206;152;116m▓\u001b[39m\u001b[2m·\u001b[22m\u001b[38;2;161;125;102m▒\u001b[39m\u001b[38;2;250;178;131m█\u001b[39m\u001b[2m·\u001b[22m\u001b[38;2;250;178;131m█\u001b[39m\u001b[38;2;161;125;102m▒\u001b[39m\u001b[2m·\u001b[22m\u001b[38;2;161;125;102m▒\u001b[39m\u001b[38;2;250;178;131m█\u001b[39m\u001b[2m·\u001b[22m\u001b[38;2;206;152;116m▓\u001b[39m\u001b[38;2;117;99;87m░\u001b[39m\u001b[2m·\u001b[22m\u001b[38;2;117;99;87m░\u001b[39m\u001b[38;2;206;152;116m▓\u001b[39m\u001b[2m·\u001b[22m \n\n\u001b[2mSu\u001b[0m \u001b[2m·\u001b[22m\u001b[38;2;117;99;87m░\u001b[39m\u001b[38;2;206;152;116m▓\u001b[39m\u001b[2m·\u001b[22m\u001b[38;2;206;152;116m▓\u001b[39m\u001b[38;2;250;178;131m█\u001b[39m\u001b[2m·\u001b[22m\u001b[38;2;250;178;131m█\u001b[39m\u001b[38;2;161;125;102m▒\u001b[39m\u001b[2m·\u001b[22m\u001b[38;2;161;125;102m▒\u001b[39m\u001b[38;2;250;178;131m█\u001b[39m\u001b[2m·\u001b[22m\u001b[38;2;250;178;131m█\u001b[39m\u001b[38;2;161;125;102m▒\u001b[39m\u001b[2m·\u001b[22m\u001b[38;2;117;99;87m░\u001b[39m\u001b[38;2;206;152;116m▓\u001b[39m\u001b[2m·\u001b[22m\u001b[38;2;206;152;116m▓\u001b[39m\u001b[38;2;117;99;87m░\u001b[39m\u001b[2m·\u001b[22m\u001b[38;2;117;99;87m░\u001b[39m\u001b[38;2;206;152;116m▓\u001b[39m\u001b[2m·\u001b[22m\u001b[38;2;161;125;102m▒\u001b[39m\u001b[38;2;250;178;131m█\u001b[39m\u001b[2m·\u001b[22m\u001b[38;2;250;178;131m█\u001b[39m\u001b[38;2;161;125;102m▒\u001b[39m\u001b[2m·\u001b[22m\u001b[38;2;161;125;102m▒\u001b[39m\u001b[38;2;250;178;131m█\u001b[39m\u001b[2m·\u001b[22m\u001b[38;2;250;178;131m█\u001b[39m \n\n \u001b[2mless\u001b[0m \u001b[2m·\u001b[22m\u001b[38;2;117;99;87m░\u001b[39m\u001b[38;2;161;125;102m▒\u001b[39m\u001b[38;2;206;152;116m▓\u001b[39m\u001b[38;2;250;178;131m█\u001b[39m \u001b[2mmore\u001b[0m\n\n\u001b[1;38;2;250;178;131m1.2k\u001b[0m sessions · \u001b[1;38;2;250;178;131m56\u001b[0m subagents\n\u001b[1;38;2;250;178;131m9.9k\u001b[0m prompts · \u001b[1;38;2;250;178;131m54.3k\u001b[0m steps · \u001b[1;38;2;250;178;131m1b\u001b[0m tokens\n\u001b[1;38;2;250;178;131m98.5%\u001b[0m tool success · \u001b[1;38;2;250;178;131m243\u001b[0m active days · best streak \u001b[1;38;2;250;178;131m17\u001b[0m days\n\n\u001b[2mopencode.ai\u001b[0m"}, +{"stats":"full","name":"summary tiny","options":{"label":"last 365 days","scope":"all projects","models":false,"tools":false,"cost":false,"limit":5,"width":3,"color":true},"output":"\u001b[1;38;2;250;178;131mopencode stats\u001b[0m \u001b[2m· last 365 days · all projects\u001b[0m\n\n\u001b[1;38;2;250;178;131mactivity · last 1 weeks\u001b[0m\n \u001b[2mNov\u001b[0m\n\u001b[2mMo\u001b[0m \u001b[38;2;161;125;102m▒\u001b[39m\n\n\u001b[2mTu\u001b[0m \u001b[2m·\u001b[22m\n\n\u001b[2mWe\u001b[0m \u001b[38;2;206;152;116m▓\u001b[39m\n\n\u001b[2mTh\u001b[0m \n\n\u001b[2mFr\u001b[0m \n\n\u001b[2mSa\u001b[0m \n\n\u001b[2mSu\u001b[0m \n\n \u001b[2mless\u001b[0m \u001b[2m·\u001b[22m\u001b[38;2;117;99;87m░\u001b[39m\u001b[38;2;161;125;102m▒\u001b[39m\u001b[38;2;206;152;116m▓\u001b[39m\u001b[38;2;250;178;131m█\u001b[39m \u001b[2mmore\u001b[0m\n\n\u001b[1;38;2;250;178;131m1.2k\u001b[0m sessions · \u001b[1;38;2;250;178;131m56\u001b[0m subagents\n\u001b[1;38;2;250;178;131m9.9k\u001b[0m prompts · \u001b[1;38;2;250;178;131m54.3k\u001b[0m steps · \u001b[1;38;2;250;178;131m1b\u001b[0m tokens\n\u001b[1;38;2;250;178;131m98.5%\u001b[0m tool success · \u001b[1;38;2;250;178;131m243\u001b[0m active days · best streak \u001b[1;38;2;250;178;131m17\u001b[0m days\n\n\u001b[2mopencode.ai\u001b[0m"}, +{"stats":"full","name":"models","options":{"label":"last 365 days","scope":"all projects","models":true,"tools":false,"cost":false,"limit":5,"width":80,"color":true},"output":"\u001b[2mlast 365 days · all projects\u001b[0m\n\nMODELS\nmodel tokens steps cost\nanthropic/claude-opus-5-5 515m 40k $900.13\nopenai/gpt-5#high 1k 10k $0.01\nopenrouter/some/really-long-model… 2b 999 $334.44\nlocal/tiny 0 1 $0.00"}, +{"stats":"full","name":"models narrow","options":{"label":"last 365 days","scope":"all projects","models":true,"tools":false,"cost":false,"limit":2,"width":60,"color":true},"output":"\u001b[2mlast 365 days · all projects\u001b[0m\n\nMODELS\nanthropic/claude-opus-5-5\n 515m tokens · 40k steps · $900.13\nopenai/gpt-5#high\n 1k tokens · 10k steps · $0.01\n\n+2 more models"}, +{"stats":"full","name":"tools","options":{"label":"last 365 days","scope":"all projects","models":false,"tools":true,"cost":false,"limit":3,"width":68,"color":true},"output":"\u001b[2mlast 365 days · all projects\u001b[0m\n\nTOOL RELIABILITY\ntool calls error p50\nread 2k 0.50% 12ms\nbash 1.5k 5.08% 1.5s\nedit 800 0.00% 1000ms\n\n5k finished calls · 25 unfinished\n+3 more tools"}, +{"stats":"full","name":"tools narrow","options":{"label":"last 365 days","scope":"all projects","models":false,"tools":true,"cost":false,"limit":5,"width":67,"color":true},"output":"\u001b[2mlast 365 days · all projects\u001b[0m\n\nTOOL RELIABILITY\nread\n 2k calls · 0.50% error · 12ms p50\nbash\n 1.5k calls · 5.08% error · 1.5s p50\nedit\n 800 calls · 0.00% error · 1000ms p50\na-very-long-tool-name-from-some-mcp-server_with_suffix\n 400 calls · 0.25% error · 120s p50\npending\n 300 calls · - error · - p50\n\n5k finished calls · 25 unfinished\n+1 more tool"}, +{"stats":"full","name":"tools one more","options":{"label":"last 365 days","scope":"all projects","models":false,"tools":true,"cost":false,"limit":5,"width":30,"color":true},"output":"\u001b[2mlast 365 days · all projects\u001b[0m\n\nTOOL RELIABILITY\nread\n 2k calls · 0.50% error · 12ms p50\nbash\n 1.5k calls · 5.08% error · 1.5s p50\nedit\n 800 calls · 0.00% error · 1000ms p50\na-very-long-tool-name-from-so…\n 400 calls · 0.25% error · 120s p50\npending\n 300 calls · - error · - p50\n\n5k finished calls · 25 unfinished\n+1 more tool"}, +{"stats":"full","name":"cost","options":{"label":"last 365 days","scope":"all projects","models":false,"tools":false,"cost":true,"limit":5,"width":80,"color":true},"output":"\u001b[2mlast 365 days · all projects\u001b[0m\n\nCOST & TOKENS\n cost $1234.57\n input 12.3m\n output 2.3m\n reasoning 345.7k\n cache read 987.7m\n cache write 12.3m\n cached input 97.6%"}, +{"stats":"full","name":"full","options":{"label":"2026 so far","scope":"current project","models":true,"tools":true,"cost":true,"limit":5,"width":100,"color":true},"output":"\u001b[2m2026 so far · current project\u001b[0m\n\nCOST & TOKENS\n cost $1234.57\n input 12.3m\n output 2.3m\n reasoning 345.7k\n cache read 987.7m\n cache write 12.3m\n cached input 97.6%\n\nMODELS\nmodel tokens steps cost\nanthropic/claude-opus-5-5 515m 40k $900.13\nopenai/gpt-5#high 1k 10k $0.01\nopenrouter/some/really-long-model… 2b 999 $334.44\nlocal/tiny 0 1 $0.00\n\nTOOL RELIABILITY\ntool calls error p50\nread 2k 0.50% 12ms\nbash 1.5k 5.08% 1.5s\nedit 800 0.00% 1000ms\na-very-long-tool-name-from-some-m… 400 0.25% 120s\npending 300 - -\n\n5k finished calls · 25 unfinished\n+1 more tool"}, +{"stats":"full","name":"full narrow","options":{"label":"last 365 days","scope":"all projects","models":true,"tools":true,"cost":true,"limit":1,"width":50,"color":true},"output":"\u001b[2mlast 365 days · all projects\u001b[0m\n\nCOST & TOKENS\n cost $1234.57\n input 12.3m\n output 2.3m\n reasoning 345.7k\n cache read 987.7m\n cache write 12.3m\n cached input 97.6%\n\nMODELS\nanthropic/claude-opus-5-5\n 515m tokens · 40k steps · $900.13\n\n+3 more models\n\nTOOL RELIABILITY\nread\n 2k calls · 0.50% error · 12ms p50\n\n5k finished calls · 25 unfinished\n+5 more tools"}, +{"stats":"singular","name":"summary","options":{"label":"last 365 days","scope":"all projects","models":false,"tools":false,"cost":false,"limit":5,"width":80,"color":true},"output":"\u001b[1;38;2;250;178;131mopencode stats\u001b[0m \u001b[2m· last 365 days · all projects\u001b[0m\n\n\u001b[1;38;2;250;178;131mactivity\u001b[0m\n \u001b[2mNov\u001b[0m\n\u001b[2mMo\u001b[0m \n\n\u001b[2mTu\u001b[0m \n\n\u001b[2mWe\u001b[0m \u001b[38;2;250;178;131m█\u001b[39m\n\n\u001b[2mTh\u001b[0m \n\n\u001b[2mFr\u001b[0m \n\n\u001b[2mSa\u001b[0m \n\n\u001b[2mSu\u001b[0m \n\n \u001b[2mless\u001b[0m \u001b[2m·\u001b[22m\u001b[38;2;117;99;87m░\u001b[39m\u001b[38;2;161;125;102m▒\u001b[39m\u001b[38;2;206;152;116m▓\u001b[39m\u001b[38;2;250;178;131m█\u001b[39m \u001b[2mmore\u001b[0m\n\n\u001b[1;38;2;250;178;131m1\u001b[0m session\n\u001b[1;38;2;250;178;131m1\u001b[0m prompt · \u001b[1;38;2;250;178;131m1\u001b[0m step · \u001b[1;38;2;250;178;131m1\u001b[0m token\n\u001b[1;38;2;250;178;131m100.0%\u001b[0m tool success · \u001b[1;38;2;250;178;131m1\u001b[0m active day · best streak \u001b[1;38;2;250;178;131m1\u001b[0m day\n\n\u001b[2mopencode.ai\u001b[0m"}, +{"stats":"singular","name":"full","options":{"label":"2026 so far","scope":"current project","models":true,"tools":true,"cost":true,"limit":5,"width":100,"color":true},"output":"\u001b[2m2026 so far · current project\u001b[0m\n\nCOST & TOKENS\n cost $1234.57\n input 1\n output 0\n reasoning 0\n cache read 0\n cache write 0\n cached input 0.00%\n\nMODELS\n no model usage\n\nTOOL RELIABILITY\n tool details unavailable"}, +{"stats":"singular","name":"full narrow","options":{"label":"last 365 days","scope":"all projects","models":true,"tools":true,"cost":true,"limit":1,"width":50,"color":true},"output":"\u001b[2mlast 365 days · all projects\u001b[0m\n\nCOST & TOKENS\n cost $1234.57\n input 1\n output 0\n reasoning 0\n cache read 0\n cache write 0\n cached input 0.00%\n\nMODELS\n no model usage\n\nTOOL RELIABILITY\n tool details unavailable"}, +{"stats":"no tool calls","name":"summary","options":{"label":"last 365 days","scope":"all projects","models":false,"tools":false,"cost":false,"limit":5,"width":80,"color":true},"output":"\u001b[1;38;2;250;178;131mopencode stats\u001b[0m \u001b[2m· last 365 days · all projects\u001b[0m\n\n\u001b[1;38;2;250;178;131mactivity\u001b[0m\n \u001b[2mNov\u001b[0m\n\u001b[2mMo\u001b[0m \n\n\u001b[2mTu\u001b[0m \n\n\u001b[2mWe\u001b[0m \u001b[38;2;250;178;131m█\u001b[39m\n\n\u001b[2mTh\u001b[0m \n\n\u001b[2mFr\u001b[0m \n\n\u001b[2mSa\u001b[0m \n\n\u001b[2mSu\u001b[0m \n\n \u001b[2mless\u001b[0m \u001b[2m·\u001b[22m\u001b[38;2;117;99;87m░\u001b[39m\u001b[38;2;161;125;102m▒\u001b[39m\u001b[38;2;206;152;116m▓\u001b[39m\u001b[38;2;250;178;131m█\u001b[39m \u001b[2mmore\u001b[0m\n\n\u001b[1;38;2;250;178;131m2\u001b[0m sessions\n\u001b[1;38;2;250;178;131m1\u001b[0m prompt · \u001b[1;38;2;250;178;131m1\u001b[0m step · \u001b[1;38;2;250;178;131m1\u001b[0m token\nno tool calls · \u001b[1;38;2;250;178;131m1\u001b[0m active day · best streak \u001b[1;38;2;250;178;131m1\u001b[0m day\n\n\u001b[2mopencode.ai\u001b[0m"}, +{"stats":"no tool calls","name":"full","options":{"label":"2026 so far","scope":"current project","models":true,"tools":true,"cost":true,"limit":5,"width":100,"color":true},"output":"\u001b[2m2026 so far · current project\u001b[0m\n\nCOST & TOKENS\n cost $1234.57\n input 1\n output 0\n reasoning 0\n cache read 0\n cache write 0\n cached input 0.00%\n\nMODELS\n no model usage\n\nTOOL RELIABILITY\n tool details unavailable"}, +{"stats":"no tool calls","name":"full narrow","options":{"label":"last 365 days","scope":"all projects","models":true,"tools":true,"cost":true,"limit":1,"width":50,"color":true},"output":"\u001b[2mlast 365 days · all projects\u001b[0m\n\nCOST & TOKENS\n cost $1234.57\n input 1\n output 0\n reasoning 0\n cache read 0\n cache write 0\n cached input 0.00%\n\nMODELS\n no model usage\n\nTOOL RELIABILITY\n tool details unavailable"}, +{"stats":"no tool stats","name":"summary","options":{"label":"last 365 days","scope":"all projects","models":false,"tools":false,"cost":false,"limit":5,"width":80,"color":true},"output":"\u001b[1;38;2;250;178;131mopencode stats\u001b[0m \u001b[2m· last 365 days · all projects\u001b[0m\n\n\u001b[1;38;2;250;178;131mactivity\u001b[0m\n \u001b[2mNov\u001b[0m\n\u001b[2mMo\u001b[0m \n\n\u001b[2mTu\u001b[0m \n\n\u001b[2mWe\u001b[0m \u001b[38;2;250;178;131m█\u001b[39m\n\n\u001b[2mTh\u001b[0m \n\n\u001b[2mFr\u001b[0m \n\n\u001b[2mSa\u001b[0m \n\n\u001b[2mSu\u001b[0m \n\n \u001b[2mless\u001b[0m \u001b[2m·\u001b[22m\u001b[38;2;117;99;87m░\u001b[39m\u001b[38;2;161;125;102m▒\u001b[39m\u001b[38;2;206;152;116m▓\u001b[39m\u001b[38;2;250;178;131m█\u001b[39m \u001b[2mmore\u001b[0m\n\n\u001b[1;38;2;250;178;131m3\u001b[0m sessions\n\u001b[1;38;2;250;178;131m1\u001b[0m prompt · \u001b[1;38;2;250;178;131m1\u001b[0m step · \u001b[1;38;2;250;178;131m1\u001b[0m token\ntool stats unavailable · \u001b[1;38;2;250;178;131m1\u001b[0m active day · best streak \u001b[1;38;2;250;178;131m1\u001b[0m day\n\n\u001b[2mopencode.ai\u001b[0m"}, +{"stats":"no tool stats","name":"full","options":{"label":"2026 so far","scope":"current project","models":true,"tools":true,"cost":true,"limit":5,"width":100,"color":true},"output":"\u001b[2m2026 so far · current project\u001b[0m\n\nCOST & TOKENS\n cost $1234.57\n input 1\n output 0\n reasoning 0\n cache read 0\n cache write 0\n cached input 0.00%\n\nMODELS\n no model usage\n\nTOOL RELIABILITY\n tool details unavailable"}, +{"stats":"no tool stats","name":"full narrow","options":{"label":"last 365 days","scope":"all projects","models":true,"tools":true,"cost":true,"limit":1,"width":50,"color":true},"output":"\u001b[2mlast 365 days · all projects\u001b[0m\n\nCOST & TOKENS\n cost $1234.57\n input 1\n output 0\n reasoning 0\n cache read 0\n cache write 0\n cached input 0.00%\n\nMODELS\n no model usage\n\nTOOL RELIABILITY\n tool details unavailable"}, +{"stats":"no details","name":"summary","options":{"label":"last 365 days","scope":"all projects","models":false,"tools":false,"cost":false,"limit":5,"width":80,"color":true},"output":"\u001b[1;38;2;250;178;131mopencode stats\u001b[0m \u001b[2m· last 365 days · all projects\u001b[0m\n\n\u001b[1;38;2;250;178;131mactivity\u001b[0m\n \u001b[2mNov\u001b[0m\n\u001b[2mMo\u001b[0m \n\n\u001b[2mTu\u001b[0m \n\n\u001b[2mWe\u001b[0m \u001b[38;2;250;178;131m█\u001b[39m\n\n\u001b[2mTh\u001b[0m \n\n\u001b[2mFr\u001b[0m \n\n\u001b[2mSa\u001b[0m \n\n\u001b[2mSu\u001b[0m \n\n \u001b[2mless\u001b[0m \u001b[2m·\u001b[22m\u001b[38;2;117;99;87m░\u001b[39m\u001b[38;2;161;125;102m▒\u001b[39m\u001b[38;2;206;152;116m▓\u001b[39m\u001b[38;2;250;178;131m█\u001b[39m \u001b[2mmore\u001b[0m\n\n\u001b[1;38;2;250;178;131m1\u001b[0m session\n\u001b[1;38;2;250;178;131m1\u001b[0m prompt · \u001b[1;38;2;250;178;131m1\u001b[0m step · \u001b[1;38;2;250;178;131m1\u001b[0m token\nno tool calls · \u001b[1;38;2;250;178;131m1\u001b[0m active day · best streak \u001b[1;38;2;250;178;131m1\u001b[0m day\n\n\u001b[2mopencode.ai\u001b[0m"}, +{"stats":"no details","name":"full","options":{"label":"2026 so far","scope":"current project","models":true,"tools":true,"cost":true,"limit":5,"width":100,"color":true},"output":"\u001b[2m2026 so far · current project\u001b[0m\n\nCOST & TOKENS\n cost $1234.57\n input 1\n output 0\n reasoning 0\n cache read 0\n cache write 0\n cached input 0.00%\n\nMODELS\n no model usage\n\nTOOL RELIABILITY\n no tool calls"}, +{"stats":"no details","name":"full narrow","options":{"label":"last 365 days","scope":"all projects","models":true,"tools":true,"cost":true,"limit":1,"width":50,"color":true},"output":"\u001b[2mlast 365 days · all projects\u001b[0m\n\nCOST & TOKENS\n cost $1234.57\n input 1\n output 0\n reasoning 0\n cache read 0\n cache write 0\n cached input 0.00%\n\nMODELS\n no model usage\n\nTOOL RELIABILITY\n no tool calls"}, +{"stats":"empty","name":"summary","options":{"label":"last 365 days","scope":"all projects","models":false,"tools":false,"cost":false,"limit":5,"width":80,"color":true},"output":"\u001b[1;38;2;250;178;131mopencode stats\u001b[0m \u001b[2m· last 365 days · all projects\u001b[0m\n\n\u001b[2mno activity in this range\u001b[0m\n\n\u001b[2mopencode.ai\u001b[0m"}, +{"stats":"empty","name":"full","options":{"label":"2026 so far","scope":"current project","models":true,"tools":true,"cost":true,"limit":5,"width":100,"color":true},"output":"\u001b[2m2026 so far · current project\u001b[0m\n\nCOST & TOKENS\n cost $0.00\n input 0\n output 0\n reasoning 0\n cache read 0\n cache write 0\n cached input 0.00%\n\nMODELS\n no model usage\n\nTOOL RELIABILITY\n tool details unavailable"}, +{"stats":"empty","name":"full narrow","options":{"label":"last 365 days","scope":"all projects","models":true,"tools":true,"cost":true,"limit":1,"width":50,"color":true},"output":"\u001b[2mlast 365 days · all projects\u001b[0m\n\nCOST & TOKENS\n cost $0.00\n input 0\n output 0\n reasoning 0\n cache read 0\n cache write 0\n cached input 0.00%\n\nMODELS\n no model usage\n\nTOOL RELIABILITY\n tool details unavailable"} +]}, +{"colorfgbg": "15;default", "cases": [ +{"stats":"full","name":"summary","options":{"label":"last 365 days","scope":"all projects","models":false,"tools":false,"cost":false,"limit":5,"width":80,"color":true},"output":"\u001b[1;36mopencode stats\u001b[0m \u001b[2m· last 365 days · all projects\u001b[0m\n\n\u001b[1;36mactivity\u001b[0m\n \u001b[2mNov Dec Jan Feb Mar Apr May Jun Jul Aug Sep Oct Nov\u001b[0m\n\u001b[2mMo\u001b[0m \u001b[2;36m░\u001b[39m\u001b[2m·\u001b[22m\u001b[2;36m░\u001b[39m\u001b[1;36m▓\u001b[39m\u001b[2m·\u001b[22m\u001b[1;36m▓\u001b[39m\u001b[2;36m░\u001b[39m\u001b[2m·\u001b[22m\u001b[1;96m█\u001b[39m\u001b[36m▒\u001b[39m\u001b[2m·\u001b[22m\u001b[36m▒\u001b[39m\u001b[1;96m█\u001b[39m\u001b[2m·\u001b[22m\u001b[1;96m█\u001b[39m\u001b[36m▒\u001b[39m\u001b[2m·\u001b[22m\u001b[36m▒\u001b[39m\u001b[1;36m▓\u001b[39m\u001b[2m·\u001b[22m\u001b[1;36m▓\u001b[39m\u001b[2;36m░\u001b[39m\u001b[2m·\u001b[22m\u001b[2;36m░\u001b[39m\u001b[1;36m▓\u001b[39m\u001b[2m·\u001b[22m\u001b[1;36m▓\u001b[39m\u001b[2;36m░\u001b[39m\u001b[2m·\u001b[22m\u001b[1;96m█\u001b[39m\u001b[36m▒\u001b[39m\u001b[2m·\u001b[22m\u001b[36m▒\u001b[39m\u001b[1;96m█\u001b[39m\u001b[2m·\u001b[22m\u001b[1;96m█\u001b[39m\u001b[36m▒\u001b[39m\u001b[2m·\u001b[22m\u001b[2;36m░\u001b[39m\u001b[1;36m▓\u001b[39m\u001b[2m·\u001b[22m\u001b[1;36m▓\u001b[39m\u001b[2;36m░\u001b[39m\u001b[2m·\u001b[22m\u001b[2;36m░\u001b[39m\u001b[1;36m▓\u001b[39m\u001b[2m·\u001b[22m\u001b[36m▒\u001b[39m\u001b[1;96m█\u001b[39m\u001b[2m·\u001b[22m\u001b[1;96m█\u001b[39m\u001b[36m▒\u001b[39m\n\n\u001b[2mTu\u001b[0m \u001b[2m·\u001b[22m\u001b[36m▒\u001b[39m\u001b[1;96m█\u001b[39m\u001b[2m·\u001b[22m\u001b[1;36m▓\u001b[39m\u001b[2;36m░\u001b[39m\u001b[2m·\u001b[22m\u001b[2;36m░\u001b[39m\u001b[1;36m▓\u001b[39m\u001b[2m·\u001b[22m\u001b[1;36m▓\u001b[39m\u001b[2;36m░\u001b[39m\u001b[2m·\u001b[22m\u001b[2;36m░\u001b[39m\u001b[36m▒\u001b[39m\u001b[2m·\u001b[22m\u001b[36m▒\u001b[39m\u001b[1;96m█\u001b[39m\u001b[2m·\u001b[22m\u001b[1;96m█\u001b[39m\u001b[36m▒\u001b[39m\u001b[2m·\u001b[22m\u001b[36m▒\u001b[39m\u001b[1;96m█\u001b[39m\u001b[2m·\u001b[22m\u001b[1;36m▓\u001b[39m\u001b[2;36m░\u001b[39m\u001b[2m·\u001b[22m\u001b[2;36m░\u001b[39m\u001b[1;36m▓\u001b[39m\u001b[2m·\u001b[22m\u001b[1;36m▓\u001b[39m\u001b[2;36m░\u001b[39m\u001b[2m·\u001b[22m\u001b[1;96m█\u001b[39m\u001b[36m▒\u001b[39m\u001b[2m·\u001b[22m\u001b[36m▒\u001b[39m\u001b[1;96m█\u001b[39m\u001b[2m·\u001b[22m\u001b[1;96m█\u001b[39m\u001b[36m▒\u001b[39m\u001b[2m·\u001b[22m\u001b[2;36m░\u001b[39m\u001b[1;36m▓\u001b[39m\u001b[2m·\u001b[22m\u001b[1;36m▓\u001b[39m\u001b[2;36m░\u001b[39m\u001b[2m·\u001b[22m\u001b[2;36m░\u001b[39m\u001b[1;36m▓\u001b[39m\u001b[2m·\u001b[22m\n\n\u001b[2mWe\u001b[0m \u001b[2m·\u001b[22m\u001b[36m▒\u001b[39m\u001b[1;96m█\u001b[39m\u001b[2m·\u001b[22m\u001b[1;96m█\u001b[39m\u001b[36m▒\u001b[39m\u001b[2m·\u001b[22m\u001b[36m▒\u001b[39m\u001b[1;96m█\u001b[39m\u001b[2m·\u001b[22m\u001b[1;96m█\u001b[39m\u001b[2;36m░\u001b[39m\u001b[2m·\u001b[22m\u001b[2;36m░\u001b[39m\u001b[1;36m▓\u001b[39m\u001b[2m·\u001b[22m\u001b[1;36m▓\u001b[39m\u001b[2;36m░\u001b[39m\u001b[2m·\u001b[22m\u001b[2;36m░\u001b[39m\u001b[36m▒\u001b[39m\u001b[2m·\u001b[22m\u001b[36m▒\u001b[39m\u001b[1;96m█\u001b[39m\u001b[2m·\u001b[22m\u001b[1;96m█\u001b[39m\u001b[36m▒\u001b[39m\u001b[2m·\u001b[22m\u001b[36m▒\u001b[39m\u001b[1;96m█\u001b[39m\u001b[2m·\u001b[22m\u001b[1;36m▓\u001b[39m\u001b[2;36m░\u001b[39m\u001b[2m·\u001b[22m\u001b[2;36m░\u001b[39m\u001b[1;36m▓\u001b[39m\u001b[2m·\u001b[22m\u001b[1;36m▓\u001b[39m\u001b[2;36m░\u001b[39m\u001b[2m·\u001b[22m\u001b[1;96m█\u001b[39m\u001b[36m▒\u001b[39m\u001b[2m·\u001b[22m\u001b[36m▒\u001b[39m\u001b[1;96m█\u001b[39m\u001b[2m·\u001b[22m\u001b[1;96m█\u001b[39m\u001b[36m▒\u001b[39m\u001b[2m·\u001b[22m\u001b[2;36m░\u001b[39m\u001b[1;36m▓\u001b[39m\u001b[2m·\u001b[22m\u001b[1;36m▓\u001b[39m\n\n\u001b[2mTh\u001b[0m \u001b[1;36m▓\u001b[39m\u001b[2;36m░\u001b[39m\u001b[2m·\u001b[22m\u001b[2;36m░\u001b[39m\u001b[1;36m▓\u001b[39m\u001b[2m·\u001b[22m\u001b[36m▒\u001b[39m\u001b[1;96m█\u001b[39m\u001b[2m·\u001b[22m\u001b[1;96m█\u001b[39m\u001b[36m▒\u001b[39m\u001b[2m·\u001b[22m\u001b[36m▒\u001b[39m\u001b[1;96m█\u001b[39m\u001b[2m·\u001b[22m\u001b[1;96m█\u001b[39m\u001b[2;36m░\u001b[39m\u001b[2m·\u001b[22m\u001b[2;36m░\u001b[39m\u001b[1;36m▓\u001b[39m\u001b[2m·\u001b[22m\u001b[1;36m▓\u001b[39m\u001b[2;36m░\u001b[39m\u001b[2m·\u001b[22m\u001b[2;36m░\u001b[39m\u001b[1;36m▓\u001b[39m\u001b[2m·\u001b[22m\u001b[36m▒\u001b[39m\u001b[1;96m█\u001b[39m\u001b[2m·\u001b[22m\u001b[1;96m█\u001b[39m\u001b[36m▒\u001b[39m\u001b[2m·\u001b[22m\u001b[36m▒\u001b[39m\u001b[1;96m█\u001b[39m\u001b[2m·\u001b[22m\u001b[1;36m▓\u001b[39m\u001b[2;36m░\u001b[39m\u001b[2m·\u001b[22m\u001b[2;36m░\u001b[39m\u001b[1;36m▓\u001b[39m\u001b[2m·\u001b[22m\u001b[1;36m▓\u001b[39m\u001b[2;36m░\u001b[39m\u001b[2m·\u001b[22m\u001b[1;96m█\u001b[39m\u001b[36m▒\u001b[39m\u001b[2m·\u001b[22m\u001b[36m▒\u001b[39m\u001b[1;96m█\u001b[39m\u001b[2m·\u001b[22m\u001b[1;96m█\u001b[39m \n\n\u001b[2mFr\u001b[0m \u001b[36m▒\u001b[39m\u001b[2m·\u001b[22m\u001b[2;36m░\u001b[39m\u001b[1;36m▓\u001b[39m\u001b[2m·\u001b[22m\u001b[1;36m▓\u001b[39m\u001b[2;36m░\u001b[39m\u001b[2m·\u001b[22m\u001b[2;36m░\u001b[39m\u001b[1;36m▓\u001b[39m\u001b[2m·\u001b[22m\u001b[1;36m▓\u001b[39m\u001b[1;96m█\u001b[39m\u001b[2m·\u001b[22m\u001b[1;96m█\u001b[39m\u001b[36m▒\u001b[39m\u001b[2m·\u001b[22m\u001b[36m▒\u001b[39m\u001b[1;96m█\u001b[39m\u001b[2m·\u001b[22m\u001b[1;96m█\u001b[39m\u001b[2;36m░\u001b[39m\u001b[2m·\u001b[22m\u001b[2;36m░\u001b[39m\u001b[1;36m▓\u001b[39m\u001b[2m·\u001b[22m\u001b[1;36m▓\u001b[39m\u001b[2;36m░\u001b[39m\u001b[2m·\u001b[22m\u001b[2;36m░\u001b[39m\u001b[1;36m▓\u001b[39m\u001b[2m·\u001b[22m\u001b[36m▒\u001b[39m\u001b[1;96m█\u001b[39m\u001b[2m·\u001b[22m\u001b[1;96m█\u001b[39m\u001b[36m▒\u001b[39m\u001b[2m·\u001b[22m\u001b[36m▒\u001b[39m\u001b[1;96m█\u001b[39m\u001b[2m·\u001b[22m\u001b[1;36m▓\u001b[39m\u001b[2;36m░\u001b[39m\u001b[2m·\u001b[22m\u001b[2;36m░\u001b[39m\u001b[1;36m▓\u001b[39m\u001b[2m·\u001b[22m\u001b[1;36m▓\u001b[39m\u001b[2;36m░\u001b[39m\u001b[2m·\u001b[22m\u001b[1;96m█\u001b[39m\u001b[36m▒\u001b[39m \n\n\u001b[2mSa\u001b[0m \u001b[2m·\u001b[22m\u001b[36m▒\u001b[39m\u001b[1;96m█\u001b[39m\u001b[2m·\u001b[22m\u001b[1;96m█\u001b[39m\u001b[36m▒\u001b[39m\u001b[2m·\u001b[22m\u001b[2;36m░\u001b[39m\u001b[1;36m▓\u001b[39m\u001b[2m·\u001b[22m\u001b[1;36m▓\u001b[39m\u001b[2;36m░\u001b[39m\u001b[2m·\u001b[22m\u001b[2;36m░\u001b[39m\u001b[1;36m▓\u001b[39m\u001b[2m·\u001b[22m\u001b[1;36m▓\u001b[39m\u001b[1;96m█\u001b[39m\u001b[2m·\u001b[22m\u001b[1;96m█\u001b[39m\u001b[36m▒\u001b[39m\u001b[2m·\u001b[22m\u001b[36m▒\u001b[39m\u001b[1;96m█\u001b[39m\u001b[2m·\u001b[22m\u001b[1;96m█\u001b[39m\u001b[36m▒\u001b[39m\u001b[2m·\u001b[22m\u001b[2;36m░\u001b[39m\u001b[1;36m▓\u001b[39m\u001b[2m·\u001b[22m\u001b[1;36m▓\u001b[39m\u001b[2;36m░\u001b[39m\u001b[2m·\u001b[22m\u001b[2;36m░\u001b[39m\u001b[1;36m▓\u001b[39m\u001b[2m·\u001b[22m\u001b[36m▒\u001b[39m\u001b[1;96m█\u001b[39m\u001b[2m·\u001b[22m\u001b[1;96m█\u001b[39m\u001b[36m▒\u001b[39m\u001b[2m·\u001b[22m\u001b[36m▒\u001b[39m\u001b[1;96m█\u001b[39m\u001b[2m·\u001b[22m\u001b[1;36m▓\u001b[39m\u001b[2;36m░\u001b[39m\u001b[2m·\u001b[22m\u001b[2;36m░\u001b[39m\u001b[1;36m▓\u001b[39m\u001b[2m·\u001b[22m \n\n\u001b[2mSu\u001b[0m \u001b[1;36m▓\u001b[39m\u001b[2;36m░\u001b[39m\u001b[2m·\u001b[22m\u001b[1;96m█\u001b[39m\u001b[36m▒\u001b[39m\u001b[2m·\u001b[22m\u001b[36m▒\u001b[39m\u001b[1;96m█\u001b[39m\u001b[2m·\u001b[22m\u001b[1;96m█\u001b[39m\u001b[36m▒\u001b[39m\u001b[2m·\u001b[22m\u001b[36m▒\u001b[39m\u001b[1;36m▓\u001b[39m\u001b[2m·\u001b[22m\u001b[1;36m▓\u001b[39m\u001b[2;36m░\u001b[39m\u001b[2m·\u001b[22m\u001b[2;36m░\u001b[39m\u001b[1;36m▓\u001b[39m\u001b[2m·\u001b[22m\u001b[1;36m▓\u001b[39m\u001b[1;96m█\u001b[39m\u001b[2m·\u001b[22m\u001b[1;96m█\u001b[39m\u001b[36m▒\u001b[39m\u001b[2m·\u001b[22m\u001b[36m▒\u001b[39m\u001b[1;96m█\u001b[39m\u001b[2m·\u001b[22m\u001b[1;96m█\u001b[39m\u001b[36m▒\u001b[39m\u001b[2m·\u001b[22m\u001b[2;36m░\u001b[39m\u001b[1;36m▓\u001b[39m\u001b[2m·\u001b[22m\u001b[1;36m▓\u001b[39m\u001b[2;36m░\u001b[39m\u001b[2m·\u001b[22m\u001b[2;36m░\u001b[39m\u001b[1;36m▓\u001b[39m\u001b[2m·\u001b[22m\u001b[36m▒\u001b[39m\u001b[1;96m█\u001b[39m\u001b[2m·\u001b[22m\u001b[1;96m█\u001b[39m\u001b[36m▒\u001b[39m\u001b[2m·\u001b[22m\u001b[36m▒\u001b[39m\u001b[1;96m█\u001b[39m\u001b[2m·\u001b[22m\u001b[1;96m█\u001b[39m \n\n \u001b[2mless\u001b[0m \u001b[2m·\u001b[22m\u001b[2;36m░\u001b[39m\u001b[36m▒\u001b[39m\u001b[1;36m▓\u001b[39m\u001b[1;96m█\u001b[39m \u001b[2mmore\u001b[0m\n\n\u001b[1;36m1.2k\u001b[0m sessions · \u001b[1;36m56\u001b[0m subagents\n\u001b[1;36m9.9k\u001b[0m prompts · \u001b[1;36m54.3k\u001b[0m steps · \u001b[1;36m1b\u001b[0m tokens\n\u001b[1;36m98.5%\u001b[0m tool success · \u001b[1;36m243\u001b[0m active days · best streak \u001b[1;36m17\u001b[0m days\n\n\u001b[2mopencode.ai\u001b[0m"}, +{"stats":"full","name":"summary wide","options":{"label":"last 365 days","scope":"all projects","models":false,"tools":false,"cost":false,"limit":5,"width":120,"color":true},"output":"\u001b[1;36mopencode stats\u001b[0m \u001b[2m· last 365 days · all projects\u001b[0m\n\n\u001b[1;36mactivity\u001b[0m\n \u001b[2mNov Dec Jan Feb Mar Apr May Jun Jul Aug Sep Oct Nov\u001b[0m\n\u001b[2mMo\u001b[0m \u001b[2;36m░\u001b[39m\u001b[2m·\u001b[22m\u001b[2;36m░\u001b[39m\u001b[1;36m▓\u001b[39m\u001b[2m·\u001b[22m\u001b[1;36m▓\u001b[39m\u001b[2;36m░\u001b[39m\u001b[2m·\u001b[22m\u001b[1;96m█\u001b[39m\u001b[36m▒\u001b[39m\u001b[2m·\u001b[22m\u001b[36m▒\u001b[39m\u001b[1;96m█\u001b[39m\u001b[2m·\u001b[22m\u001b[1;96m█\u001b[39m\u001b[36m▒\u001b[39m\u001b[2m·\u001b[22m\u001b[36m▒\u001b[39m\u001b[1;36m▓\u001b[39m\u001b[2m·\u001b[22m\u001b[1;36m▓\u001b[39m\u001b[2;36m░\u001b[39m\u001b[2m·\u001b[22m\u001b[2;36m░\u001b[39m\u001b[1;36m▓\u001b[39m\u001b[2m·\u001b[22m\u001b[1;36m▓\u001b[39m\u001b[2;36m░\u001b[39m\u001b[2m·\u001b[22m\u001b[1;96m█\u001b[39m\u001b[36m▒\u001b[39m\u001b[2m·\u001b[22m\u001b[36m▒\u001b[39m\u001b[1;96m█\u001b[39m\u001b[2m·\u001b[22m\u001b[1;96m█\u001b[39m\u001b[36m▒\u001b[39m\u001b[2m·\u001b[22m\u001b[2;36m░\u001b[39m\u001b[1;36m▓\u001b[39m\u001b[2m·\u001b[22m\u001b[1;36m▓\u001b[39m\u001b[2;36m░\u001b[39m\u001b[2m·\u001b[22m\u001b[2;36m░\u001b[39m\u001b[1;36m▓\u001b[39m\u001b[2m·\u001b[22m\u001b[36m▒\u001b[39m\u001b[1;96m█\u001b[39m\u001b[2m·\u001b[22m\u001b[1;96m█\u001b[39m\u001b[36m▒\u001b[39m\n\n\u001b[2mTu\u001b[0m \u001b[2m·\u001b[22m\u001b[36m▒\u001b[39m\u001b[1;96m█\u001b[39m\u001b[2m·\u001b[22m\u001b[1;36m▓\u001b[39m\u001b[2;36m░\u001b[39m\u001b[2m·\u001b[22m\u001b[2;36m░\u001b[39m\u001b[1;36m▓\u001b[39m\u001b[2m·\u001b[22m\u001b[1;36m▓\u001b[39m\u001b[2;36m░\u001b[39m\u001b[2m·\u001b[22m\u001b[2;36m░\u001b[39m\u001b[36m▒\u001b[39m\u001b[2m·\u001b[22m\u001b[36m▒\u001b[39m\u001b[1;96m█\u001b[39m\u001b[2m·\u001b[22m\u001b[1;96m█\u001b[39m\u001b[36m▒\u001b[39m\u001b[2m·\u001b[22m\u001b[36m▒\u001b[39m\u001b[1;96m█\u001b[39m\u001b[2m·\u001b[22m\u001b[1;36m▓\u001b[39m\u001b[2;36m░\u001b[39m\u001b[2m·\u001b[22m\u001b[2;36m░\u001b[39m\u001b[1;36m▓\u001b[39m\u001b[2m·\u001b[22m\u001b[1;36m▓\u001b[39m\u001b[2;36m░\u001b[39m\u001b[2m·\u001b[22m\u001b[1;96m█\u001b[39m\u001b[36m▒\u001b[39m\u001b[2m·\u001b[22m\u001b[36m▒\u001b[39m\u001b[1;96m█\u001b[39m\u001b[2m·\u001b[22m\u001b[1;96m█\u001b[39m\u001b[36m▒\u001b[39m\u001b[2m·\u001b[22m\u001b[2;36m░\u001b[39m\u001b[1;36m▓\u001b[39m\u001b[2m·\u001b[22m\u001b[1;36m▓\u001b[39m\u001b[2;36m░\u001b[39m\u001b[2m·\u001b[22m\u001b[2;36m░\u001b[39m\u001b[1;36m▓\u001b[39m\u001b[2m·\u001b[22m\n\n\u001b[2mWe\u001b[0m \u001b[2m·\u001b[22m\u001b[36m▒\u001b[39m\u001b[1;96m█\u001b[39m\u001b[2m·\u001b[22m\u001b[1;96m█\u001b[39m\u001b[36m▒\u001b[39m\u001b[2m·\u001b[22m\u001b[36m▒\u001b[39m\u001b[1;96m█\u001b[39m\u001b[2m·\u001b[22m\u001b[1;96m█\u001b[39m\u001b[2;36m░\u001b[39m\u001b[2m·\u001b[22m\u001b[2;36m░\u001b[39m\u001b[1;36m▓\u001b[39m\u001b[2m·\u001b[22m\u001b[1;36m▓\u001b[39m\u001b[2;36m░\u001b[39m\u001b[2m·\u001b[22m\u001b[2;36m░\u001b[39m\u001b[36m▒\u001b[39m\u001b[2m·\u001b[22m\u001b[36m▒\u001b[39m\u001b[1;96m█\u001b[39m\u001b[2m·\u001b[22m\u001b[1;96m█\u001b[39m\u001b[36m▒\u001b[39m\u001b[2m·\u001b[22m\u001b[36m▒\u001b[39m\u001b[1;96m█\u001b[39m\u001b[2m·\u001b[22m\u001b[1;36m▓\u001b[39m\u001b[2;36m░\u001b[39m\u001b[2m·\u001b[22m\u001b[2;36m░\u001b[39m\u001b[1;36m▓\u001b[39m\u001b[2m·\u001b[22m\u001b[1;36m▓\u001b[39m\u001b[2;36m░\u001b[39m\u001b[2m·\u001b[22m\u001b[1;96m█\u001b[39m\u001b[36m▒\u001b[39m\u001b[2m·\u001b[22m\u001b[36m▒\u001b[39m\u001b[1;96m█\u001b[39m\u001b[2m·\u001b[22m\u001b[1;96m█\u001b[39m\u001b[36m▒\u001b[39m\u001b[2m·\u001b[22m\u001b[2;36m░\u001b[39m\u001b[1;36m▓\u001b[39m\u001b[2m·\u001b[22m\u001b[1;36m▓\u001b[39m\n\n\u001b[2mTh\u001b[0m \u001b[1;36m▓\u001b[39m\u001b[2;36m░\u001b[39m\u001b[2m·\u001b[22m\u001b[2;36m░\u001b[39m\u001b[1;36m▓\u001b[39m\u001b[2m·\u001b[22m\u001b[36m▒\u001b[39m\u001b[1;96m█\u001b[39m\u001b[2m·\u001b[22m\u001b[1;96m█\u001b[39m\u001b[36m▒\u001b[39m\u001b[2m·\u001b[22m\u001b[36m▒\u001b[39m\u001b[1;96m█\u001b[39m\u001b[2m·\u001b[22m\u001b[1;96m█\u001b[39m\u001b[2;36m░\u001b[39m\u001b[2m·\u001b[22m\u001b[2;36m░\u001b[39m\u001b[1;36m▓\u001b[39m\u001b[2m·\u001b[22m\u001b[1;36m▓\u001b[39m\u001b[2;36m░\u001b[39m\u001b[2m·\u001b[22m\u001b[2;36m░\u001b[39m\u001b[1;36m▓\u001b[39m\u001b[2m·\u001b[22m\u001b[36m▒\u001b[39m\u001b[1;96m█\u001b[39m\u001b[2m·\u001b[22m\u001b[1;96m█\u001b[39m\u001b[36m▒\u001b[39m\u001b[2m·\u001b[22m\u001b[36m▒\u001b[39m\u001b[1;96m█\u001b[39m\u001b[2m·\u001b[22m\u001b[1;36m▓\u001b[39m\u001b[2;36m░\u001b[39m\u001b[2m·\u001b[22m\u001b[2;36m░\u001b[39m\u001b[1;36m▓\u001b[39m\u001b[2m·\u001b[22m\u001b[1;36m▓\u001b[39m\u001b[2;36m░\u001b[39m\u001b[2m·\u001b[22m\u001b[1;96m█\u001b[39m\u001b[36m▒\u001b[39m\u001b[2m·\u001b[22m\u001b[36m▒\u001b[39m\u001b[1;96m█\u001b[39m\u001b[2m·\u001b[22m\u001b[1;96m█\u001b[39m \n\n\u001b[2mFr\u001b[0m \u001b[36m▒\u001b[39m\u001b[2m·\u001b[22m\u001b[2;36m░\u001b[39m\u001b[1;36m▓\u001b[39m\u001b[2m·\u001b[22m\u001b[1;36m▓\u001b[39m\u001b[2;36m░\u001b[39m\u001b[2m·\u001b[22m\u001b[2;36m░\u001b[39m\u001b[1;36m▓\u001b[39m\u001b[2m·\u001b[22m\u001b[1;36m▓\u001b[39m\u001b[1;96m█\u001b[39m\u001b[2m·\u001b[22m\u001b[1;96m█\u001b[39m\u001b[36m▒\u001b[39m\u001b[2m·\u001b[22m\u001b[36m▒\u001b[39m\u001b[1;96m█\u001b[39m\u001b[2m·\u001b[22m\u001b[1;96m█\u001b[39m\u001b[2;36m░\u001b[39m\u001b[2m·\u001b[22m\u001b[2;36m░\u001b[39m\u001b[1;36m▓\u001b[39m\u001b[2m·\u001b[22m\u001b[1;36m▓\u001b[39m\u001b[2;36m░\u001b[39m\u001b[2m·\u001b[22m\u001b[2;36m░\u001b[39m\u001b[1;36m▓\u001b[39m\u001b[2m·\u001b[22m\u001b[36m▒\u001b[39m\u001b[1;96m█\u001b[39m\u001b[2m·\u001b[22m\u001b[1;96m█\u001b[39m\u001b[36m▒\u001b[39m\u001b[2m·\u001b[22m\u001b[36m▒\u001b[39m\u001b[1;96m█\u001b[39m\u001b[2m·\u001b[22m\u001b[1;36m▓\u001b[39m\u001b[2;36m░\u001b[39m\u001b[2m·\u001b[22m\u001b[2;36m░\u001b[39m\u001b[1;36m▓\u001b[39m\u001b[2m·\u001b[22m\u001b[1;36m▓\u001b[39m\u001b[2;36m░\u001b[39m\u001b[2m·\u001b[22m\u001b[1;96m█\u001b[39m\u001b[36m▒\u001b[39m \n\n\u001b[2mSa\u001b[0m \u001b[2m·\u001b[22m\u001b[36m▒\u001b[39m\u001b[1;96m█\u001b[39m\u001b[2m·\u001b[22m\u001b[1;96m█\u001b[39m\u001b[36m▒\u001b[39m\u001b[2m·\u001b[22m\u001b[2;36m░\u001b[39m\u001b[1;36m▓\u001b[39m\u001b[2m·\u001b[22m\u001b[1;36m▓\u001b[39m\u001b[2;36m░\u001b[39m\u001b[2m·\u001b[22m\u001b[2;36m░\u001b[39m\u001b[1;36m▓\u001b[39m\u001b[2m·\u001b[22m\u001b[1;36m▓\u001b[39m\u001b[1;96m█\u001b[39m\u001b[2m·\u001b[22m\u001b[1;96m█\u001b[39m\u001b[36m▒\u001b[39m\u001b[2m·\u001b[22m\u001b[36m▒\u001b[39m\u001b[1;96m█\u001b[39m\u001b[2m·\u001b[22m\u001b[1;96m█\u001b[39m\u001b[36m▒\u001b[39m\u001b[2m·\u001b[22m\u001b[2;36m░\u001b[39m\u001b[1;36m▓\u001b[39m\u001b[2m·\u001b[22m\u001b[1;36m▓\u001b[39m\u001b[2;36m░\u001b[39m\u001b[2m·\u001b[22m\u001b[2;36m░\u001b[39m\u001b[1;36m▓\u001b[39m\u001b[2m·\u001b[22m\u001b[36m▒\u001b[39m\u001b[1;96m█\u001b[39m\u001b[2m·\u001b[22m\u001b[1;96m█\u001b[39m\u001b[36m▒\u001b[39m\u001b[2m·\u001b[22m\u001b[36m▒\u001b[39m\u001b[1;96m█\u001b[39m\u001b[2m·\u001b[22m\u001b[1;36m▓\u001b[39m\u001b[2;36m░\u001b[39m\u001b[2m·\u001b[22m\u001b[2;36m░\u001b[39m\u001b[1;36m▓\u001b[39m\u001b[2m·\u001b[22m \n\n\u001b[2mSu\u001b[0m \u001b[1;36m▓\u001b[39m\u001b[2;36m░\u001b[39m\u001b[2m·\u001b[22m\u001b[1;96m█\u001b[39m\u001b[36m▒\u001b[39m\u001b[2m·\u001b[22m\u001b[36m▒\u001b[39m\u001b[1;96m█\u001b[39m\u001b[2m·\u001b[22m\u001b[1;96m█\u001b[39m\u001b[36m▒\u001b[39m\u001b[2m·\u001b[22m\u001b[36m▒\u001b[39m\u001b[1;36m▓\u001b[39m\u001b[2m·\u001b[22m\u001b[1;36m▓\u001b[39m\u001b[2;36m░\u001b[39m\u001b[2m·\u001b[22m\u001b[2;36m░\u001b[39m\u001b[1;36m▓\u001b[39m\u001b[2m·\u001b[22m\u001b[1;36m▓\u001b[39m\u001b[1;96m█\u001b[39m\u001b[2m·\u001b[22m\u001b[1;96m█\u001b[39m\u001b[36m▒\u001b[39m\u001b[2m·\u001b[22m\u001b[36m▒\u001b[39m\u001b[1;96m█\u001b[39m\u001b[2m·\u001b[22m\u001b[1;96m█\u001b[39m\u001b[36m▒\u001b[39m\u001b[2m·\u001b[22m\u001b[2;36m░\u001b[39m\u001b[1;36m▓\u001b[39m\u001b[2m·\u001b[22m\u001b[1;36m▓\u001b[39m\u001b[2;36m░\u001b[39m\u001b[2m·\u001b[22m\u001b[2;36m░\u001b[39m\u001b[1;36m▓\u001b[39m\u001b[2m·\u001b[22m\u001b[36m▒\u001b[39m\u001b[1;96m█\u001b[39m\u001b[2m·\u001b[22m\u001b[1;96m█\u001b[39m\u001b[36m▒\u001b[39m\u001b[2m·\u001b[22m\u001b[36m▒\u001b[39m\u001b[1;96m█\u001b[39m\u001b[2m·\u001b[22m\u001b[1;96m█\u001b[39m \n\n \u001b[2mless\u001b[0m \u001b[2m·\u001b[22m\u001b[2;36m░\u001b[39m\u001b[36m▒\u001b[39m\u001b[1;36m▓\u001b[39m\u001b[1;96m█\u001b[39m \u001b[2mmore\u001b[0m\n\n\u001b[1;36m1.2k\u001b[0m sessions · \u001b[1;36m56\u001b[0m subagents\n\u001b[1;36m9.9k\u001b[0m prompts · \u001b[1;36m54.3k\u001b[0m steps · \u001b[1;36m1b\u001b[0m tokens\n\u001b[1;36m98.5%\u001b[0m tool success · \u001b[1;36m243\u001b[0m active days · best streak \u001b[1;36m17\u001b[0m days\n\n\u001b[2mopencode.ai\u001b[0m"}, +{"stats":"full","name":"summary narrow","options":{"label":"last 365 days","scope":"all projects","models":false,"tools":false,"cost":false,"limit":5,"width":40,"color":true},"output":"\u001b[1;36mopencode stats\u001b[0m \u001b[2m· last 365 days · all projects\u001b[0m\n\n\u001b[1;36mactivity · last 36 weeks\u001b[0m\n \u001b[2mMar Apr May Jun Jul Aug Sep Oct Nov\u001b[0m\n\u001b[2mMo\u001b[0m \u001b[2m·\u001b[22m\u001b[36m▒\u001b[39m\u001b[1;36m▓\u001b[39m\u001b[2m·\u001b[22m\u001b[1;36m▓\u001b[39m\u001b[2;36m░\u001b[39m\u001b[2m·\u001b[22m\u001b[2;36m░\u001b[39m\u001b[1;36m▓\u001b[39m\u001b[2m·\u001b[22m\u001b[1;36m▓\u001b[39m\u001b[2;36m░\u001b[39m\u001b[2m·\u001b[22m\u001b[1;96m█\u001b[39m\u001b[36m▒\u001b[39m\u001b[2m·\u001b[22m\u001b[36m▒\u001b[39m\u001b[1;96m█\u001b[39m\u001b[2m·\u001b[22m\u001b[1;96m█\u001b[39m\u001b[36m▒\u001b[39m\u001b[2m·\u001b[22m\u001b[2;36m░\u001b[39m\u001b[1;36m▓\u001b[39m\u001b[2m·\u001b[22m\u001b[1;36m▓\u001b[39m\u001b[2;36m░\u001b[39m\u001b[2m·\u001b[22m\u001b[2;36m░\u001b[39m\u001b[1;36m▓\u001b[39m\u001b[2m·\u001b[22m\u001b[36m▒\u001b[39m\u001b[1;96m█\u001b[39m\u001b[2m·\u001b[22m\u001b[1;96m█\u001b[39m\u001b[36m▒\u001b[39m\n\n\u001b[2mTu\u001b[0m \u001b[36m▒\u001b[39m\u001b[1;96m█\u001b[39m\u001b[2m·\u001b[22m\u001b[1;96m█\u001b[39m\u001b[36m▒\u001b[39m\u001b[2m·\u001b[22m\u001b[36m▒\u001b[39m\u001b[1;96m█\u001b[39m\u001b[2m·\u001b[22m\u001b[1;36m▓\u001b[39m\u001b[2;36m░\u001b[39m\u001b[2m·\u001b[22m\u001b[2;36m░\u001b[39m\u001b[1;36m▓\u001b[39m\u001b[2m·\u001b[22m\u001b[1;36m▓\u001b[39m\u001b[2;36m░\u001b[39m\u001b[2m·\u001b[22m\u001b[1;96m█\u001b[39m\u001b[36m▒\u001b[39m\u001b[2m·\u001b[22m\u001b[36m▒\u001b[39m\u001b[1;96m█\u001b[39m\u001b[2m·\u001b[22m\u001b[1;96m█\u001b[39m\u001b[36m▒\u001b[39m\u001b[2m·\u001b[22m\u001b[2;36m░\u001b[39m\u001b[1;36m▓\u001b[39m\u001b[2m·\u001b[22m\u001b[1;36m▓\u001b[39m\u001b[2;36m░\u001b[39m\u001b[2m·\u001b[22m\u001b[2;36m░\u001b[39m\u001b[1;36m▓\u001b[39m\u001b[2m·\u001b[22m\n\n\u001b[2mWe\u001b[0m \u001b[2;36m░\u001b[39m\u001b[2m·\u001b[22m\u001b[2;36m░\u001b[39m\u001b[36m▒\u001b[39m\u001b[2m·\u001b[22m\u001b[36m▒\u001b[39m\u001b[1;96m█\u001b[39m\u001b[2m·\u001b[22m\u001b[1;96m█\u001b[39m\u001b[36m▒\u001b[39m\u001b[2m·\u001b[22m\u001b[36m▒\u001b[39m\u001b[1;96m█\u001b[39m\u001b[2m·\u001b[22m\u001b[1;36m▓\u001b[39m\u001b[2;36m░\u001b[39m\u001b[2m·\u001b[22m\u001b[2;36m░\u001b[39m\u001b[1;36m▓\u001b[39m\u001b[2m·\u001b[22m\u001b[1;36m▓\u001b[39m\u001b[2;36m░\u001b[39m\u001b[2m·\u001b[22m\u001b[1;96m█\u001b[39m\u001b[36m▒\u001b[39m\u001b[2m·\u001b[22m\u001b[36m▒\u001b[39m\u001b[1;96m█\u001b[39m\u001b[2m·\u001b[22m\u001b[1;96m█\u001b[39m\u001b[36m▒\u001b[39m\u001b[2m·\u001b[22m\u001b[2;36m░\u001b[39m\u001b[1;36m▓\u001b[39m\u001b[2m·\u001b[22m\u001b[1;36m▓\u001b[39m\n\n\u001b[2mTh\u001b[0m \u001b[2m·\u001b[22m\u001b[2;36m░\u001b[39m\u001b[1;36m▓\u001b[39m\u001b[2m·\u001b[22m\u001b[1;36m▓\u001b[39m\u001b[2;36m░\u001b[39m\u001b[2m·\u001b[22m\u001b[2;36m░\u001b[39m\u001b[1;36m▓\u001b[39m\u001b[2m·\u001b[22m\u001b[36m▒\u001b[39m\u001b[1;96m█\u001b[39m\u001b[2m·\u001b[22m\u001b[1;96m█\u001b[39m\u001b[36m▒\u001b[39m\u001b[2m·\u001b[22m\u001b[36m▒\u001b[39m\u001b[1;96m█\u001b[39m\u001b[2m·\u001b[22m\u001b[1;36m▓\u001b[39m\u001b[2;36m░\u001b[39m\u001b[2m·\u001b[22m\u001b[2;36m░\u001b[39m\u001b[1;36m▓\u001b[39m\u001b[2m·\u001b[22m\u001b[1;36m▓\u001b[39m\u001b[2;36m░\u001b[39m\u001b[2m·\u001b[22m\u001b[1;96m█\u001b[39m\u001b[36m▒\u001b[39m\u001b[2m·\u001b[22m\u001b[36m▒\u001b[39m\u001b[1;96m█\u001b[39m\u001b[2m·\u001b[22m\u001b[1;96m█\u001b[39m \n\n\u001b[2mFr\u001b[0m \u001b[36m▒\u001b[39m\u001b[1;96m█\u001b[39m\u001b[2m·\u001b[22m\u001b[1;96m█\u001b[39m\u001b[2;36m░\u001b[39m\u001b[2m·\u001b[22m\u001b[2;36m░\u001b[39m\u001b[1;36m▓\u001b[39m\u001b[2m·\u001b[22m\u001b[1;36m▓\u001b[39m\u001b[2;36m░\u001b[39m\u001b[2m·\u001b[22m\u001b[2;36m░\u001b[39m\u001b[1;36m▓\u001b[39m\u001b[2m·\u001b[22m\u001b[36m▒\u001b[39m\u001b[1;96m█\u001b[39m\u001b[2m·\u001b[22m\u001b[1;96m█\u001b[39m\u001b[36m▒\u001b[39m\u001b[2m·\u001b[22m\u001b[36m▒\u001b[39m\u001b[1;96m█\u001b[39m\u001b[2m·\u001b[22m\u001b[1;36m▓\u001b[39m\u001b[2;36m░\u001b[39m\u001b[2m·\u001b[22m\u001b[2;36m░\u001b[39m\u001b[1;36m▓\u001b[39m\u001b[2m·\u001b[22m\u001b[1;36m▓\u001b[39m\u001b[2;36m░\u001b[39m\u001b[2m·\u001b[22m\u001b[1;96m█\u001b[39m\u001b[36m▒\u001b[39m \n\n\u001b[2mSa\u001b[0m \u001b[1;96m█\u001b[39m\u001b[2m·\u001b[22m\u001b[1;96m█\u001b[39m\u001b[36m▒\u001b[39m\u001b[2m·\u001b[22m\u001b[36m▒\u001b[39m\u001b[1;96m█\u001b[39m\u001b[2m·\u001b[22m\u001b[1;96m█\u001b[39m\u001b[36m▒\u001b[39m\u001b[2m·\u001b[22m\u001b[2;36m░\u001b[39m\u001b[1;36m▓\u001b[39m\u001b[2m·\u001b[22m\u001b[1;36m▓\u001b[39m\u001b[2;36m░\u001b[39m\u001b[2m·\u001b[22m\u001b[2;36m░\u001b[39m\u001b[1;36m▓\u001b[39m\u001b[2m·\u001b[22m\u001b[36m▒\u001b[39m\u001b[1;96m█\u001b[39m\u001b[2m·\u001b[22m\u001b[1;96m█\u001b[39m\u001b[36m▒\u001b[39m\u001b[2m·\u001b[22m\u001b[36m▒\u001b[39m\u001b[1;96m█\u001b[39m\u001b[2m·\u001b[22m\u001b[1;36m▓\u001b[39m\u001b[2;36m░\u001b[39m\u001b[2m·\u001b[22m\u001b[2;36m░\u001b[39m\u001b[1;36m▓\u001b[39m\u001b[2m·\u001b[22m \n\n\u001b[2mSu\u001b[0m \u001b[2m·\u001b[22m\u001b[2;36m░\u001b[39m\u001b[1;36m▓\u001b[39m\u001b[2m·\u001b[22m\u001b[1;36m▓\u001b[39m\u001b[1;96m█\u001b[39m\u001b[2m·\u001b[22m\u001b[1;96m█\u001b[39m\u001b[36m▒\u001b[39m\u001b[2m·\u001b[22m\u001b[36m▒\u001b[39m\u001b[1;96m█\u001b[39m\u001b[2m·\u001b[22m\u001b[1;96m█\u001b[39m\u001b[36m▒\u001b[39m\u001b[2m·\u001b[22m\u001b[2;36m░\u001b[39m\u001b[1;36m▓\u001b[39m\u001b[2m·\u001b[22m\u001b[1;36m▓\u001b[39m\u001b[2;36m░\u001b[39m\u001b[2m·\u001b[22m\u001b[2;36m░\u001b[39m\u001b[1;36m▓\u001b[39m\u001b[2m·\u001b[22m\u001b[36m▒\u001b[39m\u001b[1;96m█\u001b[39m\u001b[2m·\u001b[22m\u001b[1;96m█\u001b[39m\u001b[36m▒\u001b[39m\u001b[2m·\u001b[22m\u001b[36m▒\u001b[39m\u001b[1;96m█\u001b[39m\u001b[2m·\u001b[22m\u001b[1;96m█\u001b[39m \n\n \u001b[2mless\u001b[0m \u001b[2m·\u001b[22m\u001b[2;36m░\u001b[39m\u001b[36m▒\u001b[39m\u001b[1;36m▓\u001b[39m\u001b[1;96m█\u001b[39m \u001b[2mmore\u001b[0m\n\n\u001b[1;36m1.2k\u001b[0m sessions · \u001b[1;36m56\u001b[0m subagents\n\u001b[1;36m9.9k\u001b[0m prompts · \u001b[1;36m54.3k\u001b[0m steps · \u001b[1;36m1b\u001b[0m tokens\n\u001b[1;36m98.5%\u001b[0m tool success · \u001b[1;36m243\u001b[0m active days · best streak \u001b[1;36m17\u001b[0m days\n\n\u001b[2mopencode.ai\u001b[0m"}, +{"stats":"full","name":"summary tiny","options":{"label":"last 365 days","scope":"all projects","models":false,"tools":false,"cost":false,"limit":5,"width":3,"color":true},"output":"\u001b[1;36mopencode stats\u001b[0m \u001b[2m· last 365 days · all projects\u001b[0m\n\n\u001b[1;36mactivity · last 1 weeks\u001b[0m\n \u001b[2mNov\u001b[0m\n\u001b[2mMo\u001b[0m \u001b[36m▒\u001b[39m\n\n\u001b[2mTu\u001b[0m \u001b[2m·\u001b[22m\n\n\u001b[2mWe\u001b[0m \u001b[1;36m▓\u001b[39m\n\n\u001b[2mTh\u001b[0m \n\n\u001b[2mFr\u001b[0m \n\n\u001b[2mSa\u001b[0m \n\n\u001b[2mSu\u001b[0m \n\n \u001b[2mless\u001b[0m \u001b[2m·\u001b[22m\u001b[2;36m░\u001b[39m\u001b[36m▒\u001b[39m\u001b[1;36m▓\u001b[39m\u001b[1;96m█\u001b[39m \u001b[2mmore\u001b[0m\n\n\u001b[1;36m1.2k\u001b[0m sessions · \u001b[1;36m56\u001b[0m subagents\n\u001b[1;36m9.9k\u001b[0m prompts · \u001b[1;36m54.3k\u001b[0m steps · \u001b[1;36m1b\u001b[0m tokens\n\u001b[1;36m98.5%\u001b[0m tool success · \u001b[1;36m243\u001b[0m active days · best streak \u001b[1;36m17\u001b[0m days\n\n\u001b[2mopencode.ai\u001b[0m"}, +{"stats":"full","name":"models","options":{"label":"last 365 days","scope":"all projects","models":true,"tools":false,"cost":false,"limit":5,"width":80,"color":true},"output":"\u001b[2mlast 365 days · all projects\u001b[0m\n\nMODELS\nmodel tokens steps cost\nanthropic/claude-opus-5-5 515m 40k $900.13\nopenai/gpt-5#high 1k 10k $0.01\nopenrouter/some/really-long-model… 2b 999 $334.44\nlocal/tiny 0 1 $0.00"}, +{"stats":"full","name":"models narrow","options":{"label":"last 365 days","scope":"all projects","models":true,"tools":false,"cost":false,"limit":2,"width":60,"color":true},"output":"\u001b[2mlast 365 days · all projects\u001b[0m\n\nMODELS\nanthropic/claude-opus-5-5\n 515m tokens · 40k steps · $900.13\nopenai/gpt-5#high\n 1k tokens · 10k steps · $0.01\n\n+2 more models"}, +{"stats":"full","name":"tools","options":{"label":"last 365 days","scope":"all projects","models":false,"tools":true,"cost":false,"limit":3,"width":68,"color":true},"output":"\u001b[2mlast 365 days · all projects\u001b[0m\n\nTOOL RELIABILITY\ntool calls error p50\nread 2k 0.50% 12ms\nbash 1.5k 5.08% 1.5s\nedit 800 0.00% 1000ms\n\n5k finished calls · 25 unfinished\n+3 more tools"}, +{"stats":"full","name":"tools narrow","options":{"label":"last 365 days","scope":"all projects","models":false,"tools":true,"cost":false,"limit":5,"width":67,"color":true},"output":"\u001b[2mlast 365 days · all projects\u001b[0m\n\nTOOL RELIABILITY\nread\n 2k calls · 0.50% error · 12ms p50\nbash\n 1.5k calls · 5.08% error · 1.5s p50\nedit\n 800 calls · 0.00% error · 1000ms p50\na-very-long-tool-name-from-some-mcp-server_with_suffix\n 400 calls · 0.25% error · 120s p50\npending\n 300 calls · - error · - p50\n\n5k finished calls · 25 unfinished\n+1 more tool"}, +{"stats":"full","name":"tools one more","options":{"label":"last 365 days","scope":"all projects","models":false,"tools":true,"cost":false,"limit":5,"width":30,"color":true},"output":"\u001b[2mlast 365 days · all projects\u001b[0m\n\nTOOL RELIABILITY\nread\n 2k calls · 0.50% error · 12ms p50\nbash\n 1.5k calls · 5.08% error · 1.5s p50\nedit\n 800 calls · 0.00% error · 1000ms p50\na-very-long-tool-name-from-so…\n 400 calls · 0.25% error · 120s p50\npending\n 300 calls · - error · - p50\n\n5k finished calls · 25 unfinished\n+1 more tool"}, +{"stats":"full","name":"cost","options":{"label":"last 365 days","scope":"all projects","models":false,"tools":false,"cost":true,"limit":5,"width":80,"color":true},"output":"\u001b[2mlast 365 days · all projects\u001b[0m\n\nCOST & TOKENS\n cost $1234.57\n input 12.3m\n output 2.3m\n reasoning 345.7k\n cache read 987.7m\n cache write 12.3m\n cached input 97.6%"}, +{"stats":"full","name":"full","options":{"label":"2026 so far","scope":"current project","models":true,"tools":true,"cost":true,"limit":5,"width":100,"color":true},"output":"\u001b[2m2026 so far · current project\u001b[0m\n\nCOST & TOKENS\n cost $1234.57\n input 12.3m\n output 2.3m\n reasoning 345.7k\n cache read 987.7m\n cache write 12.3m\n cached input 97.6%\n\nMODELS\nmodel tokens steps cost\nanthropic/claude-opus-5-5 515m 40k $900.13\nopenai/gpt-5#high 1k 10k $0.01\nopenrouter/some/really-long-model… 2b 999 $334.44\nlocal/tiny 0 1 $0.00\n\nTOOL RELIABILITY\ntool calls error p50\nread 2k 0.50% 12ms\nbash 1.5k 5.08% 1.5s\nedit 800 0.00% 1000ms\na-very-long-tool-name-from-some-m… 400 0.25% 120s\npending 300 - -\n\n5k finished calls · 25 unfinished\n+1 more tool"}, +{"stats":"full","name":"full narrow","options":{"label":"last 365 days","scope":"all projects","models":true,"tools":true,"cost":true,"limit":1,"width":50,"color":true},"output":"\u001b[2mlast 365 days · all projects\u001b[0m\n\nCOST & TOKENS\n cost $1234.57\n input 12.3m\n output 2.3m\n reasoning 345.7k\n cache read 987.7m\n cache write 12.3m\n cached input 97.6%\n\nMODELS\nanthropic/claude-opus-5-5\n 515m tokens · 40k steps · $900.13\n\n+3 more models\n\nTOOL RELIABILITY\nread\n 2k calls · 0.50% error · 12ms p50\n\n5k finished calls · 25 unfinished\n+5 more tools"}, +{"stats":"singular","name":"summary","options":{"label":"last 365 days","scope":"all projects","models":false,"tools":false,"cost":false,"limit":5,"width":80,"color":true},"output":"\u001b[1;36mopencode stats\u001b[0m \u001b[2m· last 365 days · all projects\u001b[0m\n\n\u001b[1;36mactivity\u001b[0m\n \u001b[2mNov\u001b[0m\n\u001b[2mMo\u001b[0m \n\n\u001b[2mTu\u001b[0m \n\n\u001b[2mWe\u001b[0m \u001b[1;96m█\u001b[39m\n\n\u001b[2mTh\u001b[0m \n\n\u001b[2mFr\u001b[0m \n\n\u001b[2mSa\u001b[0m \n\n\u001b[2mSu\u001b[0m \n\n \u001b[2mless\u001b[0m \u001b[2m·\u001b[22m\u001b[2;36m░\u001b[39m\u001b[36m▒\u001b[39m\u001b[1;36m▓\u001b[39m\u001b[1;96m█\u001b[39m \u001b[2mmore\u001b[0m\n\n\u001b[1;36m1\u001b[0m session\n\u001b[1;36m1\u001b[0m prompt · \u001b[1;36m1\u001b[0m step · \u001b[1;36m1\u001b[0m token\n\u001b[1;36m100.0%\u001b[0m tool success · \u001b[1;36m1\u001b[0m active day · best streak \u001b[1;36m1\u001b[0m day\n\n\u001b[2mopencode.ai\u001b[0m"}, +{"stats":"singular","name":"full","options":{"label":"2026 so far","scope":"current project","models":true,"tools":true,"cost":true,"limit":5,"width":100,"color":true},"output":"\u001b[2m2026 so far · current project\u001b[0m\n\nCOST & TOKENS\n cost $1234.57\n input 1\n output 0\n reasoning 0\n cache read 0\n cache write 0\n cached input 0.00%\n\nMODELS\n no model usage\n\nTOOL RELIABILITY\n tool details unavailable"}, +{"stats":"singular","name":"full narrow","options":{"label":"last 365 days","scope":"all projects","models":true,"tools":true,"cost":true,"limit":1,"width":50,"color":true},"output":"\u001b[2mlast 365 days · all projects\u001b[0m\n\nCOST & TOKENS\n cost $1234.57\n input 1\n output 0\n reasoning 0\n cache read 0\n cache write 0\n cached input 0.00%\n\nMODELS\n no model usage\n\nTOOL RELIABILITY\n tool details unavailable"}, +{"stats":"no tool calls","name":"summary","options":{"label":"last 365 days","scope":"all projects","models":false,"tools":false,"cost":false,"limit":5,"width":80,"color":true},"output":"\u001b[1;36mopencode stats\u001b[0m \u001b[2m· last 365 days · all projects\u001b[0m\n\n\u001b[1;36mactivity\u001b[0m\n \u001b[2mNov\u001b[0m\n\u001b[2mMo\u001b[0m \n\n\u001b[2mTu\u001b[0m \n\n\u001b[2mWe\u001b[0m \u001b[1;96m█\u001b[39m\n\n\u001b[2mTh\u001b[0m \n\n\u001b[2mFr\u001b[0m \n\n\u001b[2mSa\u001b[0m \n\n\u001b[2mSu\u001b[0m \n\n \u001b[2mless\u001b[0m \u001b[2m·\u001b[22m\u001b[2;36m░\u001b[39m\u001b[36m▒\u001b[39m\u001b[1;36m▓\u001b[39m\u001b[1;96m█\u001b[39m \u001b[2mmore\u001b[0m\n\n\u001b[1;36m2\u001b[0m sessions\n\u001b[1;36m1\u001b[0m prompt · \u001b[1;36m1\u001b[0m step · \u001b[1;36m1\u001b[0m token\nno tool calls · \u001b[1;36m1\u001b[0m active day · best streak \u001b[1;36m1\u001b[0m day\n\n\u001b[2mopencode.ai\u001b[0m"}, +{"stats":"no tool calls","name":"full","options":{"label":"2026 so far","scope":"current project","models":true,"tools":true,"cost":true,"limit":5,"width":100,"color":true},"output":"\u001b[2m2026 so far · current project\u001b[0m\n\nCOST & TOKENS\n cost $1234.57\n input 1\n output 0\n reasoning 0\n cache read 0\n cache write 0\n cached input 0.00%\n\nMODELS\n no model usage\n\nTOOL RELIABILITY\n tool details unavailable"}, +{"stats":"no tool calls","name":"full narrow","options":{"label":"last 365 days","scope":"all projects","models":true,"tools":true,"cost":true,"limit":1,"width":50,"color":true},"output":"\u001b[2mlast 365 days · all projects\u001b[0m\n\nCOST & TOKENS\n cost $1234.57\n input 1\n output 0\n reasoning 0\n cache read 0\n cache write 0\n cached input 0.00%\n\nMODELS\n no model usage\n\nTOOL RELIABILITY\n tool details unavailable"}, +{"stats":"no tool stats","name":"summary","options":{"label":"last 365 days","scope":"all projects","models":false,"tools":false,"cost":false,"limit":5,"width":80,"color":true},"output":"\u001b[1;36mopencode stats\u001b[0m \u001b[2m· last 365 days · all projects\u001b[0m\n\n\u001b[1;36mactivity\u001b[0m\n \u001b[2mNov\u001b[0m\n\u001b[2mMo\u001b[0m \n\n\u001b[2mTu\u001b[0m \n\n\u001b[2mWe\u001b[0m \u001b[1;96m█\u001b[39m\n\n\u001b[2mTh\u001b[0m \n\n\u001b[2mFr\u001b[0m \n\n\u001b[2mSa\u001b[0m \n\n\u001b[2mSu\u001b[0m \n\n \u001b[2mless\u001b[0m \u001b[2m·\u001b[22m\u001b[2;36m░\u001b[39m\u001b[36m▒\u001b[39m\u001b[1;36m▓\u001b[39m\u001b[1;96m█\u001b[39m \u001b[2mmore\u001b[0m\n\n\u001b[1;36m3\u001b[0m sessions\n\u001b[1;36m1\u001b[0m prompt · \u001b[1;36m1\u001b[0m step · \u001b[1;36m1\u001b[0m token\ntool stats unavailable · \u001b[1;36m1\u001b[0m active day · best streak \u001b[1;36m1\u001b[0m day\n\n\u001b[2mopencode.ai\u001b[0m"}, +{"stats":"no tool stats","name":"full","options":{"label":"2026 so far","scope":"current project","models":true,"tools":true,"cost":true,"limit":5,"width":100,"color":true},"output":"\u001b[2m2026 so far · current project\u001b[0m\n\nCOST & TOKENS\n cost $1234.57\n input 1\n output 0\n reasoning 0\n cache read 0\n cache write 0\n cached input 0.00%\n\nMODELS\n no model usage\n\nTOOL RELIABILITY\n tool details unavailable"}, +{"stats":"no tool stats","name":"full narrow","options":{"label":"last 365 days","scope":"all projects","models":true,"tools":true,"cost":true,"limit":1,"width":50,"color":true},"output":"\u001b[2mlast 365 days · all projects\u001b[0m\n\nCOST & TOKENS\n cost $1234.57\n input 1\n output 0\n reasoning 0\n cache read 0\n cache write 0\n cached input 0.00%\n\nMODELS\n no model usage\n\nTOOL RELIABILITY\n tool details unavailable"}, +{"stats":"no details","name":"summary","options":{"label":"last 365 days","scope":"all projects","models":false,"tools":false,"cost":false,"limit":5,"width":80,"color":true},"output":"\u001b[1;36mopencode stats\u001b[0m \u001b[2m· last 365 days · all projects\u001b[0m\n\n\u001b[1;36mactivity\u001b[0m\n \u001b[2mNov\u001b[0m\n\u001b[2mMo\u001b[0m \n\n\u001b[2mTu\u001b[0m \n\n\u001b[2mWe\u001b[0m \u001b[1;96m█\u001b[39m\n\n\u001b[2mTh\u001b[0m \n\n\u001b[2mFr\u001b[0m \n\n\u001b[2mSa\u001b[0m \n\n\u001b[2mSu\u001b[0m \n\n \u001b[2mless\u001b[0m \u001b[2m·\u001b[22m\u001b[2;36m░\u001b[39m\u001b[36m▒\u001b[39m\u001b[1;36m▓\u001b[39m\u001b[1;96m█\u001b[39m \u001b[2mmore\u001b[0m\n\n\u001b[1;36m1\u001b[0m session\n\u001b[1;36m1\u001b[0m prompt · \u001b[1;36m1\u001b[0m step · \u001b[1;36m1\u001b[0m token\nno tool calls · \u001b[1;36m1\u001b[0m active day · best streak \u001b[1;36m1\u001b[0m day\n\n\u001b[2mopencode.ai\u001b[0m"}, +{"stats":"no details","name":"full","options":{"label":"2026 so far","scope":"current project","models":true,"tools":true,"cost":true,"limit":5,"width":100,"color":true},"output":"\u001b[2m2026 so far · current project\u001b[0m\n\nCOST & TOKENS\n cost $1234.57\n input 1\n output 0\n reasoning 0\n cache read 0\n cache write 0\n cached input 0.00%\n\nMODELS\n no model usage\n\nTOOL RELIABILITY\n no tool calls"}, +{"stats":"no details","name":"full narrow","options":{"label":"last 365 days","scope":"all projects","models":true,"tools":true,"cost":true,"limit":1,"width":50,"color":true},"output":"\u001b[2mlast 365 days · all projects\u001b[0m\n\nCOST & TOKENS\n cost $1234.57\n input 1\n output 0\n reasoning 0\n cache read 0\n cache write 0\n cached input 0.00%\n\nMODELS\n no model usage\n\nTOOL RELIABILITY\n no tool calls"}, +{"stats":"empty","name":"summary","options":{"label":"last 365 days","scope":"all projects","models":false,"tools":false,"cost":false,"limit":5,"width":80,"color":true},"output":"\u001b[1;36mopencode stats\u001b[0m \u001b[2m· last 365 days · all projects\u001b[0m\n\n\u001b[2mno activity in this range\u001b[0m\n\n\u001b[2mopencode.ai\u001b[0m"}, +{"stats":"empty","name":"full","options":{"label":"2026 so far","scope":"current project","models":true,"tools":true,"cost":true,"limit":5,"width":100,"color":true},"output":"\u001b[2m2026 so far · current project\u001b[0m\n\nCOST & TOKENS\n cost $0.00\n input 0\n output 0\n reasoning 0\n cache read 0\n cache write 0\n cached input 0.00%\n\nMODELS\n no model usage\n\nTOOL RELIABILITY\n tool details unavailable"}, +{"stats":"empty","name":"full narrow","options":{"label":"last 365 days","scope":"all projects","models":true,"tools":true,"cost":true,"limit":1,"width":50,"color":true},"output":"\u001b[2mlast 365 days · all projects\u001b[0m\n\nCOST & TOKENS\n cost $0.00\n input 0\n output 0\n reasoning 0\n cache read 0\n cache write 0\n cached input 0.00%\n\nMODELS\n no model usage\n\nTOOL RELIABILITY\n tool details unavailable"} +]} +] +} diff --git a/packages/cli-rs/parity/fixtures/E.1/cold.app.json b/packages/cli-rs/parity/fixtures/E.1/cold.app.json new file mode 100644 index 000000000000..3ab84e1fa928 --- /dev/null +++ b/packages/cli-rs/parity/fixtures/E.1/cold.app.json @@ -0,0 +1,48 @@ +{ + "scenario": "E.1/cold", + "width": 100, + "height": 30, + "directory": "/tmp/opencode/packages/tui", + "config": { + "animations": false, + "experimental": {"new-designs":true}, + "theme": {"name":"opencode"} + }, + "args": {}, + "routes": [ + {"path":"/api/agent","json":{"location":{"directory":"/tmp/opencode/packages/tui"},"data":[]}}, + {"path":"/api/model","json":{"location":{"directory":"/tmp/opencode/packages/tui"},"data":[]}}, + {"path":"/api/provider","json":{"location":{"directory":"/tmp/opencode/packages/tui"},"data":[]}}, + {"path":"/api/command","json":{"location":{"directory":"/tmp/opencode/packages/tui"},"data":[]}} + ], + "steps": [ + {"checkpoint":"home","until":"Ask anything","masks":[{"x":16,"y":16,"width":84,"height":1,"reason":"the placeholder example: random in TS and Rust"}],"fixture":"E.1/cold/home"}, + {"keys":["ctrl+x","m"]}, + {"checkpoint":"models","until":"Free models","fixture":"E.1/cold/models"} + ], + "requests": { + "writes": [], + "reads": [ + {"method":"GET","path":"/api/agent","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui"},"data":[]}}, + {"method":"GET","path":"/api/command","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui"},"data":[]}}, + {"method":"GET","path":"/api/config","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":[]}, + {"method":"GET","path":"/api/experimental/migration/v1","query":{},"status":200,"json":{"status":"completed"}}, + {"method":"GET","path":"/api/form","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode"}},"data":[]}}, + {"method":"GET","path":"/api/fs/list","query":{"location[directory]":["<cwd>"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":[]}}, + {"method":"GET","path":"/api/info","query":{},"status":200,"json":{"version":"test","pid":0,"urls":[],"paths":{"tmp":"/tmp"},"capabilities":{"persistentPty":true}}}, + {"method":"GET","path":"/api/integration","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":[]}}, + {"method":"GET","path":"/api/location","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}}}, + {"method":"GET","path":"/api/mcp","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":[]}}, + {"method":"GET","path":"/api/mcp/resource","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":{"resources":[],"templates":[]}}}, + {"method":"GET","path":"/api/model","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui"},"data":[]}}, + {"method":"GET","path":"/api/plugin","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":[]}}, + {"method":"GET","path":"/api/project","query":{},"status":200,"json":[]}, + {"method":"GET","path":"/api/provider","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui"},"data":[]}}, + {"method":"GET","path":"/api/reference","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode/packages/tui","canonical":"/tmp/opencode/packages/tui"}},"data":[]}}, + {"method":"GET","path":"/api/session/active","query":{},"status":200,"json":{"data":{}}}, + {"method":"GET","path":"/api/shell","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":[]}}, + {"method":"GET","path":"/api/skill","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":[]}}, + {"method":"GET","path":"/api/vcs","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":{"branch":{"current":"main","default":"main"}}}} + ] + } +} diff --git a/packages/cli-rs/parity/fixtures/E.1/cold/home.json b/packages/cli-rs/parity/fixtures/E.1/cold/home.json new file mode 100644 index 000000000000..fde2210b2f02 --- /dev/null +++ b/packages/cli-rs/parity/fixtures/E.1/cold/home.json @@ -0,0 +1,32 @@ +{"width":100,"height":30,"styles":["#ffffffff #080808ff 0","#808080ff #080808ff 0","#ffffffff #080808ff 1","#808080ff #262626ff 0","#ffffffff #464646ff 1","#262626ff #080808ff 0","#484848ff #080808ff 0","#ffffffff #202020ff 0","#00000000 #00000000 0","#202020ff #080808ff 0"],"lines":[ +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ▄ ",[[0,31],[1,19],[0,1],[2,19],[0,30]]], +[" █▀▀█ █▀▀█ █▀▀█ █▀▀▄ █▀▀▀ █▀▀█ █▀▀█ █▀▀█ ",[[0,31],[1,19],[0,1],[2,19],[0,30]]], +[" █ █ █ █ █▀▀▀ █ █ █ █ █ █ █ █▀▀▀ ",[[0,31],[1,1],[3,2],[1,3],[3,2],[1,3],[3,3],[1,2],[3,2],[1,1],[0,1],[2,1],[4,3],[2,2],[4,2],[2,3],[4,2],[2,3],[4,3],[0,30]]], +[" ▀▀▀▀ █▀▀▀ ▀▀▀▀ ▀▀▀▀ ▀▀▀▀ ▀▀▀▀ ▀▀▀▀ ▀▀▀▀ ",[[0,31],[1,16],[5,2],[1,1],[0,1],[2,19],[0,30]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ┃ ",[[0,13],[6,1],[7,74],[0,12]]], +[" ┃ ",[[0,13],[6,1],[7,2],[8,84]]], +[" ┃ ",[[0,13],[6,1],[7,74],[0,12]]], +[" ┃ ",[[0,13],[6,1],[7,74],[0,12]]], +[" ╹▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀ ",[[0,13],[6,1],[9,74],[0,12]]], +[" /tmp/opencode/packages/tui:main shift+tab agents ctrl+p commands ",[[0,13],[1,31],[0,21],[1,6],[0,9],[1,8],[0,12]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" test ",[[0,94],[1,4],[0,2]]], +[" ",[[0,100]]] +]} diff --git a/packages/cli-rs/parity/fixtures/E.1/cold/models.json b/packages/cli-rs/parity/fixtures/E.1/cold/models.json new file mode 100644 index 000000000000..0692a9022d19 --- /dev/null +++ b/packages/cli-rs/parity/fixtures/E.1/cold/models.json @@ -0,0 +1,32 @@ +{"width":100,"height":30,"styles":["#ffffffff #030303ff 0","#ffffffff #141414ff 0","#808080ff #141414ff 0","#1e1e1eff #030303ff 0","#ffffffff #0d0d0dff 0","#353535ff #0d0d0dff 0","#ffffffff #202020ff 0","#808080ff #202020ff 0","#0d0d0dff #030303ff 0","#353535ff #030303ff 0","#696969ff #030303ff 0"],"lines":[ +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,20],[1,60],[0,20]]], +[" Free models esc ",[[0,20],[1,53],[2,3],[1,4],[0,20]]], +[" Connect a provider for access to more models ",[[0,20],[1,4],[2,44],[1,12],[0,20]]], +[" ",[[0,20],[1,60],[0,20]]], +[" Search ",[[0,20],[1,4],[2,6],[1,50],[0,20]]], +[" ",[[0,20],[1,60],[0,20]]], +[" No items available ",[[0,20],[1,4],[2,18],[1,38],[0,20]]], +[" ┃ ",[[0,13],[3,1],[4,6],[1,60],[4,8],[0,12]]], +[" ┃ Ask ",[[0,13],[3,1],[4,2],[5,3],[4,1],[6,60],[4,8],[0,12]]], +[" ┃ connect provider ctrl+a favorite ctrl+f ",[[0,13],[3,1],[4,6],[6,20],[7,7],[6,14],[7,15],[6,4],[4,8],[0,12]]], +[" ┃ ",[[0,13],[3,1],[4,6],[6,60],[4,8],[0,12]]], +[" ╹▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀ ",[[0,13],[3,1],[8,74],[0,12]]], +[" /tmp/opencode/packages/tui:main shift+tab agents ctrl+p commands ",[[0,13],[9,31],[0,11],[10,9],[0,1],[9,6],[0,2],[10,6],[0,1],[9,8],[0,12]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" test ",[[0,94],[9,4],[0,2]]], +[" ",[[0,100]]] +]} diff --git a/packages/cli-rs/parity/fixtures/E.1/continue.app.json b/packages/cli-rs/parity/fixtures/E.1/continue.app.json new file mode 100644 index 000000000000..528e5627c354 --- /dev/null +++ b/packages/cli-rs/parity/fixtures/E.1/continue.app.json @@ -0,0 +1,61 @@ +{ + "scenario": "E.1/continue", + "width": 100, + "height": 30, + "directory": "/tmp/opencode/packages/tui", + "config": { + "animations": false, + "experimental": {"new-designs":true}, + "theme": {"name":"opencode"} + }, + "args": { + "continue": true + }, + "routes": [ + {"path":"/api/session","json":{"data":[{"id":"ses_b","title":"Fix the parser","projectID":"proj_test","cost":0,"tokens":{"input":0,"output":0,"reasoning":0,"cache":{"read":0,"write":0}},"time":{"created":2,"updated":2},"location":{"directory":"/tmp/opencode/packages/tui"}}],"cursor":{}}}, + {"path":"/api/session/ses_b","json":{"data":{"id":"ses_b","title":"Fix the parser","projectID":"proj_test","cost":0,"tokens":{"input":0,"output":0,"reasoning":0,"cache":{"read":0,"write":0}},"time":{"created":2,"updated":2},"location":{"directory":"/tmp/opencode/packages/tui"}}}}, + {"path":"/api/session/ses_b/message","json":{"data":[{"id":"msg_2","type":"assistant","agent":"build","model":{"providerID":"provider","id":"model"},"content":[{"type":"text","text":"The parser drops the last token."}],"finish":"stop","time":{"created":2,"completed":3}},{"id":"msg_1","type":"user","text":"Why?","time":{"created":1}}],"cursor":{}}}, + {"path":"/api/session/ses_b/inbox","json":{"data":[]}}, + {"path":"/api/session/dummy","json":{"data":{"id":"dummy","title":"","projectID":"proj_test","cost":0,"tokens":{"input":0,"output":0,"reasoning":0,"cache":{"read":0,"write":0}},"time":{"created":1,"updated":1},"location":{"directory":"/tmp/opencode/packages/tui"}}}}, + {"path":"/api/session/dummy/message","json":{"data":[],"cursor":{}}}, + {"path":"/api/session/dummy/inbox","json":{"data":[]}} + ], + "steps": [ + {"checkpoint":"continued","until":"The parser drops the last token.","fixture":"E.1/continue/continued"} + ], + "requests": { + "writes": [], + "reads": [ + {"method":"GET","path":"/api/agent","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":[]}}, + {"method":"GET","path":"/api/command","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":[]}}, + {"method":"GET","path":"/api/config","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":[]}, + {"method":"GET","path":"/api/experimental/job","query":{"descendants":["true"],"sessionID":["ses_b"],"status":["running"]},"status":200,"json":{"data":[]}}, + {"method":"GET","path":"/api/experimental/migration/v1","query":{},"status":200,"json":{"status":"completed"}}, + {"method":"GET","path":"/api/experimental/session/ses_b/terminal","query":{},"status":200,"json":{"data":[]}}, + {"method":"GET","path":"/api/form","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode"}},"data":[]}}, + {"method":"GET","path":"/api/fs/list","query":{"location[directory]":["<cwd>"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":[]}}, + {"method":"GET","path":"/api/info","query":{},"status":200,"json":{"version":"test","pid":0,"urls":[],"paths":{"tmp":"/tmp"},"capabilities":{"persistentPty":true}}}, + {"method":"GET","path":"/api/integration","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":[]}}, + {"method":"GET","path":"/api/location","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}}}, + {"method":"GET","path":"/api/mcp","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":[]}}, + {"method":"GET","path":"/api/mcp/resource","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":{"resources":[],"templates":[]}}}, + {"method":"GET","path":"/api/model","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":[]}}, + {"method":"GET","path":"/api/plugin","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":[]}}, + {"method":"GET","path":"/api/project","query":{},"status":200,"json":[]}, + {"method":"GET","path":"/api/provider","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":[]}}, + {"method":"GET","path":"/api/reference","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode/packages/tui","canonical":"/tmp/opencode/packages/tui"}},"data":[]}}, + {"method":"GET","path":"/api/session","query":{"archived":["false"],"directory":["/tmp/opencode/packages/tui"],"limit":["1"],"order":["desc"],"parentID":["null"]},"status":200,"json":{"data":[{"id":"ses_b","title":"Fix the parser","projectID":"proj_test","cost":0,"tokens":{"input":0,"output":0,"reasoning":0,"cache":{"read":0,"write":0}},"time":{"created":2,"updated":2},"location":{"directory":"/tmp/opencode/packages/tui"}}],"cursor":{}}}, + {"method":"GET","path":"/api/session","query":{"limit":["200"],"order":["desc"],"parentID":["ses_b"]},"status":200,"json":{"data":[{"id":"ses_b","title":"Fix the parser","projectID":"proj_test","cost":0,"tokens":{"input":0,"output":0,"reasoning":0,"cache":{"read":0,"write":0}},"time":{"created":2,"updated":2},"location":{"directory":"/tmp/opencode/packages/tui"}}],"cursor":{}}}, + {"method":"GET","path":"/api/session/active","query":{},"status":200,"json":{"data":{}}}, + {"method":"GET","path":"/api/session/ses_b","query":{},"status":200,"json":{"data":{"id":"ses_b","title":"Fix the parser","projectID":"proj_test","cost":0,"tokens":{"input":0,"output":0,"reasoning":0,"cache":{"read":0,"write":0}},"time":{"created":2,"updated":2},"location":{"directory":"/tmp/opencode/packages/tui"}}}}, + {"method":"GET","path":"/api/session/ses_b/form","query":{},"status":200,"json":{"data":[]}}, + {"method":"GET","path":"/api/session/ses_b/inbox","query":{},"status":200,"json":{"data":[]}}, + {"method":"GET","path":"/api/session/ses_b/message","query":{"limit":["20"],"order":["desc"]},"status":200,"json":{"data":[{"id":"msg_2","type":"assistant","agent":"build","model":{"providerID":"provider","id":"model"},"content":[{"type":"text","text":"The parser drops the last token."}],"finish":"stop","time":{"created":2,"completed":3}},{"id":"msg_1","type":"user","text":"Why?","time":{"created":1}}],"cursor":{}}}, + {"method":"GET","path":"/api/session/ses_b/permission","query":{},"status":200,"json":{"data":[]}}, + {"method":"GET","path":"/api/shell","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":[]}}, + {"method":"GET","path":"/api/skill","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":[]}}, + {"method":"GET","path":"/api/vcs","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":{"branch":{"current":"main","default":"main"}}}}, + {"method":"POST","path":"/api/rpc/opencode.goal/get","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"body":{"input":{"sessionID":"ses_b"}},"status":200,"json":{"output":null}} + ] + } +} diff --git a/packages/cli-rs/parity/fixtures/E.1/continue/continued.json b/packages/cli-rs/parity/fixtures/E.1/continue/continued.json new file mode 100644 index 000000000000..2a2e22b04ff5 --- /dev/null +++ b/packages/cli-rs/parity/fixtures/E.1/continue/continued.json @@ -0,0 +1,32 @@ +{"width":100,"height":30,"styles":["#ffffffff #202020ff 0","#ffffffff #202020ff 1","#808080ff #080808ff 0","#ffffffff #080808ff 0","#7699feff #141414ff 0","#ffffffff #141414ff 0","#eeeeeeff #080808ff 0","#7699feff #080808ff 0","#484848ff #080808ff 0","#202020ff #080808ff 0"],"lines":[ +[" Fix the parser + ",[[0,3],[1,14],[0,15],[2,3],[3,65]]], +[" ",[[3,100]]], +[" ┃ ",[[3,2],[4,1],[5,95],[3,2]]], +[" ┃ Why? ",[[3,2],[4,1],[5,95],[3,2]]], +[" ┃ ",[[3,2],[4,1],[5,95],[3,2]]], +[" ",[[3,100]]], +[" The parser drops the last token. ",[[3,5],[6,32],[3,63]]], +[" ",[[3,100]]], +[" Build · provider/model · 2ms ",[[3,5],[7,5],[2,23],[3,67]]], +[" ",[[3,100]]], +[" ",[[3,100]]], +[" ",[[3,100]]], +[" ",[[3,100]]], +[" ",[[3,100]]], +[" ",[[3,100]]], +[" ",[[3,100]]], +[" ",[[3,100]]], +[" ",[[3,100]]], +[" ",[[3,100]]], +[" ",[[3,100]]], +[" ",[[3,100]]], +[" ",[[3,100]]], +[" ",[[3,100]]], +[" ┃ ",[[3,2],[8,1],[0,95],[3,2]]], +[" ┃ ",[[3,2],[8,1],[0,95],[3,2]]], +[" ┃ ",[[3,2],[8,1],[0,95],[3,2]]], +[" ┃ ",[[3,2],[8,1],[0,95],[3,2]]], +[" ╹▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀ ",[[3,2],[8,1],[9,95],[3,2]]], +[" /tmp/opencode/packages/tui:main shift+tab agents ctrl+p commands ",[[3,2],[2,31],[3,42],[2,6],[3,9],[2,8],[3,2]]], +[" ",[[3,100]]] +]} diff --git a/packages/cli-rs/parity/fixtures/E.1/events.app.json b/packages/cli-rs/parity/fixtures/E.1/events.app.json new file mode 100644 index 000000000000..fda12f9f595f --- /dev/null +++ b/packages/cli-rs/parity/fixtures/E.1/events.app.json @@ -0,0 +1,64 @@ +{ + "scenario": "E.1/events", + "width": 100, + "height": 30, + "directory": "/tmp/opencode/packages/tui", + "config": { + "tabs": {"mode":"off"}, + "animations": false, + "experimental": {"new-designs":true}, + "theme": {"name":"opencode"} + }, + "args": {}, + "routes": [ + {"path":"/api/session/ses_b","json":{"data":{"id":"ses_b","title":"Fix the parser","projectID":"proj_test","cost":0,"tokens":{"input":0,"output":0,"reasoning":0,"cache":{"read":0,"write":0}},"time":{"created":2,"updated":2},"location":{"directory":"/tmp/opencode/packages/tui"}}}}, + {"path":"/api/session/ses_b/message","json":{"data":[{"id":"msg_2","type":"assistant","agent":"build","model":{"providerID":"provider","id":"model"},"content":[{"type":"text","text":"The parser drops the last token."}],"finish":"stop","time":{"created":2,"completed":3}},{"id":"msg_1","type":"user","text":"Why?","time":{"created":1}}],"cursor":{}}}, + {"path":"/api/session/ses_b/inbox","json":{"data":[]}} + ], + "steps": [ + {"checkpoint":"home","until":"Ask anything","masks":[{"x":16,"y":16,"width":84,"height":1,"reason":"the placeholder example: random in TS and Rust"}],"fixture":"E.1/events/home"}, + {"event":{"id":"evt_1","created":3,"type":"tui.toast.show","location":{"directory":"/somewhere/else"},"data":{"title":"Elsewhere","message":"Not for this location","variant":"error"}}}, + {"event":{"id":"evt_2","created":3,"type":"tui.toast.show","location":{"directory":"/tmp/opencode/packages/tui"},"data":{"message":"Deployed to staging","variant":"success"}}}, + {"checkpoint":"toast","until":"Deployed to staging","masks":[{"x":16,"y":16,"width":84,"height":1,"reason":"the placeholder example: random in TS and Rust"}],"fixture":"E.1/events/toast"}, + {"event":{"id":"evt_3","created":3,"type":"tui.session.select","location":{"directory":"/tmp/opencode/packages/tui"},"data":{"sessionID":"ses_b"}}}, + {"checkpoint":"selected","until":"The parser drops the last token.","fixture":"E.1/events/selected"}, + {"event":{"id":"evt_4","created":4,"type":"session.deleted","durable":{"aggregateID":"ses_b","seq":1,"version":1},"location":{"directory":"/tmp/opencode/packages/tui"},"data":{"sessionID":"ses_b"}}}, + {"checkpoint":"deleted","until":"was deleted","masks":[{"x":16,"y":16,"width":84,"height":1,"reason":"the placeholder example: random in TS and Rust"}],"fixture":"E.1/events/deleted"}, + {"event":{"id":"evt_5","created":3,"type":"tui.command.execute","location":{"directory":"/tmp/opencode/packages/tui"},"data":{"command":"help.show"}}}, + {"checkpoint":"command","until":"Help","masks":[{"x":16,"y":16,"width":3,"height":1,"reason":"the placeholder example: random in TS and Rust"}],"fixture":"E.1/events/command"} + ], + "requests": { + "writes": [], + "reads": [ + {"method":"GET","path":"/api/agent","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":[]}}, + {"method":"GET","path":"/api/command","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":[]}}, + {"method":"GET","path":"/api/config","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":[]}, + {"method":"GET","path":"/api/experimental/job","query":{"descendants":["true"],"sessionID":["ses_b"],"status":["running"]},"status":200,"json":{"data":[]}}, + {"method":"GET","path":"/api/experimental/migration/v1","query":{},"status":200,"json":{"status":"completed"}}, + {"method":"GET","path":"/api/experimental/session/ses_b/terminal","query":{},"status":200,"json":{"data":[]}}, + {"method":"GET","path":"/api/form","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode"}},"data":[]}}, + {"method":"GET","path":"/api/fs/list","query":{"location[directory]":["<cwd>"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":[]}}, + {"method":"GET","path":"/api/info","query":{},"status":200,"json":{"version":"test","pid":0,"urls":[],"paths":{"tmp":"/tmp"},"capabilities":{"persistentPty":true}}}, + {"method":"GET","path":"/api/integration","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":[]}}, + {"method":"GET","path":"/api/location","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}}}, + {"method":"GET","path":"/api/mcp","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":[]}}, + {"method":"GET","path":"/api/mcp/resource","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":{"resources":[],"templates":[]}}}, + {"method":"GET","path":"/api/model","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":[]}}, + {"method":"GET","path":"/api/plugin","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":[]}}, + {"method":"GET","path":"/api/project","query":{},"status":200,"json":[]}, + {"method":"GET","path":"/api/provider","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":[]}}, + {"method":"GET","path":"/api/reference","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode/packages/tui","canonical":"/tmp/opencode/packages/tui"}},"data":[]}}, + {"method":"GET","path":"/api/session","query":{"limit":["200"],"order":["desc"],"parentID":["ses_b"]},"status":200,"json":{"data":[],"cursor":{}}}, + {"method":"GET","path":"/api/session/active","query":{},"status":200,"json":{"data":{}}}, + {"method":"GET","path":"/api/session/ses_b","query":{},"status":200,"json":{"data":{"id":"ses_b","title":"Fix the parser","projectID":"proj_test","cost":0,"tokens":{"input":0,"output":0,"reasoning":0,"cache":{"read":0,"write":0}},"time":{"created":2,"updated":2},"location":{"directory":"/tmp/opencode/packages/tui"}}}}, + {"method":"GET","path":"/api/session/ses_b/form","query":{},"status":200,"json":{"data":[]}}, + {"method":"GET","path":"/api/session/ses_b/inbox","query":{},"status":200,"json":{"data":[]}}, + {"method":"GET","path":"/api/session/ses_b/message","query":{"limit":["20"],"order":["desc"]},"status":200,"json":{"data":[{"id":"msg_2","type":"assistant","agent":"build","model":{"providerID":"provider","id":"model"},"content":[{"type":"text","text":"The parser drops the last token."}],"finish":"stop","time":{"created":2,"completed":3}},{"id":"msg_1","type":"user","text":"Why?","time":{"created":1}}],"cursor":{}}}, + {"method":"GET","path":"/api/session/ses_b/permission","query":{},"status":200,"json":{"data":[]}}, + {"method":"GET","path":"/api/shell","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":[]}}, + {"method":"GET","path":"/api/skill","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":[]}}, + {"method":"GET","path":"/api/vcs","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":{"branch":{"current":"main","default":"main"}}}}, + {"method":"POST","path":"/api/rpc/opencode.goal/get","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"body":{"input":{"sessionID":"ses_b"}},"status":200,"json":{"output":null}} + ] + } +} diff --git a/packages/cli-rs/parity/fixtures/E.1/events/command.json b/packages/cli-rs/parity/fixtures/E.1/events/command.json new file mode 100644 index 000000000000..a34afbed07f4 --- /dev/null +++ b/packages/cli-rs/parity/fixtures/E.1/events/command.json @@ -0,0 +1,32 @@ +{"width":100,"height":30,"styles":["#ffffffff #030303ff 0","#313f69ff #030303ff 0","#ffffffff #0d0d0dff 0","#696969ff #0d0d0dff 0","#353535ff #0d0d0dff 0","#ffffffff #141414ff 0","#808080ff #141414ff 0","#ffffffff #202020ff 0","#1e1e1eff #030303ff 0","#808080ff #202020ff 0","#00000000 #00000000 0","#0d0d0dff #030303ff 0","#353535ff #030303ff 0","#696969ff #030303ff 0"],"lines":[ +[" ",[[0,100]]], +[" ┃ ┃ ",[[0,53],[1,1],[2,43],[1,1],[0,2]]], +[" ┃ Session \"Fix the parser\" was deleted x ┃ ",[[0,53],[1,1],[2,2],[3,7],[2,1],[3,4],[2,1],[3,3],[2,1],[3,7],[2,1],[3,3],[2,1],[3,7],[2,2],[4,1],[2,2],[1,1],[0,2]]], +[" ┃ ┃ ",[[0,53],[1,1],[2,43],[1,1],[0,2]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,20],[5,60],[0,20]]], +[" Help esc/enter ",[[0,20],[5,48],[6,9],[5,3],[0,20]]], +[" ",[[0,20],[5,60],[0,20]]], +[" Press ctrl+p to see all available actions and commands ",[[0,20],[5,3],[6,54],[5,3],[0,20]]], +[" in any context. ",[[0,20],[5,3],[6,15],[5,42],[0,20]]], +[" ",[[0,20],[5,60],[0,20]]], +[" ",[[0,20],[7,60],[0,20]]], +[" ┃ ok enter ",[[0,13],[8,1],[2,6],[7,51],[9,6],[7,3],[2,8],[0,12]]], +[" ┃ ",[[0,13],[8,1],[2,2],[10,3],[2,1],[7,60],[2,8],[0,12]]], +[" ┃ ",[[0,13],[8,1],[2,74],[0,12]]], +[" ┃ ",[[0,13],[8,1],[2,74],[0,12]]], +[" ╹▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀ ",[[0,13],[8,1],[11,74],[0,12]]], +[" /tmp/opencode/packages/tui:main shift+tab agents ctrl+p commands ",[[0,13],[12,31],[0,11],[13,9],[0,1],[12,6],[0,2],[13,6],[0,1],[12,8],[0,12]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" test ",[[0,94],[12,4],[0,2]]], +[" ",[[0,100]]] +]} diff --git a/packages/cli-rs/parity/fixtures/E.1/events/deleted.json b/packages/cli-rs/parity/fixtures/E.1/events/deleted.json new file mode 100644 index 000000000000..969954c1e948 --- /dev/null +++ b/packages/cli-rs/parity/fixtures/E.1/events/deleted.json @@ -0,0 +1,32 @@ +{"width":100,"height":30,"styles":["#ffffffff #080808ff 0","#7699feff #080808ff 0","#ffffffff #202020ff 0","#808080ff #202020ff 0","#808080ff #080808ff 0","#ffffffff #080808ff 1","#808080ff #262626ff 0","#ffffffff #464646ff 1","#262626ff #080808ff 0","#484848ff #080808ff 0","#00000000 #00000000 0","#202020ff #080808ff 0"],"lines":[ +[" ",[[0,100]]], +[" ┃ ┃ ",[[0,53],[1,1],[2,43],[1,1],[0,2]]], +[" ┃ Session \"Fix the parser\" was deleted x ┃ ",[[0,53],[1,1],[2,40],[3,1],[2,2],[1,1],[0,2]]], +[" ┃ ┃ ",[[0,53],[1,1],[2,43],[1,1],[0,2]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ▄ ",[[0,31],[4,19],[0,1],[5,19],[0,30]]], +[" █▀▀█ █▀▀█ █▀▀█ █▀▀▄ █▀▀▀ █▀▀█ █▀▀█ █▀▀█ ",[[0,31],[4,19],[0,1],[5,19],[0,30]]], +[" █ █ █ █ █▀▀▀ █ █ █ █ █ █ █ █▀▀▀ ",[[0,31],[4,1],[6,2],[4,3],[6,2],[4,3],[6,3],[4,2],[6,2],[4,1],[0,1],[5,1],[7,3],[5,2],[7,2],[5,3],[7,2],[5,3],[7,3],[0,30]]], +[" ▀▀▀▀ █▀▀▀ ▀▀▀▀ ▀▀▀▀ ▀▀▀▀ ▀▀▀▀ ▀▀▀▀ ▀▀▀▀ ",[[0,31],[4,16],[8,2],[4,1],[0,1],[5,19],[0,30]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ┃ ",[[0,13],[9,1],[2,74],[0,12]]], +[" ┃ ",[[0,13],[9,1],[2,2],[10,84]]], +[" ┃ ",[[0,13],[9,1],[2,74],[0,12]]], +[" ┃ ",[[0,13],[9,1],[2,74],[0,12]]], +[" ╹▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀ ",[[0,13],[9,1],[11,74],[0,12]]], +[" /tmp/opencode/packages/tui:main shift+tab agents ctrl+p commands ",[[0,13],[4,31],[0,21],[4,6],[0,9],[4,8],[0,12]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" test ",[[0,94],[4,4],[0,2]]], +[" ",[[0,100]]] +]} diff --git a/packages/cli-rs/parity/fixtures/E.1/events/home.json b/packages/cli-rs/parity/fixtures/E.1/events/home.json new file mode 100644 index 000000000000..fde2210b2f02 --- /dev/null +++ b/packages/cli-rs/parity/fixtures/E.1/events/home.json @@ -0,0 +1,32 @@ +{"width":100,"height":30,"styles":["#ffffffff #080808ff 0","#808080ff #080808ff 0","#ffffffff #080808ff 1","#808080ff #262626ff 0","#ffffffff #464646ff 1","#262626ff #080808ff 0","#484848ff #080808ff 0","#ffffffff #202020ff 0","#00000000 #00000000 0","#202020ff #080808ff 0"],"lines":[ +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ▄ ",[[0,31],[1,19],[0,1],[2,19],[0,30]]], +[" █▀▀█ █▀▀█ █▀▀█ █▀▀▄ █▀▀▀ █▀▀█ █▀▀█ █▀▀█ ",[[0,31],[1,19],[0,1],[2,19],[0,30]]], +[" █ █ █ █ █▀▀▀ █ █ █ █ █ █ █ █▀▀▀ ",[[0,31],[1,1],[3,2],[1,3],[3,2],[1,3],[3,3],[1,2],[3,2],[1,1],[0,1],[2,1],[4,3],[2,2],[4,2],[2,3],[4,2],[2,3],[4,3],[0,30]]], +[" ▀▀▀▀ █▀▀▀ ▀▀▀▀ ▀▀▀▀ ▀▀▀▀ ▀▀▀▀ ▀▀▀▀ ▀▀▀▀ ",[[0,31],[1,16],[5,2],[1,1],[0,1],[2,19],[0,30]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ┃ ",[[0,13],[6,1],[7,74],[0,12]]], +[" ┃ ",[[0,13],[6,1],[7,2],[8,84]]], +[" ┃ ",[[0,13],[6,1],[7,74],[0,12]]], +[" ┃ ",[[0,13],[6,1],[7,74],[0,12]]], +[" ╹▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀ ",[[0,13],[6,1],[9,74],[0,12]]], +[" /tmp/opencode/packages/tui:main shift+tab agents ctrl+p commands ",[[0,13],[1,31],[0,21],[1,6],[0,9],[1,8],[0,12]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" test ",[[0,94],[1,4],[0,2]]], +[" ",[[0,100]]] +]} diff --git a/packages/cli-rs/parity/fixtures/E.1/events/selected.json b/packages/cli-rs/parity/fixtures/E.1/events/selected.json new file mode 100644 index 000000000000..362f0cf6f7cf --- /dev/null +++ b/packages/cli-rs/parity/fixtures/E.1/events/selected.json @@ -0,0 +1,32 @@ +{"width":100,"height":30,"styles":["#ffffffff #080808ff 0","#7699feff #141414ff 0","#ffffffff #141414ff 0","#9ee77aff #141414ff 0","#ffffffff #202020ff 0","#808080ff #202020ff 0","#eeeeeeff #080808ff 0","#7699feff #080808ff 0","#808080ff #080808ff 0","#484848ff #080808ff 0","#202020ff #080808ff 0"],"lines":[ +[" ",[[0,100]]], +[" ┃ ┃ ┃ ",[[0,2],[1,1],[2,67],[3,1],[4,26],[3,1],[0,2]]], +[" ┃ Why? ┃ Deployed to staging x ┃ ",[[0,2],[1,1],[2,67],[3,1],[4,23],[5,1],[4,2],[3,1],[0,2]]], +[" ┃ ┃ ┃ ",[[0,2],[1,1],[2,67],[3,1],[4,26],[3,1],[0,2]]], +[" ",[[0,100]]], +[" The parser drops the last token. ",[[0,5],[6,32],[0,63]]], +[" ",[[0,100]]], +[" Build · provider/model · 2ms ",[[0,5],[7,5],[8,23],[0,67]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ┃ ",[[0,2],[9,1],[4,95],[0,2]]], +[" ┃ ",[[0,2],[9,1],[4,95],[0,2]]], +[" ┃ ",[[0,2],[9,1],[4,95],[0,2]]], +[" ┃ ",[[0,2],[9,1],[4,95],[0,2]]], +[" ╹▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀ ",[[0,2],[9,1],[10,95],[0,2]]], +[" /tmp/opencode/packages/tui:main shift+tab agents ctrl+p commands ",[[0,2],[8,31],[0,42],[8,6],[0,9],[8,8],[0,2]]], +[" ",[[0,100]]] +]} diff --git a/packages/cli-rs/parity/fixtures/E.1/events/toast.json b/packages/cli-rs/parity/fixtures/E.1/events/toast.json new file mode 100644 index 000000000000..a52df21f3015 --- /dev/null +++ b/packages/cli-rs/parity/fixtures/E.1/events/toast.json @@ -0,0 +1,32 @@ +{"width":100,"height":30,"styles":["#ffffffff #080808ff 0","#9ee77aff #080808ff 0","#ffffffff #202020ff 0","#808080ff #202020ff 0","#808080ff #080808ff 0","#ffffffff #080808ff 1","#808080ff #262626ff 0","#ffffffff #464646ff 1","#262626ff #080808ff 0","#484848ff #080808ff 0","#00000000 #00000000 0","#202020ff #080808ff 0"],"lines":[ +[" ",[[0,100]]], +[" ┃ ┃ ",[[0,70],[1,1],[2,26],[1,1],[0,2]]], +[" ┃ Deployed to staging x ┃ ",[[0,70],[1,1],[2,23],[3,1],[2,2],[1,1],[0,2]]], +[" ┃ ┃ ",[[0,70],[1,1],[2,26],[1,1],[0,2]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ▄ ",[[0,31],[4,19],[0,1],[5,19],[0,30]]], +[" █▀▀█ █▀▀█ █▀▀█ █▀▀▄ █▀▀▀ █▀▀█ █▀▀█ █▀▀█ ",[[0,31],[4,19],[0,1],[5,19],[0,30]]], +[" █ █ █ █ █▀▀▀ █ █ █ █ █ █ █ █▀▀▀ ",[[0,31],[4,1],[6,2],[4,3],[6,2],[4,3],[6,3],[4,2],[6,2],[4,1],[0,1],[5,1],[7,3],[5,2],[7,2],[5,3],[7,2],[5,3],[7,3],[0,30]]], +[" ▀▀▀▀ █▀▀▀ ▀▀▀▀ ▀▀▀▀ ▀▀▀▀ ▀▀▀▀ ▀▀▀▀ ▀▀▀▀ ",[[0,31],[4,16],[8,2],[4,1],[0,1],[5,19],[0,30]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ┃ ",[[0,13],[9,1],[2,74],[0,12]]], +[" ┃ ",[[0,13],[9,1],[2,2],[10,84]]], +[" ┃ ",[[0,13],[9,1],[2,74],[0,12]]], +[" ┃ ",[[0,13],[9,1],[2,74],[0,12]]], +[" ╹▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀ ",[[0,13],[9,1],[11,74],[0,12]]], +[" /tmp/opencode/packages/tui:main shift+tab agents ctrl+p commands ",[[0,13],[4,31],[0,21],[4,6],[0,9],[4,8],[0,12]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" test ",[[0,94],[4,4],[0,2]]], +[" ",[[0,100]]] +]} diff --git a/packages/cli-rs/parity/fixtures/E.1/home-narrow.app.json b/packages/cli-rs/parity/fixtures/E.1/home-narrow.app.json new file mode 100644 index 000000000000..861f7dc13f6b --- /dev/null +++ b/packages/cli-rs/parity/fixtures/E.1/home-narrow.app.json @@ -0,0 +1,41 @@ +{ + "scenario": "E.1/home-narrow", + "width": 40, + "height": 24, + "directory": "/tmp/opencode/packages/tui", + "config": { + "animations": false, + "experimental": {"new-designs":true}, + "theme": {"name":"opencode"} + }, + "args": {}, + "routes": [], + "steps": [ + {"checkpoint":"narrow","until":"Ask","masks":[{"x":2,"y":16,"width":38,"height":1,"reason":"the placeholder example: random in TS and Rust"}],"fixture":"E.1/home-narrow/narrow"} + ], + "requests": { + "writes": [], + "reads": [ + {"method":"GET","path":"/api/agent","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":[]}}, + {"method":"GET","path":"/api/command","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":[]}}, + {"method":"GET","path":"/api/config","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":[]}, + {"method":"GET","path":"/api/experimental/migration/v1","query":{},"status":200,"json":{"status":"completed"}}, + {"method":"GET","path":"/api/form","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode"}},"data":[]}}, + {"method":"GET","path":"/api/fs/list","query":{"location[directory]":["<cwd>"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":[]}}, + {"method":"GET","path":"/api/info","query":{},"status":200,"json":{"version":"test","pid":0,"urls":[],"paths":{"tmp":"/tmp"},"capabilities":{"persistentPty":true}}}, + {"method":"GET","path":"/api/integration","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":[]}}, + {"method":"GET","path":"/api/location","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}}}, + {"method":"GET","path":"/api/mcp","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":[]}}, + {"method":"GET","path":"/api/mcp/resource","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":{"resources":[],"templates":[]}}}, + {"method":"GET","path":"/api/model","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":[]}}, + {"method":"GET","path":"/api/plugin","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":[]}}, + {"method":"GET","path":"/api/project","query":{},"status":200,"json":[]}, + {"method":"GET","path":"/api/provider","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":[]}}, + {"method":"GET","path":"/api/reference","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode/packages/tui","canonical":"/tmp/opencode/packages/tui"}},"data":[]}}, + {"method":"GET","path":"/api/session/active","query":{},"status":200,"json":{"data":{}}}, + {"method":"GET","path":"/api/shell","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":[]}}, + {"method":"GET","path":"/api/skill","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":[]}}, + {"method":"GET","path":"/api/vcs","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":{"branch":{"current":"main","default":"main"}}}} + ] + } +} diff --git a/packages/cli-rs/parity/fixtures/E.1/home-narrow/narrow.json b/packages/cli-rs/parity/fixtures/E.1/home-narrow/narrow.json new file mode 100644 index 000000000000..2411a492204f --- /dev/null +++ b/packages/cli-rs/parity/fixtures/E.1/home-narrow/narrow.json @@ -0,0 +1,26 @@ +{"width":40,"height":24,"styles":["#ffffffff #080808ff 0","#808080ff #080808ff 0","#808080ff #262626ff 0","#262626ff #080808ff 0","#ffffffff #080808ff 1","#ffffffff #464646ff 1","#484848ff #080808ff 0","#ffffffff #202020ff 0","#00000000 #00000000 0","#202020ff #080808ff 0"],"lines":[ +[" ",[[0,40]]], +[" ",[[0,40]]], +[" ",[[0,40]]], +[" ",[[0,40]]], +[" ",[[0,40]]], +[" ",[[0,40]]], +[" █▀▀█ █▀▀█ █▀▀█ █▀▀▄ ",[[0,11],[1,19],[0,10]]], +[" █ █ █ █ █▀▀▀ █ █ ",[[0,11],[1,1],[2,2],[1,3],[2,2],[1,3],[2,3],[1,2],[2,2],[1,1],[0,10]]], +[" ▀▀▀▀ █▀▀▀ ▀▀▀▀ ▀▀▀▀ ",[[0,11],[1,16],[3,2],[1,1],[0,10]]], +[" ▄ ",[[0,11],[4,19],[0,10]]], +[" █▀▀▀ █▀▀█ █▀▀█ █▀▀█ ",[[0,11],[4,19],[0,10]]], +[" █ █ █ █ █ █▀▀▀ ",[[0,11],[4,1],[5,3],[4,2],[5,2],[4,3],[5,2],[4,3],[5,3],[0,10]]], +[" ▀▀▀▀ ▀▀▀▀ ▀▀▀▀ ▀▀▀▀ ",[[0,11],[4,19],[0,10]]], +[" ",[[0,40]]], +[" ",[[0,40]]], +[" ┃ ",[[0,1],[6,1],[7,37],[0,1]]], +[" ┃ ",[[0,1],[6,1],[8,38]]], +[" ┃ ",[[0,1],[6,1],[7,37],[0,1]]], +[" ┃ ",[[0,1],[6,1],[7,37],[0,1]]], +[" ╹▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀ ",[[0,1],[6,1],[9,37],[0,1]]], +[" /tmp/opencode/packages/tui:main ",[[0,1],[1,31],[0,8]]], +[" ",[[0,40]]], +[" ",[[0,40]]], +[" ",[[0,40]]] +]} diff --git a/packages/cli-rs/parity/fixtures/E.1/home.app.json b/packages/cli-rs/parity/fixtures/E.1/home.app.json new file mode 100644 index 000000000000..d10cb48d8cbe --- /dev/null +++ b/packages/cli-rs/parity/fixtures/E.1/home.app.json @@ -0,0 +1,41 @@ +{ + "scenario": "E.1/home", + "width": 100, + "height": 30, + "directory": "/tmp/opencode/packages/tui", + "config": { + "animations": false, + "experimental": {"new-designs":true}, + "theme": {"name":"opencode"} + }, + "args": {}, + "routes": [], + "steps": [ + {"checkpoint":"wide","until":"Ask anything","masks":[{"x":16,"y":16,"width":84,"height":1,"reason":"the placeholder example: random in TS and Rust"}],"fixture":"E.1/home/wide"} + ], + "requests": { + "writes": [], + "reads": [ + {"method":"GET","path":"/api/agent","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":[]}}, + {"method":"GET","path":"/api/command","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":[]}}, + {"method":"GET","path":"/api/config","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":[]}, + {"method":"GET","path":"/api/experimental/migration/v1","query":{},"status":200,"json":{"status":"completed"}}, + {"method":"GET","path":"/api/form","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode"}},"data":[]}}, + {"method":"GET","path":"/api/fs/list","query":{"location[directory]":["<cwd>"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":[]}}, + {"method":"GET","path":"/api/info","query":{},"status":200,"json":{"version":"test","pid":0,"urls":[],"paths":{"tmp":"/tmp"},"capabilities":{"persistentPty":true}}}, + {"method":"GET","path":"/api/integration","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":[]}}, + {"method":"GET","path":"/api/location","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}}}, + {"method":"GET","path":"/api/mcp","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":[]}}, + {"method":"GET","path":"/api/mcp/resource","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":{"resources":[],"templates":[]}}}, + {"method":"GET","path":"/api/model","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":[]}}, + {"method":"GET","path":"/api/plugin","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":[]}}, + {"method":"GET","path":"/api/project","query":{},"status":200,"json":[]}, + {"method":"GET","path":"/api/provider","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":[]}}, + {"method":"GET","path":"/api/reference","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode/packages/tui","canonical":"/tmp/opencode/packages/tui"}},"data":[]}}, + {"method":"GET","path":"/api/session/active","query":{},"status":200,"json":{"data":{}}}, + {"method":"GET","path":"/api/shell","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":[]}}, + {"method":"GET","path":"/api/skill","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":[]}}, + {"method":"GET","path":"/api/vcs","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":{"branch":{"current":"main","default":"main"}}}} + ] + } +} diff --git a/packages/cli-rs/parity/fixtures/E.1/home/wide.json b/packages/cli-rs/parity/fixtures/E.1/home/wide.json new file mode 100644 index 000000000000..fde2210b2f02 --- /dev/null +++ b/packages/cli-rs/parity/fixtures/E.1/home/wide.json @@ -0,0 +1,32 @@ +{"width":100,"height":30,"styles":["#ffffffff #080808ff 0","#808080ff #080808ff 0","#ffffffff #080808ff 1","#808080ff #262626ff 0","#ffffffff #464646ff 1","#262626ff #080808ff 0","#484848ff #080808ff 0","#ffffffff #202020ff 0","#00000000 #00000000 0","#202020ff #080808ff 0"],"lines":[ +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ▄ ",[[0,31],[1,19],[0,1],[2,19],[0,30]]], +[" █▀▀█ █▀▀█ █▀▀█ █▀▀▄ █▀▀▀ █▀▀█ █▀▀█ █▀▀█ ",[[0,31],[1,19],[0,1],[2,19],[0,30]]], +[" █ █ █ █ █▀▀▀ █ █ █ █ █ █ █ █▀▀▀ ",[[0,31],[1,1],[3,2],[1,3],[3,2],[1,3],[3,3],[1,2],[3,2],[1,1],[0,1],[2,1],[4,3],[2,2],[4,2],[2,3],[4,2],[2,3],[4,3],[0,30]]], +[" ▀▀▀▀ █▀▀▀ ▀▀▀▀ ▀▀▀▀ ▀▀▀▀ ▀▀▀▀ ▀▀▀▀ ▀▀▀▀ ",[[0,31],[1,16],[5,2],[1,1],[0,1],[2,19],[0,30]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ┃ ",[[0,13],[6,1],[7,74],[0,12]]], +[" ┃ ",[[0,13],[6,1],[7,2],[8,84]]], +[" ┃ ",[[0,13],[6,1],[7,74],[0,12]]], +[" ┃ ",[[0,13],[6,1],[7,74],[0,12]]], +[" ╹▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀ ",[[0,13],[6,1],[9,74],[0,12]]], +[" /tmp/opencode/packages/tui:main shift+tab agents ctrl+p commands ",[[0,13],[1,31],[0,21],[1,6],[0,9],[1,8],[0,12]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" test ",[[0,94],[1,4],[0,2]]], +[" ",[[0,100]]] +]} diff --git a/packages/cli-rs/parity/fixtures/E.1/mcp-toast.app.json b/packages/cli-rs/parity/fixtures/E.1/mcp-toast.app.json new file mode 100644 index 000000000000..a261e02eca27 --- /dev/null +++ b/packages/cli-rs/parity/fixtures/E.1/mcp-toast.app.json @@ -0,0 +1,43 @@ +{ + "scenario": "E.1/mcp-toast", + "width": 100, + "height": 30, + "directory": "/tmp/opencode/packages/tui", + "config": { + "animations": false, + "experimental": {"new-designs":true}, + "theme": {"name":"opencode"} + }, + "args": {}, + "routes": [ + {"path":"/api/mcp","json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":[{"name":"github","status":{"status":"failed","error":"spawn ENOENT"}}]}} + ], + "steps": [ + {"checkpoint":"failed","until":"MCP server failed: github","masks":[{"x":16,"y":16,"width":84,"height":1,"reason":"the placeholder example: random in TS and Rust"}],"fixture":"E.1/mcp-toast/failed"} + ], + "requests": { + "writes": [], + "reads": [ + {"method":"GET","path":"/api/agent","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":[]}}, + {"method":"GET","path":"/api/command","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":[]}}, + {"method":"GET","path":"/api/config","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":[]}, + {"method":"GET","path":"/api/experimental/migration/v1","query":{},"status":200,"json":{"status":"completed"}}, + {"method":"GET","path":"/api/form","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode"}},"data":[]}}, + {"method":"GET","path":"/api/fs/list","query":{"location[directory]":["<cwd>"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":[]}}, + {"method":"GET","path":"/api/info","query":{},"status":200,"json":{"version":"test","pid":0,"urls":[],"paths":{"tmp":"/tmp"},"capabilities":{"persistentPty":true}}}, + {"method":"GET","path":"/api/integration","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":[]}}, + {"method":"GET","path":"/api/location","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}}}, + {"method":"GET","path":"/api/mcp","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":[{"name":"github","status":{"status":"failed","error":"spawn ENOENT"}}]}}, + {"method":"GET","path":"/api/mcp/resource","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":{"resources":[],"templates":[]}}}, + {"method":"GET","path":"/api/model","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":[]}}, + {"method":"GET","path":"/api/plugin","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":[]}}, + {"method":"GET","path":"/api/project","query":{},"status":200,"json":[]}, + {"method":"GET","path":"/api/provider","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":[]}}, + {"method":"GET","path":"/api/reference","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode/packages/tui","canonical":"/tmp/opencode/packages/tui"}},"data":[]}}, + {"method":"GET","path":"/api/session/active","query":{},"status":200,"json":{"data":{}}}, + {"method":"GET","path":"/api/shell","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":[]}}, + {"method":"GET","path":"/api/skill","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":[]}}, + {"method":"GET","path":"/api/vcs","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":{"branch":{"current":"main","default":"main"}}}} + ] + } +} diff --git a/packages/cli-rs/parity/fixtures/E.1/mcp-toast/failed.json b/packages/cli-rs/parity/fixtures/E.1/mcp-toast/failed.json new file mode 100644 index 000000000000..54a0048b018b --- /dev/null +++ b/packages/cli-rs/parity/fixtures/E.1/mcp-toast/failed.json @@ -0,0 +1,32 @@ +{"width":100,"height":30,"styles":["#ffffffff #080808ff 0","#ef6c6cff #080808ff 0","#ffffffff #202020ff 0","#ffffffff #202020ff 1","#808080ff #202020ff 0","#808080ff #080808ff 0","#ffffffff #080808ff 1","#808080ff #262626ff 0","#ffffffff #464646ff 1","#262626ff #080808ff 0","#484848ff #080808ff 0","#00000000 #00000000 0","#202020ff #080808ff 0"],"lines":[ +[" ",[[0,100]]], +[" ┃ ┃ ",[[0,47],[1,1],[2,49],[1,1],[0,2]]], +[" ┃ MCP server failed: github › Open MCP servers ┃ ",[[0,47],[1,1],[2,2],[3,25],[2,2],[4,18],[2,2],[1,1],[0,2]]], +[" ┃ ┃ ",[[0,47],[1,1],[2,49],[1,1],[0,2]]], +[" ┃ Run /mcps to view details. ┃ ",[[0,47],[1,1],[2,49],[1,1],[0,2]]], +[" ┃ ┃ ",[[0,47],[1,1],[2,49],[1,1],[0,2]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ▄ ",[[0,31],[5,19],[0,1],[6,19],[0,30]]], +[" █▀▀█ █▀▀█ █▀▀█ █▀▀▄ █▀▀▀ █▀▀█ █▀▀█ █▀▀█ ",[[0,31],[5,19],[0,1],[6,19],[0,30]]], +[" █ █ █ █ █▀▀▀ █ █ █ █ █ █ █ █▀▀▀ ",[[0,31],[5,1],[7,2],[5,3],[7,2],[5,3],[7,3],[5,2],[7,2],[5,1],[0,1],[6,1],[8,3],[6,2],[8,2],[6,3],[8,2],[6,3],[8,3],[0,30]]], +[" ▀▀▀▀ █▀▀▀ ▀▀▀▀ ▀▀▀▀ ▀▀▀▀ ▀▀▀▀ ▀▀▀▀ ▀▀▀▀ ",[[0,31],[5,16],[9,2],[5,1],[0,1],[6,19],[0,30]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ┃ ",[[0,13],[10,1],[2,74],[0,12]]], +[" ┃ ",[[0,13],[10,1],[2,2],[11,84]]], +[" ┃ ",[[0,13],[10,1],[2,74],[0,12]]], +[" ┃ ",[[0,13],[10,1],[2,74],[0,12]]], +[" ╹▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀ ",[[0,13],[10,1],[12,74],[0,12]]], +[" /tmp/opencode/packages/tui:main shift+tab agents ctrl+p commands ",[[0,13],[5,31],[0,21],[5,6],[0,9],[5,8],[0,12]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ⊙ 1 MCP failed /mcps test ",[[0,2],[1,2],[0,13],[5,5],[0,72],[5,4],[0,2]]], +[" ",[[0,100]]] +]} diff --git a/packages/cli-rs/parity/fixtures/E.1/model-invalid.app.json b/packages/cli-rs/parity/fixtures/E.1/model-invalid.app.json new file mode 100644 index 000000000000..c46f2f88c0de --- /dev/null +++ b/packages/cli-rs/parity/fixtures/E.1/model-invalid.app.json @@ -0,0 +1,43 @@ +{ + "scenario": "E.1/model-invalid", + "width": 100, + "height": 30, + "directory": "/tmp/opencode/packages/tui", + "config": { + "animations": false, + "experimental": {"new-designs":true}, + "theme": {"name":"opencode"} + }, + "args": { + "model": "gpt-5" + }, + "routes": [], + "steps": [ + {"checkpoint":"toast","until":"Invalid model format: gpt-5","masks":[{"x":16,"y":16,"width":84,"height":1,"reason":"the placeholder example: random in TS and Rust"}],"fixture":"E.1/model-invalid/toast"} + ], + "requests": { + "writes": [], + "reads": [ + {"method":"GET","path":"/api/agent","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":[]}}, + {"method":"GET","path":"/api/command","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":[]}}, + {"method":"GET","path":"/api/config","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":[]}, + {"method":"GET","path":"/api/experimental/migration/v1","query":{},"status":200,"json":{"status":"completed"}}, + {"method":"GET","path":"/api/form","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode"}},"data":[]}}, + {"method":"GET","path":"/api/fs/list","query":{"location[directory]":["<cwd>"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":[]}}, + {"method":"GET","path":"/api/info","query":{},"status":200,"json":{"version":"test","pid":0,"urls":[],"paths":{"tmp":"/tmp"},"capabilities":{"persistentPty":true}}}, + {"method":"GET","path":"/api/integration","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":[]}}, + {"method":"GET","path":"/api/location","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}}}, + {"method":"GET","path":"/api/mcp","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":[]}}, + {"method":"GET","path":"/api/mcp/resource","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":{"resources":[],"templates":[]}}}, + {"method":"GET","path":"/api/model","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":[]}}, + {"method":"GET","path":"/api/plugin","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":[]}}, + {"method":"GET","path":"/api/project","query":{},"status":200,"json":[]}, + {"method":"GET","path":"/api/provider","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":[]}}, + {"method":"GET","path":"/api/reference","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode/packages/tui","canonical":"/tmp/opencode/packages/tui"}},"data":[]}}, + {"method":"GET","path":"/api/session/active","query":{},"status":200,"json":{"data":{}}}, + {"method":"GET","path":"/api/shell","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":[]}}, + {"method":"GET","path":"/api/skill","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":[]}}, + {"method":"GET","path":"/api/vcs","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":{"branch":{"current":"main","default":"main"}}}} + ] + } +} diff --git a/packages/cli-rs/parity/fixtures/E.1/model-invalid/toast.json b/packages/cli-rs/parity/fixtures/E.1/model-invalid/toast.json new file mode 100644 index 000000000000..831df0aec73c --- /dev/null +++ b/packages/cli-rs/parity/fixtures/E.1/model-invalid/toast.json @@ -0,0 +1,32 @@ +{"width":100,"height":30,"styles":["#ffffffff #080808ff 0","#f5a742ff #080808ff 0","#ffffffff #202020ff 0","#808080ff #202020ff 0","#808080ff #080808ff 0","#ffffffff #080808ff 1","#808080ff #262626ff 0","#ffffffff #464646ff 1","#262626ff #080808ff 0","#484848ff #080808ff 0","#00000000 #00000000 0","#202020ff #080808ff 0"],"lines":[ +[" ",[[0,100]]], +[" ┃ ┃ ",[[0,62],[1,1],[2,34],[1,1],[0,2]]], +[" ┃ Invalid model format: gpt-5 x ┃ ",[[0,62],[1,1],[2,31],[3,1],[2,2],[1,1],[0,2]]], +[" ┃ ┃ ",[[0,62],[1,1],[2,34],[1,1],[0,2]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ▄ ",[[0,31],[4,19],[0,1],[5,19],[0,30]]], +[" █▀▀█ █▀▀█ █▀▀█ █▀▀▄ █▀▀▀ █▀▀█ █▀▀█ █▀▀█ ",[[0,31],[4,19],[0,1],[5,19],[0,30]]], +[" █ █ █ █ █▀▀▀ █ █ █ █ █ █ █ █▀▀▀ ",[[0,31],[4,1],[6,2],[4,3],[6,2],[4,3],[6,3],[4,2],[6,2],[4,1],[0,1],[5,1],[7,3],[5,2],[7,2],[5,3],[7,2],[5,3],[7,3],[0,30]]], +[" ▀▀▀▀ █▀▀▀ ▀▀▀▀ ▀▀▀▀ ▀▀▀▀ ▀▀▀▀ ▀▀▀▀ ▀▀▀▀ ",[[0,31],[4,16],[8,2],[4,1],[0,1],[5,19],[0,30]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ┃ ",[[0,13],[9,1],[2,74],[0,12]]], +[" ┃ ",[[0,13],[9,1],[2,2],[10,84]]], +[" ┃ ",[[0,13],[9,1],[2,74],[0,12]]], +[" ┃ ",[[0,13],[9,1],[2,74],[0,12]]], +[" ╹▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀ ",[[0,13],[9,1],[11,74],[0,12]]], +[" /tmp/opencode/packages/tui:main shift+tab agents ctrl+p commands ",[[0,13],[4,31],[0,21],[4,6],[0,9],[4,8],[0,12]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" test ",[[0,94],[4,4],[0,2]]], +[" ",[[0,100]]] +]} diff --git a/packages/cli-rs/parity/fixtures/E.1/route-missing.app.json b/packages/cli-rs/parity/fixtures/E.1/route-missing.app.json new file mode 100644 index 000000000000..67bd1dcddd6f --- /dev/null +++ b/packages/cli-rs/parity/fixtures/E.1/route-missing.app.json @@ -0,0 +1,38 @@ +{ + "scenario": "E.1/route-missing", + "width": 100, + "height": 30, + "directory": "/tmp/opencode/packages/tui", + "config": { + "animations": false, + "experimental": {"new-designs":true}, + "theme": {"name":"opencode"} + }, + "args": {}, + "env": { + "OPENCODE_ROUTE": "{\"type\":\"plugin\",\"id\":\"acme.tools\",\"name\":\"board\"}" + }, + "routes": [ + {"path":"/api/model","json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":[]}}, + {"path":"/api/provider","json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":[]}}, + {"path":"/api/agent","json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":[]}}, + {"path":"/api/integration","json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":[]}}, + {"path":"/api/config","json":[]} + ], + "steps": [ + {"checkpoint":"missing","until":"go home","fixture":"E.1/route-missing/missing"} + ], + "requests": { + "writes": [], + "reads": [ + {"method":"GET","path":"/api/experimental/migration/v1","query":{},"status":200,"json":{"status":"completed"}}, + {"method":"GET","path":"/api/fs/list","query":{"location[directory]":["<cwd>"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":[]}}, + {"method":"GET","path":"/api/info","query":{},"status":200,"json":{"version":"test","pid":0,"urls":[],"paths":{"tmp":"/tmp"},"capabilities":{"persistentPty":true}}}, + {"method":"GET","path":"/api/location","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}}}, + {"method":"GET","path":"/api/plugin","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":[]}}, + {"method":"GET","path":"/api/project","query":{},"status":200,"json":[]}, + {"method":"GET","path":"/api/session/active","query":{},"status":200,"json":{"data":{}}}, + {"method":"GET","path":"/api/vcs","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":{"branch":{"current":"main","default":"main"}}}} + ] + } +} diff --git a/packages/cli-rs/parity/fixtures/E.1/route-missing/missing.json b/packages/cli-rs/parity/fixtures/E.1/route-missing/missing.json new file mode 100644 index 000000000000..a524f0d569a3 --- /dev/null +++ b/packages/cli-rs/parity/fixtures/E.1/route-missing/missing.json @@ -0,0 +1,32 @@ +{"width":100,"height":30,"styles":["#ffffffff #080808ff 0","#f5a742ff #080808ff 0","#ffffffff #141414ff 0"],"lines":[ +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" Unknown plugin route: acme.tools/board ",[[0,31],[1,38],[0,31]]], +[" ",[[0,100]]], +[" go home ",[[0,46],[2,9],[0,45]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,100]]] +]} diff --git a/packages/cli-rs/parity/fixtures/E.1/startup.app.json b/packages/cli-rs/parity/fixtures/E.1/startup.app.json new file mode 100644 index 000000000000..321f6893afec --- /dev/null +++ b/packages/cli-rs/parity/fixtures/E.1/startup.app.json @@ -0,0 +1,60 @@ +{ + "scenario": "E.1/startup", + "width": 100, + "height": 30, + "directory": "/tmp/opencode/packages/tui", + "config": { + "animations": false, + "experimental": {"new-designs":true}, + "theme": {"name":"opencode"} + }, + "args": { + "sessionID": "ses_b", + "fork": true + }, + "routes": [ + {"method":"POST","path":"/api/session/ses_b/fork","json":{"data":{"id":"ses_f","title":"Fix the parser (fork)","projectID":"proj_test","cost":0,"tokens":{"input":0,"output":0,"reasoning":0,"cache":{"read":0,"write":0}},"time":{"created":3,"updated":3},"location":{"directory":"/tmp/opencode/packages/tui"}}}}, + {"path":"/api/session/ses_f","json":{"data":{"id":"ses_f","title":"Fix the parser (fork)","projectID":"proj_test","cost":0,"tokens":{"input":0,"output":0,"reasoning":0,"cache":{"read":0,"write":0}},"time":{"created":3,"updated":3},"location":{"directory":"/tmp/opencode/packages/tui"}}}}, + {"path":"/api/session/ses_f/message","json":{"data":[{"id":"msg_2","type":"assistant","agent":"build","model":{"providerID":"provider","id":"model"},"content":[{"type":"text","text":"The parser drops the last token."}],"finish":"stop","time":{"created":2,"completed":3}},{"id":"msg_1","type":"user","text":"Why?","time":{"created":1}}],"cursor":{}}}, + {"path":"/api/session/ses_f/inbox","json":{"data":[]}} + ], + "steps": [ + {"checkpoint":"forked","until":"The parser drops the last token.","fixture":"E.1/startup/forked"} + ], + "requests": { + "writes": [ + {"method":"POST","path":"/api/session/ses_b/fork","query":{},"body":{},"status":200,"json":{"data":{"id":"ses_f","title":"Fix the parser (fork)","projectID":"proj_test","cost":0,"tokens":{"input":0,"output":0,"reasoning":0,"cache":{"read":0,"write":0}},"time":{"created":3,"updated":3},"location":{"directory":"/tmp/opencode/packages/tui"}}}} + ], + "reads": [ + {"method":"GET","path":"/api/agent","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":[]}}, + {"method":"GET","path":"/api/command","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":[]}}, + {"method":"GET","path":"/api/config","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":[]}, + {"method":"GET","path":"/api/experimental/job","query":{"descendants":["true"],"sessionID":["ses_f"],"status":["running"]},"status":200,"json":{"data":[]}}, + {"method":"GET","path":"/api/experimental/migration/v1","query":{},"status":200,"json":{"status":"completed"}}, + {"method":"GET","path":"/api/experimental/session/ses_f/terminal","query":{},"status":200,"json":{"data":[]}}, + {"method":"GET","path":"/api/form","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode"}},"data":[]}}, + {"method":"GET","path":"/api/fs/list","query":{"location[directory]":["<cwd>"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":[]}}, + {"method":"GET","path":"/api/info","query":{},"status":200,"json":{"version":"test","pid":0,"urls":[],"paths":{"tmp":"/tmp"},"capabilities":{"persistentPty":true}}}, + {"method":"GET","path":"/api/integration","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":[]}}, + {"method":"GET","path":"/api/location","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}}}, + {"method":"GET","path":"/api/mcp","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":[]}}, + {"method":"GET","path":"/api/mcp/resource","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":{"resources":[],"templates":[]}}}, + {"method":"GET","path":"/api/model","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":[]}}, + {"method":"GET","path":"/api/plugin","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":[]}}, + {"method":"GET","path":"/api/project","query":{},"status":200,"json":[]}, + {"method":"GET","path":"/api/provider","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":[]}}, + {"method":"GET","path":"/api/reference","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode/packages/tui","canonical":"/tmp/opencode/packages/tui"}},"data":[]}}, + {"method":"GET","path":"/api/session","query":{"limit":["200"],"order":["desc"],"parentID":["ses_f"]},"status":200,"json":{"data":[],"cursor":{}}}, + {"method":"GET","path":"/api/session/active","query":{},"status":200,"json":{"data":{}}}, + {"method":"GET","path":"/api/session/ses_f","query":{},"status":200,"json":{"data":{"id":"ses_f","title":"Fix the parser (fork)","projectID":"proj_test","cost":0,"tokens":{"input":0,"output":0,"reasoning":0,"cache":{"read":0,"write":0}},"time":{"created":3,"updated":3},"location":{"directory":"/tmp/opencode/packages/tui"}}}}, + {"method":"GET","path":"/api/session/ses_f/form","query":{},"status":200,"json":{"data":[]}}, + {"method":"GET","path":"/api/session/ses_f/inbox","query":{},"status":200,"json":{"data":[]}}, + {"method":"GET","path":"/api/session/ses_f/message","query":{"limit":["20"],"order":["desc"]},"status":200,"json":{"data":[{"id":"msg_2","type":"assistant","agent":"build","model":{"providerID":"provider","id":"model"},"content":[{"type":"text","text":"The parser drops the last token."}],"finish":"stop","time":{"created":2,"completed":3}},{"id":"msg_1","type":"user","text":"Why?","time":{"created":1}}],"cursor":{}}}, + {"method":"GET","path":"/api/session/ses_f/permission","query":{},"status":200,"json":{"data":[]}}, + {"method":"GET","path":"/api/shell","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":[]}}, + {"method":"GET","path":"/api/skill","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":[]}}, + {"method":"GET","path":"/api/vcs","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":{"branch":{"current":"main","default":"main"}}}}, + {"method":"POST","path":"/api/rpc/opencode.goal/get","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"body":{"input":{"sessionID":"ses_f"}},"status":200,"json":{"output":null}} + ] + } +} diff --git a/packages/cli-rs/parity/fixtures/E.1/startup/forked.json b/packages/cli-rs/parity/fixtures/E.1/startup/forked.json new file mode 100644 index 000000000000..e5f98c4f8c69 --- /dev/null +++ b/packages/cli-rs/parity/fixtures/E.1/startup/forked.json @@ -0,0 +1,32 @@ +{"width":100,"height":30,"styles":["#ffffffff #202020ff 0","#ffffffff #202020ff 1","#808080ff #080808ff 0","#ffffffff #080808ff 0","#7699feff #141414ff 0","#ffffffff #141414ff 0","#eeeeeeff #080808ff 0","#7699feff #080808ff 0","#484848ff #080808ff 0","#202020ff #080808ff 0"],"lines":[ +[" Fix the parser (fork) + ",[[0,3],[1,21],[0,8],[2,3],[3,65]]], +[" ",[[3,100]]], +[" ┃ ",[[3,2],[4,1],[5,95],[3,2]]], +[" ┃ Why? ",[[3,2],[4,1],[5,95],[3,2]]], +[" ┃ ",[[3,2],[4,1],[5,95],[3,2]]], +[" ",[[3,100]]], +[" The parser drops the last token. ",[[3,5],[6,32],[3,63]]], +[" ",[[3,100]]], +[" Build · provider/model · 2ms ",[[3,5],[7,5],[2,23],[3,67]]], +[" ",[[3,100]]], +[" ",[[3,100]]], +[" ",[[3,100]]], +[" ",[[3,100]]], +[" ",[[3,100]]], +[" ",[[3,100]]], +[" ",[[3,100]]], +[" ",[[3,100]]], +[" ",[[3,100]]], +[" ",[[3,100]]], +[" ",[[3,100]]], +[" ",[[3,100]]], +[" ",[[3,100]]], +[" ",[[3,100]]], +[" ┃ ",[[3,2],[8,1],[0,95],[3,2]]], +[" ┃ ",[[3,2],[8,1],[0,95],[3,2]]], +[" ┃ ",[[3,2],[8,1],[0,95],[3,2]]], +[" ┃ ",[[3,2],[8,1],[0,95],[3,2]]], +[" ╹▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀ ",[[3,2],[8,1],[9,95],[3,2]]], +[" /tmp/opencode/packages/tui:main shift+tab agents ctrl+p commands ",[[3,2],[2,31],[3,42],[2,6],[3,9],[2,8],[3,2]]], +[" ",[[3,100]]] +]} diff --git a/packages/cli-rs/parity/fixtures/E.10a/export-json.json b/packages/cli-rs/parity/fixtures/E.10a/export-json.json new file mode 100644 index 000000000000..afddf237a10c --- /dev/null +++ b/packages/cli-rs/parity/fixtures/E.10a/export-json.json @@ -0,0 +1,32 @@ +{"width":100,"height":30,"styles":["#ffffffff #030303ff 0","#ffffffff #141414ff 0","#808080ff #141414ff 0","#7699feff #141414ff 0","#ffffffff #23344bff 0","#808080ff #141414ff 1","#ffffffff #202020ff 0","#808080ff #202020ff 0"],"lines":[ +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,20],[1,60],[0,20]]], +[" Export session esc ",[[0,20],[1,53],[2,3],[1,4],[0,20]]], +[" ",[[0,20],[1,60],[0,20]]], +[" ┃ Format ‹ json › ",[[0,20],[3,1],[4,59],[0,20]]], +[" Location project ",[[0,20],[3,1],[1,46],[2,11],[1,2],[0,20]]], +[" ",[[0,20],[1,60],[0,20]]], +[" Options ",[[0,20],[1,4],[5,7],[1,49],[0,20]]], +[" Sanitize off ",[[0,20],[3,1],[1,50],[2,7],[1,2],[0,20]]], +[" ",[[0,20],[1,60],[0,20]]], +[" ",[[0,20],[6,60],[0,20]]], +[" copy c save to file enter ",[[0,20],[6,33],[7,2],[6,15],[7,6],[6,4],[0,20]]], +[" ",[[0,20],[6,60],[0,20]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,100]]] +]} diff --git a/packages/cli-rs/parity/fixtures/E.10a/export-location.app.json b/packages/cli-rs/parity/fixtures/E.10a/export-location.app.json new file mode 100644 index 000000000000..406aa25cb3bf --- /dev/null +++ b/packages/cli-rs/parity/fixtures/E.10a/export-location.app.json @@ -0,0 +1,66 @@ +{ + "scenario": "E.10a/export-location", + "width": 100, + "height": 30, + "directory": "/tmp/opencode/packages/tui", + "config": { + "experimental": {"new-designs":true}, + "animations": false, + "theme": {"name":"opencode"} + }, + "args": { + "sessionID": "ses_x" + }, + "routes": [ + {"path":"/api/session/ses_x","json":{"data":{"id":"ses_x","title":"Fix the parser","projectID":"proj_test","cost":0,"tokens":{"input":0,"output":0,"reasoning":0,"cache":{"read":0,"write":0}},"time":{"created":2,"updated":2},"location":{"directory":"/tmp/opencode/packages/tui"}}}}, + {"path":"/api/session/ses_x/message","json":{"data":[{"id":"msg_2","type":"assistant","agent":"build","model":{"providerID":"provider","id":"model"},"content":[{"type":"text","text":"Fixed it."}],"finish":"stop","time":{"created":2000,"completed":2001}},{"id":"msg_1","type":"user","text":"Read the parser","time":{"created":1000}}],"cursor":{}}}, + {"path":"/api/session/ses_x/inbox","json":{"data":[]}} + ], + "steps": [ + {"checkpoint":"session","until":"Fixed it.","fixture":"E.10a/export-location/session"}, + {"keys":["ctrl+x","x"]}, + {"checkpoint":"options","until":"Export session","fixture":"E.10a/export-location/options"}, + {"keys":["down"]}, + {"checkpoint":"location","until":"‹ project ›","fixture":"E.10a/export-location/location"}, + {"keys":["space"]}, + {"checkpoint":"temp","until":"‹ temp ›","fixture":"E.10a/export-location/temp"}, + {"keys":["up","right"]}, + {"checkpoint":"json","until":"Sanitize","fixture":"E.10a/export-location/json"}, + {"keys":["escape"]}, + {"checkpoint":"closed","fixture":"E.10a/export-location/closed"} + ], + "requests": { + "writes": [], + "reads": [ + {"method":"GET","path":"/api/agent","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":[]}}, + {"method":"GET","path":"/api/command","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":[]}}, + {"method":"GET","path":"/api/config","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":[]}, + {"method":"GET","path":"/api/experimental/job","query":{"descendants":["true"],"sessionID":["ses_x"],"status":["running"]},"status":200,"json":{"data":[]}}, + {"method":"GET","path":"/api/experimental/migration/v1","query":{},"status":200,"json":{"status":"completed"}}, + {"method":"GET","path":"/api/experimental/session/ses_x/terminal","query":{},"status":200,"json":{"data":[]}}, + {"method":"GET","path":"/api/form","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode"}},"data":[]}}, + {"method":"GET","path":"/api/fs/list","query":{"location[directory]":["<cwd>"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":[]}}, + {"method":"GET","path":"/api/info","query":{},"status":200,"json":{"version":"test","pid":0,"urls":[],"paths":{"tmp":"/tmp"},"capabilities":{"persistentPty":true}}}, + {"method":"GET","path":"/api/integration","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":[]}}, + {"method":"GET","path":"/api/location","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}}}, + {"method":"GET","path":"/api/mcp","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":[]}}, + {"method":"GET","path":"/api/mcp/resource","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":{"resources":[],"templates":[]}}}, + {"method":"GET","path":"/api/model","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":[]}}, + {"method":"GET","path":"/api/plugin","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":[]}}, + {"method":"GET","path":"/api/project","query":{},"status":200,"json":[]}, + {"method":"GET","path":"/api/provider","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":[]}}, + {"method":"GET","path":"/api/reference","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode/packages/tui","canonical":"/tmp/opencode/packages/tui"}},"data":[]}}, + {"method":"GET","path":"/api/session","query":{"limit":["200"],"order":["desc"],"parentID":["ses_x"]},"status":200,"json":{"data":[],"cursor":{}}}, + {"method":"GET","path":"/api/session/active","query":{},"status":200,"json":{"data":{}}}, + {"method":"GET","path":"/api/session/ses_x","query":{},"status":200,"json":{"data":{"id":"ses_x","title":"Fix the parser","projectID":"proj_test","cost":0,"tokens":{"input":0,"output":0,"reasoning":0,"cache":{"read":0,"write":0}},"time":{"created":2,"updated":2},"location":{"directory":"/tmp/opencode/packages/tui"}}}}, + {"method":"GET","path":"/api/session/ses_x/form","query":{},"status":200,"json":{"data":[]}}, + {"method":"GET","path":"/api/session/ses_x/inbox","query":{},"status":200,"json":{"data":[]}}, + {"method":"GET","path":"/api/session/ses_x/message","query":{"limit":["20"],"order":["desc"]},"status":200,"json":{"data":[{"id":"msg_2","type":"assistant","agent":"build","model":{"providerID":"provider","id":"model"},"content":[{"type":"text","text":"Fixed it."}],"finish":"stop","time":{"created":2000,"completed":2001}},{"id":"msg_1","type":"user","text":"Read the parser","time":{"created":1000}}],"cursor":{}}}, + {"method":"GET","path":"/api/session/ses_x/permission","query":{},"status":200,"json":{"data":[]}}, + {"method":"GET","path":"/api/shell","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":[]}}, + {"method":"GET","path":"/api/skill","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":[]}}, + {"method":"GET","path":"/api/vcs","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":{"branch":{"current":"main","default":"main"}}}}, + {"method":"POST","path":"/api/rpc/opencode.goal/get","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"body":{"input":{"sessionID":"ses_x"}},"status":200,"json":{"output":null}} + ] + } +} diff --git a/packages/cli-rs/parity/fixtures/E.10a/export-location/closed.json b/packages/cli-rs/parity/fixtures/E.10a/export-location/closed.json new file mode 100644 index 000000000000..ef3fd66548fa --- /dev/null +++ b/packages/cli-rs/parity/fixtures/E.10a/export-location/closed.json @@ -0,0 +1,32 @@ +{"width":100,"height":30,"styles":["#ffffffff #202020ff 0","#ffffffff #202020ff 1","#808080ff #080808ff 0","#ffffffff #080808ff 0","#7699feff #141414ff 0","#ffffffff #141414ff 0","#eeeeeeff #080808ff 0","#7699feff #080808ff 0","#484848ff #080808ff 0","#202020ff #080808ff 0"],"lines":[ +[" Fix the parser + ",[[0,3],[1,14],[0,15],[2,3],[3,65]]], +[" ",[[3,100]]], +[" ┃ ",[[3,2],[4,1],[5,95],[3,2]]], +[" ┃ Read the parser ",[[3,2],[4,1],[5,95],[3,2]]], +[" ┃ ",[[3,2],[4,1],[5,95],[3,2]]], +[" ",[[3,100]]], +[" Fixed it. ",[[3,5],[6,9],[3,86]]], +[" ",[[3,100]]], +[" Build · provider/model · 1.0s ",[[3,5],[7,5],[2,24],[3,66]]], +[" ",[[3,100]]], +[" ",[[3,100]]], +[" ",[[3,100]]], +[" ",[[3,100]]], +[" ",[[3,100]]], +[" ",[[3,100]]], +[" ",[[3,100]]], +[" ",[[3,100]]], +[" ",[[3,100]]], +[" ",[[3,100]]], +[" ",[[3,100]]], +[" ",[[3,100]]], +[" ",[[3,100]]], +[" ",[[3,100]]], +[" ┃ ",[[3,2],[8,1],[0,95],[3,2]]], +[" ┃ ",[[3,2],[8,1],[0,95],[3,2]]], +[" ┃ ",[[3,2],[8,1],[0,95],[3,2]]], +[" ┃ ",[[3,2],[8,1],[0,95],[3,2]]], +[" ╹▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀ ",[[3,2],[8,1],[9,95],[3,2]]], +[" /tmp/opencode/packages/tui:main shift+tab agents ctrl+p commands ",[[3,2],[2,31],[3,42],[2,6],[3,9],[2,8],[3,2]]], +[" ",[[3,100]]] +]} diff --git a/packages/cli-rs/parity/fixtures/E.10a/export-location/json.json b/packages/cli-rs/parity/fixtures/E.10a/export-location/json.json new file mode 100644 index 000000000000..b60a261a36bc --- /dev/null +++ b/packages/cli-rs/parity/fixtures/E.10a/export-location/json.json @@ -0,0 +1,32 @@ +{"width":100,"height":30,"styles":["#ffffffff #0d0d0dff 0","#696969ff #0d0d0dff 1","#ffffffff #030303ff 0","#353535ff #030303ff 0","#313f69ff #080808ff 0","#ffffffff #080808ff 0","#696969ff #080808ff 0","#626262ff #030303ff 0","#313f69ff #030303ff 0","#ffffffff #141414ff 0","#808080ff #141414ff 0","#7699feff #141414ff 0","#ffffffff #23344bff 0","#808080ff #141414ff 1","#ffffffff #202020ff 0","#808080ff #202020ff 0","#1e1e1eff #030303ff 0","#0d0d0dff #030303ff 0","#696969ff #030303ff 0"],"lines":[ +[" Fix the parser + ",[[0,3],[1,3],[0,1],[1,3],[0,1],[1,6],[0,15],[2,1],[3,1],[2,66]]], +[" ",[[2,100]]], +[" ┃ ",[[2,2],[4,1],[5,95],[2,2]]], +[" ┃ Read the parser ",[[2,2],[4,1],[5,2],[6,4],[5,1],[6,3],[5,1],[6,6],[5,78],[2,2]]], +[" ┃ ",[[2,2],[4,1],[5,95],[2,2]]], +[" ",[[2,100]]], +[" Fixed it. ",[[2,5],[7,5],[2,1],[7,3],[2,86]]], +[" ",[[2,100]]], +[" Build · provide ",[[2,5],[8,5],[2,1],[3,1],[2,1],[3,7],[9,60],[2,20]]], +[" Export session esc ",[[2,20],[9,53],[10,3],[9,4],[2,20]]], +[" ",[[2,20],[9,60],[2,20]]], +[" ┃ Format ‹ json › ",[[2,20],[11,1],[12,59],[2,20]]], +[" Location temp ",[[2,20],[11,1],[9,49],[10,8],[9,2],[2,20]]], +[" ",[[2,20],[9,60],[2,20]]], +[" Options ",[[2,20],[9,4],[13,7],[9,49],[2,20]]], +[" Sanitize off ",[[2,20],[11,1],[9,50],[10,7],[9,2],[2,20]]], +[" ",[[2,20],[9,60],[2,20]]], +[" ",[[2,20],[14,60],[2,20]]], +[" copy c save to file enter ",[[2,20],[14,33],[15,2],[14,15],[15,6],[14,4],[2,20]]], +[" ",[[2,20],[14,60],[2,20]]], +[" ",[[2,100]]], +[" ",[[2,100]]], +[" ",[[2,100]]], +[" ┃ ",[[2,2],[16,1],[0,95],[2,2]]], +[" ┃ ",[[2,2],[16,1],[0,95],[2,2]]], +[" ┃ ",[[2,2],[16,1],[0,95],[2,2]]], +[" ┃ ",[[2,2],[16,1],[0,95],[2,2]]], +[" ╹▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀ ",[[2,2],[16,1],[17,95],[2,2]]], +[" /tmp/opencode/packages/tui:main shift+tab agents ctrl+p commands ",[[2,2],[3,31],[2,32],[18,9],[2,1],[3,6],[2,2],[18,6],[2,1],[3,8],[2,2]]], +[" ",[[2,100]]] +]} diff --git a/packages/cli-rs/parity/fixtures/E.10a/export-location/location.json b/packages/cli-rs/parity/fixtures/E.10a/export-location/location.json new file mode 100644 index 000000000000..1de9484172f3 --- /dev/null +++ b/packages/cli-rs/parity/fixtures/E.10a/export-location/location.json @@ -0,0 +1,32 @@ +{"width":100,"height":30,"styles":["#ffffffff #0d0d0dff 0","#696969ff #0d0d0dff 1","#ffffffff #030303ff 0","#353535ff #030303ff 0","#313f69ff #080808ff 0","#ffffffff #080808ff 0","#696969ff #080808ff 0","#626262ff #030303ff 0","#313f69ff #030303ff 0","#ffffffff #141414ff 0","#808080ff #141414ff 0","#7699feff #141414ff 0","#ffffffff #23344bff 0","#808080ff #141414ff 1","#ffffffff #202020ff 0","#808080ff #202020ff 0","#1e1e1eff #030303ff 0","#0d0d0dff #030303ff 0","#696969ff #030303ff 0"],"lines":[ +[" Fix the parser + ",[[0,3],[1,3],[0,1],[1,3],[0,1],[1,6],[0,15],[2,1],[3,1],[2,66]]], +[" ",[[2,100]]], +[" ┃ ",[[2,2],[4,1],[5,95],[2,2]]], +[" ┃ Read the parser ",[[2,2],[4,1],[5,2],[6,4],[5,1],[6,3],[5,1],[6,6],[5,78],[2,2]]], +[" ┃ ",[[2,2],[4,1],[5,95],[2,2]]], +[" ",[[2,100]]], +[" Fixed it. ",[[2,5],[7,5],[2,1],[7,3],[2,86]]], +[" ",[[2,100]]], +[" Build · provide ",[[2,5],[8,5],[2,1],[3,1],[2,1],[3,7],[9,60],[2,20]]], +[" Export session esc ",[[2,20],[9,53],[10,3],[9,4],[2,20]]], +[" ",[[2,20],[9,60],[2,20]]], +[" Format markdown ",[[2,20],[11,1],[9,45],[10,12],[9,2],[2,20]]], +[" ┃ Location ‹ project › ",[[2,20],[11,1],[12,59],[2,20]]], +[" ",[[2,20],[9,60],[2,20]]], +[" Options ",[[2,20],[9,4],[13,7],[9,49],[2,20]]], +[" Thinking include ",[[2,20],[11,1],[9,46],[10,11],[9,2],[2,20]]], +[" Tools include ",[[2,20],[11,1],[9,46],[10,11],[9,2],[2,20]]], +[" ",[[2,20],[9,60],[2,20]]], +[" ",[[2,20],[14,60],[2,20]]], +[" copy c save to file enter ",[[2,20],[14,33],[15,2],[14,15],[15,6],[14,4],[2,20]]], +[" ",[[2,20],[14,60],[2,20]]], +[" ",[[2,100]]], +[" ",[[2,100]]], +[" ┃ ",[[2,2],[16,1],[0,95],[2,2]]], +[" ┃ ",[[2,2],[16,1],[0,95],[2,2]]], +[" ┃ ",[[2,2],[16,1],[0,95],[2,2]]], +[" ┃ ",[[2,2],[16,1],[0,95],[2,2]]], +[" ╹▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀ ",[[2,2],[16,1],[17,95],[2,2]]], +[" /tmp/opencode/packages/tui:main shift+tab agents ctrl+p commands ",[[2,2],[3,31],[2,32],[18,9],[2,1],[3,6],[2,2],[18,6],[2,1],[3,8],[2,2]]], +[" ",[[2,100]]] +]} diff --git a/packages/cli-rs/parity/fixtures/E.10a/export-location/options.json b/packages/cli-rs/parity/fixtures/E.10a/export-location/options.json new file mode 100644 index 000000000000..7685c4b362f8 --- /dev/null +++ b/packages/cli-rs/parity/fixtures/E.10a/export-location/options.json @@ -0,0 +1,32 @@ +{"width":100,"height":30,"styles":["#ffffffff #0d0d0dff 0","#696969ff #0d0d0dff 1","#ffffffff #030303ff 0","#353535ff #030303ff 0","#313f69ff #080808ff 0","#ffffffff #080808ff 0","#696969ff #080808ff 0","#626262ff #030303ff 0","#313f69ff #030303ff 0","#ffffffff #141414ff 0","#808080ff #141414ff 0","#7699feff #141414ff 0","#ffffffff #23344bff 0","#808080ff #141414ff 1","#ffffffff #202020ff 0","#808080ff #202020ff 0","#1e1e1eff #030303ff 0","#0d0d0dff #030303ff 0","#696969ff #030303ff 0"],"lines":[ +[" Fix the parser + ",[[0,3],[1,3],[0,1],[1,3],[0,1],[1,6],[0,15],[2,1],[3,1],[2,66]]], +[" ",[[2,100]]], +[" ┃ ",[[2,2],[4,1],[5,95],[2,2]]], +[" ┃ Read the parser ",[[2,2],[4,1],[5,2],[6,4],[5,1],[6,3],[5,1],[6,6],[5,78],[2,2]]], +[" ┃ ",[[2,2],[4,1],[5,95],[2,2]]], +[" ",[[2,100]]], +[" Fixed it. ",[[2,5],[7,5],[2,1],[7,3],[2,86]]], +[" ",[[2,100]]], +[" Build · provide ",[[2,5],[8,5],[2,1],[3,1],[2,1],[3,7],[9,60],[2,20]]], +[" Export session esc ",[[2,20],[9,53],[10,3],[9,4],[2,20]]], +[" ",[[2,20],[9,60],[2,20]]], +[" ┃ Format ‹ markdown › ",[[2,20],[11,1],[12,59],[2,20]]], +[" Location project ",[[2,20],[11,1],[9,46],[10,11],[9,2],[2,20]]], +[" ",[[2,20],[9,60],[2,20]]], +[" Options ",[[2,20],[9,4],[13,7],[9,49],[2,20]]], +[" Thinking include ",[[2,20],[11,1],[9,46],[10,11],[9,2],[2,20]]], +[" Tools include ",[[2,20],[11,1],[9,46],[10,11],[9,2],[2,20]]], +[" ",[[2,20],[9,60],[2,20]]], +[" ",[[2,20],[14,60],[2,20]]], +[" copy c save to file enter ",[[2,20],[14,33],[15,2],[14,15],[15,6],[14,4],[2,20]]], +[" ",[[2,20],[14,60],[2,20]]], +[" ",[[2,100]]], +[" ",[[2,100]]], +[" ┃ ",[[2,2],[16,1],[0,95],[2,2]]], +[" ┃ ",[[2,2],[16,1],[0,95],[2,2]]], +[" ┃ ",[[2,2],[16,1],[0,95],[2,2]]], +[" ┃ ",[[2,2],[16,1],[0,95],[2,2]]], +[" ╹▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀ ",[[2,2],[16,1],[17,95],[2,2]]], +[" /tmp/opencode/packages/tui:main shift+tab agents ctrl+p commands ",[[2,2],[3,31],[2,32],[18,9],[2,1],[3,6],[2,2],[18,6],[2,1],[3,8],[2,2]]], +[" ",[[2,100]]] +]} diff --git a/packages/cli-rs/parity/fixtures/E.10a/export-location/session.json b/packages/cli-rs/parity/fixtures/E.10a/export-location/session.json new file mode 100644 index 000000000000..ef3fd66548fa --- /dev/null +++ b/packages/cli-rs/parity/fixtures/E.10a/export-location/session.json @@ -0,0 +1,32 @@ +{"width":100,"height":30,"styles":["#ffffffff #202020ff 0","#ffffffff #202020ff 1","#808080ff #080808ff 0","#ffffffff #080808ff 0","#7699feff #141414ff 0","#ffffffff #141414ff 0","#eeeeeeff #080808ff 0","#7699feff #080808ff 0","#484848ff #080808ff 0","#202020ff #080808ff 0"],"lines":[ +[" Fix the parser + ",[[0,3],[1,14],[0,15],[2,3],[3,65]]], +[" ",[[3,100]]], +[" ┃ ",[[3,2],[4,1],[5,95],[3,2]]], +[" ┃ Read the parser ",[[3,2],[4,1],[5,95],[3,2]]], +[" ┃ ",[[3,2],[4,1],[5,95],[3,2]]], +[" ",[[3,100]]], +[" Fixed it. ",[[3,5],[6,9],[3,86]]], +[" ",[[3,100]]], +[" Build · provider/model · 1.0s ",[[3,5],[7,5],[2,24],[3,66]]], +[" ",[[3,100]]], +[" ",[[3,100]]], +[" ",[[3,100]]], +[" ",[[3,100]]], +[" ",[[3,100]]], +[" ",[[3,100]]], +[" ",[[3,100]]], +[" ",[[3,100]]], +[" ",[[3,100]]], +[" ",[[3,100]]], +[" ",[[3,100]]], +[" ",[[3,100]]], +[" ",[[3,100]]], +[" ",[[3,100]]], +[" ┃ ",[[3,2],[8,1],[0,95],[3,2]]], +[" ┃ ",[[3,2],[8,1],[0,95],[3,2]]], +[" ┃ ",[[3,2],[8,1],[0,95],[3,2]]], +[" ┃ ",[[3,2],[8,1],[0,95],[3,2]]], +[" ╹▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀ ",[[3,2],[8,1],[9,95],[3,2]]], +[" /tmp/opencode/packages/tui:main shift+tab agents ctrl+p commands ",[[3,2],[2,31],[3,42],[2,6],[3,9],[2,8],[3,2]]], +[" ",[[3,100]]] +]} diff --git a/packages/cli-rs/parity/fixtures/E.10a/export-location/temp.json b/packages/cli-rs/parity/fixtures/E.10a/export-location/temp.json new file mode 100644 index 000000000000..328a85457469 --- /dev/null +++ b/packages/cli-rs/parity/fixtures/E.10a/export-location/temp.json @@ -0,0 +1,32 @@ +{"width":100,"height":30,"styles":["#ffffffff #0d0d0dff 0","#696969ff #0d0d0dff 1","#ffffffff #030303ff 0","#353535ff #030303ff 0","#313f69ff #080808ff 0","#ffffffff #080808ff 0","#696969ff #080808ff 0","#626262ff #030303ff 0","#313f69ff #030303ff 0","#ffffffff #141414ff 0","#808080ff #141414ff 0","#7699feff #141414ff 0","#ffffffff #23344bff 0","#808080ff #141414ff 1","#ffffffff #202020ff 0","#808080ff #202020ff 0","#1e1e1eff #030303ff 0","#0d0d0dff #030303ff 0","#696969ff #030303ff 0"],"lines":[ +[" Fix the parser + ",[[0,3],[1,3],[0,1],[1,3],[0,1],[1,6],[0,15],[2,1],[3,1],[2,66]]], +[" ",[[2,100]]], +[" ┃ ",[[2,2],[4,1],[5,95],[2,2]]], +[" ┃ Read the parser ",[[2,2],[4,1],[5,2],[6,4],[5,1],[6,3],[5,1],[6,6],[5,78],[2,2]]], +[" ┃ ",[[2,2],[4,1],[5,95],[2,2]]], +[" ",[[2,100]]], +[" Fixed it. ",[[2,5],[7,5],[2,1],[7,3],[2,86]]], +[" ",[[2,100]]], +[" Build · provide ",[[2,5],[8,5],[2,1],[3,1],[2,1],[3,7],[9,60],[2,20]]], +[" Export session esc ",[[2,20],[9,53],[10,3],[9,4],[2,20]]], +[" ",[[2,20],[9,60],[2,20]]], +[" Format markdown ",[[2,20],[11,1],[9,45],[10,12],[9,2],[2,20]]], +[" ┃ Location ‹ temp › ",[[2,20],[11,1],[12,59],[2,20]]], +[" ",[[2,20],[9,60],[2,20]]], +[" Options ",[[2,20],[9,4],[13,7],[9,49],[2,20]]], +[" Thinking include ",[[2,20],[11,1],[9,46],[10,11],[9,2],[2,20]]], +[" Tools include ",[[2,20],[11,1],[9,46],[10,11],[9,2],[2,20]]], +[" ",[[2,20],[9,60],[2,20]]], +[" ",[[2,20],[14,60],[2,20]]], +[" copy c save to file enter ",[[2,20],[14,33],[15,2],[14,15],[15,6],[14,4],[2,20]]], +[" ",[[2,20],[14,60],[2,20]]], +[" ",[[2,100]]], +[" ",[[2,100]]], +[" ┃ ",[[2,2],[16,1],[0,95],[2,2]]], +[" ┃ ",[[2,2],[16,1],[0,95],[2,2]]], +[" ┃ ",[[2,2],[16,1],[0,95],[2,2]]], +[" ┃ ",[[2,2],[16,1],[0,95],[2,2]]], +[" ╹▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀ ",[[2,2],[16,1],[17,95],[2,2]]], +[" /tmp/opencode/packages/tui:main shift+tab agents ctrl+p commands ",[[2,2],[3,31],[2,32],[18,9],[2,1],[3,6],[2,2],[18,6],[2,1],[3,8],[2,2]]], +[" ",[[2,100]]] +]} diff --git a/packages/cli-rs/parity/fixtures/E.10a/export-result.json b/packages/cli-rs/parity/fixtures/E.10a/export-result.json new file mode 100644 index 000000000000..681d1a462d5c --- /dev/null +++ b/packages/cli-rs/parity/fixtures/E.10a/export-result.json @@ -0,0 +1,32 @@ +{"width":100,"height":30,"styles":["#ffffffff #030303ff 0","#ffffffff #141414ff 0","#808080ff #141414ff 0","#808080ff #141414ff 8","#ffffffff #202020ff 0","#808080ff #202020ff 0"],"lines":[ +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,20],[1,60],[0,20]]], +[" Session exported esc ",[[0,20],[1,54],[2,3],[1,3],[0,20]]], +[" ",[[0,20],[1,60],[0,20]]], +[" Saved to /tmp/session-0b6c1f62-3d4e-4b7a-9f1e- ",[[0,20],[1,12],[3,37],[1,11],[0,20]]], +[" 2a5c8d7e6f40.md ",[[0,20],[1,3],[3,15],[1,42],[0,20]]], +[" ",[[0,20],[1,60],[0,20]]], +[" ",[[0,20],[4,60],[0,20]]], +[" copy path c ",[[0,20],[4,55],[5,2],[4,3],[0,20]]], +[" ",[[0,20],[4,60],[0,20]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,100]]] +]} diff --git a/packages/cli-rs/parity/fixtures/E.10a/export.json b/packages/cli-rs/parity/fixtures/E.10a/export.json new file mode 100644 index 000000000000..3ef2271f128a --- /dev/null +++ b/packages/cli-rs/parity/fixtures/E.10a/export.json @@ -0,0 +1,32 @@ +{"width":100,"height":30,"styles":["#ffffffff #030303ff 0","#ffffffff #141414ff 0","#808080ff #141414ff 0","#7699feff #141414ff 0","#ffffffff #23344bff 0","#808080ff #141414ff 1","#ffffffff #202020ff 0","#808080ff #202020ff 0"],"lines":[ +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,20],[1,60],[0,20]]], +[" Export session esc ",[[0,20],[1,53],[2,3],[1,4],[0,20]]], +[" ",[[0,20],[1,60],[0,20]]], +[" ┃ Format ‹ markdown › ",[[0,20],[3,1],[4,59],[0,20]]], +[" Location project ",[[0,20],[3,1],[1,46],[2,11],[1,2],[0,20]]], +[" ",[[0,20],[1,60],[0,20]]], +[" Options ",[[0,20],[1,4],[5,7],[1,49],[0,20]]], +[" Thinking include ",[[0,20],[3,1],[1,46],[2,11],[1,2],[0,20]]], +[" Tools include ",[[0,20],[3,1],[1,46],[2,11],[1,2],[0,20]]], +[" ",[[0,20],[1,60],[0,20]]], +[" ",[[0,20],[6,60],[0,20]]], +[" copy c save to file enter ",[[0,20],[6,33],[7,2],[6,15],[7,6],[6,4],[0,20]]], +[" ",[[0,20],[6,60],[0,20]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,100]]] +]} diff --git a/packages/cli-rs/parity/fixtures/E.10a/fork.json b/packages/cli-rs/parity/fixtures/E.10a/fork.json new file mode 100644 index 000000000000..2836b8f415ba --- /dev/null +++ b/packages/cli-rs/parity/fixtures/E.10a/fork.json @@ -0,0 +1,32 @@ +{"width":100,"height":30,"styles":["#ffffffff #030303ff 0","#ffffffff #141414ff 0","#808080ff #141414ff 0","#7699feff #141414ff 0","#ffffffff #23344bff 0","#7699feff #23344bff 0"],"lines":[ +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,6],[1,88],[0,6]]], +[" Fork session esc ",[[0,6],[1,81],[2,3],[1,4],[0,6]]], +[" ",[[0,6],[1,88],[0,6]]], +[" Search ",[[0,6],[1,4],[2,6],[1,78],[0,6]]], +[" ",[[0,6],[1,88],[0,6]]], +[" ┃ ▪ Full session ",[[0,6],[3,1],[4,1],[5,1],[4,85],[0,6]]], +[" Fix the bug in parse 12:01 PM ",[[0,6],[3,1],[1,75],[2,8],[1,4],[0,6]]], +[" Read the parser 12:00 PM ",[[0,6],[3,1],[1,75],[2,8],[1,4],[0,6]]], +[" ",[[0,6],[1,88],[0,6]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,100]]] +]} diff --git a/packages/cli-rs/parity/fixtures/E.10a/rename.json b/packages/cli-rs/parity/fixtures/E.10a/rename.json new file mode 100644 index 000000000000..6161eb32f1b8 --- /dev/null +++ b/packages/cli-rs/parity/fixtures/E.10a/rename.json @@ -0,0 +1,32 @@ +{"width":100,"height":30,"styles":["#ffffffff #030303ff 0","#ffffffff #141414ff 0","#808080ff #141414ff 0","#ffffffff #23344bff 0"],"lines":[ +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,20],[1,60],[0,20]]], +[" Rename session esc ",[[0,20],[1,54],[2,3],[1,3],[0,20]]], +[" ",[[0,20],[1,60],[0,20]]], +[" Fix the parser ",[[0,20],[1,60],[0,20]]], +[" ",[[0,20],[1,60],[0,20]]], +[" Submit ",[[0,20],[1,49],[3,8],[1,3],[0,20]]], +[" ",[[0,20],[1,60],[0,20]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,100]]] +]} diff --git a/packages/cli-rs/parity/fixtures/E.10a/timeline.json b/packages/cli-rs/parity/fixtures/E.10a/timeline.json new file mode 100644 index 000000000000..fdcb0d503ed6 --- /dev/null +++ b/packages/cli-rs/parity/fixtures/E.10a/timeline.json @@ -0,0 +1,32 @@ +{"width":100,"height":30,"styles":["#ffffffff #030303ff 0","#ffffffff #141414ff 0","#808080ff #141414ff 0","#7699feff #141414ff 0","#ffffffff #23344bff 0","#93a2b7ff #23344bff 0"],"lines":[ +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,6],[1,88],[0,6]]], +[" Search timeline esc ",[[0,6],[1,4],[2,15],[1,62],[2,3],[1,4],[0,6]]], +[" ",[[0,6],[1,88],[0,6]]], +[" ┃ Fix the bug in parse 12:01 PM ",[[0,6],[3,1],[4,75],[5,8],[4,4],[0,6]]], +[" Read the parser 12:00 PM ",[[0,6],[3,1],[1,75],[2,8],[1,4],[0,6]]], +[" ",[[0,6],[1,88],[0,6]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,100]]] +]} diff --git a/packages/cli-rs/parity/fixtures/E.11a/open-worktrees.json b/packages/cli-rs/parity/fixtures/E.11a/open-worktrees.json new file mode 100644 index 000000000000..249cc5553b06 --- /dev/null +++ b/packages/cli-rs/parity/fixtures/E.11a/open-worktrees.json @@ -0,0 +1,36 @@ +{"width":100,"height":34,"styles":["#ffffffff #030303ff 0","#ffffffff #141414ff 0","#808080ff #141414ff 0","#7699feff #141414ff 0","#ffffffff #23344bff 0","#7699feff #23344bff 0","#93a2b7ff #23344bff 0","#ffffffff #202020ff 0","#808080ff #202020ff 0"],"lines":[ +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,6],[1,88],[0,6]]], +[" App / Worktrees esc ",[[0,6],[1,81],[2,3],[1,4],[0,6]]], +[" ",[[0,6],[1,88],[0,6]]], +[" Search worktrees… ",[[0,6],[1,4],[2,17],[1,67],[0,6]]], +[" ",[[0,6],[1,88],[0,6]]], +[" ┃ ● App /tmp/opencode/app ",[[0,6],[3,1],[4,1],[5,1],[4,16],[6,65],[4,4],[0,6]]], +[" app-feature /tmp/opencode/app-feature ",[[0,6],[3,1],[1,18],[2,65],[1,4],[0,6]]], +[" ",[[0,6],[1,88],[0,6]]], +[" ",[[0,6],[7,88],[0,6]]], +[" new worktree ctrl+n ",[[0,6],[7,16],[8,7],[7,65],[0,6]]], +[" ",[[0,6],[7,88],[0,6]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,100]]] +]} diff --git a/packages/cli-rs/parity/fixtures/E.11a/open.json b/packages/cli-rs/parity/fixtures/E.11a/open.json new file mode 100644 index 000000000000..6624cfb7cd90 --- /dev/null +++ b/packages/cli-rs/parity/fixtures/E.11a/open.json @@ -0,0 +1,36 @@ +{"width":100,"height":34,"styles":["#ffffffff #030303ff 0","#ffffffff #141414ff 0","#808080ff #141414ff 0","#808080ff #141414ff 1","#7699feff #141414ff 0","#ffffffff #23344bff 0","#93a2b7ff #23344bff 0"],"lines":[ +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,6],[1,88],[0,6]]], +[" Open esc ",[[0,6],[1,81],[2,3],[1,4],[0,6]]], +[" ",[[0,6],[1,88],[0,6]]], +[" Search sessions and projects… ",[[0,6],[1,4],[2,29],[1,55],[0,6]]], +[" ",[[0,6],[1,88],[0,6]]], +[" Sessions ",[[0,6],[1,4],[3,8],[1,76],[0,6]]], +[" ┃ Review the plan App · 5m ",[[0,6],[4,1],[5,75],[6,8],[5,4],[0,6]]], +[" Fix the parser App · 3h ",[[0,6],[4,1],[1,75],[2,8],[1,4],[0,6]]], +[" Explore the worktree App · app-feature · 2d ",[[0,6],[4,1],[1,61],[2,22],[1,4],[0,6]]], +[" Other project other · 1mo ",[[0,6],[4,1],[1,72],[2,11],[1,4],[0,6]]], +[" ",[[0,6],[1,88],[0,6]]], +[" Projects ",[[0,6],[1,4],[3,8],[1,76],[0,6]]], +[" ● App /tmp/opencode/app → ",[[0,6],[4,1],[1,1],[4,1],[1,62],[2,19],[1,4],[0,6]]], +[" other /tmp/other ",[[0,6],[4,1],[1,73],[2,10],[1,4],[0,6]]], +[" ",[[0,6],[1,88],[0,6]]], +[" ",[[0,6],[1,88],[0,6]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,100]]] +]} diff --git a/packages/cli-rs/parity/fixtures/E.11a/session-list-current.app.json b/packages/cli-rs/parity/fixtures/E.11a/session-list-current.app.json new file mode 100644 index 000000000000..f7d38ca8be86 --- /dev/null +++ b/packages/cli-rs/parity/fixtures/E.11a/session-list-current.app.json @@ -0,0 +1,63 @@ +{ + "scenario": "E.11a/session-list-current", + "width": 100, + "height": 30, + "directory": "/tmp/opencode/packages/tui", + "config": { + "animations": false, + "experimental": {"new-designs":true}, + "theme": {"name":"opencode"} + }, + "args": {}, + "routes": [ + {"path":"/api/session","json":{"data":[{"id":"ses_b","title":"Fix the parser","projectID":"proj_test","cost":0,"tokens":{"input":0,"output":0,"reasoning":0,"cache":{"read":0,"write":0}},"time":{"created":2,"updated":2},"location":{"directory":"/tmp/opencode/packages/tui"}},{"id":"ses_a","title":"Write docs","projectID":"proj_test","cost":0,"tokens":{"input":0,"output":0,"reasoning":0,"cache":{"read":0,"write":0}},"time":{"created":1,"updated":1},"location":{"directory":"/tmp/opencode/packages/tui"}}],"cursor":{}}}, + {"path":"/api/session/ses_a","json":{"data":{"id":"ses_a","title":"Write docs","projectID":"proj_test","cost":0,"tokens":{"input":0,"output":0,"reasoning":0,"cache":{"read":0,"write":0}},"time":{"created":1,"updated":1},"location":{"directory":"/tmp/opencode/packages/tui"}}}}, + {"path":"/api/session/ses_a/message","json":{"data":[{"id":"msg_2","type":"assistant","agent":"build","model":{"providerID":"provider","id":"model"},"content":[{"type":"text","text":"The docs cover the parser."}],"finish":"stop","time":{"created":2,"completed":3}},{"id":"msg_1","type":"user","text":"Write the parser docs","time":{"created":1}}],"cursor":{}}}, + {"path":"/api/session/ses_a/inbox","json":{"data":[]}} + ], + "steps": [ + {"checkpoint":"home","until":"Ask anything","masks":[{"x":16,"y":16,"width":84,"height":1,"reason":"the placeholder example: random in TS and Rust"}],"fixture":"E.11a/session-list-current/home"}, + {"keys":["ctrl+x","l"]}, + {"checkpoint":"list","until":"Write docs","fixture":"E.11a/session-list-current/list"}, + {"keys":["down"]}, + {"keys":["enter"]}, + {"checkpoint":"session","until":"The docs cover the parser.","fixture":"E.11a/session-list-current/session"}, + {"keys":["ctrl+x","l"]}, + {"checkpoint":"reopened","until":"Fix the parser","fixture":"E.11a/session-list-current/reopened"} + ], + "requests": { + "writes": [], + "reads": [ + {"method":"GET","path":"/api/agent","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":[]}}, + {"method":"GET","path":"/api/command","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":[]}}, + {"method":"GET","path":"/api/config","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":[]}, + {"method":"GET","path":"/api/experimental/job","query":{"descendants":["true"],"sessionID":["ses_a"],"status":["running"]},"status":200,"json":{"data":[]}}, + {"method":"GET","path":"/api/experimental/migration/v1","query":{},"status":200,"json":{"status":"completed"}}, + {"method":"GET","path":"/api/experimental/session/ses_a/terminal","query":{},"status":200,"json":{"data":[]}}, + {"method":"GET","path":"/api/form","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode"}},"data":[]}}, + {"method":"GET","path":"/api/fs/list","query":{"location[directory]":["<cwd>"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":[]}}, + {"method":"GET","path":"/api/info","query":{},"status":200,"json":{"version":"test","pid":0,"urls":[],"paths":{"tmp":"/tmp"},"capabilities":{"persistentPty":true}}}, + {"method":"GET","path":"/api/integration","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":[]}}, + {"method":"GET","path":"/api/location","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}}}, + {"method":"GET","path":"/api/mcp","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":[]}}, + {"method":"GET","path":"/api/mcp/resource","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":{"resources":[],"templates":[]}}}, + {"method":"GET","path":"/api/model","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":[]}}, + {"method":"GET","path":"/api/plugin","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":[]}}, + {"method":"GET","path":"/api/project","query":{},"status":200,"json":[]}, + {"method":"GET","path":"/api/provider","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":[]}}, + {"method":"GET","path":"/api/reference","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode/packages/tui","canonical":"/tmp/opencode/packages/tui"}},"data":[]}}, + {"method":"GET","path":"/api/session","query":{"archived":["false"],"limit":["50"],"order":["desc"],"parentID":["null"],"project":["proj_test"],"subpath":["packages/tui"]},"status":200,"json":{"data":[{"id":"ses_b","title":"Fix the parser","projectID":"proj_test","cost":0,"tokens":{"input":0,"output":0,"reasoning":0,"cache":{"read":0,"write":0}},"time":{"created":2,"updated":2},"location":{"directory":"/tmp/opencode/packages/tui"}},{"id":"ses_a","title":"Write docs","projectID":"proj_test","cost":0,"tokens":{"input":0,"output":0,"reasoning":0,"cache":{"read":0,"write":0}},"time":{"created":1,"updated":1},"location":{"directory":"/tmp/opencode/packages/tui"}}],"cursor":{}}}, + {"method":"GET","path":"/api/session","query":{"limit":["200"],"order":["desc"],"parentID":["ses_a"]},"status":200,"json":{"data":[{"id":"ses_b","title":"Fix the parser","projectID":"proj_test","cost":0,"tokens":{"input":0,"output":0,"reasoning":0,"cache":{"read":0,"write":0}},"time":{"created":2,"updated":2},"location":{"directory":"/tmp/opencode/packages/tui"}},{"id":"ses_a","title":"Write docs","projectID":"proj_test","cost":0,"tokens":{"input":0,"output":0,"reasoning":0,"cache":{"read":0,"write":0}},"time":{"created":1,"updated":1},"location":{"directory":"/tmp/opencode/packages/tui"}}],"cursor":{}}}, + {"method":"GET","path":"/api/session/active","query":{},"status":200,"json":{"data":{}}}, + {"method":"GET","path":"/api/session/ses_a","query":{},"status":200,"json":{"data":{"id":"ses_a","title":"Write docs","projectID":"proj_test","cost":0,"tokens":{"input":0,"output":0,"reasoning":0,"cache":{"read":0,"write":0}},"time":{"created":1,"updated":1},"location":{"directory":"/tmp/opencode/packages/tui"}}}}, + {"method":"GET","path":"/api/session/ses_a/form","query":{},"status":200,"json":{"data":[]}}, + {"method":"GET","path":"/api/session/ses_a/inbox","query":{},"status":200,"json":{"data":[]}}, + {"method":"GET","path":"/api/session/ses_a/message","query":{"limit":["20"],"order":["desc"]},"status":200,"json":{"data":[{"id":"msg_2","type":"assistant","agent":"build","model":{"providerID":"provider","id":"model"},"content":[{"type":"text","text":"The docs cover the parser."}],"finish":"stop","time":{"created":2,"completed":3}},{"id":"msg_1","type":"user","text":"Write the parser docs","time":{"created":1}}],"cursor":{}}}, + {"method":"GET","path":"/api/session/ses_a/permission","query":{},"status":200,"json":{"data":[]}}, + {"method":"GET","path":"/api/shell","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":[]}}, + {"method":"GET","path":"/api/skill","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":[]}}, + {"method":"GET","path":"/api/vcs","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":{"branch":{"current":"main","default":"main"}}}}, + {"method":"POST","path":"/api/rpc/opencode.goal/get","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"body":{"input":{"sessionID":"ses_a"}},"status":200,"json":{"output":null}} + ] + } +} diff --git a/packages/cli-rs/parity/fixtures/E.11a/session-list-current/home.json b/packages/cli-rs/parity/fixtures/E.11a/session-list-current/home.json new file mode 100644 index 000000000000..fde2210b2f02 --- /dev/null +++ b/packages/cli-rs/parity/fixtures/E.11a/session-list-current/home.json @@ -0,0 +1,32 @@ +{"width":100,"height":30,"styles":["#ffffffff #080808ff 0","#808080ff #080808ff 0","#ffffffff #080808ff 1","#808080ff #262626ff 0","#ffffffff #464646ff 1","#262626ff #080808ff 0","#484848ff #080808ff 0","#ffffffff #202020ff 0","#00000000 #00000000 0","#202020ff #080808ff 0"],"lines":[ +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ▄ ",[[0,31],[1,19],[0,1],[2,19],[0,30]]], +[" █▀▀█ █▀▀█ █▀▀█ █▀▀▄ █▀▀▀ █▀▀█ █▀▀█ █▀▀█ ",[[0,31],[1,19],[0,1],[2,19],[0,30]]], +[" █ █ █ █ █▀▀▀ █ █ █ █ █ █ █ █▀▀▀ ",[[0,31],[1,1],[3,2],[1,3],[3,2],[1,3],[3,3],[1,2],[3,2],[1,1],[0,1],[2,1],[4,3],[2,2],[4,2],[2,3],[4,2],[2,3],[4,3],[0,30]]], +[" ▀▀▀▀ █▀▀▀ ▀▀▀▀ ▀▀▀▀ ▀▀▀▀ ▀▀▀▀ ▀▀▀▀ ▀▀▀▀ ",[[0,31],[1,16],[5,2],[1,1],[0,1],[2,19],[0,30]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ┃ ",[[0,13],[6,1],[7,74],[0,12]]], +[" ┃ ",[[0,13],[6,1],[7,2],[8,84]]], +[" ┃ ",[[0,13],[6,1],[7,74],[0,12]]], +[" ┃ ",[[0,13],[6,1],[7,74],[0,12]]], +[" ╹▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀ ",[[0,13],[6,1],[9,74],[0,12]]], +[" /tmp/opencode/packages/tui:main shift+tab agents ctrl+p commands ",[[0,13],[1,31],[0,21],[1,6],[0,9],[1,8],[0,12]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" test ",[[0,94],[1,4],[0,2]]], +[" ",[[0,100]]] +]} diff --git a/packages/cli-rs/parity/fixtures/E.11a/session-list-current/list.json b/packages/cli-rs/parity/fixtures/E.11a/session-list-current/list.json new file mode 100644 index 000000000000..2f7cadd7b56b --- /dev/null +++ b/packages/cli-rs/parity/fixtures/E.11a/session-list-current/list.json @@ -0,0 +1,32 @@ +{"width":100,"height":30,"styles":["#ffffffff #030303ff 0","#ffffffff #141414ff 0","#808080ff #141414ff 0","#808080ff #141414ff 1","#7699feff #141414ff 0","#ffffffff #23344bff 0","#ffffffff #202020ff 0","#808080ff #202020ff 0","#1e1e1eff #030303ff 0","#ffffffff #0d0d0dff 0","#0d0d0dff #030303ff 0","#353535ff #030303ff 0","#696969ff #030303ff 0"],"lines":[ +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,6],[1,88],[0,6]]], +[" Search sessions esc ",[[0,6],[1,4],[2,15],[1,62],[2,3],[1,4],[0,6]]], +[" ",[[0,6],[1,88],[0,6]]], +[" Thu Jan 01 1970 ",[[0,6],[1,4],[3,15],[1,69],[0,6]]], +[" ┃ Fix the parser ",[[0,6],[4,1],[5,87],[0,6]]], +[" Write docs ",[[0,6],[4,1],[1,87],[0,6]]], +[" ",[[0,6],[1,88],[0,6]]], +[" ",[[0,6],[6,88],[0,6]]], +[" all projects ctrl+a delete ctrl+d rename ctrl+r ",[[0,6],[6,16],[7,7],[6,38],[7,7],[6,9],[7,7],[6,4],[0,6]]], +[" ",[[0,6],[6,88],[0,6]]], +[" ┃ ",[[0,13],[8,1],[9,74],[0,12]]], +[" ╹▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀ ",[[0,13],[8,1],[10,74],[0,12]]], +[" /tmp/opencode/packages/tui:main shift+tab agents ctrl+p commands ",[[0,13],[11,31],[0,11],[12,9],[0,1],[11,6],[0,2],[12,6],[0,1],[11,8],[0,12]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" test ",[[0,94],[11,4],[0,2]]], +[" ",[[0,100]]] +]} diff --git a/packages/cli-rs/parity/fixtures/E.11a/session-list-current/reopened.json b/packages/cli-rs/parity/fixtures/E.11a/session-list-current/reopened.json new file mode 100644 index 000000000000..bae27ead4ded --- /dev/null +++ b/packages/cli-rs/parity/fixtures/E.11a/session-list-current/reopened.json @@ -0,0 +1,32 @@ +{"width":100,"height":30,"styles":["#ffffffff #0d0d0dff 0","#696969ff #0d0d0dff 1","#ffffffff #030303ff 0","#353535ff #030303ff 0","#313f69ff #080808ff 0","#ffffffff #080808ff 0","#696969ff #080808ff 0","#626262ff #030303ff 0","#313f69ff #030303ff 0","#ffffffff #141414ff 0","#808080ff #141414ff 0","#808080ff #141414ff 1","#7699feff #141414ff 0","#ffffffff #23344bff 0","#ffffffff #202020ff 0","#808080ff #202020ff 0","#1e1e1eff #030303ff 0","#0d0d0dff #030303ff 0","#696969ff #030303ff 0"],"lines":[ +[" Write docs + ",[[0,3],[1,5],[0,1],[1,4],[0,19],[2,1],[3,1],[2,66]]], +[" ",[[2,100]]], +[" ┃ ",[[2,2],[4,1],[5,95],[2,2]]], +[" ┃ Write the parser docs ",[[2,2],[4,1],[5,2],[6,5],[5,1],[6,3],[5,1],[6,6],[5,1],[6,4],[5,72],[2,2]]], +[" ┃ ",[[2,2],[4,1],[5,95],[2,2]]], +[" ",[[2,100]]], +[" The docs cover the parser. ",[[2,5],[7,3],[2,1],[7,4],[2,1],[7,5],[2,1],[7,3],[2,1],[7,7],[2,69]]], +[" ",[[2,100]]], +[" B ",[[2,5],[8,1],[9,88],[2,6]]], +[" Search sessions esc ",[[2,6],[9,4],[10,15],[9,62],[10,3],[9,4],[2,6]]], +[" ",[[2,6],[9,88],[2,6]]], +[" Thu Jan 01 1970 ",[[2,6],[9,4],[11,15],[9,69],[2,6]]], +[" ┃ Fix the parser ",[[2,6],[12,1],[13,87],[2,6]]], +[" ▪ Write docs ",[[2,6],[12,1],[9,1],[12,1],[9,85],[2,6]]], +[" ",[[2,6],[9,88],[2,6]]], +[" ",[[2,6],[14,88],[2,6]]], +[" all projects ctrl+a delete ctrl+d rename ctrl+r ",[[2,6],[14,16],[15,7],[14,38],[15,7],[14,9],[15,7],[14,4],[2,6]]], +[" ",[[2,6],[14,88],[2,6]]], +[" ",[[2,100]]], +[" ",[[2,100]]], +[" ",[[2,100]]], +[" ",[[2,100]]], +[" ",[[2,100]]], +[" ┃ ",[[2,2],[16,1],[0,95],[2,2]]], +[" ┃ ",[[2,2],[16,1],[0,95],[2,2]]], +[" ┃ ",[[2,2],[16,1],[0,95],[2,2]]], +[" ┃ ",[[2,2],[16,1],[0,95],[2,2]]], +[" ╹▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀ ",[[2,2],[16,1],[17,95],[2,2]]], +[" /tmp/opencode/packages/tui:main shift+tab agents ctrl+p commands ",[[2,2],[3,31],[2,32],[18,9],[2,1],[3,6],[2,2],[18,6],[2,1],[3,8],[2,2]]], +[" ",[[2,100]]] +]} diff --git a/packages/cli-rs/parity/fixtures/E.11a/session-list-current/session.json b/packages/cli-rs/parity/fixtures/E.11a/session-list-current/session.json new file mode 100644 index 000000000000..db7a7219ee6c --- /dev/null +++ b/packages/cli-rs/parity/fixtures/E.11a/session-list-current/session.json @@ -0,0 +1,32 @@ +{"width":100,"height":30,"styles":["#ffffffff #202020ff 0","#ffffffff #202020ff 1","#808080ff #080808ff 0","#ffffffff #080808ff 0","#7699feff #141414ff 0","#ffffffff #141414ff 0","#eeeeeeff #080808ff 0","#7699feff #080808ff 0","#484848ff #080808ff 0","#202020ff #080808ff 0"],"lines":[ +[" Write docs + ",[[0,3],[1,10],[0,19],[2,3],[3,65]]], +[" ",[[3,100]]], +[" ┃ ",[[3,2],[4,1],[5,95],[3,2]]], +[" ┃ Write the parser docs ",[[3,2],[4,1],[5,95],[3,2]]], +[" ┃ ",[[3,2],[4,1],[5,95],[3,2]]], +[" ",[[3,100]]], +[" The docs cover the parser. ",[[3,5],[6,26],[3,69]]], +[" ",[[3,100]]], +[" Build · provider/model · 2ms ",[[3,5],[7,5],[2,23],[3,67]]], +[" ",[[3,100]]], +[" ",[[3,100]]], +[" ",[[3,100]]], +[" ",[[3,100]]], +[" ",[[3,100]]], +[" ",[[3,100]]], +[" ",[[3,100]]], +[" ",[[3,100]]], +[" ",[[3,100]]], +[" ",[[3,100]]], +[" ",[[3,100]]], +[" ",[[3,100]]], +[" ",[[3,100]]], +[" ",[[3,100]]], +[" ┃ ",[[3,2],[8,1],[0,95],[3,2]]], +[" ┃ ",[[3,2],[8,1],[0,95],[3,2]]], +[" ┃ ",[[3,2],[8,1],[0,95],[3,2]]], +[" ┃ ",[[3,2],[8,1],[0,95],[3,2]]], +[" ╹▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀ ",[[3,2],[8,1],[9,95],[3,2]]], +[" /tmp/opencode/packages/tui:main shift+tab agents ctrl+p commands ",[[3,2],[2,31],[3,42],[2,6],[3,9],[2,8],[3,2]]], +[" ",[[3,100]]] +]} diff --git a/packages/cli-rs/parity/fixtures/E.11a/sessions-all.json b/packages/cli-rs/parity/fixtures/E.11a/sessions-all.json new file mode 100644 index 000000000000..c4e7e092844c --- /dev/null +++ b/packages/cli-rs/parity/fixtures/E.11a/sessions-all.json @@ -0,0 +1,36 @@ +{"width":100,"height":34,"styles":["#ffffffff #030303ff 0","#ffffffff #141414ff 0","#808080ff #141414ff 0","#808080ff #141414ff 1","#7699feff #141414ff 0","#ffffffff #23344bff 0","#93a2b7ff #23344bff 0","#ffffffff #202020ff 0","#808080ff #202020ff 0"],"lines":[ +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,6],[1,88],[0,6]]], +[" Search sessions esc ",[[0,6],[1,4],[2,15],[1,62],[2,3],[1,4],[0,6]]], +[" ",[[0,6],[1,88],[0,6]]], +[" Pinned ",[[0,6],[1,4],[3,6],[1,78],[0,6]]], +[" ┃ 1 Write docs ",[[0,6],[4,1],[5,1],[6,1],[5,85],[0,6]]], +[" ",[[0,6],[1,88],[0,6]]], +[" Tue Mar 03 2026 ",[[0,6],[1,4],[3,15],[1,69],[0,6]]], +[" Fix the parser ",[[0,6],[4,1],[1,87],[0,6]]], +[" ",[[0,6],[1,88],[0,6]]], +[" Mon Mar 02 2026 ",[[0,6],[1,4],[3,15],[1,69],[0,6]]], +[" Other project ",[[0,6],[4,1],[1,87],[0,6]]], +[" ",[[0,6],[1,88],[0,6]]], +[" Sun Mar 01 2026 ",[[0,6],[1,4],[3,15],[1,69],[0,6]]], +[" New session - 2026-03-01T12:00:00.000Z app-feature ",[[0,6],[4,1],[1,72],[2,11],[1,4],[0,6]]], +[" ",[[0,6],[1,88],[0,6]]], +[" ",[[0,6],[7,88],[0,6]]], +[" current directory ctrl+a pin/unpin ctrl+f delete ctrl+d rename ctrl+r ",[[0,6],[7,21],[8,7],[7,17],[8,7],[7,9],[8,7],[7,9],[8,7],[7,4],[0,6]]], +[" ",[[0,6],[7,88],[0,6]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,100]]] +]} diff --git a/packages/cli-rs/parity/fixtures/E.11a/sessions-delete.json b/packages/cli-rs/parity/fixtures/E.11a/sessions-delete.json new file mode 100644 index 000000000000..71c7874bb463 --- /dev/null +++ b/packages/cli-rs/parity/fixtures/E.11a/sessions-delete.json @@ -0,0 +1,36 @@ +{"width":100,"height":34,"styles":["#ffffffff #030303ff 0","#ffffffff #141414ff 0","#808080ff #141414ff 0","#808080ff #141414ff 1","#ef6c6cff #141414ff 0","#ffffffff #ef6c6cff 0","#93a2b7ff #ef6c6cff 0","#080808ff #ef6c6cff 0","#7699feff #141414ff 0","#ffffffff #202020ff 0","#808080ff #202020ff 0"],"lines":[ +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,6],[1,88],[0,6]]], +[" Search sessions in App esc ",[[0,6],[1,4],[2,22],[1,55],[2,3],[1,4],[0,6]]], +[" ",[[0,6],[1,88],[0,6]]], +[" Pinned ",[[0,6],[1,4],[3,6],[1,78],[0,6]]], +[" ┃ 1 Press ctrl+d again to confirm ",[[0,6],[4,1],[5,1],[6,1],[5,1],[7,29],[5,55],[0,6]]], +[" ",[[0,6],[1,88],[0,6]]], +[" Tue Mar 03 2026 ",[[0,6],[1,4],[3,15],[1,69],[0,6]]], +[" Fix the parser ",[[0,6],[8,1],[1,87],[0,6]]], +[" ",[[0,6],[1,88],[0,6]]], +[" Sun Mar 01 2026 ",[[0,6],[1,4],[3,15],[1,69],[0,6]]], +[" New session - 2026-03-01T12:00:00.000Z app-feature ",[[0,6],[8,1],[1,72],[2,11],[1,4],[0,6]]], +[" ",[[0,6],[1,88],[0,6]]], +[" ",[[0,6],[9,88],[0,6]]], +[" all projects ctrl+a pin/unpin ctrl+f delete ctrl+d rename ctrl+r ",[[0,6],[9,16],[10,7],[9,22],[10,7],[9,9],[10,7],[9,9],[10,7],[9,4],[0,6]]], +[" ",[[0,6],[9,88],[0,6]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,100]]] +]} diff --git a/packages/cli-rs/parity/fixtures/E.11a/sessions-search.json b/packages/cli-rs/parity/fixtures/E.11a/sessions-search.json new file mode 100644 index 000000000000..fd092c8c62ea --- /dev/null +++ b/packages/cli-rs/parity/fixtures/E.11a/sessions-search.json @@ -0,0 +1,36 @@ +{"width":100,"height":34,"styles":["#ffffffff #030303ff 0","#ffffffff #141414ff 0","#808080ff #141414ff 0","#808080ff #141414ff 1","#7699feff #141414ff 0","#ffffffff #23344bff 0","#93a2b7ff #23344bff 0","#ffffffff #202020ff 0","#808080ff #202020ff 0"],"lines":[ +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,6],[1,88],[0,6]]], +[" docs esc ",[[0,6],[1,81],[2,3],[1,4],[0,6]]], +[" ",[[0,6],[1,88],[0,6]]], +[" Pinned ",[[0,6],[1,4],[3,6],[1,78],[0,6]]], +[" ┃ 1 Write docs ",[[0,6],[4,1],[5,1],[6,1],[5,85],[0,6]]], +[" ",[[0,6],[1,88],[0,6]]], +[" ",[[0,6],[7,88],[0,6]]], +[" all projects ctrl+a pin/unpin ctrl+f delete ctrl+d rename ctrl+r ",[[0,6],[7,16],[8,7],[7,22],[8,7],[7,9],[8,7],[7,9],[8,7],[7,4],[0,6]]], +[" ",[[0,6],[7,88],[0,6]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,100]]] +]} diff --git a/packages/cli-rs/parity/fixtures/E.11a/sessions.json b/packages/cli-rs/parity/fixtures/E.11a/sessions.json new file mode 100644 index 000000000000..deea723da701 --- /dev/null +++ b/packages/cli-rs/parity/fixtures/E.11a/sessions.json @@ -0,0 +1,36 @@ +{"width":100,"height":34,"styles":["#ffffffff #030303ff 0","#ffffffff #141414ff 0","#808080ff #141414ff 0","#808080ff #141414ff 1","#7699feff #141414ff 0","#ffffffff #23344bff 0","#93a2b7ff #23344bff 0","#ffffffff #202020ff 0","#808080ff #202020ff 0"],"lines":[ +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,6],[1,88],[0,6]]], +[" Search sessions in App esc ",[[0,6],[1,4],[2,22],[1,55],[2,3],[1,4],[0,6]]], +[" ",[[0,6],[1,88],[0,6]]], +[" Pinned ",[[0,6],[1,4],[3,6],[1,78],[0,6]]], +[" ┃ 1 Write docs ",[[0,6],[4,1],[5,1],[6,1],[5,85],[0,6]]], +[" ",[[0,6],[1,88],[0,6]]], +[" Tue Mar 03 2026 ",[[0,6],[1,4],[3,15],[1,69],[0,6]]], +[" Fix the parser ",[[0,6],[4,1],[1,87],[0,6]]], +[" ",[[0,6],[1,88],[0,6]]], +[" Sun Mar 01 2026 ",[[0,6],[1,4],[3,15],[1,69],[0,6]]], +[" New session - 2026-03-01T12:00:00.000Z app-feature ",[[0,6],[4,1],[1,72],[2,11],[1,4],[0,6]]], +[" ",[[0,6],[1,88],[0,6]]], +[" ",[[0,6],[7,88],[0,6]]], +[" all projects ctrl+a pin/unpin ctrl+f delete ctrl+d rename ctrl+r ",[[0,6],[7,16],[8,7],[7,22],[8,7],[7,9],[8,7],[7,9],[8,7],[7,4],[0,6]]], +[" ",[[0,6],[7,88],[0,6]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,100]]] +]} diff --git a/packages/cli-rs/parity/fixtures/E.11b/worktree-delete.app.json b/packages/cli-rs/parity/fixtures/E.11b/worktree-delete.app.json new file mode 100644 index 000000000000..df7bf13e2293 --- /dev/null +++ b/packages/cli-rs/parity/fixtures/E.11b/worktree-delete.app.json @@ -0,0 +1,61 @@ +{ + "scenario": "E.11b/worktree-delete", + "width": 100, + "height": 30, + "directory": "/tmp/opencode/packages/tui", + "config": { + "animations": false, + "experimental": {"new-designs":true}, + "theme": {"name":"opencode"} + }, + "args": {}, + "routes": [ + {"path":"/api/worktree","json":[{"directory":"/tmp/opencode"},{"directory":"/tmp/opencode-spike","strategy":"git"}]}, + {"method":"POST","path":"/api/worktree/refresh","status":204}, + {"method":"DELETE","path":"/api/worktree","status":400,"json":{"_tag":"WorktreeError","name":"WorktreeError","data":{"message":"worktree contains modified or untracked files","forceRequired":true}}}, + {"path":"/api/vcs/status","json":{"location":{"directory":"/tmp/opencode-spike"},"data":[{"file":"src/parser.ts","additions":12,"deletions":3,"status":"modified"},{"file":"notes.md","additions":4,"deletions":0,"status":"added"},{"file":"old.txt","additions":0,"deletions":9,"status":"deleted"}]}} + ], + "steps": [ + {"checkpoint":"home","until":"Ask anything","masks":[{"x":16,"y":16,"width":74,"height":1,"reason":"random placeholder example"}],"fixture":"E.11b/worktree-delete/home"}, + {"type":"/worktrees"}, + {"checkpoint":"slash","until":"Manage workspaces","fixture":"E.11b/worktree-delete/slash"}, + {"keys":["enter"]}, + {"checkpoint":"list","until":"opencode-spike","fixture":"E.11b/worktree-delete/list"}, + {"keys":["down","ctrl+d","ctrl+d"]}, + {"checkpoint":"changes","until":"old.txt","fixture":"E.11b/worktree-delete/changes"}, + {"keys":["d"]}, + {"checkpoint":"failed","until":"Failed to delete worktree","fixture":"E.11b/worktree-delete/failed"} + ], + "requests": { + "writes": [ + {"method":"POST","path":"/api/worktree/refresh","query":{},"body":{"projectID":"proj_test"},"status":204}, + {"method":"DELETE","path":"/api/worktree","query":{},"body":{"projectID":"proj_test","directory":"/tmp/opencode-spike","force":false},"status":400,"json":{"_tag":"WorktreeError","name":"WorktreeError","data":{"message":"worktree contains modified or untracked files","forceRequired":true}}}, + {"method":"DELETE","path":"/api/worktree","query":{},"body":{"projectID":"proj_test","directory":"/tmp/opencode-spike","force":true},"status":400,"json":{"_tag":"WorktreeError","name":"WorktreeError","data":{"message":"worktree contains modified or untracked files","forceRequired":true}}}, + {"method":"POST","path":"/api/worktree/refresh","query":{},"body":{"projectID":"proj_test"},"status":204} + ], + "reads": [ + {"method":"GET","path":"/api/agent","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":[]}}, + {"method":"GET","path":"/api/command","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":[]}}, + {"method":"GET","path":"/api/config","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":[]}, + {"method":"GET","path":"/api/experimental/migration/v1","query":{},"status":200,"json":{"status":"completed"}}, + {"method":"GET","path":"/api/form","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode"}},"data":[]}}, + {"method":"GET","path":"/api/fs/list","query":{"location[directory]":["<cwd>"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":[]}}, + {"method":"GET","path":"/api/info","query":{},"status":200,"json":{"version":"test","pid":0,"urls":[],"paths":{"tmp":"/tmp"},"capabilities":{"persistentPty":true}}}, + {"method":"GET","path":"/api/integration","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":[]}}, + {"method":"GET","path":"/api/location","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}}}, + {"method":"GET","path":"/api/mcp","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":[]}}, + {"method":"GET","path":"/api/mcp/resource","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":{"resources":[],"templates":[]}}}, + {"method":"GET","path":"/api/model","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":[]}}, + {"method":"GET","path":"/api/plugin","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":[]}}, + {"method":"GET","path":"/api/project","query":{},"status":200,"json":[]}, + {"method":"GET","path":"/api/provider","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":[]}}, + {"method":"GET","path":"/api/reference","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode/packages/tui","canonical":"/tmp/opencode/packages/tui"}},"data":[]}}, + {"method":"GET","path":"/api/session/active","query":{},"status":200,"json":{"data":{}}}, + {"method":"GET","path":"/api/shell","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":[]}}, + {"method":"GET","path":"/api/skill","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":[]}}, + {"method":"GET","path":"/api/vcs","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":{"branch":{"current":"main","default":"main"}}}}, + {"method":"GET","path":"/api/vcs/status","query":{"location[directory]":["/tmp/opencode-spike"]},"status":200,"json":{"location":{"directory":"/tmp/opencode-spike"},"data":[{"file":"src/parser.ts","additions":12,"deletions":3,"status":"modified"},{"file":"notes.md","additions":4,"deletions":0,"status":"added"},{"file":"old.txt","additions":0,"deletions":9,"status":"deleted"}]}}, + {"method":"GET","path":"/api/worktree","query":{"projectID":["proj_test"]},"status":200,"json":[{"directory":"/tmp/opencode"},{"directory":"/tmp/opencode-spike","strategy":"git"}]} + ] + } +} diff --git a/packages/cli-rs/parity/fixtures/E.11b/worktree-delete/changes.json b/packages/cli-rs/parity/fixtures/E.11b/worktree-delete/changes.json new file mode 100644 index 000000000000..78e4cd1d01ff --- /dev/null +++ b/packages/cli-rs/parity/fixtures/E.11b/worktree-delete/changes.json @@ -0,0 +1,32 @@ +{"width":100,"height":30,"styles":["#ffffffff #030303ff 0","#ffffffff #141414ff 0","#808080ff #141414ff 0","#ffffffff #202020ff 0","#808080ff #202020ff 0","#4fd6beff #202020ff 0","#c53b53ff #202020ff 0","#1e1e1eff #030303ff 0","#ffffffff #0d0d0dff 0","#353535ff #0d0d0dff 0","#0d0d0dff #030303ff 0","#353535ff #030303ff 0"],"lines":[ +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,20],[1,60],[0,20]]], +[" Delete worktree? esc ",[[0,20],[1,54],[2,3],[1,3],[0,20]]], +[" ",[[0,20],[1,60],[0,20]]], +[" This worktree has file changes. Do you want to delete ",[[0,20],[1,3],[2,54],[1,3],[0,20]]], +[" it anyway? ",[[0,20],[1,3],[2,10],[1,47],[0,20]]], +[" ",[[0,20],[1,60],[0,20]]], +[" M src/parser.ts +12 -3 ",[[0,20],[3,3],[4,1],[3,1],[4,13],[3,33],[5,3],[6,3],[3,3],[0,20]]], +[" ┃ A notes.md +4 ",[[0,13],[7,1],[8,6],[3,3],[4,1],[3,1],[4,8],[3,42],[5,2],[3,3],[8,8],[0,12]]], +[" ┃ Ask D old.txt -9 ",[[0,13],[7,1],[8,2],[9,3],[8,1],[3,3],[4,1],[3,1],[4,7],[3,42],[6,3],[3,3],[8,8],[0,12]]], +[" ┃ ",[[0,13],[7,1],[8,6],[1,60],[8,8],[0,12]]], +[" ┃ ",[[0,13],[7,1],[8,6],[3,60],[8,8],[0,12]]], +[" ╹▀▀▀▀▀▀ cancel esc delete d ▀▀▀▀▀▀▀▀ ",[[0,13],[7,1],[10,6],[3,42],[4,4],[3,9],[4,2],[3,3],[10,8],[0,12]]], +[" /tmp/op commands ",[[0,13],[11,7],[3,60],[11,8],[0,12]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" test ",[[0,94],[11,4],[0,2]]], +[" ",[[0,100]]] +]} diff --git a/packages/cli-rs/parity/fixtures/E.11b/worktree-delete/failed.json b/packages/cli-rs/parity/fixtures/E.11b/worktree-delete/failed.json new file mode 100644 index 000000000000..1eb95c5e2f72 --- /dev/null +++ b/packages/cli-rs/parity/fixtures/E.11b/worktree-delete/failed.json @@ -0,0 +1,32 @@ +{"width":100,"height":30,"styles":["#ffffffff #030303ff 0","#622c2cff #030303ff 0","#ffffffff #0d0d0dff 0","#696969ff #0d0d0dff 1","#353535ff #0d0d0dff 0","#696969ff #0d0d0dff 0","#ffffffff #141414ff 0","#ffffffff #141414ff 1","#808080ff #141414ff 0","#808080ff #141414ff 1","#7699feff #141414ff 0","#ffffffff #23344bff 0","#ffffffff #202020ff 0","#808080ff #202020ff 0","#353535ff #030303ff 0"],"lines":[ +[" ",[[0,100]]], +[" ┃ ┃ ",[[0,47],[1,1],[2,49],[1,1],[0,2]]], +[" ┃ Failed to delete worktree x ┃ ",[[0,47],[1,1],[2,2],[3,6],[2,1],[3,2],[2,1],[3,6],[2,1],[3,8],[2,19],[4,1],[2,2],[1,1],[0,2]]], +[" ┃ ┃ ",[[0,47],[1,1],[2,49],[1,1],[0,2]]], +[" ┃ worktree contains modified or untracked files ┃ ",[[0,47],[1,1],[2,2],[5,8],[2,1],[5,8],[2,1],[5,8],[2,1],[5,2],[2,1],[5,9],[2,1],[5,5],[2,2],[1,1],[0,2]]], +[" ┃ ┃ ",[[0,47],[1,1],[2,49],[1,1],[0,2]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,1],[6,98],[0,1]]], +[" Worktrees esc ",[[0,1],[6,4],[7,9],[6,78],[8,3],[6,4],[0,1]]], +[" ",[[0,1],[6,98],[0,1]]], +[" Search ",[[0,1],[6,4],[8,6],[6,88],[0,1]]], +[" ",[[0,1],[6,98],[0,1]]], +[" Current ",[[0,1],[6,4],[9,7],[6,87],[0,1]]], +[" ┃ /tmp/opencode ",[[0,1],[10,1],[11,97],[0,1]]], +[" ",[[0,1],[6,98],[0,1]]], +[" Other ",[[0,1],[6,4],[9,5],[6,89],[0,1]]], +[" /tmp/opencode-spike ",[[0,1],[10,1],[6,97],[0,1]]], +[" ",[[0,1],[6,98],[0,1]]], +[" ",[[0,1],[6,98],[0,1]]], +[" ",[[0,1],[6,98],[0,1]]], +[" ",[[0,1],[6,98],[0,1]]], +[" ",[[0,1],[12,98],[0,1]]], +[" new ctrl+a refresh ctrl+r delete ctrl+d ",[[0,1],[12,7],[13,7],[12,10],[13,7],[12,50],[13,13],[12,4],[0,1]]], +[" ",[[0,1],[12,98],[0,1]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" test ",[[0,94],[14,4],[0,2]]], +[" ",[[0,100]]] +]} diff --git a/packages/cli-rs/parity/fixtures/E.11b/worktree-delete/home.json b/packages/cli-rs/parity/fixtures/E.11b/worktree-delete/home.json new file mode 100644 index 000000000000..703dbb328148 --- /dev/null +++ b/packages/cli-rs/parity/fixtures/E.11b/worktree-delete/home.json @@ -0,0 +1,32 @@ +{"width":100,"height":30,"styles":["#ffffffff #080808ff 0","#808080ff #080808ff 0","#ffffffff #080808ff 1","#808080ff #262626ff 0","#ffffffff #464646ff 1","#262626ff #080808ff 0","#484848ff #080808ff 0","#ffffffff #202020ff 0","#00000000 #00000000 0","#202020ff #080808ff 0"],"lines":[ +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ▄ ",[[0,31],[1,19],[0,1],[2,19],[0,30]]], +[" █▀▀█ █▀▀█ █▀▀█ █▀▀▄ █▀▀▀ █▀▀█ █▀▀█ █▀▀█ ",[[0,31],[1,19],[0,1],[2,19],[0,30]]], +[" █ █ █ █ █▀▀▀ █ █ █ █ █ █ █ █▀▀▀ ",[[0,31],[1,1],[3,2],[1,3],[3,2],[1,3],[3,3],[1,2],[3,2],[1,1],[0,1],[2,1],[4,3],[2,2],[4,2],[2,3],[4,2],[2,3],[4,3],[0,30]]], +[" ▀▀▀▀ █▀▀▀ ▀▀▀▀ ▀▀▀▀ ▀▀▀▀ ▀▀▀▀ ▀▀▀▀ ▀▀▀▀ ",[[0,31],[1,16],[5,2],[1,1],[0,1],[2,19],[0,30]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ┃ ",[[0,13],[6,1],[7,74],[0,12]]], +[" ┃ ",[[0,13],[6,1],[7,2],[8,74],[0,10]]], +[" ┃ ",[[0,13],[6,1],[7,74],[0,12]]], +[" ┃ ",[[0,13],[6,1],[7,74],[0,12]]], +[" ╹▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀ ",[[0,13],[6,1],[9,74],[0,12]]], +[" /tmp/opencode/packages/tui:main shift+tab agents ctrl+p commands ",[[0,13],[1,31],[0,21],[1,6],[0,9],[1,8],[0,12]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" test ",[[0,94],[1,4],[0,2]]], +[" ",[[0,100]]] +]} diff --git a/packages/cli-rs/parity/fixtures/E.11b/worktree-delete/list.json b/packages/cli-rs/parity/fixtures/E.11b/worktree-delete/list.json new file mode 100644 index 000000000000..987c24db4a33 --- /dev/null +++ b/packages/cli-rs/parity/fixtures/E.11b/worktree-delete/list.json @@ -0,0 +1,32 @@ +{"width":100,"height":30,"styles":["#ffffffff #030303ff 0","#ffffffff #141414ff 0","#ffffffff #141414ff 1","#808080ff #141414ff 0","#808080ff #141414ff 1","#7699feff #141414ff 0","#ffffffff #23344bff 0","#ffffffff #202020ff 0","#808080ff #202020ff 0","#353535ff #030303ff 0"],"lines":[ +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,1],[1,98],[0,1]]], +[" Worktrees esc ",[[0,1],[1,4],[2,9],[1,78],[3,3],[1,4],[0,1]]], +[" ",[[0,1],[1,98],[0,1]]], +[" Search ",[[0,1],[1,4],[3,6],[1,88],[0,1]]], +[" ",[[0,1],[1,98],[0,1]]], +[" Current ",[[0,1],[1,4],[4,7],[1,87],[0,1]]], +[" ┃ /tmp/opencode ",[[0,1],[5,1],[6,97],[0,1]]], +[" ",[[0,1],[1,98],[0,1]]], +[" Other ",[[0,1],[1,4],[4,5],[1,89],[0,1]]], +[" /tmp/opencode-spike ",[[0,1],[5,1],[1,97],[0,1]]], +[" ",[[0,1],[1,98],[0,1]]], +[" ",[[0,1],[1,98],[0,1]]], +[" ",[[0,1],[1,98],[0,1]]], +[" ",[[0,1],[1,98],[0,1]]], +[" ",[[0,1],[7,98],[0,1]]], +[" new ctrl+a refresh ctrl+r delete ctrl+d ",[[0,1],[7,7],[8,7],[7,10],[8,7],[7,50],[8,13],[7,4],[0,1]]], +[" ",[[0,1],[7,98],[0,1]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" test ",[[0,94],[9,4],[0,2]]], +[" ",[[0,100]]] +]} diff --git a/packages/cli-rs/parity/fixtures/E.11b/worktree-delete/slash.json b/packages/cli-rs/parity/fixtures/E.11b/worktree-delete/slash.json new file mode 100644 index 000000000000..3b919a1fd326 --- /dev/null +++ b/packages/cli-rs/parity/fixtures/E.11b/worktree-delete/slash.json @@ -0,0 +1,32 @@ +{"width":100,"height":30,"styles":["#ffffffff #080808ff 0","#808080ff #080808ff 0","#ffffffff #080808ff 1","#808080ff #262626ff 0","#ffffffff #464646ff 1","#262626ff #080808ff 0","#7699feff #080808ff 0","#ffffffff #23344bff 0","#484848ff #080808ff 0","#ffffffff #202020ff 0","#202020ff #080808ff 0"],"lines":[ +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ▄ ",[[0,31],[1,19],[0,1],[2,19],[0,30]]], +[" █▀▀█ █▀▀█ █▀▀█ █▀▀▄ █▀▀▀ █▀▀█ █▀▀█ █▀▀█ ",[[0,31],[1,19],[0,1],[2,19],[0,30]]], +[" █ █ █ █ █▀▀▀ █ █ █ █ █ █ █ █▀▀▀ ",[[0,31],[1,1],[3,2],[1,3],[3,2],[1,3],[3,3],[1,2],[3,2],[1,1],[0,1],[2,1],[4,3],[2,2],[4,2],[2,3],[4,2],[2,3],[4,3],[0,30]]], +[" ▀▀▀▀ █▀▀▀ ▀▀▀▀ ▀▀▀▀ ▀▀▀▀ ▀▀▀▀ ▀▀▀▀ ▀▀▀▀ ",[[0,31],[1,16],[5,2],[1,1],[0,1],[2,19],[0,30]]], +[" ",[[0,100]]], +[" ┃ /worktrees Manage workspaces ┃ ",[[0,13],[6,1],[7,73],[8,1],[0,12]]], +[" ┃ ",[[0,13],[8,1],[9,74],[0,12]]], +[" ┃ /worktrees ",[[0,13],[8,1],[9,74],[0,12]]], +[" ┃ ",[[0,13],[8,1],[9,74],[0,12]]], +[" ┃ ",[[0,13],[8,1],[9,74],[0,12]]], +[" ╹▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀ ",[[0,13],[8,1],[10,74],[0,12]]], +[" /tmp/opencode/packages/tui:main shift+tab agents ctrl+p commands ",[[0,13],[1,31],[0,21],[1,6],[0,9],[1,8],[0,12]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" test ",[[0,94],[1,4],[0,2]]], +[" ",[[0,100]]] +]} diff --git a/packages/cli-rs/parity/fixtures/E.11b/worktrees.app.json b/packages/cli-rs/parity/fixtures/E.11b/worktrees.app.json new file mode 100644 index 000000000000..be69f33b63f1 --- /dev/null +++ b/packages/cli-rs/parity/fixtures/E.11b/worktrees.app.json @@ -0,0 +1,58 @@ +{ + "scenario": "E.11b/worktrees", + "width": 100, + "height": 30, + "directory": "/tmp/opencode/packages/tui", + "config": { + "animations": false, + "experimental": {"new-designs":true}, + "theme": {"name":"opencode"} + }, + "args": {}, + "routes": [ + {"path":"/api/worktree","json":[{"directory":"/tmp/opencode"},{"directory":"/tmp/opencode-spike","strategy":"git"}]}, + {"method":"POST","path":"/api/worktree/refresh","status":204} + ], + "steps": [ + {"checkpoint":"home","until":"Ask anything","masks":[{"x":16,"y":16,"width":74,"height":1,"reason":"random placeholder example"}],"fixture":"E.11b/worktrees/home"}, + {"type":"/worktrees"}, + {"checkpoint":"slash","until":"Manage workspaces","fixture":"E.11b/worktrees/slash"}, + {"keys":["enter"]}, + {"checkpoint":"list","until":"opencode-spike","fixture":"E.11b/worktrees/list"}, + {"keys":["down","ctrl+d"]}, + {"checkpoint":"marked","until":"again to confirm","fixture":"E.11b/worktrees/marked"}, + {"keys":["down","ctrl+a"]}, + {"checkpoint":"name","until":"Name worktree","masks":[{"x":16,"y":16,"width":74,"height":1,"reason":"random placeholder example"}],"fixture":"E.11b/worktrees/name"}, + {"type":"My Spike"}, + {"keys":["enter"]}, + {"checkpoint":"staged","until":"(new worktree)","masks":[{"x":16,"y":16,"width":74,"height":1,"reason":"random placeholder example"}],"fixture":"E.11b/worktrees/staged"} + ], + "requests": { + "writes": [ + {"method":"POST","path":"/api/worktree/refresh","query":{},"body":{"projectID":"proj_test"},"status":204} + ], + "reads": [ + {"method":"GET","path":"/api/agent","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":[]}}, + {"method":"GET","path":"/api/command","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":[]}}, + {"method":"GET","path":"/api/config","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":[]}, + {"method":"GET","path":"/api/experimental/migration/v1","query":{},"status":200,"json":{"status":"completed"}}, + {"method":"GET","path":"/api/form","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode"}},"data":[]}}, + {"method":"GET","path":"/api/fs/list","query":{"location[directory]":["<cwd>"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":[]}}, + {"method":"GET","path":"/api/info","query":{},"status":200,"json":{"version":"test","pid":0,"urls":[],"paths":{"tmp":"/tmp"},"capabilities":{"persistentPty":true}}}, + {"method":"GET","path":"/api/integration","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":[]}}, + {"method":"GET","path":"/api/location","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}}}, + {"method":"GET","path":"/api/mcp","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":[]}}, + {"method":"GET","path":"/api/mcp/resource","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":{"resources":[],"templates":[]}}}, + {"method":"GET","path":"/api/model","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":[]}}, + {"method":"GET","path":"/api/plugin","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":[]}}, + {"method":"GET","path":"/api/project","query":{},"status":200,"json":[]}, + {"method":"GET","path":"/api/provider","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":[]}}, + {"method":"GET","path":"/api/reference","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode/packages/tui","canonical":"/tmp/opencode/packages/tui"}},"data":[]}}, + {"method":"GET","path":"/api/session/active","query":{},"status":200,"json":{"data":{}}}, + {"method":"GET","path":"/api/shell","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":[]}}, + {"method":"GET","path":"/api/skill","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":[]}}, + {"method":"GET","path":"/api/vcs","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":{"branch":{"current":"main","default":"main"}}}}, + {"method":"GET","path":"/api/worktree","query":{"projectID":["proj_test"]},"status":200,"json":[{"directory":"/tmp/opencode"},{"directory":"/tmp/opencode-spike","strategy":"git"}]} + ] + } +} diff --git a/packages/cli-rs/parity/fixtures/E.11b/worktrees/home.json b/packages/cli-rs/parity/fixtures/E.11b/worktrees/home.json new file mode 100644 index 000000000000..703dbb328148 --- /dev/null +++ b/packages/cli-rs/parity/fixtures/E.11b/worktrees/home.json @@ -0,0 +1,32 @@ +{"width":100,"height":30,"styles":["#ffffffff #080808ff 0","#808080ff #080808ff 0","#ffffffff #080808ff 1","#808080ff #262626ff 0","#ffffffff #464646ff 1","#262626ff #080808ff 0","#484848ff #080808ff 0","#ffffffff #202020ff 0","#00000000 #00000000 0","#202020ff #080808ff 0"],"lines":[ +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ▄ ",[[0,31],[1,19],[0,1],[2,19],[0,30]]], +[" █▀▀█ █▀▀█ █▀▀█ █▀▀▄ █▀▀▀ █▀▀█ █▀▀█ █▀▀█ ",[[0,31],[1,19],[0,1],[2,19],[0,30]]], +[" █ █ █ █ █▀▀▀ █ █ █ █ █ █ █ █▀▀▀ ",[[0,31],[1,1],[3,2],[1,3],[3,2],[1,3],[3,3],[1,2],[3,2],[1,1],[0,1],[2,1],[4,3],[2,2],[4,2],[2,3],[4,2],[2,3],[4,3],[0,30]]], +[" ▀▀▀▀ █▀▀▀ ▀▀▀▀ ▀▀▀▀ ▀▀▀▀ ▀▀▀▀ ▀▀▀▀ ▀▀▀▀ ",[[0,31],[1,16],[5,2],[1,1],[0,1],[2,19],[0,30]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ┃ ",[[0,13],[6,1],[7,74],[0,12]]], +[" ┃ ",[[0,13],[6,1],[7,2],[8,74],[0,10]]], +[" ┃ ",[[0,13],[6,1],[7,74],[0,12]]], +[" ┃ ",[[0,13],[6,1],[7,74],[0,12]]], +[" ╹▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀ ",[[0,13],[6,1],[9,74],[0,12]]], +[" /tmp/opencode/packages/tui:main shift+tab agents ctrl+p commands ",[[0,13],[1,31],[0,21],[1,6],[0,9],[1,8],[0,12]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" test ",[[0,94],[1,4],[0,2]]], +[" ",[[0,100]]] +]} diff --git a/packages/cli-rs/parity/fixtures/E.11b/worktrees/list.json b/packages/cli-rs/parity/fixtures/E.11b/worktrees/list.json new file mode 100644 index 000000000000..987c24db4a33 --- /dev/null +++ b/packages/cli-rs/parity/fixtures/E.11b/worktrees/list.json @@ -0,0 +1,32 @@ +{"width":100,"height":30,"styles":["#ffffffff #030303ff 0","#ffffffff #141414ff 0","#ffffffff #141414ff 1","#808080ff #141414ff 0","#808080ff #141414ff 1","#7699feff #141414ff 0","#ffffffff #23344bff 0","#ffffffff #202020ff 0","#808080ff #202020ff 0","#353535ff #030303ff 0"],"lines":[ +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,1],[1,98],[0,1]]], +[" Worktrees esc ",[[0,1],[1,4],[2,9],[1,78],[3,3],[1,4],[0,1]]], +[" ",[[0,1],[1,98],[0,1]]], +[" Search ",[[0,1],[1,4],[3,6],[1,88],[0,1]]], +[" ",[[0,1],[1,98],[0,1]]], +[" Current ",[[0,1],[1,4],[4,7],[1,87],[0,1]]], +[" ┃ /tmp/opencode ",[[0,1],[5,1],[6,97],[0,1]]], +[" ",[[0,1],[1,98],[0,1]]], +[" Other ",[[0,1],[1,4],[4,5],[1,89],[0,1]]], +[" /tmp/opencode-spike ",[[0,1],[5,1],[1,97],[0,1]]], +[" ",[[0,1],[1,98],[0,1]]], +[" ",[[0,1],[1,98],[0,1]]], +[" ",[[0,1],[1,98],[0,1]]], +[" ",[[0,1],[1,98],[0,1]]], +[" ",[[0,1],[7,98],[0,1]]], +[" new ctrl+a refresh ctrl+r delete ctrl+d ",[[0,1],[7,7],[8,7],[7,10],[8,7],[7,50],[8,13],[7,4],[0,1]]], +[" ",[[0,1],[7,98],[0,1]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" test ",[[0,94],[9,4],[0,2]]], +[" ",[[0,100]]] +]} diff --git a/packages/cli-rs/parity/fixtures/E.11b/worktrees/marked.json b/packages/cli-rs/parity/fixtures/E.11b/worktrees/marked.json new file mode 100644 index 000000000000..8175993b17c0 --- /dev/null +++ b/packages/cli-rs/parity/fixtures/E.11b/worktrees/marked.json @@ -0,0 +1,32 @@ +{"width":100,"height":30,"styles":["#ffffffff #030303ff 0","#ffffffff #141414ff 0","#ffffffff #141414ff 1","#808080ff #141414ff 0","#808080ff #141414ff 1","#7699feff #141414ff 0","#ef6c6cff #141414ff 0","#ffffffff #ef6c6cff 0","#080808ff #ef6c6cff 0","#ffffffff #202020ff 0","#808080ff #202020ff 0","#353535ff #030303ff 0"],"lines":[ +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,1],[1,98],[0,1]]], +[" Worktrees esc ",[[0,1],[1,4],[2,9],[1,78],[3,3],[1,4],[0,1]]], +[" ",[[0,1],[1,98],[0,1]]], +[" Search ",[[0,1],[1,4],[3,6],[1,88],[0,1]]], +[" ",[[0,1],[1,98],[0,1]]], +[" Current ",[[0,1],[1,4],[4,7],[1,87],[0,1]]], +[" /tmp/opencode ",[[0,1],[5,1],[1,97],[0,1]]], +[" ",[[0,1],[1,98],[0,1]]], +[" Other ",[[0,1],[1,4],[4,5],[1,89],[0,1]]], +[" ┃ Press ctrl+d again to confirm ",[[0,1],[6,1],[7,3],[8,29],[7,65],[0,1]]], +[" ",[[0,1],[1,98],[0,1]]], +[" ",[[0,1],[1,98],[0,1]]], +[" ",[[0,1],[1,98],[0,1]]], +[" ",[[0,1],[1,98],[0,1]]], +[" ",[[0,1],[9,98],[0,1]]], +[" new ctrl+a refresh ctrl+r delete ctrl+d ",[[0,1],[9,7],[10,7],[9,10],[10,7],[9,56],[10,7],[9,4],[0,1]]], +[" ",[[0,1],[9,98],[0,1]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" test ",[[0,94],[11,4],[0,2]]], +[" ",[[0,100]]] +]} diff --git a/packages/cli-rs/parity/fixtures/E.11b/worktrees/name.json b/packages/cli-rs/parity/fixtures/E.11b/worktrees/name.json new file mode 100644 index 000000000000..5258d25880d3 --- /dev/null +++ b/packages/cli-rs/parity/fixtures/E.11b/worktrees/name.json @@ -0,0 +1,32 @@ +{"width":100,"height":30,"styles":["#ffffffff #030303ff 0","#ffffffff #141414ff 0","#808080ff #141414ff 0","#ffffffff #23344bff 0","#1e1e1eff #030303ff 0","#ffffffff #0d0d0dff 0","#00000000 #00000000 0","#0d0d0dff #030303ff 0","#353535ff #030303ff 0","#696969ff #030303ff 0"],"lines":[ +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,20],[1,60],[0,20]]], +[" Name worktree esc ",[[0,20],[1,54],[2,3],[1,3],[0,20]]], +[" ",[[0,20],[1,60],[0,20]]], +[" Worktree name ",[[0,20],[1,3],[2,13],[1,44],[0,20]]], +[" ",[[0,20],[1,60],[0,20]]], +[" generate name tab Submit ",[[0,20],[1,16],[2,4],[1,29],[3,8],[1,3],[0,20]]], +[" ",[[0,20],[1,60],[0,20]]], +[" ┃ ",[[0,13],[4,1],[5,74],[0,12]]], +[" ┃ ",[[0,13],[4,1],[5,2],[6,74],[0,10]]], +[" ┃ ",[[0,13],[4,1],[5,74],[0,12]]], +[" ┃ ",[[0,13],[4,1],[5,74],[0,12]]], +[" ╹▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀ ",[[0,13],[4,1],[7,74],[0,12]]], +[" /tmp/opencode/packages/tui:main shift+tab agents ctrl+p commands ",[[0,13],[8,31],[0,11],[9,9],[0,1],[8,6],[0,2],[9,6],[0,1],[8,8],[0,12]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" test ",[[0,94],[8,4],[0,2]]], +[" ",[[0,100]]] +]} diff --git a/packages/cli-rs/parity/fixtures/E.11b/worktrees/slash.json b/packages/cli-rs/parity/fixtures/E.11b/worktrees/slash.json new file mode 100644 index 000000000000..3b919a1fd326 --- /dev/null +++ b/packages/cli-rs/parity/fixtures/E.11b/worktrees/slash.json @@ -0,0 +1,32 @@ +{"width":100,"height":30,"styles":["#ffffffff #080808ff 0","#808080ff #080808ff 0","#ffffffff #080808ff 1","#808080ff #262626ff 0","#ffffffff #464646ff 1","#262626ff #080808ff 0","#7699feff #080808ff 0","#ffffffff #23344bff 0","#484848ff #080808ff 0","#ffffffff #202020ff 0","#202020ff #080808ff 0"],"lines":[ +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ▄ ",[[0,31],[1,19],[0,1],[2,19],[0,30]]], +[" █▀▀█ █▀▀█ █▀▀█ █▀▀▄ █▀▀▀ █▀▀█ █▀▀█ █▀▀█ ",[[0,31],[1,19],[0,1],[2,19],[0,30]]], +[" █ █ █ █ █▀▀▀ █ █ █ █ █ █ █ █▀▀▀ ",[[0,31],[1,1],[3,2],[1,3],[3,2],[1,3],[3,3],[1,2],[3,2],[1,1],[0,1],[2,1],[4,3],[2,2],[4,2],[2,3],[4,2],[2,3],[4,3],[0,30]]], +[" ▀▀▀▀ █▀▀▀ ▀▀▀▀ ▀▀▀▀ ▀▀▀▀ ▀▀▀▀ ▀▀▀▀ ▀▀▀▀ ",[[0,31],[1,16],[5,2],[1,1],[0,1],[2,19],[0,30]]], +[" ",[[0,100]]], +[" ┃ /worktrees Manage workspaces ┃ ",[[0,13],[6,1],[7,73],[8,1],[0,12]]], +[" ┃ ",[[0,13],[8,1],[9,74],[0,12]]], +[" ┃ /worktrees ",[[0,13],[8,1],[9,74],[0,12]]], +[" ┃ ",[[0,13],[8,1],[9,74],[0,12]]], +[" ┃ ",[[0,13],[8,1],[9,74],[0,12]]], +[" ╹▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀ ",[[0,13],[8,1],[10,74],[0,12]]], +[" /tmp/opencode/packages/tui:main shift+tab agents ctrl+p commands ",[[0,13],[1,31],[0,21],[1,6],[0,9],[1,8],[0,12]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" test ",[[0,94],[1,4],[0,2]]], +[" ",[[0,100]]] +]} diff --git a/packages/cli-rs/parity/fixtures/E.11b/worktrees/staged.json b/packages/cli-rs/parity/fixtures/E.11b/worktrees/staged.json new file mode 100644 index 000000000000..362715f34df2 --- /dev/null +++ b/packages/cli-rs/parity/fixtures/E.11b/worktrees/staged.json @@ -0,0 +1,32 @@ +{"width":100,"height":30,"styles":["#ffffffff #080808ff 0","#808080ff #080808ff 0","#ffffffff #080808ff 1","#808080ff #262626ff 0","#ffffffff #464646ff 1","#262626ff #080808ff 0","#484848ff #080808ff 0","#ffffffff #202020ff 0","#00000000 #00000000 0","#202020ff #080808ff 0","#426097ff #080808ff 0"],"lines":[ +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ▄ ",[[0,31],[1,19],[0,1],[2,19],[0,30]]], +[" █▀▀█ █▀▀█ █▀▀█ █▀▀▄ █▀▀▀ █▀▀█ █▀▀█ █▀▀█ ",[[0,31],[1,19],[0,1],[2,19],[0,30]]], +[" █ █ █ █ █▀▀▀ █ █ █ █ █ █ █ █▀▀▀ ",[[0,31],[1,1],[3,2],[1,3],[3,2],[1,3],[3,3],[1,2],[3,2],[1,1],[0,1],[2,1],[4,3],[2,2],[4,2],[2,3],[4,2],[2,3],[4,3],[0,30]]], +[" ▀▀▀▀ █▀▀▀ ▀▀▀▀ ▀▀▀▀ ▀▀▀▀ ▀▀▀▀ ▀▀▀▀ ▀▀▀▀ ",[[0,31],[1,16],[5,2],[1,1],[0,1],[2,19],[0,30]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ┃ ",[[0,13],[6,1],[7,74],[0,12]]], +[" ┃ ",[[0,13],[6,1],[7,2],[8,74],[0,10]]], +[" ┃ ",[[0,13],[6,1],[7,74],[0,12]]], +[" ┃ ",[[0,13],[6,1],[7,74],[0,12]]], +[" ╹▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀ ",[[0,13],[6,1],[9,74],[0,12]]], +[" (new worktree) shift+tab agents ctrl+p commands ",[[0,16],[10,14],[0,35],[1,6],[0,9],[1,8],[0,12]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" test ",[[0,94],[1,4],[0,2]]], +[" ",[[0,100]]] +]} diff --git a/packages/cli-rs/parity/fixtures/E.12/rail-resize.app.json b/packages/cli-rs/parity/fixtures/E.12/rail-resize.app.json new file mode 100644 index 000000000000..b6f76f4d53d5 --- /dev/null +++ b/packages/cli-rs/parity/fixtures/E.12/rail-resize.app.json @@ -0,0 +1,75 @@ +{ + "scenario": "E.12/rail-resize", + "width": 120, + "height": 30, + "directory": "/tmp/opencode/packages/tui", + "config": { + "experimental": {"new-designs":true}, + "tabs": {"layout":"vertical"}, + "animations": false, + "theme": {"name":"opencode"} + }, + "args": { + "sessionID": "ses_a" + }, + "routes": [ + {"path":"/api/session/ses_a","json":{"data":{"id":"ses_a","title":"Fix the parser","projectID":"proj_test","cost":0,"tokens":{"input":0,"output":0,"reasoning":0,"cache":{"read":0,"write":0}},"time":{"created":2,"updated":2},"location":{"directory":"/tmp/opencode/packages/tui"}}}}, + {"path":"/api/session/ses_a/message","json":{"data":[{"id":"msg_2","type":"assistant","agent":"build","model":{"providerID":"provider","id":"model"},"content":[{"type":"text","text":"The parser drops the last token."}],"finish":"stop","time":{"created":2,"completed":3}},{"id":"msg_1","type":"user","text":"Why?","time":{"created":1}}],"cursor":{}}}, + {"path":"/api/session/ses_a/inbox","json":{"data":[]}}, + {"path":"/api/session/ses_b","json":{"data":{"id":"ses_b","title":"Write the release notes for the next version","projectID":"proj_test","cost":0,"tokens":{"input":0,"output":0,"reasoning":0,"cache":{"read":0,"write":0}},"time":{"created":1,"updated":1},"location":{"directory":"/tmp/opencode/packages/tui"}}}}, + {"path":"/api/session/ses_b/message","json":{"data":[{"id":"msg_2","type":"assistant","agent":"build","model":{"providerID":"provider","id":"model"},"content":[{"type":"text","text":"The notes are written."}],"finish":"stop","time":{"created":2,"completed":3}},{"id":"msg_1","type":"user","text":"Why?","time":{"created":1}}],"cursor":{}}}, + {"path":"/api/session/ses_b/inbox","json":{"data":[]}} + ], + "steps": [ + {"checkpoint":"first","until":"The parser drops the last token.","fixture":"E.12/rail-resize/first"}, + {"event":{"id":"evt_1","created":3,"type":"tui.session.select","location":{"directory":"/tmp/opencode/packages/tui"},"data":{"sessionID":"ses_b"}}}, + {"checkpoint":"rail","until":"The notes are written.","fixture":"E.12/rail-resize/rail"}, + {"drag":[[41,10],[30,10]]}, + {"checkpoint":"resized","until":"The notes are written.","fixture":"E.12/rail-resize/resized"}, + {"drag":[[30,10],[8,10]]}, + {"checkpoint":"compact","until":"The notes are written.","deviation":[{"file":"OT094-blank-row-fg","cells":8}],"fixture":"E.12/rail-resize/compact"} + ], + "requests": { + "writes": [], + "reads": [ + {"method":"GET","path":"/api/agent","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":[]}}, + {"method":"GET","path":"/api/command","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":[]}}, + {"method":"GET","path":"/api/config","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":[]}, + {"method":"GET","path":"/api/experimental/job","query":{"descendants":["true"],"sessionID":["ses_a"],"status":["running"]},"status":200,"json":{"data":[]}}, + {"method":"GET","path":"/api/experimental/job","query":{"descendants":["true"],"sessionID":["ses_b"],"status":["running"]},"status":200,"json":{"data":[]}}, + {"method":"GET","path":"/api/experimental/migration/v1","query":{},"status":200,"json":{"status":"completed"}}, + {"method":"GET","path":"/api/experimental/session/ses_a/terminal","query":{},"status":200,"json":{"data":[]}}, + {"method":"GET","path":"/api/experimental/session/ses_b/terminal","query":{},"status":200,"json":{"data":[]}}, + {"method":"GET","path":"/api/form","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode"}},"data":[]}}, + {"method":"GET","path":"/api/fs/list","query":{"location[directory]":["<cwd>"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":[]}}, + {"method":"GET","path":"/api/info","query":{},"status":200,"json":{"version":"test","pid":0,"urls":[],"paths":{"tmp":"/tmp"},"capabilities":{"persistentPty":true}}}, + {"method":"GET","path":"/api/integration","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":[]}}, + {"method":"GET","path":"/api/location","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}}}, + {"method":"GET","path":"/api/mcp","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":[]}}, + {"method":"GET","path":"/api/mcp/resource","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":{"resources":[],"templates":[]}}}, + {"method":"GET","path":"/api/model","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":[]}}, + {"method":"GET","path":"/api/plugin","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":[]}}, + {"method":"GET","path":"/api/project","query":{},"status":200,"json":[]}, + {"method":"GET","path":"/api/provider","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":[]}}, + {"method":"GET","path":"/api/reference","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode/packages/tui","canonical":"/tmp/opencode/packages/tui"}},"data":[]}}, + {"method":"GET","path":"/api/session","query":{"limit":["200"],"order":["desc"],"parentID":["ses_a"]},"status":200,"json":{"data":[],"cursor":{}}}, + {"method":"GET","path":"/api/session","query":{"limit":["200"],"order":["desc"],"parentID":["ses_b"]},"status":200,"json":{"data":[],"cursor":{}}}, + {"method":"GET","path":"/api/session/active","query":{},"status":200,"json":{"data":{}}}, + {"method":"GET","path":"/api/session/ses_a","query":{},"status":200,"json":{"data":{"id":"ses_a","title":"Fix the parser","projectID":"proj_test","cost":0,"tokens":{"input":0,"output":0,"reasoning":0,"cache":{"read":0,"write":0}},"time":{"created":2,"updated":2},"location":{"directory":"/tmp/opencode/packages/tui"}}}}, + {"method":"GET","path":"/api/session/ses_a/form","query":{},"status":200,"json":{"data":[]}}, + {"method":"GET","path":"/api/session/ses_a/inbox","query":{},"status":200,"json":{"data":[]}}, + {"method":"GET","path":"/api/session/ses_a/message","query":{"limit":["20"],"order":["desc"]},"status":200,"json":{"data":[{"id":"msg_2","type":"assistant","agent":"build","model":{"providerID":"provider","id":"model"},"content":[{"type":"text","text":"The parser drops the last token."}],"finish":"stop","time":{"created":2,"completed":3}},{"id":"msg_1","type":"user","text":"Why?","time":{"created":1}}],"cursor":{}}}, + {"method":"GET","path":"/api/session/ses_a/permission","query":{},"status":200,"json":{"data":[]}}, + {"method":"GET","path":"/api/session/ses_b","query":{},"status":200,"json":{"data":{"id":"ses_b","title":"Write the release notes for the next version","projectID":"proj_test","cost":0,"tokens":{"input":0,"output":0,"reasoning":0,"cache":{"read":0,"write":0}},"time":{"created":1,"updated":1},"location":{"directory":"/tmp/opencode/packages/tui"}}}}, + {"method":"GET","path":"/api/session/ses_b/form","query":{},"status":200,"json":{"data":[]}}, + {"method":"GET","path":"/api/session/ses_b/inbox","query":{},"status":200,"json":{"data":[]}}, + {"method":"GET","path":"/api/session/ses_b/message","query":{"limit":["20"],"order":["desc"]},"status":200,"json":{"data":[{"id":"msg_2","type":"assistant","agent":"build","model":{"providerID":"provider","id":"model"},"content":[{"type":"text","text":"The notes are written."}],"finish":"stop","time":{"created":2,"completed":3}},{"id":"msg_1","type":"user","text":"Why?","time":{"created":1}}],"cursor":{}}}, + {"method":"GET","path":"/api/session/ses_b/permission","query":{},"status":200,"json":{"data":[]}}, + {"method":"GET","path":"/api/shell","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":[]}}, + {"method":"GET","path":"/api/skill","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":[]}}, + {"method":"GET","path":"/api/vcs","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":{"branch":{"current":"main","default":"main"}}}}, + {"method":"POST","path":"/api/rpc/opencode.goal/get","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"body":{"input":{"sessionID":"ses_a"}},"status":200,"json":{"output":null}}, + {"method":"POST","path":"/api/rpc/opencode.goal/get","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"body":{"input":{"sessionID":"ses_b"}},"status":200,"json":{"output":null}} + ] + } +} diff --git a/packages/cli-rs/parity/fixtures/E.12/rail-resize/compact.json b/packages/cli-rs/parity/fixtures/E.12/rail-resize/compact.json new file mode 100644 index 000000000000..9954b1a9b041 --- /dev/null +++ b/packages/cli-rs/parity/fixtures/E.12/rail-resize/compact.json @@ -0,0 +1,32 @@ +{"width":120,"height":30,"styles":["#141414ff #141414ff 0","#ffffffff #202020ff 0","#ffffffff #080808ff 0","#ffffffff #141414ff 0","#808080ff #141414ff 0","#7699feff #141414ff 0","#202020ff #141414ff 0","#ffffffff #202020ff 1","#eeeeeeff #080808ff 0","#7e7e7eff #141414ff 0","#7699feff #080808ff 0","#808080ff #080808ff 0","#484848ff #080808ff 0","#202020ff #080808ff 0"],"lines":[ +["▄▄▄▄▄▄▄▄ ",[[0,8],[1,1],[2,111]]], +[" ⌕ ┃ ",[[3,4],[4,1],[3,3],[1,1],[2,2],[5,1],[3,106],[2,2]]], +[" ┃ Why? ",[[3,8],[1,1],[2,2],[5,1],[3,106],[2,2]]], +[" F ┃ ",[[3,4],[4,1],[3,3],[1,1],[2,2],[5,1],[3,106],[2,2]]], +["▄▄▄▄▄▄▄▄ ",[[6,8],[1,1],[2,111]]], +[" W The notes are written. ",[[1,4],[7,1],[1,4],[2,5],[8,22],[2,84]]], +["▀▀▀▀▀▀▀▀ ",[[6,8],[1,1],[2,111]]], +[" + Build · provider/model · 2ms ",[[3,4],[9,1],[3,3],[1,1],[2,5],[10,5],[11,23],[2,78]]], +[" ",[[3,8],[1,1],[2,111]]], +[" ",[[3,8],[1,1],[2,111]]], +[" ",[[3,8],[1,1],[2,111]]], +[" ",[[3,8],[1,1],[2,111]]], +[" ",[[3,8],[1,1],[2,111]]], +[" ",[[3,8],[1,1],[2,111]]], +[" ",[[3,8],[1,1],[2,111]]], +[" ",[[3,8],[1,1],[2,111]]], +[" ",[[3,8],[1,1],[2,111]]], +[" ",[[3,8],[1,1],[2,111]]], +[" ",[[3,8],[1,1],[2,111]]], +[" ",[[3,8],[1,1],[2,111]]], +[" ",[[3,8],[1,1],[2,111]]], +[" ",[[3,8],[1,1],[2,111]]], +[" ",[[3,8],[1,1],[2,111]]], +[" ┃ ",[[3,8],[1,1],[2,2],[12,1],[1,106],[2,2]]], +[" ┃ ",[[3,8],[1,1],[2,2],[12,1],[1,106],[2,2]]], +[" ┃ ",[[3,8],[1,1],[2,2],[12,1],[1,106],[2,2]]], +[" ┃ ",[[3,8],[1,1],[2,2],[12,1],[1,106],[2,2]]], +[" ╹▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀ ",[[3,8],[1,1],[2,2],[12,1],[13,106],[2,2]]], +[" /tmp/opencode/packages/tui:main shift+tab agents ctrl+p commands ",[[3,8],[1,1],[2,2],[11,31],[2,53],[11,6],[2,9],[11,8],[2,2]]], +[" ",[[3,8],[1,1],[2,111]]] +]} diff --git a/packages/cli-rs/parity/fixtures/E.12/rail-resize/first.json b/packages/cli-rs/parity/fixtures/E.12/rail-resize/first.json new file mode 100644 index 000000000000..9b41a61cc08b --- /dev/null +++ b/packages/cli-rs/parity/fixtures/E.12/rail-resize/first.json @@ -0,0 +1,32 @@ +{"width":120,"height":30,"styles":["#ffffffff #141414ff 0","#ffffffff #080808ff 0","#ffffffff #141414ff 1","#7699feff #141414ff 0","#5a5a5aff #141414ff 0","#7e7e7eff #141414ff 0","#808080ff #141414ff 0","#eeeeeeff #080808ff 0","#7699feff #080808ff 0","#808080ff #080808ff 0","#484848ff #080808ff 0","#ffffffff #202020ff 0","#202020ff #080808ff 0"],"lines":[ +[" ",[[0,42],[1,78]]], +[" Fix the parser ┃ ",[[0,3],[2,14],[0,25],[1,2],[3,1],[0,73],[1,2]]], +[" tui ┃ Why? ",[[0,3],[4,3],[0,36],[1,2],[3,1],[0,73],[1,2]]], +[" ┃ ",[[0,42],[1,2],[3,1],[0,73],[1,2]]], +[" + New session ",[[0,1],[5,1],[0,1],[6,11],[0,28],[1,78]]], +[" The parser drops the last token. ",[[0,42],[1,5],[7,32],[1,41]]], +[" ",[[0,42],[1,78]]], +[" Build · provider/model · 2ms ",[[0,42],[1,5],[8,5],[9,23],[1,45]]], +[" ",[[0,42],[1,78]]], +[" ",[[0,42],[1,78]]], +[" ",[[0,42],[1,78]]], +[" ",[[0,42],[1,78]]], +[" ",[[0,42],[1,78]]], +[" ",[[0,42],[1,78]]], +[" ",[[0,42],[1,78]]], +[" ",[[0,42],[1,78]]], +[" ",[[0,42],[1,78]]], +[" ",[[0,42],[1,78]]], +[" ",[[0,42],[1,78]]], +[" ",[[0,42],[1,78]]], +[" ",[[0,42],[1,78]]], +[" ",[[0,42],[1,78]]], +[" ",[[0,42],[1,78]]], +[" ┃ ",[[0,42],[1,2],[10,1],[11,73],[1,2]]], +[" ┃ ",[[0,42],[1,2],[10,1],[11,73],[1,2]]], +[" ┃ ",[[0,42],[1,2],[10,1],[11,73],[1,2]]], +[" ┃ ",[[0,42],[1,2],[10,1],[11,73],[1,2]]], +[" ╹▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀ ",[[0,42],[1,2],[10,1],[12,73],[1,2]]], +[" /tmp/opencode/packages/tui:main shift+tab agents ctrl+p commands ",[[0,42],[1,2],[9,31],[1,20],[9,6],[1,9],[9,8],[1,2]]], +[" ",[[0,42],[1,78]]] +]} diff --git a/packages/cli-rs/parity/fixtures/E.12/rail-resize/rail.json b/packages/cli-rs/parity/fixtures/E.12/rail-resize/rail.json new file mode 100644 index 000000000000..d03438834b81 --- /dev/null +++ b/packages/cli-rs/parity/fixtures/E.12/rail-resize/rail.json @@ -0,0 +1,32 @@ +{"width":120,"height":30,"styles":["#ffffffff #141414ff 0","#ffffffff #080808ff 0","#808080ff #141414ff 0","#7699feff #141414ff 0","#5a5a5aff #141414ff 0","#ffffffff #141414ff 1","#d0d0d0ff #141414ff 1","#989898ff #141414ff 1","#5f5f5fff #141414ff 1","#272727ff #141414ff 1","#eeeeeeff #080808ff 0","#7e7e7eff #141414ff 0","#7699feff #080808ff 0","#808080ff #080808ff 0","#484848ff #080808ff 0","#ffffffff #202020ff 0","#202020ff #080808ff 0"],"lines":[ +[" ",[[0,42],[1,78]]], +[" Fix the parser ┃ ",[[0,3],[2,14],[0,25],[1,2],[3,1],[0,73],[1,2]]], +[" tui ┃ Why? ",[[0,3],[4,3],[0,36],[1,2],[3,1],[0,73],[1,2]]], +[" ┃ ",[[0,42],[1,2],[3,1],[0,73],[1,2]]], +[" Write the release notes for the next v ",[[0,3],[5,34],[6,1],[7,1],[8,1],[9,1],[0,1],[1,78]]], +[" tui The notes are written. ",[[0,3],[4,3],[0,36],[1,5],[10,22],[1,51]]], +[" ",[[0,42],[1,78]]], +[" + New session Build · provider/model · 2ms ",[[0,1],[11,1],[0,1],[2,11],[0,28],[1,5],[12,5],[13,23],[1,45]]], +[" ",[[0,42],[1,78]]], +[" ",[[0,42],[1,78]]], +[" ",[[0,42],[1,78]]], +[" ",[[0,42],[1,78]]], +[" ",[[0,42],[1,78]]], +[" ",[[0,42],[1,78]]], +[" ",[[0,42],[1,78]]], +[" ",[[0,42],[1,78]]], +[" ",[[0,42],[1,78]]], +[" ",[[0,42],[1,78]]], +[" ",[[0,42],[1,78]]], +[" ",[[0,42],[1,78]]], +[" ",[[0,42],[1,78]]], +[" ",[[0,42],[1,78]]], +[" ",[[0,42],[1,78]]], +[" ┃ ",[[0,42],[1,2],[14,1],[15,73],[1,2]]], +[" ┃ ",[[0,42],[1,2],[14,1],[15,73],[1,2]]], +[" ┃ ",[[0,42],[1,2],[14,1],[15,73],[1,2]]], +[" ┃ ",[[0,42],[1,2],[14,1],[15,73],[1,2]]], +[" ╹▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀ ",[[0,42],[1,2],[14,1],[16,73],[1,2]]], +[" /tmp/opencode/packages/tui:main shift+tab agents ctrl+p commands ",[[0,42],[1,2],[13,31],[1,20],[13,6],[1,9],[13,8],[1,2]]], +[" ",[[0,42],[1,78]]] +]} diff --git a/packages/cli-rs/parity/fixtures/E.12/rail-resize/resized.json b/packages/cli-rs/parity/fixtures/E.12/rail-resize/resized.json new file mode 100644 index 000000000000..18026527ce8a --- /dev/null +++ b/packages/cli-rs/parity/fixtures/E.12/rail-resize/resized.json @@ -0,0 +1,32 @@ +{"width":120,"height":30,"styles":["#ffffffff #141414ff 0","#ffffffff #202020ff 0","#ffffffff #080808ff 0","#808080ff #141414ff 0","#7699feff #141414ff 0","#5a5a5aff #141414ff 0","#ffffffff #141414ff 1","#d0d0d0ff #141414ff 1","#989898ff #141414ff 1","#5f5f5fff #141414ff 1","#272727ff #141414ff 1","#eeeeeeff #080808ff 0","#7e7e7eff #141414ff 0","#7699feff #080808ff 0","#808080ff #080808ff 0","#484848ff #080808ff 0","#202020ff #080808ff 0"],"lines":[ +[" ",[[0,30],[1,1],[2,89]]], +[" Fix the parser ┃ ",[[0,3],[3,14],[0,13],[1,1],[2,2],[4,1],[0,84],[2,2]]], +[" tui ┃ Why? ",[[0,3],[5,3],[0,24],[1,1],[2,2],[4,1],[0,84],[2,2]]], +[" ┃ ",[[0,30],[1,1],[2,2],[4,1],[0,84],[2,2]]], +[" Write the release notes for ",[[0,3],[6,23],[7,1],[8,1],[9,1],[10,1],[1,1],[2,89]]], +[" tui The notes are written. ",[[0,3],[5,3],[0,24],[1,1],[2,5],[11,22],[2,62]]], +[" ",[[0,30],[1,1],[2,89]]], +[" + New session Build · provider/model · 2ms ",[[0,1],[12,1],[0,1],[3,11],[0,16],[1,1],[2,5],[13,5],[14,23],[2,56]]], +[" ",[[0,30],[1,1],[2,89]]], +[" ",[[0,30],[1,1],[2,89]]], +[" ",[[0,30],[1,1],[2,89]]], +[" ",[[0,30],[1,1],[2,89]]], +[" ",[[0,30],[1,1],[2,89]]], +[" ",[[0,30],[1,1],[2,89]]], +[" ",[[0,30],[1,1],[2,89]]], +[" ",[[0,30],[1,1],[2,89]]], +[" ",[[0,30],[1,1],[2,89]]], +[" ",[[0,30],[1,1],[2,89]]], +[" ",[[0,30],[1,1],[2,89]]], +[" ",[[0,30],[1,1],[2,89]]], +[" ",[[0,30],[1,1],[2,89]]], +[" ",[[0,30],[1,1],[2,89]]], +[" ",[[0,30],[1,1],[2,89]]], +[" ┃ ",[[0,30],[1,1],[2,2],[15,1],[1,84],[2,2]]], +[" ┃ ",[[0,30],[1,1],[2,2],[15,1],[1,84],[2,2]]], +[" ┃ ",[[0,30],[1,1],[2,2],[15,1],[1,84],[2,2]]], +[" ┃ ",[[0,30],[1,1],[2,2],[15,1],[1,84],[2,2]]], +[" ╹▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀ ",[[0,30],[1,1],[2,2],[15,1],[16,84],[2,2]]], +[" /tmp/opencode/packages/tui:main shift+tab agents ctrl+p commands ",[[0,30],[1,1],[2,2],[14,31],[2,31],[14,6],[2,9],[14,8],[2,2]]], +[" ",[[0,30],[1,1],[2,89]]] +]} diff --git a/packages/cli-rs/parity/fixtures/E.12/tab-strip.app.json b/packages/cli-rs/parity/fixtures/E.12/tab-strip.app.json new file mode 100644 index 000000000000..a5358f55ba97 --- /dev/null +++ b/packages/cli-rs/parity/fixtures/E.12/tab-strip.app.json @@ -0,0 +1,79 @@ +{ + "scenario": "E.12/tab-strip", + "width": 100, + "height": 30, + "directory": "/tmp/opencode/packages/tui", + "config": { + "experimental": {"new-designs":true}, + "animations": false, + "theme": {"name":"opencode"} + }, + "args": { + "sessionID": "ses_a" + }, + "routes": [ + {"path":"/api/session/ses_a","json":{"data":{"id":"ses_a","title":"Fix the parser","projectID":"proj_test","cost":0,"tokens":{"input":0,"output":0,"reasoning":0,"cache":{"read":0,"write":0}},"time":{"created":2,"updated":2},"location":{"directory":"/tmp/opencode/packages/tui"}}}}, + {"path":"/api/session/ses_a/message","json":{"data":[{"id":"msg_2","type":"assistant","agent":"build","model":{"providerID":"provider","id":"model"},"content":[{"type":"text","text":"The parser drops the last token."}],"finish":"stop","time":{"created":2,"completed":3}},{"id":"msg_1","type":"user","text":"Why?","time":{"created":1}}],"cursor":{}}}, + {"path":"/api/session/ses_a/inbox","json":{"data":[]}}, + {"path":"/api/session/ses_b","json":{"data":{"id":"ses_b","title":"Write the docs","projectID":"proj_test","cost":0,"tokens":{"input":0,"output":0,"reasoning":0,"cache":{"read":0,"write":0}},"time":{"created":2,"updated":5,"idle":5},"location":{"directory":"/tmp/opencode/packages/tui"}}}}, + {"path":"/api/session/ses_b/message","json":{"data":[{"id":"msg_2","type":"assistant","agent":"build","model":{"providerID":"provider","id":"model"},"content":[{"type":"text","text":"The docs are written."}],"finish":"stop","time":{"created":2,"completed":3}},{"id":"msg_1","type":"user","text":"Why?","time":{"created":1}}],"cursor":{}}}, + {"path":"/api/session/ses_b/inbox","json":{"data":[]}}, + {"method":"POST","path":"/api/session/:sessionID/view"} + ], + "steps": [ + {"checkpoint":"one","until":"The parser drops the last token.","fixture":"E.12/tab-strip/one"}, + {"event":{"id":"evt_1","created":3,"type":"tui.session.select","location":{"directory":"/tmp/opencode/packages/tui"},"data":{"sessionID":"ses_b"}}}, + {"checkpoint":"two","until":"The docs are written.","fixture":"E.12/tab-strip/two"}, + {"keys":["ctrl+x","1"]}, + {"checkpoint":"unread","until":"The parser drops the last token.","fixture":"E.12/tab-strip/unread"}, + {"keys":["ctrl+x","w"]}, + {"checkpoint":"closed","until":"The docs are written.","fixture":"E.12/tab-strip/closed"}, + {"keys":["ctrl+shift+t"]}, + {"checkpoint":"reopened","until":"The parser drops the last token.","fixture":"E.12/tab-strip/reopened"}, + {"keys":["ctrl+x","n"]}, + {"checkpoint":"new","until":"New session","masks":[{"x":16,"y":17,"width":72,"height":1,"reason":"the home placeholder example: random in TS and Rust"}],"fixture":"E.12/tab-strip/new"} + ], + "requests": { + "writes": [], + "reads": [ + {"method":"GET","path":"/api/agent","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":[]}}, + {"method":"GET","path":"/api/command","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":[]}}, + {"method":"GET","path":"/api/config","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":[]}, + {"method":"GET","path":"/api/experimental/job","query":{"descendants":["true"],"sessionID":["ses_a"],"status":["running"]},"status":200,"json":{"data":[]}}, + {"method":"GET","path":"/api/experimental/job","query":{"descendants":["true"],"sessionID":["ses_b"],"status":["running"]},"status":200,"json":{"data":[]}}, + {"method":"GET","path":"/api/experimental/migration/v1","query":{},"status":200,"json":{"status":"completed"}}, + {"method":"GET","path":"/api/experimental/session/ses_a/terminal","query":{},"status":200,"json":{"data":[]}}, + {"method":"GET","path":"/api/experimental/session/ses_b/terminal","query":{},"status":200,"json":{"data":[]}}, + {"method":"GET","path":"/api/form","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode"}},"data":[]}}, + {"method":"GET","path":"/api/fs/list","query":{"location[directory]":["<cwd>"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":[]}}, + {"method":"GET","path":"/api/info","query":{},"status":200,"json":{"version":"test","pid":0,"urls":[],"paths":{"tmp":"/tmp"},"capabilities":{"persistentPty":true}}}, + {"method":"GET","path":"/api/integration","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":[]}}, + {"method":"GET","path":"/api/location","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}}}, + {"method":"GET","path":"/api/mcp","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":[]}}, + {"method":"GET","path":"/api/mcp/resource","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":{"resources":[],"templates":[]}}}, + {"method":"GET","path":"/api/model","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":[]}}, + {"method":"GET","path":"/api/plugin","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":[]}}, + {"method":"GET","path":"/api/project","query":{},"status":200,"json":[]}, + {"method":"GET","path":"/api/provider","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":[]}}, + {"method":"GET","path":"/api/reference","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode/packages/tui","canonical":"/tmp/opencode/packages/tui"}},"data":[]}}, + {"method":"GET","path":"/api/session","query":{"limit":["200"],"order":["desc"],"parentID":["ses_a"]},"status":200,"json":{"data":[],"cursor":{}}}, + {"method":"GET","path":"/api/session","query":{"limit":["200"],"order":["desc"],"parentID":["ses_b"]},"status":200,"json":{"data":[],"cursor":{}}}, + {"method":"GET","path":"/api/session/active","query":{},"status":200,"json":{"data":{}}}, + {"method":"GET","path":"/api/session/ses_a","query":{},"status":200,"json":{"data":{"id":"ses_a","title":"Fix the parser","projectID":"proj_test","cost":0,"tokens":{"input":0,"output":0,"reasoning":0,"cache":{"read":0,"write":0}},"time":{"created":2,"updated":2},"location":{"directory":"/tmp/opencode/packages/tui"}}}}, + {"method":"GET","path":"/api/session/ses_a/form","query":{},"status":200,"json":{"data":[]}}, + {"method":"GET","path":"/api/session/ses_a/inbox","query":{},"status":200,"json":{"data":[]}}, + {"method":"GET","path":"/api/session/ses_a/message","query":{"limit":["20"],"order":["desc"]},"status":200,"json":{"data":[{"id":"msg_2","type":"assistant","agent":"build","model":{"providerID":"provider","id":"model"},"content":[{"type":"text","text":"The parser drops the last token."}],"finish":"stop","time":{"created":2,"completed":3}},{"id":"msg_1","type":"user","text":"Why?","time":{"created":1}}],"cursor":{}}}, + {"method":"GET","path":"/api/session/ses_a/permission","query":{},"status":200,"json":{"data":[]}}, + {"method":"GET","path":"/api/session/ses_b","query":{},"status":200,"json":{"data":{"id":"ses_b","title":"Write the docs","projectID":"proj_test","cost":0,"tokens":{"input":0,"output":0,"reasoning":0,"cache":{"read":0,"write":0}},"time":{"created":2,"updated":5,"idle":5},"location":{"directory":"/tmp/opencode/packages/tui"}}}}, + {"method":"GET","path":"/api/session/ses_b/form","query":{},"status":200,"json":{"data":[]}}, + {"method":"GET","path":"/api/session/ses_b/inbox","query":{},"status":200,"json":{"data":[]}}, + {"method":"GET","path":"/api/session/ses_b/message","query":{"limit":["20"],"order":["desc"]},"status":200,"json":{"data":[{"id":"msg_2","type":"assistant","agent":"build","model":{"providerID":"provider","id":"model"},"content":[{"type":"text","text":"The docs are written."}],"finish":"stop","time":{"created":2,"completed":3}},{"id":"msg_1","type":"user","text":"Why?","time":{"created":1}}],"cursor":{}}}, + {"method":"GET","path":"/api/session/ses_b/permission","query":{},"status":200,"json":{"data":[]}}, + {"method":"GET","path":"/api/shell","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":[]}}, + {"method":"GET","path":"/api/skill","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":[]}}, + {"method":"GET","path":"/api/vcs","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":{"branch":{"current":"main","default":"main"}}}}, + {"method":"POST","path":"/api/rpc/opencode.goal/get","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"body":{"input":{"sessionID":"ses_a"}},"status":200,"json":{"output":null}}, + {"method":"POST","path":"/api/rpc/opencode.goal/get","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"body":{"input":{"sessionID":"ses_b"}},"status":200,"json":{"output":null}} + ] + } +} diff --git a/packages/cli-rs/parity/fixtures/E.12/tab-strip/closed.json b/packages/cli-rs/parity/fixtures/E.12/tab-strip/closed.json new file mode 100644 index 000000000000..42a0cf5f8a28 --- /dev/null +++ b/packages/cli-rs/parity/fixtures/E.12/tab-strip/closed.json @@ -0,0 +1,32 @@ +{"width":100,"height":30,"styles":["#ffffffff #202020ff 0","#93a2b7ff #202020ff 1","#ffffffff #202020ff 1","#808080ff #080808ff 0","#ffffffff #080808ff 0","#7699feff #141414ff 0","#ffffffff #141414ff 0","#eeeeeeff #080808ff 0","#7699feff #080808ff 0","#484848ff #080808ff 0","#202020ff #080808ff 0"],"lines":[ +[" • Write the docs + ",[[0,1],[1,1],[0,1],[2,14],[0,15],[3,3],[4,65]]], +[" ",[[4,100]]], +[" ┃ ",[[4,2],[5,1],[6,95],[4,2]]], +[" ┃ Why? ",[[4,2],[5,1],[6,95],[4,2]]], +[" ┃ ",[[4,2],[5,1],[6,95],[4,2]]], +[" ",[[4,100]]], +[" The docs are written. ",[[4,5],[7,21],[4,74]]], +[" ",[[4,100]]], +[" Build · provider/model · 2ms ",[[4,5],[8,5],[3,23],[4,67]]], +[" ",[[4,100]]], +[" ",[[4,100]]], +[" ",[[4,100]]], +[" ",[[4,100]]], +[" ",[[4,100]]], +[" ",[[4,100]]], +[" ",[[4,100]]], +[" ",[[4,100]]], +[" ",[[4,100]]], +[" ",[[4,100]]], +[" ",[[4,100]]], +[" ",[[4,100]]], +[" ",[[4,100]]], +[" ",[[4,100]]], +[" ┃ ",[[4,2],[9,1],[0,95],[4,2]]], +[" ┃ ",[[4,2],[9,1],[0,95],[4,2]]], +[" ┃ ",[[4,2],[9,1],[0,95],[4,2]]], +[" ┃ ",[[4,2],[9,1],[0,95],[4,2]]], +[" ╹▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀ ",[[4,2],[9,1],[10,95],[4,2]]], +[" /tmp/opencode/packages/tui:main shift+tab agents ctrl+p commands ",[[4,2],[3,31],[4,42],[3,6],[4,9],[3,8],[4,2]]], +[" ",[[4,100]]] +]} diff --git a/packages/cli-rs/parity/fixtures/E.12/tab-strip/new.json b/packages/cli-rs/parity/fixtures/E.12/tab-strip/new.json new file mode 100644 index 000000000000..716cc10e9d94 --- /dev/null +++ b/packages/cli-rs/parity/fixtures/E.12/tab-strip/new.json @@ -0,0 +1,32 @@ +{"width":100,"height":30,"styles":["#ffffffff #080808ff 0","#808080ff #080808ff 0","#ffffffff@default #1e2124ff 0","#93a2b7ff #1e2124ff 0","#828486ff #1d2023ff 0","#828486ff #1c1e21ff 0","#828385ff #1a1b1eff 0","#818384ff #17181aff 0","#818283ff #131416ff 0","#818182ff #101112ff 0","#808181ff #0d0d0eff 0","#808081ff #0a0b0bff 0","#808080ff #090909ff 0","#ffffffff@default #080808ff 0","#ffffffff #202020ff 0","#c7c7c7ff #202020ff 1","#ffffffff #202020ff 1","#ffffffff #080808ff 1","#808080ff #262626ff 0","#ffffffff #464646ff 1","#262626ff #080808ff 0","#484848ff #080808ff 0","#00000000 #00000000 0","#202020ff #080808ff 0"],"lines":[ +[" Fix the parser • Write the docs + New session ",[[0,3],[1,14],[0,15],[2,1],[3,1],[2,1],[4,1],[5,1],[6,1],[7,1],[8,1],[9,1],[10,1],[11,1],[12,1],[1,5],[13,15],[14,1],[15,1],[14,1],[16,11],[14,18],[0,4]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ▄ ",[[0,31],[1,19],[0,1],[17,19],[0,30]]], +[" █▀▀█ █▀▀█ █▀▀█ █▀▀▄ █▀▀▀ █▀▀█ █▀▀█ █▀▀█ ",[[0,31],[1,19],[0,1],[17,19],[0,30]]], +[" █ █ █ █ █▀▀▀ █ █ █ █ █ █ █ █▀▀▀ ",[[0,31],[1,1],[18,2],[1,3],[18,2],[1,3],[18,3],[1,2],[18,2],[1,1],[0,1],[17,1],[19,3],[17,2],[19,2],[17,3],[19,2],[17,3],[19,3],[0,30]]], +[" ▀▀▀▀ █▀▀▀ ▀▀▀▀ ▀▀▀▀ ▀▀▀▀ ▀▀▀▀ ▀▀▀▀ ▀▀▀▀ ",[[0,31],[1,16],[20,2],[1,1],[0,1],[17,19],[0,30]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ┃ ",[[0,13],[21,1],[14,74],[0,12]]], +[" ┃ ",[[0,13],[21,1],[14,2],[22,72],[0,12]]], +[" ┃ ",[[0,13],[21,1],[14,74],[0,12]]], +[" ┃ ",[[0,13],[21,1],[14,74],[0,12]]], +[" ╹▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀ ",[[0,13],[21,1],[23,74],[0,12]]], +[" /tmp/opencode/packages/tui:main shift+tab agents ctrl+p commands ",[[0,13],[1,31],[0,21],[1,6],[0,9],[1,8],[0,12]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" test ",[[0,94],[1,4],[0,2]]], +[" ",[[0,100]]] +]} diff --git a/packages/cli-rs/parity/fixtures/E.12/tab-strip/one.json b/packages/cli-rs/parity/fixtures/E.12/tab-strip/one.json new file mode 100644 index 000000000000..2a2e22b04ff5 --- /dev/null +++ b/packages/cli-rs/parity/fixtures/E.12/tab-strip/one.json @@ -0,0 +1,32 @@ +{"width":100,"height":30,"styles":["#ffffffff #202020ff 0","#ffffffff #202020ff 1","#808080ff #080808ff 0","#ffffffff #080808ff 0","#7699feff #141414ff 0","#ffffffff #141414ff 0","#eeeeeeff #080808ff 0","#7699feff #080808ff 0","#484848ff #080808ff 0","#202020ff #080808ff 0"],"lines":[ +[" Fix the parser + ",[[0,3],[1,14],[0,15],[2,3],[3,65]]], +[" ",[[3,100]]], +[" ┃ ",[[3,2],[4,1],[5,95],[3,2]]], +[" ┃ Why? ",[[3,2],[4,1],[5,95],[3,2]]], +[" ┃ ",[[3,2],[4,1],[5,95],[3,2]]], +[" ",[[3,100]]], +[" The parser drops the last token. ",[[3,5],[6,32],[3,63]]], +[" ",[[3,100]]], +[" Build · provider/model · 2ms ",[[3,5],[7,5],[2,23],[3,67]]], +[" ",[[3,100]]], +[" ",[[3,100]]], +[" ",[[3,100]]], +[" ",[[3,100]]], +[" ",[[3,100]]], +[" ",[[3,100]]], +[" ",[[3,100]]], +[" ",[[3,100]]], +[" ",[[3,100]]], +[" ",[[3,100]]], +[" ",[[3,100]]], +[" ",[[3,100]]], +[" ",[[3,100]]], +[" ",[[3,100]]], +[" ┃ ",[[3,2],[8,1],[0,95],[3,2]]], +[" ┃ ",[[3,2],[8,1],[0,95],[3,2]]], +[" ┃ ",[[3,2],[8,1],[0,95],[3,2]]], +[" ┃ ",[[3,2],[8,1],[0,95],[3,2]]], +[" ╹▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀ ",[[3,2],[8,1],[9,95],[3,2]]], +[" /tmp/opencode/packages/tui:main shift+tab agents ctrl+p commands ",[[3,2],[2,31],[3,42],[2,6],[3,9],[2,8],[3,2]]], +[" ",[[3,100]]] +]} diff --git a/packages/cli-rs/parity/fixtures/E.12/tab-strip/reopened.json b/packages/cli-rs/parity/fixtures/E.12/tab-strip/reopened.json new file mode 100644 index 000000000000..1de6a79edb39 --- /dev/null +++ b/packages/cli-rs/parity/fixtures/E.12/tab-strip/reopened.json @@ -0,0 +1,32 @@ +{"width":100,"height":30,"styles":["#ffffffff #202020ff 0","#ffffffff #202020ff 1","#ffffffff@default #1e2124ff 0","#93a2b7ff #1e2124ff 0","#828486ff #1d2023ff 0","#828486ff #1c1e21ff 0","#828385ff #1a1b1eff 0","#818384ff #17181aff 0","#818283ff #131416ff 0","#818182ff #101112ff 0","#808181ff #0d0d0eff 0","#808081ff #0a0b0bff 0","#808080ff #090909ff 0","#808080ff #080808ff 0","#ffffffff@default #080808ff 0","#ffffffff #080808ff 0","#7699feff #141414ff 0","#ffffffff #141414ff 0","#eeeeeeff #080808ff 0","#7699feff #080808ff 0","#484848ff #080808ff 0","#202020ff #080808ff 0"],"lines":[ +[" Fix the parser • Write the docs + ",[[0,3],[1,14],[0,15],[2,1],[3,1],[2,1],[4,1],[5,1],[6,1],[7,1],[8,1],[9,1],[10,1],[11,1],[12,1],[13,5],[14,15],[13,3],[15,33]]], +[" ",[[15,100]]], +[" ┃ ",[[15,2],[16,1],[17,95],[15,2]]], +[" ┃ Why? ",[[15,2],[16,1],[17,95],[15,2]]], +[" ┃ ",[[15,2],[16,1],[17,95],[15,2]]], +[" ",[[15,100]]], +[" The parser drops the last token. ",[[15,5],[18,32],[15,63]]], +[" ",[[15,100]]], +[" Build · provider/model · 2ms ",[[15,5],[19,5],[13,23],[15,67]]], +[" ",[[15,100]]], +[" ",[[15,100]]], +[" ",[[15,100]]], +[" ",[[15,100]]], +[" ",[[15,100]]], +[" ",[[15,100]]], +[" ",[[15,100]]], +[" ",[[15,100]]], +[" ",[[15,100]]], +[" ",[[15,100]]], +[" ",[[15,100]]], +[" ",[[15,100]]], +[" ",[[15,100]]], +[" ",[[15,100]]], +[" ┃ ",[[15,2],[20,1],[0,95],[15,2]]], +[" ┃ ",[[15,2],[20,1],[0,95],[15,2]]], +[" ┃ ",[[15,2],[20,1],[0,95],[15,2]]], +[" ┃ ",[[15,2],[20,1],[0,95],[15,2]]], +[" ╹▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀ ",[[15,2],[20,1],[21,95],[15,2]]], +[" /tmp/opencode/packages/tui:main shift+tab agents ctrl+p commands ",[[15,2],[13,31],[15,42],[13,6],[15,9],[13,8],[15,2]]], +[" ",[[15,100]]] +]} diff --git a/packages/cli-rs/parity/fixtures/E.12/tab-strip/two.json b/packages/cli-rs/parity/fixtures/E.12/tab-strip/two.json new file mode 100644 index 000000000000..02c5936a2803 --- /dev/null +++ b/packages/cli-rs/parity/fixtures/E.12/tab-strip/two.json @@ -0,0 +1,32 @@ +{"width":100,"height":30,"styles":["#ffffffff #080808ff 0","#808080ff #080808ff 0","#ffffffff #202020ff 0","#93a2b7ff #202020ff 1","#ffffffff #202020ff 1","#7699feff #141414ff 0","#ffffffff #141414ff 0","#eeeeeeff #080808ff 0","#7699feff #080808ff 0","#484848ff #080808ff 0","#202020ff #080808ff 0"],"lines":[ +[" Fix the parser • Write the docs + ",[[0,3],[1,14],[0,15],[2,1],[3,1],[2,1],[4,14],[2,15],[1,3],[0,33]]], +[" ",[[0,100]]], +[" ┃ ",[[0,2],[5,1],[6,95],[0,2]]], +[" ┃ Why? ",[[0,2],[5,1],[6,95],[0,2]]], +[" ┃ ",[[0,2],[5,1],[6,95],[0,2]]], +[" ",[[0,100]]], +[" The docs are written. ",[[0,5],[7,21],[0,74]]], +[" ",[[0,100]]], +[" Build · provider/model · 2ms ",[[0,5],[8,5],[1,23],[0,67]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ┃ ",[[0,2],[9,1],[2,95],[0,2]]], +[" ┃ ",[[0,2],[9,1],[2,95],[0,2]]], +[" ┃ ",[[0,2],[9,1],[2,95],[0,2]]], +[" ┃ ",[[0,2],[9,1],[2,95],[0,2]]], +[" ╹▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀ ",[[0,2],[9,1],[10,95],[0,2]]], +[" /tmp/opencode/packages/tui:main shift+tab agents ctrl+p commands ",[[0,2],[1,31],[0,42],[1,6],[0,9],[1,8],[0,2]]], +[" ",[[0,100]]] +]} diff --git a/packages/cli-rs/parity/fixtures/E.12/tab-strip/unread.json b/packages/cli-rs/parity/fixtures/E.12/tab-strip/unread.json new file mode 100644 index 000000000000..1de6a79edb39 --- /dev/null +++ b/packages/cli-rs/parity/fixtures/E.12/tab-strip/unread.json @@ -0,0 +1,32 @@ +{"width":100,"height":30,"styles":["#ffffffff #202020ff 0","#ffffffff #202020ff 1","#ffffffff@default #1e2124ff 0","#93a2b7ff #1e2124ff 0","#828486ff #1d2023ff 0","#828486ff #1c1e21ff 0","#828385ff #1a1b1eff 0","#818384ff #17181aff 0","#818283ff #131416ff 0","#818182ff #101112ff 0","#808181ff #0d0d0eff 0","#808081ff #0a0b0bff 0","#808080ff #090909ff 0","#808080ff #080808ff 0","#ffffffff@default #080808ff 0","#ffffffff #080808ff 0","#7699feff #141414ff 0","#ffffffff #141414ff 0","#eeeeeeff #080808ff 0","#7699feff #080808ff 0","#484848ff #080808ff 0","#202020ff #080808ff 0"],"lines":[ +[" Fix the parser • Write the docs + ",[[0,3],[1,14],[0,15],[2,1],[3,1],[2,1],[4,1],[5,1],[6,1],[7,1],[8,1],[9,1],[10,1],[11,1],[12,1],[13,5],[14,15],[13,3],[15,33]]], +[" ",[[15,100]]], +[" ┃ ",[[15,2],[16,1],[17,95],[15,2]]], +[" ┃ Why? ",[[15,2],[16,1],[17,95],[15,2]]], +[" ┃ ",[[15,2],[16,1],[17,95],[15,2]]], +[" ",[[15,100]]], +[" The parser drops the last token. ",[[15,5],[18,32],[15,63]]], +[" ",[[15,100]]], +[" Build · provider/model · 2ms ",[[15,5],[19,5],[13,23],[15,67]]], +[" ",[[15,100]]], +[" ",[[15,100]]], +[" ",[[15,100]]], +[" ",[[15,100]]], +[" ",[[15,100]]], +[" ",[[15,100]]], +[" ",[[15,100]]], +[" ",[[15,100]]], +[" ",[[15,100]]], +[" ",[[15,100]]], +[" ",[[15,100]]], +[" ",[[15,100]]], +[" ",[[15,100]]], +[" ",[[15,100]]], +[" ┃ ",[[15,2],[20,1],[0,95],[15,2]]], +[" ┃ ",[[15,2],[20,1],[0,95],[15,2]]], +[" ┃ ",[[15,2],[20,1],[0,95],[15,2]]], +[" ┃ ",[[15,2],[20,1],[0,95],[15,2]]], +[" ╹▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀ ",[[15,2],[20,1],[21,95],[15,2]]], +[" /tmp/opencode/packages/tui:main shift+tab agents ctrl+p commands ",[[15,2],[13,31],[15,42],[13,6],[15,9],[13,8],[15,2]]], +[" ",[[15,100]]] +]} diff --git a/packages/cli-rs/parity/fixtures/E.13a/terminal.app.json b/packages/cli-rs/parity/fixtures/E.13a/terminal.app.json new file mode 100644 index 000000000000..4aa84ee4f055 --- /dev/null +++ b/packages/cli-rs/parity/fixtures/E.13a/terminal.app.json @@ -0,0 +1,122 @@ +{ + "scenario": "E.13a/terminal", + "width": 100, + "height": 30, + "directory": "/tmp/opencode/packages/tui", + "config": { + "experimental": {"new-designs":true}, + "animations": false, + "theme": {"name":"opencode"} + }, + "args": { + "sessionID": "ses_t" + }, + "routes": [ + {"path":"/api/session/ses_t","json":{"data":{"id":"ses_t","title":"Run the tests","projectID":"proj_test","cost":0,"tokens":{"input":0,"output":0,"reasoning":0,"cache":{"read":0,"write":0}},"time":{"created":2,"updated":2},"location":{"directory":"/tmp/opencode/packages/tui"}}}}, + {"path":"/api/session/ses_t/message","json":{"data":[{"id":"msg_1","type":"user","text":"Open a terminal","time":{"created":1000}}],"cursor":{}}}, + {"path":"/api/session/ses_t/inbox","json":{"data":[]}}, + {"path":"/api/experimental/session/ses_t/terminal","json":{"data":[{"id":"pty_1","title":"Terminal","command":"/bin/sh","args":[],"cwd":"/tmp/opencode/packages/tui","status":"running","pid":42,"sessionID":"ses_t","foregroundProcess":null,"size":{"cols":80,"rows":24},"output":{"head":0,"tail":27}}]}}, + {"path":"/api/experimental/persistent-pty/pty_1/snapshot","json":{"data":{"info":{"id":"pty_1","title":"Terminal","command":"/bin/sh","args":[],"cwd":"/tmp/opencode/packages/tui","status":"running","pid":42,"sessionID":"ses_t","foregroundProcess":null,"size":{"cols":80,"rows":24},"output":{"head":0,"tail":27}},"text":"Welcome to the fake shell","checkpoint":"V2VsY29tZSB0byB0aGUgZmFrZSBzaGVsbA0K","cursor":{"x":0,"y":1}}}}, + {"method":"POST","path":"/api/experimental/persistent-pty/pty_1/connect-token","json":{"data":{"ticket":"ticket_1","expires_in":30}}} + ], + "steps": [ + {"checkpoint":"session","until":"Open a terminal","fixture":"E.13a/terminal/session"}, + {"keys":["ctrl+x","t"]}, + {"checkpoint":"shown","until":"fake shell","fixture":"E.13a/terminal/shown"}, + {"type":"echo hi"}, + {"keys":["enter"]}, + {"checkpoint":"typed","until":"echo hi","fixture":"E.13a/terminal/typed"}, + {"pty":{"output":"hi\r\n\u001b[31mred \u001b[34mblue \u001b[35mmagenta \u001b[92mgreen\u001b[0m\r\n$ "}}, + {"checkpoint":"output","fixture":"E.13a/terminal/output"}, + {"keys":["ctrl+x","up"]}, + {"checkpoint":"closed","fixture":"E.13a/terminal/closed"}, + {"keys":["ctrl+x","t"]}, + {"checkpoint":"reopened","until":"fake shell","fixture":"E.13a/terminal/reopened"}, + {"pty":{"close":true}}, + {"checkpoint":"disconnected","until":"Terminal disconnected","fixture":"E.13a/terminal/disconnected"} + ], + "sockets": [ + { + "path": "/api/experimental/persistent-pty/pty_1/connect", + "query": {"ticket":"ticket_1","cursor":"27","attachment_id":"<attachment>","takeover":"true","input_protocol":"1"}, + "sent": [ + {"step":2,"frame":[0,0,48,0,29]}, + {"step":3,"frame":[1,0,48,0,29,101]}, + {"step":3,"frame":[1,0,48,0,29,99]}, + {"step":3,"frame":[1,0,48,0,29,104]}, + {"step":3,"frame":[1,0,48,0,29,111]}, + {"step":3,"frame":[1,0,48,0,29,32]}, + {"step":3,"frame":[1,0,48,0,29,104]}, + {"step":3,"frame":[1,0,48,0,29,105]}, + {"step":4,"frame":[1,0,48,0,29,13]} + ], + "received": [ + {"step":2,"after":0,"text":"{\"type\":\"attached\",\"inputProtocol\":1,\"info\":{\"size\":{\"cols\":80,\"rows\":24}},\"role\":\"controller\"}"}, + {"step":2,"after":0,"binary":"JCA="}, + {"step":2,"after":0,"text":"{\"type\":\"replay_complete\"}"}, + {"step":2,"after":1,"text":"{\"type\":\"resized\",\"cols\":48,\"rows\":29,\"checkpoint\":\"V2VsY29tZSB0byB0aGUgZmFrZSBzaGVsbA0KJCA=\"}"}, + {"step":5,"after":9,"binary":"ZQ=="}, + {"step":5,"after":9,"binary":"Yw=="}, + {"step":5,"after":9,"binary":"aA=="}, + {"step":5,"after":9,"binary":"bw=="}, + {"step":5,"after":9,"binary":"IA=="}, + {"step":5,"after":9,"binary":"aA=="}, + {"step":5,"after":9,"binary":"aQ=="}, + {"step":5,"after":9,"binary":"DQo="}, + {"step":6,"after":9,"binary":"aGkNChtbMzFtcmVkIBtbMzRtYmx1ZSAbWzM1bW1hZ2VudGEgG1s5Mm1ncmVlbhtbMG0NCiQg"} + ] + }, + { + "path": "/api/experimental/persistent-pty/pty_1/connect", + "query": {"ticket":"ticket_1","cursor":"27","attachment_id":"<attachment>","takeover":"true","input_protocol":"1"}, + "sent": [ + {"step":11,"frame":[0,0,48,0,29]} + ], + "received": [ + {"step":11,"after":0,"text":"{\"type\":\"attached\",\"inputProtocol\":1,\"info\":{\"size\":{\"cols\":80,\"rows\":24}},\"role\":\"controller\"}"}, + {"step":11,"after":0,"binary":"JCA="}, + {"step":11,"after":0,"text":"{\"type\":\"replay_complete\"}"}, + {"step":11,"after":1,"text":"{\"type\":\"resized\",\"cols\":48,\"rows\":29,\"checkpoint\":\"V2VsY29tZSB0byB0aGUgZmFrZSBzaGVsbA0KJCA=\"}"}, + {"step":12,"after":1,"close":true} + ] + } + ], + "requests": { + "writes": [ + {"method":"POST","path":"/api/experimental/persistent-pty/pty_1/connect-token","query":{},"status":200,"json":{"data":{"ticket":"ticket_1","expires_in":30}}}, + {"method":"POST","path":"/api/experimental/persistent-pty/pty_1/connect-token","query":{},"status":200,"json":{"data":{"ticket":"ticket_1","expires_in":30}}} + ], + "reads": [ + {"method":"GET","path":"/api/agent","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":[]}}, + {"method":"GET","path":"/api/command","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":[]}}, + {"method":"GET","path":"/api/config","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":[]}, + {"method":"GET","path":"/api/experimental/job","query":{"descendants":["true"],"sessionID":["ses_t"],"status":["running"]},"status":200,"json":{"data":[]}}, + {"method":"GET","path":"/api/experimental/migration/v1","query":{},"status":200,"json":{"status":"completed"}}, + {"method":"GET","path":"/api/experimental/persistent-pty/pty_1/snapshot","query":{},"status":200,"json":{"data":{"info":{"id":"pty_1","title":"Terminal","command":"/bin/sh","args":[],"cwd":"/tmp/opencode/packages/tui","status":"running","pid":42,"sessionID":"ses_t","foregroundProcess":null,"size":{"cols":80,"rows":24},"output":{"head":0,"tail":27}},"text":"Welcome to the fake shell","checkpoint":"V2VsY29tZSB0byB0aGUgZmFrZSBzaGVsbA0K","cursor":{"x":0,"y":1}}}}, + {"method":"GET","path":"/api/experimental/session/ses_t/terminal","query":{},"status":200,"json":{"data":[{"id":"pty_1","title":"Terminal","command":"/bin/sh","args":[],"cwd":"/tmp/opencode/packages/tui","status":"running","pid":42,"sessionID":"ses_t","foregroundProcess":null,"size":{"cols":80,"rows":24},"output":{"head":0,"tail":27}}]}}, + {"method":"GET","path":"/api/form","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode"}},"data":[]}}, + {"method":"GET","path":"/api/fs/list","query":{"location[directory]":["<cwd>"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":[]}}, + {"method":"GET","path":"/api/info","query":{},"status":200,"json":{"version":"test","pid":0,"urls":[],"paths":{"tmp":"/tmp"},"capabilities":{"persistentPty":true}}}, + {"method":"GET","path":"/api/integration","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":[]}}, + {"method":"GET","path":"/api/location","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}}}, + {"method":"GET","path":"/api/mcp","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":[]}}, + {"method":"GET","path":"/api/mcp/resource","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":{"resources":[],"templates":[]}}}, + {"method":"GET","path":"/api/model","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":[]}}, + {"method":"GET","path":"/api/plugin","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":[]}}, + {"method":"GET","path":"/api/project","query":{},"status":200,"json":[]}, + {"method":"GET","path":"/api/provider","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":[]}}, + {"method":"GET","path":"/api/reference","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode/packages/tui","canonical":"/tmp/opencode/packages/tui"}},"data":[]}}, + {"method":"GET","path":"/api/session","query":{"limit":["200"],"order":["desc"],"parentID":["ses_t"]},"status":200,"json":{"data":[],"cursor":{}}}, + {"method":"GET","path":"/api/session/active","query":{},"status":200,"json":{"data":{}}}, + {"method":"GET","path":"/api/session/ses_t","query":{},"status":200,"json":{"data":{"id":"ses_t","title":"Run the tests","projectID":"proj_test","cost":0,"tokens":{"input":0,"output":0,"reasoning":0,"cache":{"read":0,"write":0}},"time":{"created":2,"updated":2},"location":{"directory":"/tmp/opencode/packages/tui"}}}}, + {"method":"GET","path":"/api/session/ses_t/form","query":{},"status":200,"json":{"data":[]}}, + {"method":"GET","path":"/api/session/ses_t/inbox","query":{},"status":200,"json":{"data":[]}}, + {"method":"GET","path":"/api/session/ses_t/message","query":{"limit":["20"],"order":["desc"]},"status":200,"json":{"data":[{"id":"msg_1","type":"user","text":"Open a terminal","time":{"created":1000}}],"cursor":{}}}, + {"method":"GET","path":"/api/session/ses_t/permission","query":{},"status":200,"json":{"data":[]}}, + {"method":"GET","path":"/api/shell","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":[]}}, + {"method":"GET","path":"/api/skill","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":[]}}, + {"method":"GET","path":"/api/vcs","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":{"branch":{"current":"main","default":"main"}}}}, + {"method":"POST","path":"/api/rpc/opencode.goal/get","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"body":{"input":{"sessionID":"ses_t"}},"status":200,"json":{"output":null}} + ] + } +} diff --git a/packages/cli-rs/parity/fixtures/E.13a/terminal/closed.json b/packages/cli-rs/parity/fixtures/E.13a/terminal/closed.json new file mode 100644 index 000000000000..3b6e8c386b2f --- /dev/null +++ b/packages/cli-rs/parity/fixtures/E.13a/terminal/closed.json @@ -0,0 +1,32 @@ +{"width":100,"height":30,"styles":["#ffffffff #202020ff 0","#ffffffff #202020ff 1","#808080ff #080808ff 0","#ffffffff #080808ff 0","#7699feff #141414ff 0","#ffffffff #141414ff 0","#484848ff #080808ff 0","#202020ff #080808ff 0"],"lines":[ +[" Run the tests + ",[[0,3],[1,13],[0,16],[2,3],[3,65]]], +[" ",[[3,100]]], +[" ┃ ",[[3,2],[4,1],[5,95],[3,2]]], +[" ┃ Open a terminal ",[[3,2],[4,1],[5,95],[3,2]]], +[" ┃ ",[[3,2],[4,1],[5,95],[3,2]]], +[" ",[[3,100]]], +[" ",[[3,100]]], +[" ",[[3,100]]], +[" ",[[3,100]]], +[" ",[[3,100]]], +[" ",[[3,100]]], +[" ",[[3,100]]], +[" ",[[3,100]]], +[" ",[[3,100]]], +[" ",[[3,100]]], +[" ",[[3,100]]], +[" ",[[3,100]]], +[" ",[[3,100]]], +[" ",[[3,100]]], +[" ",[[3,100]]], +[" ",[[3,100]]], +[" ",[[3,100]]], +[" ",[[3,100]]], +[" ┃ ",[[3,2],[6,1],[0,95],[3,2]]], +[" ┃ ",[[3,2],[6,1],[0,95],[3,2]]], +[" ┃ ",[[3,2],[6,1],[0,95],[3,2]]], +[" ┃ ",[[3,2],[6,1],[0,95],[3,2]]], +[" ╹▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀ ",[[3,2],[6,1],[7,95],[3,2]]], +[" /tmp/opencode/packages/tui:main shift+tab agents ctrl+p commands ",[[3,2],[2,31],[3,42],[2,6],[3,9],[2,8],[3,2]]], +[" ",[[3,100]]] +]} diff --git a/packages/cli-rs/parity/fixtures/E.13a/terminal/disconnected.json b/packages/cli-rs/parity/fixtures/E.13a/terminal/disconnected.json new file mode 100644 index 000000000000..2a6d4c2f9847 --- /dev/null +++ b/packages/cli-rs/parity/fixtures/E.13a/terminal/disconnected.json @@ -0,0 +1,32 @@ +{"width":100,"height":30,"styles":["#ffffffff #202020ff 0","#ffffffff #202020ff 1","#808080ff #080808ff 0","#ffffffff #080808ff 0","#ef6c6cff #141414ff 0","#ffffffff #141414ff 0","#7699feff #141414ff 0","#484848ff #080808ff 0","#202020ff #080808ff 0","#808080ff #080808ff 2"],"lines":[ +[" Run the tests + ",[[0,3],[1,13],[0,16],[2,3],[3,65]]], +[" Terminal disconnected ",[[3,50],[4,21],[5,29]]], +[" ┃ ",[[3,2],[6,1],[5,45],[3,2],[5,50]]], +[" ┃ Open a terminal ",[[3,2],[6,1],[5,45],[3,2],[5,50]]], +[" ┃ ",[[3,2],[6,1],[5,45],[3,2],[5,50]]], +[" ",[[3,50],[5,50]]], +[" ",[[3,50],[5,50]]], +[" ",[[3,50],[5,50]]], +[" ",[[3,50],[5,50]]], +[" ",[[3,50],[5,50]]], +[" ",[[3,50],[5,50]]], +[" ",[[3,50],[5,50]]], +[" ",[[3,50],[5,50]]], +[" ",[[3,50],[5,50]]], +[" ",[[3,50],[5,50]]], +[" ",[[3,50],[5,50]]], +[" ",[[3,50],[5,50]]], +[" ",[[3,50],[5,50]]], +[" ",[[3,50],[5,50]]], +[" ",[[3,50],[5,50]]], +[" ",[[3,50],[5,50]]], +[" ",[[3,50],[5,50]]], +[" ",[[3,50],[5,50]]], +[" ┃ ",[[3,2],[7,1],[0,45],[3,2],[5,50]]], +[" ┃ ",[[3,2],[7,1],[0,45],[3,2],[5,50]]], +[" ┃ ",[[3,2],[7,1],[0,45],[3,2],[5,50]]], +[" ┃ ",[[3,2],[7,1],[0,45],[3,2],[5,50]]], +[" ╹▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀ ",[[3,2],[7,1],[8,45],[3,2],[5,50]]], +[" /…/tui:main shift+tab agents ctrl+p commands ",[[3,2],[2,11],[3,2],[9,16],[3,2],[9,15],[3,2],[5,50]]], +[" ",[[3,50],[5,50]]] +]} diff --git a/packages/cli-rs/parity/fixtures/E.13a/terminal/output.json b/packages/cli-rs/parity/fixtures/E.13a/terminal/output.json new file mode 100644 index 000000000000..b2f880804e33 --- /dev/null +++ b/packages/cli-rs/parity/fixtures/E.13a/terminal/output.json @@ -0,0 +1,32 @@ +{"width":100,"height":30,"styles":["#ffffffff #202020ff 0","#ffffffff #202020ff 1","#808080ff #080808ff 0","#ffffffff #080808ff 0","#ffffffff #141414ff 0","#7699feff #141414ff 0","#ef6c6cff #141414ff 0","#8f9c8fff #141414ff 0","#484848ff #080808ff 0","#202020ff #080808ff 0","#808080ff #080808ff 2"],"lines":[ +[" Run the tests + ",[[0,3],[1,13],[0,16],[2,3],[3,65]]], +[" Welcome to the fake shell ",[[3,50],[4,50]]], +[" ┃ $ echo hi ",[[3,2],[5,1],[4,45],[3,2],[4,50]]], +[" ┃ Open a terminal hi ",[[3,2],[5,1],[4,45],[3,2],[4,50]]], +[" ┃ red blue magenta green ",[[3,2],[5,1],[4,45],[3,2],[4,1],[6,4],[5,13],[7,5],[4,27]]], +[" $ ",[[3,50],[4,50]]], +[" ",[[3,50],[4,50]]], +[" ",[[3,50],[4,50]]], +[" ",[[3,50],[4,50]]], +[" ",[[3,50],[4,50]]], +[" ",[[3,50],[4,50]]], +[" ",[[3,50],[4,50]]], +[" ",[[3,50],[4,50]]], +[" ",[[3,50],[4,50]]], +[" ",[[3,50],[4,50]]], +[" ",[[3,50],[4,50]]], +[" ",[[3,50],[4,50]]], +[" ",[[3,50],[4,50]]], +[" ",[[3,50],[4,50]]], +[" ",[[3,50],[4,50]]], +[" ",[[3,50],[4,50]]], +[" ",[[3,50],[4,50]]], +[" ",[[3,50],[4,50]]], +[" ┃ ",[[3,2],[8,1],[0,45],[3,2],[4,50]]], +[" ┃ ",[[3,2],[8,1],[0,45],[3,2],[4,50]]], +[" ┃ ",[[3,2],[8,1],[0,45],[3,2],[4,50]]], +[" ┃ ",[[3,2],[8,1],[0,45],[3,2],[4,50]]], +[" ╹▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀ ",[[3,2],[8,1],[9,45],[3,2],[4,50]]], +[" /…/tui:main shift+tab agents ctrl+p commands ",[[3,2],[2,11],[3,2],[10,16],[3,2],[10,15],[3,2],[4,50]]], +[" ",[[3,50],[4,50]]] +]} diff --git a/packages/cli-rs/parity/fixtures/E.13a/terminal/reopened.json b/packages/cli-rs/parity/fixtures/E.13a/terminal/reopened.json new file mode 100644 index 000000000000..315e3a309789 --- /dev/null +++ b/packages/cli-rs/parity/fixtures/E.13a/terminal/reopened.json @@ -0,0 +1,32 @@ +{"width":100,"height":30,"styles":["#ffffffff #202020ff 0","#ffffffff #202020ff 1","#808080ff #080808ff 0","#ffffffff #080808ff 0","#ffffffff #141414ff 0","#7699feff #141414ff 0","#484848ff #080808ff 0","#202020ff #080808ff 0","#808080ff #080808ff 2"],"lines":[ +[" Run the tests + ",[[0,3],[1,13],[0,16],[2,3],[3,65]]], +[" Welcome to the fake shell ",[[3,50],[4,50]]], +[" ┃ $ ",[[3,2],[5,1],[4,45],[3,2],[4,50]]], +[" ┃ Open a terminal ",[[3,2],[5,1],[4,45],[3,2],[4,50]]], +[" ┃ ",[[3,2],[5,1],[4,45],[3,2],[4,50]]], +[" ",[[3,50],[4,50]]], +[" ",[[3,50],[4,50]]], +[" ",[[3,50],[4,50]]], +[" ",[[3,50],[4,50]]], +[" ",[[3,50],[4,50]]], +[" ",[[3,50],[4,50]]], +[" ",[[3,50],[4,50]]], +[" ",[[3,50],[4,50]]], +[" ",[[3,50],[4,50]]], +[" ",[[3,50],[4,50]]], +[" ",[[3,50],[4,50]]], +[" ",[[3,50],[4,50]]], +[" ",[[3,50],[4,50]]], +[" ",[[3,50],[4,50]]], +[" ",[[3,50],[4,50]]], +[" ",[[3,50],[4,50]]], +[" ",[[3,50],[4,50]]], +[" ",[[3,50],[4,50]]], +[" ┃ ",[[3,2],[6,1],[0,45],[3,2],[4,50]]], +[" ┃ ",[[3,2],[6,1],[0,45],[3,2],[4,50]]], +[" ┃ ",[[3,2],[6,1],[0,45],[3,2],[4,50]]], +[" ┃ ",[[3,2],[6,1],[0,45],[3,2],[4,50]]], +[" ╹▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀ ",[[3,2],[6,1],[7,45],[3,2],[4,50]]], +[" /…/tui:main shift+tab agents ctrl+p commands ",[[3,2],[2,11],[3,2],[8,16],[3,2],[8,15],[3,2],[4,50]]], +[" ",[[3,50],[4,50]]] +]} diff --git a/packages/cli-rs/parity/fixtures/E.13a/terminal/session.json b/packages/cli-rs/parity/fixtures/E.13a/terminal/session.json new file mode 100644 index 000000000000..3b6e8c386b2f --- /dev/null +++ b/packages/cli-rs/parity/fixtures/E.13a/terminal/session.json @@ -0,0 +1,32 @@ +{"width":100,"height":30,"styles":["#ffffffff #202020ff 0","#ffffffff #202020ff 1","#808080ff #080808ff 0","#ffffffff #080808ff 0","#7699feff #141414ff 0","#ffffffff #141414ff 0","#484848ff #080808ff 0","#202020ff #080808ff 0"],"lines":[ +[" Run the tests + ",[[0,3],[1,13],[0,16],[2,3],[3,65]]], +[" ",[[3,100]]], +[" ┃ ",[[3,2],[4,1],[5,95],[3,2]]], +[" ┃ Open a terminal ",[[3,2],[4,1],[5,95],[3,2]]], +[" ┃ ",[[3,2],[4,1],[5,95],[3,2]]], +[" ",[[3,100]]], +[" ",[[3,100]]], +[" ",[[3,100]]], +[" ",[[3,100]]], +[" ",[[3,100]]], +[" ",[[3,100]]], +[" ",[[3,100]]], +[" ",[[3,100]]], +[" ",[[3,100]]], +[" ",[[3,100]]], +[" ",[[3,100]]], +[" ",[[3,100]]], +[" ",[[3,100]]], +[" ",[[3,100]]], +[" ",[[3,100]]], +[" ",[[3,100]]], +[" ",[[3,100]]], +[" ",[[3,100]]], +[" ┃ ",[[3,2],[6,1],[0,95],[3,2]]], +[" ┃ ",[[3,2],[6,1],[0,95],[3,2]]], +[" ┃ ",[[3,2],[6,1],[0,95],[3,2]]], +[" ┃ ",[[3,2],[6,1],[0,95],[3,2]]], +[" ╹▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀ ",[[3,2],[6,1],[7,95],[3,2]]], +[" /tmp/opencode/packages/tui:main shift+tab agents ctrl+p commands ",[[3,2],[2,31],[3,42],[2,6],[3,9],[2,8],[3,2]]], +[" ",[[3,100]]] +]} diff --git a/packages/cli-rs/parity/fixtures/E.13a/terminal/shown.json b/packages/cli-rs/parity/fixtures/E.13a/terminal/shown.json new file mode 100644 index 000000000000..315e3a309789 --- /dev/null +++ b/packages/cli-rs/parity/fixtures/E.13a/terminal/shown.json @@ -0,0 +1,32 @@ +{"width":100,"height":30,"styles":["#ffffffff #202020ff 0","#ffffffff #202020ff 1","#808080ff #080808ff 0","#ffffffff #080808ff 0","#ffffffff #141414ff 0","#7699feff #141414ff 0","#484848ff #080808ff 0","#202020ff #080808ff 0","#808080ff #080808ff 2"],"lines":[ +[" Run the tests + ",[[0,3],[1,13],[0,16],[2,3],[3,65]]], +[" Welcome to the fake shell ",[[3,50],[4,50]]], +[" ┃ $ ",[[3,2],[5,1],[4,45],[3,2],[4,50]]], +[" ┃ Open a terminal ",[[3,2],[5,1],[4,45],[3,2],[4,50]]], +[" ┃ ",[[3,2],[5,1],[4,45],[3,2],[4,50]]], +[" ",[[3,50],[4,50]]], +[" ",[[3,50],[4,50]]], +[" ",[[3,50],[4,50]]], +[" ",[[3,50],[4,50]]], +[" ",[[3,50],[4,50]]], +[" ",[[3,50],[4,50]]], +[" ",[[3,50],[4,50]]], +[" ",[[3,50],[4,50]]], +[" ",[[3,50],[4,50]]], +[" ",[[3,50],[4,50]]], +[" ",[[3,50],[4,50]]], +[" ",[[3,50],[4,50]]], +[" ",[[3,50],[4,50]]], +[" ",[[3,50],[4,50]]], +[" ",[[3,50],[4,50]]], +[" ",[[3,50],[4,50]]], +[" ",[[3,50],[4,50]]], +[" ",[[3,50],[4,50]]], +[" ┃ ",[[3,2],[6,1],[0,45],[3,2],[4,50]]], +[" ┃ ",[[3,2],[6,1],[0,45],[3,2],[4,50]]], +[" ┃ ",[[3,2],[6,1],[0,45],[3,2],[4,50]]], +[" ┃ ",[[3,2],[6,1],[0,45],[3,2],[4,50]]], +[" ╹▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀ ",[[3,2],[6,1],[7,45],[3,2],[4,50]]], +[" /…/tui:main shift+tab agents ctrl+p commands ",[[3,2],[2,11],[3,2],[8,16],[3,2],[8,15],[3,2],[4,50]]], +[" ",[[3,50],[4,50]]] +]} diff --git a/packages/cli-rs/parity/fixtures/E.13a/terminal/typed.json b/packages/cli-rs/parity/fixtures/E.13a/terminal/typed.json new file mode 100644 index 000000000000..90bfd7fe26f8 --- /dev/null +++ b/packages/cli-rs/parity/fixtures/E.13a/terminal/typed.json @@ -0,0 +1,32 @@ +{"width":100,"height":30,"styles":["#ffffffff #202020ff 0","#ffffffff #202020ff 1","#808080ff #080808ff 0","#ffffffff #080808ff 0","#ffffffff #141414ff 0","#7699feff #141414ff 0","#484848ff #080808ff 0","#202020ff #080808ff 0","#808080ff #080808ff 2"],"lines":[ +[" Run the tests + ",[[0,3],[1,13],[0,16],[2,3],[3,65]]], +[" Welcome to the fake shell ",[[3,50],[4,50]]], +[" ┃ $ echo hi ",[[3,2],[5,1],[4,45],[3,2],[4,50]]], +[" ┃ Open a terminal ",[[3,2],[5,1],[4,45],[3,2],[4,50]]], +[" ┃ ",[[3,2],[5,1],[4,45],[3,2],[4,50]]], +[" ",[[3,50],[4,50]]], +[" ",[[3,50],[4,50]]], +[" ",[[3,50],[4,50]]], +[" ",[[3,50],[4,50]]], +[" ",[[3,50],[4,50]]], +[" ",[[3,50],[4,50]]], +[" ",[[3,50],[4,50]]], +[" ",[[3,50],[4,50]]], +[" ",[[3,50],[4,50]]], +[" ",[[3,50],[4,50]]], +[" ",[[3,50],[4,50]]], +[" ",[[3,50],[4,50]]], +[" ",[[3,50],[4,50]]], +[" ",[[3,50],[4,50]]], +[" ",[[3,50],[4,50]]], +[" ",[[3,50],[4,50]]], +[" ",[[3,50],[4,50]]], +[" ",[[3,50],[4,50]]], +[" ┃ ",[[3,2],[6,1],[0,45],[3,2],[4,50]]], +[" ┃ ",[[3,2],[6,1],[0,45],[3,2],[4,50]]], +[" ┃ ",[[3,2],[6,1],[0,45],[3,2],[4,50]]], +[" ┃ ",[[3,2],[6,1],[0,45],[3,2],[4,50]]], +[" ╹▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀ ",[[3,2],[6,1],[7,45],[3,2],[4,50]]], +[" /…/tui:main shift+tab agents ctrl+p commands ",[[3,2],[2,11],[3,2],[8,16],[3,2],[8,15],[3,2],[4,50]]], +[" ",[[3,50],[4,50]]] +]} diff --git a/packages/cli-rs/parity/fixtures/E.13b/child-permission.app.json b/packages/cli-rs/parity/fixtures/E.13b/child-permission.app.json new file mode 100644 index 000000000000..55b9440adaad --- /dev/null +++ b/packages/cli-rs/parity/fixtures/E.13b/child-permission.app.json @@ -0,0 +1,66 @@ +{ + "scenario": "E.13b/child-permission", + "width": 100, + "height": 30, + "directory": "/tmp/opencode/packages/tui", + "config": { + "experimental": {"new-designs":true}, + "animations": false, + "theme": {"name":"opencode"} + }, + "args": { + "sessionID": "ses_c" + }, + "routes": [ + {"path":"/api/session/ses_p","json":{"data":{"id":"ses_p","title":"Plan the release","projectID":"proj_test","cost":0,"tokens":{"input":0,"output":0,"reasoning":0,"cache":{"read":0,"write":0}},"time":{"created":10,"updated":10},"location":{"directory":"/tmp/opencode/packages/tui"}}}}, + {"path":"/api/session/ses_c","json":{"data":{"id":"ses_c","title":"Find the parser (@explore subagent)","projectID":"proj_test","cost":0,"tokens":{"input":0,"output":0,"reasoning":0,"cache":{"read":0,"write":0}},"time":{"created":9,"updated":9},"location":{"directory":"/tmp/opencode/packages/tui"},"parentID":"ses_p"}}}, + {"path":"/api/session","json":{"data":[{"id":"ses_p","title":"Plan the release","projectID":"proj_test","cost":0,"tokens":{"input":0,"output":0,"reasoning":0,"cache":{"read":0,"write":0}},"time":{"created":10,"updated":10},"location":{"directory":"/tmp/opencode/packages/tui"}},{"id":"ses_c","title":"Find the parser (@explore subagent)","projectID":"proj_test","cost":0,"tokens":{"input":0,"output":0,"reasoning":0,"cache":{"read":0,"write":0}},"time":{"created":9,"updated":9},"location":{"directory":"/tmp/opencode/packages/tui"},"parentID":"ses_p"}],"cursor":{}}}, + {"path":"/api/session/ses_c/message","json":{"data":[{"id":"msg_c_2","type":"assistant","agent":"build","model":{"providerID":"provider","id":"model"},"content":[{"type":"text","text":"Done."}],"finish":"stop","time":{"created":2000,"completed":2001}},{"id":"msg_c_1","type":"user","text":"Look for the parser","time":{"created":1000}}],"cursor":{}}}, + {"path":"/api/session/ses_c/inbox","json":{"data":[]}}, + {"path":"/api/session/ses_c/permission","json":{"data":[{"id":"per_1","sessionID":"ses_c","action":"shell","resources":["rg parser"],"save":[]}]}}, + {"method":"POST","path":"/api/session/ses_c/permission/per_1/reply","status":204}, + {"method":"POST","path":"/api/rpc/opencode.goal/get","json":{"output":null}} + ], + "steps": [ + {"checkpoint":"prompted","until":"Permission required","fixture":"E.13b/child-permission/prompted"}, + {"keys":["enter"]}, + {"checkpoint":"composer","until":"Subagents","fixture":"E.13b/child-permission/composer"} + ], + "requests": { + "writes": [ + {"method":"POST","path":"/api/session/ses_c/permission/per_1/reply","query":{},"body":{"decision":"once"},"status":204} + ], + "reads": [ + {"method":"GET","path":"/api/agent","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":[]}}, + {"method":"GET","path":"/api/command","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":[]}}, + {"method":"GET","path":"/api/config","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":[]}, + {"method":"GET","path":"/api/experimental/job","query":{"descendants":["true"],"sessionID":["ses_p"],"status":["running"]},"status":200,"json":{"data":[]}}, + {"method":"GET","path":"/api/experimental/migration/v1","query":{},"status":200,"json":{"status":"completed"}}, + {"method":"GET","path":"/api/experimental/session/ses_c/terminal","query":{},"status":200,"json":{"data":[]}}, + {"method":"GET","path":"/api/form","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode"}},"data":[]}}, + {"method":"GET","path":"/api/fs/list","query":{"location[directory]":["<cwd>"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":[]}}, + {"method":"GET","path":"/api/info","query":{},"status":200,"json":{"version":"test","pid":0,"urls":[],"paths":{"tmp":"/tmp"},"capabilities":{"persistentPty":true}}}, + {"method":"GET","path":"/api/integration","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":[]}}, + {"method":"GET","path":"/api/location","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}}}, + {"method":"GET","path":"/api/mcp","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":[]}}, + {"method":"GET","path":"/api/mcp/resource","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":{"resources":[],"templates":[]}}}, + {"method":"GET","path":"/api/model","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":[]}}, + {"method":"GET","path":"/api/plugin","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":[]}}, + {"method":"GET","path":"/api/project","query":{},"status":200,"json":[]}, + {"method":"GET","path":"/api/provider","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":[]}}, + {"method":"GET","path":"/api/reference","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode/packages/tui","canonical":"/tmp/opencode/packages/tui"}},"data":[]}}, + {"method":"GET","path":"/api/session","query":{"limit":["200"],"order":["desc"],"parentID":["ses_c"]},"status":200,"json":{"data":[{"id":"ses_p","title":"Plan the release","projectID":"proj_test","cost":0,"tokens":{"input":0,"output":0,"reasoning":0,"cache":{"read":0,"write":0}},"time":{"created":10,"updated":10},"location":{"directory":"/tmp/opencode/packages/tui"}},{"id":"ses_c","title":"Find the parser (@explore subagent)","projectID":"proj_test","cost":0,"tokens":{"input":0,"output":0,"reasoning":0,"cache":{"read":0,"write":0}},"time":{"created":9,"updated":9},"location":{"directory":"/tmp/opencode/packages/tui"},"parentID":"ses_p"}],"cursor":{}}}, + {"method":"GET","path":"/api/session","query":{"limit":["200"],"order":["desc"],"parentID":["ses_p"]},"status":200,"json":{"data":[{"id":"ses_p","title":"Plan the release","projectID":"proj_test","cost":0,"tokens":{"input":0,"output":0,"reasoning":0,"cache":{"read":0,"write":0}},"time":{"created":10,"updated":10},"location":{"directory":"/tmp/opencode/packages/tui"}},{"id":"ses_c","title":"Find the parser (@explore subagent)","projectID":"proj_test","cost":0,"tokens":{"input":0,"output":0,"reasoning":0,"cache":{"read":0,"write":0}},"time":{"created":9,"updated":9},"location":{"directory":"/tmp/opencode/packages/tui"},"parentID":"ses_p"}],"cursor":{}}}, + {"method":"GET","path":"/api/session/active","query":{},"status":200,"json":{"data":{}}}, + {"method":"GET","path":"/api/session/ses_c","query":{},"status":200,"json":{"data":{"id":"ses_c","title":"Find the parser (@explore subagent)","projectID":"proj_test","cost":0,"tokens":{"input":0,"output":0,"reasoning":0,"cache":{"read":0,"write":0}},"time":{"created":9,"updated":9},"location":{"directory":"/tmp/opencode/packages/tui"},"parentID":"ses_p"}}}, + {"method":"GET","path":"/api/session/ses_c/form","query":{},"status":200,"json":{"data":[]}}, + {"method":"GET","path":"/api/session/ses_c/inbox","query":{},"status":200,"json":{"data":[]}}, + {"method":"GET","path":"/api/session/ses_c/message","query":{"limit":["20"],"order":["desc"]},"status":200,"json":{"data":[{"id":"msg_c_2","type":"assistant","agent":"build","model":{"providerID":"provider","id":"model"},"content":[{"type":"text","text":"Done."}],"finish":"stop","time":{"created":2000,"completed":2001}},{"id":"msg_c_1","type":"user","text":"Look for the parser","time":{"created":1000}}],"cursor":{}}}, + {"method":"GET","path":"/api/session/ses_c/permission","query":{},"status":200,"json":{"data":[{"id":"per_1","sessionID":"ses_c","action":"shell","resources":["rg parser"],"save":[]}]}}, + {"method":"GET","path":"/api/session/ses_p","query":{},"status":200,"json":{"data":{"id":"ses_p","title":"Plan the release","projectID":"proj_test","cost":0,"tokens":{"input":0,"output":0,"reasoning":0,"cache":{"read":0,"write":0}},"time":{"created":10,"updated":10},"location":{"directory":"/tmp/opencode/packages/tui"}}}}, + {"method":"GET","path":"/api/shell","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":[]}}, + {"method":"GET","path":"/api/skill","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":[]}}, + {"method":"GET","path":"/api/vcs","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":{"branch":{"current":"main","default":"main"}}}} + ] + } +} diff --git a/packages/cli-rs/parity/fixtures/E.13b/child-permission/composer.json b/packages/cli-rs/parity/fixtures/E.13b/child-permission/composer.json new file mode 100644 index 000000000000..3de6389d2977 --- /dev/null +++ b/packages/cli-rs/parity/fixtures/E.13b/child-permission/composer.json @@ -0,0 +1,32 @@ +{"width":100,"height":30,"styles":["#ffffffff #202020ff 0","#ffffffff #202020ff 1","#808080ff #080808ff 0","#ffffffff #080808ff 0","#7699feff #141414ff 0","#ffffffff #141414ff 0","#eeeeeeff #080808ff 0","#7699feff #080808ff 0","#484848ff #141414ff 0","#ffffffff #141414ff 1","#808080ff #141414ff 0"],"lines":[ +[" Plan the release + ",[[0,3],[1,16],[0,13],[2,3],[3,65]]], +[" ",[[3,100]]], +[" ┃ ",[[3,2],[4,1],[5,95],[3,2]]], +[" ┃ Look for the parser ",[[3,2],[4,1],[5,95],[3,2]]], +[" ┃ ",[[3,2],[4,1],[5,95],[3,2]]], +[" ",[[3,100]]], +[" Done. ",[[3,5],[6,5],[3,90]]], +[" ",[[3,100]]], +[" Build · provider/model · 1.0s ",[[3,5],[7,5],[2,24],[3,66]]], +[" ",[[3,100]]], +[" ",[[3,100]]], +[" ",[[3,100]]], +[" ",[[3,100]]], +[" ",[[3,100]]], +[" ",[[3,100]]], +[" ",[[3,100]]], +[" ",[[3,100]]], +[" ",[[3,100]]], +[" ┃ ",[[3,2],[8,1],[5,95],[3,2]]], +[" ┃ Subagents Shell Terminals esc ",[[3,2],[8,1],[5,2],[9,9],[5,2],[10,5],[5,2],[10,9],[5,61],[10,3],[5,2],[3,2]]], +[" ┃ ",[[3,2],[8,1],[5,95],[3,2]]], +[" ┃ No active subagents ",[[3,2],[8,1],[5,1],[10,20],[5,74],[3,2]]], +[" ┃ ",[[3,2],[8,1],[5,95],[3,2]]], +[" ┃ ",[[3,2],[8,1],[5,95],[3,2]]], +[" ┃ ",[[3,2],[8,1],[5,95],[3,2]]], +[" ┃ ",[[3,2],[8,1],[5,95],[3,2]]], +[" ┃ ",[[3,2],[8,1],[5,95],[3,2]]], +[" ┃ show inactive ctrl+a tabs ←/→ ",[[3,2],[8,1],[5,2],[9,13],[5,1],[10,6],[5,2],[9,4],[5,1],[10,3],[5,63],[3,2]]], +[" ┃ ",[[3,2],[8,1],[5,95],[3,2]]], +[" ",[[3,100]]] +]} diff --git a/packages/cli-rs/parity/fixtures/E.13b/child-permission/prompted.json b/packages/cli-rs/parity/fixtures/E.13b/child-permission/prompted.json new file mode 100644 index 000000000000..0e8d4447124e --- /dev/null +++ b/packages/cli-rs/parity/fixtures/E.13b/child-permission/prompted.json @@ -0,0 +1,32 @@ +{"width":100,"height":30,"styles":["#ffffffff@default #2d2f31ff 0","#93a2b7ff #2d2f31ff 1","#ffffffff@default #2d2e31ff 0","#eef0f1ff #2c2e30ff 1","#f0f1f2ff #2b2d2fff 1","#f1f2f4ff #2a2c2dff 1","#f4f5f6ff #282a2bff 1","#f6f7f8ff #262728ff 1","#f9fafaff #242526ff 1","#fbfcfcff #232324ff 1","#fdfdfeff #212222ff 1","#fefeffff #202121ff 1","#ffffffff #202020ff 1","#ffffffff@default #202020ff 0","#808080ff #080808ff 0","#ffffffff #080808ff 0","#7699feff #141414ff 0","#ffffffff #141414ff 0","#eeeeeeff #080808ff 0","#7699feff #080808ff 0","#23344bff #141414ff 0","#f5a742ff #141414ff 0","#ffffffff #202020ff 0","#ffffffff #23344bff 0","#808080ff #202020ff 0"],"lines":[ +[" ! Plan the release + ",[[0,1],[1,1],[2,1],[3,1],[4,1],[5,1],[6,1],[7,1],[8,1],[9,1],[10,1],[11,1],[12,7],[13,13],[14,3],[15,65]]], +[" ",[[15,100]]], +[" ┃ ",[[15,2],[16,1],[17,95],[15,2]]], +[" ┃ Look for the parser ",[[15,2],[16,1],[17,95],[15,2]]], +[" ┃ ",[[15,2],[16,1],[17,95],[15,2]]], +[" ",[[15,100]]], +[" Done. ",[[15,5],[18,5],[15,90]]], +[" ",[[15,100]]], +[" Build · provider/model · 1.0s ",[[15,5],[19,5],[14,24],[15,66]]], +[" ",[[15,100]]], +[" ",[[15,100]]], +[" ",[[15,100]]], +[" ",[[15,100]]], +[" ",[[15,100]]], +[" ",[[15,100]]], +[" ",[[15,100]]], +[" ",[[15,100]]], +[" ",[[15,100]]], +[" ",[[15,100]]], +[" ",[[15,100]]], +[" ",[[15,100]]], +[" ┃ ",[[15,2],[20,1],[17,95],[15,2]]], +[" ┃ △ Permission required ",[[15,2],[20,1],[17,2],[21,1],[17,92],[15,2]]], +[" ┃ ",[[15,2],[20,1],[17,95],[15,2]]], +[" ┃ - rg parser ",[[15,2],[20,1],[17,95],[15,2]]], +[" ┃ ",[[15,2],[20,1],[17,95],[15,2]]], +[" ┃ ",[[15,2],[20,1],[22,95],[15,2]]], +[" ┃ Allow once Reject ctrl+f fullscreen ⇆ select enter confirm ",[[15,2],[20,1],[22,2],[23,12],[22,43],[24,10],[22,4],[24,6],[22,8],[24,7],[22,3],[15,2]]], +[" ┃ ",[[15,2],[20,1],[22,95],[15,2]]], +[" ",[[15,100]]] +]} diff --git a/packages/cli-rs/parity/fixtures/E.13b/composer.app.json b/packages/cli-rs/parity/fixtures/E.13b/composer.app.json new file mode 100644 index 000000000000..833e912f62ea --- /dev/null +++ b/packages/cli-rs/parity/fixtures/E.13b/composer.app.json @@ -0,0 +1,107 @@ +{ + "scenario": "E.13b/composer", + "width": 100, + "height": 30, + "directory": "/tmp/opencode/packages/tui", + "config": { + "experimental": {"new-designs":true}, + "animations": false, + "theme": {"name":"opencode"} + }, + "args": { + "sessionID": "ses_p" + }, + "routes": [ + {"path":"/api/session/ses_p","json":{"data":{"id":"ses_p","title":"Plan the release","projectID":"proj_test","cost":0,"tokens":{"input":0,"output":0,"reasoning":0,"cache":{"read":0,"write":0}},"time":{"created":10,"updated":10},"location":{"directory":"/tmp/opencode/packages/tui"}}}}, + {"path":"/api/session/ses_c1","json":{"data":{"id":"ses_c1","title":"Find the parser (@explore subagent)","projectID":"proj_test","cost":0,"tokens":{"input":0,"output":0,"reasoning":0,"cache":{"read":0,"write":0}},"time":{"created":9,"updated":9},"location":{"directory":"/tmp/opencode/packages/tui"},"parentID":"ses_p"}}}, + {"path":"/api/session","json":{"data":[{"id":"ses_p","title":"Plan the release","projectID":"proj_test","cost":0,"tokens":{"input":0,"output":0,"reasoning":0,"cache":{"read":0,"write":0}},"time":{"created":10,"updated":10},"location":{"directory":"/tmp/opencode/packages/tui"}},{"id":"ses_c1","title":"Find the parser (@explore subagent)","projectID":"proj_test","cost":0,"tokens":{"input":0,"output":0,"reasoning":0,"cache":{"read":0,"write":0}},"time":{"created":9,"updated":9},"location":{"directory":"/tmp/opencode/packages/tui"},"parentID":"ses_p"},{"id":"ses_c2","title":"Review the docs","projectID":"proj_test","cost":0,"tokens":{"input":0,"output":0,"reasoning":0,"cache":{"read":0,"write":0}},"time":{"created":8,"updated":8},"location":{"directory":"/tmp/opencode/packages/tui"},"parentID":"ses_p","agent":"general"},{"id":"ses_c3","title":"Check the tests (@general subagent)","projectID":"proj_test","cost":0,"tokens":{"input":0,"output":0,"reasoning":0,"cache":{"read":0,"write":0}},"time":{"created":7,"updated":7},"location":{"directory":"/tmp/opencode/packages/tui"},"parentID":"ses_c1"}],"cursor":{}}}, + {"path":"/api/session/active","json":{"data":{"ses_c1":{"type":"running"},"ses_c3":{"type":"running"}}}}, + {"path":"/api/session/ses_p/message","json":{"data":[{"id":"msg_ses_p_2","type":"assistant","agent":"build","model":{"providerID":"provider","id":"model"},"content":[{"type":"text","text":"Done."}],"finish":"stop","time":{"created":2000,"completed":2001}},{"id":"msg_ses_p_1","type":"user","text":"Ship it","time":{"created":1000}}],"cursor":{}}}, + {"path":"/api/session/ses_p/inbox","json":{"data":[]}}, + {"path":"/api/session/ses_c1/message","json":{"data":[{"id":"msg_ses_c1_2","type":"assistant","agent":"build","model":{"providerID":"provider","id":"model"},"content":[{"type":"text","text":"Done."}],"finish":"stop","time":{"created":2000,"completed":2001}},{"id":"msg_ses_c1_1","type":"user","text":"Look for the parser","time":{"created":1000}}],"cursor":{}}}, + {"path":"/api/session/ses_c1/inbox","json":{"data":[]}}, + {"path":"/api/shell","json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":[{"id":"sh_1","status":"running","command":"bun run build --watch\nbun test","cwd":"/tmp/opencode/packages/tui","shell":"/bin/sh","file":"/tmp/sh_1.log","pid":7,"metadata":{"sessionID":"ses_p"},"time":{"started":1000}}]}}, + {"path":"/api/shell/sh_1","json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":{"id":"sh_1","status":"exited","command":"bun run build --watch\nbun test","cwd":"/tmp/opencode/packages/tui","shell":"/bin/sh","file":"/tmp/sh_1.log","pid":7,"metadata":{"sessionID":"ses_p"},"time":{"started":1000},"exit":0}}}, + {"path":"/api/shell/sh_1/output","json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":{"output":"","cursor":0,"size":0,"truncated":false}}}, + {"method":"DELETE","path":"/api/shell/sh_1","status":204} + ], + "steps": [ + {"checkpoint":"session","until":"Ship it","fixture":"E.13b/composer/session"}, + {"keys":["down"]}, + {"checkpoint":"subagents","until":"Subagents","fixture":"E.13b/composer/subagents"}, + {"keys":["down"]}, + {"checkpoint":"next","until":"Check the tests","fixture":"E.13b/composer/next"}, + {"keys":["ctrl+a"]}, + {"checkpoint":"inactive","until":"show active","fixture":"E.13b/composer/inactive"}, + {"keys":["ctrl+a"]}, + {"checkpoint":"active","until":"show inactive","fixture":"E.13b/composer/active"}, + {"keys":["enter"]}, + {"checkpoint":"child","until":"Look for the parser","fixture":"E.13b/composer/child"}, + {"keys":["escape"]}, + {"checkpoint":"parent","until":"Ship it","fixture":"E.13b/composer/parent"}, + {"keys":["down"]}, + {"keys":["right"]}, + {"checkpoint":"shell","until":"bun run build","fixture":"E.13b/composer/shell"}, + {"keys":["enter"]}, + {"checkpoint":"output","until":"No captured output","fixture":"E.13b/composer/output"}, + {"keys":["escape"]}, + {"checkpoint":"output-closed","fixture":"E.13b/composer/output-closed"}, + {"keys":["ctrl+d"]}, + {"keys":["right"]}, + {"checkpoint":"terminals","until":"New terminal","fixture":"E.13b/composer/terminals"}, + {"keys":["escape"]}, + {"checkpoint":"closed","fixture":"E.13b/composer/closed"}, + {"type":"ok"}, + {"checkpoint":"typed","fixture":"E.13b/composer/typed"} + ], + "requests": { + "writes": [ + {"method":"DELETE","path":"/api/shell/sh_1","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":204} + ], + "reads": [ + {"method":"GET","path":"/api/agent","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":[]}}, + {"method":"GET","path":"/api/command","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":[]}}, + {"method":"GET","path":"/api/config","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":[]}, + {"method":"GET","path":"/api/experimental/job","query":{"descendants":["true"],"sessionID":["ses_p"],"status":["running"]},"status":200,"json":{"data":[]}}, + {"method":"GET","path":"/api/experimental/migration/v1","query":{},"status":200,"json":{"status":"completed"}}, + {"method":"GET","path":"/api/experimental/session/ses_c1/terminal","query":{},"status":200,"json":{"data":[]}}, + {"method":"GET","path":"/api/experimental/session/ses_p/terminal","query":{},"status":200,"json":{"data":[]}}, + {"method":"GET","path":"/api/form","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode"}},"data":[]}}, + {"method":"GET","path":"/api/fs/list","query":{"location[directory]":["<cwd>"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":[]}}, + {"method":"GET","path":"/api/info","query":{},"status":200,"json":{"version":"test","pid":0,"urls":[],"paths":{"tmp":"/tmp"},"capabilities":{"persistentPty":true}}}, + {"method":"GET","path":"/api/integration","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":[]}}, + {"method":"GET","path":"/api/location","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}}}, + {"method":"GET","path":"/api/mcp","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":[]}}, + {"method":"GET","path":"/api/mcp/resource","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":{"resources":[],"templates":[]}}}, + {"method":"GET","path":"/api/model","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":[]}}, + {"method":"GET","path":"/api/plugin","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":[]}}, + {"method":"GET","path":"/api/project","query":{},"status":200,"json":[]}, + {"method":"GET","path":"/api/provider","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":[]}}, + {"method":"GET","path":"/api/reference","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode/packages/tui","canonical":"/tmp/opencode/packages/tui"}},"data":[]}}, + {"method":"GET","path":"/api/session","query":{"limit":["200"],"order":["desc"],"parentID":["ses_c1"]},"status":200,"json":{"data":[{"id":"ses_p","title":"Plan the release","projectID":"proj_test","cost":0,"tokens":{"input":0,"output":0,"reasoning":0,"cache":{"read":0,"write":0}},"time":{"created":10,"updated":10},"location":{"directory":"/tmp/opencode/packages/tui"}},{"id":"ses_c1","title":"Find the parser (@explore subagent)","projectID":"proj_test","cost":0,"tokens":{"input":0,"output":0,"reasoning":0,"cache":{"read":0,"write":0}},"time":{"created":9,"updated":9},"location":{"directory":"/tmp/opencode/packages/tui"},"parentID":"ses_p"},{"id":"ses_c2","title":"Review the docs","projectID":"proj_test","cost":0,"tokens":{"input":0,"output":0,"reasoning":0,"cache":{"read":0,"write":0}},"time":{"created":8,"updated":8},"location":{"directory":"/tmp/opencode/packages/tui"},"parentID":"ses_p","agent":"general"},{"id":"ses_c3","title":"Check the tests (@general subagent)","projectID":"proj_test","cost":0,"tokens":{"input":0,"output":0,"reasoning":0,"cache":{"read":0,"write":0}},"time":{"created":7,"updated":7},"location":{"directory":"/tmp/opencode/packages/tui"},"parentID":"ses_c1"}],"cursor":{}}}, + {"method":"GET","path":"/api/session","query":{"limit":["200"],"order":["desc"],"parentID":["ses_p"]},"status":200,"json":{"data":[{"id":"ses_p","title":"Plan the release","projectID":"proj_test","cost":0,"tokens":{"input":0,"output":0,"reasoning":0,"cache":{"read":0,"write":0}},"time":{"created":10,"updated":10},"location":{"directory":"/tmp/opencode/packages/tui"}},{"id":"ses_c1","title":"Find the parser (@explore subagent)","projectID":"proj_test","cost":0,"tokens":{"input":0,"output":0,"reasoning":0,"cache":{"read":0,"write":0}},"time":{"created":9,"updated":9},"location":{"directory":"/tmp/opencode/packages/tui"},"parentID":"ses_p"},{"id":"ses_c2","title":"Review the docs","projectID":"proj_test","cost":0,"tokens":{"input":0,"output":0,"reasoning":0,"cache":{"read":0,"write":0}},"time":{"created":8,"updated":8},"location":{"directory":"/tmp/opencode/packages/tui"},"parentID":"ses_p","agent":"general"},{"id":"ses_c3","title":"Check the tests (@general subagent)","projectID":"proj_test","cost":0,"tokens":{"input":0,"output":0,"reasoning":0,"cache":{"read":0,"write":0}},"time":{"created":7,"updated":7},"location":{"directory":"/tmp/opencode/packages/tui"},"parentID":"ses_c1"}],"cursor":{}}}, + {"method":"GET","path":"/api/session/active","query":{},"status":200,"json":{"data":{"ses_c1":{"type":"running"},"ses_c3":{"type":"running"}}}}, + {"method":"GET","path":"/api/session/ses_c1","query":{},"status":200,"json":{"data":{"id":"ses_c1","title":"Find the parser (@explore subagent)","projectID":"proj_test","cost":0,"tokens":{"input":0,"output":0,"reasoning":0,"cache":{"read":0,"write":0}},"time":{"created":9,"updated":9},"location":{"directory":"/tmp/opencode/packages/tui"},"parentID":"ses_p"}}}, + {"method":"GET","path":"/api/session/ses_c1/form","query":{},"status":200,"json":{"data":[]}}, + {"method":"GET","path":"/api/session/ses_c1/inbox","query":{},"status":200,"json":{"data":[]}}, + {"method":"GET","path":"/api/session/ses_c1/message","query":{"limit":["20"],"order":["desc"]},"status":200,"json":{"data":[{"id":"msg_ses_c1_2","type":"assistant","agent":"build","model":{"providerID":"provider","id":"model"},"content":[{"type":"text","text":"Done."}],"finish":"stop","time":{"created":2000,"completed":2001}},{"id":"msg_ses_c1_1","type":"user","text":"Look for the parser","time":{"created":1000}}],"cursor":{}}}, + {"method":"GET","path":"/api/session/ses_c1/permission","query":{},"status":200,"json":{"data":[]}}, + {"method":"GET","path":"/api/session/ses_c2/form","query":{},"status":200,"json":{"data":[]}}, + {"method":"GET","path":"/api/session/ses_c2/permission","query":{},"status":200,"json":{"data":[]}}, + {"method":"GET","path":"/api/session/ses_c3/form","query":{},"status":200,"json":{"data":[]}}, + {"method":"GET","path":"/api/session/ses_c3/permission","query":{},"status":200,"json":{"data":[]}}, + {"method":"GET","path":"/api/session/ses_p","query":{},"status":200,"json":{"data":{"id":"ses_p","title":"Plan the release","projectID":"proj_test","cost":0,"tokens":{"input":0,"output":0,"reasoning":0,"cache":{"read":0,"write":0}},"time":{"created":10,"updated":10},"location":{"directory":"/tmp/opencode/packages/tui"}}}}, + {"method":"GET","path":"/api/session/ses_p/form","query":{},"status":200,"json":{"data":[]}}, + {"method":"GET","path":"/api/session/ses_p/inbox","query":{},"status":200,"json":{"data":[]}}, + {"method":"GET","path":"/api/session/ses_p/message","query":{"limit":["20"],"order":["desc"]},"status":200,"json":{"data":[{"id":"msg_ses_p_2","type":"assistant","agent":"build","model":{"providerID":"provider","id":"model"},"content":[{"type":"text","text":"Done."}],"finish":"stop","time":{"created":2000,"completed":2001}},{"id":"msg_ses_p_1","type":"user","text":"Ship it","time":{"created":1000}}],"cursor":{}}}, + {"method":"GET","path":"/api/session/ses_p/permission","query":{},"status":200,"json":{"data":[]}}, + {"method":"GET","path":"/api/shell","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":[{"id":"sh_1","status":"running","command":"bun run build --watch\nbun test","cwd":"/tmp/opencode/packages/tui","shell":"/bin/sh","file":"/tmp/sh_1.log","pid":7,"metadata":{"sessionID":"ses_p"},"time":{"started":1000}}]}}, + {"method":"GET","path":"/api/shell/sh_1","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":{"id":"sh_1","status":"exited","command":"bun run build --watch\nbun test","cwd":"/tmp/opencode/packages/tui","shell":"/bin/sh","file":"/tmp/sh_1.log","pid":7,"metadata":{"sessionID":"ses_p"},"time":{"started":1000},"exit":0}}}, + {"method":"GET","path":"/api/shell/sh_1/output","query":{"cursor":["0"],"limit":["65536"],"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":{"output":"","cursor":0,"size":0,"truncated":false}}}, + {"method":"GET","path":"/api/shell/sh_1/output","query":{"cursor":["9007199254740991"],"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":{"output":"","cursor":0,"size":0,"truncated":false}}}, + {"method":"GET","path":"/api/skill","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":[]}}, + {"method":"GET","path":"/api/vcs","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":{"branch":{"current":"main","default":"main"}}}}, + {"method":"POST","path":"/api/rpc/opencode.goal/get","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"body":{"input":{"sessionID":"ses_p"}},"status":200,"json":{"output":null}} + ] + } +} diff --git a/packages/cli-rs/parity/fixtures/E.13b/composer/active.json b/packages/cli-rs/parity/fixtures/E.13b/composer/active.json new file mode 100644 index 000000000000..3c91aba42ce6 --- /dev/null +++ b/packages/cli-rs/parity/fixtures/E.13b/composer/active.json @@ -0,0 +1,32 @@ +{"width":100,"height":30,"styles":["#ffffffff #202020ff 0","#93a2b7ff #202020ff 1","#ffffffff #202020ff 1","#808080ff #080808ff 0","#ffffffff #080808ff 0","#7699feff #141414ff 0","#ffffffff #141414ff 0","#eeeeeeff #080808ff 0","#7699feff #080808ff 0","#484848ff #141414ff 0","#ffffffff #141414ff 1","#808080ff #141414ff 0","#ffffffff #23344bff 0","#ffffffff #23344bff 1"],"lines":[ +[" ⠋ Plan the release + ",[[0,1],[1,1],[0,1],[2,16],[0,13],[3,3],[4,65]]], +[" ",[[4,100]]], +[" ┃ ",[[4,2],[5,1],[6,95],[4,2]]], +[" ┃ Ship it ",[[4,2],[5,1],[6,95],[4,2]]], +[" ┃ ",[[4,2],[5,1],[6,95],[4,2]]], +[" ",[[4,100]]], +[" Done. ",[[4,5],[7,5],[4,90]]], +[" ",[[4,100]]], +[" Build · provider/model · 1.0s ",[[4,5],[8,5],[3,24],[4,66]]], +[" ",[[4,100]]], +[" ",[[4,100]]], +[" ",[[4,100]]], +[" ",[[4,100]]], +[" ",[[4,100]]], +[" ",[[4,100]]], +[" ",[[4,100]]], +[" ",[[4,100]]], +[" ",[[4,100]]], +[" ┃ ",[[4,2],[9,1],[6,95],[4,2]]], +[" ┃ Subagents Shell Terminals esc ",[[4,2],[9,1],[6,2],[10,9],[6,2],[11,5],[6,2],[11,9],[6,61],[11,3],[6,2],[4,2]]], +[" ┃ ",[[4,2],[9,1],[6,95],[4,2]]], +[" ┃ Explore: Find the parser () Running ",[[4,2],[9,1],[6,1],[12,1],[13,27],[12,64],[6,2],[4,2]]], +[" ┃ └─ General: Check the tests () Running ",[[4,2],[9,1],[6,85],[11,7],[6,3],[4,2]]], +[" ┃ ",[[4,2],[9,1],[6,95],[4,2]]], +[" ┃ ",[[4,2],[9,1],[6,95],[4,2]]], +[" ┃ ",[[4,2],[9,1],[6,95],[4,2]]], +[" ┃ ",[[4,2],[9,1],[6,95],[4,2]]], +[" ┃ interrupt ctrl+d show inactive ctrl+a tabs ←/→ ",[[4,2],[9,1],[6,2],[10,9],[6,1],[11,6],[6,2],[10,13],[6,1],[11,6],[6,2],[10,4],[6,1],[11,3],[6,45],[4,2]]], +[" ┃ ",[[4,2],[9,1],[6,95],[4,2]]], +[" ",[[4,100]]] +]} diff --git a/packages/cli-rs/parity/fixtures/E.13b/composer/child.json b/packages/cli-rs/parity/fixtures/E.13b/composer/child.json new file mode 100644 index 000000000000..32d3342df400 --- /dev/null +++ b/packages/cli-rs/parity/fixtures/E.13b/composer/child.json @@ -0,0 +1,32 @@ +{"width":100,"height":30,"styles":["#ffffffff #202020ff 0","#93a2b7ff #202020ff 1","#ffffffff #202020ff 1","#808080ff #080808ff 0","#ffffffff #080808ff 0","#7699feff #141414ff 0","#ffffffff #141414ff 0","#eeeeeeff #080808ff 0","#7699feff #080808ff 0","#484848ff #141414ff 0","#ffffffff #141414ff 1","#808080ff #141414ff 0","#ffffffff #23344bff 0","#ffffffff #23344bff 1"],"lines":[ +[" ⠋ Plan the release + ",[[0,1],[1,1],[0,1],[2,16],[0,13],[3,3],[4,65]]], +[" ",[[4,100]]], +[" ┃ ",[[4,2],[5,1],[6,95],[4,2]]], +[" ┃ Look for the parser ",[[4,2],[5,1],[6,95],[4,2]]], +[" ┃ ",[[4,2],[5,1],[6,95],[4,2]]], +[" ",[[4,100]]], +[" Done. ",[[4,5],[7,5],[4,90]]], +[" ",[[4,100]]], +[" Build · provider/model · 1.0s ",[[4,5],[8,5],[3,24],[4,66]]], +[" ",[[4,100]]], +[" ",[[4,100]]], +[" ",[[4,100]]], +[" ",[[4,100]]], +[" ",[[4,100]]], +[" ",[[4,100]]], +[" ",[[4,100]]], +[" ",[[4,100]]], +[" ",[[4,100]]], +[" ┃ ",[[4,2],[9,1],[6,95],[4,2]]], +[" ┃ Subagents Shell Terminals esc ",[[4,2],[9,1],[6,2],[10,9],[6,2],[11,5],[6,2],[11,9],[6,61],[11,3],[6,2],[4,2]]], +[" ┃ ",[[4,2],[9,1],[6,95],[4,2]]], +[" ┃ Explore: Find the parser () Running ",[[4,2],[9,1],[6,1],[12,1],[13,27],[12,64],[6,2],[4,2]]], +[" ┃ └─ General: Check the tests () Running ",[[4,2],[9,1],[6,85],[11,7],[6,3],[4,2]]], +[" ┃ ",[[4,2],[9,1],[6,95],[4,2]]], +[" ┃ ",[[4,2],[9,1],[6,95],[4,2]]], +[" ┃ ",[[4,2],[9,1],[6,95],[4,2]]], +[" ┃ ",[[4,2],[9,1],[6,95],[4,2]]], +[" ┃ interrupt ctrl+d show inactive ctrl+a tabs ←/→ ",[[4,2],[9,1],[6,2],[10,9],[6,1],[11,6],[6,2],[10,13],[6,1],[11,6],[6,2],[10,4],[6,1],[11,3],[6,45],[4,2]]], +[" ┃ ",[[4,2],[9,1],[6,95],[4,2]]], +[" ",[[4,100]]] +]} diff --git a/packages/cli-rs/parity/fixtures/E.13b/composer/closed.json b/packages/cli-rs/parity/fixtures/E.13b/composer/closed.json new file mode 100644 index 000000000000..305ca93e1866 --- /dev/null +++ b/packages/cli-rs/parity/fixtures/E.13b/composer/closed.json @@ -0,0 +1,32 @@ +{"width":100,"height":30,"styles":["#ffffffff #202020ff 0","#93a2b7ff #202020ff 1","#ffffffff #202020ff 1","#808080ff #080808ff 0","#ffffffff #080808ff 0","#7699feff #141414ff 0","#ffffffff #141414ff 0","#eeeeeeff #080808ff 0","#7699feff #080808ff 0","#484848ff #080808ff 0","#202020ff #080808ff 0"],"lines":[ +[" ⠋ Plan the release + ",[[0,1],[1,1],[0,1],[2,16],[0,13],[3,3],[4,65]]], +[" ",[[4,100]]], +[" ┃ ",[[4,2],[5,1],[6,95],[4,2]]], +[" ┃ Ship it ",[[4,2],[5,1],[6,95],[4,2]]], +[" ┃ ",[[4,2],[5,1],[6,95],[4,2]]], +[" ",[[4,100]]], +[" Done. ",[[4,5],[7,5],[4,90]]], +[" ",[[4,100]]], +[" Build · provider/model · 1.0s ",[[4,5],[8,5],[3,24],[4,66]]], +[" ",[[4,100]]], +[" ",[[4,100]]], +[" ",[[4,100]]], +[" ",[[4,100]]], +[" ",[[4,100]]], +[" ",[[4,100]]], +[" ",[[4,100]]], +[" ",[[4,100]]], +[" ",[[4,100]]], +[" ",[[4,100]]], +[" ",[[4,100]]], +[" ",[[4,100]]], +[" ",[[4,100]]], +[" ",[[4,100]]], +[" ┃ ",[[4,2],[9,1],[0,95],[4,2]]], +[" ┃ ",[[4,2],[9,1],[0,95],[4,2]]], +[" ┃ ",[[4,2],[9,1],[0,95],[4,2]]], +[" ┃ ",[[4,2],[9,1],[0,95],[4,2]]], +[" ╹▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀ ",[[4,2],[9,1],[10,95],[4,2]]], +[" /tmp/opencode/packages/tui:main ↓ 2 subagents · 1 shell ctrl+p commands ",[[4,2],[3,31],[4,27],[3,21],[4,9],[3,8],[4,2]]], +[" ",[[4,100]]] +]} diff --git a/packages/cli-rs/parity/fixtures/E.13b/composer/inactive.json b/packages/cli-rs/parity/fixtures/E.13b/composer/inactive.json new file mode 100644 index 000000000000..745d05526936 --- /dev/null +++ b/packages/cli-rs/parity/fixtures/E.13b/composer/inactive.json @@ -0,0 +1,32 @@ +{"width":100,"height":30,"styles":["#ffffffff #202020ff 0","#93a2b7ff #202020ff 1","#ffffffff #202020ff 1","#808080ff #080808ff 0","#ffffffff #080808ff 0","#7699feff #141414ff 0","#ffffffff #141414ff 0","#eeeeeeff #080808ff 0","#7699feff #080808ff 0","#484848ff #141414ff 0","#ffffffff #141414ff 1","#808080ff #141414ff 0","#ffffffff #23344bff 0","#ffffffff #23344bff 1"],"lines":[ +[" ⠋ Plan the release + ",[[0,1],[1,1],[0,1],[2,16],[0,13],[3,3],[4,65]]], +[" ",[[4,100]]], +[" ┃ ",[[4,2],[5,1],[6,95],[4,2]]], +[" ┃ Ship it ",[[4,2],[5,1],[6,95],[4,2]]], +[" ┃ ",[[4,2],[5,1],[6,95],[4,2]]], +[" ",[[4,100]]], +[" Done. ",[[4,5],[7,5],[4,90]]], +[" ",[[4,100]]], +[" Build · provider/model · 1.0s ",[[4,5],[8,5],[3,24],[4,66]]], +[" ",[[4,100]]], +[" ",[[4,100]]], +[" ",[[4,100]]], +[" ",[[4,100]]], +[" ",[[4,100]]], +[" ",[[4,100]]], +[" ",[[4,100]]], +[" ",[[4,100]]], +[" ",[[4,100]]], +[" ┃ ",[[4,2],[9,1],[6,95],[4,2]]], +[" ┃ Subagents Shell Terminals esc ",[[4,2],[9,1],[6,2],[10,9],[6,2],[11,5],[6,2],[11,9],[6,61],[11,3],[6,2],[4,2]]], +[" ┃ ",[[4,2],[9,1],[6,95],[4,2]]], +[" ┃ General: Review the docs ",[[4,2],[9,1],[6,1],[12,1],[13,24],[12,67],[6,2],[4,2]]], +[" ┃ ",[[4,2],[9,1],[6,95],[4,2]]], +[" ┃ ",[[4,2],[9,1],[6,95],[4,2]]], +[" ┃ ",[[4,2],[9,1],[6,95],[4,2]]], +[" ┃ ",[[4,2],[9,1],[6,95],[4,2]]], +[" ┃ ",[[4,2],[9,1],[6,95],[4,2]]], +[" ┃ show active ctrl+a tabs ←/→ ",[[4,2],[9,1],[6,2],[10,11],[6,1],[11,6],[6,2],[10,4],[6,1],[11,3],[6,65],[4,2]]], +[" ┃ ",[[4,2],[9,1],[6,95],[4,2]]], +[" ",[[4,100]]] +]} diff --git a/packages/cli-rs/parity/fixtures/E.13b/composer/next.json b/packages/cli-rs/parity/fixtures/E.13b/composer/next.json new file mode 100644 index 000000000000..8c0ffb386291 --- /dev/null +++ b/packages/cli-rs/parity/fixtures/E.13b/composer/next.json @@ -0,0 +1,32 @@ +{"width":100,"height":30,"styles":["#ffffffff #202020ff 0","#93a2b7ff #202020ff 1","#ffffffff #202020ff 1","#808080ff #080808ff 0","#ffffffff #080808ff 0","#7699feff #141414ff 0","#ffffffff #141414ff 0","#eeeeeeff #080808ff 0","#7699feff #080808ff 0","#484848ff #141414ff 0","#ffffffff #141414ff 1","#808080ff #141414ff 0","#ffffffff #23344bff 0","#ffffffff #23344bff 1"],"lines":[ +[" ⠋ Plan the release + ",[[0,1],[1,1],[0,1],[2,16],[0,13],[3,3],[4,65]]], +[" ",[[4,100]]], +[" ┃ ",[[4,2],[5,1],[6,95],[4,2]]], +[" ┃ Ship it ",[[4,2],[5,1],[6,95],[4,2]]], +[" ┃ ",[[4,2],[5,1],[6,95],[4,2]]], +[" ",[[4,100]]], +[" Done. ",[[4,5],[7,5],[4,90]]], +[" ",[[4,100]]], +[" Build · provider/model · 1.0s ",[[4,5],[8,5],[3,24],[4,66]]], +[" ",[[4,100]]], +[" ",[[4,100]]], +[" ",[[4,100]]], +[" ",[[4,100]]], +[" ",[[4,100]]], +[" ",[[4,100]]], +[" ",[[4,100]]], +[" ",[[4,100]]], +[" ",[[4,100]]], +[" ┃ ",[[4,2],[9,1],[6,95],[4,2]]], +[" ┃ Subagents Shell Terminals esc ",[[4,2],[9,1],[6,2],[10,9],[6,2],[11,5],[6,2],[11,9],[6,61],[11,3],[6,2],[4,2]]], +[" ┃ ",[[4,2],[9,1],[6,95],[4,2]]], +[" ┃ Explore: Find the parser () Running ",[[4,2],[9,1],[6,85],[11,7],[6,3],[4,2]]], +[" ┃ └─ General: Check the tests () Running ",[[4,2],[9,1],[6,1],[12,1],[13,30],[12,61],[6,2],[4,2]]], +[" ┃ ",[[4,2],[9,1],[6,95],[4,2]]], +[" ┃ ",[[4,2],[9,1],[6,95],[4,2]]], +[" ┃ ",[[4,2],[9,1],[6,95],[4,2]]], +[" ┃ ",[[4,2],[9,1],[6,95],[4,2]]], +[" ┃ interrupt ctrl+d show inactive ctrl+a tabs ←/→ ",[[4,2],[9,1],[6,2],[10,9],[6,1],[11,6],[6,2],[10,13],[6,1],[11,6],[6,2],[10,4],[6,1],[11,3],[6,45],[4,2]]], +[" ┃ ",[[4,2],[9,1],[6,95],[4,2]]], +[" ",[[4,100]]] +]} diff --git a/packages/cli-rs/parity/fixtures/E.13b/composer/output-closed.json b/packages/cli-rs/parity/fixtures/E.13b/composer/output-closed.json new file mode 100644 index 000000000000..9d7a4c95aa48 --- /dev/null +++ b/packages/cli-rs/parity/fixtures/E.13b/composer/output-closed.json @@ -0,0 +1,32 @@ +{"width":100,"height":30,"styles":["#ffffffff #202020ff 0","#93a2b7ff #202020ff 1","#ffffffff #202020ff 1","#808080ff #080808ff 0","#ffffffff #080808ff 0","#7699feff #141414ff 0","#ffffffff #141414ff 0","#eeeeeeff #080808ff 0","#7699feff #080808ff 0","#484848ff #141414ff 0","#808080ff #141414ff 0","#ffffffff #141414ff 1","#ffffffff #23344bff 0","#ffffffff #23344bff 1"],"lines":[ +[" ⠋ Plan the release + ",[[0,1],[1,1],[0,1],[2,16],[0,13],[3,3],[4,65]]], +[" ",[[4,100]]], +[" ┃ ",[[4,2],[5,1],[6,95],[4,2]]], +[" ┃ Ship it ",[[4,2],[5,1],[6,95],[4,2]]], +[" ┃ ",[[4,2],[5,1],[6,95],[4,2]]], +[" ",[[4,100]]], +[" Done. ",[[4,5],[7,5],[4,90]]], +[" ",[[4,100]]], +[" Build · provider/model · 1.0s ",[[4,5],[8,5],[3,24],[4,66]]], +[" ",[[4,100]]], +[" ",[[4,100]]], +[" ",[[4,100]]], +[" ",[[4,100]]], +[" ",[[4,100]]], +[" ",[[4,100]]], +[" ",[[4,100]]], +[" ",[[4,100]]], +[" ",[[4,100]]], +[" ┃ ",[[4,2],[9,1],[6,95],[4,2]]], +[" ┃ Subagents Shell Terminals esc ",[[4,2],[9,1],[6,2],[10,9],[6,2],[11,5],[6,2],[10,9],[6,61],[10,3],[6,2],[4,2]]], +[" ┃ ",[[4,2],[9,1],[6,95],[4,2]]], +[" ┃ bun run build --watch ",[[4,2],[9,1],[6,1],[12,1],[13,21],[12,70],[6,2],[4,2]]], +[" ┃ ",[[4,2],[9,1],[6,95],[4,2]]], +[" ┃ ",[[4,2],[9,1],[6,95],[4,2]]], +[" ┃ ",[[4,2],[9,1],[6,95],[4,2]]], +[" ┃ ",[[4,2],[9,1],[6,95],[4,2]]], +[" ┃ ",[[4,2],[9,1],[6,95],[4,2]]], +[" ┃ output enter kill ctrl+d tabs ←/→ ",[[4,2],[9,1],[6,2],[11,6],[6,1],[10,5],[6,2],[11,4],[6,1],[10,6],[6,2],[11,4],[6,1],[10,3],[6,58],[4,2]]], +[" ┃ ",[[4,2],[9,1],[6,95],[4,2]]], +[" ",[[4,100]]] +]} diff --git a/packages/cli-rs/parity/fixtures/E.13b/composer/output.json b/packages/cli-rs/parity/fixtures/E.13b/composer/output.json new file mode 100644 index 000000000000..d5d595f16442 --- /dev/null +++ b/packages/cli-rs/parity/fixtures/E.13b/composer/output.json @@ -0,0 +1,32 @@ +{"width":100,"height":30,"styles":["#ffffffff #0d0d0dff 0","#3d434bff #0d0d0dff 1","#696969ff #0d0d0dff 1","#ffffffff #030303ff 0","#353535ff #030303ff 0","#313f69ff #080808ff 0","#ffffffff #080808ff 0","#696969ff #080808ff 0","#ffffffff #141414ff 0","#ffffffff #141414ff 1","#808080ff #141414ff 0","#ffffffff #202020ff 0","#808080ff #202020ff 0","#1e1e1eff #080808ff 0","#696969ff #080808ff 1","#353535ff #080808ff 0"],"lines":[ +[" ⠋ Plan the release + ",[[0,1],[1,1],[0,1],[2,4],[0,1],[2,3],[0,1],[2,7],[0,13],[3,1],[4,1],[3,66]]], +[" ",[[3,100]]], +[" ┃ ",[[3,2],[5,1],[6,95],[3,2]]], +[" ┃ Ship it ",[[3,2],[5,1],[6,2],[7,4],[6,1],[7,2],[6,86],[3,2]]], +[" ",[[3,1],[8,98],[3,1]]], +[" Shell output Exited · code 0 esc ",[[3,1],[8,3],[9,12],[8,60],[10,15],[8,2],[10,3],[8,3],[3,1]]], +[" ",[[3,1],[8,98],[3,1]]], +[" bun run build --watch ",[[3,1],[8,3],[10,21],[8,74],[3,1]]], +[" bun test ",[[3,1],[8,3],[10,8],[8,87],[3,1]]], +[" ",[[3,1],[8,98],[3,1]]], +[" No captured output. Output redirected to files is not shown here. ",[[3,1],[8,98],[3,1]]], +[" ",[[3,1],[8,98],[3,1]]], +[" ",[[3,1],[8,98],[3,1]]], +[" ",[[3,1],[8,98],[3,1]]], +[" ",[[3,1],[8,98],[3,1]]], +[" ",[[3,1],[8,98],[3,1]]], +[" ",[[3,1],[8,98],[3,1]]], +[" ",[[3,1],[8,98],[3,1]]], +[" ",[[3,1],[8,98],[3,1]]], +[" ",[[3,1],[8,98],[3,1]]], +[" ",[[3,1],[8,98],[3,1]]], +[" ",[[3,1],[8,98],[3,1]]], +[" ",[[3,1],[8,98],[3,1]]], +[" ",[[3,1],[11,98],[3,1]]], +[" follow end copy command c copy output o ",[[3,1],[11,58],[12,4],[11,15],[12,2],[11,14],[12,2],[11,3],[3,1]]], +[" ",[[3,1],[11,98],[3,1]]], +[" ┃ ",[[3,2],[13,1],[6,95],[3,2]]], +[" ┃ output enter kill ctrl+d tabs ←/→ ",[[3,2],[13,1],[6,2],[14,6],[6,1],[15,5],[6,2],[14,4],[6,1],[15,6],[6,2],[14,4],[6,1],[15,3],[6,58],[3,2]]], +[" ┃ ",[[3,2],[13,1],[6,95],[3,2]]], +[" ",[[3,100]]] +]} diff --git a/packages/cli-rs/parity/fixtures/E.13b/composer/parent.json b/packages/cli-rs/parity/fixtures/E.13b/composer/parent.json new file mode 100644 index 000000000000..305ca93e1866 --- /dev/null +++ b/packages/cli-rs/parity/fixtures/E.13b/composer/parent.json @@ -0,0 +1,32 @@ +{"width":100,"height":30,"styles":["#ffffffff #202020ff 0","#93a2b7ff #202020ff 1","#ffffffff #202020ff 1","#808080ff #080808ff 0","#ffffffff #080808ff 0","#7699feff #141414ff 0","#ffffffff #141414ff 0","#eeeeeeff #080808ff 0","#7699feff #080808ff 0","#484848ff #080808ff 0","#202020ff #080808ff 0"],"lines":[ +[" ⠋ Plan the release + ",[[0,1],[1,1],[0,1],[2,16],[0,13],[3,3],[4,65]]], +[" ",[[4,100]]], +[" ┃ ",[[4,2],[5,1],[6,95],[4,2]]], +[" ┃ Ship it ",[[4,2],[5,1],[6,95],[4,2]]], +[" ┃ ",[[4,2],[5,1],[6,95],[4,2]]], +[" ",[[4,100]]], +[" Done. ",[[4,5],[7,5],[4,90]]], +[" ",[[4,100]]], +[" Build · provider/model · 1.0s ",[[4,5],[8,5],[3,24],[4,66]]], +[" ",[[4,100]]], +[" ",[[4,100]]], +[" ",[[4,100]]], +[" ",[[4,100]]], +[" ",[[4,100]]], +[" ",[[4,100]]], +[" ",[[4,100]]], +[" ",[[4,100]]], +[" ",[[4,100]]], +[" ",[[4,100]]], +[" ",[[4,100]]], +[" ",[[4,100]]], +[" ",[[4,100]]], +[" ",[[4,100]]], +[" ┃ ",[[4,2],[9,1],[0,95],[4,2]]], +[" ┃ ",[[4,2],[9,1],[0,95],[4,2]]], +[" ┃ ",[[4,2],[9,1],[0,95],[4,2]]], +[" ┃ ",[[4,2],[9,1],[0,95],[4,2]]], +[" ╹▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀ ",[[4,2],[9,1],[10,95],[4,2]]], +[" /tmp/opencode/packages/tui:main ↓ 2 subagents · 1 shell ctrl+p commands ",[[4,2],[3,31],[4,27],[3,21],[4,9],[3,8],[4,2]]], +[" ",[[4,100]]] +]} diff --git a/packages/cli-rs/parity/fixtures/E.13b/composer/session.json b/packages/cli-rs/parity/fixtures/E.13b/composer/session.json new file mode 100644 index 000000000000..305ca93e1866 --- /dev/null +++ b/packages/cli-rs/parity/fixtures/E.13b/composer/session.json @@ -0,0 +1,32 @@ +{"width":100,"height":30,"styles":["#ffffffff #202020ff 0","#93a2b7ff #202020ff 1","#ffffffff #202020ff 1","#808080ff #080808ff 0","#ffffffff #080808ff 0","#7699feff #141414ff 0","#ffffffff #141414ff 0","#eeeeeeff #080808ff 0","#7699feff #080808ff 0","#484848ff #080808ff 0","#202020ff #080808ff 0"],"lines":[ +[" ⠋ Plan the release + ",[[0,1],[1,1],[0,1],[2,16],[0,13],[3,3],[4,65]]], +[" ",[[4,100]]], +[" ┃ ",[[4,2],[5,1],[6,95],[4,2]]], +[" ┃ Ship it ",[[4,2],[5,1],[6,95],[4,2]]], +[" ┃ ",[[4,2],[5,1],[6,95],[4,2]]], +[" ",[[4,100]]], +[" Done. ",[[4,5],[7,5],[4,90]]], +[" ",[[4,100]]], +[" Build · provider/model · 1.0s ",[[4,5],[8,5],[3,24],[4,66]]], +[" ",[[4,100]]], +[" ",[[4,100]]], +[" ",[[4,100]]], +[" ",[[4,100]]], +[" ",[[4,100]]], +[" ",[[4,100]]], +[" ",[[4,100]]], +[" ",[[4,100]]], +[" ",[[4,100]]], +[" ",[[4,100]]], +[" ",[[4,100]]], +[" ",[[4,100]]], +[" ",[[4,100]]], +[" ",[[4,100]]], +[" ┃ ",[[4,2],[9,1],[0,95],[4,2]]], +[" ┃ ",[[4,2],[9,1],[0,95],[4,2]]], +[" ┃ ",[[4,2],[9,1],[0,95],[4,2]]], +[" ┃ ",[[4,2],[9,1],[0,95],[4,2]]], +[" ╹▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀ ",[[4,2],[9,1],[10,95],[4,2]]], +[" /tmp/opencode/packages/tui:main ↓ 2 subagents · 1 shell ctrl+p commands ",[[4,2],[3,31],[4,27],[3,21],[4,9],[3,8],[4,2]]], +[" ",[[4,100]]] +]} diff --git a/packages/cli-rs/parity/fixtures/E.13b/composer/shell.json b/packages/cli-rs/parity/fixtures/E.13b/composer/shell.json new file mode 100644 index 000000000000..9d7a4c95aa48 --- /dev/null +++ b/packages/cli-rs/parity/fixtures/E.13b/composer/shell.json @@ -0,0 +1,32 @@ +{"width":100,"height":30,"styles":["#ffffffff #202020ff 0","#93a2b7ff #202020ff 1","#ffffffff #202020ff 1","#808080ff #080808ff 0","#ffffffff #080808ff 0","#7699feff #141414ff 0","#ffffffff #141414ff 0","#eeeeeeff #080808ff 0","#7699feff #080808ff 0","#484848ff #141414ff 0","#808080ff #141414ff 0","#ffffffff #141414ff 1","#ffffffff #23344bff 0","#ffffffff #23344bff 1"],"lines":[ +[" ⠋ Plan the release + ",[[0,1],[1,1],[0,1],[2,16],[0,13],[3,3],[4,65]]], +[" ",[[4,100]]], +[" ┃ ",[[4,2],[5,1],[6,95],[4,2]]], +[" ┃ Ship it ",[[4,2],[5,1],[6,95],[4,2]]], +[" ┃ ",[[4,2],[5,1],[6,95],[4,2]]], +[" ",[[4,100]]], +[" Done. ",[[4,5],[7,5],[4,90]]], +[" ",[[4,100]]], +[" Build · provider/model · 1.0s ",[[4,5],[8,5],[3,24],[4,66]]], +[" ",[[4,100]]], +[" ",[[4,100]]], +[" ",[[4,100]]], +[" ",[[4,100]]], +[" ",[[4,100]]], +[" ",[[4,100]]], +[" ",[[4,100]]], +[" ",[[4,100]]], +[" ",[[4,100]]], +[" ┃ ",[[4,2],[9,1],[6,95],[4,2]]], +[" ┃ Subagents Shell Terminals esc ",[[4,2],[9,1],[6,2],[10,9],[6,2],[11,5],[6,2],[10,9],[6,61],[10,3],[6,2],[4,2]]], +[" ┃ ",[[4,2],[9,1],[6,95],[4,2]]], +[" ┃ bun run build --watch ",[[4,2],[9,1],[6,1],[12,1],[13,21],[12,70],[6,2],[4,2]]], +[" ┃ ",[[4,2],[9,1],[6,95],[4,2]]], +[" ┃ ",[[4,2],[9,1],[6,95],[4,2]]], +[" ┃ ",[[4,2],[9,1],[6,95],[4,2]]], +[" ┃ ",[[4,2],[9,1],[6,95],[4,2]]], +[" ┃ ",[[4,2],[9,1],[6,95],[4,2]]], +[" ┃ output enter kill ctrl+d tabs ←/→ ",[[4,2],[9,1],[6,2],[11,6],[6,1],[10,5],[6,2],[11,4],[6,1],[10,6],[6,2],[11,4],[6,1],[10,3],[6,58],[4,2]]], +[" ┃ ",[[4,2],[9,1],[6,95],[4,2]]], +[" ",[[4,100]]] +]} diff --git a/packages/cli-rs/parity/fixtures/E.13b/composer/subagents.json b/packages/cli-rs/parity/fixtures/E.13b/composer/subagents.json new file mode 100644 index 000000000000..3c91aba42ce6 --- /dev/null +++ b/packages/cli-rs/parity/fixtures/E.13b/composer/subagents.json @@ -0,0 +1,32 @@ +{"width":100,"height":30,"styles":["#ffffffff #202020ff 0","#93a2b7ff #202020ff 1","#ffffffff #202020ff 1","#808080ff #080808ff 0","#ffffffff #080808ff 0","#7699feff #141414ff 0","#ffffffff #141414ff 0","#eeeeeeff #080808ff 0","#7699feff #080808ff 0","#484848ff #141414ff 0","#ffffffff #141414ff 1","#808080ff #141414ff 0","#ffffffff #23344bff 0","#ffffffff #23344bff 1"],"lines":[ +[" ⠋ Plan the release + ",[[0,1],[1,1],[0,1],[2,16],[0,13],[3,3],[4,65]]], +[" ",[[4,100]]], +[" ┃ ",[[4,2],[5,1],[6,95],[4,2]]], +[" ┃ Ship it ",[[4,2],[5,1],[6,95],[4,2]]], +[" ┃ ",[[4,2],[5,1],[6,95],[4,2]]], +[" ",[[4,100]]], +[" Done. ",[[4,5],[7,5],[4,90]]], +[" ",[[4,100]]], +[" Build · provider/model · 1.0s ",[[4,5],[8,5],[3,24],[4,66]]], +[" ",[[4,100]]], +[" ",[[4,100]]], +[" ",[[4,100]]], +[" ",[[4,100]]], +[" ",[[4,100]]], +[" ",[[4,100]]], +[" ",[[4,100]]], +[" ",[[4,100]]], +[" ",[[4,100]]], +[" ┃ ",[[4,2],[9,1],[6,95],[4,2]]], +[" ┃ Subagents Shell Terminals esc ",[[4,2],[9,1],[6,2],[10,9],[6,2],[11,5],[6,2],[11,9],[6,61],[11,3],[6,2],[4,2]]], +[" ┃ ",[[4,2],[9,1],[6,95],[4,2]]], +[" ┃ Explore: Find the parser () Running ",[[4,2],[9,1],[6,1],[12,1],[13,27],[12,64],[6,2],[4,2]]], +[" ┃ └─ General: Check the tests () Running ",[[4,2],[9,1],[6,85],[11,7],[6,3],[4,2]]], +[" ┃ ",[[4,2],[9,1],[6,95],[4,2]]], +[" ┃ ",[[4,2],[9,1],[6,95],[4,2]]], +[" ┃ ",[[4,2],[9,1],[6,95],[4,2]]], +[" ┃ ",[[4,2],[9,1],[6,95],[4,2]]], +[" ┃ interrupt ctrl+d show inactive ctrl+a tabs ←/→ ",[[4,2],[9,1],[6,2],[10,9],[6,1],[11,6],[6,2],[10,13],[6,1],[11,6],[6,2],[10,4],[6,1],[11,3],[6,45],[4,2]]], +[" ┃ ",[[4,2],[9,1],[6,95],[4,2]]], +[" ",[[4,100]]] +]} diff --git a/packages/cli-rs/parity/fixtures/E.13b/composer/terminals.json b/packages/cli-rs/parity/fixtures/E.13b/composer/terminals.json new file mode 100644 index 000000000000..5eacb181ede4 --- /dev/null +++ b/packages/cli-rs/parity/fixtures/E.13b/composer/terminals.json @@ -0,0 +1,32 @@ +{"width":100,"height":30,"styles":["#ffffffff #202020ff 0","#93a2b7ff #202020ff 1","#ffffffff #202020ff 1","#808080ff #080808ff 0","#ffffffff #080808ff 0","#7699feff #141414ff 0","#ffffffff #141414ff 0","#eeeeeeff #080808ff 0","#7699feff #080808ff 0","#484848ff #141414ff 0","#808080ff #141414ff 0","#ffffffff #141414ff 1"],"lines":[ +[" ⠋ Plan the release + ",[[0,1],[1,1],[0,1],[2,16],[0,13],[3,3],[4,65]]], +[" ",[[4,100]]], +[" ┃ ",[[4,2],[5,1],[6,95],[4,2]]], +[" ┃ Ship it ",[[4,2],[5,1],[6,95],[4,2]]], +[" ┃ ",[[4,2],[5,1],[6,95],[4,2]]], +[" ",[[4,100]]], +[" Done. ",[[4,5],[7,5],[4,90]]], +[" ",[[4,100]]], +[" Build · provider/model · 1.0s ",[[4,5],[8,5],[3,24],[4,66]]], +[" ",[[4,100]]], +[" ",[[4,100]]], +[" ",[[4,100]]], +[" ",[[4,100]]], +[" ",[[4,100]]], +[" ",[[4,100]]], +[" ",[[4,100]]], +[" ",[[4,100]]], +[" ",[[4,100]]], +[" ┃ ",[[4,2],[9,1],[6,95],[4,2]]], +[" ┃ Subagents Shell Terminals esc ",[[4,2],[9,1],[6,2],[10,9],[6,2],[10,5],[6,2],[11,9],[6,61],[10,3],[6,2],[4,2]]], +[" ┃ ",[[4,2],[9,1],[6,95],[4,2]]], +[" ┃ + New terminal ",[[4,2],[9,1],[6,95],[4,2]]], +[" ┃ ",[[4,2],[9,1],[6,95],[4,2]]], +[" ┃ ",[[4,2],[9,1],[6,95],[4,2]]], +[" ┃ ",[[4,2],[9,1],[6,95],[4,2]]], +[" ┃ ",[[4,2],[9,1],[6,95],[4,2]]], +[" ┃ ",[[4,2],[9,1],[6,95],[4,2]]], +[" ┃ tabs ←/→ ",[[4,2],[9,1],[6,2],[11,4],[6,1],[10,3],[6,85],[4,2]]], +[" ┃ ",[[4,2],[9,1],[6,95],[4,2]]], +[" ",[[4,100]]] +]} diff --git a/packages/cli-rs/parity/fixtures/E.13b/composer/typed.json b/packages/cli-rs/parity/fixtures/E.13b/composer/typed.json new file mode 100644 index 000000000000..f0fa4520e775 --- /dev/null +++ b/packages/cli-rs/parity/fixtures/E.13b/composer/typed.json @@ -0,0 +1,32 @@ +{"width":100,"height":30,"styles":["#ffffffff #202020ff 0","#93a2b7ff #202020ff 1","#ffffffff #202020ff 1","#808080ff #080808ff 0","#ffffffff #080808ff 0","#7699feff #141414ff 0","#ffffffff #141414ff 0","#eeeeeeff #080808ff 0","#7699feff #080808ff 0","#484848ff #080808ff 0","#202020ff #080808ff 0"],"lines":[ +[" ⠋ Plan the release + ",[[0,1],[1,1],[0,1],[2,16],[0,13],[3,3],[4,65]]], +[" ",[[4,100]]], +[" ┃ ",[[4,2],[5,1],[6,95],[4,2]]], +[" ┃ Ship it ",[[4,2],[5,1],[6,95],[4,2]]], +[" ┃ ",[[4,2],[5,1],[6,95],[4,2]]], +[" ",[[4,100]]], +[" Done. ",[[4,5],[7,5],[4,90]]], +[" ",[[4,100]]], +[" Build · provider/model · 1.0s ",[[4,5],[8,5],[3,24],[4,66]]], +[" ",[[4,100]]], +[" ",[[4,100]]], +[" ",[[4,100]]], +[" ",[[4,100]]], +[" ",[[4,100]]], +[" ",[[4,100]]], +[" ",[[4,100]]], +[" ",[[4,100]]], +[" ",[[4,100]]], +[" ",[[4,100]]], +[" ",[[4,100]]], +[" ",[[4,100]]], +[" ",[[4,100]]], +[" ",[[4,100]]], +[" ┃ ",[[4,2],[9,1],[0,95],[4,2]]], +[" ┃ ok ",[[4,2],[9,1],[0,95],[4,2]]], +[" ┃ ",[[4,2],[9,1],[0,95],[4,2]]], +[" ┃ ",[[4,2],[9,1],[0,95],[4,2]]], +[" ╹▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀ ",[[4,2],[9,1],[10,95],[4,2]]], +[" /tmp/opencode/packages/tui:main ↓ 2 subagents · 1 shell ctrl+p commands ",[[4,2],[3,31],[4,27],[3,21],[4,9],[3,8],[4,2]]], +[" ",[[4,100]]] +]} diff --git a/packages/cli-rs/parity/fixtures/E.13b/scripts.app.json b/packages/cli-rs/parity/fixtures/E.13b/scripts.app.json new file mode 100644 index 000000000000..29d1540875c8 --- /dev/null +++ b/packages/cli-rs/parity/fixtures/E.13b/scripts.app.json @@ -0,0 +1,75 @@ +{ + "scenario": "E.13b/scripts", + "width": 100, + "height": 30, + "directory": "/tmp/opencode/packages/tui", + "config": { + "animations": false, + "experimental": {"new-designs":true}, + "theme": {"name":"opencode"} + }, + "args": { + "sessionID": "ses_p" + }, + "routes": [ + {"path":"/api/session/ses_p","json":{"data":{"id":"ses_p","title":"Plan the release","projectID":"proj_test","cost":0,"tokens":{"input":0,"output":0,"reasoning":0,"cache":{"read":0,"write":0}},"time":{"created":10,"updated":10},"location":{"directory":"/tmp/opencode/packages/tui"}}}}, + {"path":"/api/session","json":{"data":[{"id":"ses_p","title":"Plan the release","projectID":"proj_test","cost":0,"tokens":{"input":0,"output":0,"reasoning":0,"cache":{"read":0,"write":0}},"time":{"created":10,"updated":10},"location":{"directory":"/tmp/opencode/packages/tui"}},{"id":"ses_c","title":"Scan the logs (@explore subagent)","projectID":"proj_test","cost":0,"tokens":{"input":0,"output":0,"reasoning":0,"cache":{"read":0,"write":0}},"time":{"created":9,"updated":9},"location":{"directory":"/tmp/opencode/packages/tui"},"parentID":"ses_p"}],"cursor":{}}}, + {"path":"/api/session/ses_p/message","json":{"data":[{"id":"msg_2","type":"assistant","agent":"build","model":{"providerID":"provider","id":"model"},"content":[{"type":"tool","id":"prt_execute","name":"execute","state":{"status":"completed","input":{"code":"\n // Build both packages\nawait Promise.all([build('a'), build('b')])"},"content":[{"type":"text","text":"Moved to the background as cm_1."}],"metadata":{"jobID":"cm_1"}},"time":{"created":1500,"completed":1600}}],"finish":"stop","time":{"created":2000,"completed":2001}},{"id":"msg_1","type":"user","text":"Build it","time":{"created":1000}}],"cursor":{}}}, + {"path":"/api/session/ses_p/inbox","json":{"data":[]}}, + {"path":"/api/experimental/job","json":{"data":[{"kind":"codemode","id":"cm_1","sessionID":"ses_p","status":"running","time":{"started":4102444800000}},{"kind":"codemode","id":"cm_2","sessionID":"ses_p","status":"running","title":"Watch the logs","time":{"started":4102444800000}},{"kind":"codemode","id":"cm_3","sessionID":"ses_c","status":"running","time":{"started":4102444800000}}]}}, + {"method":"POST","path":"/api/experimental/job/:id/cancel","status":204} + ], + "steps": [ + {"checkpoint":"session","until":"2 scripts · 1 subagent","fixture":"E.13b/scripts/session"}, + {"keys":["down"]}, + {"checkpoint":"scripts","until":"Watch the logs","fixture":"E.13b/scripts/scripts"}, + {"keys":["down"]}, + {"checkpoint":"moved","fixture":"E.13b/scripts/moved"}, + {"keys":["ctrl+d"]}, + {"event":{"id":"evt_cancelled","created":3,"type":"experimental.job.updated","location":{"directory":"/tmp/opencode/packages/tui"},"data":{"info":{"kind":"codemode","id":"cm_2","sessionID":"ses_p","status":"cancelled","title":"Watch the logs","time":{"started":4102444800000,"completed":4102444802000}}}}}, + {"checkpoint":"cancelled","until":"Build both packages","fixture":"E.13b/scripts/cancelled"}, + {"keys":["left","left"]}, + {"checkpoint":"subagents","until":"interrupt","fixture":"E.13b/scripts/subagents"}, + {"keys":["ctrl+d"]}, + {"checkpoint":"interrupted","fixture":"E.13b/scripts/interrupted"} + ], + "requests": { + "writes": [ + {"method":"POST","path":"/api/experimental/job/cm_2/cancel","query":{},"status":204}, + {"method":"POST","path":"/api/experimental/job/cm_3/cancel","query":{},"status":204} + ], + "reads": [ + {"method":"GET","path":"/api/agent","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":[]}}, + {"method":"GET","path":"/api/command","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":[]}}, + {"method":"GET","path":"/api/config","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":[]}, + {"method":"GET","path":"/api/experimental/job","query":{"descendants":["true"],"sessionID":["ses_p"],"status":["running"]},"status":200,"json":{"data":[{"kind":"codemode","id":"cm_1","sessionID":"ses_p","status":"running","time":{"started":4102444800000}},{"kind":"codemode","id":"cm_2","sessionID":"ses_p","status":"running","title":"Watch the logs","time":{"started":4102444800000}},{"kind":"codemode","id":"cm_3","sessionID":"ses_c","status":"running","time":{"started":4102444800000}}]}}, + {"method":"GET","path":"/api/experimental/migration/v1","query":{},"status":200,"json":{"status":"completed"}}, + {"method":"GET","path":"/api/experimental/session/ses_p/terminal","query":{},"status":200,"json":{"data":[]}}, + {"method":"GET","path":"/api/form","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode"}},"data":[]}}, + {"method":"GET","path":"/api/fs/list","query":{"location[directory]":["<cwd>"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":[]}}, + {"method":"GET","path":"/api/info","query":{},"status":200,"json":{"version":"test","pid":0,"urls":[],"paths":{"tmp":"/tmp"},"capabilities":{"persistentPty":true}}}, + {"method":"GET","path":"/api/integration","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":[]}}, + {"method":"GET","path":"/api/location","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}}}, + {"method":"GET","path":"/api/mcp","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":[]}}, + {"method":"GET","path":"/api/mcp/resource","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":{"resources":[],"templates":[]}}}, + {"method":"GET","path":"/api/model","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":[]}}, + {"method":"GET","path":"/api/plugin","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":[]}}, + {"method":"GET","path":"/api/project","query":{},"status":200,"json":[]}, + {"method":"GET","path":"/api/provider","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":[]}}, + {"method":"GET","path":"/api/reference","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode/packages/tui","canonical":"/tmp/opencode/packages/tui"}},"data":[]}}, + {"method":"GET","path":"/api/session","query":{"limit":["200"],"order":["desc"],"parentID":["ses_p"]},"status":200,"json":{"data":[{"id":"ses_p","title":"Plan the release","projectID":"proj_test","cost":0,"tokens":{"input":0,"output":0,"reasoning":0,"cache":{"read":0,"write":0}},"time":{"created":10,"updated":10},"location":{"directory":"/tmp/opencode/packages/tui"}},{"id":"ses_c","title":"Scan the logs (@explore subagent)","projectID":"proj_test","cost":0,"tokens":{"input":0,"output":0,"reasoning":0,"cache":{"read":0,"write":0}},"time":{"created":9,"updated":9},"location":{"directory":"/tmp/opencode/packages/tui"},"parentID":"ses_p"}],"cursor":{}}}, + {"method":"GET","path":"/api/session/active","query":{},"status":200,"json":{"data":{}}}, + {"method":"GET","path":"/api/session/ses_c/form","query":{},"status":200,"json":{"data":[]}}, + {"method":"GET","path":"/api/session/ses_c/permission","query":{},"status":200,"json":{"data":[]}}, + {"method":"GET","path":"/api/session/ses_p","query":{},"status":200,"json":{"data":{"id":"ses_p","title":"Plan the release","projectID":"proj_test","cost":0,"tokens":{"input":0,"output":0,"reasoning":0,"cache":{"read":0,"write":0}},"time":{"created":10,"updated":10},"location":{"directory":"/tmp/opencode/packages/tui"}}}}, + {"method":"GET","path":"/api/session/ses_p/form","query":{},"status":200,"json":{"data":[]}}, + {"method":"GET","path":"/api/session/ses_p/inbox","query":{},"status":200,"json":{"data":[]}}, + {"method":"GET","path":"/api/session/ses_p/message","query":{"limit":["20"],"order":["desc"]},"status":200,"json":{"data":[{"id":"msg_2","type":"assistant","agent":"build","model":{"providerID":"provider","id":"model"},"content":[{"type":"tool","id":"prt_execute","name":"execute","state":{"status":"completed","input":{"code":"\n // Build both packages\nawait Promise.all([build('a'), build('b')])"},"content":[{"type":"text","text":"Moved to the background as cm_1."}],"metadata":{"jobID":"cm_1"}},"time":{"created":1500,"completed":1600}}],"finish":"stop","time":{"created":2000,"completed":2001}},{"id":"msg_1","type":"user","text":"Build it","time":{"created":1000}}],"cursor":{}}}, + {"method":"GET","path":"/api/session/ses_p/permission","query":{},"status":200,"json":{"data":[]}}, + {"method":"GET","path":"/api/shell","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":[]}}, + {"method":"GET","path":"/api/skill","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":[]}}, + {"method":"GET","path":"/api/vcs","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":{"branch":{"current":"main","default":"main"}}}}, + {"method":"POST","path":"/api/rpc/opencode.goal/get","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"body":{"input":{"sessionID":"ses_p"}},"status":200,"json":{"output":null}} + ] + } +} diff --git a/packages/cli-rs/parity/fixtures/E.13b/scripts/cancelled.json b/packages/cli-rs/parity/fixtures/E.13b/scripts/cancelled.json new file mode 100644 index 000000000000..7331d1ad4004 --- /dev/null +++ b/packages/cli-rs/parity/fixtures/E.13b/scripts/cancelled.json @@ -0,0 +1,32 @@ +{"width":100,"height":30,"styles":["#ffffffff #202020ff 0","#ffffffff #202020ff 1","#808080ff #080808ff 0","#ffffffff #080808ff 0","#7699feff #141414ff 0","#ffffffff #141414ff 0","#7699feff #080808ff 0","#484848ff #141414ff 0","#808080ff #141414ff 0","#ffffffff #141414ff 1","#ffffffff #23344bff 0","#ffffffff #23344bff 1"],"lines":[ +[" Plan the release + ",[[0,3],[1,16],[0,13],[2,3],[3,65]]], +[" ",[[3,100]]], +[" ┃ ",[[3,2],[4,1],[5,95],[3,2]]], +[" ┃ Build it ",[[3,2],[4,1],[5,95],[3,2]]], +[" ┃ ",[[3,2],[4,1],[5,95],[3,2]]], +[" ",[[3,100]]], +[" + 1 tool ",[[3,5],[2,1],[3,1],[2,6],[3,87]]], +[" ",[[3,100]]], +[" Build · provider/model · 1.0s ",[[3,5],[6,5],[2,24],[3,66]]], +[" ",[[3,100]]], +[" ",[[3,100]]], +[" ",[[3,100]]], +[" ",[[3,100]]], +[" ",[[3,100]]], +[" ",[[3,100]]], +[" ",[[3,100]]], +[" ",[[3,100]]], +[" ",[[3,100]]], +[" ┃ ",[[3,2],[7,1],[5,95],[3,2]]], +[" ┃ Subagents Shell Scripts Terminals esc ",[[3,2],[7,1],[5,2],[8,9],[5,2],[8,5],[5,2],[9,7],[5,2],[8,9],[5,52],[8,3],[5,2],[3,2]]], +[" ┃ ",[[3,2],[7,1],[5,95],[3,2]]], +[" ┃ // Build both packages 0s ",[[3,2],[7,1],[5,1],[10,1],[11,22],[10,69],[5,2],[3,2]]], +[" ┃ ",[[3,2],[7,1],[5,95],[3,2]]], +[" ┃ ",[[3,2],[7,1],[5,95],[3,2]]], +[" ┃ ",[[3,2],[7,1],[5,95],[3,2]]], +[" ┃ ",[[3,2],[7,1],[5,95],[3,2]]], +[" ┃ ",[[3,2],[7,1],[5,95],[3,2]]], +[" ┃ cancel ctrl+d tabs ←/→ ",[[3,2],[7,1],[5,2],[9,6],[5,1],[8,6],[5,2],[9,4],[5,1],[8,3],[5,70],[3,2]]], +[" ┃ ",[[3,2],[7,1],[5,95],[3,2]]], +[" ",[[3,100]]] +]} diff --git a/packages/cli-rs/parity/fixtures/E.13b/scripts/interrupted.json b/packages/cli-rs/parity/fixtures/E.13b/scripts/interrupted.json new file mode 100644 index 000000000000..f6cc1388a754 --- /dev/null +++ b/packages/cli-rs/parity/fixtures/E.13b/scripts/interrupted.json @@ -0,0 +1,32 @@ +{"width":100,"height":30,"styles":["#ffffffff #202020ff 0","#ffffffff #202020ff 1","#808080ff #080808ff 0","#ffffffff #080808ff 0","#7699feff #141414ff 0","#ffffffff #141414ff 0","#7699feff #080808ff 0","#484848ff #141414ff 0","#ffffffff #141414ff 1","#808080ff #141414ff 0","#ffffffff #23344bff 0","#ffffffff #23344bff 1"],"lines":[ +[" Plan the release + ",[[0,3],[1,16],[0,13],[2,3],[3,65]]], +[" ",[[3,100]]], +[" ┃ ",[[3,2],[4,1],[5,95],[3,2]]], +[" ┃ Build it ",[[3,2],[4,1],[5,95],[3,2]]], +[" ┃ ",[[3,2],[4,1],[5,95],[3,2]]], +[" ",[[3,100]]], +[" + 1 tool ",[[3,5],[2,1],[3,1],[2,6],[3,87]]], +[" ",[[3,100]]], +[" Build · provider/model · 1.0s ",[[3,5],[6,5],[2,24],[3,66]]], +[" ",[[3,100]]], +[" ",[[3,100]]], +[" ",[[3,100]]], +[" ",[[3,100]]], +[" ",[[3,100]]], +[" ",[[3,100]]], +[" ",[[3,100]]], +[" ",[[3,100]]], +[" ",[[3,100]]], +[" ┃ ",[[3,2],[7,1],[5,95],[3,2]]], +[" ┃ Subagents Shell Scripts Terminals esc ",[[3,2],[7,1],[5,2],[8,9],[5,2],[9,5],[5,2],[9,7],[5,2],[9,9],[5,52],[9,3],[5,2],[3,2]]], +[" ┃ ",[[3,2],[7,1],[5,95],[3,2]]], +[" ┃ Explore: Scan the logs () ",[[3,2],[7,1],[5,1],[10,1],[11,25],[10,66],[5,2],[3,2]]], +[" ┃ ",[[3,2],[7,1],[5,95],[3,2]]], +[" ┃ ",[[3,2],[7,1],[5,95],[3,2]]], +[" ┃ ",[[3,2],[7,1],[5,95],[3,2]]], +[" ┃ ",[[3,2],[7,1],[5,95],[3,2]]], +[" ┃ ",[[3,2],[7,1],[5,95],[3,2]]], +[" ┃ interrupt ctrl+d show inactive ctrl+a tabs ←/→ ",[[3,2],[7,1],[5,2],[8,9],[5,1],[9,6],[5,2],[8,13],[5,1],[9,6],[5,2],[8,4],[5,1],[9,3],[5,45],[3,2]]], +[" ┃ ",[[3,2],[7,1],[5,95],[3,2]]], +[" ",[[3,100]]] +]} diff --git a/packages/cli-rs/parity/fixtures/E.13b/scripts/moved.json b/packages/cli-rs/parity/fixtures/E.13b/scripts/moved.json new file mode 100644 index 000000000000..a078df8b4f33 --- /dev/null +++ b/packages/cli-rs/parity/fixtures/E.13b/scripts/moved.json @@ -0,0 +1,32 @@ +{"width":100,"height":30,"styles":["#ffffffff #202020ff 0","#ffffffff #202020ff 1","#808080ff #080808ff 0","#ffffffff #080808ff 0","#7699feff #141414ff 0","#ffffffff #141414ff 0","#7699feff #080808ff 0","#484848ff #141414ff 0","#808080ff #141414ff 0","#ffffffff #141414ff 1","#ffffffff #23344bff 0","#ffffffff #23344bff 1"],"lines":[ +[" Plan the release + ",[[0,3],[1,16],[0,13],[2,3],[3,65]]], +[" ",[[3,100]]], +[" ┃ ",[[3,2],[4,1],[5,95],[3,2]]], +[" ┃ Build it ",[[3,2],[4,1],[5,95],[3,2]]], +[" ┃ ",[[3,2],[4,1],[5,95],[3,2]]], +[" ",[[3,100]]], +[" + 1 tool ",[[3,5],[2,1],[3,1],[2,6],[3,87]]], +[" ",[[3,100]]], +[" Build · provider/model · 1.0s ",[[3,5],[6,5],[2,24],[3,66]]], +[" ",[[3,100]]], +[" ",[[3,100]]], +[" ",[[3,100]]], +[" ",[[3,100]]], +[" ",[[3,100]]], +[" ",[[3,100]]], +[" ",[[3,100]]], +[" ",[[3,100]]], +[" ",[[3,100]]], +[" ┃ ",[[3,2],[7,1],[5,95],[3,2]]], +[" ┃ Subagents Shell Scripts Terminals esc ",[[3,2],[7,1],[5,2],[8,9],[5,2],[8,5],[5,2],[9,7],[5,2],[8,9],[5,52],[8,3],[5,2],[3,2]]], +[" ┃ ",[[3,2],[7,1],[5,95],[3,2]]], +[" ┃ // Build both packages 0s ",[[3,2],[7,1],[5,90],[8,2],[5,3],[3,2]]], +[" ┃ Watch the logs 0s ",[[3,2],[7,1],[5,1],[10,1],[11,14],[10,77],[5,2],[3,2]]], +[" ┃ ",[[3,2],[7,1],[5,95],[3,2]]], +[" ┃ ",[[3,2],[7,1],[5,95],[3,2]]], +[" ┃ ",[[3,2],[7,1],[5,95],[3,2]]], +[" ┃ ",[[3,2],[7,1],[5,95],[3,2]]], +[" ┃ cancel ctrl+d tabs ←/→ ",[[3,2],[7,1],[5,2],[9,6],[5,1],[8,6],[5,2],[9,4],[5,1],[8,3],[5,70],[3,2]]], +[" ┃ ",[[3,2],[7,1],[5,95],[3,2]]], +[" ",[[3,100]]] +]} diff --git a/packages/cli-rs/parity/fixtures/E.13b/scripts/scripts.json b/packages/cli-rs/parity/fixtures/E.13b/scripts/scripts.json new file mode 100644 index 000000000000..f5125cf37865 --- /dev/null +++ b/packages/cli-rs/parity/fixtures/E.13b/scripts/scripts.json @@ -0,0 +1,32 @@ +{"width":100,"height":30,"styles":["#ffffffff #202020ff 0","#ffffffff #202020ff 1","#808080ff #080808ff 0","#ffffffff #080808ff 0","#7699feff #141414ff 0","#ffffffff #141414ff 0","#7699feff #080808ff 0","#484848ff #141414ff 0","#808080ff #141414ff 0","#ffffffff #141414ff 1","#ffffffff #23344bff 0","#ffffffff #23344bff 1"],"lines":[ +[" Plan the release + ",[[0,3],[1,16],[0,13],[2,3],[3,65]]], +[" ",[[3,100]]], +[" ┃ ",[[3,2],[4,1],[5,95],[3,2]]], +[" ┃ Build it ",[[3,2],[4,1],[5,95],[3,2]]], +[" ┃ ",[[3,2],[4,1],[5,95],[3,2]]], +[" ",[[3,100]]], +[" + 1 tool ",[[3,5],[2,1],[3,1],[2,6],[3,87]]], +[" ",[[3,100]]], +[" Build · provider/model · 1.0s ",[[3,5],[6,5],[2,24],[3,66]]], +[" ",[[3,100]]], +[" ",[[3,100]]], +[" ",[[3,100]]], +[" ",[[3,100]]], +[" ",[[3,100]]], +[" ",[[3,100]]], +[" ",[[3,100]]], +[" ",[[3,100]]], +[" ",[[3,100]]], +[" ┃ ",[[3,2],[7,1],[5,95],[3,2]]], +[" ┃ Subagents Shell Scripts Terminals esc ",[[3,2],[7,1],[5,2],[8,9],[5,2],[8,5],[5,2],[9,7],[5,2],[8,9],[5,52],[8,3],[5,2],[3,2]]], +[" ┃ ",[[3,2],[7,1],[5,95],[3,2]]], +[" ┃ // Build both packages 0s ",[[3,2],[7,1],[5,1],[10,1],[11,22],[10,69],[5,2],[3,2]]], +[" ┃ Watch the logs 0s ",[[3,2],[7,1],[5,90],[8,2],[5,3],[3,2]]], +[" ┃ ",[[3,2],[7,1],[5,95],[3,2]]], +[" ┃ ",[[3,2],[7,1],[5,95],[3,2]]], +[" ┃ ",[[3,2],[7,1],[5,95],[3,2]]], +[" ┃ ",[[3,2],[7,1],[5,95],[3,2]]], +[" ┃ cancel ctrl+d tabs ←/→ ",[[3,2],[7,1],[5,2],[9,6],[5,1],[8,6],[5,2],[9,4],[5,1],[8,3],[5,70],[3,2]]], +[" ┃ ",[[3,2],[7,1],[5,95],[3,2]]], +[" ",[[3,100]]] +]} diff --git a/packages/cli-rs/parity/fixtures/E.13b/scripts/session.json b/packages/cli-rs/parity/fixtures/E.13b/scripts/session.json new file mode 100644 index 000000000000..560dbbddfe68 --- /dev/null +++ b/packages/cli-rs/parity/fixtures/E.13b/scripts/session.json @@ -0,0 +1,32 @@ +{"width":100,"height":30,"styles":["#ffffffff #202020ff 0","#ffffffff #202020ff 1","#808080ff #080808ff 0","#ffffffff #080808ff 0","#7699feff #141414ff 0","#ffffffff #141414ff 0","#7699feff #080808ff 0","#484848ff #080808ff 0","#202020ff #080808ff 0"],"lines":[ +[" Plan the release + ",[[0,3],[1,16],[0,13],[2,3],[3,65]]], +[" ",[[3,100]]], +[" ┃ ",[[3,2],[4,1],[5,95],[3,2]]], +[" ┃ Build it ",[[3,2],[4,1],[5,95],[3,2]]], +[" ┃ ",[[3,2],[4,1],[5,95],[3,2]]], +[" ",[[3,100]]], +[" + 1 tool ",[[3,5],[2,1],[3,1],[2,6],[3,87]]], +[" ",[[3,100]]], +[" Build · provider/model · 1.0s ",[[3,5],[6,5],[2,24],[3,66]]], +[" ",[[3,100]]], +[" ",[[3,100]]], +[" ",[[3,100]]], +[" ",[[3,100]]], +[" ",[[3,100]]], +[" ",[[3,100]]], +[" ",[[3,100]]], +[" ",[[3,100]]], +[" ",[[3,100]]], +[" ",[[3,100]]], +[" ",[[3,100]]], +[" ",[[3,100]]], +[" ",[[3,100]]], +[" ",[[3,100]]], +[" ┃ ",[[3,2],[7,1],[0,95],[3,2]]], +[" ┃ ",[[3,2],[7,1],[0,95],[3,2]]], +[" ┃ ",[[3,2],[7,1],[0,95],[3,2]]], +[" ┃ ",[[3,2],[7,1],[0,95],[3,2]]], +[" ╹▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀ ",[[3,2],[7,1],[8,95],[3,2]]], +[" /tmp/opencode/packages/tui:main ↓ 2 scripts · 1 subagent ctrl+p commands ",[[3,2],[2,31],[3,26],[2,22],[3,9],[2,8],[3,2]]], +[" ",[[3,100]]] +]} diff --git a/packages/cli-rs/parity/fixtures/E.13b/scripts/subagents.json b/packages/cli-rs/parity/fixtures/E.13b/scripts/subagents.json new file mode 100644 index 000000000000..f6cc1388a754 --- /dev/null +++ b/packages/cli-rs/parity/fixtures/E.13b/scripts/subagents.json @@ -0,0 +1,32 @@ +{"width":100,"height":30,"styles":["#ffffffff #202020ff 0","#ffffffff #202020ff 1","#808080ff #080808ff 0","#ffffffff #080808ff 0","#7699feff #141414ff 0","#ffffffff #141414ff 0","#7699feff #080808ff 0","#484848ff #141414ff 0","#ffffffff #141414ff 1","#808080ff #141414ff 0","#ffffffff #23344bff 0","#ffffffff #23344bff 1"],"lines":[ +[" Plan the release + ",[[0,3],[1,16],[0,13],[2,3],[3,65]]], +[" ",[[3,100]]], +[" ┃ ",[[3,2],[4,1],[5,95],[3,2]]], +[" ┃ Build it ",[[3,2],[4,1],[5,95],[3,2]]], +[" ┃ ",[[3,2],[4,1],[5,95],[3,2]]], +[" ",[[3,100]]], +[" + 1 tool ",[[3,5],[2,1],[3,1],[2,6],[3,87]]], +[" ",[[3,100]]], +[" Build · provider/model · 1.0s ",[[3,5],[6,5],[2,24],[3,66]]], +[" ",[[3,100]]], +[" ",[[3,100]]], +[" ",[[3,100]]], +[" ",[[3,100]]], +[" ",[[3,100]]], +[" ",[[3,100]]], +[" ",[[3,100]]], +[" ",[[3,100]]], +[" ",[[3,100]]], +[" ┃ ",[[3,2],[7,1],[5,95],[3,2]]], +[" ┃ Subagents Shell Scripts Terminals esc ",[[3,2],[7,1],[5,2],[8,9],[5,2],[9,5],[5,2],[9,7],[5,2],[9,9],[5,52],[9,3],[5,2],[3,2]]], +[" ┃ ",[[3,2],[7,1],[5,95],[3,2]]], +[" ┃ Explore: Scan the logs () ",[[3,2],[7,1],[5,1],[10,1],[11,25],[10,66],[5,2],[3,2]]], +[" ┃ ",[[3,2],[7,1],[5,95],[3,2]]], +[" ┃ ",[[3,2],[7,1],[5,95],[3,2]]], +[" ┃ ",[[3,2],[7,1],[5,95],[3,2]]], +[" ┃ ",[[3,2],[7,1],[5,95],[3,2]]], +[" ┃ ",[[3,2],[7,1],[5,95],[3,2]]], +[" ┃ interrupt ctrl+d show inactive ctrl+a tabs ←/→ ",[[3,2],[7,1],[5,2],[8,9],[5,1],[9,6],[5,2],[8,13],[5,1],[9,6],[5,2],[8,4],[5,1],[9,3],[5,45],[3,2]]], +[" ┃ ",[[3,2],[7,1],[5,95],[3,2]]], +[" ",[[3,100]]] +]} diff --git a/packages/cli-rs/parity/fixtures/E.13b/shell-cut.app.json b/packages/cli-rs/parity/fixtures/E.13b/shell-cut.app.json new file mode 100644 index 000000000000..b8b292e24b17 --- /dev/null +++ b/packages/cli-rs/parity/fixtures/E.13b/shell-cut.app.json @@ -0,0 +1,70 @@ +{ + "scenario": "E.13b/shell-cut", + "width": 100, + "height": 30, + "directory": "/tmp/opencode/packages/tui", + "config": { + "experimental": {"new-designs":true}, + "animations": false, + "theme": {"name":"opencode"} + }, + "args": { + "sessionID": "ses_p" + }, + "routes": [ + {"path":"/api/session/ses_p","json":{"data":{"id":"ses_p","title":"Render","projectID":"proj_test","cost":0,"tokens":{"input":0,"output":0,"reasoning":0,"cache":{"read":0,"write":0}},"time":{"created":10,"updated":10},"location":{"directory":"/tmp/opencode/packages/tui"}}}}, + {"path":"/api/session","json":{"data":[{"id":"ses_p","title":"Render","projectID":"proj_test","cost":0,"tokens":{"input":0,"output":0,"reasoning":0,"cache":{"read":0,"write":0}},"time":{"created":10,"updated":10},"location":{"directory":"/tmp/opencode/packages/tui"}}],"cursor":{}}}, + {"path":"/api/session/ses_p/message","json":{"data":[{"id":"msg_p_2","type":"assistant","agent":"build","model":{"providerID":"provider","id":"model"},"content":[{"type":"text","text":"Started it."}],"finish":"stop","time":{"created":2000,"completed":2001}},{"id":"msg_p_1","type":"user","text":"Run it","time":{"created":1000}}],"cursor":{}}}, + {"path":"/api/session/ses_p/inbox","json":{"data":[]}}, + {"path":"/api/shell","json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":[{"id":"sh_1","status":"running","command":"render-frames","cwd":"/tmp/opencode/packages/tui","shell":"/bin/sh","file":"/tmp/sh_1.log","pid":7,"metadata":{"sessionID":"ses_p"},"time":{"started":1000}}]}}, + {"path":"/api/shell/sh_1","json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":{"id":"sh_1","status":"exited","command":"render-frames","cwd":"/tmp/opencode/packages/tui","shell":"/bin/sh","file":"/tmp/sh_1.log","pid":7,"metadata":{"sessionID":"ses_p"},"time":{"started":1000},"exit":0}}}, + {"path":"/api/shell/sh_1/output","json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":{"output":"😀xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx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xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx","cursor":65539,"size":65539,"truncated":false}}} + ], + "steps": [ + {"checkpoint":"session","until":"Run it","fixture":"E.13b/shell-cut/session"}, + {"keys":["down"]}, + {"checkpoint":"shell","until":"render-frames","fixture":"E.13b/shell-cut/shell"}, + {"keys":["enter"]}, + {"checkpoint":"output","until":"Earlier output omitted","fixture":"E.13b/shell-cut/output"}, + {"keys":["home"]}, + {"checkpoint":"first-line","fixture":"E.13b/shell-cut/first-line"} + ], + "requests": { + "writes": [], + "reads": [ + {"method":"GET","path":"/api/agent","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":[]}}, + {"method":"GET","path":"/api/command","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":[]}}, + {"method":"GET","path":"/api/config","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":[]}, + {"method":"GET","path":"/api/experimental/job","query":{"descendants":["true"],"sessionID":["ses_p"],"status":["running"]},"status":200,"json":{"data":[]}}, + {"method":"GET","path":"/api/experimental/migration/v1","query":{},"status":200,"json":{"status":"completed"}}, + {"method":"GET","path":"/api/experimental/session/ses_p/terminal","query":{},"status":200,"json":{"data":[]}}, + {"method":"GET","path":"/api/form","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode"}},"data":[]}}, + {"method":"GET","path":"/api/fs/list","query":{"location[directory]":["<cwd>"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":[]}}, + {"method":"GET","path":"/api/info","query":{},"status":200,"json":{"version":"test","pid":0,"urls":[],"paths":{"tmp":"/tmp"},"capabilities":{"persistentPty":true}}}, + {"method":"GET","path":"/api/integration","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":[]}}, + {"method":"GET","path":"/api/location","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}}}, + {"method":"GET","path":"/api/mcp","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":[]}}, + {"method":"GET","path":"/api/mcp/resource","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":{"resources":[],"templates":[]}}}, + {"method":"GET","path":"/api/model","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":[]}}, + {"method":"GET","path":"/api/plugin","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":[]}}, + {"method":"GET","path":"/api/project","query":{},"status":200,"json":[]}, + {"method":"GET","path":"/api/provider","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":[]}}, + {"method":"GET","path":"/api/reference","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode/packages/tui","canonical":"/tmp/opencode/packages/tui"}},"data":[]}}, + {"method":"GET","path":"/api/session","query":{"limit":["200"],"order":["desc"],"parentID":["ses_p"]},"status":200,"json":{"data":[{"id":"ses_p","title":"Render","projectID":"proj_test","cost":0,"tokens":{"input":0,"output":0,"reasoning":0,"cache":{"read":0,"write":0}},"time":{"created":10,"updated":10},"location":{"directory":"/tmp/opencode/packages/tui"}}],"cursor":{}}}, + {"method":"GET","path":"/api/session/active","query":{},"status":200,"json":{"data":{}}}, + {"method":"GET","path":"/api/session/ses_p","query":{},"status":200,"json":{"data":{"id":"ses_p","title":"Render","projectID":"proj_test","cost":0,"tokens":{"input":0,"output":0,"reasoning":0,"cache":{"read":0,"write":0}},"time":{"created":10,"updated":10},"location":{"directory":"/tmp/opencode/packages/tui"}}}}, + {"method":"GET","path":"/api/session/ses_p/form","query":{},"status":200,"json":{"data":[]}}, + {"method":"GET","path":"/api/session/ses_p/inbox","query":{},"status":200,"json":{"data":[]}}, + {"method":"GET","path":"/api/session/ses_p/message","query":{"limit":["20"],"order":["desc"]},"status":200,"json":{"data":[{"id":"msg_p_2","type":"assistant","agent":"build","model":{"providerID":"provider","id":"model"},"content":[{"type":"text","text":"Started it."}],"finish":"stop","time":{"created":2000,"completed":2001}},{"id":"msg_p_1","type":"user","text":"Run it","time":{"created":1000}}],"cursor":{}}}, + {"method":"GET","path":"/api/session/ses_p/permission","query":{},"status":200,"json":{"data":[]}}, + {"method":"GET","path":"/api/shell","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":[{"id":"sh_1","status":"running","command":"render-frames","cwd":"/tmp/opencode/packages/tui","shell":"/bin/sh","file":"/tmp/sh_1.log","pid":7,"metadata":{"sessionID":"ses_p"},"time":{"started":1000}}]}}, + {"method":"GET","path":"/api/shell/sh_1","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":{"id":"sh_1","status":"exited","command":"render-frames","cwd":"/tmp/opencode/packages/tui","shell":"/bin/sh","file":"/tmp/sh_1.log","pid":7,"metadata":{"sessionID":"ses_p"},"time":{"started":1000},"exit":0}}}, + {"method":"GET","path":"/api/shell/sh_1/output","query":{"cursor":["3"],"limit":["65536"],"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":{"output":"😀xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx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xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx","cursor":65539,"size":65539,"truncated":false}}}, + {"method":"GET","path":"/api/shell/sh_1/output","query":{"cursor":["65539"],"limit":["65536"],"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":{"output":"😀xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx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xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx","cursor":65539,"size":65539,"truncated":false}}}, + {"method":"GET","path":"/api/shell/sh_1/output","query":{"cursor":["9007199254740991"],"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"pro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xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx","cursor":65539,"size":65539,"truncated":false}}}, + {"method":"GET","path":"/api/skill","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":[]}}, + {"method":"GET","path":"/api/vcs","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":{"branch":{"current":"main","default":"main"}}}}, + {"method":"POST","path":"/api/rpc/opencode.goal/get","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"body":{"input":{"sessionID":"ses_p"}},"status":200,"json":{"output":null}} + ] + } +} diff --git a/packages/cli-rs/parity/fixtures/E.13b/shell-cut/first-line.json b/packages/cli-rs/parity/fixtures/E.13b/shell-cut/first-line.json new file mode 100644 index 000000000000..ac32ed5e16df --- /dev/null +++ b/packages/cli-rs/parity/fixtures/E.13b/shell-cut/first-line.json @@ -0,0 +1,32 @@ +{"width":100,"height":30,"styles":["#ffffffff #0d0d0dff 0","#696969ff #0d0d0dff 1","#ffffffff #030303ff 0","#353535ff #030303ff 0","#313f69ff #080808ff 0","#ffffffff #080808ff 0","#696969ff #080808ff 0","#ffffffff #141414ff 0","#ffffffff #141414ff 1","#808080ff #141414ff 0","#ffffffff #202020ff 0","#808080ff #202020ff 0","#1e1e1eff #080808ff 0","#696969ff #080808ff 1","#353535ff #080808ff 0"],"lines":[ +[" Render + ",[[0,3],[1,6],[0,23],[2,1],[3,1],[2,66]]], +[" ",[[2,100]]], +[" ┃ ",[[2,2],[4,1],[5,95],[2,2]]], +[" ┃ Run it ",[[2,2],[4,1],[5,2],[6,3],[5,1],[6,2],[5,87],[2,2]]], +[" ",[[2,1],[7,98],[2,1]]], +[" Shell output Exited · code 0 esc ",[[2,1],[7,3],[8,12],[7,60],[9,15],[7,2],[9,3],[7,3],[2,1]]], +[" ",[[2,1],[7,98],[2,1]]], +[" render-frames ",[[2,1],[7,3],[9,13],[7,82],[2,1]]], +[" ",[[2,1],[7,98],[2,1]]], +[" Earlier output omitted · showing recent output ",[[2,1],[7,3],[9,46],[7,49],[2,1]]], +[" ",[[2,1],[7,98],[2,1]]], +[" xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx ",[[2,1],[7,98],[2,1]]], +[" xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx ",[[2,1],[7,98],[2,1]]], +[" xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx ",[[2,1],[7,98],[2,1]]], +[" xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx ",[[2,1],[7,98],[2,1]]], +[" xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx ",[[2,1],[7,98],[2,1]]], +[" xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx ",[[2,1],[7,98],[2,1]]], +[" xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx ",[[2,1],[7,98],[2,1]]], +[" xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx ",[[2,1],[7,98],[2,1]]], +[" xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx ",[[2,1],[7,98],[2,1]]], +[" xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx ",[[2,1],[7,98],[2,1]]], +[" xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx ",[[2,1],[7,98],[2,1]]], +[" xxxxxxxxxxx ",[[2,1],[7,98],[2,1]]], +[" ",[[2,1],[7,98],[2,1]]], +[" ",[[2,1],[10,98],[2,1]]], +[" follow end copy command c copy output o ",[[2,1],[10,58],[11,4],[10,15],[11,2],[10,14],[11,2],[10,3],[2,1]]], +[" ",[[2,1],[10,98],[2,1]]], +[" ┃ output enter kill ctrl+d tabs ←/→ ",[[2,2],[12,1],[5,2],[13,6],[5,1],[14,5],[5,2],[13,4],[5,1],[14,6],[5,2],[13,4],[5,1],[14,3],[5,58],[2,2]]], +[" ┃ ",[[2,2],[12,1],[5,95],[2,2]]], +[" ",[[2,100]]] +]} diff --git a/packages/cli-rs/parity/fixtures/E.13b/shell-cut/output.json b/packages/cli-rs/parity/fixtures/E.13b/shell-cut/output.json new file mode 100644 index 000000000000..ac32ed5e16df --- /dev/null +++ b/packages/cli-rs/parity/fixtures/E.13b/shell-cut/output.json @@ -0,0 +1,32 @@ +{"width":100,"height":30,"styles":["#ffffffff #0d0d0dff 0","#696969ff #0d0d0dff 1","#ffffffff #030303ff 0","#353535ff #030303ff 0","#313f69ff #080808ff 0","#ffffffff #080808ff 0","#696969ff #080808ff 0","#ffffffff #141414ff 0","#ffffffff #141414ff 1","#808080ff #141414ff 0","#ffffffff #202020ff 0","#808080ff #202020ff 0","#1e1e1eff #080808ff 0","#696969ff #080808ff 1","#353535ff #080808ff 0"],"lines":[ +[" Render + ",[[0,3],[1,6],[0,23],[2,1],[3,1],[2,66]]], +[" ",[[2,100]]], +[" ┃ ",[[2,2],[4,1],[5,95],[2,2]]], +[" ┃ Run it ",[[2,2],[4,1],[5,2],[6,3],[5,1],[6,2],[5,87],[2,2]]], +[" ",[[2,1],[7,98],[2,1]]], +[" Shell output Exited · code 0 esc ",[[2,1],[7,3],[8,12],[7,60],[9,15],[7,2],[9,3],[7,3],[2,1]]], +[" ",[[2,1],[7,98],[2,1]]], +[" render-frames ",[[2,1],[7,3],[9,13],[7,82],[2,1]]], +[" ",[[2,1],[7,98],[2,1]]], +[" Earlier output omitted · showing recent output ",[[2,1],[7,3],[9,46],[7,49],[2,1]]], +[" ",[[2,1],[7,98],[2,1]]], +[" xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx ",[[2,1],[7,98],[2,1]]], +[" xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx ",[[2,1],[7,98],[2,1]]], +[" xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx ",[[2,1],[7,98],[2,1]]], +[" xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx ",[[2,1],[7,98],[2,1]]], +[" xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx ",[[2,1],[7,98],[2,1]]], +[" xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx ",[[2,1],[7,98],[2,1]]], +[" xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx ",[[2,1],[7,98],[2,1]]], +[" xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx ",[[2,1],[7,98],[2,1]]], +[" xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx ",[[2,1],[7,98],[2,1]]], +[" xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx ",[[2,1],[7,98],[2,1]]], +[" xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx ",[[2,1],[7,98],[2,1]]], +[" xxxxxxxxxxx ",[[2,1],[7,98],[2,1]]], +[" ",[[2,1],[7,98],[2,1]]], +[" ",[[2,1],[10,98],[2,1]]], +[" follow end copy command c copy output o ",[[2,1],[10,58],[11,4],[10,15],[11,2],[10,14],[11,2],[10,3],[2,1]]], +[" ",[[2,1],[10,98],[2,1]]], +[" ┃ output enter kill ctrl+d tabs ←/→ ",[[2,2],[12,1],[5,2],[13,6],[5,1],[14,5],[5,2],[13,4],[5,1],[14,6],[5,2],[13,4],[5,1],[14,3],[5,58],[2,2]]], +[" ┃ ",[[2,2],[12,1],[5,95],[2,2]]], +[" ",[[2,100]]] +]} diff --git a/packages/cli-rs/parity/fixtures/E.13b/shell-cut/session.json b/packages/cli-rs/parity/fixtures/E.13b/shell-cut/session.json new file mode 100644 index 000000000000..9b2238b15b48 --- /dev/null +++ b/packages/cli-rs/parity/fixtures/E.13b/shell-cut/session.json @@ -0,0 +1,32 @@ +{"width":100,"height":30,"styles":["#ffffffff #202020ff 0","#ffffffff #202020ff 1","#808080ff #080808ff 0","#ffffffff #080808ff 0","#7699feff #141414ff 0","#ffffffff #141414ff 0","#eeeeeeff #080808ff 0","#7699feff #080808ff 0","#484848ff #080808ff 0","#202020ff #080808ff 0"],"lines":[ +[" Render + ",[[0,3],[1,6],[0,23],[2,3],[3,65]]], +[" ",[[3,100]]], +[" ┃ ",[[3,2],[4,1],[5,95],[3,2]]], +[" ┃ Run it ",[[3,2],[4,1],[5,95],[3,2]]], +[" ┃ ",[[3,2],[4,1],[5,95],[3,2]]], +[" ",[[3,100]]], +[" Started it. ",[[3,5],[6,11],[3,84]]], +[" ",[[3,100]]], +[" Build · provider/model · 1.0s ",[[3,5],[7,5],[2,24],[3,66]]], +[" ",[[3,100]]], +[" ",[[3,100]]], +[" ",[[3,100]]], +[" ",[[3,100]]], +[" ",[[3,100]]], +[" ",[[3,100]]], +[" ",[[3,100]]], +[" ",[[3,100]]], +[" ",[[3,100]]], +[" ",[[3,100]]], +[" ",[[3,100]]], +[" ",[[3,100]]], +[" ",[[3,100]]], +[" ",[[3,100]]], +[" ┃ ",[[3,2],[8,1],[0,95],[3,2]]], +[" ┃ ",[[3,2],[8,1],[0,95],[3,2]]], +[" ┃ ",[[3,2],[8,1],[0,95],[3,2]]], +[" ┃ ",[[3,2],[8,1],[0,95],[3,2]]], +[" ╹▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀ ",[[3,2],[8,1],[9,95],[3,2]]], +[" /tmp/opencode/packages/tui:main ↓ 1 shell ctrl+p commands ",[[3,2],[2,31],[3,41],[2,7],[3,9],[2,8],[3,2]]], +[" ",[[3,100]]] +]} diff --git a/packages/cli-rs/parity/fixtures/E.13b/shell-cut/shell.json b/packages/cli-rs/parity/fixtures/E.13b/shell-cut/shell.json new file mode 100644 index 000000000000..55e37cfef9f4 --- /dev/null +++ b/packages/cli-rs/parity/fixtures/E.13b/shell-cut/shell.json @@ -0,0 +1,32 @@ +{"width":100,"height":30,"styles":["#ffffffff #202020ff 0","#ffffffff #202020ff 1","#808080ff #080808ff 0","#ffffffff #080808ff 0","#7699feff #141414ff 0","#ffffffff #141414ff 0","#eeeeeeff #080808ff 0","#7699feff #080808ff 0","#484848ff #141414ff 0","#808080ff #141414ff 0","#ffffffff #141414ff 1","#ffffffff #23344bff 0","#ffffffff #23344bff 1"],"lines":[ +[" Render + ",[[0,3],[1,6],[0,23],[2,3],[3,65]]], +[" ",[[3,100]]], +[" ┃ ",[[3,2],[4,1],[5,95],[3,2]]], +[" ┃ Run it ",[[3,2],[4,1],[5,95],[3,2]]], +[" ┃ ",[[3,2],[4,1],[5,95],[3,2]]], +[" ",[[3,100]]], +[" Started it. ",[[3,5],[6,11],[3,84]]], +[" ",[[3,100]]], +[" Build · provider/model · 1.0s ",[[3,5],[7,5],[2,24],[3,66]]], +[" ",[[3,100]]], +[" ",[[3,100]]], +[" ",[[3,100]]], +[" ",[[3,100]]], +[" ",[[3,100]]], +[" ",[[3,100]]], +[" ",[[3,100]]], +[" ",[[3,100]]], +[" ",[[3,100]]], +[" ┃ ",[[3,2],[8,1],[5,95],[3,2]]], +[" ┃ Subagents Shell Terminals esc ",[[3,2],[8,1],[5,2],[9,9],[5,2],[10,5],[5,2],[9,9],[5,61],[9,3],[5,2],[3,2]]], +[" ┃ ",[[3,2],[8,1],[5,95],[3,2]]], +[" ┃ render-frames ",[[3,2],[8,1],[5,1],[11,1],[12,13],[11,78],[5,2],[3,2]]], +[" ┃ ",[[3,2],[8,1],[5,95],[3,2]]], +[" ┃ ",[[3,2],[8,1],[5,95],[3,2]]], +[" ┃ ",[[3,2],[8,1],[5,95],[3,2]]], +[" ┃ ",[[3,2],[8,1],[5,95],[3,2]]], +[" ┃ ",[[3,2],[8,1],[5,95],[3,2]]], +[" ┃ output enter kill ctrl+d tabs ←/→ ",[[3,2],[8,1],[5,2],[10,6],[5,1],[9,5],[5,2],[10,4],[5,1],[9,6],[5,2],[10,4],[5,1],[9,3],[5,58],[3,2]]], +[" ┃ ",[[3,2],[8,1],[5,95],[3,2]]], +[" ",[[3,100]]] +]} diff --git a/packages/cli-rs/parity/fixtures/E.13b/shell-pages.app.json b/packages/cli-rs/parity/fixtures/E.13b/shell-pages.app.json new file mode 100644 index 000000000000..20db52354f79 --- /dev/null +++ b/packages/cli-rs/parity/fixtures/E.13b/shell-pages.app.json @@ -0,0 +1,72 @@ +{ + "scenario": "E.13b/shell-pages", + "width": 100, + "height": 30, + "directory": "/tmp/opencode/packages/tui", + "config": { + "experimental": {"new-designs":true}, + "animations": false, + "theme": {"name":"opencode"} + }, + "args": { + "sessionID": "ses_p" + }, + "routes": [ + {"path":"/api/session/ses_p","json":{"data":{"id":"ses_p","title":"Render","projectID":"proj_test","cost":0,"tokens":{"input":0,"output":0,"reasoning":0,"cache":{"read":0,"write":0}},"time":{"created":10,"updated":10},"location":{"directory":"/tmp/opencode/packages/tui"}}}}, + {"path":"/api/session","json":{"data":[{"id":"ses_p","title":"Render","projectID":"proj_test","cost":0,"tokens":{"input":0,"output":0,"reasoning":0,"cache":{"read":0,"write":0}},"time":{"created":10,"updated":10},"location":{"directory":"/tmp/opencode/packages/tui"}}],"cursor":{}}}, + {"path":"/api/session/ses_p/message","json":{"data":[{"id":"msg_p_2","type":"assistant","agent":"build","model":{"providerID":"provider","id":"model"},"content":[{"type":"text","text":"Started it."}],"finish":"stop","time":{"created":2000,"completed":2001}},{"id":"msg_p_1","type":"user","text":"Run it","time":{"created":1000}}],"cursor":{}}}, + {"path":"/api/session/ses_p/inbox","json":{"data":[]}}, + {"path":"/api/shell","json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":[{"id":"sh_1","status":"running","command":"render-frames","cwd":"/tmp/opencode/packages/tui","shell":"/bin/sh","file":"/tmp/sh_1.log","pid":7,"metadata":{"sessionID":"ses_p"},"time":{"started":1000}}]}}, + {"path":"/api/shell/sh_1","json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":{"id":"sh_1","status":"running","command":"render-frames","cwd":"/tmp/opencode/packages/tui","shell":"/bin/sh","file":"/tmp/sh_1.log","pid":7,"metadata":{"sessionID":"ses_p"},"time":{"started":1000}}}}, + {"path":"/api/shell/sh_1/output","query":{"cursor":["9007199254740991"],"location[directory]":["/tmp/opencode/packages/tui"]},"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":{"output":"","cursor":65536,"size":65536,"truncated":false}}}, + {"path":"/api/shell/sh_1/output","query":{"cursor":["0"],"limit":["65536"],"location[directory]":["/tmp/opencode/packages/tui"]},"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":{"output":"xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx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it":["65536"],"location[directory]":["/tmp/opencode/packages/tui"]},"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":{"output":"😀 end","cursor":65543,"size":65545,"truncated":false}}}, + {"path":"/api/shell/sh_1/output","query":{"cursor":["65543"],"limit":["65536"],"location[directory]":["/tmp/opencode/packages/tui"]},"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":{"output":"","cursor":65543,"size":65545,"truncated":false}}} + ], + "steps": [ + {"checkpoint":"session","until":"Run it","fixture":"E.13b/shell-pages/session"}, + {"keys":["down"]}, + {"checkpoint":"shell","until":"render-frames","fixture":"E.13b/shell-pages/shell"}, + {"keys":["enter"]}, + {"checkpoint":"output","until":"Earlier output omitted","fixture":"E.13b/shell-pages/output"} + ], + "requests": { + "writes": [], + "reads": [ + {"method":"GET","path":"/api/agent","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":[]}}, + {"method":"GET","path":"/api/command","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":[]}}, + {"method":"GET","path":"/api/config","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":[]}, + {"method":"GET","path":"/api/experimental/job","query":{"descendants":["true"],"sessionID":["ses_p"],"status":["running"]},"status":200,"json":{"data":[]}}, + {"method":"GET","path":"/api/experimental/migration/v1","query":{},"status":200,"json":{"status":"completed"}}, + {"method":"GET","path":"/api/experimental/session/ses_p/terminal","query":{},"status":200,"json":{"data":[]}}, + {"method":"GET","path":"/api/form","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode"}},"data":[]}}, + {"method":"GET","path":"/api/fs/list","query":{"location[directory]":["<cwd>"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":[]}}, + {"method":"GET","path":"/api/info","query":{},"status":200,"json":{"version":"test","pid":0,"urls":[],"paths":{"tmp":"/tmp"},"capabilities":{"persistentPty":true}}}, + {"method":"GET","path":"/api/integration","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":[]}}, + {"method":"GET","path":"/api/location","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}}}, + {"method":"GET","path":"/api/mcp","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":[]}}, + {"method":"GET","path":"/api/mcp/resource","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":{"resources":[],"templates":[]}}}, + {"method":"GET","path":"/api/model","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":[]}}, + {"method":"GET","path":"/api/plugin","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":[]}}, + {"method":"GET","path":"/api/project","query":{},"status":200,"json":[]}, + {"method":"GET","path":"/api/provider","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":[]}}, + {"method":"GET","path":"/api/reference","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode/packages/tui","canonical":"/tmp/opencode/packages/tui"}},"data":[]}}, + {"method":"GET","path":"/api/session","query":{"limit":["200"],"order":["desc"],"parentID":["ses_p"]},"status":200,"json":{"data":[{"id":"ses_p","title":"Render","projectID":"proj_test","cost":0,"tokens":{"input":0,"output":0,"reasoning":0,"cache":{"read":0,"write":0}},"time":{"created":10,"updated":10},"location":{"directory":"/tmp/opencode/packages/tui"}}],"cursor":{}}}, + {"method":"GET","path":"/api/session/active","query":{},"status":200,"json":{"data":{}}}, + {"method":"GET","path":"/api/session/ses_p","query":{},"status":200,"json":{"data":{"id":"ses_p","title":"Render","projectID":"proj_test","cost":0,"tokens":{"input":0,"output":0,"reasoning":0,"cache":{"read":0,"write":0}},"time":{"created":10,"updated":10},"location":{"directory":"/tmp/opencode/packages/tui"}}}}, + {"method":"GET","path":"/api/session/ses_p/form","query":{},"status":200,"json":{"data":[]}}, + {"method":"GET","path":"/api/session/ses_p/inbox","query":{},"status":200,"json":{"data":[]}}, + {"method":"GET","path":"/api/session/ses_p/message","query":{"limit":["20"],"order":["desc"]},"status":200,"json":{"data":[{"id":"msg_p_2","type":"assistant","agent":"build","model":{"providerID":"provider","id":"model"},"content":[{"type":"text","text":"Started it."}],"finish":"stop","time":{"created":2000,"completed":2001}},{"id":"msg_p_1","type":"user","text":"Run it","time":{"created":1000}}],"cursor":{}}}, + {"method":"GET","path":"/api/session/ses_p/permission","query":{},"status":200,"json":{"data":[]}}, + {"method":"GET","path":"/api/shell","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":[{"id":"sh_1","status":"running","command":"render-frames","cwd":"/tmp/opencode/packages/tui","shell":"/bin/sh","file":"/tmp/sh_1.log","pid":7,"metadata":{"sessionID":"ses_p"},"time":{"started":1000}}]}}, + {"method":"GET","path":"/api/shell/sh_1","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":{"id":"sh_1","status":"running","command":"render-frames","cwd":"/tmp/opencode/packages/tui","shell":"/bin/sh","file":"/tmp/sh_1.log","pid":7,"metadata":{"sessionID":"ses_p"},"time":{"started":1000}}}}, + {"method":"GET","path":"/api/shell/sh_1/output","query":{"cursor":["0"],"limit":["65536"],"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":{"output":"xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx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xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx\ntail ","cursor":65535,"size":65545,"truncated":false}}}, + {"method":"GET","path":"/api/shell/sh_1/output","query":{"cursor":["65535"],"limit":["65536"],"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":{"output":"😀 end","cursor":65543,"size":65545,"truncated":false}}}, + {"method":"GET","path":"/api/shell/sh_1/output","query":{"cursor":["65543"],"limit":["65536"],"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":{"output":"","cursor":65543,"size":65545,"truncated":false}}}, + {"method":"GET","path":"/api/shell/sh_1/output","query":{"cursor":["9007199254740991"],"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":{"output":"","cursor":65536,"size":65536,"truncated":false}}}, + {"method":"GET","path":"/api/skill","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":[]}}, + {"method":"GET","path":"/api/vcs","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":{"branch":{"current":"main","default":"main"}}}}, + {"method":"POST","path":"/api/rpc/opencode.goal/get","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"body":{"input":{"sessionID":"ses_p"}},"status":200,"json":{"output":null}} + ] + } +} diff --git a/packages/cli-rs/parity/fixtures/E.13b/shell-pages/output.json b/packages/cli-rs/parity/fixtures/E.13b/shell-pages/output.json new file mode 100644 index 000000000000..484fc04dc5ac --- /dev/null +++ b/packages/cli-rs/parity/fixtures/E.13b/shell-pages/output.json @@ -0,0 +1,32 @@ +{"width":100,"height":30,"styles":["#ffffffff #0d0d0dff 0","#696969ff #0d0d0dff 1","#ffffffff #030303ff 0","#353535ff #030303ff 0","#313f69ff #080808ff 0","#ffffffff #080808ff 0","#696969ff #080808ff 0","#ffffffff #141414ff 0","#ffffffff #141414ff 1","#808080ff #141414ff 0","#ffffffff #202020ff 0","#808080ff #202020ff 0","#1e1e1eff #080808ff 0","#696969ff #080808ff 1","#353535ff #080808ff 0"],"lines":[ +[" Render + ",[[0,3],[1,6],[0,23],[2,1],[3,1],[2,66]]], +[" ",[[2,100]]], +[" ┃ ",[[2,2],[4,1],[5,95],[2,2]]], +[" ┃ Run it ",[[2,2],[4,1],[5,2],[6,3],[5,1],[6,2],[5,87],[2,2]]], +[" ",[[2,1],[7,98],[2,1]]], +[" Shell output Running esc ",[[2,1],[7,3],[8,12],[7,68],[9,7],[7,2],[9,3],[7,3],[2,1]]], +[" ",[[2,1],[7,98],[2,1]]], +[" render-frames ",[[2,1],[7,3],[9,13],[7,82],[2,1]]], +[" ",[[2,1],[7,98],[2,1]]], +[" Earlier output omitted · showing recent output ",[[2,1],[7,3],[9,46],[7,49],[2,1]]], +[" ",[[2,1],[7,98],[2,1]]], +[" xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx ",[[2,1],[7,98],[2,1]]], +[" xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx ",[[2,1],[7,98],[2,1]]], +[" xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx ",[[2,1],[7,98],[2,1]]], +[" xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx ",[[2,1],[7,98],[2,1]]], +[" xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx ",[[2,1],[7,98],[2,1]]], +[" xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx ",[[2,1],[7,98],[2,1]]], +[" xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx ",[[2,1],[7,98],[2,1]]], +[" xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx ",[[2,1],[7,98],[2,1]]], +[" xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx ",[[2,1],[7,98],[2,1]]], +[" xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx ",[[2,1],[7,98],[2,1]]], +[" xxxxx ",[[2,1],[7,98],[2,1]]], +[[" "," "," "," ","t","a","i","l"," ","😀",""," ","e","n","d"," "," "," "," "," "," "," "," "," "," "," "," "," "," "," "," "," "," "," "," "," "," "," "," "," "," "," "," "," "," "," "," "," "," "," "," "," "," "," "," "," "," "," "," "," "," "," "," "," "," "," "," "," "," "," "," "," "," "," "," "," "," "," "," "," "," "," "," "," "," "," "," "," "," "," "," "," "," "," "," "," "," "," "," "," "],[[2,1],[7,98],[2,1]]], +[" ",[[2,1],[7,98],[2,1]]], +[" ",[[2,1],[10,98],[2,1]]], +[" follow end copy command c copy output o ",[[2,1],[10,58],[11,4],[10,15],[11,2],[10,14],[11,2],[10,3],[2,1]]], +[" ",[[2,1],[10,98],[2,1]]], +[" ┃ output enter kill ctrl+d tabs ←/→ ",[[2,2],[12,1],[5,2],[13,6],[5,1],[14,5],[5,2],[13,4],[5,1],[14,6],[5,2],[13,4],[5,1],[14,3],[5,58],[2,2]]], +[" ┃ ",[[2,2],[12,1],[5,95],[2,2]]], +[" ",[[2,100]]] +]} diff --git a/packages/cli-rs/parity/fixtures/E.13b/shell-pages/session.json b/packages/cli-rs/parity/fixtures/E.13b/shell-pages/session.json new file mode 100644 index 000000000000..9b2238b15b48 --- /dev/null +++ b/packages/cli-rs/parity/fixtures/E.13b/shell-pages/session.json @@ -0,0 +1,32 @@ +{"width":100,"height":30,"styles":["#ffffffff #202020ff 0","#ffffffff #202020ff 1","#808080ff #080808ff 0","#ffffffff #080808ff 0","#7699feff #141414ff 0","#ffffffff #141414ff 0","#eeeeeeff #080808ff 0","#7699feff #080808ff 0","#484848ff #080808ff 0","#202020ff #080808ff 0"],"lines":[ +[" Render + ",[[0,3],[1,6],[0,23],[2,3],[3,65]]], +[" ",[[3,100]]], +[" ┃ ",[[3,2],[4,1],[5,95],[3,2]]], +[" ┃ Run it ",[[3,2],[4,1],[5,95],[3,2]]], +[" ┃ ",[[3,2],[4,1],[5,95],[3,2]]], +[" ",[[3,100]]], +[" Started it. ",[[3,5],[6,11],[3,84]]], +[" ",[[3,100]]], +[" Build · provider/model · 1.0s ",[[3,5],[7,5],[2,24],[3,66]]], +[" ",[[3,100]]], +[" ",[[3,100]]], +[" ",[[3,100]]], +[" ",[[3,100]]], +[" ",[[3,100]]], +[" ",[[3,100]]], +[" ",[[3,100]]], +[" ",[[3,100]]], +[" ",[[3,100]]], +[" ",[[3,100]]], +[" ",[[3,100]]], +[" ",[[3,100]]], +[" ",[[3,100]]], +[" ",[[3,100]]], +[" ┃ ",[[3,2],[8,1],[0,95],[3,2]]], +[" ┃ ",[[3,2],[8,1],[0,95],[3,2]]], +[" ┃ ",[[3,2],[8,1],[0,95],[3,2]]], +[" ┃ ",[[3,2],[8,1],[0,95],[3,2]]], +[" ╹▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀ ",[[3,2],[8,1],[9,95],[3,2]]], +[" /tmp/opencode/packages/tui:main ↓ 1 shell ctrl+p commands ",[[3,2],[2,31],[3,41],[2,7],[3,9],[2,8],[3,2]]], +[" ",[[3,100]]] +]} diff --git a/packages/cli-rs/parity/fixtures/E.13b/shell-pages/shell.json b/packages/cli-rs/parity/fixtures/E.13b/shell-pages/shell.json new file mode 100644 index 000000000000..55e37cfef9f4 --- /dev/null +++ b/packages/cli-rs/parity/fixtures/E.13b/shell-pages/shell.json @@ -0,0 +1,32 @@ +{"width":100,"height":30,"styles":["#ffffffff #202020ff 0","#ffffffff #202020ff 1","#808080ff #080808ff 0","#ffffffff #080808ff 0","#7699feff #141414ff 0","#ffffffff #141414ff 0","#eeeeeeff #080808ff 0","#7699feff #080808ff 0","#484848ff #141414ff 0","#808080ff #141414ff 0","#ffffffff #141414ff 1","#ffffffff #23344bff 0","#ffffffff #23344bff 1"],"lines":[ +[" Render + ",[[0,3],[1,6],[0,23],[2,3],[3,65]]], +[" ",[[3,100]]], +[" ┃ ",[[3,2],[4,1],[5,95],[3,2]]], +[" ┃ Run it ",[[3,2],[4,1],[5,95],[3,2]]], +[" ┃ ",[[3,2],[4,1],[5,95],[3,2]]], +[" ",[[3,100]]], +[" Started it. ",[[3,5],[6,11],[3,84]]], +[" ",[[3,100]]], +[" Build · provider/model · 1.0s ",[[3,5],[7,5],[2,24],[3,66]]], +[" ",[[3,100]]], +[" ",[[3,100]]], +[" ",[[3,100]]], +[" ",[[3,100]]], +[" ",[[3,100]]], +[" ",[[3,100]]], +[" ",[[3,100]]], +[" ",[[3,100]]], +[" ",[[3,100]]], +[" ┃ ",[[3,2],[8,1],[5,95],[3,2]]], +[" ┃ Subagents Shell Terminals esc ",[[3,2],[8,1],[5,2],[9,9],[5,2],[10,5],[5,2],[9,9],[5,61],[9,3],[5,2],[3,2]]], +[" ┃ ",[[3,2],[8,1],[5,95],[3,2]]], +[" ┃ render-frames ",[[3,2],[8,1],[5,1],[11,1],[12,13],[11,78],[5,2],[3,2]]], +[" ┃ ",[[3,2],[8,1],[5,95],[3,2]]], +[" ┃ ",[[3,2],[8,1],[5,95],[3,2]]], +[" ┃ ",[[3,2],[8,1],[5,95],[3,2]]], +[" ┃ ",[[3,2],[8,1],[5,95],[3,2]]], +[" ┃ ",[[3,2],[8,1],[5,95],[3,2]]], +[" ┃ output enter kill ctrl+d tabs ←/→ ",[[3,2],[8,1],[5,2],[10,6],[5,1],[9,5],[5,2],[10,4],[5,1],[9,6],[5,2],[10,4],[5,1],[9,3],[5,58],[3,2]]], +[" ┃ ",[[3,2],[8,1],[5,95],[3,2]]], +[" ",[[3,100]]] +]} diff --git a/packages/cli-rs/parity/fixtures/E.13b/tab-click.app.json b/packages/cli-rs/parity/fixtures/E.13b/tab-click.app.json new file mode 100644 index 000000000000..9176991b71c6 --- /dev/null +++ b/packages/cli-rs/parity/fixtures/E.13b/tab-click.app.json @@ -0,0 +1,63 @@ +{ + "scenario": "E.13b/tab-click", + "width": 100, + "height": 30, + "directory": "/tmp/opencode/packages/tui", + "config": { + "experimental": {"new-designs":true}, + "animations": false, + "theme": {"name":"opencode"} + }, + "args": { + "sessionID": "ses_p" + }, + "routes": [ + {"path":"/api/session/ses_p","json":{"data":{"id":"ses_p","title":"Plan the release","projectID":"proj_test","cost":0,"tokens":{"input":0,"output":0,"reasoning":0,"cache":{"read":0,"write":0}},"time":{"created":10,"updated":10},"location":{"directory":"/tmp/opencode/packages/tui"}}}}, + {"path":"/api/session/ses_p/message","json":{"data":[{"id":"msg_2","type":"assistant","agent":"build","model":{"providerID":"provider","id":"model"},"content":[{"type":"text","text":"Done."}],"finish":"stop","time":{"created":2000,"completed":2001}},{"id":"msg_1","type":"user","text":"Ship it","time":{"created":1000}}],"cursor":{}}}, + {"path":"/api/session/ses_p/inbox","json":{"data":[]}}, + {"path":"/api/shell","json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":[{"id":"sh_1","status":"running","command":"bun run build --watch","cwd":"/tmp/opencode/packages/tui","shell":"/bin/sh","file":"/tmp/sh_1.log","pid":7,"metadata":{"sessionID":"ses_p"},"time":{"started":1000}}]}} + ], + "steps": [ + {"checkpoint":"session","until":"1 shell","fixture":"E.13b/tab-click/session"}, + {"click":[73,28]}, + {"checkpoint":"shell","until":"bun run build","fixture":"E.13b/tab-click/shell"}, + {"click":[8,19]}, + {"checkpoint":"subagents","until":"show inactive","fixture":"E.13b/tab-click/subagents"}, + {"click":[17,19]}, + {"checkpoint":"shell-again","until":"bun run build","fixture":"E.13b/tab-click/shell-again"} + ], + "requests": { + "writes": [], + "reads": [ + {"method":"GET","path":"/api/agent","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":[]}}, + {"method":"GET","path":"/api/command","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":[]}}, + {"method":"GET","path":"/api/config","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":[]}, + {"method":"GET","path":"/api/experimental/job","query":{"descendants":["true"],"sessionID":["ses_p"],"status":["running"]},"status":200,"json":{"data":[]}}, + {"method":"GET","path":"/api/experimental/migration/v1","query":{},"status":200,"json":{"status":"completed"}}, + {"method":"GET","path":"/api/experimental/session/ses_p/terminal","query":{},"status":200,"json":{"data":[]}}, + {"method":"GET","path":"/api/form","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode"}},"data":[]}}, + {"method":"GET","path":"/api/fs/list","query":{"location[directory]":["<cwd>"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":[]}}, + {"method":"GET","path":"/api/info","query":{},"status":200,"json":{"version":"test","pid":0,"urls":[],"paths":{"tmp":"/tmp"},"capabilities":{"persistentPty":true}}}, + {"method":"GET","path":"/api/integration","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":[]}}, + {"method":"GET","path":"/api/location","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}}}, + {"method":"GET","path":"/api/mcp","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":[]}}, + {"method":"GET","path":"/api/mcp/resource","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":{"resources":[],"templates":[]}}}, + {"method":"GET","path":"/api/model","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":[]}}, + {"method":"GET","path":"/api/plugin","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":[]}}, + {"method":"GET","path":"/api/project","query":{},"status":200,"json":[]}, + {"method":"GET","path":"/api/provider","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":[]}}, + {"method":"GET","path":"/api/reference","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode/packages/tui","canonical":"/tmp/opencode/packages/tui"}},"data":[]}}, + {"method":"GET","path":"/api/session","query":{"limit":["200"],"order":["desc"],"parentID":["ses_p"]},"status":200,"json":{"data":[],"cursor":{}}}, + {"method":"GET","path":"/api/session/active","query":{},"status":200,"json":{"data":{}}}, + {"method":"GET","path":"/api/session/ses_p","query":{},"status":200,"json":{"data":{"id":"ses_p","title":"Plan the release","projectID":"proj_test","cost":0,"tokens":{"input":0,"output":0,"reasoning":0,"cache":{"read":0,"write":0}},"time":{"created":10,"updated":10},"location":{"directory":"/tmp/opencode/packages/tui"}}}}, + {"method":"GET","path":"/api/session/ses_p/form","query":{},"status":200,"json":{"data":[]}}, + {"method":"GET","path":"/api/session/ses_p/inbox","query":{},"status":200,"json":{"data":[]}}, + {"method":"GET","path":"/api/session/ses_p/message","query":{"limit":["20"],"order":["desc"]},"status":200,"json":{"data":[{"id":"msg_2","type":"assistant","agent":"build","model":{"providerID":"provider","id":"model"},"content":[{"type":"text","text":"Done."}],"finish":"stop","time":{"created":2000,"completed":2001}},{"id":"msg_1","type":"user","text":"Ship it","time":{"created":1000}}],"cursor":{}}}, + {"method":"GET","path":"/api/session/ses_p/permission","query":{},"status":200,"json":{"data":[]}}, + {"method":"GET","path":"/api/shell","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":[{"id":"sh_1","status":"running","command":"bun run build --watch","cwd":"/tmp/opencode/packages/tui","shell":"/bin/sh","file":"/tmp/sh_1.log","pid":7,"metadata":{"sessionID":"ses_p"},"time":{"started":1000}}]}}, + {"method":"GET","path":"/api/skill","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":[]}}, + {"method":"GET","path":"/api/vcs","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":{"branch":{"current":"main","default":"main"}}}}, + {"method":"POST","path":"/api/rpc/opencode.goal/get","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"body":{"input":{"sessionID":"ses_p"}},"status":200,"json":{"output":null}} + ] + } +} diff --git a/packages/cli-rs/parity/fixtures/E.13b/tab-click/session.json b/packages/cli-rs/parity/fixtures/E.13b/tab-click/session.json new file mode 100644 index 000000000000..32fef29c1487 --- /dev/null +++ b/packages/cli-rs/parity/fixtures/E.13b/tab-click/session.json @@ -0,0 +1,32 @@ +{"width":100,"height":30,"styles":["#ffffffff #202020ff 0","#ffffffff #202020ff 1","#808080ff #080808ff 0","#ffffffff #080808ff 0","#7699feff #141414ff 0","#ffffffff #141414ff 0","#eeeeeeff #080808ff 0","#7699feff #080808ff 0","#484848ff #080808ff 0","#202020ff #080808ff 0"],"lines":[ +[" Plan the release + ",[[0,3],[1,16],[0,13],[2,3],[3,65]]], +[" ",[[3,100]]], +[" ┃ ",[[3,2],[4,1],[5,95],[3,2]]], +[" ┃ Ship it ",[[3,2],[4,1],[5,95],[3,2]]], +[" ┃ ",[[3,2],[4,1],[5,95],[3,2]]], +[" ",[[3,100]]], +[" Done. ",[[3,5],[6,5],[3,90]]], +[" ",[[3,100]]], +[" Build · provider/model · 1.0s ",[[3,5],[7,5],[2,24],[3,66]]], +[" ",[[3,100]]], +[" ",[[3,100]]], +[" ",[[3,100]]], +[" ",[[3,100]]], +[" ",[[3,100]]], +[" ",[[3,100]]], +[" ",[[3,100]]], +[" ",[[3,100]]], +[" ",[[3,100]]], +[" ",[[3,100]]], +[" ",[[3,100]]], +[" ",[[3,100]]], +[" ",[[3,100]]], +[" ",[[3,100]]], +[" ┃ ",[[3,2],[8,1],[0,95],[3,2]]], +[" ┃ ",[[3,2],[8,1],[0,95],[3,2]]], +[" ┃ ",[[3,2],[8,1],[0,95],[3,2]]], +[" ┃ ",[[3,2],[8,1],[0,95],[3,2]]], +[" ╹▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀ ",[[3,2],[8,1],[9,95],[3,2]]], +[" /tmp/opencode/packages/tui:main ↓ 1 shell ctrl+p commands ",[[3,2],[2,31],[3,41],[2,7],[3,9],[2,8],[3,2]]], +[" ",[[3,100]]] +]} diff --git a/packages/cli-rs/parity/fixtures/E.13b/tab-click/shell-again.json b/packages/cli-rs/parity/fixtures/E.13b/tab-click/shell-again.json new file mode 100644 index 000000000000..0d50b40c973e --- /dev/null +++ b/packages/cli-rs/parity/fixtures/E.13b/tab-click/shell-again.json @@ -0,0 +1,32 @@ +{"width":100,"height":30,"styles":["#ffffffff #202020ff 0","#ffffffff #202020ff 1","#808080ff #080808ff 0","#ffffffff #080808ff 0","#7699feff #141414ff 0","#ffffffff #141414ff 0","#eeeeeeff #080808ff 0","#7699feff #080808ff 0","#484848ff #141414ff 0","#808080ff #141414ff 0","#ffffffff #141414ff 1","#ffffffff #23344bff 0","#ffffffff #23344bff 1"],"lines":[ +[" Plan the release + ",[[0,3],[1,16],[0,13],[2,3],[3,65]]], +[" ",[[3,100]]], +[" ┃ ",[[3,2],[4,1],[5,95],[3,2]]], +[" ┃ Ship it ",[[3,2],[4,1],[5,95],[3,2]]], +[" ┃ ",[[3,2],[4,1],[5,95],[3,2]]], +[" ",[[3,100]]], +[" Done. ",[[3,5],[6,5],[3,90]]], +[" ",[[3,100]]], +[" Build · provider/model · 1.0s ",[[3,5],[7,5],[2,24],[3,66]]], +[" ",[[3,100]]], +[" ",[[3,100]]], +[" ",[[3,100]]], +[" ",[[3,100]]], +[" ",[[3,100]]], +[" ",[[3,100]]], +[" ",[[3,100]]], +[" ",[[3,100]]], +[" ",[[3,100]]], +[" ┃ ",[[3,2],[8,1],[5,95],[3,2]]], +[" ┃ Subagents Shell Terminals esc ",[[3,2],[8,1],[5,2],[9,9],[5,2],[10,5],[5,2],[9,9],[5,61],[9,3],[5,2],[3,2]]], +[" ┃ ",[[3,2],[8,1],[5,95],[3,2]]], +[" ┃ bun run build --watch ",[[3,2],[8,1],[5,1],[11,1],[12,21],[11,70],[5,2],[3,2]]], +[" ┃ ",[[3,2],[8,1],[5,95],[3,2]]], +[" ┃ ",[[3,2],[8,1],[5,95],[3,2]]], +[" ┃ ",[[3,2],[8,1],[5,95],[3,2]]], +[" ┃ ",[[3,2],[8,1],[5,95],[3,2]]], +[" ┃ ",[[3,2],[8,1],[5,95],[3,2]]], +[" ┃ output enter kill ctrl+d tabs ←/→ ",[[3,2],[8,1],[5,2],[10,6],[5,1],[9,5],[5,2],[10,4],[5,1],[9,6],[5,2],[10,4],[5,1],[9,3],[5,58],[3,2]]], +[" ┃ ",[[3,2],[8,1],[5,95],[3,2]]], +[" ",[[3,100]]] +]} diff --git a/packages/cli-rs/parity/fixtures/E.13b/tab-click/shell.json b/packages/cli-rs/parity/fixtures/E.13b/tab-click/shell.json new file mode 100644 index 000000000000..0d50b40c973e --- /dev/null +++ b/packages/cli-rs/parity/fixtures/E.13b/tab-click/shell.json @@ -0,0 +1,32 @@ +{"width":100,"height":30,"styles":["#ffffffff #202020ff 0","#ffffffff #202020ff 1","#808080ff #080808ff 0","#ffffffff #080808ff 0","#7699feff #141414ff 0","#ffffffff #141414ff 0","#eeeeeeff #080808ff 0","#7699feff #080808ff 0","#484848ff #141414ff 0","#808080ff #141414ff 0","#ffffffff #141414ff 1","#ffffffff #23344bff 0","#ffffffff #23344bff 1"],"lines":[ +[" Plan the release + ",[[0,3],[1,16],[0,13],[2,3],[3,65]]], +[" ",[[3,100]]], +[" ┃ ",[[3,2],[4,1],[5,95],[3,2]]], +[" ┃ Ship it ",[[3,2],[4,1],[5,95],[3,2]]], +[" ┃ ",[[3,2],[4,1],[5,95],[3,2]]], +[" ",[[3,100]]], +[" Done. ",[[3,5],[6,5],[3,90]]], +[" ",[[3,100]]], +[" Build · provider/model · 1.0s ",[[3,5],[7,5],[2,24],[3,66]]], +[" ",[[3,100]]], +[" ",[[3,100]]], +[" ",[[3,100]]], +[" ",[[3,100]]], +[" ",[[3,100]]], +[" ",[[3,100]]], +[" ",[[3,100]]], +[" ",[[3,100]]], +[" ",[[3,100]]], +[" ┃ ",[[3,2],[8,1],[5,95],[3,2]]], +[" ┃ Subagents Shell Terminals esc ",[[3,2],[8,1],[5,2],[9,9],[5,2],[10,5],[5,2],[9,9],[5,61],[9,3],[5,2],[3,2]]], +[" ┃ ",[[3,2],[8,1],[5,95],[3,2]]], +[" ┃ bun run build --watch ",[[3,2],[8,1],[5,1],[11,1],[12,21],[11,70],[5,2],[3,2]]], +[" ┃ ",[[3,2],[8,1],[5,95],[3,2]]], +[" ┃ ",[[3,2],[8,1],[5,95],[3,2]]], +[" ┃ ",[[3,2],[8,1],[5,95],[3,2]]], +[" ┃ ",[[3,2],[8,1],[5,95],[3,2]]], +[" ┃ ",[[3,2],[8,1],[5,95],[3,2]]], +[" ┃ output enter kill ctrl+d tabs ←/→ ",[[3,2],[8,1],[5,2],[10,6],[5,1],[9,5],[5,2],[10,4],[5,1],[9,6],[5,2],[10,4],[5,1],[9,3],[5,58],[3,2]]], +[" ┃ ",[[3,2],[8,1],[5,95],[3,2]]], +[" ",[[3,100]]] +]} diff --git a/packages/cli-rs/parity/fixtures/E.13b/tab-click/subagents.json b/packages/cli-rs/parity/fixtures/E.13b/tab-click/subagents.json new file mode 100644 index 000000000000..33b09db3edcf --- /dev/null +++ b/packages/cli-rs/parity/fixtures/E.13b/tab-click/subagents.json @@ -0,0 +1,32 @@ +{"width":100,"height":30,"styles":["#ffffffff #202020ff 0","#ffffffff #202020ff 1","#808080ff #080808ff 0","#ffffffff #080808ff 0","#7699feff #141414ff 0","#ffffffff #141414ff 0","#eeeeeeff #080808ff 0","#7699feff #080808ff 0","#484848ff #141414ff 0","#ffffffff #141414ff 1","#808080ff #141414ff 0"],"lines":[ +[" Plan the release + ",[[0,3],[1,16],[0,13],[2,3],[3,65]]], +[" ",[[3,100]]], +[" ┃ ",[[3,2],[4,1],[5,95],[3,2]]], +[" ┃ Ship it ",[[3,2],[4,1],[5,95],[3,2]]], +[" ┃ ",[[3,2],[4,1],[5,95],[3,2]]], +[" ",[[3,100]]], +[" Done. ",[[3,5],[6,5],[3,90]]], +[" ",[[3,100]]], +[" Build · provider/model · 1.0s ",[[3,5],[7,5],[2,24],[3,66]]], +[" ",[[3,100]]], +[" ",[[3,100]]], +[" ",[[3,100]]], +[" ",[[3,100]]], +[" ",[[3,100]]], +[" ",[[3,100]]], +[" ",[[3,100]]], +[" ",[[3,100]]], +[" ",[[3,100]]], +[" ┃ ",[[3,2],[8,1],[5,95],[3,2]]], +[" ┃ Subagents Shell Terminals esc ",[[3,2],[8,1],[5,2],[9,9],[5,2],[10,5],[5,2],[10,9],[5,61],[10,3],[5,2],[3,2]]], +[" ┃ ",[[3,2],[8,1],[5,95],[3,2]]], +[" ┃ No active subagents ",[[3,2],[8,1],[5,1],[10,20],[5,74],[3,2]]], +[" ┃ ",[[3,2],[8,1],[5,95],[3,2]]], +[" ┃ ",[[3,2],[8,1],[5,95],[3,2]]], +[" ┃ ",[[3,2],[8,1],[5,95],[3,2]]], +[" ┃ ",[[3,2],[8,1],[5,95],[3,2]]], +[" ┃ ",[[3,2],[8,1],[5,95],[3,2]]], +[" ┃ show inactive ctrl+a tabs ←/→ ",[[3,2],[8,1],[5,2],[9,13],[5,1],[10,6],[5,2],[9,4],[5,1],[10,3],[5,63],[3,2]]], +[" ┃ ",[[3,2],[8,1],[5,95],[3,2]]], +[" ",[[3,100]]] +]} diff --git a/packages/cli-rs/parity/fixtures/E.14/btw.app.json b/packages/cli-rs/parity/fixtures/E.14/btw.app.json new file mode 100644 index 000000000000..aaa8c241cd09 --- /dev/null +++ b/packages/cli-rs/parity/fixtures/E.14/btw.app.json @@ -0,0 +1,66 @@ +{ + "scenario": "E.14/btw", + "width": 100, + "height": 30, + "directory": "/tmp/opencode/packages/tui", + "config": { + "experimental": {"new-designs":true}, + "animations": false, + "theme": {"name":"opencode"} + }, + "args": { + "sessionID": "ses_b" + }, + "routes": [ + {"path":"/api/session/ses_b","json":{"data":{"id":"ses_b","title":"Side questions","projectID":"proj_test","cost":0,"tokens":{"input":0,"output":0,"reasoning":0,"cache":{"read":0,"write":0}},"time":{"created":2,"updated":2},"location":{"directory":"/tmp/opencode/packages/tui"}}}}, + {"path":"/api/session/ses_b/message","json":{"data":[{"id":"msg_2","type":"assistant","agent":"build","model":{"providerID":"provider","id":"model"},"content":[{"type":"text","text":"The parser is fixed."}],"finish":"stop","time":{"created":2,"completed":3}},{"id":"msg_1","type":"user","text":"Fix the parser","time":{"created":1}}],"cursor":{}}}, + {"path":"/api/session/ses_b/inbox","json":{"data":[]}}, + {"method":"POST","path":"/api/session/:sessionID/generate","hold":true,"json":{"data":{"text":"It was an **off-by-one** in the tokenizer.\n\n- one\n- two\n","tokens":{"input":120,"output":14,"reasoning":0,"cache":{"read":0,"write":0}},"cost":0.0004}}} + ], + "steps": [ + {"checkpoint":"open","until":"The parser is fixed.","fixture":"E.14/btw/open"}, + {"type":"/btw what was the bug?"}, + {"keys":["enter"]}, + {"checkpoint":"pending","until":"⋯ /btw","fixture":"E.14/btw/pending"}, + {"release":"/api/session/:sessionID/generate"}, + {"checkpoint":"answer","until":"off-by-one","fixture":"E.14/btw/answer"}, + {"keys":["escape"]}, + {"checkpoint":"closed","until":"The parser is fixed.","fixture":"E.14/btw/closed"} + ], + "requests": { + "writes": [ + {"method":"POST","path":"/api/session/ses_b/generate","query":{},"body":{"prompt":"The user is asking a quick side question about the conversation so far. Answer directly and concisely in markdown from what you already know. Do not call any tools and do not take any actions.\n\nwhat was the bug?"},"status":200,"json":{"data":{"text":"It was an **off-by-one** in the tokenizer.\n\n- one\n- two\n","tokens":{"input":120,"output":14,"reasoning":0,"cache":{"read":0,"write":0}},"cost":0.0004}}} + ], + "reads": [ + {"method":"GET","path":"/api/agent","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":[]}}, + {"method":"GET","path":"/api/command","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":[]}}, + {"method":"GET","path":"/api/config","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":[]}, + {"method":"GET","path":"/api/experimental/job","query":{"descendants":["true"],"sessionID":["ses_b"],"status":["running"]},"status":200,"json":{"data":[]}}, + {"method":"GET","path":"/api/experimental/migration/v1","query":{},"status":200,"json":{"status":"completed"}}, + {"method":"GET","path":"/api/experimental/session/ses_b/terminal","query":{},"status":200,"json":{"data":[]}}, + {"method":"GET","path":"/api/form","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode"}},"data":[]}}, + {"method":"GET","path":"/api/fs/list","query":{"location[directory]":["<cwd>"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":[]}}, + {"method":"GET","path":"/api/info","query":{},"status":200,"json":{"version":"test","pid":0,"urls":[],"paths":{"tmp":"/tmp"},"capabilities":{"persistentPty":true}}}, + {"method":"GET","path":"/api/integration","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":[]}}, + {"method":"GET","path":"/api/location","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}}}, + {"method":"GET","path":"/api/mcp","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":[]}}, + {"method":"GET","path":"/api/mcp/resource","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":{"resources":[],"templates":[]}}}, + {"method":"GET","path":"/api/model","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":[]}}, + {"method":"GET","path":"/api/plugin","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":[]}}, + {"method":"GET","path":"/api/project","query":{},"status":200,"json":[]}, + {"method":"GET","path":"/api/provider","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":[]}}, + {"method":"GET","path":"/api/reference","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode/packages/tui","canonical":"/tmp/opencode/packages/tui"}},"data":[]}}, + {"method":"GET","path":"/api/session","query":{"limit":["200"],"order":["desc"],"parentID":["ses_b"]},"status":200,"json":{"data":[],"cursor":{}}}, + {"method":"GET","path":"/api/session/active","query":{},"status":200,"json":{"data":{}}}, + {"method":"GET","path":"/api/session/ses_b","query":{},"status":200,"json":{"data":{"id":"ses_b","title":"Side questions","projectID":"proj_test","cost":0,"tokens":{"input":0,"output":0,"reasoning":0,"cache":{"read":0,"write":0}},"time":{"created":2,"updated":2},"location":{"directory":"/tmp/opencode/packages/tui"}}}}, + {"method":"GET","path":"/api/session/ses_b/form","query":{},"status":200,"json":{"data":[]}}, + {"method":"GET","path":"/api/session/ses_b/inbox","query":{},"status":200,"json":{"data":[]}}, + {"method":"GET","path":"/api/session/ses_b/message","query":{"limit":["20"],"order":["desc"]},"status":200,"json":{"data":[{"id":"msg_2","type":"assistant","agent":"build","model":{"providerID":"provider","id":"model"},"content":[{"type":"text","text":"The parser is fixed."}],"finish":"stop","time":{"created":2,"completed":3}},{"id":"msg_1","type":"user","text":"Fix the parser","time":{"created":1}}],"cursor":{}}}, + {"method":"GET","path":"/api/session/ses_b/permission","query":{},"status":200,"json":{"data":[]}}, + {"method":"GET","path":"/api/shell","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":[]}}, + {"method":"GET","path":"/api/skill","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":[]}}, + {"method":"GET","path":"/api/vcs","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":{"branch":{"current":"main","default":"main"}}}}, + {"method":"POST","path":"/api/rpc/opencode.goal/get","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"body":{"input":{"sessionID":"ses_b"}},"status":200,"json":{"output":null}} + ] + } +} diff --git a/packages/cli-rs/parity/fixtures/E.14/btw/answer.json b/packages/cli-rs/parity/fixtures/E.14/btw/answer.json new file mode 100644 index 000000000000..a4bcaf7dd0ce --- /dev/null +++ b/packages/cli-rs/parity/fixtures/E.14/btw/answer.json @@ -0,0 +1,32 @@ +{"width":100,"height":30,"styles":["#ffffffff #0d0d0dff 0","#696969ff #0d0d0dff 1","#ffffffff #030303ff 0","#353535ff #030303ff 0","#313f69ff #080808ff 0","#ffffffff #080808ff 0","#696969ff #080808ff 0","#626262ff #030303ff 0","#313f69ff #030303ff 0","#ffffffff #141414ff 0","#ffffffff #141414ff 1","#808080ff #141414ff 0","#ffffffff #202020ff 0","#eeeeeeff #202020ff 0","#f5a742ff #202020ff 1","#fab283ff #202020ff 0","#808080ff #202020ff 0","#1e1e1eff #030303ff 0","#0d0d0dff #030303ff 0","#696969ff #030303ff 0"],"lines":[ +[" Side questions + ",[[0,3],[1,4],[0,1],[1,9],[0,15],[2,1],[3,1],[2,66]]], +[" ",[[2,100]]], +[" ┃ ",[[2,2],[4,1],[5,95],[2,2]]], +[" ┃ Fix the parser ",[[2,2],[4,1],[5,2],[6,3],[5,1],[6,3],[5,1],[6,6],[5,79],[2,2]]], +[" ┃ ",[[2,2],[4,1],[5,95],[2,2]]], +[" ",[[2,100]]], +[" The parser is fixed. ",[[2,5],[7,3],[2,1],[7,6],[2,1],[7,2],[2,1],[7,6],[2,75]]], +[" ",[[2,100]]], +[" Build · provider/model · 2ms ",[[2,5],[8,5],[2,1],[3,1],[2,1],[3,14],[2,1],[3,1],[2,1],[3,3],[2,67]]], +[" ",[[2,6],[9,88],[2,6]]], +[" /btw what was the bug? esc ",[[2,6],[9,3],[10,4],[9,2],[11,17],[9,56],[11,3],[9,3],[2,6]]], +[" ",[[2,6],[9,88],[2,6]]], +[" ",[[2,6],[12,88],[2,6]]], +[" It was an off-by-one in the tokenizer. ",[[2,6],[12,3],[13,10],[14,10],[13,18],[12,47],[2,6]]], +[" ",[[2,6],[12,88],[2,6]]], +[" - one ",[[2,6],[12,3],[15,2],[13,3],[12,80],[2,6]]], +[" - two ",[[2,6],[12,3],[15,2],[13,3],[12,80],[2,6]]], +[" ",[[2,6],[12,88],[2,6]]], +[" ",[[2,6],[9,88],[2,6]]], +[" ",[[2,6],[12,88],[2,6]]], +[" copy response c ",[[2,6],[12,83],[16,2],[12,3],[2,6]]], +[" ",[[2,6],[12,88],[2,6]]], +[" ",[[2,100]]], +[" ┃ ",[[2,2],[17,1],[0,95],[2,2]]], +[" ┃ ",[[2,2],[17,1],[0,95],[2,2]]], +[" ┃ ",[[2,2],[17,1],[0,95],[2,2]]], +[" ┃ ",[[2,2],[17,1],[0,95],[2,2]]], +[" ╹▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀ ",[[2,2],[17,1],[18,95],[2,2]]], +[" /tmp/opencode/packages/tui:main shift+tab agents ctrl+p commands ",[[2,2],[3,31],[2,32],[19,9],[2,1],[3,6],[2,2],[19,6],[2,1],[3,8],[2,2]]], +[" ",[[2,100]]] +]} diff --git a/packages/cli-rs/parity/fixtures/E.14/btw/closed.json b/packages/cli-rs/parity/fixtures/E.14/btw/closed.json new file mode 100644 index 000000000000..e87989d4da61 --- /dev/null +++ b/packages/cli-rs/parity/fixtures/E.14/btw/closed.json @@ -0,0 +1,32 @@ +{"width":100,"height":30,"styles":["#ffffffff #202020ff 0","#ffffffff #202020ff 1","#808080ff #080808ff 0","#ffffffff #080808ff 0","#7699feff #141414ff 0","#ffffffff #141414ff 0","#eeeeeeff #080808ff 0","#7699feff #080808ff 0","#484848ff #080808ff 0","#202020ff #080808ff 0"],"lines":[ +[" Side questions + ",[[0,3],[1,14],[0,15],[2,3],[3,65]]], +[" ",[[3,100]]], +[" ┃ ",[[3,2],[4,1],[5,95],[3,2]]], +[" ┃ Fix the parser ",[[3,2],[4,1],[5,95],[3,2]]], +[" ┃ ",[[3,2],[4,1],[5,95],[3,2]]], +[" ",[[3,100]]], +[" The parser is fixed. ",[[3,5],[6,20],[3,75]]], +[" ",[[3,100]]], +[" Build · provider/model · 2ms ",[[3,5],[7,5],[2,23],[3,67]]], +[" ",[[3,100]]], +[" ",[[3,100]]], +[" ",[[3,100]]], +[" ",[[3,100]]], +[" ",[[3,100]]], +[" ",[[3,100]]], +[" ",[[3,100]]], +[" ",[[3,100]]], +[" ",[[3,100]]], +[" ",[[3,100]]], +[" ",[[3,100]]], +[" ",[[3,100]]], +[" ",[[3,100]]], +[" ",[[3,100]]], +[" ┃ ",[[3,2],[8,1],[0,95],[3,2]]], +[" ┃ ",[[3,2],[8,1],[0,95],[3,2]]], +[" ┃ ",[[3,2],[8,1],[0,95],[3,2]]], +[" ┃ ",[[3,2],[8,1],[0,95],[3,2]]], +[" ╹▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀ ",[[3,2],[8,1],[9,95],[3,2]]], +[" /tmp/opencode/packages/tui:main shift+tab agents ctrl+p commands ",[[3,2],[2,31],[3,42],[2,6],[3,9],[2,8],[3,2]]], +[" ",[[3,100]]] +]} diff --git a/packages/cli-rs/parity/fixtures/E.14/btw/open.json b/packages/cli-rs/parity/fixtures/E.14/btw/open.json new file mode 100644 index 000000000000..e87989d4da61 --- /dev/null +++ b/packages/cli-rs/parity/fixtures/E.14/btw/open.json @@ -0,0 +1,32 @@ +{"width":100,"height":30,"styles":["#ffffffff #202020ff 0","#ffffffff #202020ff 1","#808080ff #080808ff 0","#ffffffff #080808ff 0","#7699feff #141414ff 0","#ffffffff #141414ff 0","#eeeeeeff #080808ff 0","#7699feff #080808ff 0","#484848ff #080808ff 0","#202020ff #080808ff 0"],"lines":[ +[" Side questions + ",[[0,3],[1,14],[0,15],[2,3],[3,65]]], +[" ",[[3,100]]], +[" ┃ ",[[3,2],[4,1],[5,95],[3,2]]], +[" ┃ Fix the parser ",[[3,2],[4,1],[5,95],[3,2]]], +[" ┃ ",[[3,2],[4,1],[5,95],[3,2]]], +[" ",[[3,100]]], +[" The parser is fixed. ",[[3,5],[6,20],[3,75]]], +[" ",[[3,100]]], +[" Build · provider/model · 2ms ",[[3,5],[7,5],[2,23],[3,67]]], +[" ",[[3,100]]], +[" ",[[3,100]]], +[" ",[[3,100]]], +[" ",[[3,100]]], +[" ",[[3,100]]], +[" ",[[3,100]]], +[" ",[[3,100]]], +[" ",[[3,100]]], +[" ",[[3,100]]], +[" ",[[3,100]]], +[" ",[[3,100]]], +[" ",[[3,100]]], +[" ",[[3,100]]], +[" ",[[3,100]]], +[" ┃ ",[[3,2],[8,1],[0,95],[3,2]]], +[" ┃ ",[[3,2],[8,1],[0,95],[3,2]]], +[" ┃ ",[[3,2],[8,1],[0,95],[3,2]]], +[" ┃ ",[[3,2],[8,1],[0,95],[3,2]]], +[" ╹▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀ ",[[3,2],[8,1],[9,95],[3,2]]], +[" /tmp/opencode/packages/tui:main shift+tab agents ctrl+p commands ",[[3,2],[2,31],[3,42],[2,6],[3,9],[2,8],[3,2]]], +[" ",[[3,100]]] +]} diff --git a/packages/cli-rs/parity/fixtures/E.14/btw/pending.json b/packages/cli-rs/parity/fixtures/E.14/btw/pending.json new file mode 100644 index 000000000000..f5dd22f92f32 --- /dev/null +++ b/packages/cli-rs/parity/fixtures/E.14/btw/pending.json @@ -0,0 +1,32 @@ +{"width":100,"height":30,"styles":["#ffffffff #202020ff 0","#ffffffff #202020ff 1","#808080ff #080808ff 0","#ffffffff #080808ff 0","#7699feff #141414ff 0","#ffffffff #141414ff 0","#eeeeeeff #080808ff 0","#7699feff #080808ff 0","#484848ff #080808ff 0","#202020ff #080808ff 0","#93a2b7ff #080808ff 0"],"lines":[ +[" Side questions + ",[[0,3],[1,14],[0,15],[2,3],[3,65]]], +[" ",[[3,100]]], +[" ┃ ",[[3,2],[4,1],[5,95],[3,2]]], +[" ┃ Fix the parser ",[[3,2],[4,1],[5,95],[3,2]]], +[" ┃ ",[[3,2],[4,1],[5,95],[3,2]]], +[" ",[[3,100]]], +[" The parser is fixed. ",[[3,5],[6,20],[3,75]]], +[" ",[[3,100]]], +[" Build · provider/model · 2ms ",[[3,5],[7,5],[2,23],[3,67]]], +[" ",[[3,100]]], +[" ",[[3,100]]], +[" ",[[3,100]]], +[" ",[[3,100]]], +[" ",[[3,100]]], +[" ",[[3,100]]], +[" ",[[3,100]]], +[" ",[[3,100]]], +[" ",[[3,100]]], +[" ",[[3,100]]], +[" ",[[3,100]]], +[" ",[[3,100]]], +[" ",[[3,100]]], +[" ",[[3,100]]], +[" ┃ ",[[3,2],[8,1],[0,95],[3,2]]], +[" ┃ ",[[3,2],[8,1],[0,95],[3,2]]], +[" ┃ ",[[3,2],[8,1],[0,95],[3,2]]], +[" ┃ ",[[3,2],[8,1],[0,95],[3,2]]], +[" ╹▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀ ",[[3,2],[8,1],[9,95],[3,2]]], +[" /tmp/opencode/packages/tui:main ⋯ /btw shift+tab agents ctrl+p commands ",[[3,2],[2,31],[3,24],[10,6],[3,12],[2,6],[3,9],[2,8],[3,2]]], +[" ",[[3,100]]] +]} diff --git a/packages/cli-rs/parity/fixtures/E.14/home-footer.app.json b/packages/cli-rs/parity/fixtures/E.14/home-footer.app.json new file mode 100644 index 000000000000..d585cb036f45 --- /dev/null +++ b/packages/cli-rs/parity/fixtures/E.14/home-footer.app.json @@ -0,0 +1,43 @@ +{ + "scenario": "E.14/home-footer", + "width": 100, + "height": 30, + "directory": "/tmp/opencode/packages/tui", + "config": { + "experimental": {"new-designs":true}, + "animations": false, + "theme": {"name":"opencode"} + }, + "args": {}, + "routes": [ + {"path":"/api/mcp","json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":[{"name":"github","status":{"status":"connected"}},{"name":"linear","status":{"status":"connected"}},{"name":"figma","status":{"status":"disabled"}}]}} + ], + "steps": [ + {"checkpoint":"counts","until":"2 MCP","masks":[{"x":16,"y":16,"width":84,"height":1,"reason":"the placeholder example: random in TS and Rust"}],"fixture":"E.14/home-footer/counts"} + ], + "requests": { + "writes": [], + "reads": [ + {"method":"GET","path":"/api/agent","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":[]}}, + {"method":"GET","path":"/api/command","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":[]}}, + {"method":"GET","path":"/api/config","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":[]}, + {"method":"GET","path":"/api/experimental/migration/v1","query":{},"status":200,"json":{"status":"completed"}}, + {"method":"GET","path":"/api/form","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode"}},"data":[]}}, + {"method":"GET","path":"/api/fs/list","query":{"location[directory]":["<cwd>"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":[]}}, + {"method":"GET","path":"/api/info","query":{},"status":200,"json":{"version":"test","pid":0,"urls":[],"paths":{"tmp":"/tmp"},"capabilities":{"persistentPty":true}}}, + {"method":"GET","path":"/api/integration","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":[]}}, + {"method":"GET","path":"/api/location","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}}}, + {"method":"GET","path":"/api/mcp","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":[{"name":"github","status":{"status":"connected"}},{"name":"linear","status":{"status":"connected"}},{"name":"figma","status":{"status":"disabled"}}]}}, + {"method":"GET","path":"/api/mcp/resource","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":{"resources":[],"templates":[]}}}, + {"method":"GET","path":"/api/model","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":[]}}, + {"method":"GET","path":"/api/plugin","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":[]}}, + {"method":"GET","path":"/api/project","query":{},"status":200,"json":[]}, + {"method":"GET","path":"/api/provider","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":[]}}, + {"method":"GET","path":"/api/reference","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode/packages/tui","canonical":"/tmp/opencode/packages/tui"}},"data":[]}}, + {"method":"GET","path":"/api/session/active","query":{},"status":200,"json":{"data":{}}}, + {"method":"GET","path":"/api/shell","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":[]}}, + {"method":"GET","path":"/api/skill","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":[]}}, + {"method":"GET","path":"/api/vcs","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":{"branch":{"current":"main","default":"main"}}}} + ] + } +} diff --git a/packages/cli-rs/parity/fixtures/E.14/home-footer/counts.json b/packages/cli-rs/parity/fixtures/E.14/home-footer/counts.json new file mode 100644 index 000000000000..e868b31789f7 --- /dev/null +++ b/packages/cli-rs/parity/fixtures/E.14/home-footer/counts.json @@ -0,0 +1,32 @@ +{"width":100,"height":30,"styles":["#ffffffff #080808ff 0","#808080ff #080808ff 0","#ffffffff #080808ff 1","#808080ff #262626ff 0","#ffffffff #464646ff 1","#262626ff #080808ff 0","#484848ff #080808ff 0","#ffffffff #202020ff 0","#00000000 #00000000 0","#202020ff #080808ff 0","#9ee77aff #080808ff 0"],"lines":[ +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ▄ ",[[0,31],[1,19],[0,1],[2,19],[0,30]]], +[" █▀▀█ █▀▀█ █▀▀█ █▀▀▄ █▀▀▀ █▀▀█ █▀▀█ █▀▀█ ",[[0,31],[1,19],[0,1],[2,19],[0,30]]], +[" █ █ █ █ █▀▀▀ █ █ █ █ █ █ █ █▀▀▀ ",[[0,31],[1,1],[3,2],[1,3],[3,2],[1,3],[3,3],[1,2],[3,2],[1,1],[0,1],[2,1],[4,3],[2,2],[4,2],[2,3],[4,2],[2,3],[4,3],[0,30]]], +[" ▀▀▀▀ █▀▀▀ ▀▀▀▀ ▀▀▀▀ ▀▀▀▀ ▀▀▀▀ ▀▀▀▀ ▀▀▀▀ ",[[0,31],[1,16],[5,2],[1,1],[0,1],[2,19],[0,30]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ┃ ",[[0,13],[6,1],[7,74],[0,12]]], +[" ┃ ",[[0,13],[6,1],[7,2],[8,84]]], +[" ┃ ",[[0,13],[6,1],[7,74],[0,12]]], +[" ┃ ",[[0,13],[6,1],[7,74],[0,12]]], +[" ╹▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀ ",[[0,13],[6,1],[9,74],[0,12]]], +[" /tmp/opencode/packages/tui:main shift+tab agents ctrl+p commands ",[[0,13],[1,31],[0,21],[1,6],[0,9],[1,8],[0,12]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ⊙ 2 MCP /mcps test ",[[0,2],[10,2],[0,6],[1,5],[0,79],[1,4],[0,2]]], +[" ",[[0,100]]] +]} diff --git a/packages/cli-rs/parity/fixtures/E.14/overlay.app.json b/packages/cli-rs/parity/fixtures/E.14/overlay.app.json new file mode 100644 index 000000000000..88f12f7b1758 --- /dev/null +++ b/packages/cli-rs/parity/fixtures/E.14/overlay.app.json @@ -0,0 +1,60 @@ +{ + "scenario": "E.14/overlay", + "width": 100, + "height": 30, + "directory": "/tmp/opencode/packages/tui", + "config": { + "experimental": {"new-designs":true}, + "animations": false, + "theme": {"name":"opencode"} + }, + "args": { + "sessionID": "ses_o" + }, + "routes": [ + {"path":"/api/session/ses_o","json":{"data":{"id":"ses_o","title":"Narrow sidebar","projectID":"proj_test","cost":0,"tokens":{"input":0,"output":0,"reasoning":0,"cache":{"read":0,"write":0}},"time":{"created":2,"updated":2},"location":{"directory":"/tmp/opencode/packages/tui"}}}}, + {"path":"/api/session/ses_o/message","json":{"data":[{"id":"msg_2","type":"assistant","agent":"build","model":{"providerID":"provider","id":"model"},"content":[{"type":"text","text":"Shown over the session."}],"finish":"stop","time":{"created":2,"completed":3}},{"id":"msg_1","type":"user","text":"Where is it?","time":{"created":1}}],"cursor":{}}}, + {"path":"/api/session/ses_o/inbox","json":{"data":[]}} + ], + "steps": [ + {"checkpoint":"closed","until":"Shown over the session.","fixture":"E.14/overlay/closed"}, + {"keys":["ctrl+x","b"]}, + {"checkpoint":"overlay","until":"Narrow sidebar","fixture":"E.14/overlay/overlay"}, + {"keys":["escape"]}, + {"checkpoint":"escaped","fixture":"E.14/overlay/escaped"} + ], + "requests": { + "writes": [], + "reads": [ + {"method":"GET","path":"/api/agent","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":[]}}, + {"method":"GET","path":"/api/command","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":[]}}, + {"method":"GET","path":"/api/config","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":[]}, + {"method":"GET","path":"/api/experimental/job","query":{"descendants":["true"],"sessionID":["ses_o"],"status":["running"]},"status":200,"json":{"data":[]}}, + {"method":"GET","path":"/api/experimental/migration/v1","query":{},"status":200,"json":{"status":"completed"}}, + {"method":"GET","path":"/api/experimental/session/ses_o/terminal","query":{},"status":200,"json":{"data":[]}}, + {"method":"GET","path":"/api/form","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode"}},"data":[]}}, + {"method":"GET","path":"/api/fs/list","query":{"location[directory]":["<cwd>"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":[]}}, + {"method":"GET","path":"/api/info","query":{},"status":200,"json":{"version":"test","pid":0,"urls":[],"paths":{"tmp":"/tmp"},"capabilities":{"persistentPty":true}}}, + {"method":"GET","path":"/api/integration","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":[]}}, + {"method":"GET","path":"/api/location","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}}}, + {"method":"GET","path":"/api/mcp","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":[]}}, + {"method":"GET","path":"/api/mcp/resource","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":{"resources":[],"templates":[]}}}, + {"method":"GET","path":"/api/model","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":[]}}, + {"method":"GET","path":"/api/plugin","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":[]}}, + {"method":"GET","path":"/api/project","query":{},"status":200,"json":[]}, + {"method":"GET","path":"/api/provider","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":[]}}, + {"method":"GET","path":"/api/reference","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode/packages/tui","canonical":"/tmp/opencode/packages/tui"}},"data":[]}}, + {"method":"GET","path":"/api/session","query":{"limit":["200"],"order":["desc"],"parentID":["ses_o"]},"status":200,"json":{"data":[],"cursor":{}}}, + {"method":"GET","path":"/api/session/active","query":{},"status":200,"json":{"data":{}}}, + {"method":"GET","path":"/api/session/ses_o","query":{},"status":200,"json":{"data":{"id":"ses_o","title":"Narrow sidebar","projectID":"proj_test","cost":0,"tokens":{"input":0,"output":0,"reasoning":0,"cache":{"read":0,"write":0}},"time":{"created":2,"updated":2},"location":{"directory":"/tmp/opencode/packages/tui"}}}}, + {"method":"GET","path":"/api/session/ses_o/form","query":{},"status":200,"json":{"data":[]}}, + {"method":"GET","path":"/api/session/ses_o/inbox","query":{},"status":200,"json":{"data":[]}}, + {"method":"GET","path":"/api/session/ses_o/message","query":{"limit":["20"],"order":["desc"]},"status":200,"json":{"data":[{"id":"msg_2","type":"assistant","agent":"build","model":{"providerID":"provider","id":"model"},"content":[{"type":"text","text":"Shown over the session."}],"finish":"stop","time":{"created":2,"completed":3}},{"id":"msg_1","type":"user","text":"Where is it?","time":{"created":1}}],"cursor":{}}}, + {"method":"GET","path":"/api/session/ses_o/permission","query":{},"status":200,"json":{"data":[]}}, + {"method":"GET","path":"/api/shell","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":[]}}, + {"method":"GET","path":"/api/skill","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":[]}}, + {"method":"GET","path":"/api/vcs","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":{"branch":{"current":"main","default":"main"}}}}, + {"method":"POST","path":"/api/rpc/opencode.goal/get","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"body":{"input":{"sessionID":"ses_o"}},"status":200,"json":{"output":null}} + ] + } +} diff --git a/packages/cli-rs/parity/fixtures/E.14/overlay/closed.json b/packages/cli-rs/parity/fixtures/E.14/overlay/closed.json new file mode 100644 index 000000000000..8e6d20b3a789 --- /dev/null +++ b/packages/cli-rs/parity/fixtures/E.14/overlay/closed.json @@ -0,0 +1,32 @@ +{"width":100,"height":30,"styles":["#ffffffff #202020ff 0","#ffffffff #202020ff 1","#808080ff #080808ff 0","#ffffffff #080808ff 0","#7699feff #141414ff 0","#ffffffff #141414ff 0","#eeeeeeff #080808ff 0","#7699feff #080808ff 0","#484848ff #080808ff 0","#202020ff #080808ff 0"],"lines":[ +[" Narrow sidebar + ",[[0,3],[1,14],[0,15],[2,3],[3,65]]], +[" ",[[3,100]]], +[" ┃ ",[[3,2],[4,1],[5,95],[3,2]]], +[" ┃ Where is it? ",[[3,2],[4,1],[5,95],[3,2]]], +[" ┃ ",[[3,2],[4,1],[5,95],[3,2]]], +[" ",[[3,100]]], +[" Shown over the session. ",[[3,5],[6,23],[3,72]]], +[" ",[[3,100]]], +[" Build · provider/model · 2ms ",[[3,5],[7,5],[2,23],[3,67]]], +[" ",[[3,100]]], +[" ",[[3,100]]], +[" ",[[3,100]]], +[" ",[[3,100]]], +[" ",[[3,100]]], +[" ",[[3,100]]], +[" ",[[3,100]]], +[" ",[[3,100]]], +[" ",[[3,100]]], +[" ",[[3,100]]], +[" ",[[3,100]]], +[" ",[[3,100]]], +[" ",[[3,100]]], +[" ",[[3,100]]], +[" ┃ ",[[3,2],[8,1],[0,95],[3,2]]], +[" ┃ ",[[3,2],[8,1],[0,95],[3,2]]], +[" ┃ ",[[3,2],[8,1],[0,95],[3,2]]], +[" ┃ ",[[3,2],[8,1],[0,95],[3,2]]], +[" ╹▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀ ",[[3,2],[8,1],[9,95],[3,2]]], +[" /tmp/opencode/packages/tui:main shift+tab agents ctrl+p commands ",[[3,2],[2,31],[3,42],[2,6],[3,9],[2,8],[3,2]]], +[" ",[[3,100]]] +]} diff --git a/packages/cli-rs/parity/fixtures/E.14/overlay/escaped.json b/packages/cli-rs/parity/fixtures/E.14/overlay/escaped.json new file mode 100644 index 000000000000..8e6d20b3a789 --- /dev/null +++ b/packages/cli-rs/parity/fixtures/E.14/overlay/escaped.json @@ -0,0 +1,32 @@ +{"width":100,"height":30,"styles":["#ffffffff #202020ff 0","#ffffffff #202020ff 1","#808080ff #080808ff 0","#ffffffff #080808ff 0","#7699feff #141414ff 0","#ffffffff #141414ff 0","#eeeeeeff #080808ff 0","#7699feff #080808ff 0","#484848ff #080808ff 0","#202020ff #080808ff 0"],"lines":[ +[" Narrow sidebar + ",[[0,3],[1,14],[0,15],[2,3],[3,65]]], +[" ",[[3,100]]], +[" ┃ ",[[3,2],[4,1],[5,95],[3,2]]], +[" ┃ Where is it? ",[[3,2],[4,1],[5,95],[3,2]]], +[" ┃ ",[[3,2],[4,1],[5,95],[3,2]]], +[" ",[[3,100]]], +[" Shown over the session. ",[[3,5],[6,23],[3,72]]], +[" ",[[3,100]]], +[" Build · provider/model · 2ms ",[[3,5],[7,5],[2,23],[3,67]]], +[" ",[[3,100]]], +[" ",[[3,100]]], +[" ",[[3,100]]], +[" ",[[3,100]]], +[" ",[[3,100]]], +[" ",[[3,100]]], +[" ",[[3,100]]], +[" ",[[3,100]]], +[" ",[[3,100]]], +[" ",[[3,100]]], +[" ",[[3,100]]], +[" ",[[3,100]]], +[" ",[[3,100]]], +[" ",[[3,100]]], +[" ┃ ",[[3,2],[8,1],[0,95],[3,2]]], +[" ┃ ",[[3,2],[8,1],[0,95],[3,2]]], +[" ┃ ",[[3,2],[8,1],[0,95],[3,2]]], +[" ┃ ",[[3,2],[8,1],[0,95],[3,2]]], +[" ╹▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀ ",[[3,2],[8,1],[9,95],[3,2]]], +[" /tmp/opencode/packages/tui:main shift+tab agents ctrl+p commands ",[[3,2],[2,31],[3,42],[2,6],[3,9],[2,8],[3,2]]], +[" ",[[3,100]]] +]} diff --git a/packages/cli-rs/parity/fixtures/E.14/overlay/overlay.json b/packages/cli-rs/parity/fixtures/E.14/overlay/overlay.json new file mode 100644 index 000000000000..065a986c8433 --- /dev/null +++ b/packages/cli-rs/parity/fixtures/E.14/overlay/overlay.json @@ -0,0 +1,32 @@ +{"width":100,"height":30,"styles":["#ffffffff #202020ff 0","#ffffffff #202020ff 1","#808080ff #080808ff 0","#ffffffff #080808ff 0","#ffffffff #060606ff 0","#ffffffff #141414ff 0","#566fb8ff #0f0f0fff 0","#ffffffff #0f0f0fff 0","#ffffffff #141414ff 1","#b9b9b9ff #0f0f0fff 0","#adadadff #060606ff 0","#566fb8ff #060606ff 0","#5d5d5dff #060606ff 0","#808080ff #202020ff 0","#343434ff #060606ff 0","#ffffffff #171717ff 0","#171717ff #060606ff 0","#808080ff #141414ff 0"],"lines":[ +[" Narrow sidebar + ",[[0,3],[1,14],[0,15],[2,3],[3,65]]], +[" ",[[4,58],[5,42]]], +[" ┃ Narrow sidebar ",[[4,2],[6,1],[7,55],[5,2],[8,14],[5,26]]], +[" ┃ Where is it? ",[[4,2],[6,1],[7,2],[9,5],[7,1],[9,2],[7,1],[9,3],[7,41],[5,42]]], +[" ┃ ",[[4,2],[6,1],[7,55],[5,42]]], +[" ",[[4,58],[5,42]]], +[" Shown over the session. ",[[4,5],[10,5],[4,1],[10,4],[4,1],[10,3],[4,1],[10,8],[4,30],[5,42]]], +[" ",[[4,58],[5,42]]], +[" Build · provider/model · 2ms ",[[4,5],[11,5],[4,1],[12,1],[4,1],[12,14],[4,1],[12,1],[4,1],[12,3],[4,25],[5,42]]], +[" ",[[4,58],[5,42]]], +[" ",[[4,58],[5,42]]], +[" ",[[4,58],[5,42]]], +[" ",[[4,58],[5,42]]], +[" ",[[4,58],[5,42]]], +[" ",[[4,58],[5,42]]], +[" ",[[4,58],[5,2],[0,38],[5,2]]], +[" ⬖ Getting started ✕ ",[[4,58],[5,2],[0,4],[1,15],[0,16],[13,1],[0,2],[5,2]]], +[" ",[[4,58],[5,2],[0,38],[5,2]]], +[" OpenCode includes free models so ",[[4,58],[5,2],[0,4],[13,32],[0,2],[5,2]]], +[" you can start immediately. ",[[4,58],[5,2],[0,4],[13,26],[0,8],[5,2]]], +[" ",[[4,58],[5,2],[0,38],[5,2]]], +[" Connect from 75+ providers to ",[[4,58],[5,2],[0,4],[13,30],[0,4],[5,2]]], +[" use other models, including ",[[4,58],[5,2],[0,4],[13,28],[0,6],[5,2]]], +[" ┃ Claude, GPT, Gemini etc ",[[4,2],[14,1],[15,55],[5,2],[0,4],[13,23],[0,11],[5,2]]], +[" ┃ ",[[4,2],[14,1],[15,55],[5,2],[0,38],[5,2]]], +[" ┃ Connect provider /connect ",[[4,2],[14,1],[15,55],[5,2],[0,28],[13,8],[0,2],[5,2]]], +[" ┃ ",[[4,2],[14,1],[15,55],[5,2],[0,38],[5,2]]], +[" ╹▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀ ",[[4,2],[14,1],[16,55],[5,42]]], +[" /tmp/opencode/packages/tui:main /tmp/opencode/packages/tui:main ",[[4,2],[12,31],[4,25],[5,2],[17,31],[5,9]]], +[" ",[[4,58],[5,42]]] +]} diff --git a/packages/cli-rs/parity/fixtures/E.14/sidebar.app.json b/packages/cli-rs/parity/fixtures/E.14/sidebar.app.json new file mode 100644 index 000000000000..7a4303e903c4 --- /dev/null +++ b/packages/cli-rs/parity/fixtures/E.14/sidebar.app.json @@ -0,0 +1,65 @@ +{ + "scenario": "E.14/sidebar", + "width": 140, + "height": 34, + "directory": "/tmp/opencode/packages/tui", + "config": { + "experimental": {"new-designs":true}, + "animations": false, + "theme": {"name":"opencode"} + }, + "args": { + "sessionID": "ses_s" + }, + "routes": [ + {"path":"/api/session/ses_s","json":{"data":{"id":"ses_s","title":"Plan the release","projectID":"proj_test","cost":0.42,"tokens":{"input":0,"output":0,"reasoning":0,"cache":{"read":0,"write":0}},"time":{"created":2,"updated":2},"location":{"directory":"/tmp/opencode/packages/tui"}}}}, + {"path":"/api/session/ses_s/message","json":{"data":[{"id":"msg_2","type":"assistant","agent":"build","model":{"providerID":"provider","id":"model"},"content":[{"type":"text","text":"The release plan is ready."},{"type":"tool","id":"call_1","name":"todowrite","state":{"status":"completed","input":{"todos":[{"content":"Write the changelog","status":"completed"},{"content":"Tag the release","status":"in_progress"},{"content":"Announce it","status":"pending"}]},"content":[]},"time":{"created":2,"ran":2,"completed":3}}],"finish":"stop","time":{"created":2,"completed":3},"cost":0.42,"tokens":{"input":20000,"output":500,"reasoning":0,"cache":{"read":4500,"write":0}}},{"id":"msg_1","type":"user","text":"Plan it","time":{"created":1}}],"cursor":{}}}, + {"path":"/api/session/ses_s/inbox","json":{"data":[]}}, + {"path":"/api/model","json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":[{"id":"model","modelID":"model","providerID":"provider","name":"Model","capabilities":{"tools":true,"input":["text"],"output":["text"]},"variants":[],"time":{"released":0},"cost":[{"input":3,"output":15,"cache":{"read":0.3,"write":3.75}}],"status":"active","enabled":true,"limit":{"context":200000,"output":32000}}]}}, + {"path":"/api/integration","json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":[{"id":"anthropic","name":"Anthropic","methods":[],"connections":[]}]}}, + {"path":"/api/mcp","json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":[{"name":"github","status":{"status":"connected"}},{"name":"linear","status":{"status":"failed","error":"spawn ENOENT"}},{"name":"figma","status":{"status":"needs_auth","error":"sign in"}}]}} + ], + "steps": [ + {"checkpoint":"docked","until":"Getting started","fixture":"E.14/sidebar/docked"}, + {"click":[100,9]}, + {"checkpoint":"folded","until":"(1 active, 2 errors)","fixture":"E.14/sidebar/folded"}, + {"keys":["ctrl+x","b"]}, + {"checkpoint":"hidden","fixture":"E.14/sidebar/hidden"}, + {"keys":["ctrl+x","b"]}, + {"checkpoint":"shown","until":"Getting started","fixture":"E.14/sidebar/shown"} + ], + "requests": { + "writes": [], + "reads": [ + {"method":"GET","path":"/api/agent","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":[]}}, + {"method":"GET","path":"/api/command","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":[]}}, + {"method":"GET","path":"/api/config","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":[]}, + {"method":"GET","path":"/api/experimental/job","query":{"descendants":["true"],"sessionID":["ses_s"],"status":["running"]},"status":200,"json":{"data":[]}}, + {"method":"GET","path":"/api/experimental/migration/v1","query":{},"status":200,"json":{"status":"completed"}}, + {"method":"GET","path":"/api/experimental/session/ses_s/terminal","query":{},"status":200,"json":{"data":[]}}, + {"method":"GET","path":"/api/form","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode"}},"data":[]}}, + {"method":"GET","path":"/api/fs/list","query":{"location[directory]":["<cwd>"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":[]}}, + {"method":"GET","path":"/api/info","query":{},"status":200,"json":{"version":"test","pid":0,"urls":[],"paths":{"tmp":"/tmp"},"capabilities":{"persistentPty":true}}}, + {"method":"GET","path":"/api/integration","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":[{"id":"anthropic","name":"Anthropic","methods":[],"connections":[]}]}}, + {"method":"GET","path":"/api/location","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}}}, + {"method":"GET","path":"/api/mcp","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":[{"name":"github","status":{"status":"connected"}},{"name":"linear","status":{"status":"failed","error":"spawn ENOENT"}},{"name":"figma","status":{"status":"needs_auth","error":"sign in"}}]}}, + {"method":"GET","path":"/api/mcp/resource","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":{"resources":[],"templates":[]}}}, + {"method":"GET","path":"/api/model","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":[{"id":"model","modelID":"model","providerID":"provider","name":"Model","capabilities":{"tools":true,"input":["text"],"output":["text"]},"variants":[],"time":{"released":0},"cost":[{"input":3,"output":15,"cache":{"read":0.3,"write":3.75}}],"status":"active","enabled":true,"limit":{"context":200000,"output":32000}}]}}, + {"method":"GET","path":"/api/plugin","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":[]}}, + {"method":"GET","path":"/api/project","query":{},"status":200,"json":[]}, + {"method":"GET","path":"/api/provider","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":[]}}, + {"method":"GET","path":"/api/reference","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode/packages/tui","canonical":"/tmp/opencode/packages/tui"}},"data":[]}}, + {"method":"GET","path":"/api/session","query":{"limit":["200"],"order":["desc"],"parentID":["ses_s"]},"status":200,"json":{"data":[],"cursor":{}}}, + {"method":"GET","path":"/api/session/active","query":{},"status":200,"json":{"data":{}}}, + {"method":"GET","path":"/api/session/ses_s","query":{},"status":200,"json":{"data":{"id":"ses_s","title":"Plan the release","projectID":"proj_test","cost":0.42,"tokens":{"input":0,"output":0,"reasoning":0,"cache":{"read":0,"write":0}},"time":{"created":2,"updated":2},"location":{"directory":"/tmp/opencode/packages/tui"}}}}, + {"method":"GET","path":"/api/session/ses_s/form","query":{},"status":200,"json":{"data":[]}}, + {"method":"GET","path":"/api/session/ses_s/inbox","query":{},"status":200,"json":{"data":[]}}, + {"method":"GET","path":"/api/session/ses_s/message","query":{"limit":["20"],"order":["desc"]},"status":200,"json":{"data":[{"id":"msg_2","type":"assistant","agent":"build","model":{"providerID":"provider","id":"model"},"content":[{"type":"text","text":"The release plan is ready."},{"type":"tool","id":"call_1","name":"todowrite","state":{"status":"completed","input":{"todos":[{"content":"Write the changelog","status":"completed"},{"content":"Tag the release","status":"in_progress"},{"content":"Announce it","status":"pending"}]},"content":[]},"time":{"created":2,"ran":2,"completed":3}}],"finish":"stop","time":{"created":2,"completed":3},"cost":0.42,"tokens":{"input":20000,"output":500,"reasoning":0,"cache":{"read":4500,"write":0}}},{"id":"msg_1","type":"user","text":"Plan it","time":{"created":1}}],"cursor":{}}}, + {"method":"GET","path":"/api/session/ses_s/permission","query":{},"status":200,"json":{"data":[]}}, + {"method":"GET","path":"/api/shell","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":[]}}, + {"method":"GET","path":"/api/skill","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":[]}}, + {"method":"GET","path":"/api/vcs","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":{"branch":{"current":"main","default":"main"}}}}, + {"method":"POST","path":"/api/rpc/opencode.goal/get","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"body":{"input":{"sessionID":"ses_s"}},"status":200,"json":{"output":null}} + ] + } +} diff --git a/packages/cli-rs/parity/fixtures/E.14/sidebar/docked.json b/packages/cli-rs/parity/fixtures/E.14/sidebar/docked.json new file mode 100644 index 000000000000..ccfd0fd4801c --- /dev/null +++ b/packages/cli-rs/parity/fixtures/E.14/sidebar/docked.json @@ -0,0 +1,36 @@ +{"width":140,"height":34,"styles":["#ffffffff #202020ff 0","#ffffffff #202020ff 1","#808080ff #080808ff 0","#ffffffff #080808ff 0","#f5a742ff #080808ff 0","#f5a742ff #141414ff 0","#ffffffff #141414ff 0","#7699feff #141414ff 0","#808080ff #202020ff 0","#eeeeeeff #080808ff 0","#808080ff #141414ff 0","#ffffffff #141414ff 1","#7699feff #080808ff 0","#9ee77aff #141414ff 0","#ef6c6cff #141414ff 0","#484848ff #080808ff 0","#202020ff #080808ff 0"],"lines":[ +[" Plan the release + ",[[0,3],[1,16],[0,13],[2,3],[3,105]]], +[" ┃ ┃ ",[[3,81],[4,1],[0,55],[5,1],[6,2]]], +[" ┃ ┃ MCP server needs authentication › Open MCP servers ┃ ",[[3,2],[7,1],[6,78],[5,1],[0,2],[1,31],[0,2],[8,18],[0,2],[5,1],[6,2]]], +[" ┃ Plan it ┃ ┃ ",[[3,2],[7,1],[6,78],[5,1],[0,55],[5,1],[6,2]]], +[" ┃ ┃ Connect \"figma\" to use its tools. ┃ ",[[3,2],[7,1],[6,78],[5,1],[0,55],[5,1],[6,2]]], +[" ┃ ┃ ",[[3,81],[4,1],[0,55],[5,1],[6,2]]], +[" The release plan is ready. 13% used ",[[3,5],[9,26],[3,67],[6,2],[10,8],[6,32]]], +[" $0.42 spent ",[[3,98],[6,2],[10,11],[6,29]]], +[" + 1 tool ",[[3,5],[2,1],[3,1],[2,6],[3,85],[6,42]]], +[" ▼ MCP ",[[3,98],[6,4],[11,3],[6,35]]], +[" Build · Model · 2ms • github Connected ",[[3,5],[12,5],[2,14],[3,74],[6,2],[13,1],[6,1],[11,6],[6,20],[10,9],[6,3]]], +[" • linear Error ",[[3,98],[6,2],[14,1],[6,1],[11,6],[6,24],[14,5],[6,3]]], +[" • figma Sign in ",[[3,98],[6,2],[5,1],[6,1],[11,5],[6,23],[10,7],[6,3]]], +[" ",[[3,98],[6,42]]], +[" ▼ Todo ",[[3,98],[6,4],[11,4],[6,34]]], +[" [✓] Write the changelog ",[[3,98],[6,2],[10,23],[6,17]]], +[" [•] Tag the release ",[[3,98],[6,2],[5,19],[6,21]]], +[" [ ] Announce it ",[[3,98],[6,2],[10,15],[6,25]]], +[" ",[[3,98],[6,42]]], +[" ",[[3,98],[6,2],[0,38],[6,2]]], +[" ⬖ Getting started ✕ ",[[3,98],[6,2],[0,4],[1,15],[0,16],[8,1],[0,2],[6,2]]], +[" ",[[3,98],[6,2],[0,38],[6,2]]], +[" OpenCode includes free models so ",[[3,98],[6,2],[0,4],[8,32],[0,2],[6,2]]], +[" you can start immediately. ",[[3,98],[6,2],[0,4],[8,26],[0,8],[6,2]]], +[" ",[[3,98],[6,2],[0,38],[6,2]]], +[" Connect from 75+ providers to ",[[3,98],[6,2],[0,4],[8,30],[0,4],[6,2]]], +[" use other models, including ",[[3,98],[6,2],[0,4],[8,28],[0,6],[6,2]]], +[" ┃ Claude, GPT, Gemini etc ",[[3,2],[15,1],[0,93],[3,2],[6,2],[0,4],[8,23],[0,11],[6,2]]], +[" ┃ ",[[3,2],[15,1],[0,93],[3,2],[6,2],[0,38],[6,2]]], +[" ┃ Connect provider /connect ",[[3,2],[15,1],[0,93],[3,2],[6,2],[0,28],[8,8],[0,2],[6,2]]], +[" ┃ ",[[3,2],[15,1],[0,93],[3,2],[6,2],[0,38],[6,2]]], +[" ╹▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀ ",[[3,2],[15,1],[16,93],[3,2],[6,42]]], +[" /tmp/opencode/packages/tui:main 25.0K (13%) · $0.42 ctrl+p commands /tmp/opencode/packages/tui:main ",[[3,2],[2,31],[3,27],[2,19],[3,9],[2,8],[3,2],[6,2],[10,31],[6,9]]], +[" ",[[3,98],[6,42]]] +]} diff --git a/packages/cli-rs/parity/fixtures/E.14/sidebar/folded.json b/packages/cli-rs/parity/fixtures/E.14/sidebar/folded.json new file mode 100644 index 000000000000..c74b1a0ac926 --- /dev/null +++ b/packages/cli-rs/parity/fixtures/E.14/sidebar/folded.json @@ -0,0 +1,36 @@ +{"width":140,"height":34,"styles":["#ffffffff #202020ff 0","#ffffffff #202020ff 1","#808080ff #080808ff 0","#ffffffff #080808ff 0","#f5a742ff #080808ff 0","#f5a742ff #141414ff 0","#ffffffff #141414ff 0","#7699feff #141414ff 0","#808080ff #202020ff 0","#eeeeeeff #080808ff 0","#808080ff #141414ff 0","#ffffffff #141414ff 1","#7699feff #080808ff 0","#484848ff #080808ff 0","#202020ff #080808ff 0"],"lines":[ +[" Plan the release + ",[[0,3],[1,16],[0,13],[2,3],[3,105]]], +[" ┃ ┃ ",[[3,81],[4,1],[0,55],[5,1],[6,2]]], +[" ┃ ┃ MCP server needs authentication › Open MCP servers ┃ ",[[3,2],[7,1],[6,78],[5,1],[0,2],[1,31],[0,2],[8,18],[0,2],[5,1],[6,2]]], +[" ┃ Plan it ┃ ┃ ",[[3,2],[7,1],[6,78],[5,1],[0,55],[5,1],[6,2]]], +[" ┃ ┃ Connect \"figma\" to use its tools. ┃ ",[[3,2],[7,1],[6,78],[5,1],[0,55],[5,1],[6,2]]], +[" ┃ ┃ ",[[3,81],[4,1],[0,55],[5,1],[6,2]]], +[" The release plan is ready. 13% used ",[[3,5],[9,26],[3,67],[6,2],[10,8],[6,32]]], +[" $0.42 spent ",[[3,98],[6,2],[10,11],[6,29]]], +[" + 1 tool ",[[3,5],[2,1],[3,1],[2,6],[3,85],[6,42]]], +[" ▶ MCP (1 active, 2 errors) ",[[3,98],[6,4],[11,3],[10,21],[6,14]]], +[" Build · Model · 2ms ",[[3,5],[12,5],[2,14],[3,74],[6,42]]], +[" ▼ Todo ",[[3,98],[6,4],[11,4],[6,34]]], +[" [✓] Write the changelog ",[[3,98],[6,2],[10,23],[6,17]]], +[" [•] Tag the release ",[[3,98],[6,2],[5,19],[6,21]]], +[" [ ] Announce it ",[[3,98],[6,2],[10,15],[6,25]]], +[" ",[[3,98],[6,42]]], +[" ",[[3,98],[6,42]]], +[" ",[[3,98],[6,42]]], +[" ",[[3,98],[6,42]]], +[" ",[[3,98],[6,2],[0,38],[6,2]]], +[" ⬖ Getting started ✕ ",[[3,98],[6,2],[0,4],[1,15],[0,16],[8,1],[0,2],[6,2]]], +[" ",[[3,98],[6,2],[0,38],[6,2]]], +[" OpenCode includes free models so ",[[3,98],[6,2],[0,4],[8,32],[0,2],[6,2]]], +[" you can start immediately. ",[[3,98],[6,2],[0,4],[8,26],[0,8],[6,2]]], +[" ",[[3,98],[6,2],[0,38],[6,2]]], +[" Connect from 75+ providers to ",[[3,98],[6,2],[0,4],[8,30],[0,4],[6,2]]], +[" use other models, including ",[[3,98],[6,2],[0,4],[8,28],[0,6],[6,2]]], +[" ┃ Claude, GPT, Gemini etc ",[[3,2],[13,1],[0,93],[3,2],[6,2],[0,4],[8,23],[0,11],[6,2]]], +[" ┃ ",[[3,2],[13,1],[0,93],[3,2],[6,2],[0,38],[6,2]]], +[" ┃ Connect provider /connect ",[[3,2],[13,1],[0,93],[3,2],[6,2],[0,28],[8,8],[0,2],[6,2]]], +[" ┃ ",[[3,2],[13,1],[0,93],[3,2],[6,2],[0,38],[6,2]]], +[" ╹▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀ ",[[3,2],[13,1],[14,93],[3,2],[6,42]]], +[" /tmp/opencode/packages/tui:main 25.0K (13%) · $0.42 ctrl+p commands /tmp/opencode/packages/tui:main ",[[3,2],[2,31],[3,27],[2,19],[3,9],[2,8],[3,2],[6,2],[10,31],[6,9]]], +[" ",[[3,98],[6,42]]] +]} diff --git a/packages/cli-rs/parity/fixtures/E.14/sidebar/hidden.json b/packages/cli-rs/parity/fixtures/E.14/sidebar/hidden.json new file mode 100644 index 000000000000..b99cf3d86a31 --- /dev/null +++ b/packages/cli-rs/parity/fixtures/E.14/sidebar/hidden.json @@ -0,0 +1,36 @@ +{"width":140,"height":34,"styles":["#ffffffff #202020ff 0","#ffffffff #202020ff 1","#808080ff #080808ff 0","#ffffffff #080808ff 0","#f5a742ff #080808ff 0","#7699feff #141414ff 0","#ffffffff #141414ff 0","#f5a742ff #141414ff 0","#808080ff #202020ff 0","#eeeeeeff #080808ff 0","#7699feff #080808ff 0","#484848ff #080808ff 0","#202020ff #080808ff 0"],"lines":[ +[" Plan the release + ",[[0,3],[1,16],[0,13],[2,3],[3,105]]], +[" ┃ ┃ ",[[3,81],[4,1],[0,55],[4,1],[3,2]]], +[" ┃ ┃ MCP server needs authentication › Open MCP servers ┃ ",[[3,2],[5,1],[6,78],[7,1],[0,2],[1,31],[0,2],[8,18],[0,2],[7,1],[3,2]]], +[" ┃ Plan it ┃ ┃ ",[[3,2],[5,1],[6,78],[7,1],[0,55],[7,1],[3,2]]], +[" ┃ ┃ Connect \"figma\" to use its tools. ┃ ",[[3,2],[5,1],[6,78],[7,1],[0,55],[7,1],[3,2]]], +[" ┃ ┃ ",[[3,81],[4,1],[0,55],[4,1],[3,2]]], +[" The release plan is ready. ",[[3,5],[9,26],[3,109]]], +[" ",[[3,140]]], +[" + 1 tool ",[[3,5],[2,1],[3,1],[2,6],[3,127]]], +[" ",[[3,140]]], +[" Build · Model · 2ms ",[[3,5],[10,5],[2,14],[3,116]]], +[" ",[[3,140]]], +[" ",[[3,140]]], +[" ",[[3,140]]], +[" ",[[3,140]]], +[" ",[[3,140]]], +[" ",[[3,140]]], +[" ",[[3,140]]], +[" ",[[3,140]]], +[" ",[[3,140]]], +[" ",[[3,140]]], +[" ",[[3,140]]], +[" ",[[3,140]]], +[" ",[[3,140]]], +[" ",[[3,140]]], +[" ",[[3,140]]], +[" ",[[3,140]]], +[" ┃ ",[[3,2],[11,1],[0,135],[3,2]]], +[" ┃ ",[[3,2],[11,1],[0,135],[3,2]]], +[" ┃ ",[[3,2],[11,1],[0,135],[3,2]]], +[" ┃ ",[[3,2],[11,1],[0,135],[3,2]]], +[" ╹▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀ ",[[3,2],[11,1],[12,135],[3,2]]], +[" /tmp/opencode/packages/tui:main 25.0K (13%) · $0.42 ctrl+p commands ",[[3,2],[2,31],[3,69],[2,19],[3,9],[2,8],[3,2]]], +[" ",[[3,140]]] +]} diff --git a/packages/cli-rs/parity/fixtures/E.14/sidebar/shown.json b/packages/cli-rs/parity/fixtures/E.14/sidebar/shown.json new file mode 100644 index 000000000000..c74b1a0ac926 --- /dev/null +++ b/packages/cli-rs/parity/fixtures/E.14/sidebar/shown.json @@ -0,0 +1,36 @@ +{"width":140,"height":34,"styles":["#ffffffff #202020ff 0","#ffffffff #202020ff 1","#808080ff #080808ff 0","#ffffffff #080808ff 0","#f5a742ff #080808ff 0","#f5a742ff #141414ff 0","#ffffffff #141414ff 0","#7699feff #141414ff 0","#808080ff #202020ff 0","#eeeeeeff #080808ff 0","#808080ff #141414ff 0","#ffffffff #141414ff 1","#7699feff #080808ff 0","#484848ff #080808ff 0","#202020ff #080808ff 0"],"lines":[ +[" Plan the release + ",[[0,3],[1,16],[0,13],[2,3],[3,105]]], +[" ┃ ┃ ",[[3,81],[4,1],[0,55],[5,1],[6,2]]], +[" ┃ ┃ MCP server needs authentication › Open MCP servers ┃ ",[[3,2],[7,1],[6,78],[5,1],[0,2],[1,31],[0,2],[8,18],[0,2],[5,1],[6,2]]], +[" ┃ Plan it ┃ ┃ ",[[3,2],[7,1],[6,78],[5,1],[0,55],[5,1],[6,2]]], +[" ┃ ┃ Connect \"figma\" to use its tools. ┃ ",[[3,2],[7,1],[6,78],[5,1],[0,55],[5,1],[6,2]]], +[" ┃ ┃ ",[[3,81],[4,1],[0,55],[5,1],[6,2]]], +[" The release plan is ready. 13% used ",[[3,5],[9,26],[3,67],[6,2],[10,8],[6,32]]], +[" $0.42 spent ",[[3,98],[6,2],[10,11],[6,29]]], +[" + 1 tool ",[[3,5],[2,1],[3,1],[2,6],[3,85],[6,42]]], +[" ▶ MCP (1 active, 2 errors) ",[[3,98],[6,4],[11,3],[10,21],[6,14]]], +[" Build · Model · 2ms ",[[3,5],[12,5],[2,14],[3,74],[6,42]]], +[" ▼ Todo ",[[3,98],[6,4],[11,4],[6,34]]], +[" [✓] Write the changelog ",[[3,98],[6,2],[10,23],[6,17]]], +[" [•] Tag the release ",[[3,98],[6,2],[5,19],[6,21]]], +[" [ ] Announce it ",[[3,98],[6,2],[10,15],[6,25]]], +[" ",[[3,98],[6,42]]], +[" ",[[3,98],[6,42]]], +[" ",[[3,98],[6,42]]], +[" ",[[3,98],[6,42]]], +[" ",[[3,98],[6,2],[0,38],[6,2]]], +[" ⬖ Getting started ✕ ",[[3,98],[6,2],[0,4],[1,15],[0,16],[8,1],[0,2],[6,2]]], +[" ",[[3,98],[6,2],[0,38],[6,2]]], +[" OpenCode includes free models so ",[[3,98],[6,2],[0,4],[8,32],[0,2],[6,2]]], +[" you can start immediately. ",[[3,98],[6,2],[0,4],[8,26],[0,8],[6,2]]], +[" ",[[3,98],[6,2],[0,38],[6,2]]], +[" Connect from 75+ providers to ",[[3,98],[6,2],[0,4],[8,30],[0,4],[6,2]]], +[" use other models, including ",[[3,98],[6,2],[0,4],[8,28],[0,6],[6,2]]], +[" ┃ Claude, GPT, Gemini etc ",[[3,2],[13,1],[0,93],[3,2],[6,2],[0,4],[8,23],[0,11],[6,2]]], +[" ┃ ",[[3,2],[13,1],[0,93],[3,2],[6,2],[0,38],[6,2]]], +[" ┃ Connect provider /connect ",[[3,2],[13,1],[0,93],[3,2],[6,2],[0,28],[8,8],[0,2],[6,2]]], +[" ┃ ",[[3,2],[13,1],[0,93],[3,2],[6,2],[0,38],[6,2]]], +[" ╹▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀ ",[[3,2],[13,1],[14,93],[3,2],[6,42]]], +[" /tmp/opencode/packages/tui:main 25.0K (13%) · $0.42 ctrl+p commands /tmp/opencode/packages/tui:main ",[[3,2],[2,31],[3,27],[2,19],[3,9],[2,8],[3,2],[6,2],[10,31],[6,9]]], +[" ",[[3,98],[6,42]]] +]} diff --git a/packages/cli-rs/parity/fixtures/E.14/stats.app.json b/packages/cli-rs/parity/fixtures/E.14/stats.app.json new file mode 100644 index 000000000000..4cf80396e51a --- /dev/null +++ b/packages/cli-rs/parity/fixtures/E.14/stats.app.json @@ -0,0 +1,47 @@ +{ + "scenario": "E.14/stats", + "width": 100, + "height": 30, + "directory": "/tmp/opencode/packages/tui", + "config": { + "experimental": {"new-designs":true}, + "animations": false, + "theme": {"name":"opencode"} + }, + "args": {}, + "routes": [ + {"path":"/api/experimental/session/stats","json":{"data":{"range":{"from":1767268800000,"to":1769601600000},"sessions":42,"subagents":3,"prompts":120,"steps":300,"tokens":{"input":1000000,"output":200000,"reasoning":34000,"cache":{"read":0,"write":0}},"cost":12.5,"tools":{"mode":"none"},"activeDays":9,"streak":4,"activity":[{"date":"2026-01-02","steps":3},{"date":"2026-01-05","steps":12},{"date":"2026-01-06","steps":7},{"date":"2026-01-12","steps":30},{"date":"2026-01-20","steps":1}],"models":[]}}} + ], + "steps": [ + {"checkpoint":"home","until":"/tmp/opencode/packages/tui:main","masks":[{"x":16,"y":16,"width":84,"height":1,"reason":"the placeholder example: random in TS and Rust"}],"fixture":"E.14/stats/home"}, + {"type":"/stats"}, + {"keys":["enter"]}, + {"checkpoint":"poster","until":"opencode / stats","fixture":"E.14/stats/poster"} + ], + "requests": { + "writes": [], + "reads": [ + {"method":"GET","path":"/api/agent","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":[]}}, + {"method":"GET","path":"/api/command","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":[]}}, + {"method":"GET","path":"/api/config","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":[]}, + {"method":"GET","path":"/api/experimental/migration/v1","query":{},"status":200,"json":{"status":"completed"}}, + {"method":"GET","path":"/api/experimental/session/stats","query":{"from":["1767225600000"],"timezone":["UTC"],"tools":["none"]},"status":200,"json":{"data":{"range":{"from":1767268800000,"to":1769601600000},"sessions":42,"subagents":3,"prompts":120,"steps":300,"tokens":{"input":1000000,"output":200000,"reasoning":34000,"cache":{"read":0,"write":0}},"cost":12.5,"tools":{"mode":"none"},"activeDays":9,"streak":4,"activity":[{"date":"2026-01-02","steps":3},{"date":"2026-01-05","steps":12},{"date":"2026-01-06","steps":7},{"date":"2026-01-12","steps":30},{"date":"2026-01-20","steps":1}],"models":[]}}}, + {"method":"GET","path":"/api/form","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode"}},"data":[]}}, + {"method":"GET","path":"/api/fs/list","query":{"location[directory]":["<cwd>"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":[]}}, + {"method":"GET","path":"/api/info","query":{},"status":200,"json":{"version":"test","pid":0,"urls":[],"paths":{"tmp":"/tmp"},"capabilities":{"persistentPty":true}}}, + {"method":"GET","path":"/api/integration","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":[]}}, + {"method":"GET","path":"/api/location","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}}}, + {"method":"GET","path":"/api/mcp","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":[]}}, + {"method":"GET","path":"/api/mcp/resource","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":{"resources":[],"templates":[]}}}, + {"method":"GET","path":"/api/model","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":[]}}, + {"method":"GET","path":"/api/plugin","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":[]}}, + {"method":"GET","path":"/api/project","query":{},"status":200,"json":[]}, + {"method":"GET","path":"/api/provider","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":[]}}, + {"method":"GET","path":"/api/reference","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode/packages/tui","canonical":"/tmp/opencode/packages/tui"}},"data":[]}}, + {"method":"GET","path":"/api/session/active","query":{},"status":200,"json":{"data":{}}}, + {"method":"GET","path":"/api/shell","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":[]}}, + {"method":"GET","path":"/api/skill","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":[]}}, + {"method":"GET","path":"/api/vcs","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":{"branch":{"current":"main","default":"main"}}}} + ] + } +} diff --git a/packages/cli-rs/parity/fixtures/E.14/stats/home.json b/packages/cli-rs/parity/fixtures/E.14/stats/home.json new file mode 100644 index 000000000000..fde2210b2f02 --- /dev/null +++ b/packages/cli-rs/parity/fixtures/E.14/stats/home.json @@ -0,0 +1,32 @@ +{"width":100,"height":30,"styles":["#ffffffff #080808ff 0","#808080ff #080808ff 0","#ffffffff #080808ff 1","#808080ff #262626ff 0","#ffffffff #464646ff 1","#262626ff #080808ff 0","#484848ff #080808ff 0","#ffffffff #202020ff 0","#00000000 #00000000 0","#202020ff #080808ff 0"],"lines":[ +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ▄ ",[[0,31],[1,19],[0,1],[2,19],[0,30]]], +[" █▀▀█ █▀▀█ █▀▀█ █▀▀▄ █▀▀▀ █▀▀█ █▀▀█ █▀▀█ ",[[0,31],[1,19],[0,1],[2,19],[0,30]]], +[" █ █ █ █ █▀▀▀ █ █ █ █ █ █ █ █▀▀▀ ",[[0,31],[1,1],[3,2],[1,3],[3,2],[1,3],[3,3],[1,2],[3,2],[1,1],[0,1],[2,1],[4,3],[2,2],[4,2],[2,3],[4,2],[2,3],[4,3],[0,30]]], +[" ▀▀▀▀ █▀▀▀ ▀▀▀▀ ▀▀▀▀ ▀▀▀▀ ▀▀▀▀ ▀▀▀▀ ▀▀▀▀ ",[[0,31],[1,16],[5,2],[1,1],[0,1],[2,19],[0,30]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ┃ ",[[0,13],[6,1],[7,74],[0,12]]], +[" ┃ ",[[0,13],[6,1],[7,2],[8,84]]], +[" ┃ ",[[0,13],[6,1],[7,74],[0,12]]], +[" ┃ ",[[0,13],[6,1],[7,74],[0,12]]], +[" ╹▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀ ",[[0,13],[6,1],[9,74],[0,12]]], +[" /tmp/opencode/packages/tui:main shift+tab agents ctrl+p commands ",[[0,13],[1,31],[0,21],[1,6],[0,9],[1,8],[0,12]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" test ",[[0,94],[1,4],[0,2]]], +[" ",[[0,100]]] +]} diff --git a/packages/cli-rs/parity/fixtures/E.14/stats/poster.json b/packages/cli-rs/parity/fixtures/E.14/stats/poster.json new file mode 100644 index 000000000000..5b748dc0e5a0 --- /dev/null +++ b/packages/cli-rs/parity/fixtures/E.14/stats/poster.json @@ -0,0 +1,32 @@ +{"width":100,"height":30,"styles":["#ffffffff #080808ff 0","#ffffffff #080808ff 1","#808080ff #080808ff 0","#93a2b7ff #080808ff 0","#707b8bff #080808ff 0","#32363dff #080808ff 0","#4e5560ff #080808ff 0"],"lines":[ +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" opencode / stats Jan 2026 ",[[0,4],[1,16],[0,68],[2,8],[0,4]]], +[" ",[[0,100]]], +[" ██ ██████ ██ ██ ",[[0,100]]], +[" ████ ██ ████ ████ ",[[0,100]]], +[" ██ ██████ ██ ██ ██ ",[[0,100]]], +[" ██ ██ ██ ██ ",[[0,100]]], +[" ██████ ██ ██████ ██ ██ ",[[0,100]]], +[" ",[[0,100]]], +[" TOKENS ",[[0,47],[2,6],[0,47]]], +[" ",[[0,100]]], +[" Jan ",[[0,43],[2,14],[0,43]]], +[" M ■ ■ · · ",[[0,43],[2,6],[3,4],[2,4],[0,43]]], +[" T ■ · ■ · ",[[0,43],[2,6],[4,2],[2,2],[5,2],[2,2],[0,43]]], +[" W · · · · ",[[0,43],[2,14],[0,43]]], +[" T · · · · ",[[0,43],[2,14],[0,43]]], +[" F ■ · · · ",[[0,43],[2,4],[6,2],[2,8],[0,43]]], +[" S · · · · ",[[0,43],[2,14],[0,43]]], +[" S · · · · ",[[0,43],[2,14],[0,43]]], +[" ",[[0,100]]], +[" 4 days 9 42 ",[[0,17],[1,6],[0,28],[1,1],[0,29],[1,2],[0,17]]], +[" best streak active days sessions ",[[0,14],[2,11],[0,21],[2,11],[0,21],[2,8],[0,14]]], +[" ",[[0,100]]], +[" opencode.ai ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,100]]] +]} diff --git a/packages/cli-rs/parity/fixtures/E.15a/committed.app.json b/packages/cli-rs/parity/fixtures/E.15a/committed.app.json new file mode 100644 index 000000000000..cbc4937e47f3 --- /dev/null +++ b/packages/cli-rs/parity/fixtures/E.15a/committed.app.json @@ -0,0 +1,48 @@ +{ + "scenario": "E.15a/committed", + "width": 100, + "height": 30, + "directory": "/tmp/opencode/packages/tui", + "config": { + "experimental": {"new-designs":true}, + "diffs": {"source":"committed"}, + "animations": false, + "theme": {"name":"opencode"} + }, + "args": {}, + "routes": [ + {"path":"/api/vcs/base","json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":null}} + ], + "steps": [ + {"checkpoint":"home","until":"Ask anything","masks":[{"x":16,"y":16,"width":84,"height":1,"reason":"the placeholder example: random in TS and Rust"}],"fixture":"E.15a/committed/home"}, + {"type":"/diff"}, + {"keys":["enter"]}, + {"checkpoint":"unavailable","until":"Committed comparison unavailable","fixture":"E.15a/committed/unavailable"} + ], + "requests": { + "writes": [], + "reads": [ + {"method":"GET","path":"/api/agent","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":[]}}, + {"method":"GET","path":"/api/command","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":[]}}, + {"method":"GET","path":"/api/config","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":[]}, + {"method":"GET","path":"/api/experimental/migration/v1","query":{},"status":200,"json":{"status":"completed"}}, + {"method":"GET","path":"/api/form","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode"}},"data":[]}}, + {"method":"GET","path":"/api/fs/list","query":{"location[directory]":["<cwd>"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":[]}}, + {"method":"GET","path":"/api/info","query":{},"status":200,"json":{"version":"test","pid":0,"urls":[],"paths":{"tmp":"/tmp"},"capabilities":{"persistentPty":true}}}, + {"method":"GET","path":"/api/integration","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":[]}}, + {"method":"GET","path":"/api/location","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}}}, + {"method":"GET","path":"/api/mcp","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":[]}}, + {"method":"GET","path":"/api/mcp/resource","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":{"resources":[],"templates":[]}}}, + {"method":"GET","path":"/api/model","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":[]}}, + {"method":"GET","path":"/api/plugin","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":[]}}, + {"method":"GET","path":"/api/project","query":{},"status":200,"json":[]}, + {"method":"GET","path":"/api/provider","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":[]}}, + {"method":"GET","path":"/api/reference","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode/packages/tui","canonical":"/tmp/opencode/packages/tui"}},"data":[]}}, + {"method":"GET","path":"/api/session/active","query":{},"status":200,"json":{"data":{}}}, + {"method":"GET","path":"/api/shell","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":[]}}, + {"method":"GET","path":"/api/skill","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":[]}}, + {"method":"GET","path":"/api/vcs","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":{"branch":{"current":"main","default":"main"}}}}, + {"method":"GET","path":"/api/vcs/base","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":null}} + ] + } +} diff --git a/packages/cli-rs/parity/fixtures/E.15a/committed/home.json b/packages/cli-rs/parity/fixtures/E.15a/committed/home.json new file mode 100644 index 000000000000..fde2210b2f02 --- /dev/null +++ b/packages/cli-rs/parity/fixtures/E.15a/committed/home.json @@ -0,0 +1,32 @@ +{"width":100,"height":30,"styles":["#ffffffff #080808ff 0","#808080ff #080808ff 0","#ffffffff #080808ff 1","#808080ff #262626ff 0","#ffffffff #464646ff 1","#262626ff #080808ff 0","#484848ff #080808ff 0","#ffffffff #202020ff 0","#00000000 #00000000 0","#202020ff #080808ff 0"],"lines":[ +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ▄ ",[[0,31],[1,19],[0,1],[2,19],[0,30]]], +[" █▀▀█ █▀▀█ █▀▀█ █▀▀▄ █▀▀▀ █▀▀█ █▀▀█ █▀▀█ ",[[0,31],[1,19],[0,1],[2,19],[0,30]]], +[" █ █ █ █ █▀▀▀ █ █ █ █ █ █ █ █▀▀▀ ",[[0,31],[1,1],[3,2],[1,3],[3,2],[1,3],[3,3],[1,2],[3,2],[1,1],[0,1],[2,1],[4,3],[2,2],[4,2],[2,3],[4,2],[2,3],[4,3],[0,30]]], +[" ▀▀▀▀ █▀▀▀ ▀▀▀▀ ▀▀▀▀ ▀▀▀▀ ▀▀▀▀ ▀▀▀▀ ▀▀▀▀ ",[[0,31],[1,16],[5,2],[1,1],[0,1],[2,19],[0,30]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ┃ ",[[0,13],[6,1],[7,74],[0,12]]], +[" ┃ ",[[0,13],[6,1],[7,2],[8,84]]], +[" ┃ ",[[0,13],[6,1],[7,74],[0,12]]], +[" ┃ ",[[0,13],[6,1],[7,74],[0,12]]], +[" ╹▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀ ",[[0,13],[6,1],[9,74],[0,12]]], +[" /tmp/opencode/packages/tui:main shift+tab agents ctrl+p commands ",[[0,13],[1,31],[0,21],[1,6],[0,9],[1,8],[0,12]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" test ",[[0,94],[1,4],[0,2]]], +[" ",[[0,100]]] +]} diff --git a/packages/cli-rs/parity/fixtures/E.15a/committed/unavailable.json b/packages/cli-rs/parity/fixtures/E.15a/committed/unavailable.json new file mode 100644 index 000000000000..152fb2db9aa3 --- /dev/null +++ b/packages/cli-rs/parity/fixtures/E.15a/committed/unavailable.json @@ -0,0 +1,32 @@ +{"width":100,"height":30,"styles":["#ffffffff #080808ff 0","#808080ff #080808ff 1","#808080ff #080808ff 0"],"lines":[ +[" Committed · Base not reported 0/0 ?",[[0,2],[1,9],[2,20],[0,64],[2,3],[0,2]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" Committed comparison unavailable without base metadata. Choose a base branch from Diff source. ",[[0,2],[2,94],[0,4]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,100]]] +]} diff --git a/packages/cli-rs/parity/fixtures/E.15a/failed.app.json b/packages/cli-rs/parity/fixtures/E.15a/failed.app.json new file mode 100644 index 000000000000..f37aa2799b96 --- /dev/null +++ b/packages/cli-rs/parity/fixtures/E.15a/failed.app.json @@ -0,0 +1,64 @@ +{ + "scenario": "E.15a/failed", + "width": 80, + "height": 24, + "directory": "/tmp/opencode/packages/tui", + "config": { + "experimental": {"new-designs":true}, + "diffs": {"source":"working"}, + "animations": false, + "theme": {"name":"opencode"} + }, + "args": { + "sessionID": "ses_f" + }, + "routes": [ + {"path":"/api/session/ses_f","json":{"data":{"id":"ses_f","title":"Check the diff","projectID":"proj_test","cost":0,"tokens":{"input":0,"output":0,"reasoning":0,"cache":{"read":0,"write":0}},"time":{"created":2,"updated":2},"location":{"directory":"/tmp/opencode/packages/tui"}}}}, + {"path":"/api/session/ses_f/message","json":{"data":[{"id":"msg_2","type":"assistant","agent":"build","model":{"providerID":"provider","id":"model"},"content":[{"type":"text","text":"Nothing changed yet."}],"finish":"stop","time":{"created":2,"completed":3}},{"id":"msg_1","type":"user","text":"Any changes?","time":{"created":1}}],"cursor":{}}}, + {"path":"/api/session/ses_f/inbox","json":{"data":[]}}, + {"path":"/api/vcs/diff","status":500,"json":{"_tag":"UnknownError","message":"git failed"}} + ], + "steps": [ + {"checkpoint":"session","until":"Nothing changed yet.","fixture":"E.15a/failed/session"}, + {"type":"/diff"}, + {"keys":["enter"]}, + {"checkpoint":"failed","until":"Could not load diff","fixture":"E.15a/failed/failed"}, + {"keys":["escape"]}, + {"checkpoint":"closed","until":"Nothing changed yet.","fixture":"E.15a/failed/closed"} + ], + "requests": { + "writes": [], + "reads": [ + {"method":"GET","path":"/api/agent","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":[]}}, + {"method":"GET","path":"/api/command","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":[]}}, + {"method":"GET","path":"/api/config","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":[]}, + {"method":"GET","path":"/api/experimental/job","query":{"descendants":["true"],"sessionID":["ses_f"],"status":["running"]},"status":200,"json":{"data":[]}}, + {"method":"GET","path":"/api/experimental/migration/v1","query":{},"status":200,"json":{"status":"completed"}}, + {"method":"GET","path":"/api/experimental/session/ses_f/terminal","query":{},"status":200,"json":{"data":[]}}, + {"method":"GET","path":"/api/form","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode"}},"data":[]}}, + {"method":"GET","path":"/api/fs/list","query":{"location[directory]":["<cwd>"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":[]}}, + {"method":"GET","path":"/api/info","query":{},"status":200,"json":{"version":"test","pid":0,"urls":[],"paths":{"tmp":"/tmp"},"capabilities":{"persistentPty":true}}}, + {"method":"GET","path":"/api/integration","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":[]}}, + {"method":"GET","path":"/api/location","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}}}, + {"method":"GET","path":"/api/mcp","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":[]}}, + {"method":"GET","path":"/api/mcp/resource","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":{"resources":[],"templates":[]}}}, + {"method":"GET","path":"/api/model","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":[]}}, + {"method":"GET","path":"/api/plugin","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":[]}}, + {"method":"GET","path":"/api/project","query":{},"status":200,"json":[]}, + {"method":"GET","path":"/api/provider","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":[]}}, + {"method":"GET","path":"/api/reference","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode/packages/tui","canonical":"/tmp/opencode/packages/tui"}},"data":[]}}, + {"method":"GET","path":"/api/session","query":{"limit":["200"],"order":["desc"],"parentID":["ses_f"]},"status":200,"json":{"data":[],"cursor":{}}}, + {"method":"GET","path":"/api/session/active","query":{},"status":200,"json":{"data":{}}}, + {"method":"GET","path":"/api/session/ses_f","query":{},"status":200,"json":{"data":{"id":"ses_f","title":"Check the diff","projectID":"proj_test","cost":0,"tokens":{"input":0,"output":0,"reasoning":0,"cache":{"read":0,"write":0}},"time":{"created":2,"updated":2},"location":{"directory":"/tmp/opencode/packages/tui"}}}}, + {"method":"GET","path":"/api/session/ses_f/form","query":{},"status":200,"json":{"data":[]}}, + {"method":"GET","path":"/api/session/ses_f/inbox","query":{},"status":200,"json":{"data":[]}}, + {"method":"GET","path":"/api/session/ses_f/message","query":{"limit":["20"],"order":["desc"]},"status":200,"json":{"data":[{"id":"msg_2","type":"assistant","agent":"build","model":{"providerID":"provider","id":"model"},"content":[{"type":"text","text":"Nothing changed yet."}],"finish":"stop","time":{"created":2,"completed":3}},{"id":"msg_1","type":"user","text":"Any changes?","time":{"created":1}}],"cursor":{}}}, + {"method":"GET","path":"/api/session/ses_f/permission","query":{},"status":200,"json":{"data":[]}}, + {"method":"GET","path":"/api/shell","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":[]}}, + {"method":"GET","path":"/api/skill","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":[]}}, + {"method":"GET","path":"/api/vcs","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":{"branch":{"current":"main","default":"main"}}}}, + {"method":"GET","path":"/api/vcs/diff","query":{"context":["12"],"location[directory]":["/tmp/opencode/packages/tui"],"mode":["working"]},"status":500,"json":{"_tag":"UnknownError","message":"git failed"}}, + {"method":"POST","path":"/api/rpc/opencode.goal/get","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"body":{"input":{"sessionID":"ses_f"}},"status":200,"json":{"output":null}} + ] + } +} diff --git a/packages/cli-rs/parity/fixtures/E.15a/failed/closed.json b/packages/cli-rs/parity/fixtures/E.15a/failed/closed.json new file mode 100644 index 000000000000..a9be9a7b3ff9 --- /dev/null +++ b/packages/cli-rs/parity/fixtures/E.15a/failed/closed.json @@ -0,0 +1,26 @@ +{"width":80,"height":24,"styles":["#ffffffff #202020ff 0","#ffffffff #202020ff 1","#808080ff #080808ff 0","#ffffffff #080808ff 0","#7699feff #141414ff 0","#ffffffff #141414ff 0","#eeeeeeff #080808ff 0","#7699feff #080808ff 0","#484848ff #080808ff 0","#202020ff #080808ff 0"],"lines":[ +[" Check the diff + ",[[0,3],[1,14],[0,15],[2,3],[3,45]]], +[" ",[[3,80]]], +[" ┃ ",[[3,2],[4,1],[5,75],[3,2]]], +[" ┃ Any changes? ",[[3,2],[4,1],[5,75],[3,2]]], +[" ┃ ",[[3,2],[4,1],[5,75],[3,2]]], +[" ",[[3,80]]], +[" Nothing changed yet. ",[[3,5],[6,20],[3,55]]], +[" ",[[3,80]]], +[" Build · provider/model · 2ms ",[[3,5],[7,5],[2,23],[3,47]]], +[" ",[[3,80]]], +[" ",[[3,80]]], +[" ",[[3,80]]], +[" ",[[3,80]]], +[" ",[[3,80]]], +[" ",[[3,80]]], +[" ",[[3,80]]], +[" ",[[3,80]]], +[" ┃ ",[[3,2],[8,1],[0,75],[3,2]]], +[" ┃ ",[[3,2],[8,1],[0,75],[3,2]]], +[" ┃ ",[[3,2],[8,1],[0,75],[3,2]]], +[" ┃ ",[[3,2],[8,1],[0,75],[3,2]]], +[" ╹▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀ ",[[3,2],[8,1],[9,75],[3,2]]], +[" /tmp/opencode/packages/tui:main shift+tab agents ctrl+p commands ",[[3,2],[2,31],[3,22],[2,6],[3,9],[2,8],[3,2]]], +[" ",[[3,80]]] +]} diff --git a/packages/cli-rs/parity/fixtures/E.15a/failed/failed.json b/packages/cli-rs/parity/fixtures/E.15a/failed/failed.json new file mode 100644 index 000000000000..b3f0e3dfe058 --- /dev/null +++ b/packages/cli-rs/parity/fixtures/E.15a/failed/failed.json @@ -0,0 +1,26 @@ +{"width":80,"height":24,"styles":["#ffffffff #080808ff 0","#808080ff #080808ff 1","#808080ff #080808ff 0","#ef6c6cff #080808ff 0","#23344bff #080808ff 0"],"lines":[ +[" Uncommitted · vs HEAD 0/0 ",[[0,2],[1,11],[2,10],[0,53],[2,3],[0,1]]], +[" ",[[0,80]]], +[" Could not load diff. Reopen the diff viewer to try again. ",[[0,2],[3,57],[0,21]]], +[" ",[[0,80]]], +[" ",[[0,80]]], +[" ",[[0,80]]], +[" ",[[0,80]]], +[" ",[[0,80]]], +[" ",[[0,80]]], +[" ",[[0,80]]], +[" ",[[0,80]]], +[" ",[[0,80]]], +[" ",[[0,80]]], +[" ",[[0,80]]], +[" ",[[0,80]]], +[" ",[[0,80]]], +[" ",[[0,80]]], +[" ",[[0,80]]], +[" ",[[0,80]]], +[" ",[[0,80]]], +[" ",[[0,80]]], +[" ",[[0,80]]], +[" ",[[0,80]]], +[" escape close ? see all ",[[0,2],[4,6],[2,6],[0,57],[2,8],[0,1]]] +]} diff --git a/packages/cli-rs/parity/fixtures/E.15a/failed/session.json b/packages/cli-rs/parity/fixtures/E.15a/failed/session.json new file mode 100644 index 000000000000..a9be9a7b3ff9 --- /dev/null +++ b/packages/cli-rs/parity/fixtures/E.15a/failed/session.json @@ -0,0 +1,26 @@ +{"width":80,"height":24,"styles":["#ffffffff #202020ff 0","#ffffffff #202020ff 1","#808080ff #080808ff 0","#ffffffff #080808ff 0","#7699feff #141414ff 0","#ffffffff #141414ff 0","#eeeeeeff #080808ff 0","#7699feff #080808ff 0","#484848ff #080808ff 0","#202020ff #080808ff 0"],"lines":[ +[" Check the diff + ",[[0,3],[1,14],[0,15],[2,3],[3,45]]], +[" ",[[3,80]]], +[" ┃ ",[[3,2],[4,1],[5,75],[3,2]]], +[" ┃ Any changes? ",[[3,2],[4,1],[5,75],[3,2]]], +[" ┃ ",[[3,2],[4,1],[5,75],[3,2]]], +[" ",[[3,80]]], +[" Nothing changed yet. ",[[3,5],[6,20],[3,55]]], +[" ",[[3,80]]], +[" Build · provider/model · 2ms ",[[3,5],[7,5],[2,23],[3,47]]], +[" ",[[3,80]]], +[" ",[[3,80]]], +[" ",[[3,80]]], +[" ",[[3,80]]], +[" ",[[3,80]]], +[" ",[[3,80]]], +[" ",[[3,80]]], +[" ",[[3,80]]], +[" ┃ ",[[3,2],[8,1],[0,75],[3,2]]], +[" ┃ ",[[3,2],[8,1],[0,75],[3,2]]], +[" ┃ ",[[3,2],[8,1],[0,75],[3,2]]], +[" ┃ ",[[3,2],[8,1],[0,75],[3,2]]], +[" ╹▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀ ",[[3,2],[8,1],[9,75],[3,2]]], +[" /tmp/opencode/packages/tui:main shift+tab agents ctrl+p commands ",[[3,2],[2,31],[3,22],[2,6],[3,9],[2,8],[3,2]]], +[" ",[[3,80]]] +]} diff --git a/packages/cli-rs/parity/fixtures/E.15a/image.app.json b/packages/cli-rs/parity/fixtures/E.15a/image.app.json new file mode 100644 index 000000000000..d2c3db3f496e --- /dev/null +++ b/packages/cli-rs/parity/fixtures/E.15a/image.app.json @@ -0,0 +1,55 @@ +{ + "scenario": "E.15a/image", + "width": 100, + "height": 30, + "directory": "/tmp/opencode/packages/tui", + "config": { + "experimental": {"new-designs":true}, + "animations": false, + "theme": {"name":"opencode"} + }, + "args": {}, + "routes": [ + {"path":"/api/vcs/base","json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":{"name":"main","ref":"main","source":"default"}}}, + {"path":"/api/vcs/diff","json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":[{"file":"assets/logo.png","patch":"","additions":0,"deletions":0,"status":"added"}]}}, + {"path":"/api/fs/read/assets/logo.png","base64":"iVBORw0KGgoAAAANSUhEUgAAAAgAAAAECAIAAAA8r+mnAAAAFUlEQVR42mO4Y2MDRzZRd+CIgXoSAKBcLGFZ7ECVAAAAAElFTkSuQmCC","headers":{"content-type":"image/png"}} + ], + "steps": [ + {"checkpoint":"home","until":"Ask anything","masks":[{"x":14,"y":16,"width":86,"height":1,"reason":"the placeholder example: random in TS and Rust"}],"fixture":"E.15a/image/home"}, + {"type":"/diff"}, + {"keys":["enter"]}, + {"checkpoint":"open","until":"Click to enlarge","fixture":"E.15a/image/open"}, + {"click":[85,13]}, + {"checkpoint":"preview","until":"Image 1 of 1","fixture":"E.15a/image/preview"}, + {"keys":["escape"]}, + {"checkpoint":"closed","until":"Click to enlarge","fixture":"E.15a/image/closed"} + ], + "requests": { + "writes": [], + "reads": [ + {"method":"GET","path":"/api/agent","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":[]}}, + {"method":"GET","path":"/api/command","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":[]}}, + {"method":"GET","path":"/api/config","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":[]}, + {"method":"GET","path":"/api/experimental/migration/v1","query":{},"status":200,"json":{"status":"completed"}}, + {"method":"GET","path":"/api/form","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode"}},"data":[]}}, + {"method":"GET","path":"/api/fs/list","query":{"location[directory]":["<cwd>"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":[]}}, + {"method":"GET","path":"/api/fs/read/assets/logo.png","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"text":"�PNG\r\n\u001a\n\u0000\u0000\u0000\rIHDR\u0000\u0000\u0000\b\u0000\u0000\u0000\u0004\b\u0002\u0000\u0000\u0000<��\u0000\u0000\u0000\u0015IDATx�c�cc\u0003G6Qw���z\u0012\u0000�\\,aY�@�\u0000\u0000\u0000\u0000IEND�B`�","contentType":"image/png"}, + {"method":"GET","path":"/api/info","query":{},"status":200,"json":{"version":"test","pid":0,"urls":[],"paths":{"tmp":"/tmp"},"capabilities":{"persistentPty":true}}}, + {"method":"GET","path":"/api/integration","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":[]}}, + {"method":"GET","path":"/api/location","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}}}, + {"method":"GET","path":"/api/mcp","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":[]}}, + {"method":"GET","path":"/api/mcp/resource","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":{"resources":[],"templates":[]}}}, + {"method":"GET","path":"/api/model","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":[]}}, + {"method":"GET","path":"/api/plugin","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":[]}}, + {"method":"GET","path":"/api/project","query":{},"status":200,"json":[]}, + {"method":"GET","path":"/api/provider","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":[]}}, + {"method":"GET","path":"/api/reference","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode/packages/tui","canonical":"/tmp/opencode/packages/tui"}},"data":[]}}, + {"method":"GET","path":"/api/session/active","query":{},"status":200,"json":{"data":{}}}, + {"method":"GET","path":"/api/shell","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":[]}}, + {"method":"GET","path":"/api/skill","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":[]}}, + {"method":"GET","path":"/api/vcs","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":{"branch":{"current":"main","default":"main"}}}}, + {"method":"GET","path":"/api/vcs/base","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":{"name":"main","ref":"main","source":"default"}}}, + {"method":"GET","path":"/api/vcs/diff","query":{"base":["main"],"context":["12"],"location[directory]":["/tmp/opencode/packages/tui"],"mode":["branch"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":[{"file":"assets/logo.png","patch":"","additions":0,"deletions":0,"status":"added"}]}} + ] + } +} diff --git a/packages/cli-rs/parity/fixtures/E.15a/image/closed.json b/packages/cli-rs/parity/fixtures/E.15a/image/closed.json new file mode 100644 index 000000000000..357080edfca2 --- /dev/null +++ b/packages/cli-rs/parity/fixtures/E.15a/image/closed.json @@ -0,0 +1,32 @@ +{"width":100,"height":30,"styles":["#ffffffff #141414ff 0","#ffffffff #080808ff 0","#808080ff #141414ff 1","#808080ff #141414ff 0","#4f4f4fff #141414ff 0","#343434ff #141414ff 0","#4fd6beff #141414ff 0","#dc3c3cff #dc3c3cff 0","#3c5adcff #3c5adcff 0"],"lines":[ +[" ",[[0,30],[1,2],[0,66],[1,2]]], +[" All · vs main 0/1 assets/logo.png Image ",[[0,2],[2,3],[3,10],[0,10],[3,3],[0,2],[1,2],[0,1],[3,7],[0,52],[3,5],[0,1],[1,2]]], +[" ",[[0,30],[1,2],[0,66],[1,2]]], +[" ▾ assets Working tree preview ",[[0,2],[4,2],[3,6],[0,20],[1,2],[0,1],[3,20],[0,45],[1,2]]], +[" │ ≡ logo.png A ",[[0,2],[5,2],[4,2],[0,21],[6,1],[0,2],[1,2],[0,66],[1,2]]], +[" ████████████████████████████ ",[[0,30],[1,2],[0,19],[7,14],[8,14],[0,19],[1,2]]], +[" ████████████████████████████ ",[[0,30],[1,2],[0,19],[7,14],[8,14],[0,19],[1,2]]], +[" ████████████████████████████ ",[[0,30],[1,2],[0,19],[7,14],[8,14],[0,19],[1,2]]], +[" ████████████████████████████ ",[[0,30],[1,2],[0,19],[7,14],[8,14],[0,19],[1,2]]], +[" ████████████████████████████ ",[[0,30],[1,2],[0,19],[7,14],[8,14],[0,19],[1,2]]], +[" ████████████████████████████ ",[[0,30],[1,2],[0,19],[7,14],[8,14],[0,19],[1,2]]], +[" ████████████████████████████ ",[[0,30],[1,2],[0,19],[7,14],[8,14],[0,19],[1,2]]], +[" ",[[0,30],[1,2],[0,66],[1,2]]], +[" 8 x 4 Click to enlarge ",[[0,30],[1,2],[0,1],[3,5],[0,43],[3,16],[0,1],[1,2]]], +[" ",[[0,30],[1,2],[0,66],[1,2]]], +[" ",[[0,30],[1,70]]], +[" ",[[0,30],[1,70]]], +[" ",[[0,30],[1,70]]], +[" ",[[0,30],[1,70]]], +[" ",[[0,30],[1,70]]], +[" ",[[0,30],[1,70]]], +[" ",[[0,30],[1,70]]], +[" ",[[0,30],[1,70]]], +[" ",[[0,30],[1,70]]], +[" ",[[0,30],[1,70]]], +[" ",[[0,30],[1,70]]], +[" ",[[0,30],[1,70]]], +[" ? help ",[[0,3],[3,5],[0,22],[1,70]]], +[" ",[[0,30],[1,70]]], +[" ",[[0,30],[1,70]]] +]} diff --git a/packages/cli-rs/parity/fixtures/E.15a/image/home.json b/packages/cli-rs/parity/fixtures/E.15a/image/home.json new file mode 100644 index 000000000000..d37677e8fe6f --- /dev/null +++ b/packages/cli-rs/parity/fixtures/E.15a/image/home.json @@ -0,0 +1,32 @@ +{"width":100,"height":30,"styles":["#ffffffff #080808ff 0","#808080ff #080808ff 0","#ffffffff #080808ff 1","#808080ff #262626ff 0","#ffffffff #464646ff 1","#262626ff #080808ff 0","#484848ff #080808ff 0","#ffffffff #202020ff 0","#00000000 #00000000 0","#202020ff #080808ff 0"],"lines":[ +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ▄ ",[[0,31],[1,19],[0,1],[2,19],[0,30]]], +[" █▀▀█ █▀▀█ █▀▀█ █▀▀▄ █▀▀▀ █▀▀█ █▀▀█ █▀▀█ ",[[0,31],[1,19],[0,1],[2,19],[0,30]]], +[" █ █ █ █ █▀▀▀ █ █ █ █ █ █ █ █▀▀▀ ",[[0,31],[1,1],[3,2],[1,3],[3,2],[1,3],[3,3],[1,2],[3,2],[1,1],[0,1],[2,1],[4,3],[2,2],[4,2],[2,3],[4,2],[2,3],[4,3],[0,30]]], +[" ▀▀▀▀ █▀▀▀ ▀▀▀▀ ▀▀▀▀ ▀▀▀▀ ▀▀▀▀ ▀▀▀▀ ▀▀▀▀ ",[[0,31],[1,16],[5,2],[1,1],[0,1],[2,19],[0,30]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ┃ ",[[0,13],[6,1],[7,74],[0,12]]], +[" ┃ ",[[0,13],[6,1],[8,86]]], +[" ┃ ",[[0,13],[6,1],[7,74],[0,12]]], +[" ┃ ",[[0,13],[6,1],[7,74],[0,12]]], +[" ╹▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀ ",[[0,13],[6,1],[9,74],[0,12]]], +[" /tmp/opencode/packages/tui:main shift+tab agents ctrl+p commands ",[[0,13],[1,31],[0,21],[1,6],[0,9],[1,8],[0,12]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" test ",[[0,94],[1,4],[0,2]]], +[" ",[[0,100]]] +]} diff --git a/packages/cli-rs/parity/fixtures/E.15a/image/open.json b/packages/cli-rs/parity/fixtures/E.15a/image/open.json new file mode 100644 index 000000000000..357080edfca2 --- /dev/null +++ b/packages/cli-rs/parity/fixtures/E.15a/image/open.json @@ -0,0 +1,32 @@ +{"width":100,"height":30,"styles":["#ffffffff #141414ff 0","#ffffffff #080808ff 0","#808080ff #141414ff 1","#808080ff #141414ff 0","#4f4f4fff #141414ff 0","#343434ff #141414ff 0","#4fd6beff #141414ff 0","#dc3c3cff #dc3c3cff 0","#3c5adcff #3c5adcff 0"],"lines":[ +[" ",[[0,30],[1,2],[0,66],[1,2]]], +[" All · vs main 0/1 assets/logo.png Image ",[[0,2],[2,3],[3,10],[0,10],[3,3],[0,2],[1,2],[0,1],[3,7],[0,52],[3,5],[0,1],[1,2]]], +[" ",[[0,30],[1,2],[0,66],[1,2]]], +[" ▾ assets Working tree preview ",[[0,2],[4,2],[3,6],[0,20],[1,2],[0,1],[3,20],[0,45],[1,2]]], +[" │ ≡ logo.png A ",[[0,2],[5,2],[4,2],[0,21],[6,1],[0,2],[1,2],[0,66],[1,2]]], +[" ████████████████████████████ ",[[0,30],[1,2],[0,19],[7,14],[8,14],[0,19],[1,2]]], +[" ████████████████████████████ ",[[0,30],[1,2],[0,19],[7,14],[8,14],[0,19],[1,2]]], +[" ████████████████████████████ ",[[0,30],[1,2],[0,19],[7,14],[8,14],[0,19],[1,2]]], +[" ████████████████████████████ ",[[0,30],[1,2],[0,19],[7,14],[8,14],[0,19],[1,2]]], +[" ████████████████████████████ ",[[0,30],[1,2],[0,19],[7,14],[8,14],[0,19],[1,2]]], +[" ████████████████████████████ ",[[0,30],[1,2],[0,19],[7,14],[8,14],[0,19],[1,2]]], +[" ████████████████████████████ ",[[0,30],[1,2],[0,19],[7,14],[8,14],[0,19],[1,2]]], +[" ",[[0,30],[1,2],[0,66],[1,2]]], +[" 8 x 4 Click to enlarge ",[[0,30],[1,2],[0,1],[3,5],[0,43],[3,16],[0,1],[1,2]]], +[" ",[[0,30],[1,2],[0,66],[1,2]]], +[" ",[[0,30],[1,70]]], +[" ",[[0,30],[1,70]]], +[" ",[[0,30],[1,70]]], +[" ",[[0,30],[1,70]]], +[" ",[[0,30],[1,70]]], +[" ",[[0,30],[1,70]]], +[" ",[[0,30],[1,70]]], +[" ",[[0,30],[1,70]]], +[" ",[[0,30],[1,70]]], +[" ",[[0,30],[1,70]]], +[" ",[[0,30],[1,70]]], +[" ",[[0,30],[1,70]]], +[" ? help ",[[0,3],[3,5],[0,22],[1,70]]], +[" ",[[0,30],[1,70]]], +[" ",[[0,30],[1,70]]] +]} diff --git a/packages/cli-rs/parity/fixtures/E.15a/image/preview.json b/packages/cli-rs/parity/fixtures/E.15a/image/preview.json new file mode 100644 index 000000000000..4508a6cea8b0 --- /dev/null +++ b/packages/cli-rs/parity/fixtures/E.15a/image/preview.json @@ -0,0 +1,32 @@ +{"width":100,"height":30,"styles":["#ffffffff #080808ff 0","#ffffffff #030303ff 0","#ffffffff #141414ff 0","#808080ff #141414ff 0","#dc3c3cff #dc3c3cff 0","#3c5adcff #3c5adcff 0","#ffffffff #202020ff 0","#808080ff #202020ff 0"],"lines":[ +[" ",[[0,30],[1,2],[0,66],[1,2]]], +[" ",[[0,1],[2,98],[1,1]]], +[" Image 1 of 1 esc ",[[0,1],[2,92],[3,3],[2,3],[1,1]]], +[" ",[[0,1],[2,98],[1,1]]], +[" ████████████████████████████████████████████████████████████████████████████████████████ ",[[0,1],[2,5],[4,44],[5,44],[2,5],[1,1]]], +[" ████████████████████████████████████████████████████████████████████████████████████████ ",[[0,1],[2,5],[4,44],[5,44],[2,5],[1,1]]], +[" ████████████████████████████████████████████████████████████████████████████████████████ ",[[0,1],[2,5],[4,44],[5,44],[2,5],[1,1]]], +[" ████████████████████████████████████████████████████████████████████████████████████████ ",[[0,1],[2,5],[4,44],[5,44],[2,5],[1,1]]], +[" ████████████████████████████████████████████████████████████████████████████████████████ ",[[0,1],[2,5],[4,44],[5,44],[2,5],[1,1]]], +[" ████████████████████████████████████████████████████████████████████████████████████████ ",[[0,1],[2,5],[4,44],[5,44],[2,5],[1,1]]], +[" ████████████████████████████████████████████████████████████████████████████████████████ ",[[0,1],[2,5],[4,44],[5,44],[2,5],[1,1]]], +[" ████████████████████████████████████████████████████████████████████████████████████████ ",[[0,1],[2,5],[4,44],[5,44],[2,5],[1,1]]], +[" ████████████████████████████████████████████████████████████████████████████████████████ ",[[0,1],[2,5],[4,44],[5,44],[2,5],[1,1]]], +[" ████████████████████████████████████████████████████████████████████████████████████████ ",[[0,1],[2,5],[4,44],[5,44],[2,5],[1,1]]], +[" ████████████████████████████████████████████████████████████████████████████████████████ ",[[0,1],[2,5],[4,44],[5,44],[2,5],[1,1]]], +[" ████████████████████████████████████████████████████████████████████████████████████████ ",[[0,1],[2,5],[4,44],[5,44],[2,5],[1,1]]], +[" ████████████████████████████████████████████████████████████████████████████████████████ ",[[0,1],[2,5],[4,44],[5,44],[2,5],[1,1]]], +[" ████████████████████████████████████████████████████████████████████████████████████████ ",[[0,1],[2,5],[4,44],[5,44],[2,5],[1,1]]], +[" ████████████████████████████████████████████████████████████████████████████████████████ ",[[0,1],[2,5],[4,44],[5,44],[2,5],[1,1]]], +[" ████████████████████████████████████████████████████████████████████████████████████████ ",[[0,1],[2,5],[4,44],[5,44],[2,5],[1,1]]], +[" ████████████████████████████████████████████████████████████████████████████████████████ ",[[0,1],[2,5],[4,44],[5,44],[2,5],[1,1]]], +[" ████████████████████████████████████████████████████████████████████████████████████████ ",[[0,1],[2,5],[4,44],[5,44],[2,5],[1,1]]], +[" ████████████████████████████████████████████████████████████████████████████████████████ ",[[0,1],[2,5],[4,44],[5,44],[2,5],[1,1]]], +[" ████████████████████████████████████████████████████████████████████████████████████████ ",[[0,1],[2,5],[4,44],[5,44],[2,5],[1,1]]], +[" ████████████████████████████████████████████████████████████████████████████████████████ ",[[0,1],[2,5],[4,44],[5,44],[2,5],[1,1]]], +[" ████████████████████████████████████████████████████████████████████████████████████████ ",[[0,1],[2,5],[4,44],[5,44],[2,5],[1,1]]], +[" ",[[0,1],[2,98],[1,1]]], +[" ",[[0,1],[6,98],[1,1]]], +[" assets/logo.png ",[[0,1],[6,2],[7,15],[6,81],[1,1]]], +[" ",[[0,1],[6,98],[1,1]]] +]} diff --git a/packages/cli-rs/parity/fixtures/E.15a/route.app.json b/packages/cli-rs/parity/fixtures/E.15a/route.app.json new file mode 100644 index 000000000000..e7147ed42528 --- /dev/null +++ b/packages/cli-rs/parity/fixtures/E.15a/route.app.json @@ -0,0 +1,63 @@ +{ + "scenario": "E.15a/route", + "width": 120, + "height": 30, + "directory": "/tmp/opencode/packages/tui", + "config": { + "experimental": {"new-designs":true}, + "animations": false, + "theme": {"name":"opencode"} + }, + "args": {}, + "routes": [ + {"path":"/api/vcs/base","json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":{"name":"origin/main","ref":"origin/main","source":"reflog"}}}, + {"path":"/api/vcs/diff","json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":[{"file":"config/app.yaml","patch":"diff --git a/config/app.yaml b/config/app.yaml\nindex f8ee03d..7269109 100644\n--- a/config/app.yaml\n+++ b/config/app.yaml\n@@ -1,17 +1,17 @@\n key1: value1\n key2: value2\n key3: value3\n key4: value4\n-key5: value5\n+key5: changed\n key6: value6\n key7: value7\n key8: value8\n key9: value9\n key10: value10\n key11: value11\n key12: value12\n key13: value13\n key14: value14\n key15: value15\n key16: value16\n key17: value17\n@@ -28,25 +28,26 @@ key27: value27\n key28: value28\n key29: value29\n key30: value30\n key31: value31\n key32: value32\n key33: value33\n key34: value34\n key35: value35\n key36: value36\n key37: value37\n key38: value38\n key39: value39\n-key40: value40\n+key40: changed\n+key40b: added\n key41: value41\n key42: value42\n key43: value43\n key44: value44\n key45: value45\n key46: value46\n key47: value47\n key48: value48\n key49: value49\n key50: value50\n key51: value51\n key52: value52\n","additions":3,"deletions":2,"status":"modified"},{"file":"src/main.rs","patch":"diff --git a/src/main.rs b/src/main.rs\nindex 7527576..2e6431c 100644\n--- a/src/main.rs\n+++ b/src/main.rs\n@@ -1,3 +1,3 @@\n fn main() {\n- println!(\"hello\");\n+ println!(\"hello, world\");\n }\n","additions":1,"deletions":1,"status":"modified"},{"file":"src/util/mod.rs","patch":"diff --git a/src/util/mod.rs b/src/util/mod.rs\nnew file mode 100644\nindex 0000000..481c63a\n--- /dev/null\n+++ b/src/util/mod.rs\n@@ -0,0 +1 @@\n+pub mod text;\n","additions":1,"deletions":0,"status":"added"}]}} + ], + "steps": [ + {"checkpoint":"ready","until":"Ask anything","masks":[{"x":26,"y":16,"width":94,"height":1,"reason":"the placeholder example: random in TS and Rust"}],"fixture":"E.15a/route/ready"}, + {"type":"/diff"}, + {"keys":["enter"]}, + {"checkpoint":"open","until":"vs origin/main","fixture":"E.15a/route/open"}, + {"keys":["]"]}, + {"checkpoint":"hunk-1","fixture":"E.15a/route/hunk-1"}, + {"keys":["]"]}, + {"checkpoint":"hunk-2","fixture":"E.15a/route/hunk-2"}, + {"keys":["["]}, + {"checkpoint":"hunk-back","fixture":"E.15a/route/hunk-back"}, + {"keys":["s"]}, + {"checkpoint":"single","fixture":"E.15a/route/single"}, + {"keys":["m"]}, + {"checkpoint":"single-reviewed","fixture":"E.15a/route/single-reviewed"}, + {"keys":["s"]}, + {"checkpoint":"all","fixture":"E.15a/route/all"}, + {"keys":["q"]}, + {"checkpoint":"home","until":"Ask anything","masks":[{"x":26,"y":16,"width":94,"height":1,"reason":"the placeholder example: random in TS and Rust"}],"fixture":"E.15a/route/home"} + ], + "requests": { + "writes": [], + "reads": [ + {"method":"GET","path":"/api/agent","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":[]}}, + {"method":"GET","path":"/api/command","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":[]}}, + {"method":"GET","path":"/api/config","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":[]}, + {"method":"GET","path":"/api/experimental/migration/v1","query":{},"status":200,"json":{"status":"completed"}}, + {"method":"GET","path":"/api/form","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode"}},"data":[]}}, + {"method":"GET","path":"/api/fs/list","query":{"location[directory]":["<cwd>"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":[]}}, + {"method":"GET","path":"/api/info","query":{},"status":200,"json":{"version":"test","pid":0,"urls":[],"paths":{"tmp":"/tmp"},"capabilities":{"persistentPty":true}}}, + {"method":"GET","path":"/api/integration","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":[]}}, + {"method":"GET","path":"/api/location","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}}}, + {"method":"GET","path":"/api/mcp","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":[]}}, + {"method":"GET","path":"/api/mcp/resource","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":{"resources":[],"templates":[]}}}, + {"method":"GET","path":"/api/model","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":[]}}, + {"method":"GET","path":"/api/plugin","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":[]}}, + {"method":"GET","path":"/api/project","query":{},"status":200,"json":[]}, + {"method":"GET","path":"/api/provider","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":[]}}, + {"method":"GET","path":"/api/reference","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode/packages/tui","canonical":"/tmp/opencode/packages/tui"}},"data":[]}}, + {"method":"GET","path":"/api/session/active","query":{},"status":200,"json":{"data":{}}}, + {"method":"GET","path":"/api/shell","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":[]}}, + {"method":"GET","path":"/api/skill","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":[]}}, + {"method":"GET","path":"/api/vcs","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":{"branch":{"current":"main","default":"main"}}}}, + {"method":"GET","path":"/api/vcs/base","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":{"name":"origin/main","ref":"origin/main","source":"reflog"}}}, + {"method":"GET","path":"/api/vcs/diff","query":{"base":["origin/main"],"context":["12"],"location[directory]":["/tmp/opencode/packages/tui"],"mode":["branch"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":[{"file":"config/app.yaml","patch":"diff --git a/config/app.yaml b/config/app.yaml\nindex f8ee03d..7269109 100644\n--- a/config/app.yaml\n+++ b/config/app.yaml\n@@ -1,17 +1,17 @@\n key1: value1\n key2: value2\n key3: value3\n key4: value4\n-key5: value5\n+key5: changed\n key6: value6\n key7: value7\n key8: value8\n key9: value9\n key10: value10\n key11: value11\n key12: value12\n key13: value13\n key14: value14\n key15: value15\n key16: value16\n key17: value17\n@@ -28,25 +28,26 @@ key27: value27\n key28: value28\n key29: value29\n key30: value30\n key31: value31\n key32: value32\n key33: value33\n key34: value34\n key35: value35\n key36: value36\n key37: value37\n key38: value38\n key39: value39\n-key40: value40\n+key40: changed\n+key40b: added\n key41: value41\n key42: value42\n key43: value43\n key44: value44\n key45: value45\n key46: value46\n key47: value47\n key48: value48\n key49: value49\n key50: value50\n key51: value51\n key52: value52\n","additions":3,"deletions":2,"status":"modified"},{"file":"src/main.rs","patch":"diff --git a/src/main.rs b/src/main.rs\nindex 7527576..2e6431c 100644\n--- a/src/main.rs\n+++ b/src/main.rs\n@@ -1,3 +1,3 @@\n fn main() {\n- println!(\"hello\");\n+ println!(\"hello, world\");\n }\n","additions":1,"deletions":1,"status":"modified"},{"file":"src/util/mod.rs","patch":"diff --git a/src/util/mod.rs b/src/util/mod.rs\nnew file mode 100644\nindex 0000000..481c63a\n--- /dev/null\n+++ b/src/util/mod.rs\n@@ -0,0 +1 @@\n+pub mod text;\n","additions":1,"deletions":0,"status":"added"}]}} + ] + } +} diff --git a/packages/cli-rs/parity/fixtures/E.15a/route/all.json b/packages/cli-rs/parity/fixtures/E.15a/route/all.json new file mode 100644 index 000000000000..79a6c53fe58c --- /dev/null +++ b/packages/cli-rs/parity/fixtures/E.15a/route/all.json @@ -0,0 +1,32 @@ +{"width":120,"height":30,"styles":["#ffffffff #141414ff 0","#ffffffff #080808ff 0","#ffffffff #202020ff 0","#808080ff #141414ff 1","#808080ff #141414ff 0","#808080ff #202020ff 0","#080808ff #080808ff 0","#202020ff #080808ff 0","#4f4f4fff #141414ff 0","#141414ff #080808ff 0","#343434ff #141414ff 0","#4fd6beff #141414ff 0","#c53b53ff #141414ff 0","#ffffffff #1b2b34ff 0","#8f8f8fff #1b2b34ff 0","#b8db87ff #1b2b34ff 0","#9d7cd8ff #20303bff 4","#ffffffff #20303bff 0","#9d7cd8ff #20303bff 0","#e5c07bff #20303bff 0","#56b6c2ff #20303bff 0","#7699feff #141414ff 1","#8f8f8fff #141414ff 0","#fab283ff #141414ff 0","#eeeeeeff #141414ff 0","#ffffffff #2d1f26ff 0","#8f8f8fff #2d1f26ff 0","#e26a75ff #2d1f26ff 0","#ffffffff #37222cff 0","#9d7cd8ff #37222cff 4","#eeeeeeff #37222cff 0","#7fd88fff #37222cff 0","#56b6c2ff #37222cff 0","#eeeeeeff #20303bff 0","#7fd88fff #20303bff 0"],"lines":[ +[" ",[[0,30],[1,2],[2,86],[1,2]]], +[" All · vs origin/main 1/3 config/app.yaml ✓ +3 -2 ",[[0,2],[3,3],[4,17],[0,3],[4,3],[0,2],[1,2],[2,1],[5,15],[2,62],[5,1],[2,1],[5,2],[2,1],[5,2],[2,1],[1,2]]], +[" ▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀",[[0,30],[6,2],[7,86],[6,2]]], +[" ▾ config ▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄",[[0,2],[8,2],[4,6],[0,20],[6,2],[9,86],[6,2]]], +[" │ ≡ app.yaml ✓ src/util/mod.rs +1 -0 ",[[0,2],[10,2],[8,2],[4,8],[0,13],[4,1],[0,2],[1,2],[0,1],[4,9],[0,70],[11,2],[0,1],[12,2],[0,1],[1,2]]], +[" ▾ src ",[[0,2],[8,2],[4,3],[0,23],[1,2],[0,86],[1,2]]], +[" │ ▾ util 1 + pub mod text; ",[[0,2],[10,2],[8,2],[4,4],[0,20],[1,2],[13,1],[14,1],[15,2],[13,1],[16,3],[17,1],[18,3],[17,1],[19,4],[20,1],[17,68],[1,2]]], +[" │ │ ≡ mod.rs A ▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄",[[0,2],[10,4],[8,2],[21,6],[0,13],[11,1],[0,2],[6,2],[9,86],[6,2]]], +[" │ ≡ main.rs M src/main.rs +1 -1 ",[[0,2],[10,2],[8,2],[0,21],[4,1],[0,2],[1,2],[0,1],[4,4],[0,75],[11,2],[0,1],[12,2],[0,1],[1,2]]], +[" ",[[0,30],[1,2],[0,86],[1,2]]], +[" 1 fn main() { ",[[0,30],[1,2],[0,1],[22,1],[0,3],[23,2],[0,1],[23,4],[24,2],[0,1],[24,1],[0,70],[1,2]]], +[" 2 - println!(\"hello\"); ",[[0,30],[1,2],[25,1],[26,1],[27,2],[25,1],[28,4],[29,8],[30,1],[31,7],[30,1],[32,1],[28,59],[1,2]]], +[" 2 + println!(\"hello, world\"); ",[[0,30],[1,2],[13,1],[14,1],[15,2],[13,1],[17,4],[16,8],[33,1],[34,14],[33,1],[20,1],[17,52],[1,2]]], +[" 3 } ",[[0,30],[1,2],[0,1],[22,1],[0,3],[24,1],[0,80],[1,2]]], +[" ",[[0,30],[1,90]]], +[" ",[[0,30],[1,90]]], +[" ",[[0,30],[1,90]]], +[" ",[[0,30],[1,90]]], +[" ",[[0,30],[1,90]]], +[" ",[[0,30],[1,90]]], +[" ",[[0,30],[1,90]]], +[" ",[[0,30],[1,90]]], +[" ",[[0,30],[1,90]]], +[" ",[[0,30],[1,90]]], +[" ",[[0,30],[1,90]]], +[" ",[[0,30],[1,90]]], +[" ",[[0,30],[1,90]]], +[" ? help ",[[0,3],[4,5],[0,22],[1,90]]], +[" ",[[0,30],[1,90]]], +[" ",[[0,30],[1,90]]] +]} diff --git a/packages/cli-rs/parity/fixtures/E.15a/route/home.json b/packages/cli-rs/parity/fixtures/E.15a/route/home.json new file mode 100644 index 000000000000..92229e213ba1 --- /dev/null +++ b/packages/cli-rs/parity/fixtures/E.15a/route/home.json @@ -0,0 +1,32 @@ +{"width":120,"height":30,"styles":["#ffffffff #080808ff 0","#808080ff #080808ff 0","#ffffffff #080808ff 1","#808080ff #262626ff 0","#ffffffff #464646ff 1","#262626ff #080808ff 0","#484848ff #080808ff 0","#ffffffff #202020ff 0","#00000000 #00000000 0","#202020ff #080808ff 0"],"lines":[ +[" ",[[0,120]]], +[" ",[[0,120]]], +[" ",[[0,120]]], +[" ",[[0,120]]], +[" ",[[0,120]]], +[" ",[[0,120]]], +[" ",[[0,120]]], +[" ",[[0,120]]], +[" ",[[0,120]]], +[" ▄ ",[[0,41],[1,19],[0,1],[2,19],[0,40]]], +[" █▀▀█ █▀▀█ █▀▀█ █▀▀▄ █▀▀▀ █▀▀█ █▀▀█ █▀▀█ ",[[0,41],[1,19],[0,1],[2,19],[0,40]]], +[" █ █ █ █ █▀▀▀ █ █ █ █ █ █ █ █▀▀▀ ",[[0,41],[1,1],[3,2],[1,3],[3,2],[1,3],[3,3],[1,2],[3,2],[1,1],[0,1],[2,1],[4,3],[2,2],[4,2],[2,3],[4,2],[2,3],[4,3],[0,40]]], +[" ▀▀▀▀ █▀▀▀ ▀▀▀▀ ▀▀▀▀ ▀▀▀▀ ▀▀▀▀ ▀▀▀▀ ▀▀▀▀ ",[[0,41],[1,16],[5,2],[1,1],[0,1],[2,19],[0,40]]], +[" ",[[0,120]]], +[" ",[[0,120]]], +[" ┃ ",[[0,23],[6,1],[7,74],[0,22]]], +[" ┃ ",[[0,23],[6,1],[7,2],[8,94]]], +[" ┃ ",[[0,23],[6,1],[7,74],[0,22]]], +[" ┃ ",[[0,23],[6,1],[7,74],[0,22]]], +[" ╹▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀ ",[[0,23],[6,1],[9,74],[0,22]]], +[" /tmp/opencode/packages/tui:main shift+tab agents ctrl+p commands ",[[0,23],[1,31],[0,21],[1,6],[0,9],[1,8],[0,22]]], +[" ",[[0,120]]], +[" ",[[0,120]]], +[" ",[[0,120]]], +[" ",[[0,120]]], +[" ",[[0,120]]], +[" ",[[0,120]]], +[" ",[[0,120]]], +[" test ",[[0,114],[1,4],[0,2]]], +[" ",[[0,120]]] +]} diff --git a/packages/cli-rs/parity/fixtures/E.15a/route/hunk-1.json b/packages/cli-rs/parity/fixtures/E.15a/route/hunk-1.json new file mode 100644 index 000000000000..116b0e5f6c79 --- /dev/null +++ b/packages/cli-rs/parity/fixtures/E.15a/route/hunk-1.json @@ -0,0 +1,32 @@ +{"width":120,"height":30,"styles":["#ffffffff #141414ff 0","#ffffffff #080808ff 0","#808080ff #141414ff 1","#808080ff #141414ff 0","#4fd6beff #141414ff 0","#c53b53ff #141414ff 0","#4f4f4fff #141414ff 0","#828bb8ff #141414ff 0","#343434ff #141414ff 0","#7699feff #141414ff 1","#8f8f8fff #141414ff 0","#e06c75ff #141414ff 0","#56b6c2ff #141414ff 0","#7fd88fff #141414ff 0","#ffffffff #2d1f26ff 0","#8f8f8fff #2d1f26ff 0","#e26a75ff #2d1f26ff 0","#e06c75ff #37222cff 0","#56b6c2ff #37222cff 0","#ffffffff #37222cff 0","#7fd88fff #37222cff 0","#ffffffff #1b2b34ff 0","#8f8f8fff #1b2b34ff 0","#b8db87ff #1b2b34ff 0","#e06c75ff #20303bff 0","#56b6c2ff #20303bff 0","#ffffffff #20303bff 0","#7fd88fff #20303bff 0"],"lines":[ +[" ",[[0,30],[1,2],[0,86],[1,2]]], +[" All · vs origin/main 0/3 config/app.yaml +3 -2 ",[[0,2],[2,3],[3,17],[0,3],[3,3],[0,2],[1,2],[0,1],[3,7],[0,72],[4,2],[0,1],[5,2],[0,1],[1,2]]], +[" ",[[0,30],[1,2],[0,86],[1,2]]], +[" ▾ config @@ -28,25 +28,26 @@ key27: value27 ",[[0,2],[6,2],[3,6],[0,20],[1,2],[7,35],[0,51],[1,2]]], +[" │ ≡ app.yaml M 28 key28: value28 ",[[0,2],[8,2],[6,2],[9,8],[0,13],[3,1],[0,2],[1,2],[0,1],[10,2],[0,3],[11,5],[12,1],[0,1],[13,7],[0,66],[1,2]]], +[" ▾ src 29 key29: value29 ",[[0,2],[6,2],[3,3],[0,23],[1,2],[0,1],[10,2],[0,3],[11,5],[12,1],[0,1],[13,7],[0,66],[1,2]]], +[" │ ▾ util 30 key30: value30 ",[[0,2],[8,2],[6,2],[3,4],[0,20],[1,2],[0,1],[10,2],[0,3],[11,5],[12,1],[0,1],[13,7],[0,66],[1,2]]], +[" │ │ ≡ mod.rs A 31 key31: value31 ",[[0,2],[8,4],[6,2],[0,19],[4,1],[0,2],[1,2],[0,1],[10,2],[0,3],[11,5],[12,1],[0,1],[13,7],[0,66],[1,2]]], +[" │ ≡ main.rs M 32 key32: value32 ",[[0,2],[8,2],[6,2],[0,21],[3,1],[0,2],[1,2],[0,1],[10,2],[0,3],[11,5],[12,1],[0,1],[13,7],[0,66],[1,2]]], +[" 33 key33: value33 ",[[0,30],[1,2],[0,1],[10,2],[0,3],[11,5],[12,1],[0,1],[13,7],[0,66],[1,2]]], +[" 34 key34: value34 ",[[0,30],[1,2],[0,1],[10,2],[0,3],[11,5],[12,1],[0,1],[13,7],[0,66],[1,2]]], +[" 35 key35: value35 ",[[0,30],[1,2],[0,1],[10,2],[0,3],[11,5],[12,1],[0,1],[13,7],[0,66],[1,2]]], +[" 36 key36: value36 ",[[0,30],[1,2],[0,1],[10,2],[0,3],[11,5],[12,1],[0,1],[13,7],[0,66],[1,2]]], +[" 37 key37: value37 ",[[0,30],[1,2],[0,1],[10,2],[0,3],[11,5],[12,1],[0,1],[13,7],[0,66],[1,2]]], +[" 38 key38: value38 ",[[0,30],[1,2],[0,1],[10,2],[0,3],[11,5],[12,1],[0,1],[13,7],[0,66],[1,2]]], +[" 39 key39: value39 ",[[0,30],[1,2],[0,1],[10,2],[0,3],[11,5],[12,1],[0,1],[13,7],[0,66],[1,2]]], +[" 40 - key40: value40 ",[[0,30],[1,2],[14,1],[15,2],[16,2],[14,1],[17,5],[18,1],[19,1],[20,7],[19,66],[1,2]]], +[" 40 + key40: changed ",[[0,30],[1,2],[21,1],[22,2],[23,2],[21,1],[24,5],[25,1],[26,1],[27,7],[26,66],[1,2]]], +[" 41 + key40b: added ",[[0,30],[1,2],[21,1],[22,2],[23,2],[21,1],[24,6],[25,1],[26,1],[27,5],[26,67],[1,2]]], +[" 42 key41: value41 ",[[0,30],[1,2],[0,1],[10,2],[0,3],[11,5],[12,1],[0,1],[13,7],[0,66],[1,2]]], +[" 43 key42: value42 ",[[0,30],[1,2],[0,1],[10,2],[0,3],[11,5],[12,1],[0,1],[13,7],[0,66],[1,2]]], +[" 44 key43: value43 ",[[0,30],[1,2],[0,1],[10,2],[0,3],[11,5],[12,1],[0,1],[13,7],[0,66],[1,2]]], +[" 45 key44: value44 ",[[0,30],[1,2],[0,1],[10,2],[0,3],[11,5],[12,1],[0,1],[13,7],[0,66],[1,2]]], +[" 46 key45: value45 ",[[0,30],[1,2],[0,1],[10,2],[0,3],[11,5],[12,1],[0,1],[13,7],[0,66],[1,2]]], +[" 47 key46: value46 ",[[0,30],[1,2],[0,1],[10,2],[0,3],[11,5],[12,1],[0,1],[13,7],[0,66],[1,2]]], +[" 48 key47: value47 ",[[0,30],[1,2],[0,1],[10,2],[0,3],[11,5],[12,1],[0,1],[13,7],[0,66],[1,2]]], +[" 49 key48: value48 ",[[0,30],[1,2],[0,1],[10,2],[0,3],[11,5],[12,1],[0,1],[13,7],[0,66],[1,2]]], +[" ? help 50 key49: value49 ",[[0,3],[3,5],[0,22],[1,2],[0,1],[10,2],[0,3],[11,5],[12,1],[0,1],[13,7],[0,66],[1,2]]], +[" 51 key50: value50 ",[[0,30],[1,2],[0,1],[10,2],[0,3],[11,5],[12,1],[0,1],[13,7],[0,66],[1,2]]], +[" 52 key51: value51 ",[[0,30],[1,2],[0,1],[10,2],[0,3],[11,5],[12,1],[0,1],[13,7],[0,66],[1,2]]] +]} diff --git a/packages/cli-rs/parity/fixtures/E.15a/route/hunk-2.json b/packages/cli-rs/parity/fixtures/E.15a/route/hunk-2.json new file mode 100644 index 000000000000..7c131d4c4f0a --- /dev/null +++ b/packages/cli-rs/parity/fixtures/E.15a/route/hunk-2.json @@ -0,0 +1,32 @@ +{"width":120,"height":30,"styles":["#ffffffff #141414ff 0","#ffffffff #080808ff 0","#808080ff #141414ff 1","#808080ff #141414ff 0","#4fd6beff #141414ff 0","#c53b53ff #141414ff 0","#4f4f4fff #141414ff 0","#8f8f8fff #141414ff 0","#e06c75ff #141414ff 0","#56b6c2ff #141414ff 0","#7fd88fff #141414ff 0","#343434ff #141414ff 0","#ffffffff #2d1f26ff 0","#8f8f8fff #2d1f26ff 0","#e26a75ff #2d1f26ff 0","#e06c75ff #37222cff 0","#56b6c2ff #37222cff 0","#ffffffff #37222cff 0","#7fd88fff #37222cff 0","#ffffffff #1b2b34ff 0","#8f8f8fff #1b2b34ff 0","#b8db87ff #1b2b34ff 0","#e06c75ff #20303bff 0","#56b6c2ff #20303bff 0","#ffffffff #20303bff 0","#7fd88fff #20303bff 0","#7699feff #141414ff 1","#080808ff #080808ff 0","#141414ff #080808ff 0","#9d7cd8ff #20303bff 4","#9d7cd8ff #20303bff 0","#e5c07bff #20303bff 0","#fab283ff #141414ff 0","#eeeeeeff #141414ff 0","#9d7cd8ff #37222cff 4","#eeeeeeff #37222cff 0","#eeeeeeff #20303bff 0"],"lines":[ +[" ",[[0,30],[1,2],[0,86],[1,2]]], +[" All · vs origin/main 0/3 config/app.yaml +3 -2 ",[[0,2],[2,3],[3,17],[0,3],[3,3],[0,2],[1,2],[0,1],[3,7],[0,72],[4,2],[0,1],[5,2],[0,1],[1,2]]], +[" ",[[0,30],[1,2],[0,86],[1,2]]], +[" ▾ config 39 key39: value39 ",[[0,2],[6,2],[3,6],[0,20],[1,2],[0,1],[7,2],[0,3],[8,5],[9,1],[0,1],[10,7],[0,66],[1,2]]], +[" │ ≡ app.yaml M 40 - key40: value40 ",[[0,2],[11,2],[6,2],[0,21],[3,1],[0,2],[1,2],[12,1],[13,2],[14,2],[12,1],[15,5],[16,1],[17,1],[18,7],[17,66],[1,2]]], +[" ▾ src 40 + key40: changed ",[[0,2],[6,2],[3,3],[0,23],[1,2],[19,1],[20,2],[21,2],[19,1],[22,5],[23,1],[24,1],[25,7],[24,66],[1,2]]], +[" │ ▾ util 41 + key40b: added ",[[0,2],[11,2],[6,2],[3,4],[0,20],[1,2],[19,1],[20,2],[21,2],[19,1],[22,6],[23,1],[24,1],[25,5],[24,67],[1,2]]], +[" │ │ ≡ mod.rs A 42 key41: value41 ",[[0,2],[11,4],[6,2],[26,6],[0,13],[4,1],[0,2],[1,2],[0,1],[7,2],[0,3],[8,5],[9,1],[0,1],[10,7],[0,66],[1,2]]], +[" │ ≡ main.rs M 43 key42: value42 ",[[0,2],[11,2],[6,2],[0,21],[3,1],[0,2],[1,2],[0,1],[7,2],[0,3],[8,5],[9,1],[0,1],[10,7],[0,66],[1,2]]], +[" 44 key43: value43 ",[[0,30],[1,2],[0,1],[7,2],[0,3],[8,5],[9,1],[0,1],[10,7],[0,66],[1,2]]], +[" 45 key44: value44 ",[[0,30],[1,2],[0,1],[7,2],[0,3],[8,5],[9,1],[0,1],[10,7],[0,66],[1,2]]], +[" 46 key45: value45 ",[[0,30],[1,2],[0,1],[7,2],[0,3],[8,5],[9,1],[0,1],[10,7],[0,66],[1,2]]], +[" 47 key46: value46 ",[[0,30],[1,2],[0,1],[7,2],[0,3],[8,5],[9,1],[0,1],[10,7],[0,66],[1,2]]], +[" 48 key47: value47 ",[[0,30],[1,2],[0,1],[7,2],[0,3],[8,5],[9,1],[0,1],[10,7],[0,66],[1,2]]], +[" 49 key48: value48 ",[[0,30],[1,2],[0,1],[7,2],[0,3],[8,5],[9,1],[0,1],[10,7],[0,66],[1,2]]], +[" 50 key49: value49 ",[[0,30],[1,2],[0,1],[7,2],[0,3],[8,5],[9,1],[0,1],[10,7],[0,66],[1,2]]], +[" 51 key50: value50 ",[[0,30],[1,2],[0,1],[7,2],[0,3],[8,5],[9,1],[0,1],[10,7],[0,66],[1,2]]], +[" 52 key51: value51 ",[[0,30],[1,2],[0,1],[7,2],[0,3],[8,5],[9,1],[0,1],[10,7],[0,66],[1,2]]], +[" 53 key52: value52 ",[[0,30],[1,2],[0,1],[7,2],[0,3],[8,5],[9,1],[0,1],[10,7],[0,66],[1,2]]], +[" ▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄",[[0,30],[27,2],[28,86],[27,2]]], +[" src/util/mod.rs +1 -0 ",[[0,30],[1,2],[0,1],[3,9],[0,70],[4,2],[0,1],[5,2],[0,1],[1,2]]], +[" ",[[0,30],[1,2],[0,86],[1,2]]], +[" 1 + pub mod text; ",[[0,30],[1,2],[19,1],[20,1],[21,2],[19,1],[29,3],[24,1],[30,3],[24,1],[31,4],[23,1],[24,68],[1,2]]], +[" ▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄",[[0,30],[27,2],[28,86],[27,2]]], +[" src/main.rs +1 -1 ",[[0,30],[1,2],[0,1],[3,4],[0,75],[4,2],[0,1],[5,2],[0,1],[1,2]]], +[" ",[[0,30],[1,2],[0,86],[1,2]]], +[" 1 fn main() { ",[[0,30],[1,2],[0,1],[7,1],[0,3],[32,2],[0,1],[32,4],[33,2],[0,1],[33,1],[0,70],[1,2]]], +[" ? help 2 - println!(\"hello\"); ",[[0,3],[3,5],[0,22],[1,2],[12,1],[13,1],[14,2],[12,1],[17,4],[34,8],[35,1],[18,7],[35,1],[16,1],[17,59],[1,2]]], +[" 2 + println!(\"hello, world\"); ",[[0,30],[1,2],[19,1],[20,1],[21,2],[19,1],[24,4],[29,8],[36,1],[25,14],[36,1],[23,1],[24,52],[1,2]]], +[" 3 } ",[[0,30],[1,2],[0,1],[7,1],[0,3],[33,1],[0,80],[1,2]]] +]} diff --git a/packages/cli-rs/parity/fixtures/E.15a/route/hunk-back.json b/packages/cli-rs/parity/fixtures/E.15a/route/hunk-back.json new file mode 100644 index 000000000000..116b0e5f6c79 --- /dev/null +++ b/packages/cli-rs/parity/fixtures/E.15a/route/hunk-back.json @@ -0,0 +1,32 @@ +{"width":120,"height":30,"styles":["#ffffffff #141414ff 0","#ffffffff #080808ff 0","#808080ff #141414ff 1","#808080ff #141414ff 0","#4fd6beff #141414ff 0","#c53b53ff #141414ff 0","#4f4f4fff #141414ff 0","#828bb8ff #141414ff 0","#343434ff #141414ff 0","#7699feff #141414ff 1","#8f8f8fff #141414ff 0","#e06c75ff #141414ff 0","#56b6c2ff #141414ff 0","#7fd88fff #141414ff 0","#ffffffff #2d1f26ff 0","#8f8f8fff #2d1f26ff 0","#e26a75ff #2d1f26ff 0","#e06c75ff #37222cff 0","#56b6c2ff #37222cff 0","#ffffffff #37222cff 0","#7fd88fff #37222cff 0","#ffffffff #1b2b34ff 0","#8f8f8fff #1b2b34ff 0","#b8db87ff #1b2b34ff 0","#e06c75ff #20303bff 0","#56b6c2ff #20303bff 0","#ffffffff #20303bff 0","#7fd88fff #20303bff 0"],"lines":[ +[" ",[[0,30],[1,2],[0,86],[1,2]]], +[" All · vs origin/main 0/3 config/app.yaml +3 -2 ",[[0,2],[2,3],[3,17],[0,3],[3,3],[0,2],[1,2],[0,1],[3,7],[0,72],[4,2],[0,1],[5,2],[0,1],[1,2]]], +[" ",[[0,30],[1,2],[0,86],[1,2]]], +[" ▾ config @@ -28,25 +28,26 @@ key27: value27 ",[[0,2],[6,2],[3,6],[0,20],[1,2],[7,35],[0,51],[1,2]]], +[" │ ≡ app.yaml M 28 key28: value28 ",[[0,2],[8,2],[6,2],[9,8],[0,13],[3,1],[0,2],[1,2],[0,1],[10,2],[0,3],[11,5],[12,1],[0,1],[13,7],[0,66],[1,2]]], +[" ▾ src 29 key29: value29 ",[[0,2],[6,2],[3,3],[0,23],[1,2],[0,1],[10,2],[0,3],[11,5],[12,1],[0,1],[13,7],[0,66],[1,2]]], +[" │ ▾ util 30 key30: value30 ",[[0,2],[8,2],[6,2],[3,4],[0,20],[1,2],[0,1],[10,2],[0,3],[11,5],[12,1],[0,1],[13,7],[0,66],[1,2]]], +[" │ │ ≡ mod.rs A 31 key31: value31 ",[[0,2],[8,4],[6,2],[0,19],[4,1],[0,2],[1,2],[0,1],[10,2],[0,3],[11,5],[12,1],[0,1],[13,7],[0,66],[1,2]]], +[" │ ≡ main.rs M 32 key32: value32 ",[[0,2],[8,2],[6,2],[0,21],[3,1],[0,2],[1,2],[0,1],[10,2],[0,3],[11,5],[12,1],[0,1],[13,7],[0,66],[1,2]]], +[" 33 key33: value33 ",[[0,30],[1,2],[0,1],[10,2],[0,3],[11,5],[12,1],[0,1],[13,7],[0,66],[1,2]]], +[" 34 key34: value34 ",[[0,30],[1,2],[0,1],[10,2],[0,3],[11,5],[12,1],[0,1],[13,7],[0,66],[1,2]]], +[" 35 key35: value35 ",[[0,30],[1,2],[0,1],[10,2],[0,3],[11,5],[12,1],[0,1],[13,7],[0,66],[1,2]]], +[" 36 key36: value36 ",[[0,30],[1,2],[0,1],[10,2],[0,3],[11,5],[12,1],[0,1],[13,7],[0,66],[1,2]]], +[" 37 key37: value37 ",[[0,30],[1,2],[0,1],[10,2],[0,3],[11,5],[12,1],[0,1],[13,7],[0,66],[1,2]]], +[" 38 key38: value38 ",[[0,30],[1,2],[0,1],[10,2],[0,3],[11,5],[12,1],[0,1],[13,7],[0,66],[1,2]]], +[" 39 key39: value39 ",[[0,30],[1,2],[0,1],[10,2],[0,3],[11,5],[12,1],[0,1],[13,7],[0,66],[1,2]]], +[" 40 - key40: value40 ",[[0,30],[1,2],[14,1],[15,2],[16,2],[14,1],[17,5],[18,1],[19,1],[20,7],[19,66],[1,2]]], +[" 40 + key40: changed ",[[0,30],[1,2],[21,1],[22,2],[23,2],[21,1],[24,5],[25,1],[26,1],[27,7],[26,66],[1,2]]], +[" 41 + key40b: added ",[[0,30],[1,2],[21,1],[22,2],[23,2],[21,1],[24,6],[25,1],[26,1],[27,5],[26,67],[1,2]]], +[" 42 key41: value41 ",[[0,30],[1,2],[0,1],[10,2],[0,3],[11,5],[12,1],[0,1],[13,7],[0,66],[1,2]]], +[" 43 key42: value42 ",[[0,30],[1,2],[0,1],[10,2],[0,3],[11,5],[12,1],[0,1],[13,7],[0,66],[1,2]]], +[" 44 key43: value43 ",[[0,30],[1,2],[0,1],[10,2],[0,3],[11,5],[12,1],[0,1],[13,7],[0,66],[1,2]]], +[" 45 key44: value44 ",[[0,30],[1,2],[0,1],[10,2],[0,3],[11,5],[12,1],[0,1],[13,7],[0,66],[1,2]]], +[" 46 key45: value45 ",[[0,30],[1,2],[0,1],[10,2],[0,3],[11,5],[12,1],[0,1],[13,7],[0,66],[1,2]]], +[" 47 key46: value46 ",[[0,30],[1,2],[0,1],[10,2],[0,3],[11,5],[12,1],[0,1],[13,7],[0,66],[1,2]]], +[" 48 key47: value47 ",[[0,30],[1,2],[0,1],[10,2],[0,3],[11,5],[12,1],[0,1],[13,7],[0,66],[1,2]]], +[" 49 key48: value48 ",[[0,30],[1,2],[0,1],[10,2],[0,3],[11,5],[12,1],[0,1],[13,7],[0,66],[1,2]]], +[" ? help 50 key49: value49 ",[[0,3],[3,5],[0,22],[1,2],[0,1],[10,2],[0,3],[11,5],[12,1],[0,1],[13,7],[0,66],[1,2]]], +[" 51 key50: value50 ",[[0,30],[1,2],[0,1],[10,2],[0,3],[11,5],[12,1],[0,1],[13,7],[0,66],[1,2]]], +[" 52 key51: value51 ",[[0,30],[1,2],[0,1],[10,2],[0,3],[11,5],[12,1],[0,1],[13,7],[0,66],[1,2]]] +]} diff --git a/packages/cli-rs/parity/fixtures/E.15a/route/open.json b/packages/cli-rs/parity/fixtures/E.15a/route/open.json new file mode 100644 index 000000000000..fe72cc97c7bc --- /dev/null +++ b/packages/cli-rs/parity/fixtures/E.15a/route/open.json @@ -0,0 +1,32 @@ +{"width":120,"height":30,"styles":["#ffffffff #141414ff 0","#ffffffff #080808ff 0","#808080ff #141414ff 1","#808080ff #141414ff 0","#4fd6beff #141414ff 0","#c53b53ff #141414ff 0","#4f4f4fff #141414ff 0","#8f8f8fff #141414ff 0","#e06c75ff #141414ff 0","#56b6c2ff #141414ff 0","#7fd88fff #141414ff 0","#343434ff #141414ff 0","#ffffffff #2d1f26ff 0","#8f8f8fff #2d1f26ff 0","#e26a75ff #2d1f26ff 0","#e06c75ff #37222cff 0","#56b6c2ff #37222cff 0","#ffffffff #37222cff 0","#7fd88fff #37222cff 0","#ffffffff #1b2b34ff 0","#8f8f8fff #1b2b34ff 0","#b8db87ff #1b2b34ff 0","#e06c75ff #20303bff 0","#56b6c2ff #20303bff 0","#ffffffff #20303bff 0","#7fd88fff #20303bff 0","#828bb8ff #141414ff 0"],"lines":[ +[" ",[[0,30],[1,2],[0,86],[1,2]]], +[" All · vs origin/main 0/3 config/app.yaml +3 -2 ",[[0,2],[2,3],[3,17],[0,3],[3,3],[0,2],[1,2],[0,1],[3,7],[0,72],[4,2],[0,1],[5,2],[0,1],[1,2]]], +[" ",[[0,30],[1,2],[0,86],[1,2]]], +[" ▾ config 1 key1: value1 ",[[0,2],[6,2],[3,6],[0,20],[1,2],[0,2],[7,1],[0,3],[8,4],[9,1],[0,1],[10,6],[0,68],[1,2]]], +[" │ ≡ app.yaml M 2 key2: value2 ",[[0,2],[11,2],[6,2],[0,21],[3,1],[0,2],[1,2],[0,2],[7,1],[0,3],[8,4],[9,1],[0,1],[10,6],[0,68],[1,2]]], +[" ▾ src 3 key3: value3 ",[[0,2],[6,2],[3,3],[0,23],[1,2],[0,2],[7,1],[0,3],[8,4],[9,1],[0,1],[10,6],[0,68],[1,2]]], +[" │ ▾ util 4 key4: value4 ",[[0,2],[11,2],[6,2],[3,4],[0,20],[1,2],[0,2],[7,1],[0,3],[8,4],[9,1],[0,1],[10,6],[0,68],[1,2]]], +[" │ │ ≡ mod.rs A 5 - key5: value5 ",[[0,2],[11,4],[6,2],[0,19],[4,1],[0,2],[1,2],[12,2],[13,1],[14,2],[12,1],[15,4],[16,1],[17,1],[18,6],[17,68],[1,2]]], +[" │ ≡ main.rs M 5 + key5: changed ",[[0,2],[11,2],[6,2],[0,21],[3,1],[0,2],[1,2],[19,2],[20,1],[21,2],[19,1],[22,4],[23,1],[24,1],[25,7],[24,67],[1,2]]], +[" 6 key6: value6 ",[[0,30],[1,2],[0,2],[7,1],[0,3],[8,4],[9,1],[0,1],[10,6],[0,68],[1,2]]], +[" 7 key7: value7 ",[[0,30],[1,2],[0,2],[7,1],[0,3],[8,4],[9,1],[0,1],[10,6],[0,68],[1,2]]], +[" 8 key8: value8 ",[[0,30],[1,2],[0,2],[7,1],[0,3],[8,4],[9,1],[0,1],[10,6],[0,68],[1,2]]], +[" 9 key9: value9 ",[[0,30],[1,2],[0,2],[7,1],[0,3],[8,4],[9,1],[0,1],[10,6],[0,68],[1,2]]], +[" 10 key10: value10 ",[[0,30],[1,2],[0,1],[7,2],[0,3],[8,5],[9,1],[0,1],[10,7],[0,66],[1,2]]], +[" 11 key11: value11 ",[[0,30],[1,2],[0,1],[7,2],[0,3],[8,5],[9,1],[0,1],[10,7],[0,66],[1,2]]], +[" 12 key12: value12 ",[[0,30],[1,2],[0,1],[7,2],[0,3],[8,5],[9,1],[0,1],[10,7],[0,66],[1,2]]], +[" 13 key13: value13 ",[[0,30],[1,2],[0,1],[7,2],[0,3],[8,5],[9,1],[0,1],[10,7],[0,66],[1,2]]], +[" 14 key14: value14 ",[[0,30],[1,2],[0,1],[7,2],[0,3],[8,5],[9,1],[0,1],[10,7],[0,66],[1,2]]], +[" 15 key15: value15 ",[[0,30],[1,2],[0,1],[7,2],[0,3],[8,5],[9,1],[0,1],[10,7],[0,66],[1,2]]], +[" 16 key16: value16 ",[[0,30],[1,2],[0,1],[7,2],[0,3],[8,5],[9,1],[0,1],[10,7],[0,66],[1,2]]], +[" 17 key17: value17 ",[[0,30],[1,2],[0,1],[7,2],[0,3],[8,5],[9,1],[0,1],[10,7],[0,66],[1,2]]], +[" @@ -28,25 +28,26 @@ key27: value27 ",[[0,30],[1,2],[26,35],[0,51],[1,2]]], +[" 28 key28: value28 ",[[0,30],[1,2],[0,1],[7,2],[0,3],[8,5],[9,1],[0,1],[10,7],[0,66],[1,2]]], +[" 29 key29: value29 ",[[0,30],[1,2],[0,1],[7,2],[0,3],[8,5],[9,1],[0,1],[10,7],[0,66],[1,2]]], +[" 30 key30: value30 ",[[0,30],[1,2],[0,1],[7,2],[0,3],[8,5],[9,1],[0,1],[10,7],[0,66],[1,2]]], +[" 31 key31: value31 ",[[0,30],[1,2],[0,1],[7,2],[0,3],[8,5],[9,1],[0,1],[10,7],[0,66],[1,2]]], +[" 32 key32: value32 ",[[0,30],[1,2],[0,1],[7,2],[0,3],[8,5],[9,1],[0,1],[10,7],[0,66],[1,2]]], +[" ? help 33 key33: value33 ",[[0,3],[3,5],[0,22],[1,2],[0,1],[7,2],[0,3],[8,5],[9,1],[0,1],[10,7],[0,66],[1,2]]], +[" 34 key34: value34 ",[[0,30],[1,2],[0,1],[7,2],[0,3],[8,5],[9,1],[0,1],[10,7],[0,66],[1,2]]], +[" 35 key35: value35 ",[[0,30],[1,2],[0,1],[7,2],[0,3],[8,5],[9,1],[0,1],[10,7],[0,66],[1,2]]] +]} diff --git a/packages/cli-rs/parity/fixtures/E.15a/route/ready.json b/packages/cli-rs/parity/fixtures/E.15a/route/ready.json new file mode 100644 index 000000000000..92229e213ba1 --- /dev/null +++ b/packages/cli-rs/parity/fixtures/E.15a/route/ready.json @@ -0,0 +1,32 @@ +{"width":120,"height":30,"styles":["#ffffffff #080808ff 0","#808080ff #080808ff 0","#ffffffff #080808ff 1","#808080ff #262626ff 0","#ffffffff #464646ff 1","#262626ff #080808ff 0","#484848ff #080808ff 0","#ffffffff #202020ff 0","#00000000 #00000000 0","#202020ff #080808ff 0"],"lines":[ +[" ",[[0,120]]], +[" ",[[0,120]]], +[" ",[[0,120]]], +[" ",[[0,120]]], +[" ",[[0,120]]], +[" ",[[0,120]]], +[" ",[[0,120]]], +[" ",[[0,120]]], +[" ",[[0,120]]], +[" ▄ ",[[0,41],[1,19],[0,1],[2,19],[0,40]]], +[" █▀▀█ █▀▀█ █▀▀█ █▀▀▄ █▀▀▀ █▀▀█ █▀▀█ █▀▀█ ",[[0,41],[1,19],[0,1],[2,19],[0,40]]], +[" █ █ █ █ █▀▀▀ █ █ █ █ █ █ █ █▀▀▀ ",[[0,41],[1,1],[3,2],[1,3],[3,2],[1,3],[3,3],[1,2],[3,2],[1,1],[0,1],[2,1],[4,3],[2,2],[4,2],[2,3],[4,2],[2,3],[4,3],[0,40]]], +[" ▀▀▀▀ █▀▀▀ ▀▀▀▀ ▀▀▀▀ ▀▀▀▀ ▀▀▀▀ ▀▀▀▀ ▀▀▀▀ ",[[0,41],[1,16],[5,2],[1,1],[0,1],[2,19],[0,40]]], +[" ",[[0,120]]], +[" ",[[0,120]]], +[" ┃ ",[[0,23],[6,1],[7,74],[0,22]]], +[" ┃ ",[[0,23],[6,1],[7,2],[8,94]]], +[" ┃ ",[[0,23],[6,1],[7,74],[0,22]]], +[" ┃ ",[[0,23],[6,1],[7,74],[0,22]]], +[" ╹▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀ ",[[0,23],[6,1],[9,74],[0,22]]], +[" /tmp/opencode/packages/tui:main shift+tab agents ctrl+p commands ",[[0,23],[1,31],[0,21],[1,6],[0,9],[1,8],[0,22]]], +[" ",[[0,120]]], +[" ",[[0,120]]], +[" ",[[0,120]]], +[" ",[[0,120]]], +[" ",[[0,120]]], +[" ",[[0,120]]], +[" ",[[0,120]]], +[" test ",[[0,114],[1,4],[0,2]]], +[" ",[[0,120]]] +]} diff --git a/packages/cli-rs/parity/fixtures/E.15a/route/single-reviewed.json b/packages/cli-rs/parity/fixtures/E.15a/route/single-reviewed.json new file mode 100644 index 000000000000..c57af1bcbe1a --- /dev/null +++ b/packages/cli-rs/parity/fixtures/E.15a/route/single-reviewed.json @@ -0,0 +1,32 @@ +{"width":120,"height":30,"styles":["#ffffffff #141414ff 0","#ffffffff #080808ff 0","#808080ff #141414ff 1","#808080ff #141414ff 0","#4fd6beff #141414ff 0","#c53b53ff #141414ff 0","#4f4f4fff #141414ff 0","#ffffffff #1b2b34ff 0","#8f8f8fff #1b2b34ff 0","#b8db87ff #1b2b34ff 0","#9d7cd8ff #20303bff 4","#ffffffff #20303bff 0","#9d7cd8ff #20303bff 0","#e5c07bff #20303bff 0","#56b6c2ff #20303bff 0","#343434ff #141414ff 0","#7699feff #141414ff 1"],"lines":[ +[" ",[[0,30],[1,2],[0,86],[1,2]]], +[" All · vs origin/main 1/3 src/util/mod.rs +1 -0 ",[[0,2],[2,3],[3,17],[0,3],[3,3],[0,2],[1,2],[0,1],[3,9],[0,70],[4,2],[0,1],[5,2],[0,1],[1,2]]], +[" ",[[0,30],[1,2],[0,86],[1,2]]], +[" ▾ config 1 + pub mod text; ",[[0,2],[6,2],[3,6],[0,20],[1,2],[7,1],[8,1],[9,2],[7,1],[10,3],[11,1],[12,3],[11,1],[13,4],[14,1],[11,68],[1,2]]], +[" │ ≡ app.yaml ✓ ",[[0,2],[15,2],[6,2],[3,8],[0,13],[3,1],[0,2],[1,90]]], +[" ▾ src ",[[0,2],[6,2],[3,3],[0,23],[1,90]]], +[" │ ▾ util ",[[0,2],[15,2],[6,2],[3,4],[0,20],[1,90]]], +[" │ │ ≡ mod.rs A ",[[0,2],[15,4],[6,2],[16,6],[0,13],[4,1],[0,2],[1,90]]], +[" │ ≡ main.rs M ",[[0,2],[15,2],[6,2],[0,21],[3,1],[0,2],[1,90]]], +[" ",[[0,30],[1,90]]], +[" ",[[0,30],[1,90]]], +[" ",[[0,30],[1,90]]], +[" ",[[0,30],[1,90]]], +[" ",[[0,30],[1,90]]], +[" ",[[0,30],[1,90]]], +[" ",[[0,30],[1,90]]], +[" ",[[0,30],[1,90]]], +[" ",[[0,30],[1,90]]], +[" ",[[0,30],[1,90]]], +[" ",[[0,30],[1,90]]], +[" ",[[0,30],[1,90]]], +[" ",[[0,30],[1,90]]], +[" ",[[0,30],[1,90]]], +[" ",[[0,30],[1,90]]], +[" ",[[0,30],[1,90]]], +[" ",[[0,30],[1,90]]], +[" ",[[0,30],[1,90]]], +[" ? help ",[[0,3],[3,5],[0,22],[1,90]]], +[" ",[[0,30],[1,90]]], +[" ",[[0,30],[1,90]]] +]} diff --git a/packages/cli-rs/parity/fixtures/E.15a/route/single.json b/packages/cli-rs/parity/fixtures/E.15a/route/single.json new file mode 100644 index 000000000000..ba3fa15b09f4 --- /dev/null +++ b/packages/cli-rs/parity/fixtures/E.15a/route/single.json @@ -0,0 +1,32 @@ +{"width":120,"height":30,"styles":["#ffffffff #141414ff 0","#ffffffff #080808ff 0","#808080ff #141414ff 1","#808080ff #141414ff 0","#4fd6beff #141414ff 0","#c53b53ff #141414ff 0","#4f4f4fff #141414ff 0","#8f8f8fff #141414ff 0","#e06c75ff #141414ff 0","#56b6c2ff #141414ff 0","#7fd88fff #141414ff 0","#343434ff #141414ff 0","#7699feff #141414ff 1","#ffffffff #2d1f26ff 0","#8f8f8fff #2d1f26ff 0","#e26a75ff #2d1f26ff 0","#e06c75ff #37222cff 0","#56b6c2ff #37222cff 0","#ffffffff #37222cff 0","#7fd88fff #37222cff 0","#ffffffff #1b2b34ff 0","#8f8f8fff #1b2b34ff 0","#b8db87ff #1b2b34ff 0","#e06c75ff #20303bff 0","#56b6c2ff #20303bff 0","#ffffffff #20303bff 0","#7fd88fff #20303bff 0","#828bb8ff #141414ff 0"],"lines":[ +[" ",[[0,30],[1,2],[0,86],[1,2]]], +[" All · vs origin/main 0/3 config/app.yaml +3 -2 ",[[0,2],[2,3],[3,17],[0,3],[3,3],[0,2],[1,2],[0,1],[3,7],[0,72],[4,2],[0,1],[5,2],[0,1],[1,2]]], +[" ",[[0,30],[1,2],[0,86],[1,2]]], +[" ▾ config 1 key1: value1 ",[[0,2],[6,2],[3,6],[0,20],[1,2],[0,2],[7,1],[0,3],[8,4],[9,1],[0,1],[10,6],[0,68],[1,2]]], +[" │ ≡ app.yaml M 2 key2: value2 ",[[0,2],[11,2],[6,2],[12,8],[0,13],[3,1],[0,2],[1,2],[0,2],[7,1],[0,3],[8,4],[9,1],[0,1],[10,6],[0,68],[1,2]]], +[" ▾ src 3 key3: value3 ",[[0,2],[6,2],[3,3],[0,23],[1,2],[0,2],[7,1],[0,3],[8,4],[9,1],[0,1],[10,6],[0,68],[1,2]]], +[" │ ▾ util 4 key4: value4 ",[[0,2],[11,2],[6,2],[3,4],[0,20],[1,2],[0,2],[7,1],[0,3],[8,4],[9,1],[0,1],[10,6],[0,68],[1,2]]], +[" │ │ ≡ mod.rs A 5 - key5: value5 ",[[0,2],[11,4],[6,2],[0,19],[4,1],[0,2],[1,2],[13,2],[14,1],[15,2],[13,1],[16,4],[17,1],[18,1],[19,6],[18,68],[1,2]]], +[" │ ≡ main.rs M 5 + key5: changed ",[[0,2],[11,2],[6,2],[0,21],[3,1],[0,2],[1,2],[20,2],[21,1],[22,2],[20,1],[23,4],[24,1],[25,1],[26,7],[25,67],[1,2]]], +[" 6 key6: value6 ",[[0,30],[1,2],[0,2],[7,1],[0,3],[8,4],[9,1],[0,1],[10,6],[0,68],[1,2]]], +[" 7 key7: value7 ",[[0,30],[1,2],[0,2],[7,1],[0,3],[8,4],[9,1],[0,1],[10,6],[0,68],[1,2]]], +[" 8 key8: value8 ",[[0,30],[1,2],[0,2],[7,1],[0,3],[8,4],[9,1],[0,1],[10,6],[0,68],[1,2]]], +[" 9 key9: value9 ",[[0,30],[1,2],[0,2],[7,1],[0,3],[8,4],[9,1],[0,1],[10,6],[0,68],[1,2]]], +[" 10 key10: value10 ",[[0,30],[1,2],[0,1],[7,2],[0,3],[8,5],[9,1],[0,1],[10,7],[0,66],[1,2]]], +[" 11 key11: value11 ",[[0,30],[1,2],[0,1],[7,2],[0,3],[8,5],[9,1],[0,1],[10,7],[0,66],[1,2]]], +[" 12 key12: value12 ",[[0,30],[1,2],[0,1],[7,2],[0,3],[8,5],[9,1],[0,1],[10,7],[0,66],[1,2]]], +[" 13 key13: value13 ",[[0,30],[1,2],[0,1],[7,2],[0,3],[8,5],[9,1],[0,1],[10,7],[0,66],[1,2]]], +[" 14 key14: value14 ",[[0,30],[1,2],[0,1],[7,2],[0,3],[8,5],[9,1],[0,1],[10,7],[0,66],[1,2]]], +[" 15 key15: value15 ",[[0,30],[1,2],[0,1],[7,2],[0,3],[8,5],[9,1],[0,1],[10,7],[0,66],[1,2]]], +[" 16 key16: value16 ",[[0,30],[1,2],[0,1],[7,2],[0,3],[8,5],[9,1],[0,1],[10,7],[0,66],[1,2]]], +[" 17 key17: value17 ",[[0,30],[1,2],[0,1],[7,2],[0,3],[8,5],[9,1],[0,1],[10,7],[0,66],[1,2]]], +[" @@ -28,25 +28,26 @@ key27: value27 ",[[0,30],[1,2],[27,35],[0,51],[1,2]]], +[" 28 key28: value28 ",[[0,30],[1,2],[0,1],[7,2],[0,3],[8,5],[9,1],[0,1],[10,7],[0,66],[1,2]]], +[" 29 key29: value29 ",[[0,30],[1,2],[0,1],[7,2],[0,3],[8,5],[9,1],[0,1],[10,7],[0,66],[1,2]]], +[" 30 key30: value30 ",[[0,30],[1,2],[0,1],[7,2],[0,3],[8,5],[9,1],[0,1],[10,7],[0,66],[1,2]]], +[" 31 key31: value31 ",[[0,30],[1,2],[0,1],[7,2],[0,3],[8,5],[9,1],[0,1],[10,7],[0,66],[1,2]]], +[" 32 key32: value32 ",[[0,30],[1,2],[0,1],[7,2],[0,3],[8,5],[9,1],[0,1],[10,7],[0,66],[1,2]]], +[" ? help 33 key33: value33 ",[[0,3],[3,5],[0,22],[1,2],[0,1],[7,2],[0,3],[8,5],[9,1],[0,1],[10,7],[0,66],[1,2]]], +[" 34 key34: value34 ",[[0,30],[1,2],[0,1],[7,2],[0,3],[8,5],[9,1],[0,1],[10,7],[0,66],[1,2]]], +[" 35 key35: value35 ",[[0,30],[1,2],[0,1],[7,2],[0,3],[8,5],[9,1],[0,1],[10,7],[0,66],[1,2]]] +]} diff --git a/packages/cli-rs/parity/fixtures/E.15a/viewer.app.json b/packages/cli-rs/parity/fixtures/E.15a/viewer.app.json new file mode 100644 index 000000000000..674dfe6beb06 --- /dev/null +++ b/packages/cli-rs/parity/fixtures/E.15a/viewer.app.json @@ -0,0 +1,79 @@ +{ + "scenario": "E.15a/viewer", + "width": 140, + "height": 40, + "directory": "/tmp/opencode/packages/tui", + "config": { + "experimental": {"new-designs":true}, + "animations": false, + "theme": {"name":"opencode"} + }, + "args": { + "sessionID": "ses_d" + }, + "routes": [ + {"path":"/api/session/ses_d","json":{"data":{"id":"ses_d","title":"Review the parser","projectID":"proj_test","cost":0,"tokens":{"input":0,"output":0,"reasoning":0,"cache":{"read":0,"write":0}},"time":{"created":2,"updated":2},"location":{"directory":"/tmp/opencode/packages/tui"}}}}, + {"path":"/api/session/ses_d/message","json":{"data":[{"id":"msg_2","type":"assistant","agent":"build","model":{"providerID":"provider","id":"model"},"content":[{"type":"text","text":"The parser changes are ready."}],"finish":"stop","time":{"created":2,"completed":3}},{"id":"msg_1","type":"user","text":"Show me the diff","time":{"created":1}}],"cursor":{}}}, + {"path":"/api/session/ses_d/inbox","json":{"data":[]}}, + {"path":"/api/vcs/base","json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":{"name":"main","ref":"main","source":"default"}}}, + {"path":"/api/vcs/diff","json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":[{"file":"README.md","patch":"diff --git a/README.md b/README.md\nindex 5db345c..3dc9dd5 100644\n--- a/README.md\n+++ b/README.md\n@@ -1,3 +1,3 @@\n # Parser\n \n-Parses the token stream.\n+Parses the token stream into a tree.\n","additions":1,"deletions":1,"status":"modified"},{"file":"docs/old.md","patch":"diff --git a/docs/old.md b/docs/old.md\ndeleted file mode 100644\nindex 14bd4ee..0000000\n--- a/docs/old.md\n+++ /dev/null\n@@ -1,3 +0,0 @@\n-Old notes\n-about the lexer\n-and more\n","additions":0,"deletions":3,"status":"deleted"},{"file":"src/lexer/token.ts","patch":"diff --git a/src/lexer/token.ts b/src/lexer/token.ts\nnew file mode 100644\nindex 0000000..5b8e078\n--- /dev/null\n+++ b/src/lexer/token.ts\n@@ -0,0 +1,4 @@\n+export type Token = {\n+ kind: string\n+ text: string\n+}\n","additions":4,"deletions":0,"status":"added"},{"file":"src/parser.ts","patch":"diff --git a/src/parser.ts b/src/parser.ts\nindex 60f4cfc..a59097e 100644\n--- a/src/parser.ts\n+++ b/src/parser.ts\n@@ -1,15 +1,15 @@\n export const rule1 = 1\n export const rule2 = 2\n-export const rule3 = 3\n+export const rule3 = 3 * 2\n export const rule4 = 4\n export const rule5 = 5\n export const rule6 = 6\n export const rule7 = 7\n export const rule8 = 8\n export const rule9 = 9\n export const rule10 = 10\n export const rule11 = 11\n export const rule12 = 12\n export const rule13 = 13\n export const rule14 = 14\n export const rule15 = 15\n@@ -24,17 +24,18 @@ export const rule23 = 23\n export const rule24 = 24\n export const rule25 = 25\n export const rule26 = 26\n export const rule27 = 27\n export const rule28 = 28\n export const rule29 = 29\n export const rule30 = 30\n export const rule31 = 31\n export const rule32 = 32\n export const rule33 = 33\n export const rule34 = 34\n export const rule35 = 35\n+export const extra = true\n export const rule36 = 36\n export const rule37 = 37\n export const rule38 = 38\n export const rule39 = 39\n export const rule40 = 40\n","additions":2,"deletions":1,"status":"modified"}]}} + ], + "steps": [ + {"checkpoint":"session","until":"The parser changes are ready.","fixture":"E.15a/viewer/session"}, + {"type":"/diff"}, + {"keys":["enter"]}, + {"checkpoint":"panel","until":"vs main","fixture":"E.15a/viewer/panel"}, + {"keys":["]"]}, + {"checkpoint":"hunk","fixture":"E.15a/viewer/hunk"}, + {"keys":["n"]}, + {"checkpoint":"file","fixture":"E.15a/viewer/file"}, + {"keys":["m"]}, + {"checkpoint":"reviewed","fixture":"E.15a/viewer/reviewed"}, + {"keys":["f"]}, + {"checkpoint":"full","until":"▾ src","fixture":"E.15a/viewer/full"}, + {"keys":["v"]}, + {"checkpoint":"unified","fixture":"E.15a/viewer/unified"}, + {"keys":["s"]}, + {"checkpoint":"single","fixture":"E.15a/viewer/single"}, + {"keys":["b"]}, + {"checkpoint":"no-tree","fixture":"E.15a/viewer/no-tree"}, + {"keys":["q"]}, + {"checkpoint":"closed","until":"The parser changes are ready.","fixture":"E.15a/viewer/closed"} + ], + "requests": { + "writes": [], + "reads": [ + {"method":"GET","path":"/api/agent","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":[]}}, + {"method":"GET","path":"/api/command","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":[]}}, + {"method":"GET","path":"/api/config","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":[]}, + {"method":"GET","path":"/api/experimental/job","query":{"descendants":["true"],"sessionID":["ses_d"],"status":["running"]},"status":200,"json":{"data":[]}}, + {"method":"GET","path":"/api/experimental/migration/v1","query":{},"status":200,"json":{"status":"completed"}}, + {"method":"GET","path":"/api/experimental/session/ses_d/terminal","query":{},"status":200,"json":{"data":[]}}, + {"method":"GET","path":"/api/form","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode"}},"data":[]}}, + {"method":"GET","path":"/api/fs/list","query":{"location[directory]":["<cwd>"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":[]}}, + {"method":"GET","path":"/api/info","query":{},"status":200,"json":{"version":"test","pid":0,"urls":[],"paths":{"tmp":"/tmp"},"capabilities":{"persistentPty":true}}}, + {"method":"GET","path":"/api/integration","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":[]}}, + {"method":"GET","path":"/api/location","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}}}, + {"method":"GET","path":"/api/mcp","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":[]}}, + {"method":"GET","path":"/api/mcp/resource","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":{"resources":[],"templates":[]}}}, + {"method":"GET","path":"/api/model","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":[]}}, + {"method":"GET","path":"/api/plugin","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":[]}}, + {"method":"GET","path":"/api/project","query":{},"status":200,"json":[]}, + {"method":"GET","path":"/api/provider","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":[]}}, + {"method":"GET","path":"/api/reference","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode/packages/tui","canonical":"/tmp/opencode/packages/tui"}},"data":[]}}, + {"method":"GET","path":"/api/session","query":{"limit":["200"],"order":["desc"],"parentID":["ses_d"]},"status":200,"json":{"data":[],"cursor":{}}}, + {"method":"GET","path":"/api/session/active","query":{},"status":200,"json":{"data":{}}}, + {"method":"GET","path":"/api/session/ses_d","query":{},"status":200,"json":{"data":{"id":"ses_d","title":"Review the parser","projectID":"proj_test","cost":0,"tokens":{"input":0,"output":0,"reasoning":0,"cache":{"read":0,"write":0}},"time":{"created":2,"updated":2},"location":{"directory":"/tmp/opencode/packages/tui"}}}}, + {"method":"GET","path":"/api/session/ses_d/form","query":{},"status":200,"json":{"data":[]}}, + {"method":"GET","path":"/api/session/ses_d/inbox","query":{},"status":200,"json":{"data":[]}}, + {"method":"GET","path":"/api/session/ses_d/message","query":{"limit":["20"],"order":["desc"]},"status":200,"json":{"data":[{"id":"msg_2","type":"assistant","agent":"build","model":{"providerID":"provider","id":"model"},"content":[{"type":"text","text":"The parser changes are ready."}],"finish":"stop","time":{"created":2,"completed":3}},{"id":"msg_1","type":"user","text":"Show me the diff","time":{"created":1}}],"cursor":{}}}, + {"method":"GET","path":"/api/session/ses_d/permission","query":{},"status":200,"json":{"data":[]}}, + {"method":"GET","path":"/api/shell","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":[]}}, + {"method":"GET","path":"/api/skill","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":[]}}, + {"method":"GET","path":"/api/vcs","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":{"branch":{"current":"main","default":"main"}}}}, + {"method":"GET","path":"/api/vcs/base","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":{"name":"main","ref":"main","source":"default"}}}, + {"method":"GET","path":"/api/vcs/diff","query":{"base":["main"],"context":["12"],"location[directory]":["/tmp/opencode/packages/tui"],"mode":["branch"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":[{"file":"README.md","patch":"diff --git a/README.md b/README.md\nindex 5db345c..3dc9dd5 100644\n--- a/README.md\n+++ b/README.md\n@@ -1,3 +1,3 @@\n # Parser\n \n-Parses the token stream.\n+Parses the token stream into a tree.\n","additions":1,"deletions":1,"status":"modified"},{"file":"docs/old.md","patch":"diff --git a/docs/old.md b/docs/old.md\ndeleted file mode 100644\nindex 14bd4ee..0000000\n--- a/docs/old.md\n+++ /dev/null\n@@ -1,3 +0,0 @@\n-Old notes\n-about the lexer\n-and more\n","additions":0,"deletions":3,"status":"deleted"},{"file":"src/lexer/token.ts","patch":"diff --git a/src/lexer/token.ts b/src/lexer/token.ts\nnew file mode 100644\nindex 0000000..5b8e078\n--- /dev/null\n+++ b/src/lexer/token.ts\n@@ -0,0 +1,4 @@\n+export type Token = {\n+ kind: string\n+ text: string\n+}\n","additions":4,"deletions":0,"status":"added"},{"file":"src/parser.ts","patch":"diff --git a/src/parser.ts b/src/parser.ts\nindex 60f4cfc..a59097e 100644\n--- a/src/parser.ts\n+++ b/src/parser.ts\n@@ -1,15 +1,15 @@\n export const rule1 = 1\n export const rule2 = 2\n-export const rule3 = 3\n+export const rule3 = 3 * 2\n export const rule4 = 4\n export const rule5 = 5\n export const rule6 = 6\n export const rule7 = 7\n export const rule8 = 8\n export const rule9 = 9\n export const rule10 = 10\n export const rule11 = 11\n export const rule12 = 12\n export const rule13 = 13\n export const rule14 = 14\n export const rule15 = 15\n@@ -24,17 +24,18 @@ export const rule23 = 23\n export const rule24 = 24\n export const rule25 = 25\n export const rule26 = 26\n export const rule27 = 27\n export const rule28 = 28\n export const rule29 = 29\n export const rule30 = 30\n export const rule31 = 31\n export const rule32 = 32\n export const rule33 = 33\n export const rule34 = 34\n export const rule35 = 35\n+export const extra = true\n export const rule36 = 36\n export const rule37 = 37\n export const rule38 = 38\n export const rule39 = 39\n export const rule40 = 40\n","additions":2,"deletions":1,"status":"modified"}]}}, + {"method":"POST","path":"/api/rpc/opencode.goal/get","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"body":{"input":{"sessionID":"ses_d"}},"status":200,"json":{"output":null}} + ] + } +} diff --git a/packages/cli-rs/parity/fixtures/E.15a/viewer/closed.json b/packages/cli-rs/parity/fixtures/E.15a/viewer/closed.json new file mode 100644 index 000000000000..7394a0ba65af --- /dev/null +++ b/packages/cli-rs/parity/fixtures/E.15a/viewer/closed.json @@ -0,0 +1,42 @@ +{"width":140,"height":40,"styles":["#ffffffff #202020ff 0","#ffffffff #202020ff 1","#808080ff #080808ff 0","#ffffffff #080808ff 0","#ffffffff #141414ff 0","#7699feff #141414ff 0","#ffffffff #141414ff 1","#eeeeeeff #080808ff 0","#7699feff #080808ff 0","#808080ff #202020ff 0","#484848ff #080808ff 0","#202020ff #080808ff 0","#808080ff #141414ff 0"],"lines":[ +[" Review the parser + ",[[0,3],[1,17],[0,12],[2,3],[3,105]]], +[" ",[[3,98],[4,42]]], +[" ┃ Review the parser ",[[3,2],[5,1],[4,93],[3,2],[4,2],[6,17],[4,23]]], +[" ┃ Show me the diff ",[[3,2],[5,1],[4,93],[3,2],[4,42]]], +[" ┃ ",[[3,2],[5,1],[4,93],[3,2],[4,42]]], +[" ",[[3,98],[4,42]]], +[" The parser changes are ready. ",[[3,5],[7,29],[3,64],[4,42]]], +[" ",[[3,98],[4,42]]], +[" Build · provider/model · 2ms ",[[3,5],[8,5],[2,23],[3,65],[4,42]]], +[" ",[[3,98],[4,42]]], +[" ",[[3,98],[4,42]]], +[" ",[[3,98],[4,42]]], +[" ",[[3,98],[4,42]]], +[" ",[[3,98],[4,42]]], +[" ",[[3,98],[4,42]]], +[" ",[[3,98],[4,42]]], +[" ",[[3,98],[4,42]]], +[" ",[[3,98],[4,42]]], +[" ",[[3,98],[4,42]]], +[" ",[[3,98],[4,42]]], +[" ",[[3,98],[4,42]]], +[" ",[[3,98],[4,42]]], +[" ",[[3,98],[4,42]]], +[" ",[[3,98],[4,42]]], +[" ",[[3,98],[4,42]]], +[" ",[[3,98],[4,2],[0,38],[4,2]]], +[" ⬖ Getting started ✕ ",[[3,98],[4,2],[0,4],[1,15],[0,16],[9,1],[0,2],[4,2]]], +[" ",[[3,98],[4,2],[0,38],[4,2]]], +[" OpenCode includes free models so ",[[3,98],[4,2],[0,4],[9,32],[0,2],[4,2]]], +[" you can start immediately. ",[[3,98],[4,2],[0,4],[9,26],[0,8],[4,2]]], +[" ",[[3,98],[4,2],[0,38],[4,2]]], +[" Connect from 75+ providers to ",[[3,98],[4,2],[0,4],[9,30],[0,4],[4,2]]], +[" use other models, including ",[[3,98],[4,2],[0,4],[9,28],[0,6],[4,2]]], +[" ┃ Claude, GPT, Gemini etc ",[[3,2],[10,1],[0,93],[3,2],[4,2],[0,4],[9,23],[0,11],[4,2]]], +[" ┃ ",[[3,2],[10,1],[0,93],[3,2],[4,2],[0,38],[4,2]]], +[" ┃ Connect provider /connect ",[[3,2],[10,1],[0,93],[3,2],[4,2],[0,28],[9,8],[0,2],[4,2]]], +[" ┃ ",[[3,2],[10,1],[0,93],[3,2],[4,2],[0,38],[4,2]]], +[" ╹▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀ ",[[3,2],[10,1],[11,93],[3,2],[4,42]]], +[" /tmp/opencode/packages/tui:main shift+tab agents ctrl+p commands /tmp/opencode/packages/tui:main ",[[3,2],[2,31],[3,40],[2,6],[3,9],[2,8],[3,2],[4,2],[12,31],[4,9]]], +[" ",[[3,98],[4,42]]] +]} diff --git a/packages/cli-rs/parity/fixtures/E.15a/viewer/file.json b/packages/cli-rs/parity/fixtures/E.15a/viewer/file.json new file mode 100644 index 000000000000..b879afdab73d --- /dev/null +++ b/packages/cli-rs/parity/fixtures/E.15a/viewer/file.json @@ -0,0 +1,42 @@ +{"width":140,"height":40,"styles":["#ffffffff #202020ff 0","#ffffffff #202020ff 1","#808080ff #080808ff 0","#ffffffff #080808ff 0","#ffffffff #141414ff 0","#7699feff #141414ff 0","#808080ff #141414ff 1","#808080ff #141414ff 0","#4fd6beff #141414ff 0","#c53b53ff #141414ff 0","#eeeeeeff #080808ff 0","#8f8f8fff #141414ff 0","#9d7cd8ff #141414ff 0","#9d7cd8ff #141414ff 4","#e06c75ff #141414ff 0","#56b6c2ff #141414ff 0","#f5a742ff #141414ff 0","#7699feff #080808ff 0","#ffffffff #2d1f26ff 0","#8f8f8fff #2d1f26ff 0","#e26a75ff #2d1f26ff 0","#9d7cd8ff #37222cff 0","#ffffffff #37222cff 0","#9d7cd8ff #37222cff 4","#e06c75ff #37222cff 0","#56b6c2ff #37222cff 0","#f5a742ff #37222cff 0","#ffffffff #1b2b34ff 0","#8f8f8fff #1b2b34ff 0","#b8db87ff #1b2b34ff 0","#9d7cd8ff #20303bff 0","#ffffffff #20303bff 0","#9d7cd8ff #20303bff 4","#e06c75ff #20303bff 0","#56b6c2ff #20303bff 0","#f5a742ff #20303bff 0","#828bb8ff #141414ff 0","#484848ff #080808ff 0","#202020ff #080808ff 0","#141414ff #080808ff 0","#808080ff #080808ff 2","#23344bff #080808ff 0"],"lines":[ +[" Review the parser + ",[[0,3],[1,17],[0,12],[2,3],[3,105]]], +[" ",[[3,70],[4,70]]], +[" ┃ All · vs main 0/4 ",[[3,2],[5,1],[4,65],[3,2],[4,2],[6,3],[7,10],[4,51],[7,3],[4,1]]], +[" ┃ Show me the diff ",[[3,2],[5,1],[4,65],[3,2],[4,70]]], +[" ┃ src/parser.ts +2 -1 ",[[3,2],[5,1],[4,65],[3,2],[4,2],[7,4],[4,58],[8,2],[4,1],[9,2],[4,1]]], +[" ",[[3,70],[4,70]]], +[" The parser changes are ready. 1 export const rule1 = 1 ",[[3,5],[10,29],[3,36],[4,3],[11,1],[4,3],[12,6],[4,1],[13,5],[4,1],[14,5],[4,1],[15,1],[4,1],[16,1],[4,41]]], +[" 2 export const rule2 = 2 ",[[3,70],[4,3],[11,1],[4,3],[12,6],[4,1],[13,5],[4,1],[14,5],[4,1],[15,1],[4,1],[16,1],[4,41]]], +[" Build · provider/model · 2ms 3 - export const rule3 = 3 ",[[3,5],[17,5],[2,23],[3,37],[18,3],[19,1],[20,2],[18,1],[21,6],[22,1],[23,5],[22,1],[24,5],[22,1],[25,1],[22,1],[26,1],[22,41]]], +[" 3 + export const rule3 = 3 * 2 ",[[3,70],[27,3],[28,1],[29,2],[27,1],[30,6],[31,1],[32,5],[31,1],[33,5],[31,1],[34,1],[31,1],[35,1],[31,1],[34,1],[31,1],[35,1],[31,37]]], +[" 4 export const rule4 = 4 ",[[3,70],[4,3],[11,1],[4,3],[12,6],[4,1],[13,5],[4,1],[14,5],[4,1],[15,1],[4,1],[16,1],[4,41]]], +[" 5 export const rule5 = 5 ",[[3,70],[4,3],[11,1],[4,3],[12,6],[4,1],[13,5],[4,1],[14,5],[4,1],[15,1],[4,1],[16,1],[4,41]]], +[" 6 export const rule6 = 6 ",[[3,70],[4,3],[11,1],[4,3],[12,6],[4,1],[13,5],[4,1],[14,5],[4,1],[15,1],[4,1],[16,1],[4,41]]], +[" 7 export const rule7 = 7 ",[[3,70],[4,3],[11,1],[4,3],[12,6],[4,1],[13,5],[4,1],[14,5],[4,1],[15,1],[4,1],[16,1],[4,41]]], +[" 8 export const rule8 = 8 ",[[3,70],[4,3],[11,1],[4,3],[12,6],[4,1],[13,5],[4,1],[14,5],[4,1],[15,1],[4,1],[16,1],[4,41]]], +[" 9 export const rule9 = 9 ",[[3,70],[4,3],[11,1],[4,3],[12,6],[4,1],[13,5],[4,1],[14,5],[4,1],[15,1],[4,1],[16,1],[4,41]]], +[" 10 export const rule10 = 10 ",[[3,70],[4,2],[11,2],[4,3],[12,6],[4,1],[13,5],[4,1],[14,6],[4,1],[15,1],[4,1],[16,2],[4,39]]], +[" 11 export const rule11 = 11 ",[[3,70],[4,2],[11,2],[4,3],[12,6],[4,1],[13,5],[4,1],[14,6],[4,1],[15,1],[4,1],[16,2],[4,39]]], +[" 12 export const rule12 = 12 ",[[3,70],[4,2],[11,2],[4,3],[12,6],[4,1],[13,5],[4,1],[14,6],[4,1],[15,1],[4,1],[16,2],[4,39]]], +[" 13 export const rule13 = 13 ",[[3,70],[4,2],[11,2],[4,3],[12,6],[4,1],[13,5],[4,1],[14,6],[4,1],[15,1],[4,1],[16,2],[4,39]]], +[" 14 export const rule14 = 14 ",[[3,70],[4,2],[11,2],[4,3],[12,6],[4,1],[13,5],[4,1],[14,6],[4,1],[15,1],[4,1],[16,2],[4,39]]], +[" 15 export const rule15 = 15 ",[[3,70],[4,2],[11,2],[4,3],[12,6],[4,1],[13,5],[4,1],[14,6],[4,1],[15,1],[4,1],[16,2],[4,39]]], +[" @@ -24,17 +24,18 @@ export const rule23 = 23 ",[[3,70],[36,45],[4,25]]], +[" 24 export const rule24 = 24 ",[[3,70],[4,2],[11,2],[4,3],[12,6],[4,1],[13,5],[4,1],[14,6],[4,1],[15,1],[4,1],[16,2],[4,39]]], +[" 25 export const rule25 = 25 ",[[3,70],[4,2],[11,2],[4,3],[12,6],[4,1],[13,5],[4,1],[14,6],[4,1],[15,1],[4,1],[16,2],[4,39]]], +[" 26 export const rule26 = 26 ",[[3,70],[4,2],[11,2],[4,3],[12,6],[4,1],[13,5],[4,1],[14,6],[4,1],[15,1],[4,1],[16,2],[4,39]]], +[" 27 export const rule27 = 27 ",[[3,70],[4,2],[11,2],[4,3],[12,6],[4,1],[13,5],[4,1],[14,6],[4,1],[15,1],[4,1],[16,2],[4,39]]], +[" 28 export const rule28 = 28 ",[[3,70],[4,2],[11,2],[4,3],[12,6],[4,1],[13,5],[4,1],[14,6],[4,1],[15,1],[4,1],[16,2],[4,39]]], +[" 29 export const rule29 = 29 ",[[3,70],[4,2],[11,2],[4,3],[12,6],[4,1],[13,5],[4,1],[14,6],[4,1],[15,1],[4,1],[16,2],[4,39]]], +[" 30 export const rule30 = 30 ",[[3,70],[4,2],[11,2],[4,3],[12,6],[4,1],[13,5],[4,1],[14,6],[4,1],[15,1],[4,1],[16,2],[4,39]]], +[" 31 export const rule31 = 31 ",[[3,70],[4,2],[11,2],[4,3],[12,6],[4,1],[13,5],[4,1],[14,6],[4,1],[15,1],[4,1],[16,2],[4,39]]], +[" 32 export const rule32 = 32 ",[[3,70],[4,2],[11,2],[4,3],[12,6],[4,1],[13,5],[4,1],[14,6],[4,1],[15,1],[4,1],[16,2],[4,39]]], +[" 33 export const rule33 = 33 ",[[3,70],[4,2],[11,2],[4,3],[12,6],[4,1],[13,5],[4,1],[14,6],[4,1],[15,1],[4,1],[16,2],[4,39]]], +[" ┃ 34 export const rule34 = 34 ",[[3,2],[37,1],[0,65],[3,2],[4,2],[11,2],[4,3],[12,6],[4,1],[13,5],[4,1],[14,6],[4,1],[15,1],[4,1],[16,2],[4,39]]], +[" ┃ 35 export const rule35 = 35 ",[[3,2],[37,1],[0,65],[3,2],[4,2],[11,2],[4,3],[12,6],[4,1],[13,5],[4,1],[14,6],[4,1],[15,1],[4,1],[16,2],[4,39]]], +[" ┃ 36 + export const extra = true ",[[3,2],[37,1],[0,65],[3,2],[27,2],[28,2],[29,2],[27,1],[30,6],[31,1],[32,5],[31,1],[33,5],[31,1],[34,1],[31,1],[35,4],[31,38]]], +[" ┃ 37 export const rule36 = 36 ",[[3,2],[37,1],[0,65],[3,2],[4,2],[11,2],[4,3],[12,6],[4,1],[13,5],[4,1],[14,6],[4,1],[15,1],[4,1],[16,2],[4,39]]], +[" ╹▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀ ▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀",[[3,2],[37,1],[38,65],[3,2],[39,70]]], +[" /tmp/opencode/packages/tui:main shift+tab agents ctrl+p commands ctrl+x ← focus prompt ? see all ",[[3,2],[2,31],[3,2],[40,16],[3,2],[40,15],[3,4],[41,8],[2,13],[3,38],[2,8],[3,1]]], +[" ",[[3,140]]] +]} diff --git a/packages/cli-rs/parity/fixtures/E.15a/viewer/full.json b/packages/cli-rs/parity/fixtures/E.15a/viewer/full.json new file mode 100644 index 000000000000..e4f46c80efeb --- /dev/null +++ b/packages/cli-rs/parity/fixtures/E.15a/viewer/full.json @@ -0,0 +1,42 @@ +{"width":140,"height":40,"styles":["#ffffffff #141414ff 0","#ffffffff #080808ff 0","#808080ff #141414ff 1","#808080ff #141414ff 0","#4fd6beff #141414ff 0","#c53b53ff #141414ff 0","#4f4f4fff #141414ff 0","#ffffffff #2d1f26ff 0","#8f8f8fff #2d1f26ff 0","#e26a75ff #2d1f26ff 0","#ffffffff #37222cff 0","#343434ff #141414ff 0","#080808ff #080808ff 0","#141414ff #080808ff 0","#7699feff #141414ff 1","#ffffffff #1b2b34ff 0","#8f8f8fff #1b2b34ff 0","#b8db87ff #1b2b34ff 0","#9d7cd8ff #20303bff 0","#ffffffff #20303bff 0","#9d7cd8ff #20303bff 4","#e5c07bff #20303bff 0","#56b6c2ff #20303bff 0","#eeeeeeff #20303bff 0","#fab283ff #20303bff 0","#ef6c6cff #20303bff 0","#202020ff #080808ff 0","#ffffffff #202020ff 0","#808080ff #202020ff 0","#8f8f8fff #141414ff 0","#9d7cd8ff #141414ff 9"],"lines":[ +[" ",[[0,35],[1,2],[0,101],[1,2]]], +[" All · vs main 1/4 docs/old.md +0 -3 ",[[0,2],[2,3],[3,10],[0,15],[3,3],[0,2],[1,2],[0,1],[3,5],[0,89],[4,2],[0,1],[5,2],[0,1],[1,2]]], +[" ",[[0,35],[1,2],[0,101],[1,2]]], +[" ▾ docs 1 - Old notes ",[[0,2],[6,2],[3,4],[0,27],[1,2],[7,1],[8,1],[9,2],[7,1],[10,96],[1,2]]], +[" │ ≡ old.md D 2 - about the lexer ",[[0,2],[11,2],[6,2],[0,26],[5,1],[0,2],[1,2],[7,1],[8,1],[9,2],[7,1],[10,96],[1,2]]], +[" ▾ src 3 - and more ",[[0,2],[6,2],[3,3],[0,28],[1,2],[7,1],[8,1],[9,2],[7,1],[10,96],[1,2]]], +[" │ ▾ lexer ▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄",[[0,2],[11,2],[6,2],[3,5],[0,24],[12,2],[13,101],[12,2]]], +[" │ │ ≡ token.ts A src/lexer/token.ts +4 -0 ",[[0,2],[11,4],[6,2],[0,24],[4,1],[0,2],[1,2],[0,1],[3,10],[0,84],[4,2],[0,1],[5,2],[0,1],[1,2]]], +[" │ ≡ parser.ts ✓ ",[[0,2],[11,2],[6,2],[14,9],[0,17],[3,1],[0,2],[1,2],[0,101],[1,2]]], +[" ≡ README.md M 1 + export type Token = { ",[[0,2],[6,2],[0,28],[3,1],[0,2],[1,2],[15,1],[16,1],[17,2],[15,1],[18,6],[19,1],[20,4],[19,1],[21,5],[19,1],[22,1],[19,1],[23,1],[19,75],[1,2]]], +[" 2 + kind: string ",[[0,35],[1,2],[15,1],[16,1],[17,2],[15,1],[19,2],[24,4],[22,1],[19,1],[25,6],[19,82],[1,2]]], +[" 3 + text: string ",[[0,35],[1,2],[15,1],[16,1],[17,2],[15,1],[19,2],[24,4],[22,1],[19,1],[25,6],[19,82],[1,2]]], +[" 4 + } ",[[0,35],[1,2],[15,1],[16,1],[17,2],[15,1],[23,1],[19,95],[1,2]]], +[" ▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄",[[0,35],[12,2],[26,101],[12,2]]], +[" src/parser.ts ✓ +2 -1 ",[[0,35],[1,2],[27,1],[28,13],[27,79],[28,1],[27,1],[28,2],[27,1],[28,2],[27,1],[1,2]]], +[" ▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀",[[0,35],[12,2],[26,101],[12,2]]], +[" ▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄",[[0,35],[12,2],[13,101],[12,2]]], +[" README.md +1 -1 ",[[0,35],[1,2],[0,95],[4,2],[0,1],[5,2],[0,1],[1,2]]], +[" ",[[0,35],[1,2],[0,101],[1,2]]], +[" 1 # Parser 1 # Parser ",[[0,35],[1,2],[0,1],[29,1],[0,3],[30,8],[0,39],[29,1],[0,3],[30,8],[0,37],[1,2]]], +[" 2 2 ",[[0,35],[1,2],[0,1],[29,1],[0,50],[29,1],[0,48],[1,2]]], +[" 3 - Parses the token stream. 3 + Parses the token stream into a tree. ",[[0,35],[1,2],[7,1],[8,1],[9,2],[7,1],[10,46],[15,1],[16,1],[17,2],[15,1],[19,45],[1,2]]], +[" ",[[0,35],[1,105]]], +[" ",[[0,35],[1,105]]], +[" ",[[0,35],[1,105]]], +[" ",[[0,35],[1,105]]], +[" ",[[0,35],[1,105]]], +[" ",[[0,35],[1,105]]], +[" ",[[0,35],[1,105]]], +[" ",[[0,35],[1,105]]], +[" ",[[0,35],[1,105]]], +[" ",[[0,35],[1,105]]], +[" ",[[0,35],[1,105]]], +[" ",[[0,35],[1,105]]], +[" ",[[0,35],[1,105]]], +[" ",[[0,35],[1,105]]], +[" ",[[0,35],[1,105]]], +[" ? help ",[[0,3],[3,5],[0,27],[1,105]]], +[" ",[[0,35],[1,105]]], +[" ",[[0,35],[1,105]]] +]} diff --git a/packages/cli-rs/parity/fixtures/E.15a/viewer/hunk.json b/packages/cli-rs/parity/fixtures/E.15a/viewer/hunk.json new file mode 100644 index 000000000000..3a5e0bf1c969 --- /dev/null +++ b/packages/cli-rs/parity/fixtures/E.15a/viewer/hunk.json @@ -0,0 +1,42 @@ +{"width":140,"height":40,"styles":["#ffffffff #202020ff 0","#ffffffff #202020ff 1","#808080ff #080808ff 0","#ffffffff #080808ff 0","#ffffffff #141414ff 0","#7699feff #141414ff 0","#808080ff #141414ff 1","#808080ff #141414ff 0","#4fd6beff #141414ff 0","#c53b53ff #141414ff 0","#eeeeeeff #080808ff 0","#ffffffff #1b2b34ff 0","#8f8f8fff #1b2b34ff 0","#b8db87ff #1b2b34ff 0","#9d7cd8ff #20303bff 0","#ffffffff #20303bff 0","#9d7cd8ff #20303bff 4","#e5c07bff #20303bff 0","#56b6c2ff #20303bff 0","#eeeeeeff #20303bff 0","#fab283ff #20303bff 0","#ef6c6cff #20303bff 0","#7699feff #080808ff 0","#141414ff #080808ff 0","#8f8f8fff #141414ff 0","#9d7cd8ff #141414ff 0","#9d7cd8ff #141414ff 4","#e06c75ff #141414ff 0","#56b6c2ff #141414ff 0","#f5a742ff #141414ff 0","#ffffffff #2d1f26ff 0","#8f8f8fff #2d1f26ff 0","#e26a75ff #2d1f26ff 0","#9d7cd8ff #37222cff 0","#ffffffff #37222cff 0","#9d7cd8ff #37222cff 4","#e06c75ff #37222cff 0","#56b6c2ff #37222cff 0","#f5a742ff #37222cff 0","#e06c75ff #20303bff 0","#f5a742ff #20303bff 0","#828bb8ff #141414ff 0","#484848ff #080808ff 0","#202020ff #080808ff 0","#808080ff #080808ff 2","#23344bff #080808ff 0"],"lines":[ +[" Review the parser + ",[[0,3],[1,17],[0,12],[2,3],[3,105]]], +[" ",[[3,70],[4,70]]], +[" ┃ All · vs main 0/4 ",[[3,2],[5,1],[4,65],[3,2],[4,2],[6,3],[7,10],[4,51],[7,3],[4,1]]], +[" ┃ Show me the diff ",[[3,2],[5,1],[4,65],[3,2],[4,70]]], +[" ┃ src/lexer/token.ts +4 -0 ",[[3,2],[5,1],[4,65],[3,2],[4,2],[7,10],[4,52],[8,2],[4,1],[9,2],[4,1]]], +[" ",[[3,70],[4,70]]], +[" The parser changes are ready. 1 + export type Token = { ",[[3,5],[10,29],[3,36],[11,2],[12,1],[13,2],[11,1],[14,6],[15,1],[16,4],[15,1],[17,5],[15,1],[18,1],[15,1],[19,1],[15,43]]], +[" 2 + kind: string ",[[3,70],[11,2],[12,1],[13,2],[11,1],[15,2],[20,4],[18,1],[15,1],[21,6],[15,50]]], +[" Build · provider/model · 2ms 3 + text: string ",[[3,5],[22,5],[2,23],[3,37],[11,2],[12,1],[13,2],[11,1],[15,2],[20,4],[18,1],[15,1],[21,6],[15,50]]], +[" 4 + } ",[[3,70],[11,2],[12,1],[13,2],[11,1],[19,1],[15,63]]], +[" ▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄",[[3,70],[23,70]]], +[" src/parser.ts +2 -1 ",[[3,70],[4,2],[7,4],[4,58],[8,2],[4,1],[9,2],[4,1]]], +[" ",[[3,70],[4,70]]], +[" 1 export const rule1 = 1 ",[[3,70],[4,3],[24,1],[4,3],[25,6],[4,1],[26,5],[4,1],[27,5],[4,1],[28,1],[4,1],[29,1],[4,41]]], +[" 2 export const rule2 = 2 ",[[3,70],[4,3],[24,1],[4,3],[25,6],[4,1],[26,5],[4,1],[27,5],[4,1],[28,1],[4,1],[29,1],[4,41]]], +[" 3 - export const rule3 = 3 ",[[3,70],[30,3],[31,1],[32,2],[30,1],[33,6],[34,1],[35,5],[34,1],[36,5],[34,1],[37,1],[34,1],[38,1],[34,41]]], +[" 3 + export const rule3 = 3 * 2 ",[[3,70],[11,3],[12,1],[13,2],[11,1],[14,6],[15,1],[16,5],[15,1],[39,5],[15,1],[18,1],[15,1],[40,1],[15,1],[18,1],[15,1],[40,1],[15,37]]], +[" 4 export const rule4 = 4 ",[[3,70],[4,3],[24,1],[4,3],[25,6],[4,1],[26,5],[4,1],[27,5],[4,1],[28,1],[4,1],[29,1],[4,41]]], +[" 5 export const rule5 = 5 ",[[3,70],[4,3],[24,1],[4,3],[25,6],[4,1],[26,5],[4,1],[27,5],[4,1],[28,1],[4,1],[29,1],[4,41]]], +[" 6 export const rule6 = 6 ",[[3,70],[4,3],[24,1],[4,3],[25,6],[4,1],[26,5],[4,1],[27,5],[4,1],[28,1],[4,1],[29,1],[4,41]]], +[" 7 export const rule7 = 7 ",[[3,70],[4,3],[24,1],[4,3],[25,6],[4,1],[26,5],[4,1],[27,5],[4,1],[28,1],[4,1],[29,1],[4,41]]], +[" 8 export const rule8 = 8 ",[[3,70],[4,3],[24,1],[4,3],[25,6],[4,1],[26,5],[4,1],[27,5],[4,1],[28,1],[4,1],[29,1],[4,41]]], +[" 9 export const rule9 = 9 ",[[3,70],[4,3],[24,1],[4,3],[25,6],[4,1],[26,5],[4,1],[27,5],[4,1],[28,1],[4,1],[29,1],[4,41]]], +[" 10 export const rule10 = 10 ",[[3,70],[4,2],[24,2],[4,3],[25,6],[4,1],[26,5],[4,1],[27,6],[4,1],[28,1],[4,1],[29,2],[4,39]]], +[" 11 export const rule11 = 11 ",[[3,70],[4,2],[24,2],[4,3],[25,6],[4,1],[26,5],[4,1],[27,6],[4,1],[28,1],[4,1],[29,2],[4,39]]], +[" 12 export const rule12 = 12 ",[[3,70],[4,2],[24,2],[4,3],[25,6],[4,1],[26,5],[4,1],[27,6],[4,1],[28,1],[4,1],[29,2],[4,39]]], +[" 13 export const rule13 = 13 ",[[3,70],[4,2],[24,2],[4,3],[25,6],[4,1],[26,5],[4,1],[27,6],[4,1],[28,1],[4,1],[29,2],[4,39]]], +[" 14 export const rule14 = 14 ",[[3,70],[4,2],[24,2],[4,3],[25,6],[4,1],[26,5],[4,1],[27,6],[4,1],[28,1],[4,1],[29,2],[4,39]]], +[" 15 export const rule15 = 15 ",[[3,70],[4,2],[24,2],[4,3],[25,6],[4,1],[26,5],[4,1],[27,6],[4,1],[28,1],[4,1],[29,2],[4,39]]], +[" @@ -24,17 +24,18 @@ export const rule23 = 23 ",[[3,70],[41,45],[4,25]]], +[" 24 export const rule24 = 24 ",[[3,70],[4,2],[24,2],[4,3],[25,6],[4,1],[26,5],[4,1],[27,6],[4,1],[28,1],[4,1],[29,2],[4,39]]], +[" 25 export const rule25 = 25 ",[[3,70],[4,2],[24,2],[4,3],[25,6],[4,1],[26,5],[4,1],[27,6],[4,1],[28,1],[4,1],[29,2],[4,39]]], +[" 26 export const rule26 = 26 ",[[3,70],[4,2],[24,2],[4,3],[25,6],[4,1],[26,5],[4,1],[27,6],[4,1],[28,1],[4,1],[29,2],[4,39]]], +[" ┃ 27 export const rule27 = 27 ",[[3,2],[42,1],[0,65],[3,2],[4,2],[24,2],[4,3],[25,6],[4,1],[26,5],[4,1],[27,6],[4,1],[28,1],[4,1],[29,2],[4,39]]], +[" ┃ 28 export const rule28 = 28 ",[[3,2],[42,1],[0,65],[3,2],[4,2],[24,2],[4,3],[25,6],[4,1],[26,5],[4,1],[27,6],[4,1],[28,1],[4,1],[29,2],[4,39]]], +[" ┃ 29 export const rule29 = 29 ",[[3,2],[42,1],[0,65],[3,2],[4,2],[24,2],[4,3],[25,6],[4,1],[26,5],[4,1],[27,6],[4,1],[28,1],[4,1],[29,2],[4,39]]], +[" ┃ 30 export const rule30 = 30 ",[[3,2],[42,1],[0,65],[3,2],[4,2],[24,2],[4,3],[25,6],[4,1],[26,5],[4,1],[27,6],[4,1],[28,1],[4,1],[29,2],[4,39]]], +[" ╹▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀ ▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀",[[3,2],[42,1],[43,65],[3,2],[23,70]]], +[" /tmp/opencode/packages/tui:main shift+tab agents ctrl+p commands ctrl+x ← focus prompt ? see all ",[[3,2],[2,31],[3,2],[44,16],[3,2],[44,15],[3,4],[45,8],[2,13],[3,38],[2,8],[3,1]]], +[" ",[[3,140]]] +]} diff --git a/packages/cli-rs/parity/fixtures/E.15a/viewer/no-tree.json b/packages/cli-rs/parity/fixtures/E.15a/viewer/no-tree.json new file mode 100644 index 000000000000..4878925a0811 --- /dev/null +++ b/packages/cli-rs/parity/fixtures/E.15a/viewer/no-tree.json @@ -0,0 +1,42 @@ +{"width":140,"height":40,"styles":["#ffffffff #080808ff 0","#808080ff #080808ff 1","#808080ff #080808ff 0","#ffffffff #141414ff 0","#808080ff #141414ff 0","#4fd6beff #141414ff 0","#c53b53ff #141414ff 0","#ffffffff #2d1f26ff 0","#8f8f8fff #2d1f26ff 0","#e26a75ff #2d1f26ff 0","#ffffffff #37222cff 0"],"lines":[ +[" All · vs main 1/4 ?",[[0,2],[1,3],[2,10],[0,120],[2,3],[0,2]]], +[" ",[[0,2],[3,136],[0,2]]], +[" docs/old.md +0 -3 ",[[0,2],[3,1],[4,5],[3,124],[5,2],[3,1],[6,2],[3,1],[0,2]]], +[" ",[[0,2],[3,136],[0,2]]], +[" 1 - Old notes ",[[0,2],[7,1],[8,1],[9,2],[7,1],[10,131],[0,2]]], +[" 2 - about the lexer ",[[0,2],[7,1],[8,1],[9,2],[7,1],[10,131],[0,2]]], +[" 3 - and more ",[[0,2],[7,1],[8,1],[9,2],[7,1],[10,131],[0,2]]], +[" ",[[0,140]]], +[" ",[[0,140]]], +[" ",[[0,140]]], +[" ",[[0,140]]], +[" ",[[0,140]]], +[" ",[[0,140]]], +[" ",[[0,140]]], +[" ",[[0,140]]], +[" ",[[0,140]]], +[" ",[[0,140]]], +[" ",[[0,140]]], +[" ",[[0,140]]], +[" ",[[0,140]]], +[" ",[[0,140]]], +[" ",[[0,140]]], +[" ",[[0,140]]], +[" ",[[0,140]]], +[" ",[[0,140]]], +[" ",[[0,140]]], +[" ",[[0,140]]], +[" ",[[0,140]]], +[" ",[[0,140]]], +[" ",[[0,140]]], +[" ",[[0,140]]], +[" ",[[0,140]]], +[" ",[[0,140]]], +[" ",[[0,140]]], +[" ",[[0,140]]], +[" ",[[0,140]]], +[" ",[[0,140]]], +[" ",[[0,140]]], +[" ",[[0,140]]], +[" ",[[0,140]]] +]} diff --git a/packages/cli-rs/parity/fixtures/E.15a/viewer/panel.json b/packages/cli-rs/parity/fixtures/E.15a/viewer/panel.json new file mode 100644 index 000000000000..704fbe234b48 --- /dev/null +++ b/packages/cli-rs/parity/fixtures/E.15a/viewer/panel.json @@ -0,0 +1,42 @@ +{"width":140,"height":40,"styles":["#ffffffff #202020ff 0","#ffffffff #202020ff 1","#808080ff #080808ff 0","#ffffffff #080808ff 0","#ffffffff #141414ff 0","#7699feff #141414ff 0","#808080ff #141414ff 1","#808080ff #141414ff 0","#4fd6beff #141414ff 0","#c53b53ff #141414ff 0","#eeeeeeff #080808ff 0","#ffffffff #2d1f26ff 0","#8f8f8fff #2d1f26ff 0","#e26a75ff #2d1f26ff 0","#ffffffff #37222cff 0","#7699feff #080808ff 0","#141414ff #080808ff 0","#ffffffff #1b2b34ff 0","#8f8f8fff #1b2b34ff 0","#b8db87ff #1b2b34ff 0","#9d7cd8ff #20303bff 0","#ffffffff #20303bff 0","#9d7cd8ff #20303bff 4","#e5c07bff #20303bff 0","#56b6c2ff #20303bff 0","#eeeeeeff #20303bff 0","#fab283ff #20303bff 0","#ef6c6cff #20303bff 0","#8f8f8fff #141414ff 0","#9d7cd8ff #141414ff 0","#9d7cd8ff #141414ff 4","#e06c75ff #141414ff 0","#56b6c2ff #141414ff 0","#f5a742ff #141414ff 0","#9d7cd8ff #37222cff 0","#9d7cd8ff #37222cff 4","#e06c75ff #37222cff 0","#56b6c2ff #37222cff 0","#f5a742ff #37222cff 0","#e06c75ff #20303bff 0","#f5a742ff #20303bff 0","#484848ff #080808ff 0","#828bb8ff #141414ff 0","#202020ff #080808ff 0","#808080ff #080808ff 2","#23344bff #080808ff 0"],"lines":[ +[" Review the parser + ",[[0,3],[1,17],[0,12],[2,3],[3,105]]], +[" ",[[3,70],[4,70]]], +[" ┃ All · vs main 0/4 ",[[3,2],[5,1],[4,65],[3,2],[4,2],[6,3],[7,10],[4,51],[7,3],[4,1]]], +[" ┃ Show me the diff ",[[3,2],[5,1],[4,65],[3,2],[4,70]]], +[" ┃ docs/old.md +0 -3 ",[[3,2],[5,1],[4,65],[3,2],[4,2],[7,5],[4,57],[8,2],[4,1],[9,2],[4,1]]], +[" ",[[3,70],[4,70]]], +[" The parser changes are ready. 1 - Old notes ",[[3,5],[10,29],[3,36],[11,2],[12,1],[13,2],[11,1],[14,64]]], +[" 2 - about the lexer ",[[3,70],[11,2],[12,1],[13,2],[11,1],[14,64]]], +[" Build · provider/model · 2ms 3 - and more ",[[3,5],[15,5],[2,23],[3,37],[11,2],[12,1],[13,2],[11,1],[14,64]]], +[" ▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄",[[3,70],[16,70]]], +[" src/lexer/token.ts +4 -0 ",[[3,70],[4,2],[7,10],[4,52],[8,2],[4,1],[9,2],[4,1]]], +[" ",[[3,70],[4,70]]], +[" 1 + export type Token = { ",[[3,70],[17,2],[18,1],[19,2],[17,1],[20,6],[21,1],[22,4],[21,1],[23,5],[21,1],[24,1],[21,1],[25,1],[21,43]]], +[" 2 + kind: string ",[[3,70],[17,2],[18,1],[19,2],[17,1],[21,2],[26,4],[24,1],[21,1],[27,6],[21,50]]], +[" 3 + text: string ",[[3,70],[17,2],[18,1],[19,2],[17,1],[21,2],[26,4],[24,1],[21,1],[27,6],[21,50]]], +[" 4 + } ",[[3,70],[17,2],[18,1],[19,2],[17,1],[25,1],[21,63]]], +[" ▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄",[[3,70],[16,70]]], +[" src/parser.ts +2 -1 ",[[3,70],[4,2],[7,4],[4,58],[8,2],[4,1],[9,2],[4,1]]], +[" ",[[3,70],[4,70]]], +[" 1 export const rule1 = 1 ",[[3,70],[4,3],[28,1],[4,3],[29,6],[4,1],[30,5],[4,1],[31,5],[4,1],[32,1],[4,1],[33,1],[4,41]]], +[" 2 export const rule2 = 2 ",[[3,70],[4,3],[28,1],[4,3],[29,6],[4,1],[30,5],[4,1],[31,5],[4,1],[32,1],[4,1],[33,1],[4,41]]], +[" 3 - export const rule3 = 3 ",[[3,70],[11,3],[12,1],[13,2],[11,1],[34,6],[14,1],[35,5],[14,1],[36,5],[14,1],[37,1],[14,1],[38,1],[14,41]]], +[" 3 + export const rule3 = 3 * 2 ",[[3,70],[17,3],[18,1],[19,2],[17,1],[20,6],[21,1],[22,5],[21,1],[39,5],[21,1],[24,1],[21,1],[40,1],[21,1],[24,1],[21,1],[40,1],[21,37]]], +[" 4 export const rule4 = 4 ",[[3,70],[4,3],[28,1],[4,3],[29,6],[4,1],[30,5],[4,1],[31,5],[4,1],[32,1],[4,1],[33,1],[4,41]]], +[" 5 export const rule5 = 5 ",[[3,70],[4,3],[28,1],[4,3],[29,6],[4,1],[30,5],[4,1],[31,5],[4,1],[32,1],[4,1],[33,1],[4,41]]], +[" 6 export const rule6 = 6 ",[[3,70],[4,3],[28,1],[4,3],[29,6],[4,1],[30,5],[4,1],[31,5],[4,1],[32,1],[4,1],[33,1],[4,41]]], +[" 7 export const rule7 = 7 ",[[3,70],[4,3],[28,1],[4,3],[29,6],[4,1],[30,5],[4,1],[31,5],[4,1],[32,1],[4,1],[33,1],[4,41]]], +[" 8 export const rule8 = 8 ",[[3,70],[4,3],[28,1],[4,3],[29,6],[4,1],[30,5],[4,1],[31,5],[4,1],[32,1],[4,1],[33,1],[4,41]]], +[" 9 export const rule9 = 9 ",[[3,70],[4,3],[28,1],[4,3],[29,6],[4,1],[30,5],[4,1],[31,5],[4,1],[32,1],[4,1],[33,1],[4,41]]], +[" 10 export const rule10 = 10 ",[[3,70],[4,2],[28,2],[4,3],[29,6],[4,1],[30,5],[4,1],[31,6],[4,1],[32,1],[4,1],[33,2],[4,39]]], +[" 11 export const rule11 = 11 ",[[3,70],[4,2],[28,2],[4,3],[29,6],[4,1],[30,5],[4,1],[31,6],[4,1],[32,1],[4,1],[33,2],[4,39]]], +[" 12 export const rule12 = 12 ",[[3,70],[4,2],[28,2],[4,3],[29,6],[4,1],[30,5],[4,1],[31,6],[4,1],[32,1],[4,1],[33,2],[4,39]]], +[" 13 export const rule13 = 13 ",[[3,70],[4,2],[28,2],[4,3],[29,6],[4,1],[30,5],[4,1],[31,6],[4,1],[32,1],[4,1],[33,2],[4,39]]], +[" ┃ 14 export const rule14 = 14 ",[[3,2],[41,1],[0,65],[3,2],[4,2],[28,2],[4,3],[29,6],[4,1],[30,5],[4,1],[31,6],[4,1],[32,1],[4,1],[33,2],[4,39]]], +[" ┃ 15 export const rule15 = 15 ",[[3,2],[41,1],[0,65],[3,2],[4,2],[28,2],[4,3],[29,6],[4,1],[30,5],[4,1],[31,6],[4,1],[32,1],[4,1],[33,2],[4,39]]], +[" ┃ @@ -24,17 +24,18 @@ export const rule23 = 23 ",[[3,2],[41,1],[0,65],[3,2],[42,45],[4,25]]], +[" ┃ 24 export const rule24 = 24 ",[[3,2],[41,1],[0,65],[3,2],[4,2],[28,2],[4,3],[29,6],[4,1],[30,5],[4,1],[31,6],[4,1],[32,1],[4,1],[33,2],[4,39]]], +[" ╹▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀ ▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀",[[3,2],[41,1],[43,65],[3,2],[16,70]]], +[" /tmp/opencode/packages/tui:main shift+tab agents ctrl+p commands ctrl+x ← focus prompt ? see all ",[[3,2],[2,31],[3,2],[44,16],[3,2],[44,15],[3,4],[45,8],[2,13],[3,38],[2,8],[3,1]]], +[" ",[[3,140]]] +]} diff --git a/packages/cli-rs/parity/fixtures/E.15a/viewer/reviewed.json b/packages/cli-rs/parity/fixtures/E.15a/viewer/reviewed.json new file mode 100644 index 000000000000..08653367afa9 --- /dev/null +++ b/packages/cli-rs/parity/fixtures/E.15a/viewer/reviewed.json @@ -0,0 +1,42 @@ +{"width":140,"height":40,"styles":["#ffffffff #202020ff 0","#ffffffff #202020ff 1","#808080ff #080808ff 0","#ffffffff #080808ff 0","#ffffffff #141414ff 0","#7699feff #141414ff 0","#808080ff #141414ff 1","#808080ff #141414ff 0","#4fd6beff #141414ff 0","#c53b53ff #141414ff 0","#eeeeeeff #080808ff 0","#ffffffff #2d1f26ff 0","#8f8f8fff #2d1f26ff 0","#e26a75ff #2d1f26ff 0","#ffffffff #37222cff 0","#7699feff #080808ff 0","#141414ff #080808ff 0","#ffffffff #1b2b34ff 0","#8f8f8fff #1b2b34ff 0","#b8db87ff #1b2b34ff 0","#9d7cd8ff #20303bff 0","#ffffffff #20303bff 0","#9d7cd8ff #20303bff 4","#e5c07bff #20303bff 0","#56b6c2ff #20303bff 0","#eeeeeeff #20303bff 0","#fab283ff #20303bff 0","#ef6c6cff #20303bff 0","#202020ff #080808ff 0","#808080ff #202020ff 0","#8f8f8fff #141414ff 0","#9d7cd8ff #141414ff 9","#484848ff #080808ff 0","#808080ff #080808ff 2","#23344bff #080808ff 0"],"lines":[ +[" Review the parser + ",[[0,3],[1,17],[0,12],[2,3],[3,105]]], +[" ",[[3,70],[4,70]]], +[" ┃ All · vs main 1/4 ",[[3,2],[5,1],[4,65],[3,2],[4,2],[6,3],[7,10],[4,51],[7,3],[4,1]]], +[" ┃ Show me the diff ",[[3,2],[5,1],[4,65],[3,2],[4,70]]], +[" ┃ docs/old.md +0 -3 ",[[3,2],[5,1],[4,65],[3,2],[4,2],[7,5],[4,57],[8,2],[4,1],[9,2],[4,1]]], +[" ",[[3,70],[4,70]]], +[" The parser changes are ready. 1 - Old notes ",[[3,5],[10,29],[3,36],[11,2],[12,1],[13,2],[11,1],[14,64]]], +[" 2 - about the lexer ",[[3,70],[11,2],[12,1],[13,2],[11,1],[14,64]]], +[" Build · provider/model · 2ms 3 - and more ",[[3,5],[15,5],[2,23],[3,37],[11,2],[12,1],[13,2],[11,1],[14,64]]], +[" ▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄",[[3,70],[16,70]]], +[" src/lexer/token.ts +4 -0 ",[[3,70],[4,2],[7,10],[4,52],[8,2],[4,1],[9,2],[4,1]]], +[" ",[[3,70],[4,70]]], +[" 1 + export type Token = { ",[[3,70],[17,2],[18,1],[19,2],[17,1],[20,6],[21,1],[22,4],[21,1],[23,5],[21,1],[24,1],[21,1],[25,1],[21,43]]], +[" 2 + kind: string ",[[3,70],[17,2],[18,1],[19,2],[17,1],[21,2],[26,4],[24,1],[21,1],[27,6],[21,50]]], +[" 3 + text: string ",[[3,70],[17,2],[18,1],[19,2],[17,1],[21,2],[26,4],[24,1],[21,1],[27,6],[21,50]]], +[" 4 + } ",[[3,70],[17,2],[18,1],[19,2],[17,1],[25,1],[21,63]]], +[" ▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄",[[3,70],[28,70]]], +[" src/parser.ts ✓ +2 -1 ",[[3,70],[0,2],[29,13],[0,47],[29,1],[0,1],[29,2],[0,1],[29,2],[0,1]]], +[" ▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀",[[3,70],[28,70]]], +[" ▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄",[[3,70],[16,70]]], +[" README.md +1 -1 ",[[3,70],[4,64],[8,2],[4,1],[9,2],[4,1]]], +[" ",[[3,70],[4,70]]], +[" 1 # Parser ",[[3,70],[4,2],[30,1],[4,3],[31,8],[4,56]]], +[" 2 ",[[3,70],[4,2],[30,1],[4,67]]], +[" 3 - Parses the token stream. ",[[3,70],[11,2],[12,1],[13,2],[11,1],[14,64]]], +[" 3 + Parses the token stream into a tree. ",[[3,70],[17,2],[18,1],[19,2],[17,1],[21,64]]], +[" ",[[3,70],[4,70]]], +[" ",[[3,70],[4,70]]], +[" ",[[3,70],[4,70]]], +[" ",[[3,70],[4,70]]], +[" ",[[3,70],[4,70]]], +[" ",[[3,70],[4,70]]], +[" ",[[3,70],[4,70]]], +[" ┃ ",[[3,2],[32,1],[0,65],[3,2],[4,70]]], +[" ┃ ",[[3,2],[32,1],[0,65],[3,2],[4,70]]], +[" ┃ ",[[3,2],[32,1],[0,65],[3,2],[4,70]]], +[" ┃ ",[[3,2],[32,1],[0,65],[3,2],[4,70]]], +[" ╹▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀ ▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀",[[3,2],[32,1],[28,65],[3,2],[16,70]]], +[" /tmp/opencode/packages/tui:main shift+tab agents ctrl+p commands ctrl+x ← focus prompt ? see all ",[[3,2],[2,31],[3,2],[33,16],[3,2],[33,15],[3,4],[34,8],[2,13],[3,38],[2,8],[3,1]]], +[" ",[[3,140]]] +]} diff --git a/packages/cli-rs/parity/fixtures/E.15a/viewer/session.json b/packages/cli-rs/parity/fixtures/E.15a/viewer/session.json new file mode 100644 index 000000000000..7394a0ba65af --- /dev/null +++ b/packages/cli-rs/parity/fixtures/E.15a/viewer/session.json @@ -0,0 +1,42 @@ +{"width":140,"height":40,"styles":["#ffffffff #202020ff 0","#ffffffff #202020ff 1","#808080ff #080808ff 0","#ffffffff #080808ff 0","#ffffffff #141414ff 0","#7699feff #141414ff 0","#ffffffff #141414ff 1","#eeeeeeff #080808ff 0","#7699feff #080808ff 0","#808080ff #202020ff 0","#484848ff #080808ff 0","#202020ff #080808ff 0","#808080ff #141414ff 0"],"lines":[ +[" Review the parser + ",[[0,3],[1,17],[0,12],[2,3],[3,105]]], +[" ",[[3,98],[4,42]]], +[" ┃ Review the parser ",[[3,2],[5,1],[4,93],[3,2],[4,2],[6,17],[4,23]]], +[" ┃ Show me the diff ",[[3,2],[5,1],[4,93],[3,2],[4,42]]], +[" ┃ ",[[3,2],[5,1],[4,93],[3,2],[4,42]]], +[" ",[[3,98],[4,42]]], +[" The parser changes are ready. ",[[3,5],[7,29],[3,64],[4,42]]], +[" ",[[3,98],[4,42]]], +[" Build · provider/model · 2ms ",[[3,5],[8,5],[2,23],[3,65],[4,42]]], +[" ",[[3,98],[4,42]]], +[" ",[[3,98],[4,42]]], +[" ",[[3,98],[4,42]]], +[" ",[[3,98],[4,42]]], +[" ",[[3,98],[4,42]]], +[" ",[[3,98],[4,42]]], +[" ",[[3,98],[4,42]]], +[" ",[[3,98],[4,42]]], +[" ",[[3,98],[4,42]]], +[" ",[[3,98],[4,42]]], +[" ",[[3,98],[4,42]]], +[" ",[[3,98],[4,42]]], +[" ",[[3,98],[4,42]]], +[" ",[[3,98],[4,42]]], +[" ",[[3,98],[4,42]]], +[" ",[[3,98],[4,42]]], +[" ",[[3,98],[4,2],[0,38],[4,2]]], +[" ⬖ Getting started ✕ ",[[3,98],[4,2],[0,4],[1,15],[0,16],[9,1],[0,2],[4,2]]], +[" ",[[3,98],[4,2],[0,38],[4,2]]], +[" OpenCode includes free models so ",[[3,98],[4,2],[0,4],[9,32],[0,2],[4,2]]], +[" you can start immediately. ",[[3,98],[4,2],[0,4],[9,26],[0,8],[4,2]]], +[" ",[[3,98],[4,2],[0,38],[4,2]]], +[" Connect from 75+ providers to ",[[3,98],[4,2],[0,4],[9,30],[0,4],[4,2]]], +[" use other models, including ",[[3,98],[4,2],[0,4],[9,28],[0,6],[4,2]]], +[" ┃ Claude, GPT, Gemini etc ",[[3,2],[10,1],[0,93],[3,2],[4,2],[0,4],[9,23],[0,11],[4,2]]], +[" ┃ ",[[3,2],[10,1],[0,93],[3,2],[4,2],[0,38],[4,2]]], +[" ┃ Connect provider /connect ",[[3,2],[10,1],[0,93],[3,2],[4,2],[0,28],[9,8],[0,2],[4,2]]], +[" ┃ ",[[3,2],[10,1],[0,93],[3,2],[4,2],[0,38],[4,2]]], +[" ╹▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀ ",[[3,2],[10,1],[11,93],[3,2],[4,42]]], +[" /tmp/opencode/packages/tui:main shift+tab agents ctrl+p commands /tmp/opencode/packages/tui:main ",[[3,2],[2,31],[3,40],[2,6],[3,9],[2,8],[3,2],[4,2],[12,31],[4,9]]], +[" ",[[3,98],[4,42]]] +]} diff --git a/packages/cli-rs/parity/fixtures/E.15a/viewer/single.json b/packages/cli-rs/parity/fixtures/E.15a/viewer/single.json new file mode 100644 index 000000000000..34e2cd4506ee --- /dev/null +++ b/packages/cli-rs/parity/fixtures/E.15a/viewer/single.json @@ -0,0 +1,42 @@ +{"width":140,"height":40,"styles":["#ffffffff #141414ff 0","#ffffffff #080808ff 0","#808080ff #141414ff 1","#808080ff #141414ff 0","#4fd6beff #141414ff 0","#c53b53ff #141414ff 0","#4f4f4fff #141414ff 0","#ffffffff #2d1f26ff 0","#8f8f8fff #2d1f26ff 0","#e26a75ff #2d1f26ff 0","#ffffffff #37222cff 0","#343434ff #141414ff 0","#7699feff #141414ff 1"],"lines":[ +[" ",[[0,35],[1,2],[0,101],[1,2]]], +[" All · vs main 1/4 docs/old.md +0 -3 ",[[0,2],[2,3],[3,10],[0,15],[3,3],[0,2],[1,2],[0,1],[3,5],[0,89],[4,2],[0,1],[5,2],[0,1],[1,2]]], +[" ",[[0,35],[1,2],[0,101],[1,2]]], +[" ▾ docs 1 - Old notes ",[[0,2],[6,2],[3,4],[0,27],[1,2],[7,1],[8,1],[9,2],[7,1],[10,96],[1,2]]], +[" │ ≡ old.md D 2 - about the lexer ",[[0,2],[11,2],[6,2],[12,6],[0,20],[5,1],[0,2],[1,2],[7,1],[8,1],[9,2],[7,1],[10,96],[1,2]]], +[" ▾ src 3 - and more ",[[0,2],[6,2],[3,3],[0,28],[1,2],[7,1],[8,1],[9,2],[7,1],[10,96],[1,2]]], +[" │ ▾ lexer ",[[0,2],[11,2],[6,2],[3,5],[0,24],[1,105]]], +[" │ │ ≡ token.ts A ",[[0,2],[11,4],[6,2],[0,24],[4,1],[0,2],[1,105]]], +[" │ ≡ parser.ts ✓ ",[[0,2],[11,2],[6,2],[3,9],[0,17],[3,1],[0,2],[1,105]]], +[" ≡ README.md M ",[[0,2],[6,2],[0,28],[3,1],[0,2],[1,105]]], +[" ",[[0,35],[1,105]]], +[" ",[[0,35],[1,105]]], +[" ",[[0,35],[1,105]]], +[" ",[[0,35],[1,105]]], +[" ",[[0,35],[1,105]]], +[" ",[[0,35],[1,105]]], +[" ",[[0,35],[1,105]]], +[" ",[[0,35],[1,105]]], +[" ",[[0,35],[1,105]]], +[" ",[[0,35],[1,105]]], +[" ",[[0,35],[1,105]]], +[" ",[[0,35],[1,105]]], +[" ",[[0,35],[1,105]]], +[" ",[[0,35],[1,105]]], +[" ",[[0,35],[1,105]]], +[" ",[[0,35],[1,105]]], +[" ",[[0,35],[1,105]]], +[" ",[[0,35],[1,105]]], +[" ",[[0,35],[1,105]]], +[" ",[[0,35],[1,105]]], +[" ",[[0,35],[1,105]]], +[" ",[[0,35],[1,105]]], +[" ",[[0,35],[1,105]]], +[" ",[[0,35],[1,105]]], +[" ",[[0,35],[1,105]]], +[" ",[[0,35],[1,105]]], +[" ",[[0,35],[1,105]]], +[" ? help ",[[0,3],[3,5],[0,27],[1,105]]], +[" ",[[0,35],[1,105]]], +[" ",[[0,35],[1,105]]] +]} diff --git a/packages/cli-rs/parity/fixtures/E.15a/viewer/unified.json b/packages/cli-rs/parity/fixtures/E.15a/viewer/unified.json new file mode 100644 index 000000000000..ab66488c012b --- /dev/null +++ b/packages/cli-rs/parity/fixtures/E.15a/viewer/unified.json @@ -0,0 +1,42 @@ +{"width":140,"height":40,"styles":["#ffffffff #141414ff 0","#ffffffff #080808ff 0","#808080ff #141414ff 1","#808080ff #141414ff 0","#4fd6beff #141414ff 0","#c53b53ff #141414ff 0","#4f4f4fff #141414ff 0","#ffffffff #2d1f26ff 0","#8f8f8fff #2d1f26ff 0","#e26a75ff #2d1f26ff 0","#ffffffff #37222cff 0","#343434ff #141414ff 0","#080808ff #080808ff 0","#141414ff #080808ff 0","#7699feff #141414ff 1","#ffffffff #1b2b34ff 0","#8f8f8fff #1b2b34ff 0","#b8db87ff #1b2b34ff 0","#9d7cd8ff #20303bff 0","#ffffffff #20303bff 0","#9d7cd8ff #20303bff 4","#e5c07bff #20303bff 0","#56b6c2ff #20303bff 0","#eeeeeeff #20303bff 0","#fab283ff #20303bff 0","#ef6c6cff #20303bff 0","#202020ff #080808ff 0","#ffffffff #202020ff 0","#808080ff #202020ff 0","#8f8f8fff #141414ff 0","#9d7cd8ff #141414ff 9"],"lines":[ +[" ",[[0,35],[1,2],[0,101],[1,2]]], +[" All · vs main 1/4 docs/old.md +0 -3 ",[[0,2],[2,3],[3,10],[0,15],[3,3],[0,2],[1,2],[0,1],[3,5],[0,89],[4,2],[0,1],[5,2],[0,1],[1,2]]], +[" ",[[0,35],[1,2],[0,101],[1,2]]], +[" ▾ docs 1 - Old notes ",[[0,2],[6,2],[3,4],[0,27],[1,2],[7,1],[8,1],[9,2],[7,1],[10,96],[1,2]]], +[" │ ≡ old.md D 2 - about the lexer ",[[0,2],[11,2],[6,2],[0,26],[5,1],[0,2],[1,2],[7,1],[8,1],[9,2],[7,1],[10,96],[1,2]]], +[" ▾ src 3 - and more ",[[0,2],[6,2],[3,3],[0,28],[1,2],[7,1],[8,1],[9,2],[7,1],[10,96],[1,2]]], +[" │ ▾ lexer ▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄",[[0,2],[11,2],[6,2],[3,5],[0,24],[12,2],[13,101],[12,2]]], +[" │ │ ≡ token.ts A src/lexer/token.ts +4 -0 ",[[0,2],[11,4],[6,2],[0,24],[4,1],[0,2],[1,2],[0,1],[3,10],[0,84],[4,2],[0,1],[5,2],[0,1],[1,2]]], +[" │ ≡ parser.ts ✓ ",[[0,2],[11,2],[6,2],[14,9],[0,17],[3,1],[0,2],[1,2],[0,101],[1,2]]], +[" ≡ README.md M 1 + export type Token = { ",[[0,2],[6,2],[0,28],[3,1],[0,2],[1,2],[15,1],[16,1],[17,2],[15,1],[18,6],[19,1],[20,4],[19,1],[21,5],[19,1],[22,1],[19,1],[23,1],[19,75],[1,2]]], +[" 2 + kind: string ",[[0,35],[1,2],[15,1],[16,1],[17,2],[15,1],[19,2],[24,4],[22,1],[19,1],[25,6],[19,82],[1,2]]], +[" 3 + text: string ",[[0,35],[1,2],[15,1],[16,1],[17,2],[15,1],[19,2],[24,4],[22,1],[19,1],[25,6],[19,82],[1,2]]], +[" 4 + } ",[[0,35],[1,2],[15,1],[16,1],[17,2],[15,1],[23,1],[19,95],[1,2]]], +[" ▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄",[[0,35],[12,2],[26,101],[12,2]]], +[" src/parser.ts ✓ +2 -1 ",[[0,35],[1,2],[27,1],[28,13],[27,79],[28,1],[27,1],[28,2],[27,1],[28,2],[27,1],[1,2]]], +[" ▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀",[[0,35],[12,2],[26,101],[12,2]]], +[" ▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄",[[0,35],[12,2],[13,101],[12,2]]], +[" README.md +1 -1 ",[[0,35],[1,2],[0,95],[4,2],[0,1],[5,2],[0,1],[1,2]]], +[" ",[[0,35],[1,2],[0,101],[1,2]]], +[" 1 # Parser ",[[0,35],[1,2],[0,1],[29,1],[0,3],[30,8],[0,88],[1,2]]], +[" 2 ",[[0,35],[1,2],[0,1],[29,1],[0,99],[1,2]]], +[" 3 - Parses the token stream. ",[[0,35],[1,2],[7,1],[8,1],[9,2],[7,1],[10,96],[1,2]]], +[" 3 + Parses the token stream into a tree. ",[[0,35],[1,2],[15,1],[16,1],[17,2],[15,1],[19,96],[1,2]]], +[" ",[[0,35],[1,105]]], +[" ",[[0,35],[1,105]]], +[" ",[[0,35],[1,105]]], +[" ",[[0,35],[1,105]]], +[" ",[[0,35],[1,105]]], +[" ",[[0,35],[1,105]]], +[" ",[[0,35],[1,105]]], +[" ",[[0,35],[1,105]]], +[" ",[[0,35],[1,105]]], +[" ",[[0,35],[1,105]]], +[" ",[[0,35],[1,105]]], +[" ",[[0,35],[1,105]]], +[" ",[[0,35],[1,105]]], +[" ",[[0,35],[1,105]]], +[" ? help ",[[0,3],[3,5],[0,27],[1,105]]], +[" ",[[0,35],[1,105]]], +[" ",[[0,35],[1,105]]] +]} diff --git a/packages/cli-rs/parity/fixtures/E.15b/base.app.json b/packages/cli-rs/parity/fixtures/E.15b/base.app.json new file mode 100644 index 000000000000..aea5163be0f1 --- /dev/null +++ b/packages/cli-rs/parity/fixtures/E.15b/base.app.json @@ -0,0 +1,60 @@ +{ + "scenario": "E.15b/base", + "width": 80, + "height": 30, + "directory": "/tmp/opencode/packages/tui", + "config": { + "experimental": {"new-designs":true}, + "animations": false, + "theme": {"name":"opencode"} + }, + "args": {}, + "routes": [ + {"path":"/api/vcs/base","json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":{"name":"main","ref":"main","source":"default"}}}, + {"path":"/api/vcs/diff","json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":[{"file":"README.md","patch":"diff --git a/README.md b/README.md\nindex 5db345c..3dc9dd5 100644\n--- a/README.md\n+++ b/README.md\n@@ -1,3 +1,3 @@\n # Parser\n \n-Parses the token stream.\n+Parses the token stream into a tree.\n","additions":1,"deletions":1,"status":"modified"},{"file":"src/lexer.ts","patch":"diff --git a/src/lexer.ts b/src/lexer.ts\nnew file mode 100644\nindex 0000000..2f4e80d\n--- /dev/null\n+++ b/src/lexer.ts\n@@ -0,0 +1 @@\n+export const lex = (text: string) => [...text]\n","additions":1,"deletions":0,"status":"added"}]}}, + {"path":"/api/vcs/branch","json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":["feature/lexer","main","release"]}} + ], + "steps": [ + {"checkpoint":"home","until":"Ask anything","masks":[{"x":6,"y":16,"width":74,"height":1,"reason":"the placeholder example: random in TS and Rust"}],"fixture":"E.15b/base/home"}, + {"type":"/diff"}, + {"keys":["enter"]}, + {"checkpoint":"open","until":"vs main","fixture":"E.15b/base/open"}, + {"keys":["d"]}, + {"checkpoint":"sources","until":"Diff source","fixture":"E.15b/base/sources"}, + {"keys":["down","down","down","enter"]}, + {"checkpoint":"branches","until":"release","fixture":"E.15b/base/branches"}, + {"keys":["down","enter"]}, + {"checkpoint":"chosen","until":"vs release","fixture":"E.15b/base/chosen"}, + {"keys":["d"]}, + {"checkpoint":"remembered","until":"Diff source","fixture":"E.15b/base/remembered"} + ], + "requests": { + "writes": [], + "reads": [ + {"method":"GET","path":"/api/agent","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":[]}}, + {"method":"GET","path":"/api/command","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":[]}}, + {"method":"GET","path":"/api/config","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":[]}, + {"method":"GET","path":"/api/experimental/migration/v1","query":{},"status":200,"json":{"status":"completed"}}, + {"method":"GET","path":"/api/form","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode"}},"data":[]}}, + {"method":"GET","path":"/api/fs/list","query":{"location[directory]":["<cwd>"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":[]}}, + {"method":"GET","path":"/api/info","query":{},"status":200,"json":{"version":"test","pid":0,"urls":[],"paths":{"tmp":"/tmp"},"capabilities":{"persistentPty":true}}}, + {"method":"GET","path":"/api/integration","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":[]}}, + {"method":"GET","path":"/api/location","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}}}, + {"method":"GET","path":"/api/mcp","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":[]}}, + {"method":"GET","path":"/api/mcp/resource","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":{"resources":[],"templates":[]}}}, + {"method":"GET","path":"/api/model","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":[]}}, + {"method":"GET","path":"/api/plugin","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":[]}}, + {"method":"GET","path":"/api/project","query":{},"status":200,"json":[]}, + {"method":"GET","path":"/api/provider","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":[]}}, + {"method":"GET","path":"/api/reference","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode/packages/tui","canonical":"/tmp/opencode/packages/tui"}},"data":[]}}, + {"method":"GET","path":"/api/session/active","query":{},"status":200,"json":{"data":{}}}, + {"method":"GET","path":"/api/shell","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":[]}}, + {"method":"GET","path":"/api/skill","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":[]}}, + {"method":"GET","path":"/api/vcs","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":{"branch":{"current":"main","default":"main"}}}}, + {"method":"GET","path":"/api/vcs/base","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":{"name":"main","ref":"main","source":"default"}}}, + {"method":"GET","path":"/api/vcs/branch","query":{"limit":["100"],"location[directory]":["/tmp/opencode/packages/tui"],"search":[""]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":["feature/lexer","main","release"]}}, + {"method":"GET","path":"/api/vcs/diff","query":{"base":["main"],"context":["12"],"location[directory]":["/tmp/opencode/packages/tui"],"mode":["branch"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":[{"file":"README.md","patch":"diff --git a/README.md b/README.md\nindex 5db345c..3dc9dd5 100644\n--- a/README.md\n+++ b/README.md\n@@ -1,3 +1,3 @@\n # Parser\n \n-Parses the token stream.\n+Parses the token stream into a tree.\n","additions":1,"deletions":1,"status":"modified"},{"file":"src/lexer.ts","patch":"diff --git a/src/lexer.ts b/src/lexer.ts\nnew file mode 100644\nindex 0000000..2f4e80d\n--- /dev/null\n+++ b/src/lexer.ts\n@@ -0,0 +1 @@\n+export const lex = (text: string) => [...text]\n","additions":1,"deletions":0,"status":"added"}]}}, + {"method":"GET","path":"/api/vcs/diff","query":{"base":["release"],"context":["12"],"location[directory]":["/tmp/opencode/packages/tui"],"mode":["branch"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":[{"file":"README.md","patch":"diff --git a/README.md b/README.md\nindex 5db345c..3dc9dd5 100644\n--- a/README.md\n+++ b/README.md\n@@ -1,3 +1,3 @@\n # Parser\n \n-Parses the token stream.\n+Parses the token stream into a tree.\n","additions":1,"deletions":1,"status":"modified"},{"file":"src/lexer.ts","patch":"diff --git a/src/lexer.ts b/src/lexer.ts\nnew file mode 100644\nindex 0000000..2f4e80d\n--- /dev/null\n+++ b/src/lexer.ts\n@@ -0,0 +1 @@\n+export const lex = (text: string) => [...text]\n","additions":1,"deletions":0,"status":"added"}]}} + ] + } +} diff --git a/packages/cli-rs/parity/fixtures/E.15b/base/branches.json b/packages/cli-rs/parity/fixtures/E.15b/base/branches.json new file mode 100644 index 000000000000..10fe1045c6a4 --- /dev/null +++ b/packages/cli-rs/parity/fixtures/E.15b/base/branches.json @@ -0,0 +1,32 @@ +{"width":80,"height":30,"styles":["#ffffffff #030303ff 0","#353535ff #030303ff 1","#353535ff #030303ff 0","#ffffffff #080808ff 0","#353535ff #080808ff 0","#696969ff #080808ff 0","#21584eff #080808ff 0","#511822ff #080808ff 0","#ffffffff #0b1215ff 0","#3b3b3bff #0b1215ff 0","#4c5a38ff #0b1215ff 0","#413359ff #0d1418ff 0","#ffffffff #0d1418ff 0","#413359ff #0d1418ff 4","#674936ff #0d1418ff 0","#234b50ff #0d1418ff 0","#626262ff #0d1418ff 0","#5c2c30ff #0d1418ff 0","#622c2cff #0d1418ff 0","#080808ff #030303ff 0","#3b3b3bff #080808ff 0","#413359ff #080808ff 9","#ffffffff #141414ff 0","#808080ff #141414ff 0","#ffffffff #130d10ff 0","#3b3b3bff #130d10ff 0","#5d2c30ff #130d10ff 0","#696969ff #170e12ff 0","#ffffffff #170e12ff 0","#696969ff #0d1418ff 0","#7699feff #141414ff 0","#ffffffff #23344bff 0","#7699feff #23344bff 0","#ffffffff #202020ff 0","#808080ff #202020ff 0","#0e151fff #030303ff 0","#696969ff #030303ff 0"],"lines":[ +[" All · vs main 0/2 ",[[0,2],[1,3],[0,1],[2,1],[0,1],[2,2],[0,1],[2,4],[0,61],[2,3],[0,1]]], +[" ",[[3,80]]], +[" src/lexer.ts +1 -0 ",[[3,2],[4,4],[5,8],[3,60],[6,2],[3,1],[7,2],[3,1]]], +[" ",[[3,80]]], +[" 1 + export const lex = (text: string) => [...text] ",[[8,2],[9,1],[8,1],[10,1],[8,1],[11,6],[12,1],[13,5],[12,1],[14,3],[12,1],[15,1],[12,1],[16,1],[17,4],[15,1],[12,1],[18,6],[16,1],[12,1],[15,2],[12,1],[16,1],[15,3],[17,4],[16,1],[12,28]]], +["▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄",[[19,80]]], +[" README.md +1 -1 ",[[3,2],[5,9],[3,63],[6,2],[3,1],[7,2],[3,1]]], +[" ",[[3,80]]], +[" 1 # Pa ",[[3,2],[20,1],[3,3],[21,1],[3,1],[21,2],[22,60],[3,10]]], +[" 2 Base branch esc ",[[3,2],[20,1],[3,7],[22,53],[23,3],[22,4],[3,10]]], +[" 3 - Pars ",[[24,2],[25,1],[24,1],[26,1],[24,1],[27,4],[22,60],[28,10]]], +[" 3 + Pars Search local and remote branches ",[[8,2],[9,1],[8,1],[10,1],[8,1],[29,4],[22,4],[23,32],[22,24],[12,10]]], +[" ",[[0,10],[22,60],[0,10]]], +[" feature/lexer ",[[0,10],[30,1],[22,59],[0,10]]], +[" ┃ ▪ main ",[[0,10],[30,1],[31,1],[32,1],[31,57],[0,10]]], +[" release ",[[0,10],[30,1],[22,59],[0,10]]], +[" ",[[0,10],[22,60],[0,10]]], +[" ",[[0,10],[33,60],[0,10]]], +[" Remembered until the TUI exits ",[[0,10],[33,3],[34,30],[33,27],[0,10]]], +[" ",[[0,10],[33,60],[0,10]]], +[" ",[[0,80]]], +[" ",[[0,80]]], +[" ",[[0,80]]], +[" ",[[0,80]]], +[" ",[[0,80]]], +[" ",[[0,80]]], +[" ",[[0,80]]], +[" ",[[0,80]]], +[" ",[[0,80]]], +[" escape close ? see all ",[[0,2],[35,6],[0,1],[2,5],[0,56],[36,1],[0,1],[2,3],[0,1],[2,3],[0,1]]] +]} diff --git a/packages/cli-rs/parity/fixtures/E.15b/base/chosen.json b/packages/cli-rs/parity/fixtures/E.15b/base/chosen.json new file mode 100644 index 000000000000..c5b81f0dfcd5 --- /dev/null +++ b/packages/cli-rs/parity/fixtures/E.15b/base/chosen.json @@ -0,0 +1,32 @@ +{"width":80,"height":30,"styles":["#ffffffff #080808ff 0","#808080ff #080808ff 1","#808080ff #080808ff 0","#ffffffff #141414ff 0","#808080ff #141414ff 0","#4fd6beff #141414ff 0","#c53b53ff #141414ff 0","#ffffffff #1b2b34ff 0","#8f8f8fff #1b2b34ff 0","#b8db87ff #1b2b34ff 0","#9d7cd8ff #20303bff 0","#ffffffff #20303bff 0","#9d7cd8ff #20303bff 4","#fab283ff #20303bff 0","#56b6c2ff #20303bff 0","#eeeeeeff #20303bff 0","#e06c75ff #20303bff 0","#ef6c6cff #20303bff 0","#141414ff #080808ff 0","#8f8f8fff #141414ff 0","#9d7cd8ff #141414ff 9","#ffffffff #2d1f26ff 0","#8f8f8fff #2d1f26ff 0","#e26a75ff #2d1f26ff 0","#ffffffff #37222cff 0","#23344bff #080808ff 0"],"lines":[ +[" All · vs release 0/2 ",[[0,2],[1,3],[2,13],[0,58],[2,3],[0,1]]], +[" ",[[3,80]]], +[" src/lexer.ts +1 -0 ",[[3,2],[4,4],[3,68],[5,2],[3,1],[6,2],[3,1]]], +[" ",[[3,80]]], +[" 1 + export const lex = (text: string) => [...text] ",[[7,2],[8,1],[9,2],[7,1],[10,6],[11,1],[12,5],[11,1],[13,3],[11,1],[14,1],[11,1],[15,1],[16,4],[14,1],[11,1],[17,6],[15,1],[11,1],[14,2],[11,1],[15,1],[14,3],[16,4],[15,1],[11,28]]], +["▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄",[[18,80]]], +[" README.md +1 -1 ",[[3,74],[5,2],[3,1],[6,2],[3,1]]], +[" ",[[3,80]]], +[" 1 # Parser ",[[3,2],[19,1],[3,3],[20,8],[3,66]]], +[" 2 ",[[3,2],[19,1],[3,77]]], +[" 3 - Parses the token stream. ",[[21,2],[22,1],[23,2],[21,1],[24,74]]], +[" 3 + Parses the token stream into a tree. ",[[7,2],[8,1],[9,2],[7,1],[11,74]]], +[" ",[[0,80]]], +[" ",[[0,80]]], +[" ",[[0,80]]], +[" ",[[0,80]]], +[" ",[[0,80]]], +[" ",[[0,80]]], +[" ",[[0,80]]], +[" ",[[0,80]]], +[" ",[[0,80]]], +[" ",[[0,80]]], +[" ",[[0,80]]], +[" ",[[0,80]]], +[" ",[[0,80]]], +[" ",[[0,80]]], +[" ",[[0,80]]], +[" ",[[0,80]]], +[" ",[[0,80]]], +[" escape close ? see all ",[[0,2],[25,6],[2,6],[0,57],[2,8],[0,1]]] +]} diff --git a/packages/cli-rs/parity/fixtures/E.15b/base/home.json b/packages/cli-rs/parity/fixtures/E.15b/base/home.json new file mode 100644 index 000000000000..360773d62efb --- /dev/null +++ b/packages/cli-rs/parity/fixtures/E.15b/base/home.json @@ -0,0 +1,32 @@ +{"width":80,"height":30,"styles":["#ffffffff #080808ff 0","#808080ff #080808ff 0","#ffffffff #080808ff 1","#808080ff #262626ff 0","#ffffffff #464646ff 1","#262626ff #080808ff 0","#484848ff #080808ff 0","#ffffffff #202020ff 0","#00000000 #00000000 0","#202020ff #080808ff 0"],"lines":[ +[" ",[[0,80]]], +[" ",[[0,80]]], +[" ",[[0,80]]], +[" ",[[0,80]]], +[" ",[[0,80]]], +[" ",[[0,80]]], +[" ",[[0,80]]], +[" ",[[0,80]]], +[" ",[[0,80]]], +[" ▄ ",[[0,21],[1,19],[0,1],[2,19],[0,20]]], +[" █▀▀█ █▀▀█ █▀▀█ █▀▀▄ █▀▀▀ █▀▀█ █▀▀█ █▀▀█ ",[[0,21],[1,19],[0,1],[2,19],[0,20]]], +[" █ █ █ █ █▀▀▀ █ █ █ █ █ █ █ █▀▀▀ ",[[0,21],[1,1],[3,2],[1,3],[3,2],[1,3],[3,3],[1,2],[3,2],[1,1],[0,1],[2,1],[4,3],[2,2],[4,2],[2,3],[4,2],[2,3],[4,3],[0,20]]], +[" ▀▀▀▀ █▀▀▀ ▀▀▀▀ ▀▀▀▀ ▀▀▀▀ ▀▀▀▀ ▀▀▀▀ ▀▀▀▀ ",[[0,21],[1,16],[5,2],[1,1],[0,1],[2,19],[0,20]]], +[" ",[[0,80]]], +[" ",[[0,80]]], +[" ┃ ",[[0,3],[6,1],[7,74],[0,2]]], +[" ┃ ",[[0,3],[6,1],[7,2],[8,74]]], +[" ┃ ",[[0,3],[6,1],[7,74],[0,2]]], +[" ┃ ",[[0,3],[6,1],[7,74],[0,2]]], +[" ╹▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀ ",[[0,3],[6,1],[9,74],[0,2]]], +[" /tmp/opencode/packages/tui:main shift+tab agents ctrl+p commands ",[[0,3],[1,31],[0,21],[1,6],[0,9],[1,8],[0,2]]], +[" ",[[0,80]]], +[" ",[[0,80]]], +[" ",[[0,80]]], +[" ",[[0,80]]], +[" ",[[0,80]]], +[" ",[[0,80]]], +[" ",[[0,80]]], +[" test ",[[0,74],[1,4],[0,2]]], +[" ",[[0,80]]] +]} diff --git a/packages/cli-rs/parity/fixtures/E.15b/base/open.json b/packages/cli-rs/parity/fixtures/E.15b/base/open.json new file mode 100644 index 000000000000..debb29871465 --- /dev/null +++ b/packages/cli-rs/parity/fixtures/E.15b/base/open.json @@ -0,0 +1,32 @@ +{"width":80,"height":30,"styles":["#ffffffff #080808ff 0","#808080ff #080808ff 1","#808080ff #080808ff 0","#ffffffff #141414ff 0","#808080ff #141414ff 0","#4fd6beff #141414ff 0","#c53b53ff #141414ff 0","#ffffffff #1b2b34ff 0","#8f8f8fff #1b2b34ff 0","#b8db87ff #1b2b34ff 0","#9d7cd8ff #20303bff 0","#ffffffff #20303bff 0","#9d7cd8ff #20303bff 4","#fab283ff #20303bff 0","#56b6c2ff #20303bff 0","#eeeeeeff #20303bff 0","#e06c75ff #20303bff 0","#ef6c6cff #20303bff 0","#141414ff #080808ff 0","#8f8f8fff #141414ff 0","#9d7cd8ff #141414ff 9","#ffffffff #2d1f26ff 0","#8f8f8fff #2d1f26ff 0","#e26a75ff #2d1f26ff 0","#ffffffff #37222cff 0","#23344bff #080808ff 0"],"lines":[ +[" All · vs main 0/2 ",[[0,2],[1,3],[2,10],[0,61],[2,3],[0,1]]], +[" ",[[3,80]]], +[" src/lexer.ts +1 -0 ",[[3,2],[4,4],[3,68],[5,2],[3,1],[6,2],[3,1]]], +[" ",[[3,80]]], +[" 1 + export const lex = (text: string) => [...text] ",[[7,2],[8,1],[9,2],[7,1],[10,6],[11,1],[12,5],[11,1],[13,3],[11,1],[14,1],[11,1],[15,1],[16,4],[14,1],[11,1],[17,6],[15,1],[11,1],[14,2],[11,1],[15,1],[14,3],[16,4],[15,1],[11,28]]], +["▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄",[[18,80]]], +[" README.md +1 -1 ",[[3,74],[5,2],[3,1],[6,2],[3,1]]], +[" ",[[3,80]]], +[" 1 # Parser ",[[3,2],[19,1],[3,3],[20,8],[3,66]]], +[" 2 ",[[3,2],[19,1],[3,77]]], +[" 3 - Parses the token stream. ",[[21,2],[22,1],[23,2],[21,1],[24,74]]], +[" 3 + Parses the token stream into a tree. ",[[7,2],[8,1],[9,2],[7,1],[11,74]]], +[" ",[[0,80]]], +[" ",[[0,80]]], +[" ",[[0,80]]], +[" ",[[0,80]]], +[" ",[[0,80]]], +[" ",[[0,80]]], +[" ",[[0,80]]], +[" ",[[0,80]]], +[" ",[[0,80]]], +[" ",[[0,80]]], +[" ",[[0,80]]], +[" ",[[0,80]]], +[" ",[[0,80]]], +[" ",[[0,80]]], +[" ",[[0,80]]], +[" ",[[0,80]]], +[" ",[[0,80]]], +[" escape close ? see all ",[[0,2],[25,6],[2,6],[0,57],[2,8],[0,1]]] +]} diff --git a/packages/cli-rs/parity/fixtures/E.15b/base/remembered.json b/packages/cli-rs/parity/fixtures/E.15b/base/remembered.json new file mode 100644 index 000000000000..240b585198bb --- /dev/null +++ b/packages/cli-rs/parity/fixtures/E.15b/base/remembered.json @@ -0,0 +1,32 @@ +{"width":80,"height":30,"styles":["#ffffffff #030303ff 0","#353535ff #030303ff 1","#353535ff #030303ff 0","#ffffffff #080808ff 0","#353535ff #080808ff 0","#696969ff #080808ff 0","#21584eff #080808ff 0","#511822ff #080808ff 0","#ffffffff #0b1215ff 0","#3b3b3bff #0b1215ff 0","#4c5a38ff #0b1215ff 0","#413359ff #0d1418ff 0","#ffffffff #0d1418ff 0","#413359ff #0d1418ff 4","#674936ff #0d1418ff 0","#234b50ff #0d1418ff 0","#626262ff #0d1418ff 0","#5c2c30ff #0d1418ff 0","#622c2cff #0d1418ff 0","#080808ff #030303ff 0","#3b3b3bff #080808ff 0","#413359ff #080808ff 9","#ffffffff #141414ff 0","#808080ff #141414ff 0","#ffffffff #130d10ff 0","#3b3b3bff #130d10ff 0","#5d2c30ff #130d10ff 0","#696969ff #170e12ff 0","#ffffffff #170e12ff 0","#696969ff #0d1418ff 0","#7699feff #141414ff 0","#ffffffff #23344bff 0","#7699feff #23344bff 0","#93a2b7ff #23344bff 0","#0e151fff #030303ff 0","#696969ff #030303ff 0"],"lines":[ +[" All · vs release 0/2 ",[[0,2],[1,3],[0,1],[2,1],[0,1],[2,2],[0,1],[2,7],[0,58],[2,3],[0,1]]], +[" ",[[3,80]]], +[" src/lexer.ts +1 -0 ",[[3,2],[4,4],[5,8],[3,60],[6,2],[3,1],[7,2],[3,1]]], +[" ",[[3,80]]], +[" 1 + export const lex = (text: string) => [...text] ",[[8,2],[9,1],[8,1],[10,1],[8,1],[11,6],[12,1],[13,5],[12,1],[14,3],[12,1],[15,1],[12,1],[16,1],[17,4],[15,1],[12,1],[18,6],[16,1],[12,1],[15,2],[12,1],[16,1],[15,3],[17,4],[16,1],[12,28]]], +["▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄",[[19,80]]], +[" README.md +1 -1 ",[[3,2],[5,9],[3,63],[6,2],[3,1],[7,2],[3,1]]], +[" ",[[3,80]]], +[" 1 # Pa ",[[3,2],[20,1],[3,3],[21,1],[3,1],[21,2],[22,60],[3,10]]], +[" 2 Diff source esc ",[[3,2],[20,1],[3,7],[22,53],[23,3],[22,4],[3,10]]], +[" 3 - Pars ",[[24,2],[25,1],[24,1],[26,1],[24,1],[27,4],[22,60],[28,10]]], +[" 3 + Pars┃ ▪ All Branch + local changes ",[[8,2],[9,1],[8,1],[10,1],[8,1],[29,4],[30,1],[31,1],[32,1],[31,12],[33,23],[31,22],[12,10]]], +[" Committed Branch commits only ",[[0,10],[30,1],[22,14],[23,20],[22,25],[0,10]]], +[" Uncommitted Local changes only ",[[0,10],[30,1],[22,14],[23,19],[22,26],[0,10]]], +[" Base release ",[[0,10],[30,1],[22,14],[23,8],[22,37],[0,10]]], +[" ",[[0,10],[22,60],[0,10]]], +[" ",[[0,80]]], +[" ",[[0,80]]], +[" ",[[0,80]]], +[" ",[[0,80]]], +[" ",[[0,80]]], +[" ",[[0,80]]], +[" ",[[0,80]]], +[" ",[[0,80]]], +[" ",[[0,80]]], +[" ",[[0,80]]], +[" ",[[0,80]]], +[" ",[[0,80]]], +[" ",[[0,80]]], +[" escape close ? see all ",[[0,2],[34,6],[0,1],[2,5],[0,56],[35,1],[0,1],[2,3],[0,1],[2,3],[0,1]]] +]} diff --git a/packages/cli-rs/parity/fixtures/E.15b/base/sources.json b/packages/cli-rs/parity/fixtures/E.15b/base/sources.json new file mode 100644 index 000000000000..646c9b2bd2d6 --- /dev/null +++ b/packages/cli-rs/parity/fixtures/E.15b/base/sources.json @@ -0,0 +1,32 @@ +{"width":80,"height":30,"styles":["#ffffffff #030303ff 0","#353535ff #030303ff 1","#353535ff #030303ff 0","#ffffffff #080808ff 0","#353535ff #080808ff 0","#696969ff #080808ff 0","#21584eff #080808ff 0","#511822ff #080808ff 0","#ffffffff #0b1215ff 0","#3b3b3bff #0b1215ff 0","#4c5a38ff #0b1215ff 0","#413359ff #0d1418ff 0","#ffffffff #0d1418ff 0","#413359ff #0d1418ff 4","#674936ff #0d1418ff 0","#234b50ff #0d1418ff 0","#626262ff #0d1418ff 0","#5c2c30ff #0d1418ff 0","#622c2cff #0d1418ff 0","#080808ff #030303ff 0","#3b3b3bff #080808ff 0","#413359ff #080808ff 9","#ffffffff #141414ff 0","#808080ff #141414ff 0","#ffffffff #130d10ff 0","#3b3b3bff #130d10ff 0","#5d2c30ff #130d10ff 0","#696969ff #170e12ff 0","#ffffffff #170e12ff 0","#696969ff #0d1418ff 0","#7699feff #141414ff 0","#ffffffff #23344bff 0","#7699feff #23344bff 0","#93a2b7ff #23344bff 0","#0e151fff #030303ff 0","#696969ff #030303ff 0"],"lines":[ +[" All · vs main 0/2 ",[[0,2],[1,3],[0,1],[2,1],[0,1],[2,2],[0,1],[2,4],[0,61],[2,3],[0,1]]], +[" ",[[3,80]]], +[" src/lexer.ts +1 -0 ",[[3,2],[4,4],[5,8],[3,60],[6,2],[3,1],[7,2],[3,1]]], +[" ",[[3,80]]], +[" 1 + export const lex = (text: string) => [...text] ",[[8,2],[9,1],[8,1],[10,1],[8,1],[11,6],[12,1],[13,5],[12,1],[14,3],[12,1],[15,1],[12,1],[16,1],[17,4],[15,1],[12,1],[18,6],[16,1],[12,1],[15,2],[12,1],[16,1],[15,3],[17,4],[16,1],[12,28]]], +["▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄",[[19,80]]], +[" README.md +1 -1 ",[[3,2],[5,9],[3,63],[6,2],[3,1],[7,2],[3,1]]], +[" ",[[3,80]]], +[" 1 # Pa ",[[3,2],[20,1],[3,3],[21,1],[3,1],[21,2],[22,60],[3,10]]], +[" 2 Diff source esc ",[[3,2],[20,1],[3,7],[22,53],[23,3],[22,4],[3,10]]], +[" 3 - Pars ",[[24,2],[25,1],[24,1],[26,1],[24,1],[27,4],[22,60],[28,10]]], +[" 3 + Pars┃ ▪ All Branch + local changes ",[[8,2],[9,1],[8,1],[10,1],[8,1],[29,4],[30,1],[31,1],[32,1],[31,12],[33,23],[31,22],[12,10]]], +[" Committed Branch commits only ",[[0,10],[30,1],[22,14],[23,20],[22,25],[0,10]]], +[" Uncommitted Local changes only ",[[0,10],[30,1],[22,14],[23,19],[22,26],[0,10]]], +[" Base main ",[[0,10],[30,1],[22,14],[23,5],[22,40],[0,10]]], +[" ",[[0,10],[22,60],[0,10]]], +[" ",[[0,80]]], +[" ",[[0,80]]], +[" ",[[0,80]]], +[" ",[[0,80]]], +[" ",[[0,80]]], +[" ",[[0,80]]], +[" ",[[0,80]]], +[" ",[[0,80]]], +[" ",[[0,80]]], +[" ",[[0,80]]], +[" ",[[0,80]]], +[" ",[[0,80]]], +[" ",[[0,80]]], +[" escape close ? see all ",[[0,2],[34,6],[0,1],[2,5],[0,56],[35,1],[0,1],[2,3],[0,1],[2,3],[0,1]]] +]} diff --git a/packages/cli-rs/parity/fixtures/E.15b/menu.app.json b/packages/cli-rs/parity/fixtures/E.15b/menu.app.json new file mode 100644 index 000000000000..dafe384cf227 --- /dev/null +++ b/packages/cli-rs/parity/fixtures/E.15b/menu.app.json @@ -0,0 +1,61 @@ +{ + "scenario": "E.15b/menu", + "width": 120, + "height": 30, + "directory": "/tmp/opencode/packages/tui", + "config": { + "experimental": {"new-designs":true}, + "animations": false, + "theme": {"name":"opencode"} + }, + "args": {}, + "routes": [ + {"path":"/api/vcs/base","json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":{"name":"main","ref":"main","source":"default"}}}, + {"path":"/api/vcs/diff","json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":[{"file":"README.md","patch":"diff --git a/README.md b/README.md\nindex 5db345c..3dc9dd5 100644\n--- a/README.md\n+++ b/README.md\n@@ -1,3 +1,3 @@\n # Parser\n \n-Parses the token stream.\n+Parses the token stream into a tree.\n","additions":1,"deletions":1,"status":"modified"},{"file":"src/lexer.ts","patch":"diff --git a/src/lexer.ts b/src/lexer.ts\nnew file mode 100644\nindex 0000000..2f4e80d\n--- /dev/null\n+++ b/src/lexer.ts\n@@ -0,0 +1 @@\n+export const lex = (text: string) => [...text]\n","additions":1,"deletions":0,"status":"added"}]}} + ], + "steps": [ + {"checkpoint":"home","until":"Ask anything","masks":[{"x":26,"y":16,"width":94,"height":1,"reason":"the placeholder example: random in TS and Rust"}],"fixture":"E.15b/menu/home"}, + {"type":"/diff"}, + {"keys":["enter"]}, + {"checkpoint":"open","until":"vs main","masks":[{"x":33,"y":3,"width":87,"height":1,"reason":"code row, highlighted later in TS"},{"x":33,"y":7,"width":87,"height":1,"reason":"code row, highlighted later in TS"}],"fixture":"E.15b/menu/open"}, + {"keys":["?"]}, + {"checkpoint":"help","until":"Diff shortcuts","fixture":"E.15b/menu/help"}, + {"keys":["escape"]}, + {"checkpoint":"help-closed","until":"≡ lexer.ts","fixture":"E.15b/menu/help-closed"}, + {"rightClick":[8,4]}, + {"checkpoint":"menu","until":"Mark complete","fixture":"E.15b/menu/menu"}, + {"keys":["enter"]}, + {"checkpoint":"complete","until":"1/2","fixture":"E.15b/menu/complete"}, + {"rightClick":[8,4]}, + {"checkpoint":"menu-again","until":"Mark incomplete","fixture":"E.15b/menu/menu-again"}, + {"keys":["escape"]}, + {"checkpoint":"menu-closed","until":"1/2","fixture":"E.15b/menu/menu-closed"} + ], + "requests": { + "writes": [], + "reads": [ + {"method":"GET","path":"/api/agent","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":[]}}, + {"method":"GET","path":"/api/command","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":[]}}, + {"method":"GET","path":"/api/config","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":[]}, + {"method":"GET","path":"/api/experimental/migration/v1","query":{},"status":200,"json":{"status":"completed"}}, + {"method":"GET","path":"/api/form","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode"}},"data":[]}}, + {"method":"GET","path":"/api/fs/list","query":{"location[directory]":["<cwd>"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":[]}}, + {"method":"GET","path":"/api/info","query":{},"status":200,"json":{"version":"test","pid":0,"urls":[],"paths":{"tmp":"/tmp"},"capabilities":{"persistentPty":true}}}, + {"method":"GET","path":"/api/integration","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":[]}}, + {"method":"GET","path":"/api/location","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}}}, + {"method":"GET","path":"/api/mcp","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":[]}}, + {"method":"GET","path":"/api/mcp/resource","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":{"resources":[],"templates":[]}}}, + {"method":"GET","path":"/api/model","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":[]}}, + {"method":"GET","path":"/api/plugin","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":[]}}, + {"method":"GET","path":"/api/project","query":{},"status":200,"json":[]}, + {"method":"GET","path":"/api/provider","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":[]}}, + {"method":"GET","path":"/api/reference","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode/packages/tui","canonical":"/tmp/opencode/packages/tui"}},"data":[]}}, + {"method":"GET","path":"/api/session/active","query":{},"status":200,"json":{"data":{}}}, + {"method":"GET","path":"/api/shell","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":[]}}, + {"method":"GET","path":"/api/skill","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":[]}}, + {"method":"GET","path":"/api/vcs","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":{"branch":{"current":"main","default":"main"}}}}, + {"method":"GET","path":"/api/vcs/base","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":{"name":"main","ref":"main","source":"default"}}}, + {"method":"GET","path":"/api/vcs/diff","query":{"base":["main"],"context":["12"],"location[directory]":["/tmp/opencode/packages/tui"],"mode":["branch"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":[{"file":"README.md","patch":"diff --git a/README.md b/README.md\nindex 5db345c..3dc9dd5 100644\n--- a/README.md\n+++ b/README.md\n@@ -1,3 +1,3 @@\n # Parser\n \n-Parses the token stream.\n+Parses the token stream into a tree.\n","additions":1,"deletions":1,"status":"modified"},{"file":"src/lexer.ts","patch":"diff --git a/src/lexer.ts b/src/lexer.ts\nnew file mode 100644\nindex 0000000..2f4e80d\n--- /dev/null\n+++ b/src/lexer.ts\n@@ -0,0 +1 @@\n+export const lex = (text: string) => [...text]\n","additions":1,"deletions":0,"status":"added"}]}} + ] + } +} diff --git a/packages/cli-rs/parity/fixtures/E.15b/menu/complete.json b/packages/cli-rs/parity/fixtures/E.15b/menu/complete.json new file mode 100644 index 000000000000..32309214cf83 --- /dev/null +++ b/packages/cli-rs/parity/fixtures/E.15b/menu/complete.json @@ -0,0 +1,32 @@ +{"width":120,"height":30,"styles":["#ffffffff #141414ff 0","#ffffffff #080808ff 0","#ffffffff #202020ff 0","#808080ff #141414ff 1","#808080ff #141414ff 0","#808080ff #202020ff 0","#080808ff #080808ff 0","#202020ff #080808ff 0","#4f4f4fff #141414ff 0","#141414ff #080808ff 0","#343434ff #202020ff 0","#4f4f4fff #202020ff 0","#7699feff #202020ff 1","#4fd6beff #141414ff 0","#c53b53ff #141414ff 0","#8f8f8fff #141414ff 0","#9d7cd8ff #141414ff 9","#ffffffff #2d1f26ff 0","#8f8f8fff #2d1f26ff 0","#e26a75ff #2d1f26ff 0","#ffffffff #37222cff 0","#ffffffff #1b2b34ff 0","#8f8f8fff #1b2b34ff 0","#b8db87ff #1b2b34ff 0","#ffffffff #20303bff 0"],"lines":[ +[" ",[[0,30],[1,2],[2,86],[1,2]]], +[" All · vs main 1/2 src/lexer.ts ✓ +1 -0 ",[[0,2],[3,3],[4,10],[0,10],[4,3],[0,2],[1,2],[2,1],[5,12],[2,65],[5,1],[2,1],[5,2],[2,1],[5,2],[2,1],[1,2]]], +[" ▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀",[[0,30],[6,2],[7,86],[6,2]]], +[" ▾ src ▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄",[[0,2],[8,2],[4,3],[0,23],[6,2],[9,86],[6,2]]], +[" │ ≡ lexer.ts ✓ README.md +1 -1 ",[[0,2],[10,2],[11,2],[12,8],[2,13],[5,1],[0,2],[1,2],[0,80],[13,2],[0,1],[14,2],[0,1],[1,2]]], +[" ≡ README.md M ",[[0,2],[8,2],[0,23],[4,1],[0,2],[1,2],[0,86],[1,2]]], +[" 1 # Parser ",[[0,30],[1,2],[0,1],[15,1],[0,3],[16,8],[0,73],[1,2]]], +[" 2 ",[[0,30],[1,2],[0,1],[15,1],[0,84],[1,2]]], +[" 3 - Parses the token stream. ",[[0,30],[1,2],[17,1],[18,1],[19,2],[17,1],[20,81],[1,2]]], +[" 3 + Parses the token stream into a tree. ",[[0,30],[1,2],[21,1],[22,1],[23,2],[21,1],[24,81],[1,2]]], +[" ",[[0,30],[1,90]]], +[" ",[[0,30],[1,90]]], +[" ",[[0,30],[1,90]]], +[" ",[[0,30],[1,90]]], +[" ",[[0,30],[1,90]]], +[" ",[[0,30],[1,90]]], +[" ",[[0,30],[1,90]]], +[" ",[[0,30],[1,90]]], +[" ",[[0,30],[1,90]]], +[" ",[[0,30],[1,90]]], +[" ",[[0,30],[1,90]]], +[" ",[[0,30],[1,90]]], +[" ",[[0,30],[1,90]]], +[" ",[[0,30],[1,90]]], +[" ",[[0,30],[1,90]]], +[" ",[[0,30],[1,90]]], +[" ",[[0,30],[1,90]]], +[" ? help ",[[0,3],[4,5],[0,22],[1,90]]], +[" ",[[0,30],[1,90]]], +[" ",[[0,30],[1,90]]] +]} diff --git a/packages/cli-rs/parity/fixtures/E.15b/menu/help-closed.json b/packages/cli-rs/parity/fixtures/E.15b/menu/help-closed.json new file mode 100644 index 000000000000..e7d3dcf9e5d6 --- /dev/null +++ b/packages/cli-rs/parity/fixtures/E.15b/menu/help-closed.json @@ -0,0 +1,32 @@ +{"width":120,"height":30,"styles":["#ffffffff #141414ff 0","#ffffffff #080808ff 0","#808080ff #141414ff 1","#808080ff #141414ff 0","#4fd6beff #141414ff 0","#c53b53ff #141414ff 0","#4f4f4fff #141414ff 0","#ffffffff #1b2b34ff 0","#8f8f8fff #1b2b34ff 0","#b8db87ff #1b2b34ff 0","#9d7cd8ff #20303bff 0","#ffffffff #20303bff 0","#9d7cd8ff #20303bff 4","#fab283ff #20303bff 0","#56b6c2ff #20303bff 0","#eeeeeeff #20303bff 0","#e06c75ff #20303bff 0","#ef6c6cff #20303bff 0","#343434ff #141414ff 0","#080808ff #080808ff 0","#141414ff #080808ff 0","#8f8f8fff #141414ff 0","#9d7cd8ff #141414ff 9","#ffffffff #2d1f26ff 0","#8f8f8fff #2d1f26ff 0","#e26a75ff #2d1f26ff 0","#ffffffff #37222cff 0"],"lines":[ +[" ",[[0,30],[1,2],[0,86],[1,2]]], +[" All · vs main 0/2 src/lexer.ts +1 -0 ",[[0,2],[2,3],[3,10],[0,10],[3,3],[0,2],[1,2],[0,1],[3,4],[0,75],[4,2],[0,1],[5,2],[0,1],[1,2]]], +[" ",[[0,30],[1,2],[0,86],[1,2]]], +[" ▾ src 1 + export const lex = (text: string) => [...text] ",[[0,2],[6,2],[3,3],[0,23],[1,2],[7,1],[8,1],[9,2],[7,1],[10,6],[11,1],[12,5],[11,1],[13,3],[11,1],[14,1],[11,1],[15,1],[16,4],[14,1],[11,1],[17,6],[15,1],[11,1],[14,2],[11,1],[15,1],[14,3],[16,4],[15,1],[11,35],[1,2]]], +[" │ ≡ lexer.ts A ▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄",[[0,2],[18,2],[6,2],[0,21],[4,1],[0,2],[19,2],[20,86],[19,2]]], +[" ≡ README.md M README.md +1 -1 ",[[0,2],[6,2],[0,23],[3,1],[0,2],[1,2],[0,80],[4,2],[0,1],[5,2],[0,1],[1,2]]], +[" ",[[0,30],[1,2],[0,86],[1,2]]], +[" 1 # Parser ",[[0,30],[1,2],[0,1],[21,1],[0,3],[22,8],[0,73],[1,2]]], +[" 2 ",[[0,30],[1,2],[0,1],[21,1],[0,84],[1,2]]], +[" 3 - Parses the token stream. ",[[0,30],[1,2],[23,1],[24,1],[25,2],[23,1],[26,81],[1,2]]], +[" 3 + Parses the token stream into a tree. ",[[0,30],[1,2],[7,1],[8,1],[9,2],[7,1],[11,81],[1,2]]], +[" ",[[0,30],[1,90]]], +[" ",[[0,30],[1,90]]], +[" ",[[0,30],[1,90]]], +[" ",[[0,30],[1,90]]], +[" ",[[0,30],[1,90]]], +[" ",[[0,30],[1,90]]], +[" ",[[0,30],[1,90]]], +[" ",[[0,30],[1,90]]], +[" ",[[0,30],[1,90]]], +[" ",[[0,30],[1,90]]], +[" ",[[0,30],[1,90]]], +[" ",[[0,30],[1,90]]], +[" ",[[0,30],[1,90]]], +[" ",[[0,30],[1,90]]], +[" ",[[0,30],[1,90]]], +[" ",[[0,30],[1,90]]], +[" ? help ",[[0,3],[3,5],[0,22],[1,90]]], +[" ",[[0,30],[1,90]]], +[" ",[[0,30],[1,90]]] +]} diff --git a/packages/cli-rs/parity/fixtures/E.15b/menu/help.json b/packages/cli-rs/parity/fixtures/E.15b/menu/help.json new file mode 100644 index 000000000000..9ef93a9d6f5d --- /dev/null +++ b/packages/cli-rs/parity/fixtures/E.15b/menu/help.json @@ -0,0 +1,32 @@ +{"width":120,"height":30,"styles":["#ffffffff #080808ff 0","#ffffffff #030303ff 0","#353535ff #080808ff 1","#353535ff #080808ff 0","#696969ff #080808ff 0","#21584eff #080808ff 0","#511822ff #080808ff 0","#212121ff #080808ff 0","#ffffffff #0b1215ff 0","#3b3b3bff #0b1215ff 0","#4c5a38ff #0b1215ff 0","#413359ff #0d1418ff 0","#ffffffff #0d1418ff 0","#413359ff #0d1418ff 4","#674936ff #0d1418ff 0","#234b50ff #0d1418ff 0","#626262ff #0d1418ff 0","#5c2c30ff #0d1418ff 0","#622c2cff #0d1418ff 0","#151515ff #080808ff 0","#ffffffff #141414ff 0","#080808ff #030303ff 0","#030303ff #030303ff 0","#808080ff #141414ff 0","#ffffffff #141414ff 1","#ffffffff #170e12ff 0"],"lines":[ +[" ",[[0,30],[1,2],[0,86],[1,2]]], +[" All · vs main 0/2 src/lexer.ts +1 -0 ",[[0,2],[2,3],[0,1],[3,1],[0,1],[3,2],[0,1],[3,4],[0,10],[3,3],[0,2],[1,2],[0,1],[3,4],[4,8],[0,67],[5,2],[0,1],[6,2],[0,1],[1,2]]], +[" ",[[0,30],[1,2],[0,86],[1,2]]], +[" ▾ src 1 + export const lex = (text: string) => [...text] ",[[0,2],[7,1],[0,1],[3,3],[0,23],[1,2],[8,1],[9,1],[8,1],[10,1],[8,1],[11,6],[12,1],[13,5],[12,1],[14,3],[12,1],[15,1],[12,1],[16,1],[17,4],[15,1],[12,1],[18,6],[16,1],[12,1],[15,2],[12,1],[16,1],[15,3],[17,4],[16,1],[12,35],[1,2]]], +[" │ ≡ lexer.ts A ▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄",[[0,2],[19,1],[0,1],[7,1],[0,1],[4,8],[0,13],[5,1],[0,2],[20,60],[21,28],[22,2]]], +[" ≡ README.md M Diff shortcuts esc close +1 -1 ",[[0,2],[7,1],[0,1],[4,9],[0,14],[3,1],[0,2],[20,48],[23,9],[20,3],[0,22],[5,2],[0,1],[6,2],[0,1],[1,2]]], +[" ",[[0,30],[20,60],[0,28],[1,2]]], +[" Review ",[[0,30],[20,3],[24,6],[20,51],[0,28],[1,2]]], +[" n / alt+↓ Next file ",[[0,30],[20,22],[23,9],[20,29],[0,28],[1,2]]], +[" p / alt+↑ Previous file ",[[0,30],[20,22],[23,13],[20,25],[25,28],[1,2]]], +[" m Review + collapse / reopen ",[[0,30],[20,22],[23,26],[20,12],[12,28],[1,2]]], +[" ] / [ Next / previous change ",[[0,30],[20,22],[23,22],[20,16],[1,30]]], +[" right-click File menu (heading or tree) ",[[0,30],[20,22],[23,27],[20,11],[1,30]]], +[" ",[[0,30],[20,60],[1,30]]], +[" Scroll ",[[0,30],[20,3],[24,6],[20,51],[1,30]]], +[" j / k Down / up ",[[0,30],[20,22],[23,9],[20,29],[1,30]]], +[" ctrl+d / ctrl+u Half page down / up ",[[0,30],[20,22],[23,19],[20,19],[1,30]]], +[" pgdn / pgup Page down / up ",[[0,30],[20,22],[23,14],[20,24],[1,30]]], +[" g g / shift+g First / last ",[[0,30],[20,22],[23,12],[20,26],[1,30]]], +[" ",[[0,30],[20,60],[1,30]]], +[" View ",[[0,30],[20,3],[24,4],[20,53],[1,30]]], +[" v Split / unified ",[[0,30],[20,22],[23,15],[20,23],[1,30]]], +[" s All files / single file ",[[0,30],[20,22],[23,23],[20,15],[1,30]]], +[" b Show / hide file tree ",[[0,30],[20,22],[23,21],[20,17],[1,30]]], +[" d Switch diff source ",[[0,30],[20,22],[23,18],[20,20],[1,30]]], +[" escape / q Close diff viewer ",[[0,30],[20,22],[23,17],[20,21],[1,30]]], +[" ",[[0,30],[20,60],[1,30]]], +[" ? help ",[[0,2],[4,1],[0,1],[3,4],[0,22],[1,90]]], +[" ",[[0,30],[1,90]]], +[" ",[[0,30],[1,90]]] +]} diff --git a/packages/cli-rs/parity/fixtures/E.15b/menu/home.json b/packages/cli-rs/parity/fixtures/E.15b/menu/home.json new file mode 100644 index 000000000000..92229e213ba1 --- /dev/null +++ b/packages/cli-rs/parity/fixtures/E.15b/menu/home.json @@ -0,0 +1,32 @@ +{"width":120,"height":30,"styles":["#ffffffff #080808ff 0","#808080ff #080808ff 0","#ffffffff #080808ff 1","#808080ff #262626ff 0","#ffffffff #464646ff 1","#262626ff #080808ff 0","#484848ff #080808ff 0","#ffffffff #202020ff 0","#00000000 #00000000 0","#202020ff #080808ff 0"],"lines":[ +[" ",[[0,120]]], +[" ",[[0,120]]], +[" ",[[0,120]]], +[" ",[[0,120]]], +[" ",[[0,120]]], +[" ",[[0,120]]], +[" ",[[0,120]]], +[" ",[[0,120]]], +[" ",[[0,120]]], +[" ▄ ",[[0,41],[1,19],[0,1],[2,19],[0,40]]], +[" █▀▀█ █▀▀█ █▀▀█ █▀▀▄ █▀▀▀ █▀▀█ █▀▀█ █▀▀█ ",[[0,41],[1,19],[0,1],[2,19],[0,40]]], +[" █ █ █ █ █▀▀▀ █ █ █ █ █ █ █ █▀▀▀ ",[[0,41],[1,1],[3,2],[1,3],[3,2],[1,3],[3,3],[1,2],[3,2],[1,1],[0,1],[2,1],[4,3],[2,2],[4,2],[2,3],[4,2],[2,3],[4,3],[0,40]]], +[" ▀▀▀▀ █▀▀▀ ▀▀▀▀ ▀▀▀▀ ▀▀▀▀ ▀▀▀▀ ▀▀▀▀ ▀▀▀▀ ",[[0,41],[1,16],[5,2],[1,1],[0,1],[2,19],[0,40]]], +[" ",[[0,120]]], +[" ",[[0,120]]], +[" ┃ ",[[0,23],[6,1],[7,74],[0,22]]], +[" ┃ ",[[0,23],[6,1],[7,2],[8,94]]], +[" ┃ ",[[0,23],[6,1],[7,74],[0,22]]], +[" ┃ ",[[0,23],[6,1],[7,74],[0,22]]], +[" ╹▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀ ",[[0,23],[6,1],[9,74],[0,22]]], +[" /tmp/opencode/packages/tui:main shift+tab agents ctrl+p commands ",[[0,23],[1,31],[0,21],[1,6],[0,9],[1,8],[0,22]]], +[" ",[[0,120]]], +[" ",[[0,120]]], +[" ",[[0,120]]], +[" ",[[0,120]]], +[" ",[[0,120]]], +[" ",[[0,120]]], +[" ",[[0,120]]], +[" test ",[[0,114],[1,4],[0,2]]], +[" ",[[0,120]]] +]} diff --git a/packages/cli-rs/parity/fixtures/E.15b/menu/menu-again.json b/packages/cli-rs/parity/fixtures/E.15b/menu/menu-again.json new file mode 100644 index 000000000000..1fc6b24bbc9f --- /dev/null +++ b/packages/cli-rs/parity/fixtures/E.15b/menu/menu-again.json @@ -0,0 +1,32 @@ +{"width":120,"height":30,"styles":["#ffffffff #141414ff 0","#ffffffff #080808ff 0","#ffffffff #202020ff 0","#808080ff #141414ff 1","#808080ff #141414ff 0","#808080ff #202020ff 0","#080808ff #080808ff 0","#202020ff #080808ff 0","#4f4f4fff #141414ff 0","#141414ff #080808ff 0","#343434ff #141414ff 0","#7699feff #141414ff 1","#4fd6beff #141414ff 0","#c53b53ff #141414ff 0","#8f8f8fff #141414ff 0","#9d7cd8ff #141414ff 9","#ffffffff #2d1f26ff 0","#8f8f8fff #2d1f26ff 0","#e26a75ff #2d1f26ff 0","#ffffffff #37222cff 0","#ffffffff #1b2b34ff 0","#8f8f8fff #1b2b34ff 0","#b8db87ff #1b2b34ff 0","#ffffffff #20303bff 0"],"lines":[ +[" ",[[0,30],[1,2],[2,86],[1,2]]], +[" All · vs main 1/2 src/lexer.ts ✓ +1 -0 ",[[0,2],[3,3],[4,10],[0,10],[4,3],[0,2],[1,2],[2,1],[5,12],[2,65],[5,1],[2,1],[5,2],[2,1],[5,2],[2,1],[1,2]]], +[" ▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀",[[0,30],[6,2],[7,86],[6,2]]], +[" ▾ src ▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄",[[0,2],[8,2],[4,3],[0,23],[6,2],[9,86],[6,2]]], +[" │ ≡ lexer.ts ✓ README.md +1 -1 ",[[0,2],[10,2],[8,2],[11,8],[0,13],[4,1],[0,2],[1,2],[0,80],[12,2],[0,1],[13,2],[0,1],[1,2]]], +[" ≡ READ Mark incomplete M ",[[0,2],[8,2],[0,4],[2,19],[4,1],[0,2],[1,2],[0,86],[1,2]]], +[" 1 # Parser ",[[0,30],[1,2],[0,1],[14,1],[0,3],[15,8],[0,73],[1,2]]], +[" 2 ",[[0,30],[1,2],[0,1],[14,1],[0,84],[1,2]]], +[" 3 - Parses the token stream. ",[[0,30],[1,2],[16,1],[17,1],[18,2],[16,1],[19,81],[1,2]]], +[" 3 + Parses the token stream into a tree. ",[[0,30],[1,2],[20,1],[21,1],[22,2],[20,1],[23,81],[1,2]]], +[" ",[[0,30],[1,90]]], +[" ",[[0,30],[1,90]]], +[" ",[[0,30],[1,90]]], +[" ",[[0,30],[1,90]]], +[" ",[[0,30],[1,90]]], +[" ",[[0,30],[1,90]]], +[" ",[[0,30],[1,90]]], +[" ",[[0,30],[1,90]]], +[" ",[[0,30],[1,90]]], +[" ",[[0,30],[1,90]]], +[" ",[[0,30],[1,90]]], +[" ",[[0,30],[1,90]]], +[" ",[[0,30],[1,90]]], +[" ",[[0,30],[1,90]]], +[" ",[[0,30],[1,90]]], +[" ",[[0,30],[1,90]]], +[" ",[[0,30],[1,90]]], +[" ? help ",[[0,3],[4,5],[0,22],[1,90]]], +[" ",[[0,30],[1,90]]], +[" ",[[0,30],[1,90]]] +]} diff --git a/packages/cli-rs/parity/fixtures/E.15b/menu/menu-closed.json b/packages/cli-rs/parity/fixtures/E.15b/menu/menu-closed.json new file mode 100644 index 000000000000..32309214cf83 --- /dev/null +++ b/packages/cli-rs/parity/fixtures/E.15b/menu/menu-closed.json @@ -0,0 +1,32 @@ +{"width":120,"height":30,"styles":["#ffffffff #141414ff 0","#ffffffff #080808ff 0","#ffffffff #202020ff 0","#808080ff #141414ff 1","#808080ff #141414ff 0","#808080ff #202020ff 0","#080808ff #080808ff 0","#202020ff #080808ff 0","#4f4f4fff #141414ff 0","#141414ff #080808ff 0","#343434ff #202020ff 0","#4f4f4fff #202020ff 0","#7699feff #202020ff 1","#4fd6beff #141414ff 0","#c53b53ff #141414ff 0","#8f8f8fff #141414ff 0","#9d7cd8ff #141414ff 9","#ffffffff #2d1f26ff 0","#8f8f8fff #2d1f26ff 0","#e26a75ff #2d1f26ff 0","#ffffffff #37222cff 0","#ffffffff #1b2b34ff 0","#8f8f8fff #1b2b34ff 0","#b8db87ff #1b2b34ff 0","#ffffffff #20303bff 0"],"lines":[ +[" ",[[0,30],[1,2],[2,86],[1,2]]], +[" All · vs main 1/2 src/lexer.ts ✓ +1 -0 ",[[0,2],[3,3],[4,10],[0,10],[4,3],[0,2],[1,2],[2,1],[5,12],[2,65],[5,1],[2,1],[5,2],[2,1],[5,2],[2,1],[1,2]]], +[" ▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀",[[0,30],[6,2],[7,86],[6,2]]], +[" ▾ src ▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄",[[0,2],[8,2],[4,3],[0,23],[6,2],[9,86],[6,2]]], +[" │ ≡ lexer.ts ✓ README.md +1 -1 ",[[0,2],[10,2],[11,2],[12,8],[2,13],[5,1],[0,2],[1,2],[0,80],[13,2],[0,1],[14,2],[0,1],[1,2]]], +[" ≡ README.md M ",[[0,2],[8,2],[0,23],[4,1],[0,2],[1,2],[0,86],[1,2]]], +[" 1 # Parser ",[[0,30],[1,2],[0,1],[15,1],[0,3],[16,8],[0,73],[1,2]]], +[" 2 ",[[0,30],[1,2],[0,1],[15,1],[0,84],[1,2]]], +[" 3 - Parses the token stream. ",[[0,30],[1,2],[17,1],[18,1],[19,2],[17,1],[20,81],[1,2]]], +[" 3 + Parses the token stream into a tree. ",[[0,30],[1,2],[21,1],[22,1],[23,2],[21,1],[24,81],[1,2]]], +[" ",[[0,30],[1,90]]], +[" ",[[0,30],[1,90]]], +[" ",[[0,30],[1,90]]], +[" ",[[0,30],[1,90]]], +[" ",[[0,30],[1,90]]], +[" ",[[0,30],[1,90]]], +[" ",[[0,30],[1,90]]], +[" ",[[0,30],[1,90]]], +[" ",[[0,30],[1,90]]], +[" ",[[0,30],[1,90]]], +[" ",[[0,30],[1,90]]], +[" ",[[0,30],[1,90]]], +[" ",[[0,30],[1,90]]], +[" ",[[0,30],[1,90]]], +[" ",[[0,30],[1,90]]], +[" ",[[0,30],[1,90]]], +[" ",[[0,30],[1,90]]], +[" ? help ",[[0,3],[4,5],[0,22],[1,90]]], +[" ",[[0,30],[1,90]]], +[" ",[[0,30],[1,90]]] +]} diff --git a/packages/cli-rs/parity/fixtures/E.15b/menu/menu.json b/packages/cli-rs/parity/fixtures/E.15b/menu/menu.json new file mode 100644 index 000000000000..232bde0d00c9 --- /dev/null +++ b/packages/cli-rs/parity/fixtures/E.15b/menu/menu.json @@ -0,0 +1,32 @@ +{"width":120,"height":30,"styles":["#ffffffff #141414ff 0","#ffffffff #080808ff 0","#808080ff #141414ff 1","#808080ff #141414ff 0","#4fd6beff #141414ff 0","#c53b53ff #141414ff 0","#4f4f4fff #141414ff 0","#ffffffff #1b2b34ff 0","#8f8f8fff #1b2b34ff 0","#b8db87ff #1b2b34ff 0","#9d7cd8ff #20303bff 0","#ffffffff #20303bff 0","#9d7cd8ff #20303bff 4","#fab283ff #20303bff 0","#56b6c2ff #20303bff 0","#eeeeeeff #20303bff 0","#e06c75ff #20303bff 0","#ef6c6cff #20303bff 0","#343434ff #141414ff 0","#080808ff #080808ff 0","#141414ff #080808ff 0","#ffffffff #202020ff 0","#8f8f8fff #141414ff 0","#9d7cd8ff #141414ff 9","#ffffffff #2d1f26ff 0","#8f8f8fff #2d1f26ff 0","#e26a75ff #2d1f26ff 0","#ffffffff #37222cff 0"],"lines":[ +[" ",[[0,30],[1,2],[0,86],[1,2]]], +[" All · vs main 0/2 src/lexer.ts +1 -0 ",[[0,2],[2,3],[3,10],[0,10],[3,3],[0,2],[1,2],[0,1],[3,4],[0,75],[4,2],[0,1],[5,2],[0,1],[1,2]]], +[" ",[[0,30],[1,2],[0,86],[1,2]]], +[" ▾ src 1 + export const lex = (text: string) => [...text] ",[[0,2],[6,2],[3,3],[0,23],[1,2],[7,1],[8,1],[9,2],[7,1],[10,6],[11,1],[12,5],[11,1],[13,3],[11,1],[14,1],[11,1],[15,1],[16,4],[14,1],[11,1],[17,6],[15,1],[11,1],[14,2],[11,1],[15,1],[14,3],[16,4],[15,1],[11,35],[1,2]]], +[" │ ≡ lexer.ts A ▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄",[[0,2],[18,2],[6,2],[0,21],[4,1],[0,2],[19,2],[20,86],[19,2]]], +[" ≡ READ Mark complete M README.md +1 -1 ",[[0,2],[6,2],[0,4],[21,19],[3,1],[0,2],[1,2],[0,80],[4,2],[0,1],[5,2],[0,1],[1,2]]], +[" ",[[0,30],[1,2],[0,86],[1,2]]], +[" 1 # Parser ",[[0,30],[1,2],[0,1],[22,1],[0,3],[23,8],[0,73],[1,2]]], +[" 2 ",[[0,30],[1,2],[0,1],[22,1],[0,84],[1,2]]], +[" 3 - Parses the token stream. ",[[0,30],[1,2],[24,1],[25,1],[26,2],[24,1],[27,81],[1,2]]], +[" 3 + Parses the token stream into a tree. ",[[0,30],[1,2],[7,1],[8,1],[9,2],[7,1],[11,81],[1,2]]], +[" ",[[0,30],[1,90]]], +[" ",[[0,30],[1,90]]], +[" ",[[0,30],[1,90]]], +[" ",[[0,30],[1,90]]], +[" ",[[0,30],[1,90]]], +[" ",[[0,30],[1,90]]], +[" ",[[0,30],[1,90]]], +[" ",[[0,30],[1,90]]], +[" ",[[0,30],[1,90]]], +[" ",[[0,30],[1,90]]], +[" ",[[0,30],[1,90]]], +[" ",[[0,30],[1,90]]], +[" ",[[0,30],[1,90]]], +[" ",[[0,30],[1,90]]], +[" ",[[0,30],[1,90]]], +[" ",[[0,30],[1,90]]], +[" ? help ",[[0,3],[3,5],[0,22],[1,90]]], +[" ",[[0,30],[1,90]]], +[" ",[[0,30],[1,90]]] +]} diff --git a/packages/cli-rs/parity/fixtures/E.15b/menu/open.json b/packages/cli-rs/parity/fixtures/E.15b/menu/open.json new file mode 100644 index 000000000000..f9e05b7d3aa6 --- /dev/null +++ b/packages/cli-rs/parity/fixtures/E.15b/menu/open.json @@ -0,0 +1,32 @@ +{"width":120,"height":30,"styles":["#ffffffff #141414ff 0","#ffffffff #080808ff 0","#808080ff #141414ff 1","#808080ff #141414ff 0","#4fd6beff #141414ff 0","#c53b53ff #141414ff 0","#4f4f4fff #141414ff 0","#ffffffff #1b2b34ff 0","#00000000 #00000000 0","#343434ff #141414ff 0","#080808ff #080808ff 0","#141414ff #080808ff 0","#8f8f8fff #141414ff 0","#ffffffff #2d1f26ff 0","#8f8f8fff #2d1f26ff 0","#e26a75ff #2d1f26ff 0","#ffffffff #37222cff 0","#8f8f8fff #1b2b34ff 0","#b8db87ff #1b2b34ff 0","#ffffffff #20303bff 0"],"lines":[ +[" ",[[0,30],[1,2],[0,86],[1,2]]], +[" All · vs main 0/2 src/lexer.ts +1 -0 ",[[0,2],[2,3],[3,10],[0,10],[3,3],[0,2],[1,2],[0,1],[3,4],[0,75],[4,2],[0,1],[5,2],[0,1],[1,2]]], +[" ",[[0,30],[1,2],[0,86],[1,2]]], +[" ▾ src ",[[0,2],[6,2],[3,3],[0,23],[1,2],[7,1],[8,87]]], +[" │ ≡ lexer.ts A ▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄",[[0,2],[9,2],[6,2],[0,21],[4,1],[0,2],[10,2],[11,86],[10,2]]], +[" ≡ README.md M README.md +1 -1 ",[[0,2],[6,2],[0,23],[3,1],[0,2],[1,2],[0,80],[4,2],[0,1],[5,2],[0,1],[1,2]]], +[" ",[[0,30],[1,2],[0,86],[1,2]]], +[" ",[[0,30],[1,2],[0,1],[8,87]]], +[" 2 ",[[0,30],[1,2],[0,1],[12,1],[0,84],[1,2]]], +[" 3 - Parses the token stream. ",[[0,30],[1,2],[13,1],[14,1],[15,2],[13,1],[16,81],[1,2]]], +[" 3 + Parses the token stream into a tree. ",[[0,30],[1,2],[7,1],[17,1],[18,2],[7,1],[19,81],[1,2]]], +[" ",[[0,30],[1,90]]], +[" ",[[0,30],[1,90]]], +[" ",[[0,30],[1,90]]], +[" ",[[0,30],[1,90]]], +[" ",[[0,30],[1,90]]], +[" ",[[0,30],[1,90]]], +[" ",[[0,30],[1,90]]], +[" ",[[0,30],[1,90]]], +[" ",[[0,30],[1,90]]], +[" ",[[0,30],[1,90]]], +[" ",[[0,30],[1,90]]], +[" ",[[0,30],[1,90]]], +[" ",[[0,30],[1,90]]], +[" ",[[0,30],[1,90]]], +[" ",[[0,30],[1,90]]], +[" ",[[0,30],[1,90]]], +[" ? help ",[[0,3],[3,5],[0,22],[1,90]]], +[" ",[[0,30],[1,90]]], +[" ",[[0,30],[1,90]]] +]} diff --git a/packages/cli-rs/parity/fixtures/E.15b/turn.app.json b/packages/cli-rs/parity/fixtures/E.15b/turn.app.json new file mode 100644 index 000000000000..d1b9697e8901 --- /dev/null +++ b/packages/cli-rs/parity/fixtures/E.15b/turn.app.json @@ -0,0 +1,75 @@ +{ + "scenario": "E.15b/turn", + "width": 140, + "height": 40, + "directory": "/tmp/opencode/packages/tui", + "config": { + "experimental": {"new-designs":true}, + "animations": false, + "theme": {"name":"opencode"} + }, + "args": { + "sessionID": "ses_d" + }, + "routes": [ + {"path":"/api/session/ses_d","json":{"data":{"id":"ses_d","title":"Review the parser","projectID":"proj_test","cost":0,"tokens":{"input":0,"output":0,"reasoning":0,"cache":{"read":0,"write":0}},"time":{"created":2,"updated":2},"location":{"directory":"/tmp/opencode/packages/tui"}}}}, + {"path":"/api/session/ses_d/message","json":{"data":[{"id":"msg_2","type":"assistant","agent":"build","model":{"providerID":"provider","id":"model"},"content":[{"type":"text","text":"The parser changes are ready."}],"finish":"stop","time":{"created":2,"completed":3}},{"id":"msg_1","type":"user","text":"Show me the diff","time":{"created":1}}],"cursor":{}}}, + {"path":"/api/session/ses_d/inbox","json":{"data":[]}}, + {"path":"/api/session/ses_d/diff","json":{"data":[{"file":"src/parser.ts","patch":"diff --git a/src/parser.ts b/src/parser.ts\nindex 4285115..c2cd747 100644\n--- a/src/parser.ts\n+++ b/src/parser.ts\n@@ -1 +1 @@\n-export const parse = (text: string) => text.split(' ')\n+export const parse = (text: string) => text.trim().split(' ')\n","additions":1,"deletions":1,"status":"modified"},{"file":"src/tree.ts","patch":"diff --git a/src/tree.ts b/src/tree.ts\nnew file mode 100644\nindex 0000000..e5c05c9\n--- /dev/null\n+++ b/src/tree.ts\n@@ -0,0 +1 @@\n+export type Tree = { children: Tree[] }\n","additions":1,"deletions":0,"status":"added"}]}}, + {"path":"/api/vcs/base","json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":{"name":"main","ref":"main","source":"default"}}}, + {"path":"/api/vcs/diff","json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":[{"file":"README.md","patch":"diff --git a/README.md b/README.md\nindex 5db345c..3dc9dd5 100644\n--- a/README.md\n+++ b/README.md\n@@ -1,3 +1,3 @@\n # Parser\n \n-Parses the token stream.\n+Parses the token stream into a tree.\n","additions":1,"deletions":1,"status":"modified"},{"file":"src/lexer.ts","patch":"diff --git a/src/lexer.ts b/src/lexer.ts\nnew file mode 100644\nindex 0000000..2f4e80d\n--- /dev/null\n+++ b/src/lexer.ts\n@@ -0,0 +1 @@\n+export const lex = (text: string) => [...text]\n","additions":1,"deletions":0,"status":"added"}]}} + ], + "steps": [ + {"checkpoint":"session","until":"The parser changes are ready.","fixture":"E.15b/turn/session"}, + {"type":"/diff"}, + {"keys":["enter"]}, + {"checkpoint":"panel","until":"vs main","fixture":"E.15b/turn/panel"}, + {"keys":["d"]}, + {"checkpoint":"sources","until":"Latest session turn","fixture":"E.15b/turn/sources"}, + {"keys":["down","down","down","enter"]}, + {"checkpoint":"turn","until":"src/tree.ts","fixture":"E.15b/turn/turn"}, + {"keys":["m"]}, + {"checkpoint":"reviewed","until":"1/2","fixture":"E.15b/turn/reviewed"}, + {"event":{"id":"evt_1","created":3001,"type":"session.execution.started","durable":{"aggregateID":"ses_d","seq":1,"version":1},"data":{"sessionID":"ses_d"}}}, + {"checkpoint":"running","until":"1/2","fixture":"E.15b/turn/running"}, + {"event":{"id":"evt_2","created":3002,"type":"session.execution.succeeded","durable":{"aggregateID":"ses_d","seq":2,"version":1},"data":{"sessionID":"ses_d"}}}, + {"checkpoint":"refetched","until":"0/2","fixture":"E.15b/turn/refetched"} + ], + "requests": { + "writes": [], + "reads": [ + {"method":"GET","path":"/api/agent","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":[]}}, + {"method":"GET","path":"/api/command","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":[]}}, + {"method":"GET","path":"/api/config","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":[]}, + {"method":"GET","path":"/api/experimental/job","query":{"descendants":["true"],"sessionID":["ses_d"],"status":["running"]},"status":200,"json":{"data":[]}}, + {"method":"GET","path":"/api/experimental/migration/v1","query":{},"status":200,"json":{"status":"completed"}}, + {"method":"GET","path":"/api/experimental/session/ses_d/terminal","query":{},"status":200,"json":{"data":[]}}, + {"method":"GET","path":"/api/form","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode"}},"data":[]}}, + {"method":"GET","path":"/api/fs/list","query":{"location[directory]":["<cwd>"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":[]}}, + {"method":"GET","path":"/api/info","query":{},"status":200,"json":{"version":"test","pid":0,"urls":[],"paths":{"tmp":"/tmp"},"capabilities":{"persistentPty":true}}}, + {"method":"GET","path":"/api/integration","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":[]}}, + {"method":"GET","path":"/api/location","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}}}, + {"method":"GET","path":"/api/mcp","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":[]}}, + {"method":"GET","path":"/api/mcp/resource","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":{"resources":[],"templates":[]}}}, + {"method":"GET","path":"/api/model","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":[]}}, + {"method":"GET","path":"/api/plugin","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":[]}}, + {"method":"GET","path":"/api/project","query":{},"status":200,"json":[]}, + {"method":"GET","path":"/api/provider","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":[]}}, + {"method":"GET","path":"/api/reference","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode/packages/tui","canonical":"/tmp/opencode/packages/tui"}},"data":[]}}, + {"method":"GET","path":"/api/session","query":{"limit":["200"],"order":["desc"],"parentID":["ses_d"]},"status":200,"json":{"data":[],"cursor":{}}}, + {"method":"GET","path":"/api/session/active","query":{},"status":200,"json":{"data":{}}}, + {"method":"GET","path":"/api/session/ses_d","query":{},"status":200,"json":{"data":{"id":"ses_d","title":"Review the parser","projectID":"proj_test","cost":0,"tokens":{"input":0,"output":0,"reasoning":0,"cache":{"read":0,"write":0}},"time":{"created":2,"updated":2},"location":{"directory":"/tmp/opencode/packages/tui"}}}}, + {"method":"GET","path":"/api/session/ses_d/diff","query":{"context":["12"]},"status":200,"json":{"data":[{"file":"src/parser.ts","patch":"diff --git a/src/parser.ts b/src/parser.ts\nindex 4285115..c2cd747 100644\n--- a/src/parser.ts\n+++ b/src/parser.ts\n@@ -1 +1 @@\n-export const parse = (text: string) => text.split(' ')\n+export const parse = (text: string) => text.trim().split(' ')\n","additions":1,"deletions":1,"status":"modified"},{"file":"src/tree.ts","patch":"diff --git a/src/tree.ts b/src/tree.ts\nnew file mode 100644\nindex 0000000..e5c05c9\n--- /dev/null\n+++ b/src/tree.ts\n@@ -0,0 +1 @@\n+export type Tree = { children: Tree[] }\n","additions":1,"deletions":0,"status":"added"}]}}, + {"method":"GET","path":"/api/session/ses_d/form","query":{},"status":200,"json":{"data":[]}}, + {"method":"GET","path":"/api/session/ses_d/inbox","query":{},"status":200,"json":{"data":[]}}, + {"method":"GET","path":"/api/session/ses_d/message","query":{"limit":["20"],"order":["desc"]},"status":200,"json":{"data":[{"id":"msg_2","type":"assistant","agent":"build","model":{"providerID":"provider","id":"model"},"content":[{"type":"text","text":"The parser changes are ready."}],"finish":"stop","time":{"created":2,"completed":3}},{"id":"msg_1","type":"user","text":"Show me the diff","time":{"created":1}}],"cursor":{}}}, + {"method":"GET","path":"/api/session/ses_d/permission","query":{},"status":200,"json":{"data":[]}}, + {"method":"GET","path":"/api/shell","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":[]}}, + {"method":"GET","path":"/api/skill","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":[]}}, + {"method":"GET","path":"/api/vcs","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":{"branch":{"current":"main","default":"main"}}}}, + {"method":"GET","path":"/api/vcs/base","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":{"name":"main","ref":"main","source":"default"}}}, + {"method":"GET","path":"/api/vcs/diff","query":{"base":["main"],"context":["12"],"location[directory]":["/tmp/opencode/packages/tui"],"mode":["branch"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":[{"file":"README.md","patch":"diff --git a/README.md b/README.md\nindex 5db345c..3dc9dd5 100644\n--- a/README.md\n+++ b/README.md\n@@ -1,3 +1,3 @@\n # Parser\n \n-Parses the token stream.\n+Parses the token stream into a tree.\n","additions":1,"deletions":1,"status":"modified"},{"file":"src/lexer.ts","patch":"diff --git a/src/lexer.ts b/src/lexer.ts\nnew file mode 100644\nindex 0000000..2f4e80d\n--- /dev/null\n+++ b/src/lexer.ts\n@@ -0,0 +1 @@\n+export const lex = (text: string) => [...text]\n","additions":1,"deletions":0,"status":"added"}]}}, + {"method":"POST","path":"/api/rpc/opencode.goal/get","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"body":{"input":{"sessionID":"ses_d"}},"status":200,"json":{"output":null}} + ] + } +} diff --git a/packages/cli-rs/parity/fixtures/E.15b/turn/panel.json b/packages/cli-rs/parity/fixtures/E.15b/turn/panel.json new file mode 100644 index 000000000000..f83691fb1712 --- /dev/null +++ b/packages/cli-rs/parity/fixtures/E.15b/turn/panel.json @@ -0,0 +1,42 @@ +{"width":140,"height":40,"styles":["#ffffffff #202020ff 0","#ffffffff #202020ff 1","#808080ff #080808ff 0","#ffffffff #080808ff 0","#ffffffff #141414ff 0","#7699feff #141414ff 0","#808080ff #141414ff 1","#808080ff #141414ff 0","#4fd6beff #141414ff 0","#c53b53ff #141414ff 0","#eeeeeeff #080808ff 0","#ffffffff #1b2b34ff 0","#8f8f8fff #1b2b34ff 0","#b8db87ff #1b2b34ff 0","#9d7cd8ff #20303bff 0","#ffffffff #20303bff 0","#9d7cd8ff #20303bff 4","#fab283ff #20303bff 0","#56b6c2ff #20303bff 0","#eeeeeeff #20303bff 0","#e06c75ff #20303bff 0","#ef6c6cff #20303bff 0","#141414ff #080808ff 0","#7699feff #080808ff 0","#8f8f8fff #141414ff 0","#9d7cd8ff #141414ff 9","#ffffffff #2d1f26ff 0","#8f8f8fff #2d1f26ff 0","#e26a75ff #2d1f26ff 0","#ffffffff #37222cff 0","#484848ff #080808ff 0","#202020ff #080808ff 0","#808080ff #080808ff 2","#23344bff #080808ff 0"],"lines":[ +[" Review the parser + ",[[0,3],[1,17],[0,12],[2,3],[3,105]]], +[" ",[[3,70],[4,70]]], +[" ┃ All · vs main 0/2 ",[[3,2],[5,1],[4,65],[3,2],[4,2],[6,3],[7,10],[4,51],[7,3],[4,1]]], +[" ┃ Show me the diff ",[[3,2],[5,1],[4,65],[3,2],[4,70]]], +[" ┃ src/lexer.ts +1 -0 ",[[3,2],[5,1],[4,65],[3,2],[4,2],[7,4],[4,58],[8,2],[4,1],[9,2],[4,1]]], +[" ",[[3,70],[4,70]]], +[" The parser changes are ready. 1 + export const lex = (text: string) => [...text] ",[[3,5],[10,29],[3,36],[11,2],[12,1],[13,2],[11,1],[14,6],[15,1],[16,5],[15,1],[17,3],[15,1],[18,1],[15,1],[19,1],[20,4],[18,1],[15,1],[21,6],[19,1],[15,1],[18,2],[15,1],[19,1],[18,3],[20,4],[19,1],[15,18]]], +[" ▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄",[[3,70],[22,70]]], +[" Build · provider/model · 2ms README.md +1 -1 ",[[3,5],[23,5],[2,23],[3,37],[4,64],[8,2],[4,1],[9,2],[4,1]]], +[" ",[[3,70],[4,70]]], +[" 1 # Parser ",[[3,70],[4,2],[24,1],[4,3],[25,8],[4,56]]], +[" 2 ",[[3,70],[4,2],[24,1],[4,67]]], +[" 3 - Parses the token stream. ",[[3,70],[26,2],[27,1],[28,2],[26,1],[29,64]]], +[" 3 + Parses the token stream into a tree. ",[[3,70],[11,2],[12,1],[13,2],[11,1],[15,64]]], +[" ",[[3,70],[4,70]]], +[" ",[[3,70],[4,70]]], +[" ",[[3,70],[4,70]]], +[" ",[[3,70],[4,70]]], +[" ",[[3,70],[4,70]]], +[" ",[[3,70],[4,70]]], +[" ",[[3,70],[4,70]]], +[" ",[[3,70],[4,70]]], +[" ",[[3,70],[4,70]]], +[" ",[[3,70],[4,70]]], +[" ",[[3,70],[4,70]]], +[" ",[[3,70],[4,70]]], +[" ",[[3,70],[4,70]]], +[" ",[[3,70],[4,70]]], +[" ",[[3,70],[4,70]]], +[" ",[[3,70],[4,70]]], +[" ",[[3,70],[4,70]]], +[" ",[[3,70],[4,70]]], +[" ",[[3,70],[4,70]]], +[" ┃ ",[[3,2],[30,1],[0,65],[3,2],[4,70]]], +[" ┃ ",[[3,2],[30,1],[0,65],[3,2],[4,70]]], +[" ┃ ",[[3,2],[30,1],[0,65],[3,2],[4,70]]], +[" ┃ ",[[3,2],[30,1],[0,65],[3,2],[4,70]]], +[" ╹▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀ ▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀",[[3,2],[30,1],[31,65],[3,2],[22,70]]], +[" /tmp/opencode/packages/tui:main shift+tab agents ctrl+p commands ctrl+x ← focus prompt ? see all ",[[3,2],[2,31],[3,2],[32,16],[3,2],[32,15],[3,4],[33,8],[2,13],[3,38],[2,8],[3,1]]], +[" ",[[3,140]]] +]} diff --git a/packages/cli-rs/parity/fixtures/E.15b/turn/refetched.json b/packages/cli-rs/parity/fixtures/E.15b/turn/refetched.json new file mode 100644 index 000000000000..536cf6d3cdd6 --- /dev/null +++ b/packages/cli-rs/parity/fixtures/E.15b/turn/refetched.json @@ -0,0 +1,42 @@ +{"width":140,"height":40,"styles":["#ffffffff #202020ff 0","#ffffffff #202020ff 1","#808080ff #080808ff 0","#ffffffff #080808ff 0","#ffffffff #141414ff 0","#7699feff #141414ff 0","#808080ff #141414ff 1","#808080ff #141414ff 0","#4fd6beff #141414ff 0","#c53b53ff #141414ff 0","#eeeeeeff #080808ff 0","#ffffffff #2d1f26ff 0","#8f8f8fff #2d1f26ff 0","#e26a75ff #2d1f26ff 0","#9d7cd8ff #37222cff 0","#ffffffff #37222cff 0","#9d7cd8ff #37222cff 4","#fab283ff #37222cff 0","#56b6c2ff #37222cff 0","#eeeeeeff #37222cff 0","#e06c75ff #37222cff 0","#ef6c6cff #37222cff 0","#7fd88fff #37222cff 0","#ffffffff #1b2b34ff 0","#8f8f8fff #1b2b34ff 0","#b8db87ff #1b2b34ff 0","#9d7cd8ff #20303bff 0","#ffffffff #20303bff 0","#9d7cd8ff #20303bff 4","#fab283ff #20303bff 0","#56b6c2ff #20303bff 0","#eeeeeeff #20303bff 0","#e06c75ff #20303bff 0","#ef6c6cff #20303bff 0","#7fd88fff #20303bff 0","#7699feff #080808ff 0","#141414ff #080808ff 0","#e5c07bff #20303bff 0","#484848ff #080808ff 0","#202020ff #080808ff 0","#808080ff #080808ff 2","#23344bff #080808ff 0"],"lines":[ +[" Review the parser + ",[[0,3],[1,17],[0,12],[2,3],[3,105]]], +[" ",[[3,70],[4,70]]], +[" ┃ Last turn 0/2 ",[[3,2],[5,1],[4,65],[3,2],[4,2],[6,9],[4,55],[7,3],[4,1]]], +[" ┃ Show me the diff ",[[3,2],[5,1],[4,65],[3,2],[4,70]]], +[" ┃ src/parser.ts +1 -1 ",[[3,2],[5,1],[4,65],[3,2],[4,2],[7,4],[4,58],[8,2],[4,1],[9,2],[4,1]]], +[" ",[[3,70],[4,70]]], +[" The parser changes are ready. 1 - export const parse = (text: string) => text.split(' ') ",[[3,5],[10,29],[3,36],[11,2],[12,1],[13,2],[11,1],[14,6],[15,1],[16,5],[15,1],[17,5],[15,1],[18,1],[15,1],[19,1],[20,4],[18,1],[15,1],[21,6],[19,1],[15,1],[18,2],[15,1],[20,4],[18,1],[20,5],[19,1],[22,3],[19,1],[15,10]]], +[" 1 + export const parse = (text: string) => text.trim().split(' ') ",[[3,70],[23,2],[24,1],[25,2],[23,1],[26,6],[27,1],[28,5],[27,1],[29,5],[27,1],[30,1],[27,1],[31,1],[32,4],[30,1],[27,1],[33,6],[31,1],[27,1],[30,2],[27,1],[32,4],[30,1],[32,4],[31,2],[30,1],[32,5],[31,1],[34,3],[31,1],[27,3]]], +[" Build · provider/model · 2ms ▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄",[[3,5],[35,5],[2,23],[3,37],[36,70]]], +[" src/tree.ts +1 -0 ",[[3,70],[4,2],[7,4],[4,58],[8,2],[4,1],[9,2],[4,1]]], +[" ",[[3,70],[4,70]]], +[" 1 + export type Tree = { children: Tree[] } ",[[3,70],[23,2],[24,1],[25,2],[23,1],[26,6],[27,1],[28,4],[27,1],[37,4],[27,1],[30,1],[27,1],[31,1],[27,1],[29,8],[30,1],[27,1],[37,4],[31,2],[27,1],[31,1],[27,25]]], +[" ",[[3,70],[4,70]]], +[" ",[[3,70],[4,70]]], +[" ",[[3,70],[4,70]]], +[" ",[[3,70],[4,70]]], +[" ",[[3,70],[4,70]]], +[" ",[[3,70],[4,70]]], +[" ",[[3,70],[4,70]]], +[" ",[[3,70],[4,70]]], +[" ",[[3,70],[4,70]]], +[" ",[[3,70],[4,70]]], +[" ",[[3,70],[4,70]]], +[" ",[[3,70],[4,70]]], +[" ",[[3,70],[4,70]]], +[" ",[[3,70],[4,70]]], +[" ",[[3,70],[4,70]]], +[" ",[[3,70],[4,70]]], +[" ",[[3,70],[4,70]]], +[" ",[[3,70],[4,70]]], +[" ",[[3,70],[4,70]]], +[" ",[[3,70],[4,70]]], +[" ",[[3,70],[4,70]]], +[" ┃ ",[[3,2],[38,1],[0,65],[3,2],[4,70]]], +[" ┃ ",[[3,2],[38,1],[0,65],[3,2],[4,70]]], +[" ┃ ",[[3,2],[38,1],[0,65],[3,2],[4,70]]], +[" ┃ ",[[3,2],[38,1],[0,65],[3,2],[4,70]]], +[" ╹▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀ ▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀",[[3,2],[38,1],[39,65],[3,2],[36,70]]], +[" /tmp/opencode/packages/tui:main shift+tab agents ctrl+p commands ctrl+x ← focus prompt ? see all ",[[3,2],[2,31],[3,2],[40,16],[3,2],[40,15],[3,4],[41,8],[2,13],[3,38],[2,8],[3,1]]], +[" ",[[3,140]]] +]} diff --git a/packages/cli-rs/parity/fixtures/E.15b/turn/reviewed.json b/packages/cli-rs/parity/fixtures/E.15b/turn/reviewed.json new file mode 100644 index 000000000000..0dba1813b375 --- /dev/null +++ b/packages/cli-rs/parity/fixtures/E.15b/turn/reviewed.json @@ -0,0 +1,42 @@ +{"width":140,"height":40,"styles":["#ffffffff #202020ff 0","#ffffffff #202020ff 1","#808080ff #080808ff 0","#ffffffff #080808ff 0","#ffffffff #141414ff 0","#7699feff #141414ff 0","#808080ff #141414ff 1","#808080ff #141414ff 0","#808080ff #202020ff 0","#202020ff #080808ff 0","#eeeeeeff #080808ff 0","#141414ff #080808ff 0","#4fd6beff #141414ff 0","#c53b53ff #141414ff 0","#7699feff #080808ff 0","#ffffffff #1b2b34ff 0","#8f8f8fff #1b2b34ff 0","#b8db87ff #1b2b34ff 0","#9d7cd8ff #20303bff 0","#ffffffff #20303bff 0","#9d7cd8ff #20303bff 4","#e5c07bff #20303bff 0","#56b6c2ff #20303bff 0","#eeeeeeff #20303bff 0","#fab283ff #20303bff 0","#484848ff #080808ff 0","#808080ff #080808ff 2","#23344bff #080808ff 0"],"lines":[ +[" Review the parser + ",[[0,3],[1,17],[0,12],[2,3],[3,105]]], +[" ",[[3,70],[4,70]]], +[" ┃ Last turn 1/2 ",[[3,2],[5,1],[4,65],[3,2],[4,2],[6,9],[4,55],[7,3],[4,1]]], +[" ┃ Show me the diff ",[[3,2],[5,1],[4,65],[3,2],[0,70]]], +[" ┃ src/parser.ts ✓ +1 -1 ",[[3,2],[5,1],[4,65],[3,2],[0,2],[8,13],[0,47],[8,1],[0,1],[8,2],[0,1],[8,2],[0,1]]], +[" ▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀",[[3,70],[9,70]]], +[" The parser changes are ready. ▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄",[[3,5],[10,29],[3,36],[11,70]]], +[" src/tree.ts +1 -0 ",[[3,70],[4,2],[7,4],[4,58],[12,2],[4,1],[13,2],[4,1]]], +[" Build · provider/model · 2ms ",[[3,5],[14,5],[2,23],[3,37],[4,70]]], +[" 1 + export type Tree = { children: Tree[] } ",[[3,70],[15,2],[16,1],[17,2],[15,1],[18,6],[19,1],[20,4],[19,1],[21,4],[19,1],[22,1],[19,1],[23,1],[19,1],[24,8],[22,1],[19,1],[21,4],[23,2],[19,1],[23,1],[19,25]]], +[" ",[[3,70],[4,70]]], +[" ",[[3,70],[4,70]]], +[" ",[[3,70],[4,70]]], +[" ",[[3,70],[4,70]]], +[" ",[[3,70],[4,70]]], +[" ",[[3,70],[4,70]]], +[" ",[[3,70],[4,70]]], +[" ",[[3,70],[4,70]]], +[" ",[[3,70],[4,70]]], +[" ",[[3,70],[4,70]]], +[" ",[[3,70],[4,70]]], +[" ",[[3,70],[4,70]]], +[" ",[[3,70],[4,70]]], +[" ",[[3,70],[4,70]]], +[" ",[[3,70],[4,70]]], +[" ",[[3,70],[4,70]]], +[" ",[[3,70],[4,70]]], +[" ",[[3,70],[4,70]]], +[" ",[[3,70],[4,70]]], +[" ",[[3,70],[4,70]]], +[" ",[[3,70],[4,70]]], +[" ",[[3,70],[4,70]]], +[" ",[[3,70],[4,70]]], +[" ┃ ",[[3,2],[25,1],[0,65],[3,2],[4,70]]], +[" ┃ ",[[3,2],[25,1],[0,65],[3,2],[4,70]]], +[" ┃ ",[[3,2],[25,1],[0,65],[3,2],[4,70]]], +[" ┃ ",[[3,2],[25,1],[0,65],[3,2],[4,70]]], +[" ╹▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀ ▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀",[[3,2],[25,1],[9,65],[3,2],[11,70]]], +[" /tmp/opencode/packages/tui:main shift+tab agents ctrl+p commands ctrl+x ← focus prompt ? see all ",[[3,2],[2,31],[3,2],[26,16],[3,2],[26,15],[3,4],[27,8],[2,13],[3,38],[2,8],[3,1]]], +[" ",[[3,140]]] +]} diff --git a/packages/cli-rs/parity/fixtures/E.15b/turn/running.json b/packages/cli-rs/parity/fixtures/E.15b/turn/running.json new file mode 100644 index 000000000000..d6e612946e9a --- /dev/null +++ b/packages/cli-rs/parity/fixtures/E.15b/turn/running.json @@ -0,0 +1,42 @@ +{"width":140,"height":40,"styles":["#ffffffff #202020ff 0","#93a2b7ff #202020ff 1","#ffffffff #202020ff 1","#808080ff #080808ff 0","#ffffffff #080808ff 0","#ffffffff #141414ff 0","#7699feff #141414ff 0","#808080ff #141414ff 1","#808080ff #141414ff 0","#808080ff #202020ff 0","#202020ff #080808ff 0","#eeeeeeff #080808ff 0","#141414ff #080808ff 0","#4fd6beff #141414ff 0","#c53b53ff #141414ff 0","#7699feff #080808ff 0","#ffffffff #1b2b34ff 0","#8f8f8fff #1b2b34ff 0","#b8db87ff #1b2b34ff 0","#9d7cd8ff #20303bff 0","#ffffffff #20303bff 0","#9d7cd8ff #20303bff 4","#e5c07bff #20303bff 0","#56b6c2ff #20303bff 0","#eeeeeeff #20303bff 0","#fab283ff #20303bff 0","#484848ff #080808ff 0","#808080ff #080808ff 2","#23344bff #080808ff 0"],"lines":[ +[" ⠋ Review the parser + ",[[0,1],[1,1],[0,1],[2,17],[0,12],[3,3],[4,105]]], +[" ",[[4,70],[5,70]]], +[" ┃ Last turn 1/2 ",[[4,2],[6,1],[5,65],[4,2],[5,2],[7,9],[5,55],[8,3],[5,1]]], +[" ┃ Show me the diff ",[[4,2],[6,1],[5,65],[4,2],[0,70]]], +[" ┃ src/parser.ts ✓ +1 -1 ",[[4,2],[6,1],[5,65],[4,2],[0,2],[9,13],[0,47],[9,1],[0,1],[9,2],[0,1],[9,2],[0,1]]], +[" ▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀",[[4,70],[10,70]]], +[" The parser changes are ready. ▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄",[[4,5],[11,29],[4,36],[12,70]]], +[" src/tree.ts +1 -0 ",[[4,70],[5,2],[8,4],[5,58],[13,2],[5,1],[14,2],[5,1]]], +[" Build · provider/model · 2ms ",[[4,5],[15,5],[3,23],[4,37],[5,70]]], +[" 1 + export type Tree = { children: Tree[] } ",[[4,70],[16,2],[17,1],[18,2],[16,1],[19,6],[20,1],[21,4],[20,1],[22,4],[20,1],[23,1],[20,1],[24,1],[20,1],[25,8],[23,1],[20,1],[22,4],[24,2],[20,1],[24,1],[20,25]]], +[" ",[[4,70],[5,70]]], +[" ",[[4,70],[5,70]]], +[" ",[[4,70],[5,70]]], +[" ",[[4,70],[5,70]]], +[" ",[[4,70],[5,70]]], +[" ",[[4,70],[5,70]]], +[" ",[[4,70],[5,70]]], +[" ",[[4,70],[5,70]]], +[" ",[[4,70],[5,70]]], +[" ",[[4,70],[5,70]]], +[" ",[[4,70],[5,70]]], +[" ",[[4,70],[5,70]]], +[" ",[[4,70],[5,70]]], +[" ",[[4,70],[5,70]]], +[" ",[[4,70],[5,70]]], +[" ",[[4,70],[5,70]]], +[" ",[[4,70],[5,70]]], +[" ",[[4,70],[5,70]]], +[" ",[[4,70],[5,70]]], +[" ",[[4,70],[5,70]]], +[" ",[[4,70],[5,70]]], +[" ",[[4,70],[5,70]]], +[" ",[[4,70],[5,70]]], +[" ┃ ",[[4,2],[26,1],[0,65],[4,2],[5,70]]], +[" ┃ ",[[4,2],[26,1],[0,65],[4,2],[5,70]]], +[" ┃ ",[[4,2],[26,1],[0,65],[4,2],[5,70]]], +[" ┃ ",[[4,2],[26,1],[0,65],[4,2],[5,70]]], +[" ╹▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀ ▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀",[[4,2],[26,1],[10,65],[4,2],[12,70]]], +[" [⋯] esc interrupt shift+tab agents ctrl+p commands ctrl+x ← focus prompt ? see all ",[[4,3],[3,3],[4,5],[3,9],[4,15],[27,16],[4,2],[27,15],[4,4],[28,8],[3,13],[4,38],[3,8],[4,1]]], +[" ",[[4,140]]] +]} diff --git a/packages/cli-rs/parity/fixtures/E.15b/turn/session.json b/packages/cli-rs/parity/fixtures/E.15b/turn/session.json new file mode 100644 index 000000000000..7394a0ba65af --- /dev/null +++ b/packages/cli-rs/parity/fixtures/E.15b/turn/session.json @@ -0,0 +1,42 @@ +{"width":140,"height":40,"styles":["#ffffffff #202020ff 0","#ffffffff #202020ff 1","#808080ff #080808ff 0","#ffffffff #080808ff 0","#ffffffff #141414ff 0","#7699feff #141414ff 0","#ffffffff #141414ff 1","#eeeeeeff #080808ff 0","#7699feff #080808ff 0","#808080ff #202020ff 0","#484848ff #080808ff 0","#202020ff #080808ff 0","#808080ff #141414ff 0"],"lines":[ +[" Review the parser + ",[[0,3],[1,17],[0,12],[2,3],[3,105]]], +[" ",[[3,98],[4,42]]], +[" ┃ Review the parser ",[[3,2],[5,1],[4,93],[3,2],[4,2],[6,17],[4,23]]], +[" ┃ Show me the diff ",[[3,2],[5,1],[4,93],[3,2],[4,42]]], +[" ┃ ",[[3,2],[5,1],[4,93],[3,2],[4,42]]], +[" ",[[3,98],[4,42]]], +[" The parser changes are ready. ",[[3,5],[7,29],[3,64],[4,42]]], +[" ",[[3,98],[4,42]]], +[" Build · provider/model · 2ms ",[[3,5],[8,5],[2,23],[3,65],[4,42]]], +[" ",[[3,98],[4,42]]], +[" ",[[3,98],[4,42]]], +[" ",[[3,98],[4,42]]], +[" ",[[3,98],[4,42]]], +[" ",[[3,98],[4,42]]], +[" ",[[3,98],[4,42]]], +[" ",[[3,98],[4,42]]], +[" ",[[3,98],[4,42]]], +[" ",[[3,98],[4,42]]], +[" ",[[3,98],[4,42]]], +[" ",[[3,98],[4,42]]], +[" ",[[3,98],[4,42]]], +[" ",[[3,98],[4,42]]], +[" ",[[3,98],[4,42]]], +[" ",[[3,98],[4,42]]], +[" ",[[3,98],[4,42]]], +[" ",[[3,98],[4,2],[0,38],[4,2]]], +[" ⬖ Getting started ✕ ",[[3,98],[4,2],[0,4],[1,15],[0,16],[9,1],[0,2],[4,2]]], +[" ",[[3,98],[4,2],[0,38],[4,2]]], +[" OpenCode includes free models so ",[[3,98],[4,2],[0,4],[9,32],[0,2],[4,2]]], +[" you can start immediately. ",[[3,98],[4,2],[0,4],[9,26],[0,8],[4,2]]], +[" ",[[3,98],[4,2],[0,38],[4,2]]], +[" Connect from 75+ providers to ",[[3,98],[4,2],[0,4],[9,30],[0,4],[4,2]]], +[" use other models, including ",[[3,98],[4,2],[0,4],[9,28],[0,6],[4,2]]], +[" ┃ Claude, GPT, Gemini etc ",[[3,2],[10,1],[0,93],[3,2],[4,2],[0,4],[9,23],[0,11],[4,2]]], +[" ┃ ",[[3,2],[10,1],[0,93],[3,2],[4,2],[0,38],[4,2]]], +[" ┃ Connect provider /connect ",[[3,2],[10,1],[0,93],[3,2],[4,2],[0,28],[9,8],[0,2],[4,2]]], +[" ┃ ",[[3,2],[10,1],[0,93],[3,2],[4,2],[0,38],[4,2]]], +[" ╹▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀ ",[[3,2],[10,1],[11,93],[3,2],[4,42]]], +[" /tmp/opencode/packages/tui:main shift+tab agents ctrl+p commands /tmp/opencode/packages/tui:main ",[[3,2],[2,31],[3,40],[2,6],[3,9],[2,8],[3,2],[4,2],[12,31],[4,9]]], +[" ",[[3,98],[4,42]]] +]} diff --git a/packages/cli-rs/parity/fixtures/E.15b/turn/sources.json b/packages/cli-rs/parity/fixtures/E.15b/turn/sources.json new file mode 100644 index 000000000000..c75fbe1688c5 --- /dev/null +++ b/packages/cli-rs/parity/fixtures/E.15b/turn/sources.json @@ -0,0 +1,42 @@ +{"width":140,"height":40,"styles":["#ffffffff #0d0d0dff 0","#696969ff #0d0d0dff 1","#ffffffff #030303ff 0","#353535ff #030303ff 0","#ffffffff #080808ff 0","#313f69ff #080808ff 0","#353535ff #080808ff 1","#353535ff #080808ff 0","#696969ff #080808ff 0","#21584eff #080808ff 0","#511822ff #080808ff 0","#626262ff #030303ff 0","#ffffffff #0b1215ff 0","#3b3b3bff #0b1215ff 0","#4c5a38ff #0b1215ff 0","#413359ff #0d1418ff 0","#ffffffff #0d1418ff 0","#413359ff #0d1418ff 4","#674936ff #0d1418ff 0","#234b50ff #0d1418ff 0","#626262ff #0d1418ff 0","#5c2c30ff #0d1418ff 0","#622c2cff #0d1418ff 0","#080808ff #030303ff 0","#313f69ff #030303ff 0","#ffffffff #141414ff 0","#808080ff #141414ff 0","#ffffffff #170e12ff 0","#7699feff #141414ff 0","#ffffffff #23344bff 0","#7699feff #23344bff 0","#93a2b7ff #23344bff 0","#696969ff #0d1418ff 0","#1e1e1eff #030303ff 0","#0d0d0dff #030303ff 0","#353535ff #030303ff 2","#0e151fff #030303ff 0","#696969ff #030303ff 0"],"lines":[ +[" Review the parser + ",[[0,3],[1,6],[0,1],[1,3],[0,1],[1,6],[0,12],[2,1],[3,1],[2,106]]], +[" ",[[2,70],[4,70]]], +[" ┃ All · vs main 0/2 ",[[2,2],[5,1],[4,65],[2,2],[4,2],[6,3],[4,1],[7,1],[4,1],[7,2],[4,1],[7,4],[4,51],[7,3],[4,1]]], +[" ┃ Show me the diff ",[[2,2],[5,1],[4,2],[8,4],[4,1],[8,2],[4,1],[8,3],[4,1],[8,4],[4,47],[2,2],[4,70]]], +[" ┃ src/lexer.ts +1 -0 ",[[2,2],[5,1],[4,65],[2,2],[4,2],[7,4],[8,8],[4,50],[9,2],[4,1],[10,2],[4,1]]], +[" ",[[2,70],[4,70]]], +[" The parser changes are ready. 1 + export const lex = (text: string) => [...text] ",[[2,5],[11,3],[2,1],[11,6],[2,1],[11,7],[2,1],[11,3],[2,1],[11,6],[2,36],[12,2],[13,1],[12,1],[14,1],[12,1],[15,6],[16,1],[17,5],[16,1],[18,3],[16,1],[19,1],[16,1],[20,1],[21,4],[19,1],[16,1],[22,6],[20,1],[16,1],[19,2],[16,1],[20,1],[19,3],[21,4],[20,1],[16,18]]], +[" ▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄",[[2,70],[23,70]]], +[" Build · provider/model · 2ms README.md +1 -1 ",[[2,5],[24,5],[2,1],[3,1],[2,1],[3,14],[2,1],[3,1],[2,1],[3,3],[2,37],[4,2],[8,9],[4,53],[9,2],[4,1],[10,2],[4,1]]], +[" ",[[2,70],[4,70]]], +[" ",[[2,40],[25,60],[4,40]]], +[" Diff source esc ",[[2,40],[25,53],[26,3],[25,4],[4,40]]], +[" ",[[2,40],[25,60],[27,40]]], +[" ┃ ▪ All Branch + local changes into a tree. ",[[2,40],[28,1],[29,1],[30,1],[29,12],[31,23],[29,22],[32,4],[16,1],[32,1],[16,1],[32,5],[16,28]]], +[" Committed Branch commits only ",[[2,40],[28,1],[25,14],[26,20],[25,25],[4,40]]], +[" Uncommitted Local changes only ",[[2,40],[28,1],[25,14],[26,19],[25,26],[4,40]]], +[" Last turn Latest session turn ",[[2,40],[28,1],[25,14],[26,20],[25,25],[4,40]]], +[" Base main ",[[2,40],[28,1],[25,14],[26,5],[25,40],[4,40]]], +[" ",[[2,40],[25,60],[4,40]]], +[" ",[[2,70],[4,70]]], +[" ",[[2,70],[4,70]]], +[" ",[[2,70],[4,70]]], +[" ",[[2,70],[4,70]]], +[" ",[[2,70],[4,70]]], +[" ",[[2,70],[4,70]]], +[" ",[[2,70],[4,70]]], +[" ",[[2,70],[4,70]]], +[" ",[[2,70],[4,70]]], +[" ",[[2,70],[4,70]]], +[" ",[[2,70],[4,70]]], +[" ",[[2,70],[4,70]]], +[" ",[[2,70],[4,70]]], +[" ",[[2,70],[4,70]]], +[" ┃ ",[[2,2],[33,1],[0,65],[2,2],[4,70]]], +[" ┃ ",[[2,2],[33,1],[0,65],[2,2],[4,70]]], +[" ┃ ",[[2,2],[33,1],[0,65],[2,2],[4,70]]], +[" ┃ ",[[2,2],[33,1],[0,65],[2,2],[4,70]]], +[" ╹▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀ ▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀",[[2,2],[33,1],[34,65],[2,2],[23,70]]], +[" /tmp/opencode/packages/tui:main shift+tab agents ctrl+p commands ctrl+x ← focus prompt ? see all ",[[2,2],[3,31],[2,2],[35,9],[2,1],[35,6],[2,2],[35,6],[2,1],[35,8],[2,4],[36,6],[2,1],[36,1],[2,1],[3,5],[2,1],[3,6],[2,37],[37,1],[2,1],[3,3],[2,1],[3,3],[2,1]]], +[" ",[[2,140]]] +]} diff --git a/packages/cli-rs/parity/fixtures/E.15b/turn/turn.json b/packages/cli-rs/parity/fixtures/E.15b/turn/turn.json new file mode 100644 index 000000000000..536cf6d3cdd6 --- /dev/null +++ b/packages/cli-rs/parity/fixtures/E.15b/turn/turn.json @@ -0,0 +1,42 @@ +{"width":140,"height":40,"styles":["#ffffffff #202020ff 0","#ffffffff #202020ff 1","#808080ff #080808ff 0","#ffffffff #080808ff 0","#ffffffff #141414ff 0","#7699feff #141414ff 0","#808080ff #141414ff 1","#808080ff #141414ff 0","#4fd6beff #141414ff 0","#c53b53ff #141414ff 0","#eeeeeeff #080808ff 0","#ffffffff #2d1f26ff 0","#8f8f8fff #2d1f26ff 0","#e26a75ff #2d1f26ff 0","#9d7cd8ff #37222cff 0","#ffffffff #37222cff 0","#9d7cd8ff #37222cff 4","#fab283ff #37222cff 0","#56b6c2ff #37222cff 0","#eeeeeeff #37222cff 0","#e06c75ff #37222cff 0","#ef6c6cff #37222cff 0","#7fd88fff #37222cff 0","#ffffffff #1b2b34ff 0","#8f8f8fff #1b2b34ff 0","#b8db87ff #1b2b34ff 0","#9d7cd8ff #20303bff 0","#ffffffff #20303bff 0","#9d7cd8ff #20303bff 4","#fab283ff #20303bff 0","#56b6c2ff #20303bff 0","#eeeeeeff #20303bff 0","#e06c75ff #20303bff 0","#ef6c6cff #20303bff 0","#7fd88fff #20303bff 0","#7699feff #080808ff 0","#141414ff #080808ff 0","#e5c07bff #20303bff 0","#484848ff #080808ff 0","#202020ff #080808ff 0","#808080ff #080808ff 2","#23344bff #080808ff 0"],"lines":[ +[" Review the parser + ",[[0,3],[1,17],[0,12],[2,3],[3,105]]], +[" ",[[3,70],[4,70]]], +[" ┃ Last turn 0/2 ",[[3,2],[5,1],[4,65],[3,2],[4,2],[6,9],[4,55],[7,3],[4,1]]], +[" ┃ Show me the diff ",[[3,2],[5,1],[4,65],[3,2],[4,70]]], +[" ┃ src/parser.ts +1 -1 ",[[3,2],[5,1],[4,65],[3,2],[4,2],[7,4],[4,58],[8,2],[4,1],[9,2],[4,1]]], +[" ",[[3,70],[4,70]]], +[" The parser changes are ready. 1 - export const parse = (text: string) => text.split(' ') ",[[3,5],[10,29],[3,36],[11,2],[12,1],[13,2],[11,1],[14,6],[15,1],[16,5],[15,1],[17,5],[15,1],[18,1],[15,1],[19,1],[20,4],[18,1],[15,1],[21,6],[19,1],[15,1],[18,2],[15,1],[20,4],[18,1],[20,5],[19,1],[22,3],[19,1],[15,10]]], +[" 1 + export const parse = (text: string) => text.trim().split(' ') ",[[3,70],[23,2],[24,1],[25,2],[23,1],[26,6],[27,1],[28,5],[27,1],[29,5],[27,1],[30,1],[27,1],[31,1],[32,4],[30,1],[27,1],[33,6],[31,1],[27,1],[30,2],[27,1],[32,4],[30,1],[32,4],[31,2],[30,1],[32,5],[31,1],[34,3],[31,1],[27,3]]], +[" Build · provider/model · 2ms ▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄",[[3,5],[35,5],[2,23],[3,37],[36,70]]], +[" src/tree.ts +1 -0 ",[[3,70],[4,2],[7,4],[4,58],[8,2],[4,1],[9,2],[4,1]]], +[" ",[[3,70],[4,70]]], +[" 1 + export type Tree = { children: Tree[] } ",[[3,70],[23,2],[24,1],[25,2],[23,1],[26,6],[27,1],[28,4],[27,1],[37,4],[27,1],[30,1],[27,1],[31,1],[27,1],[29,8],[30,1],[27,1],[37,4],[31,2],[27,1],[31,1],[27,25]]], +[" ",[[3,70],[4,70]]], +[" ",[[3,70],[4,70]]], +[" ",[[3,70],[4,70]]], +[" ",[[3,70],[4,70]]], +[" ",[[3,70],[4,70]]], +[" ",[[3,70],[4,70]]], +[" ",[[3,70],[4,70]]], +[" ",[[3,70],[4,70]]], +[" ",[[3,70],[4,70]]], +[" ",[[3,70],[4,70]]], +[" ",[[3,70],[4,70]]], +[" ",[[3,70],[4,70]]], +[" ",[[3,70],[4,70]]], +[" ",[[3,70],[4,70]]], +[" ",[[3,70],[4,70]]], +[" ",[[3,70],[4,70]]], +[" ",[[3,70],[4,70]]], +[" ",[[3,70],[4,70]]], +[" ",[[3,70],[4,70]]], +[" ",[[3,70],[4,70]]], +[" ",[[3,70],[4,70]]], +[" ┃ ",[[3,2],[38,1],[0,65],[3,2],[4,70]]], +[" ┃ ",[[3,2],[38,1],[0,65],[3,2],[4,70]]], +[" ┃ ",[[3,2],[38,1],[0,65],[3,2],[4,70]]], +[" ┃ ",[[3,2],[38,1],[0,65],[3,2],[4,70]]], +[" ╹▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀ ▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀",[[3,2],[38,1],[39,65],[3,2],[36,70]]], +[" /tmp/opencode/packages/tui:main shift+tab agents ctrl+p commands ctrl+x ← focus prompt ? see all ",[[3,2],[2,31],[3,2],[40,16],[3,2],[40,15],[3,4],[41,8],[2,13],[3,38],[2,8],[3,1]]], +[" ",[[3,140]]] +]} diff --git a/packages/cli-rs/parity/fixtures/E.16/agent.json b/packages/cli-rs/parity/fixtures/E.16/agent.json new file mode 100644 index 000000000000..ca463cff32e5 --- /dev/null +++ b/packages/cli-rs/parity/fixtures/E.16/agent.json @@ -0,0 +1,36 @@ +{"width":90,"height":34,"styles":["#ffffffff #030303ff 0","#ffffffff #141414ff 0","#808080ff #141414ff 0","#7699feff #141414ff 0","#ffffffff #23344bff 0","#7699feff #23344bff 0","#93a2b7ff #23344bff 0"],"lines":[ +[" ",[[0,90]]], +[" ",[[0,90]]], +[" ",[[0,90]]], +[" ",[[0,90]]], +[" ",[[0,90]]], +[" ",[[0,90]]], +[" ",[[0,90]]], +[" ",[[0,90]]], +[" ",[[0,90]]], +[" ",[[0,15],[1,60],[0,15]]], +[" Search agents esc ",[[0,15],[1,4],[2,13],[1,36],[2,3],[1,4],[0,15]]], +[" ",[[0,15],[1,60],[0,15]]], +[" ┃ ▪ build The default agent ",[[0,15],[3,1],[4,1],[5,1],[4,6],[6,18],[4,33],[0,15]]], +[" plan Plans without editing ",[[0,15],[3,1],[1,7],[2,22],[1,30],[0,15]]], +[" ",[[0,15],[1,60],[0,15]]], +[" ",[[0,90]]], +[" ",[[0,90]]], +[" ",[[0,90]]], +[" ",[[0,90]]], +[" ",[[0,90]]], +[" ",[[0,90]]], +[" ",[[0,90]]], +[" ",[[0,90]]], +[" ",[[0,90]]], +[" ",[[0,90]]], +[" ",[[0,90]]], +[" ",[[0,90]]], +[" ",[[0,90]]], +[" ",[[0,90]]], +[" ",[[0,90]]], +[" ",[[0,90]]], +[" ",[[0,90]]], +[" ",[[0,90]]], +[" ",[[0,90]]] +]} diff --git a/packages/cli-rs/parity/fixtures/E.16/go-upsell-art-256.json b/packages/cli-rs/parity/fixtures/E.16/go-upsell-art-256.json new file mode 100644 index 000000000000..344f52bdd8ed --- /dev/null +++ b/packages/cli-rs/parity/fixtures/E.16/go-upsell-art-256.json @@ -0,0 +1,36 @@ +{"width":90,"height":34,"styles":["#ffffffff #030303ff 0","#141414ff #141414ff 0","#141415ff #141415ff 0","#141515ff #141515ff 0","#141516ff #141516ff 0","#151617ff #151617ff 0","#151618ff #151618ff 0","#151719ff #151719ff 0","#16181aff #16181aff 0","#16171aff #16171aff 0","#151516ff #151516ff 0","#ffffffff #141414ff 1","#ffffffff #141415ff 1","#ffffffff #141515ff 1","#ffffffff #151516ff 1","#808080ff #141414ff 0","#808080ff #141515ff 0","#808080ff #151516ff 0","#808080ff #141415ff 0","#151517ff #151517ff 0","#151718ff #151718ff 0","#16181bff #16181bff 0","#95989bff #151516ff 0","#9a9c9fff #151516ff 0","#9d9fa1ff #151516ff 0","#9fa1a3ff #151516ff 0","#9fa1a3ff #151516ff 1","#9d9fa1ff #151516ff 1","#9a9c9fff #151516ff 1","#95989bff #151516ff 1","#96999cff #151516ff 0","#3a3a3aff #3a3a3aff 0","#9fa0a2ff #3a3a3aff 0","#a1a2a4ff #151516ff 0","#a1a2a4ff #151516ff 1","#3a3a3aff #3a3a3aff 1","#96999cff #151516ff 1","#94969aff #151516ff 0","#97999dff #151516ff 0","#9c9ea1ff #151516ff 0","#9c9ea1ff #151516ff 1","#97999dff #151516ff 1","#94969aff #151516ff 1","#23344bff #141415ff 0","#23344bff #141515ff 0","#23344bff #151516ff 0","#ffffffff #23344bff 0","#ffffffff #23344bff 1"],"lines":[ +[" ",[[0,90]]], +[" ",[[0,90]]], +[" ",[[0,90]]], +[" ",[[0,90]]], +[" ",[[0,90]]], +[" ",[[0,90]]], +[" ",[[0,90]]], +[" ",[[0,90]]], +[" ",[[0,90]]], +[" ",[[0,15],[1,1],[2,6],[3,1],[4,1],[5,1],[6,1],[7,1],[8,1],[9,1],[7,1],[5,1],[10,2],[4,23],[10,2],[5,1],[7,1],[9,1],[8,1],[7,1],[6,1],[5,1],[4,1],[3,1],[2,6],[1,2],[0,15]]], +[" Free limit reached esc ",[[0,15],[2,3],[11,4],[12,1],[13,2],[14,2],[13,2],[12,7],[4,23],[10,1],[5,1],[7,1],[9,1],[8,1],[7,1],[6,1],[10,1],[3,1],[2,1],[15,3],[2,2],[1,1],[0,15]]], +[" ",[[0,15],[2,4],[3,2],[5,1],[6,1],[7,1],[8,1],[7,1],[6,1],[10,1],[4,33],[10,1],[6,1],[7,1],[8,1],[7,1],[6,1],[5,1],[3,2],[2,5],[0,15]]], +[" You've used today's free messages. Resets at 3:00 PM. ",[[0,15],[2,3],[15,2],[16,3],[17,1],[16,2],[18,13],[16,11],[18,13],[16,2],[17,1],[16,3],[15,2],[2,4],[0,15]]], +[" OpenCode Go gives you reliable access to the best ",[[0,15],[2,3],[15,1],[18,1],[16,2],[17,1],[16,2],[18,11],[16,3],[17,11],[16,3],[18,11],[16,2],[17,1],[16,1],[6,1],[10,1],[3,1],[2,4],[0,15]]], +[" open-source models for $10/month. ",[[0,15],[2,2],[3,1],[18,1],[16,2],[17,1],[16,2],[18,11],[16,2],[17,4],[16,7],[17,3],[9,1],[7,1],[6,1],[10,1],[4,9],[10,1],[6,1],[7,1],[8,1],[7,1],[5,1],[10,1],[3,1],[2,3],[0,15]]], +[" ",[[0,15],[2,2],[3,1],[19,1],[6,1],[7,1],[8,1],[20,1],[5,1],[4,9],[5,1],[6,1],[9,1],[8,1],[21,1],[7,1],[6,1],[5,1],[10,7],[5,1],[6,1],[7,1],[21,1],[8,1],[9,1],[6,1],[5,1],[4,9],[5,1],[20,1],[8,1],[7,1],[6,1],[19,1],[3,1],[2,3],[0,15]]], +[" ",[[0,15],[2,1],[3,1],[4,1],[5,1],[7,1],[8,1],[9,1],[6,1],[10,1],[4,8],[10,1],[6,1],[7,1],[8,1],[21,1],[7,1],[5,1],[10,11],[5,1],[7,1],[21,1],[8,1],[7,1],[6,1],[10,1],[4,8],[10,1],[6,1],[9,1],[8,1],[7,1],[5,1],[4,1],[3,1],[2,2],[0,15]]], +[" █▀▀▀ █▀▀█ ",[[0,15],[2,1],[3,1],[4,1],[5,1],[7,1],[8,1],[7,1],[5,1],[10,1],[4,8],[5,1],[20,1],[9,1],[21,1],[9,1],[6,1],[10,2],[22,1],[23,1],[24,1],[25,1],[10,1],[26,1],[27,1],[28,1],[29,1],[10,2],[6,1],[9,1],[21,1],[9,1],[20,1],[5,1],[4,8],[10,1],[5,1],[7,1],[8,1],[7,1],[5,1],[4,1],[3,1],[2,2],[0,15]]], +[" █ ▀█ █ █ ",[[0,15],[2,1],[3,1],[4,1],[5,1],[7,1],[8,1],[7,1],[5,1],[10,1],[4,8],[5,1],[20,1],[9,1],[21,1],[9,1],[6,1],[10,2],[30,1],[31,1],[32,1],[33,1],[10,1],[34,1],[35,2],[36,1],[10,2],[6,1],[9,1],[21,1],[9,1],[20,1],[5,1],[4,8],[10,1],[5,1],[7,1],[8,1],[7,1],[5,1],[4,1],[3,1],[2,2],[0,15]]], +[" ▀▀▀▀ ▀▀▀▀ ",[[0,15],[2,1],[3,1],[4,1],[5,1],[7,1],[8,1],[9,1],[6,1],[10,1],[4,8],[10,1],[6,1],[7,1],[8,1],[21,1],[7,1],[5,1],[10,1],[37,1],[38,1],[23,1],[39,1],[10,1],[40,1],[28,1],[41,1],[42,1],[10,1],[5,1],[7,1],[21,1],[8,1],[7,1],[6,1],[10,1],[4,8],[10,1],[6,1],[9,1],[8,1],[7,1],[5,1],[4,1],[3,1],[2,2],[0,15]]], +[" ",[[0,15],[2,2],[3,1],[19,1],[6,1],[7,1],[8,1],[20,1],[5,1],[4,9],[5,1],[6,1],[9,1],[8,1],[21,1],[7,1],[6,1],[5,1],[10,7],[5,1],[6,1],[7,1],[21,1],[8,1],[9,1],[6,1],[5,1],[4,9],[5,1],[20,1],[8,1],[7,1],[6,1],[19,1],[3,1],[2,3],[0,15]]], +[" https://opencode.ai/go ",[[0,15],[2,2],[3,1],[10,1],[5,1],[7,1],[8,1],[7,1],[6,1],[10,1],[4,9],[43,1],[44,2],[45,4],[44,7],[45,4],[44,2],[43,2],[4,8],[10,1],[6,1],[7,1],[8,1],[7,1],[5,1],[10,1],[3,1],[2,3],[0,15]]], +[" ",[[0,15],[2,3],[3,1],[10,1],[6,1],[7,1],[8,1],[7,1],[5,1],[10,1],[4,9],[10,1],[5,1],[6,1],[7,1],[9,1],[8,2],[21,5],[8,2],[9,1],[7,1],[6,1],[5,1],[10,1],[4,9],[10,1],[5,1],[7,1],[8,1],[7,1],[6,1],[10,1],[3,1],[2,4],[0,15]]], +[" ",[[0,15],[2,4],[3,1],[5,1],[6,1],[7,1],[8,1],[7,1],[5,1],[10,1],[4,11],[10,1],[5,2],[6,2],[20,3],[6,2],[5,2],[10,1],[4,11],[10,1],[5,1],[7,1],[8,1],[7,1],[6,1],[5,1],[3,1],[2,5],[0,15]]], +[" don't show again dismiss subscribe ",[[0,15],[2,4],[3,1],[15,1],[16,3],[17,1],[16,2],[18,9],[4,13],[18,7],[4,3],[46,2],[47,9],[46,2],[2,3],[0,15]]], +[" ",[[0,15],[2,6],[3,1],[10,1],[6,1],[7,1],[8,1],[9,1],[7,1],[5,1],[10,1],[4,29],[10,1],[5,1],[7,1],[9,1],[8,1],[7,1],[6,1],[10,1],[3,1],[2,6],[1,1],[0,15]]], +[" ",[[0,90]]], +[" ",[[0,90]]], +[" ",[[0,90]]], +[" ",[[0,90]]], +[" ",[[0,90]]], +[" ",[[0,90]]], +[" ",[[0,90]]], +[" ",[[0,90]]] +]} diff --git a/packages/cli-rs/parity/fixtures/E.16/go-upsell-art.json b/packages/cli-rs/parity/fixtures/E.16/go-upsell-art.json new file mode 100644 index 000000000000..aa9f09cb0423 --- /dev/null +++ b/packages/cli-rs/parity/fixtures/E.16/go-upsell-art.json @@ -0,0 +1,36 @@ +{"width":90,"height":34,"styles":["#ffffffff #030303ff 0","#141414ff #141414ff 0","#141415ff #141415ff 0","#141515ff #141515ff 0","#141516ff #141516ff 0","#151617ff #151617ff 0","#151618ff #151618ff 0","#151719ff #151719ff 0","#16181aff #16181aff 0","#16171aff #16171aff 0","#151516ff #151516ff 0","#ffffffff #141414ff 1","#ffffffff #141415ff 1","#ffffffff #141515ff 1","#ffffffff #151516ff 1","#808080ff #141414ff 0","#808080ff #141515ff 0","#808080ff #151516ff 0","#808080ff #141415ff 0","#151517ff #151517ff 0","#151718ff #151718ff 0","#16181bff #16181bff 0","#94979bff #96989cff 0","#9a9c9fff #151516ff 0","#9d9fa1ff #151516ff 0","#9fa1a3ff #151516ff 0","#9ea0a2ff #a0a2a3ff 1","#9d9fa1ff #151516ff 1","#9a9c9fff #151516ff 1","#94979bff #96989cff 1","#96999cff #96989cff 0","#3a3a3aff #3a3a3aff 0","#9fa0a2ff #3a3a3aff 0","#a1a3a4ff #a0a2a3ff 0","#a1a3a4ff #a0a2a3ff 1","#3a3a3aff #3a3a3aff 1","#96999cff #96989cff 1","#94969aff #151516ff 0","#97999dff #151516ff 0","#9c9ea1ff #151516ff 0","#9c9ea1ff #151516ff 1","#97999dff #151516ff 1","#94969aff #151516ff 1","#23344bff #141415ff 0","#23344bff #141515ff 0","#23344bff #151516ff 0","#ffffffff #23344bff 0","#ffffffff #23344bff 1"],"lines":[ +[" ",[[0,90]]], +[" ",[[0,90]]], +[" ",[[0,90]]], +[" ",[[0,90]]], +[" ",[[0,90]]], +[" ",[[0,90]]], +[" ",[[0,90]]], +[" ",[[0,90]]], +[" ",[[0,90]]], +[" ",[[0,15],[1,1],[2,6],[3,1],[4,1],[5,1],[6,1],[7,1],[8,1],[9,1],[7,1],[5,1],[10,2],[4,23],[10,2],[5,1],[7,1],[9,1],[8,1],[7,1],[6,1],[5,1],[4,1],[3,1],[2,6],[1,2],[0,15]]], +[" Free limit reached esc ",[[0,15],[2,3],[11,4],[12,1],[13,2],[14,2],[13,2],[12,7],[4,23],[10,1],[5,1],[7,1],[9,1],[8,1],[7,1],[6,1],[10,1],[3,1],[2,1],[15,3],[2,2],[1,1],[0,15]]], +[" ",[[0,15],[2,4],[3,2],[5,1],[6,1],[7,1],[8,1],[7,1],[6,1],[10,1],[4,33],[10,1],[6,1],[7,1],[8,1],[7,1],[6,1],[5,1],[3,2],[2,5],[0,15]]], +[" You've used today's free messages. Resets at 3:00 PM. ",[[0,15],[2,3],[15,2],[16,3],[17,1],[16,2],[18,13],[16,11],[18,13],[16,2],[17,1],[16,3],[15,2],[2,4],[0,15]]], +[" OpenCode Go gives you reliable access to the best ",[[0,15],[2,3],[15,1],[18,1],[16,2],[17,1],[16,2],[18,11],[16,3],[17,11],[16,3],[18,11],[16,2],[17,1],[16,1],[6,1],[10,1],[3,1],[2,4],[0,15]]], +[" open-source models for $10/month. ",[[0,15],[2,2],[3,1],[18,1],[16,2],[17,1],[16,2],[18,11],[16,2],[17,4],[16,7],[17,3],[9,1],[7,1],[6,1],[10,1],[4,9],[10,1],[6,1],[7,1],[8,1],[7,1],[5,1],[10,1],[3,1],[2,3],[0,15]]], +[" ",[[0,15],[2,2],[3,1],[19,1],[6,1],[7,1],[8,1],[20,1],[5,1],[4,9],[5,1],[6,1],[9,1],[8,1],[21,1],[7,1],[6,1],[5,1],[10,7],[5,1],[6,1],[7,1],[21,1],[8,1],[9,1],[6,1],[5,1],[4,9],[5,1],[20,1],[8,1],[7,1],[6,1],[19,1],[3,1],[2,3],[0,15]]], +[" ",[[0,15],[2,1],[3,1],[4,1],[5,1],[7,1],[8,1],[9,1],[6,1],[10,1],[4,8],[10,1],[6,1],[7,1],[8,1],[21,1],[7,1],[5,1],[10,11],[5,1],[7,1],[21,1],[8,1],[7,1],[6,1],[10,1],[4,8],[10,1],[6,1],[9,1],[8,1],[7,1],[5,1],[4,1],[3,1],[2,2],[0,15]]], +[" ▀▀▀▀ ▀▀▀▀ ",[[0,15],[2,1],[3,1],[4,1],[5,1],[7,1],[8,1],[7,1],[5,1],[10,1],[4,8],[5,1],[20,1],[9,1],[21,1],[9,1],[6,1],[10,2],[22,1],[23,1],[24,1],[25,1],[10,1],[26,1],[27,1],[28,1],[29,1],[10,2],[6,1],[9,1],[21,1],[9,1],[20,1],[5,1],[4,8],[10,1],[5,1],[7,1],[8,1],[7,1],[5,1],[4,1],[3,1],[2,2],[0,15]]], +[" ▀ ▀▀ ▀ ▀ ",[[0,15],[2,1],[3,1],[4,1],[5,1],[7,1],[8,1],[7,1],[5,1],[10,1],[4,8],[5,1],[20,1],[9,1],[21,1],[9,1],[6,1],[10,2],[30,1],[31,1],[32,1],[33,1],[10,1],[34,1],[35,2],[36,1],[10,2],[6,1],[9,1],[21,1],[9,1],[20,1],[5,1],[4,8],[10,1],[5,1],[7,1],[8,1],[7,1],[5,1],[4,1],[3,1],[2,2],[0,15]]], +[" ▀▀▀▀ ▀▀▀▀ ",[[0,15],[2,1],[3,1],[4,1],[5,1],[7,1],[8,1],[9,1],[6,1],[10,1],[4,8],[10,1],[6,1],[7,1],[8,1],[21,1],[7,1],[5,1],[10,1],[37,1],[38,1],[23,1],[39,1],[10,1],[40,1],[28,1],[41,1],[42,1],[10,1],[5,1],[7,1],[21,1],[8,1],[7,1],[6,1],[10,1],[4,8],[10,1],[6,1],[9,1],[8,1],[7,1],[5,1],[4,1],[3,1],[2,2],[0,15]]], +[" ",[[0,15],[2,2],[3,1],[19,1],[6,1],[7,1],[8,1],[20,1],[5,1],[4,9],[5,1],[6,1],[9,1],[8,1],[21,1],[7,1],[6,1],[5,1],[10,7],[5,1],[6,1],[7,1],[21,1],[8,1],[9,1],[6,1],[5,1],[4,9],[5,1],[20,1],[8,1],[7,1],[6,1],[19,1],[3,1],[2,3],[0,15]]], +[" https://opencode.ai/go ",[[0,15],[2,2],[3,1],[10,1],[5,1],[7,1],[8,1],[7,1],[6,1],[10,1],[4,9],[43,1],[44,2],[45,4],[44,7],[45,4],[44,2],[43,2],[4,8],[10,1],[6,1],[7,1],[8,1],[7,1],[5,1],[10,1],[3,1],[2,3],[0,15]]], +[" ",[[0,15],[2,3],[3,1],[10,1],[6,1],[7,1],[8,1],[7,1],[5,1],[10,1],[4,9],[10,1],[5,1],[6,1],[7,1],[9,1],[8,2],[21,5],[8,2],[9,1],[7,1],[6,1],[5,1],[10,1],[4,9],[10,1],[5,1],[7,1],[8,1],[7,1],[6,1],[10,1],[3,1],[2,4],[0,15]]], +[" ",[[0,15],[2,4],[3,1],[5,1],[6,1],[7,1],[8,1],[7,1],[5,1],[10,1],[4,11],[10,1],[5,2],[6,2],[20,3],[6,2],[5,2],[10,1],[4,11],[10,1],[5,1],[7,1],[8,1],[7,1],[6,1],[5,1],[3,1],[2,5],[0,15]]], +[" don't show again dismiss subscribe ",[[0,15],[2,4],[3,1],[15,1],[16,3],[17,1],[16,2],[18,9],[4,13],[18,7],[4,3],[46,2],[47,9],[46,2],[2,3],[0,15]]], +[" ",[[0,15],[2,6],[3,1],[10,1],[6,1],[7,1],[8,1],[9,1],[7,1],[5,1],[10,1],[4,29],[10,1],[5,1],[7,1],[9,1],[8,1],[7,1],[6,1],[10,1],[3,1],[2,6],[1,1],[0,15]]], +[" ",[[0,90]]], +[" ",[[0,90]]], +[" ",[[0,90]]], +[" ",[[0,90]]], +[" ",[[0,90]]], +[" ",[[0,90]]], +[" ",[[0,90]]], +[" ",[[0,90]]] +]} diff --git a/packages/cli-rs/parity/fixtures/E.16/go-upsell.json b/packages/cli-rs/parity/fixtures/E.16/go-upsell.json new file mode 100644 index 000000000000..9f5e77228633 --- /dev/null +++ b/packages/cli-rs/parity/fixtures/E.16/go-upsell.json @@ -0,0 +1,22 @@ +{"width":80,"height":20,"styles":["#ffffffff #030303ff 0","#ffffffff #141414ff 0","#ffffffff #141414ff 1","#808080ff #141414ff 0","#23344bff #141414ff 0","#ffffffff #23344bff 0","#ffffffff #23344bff 1"],"lines":[ +[" ",[[0,10],[1,60],[0,10]]], +[" Free limit reached esc ",[[0,10],[1,3],[2,18],[1,33],[3,3],[1,3],[0,10]]], +[" You've used today's free messages. Resets at 3:00 PM. ",[[0,10],[1,3],[3,53],[1,4],[0,10]]], +[" OpenCode Go gives you reliable access to the best ",[[0,10],[1,3],[3,50],[1,7],[0,10]]], +[" open-source models for $10/month. ",[[0,10],[1,3],[3,33],[1,24],[0,10]]], +[" https://opencode.ai/go ",[[0,10],[1,3],[4,22],[1,35],[0,10]]], +[" ",[[0,10],[1,60],[0,10]]], +[" ",[[0,10],[1,60],[0,10]]], +[" ",[[0,10],[1,60],[0,10]]], +[" ",[[0,10],[1,60],[0,10]]], +[" ",[[0,10],[1,60],[0,10]]], +[" ",[[0,10],[1,60],[0,10]]], +[" ",[[0,10],[1,60],[0,10]]], +[" ",[[0,10],[1,60],[0,10]]], +[" ",[[0,10],[1,60],[0,10]]], +[" ",[[0,10],[1,60],[0,10]]], +[" ",[[0,10],[1,60],[0,10]]], +[" ",[[0,10],[1,60],[0,10]]], +[" ",[[0,10],[1,60],[0,10]]], +[" don't show again dismiss subscribe ",[[0,10],[1,5],[3,16],[1,13],[3,7],[1,3],[5,2],[6,9],[5,2],[1,3],[0,10]]] +]} diff --git a/packages/cli-rs/parity/fixtures/E.16/model-filter.json b/packages/cli-rs/parity/fixtures/E.16/model-filter.json new file mode 100644 index 000000000000..7b3c93e3326a --- /dev/null +++ b/packages/cli-rs/parity/fixtures/E.16/model-filter.json @@ -0,0 +1,62 @@ +{"width":90,"height":60,"styles":["#ffffffff #030303ff 0","#ffffffff #141414ff 0","#808080ff #141414ff 0","#7699feff #141414ff 0","#ffffffff #23344bff 0","#93a2b7ff #23344bff 0","#7699feff #23344bff 0","#ffffffff #202020ff 0","#808080ff #202020ff 0"],"lines":[ +[" ",[[0,90]]], +[" ",[[0,90]]], +[" ",[[0,90]]], +[" ",[[0,90]]], +[" ",[[0,90]]], +[" ",[[0,90]]], +[" ",[[0,90]]], +[" ",[[0,90]]], +[" ",[[0,90]]], +[" ",[[0,90]]], +[" ",[[0,90]]], +[" ",[[0,90]]], +[" ",[[0,90]]], +[" ",[[0,90]]], +[" ",[[0,90]]], +[" ",[[0,15],[1,60],[0,15]]], +[" gpt esc ",[[0,15],[1,53],[2,3],[1,4],[0,15]]], +[" ",[[0,15],[1,60],[0,15]]], +[" ┃ GPT-5 OpenAI * ",[[0,15],[3,1],[4,8],[5,7],[4,39],[6,1],[4,4],[0,15]]], +[" GPT-5 mini OpenAI ",[[0,15],[3,1],[1,13],[2,7],[1,39],[0,15]]], +[" ",[[0,15],[1,60],[0,15]]], +[" ",[[0,15],[7,60],[0,15]]], +[" connect integration ctrl+a unfavorite ctrl+f ",[[0,15],[7,23],[8,7],[7,19],[8,7],[7,4],[0,15]]], +[" ",[[0,15],[7,60],[0,15]]], +[" ",[[0,90]]], +[" ",[[0,90]]], +[" ",[[0,90]]], +[" ",[[0,90]]], +[" ",[[0,90]]], +[" ",[[0,90]]], +[" ",[[0,90]]], +[" ",[[0,90]]], +[" ",[[0,90]]], +[" ",[[0,90]]], +[" ",[[0,90]]], +[" ",[[0,90]]], +[" ",[[0,90]]], +[" ",[[0,90]]], +[" ",[[0,90]]], +[" ",[[0,90]]], +[" ",[[0,90]]], +[" ",[[0,90]]], +[" ",[[0,90]]], +[" ",[[0,90]]], +[" ",[[0,90]]], +[" ",[[0,90]]], +[" ",[[0,90]]], +[" ",[[0,90]]], +[" ",[[0,90]]], +[" ",[[0,90]]], +[" ",[[0,90]]], +[" ",[[0,90]]], +[" ",[[0,90]]], +[" ",[[0,90]]], +[" ",[[0,90]]], +[" ",[[0,90]]], +[" ",[[0,90]]], +[" ",[[0,90]]], +[" ",[[0,90]]], +[" ",[[0,90]]] +]} diff --git a/packages/cli-rs/parity/fixtures/E.16/model.json b/packages/cli-rs/parity/fixtures/E.16/model.json new file mode 100644 index 000000000000..b72c10326394 --- /dev/null +++ b/packages/cli-rs/parity/fixtures/E.16/model.json @@ -0,0 +1,62 @@ +{"width":90,"height":60,"styles":["#ffffffff #030303ff 0","#ffffffff #141414ff 0","#808080ff #141414ff 0","#808080ff #141414ff 1","#7699feff #141414ff 0","#ffffffff #23344bff 0","#7699feff #23344bff 0","#ffffffff #202020ff 0","#808080ff #202020ff 0"],"lines":[ +[" ",[[0,90]]], +[" ",[[0,90]]], +[" ",[[0,90]]], +[" ",[[0,90]]], +[" ",[[0,90]]], +[" ",[[0,90]]], +[" ",[[0,90]]], +[" ",[[0,90]]], +[" ",[[0,90]]], +[" ",[[0,90]]], +[" ",[[0,90]]], +[" ",[[0,90]]], +[" ",[[0,90]]], +[" ",[[0,90]]], +[" ",[[0,90]]], +[" ",[[0,15],[1,60],[0,15]]], +[" Search models esc ",[[0,15],[1,4],[2,13],[1,36],[2,3],[1,4],[0,15]]], +[" ",[[0,15],[1,60],[0,15]]], +[" Favorites ",[[0,15],[1,4],[3,9],[1,47],[0,15]]], +[" GPT-5 OpenAI * ",[[0,15],[4,1],[1,8],[2,7],[1,39],[4,1],[1,4],[0,15]]], +[" ",[[0,15],[1,60],[0,15]]], +[" Recent ",[[0,15],[1,4],[3,6],[1,50],[0,15]]], +[" Claude Haiku Anthropic ",[[0,15],[4,1],[1,15],[2,10],[1,34],[0,15]]], +[" ",[[0,15],[1,60],[0,15]]], +[" OpenCode ",[[0,15],[1,4],[3,8],[1,48],[0,15]]], +[" Grok Code ",[[0,15],[4,1],[1,59],[0,15]]], +[" ",[[0,15],[1,60],[0,15]]], +[" Anthropic ",[[0,15],[1,4],[3,9],[1,47],[0,15]]], +[" ┃ ▪ Claude Sonnet ",[[0,15],[4,1],[5,1],[6,1],[5,57],[0,15]]], +[" ",[[0,15],[1,60],[0,15]]], +[" OpenAI ",[[0,15],[1,4],[3,6],[1,50],[0,15]]], +[" GPT-5 mini ",[[0,15],[4,1],[1,59],[0,15]]], +[" ",[[0,15],[1,60],[0,15]]], +[" Free ",[[0,15],[1,4],[3,4],[1,52],[0,15]]], +[" Big Pickle ",[[0,15],[4,1],[1,59],[0,15]]], +[" ",[[0,15],[1,60],[0,15]]], +[" ",[[0,15],[7,60],[0,15]]], +[" connect integration ctrl+a favorite ctrl+f ",[[0,15],[7,23],[8,7],[7,19],[8,7],[7,4],[0,15]]], +[" ",[[0,15],[7,60],[0,15]]], +[" ",[[0,90]]], +[" ",[[0,90]]], +[" ",[[0,90]]], +[" ",[[0,90]]], +[" ",[[0,90]]], +[" ",[[0,90]]], +[" ",[[0,90]]], +[" ",[[0,90]]], +[" ",[[0,90]]], +[" ",[[0,90]]], +[" ",[[0,90]]], +[" ",[[0,90]]], +[" ",[[0,90]]], +[" ",[[0,90]]], +[" ",[[0,90]]], +[" ",[[0,90]]], +[" ",[[0,90]]], +[" ",[[0,90]]], +[" ",[[0,90]]], +[" ",[[0,90]]], +[" ",[[0,90]]] +]} diff --git a/packages/cli-rs/parity/fixtures/E.16/server.json b/packages/cli-rs/parity/fixtures/E.16/server.json new file mode 100644 index 000000000000..77c013d42e4b --- /dev/null +++ b/packages/cli-rs/parity/fixtures/E.16/server.json @@ -0,0 +1,410 @@ +{ + "routes": { + "/api/model": [ + { + "id": "claude-sonnet", + "modelID": "claude-sonnet", + "providerID": "anthropic", + "name": "Claude Sonnet", + "status": "active", + "enabled": true, + "capabilities": { + "input": [ + "text", + "image" + ], + "output": [ + "text" + ], + "tools": true + }, + "cost": [ + { + "input": 3, + "output": 15, + "cache": { + "read": 0, + "write": 0 + } + } + ], + "limit": { + "context": 200000, + "output": 32000 + }, + "time": { + "released": 0 + }, + "variants": [ + { + "id": "low" + }, + { + "id": "high" + } + ] + }, + { + "id": "claude-haiku", + "modelID": "claude-haiku", + "providerID": "anthropic", + "name": "Claude Haiku", + "status": "active", + "enabled": true, + "capabilities": { + "input": [ + "text", + "image" + ], + "output": [ + "text" + ], + "tools": true + }, + "cost": [ + { + "input": 1, + "output": 5, + "cache": { + "read": 0, + "write": 0 + } + } + ], + "limit": { + "context": 200000, + "output": 32000 + }, + "time": { + "released": 0 + }, + "variants": [] + }, + { + "id": "gpt-5", + "modelID": "gpt-5", + "providerID": "openai", + "name": "GPT-5", + "status": "active", + "enabled": true, + "capabilities": { + "input": [ + "text", + "image" + ], + "output": [ + "text" + ], + "tools": true + }, + "cost": [ + { + "input": 1.25, + "output": 6.25, + "cache": { + "read": 0, + "write": 0 + } + } + ], + "limit": { + "context": 200000, + "output": 32000 + }, + "time": { + "released": 0 + }, + "variants": [] + }, + { + "id": "gpt-4", + "modelID": "gpt-4", + "providerID": "openai", + "name": "GPT-4", + "status": "deprecated", + "enabled": true, + "capabilities": { + "input": [ + "text", + "image" + ], + "output": [ + "text" + ], + "tools": true + }, + "cost": [ + { + "input": 30, + "output": 150, + "cache": { + "read": 0, + "write": 0 + } + } + ], + "limit": { + "context": 200000, + "output": 32000 + }, + "time": { + "released": 0 + }, + "variants": [] + }, + { + "id": "gpt-5-mini", + "modelID": "gpt-5-mini", + "providerID": "openai", + "name": "GPT-5 mini", + "status": "active", + "enabled": true, + "capabilities": { + "input": [ + "text", + "image" + ], + "output": [ + "text" + ], + "tools": true + }, + "cost": [ + { + "input": 0.25, + "output": 1.25, + "cache": { + "read": 0, + "write": 0 + } + } + ], + "limit": { + "context": 200000, + "output": 32000 + }, + "time": { + "released": 0 + }, + "variants": [] + }, + { + "id": "big-pickle", + "modelID": "big-pickle", + "providerID": "opencode", + "name": "Big Pickle", + "status": "active", + "enabled": true, + "capabilities": { + "input": [ + "text", + "image" + ], + "output": [ + "text" + ], + "tools": true + }, + "cost": [ + { + "input": 0, + "output": 0, + "cache": { + "read": 0, + "write": 0 + } + } + ], + "limit": { + "context": 200000, + "output": 32000 + }, + "time": { + "released": 0 + }, + "variants": [] + }, + { + "id": "grok-code", + "modelID": "grok-code", + "providerID": "opencode", + "name": "Grok Code", + "status": "active", + "enabled": true, + "capabilities": { + "input": [ + "text", + "image" + ], + "output": [ + "text" + ], + "tools": true + }, + "cost": [ + { + "input": 2, + "output": 10, + "cache": { + "read": 0, + "write": 0 + } + } + ], + "limit": { + "context": 2000000, + "output": 32000 + }, + "time": { + "released": 0 + }, + "variants": [] + } + ], + "/api/provider": [ + { + "id": "anthropic", + "name": "Anthropic", + "activation": "auto", + "package": "@ai-sdk/test" + }, + { + "id": "openai", + "name": "OpenAI", + "activation": "auto", + "package": "@ai-sdk/test" + }, + { + "id": "opencode", + "name": "OpenCode", + "integrationID": "opencode", + "activation": "auto", + "package": "@ai-sdk/test" + } + ], + "/api/agent": [ + { + "id": "build", + "name": "build", + "description": "The default agent", + "mode": "primary", + "hidden": false, + "permissions": [], + "request": { + "settings": {}, + "headers": {}, + "body": {} + }, + "model": { + "providerID": "anthropic", + "id": "claude-sonnet", + "variant": "high" + } + }, + { + "id": "plan", + "name": "plan", + "description": "Plans without editing", + "mode": "primary", + "hidden": false, + "permissions": [], + "request": { + "settings": {}, + "headers": {}, + "body": {} + } + }, + { + "id": "general", + "name": "general", + "description": "A subagent", + "mode": "subagent", + "hidden": false, + "permissions": [], + "request": { + "settings": {}, + "headers": {}, + "body": {} + } + } + ], + "/api/integration": [ + { + "id": "opencode", + "name": "OpenCode Console", + "methods": [ + { + "id": "device", + "type": "oauth", + "label": "Sign in with OpenCode" + } + ], + "connections": [ + { + "type": "credential", + "id": "cred_1", + "label": "Acme", + "method": "oauth" + } + ] + } + ], + "/api/experimental/usage/limits": { + "workspace": { + "id": "wrk_1", + "name": "Acme", + "usageURL": "https://opencode.ai/console/wrk_1/usage" + }, + "budgets": [ + { + "id": "all", + "limit": 50, + "spent": 40, + "scope": "combined", + "per": "set", + "coverage": "all", + "models": [], + "vendors": [], + "picked": false, + "shared": true, + "resetsAt": 1894708800000 + }, + { + "id": "sonnet", + "limit": 10, + "spent": 0, + "scope": "each", + "per": "model", + "coverage": "models", + "models": [ + { + "providerID": "anthropic", + "modelID": "claude-sonnet", + "name": "Claude Sonnet", + "spent": 9.5 + } + ], + "vendors": [], + "picked": false, + "shared": false, + "resetsAt": 1894708800000 + } + ] + } + }, + "preferences": { + "recent": [ + { + "providerID": "anthropic", + "modelID": "claude-haiku" + } + ], + "favorite": [ + { + "providerID": "openai", + "modelID": "gpt-5" + } + ], + "variant": {} + } +} diff --git a/packages/cli-rs/parity/fixtures/E.16/usage-down.json b/packages/cli-rs/parity/fixtures/E.16/usage-down.json new file mode 100644 index 000000000000..95f2396820ed --- /dev/null +++ b/packages/cli-rs/parity/fixtures/E.16/usage-down.json @@ -0,0 +1,36 @@ +{"width":90,"height":34,"styles":["#ffffffff #030303ff 0","#ffffffff #141414ff 0","#808080ff #141414ff 0","#7699feff #141414ff 0","#ffffffff #23344bff 0","#93a2b7ff #23344bff 0"],"lines":[ +[" ",[[0,90]]], +[" ",[[0,90]]], +[" ",[[0,90]]], +[" ",[[0,90]]], +[" ",[[0,90]]], +[" ",[[0,90]]], +[" ",[[0,90]]], +[" ",[[0,90]]], +[" ",[[0,90]]], +[" ",[[0,15],[1,60],[0,15]]], +[" Usage esc ",[[0,15],[1,53],[2,3],[1,4],[0,15]]], +[" Workspace: Acme · Resets Jan 15, 12:00 PM ",[[0,15],[1,4],[2,41],[1,15],[0,15]]], +[" ",[[0,15],[1,60],[0,15]]], +[" Search models ",[[0,15],[1,4],[2,13],[1,43],[0,15]]], +[" ",[[0,15],[1,60],[0,15]]], +[" Claude Sonnet ",[[0,15],[3,1],[1,59],[0,15]]], +[" ┃ Grok Code $10 left ",[[0,15],[3,1],[4,47],[5,8],[4,4],[0,15]]], +[" ",[[0,15],[1,60],[0,15]]], +[" ",[[0,90]]], +[" ",[[0,90]]], +[" ",[[0,90]]], +[" ",[[0,90]]], +[" ",[[0,90]]], +[" ",[[0,90]]], +[" ",[[0,90]]], +[" ",[[0,90]]], +[" ",[[0,90]]], +[" ",[[0,90]]], +[" ",[[0,90]]], +[" ",[[0,90]]], +[" ",[[0,90]]], +[" ",[[0,90]]], +[" ",[[0,90]]], +[" ",[[0,90]]] +]} diff --git a/packages/cli-rs/parity/fixtures/E.16/usage-model.json b/packages/cli-rs/parity/fixtures/E.16/usage-model.json new file mode 100644 index 000000000000..8f30a5ca315f --- /dev/null +++ b/packages/cli-rs/parity/fixtures/E.16/usage-model.json @@ -0,0 +1,36 @@ +{"width":90,"height":34,"styles":["#ffffffff #030303ff 0","#ffffffff #141414ff 0","#808080ff #141414ff 0","#ef6c6cff #141414ff 1","#f5a742ff #141414ff 0"],"lines":[ +[" ",[[0,90]]], +[" ",[[0,90]]], +[" ",[[0,90]]], +[" ",[[0,90]]], +[" ",[[0,90]]], +[" ",[[0,90]]], +[" ",[[0,90]]], +[" ",[[0,90]]], +[" ",[[0,90]]], +[" ",[[0,15],[1,60],[0,15]]], +[" Usage › Claude Sonnet esc ",[[0,15],[1,3],[2,8],[1,43],[2,3],[1,3],[0,15]]], +[" ",[[0,15],[1,60],[0,15]]], +[" $0.50 remaining ",[[0,15],[1,3],[3,15],[1,42],[0,15]]], +[" Resets Jan 15, 12:00 PM ",[[0,15],[1,3],[2,23],[1,34],[0,15]]], +[" ",[[0,15],[1,60],[0,15]]], +[" Limits ",[[0,15],[1,3],[2,6],[1,51],[0,15]]], +[" • $9.50 used of $10 ",[[0,15],[1,3],[4,2],[1,55],[0,15]]], +[" Only you ",[[0,15],[1,5],[2,8],[1,47],[0,15]]], +[" ",[[0,15],[1,60],[0,15]]], +[" ",[[0,90]]], +[" ",[[0,90]]], +[" ",[[0,90]]], +[" ",[[0,90]]], +[" ",[[0,90]]], +[" ",[[0,90]]], +[" ",[[0,90]]], +[" ",[[0,90]]], +[" ",[[0,90]]], +[" ",[[0,90]]], +[" ",[[0,90]]], +[" ",[[0,90]]], +[" ",[[0,90]]], +[" ",[[0,90]]], +[" ",[[0,90]]] +]} diff --git a/packages/cli-rs/parity/fixtures/E.16/usage.json b/packages/cli-rs/parity/fixtures/E.16/usage.json new file mode 100644 index 000000000000..ac49bee566e7 --- /dev/null +++ b/packages/cli-rs/parity/fixtures/E.16/usage.json @@ -0,0 +1,36 @@ +{"width":90,"height":34,"styles":["#ffffffff #030303ff 0","#ffffffff #141414ff 0","#808080ff #141414ff 0","#7699feff #141414ff 0","#ffffffff #23344bff 0","#93a2b7ff #23344bff 0"],"lines":[ +[" ",[[0,90]]], +[" ",[[0,90]]], +[" ",[[0,90]]], +[" ",[[0,90]]], +[" ",[[0,90]]], +[" ",[[0,90]]], +[" ",[[0,90]]], +[" ",[[0,90]]], +[" ",[[0,90]]], +[" ",[[0,15],[1,60],[0,15]]], +[" Usage esc ",[[0,15],[1,53],[2,3],[1,4],[0,15]]], +[" Workspace: Acme · Resets Jan 15, 12:00 PM ",[[0,15],[1,4],[2,41],[1,15],[0,15]]], +[" ",[[0,15],[1,60],[0,15]]], +[" Search models ",[[0,15],[1,4],[2,13],[1,43],[0,15]]], +[" ",[[0,15],[1,60],[0,15]]], +[" ┃ Claude Sonnet $0.50 left ",[[0,15],[3,1],[4,45],[5,10],[4,4],[0,15]]], +[" Grok Code ",[[0,15],[3,1],[1,59],[0,15]]], +[" ",[[0,15],[1,60],[0,15]]], +[" ",[[0,90]]], +[" ",[[0,90]]], +[" ",[[0,90]]], +[" ",[[0,90]]], +[" ",[[0,90]]], +[" ",[[0,90]]], +[" ",[[0,90]]], +[" ",[[0,90]]], +[" ",[[0,90]]], +[" ",[[0,90]]], +[" ",[[0,90]]], +[" ",[[0,90]]], +[" ",[[0,90]]], +[" ",[[0,90]]], +[" ",[[0,90]]], +[" ",[[0,90]]] +]} diff --git a/packages/cli-rs/parity/fixtures/E.16/variant.json b/packages/cli-rs/parity/fixtures/E.16/variant.json new file mode 100644 index 000000000000..209948d437a5 --- /dev/null +++ b/packages/cli-rs/parity/fixtures/E.16/variant.json @@ -0,0 +1,36 @@ +{"width":90,"height":34,"styles":["#ffffffff #030303ff 0","#ffffffff #141414ff 0","#808080ff #141414ff 0","#7699feff #141414ff 0","#ffffffff #23344bff 0","#7699feff #23344bff 0"],"lines":[ +[" ",[[0,90]]], +[" ",[[0,90]]], +[" ",[[0,90]]], +[" ",[[0,90]]], +[" ",[[0,90]]], +[" ",[[0,90]]], +[" ",[[0,90]]], +[" ",[[0,90]]], +[" ",[[0,90]]], +[" ",[[0,15],[1,60],[0,15]]], +[" Select variant esc ",[[0,15],[1,53],[2,3],[1,4],[0,15]]], +[" ",[[0,15],[1,60],[0,15]]], +[" Default ",[[0,15],[3,1],[1,59],[0,15]]], +[" low ",[[0,15],[3,1],[1,59],[0,15]]], +[" ┃ ▪ high ",[[0,15],[3,1],[4,1],[5,1],[4,57],[0,15]]], +[" ",[[0,15],[1,60],[0,15]]], +[" ",[[0,90]]], +[" ",[[0,90]]], +[" ",[[0,90]]], +[" ",[[0,90]]], +[" ",[[0,90]]], +[" ",[[0,90]]], +[" ",[[0,90]]], +[" ",[[0,90]]], +[" ",[[0,90]]], +[" ",[[0,90]]], +[" ",[[0,90]]], +[" ",[[0,90]]], +[" ",[[0,90]]], +[" ",[[0,90]]], +[" ",[[0,90]]], +[" ",[[0,90]]], +[" ",[[0,90]]], +[" ",[[0,90]]] +]} diff --git a/packages/cli-rs/parity/fixtures/E.17a/accounts.json b/packages/cli-rs/parity/fixtures/E.17a/accounts.json new file mode 100644 index 000000000000..38faa7fb7401 --- /dev/null +++ b/packages/cli-rs/parity/fixtures/E.17a/accounts.json @@ -0,0 +1,42 @@ +{"width":100,"height":40,"styles":["#ffffffff #030303ff 0","#ffffffff #141414ff 0","#808080ff #141414ff 0","#7699feff #141414ff 0","#ffffffff #23344bff 0","#808080ff #141414ff 1"],"lines":[ +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,20],[1,60],[0,20]]], +[" OpenCode Console esc ",[[0,20],[1,53],[2,3],[1,4],[0,20]]], +[" ",[[0,20],[1,60],[0,20]]], +[" Search ",[[0,20],[1,4],[2,6],[1,50],[0,20]]], +[" ",[[0,20],[1,60],[0,20]]], +[" ┃ Add account ",[[0,20],[3,1],[4,59],[0,20]]], +[" ",[[0,20],[1,60],[0,20]]], +[" Connected accounts ",[[0,20],[1,4],[5,18],[1,38],[0,20]]], +[" home ",[[0,20],[3,1],[1,59],[0,20]]], +[" ▪ work ",[[0,20],[3,1],[1,1],[3,1],[1,57],[0,20]]], +[" ",[[0,20],[1,60],[0,20]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,100]]] +]} diff --git a/packages/cli-rs/parity/fixtures/E.17a/form.json b/packages/cli-rs/parity/fixtures/E.17a/form.json new file mode 100644 index 000000000000..04b148efdc16 --- /dev/null +++ b/packages/cli-rs/parity/fixtures/E.17a/form.json @@ -0,0 +1,42 @@ +{"width":100,"height":40,"styles":["#ffffffff #030303ff 0","#ffffffff #141414ff 0","#808080ff #141414ff 0","#7699feff #141414ff 0","#ffffffff #23344bff 0","#93a2b7ff #23344bff 0"],"lines":[ +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,20],[1,60],[0,20]]], +[" Deployment esc ",[[0,20],[1,53],[2,3],[1,4],[0,20]]], +[" ",[[0,20],[1,60],[0,20]]], +[" Search ",[[0,20],[1,4],[2,6],[1,50],[0,20]]], +[" ",[[0,20],[1,60],[0,20]]], +[" ┃ GitHub.com Public ",[[0,20],[3,1],[4,13],[5,7],[4,39],[0,20]]], +[" GitHub Enterprise ",[[0,20],[3,1],[1,59],[0,20]]], +[" ",[[0,20],[1,60],[0,20]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,100]]] +]} diff --git a/packages/cli-rs/parity/fixtures/E.17a/key.json b/packages/cli-rs/parity/fixtures/E.17a/key.json new file mode 100644 index 000000000000..a4a4c594d111 --- /dev/null +++ b/packages/cli-rs/parity/fixtures/E.17a/key.json @@ -0,0 +1,42 @@ +{"width":100,"height":40,"styles":["#ffffffff #030303ff 0","#ffffffff #141414ff 0","#808080ff #141414ff 0","#ffffffff #23344bff 0"],"lines":[ +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,20],[1,60],[0,20]]], +[" API key esc ",[[0,20],[1,54],[2,3],[1,3],[0,20]]], +[" ",[[0,20],[1,60],[0,20]]], +[" API key ",[[0,20],[1,3],[2,7],[1,50],[0,20]]], +[" ",[[0,20],[1,60],[0,20]]], +[" Submit ",[[0,20],[1,49],[3,8],[1,3],[0,20]]], +[" ",[[0,20],[1,60],[0,20]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,100]]] +]} diff --git a/packages/cli-rs/parity/fixtures/E.17a/list-end.json b/packages/cli-rs/parity/fixtures/E.17a/list-end.json new file mode 100644 index 000000000000..f5ba0bc7a762 --- /dev/null +++ b/packages/cli-rs/parity/fixtures/E.17a/list-end.json @@ -0,0 +1,42 @@ +{"width":100,"height":40,"styles":["#ffffffff #030303ff 0","#ffffffff #141414ff 0","#808080ff #141414ff 0","#808080ff #141414ff 1","#7699feff #141414ff 0","#9ee77aff #141414ff 0","#f5a742ff #141414ff 0","#ffffffff #23344bff 0","#9ee77aff #23344bff 0","#93a2b7ff #23344bff 0"],"lines":[ +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,20],[1,60],[0,20]]], +[" Connect an integration esc ",[[0,20],[1,53],[2,3],[1,4],[0,20]]], +[" ",[[0,20],[1,60],[0,20]]], +[" Search ",[[0,20],[1,4],[2,6],[1,50],[0,20]]], +[" ",[[0,20],[1,60],[0,20]]], +[" Popular ",[[0,20],[1,4],[3,7],[1,49],[0,20]]], +[" ✓ OpenCode Console 2 connections ",[[0,20],[4,1],[1,1],[5,1],[1,40],[2,13],[1,4],[0,20]]], +[" OpenAI ",[[0,20],[4,1],[1,59],[0,20]]], +[" GitHub Copilot ",[[0,20],[4,1],[1,59],[0,20]]], +[" Anthropic Sign in required → ",[[0,20],[4,1],[1,37],[6,18],[1,4],[0,20]]], +[" ",[[0,20],[1,60],[0,20]]], +[" Services ",[[0,20],[1,4],[3,8],[1,48],[0,20]]], +[" ┃ ✓ Acme $ACME_KEY ",[[0,20],[4,1],[7,1],[8,1],[7,44],[9,9],[7,4],[0,20]]], +[" ",[[0,20],[1,60],[0,20]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,100]]] +]} diff --git a/packages/cli-rs/parity/fixtures/E.17a/list.json b/packages/cli-rs/parity/fixtures/E.17a/list.json new file mode 100644 index 000000000000..aa5d30e8cee1 --- /dev/null +++ b/packages/cli-rs/parity/fixtures/E.17a/list.json @@ -0,0 +1,42 @@ +{"width":100,"height":40,"styles":["#ffffffff #030303ff 0","#ffffffff #141414ff 0","#808080ff #141414ff 0","#808080ff #141414ff 1","#7699feff #141414ff 0","#ffffffff #23344bff 0","#9ee77aff #23344bff 0","#93a2b7ff #23344bff 0","#f5a742ff #141414ff 0","#9ee77aff #141414ff 0"],"lines":[ +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,20],[1,60],[0,20]]], +[" Connect an integration esc ",[[0,20],[1,53],[2,3],[1,4],[0,20]]], +[" ",[[0,20],[1,60],[0,20]]], +[" Search ",[[0,20],[1,4],[2,6],[1,50],[0,20]]], +[" ",[[0,20],[1,60],[0,20]]], +[" Popular ",[[0,20],[1,4],[3,7],[1,49],[0,20]]], +[" ┃ ✓ OpenCode Console 2 connections ",[[0,20],[4,1],[5,1],[6,1],[5,40],[7,13],[5,4],[0,20]]], +[" OpenAI ",[[0,20],[4,1],[1,59],[0,20]]], +[" GitHub Copilot ",[[0,20],[4,1],[1,59],[0,20]]], +[" Anthropic Sign in required → ",[[0,20],[4,1],[1,37],[8,18],[1,4],[0,20]]], +[" ",[[0,20],[1,60],[0,20]]], +[" Services ",[[0,20],[1,4],[3,8],[1,48],[0,20]]], +[" ✓ Acme $ACME_KEY ",[[0,20],[4,1],[1,1],[9,1],[1,44],[2,9],[1,4],[0,20]]], +[" ",[[0,20],[1,60],[0,20]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,100]]] +]} diff --git a/packages/cli-rs/parity/fixtures/E.17a/methods.json b/packages/cli-rs/parity/fixtures/E.17a/methods.json new file mode 100644 index 000000000000..c8c8b49d15ec --- /dev/null +++ b/packages/cli-rs/parity/fixtures/E.17a/methods.json @@ -0,0 +1,42 @@ +{"width":100,"height":40,"styles":["#ffffffff #030303ff 0","#ffffffff #141414ff 0","#808080ff #141414ff 0","#7699feff #141414ff 0","#ffffffff #23344bff 0"],"lines":[ +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,20],[1,60],[0,20]]], +[" Connect OpenAI esc ",[[0,20],[1,53],[2,3],[1,4],[0,20]]], +[" ",[[0,20],[1,60],[0,20]]], +[" ┃ ChatGPT Plus/Pro ",[[0,20],[3,1],[4,59],[0,20]]], +[" API key ",[[0,20],[3,1],[1,59],[0,20]]], +[" ",[[0,20],[1,60],[0,20]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,100]]] +]} diff --git a/packages/cli-rs/parity/fixtures/E.17a/oauth-code.json b/packages/cli-rs/parity/fixtures/E.17a/oauth-code.json new file mode 100644 index 000000000000..956e52b1ef3b --- /dev/null +++ b/packages/cli-rs/parity/fixtures/E.17a/oauth-code.json @@ -0,0 +1,42 @@ +{"width":100,"height":40,"styles":["#ffffffff #030303ff 0","#ffffffff #141414ff 0","#808080ff #141414ff 0","#fab283ff #141414ff 0","#ffffffff #23344bff 0"],"lines":[ +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,20],[1,60],[0,20]]], +[" ChatGPT Plus/Pro esc ",[[0,20],[1,54],[2,3],[1,3],[0,20]]], +[" ",[[0,20],[1,60],[0,20]]], +[" Enter code ABCD-1234 ",[[0,20],[1,3],[2,20],[1,37],[0,20]]], +[" ",[[0,20],[1,60],[0,20]]], +[" https://github.com/login/device ",[[0,20],[1,3],[3,31],[1,26],[0,20]]], +[" ",[[0,20],[1,60],[0,20]]], +[" Authorization code ",[[0,20],[1,3],[2,18],[1,39],[0,20]]], +[" ",[[0,20],[1,60],[0,20]]], +[" Submit ",[[0,20],[1,49],[4,8],[1,3],[0,20]]], +[" ",[[0,20],[1,60],[0,20]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,100]]] +]} diff --git a/packages/cli-rs/parity/fixtures/E.17a/oauth-paste.json b/packages/cli-rs/parity/fixtures/E.17a/oauth-paste.json new file mode 100644 index 000000000000..d19f6d134a55 --- /dev/null +++ b/packages/cli-rs/parity/fixtures/E.17a/oauth-paste.json @@ -0,0 +1,42 @@ +{"width":100,"height":40,"styles":["#ffffffff #030303ff 0","#ffffffff #141414ff 0","#808080ff #141414ff 0","#fab283ff #141414ff 0","#ffffffff #23344bff 0"],"lines":[ +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,20],[1,60],[0,20]]], +[" ChatGPT Plus/Pro esc ",[[0,20],[1,54],[2,3],[1,3],[0,20]]], +[" ",[[0,20],[1,60],[0,20]]], +[" Enter code ABCD-1234 ",[[0,20],[1,3],[2,20],[1,37],[0,20]]], +[" ",[[0,20],[1,60],[0,20]]], +[" https://github.com/login/device ",[[0,20],[1,3],[3,31],[1,26],[0,20]]], +[" ",[[0,20],[1,60],[0,20]]], +[" Waiting for authorization… Press enter to open the ",[[0,20],[1,3],[2,51],[1,6],[0,20]]], +[" link. If the browser can't reach this machine, paste ",[[0,20],[1,3],[2,53],[1,4],[0,20]]], +[" the URL it was redirected to. ",[[0,20],[1,3],[2,29],[1,28],[0,20]]], +[" ",[[0,20],[1,60],[0,20]]], +[" Redirect URL ",[[0,20],[1,3],[2,12],[1,45],[0,20]]], +[" ",[[0,20],[1,60],[0,20]]], +[" copy link tab Submit ",[[0,20],[1,12],[2,4],[1,33],[4,8],[1,3],[0,20]]], +[" ",[[0,20],[1,60],[0,20]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,100]]] +]} diff --git a/packages/cli-rs/parity/fixtures/E.17a/oauth.json b/packages/cli-rs/parity/fixtures/E.17a/oauth.json new file mode 100644 index 000000000000..b913c639b951 --- /dev/null +++ b/packages/cli-rs/parity/fixtures/E.17a/oauth.json @@ -0,0 +1,42 @@ +{"width":100,"height":40,"styles":["#ffffffff #030303ff 0","#ffffffff #141414ff 0","#808080ff #141414ff 0","#fab283ff #141414ff 0","#ffffffff #202020ff 0","#808080ff #202020ff 0"],"lines":[ +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,20],[1,60],[0,20]]], +[" Sign in with GitHub esc ",[[0,20],[1,54],[2,3],[1,3],[0,20]]], +[" ",[[0,20],[1,60],[0,20]]], +[" https://github.com/login/device ",[[0,20],[1,3],[3,31],[1,26],[0,20]]], +[" ",[[0,20],[1,60],[0,20]]], +[" Enter code ABCD-1234 ",[[0,20],[1,3],[2,20],[1,37],[0,20]]], +[" ",[[0,20],[1,60],[0,20]]], +[" Waiting for authorization… ",[[0,20],[1,3],[2,26],[1,31],[0,20]]], +[" ",[[0,20],[1,60],[0,20]]], +[" ",[[0,20],[4,60],[0,20]]], +[" copy code c open link enter ",[[0,20],[4,37],[5,2],[4,12],[5,6],[4,3],[0,20]]], +[" ",[[0,20],[4,60],[0,20]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,100]]] +]} diff --git a/packages/cli-rs/parity/fixtures/E.17b/mcp-error.json b/packages/cli-rs/parity/fixtures/E.17b/mcp-error.json new file mode 100644 index 000000000000..36dd1d46afcc --- /dev/null +++ b/packages/cli-rs/parity/fixtures/E.17b/mcp-error.json @@ -0,0 +1,32 @@ +{"width":100,"height":30,"styles":["#ffffffff #030303ff 0","#ffffffff #141414ff 0","#ffffffff #141414ff 1","#808080ff #141414ff 0","#ffffffff #202020ff 0","#808080ff #202020ff 0"],"lines":[ +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,20],[1,60],[0,20]]], +[" MCP server: linear esc ",[[0,20],[1,3],[2,18],[1,33],[3,3],[1,3],[0,20]]], +[" ",[[0,20],[1,60],[0,20]]], +[" MCP error -32000: Connection closed ",[[0,20],[1,60],[0,20]]], +[" ",[[0,20],[1,60],[0,20]]], +[" ",[[0,20],[4,60],[0,20]]], +[" investigate i copy details c ",[[0,20],[4,38],[5,2],[4,15],[5,2],[4,3],[0,20]]], +[" ",[[0,20],[4,60],[0,20]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,100]]] +]} diff --git a/packages/cli-rs/parity/fixtures/E.17b/mcp-failed.json b/packages/cli-rs/parity/fixtures/E.17b/mcp-failed.json new file mode 100644 index 000000000000..9b9ebf84be3f --- /dev/null +++ b/packages/cli-rs/parity/fixtures/E.17b/mcp-failed.json @@ -0,0 +1,32 @@ +{"width":100,"height":30,"styles":["#ffffffff #030303ff 0","#ffffffff #141414ff 0","#808080ff #141414ff 0","#7699feff #141414ff 0","#9ee77aff #141414ff 0","#ffffffff #23344bff 0","#93a2b7ff #23344bff 0","#f5a742ff #141414ff 0","#ffffffff #202020ff 0","#808080ff #202020ff 0"],"lines":[ +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,20],[1,60],[0,20]]], +[" Search MCP servers esc ",[[0,20],[1,4],[2,18],[1,31],[2,3],[1,4],[0,20]]], +[" ",[[0,20],[1,60],[0,20]]], +[" docs Disabled ○ ",[[0,20],[3,1],[1,45],[2,10],[1,4],[0,20]]], +[" figma Connecting … ",[[0,20],[3,1],[1,43],[2,12],[1,4],[0,20]]], +[" github Connected ✓ ",[[0,20],[3,1],[1,44],[4,11],[1,4],[0,20]]], +[" ┃ linear Failed ! ",[[0,20],[3,1],[5,47],[6,8],[5,4],[0,20]]], +[" sentry Sign in required → ",[[0,20],[3,1],[1,37],[7,18],[1,4],[0,20]]], +[" ",[[0,20],[1,60],[0,20]]], +[" ",[[0,20],[8,60],[0,20]]], +[" retry space view error enter ",[[0,20],[8,31],[9,6],[8,13],[9,6],[8,4],[0,20]]], +[" ",[[0,20],[8,60],[0,20]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,100]]] +]} diff --git a/packages/cli-rs/parity/fixtures/E.17b/mcp.json b/packages/cli-rs/parity/fixtures/E.17b/mcp.json new file mode 100644 index 000000000000..d4e4ee81fcad --- /dev/null +++ b/packages/cli-rs/parity/fixtures/E.17b/mcp.json @@ -0,0 +1,32 @@ +{"width":100,"height":30,"styles":["#ffffffff #030303ff 0","#ffffffff #141414ff 0","#808080ff #141414ff 0","#7699feff #141414ff 0","#ffffffff #23344bff 0","#93a2b7ff #23344bff 0","#9ee77aff #141414ff 0","#ef6c6cff #141414ff 0","#f5a742ff #141414ff 0","#ffffffff #202020ff 0","#808080ff #202020ff 0"],"lines":[ +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,20],[1,60],[0,20]]], +[" Search MCP servers esc ",[[0,20],[1,4],[2,18],[1,31],[2,3],[1,4],[0,20]]], +[" ",[[0,20],[1,60],[0,20]]], +[" ┃ docs Disabled ○ ",[[0,20],[3,1],[4,45],[5,10],[4,4],[0,20]]], +[" figma Connecting … ",[[0,20],[3,1],[1,43],[2,12],[1,4],[0,20]]], +[" github Connected ✓ ",[[0,20],[3,1],[1,44],[6,11],[1,4],[0,20]]], +[" linear Failed ! ",[[0,20],[3,1],[1,47],[7,8],[1,4],[0,20]]], +[" sentry Sign in required → ",[[0,20],[3,1],[1,37],[8,18],[1,4],[0,20]]], +[" ",[[0,20],[1,60],[0,20]]], +[" ",[[0,20],[9,60],[0,20]]], +[" connect space ",[[0,20],[9,50],[10,6],[9,4],[0,20]]], +[" ",[[0,20],[9,60],[0,20]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,100]]] +]} diff --git a/packages/cli-rs/parity/fixtures/E.17b/skills-empty.json b/packages/cli-rs/parity/fixtures/E.17b/skills-empty.json new file mode 100644 index 000000000000..f13f422c42f2 --- /dev/null +++ b/packages/cli-rs/parity/fixtures/E.17b/skills-empty.json @@ -0,0 +1,32 @@ +{"width":100,"height":30,"styles":["#ffffffff #030303ff 0","#ffffffff #141414ff 0","#808080ff #141414ff 0"],"lines":[ +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,6],[1,88],[0,6]]], +[" Skills esc ",[[0,6],[1,81],[2,3],[1,4],[0,6]]], +[" ",[[0,6],[1,88],[0,6]]], +[" Search ",[[0,6],[1,4],[2,6],[1,78],[0,6]]], +[" ",[[0,6],[1,88],[0,6]]], +[" No skills available ",[[0,6],[1,4],[2,19],[1,65],[0,6]]], +[" ",[[0,6],[1,88],[0,6]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,100]]] +]} diff --git a/packages/cli-rs/parity/fixtures/E.17b/skills-filter.json b/packages/cli-rs/parity/fixtures/E.17b/skills-filter.json new file mode 100644 index 000000000000..68d47967b47f --- /dev/null +++ b/packages/cli-rs/parity/fixtures/E.17b/skills-filter.json @@ -0,0 +1,32 @@ +{"width":100,"height":30,"styles":["#ffffffff #030303ff 0","#ffffffff #141414ff 0","#808080ff #141414ff 0","#7699feff #141414ff 0","#ffffffff #23344bff 0","#93a2b7ff #23344bff 0"],"lines":[ +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,6],[1,88],[0,6]]], +[" Skills esc ",[[0,6],[1,81],[2,3],[1,4],[0,6]]], +[" ",[[0,6],[1,88],[0,6]]], +[" rel ",[[0,6],[1,88],[0,6]]], +[" ",[[0,6],[1,88],[0,6]]], +[" ┃ release-notes Write release notes from the log. ",[[0,6],[3,1],[4,16],[5,34],[4,37],[0,6]]], +[" ",[[0,6],[1,88],[0,6]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,100]]] +]} diff --git a/packages/cli-rs/parity/fixtures/E.17b/skills.json b/packages/cli-rs/parity/fixtures/E.17b/skills.json new file mode 100644 index 000000000000..c7596988b9a5 --- /dev/null +++ b/packages/cli-rs/parity/fixtures/E.17b/skills.json @@ -0,0 +1,32 @@ +{"width":100,"height":30,"styles":["#ffffffff #030303ff 0","#ffffffff #141414ff 0","#808080ff #141414ff 0","#7699feff #141414ff 0","#ffffffff #23344bff 0","#93a2b7ff #23344bff 0"],"lines":[ +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,6],[1,88],[0,6]]], +[" Skills esc ",[[0,6],[1,81],[2,3],[1,4],[0,6]]], +[" ",[[0,6],[1,88],[0,6]]], +[" Search ",[[0,6],[1,4],[2,6],[1,78],[0,6]]], +[" ",[[0,6],[1,88],[0,6]]], +[" ┃ review Review a change for defects and style. ",[[0,6],[3,1],[4,16],[5,39],[4,32],[0,6]]], +[" release-notes Write release notes from the log. ",[[0,6],[3,1],[1,16],[2,34],[1,37],[0,6]]], +[" bisect ",[[0,6],[3,1],[1,87],[0,6]]], +[" ",[[0,6],[1,88],[0,6]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,100]]] +]} diff --git a/packages/cli-rs/parity/fixtures/E.18a/experiments-on.json b/packages/cli-rs/parity/fixtures/E.18a/experiments-on.json new file mode 100644 index 000000000000..9f852dbff868 --- /dev/null +++ b/packages/cli-rs/parity/fixtures/E.18a/experiments-on.json @@ -0,0 +1,26 @@ +{"width":80,"height":24,"styles":["#ffffffff #030303ff 0","#ffffffff #141414ff 0","#808080ff #141414ff 0","#7699feff #141414ff 0","#ffffffff #23344bff 0","#93a2b7ff #23344bff 0"],"lines":[ +[" ",[[0,80]]], +[" ",[[0,80]]], +[" ",[[0,80]]], +[" ",[[0,80]]], +[" ",[[0,80]]], +[" ",[[0,80]]], +[" ",[[0,10],[1,60],[0,10]]], +[" Experiments esc ",[[0,10],[1,53],[2,3],[1,4],[0,10]]], +[" ",[[0,10],[1,60],[0,10]]], +[" Search ",[[0,10],[1,4],[2,6],[1,50],[0,10]]], +[" ",[[0,10],[1,60],[0,10]]], +[" ┃ TUI tools on ",[[0,10],[3,1],[4,53],[5,2],[4,4],[0,10]]], +[" ",[[0,10],[1,60],[0,10]]], +[" ",[[0,80]]], +[" ",[[0,80]]], +[" ",[[0,80]]], +[" ",[[0,80]]], +[" ",[[0,80]]], +[" ",[[0,80]]], +[" ",[[0,80]]], +[" ",[[0,80]]], +[" ",[[0,80]]], +[" ",[[0,80]]], +[" ",[[0,80]]] +]} diff --git a/packages/cli-rs/parity/fixtures/E.18a/experiments.json b/packages/cli-rs/parity/fixtures/E.18a/experiments.json new file mode 100644 index 000000000000..0a78abf8a7fb --- /dev/null +++ b/packages/cli-rs/parity/fixtures/E.18a/experiments.json @@ -0,0 +1,26 @@ +{"width":80,"height":24,"styles":["#ffffffff #030303ff 0","#ffffffff #141414ff 0","#808080ff #141414ff 0","#7699feff #141414ff 0","#ffffffff #23344bff 0","#93a2b7ff #23344bff 0"],"lines":[ +[" ",[[0,80]]], +[" ",[[0,80]]], +[" ",[[0,80]]], +[" ",[[0,80]]], +[" ",[[0,80]]], +[" ",[[0,80]]], +[" ",[[0,10],[1,60],[0,10]]], +[" Experiments esc ",[[0,10],[1,53],[2,3],[1,4],[0,10]]], +[" ",[[0,10],[1,60],[0,10]]], +[" Search ",[[0,10],[1,4],[2,6],[1,50],[0,10]]], +[" ",[[0,10],[1,60],[0,10]]], +[" ┃ TUI tools off ",[[0,10],[3,1],[4,52],[5,3],[4,4],[0,10]]], +[" ",[[0,10],[1,60],[0,10]]], +[" ",[[0,80]]], +[" ",[[0,80]]], +[" ",[[0,80]]], +[" ",[[0,80]]], +[" ",[[0,80]]], +[" ",[[0,80]]], +[" ",[[0,80]]], +[" ",[[0,80]]], +[" ",[[0,80]]], +[" ",[[0,80]]], +[" ",[[0,80]]] +]} diff --git a/packages/cli-rs/parity/fixtures/E.18a/settings-config.json b/packages/cli-rs/parity/fixtures/E.18a/settings-config.json new file mode 100644 index 000000000000..04fee8b19fd3 --- /dev/null +++ b/packages/cli-rs/parity/fixtures/E.18a/settings-config.json @@ -0,0 +1,32 @@ +{"width":80,"height":30,"styles":["#ffffffff #030303ff 0","#ffffffff #141414ff 0","#808080ff #141414ff 0","#808080ff #141414ff 1","#7699feff #141414ff 0","#ffffffff #23344bff 0","#b0b0b0ff #141414ff 0"],"lines":[ +[" ",[[0,80]]], +[" ",[[0,80]]], +[" ",[[0,80]]], +[" ",[[0,80]]], +[" ",[[0,80]]], +[" ",[[0,80]]], +[" ",[[0,80]]], +[" ",[[0,80]]], +[" ",[[0,10],[1,60],[0,10]]], +[" speed esc ",[[0,10],[1,53],[2,3],[1,4],[0,10]]], +[" ",[[0,10],[1,60],[0,10]]], +[" Input ",[[0,10],[1,4],[3,5],[1,51],[0,10]]], +[" ┃ Scroll speed ‹ 2.50 › ",[[0,10],[4,1],[5,59],[0,10]]], +[" ",[[0,10],[1,60],[0,10]]], +[" How far each scroll step moves ",[[0,10],[1,4],[6,30],[1,26],[0,10]]], +[" ",[[0,10],[1,60],[0,10]]], +[" ",[[0,80]]], +[" ",[[0,80]]], +[" ",[[0,80]]], +[" ",[[0,80]]], +[" ",[[0,80]]], +[" ",[[0,80]]], +[" ",[[0,80]]], +[" ",[[0,80]]], +[" ",[[0,80]]], +[" ",[[0,80]]], +[" ",[[0,80]]], +[" ",[[0,80]]], +[" ",[[0,80]]], +[" ",[[0,80]]] +]} diff --git a/packages/cli-rs/parity/fixtures/E.18a/settings-down.json b/packages/cli-rs/parity/fixtures/E.18a/settings-down.json new file mode 100644 index 000000000000..48ed86b0751a --- /dev/null +++ b/packages/cli-rs/parity/fixtures/E.18a/settings-down.json @@ -0,0 +1,32 @@ +{"width":80,"height":30,"styles":["#ffffffff #030303ff 0","#ffffffff #141414ff 0","#808080ff #141414ff 0","#808080ff #141414ff 1","#7699feff #141414ff 0","#ffffffff #23344bff 0","#b0b0b0ff #141414ff 0"],"lines":[ +[" ",[[0,80]]], +[" ",[[0,80]]], +[" ",[[0,80]]], +[" ",[[0,80]]], +[" ",[[0,80]]], +[" ",[[0,80]]], +[" ",[[0,80]]], +[" ",[[0,80]]], +[" ",[[0,10],[1,60],[0,10]]], +[" Search settings esc ",[[0,10],[1,4],[2,15],[1,34],[2,3],[1,4],[0,10]]], +[" ",[[0,10],[1,60],[0,10]]], +[" Appearance ",[[0,10],[1,4],[3,10],[1,46],[0,10]]], +[" Theme opencode ",[[0,10],[4,1],[1,45],[2,12],[1,2],[0,10]]], +[" Color mode dark ",[[0,10],[4,1],[1,49],[2,8],[1,2],[0,10]]], +[" ┃ Animations ‹ off › ",[[0,10],[4,1],[5,59],[0,10]]], +[" ",[[0,10],[1,60],[0,10]]], +[" Session ",[[0,10],[1,4],[3,7],[1,49],[0,10]]], +[" Sidebar auto ",[[0,10],[4,1],[1,49],[2,8],[1,2],[0,10]]], +[" Scrollbar off ",[[0,10],[4,1],[1,50],[2,7],[1,2],[0,10]]], +[" Scroll on send jump to latest ",[[0,10],[4,1],[1,39],[2,18],[1,2],[0,10]]], +[" ",[[0,10],[1,60],[0,10]]], +[" Whether spinners and transitions animate ",[[0,10],[1,4],[6,40],[1,16],[0,10]]], +[" ",[[0,10],[1,60],[0,10]]], +[" ",[[0,80]]], +[" ",[[0,80]]], +[" ",[[0,80]]], +[" ",[[0,80]]], +[" ",[[0,80]]], +[" ",[[0,80]]], +[" ",[[0,80]]] +]} diff --git a/packages/cli-rs/parity/fixtures/E.18a/settings-filter.json b/packages/cli-rs/parity/fixtures/E.18a/settings-filter.json new file mode 100644 index 000000000000..260f69d9c9da --- /dev/null +++ b/packages/cli-rs/parity/fixtures/E.18a/settings-filter.json @@ -0,0 +1,32 @@ +{"width":80,"height":30,"styles":["#ffffffff #030303ff 0","#ffffffff #141414ff 0","#808080ff #141414ff 0","#808080ff #141414ff 1","#7699feff #141414ff 0","#ffffffff #23344bff 0","#b0b0b0ff #141414ff 0"],"lines":[ +[" ",[[0,80]]], +[" ",[[0,80]]], +[" ",[[0,80]]], +[" ",[[0,80]]], +[" ",[[0,80]]], +[" ",[[0,80]]], +[" ",[[0,80]]], +[" ",[[0,80]]], +[" ",[[0,10],[1,60],[0,10]]], +[" scroll esc ",[[0,10],[1,53],[2,3],[1,4],[0,10]]], +[" ",[[0,10],[1,60],[0,10]]], +[" Session ",[[0,10],[1,4],[3,7],[1,49],[0,10]]], +[" ┃ Scrollbar ‹ off › ",[[0,10],[4,1],[5,59],[0,10]]], +[" Scroll on send jump to latest ",[[0,10],[4,1],[1,39],[2,18],[1,2],[0,10]]], +[" ",[[0,10],[1,60],[0,10]]], +[" Input ",[[0,10],[1,4],[3,5],[1,51],[0,10]]], +[" Scroll speed 3.00 ",[[0,10],[4,1],[1,49],[2,8],[1,2],[0,10]]], +[" Acceleration off ",[[0,10],[4,1],[1,50],[2,7],[1,2],[0,10]]], +[" ",[[0,10],[1,60],[0,10]]], +[" Whether a scrollbar is shown next to the chat ",[[0,10],[1,4],[6,45],[1,11],[0,10]]], +[" ",[[0,10],[1,60],[0,10]]], +[" ",[[0,80]]], +[" ",[[0,80]]], +[" ",[[0,80]]], +[" ",[[0,80]]], +[" ",[[0,80]]], +[" ",[[0,80]]], +[" ",[[0,80]]], +[" ",[[0,80]]], +[" ",[[0,80]]] +]} diff --git a/packages/cli-rs/parity/fixtures/E.18a/settings.json b/packages/cli-rs/parity/fixtures/E.18a/settings.json new file mode 100644 index 000000000000..01f475a2fd26 --- /dev/null +++ b/packages/cli-rs/parity/fixtures/E.18a/settings.json @@ -0,0 +1,32 @@ +{"width":80,"height":30,"styles":["#ffffffff #030303ff 0","#ffffffff #141414ff 0","#808080ff #141414ff 0","#808080ff #141414ff 1","#7699feff #141414ff 0","#ffffffff #23344bff 0","#b0b0b0ff #141414ff 0"],"lines":[ +[" ",[[0,80]]], +[" ",[[0,80]]], +[" ",[[0,80]]], +[" ",[[0,80]]], +[" ",[[0,80]]], +[" ",[[0,80]]], +[" ",[[0,80]]], +[" ",[[0,80]]], +[" ",[[0,10],[1,60],[0,10]]], +[" Search settings esc ",[[0,10],[1,4],[2,15],[1,34],[2,3],[1,4],[0,10]]], +[" ",[[0,10],[1,60],[0,10]]], +[" Appearance ",[[0,10],[1,4],[3,10],[1,46],[0,10]]], +[" ┃ Theme opencode ↵ ",[[0,10],[4,1],[5,59],[0,10]]], +[" Color mode dark ",[[0,10],[4,1],[1,49],[2,8],[1,2],[0,10]]], +[" Animations off ",[[0,10],[4,1],[1,50],[2,7],[1,2],[0,10]]], +[" ",[[0,10],[1,60],[0,10]]], +[" Session ",[[0,10],[1,4],[3,7],[1,49],[0,10]]], +[" Sidebar auto ",[[0,10],[4,1],[1,49],[2,8],[1,2],[0,10]]], +[" Scrollbar off ",[[0,10],[4,1],[1,50],[2,7],[1,2],[0,10]]], +[" Scroll on send jump to latest ",[[0,10],[4,1],[1,39],[2,18],[1,2],[0,10]]], +[" ",[[0,10],[1,60],[0,10]]], +[" Color theme used across the interface ",[[0,10],[1,4],[6,37],[1,19],[0,10]]], +[" ",[[0,10],[1,60],[0,10]]], +[" ",[[0,80]]], +[" ",[[0,80]]], +[" ",[[0,80]]], +[" ",[[0,80]]], +[" ",[[0,80]]], +[" ",[[0,80]]], +[" ",[[0,80]]] +]} diff --git a/packages/cli-rs/parity/fixtures/E.18b/highlights-scroll.json b/packages/cli-rs/parity/fixtures/E.18b/highlights-scroll.json new file mode 100644 index 000000000000..bf27a56242d8 --- /dev/null +++ b/packages/cli-rs/parity/fixtures/E.18b/highlights-scroll.json @@ -0,0 +1,22 @@ +{"width":80,"height":20,"styles":["#ffffffff #030303ff 0","#ffffffff #141414ff 0","#808080ff #141414ff 0","#ffffffff #202020ff 0","#ffffffff #202020ff 1","#808080ff #202020ff 0"],"lines":[ +[" ",[[0,80]]], +[" ",[[0,10],[1,60],[0,10]]], +[" What's new in 2.0.27 esc ",[[0,10],[1,54],[2,3],[1,3],[0,10]]], +[" ",[[0,10],[1,60],[0,10]]], +[" ",[[0,10],[3,60],[0,10]]], +[" ",[[0,10],[3,60],[0,10]]], +[" Faster startup ",[[0,10],[3,3],[4,14],[3,43],[0,10]]], +[" The TUI connects to the background service before it ",[[0,10],[3,3],[5,53],[3,4],[0,10]]], +[" draws the first frame. ",[[0,10],[3,3],[5,22],[3,35],[0,10]]], +[" ",[[0,10],[3,60],[0,10]]], +[" Pair devices ",[[0,10],[3,3],[4,12],[3,45],[0,10]]], +[" Run /pair to open this session on your phone, or scan ",[[0,10],[3,3],[5,4],[3,5],[5,45],[3,3],[0,10]]], +[" the code. ",[[0,10],[3,3],[5,9],[3,48],[0,10]]], +[" ",[[0,10],[3,60],[0,10]]], +[" Session tabs again ",[[0,10],[3,3],[4,18],[3,39],[0,10]]], +[" ",[[0,10],[3,60],[0,10]]], +[" ",[[0,10],[1,60],[0,10]]], +[" ",[[0,10],[3,60],[0,10]]], +[" ok enter ",[[0,10],[3,51],[5,6],[3,3],[0,10]]], +[" ",[[0,10],[3,60],[0,10]]] +]} diff --git a/packages/cli-rs/parity/fixtures/E.18b/highlights.json b/packages/cli-rs/parity/fixtures/E.18b/highlights.json new file mode 100644 index 000000000000..5e0ccd374668 --- /dev/null +++ b/packages/cli-rs/parity/fixtures/E.18b/highlights.json @@ -0,0 +1,32 @@ +{"width":80,"height":30,"styles":["#ffffffff #030303ff 0","#ffffffff #141414ff 0","#808080ff #141414ff 0","#ffffffff #202020ff 0","#ffffffff #202020ff 1","#808080ff #202020ff 0"],"lines":[ +[" ",[[0,80]]], +[" ",[[0,80]]], +[" ",[[0,80]]], +[" ",[[0,80]]], +[" ",[[0,80]]], +[" ",[[0,80]]], +[" ",[[0,10],[1,60],[0,10]]], +[" What's new in 2.0.27 esc ",[[0,10],[1,54],[2,3],[1,3],[0,10]]], +[" ",[[0,10],[1,60],[0,10]]], +[" ",[[0,10],[3,60],[0,10]]], +[" Session tabs ",[[0,10],[3,3],[4,12],[3,45],[0,10]]], +[" Open sessions side by side and switch with ctrl+tab. ",[[0,10],[3,3],[5,43],[3,8],[5,1],[3,5],[0,10]]], +[" ",[[0,10],[3,60],[0,10]]], +[" Faster startup ",[[0,10],[3,3],[4,14],[3,43],[0,10]]], +[" The TUI connects to the background service before it ",[[0,10],[3,3],[5,53],[3,4],[0,10]]], +[" draws the first frame. ",[[0,10],[3,3],[5,22],[3,35],[0,10]]], +[" ",[[0,10],[3,60],[0,10]]], +[" Pair devices ",[[0,10],[3,3],[4,12],[3,45],[0,10]]], +[" Run /pair to open this session on your phone, or scan ",[[0,10],[3,3],[5,4],[3,5],[5,45],[3,3],[0,10]]], +[" the code. ",[[0,10],[3,3],[5,9],[3,48],[0,10]]], +[" ",[[0,10],[3,60],[0,10]]], +[" ",[[0,10],[1,60],[0,10]]], +[" ",[[0,10],[3,60],[0,10]]], +[" ok enter ",[[0,10],[3,51],[5,6],[3,3],[0,10]]], +[" ",[[0,10],[3,60],[0,10]]], +[" ",[[0,80]]], +[" ",[[0,80]]], +[" ",[[0,80]]], +[" ",[[0,80]]], +[" ",[[0,80]]] +]} diff --git a/packages/cli-rs/parity/fixtures/E.18b/pair-error.json b/packages/cli-rs/parity/fixtures/E.18b/pair-error.json new file mode 100644 index 000000000000..a22d18548666 --- /dev/null +++ b/packages/cli-rs/parity/fixtures/E.18b/pair-error.json @@ -0,0 +1,42 @@ +{"width":100,"height":40,"styles":["#ffffffff #030303ff 0","#ffffffff #141414ff 0","#808080ff #141414ff 0","#ef6c6cff #141414ff 1"],"lines":[ +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,6],[1,88],[0,6]]], +[" Pair esc ",[[0,6],[1,82],[2,3],[1,3],[0,6]]], +[" ",[[0,6],[1,88],[0,6]]], +[" Could not load server information ",[[0,6],[1,3],[3,33],[1,52],[0,6]]], +[" UnexpectedStatus: 503 ",[[0,6],[1,3],[2,21],[1,64],[0,6]]], +[" Close and reopen Pair to try again. ",[[0,6],[1,3],[2,35],[1,50],[0,6]]], +[" ",[[0,6],[1,88],[0,6]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,100]]] +]} diff --git a/packages/cli-rs/parity/fixtures/E.18b/pair-narrow.json b/packages/cli-rs/parity/fixtures/E.18b/pair-narrow.json new file mode 100644 index 000000000000..7807787d9e43 --- /dev/null +++ b/packages/cli-rs/parity/fixtures/E.18b/pair-narrow.json @@ -0,0 +1,32 @@ +{"width":80,"height":30,"styles":["#ffffffff #030303ff 0","#ffffffff #141414ff 0","#808080ff #141414ff 0"],"lines":[ +[" ",[[0,80]]], +[" ",[[0,80]]], +[" ",[[0,80]]], +[" ",[[0,80]]], +[" ",[[0,80]]], +[" ",[[0,1],[1,78],[0,1]]], +[" Pair esc ",[[0,1],[1,72],[2,3],[1,3],[0,1]]], +[" ",[[0,1],[1,78],[0,1]]], +[" Open a link to connect. Links work once and expire in 10 minutes. ",[[0,1],[1,3],[2,65],[1,10],[0,1]]], +[" ",[[0,1],[1,78],[0,1]]], +[" This device ",[[0,1],[1,3],[2,11],[1,64],[0,1]]], +[" http://localhost:4096/auth/connect/XK7Q2M ",[[0,1],[1,78],[0,1]]], +[" ",[[0,1],[1,78],[0,1]]], +[" Links ",[[0,1],[1,3],[2,5],[1,70],[0,1]]], +[" http://127.0.0.1:4096/auth/connect/XK7Q2M ",[[0,1],[1,78],[0,1]]], +[" http://192.168.1.20:4096/auth/connect/XK7Q2M ",[[0,1],[1,78],[0,1]]], +[" ",[[0,1],[1,78],[0,1]]], +[" Run `opencode service set hostname 0.0.0.0` to access the service ",[[0,1],[1,3],[2,66],[1,9],[0,1]]], +[" remotely. ",[[0,1],[1,3],[2,9],[1,66],[0,1]]], +[" ",[[0,1],[1,78],[0,1]]], +[" ",[[0,1],[1,78],[0,1]]], +[" █▀▀▀▀▀▀▀██▀▀▀██▀▀█▀▀███▀▀▀▀▀▀▀█ ",[[0,1],[1,78],[0,1]]], +[" █ █▀▀▀█ ██▀▀ ▄▄▀▀██▄▀ █ █▀▀▀█ █ ",[[0,1],[1,78],[0,1]]], +[" █ █ █ █ █ ▄▀▄ ▀▄█ ▄█ █ █ █ ",[[0,1],[1,78],[0,1]]], +[" █ ▀▀▀▀▀ █▀▄ █▀▄ █ █▀█▀█ ▀▀▀▀▀ █ ",[[0,1],[1,78],[0,1]]], +[" ",[[0,1],[1,78],[0,1]]], +[" ",[[0,80]]], +[" ",[[0,80]]], +[" ",[[0,80]]], +[" ",[[0,80]]] +]} diff --git a/packages/cli-rs/parity/fixtures/E.18b/pair.json b/packages/cli-rs/parity/fixtures/E.18b/pair.json new file mode 100644 index 000000000000..dcac34f16c4b --- /dev/null +++ b/packages/cli-rs/parity/fixtures/E.18b/pair.json @@ -0,0 +1,42 @@ +{"width":100,"height":40,"styles":["#ffffffff #030303ff 0","#ffffffff #141414ff 0","#808080ff #141414ff 0"],"lines":[ +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,6],[1,88],[0,6]]], +[" Pair esc ",[[0,6],[1,82],[2,3],[1,3],[0,6]]], +[" ",[[0,6],[1,88],[0,6]]], +[" Open a link to connect. Links █▀▀▀▀▀▀▀██▀▀▀██▀▀█▀▀███▀▀▀▀▀▀▀█ ",[[0,6],[1,3],[2,29],[1,56],[0,6]]], +[" work once and expire in 10 █ █▀▀▀█ ██▀▀ ▄▄▀▀██▄▀ █ █▀▀▀█ █ ",[[0,6],[1,3],[2,27],[1,58],[0,6]]], +[" minutes. █ █ █ █ █ ▄▀▄ ▀▄█ ▄█ █ █ █ ",[[0,6],[1,3],[2,8],[1,77],[0,6]]], +[" █ ▀▀▀▀▀ █▀▄ █▀▄ █ █▀█▀█ ▀▀▀▀▀ █ ",[[0,6],[1,88],[0,6]]], +[" This device █▀▀███▀▀▀█ ▀█ █ ▄▄▀█▄ ███▀▀████ ",[[0,6],[1,3],[2,11],[1,74],[0,6]]], +[" http://localhost:4096/auth/ █▄█▄ ▀█▀▀▀▀▄▀▀██ ▄██▄ █▀█ █▄▄██ ",[[0,6],[1,88],[0,6]]], +[" connect/XK7Q2M █ ▀▄█▄▄▀ ▀▀ ▄██ ▀▄█▄██▀ █▄███▀█ ",[[0,6],[1,88],[0,6]]], +[" █▄ ▀▄▀█▀█ ▄ █▄▀▄ ▄ ▄█ ▄█▄█ ▄▄█ ",[[0,6],[1,88],[0,6]]], +[" Links █▀▀▀▄█▄▀ ▀█▄█ █ ▄▀ █ ▀▄▄██ █▄█ ",[[0,6],[1,3],[2,5],[1,80],[0,6]]], +[" http://127.0.0.1:4096/auth/ █ ▀█ ▀▄▀ ▄ ▀█▀ █ ▄▄▄ ▀█▄█▄▄▄▄ █ ",[[0,6],[1,88],[0,6]]], +[" connect/XK7Q2M █ █ █ ▄▀ ▀█▄ ██▄▀▄▀██ ▀ █▀▀▀█ ",[[0,6],[1,88],[0,6]]], +[" http://192.168.1.20:4096/ █▀▀▀▀▀▀▀█ ▄▀█▄ █▀ █▀█ ▀███ ",[[0,6],[1,88],[0,6]]], +[" auth/connect/XK7Q2M █ █▀▀▀█ █▄ ▀ █▄ ██▀ ▀▀▀ ██ ██ ",[[0,6],[1,88],[0,6]]], +[" █ █ █ ██▄▀▀▀██ ▄ ▄█ █▀▄▀▀█▀▄█ ",[[0,6],[1,88],[0,6]]], +[" Run `opencode service set █ ▀▀▀▀▀ █ █▀ ███▄█▀█▄██▄█▀▀ █▄█ ",[[0,6],[1,3],[2,26],[1,59],[0,6]]], +[" hostname 0.0.0.0` to access ▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀ ",[[0,6],[1,3],[2,28],[1,57],[0,6]]], +[" the service remotely. ",[[0,6],[1,3],[2,21],[1,64],[0,6]]], +[" ",[[0,6],[1,88],[0,6]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,100]]] +]} diff --git a/packages/cli-rs/parity/fixtures/E.18b/plugins-error.json b/packages/cli-rs/parity/fixtures/E.18b/plugins-error.json new file mode 100644 index 000000000000..e91cf1e9dcab --- /dev/null +++ b/packages/cli-rs/parity/fixtures/E.18b/plugins-error.json @@ -0,0 +1,32 @@ +{"width":100,"height":30,"styles":["#ffffffff #030303ff 0","#ffffffff #141414ff 0","#ffffffff #141414ff 1","#808080ff #141414ff 0","#ffffffff #202020ff 0","#808080ff #202020ff 0"],"lines":[ +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,6],[1,88],[0,6]]], +[" Server plugin error esc ",[[0,6],[1,3],[2,19],[1,60],[3,3],[1,3],[0,6]]], +[" .opencode/plugins/audit.ts ",[[0,6],[1,3],[3,26],[1,59],[0,6]]], +[" ",[[0,6],[1,88],[0,6]]], +[" Cannot find module 'zod' from audit.ts ",[[0,6],[1,88],[0,6]]], +[" Reference: err_audit ",[[0,6],[1,3],[3,20],[1,65],[0,6]]], +[" ",[[0,6],[1,88],[0,6]]], +[" ",[[0,6],[4,88],[0,6]]], +[" investigate i copy details c ",[[0,6],[4,66],[5,2],[4,15],[5,2],[4,3],[0,6]]], +[" ",[[0,6],[4,88],[0,6]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,100]]] +]} diff --git a/packages/cli-rs/parity/fixtures/E.18b/plugins-failed.json b/packages/cli-rs/parity/fixtures/E.18b/plugins-failed.json new file mode 100644 index 000000000000..1eedb3092d15 --- /dev/null +++ b/packages/cli-rs/parity/fixtures/E.18b/plugins-failed.json @@ -0,0 +1,32 @@ +{"width":100,"height":30,"styles":["#ffffffff #030303ff 0","#ffffffff #141414ff 0","#808080ff #141414ff 0","#808080ff #141414ff 1","#7699feff #141414ff 0","#ffffffff #23344bff 0","#ef6c6cff #23344bff 0","#93a2b7ff #23344bff 0","#ffffffff #202020ff 0","#808080ff #202020ff 0"],"lines":[ +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,6],[1,88],[0,6]]], +[" Plugins esc ",[[0,6],[1,81],[2,3],[1,4],[0,6]]], +[" ",[[0,6],[1,88],[0,6]]], +[" Search ",[[0,6],[1,4],[2,6],[1,78],[0,6]]], +[" ",[[0,6],[1,88],[0,6]]], +[" TUI ",[[0,6],[1,4],[3,3],[1,81],[0,6]]], +[" team.tui ",[[0,6],[4,1],[1,87],[0,6]]], +[" ",[[0,6],[1,88],[0,6]]], +[" Server ",[[0,6],[1,4],[3,6],[1,78],[0,6]]], +[" ┃ x audit failed, local ",[[0,6],[4,1],[5,1],[6,1],[5,68],[7,13],[5,4],[0,6]]], +[" team.plugins dadba13, update available ",[[0,6],[4,1],[1,58],[4,25],[1,4],[0,6]]], +[" ",[[0,6],[1,88],[0,6]]], +[" ",[[0,6],[8,88],[0,6]]], +[" check for updates ctrl+r show internal ctrl+a view error enter ",[[0,6],[8,21],[9,7],[8,16],[9,7],[8,27],[9,6],[8,4],[0,6]]], +[" ",[[0,6],[8,88],[0,6]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,100]]] +]} diff --git a/packages/cli-rs/parity/fixtures/E.18b/plugins-internal.json b/packages/cli-rs/parity/fixtures/E.18b/plugins-internal.json new file mode 100644 index 000000000000..7a70347bdc00 --- /dev/null +++ b/packages/cli-rs/parity/fixtures/E.18b/plugins-internal.json @@ -0,0 +1,42 @@ +{"width":100,"height":40,"styles":["#ffffffff #030303ff 0","#ffffffff #141414ff 0","#808080ff #141414ff 0","#7699feff #141414ff 0","#ffffffff #23344bff 0","#ffffffff #202020ff 0","#808080ff #202020ff 0"],"lines":[ +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,6],[1,88],[0,6]]], +[" Plugins esc ",[[0,6],[1,81],[2,3],[1,4],[0,6]]], +[" ",[[0,6],[1,88],[0,6]]], +[" Search ",[[0,6],[1,4],[2,6],[1,78],[0,6]]], +[" ",[[0,6],[1,88],[0,6]]], +[" opencode.btw ",[[0,6],[3,1],[1,87],[0,6]]], +[" opencode.diffs ",[[0,6],[3,1],[1,87],[0,6]]], +[" opencode.home.footer ",[[0,6],[3,1],[1,87],[0,6]]], +[" opencode.latex ",[[0,6],[3,1],[1,87],[0,6]]], +[" opencode.merman ",[[0,6],[3,1],[1,87],[0,6]]], +[" opencode.notifications ",[[0,6],[3,1],[1,87],[0,6]]], +[" opencode.prompt.footer ",[[0,6],[3,1],[1,87],[0,6]]], +[" opencode.sidebar.context ",[[0,6],[3,1],[1,87],[0,6]]], +[" opencode.sidebar.footer ",[[0,6],[3,1],[1,87],[0,6]]], +[" opencode.sidebar.limit ",[[0,6],[3,1],[1,87],[0,6]]], +[" opencode.sidebar.mcp ",[[0,6],[3,1],[1,87],[0,6]]], +[" opencode.sidebar.todo ",[[0,6],[3,1],[1,87],[0,6]]], +[" opencode.stats ",[[0,6],[3,1],[1,87],[0,6]]], +[" ┃ team.tui ",[[0,6],[3,1],[4,87],[0,6]]], +[" ",[[0,6],[1,88],[0,6]]], +[" ",[[0,6],[5,88],[0,6]]], +[" check for updates ctrl+r hide internal ctrl+a disable enter ",[[0,6],[5,21],[6,7],[5,16],[6,7],[5,27],[6,6],[5,4],[0,6]]], +[" ",[[0,6],[5,88],[0,6]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,100]]] +]} diff --git a/packages/cli-rs/parity/fixtures/E.18b/plugins-outdated.json b/packages/cli-rs/parity/fixtures/E.18b/plugins-outdated.json new file mode 100644 index 000000000000..a71f2f4ac122 --- /dev/null +++ b/packages/cli-rs/parity/fixtures/E.18b/plugins-outdated.json @@ -0,0 +1,32 @@ +{"width":100,"height":30,"styles":["#ffffffff #030303ff 0","#ffffffff #141414ff 0","#808080ff #141414ff 0","#808080ff #141414ff 1","#7699feff #141414ff 0","#ef6c6cff #141414ff 0","#ffffffff #23344bff 0","#93a2b7ff #23344bff 0","#ffffffff #202020ff 0","#808080ff #202020ff 0"],"lines":[ +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,6],[1,88],[0,6]]], +[" Plugins esc ",[[0,6],[1,81],[2,3],[1,4],[0,6]]], +[" ",[[0,6],[1,88],[0,6]]], +[" Search ",[[0,6],[1,4],[2,6],[1,78],[0,6]]], +[" ",[[0,6],[1,88],[0,6]]], +[" TUI ",[[0,6],[1,4],[3,3],[1,81],[0,6]]], +[" team.tui ",[[0,6],[4,1],[1,87],[0,6]]], +[" ",[[0,6],[1,88],[0,6]]], +[" Server ",[[0,6],[1,4],[3,6],[1,78],[0,6]]], +[" x audit failed, local ",[[0,6],[4,1],[1,1],[5,1],[1,68],[5,13],[1,4],[0,6]]], +[" ┃ team.plugins dadba13, update available ",[[0,6],[4,1],[6,58],[7,25],[6,4],[0,6]]], +[" ",[[0,6],[1,88],[0,6]]], +[" ",[[0,6],[8,88],[0,6]]], +[" check for updates ctrl+r show internal ctrl+a update ctrl+u ",[[0,6],[8,21],[9,7],[8,16],[9,7],[8,26],[9,7],[8,4],[0,6]]], +[" ",[[0,6],[8,88],[0,6]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,100]]] +]} diff --git a/packages/cli-rs/parity/fixtures/E.18b/plugins.json b/packages/cli-rs/parity/fixtures/E.18b/plugins.json new file mode 100644 index 000000000000..4f7e9379da7d --- /dev/null +++ b/packages/cli-rs/parity/fixtures/E.18b/plugins.json @@ -0,0 +1,32 @@ +{"width":100,"height":30,"styles":["#ffffffff #030303ff 0","#ffffffff #141414ff 0","#808080ff #141414ff 0","#808080ff #141414ff 1","#7699feff #141414ff 0","#ffffffff #23344bff 0","#ef6c6cff #141414ff 0","#ffffffff #202020ff 0","#808080ff #202020ff 0"],"lines":[ +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,6],[1,88],[0,6]]], +[" Plugins esc ",[[0,6],[1,81],[2,3],[1,4],[0,6]]], +[" ",[[0,6],[1,88],[0,6]]], +[" Search ",[[0,6],[1,4],[2,6],[1,78],[0,6]]], +[" ",[[0,6],[1,88],[0,6]]], +[" TUI ",[[0,6],[1,4],[3,3],[1,81],[0,6]]], +[" ┃ team.tui ",[[0,6],[4,1],[5,87],[0,6]]], +[" ",[[0,6],[1,88],[0,6]]], +[" Server ",[[0,6],[1,4],[3,6],[1,78],[0,6]]], +[" x audit failed, local ",[[0,6],[4,1],[1,1],[6,1],[1,68],[6,13],[1,4],[0,6]]], +[" team.plugins dadba13, update available ",[[0,6],[4,1],[1,58],[4,25],[1,4],[0,6]]], +[" ",[[0,6],[1,88],[0,6]]], +[" ",[[0,6],[7,88],[0,6]]], +[" check for updates ctrl+r show internal ctrl+a disable enter ",[[0,6],[7,21],[8,7],[7,16],[8,7],[7,27],[8,6],[7,4],[0,6]]], +[" ",[[0,6],[7,88],[0,6]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,100]]] +]} diff --git a/packages/cli-rs/parity/fixtures/E.18b/status-empty.json b/packages/cli-rs/parity/fixtures/E.18b/status-empty.json new file mode 100644 index 000000000000..e1314868fe10 --- /dev/null +++ b/packages/cli-rs/parity/fixtures/E.18b/status-empty.json @@ -0,0 +1,32 @@ +{"width":80,"height":30,"styles":["#ffffffff #030303ff 0","#ffffffff #141414ff 0","#808080ff #141414ff 0"],"lines":[ +[" ",[[0,80]]], +[" ",[[0,80]]], +[" ",[[0,80]]], +[" ",[[0,80]]], +[" ",[[0,80]]], +[" ",[[0,80]]], +[" ",[[0,80]]], +[" ",[[0,80]]], +[" ",[[0,10],[1,60],[0,10]]], +[" Status esc ",[[0,10],[1,54],[2,3],[1,3],[0,10]]], +[" ",[[0,10],[1,60],[0,10]]], +[" No MCP servers ",[[0,10],[1,60],[0,10]]], +[" ",[[0,10],[1,60],[0,10]]], +[" ",[[0,80]]], +[" ",[[0,80]]], +[" ",[[0,80]]], +[" ",[[0,80]]], +[" ",[[0,80]]], +[" ",[[0,80]]], +[" ",[[0,80]]], +[" ",[[0,80]]], +[" ",[[0,80]]], +[" ",[[0,80]]], +[" ",[[0,80]]], +[" ",[[0,80]]], +[" ",[[0,80]]], +[" ",[[0,80]]], +[" ",[[0,80]]], +[" ",[[0,80]]], +[" ",[[0,80]]] +]} diff --git a/packages/cli-rs/parity/fixtures/E.18b/status.json b/packages/cli-rs/parity/fixtures/E.18b/status.json new file mode 100644 index 000000000000..6c2014de15a9 --- /dev/null +++ b/packages/cli-rs/parity/fixtures/E.18b/status.json @@ -0,0 +1,32 @@ +{"width":80,"height":30,"styles":["#ffffffff #030303ff 0","#ffffffff #141414ff 0","#808080ff #141414ff 0","#ef6c6cff #141414ff 0","#ffffffff #141414ff 1","#9ee77aff #141414ff 0","#f5a742ff #141414ff 0"],"lines":[ +[" ",[[0,80]]], +[" ",[[0,80]]], +[" ",[[0,80]]], +[" ",[[0,80]]], +[" ",[[0,80]]], +[" ",[[0,80]]], +[" ",[[0,80]]], +[" ",[[0,80]]], +[" ",[[0,10],[1,60],[0,10]]], +[" Status esc ",[[0,10],[1,54],[2,3],[1,3],[0,10]]], +[" ",[[0,10],[1,60],[0,10]]], +[" 5 MCP servers ",[[0,10],[1,60],[0,10]]], +[" • linear MCP error -32000: Connection closed ",[[0,10],[1,3],[3,1],[1,1],[4,6],[1,1],[2,35],[1,13],[0,10]]], +[" • github Connected ",[[0,10],[1,3],[5,1],[1,1],[4,6],[1,1],[2,9],[1,39],[0,10]]], +[" • sentry Needs authentication: Authentication required ",[[0,10],[1,3],[6,1],[1,1],[4,6],[1,1],[2,45],[1,3],[0,10]]], +[" • docs Disabled in configuration ",[[0,10],[1,3],[2,1],[1,1],[4,4],[1,1],[2,25],[1,25],[0,10]]], +[" • figma pending ",[[0,10],[1,3],[2,1],[1,1],[4,5],[1,1],[2,7],[1,42],[0,10]]], +[" ",[[0,10],[1,60],[0,10]]], +[" ",[[0,80]]], +[" ",[[0,80]]], +[" ",[[0,80]]], +[" ",[[0,80]]], +[" ",[[0,80]]], +[" ",[[0,80]]], +[" ",[[0,80]]], +[" ",[[0,80]]], +[" ",[[0,80]]], +[" ",[[0,80]]], +[" ",[[0,80]]], +[" ",[[0,80]]] +]} diff --git a/packages/cli-rs/parity/fixtures/E.18b/themes-down.json b/packages/cli-rs/parity/fixtures/E.18b/themes-down.json new file mode 100644 index 000000000000..4f5ed7a6d3f9 --- /dev/null +++ b/packages/cli-rs/parity/fixtures/E.18b/themes-down.json @@ -0,0 +1,32 @@ +{"width":80,"height":30,"styles":["#ffffffff #040404ff 0","#ffffffff #141414ff 0","#808080ff #141414ff 0","#fab283ff #141414ff 0","#eeeeeeff #141414ff 0","#ffffffff #fab283ff 0","#0a0a0aff #fab283ff 0"],"lines":[ +[" ",[[0,80]]], +[" ",[[0,80]]], +[" ",[[0,80]]], +[" ",[[0,80]]], +[" ",[[0,80]]], +[" ",[[0,80]]], +[" ",[[0,80]]], +[" ",[[0,80]]], +[" ",[[0,10],[1,60],[0,10]]], +[" Search themes esc ",[[0,10],[1,4],[2,13],[1,36],[2,3],[1,4],[0,10]]], +[" ",[[0,10],[1,60],[0,10]]], +[" nightowl ",[[0,10],[3,1],[1,3],[4,8],[1,48],[0,10]]], +[" nord ",[[0,10],[3,1],[1,3],[4,4],[1,52],[0,10]]], +[" one-dark ",[[0,10],[3,1],[1,3],[4,8],[1,48],[0,10]]], +[" ▪ opencode ",[[0,10],[3,1],[1,1],[3,1],[1,1],[4,8],[1,48],[0,10]]], +[" ┃ opencode-classic ",[[0,10],[3,1],[5,3],[6,16],[5,40],[0,10]]], +[" orng ",[[0,10],[3,1],[1,3],[4,4],[1,52],[0,10]]], +[" osaka-jade ",[[0,10],[3,1],[1,3],[4,10],[1,46],[0,10]]], +[" palenight ",[[0,10],[3,1],[1,3],[4,9],[1,47],[0,10]]], +[" rosepine ",[[0,10],[3,1],[1,3],[4,8],[1,48],[0,10]]], +[" ",[[0,10],[1,60],[0,10]]], +[" ",[[0,80]]], +[" ",[[0,80]]], +[" ",[[0,80]]], +[" ",[[0,80]]], +[" ",[[0,80]]], +[" ",[[0,80]]], +[" ",[[0,80]]], +[" ",[[0,80]]], +[" ",[[0,80]]] +]} diff --git a/packages/cli-rs/parity/fixtures/E.18b/themes-filter.json b/packages/cli-rs/parity/fixtures/E.18b/themes-filter.json new file mode 100644 index 000000000000..5ab4f77a31c8 --- /dev/null +++ b/packages/cli-rs/parity/fixtures/E.18b/themes-filter.json @@ -0,0 +1,32 @@ +{"width":80,"height":30,"styles":["#ffffffff #0b0b10ff 0","#ffffffff #202230ff 0","#c8d3f5ff #202230ff 0","#828bb8ff #202230ff 0","#82aaffff #202230ff 0","#ffffffff #323644ff 0","#c8d3f5ff #323644ff 0"],"lines":[ +[" ",[[0,80]]], +[" ",[[0,80]]], +[" ",[[0,80]]], +[" ",[[0,80]]], +[" ",[[0,80]]], +[" ",[[0,80]]], +[" ",[[0,80]]], +[" ",[[0,80]]], +[" ",[[0,10],[1,60],[0,10]]], +[" tokyo esc ",[[0,10],[1,4],[2,5],[1,44],[3,3],[1,4],[0,10]]], +[" ",[[0,10],[1,60],[0,10]]], +[" ┃ tokyonight ",[[0,10],[4,1],[5,3],[6,10],[5,46],[0,10]]], +[" ",[[0,10],[1,60],[0,10]]], +[" ",[[0,80]]], +[" ",[[0,80]]], +[" ",[[0,80]]], +[" ",[[0,80]]], +[" ",[[0,80]]], +[" ",[[0,80]]], +[" ",[[0,80]]], +[" ",[[0,80]]], +[" ",[[0,80]]], +[" ",[[0,80]]], +[" ",[[0,80]]], +[" ",[[0,80]]], +[" ",[[0,80]]], +[" ",[[0,80]]], +[" ",[[0,80]]], +[" ",[[0,80]]], +[" ",[[0,80]]] +]} diff --git a/packages/cli-rs/parity/fixtures/E.18b/themes.json b/packages/cli-rs/parity/fixtures/E.18b/themes.json new file mode 100644 index 000000000000..b9de5e7e4739 --- /dev/null +++ b/packages/cli-rs/parity/fixtures/E.18b/themes.json @@ -0,0 +1,32 @@ +{"width":80,"height":30,"styles":["#ffffffff #030303ff 0","#ffffffff #141414ff 0","#808080ff #141414ff 0","#7699feff #141414ff 0","#ffffffff #23344bff 0","#7699feff #23344bff 0"],"lines":[ +[" ",[[0,80]]], +[" ",[[0,80]]], +[" ",[[0,80]]], +[" ",[[0,80]]], +[" ",[[0,80]]], +[" ",[[0,80]]], +[" ",[[0,80]]], +[" ",[[0,80]]], +[" ",[[0,10],[1,60],[0,10]]], +[" Search themes esc ",[[0,10],[1,4],[2,13],[1,36],[2,3],[1,4],[0,10]]], +[" ",[[0,10],[1,60],[0,10]]], +[" monokai ",[[0,10],[3,1],[1,59],[0,10]]], +[" nightowl ",[[0,10],[3,1],[1,59],[0,10]]], +[" nord ",[[0,10],[3,1],[1,59],[0,10]]], +[" one-dark ",[[0,10],[3,1],[1,59],[0,10]]], +[" ┃ ▪ opencode ",[[0,10],[3,1],[4,1],[5,1],[4,57],[0,10]]], +[" opencode-classic ",[[0,10],[3,1],[1,59],[0,10]]], +[" orng ",[[0,10],[3,1],[1,59],[0,10]]], +[" osaka-jade ",[[0,10],[3,1],[1,59],[0,10]]], +[" palenight ",[[0,10],[3,1],[1,59],[0,10]]], +[" ",[[0,10],[1,60],[0,10]]], +[" ",[[0,80]]], +[" ",[[0,80]]], +[" ",[[0,80]]], +[" ",[[0,80]]], +[" ",[[0,80]]], +[" ",[[0,80]]], +[" ",[[0,80]]], +[" ",[[0,80]]], +[" ",[[0,80]]] +]} diff --git a/packages/cli-rs/parity/fixtures/E.18b/update-available.json b/packages/cli-rs/parity/fixtures/E.18b/update-available.json new file mode 100644 index 000000000000..632967ec0ec9 --- /dev/null +++ b/packages/cli-rs/parity/fixtures/E.18b/update-available.json @@ -0,0 +1,32 @@ +{"width":80,"height":30,"styles":["#ffffffff #030303ff 0","#ffffffff #141414ff 0","#808080ff #141414ff 0","#ffffffff #23344bff 0"],"lines":[ +[" ",[[0,80]]], +[" ",[[0,80]]], +[" ",[[0,80]]], +[" ",[[0,80]]], +[" ",[[0,80]]], +[" ",[[0,80]]], +[" ",[[0,80]]], +[" ",[[0,80]]], +[" ",[[0,80]]], +[" ",[[0,80]]], +[" ",[[0,80]]], +[" ",[[0,10],[1,60],[0,10]]], +[" Update available esc ",[[0,10],[1,54],[2,3],[1,3],[0,10]]], +[" ",[[0,10],[1,60],[0,10]]], +[" An update is available. After installing, you'll be ",[[0,10],[1,3],[2,52],[1,5],[0,10]]], +[" prompted to restart OpenCode. ",[[0,10],[1,3],[2,29],[1,28],[0,10]]], +[" ",[[0,10],[1,60],[0,10]]], +[" Skip Update ",[[0,10],[1,44],[2,4],[1,1],[3,8],[1,3],[0,10]]], +[" ",[[0,10],[1,60],[0,10]]], +[" ",[[0,80]]], +[" ",[[0,80]]], +[" ",[[0,80]]], +[" ",[[0,80]]], +[" ",[[0,80]]], +[" ",[[0,80]]], +[" ",[[0,80]]], +[" ",[[0,80]]], +[" ",[[0,80]]], +[" ",[[0,80]]], +[" ",[[0,80]]] +]} diff --git a/packages/cli-rs/parity/fixtures/E.18b/update-checking.json b/packages/cli-rs/parity/fixtures/E.18b/update-checking.json new file mode 100644 index 000000000000..306994e45e6e --- /dev/null +++ b/packages/cli-rs/parity/fixtures/E.18b/update-checking.json @@ -0,0 +1,32 @@ +{"width":80,"height":30,"styles":["#ffffffff #030303ff 0","#ffffffff #141414ff 0","#808080ff #141414ff 0","#ffffffff #23344bff 0"],"lines":[ +[" ",[[0,80]]], +[" ",[[0,80]]], +[" ",[[0,80]]], +[" ",[[0,80]]], +[" ",[[0,80]]], +[" ",[[0,80]]], +[" ",[[0,80]]], +[" ",[[0,80]]], +[" ",[[0,80]]], +[" ",[[0,80]]], +[" ",[[0,80]]], +[" ",[[0,80]]], +[" ",[[0,10],[1,60],[0,10]]], +[" Update esc ",[[0,10],[1,54],[2,3],[1,3],[0,10]]], +[" ",[[0,10],[1,60],[0,10]]], +[" ⋯ Checking for updates… ",[[0,10],[1,3],[2,23],[1,34],[0,10]]], +[" ",[[0,10],[1,60],[0,10]]], +[" Skip ",[[0,10],[1,51],[3,6],[1,3],[0,10]]], +[" ",[[0,10],[1,60],[0,10]]], +[" ",[[0,80]]], +[" ",[[0,80]]], +[" ",[[0,80]]], +[" ",[[0,80]]], +[" ",[[0,80]]], +[" ",[[0,80]]], +[" ",[[0,80]]], +[" ",[[0,80]]], +[" ",[[0,80]]], +[" ",[[0,80]]], +[" ",[[0,80]]] +]} diff --git a/packages/cli-rs/parity/fixtures/E.18b/update-current.json b/packages/cli-rs/parity/fixtures/E.18b/update-current.json new file mode 100644 index 000000000000..c7ec3b0b1176 --- /dev/null +++ b/packages/cli-rs/parity/fixtures/E.18b/update-current.json @@ -0,0 +1,32 @@ +{"width":80,"height":30,"styles":["#ffffffff #030303ff 0","#ffffffff #141414ff 0","#808080ff #141414ff 0","#ffffffff #23344bff 0"],"lines":[ +[" ",[[0,80]]], +[" ",[[0,80]]], +[" ",[[0,80]]], +[" ",[[0,80]]], +[" ",[[0,80]]], +[" ",[[0,80]]], +[" ",[[0,80]]], +[" ",[[0,80]]], +[" ",[[0,80]]], +[" ",[[0,80]]], +[" ",[[0,80]]], +[" ",[[0,80]]], +[" ",[[0,10],[1,60],[0,10]]], +[" Update esc ",[[0,10],[1,54],[2,3],[1,3],[0,10]]], +[" ",[[0,10],[1,60],[0,10]]], +[" OpenCode is already up to date. ",[[0,10],[1,3],[2,31],[1,26],[0,10]]], +[" ",[[0,10],[1,60],[0,10]]], +[" Skip ",[[0,10],[1,51],[3,6],[1,3],[0,10]]], +[" ",[[0,10],[1,60],[0,10]]], +[" ",[[0,80]]], +[" ",[[0,80]]], +[" ",[[0,80]]], +[" ",[[0,80]]], +[" ",[[0,80]]], +[" ",[[0,80]]], +[" ",[[0,80]]], +[" ",[[0,80]]], +[" ",[[0,80]]], +[" ",[[0,80]]], +[" ",[[0,80]]] +]} diff --git a/packages/cli-rs/parity/fixtures/E.18b/update-failed.json b/packages/cli-rs/parity/fixtures/E.18b/update-failed.json new file mode 100644 index 000000000000..556b762aebdd --- /dev/null +++ b/packages/cli-rs/parity/fixtures/E.18b/update-failed.json @@ -0,0 +1,32 @@ +{"width":80,"height":30,"styles":["#ffffffff #030303ff 0","#ffffffff #141414ff 0","#808080ff #141414ff 0","#ef6c6cff #141414ff 0","#ffffffff #23344bff 0"],"lines":[ +[" ",[[0,80]]], +[" ",[[0,80]]], +[" ",[[0,80]]], +[" ",[[0,80]]], +[" ",[[0,80]]], +[" ",[[0,80]]], +[" ",[[0,80]]], +[" ",[[0,80]]], +[" ",[[0,80]]], +[" ",[[0,80]]], +[" ",[[0,80]]], +[" ",[[0,80]]], +[" ",[[0,10],[1,60],[0,10]]], +[" Update available esc ",[[0,10],[1,54],[2,3],[1,3],[0,10]]], +[" ",[[0,10],[1,60],[0,10]]], +[" npm exited with code 1 ",[[0,10],[1,3],[3,22],[1,35],[0,10]]], +[" ",[[0,10],[1,60],[0,10]]], +[" Skip ",[[0,10],[1,51],[4,6],[1,3],[0,10]]], +[" ",[[0,10],[1,60],[0,10]]], +[" ",[[0,80]]], +[" ",[[0,80]]], +[" ",[[0,80]]], +[" ",[[0,80]]], +[" ",[[0,80]]], +[" ",[[0,80]]], +[" ",[[0,80]]], +[" ",[[0,80]]], +[" ",[[0,80]]], +[" ",[[0,80]]], +[" ",[[0,80]]] +]} diff --git a/packages/cli-rs/parity/fixtures/E.18b/update-installed.json b/packages/cli-rs/parity/fixtures/E.18b/update-installed.json new file mode 100644 index 000000000000..b2ba6ec790c9 --- /dev/null +++ b/packages/cli-rs/parity/fixtures/E.18b/update-installed.json @@ -0,0 +1,32 @@ +{"width":80,"height":30,"styles":["#ffffffff #030303ff 0","#ffffffff #141414ff 0","#808080ff #141414ff 0","#ffffffff #23344bff 0"],"lines":[ +[" ",[[0,80]]], +[" ",[[0,80]]], +[" ",[[0,80]]], +[" ",[[0,80]]], +[" ",[[0,80]]], +[" ",[[0,80]]], +[" ",[[0,80]]], +[" ",[[0,80]]], +[" ",[[0,80]]], +[" ",[[0,80]]], +[" ",[[0,80]]], +[" ",[[0,10],[1,60],[0,10]]], +[" Update esc ",[[0,10],[1,54],[2,3],[1,3],[0,10]]], +[" ",[[0,10],[1,60],[0,10]]], +[" Update successful! Restart closes OpenCode, then run ",[[0,10],[1,3],[2,53],[1,4],[0,10]]], +[" opencode to use the new version. ",[[0,10],[1,3],[2,32],[1,25],[0,10]]], +[" ",[[0,10],[1,60],[0,10]]], +[" Skip Restart ",[[0,10],[1,43],[2,4],[1,1],[3,9],[1,3],[0,10]]], +[" ",[[0,10],[1,60],[0,10]]], +[" ",[[0,80]]], +[" ",[[0,80]]], +[" ",[[0,80]]], +[" ",[[0,80]]], +[" ",[[0,80]]], +[" ",[[0,80]]], +[" ",[[0,80]]], +[" ",[[0,80]]], +[" ",[[0,80]]], +[" ",[[0,80]]], +[" ",[[0,80]]] +]} diff --git a/packages/cli-rs/parity/fixtures/E.18b/update-installing.json b/packages/cli-rs/parity/fixtures/E.18b/update-installing.json new file mode 100644 index 000000000000..ac33967996a5 --- /dev/null +++ b/packages/cli-rs/parity/fixtures/E.18b/update-installing.json @@ -0,0 +1,32 @@ +{"width":80,"height":30,"styles":["#ffffffff #030303ff 0","#ffffffff #141414ff 0","#808080ff #141414ff 0"],"lines":[ +[" ",[[0,80]]], +[" ",[[0,80]]], +[" ",[[0,80]]], +[" ",[[0,80]]], +[" ",[[0,80]]], +[" ",[[0,80]]], +[" ",[[0,80]]], +[" ",[[0,80]]], +[" ",[[0,80]]], +[" ",[[0,80]]], +[" ",[[0,80]]], +[" ",[[0,80]]], +[" ",[[0,80]]], +[" ",[[0,10],[1,60],[0,10]]], +[" Updating OpenCode esc ",[[0,10],[1,54],[2,3],[1,3],[0,10]]], +[" ",[[0,10],[1,60],[0,10]]], +[" ⋯ Installing OpenCode 2.0.28… ",[[0,10],[1,3],[2,29],[1,28],[0,10]]], +[" ",[[0,10],[1,60],[0,10]]], +[" ",[[0,80]]], +[" ",[[0,80]]], +[" ",[[0,80]]], +[" ",[[0,80]]], +[" ",[[0,80]]], +[" ",[[0,80]]], +[" ",[[0,80]]], +[" ",[[0,80]]], +[" ",[[0,80]]], +[" ",[[0,80]]], +[" ",[[0,80]]], +[" ",[[0,80]]] +]} diff --git a/packages/cli-rs/parity/fixtures/E.18b/update-left.json b/packages/cli-rs/parity/fixtures/E.18b/update-left.json new file mode 100644 index 000000000000..d72e526312c5 --- /dev/null +++ b/packages/cli-rs/parity/fixtures/E.18b/update-left.json @@ -0,0 +1,32 @@ +{"width":80,"height":30,"styles":["#ffffffff #030303ff 0","#ffffffff #141414ff 0","#808080ff #141414ff 0","#ffffffff #23344bff 0"],"lines":[ +[" ",[[0,80]]], +[" ",[[0,80]]], +[" ",[[0,80]]], +[" ",[[0,80]]], +[" ",[[0,80]]], +[" ",[[0,80]]], +[" ",[[0,80]]], +[" ",[[0,80]]], +[" ",[[0,80]]], +[" ",[[0,80]]], +[" ",[[0,80]]], +[" ",[[0,10],[1,60],[0,10]]], +[" Update available esc ",[[0,10],[1,54],[2,3],[1,3],[0,10]]], +[" ",[[0,10],[1,60],[0,10]]], +[" An update is available. After installing, you'll be ",[[0,10],[1,3],[2,52],[1,5],[0,10]]], +[" prompted to restart OpenCode. ",[[0,10],[1,3],[2,29],[1,28],[0,10]]], +[" ",[[0,10],[1,60],[0,10]]], +[" Skip Update ",[[0,10],[1,43],[3,6],[1,1],[2,6],[1,4],[0,10]]], +[" ",[[0,10],[1,60],[0,10]]], +[" ",[[0,80]]], +[" ",[[0,80]]], +[" ",[[0,80]]], +[" ",[[0,80]]], +[" ",[[0,80]]], +[" ",[[0,80]]], +[" ",[[0,80]]], +[" ",[[0,80]]], +[" ",[[0,80]]], +[" ",[[0,80]]], +[" ",[[0,80]]] +]} diff --git a/packages/cli-rs/parity/fixtures/E.18b/update-unavailable.json b/packages/cli-rs/parity/fixtures/E.18b/update-unavailable.json new file mode 100644 index 000000000000..d572d48489a2 --- /dev/null +++ b/packages/cli-rs/parity/fixtures/E.18b/update-unavailable.json @@ -0,0 +1,32 @@ +{"width":80,"height":30,"styles":["#ffffffff #030303ff 0","#ffffffff #141414ff 0","#808080ff #141414ff 0","#ffffffff #23344bff 0"],"lines":[ +[" ",[[0,80]]], +[" ",[[0,80]]], +[" ",[[0,80]]], +[" ",[[0,80]]], +[" ",[[0,80]]], +[" ",[[0,80]]], +[" ",[[0,80]]], +[" ",[[0,80]]], +[" ",[[0,80]]], +[" ",[[0,80]]], +[" ",[[0,80]]], +[" ",[[0,10],[1,60],[0,10]]], +[" Update esc ",[[0,10],[1,54],[2,3],[1,3],[0,10]]], +[" ",[[0,10],[1,60],[0,10]]], +[" OpenCode was installed with Homebrew. Run `brew ",[[0,10],[1,3],[2,48],[1,9],[0,10]]], +[" upgrade opencode` to update. ",[[0,10],[1,3],[2,28],[1,29],[0,10]]], +[" ",[[0,10],[1,60],[0,10]]], +[" Skip ",[[0,10],[1,51],[3,6],[1,3],[0,10]]], +[" ",[[0,10],[1,60],[0,10]]], +[" ",[[0,80]]], +[" ",[[0,80]]], +[" ",[[0,80]]], +[" ",[[0,80]]], +[" ",[[0,80]]], +[" ",[[0,80]]], +[" ",[[0,80]]], +[" ",[[0,80]]], +[" ",[[0,80]]], +[" ",[[0,80]]], +[" ",[[0,80]]] +]} diff --git a/packages/cli-rs/parity/fixtures/E.19a/failed-toast-other.app.json b/packages/cli-rs/parity/fixtures/E.19a/failed-toast-other.app.json new file mode 100644 index 000000000000..b91a21209fc2 --- /dev/null +++ b/packages/cli-rs/parity/fixtures/E.19a/failed-toast-other.app.json @@ -0,0 +1,43 @@ +{ + "scenario": "E.19a/failed-toast-other", + "width": 100, + "height": 30, + "directory": "/tmp/opencode/packages/tui", + "config": { + "experimental": {"new-designs":true}, + "animations": false, + "theme": {"name":"opencode"} + }, + "args": {}, + "routes": [], + "steps": [ + {"checkpoint":"home","until":"Ask anything","masks":[{"x":16,"y":16,"width":84,"height":1,"reason":"the placeholder example: random in TS and Rust"}],"fixture":"E.19a/failed-toast-other/home"}, + {"event":{"id":"evt_failed","created":1,"type":"session.execution.failed","durable":{"aggregateID":"ses_c","seq":1,"version":1},"data":{"sessionID":"ses_c","error":{"type":"unknown","message":"Plugin failed during skill.transform."}}}}, + {"checkpoint":"failed","until":"Session failed","masks":[{"x":16,"y":16,"width":84,"height":1,"reason":"the placeholder example: random in TS and Rust"}],"fixture":"E.19a/failed-toast-other/failed"} + ], + "requests": { + "writes": [], + "reads": [ + {"method":"GET","path":"/api/agent","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":[]}}, + {"method":"GET","path":"/api/command","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":[]}}, + {"method":"GET","path":"/api/config","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":[]}, + {"method":"GET","path":"/api/experimental/migration/v1","query":{},"status":200,"json":{"status":"completed"}}, + {"method":"GET","path":"/api/form","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode"}},"data":[]}}, + {"method":"GET","path":"/api/fs/list","query":{"location[directory]":["<cwd>"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":[]}}, + {"method":"GET","path":"/api/info","query":{},"status":200,"json":{"version":"test","pid":0,"urls":[],"paths":{"tmp":"/tmp"},"capabilities":{"persistentPty":true}}}, + {"method":"GET","path":"/api/integration","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":[]}}, + {"method":"GET","path":"/api/location","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}}}, + {"method":"GET","path":"/api/mcp","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":[]}}, + {"method":"GET","path":"/api/mcp/resource","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":{"resources":[],"templates":[]}}}, + {"method":"GET","path":"/api/model","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":[]}}, + {"method":"GET","path":"/api/plugin","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":[]}}, + {"method":"GET","path":"/api/project","query":{},"status":200,"json":[]}, + {"method":"GET","path":"/api/provider","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":[]}}, + {"method":"GET","path":"/api/reference","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode/packages/tui","canonical":"/tmp/opencode/packages/tui"}},"data":[]}}, + {"method":"GET","path":"/api/session/active","query":{},"status":200,"json":{"data":{}}}, + {"method":"GET","path":"/api/shell","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":[]}}, + {"method":"GET","path":"/api/skill","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":[]}}, + {"method":"GET","path":"/api/vcs","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":{"branch":{"current":"main","default":"main"}}}} + ] + } +} diff --git a/packages/cli-rs/parity/fixtures/E.19a/failed-toast-other/failed.json b/packages/cli-rs/parity/fixtures/E.19a/failed-toast-other/failed.json new file mode 100644 index 000000000000..c7427ca33668 --- /dev/null +++ b/packages/cli-rs/parity/fixtures/E.19a/failed-toast-other/failed.json @@ -0,0 +1,32 @@ +{"width":100,"height":30,"styles":["#ffffffff #080808ff 0","#ef6c6cff #080808ff 0","#ffffffff #202020ff 0","#ffffffff #202020ff 1","#808080ff #202020ff 0","#808080ff #080808ff 0","#ffffffff #080808ff 1","#808080ff #262626ff 0","#ffffffff #464646ff 1","#262626ff #080808ff 0","#484848ff #080808ff 0","#00000000 #00000000 0","#202020ff #080808ff 0"],"lines":[ +[" ",[[0,100]]], +[" ┃ ┃ ",[[0,55],[1,1],[2,41],[1,1],[0,2]]], +[" ┃ Session failed › Open ┃ ",[[0,55],[1,1],[2,2],[3,14],[2,17],[4,6],[2,2],[1,1],[0,2]]], +[" ┃ ┃ ",[[0,55],[1,1],[2,41],[1,1],[0,2]]], +[" ┃ Plugin failed during skill.transform. ┃ ",[[0,55],[1,1],[2,41],[1,1],[0,2]]], +[" ┃ ┃ ",[[0,55],[1,1],[2,41],[1,1],[0,2]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ▄ ",[[0,31],[5,19],[0,1],[6,19],[0,30]]], +[" █▀▀█ █▀▀█ █▀▀█ █▀▀▄ █▀▀▀ █▀▀█ █▀▀█ █▀▀█ ",[[0,31],[5,19],[0,1],[6,19],[0,30]]], +[" █ █ █ █ █▀▀▀ █ █ █ █ █ █ █ █▀▀▀ ",[[0,31],[5,1],[7,2],[5,3],[7,2],[5,3],[7,3],[5,2],[7,2],[5,1],[0,1],[6,1],[8,3],[6,2],[8,2],[6,3],[8,2],[6,3],[8,3],[0,30]]], +[" ▀▀▀▀ █▀▀▀ ▀▀▀▀ ▀▀▀▀ ▀▀▀▀ ▀▀▀▀ ▀▀▀▀ ▀▀▀▀ ",[[0,31],[5,16],[9,2],[5,1],[0,1],[6,19],[0,30]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ┃ ",[[0,13],[10,1],[2,74],[0,12]]], +[" ┃ ",[[0,13],[10,1],[2,2],[11,84]]], +[" ┃ ",[[0,13],[10,1],[2,74],[0,12]]], +[" ┃ ",[[0,13],[10,1],[2,74],[0,12]]], +[" ╹▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀ ",[[0,13],[10,1],[12,74],[0,12]]], +[" /tmp/opencode/packages/tui:main shift+tab agents ctrl+p commands ",[[0,13],[5,31],[0,21],[5,6],[0,9],[5,8],[0,12]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" test ",[[0,94],[5,4],[0,2]]], +[" ",[[0,100]]] +]} diff --git a/packages/cli-rs/parity/fixtures/E.19a/failed-toast-other/home.json b/packages/cli-rs/parity/fixtures/E.19a/failed-toast-other/home.json new file mode 100644 index 000000000000..fde2210b2f02 --- /dev/null +++ b/packages/cli-rs/parity/fixtures/E.19a/failed-toast-other/home.json @@ -0,0 +1,32 @@ +{"width":100,"height":30,"styles":["#ffffffff #080808ff 0","#808080ff #080808ff 0","#ffffffff #080808ff 1","#808080ff #262626ff 0","#ffffffff #464646ff 1","#262626ff #080808ff 0","#484848ff #080808ff 0","#ffffffff #202020ff 0","#00000000 #00000000 0","#202020ff #080808ff 0"],"lines":[ +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ▄ ",[[0,31],[1,19],[0,1],[2,19],[0,30]]], +[" █▀▀█ █▀▀█ █▀▀█ █▀▀▄ █▀▀▀ █▀▀█ █▀▀█ █▀▀█ ",[[0,31],[1,19],[0,1],[2,19],[0,30]]], +[" █ █ █ █ █▀▀▀ █ █ █ █ █ █ █ █▀▀▀ ",[[0,31],[1,1],[3,2],[1,3],[3,2],[1,3],[3,3],[1,2],[3,2],[1,1],[0,1],[2,1],[4,3],[2,2],[4,2],[2,3],[4,2],[2,3],[4,3],[0,30]]], +[" ▀▀▀▀ █▀▀▀ ▀▀▀▀ ▀▀▀▀ ▀▀▀▀ ▀▀▀▀ ▀▀▀▀ ▀▀▀▀ ",[[0,31],[1,16],[5,2],[1,1],[0,1],[2,19],[0,30]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ┃ ",[[0,13],[6,1],[7,74],[0,12]]], +[" ┃ ",[[0,13],[6,1],[7,2],[8,84]]], +[" ┃ ",[[0,13],[6,1],[7,74],[0,12]]], +[" ┃ ",[[0,13],[6,1],[7,74],[0,12]]], +[" ╹▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀ ",[[0,13],[6,1],[9,74],[0,12]]], +[" /tmp/opencode/packages/tui:main shift+tab agents ctrl+p commands ",[[0,13],[1,31],[0,21],[1,6],[0,9],[1,8],[0,12]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" test ",[[0,94],[1,4],[0,2]]], +[" ",[[0,100]]] +]} diff --git a/packages/cli-rs/parity/fixtures/E.19a/failed-toast.app.json b/packages/cli-rs/parity/fixtures/E.19a/failed-toast.app.json new file mode 100644 index 000000000000..285152cbd013 --- /dev/null +++ b/packages/cli-rs/parity/fixtures/E.19a/failed-toast.app.json @@ -0,0 +1,59 @@ +{ + "scenario": "E.19a/failed-toast", + "width": 100, + "height": 30, + "directory": "/tmp/opencode/packages/tui", + "config": { + "experimental": {"new-designs":true}, + "animations": false, + "theme": {"name":"opencode"} + }, + "args": { + "sessionID": "ses_b" + }, + "routes": [ + {"path":"/api/session/ses_b","json":{"data":{"id":"ses_b","title":"Fix the parser","projectID":"proj_test","cost":0,"tokens":{"input":0,"output":0,"reasoning":0,"cache":{"read":0,"write":0}},"time":{"created":1,"updated":1},"location":{"directory":"/tmp/opencode/packages/tui"}}}}, + {"path":"/api/session/ses_b/message","json":{"data":[],"cursor":{}}}, + {"path":"/api/session/ses_b/inbox","json":{"data":[]}} + ], + "steps": [ + {"checkpoint":"open","until":"Fix the parser","fixture":"E.19a/failed-toast/open"}, + {"event":{"id":"evt_started_1","created":1,"type":"session.execution.started","durable":{"aggregateID":"ses_b","seq":1,"version":1},"data":{"sessionID":"ses_b"}}}, + {"event":{"id":"evt_failed_2","created":2,"type":"session.execution.failed","durable":{"aggregateID":"ses_b","seq":2,"version":1},"data":{"sessionID":"ses_b","error":{"type":"unknown","message":"The provider returned an error."}}}}, + {"checkpoint":"failed","until":"Session failed","fixture":"E.19a/failed-toast/failed"} + ], + "requests": { + "writes": [], + "reads": [ + {"method":"GET","path":"/api/agent","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":[]}}, + {"method":"GET","path":"/api/command","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":[]}}, + {"method":"GET","path":"/api/config","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":[]}, + {"method":"GET","path":"/api/experimental/job","query":{"descendants":["true"],"sessionID":["ses_b"],"status":["running"]},"status":200,"json":{"data":[]}}, + {"method":"GET","path":"/api/experimental/migration/v1","query":{},"status":200,"json":{"status":"completed"}}, + {"method":"GET","path":"/api/experimental/session/ses_b/terminal","query":{},"status":200,"json":{"data":[]}}, + {"method":"GET","path":"/api/form","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode"}},"data":[]}}, + {"method":"GET","path":"/api/fs/list","query":{"location[directory]":["<cwd>"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":[]}}, + {"method":"GET","path":"/api/info","query":{},"status":200,"json":{"version":"test","pid":0,"urls":[],"paths":{"tmp":"/tmp"},"capabilities":{"persistentPty":true}}}, + {"method":"GET","path":"/api/integration","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":[]}}, + {"method":"GET","path":"/api/location","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}}}, + {"method":"GET","path":"/api/mcp","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":[]}}, + {"method":"GET","path":"/api/mcp/resource","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":{"resources":[],"templates":[]}}}, + {"method":"GET","path":"/api/model","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":[]}}, + {"method":"GET","path":"/api/plugin","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":[]}}, + {"method":"GET","path":"/api/project","query":{},"status":200,"json":[]}, + {"method":"GET","path":"/api/provider","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":[]}}, + {"method":"GET","path":"/api/reference","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode/packages/tui","canonical":"/tmp/opencode/packages/tui"}},"data":[]}}, + {"method":"GET","path":"/api/session","query":{"limit":["200"],"order":["desc"],"parentID":["ses_b"]},"status":200,"json":{"data":[],"cursor":{}}}, + {"method":"GET","path":"/api/session/active","query":{},"status":200,"json":{"data":{}}}, + {"method":"GET","path":"/api/session/ses_b","query":{},"status":200,"json":{"data":{"id":"ses_b","title":"Fix the parser","projectID":"proj_test","cost":0,"tokens":{"input":0,"output":0,"reasoning":0,"cache":{"read":0,"write":0}},"time":{"created":1,"updated":1},"location":{"directory":"/tmp/opencode/packages/tui"}}}}, + {"method":"GET","path":"/api/session/ses_b/form","query":{},"status":200,"json":{"data":[]}}, + {"method":"GET","path":"/api/session/ses_b/inbox","query":{},"status":200,"json":{"data":[]}}, + {"method":"GET","path":"/api/session/ses_b/message","query":{"limit":["20"],"order":["desc"]},"status":200,"json":{"data":[],"cursor":{}}}, + {"method":"GET","path":"/api/session/ses_b/permission","query":{},"status":200,"json":{"data":[]}}, + {"method":"GET","path":"/api/shell","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":[]}}, + {"method":"GET","path":"/api/skill","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":[]}}, + {"method":"GET","path":"/api/vcs","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":{"branch":{"current":"main","default":"main"}}}}, + {"method":"POST","path":"/api/rpc/opencode.goal/get","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"body":{"input":{"sessionID":"ses_b"}},"status":200,"json":{"output":null}} + ] + } +} diff --git a/packages/cli-rs/parity/fixtures/E.19a/failed-toast/failed.json b/packages/cli-rs/parity/fixtures/E.19a/failed-toast/failed.json new file mode 100644 index 000000000000..df0aecaaca8f --- /dev/null +++ b/packages/cli-rs/parity/fixtures/E.19a/failed-toast/failed.json @@ -0,0 +1,32 @@ +{"width":100,"height":30,"styles":["#ffffffff #202020ff 0","#ffffffff #202020ff 1","#808080ff #080808ff 0","#ffffffff #080808ff 0","#ef6c6cff #080808ff 0","#808080ff #202020ff 0","#484848ff #080808ff 0","#202020ff #080808ff 0"],"lines":[ +[" Fix the parser + ",[[0,3],[1,14],[0,15],[2,3],[3,65]]], +[" ┃ ┃ ",[[3,61],[4,1],[0,35],[4,1],[3,2]]], +[" Error: The provider returned an error. ┃ Session failed x ┃ ",[[3,5],[4,38],[3,18],[4,1],[0,2],[1,14],[0,16],[5,1],[0,2],[4,1],[3,2]]], +[" ┃ ┃ ",[[3,61],[4,1],[0,35],[4,1],[3,2]]], +[" ┃ The provider returned an error. ┃ ",[[3,61],[4,1],[0,35],[4,1],[3,2]]], +[" ┃ ┃ ",[[3,61],[4,1],[0,35],[4,1],[3,2]]], +[" ",[[3,100]]], +[" ",[[3,100]]], +[" ",[[3,100]]], +[" ",[[3,100]]], +[" ",[[3,100]]], +[" ",[[3,100]]], +[" ",[[3,100]]], +[" ",[[3,100]]], +[" ",[[3,100]]], +[" ",[[3,100]]], +[" ",[[3,100]]], +[" ",[[3,100]]], +[" ",[[3,100]]], +[" ",[[3,100]]], +[" ",[[3,100]]], +[" ",[[3,100]]], +[" ",[[3,100]]], +[" ┃ ",[[3,2],[6,1],[0,95],[3,2]]], +[" ┃ ",[[3,2],[6,1],[0,95],[3,2]]], +[" ┃ ",[[3,2],[6,1],[0,95],[3,2]]], +[" ┃ ",[[3,2],[6,1],[0,95],[3,2]]], +[" ╹▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀ ",[[3,2],[6,1],[7,95],[3,2]]], +[" /tmp/opencode/packages/tui:main shift+tab agents ctrl+p commands ",[[3,2],[2,31],[3,42],[2,6],[3,9],[2,8],[3,2]]], +[" ",[[3,100]]] +]} diff --git a/packages/cli-rs/parity/fixtures/E.19a/failed-toast/open.json b/packages/cli-rs/parity/fixtures/E.19a/failed-toast/open.json new file mode 100644 index 000000000000..d409c0ac70a4 --- /dev/null +++ b/packages/cli-rs/parity/fixtures/E.19a/failed-toast/open.json @@ -0,0 +1,32 @@ +{"width":100,"height":30,"styles":["#ffffffff #202020ff 0","#ffffffff #202020ff 1","#808080ff #080808ff 0","#ffffffff #080808ff 0","#484848ff #080808ff 0","#202020ff #080808ff 0"],"lines":[ +[" Fix the parser + ",[[0,3],[1,14],[0,15],[2,3],[3,65]]], +[" ",[[3,100]]], +[" ",[[3,100]]], +[" ",[[3,100]]], +[" ",[[3,100]]], +[" ",[[3,100]]], +[" ",[[3,100]]], +[" ",[[3,100]]], +[" ",[[3,100]]], +[" ",[[3,100]]], +[" ",[[3,100]]], +[" ",[[3,100]]], +[" ",[[3,100]]], +[" ",[[3,100]]], +[" ",[[3,100]]], +[" ",[[3,100]]], +[" ",[[3,100]]], +[" ",[[3,100]]], +[" ",[[3,100]]], +[" ",[[3,100]]], +[" ",[[3,100]]], +[" ",[[3,100]]], +[" ",[[3,100]]], +[" ┃ ",[[3,2],[4,1],[0,95],[3,2]]], +[" ┃ ",[[3,2],[4,1],[0,95],[3,2]]], +[" ┃ ",[[3,2],[4,1],[0,95],[3,2]]], +[" ┃ ",[[3,2],[4,1],[0,95],[3,2]]], +[" ╹▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀ ",[[3,2],[4,1],[5,95],[3,2]]], +[" /tmp/opencode/packages/tui:main shift+tab agents ctrl+p commands ",[[3,2],[2,31],[3,42],[2,6],[3,9],[2,8],[3,2]]], +[" ",[[3,100]]] +]} diff --git a/packages/cli-rs/parity/fixtures/E.2/prompt-typing.app.json b/packages/cli-rs/parity/fixtures/E.2/prompt-typing.app.json new file mode 100644 index 000000000000..d00f13c68159 --- /dev/null +++ b/packages/cli-rs/parity/fixtures/E.2/prompt-typing.app.json @@ -0,0 +1,62 @@ +{ + "scenario": "E.2/prompt-typing", + "width": 100, + "height": 30, + "directory": "/tmp/opencode/packages/tui", + "config": { + "animations": false, + "experimental": {"new-designs":true}, + "theme": {"name":"opencode"} + }, + "args": { + "sessionID": "ses_b" + }, + "routes": [ + {"path":"/api/session/ses_b","json":{"data":{"id":"ses_b","title":"Fix the parser","projectID":"proj_test","cost":0,"tokens":{"input":0,"output":0,"reasoning":0,"cache":{"read":0,"write":0}},"time":{"created":2,"updated":2},"location":{"directory":"/tmp/opencode/packages/tui"}}}}, + {"path":"/api/session/ses_b/message","json":{"data":[{"id":"msg_2","type":"assistant","agent":"build","model":{"providerID":"provider","id":"model"},"content":[{"type":"text","text":"The parser drops the last token."}],"finish":"stop","time":{"created":2,"completed":3}},{"id":"msg_1","type":"user","text":"Why does the parser fail?","time":{"created":1}}],"cursor":{}}}, + {"path":"/api/session/ses_b/inbox","json":{"data":[]}} + ], + "steps": [ + {"checkpoint":"open","until":"The parser drops the last token.","fixture":"E.2/prompt-typing/open"}, + {"type":"hello wrld"}, + {"keys":["left","left","left"]}, + {"type":"o"}, + {"keys":["ctrl+e","shift+enter"]}, + {"type":"second line"}, + {"checkpoint":"typed","until":"second line","fixture":"E.2/prompt-typing/typed"} + ], + "requests": { + "writes": [], + "reads": [ + {"method":"GET","path":"/api/agent","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":[]}}, + {"method":"GET","path":"/api/command","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":[]}}, + {"method":"GET","path":"/api/config","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":[]}, + {"method":"GET","path":"/api/experimental/job","query":{"descendants":["true"],"sessionID":["ses_b"],"status":["running"]},"status":200,"json":{"data":[]}}, + {"method":"GET","path":"/api/experimental/migration/v1","query":{},"status":200,"json":{"status":"completed"}}, + {"method":"GET","path":"/api/experimental/session/ses_b/terminal","query":{},"status":200,"json":{"data":[]}}, + {"method":"GET","path":"/api/form","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode"}},"data":[]}}, + {"method":"GET","path":"/api/fs/list","query":{"location[directory]":["<cwd>"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":[]}}, + {"method":"GET","path":"/api/info","query":{},"status":200,"json":{"version":"test","pid":0,"urls":[],"paths":{"tmp":"/tmp"},"capabilities":{"persistentPty":true}}}, + {"method":"GET","path":"/api/integration","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":[]}}, + {"method":"GET","path":"/api/location","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}}}, + {"method":"GET","path":"/api/mcp","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":[]}}, + {"method":"GET","path":"/api/mcp/resource","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":{"resources":[],"templates":[]}}}, + {"method":"GET","path":"/api/model","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":[]}}, + {"method":"GET","path":"/api/plugin","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":[]}}, + {"method":"GET","path":"/api/project","query":{},"status":200,"json":[]}, + {"method":"GET","path":"/api/provider","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":[]}}, + {"method":"GET","path":"/api/reference","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode/packages/tui","canonical":"/tmp/opencode/packages/tui"}},"data":[]}}, + {"method":"GET","path":"/api/session","query":{"limit":["200"],"order":["desc"],"parentID":["ses_b"]},"status":200,"json":{"data":[],"cursor":{}}}, + {"method":"GET","path":"/api/session/active","query":{},"status":200,"json":{"data":{}}}, + {"method":"GET","path":"/api/session/ses_b","query":{},"status":200,"json":{"data":{"id":"ses_b","title":"Fix the parser","projectID":"proj_test","cost":0,"tokens":{"input":0,"output":0,"reasoning":0,"cache":{"read":0,"write":0}},"time":{"created":2,"updated":2},"location":{"directory":"/tmp/opencode/packages/tui"}}}}, + {"method":"GET","path":"/api/session/ses_b/form","query":{},"status":200,"json":{"data":[]}}, + {"method":"GET","path":"/api/session/ses_b/inbox","query":{},"status":200,"json":{"data":[]}}, + {"method":"GET","path":"/api/session/ses_b/message","query":{"limit":["20"],"order":["desc"]},"status":200,"json":{"data":[{"id":"msg_2","type":"assistant","agent":"build","model":{"providerID":"provider","id":"model"},"content":[{"type":"text","text":"The parser drops the last token."}],"finish":"stop","time":{"created":2,"completed":3}},{"id":"msg_1","type":"user","text":"Why does the parser fail?","time":{"created":1}}],"cursor":{}}}, + {"method":"GET","path":"/api/session/ses_b/permission","query":{},"status":200,"json":{"data":[]}}, + {"method":"GET","path":"/api/shell","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":[]}}, + {"method":"GET","path":"/api/skill","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":[]}}, + {"method":"GET","path":"/api/vcs","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":{"branch":{"current":"main","default":"main"}}}}, + {"method":"POST","path":"/api/rpc/opencode.goal/get","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"body":{"input":{"sessionID":"ses_b"}},"status":200,"json":{"output":null}} + ] + } +} diff --git a/packages/cli-rs/parity/fixtures/E.2/prompt-typing/open.json b/packages/cli-rs/parity/fixtures/E.2/prompt-typing/open.json new file mode 100644 index 000000000000..7d97e35ad0c4 --- /dev/null +++ b/packages/cli-rs/parity/fixtures/E.2/prompt-typing/open.json @@ -0,0 +1,32 @@ +{"width":100,"height":30,"styles":["#ffffffff #202020ff 0","#ffffffff #202020ff 1","#808080ff #080808ff 0","#ffffffff #080808ff 0","#7699feff #141414ff 0","#ffffffff #141414ff 0","#eeeeeeff #080808ff 0","#7699feff #080808ff 0","#484848ff #080808ff 0","#202020ff #080808ff 0"],"lines":[ +[" Fix the parser + ",[[0,3],[1,14],[0,15],[2,3],[3,65]]], +[" ",[[3,100]]], +[" ┃ ",[[3,2],[4,1],[5,95],[3,2]]], +[" ┃ Why does the parser fail? ",[[3,2],[4,1],[5,95],[3,2]]], +[" ┃ ",[[3,2],[4,1],[5,95],[3,2]]], +[" ",[[3,100]]], +[" The parser drops the last token. ",[[3,5],[6,32],[3,63]]], +[" ",[[3,100]]], +[" Build · provider/model · 2ms ",[[3,5],[7,5],[2,23],[3,67]]], +[" ",[[3,100]]], +[" ",[[3,100]]], +[" ",[[3,100]]], +[" ",[[3,100]]], +[" ",[[3,100]]], +[" ",[[3,100]]], +[" ",[[3,100]]], +[" ",[[3,100]]], +[" ",[[3,100]]], +[" ",[[3,100]]], +[" ",[[3,100]]], +[" ",[[3,100]]], +[" ",[[3,100]]], +[" ",[[3,100]]], +[" ┃ ",[[3,2],[8,1],[0,95],[3,2]]], +[" ┃ ",[[3,2],[8,1],[0,95],[3,2]]], +[" ┃ ",[[3,2],[8,1],[0,95],[3,2]]], +[" ┃ ",[[3,2],[8,1],[0,95],[3,2]]], +[" ╹▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀ ",[[3,2],[8,1],[9,95],[3,2]]], +[" /tmp/opencode/packages/tui:main shift+tab agents ctrl+p commands ",[[3,2],[2,31],[3,42],[2,6],[3,9],[2,8],[3,2]]], +[" ",[[3,100]]] +]} diff --git a/packages/cli-rs/parity/fixtures/E.2/prompt-typing/typed.json b/packages/cli-rs/parity/fixtures/E.2/prompt-typing/typed.json new file mode 100644 index 000000000000..285b5ce0fc6b --- /dev/null +++ b/packages/cli-rs/parity/fixtures/E.2/prompt-typing/typed.json @@ -0,0 +1,32 @@ +{"width":100,"height":30,"styles":["#ffffffff #202020ff 0","#ffffffff #202020ff 1","#808080ff #080808ff 0","#ffffffff #080808ff 0","#7699feff #141414ff 0","#ffffffff #141414ff 0","#eeeeeeff #080808ff 0","#7699feff #080808ff 0","#484848ff #080808ff 0","#202020ff #080808ff 0"],"lines":[ +[" Fix the parser + ",[[0,3],[1,14],[0,15],[2,3],[3,65]]], +[" ",[[3,100]]], +[" ┃ ",[[3,2],[4,1],[5,95],[3,2]]], +[" ┃ Why does the parser fail? ",[[3,2],[4,1],[5,95],[3,2]]], +[" ┃ ",[[3,2],[4,1],[5,95],[3,2]]], +[" ",[[3,100]]], +[" The parser drops the last token. ",[[3,5],[6,32],[3,63]]], +[" ",[[3,100]]], +[" Build · provider/model · 2ms ",[[3,5],[7,5],[2,23],[3,67]]], +[" ",[[3,100]]], +[" ",[[3,100]]], +[" ",[[3,100]]], +[" ",[[3,100]]], +[" ",[[3,100]]], +[" ",[[3,100]]], +[" ",[[3,100]]], +[" ",[[3,100]]], +[" ",[[3,100]]], +[" ",[[3,100]]], +[" ",[[3,100]]], +[" ",[[3,100]]], +[" ",[[3,100]]], +[" ┃ ",[[3,2],[8,1],[0,95],[3,2]]], +[" ┃ hello world ",[[3,2],[8,1],[0,95],[3,2]]], +[" ┃ second line ",[[3,2],[8,1],[0,95],[3,2]]], +[" ┃ ",[[3,2],[8,1],[0,95],[3,2]]], +[" ┃ ",[[3,2],[8,1],[0,95],[3,2]]], +[" ╹▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀ ",[[3,2],[8,1],[9,95],[3,2]]], +[" /tmp/opencode/packages/tui:main shift+tab agents ctrl+p commands ",[[3,2],[2,31],[3,42],[2,6],[3,9],[2,8],[3,2]]], +[" ",[[3,100]]] +]} diff --git a/packages/cli-rs/parity/fixtures/E.2/running-reply-low.app.json b/packages/cli-rs/parity/fixtures/E.2/running-reply-low.app.json new file mode 100644 index 000000000000..5a0c423c3947 --- /dev/null +++ b/packages/cli-rs/parity/fixtures/E.2/running-reply-low.app.json @@ -0,0 +1,65 @@ +{ + "scenario": "E.2/running-reply-low", + "width": 100, + "height": 30, + "directory": "/tmp/opencode/packages/tui", + "config": { + "experimental": {"new-designs":true}, + "animations": false, + "theme": {"name":"opencode"} + }, + "args": { + "sessionID": "ses_run" + }, + "routes": [ + {"path":"/api/session/ses_run","json":{"data":{"id":"ses_run","title":"Run echo","projectID":"proj_test","cost":0,"tokens":{"input":0,"output":0,"reasoning":0,"cache":{"read":0,"write":0}},"time":{"created":2,"updated":2},"location":{"directory":"/tmp/opencode/packages/tui"}}}}, + {"path":"/api/session/ses_run/message","json":{"data":[{"id":"msg_2","type":"assistant","agent":"build","model":{"providerID":"provider","id":"model"},"content":[],"time":{"created":1500}},{"id":"msg_1","type":"user","text":"Run the shell command `echo hello` and then reply done","time":{"created":1000}}],"cursor":{}}}, + {"path":"/api/session/ses_run/inbox","json":{"data":[]}}, + {"path":"/api/session/active","json":{"data":{"ses_run":{"type":"running"}}}} + ], + "steps": [ + {"checkpoint":"waiting","until":"echo hello","fixture":"E.2/running-reply-low/waiting"}, + {"event":{"id":"evt_1","created":2001,"type":"session.reasoning.started","durable":{"aggregateID":"ses_run","seq":1,"version":1},"data":{"sessionID":"ses_run","assistantMessageID":"msg_2","ordinal":0}}}, + {"event":{"id":"evt_2","created":2002,"type":"session.reasoning.delta","data":{"sessionID":"ses_run","assistantMessageID":"msg_2","ordinal":0,"delta":"**Planning the command**\n\nI will run echo."}}}, + {"checkpoint":"thinking","until":"esc interrupt","fixture":"E.2/running-reply-low/thinking"}, + {"event":{"id":"evt_3","created":2003,"type":"session.reasoning.ended","durable":{"aggregateID":"ses_run","seq":3,"version":1},"data":{"sessionID":"ses_run","assistantMessageID":"msg_2","ordinal":0,"text":"**Planning the command**\n\nI will run echo."}}}, + {"event":{"id":"evt_4","created":2004,"type":"session.tool.input.started","durable":{"aggregateID":"ses_run","seq":4,"version":1},"data":{"sessionID":"ses_run","assistantMessageID":"msg_2","id":"call_1","name":"shell"}}}, + {"event":{"id":"evt_5","created":2005,"type":"session.tool.input.ended","durable":{"aggregateID":"ses_run","seq":5,"version":1},"data":{"sessionID":"ses_run","assistantMessageID":"msg_2","id":"call_1","text":"{\"command\":\"echo hello\"}"}}}, + {"event":{"id":"evt_6","created":2006,"type":"session.tool.called","durable":{"aggregateID":"ses_run","seq":6,"version":1},"data":{"sessionID":"ses_run","assistantMessageID":"msg_2","id":"call_1","input":{"command":"echo hello"},"executed":true}}}, + {"checkpoint":"shell","until":"esc interrupt","fixture":"E.2/running-reply-low/shell"} + ], + "requests": { + "writes": [], + "reads": [ + {"method":"GET","path":"/api/agent","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":[]}}, + {"method":"GET","path":"/api/command","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":[]}}, + {"method":"GET","path":"/api/config","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":[]}, + {"method":"GET","path":"/api/experimental/job","query":{"descendants":["true"],"sessionID":["ses_run"],"status":["running"]},"status":200,"json":{"data":[]}}, + {"method":"GET","path":"/api/experimental/migration/v1","query":{},"status":200,"json":{"status":"completed"}}, + {"method":"GET","path":"/api/experimental/session/ses_run/terminal","query":{},"status":200,"json":{"data":[]}}, + {"method":"GET","path":"/api/form","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode"}},"data":[]}}, + {"method":"GET","path":"/api/fs/list","query":{"location[directory]":["<cwd>"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":[]}}, + {"method":"GET","path":"/api/info","query":{},"status":200,"json":{"version":"test","pid":0,"urls":[],"paths":{"tmp":"/tmp"},"capabilities":{"persistentPty":true}}}, + {"method":"GET","path":"/api/integration","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":[]}}, + {"method":"GET","path":"/api/location","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}}}, + {"method":"GET","path":"/api/mcp","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":[]}}, + {"method":"GET","path":"/api/mcp/resource","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":{"resources":[],"templates":[]}}}, + {"method":"GET","path":"/api/model","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":[]}}, + {"method":"GET","path":"/api/plugin","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":[]}}, + {"method":"GET","path":"/api/project","query":{},"status":200,"json":[]}, + {"method":"GET","path":"/api/provider","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":[]}}, + {"method":"GET","path":"/api/reference","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode/packages/tui","canonical":"/tmp/opencode/packages/tui"}},"data":[]}}, + {"method":"GET","path":"/api/session","query":{"limit":["200"],"order":["desc"],"parentID":["ses_run"]},"status":200,"json":{"data":[],"cursor":{}}}, + {"method":"GET","path":"/api/session/active","query":{},"status":200,"json":{"data":{"ses_run":{"type":"running"}}}}, + {"method":"GET","path":"/api/session/ses_run","query":{},"status":200,"json":{"data":{"id":"ses_run","title":"Run echo","projectID":"proj_test","cost":0,"tokens":{"input":0,"output":0,"reasoning":0,"cache":{"read":0,"write":0}},"time":{"created":2,"updated":2},"location":{"directory":"/tmp/opencode/packages/tui"}}}}, + {"method":"GET","path":"/api/session/ses_run/form","query":{},"status":200,"json":{"data":[]}}, + {"method":"GET","path":"/api/session/ses_run/inbox","query":{},"status":200,"json":{"data":[]}}, + {"method":"GET","path":"/api/session/ses_run/message","query":{"limit":["20"],"order":["desc"]},"status":200,"json":{"data":[{"id":"msg_2","type":"assistant","agent":"build","model":{"providerID":"provider","id":"model"},"content":[],"time":{"created":1500}},{"id":"msg_1","type":"user","text":"Run the shell command `echo hello` and then reply done","time":{"created":1000}}],"cursor":{}}}, + {"method":"GET","path":"/api/session/ses_run/permission","query":{},"status":200,"json":{"data":[]}}, + {"method":"GET","path":"/api/shell","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":[]}}, + {"method":"GET","path":"/api/skill","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":[]}}, + {"method":"GET","path":"/api/vcs","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":{"branch":{"current":"main","default":"main"}}}}, + {"method":"POST","path":"/api/rpc/opencode.goal/get","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"body":{"input":{"sessionID":"ses_run"}},"status":200,"json":{"output":null}} + ] + } +} diff --git a/packages/cli-rs/parity/fixtures/E.2/running-reply-low/shell.json b/packages/cli-rs/parity/fixtures/E.2/running-reply-low/shell.json new file mode 100644 index 000000000000..bec0bf116956 --- /dev/null +++ b/packages/cli-rs/parity/fixtures/E.2/running-reply-low/shell.json @@ -0,0 +1,32 @@ +{"width":100,"height":30,"styles":["#ffffffff #202020ff 0","#93a2b7ff #202020ff 1","#ffffffff #202020ff 1","#808080ff #080808ff 0","#ffffffff #080808ff 0","#7699feff #141414ff 0","#ffffffff #141414ff 0","#484848ff #080808ff 0","#202020ff #080808ff 0"],"lines":[ +[" ⠋ Run echo + ",[[0,1],[1,1],[0,1],[2,8],[0,21],[3,3],[4,65]]], +[" ",[[4,100]]], +[" ┃ ",[[4,2],[5,1],[6,95],[4,2]]], +[" ┃ Run the shell command `echo hello` and then reply done ",[[4,2],[5,1],[6,95],[4,2]]], +[" ┃ ",[[4,2],[5,1],[6,95],[4,2]]], +[" ",[[4,100]]], +[" ⋯ 1 thought ",[[4,5],[3,11],[4,84]]], +[" ",[[4,100]]], +[" Press ctrl+b to move running work to the background ",[[4,5],[3,6],[4,6],[3,39],[4,44]]], +[" ",[[4,100]]], +[" ",[[4,100]]], +[" ",[[4,100]]], +[" ",[[4,100]]], +[" ",[[4,100]]], +[" ",[[4,100]]], +[" ",[[4,100]]], +[" ",[[4,100]]], +[" ",[[4,100]]], +[" ",[[4,100]]], +[" ",[[4,100]]], +[" ",[[4,100]]], +[" ",[[4,100]]], +[" ",[[4,100]]], +[" ┃ ",[[4,2],[7,1],[0,95],[4,2]]], +[" ┃ ",[[4,2],[7,1],[0,95],[4,2]]], +[" ┃ ",[[4,2],[7,1],[0,95],[4,2]]], +[" ┃ ",[[4,2],[7,1],[0,95],[4,2]]], +[" ╹▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀ ",[[4,2],[7,1],[8,95],[4,2]]], +[" [⋯] esc interrupt shift+tab agents ctrl+p commands ",[[4,3],[3,3],[4,5],[3,9],[4,55],[3,6],[4,9],[3,8],[4,2]]], +[" ",[[4,100]]] +]} diff --git a/packages/cli-rs/parity/fixtures/E.2/running-reply-low/thinking.json b/packages/cli-rs/parity/fixtures/E.2/running-reply-low/thinking.json new file mode 100644 index 000000000000..faec272c2a52 --- /dev/null +++ b/packages/cli-rs/parity/fixtures/E.2/running-reply-low/thinking.json @@ -0,0 +1,32 @@ +{"width":100,"height":30,"styles":["#ffffffff #202020ff 0","#93a2b7ff #202020ff 1","#ffffffff #202020ff 1","#808080ff #080808ff 0","#ffffffff #080808ff 0","#7699feff #141414ff 0","#ffffffff #141414ff 0","#484848ff #080808ff 0","#202020ff #080808ff 0"],"lines":[ +[" ⠋ Run echo + ",[[0,1],[1,1],[0,1],[2,8],[0,21],[3,3],[4,65]]], +[" ",[[4,100]]], +[" ┃ ",[[4,2],[5,1],[6,95],[4,2]]], +[" ┃ Run the shell command `echo hello` and then reply done ",[[4,2],[5,1],[6,95],[4,2]]], +[" ┃ ",[[4,2],[5,1],[6,95],[4,2]]], +[" ",[[4,100]]], +[" ⋯ Thinking… ",[[4,5],[3,11],[4,84]]], +[" ",[[4,100]]], +[" ",[[4,100]]], +[" ",[[4,100]]], +[" ",[[4,100]]], +[" ",[[4,100]]], +[" ",[[4,100]]], +[" ",[[4,100]]], +[" ",[[4,100]]], +[" ",[[4,100]]], +[" ",[[4,100]]], +[" ",[[4,100]]], +[" ",[[4,100]]], +[" ",[[4,100]]], +[" ",[[4,100]]], +[" ",[[4,100]]], +[" ",[[4,100]]], +[" ┃ ",[[4,2],[7,1],[0,95],[4,2]]], +[" ┃ ",[[4,2],[7,1],[0,95],[4,2]]], +[" ┃ ",[[4,2],[7,1],[0,95],[4,2]]], +[" ┃ ",[[4,2],[7,1],[0,95],[4,2]]], +[" ╹▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀ ",[[4,2],[7,1],[8,95],[4,2]]], +[" [⋯] esc interrupt shift+tab agents ctrl+p commands ",[[4,3],[3,3],[4,5],[3,9],[4,55],[3,6],[4,9],[3,8],[4,2]]], +[" ",[[4,100]]] +]} diff --git a/packages/cli-rs/parity/fixtures/E.2/running-reply-low/waiting.json b/packages/cli-rs/parity/fixtures/E.2/running-reply-low/waiting.json new file mode 100644 index 000000000000..4460b1135aab --- /dev/null +++ b/packages/cli-rs/parity/fixtures/E.2/running-reply-low/waiting.json @@ -0,0 +1,32 @@ +{"width":100,"height":30,"styles":["#ffffffff #202020ff 0","#93a2b7ff #202020ff 1","#ffffffff #202020ff 1","#808080ff #080808ff 0","#ffffffff #080808ff 0","#7699feff #141414ff 0","#ffffffff #141414ff 0","#484848ff #080808ff 0","#202020ff #080808ff 0"],"lines":[ +[" ⠋ Run echo + ",[[0,1],[1,1],[0,1],[2,8],[0,21],[3,3],[4,65]]], +[" ",[[4,100]]], +[" ┃ ",[[4,2],[5,1],[6,95],[4,2]]], +[" ┃ Run the shell command `echo hello` and then reply done ",[[4,2],[5,1],[6,95],[4,2]]], +[" ┃ ",[[4,2],[5,1],[6,95],[4,2]]], +[" ",[[4,100]]], +[" ",[[4,100]]], +[" ",[[4,100]]], +[" ",[[4,100]]], +[" ",[[4,100]]], +[" ",[[4,100]]], +[" ",[[4,100]]], +[" ",[[4,100]]], +[" ",[[4,100]]], +[" ",[[4,100]]], +[" ",[[4,100]]], +[" ",[[4,100]]], +[" ",[[4,100]]], +[" ",[[4,100]]], +[" ",[[4,100]]], +[" ",[[4,100]]], +[" ",[[4,100]]], +[" ",[[4,100]]], +[" ┃ ",[[4,2],[7,1],[0,95],[4,2]]], +[" ┃ ",[[4,2],[7,1],[0,95],[4,2]]], +[" ┃ ",[[4,2],[7,1],[0,95],[4,2]]], +[" ┃ ",[[4,2],[7,1],[0,95],[4,2]]], +[" ╹▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀ ",[[4,2],[7,1],[8,95],[4,2]]], +[" [⋯] esc interrupt shift+tab agents ctrl+p commands ",[[4,3],[3,3],[4,5],[3,9],[4,55],[3,6],[4,9],[3,8],[4,2]]], +[" ",[[4,100]]] +]} diff --git a/packages/cli-rs/parity/fixtures/E.2/running-reply.app.json b/packages/cli-rs/parity/fixtures/E.2/running-reply.app.json new file mode 100644 index 000000000000..0304983d5029 --- /dev/null +++ b/packages/cli-rs/parity/fixtures/E.2/running-reply.app.json @@ -0,0 +1,66 @@ +{ + "scenario": "E.2/running-reply", + "width": 100, + "height": 30, + "directory": "/tmp/opencode/packages/tui", + "config": { + "experimental": {"new-designs":true}, + "session": {"verbosity":"medium"}, + "animations": false, + "theme": {"name":"opencode"} + }, + "args": { + "sessionID": "ses_run" + }, + "routes": [ + {"path":"/api/session/ses_run","json":{"data":{"id":"ses_run","title":"Run echo","projectID":"proj_test","cost":0,"tokens":{"input":0,"output":0,"reasoning":0,"cache":{"read":0,"write":0}},"time":{"created":2,"updated":2},"location":{"directory":"/tmp/opencode/packages/tui"}}}}, + {"path":"/api/session/ses_run/message","json":{"data":[{"id":"msg_2","type":"assistant","agent":"build","model":{"providerID":"provider","id":"model"},"content":[],"time":{"created":1500}},{"id":"msg_1","type":"user","text":"Run the shell command `echo hello` and then reply done","time":{"created":1000}}],"cursor":{}}}, + {"path":"/api/session/ses_run/inbox","json":{"data":[]}}, + {"path":"/api/session/active","json":{"data":{"ses_run":{"type":"running"}}}} + ], + "steps": [ + {"checkpoint":"waiting","until":"echo hello","fixture":"E.2/running-reply/waiting"}, + {"event":{"id":"evt_1","created":2001,"type":"session.reasoning.started","durable":{"aggregateID":"ses_run","seq":1,"version":1},"data":{"sessionID":"ses_run","assistantMessageID":"msg_2","ordinal":0}}}, + {"event":{"id":"evt_2","created":2002,"type":"session.reasoning.delta","data":{"sessionID":"ses_run","assistantMessageID":"msg_2","ordinal":0,"delta":"**Planning the command**\n\nI will run echo."}}}, + {"checkpoint":"thinking","until":"Thinking: Planning the command","fixture":"E.2/running-reply/thinking"}, + {"event":{"id":"evt_3","created":2003,"type":"session.reasoning.ended","durable":{"aggregateID":"ses_run","seq":3,"version":1},"data":{"sessionID":"ses_run","assistantMessageID":"msg_2","ordinal":0,"text":"**Planning the command**\n\nI will run echo."}}}, + {"event":{"id":"evt_4","created":2004,"type":"session.tool.input.started","durable":{"aggregateID":"ses_run","seq":4,"version":1},"data":{"sessionID":"ses_run","assistantMessageID":"msg_2","id":"call_1","name":"shell"}}}, + {"event":{"id":"evt_5","created":2005,"type":"session.tool.input.ended","durable":{"aggregateID":"ses_run","seq":5,"version":1},"data":{"sessionID":"ses_run","assistantMessageID":"msg_2","id":"call_1","text":"{\"command\":\"echo hello\"}"}}}, + {"event":{"id":"evt_6","created":2006,"type":"session.tool.called","durable":{"aggregateID":"ses_run","seq":6,"version":1},"data":{"sessionID":"ses_run","assistantMessageID":"msg_2","id":"call_1","input":{"command":"echo hello"},"executed":true}}}, + {"checkpoint":"shell","until":"⋯ echo hello","fixture":"E.2/running-reply/shell"} + ], + "requests": { + "writes": [], + "reads": [ + {"method":"GET","path":"/api/agent","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":[]}}, + {"method":"GET","path":"/api/command","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":[]}}, + {"method":"GET","path":"/api/config","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":[]}, + {"method":"GET","path":"/api/experimental/job","query":{"descendants":["true"],"sessionID":["ses_run"],"status":["running"]},"status":200,"json":{"data":[]}}, + {"method":"GET","path":"/api/experimental/migration/v1","query":{},"status":200,"json":{"status":"completed"}}, + {"method":"GET","path":"/api/experimental/session/ses_run/terminal","query":{},"status":200,"json":{"data":[]}}, + {"method":"GET","path":"/api/form","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode"}},"data":[]}}, + {"method":"GET","path":"/api/fs/list","query":{"location[directory]":["<cwd>"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":[]}}, + {"method":"GET","path":"/api/info","query":{},"status":200,"json":{"version":"test","pid":0,"urls":[],"paths":{"tmp":"/tmp"},"capabilities":{"persistentPty":true}}}, + {"method":"GET","path":"/api/integration","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":[]}}, + {"method":"GET","path":"/api/location","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}}}, + {"method":"GET","path":"/api/mcp","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":[]}}, + {"method":"GET","path":"/api/mcp/resource","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":{"resources":[],"templates":[]}}}, + {"method":"GET","path":"/api/model","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":[]}}, + {"method":"GET","path":"/api/plugin","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":[]}}, + {"method":"GET","path":"/api/project","query":{},"status":200,"json":[]}, + {"method":"GET","path":"/api/provider","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":[]}}, + {"method":"GET","path":"/api/reference","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode/packages/tui","canonical":"/tmp/opencode/packages/tui"}},"data":[]}}, + {"method":"GET","path":"/api/session","query":{"limit":["200"],"order":["desc"],"parentID":["ses_run"]},"status":200,"json":{"data":[],"cursor":{}}}, + {"method":"GET","path":"/api/session/active","query":{},"status":200,"json":{"data":{"ses_run":{"type":"running"}}}}, + {"method":"GET","path":"/api/session/ses_run","query":{},"status":200,"json":{"data":{"id":"ses_run","title":"Run echo","projectID":"proj_test","cost":0,"tokens":{"input":0,"output":0,"reasoning":0,"cache":{"read":0,"write":0}},"time":{"created":2,"updated":2},"location":{"directory":"/tmp/opencode/packages/tui"}}}}, + {"method":"GET","path":"/api/session/ses_run/form","query":{},"status":200,"json":{"data":[]}}, + {"method":"GET","path":"/api/session/ses_run/inbox","query":{},"status":200,"json":{"data":[]}}, + {"method":"GET","path":"/api/session/ses_run/message","query":{"limit":["20"],"order":["desc"]},"status":200,"json":{"data":[{"id":"msg_2","type":"assistant","agent":"build","model":{"providerID":"provider","id":"model"},"content":[],"time":{"created":1500}},{"id":"msg_1","type":"user","text":"Run the shell command `echo hello` and then reply done","time":{"created":1000}}],"cursor":{}}}, + {"method":"GET","path":"/api/session/ses_run/permission","query":{},"status":200,"json":{"data":[]}}, + {"method":"GET","path":"/api/shell","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":[]}}, + {"method":"GET","path":"/api/skill","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":[]}}, + {"method":"GET","path":"/api/vcs","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":{"branch":{"current":"main","default":"main"}}}}, + {"method":"POST","path":"/api/rpc/opencode.goal/get","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"body":{"input":{"sessionID":"ses_run"}},"status":200,"json":{"output":null}} + ] + } +} diff --git a/packages/cli-rs/parity/fixtures/E.2/running-reply/shell.json b/packages/cli-rs/parity/fixtures/E.2/running-reply/shell.json new file mode 100644 index 000000000000..93e2894d3537 --- /dev/null +++ b/packages/cli-rs/parity/fixtures/E.2/running-reply/shell.json @@ -0,0 +1,32 @@ +{"width":100,"height":30,"styles":["#ffffffff #202020ff 0","#93a2b7ff #202020ff 1","#ffffffff #202020ff 1","#808080ff #080808ff 0","#ffffffff #080808ff 0","#7699feff #141414ff 0","#ffffffff #141414ff 0","#96672bff #080808ff 0","#080808ff #141414ff 0","#484848ff #080808ff 0","#202020ff #080808ff 0"],"lines":[ +[" ⠋ Run echo + ",[[0,1],[1,1],[0,1],[2,8],[0,21],[3,3],[4,65]]], +[" ",[[4,100]]], +[" ┃ ",[[4,2],[5,1],[6,95],[4,2]]], +[" ┃ Run the shell command `echo hello` and then reply done ",[[4,2],[5,1],[6,95],[4,2]]], +[" ┃ ",[[4,2],[5,1],[6,95],[4,2]]], +[" ",[[4,100]]], +[" + Thought: Planning the command · 2ms ",[[4,5],[7,1],[4,1],[7,35],[4,58]]], +[" ",[[4,100]]], +[" ┃ ",[[4,2],[8,1],[6,95],[4,2]]], +[" ┃ ⋯ echo hello ",[[4,2],[8,1],[6,95],[4,2]]], +[" ┃ ",[[4,2],[8,1],[6,95],[4,2]]], +[" ",[[4,100]]], +[" Press ctrl+b to move running work to the background ",[[4,5],[3,6],[4,6],[3,39],[4,44]]], +[" ",[[4,100]]], +[" ",[[4,100]]], +[" ",[[4,100]]], +[" ",[[4,100]]], +[" ",[[4,100]]], +[" ",[[4,100]]], +[" ",[[4,100]]], +[" ",[[4,100]]], +[" ",[[4,100]]], +[" ",[[4,100]]], +[" ┃ ",[[4,2],[9,1],[0,95],[4,2]]], +[" ┃ ",[[4,2],[9,1],[0,95],[4,2]]], +[" ┃ ",[[4,2],[9,1],[0,95],[4,2]]], +[" ┃ ",[[4,2],[9,1],[0,95],[4,2]]], +[" ╹▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀ ",[[4,2],[9,1],[10,95],[4,2]]], +[" [⋯] esc interrupt shift+tab agents ctrl+p commands ",[[4,3],[3,3],[4,5],[3,9],[4,55],[3,6],[4,9],[3,8],[4,2]]], +[" ",[[4,100]]] +]} diff --git a/packages/cli-rs/parity/fixtures/E.2/running-reply/thinking.json b/packages/cli-rs/parity/fixtures/E.2/running-reply/thinking.json new file mode 100644 index 000000000000..2a7690859157 --- /dev/null +++ b/packages/cli-rs/parity/fixtures/E.2/running-reply/thinking.json @@ -0,0 +1,32 @@ +{"width":100,"height":30,"styles":["#ffffffff #202020ff 0","#93a2b7ff #202020ff 1","#ffffffff #202020ff 1","#808080ff #080808ff 0","#ffffffff #080808ff 0","#7699feff #141414ff 0","#ffffffff #141414ff 0","#484848ff #080808ff 0","#202020ff #080808ff 0"],"lines":[ +[" ⠋ Run echo + ",[[0,1],[1,1],[0,1],[2,8],[0,21],[3,3],[4,65]]], +[" ",[[4,100]]], +[" ┃ ",[[4,2],[5,1],[6,95],[4,2]]], +[" ┃ Run the shell command `echo hello` and then reply done ",[[4,2],[5,1],[6,95],[4,2]]], +[" ┃ ",[[4,2],[5,1],[6,95],[4,2]]], +[" ",[[4,100]]], +[" ⋯ Thinking: Planning the command ",[[4,100]]], +[" ",[[4,100]]], +[" ",[[4,100]]], +[" ",[[4,100]]], +[" ",[[4,100]]], +[" ",[[4,100]]], +[" ",[[4,100]]], +[" ",[[4,100]]], +[" ",[[4,100]]], +[" ",[[4,100]]], +[" ",[[4,100]]], +[" ",[[4,100]]], +[" ",[[4,100]]], +[" ",[[4,100]]], +[" ",[[4,100]]], +[" ",[[4,100]]], +[" ",[[4,100]]], +[" ┃ ",[[4,2],[7,1],[0,95],[4,2]]], +[" ┃ ",[[4,2],[7,1],[0,95],[4,2]]], +[" ┃ ",[[4,2],[7,1],[0,95],[4,2]]], +[" ┃ ",[[4,2],[7,1],[0,95],[4,2]]], +[" ╹▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀ ",[[4,2],[7,1],[8,95],[4,2]]], +[" [⋯] esc interrupt shift+tab agents ctrl+p commands ",[[4,3],[3,3],[4,5],[3,9],[4,55],[3,6],[4,9],[3,8],[4,2]]], +[" ",[[4,100]]] +]} diff --git a/packages/cli-rs/parity/fixtures/E.2/running-reply/waiting.json b/packages/cli-rs/parity/fixtures/E.2/running-reply/waiting.json new file mode 100644 index 000000000000..4460b1135aab --- /dev/null +++ b/packages/cli-rs/parity/fixtures/E.2/running-reply/waiting.json @@ -0,0 +1,32 @@ +{"width":100,"height":30,"styles":["#ffffffff #202020ff 0","#93a2b7ff #202020ff 1","#ffffffff #202020ff 1","#808080ff #080808ff 0","#ffffffff #080808ff 0","#7699feff #141414ff 0","#ffffffff #141414ff 0","#484848ff #080808ff 0","#202020ff #080808ff 0"],"lines":[ +[" ⠋ Run echo + ",[[0,1],[1,1],[0,1],[2,8],[0,21],[3,3],[4,65]]], +[" ",[[4,100]]], +[" ┃ ",[[4,2],[5,1],[6,95],[4,2]]], +[" ┃ Run the shell command `echo hello` and then reply done ",[[4,2],[5,1],[6,95],[4,2]]], +[" ┃ ",[[4,2],[5,1],[6,95],[4,2]]], +[" ",[[4,100]]], +[" ",[[4,100]]], +[" ",[[4,100]]], +[" ",[[4,100]]], +[" ",[[4,100]]], +[" ",[[4,100]]], +[" ",[[4,100]]], +[" ",[[4,100]]], +[" ",[[4,100]]], +[" ",[[4,100]]], +[" ",[[4,100]]], +[" ",[[4,100]]], +[" ",[[4,100]]], +[" ",[[4,100]]], +[" ",[[4,100]]], +[" ",[[4,100]]], +[" ",[[4,100]]], +[" ",[[4,100]]], +[" ┃ ",[[4,2],[7,1],[0,95],[4,2]]], +[" ┃ ",[[4,2],[7,1],[0,95],[4,2]]], +[" ┃ ",[[4,2],[7,1],[0,95],[4,2]]], +[" ┃ ",[[4,2],[7,1],[0,95],[4,2]]], +[" ╹▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀ ",[[4,2],[7,1],[8,95],[4,2]]], +[" [⋯] esc interrupt shift+tab agents ctrl+p commands ",[[4,3],[3,3],[4,5],[3,9],[4,55],[3,6],[4,9],[3,8],[4,2]]], +[" ",[[4,100]]] +]} diff --git a/packages/cli-rs/parity/fixtures/E.20/reload.app.json b/packages/cli-rs/parity/fixtures/E.20/reload.app.json new file mode 100644 index 000000000000..1c9fe3a5b721 --- /dev/null +++ b/packages/cli-rs/parity/fixtures/E.20/reload.app.json @@ -0,0 +1,48 @@ +{ + "scenario": "E.20/reload", + "width": 100, + "height": 30, + "directory": "/tmp/opencode/packages/tui", + "config": { + "experimental": {"new-designs":true}, + "keybinds": {"location.reload":"f5"}, + "animations": false, + "theme": {"name":"opencode"} + }, + "args": {}, + "routes": [ + {"method":"POST","path":"/api/location/reload"} + ], + "steps": [ + {"checkpoint":"home","until":"Ask anything","masks":[{"x":16,"y":16,"width":84,"height":1,"reason":"the placeholder example: random in TS and Rust"}],"fixture":"E.20/reload/home"}, + {"keys":["f5"]}, + {"checkpoint":"reloaded","until":"Configuration reloaded","masks":[{"x":16,"y":16,"width":84,"height":1,"reason":"the placeholder example: random in TS and Rust"}],"fixture":"E.20/reload/reloaded"} + ], + "requests": { + "writes": [ + {"method":"POST","path":"/api/location/reload","query":{},"status":204} + ], + "reads": [ + {"method":"GET","path":"/api/agent","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":[]}}, + {"method":"GET","path":"/api/command","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":[]}}, + {"method":"GET","path":"/api/config","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":[]}, + {"method":"GET","path":"/api/experimental/migration/v1","query":{},"status":200,"json":{"status":"completed"}}, + {"method":"GET","path":"/api/form","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode"}},"data":[]}}, + {"method":"GET","path":"/api/fs/list","query":{"location[directory]":["<cwd>"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":[]}}, + {"method":"GET","path":"/api/info","query":{},"status":200,"json":{"version":"test","pid":0,"urls":[],"paths":{"tmp":"/tmp"},"capabilities":{"persistentPty":true}}}, + {"method":"GET","path":"/api/integration","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":[]}}, + {"method":"GET","path":"/api/location","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}}}, + {"method":"GET","path":"/api/mcp","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":[]}}, + {"method":"GET","path":"/api/mcp/resource","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":{"resources":[],"templates":[]}}}, + {"method":"GET","path":"/api/model","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":[]}}, + {"method":"GET","path":"/api/plugin","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":[]}}, + {"method":"GET","path":"/api/project","query":{},"status":200,"json":[]}, + {"method":"GET","path":"/api/provider","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":[]}}, + {"method":"GET","path":"/api/reference","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode/packages/tui","canonical":"/tmp/opencode/packages/tui"}},"data":[]}}, + {"method":"GET","path":"/api/session/active","query":{},"status":200,"json":{"data":{}}}, + {"method":"GET","path":"/api/shell","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":[]}}, + {"method":"GET","path":"/api/skill","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":[]}}, + {"method":"GET","path":"/api/vcs","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":{"branch":{"current":"main","default":"main"}}}} + ] + } +} diff --git a/packages/cli-rs/parity/fixtures/E.20/reload/home.json b/packages/cli-rs/parity/fixtures/E.20/reload/home.json new file mode 100644 index 000000000000..fde2210b2f02 --- /dev/null +++ b/packages/cli-rs/parity/fixtures/E.20/reload/home.json @@ -0,0 +1,32 @@ +{"width":100,"height":30,"styles":["#ffffffff #080808ff 0","#808080ff #080808ff 0","#ffffffff #080808ff 1","#808080ff #262626ff 0","#ffffffff #464646ff 1","#262626ff #080808ff 0","#484848ff #080808ff 0","#ffffffff #202020ff 0","#00000000 #00000000 0","#202020ff #080808ff 0"],"lines":[ +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ▄ ",[[0,31],[1,19],[0,1],[2,19],[0,30]]], +[" █▀▀█ █▀▀█ █▀▀█ █▀▀▄ █▀▀▀ █▀▀█ █▀▀█ █▀▀█ ",[[0,31],[1,19],[0,1],[2,19],[0,30]]], +[" █ █ █ █ █▀▀▀ █ █ █ █ █ █ █ █▀▀▀ ",[[0,31],[1,1],[3,2],[1,3],[3,2],[1,3],[3,3],[1,2],[3,2],[1,1],[0,1],[2,1],[4,3],[2,2],[4,2],[2,3],[4,2],[2,3],[4,3],[0,30]]], +[" ▀▀▀▀ █▀▀▀ ▀▀▀▀ ▀▀▀▀ ▀▀▀▀ ▀▀▀▀ ▀▀▀▀ ▀▀▀▀ ",[[0,31],[1,16],[5,2],[1,1],[0,1],[2,19],[0,30]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ┃ ",[[0,13],[6,1],[7,74],[0,12]]], +[" ┃ ",[[0,13],[6,1],[7,2],[8,84]]], +[" ┃ ",[[0,13],[6,1],[7,74],[0,12]]], +[" ┃ ",[[0,13],[6,1],[7,74],[0,12]]], +[" ╹▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀ ",[[0,13],[6,1],[9,74],[0,12]]], +[" /tmp/opencode/packages/tui:main shift+tab agents ctrl+p commands ",[[0,13],[1,31],[0,21],[1,6],[0,9],[1,8],[0,12]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" test ",[[0,94],[1,4],[0,2]]], +[" ",[[0,100]]] +]} diff --git a/packages/cli-rs/parity/fixtures/E.20/reload/reloaded.json b/packages/cli-rs/parity/fixtures/E.20/reload/reloaded.json new file mode 100644 index 000000000000..17d22474bc61 --- /dev/null +++ b/packages/cli-rs/parity/fixtures/E.20/reload/reloaded.json @@ -0,0 +1,32 @@ +{"width":100,"height":30,"styles":["#ffffffff #080808ff 0","#9ee77aff #080808ff 0","#ffffffff #202020ff 0","#808080ff #202020ff 0","#808080ff #080808ff 0","#ffffffff #080808ff 1","#808080ff #262626ff 0","#ffffffff #464646ff 1","#262626ff #080808ff 0","#484848ff #080808ff 0","#00000000 #00000000 0","#202020ff #080808ff 0"],"lines":[ +[" ",[[0,100]]], +[" ┃ ┃ ",[[0,67],[1,1],[2,29],[1,1],[0,2]]], +[" ┃ Configuration reloaded x ┃ ",[[0,67],[1,1],[2,26],[3,1],[2,2],[1,1],[0,2]]], +[" ┃ ┃ ",[[0,67],[1,1],[2,29],[1,1],[0,2]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ▄ ",[[0,31],[4,19],[0,1],[5,19],[0,30]]], +[" █▀▀█ █▀▀█ █▀▀█ █▀▀▄ █▀▀▀ █▀▀█ █▀▀█ █▀▀█ ",[[0,31],[4,19],[0,1],[5,19],[0,30]]], +[" █ █ █ █ █▀▀▀ █ █ █ █ █ █ █ █▀▀▀ ",[[0,31],[4,1],[6,2],[4,3],[6,2],[4,3],[6,3],[4,2],[6,2],[4,1],[0,1],[5,1],[7,3],[5,2],[7,2],[5,3],[7,2],[5,3],[7,3],[0,30]]], +[" ▀▀▀▀ █▀▀▀ ▀▀▀▀ ▀▀▀▀ ▀▀▀▀ ▀▀▀▀ ▀▀▀▀ ▀▀▀▀ ",[[0,31],[4,16],[8,2],[4,1],[0,1],[5,19],[0,30]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ┃ ",[[0,13],[9,1],[2,74],[0,12]]], +[" ┃ ",[[0,13],[9,1],[2,2],[10,84]]], +[" ┃ ",[[0,13],[9,1],[2,74],[0,12]]], +[" ┃ ",[[0,13],[9,1],[2,74],[0,12]]], +[" ╹▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀ ",[[0,13],[9,1],[11,74],[0,12]]], +[" /tmp/opencode/packages/tui:main shift+tab agents ctrl+p commands ",[[0,13],[4,31],[0,21],[4,6],[0,9],[4,8],[0,12]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" test ",[[0,94],[4,4],[0,2]]], +[" ",[[0,100]]] +]} diff --git a/packages/cli-rs/parity/fixtures/E.20/toggles.app.json b/packages/cli-rs/parity/fixtures/E.20/toggles.app.json new file mode 100644 index 000000000000..2192e089a437 --- /dev/null +++ b/packages/cli-rs/parity/fixtures/E.20/toggles.app.json @@ -0,0 +1,58 @@ +{ + "scenario": "E.20/toggles", + "width": 100, + "height": 30, + "directory": "/tmp/opencode/packages/tui", + "config": { + "experimental": {"new-designs":true}, + "keybinds": {"app.toggle.animations":"f5","app.toggle.diffwrap":"f6","app.toggle.file_context":"f7","app.toggle.paste_summary":"f8","terminal.title.toggle":"f9","opencode.settings":"f10"}, + "animations": false, + "theme": {"name":"opencode"} + }, + "args": {}, + "routes": [], + "steps": [ + {"checkpoint":"home","until":"Ask anything","masks":[{"x":16,"y":16,"width":84,"height":1,"reason":"the placeholder example: random in TS and Rust"}],"fixture":"E.20/toggles/home"}, + {"keys":["f5","f6","f7","f8","f9","f10"]}, + {"checkpoint":"settings","until":"Search settings","masks":[{"x":16,"y":16,"width":84,"height":1,"reason":"the placeholder example: random in TS and Rust"}],"fixture":"E.20/toggles/settings"}, + {"type":"animations"}, + {"checkpoint":"animations","until":"Animations","masks":[{"x":16,"y":16,"width":84,"height":1,"reason":"the placeholder example: random in TS and Rust"}],"fixture":"E.20/toggles/animations"}, + {"keys":["backspace","backspace","backspace","backspace","backspace","backspace","backspace","backspace","backspace","backspace"]}, + {"type":"diff wrap"}, + {"checkpoint":"wrapping","until":"Wrapping","masks":[{"x":16,"y":16,"width":84,"height":1,"reason":"the placeholder example: random in TS and Rust"}],"fixture":"E.20/toggles/wrapping"}, + {"keys":["backspace","backspace","backspace","backspace","backspace","backspace","backspace","backspace","backspace"]}, + {"type":"editor context"}, + {"checkpoint":"editor","until":"Editor context","masks":[{"x":16,"y":16,"width":84,"height":1,"reason":"the placeholder example: random in TS and Rust"}],"fixture":"E.20/toggles/editor"}, + {"keys":["backspace","backspace","backspace","backspace","backspace","backspace","backspace","backspace","backspace","backspace","backspace","backspace","backspace","backspace"]}, + {"type":"large pastes"}, + {"checkpoint":"pastes","until":"Large pastes","masks":[{"x":16,"y":16,"width":84,"height":1,"reason":"the placeholder example: random in TS and Rust"}],"fixture":"E.20/toggles/pastes"}, + {"keys":["backspace","backspace","backspace","backspace","backspace","backspace","backspace","backspace","backspace","backspace","backspace","backspace"]}, + {"type":"window title"}, + {"checkpoint":"title","until":"Window title","masks":[{"x":16,"y":16,"width":84,"height":1,"reason":"the placeholder example: random in TS and Rust"}],"fixture":"E.20/toggles/title"} + ], + "requests": { + "writes": [], + "reads": [ + {"method":"GET","path":"/api/agent","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":[]}}, + {"method":"GET","path":"/api/command","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":[]}}, + {"method":"GET","path":"/api/config","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":[]}, + {"method":"GET","path":"/api/experimental/migration/v1","query":{},"status":200,"json":{"status":"completed"}}, + {"method":"GET","path":"/api/form","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode"}},"data":[]}}, + {"method":"GET","path":"/api/fs/list","query":{"location[directory]":["<cwd>"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":[]}}, + {"method":"GET","path":"/api/info","query":{},"status":200,"json":{"version":"test","pid":0,"urls":[],"paths":{"tmp":"/tmp"},"capabilities":{"persistentPty":true}}}, + {"method":"GET","path":"/api/integration","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":[]}}, + {"method":"GET","path":"/api/location","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}}}, + {"method":"GET","path":"/api/mcp","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":[]}}, + {"method":"GET","path":"/api/mcp/resource","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":{"resources":[],"templates":[]}}}, + {"method":"GET","path":"/api/model","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":[]}}, + {"method":"GET","path":"/api/plugin","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":[]}}, + {"method":"GET","path":"/api/project","query":{},"status":200,"json":[]}, + {"method":"GET","path":"/api/provider","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":[]}}, + {"method":"GET","path":"/api/reference","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode/packages/tui","canonical":"/tmp/opencode/packages/tui"}},"data":[]}}, + {"method":"GET","path":"/api/session/active","query":{},"status":200,"json":{"data":{}}}, + {"method":"GET","path":"/api/shell","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":[]}}, + {"method":"GET","path":"/api/skill","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":[]}}, + {"method":"GET","path":"/api/vcs","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":{"branch":{"current":"main","default":"main"}}}} + ] + } +} diff --git a/packages/cli-rs/parity/fixtures/E.20/toggles/animations.json b/packages/cli-rs/parity/fixtures/E.20/toggles/animations.json new file mode 100644 index 000000000000..461ee1e9d2f2 --- /dev/null +++ b/packages/cli-rs/parity/fixtures/E.20/toggles/animations.json @@ -0,0 +1,32 @@ +{"width":100,"height":30,"styles":["#ffffffff #030303ff 0","#ffffffff #141414ff 0","#808080ff #141414ff 0","#808080ff #141414ff 1","#7699feff #141414ff 0","#ffffffff #23344bff 0","#b0b0b0ff #141414ff 0","#1e1e1eff #030303ff 0","#ffffffff #0d0d0dff 0","#00000000 #00000000 0","#0d0d0dff #030303ff 0","#353535ff #030303ff 0","#696969ff #030303ff 0"],"lines":[ +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,20],[1,60],[0,20]]], +[" animations esc ",[[0,20],[1,53],[2,3],[1,4],[0,20]]], +[" ",[[0,20],[1,60],[0,20]]], +[" Appearance ",[[0,20],[1,4],[3,10],[1,46],[0,20]]], +[" ┃ Animations ‹ on › ",[[0,20],[4,1],[5,59],[0,20]]], +[" ",[[0,20],[1,60],[0,20]]], +[" Whether spinners and transitions animate ",[[0,20],[1,4],[6,40],[1,16],[0,20]]], +[" ┃ ",[[0,13],[7,1],[8,6],[1,60],[8,8],[0,12]]], +[" ┃ ",[[0,13],[7,1],[8,2],[9,84]]], +[" ┃ ",[[0,13],[7,1],[8,74],[0,12]]], +[" ┃ ",[[0,13],[7,1],[8,74],[0,12]]], +[" ╹▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀ ",[[0,13],[7,1],[10,74],[0,12]]], +[" /tmp/opencode/packages/tui:main shift+tab agents ctrl+p commands ",[[0,13],[11,31],[0,11],[12,9],[0,1],[11,6],[0,2],[12,6],[0,1],[11,8],[0,12]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" test ",[[0,94],[11,4],[0,2]]], +[" ",[[0,100]]] +]} diff --git a/packages/cli-rs/parity/fixtures/E.20/toggles/editor.json b/packages/cli-rs/parity/fixtures/E.20/toggles/editor.json new file mode 100644 index 000000000000..2d85e3ad7df8 --- /dev/null +++ b/packages/cli-rs/parity/fixtures/E.20/toggles/editor.json @@ -0,0 +1,32 @@ +{"width":100,"height":30,"styles":["#ffffffff #030303ff 0","#ffffffff #141414ff 0","#808080ff #141414ff 0","#808080ff #141414ff 1","#7699feff #141414ff 0","#ffffffff #23344bff 0","#b0b0b0ff #141414ff 0","#1e1e1eff #030303ff 0","#ffffffff #0d0d0dff 0","#00000000 #00000000 0","#0d0d0dff #030303ff 0","#353535ff #030303ff 0","#696969ff #030303ff 0"],"lines":[ +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,20],[1,60],[0,20]]], +[" editor context esc ",[[0,20],[1,53],[2,3],[1,4],[0,20]]], +[" ",[[0,20],[1,60],[0,20]]], +[" Input ",[[0,20],[1,4],[3,5],[1,51],[0,20]]], +[" ┃ Editor context ‹ off › ",[[0,20],[4,1],[5,59],[0,20]]], +[" ",[[0,20],[1,60],[0,20]]], +[" Whether your editor's selection is added to prompts ",[[0,20],[1,4],[6,51],[1,5],[0,20]]], +[" ┃ ",[[0,13],[7,1],[8,6],[1,60],[8,8],[0,12]]], +[" ┃ ",[[0,13],[7,1],[8,2],[9,84]]], +[" ┃ ",[[0,13],[7,1],[8,74],[0,12]]], +[" ┃ ",[[0,13],[7,1],[8,74],[0,12]]], +[" ╹▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀ ",[[0,13],[7,1],[10,74],[0,12]]], +[" /tmp/opencode/packages/tui:main shift+tab agents ctrl+p commands ",[[0,13],[11,31],[0,11],[12,9],[0,1],[11,6],[0,2],[12,6],[0,1],[11,8],[0,12]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" test ",[[0,94],[11,4],[0,2]]], +[" ",[[0,100]]] +]} diff --git a/packages/cli-rs/parity/fixtures/E.20/toggles/home.json b/packages/cli-rs/parity/fixtures/E.20/toggles/home.json new file mode 100644 index 000000000000..fde2210b2f02 --- /dev/null +++ b/packages/cli-rs/parity/fixtures/E.20/toggles/home.json @@ -0,0 +1,32 @@ +{"width":100,"height":30,"styles":["#ffffffff #080808ff 0","#808080ff #080808ff 0","#ffffffff #080808ff 1","#808080ff #262626ff 0","#ffffffff #464646ff 1","#262626ff #080808ff 0","#484848ff #080808ff 0","#ffffffff #202020ff 0","#00000000 #00000000 0","#202020ff #080808ff 0"],"lines":[ +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ▄ ",[[0,31],[1,19],[0,1],[2,19],[0,30]]], +[" █▀▀█ █▀▀█ █▀▀█ █▀▀▄ █▀▀▀ █▀▀█ █▀▀█ █▀▀█ ",[[0,31],[1,19],[0,1],[2,19],[0,30]]], +[" █ █ █ █ █▀▀▀ █ █ █ █ █ █ █ █▀▀▀ ",[[0,31],[1,1],[3,2],[1,3],[3,2],[1,3],[3,3],[1,2],[3,2],[1,1],[0,1],[2,1],[4,3],[2,2],[4,2],[2,3],[4,2],[2,3],[4,3],[0,30]]], +[" ▀▀▀▀ █▀▀▀ ▀▀▀▀ ▀▀▀▀ ▀▀▀▀ ▀▀▀▀ ▀▀▀▀ ▀▀▀▀ ",[[0,31],[1,16],[5,2],[1,1],[0,1],[2,19],[0,30]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ┃ ",[[0,13],[6,1],[7,74],[0,12]]], +[" ┃ ",[[0,13],[6,1],[7,2],[8,84]]], +[" ┃ ",[[0,13],[6,1],[7,74],[0,12]]], +[" ┃ ",[[0,13],[6,1],[7,74],[0,12]]], +[" ╹▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀ ",[[0,13],[6,1],[9,74],[0,12]]], +[" /tmp/opencode/packages/tui:main shift+tab agents ctrl+p commands ",[[0,13],[1,31],[0,21],[1,6],[0,9],[1,8],[0,12]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" test ",[[0,94],[1,4],[0,2]]], +[" ",[[0,100]]] +]} diff --git a/packages/cli-rs/parity/fixtures/E.20/toggles/pastes.json b/packages/cli-rs/parity/fixtures/E.20/toggles/pastes.json new file mode 100644 index 000000000000..d1ed49547f10 --- /dev/null +++ b/packages/cli-rs/parity/fixtures/E.20/toggles/pastes.json @@ -0,0 +1,32 @@ +{"width":100,"height":30,"styles":["#ffffffff #030303ff 0","#ffffffff #141414ff 0","#808080ff #141414ff 0","#808080ff #141414ff 1","#7699feff #141414ff 0","#ffffffff #23344bff 0","#b0b0b0ff #141414ff 0","#1e1e1eff #030303ff 0","#ffffffff #0d0d0dff 0","#00000000 #00000000 0","#0d0d0dff #030303ff 0","#353535ff #030303ff 0","#696969ff #030303ff 0"],"lines":[ +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,20],[1,60],[0,20]]], +[" large pastes esc ",[[0,20],[1,53],[2,3],[1,4],[0,20]]], +[" ",[[0,20],[1,60],[0,20]]], +[" Input ",[[0,20],[1,4],[3,5],[1,51],[0,20]]], +[" ┃ Large pastes ‹ full › ",[[0,20],[4,1],[5,59],[0,20]]], +[" ",[[0,20],[1,60],[0,20]]], +[" Whether large pastes are summarized or shown in full ",[[0,20],[1,4],[6,52],[1,4],[0,20]]], +[" ┃ ",[[0,13],[7,1],[8,6],[1,60],[8,8],[0,12]]], +[" ┃ ",[[0,13],[7,1],[8,2],[9,84]]], +[" ┃ ",[[0,13],[7,1],[8,74],[0,12]]], +[" ┃ ",[[0,13],[7,1],[8,74],[0,12]]], +[" ╹▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀ ",[[0,13],[7,1],[10,74],[0,12]]], +[" /tmp/opencode/packages/tui:main shift+tab agents ctrl+p commands ",[[0,13],[11,31],[0,11],[12,9],[0,1],[11,6],[0,2],[12,6],[0,1],[11,8],[0,12]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" test ",[[0,94],[11,4],[0,2]]], +[" ",[[0,100]]] +]} diff --git a/packages/cli-rs/parity/fixtures/E.20/toggles/settings.json b/packages/cli-rs/parity/fixtures/E.20/toggles/settings.json new file mode 100644 index 000000000000..68196a00bb23 --- /dev/null +++ b/packages/cli-rs/parity/fixtures/E.20/toggles/settings.json @@ -0,0 +1,32 @@ +{"width":100,"height":30,"styles":["#ffffffff #030303ff 0","#ffffffff #141414ff 0","#808080ff #141414ff 0","#808080ff #141414ff 1","#7699feff #141414ff 0","#ffffffff #23344bff 0","#1e1e1eff #030303ff 0","#ffffffff #0d0d0dff 0","#00000000 #00000000 0","#0d0d0dff #030303ff 0","#353535ff #030303ff 0","#b0b0b0ff #141414ff 0"],"lines":[ +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,20],[1,60],[0,20]]], +[" Search settings esc ",[[0,20],[1,4],[2,15],[1,34],[2,3],[1,4],[0,20]]], +[" ",[[0,20],[1,60],[0,20]]], +[" Appearance ",[[0,20],[1,4],[3,10],[1,46],[0,20]]], +[" ┃ Theme opencode ↵ ",[[0,20],[4,1],[5,59],[0,20]]], +[" Color mode system ",[[0,20],[4,1],[1,47],[2,10],[1,2],[0,20]]], +[" Animations on ",[[0,20],[4,1],[1,51],[2,6],[1,2],[0,20]]], +[" ┃ ",[[0,13],[6,1],[7,6],[1,60],[7,8],[0,12]]], +[" ┃ ",[[0,13],[6,1],[7,2],[8,84]]], +[" ┃ Sidebar auto ",[[0,13],[6,1],[7,6],[4,1],[1,49],[2,8],[1,2],[7,8],[0,12]]], +[" ┃ Scrollbar off ",[[0,13],[6,1],[7,6],[4,1],[1,50],[2,7],[1,2],[7,8],[0,12]]], +[" ╹▀▀▀▀▀▀ Scroll on send jump to latest ▀▀▀▀▀▀▀▀ ",[[0,13],[6,1],[9,6],[4,1],[1,39],[2,18],[1,2],[9,8],[0,12]]], +[" /tmp/op commands ",[[0,13],[10,7],[1,60],[10,8],[0,12]]], +[" Color theme used across the interface ",[[0,20],[1,4],[11,37],[1,19],[0,20]]], +[" ",[[0,20],[1,60],[0,20]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" test ",[[0,94],[10,4],[0,2]]], +[" ",[[0,100]]] +]} diff --git a/packages/cli-rs/parity/fixtures/E.20/toggles/title.json b/packages/cli-rs/parity/fixtures/E.20/toggles/title.json new file mode 100644 index 000000000000..039c7c87b54a --- /dev/null +++ b/packages/cli-rs/parity/fixtures/E.20/toggles/title.json @@ -0,0 +1,32 @@ +{"width":100,"height":30,"styles":["#ffffffff #030303ff 0","#ffffffff #141414ff 0","#808080ff #141414ff 0","#808080ff #141414ff 1","#7699feff #141414ff 0","#ffffffff #23344bff 0","#b0b0b0ff #141414ff 0","#1e1e1eff #030303ff 0","#ffffffff #0d0d0dff 0","#00000000 #00000000 0","#0d0d0dff #030303ff 0","#353535ff #030303ff 0","#696969ff #030303ff 0"],"lines":[ +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,20],[1,60],[0,20]]], +[" window title esc ",[[0,20],[1,53],[2,3],[1,4],[0,20]]], +[" ",[[0,20],[1,60],[0,20]]], +[" Terminal ",[[0,20],[1,4],[3,8],[1,48],[0,20]]], +[" ┃ Window title ‹ off › ",[[0,20],[4,1],[5,59],[0,20]]], +[" ",[[0,20],[1,60],[0,20]]], +[" Whether the window title shows the current session ",[[0,20],[1,4],[6,50],[1,6],[0,20]]], +[" ┃ ",[[0,13],[7,1],[8,6],[1,60],[8,8],[0,12]]], +[" ┃ ",[[0,13],[7,1],[8,2],[9,84]]], +[" ┃ ",[[0,13],[7,1],[8,74],[0,12]]], +[" ┃ ",[[0,13],[7,1],[8,74],[0,12]]], +[" ╹▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀ ",[[0,13],[7,1],[10,74],[0,12]]], +[" /tmp/opencode/packages/tui:main shift+tab agents ctrl+p commands ",[[0,13],[11,31],[0,11],[12,9],[0,1],[11,6],[0,2],[12,6],[0,1],[11,8],[0,12]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" test ",[[0,94],[11,4],[0,2]]], +[" ",[[0,100]]] +]} diff --git a/packages/cli-rs/parity/fixtures/E.20/toggles/wrapping.json b/packages/cli-rs/parity/fixtures/E.20/toggles/wrapping.json new file mode 100644 index 000000000000..889c8fe0d03b --- /dev/null +++ b/packages/cli-rs/parity/fixtures/E.20/toggles/wrapping.json @@ -0,0 +1,32 @@ +{"width":100,"height":30,"styles":["#ffffffff #030303ff 0","#ffffffff #141414ff 0","#808080ff #141414ff 0","#808080ff #141414ff 1","#7699feff #141414ff 0","#ffffffff #23344bff 0","#b0b0b0ff #141414ff 0","#1e1e1eff #030303ff 0","#ffffffff #0d0d0dff 0","#00000000 #00000000 0","#0d0d0dff #030303ff 0","#353535ff #030303ff 0","#696969ff #030303ff 0"],"lines":[ +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,20],[1,60],[0,20]]], +[" diff wrap esc ",[[0,20],[1,53],[2,3],[1,4],[0,20]]], +[" ",[[0,20],[1,60],[0,20]]], +[" Diffs ",[[0,20],[1,4],[3,5],[1,51],[0,20]]], +[" ┃ Wrapping ‹ none › ",[[0,20],[4,1],[5,59],[0,20]]], +[" ",[[0,20],[1,60],[0,20]]], +[" Whether long lines in diffs wrap ",[[0,20],[1,4],[6,32],[1,24],[0,20]]], +[" ┃ ",[[0,13],[7,1],[8,6],[1,60],[8,8],[0,12]]], +[" ┃ ",[[0,13],[7,1],[8,2],[9,84]]], +[" ┃ ",[[0,13],[7,1],[8,74],[0,12]]], +[" ┃ ",[[0,13],[7,1],[8,74],[0,12]]], +[" ╹▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀ ",[[0,13],[7,1],[10,74],[0,12]]], +[" /tmp/opencode/packages/tui:main shift+tab agents ctrl+p commands ",[[0,13],[11,31],[0,11],[12,9],[0,1],[11,6],[0,2],[12,6],[0,1],[11,8],[0,12]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" test ",[[0,94],[11,4],[0,2]]], +[" ",[[0,100]]] +]} diff --git a/packages/cli-rs/parity/fixtures/E.20/working-directory.app.json b/packages/cli-rs/parity/fixtures/E.20/working-directory.app.json new file mode 100644 index 000000000000..4eefb62abe6f --- /dev/null +++ b/packages/cli-rs/parity/fixtures/E.20/working-directory.app.json @@ -0,0 +1,45 @@ +{ + "scenario": "E.20/working-directory", + "width": 100, + "height": 30, + "directory": "/tmp/opencode/packages/tui", + "config": { + "experimental": {"new-designs":true}, + "animations": false, + "theme": {"name":"opencode"} + }, + "args": {}, + "routes": [], + "steps": [ + {"checkpoint":"home","until":"/tmp/opencode/packages/tui:main","masks":[{"x":16,"y":16,"width":84,"height":1,"reason":"the placeholder example: random in TS and Rust"}],"fixture":"E.20/working-directory/home"}, + {"click":[16,20]}, + {"checkpoint":"dialog","until":"Working directory","masks":[{"x":16,"y":16,"width":84,"height":1,"reason":"the placeholder example: random in TS and Rust"}],"fixture":"E.20/working-directory/dialog"}, + {"keys":["escape"]}, + {"checkpoint":"closed","masks":[{"x":16,"y":16,"width":84,"height":1,"reason":"the placeholder example: random in TS and Rust"}],"fixture":"E.20/working-directory/closed"} + ], + "requests": { + "writes": [], + "reads": [ + {"method":"GET","path":"/api/agent","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":[]}}, + {"method":"GET","path":"/api/command","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":[]}}, + {"method":"GET","path":"/api/config","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":[]}, + {"method":"GET","path":"/api/experimental/migration/v1","query":{},"status":200,"json":{"status":"completed"}}, + {"method":"GET","path":"/api/form","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode"}},"data":[]}}, + {"method":"GET","path":"/api/fs/list","query":{"location[directory]":["<cwd>"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":[]}}, + {"method":"GET","path":"/api/info","query":{},"status":200,"json":{"version":"test","pid":0,"urls":[],"paths":{"tmp":"/tmp"},"capabilities":{"persistentPty":true}}}, + {"method":"GET","path":"/api/integration","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":[]}}, + {"method":"GET","path":"/api/location","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}}}, + {"method":"GET","path":"/api/mcp","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":[]}}, + {"method":"GET","path":"/api/mcp/resource","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":{"resources":[],"templates":[]}}}, + {"method":"GET","path":"/api/model","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":[]}}, + {"method":"GET","path":"/api/plugin","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":[]}}, + {"method":"GET","path":"/api/project","query":{},"status":200,"json":[]}, + {"method":"GET","path":"/api/provider","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":[]}}, + {"method":"GET","path":"/api/reference","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode/packages/tui","canonical":"/tmp/opencode/packages/tui"}},"data":[]}}, + {"method":"GET","path":"/api/session/active","query":{},"status":200,"json":{"data":{}}}, + {"method":"GET","path":"/api/shell","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":[]}}, + {"method":"GET","path":"/api/skill","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":[]}}, + {"method":"GET","path":"/api/vcs","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":{"branch":{"current":"main","default":"main"}}}} + ] + } +} diff --git a/packages/cli-rs/parity/fixtures/E.20/working-directory/closed.json b/packages/cli-rs/parity/fixtures/E.20/working-directory/closed.json new file mode 100644 index 000000000000..649f00be52d6 --- /dev/null +++ b/packages/cli-rs/parity/fixtures/E.20/working-directory/closed.json @@ -0,0 +1,32 @@ +{"width":100,"height":30,"styles":["#ffffffff #080808ff 0","#808080ff #080808ff 0","#ffffffff #080808ff 1","#808080ff #262626ff 0","#ffffffff #464646ff 1","#262626ff #080808ff 0","#484848ff #080808ff 0","#ffffffff #202020ff 0","#00000000 #00000000 0","#202020ff #080808ff 0"],"lines":[ +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ▄ ",[[0,31],[1,19],[0,1],[2,19],[0,30]]], +[" █▀▀█ █▀▀█ █▀▀█ █▀▀▄ █▀▀▀ █▀▀█ █▀▀█ █▀▀█ ",[[0,31],[1,19],[0,1],[2,19],[0,30]]], +[" █ █ █ █ █▀▀▀ █ █ █ █ █ █ █ █▀▀▀ ",[[0,31],[1,1],[3,2],[1,3],[3,2],[1,3],[3,3],[1,2],[3,2],[1,1],[0,1],[2,1],[4,3],[2,2],[4,2],[2,3],[4,2],[2,3],[4,3],[0,30]]], +[" ▀▀▀▀ █▀▀▀ ▀▀▀▀ ▀▀▀▀ ▀▀▀▀ ▀▀▀▀ ▀▀▀▀ ▀▀▀▀ ",[[0,31],[1,16],[5,2],[1,1],[0,1],[2,19],[0,30]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ┃ ",[[0,13],[6,1],[7,74],[0,12]]], +[" ┃ ",[[0,13],[6,1],[7,2],[8,84]]], +[" ┃ ",[[0,13],[6,1],[7,74],[0,12]]], +[" ┃ ",[[0,13],[6,1],[7,74],[0,12]]], +[" ╹▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀ ",[[0,13],[6,1],[9,74],[0,12]]], +[" /tmp/opencode/packages/tui:main shift+tab agents ctrl+p commands ",[[0,65],[1,6],[0,9],[1,8],[0,12]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" test ",[[0,94],[1,4],[0,2]]], +[" ",[[0,100]]] +]} diff --git a/packages/cli-rs/parity/fixtures/E.20/working-directory/dialog.json b/packages/cli-rs/parity/fixtures/E.20/working-directory/dialog.json new file mode 100644 index 000000000000..a3e54a0d5a1f --- /dev/null +++ b/packages/cli-rs/parity/fixtures/E.20/working-directory/dialog.json @@ -0,0 +1,32 @@ +{"width":100,"height":30,"styles":["#ffffffff #030303ff 0","#ffffffff #141414ff 0","#808080ff #141414ff 0","#7699feff #141414ff 0","#ffffffff #23344bff 0","#93a2b7ff #23344bff 0","#1e1e1eff #030303ff 0","#ffffffff #0d0d0dff 0","#00000000 #00000000 0","#0d0d0dff #030303ff 0","#353535ff #030303ff 0","#696969ff #030303ff 0"],"lines":[ +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,20],[1,60],[0,20]]], +[" Working directory esc ",[[0,20],[1,53],[2,3],[1,4],[0,20]]], +[" ",[[0,20],[1,60],[0,20]]], +[" ┃ Copy path /tmp/opencode/packages/tui ",[[0,20],[3,1],[4,12],[5,27],[4,20],[0,20]]], +[" Open folder in system file manager ",[[0,20],[3,1],[1,14],[2,23],[1,22],[0,20]]], +[" Workspaces to another working directory ",[[0,20],[3,1],[1,13],[2,29],[1,17],[0,20]]], +[" ",[[0,20],[1,60],[0,20]]], +[" ┃ ",[[0,13],[6,1],[7,74],[0,12]]], +[" ┃ ",[[0,13],[6,1],[7,2],[8,84]]], +[" ┃ ",[[0,13],[6,1],[7,74],[0,12]]], +[" ┃ ",[[0,13],[6,1],[7,74],[0,12]]], +[" ╹▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀ ",[[0,13],[6,1],[9,74],[0,12]]], +[" /tmp/opencode/packages/tui:main shift+tab agents ctrl+p commands ",[[0,13],[10,31],[0,11],[11,9],[0,1],[10,6],[0,2],[11,6],[0,1],[10,8],[0,12]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" test ",[[0,94],[10,4],[0,2]]], +[" ",[[0,100]]] +]} diff --git a/packages/cli-rs/parity/fixtures/E.20/working-directory/home.json b/packages/cli-rs/parity/fixtures/E.20/working-directory/home.json new file mode 100644 index 000000000000..fde2210b2f02 --- /dev/null +++ b/packages/cli-rs/parity/fixtures/E.20/working-directory/home.json @@ -0,0 +1,32 @@ +{"width":100,"height":30,"styles":["#ffffffff #080808ff 0","#808080ff #080808ff 0","#ffffffff #080808ff 1","#808080ff #262626ff 0","#ffffffff #464646ff 1","#262626ff #080808ff 0","#484848ff #080808ff 0","#ffffffff #202020ff 0","#00000000 #00000000 0","#202020ff #080808ff 0"],"lines":[ +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ▄ ",[[0,31],[1,19],[0,1],[2,19],[0,30]]], +[" █▀▀█ █▀▀█ █▀▀█ █▀▀▄ █▀▀▀ █▀▀█ █▀▀█ █▀▀█ ",[[0,31],[1,19],[0,1],[2,19],[0,30]]], +[" █ █ █ █ █▀▀▀ █ █ █ █ █ █ █ █▀▀▀ ",[[0,31],[1,1],[3,2],[1,3],[3,2],[1,3],[3,3],[1,2],[3,2],[1,1],[0,1],[2,1],[4,3],[2,2],[4,2],[2,3],[4,2],[2,3],[4,3],[0,30]]], +[" ▀▀▀▀ █▀▀▀ ▀▀▀▀ ▀▀▀▀ ▀▀▀▀ ▀▀▀▀ ▀▀▀▀ ▀▀▀▀ ",[[0,31],[1,16],[5,2],[1,1],[0,1],[2,19],[0,30]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ┃ ",[[0,13],[6,1],[7,74],[0,12]]], +[" ┃ ",[[0,13],[6,1],[7,2],[8,84]]], +[" ┃ ",[[0,13],[6,1],[7,74],[0,12]]], +[" ┃ ",[[0,13],[6,1],[7,74],[0,12]]], +[" ╹▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀ ",[[0,13],[6,1],[9,74],[0,12]]], +[" /tmp/opencode/packages/tui:main shift+tab agents ctrl+p commands ",[[0,13],[1,31],[0,21],[1,6],[0,9],[1,8],[0,12]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" test ",[[0,94],[1,4],[0,2]]], +[" ",[[0,100]]] +]} diff --git a/packages/cli-rs/parity/fixtures/E.3/complete.app.json b/packages/cli-rs/parity/fixtures/E.3/complete.app.json new file mode 100644 index 000000000000..da9738194100 --- /dev/null +++ b/packages/cli-rs/parity/fixtures/E.3/complete.app.json @@ -0,0 +1,70 @@ +{ + "scenario": "E.3/complete", + "width": 100, + "height": 30, + "directory": "/tmp/opencode/packages/tui", + "config": { + "animations": false, + "experimental": {"new-designs":true}, + "theme": {"name":"opencode"} + }, + "args": { + "sessionID": "ses_b" + }, + "routes": [ + {"path":"/api/session/ses_b","json":{"data":{"id":"ses_b","title":"Fix the parser","projectID":"proj_test","cost":0,"tokens":{"input":0,"output":0,"reasoning":0,"cache":{"read":0,"write":0}},"time":{"created":2,"updated":2},"location":{"directory":"/tmp/opencode/packages/tui"}}}}, + {"path":"/api/session/ses_b/message","json":{"data":[{"id":"msg_1","type":"user","text":"Why does the parser fail?","time":{"created":1}}],"cursor":{}}}, + {"path":"/api/session/ses_b/inbox","json":{"data":[]}}, + {"path":"/api/command","json":{"location":{"directory":"/tmp/opencode/packages/tui"},"data":[{"name":"review","description":"Review the working tree"}]}}, + {"path":"/api/agent","json":{"location":{"directory":"/tmp/opencode/packages/tui"},"data":[{"id":"general","name":"general","mode":"subagent","hidden":false,"permissions":[],"request":{"settings":{},"headers":{},"body":{}}}]}}, + {"path":"/api/fs/find","json":{"location":{"directory":"/tmp/opencode/packages/tui"},"data":[{"path":"src/general.ts","type":"file"}]}} + ], + "steps": [ + {"checkpoint":"open","until":"Why does the parser fail?","fixture":"E.3/complete/open"}, + {"type":"/rev"}, + {"checkpoint":"slash","until":"Review the working tree","fixture":"E.3/complete/slash"}, + {"keys":["enter"]}, + {"checkpoint":"command","until":"/review","fixture":"E.3/complete/command"}, + {"keys":["ctrl+c"]}, + {"type":"ask @gen"}, + {"checkpoint":"mention","until":"src/general.ts","fixture":"E.3/complete/mention"}, + {"keys":["enter"]}, + {"checkpoint":"picked","until":"ask @general","fixture":"E.3/complete/picked"} + ], + "requests": { + "writes": [], + "reads": [ + {"method":"GET","path":"/api/agent","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui"},"data":[{"id":"general","name":"general","mode":"subagent","hidden":false,"permissions":[],"request":{"settings":{},"headers":{},"body":{}}}]}}, + {"method":"GET","path":"/api/command","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui"},"data":[{"name":"review","description":"Review the working tree"}]}}, + {"method":"GET","path":"/api/config","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":[]}, + {"method":"GET","path":"/api/experimental/job","query":{"descendants":["true"],"sessionID":["ses_b"],"status":["running"]},"status":200,"json":{"data":[]}}, + {"method":"GET","path":"/api/experimental/migration/v1","query":{},"status":200,"json":{"status":"completed"}}, + {"method":"GET","path":"/api/experimental/session/ses_b/terminal","query":{},"status":200,"json":{"data":[]}}, + {"method":"GET","path":"/api/form","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode"}},"data":[]}}, + {"method":"GET","path":"/api/fs/find","query":{"limit":["20"],"location[directory]":["/tmp/opencode/packages/tui"],"query":[""]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui"},"data":[{"path":"src/general.ts","type":"file"}]}}, + {"method":"GET","path":"/api/fs/find","query":{"limit":["20"],"location[directory]":["/tmp/opencode/packages/tui"],"query":["gen"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui"},"data":[{"path":"src/general.ts","type":"file"}]}}, + {"method":"GET","path":"/api/fs/list","query":{"location[directory]":["<cwd>"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":[]}}, + {"method":"GET","path":"/api/info","query":{},"status":200,"json":{"version":"test","pid":0,"urls":[],"paths":{"tmp":"/tmp"},"capabilities":{"persistentPty":true}}}, + {"method":"GET","path":"/api/integration","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":[]}}, + {"method":"GET","path":"/api/location","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}}}, + {"method":"GET","path":"/api/mcp","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":[]}}, + {"method":"GET","path":"/api/mcp/resource","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":{"resources":[],"templates":[]}}}, + {"method":"GET","path":"/api/model","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":[]}}, + {"method":"GET","path":"/api/plugin","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":[]}}, + {"method":"GET","path":"/api/project","query":{},"status":200,"json":[]}, + {"method":"GET","path":"/api/provider","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":[]}}, + {"method":"GET","path":"/api/reference","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode/packages/tui","canonical":"/tmp/opencode/packages/tui"}},"data":[]}}, + {"method":"GET","path":"/api/session","query":{"limit":["200"],"order":["desc"],"parentID":["ses_b"]},"status":200,"json":{"data":[],"cursor":{}}}, + {"method":"GET","path":"/api/session/active","query":{},"status":200,"json":{"data":{}}}, + {"method":"GET","path":"/api/session/ses_b","query":{},"status":200,"json":{"data":{"id":"ses_b","title":"Fix the parser","projectID":"proj_test","cost":0,"tokens":{"input":0,"output":0,"reasoning":0,"cache":{"read":0,"write":0}},"time":{"created":2,"updated":2},"location":{"directory":"/tmp/opencode/packages/tui"}}}}, + {"method":"GET","path":"/api/session/ses_b/form","query":{},"status":200,"json":{"data":[]}}, + {"method":"GET","path":"/api/session/ses_b/inbox","query":{},"status":200,"json":{"data":[]}}, + {"method":"GET","path":"/api/session/ses_b/message","query":{"limit":["20"],"order":["desc"]},"status":200,"json":{"data":[{"id":"msg_1","type":"user","text":"Why does the parser fail?","time":{"created":1}}],"cursor":{}}}, + {"method":"GET","path":"/api/session/ses_b/permission","query":{},"status":200,"json":{"data":[]}}, + {"method":"GET","path":"/api/shell","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":[]}}, + {"method":"GET","path":"/api/skill","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":[]}}, + {"method":"GET","path":"/api/vcs","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":{"branch":{"current":"main","default":"main"}}}}, + {"method":"POST","path":"/api/rpc/opencode.goal/get","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"body":{"input":{"sessionID":"ses_b"}},"status":200,"json":{"output":null}} + ] + } +} diff --git a/packages/cli-rs/parity/fixtures/E.3/complete/command.json b/packages/cli-rs/parity/fixtures/E.3/complete/command.json new file mode 100644 index 000000000000..9713bbbbb1dc --- /dev/null +++ b/packages/cli-rs/parity/fixtures/E.3/complete/command.json @@ -0,0 +1,32 @@ +{"width":100,"height":30,"styles":["#ffffffff #202020ff 0","#ffffffff #202020ff 1","#808080ff #080808ff 0","#ffffffff #080808ff 0","#7699feff #141414ff 0","#ffffffff #141414ff 0","#484848ff #080808ff 0","#202020ff #080808ff 0"],"lines":[ +[" Fix the parser + ",[[0,3],[1,14],[0,15],[2,3],[3,65]]], +[" ",[[3,100]]], +[" ┃ ",[[3,2],[4,1],[5,95],[3,2]]], +[" ┃ Why does the parser fail? ",[[3,2],[4,1],[5,95],[3,2]]], +[" ┃ ",[[3,2],[4,1],[5,95],[3,2]]], +[" ",[[3,100]]], +[" ",[[3,100]]], +[" ",[[3,100]]], +[" ",[[3,100]]], +[" ",[[3,100]]], +[" ",[[3,100]]], +[" ",[[3,100]]], +[" ",[[3,100]]], +[" ",[[3,100]]], +[" ",[[3,100]]], +[" ",[[3,100]]], +[" ",[[3,100]]], +[" ",[[3,100]]], +[" ",[[3,100]]], +[" ",[[3,100]]], +[" ",[[3,100]]], +[" ",[[3,100]]], +[" ",[[3,100]]], +[" ┃ ",[[3,2],[6,1],[0,95],[3,2]]], +[" ┃ /review ",[[3,2],[6,1],[0,95],[3,2]]], +[" ┃ ",[[3,2],[6,1],[0,95],[3,2]]], +[" ┃ ",[[3,2],[6,1],[0,95],[3,2]]], +[" ╹▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀ ",[[3,2],[6,1],[7,95],[3,2]]], +[" /tmp/opencode/packages/tui:main shift+tab agents ctrl+p commands ",[[3,2],[2,31],[3,42],[2,6],[3,9],[2,8],[3,2]]], +[" ",[[3,100]]] +]} diff --git a/packages/cli-rs/parity/fixtures/E.3/complete/mention.json b/packages/cli-rs/parity/fixtures/E.3/complete/mention.json new file mode 100644 index 000000000000..74a725a4dbc5 --- /dev/null +++ b/packages/cli-rs/parity/fixtures/E.3/complete/mention.json @@ -0,0 +1,32 @@ +{"width":100,"height":30,"styles":["#ffffffff #202020ff 0","#ffffffff #202020ff 1","#808080ff #080808ff 0","#ffffffff #080808ff 0","#7699feff #141414ff 0","#ffffffff #141414ff 0","#7699feff #080808ff 0","#ffffffff #23344bff 0","#484848ff #080808ff 0","#202020ff #080808ff 0"],"lines":[ +[" Fix the parser + ",[[0,3],[1,14],[0,15],[2,3],[3,65]]], +[" ",[[3,100]]], +[" ┃ ",[[3,2],[4,1],[5,95],[3,2]]], +[" ┃ Why does the parser fail? ",[[3,2],[4,1],[5,95],[3,2]]], +[" ┃ ",[[3,2],[4,1],[5,95],[3,2]]], +[" ",[[3,100]]], +[" ",[[3,100]]], +[" ",[[3,100]]], +[" ",[[3,100]]], +[" ",[[3,100]]], +[" ",[[3,100]]], +[" ",[[3,100]]], +[" ",[[3,100]]], +[" ",[[3,100]]], +[" ",[[3,100]]], +[" ",[[3,100]]], +[" ",[[3,100]]], +[" ",[[3,100]]], +[" ",[[3,100]]], +[" ",[[3,100]]], +[" ",[[3,100]]], +[" ┃ @general agent ┃ ",[[3,2],[6,1],[7,94],[8,1],[3,2]]], +[" ┃ src/general.ts ┃ ",[[3,2],[8,1],[0,94],[8,1],[3,2]]], +[" ┃ ",[[3,2],[8,1],[0,95],[3,2]]], +[" ┃ ask @gen ",[[3,2],[8,1],[0,95],[3,2]]], +[" ┃ ",[[3,2],[8,1],[0,95],[3,2]]], +[" ┃ ",[[3,2],[8,1],[0,95],[3,2]]], +[" ╹▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀ ",[[3,2],[8,1],[9,95],[3,2]]], +[" /tmp/opencode/packages/tui:main shift+tab agents ctrl+p commands ",[[3,2],[2,31],[3,42],[2,6],[3,9],[2,8],[3,2]]], +[" ",[[3,100]]] +]} diff --git a/packages/cli-rs/parity/fixtures/E.3/complete/open.json b/packages/cli-rs/parity/fixtures/E.3/complete/open.json new file mode 100644 index 000000000000..2efa8f50ecf5 --- /dev/null +++ b/packages/cli-rs/parity/fixtures/E.3/complete/open.json @@ -0,0 +1,32 @@ +{"width":100,"height":30,"styles":["#ffffffff #202020ff 0","#ffffffff #202020ff 1","#808080ff #080808ff 0","#ffffffff #080808ff 0","#7699feff #141414ff 0","#ffffffff #141414ff 0","#484848ff #080808ff 0","#202020ff #080808ff 0"],"lines":[ +[" Fix the parser + ",[[0,3],[1,14],[0,15],[2,3],[3,65]]], +[" ",[[3,100]]], +[" ┃ ",[[3,2],[4,1],[5,95],[3,2]]], +[" ┃ Why does the parser fail? ",[[3,2],[4,1],[5,95],[3,2]]], +[" ┃ ",[[3,2],[4,1],[5,95],[3,2]]], +[" ",[[3,100]]], +[" ",[[3,100]]], +[" ",[[3,100]]], +[" ",[[3,100]]], +[" ",[[3,100]]], +[" ",[[3,100]]], +[" ",[[3,100]]], +[" ",[[3,100]]], +[" ",[[3,100]]], +[" ",[[3,100]]], +[" ",[[3,100]]], +[" ",[[3,100]]], +[" ",[[3,100]]], +[" ",[[3,100]]], +[" ",[[3,100]]], +[" ",[[3,100]]], +[" ",[[3,100]]], +[" ",[[3,100]]], +[" ┃ ",[[3,2],[6,1],[0,95],[3,2]]], +[" ┃ ",[[3,2],[6,1],[0,95],[3,2]]], +[" ┃ ",[[3,2],[6,1],[0,95],[3,2]]], +[" ┃ ",[[3,2],[6,1],[0,95],[3,2]]], +[" ╹▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀ ",[[3,2],[6,1],[7,95],[3,2]]], +[" /tmp/opencode/packages/tui:main shift+tab agents ctrl+p commands ",[[3,2],[2,31],[3,42],[2,6],[3,9],[2,8],[3,2]]], +[" ",[[3,100]]] +]} diff --git a/packages/cli-rs/parity/fixtures/E.3/complete/picked.json b/packages/cli-rs/parity/fixtures/E.3/complete/picked.json new file mode 100644 index 000000000000..437157b72869 --- /dev/null +++ b/packages/cli-rs/parity/fixtures/E.3/complete/picked.json @@ -0,0 +1,32 @@ +{"width":100,"height":30,"styles":["#ffffffff #202020ff 0","#ffffffff #202020ff 1","#808080ff #080808ff 0","#ffffffff #080808ff 0","#7699feff #141414ff 0","#ffffffff #141414ff 0","#484848ff #080808ff 0","#93a2b7ff #202020ff 1","#202020ff #080808ff 0"],"lines":[ +[" Fix the parser + ",[[0,3],[1,14],[0,15],[2,3],[3,65]]], +[" ",[[3,100]]], +[" ┃ ",[[3,2],[4,1],[5,95],[3,2]]], +[" ┃ Why does the parser fail? ",[[3,2],[4,1],[5,95],[3,2]]], +[" ┃ ",[[3,2],[4,1],[5,95],[3,2]]], +[" ",[[3,100]]], +[" ",[[3,100]]], +[" ",[[3,100]]], +[" ",[[3,100]]], +[" ",[[3,100]]], +[" ",[[3,100]]], +[" ",[[3,100]]], +[" ",[[3,100]]], +[" ",[[3,100]]], +[" ",[[3,100]]], +[" ",[[3,100]]], +[" ",[[3,100]]], +[" ",[[3,100]]], +[" ",[[3,100]]], +[" ",[[3,100]]], +[" ",[[3,100]]], +[" ",[[3,100]]], +[" ",[[3,100]]], +[" ┃ ",[[3,2],[6,1],[0,95],[3,2]]], +[" ┃ ask @general ",[[3,2],[6,1],[0,6],[7,8],[0,81],[3,2]]], +[" ┃ ",[[3,2],[6,1],[0,95],[3,2]]], +[" ┃ ",[[3,2],[6,1],[0,95],[3,2]]], +[" ╹▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀ ",[[3,2],[6,1],[8,95],[3,2]]], +[" /tmp/opencode/packages/tui:main shift+tab agents ctrl+p commands ",[[3,2],[2,31],[3,42],[2,6],[3,9],[2,8],[3,2]]], +[" ",[[3,100]]] +]} diff --git a/packages/cli-rs/parity/fixtures/E.3/complete/slash.json b/packages/cli-rs/parity/fixtures/E.3/complete/slash.json new file mode 100644 index 000000000000..067de4be1770 --- /dev/null +++ b/packages/cli-rs/parity/fixtures/E.3/complete/slash.json @@ -0,0 +1,32 @@ +{"width":100,"height":30,"styles":["#ffffffff #202020ff 0","#ffffffff #202020ff 1","#808080ff #080808ff 0","#ffffffff #080808ff 0","#7699feff #141414ff 0","#ffffffff #141414ff 0","#7699feff #080808ff 0","#ffffffff #23344bff 0","#484848ff #080808ff 0","#808080ff #202020ff 0","#202020ff #080808ff 0"],"lines":[ +[" Fix the parser + ",[[0,3],[1,14],[0,15],[2,3],[3,65]]], +[" ",[[3,100]]], +[" ┃ ",[[3,2],[4,1],[5,95],[3,2]]], +[" ┃ Why does the parser fail? ",[[3,2],[4,1],[5,95],[3,2]]], +[" ┃ ",[[3,2],[4,1],[5,95],[3,2]]], +[" ",[[3,100]]], +[" ",[[3,100]]], +[" ",[[3,100]]], +[" ",[[3,100]]], +[" ",[[3,100]]], +[" ",[[3,100]]], +[" ",[[3,100]]], +[" ",[[3,100]]], +[" ",[[3,100]]], +[" ",[[3,100]]], +[" ",[[3,100]]], +[" ",[[3,100]]], +[" ",[[3,100]]], +[" ┃ /review Review the working tree ┃ ",[[3,2],[6,1],[7,94],[8,1],[3,2]]], +[" ┃ /undo Undo previous message ┃ ",[[3,2],[8,1],[0,13],[9,22],[0,59],[8,1],[3,2]]], +[" ┃ /web Pair device ┃ ",[[3,2],[8,1],[0,13],[9,12],[0,69],[8,1],[3,2]]], +[" ┃ /pair Pair device ┃ ",[[3,2],[8,1],[0,13],[9,12],[0,69],[8,1],[3,2]]], +[" ┃ /btw One-shot answer from the session's context without adding to the conversation ┃ ",[[3,2],[8,1],[0,13],[9,78],[0,3],[8,1],[3,2]]], +[" ┃ ",[[3,2],[8,1],[0,95],[3,2]]], +[" ┃ /rev ",[[3,2],[8,1],[0,95],[3,2]]], +[" ┃ ",[[3,2],[8,1],[0,95],[3,2]]], +[" ┃ ",[[3,2],[8,1],[0,95],[3,2]]], +[" ╹▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀ ",[[3,2],[8,1],[10,95],[3,2]]], +[" /tmp/opencode/packages/tui:main shift+tab agents ctrl+p commands ",[[3,2],[2,31],[3,42],[2,6],[3,9],[2,8],[3,2]]], +[" ",[[3,100]]] +]} diff --git a/packages/cli-rs/parity/fixtures/E.3/fuzzy.json b/packages/cli-rs/parity/fixtures/E.3/fuzzy.json new file mode 100644 index 000000000000..ff33264718b2 --- /dev/null +++ b/packages/cli-rs/parity/fixtures/E.3/fuzzy.json @@ -0,0 +1,534 @@ +{ + "corpus": { + "command": [ + {"display":"/leader","description":"Leader key for keybind combinations"}, + {"display":"/app.exit","description":"Exit the application"}, + {"display":"/app.clear","description":"Clear the screen in mini"}, + {"display":"/app.debug","description":"Toggle debug panel"}, + {"display":"/app.console","description":"Toggle console"}, + {"display":"/app.scrap","description":"Open scrap screen"}, + {"display":"/app.toggle.animations","description":"Toggle animations"}, + {"display":"/app.toggle.file_context","description":"Toggle file context"}, + {"display":"/app.toggle.diffwrap","description":"Toggle diff wrapping"}, + {"display":"/app.toggle.paste_summary","description":"Toggle paste summary"}, + {"display":"/command.palette.show","description":"List available commands"}, + {"display":"/help.show","description":"Open help dialog"}, + {"display":"/docs.open","description":"Open documentation"}, + {"display":"/opencode.settings","description":"Open settings"}, + {"display":"/server.pair","description":"Pair device"}, + {"display":"/service.restart","description":"Restart service"}, + {"display":"/location.reload","description":"Reload configuration"}, + {"display":"/diff.open","description":"Open diff viewer"}, + {"display":"/diff.close","description":"Close diff viewer"}, + {"display":"/diff.down","description":"Move diff viewer down"}, + {"display":"/diff.up","description":"Move diff viewer up"}, + {"display":"/diff.page.down","description":"Page diff viewer down"}, + {"display":"/diff.page.up","description":"Page diff viewer up"}, + {"display":"/diff.half_page.down","description":"Scroll diff viewer down half a page"}, + {"display":"/diff.half_page.up","description":"Scroll diff viewer up half a page"}, + {"display":"/diff.first","description":"Go to the start of the diff"}, + {"display":"/diff.last","description":"Go to the end of the diff"}, + {"display":"/diff.toggle","description":"Deprecated: file tree is mouse-controlled"}, + {"display":"/diff.expand","description":"Deprecated: file tree is mouse-controlled"}, + {"display":"/diff.expand_all","description":"Deprecated: file tree is mouse-controlled"}, + {"display":"/diff.collapse","description":"Deprecated: file tree is mouse-controlled"}, + {"display":"/diff.switch_focus","description":"Deprecated: keyboard navigation always controls the diff"}, + {"display":"/diff.next_hunk","description":"Jump to next diff hunk"}, + {"display":"/diff.previous_hunk","description":"Jump to previous diff hunk"}, + {"display":"/diff.next_file","description":"Jump to next diff file"}, + {"display":"/diff.previous_file","description":"Jump to previous diff file"}, + {"display":"/diff.toggle_file_tree","description":"Toggle diff viewer file tree"}, + {"display":"/diff.single_patch","description":"Toggle single patch view"}, + {"display":"/diff.switch_source","description":"Switch diff viewer source"}, + {"display":"/diff.toggle_view","description":"Toggle diff viewer split or unified view"}, + {"display":"/diff.toggle_fullscreen","description":"Toggle diff viewer full screen"}, + {"display":"/diff.mark_reviewed","description":"Toggle selected diff file reviewed"}, + {"display":"/diff.help","description":"Show more diff viewer shortcuts"}, + {"display":"/prompt.editor","description":"Open external editor"}, + {"display":"/theme.switch","description":"List available themes"}, + {"display":"/theme.switch_mode","description":"Switch between light and dark theme mode"}, + {"display":"/theme.mode.lock","description":"Lock or unlock theme mode"}, + {"display":"/session.sidebar.toggle","description":"Toggle sidebar"}, + {"display":"/pane.focus.left","description":"Focus session pane"}, + {"display":"/pane.focus.right","description":"Focus right pane"}, + {"display":"/terminal.select","description":"Select terminal"}, + {"display":"/terminal.toggle","description":"Toggle terminal pane"}, + {"display":"/terminal.close","description":"Close terminal pane"}, + {"display":"/session.toggle.scrollbar","description":"Toggle session scrollbar"}, + {"display":"/opencode.status","description":"View status"}, + {"display":"/opencode.debug","description":"View debug info"}, + {"display":"/session.export","description":"Export session to editor"}, + {"display":"/session.copy","description":"Copy session transcript"}, + {"display":"/session.copy.id","description":"Copy session ID"}, + {"display":"/session.move","description":"Manage workspaces"}, + {"display":"/session.new","description":"Create a new session"}, + {"display":"/session.list","description":"List all sessions"}, + {"display":"/open.menu","description":"Open recent sessions and projects"}, + {"display":"/session.tab.next","description":"Switch to next open session tab"}, + {"display":"/session.tab.previous","description":"Switch to previous open session tab"}, + {"display":"/session.tab.history.back","description":"Go back in session tab history"}, + {"display":"/session.tab.history.forward","description":"Go forward in session tab history"}, + {"display":"/session.tab.next_unread","description":"Switch to next unread session tab"}, + {"display":"/session.tab.previous_unread","description":"Switch to previous unread session tab"}, + {"display":"/session.tab.close","description":"Close current session tab"}, + {"display":"/session.tab.reopen","description":"Reopen last closed session tab"}, + {"display":"/session.timeline","description":"Show session timeline"}, + {"display":"/session.fork","description":"Fork session from message"}, + {"display":"/session.rename","description":"Rename session"}, + {"display":"/session.delete","description":"Delete session"}, + {"display":"/session.share","description":"Deprecated: session sharing was removed"}, + {"display":"/session.unshare","description":"Deprecated: session sharing was removed"}, + {"display":"/session.interrupt","description":"Interrupt current session"}, + {"display":"/session.background","description":"Background blocking session tools"}, + {"display":"/session.compact","description":"Compact the session"}, + {"display":"/session.aside","description":"Ask a side question"}, + {"display":"/session.cd","description":"Change working directory"}, + {"display":"/session.queued_prompts","description":"Manage queued prompts"}, + {"display":"/queued_prompt.undo","description":"Undo queued prompt"}, + {"display":"/queued_prompt.delete","description":"Delete queued prompt"}, + {"display":"/session.toggle.exploration_grouping","description":"Toggle related tool call grouping"}, + {"display":"/session.verbosity.cycle","description":"Cycle transcript verbosity"}, + {"display":"/session.child.first","description":"Toggle subagent picker"}, + {"display":"/session.child.next","description":"Go to next child session"}, + {"display":"/session.child.previous","description":"Go to previous child session"}, + {"display":"/session.parent","description":"Go to parent session"}, + {"display":"/session.pin.toggle","description":"Pin or unpin session in the session list"}, + {"display":"/session.quick_switch.1","description":"Switch to session in quick slot 1"}, + {"display":"/session.quick_switch.2","description":"Switch to session in quick slot 2"}, + {"display":"/session.quick_switch.3","description":"Switch to session in quick slot 3"}, + {"display":"/session.quick_switch.4","description":"Switch to session in quick slot 4"}, + {"display":"/session.quick_switch.5","description":"Switch to session in quick slot 5"}, + {"display":"/session.quick_switch.6","description":"Switch to session in quick slot 6"}, + {"display":"/session.quick_switch.7","description":"Switch to session in quick slot 7"}, + {"display":"/session.quick_switch.8","description":"Switch to session in quick slot 8"}, + {"display":"/session.quick_switch.9","description":"Switch to session in quick slot 9"}, + {"display":"/session.tab.select.1","description":"Switch to session tab 1"}, + {"display":"/session.tab.select.2","description":"Switch to session tab 2"}, + {"display":"/session.tab.select.3","description":"Switch to session tab 3"}, + {"display":"/session.tab.select.4","description":"Switch to session tab 4"}, + {"display":"/session.tab.select.5","description":"Switch to session tab 5"}, + {"display":"/session.tab.select.6","description":"Switch to session tab 6"}, + {"display":"/session.tab.select.7","description":"Switch to session tab 7"}, + {"display":"/session.tab.select.8","description":"Switch to session tab 8"}, + {"display":"/session.tab.select.9","description":"Switch to session tab 9"}, + {"display":"/session.tab.select.10","description":"Switch to session tab 10"}, + {"display":"/stash.delete","description":"Delete stash entry"}, + {"display":"/model.dialog.provider","description":"Open provider list from model dialog"}, + {"display":"/model.dialog.favorite","description":"Toggle model favorite status"}, + {"display":"/model.dialog.usage","description":"Open usage limits from model dialog"}, + {"display":"/model.list","description":"List available models"}, + {"display":"/model.cycle_recent","description":"Next recently used model"}, + {"display":"/model.cycle_recent_reverse","description":"Previous recently used model"}, + {"display":"/model.cycle_favorite","description":"Next favorite model"}, + {"display":"/model.cycle_favorite_reverse","description":"Previous favorite model"}, + {"display":"/mcp.list","description":"List MCP servers"}, + {"display":"/usage.show","description":"View usage limits"}, + {"display":"/provider.connect","description":"Connect integration"}, + {"display":"/agent.list","description":"List agents"}, + {"display":"/agent.cycle","description":"Next agent"}, + {"display":"/agent.cycle.reverse","description":"Previous agent"}, + {"display":"/variant.cycle","description":"Cycle model variants"}, + {"display":"/variant.list","description":"List model variants"}, + {"display":"/session.page.up","description":"Scroll messages up by one page"}, + {"display":"/session.page.down","description":"Scroll messages down by one page"}, + {"display":"/session.line.up","description":"Scroll messages up by one line"}, + {"display":"/session.line.down","description":"Scroll messages down by one line"}, + {"display":"/session.half.page.up","description":"Scroll messages up by half page"}, + {"display":"/session.half.page.down","description":"Scroll messages down by half page"}, + {"display":"/session.first","description":"Navigate to first message"}, + {"display":"/session.last","description":"Navigate to last message"}, + {"display":"/session.message.next","description":"Navigate to next message"}, + {"display":"/session.message.previous","description":"Navigate to previous message"}, + {"display":"/session.message.user.next","description":"Navigate to next user message"}, + {"display":"/session.message.user.previous","description":"Navigate to previous user message"}, + {"display":"/session.messages_last_user","description":"Navigate to last user message"}, + {"display":"/messages.copy","description":"Copy message"}, + {"display":"/session.undo","description":"Undo message"}, + {"display":"/session.redo","description":"Redo message"}, + {"display":"/session.toggle.thinking","description":"Toggle thinking blocks visibility"}, + {"display":"/prompt.submit","description":"Submit prompt"}, + {"display":"/prompt.queue","description":"Queue prompt"}, + {"display":"/prompt.editor_context.clear","description":"Clear editor context"}, + {"display":"/prompt.images.view","description":"View image attachments"}, + {"display":"/prompt.skills","description":"Open skill selector"}, + {"display":"/prompt.stash","description":"Stash prompt"}, + {"display":"/prompt.stash.pop","description":"Pop stashed prompt"}, + {"display":"/prompt.stash.list","description":"List stashed prompts"}, + {"display":"/prompt.clear","description":"Clear input field"}, + {"display":"/prompt.paste","description":"Paste from clipboard"}, + {"display":"/input.submit","description":"Submit input"}, + {"display":"/input.newline","description":"Insert newline in input"}, + {"display":"/input.move.left","description":"Move cursor left in input"}, + {"display":"/input.move.right","description":"Move cursor right in input"}, + {"display":"/input.move.up","description":"Move cursor up in input"}, + {"display":"/input.move.down","description":"Move cursor down in input"}, + {"display":"/input.select.left","description":"Select left in input"}, + {"display":"/input.select.right","description":"Select right in input"}, + {"display":"/input.select.up","description":"Select up in input"}, + {"display":"/input.select.down","description":"Select down in input"}, + {"display":"/input.line.home","description":"Move to start of line in input"}, + {"display":"/input.line.end","description":"Move to end of line in input"}, + {"display":"/input.select.line.home","description":"Select to start of line in input"}, + {"display":"/input.select.line.end","description":"Select to end of line in input"}, + {"display":"/input.visual.line.home","description":"Move to start of visual line in input"}, + {"display":"/input.visual.line.end","description":"Move to end of visual line in input"}, + {"display":"/input.select.visual.line.home","description":"Select to start of visual line in input"}, + {"display":"/input.select.visual.line.end","description":"Select to end of visual line in input"}, + {"display":"/input.buffer.home","description":"Move to start of buffer in input"}, + {"display":"/input.buffer.end","description":"Move to end of buffer in input"}, + {"display":"/input.select.buffer.home","description":"Select to start of buffer in input"}, + {"display":"/input.select.buffer.end","description":"Select to end of buffer in input"}, + {"display":"/input.delete.line","description":"Delete line in input"}, + {"display":"/input.delete.to.line.end","description":"Delete to end of line in input"}, + {"display":"/input.delete.to.line.start","description":"Delete to start of line in input"}, + {"display":"/input.backspace","description":"Backspace in input"}, + {"display":"/input.delete","description":"Delete character in input"}, + {"display":"/input.undo","description":"Undo in input"}, + {"display":"/input.redo","description":"Redo in input"}, + {"display":"/input.word.forward","description":"Move word forward in input"}, + {"display":"/input.word.backward","description":"Move word backward in input"}, + {"display":"/input.select.word.forward","description":"Select word forward in input"}, + {"display":"/input.select.word.backward","description":"Select word backward in input"}, + {"display":"/input.delete.word.forward","description":"Delete word forward in input"}, + {"display":"/input.delete.word.backward","description":"Delete word backward in input"}, + {"display":"/input.select.all","description":"Select all in input"}, + {"display":"/prompt.history.previous","description":"Previous history item"}, + {"display":"/prompt.history.next","description":"Next history item"}, + {"display":"/composer.subagent.up","description":"Previous subagent"}, + {"display":"/composer.subagent.down","description":"Next subagent"}, + {"display":"/composer.subagent.select","description":"Navigate to subagent"}, + {"display":"/composer.subagent.interrupt","description":"Interrupt subagent"}, + {"display":"/composer.shell.up","description":"Previous shell"}, + {"display":"/composer.shell.down","description":"Next shell"}, + {"display":"/composer.shell.select","description":"View shell output"}, + {"display":"/composer.shell.kill","description":"Kill shell command"}, + {"display":"/composer.script.up","description":"Previous script"}, + {"display":"/composer.script.down","description":"Next script"}, + {"display":"/composer.script.cancel","description":"Cancel script"}, + {"display":"/composer.terminal.up","description":"Previous terminal"}, + {"display":"/composer.terminal.down","description":"Next terminal"}, + {"display":"/composer.terminal.select","description":"Select terminal"}, + {"display":"/dialog.select.prev","description":"Move to previous dialog item"}, + {"display":"/dialog.select.next","description":"Move to next dialog item"}, + {"display":"/dialog.select.page_up","description":"Move up one page in dialog"}, + {"display":"/dialog.select.page_down","description":"Move down one page in dialog"}, + {"display":"/dialog.select.home","description":"Move to first dialog item"}, + {"display":"/dialog.select.end","description":"Move to last dialog item"}, + {"display":"/dialog.select.submit","description":"Submit selected dialog item"}, + {"display":"/dialog.prompt.submit","description":"Submit dialog prompt"}, + {"display":"/dialog.integration.rename","description":"Rename integration account"}, + {"display":"/dialog.integration.delete","description":"Delete integration account"}, + {"display":"/dialog.integration.copy","description":"Copy authorization link"}, + {"display":"/dialog.worktree.generate","description":"Generate worktree name"}, + {"display":"/dialog.move_session.new","description":"New worktree"}, + {"display":"/dialog.move_session.move","description":"Move session to worktree"}, + {"display":"/dialog.move_session.delete","description":"Delete worktree"}, + {"display":"/dialog.move_session.refresh","description":"Refresh worktrees"}, + {"display":"/prompt.autocomplete.prev","description":"Move to previous autocomplete item"}, + {"display":"/prompt.autocomplete.next","description":"Move to next autocomplete item"}, + {"display":"/prompt.autocomplete.hide","description":"Hide autocomplete"}, + {"display":"/prompt.autocomplete.select","description":"Select autocomplete item"}, + {"display":"/prompt.autocomplete.complete","description":"Complete autocomplete item"}, + {"display":"/permission.prompt.fullscreen","description":"Toggle permission prompt fullscreen"}, + {"display":"/plugins.toggle","description":"Toggle plugin"}, + {"display":"/dialog.mcp.toggle","description":"Toggle MCP server"}, + {"display":"/dialog.plugins.error","description":"View plugin error"}, + {"display":"/dialog.plugins.update","description":"Update plugin from plugin dialog"}, + {"display":"/dialog.plugins.check","description":"Check for plugin updates from plugin dialog"}, + {"display":"/terminal.suspend","description":"Suspend terminal"}, + {"display":"/terminal.title.toggle","description":"Toggle terminal title"}, + {"display":"/plugins.list","description":"Open plugin manager dialog"}, + {"display":"/which-key.toggle","description":"Toggle which-key panel"}, + {"display":"/which-key.layout.toggle","description":"Switch which-key layout"}, + {"display":"/which-key.pending.toggle","description":"Toggle which-key pending preview"}, + {"display":"/which-key.group.previous","description":"Previous which-key group"}, + {"display":"/which-key.group.next","description":"Next which-key group"}, + {"display":"/which-key.scroll.up","description":"Scroll which-key up"}, + {"display":"/which-key.scroll.down","description":"Scroll which-key down"}, + {"display":"/which-key.page.up","description":"Page which-key up"}, + {"display":"/which-key.page.down","description":"Page which-key down"}, + {"display":"/which-key.home","description":"Jump to first which-key binding"}, + {"display":"/which-key.end","description":"Jump to last which-key binding"} + ], + "reference": [ + {"display":"@leader","description":"Leader key for keybind combinations"}, + {"display":"@app.exit","description":"Exit the application"}, + {"display":"@app.clear","description":"Clear the screen in mini"}, + {"display":"@app.debug","description":"Toggle debug panel"}, + {"display":"@app.console","description":"Toggle console"}, + {"display":"@app.scrap","description":"Open scrap screen"}, + {"display":"@app.toggle.animations","description":"Toggle animations"}, + {"display":"@app.toggle.file_context","description":"Toggle file context"}, + {"display":"@app.toggle.diffwrap","description":"Toggle diff wrapping"}, + {"display":"@app.toggle.paste_summary","description":"Toggle paste summary"}, + {"display":"@command.palette.show","description":"List available commands"}, + {"display":"@help.show","description":"Open help dialog"}, + {"display":"@docs.open","description":"Open documentation"}, + {"display":"@opencode.settings","description":"Open settings"}, + {"display":"@server.pair","description":"Pair device"}, + {"display":"@service.restart","description":"Restart service"}, + {"display":"@location.reload","description":"Reload configuration"}, + {"display":"@diff.open","description":"Open diff viewer"}, + {"display":"@diff.close","description":"Close diff viewer"}, + {"display":"@diff.down","description":"Move diff viewer down"}, + {"display":"@diff.up","description":"Move diff viewer up"}, + {"display":"@diff.page.down","description":"Page diff viewer down"}, + {"display":"@diff.page.up","description":"Page diff viewer up"}, + {"display":"@diff.half_page.down","description":"Scroll diff viewer down half a page"}, + {"display":"@diff.half_page.up","description":"Scroll diff viewer up half a page"}, + {"display":"@diff.first","description":"Go to the start of the diff"}, + {"display":"@diff.last","description":"Go to the end of the diff"}, + {"display":"@diff.toggle","description":"Deprecated: file tree is mouse-controlled"}, + {"display":"@diff.expand","description":"Deprecated: file tree is mouse-controlled"}, + {"display":"@diff.expand_all","description":"Deprecated: file tree is mouse-controlled"}, + {"display":"@diff.collapse","description":"Deprecated: file tree is mouse-controlled"}, + {"display":"@diff.switch_focus","description":"Deprecated: keyboard navigation always controls the diff"}, + {"display":"@diff.next_hunk","description":"Jump to next diff hunk"}, + {"display":"@diff.previous_hunk","description":"Jump to previous diff hunk"}, + {"display":"@diff.next_file","description":"Jump to next diff file"}, + {"display":"@diff.previous_file","description":"Jump to previous diff file"}, + {"display":"@diff.toggle_file_tree","description":"Toggle diff viewer file tree"}, + {"display":"@diff.single_patch","description":"Toggle single patch view"}, + {"display":"@diff.switch_source","description":"Switch diff viewer source"}, + {"display":"@diff.toggle_view","description":"Toggle diff viewer split or unified view"}, + {"display":"@diff.toggle_fullscreen","description":"Toggle diff viewer full screen"}, + {"display":"@diff.mark_reviewed","description":"Toggle selected diff file reviewed"}, + {"display":"@diff.help","description":"Show more diff viewer shortcuts"}, + {"display":"@prompt.editor","description":"Open external editor"}, + {"display":"@theme.switch","description":"List available themes"}, + {"display":"@theme.switch_mode","description":"Switch between light and dark theme mode"}, + {"display":"@theme.mode.lock","description":"Lock or unlock theme mode"}, + {"display":"@session.sidebar.toggle","description":"Toggle sidebar"}, + {"display":"@pane.focus.left","description":"Focus session pane"}, + {"display":"@pane.focus.right","description":"Focus right pane"}, + {"display":"@terminal.select","description":"Select terminal"}, + {"display":"@terminal.toggle","description":"Toggle terminal pane"}, + {"display":"@terminal.close","description":"Close terminal pane"}, + {"display":"@session.toggle.scrollbar","description":"Toggle session scrollbar"}, + {"display":"@opencode.status","description":"View status"}, + {"display":"@opencode.debug","description":"View debug info"}, + {"display":"@session.export","description":"Export session to editor"}, + {"display":"@session.copy","description":"Copy session transcript"}, + {"display":"@session.copy.id","description":"Copy session ID"}, + {"display":"@session.move","description":"Manage workspaces"}, + {"display":"@session.new","description":"Create a new session"}, + {"display":"@session.list","description":"List all sessions"}, + {"display":"@open.menu","description":"Open recent sessions and projects"}, + {"display":"@session.tab.next","description":"Switch to next open session tab"}, + {"display":"@session.tab.previous","description":"Switch to previous open session tab"}, + {"display":"@session.tab.history.back","description":"Go back in session tab history"}, + {"display":"@session.tab.history.forward","description":"Go forward in session tab history"}, + {"display":"@session.tab.next_unread","description":"Switch to next unread session tab"}, + {"display":"@session.tab.previous_unread","description":"Switch to previous unread session tab"}, + {"display":"@session.tab.close","description":"Close current session tab"}, + {"display":"@session.tab.reopen","description":"Reopen last closed session tab"}, + {"display":"@session.timeline","description":"Show session timeline"}, + {"display":"@session.fork","description":"Fork session from message"}, + {"display":"@session.rename","description":"Rename session"}, + {"display":"@session.delete","description":"Delete session"}, + {"display":"@session.share","description":"Deprecated: session sharing was removed"}, + {"display":"@session.unshare","description":"Deprecated: session sharing was removed"}, + {"display":"@session.interrupt","description":"Interrupt current session"}, + {"display":"@session.background","description":"Background blocking session tools"}, + {"display":"@session.compact","description":"Compact the session"}, + {"display":"@session.aside","description":"Ask a side question"}, + {"display":"@session.cd","description":"Change working directory"}, + {"display":"@session.queued_prompts","description":"Manage queued prompts"}, + {"display":"@queued_prompt.undo","description":"Undo queued prompt"}, + {"display":"@queued_prompt.delete","description":"Delete queued prompt"}, + {"display":"@session.toggle.exploration_grouping","description":"Toggle related tool call grouping"}, + {"display":"@session.verbosity.cycle","description":"Cycle transcript verbosity"}, + {"display":"@session.child.first","description":"Toggle subagent picker"}, + {"display":"@session.child.next","description":"Go to next child session"}, + {"display":"@session.child.previous","description":"Go to previous child session"}, + {"display":"@session.parent","description":"Go to parent session"}, + {"display":"@session.pin.toggle","description":"Pin or unpin session in the session list"}, + {"display":"@session.quick_switch.1","description":"Switch to session in quick slot 1"}, + {"display":"@session.quick_switch.2","description":"Switch to session in quick slot 2"}, + {"display":"@session.quick_switch.3","description":"Switch to session in quick slot 3"}, + {"display":"@session.quick_switch.4","description":"Switch to session in quick slot 4"}, + {"display":"@session.quick_switch.5","description":"Switch to session in quick slot 5"}, + {"display":"@session.quick_switch.6","description":"Switch to session in quick slot 6"}, + {"display":"@session.quick_switch.7","description":"Switch to session in quick slot 7"}, + {"display":"@session.quick_switch.8","description":"Switch to session in quick slot 8"}, + {"display":"@session.quick_switch.9","description":"Switch to session in quick slot 9"}, + {"display":"@session.tab.select.1","description":"Switch to session tab 1"}, + {"display":"@session.tab.select.2","description":"Switch to session tab 2"}, + {"display":"@session.tab.select.3","description":"Switch to session tab 3"}, + {"display":"@session.tab.select.4","description":"Switch to session tab 4"}, + {"display":"@session.tab.select.5","description":"Switch to session tab 5"}, + {"display":"@session.tab.select.6","description":"Switch to session tab 6"}, + {"display":"@session.tab.select.7","description":"Switch to session tab 7"}, + {"display":"@session.tab.select.8","description":"Switch to session tab 8"}, + {"display":"@session.tab.select.9","description":"Switch to session tab 9"}, + {"display":"@session.tab.select.10","description":"Switch to session tab 10"}, + {"display":"@stash.delete","description":"Delete stash entry"}, + {"display":"@model.dialog.provider","description":"Open provider list from model dialog"}, + {"display":"@model.dialog.favorite","description":"Toggle model favorite status"}, + {"display":"@model.dialog.usage","description":"Open usage limits from model dialog"}, + {"display":"@model.list","description":"List available models"}, + {"display":"@model.cycle_recent","description":"Next recently used model"}, + {"display":"@model.cycle_recent_reverse","description":"Previous recently used model"}, + {"display":"@model.cycle_favorite","description":"Next favorite model"}, + {"display":"@model.cycle_favorite_reverse","description":"Previous favorite model"}, + {"display":"@mcp.list","description":"List MCP servers"}, + {"display":"@usage.show","description":"View usage limits"}, + {"display":"@provider.connect","description":"Connect integration"}, + {"display":"@agent.list","description":"List agents"}, + {"display":"@agent.cycle","description":"Next agent"}, + {"display":"@agent.cycle.reverse","description":"Previous agent"}, + {"display":"@variant.cycle","description":"Cycle model variants"}, + {"display":"@variant.list","description":"List model variants"}, + {"display":"@session.page.up","description":"Scroll messages up by one page"}, + {"display":"@session.page.down","description":"Scroll messages down by one page"}, + {"display":"@session.line.up","description":"Scroll messages up by one line"}, + {"display":"@session.line.down","description":"Scroll messages down by one line"}, + {"display":"@session.half.page.up","description":"Scroll messages up by half page"}, + {"display":"@session.half.page.down","description":"Scroll messages down by half page"}, + {"display":"@session.first","description":"Navigate to first message"}, + {"display":"@session.last","description":"Navigate to last message"}, + {"display":"@session.message.next","description":"Navigate to next message"}, + {"display":"@session.message.previous","description":"Navigate to previous message"}, + {"display":"@session.message.user.next","description":"Navigate to next user message"}, + {"display":"@session.message.user.previous","description":"Navigate to previous user message"}, + {"display":"@session.messages_last_user","description":"Navigate to last user message"}, + {"display":"@messages.copy","description":"Copy message"}, + {"display":"@session.undo","description":"Undo message"}, + {"display":"@session.redo","description":"Redo message"}, + {"display":"@session.toggle.thinking","description":"Toggle thinking blocks visibility"}, + {"display":"@prompt.submit","description":"Submit prompt"}, + {"display":"@prompt.queue","description":"Queue prompt"}, + {"display":"@prompt.editor_context.clear","description":"Clear editor context"}, + {"display":"@prompt.images.view","description":"View image attachments"}, + {"display":"@prompt.skills","description":"Open skill selector"}, + {"display":"@prompt.stash","description":"Stash prompt"}, + {"display":"@prompt.stash.pop","description":"Pop stashed prompt"}, + {"display":"@prompt.stash.list","description":"List stashed prompts"}, + {"display":"@prompt.clear","description":"Clear input field"}, + {"display":"@prompt.paste","description":"Paste from clipboard"}, + {"display":"@input.submit","description":"Submit input"}, + {"display":"@input.newline","description":"Insert newline in input"}, + {"display":"@input.move.left","description":"Move cursor left in input"}, + {"display":"@input.move.right","description":"Move cursor right in input"}, + {"display":"@input.move.up","description":"Move cursor up in input"}, + {"display":"@input.move.down","description":"Move cursor down in input"}, + {"display":"@input.select.left","description":"Select left in input"}, + {"display":"@input.select.right","description":"Select right in input"}, + {"display":"@input.select.up","description":"Select up in input"}, + {"display":"@input.select.down","description":"Select down in input"}, + {"display":"@input.line.home","description":"Move to start of line in input"}, + {"display":"@input.line.end","description":"Move to end of line in input"}, + {"display":"@input.select.line.home","description":"Select to start of line in input"}, + {"display":"@input.select.line.end","description":"Select to end of line in input"}, + {"display":"@input.visual.line.home","description":"Move to start of visual line in input"}, + {"display":"@input.visual.line.end","description":"Move to end of visual line in input"}, + {"display":"@input.select.visual.line.home","description":"Select to start of visual line in input"}, + {"display":"@input.select.visual.line.end","description":"Select to end of visual line in input"}, + {"display":"@input.buffer.home","description":"Move to start of buffer in input"}, + {"display":"@input.buffer.end","description":"Move to end of buffer in input"}, + {"display":"@input.select.buffer.home","description":"Select to start of buffer in input"}, + {"display":"@input.select.buffer.end","description":"Select to end of buffer in input"}, + {"display":"@input.delete.line","description":"Delete line in input"}, + {"display":"@input.delete.to.line.end","description":"Delete to end of line in input"}, + {"display":"@input.delete.to.line.start","description":"Delete to start of line in input"}, + {"display":"@input.backspace","description":"Backspace in input"}, + {"display":"@input.delete","description":"Delete character in input"}, + {"display":"@input.undo","description":"Undo in input"}, + {"display":"@input.redo","description":"Redo in input"}, + {"display":"@input.word.forward","description":"Move word forward in input"}, + {"display":"@input.word.backward","description":"Move word backward in input"}, + {"display":"@input.select.word.forward","description":"Select word forward in input"}, + {"display":"@input.select.word.backward","description":"Select word backward in input"}, + {"display":"@input.delete.word.forward","description":"Delete word forward in input"}, + {"display":"@input.delete.word.backward","description":"Delete word backward in input"}, + {"display":"@input.select.all","description":"Select all in input"}, + {"display":"@prompt.history.previous","description":"Previous history item"}, + {"display":"@prompt.history.next","description":"Next history item"}, + {"display":"@composer.subagent.up","description":"Previous subagent"}, + {"display":"@composer.subagent.down","description":"Next subagent"}, + {"display":"@composer.subagent.select","description":"Navigate to subagent"}, + {"display":"@composer.subagent.interrupt","description":"Interrupt subagent"}, + {"display":"@composer.shell.up","description":"Previous shell"}, + {"display":"@composer.shell.down","description":"Next shell"}, + {"display":"@composer.shell.select","description":"View shell output"}, + {"display":"@composer.shell.kill","description":"Kill shell command"}, + {"display":"@composer.script.up","description":"Previous script"}, + {"display":"@composer.script.down","description":"Next script"}, + {"display":"@composer.script.cancel","description":"Cancel script"}, + {"display":"@composer.terminal.up","description":"Previous terminal"}, + {"display":"@composer.terminal.down","description":"Next terminal"}, + {"display":"@composer.terminal.select","description":"Select terminal"}, + {"display":"@dialog.select.prev","description":"Move to previous dialog item"}, + {"display":"@dialog.select.next","description":"Move to next dialog item"}, + {"display":"@dialog.select.page_up","description":"Move up one page in dialog"}, + {"display":"@dialog.select.page_down","description":"Move down one page in dialog"}, + {"display":"@dialog.select.home","description":"Move to first dialog item"}, + {"display":"@dialog.select.end","description":"Move to last dialog item"}, + {"display":"@dialog.select.submit","description":"Submit selected dialog item"}, + {"display":"@dialog.prompt.submit","description":"Submit dialog prompt"}, + {"display":"@dialog.integration.rename","description":"Rename integration account"}, + {"display":"@dialog.integration.delete","description":"Delete integration account"}, + {"display":"@dialog.integration.copy","description":"Copy authorization link"}, + {"display":"@dialog.worktree.generate","description":"Generate worktree name"}, + {"display":"@dialog.move_session.new","description":"New worktree"}, + {"display":"@dialog.move_session.move","description":"Move session to worktree"}, + {"display":"@dialog.move_session.delete","description":"Delete worktree"}, + {"display":"@dialog.move_session.refresh","description":"Refresh worktrees"}, + {"display":"@prompt.autocomplete.prev","description":"Move to previous autocomplete item"}, + {"display":"@prompt.autocomplete.next","description":"Move to next autocomplete item"}, + {"display":"@prompt.autocomplete.hide","description":"Hide autocomplete"}, + {"display":"@prompt.autocomplete.select","description":"Select autocomplete item"}, + {"display":"@prompt.autocomplete.complete","description":"Complete autocomplete item"}, + {"display":"@permission.prompt.fullscreen","description":"Toggle permission prompt fullscreen"}, + {"display":"@plugins.toggle","description":"Toggle plugin"}, + {"display":"@dialog.mcp.toggle","description":"Toggle MCP server"}, + {"display":"@dialog.plugins.error","description":"View plugin error"}, + {"display":"@dialog.plugins.update","description":"Update plugin from plugin dialog"}, + {"display":"@dialog.plugins.check","description":"Check for plugin updates from plugin dialog"}, + {"display":"@terminal.suspend","description":"Suspend terminal"}, + {"display":"@terminal.title.toggle","description":"Toggle terminal title"}, + {"display":"@plugins.list","description":"Open plugin manager dialog"}, + {"display":"@which-key.toggle","description":"Toggle which-key panel"}, + {"display":"@which-key.layout.toggle","description":"Switch which-key layout"}, + {"display":"@which-key.pending.toggle","description":"Toggle which-key pending preview"}, + {"display":"@which-key.group.previous","description":"Previous which-key group"}, + {"display":"@which-key.group.next","description":"Next which-key group"}, + {"display":"@which-key.scroll.up","description":"Scroll which-key up"}, + {"display":"@which-key.scroll.down","description":"Scroll which-key down"}, + {"display":"@which-key.page.up","description":"Page which-key up"}, + {"display":"@which-key.page.down","description":"Page which-key down"}, + {"display":"@which-key.home","description":"Jump to first which-key binding"}, + {"display":"@which-key.end","description":"Jump to last which-key binding"} + ] + }, + "cases": [ + {"mode":"command","query":"s","results":[58,71,73,74,80,111,57,81,72,15]}, + {"mode":"command","query":"se","results":[73,74,61,58,15,60,57,79,90,71]}, + {"mode":"command","query":"ses","results":[73,74,61,58,60,79,90,57,81,71]}, + {"mode":"command","query":"session","results":[73,74,81,61,58,60,79,90,57,59]}, + {"mode":"command","query":"model","results":[115,118,116,113,119,114,117,112,127,126]}, + {"mode":"command","query":"mod fav","results":[118,113,119]}, + {"mode":"command","query":"prompt","results":[146,150,145,151,152,153,154,149,43,148]}, + {"mode":"command","query":"pr","results":[150,146,145,151,152,191,153,154,149,43]}, + {"mode":"command","query":"app","results":[1,3,5,2,4,8,6,7,9,150]}, + {"mode":"command","query":"x","results":[1,56,198,124,202,194,205,192,118,241]}, + {"mode":"command","query":"undo","results":[182,142,83,78,194,67,236,209,117,233]}, + {"mode":"command","query":"tab","results":[69,104,108,103,105,106,109,107,102,101]}, + {"mode":"command","query":"q","results":[83,84,146,82,94,93,97,98,96,95]}, + {"mode":"command","query":"zzz","results":[]}, + {"mode":"reference","query":"s","results":[81,14,60,135,57,61,142,111,72,59]}, + {"mode":"reference","query":"se","results":[81,60,14,142,61,59,143,135,72,57]}, + {"mode":"reference","query":"ses","results":[81,60,59,143,135,57,142,72,61,134]}, + {"mode":"reference","query":"session","results":[81,60,59,143,135,57,142,72,61,134]}, + {"mode":"reference","query":"model","results":[115,116,114,118,113,112,117,119,46,221]}, + {"mode":"reference","query":"mod fav","results":[118,113,119]}, + {"mode":"reference","query":"prompt","results":[146,153,150,154,145,149,43,151,152,148]}, + {"mode":"reference","query":"pr","results":[154,150,146,153,43,145,149,122,151,152]}, + {"mode":"reference","query":"app","results":[1,3,5,2,4,8,6,7,9]}, + {"mode":"reference","query":"x","results":[]}, + {"mode":"reference","query":"undo","results":[182,142,83]}, + {"mode":"reference","query":"tab","results":[63,69,70,103,64,102,104,106,105,101]}, + {"mode":"reference","query":"q","results":[83,84,146,94,95,93,98,97,96,92]}, + {"mode":"reference","query":"zzz","results":[]} + ] +} diff --git a/packages/cli-rs/parity/fixtures/E.3/shell-mode.app.json b/packages/cli-rs/parity/fixtures/E.3/shell-mode.app.json new file mode 100644 index 000000000000..cf2df8301403 --- /dev/null +++ b/packages/cli-rs/parity/fixtures/E.3/shell-mode.app.json @@ -0,0 +1,58 @@ +{ + "scenario": "E.3/shell-mode", + "width": 100, + "height": 30, + "directory": "/tmp/opencode/packages/tui", + "config": { + "animations": false, + "experimental": {"new-designs":true}, + "theme": {"name":"opencode"} + }, + "args": { + "sessionID": "ses_b" + }, + "routes": [ + {"path":"/api/session/ses_b","json":{"data":{"id":"ses_b","title":"Fix the parser","projectID":"proj_test","cost":0,"tokens":{"input":0,"output":0,"reasoning":0,"cache":{"read":0,"write":0}},"time":{"created":2,"updated":2},"location":{"directory":"/tmp/opencode/packages/tui"}}}}, + {"path":"/api/session/ses_b/message","json":{"data":[{"id":"msg_1","type":"user","text":"Why does the parser fail?","time":{"created":1}}],"cursor":{}}}, + {"path":"/api/session/ses_b/inbox","json":{"data":[]}} + ], + "steps": [ + {"checkpoint":"open","until":"Why does the parser fail?","fixture":"E.3/shell-mode/open"}, + {"type":"!"}, + {"checkpoint":"shell","until":"exit shell mode","fixture":"E.3/shell-mode/shell"} + ], + "requests": { + "writes": [], + "reads": [ + {"method":"GET","path":"/api/agent","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":[]}}, + {"method":"GET","path":"/api/command","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":[]}}, + {"method":"GET","path":"/api/config","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":[]}, + {"method":"GET","path":"/api/experimental/job","query":{"descendants":["true"],"sessionID":["ses_b"],"status":["running"]},"status":200,"json":{"data":[]}}, + {"method":"GET","path":"/api/experimental/migration/v1","query":{},"status":200,"json":{"status":"completed"}}, + {"method":"GET","path":"/api/experimental/session/ses_b/terminal","query":{},"status":200,"json":{"data":[]}}, + {"method":"GET","path":"/api/form","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode"}},"data":[]}}, + {"method":"GET","path":"/api/fs/list","query":{"location[directory]":["<cwd>"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":[]}}, + {"method":"GET","path":"/api/info","query":{},"status":200,"json":{"version":"test","pid":0,"urls":[],"paths":{"tmp":"/tmp"},"capabilities":{"persistentPty":true}}}, + {"method":"GET","path":"/api/integration","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":[]}}, + {"method":"GET","path":"/api/location","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}}}, + {"method":"GET","path":"/api/mcp","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":[]}}, + {"method":"GET","path":"/api/mcp/resource","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":{"resources":[],"templates":[]}}}, + {"method":"GET","path":"/api/model","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":[]}}, + {"method":"GET","path":"/api/plugin","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":[]}}, + {"method":"GET","path":"/api/project","query":{},"status":200,"json":[]}, + {"method":"GET","path":"/api/provider","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":[]}}, + {"method":"GET","path":"/api/reference","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode/packages/tui","canonical":"/tmp/opencode/packages/tui"}},"data":[]}}, + {"method":"GET","path":"/api/session","query":{"limit":["200"],"order":["desc"],"parentID":["ses_b"]},"status":200,"json":{"data":[],"cursor":{}}}, + {"method":"GET","path":"/api/session/active","query":{},"status":200,"json":{"data":{}}}, + {"method":"GET","path":"/api/session/ses_b","query":{},"status":200,"json":{"data":{"id":"ses_b","title":"Fix the parser","projectID":"proj_test","cost":0,"tokens":{"input":0,"output":0,"reasoning":0,"cache":{"read":0,"write":0}},"time":{"created":2,"updated":2},"location":{"directory":"/tmp/opencode/packages/tui"}}}}, + {"method":"GET","path":"/api/session/ses_b/form","query":{},"status":200,"json":{"data":[]}}, + {"method":"GET","path":"/api/session/ses_b/inbox","query":{},"status":200,"json":{"data":[]}}, + {"method":"GET","path":"/api/session/ses_b/message","query":{"limit":["20"],"order":["desc"]},"status":200,"json":{"data":[{"id":"msg_1","type":"user","text":"Why does the parser fail?","time":{"created":1}}],"cursor":{}}}, + {"method":"GET","path":"/api/session/ses_b/permission","query":{},"status":200,"json":{"data":[]}}, + {"method":"GET","path":"/api/shell","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":[]}}, + {"method":"GET","path":"/api/skill","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":[]}}, + {"method":"GET","path":"/api/vcs","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":{"branch":{"current":"main","default":"main"}}}}, + {"method":"POST","path":"/api/rpc/opencode.goal/get","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"body":{"input":{"sessionID":"ses_b"}},"status":200,"json":{"output":null}} + ] + } +} diff --git a/packages/cli-rs/parity/fixtures/E.3/shell-mode/open.json b/packages/cli-rs/parity/fixtures/E.3/shell-mode/open.json new file mode 100644 index 000000000000..2efa8f50ecf5 --- /dev/null +++ b/packages/cli-rs/parity/fixtures/E.3/shell-mode/open.json @@ -0,0 +1,32 @@ +{"width":100,"height":30,"styles":["#ffffffff #202020ff 0","#ffffffff #202020ff 1","#808080ff #080808ff 0","#ffffffff #080808ff 0","#7699feff #141414ff 0","#ffffffff #141414ff 0","#484848ff #080808ff 0","#202020ff #080808ff 0"],"lines":[ +[" Fix the parser + ",[[0,3],[1,14],[0,15],[2,3],[3,65]]], +[" ",[[3,100]]], +[" ┃ ",[[3,2],[4,1],[5,95],[3,2]]], +[" ┃ Why does the parser fail? ",[[3,2],[4,1],[5,95],[3,2]]], +[" ┃ ",[[3,2],[4,1],[5,95],[3,2]]], +[" ",[[3,100]]], +[" ",[[3,100]]], +[" ",[[3,100]]], +[" ",[[3,100]]], +[" ",[[3,100]]], +[" ",[[3,100]]], +[" ",[[3,100]]], +[" ",[[3,100]]], +[" ",[[3,100]]], +[" ",[[3,100]]], +[" ",[[3,100]]], +[" ",[[3,100]]], +[" ",[[3,100]]], +[" ",[[3,100]]], +[" ",[[3,100]]], +[" ",[[3,100]]], +[" ",[[3,100]]], +[" ",[[3,100]]], +[" ┃ ",[[3,2],[6,1],[0,95],[3,2]]], +[" ┃ ",[[3,2],[6,1],[0,95],[3,2]]], +[" ┃ ",[[3,2],[6,1],[0,95],[3,2]]], +[" ┃ ",[[3,2],[6,1],[0,95],[3,2]]], +[" ╹▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀ ",[[3,2],[6,1],[7,95],[3,2]]], +[" /tmp/opencode/packages/tui:main shift+tab agents ctrl+p commands ",[[3,2],[2,31],[3,42],[2,6],[3,9],[2,8],[3,2]]], +[" ",[[3,100]]] +]} diff --git a/packages/cli-rs/parity/fixtures/E.3/shell-mode/shell.json b/packages/cli-rs/parity/fixtures/E.3/shell-mode/shell.json new file mode 100644 index 000000000000..bf9fab476462 --- /dev/null +++ b/packages/cli-rs/parity/fixtures/E.3/shell-mode/shell.json @@ -0,0 +1,32 @@ +{"width":100,"height":30,"styles":["#ffffffff #202020ff 0","#ffffffff #202020ff 1","#808080ff #080808ff 0","#ffffffff #080808ff 0","#7699feff #141414ff 0","#ffffffff #141414ff 0","#a383e2ff #080808ff 0","#a383e2ff #202020ff 0","#202020ff #080808ff 0"],"lines":[ +[" Fix the parser + ",[[0,3],[1,14],[0,15],[2,3],[3,65]]], +[" ",[[3,100]]], +[" ┃ ",[[3,2],[4,1],[5,95],[3,2]]], +[" ┃ Why does the parser fail? ",[[3,2],[4,1],[5,95],[3,2]]], +[" ┃ ",[[3,2],[4,1],[5,95],[3,2]]], +[" ",[[3,100]]], +[" ",[[3,100]]], +[" ",[[3,100]]], +[" ",[[3,100]]], +[" ",[[3,100]]], +[" ",[[3,100]]], +[" ",[[3,100]]], +[" ",[[3,100]]], +[" ",[[3,100]]], +[" ",[[3,100]]], +[" ",[[3,100]]], +[" ",[[3,100]]], +[" ",[[3,100]]], +[" ",[[3,100]]], +[" ",[[3,100]]], +[" ",[[3,100]]], +[" ",[[3,100]]], +[" ",[[3,100]]], +[" ┃ ",[[3,2],[6,1],[0,95],[3,2]]], +[" ┃ ",[[3,2],[6,1],[0,95],[3,2]]], +[" ┃ ",[[3,2],[6,1],[0,95],[3,2]]], +[" ┃ Shell ",[[3,2],[6,1],[0,2],[7,5],[0,88],[3,2]]], +[" ╹▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀ ",[[3,2],[6,1],[8,95],[3,2]]], +[" /tmp/opencode/packages/tui:main esc exit shell mode ",[[3,2],[2,31],[3,50],[2,15],[3,2]]], +[" ",[[3,100]]] +]} diff --git a/packages/cli-rs/parity/fixtures/E.4/paste.app.json b/packages/cli-rs/parity/fixtures/E.4/paste.app.json new file mode 100644 index 000000000000..17d4a8ff361a --- /dev/null +++ b/packages/cli-rs/parity/fixtures/E.4/paste.app.json @@ -0,0 +1,64 @@ +{ + "scenario": "E.4/paste", + "width": 100, + "height": 30, + "directory": "/tmp/opencode/packages/tui", + "config": { + "animations": false, + "experimental": {"new-designs":true}, + "theme": {"name":"opencode"} + }, + "args": { + "sessionID": "ses_b" + }, + "routes": [ + {"path":"/api/session/ses_b","json":{"data":{"id":"ses_b","title":"Fix the parser","projectID":"proj_test","cost":0,"tokens":{"input":0,"output":0,"reasoning":0,"cache":{"read":0,"write":0}},"time":{"created":2,"updated":2},"location":{"directory":"/tmp/opencode/packages/tui"}}}}, + {"path":"/api/session/ses_b/message","json":{"data":[{"id":"msg_1","type":"user","text":"Why does the parser fail?","time":{"created":1}}],"cursor":{}}}, + {"path":"/api/session/ses_b/inbox","json":{"data":[]}} + ], + "steps": [ + {"checkpoint":"open","until":"Why does the parser fail?","fixture":"E.4/paste/open"}, + {"type":"see "}, + {"paste":"first line\nsecond line\nthird line"}, + {"checkpoint":"compact","until":"[Pasted ~3 lines]","fixture":"E.4/paste/compact"}, + {"paste":"first line\nsecond line\nthird line"}, + {"checkpoint":"expanded","until":"third line","fixture":"E.4/paste/expanded"}, + {"keys":["ctrl+c"]}, + {"paste":"short \u001b[31mred\u001b[0m paste"}, + {"checkpoint":"short","until":"short red paste","fixture":"E.4/paste/short"} + ], + "requests": { + "writes": [], + "reads": [ + {"method":"GET","path":"/api/agent","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":[]}}, + {"method":"GET","path":"/api/command","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":[]}}, + {"method":"GET","path":"/api/config","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":[]}, + {"method":"GET","path":"/api/experimental/job","query":{"descendants":["true"],"sessionID":["ses_b"],"status":["running"]},"status":200,"json":{"data":[]}}, + {"method":"GET","path":"/api/experimental/migration/v1","query":{},"status":200,"json":{"status":"completed"}}, + {"method":"GET","path":"/api/experimental/session/ses_b/terminal","query":{},"status":200,"json":{"data":[]}}, + {"method":"GET","path":"/api/form","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode"}},"data":[]}}, + {"method":"GET","path":"/api/fs/list","query":{"location[directory]":["<cwd>"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":[]}}, + {"method":"GET","path":"/api/info","query":{},"status":200,"json":{"version":"test","pid":0,"urls":[],"paths":{"tmp":"/tmp"},"capabilities":{"persistentPty":true}}}, + {"method":"GET","path":"/api/integration","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":[]}}, + {"method":"GET","path":"/api/location","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}}}, + {"method":"GET","path":"/api/mcp","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":[]}}, + {"method":"GET","path":"/api/mcp/resource","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":{"resources":[],"templates":[]}}}, + {"method":"GET","path":"/api/model","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":[]}}, + {"method":"GET","path":"/api/plugin","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":[]}}, + {"method":"GET","path":"/api/project","query":{},"status":200,"json":[]}, + {"method":"GET","path":"/api/provider","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":[]}}, + {"method":"GET","path":"/api/reference","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode/packages/tui","canonical":"/tmp/opencode/packages/tui"}},"data":[]}}, + {"method":"GET","path":"/api/session","query":{"limit":["200"],"order":["desc"],"parentID":["ses_b"]},"status":200,"json":{"data":[],"cursor":{}}}, + {"method":"GET","path":"/api/session/active","query":{},"status":200,"json":{"data":{}}}, + {"method":"GET","path":"/api/session/ses_b","query":{},"status":200,"json":{"data":{"id":"ses_b","title":"Fix the parser","projectID":"proj_test","cost":0,"tokens":{"input":0,"output":0,"reasoning":0,"cache":{"read":0,"write":0}},"time":{"created":2,"updated":2},"location":{"directory":"/tmp/opencode/packages/tui"}}}}, + {"method":"GET","path":"/api/session/ses_b/form","query":{},"status":200,"json":{"data":[]}}, + {"method":"GET","path":"/api/session/ses_b/inbox","query":{},"status":200,"json":{"data":[]}}, + {"method":"GET","path":"/api/session/ses_b/message","query":{"limit":["20"],"order":["desc"]},"status":200,"json":{"data":[{"id":"msg_1","type":"user","text":"Why does the parser fail?","time":{"created":1}}],"cursor":{}}}, + {"method":"GET","path":"/api/session/ses_b/permission","query":{},"status":200,"json":{"data":[]}}, + {"method":"GET","path":"/api/shell","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":[]}}, + {"method":"GET","path":"/api/skill","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":[]}}, + {"method":"GET","path":"/api/vcs","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":{"branch":{"current":"main","default":"main"}}}}, + {"method":"POST","path":"/api/rpc/opencode.goal/get","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"body":{"input":{"sessionID":"ses_b"}},"status":200,"json":{"output":null}} + ] + } +} diff --git a/packages/cli-rs/parity/fixtures/E.4/paste/compact.json b/packages/cli-rs/parity/fixtures/E.4/paste/compact.json new file mode 100644 index 000000000000..2722f9a7f6c5 --- /dev/null +++ b/packages/cli-rs/parity/fixtures/E.4/paste/compact.json @@ -0,0 +1,32 @@ +{"width":100,"height":30,"styles":["#ffffffff #202020ff 0","#ffffffff #202020ff 1","#808080ff #080808ff 0","#ffffffff #080808ff 0","#7699feff #141414ff 0","#ffffffff #141414ff 0","#484848ff #080808ff 0","#080808ff #f5a742ff 1","#202020ff #080808ff 0"],"lines":[ +[" Fix the parser + ",[[0,3],[1,14],[0,15],[2,3],[3,65]]], +[" ",[[3,100]]], +[" ┃ ",[[3,2],[4,1],[5,95],[3,2]]], +[" ┃ Why does the parser fail? ",[[3,2],[4,1],[5,95],[3,2]]], +[" ┃ ",[[3,2],[4,1],[5,95],[3,2]]], +[" ",[[3,100]]], +[" ",[[3,100]]], +[" ",[[3,100]]], +[" ",[[3,100]]], +[" ",[[3,100]]], +[" ",[[3,100]]], +[" ",[[3,100]]], +[" ",[[3,100]]], +[" ",[[3,100]]], +[" ",[[3,100]]], +[" ",[[3,100]]], +[" ",[[3,100]]], +[" ",[[3,100]]], +[" ",[[3,100]]], +[" ",[[3,100]]], +[" ",[[3,100]]], +[" ",[[3,100]]], +[" ",[[3,100]]], +[" ┃ ",[[3,2],[6,1],[0,95],[3,2]]], +[" ┃ see [Pasted ~3 lines] ",[[3,2],[6,1],[0,6],[7,17],[0,72],[3,2]]], +[" ┃ ",[[3,2],[6,1],[0,95],[3,2]]], +[" ┃ ",[[3,2],[6,1],[0,95],[3,2]]], +[" ╹▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀ ",[[3,2],[6,1],[8,95],[3,2]]], +[" /tmp/opencode/packages/tui:main shift+tab agents ctrl+p commands ",[[3,2],[2,31],[3,42],[2,6],[3,9],[2,8],[3,2]]], +[" ",[[3,100]]] +]} diff --git a/packages/cli-rs/parity/fixtures/E.4/paste/expanded.json b/packages/cli-rs/parity/fixtures/E.4/paste/expanded.json new file mode 100644 index 000000000000..6c525dc00722 --- /dev/null +++ b/packages/cli-rs/parity/fixtures/E.4/paste/expanded.json @@ -0,0 +1,32 @@ +{"width":100,"height":30,"styles":["#ffffffff #202020ff 0","#ffffffff #202020ff 1","#808080ff #080808ff 0","#ffffffff #080808ff 0","#7699feff #141414ff 0","#ffffffff #141414ff 0","#484848ff #080808ff 0","#202020ff #080808ff 0"],"lines":[ +[" Fix the parser + ",[[0,3],[1,14],[0,15],[2,3],[3,65]]], +[" ",[[3,100]]], +[" ┃ ",[[3,2],[4,1],[5,95],[3,2]]], +[" ┃ Why does the parser fail? ",[[3,2],[4,1],[5,95],[3,2]]], +[" ┃ ",[[3,2],[4,1],[5,95],[3,2]]], +[" ",[[3,100]]], +[" ",[[3,100]]], +[" ",[[3,100]]], +[" ",[[3,100]]], +[" ",[[3,100]]], +[" ",[[3,100]]], +[" ",[[3,100]]], +[" ",[[3,100]]], +[" ",[[3,100]]], +[" ",[[3,100]]], +[" ",[[3,100]]], +[" ",[[3,100]]], +[" ",[[3,100]]], +[" ",[[3,100]]], +[" ",[[3,100]]], +[" ",[[3,100]]], +[" ┃ ",[[3,2],[6,1],[0,95],[3,2]]], +[" ┃ see first line ",[[3,2],[6,1],[0,95],[3,2]]], +[" ┃ second line ",[[3,2],[6,1],[0,95],[3,2]]], +[" ┃ third line ",[[3,2],[6,1],[0,95],[3,2]]], +[" ┃ ",[[3,2],[6,1],[0,95],[3,2]]], +[" ┃ ",[[3,2],[6,1],[0,95],[3,2]]], +[" ╹▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀ ",[[3,2],[6,1],[7,95],[3,2]]], +[" /tmp/opencode/packages/tui:main shift+tab agents ctrl+p commands ",[[3,2],[2,31],[3,42],[2,6],[3,9],[2,8],[3,2]]], +[" ",[[3,100]]] +]} diff --git a/packages/cli-rs/parity/fixtures/E.4/paste/open.json b/packages/cli-rs/parity/fixtures/E.4/paste/open.json new file mode 100644 index 000000000000..2efa8f50ecf5 --- /dev/null +++ b/packages/cli-rs/parity/fixtures/E.4/paste/open.json @@ -0,0 +1,32 @@ +{"width":100,"height":30,"styles":["#ffffffff #202020ff 0","#ffffffff #202020ff 1","#808080ff #080808ff 0","#ffffffff #080808ff 0","#7699feff #141414ff 0","#ffffffff #141414ff 0","#484848ff #080808ff 0","#202020ff #080808ff 0"],"lines":[ +[" Fix the parser + ",[[0,3],[1,14],[0,15],[2,3],[3,65]]], +[" ",[[3,100]]], +[" ┃ ",[[3,2],[4,1],[5,95],[3,2]]], +[" ┃ Why does the parser fail? ",[[3,2],[4,1],[5,95],[3,2]]], +[" ┃ ",[[3,2],[4,1],[5,95],[3,2]]], +[" ",[[3,100]]], +[" ",[[3,100]]], +[" ",[[3,100]]], +[" ",[[3,100]]], +[" ",[[3,100]]], +[" ",[[3,100]]], +[" ",[[3,100]]], +[" ",[[3,100]]], +[" ",[[3,100]]], +[" ",[[3,100]]], +[" ",[[3,100]]], +[" ",[[3,100]]], +[" ",[[3,100]]], +[" ",[[3,100]]], +[" ",[[3,100]]], +[" ",[[3,100]]], +[" ",[[3,100]]], +[" ",[[3,100]]], +[" ┃ ",[[3,2],[6,1],[0,95],[3,2]]], +[" ┃ ",[[3,2],[6,1],[0,95],[3,2]]], +[" ┃ ",[[3,2],[6,1],[0,95],[3,2]]], +[" ┃ ",[[3,2],[6,1],[0,95],[3,2]]], +[" ╹▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀ ",[[3,2],[6,1],[7,95],[3,2]]], +[" /tmp/opencode/packages/tui:main shift+tab agents ctrl+p commands ",[[3,2],[2,31],[3,42],[2,6],[3,9],[2,8],[3,2]]], +[" ",[[3,100]]] +]} diff --git a/packages/cli-rs/parity/fixtures/E.4/paste/short.json b/packages/cli-rs/parity/fixtures/E.4/paste/short.json new file mode 100644 index 000000000000..f11e83d46fd8 --- /dev/null +++ b/packages/cli-rs/parity/fixtures/E.4/paste/short.json @@ -0,0 +1,32 @@ +{"width":100,"height":30,"styles":["#ffffffff #202020ff 0","#ffffffff #202020ff 1","#808080ff #080808ff 0","#ffffffff #080808ff 0","#7699feff #141414ff 0","#ffffffff #141414ff 0","#484848ff #080808ff 0","#202020ff #080808ff 0"],"lines":[ +[" Fix the parser + ",[[0,3],[1,14],[0,15],[2,3],[3,65]]], +[" ",[[3,100]]], +[" ┃ ",[[3,2],[4,1],[5,95],[3,2]]], +[" ┃ Why does the parser fail? ",[[3,2],[4,1],[5,95],[3,2]]], +[" ┃ ",[[3,2],[4,1],[5,95],[3,2]]], +[" ",[[3,100]]], +[" ",[[3,100]]], +[" ",[[3,100]]], +[" ",[[3,100]]], +[" ",[[3,100]]], +[" ",[[3,100]]], +[" ",[[3,100]]], +[" ",[[3,100]]], +[" ",[[3,100]]], +[" ",[[3,100]]], +[" ",[[3,100]]], +[" ",[[3,100]]], +[" ",[[3,100]]], +[" ",[[3,100]]], +[" ",[[3,100]]], +[" ",[[3,100]]], +[" ",[[3,100]]], +[" ",[[3,100]]], +[" ┃ ",[[3,2],[6,1],[0,95],[3,2]]], +[" ┃ short red paste ",[[3,2],[6,1],[0,95],[3,2]]], +[" ┃ ",[[3,2],[6,1],[0,95],[3,2]]], +[" ┃ ",[[3,2],[6,1],[0,95],[3,2]]], +[" ╹▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀ ",[[3,2],[6,1],[7,95],[3,2]]], +[" /tmp/opencode/packages/tui:main shift+tab agents ctrl+p commands ",[[3,2],[2,31],[3,42],[2,6],[3,9],[2,8],[3,2]]], +[" ",[[3,100]]] +]} diff --git a/packages/cli-rs/parity/fixtures/E.5/ide.app.json b/packages/cli-rs/parity/fixtures/E.5/ide.app.json new file mode 100644 index 000000000000..559c941e3b96 --- /dev/null +++ b/packages/cli-rs/parity/fixtures/E.5/ide.app.json @@ -0,0 +1,65 @@ +{ + "scenario": "E.5/ide", + "width": 100, + "height": 30, + "directory": "/tmp/opencode/packages/tui", + "config": { + "animations": false, + "experimental": {"new-designs":true}, + "theme": {"name":"opencode"} + }, + "args": { + "sessionID": "ses_b" + }, + "routes": [ + {"path":"/api/session/ses_b","json":{"data":{"id":"ses_b","title":"Fix the parser","projectID":"proj_test","cost":0,"tokens":{"input":0,"output":0,"reasoning":0,"cache":{"read":0,"write":0}},"time":{"created":2,"updated":2},"location":{"directory":"/tmp/opencode/packages/tui"}}}}, + {"path":"/api/session/ses_b/message","json":{"data":[{"id":"msg_1","type":"user","text":"Why does the parser fail?","time":{"created":1}}],"cursor":{}}}, + {"path":"/api/session/ses_b/inbox","json":{"data":[]}} + ], + "ide": [ + {"jsonrpc":"2.0","id":1,"method":"initialize","params":{"protocolVersion":"2025-11-25","capabilities":{},"clientInfo":{"name":"opencode","version":"0.0.0"}}}, + {"jsonrpc":"2.0","method":"notifications/initialized"} + ], + "steps": [ + {"checkpoint":"open","until":"Why does the parser fail?","fixture":"E.5/ide/open"}, + {"ide":{"method":"selection_changed","params":{"text":"if (token) {\n return\n}","filePath":"/tmp/opencode/packages/tui/src/parser.ts","selection":{"start":{"line":3,"character":1},"end":{"line":5,"character":2}}}}}, + {"checkpoint":"selected","until":"parser.ts#3-5","fixture":"E.5/ide/selected"}, + {"type":"see "}, + {"ide":{"method":"at_mentioned","params":{"filePath":"/tmp/opencode/packages/tui/src/parser.ts","lineStart":3,"lineEnd":5}}}, + {"checkpoint":"mentioned","until":"see @src/parser.ts#3-5","fixture":"E.5/ide/mentioned"} + ], + "requests": { + "writes": [], + "reads": [ + {"method":"GET","path":"/api/agent","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":[]}}, + {"method":"GET","path":"/api/command","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":[]}}, + {"method":"GET","path":"/api/config","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":[]}, + {"method":"GET","path":"/api/experimental/job","query":{"descendants":["true"],"sessionID":["ses_b"],"status":["running"]},"status":200,"json":{"data":[]}}, + {"method":"GET","path":"/api/experimental/migration/v1","query":{},"status":200,"json":{"status":"completed"}}, + {"method":"GET","path":"/api/experimental/session/ses_b/terminal","query":{},"status":200,"json":{"data":[]}}, + {"method":"GET","path":"/api/form","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode"}},"data":[]}}, + {"method":"GET","path":"/api/fs/list","query":{"location[directory]":["<cwd>"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":[]}}, + {"method":"GET","path":"/api/info","query":{},"status":200,"json":{"version":"test","pid":0,"urls":[],"paths":{"tmp":"/tmp"},"capabilities":{"persistentPty":true}}}, + {"method":"GET","path":"/api/integration","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":[]}}, + {"method":"GET","path":"/api/location","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}}}, + {"method":"GET","path":"/api/mcp","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":[]}}, + {"method":"GET","path":"/api/mcp/resource","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":{"resources":[],"templates":[]}}}, + {"method":"GET","path":"/api/model","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":[]}}, + {"method":"GET","path":"/api/plugin","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":[]}}, + {"method":"GET","path":"/api/project","query":{},"status":200,"json":[]}, + {"method":"GET","path":"/api/provider","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":[]}}, + {"method":"GET","path":"/api/reference","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode/packages/tui","canonical":"/tmp/opencode/packages/tui"}},"data":[]}}, + {"method":"GET","path":"/api/session","query":{"limit":["200"],"order":["desc"],"parentID":["ses_b"]},"status":200,"json":{"data":[],"cursor":{}}}, + {"method":"GET","path":"/api/session/active","query":{},"status":200,"json":{"data":{}}}, + {"method":"GET","path":"/api/session/ses_b","query":{},"status":200,"json":{"data":{"id":"ses_b","title":"Fix the parser","projectID":"proj_test","cost":0,"tokens":{"input":0,"output":0,"reasoning":0,"cache":{"read":0,"write":0}},"time":{"created":2,"updated":2},"location":{"directory":"/tmp/opencode/packages/tui"}}}}, + {"method":"GET","path":"/api/session/ses_b/form","query":{},"status":200,"json":{"data":[]}}, + {"method":"GET","path":"/api/session/ses_b/inbox","query":{},"status":200,"json":{"data":[]}}, + {"method":"GET","path":"/api/session/ses_b/message","query":{"limit":["20"],"order":["desc"]},"status":200,"json":{"data":[{"id":"msg_1","type":"user","text":"Why does the parser fail?","time":{"created":1}}],"cursor":{}}}, + {"method":"GET","path":"/api/session/ses_b/permission","query":{},"status":200,"json":{"data":[]}}, + {"method":"GET","path":"/api/shell","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":[]}}, + {"method":"GET","path":"/api/skill","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":[]}}, + {"method":"GET","path":"/api/vcs","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":{"branch":{"current":"main","default":"main"}}}}, + {"method":"POST","path":"/api/rpc/opencode.goal/get","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"body":{"input":{"sessionID":"ses_b"}},"status":200,"json":{"output":null}} + ] + } +} diff --git a/packages/cli-rs/parity/fixtures/E.5/ide/mentioned.json b/packages/cli-rs/parity/fixtures/E.5/ide/mentioned.json new file mode 100644 index 000000000000..fc846bc723f6 --- /dev/null +++ b/packages/cli-rs/parity/fixtures/E.5/ide/mentioned.json @@ -0,0 +1,32 @@ +{"width":100,"height":30,"styles":["#ffffffff #202020ff 0","#ffffffff #202020ff 1","#808080ff #080808ff 0","#ffffffff #080808ff 0","#7699feff #141414ff 0","#ffffffff #141414ff 0","#484848ff #080808ff 0","#f5a742ff #202020ff 1","#202020ff #080808ff 0","#426097ff #080808ff 0"],"lines":[ +[" Fix the parser + ",[[0,3],[1,14],[0,15],[2,3],[3,65]]], +[" ",[[3,100]]], +[" ┃ ",[[3,2],[4,1],[5,95],[3,2]]], +[" ┃ Why does the parser fail? ",[[3,2],[4,1],[5,95],[3,2]]], +[" ┃ ",[[3,2],[4,1],[5,95],[3,2]]], +[" ",[[3,100]]], +[" ",[[3,100]]], +[" ",[[3,100]]], +[" ",[[3,100]]], +[" ",[[3,100]]], +[" ",[[3,100]]], +[" ",[[3,100]]], +[" ",[[3,100]]], +[" ",[[3,100]]], +[" ",[[3,100]]], +[" ",[[3,100]]], +[" ",[[3,100]]], +[" ",[[3,100]]], +[" ",[[3,100]]], +[" ",[[3,100]]], +[" ",[[3,100]]], +[" ",[[3,100]]], +[" ",[[3,100]]], +[" ┃ ",[[3,2],[6,1],[0,95],[3,2]]], +[" ┃ see @src/parser.ts#3-5 ",[[3,2],[6,1],[0,6],[7,18],[0,71],[3,2]]], +[" ┃ ",[[3,2],[6,1],[0,95],[3,2]]], +[" ┃ ",[[3,2],[6,1],[0,95],[3,2]]], +[" ╹▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀ ",[[3,2],[6,1],[8,95],[3,2]]], +[" /tmp/opencode/packages/tui:main parser.ts#3-5 shift+tab agents ctrl+p commands ",[[3,2],[2,31],[3,17],[9,13],[3,12],[2,6],[3,9],[2,8],[3,2]]], +[" ",[[3,100]]] +]} diff --git a/packages/cli-rs/parity/fixtures/E.5/ide/open.json b/packages/cli-rs/parity/fixtures/E.5/ide/open.json new file mode 100644 index 000000000000..2efa8f50ecf5 --- /dev/null +++ b/packages/cli-rs/parity/fixtures/E.5/ide/open.json @@ -0,0 +1,32 @@ +{"width":100,"height":30,"styles":["#ffffffff #202020ff 0","#ffffffff #202020ff 1","#808080ff #080808ff 0","#ffffffff #080808ff 0","#7699feff #141414ff 0","#ffffffff #141414ff 0","#484848ff #080808ff 0","#202020ff #080808ff 0"],"lines":[ +[" Fix the parser + ",[[0,3],[1,14],[0,15],[2,3],[3,65]]], +[" ",[[3,100]]], +[" ┃ ",[[3,2],[4,1],[5,95],[3,2]]], +[" ┃ Why does the parser fail? ",[[3,2],[4,1],[5,95],[3,2]]], +[" ┃ ",[[3,2],[4,1],[5,95],[3,2]]], +[" ",[[3,100]]], +[" ",[[3,100]]], +[" ",[[3,100]]], +[" ",[[3,100]]], +[" ",[[3,100]]], +[" ",[[3,100]]], +[" ",[[3,100]]], +[" ",[[3,100]]], +[" ",[[3,100]]], +[" ",[[3,100]]], +[" ",[[3,100]]], +[" ",[[3,100]]], +[" ",[[3,100]]], +[" ",[[3,100]]], +[" ",[[3,100]]], +[" ",[[3,100]]], +[" ",[[3,100]]], +[" ",[[3,100]]], +[" ┃ ",[[3,2],[6,1],[0,95],[3,2]]], +[" ┃ ",[[3,2],[6,1],[0,95],[3,2]]], +[" ┃ ",[[3,2],[6,1],[0,95],[3,2]]], +[" ┃ ",[[3,2],[6,1],[0,95],[3,2]]], +[" ╹▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀ ",[[3,2],[6,1],[7,95],[3,2]]], +[" /tmp/opencode/packages/tui:main shift+tab agents ctrl+p commands ",[[3,2],[2,31],[3,42],[2,6],[3,9],[2,8],[3,2]]], +[" ",[[3,100]]] +]} diff --git a/packages/cli-rs/parity/fixtures/E.5/ide/selected.json b/packages/cli-rs/parity/fixtures/E.5/ide/selected.json new file mode 100644 index 000000000000..e64e0886cf23 --- /dev/null +++ b/packages/cli-rs/parity/fixtures/E.5/ide/selected.json @@ -0,0 +1,32 @@ +{"width":100,"height":30,"styles":["#ffffffff #202020ff 0","#ffffffff #202020ff 1","#808080ff #080808ff 0","#ffffffff #080808ff 0","#7699feff #141414ff 0","#ffffffff #141414ff 0","#484848ff #080808ff 0","#202020ff #080808ff 0","#426097ff #080808ff 0"],"lines":[ +[" Fix the parser + ",[[0,3],[1,14],[0,15],[2,3],[3,65]]], +[" ",[[3,100]]], +[" ┃ ",[[3,2],[4,1],[5,95],[3,2]]], +[" ┃ Why does the parser fail? ",[[3,2],[4,1],[5,95],[3,2]]], +[" ┃ ",[[3,2],[4,1],[5,95],[3,2]]], +[" ",[[3,100]]], +[" ",[[3,100]]], +[" ",[[3,100]]], +[" ",[[3,100]]], +[" ",[[3,100]]], +[" ",[[3,100]]], +[" ",[[3,100]]], +[" ",[[3,100]]], +[" ",[[3,100]]], +[" ",[[3,100]]], +[" ",[[3,100]]], +[" ",[[3,100]]], +[" ",[[3,100]]], +[" ",[[3,100]]], +[" ",[[3,100]]], +[" ",[[3,100]]], +[" ",[[3,100]]], +[" ",[[3,100]]], +[" ┃ ",[[3,2],[6,1],[0,95],[3,2]]], +[" ┃ ",[[3,2],[6,1],[0,95],[3,2]]], +[" ┃ ",[[3,2],[6,1],[0,95],[3,2]]], +[" ┃ ",[[3,2],[6,1],[0,95],[3,2]]], +[" ╹▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀ ",[[3,2],[6,1],[7,95],[3,2]]], +[" /tmp/opencode/packages/tui:main parser.ts#3-5 shift+tab agents ctrl+p commands ",[[3,2],[2,31],[3,17],[8,13],[3,12],[2,6],[3,9],[2,8],[3,2]]], +[" ",[[3,100]]] +]} diff --git a/packages/cli-rs/parity/fixtures/E.5/zed.app.json b/packages/cli-rs/parity/fixtures/E.5/zed.app.json new file mode 100644 index 000000000000..15c98e1c90a0 --- /dev/null +++ b/packages/cli-rs/parity/fixtures/E.5/zed.app.json @@ -0,0 +1,59 @@ +{ + "scenario": "E.5/zed", + "width": 100, + "height": 30, + "directory": "/tmp/opencode/packages/tui", + "config": { + "animations": false, + "experimental": {"new-designs":true}, + "theme": {"name":"opencode"} + }, + "args": { + "sessionID": "ses_b" + }, + "routes": [ + {"path":"/api/session/ses_b","json":{"data":{"id":"ses_b","title":"Fix the parser","projectID":"proj_test","cost":0,"tokens":{"input":0,"output":0,"reasoning":0,"cache":{"read":0,"write":0}},"time":{"created":2,"updated":2},"location":{"directory":"/tmp/opencode/packages/tui"}}}}, + {"path":"/api/session/ses_b/message","json":{"data":[{"id":"msg_1","type":"user","text":"Why does the parser fail?","time":{"created":1}}],"cursor":{}}}, + {"path":"/api/session/ses_b/inbox","json":{"data":[]}} + ], + "zed": { + "sql": "create table workspaces (workspace_id integer, paths text, timestamp text);\ncreate table panes (pane_id integer, workspace_id integer, active integer);\ncreate table items (item_id integer, workspace_id integer, pane_id integer, kind text, active integer);\ncreate table editors (item_id integer, workspace_id integer, buffer_path text, contents text);\ncreate table editor_selections (editor_id integer, workspace_id integer, start integer, end integer);\ninsert into workspaces values (1, '[\"/\"]', '2026-11-04 10:00:00');\ninsert into panes values (1, 1, 1);\ninsert into items values (7, 1, 1, 'Editor', 1);\ninsert into editors values (7, 1, '/tmp/opencode/packages/tui/src/index.ts', 'const a = 1\nconst b = 2\nconst c = 3\n');\ninsert into editor_selections values (7, 1, 18, 29);" + }, + "steps": [ + {"checkpoint":"selected","until":"src/index.ts#2-3","fixture":"E.5/zed/selected"} + ], + "requests": { + "writes": [], + "reads": [ + {"method":"GET","path":"/api/agent","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":[]}}, + {"method":"GET","path":"/api/command","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":[]}}, + {"method":"GET","path":"/api/config","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":[]}, + {"method":"GET","path":"/api/experimental/job","query":{"descendants":["true"],"sessionID":["ses_b"],"status":["running"]},"status":200,"json":{"data":[]}}, + {"method":"GET","path":"/api/experimental/migration/v1","query":{},"status":200,"json":{"status":"completed"}}, + {"method":"GET","path":"/api/experimental/session/ses_b/terminal","query":{},"status":200,"json":{"data":[]}}, + {"method":"GET","path":"/api/form","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode"}},"data":[]}}, + {"method":"GET","path":"/api/fs/list","query":{"location[directory]":["<cwd>"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":[]}}, + {"method":"GET","path":"/api/info","query":{},"status":200,"json":{"version":"test","pid":0,"urls":[],"paths":{"tmp":"/tmp"},"capabilities":{"persistentPty":true}}}, + {"method":"GET","path":"/api/integration","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":[]}}, + {"method":"GET","path":"/api/location","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}}}, + {"method":"GET","path":"/api/mcp","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":[]}}, + {"method":"GET","path":"/api/mcp/resource","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":{"resources":[],"templates":[]}}}, + {"method":"GET","path":"/api/model","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":[]}}, + {"method":"GET","path":"/api/plugin","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":[]}}, + {"method":"GET","path":"/api/project","query":{},"status":200,"json":[]}, + {"method":"GET","path":"/api/provider","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":[]}}, + {"method":"GET","path":"/api/reference","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode/packages/tui","canonical":"/tmp/opencode/packages/tui"}},"data":[]}}, + {"method":"GET","path":"/api/session","query":{"limit":["200"],"order":["desc"],"parentID":["ses_b"]},"status":200,"json":{"data":[],"cursor":{}}}, + {"method":"GET","path":"/api/session/active","query":{},"status":200,"json":{"data":{}}}, + {"method":"GET","path":"/api/session/ses_b","query":{},"status":200,"json":{"data":{"id":"ses_b","title":"Fix the parser","projectID":"proj_test","cost":0,"tokens":{"input":0,"output":0,"reasoning":0,"cache":{"read":0,"write":0}},"time":{"created":2,"updated":2},"location":{"directory":"/tmp/opencode/packages/tui"}}}}, + {"method":"GET","path":"/api/session/ses_b/form","query":{},"status":200,"json":{"data":[]}}, + {"method":"GET","path":"/api/session/ses_b/inbox","query":{},"status":200,"json":{"data":[]}}, + {"method":"GET","path":"/api/session/ses_b/message","query":{"limit":["20"],"order":["desc"]},"status":200,"json":{"data":[{"id":"msg_1","type":"user","text":"Why does the parser fail?","time":{"created":1}}],"cursor":{}}}, + {"method":"GET","path":"/api/session/ses_b/permission","query":{},"status":200,"json":{"data":[]}}, + {"method":"GET","path":"/api/shell","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":[]}}, + {"method":"GET","path":"/api/skill","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":[]}}, + {"method":"GET","path":"/api/vcs","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":{"branch":{"current":"main","default":"main"}}}}, + {"method":"POST","path":"/api/rpc/opencode.goal/get","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"body":{"input":{"sessionID":"ses_b"}},"status":200,"json":{"output":null}} + ] + } +} diff --git a/packages/cli-rs/parity/fixtures/E.5/zed/selected.json b/packages/cli-rs/parity/fixtures/E.5/zed/selected.json new file mode 100644 index 000000000000..28c3cb1e0f19 --- /dev/null +++ b/packages/cli-rs/parity/fixtures/E.5/zed/selected.json @@ -0,0 +1,32 @@ +{"width":100,"height":30,"styles":["#ffffffff #202020ff 0","#ffffffff #202020ff 1","#808080ff #080808ff 0","#ffffffff #080808ff 0","#7699feff #141414ff 0","#ffffffff #141414ff 0","#484848ff #080808ff 0","#202020ff #080808ff 0","#426097ff #080808ff 0"],"lines":[ +[" Fix the parser + ",[[0,3],[1,14],[0,15],[2,3],[3,65]]], +[" ",[[3,100]]], +[" ┃ ",[[3,2],[4,1],[5,95],[3,2]]], +[" ┃ Why does the parser fail? ",[[3,2],[4,1],[5,95],[3,2]]], +[" ┃ ",[[3,2],[4,1],[5,95],[3,2]]], +[" ",[[3,100]]], +[" ",[[3,100]]], +[" ",[[3,100]]], +[" ",[[3,100]]], +[" ",[[3,100]]], +[" ",[[3,100]]], +[" ",[[3,100]]], +[" ",[[3,100]]], +[" ",[[3,100]]], +[" ",[[3,100]]], +[" ",[[3,100]]], +[" ",[[3,100]]], +[" ",[[3,100]]], +[" ",[[3,100]]], +[" ",[[3,100]]], +[" ",[[3,100]]], +[" ",[[3,100]]], +[" ",[[3,100]]], +[" ┃ ",[[3,2],[6,1],[0,95],[3,2]]], +[" ┃ ",[[3,2],[6,1],[0,95],[3,2]]], +[" ┃ ",[[3,2],[6,1],[0,95],[3,2]]], +[" ┃ ",[[3,2],[6,1],[0,95],[3,2]]], +[" ╹▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀ ",[[3,2],[6,1],[7,95],[3,2]]], +[" /tmp/opencode/packages/tui:main src/index.ts#2-3 shift+tab agents ctrl+p commands ",[[3,2],[2,31],[3,14],[8,16],[3,12],[2,6],[3,9],[2,8],[3,2]]], +[" ",[[3,100]]] +]} diff --git a/packages/cli-rs/parity/fixtures/E.6a/history-failed.app.json b/packages/cli-rs/parity/fixtures/E.6a/history-failed.app.json new file mode 100644 index 000000000000..cd55b987dcde --- /dev/null +++ b/packages/cli-rs/parity/fixtures/E.6a/history-failed.app.json @@ -0,0 +1,57 @@ +{ + "scenario": "E.6a/history-failed", + "width": 100, + "height": 30, + "directory": "/tmp/opencode/packages/tui", + "config": { + "animations": false, + "experimental": {"new-designs":true}, + "theme": {"name":"opencode"} + }, + "args": { + "sessionID": "ses_h" + }, + "routes": [ + {"path":"/api/session/ses_h","json":{"data":{"id":"ses_h","title":"Fix the parser","projectID":"proj_test","cost":0,"tokens":{"input":0,"output":0,"reasoning":0,"cache":{"read":0,"write":0}},"time":{"created":2,"updated":2},"location":{"directory":"/tmp/opencode/packages/tui"}}}}, + {"path":"/api/session/ses_h/message","status":500,"json":{"_tag":"UnknownError","message":"Server failed to handle the request. Check server logs for details.","ref":"err_1234abcd"}}, + {"path":"/api/session/ses_h/inbox","json":{"data":[]}} + ], + "steps": [ + {"wait":500}, + {"checkpoint":"opened","until":"Fix the parser","deviation":[{"file":"O89-transcript-read-toast","cells":240}],"fixture":"E.6a/history-failed/opened"} + ], + "requests": { + "writes": [], + "reads": [ + {"method":"GET","path":"/api/agent","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":[]}}, + {"method":"GET","path":"/api/command","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":[]}}, + {"method":"GET","path":"/api/config","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":[]}, + {"method":"GET","path":"/api/experimental/job","query":{"descendants":["true"],"sessionID":["ses_h"],"status":["running"]},"status":200,"json":{"data":[]}}, + {"method":"GET","path":"/api/experimental/migration/v1","query":{},"status":200,"json":{"status":"completed"}}, + {"method":"GET","path":"/api/experimental/session/ses_h/terminal","query":{},"status":200,"json":{"data":[]}}, + {"method":"GET","path":"/api/form","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode"}},"data":[]}}, + {"method":"GET","path":"/api/fs/list","query":{"location[directory]":["<cwd>"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":[]}}, + {"method":"GET","path":"/api/info","query":{},"status":200,"json":{"version":"test","pid":0,"urls":[],"paths":{"tmp":"/tmp"},"capabilities":{"persistentPty":true}}}, + {"method":"GET","path":"/api/integration","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":[]}}, + {"method":"GET","path":"/api/location","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}}}, + {"method":"GET","path":"/api/mcp","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":[]}}, + {"method":"GET","path":"/api/mcp/resource","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":{"resources":[],"templates":[]}}}, + {"method":"GET","path":"/api/model","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":[]}}, + {"method":"GET","path":"/api/plugin","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":[]}}, + {"method":"GET","path":"/api/project","query":{},"status":200,"json":[]}, + {"method":"GET","path":"/api/provider","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":[]}}, + {"method":"GET","path":"/api/reference","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode/packages/tui","canonical":"/tmp/opencode/packages/tui"}},"data":[]}}, + {"method":"GET","path":"/api/session","query":{"limit":["200"],"order":["desc"],"parentID":["ses_h"]},"status":200,"json":{"data":[],"cursor":{}}}, + {"method":"GET","path":"/api/session/active","query":{},"status":200,"json":{"data":{}}}, + {"method":"GET","path":"/api/session/ses_h","query":{},"status":200,"json":{"data":{"id":"ses_h","title":"Fix the parser","projectID":"proj_test","cost":0,"tokens":{"input":0,"output":0,"reasoning":0,"cache":{"read":0,"write":0}},"time":{"created":2,"updated":2},"location":{"directory":"/tmp/opencode/packages/tui"}}}}, + {"method":"GET","path":"/api/session/ses_h/form","query":{},"status":200,"json":{"data":[]}}, + {"method":"GET","path":"/api/session/ses_h/inbox","query":{},"status":200,"json":{"data":[]}}, + {"method":"GET","path":"/api/session/ses_h/message","query":{"limit":["20"],"order":["desc"]},"status":500,"json":{"_tag":"UnknownError","message":"Server failed to handle the request. Check server logs for details.","ref":"err_1234abcd"}}, + {"method":"GET","path":"/api/session/ses_h/permission","query":{},"status":200,"json":{"data":[]}}, + {"method":"GET","path":"/api/shell","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":[]}}, + {"method":"GET","path":"/api/skill","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":[]}}, + {"method":"GET","path":"/api/vcs","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":{"branch":{"current":"main","default":"main"}}}}, + {"method":"POST","path":"/api/rpc/opencode.goal/get","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"body":{"input":{"sessionID":"ses_h"}},"status":200,"json":{"output":null}} + ] + } +} diff --git a/packages/cli-rs/parity/fixtures/E.6a/history-failed/opened.json b/packages/cli-rs/parity/fixtures/E.6a/history-failed/opened.json new file mode 100644 index 000000000000..d409c0ac70a4 --- /dev/null +++ b/packages/cli-rs/parity/fixtures/E.6a/history-failed/opened.json @@ -0,0 +1,32 @@ +{"width":100,"height":30,"styles":["#ffffffff #202020ff 0","#ffffffff #202020ff 1","#808080ff #080808ff 0","#ffffffff #080808ff 0","#484848ff #080808ff 0","#202020ff #080808ff 0"],"lines":[ +[" Fix the parser + ",[[0,3],[1,14],[0,15],[2,3],[3,65]]], +[" ",[[3,100]]], +[" ",[[3,100]]], +[" ",[[3,100]]], +[" ",[[3,100]]], +[" ",[[3,100]]], +[" ",[[3,100]]], +[" ",[[3,100]]], +[" ",[[3,100]]], +[" ",[[3,100]]], +[" ",[[3,100]]], +[" ",[[3,100]]], +[" ",[[3,100]]], +[" ",[[3,100]]], +[" ",[[3,100]]], +[" ",[[3,100]]], +[" ",[[3,100]]], +[" ",[[3,100]]], +[" ",[[3,100]]], +[" ",[[3,100]]], +[" ",[[3,100]]], +[" ",[[3,100]]], +[" ",[[3,100]]], +[" ┃ ",[[3,2],[4,1],[0,95],[3,2]]], +[" ┃ ",[[3,2],[4,1],[0,95],[3,2]]], +[" ┃ ",[[3,2],[4,1],[0,95],[3,2]]], +[" ┃ ",[[3,2],[4,1],[0,95],[3,2]]], +[" ╹▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀ ",[[3,2],[4,1],[5,95],[3,2]]], +[" /tmp/opencode/packages/tui:main shift+tab agents ctrl+p commands ",[[3,2],[2,31],[3,42],[2,6],[3,9],[2,8],[3,2]]], +[" ",[[3,100]]] +]} diff --git a/packages/cli-rs/parity/fixtures/E.6a/reasoning-open.app.json b/packages/cli-rs/parity/fixtures/E.6a/reasoning-open.app.json new file mode 100644 index 000000000000..c7ecd7e5edf3 --- /dev/null +++ b/packages/cli-rs/parity/fixtures/E.6a/reasoning-open.app.json @@ -0,0 +1,60 @@ +{ + "scenario": "E.6a/reasoning-open", + "width": 100, + "height": 30, + "directory": "/tmp/opencode/packages/tui", + "config": { + "animations": false, + "experimental": {"new-designs":true}, + "theme": {"name":"opencode"} + }, + "args": { + "sessionID": "ses_r" + }, + "routes": [ + {"path":"/api/session/ses_r","json":{"data":{"id":"ses_r","title":"Fix the parser","projectID":"proj_test","cost":0,"tokens":{"input":0,"output":0,"reasoning":0,"cache":{"read":0,"write":0}},"time":{"created":2,"updated":2},"location":{"directory":"/tmp/opencode/packages/tui"}}}}, + {"path":"/api/session/ses_r/message","json":{"data":[{"id":"msg_2","type":"assistant","agent":"build","model":{"providerID":"provider","id":"model"},"content":[{"type":"reasoning","text":"**Reading the parser**\n\nThe loop stops *one* token early, in `next()`:\n\n- the bound is `len - 1`\n- the last token is dropped\n\n| case | tokens |\n| --- | --- |\n| empty | 0 |\n| one | 1 |","time":{"created":1500,"completed":3000}},{"type":"text","text":"The parser drops the last token."}],"finish":"stop","tokens":{"input":1200,"output":50,"reasoning":0,"cache":{"read":3000,"write":0}},"time":{"created":1500,"completed":4000}},{"id":"msg_1","type":"user","text":"Why does the parser fail?","time":{"created":1000}}],"cursor":{}}}, + {"path":"/api/session/ses_r/inbox","json":{"data":[]}} + ], + "steps": [ + {"checkpoint":"collapsed","until":"drops the last token","fixture":"E.6a/reasoning-open/collapsed"}, + {"click":[7,6]}, + {"checkpoint":"group","until":"Thought: Reading","fixture":"E.6a/reasoning-open/group"}, + {"click":[7,8]}, + {"checkpoint":"open","until":"empty","fixture":"E.6a/reasoning-open/open"} + ], + "requests": { + "writes": [], + "reads": [ + {"method":"GET","path":"/api/agent","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":[]}}, + {"method":"GET","path":"/api/command","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":[]}}, + {"method":"GET","path":"/api/config","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":[]}, + {"method":"GET","path":"/api/experimental/job","query":{"descendants":["true"],"sessionID":["ses_r"],"status":["running"]},"status":200,"json":{"data":[]}}, + {"method":"GET","path":"/api/experimental/migration/v1","query":{},"status":200,"json":{"status":"completed"}}, + {"method":"GET","path":"/api/experimental/session/ses_r/terminal","query":{},"status":200,"json":{"data":[]}}, + {"method":"GET","path":"/api/form","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode"}},"data":[]}}, + {"method":"GET","path":"/api/fs/list","query":{"location[directory]":["<cwd>"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":[]}}, + {"method":"GET","path":"/api/info","query":{},"status":200,"json":{"version":"test","pid":0,"urls":[],"paths":{"tmp":"/tmp"},"capabilities":{"persistentPty":true}}}, + {"method":"GET","path":"/api/integration","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":[]}}, + {"method":"GET","path":"/api/location","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}}}, + {"method":"GET","path":"/api/mcp","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":[]}}, + {"method":"GET","path":"/api/mcp/resource","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":{"resources":[],"templates":[]}}}, + {"method":"GET","path":"/api/model","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":[]}}, + {"method":"GET","path":"/api/plugin","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":[]}}, + {"method":"GET","path":"/api/project","query":{},"status":200,"json":[]}, + {"method":"GET","path":"/api/provider","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":[]}}, + {"method":"GET","path":"/api/reference","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode/packages/tui","canonical":"/tmp/opencode/packages/tui"}},"data":[]}}, + {"method":"GET","path":"/api/session","query":{"limit":["200"],"order":["desc"],"parentID":["ses_r"]},"status":200,"json":{"data":[],"cursor":{}}}, + {"method":"GET","path":"/api/session/active","query":{},"status":200,"json":{"data":{}}}, + {"method":"GET","path":"/api/session/ses_r","query":{},"status":200,"json":{"data":{"id":"ses_r","title":"Fix the parser","projectID":"proj_test","cost":0,"tokens":{"input":0,"output":0,"reasoning":0,"cache":{"read":0,"write":0}},"time":{"created":2,"updated":2},"location":{"directory":"/tmp/opencode/packages/tui"}}}}, + {"method":"GET","path":"/api/session/ses_r/form","query":{},"status":200,"json":{"data":[]}}, + {"method":"GET","path":"/api/session/ses_r/inbox","query":{},"status":200,"json":{"data":[]}}, + {"method":"GET","path":"/api/session/ses_r/message","query":{"limit":["20"],"order":["desc"]},"status":200,"json":{"data":[{"id":"msg_2","type":"assistant","agent":"build","model":{"providerID":"provider","id":"model"},"content":[{"type":"reasoning","text":"**Reading the parser**\n\nThe loop stops *one* token early, in `next()`:\n\n- the bound is `len - 1`\n- the last token is dropped\n\n| case | tokens |\n| --- | --- |\n| empty | 0 |\n| one | 1 |","time":{"created":1500,"completed":3000}},{"type":"text","text":"The parser drops the last token."}],"finish":"stop","tokens":{"input":1200,"output":50,"reasoning":0,"cache":{"read":3000,"write":0}},"time":{"created":1500,"completed":4000}},{"id":"msg_1","type":"user","text":"Why does the parser fail?","time":{"created":1000}}],"cursor":{}}}, + {"method":"GET","path":"/api/session/ses_r/permission","query":{},"status":200,"json":{"data":[]}}, + {"method":"GET","path":"/api/shell","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":[]}}, + {"method":"GET","path":"/api/skill","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":[]}}, + {"method":"GET","path":"/api/vcs","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":{"branch":{"current":"main","default":"main"}}}}, + {"method":"POST","path":"/api/rpc/opencode.goal/get","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"body":{"input":{"sessionID":"ses_r"}},"status":200,"json":{"output":null}} + ] + } +} diff --git a/packages/cli-rs/parity/fixtures/E.6a/reasoning-open/collapsed.json b/packages/cli-rs/parity/fixtures/E.6a/reasoning-open/collapsed.json new file mode 100644 index 000000000000..9456b4c5c90c --- /dev/null +++ b/packages/cli-rs/parity/fixtures/E.6a/reasoning-open/collapsed.json @@ -0,0 +1,32 @@ +{"width":100,"height":30,"styles":["#ffffffff #202020ff 0","#ffffffff #202020ff 1","#808080ff #080808ff 0","#ffffffff #080808ff 0","#7699feff #141414ff 0","#ffffffff #141414ff 0","#eeeeeeff #080808ff 0","#7699feff #080808ff 0","#484848ff #080808ff 0","#202020ff #080808ff 0"],"lines":[ +[" Fix the parser + ",[[0,3],[1,14],[0,15],[2,3],[3,65]]], +[" ",[[3,100]]], +[" ┃ ",[[3,2],[4,1],[5,95],[3,2]]], +[" ┃ Why does the parser fail? ",[[3,2],[4,1],[5,95],[3,2]]], +[" ┃ ",[[3,2],[4,1],[5,95],[3,2]]], +[" ",[[3,100]]], +[" + 1 thought ",[[3,5],[2,1],[3,1],[2,9],[3,84]]], +[" ",[[3,100]]], +[" The parser drops the last token. ",[[3,5],[6,32],[3,63]]], +[" ",[[3,100]]], +[" Build · provider/model · 3.0s ",[[3,5],[7,5],[2,24],[3,66]]], +[" ",[[3,100]]], +[" ",[[3,100]]], +[" ",[[3,100]]], +[" ",[[3,100]]], +[" ",[[3,100]]], +[" ",[[3,100]]], +[" ",[[3,100]]], +[" ",[[3,100]]], +[" ",[[3,100]]], +[" ",[[3,100]]], +[" ",[[3,100]]], +[" ",[[3,100]]], +[" ┃ ",[[3,2],[8,1],[0,95],[3,2]]], +[" ┃ ",[[3,2],[8,1],[0,95],[3,2]]], +[" ┃ ",[[3,2],[8,1],[0,95],[3,2]]], +[" ┃ ",[[3,2],[8,1],[0,95],[3,2]]], +[" ╹▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀ ",[[3,2],[8,1],[9,95],[3,2]]], +[" /tmp/opencode/packages/tui:main 4.3K ctrl+p commands ",[[3,2],[2,31],[3,44],[2,4],[3,9],[2,8],[3,2]]], +[" ",[[3,100]]] +]} diff --git a/packages/cli-rs/parity/fixtures/E.6a/reasoning-open/group.json b/packages/cli-rs/parity/fixtures/E.6a/reasoning-open/group.json new file mode 100644 index 000000000000..a05135090fd1 --- /dev/null +++ b/packages/cli-rs/parity/fixtures/E.6a/reasoning-open/group.json @@ -0,0 +1,32 @@ +{"width":100,"height":30,"styles":["#ffffffff #202020ff 0","#ffffffff #202020ff 1","#808080ff #080808ff 0","#ffffffff #080808ff 0","#7699feff #141414ff 0","#ffffffff #141414ff 0","#96672bff #080808ff 0","#eeeeeeff #080808ff 0","#7699feff #080808ff 0","#484848ff #080808ff 0","#202020ff #080808ff 0"],"lines":[ +[" Fix the parser + ",[[0,3],[1,14],[0,15],[2,3],[3,65]]], +[" ",[[3,100]]], +[" ┃ ",[[3,2],[4,1],[5,95],[3,2]]], +[" ┃ Why does the parser fail? ",[[3,2],[4,1],[5,95],[3,2]]], +[" ┃ ",[[3,2],[4,1],[5,95],[3,2]]], +[" ",[[3,100]]], +[" − 1 thought ",[[3,100]]], +[" ",[[3,100]]], +[" + Thought: Reading the parser · 1.5s ",[[3,5],[6,1],[3,1],[6,34],[3,59]]], +[" ",[[3,100]]], +[" The parser drops the last token. ",[[3,5],[7,32],[3,63]]], +[" ",[[3,100]]], +[" Build · provider/model · 3.0s ",[[3,5],[8,5],[2,24],[3,66]]], +[" ",[[3,100]]], +[" ",[[3,100]]], +[" ",[[3,100]]], +[" ",[[3,100]]], +[" ",[[3,100]]], +[" ",[[3,100]]], +[" ",[[3,100]]], +[" ",[[3,100]]], +[" ",[[3,100]]], +[" ",[[3,100]]], +[" ┃ ",[[3,2],[9,1],[0,95],[3,2]]], +[" ┃ ",[[3,2],[9,1],[0,95],[3,2]]], +[" ┃ ",[[3,2],[9,1],[0,95],[3,2]]], +[" ┃ ",[[3,2],[9,1],[0,95],[3,2]]], +[" ╹▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀ ",[[3,2],[9,1],[10,95],[3,2]]], +[" /tmp/opencode/packages/tui:main 4.3K ctrl+p commands ",[[3,2],[2,31],[3,44],[2,4],[3,9],[2,8],[3,2]]], +[" ",[[3,100]]] +]} diff --git a/packages/cli-rs/parity/fixtures/E.6a/reasoning-open/open.json b/packages/cli-rs/parity/fixtures/E.6a/reasoning-open/open.json new file mode 100644 index 000000000000..77b0947f6fe5 --- /dev/null +++ b/packages/cli-rs/parity/fixtures/E.6a/reasoning-open/open.json @@ -0,0 +1,32 @@ +{"width":100,"height":30,"styles":["#ffffffff #202020ff 0","#ffffffff #202020ff 1","#808080ff #080808ff 0","#ffffffff #080808ff 0","#f5a742ff #080808ff 0","#202020ff #080808ff 0","#808080ff #080808ff 1","#808080ff #080808ff 4","#888888ff #080808ff 0","#eeeeeeff #080808ff 0","#7699feff #080808ff 0","#484848ff #080808ff 0"],"lines":[ +[" Fix the parser + ",[[0,3],[1,14],[0,15],[2,3],[3,65]]], +[" ",[[3,100]]], +[" - Thought · 1.5s ",[[3,5],[4,1],[3,1],[4,14],[3,79]]], +[" ",[[3,100]]], +[" ┃ Reading the parser ",[[3,5],[5,1],[3,1],[6,18],[3,75]]], +[" ┃ ",[[3,5],[5,1],[3,94]]], +[" ┃ The loop stops one token early, in next(): ",[[3,5],[5,1],[3,1],[2,15],[7,3],[2,24],[3,51]]], +[" ┃ ",[[3,5],[5,1],[3,94]]], +[" ┃ - the bound is len - 1 ",[[3,5],[5,1],[3,1],[2,22],[3,71]]], +[" ┃ - the last token is dropped ",[[3,5],[5,1],[3,1],[2,27],[3,66]]], +[" ┃ ",[[3,5],[5,1],[3,94]]], +[" ┃ ┌────────────────────────────────────────────┬────────────────────────────────────────────┐ ",[[3,5],[5,1],[3,1],[8,91],[3,2]]], +[" ┃ │ case │ tokens │ ",[[3,5],[5,1],[3,1],[8,1],[3,1],[6,4],[3,39],[8,1],[3,1],[6,6],[3,37],[8,1],[3,2]]], +[" ┃ ├────────────────────────────────────────────┼────────────────────────────────────────────┤ ",[[3,5],[5,1],[3,1],[8,91],[3,2]]], +[" ┃ │ empty │ 0 │ ",[[3,5],[5,1],[3,1],[8,1],[3,1],[2,5],[3,38],[8,1],[3,1],[2,1],[3,42],[8,1],[3,2]]], +[" ┃ ├────────────────────────────────────────────┼────────────────────────────────────────────┤ ",[[3,5],[5,1],[3,1],[8,91],[3,2]]], +[" ┃ │ one │ 1 │ ",[[3,5],[5,1],[3,1],[8,1],[3,1],[2,3],[3,40],[8,1],[3,1],[2,1],[3,42],[8,1],[3,2]]], +[" ┃ └────────────────────────────────────────────┴────────────────────────────────────────────┘ ",[[3,5],[5,1],[3,1],[8,91],[3,2]]], +[" ",[[3,100]]], +[" The parser drops the last token. ",[[3,5],[9,32],[3,63]]], +[" ",[[3,100]]], +[" Build · provider/model · 3.0s ",[[3,5],[10,5],[2,24],[3,66]]], +[" ",[[3,100]]], +[" ┃ ",[[3,2],[11,1],[0,95],[3,2]]], +[" ┃ ",[[3,2],[11,1],[0,95],[3,2]]], +[" ┃ ",[[3,2],[11,1],[0,95],[3,2]]], +[" ┃ ",[[3,2],[11,1],[0,95],[3,2]]], +[" ╹▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀ ",[[3,2],[11,1],[5,95],[3,2]]], +[" /tmp/opencode/packages/tui:main 4.3K ctrl+p commands ",[[3,2],[2,31],[3,44],[2,4],[3,9],[2,8],[3,2]]], +[" ",[[3,100]]] +]} diff --git a/packages/cli-rs/parity/fixtures/E.6a/session-links.app.json b/packages/cli-rs/parity/fixtures/E.6a/session-links.app.json new file mode 100644 index 000000000000..6e9fb9ded72c --- /dev/null +++ b/packages/cli-rs/parity/fixtures/E.6a/session-links.app.json @@ -0,0 +1,76 @@ +{ + "scenario": "E.6a/session-links", + "width": 100, + "height": 30, + "directory": "/tmp/opencode/packages/tui", + "config": { + "animations": false, + "experimental": {"new-designs":true}, + "theme": {"name":"opencode"} + }, + "args": { + "sessionID": "ses_current0000000000000000000" + }, + "routes": [ + {"path":"/api/session/ses_current0000000000000000000","json":{"data":{"id":"ses_current0000000000000000000","title":"Fix the parser","projectID":"proj_test","cost":0,"tokens":{"input":0,"output":0,"reasoning":0,"cache":{"read":0,"write":0}},"time":{"created":2,"updated":2},"location":{"directory":"/tmp/opencode/packages/tui"}}}}, + {"path":"/api/session/ses_current0000000000000000000/message","json":{"data":[{"id":"msg_2","type":"assistant","agent":"build","model":{"providerID":"provider","id":"model"},"content":[{"type":"text","text":"This continues ses_known000000000000000000000, not ses_current0000000000000000000.\n\n- archived ses_archived000000000000000000\n- unknown @session:ses_unknown0000000000000000000\n\nRun `opencode --session ses_known000000000000000000000` or open `ses_known000000000000000000000`."}],"finish":"stop","time":{"created":2,"completed":3}},{"id":"msg_1","type":"user","text":"Which sessions touched the parser?","time":{"created":1}}],"cursor":{}}}, + {"path":"/api/session/ses_current0000000000000000000/inbox","json":{"data":[]}}, + {"path":"/api/session/ses_known000000000000000000000","json":{"data":{"id":"ses_known000000000000000000000","title":"Fix the flaky reconnect test","projectID":"proj_test","cost":0,"tokens":{"input":0,"output":0,"reasoning":0,"cache":{"read":0,"write":0}},"time":{"created":1,"updated":1},"location":{"directory":"/tmp/opencode/packages/tui"}}}}, + {"path":"/api/session/ses_known000000000000000000000/message","json":{"data":[{"id":"msg_k","type":"user","text":"Why is reconnect flaky?","time":{"created":1}}],"cursor":{}}}, + {"path":"/api/session/ses_known000000000000000000000/inbox","json":{"data":[]}}, + {"path":"/api/session/ses_archived000000000000000000","json":{"data":{"id":"ses_archived000000000000000000","title":"Old work","projectID":"proj_test","cost":0,"tokens":{"input":0,"output":0,"reasoning":0,"cache":{"read":0,"write":0}},"time":{"created":1,"updated":1,"archived":1},"location":{"directory":"/tmp/opencode/packages/tui"}}}}, + {"path":"/api/session/ses_unknown0000000000000000000","status":404,"json":{"_tag":"SessionNotFoundError","sessionID":"ses_unknown0000000000000000000","message":"Session not found: ses_unknown0000000000000000000"}} + ], + "steps": [ + {"checkpoint":"labels","until":"@Fix the flaky reconnect test","fixture":"E.6a/session-links/labels"}, + {"event":{"id":"evt_1","created":3,"type":"session.renamed","durable":{"aggregateID":"ses_known000000000000000000000","seq":1,"version":1},"data":{"sessionID":"ses_known000000000000000000000","title":"Reconnect retries"}}}, + {"checkpoint":"renamed","until":"@Reconnect retries","fixture":"E.6a/session-links/renamed"}, + {"click":[24,6]}, + {"checkpoint":"opened","until":"Why is reconnect flaky?","fixture":"E.6a/session-links/opened"} + ], + "requests": { + "writes": [], + "reads": [ + {"method":"GET","path":"/api/agent","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":[]}}, + {"method":"GET","path":"/api/command","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":[]}}, + {"method":"GET","path":"/api/config","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":[]}, + {"method":"GET","path":"/api/experimental/job","query":{"descendants":["true"],"sessionID":["ses_current0000000000000000000"],"status":["running"]},"status":200,"json":{"data":[]}}, + {"method":"GET","path":"/api/experimental/job","query":{"descendants":["true"],"sessionID":["ses_known000000000000000000000"],"status":["running"]},"status":200,"json":{"data":[]}}, + {"method":"GET","path":"/api/experimental/migration/v1","query":{},"status":200,"json":{"status":"completed"}}, + {"method":"GET","path":"/api/experimental/session/ses_current0000000000000000000/terminal","query":{},"status":200,"json":{"data":[]}}, + {"method":"GET","path":"/api/experimental/session/ses_known000000000000000000000/terminal","query":{},"status":200,"json":{"data":[]}}, + {"method":"GET","path":"/api/form","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode"}},"data":[]}}, + {"method":"GET","path":"/api/fs/list","query":{"location[directory]":["<cwd>"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":[]}}, + {"method":"GET","path":"/api/info","query":{},"status":200,"json":{"version":"test","pid":0,"urls":[],"paths":{"tmp":"/tmp"},"capabilities":{"persistentPty":true}}}, + {"method":"GET","path":"/api/integration","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":[]}}, + {"method":"GET","path":"/api/location","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}}}, + {"method":"GET","path":"/api/mcp","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":[]}}, + {"method":"GET","path":"/api/mcp/resource","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":{"resources":[],"templates":[]}}}, + {"method":"GET","path":"/api/model","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":[]}}, + {"method":"GET","path":"/api/plugin","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":[]}}, + {"method":"GET","path":"/api/project","query":{},"status":200,"json":[]}, + {"method":"GET","path":"/api/provider","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":[]}}, + {"method":"GET","path":"/api/reference","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode/packages/tui","canonical":"/tmp/opencode/packages/tui"}},"data":[]}}, + {"method":"GET","path":"/api/session","query":{"limit":["200"],"order":["desc"],"parentID":["ses_current0000000000000000000"]},"status":200,"json":{"data":[],"cursor":{}}}, + {"method":"GET","path":"/api/session","query":{"limit":["200"],"order":["desc"],"parentID":["ses_known000000000000000000000"]},"status":200,"json":{"data":[],"cursor":{}}}, + {"method":"GET","path":"/api/session/active","query":{},"status":200,"json":{"data":{}}}, + {"method":"GET","path":"/api/session/ses_archived000000000000000000","query":{},"status":200,"json":{"data":{"id":"ses_archived000000000000000000","title":"Old work","projectID":"proj_test","cost":0,"tokens":{"input":0,"output":0,"reasoning":0,"cache":{"read":0,"write":0}},"time":{"created":1,"updated":1,"archived":1},"location":{"directory":"/tmp/opencode/packages/tui"}}}}, + {"method":"GET","path":"/api/session/ses_current0000000000000000000","query":{},"status":200,"json":{"data":{"id":"ses_current0000000000000000000","title":"Fix the parser","projectID":"proj_test","cost":0,"tokens":{"input":0,"output":0,"reasoning":0,"cache":{"read":0,"write":0}},"time":{"created":2,"updated":2},"location":{"directory":"/tmp/opencode/packages/tui"}}}}, + {"method":"GET","path":"/api/session/ses_current0000000000000000000/form","query":{},"status":200,"json":{"data":[]}}, + {"method":"GET","path":"/api/session/ses_current0000000000000000000/inbox","query":{},"status":200,"json":{"data":[]}}, + {"method":"GET","path":"/api/session/ses_current0000000000000000000/message","query":{"limit":["20"],"order":["desc"]},"status":200,"json":{"data":[{"id":"msg_2","type":"assistant","agent":"build","model":{"providerID":"provider","id":"model"},"content":[{"type":"text","text":"This continues ses_known000000000000000000000, not ses_current0000000000000000000.\n\n- archived ses_archived000000000000000000\n- unknown @session:ses_unknown0000000000000000000\n\nRun `opencode --session ses_known000000000000000000000` or open `ses_known000000000000000000000`."}],"finish":"stop","time":{"created":2,"completed":3}},{"id":"msg_1","type":"user","text":"Which sessions touched the parser?","time":{"created":1}}],"cursor":{}}}, + {"method":"GET","path":"/api/session/ses_current0000000000000000000/permission","query":{},"status":200,"json":{"data":[]}}, + {"method":"GET","path":"/api/session/ses_known000000000000000000000","query":{},"status":200,"json":{"data":{"id":"ses_known000000000000000000000","title":"Fix the flaky reconnect test","projectID":"proj_test","cost":0,"tokens":{"input":0,"output":0,"reasoning":0,"cache":{"read":0,"write":0}},"time":{"created":1,"updated":1},"location":{"directory":"/tmp/opencode/packages/tui"}}}}, + {"method":"GET","path":"/api/session/ses_known000000000000000000000/form","query":{},"status":200,"json":{"data":[]}}, + {"method":"GET","path":"/api/session/ses_known000000000000000000000/inbox","query":{},"status":200,"json":{"data":[]}}, + {"method":"GET","path":"/api/session/ses_known000000000000000000000/message","query":{"limit":["20"],"order":["desc"]},"status":200,"json":{"data":[{"id":"msg_k","type":"user","text":"Why is reconnect flaky?","time":{"created":1}}],"cursor":{}}}, + {"method":"GET","path":"/api/session/ses_known000000000000000000000/permission","query":{},"status":200,"json":{"data":[]}}, + {"method":"GET","path":"/api/session/ses_unknown0000000000000000000","query":{},"status":404,"json":{"_tag":"SessionNotFoundError","sessionID":"ses_unknown0000000000000000000","message":"Session not found: ses_unknown0000000000000000000"}}, + {"method":"GET","path":"/api/shell","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":[]}}, + {"method":"GET","path":"/api/skill","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":[]}}, + {"method":"GET","path":"/api/vcs","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":{"branch":{"current":"main","default":"main"}}}}, + {"method":"POST","path":"/api/rpc/opencode.goal/get","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"body":{"input":{"sessionID":"ses_current0000000000000000000"}},"status":200,"json":{"output":null}}, + {"method":"POST","path":"/api/rpc/opencode.goal/get","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"body":{"input":{"sessionID":"ses_known000000000000000000000"}},"status":200,"json":{"output":null}} + ] + } +} diff --git a/packages/cli-rs/parity/fixtures/E.6a/session-links/labels.json b/packages/cli-rs/parity/fixtures/E.6a/session-links/labels.json new file mode 100644 index 000000000000..ec749f03692f --- /dev/null +++ b/packages/cli-rs/parity/fixtures/E.6a/session-links/labels.json @@ -0,0 +1,32 @@ +{"width":100,"height":30,"styles":["#ffffffff #202020ff 0","#ffffffff #202020ff 1","#808080ff #080808ff 0","#ffffffff #080808ff 0","#7699feff #141414ff 0","#ffffffff #141414ff 0","#eeeeeeff #080808ff 0","#fab283ff #080808ff 8","#fab283ff #080808ff 0","#7fd88fff #080808ff 0","#7699feff #080808ff 0","#484848ff #080808ff 0","#202020ff #080808ff 0"],"lines":[ +[" Fix the parser + ",[[0,3],[1,14],[0,15],[2,3],[3,65]]], +[" ",[[3,100]]], +[" ┃ ",[[3,2],[4,1],[5,95],[3,2]]], +[" ┃ Which sessions touched the parser? ",[[3,2],[4,1],[5,95],[3,2]]], +[" ┃ ",[[3,2],[4,1],[5,95],[3,2]]], +[" ",[[3,100]]], +[" This continues @Fix the flaky reconnect test, not ses_current0000000000000000000. ",[[3,5],[6,15],[7,29],[6,37],[3,14]]], +[" ",[[3,100]]], +[" - archived ses_archived000000000000000000 ",[[3,5],[8,2],[6,39],[3,54]]], +[" - unknown @session:ses_unknown0000000000000000000 ",[[3,5],[8,2],[6,47],[3,46]]], +[" ",[[3,100]]], +[" Run opencode --session ses_known000000000000000000000 or open @Fix the flaky reconnect test. ",[[3,5],[6,4],[9,49],[6,9],[7,29],[6,1],[3,3]]], +[" ",[[3,100]]], +[" Build · provider/model · 2ms ",[[3,5],[10,5],[2,23],[3,67]]], +[" ",[[3,100]]], +[" ",[[3,100]]], +[" ",[[3,100]]], +[" ",[[3,100]]], +[" ",[[3,100]]], +[" ",[[3,100]]], +[" ",[[3,100]]], +[" ",[[3,100]]], +[" ",[[3,100]]], +[" ┃ ",[[3,2],[11,1],[0,95],[3,2]]], +[" ┃ ",[[3,2],[11,1],[0,95],[3,2]]], +[" ┃ ",[[3,2],[11,1],[0,95],[3,2]]], +[" ┃ ",[[3,2],[11,1],[0,95],[3,2]]], +[" ╹▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀ ",[[3,2],[11,1],[12,95],[3,2]]], +[" /tmp/opencode/packages/tui:main shift+tab agents ctrl+p commands ",[[3,2],[2,31],[3,42],[2,6],[3,9],[2,8],[3,2]]], +[" ",[[3,100]]] +]} diff --git a/packages/cli-rs/parity/fixtures/E.6a/session-links/opened.json b/packages/cli-rs/parity/fixtures/E.6a/session-links/opened.json new file mode 100644 index 000000000000..0e6dffa0f4a5 --- /dev/null +++ b/packages/cli-rs/parity/fixtures/E.6a/session-links/opened.json @@ -0,0 +1,32 @@ +{"width":100,"height":30,"styles":["#ffffffff #080808ff 0","#808080ff #080808ff 0","#ffffffff #202020ff 0","#ffffffff #202020ff 1","#7699feff #141414ff 0","#ffffffff #141414ff 0","#484848ff #080808ff 0","#202020ff #080808ff 0"],"lines":[ +[" Fix the parser Fix the flaky reconnect test + ",[[0,3],[1,14],[0,15],[2,3],[3,28],[2,1],[1,3],[0,33]]], +[" ",[[0,100]]], +[" ┃ ",[[0,2],[4,1],[5,95],[0,2]]], +[" ┃ Why is reconnect flaky? ",[[0,2],[4,1],[5,95],[0,2]]], +[" ┃ ",[[0,2],[4,1],[5,95],[0,2]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ┃ ",[[0,2],[6,1],[2,95],[0,2]]], +[" ┃ ",[[0,2],[6,1],[2,95],[0,2]]], +[" ┃ ",[[0,2],[6,1],[2,95],[0,2]]], +[" ┃ ",[[0,2],[6,1],[2,95],[0,2]]], +[" ╹▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀ ",[[0,2],[6,1],[7,95],[0,2]]], +[" /tmp/opencode/packages/tui:main shift+tab agents ctrl+p commands ",[[0,2],[1,31],[0,42],[1,6],[0,9],[1,8],[0,2]]], +[" ",[[0,100]]] +]} diff --git a/packages/cli-rs/parity/fixtures/E.6a/session-links/renamed.json b/packages/cli-rs/parity/fixtures/E.6a/session-links/renamed.json new file mode 100644 index 000000000000..8bf169dbb8c6 --- /dev/null +++ b/packages/cli-rs/parity/fixtures/E.6a/session-links/renamed.json @@ -0,0 +1,32 @@ +{"width":100,"height":30,"styles":["#ffffffff #202020ff 0","#ffffffff #202020ff 1","#808080ff #080808ff 0","#ffffffff #080808ff 0","#7699feff #141414ff 0","#ffffffff #141414ff 0","#eeeeeeff #080808ff 0","#fab283ff #080808ff 8","#fab283ff #080808ff 0","#7fd88fff #080808ff 0","#7699feff #080808ff 0","#484848ff #080808ff 0","#202020ff #080808ff 0"],"lines":[ +[" Fix the parser + ",[[0,3],[1,14],[0,15],[2,3],[3,65]]], +[" ",[[3,100]]], +[" ┃ ",[[3,2],[4,1],[5,95],[3,2]]], +[" ┃ Which sessions touched the parser? ",[[3,2],[4,1],[5,95],[3,2]]], +[" ┃ ",[[3,2],[4,1],[5,95],[3,2]]], +[" ",[[3,100]]], +[" This continues @Reconnect retries, not ses_current0000000000000000000. ",[[3,5],[6,15],[7,18],[6,37],[3,25]]], +[" ",[[3,100]]], +[" - archived ses_archived000000000000000000 ",[[3,5],[8,2],[6,39],[3,54]]], +[" - unknown @session:ses_unknown0000000000000000000 ",[[3,5],[8,2],[6,47],[3,46]]], +[" ",[[3,100]]], +[" Run opencode --session ses_known000000000000000000000 or open @Reconnect retries. ",[[3,5],[6,4],[9,49],[6,9],[7,18],[6,1],[3,14]]], +[" ",[[3,100]]], +[" Build · provider/model · 2ms ",[[3,5],[10,5],[2,23],[3,67]]], +[" ",[[3,100]]], +[" ",[[3,100]]], +[" ",[[3,100]]], +[" ",[[3,100]]], +[" ",[[3,100]]], +[" ",[[3,100]]], +[" ",[[3,100]]], +[" ",[[3,100]]], +[" ",[[3,100]]], +[" ┃ ",[[3,2],[11,1],[0,95],[3,2]]], +[" ┃ ",[[3,2],[11,1],[0,95],[3,2]]], +[" ┃ ",[[3,2],[11,1],[0,95],[3,2]]], +[" ┃ ",[[3,2],[11,1],[0,95],[3,2]]], +[" ╹▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀ ",[[3,2],[11,1],[12,95],[3,2]]], +[" /tmp/opencode/packages/tui:main shift+tab agents ctrl+p commands ",[[3,2],[2,31],[3,42],[2,6],[3,9],[2,8],[3,2]]], +[" ",[[3,100]]] +]} diff --git a/packages/cli-rs/parity/fixtures/E.6a/transcript.app.json b/packages/cli-rs/parity/fixtures/E.6a/transcript.app.json new file mode 100644 index 000000000000..3955c73851d5 --- /dev/null +++ b/packages/cli-rs/parity/fixtures/E.6a/transcript.app.json @@ -0,0 +1,57 @@ +{ + "scenario": "E.6a/transcript", + "width": 100, + "height": 30, + "directory": "/tmp/opencode/packages/tui", + "config": { + "debug": {"turn_tokens":true}, + "animations": false, + "experimental": {"new-designs":true}, + "theme": {"name":"opencode"} + }, + "args": { + "sessionID": "ses_e" + }, + "routes": [ + {"path":"/api/session/ses_e","json":{"data":{"id":"ses_e","title":"Fix the parser","projectID":"proj_test","cost":0,"tokens":{"input":0,"output":0,"reasoning":0,"cache":{"read":0,"write":0}},"time":{"created":2,"updated":2},"location":{"directory":"/tmp/opencode/packages/tui"}}}}, + {"path":"/api/session/ses_e/message","json":{"data":[{"id":"msg_2","type":"assistant","agent":"build","model":{"providerID":"provider","id":"model"},"content":[{"type":"reasoning","text":"**Reading the parser**\n\nThe loop stops one token early.","time":{"created":1500,"completed":3000}},{"type":"text","text":"The parser drops the **last** token in `next()`.\n\n- check the bound\n- add a test"}],"finish":"stop","tokens":{"input":1200,"output":50,"reasoning":0,"cache":{"read":3000,"write":0}},"time":{"created":1500,"firstToken":2000,"streamed":3000,"completed":4000}},{"id":"msg_1","type":"user","text":"Why does the parser fail?","time":{"created":1000},"files":[{"data":"","mime":"text/plain","name":"parser.rs","source":{"type":"inline"}}],"skills":[{"id":"skl_1","name":"rust"}]}],"cursor":{}}}, + {"path":"/api/session/ses_e/inbox","json":{"data":[]}} + ], + "steps": [ + {"checkpoint":"open","until":"Tokens","fixture":"E.6a/transcript/open"} + ], + "requests": { + "writes": [], + "reads": [ + {"method":"GET","path":"/api/agent","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":[]}}, + {"method":"GET","path":"/api/command","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":[]}}, + {"method":"GET","path":"/api/config","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":[]}, + {"method":"GET","path":"/api/experimental/job","query":{"descendants":["true"],"sessionID":["ses_e"],"status":["running"]},"status":200,"json":{"data":[]}}, + {"method":"GET","path":"/api/experimental/migration/v1","query":{},"status":200,"json":{"status":"completed"}}, + {"method":"GET","path":"/api/experimental/session/ses_e/terminal","query":{},"status":200,"json":{"data":[]}}, + {"method":"GET","path":"/api/form","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode"}},"data":[]}}, + {"method":"GET","path":"/api/fs/list","query":{"location[directory]":["<cwd>"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":[]}}, + {"method":"GET","path":"/api/info","query":{},"status":200,"json":{"version":"test","pid":0,"urls":[],"paths":{"tmp":"/tmp"},"capabilities":{"persistentPty":true}}}, + {"method":"GET","path":"/api/integration","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":[]}}, + {"method":"GET","path":"/api/location","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}}}, + {"method":"GET","path":"/api/mcp","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":[]}}, + {"method":"GET","path":"/api/mcp/resource","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":{"resources":[],"templates":[]}}}, + {"method":"GET","path":"/api/model","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":[]}}, + {"method":"GET","path":"/api/plugin","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":[]}}, + {"method":"GET","path":"/api/project","query":{},"status":200,"json":[]}, + {"method":"GET","path":"/api/provider","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":[]}}, + {"method":"GET","path":"/api/reference","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode/packages/tui","canonical":"/tmp/opencode/packages/tui"}},"data":[]}}, + {"method":"GET","path":"/api/session","query":{"limit":["200"],"order":["desc"],"parentID":["ses_e"]},"status":200,"json":{"data":[],"cursor":{}}}, + {"method":"GET","path":"/api/session/active","query":{},"status":200,"json":{"data":{}}}, + {"method":"GET","path":"/api/session/ses_e","query":{},"status":200,"json":{"data":{"id":"ses_e","title":"Fix the parser","projectID":"proj_test","cost":0,"tokens":{"input":0,"output":0,"reasoning":0,"cache":{"read":0,"write":0}},"time":{"created":2,"updated":2},"location":{"directory":"/tmp/opencode/packages/tui"}}}}, + {"method":"GET","path":"/api/session/ses_e/form","query":{},"status":200,"json":{"data":[]}}, + {"method":"GET","path":"/api/session/ses_e/inbox","query":{},"status":200,"json":{"data":[]}}, + {"method":"GET","path":"/api/session/ses_e/message","query":{"limit":["20"],"order":["desc"]},"status":200,"json":{"data":[{"id":"msg_2","type":"assistant","agent":"build","model":{"providerID":"provider","id":"model"},"content":[{"type":"reasoning","text":"**Reading the parser**\n\nThe loop stops one token early.","time":{"created":1500,"completed":3000}},{"type":"text","text":"The parser drops the **last** token in `next()`.\n\n- check the bound\n- add a test"}],"finish":"stop","tokens":{"input":1200,"output":50,"reasoning":0,"cache":{"read":3000,"write":0}},"time":{"created":1500,"firstToken":2000,"streamed":3000,"completed":4000}},{"id":"msg_1","type":"user","text":"Why does the parser fail?","time":{"created":1000},"files":[{"data":"","mime":"text/plain","name":"parser.rs","source":{"type":"inline"}}],"skills":[{"id":"skl_1","name":"rust"}]}],"cursor":{}}}, + {"method":"GET","path":"/api/session/ses_e/permission","query":{},"status":200,"json":{"data":[]}}, + {"method":"GET","path":"/api/shell","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":[]}}, + {"method":"GET","path":"/api/skill","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":[]}}, + {"method":"GET","path":"/api/vcs","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":{"branch":{"current":"main","default":"main"}}}}, + {"method":"POST","path":"/api/rpc/opencode.goal/get","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"body":{"input":{"sessionID":"ses_e"}},"status":200,"json":{"output":null}} + ] + } +} diff --git a/packages/cli-rs/parity/fixtures/E.6a/transcript/open.json b/packages/cli-rs/parity/fixtures/E.6a/transcript/open.json new file mode 100644 index 000000000000..91705f6d070a --- /dev/null +++ b/packages/cli-rs/parity/fixtures/E.6a/transcript/open.json @@ -0,0 +1,32 @@ +{"width":100,"height":30,"styles":["#ffffffff #202020ff 0","#ffffffff #202020ff 1","#808080ff #080808ff 0","#ffffffff #080808ff 0","#7699feff #141414ff 0","#ffffffff #141414ff 0","#141414ff #93a2b7ff 1","#808080ff #202020ff 0","#eeeeeeff #080808ff 0","#f5a742ff #080808ff 1","#7fd88fff #080808ff 0","#fab283ff #080808ff 0","#7699feff #080808ff 0","#484848ff #080808ff 0","#202020ff #080808ff 0"],"lines":[ +[" Fix the parser + ",[[0,3],[1,14],[0,15],[2,3],[3,65]]], +[" ",[[3,100]]], +[" ┃ ",[[3,2],[4,1],[5,95],[3,2]]], +[" ┃ Why does the parser fail? ",[[3,2],[4,1],[5,95],[3,2]]], +[" ┃ ",[[3,2],[4,1],[5,95],[3,2]]], +[" ┃ skill rust ",[[3,2],[4,1],[5,2],[6,7],[7,6],[5,80],[3,2]]], +[" ┃ ",[[3,2],[4,1],[5,95],[3,2]]], +[" ┃ file parser.rs ",[[3,2],[4,1],[5,2],[6,6],[7,11],[5,76],[3,2]]], +[" ┃ ",[[3,2],[4,1],[5,95],[3,2]]], +[" ",[[3,100]]], +[" + 1 thought ",[[3,5],[2,1],[3,1],[2,9],[3,84]]], +[" ",[[3,100]]], +[" The parser drops the last token in next(). ",[[3,5],[8,21],[9,4],[8,10],[10,6],[8,1],[3,53]]], +[" ",[[3,100]]], +[" - check the bound ",[[3,5],[11,2],[8,15],[3,78]]], +[" - add a test ",[[3,5],[11,2],[8,10],[3,83]]], +[" ",[[3,100]]], +[" Build · provider/model · 3.0s · 50.0 tok/s ",[[3,5],[12,5],[2,37],[3,53]]], +[" ",[[3,100]]], +[" + Tokens: 1 step · latest: 1,250 new · 3,000 cached · 4,250 total ",[[3,5],[2,65],[3,30]]], +[" ",[[3,100]]], +[" ",[[3,100]]], +[" ",[[3,100]]], +[" ┃ ",[[3,2],[13,1],[0,95],[3,2]]], +[" ┃ ",[[3,2],[13,1],[0,95],[3,2]]], +[" ┃ ",[[3,2],[13,1],[0,95],[3,2]]], +[" ┃ ",[[3,2],[13,1],[0,95],[3,2]]], +[" ╹▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀ ",[[3,2],[13,1],[14,95],[3,2]]], +[" /tmp/opencode/packages/tui:main 4.3K ctrl+p commands ",[[3,2],[2,31],[3,44],[2,4],[3,9],[2,8],[3,2]]], +[" ",[[3,100]]] +]} diff --git a/packages/cli-rs/parity/fixtures/E.6b/messages.app.json b/packages/cli-rs/parity/fixtures/E.6b/messages.app.json new file mode 100644 index 000000000000..7de62166236a --- /dev/null +++ b/packages/cli-rs/parity/fixtures/E.6b/messages.app.json @@ -0,0 +1,56 @@ +{ + "scenario": "E.6b/messages", + "width": 100, + "height": 40, + "directory": "/tmp/opencode/packages/tui", + "config": { + "animations": false, + "experimental": {"new-designs":true}, + "theme": {"name":"opencode"} + }, + "args": { + "sessionID": "ses_b" + }, + "routes": [ + {"path":"/api/session/ses_b","json":{"data":{"id":"ses_b","title":"Fix the parser","projectID":"proj_test","cost":0,"tokens":{"input":0,"output":0,"reasoning":0,"cache":{"read":0,"write":0}},"time":{"created":2,"updated":2},"location":{"directory":"/tmp/opencode/packages/tui"},"revert":{"messageID":"msg_6","files":[{"file":"src/parser.rs","patch":"","additions":4,"deletions":2,"status":"modified"}]}}}}, + {"path":"/api/session/ses_b/message","json":{"data":[{"id":"msg_6","type":"user","text":"Rewrite the lexer","time":{"created":9000}},{"id":"msg_5","type":"assistant","agent":"build","model":{"providerID":"provider","id":"model"},"content":[],"retry":{"attempt":2,"at":1000,"error":{"type":"provider","message":"Provider is overloaded"}},"time":{"created":8000}},{"id":"msg_4","type":"user","text":"Try again","time":{"created":7000}},{"id":"msg_3","type":"assistant","agent":"build","model":{"providerID":"provider","id":"model"},"content":[{"type":"text","text":"Reading the parser."}],"error":{"type":"provider","message":"Request too large"},"time":{"created":5000,"completed":6000}},{"id":"msg_2","type":"compaction","status":"completed","reason":"manual","summary":"The user is fixing the **parser**.","tokens":{"input":1200,"output":300,"reasoning":0,"cache":{"read":0,"write":0}},"time":{"created":3000}},{"id":"msg_1","type":"user","text":"Why does the parser fail?","time":{"created":1000}}],"cursor":{}}}, + {"path":"/api/session/ses_b/inbox","json":{"data":[]}} + ], + "steps": [ + {"checkpoint":"open","until":"message reverted","fixture":"E.6b/messages/open"} + ], + "requests": { + "writes": [], + "reads": [ + {"method":"GET","path":"/api/agent","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":[]}}, + {"method":"GET","path":"/api/command","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":[]}}, + {"method":"GET","path":"/api/config","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":[]}, + {"method":"GET","path":"/api/experimental/job","query":{"descendants":["true"],"sessionID":["ses_b"],"status":["running"]},"status":200,"json":{"data":[]}}, + {"method":"GET","path":"/api/experimental/migration/v1","query":{},"status":200,"json":{"status":"completed"}}, + {"method":"GET","path":"/api/experimental/session/ses_b/terminal","query":{},"status":200,"json":{"data":[]}}, + {"method":"GET","path":"/api/form","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode"}},"data":[]}}, + {"method":"GET","path":"/api/fs/list","query":{"location[directory]":["<cwd>"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":[]}}, + {"method":"GET","path":"/api/info","query":{},"status":200,"json":{"version":"test","pid":0,"urls":[],"paths":{"tmp":"/tmp"},"capabilities":{"persistentPty":true}}}, + {"method":"GET","path":"/api/integration","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":[]}}, + {"method":"GET","path":"/api/location","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}}}, + {"method":"GET","path":"/api/mcp","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":[]}}, + {"method":"GET","path":"/api/mcp/resource","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":{"resources":[],"templates":[]}}}, + {"method":"GET","path":"/api/model","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":[]}}, + {"method":"GET","path":"/api/plugin","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":[]}}, + {"method":"GET","path":"/api/project","query":{},"status":200,"json":[]}, + {"method":"GET","path":"/api/provider","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":[]}}, + {"method":"GET","path":"/api/reference","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode/packages/tui","canonical":"/tmp/opencode/packages/tui"}},"data":[]}}, + {"method":"GET","path":"/api/session","query":{"limit":["200"],"order":["desc"],"parentID":["ses_b"]},"status":200,"json":{"data":[],"cursor":{}}}, + {"method":"GET","path":"/api/session/active","query":{},"status":200,"json":{"data":{}}}, + {"method":"GET","path":"/api/session/ses_b","query":{},"status":200,"json":{"data":{"id":"ses_b","title":"Fix the parser","projectID":"proj_test","cost":0,"tokens":{"input":0,"output":0,"reasoning":0,"cache":{"read":0,"write":0}},"time":{"created":2,"updated":2},"location":{"directory":"/tmp/opencode/packages/tui"},"revert":{"messageID":"msg_6","files":[{"file":"src/parser.rs","patch":"","additions":4,"deletions":2,"status":"modified"}]}}}}, + {"method":"GET","path":"/api/session/ses_b/form","query":{},"status":200,"json":{"data":[]}}, + {"method":"GET","path":"/api/session/ses_b/inbox","query":{},"status":200,"json":{"data":[]}}, + {"method":"GET","path":"/api/session/ses_b/message","query":{"limit":["20"],"order":["desc"]},"status":200,"json":{"data":[{"id":"msg_6","type":"user","text":"Rewrite the lexer","time":{"created":9000}},{"id":"msg_5","type":"assistant","agent":"build","model":{"providerID":"provider","id":"model"},"content":[],"retry":{"attempt":2,"at":1000,"error":{"type":"provider","message":"Provider is overloaded"}},"time":{"created":8000}},{"id":"msg_4","type":"user","text":"Try again","time":{"created":7000}},{"id":"msg_3","type":"assistant","agent":"build","model":{"providerID":"provider","id":"model"},"content":[{"type":"text","text":"Reading the parser."}],"error":{"type":"provider","message":"Request too large"},"time":{"created":5000,"completed":6000}},{"id":"msg_2","type":"compaction","status":"completed","reason":"manual","summary":"The user is fixing the **parser**.","tokens":{"input":1200,"output":300,"reasoning":0,"cache":{"read":0,"write":0}},"time":{"created":3000}},{"id":"msg_1","type":"user","text":"Why does the parser fail?","time":{"created":1000}}],"cursor":{}}}, + {"method":"GET","path":"/api/session/ses_b/permission","query":{},"status":200,"json":{"data":[]}}, + {"method":"GET","path":"/api/shell","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":[]}}, + {"method":"GET","path":"/api/skill","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":[]}}, + {"method":"GET","path":"/api/vcs","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":{"branch":{"current":"main","default":"main"}}}}, + {"method":"POST","path":"/api/rpc/opencode.goal/get","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"body":{"input":{"sessionID":"ses_b"}},"status":200,"json":{"output":null}} + ] + } +} diff --git a/packages/cli-rs/parity/fixtures/E.6b/messages/open.json b/packages/cli-rs/parity/fixtures/E.6b/messages/open.json new file mode 100644 index 000000000000..7b62febaa665 --- /dev/null +++ b/packages/cli-rs/parity/fixtures/E.6b/messages/open.json @@ -0,0 +1,42 @@ +{"width":100,"height":40,"styles":["#ffffffff #202020ff 0","#ffffffff #202020ff 1","#808080ff #080808ff 0","#ffffffff #080808ff 0","#7699feff #141414ff 0","#ffffffff #141414ff 0","#eeeeeeff #080808ff 0","#f5a742ff #080808ff 1","#ef6c6cff #080808ff 0","#f5a742ff #080808ff 0","#7699feff #080808ff 0","#141414ff #080808ff 0","#808080ff #141414ff 0","#4fd6beff #141414ff 0","#c53b53ff #141414ff 0","#484848ff #080808ff 0","#202020ff #080808ff 0"],"lines":[ +[" Fix the parser + ",[[0,3],[1,14],[0,15],[2,3],[3,65]]], +[" ",[[3,100]]], +[" ┃ ",[[3,2],[4,1],[5,95],[3,2]]], +[" ┃ Why does the parser fail? ",[[3,2],[4,1],[5,95],[3,2]]], +[" ┃ ",[[3,2],[4,1],[5,95],[3,2]]], +[" ",[[3,100]]], +[" ──────────────────────────────── Compaction · 1.2K in · 300 out ──────────────────────────────── ",[[3,2],[2,32],[3,1],[2,10],[3,1],[2,19],[3,1],[2,32],[3,2]]], +[" ",[[3,100]]], +[" The user is fixing the parser. ",[[3,5],[6,23],[7,6],[6,1],[3,65]]], +[" ",[[3,100]]], +[" Reading the parser. ",[[3,5],[6,19],[3,76]]], +[" ",[[3,100]]], +[" Error: Request too large ",[[3,5],[8,24],[3,71]]], +[" ",[[3,100]]], +[" Build · provider/model · 5.0s ",[[3,5],[2,29],[3,66]]], +[" ",[[3,100]]], +[" ┃ ",[[3,2],[4,1],[5,95],[3,2]]], +[" ┃ Try again ",[[3,2],[4,1],[5,95],[3,2]]], +[" ┃ ",[[3,2],[4,1],[5,95],[3,2]]], +[" ",[[3,100]]], +[" ⚠ Retry due · attempt 2 · Provider is overloaded ",[[3,5],[9,48],[3,47]]], +[" ",[[3,100]]], +[" Build · provider/model ",[[3,5],[10,5],[2,17],[3,73]]], +[" ",[[3,100]]], +[" ┃ ",[[3,2],[11,1],[5,95],[3,2]]], +[" ┃ 1 message reverted ",[[3,2],[11,1],[5,2],[12,18],[5,75],[3,2]]], +[" ┃ ",[[3,2],[11,1],[5,95],[3,2]]], +[" ┃ M src/parser.rs +4 -2 ",[[3,2],[11,1],[5,2],[12,1],[5,15],[13,2],[5,1],[14,2],[5,72],[3,2]]], +[" ┃ ",[[3,2],[11,1],[5,95],[3,2]]], +[" ┃ ctrl+x r or /redo to restore ",[[3,2],[11,1],[5,10],[12,20],[5,65],[3,2]]], +[" ┃ ",[[3,2],[11,1],[5,95],[3,2]]], +[" ",[[3,100]]], +[" ",[[3,100]]], +[" ┃ ",[[3,2],[15,1],[0,95],[3,2]]], +[" ┃ ",[[3,2],[15,1],[0,95],[3,2]]], +[" ┃ ",[[3,2],[15,1],[0,95],[3,2]]], +[" ┃ ",[[3,2],[15,1],[0,95],[3,2]]], +[" ╹▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀ ",[[3,2],[15,1],[16,95],[3,2]]], +[" /tmp/opencode/packages/tui:main shift+tab agents ctrl+p commands ",[[3,2],[2,31],[3,42],[2,6],[3,9],[2,8],[3,2]]], +[" ",[[3,100]]] +]} diff --git a/packages/cli-rs/parity/fixtures/E.6b/right-padding.app.json b/packages/cli-rs/parity/fixtures/E.6b/right-padding.app.json new file mode 100644 index 000000000000..c5767602b162 --- /dev/null +++ b/packages/cli-rs/parity/fixtures/E.6b/right-padding.app.json @@ -0,0 +1,57 @@ +{ + "scenario": "E.6b/right-padding", + "width": 60, + "height": 50, + "directory": "/tmp/opencode/packages/tui", + "config": { + "session": {"grouping":"none"}, + "animations": false, + "experimental": {"new-designs":true}, + "theme": {"name":"opencode"} + }, + "args": { + "sessionID": "ses_pad" + }, + "routes": [ + {"path":"/api/session/ses_pad","json":{"data":{"id":"ses_pad","title":"Pad the blocks","projectID":"proj_test","cost":0,"tokens":{"input":0,"output":0,"reasoning":0,"cache":{"read":0,"write":0}},"time":{"created":2,"updated":2},"location":{"directory":"/tmp/opencode/packages/tui"},"revert":{"messageID":"msg_3","files":[{"file":"src/components/navigation/sidebar/sections/project-tree/expanded-folder-row.tsx","patch":"","additions":12,"deletions":3,"status":"modified"}]}}}}, + {"path":"/api/session/ses_pad/message","json":{"data":[{"id":"msg_3","type":"user","text":"Undo this one","time":{"created":3000}},{"id":"msg_2","type":"assistant","agent":"build","model":{"providerID":"provider","id":"model"},"content":[{"type":"tool","id":"call_1","name":"write","state":{"status":"completed","input":{"filePath":"/tmp/opencode/packages/tui/src/components/navigation/sidebar/sections/project-tree/expanded-folder-row.tsx","content":"export {}\n"},"content":[{"type":"text","text":"Wrote"}],"metadata":{}},"time":{"created":1600,"completed":1700}},{"type":"tool","id":"call_2","name":"apply_patch","state":{"status":"completed","input":{"patchText":"*** Begin Patch"},"content":[{"type":"text","text":"Applied"}],"metadata":{"files":[{"file":"src/components/navigation/sidebar/sections/project-tree/expanded-folder-row.tsx","filePath":"/tmp/opencode/packages/tui/src/components/navigation/sidebar/sections/project-tree/expanded-folder-row.tsx","type":"delete","patch":"","additions":0,"deletions":12}]}},"time":{"created":1600,"completed":1700}}],"time":{"created":2000,"completed":2500}},{"id":"msg_1","type":"user","text":"Rename every expanded folder row in the project tree so that the sidebar and the file picker share one component","time":{"created":1000}}],"cursor":{}}}, + {"path":"/api/session/ses_pad/inbox","json":{"data":[]}} + ], + "steps": [ + {"checkpoint":"open","until":"message reverted","fixture":"E.6b/right-padding/open"} + ], + "requests": { + "writes": [], + "reads": [ + {"method":"GET","path":"/api/agent","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":[]}}, + {"method":"GET","path":"/api/command","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":[]}}, + {"method":"GET","path":"/api/config","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":[]}, + {"method":"GET","path":"/api/experimental/job","query":{"descendants":["true"],"sessionID":["ses_pad"],"status":["running"]},"status":200,"json":{"data":[]}}, + {"method":"GET","path":"/api/experimental/migration/v1","query":{},"status":200,"json":{"status":"completed"}}, + {"method":"GET","path":"/api/experimental/session/ses_pad/terminal","query":{},"status":200,"json":{"data":[]}}, + {"method":"GET","path":"/api/form","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode"}},"data":[]}}, + {"method":"GET","path":"/api/fs/list","query":{"location[directory]":["<cwd>"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":[]}}, + {"method":"GET","path":"/api/info","query":{},"status":200,"json":{"version":"test","pid":0,"urls":[],"paths":{"tmp":"/tmp"},"capabilities":{"persistentPty":true}}}, + {"method":"GET","path":"/api/integration","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":[]}}, + {"method":"GET","path":"/api/location","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}}}, + {"method":"GET","path":"/api/mcp","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":[]}}, + {"method":"GET","path":"/api/mcp/resource","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":{"resources":[],"templates":[]}}}, + {"method":"GET","path":"/api/model","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":[]}}, + {"method":"GET","path":"/api/plugin","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":[]}}, + {"method":"GET","path":"/api/project","query":{},"status":200,"json":[]}, + {"method":"GET","path":"/api/provider","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":[]}}, + {"method":"GET","path":"/api/reference","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode/packages/tui","canonical":"/tmp/opencode/packages/tui"}},"data":[]}}, + {"method":"GET","path":"/api/session","query":{"limit":["200"],"order":["desc"],"parentID":["ses_pad"]},"status":200,"json":{"data":[],"cursor":{}}}, + {"method":"GET","path":"/api/session/active","query":{},"status":200,"json":{"data":{}}}, + {"method":"GET","path":"/api/session/ses_pad","query":{},"status":200,"json":{"data":{"id":"ses_pad","title":"Pad the blocks","projectID":"proj_test","cost":0,"tokens":{"input":0,"output":0,"reasoning":0,"cache":{"read":0,"write":0}},"time":{"created":2,"updated":2},"location":{"directory":"/tmp/opencode/packages/tui"},"revert":{"messageID":"msg_3","files":[{"file":"src/components/navigation/sidebar/sections/project-tree/expanded-folder-row.tsx","patch":"","additions":12,"deletions":3,"status":"modified"}]}}}}, + {"method":"GET","path":"/api/session/ses_pad/form","query":{},"status":200,"json":{"data":[]}}, + {"method":"GET","path":"/api/session/ses_pad/inbox","query":{},"status":200,"json":{"data":[]}}, + {"method":"GET","path":"/api/session/ses_pad/message","query":{"limit":["20"],"order":["desc"]},"status":200,"json":{"data":[{"id":"msg_3","type":"user","text":"Undo this one","time":{"created":3000}},{"id":"msg_2","type":"assistant","agent":"build","model":{"providerID":"provider","id":"model"},"content":[{"type":"tool","id":"call_1","name":"write","state":{"status":"completed","input":{"filePath":"/tmp/opencode/packages/tui/src/components/navigation/sidebar/sections/project-tree/expanded-folder-row.tsx","content":"export {}\n"},"content":[{"type":"text","text":"Wrote"}],"metadata":{}},"time":{"created":1600,"completed":1700}},{"type":"tool","id":"call_2","name":"apply_patch","state":{"status":"completed","input":{"patchText":"*** Begin Patch"},"content":[{"type":"text","text":"Applied"}],"metadata":{"files":[{"file":"src/components/navigation/sidebar/sections/project-tree/expanded-folder-row.tsx","filePath":"/tmp/opencode/packages/tui/src/components/navigation/sidebar/sections/project-tree/expanded-folder-row.tsx","type":"delete","patch":"","additions":0,"deletions":12}]}},"time":{"created":1600,"completed":1700}}],"time":{"created":2000,"completed":2500}},{"id":"msg_1","type":"user","text":"Rename every expanded folder row in the project tree so that the sidebar and the file picker share one component","time":{"created":1000}}],"cursor":{}}}, + {"method":"GET","path":"/api/session/ses_pad/permission","query":{},"status":200,"json":{"data":[]}}, + {"method":"GET","path":"/api/shell","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":[]}}, + {"method":"GET","path":"/api/skill","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":[]}}, + {"method":"GET","path":"/api/vcs","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":{"branch":{"current":"main","default":"main"}}}}, + {"method":"POST","path":"/api/rpc/opencode.goal/get","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"body":{"input":{"sessionID":"ses_pad"}},"status":200,"json":{"output":null}} + ] + } +} diff --git a/packages/cli-rs/parity/fixtures/E.6b/right-padding/open.json b/packages/cli-rs/parity/fixtures/E.6b/right-padding/open.json new file mode 100644 index 000000000000..afc42ef23432 --- /dev/null +++ b/packages/cli-rs/parity/fixtures/E.6b/right-padding/open.json @@ -0,0 +1,52 @@ +{"width":60,"height":50,"styles":["#ffffffff #202020ff 0","#ffffffff #202020ff 1","#808080ff #080808ff 0","#ffffffff #080808ff 0","#7699feff #141414ff 0","#ffffffff #141414ff 0","#141414ff #080808ff 0","#808080ff #141414ff 0","#4fd6beff #141414ff 0","#c53b53ff #141414ff 0","#484848ff #080808ff 0","#202020ff #080808ff 0"],"lines":[ +[" Pad the blocks + ",[[0,3],[1,14],[0,15],[2,3],[3,25]]], +[" ",[[3,60]]], +[" ┃ ",[[3,2],[4,1],[5,55],[3,2]]], +[" ┃ Rename every expanded folder row in the project ",[[3,2],[4,1],[5,55],[3,2]]], +[" ┃ tree so that the sidebar and the file picker share ",[[3,2],[4,1],[5,55],[3,2]]], +[" ┃ one component ",[[3,2],[4,1],[5,55],[3,2]]], +[" ┃ ",[[3,2],[4,1],[5,55],[3,2]]], +[" ",[[3,60]]], +[" + 2 edits ",[[3,5],[2,1],[3,1],[2,7],[3,46]]], +[" ",[[3,60]]], +[" ┃ ",[[3,2],[6,1],[5,55],[3,2]]], +[" ┃ 1 message reverted ",[[3,2],[6,1],[5,2],[7,18],[5,35],[3,2]]], +[" ┃ ",[[3,2],[6,1],[5,55],[3,2]]], +[" ┃ M …/se…/project-tree/expanded-folder-row.tsx +12 -3 ",[[3,2],[6,1],[5,2],[7,1],[5,44],[8,3],[5,1],[9,2],[5,2],[3,2]]], +[" ┃ ",[[3,2],[6,1],[5,55],[3,2]]], +[" ┃ ctrl+x r or /redo to restore ",[[3,2],[6,1],[5,10],[7,20],[5,25],[3,2]]], +[" ┃ ",[[3,2],[6,1],[5,55],[3,2]]], +[" ",[[3,60]]], +[" ",[[3,60]]], +[" ",[[3,60]]], +[" ",[[3,60]]], +[" ",[[3,60]]], +[" ",[[3,60]]], +[" ",[[3,60]]], +[" ",[[3,60]]], +[" ",[[3,60]]], +[" ",[[3,60]]], +[" ",[[3,60]]], +[" ",[[3,60]]], +[" ",[[3,60]]], +[" ",[[3,60]]], +[" ",[[3,60]]], +[" ",[[3,60]]], +[" ",[[3,60]]], +[" ",[[3,60]]], +[" ",[[3,60]]], +[" ",[[3,60]]], +[" ",[[3,60]]], +[" ",[[3,60]]], +[" ",[[3,60]]], +[" ",[[3,60]]], +[" ",[[3,60]]], +[" ",[[3,60]]], +[" ┃ ",[[3,2],[10,1],[0,55],[3,2]]], +[" ┃ ",[[3,2],[10,1],[0,55],[3,2]]], +[" ┃ ",[[3,2],[10,1],[0,55],[3,2]]], +[" ┃ ",[[3,2],[10,1],[0,55],[3,2]]], +[" ╹▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀ ",[[3,2],[10,1],[11,55],[3,2]]], +[" /…/packages/tui:main shift+tab agents ctrl+p commands ",[[3,2],[2,20],[3,13],[2,6],[3,9],[2,8],[3,2]]], +[" ",[[3,60]]] +]} diff --git a/packages/cli-rs/parity/fixtures/E.7a/shell-stopped.app.json b/packages/cli-rs/parity/fixtures/E.7a/shell-stopped.app.json new file mode 100644 index 000000000000..2cd8629aac0c --- /dev/null +++ b/packages/cli-rs/parity/fixtures/E.7a/shell-stopped.app.json @@ -0,0 +1,57 @@ +{ + "scenario": "E.7a/shell-stopped", + "width": 100, + "height": 50, + "directory": "/tmp/opencode/packages/tui", + "config": { + "session": {"grouping":"none","verbosity":"medium"}, + "animations": false, + "experimental": {"new-designs":true}, + "theme": {"name":"opencode"} + }, + "args": { + "sessionID": "ses_stopped" + }, + "routes": [ + {"path":"/api/session/ses_stopped","json":{"data":{"id":"ses_stopped","title":"Stopped shell","projectID":"proj_test","cost":0,"tokens":{"input":0,"output":0,"reasoning":0,"cache":{"read":0,"write":0}},"time":{"created":2,"updated":2},"location":{"directory":"/tmp/opencode/packages/tui"}}}}, + {"path":"/api/session/ses_stopped/message","json":{"data":[{"id":"msg_2","type":"assistant","agent":"build","model":{"providerID":"provider","id":"model"},"content":[{"type":"tool","id":"call_1","name":"shell","time":{"created":1600,"completed":1700},"state":{"input":{"command":"seq-completed"},"status":"completed","content":[{"type":"text","text":"step 1\nstep 2\nstep 3\nstep 4\nstep 5\nstep 6\nstep 7\nstep 8\nstep 9\nstep 10\nstep 11\nstep 12\nstep 13\nstep 14\nstep 15"}],"metadata":{"exit":0,"truncated":false}}},{"type":"tool","id":"call_2","name":"shell","time":{"created":1600,"completed":1700},"state":{"input":{"command":"seq-stopped"},"status":"error","error":{"type":"tool.execution","message":"step 1\nstep 2\nstep 3\nstep 4\nstep 5\nstep 6\nstep 7\nstep 8\nstep 9\nstep 10\nstep 11\nstep 12\nstep 13\nstep 14\nstep 15\n\n[full output saved to /tmp/sh_stopped.out]\n\nCommand interrupted by the user (shell ID: sh_stopped)."},"metadata":{"interrupted":true,"truncated":false,"shellID":"sh_stopped","notice":"[full output saved to /tmp/sh_stopped.out]\n\nCommand interrupted by the user (shell ID: sh_stopped)."}}},{"type":"text","text":"Both ran"}],"finish":"stop","time":{"created":1500,"completed":1800}},{"id":"msg_1","type":"user","text":"Run them","time":{"created":1000}}],"cursor":{}}}, + {"path":"/api/session/ses_stopped/inbox","json":{"data":[]}} + ], + "steps": [ + {"checkpoint":"open","until":"Both ran","fixture":"E.7a/shell-stopped/open"} + ], + "requests": { + "writes": [], + "reads": [ + {"method":"GET","path":"/api/agent","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":[]}}, + {"method":"GET","path":"/api/command","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":[]}}, + {"method":"GET","path":"/api/config","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":[]}, + {"method":"GET","path":"/api/experimental/job","query":{"descendants":["true"],"sessionID":["ses_stopped"],"status":["running"]},"status":200,"json":{"data":[]}}, + {"method":"GET","path":"/api/experimental/migration/v1","query":{},"status":200,"json":{"status":"completed"}}, + {"method":"GET","path":"/api/experimental/session/ses_stopped/terminal","query":{},"status":200,"json":{"data":[]}}, + {"method":"GET","path":"/api/form","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode"}},"data":[]}}, + {"method":"GET","path":"/api/fs/list","query":{"location[directory]":["<cwd>"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":[]}}, + {"method":"GET","path":"/api/info","query":{},"status":200,"json":{"version":"test","pid":0,"urls":[],"paths":{"tmp":"/tmp"},"capabilities":{"persistentPty":true}}}, + {"method":"GET","path":"/api/integration","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":[]}}, + {"method":"GET","path":"/api/location","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}}}, + {"method":"GET","path":"/api/mcp","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":[]}}, + {"method":"GET","path":"/api/mcp/resource","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":{"resources":[],"templates":[]}}}, + {"method":"GET","path":"/api/model","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":[]}}, + {"method":"GET","path":"/api/plugin","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":[]}}, + {"method":"GET","path":"/api/project","query":{},"status":200,"json":[]}, + {"method":"GET","path":"/api/provider","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":[]}}, + {"method":"GET","path":"/api/reference","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode/packages/tui","canonical":"/tmp/opencode/packages/tui"}},"data":[]}}, + {"method":"GET","path":"/api/session","query":{"limit":["200"],"order":["desc"],"parentID":["ses_stopped"]},"status":200,"json":{"data":[],"cursor":{}}}, + {"method":"GET","path":"/api/session/active","query":{},"status":200,"json":{"data":{}}}, + {"method":"GET","path":"/api/session/ses_stopped","query":{},"status":200,"json":{"data":{"id":"ses_stopped","title":"Stopped shell","projectID":"proj_test","cost":0,"tokens":{"input":0,"output":0,"reasoning":0,"cache":{"read":0,"write":0}},"time":{"created":2,"updated":2},"location":{"directory":"/tmp/opencode/packages/tui"}}}}, + {"method":"GET","path":"/api/session/ses_stopped/form","query":{},"status":200,"json":{"data":[]}}, + {"method":"GET","path":"/api/session/ses_stopped/inbox","query":{},"status":200,"json":{"data":[]}}, + {"method":"GET","path":"/api/session/ses_stopped/message","query":{"limit":["20"],"order":["desc"]},"status":200,"json":{"data":[{"id":"msg_2","type":"assistant","agent":"build","model":{"providerID":"provider","id":"model"},"content":[{"type":"tool","id":"call_1","name":"shell","time":{"created":1600,"completed":1700},"state":{"input":{"command":"seq-completed"},"status":"completed","content":[{"type":"text","text":"step 1\nstep 2\nstep 3\nstep 4\nstep 5\nstep 6\nstep 7\nstep 8\nstep 9\nstep 10\nstep 11\nstep 12\nstep 13\nstep 14\nstep 15"}],"metadata":{"exit":0,"truncated":false}}},{"type":"tool","id":"call_2","name":"shell","time":{"created":1600,"completed":1700},"state":{"input":{"command":"seq-stopped"},"status":"error","error":{"type":"tool.execution","message":"step 1\nstep 2\nstep 3\nstep 4\nstep 5\nstep 6\nstep 7\nstep 8\nstep 9\nstep 10\nstep 11\nstep 12\nstep 13\nstep 14\nstep 15\n\n[full output saved to /tmp/sh_stopped.out]\n\nCommand interrupted by the user (shell ID: sh_stopped)."},"metadata":{"interrupted":true,"truncated":false,"shellID":"sh_stopped","notice":"[full output saved to /tmp/sh_stopped.out]\n\nCommand interrupted by the user (shell ID: sh_stopped)."}}},{"type":"text","text":"Both ran"}],"finish":"stop","time":{"created":1500,"completed":1800}},{"id":"msg_1","type":"user","text":"Run them","time":{"created":1000}}],"cursor":{}}}, + {"method":"GET","path":"/api/session/ses_stopped/permission","query":{},"status":200,"json":{"data":[]}}, + {"method":"GET","path":"/api/shell","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":[]}}, + {"method":"GET","path":"/api/skill","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":[]}}, + {"method":"GET","path":"/api/vcs","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":{"branch":{"current":"main","default":"main"}}}}, + {"method":"POST","path":"/api/rpc/opencode.goal/get","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"body":{"input":{"sessionID":"ses_stopped"}},"status":200,"json":{"output":null}} + ] + } +} diff --git a/packages/cli-rs/parity/fixtures/E.7a/shell-stopped/open.json b/packages/cli-rs/parity/fixtures/E.7a/shell-stopped/open.json new file mode 100644 index 000000000000..22a5c72c413c --- /dev/null +++ b/packages/cli-rs/parity/fixtures/E.7a/shell-stopped/open.json @@ -0,0 +1,52 @@ +{"width":100,"height":50,"styles":["#ffffffff #202020ff 0","#ffffffff #202020ff 1","#808080ff #080808ff 0","#ffffffff #080808ff 0","#7699feff #141414ff 0","#ffffffff #141414ff 0","#080808ff #141414ff 0","#808080ff #141414ff 0","#ef6c6cff #141414ff 0","#eeeeeeff #080808ff 0","#7699feff #080808ff 0","#484848ff #080808ff 0","#202020ff #080808ff 0"],"lines":[ +[" Stopped shell + ",[[0,3],[1,13],[0,16],[2,3],[3,65]]], +[" ",[[3,100]]], +[" ┃ ",[[3,2],[4,1],[5,95],[3,2]]], +[" ┃ Run them ",[[3,2],[4,1],[5,95],[3,2]]], +[" ┃ ",[[3,2],[4,1],[5,95],[3,2]]], +[" ",[[3,100]]], +[" ┃ ",[[3,2],[6,1],[5,95],[3,2]]], +[" ┃ $ seq-completed ",[[3,2],[6,1],[5,95],[3,2]]], +[" ┃ ",[[3,2],[6,1],[5,95],[3,2]]], +[" ┃ (8 earlier lines) ",[[3,2],[6,1],[5,2],[7,17],[5,76],[3,2]]], +[" ┃ step 9 ",[[3,2],[6,1],[5,2],[7,6],[5,87],[3,2]]], +[" ┃ step 10 ",[[3,2],[6,1],[5,2],[7,7],[5,86],[3,2]]], +[" ┃ step 11 ",[[3,2],[6,1],[5,2],[7,7],[5,86],[3,2]]], +[" ┃ step 12 ",[[3,2],[6,1],[5,2],[7,7],[5,86],[3,2]]], +[" ┃ step 13 ",[[3,2],[6,1],[5,2],[7,7],[5,86],[3,2]]], +[" ┃ step 14 ",[[3,2],[6,1],[5,2],[7,7],[5,86],[3,2]]], +[" ┃ step 15 ",[[3,2],[6,1],[5,2],[7,7],[5,86],[3,2]]], +[" ┃ ",[[3,2],[6,1],[5,95],[3,2]]], +[" ",[[3,100]]], +[" ┃ ",[[3,2],[6,1],[5,95],[3,2]]], +[" ┃ $ seq-stopped ",[[3,2],[6,1],[5,95],[3,2]]], +[" ┃ ",[[3,2],[6,1],[5,95],[3,2]]], +[" ┃ (8 earlier lines) ",[[3,2],[6,1],[5,2],[7,17],[5,76],[3,2]]], +[" ┃ step 9 ",[[3,2],[6,1],[5,2],[7,6],[5,87],[3,2]]], +[" ┃ step 10 ",[[3,2],[6,1],[5,2],[7,7],[5,86],[3,2]]], +[" ┃ step 11 ",[[3,2],[6,1],[5,2],[7,7],[5,86],[3,2]]], +[" ┃ step 12 ",[[3,2],[6,1],[5,2],[7,7],[5,86],[3,2]]], +[" ┃ step 13 ",[[3,2],[6,1],[5,2],[7,7],[5,86],[3,2]]], +[" ┃ step 14 ",[[3,2],[6,1],[5,2],[7,7],[5,86],[3,2]]], +[" ┃ step 15 ",[[3,2],[6,1],[5,2],[7,7],[5,86],[3,2]]], +[" ┃ ",[[3,2],[6,1],[5,95],[3,2]]], +[" ┃ [full output saved to /tmp/sh_stopped.out] ",[[3,2],[6,1],[5,2],[8,42],[5,51],[3,2]]], +[" ┃ ",[[3,2],[6,1],[5,95],[3,2]]], +[" ┃ Command interrupted by the user (shell ID: sh_stopped). ",[[3,2],[6,1],[5,2],[8,55],[5,38],[3,2]]], +[" ┃ ",[[3,2],[6,1],[5,95],[3,2]]], +[" ",[[3,100]]], +[" Both ran ",[[3,5],[9,8],[3,87]]], +[" ",[[3,100]]], +[" Build · provider/model · 800ms ",[[3,5],[10,5],[2,25],[3,65]]], +[" ",[[3,100]]], +[" ",[[3,100]]], +[" ",[[3,100]]], +[" ",[[3,100]]], +[" ┃ ",[[3,2],[11,1],[0,95],[3,2]]], +[" ┃ ",[[3,2],[11,1],[0,95],[3,2]]], +[" ┃ ",[[3,2],[11,1],[0,95],[3,2]]], +[" ┃ ",[[3,2],[11,1],[0,95],[3,2]]], +[" ╹▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀ ",[[3,2],[11,1],[12,95],[3,2]]], +[" /tmp/opencode/packages/tui:main shift+tab agents ctrl+p commands ",[[3,2],[2,31],[3,42],[2,6],[3,9],[2,8],[3,2]]], +[" ",[[3,100]]] +]} diff --git a/packages/cli-rs/parity/fixtures/E.7a/tools-low.app.json b/packages/cli-rs/parity/fixtures/E.7a/tools-low.app.json new file mode 100644 index 000000000000..a04fddcec86a --- /dev/null +++ b/packages/cli-rs/parity/fixtures/E.7a/tools-low.app.json @@ -0,0 +1,57 @@ +{ + "scenario": "E.7a/tools-low", + "width": 100, + "height": 40, + "directory": "/tmp/opencode/packages/tui", + "config": { + "session": {"grouping":"none"}, + "animations": false, + "experimental": {"new-designs":true}, + "theme": {"name":"opencode"} + }, + "args": { + "sessionID": "ses_tools" + }, + "routes": [ + {"path":"/api/session/ses_tools","json":{"data":{"id":"ses_tools","title":"Fix the parser","projectID":"proj_test","cost":0,"tokens":{"input":0,"output":0,"reasoning":0,"cache":{"read":0,"write":0}},"time":{"created":2,"updated":2},"location":{"directory":"/tmp/opencode/packages/tui"}}}}, + {"path":"/api/session/ses_tools/message","json":{"data":[{"id":"msg_2","type":"assistant","agent":"build","model":{"providerID":"provider","id":"model"},"content":[{"type":"tool","id":"call_1","name":"shell","state":{"status":"completed","input":{"command":"cargo test parser","workdir":"/tmp/opencode/packages/tui"},"content":[{"type":"text","text":"running 2 tests\ntest next_stops_early ... FAILED\ntest next_reads ... ok"}],"metadata":{"exit":101}},"time":{"created":1600,"completed":1700}},{"type":"tool","id":"call_2","name":"read","state":{"status":"completed","input":{"path":"/tmp/opencode/packages/tui/src/parser.rs","offset":1,"limit":40},"content":[{"type":"text","text":"fn next() {}"}],"metadata":{}},"time":{"created":1600,"completed":1700}},{"type":"tool","id":"call_3","name":"edit","state":{"status":"completed","input":{"path":"/tmp/opencode/packages/tui/src/parser.rs"},"content":[{"type":"text","text":"Edited src/parser.rs"}],"metadata":{"files":[{"file":"src/parser.rs","filePath":"/tmp/opencode/packages/tui/src/parser.rs","type":"update","patch":"Index: src/parser.rs\n===================================================================\n--- src/parser.rs\n+++ src/parser.rs\n@@ -1,4 +1,4 @@\n fn next(tokens: &[Token], index: usize) -> Option<&Token> {\n- if index + 1 < tokens.len() {\n+ if index < tokens.len() {\n return tokens.get(index);\n }\n","additions":1,"deletions":1}],"diagnostics":{"/tmp/opencode/packages/tui/src/parser.rs":[{"severity":1,"message":"unused variable: `index`","range":{"start":{"line":0,"character":26}}}]}}},"time":{"created":1600,"completed":1700}}],"finish":"tool-calls","time":{"created":1500,"completed":1800}},{"id":"msg_1","type":"user","text":"Fix the off-by-one in the parser","time":{"created":1000}}],"cursor":{}}}, + {"path":"/api/session/ses_tools/inbox","json":{"data":[]}} + ], + "steps": [ + {"checkpoint":"open","until":"1 command, 1 edit, 1 read","fixture":"E.7a/tools-low/open"} + ], + "requests": { + "writes": [], + "reads": [ + {"method":"GET","path":"/api/agent","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":[]}}, + {"method":"GET","path":"/api/command","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":[]}}, + {"method":"GET","path":"/api/config","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":[]}, + {"method":"GET","path":"/api/experimental/job","query":{"descendants":["true"],"sessionID":["ses_tools"],"status":["running"]},"status":200,"json":{"data":[]}}, + {"method":"GET","path":"/api/experimental/migration/v1","query":{},"status":200,"json":{"status":"completed"}}, + {"method":"GET","path":"/api/experimental/session/ses_tools/terminal","query":{},"status":200,"json":{"data":[]}}, + {"method":"GET","path":"/api/form","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode"}},"data":[]}}, + {"method":"GET","path":"/api/fs/list","query":{"location[directory]":["<cwd>"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":[]}}, + {"method":"GET","path":"/api/info","query":{},"status":200,"json":{"version":"test","pid":0,"urls":[],"paths":{"tmp":"/tmp"},"capabilities":{"persistentPty":true}}}, + {"method":"GET","path":"/api/integration","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":[]}}, + {"method":"GET","path":"/api/location","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}}}, + {"method":"GET","path":"/api/mcp","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":[]}}, + {"method":"GET","path":"/api/mcp/resource","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":{"resources":[],"templates":[]}}}, + {"method":"GET","path":"/api/model","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":[]}}, + {"method":"GET","path":"/api/plugin","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":[]}}, + {"method":"GET","path":"/api/project","query":{},"status":200,"json":[]}, + {"method":"GET","path":"/api/provider","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":[]}}, + {"method":"GET","path":"/api/reference","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode/packages/tui","canonical":"/tmp/opencode/packages/tui"}},"data":[]}}, + {"method":"GET","path":"/api/session","query":{"limit":["200"],"order":["desc"],"parentID":["ses_tools"]},"status":200,"json":{"data":[],"cursor":{}}}, + {"method":"GET","path":"/api/session/active","query":{},"status":200,"json":{"data":{}}}, + {"method":"GET","path":"/api/session/ses_tools","query":{},"status":200,"json":{"data":{"id":"ses_tools","title":"Fix the parser","projectID":"proj_test","cost":0,"tokens":{"input":0,"output":0,"reasoning":0,"cache":{"read":0,"write":0}},"time":{"created":2,"updated":2},"location":{"directory":"/tmp/opencode/packages/tui"}}}}, + {"method":"GET","path":"/api/session/ses_tools/form","query":{},"status":200,"json":{"data":[]}}, + {"method":"GET","path":"/api/session/ses_tools/inbox","query":{},"status":200,"json":{"data":[]}}, + {"method":"GET","path":"/api/session/ses_tools/message","query":{"limit":["20"],"order":["desc"]},"status":200,"json":{"data":[{"id":"msg_2","type":"assistant","agent":"build","model":{"providerID":"provider","id":"model"},"content":[{"type":"tool","id":"call_1","name":"shell","state":{"status":"completed","input":{"command":"cargo test parser","workdir":"/tmp/opencode/packages/tui"},"content":[{"type":"text","text":"running 2 tests\ntest next_stops_early ... FAILED\ntest next_reads ... ok"}],"metadata":{"exit":101}},"time":{"created":1600,"completed":1700}},{"type":"tool","id":"call_2","name":"read","state":{"status":"completed","input":{"path":"/tmp/opencode/packages/tui/src/parser.rs","offset":1,"limit":40},"content":[{"type":"text","text":"fn next() {}"}],"metadata":{}},"time":{"created":1600,"completed":1700}},{"type":"tool","id":"call_3","name":"edit","state":{"status":"completed","input":{"path":"/tmp/opencode/packages/tui/src/parser.rs"},"content":[{"type":"text","text":"Edited src/parser.rs"}],"metadata":{"files":[{"file":"src/parser.rs","filePath":"/tmp/opencode/packages/tui/src/parser.rs","type":"update","patch":"Index: src/parser.rs\n===================================================================\n--- src/parser.rs\n+++ src/parser.rs\n@@ -1,4 +1,4 @@\n fn next(tokens: &[Token], index: usize) -> Option<&Token> {\n- if index + 1 < tokens.len() {\n+ if index < tokens.len() {\n return tokens.get(index);\n }\n","additions":1,"deletions":1}],"diagnostics":{"/tmp/opencode/packages/tui/src/parser.rs":[{"severity":1,"message":"unused variable: `index`","range":{"start":{"line":0,"character":26}}}]}}},"time":{"created":1600,"completed":1700}}],"finish":"tool-calls","time":{"created":1500,"completed":1800}},{"id":"msg_1","type":"user","text":"Fix the off-by-one in the parser","time":{"created":1000}}],"cursor":{}}}, + {"method":"GET","path":"/api/session/ses_tools/permission","query":{},"status":200,"json":{"data":[]}}, + {"method":"GET","path":"/api/shell","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":[]}}, + {"method":"GET","path":"/api/skill","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":[]}}, + {"method":"GET","path":"/api/vcs","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":{"branch":{"current":"main","default":"main"}}}}, + {"method":"POST","path":"/api/rpc/opencode.goal/get","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"body":{"input":{"sessionID":"ses_tools"}},"status":200,"json":{"output":null}} + ] + } +} diff --git a/packages/cli-rs/parity/fixtures/E.7a/tools-low/open.json b/packages/cli-rs/parity/fixtures/E.7a/tools-low/open.json new file mode 100644 index 000000000000..00865741c65c --- /dev/null +++ b/packages/cli-rs/parity/fixtures/E.7a/tools-low/open.json @@ -0,0 +1,42 @@ +{"width":100,"height":40,"styles":["#ffffffff #202020ff 0","#ffffffff #202020ff 1","#808080ff #080808ff 0","#ffffffff #080808ff 0","#7699feff #141414ff 0","#ffffffff #141414ff 0","#484848ff #080808ff 0","#202020ff #080808ff 0"],"lines":[ +[" Fix the parser + ",[[0,3],[1,14],[0,15],[2,3],[3,65]]], +[" ",[[3,100]]], +[" ┃ ",[[3,2],[4,1],[5,95],[3,2]]], +[" ┃ Fix the off-by-one in the parser ",[[3,2],[4,1],[5,95],[3,2]]], +[" ┃ ",[[3,2],[4,1],[5,95],[3,2]]], +[" ",[[3,100]]], +[" + 1 command, 1 edit, 1 read ",[[3,5],[2,1],[3,1],[2,25],[3,68]]], +[" ",[[3,100]]], +[" ",[[3,100]]], +[" ",[[3,100]]], +[" ",[[3,100]]], +[" ",[[3,100]]], +[" ",[[3,100]]], +[" ",[[3,100]]], +[" ",[[3,100]]], +[" ",[[3,100]]], +[" ",[[3,100]]], +[" ",[[3,100]]], +[" ",[[3,100]]], +[" ",[[3,100]]], +[" ",[[3,100]]], +[" ",[[3,100]]], +[" ",[[3,100]]], +[" ",[[3,100]]], +[" ",[[3,100]]], +[" ",[[3,100]]], +[" ",[[3,100]]], +[" ",[[3,100]]], +[" ",[[3,100]]], +[" ",[[3,100]]], +[" ",[[3,100]]], +[" ",[[3,100]]], +[" ",[[3,100]]], +[" ┃ ",[[3,2],[6,1],[0,95],[3,2]]], +[" ┃ ",[[3,2],[6,1],[0,95],[3,2]]], +[" ┃ ",[[3,2],[6,1],[0,95],[3,2]]], +[" ┃ ",[[3,2],[6,1],[0,95],[3,2]]], +[" ╹▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀ ",[[3,2],[6,1],[7,95],[3,2]]], +[" /tmp/opencode/packages/tui:main shift+tab agents ctrl+p commands ",[[3,2],[2,31],[3,42],[2,6],[3,9],[2,8],[3,2]]], +[" ",[[3,100]]] +]} diff --git a/packages/cli-rs/parity/fixtures/E.7a/tools.app.json b/packages/cli-rs/parity/fixtures/E.7a/tools.app.json new file mode 100644 index 000000000000..6daa48d5ad4e --- /dev/null +++ b/packages/cli-rs/parity/fixtures/E.7a/tools.app.json @@ -0,0 +1,57 @@ +{ + "scenario": "E.7a/tools", + "width": 100, + "height": 40, + "directory": "/tmp/opencode/packages/tui", + "config": { + "session": {"grouping":"none","verbosity":"medium"}, + "animations": false, + "experimental": {"new-designs":true}, + "theme": {"name":"opencode"} + }, + "args": { + "sessionID": "ses_tools" + }, + "routes": [ + {"path":"/api/session/ses_tools","json":{"data":{"id":"ses_tools","title":"Fix the parser","projectID":"proj_test","cost":0,"tokens":{"input":0,"output":0,"reasoning":0,"cache":{"read":0,"write":0}},"time":{"created":2,"updated":2},"location":{"directory":"/tmp/opencode/packages/tui"}}}}, + {"path":"/api/session/ses_tools/message","json":{"data":[{"id":"msg_2","type":"assistant","agent":"build","model":{"providerID":"provider","id":"model"},"content":[{"type":"tool","id":"call_1","name":"shell","state":{"status":"completed","input":{"command":"cargo test parser","workdir":"/tmp/opencode/packages/tui"},"content":[{"type":"text","text":"running 2 tests\ntest next_stops_early ... FAILED\ntest next_reads ... ok"}],"metadata":{"exit":101}},"time":{"created":1600,"completed":1700}},{"type":"tool","id":"call_2","name":"read","state":{"status":"completed","input":{"path":"/tmp/opencode/packages/tui/src/parser.rs","offset":1,"limit":40},"content":[{"type":"text","text":"fn next() {}"}],"metadata":{}},"time":{"created":1600,"completed":1700}},{"type":"tool","id":"call_3","name":"edit","state":{"status":"completed","input":{"path":"/tmp/opencode/packages/tui/src/parser.rs"},"content":[{"type":"text","text":"Edited src/parser.rs"}],"metadata":{"files":[{"file":"src/parser.rs","filePath":"/tmp/opencode/packages/tui/src/parser.rs","type":"update","patch":"Index: src/parser.rs\n===================================================================\n--- src/parser.rs\n+++ src/parser.rs\n@@ -1,4 +1,4 @@\n fn next(tokens: &[Token], index: usize) -> Option<&Token> {\n- if index + 1 < tokens.len() {\n+ if index < tokens.len() {\n return tokens.get(index);\n }\n","additions":1,"deletions":1}],"diagnostics":{"/tmp/opencode/packages/tui/src/parser.rs":[{"severity":1,"message":"unused variable: `index`","range":{"start":{"line":0,"character":26}}}]}}},"time":{"created":1600,"completed":1700}}],"finish":"tool-calls","time":{"created":1500,"completed":1800}},{"id":"msg_1","type":"user","text":"Fix the off-by-one in the parser","time":{"created":1000}}],"cursor":{}}}, + {"path":"/api/session/ses_tools/inbox","json":{"data":[]}} + ], + "steps": [ + {"checkpoint":"open","until":"unused variable","fixture":"E.7a/tools/open"} + ], + "requests": { + "writes": [], + "reads": [ + {"method":"GET","path":"/api/agent","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":[]}}, + {"method":"GET","path":"/api/command","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":[]}}, + {"method":"GET","path":"/api/config","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":[]}, + {"method":"GET","path":"/api/experimental/job","query":{"descendants":["true"],"sessionID":["ses_tools"],"status":["running"]},"status":200,"json":{"data":[]}}, + {"method":"GET","path":"/api/experimental/migration/v1","query":{},"status":200,"json":{"status":"completed"}}, + {"method":"GET","path":"/api/experimental/session/ses_tools/terminal","query":{},"status":200,"json":{"data":[]}}, + {"method":"GET","path":"/api/form","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode"}},"data":[]}}, + {"method":"GET","path":"/api/fs/list","query":{"location[directory]":["<cwd>"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":[]}}, + {"method":"GET","path":"/api/info","query":{},"status":200,"json":{"version":"test","pid":0,"urls":[],"paths":{"tmp":"/tmp"},"capabilities":{"persistentPty":true}}}, + {"method":"GET","path":"/api/integration","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":[]}}, + {"method":"GET","path":"/api/location","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}}}, + {"method":"GET","path":"/api/mcp","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":[]}}, + {"method":"GET","path":"/api/mcp/resource","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":{"resources":[],"templates":[]}}}, + {"method":"GET","path":"/api/model","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":[]}}, + {"method":"GET","path":"/api/plugin","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":[]}}, + {"method":"GET","path":"/api/project","query":{},"status":200,"json":[]}, + {"method":"GET","path":"/api/provider","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":[]}}, + {"method":"GET","path":"/api/reference","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode/packages/tui","canonical":"/tmp/opencode/packages/tui"}},"data":[]}}, + {"method":"GET","path":"/api/session","query":{"limit":["200"],"order":["desc"],"parentID":["ses_tools"]},"status":200,"json":{"data":[],"cursor":{}}}, + {"method":"GET","path":"/api/session/active","query":{},"status":200,"json":{"data":{}}}, + {"method":"GET","path":"/api/session/ses_tools","query":{},"status":200,"json":{"data":{"id":"ses_tools","title":"Fix the parser","projectID":"proj_test","cost":0,"tokens":{"input":0,"output":0,"reasoning":0,"cache":{"read":0,"write":0}},"time":{"created":2,"updated":2},"location":{"directory":"/tmp/opencode/packages/tui"}}}}, + {"method":"GET","path":"/api/session/ses_tools/form","query":{},"status":200,"json":{"data":[]}}, + {"method":"GET","path":"/api/session/ses_tools/inbox","query":{},"status":200,"json":{"data":[]}}, + {"method":"GET","path":"/api/session/ses_tools/message","query":{"limit":["20"],"order":["desc"]},"status":200,"json":{"data":[{"id":"msg_2","type":"assistant","agent":"build","model":{"providerID":"provider","id":"model"},"content":[{"type":"tool","id":"call_1","name":"shell","state":{"status":"completed","input":{"command":"cargo test parser","workdir":"/tmp/opencode/packages/tui"},"content":[{"type":"text","text":"running 2 tests\ntest next_stops_early ... FAILED\ntest next_reads ... ok"}],"metadata":{"exit":101}},"time":{"created":1600,"completed":1700}},{"type":"tool","id":"call_2","name":"read","state":{"status":"completed","input":{"path":"/tmp/opencode/packages/tui/src/parser.rs","offset":1,"limit":40},"content":[{"type":"text","text":"fn next() {}"}],"metadata":{}},"time":{"created":1600,"completed":1700}},{"type":"tool","id":"call_3","name":"edit","state":{"status":"completed","input":{"path":"/tmp/opencode/packages/tui/src/parser.rs"},"content":[{"type":"text","text":"Edited src/parser.rs"}],"metadata":{"files":[{"file":"src/parser.rs","filePath":"/tmp/opencode/packages/tui/src/parser.rs","type":"update","patch":"Index: src/parser.rs\n===================================================================\n--- src/parser.rs\n+++ src/parser.rs\n@@ -1,4 +1,4 @@\n fn next(tokens: &[Token], index: usize) -> Option<&Token> {\n- if index + 1 < tokens.len() {\n+ if index < tokens.len() {\n return tokens.get(index);\n }\n","additions":1,"deletions":1}],"diagnostics":{"/tmp/opencode/packages/tui/src/parser.rs":[{"severity":1,"message":"unused variable: `index`","range":{"start":{"line":0,"character":26}}}]}}},"time":{"created":1600,"completed":1700}}],"finish":"tool-calls","time":{"created":1500,"completed":1800}},{"id":"msg_1","type":"user","text":"Fix the off-by-one in the parser","time":{"created":1000}}],"cursor":{}}}, + {"method":"GET","path":"/api/session/ses_tools/permission","query":{},"status":200,"json":{"data":[]}}, + {"method":"GET","path":"/api/shell","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":[]}}, + {"method":"GET","path":"/api/skill","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":[]}}, + {"method":"GET","path":"/api/vcs","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":{"branch":{"current":"main","default":"main"}}}}, + {"method":"POST","path":"/api/rpc/opencode.goal/get","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"body":{"input":{"sessionID":"ses_tools"}},"status":200,"json":{"output":null}} + ] + } +} diff --git a/packages/cli-rs/parity/fixtures/E.7a/tools/open.json b/packages/cli-rs/parity/fixtures/E.7a/tools/open.json new file mode 100644 index 000000000000..1ebbfc1a44a5 --- /dev/null +++ b/packages/cli-rs/parity/fixtures/E.7a/tools/open.json @@ -0,0 +1,42 @@ +{"width":100,"height":40,"styles":["#ffffffff #202020ff 0","#ffffffff #202020ff 1","#808080ff #080808ff 0","#ffffffff #080808ff 0","#7699feff #141414ff 0","#ffffffff #141414ff 0","#080808ff #141414ff 0","#808080ff #141414ff 0","#8f8f8fff #141414ff 0","#fab283ff #141414ff 0","#e06c75ff #141414ff 0","#eeeeeeff #141414ff 0","#56b6c2ff #141414ff 0","#e5c07bff #141414ff 0","#ef6c6cff #141414ff 0","#ffffffff #2d1f26ff 0","#8f8f8fff #2d1f26ff 0","#e26a75ff #2d1f26ff 0","#ffffffff #37222cff 0","#9d7cd8ff #37222cff 4","#e06c75ff #37222cff 0","#56b6c2ff #37222cff 0","#f5a742ff #37222cff 0","#eeeeeeff #37222cff 0","#ffffffff #1b2b34ff 0","#8f8f8fff #1b2b34ff 0","#b8db87ff #1b2b34ff 0","#ffffffff #20303bff 0","#9d7cd8ff #20303bff 4","#e06c75ff #20303bff 0","#56b6c2ff #20303bff 0","#eeeeeeff #20303bff 0","#9d7cd8ff #141414ff 4","#484848ff #080808ff 0","#202020ff #080808ff 0"],"lines":[ +[" Fix the parser + ",[[0,3],[1,14],[0,15],[2,3],[3,65]]], +[" ",[[3,100]]], +[" ┃ ",[[3,2],[4,1],[5,95],[3,2]]], +[" ┃ Fix the off-by-one in the parser ",[[3,2],[4,1],[5,95],[3,2]]], +[" ┃ ",[[3,2],[4,1],[5,95],[3,2]]], +[" ",[[3,100]]], +[" ┃ ",[[3,2],[6,1],[5,95],[3,2]]], +[" ┃ $ cargo test parser ",[[3,2],[6,1],[5,95],[3,2]]], +[" ┃ ",[[3,2],[6,1],[5,95],[3,2]]], +[" ┃ running 2 tests ",[[3,2],[6,1],[5,2],[7,15],[5,78],[3,2]]], +[" ┃ test next_stops_early ... FAILED ",[[3,2],[6,1],[5,2],[7,32],[5,61],[3,2]]], +[" ┃ test next_reads ... ok ",[[3,2],[6,1],[5,2],[7,22],[5,71],[3,2]]], +[" ┃ ",[[3,2],[6,1],[5,95],[3,2]]], +[" ",[[3,100]]], +[" → Read src/parser.rs:1-40 ",[[3,5],[2,1],[3,1],[2,23],[3,70]]], +[" ",[[3,100]]], +[" ┃ ",[[3,2],[6,1],[5,95],[3,2]]], +[" ┃ ← Edit src/parser.rs ",[[3,2],[6,1],[5,2],[7,6],[5,1],[7,13],[5,73],[3,2]]], +[" ┃ ",[[3,2],[6,1],[5,95],[3,2]]], +[" ┃ 1 fn next(tokens: &[Token], index: usize) -> Option<&Token> { ",[[3,2],[6,1],[5,4],[8,1],[5,3],[9,2],[5,1],[10,4],[11,1],[10,6],[12,1],[5,1],[12,1],[11,1],[13,5],[11,1],[12,1],[5,1],[10,5],[12,1],[5,1],[14,5],[11,1],[5,1],[12,2],[5,1],[13,6],[11,1],[12,1],[13,5],[11,1],[5,1],[11,1],[5,28],[3,2]]], +[" ┃ 2 - if index + 1 < tokens.len() { ",[[3,2],[6,1],[5,3],[15,1],[16,1],[17,2],[15,1],[18,4],[19,2],[18,1],[20,5],[18,1],[21,1],[18,1],[22,1],[18,1],[21,1],[18,1],[20,6],[21,1],[20,3],[23,2],[18,1],[23,1],[18,51],[5,3],[3,2]]], +[" ┃ 2 + if index < tokens.len() { ",[[3,2],[6,1],[5,3],[24,1],[25,1],[26,2],[24,1],[27,4],[28,2],[27,1],[29,5],[27,1],[30,1],[27,1],[29,6],[30,1],[29,3],[31,2],[27,1],[31,1],[27,55],[5,3],[3,2]]], +[" ┃ 3 return tokens.get(index); ",[[3,2],[6,1],[5,4],[8,1],[5,11],[32,6],[5,1],[10,6],[12,1],[10,3],[11,1],[10,5],[11,1],[12,1],[5,54],[3,2]]], +[" ┃ 4 } ",[[3,2],[6,1],[5,4],[8,1],[5,7],[11,1],[5,82],[3,2]]], +[" ┃ ",[[3,2],[6,1],[5,95],[3,2]]], +[" ┃ Error [1:27] unused variable: `index` ",[[3,2],[6,1],[5,2],[14,37],[5,56],[3,2]]], +[" ┃ ",[[3,2],[6,1],[5,95],[3,2]]], +[" ",[[3,100]]], +[" ",[[3,100]]], +[" ",[[3,100]]], +[" ",[[3,100]]], +[" ",[[3,100]]], +[" ",[[3,100]]], +[" ┃ ",[[3,2],[33,1],[0,95],[3,2]]], +[" ┃ ",[[3,2],[33,1],[0,95],[3,2]]], +[" ┃ ",[[3,2],[33,1],[0,95],[3,2]]], +[" ┃ ",[[3,2],[33,1],[0,95],[3,2]]], +[" ╹▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀ ",[[3,2],[33,1],[34,95],[3,2]]], +[" /tmp/opencode/packages/tui:main shift+tab agents ctrl+p commands ",[[3,2],[2,31],[3,42],[2,6],[3,9],[2,8],[3,2]]], +[" ",[[3,100]]] +]} diff --git a/packages/cli-rs/parity/fixtures/E.7b/blocks.app.json b/packages/cli-rs/parity/fixtures/E.7b/blocks.app.json new file mode 100644 index 000000000000..e1ed42a181bb --- /dev/null +++ b/packages/cli-rs/parity/fixtures/E.7b/blocks.app.json @@ -0,0 +1,57 @@ +{ + "scenario": "E.7b/blocks", + "width": 100, + "height": 70, + "directory": "/tmp/opencode/packages/tui", + "config": { + "session": {"grouping":"none","verbosity":"medium"}, + "animations": false, + "experimental": {"new-designs":true}, + "theme": {"name":"opencode"} + }, + "args": { + "sessionID": "ses_blocks" + }, + "routes": [ + {"path":"/api/session/ses_blocks","json":{"data":{"id":"ses_blocks","title":"Fix the lexer","projectID":"proj_test","cost":0,"tokens":{"input":0,"output":0,"reasoning":0,"cache":{"read":0,"write":0}},"time":{"created":2,"updated":2},"location":{"directory":"/tmp/opencode/packages/tui"}}}}, + {"path":"/api/session/ses_blocks/message","json":{"data":[{"id":"msg_2","type":"assistant","agent":"build","model":{"providerID":"provider","id":"model"},"content":[{"type":"tool","id":"call_1","name":"todowrite","state":{"status":"completed","input":{"todos":[{"content":"Read the lexer","status":"completed"},{"content":"Fix peek","status":"in_progress"},{"content":"Rewrite the parser","status":"cancelled"},{"content":"Run the tests","status":"pending"}]},"content":[{"type":"text","text":"4 todos"}],"metadata":{}},"time":{"created":1600,"completed":1700}},{"type":"tool","id":"call_2","name":"question","state":{"status":"completed","input":{"questions":[{"question":"Keep the old API?"},{"question":"Add a test?"}]},"content":[{"type":"text","text":"answered"}],"metadata":{"answers":[["Yes","for now"],[]]}},"time":{"created":1600,"completed":1700}},{"type":"tool","id":"call_3","name":"apply_patch","state":{"status":"completed","input":{"patchText":"*** Begin Patch"},"content":[{"type":"text","text":"Applied"}],"metadata":{"files":[{"file":"src/lexer.rs","filePath":"/tmp/opencode/packages/tui/src/lexer.rs","type":"update","patch":"Index: src/lexer.rs\n===================================================================\n--- src/lexer.rs\n+++ src/lexer.rs\n@@ -1,3 +1,3 @@\n fn peek(&self) -> Option<char> {\n- self.chars.get(self.pos + 1)\n+ self.chars.get(self.pos)\n }\n","additions":1,"deletions":1},{"file":"src/old.rs","filePath":"/tmp/opencode/packages/tui/src/old.rs","type":"delete","patch":"","additions":0,"deletions":12}]}},"time":{"created":1600,"completed":1700}},{"type":"tool","id":"call_4","name":"apply_patch","state":{"status":"completed","input":{"patchText":"*** Begin Patch"},"content":[{"type":"text","text":"Applied"}],"metadata":{"applied":[{"type":"add","resource":"docs/lexer.md"}]}},"time":{"created":1600,"completed":1700}},{"type":"tool","id":"call_5","name":"apply_patch","state":{"status":"running","input":{"patchText":"*** Begin Patch\n*** Add File: src/token.rs\n+pub struct Token;"},"metadata":{}},"time":{"created":1600,"completed":1700}},{"type":"tool","id":"call_6","name":"apply_patch","state":{"status":"error","input":{"patchText":"*** Update File: src/a.rs\n*** Update File: src/b.rs"},"error":{"type":"unknown","message":"context mismatch in src/a.rs"}},"time":{"created":1600,"completed":1700}},{"type":"tool","id":"call_7","name":"execute","state":{"status":"completed","input":{"code":"throw new Error('boom')"},"content":[{"type":"text","text":"Error: boom\n at main (code.ts:1:7)"}],"metadata":{"error":true,"toolCalls":[]}},"time":{"created":1600,"completed":1700}}],"finish":"tool-calls","time":{"created":1500,"completed":1800}},{"id":"msg_1","type":"user","text":"Fix the lexer and track it","time":{"created":1000}}],"cursor":{}}}, + {"path":"/api/session/ses_blocks/inbox","json":{"data":[]}} + ], + "steps": [ + {"checkpoint":"open","until":"at main","fixture":"E.7b/blocks/open"} + ], + "requests": { + "writes": [], + "reads": [ + {"method":"GET","path":"/api/agent","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":[]}}, + {"method":"GET","path":"/api/command","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":[]}}, + {"method":"GET","path":"/api/config","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":[]}, + {"method":"GET","path":"/api/experimental/job","query":{"descendants":["true"],"sessionID":["ses_blocks"],"status":["running"]},"status":200,"json":{"data":[]}}, + {"method":"GET","path":"/api/experimental/migration/v1","query":{},"status":200,"json":{"status":"completed"}}, + {"method":"GET","path":"/api/experimental/session/ses_blocks/terminal","query":{},"status":200,"json":{"data":[]}}, + {"method":"GET","path":"/api/form","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode"}},"data":[]}}, + {"method":"GET","path":"/api/fs/list","query":{"location[directory]":["<cwd>"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":[]}}, + {"method":"GET","path":"/api/info","query":{},"status":200,"json":{"version":"test","pid":0,"urls":[],"paths":{"tmp":"/tmp"},"capabilities":{"persistentPty":true}}}, + {"method":"GET","path":"/api/integration","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":[]}}, + {"method":"GET","path":"/api/location","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}}}, + {"method":"GET","path":"/api/mcp","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":[]}}, + {"method":"GET","path":"/api/mcp/resource","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":{"resources":[],"templates":[]}}}, + {"method":"GET","path":"/api/model","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":[]}}, + {"method":"GET","path":"/api/plugin","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":[]}}, + {"method":"GET","path":"/api/project","query":{},"status":200,"json":[]}, + {"method":"GET","path":"/api/provider","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":[]}}, + {"method":"GET","path":"/api/reference","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode/packages/tui","canonical":"/tmp/opencode/packages/tui"}},"data":[]}}, + {"method":"GET","path":"/api/session","query":{"limit":["200"],"order":["desc"],"parentID":["ses_blocks"]},"status":200,"json":{"data":[],"cursor":{}}}, + {"method":"GET","path":"/api/session/active","query":{},"status":200,"json":{"data":{}}}, + {"method":"GET","path":"/api/session/ses_blocks","query":{},"status":200,"json":{"data":{"id":"ses_blocks","title":"Fix the lexer","projectID":"proj_test","cost":0,"tokens":{"input":0,"output":0,"reasoning":0,"cache":{"read":0,"write":0}},"time":{"created":2,"updated":2},"location":{"directory":"/tmp/opencode/packages/tui"}}}}, + {"method":"GET","path":"/api/session/ses_blocks/form","query":{},"status":200,"json":{"data":[]}}, + {"method":"GET","path":"/api/session/ses_blocks/inbox","query":{},"status":200,"json":{"data":[]}}, + {"method":"GET","path":"/api/session/ses_blocks/message","query":{"limit":["20"],"order":["desc"]},"status":200,"json":{"data":[{"id":"msg_2","type":"assistant","agent":"build","model":{"providerID":"provider","id":"model"},"content":[{"type":"tool","id":"call_1","name":"todowrite","state":{"status":"completed","input":{"todos":[{"content":"Read the lexer","status":"completed"},{"content":"Fix peek","status":"in_progress"},{"content":"Rewrite the parser","status":"cancelled"},{"content":"Run the tests","status":"pending"}]},"content":[{"type":"text","text":"4 todos"}],"metadata":{}},"time":{"created":1600,"completed":1700}},{"type":"tool","id":"call_2","name":"question","state":{"status":"completed","input":{"questions":[{"question":"Keep the old API?"},{"question":"Add a test?"}]},"content":[{"type":"text","text":"answered"}],"metadata":{"answers":[["Yes","for now"],[]]}},"time":{"created":1600,"completed":1700}},{"type":"tool","id":"call_3","name":"apply_patch","state":{"status":"completed","input":{"patchText":"*** Begin Patch"},"content":[{"type":"text","text":"Applied"}],"metadata":{"files":[{"file":"src/lexer.rs","filePath":"/tmp/opencode/packages/tui/src/lexer.rs","type":"update","patch":"Index: src/lexer.rs\n===================================================================\n--- src/lexer.rs\n+++ src/lexer.rs\n@@ -1,3 +1,3 @@\n fn peek(&self) -> Option<char> {\n- self.chars.get(self.pos + 1)\n+ self.chars.get(self.pos)\n }\n","additions":1,"deletions":1},{"file":"src/old.rs","filePath":"/tmp/opencode/packages/tui/src/old.rs","type":"delete","patch":"","additions":0,"deletions":12}]}},"time":{"created":1600,"completed":1700}},{"type":"tool","id":"call_4","name":"apply_patch","state":{"status":"completed","input":{"patchText":"*** Begin Patch"},"content":[{"type":"text","text":"Applied"}],"metadata":{"applied":[{"type":"add","resource":"docs/lexer.md"}]}},"time":{"created":1600,"completed":1700}},{"type":"tool","id":"call_5","name":"apply_patch","state":{"status":"running","input":{"patchText":"*** Begin Patch\n*** Add File: src/token.rs\n+pub struct Token;"},"metadata":{}},"time":{"created":1600,"completed":1700}},{"type":"tool","id":"call_6","name":"apply_patch","state":{"status":"error","input":{"patchText":"*** Update File: src/a.rs\n*** Update File: src/b.rs"},"error":{"type":"unknown","message":"context mismatch in src/a.rs"}},"time":{"created":1600,"completed":1700}},{"type":"tool","id":"call_7","name":"execute","state":{"status":"completed","input":{"code":"throw new Error('boom')"},"content":[{"type":"text","text":"Error: boom\n at main (code.ts:1:7)"}],"metadata":{"error":true,"toolCalls":[]}},"time":{"created":1600,"completed":1700}}],"finish":"tool-calls","time":{"created":1500,"completed":1800}},{"id":"msg_1","type":"user","text":"Fix the lexer and track it","time":{"created":1000}}],"cursor":{}}}, + {"method":"GET","path":"/api/session/ses_blocks/permission","query":{},"status":200,"json":{"data":[]}}, + {"method":"GET","path":"/api/shell","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":[]}}, + {"method":"GET","path":"/api/skill","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":[]}}, + {"method":"GET","path":"/api/vcs","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":{"branch":{"current":"main","default":"main"}}}}, + {"method":"POST","path":"/api/rpc/opencode.goal/get","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"body":{"input":{"sessionID":"ses_blocks"}},"status":200,"json":{"output":null}} + ] + } +} diff --git a/packages/cli-rs/parity/fixtures/E.7b/blocks/open.json b/packages/cli-rs/parity/fixtures/E.7b/blocks/open.json new file mode 100644 index 000000000000..9887cbe04b91 --- /dev/null +++ b/packages/cli-rs/parity/fixtures/E.7b/blocks/open.json @@ -0,0 +1,72 @@ +{"width":100,"height":70,"styles":["#ffffffff #202020ff 0","#ffffffff #202020ff 1","#808080ff #080808ff 0","#ffffffff #080808ff 0","#7699feff #141414ff 0","#ffffffff #141414ff 0","#080808ff #141414ff 0","#808080ff #141414ff 0","#f5a742ff #141414ff 0","#808080ff #141414ff 128","#8f8f8fff #141414ff 0","#fab283ff #141414ff 0","#eeeeeeff #141414ff 0","#56b6c2ff #141414ff 0","#ef6c6cff #141414ff 0","#e5c07bff #141414ff 0","#ffffffff #2d1f26ff 0","#8f8f8fff #2d1f26ff 0","#e26a75ff #2d1f26ff 0","#ffffffff #37222cff 0","#ef6c6cff #37222cff 0","#56b6c2ff #37222cff 0","#fab283ff #37222cff 0","#e06c75ff #37222cff 0","#eeeeeeff #37222cff 0","#f5a742ff #37222cff 0","#ffffffff #1b2b34ff 0","#8f8f8fff #1b2b34ff 0","#b8db87ff #1b2b34ff 0","#ffffffff #20303bff 0","#e06c75ff #20303bff 0","#56b6c2ff #20303bff 0","#fab283ff #20303bff 0","#eeeeeeff #20303bff 0","#ef6c6cff #20303bff 0","#c53b53ff #141414ff 0","#ef6c6cff #080808ff 0","#484848ff #080808ff 0","#202020ff #080808ff 0"],"lines":[ +[" Fix the lexer + ",[[0,3],[1,13],[0,16],[2,3],[3,65]]], +[" ",[[3,100]]], +[" ┃ ",[[3,2],[4,1],[5,95],[3,2]]], +[" ┃ Fix the lexer and track it ",[[3,2],[4,1],[5,95],[3,2]]], +[" ┃ ",[[3,2],[4,1],[5,95],[3,2]]], +[" ",[[3,100]]], +[" ┃ ",[[3,2],[6,1],[5,95],[3,2]]], +[" ┃ # Todos ",[[3,2],[6,1],[5,2],[7,7],[5,86],[3,2]]], +[" ┃ ",[[3,2],[6,1],[5,95],[3,2]]], +[" ┃ [✓] Read the lexer ",[[3,2],[6,1],[5,2],[7,18],[5,75],[3,2]]], +[" ┃ [•] Fix peek ",[[3,2],[6,1],[5,2],[8,12],[5,81],[3,2]]], +[" ┃ [-] Rewrite the parser ",[[3,2],[6,1],[5,2],[7,4],[9,18],[5,71],[3,2]]], +[" ┃ [ ] Run the tests ",[[3,2],[6,1],[5,2],[7,17],[5,76],[3,2]]], +[" ┃ ",[[3,2],[6,1],[5,95],[3,2]]], +[" ",[[3,100]]], +[" ┃ ",[[3,2],[6,1],[5,95],[3,2]]], +[" ┃ # Questions ",[[3,2],[6,1],[5,2],[7,11],[5,82],[3,2]]], +[" ┃ ",[[3,2],[6,1],[5,95],[3,2]]], +[" ┃ Keep the old API? ",[[3,2],[6,1],[5,2],[7,17],[5,76],[3,2]]], +[" ┃ Yes, for now ",[[3,2],[6,1],[5,95],[3,2]]], +[" ┃ ",[[3,2],[6,1],[5,95],[3,2]]], +[" ┃ Add a test? ",[[3,2],[6,1],[5,2],[7,11],[5,82],[3,2]]], +[" ┃ (no answer) ",[[3,2],[6,1],[5,95],[3,2]]], +[" ┃ ",[[3,2],[6,1],[5,95],[3,2]]], +[" ",[[3,100]]], +[" ┃ ",[[3,2],[6,1],[5,95],[3,2]]], +[" ┃ ← Patched src/lexer.rs ",[[3,2],[6,1],[5,2],[7,9],[5,1],[7,12],[5,71],[3,2]]], +[" ┃ ",[[3,2],[6,1],[5,95],[3,2]]], +[" ┃ 1 fn peek(&self) -> Option<char> { ",[[3,2],[6,1],[5,4],[10,1],[5,3],[11,2],[5,1],[11,4],[12,1],[13,1],[14,4],[12,1],[5,1],[13,2],[5,1],[15,6],[12,1],[14,4],[12,1],[5,1],[12,1],[5,55],[3,2]]], +[" ┃ 2 - self.chars.get(self.pos + 1) ",[[3,2],[6,1],[5,3],[16,1],[17,1],[18,2],[16,1],[19,4],[20,4],[21,1],[22,5],[21,1],[23,3],[24,1],[20,4],[21,1],[22,3],[19,1],[21,1],[19,1],[25,1],[24,1],[19,52],[5,3],[3,2]]], +[" ┃ 2 + self.chars.get(self.pos) ",[[3,2],[6,1],[5,3],[26,1],[27,1],[28,2],[26,1],[29,4],[30,4],[31,1],[32,5],[31,1],[30,3],[33,1],[34,4],[31,1],[32,3],[33,1],[29,56],[5,3],[3,2]]], +[" ┃ 3 } ",[[3,2],[6,1],[5,4],[10,1],[5,3],[12,1],[5,86],[3,2]]], +[" ┃ ",[[3,2],[6,1],[5,95],[3,2]]], +[" ",[[3,100]]], +[" ┃ ",[[3,2],[6,1],[5,95],[3,2]]], +[" ┃ # Deleted src/old.rs ",[[3,2],[6,1],[5,2],[7,9],[5,1],[7,10],[5,73],[3,2]]], +[" ┃ ",[[3,2],[6,1],[5,95],[3,2]]], +[" ┃ -12 lines ",[[3,2],[6,1],[5,2],[35,3],[5,90],[3,2]]], +[" ┃ ",[[3,2],[6,1],[5,95],[3,2]]], +[" ",[[3,100]]], +[" ┃ ",[[3,2],[6,1],[5,95],[3,2]]], +[" ┃ # Created docs/lexer.md ",[[3,2],[6,1],[5,2],[7,9],[5,1],[7,13],[5,70],[3,2]]], +[" ┃ ",[[3,2],[6,1],[5,95],[3,2]]], +[" ┃ docs/lexer.md ",[[3,2],[6,1],[5,2],[7,13],[5,80],[3,2]]], +[" ┃ ",[[3,2],[6,1],[5,95],[3,2]]], +[" ",[[3,100]]], +[" ┃ ",[[3,2],[6,1],[5,95],[3,2]]], +[" ┃ ⋯ Patching src/token.rs ",[[3,2],[6,1],[5,2],[7,10],[5,1],[7,12],[5,70],[3,2]]], +[" ┃ ",[[3,2],[6,1],[5,95],[3,2]]], +[" ",[[3,100]]], +[" ┃ ",[[3,2],[6,1],[5,95],[3,2]]], +[" ┃ # Patch failed ",[[3,2],[6,1],[5,2],[14,14],[5,79],[3,2]]], +[" ┃ ",[[3,2],[6,1],[5,95],[3,2]]], +[" ┃ context mismatch in src/a.rs ",[[3,2],[6,1],[5,2],[7,28],[5,65],[3,2]]], +[" ┃ ",[[3,2],[6,1],[5,95],[3,2]]], +[" ",[[3,100]]], +[" ✗ execute ",[[3,5],[36,1],[3,1],[36,7],[3,86]]], +[" ↳ Error: boom ",[[3,5],[36,13],[3,82]]], +[" at main (code.ts:1:7) ",[[3,5],[36,27],[3,68]]], +[" ",[[3,100]]], +[" ",[[3,100]]], +[" ",[[3,100]]], +[" ",[[3,100]]], +[" ┃ ",[[3,2],[37,1],[0,95],[3,2]]], +[" ┃ ",[[3,2],[37,1],[0,95],[3,2]]], +[" ┃ ",[[3,2],[37,1],[0,95],[3,2]]], +[" ┃ ",[[3,2],[37,1],[0,95],[3,2]]], +[" ╹▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀ ",[[3,2],[37,1],[38,95],[3,2]]], +[" /tmp/opencode/packages/tui:main shift+tab agents ctrl+p commands ",[[3,2],[2,31],[3,42],[2,6],[3,9],[2,8],[3,2]]], +[" ",[[3,100]]] +]} diff --git a/packages/cli-rs/parity/fixtures/E.7b/inline.app.json b/packages/cli-rs/parity/fixtures/E.7b/inline.app.json new file mode 100644 index 000000000000..b75f8ff1d340 --- /dev/null +++ b/packages/cli-rs/parity/fixtures/E.7b/inline.app.json @@ -0,0 +1,59 @@ +{ + "scenario": "E.7b/inline", + "width": 100, + "height": 40, + "directory": "/tmp/opencode/packages/tui", + "config": { + "session": {"grouping":"none","verbosity":"medium"}, + "animations": false, + "experimental": {"new-designs":true}, + "theme": {"name":"opencode"} + }, + "args": { + "sessionID": "ses_tools" + }, + "routes": [ + {"path":"/api/session/ses_tools","json":{"data":{"id":"ses_tools","title":"Look around","projectID":"proj_test","cost":0,"tokens":{"input":0,"output":0,"reasoning":0,"cache":{"read":0,"write":0}},"time":{"created":2,"updated":2},"location":{"directory":"/tmp/opencode/packages/tui"}}}}, + {"path":"/api/session/ses_tools/message","json":{"data":[{"id":"msg_2","type":"assistant","agent":"build","model":{"providerID":"provider","id":"model"},"content":[{"type":"tool","id":"call_1","name":"webfetch","state":{"status":"running","input":{"url":"https://example.com/spec"},"metadata":{}},"time":{"created":1600,"ran":1600,"completed":2850}},{"type":"tool","id":"call_2","name":"webfetch","state":{"status":"completed","input":{"url":"https://opencode.ai/docs"},"content":[{"type":"text","text":"# Docs"}],"metadata":{}},"time":{"created":1600,"ran":1600,"completed":2850}},{"type":"tool","id":"call_3","name":"websearch","state":{"status":"running","input":{},"metadata":{}},"time":{"created":1600,"ran":1600,"completed":2850}},{"type":"tool","id":"call_4","name":"websearch","state":{"status":"completed","input":{"query":"opentui rust"},"content":[{"type":"text","text":"results"}],"metadata":{"provider":"exa"}},"time":{"created":1600,"ran":1600,"completed":2850}},{"type":"tool","id":"call_5","name":"skill","state":{"status":"running","input":{},"metadata":{}},"time":{"created":1600,"ran":1600,"completed":2850}},{"type":"tool","id":"call_6","name":"skill","state":{"status":"completed","input":{"id":"writing"},"content":[{"type":"text","text":"loaded"}],"metadata":{"name":"writing-doc"}},"time":{"created":1600,"ran":1600,"completed":2850}},{"type":"tool","id":"call_7","name":"question","state":{"status":"running","input":{"questions":[{"question":"Which design?"}]},"metadata":{}},"time":{"created":1600,"ran":1600,"completed":2850}},{"type":"tool","id":"call_8","name":"todowrite","state":{"status":"running","input":{"todos":[]},"metadata":{}},"time":{"created":1600,"ran":1600,"completed":2850}},{"type":"tool","id":"call_9","name":"todowrite","state":{"status":"completed","input":{"todos":[]},"content":[{"type":"text","text":""}],"metadata":{}},"time":{"created":1600,"ran":1600,"completed":2850}},{"type":"tool","id":"call_10","name":"task","state":{"status":"running","input":{"description":"Survey the views","subagent_type":"explore","model":"provider/unknown#high"},"metadata":{"sessionID":"ses_child"}},"time":{"created":1600,"ran":1600,"completed":2850}},{"type":"tool","id":"call_11","name":"task","state":{"status":"completed","input":{"description":"Check the docs","agent":"general"},"content":[{"type":"text","text":"done"}],"metadata":{"sessionID":"ses_child","status":"running"}},"time":{"created":1600,"ran":1600,"completed":2850}},{"type":"tool","id":"call_12","name":"execute","state":{"status":"running","input":{"code":"await tools.read()"},"metadata":{"toolCalls":[{"tool":"read","status":"completed","input":{"path":"src/a.rs"}},{"tool":"grep","status":"error","input":{"pattern":"TODO"}},{"tool":"glob","status":"running"}]}},"time":{"created":1600,"ran":1600,"completed":2850}},{"type":"tool","id":"call_13","name":"execute","state":{"status":"completed","input":{"code":"const files = await tools.glob()\nreturn files"},"content":[{"type":"text","text":"{\"files\":2}\n\nLogs:\nscanned"}],"metadata":{"toolCalls":[]}},"time":{"created":1600,"ran":1600,"completed":2850}}],"finish":"tool-calls","time":{"created":1500,"completed":3000}},{"id":"msg_1","type":"user","text":"Look around before the change","time":{"created":1000}}],"cursor":{}}}, + {"path":"/api/session/ses_tools/inbox","json":{"data":[]}} + ], + "steps": [ + {"checkpoint":"open","until":"glob","fixture":"E.7b/inline/open"}, + {"click":[6,30]}, + {"checkpoint":"dialog","until":"Completed","fixture":"E.7b/inline/dialog"} + ], + "requests": { + "writes": [], + "reads": [ + {"method":"GET","path":"/api/agent","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":[]}}, + {"method":"GET","path":"/api/command","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":[]}}, + {"method":"GET","path":"/api/config","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":[]}, + {"method":"GET","path":"/api/experimental/job","query":{"descendants":["true"],"sessionID":["ses_tools"],"status":["running"]},"status":200,"json":{"data":[]}}, + {"method":"GET","path":"/api/experimental/migration/v1","query":{},"status":200,"json":{"status":"completed"}}, + {"method":"GET","path":"/api/experimental/session/ses_tools/terminal","query":{},"status":200,"json":{"data":[]}}, + {"method":"GET","path":"/api/form","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode"}},"data":[]}}, + {"method":"GET","path":"/api/fs/list","query":{"location[directory]":["<cwd>"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":[]}}, + {"method":"GET","path":"/api/info","query":{},"status":200,"json":{"version":"test","pid":0,"urls":[],"paths":{"tmp":"/tmp"},"capabilities":{"persistentPty":true}}}, + {"method":"GET","path":"/api/integration","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":[]}}, + {"method":"GET","path":"/api/location","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}}}, + {"method":"GET","path":"/api/mcp","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":[]}}, + {"method":"GET","path":"/api/mcp/resource","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":{"resources":[],"templates":[]}}}, + {"method":"GET","path":"/api/model","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":[]}}, + {"method":"GET","path":"/api/plugin","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":[]}}, + {"method":"GET","path":"/api/project","query":{},"status":200,"json":[]}, + {"method":"GET","path":"/api/provider","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":[]}}, + {"method":"GET","path":"/api/reference","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode/packages/tui","canonical":"/tmp/opencode/packages/tui"}},"data":[]}}, + {"method":"GET","path":"/api/session","query":{"limit":["200"],"order":["desc"],"parentID":["ses_tools"]},"status":200,"json":{"data":[],"cursor":{}}}, + {"method":"GET","path":"/api/session/active","query":{},"status":200,"json":{"data":{}}}, + {"method":"GET","path":"/api/session/ses_tools","query":{},"status":200,"json":{"data":{"id":"ses_tools","title":"Look around","projectID":"proj_test","cost":0,"tokens":{"input":0,"output":0,"reasoning":0,"cache":{"read":0,"write":0}},"time":{"created":2,"updated":2},"location":{"directory":"/tmp/opencode/packages/tui"}}}}, + {"method":"GET","path":"/api/session/ses_tools/form","query":{},"status":200,"json":{"data":[]}}, + {"method":"GET","path":"/api/session/ses_tools/inbox","query":{},"status":200,"json":{"data":[]}}, + {"method":"GET","path":"/api/session/ses_tools/message","query":{"limit":["20"],"order":["desc"]},"status":200,"json":{"data":[{"id":"msg_2","type":"assistant","agent":"build","model":{"providerID":"provider","id":"model"},"content":[{"type":"tool","id":"call_1","name":"webfetch","state":{"status":"running","input":{"url":"https://example.com/spec"},"metadata":{}},"time":{"created":1600,"ran":1600,"completed":2850}},{"type":"tool","id":"call_2","name":"webfetch","state":{"status":"completed","input":{"url":"https://opencode.ai/docs"},"content":[{"type":"text","text":"# Docs"}],"metadata":{}},"time":{"created":1600,"ran":1600,"completed":2850}},{"type":"tool","id":"call_3","name":"websearch","state":{"status":"running","input":{},"metadata":{}},"time":{"created":1600,"ran":1600,"completed":2850}},{"type":"tool","id":"call_4","name":"websearch","state":{"status":"completed","input":{"query":"opentui rust"},"content":[{"type":"text","text":"results"}],"metadata":{"provider":"exa"}},"time":{"created":1600,"ran":1600,"completed":2850}},{"type":"tool","id":"call_5","name":"skill","state":{"status":"running","input":{},"metadata":{}},"time":{"created":1600,"ran":1600,"completed":2850}},{"type":"tool","id":"call_6","name":"skill","state":{"status":"completed","input":{"id":"writing"},"content":[{"type":"text","text":"loaded"}],"metadata":{"name":"writing-doc"}},"time":{"created":1600,"ran":1600,"completed":2850}},{"type":"tool","id":"call_7","name":"question","state":{"status":"running","input":{"questions":[{"question":"Which design?"}]},"metadata":{}},"time":{"created":1600,"ran":1600,"completed":2850}},{"type":"tool","id":"call_8","name":"todowrite","state":{"status":"running","input":{"todos":[]},"metadata":{}},"time":{"created":1600,"ran":1600,"completed":2850}},{"type":"tool","id":"call_9","name":"todowrite","state":{"status":"completed","input":{"todos":[]},"content":[{"type":"text","text":""}],"metadata":{}},"time":{"created":1600,"ran":1600,"completed":2850}},{"type":"tool","id":"call_10","name":"task","state":{"status":"running","input":{"description":"Survey the views","subagent_type":"explore","model":"provider/unknown#high"},"metadata":{"sessionID":"ses_child"}},"time":{"created":1600,"ran":1600,"completed":2850}},{"type":"tool","id":"call_11","name":"task","state":{"status":"completed","input":{"description":"Check the docs","agent":"general"},"content":[{"type":"text","text":"done"}],"metadata":{"sessionID":"ses_child","status":"running"}},"time":{"created":1600,"ran":1600,"completed":2850}},{"type":"tool","id":"call_12","name":"execute","state":{"status":"running","input":{"code":"await tools.read()"},"metadata":{"toolCalls":[{"tool":"read","status":"completed","input":{"path":"src/a.rs"}},{"tool":"grep","status":"error","input":{"pattern":"TODO"}},{"tool":"glob","status":"running"}]}},"time":{"created":1600,"ran":1600,"completed":2850}},{"type":"tool","id":"call_13","name":"execute","state":{"status":"completed","input":{"code":"const files = await tools.glob()\nreturn files"},"content":[{"type":"text","text":"{\"files\":2}\n\nLogs:\nscanned"}],"metadata":{"toolCalls":[]}},"time":{"created":1600,"ran":1600,"completed":2850}}],"finish":"tool-calls","time":{"created":1500,"completed":3000}},{"id":"msg_1","type":"user","text":"Look around before the change","time":{"created":1000}}],"cursor":{}}}, + {"method":"GET","path":"/api/session/ses_tools/permission","query":{},"status":200,"json":{"data":[]}}, + {"method":"GET","path":"/api/shell","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":[]}}, + {"method":"GET","path":"/api/skill","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":[]}}, + {"method":"GET","path":"/api/vcs","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":{"branch":{"current":"main","default":"main"}}}}, + {"method":"POST","path":"/api/rpc/opencode.goal/get","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"body":{"input":{"sessionID":"ses_tools"}},"status":200,"json":{"output":null}} + ] + } +} diff --git a/packages/cli-rs/parity/fixtures/E.7b/inline/dialog.json b/packages/cli-rs/parity/fixtures/E.7b/inline/dialog.json new file mode 100644 index 000000000000..2ba774ff58c6 --- /dev/null +++ b/packages/cli-rs/parity/fixtures/E.7b/inline/dialog.json @@ -0,0 +1,42 @@ +{"width":100,"height":40,"styles":["#ffffffff #0d0d0dff 0","#696969ff #0d0d0dff 1","#ffffffff #030303ff 0","#353535ff #030303ff 0","#313f69ff #080808ff 0","#ffffffff #080808ff 0","#696969ff #080808ff 0","#ffffffff #141414ff 0","#ffffffff #141414ff 1","#808080ff #141414ff 0","#ffffffff #202020ff 0","#808080ff #202020ff 1","#808080ff #202020ff 0","#9d7cd8ff #202020ff 4","#e06c75ff #202020ff 0","#56b6c2ff #202020ff 0","#eeeeeeff #202020ff 0","#f5a742ff #202020ff 0","#1e1e1eff #030303ff 0","#0d0d0dff #030303ff 0","#696969ff #030303ff 0"],"lines":[ +[" Look around + ",[[0,3],[1,4],[0,1],[1,6],[0,18],[2,1],[3,1],[2,66]]], +[" ",[[2,100]]], +[" ┃ ",[[2,2],[4,1],[5,95],[2,2]]], +[" ┃ Look around before the change ",[[2,2],[4,1],[5,2],[6,4],[5,1],[6,6],[5,1],[6,6],[5,1],[6,3],[5,1],[6,6],[5,64],[2,2]]], +[" ┃ ",[[2,2],[4,1],[5,95],[2,2]]], +[" ",[[2,100]]], +[" % WebFetch https://example.com/spec ",[[2,5],[3,1],[2,1],[3,8],[2,1],[3,24],[2,60]]], +[" % WebFetch https://opencode.ai/docs ",[[2,5],[3,1],[2,1],[3,8],[2,1],[3,24],[2,60]]], +[" ⋯ Searching web… ",[[2,5],[3,1],[2,1],[3,9],[2,1],[3,4],[2,79]]], +[" ◈ Web Search via Exa \"opentui rust\" ",[[2,5],[3,1],[2,1],[3,3],[2,1],[3,6],[2,1],[3,3],[2,1],[3,3],[2,1],[3,8],[2,1],[3,5],[2,60]]], +[" ",[[2,100]]], +[" ",[[2,1],[7,98],[2,1]]], +[" execute Completed · 1.3s esc ",[[2,1],[7,3],[8,7],[7,64],[9,16],[7,2],[9,3],[7,3],[2,1]]], +[" ",[[2,1],[7,98],[2,1]]], +[" ",[[2,1],[10,98],[2,1]]], +[" Code ",[[2,1],[10,3],[11,4],[10,91],[2,1]]], +[" 1 const files = await tools.glob() ",[[2,1],[10,3],[12,1],[10,1],[13,5],[10,1],[14,5],[10,1],[15,1],[10,1],[13,5],[10,1],[14,5],[15,1],[14,4],[16,2],[10,61],[2,1]]], +[" 2 return files ",[[2,1],[10,3],[12,1],[10,1],[13,6],[10,1],[14,5],[10,81],[2,1]]], +[" ",[[2,1],[10,98],[2,1]]], +[" Output ",[[2,1],[10,3],[11,6],[10,89],[2,1]]], +[" 1 { ",[[2,1],[10,3],[12,1],[10,1],[16,1],[10,92],[2,1]]], +[" 2 \"files\": 2 ",[[2,1],[10,3],[12,1],[10,3],[14,7],[15,1],[10,1],[17,1],[10,81],[2,1]]], +[" 3 } ",[[2,1],[10,3],[12,1],[10,1],[16,1],[10,92],[2,1]]], +[" Logs: ",[[2,1],[10,98],[2,1]]], +[" scanned ",[[2,1],[10,98],[2,1]]], +[" ",[[2,1],[10,98],[2,1]]], +[" ",[[2,1],[10,98],[2,1]]], +[" copy code c copy output o ",[[2,1],[10,77],[12,2],[10,14],[12,2],[10,3],[2,1]]], +[" ",[[2,1],[10,98],[2,1]]], +[" ",[[2,100]]], +[" ✓ execute ",[[2,5],[3,1],[2,1],[3,7],[2,86]]], +[" ",[[2,100]]], +[" ",[[2,100]]], +[" ┃ ",[[2,2],[18,1],[0,95],[2,2]]], +[" ┃ ",[[2,2],[18,1],[0,95],[2,2]]], +[" ┃ ",[[2,2],[18,1],[0,95],[2,2]]], +[" ┃ ",[[2,2],[18,1],[0,95],[2,2]]], +[" ╹▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀ ",[[2,2],[18,1],[19,95],[2,2]]], +[" /tmp/opencode/packages/tui:main shift+tab agents ctrl+p commands ",[[2,2],[3,31],[2,32],[20,9],[2,1],[3,6],[2,2],[20,6],[2,1],[3,8],[2,2]]], +[" ",[[2,100]]] +]} diff --git a/packages/cli-rs/parity/fixtures/E.7b/inline/open.json b/packages/cli-rs/parity/fixtures/E.7b/inline/open.json new file mode 100644 index 000000000000..02ff13d5343e --- /dev/null +++ b/packages/cli-rs/parity/fixtures/E.7b/inline/open.json @@ -0,0 +1,42 @@ +{"width":100,"height":40,"styles":["#ffffffff #202020ff 0","#ffffffff #202020ff 1","#808080ff #080808ff 0","#ffffffff #080808ff 0","#7699feff #141414ff 0","#ffffffff #141414ff 0","#ef6c6cff #080808ff 0","#484848ff #080808ff 0","#202020ff #080808ff 0"],"lines":[ +[" Look around + ",[[0,3],[1,11],[0,18],[2,3],[3,65]]], +[" ",[[3,100]]], +[" ┃ ",[[3,2],[4,1],[5,95],[3,2]]], +[" ┃ Look around before the change ",[[3,2],[4,1],[5,95],[3,2]]], +[" ┃ ",[[3,2],[4,1],[5,95],[3,2]]], +[" ",[[3,100]]], +[" % WebFetch https://example.com/spec ",[[3,5],[2,1],[3,1],[2,33],[3,60]]], +[" % WebFetch https://opencode.ai/docs ",[[3,5],[2,1],[3,1],[2,33],[3,60]]], +[" ⋯ Searching web… ",[[3,5],[2,16],[3,79]]], +[" ◈ Web Search via Exa \"opentui rust\" ",[[3,5],[2,1],[3,1],[2,33],[3,60]]], +[" ",[[3,100]]], +[" ⋯ Loading skill… ",[[3,5],[2,16],[3,79]]], +[" ",[[3,100]]], +[" → Skill \"writing-doc\" ",[[3,5],[2,1],[3,1],[2,19],[3,74]]], +[" ",[[3,100]]], +[" → Asked 1 question ",[[3,5],[2,1],[3,1],[2,16],[3,77]]], +[" ",[[3,100]]], +[" ⋯ Updating todos… ",[[3,5],[2,17],[3,78]]], +[" ",[[3,100]]], +[" ⚙ Cleared todos ",[[3,5],[2,1],[3,1],[2,13],[3,80]]], +[" ",[[3,100]]], +[" ⋯ Explore Subagent — Survey the views · provider/unknown (high) ",[[3,5],[2,63],[3,32]]], +[" ",[[3,100]]], +[" ✓ General Subagent — Check the docs ",[[3,5],[2,1],[3,1],[2,33],[3,60]]], +[" ",[[3,100]]], +[" ⋯ execute ",[[3,5],[2,9],[3,86]]], +[" › read [path=src/a.rs] ",[[3,5],[2,1],[3,1],[2,20],[3,73]]], +[" ✗ grep [pattern=TODO] ",[[3,5],[6,1],[3,1],[6,19],[3,74]]], +[" › glob ",[[3,5],[2,1],[3,1],[2,4],[3,89]]], +[" ",[[3,100]]], +[" ✓ execute ",[[3,5],[2,1],[3,1],[2,7],[3,86]]], +[" ",[[3,100]]], +[" ",[[3,100]]], +[" ┃ ",[[3,2],[7,1],[0,95],[3,2]]], +[" ┃ ",[[3,2],[7,1],[0,95],[3,2]]], +[" ┃ ",[[3,2],[7,1],[0,95],[3,2]]], +[" ┃ ",[[3,2],[7,1],[0,95],[3,2]]], +[" ╹▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀ ",[[3,2],[7,1],[8,95],[3,2]]], +[" /tmp/opencode/packages/tui:main shift+tab agents ctrl+p commands ",[[3,2],[2,31],[3,42],[2,6],[3,9],[2,8],[3,2]]], +[" ",[[3,100]]] +]} diff --git a/packages/cli-rs/parity/fixtures/E.7b/notices.app.json b/packages/cli-rs/parity/fixtures/E.7b/notices.app.json new file mode 100644 index 000000000000..27155ef02800 --- /dev/null +++ b/packages/cli-rs/parity/fixtures/E.7b/notices.app.json @@ -0,0 +1,56 @@ +{ + "scenario": "E.7b/notices", + "width": 100, + "height": 30, + "directory": "/tmp/opencode/packages/tui", + "config": { + "animations": false, + "experimental": {"new-designs":true}, + "theme": {"name":"opencode"} + }, + "args": { + "sessionID": "ses_notices" + }, + "routes": [ + {"path":"/api/session/ses_notices","json":{"data":{"id":"ses_notices","title":"Background work","projectID":"proj_test","cost":0,"tokens":{"input":0,"output":0,"reasoning":0,"cache":{"read":0,"write":0}},"time":{"created":2,"updated":2},"location":{"directory":"/tmp/opencode/packages/tui"}}}}, + {"path":"/api/session/ses_notices/message","json":{"data":[{"id":"msg_6","type":"synthetic","text":"","description":"Script","metadata":{"source":"codemode","jobID":"job_stopped","state":"cancelled"},"time":{"created":1500}},{"id":"msg_5","type":"synthetic","text":"","description":"Script","metadata":{"source":"codemode","jobID":"job_failed","state":"error"},"time":{"created":1400}},{"id":"msg_4","type":"synthetic","text":"","description":"Script","metadata":{"source":"codemode","jobID":"job_done","state":"completed"},"time":{"created":1300}},{"id":"msg_3","type":"synthetic","text":"","description":"Survey the views","metadata":{"source":"subagent","state":"completed","agent":"explore","childID":"ses_child"},"time":{"created":1200}},{"id":"msg_2","type":"synthetic","text":"","description":"bun test\n--watch","metadata":{"source":"shell","state":"completed"},"time":{"created":1100}},{"id":"msg_1","type":"user","text":"Run the checks in the background","time":{"created":1000}}],"cursor":{}}}, + {"path":"/api/session/ses_notices/inbox","json":{"data":[]}} + ], + "steps": [ + {"checkpoint":"open","until":"job_stopped","fixture":"E.7b/notices/open"} + ], + "requests": { + "writes": [], + "reads": [ + {"method":"GET","path":"/api/agent","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":[]}}, + {"method":"GET","path":"/api/command","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":[]}}, + {"method":"GET","path":"/api/config","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":[]}, + {"method":"GET","path":"/api/experimental/job","query":{"descendants":["true"],"sessionID":["ses_notices"],"status":["running"]},"status":200,"json":{"data":[]}}, + {"method":"GET","path":"/api/experimental/migration/v1","query":{},"status":200,"json":{"status":"completed"}}, + {"method":"GET","path":"/api/experimental/session/ses_notices/terminal","query":{},"status":200,"json":{"data":[]}}, + {"method":"GET","path":"/api/form","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode"}},"data":[]}}, + {"method":"GET","path":"/api/fs/list","query":{"location[directory]":["<cwd>"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":[]}}, + {"method":"GET","path":"/api/info","query":{},"status":200,"json":{"version":"test","pid":0,"urls":[],"paths":{"tmp":"/tmp"},"capabilities":{"persistentPty":true}}}, + {"method":"GET","path":"/api/integration","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":[]}}, + {"method":"GET","path":"/api/location","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}}}, + {"method":"GET","path":"/api/mcp","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":[]}}, + {"method":"GET","path":"/api/mcp/resource","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":{"resources":[],"templates":[]}}}, + {"method":"GET","path":"/api/model","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":[]}}, + {"method":"GET","path":"/api/plugin","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":[]}}, + {"method":"GET","path":"/api/project","query":{},"status":200,"json":[]}, + {"method":"GET","path":"/api/provider","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":[]}}, + {"method":"GET","path":"/api/reference","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode/packages/tui","canonical":"/tmp/opencode/packages/tui"}},"data":[]}}, + {"method":"GET","path":"/api/session","query":{"limit":["200"],"order":["desc"],"parentID":["ses_notices"]},"status":200,"json":{"data":[],"cursor":{}}}, + {"method":"GET","path":"/api/session/active","query":{},"status":200,"json":{"data":{}}}, + {"method":"GET","path":"/api/session/ses_notices","query":{},"status":200,"json":{"data":{"id":"ses_notices","title":"Background work","projectID":"proj_test","cost":0,"tokens":{"input":0,"output":0,"reasoning":0,"cache":{"read":0,"write":0}},"time":{"created":2,"updated":2},"location":{"directory":"/tmp/opencode/packages/tui"}}}}, + {"method":"GET","path":"/api/session/ses_notices/form","query":{},"status":200,"json":{"data":[]}}, + {"method":"GET","path":"/api/session/ses_notices/inbox","query":{},"status":200,"json":{"data":[]}}, + {"method":"GET","path":"/api/session/ses_notices/message","query":{"limit":["20"],"order":["desc"]},"status":200,"json":{"data":[{"id":"msg_6","type":"synthetic","text":"","description":"Script","metadata":{"source":"codemode","jobID":"job_stopped","state":"cancelled"},"time":{"created":1500}},{"id":"msg_5","type":"synthetic","text":"","description":"Script","metadata":{"source":"codemode","jobID":"job_failed","state":"error"},"time":{"created":1400}},{"id":"msg_4","type":"synthetic","text":"","description":"Script","metadata":{"source":"codemode","jobID":"job_done","state":"completed"},"time":{"created":1300}},{"id":"msg_3","type":"synthetic","text":"","description":"Survey the views","metadata":{"source":"subagent","state":"completed","agent":"explore","childID":"ses_child"},"time":{"created":1200}},{"id":"msg_2","type":"synthetic","text":"","description":"bun test\n--watch","metadata":{"source":"shell","state":"completed"},"time":{"created":1100}},{"id":"msg_1","type":"user","text":"Run the checks in the background","time":{"created":1000}}],"cursor":{}}}, + {"method":"GET","path":"/api/session/ses_notices/permission","query":{},"status":200,"json":{"data":[]}}, + {"method":"GET","path":"/api/shell","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":[]}}, + {"method":"GET","path":"/api/skill","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":[]}}, + {"method":"GET","path":"/api/vcs","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":{"branch":{"current":"main","default":"main"}}}}, + {"method":"POST","path":"/api/rpc/opencode.goal/get","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"body":{"input":{"sessionID":"ses_notices"}},"status":200,"json":{"output":null}} + ] + } +} diff --git a/packages/cli-rs/parity/fixtures/E.7b/notices/open.json b/packages/cli-rs/parity/fixtures/E.7b/notices/open.json new file mode 100644 index 000000000000..eaaa2db6a6f0 --- /dev/null +++ b/packages/cli-rs/parity/fixtures/E.7b/notices/open.json @@ -0,0 +1,32 @@ +{"width":100,"height":30,"styles":["#ffffffff #202020ff 0","#ffffffff #202020ff 1","#808080ff #080808ff 0","#ffffffff #080808ff 0","#7699feff #141414ff 0","#ffffffff #141414ff 0","#7699feff #080808ff 0","#ef6c6cff #080808ff 0","#f5a742ff #080808ff 0","#484848ff #080808ff 0","#202020ff #080808ff 0"],"lines":[ +[" Background work + ",[[0,3],[1,15],[0,14],[2,3],[3,65]]], +[" ",[[3,100]]], +[" ┃ ",[[3,2],[4,1],[5,95],[3,2]]], +[" ┃ Run the checks in the background ",[[3,2],[4,1],[5,95],[3,2]]], +[" ┃ ",[[3,2],[4,1],[5,95],[3,2]]], +[" ",[[3,100]]], +[" ↳ Shell finished · bun test --watch ",[[3,5],[6,16],[2,19],[3,60]]], +[" ",[[3,100]]], +[" ↳ Explore finished · Survey the views ",[[3,5],[6,18],[2,19],[3,58]]], +[" ",[[3,100]]], +[" ↳ Script finished · job_done ",[[3,5],[6,17],[2,11],[3,67]]], +[" ",[[3,100]]], +[" ! Script failed · job_failed ",[[3,5],[7,15],[2,13],[3,67]]], +[" ",[[3,100]]], +[" ! Script cancelled · job_stopped ",[[3,5],[8,18],[2,14],[3,63]]], +[" ",[[3,100]]], +[" ",[[3,100]]], +[" ",[[3,100]]], +[" ",[[3,100]]], +[" ",[[3,100]]], +[" ",[[3,100]]], +[" ",[[3,100]]], +[" ",[[3,100]]], +[" ┃ ",[[3,2],[9,1],[0,95],[3,2]]], +[" ┃ ",[[3,2],[9,1],[0,95],[3,2]]], +[" ┃ ",[[3,2],[9,1],[0,95],[3,2]]], +[" ┃ ",[[3,2],[9,1],[0,95],[3,2]]], +[" ╹▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀ ",[[3,2],[9,1],[10,95],[3,2]]], +[" /tmp/opencode/packages/tui:main shift+tab agents ctrl+p commands ",[[3,2],[2,31],[3,42],[2,6],[3,9],[2,8],[3,2]]], +[" ",[[3,100]]] +]} diff --git a/packages/cli-rs/parity/fixtures/E.8/tab-anchor.app.json b/packages/cli-rs/parity/fixtures/E.8/tab-anchor.app.json new file mode 100644 index 000000000000..1841f6652501 --- /dev/null +++ b/packages/cli-rs/parity/fixtures/E.8/tab-anchor.app.json @@ -0,0 +1,75 @@ +{ + "scenario": "E.8/tab-anchor", + "width": 100, + "height": 30, + "directory": "/tmp/opencode/packages/tui", + "config": { + "animations": false, + "experimental": {"new-designs":true}, + "theme": {"name":"opencode"} + }, + "args": { + "sessionID": "ses_n" + }, + "routes": [ + {"path":"/api/session/ses_n","json":{"data":{"id":"ses_n","title":"Navigate","projectID":"proj_test","cost":0,"tokens":{"input":0,"output":0,"reasoning":0,"cache":{"read":0,"write":0}},"time":{"created":2,"updated":2},"location":{"directory":"/tmp/opencode/packages/tui"}}}}, + {"path":"/api/session/ses_n/message","json":{"data":[{"id":"msg_8b","type":"assistant","agent":"build","model":{"providerID":"provider","id":"model"},"content":[{"type":"text","text":"Answer 8 one.\n\nAnswer 8 two.\n\nAnswer 8 three."}],"finish":"stop","time":{"created":81000,"completed":83000}},{"id":"msg_8a","type":"user","text":"Question 8","time":{"created":80000}},{"id":"msg_7b","type":"assistant","agent":"build","model":{"providerID":"provider","id":"model"},"content":[{"type":"text","text":"Answer 7 one.\n\nAnswer 7 two.\n\nAnswer 7 three."}],"finish":"stop","time":{"created":71000,"completed":73000}},{"id":"msg_7a","type":"user","text":"Question 7","time":{"created":70000}},{"id":"msg_6b","type":"assistant","agent":"build","model":{"providerID":"provider","id":"model"},"content":[{"type":"text","text":"Answer 6 one.\n\nAnswer 6 two.\n\nAnswer 6 three."}],"finish":"stop","time":{"created":61000,"completed":63000}},{"id":"msg_6a","type":"user","text":"Question 6","time":{"created":60000}},{"id":"msg_5b","type":"assistant","agent":"build","model":{"providerID":"provider","id":"model"},"content":[{"type":"text","text":"Answer 5 one.\n\nAnswer 5 two.\n\nAnswer 5 three."}],"finish":"stop","time":{"created":51000,"completed":53000}},{"id":"msg_5a","type":"user","text":"Question 5","time":{"created":50000}},{"id":"msg_4b","type":"assistant","agent":"build","model":{"providerID":"provider","id":"model"},"content":[{"type":"text","text":"Answer 4 one.\n\nAnswer 4 two.\n\nAnswer 4 three."}],"finish":"stop","time":{"created":41000,"completed":43000}},{"id":"msg_4a","type":"user","text":"Question 4","time":{"created":40000}},{"id":"msg_3b","type":"assistant","agent":"build","model":{"providerID":"provider","id":"model"},"content":[{"type":"text","text":"Answer 3 one.\n\nAnswer 3 two.\n\nAnswer 3 three."}],"finish":"stop","time":{"created":31000,"completed":33000}},{"id":"msg_3a","type":"user","text":"Question 3","time":{"created":30000}},{"id":"msg_2b","type":"assistant","agent":"build","model":{"providerID":"provider","id":"model"},"content":[{"type":"text","text":"Answer 2 one.\n\nAnswer 2 two.\n\nAnswer 2 three."}],"finish":"stop","time":{"created":21000,"completed":23000}},{"id":"msg_2a","type":"user","text":"Question 2","time":{"created":20000}},{"id":"msg_1b","type":"assistant","agent":"build","model":{"providerID":"provider","id":"model"},"content":[{"type":"text","text":"Answer 1 one.\n\nAnswer 1 two.\n\nAnswer 1 three."}],"finish":"stop","time":{"created":11000,"completed":13000}},{"id":"msg_1a","type":"user","text":"Question 1","time":{"created":10000}}],"cursor":{}}}, + {"path":"/api/session/ses_n/inbox","json":{"data":[]}}, + {"path":"/api/session/ses_b","json":{"data":{"id":"ses_b","title":"Write the docs","projectID":"proj_test","cost":0,"tokens":{"input":0,"output":0,"reasoning":0,"cache":{"read":0,"write":0}},"time":{"created":2,"updated":2},"location":{"directory":"/tmp/opencode/packages/tui"}}}}, + {"path":"/api/session/ses_b/message","json":{"data":[{"id":"msg_2","type":"assistant","agent":"build","model":{"providerID":"provider","id":"model"},"content":[{"type":"text","text":"The docs are written."}],"finish":"stop","time":{"created":2,"completed":3}},{"id":"msg_1","type":"user","text":"Why?","time":{"created":1}}],"cursor":{}}}, + {"path":"/api/session/ses_b/inbox","json":{"data":[]}}, + {"method":"POST","path":"/api/session/:sessionID/view"} + ], + "steps": [ + {"checkpoint":"open","until":"Answer 8 three.","fixture":"E.8/tab-anchor/open"}, + {"keys":["pageup"]}, + {"checkpoint":"away","until":"Jump to latest","fixture":"E.8/tab-anchor/away"}, + {"event":{"id":"evt_1","created":3,"type":"tui.session.select","location":{"directory":"/tmp/opencode/packages/tui"},"data":{"sessionID":"ses_b"}}}, + {"checkpoint":"other","until":"The docs are written.","fixture":"E.8/tab-anchor/other"}, + {"keys":["ctrl+x","1"]}, + {"checkpoint":"back","until":"Jump to latest","fixture":"E.8/tab-anchor/back"} + ], + "requests": { + "writes": [], + "reads": [ + {"method":"GET","path":"/api/agent","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":[]}}, + {"method":"GET","path":"/api/command","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":[]}}, + {"method":"GET","path":"/api/config","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":[]}, + {"method":"GET","path":"/api/experimental/job","query":{"descendants":["true"],"sessionID":["ses_b"],"status":["running"]},"status":200,"json":{"data":[]}}, + {"method":"GET","path":"/api/experimental/job","query":{"descendants":["true"],"sessionID":["ses_n"],"status":["running"]},"status":200,"json":{"data":[]}}, + {"method":"GET","path":"/api/experimental/migration/v1","query":{},"status":200,"json":{"status":"completed"}}, + {"method":"GET","path":"/api/experimental/session/ses_b/terminal","query":{},"status":200,"json":{"data":[]}}, + {"method":"GET","path":"/api/experimental/session/ses_n/terminal","query":{},"status":200,"json":{"data":[]}}, + {"method":"GET","path":"/api/form","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode"}},"data":[]}}, + {"method":"GET","path":"/api/fs/list","query":{"location[directory]":["<cwd>"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":[]}}, + {"method":"GET","path":"/api/info","query":{},"status":200,"json":{"version":"test","pid":0,"urls":[],"paths":{"tmp":"/tmp"},"capabilities":{"persistentPty":true}}}, + {"method":"GET","path":"/api/integration","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":[]}}, + {"method":"GET","path":"/api/location","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}}}, + {"method":"GET","path":"/api/mcp","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":[]}}, + {"method":"GET","path":"/api/mcp/resource","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":{"resources":[],"templates":[]}}}, + {"method":"GET","path":"/api/model","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":[]}}, + {"method":"GET","path":"/api/plugin","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":[]}}, + {"method":"GET","path":"/api/project","query":{},"status":200,"json":[]}, + {"method":"GET","path":"/api/provider","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":[]}}, + {"method":"GET","path":"/api/reference","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode/packages/tui","canonical":"/tmp/opencode/packages/tui"}},"data":[]}}, + {"method":"GET","path":"/api/session","query":{"limit":["200"],"order":["desc"],"parentID":["ses_b"]},"status":200,"json":{"data":[],"cursor":{}}}, + {"method":"GET","path":"/api/session","query":{"limit":["200"],"order":["desc"],"parentID":["ses_n"]},"status":200,"json":{"data":[],"cursor":{}}}, + {"method":"GET","path":"/api/session/active","query":{},"status":200,"json":{"data":{}}}, + {"method":"GET","path":"/api/session/ses_b","query":{},"status":200,"json":{"data":{"id":"ses_b","title":"Write the docs","projectID":"proj_test","cost":0,"tokens":{"input":0,"output":0,"reasoning":0,"cache":{"read":0,"write":0}},"time":{"created":2,"updated":2},"location":{"directory":"/tmp/opencode/packages/tui"}}}}, + {"method":"GET","path":"/api/session/ses_b/form","query":{},"status":200,"json":{"data":[]}}, + {"method":"GET","path":"/api/session/ses_b/inbox","query":{},"status":200,"json":{"data":[]}}, + {"method":"GET","path":"/api/session/ses_b/message","query":{"limit":["20"],"order":["desc"]},"status":200,"json":{"data":[{"id":"msg_2","type":"assistant","agent":"build","model":{"providerID":"provider","id":"model"},"content":[{"type":"text","text":"The docs are written."}],"finish":"stop","time":{"created":2,"completed":3}},{"id":"msg_1","type":"user","text":"Why?","time":{"created":1}}],"cursor":{}}}, + {"method":"GET","path":"/api/session/ses_b/permission","query":{},"status":200,"json":{"data":[]}}, + {"method":"GET","path":"/api/session/ses_n","query":{},"status":200,"json":{"data":{"id":"ses_n","title":"Navigate","projectID":"proj_test","cost":0,"tokens":{"input":0,"output":0,"reasoning":0,"cache":{"read":0,"write":0}},"time":{"created":2,"updated":2},"location":{"directory":"/tmp/opencode/packages/tui"}}}}, + {"method":"GET","path":"/api/session/ses_n/form","query":{},"status":200,"json":{"data":[]}}, + {"method":"GET","path":"/api/session/ses_n/inbox","query":{},"status":200,"json":{"data":[]}}, + {"method":"GET","path":"/api/session/ses_n/message","query":{"limit":["20"],"order":["desc"]},"status":200,"json":{"data":[{"id":"msg_8b","type":"assistant","agent":"build","model":{"providerID":"provider","id":"model"},"content":[{"type":"text","text":"Answer 8 one.\n\nAnswer 8 two.\n\nAnswer 8 three."}],"finish":"stop","time":{"created":81000,"completed":83000}},{"id":"msg_8a","type":"user","text":"Question 8","time":{"created":80000}},{"id":"msg_7b","type":"assistant","agent":"build","model":{"providerID":"provider","id":"model"},"content":[{"type":"text","text":"Answer 7 one.\n\nAnswer 7 two.\n\nAnswer 7 three."}],"finish":"stop","time":{"created":71000,"completed":73000}},{"id":"msg_7a","type":"user","text":"Question 7","time":{"created":70000}},{"id":"msg_6b","type":"assistant","agent":"build","model":{"providerID":"provider","id":"model"},"content":[{"type":"text","text":"Answer 6 one.\n\nAnswer 6 two.\n\nAnswer 6 three."}],"finish":"stop","time":{"created":61000,"completed":63000}},{"id":"msg_6a","type":"user","text":"Question 6","time":{"created":60000}},{"id":"msg_5b","type":"assistant","agent":"build","model":{"providerID":"provider","id":"model"},"content":[{"type":"text","text":"Answer 5 one.\n\nAnswer 5 two.\n\nAnswer 5 three."}],"finish":"stop","time":{"created":51000,"completed":53000}},{"id":"msg_5a","type":"user","text":"Question 5","time":{"created":50000}},{"id":"msg_4b","type":"assistant","agent":"build","model":{"providerID":"provider","id":"model"},"content":[{"type":"text","text":"Answer 4 one.\n\nAnswer 4 two.\n\nAnswer 4 three."}],"finish":"stop","time":{"created":41000,"completed":43000}},{"id":"msg_4a","type":"user","text":"Question 4","time":{"created":40000}},{"id":"msg_3b","type":"assistant","agent":"build","model":{"providerID":"provider","id":"model"},"content":[{"type":"text","text":"Answer 3 one.\n\nAnswer 3 two.\n\nAnswer 3 three."}],"finish":"stop","time":{"created":31000,"completed":33000}},{"id":"msg_3a","type":"user","text":"Question 3","time":{"created":30000}},{"id":"msg_2b","type":"assistant","agent":"build","model":{"providerID":"provider","id":"model"},"content":[{"type":"text","text":"Answer 2 one.\n\nAnswer 2 two.\n\nAnswer 2 three."}],"finish":"stop","time":{"created":21000,"completed":23000}},{"id":"msg_2a","type":"user","text":"Question 2","time":{"created":20000}},{"id":"msg_1b","type":"assistant","agent":"build","model":{"providerID":"provider","id":"model"},"content":[{"type":"text","text":"Answer 1 one.\n\nAnswer 1 two.\n\nAnswer 1 three."}],"finish":"stop","time":{"created":11000,"completed":13000}},{"id":"msg_1a","type":"user","text":"Question 1","time":{"created":10000}}],"cursor":{}}}, + {"method":"GET","path":"/api/session/ses_n/permission","query":{},"status":200,"json":{"data":[]}}, + {"method":"GET","path":"/api/shell","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":[]}}, + {"method":"GET","path":"/api/skill","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":[]}}, + {"method":"GET","path":"/api/vcs","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":{"branch":{"current":"main","default":"main"}}}}, + {"method":"POST","path":"/api/rpc/opencode.goal/get","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"body":{"input":{"sessionID":"ses_b"}},"status":200,"json":{"output":null}}, + {"method":"POST","path":"/api/rpc/opencode.goal/get","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"body":{"input":{"sessionID":"ses_n"}},"status":200,"json":{"output":null}} + ] + } +} diff --git a/packages/cli-rs/parity/fixtures/E.8/tab-anchor/away.json b/packages/cli-rs/parity/fixtures/E.8/tab-anchor/away.json new file mode 100644 index 000000000000..bd1bfe649e87 --- /dev/null +++ b/packages/cli-rs/parity/fixtures/E.8/tab-anchor/away.json @@ -0,0 +1,32 @@ +{"width":100,"height":30,"styles":["#ffffffff #202020ff 0","#ffffffff #202020ff 1","#808080ff #080808ff 0","#ffffffff #080808ff 0","#eeeeeeff #080808ff 0","#7699feff #080808ff 0","#7699feff #141414ff 0","#ffffffff #141414ff 0","#484848ff #080808ff 0","#202020ff #080808ff 0"],"lines":[ +[" Navigate + ",[[0,3],[1,8],[0,21],[2,3],[3,65]]], +[" Answer 6 one. ",[[3,5],[4,13],[3,82]]], +[" ",[[3,100]]], +[" Answer 6 two. ",[[3,5],[4,13],[3,82]]], +[" ",[[3,100]]], +[" Answer 6 three. ",[[3,5],[4,15],[3,80]]], +[" ",[[3,100]]], +[" Build · provider/model · 3.0s ",[[3,5],[5,5],[2,24],[3,66]]], +[" ",[[3,100]]], +[" ┃ ",[[3,2],[6,1],[7,95],[3,2]]], +[" ┃ Question 7 ",[[3,2],[6,1],[7,95],[3,2]]], +[" ┃ ",[[3,2],[6,1],[7,95],[3,2]]], +[" ",[[3,100]]], +[" Answer 7 one. ",[[3,5],[4,13],[3,82]]], +[" ",[[3,100]]], +[" Answer 7 two. ",[[3,5],[4,13],[3,82]]], +[" ",[[3,100]]], +[" Answer 7 three. ",[[3,5],[4,15],[3,80]]], +[" ",[[3,100]]], +[" Build · provider/model · 3.0s ",[[3,5],[5,5],[2,24],[3,66]]], +[" ",[[3,100]]], +[" ┃ ",[[3,2],[6,1],[7,95],[3,2]]], +[" Jump to latest ↓ ",[[3,82],[2,16],[3,2]]], +[" ┃ ",[[3,2],[8,1],[0,95],[3,2]]], +[" ┃ ",[[3,2],[8,1],[0,95],[3,2]]], +[" ┃ ",[[3,2],[8,1],[0,95],[3,2]]], +[" ┃ ",[[3,2],[8,1],[0,95],[3,2]]], +[" ╹▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀ ",[[3,2],[8,1],[9,95],[3,2]]], +[" /tmp/opencode/packages/tui:main shift+tab agents ctrl+p commands ",[[3,2],[2,31],[3,42],[2,6],[3,9],[2,8],[3,2]]], +[" ",[[3,100]]] +]} diff --git a/packages/cli-rs/parity/fixtures/E.8/tab-anchor/back.json b/packages/cli-rs/parity/fixtures/E.8/tab-anchor/back.json new file mode 100644 index 000000000000..7fb0be89a07d --- /dev/null +++ b/packages/cli-rs/parity/fixtures/E.8/tab-anchor/back.json @@ -0,0 +1,32 @@ +{"width":100,"height":30,"styles":["#ffffffff #202020ff 0","#ffffffff #202020ff 1","#ffffffff #080808ff 0","#808080ff #080808ff 0","#eeeeeeff #080808ff 0","#7699feff #080808ff 0","#7699feff #141414ff 0","#ffffffff #141414ff 0","#484848ff #080808ff 0","#202020ff #080808ff 0"],"lines":[ +[" Navigate Write the docs + ",[[0,3],[1,8],[0,21],[2,3],[3,14],[2,15],[3,3],[2,33]]], +[" Answer 6 one. ",[[2,5],[4,13],[2,82]]], +[" ",[[2,100]]], +[" Answer 6 two. ",[[2,5],[4,13],[2,82]]], +[" ",[[2,100]]], +[" Answer 6 three. ",[[2,5],[4,15],[2,80]]], +[" ",[[2,100]]], +[" Build · provider/model · 3.0s ",[[2,5],[5,5],[3,24],[2,66]]], +[" ",[[2,100]]], +[" ┃ ",[[2,2],[6,1],[7,95],[2,2]]], +[" ┃ Question 7 ",[[2,2],[6,1],[7,95],[2,2]]], +[" ┃ ",[[2,2],[6,1],[7,95],[2,2]]], +[" ",[[2,100]]], +[" Answer 7 one. ",[[2,5],[4,13],[2,82]]], +[" ",[[2,100]]], +[" Answer 7 two. ",[[2,5],[4,13],[2,82]]], +[" ",[[2,100]]], +[" Answer 7 three. ",[[2,5],[4,15],[2,80]]], +[" ",[[2,100]]], +[" Build · provider/model · 3.0s ",[[2,5],[5,5],[3,24],[2,66]]], +[" ",[[2,100]]], +[" ┃ ",[[2,2],[6,1],[7,95],[2,2]]], +[" Jump to latest ↓ ",[[2,82],[3,16],[2,2]]], +[" ┃ ",[[2,2],[8,1],[0,95],[2,2]]], +[" ┃ ",[[2,2],[8,1],[0,95],[2,2]]], +[" ┃ ",[[2,2],[8,1],[0,95],[2,2]]], +[" ┃ ",[[2,2],[8,1],[0,95],[2,2]]], +[" ╹▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀ ",[[2,2],[8,1],[9,95],[2,2]]], +[" /tmp/opencode/packages/tui:main shift+tab agents ctrl+p commands ",[[2,2],[3,31],[2,42],[3,6],[2,9],[3,8],[2,2]]], +[" ",[[2,100]]] +]} diff --git a/packages/cli-rs/parity/fixtures/E.8/tab-anchor/open.json b/packages/cli-rs/parity/fixtures/E.8/tab-anchor/open.json new file mode 100644 index 000000000000..410f3de2d2be --- /dev/null +++ b/packages/cli-rs/parity/fixtures/E.8/tab-anchor/open.json @@ -0,0 +1,32 @@ +{"width":100,"height":30,"styles":["#ffffffff #202020ff 0","#ffffffff #202020ff 1","#808080ff #080808ff 0","#ffffffff #080808ff 0","#7699feff #141414ff 0","#ffffffff #141414ff 0","#eeeeeeff #080808ff 0","#7699feff #080808ff 0","#484848ff #080808ff 0","#202020ff #080808ff 0"],"lines":[ +[" Navigate + ",[[0,3],[1,8],[0,21],[2,3],[3,65]]], +[" ┃ ",[[3,2],[4,1],[5,95],[3,2]]], +[" ",[[3,100]]], +[" Answer 7 one. ",[[3,5],[6,13],[3,82]]], +[" ",[[3,100]]], +[" Answer 7 two. ",[[3,5],[6,13],[3,82]]], +[" ",[[3,100]]], +[" Answer 7 three. ",[[3,5],[6,15],[3,80]]], +[" ",[[3,100]]], +[" Build · provider/model · 3.0s ",[[3,5],[7,5],[2,24],[3,66]]], +[" ",[[3,100]]], +[" ┃ ",[[3,2],[4,1],[5,95],[3,2]]], +[" ┃ Question 8 ",[[3,2],[4,1],[5,95],[3,2]]], +[" ┃ ",[[3,2],[4,1],[5,95],[3,2]]], +[" ",[[3,100]]], +[" Answer 8 one. ",[[3,5],[6,13],[3,82]]], +[" ",[[3,100]]], +[" Answer 8 two. ",[[3,5],[6,13],[3,82]]], +[" ",[[3,100]]], +[" Answer 8 three. ",[[3,5],[6,15],[3,80]]], +[" ",[[3,100]]], +[" Build · provider/model · 3.0s ",[[3,5],[7,5],[2,24],[3,66]]], +[" ",[[3,100]]], +[" ┃ ",[[3,2],[8,1],[0,95],[3,2]]], +[" ┃ ",[[3,2],[8,1],[0,95],[3,2]]], +[" ┃ ",[[3,2],[8,1],[0,95],[3,2]]], +[" ┃ ",[[3,2],[8,1],[0,95],[3,2]]], +[" ╹▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀ ",[[3,2],[8,1],[9,95],[3,2]]], +[" /tmp/opencode/packages/tui:main shift+tab agents ctrl+p commands ",[[3,2],[2,31],[3,42],[2,6],[3,9],[2,8],[3,2]]], +[" ",[[3,100]]] +]} diff --git a/packages/cli-rs/parity/fixtures/E.8/tab-anchor/other.json b/packages/cli-rs/parity/fixtures/E.8/tab-anchor/other.json new file mode 100644 index 000000000000..c3086c022963 --- /dev/null +++ b/packages/cli-rs/parity/fixtures/E.8/tab-anchor/other.json @@ -0,0 +1,32 @@ +{"width":100,"height":30,"styles":["#ffffffff #080808ff 0","#808080ff #080808ff 0","#ffffffff #202020ff 0","#ffffffff #202020ff 1","#7699feff #141414ff 0","#ffffffff #141414ff 0","#eeeeeeff #080808ff 0","#7699feff #080808ff 0","#484848ff #080808ff 0","#202020ff #080808ff 0"],"lines":[ +[" Navigate Write the docs + ",[[0,3],[1,8],[0,21],[2,3],[3,14],[2,15],[1,3],[0,33]]], +[" ",[[0,100]]], +[" ┃ ",[[0,2],[4,1],[5,95],[0,2]]], +[" ┃ Why? ",[[0,2],[4,1],[5,95],[0,2]]], +[" ┃ ",[[0,2],[4,1],[5,95],[0,2]]], +[" ",[[0,100]]], +[" The docs are written. ",[[0,5],[6,21],[0,74]]], +[" ",[[0,100]]], +[" Build · provider/model · 2ms ",[[0,5],[7,5],[1,23],[0,67]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ┃ ",[[0,2],[8,1],[2,95],[0,2]]], +[" ┃ ",[[0,2],[8,1],[2,95],[0,2]]], +[" ┃ ",[[0,2],[8,1],[2,95],[0,2]]], +[" ┃ ",[[0,2],[8,1],[2,95],[0,2]]], +[" ╹▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀ ",[[0,2],[8,1],[9,95],[0,2]]], +[" /tmp/opencode/packages/tui:main shift+tab agents ctrl+p commands ",[[0,2],[1,31],[0,42],[1,6],[0,9],[1,8],[0,2]]], +[" ",[[0,100]]] +]} diff --git a/packages/cli-rs/parity/fixtures/E.9b/boolean.json b/packages/cli-rs/parity/fixtures/E.9b/boolean.json new file mode 100644 index 000000000000..00b73f1f48f5 --- /dev/null +++ b/packages/cli-rs/parity/fixtures/E.9b/boolean.json @@ -0,0 +1,32 @@ +{"width":96,"height":30,"styles":["#23344bff #141414ff 0","#ffffffff #141414ff 0","#808080ff #141414ff 0","#ffffffff #141414ff 1","#7699feff #141414ff 0","#ffffffff #080808ff 0"],"lines":[ +["┃ ",[[0,1],[1,95]]], +["┃ Deploy settings ",[[0,1],[1,2],[2,15],[1,78]]], +["┃ ",[[0,1],[1,95]]], +["┃ Pick how to deploy. ",[[0,1],[1,95]]], +["┃ ",[[0,1],[1,95]]], +["┃ Name Replicas Confirm Targets Submit ",[[0,1],[1,2],[2,4],[1,2],[2,8],[1,2],[3,7],[1,2],[2,7],[1,2],[2,6],[1,53]]], +["┃ ",[[0,1],[1,95]]], +["┃ Restart the service? ",[[0,1],[1,95]]], +["┃ ",[[0,1],[1,95]]], +["┃ 1. Yes ",[[0,1],[1,2],[4,2],[1,1],[4,3],[1,87]]], +["┃ 2. No ",[[0,1],[1,2],[2,2],[1,91]]], +["┃ ",[[0,1],[1,95]]], +["┃ ⇆ tab ↑↓ select enter confirm esc dismiss ",[[0,1],[1,4],[2,3],[1,5],[2,6],[1,8],[2,7],[1,6],[2,7],[1,49]]], +["┃ ",[[0,1],[1,95]]], +[" ",[[5,96]]], +[" ",[[5,96]]], +[" ",[[5,96]]], +[" ",[[5,96]]], +[" ",[[5,96]]], +[" ",[[5,96]]], +[" ",[[5,96]]], +[" ",[[5,96]]], +[" ",[[5,96]]], +[" ",[[5,96]]], +[" ",[[5,96]]], +[" ",[[5,96]]], +[" ",[[5,96]]], +[" ",[[5,96]]], +[" ",[[5,96]]], +[" ",[[5,96]]] +]} diff --git a/packages/cli-rs/parity/fixtures/E.9b/choice.json b/packages/cli-rs/parity/fixtures/E.9b/choice.json new file mode 100644 index 000000000000..4754db50edac --- /dev/null +++ b/packages/cli-rs/parity/fixtures/E.9b/choice.json @@ -0,0 +1,32 @@ +{"width":96,"height":30,"styles":["#23344bff #141414ff 0","#ffffffff #141414ff 0","#808080ff #141414ff 0","#7699feff #141414ff 0","#ffffffff #080808ff 0"],"lines":[ +["┃ ",[[0,1],[1,95]]], +["┃ Deploy settings ",[[0,1],[1,2],[2,15],[1,78]]], +["┃ ",[[0,1],[1,95]]], +["┃ Pick how to deploy. ",[[0,1],[1,95]]], +["┃ ",[[0,1],[1,95]]], +["┃ target ",[[0,1],[1,95]]], +["┃ ",[[0,1],[1,95]]], +["┃ 1. Staging ",[[0,1],[1,2],[2,2],[1,91]]], +["┃ 2. Production ",[[0,1],[1,2],[3,2],[1,1],[3,10],[1,80]]], +["┃ Live traffic ",[[0,1],[1,5],[2,12],[1,78]]], +["┃ 3. Type your own answer ",[[0,1],[1,2],[2,2],[1,91]]], +["┃ ",[[0,1],[1,95]]], +["┃ ↑↓ select enter submit esc dismiss ",[[0,1],[1,5],[2,6],[1,8],[2,6],[1,6],[2,7],[1,57]]], +["┃ ",[[0,1],[1,95]]], +[" ",[[4,96]]], +[" ",[[4,96]]], +[" ",[[4,96]]], +[" ",[[4,96]]], +[" ",[[4,96]]], +[" ",[[4,96]]], +[" ",[[4,96]]], +[" ",[[4,96]]], +[" ",[[4,96]]], +[" ",[[4,96]]], +[" ",[[4,96]]], +[" ",[[4,96]]], +[" ",[[4,96]]], +[" ",[[4,96]]], +[" ",[[4,96]]], +[" ",[[4,96]]] +]} diff --git a/packages/cli-rs/parity/fixtures/E.9b/external.json b/packages/cli-rs/parity/fixtures/E.9b/external.json new file mode 100644 index 000000000000..b20955cd2cb6 --- /dev/null +++ b/packages/cli-rs/parity/fixtures/E.9b/external.json @@ -0,0 +1,32 @@ +{"width":96,"height":30,"styles":["#23344bff #141414ff 0","#ffffffff #141414ff 0","#808080ff #141414ff 0","#ffffffff #141414ff 1","#ffffffff #080808ff 0"],"lines":[ +["┃ ",[[0,1],[1,95]]], +["┃ Deploy settings ",[[0,1],[1,2],[2,15],[1,78]]], +["┃ ",[[0,1],[1,95]]], +["┃ Pick how to deploy. ",[[0,1],[1,95]]], +["┃ ",[[0,1],[1,95]]], +["┃ Authorize access Submit ",[[0,1],[1,2],[3,16],[1,2],[2,6],[1,69]]], +["┃ ",[[0,1],[1,95]]], +["┃ Authorize access ",[[0,1],[1,95]]], +["┃ ",[[0,1],[1,95]]], +["┃ Sign in to continue. ",[[0,1],[1,2],[2,20],[1,73]]], +["┃ ",[[0,1],[1,95]]], +["┃ https://example.com/authorize ",[[0,1],[1,95]]], +["┃ ",[[0,1],[1,95]]], +["┃ Open or copy the URL, complete the external action, then confirm. ",[[0,1],[1,2],[2,65],[1,28]]], +["┃ ",[[0,1],[1,95]]], +["┃ ⇆ tab enter open link c copy esc dismiss ",[[0,1],[1,4],[2,3],[1,8],[2,9],[1,4],[2,4],[1,6],[2,7],[1,50]]], +["┃ ",[[0,1],[1,95]]], +[" ",[[4,96]]], +[" ",[[4,96]]], +[" ",[[4,96]]], +[" ",[[4,96]]], +[" ",[[4,96]]], +[" ",[[4,96]]], +[" ",[[4,96]]], +[" ",[[4,96]]], +[" ",[[4,96]]], +[" ",[[4,96]]], +[" ",[[4,96]]], +[" ",[[4,96]]], +[" ",[[4,96]]] +]} diff --git a/packages/cli-rs/parity/fixtures/E.9b/integer.json b/packages/cli-rs/parity/fixtures/E.9b/integer.json new file mode 100644 index 000000000000..89f3036a6dee --- /dev/null +++ b/packages/cli-rs/parity/fixtures/E.9b/integer.json @@ -0,0 +1,32 @@ +{"width":96,"height":30,"styles":["#23344bff #141414ff 0","#ffffffff #141414ff 0","#808080ff #141414ff 0","#ffffffff #141414ff 1","#ffffffff #080808ff 0"],"lines":[ +["┃ ",[[0,1],[1,95]]], +["┃ Deploy settings ",[[0,1],[1,2],[2,15],[1,78]]], +["┃ ",[[0,1],[1,95]]], +["┃ Pick how to deploy. ",[[0,1],[1,95]]], +["┃ ",[[0,1],[1,95]]], +["┃ Name Replicas Confirm Targets Submit ",[[0,1],[1,2],[2,4],[1,2],[3,8],[1,2],[2,7],[1,2],[2,7],[1,2],[2,6],[1,53]]], +["┃ ",[[0,1],[1,95]]], +["┃ Replicas ",[[0,1],[1,95]]], +["┃ ",[[0,1],[1,95]]], +["┃ 1-5 ",[[0,1],[1,3],[2,3],[1,89]]], +["┃ ",[[0,1],[1,95]]], +["┃ ⇆ tab enter confirm esc dismiss ",[[0,1],[1,4],[2,3],[1,8],[2,7],[1,6],[2,7],[1,60]]], +["┃ ",[[0,1],[1,95]]], +[" ",[[4,96]]], +[" ",[[4,96]]], +[" ",[[4,96]]], +[" ",[[4,96]]], +[" ",[[4,96]]], +[" ",[[4,96]]], +[" ",[[4,96]]], +[" ",[[4,96]]], +[" ",[[4,96]]], +[" ",[[4,96]]], +[" ",[[4,96]]], +[" ",[[4,96]]], +[" ",[[4,96]]], +[" ",[[4,96]]], +[" ",[[4,96]]], +[" ",[[4,96]]], +[" ",[[4,96]]] +]} diff --git a/packages/cli-rs/parity/fixtures/E.9b/multiselect.json b/packages/cli-rs/parity/fixtures/E.9b/multiselect.json new file mode 100644 index 000000000000..83a58cdf5a38 --- /dev/null +++ b/packages/cli-rs/parity/fixtures/E.9b/multiselect.json @@ -0,0 +1,32 @@ +{"width":96,"height":30,"styles":["#23344bff #141414ff 0","#ffffffff #141414ff 0","#808080ff #141414ff 0","#ffffffff #141414ff 1","#7699feff #141414ff 0","#ffffffff #080808ff 0"],"lines":[ +["┃ ",[[0,1],[1,95]]], +["┃ Deploy settings ",[[0,1],[1,2],[2,15],[1,78]]], +["┃ ",[[0,1],[1,95]]], +["┃ Pick how to deploy. ",[[0,1],[1,95]]], +["┃ ",[[0,1],[1,95]]], +["┃ Name Replicas Confirm Targets Submit ",[[0,1],[1,2],[2,4],[1,2],[2,8],[1,2],[2,7],[1,2],[3,7],[1,2],[2,6],[1,53]]], +["┃ ",[[0,1],[1,95]]], +["┃ Targets ",[[0,1],[1,95]]], +["┃ ",[[0,1],[1,95]]], +["┃ 1. [✓] Alpha ",[[0,1],[1,2],[4,2],[1,1],[4,3],[1,1],[4,5],[1,81]]], +["┃ 2. [ ] Beta ",[[0,1],[1,2],[2,2],[1,1],[2,3],[1,87]]], +["┃ The second region ",[[0,1],[1,9],[2,17],[1,69]]], +["┃ 3. [ ] Type your own answer ",[[0,1],[1,2],[2,2],[1,1],[2,3],[1,87]]], +["┃ ",[[0,1],[1,95]]], +["┃ ⇆ tab ↑↓ select enter toggle esc dismiss ",[[0,1],[1,4],[2,3],[1,5],[2,6],[1,8],[2,6],[1,6],[2,7],[1,50]]], +["┃ ",[[0,1],[1,95]]], +[" ",[[5,96]]], +[" ",[[5,96]]], +[" ",[[5,96]]], +[" ",[[5,96]]], +[" ",[[5,96]]], +[" ",[[5,96]]], +[" ",[[5,96]]], +[" ",[[5,96]]], +[" ",[[5,96]]], +[" ",[[5,96]]], +[" ",[[5,96]]], +[" ",[[5,96]]], +[" ",[[5,96]]], +[" ",[[5,96]]] +]} diff --git a/packages/cli-rs/parity/fixtures/E.9b/progress.json b/packages/cli-rs/parity/fixtures/E.9b/progress.json new file mode 100644 index 000000000000..7336f19fe80b --- /dev/null +++ b/packages/cli-rs/parity/fixtures/E.9b/progress.json @@ -0,0 +1,32 @@ +{"width":96,"height":30,"styles":["#23344bff #141414ff 0","#ffffffff #141414ff 0","#808080ff #141414ff 0","#ffffffff #080808ff 0"],"lines":[ +["┃ ",[[0,1],[1,95]]], +["┃ Deploy settings ",[[0,1],[1,2],[2,15],[1,78]]], +["┃ ",[[0,1],[1,95]]], +["┃ Pick how to deploy. ",[[0,1],[1,95]]], +["┃ ",[[0,1],[1,95]]], +["┃ Field 1 of 4 · 0/4 completed ",[[0,1],[1,2],[2,12],[1,3],[2,15],[1,63]]], +["┃ ",[[0,1],[1,95]]], +["┃ The first question that is long ",[[0,1],[1,95]]], +["┃ ",[[0,1],[1,95]]], +["┃ Type your answer ",[[0,1],[1,3],[2,16],[1,76]]], +["┃ ",[[0,1],[1,95]]], +["┃ ⇆ tab enter confirm esc dismiss ",[[0,1],[1,4],[2,3],[1,8],[2,7],[1,6],[2,7],[1,60]]], +["┃ ",[[0,1],[1,95]]], +[" ",[[3,96]]], +[" ",[[3,96]]], +[" ",[[3,96]]], +[" ",[[3,96]]], +[" ",[[3,96]]], +[" ",[[3,96]]], +[" ",[[3,96]]], +[" ",[[3,96]]], +[" ",[[3,96]]], +[" ",[[3,96]]], +[" ",[[3,96]]], +[" ",[[3,96]]], +[" ",[[3,96]]], +[" ",[[3,96]]], +[" ",[[3,96]]], +[" ",[[3,96]]], +[" ",[[3,96]]] +]} diff --git a/packages/cli-rs/parity/fixtures/E.9b/review.json b/packages/cli-rs/parity/fixtures/E.9b/review.json new file mode 100644 index 000000000000..7d4b3824f86f --- /dev/null +++ b/packages/cli-rs/parity/fixtures/E.9b/review.json @@ -0,0 +1,32 @@ +{"width":96,"height":30,"styles":["#23344bff #141414ff 0","#ffffffff #141414ff 0","#808080ff #141414ff 0","#ffffffff #141414ff 1","#ffffffff #080808ff 0"],"lines":[ +["┃ ",[[0,1],[1,95]]], +["┃ Deploy settings ",[[0,1],[1,2],[2,15],[1,78]]], +["┃ ",[[0,1],[1,95]]], +["┃ Pick how to deploy. ",[[0,1],[1,95]]], +["┃ ",[[0,1],[1,95]]], +["┃ Name Replicas Confirm Targets Submit ",[[0,1],[1,2],[2,4],[1,2],[2,8],[1,2],[2,7],[1,2],[2,7],[1,2],[3,6],[1,53]]], +["┃ ",[[0,1],[1,95]]], +["┃ Name: Ada ",[[0,1],[1,2],[2,5],[1,88]]], +["┃ Replicas: (not answered) ",[[0,1],[1,2],[2,9],[1,1],[2,14],[1,69]]], +["┃ Confirm: (not answered) ",[[0,1],[1,2],[2,8],[1,1],[2,14],[1,70]]], +["┃ Targets: Alpha ",[[0,1],[1,2],[2,8],[1,85]]], +["┃ ",[[0,1],[1,95]]], +["┃ ⇆ tab enter submit esc dismiss ",[[0,1],[1,4],[2,3],[1,8],[2,6],[1,6],[2,7],[1,61]]], +["┃ ",[[0,1],[1,95]]], +[" ",[[4,96]]], +[" ",[[4,96]]], +[" ",[[4,96]]], +[" ",[[4,96]]], +[" ",[[4,96]]], +[" ",[[4,96]]], +[" ",[[4,96]]], +[" ",[[4,96]]], +[" ",[[4,96]]], +[" ",[[4,96]]], +[" ",[[4,96]]], +[" ",[[4,96]]], +[" ",[[4,96]]], +[" ",[[4,96]]], +[" ",[[4,96]]], +[" ",[[4,96]]] +]} diff --git a/packages/cli-rs/parity/fixtures/E.9b/text.json b/packages/cli-rs/parity/fixtures/E.9b/text.json new file mode 100644 index 000000000000..5e5b2105c3c9 --- /dev/null +++ b/packages/cli-rs/parity/fixtures/E.9b/text.json @@ -0,0 +1,32 @@ +{"width":96,"height":30,"styles":["#23344bff #141414ff 0","#ffffffff #141414ff 0","#808080ff #141414ff 0","#ffffffff #141414ff 1","#ffffffff #080808ff 0"],"lines":[ +["┃ ",[[0,1],[1,95]]], +["┃ Deploy settings ",[[0,1],[1,2],[2,15],[1,78]]], +["┃ ",[[0,1],[1,95]]], +["┃ Pick how to deploy. ",[[0,1],[1,95]]], +["┃ ",[[0,1],[1,95]]], +["┃ Name Replicas Confirm Targets Submit ",[[0,1],[1,2],[3,4],[1,2],[2,8],[1,2],[2,7],[1,2],[2,7],[1,2],[2,6],[1,53]]], +["┃ ",[[0,1],[1,95]]], +["┃ Name ",[[0,1],[1,95]]], +["┃ ",[[0,1],[1,95]]], +["┃ Type your answer ",[[0,1],[1,3],[2,16],[1,76]]], +["┃ ",[[0,1],[1,95]]], +["┃ ⇆ tab enter confirm esc dismiss ",[[0,1],[1,4],[2,3],[1,8],[2,7],[1,6],[2,7],[1,60]]], +["┃ ",[[0,1],[1,95]]], +[" ",[[4,96]]], +[" ",[[4,96]]], +[" ",[[4,96]]], +[" ",[[4,96]]], +[" ",[[4,96]]], +[" ",[[4,96]]], +[" ",[[4,96]]], +[" ",[[4,96]]], +[" ",[[4,96]]], +[" ",[[4,96]]], +[" ",[[4,96]]], +[" ",[[4,96]]], +[" ",[[4,96]]], +[" ",[[4,96]]], +[" ",[[4,96]]], +[" ",[[4,96]]], +[" ",[[4,96]]] +]} diff --git a/packages/cli-rs/parity/fixtures/F.2/requests.json b/packages/cli-rs/parity/fixtures/F.2/requests.json new file mode 100644 index 000000000000..6137bbc087b7 --- /dev/null +++ b/packages/cli-rs/parity/fixtures/F.2/requests.json @@ -0,0 +1,32 @@ +{ + "requests": [ + {"name":"config.get","method":"GET","url":"http://127.0.0.1:4096/prefix/api/config?location%5Bdirectory%5D=%2Ftmp%2Fa+b%26c%3Dd","headers":{"authorization":"Basic b3BlbmNvZGU6c2VjcmV0"}}, + {"name":"session.list","method":"GET","url":"http://127.0.0.1:4096/prefix/api/session?limit=5&order=desc&search=h%C3%A9llo+w%C3%B6rld%2B%3F&parentID=null&archived=false","headers":{"authorization":"Basic b3BlbmNvZGU6c2VjcmV0"}}, + {"name":"session.get","method":"GET","url":"http://127.0.0.1:4096/prefix/api/session/ses_1%20%2F%3F%23%25","headers":{"authorization":"Basic b3BlbmNvZGU6c2VjcmV0","x-opencode-directory":"/override"}}, + {"name":"file.read","method":"GET","url":"http://127.0.0.1:4096/prefix/api/fs/read/dir/a%20b/c%23%3F.txt?location%5Bdirectory%5D=%2Fw","headers":{"authorization":"Basic b3BlbmNvZGU6c2VjcmV0"}}, + {"name":"session.prompt","method":"POST","url":"http://127.0.0.1:4096/prefix/api/session/ses_1/prompt","headers":{"authorization":"Basic b3BlbmNvZGU6c2VjcmV0","content-type":"application/json"},"body":"{\"text\":\"hi\",\"metadata\":{\"k\":1},\"resume\":null}"}, + {"name":"experimental.file.write","method":"POST","url":"http://127.0.0.1:4096/prefix/api/experimental/fs/write?path=a.txt","headers":{"authorization":"Basic b3BlbmNvZGU6c2VjcmV0","content-type":"application/octet-stream"},"bodyBase64":"AQL/"}, + {"name":"event.subscribe","method":"GET","url":"http://127.0.0.1:4096/prefix/api/event?types=session.created&types=rpc.x","headers":{"authorization":"Basic b3BlbmNvZGU6c2VjcmV0"}}, + {"name":"session.remove","method":"DELETE","url":"http://127.0.0.1:4096/prefix/api/session/ses_2","headers":{"authorization":"Basic b3BlbmNvZGU6c2VjcmV0"}}, + {"name":"session.prompt numbers","method":"POST","url":"http://127.0.0.1:4096/prefix/api/session/ses_1/prompt","headers":{"authorization":"Basic b3BlbmNvZGU6c2VjcmV0","content-type":"application/json"},"body":"{\"text\":\"@build x\",\"agents\":[{\"name\":\"build\",\"mention\":{\"start\":0,\"end\":6,\"text\":\"@build\"}},{\"name\":\"plan\",\"mention\":{\"start\":1.5,\"end\":0,\"text\":\"@plan\"}}]}"}, + {"name":"session.form.reply numbers","method":"POST","url":"http://127.0.0.1:4096/prefix/api/session/ses_1/form/frm_1/reply","headers":{"authorization":"Basic b3BlbmNvZGU6c2VjcmV0","content-type":"application/json"},"body":"{\"answer\":{\"count\":3,\"ratio\":2.5,\"big\":123456789012,\"tiny\":0.25,\"name\":\"x\"}}"} + ], + "query": [ + {"value":{"directory":"a"},"search":"location%5Bdirectory%5D=a"}, + {"value":{"a":{"b":{"c":"d"}}},"search":"location%5Ba%5D%5Bb%5D%5Bc%5D=d"}, + {"value":["x","y"],"search":"location=x&location=y"}, + {"value":null,"search":"location=null"}, + {"value":1,"search":"location=1"}, + {"value":1.5,"search":"location=1.5"}, + {"value":1e+21,"search":"location=1e%2B21"}, + {"value":1e-7,"search":"location=1e-7"}, + {"value":0.000001,"search":"location=0.000001"}, + {"value":0,"search":"location=0"}, + {"value":123456789012,"search":"location=123456789012"}, + {"value":true,"search":"location=true"}, + {"value":false,"search":"location=false"}, + {"value":"ü ✓ & = + % # / ? ~*'()!","search":"location=%C3%BC+%E2%9C%93+%26+%3D+%2B+%25+%23+%2F+%3F+%7E*%27%28%29%21"}, + {"value":{"list":[1,{"x":2}],"empty":[]},"search":"location%5Blist%5D=1&location%5Blist%5D%5Bx%5D=2"}, + {"value":"","search":"location="} + ] +} diff --git a/packages/cli-rs/parity/fixtures/F.3/identifier.json b/packages/cli-rs/parity/fixtures/F.3/identifier.json new file mode 100644 index 000000000000..a54b991af60b --- /dev/null +++ b/packages/cli-rs/parity/fixtures/F.3/identifier.json @@ -0,0 +1,68 @@ +[ + { + "descending": false, + "timestamp": 1717171717000, + "repeat": 1, + "prefix": "fcf690388001" + }, + { + "descending": false, + "timestamp": 1717171717000, + "repeat": 1, + "prefix": "fcf690388002" + }, + { + "descending": true, + "timestamp": 1717171717000, + "repeat": 1, + "prefix": "03096fc77ffc" + }, + { + "descending": true, + "timestamp": 1717171717001, + "repeat": 1, + "prefix": "03096fc76ffe" + }, + { + "descending": false, + "timestamp": 1717171717000, + "repeat": 1, + "prefix": "fcf690388001" + }, + { + "descending": false, + "timestamp": 0, + "repeat": 1, + "prefix": "000000000001" + }, + { + "descending": true, + "timestamp": 0, + "repeat": 1, + "prefix": "fffffffffffd" + }, + { + "descending": false, + "timestamp": 1800000000123, + "repeat": 4096, + "prefix": "3185c507c000" + }, + { + "descending": false, + "timestamp": 1800000000123, + "repeat": 1, + "prefix": "3185c507c001" + }, + { + "descending": true, + "timestamp": 1800000000123, + "repeat": 3, + "prefix": "ce7a3af83ffb" + }, + { + "descending": false, + "timestamp": 68719476735, + "repeat": 1, + "prefix": "fffffffff001" + } +] diff --git a/packages/cli-rs/parity/fixtures/F.7/folds.json b/packages/cli-rs/parity/fixtures/F.7/folds.json new file mode 100644 index 000000000000..4c2c6b6ca480 --- /dev/null +++ b/packages/cli-rs/parity/fixtures/F.7/folds.json @@ -0,0 +1,253 @@ +{ + "variants": ["location.shutdown","models-dev.refreshed","credential.updated","credential.switched","integration.updated","provider.updated","model.updated","agent.updated","session.created","session.agent.selected","session.model.selected","session.moved","session.renamed","session.metadata.updated","session.permissions","session.viewed","session.archived","session.unarchived","session.usage.updated","session.deleted","session.forked","session.inbox.delivered","session.inbox.enqueued","session.inbox.cancelled","session.inbox.delivery.changed","session.execution.started","session.execution.succeeded","session.execution.failed","session.execution.interrupted","session.instructions.updated","session.synthetic","session.skill.activated","session.shell.started","session.shell.ended","session.step.started","session.step.first-token","session.step.streamed","session.step.ended","session.step.failed","session.text.started","session.text.delta","session.text.ended","session.reasoning.started","session.reasoning.delta","session.reasoning.ended","session.tool.input.started","session.tool.input.delta","session.tool.input.ended","session.tool.called","session.tool.progress","session.tool.success","session.tool.failed","session.retry.scheduled","session.compaction.started","session.compaction.delta","session.compaction.ended","session.compaction.failed","session.revert.staged","session.revert.cleared","session.revert.committed","filesystem.changed","reference.updated","permission.asked","permission.replied","plugin.updated","project.updated","worktree.updated","worktree.resolved","command.updated","config.updated","skill.updated","pty.created","pty.updated","pty.exited","pty.deleted","persistent-pty.added","persistent-pty.removed","persistent-pty.updated","shell.created","shell.exited","shell.deleted","experimental.job.updated","form.created","form.replied","form.cancelled","websearch.updated","artifact.updated","session.status","session.idle","tui.prompt.append","tui.command.execute","tui.toast.show","tui.session.select","installation.updated","installation.update-available","vcs.branch.updated","mcp.status.changed","mcp.resources.changed","experimental.mcp.event","rpc.x","server.connected"], + "routes": { + "/api/session/active": {"status":200,"body":{"data":{}}}, + "/api/location": {"status":200,"body":{"directory":"/project","project":{"id":"project","directory":"/project","canonical":"/project"}}}, + "/api/project": {"status":200,"body":[{"id":"project","canonical":"/project","time":{"created":1,"updated":1,"active":1},"sandboxes":[]}]}, + "/api/vcs": {"status":200,"body":{"location":{"directory":"/project"},"data":{"branch":{"current":"main","default":"main"}}}}, + "/api/session/ses_a": {"status":200,"body":{"data":{"id":"ses_a","projectID":"project","agent":"build","model":{"providerID":"p","id":"m"},"title":"Title ses_a","cost":0.5,"tokens":{"input":1,"output":1,"reasoning":0,"cache":{"read":0,"write":0}},"time":{"created":1,"updated":2},"location":{"directory":"/project"}}}}, + "/api/session/ses_b": {"status":200,"body":{"data":{"id":"ses_b","projectID":"project","agent":"build","model":{"providerID":"p","id":"m"},"title":"Title ses_b","cost":0.5,"tokens":{"input":1,"output":1,"reasoning":0,"cache":{"read":0,"write":0}},"time":{"created":1,"updated":2},"location":{"directory":"/project"},"parentID":"ses_a"}}}, + "/api/session/ses_a/message": {"status":200,"body":{"data":[{"id":"msg_0005","type":"assistant","agent":"build","model":{"providerID":"p","id":"m"},"content":[{"type":"text","text":"hel"},{"type":"reasoning","text":"th","time":{"created":15}},{"type":"tool","id":"call_1","name":"bash","state":{"status":"streaming","input":"{"},"time":{"created":16}},{"type":"tool","id":"call_2","name":"read","state":{"status":"running","input":{"path":"a"},"metadata":{}},"time":{"created":17,"ran":17}}],"time":{"created":15}},{"id":"msg_0004","type":"compaction","status":"running","reason":"auto","summary":"sum","time":{"created":14}},{"id":"msg_0003","type":"shell","shellID":"sh_1","command":"ls","status":"running","time":{"created":13}},{"id":"msg_0002","type":"assistant","agent":"build","model":{"providerID":"p","id":"m"},"content":[{"type":"text","text":"done"}],"time":{"created":11,"completed":12}},{"id":"msg_0001","type":"user","text":"hello","time":{"created":10}}],"cursor":{"next":"msg_0001"}}}, + "/api/session/ses_a/permission": {"status":200,"body":{"data":[{"id":"per_1","sessionID":"ses_a","action":"bash","resources":[]}]}}, + "/api/session/ses_a/form": {"status":200,"body":{"data":[{"id":"frm_1","sessionID":"ses_a","title":"Ask","fields":[{"key":"x","type":"string"}]}]}}, + "/api/session/ses_a/inbox": {"status":200,"body":{"data":[{"id":"msg_0006","sessionID":"ses_a","time":{"created":18},"type":"user","delivery":"steer","payload":{"text":"next"}}]}}, + "/api/agent": {"status":200,"body":{"location":{"directory":"/project"},"data":[]}}, + "/api/command": {"status":200,"body":{"location":{"directory":"/project"},"data":[]}}, + "/api/config": {"status":200,"body":[]}, + "/api/integration": {"status":200,"body":{"location":{"directory":"/project"},"data":[{"id":"openai","name":"OpenAI","methods":[],"connections":[{"type":"credential","id":"crd_1","label":"crd_1","method":"key"},{"type":"credential","id":"crd_2","label":"crd_2","method":"key"}]}]}}, + "/api/mcp": {"status":200,"body":{"location":{"directory":"/project"},"data":[]}}, + "/api/mcp/resource": {"status":200,"body":{"location":{"directory":"/project"},"data":{"resources":[],"templates":[]}}}, + "/api/model": {"status":200,"body":{"location":{"directory":"/project"},"data":[]}}, + "/api/provider": {"status":200,"body":{"location":{"directory":"/project"},"data":[]}}, + "/api/reference": {"status":200,"body":{"location":{"directory":"/project"},"data":[]}}, + "/api/skill": {"status":200,"body":{"location":{"directory":"/project"},"data":[]}}, + "/api/shell": {"status":200,"body":{"location":{"directory":"/project"},"data":[{"id":"sh_1","status":"running","command":"ls","cwd":"/project","shell":"bash","file":"/tmp/sh_1","metadata":{"sessionID":"ses_a"},"time":{"started":13}}]}}, + "/api/form": {"status":200,"body":{"location":{"directory":"/project"},"data":[]}}, + "/api/websearch/provider": {"status":200,"body":{"location":{"directory":"/project"},"data":[]}}, + "/api/experimental/usage/limits": {"status":200,"body":{"location":{"directory":"/project"},"data":null}} + }, + "allow": [ + {"case":"server.connected@loaded","field":"requests","deviation":"D01a-store-core.md"}, + {"case":"session.model.selected#no-previous@loaded","field":"messages.ses_a","deviation":"O89-model-switch-previous.md"}, + {"case":"session.text.started@loaded","field":"messages.ses_a","deviation":"O5-text-started-replay.md"}, + {"case":"session.reasoning.started@loaded","field":"messages.ses_a","deviation":"O5-text-started-replay.md"} + ], + "cases": [ + {"name":"location.shutdown","state":"empty","event":{"id":"evt_9001","created":1001,"type":"location.shutdown","data":{},"location":{"directory":"/project"}},"expected":{"sessions":{},"missing":[],"family":{"ses_a":[],"ses_b":[]},"status":{"ses_a":"idle","ses_b":"idle"},"messages":{"ses_a":[],"ses_b":[]},"more":{"ses_a":false,"ses_b":false},"pending":{"ses_a":[],"ses_b":[]},"permissions":{},"forms":{},"projects":{},"location":{"shell":[]},"requests":[]}}, + {"name":"location.shutdown","state":"loaded","event":{"id":"evt_9001","created":1001,"type":"location.shutdown","data":{},"location":{"directory":"/project"}},"expected":{"sessions":{"ses_a":{"id":"ses_a","projectID":"project","agent":"build","model":{"providerID":"p","id":"m"},"title":"Title ses_a","cost":0.5,"tokens":{"input":1,"output":1,"reasoning":0,"cache":{"read":0,"write":0}},"time":{"created":1,"updated":2},"location":{"directory":"/project"}}},"missing":[],"family":{"ses_a":["ses_a"],"ses_b":[]},"status":{"ses_a":"idle","ses_b":"idle"},"messages":{"ses_a":[{"id":"msg_0001","type":"user","text":"hello","time":{"created":10}},{"id":"msg_0002","type":"assistant","agent":"build","model":{"providerID":"p","id":"m"},"content":[{"type":"text","text":"done"}],"time":{"created":11,"completed":12}},{"id":"msg_0003","type":"shell","shellID":"sh_1","command":"ls","status":"running","time":{"created":13}},{"id":"msg_0004","type":"compaction","status":"running","reason":"auto","summary":"sum","time":{"created":14}},{"id":"msg_0005","type":"assistant","agent":"build","model":{"providerID":"p","id":"m"},"content":[{"type":"text","text":"hel"},{"type":"reasoning","text":"th","time":{"created":15}},{"type":"tool","id":"call_1","name":"bash","state":{"status":"streaming","input":"{"},"time":{"created":16}},{"type":"tool","id":"call_2","name":"read","state":{"status":"running","input":{"path":"a"},"metadata":{}},"time":{"created":17,"ran":17}}],"time":{"created":15}},{"id":"msg_0006","type":"user","text":"next","time":{"created":18}}],"ses_b":[]},"more":{"ses_a":true,"ses_b":false},"pending":{"ses_a":[{"id":"msg_0006","sessionID":"ses_a","time":{"created":18},"type":"user","delivery":"steer","payload":{"text":"next"}}],"ses_b":[]},"permissions":{"ses_a":[{"id":"per_1","sessionID":"ses_a","action":"bash","resources":[]}]},"forms":{"ses_a":[{"id":"frm_1","sessionID":"ses_a","title":"Ask","fields":[{"key":"x","type":"string"}]}],"global":[]},"projects":{"project":{"id":"project","canonical":"/project","time":{"created":1,"updated":1,"active":1},"sandboxes":[]}},"location":{"info":{"directory":"/project","project":{"id":"project","directory":"/project","canonical":"/project"}},"vcs":{"branch":{"current":"main","default":"main"}},"agent":[],"command":[],"config":[],"integration":[{"id":"openai","name":"OpenAI","methods":[],"connections":[{"type":"credential","id":"crd_1","label":"crd_1","method":"key"},{"type":"credential","id":"crd_2","label":"crd_2","method":"key"}]}],"mcpServer":[],"mcpResource":[],"model":[],"provider":[],"reference":[],"skill":[],"websearch":[],"usageLimits":null,"shell":[{"id":"sh_1","status":"running","command":"ls","cwd":"/project","shell":"bash","file":"/tmp/sh_1","metadata":{"sessionID":"ses_a"},"time":{"started":13},"location":{"directory":"/project"}}]},"requests":[]}}, + {"name":"models-dev.refreshed","state":"empty","event":{"id":"evt_9002","created":1002,"type":"models-dev.refreshed","data":{},"location":{"directory":"/project"}},"expected":{"sessions":{},"missing":[],"family":{"ses_a":[],"ses_b":[]},"status":{"ses_a":"idle","ses_b":"idle"},"messages":{"ses_a":[],"ses_b":[]},"more":{"ses_a":false,"ses_b":false},"pending":{"ses_a":[],"ses_b":[]},"permissions":{},"forms":{},"projects":{},"location":{"shell":[]},"requests":[]}}, + {"name":"models-dev.refreshed","state":"loaded","event":{"id":"evt_9002","created":1002,"type":"models-dev.refreshed","data":{},"location":{"directory":"/project"}},"expected":{"sessions":{"ses_a":{"id":"ses_a","projectID":"project","agent":"build","model":{"providerID":"p","id":"m"},"title":"Title ses_a","cost":0.5,"tokens":{"input":1,"output":1,"reasoning":0,"cache":{"read":0,"write":0}},"time":{"created":1,"updated":2},"location":{"directory":"/project"}}},"missing":[],"family":{"ses_a":["ses_a"],"ses_b":[]},"status":{"ses_a":"idle","ses_b":"idle"},"messages":{"ses_a":[{"id":"msg_0001","type":"user","text":"hello","time":{"created":10}},{"id":"msg_0002","type":"assistant","agent":"build","model":{"providerID":"p","id":"m"},"content":[{"type":"text","text":"done"}],"time":{"created":11,"completed":12}},{"id":"msg_0003","type":"shell","shellID":"sh_1","command":"ls","status":"running","time":{"created":13}},{"id":"msg_0004","type":"compaction","status":"running","reason":"auto","summary":"sum","time":{"created":14}},{"id":"msg_0005","type":"assistant","agent":"build","model":{"providerID":"p","id":"m"},"content":[{"type":"text","text":"hel"},{"type":"reasoning","text":"th","time":{"created":15}},{"type":"tool","id":"call_1","name":"bash","state":{"status":"streaming","input":"{"},"time":{"created":16}},{"type":"tool","id":"call_2","name":"read","state":{"status":"running","input":{"path":"a"},"metadata":{}},"time":{"created":17,"ran":17}}],"time":{"created":15}},{"id":"msg_0006","type":"user","text":"next","time":{"created":18}}],"ses_b":[]},"more":{"ses_a":true,"ses_b":false},"pending":{"ses_a":[{"id":"msg_0006","sessionID":"ses_a","time":{"created":18},"type":"user","delivery":"steer","payload":{"text":"next"}}],"ses_b":[]},"permissions":{"ses_a":[{"id":"per_1","sessionID":"ses_a","action":"bash","resources":[]}]},"forms":{"ses_a":[{"id":"frm_1","sessionID":"ses_a","title":"Ask","fields":[{"key":"x","type":"string"}]}],"global":[]},"projects":{"project":{"id":"project","canonical":"/project","time":{"created":1,"updated":1,"active":1},"sandboxes":[]}},"location":{"info":{"directory":"/project","project":{"id":"project","directory":"/project","canonical":"/project"}},"vcs":{"branch":{"current":"main","default":"main"}},"agent":[],"command":[],"config":[],"integration":[{"id":"openai","name":"OpenAI","methods":[],"connections":[{"type":"credential","id":"crd_1","label":"crd_1","method":"key"},{"type":"credential","id":"crd_2","label":"crd_2","method":"key"}]}],"mcpServer":[],"mcpResource":[],"model":[],"provider":[],"reference":[],"skill":[],"websearch":[],"usageLimits":null,"shell":[{"id":"sh_1","status":"running","command":"ls","cwd":"/project","shell":"bash","file":"/tmp/sh_1","metadata":{"sessionID":"ses_a"},"time":{"started":13},"location":{"directory":"/project"}}]},"requests":[]}}, + {"name":"credential.updated","state":"empty","event":{"id":"evt_9003","created":1003,"type":"credential.updated","data":{"integrationID":"x","credentialID":"x"},"location":{"directory":"/project"}},"expected":{"sessions":{},"missing":[],"family":{"ses_a":[],"ses_b":[]},"status":{"ses_a":"idle","ses_b":"idle"},"messages":{"ses_a":[],"ses_b":[]},"more":{"ses_a":false,"ses_b":false},"pending":{"ses_a":[],"ses_b":[]},"permissions":{},"forms":{},"projects":{},"location":{"shell":[]},"requests":[]}}, + {"name":"credential.updated","state":"loaded","event":{"id":"evt_9003","created":1003,"type":"credential.updated","data":{"integrationID":"x","credentialID":"x"},"location":{"directory":"/project"}},"expected":{"sessions":{"ses_a":{"id":"ses_a","projectID":"project","agent":"build","model":{"providerID":"p","id":"m"},"title":"Title ses_a","cost":0.5,"tokens":{"input":1,"output":1,"reasoning":0,"cache":{"read":0,"write":0}},"time":{"created":1,"updated":2},"location":{"directory":"/project"}}},"missing":[],"family":{"ses_a":["ses_a"],"ses_b":[]},"status":{"ses_a":"idle","ses_b":"idle"},"messages":{"ses_a":[{"id":"msg_0001","type":"user","text":"hello","time":{"created":10}},{"id":"msg_0002","type":"assistant","agent":"build","model":{"providerID":"p","id":"m"},"content":[{"type":"text","text":"done"}],"time":{"created":11,"completed":12}},{"id":"msg_0003","type":"shell","shellID":"sh_1","command":"ls","status":"running","time":{"created":13}},{"id":"msg_0004","type":"compaction","status":"running","reason":"auto","summary":"sum","time":{"created":14}},{"id":"msg_0005","type":"assistant","agent":"build","model":{"providerID":"p","id":"m"},"content":[{"type":"text","text":"hel"},{"type":"reasoning","text":"th","time":{"created":15}},{"type":"tool","id":"call_1","name":"bash","state":{"status":"streaming","input":"{"},"time":{"created":16}},{"type":"tool","id":"call_2","name":"read","state":{"status":"running","input":{"path":"a"},"metadata":{}},"time":{"created":17,"ran":17}}],"time":{"created":15}},{"id":"msg_0006","type":"user","text":"next","time":{"created":18}}],"ses_b":[]},"more":{"ses_a":true,"ses_b":false},"pending":{"ses_a":[{"id":"msg_0006","sessionID":"ses_a","time":{"created":18},"type":"user","delivery":"steer","payload":{"text":"next"}}],"ses_b":[]},"permissions":{"ses_a":[{"id":"per_1","sessionID":"ses_a","action":"bash","resources":[]}]},"forms":{"ses_a":[{"id":"frm_1","sessionID":"ses_a","title":"Ask","fields":[{"key":"x","type":"string"}]}],"global":[]},"projects":{"project":{"id":"project","canonical":"/project","time":{"created":1,"updated":1,"active":1},"sandboxes":[]}},"location":{"info":{"directory":"/project","project":{"id":"project","directory":"/project","canonical":"/project"}},"vcs":{"branch":{"current":"main","default":"main"}},"agent":[],"command":[],"config":[],"integration":[{"id":"openai","name":"OpenAI","methods":[],"connections":[{"type":"credential","id":"crd_1","label":"crd_1","method":"key"},{"type":"credential","id":"crd_2","label":"crd_2","method":"key"}]}],"mcpServer":[],"mcpResource":[],"model":[],"provider":[],"reference":[],"skill":[],"websearch":[],"usageLimits":null,"shell":[{"id":"sh_1","status":"running","command":"ls","cwd":"/project","shell":"bash","file":"/tmp/sh_1","metadata":{"sessionID":"ses_a"},"time":{"started":13},"location":{"directory":"/project"}}]},"requests":["GET /api/experimental/usage/limits?location[directory]=/project","GET /api/integration?location[directory]=/project"]}}, + {"name":"credential.switched","state":"empty","event":{"id":"evt_9004","created":1004,"type":"credential.switched","data":{"integrationID":"openai","credentialID":"crd_2"},"location":{"directory":"/project"}},"expected":{"sessions":{},"missing":[],"family":{"ses_a":[],"ses_b":[]},"status":{"ses_a":"idle","ses_b":"idle"},"messages":{"ses_a":[],"ses_b":[]},"more":{"ses_a":false,"ses_b":false},"pending":{"ses_a":[],"ses_b":[]},"permissions":{},"forms":{},"projects":{},"location":{"shell":[]},"requests":[]}}, + {"name":"credential.switched","state":"loaded","event":{"id":"evt_9004","created":1004,"type":"credential.switched","data":{"integrationID":"openai","credentialID":"crd_2"},"location":{"directory":"/project"}},"expected":{"sessions":{"ses_a":{"id":"ses_a","projectID":"project","agent":"build","model":{"providerID":"p","id":"m"},"title":"Title ses_a","cost":0.5,"tokens":{"input":1,"output":1,"reasoning":0,"cache":{"read":0,"write":0}},"time":{"created":1,"updated":2},"location":{"directory":"/project"}}},"missing":[],"family":{"ses_a":["ses_a"],"ses_b":[]},"status":{"ses_a":"idle","ses_b":"idle"},"messages":{"ses_a":[{"id":"msg_0001","type":"user","text":"hello","time":{"created":10}},{"id":"msg_0002","type":"assistant","agent":"build","model":{"providerID":"p","id":"m"},"content":[{"type":"text","text":"done"}],"time":{"created":11,"completed":12}},{"id":"msg_0003","type":"shell","shellID":"sh_1","command":"ls","status":"running","time":{"created":13}},{"id":"msg_0004","type":"compaction","status":"running","reason":"auto","summary":"sum","time":{"created":14}},{"id":"msg_0005","type":"assistant","agent":"build","model":{"providerID":"p","id":"m"},"content":[{"type":"text","text":"hel"},{"type":"reasoning","text":"th","time":{"created":15}},{"type":"tool","id":"call_1","name":"bash","state":{"status":"streaming","input":"{"},"time":{"created":16}},{"type":"tool","id":"call_2","name":"read","state":{"status":"running","input":{"path":"a"},"metadata":{}},"time":{"created":17,"ran":17}}],"time":{"created":15}},{"id":"msg_0006","type":"user","text":"next","time":{"created":18}}],"ses_b":[]},"more":{"ses_a":true,"ses_b":false},"pending":{"ses_a":[{"id":"msg_0006","sessionID":"ses_a","time":{"created":18},"type":"user","delivery":"steer","payload":{"text":"next"}}],"ses_b":[]},"permissions":{"ses_a":[{"id":"per_1","sessionID":"ses_a","action":"bash","resources":[]}]},"forms":{"ses_a":[{"id":"frm_1","sessionID":"ses_a","title":"Ask","fields":[{"key":"x","type":"string"}]}],"global":[]},"projects":{"project":{"id":"project","canonical":"/project","time":{"created":1,"updated":1,"active":1},"sandboxes":[]}},"location":{"info":{"directory":"/project","project":{"id":"project","directory":"/project","canonical":"/project"}},"vcs":{"branch":{"current":"main","default":"main"}},"agent":[],"command":[],"config":[],"integration":[{"id":"openai","name":"OpenAI","methods":[],"connections":[{"type":"credential","id":"crd_2","label":"crd_2","method":"key"},{"type":"credential","id":"crd_1","label":"crd_1","method":"key"}]}],"mcpServer":[],"mcpResource":[],"model":[],"provider":[],"reference":[],"skill":[],"websearch":[],"usageLimits":null,"shell":[{"id":"sh_1","status":"running","command":"ls","cwd":"/project","shell":"bash","file":"/tmp/sh_1","metadata":{"sessionID":"ses_a"},"time":{"started":13},"location":{"directory":"/project"}}]},"requests":["GET /api/experimental/usage/limits?location[directory]=/project","GET /api/model?location[directory]=/project","GET /api/provider?location[directory]=/project"]}}, + {"name":"integration.updated","state":"empty","event":{"id":"evt_9005","created":1005,"type":"integration.updated","data":{},"location":{"directory":"/project"}},"expected":{"sessions":{},"missing":[],"family":{"ses_a":[],"ses_b":[]},"status":{"ses_a":"idle","ses_b":"idle"},"messages":{"ses_a":[],"ses_b":[]},"more":{"ses_a":false,"ses_b":false},"pending":{"ses_a":[],"ses_b":[]},"permissions":{},"forms":{},"projects":{},"location":{"shell":[]},"requests":[]}}, + {"name":"integration.updated","state":"loaded","event":{"id":"evt_9005","created":1005,"type":"integration.updated","data":{},"location":{"directory":"/project"}},"expected":{"sessions":{"ses_a":{"id":"ses_a","projectID":"project","agent":"build","model":{"providerID":"p","id":"m"},"title":"Title ses_a","cost":0.5,"tokens":{"input":1,"output":1,"reasoning":0,"cache":{"read":0,"write":0}},"time":{"created":1,"updated":2},"location":{"directory":"/project"}}},"missing":[],"family":{"ses_a":["ses_a"],"ses_b":[]},"status":{"ses_a":"idle","ses_b":"idle"},"messages":{"ses_a":[{"id":"msg_0001","type":"user","text":"hello","time":{"created":10}},{"id":"msg_0002","type":"assistant","agent":"build","model":{"providerID":"p","id":"m"},"content":[{"type":"text","text":"done"}],"time":{"created":11,"completed":12}},{"id":"msg_0003","type":"shell","shellID":"sh_1","command":"ls","status":"running","time":{"created":13}},{"id":"msg_0004","type":"compaction","status":"running","reason":"auto","summary":"sum","time":{"created":14}},{"id":"msg_0005","type":"assistant","agent":"build","model":{"providerID":"p","id":"m"},"content":[{"type":"text","text":"hel"},{"type":"reasoning","text":"th","time":{"created":15}},{"type":"tool","id":"call_1","name":"bash","state":{"status":"streaming","input":"{"},"time":{"created":16}},{"type":"tool","id":"call_2","name":"read","state":{"status":"running","input":{"path":"a"},"metadata":{}},"time":{"created":17,"ran":17}}],"time":{"created":15}},{"id":"msg_0006","type":"user","text":"next","time":{"created":18}}],"ses_b":[]},"more":{"ses_a":true,"ses_b":false},"pending":{"ses_a":[{"id":"msg_0006","sessionID":"ses_a","time":{"created":18},"type":"user","delivery":"steer","payload":{"text":"next"}}],"ses_b":[]},"permissions":{"ses_a":[{"id":"per_1","sessionID":"ses_a","action":"bash","resources":[]}]},"forms":{"ses_a":[{"id":"frm_1","sessionID":"ses_a","title":"Ask","fields":[{"key":"x","type":"string"}]}],"global":[]},"projects":{"project":{"id":"project","canonical":"/project","time":{"created":1,"updated":1,"active":1},"sandboxes":[]}},"location":{"info":{"directory":"/project","project":{"id":"project","directory":"/project","canonical":"/project"}},"vcs":{"branch":{"current":"main","default":"main"}},"agent":[],"command":[],"config":[],"integration":[{"id":"openai","name":"OpenAI","methods":[],"connections":[{"type":"credential","id":"crd_1","label":"crd_1","method":"key"},{"type":"credential","id":"crd_2","label":"crd_2","method":"key"}]}],"mcpServer":[],"mcpResource":[],"model":[],"provider":[],"reference":[],"skill":[],"websearch":[],"usageLimits":null,"shell":[{"id":"sh_1","status":"running","command":"ls","cwd":"/project","shell":"bash","file":"/tmp/sh_1","metadata":{"sessionID":"ses_a"},"time":{"started":13},"location":{"directory":"/project"}}]},"requests":["GET /api/experimental/usage/limits?location[directory]=/project","GET /api/integration?location[directory]=/project","GET /api/model?location[directory]=/project","GET /api/provider?location[directory]=/project"]}}, + {"name":"provider.updated","state":"empty","event":{"id":"evt_9006","created":1006,"type":"provider.updated","data":{},"location":{"directory":"/project"}},"expected":{"sessions":{},"missing":[],"family":{"ses_a":[],"ses_b":[]},"status":{"ses_a":"idle","ses_b":"idle"},"messages":{"ses_a":[],"ses_b":[]},"more":{"ses_a":false,"ses_b":false},"pending":{"ses_a":[],"ses_b":[]},"permissions":{},"forms":{},"projects":{},"location":{"shell":[]},"requests":[]}}, + {"name":"provider.updated","state":"loaded","event":{"id":"evt_9006","created":1006,"type":"provider.updated","data":{},"location":{"directory":"/project"}},"expected":{"sessions":{"ses_a":{"id":"ses_a","projectID":"project","agent":"build","model":{"providerID":"p","id":"m"},"title":"Title ses_a","cost":0.5,"tokens":{"input":1,"output":1,"reasoning":0,"cache":{"read":0,"write":0}},"time":{"created":1,"updated":2},"location":{"directory":"/project"}}},"missing":[],"family":{"ses_a":["ses_a"],"ses_b":[]},"status":{"ses_a":"idle","ses_b":"idle"},"messages":{"ses_a":[{"id":"msg_0001","type":"user","text":"hello","time":{"created":10}},{"id":"msg_0002","type":"assistant","agent":"build","model":{"providerID":"p","id":"m"},"content":[{"type":"text","text":"done"}],"time":{"created":11,"completed":12}},{"id":"msg_0003","type":"shell","shellID":"sh_1","command":"ls","status":"running","time":{"created":13}},{"id":"msg_0004","type":"compaction","status":"running","reason":"auto","summary":"sum","time":{"created":14}},{"id":"msg_0005","type":"assistant","agent":"build","model":{"providerID":"p","id":"m"},"content":[{"type":"text","text":"hel"},{"type":"reasoning","text":"th","time":{"created":15}},{"type":"tool","id":"call_1","name":"bash","state":{"status":"streaming","input":"{"},"time":{"created":16}},{"type":"tool","id":"call_2","name":"read","state":{"status":"running","input":{"path":"a"},"metadata":{}},"time":{"created":17,"ran":17}}],"time":{"created":15}},{"id":"msg_0006","type":"user","text":"next","time":{"created":18}}],"ses_b":[]},"more":{"ses_a":true,"ses_b":false},"pending":{"ses_a":[{"id":"msg_0006","sessionID":"ses_a","time":{"created":18},"type":"user","delivery":"steer","payload":{"text":"next"}}],"ses_b":[]},"permissions":{"ses_a":[{"id":"per_1","sessionID":"ses_a","action":"bash","resources":[]}]},"forms":{"ses_a":[{"id":"frm_1","sessionID":"ses_a","title":"Ask","fields":[{"key":"x","type":"string"}]}],"global":[]},"projects":{"project":{"id":"project","canonical":"/project","time":{"created":1,"updated":1,"active":1},"sandboxes":[]}},"location":{"info":{"directory":"/project","project":{"id":"project","directory":"/project","canonical":"/project"}},"vcs":{"branch":{"current":"main","default":"main"}},"agent":[],"command":[],"config":[],"integration":[{"id":"openai","name":"OpenAI","methods":[],"connections":[{"type":"credential","id":"crd_1","label":"crd_1","method":"key"},{"type":"credential","id":"crd_2","label":"crd_2","method":"key"}]}],"mcpServer":[],"mcpResource":[],"model":[],"provider":[],"reference":[],"skill":[],"websearch":[],"usageLimits":null,"shell":[{"id":"sh_1","status":"running","command":"ls","cwd":"/project","shell":"bash","file":"/tmp/sh_1","metadata":{"sessionID":"ses_a"},"time":{"started":13},"location":{"directory":"/project"}}]},"requests":["GET /api/provider?location[directory]=/project"]}}, + {"name":"model.updated","state":"empty","event":{"id":"evt_9007","created":1007,"type":"model.updated","data":{},"location":{"directory":"/project"}},"expected":{"sessions":{},"missing":[],"family":{"ses_a":[],"ses_b":[]},"status":{"ses_a":"idle","ses_b":"idle"},"messages":{"ses_a":[],"ses_b":[]},"more":{"ses_a":false,"ses_b":false},"pending":{"ses_a":[],"ses_b":[]},"permissions":{},"forms":{},"projects":{},"location":{"shell":[]},"requests":[]}}, + {"name":"model.updated","state":"loaded","event":{"id":"evt_9007","created":1007,"type":"model.updated","data":{},"location":{"directory":"/project"}},"expected":{"sessions":{"ses_a":{"id":"ses_a","projectID":"project","agent":"build","model":{"providerID":"p","id":"m"},"title":"Title ses_a","cost":0.5,"tokens":{"input":1,"output":1,"reasoning":0,"cache":{"read":0,"write":0}},"time":{"created":1,"updated":2},"location":{"directory":"/project"}}},"missing":[],"family":{"ses_a":["ses_a"],"ses_b":[]},"status":{"ses_a":"idle","ses_b":"idle"},"messages":{"ses_a":[{"id":"msg_0001","type":"user","text":"hello","time":{"created":10}},{"id":"msg_0002","type":"assistant","agent":"build","model":{"providerID":"p","id":"m"},"content":[{"type":"text","text":"done"}],"time":{"created":11,"completed":12}},{"id":"msg_0003","type":"shell","shellID":"sh_1","command":"ls","status":"running","time":{"created":13}},{"id":"msg_0004","type":"compaction","status":"running","reason":"auto","summary":"sum","time":{"created":14}},{"id":"msg_0005","type":"assistant","agent":"build","model":{"providerID":"p","id":"m"},"content":[{"type":"text","text":"hel"},{"type":"reasoning","text":"th","time":{"created":15}},{"type":"tool","id":"call_1","name":"bash","state":{"status":"streaming","input":"{"},"time":{"created":16}},{"type":"tool","id":"call_2","name":"read","state":{"status":"running","input":{"path":"a"},"metadata":{}},"time":{"created":17,"ran":17}}],"time":{"created":15}},{"id":"msg_0006","type":"user","text":"next","time":{"created":18}}],"ses_b":[]},"more":{"ses_a":true,"ses_b":false},"pending":{"ses_a":[{"id":"msg_0006","sessionID":"ses_a","time":{"created":18},"type":"user","delivery":"steer","payload":{"text":"next"}}],"ses_b":[]},"permissions":{"ses_a":[{"id":"per_1","sessionID":"ses_a","action":"bash","resources":[]}]},"forms":{"ses_a":[{"id":"frm_1","sessionID":"ses_a","title":"Ask","fields":[{"key":"x","type":"string"}]}],"global":[]},"projects":{"project":{"id":"project","canonical":"/project","time":{"created":1,"updated":1,"active":1},"sandboxes":[]}},"location":{"info":{"directory":"/project","project":{"id":"project","directory":"/project","canonical":"/project"}},"vcs":{"branch":{"current":"main","default":"main"}},"agent":[],"command":[],"config":[],"integration":[{"id":"openai","name":"OpenAI","methods":[],"connections":[{"type":"credential","id":"crd_1","label":"crd_1","method":"key"},{"type":"credential","id":"crd_2","label":"crd_2","method":"key"}]}],"mcpServer":[],"mcpResource":[],"model":[],"provider":[],"reference":[],"skill":[],"websearch":[],"usageLimits":null,"shell":[{"id":"sh_1","status":"running","command":"ls","cwd":"/project","shell":"bash","file":"/tmp/sh_1","metadata":{"sessionID":"ses_a"},"time":{"started":13},"location":{"directory":"/project"}}]},"requests":["GET /api/model?location[directory]=/project"]}}, + {"name":"agent.updated","state":"empty","event":{"id":"evt_9008","created":1008,"type":"agent.updated","data":{},"location":{"directory":"/project"}},"expected":{"sessions":{},"missing":[],"family":{"ses_a":[],"ses_b":[]},"status":{"ses_a":"idle","ses_b":"idle"},"messages":{"ses_a":[],"ses_b":[]},"more":{"ses_a":false,"ses_b":false},"pending":{"ses_a":[],"ses_b":[]},"permissions":{},"forms":{},"projects":{},"location":{"shell":[]},"requests":[]}}, + {"name":"agent.updated","state":"loaded","event":{"id":"evt_9008","created":1008,"type":"agent.updated","data":{},"location":{"directory":"/project"}},"expected":{"sessions":{"ses_a":{"id":"ses_a","projectID":"project","agent":"build","model":{"providerID":"p","id":"m"},"title":"Title ses_a","cost":0.5,"tokens":{"input":1,"output":1,"reasoning":0,"cache":{"read":0,"write":0}},"time":{"created":1,"updated":2},"location":{"directory":"/project"}}},"missing":[],"family":{"ses_a":["ses_a"],"ses_b":[]},"status":{"ses_a":"idle","ses_b":"idle"},"messages":{"ses_a":[{"id":"msg_0001","type":"user","text":"hello","time":{"created":10}},{"id":"msg_0002","type":"assistant","agent":"build","model":{"providerID":"p","id":"m"},"content":[{"type":"text","text":"done"}],"time":{"created":11,"completed":12}},{"id":"msg_0003","type":"shell","shellID":"sh_1","command":"ls","status":"running","time":{"created":13}},{"id":"msg_0004","type":"compaction","status":"running","reason":"auto","summary":"sum","time":{"created":14}},{"id":"msg_0005","type":"assistant","agent":"build","model":{"providerID":"p","id":"m"},"content":[{"type":"text","text":"hel"},{"type":"reasoning","text":"th","time":{"created":15}},{"type":"tool","id":"call_1","name":"bash","state":{"status":"streaming","input":"{"},"time":{"created":16}},{"type":"tool","id":"call_2","name":"read","state":{"status":"running","input":{"path":"a"},"metadata":{}},"time":{"created":17,"ran":17}}],"time":{"created":15}},{"id":"msg_0006","type":"user","text":"next","time":{"created":18}}],"ses_b":[]},"more":{"ses_a":true,"ses_b":false},"pending":{"ses_a":[{"id":"msg_0006","sessionID":"ses_a","time":{"created":18},"type":"user","delivery":"steer","payload":{"text":"next"}}],"ses_b":[]},"permissions":{"ses_a":[{"id":"per_1","sessionID":"ses_a","action":"bash","resources":[]}]},"forms":{"ses_a":[{"id":"frm_1","sessionID":"ses_a","title":"Ask","fields":[{"key":"x","type":"string"}]}],"global":[]},"projects":{"project":{"id":"project","canonical":"/project","time":{"created":1,"updated":1,"active":1},"sandboxes":[]}},"location":{"info":{"directory":"/project","project":{"id":"project","directory":"/project","canonical":"/project"}},"vcs":{"branch":{"current":"main","default":"main"}},"agent":[],"command":[],"config":[],"integration":[{"id":"openai","name":"OpenAI","methods":[],"connections":[{"type":"credential","id":"crd_1","label":"crd_1","method":"key"},{"type":"credential","id":"crd_2","label":"crd_2","method":"key"}]}],"mcpServer":[],"mcpResource":[],"model":[],"provider":[],"reference":[],"skill":[],"websearch":[],"usageLimits":null,"shell":[{"id":"sh_1","status":"running","command":"ls","cwd":"/project","shell":"bash","file":"/tmp/sh_1","metadata":{"sessionID":"ses_a"},"time":{"started":13},"location":{"directory":"/project"}}]},"requests":["GET /api/agent?location[directory]=/project"]}}, + {"name":"session.created","state":"empty","event":{"id":"evt_9009","created":1009,"type":"session.created","durable":{"aggregateID":"x","seq":0,"version":1},"data":{"sessionID":"ses_b","projectID":"x","location":{"directory":"x"},"slug":"x","version":"x","info":{"id":"ses_b","projectID":"project","agent":"build","model":{"providerID":"p","id":"m"},"title":"Title ses_b","cost":0.5,"tokens":{"input":1,"output":1,"reasoning":0,"cache":{"read":0,"write":0}},"time":{"created":1,"updated":2},"location":{"directory":"/project"},"parentID":"ses_a"}},"location":{"directory":"/project"}},"expected":{"sessions":{"ses_b":{"id":"ses_b","projectID":"project","agent":"build","model":{"providerID":"p","id":"m"},"title":"Title ses_b","cost":0.5,"tokens":{"input":1,"output":1,"reasoning":0,"cache":{"read":0,"write":0}},"time":{"created":1,"updated":2},"location":{"directory":"/project"},"parentID":"ses_a"}},"missing":[],"family":{"ses_a":["ses_b"],"ses_b":["ses_b"]},"status":{"ses_a":"idle","ses_b":"idle"},"messages":{"ses_a":[],"ses_b":[]},"more":{"ses_a":false,"ses_b":false},"pending":{"ses_a":[],"ses_b":[]},"permissions":{},"forms":{},"projects":{},"location":{"shell":[]},"requests":["GET /api/session/ses_b"]}}, + {"name":"session.created","state":"loaded","event":{"id":"evt_9009","created":1009,"type":"session.created","durable":{"aggregateID":"x","seq":0,"version":1},"data":{"sessionID":"ses_b","projectID":"x","location":{"directory":"x"},"slug":"x","version":"x","info":{"id":"ses_b","projectID":"project","agent":"build","model":{"providerID":"p","id":"m"},"title":"Title ses_b","cost":0.5,"tokens":{"input":1,"output":1,"reasoning":0,"cache":{"read":0,"write":0}},"time":{"created":1,"updated":2},"location":{"directory":"/project"},"parentID":"ses_a"}},"location":{"directory":"/project"}},"expected":{"sessions":{"ses_a":{"id":"ses_a","projectID":"project","agent":"build","model":{"providerID":"p","id":"m"},"title":"Title ses_a","cost":0.5,"tokens":{"input":1,"output":1,"reasoning":0,"cache":{"read":0,"write":0}},"time":{"created":1,"updated":2},"location":{"directory":"/project"}},"ses_b":{"id":"ses_b","projectID":"project","agent":"build","model":{"providerID":"p","id":"m"},"title":"Title ses_b","cost":0.5,"tokens":{"input":1,"output":1,"reasoning":0,"cache":{"read":0,"write":0}},"time":{"created":1,"updated":2},"location":{"directory":"/project"},"parentID":"ses_a"}},"missing":[],"family":{"ses_a":["ses_a","ses_b"],"ses_b":["ses_a","ses_b"]},"status":{"ses_a":"idle","ses_b":"idle"},"messages":{"ses_a":[{"id":"msg_0001","type":"user","text":"hello","time":{"created":10}},{"id":"msg_0002","type":"assistant","agent":"build","model":{"providerID":"p","id":"m"},"content":[{"type":"text","text":"done"}],"time":{"created":11,"completed":12}},{"id":"msg_0003","type":"shell","shellID":"sh_1","command":"ls","status":"running","time":{"created":13}},{"id":"msg_0004","type":"compaction","status":"running","reason":"auto","summary":"sum","time":{"created":14}},{"id":"msg_0005","type":"assistant","agent":"build","model":{"providerID":"p","id":"m"},"content":[{"type":"text","text":"hel"},{"type":"reasoning","text":"th","time":{"created":15}},{"type":"tool","id":"call_1","name":"bash","state":{"status":"streaming","input":"{"},"time":{"created":16}},{"type":"tool","id":"call_2","name":"read","state":{"status":"running","input":{"path":"a"},"metadata":{}},"time":{"created":17,"ran":17}}],"time":{"created":15}},{"id":"msg_0006","type":"user","text":"next","time":{"created":18}}],"ses_b":[]},"more":{"ses_a":true,"ses_b":false},"pending":{"ses_a":[{"id":"msg_0006","sessionID":"ses_a","time":{"created":18},"type":"user","delivery":"steer","payload":{"text":"next"}}],"ses_b":[]},"permissions":{"ses_a":[{"id":"per_1","sessionID":"ses_a","action":"bash","resources":[]}]},"forms":{"ses_a":[{"id":"frm_1","sessionID":"ses_a","title":"Ask","fields":[{"key":"x","type":"string"}]}],"global":[]},"projects":{"project":{"id":"project","canonical":"/project","time":{"created":1,"updated":1,"active":1},"sandboxes":[]}},"location":{"info":{"directory":"/project","project":{"id":"project","directory":"/project","canonical":"/project"}},"vcs":{"branch":{"current":"main","default":"main"}},"agent":[],"command":[],"config":[],"integration":[{"id":"openai","name":"OpenAI","methods":[],"connections":[{"type":"credential","id":"crd_1","label":"crd_1","method":"key"},{"type":"credential","id":"crd_2","label":"crd_2","method":"key"}]}],"mcpServer":[],"mcpResource":[],"model":[],"provider":[],"reference":[],"skill":[],"websearch":[],"usageLimits":null,"shell":[{"id":"sh_1","status":"running","command":"ls","cwd":"/project","shell":"bash","file":"/tmp/sh_1","metadata":{"sessionID":"ses_a"},"time":{"started":13},"location":{"directory":"/project"}}]},"requests":["GET /api/session/ses_b"]}}, + {"name":"session.agent.selected","state":"empty","event":{"id":"evt_9010","created":1010,"type":"session.agent.selected","durable":{"aggregateID":"x","seq":0,"version":1},"data":{"sessionID":"ses_a","agent":"plan","previous":"build"},"location":{"directory":"/project"}},"expected":{"sessions":{},"missing":[],"family":{"ses_a":[],"ses_b":[]},"status":{"ses_a":"idle","ses_b":"idle"},"messages":{"ses_a":[{"id":"msg_9010","type":"agent-switched","agent":"plan","time":{"created":1010}}],"ses_b":[]},"more":{"ses_a":false,"ses_b":false},"pending":{"ses_a":[],"ses_b":[]},"permissions":{},"forms":{},"projects":{},"location":{"shell":[]},"requests":[]}}, + {"name":"session.agent.selected","state":"loaded","event":{"id":"evt_9010","created":1010,"type":"session.agent.selected","durable":{"aggregateID":"x","seq":0,"version":1},"data":{"sessionID":"ses_a","agent":"plan","previous":"build"},"location":{"directory":"/project"}},"expected":{"sessions":{"ses_a":{"id":"ses_a","projectID":"project","agent":"plan","model":{"providerID":"p","id":"m"},"title":"Title ses_a","cost":0.5,"tokens":{"input":1,"output":1,"reasoning":0,"cache":{"read":0,"write":0}},"time":{"created":1,"updated":2},"location":{"directory":"/project"}}},"missing":[],"family":{"ses_a":["ses_a"],"ses_b":[]},"status":{"ses_a":"idle","ses_b":"idle"},"messages":{"ses_a":[{"id":"msg_0001","type":"user","text":"hello","time":{"created":10}},{"id":"msg_0002","type":"assistant","agent":"build","model":{"providerID":"p","id":"m"},"content":[{"type":"text","text":"done"}],"time":{"created":11,"completed":12}},{"id":"msg_0003","type":"shell","shellID":"sh_1","command":"ls","status":"running","time":{"created":13}},{"id":"msg_0004","type":"compaction","status":"running","reason":"auto","summary":"sum","time":{"created":14}},{"id":"msg_0005","type":"assistant","agent":"build","model":{"providerID":"p","id":"m"},"content":[{"type":"text","text":"hel"},{"type":"reasoning","text":"th","time":{"created":15}},{"type":"tool","id":"call_1","name":"bash","state":{"status":"streaming","input":"{"},"time":{"created":16}},{"type":"tool","id":"call_2","name":"read","state":{"status":"running","input":{"path":"a"},"metadata":{}},"time":{"created":17,"ran":17}}],"time":{"created":15}},{"id":"msg_0006","type":"user","text":"next","time":{"created":18}},{"id":"msg_9010","type":"agent-switched","agent":"plan","previous":"build","time":{"created":1010}}],"ses_b":[]},"more":{"ses_a":true,"ses_b":false},"pending":{"ses_a":[{"id":"msg_0006","sessionID":"ses_a","time":{"created":18},"type":"user","delivery":"steer","payload":{"text":"next"}}],"ses_b":[]},"permissions":{"ses_a":[{"id":"per_1","sessionID":"ses_a","action":"bash","resources":[]}]},"forms":{"ses_a":[{"id":"frm_1","sessionID":"ses_a","title":"Ask","fields":[{"key":"x","type":"string"}]}],"global":[]},"projects":{"project":{"id":"project","canonical":"/project","time":{"created":1,"updated":1,"active":1},"sandboxes":[]}},"location":{"info":{"directory":"/project","project":{"id":"project","directory":"/project","canonical":"/project"}},"vcs":{"branch":{"current":"main","default":"main"}},"agent":[],"command":[],"config":[],"integration":[{"id":"openai","name":"OpenAI","methods":[],"connections":[{"type":"credential","id":"crd_1","label":"crd_1","method":"key"},{"type":"credential","id":"crd_2","label":"crd_2","method":"key"}]}],"mcpServer":[],"mcpResource":[],"model":[],"provider":[],"reference":[],"skill":[],"websearch":[],"usageLimits":null,"shell":[{"id":"sh_1","status":"running","command":"ls","cwd":"/project","shell":"bash","file":"/tmp/sh_1","metadata":{"sessionID":"ses_a"},"time":{"started":13},"location":{"directory":"/project"}}]},"requests":[]}}, + {"name":"session.model.selected","state":"empty","event":{"id":"evt_9011","created":1011,"type":"session.model.selected","durable":{"aggregateID":"x","seq":0,"version":1},"data":{"sessionID":"ses_a","model":{"id":"n","providerID":"p"},"previous":{"providerID":"p","id":"m"}},"location":{"directory":"/project"}},"expected":{"sessions":{},"missing":[],"family":{"ses_a":[],"ses_b":[]},"status":{"ses_a":"idle","ses_b":"idle"},"messages":{"ses_a":[],"ses_b":[]},"more":{"ses_a":false,"ses_b":false},"pending":{"ses_a":[],"ses_b":[]},"permissions":{},"forms":{},"projects":{},"location":{"shell":[]},"requests":[]}}, + {"name":"session.model.selected","state":"loaded","event":{"id":"evt_9011","created":1011,"type":"session.model.selected","durable":{"aggregateID":"x","seq":0,"version":1},"data":{"sessionID":"ses_a","model":{"id":"n","providerID":"p"},"previous":{"providerID":"p","id":"m"}},"location":{"directory":"/project"}},"expected":{"sessions":{"ses_a":{"id":"ses_a","projectID":"project","agent":"build","model":{"providerID":"p","id":"n"},"title":"Title ses_a","cost":0.5,"tokens":{"input":1,"output":1,"reasoning":0,"cache":{"read":0,"write":0}},"time":{"created":1,"updated":2},"location":{"directory":"/project"}}},"missing":[],"family":{"ses_a":["ses_a"],"ses_b":[]},"status":{"ses_a":"idle","ses_b":"idle"},"messages":{"ses_a":[{"id":"msg_0001","type":"user","text":"hello","time":{"created":10}},{"id":"msg_0002","type":"assistant","agent":"build","model":{"providerID":"p","id":"m"},"content":[{"type":"text","text":"done"}],"time":{"created":11,"completed":12}},{"id":"msg_0003","type":"shell","shellID":"sh_1","command":"ls","status":"running","time":{"created":13}},{"id":"msg_0004","type":"compaction","status":"running","reason":"auto","summary":"sum","time":{"created":14}},{"id":"msg_0005","type":"assistant","agent":"build","model":{"providerID":"p","id":"m"},"content":[{"type":"text","text":"hel"},{"type":"reasoning","text":"th","time":{"created":15}},{"type":"tool","id":"call_1","name":"bash","state":{"status":"streaming","input":"{"},"time":{"created":16}},{"type":"tool","id":"call_2","name":"read","state":{"status":"running","input":{"path":"a"},"metadata":{}},"time":{"created":17,"ran":17}}],"time":{"created":15}},{"id":"msg_0006","type":"user","text":"next","time":{"created":18}},{"id":"msg_9011","type":"model-switched","model":{"id":"n","providerID":"p"},"previous":{"providerID":"p","id":"m"},"time":{"created":1011}}],"ses_b":[]},"more":{"ses_a":true,"ses_b":false},"pending":{"ses_a":[{"id":"msg_0006","sessionID":"ses_a","time":{"created":18},"type":"user","delivery":"steer","payload":{"text":"next"}}],"ses_b":[]},"permissions":{"ses_a":[{"id":"per_1","sessionID":"ses_a","action":"bash","resources":[]}]},"forms":{"ses_a":[{"id":"frm_1","sessionID":"ses_a","title":"Ask","fields":[{"key":"x","type":"string"}]}],"global":[]},"projects":{"project":{"id":"project","canonical":"/project","time":{"created":1,"updated":1,"active":1},"sandboxes":[]}},"location":{"info":{"directory":"/project","project":{"id":"project","directory":"/project","canonical":"/project"}},"vcs":{"branch":{"current":"main","default":"main"}},"agent":[],"command":[],"config":[],"integration":[{"id":"openai","name":"OpenAI","methods":[],"connections":[{"type":"credential","id":"crd_1","label":"crd_1","method":"key"},{"type":"credential","id":"crd_2","label":"crd_2","method":"key"}]}],"mcpServer":[],"mcpResource":[],"model":[],"provider":[],"reference":[],"skill":[],"websearch":[],"usageLimits":null,"shell":[{"id":"sh_1","status":"running","command":"ls","cwd":"/project","shell":"bash","file":"/tmp/sh_1","metadata":{"sessionID":"ses_a"},"time":{"started":13},"location":{"directory":"/project"}}]},"requests":["GET /api/session/ses_a/message/msg_9011"]}}, + {"name":"session.moved","state":"empty","event":{"id":"evt_9012","created":1012,"type":"session.moved","durable":{"aggregateID":"x","seq":0,"version":1},"data":{"sessionID":"ses_a","location":{"directory":"/other"},"projectID":"other","subpath":"sub"},"location":{"directory":"/project"}},"expected":{"sessions":{},"missing":[],"family":{"ses_a":[],"ses_b":[]},"status":{"ses_a":"idle","ses_b":"idle"},"messages":{"ses_a":[],"ses_b":[]},"more":{"ses_a":false,"ses_b":false},"pending":{"ses_a":[],"ses_b":[]},"permissions":{},"forms":{},"projects":{},"location":{"shell":[]},"requests":[]}}, + {"name":"session.moved","state":"loaded","event":{"id":"evt_9012","created":1012,"type":"session.moved","durable":{"aggregateID":"x","seq":0,"version":1},"data":{"sessionID":"ses_a","location":{"directory":"/other"},"projectID":"other","subpath":"sub"},"location":{"directory":"/project"}},"expected":{"sessions":{"ses_a":{"id":"ses_a","projectID":"other","agent":"build","model":{"providerID":"p","id":"m"},"title":"Title ses_a","cost":0.5,"tokens":{"input":1,"output":1,"reasoning":0,"cache":{"read":0,"write":0}},"time":{"created":1,"updated":2},"location":{"directory":"/other"},"subpath":"sub"}},"missing":[],"family":{"ses_a":["ses_a"],"ses_b":[]},"status":{"ses_a":"idle","ses_b":"idle"},"messages":{"ses_a":[{"id":"msg_0001","type":"user","text":"hello","time":{"created":10}},{"id":"msg_0002","type":"assistant","agent":"build","model":{"providerID":"p","id":"m"},"content":[{"type":"text","text":"done"}],"time":{"created":11,"completed":12}},{"id":"msg_0003","type":"shell","shellID":"sh_1","command":"ls","status":"running","time":{"created":13}},{"id":"msg_0004","type":"compaction","status":"running","reason":"auto","summary":"sum","time":{"created":14}},{"id":"msg_0005","type":"assistant","agent":"build","model":{"providerID":"p","id":"m"},"content":[{"type":"text","text":"hel"},{"type":"reasoning","text":"th","time":{"created":15}},{"type":"tool","id":"call_1","name":"bash","state":{"status":"streaming","input":"{"},"time":{"created":16}},{"type":"tool","id":"call_2","name":"read","state":{"status":"running","input":{"path":"a"},"metadata":{}},"time":{"created":17,"ran":17}}],"time":{"created":15}},{"id":"msg_0006","type":"user","text":"next","time":{"created":18}},{"id":"msg_9012","type":"location-switched","location":{"directory":"/other"},"projectID":"other","subpath":"sub","previous":{"location":{"directory":"/project"},"projectID":"project"},"time":{"created":1012}}],"ses_b":[]},"more":{"ses_a":true,"ses_b":false},"pending":{"ses_a":[{"id":"msg_0006","sessionID":"ses_a","time":{"created":18},"type":"user","delivery":"steer","payload":{"text":"next"}}],"ses_b":[]},"permissions":{"ses_a":[{"id":"per_1","sessionID":"ses_a","action":"bash","resources":[]}]},"forms":{"ses_a":[{"id":"frm_1","sessionID":"ses_a","title":"Ask","fields":[{"key":"x","type":"string"}]}],"global":[]},"projects":{"project":{"id":"project","canonical":"/project","time":{"created":1,"updated":1,"active":1},"sandboxes":[]}},"location":{"info":{"directory":"/project","project":{"id":"project","directory":"/project","canonical":"/project"}},"vcs":{"branch":{"current":"main","default":"main"}},"agent":[],"command":[],"config":[],"integration":[{"id":"openai","name":"OpenAI","methods":[],"connections":[{"type":"credential","id":"crd_1","label":"crd_1","method":"key"},{"type":"credential","id":"crd_2","label":"crd_2","method":"key"}]}],"mcpServer":[],"mcpResource":[],"model":[],"provider":[],"reference":[],"skill":[],"websearch":[],"usageLimits":null,"shell":[{"id":"sh_1","status":"running","command":"ls","cwd":"/project","shell":"bash","file":"/tmp/sh_1","metadata":{"sessionID":"ses_a"},"time":{"started":13},"location":{"directory":"/project"}}]},"requests":[]}}, + {"name":"session.renamed","state":"empty","event":{"id":"evt_9013","created":1013,"type":"session.renamed","durable":{"aggregateID":"x","seq":0,"version":1},"data":{"sessionID":"ses_a","title":"Renamed"},"location":{"directory":"/project"}},"expected":{"sessions":{"ses_a":{"id":"ses_a","projectID":"project","agent":"build","model":{"providerID":"p","id":"m"},"title":"Renamed","cost":0.5,"tokens":{"input":1,"output":1,"reasoning":0,"cache":{"read":0,"write":0}},"time":{"created":1,"updated":2},"location":{"directory":"/project"}}},"missing":[],"family":{"ses_a":["ses_a"],"ses_b":[]},"status":{"ses_a":"idle","ses_b":"idle"},"messages":{"ses_a":[],"ses_b":[]},"more":{"ses_a":false,"ses_b":false},"pending":{"ses_a":[],"ses_b":[]},"permissions":{},"forms":{},"projects":{},"location":{"shell":[]},"requests":["GET /api/session/ses_a"]}}, + {"name":"session.renamed","state":"loaded","event":{"id":"evt_9013","created":1013,"type":"session.renamed","durable":{"aggregateID":"x","seq":0,"version":1},"data":{"sessionID":"ses_a","title":"Renamed"},"location":{"directory":"/project"}},"expected":{"sessions":{"ses_a":{"id":"ses_a","projectID":"project","agent":"build","model":{"providerID":"p","id":"m"},"title":"Renamed","cost":0.5,"tokens":{"input":1,"output":1,"reasoning":0,"cache":{"read":0,"write":0}},"time":{"created":1,"updated":2},"location":{"directory":"/project"}}},"missing":[],"family":{"ses_a":["ses_a"],"ses_b":[]},"status":{"ses_a":"idle","ses_b":"idle"},"messages":{"ses_a":[{"id":"msg_0001","type":"user","text":"hello","time":{"created":10}},{"id":"msg_0002","type":"assistant","agent":"build","model":{"providerID":"p","id":"m"},"content":[{"type":"text","text":"done"}],"time":{"created":11,"completed":12}},{"id":"msg_0003","type":"shell","shellID":"sh_1","command":"ls","status":"running","time":{"created":13}},{"id":"msg_0004","type":"compaction","status":"running","reason":"auto","summary":"sum","time":{"created":14}},{"id":"msg_0005","type":"assistant","agent":"build","model":{"providerID":"p","id":"m"},"content":[{"type":"text","text":"hel"},{"type":"reasoning","text":"th","time":{"created":15}},{"type":"tool","id":"call_1","name":"bash","state":{"status":"streaming","input":"{"},"time":{"created":16}},{"type":"tool","id":"call_2","name":"read","state":{"status":"running","input":{"path":"a"},"metadata":{}},"time":{"created":17,"ran":17}}],"time":{"created":15}},{"id":"msg_0006","type":"user","text":"next","time":{"created":18}}],"ses_b":[]},"more":{"ses_a":true,"ses_b":false},"pending":{"ses_a":[{"id":"msg_0006","sessionID":"ses_a","time":{"created":18},"type":"user","delivery":"steer","payload":{"text":"next"}}],"ses_b":[]},"permissions":{"ses_a":[{"id":"per_1","sessionID":"ses_a","action":"bash","resources":[]}]},"forms":{"ses_a":[{"id":"frm_1","sessionID":"ses_a","title":"Ask","fields":[{"key":"x","type":"string"}]}],"global":[]},"projects":{"project":{"id":"project","canonical":"/project","time":{"created":1,"updated":1,"active":1},"sandboxes":[]}},"location":{"info":{"directory":"/project","project":{"id":"project","directory":"/project","canonical":"/project"}},"vcs":{"branch":{"current":"main","default":"main"}},"agent":[],"command":[],"config":[],"integration":[{"id":"openai","name":"OpenAI","methods":[],"connections":[{"type":"credential","id":"crd_1","label":"crd_1","method":"key"},{"type":"credential","id":"crd_2","label":"crd_2","method":"key"}]}],"mcpServer":[],"mcpResource":[],"model":[],"provider":[],"reference":[],"skill":[],"websearch":[],"usageLimits":null,"shell":[{"id":"sh_1","status":"running","command":"ls","cwd":"/project","shell":"bash","file":"/tmp/sh_1","metadata":{"sessionID":"ses_a"},"time":{"started":13},"location":{"directory":"/project"}}]},"requests":[]}}, + {"name":"session.metadata.updated","state":"empty","event":{"id":"evt_9014","created":1014,"type":"session.metadata.updated","durable":{"aggregateID":"x","seq":0,"version":1},"data":{"sessionID":"ses_a","metadata":{"key":"value"}},"location":{"directory":"/project"}},"expected":{"sessions":{},"missing":[],"family":{"ses_a":[],"ses_b":[]},"status":{"ses_a":"idle","ses_b":"idle"},"messages":{"ses_a":[],"ses_b":[]},"more":{"ses_a":false,"ses_b":false},"pending":{"ses_a":[],"ses_b":[]},"permissions":{},"forms":{},"projects":{},"location":{"shell":[]},"requests":[]}}, + {"name":"session.metadata.updated","state":"loaded","event":{"id":"evt_9014","created":1014,"type":"session.metadata.updated","durable":{"aggregateID":"x","seq":0,"version":1},"data":{"sessionID":"ses_a","metadata":{"key":"value"}},"location":{"directory":"/project"}},"expected":{"sessions":{"ses_a":{"id":"ses_a","projectID":"project","agent":"build","model":{"providerID":"p","id":"m"},"title":"Title ses_a","cost":0.5,"tokens":{"input":1,"output":1,"reasoning":0,"cache":{"read":0,"write":0}},"time":{"created":1,"updated":2},"location":{"directory":"/project"},"metadata":{"key":"value"}}},"missing":[],"family":{"ses_a":["ses_a"],"ses_b":[]},"status":{"ses_a":"idle","ses_b":"idle"},"messages":{"ses_a":[{"id":"msg_0001","type":"user","text":"hello","time":{"created":10}},{"id":"msg_0002","type":"assistant","agent":"build","model":{"providerID":"p","id":"m"},"content":[{"type":"text","text":"done"}],"time":{"created":11,"completed":12}},{"id":"msg_0003","type":"shell","shellID":"sh_1","command":"ls","status":"running","time":{"created":13}},{"id":"msg_0004","type":"compaction","status":"running","reason":"auto","summary":"sum","time":{"created":14}},{"id":"msg_0005","type":"assistant","agent":"build","model":{"providerID":"p","id":"m"},"content":[{"type":"text","text":"hel"},{"type":"reasoning","text":"th","time":{"created":15}},{"type":"tool","id":"call_1","name":"bash","state":{"status":"streaming","input":"{"},"time":{"created":16}},{"type":"tool","id":"call_2","name":"read","state":{"status":"running","input":{"path":"a"},"metadata":{}},"time":{"created":17,"ran":17}}],"time":{"created":15}},{"id":"msg_0006","type":"user","text":"next","time":{"created":18}}],"ses_b":[]},"more":{"ses_a":true,"ses_b":false},"pending":{"ses_a":[{"id":"msg_0006","sessionID":"ses_a","time":{"created":18},"type":"user","delivery":"steer","payload":{"text":"next"}}],"ses_b":[]},"permissions":{"ses_a":[{"id":"per_1","sessionID":"ses_a","action":"bash","resources":[]}]},"forms":{"ses_a":[{"id":"frm_1","sessionID":"ses_a","title":"Ask","fields":[{"key":"x","type":"string"}]}],"global":[]},"projects":{"project":{"id":"project","canonical":"/project","time":{"created":1,"updated":1,"active":1},"sandboxes":[]}},"location":{"info":{"directory":"/project","project":{"id":"project","directory":"/project","canonical":"/project"}},"vcs":{"branch":{"current":"main","default":"main"}},"agent":[],"command":[],"config":[],"integration":[{"id":"openai","name":"OpenAI","methods":[],"connections":[{"type":"credential","id":"crd_1","label":"crd_1","method":"key"},{"type":"credential","id":"crd_2","label":"crd_2","method":"key"}]}],"mcpServer":[],"mcpResource":[],"model":[],"provider":[],"reference":[],"skill":[],"websearch":[],"usageLimits":null,"shell":[{"id":"sh_1","status":"running","command":"ls","cwd":"/project","shell":"bash","file":"/tmp/sh_1","metadata":{"sessionID":"ses_a"},"time":{"started":13},"location":{"directory":"/project"}}]},"requests":[]}}, + {"name":"session.permissions","state":"empty","event":{"id":"evt_9015","created":1015,"type":"session.permissions","durable":{"aggregateID":"x","seq":0,"version":1},"data":{"sessionID":"ses_a","permissions":[]},"location":{"directory":"/project"}},"expected":{"sessions":{},"missing":[],"family":{"ses_a":[],"ses_b":[]},"status":{"ses_a":"idle","ses_b":"idle"},"messages":{"ses_a":[],"ses_b":[]},"more":{"ses_a":false,"ses_b":false},"pending":{"ses_a":[],"ses_b":[]},"permissions":{},"forms":{},"projects":{},"location":{"shell":[]},"requests":[]}}, + {"name":"session.permissions","state":"loaded","event":{"id":"evt_9015","created":1015,"type":"session.permissions","durable":{"aggregateID":"x","seq":0,"version":1},"data":{"sessionID":"ses_a","permissions":[]},"location":{"directory":"/project"}},"expected":{"sessions":{"ses_a":{"id":"ses_a","projectID":"project","agent":"build","model":{"providerID":"p","id":"m"},"title":"Title ses_a","cost":0.5,"tokens":{"input":1,"output":1,"reasoning":0,"cache":{"read":0,"write":0}},"time":{"created":1,"updated":2},"location":{"directory":"/project"},"permissions":[]}},"missing":[],"family":{"ses_a":["ses_a"],"ses_b":[]},"status":{"ses_a":"idle","ses_b":"idle"},"messages":{"ses_a":[{"id":"msg_0001","type":"user","text":"hello","time":{"created":10}},{"id":"msg_0002","type":"assistant","agent":"build","model":{"providerID":"p","id":"m"},"content":[{"type":"text","text":"done"}],"time":{"created":11,"completed":12}},{"id":"msg_0003","type":"shell","shellID":"sh_1","command":"ls","status":"running","time":{"created":13}},{"id":"msg_0004","type":"compaction","status":"running","reason":"auto","summary":"sum","time":{"created":14}},{"id":"msg_0005","type":"assistant","agent":"build","model":{"providerID":"p","id":"m"},"content":[{"type":"text","text":"hel"},{"type":"reasoning","text":"th","time":{"created":15}},{"type":"tool","id":"call_1","name":"bash","state":{"status":"streaming","input":"{"},"time":{"created":16}},{"type":"tool","id":"call_2","name":"read","state":{"status":"running","input":{"path":"a"},"metadata":{}},"time":{"created":17,"ran":17}}],"time":{"created":15}},{"id":"msg_0006","type":"user","text":"next","time":{"created":18}}],"ses_b":[]},"more":{"ses_a":true,"ses_b":false},"pending":{"ses_a":[{"id":"msg_0006","sessionID":"ses_a","time":{"created":18},"type":"user","delivery":"steer","payload":{"text":"next"}}],"ses_b":[]},"permissions":{"ses_a":[{"id":"per_1","sessionID":"ses_a","action":"bash","resources":[]}]},"forms":{"ses_a":[{"id":"frm_1","sessionID":"ses_a","title":"Ask","fields":[{"key":"x","type":"string"}]}],"global":[]},"projects":{"project":{"id":"project","canonical":"/project","time":{"created":1,"updated":1,"active":1},"sandboxes":[]}},"location":{"info":{"directory":"/project","project":{"id":"project","directory":"/project","canonical":"/project"}},"vcs":{"branch":{"current":"main","default":"main"}},"agent":[],"command":[],"config":[],"integration":[{"id":"openai","name":"OpenAI","methods":[],"connections":[{"type":"credential","id":"crd_1","label":"crd_1","method":"key"},{"type":"credential","id":"crd_2","label":"crd_2","method":"key"}]}],"mcpServer":[],"mcpResource":[],"model":[],"provider":[],"reference":[],"skill":[],"websearch":[],"usageLimits":null,"shell":[{"id":"sh_1","status":"running","command":"ls","cwd":"/project","shell":"bash","file":"/tmp/sh_1","metadata":{"sessionID":"ses_a"},"time":{"started":13},"location":{"directory":"/project"}}]},"requests":[]}}, + {"name":"session.viewed","state":"empty","event":{"id":"evt_9016","created":1016,"type":"session.viewed","durable":{"aggregateID":"x","seq":0,"version":1},"data":{"sessionID":"ses_a","idle":0},"location":{"directory":"/project"}},"expected":{"sessions":{},"missing":[],"family":{"ses_a":[],"ses_b":[]},"status":{"ses_a":"idle","ses_b":"idle"},"messages":{"ses_a":[],"ses_b":[]},"more":{"ses_a":false,"ses_b":false},"pending":{"ses_a":[],"ses_b":[]},"permissions":{},"forms":{},"projects":{},"location":{"shell":[]},"requests":[]}}, + {"name":"session.viewed","state":"loaded","event":{"id":"evt_9016","created":1016,"type":"session.viewed","durable":{"aggregateID":"x","seq":0,"version":1},"data":{"sessionID":"ses_a","idle":0},"location":{"directory":"/project"}},"expected":{"sessions":{"ses_a":{"id":"ses_a","projectID":"project","agent":"build","model":{"providerID":"p","id":"m"},"title":"Title ses_a","cost":0.5,"tokens":{"input":1,"output":1,"reasoning":0,"cache":{"read":0,"write":0}},"time":{"created":1,"updated":2},"location":{"directory":"/project"}}},"missing":[],"family":{"ses_a":["ses_a"],"ses_b":[]},"status":{"ses_a":"idle","ses_b":"idle"},"messages":{"ses_a":[{"id":"msg_0001","type":"user","text":"hello","time":{"created":10}},{"id":"msg_0002","type":"assistant","agent":"build","model":{"providerID":"p","id":"m"},"content":[{"type":"text","text":"done"}],"time":{"created":11,"completed":12}},{"id":"msg_0003","type":"shell","shellID":"sh_1","command":"ls","status":"running","time":{"created":13}},{"id":"msg_0004","type":"compaction","status":"running","reason":"auto","summary":"sum","time":{"created":14}},{"id":"msg_0005","type":"assistant","agent":"build","model":{"providerID":"p","id":"m"},"content":[{"type":"text","text":"hel"},{"type":"reasoning","text":"th","time":{"created":15}},{"type":"tool","id":"call_1","name":"bash","state":{"status":"streaming","input":"{"},"time":{"created":16}},{"type":"tool","id":"call_2","name":"read","state":{"status":"running","input":{"path":"a"},"metadata":{}},"time":{"created":17,"ran":17}}],"time":{"created":15}},{"id":"msg_0006","type":"user","text":"next","time":{"created":18}}],"ses_b":[]},"more":{"ses_a":true,"ses_b":false},"pending":{"ses_a":[{"id":"msg_0006","sessionID":"ses_a","time":{"created":18},"type":"user","delivery":"steer","payload":{"text":"next"}}],"ses_b":[]},"permissions":{"ses_a":[{"id":"per_1","sessionID":"ses_a","action":"bash","resources":[]}]},"forms":{"ses_a":[{"id":"frm_1","sessionID":"ses_a","title":"Ask","fields":[{"key":"x","type":"string"}]}],"global":[]},"projects":{"project":{"id":"project","canonical":"/project","time":{"created":1,"updated":1,"active":1},"sandboxes":[]}},"location":{"info":{"directory":"/project","project":{"id":"project","directory":"/project","canonical":"/project"}},"vcs":{"branch":{"current":"main","default":"main"}},"agent":[],"command":[],"config":[],"integration":[{"id":"openai","name":"OpenAI","methods":[],"connections":[{"type":"credential","id":"crd_1","label":"crd_1","method":"key"},{"type":"credential","id":"crd_2","label":"crd_2","method":"key"}]}],"mcpServer":[],"mcpResource":[],"model":[],"provider":[],"reference":[],"skill":[],"websearch":[],"usageLimits":null,"shell":[{"id":"sh_1","status":"running","command":"ls","cwd":"/project","shell":"bash","file":"/tmp/sh_1","metadata":{"sessionID":"ses_a"},"time":{"started":13},"location":{"directory":"/project"}}]},"requests":["GET /api/session/ses_a"]}}, + {"name":"session.archived","state":"empty","event":{"id":"evt_9017","created":1017,"type":"session.archived","durable":{"aggregateID":"x","seq":0,"version":1},"data":{"sessionID":"ses_a"},"location":{"directory":"/project"}},"expected":{"sessions":{},"missing":[],"family":{"ses_a":[],"ses_b":[]},"status":{"ses_a":"idle","ses_b":"idle"},"messages":{"ses_a":[],"ses_b":[]},"more":{"ses_a":false,"ses_b":false},"pending":{"ses_a":[],"ses_b":[]},"permissions":{},"forms":{},"projects":{},"location":{"shell":[]},"requests":[]}}, + {"name":"session.archived","state":"loaded","event":{"id":"evt_9017","created":1017,"type":"session.archived","durable":{"aggregateID":"x","seq":0,"version":1},"data":{"sessionID":"ses_a"},"location":{"directory":"/project"}},"expected":{"sessions":{"ses_a":{"id":"ses_a","projectID":"project","agent":"build","model":{"providerID":"p","id":"m"},"title":"Title ses_a","cost":0.5,"tokens":{"input":1,"output":1,"reasoning":0,"cache":{"read":0,"write":0}},"time":{"created":1,"updated":2,"archived":1017},"location":{"directory":"/project"}}},"missing":[],"family":{"ses_a":["ses_a"],"ses_b":[]},"status":{"ses_a":"idle","ses_b":"idle"},"messages":{"ses_a":[{"id":"msg_0001","type":"user","text":"hello","time":{"created":10}},{"id":"msg_0002","type":"assistant","agent":"build","model":{"providerID":"p","id":"m"},"content":[{"type":"text","text":"done"}],"time":{"created":11,"completed":12}},{"id":"msg_0003","type":"shell","shellID":"sh_1","command":"ls","status":"running","time":{"created":13}},{"id":"msg_0004","type":"compaction","status":"running","reason":"auto","summary":"sum","time":{"created":14}},{"id":"msg_0005","type":"assistant","agent":"build","model":{"providerID":"p","id":"m"},"content":[{"type":"text","text":"hel"},{"type":"reasoning","text":"th","time":{"created":15}},{"type":"tool","id":"call_1","name":"bash","state":{"status":"streaming","input":"{"},"time":{"created":16}},{"type":"tool","id":"call_2","name":"read","state":{"status":"running","input":{"path":"a"},"metadata":{}},"time":{"created":17,"ran":17}}],"time":{"created":15}},{"id":"msg_0006","type":"user","text":"next","time":{"created":18}}],"ses_b":[]},"more":{"ses_a":true,"ses_b":false},"pending":{"ses_a":[{"id":"msg_0006","sessionID":"ses_a","time":{"created":18},"type":"user","delivery":"steer","payload":{"text":"next"}}],"ses_b":[]},"permissions":{"ses_a":[{"id":"per_1","sessionID":"ses_a","action":"bash","resources":[]}]},"forms":{"ses_a":[{"id":"frm_1","sessionID":"ses_a","title":"Ask","fields":[{"key":"x","type":"string"}]}],"global":[]},"projects":{"project":{"id":"project","canonical":"/project","time":{"created":1,"updated":1,"active":1},"sandboxes":[]}},"location":{"info":{"directory":"/project","project":{"id":"project","directory":"/project","canonical":"/project"}},"vcs":{"branch":{"current":"main","default":"main"}},"agent":[],"command":[],"config":[],"integration":[{"id":"openai","name":"OpenAI","methods":[],"connections":[{"type":"credential","id":"crd_1","label":"crd_1","method":"key"},{"type":"credential","id":"crd_2","label":"crd_2","method":"key"}]}],"mcpServer":[],"mcpResource":[],"model":[],"provider":[],"reference":[],"skill":[],"websearch":[],"usageLimits":null,"shell":[{"id":"sh_1","status":"running","command":"ls","cwd":"/project","shell":"bash","file":"/tmp/sh_1","metadata":{"sessionID":"ses_a"},"time":{"started":13},"location":{"directory":"/project"}}]},"requests":[]}}, + {"name":"session.unarchived","state":"empty","event":{"id":"evt_9018","created":1018,"type":"session.unarchived","durable":{"aggregateID":"x","seq":0,"version":1},"data":{"sessionID":"ses_a"},"location":{"directory":"/project"}},"expected":{"sessions":{},"missing":[],"family":{"ses_a":[],"ses_b":[]},"status":{"ses_a":"idle","ses_b":"idle"},"messages":{"ses_a":[],"ses_b":[]},"more":{"ses_a":false,"ses_b":false},"pending":{"ses_a":[],"ses_b":[]},"permissions":{},"forms":{},"projects":{},"location":{"shell":[]},"requests":[]}}, + {"name":"session.unarchived","state":"loaded","event":{"id":"evt_9018","created":1018,"type":"session.unarchived","durable":{"aggregateID":"x","seq":0,"version":1},"data":{"sessionID":"ses_a"},"location":{"directory":"/project"}},"expected":{"sessions":{"ses_a":{"id":"ses_a","projectID":"project","agent":"build","model":{"providerID":"p","id":"m"},"title":"Title ses_a","cost":0.5,"tokens":{"input":1,"output":1,"reasoning":0,"cache":{"read":0,"write":0}},"time":{"created":1,"updated":2},"location":{"directory":"/project"}}},"missing":[],"family":{"ses_a":["ses_a"],"ses_b":[]},"status":{"ses_a":"idle","ses_b":"idle"},"messages":{"ses_a":[{"id":"msg_0001","type":"user","text":"hello","time":{"created":10}},{"id":"msg_0002","type":"assistant","agent":"build","model":{"providerID":"p","id":"m"},"content":[{"type":"text","text":"done"}],"time":{"created":11,"completed":12}},{"id":"msg_0003","type":"shell","shellID":"sh_1","command":"ls","status":"running","time":{"created":13}},{"id":"msg_0004","type":"compaction","status":"running","reason":"auto","summary":"sum","time":{"created":14}},{"id":"msg_0005","type":"assistant","agent":"build","model":{"providerID":"p","id":"m"},"content":[{"type":"text","text":"hel"},{"type":"reasoning","text":"th","time":{"created":15}},{"type":"tool","id":"call_1","name":"bash","state":{"status":"streaming","input":"{"},"time":{"created":16}},{"type":"tool","id":"call_2","name":"read","state":{"status":"running","input":{"path":"a"},"metadata":{}},"time":{"created":17,"ran":17}}],"time":{"created":15}},{"id":"msg_0006","type":"user","text":"next","time":{"created":18}}],"ses_b":[]},"more":{"ses_a":true,"ses_b":false},"pending":{"ses_a":[{"id":"msg_0006","sessionID":"ses_a","time":{"created":18},"type":"user","delivery":"steer","payload":{"text":"next"}}],"ses_b":[]},"permissions":{"ses_a":[{"id":"per_1","sessionID":"ses_a","action":"bash","resources":[]}]},"forms":{"ses_a":[{"id":"frm_1","sessionID":"ses_a","title":"Ask","fields":[{"key":"x","type":"string"}]}],"global":[]},"projects":{"project":{"id":"project","canonical":"/project","time":{"created":1,"updated":1,"active":1},"sandboxes":[]}},"location":{"info":{"directory":"/project","project":{"id":"project","directory":"/project","canonical":"/project"}},"vcs":{"branch":{"current":"main","default":"main"}},"agent":[],"command":[],"config":[],"integration":[{"id":"openai","name":"OpenAI","methods":[],"connections":[{"type":"credential","id":"crd_1","label":"crd_1","method":"key"},{"type":"credential","id":"crd_2","label":"crd_2","method":"key"}]}],"mcpServer":[],"mcpResource":[],"model":[],"provider":[],"reference":[],"skill":[],"websearch":[],"usageLimits":null,"shell":[{"id":"sh_1","status":"running","command":"ls","cwd":"/project","shell":"bash","file":"/tmp/sh_1","metadata":{"sessionID":"ses_a"},"time":{"started":13},"location":{"directory":"/project"}}]},"requests":[]}}, + {"name":"session.usage.updated","state":"empty","event":{"id":"evt_9019","created":1019,"type":"session.usage.updated","data":{"sessionID":"ses_a","cost":2,"tokens":{"input":9,"output":1,"reasoning":0,"cache":{"read":0,"write":0}}},"location":{"directory":"/project"}},"expected":{"sessions":{},"missing":[],"family":{"ses_a":[],"ses_b":[]},"status":{"ses_a":"idle","ses_b":"idle"},"messages":{"ses_a":[],"ses_b":[]},"more":{"ses_a":false,"ses_b":false},"pending":{"ses_a":[],"ses_b":[]},"permissions":{},"forms":{},"projects":{},"location":{"shell":[]},"requests":[]}}, + {"name":"session.usage.updated","state":"loaded","event":{"id":"evt_9019","created":1019,"type":"session.usage.updated","data":{"sessionID":"ses_a","cost":2,"tokens":{"input":9,"output":1,"reasoning":0,"cache":{"read":0,"write":0}}},"location":{"directory":"/project"}},"expected":{"sessions":{"ses_a":{"id":"ses_a","projectID":"project","agent":"build","model":{"providerID":"p","id":"m"},"title":"Title ses_a","cost":2,"tokens":{"input":9,"output":1,"reasoning":0,"cache":{"read":0,"write":0}},"time":{"created":1,"updated":2},"location":{"directory":"/project"}}},"missing":[],"family":{"ses_a":["ses_a"],"ses_b":[]},"status":{"ses_a":"idle","ses_b":"idle"},"messages":{"ses_a":[{"id":"msg_0001","type":"user","text":"hello","time":{"created":10}},{"id":"msg_0002","type":"assistant","agent":"build","model":{"providerID":"p","id":"m"},"content":[{"type":"text","text":"done"}],"time":{"created":11,"completed":12}},{"id":"msg_0003","type":"shell","shellID":"sh_1","command":"ls","status":"running","time":{"created":13}},{"id":"msg_0004","type":"compaction","status":"running","reason":"auto","summary":"sum","time":{"created":14}},{"id":"msg_0005","type":"assistant","agent":"build","model":{"providerID":"p","id":"m"},"content":[{"type":"text","text":"hel"},{"type":"reasoning","text":"th","time":{"created":15}},{"type":"tool","id":"call_1","name":"bash","state":{"status":"streaming","input":"{"},"time":{"created":16}},{"type":"tool","id":"call_2","name":"read","state":{"status":"running","input":{"path":"a"},"metadata":{}},"time":{"created":17,"ran":17}}],"time":{"created":15}},{"id":"msg_0006","type":"user","text":"next","time":{"created":18}}],"ses_b":[]},"more":{"ses_a":true,"ses_b":false},"pending":{"ses_a":[{"id":"msg_0006","sessionID":"ses_a","time":{"created":18},"type":"user","delivery":"steer","payload":{"text":"next"}}],"ses_b":[]},"permissions":{"ses_a":[{"id":"per_1","sessionID":"ses_a","action":"bash","resources":[]}]},"forms":{"ses_a":[{"id":"frm_1","sessionID":"ses_a","title":"Ask","fields":[{"key":"x","type":"string"}]}],"global":[]},"projects":{"project":{"id":"project","canonical":"/project","time":{"created":1,"updated":1,"active":1},"sandboxes":[]}},"location":{"info":{"directory":"/project","project":{"id":"project","directory":"/project","canonical":"/project"}},"vcs":{"branch":{"current":"main","default":"main"}},"agent":[],"command":[],"config":[],"integration":[{"id":"openai","name":"OpenAI","methods":[],"connections":[{"type":"credential","id":"crd_1","label":"crd_1","method":"key"},{"type":"credential","id":"crd_2","label":"crd_2","method":"key"}]}],"mcpServer":[],"mcpResource":[],"model":[],"provider":[],"reference":[],"skill":[],"websearch":[],"usageLimits":null,"shell":[{"id":"sh_1","status":"running","command":"ls","cwd":"/project","shell":"bash","file":"/tmp/sh_1","metadata":{"sessionID":"ses_a"},"time":{"started":13},"location":{"directory":"/project"}}]},"requests":[]}}, + {"name":"session.deleted","state":"empty","event":{"id":"evt_9020","created":1020,"type":"session.deleted","durable":{"aggregateID":"x","seq":0,"version":2},"data":{"sessionID":"ses_a"},"location":{"directory":"/project"}},"expected":{"sessions":{},"missing":["ses_a"],"family":{"ses_a":[],"ses_b":[]},"status":{"ses_a":"idle","ses_b":"idle"},"messages":{"ses_a":[],"ses_b":[]},"more":{"ses_a":false,"ses_b":false},"pending":{"ses_a":[],"ses_b":[]},"permissions":{},"forms":{},"projects":{},"location":{"shell":[]},"requests":[]}}, + {"name":"session.deleted","state":"loaded","event":{"id":"evt_9020","created":1020,"type":"session.deleted","durable":{"aggregateID":"x","seq":0,"version":2},"data":{"sessionID":"ses_a"},"location":{"directory":"/project"}},"expected":{"sessions":{},"missing":["ses_a"],"family":{"ses_a":[],"ses_b":[]},"status":{"ses_a":"idle","ses_b":"idle"},"messages":{"ses_a":[],"ses_b":[]},"more":{"ses_a":false,"ses_b":false},"pending":{"ses_a":[],"ses_b":[]},"permissions":{},"forms":{"global":[]},"projects":{"project":{"id":"project","canonical":"/project","time":{"created":1,"updated":1,"active":1},"sandboxes":[]}},"location":{"info":{"directory":"/project","project":{"id":"project","directory":"/project","canonical":"/project"}},"vcs":{"branch":{"current":"main","default":"main"}},"agent":[],"command":[],"config":[],"integration":[{"id":"openai","name":"OpenAI","methods":[],"connections":[{"type":"credential","id":"crd_1","label":"crd_1","method":"key"},{"type":"credential","id":"crd_2","label":"crd_2","method":"key"}]}],"mcpServer":[],"mcpResource":[],"model":[],"provider":[],"reference":[],"skill":[],"websearch":[],"usageLimits":null,"shell":[{"id":"sh_1","status":"running","command":"ls","cwd":"/project","shell":"bash","file":"/tmp/sh_1","metadata":{"sessionID":"ses_a"},"time":{"started":13},"location":{"directory":"/project"}}]},"requests":[]}}, + {"name":"session.forked","state":"empty","event":{"id":"evt_9021","created":1021,"type":"session.forked","durable":{"aggregateID":"x","seq":0,"version":2},"data":{"sessionID":"ses_a","parentID":"ses_x","boundary":{"type":"before","messageID":"msg_x"}},"location":{"directory":"/project"}},"expected":{"sessions":{},"missing":[],"family":{"ses_a":[],"ses_b":[]},"status":{"ses_a":"idle","ses_b":"idle"},"messages":{"ses_a":[],"ses_b":[]},"more":{"ses_a":false,"ses_b":false},"pending":{"ses_a":[],"ses_b":[]},"permissions":{},"forms":{},"projects":{},"location":{"shell":[]},"requests":[]}}, + {"name":"session.forked","state":"loaded","event":{"id":"evt_9021","created":1021,"type":"session.forked","durable":{"aggregateID":"x","seq":0,"version":2},"data":{"sessionID":"ses_a","parentID":"ses_x","boundary":{"type":"before","messageID":"msg_x"}},"location":{"directory":"/project"}},"expected":{"sessions":{"ses_a":{"id":"ses_a","projectID":"project","agent":"build","model":{"providerID":"p","id":"m"},"title":"Title ses_a","cost":0.5,"tokens":{"input":1,"output":1,"reasoning":0,"cache":{"read":0,"write":0}},"time":{"created":1,"updated":2},"location":{"directory":"/project"}}},"missing":[],"family":{"ses_a":["ses_a"],"ses_b":[]},"status":{"ses_a":"idle","ses_b":"idle"},"messages":{"ses_a":[{"id":"msg_0001","type":"user","text":"hello","time":{"created":10}},{"id":"msg_0002","type":"assistant","agent":"build","model":{"providerID":"p","id":"m"},"content":[{"type":"text","text":"done"}],"time":{"created":11,"completed":12}},{"id":"msg_0003","type":"shell","shellID":"sh_1","command":"ls","status":"running","time":{"created":13}},{"id":"msg_0004","type":"compaction","status":"running","reason":"auto","summary":"sum","time":{"created":14}},{"id":"msg_0005","type":"assistant","agent":"build","model":{"providerID":"p","id":"m"},"content":[{"type":"text","text":"hel"},{"type":"reasoning","text":"th","time":{"created":15}},{"type":"tool","id":"call_1","name":"bash","state":{"status":"streaming","input":"{"},"time":{"created":16}},{"type":"tool","id":"call_2","name":"read","state":{"status":"running","input":{"path":"a"},"metadata":{}},"time":{"created":17,"ran":17}}],"time":{"created":15}},{"id":"msg_0006","type":"user","text":"next","time":{"created":18}}],"ses_b":[]},"more":{"ses_a":true,"ses_b":false},"pending":{"ses_a":[{"id":"msg_0006","sessionID":"ses_a","time":{"created":18},"type":"user","delivery":"steer","payload":{"text":"next"}}],"ses_b":[]},"permissions":{"ses_a":[{"id":"per_1","sessionID":"ses_a","action":"bash","resources":[]}]},"forms":{"ses_a":[{"id":"frm_1","sessionID":"ses_a","title":"Ask","fields":[{"key":"x","type":"string"}]}],"global":[]},"projects":{"project":{"id":"project","canonical":"/project","time":{"created":1,"updated":1,"active":1},"sandboxes":[]}},"location":{"info":{"directory":"/project","project":{"id":"project","directory":"/project","canonical":"/project"}},"vcs":{"branch":{"current":"main","default":"main"}},"agent":[],"command":[],"config":[],"integration":[{"id":"openai","name":"OpenAI","methods":[],"connections":[{"type":"credential","id":"crd_1","label":"crd_1","method":"key"},{"type":"credential","id":"crd_2","label":"crd_2","method":"key"}]}],"mcpServer":[],"mcpResource":[],"model":[],"provider":[],"reference":[],"skill":[],"websearch":[],"usageLimits":null,"shell":[{"id":"sh_1","status":"running","command":"ls","cwd":"/project","shell":"bash","file":"/tmp/sh_1","metadata":{"sessionID":"ses_a"},"time":{"started":13},"location":{"directory":"/project"}}]},"requests":[]}}, + {"name":"session.inbox.delivered","state":"empty","event":{"id":"evt_9022","created":1022,"type":"session.inbox.delivered","durable":{"aggregateID":"x","seq":0,"version":1},"data":{"sessionID":"ses_a","inboxID":"msg_0006"},"location":{"directory":"/project"}},"expected":{"sessions":{},"missing":[],"family":{"ses_a":[],"ses_b":[]},"status":{"ses_a":"idle","ses_b":"idle"},"messages":{"ses_a":[],"ses_b":[]},"more":{"ses_a":false,"ses_b":false},"pending":{"ses_a":[],"ses_b":[]},"permissions":{},"forms":{},"projects":{},"location":{"shell":[]},"requests":[]}}, + {"name":"session.inbox.delivered","state":"loaded","event":{"id":"evt_9022","created":1022,"type":"session.inbox.delivered","durable":{"aggregateID":"x","seq":0,"version":1},"data":{"sessionID":"ses_a","inboxID":"msg_0006"},"location":{"directory":"/project"}},"expected":{"sessions":{"ses_a":{"id":"ses_a","projectID":"project","agent":"build","model":{"providerID":"p","id":"m"},"title":"Title ses_a","cost":0.5,"tokens":{"input":1,"output":1,"reasoning":0,"cache":{"read":0,"write":0}},"time":{"created":1,"updated":2},"location":{"directory":"/project"}}},"missing":[],"family":{"ses_a":["ses_a"],"ses_b":[]},"status":{"ses_a":"idle","ses_b":"idle"},"messages":{"ses_a":[{"id":"msg_0001","type":"user","text":"hello","time":{"created":10}},{"id":"msg_0002","type":"assistant","agent":"build","model":{"providerID":"p","id":"m"},"content":[{"type":"text","text":"done"}],"time":{"created":11,"completed":12}},{"id":"msg_0003","type":"shell","shellID":"sh_1","command":"ls","status":"running","time":{"created":13}},{"id":"msg_0004","type":"compaction","status":"running","reason":"auto","summary":"sum","time":{"created":14}},{"id":"msg_0005","type":"assistant","agent":"build","model":{"providerID":"p","id":"m"},"content":[{"type":"text","text":"hel"},{"type":"reasoning","text":"th","time":{"created":15}},{"type":"tool","id":"call_1","name":"bash","state":{"status":"streaming","input":"{"},"time":{"created":16}},{"type":"tool","id":"call_2","name":"read","state":{"status":"running","input":{"path":"a"},"metadata":{}},"time":{"created":17,"ran":17}}],"time":{"created":15}},{"id":"msg_0006","type":"user","text":"next","time":{"created":1022}}],"ses_b":[]},"more":{"ses_a":true,"ses_b":false},"pending":{"ses_a":[],"ses_b":[]},"permissions":{"ses_a":[{"id":"per_1","sessionID":"ses_a","action":"bash","resources":[]}]},"forms":{"ses_a":[{"id":"frm_1","sessionID":"ses_a","title":"Ask","fields":[{"key":"x","type":"string"}]}],"global":[]},"projects":{"project":{"id":"project","canonical":"/project","time":{"created":1,"updated":1,"active":1},"sandboxes":[]}},"location":{"info":{"directory":"/project","project":{"id":"project","directory":"/project","canonical":"/project"}},"vcs":{"branch":{"current":"main","default":"main"}},"agent":[],"command":[],"config":[],"integration":[{"id":"openai","name":"OpenAI","methods":[],"connections":[{"type":"credential","id":"crd_1","label":"crd_1","method":"key"},{"type":"credential","id":"crd_2","label":"crd_2","method":"key"}]}],"mcpServer":[],"mcpResource":[],"model":[],"provider":[],"reference":[],"skill":[],"websearch":[],"usageLimits":null,"shell":[{"id":"sh_1","status":"running","command":"ls","cwd":"/project","shell":"bash","file":"/tmp/sh_1","metadata":{"sessionID":"ses_a"},"time":{"started":13},"location":{"directory":"/project"}}]},"requests":[]}}, + {"name":"session.inbox.enqueued","state":"empty","event":{"id":"evt_9023","created":1023,"type":"session.inbox.enqueued","durable":{"aggregateID":"x","seq":0,"version":1},"data":{"sessionID":"ses_a","inboxID":"msg_0007","item":{"type":"user","payload":{"text":"queued"},"delivery":"queue"}},"location":{"directory":"/project"}},"expected":{"sessions":{},"missing":[],"family":{"ses_a":[],"ses_b":[]},"status":{"ses_a":"idle","ses_b":"idle"},"messages":{"ses_a":[{"id":"msg_0007","type":"user","text":"queued","time":{"created":1023}}],"ses_b":[]},"more":{"ses_a":false,"ses_b":false},"pending":{"ses_a":[{"id":"msg_0007","sessionID":"ses_a","time":{"created":1023},"type":"user","payload":{"text":"queued"},"delivery":"queue"}],"ses_b":[]},"permissions":{},"forms":{},"projects":{},"location":{"shell":[]},"requests":[]}}, + {"name":"session.inbox.enqueued","state":"loaded","event":{"id":"evt_9023","created":1023,"type":"session.inbox.enqueued","durable":{"aggregateID":"x","seq":0,"version":1},"data":{"sessionID":"ses_a","inboxID":"msg_0007","item":{"type":"user","payload":{"text":"queued"},"delivery":"queue"}},"location":{"directory":"/project"}},"expected":{"sessions":{"ses_a":{"id":"ses_a","projectID":"project","agent":"build","model":{"providerID":"p","id":"m"},"title":"Title ses_a","cost":0.5,"tokens":{"input":1,"output":1,"reasoning":0,"cache":{"read":0,"write":0}},"time":{"created":1,"updated":2},"location":{"directory":"/project"}}},"missing":[],"family":{"ses_a":["ses_a"],"ses_b":[]},"status":{"ses_a":"idle","ses_b":"idle"},"messages":{"ses_a":[{"id":"msg_0001","type":"user","text":"hello","time":{"created":10}},{"id":"msg_0002","type":"assistant","agent":"build","model":{"providerID":"p","id":"m"},"content":[{"type":"text","text":"done"}],"time":{"created":11,"completed":12}},{"id":"msg_0003","type":"shell","shellID":"sh_1","command":"ls","status":"running","time":{"created":13}},{"id":"msg_0004","type":"compaction","status":"running","reason":"auto","summary":"sum","time":{"created":14}},{"id":"msg_0005","type":"assistant","agent":"build","model":{"providerID":"p","id":"m"},"content":[{"type":"text","text":"hel"},{"type":"reasoning","text":"th","time":{"created":15}},{"type":"tool","id":"call_1","name":"bash","state":{"status":"streaming","input":"{"},"time":{"created":16}},{"type":"tool","id":"call_2","name":"read","state":{"status":"running","input":{"path":"a"},"metadata":{}},"time":{"created":17,"ran":17}}],"time":{"created":15}},{"id":"msg_0006","type":"user","text":"next","time":{"created":18}},{"id":"msg_0007","type":"user","text":"queued","time":{"created":1023}}],"ses_b":[]},"more":{"ses_a":true,"ses_b":false},"pending":{"ses_a":[{"id":"msg_0006","sessionID":"ses_a","time":{"created":18},"type":"user","delivery":"steer","payload":{"text":"next"}},{"id":"msg_0007","sessionID":"ses_a","time":{"created":1023},"type":"user","payload":{"text":"queued"},"delivery":"queue"}],"ses_b":[]},"permissions":{"ses_a":[{"id":"per_1","sessionID":"ses_a","action":"bash","resources":[]}]},"forms":{"ses_a":[{"id":"frm_1","sessionID":"ses_a","title":"Ask","fields":[{"key":"x","type":"string"}]}],"global":[]},"projects":{"project":{"id":"project","canonical":"/project","time":{"created":1,"updated":1,"active":1},"sandboxes":[]}},"location":{"info":{"directory":"/project","project":{"id":"project","directory":"/project","canonical":"/project"}},"vcs":{"branch":{"current":"main","default":"main"}},"agent":[],"command":[],"config":[],"integration":[{"id":"openai","name":"OpenAI","methods":[],"connections":[{"type":"credential","id":"crd_1","label":"crd_1","method":"key"},{"type":"credential","id":"crd_2","label":"crd_2","method":"key"}]}],"mcpServer":[],"mcpResource":[],"model":[],"provider":[],"reference":[],"skill":[],"websearch":[],"usageLimits":null,"shell":[{"id":"sh_1","status":"running","command":"ls","cwd":"/project","shell":"bash","file":"/tmp/sh_1","metadata":{"sessionID":"ses_a"},"time":{"started":13},"location":{"directory":"/project"}}]},"requests":[]}}, + {"name":"session.inbox.cancelled","state":"empty","event":{"id":"evt_9024","created":1024,"type":"session.inbox.cancelled","durable":{"aggregateID":"x","seq":0,"version":1},"data":{"sessionID":"ses_a","inboxID":"msg_0006"},"location":{"directory":"/project"}},"expected":{"sessions":{},"missing":[],"family":{"ses_a":[],"ses_b":[]},"status":{"ses_a":"idle","ses_b":"idle"},"messages":{"ses_a":[],"ses_b":[]},"more":{"ses_a":false,"ses_b":false},"pending":{"ses_a":[],"ses_b":[]},"permissions":{},"forms":{},"projects":{},"location":{"shell":[]},"requests":[]}}, + {"name":"session.inbox.cancelled","state":"loaded","event":{"id":"evt_9024","created":1024,"type":"session.inbox.cancelled","durable":{"aggregateID":"x","seq":0,"version":1},"data":{"sessionID":"ses_a","inboxID":"msg_0006"},"location":{"directory":"/project"}},"expected":{"sessions":{"ses_a":{"id":"ses_a","projectID":"project","agent":"build","model":{"providerID":"p","id":"m"},"title":"Title ses_a","cost":0.5,"tokens":{"input":1,"output":1,"reasoning":0,"cache":{"read":0,"write":0}},"time":{"created":1,"updated":2},"location":{"directory":"/project"}}},"missing":[],"family":{"ses_a":["ses_a"],"ses_b":[]},"status":{"ses_a":"idle","ses_b":"idle"},"messages":{"ses_a":[{"id":"msg_0001","type":"user","text":"hello","time":{"created":10}},{"id":"msg_0002","type":"assistant","agent":"build","model":{"providerID":"p","id":"m"},"content":[{"type":"text","text":"done"}],"time":{"created":11,"completed":12}},{"id":"msg_0003","type":"shell","shellID":"sh_1","command":"ls","status":"running","time":{"created":13}},{"id":"msg_0004","type":"compaction","status":"running","reason":"auto","summary":"sum","time":{"created":14}},{"id":"msg_0005","type":"assistant","agent":"build","model":{"providerID":"p","id":"m"},"content":[{"type":"text","text":"hel"},{"type":"reasoning","text":"th","time":{"created":15}},{"type":"tool","id":"call_1","name":"bash","state":{"status":"streaming","input":"{"},"time":{"created":16}},{"type":"tool","id":"call_2","name":"read","state":{"status":"running","input":{"path":"a"},"metadata":{}},"time":{"created":17,"ran":17}}],"time":{"created":15}}],"ses_b":[]},"more":{"ses_a":true,"ses_b":false},"pending":{"ses_a":[],"ses_b":[]},"permissions":{"ses_a":[{"id":"per_1","sessionID":"ses_a","action":"bash","resources":[]}]},"forms":{"ses_a":[{"id":"frm_1","sessionID":"ses_a","title":"Ask","fields":[{"key":"x","type":"string"}]}],"global":[]},"projects":{"project":{"id":"project","canonical":"/project","time":{"created":1,"updated":1,"active":1},"sandboxes":[]}},"location":{"info":{"directory":"/project","project":{"id":"project","directory":"/project","canonical":"/project"}},"vcs":{"branch":{"current":"main","default":"main"}},"agent":[],"command":[],"config":[],"integration":[{"id":"openai","name":"OpenAI","methods":[],"connections":[{"type":"credential","id":"crd_1","label":"crd_1","method":"key"},{"type":"credential","id":"crd_2","label":"crd_2","method":"key"}]}],"mcpServer":[],"mcpResource":[],"model":[],"provider":[],"reference":[],"skill":[],"websearch":[],"usageLimits":null,"shell":[{"id":"sh_1","status":"running","command":"ls","cwd":"/project","shell":"bash","file":"/tmp/sh_1","metadata":{"sessionID":"ses_a"},"time":{"started":13},"location":{"directory":"/project"}}]},"requests":[]}}, + {"name":"session.inbox.delivery.changed","state":"empty","event":{"id":"evt_9025","created":1025,"type":"session.inbox.delivery.changed","durable":{"aggregateID":"x","seq":0,"version":1},"data":{"sessionID":"ses_a","inboxID":"msg_0006","delivery":"queue"},"location":{"directory":"/project"}},"expected":{"sessions":{},"missing":[],"family":{"ses_a":[],"ses_b":[]},"status":{"ses_a":"idle","ses_b":"idle"},"messages":{"ses_a":[],"ses_b":[]},"more":{"ses_a":false,"ses_b":false},"pending":{"ses_a":[],"ses_b":[]},"permissions":{},"forms":{},"projects":{},"location":{"shell":[]},"requests":[]}}, + {"name":"session.inbox.delivery.changed","state":"loaded","event":{"id":"evt_9025","created":1025,"type":"session.inbox.delivery.changed","durable":{"aggregateID":"x","seq":0,"version":1},"data":{"sessionID":"ses_a","inboxID":"msg_0006","delivery":"queue"},"location":{"directory":"/project"}},"expected":{"sessions":{"ses_a":{"id":"ses_a","projectID":"project","agent":"build","model":{"providerID":"p","id":"m"},"title":"Title ses_a","cost":0.5,"tokens":{"input":1,"output":1,"reasoning":0,"cache":{"read":0,"write":0}},"time":{"created":1,"updated":2},"location":{"directory":"/project"}}},"missing":[],"family":{"ses_a":["ses_a"],"ses_b":[]},"status":{"ses_a":"idle","ses_b":"idle"},"messages":{"ses_a":[{"id":"msg_0001","type":"user","text":"hello","time":{"created":10}},{"id":"msg_0002","type":"assistant","agent":"build","model":{"providerID":"p","id":"m"},"content":[{"type":"text","text":"done"}],"time":{"created":11,"completed":12}},{"id":"msg_0003","type":"shell","shellID":"sh_1","command":"ls","status":"running","time":{"created":13}},{"id":"msg_0004","type":"compaction","status":"running","reason":"auto","summary":"sum","time":{"created":14}},{"id":"msg_0005","type":"assistant","agent":"build","model":{"providerID":"p","id":"m"},"content":[{"type":"text","text":"hel"},{"type":"reasoning","text":"th","time":{"created":15}},{"type":"tool","id":"call_1","name":"bash","state":{"status":"streaming","input":"{"},"time":{"created":16}},{"type":"tool","id":"call_2","name":"read","state":{"status":"running","input":{"path":"a"},"metadata":{}},"time":{"created":17,"ran":17}}],"time":{"created":15}},{"id":"msg_0006","type":"user","text":"next","time":{"created":18}}],"ses_b":[]},"more":{"ses_a":true,"ses_b":false},"pending":{"ses_a":[{"id":"msg_0006","sessionID":"ses_a","time":{"created":18},"type":"user","delivery":"queue","payload":{"text":"next"}}],"ses_b":[]},"permissions":{"ses_a":[{"id":"per_1","sessionID":"ses_a","action":"bash","resources":[]}]},"forms":{"ses_a":[{"id":"frm_1","sessionID":"ses_a","title":"Ask","fields":[{"key":"x","type":"string"}]}],"global":[]},"projects":{"project":{"id":"project","canonical":"/project","time":{"created":1,"updated":1,"active":1},"sandboxes":[]}},"location":{"info":{"directory":"/project","project":{"id":"project","directory":"/project","canonical":"/project"}},"vcs":{"branch":{"current":"main","default":"main"}},"agent":[],"command":[],"config":[],"integration":[{"id":"openai","name":"OpenAI","methods":[],"connections":[{"type":"credential","id":"crd_1","label":"crd_1","method":"key"},{"type":"credential","id":"crd_2","label":"crd_2","method":"key"}]}],"mcpServer":[],"mcpResource":[],"model":[],"provider":[],"reference":[],"skill":[],"websearch":[],"usageLimits":null,"shell":[{"id":"sh_1","status":"running","command":"ls","cwd":"/project","shell":"bash","file":"/tmp/sh_1","metadata":{"sessionID":"ses_a"},"time":{"started":13},"location":{"directory":"/project"}}]},"requests":[]}}, + {"name":"session.execution.started","state":"empty","event":{"id":"evt_9026","created":1026,"type":"session.execution.started","durable":{"aggregateID":"x","seq":0,"version":1},"data":{"sessionID":"ses_a"},"location":{"directory":"/project"}},"expected":{"sessions":{},"missing":[],"family":{"ses_a":[],"ses_b":[]},"status":{"ses_a":"running","ses_b":"idle"},"messages":{"ses_a":[],"ses_b":[]},"more":{"ses_a":false,"ses_b":false},"pending":{"ses_a":[],"ses_b":[]},"permissions":{},"forms":{},"projects":{},"location":{"shell":[]},"requests":[]}}, + {"name":"session.execution.started","state":"loaded","event":{"id":"evt_9026","created":1026,"type":"session.execution.started","durable":{"aggregateID":"x","seq":0,"version":1},"data":{"sessionID":"ses_a"},"location":{"directory":"/project"}},"expected":{"sessions":{"ses_a":{"id":"ses_a","projectID":"project","agent":"build","model":{"providerID":"p","id":"m"},"title":"Title ses_a","cost":0.5,"tokens":{"input":1,"output":1,"reasoning":0,"cache":{"read":0,"write":0}},"time":{"created":1,"updated":2},"location":{"directory":"/project"}}},"missing":[],"family":{"ses_a":["ses_a"],"ses_b":[]},"status":{"ses_a":"running","ses_b":"idle"},"messages":{"ses_a":[{"id":"msg_0001","type":"user","text":"hello","time":{"created":10}},{"id":"msg_0002","type":"assistant","agent":"build","model":{"providerID":"p","id":"m"},"content":[{"type":"text","text":"done"}],"time":{"created":11,"completed":12}},{"id":"msg_0003","type":"shell","shellID":"sh_1","command":"ls","status":"running","time":{"created":13}},{"id":"msg_0004","type":"compaction","status":"running","reason":"auto","summary":"sum","time":{"created":14}},{"id":"msg_0005","type":"assistant","agent":"build","model":{"providerID":"p","id":"m"},"content":[{"type":"text","text":"hel"},{"type":"reasoning","text":"th","time":{"created":15}},{"type":"tool","id":"call_1","name":"bash","state":{"status":"streaming","input":"{"},"time":{"created":16}},{"type":"tool","id":"call_2","name":"read","state":{"status":"running","input":{"path":"a"},"metadata":{}},"time":{"created":17,"ran":17}}],"time":{"created":15}},{"id":"msg_0006","type":"user","text":"next","time":{"created":18}}],"ses_b":[]},"more":{"ses_a":true,"ses_b":false},"pending":{"ses_a":[{"id":"msg_0006","sessionID":"ses_a","time":{"created":18},"type":"user","delivery":"steer","payload":{"text":"next"}}],"ses_b":[]},"permissions":{"ses_a":[{"id":"per_1","sessionID":"ses_a","action":"bash","resources":[]}]},"forms":{"ses_a":[{"id":"frm_1","sessionID":"ses_a","title":"Ask","fields":[{"key":"x","type":"string"}]}],"global":[]},"projects":{"project":{"id":"project","canonical":"/project","time":{"created":1,"updated":1,"active":1},"sandboxes":[]}},"location":{"info":{"directory":"/project","project":{"id":"project","directory":"/project","canonical":"/project"}},"vcs":{"branch":{"current":"main","default":"main"}},"agent":[],"command":[],"config":[],"integration":[{"id":"openai","name":"OpenAI","methods":[],"connections":[{"type":"credential","id":"crd_1","label":"crd_1","method":"key"},{"type":"credential","id":"crd_2","label":"crd_2","method":"key"}]}],"mcpServer":[],"mcpResource":[],"model":[],"provider":[],"reference":[],"skill":[],"websearch":[],"usageLimits":null,"shell":[{"id":"sh_1","status":"running","command":"ls","cwd":"/project","shell":"bash","file":"/tmp/sh_1","metadata":{"sessionID":"ses_a"},"time":{"started":13},"location":{"directory":"/project"}}]},"requests":["GET /api/session/ses_a"]}}, + {"name":"session.execution.succeeded","state":"empty","event":{"id":"evt_9027","created":1027,"type":"session.execution.succeeded","durable":{"aggregateID":"x","seq":0,"version":1},"data":{"sessionID":"ses_a"},"location":{"directory":"/project"}},"expected":{"sessions":{},"missing":[],"family":{"ses_a":[],"ses_b":[]},"status":{"ses_a":"idle","ses_b":"idle"},"messages":{"ses_a":[{"id":"msg_9027","type":"idle","outcome":"succeeded","time":{"created":1027}}],"ses_b":[]},"more":{"ses_a":false,"ses_b":false},"pending":{"ses_a":[],"ses_b":[]},"permissions":{},"forms":{},"projects":{},"location":{"shell":[]},"requests":[]}}, + {"name":"session.execution.succeeded","state":"loaded","event":{"id":"evt_9027","created":1027,"type":"session.execution.succeeded","durable":{"aggregateID":"x","seq":0,"version":1},"data":{"sessionID":"ses_a"},"location":{"directory":"/project"}},"expected":{"sessions":{"ses_a":{"id":"ses_a","projectID":"project","agent":"build","model":{"providerID":"p","id":"m"},"title":"Title ses_a","cost":0.5,"tokens":{"input":1,"output":1,"reasoning":0,"cache":{"read":0,"write":0}},"time":{"created":1,"updated":2},"location":{"directory":"/project"}}},"missing":[],"family":{"ses_a":["ses_a"],"ses_b":[]},"status":{"ses_a":"idle","ses_b":"idle"},"messages":{"ses_a":[{"id":"msg_0001","type":"user","text":"hello","time":{"created":10}},{"id":"msg_0002","type":"assistant","agent":"build","model":{"providerID":"p","id":"m"},"content":[{"type":"text","text":"done"}],"time":{"created":11,"completed":12}},{"id":"msg_0003","type":"shell","shellID":"sh_1","command":"ls","status":"running","time":{"created":13}},{"id":"msg_0004","type":"compaction","status":"running","reason":"auto","summary":"sum","time":{"created":14}},{"id":"msg_0005","type":"assistant","agent":"build","model":{"providerID":"p","id":"m"},"content":[{"type":"text","text":"hel"},{"type":"reasoning","text":"th","time":{"created":15}},{"type":"tool","id":"call_1","name":"bash","state":{"status":"streaming","input":"{"},"time":{"created":16}},{"type":"tool","id":"call_2","name":"read","state":{"status":"running","input":{"path":"a"},"metadata":{}},"time":{"created":17,"ran":17}}],"time":{"created":15}},{"id":"msg_0006","type":"user","text":"next","time":{"created":18}}],"ses_b":[]},"more":{"ses_a":true,"ses_b":false},"pending":{"ses_a":[{"id":"msg_0006","sessionID":"ses_a","time":{"created":18},"type":"user","delivery":"steer","payload":{"text":"next"}}],"ses_b":[]},"permissions":{"ses_a":[{"id":"per_1","sessionID":"ses_a","action":"bash","resources":[]}]},"forms":{"ses_a":[{"id":"frm_1","sessionID":"ses_a","title":"Ask","fields":[{"key":"x","type":"string"}]}],"global":[]},"projects":{"project":{"id":"project","canonical":"/project","time":{"created":1,"updated":1,"active":1},"sandboxes":[]}},"location":{"info":{"directory":"/project","project":{"id":"project","directory":"/project","canonical":"/project"}},"vcs":{"branch":{"current":"main","default":"main"}},"agent":[],"command":[],"config":[],"integration":[{"id":"openai","name":"OpenAI","methods":[],"connections":[{"type":"credential","id":"crd_1","label":"crd_1","method":"key"},{"type":"credential","id":"crd_2","label":"crd_2","method":"key"}]}],"mcpServer":[],"mcpResource":[],"model":[],"provider":[],"reference":[],"skill":[],"websearch":[],"usageLimits":null,"shell":[{"id":"sh_1","status":"running","command":"ls","cwd":"/project","shell":"bash","file":"/tmp/sh_1","metadata":{"sessionID":"ses_a"},"time":{"started":13},"location":{"directory":"/project"}}]},"requests":["GET /api/session/ses_a","GET /api/session/ses_a/message?limit=20&order=desc"]}}, + {"name":"session.execution.failed","state":"empty","event":{"id":"evt_9028","created":1028,"type":"session.execution.failed","durable":{"aggregateID":"x","seq":0,"version":1},"data":{"sessionID":"ses_a","error":{"type":"x","message":"x"}},"location":{"directory":"/project"}},"expected":{"sessions":{},"missing":[],"family":{"ses_a":[],"ses_b":[]},"status":{"ses_a":"idle","ses_b":"idle"},"messages":{"ses_a":[{"id":"msg_9028","type":"idle","outcome":"failed","error":{"type":"x","message":"x"},"time":{"created":1028}}],"ses_b":[]},"more":{"ses_a":false,"ses_b":false},"pending":{"ses_a":[],"ses_b":[]},"permissions":{},"forms":{},"projects":{},"location":{"shell":[]},"requests":[]}}, + {"name":"session.execution.failed","state":"loaded","event":{"id":"evt_9028","created":1028,"type":"session.execution.failed","durable":{"aggregateID":"x","seq":0,"version":1},"data":{"sessionID":"ses_a","error":{"type":"x","message":"x"}},"location":{"directory":"/project"}},"expected":{"sessions":{"ses_a":{"id":"ses_a","projectID":"project","agent":"build","model":{"providerID":"p","id":"m"},"title":"Title ses_a","cost":0.5,"tokens":{"input":1,"output":1,"reasoning":0,"cache":{"read":0,"write":0}},"time":{"created":1,"updated":2},"location":{"directory":"/project"}}},"missing":[],"family":{"ses_a":["ses_a"],"ses_b":[]},"status":{"ses_a":"idle","ses_b":"idle"},"messages":{"ses_a":[{"id":"msg_0001","type":"user","text":"hello","time":{"created":10}},{"id":"msg_0002","type":"assistant","agent":"build","model":{"providerID":"p","id":"m"},"content":[{"type":"text","text":"done"}],"time":{"created":11,"completed":12}},{"id":"msg_0003","type":"shell","shellID":"sh_1","command":"ls","status":"running","time":{"created":13}},{"id":"msg_0004","type":"compaction","status":"running","reason":"auto","summary":"sum","time":{"created":14}},{"id":"msg_0005","type":"assistant","agent":"build","model":{"providerID":"p","id":"m"},"content":[{"type":"text","text":"hel"},{"type":"reasoning","text":"th","time":{"created":15}},{"type":"tool","id":"call_1","name":"bash","state":{"status":"streaming","input":"{"},"time":{"created":16}},{"type":"tool","id":"call_2","name":"read","state":{"status":"running","input":{"path":"a"},"metadata":{}},"time":{"created":17,"ran":17}}],"time":{"created":15}},{"id":"msg_0006","type":"user","text":"next","time":{"created":18}}],"ses_b":[]},"more":{"ses_a":true,"ses_b":false},"pending":{"ses_a":[{"id":"msg_0006","sessionID":"ses_a","time":{"created":18},"type":"user","delivery":"steer","payload":{"text":"next"}}],"ses_b":[]},"permissions":{"ses_a":[{"id":"per_1","sessionID":"ses_a","action":"bash","resources":[]}]},"forms":{"ses_a":[{"id":"frm_1","sessionID":"ses_a","title":"Ask","fields":[{"key":"x","type":"string"}]}],"global":[]},"projects":{"project":{"id":"project","canonical":"/project","time":{"created":1,"updated":1,"active":1},"sandboxes":[]}},"location":{"info":{"directory":"/project","project":{"id":"project","directory":"/project","canonical":"/project"}},"vcs":{"branch":{"current":"main","default":"main"}},"agent":[],"command":[],"config":[],"integration":[{"id":"openai","name":"OpenAI","methods":[],"connections":[{"type":"credential","id":"crd_1","label":"crd_1","method":"key"},{"type":"credential","id":"crd_2","label":"crd_2","method":"key"}]}],"mcpServer":[],"mcpResource":[],"model":[],"provider":[],"reference":[],"skill":[],"websearch":[],"usageLimits":null,"shell":[{"id":"sh_1","status":"running","command":"ls","cwd":"/project","shell":"bash","file":"/tmp/sh_1","metadata":{"sessionID":"ses_a"},"time":{"started":13},"location":{"directory":"/project"}}]},"requests":["GET /api/session/ses_a","GET /api/session/ses_a/message?limit=20&order=desc"]}}, + {"name":"session.execution.interrupted","state":"empty","event":{"id":"evt_9029","created":1029,"type":"session.execution.interrupted","durable":{"aggregateID":"x","seq":0,"version":1},"data":{"sessionID":"ses_a","reason":"user"},"location":{"directory":"/project"}},"expected":{"sessions":{},"missing":[],"family":{"ses_a":[],"ses_b":[]},"status":{"ses_a":"idle","ses_b":"idle"},"messages":{"ses_a":[{"id":"msg_9029","type":"idle","outcome":"interrupted","time":{"created":1029}}],"ses_b":[]},"more":{"ses_a":false,"ses_b":false},"pending":{"ses_a":[],"ses_b":[]},"permissions":{},"forms":{},"projects":{},"location":{"shell":[]},"requests":[]}}, + {"name":"session.execution.interrupted","state":"loaded","event":{"id":"evt_9029","created":1029,"type":"session.execution.interrupted","durable":{"aggregateID":"x","seq":0,"version":1},"data":{"sessionID":"ses_a","reason":"user"},"location":{"directory":"/project"}},"expected":{"sessions":{"ses_a":{"id":"ses_a","projectID":"project","agent":"build","model":{"providerID":"p","id":"m"},"title":"Title ses_a","cost":0.5,"tokens":{"input":1,"output":1,"reasoning":0,"cache":{"read":0,"write":0}},"time":{"created":1,"updated":2},"location":{"directory":"/project"}}},"missing":[],"family":{"ses_a":["ses_a"],"ses_b":[]},"status":{"ses_a":"idle","ses_b":"idle"},"messages":{"ses_a":[{"id":"msg_0001","type":"user","text":"hello","time":{"created":10}},{"id":"msg_0002","type":"assistant","agent":"build","model":{"providerID":"p","id":"m"},"content":[{"type":"text","text":"done"}],"time":{"created":11,"completed":12}},{"id":"msg_0003","type":"shell","shellID":"sh_1","command":"ls","status":"running","time":{"created":13}},{"id":"msg_0004","type":"compaction","status":"running","reason":"auto","summary":"sum","time":{"created":14}},{"id":"msg_0005","type":"assistant","agent":"build","model":{"providerID":"p","id":"m"},"content":[{"type":"text","text":"hel"},{"type":"reasoning","text":"th","time":{"created":15}},{"type":"tool","id":"call_1","name":"bash","state":{"status":"streaming","input":"{"},"time":{"created":16}},{"type":"tool","id":"call_2","name":"read","state":{"status":"running","input":{"path":"a"},"metadata":{}},"time":{"created":17,"ran":17}}],"time":{"created":15}},{"id":"msg_0006","type":"user","text":"next","time":{"created":18}}],"ses_b":[]},"more":{"ses_a":true,"ses_b":false},"pending":{"ses_a":[{"id":"msg_0006","sessionID":"ses_a","time":{"created":18},"type":"user","delivery":"steer","payload":{"text":"next"}}],"ses_b":[]},"permissions":{"ses_a":[{"id":"per_1","sessionID":"ses_a","action":"bash","resources":[]}]},"forms":{"ses_a":[{"id":"frm_1","sessionID":"ses_a","title":"Ask","fields":[{"key":"x","type":"string"}]}],"global":[]},"projects":{"project":{"id":"project","canonical":"/project","time":{"created":1,"updated":1,"active":1},"sandboxes":[]}},"location":{"info":{"directory":"/project","project":{"id":"project","directory":"/project","canonical":"/project"}},"vcs":{"branch":{"current":"main","default":"main"}},"agent":[],"command":[],"config":[],"integration":[{"id":"openai","name":"OpenAI","methods":[],"connections":[{"type":"credential","id":"crd_1","label":"crd_1","method":"key"},{"type":"credential","id":"crd_2","label":"crd_2","method":"key"}]}],"mcpServer":[],"mcpResource":[],"model":[],"provider":[],"reference":[],"skill":[],"websearch":[],"usageLimits":null,"shell":[{"id":"sh_1","status":"running","command":"ls","cwd":"/project","shell":"bash","file":"/tmp/sh_1","metadata":{"sessionID":"ses_a"},"time":{"started":13},"location":{"directory":"/project"}}]},"requests":["GET /api/session/ses_a","GET /api/session/ses_a/message?limit=20&order=desc"]}}, + {"name":"session.instructions.updated","state":"empty","event":{"id":"evt_9030","created":1030,"type":"session.instructions.updated","durable":{"aggregateID":"x","seq":0,"version":2},"data":{"sessionID":"ses_a","delta":{"AGENTS.md":"Use tabs"},"text":"Use tabs"},"location":{"directory":"/project"}},"expected":{"sessions":{},"missing":[],"family":{"ses_a":[],"ses_b":[]},"status":{"ses_a":"idle","ses_b":"idle"},"messages":{"ses_a":[{"id":"msg_9030","type":"system","text":"Use tabs","description":"Instructions updated: AGENTS.md","time":{"created":1030}}],"ses_b":[]},"more":{"ses_a":false,"ses_b":false},"pending":{"ses_a":[],"ses_b":[]},"permissions":{},"forms":{},"projects":{},"location":{"shell":[]},"requests":[]}}, + {"name":"session.instructions.updated","state":"loaded","event":{"id":"evt_9030","created":1030,"type":"session.instructions.updated","durable":{"aggregateID":"x","seq":0,"version":2},"data":{"sessionID":"ses_a","delta":{"AGENTS.md":"Use tabs"},"text":"Use tabs"},"location":{"directory":"/project"}},"expected":{"sessions":{"ses_a":{"id":"ses_a","projectID":"project","agent":"build","model":{"providerID":"p","id":"m"},"title":"Title ses_a","cost":0.5,"tokens":{"input":1,"output":1,"reasoning":0,"cache":{"read":0,"write":0}},"time":{"created":1,"updated":2},"location":{"directory":"/project"}}},"missing":[],"family":{"ses_a":["ses_a"],"ses_b":[]},"status":{"ses_a":"idle","ses_b":"idle"},"messages":{"ses_a":[{"id":"msg_0001","type":"user","text":"hello","time":{"created":10}},{"id":"msg_0002","type":"assistant","agent":"build","model":{"providerID":"p","id":"m"},"content":[{"type":"text","text":"done"}],"time":{"created":11,"completed":12}},{"id":"msg_0003","type":"shell","shellID":"sh_1","command":"ls","status":"running","time":{"created":13}},{"id":"msg_0004","type":"compaction","status":"running","reason":"auto","summary":"sum","time":{"created":14}},{"id":"msg_0005","type":"assistant","agent":"build","model":{"providerID":"p","id":"m"},"content":[{"type":"text","text":"hel"},{"type":"reasoning","text":"th","time":{"created":15}},{"type":"tool","id":"call_1","name":"bash","state":{"status":"streaming","input":"{"},"time":{"created":16}},{"type":"tool","id":"call_2","name":"read","state":{"status":"running","input":{"path":"a"},"metadata":{}},"time":{"created":17,"ran":17}}],"time":{"created":15}},{"id":"msg_0006","type":"user","text":"next","time":{"created":18}},{"id":"msg_9030","type":"system","text":"Use tabs","description":"Instructions updated: AGENTS.md","time":{"created":1030}}],"ses_b":[]},"more":{"ses_a":true,"ses_b":false},"pending":{"ses_a":[{"id":"msg_0006","sessionID":"ses_a","time":{"created":18},"type":"user","delivery":"steer","payload":{"text":"next"}}],"ses_b":[]},"permissions":{"ses_a":[{"id":"per_1","sessionID":"ses_a","action":"bash","resources":[]}]},"forms":{"ses_a":[{"id":"frm_1","sessionID":"ses_a","title":"Ask","fields":[{"key":"x","type":"string"}]}],"global":[]},"projects":{"project":{"id":"project","canonical":"/project","time":{"created":1,"updated":1,"active":1},"sandboxes":[]}},"location":{"info":{"directory":"/project","project":{"id":"project","directory":"/project","canonical":"/project"}},"vcs":{"branch":{"current":"main","default":"main"}},"agent":[],"command":[],"config":[],"integration":[{"id":"openai","name":"OpenAI","methods":[],"connections":[{"type":"credential","id":"crd_1","label":"crd_1","method":"key"},{"type":"credential","id":"crd_2","label":"crd_2","method":"key"}]}],"mcpServer":[],"mcpResource":[],"model":[],"provider":[],"reference":[],"skill":[],"websearch":[],"usageLimits":null,"shell":[{"id":"sh_1","status":"running","command":"ls","cwd":"/project","shell":"bash","file":"/tmp/sh_1","metadata":{"sessionID":"ses_a"},"time":{"started":13},"location":{"directory":"/project"}}]},"requests":[]}}, + {"name":"session.synthetic","state":"empty","event":{"id":"evt_9031","created":1031,"type":"session.synthetic","durable":{"aggregateID":"x","seq":0,"version":1},"data":{"sessionID":"ses_a","text":"note","description":"Note"},"location":{"directory":"/project"}},"expected":{"sessions":{},"missing":[],"family":{"ses_a":[],"ses_b":[]},"status":{"ses_a":"idle","ses_b":"idle"},"messages":{"ses_a":[{"id":"msg_9031","type":"synthetic","text":"note","description":"Note","time":{"created":1031}}],"ses_b":[]},"more":{"ses_a":false,"ses_b":false},"pending":{"ses_a":[],"ses_b":[]},"permissions":{},"forms":{},"projects":{},"location":{"shell":[]},"requests":[]}}, + {"name":"session.synthetic","state":"loaded","event":{"id":"evt_9031","created":1031,"type":"session.synthetic","durable":{"aggregateID":"x","seq":0,"version":1},"data":{"sessionID":"ses_a","text":"note","description":"Note"},"location":{"directory":"/project"}},"expected":{"sessions":{"ses_a":{"id":"ses_a","projectID":"project","agent":"build","model":{"providerID":"p","id":"m"},"title":"Title ses_a","cost":0.5,"tokens":{"input":1,"output":1,"reasoning":0,"cache":{"read":0,"write":0}},"time":{"created":1,"updated":2},"location":{"directory":"/project"}}},"missing":[],"family":{"ses_a":["ses_a"],"ses_b":[]},"status":{"ses_a":"idle","ses_b":"idle"},"messages":{"ses_a":[{"id":"msg_0001","type":"user","text":"hello","time":{"created":10}},{"id":"msg_0002","type":"assistant","agent":"build","model":{"providerID":"p","id":"m"},"content":[{"type":"text","text":"done"}],"time":{"created":11,"completed":12}},{"id":"msg_0003","type":"shell","shellID":"sh_1","command":"ls","status":"running","time":{"created":13}},{"id":"msg_0004","type":"compaction","status":"running","reason":"auto","summary":"sum","time":{"created":14}},{"id":"msg_0005","type":"assistant","agent":"build","model":{"providerID":"p","id":"m"},"content":[{"type":"text","text":"hel"},{"type":"reasoning","text":"th","time":{"created":15}},{"type":"tool","id":"call_1","name":"bash","state":{"status":"streaming","input":"{"},"time":{"created":16}},{"type":"tool","id":"call_2","name":"read","state":{"status":"running","input":{"path":"a"},"metadata":{}},"time":{"created":17,"ran":17}}],"time":{"created":15}},{"id":"msg_0006","type":"user","text":"next","time":{"created":18}},{"id":"msg_9031","type":"synthetic","text":"note","description":"Note","time":{"created":1031}}],"ses_b":[]},"more":{"ses_a":true,"ses_b":false},"pending":{"ses_a":[{"id":"msg_0006","sessionID":"ses_a","time":{"created":18},"type":"user","delivery":"steer","payload":{"text":"next"}}],"ses_b":[]},"permissions":{"ses_a":[{"id":"per_1","sessionID":"ses_a","action":"bash","resources":[]}]},"forms":{"ses_a":[{"id":"frm_1","sessionID":"ses_a","title":"Ask","fields":[{"key":"x","type":"string"}]}],"global":[]},"projects":{"project":{"id":"project","canonical":"/project","time":{"created":1,"updated":1,"active":1},"sandboxes":[]}},"location":{"info":{"directory":"/project","project":{"id":"project","directory":"/project","canonical":"/project"}},"vcs":{"branch":{"current":"main","default":"main"}},"agent":[],"command":[],"config":[],"integration":[{"id":"openai","name":"OpenAI","methods":[],"connections":[{"type":"credential","id":"crd_1","label":"crd_1","method":"key"},{"type":"credential","id":"crd_2","label":"crd_2","method":"key"}]}],"mcpServer":[],"mcpResource":[],"model":[],"provider":[],"reference":[],"skill":[],"websearch":[],"usageLimits":null,"shell":[{"id":"sh_1","status":"running","command":"ls","cwd":"/project","shell":"bash","file":"/tmp/sh_1","metadata":{"sessionID":"ses_a"},"time":{"started":13},"location":{"directory":"/project"}}]},"requests":[]}}, + {"name":"session.skill.activated","state":"empty","event":{"id":"evt_9032","created":1032,"type":"session.skill.activated","durable":{"aggregateID":"x","seq":0,"version":1},"data":{"sessionID":"ses_a","id":"x","name":"x","text":"x"},"location":{"directory":"/project"}},"expected":{"sessions":{},"missing":[],"family":{"ses_a":[],"ses_b":[]},"status":{"ses_a":"idle","ses_b":"idle"},"messages":{"ses_a":[],"ses_b":[]},"more":{"ses_a":false,"ses_b":false},"pending":{"ses_a":[],"ses_b":[]},"permissions":{},"forms":{},"projects":{},"location":{"shell":[]},"requests":[]}}, + {"name":"session.skill.activated","state":"loaded","event":{"id":"evt_9032","created":1032,"type":"session.skill.activated","durable":{"aggregateID":"x","seq":0,"version":1},"data":{"sessionID":"ses_a","id":"x","name":"x","text":"x"},"location":{"directory":"/project"}},"expected":{"sessions":{"ses_a":{"id":"ses_a","projectID":"project","agent":"build","model":{"providerID":"p","id":"m"},"title":"Title ses_a","cost":0.5,"tokens":{"input":1,"output":1,"reasoning":0,"cache":{"read":0,"write":0}},"time":{"created":1,"updated":2},"location":{"directory":"/project"}}},"missing":[],"family":{"ses_a":["ses_a"],"ses_b":[]},"status":{"ses_a":"idle","ses_b":"idle"},"messages":{"ses_a":[{"id":"msg_0001","type":"user","text":"hello","time":{"created":10}},{"id":"msg_0002","type":"assistant","agent":"build","model":{"providerID":"p","id":"m"},"content":[{"type":"text","text":"done"}],"time":{"created":11,"completed":12}},{"id":"msg_0003","type":"shell","shellID":"sh_1","command":"ls","status":"running","time":{"created":13}},{"id":"msg_0004","type":"compaction","status":"running","reason":"auto","summary":"sum","time":{"created":14}},{"id":"msg_0005","type":"assistant","agent":"build","model":{"providerID":"p","id":"m"},"content":[{"type":"text","text":"hel"},{"type":"reasoning","text":"th","time":{"created":15}},{"type":"tool","id":"call_1","name":"bash","state":{"status":"streaming","input":"{"},"time":{"created":16}},{"type":"tool","id":"call_2","name":"read","state":{"status":"running","input":{"path":"a"},"metadata":{}},"time":{"created":17,"ran":17}}],"time":{"created":15}},{"id":"msg_0006","type":"user","text":"next","time":{"created":18}}],"ses_b":[]},"more":{"ses_a":true,"ses_b":false},"pending":{"ses_a":[{"id":"msg_0006","sessionID":"ses_a","time":{"created":18},"type":"user","delivery":"steer","payload":{"text":"next"}}],"ses_b":[]},"permissions":{"ses_a":[{"id":"per_1","sessionID":"ses_a","action":"bash","resources":[]}]},"forms":{"ses_a":[{"id":"frm_1","sessionID":"ses_a","title":"Ask","fields":[{"key":"x","type":"string"}]}],"global":[]},"projects":{"project":{"id":"project","canonical":"/project","time":{"created":1,"updated":1,"active":1},"sandboxes":[]}},"location":{"info":{"directory":"/project","project":{"id":"project","directory":"/project","canonical":"/project"}},"vcs":{"branch":{"current":"main","default":"main"}},"agent":[],"command":[],"config":[],"integration":[{"id":"openai","name":"OpenAI","methods":[],"connections":[{"type":"credential","id":"crd_1","label":"crd_1","method":"key"},{"type":"credential","id":"crd_2","label":"crd_2","method":"key"}]}],"mcpServer":[],"mcpResource":[],"model":[],"provider":[],"reference":[],"skill":[],"websearch":[],"usageLimits":null,"shell":[{"id":"sh_1","status":"running","command":"ls","cwd":"/project","shell":"bash","file":"/tmp/sh_1","metadata":{"sessionID":"ses_a"},"time":{"started":13},"location":{"directory":"/project"}}]},"requests":[]}}, + {"name":"session.shell.started","state":"empty","event":{"id":"evt_9033","created":1033,"type":"session.shell.started","durable":{"aggregateID":"x","seq":0,"version":1},"data":{"sessionID":"ses_a","shell":{"id":"sh_2","status":"running","command":"ls","cwd":"/project","shell":"bash","file":"/tmp/sh_1","metadata":{"sessionID":"ses_a"},"time":{"started":13}}},"location":{"directory":"/project"}},"expected":{"sessions":{},"missing":[],"family":{"ses_a":[],"ses_b":[]},"status":{"ses_a":"idle","ses_b":"idle"},"messages":{"ses_a":[{"id":"msg_9033","type":"shell","shellID":"sh_2","command":"ls","status":"running","time":{"created":1033}}],"ses_b":[]},"more":{"ses_a":false,"ses_b":false},"pending":{"ses_a":[],"ses_b":[]},"permissions":{},"forms":{},"projects":{},"location":{"shell":[]},"requests":[]}}, + {"name":"session.shell.started","state":"loaded","event":{"id":"evt_9033","created":1033,"type":"session.shell.started","durable":{"aggregateID":"x","seq":0,"version":1},"data":{"sessionID":"ses_a","shell":{"id":"sh_2","status":"running","command":"ls","cwd":"/project","shell":"bash","file":"/tmp/sh_1","metadata":{"sessionID":"ses_a"},"time":{"started":13}}},"location":{"directory":"/project"}},"expected":{"sessions":{"ses_a":{"id":"ses_a","projectID":"project","agent":"build","model":{"providerID":"p","id":"m"},"title":"Title ses_a","cost":0.5,"tokens":{"input":1,"output":1,"reasoning":0,"cache":{"read":0,"write":0}},"time":{"created":1,"updated":2},"location":{"directory":"/project"}}},"missing":[],"family":{"ses_a":["ses_a"],"ses_b":[]},"status":{"ses_a":"idle","ses_b":"idle"},"messages":{"ses_a":[{"id":"msg_0001","type":"user","text":"hello","time":{"created":10}},{"id":"msg_0002","type":"assistant","agent":"build","model":{"providerID":"p","id":"m"},"content":[{"type":"text","text":"done"}],"time":{"created":11,"completed":12}},{"id":"msg_0003","type":"shell","shellID":"sh_1","command":"ls","status":"running","time":{"created":13}},{"id":"msg_0004","type":"compaction","status":"running","reason":"auto","summary":"sum","time":{"created":14}},{"id":"msg_0005","type":"assistant","agent":"build","model":{"providerID":"p","id":"m"},"content":[{"type":"text","text":"hel"},{"type":"reasoning","text":"th","time":{"created":15}},{"type":"tool","id":"call_1","name":"bash","state":{"status":"streaming","input":"{"},"time":{"created":16}},{"type":"tool","id":"call_2","name":"read","state":{"status":"running","input":{"path":"a"},"metadata":{}},"time":{"created":17,"ran":17}}],"time":{"created":15}},{"id":"msg_0006","type":"user","text":"next","time":{"created":18}},{"id":"msg_9033","type":"shell","shellID":"sh_2","command":"ls","status":"running","time":{"created":1033}}],"ses_b":[]},"more":{"ses_a":true,"ses_b":false},"pending":{"ses_a":[{"id":"msg_0006","sessionID":"ses_a","time":{"created":18},"type":"user","delivery":"steer","payload":{"text":"next"}}],"ses_b":[]},"permissions":{"ses_a":[{"id":"per_1","sessionID":"ses_a","action":"bash","resources":[]}]},"forms":{"ses_a":[{"id":"frm_1","sessionID":"ses_a","title":"Ask","fields":[{"key":"x","type":"string"}]}],"global":[]},"projects":{"project":{"id":"project","canonical":"/project","time":{"created":1,"updated":1,"active":1},"sandboxes":[]}},"location":{"info":{"directory":"/project","project":{"id":"project","directory":"/project","canonical":"/project"}},"vcs":{"branch":{"current":"main","default":"main"}},"agent":[],"command":[],"config":[],"integration":[{"id":"openai","name":"OpenAI","methods":[],"connections":[{"type":"credential","id":"crd_1","label":"crd_1","method":"key"},{"type":"credential","id":"crd_2","label":"crd_2","method":"key"}]}],"mcpServer":[],"mcpResource":[],"model":[],"provider":[],"reference":[],"skill":[],"websearch":[],"usageLimits":null,"shell":[{"id":"sh_1","status":"running","command":"ls","cwd":"/project","shell":"bash","file":"/tmp/sh_1","metadata":{"sessionID":"ses_a"},"time":{"started":13},"location":{"directory":"/project"}}]},"requests":[]}}, + {"name":"session.shell.ended","state":"empty","event":{"id":"evt_9034","created":1034,"type":"session.shell.ended","durable":{"aggregateID":"x","seq":0,"version":1},"data":{"sessionID":"ses_a","shell":{"id":"sh_1","status":"exited","command":"ls","cwd":"/project","shell":"bash","file":"/tmp/sh_1","metadata":{"sessionID":"ses_a"},"time":{"started":13},"exit":0},"output":{"output":"out","cursor":3,"size":3,"truncated":false}},"location":{"directory":"/project"}},"expected":{"sessions":{},"missing":[],"family":{"ses_a":[],"ses_b":[]},"status":{"ses_a":"idle","ses_b":"idle"},"messages":{"ses_a":[],"ses_b":[]},"more":{"ses_a":false,"ses_b":false},"pending":{"ses_a":[],"ses_b":[]},"permissions":{},"forms":{},"projects":{},"location":{"shell":[]},"requests":[]}}, + {"name":"session.shell.ended","state":"loaded","event":{"id":"evt_9034","created":1034,"type":"session.shell.ended","durable":{"aggregateID":"x","seq":0,"version":1},"data":{"sessionID":"ses_a","shell":{"id":"sh_1","status":"exited","command":"ls","cwd":"/project","shell":"bash","file":"/tmp/sh_1","metadata":{"sessionID":"ses_a"},"time":{"started":13},"exit":0},"output":{"output":"out","cursor":3,"size":3,"truncated":false}},"location":{"directory":"/project"}},"expected":{"sessions":{"ses_a":{"id":"ses_a","projectID":"project","agent":"build","model":{"providerID":"p","id":"m"},"title":"Title ses_a","cost":0.5,"tokens":{"input":1,"output":1,"reasoning":0,"cache":{"read":0,"write":0}},"time":{"created":1,"updated":2},"location":{"directory":"/project"}}},"missing":[],"family":{"ses_a":["ses_a"],"ses_b":[]},"status":{"ses_a":"idle","ses_b":"idle"},"messages":{"ses_a":[{"id":"msg_0001","type":"user","text":"hello","time":{"created":10}},{"id":"msg_0002","type":"assistant","agent":"build","model":{"providerID":"p","id":"m"},"content":[{"type":"text","text":"done"}],"time":{"created":11,"completed":12}},{"id":"msg_0003","type":"shell","shellID":"sh_1","command":"ls","status":"exited","time":{"created":13,"completed":1034},"exit":0,"output":{"output":"out","cursor":3,"size":3,"truncated":false}},{"id":"msg_0004","type":"compaction","status":"running","reason":"auto","summary":"sum","time":{"created":14}},{"id":"msg_0005","type":"assistant","agent":"build","model":{"providerID":"p","id":"m"},"content":[{"type":"text","text":"hel"},{"type":"reasoning","text":"th","time":{"created":15}},{"type":"tool","id":"call_1","name":"bash","state":{"status":"streaming","input":"{"},"time":{"created":16}},{"type":"tool","id":"call_2","name":"read","state":{"status":"running","input":{"path":"a"},"metadata":{}},"time":{"created":17,"ran":17}}],"time":{"created":15}},{"id":"msg_0006","type":"user","text":"next","time":{"created":18}}],"ses_b":[]},"more":{"ses_a":true,"ses_b":false},"pending":{"ses_a":[{"id":"msg_0006","sessionID":"ses_a","time":{"created":18},"type":"user","delivery":"steer","payload":{"text":"next"}}],"ses_b":[]},"permissions":{"ses_a":[{"id":"per_1","sessionID":"ses_a","action":"bash","resources":[]}]},"forms":{"ses_a":[{"id":"frm_1","sessionID":"ses_a","title":"Ask","fields":[{"key":"x","type":"string"}]}],"global":[]},"projects":{"project":{"id":"project","canonical":"/project","time":{"created":1,"updated":1,"active":1},"sandboxes":[]}},"location":{"info":{"directory":"/project","project":{"id":"project","directory":"/project","canonical":"/project"}},"vcs":{"branch":{"current":"main","default":"main"}},"agent":[],"command":[],"config":[],"integration":[{"id":"openai","name":"OpenAI","methods":[],"connections":[{"type":"credential","id":"crd_1","label":"crd_1","method":"key"},{"type":"credential","id":"crd_2","label":"crd_2","method":"key"}]}],"mcpServer":[],"mcpResource":[],"model":[],"provider":[],"reference":[],"skill":[],"websearch":[],"usageLimits":null,"shell":[{"id":"sh_1","status":"running","command":"ls","cwd":"/project","shell":"bash","file":"/tmp/sh_1","metadata":{"sessionID":"ses_a"},"time":{"started":13},"location":{"directory":"/project"}}]},"requests":[]}}, + {"name":"session.step.started","state":"empty","event":{"id":"evt_9035","created":1035,"type":"session.step.started","durable":{"aggregateID":"x","seq":0,"version":1},"data":{"sessionID":"ses_a","assistantMessageID":"msg_0008","agent":"build","model":{"id":"m","providerID":"p"},"started":30},"location":{"directory":"/project"}},"expected":{"sessions":{},"missing":[],"family":{"ses_a":[],"ses_b":[]},"status":{"ses_a":"idle","ses_b":"idle"},"messages":{"ses_a":[{"id":"msg_0008","type":"assistant","agent":"build","model":{"id":"m","providerID":"p"},"content":[],"time":{"created":30}}],"ses_b":[]},"more":{"ses_a":false,"ses_b":false},"pending":{"ses_a":[],"ses_b":[]},"permissions":{},"forms":{},"projects":{},"location":{"shell":[]},"requests":[]}}, + {"name":"session.step.started","state":"loaded","event":{"id":"evt_9035","created":1035,"type":"session.step.started","durable":{"aggregateID":"x","seq":0,"version":1},"data":{"sessionID":"ses_a","assistantMessageID":"msg_0008","agent":"build","model":{"id":"m","providerID":"p"},"started":30},"location":{"directory":"/project"}},"expected":{"sessions":{"ses_a":{"id":"ses_a","projectID":"project","agent":"build","model":{"providerID":"p","id":"m"},"title":"Title ses_a","cost":0.5,"tokens":{"input":1,"output":1,"reasoning":0,"cache":{"read":0,"write":0}},"time":{"created":1,"updated":2},"location":{"directory":"/project"}}},"missing":[],"family":{"ses_a":["ses_a"],"ses_b":[]},"status":{"ses_a":"idle","ses_b":"idle"},"messages":{"ses_a":[{"id":"msg_0001","type":"user","text":"hello","time":{"created":10}},{"id":"msg_0002","type":"assistant","agent":"build","model":{"providerID":"p","id":"m"},"content":[{"type":"text","text":"done"}],"time":{"created":11,"completed":12}},{"id":"msg_0003","type":"shell","shellID":"sh_1","command":"ls","status":"running","time":{"created":13}},{"id":"msg_0004","type":"compaction","status":"running","reason":"auto","summary":"sum","time":{"created":14}},{"id":"msg_0005","type":"assistant","agent":"build","model":{"providerID":"p","id":"m"},"content":[{"type":"text","text":"hel"},{"type":"reasoning","text":"th","time":{"created":15}},{"type":"tool","id":"call_1","name":"bash","state":{"status":"streaming","input":"{"},"time":{"created":16}},{"type":"tool","id":"call_2","name":"read","state":{"status":"running","input":{"path":"a"},"metadata":{}},"time":{"created":17,"ran":17}}],"time":{"created":15,"completed":1035}},{"id":"msg_0006","type":"user","text":"next","time":{"created":18}},{"id":"msg_0008","type":"assistant","agent":"build","model":{"id":"m","providerID":"p"},"content":[],"time":{"created":30}}],"ses_b":[]},"more":{"ses_a":true,"ses_b":false},"pending":{"ses_a":[{"id":"msg_0006","sessionID":"ses_a","time":{"created":18},"type":"user","delivery":"steer","payload":{"text":"next"}}],"ses_b":[]},"permissions":{"ses_a":[{"id":"per_1","sessionID":"ses_a","action":"bash","resources":[]}]},"forms":{"ses_a":[{"id":"frm_1","sessionID":"ses_a","title":"Ask","fields":[{"key":"x","type":"string"}]}],"global":[]},"projects":{"project":{"id":"project","canonical":"/project","time":{"created":1,"updated":1,"active":1},"sandboxes":[]}},"location":{"info":{"directory":"/project","project":{"id":"project","directory":"/project","canonical":"/project"}},"vcs":{"branch":{"current":"main","default":"main"}},"agent":[],"command":[],"config":[],"integration":[{"id":"openai","name":"OpenAI","methods":[],"connections":[{"type":"credential","id":"crd_1","label":"crd_1","method":"key"},{"type":"credential","id":"crd_2","label":"crd_2","method":"key"}]}],"mcpServer":[],"mcpResource":[],"model":[],"provider":[],"reference":[],"skill":[],"websearch":[],"usageLimits":null,"shell":[{"id":"sh_1","status":"running","command":"ls","cwd":"/project","shell":"bash","file":"/tmp/sh_1","metadata":{"sessionID":"ses_a"},"time":{"started":13},"location":{"directory":"/project"}}]},"requests":[]}}, + {"name":"session.step.first-token","state":"empty","event":{"id":"evt_9036","created":1036,"type":"session.step.first-token","durable":{"aggregateID":"x","seq":0,"version":1},"data":{"sessionID":"ses_a","assistantMessageID":"msg_0005"},"location":{"directory":"/project"}},"expected":{"sessions":{},"missing":[],"family":{"ses_a":[],"ses_b":[]},"status":{"ses_a":"idle","ses_b":"idle"},"messages":{"ses_a":[],"ses_b":[]},"more":{"ses_a":false,"ses_b":false},"pending":{"ses_a":[],"ses_b":[]},"permissions":{},"forms":{},"projects":{},"location":{"shell":[]},"requests":[]}}, + {"name":"session.step.first-token","state":"loaded","event":{"id":"evt_9036","created":1036,"type":"session.step.first-token","durable":{"aggregateID":"x","seq":0,"version":1},"data":{"sessionID":"ses_a","assistantMessageID":"msg_0005"},"location":{"directory":"/project"}},"expected":{"sessions":{"ses_a":{"id":"ses_a","projectID":"project","agent":"build","model":{"providerID":"p","id":"m"},"title":"Title ses_a","cost":0.5,"tokens":{"input":1,"output":1,"reasoning":0,"cache":{"read":0,"write":0}},"time":{"created":1,"updated":2},"location":{"directory":"/project"}}},"missing":[],"family":{"ses_a":["ses_a"],"ses_b":[]},"status":{"ses_a":"idle","ses_b":"idle"},"messages":{"ses_a":[{"id":"msg_0001","type":"user","text":"hello","time":{"created":10}},{"id":"msg_0002","type":"assistant","agent":"build","model":{"providerID":"p","id":"m"},"content":[{"type":"text","text":"done"}],"time":{"created":11,"completed":12}},{"id":"msg_0003","type":"shell","shellID":"sh_1","command":"ls","status":"running","time":{"created":13}},{"id":"msg_0004","type":"compaction","status":"running","reason":"auto","summary":"sum","time":{"created":14}},{"id":"msg_0005","type":"assistant","agent":"build","model":{"providerID":"p","id":"m"},"content":[{"type":"text","text":"hel"},{"type":"reasoning","text":"th","time":{"created":15}},{"type":"tool","id":"call_1","name":"bash","state":{"status":"streaming","input":"{"},"time":{"created":16}},{"type":"tool","id":"call_2","name":"read","state":{"status":"running","input":{"path":"a"},"metadata":{}},"time":{"created":17,"ran":17}}],"time":{"created":15,"firstToken":1036}},{"id":"msg_0006","type":"user","text":"next","time":{"created":18}}],"ses_b":[]},"more":{"ses_a":true,"ses_b":false},"pending":{"ses_a":[{"id":"msg_0006","sessionID":"ses_a","time":{"created":18},"type":"user","delivery":"steer","payload":{"text":"next"}}],"ses_b":[]},"permissions":{"ses_a":[{"id":"per_1","sessionID":"ses_a","action":"bash","resources":[]}]},"forms":{"ses_a":[{"id":"frm_1","sessionID":"ses_a","title":"Ask","fields":[{"key":"x","type":"string"}]}],"global":[]},"projects":{"project":{"id":"project","canonical":"/project","time":{"created":1,"updated":1,"active":1},"sandboxes":[]}},"location":{"info":{"directory":"/project","project":{"id":"project","directory":"/project","canonical":"/project"}},"vcs":{"branch":{"current":"main","default":"main"}},"agent":[],"command":[],"config":[],"integration":[{"id":"openai","name":"OpenAI","methods":[],"connections":[{"type":"credential","id":"crd_1","label":"crd_1","method":"key"},{"type":"credential","id":"crd_2","label":"crd_2","method":"key"}]}],"mcpServer":[],"mcpResource":[],"model":[],"provider":[],"reference":[],"skill":[],"websearch":[],"usageLimits":null,"shell":[{"id":"sh_1","status":"running","command":"ls","cwd":"/project","shell":"bash","file":"/tmp/sh_1","metadata":{"sessionID":"ses_a"},"time":{"started":13},"location":{"directory":"/project"}}]},"requests":[]}}, + {"name":"session.step.streamed","state":"empty","event":{"id":"evt_9037","created":1037,"type":"session.step.streamed","durable":{"aggregateID":"x","seq":0,"version":1},"data":{"sessionID":"ses_a","assistantMessageID":"msg_0005"},"location":{"directory":"/project"}},"expected":{"sessions":{},"missing":[],"family":{"ses_a":[],"ses_b":[]},"status":{"ses_a":"idle","ses_b":"idle"},"messages":{"ses_a":[],"ses_b":[]},"more":{"ses_a":false,"ses_b":false},"pending":{"ses_a":[],"ses_b":[]},"permissions":{},"forms":{},"projects":{},"location":{"shell":[]},"requests":[]}}, + {"name":"session.step.streamed","state":"loaded","event":{"id":"evt_9037","created":1037,"type":"session.step.streamed","durable":{"aggregateID":"x","seq":0,"version":1},"data":{"sessionID":"ses_a","assistantMessageID":"msg_0005"},"location":{"directory":"/project"}},"expected":{"sessions":{"ses_a":{"id":"ses_a","projectID":"project","agent":"build","model":{"providerID":"p","id":"m"},"title":"Title ses_a","cost":0.5,"tokens":{"input":1,"output":1,"reasoning":0,"cache":{"read":0,"write":0}},"time":{"created":1,"updated":2},"location":{"directory":"/project"}}},"missing":[],"family":{"ses_a":["ses_a"],"ses_b":[]},"status":{"ses_a":"idle","ses_b":"idle"},"messages":{"ses_a":[{"id":"msg_0001","type":"user","text":"hello","time":{"created":10}},{"id":"msg_0002","type":"assistant","agent":"build","model":{"providerID":"p","id":"m"},"content":[{"type":"text","text":"done"}],"time":{"created":11,"completed":12}},{"id":"msg_0003","type":"shell","shellID":"sh_1","command":"ls","status":"running","time":{"created":13}},{"id":"msg_0004","type":"compaction","status":"running","reason":"auto","summary":"sum","time":{"created":14}},{"id":"msg_0005","type":"assistant","agent":"build","model":{"providerID":"p","id":"m"},"content":[{"type":"text","text":"hel"},{"type":"reasoning","text":"th","time":{"created":15}},{"type":"tool","id":"call_1","name":"bash","state":{"status":"streaming","input":"{"},"time":{"created":16}},{"type":"tool","id":"call_2","name":"read","state":{"status":"running","input":{"path":"a"},"metadata":{}},"time":{"created":17,"ran":17}}],"time":{"created":15,"streamed":1037}},{"id":"msg_0006","type":"user","text":"next","time":{"created":18}}],"ses_b":[]},"more":{"ses_a":true,"ses_b":false},"pending":{"ses_a":[{"id":"msg_0006","sessionID":"ses_a","time":{"created":18},"type":"user","delivery":"steer","payload":{"text":"next"}}],"ses_b":[]},"permissions":{"ses_a":[{"id":"per_1","sessionID":"ses_a","action":"bash","resources":[]}]},"forms":{"ses_a":[{"id":"frm_1","sessionID":"ses_a","title":"Ask","fields":[{"key":"x","type":"string"}]}],"global":[]},"projects":{"project":{"id":"project","canonical":"/project","time":{"created":1,"updated":1,"active":1},"sandboxes":[]}},"location":{"info":{"directory":"/project","project":{"id":"project","directory":"/project","canonical":"/project"}},"vcs":{"branch":{"current":"main","default":"main"}},"agent":[],"command":[],"config":[],"integration":[{"id":"openai","name":"OpenAI","methods":[],"connections":[{"type":"credential","id":"crd_1","label":"crd_1","method":"key"},{"type":"credential","id":"crd_2","label":"crd_2","method":"key"}]}],"mcpServer":[],"mcpResource":[],"model":[],"provider":[],"reference":[],"skill":[],"websearch":[],"usageLimits":null,"shell":[{"id":"sh_1","status":"running","command":"ls","cwd":"/project","shell":"bash","file":"/tmp/sh_1","metadata":{"sessionID":"ses_a"},"time":{"started":13},"location":{"directory":"/project"}}]},"requests":[]}}, + {"name":"session.step.ended","state":"empty","event":{"id":"evt_9038","created":1038,"type":"session.step.ended","durable":{"aggregateID":"x","seq":0,"version":1},"data":{"sessionID":"ses_a","assistantMessageID":"msg_0005","finish":"stop","cost":1,"tokens":{"input":1,"output":1,"reasoning":0,"cache":{"read":0,"write":0}}},"location":{"directory":"/project"}},"expected":{"sessions":{},"missing":[],"family":{"ses_a":[],"ses_b":[]},"status":{"ses_a":"idle","ses_b":"idle"},"messages":{"ses_a":[],"ses_b":[]},"more":{"ses_a":false,"ses_b":false},"pending":{"ses_a":[],"ses_b":[]},"permissions":{},"forms":{},"projects":{},"location":{"shell":[]},"requests":[]}}, + {"name":"session.step.ended","state":"loaded","event":{"id":"evt_9038","created":1038,"type":"session.step.ended","durable":{"aggregateID":"x","seq":0,"version":1},"data":{"sessionID":"ses_a","assistantMessageID":"msg_0005","finish":"stop","cost":1,"tokens":{"input":1,"output":1,"reasoning":0,"cache":{"read":0,"write":0}}},"location":{"directory":"/project"}},"expected":{"sessions":{"ses_a":{"id":"ses_a","projectID":"project","agent":"build","model":{"providerID":"p","id":"m"},"title":"Title ses_a","cost":0.5,"tokens":{"input":1,"output":1,"reasoning":0,"cache":{"read":0,"write":0}},"time":{"created":1,"updated":2},"location":{"directory":"/project"}}},"missing":[],"family":{"ses_a":["ses_a"],"ses_b":[]},"status":{"ses_a":"idle","ses_b":"idle"},"messages":{"ses_a":[{"id":"msg_0001","type":"user","text":"hello","time":{"created":10}},{"id":"msg_0002","type":"assistant","agent":"build","model":{"providerID":"p","id":"m"},"content":[{"type":"text","text":"done"}],"time":{"created":11,"completed":12}},{"id":"msg_0003","type":"shell","shellID":"sh_1","command":"ls","status":"running","time":{"created":13}},{"id":"msg_0004","type":"compaction","status":"running","reason":"auto","summary":"sum","time":{"created":14}},{"id":"msg_0005","type":"assistant","agent":"build","model":{"providerID":"p","id":"m"},"content":[{"type":"text","text":"hel"},{"type":"reasoning","text":"th","time":{"created":15}},{"type":"tool","id":"call_1","name":"bash","state":{"status":"streaming","input":"{"},"time":{"created":16}},{"type":"tool","id":"call_2","name":"read","state":{"status":"running","input":{"path":"a"},"metadata":{}},"time":{"created":17,"ran":17}}],"time":{"created":15,"completed":1038},"finish":"stop","cost":1,"tokens":{"input":1,"output":1,"reasoning":0,"cache":{"read":0,"write":0}}},{"id":"msg_0006","type":"user","text":"next","time":{"created":18}}],"ses_b":[]},"more":{"ses_a":true,"ses_b":false},"pending":{"ses_a":[{"id":"msg_0006","sessionID":"ses_a","time":{"created":18},"type":"user","delivery":"steer","payload":{"text":"next"}}],"ses_b":[]},"permissions":{"ses_a":[{"id":"per_1","sessionID":"ses_a","action":"bash","resources":[]}]},"forms":{"ses_a":[{"id":"frm_1","sessionID":"ses_a","title":"Ask","fields":[{"key":"x","type":"string"}]}],"global":[]},"projects":{"project":{"id":"project","canonical":"/project","time":{"created":1,"updated":1,"active":1},"sandboxes":[]}},"location":{"info":{"directory":"/project","project":{"id":"project","directory":"/project","canonical":"/project"}},"vcs":{"branch":{"current":"main","default":"main"}},"agent":[],"command":[],"config":[],"integration":[{"id":"openai","name":"OpenAI","methods":[],"connections":[{"type":"credential","id":"crd_1","label":"crd_1","method":"key"},{"type":"credential","id":"crd_2","label":"crd_2","method":"key"}]}],"mcpServer":[],"mcpResource":[],"model":[],"provider":[],"reference":[],"skill":[],"websearch":[],"usageLimits":null,"shell":[{"id":"sh_1","status":"running","command":"ls","cwd":"/project","shell":"bash","file":"/tmp/sh_1","metadata":{"sessionID":"ses_a"},"time":{"started":13},"location":{"directory":"/project"}}]},"requests":[]}}, + {"name":"session.step.failed","state":"empty","event":{"id":"evt_9039","created":1039,"type":"session.step.failed","durable":{"aggregateID":"x","seq":0,"version":1},"data":{"sessionID":"ses_a","assistantMessageID":"msg_0005","error":{"type":"provider.error","message":"boom"}},"location":{"directory":"/project"}},"expected":{"sessions":{},"missing":[],"family":{"ses_a":[],"ses_b":[]},"status":{"ses_a":"idle","ses_b":"idle"},"messages":{"ses_a":[],"ses_b":[]},"more":{"ses_a":false,"ses_b":false},"pending":{"ses_a":[],"ses_b":[]},"permissions":{},"forms":{},"projects":{},"location":{"shell":[]},"requests":[]}}, + {"name":"session.step.failed","state":"loaded","event":{"id":"evt_9039","created":1039,"type":"session.step.failed","durable":{"aggregateID":"x","seq":0,"version":1},"data":{"sessionID":"ses_a","assistantMessageID":"msg_0005","error":{"type":"provider.error","message":"boom"}},"location":{"directory":"/project"}},"expected":{"sessions":{"ses_a":{"id":"ses_a","projectID":"project","agent":"build","model":{"providerID":"p","id":"m"},"title":"Title ses_a","cost":0.5,"tokens":{"input":1,"output":1,"reasoning":0,"cache":{"read":0,"write":0}},"time":{"created":1,"updated":2},"location":{"directory":"/project"}}},"missing":[],"family":{"ses_a":["ses_a"],"ses_b":[]},"status":{"ses_a":"idle","ses_b":"idle"},"messages":{"ses_a":[{"id":"msg_0001","type":"user","text":"hello","time":{"created":10}},{"id":"msg_0002","type":"assistant","agent":"build","model":{"providerID":"p","id":"m"},"content":[{"type":"text","text":"done"}],"time":{"created":11,"completed":12}},{"id":"msg_0003","type":"shell","shellID":"sh_1","command":"ls","status":"running","time":{"created":13}},{"id":"msg_0004","type":"compaction","status":"running","reason":"auto","summary":"sum","time":{"created":14}},{"id":"msg_0005","type":"assistant","agent":"build","model":{"providerID":"p","id":"m"},"content":[{"type":"text","text":"hel"},{"type":"reasoning","text":"th","time":{"created":15}},{"type":"tool","id":"call_1","name":"bash","state":{"status":"streaming","input":"{"},"time":{"created":16}},{"type":"tool","id":"call_2","name":"read","state":{"status":"running","input":{"path":"a"},"metadata":{}},"time":{"created":17,"ran":17}}],"time":{"created":15,"completed":1039},"finish":"error","error":{"type":"provider.error","message":"boom"}},{"id":"msg_0006","type":"user","text":"next","time":{"created":18}}],"ses_b":[]},"more":{"ses_a":true,"ses_b":false},"pending":{"ses_a":[{"id":"msg_0006","sessionID":"ses_a","time":{"created":18},"type":"user","delivery":"steer","payload":{"text":"next"}}],"ses_b":[]},"permissions":{"ses_a":[{"id":"per_1","sessionID":"ses_a","action":"bash","resources":[]}]},"forms":{"ses_a":[{"id":"frm_1","sessionID":"ses_a","title":"Ask","fields":[{"key":"x","type":"string"}]}],"global":[]},"projects":{"project":{"id":"project","canonical":"/project","time":{"created":1,"updated":1,"active":1},"sandboxes":[]}},"location":{"info":{"directory":"/project","project":{"id":"project","directory":"/project","canonical":"/project"}},"vcs":{"branch":{"current":"main","default":"main"}},"agent":[],"command":[],"config":[],"integration":[{"id":"openai","name":"OpenAI","methods":[],"connections":[{"type":"credential","id":"crd_1","label":"crd_1","method":"key"},{"type":"credential","id":"crd_2","label":"crd_2","method":"key"}]}],"mcpServer":[],"mcpResource":[],"model":[],"provider":[],"reference":[],"skill":[],"websearch":[],"usageLimits":null,"shell":[{"id":"sh_1","status":"running","command":"ls","cwd":"/project","shell":"bash","file":"/tmp/sh_1","metadata":{"sessionID":"ses_a"},"time":{"started":13},"location":{"directory":"/project"}}]},"requests":[]}}, + {"name":"session.text.started","state":"empty","event":{"id":"evt_9040","created":1040,"type":"session.text.started","durable":{"aggregateID":"x","seq":0,"version":1},"data":{"sessionID":"ses_a","assistantMessageID":"msg_0005","ordinal":0},"location":{"directory":"/project"}},"expected":{"sessions":{},"missing":[],"family":{"ses_a":[],"ses_b":[]},"status":{"ses_a":"idle","ses_b":"idle"},"messages":{"ses_a":[],"ses_b":[]},"more":{"ses_a":false,"ses_b":false},"pending":{"ses_a":[],"ses_b":[]},"permissions":{},"forms":{},"projects":{},"location":{"shell":[]},"requests":[]}}, + {"name":"session.text.started","state":"loaded","event":{"id":"evt_9040","created":1040,"type":"session.text.started","durable":{"aggregateID":"x","seq":0,"version":1},"data":{"sessionID":"ses_a","assistantMessageID":"msg_0005","ordinal":0},"location":{"directory":"/project"}},"expected":{"sessions":{"ses_a":{"id":"ses_a","projectID":"project","agent":"build","model":{"providerID":"p","id":"m"},"title":"Title ses_a","cost":0.5,"tokens":{"input":1,"output":1,"reasoning":0,"cache":{"read":0,"write":0}},"time":{"created":1,"updated":2},"location":{"directory":"/project"}}},"missing":[],"family":{"ses_a":["ses_a"],"ses_b":[]},"status":{"ses_a":"idle","ses_b":"idle"},"messages":{"ses_a":[{"id":"msg_0001","type":"user","text":"hello","time":{"created":10}},{"id":"msg_0002","type":"assistant","agent":"build","model":{"providerID":"p","id":"m"},"content":[{"type":"text","text":"done"}],"time":{"created":11,"completed":12}},{"id":"msg_0003","type":"shell","shellID":"sh_1","command":"ls","status":"running","time":{"created":13}},{"id":"msg_0004","type":"compaction","status":"running","reason":"auto","summary":"sum","time":{"created":14}},{"id":"msg_0005","type":"assistant","agent":"build","model":{"providerID":"p","id":"m"},"content":[{"type":"text","text":"hel"},{"type":"reasoning","text":"th","time":{"created":15}},{"type":"tool","id":"call_1","name":"bash","state":{"status":"streaming","input":"{"},"time":{"created":16}},{"type":"tool","id":"call_2","name":"read","state":{"status":"running","input":{"path":"a"},"metadata":{}},"time":{"created":17,"ran":17}},{"type":"text","text":""}],"time":{"created":15}},{"id":"msg_0006","type":"user","text":"next","time":{"created":18}}],"ses_b":[]},"more":{"ses_a":true,"ses_b":false},"pending":{"ses_a":[{"id":"msg_0006","sessionID":"ses_a","time":{"created":18},"type":"user","delivery":"steer","payload":{"text":"next"}}],"ses_b":[]},"permissions":{"ses_a":[{"id":"per_1","sessionID":"ses_a","action":"bash","resources":[]}]},"forms":{"ses_a":[{"id":"frm_1","sessionID":"ses_a","title":"Ask","fields":[{"key":"x","type":"string"}]}],"global":[]},"projects":{"project":{"id":"project","canonical":"/project","time":{"created":1,"updated":1,"active":1},"sandboxes":[]}},"location":{"info":{"directory":"/project","project":{"id":"project","directory":"/project","canonical":"/project"}},"vcs":{"branch":{"current":"main","default":"main"}},"agent":[],"command":[],"config":[],"integration":[{"id":"openai","name":"OpenAI","methods":[],"connections":[{"type":"credential","id":"crd_1","label":"crd_1","method":"key"},{"type":"credential","id":"crd_2","label":"crd_2","method":"key"}]}],"mcpServer":[],"mcpResource":[],"model":[],"provider":[],"reference":[],"skill":[],"websearch":[],"usageLimits":null,"shell":[{"id":"sh_1","status":"running","command":"ls","cwd":"/project","shell":"bash","file":"/tmp/sh_1","metadata":{"sessionID":"ses_a"},"time":{"started":13},"location":{"directory":"/project"}}]},"requests":[]}}, + {"name":"session.text.delta","state":"empty","event":{"id":"evt_9041","created":1041,"type":"session.text.delta","data":{"sessionID":"ses_a","assistantMessageID":"msg_0005","ordinal":0,"delta":"lo"},"location":{"directory":"/project"}},"expected":{"sessions":{},"missing":[],"family":{"ses_a":[],"ses_b":[]},"status":{"ses_a":"idle","ses_b":"idle"},"messages":{"ses_a":[],"ses_b":[]},"more":{"ses_a":false,"ses_b":false},"pending":{"ses_a":[],"ses_b":[]},"permissions":{},"forms":{},"projects":{},"location":{"shell":[]},"requests":[]}}, + {"name":"session.text.delta","state":"loaded","event":{"id":"evt_9041","created":1041,"type":"session.text.delta","data":{"sessionID":"ses_a","assistantMessageID":"msg_0005","ordinal":0,"delta":"lo"},"location":{"directory":"/project"}},"expected":{"sessions":{"ses_a":{"id":"ses_a","projectID":"project","agent":"build","model":{"providerID":"p","id":"m"},"title":"Title ses_a","cost":0.5,"tokens":{"input":1,"output":1,"reasoning":0,"cache":{"read":0,"write":0}},"time":{"created":1,"updated":2},"location":{"directory":"/project"}}},"missing":[],"family":{"ses_a":["ses_a"],"ses_b":[]},"status":{"ses_a":"idle","ses_b":"idle"},"messages":{"ses_a":[{"id":"msg_0001","type":"user","text":"hello","time":{"created":10}},{"id":"msg_0002","type":"assistant","agent":"build","model":{"providerID":"p","id":"m"},"content":[{"type":"text","text":"done"}],"time":{"created":11,"completed":12}},{"id":"msg_0003","type":"shell","shellID":"sh_1","command":"ls","status":"running","time":{"created":13}},{"id":"msg_0004","type":"compaction","status":"running","reason":"auto","summary":"sum","time":{"created":14}},{"id":"msg_0005","type":"assistant","agent":"build","model":{"providerID":"p","id":"m"},"content":[{"type":"text","text":"hello"},{"type":"reasoning","text":"th","time":{"created":15}},{"type":"tool","id":"call_1","name":"bash","state":{"status":"streaming","input":"{"},"time":{"created":16}},{"type":"tool","id":"call_2","name":"read","state":{"status":"running","input":{"path":"a"},"metadata":{}},"time":{"created":17,"ran":17}}],"time":{"created":15}},{"id":"msg_0006","type":"user","text":"next","time":{"created":18}}],"ses_b":[]},"more":{"ses_a":true,"ses_b":false},"pending":{"ses_a":[{"id":"msg_0006","sessionID":"ses_a","time":{"created":18},"type":"user","delivery":"steer","payload":{"text":"next"}}],"ses_b":[]},"permissions":{"ses_a":[{"id":"per_1","sessionID":"ses_a","action":"bash","resources":[]}]},"forms":{"ses_a":[{"id":"frm_1","sessionID":"ses_a","title":"Ask","fields":[{"key":"x","type":"string"}]}],"global":[]},"projects":{"project":{"id":"project","canonical":"/project","time":{"created":1,"updated":1,"active":1},"sandboxes":[]}},"location":{"info":{"directory":"/project","project":{"id":"project","directory":"/project","canonical":"/project"}},"vcs":{"branch":{"current":"main","default":"main"}},"agent":[],"command":[],"config":[],"integration":[{"id":"openai","name":"OpenAI","methods":[],"connections":[{"type":"credential","id":"crd_1","label":"crd_1","method":"key"},{"type":"credential","id":"crd_2","label":"crd_2","method":"key"}]}],"mcpServer":[],"mcpResource":[],"model":[],"provider":[],"reference":[],"skill":[],"websearch":[],"usageLimits":null,"shell":[{"id":"sh_1","status":"running","command":"ls","cwd":"/project","shell":"bash","file":"/tmp/sh_1","metadata":{"sessionID":"ses_a"},"time":{"started":13},"location":{"directory":"/project"}}]},"requests":[]}}, + {"name":"session.text.ended","state":"empty","event":{"id":"evt_9042","created":1042,"type":"session.text.ended","durable":{"aggregateID":"x","seq":0,"version":1},"data":{"sessionID":"ses_a","assistantMessageID":"msg_0005","ordinal":0,"text":"hello"},"location":{"directory":"/project"}},"expected":{"sessions":{},"missing":[],"family":{"ses_a":[],"ses_b":[]},"status":{"ses_a":"idle","ses_b":"idle"},"messages":{"ses_a":[],"ses_b":[]},"more":{"ses_a":false,"ses_b":false},"pending":{"ses_a":[],"ses_b":[]},"permissions":{},"forms":{},"projects":{},"location":{"shell":[]},"requests":[]}}, + {"name":"session.text.ended","state":"loaded","event":{"id":"evt_9042","created":1042,"type":"session.text.ended","durable":{"aggregateID":"x","seq":0,"version":1},"data":{"sessionID":"ses_a","assistantMessageID":"msg_0005","ordinal":0,"text":"hello"},"location":{"directory":"/project"}},"expected":{"sessions":{"ses_a":{"id":"ses_a","projectID":"project","agent":"build","model":{"providerID":"p","id":"m"},"title":"Title ses_a","cost":0.5,"tokens":{"input":1,"output":1,"reasoning":0,"cache":{"read":0,"write":0}},"time":{"created":1,"updated":2},"location":{"directory":"/project"}}},"missing":[],"family":{"ses_a":["ses_a"],"ses_b":[]},"status":{"ses_a":"idle","ses_b":"idle"},"messages":{"ses_a":[{"id":"msg_0001","type":"user","text":"hello","time":{"created":10}},{"id":"msg_0002","type":"assistant","agent":"build","model":{"providerID":"p","id":"m"},"content":[{"type":"text","text":"done"}],"time":{"created":11,"completed":12}},{"id":"msg_0003","type":"shell","shellID":"sh_1","command":"ls","status":"running","time":{"created":13}},{"id":"msg_0004","type":"compaction","status":"running","reason":"auto","summary":"sum","time":{"created":14}},{"id":"msg_0005","type":"assistant","agent":"build","model":{"providerID":"p","id":"m"},"content":[{"type":"text","text":"hello"},{"type":"reasoning","text":"th","time":{"created":15}},{"type":"tool","id":"call_1","name":"bash","state":{"status":"streaming","input":"{"},"time":{"created":16}},{"type":"tool","id":"call_2","name":"read","state":{"status":"running","input":{"path":"a"},"metadata":{}},"time":{"created":17,"ran":17}}],"time":{"created":15}},{"id":"msg_0006","type":"user","text":"next","time":{"created":18}}],"ses_b":[]},"more":{"ses_a":true,"ses_b":false},"pending":{"ses_a":[{"id":"msg_0006","sessionID":"ses_a","time":{"created":18},"type":"user","delivery":"steer","payload":{"text":"next"}}],"ses_b":[]},"permissions":{"ses_a":[{"id":"per_1","sessionID":"ses_a","action":"bash","resources":[]}]},"forms":{"ses_a":[{"id":"frm_1","sessionID":"ses_a","title":"Ask","fields":[{"key":"x","type":"string"}]}],"global":[]},"projects":{"project":{"id":"project","canonical":"/project","time":{"created":1,"updated":1,"active":1},"sandboxes":[]}},"location":{"info":{"directory":"/project","project":{"id":"project","directory":"/project","canonical":"/project"}},"vcs":{"branch":{"current":"main","default":"main"}},"agent":[],"command":[],"config":[],"integration":[{"id":"openai","name":"OpenAI","methods":[],"connections":[{"type":"credential","id":"crd_1","label":"crd_1","method":"key"},{"type":"credential","id":"crd_2","label":"crd_2","method":"key"}]}],"mcpServer":[],"mcpResource":[],"model":[],"provider":[],"reference":[],"skill":[],"websearch":[],"usageLimits":null,"shell":[{"id":"sh_1","status":"running","command":"ls","cwd":"/project","shell":"bash","file":"/tmp/sh_1","metadata":{"sessionID":"ses_a"},"time":{"started":13},"location":{"directory":"/project"}}]},"requests":[]}}, + {"name":"session.reasoning.started","state":"empty","event":{"id":"evt_9043","created":1043,"type":"session.reasoning.started","durable":{"aggregateID":"x","seq":0,"version":1},"data":{"sessionID":"ses_a","assistantMessageID":"msg_0005","ordinal":0},"location":{"directory":"/project"}},"expected":{"sessions":{},"missing":[],"family":{"ses_a":[],"ses_b":[]},"status":{"ses_a":"idle","ses_b":"idle"},"messages":{"ses_a":[],"ses_b":[]},"more":{"ses_a":false,"ses_b":false},"pending":{"ses_a":[],"ses_b":[]},"permissions":{},"forms":{},"projects":{},"location":{"shell":[]},"requests":[]}}, + {"name":"session.reasoning.started","state":"loaded","event":{"id":"evt_9043","created":1043,"type":"session.reasoning.started","durable":{"aggregateID":"x","seq":0,"version":1},"data":{"sessionID":"ses_a","assistantMessageID":"msg_0005","ordinal":0},"location":{"directory":"/project"}},"expected":{"sessions":{"ses_a":{"id":"ses_a","projectID":"project","agent":"build","model":{"providerID":"p","id":"m"},"title":"Title ses_a","cost":0.5,"tokens":{"input":1,"output":1,"reasoning":0,"cache":{"read":0,"write":0}},"time":{"created":1,"updated":2},"location":{"directory":"/project"}}},"missing":[],"family":{"ses_a":["ses_a"],"ses_b":[]},"status":{"ses_a":"idle","ses_b":"idle"},"messages":{"ses_a":[{"id":"msg_0001","type":"user","text":"hello","time":{"created":10}},{"id":"msg_0002","type":"assistant","agent":"build","model":{"providerID":"p","id":"m"},"content":[{"type":"text","text":"done"}],"time":{"created":11,"completed":12}},{"id":"msg_0003","type":"shell","shellID":"sh_1","command":"ls","status":"running","time":{"created":13}},{"id":"msg_0004","type":"compaction","status":"running","reason":"auto","summary":"sum","time":{"created":14}},{"id":"msg_0005","type":"assistant","agent":"build","model":{"providerID":"p","id":"m"},"content":[{"type":"text","text":"hel"},{"type":"reasoning","text":"th","time":{"created":15}},{"type":"tool","id":"call_1","name":"bash","state":{"status":"streaming","input":"{"},"time":{"created":16}},{"type":"tool","id":"call_2","name":"read","state":{"status":"running","input":{"path":"a"},"metadata":{}},"time":{"created":17,"ran":17}},{"type":"reasoning","text":"","time":{"created":1043}}],"time":{"created":15}},{"id":"msg_0006","type":"user","text":"next","time":{"created":18}}],"ses_b":[]},"more":{"ses_a":true,"ses_b":false},"pending":{"ses_a":[{"id":"msg_0006","sessionID":"ses_a","time":{"created":18},"type":"user","delivery":"steer","payload":{"text":"next"}}],"ses_b":[]},"permissions":{"ses_a":[{"id":"per_1","sessionID":"ses_a","action":"bash","resources":[]}]},"forms":{"ses_a":[{"id":"frm_1","sessionID":"ses_a","title":"Ask","fields":[{"key":"x","type":"string"}]}],"global":[]},"projects":{"project":{"id":"project","canonical":"/project","time":{"created":1,"updated":1,"active":1},"sandboxes":[]}},"location":{"info":{"directory":"/project","project":{"id":"project","directory":"/project","canonical":"/project"}},"vcs":{"branch":{"current":"main","default":"main"}},"agent":[],"command":[],"config":[],"integration":[{"id":"openai","name":"OpenAI","methods":[],"connections":[{"type":"credential","id":"crd_1","label":"crd_1","method":"key"},{"type":"credential","id":"crd_2","label":"crd_2","method":"key"}]}],"mcpServer":[],"mcpResource":[],"model":[],"provider":[],"reference":[],"skill":[],"websearch":[],"usageLimits":null,"shell":[{"id":"sh_1","status":"running","command":"ls","cwd":"/project","shell":"bash","file":"/tmp/sh_1","metadata":{"sessionID":"ses_a"},"time":{"started":13},"location":{"directory":"/project"}}]},"requests":[]}}, + {"name":"session.reasoning.delta","state":"empty","event":{"id":"evt_9044","created":1044,"type":"session.reasoning.delta","data":{"sessionID":"ses_a","assistantMessageID":"msg_0005","ordinal":0,"delta":"ink"},"location":{"directory":"/project"}},"expected":{"sessions":{},"missing":[],"family":{"ses_a":[],"ses_b":[]},"status":{"ses_a":"idle","ses_b":"idle"},"messages":{"ses_a":[],"ses_b":[]},"more":{"ses_a":false,"ses_b":false},"pending":{"ses_a":[],"ses_b":[]},"permissions":{},"forms":{},"projects":{},"location":{"shell":[]},"requests":[]}}, + {"name":"session.reasoning.delta","state":"loaded","event":{"id":"evt_9044","created":1044,"type":"session.reasoning.delta","data":{"sessionID":"ses_a","assistantMessageID":"msg_0005","ordinal":0,"delta":"ink"},"location":{"directory":"/project"}},"expected":{"sessions":{"ses_a":{"id":"ses_a","projectID":"project","agent":"build","model":{"providerID":"p","id":"m"},"title":"Title ses_a","cost":0.5,"tokens":{"input":1,"output":1,"reasoning":0,"cache":{"read":0,"write":0}},"time":{"created":1,"updated":2},"location":{"directory":"/project"}}},"missing":[],"family":{"ses_a":["ses_a"],"ses_b":[]},"status":{"ses_a":"idle","ses_b":"idle"},"messages":{"ses_a":[{"id":"msg_0001","type":"user","text":"hello","time":{"created":10}},{"id":"msg_0002","type":"assistant","agent":"build","model":{"providerID":"p","id":"m"},"content":[{"type":"text","text":"done"}],"time":{"created":11,"completed":12}},{"id":"msg_0003","type":"shell","shellID":"sh_1","command":"ls","status":"running","time":{"created":13}},{"id":"msg_0004","type":"compaction","status":"running","reason":"auto","summary":"sum","time":{"created":14}},{"id":"msg_0005","type":"assistant","agent":"build","model":{"providerID":"p","id":"m"},"content":[{"type":"text","text":"hel"},{"type":"reasoning","text":"think","time":{"created":15}},{"type":"tool","id":"call_1","name":"bash","state":{"status":"streaming","input":"{"},"time":{"created":16}},{"type":"tool","id":"call_2","name":"read","state":{"status":"running","input":{"path":"a"},"metadata":{}},"time":{"created":17,"ran":17}}],"time":{"created":15}},{"id":"msg_0006","type":"user","text":"next","time":{"created":18}}],"ses_b":[]},"more":{"ses_a":true,"ses_b":false},"pending":{"ses_a":[{"id":"msg_0006","sessionID":"ses_a","time":{"created":18},"type":"user","delivery":"steer","payload":{"text":"next"}}],"ses_b":[]},"permissions":{"ses_a":[{"id":"per_1","sessionID":"ses_a","action":"bash","resources":[]}]},"forms":{"ses_a":[{"id":"frm_1","sessionID":"ses_a","title":"Ask","fields":[{"key":"x","type":"string"}]}],"global":[]},"projects":{"project":{"id":"project","canonical":"/project","time":{"created":1,"updated":1,"active":1},"sandboxes":[]}},"location":{"info":{"directory":"/project","project":{"id":"project","directory":"/project","canonical":"/project"}},"vcs":{"branch":{"current":"main","default":"main"}},"agent":[],"command":[],"config":[],"integration":[{"id":"openai","name":"OpenAI","methods":[],"connections":[{"type":"credential","id":"crd_1","label":"crd_1","method":"key"},{"type":"credential","id":"crd_2","label":"crd_2","method":"key"}]}],"mcpServer":[],"mcpResource":[],"model":[],"provider":[],"reference":[],"skill":[],"websearch":[],"usageLimits":null,"shell":[{"id":"sh_1","status":"running","command":"ls","cwd":"/project","shell":"bash","file":"/tmp/sh_1","metadata":{"sessionID":"ses_a"},"time":{"started":13},"location":{"directory":"/project"}}]},"requests":[]}}, + {"name":"session.reasoning.ended","state":"empty","event":{"id":"evt_9045","created":1045,"type":"session.reasoning.ended","durable":{"aggregateID":"x","seq":0,"version":1},"data":{"sessionID":"ses_a","assistantMessageID":"msg_0005","ordinal":0,"text":"think"},"location":{"directory":"/project"}},"expected":{"sessions":{},"missing":[],"family":{"ses_a":[],"ses_b":[]},"status":{"ses_a":"idle","ses_b":"idle"},"messages":{"ses_a":[],"ses_b":[]},"more":{"ses_a":false,"ses_b":false},"pending":{"ses_a":[],"ses_b":[]},"permissions":{},"forms":{},"projects":{},"location":{"shell":[]},"requests":[]}}, + {"name":"session.reasoning.ended","state":"loaded","event":{"id":"evt_9045","created":1045,"type":"session.reasoning.ended","durable":{"aggregateID":"x","seq":0,"version":1},"data":{"sessionID":"ses_a","assistantMessageID":"msg_0005","ordinal":0,"text":"think"},"location":{"directory":"/project"}},"expected":{"sessions":{"ses_a":{"id":"ses_a","projectID":"project","agent":"build","model":{"providerID":"p","id":"m"},"title":"Title ses_a","cost":0.5,"tokens":{"input":1,"output":1,"reasoning":0,"cache":{"read":0,"write":0}},"time":{"created":1,"updated":2},"location":{"directory":"/project"}}},"missing":[],"family":{"ses_a":["ses_a"],"ses_b":[]},"status":{"ses_a":"idle","ses_b":"idle"},"messages":{"ses_a":[{"id":"msg_0001","type":"user","text":"hello","time":{"created":10}},{"id":"msg_0002","type":"assistant","agent":"build","model":{"providerID":"p","id":"m"},"content":[{"type":"text","text":"done"}],"time":{"created":11,"completed":12}},{"id":"msg_0003","type":"shell","shellID":"sh_1","command":"ls","status":"running","time":{"created":13}},{"id":"msg_0004","type":"compaction","status":"running","reason":"auto","summary":"sum","time":{"created":14}},{"id":"msg_0005","type":"assistant","agent":"build","model":{"providerID":"p","id":"m"},"content":[{"type":"text","text":"hel"},{"type":"reasoning","text":"think","time":{"created":15,"completed":1045}},{"type":"tool","id":"call_1","name":"bash","state":{"status":"streaming","input":"{"},"time":{"created":16}},{"type":"tool","id":"call_2","name":"read","state":{"status":"running","input":{"path":"a"},"metadata":{}},"time":{"created":17,"ran":17}}],"time":{"created":15}},{"id":"msg_0006","type":"user","text":"next","time":{"created":18}}],"ses_b":[]},"more":{"ses_a":true,"ses_b":false},"pending":{"ses_a":[{"id":"msg_0006","sessionID":"ses_a","time":{"created":18},"type":"user","delivery":"steer","payload":{"text":"next"}}],"ses_b":[]},"permissions":{"ses_a":[{"id":"per_1","sessionID":"ses_a","action":"bash","resources":[]}]},"forms":{"ses_a":[{"id":"frm_1","sessionID":"ses_a","title":"Ask","fields":[{"key":"x","type":"string"}]}],"global":[]},"projects":{"project":{"id":"project","canonical":"/project","time":{"created":1,"updated":1,"active":1},"sandboxes":[]}},"location":{"info":{"directory":"/project","project":{"id":"project","directory":"/project","canonical":"/project"}},"vcs":{"branch":{"current":"main","default":"main"}},"agent":[],"command":[],"config":[],"integration":[{"id":"openai","name":"OpenAI","methods":[],"connections":[{"type":"credential","id":"crd_1","label":"crd_1","method":"key"},{"type":"credential","id":"crd_2","label":"crd_2","method":"key"}]}],"mcpServer":[],"mcpResource":[],"model":[],"provider":[],"reference":[],"skill":[],"websearch":[],"usageLimits":null,"shell":[{"id":"sh_1","status":"running","command":"ls","cwd":"/project","shell":"bash","file":"/tmp/sh_1","metadata":{"sessionID":"ses_a"},"time":{"started":13},"location":{"directory":"/project"}}]},"requests":[]}}, + {"name":"session.tool.input.started","state":"empty","event":{"id":"evt_9046","created":1046,"type":"session.tool.input.started","durable":{"aggregateID":"x","seq":0,"version":1},"data":{"sessionID":"ses_a","assistantMessageID":"msg_0005","id":"call_3","name":"edit"},"location":{"directory":"/project"}},"expected":{"sessions":{},"missing":[],"family":{"ses_a":[],"ses_b":[]},"status":{"ses_a":"idle","ses_b":"idle"},"messages":{"ses_a":[],"ses_b":[]},"more":{"ses_a":false,"ses_b":false},"pending":{"ses_a":[],"ses_b":[]},"permissions":{},"forms":{},"projects":{},"location":{"shell":[]},"requests":[]}}, + {"name":"session.tool.input.started","state":"loaded","event":{"id":"evt_9046","created":1046,"type":"session.tool.input.started","durable":{"aggregateID":"x","seq":0,"version":1},"data":{"sessionID":"ses_a","assistantMessageID":"msg_0005","id":"call_3","name":"edit"},"location":{"directory":"/project"}},"expected":{"sessions":{"ses_a":{"id":"ses_a","projectID":"project","agent":"build","model":{"providerID":"p","id":"m"},"title":"Title ses_a","cost":0.5,"tokens":{"input":1,"output":1,"reasoning":0,"cache":{"read":0,"write":0}},"time":{"created":1,"updated":2},"location":{"directory":"/project"}}},"missing":[],"family":{"ses_a":["ses_a"],"ses_b":[]},"status":{"ses_a":"idle","ses_b":"idle"},"messages":{"ses_a":[{"id":"msg_0001","type":"user","text":"hello","time":{"created":10}},{"id":"msg_0002","type":"assistant","agent":"build","model":{"providerID":"p","id":"m"},"content":[{"type":"text","text":"done"}],"time":{"created":11,"completed":12}},{"id":"msg_0003","type":"shell","shellID":"sh_1","command":"ls","status":"running","time":{"created":13}},{"id":"msg_0004","type":"compaction","status":"running","reason":"auto","summary":"sum","time":{"created":14}},{"id":"msg_0005","type":"assistant","agent":"build","model":{"providerID":"p","id":"m"},"content":[{"type":"text","text":"hel"},{"type":"reasoning","text":"th","time":{"created":15}},{"type":"tool","id":"call_1","name":"bash","state":{"status":"streaming","input":"{"},"time":{"created":16}},{"type":"tool","id":"call_2","name":"read","state":{"status":"running","input":{"path":"a"},"metadata":{}},"time":{"created":17,"ran":17}},{"type":"tool","id":"call_3","name":"edit","time":{"created":1046},"state":{"status":"streaming","input":""}}],"time":{"created":15}},{"id":"msg_0006","type":"user","text":"next","time":{"created":18}}],"ses_b":[]},"more":{"ses_a":true,"ses_b":false},"pending":{"ses_a":[{"id":"msg_0006","sessionID":"ses_a","time":{"created":18},"type":"user","delivery":"steer","payload":{"text":"next"}}],"ses_b":[]},"permissions":{"ses_a":[{"id":"per_1","sessionID":"ses_a","action":"bash","resources":[]}]},"forms":{"ses_a":[{"id":"frm_1","sessionID":"ses_a","title":"Ask","fields":[{"key":"x","type":"string"}]}],"global":[]},"projects":{"project":{"id":"project","canonical":"/project","time":{"created":1,"updated":1,"active":1},"sandboxes":[]}},"location":{"info":{"directory":"/project","project":{"id":"project","directory":"/project","canonical":"/project"}},"vcs":{"branch":{"current":"main","default":"main"}},"agent":[],"command":[],"config":[],"integration":[{"id":"openai","name":"OpenAI","methods":[],"connections":[{"type":"credential","id":"crd_1","label":"crd_1","method":"key"},{"type":"credential","id":"crd_2","label":"crd_2","method":"key"}]}],"mcpServer":[],"mcpResource":[],"model":[],"provider":[],"reference":[],"skill":[],"websearch":[],"usageLimits":null,"shell":[{"id":"sh_1","status":"running","command":"ls","cwd":"/project","shell":"bash","file":"/tmp/sh_1","metadata":{"sessionID":"ses_a"},"time":{"started":13},"location":{"directory":"/project"}}]},"requests":[]}}, + {"name":"session.tool.input.delta","state":"empty","event":{"id":"evt_9047","created":1047,"type":"session.tool.input.delta","data":{"sessionID":"ses_a","assistantMessageID":"msg_0005","id":"call_1","delta":"}"},"location":{"directory":"/project"}},"expected":{"sessions":{},"missing":[],"family":{"ses_a":[],"ses_b":[]},"status":{"ses_a":"idle","ses_b":"idle"},"messages":{"ses_a":[],"ses_b":[]},"more":{"ses_a":false,"ses_b":false},"pending":{"ses_a":[],"ses_b":[]},"permissions":{},"forms":{},"projects":{},"location":{"shell":[]},"requests":[]}}, + {"name":"session.tool.input.delta","state":"loaded","event":{"id":"evt_9047","created":1047,"type":"session.tool.input.delta","data":{"sessionID":"ses_a","assistantMessageID":"msg_0005","id":"call_1","delta":"}"},"location":{"directory":"/project"}},"expected":{"sessions":{"ses_a":{"id":"ses_a","projectID":"project","agent":"build","model":{"providerID":"p","id":"m"},"title":"Title ses_a","cost":0.5,"tokens":{"input":1,"output":1,"reasoning":0,"cache":{"read":0,"write":0}},"time":{"created":1,"updated":2},"location":{"directory":"/project"}}},"missing":[],"family":{"ses_a":["ses_a"],"ses_b":[]},"status":{"ses_a":"idle","ses_b":"idle"},"messages":{"ses_a":[{"id":"msg_0001","type":"user","text":"hello","time":{"created":10}},{"id":"msg_0002","type":"assistant","agent":"build","model":{"providerID":"p","id":"m"},"content":[{"type":"text","text":"done"}],"time":{"created":11,"completed":12}},{"id":"msg_0003","type":"shell","shellID":"sh_1","command":"ls","status":"running","time":{"created":13}},{"id":"msg_0004","type":"compaction","status":"running","reason":"auto","summary":"sum","time":{"created":14}},{"id":"msg_0005","type":"assistant","agent":"build","model":{"providerID":"p","id":"m"},"content":[{"type":"text","text":"hel"},{"type":"reasoning","text":"th","time":{"created":15}},{"type":"tool","id":"call_1","name":"bash","state":{"status":"streaming","input":"{}"},"time":{"created":16}},{"type":"tool","id":"call_2","name":"read","state":{"status":"running","input":{"path":"a"},"metadata":{}},"time":{"created":17,"ran":17}}],"time":{"created":15}},{"id":"msg_0006","type":"user","text":"next","time":{"created":18}}],"ses_b":[]},"more":{"ses_a":true,"ses_b":false},"pending":{"ses_a":[{"id":"msg_0006","sessionID":"ses_a","time":{"created":18},"type":"user","delivery":"steer","payload":{"text":"next"}}],"ses_b":[]},"permissions":{"ses_a":[{"id":"per_1","sessionID":"ses_a","action":"bash","resources":[]}]},"forms":{"ses_a":[{"id":"frm_1","sessionID":"ses_a","title":"Ask","fields":[{"key":"x","type":"string"}]}],"global":[]},"projects":{"project":{"id":"project","canonical":"/project","time":{"created":1,"updated":1,"active":1},"sandboxes":[]}},"location":{"info":{"directory":"/project","project":{"id":"project","directory":"/project","canonical":"/project"}},"vcs":{"branch":{"current":"main","default":"main"}},"agent":[],"command":[],"config":[],"integration":[{"id":"openai","name":"OpenAI","methods":[],"connections":[{"type":"credential","id":"crd_1","label":"crd_1","method":"key"},{"type":"credential","id":"crd_2","label":"crd_2","method":"key"}]}],"mcpServer":[],"mcpResource":[],"model":[],"provider":[],"reference":[],"skill":[],"websearch":[],"usageLimits":null,"shell":[{"id":"sh_1","status":"running","command":"ls","cwd":"/project","shell":"bash","file":"/tmp/sh_1","metadata":{"sessionID":"ses_a"},"time":{"started":13},"location":{"directory":"/project"}}]},"requests":[]}}, + {"name":"session.tool.input.ended","state":"empty","event":{"id":"evt_9048","created":1048,"type":"session.tool.input.ended","durable":{"aggregateID":"x","seq":0,"version":1},"data":{"sessionID":"ses_a","assistantMessageID":"msg_0005","id":"call_1","text":"{}"},"location":{"directory":"/project"}},"expected":{"sessions":{},"missing":[],"family":{"ses_a":[],"ses_b":[]},"status":{"ses_a":"idle","ses_b":"idle"},"messages":{"ses_a":[],"ses_b":[]},"more":{"ses_a":false,"ses_b":false},"pending":{"ses_a":[],"ses_b":[]},"permissions":{},"forms":{},"projects":{},"location":{"shell":[]},"requests":[]}}, + {"name":"session.tool.input.ended","state":"loaded","event":{"id":"evt_9048","created":1048,"type":"session.tool.input.ended","durable":{"aggregateID":"x","seq":0,"version":1},"data":{"sessionID":"ses_a","assistantMessageID":"msg_0005","id":"call_1","text":"{}"},"location":{"directory":"/project"}},"expected":{"sessions":{"ses_a":{"id":"ses_a","projectID":"project","agent":"build","model":{"providerID":"p","id":"m"},"title":"Title ses_a","cost":0.5,"tokens":{"input":1,"output":1,"reasoning":0,"cache":{"read":0,"write":0}},"time":{"created":1,"updated":2},"location":{"directory":"/project"}}},"missing":[],"family":{"ses_a":["ses_a"],"ses_b":[]},"status":{"ses_a":"idle","ses_b":"idle"},"messages":{"ses_a":[{"id":"msg_0001","type":"user","text":"hello","time":{"created":10}},{"id":"msg_0002","type":"assistant","agent":"build","model":{"providerID":"p","id":"m"},"content":[{"type":"text","text":"done"}],"time":{"created":11,"completed":12}},{"id":"msg_0003","type":"shell","shellID":"sh_1","command":"ls","status":"running","time":{"created":13}},{"id":"msg_0004","type":"compaction","status":"running","reason":"auto","summary":"sum","time":{"created":14}},{"id":"msg_0005","type":"assistant","agent":"build","model":{"providerID":"p","id":"m"},"content":[{"type":"text","text":"hel"},{"type":"reasoning","text":"th","time":{"created":15}},{"type":"tool","id":"call_1","name":"bash","state":{"status":"streaming","input":"{}"},"time":{"created":16}},{"type":"tool","id":"call_2","name":"read","state":{"status":"running","input":{"path":"a"},"metadata":{}},"time":{"created":17,"ran":17}}],"time":{"created":15}},{"id":"msg_0006","type":"user","text":"next","time":{"created":18}}],"ses_b":[]},"more":{"ses_a":true,"ses_b":false},"pending":{"ses_a":[{"id":"msg_0006","sessionID":"ses_a","time":{"created":18},"type":"user","delivery":"steer","payload":{"text":"next"}}],"ses_b":[]},"permissions":{"ses_a":[{"id":"per_1","sessionID":"ses_a","action":"bash","resources":[]}]},"forms":{"ses_a":[{"id":"frm_1","sessionID":"ses_a","title":"Ask","fields":[{"key":"x","type":"string"}]}],"global":[]},"projects":{"project":{"id":"project","canonical":"/project","time":{"created":1,"updated":1,"active":1},"sandboxes":[]}},"location":{"info":{"directory":"/project","project":{"id":"project","directory":"/project","canonical":"/project"}},"vcs":{"branch":{"current":"main","default":"main"}},"agent":[],"command":[],"config":[],"integration":[{"id":"openai","name":"OpenAI","methods":[],"connections":[{"type":"credential","id":"crd_1","label":"crd_1","method":"key"},{"type":"credential","id":"crd_2","label":"crd_2","method":"key"}]}],"mcpServer":[],"mcpResource":[],"model":[],"provider":[],"reference":[],"skill":[],"websearch":[],"usageLimits":null,"shell":[{"id":"sh_1","status":"running","command":"ls","cwd":"/project","shell":"bash","file":"/tmp/sh_1","metadata":{"sessionID":"ses_a"},"time":{"started":13},"location":{"directory":"/project"}}]},"requests":[]}}, + {"name":"session.tool.called","state":"empty","event":{"id":"evt_9049","created":1049,"type":"session.tool.called","durable":{"aggregateID":"x","seq":0,"version":1},"data":{"sessionID":"ses_a","assistantMessageID":"msg_0005","id":"call_1","input":{"command":"ls"},"executed":false},"location":{"directory":"/project"}},"expected":{"sessions":{},"missing":[],"family":{"ses_a":[],"ses_b":[]},"status":{"ses_a":"idle","ses_b":"idle"},"messages":{"ses_a":[],"ses_b":[]},"more":{"ses_a":false,"ses_b":false},"pending":{"ses_a":[],"ses_b":[]},"permissions":{},"forms":{},"projects":{},"location":{"shell":[]},"requests":[]}}, + {"name":"session.tool.called","state":"loaded","event":{"id":"evt_9049","created":1049,"type":"session.tool.called","durable":{"aggregateID":"x","seq":0,"version":1},"data":{"sessionID":"ses_a","assistantMessageID":"msg_0005","id":"call_1","input":{"command":"ls"},"executed":false},"location":{"directory":"/project"}},"expected":{"sessions":{"ses_a":{"id":"ses_a","projectID":"project","agent":"build","model":{"providerID":"p","id":"m"},"title":"Title ses_a","cost":0.5,"tokens":{"input":1,"output":1,"reasoning":0,"cache":{"read":0,"write":0}},"time":{"created":1,"updated":2},"location":{"directory":"/project"}}},"missing":[],"family":{"ses_a":["ses_a"],"ses_b":[]},"status":{"ses_a":"idle","ses_b":"idle"},"messages":{"ses_a":[{"id":"msg_0001","type":"user","text":"hello","time":{"created":10}},{"id":"msg_0002","type":"assistant","agent":"build","model":{"providerID":"p","id":"m"},"content":[{"type":"text","text":"done"}],"time":{"created":11,"completed":12}},{"id":"msg_0003","type":"shell","shellID":"sh_1","command":"ls","status":"running","time":{"created":13}},{"id":"msg_0004","type":"compaction","status":"running","reason":"auto","summary":"sum","time":{"created":14}},{"id":"msg_0005","type":"assistant","agent":"build","model":{"providerID":"p","id":"m"},"content":[{"type":"text","text":"hel"},{"type":"reasoning","text":"th","time":{"created":15}},{"type":"tool","id":"call_1","name":"bash","state":{"status":"running","input":{"command":"ls"},"metadata":{}},"time":{"created":16,"ran":1049},"executed":false},{"type":"tool","id":"call_2","name":"read","state":{"status":"running","input":{"path":"a"},"metadata":{}},"time":{"created":17,"ran":17}}],"time":{"created":15}},{"id":"msg_0006","type":"user","text":"next","time":{"created":18}}],"ses_b":[]},"more":{"ses_a":true,"ses_b":false},"pending":{"ses_a":[{"id":"msg_0006","sessionID":"ses_a","time":{"created":18},"type":"user","delivery":"steer","payload":{"text":"next"}}],"ses_b":[]},"permissions":{"ses_a":[{"id":"per_1","sessionID":"ses_a","action":"bash","resources":[]}]},"forms":{"ses_a":[{"id":"frm_1","sessionID":"ses_a","title":"Ask","fields":[{"key":"x","type":"string"}]}],"global":[]},"projects":{"project":{"id":"project","canonical":"/project","time":{"created":1,"updated":1,"active":1},"sandboxes":[]}},"location":{"info":{"directory":"/project","project":{"id":"project","directory":"/project","canonical":"/project"}},"vcs":{"branch":{"current":"main","default":"main"}},"agent":[],"command":[],"config":[],"integration":[{"id":"openai","name":"OpenAI","methods":[],"connections":[{"type":"credential","id":"crd_1","label":"crd_1","method":"key"},{"type":"credential","id":"crd_2","label":"crd_2","method":"key"}]}],"mcpServer":[],"mcpResource":[],"model":[],"provider":[],"reference":[],"skill":[],"websearch":[],"usageLimits":null,"shell":[{"id":"sh_1","status":"running","command":"ls","cwd":"/project","shell":"bash","file":"/tmp/sh_1","metadata":{"sessionID":"ses_a"},"time":{"started":13},"location":{"directory":"/project"}}]},"requests":[]}}, + {"name":"session.tool.progress","state":"empty","event":{"id":"evt_9050","created":1050,"type":"session.tool.progress","data":{"sessionID":"ses_a","assistantMessageID":"msg_0005","id":"call_2","metadata":{"lines":3}},"location":{"directory":"/project"}},"expected":{"sessions":{},"missing":[],"family":{"ses_a":[],"ses_b":[]},"status":{"ses_a":"idle","ses_b":"idle"},"messages":{"ses_a":[],"ses_b":[]},"more":{"ses_a":false,"ses_b":false},"pending":{"ses_a":[],"ses_b":[]},"permissions":{},"forms":{},"projects":{},"location":{"shell":[]},"requests":[]}}, + {"name":"session.tool.progress","state":"loaded","event":{"id":"evt_9050","created":1050,"type":"session.tool.progress","data":{"sessionID":"ses_a","assistantMessageID":"msg_0005","id":"call_2","metadata":{"lines":3}},"location":{"directory":"/project"}},"expected":{"sessions":{"ses_a":{"id":"ses_a","projectID":"project","agent":"build","model":{"providerID":"p","id":"m"},"title":"Title ses_a","cost":0.5,"tokens":{"input":1,"output":1,"reasoning":0,"cache":{"read":0,"write":0}},"time":{"created":1,"updated":2},"location":{"directory":"/project"}}},"missing":[],"family":{"ses_a":["ses_a"],"ses_b":[]},"status":{"ses_a":"idle","ses_b":"idle"},"messages":{"ses_a":[{"id":"msg_0001","type":"user","text":"hello","time":{"created":10}},{"id":"msg_0002","type":"assistant","agent":"build","model":{"providerID":"p","id":"m"},"content":[{"type":"text","text":"done"}],"time":{"created":11,"completed":12}},{"id":"msg_0003","type":"shell","shellID":"sh_1","command":"ls","status":"running","time":{"created":13}},{"id":"msg_0004","type":"compaction","status":"running","reason":"auto","summary":"sum","time":{"created":14}},{"id":"msg_0005","type":"assistant","agent":"build","model":{"providerID":"p","id":"m"},"content":[{"type":"text","text":"hel"},{"type":"reasoning","text":"th","time":{"created":15}},{"type":"tool","id":"call_1","name":"bash","state":{"status":"streaming","input":"{"},"time":{"created":16}},{"type":"tool","id":"call_2","name":"read","state":{"status":"running","input":{"path":"a"},"metadata":{"lines":3}},"time":{"created":17,"ran":17}}],"time":{"created":15}},{"id":"msg_0006","type":"user","text":"next","time":{"created":18}}],"ses_b":[]},"more":{"ses_a":true,"ses_b":false},"pending":{"ses_a":[{"id":"msg_0006","sessionID":"ses_a","time":{"created":18},"type":"user","delivery":"steer","payload":{"text":"next"}}],"ses_b":[]},"permissions":{"ses_a":[{"id":"per_1","sessionID":"ses_a","action":"bash","resources":[]}]},"forms":{"ses_a":[{"id":"frm_1","sessionID":"ses_a","title":"Ask","fields":[{"key":"x","type":"string"}]}],"global":[]},"projects":{"project":{"id":"project","canonical":"/project","time":{"created":1,"updated":1,"active":1},"sandboxes":[]}},"location":{"info":{"directory":"/project","project":{"id":"project","directory":"/project","canonical":"/project"}},"vcs":{"branch":{"current":"main","default":"main"}},"agent":[],"command":[],"config":[],"integration":[{"id":"openai","name":"OpenAI","methods":[],"connections":[{"type":"credential","id":"crd_1","label":"crd_1","method":"key"},{"type":"credential","id":"crd_2","label":"crd_2","method":"key"}]}],"mcpServer":[],"mcpResource":[],"model":[],"provider":[],"reference":[],"skill":[],"websearch":[],"usageLimits":null,"shell":[{"id":"sh_1","status":"running","command":"ls","cwd":"/project","shell":"bash","file":"/tmp/sh_1","metadata":{"sessionID":"ses_a"},"time":{"started":13},"location":{"directory":"/project"}}]},"requests":[]}}, + {"name":"session.tool.success","state":"empty","event":{"id":"evt_9051","created":1051,"type":"session.tool.success","durable":{"aggregateID":"x","seq":0,"version":2},"data":{"sessionID":"ses_a","assistantMessageID":"msg_0005","id":"call_2","content":[{"type":"text","text":"ok"}],"executed":true},"location":{"directory":"/project"}},"expected":{"sessions":{},"missing":[],"family":{"ses_a":[],"ses_b":[]},"status":{"ses_a":"idle","ses_b":"idle"},"messages":{"ses_a":[],"ses_b":[]},"more":{"ses_a":false,"ses_b":false},"pending":{"ses_a":[],"ses_b":[]},"permissions":{},"forms":{},"projects":{},"location":{"shell":[]},"requests":[]}}, + {"name":"session.tool.success","state":"loaded","event":{"id":"evt_9051","created":1051,"type":"session.tool.success","durable":{"aggregateID":"x","seq":0,"version":2},"data":{"sessionID":"ses_a","assistantMessageID":"msg_0005","id":"call_2","content":[{"type":"text","text":"ok"}],"executed":true},"location":{"directory":"/project"}},"expected":{"sessions":{"ses_a":{"id":"ses_a","projectID":"project","agent":"build","model":{"providerID":"p","id":"m"},"title":"Title ses_a","cost":0.5,"tokens":{"input":1,"output":1,"reasoning":0,"cache":{"read":0,"write":0}},"time":{"created":1,"updated":2},"location":{"directory":"/project"}}},"missing":[],"family":{"ses_a":["ses_a"],"ses_b":[]},"status":{"ses_a":"idle","ses_b":"idle"},"messages":{"ses_a":[{"id":"msg_0001","type":"user","text":"hello","time":{"created":10}},{"id":"msg_0002","type":"assistant","agent":"build","model":{"providerID":"p","id":"m"},"content":[{"type":"text","text":"done"}],"time":{"created":11,"completed":12}},{"id":"msg_0003","type":"shell","shellID":"sh_1","command":"ls","status":"running","time":{"created":13}},{"id":"msg_0004","type":"compaction","status":"running","reason":"auto","summary":"sum","time":{"created":14}},{"id":"msg_0005","type":"assistant","agent":"build","model":{"providerID":"p","id":"m"},"content":[{"type":"text","text":"hel"},{"type":"reasoning","text":"th","time":{"created":15}},{"type":"tool","id":"call_1","name":"bash","state":{"status":"streaming","input":"{"},"time":{"created":16}},{"type":"tool","id":"call_2","name":"read","state":{"status":"completed","input":{"path":"a"},"content":[{"type":"text","text":"ok"}]},"time":{"created":17,"ran":17,"completed":1051},"executed":true}],"time":{"created":15}},{"id":"msg_0006","type":"user","text":"next","time":{"created":18}}],"ses_b":[]},"more":{"ses_a":true,"ses_b":false},"pending":{"ses_a":[{"id":"msg_0006","sessionID":"ses_a","time":{"created":18},"type":"user","delivery":"steer","payload":{"text":"next"}}],"ses_b":[]},"permissions":{"ses_a":[{"id":"per_1","sessionID":"ses_a","action":"bash","resources":[]}]},"forms":{"ses_a":[{"id":"frm_1","sessionID":"ses_a","title":"Ask","fields":[{"key":"x","type":"string"}]}],"global":[]},"projects":{"project":{"id":"project","canonical":"/project","time":{"created":1,"updated":1,"active":1},"sandboxes":[]}},"location":{"info":{"directory":"/project","project":{"id":"project","directory":"/project","canonical":"/project"}},"vcs":{"branch":{"current":"main","default":"main"}},"agent":[],"command":[],"config":[],"integration":[{"id":"openai","name":"OpenAI","methods":[],"connections":[{"type":"credential","id":"crd_1","label":"crd_1","method":"key"},{"type":"credential","id":"crd_2","label":"crd_2","method":"key"}]}],"mcpServer":[],"mcpResource":[],"model":[],"provider":[],"reference":[],"skill":[],"websearch":[],"usageLimits":null,"shell":[{"id":"sh_1","status":"running","command":"ls","cwd":"/project","shell":"bash","file":"/tmp/sh_1","metadata":{"sessionID":"ses_a"},"time":{"started":13},"location":{"directory":"/project"}}]},"requests":[]}}, + {"name":"session.tool.failed","state":"empty","event":{"id":"evt_9052","created":1052,"type":"session.tool.failed","durable":{"aggregateID":"x","seq":0,"version":2},"data":{"sessionID":"ses_a","assistantMessageID":"msg_0005","id":"call_1","error":{"type":"tool.error","message":"no"},"executed":false},"location":{"directory":"/project"}},"expected":{"sessions":{},"missing":[],"family":{"ses_a":[],"ses_b":[]},"status":{"ses_a":"idle","ses_b":"idle"},"messages":{"ses_a":[],"ses_b":[]},"more":{"ses_a":false,"ses_b":false},"pending":{"ses_a":[],"ses_b":[]},"permissions":{},"forms":{},"projects":{},"location":{"shell":[]},"requests":[]}}, + {"name":"session.tool.failed","state":"loaded","event":{"id":"evt_9052","created":1052,"type":"session.tool.failed","durable":{"aggregateID":"x","seq":0,"version":2},"data":{"sessionID":"ses_a","assistantMessageID":"msg_0005","id":"call_1","error":{"type":"tool.error","message":"no"},"executed":false},"location":{"directory":"/project"}},"expected":{"sessions":{"ses_a":{"id":"ses_a","projectID":"project","agent":"build","model":{"providerID":"p","id":"m"},"title":"Title ses_a","cost":0.5,"tokens":{"input":1,"output":1,"reasoning":0,"cache":{"read":0,"write":0}},"time":{"created":1,"updated":2},"location":{"directory":"/project"}}},"missing":[],"family":{"ses_a":["ses_a"],"ses_b":[]},"status":{"ses_a":"idle","ses_b":"idle"},"messages":{"ses_a":[{"id":"msg_0001","type":"user","text":"hello","time":{"created":10}},{"id":"msg_0002","type":"assistant","agent":"build","model":{"providerID":"p","id":"m"},"content":[{"type":"text","text":"done"}],"time":{"created":11,"completed":12}},{"id":"msg_0003","type":"shell","shellID":"sh_1","command":"ls","status":"running","time":{"created":13}},{"id":"msg_0004","type":"compaction","status":"running","reason":"auto","summary":"sum","time":{"created":14}},{"id":"msg_0005","type":"assistant","agent":"build","model":{"providerID":"p","id":"m"},"content":[{"type":"text","text":"hel"},{"type":"reasoning","text":"th","time":{"created":15}},{"type":"tool","id":"call_1","name":"bash","state":{"status":"error","error":{"type":"tool.error","message":"no"},"input":{}},"time":{"created":16,"completed":1052},"executed":false},{"type":"tool","id":"call_2","name":"read","state":{"status":"running","input":{"path":"a"},"metadata":{}},"time":{"created":17,"ran":17}}],"time":{"created":15}},{"id":"msg_0006","type":"user","text":"next","time":{"created":18}}],"ses_b":[]},"more":{"ses_a":true,"ses_b":false},"pending":{"ses_a":[{"id":"msg_0006","sessionID":"ses_a","time":{"created":18},"type":"user","delivery":"steer","payload":{"text":"next"}}],"ses_b":[]},"permissions":{"ses_a":[{"id":"per_1","sessionID":"ses_a","action":"bash","resources":[]}]},"forms":{"ses_a":[{"id":"frm_1","sessionID":"ses_a","title":"Ask","fields":[{"key":"x","type":"string"}]}],"global":[]},"projects":{"project":{"id":"project","canonical":"/project","time":{"created":1,"updated":1,"active":1},"sandboxes":[]}},"location":{"info":{"directory":"/project","project":{"id":"project","directory":"/project","canonical":"/project"}},"vcs":{"branch":{"current":"main","default":"main"}},"agent":[],"command":[],"config":[],"integration":[{"id":"openai","name":"OpenAI","methods":[],"connections":[{"type":"credential","id":"crd_1","label":"crd_1","method":"key"},{"type":"credential","id":"crd_2","label":"crd_2","method":"key"}]}],"mcpServer":[],"mcpResource":[],"model":[],"provider":[],"reference":[],"skill":[],"websearch":[],"usageLimits":null,"shell":[{"id":"sh_1","status":"running","command":"ls","cwd":"/project","shell":"bash","file":"/tmp/sh_1","metadata":{"sessionID":"ses_a"},"time":{"started":13},"location":{"directory":"/project"}}]},"requests":[]}}, + {"name":"session.retry.scheduled","state":"empty","event":{"id":"evt_9053","created":1053,"type":"session.retry.scheduled","durable":{"aggregateID":"x","seq":0,"version":1},"data":{"sessionID":"ses_a","assistantMessageID":"msg_0005","attempt":2,"at":99,"error":{"type":"provider.error","message":"busy"}},"location":{"directory":"/project"}},"expected":{"sessions":{},"missing":[],"family":{"ses_a":[],"ses_b":[]},"status":{"ses_a":"idle","ses_b":"idle"},"messages":{"ses_a":[],"ses_b":[]},"more":{"ses_a":false,"ses_b":false},"pending":{"ses_a":[],"ses_b":[]},"permissions":{},"forms":{},"projects":{},"location":{"shell":[]},"requests":[]}}, + {"name":"session.retry.scheduled","state":"loaded","event":{"id":"evt_9053","created":1053,"type":"session.retry.scheduled","durable":{"aggregateID":"x","seq":0,"version":1},"data":{"sessionID":"ses_a","assistantMessageID":"msg_0005","attempt":2,"at":99,"error":{"type":"provider.error","message":"busy"}},"location":{"directory":"/project"}},"expected":{"sessions":{"ses_a":{"id":"ses_a","projectID":"project","agent":"build","model":{"providerID":"p","id":"m"},"title":"Title ses_a","cost":0.5,"tokens":{"input":1,"output":1,"reasoning":0,"cache":{"read":0,"write":0}},"time":{"created":1,"updated":2},"location":{"directory":"/project"}}},"missing":[],"family":{"ses_a":["ses_a"],"ses_b":[]},"status":{"ses_a":"idle","ses_b":"idle"},"messages":{"ses_a":[{"id":"msg_0001","type":"user","text":"hello","time":{"created":10}},{"id":"msg_0002","type":"assistant","agent":"build","model":{"providerID":"p","id":"m"},"content":[{"type":"text","text":"done"}],"time":{"created":11,"completed":12}},{"id":"msg_0003","type":"shell","shellID":"sh_1","command":"ls","status":"running","time":{"created":13}},{"id":"msg_0004","type":"compaction","status":"running","reason":"auto","summary":"sum","time":{"created":14}},{"id":"msg_0005","type":"assistant","agent":"build","model":{"providerID":"p","id":"m"},"content":[{"type":"text","text":"hel"},{"type":"reasoning","text":"th","time":{"created":15}},{"type":"tool","id":"call_1","name":"bash","state":{"status":"streaming","input":"{"},"time":{"created":16}},{"type":"tool","id":"call_2","name":"read","state":{"status":"running","input":{"path":"a"},"metadata":{}},"time":{"created":17,"ran":17}}],"time":{"created":15},"retry":{"attempt":2,"at":99,"error":{"type":"provider.error","message":"busy"}}},{"id":"msg_0006","type":"user","text":"next","time":{"created":18}}],"ses_b":[]},"more":{"ses_a":true,"ses_b":false},"pending":{"ses_a":[{"id":"msg_0006","sessionID":"ses_a","time":{"created":18},"type":"user","delivery":"steer","payload":{"text":"next"}}],"ses_b":[]},"permissions":{"ses_a":[{"id":"per_1","sessionID":"ses_a","action":"bash","resources":[]}]},"forms":{"ses_a":[{"id":"frm_1","sessionID":"ses_a","title":"Ask","fields":[{"key":"x","type":"string"}]}],"global":[]},"projects":{"project":{"id":"project","canonical":"/project","time":{"created":1,"updated":1,"active":1},"sandboxes":[]}},"location":{"info":{"directory":"/project","project":{"id":"project","directory":"/project","canonical":"/project"}},"vcs":{"branch":{"current":"main","default":"main"}},"agent":[],"command":[],"config":[],"integration":[{"id":"openai","name":"OpenAI","methods":[],"connections":[{"type":"credential","id":"crd_1","label":"crd_1","method":"key"},{"type":"credential","id":"crd_2","label":"crd_2","method":"key"}]}],"mcpServer":[],"mcpResource":[],"model":[],"provider":[],"reference":[],"skill":[],"websearch":[],"usageLimits":null,"shell":[{"id":"sh_1","status":"running","command":"ls","cwd":"/project","shell":"bash","file":"/tmp/sh_1","metadata":{"sessionID":"ses_a"},"time":{"started":13},"location":{"directory":"/project"}}]},"requests":[]}}, + {"name":"session.compaction.started","state":"empty","event":{"id":"evt_9054","created":1054,"type":"session.compaction.started","durable":{"aggregateID":"x","seq":0,"version":1},"data":{"sessionID":"ses_a","reason":"manual","inputID":"msg_0009"},"location":{"directory":"/project"}},"expected":{"sessions":{},"missing":[],"family":{"ses_a":[],"ses_b":[]},"status":{"ses_a":"idle","ses_b":"idle"},"messages":{"ses_a":[{"id":"msg_0009","type":"compaction","status":"running","reason":"manual","summary":"","time":{"created":1054}}],"ses_b":[]},"more":{"ses_a":false,"ses_b":false},"pending":{"ses_a":[],"ses_b":[]},"permissions":{},"forms":{},"projects":{},"location":{"shell":[]},"requests":[]}}, + {"name":"session.compaction.started","state":"loaded","event":{"id":"evt_9054","created":1054,"type":"session.compaction.started","durable":{"aggregateID":"x","seq":0,"version":1},"data":{"sessionID":"ses_a","reason":"manual","inputID":"msg_0009"},"location":{"directory":"/project"}},"expected":{"sessions":{"ses_a":{"id":"ses_a","projectID":"project","agent":"build","model":{"providerID":"p","id":"m"},"title":"Title ses_a","cost":0.5,"tokens":{"input":1,"output":1,"reasoning":0,"cache":{"read":0,"write":0}},"time":{"created":1,"updated":2},"location":{"directory":"/project"}}},"missing":[],"family":{"ses_a":["ses_a"],"ses_b":[]},"status":{"ses_a":"idle","ses_b":"idle"},"messages":{"ses_a":[{"id":"msg_0001","type":"user","text":"hello","time":{"created":10}},{"id":"msg_0002","type":"assistant","agent":"build","model":{"providerID":"p","id":"m"},"content":[{"type":"text","text":"done"}],"time":{"created":11,"completed":12}},{"id":"msg_0003","type":"shell","shellID":"sh_1","command":"ls","status":"running","time":{"created":13}},{"id":"msg_0004","type":"compaction","status":"running","reason":"auto","summary":"sum","time":{"created":14}},{"id":"msg_0005","type":"assistant","agent":"build","model":{"providerID":"p","id":"m"},"content":[{"type":"text","text":"hel"},{"type":"reasoning","text":"th","time":{"created":15}},{"type":"tool","id":"call_1","name":"bash","state":{"status":"streaming","input":"{"},"time":{"created":16}},{"type":"tool","id":"call_2","name":"read","state":{"status":"running","input":{"path":"a"},"metadata":{}},"time":{"created":17,"ran":17}}],"time":{"created":15}},{"id":"msg_0006","type":"user","text":"next","time":{"created":18}},{"id":"msg_0009","type":"compaction","status":"running","reason":"manual","summary":"","time":{"created":1054}}],"ses_b":[]},"more":{"ses_a":true,"ses_b":false},"pending":{"ses_a":[{"id":"msg_0006","sessionID":"ses_a","time":{"created":18},"type":"user","delivery":"steer","payload":{"text":"next"}}],"ses_b":[]},"permissions":{"ses_a":[{"id":"per_1","sessionID":"ses_a","action":"bash","resources":[]}]},"forms":{"ses_a":[{"id":"frm_1","sessionID":"ses_a","title":"Ask","fields":[{"key":"x","type":"string"}]}],"global":[]},"projects":{"project":{"id":"project","canonical":"/project","time":{"created":1,"updated":1,"active":1},"sandboxes":[]}},"location":{"info":{"directory":"/project","project":{"id":"project","directory":"/project","canonical":"/project"}},"vcs":{"branch":{"current":"main","default":"main"}},"agent":[],"command":[],"config":[],"integration":[{"id":"openai","name":"OpenAI","methods":[],"connections":[{"type":"credential","id":"crd_1","label":"crd_1","method":"key"},{"type":"credential","id":"crd_2","label":"crd_2","method":"key"}]}],"mcpServer":[],"mcpResource":[],"model":[],"provider":[],"reference":[],"skill":[],"websearch":[],"usageLimits":null,"shell":[{"id":"sh_1","status":"running","command":"ls","cwd":"/project","shell":"bash","file":"/tmp/sh_1","metadata":{"sessionID":"ses_a"},"time":{"started":13},"location":{"directory":"/project"}}]},"requests":[]}}, + {"name":"session.compaction.delta","state":"empty","event":{"id":"evt_9055","created":1055,"type":"session.compaction.delta","data":{"sessionID":"ses_a","text":"mary"},"location":{"directory":"/project"}},"expected":{"sessions":{},"missing":[],"family":{"ses_a":[],"ses_b":[]},"status":{"ses_a":"idle","ses_b":"idle"},"messages":{"ses_a":[],"ses_b":[]},"more":{"ses_a":false,"ses_b":false},"pending":{"ses_a":[],"ses_b":[]},"permissions":{},"forms":{},"projects":{},"location":{"shell":[]},"requests":[]}}, + {"name":"session.compaction.delta","state":"loaded","event":{"id":"evt_9055","created":1055,"type":"session.compaction.delta","data":{"sessionID":"ses_a","text":"mary"},"location":{"directory":"/project"}},"expected":{"sessions":{"ses_a":{"id":"ses_a","projectID":"project","agent":"build","model":{"providerID":"p","id":"m"},"title":"Title ses_a","cost":0.5,"tokens":{"input":1,"output":1,"reasoning":0,"cache":{"read":0,"write":0}},"time":{"created":1,"updated":2},"location":{"directory":"/project"}}},"missing":[],"family":{"ses_a":["ses_a"],"ses_b":[]},"status":{"ses_a":"idle","ses_b":"idle"},"messages":{"ses_a":[{"id":"msg_0001","type":"user","text":"hello","time":{"created":10}},{"id":"msg_0002","type":"assistant","agent":"build","model":{"providerID":"p","id":"m"},"content":[{"type":"text","text":"done"}],"time":{"created":11,"completed":12}},{"id":"msg_0003","type":"shell","shellID":"sh_1","command":"ls","status":"running","time":{"created":13}},{"id":"msg_0004","type":"compaction","status":"running","reason":"auto","summary":"summary","time":{"created":14}},{"id":"msg_0005","type":"assistant","agent":"build","model":{"providerID":"p","id":"m"},"content":[{"type":"text","text":"hel"},{"type":"reasoning","text":"th","time":{"created":15}},{"type":"tool","id":"call_1","name":"bash","state":{"status":"streaming","input":"{"},"time":{"created":16}},{"type":"tool","id":"call_2","name":"read","state":{"status":"running","input":{"path":"a"},"metadata":{}},"time":{"created":17,"ran":17}}],"time":{"created":15}},{"id":"msg_0006","type":"user","text":"next","time":{"created":18}}],"ses_b":[]},"more":{"ses_a":true,"ses_b":false},"pending":{"ses_a":[{"id":"msg_0006","sessionID":"ses_a","time":{"created":18},"type":"user","delivery":"steer","payload":{"text":"next"}}],"ses_b":[]},"permissions":{"ses_a":[{"id":"per_1","sessionID":"ses_a","action":"bash","resources":[]}]},"forms":{"ses_a":[{"id":"frm_1","sessionID":"ses_a","title":"Ask","fields":[{"key":"x","type":"string"}]}],"global":[]},"projects":{"project":{"id":"project","canonical":"/project","time":{"created":1,"updated":1,"active":1},"sandboxes":[]}},"location":{"info":{"directory":"/project","project":{"id":"project","directory":"/project","canonical":"/project"}},"vcs":{"branch":{"current":"main","default":"main"}},"agent":[],"command":[],"config":[],"integration":[{"id":"openai","name":"OpenAI","methods":[],"connections":[{"type":"credential","id":"crd_1","label":"crd_1","method":"key"},{"type":"credential","id":"crd_2","label":"crd_2","method":"key"}]}],"mcpServer":[],"mcpResource":[],"model":[],"provider":[],"reference":[],"skill":[],"websearch":[],"usageLimits":null,"shell":[{"id":"sh_1","status":"running","command":"ls","cwd":"/project","shell":"bash","file":"/tmp/sh_1","metadata":{"sessionID":"ses_a"},"time":{"started":13},"location":{"directory":"/project"}}]},"requests":[]}}, + {"name":"session.compaction.ended","state":"empty","event":{"id":"evt_9056","created":1056,"type":"session.compaction.ended","durable":{"aggregateID":"x","seq":0,"version":1},"data":{"sessionID":"ses_a","reason":"auto","text":"summary","cost":1,"tokens":{"input":1,"output":1,"reasoning":0,"cache":{"read":0,"write":0}}},"location":{"directory":"/project"}},"expected":{"sessions":{},"missing":[],"family":{"ses_a":[],"ses_b":[]},"status":{"ses_a":"idle","ses_b":"idle"},"messages":{"ses_a":[{"id":"msg_9056","type":"compaction","status":"completed","reason":"auto","summary":"summary","cost":1,"tokens":{"input":1,"output":1,"reasoning":0,"cache":{"read":0,"write":0}},"time":{"created":1056}}],"ses_b":[]},"more":{"ses_a":false,"ses_b":false},"pending":{"ses_a":[],"ses_b":[]},"permissions":{},"forms":{},"projects":{},"location":{"shell":[]},"requests":[]}}, + {"name":"session.compaction.ended","state":"loaded","event":{"id":"evt_9056","created":1056,"type":"session.compaction.ended","durable":{"aggregateID":"x","seq":0,"version":1},"data":{"sessionID":"ses_a","reason":"auto","text":"summary","cost":1,"tokens":{"input":1,"output":1,"reasoning":0,"cache":{"read":0,"write":0}}},"location":{"directory":"/project"}},"expected":{"sessions":{"ses_a":{"id":"ses_a","projectID":"project","agent":"build","model":{"providerID":"p","id":"m"},"title":"Title ses_a","cost":0.5,"tokens":{"input":1,"output":1,"reasoning":0,"cache":{"read":0,"write":0}},"time":{"created":1,"updated":2},"location":{"directory":"/project"}}},"missing":[],"family":{"ses_a":["ses_a"],"ses_b":[]},"status":{"ses_a":"idle","ses_b":"idle"},"messages":{"ses_a":[{"id":"msg_0001","type":"user","text":"hello","time":{"created":10}},{"id":"msg_0002","type":"assistant","agent":"build","model":{"providerID":"p","id":"m"},"content":[{"type":"text","text":"done"}],"time":{"created":11,"completed":12}},{"id":"msg_0003","type":"shell","shellID":"sh_1","command":"ls","status":"running","time":{"created":13}},{"id":"msg_0004","type":"compaction","status":"completed","reason":"auto","summary":"summary","time":{"created":14},"cost":1,"tokens":{"input":1,"output":1,"reasoning":0,"cache":{"read":0,"write":0}}},{"id":"msg_0005","type":"assistant","agent":"build","model":{"providerID":"p","id":"m"},"content":[{"type":"text","text":"hel"},{"type":"reasoning","text":"th","time":{"created":15}},{"type":"tool","id":"call_1","name":"bash","state":{"status":"streaming","input":"{"},"time":{"created":16}},{"type":"tool","id":"call_2","name":"read","state":{"status":"running","input":{"path":"a"},"metadata":{}},"time":{"created":17,"ran":17}}],"time":{"created":15}},{"id":"msg_0006","type":"user","text":"next","time":{"created":18}}],"ses_b":[]},"more":{"ses_a":true,"ses_b":false},"pending":{"ses_a":[{"id":"msg_0006","sessionID":"ses_a","time":{"created":18},"type":"user","delivery":"steer","payload":{"text":"next"}}],"ses_b":[]},"permissions":{"ses_a":[{"id":"per_1","sessionID":"ses_a","action":"bash","resources":[]}]},"forms":{"ses_a":[{"id":"frm_1","sessionID":"ses_a","title":"Ask","fields":[{"key":"x","type":"string"}]}],"global":[]},"projects":{"project":{"id":"project","canonical":"/project","time":{"created":1,"updated":1,"active":1},"sandboxes":[]}},"location":{"info":{"directory":"/project","project":{"id":"project","directory":"/project","canonical":"/project"}},"vcs":{"branch":{"current":"main","default":"main"}},"agent":[],"command":[],"config":[],"integration":[{"id":"openai","name":"OpenAI","methods":[],"connections":[{"type":"credential","id":"crd_1","label":"crd_1","method":"key"},{"type":"credential","id":"crd_2","label":"crd_2","method":"key"}]}],"mcpServer":[],"mcpResource":[],"model":[],"provider":[],"reference":[],"skill":[],"websearch":[],"usageLimits":null,"shell":[{"id":"sh_1","status":"running","command":"ls","cwd":"/project","shell":"bash","file":"/tmp/sh_1","metadata":{"sessionID":"ses_a"},"time":{"started":13},"location":{"directory":"/project"}}]},"requests":[]}}, + {"name":"session.compaction.failed","state":"empty","event":{"id":"evt_9057","created":1057,"type":"session.compaction.failed","durable":{"aggregateID":"x","seq":0,"version":1},"data":{"sessionID":"ses_a","reason":"auto","error":{"type":"compaction.error","message":"no"}},"location":{"directory":"/project"}},"expected":{"sessions":{},"missing":[],"family":{"ses_a":[],"ses_b":[]},"status":{"ses_a":"idle","ses_b":"idle"},"messages":{"ses_a":[{"id":"msg_9057","type":"compaction","status":"failed","reason":"auto","error":{"type":"compaction.error","message":"no"},"time":{"created":1057}}],"ses_b":[]},"more":{"ses_a":false,"ses_b":false},"pending":{"ses_a":[],"ses_b":[]},"permissions":{},"forms":{},"projects":{},"location":{"shell":[]},"requests":[]}}, + {"name":"session.compaction.failed","state":"loaded","event":{"id":"evt_9057","created":1057,"type":"session.compaction.failed","durable":{"aggregateID":"x","seq":0,"version":1},"data":{"sessionID":"ses_a","reason":"auto","error":{"type":"compaction.error","message":"no"}},"location":{"directory":"/project"}},"expected":{"sessions":{"ses_a":{"id":"ses_a","projectID":"project","agent":"build","model":{"providerID":"p","id":"m"},"title":"Title ses_a","cost":0.5,"tokens":{"input":1,"output":1,"reasoning":0,"cache":{"read":0,"write":0}},"time":{"created":1,"updated":2},"location":{"directory":"/project"}}},"missing":[],"family":{"ses_a":["ses_a"],"ses_b":[]},"status":{"ses_a":"idle","ses_b":"idle"},"messages":{"ses_a":[{"id":"msg_0001","type":"user","text":"hello","time":{"created":10}},{"id":"msg_0002","type":"assistant","agent":"build","model":{"providerID":"p","id":"m"},"content":[{"type":"text","text":"done"}],"time":{"created":11,"completed":12}},{"id":"msg_0003","type":"shell","shellID":"sh_1","command":"ls","status":"running","time":{"created":13}},{"id":"msg_0004","type":"compaction","status":"failed","reason":"auto","error":{"type":"compaction.error","message":"no"},"time":{"created":14}},{"id":"msg_0005","type":"assistant","agent":"build","model":{"providerID":"p","id":"m"},"content":[{"type":"text","text":"hel"},{"type":"reasoning","text":"th","time":{"created":15}},{"type":"tool","id":"call_1","name":"bash","state":{"status":"streaming","input":"{"},"time":{"created":16}},{"type":"tool","id":"call_2","name":"read","state":{"status":"running","input":{"path":"a"},"metadata":{}},"time":{"created":17,"ran":17}}],"time":{"created":15}},{"id":"msg_0006","type":"user","text":"next","time":{"created":18}}],"ses_b":[]},"more":{"ses_a":true,"ses_b":false},"pending":{"ses_a":[{"id":"msg_0006","sessionID":"ses_a","time":{"created":18},"type":"user","delivery":"steer","payload":{"text":"next"}}],"ses_b":[]},"permissions":{"ses_a":[{"id":"per_1","sessionID":"ses_a","action":"bash","resources":[]}]},"forms":{"ses_a":[{"id":"frm_1","sessionID":"ses_a","title":"Ask","fields":[{"key":"x","type":"string"}]}],"global":[]},"projects":{"project":{"id":"project","canonical":"/project","time":{"created":1,"updated":1,"active":1},"sandboxes":[]}},"location":{"info":{"directory":"/project","project":{"id":"project","directory":"/project","canonical":"/project"}},"vcs":{"branch":{"current":"main","default":"main"}},"agent":[],"command":[],"config":[],"integration":[{"id":"openai","name":"OpenAI","methods":[],"connections":[{"type":"credential","id":"crd_1","label":"crd_1","method":"key"},{"type":"credential","id":"crd_2","label":"crd_2","method":"key"}]}],"mcpServer":[],"mcpResource":[],"model":[],"provider":[],"reference":[],"skill":[],"websearch":[],"usageLimits":null,"shell":[{"id":"sh_1","status":"running","command":"ls","cwd":"/project","shell":"bash","file":"/tmp/sh_1","metadata":{"sessionID":"ses_a"},"time":{"started":13},"location":{"directory":"/project"}}]},"requests":[]}}, + {"name":"session.revert.staged","state":"empty","event":{"id":"evt_9058","created":1058,"type":"session.revert.staged","durable":{"aggregateID":"x","seq":0,"version":1},"data":{"sessionID":"ses_a","revert":{"messageID":"msg_0004"}},"location":{"directory":"/project"}},"expected":{"sessions":{},"missing":[],"family":{"ses_a":[],"ses_b":[]},"status":{"ses_a":"idle","ses_b":"idle"},"messages":{"ses_a":[],"ses_b":[]},"more":{"ses_a":false,"ses_b":false},"pending":{"ses_a":[],"ses_b":[]},"permissions":{},"forms":{},"projects":{},"location":{"shell":[]},"requests":[]}}, + {"name":"session.revert.staged","state":"loaded","event":{"id":"evt_9058","created":1058,"type":"session.revert.staged","durable":{"aggregateID":"x","seq":0,"version":1},"data":{"sessionID":"ses_a","revert":{"messageID":"msg_0004"}},"location":{"directory":"/project"}},"expected":{"sessions":{"ses_a":{"id":"ses_a","projectID":"project","agent":"build","model":{"providerID":"p","id":"m"},"title":"Title ses_a","cost":0.5,"tokens":{"input":1,"output":1,"reasoning":0,"cache":{"read":0,"write":0}},"time":{"created":1,"updated":2},"location":{"directory":"/project"},"revert":{"messageID":"msg_0004"}}},"missing":[],"family":{"ses_a":["ses_a"],"ses_b":[]},"status":{"ses_a":"idle","ses_b":"idle"},"messages":{"ses_a":[{"id":"msg_0001","type":"user","text":"hello","time":{"created":10}},{"id":"msg_0002","type":"assistant","agent":"build","model":{"providerID":"p","id":"m"},"content":[{"type":"text","text":"done"}],"time":{"created":11,"completed":12}},{"id":"msg_0003","type":"shell","shellID":"sh_1","command":"ls","status":"running","time":{"created":13}},{"id":"msg_0004","type":"compaction","status":"running","reason":"auto","summary":"sum","time":{"created":14}},{"id":"msg_0005","type":"assistant","agent":"build","model":{"providerID":"p","id":"m"},"content":[{"type":"text","text":"hel"},{"type":"reasoning","text":"th","time":{"created":15}},{"type":"tool","id":"call_1","name":"bash","state":{"status":"streaming","input":"{"},"time":{"created":16}},{"type":"tool","id":"call_2","name":"read","state":{"status":"running","input":{"path":"a"},"metadata":{}},"time":{"created":17,"ran":17}}],"time":{"created":15}},{"id":"msg_0006","type":"user","text":"next","time":{"created":18}}],"ses_b":[]},"more":{"ses_a":true,"ses_b":false},"pending":{"ses_a":[{"id":"msg_0006","sessionID":"ses_a","time":{"created":18},"type":"user","delivery":"steer","payload":{"text":"next"}}],"ses_b":[]},"permissions":{"ses_a":[{"id":"per_1","sessionID":"ses_a","action":"bash","resources":[]}]},"forms":{"ses_a":[{"id":"frm_1","sessionID":"ses_a","title":"Ask","fields":[{"key":"x","type":"string"}]}],"global":[]},"projects":{"project":{"id":"project","canonical":"/project","time":{"created":1,"updated":1,"active":1},"sandboxes":[]}},"location":{"info":{"directory":"/project","project":{"id":"project","directory":"/project","canonical":"/project"}},"vcs":{"branch":{"current":"main","default":"main"}},"agent":[],"command":[],"config":[],"integration":[{"id":"openai","name":"OpenAI","methods":[],"connections":[{"type":"credential","id":"crd_1","label":"crd_1","method":"key"},{"type":"credential","id":"crd_2","label":"crd_2","method":"key"}]}],"mcpServer":[],"mcpResource":[],"model":[],"provider":[],"reference":[],"skill":[],"websearch":[],"usageLimits":null,"shell":[{"id":"sh_1","status":"running","command":"ls","cwd":"/project","shell":"bash","file":"/tmp/sh_1","metadata":{"sessionID":"ses_a"},"time":{"started":13},"location":{"directory":"/project"}}]},"requests":[]}}, + {"name":"session.revert.cleared","state":"empty","event":{"id":"evt_9059","created":1059,"type":"session.revert.cleared","durable":{"aggregateID":"x","seq":0,"version":1},"data":{"sessionID":"ses_a"},"location":{"directory":"/project"}},"expected":{"sessions":{},"missing":[],"family":{"ses_a":[],"ses_b":[]},"status":{"ses_a":"idle","ses_b":"idle"},"messages":{"ses_a":[],"ses_b":[]},"more":{"ses_a":false,"ses_b":false},"pending":{"ses_a":[],"ses_b":[]},"permissions":{},"forms":{},"projects":{},"location":{"shell":[]},"requests":[]}}, + {"name":"session.revert.cleared","state":"loaded","event":{"id":"evt_9059","created":1059,"type":"session.revert.cleared","durable":{"aggregateID":"x","seq":0,"version":1},"data":{"sessionID":"ses_a"},"location":{"directory":"/project"}},"expected":{"sessions":{"ses_a":{"id":"ses_a","projectID":"project","agent":"build","model":{"providerID":"p","id":"m"},"title":"Title ses_a","cost":0.5,"tokens":{"input":1,"output":1,"reasoning":0,"cache":{"read":0,"write":0}},"time":{"created":1,"updated":2},"location":{"directory":"/project"}}},"missing":[],"family":{"ses_a":["ses_a"],"ses_b":[]},"status":{"ses_a":"idle","ses_b":"idle"},"messages":{"ses_a":[{"id":"msg_0001","type":"user","text":"hello","time":{"created":10}},{"id":"msg_0002","type":"assistant","agent":"build","model":{"providerID":"p","id":"m"},"content":[{"type":"text","text":"done"}],"time":{"created":11,"completed":12}},{"id":"msg_0003","type":"shell","shellID":"sh_1","command":"ls","status":"running","time":{"created":13}},{"id":"msg_0004","type":"compaction","status":"running","reason":"auto","summary":"sum","time":{"created":14}},{"id":"msg_0005","type":"assistant","agent":"build","model":{"providerID":"p","id":"m"},"content":[{"type":"text","text":"hel"},{"type":"reasoning","text":"th","time":{"created":15}},{"type":"tool","id":"call_1","name":"bash","state":{"status":"streaming","input":"{"},"time":{"created":16}},{"type":"tool","id":"call_2","name":"read","state":{"status":"running","input":{"path":"a"},"metadata":{}},"time":{"created":17,"ran":17}}],"time":{"created":15}},{"id":"msg_0006","type":"user","text":"next","time":{"created":18}}],"ses_b":[]},"more":{"ses_a":true,"ses_b":false},"pending":{"ses_a":[{"id":"msg_0006","sessionID":"ses_a","time":{"created":18},"type":"user","delivery":"steer","payload":{"text":"next"}}],"ses_b":[]},"permissions":{"ses_a":[{"id":"per_1","sessionID":"ses_a","action":"bash","resources":[]}]},"forms":{"ses_a":[{"id":"frm_1","sessionID":"ses_a","title":"Ask","fields":[{"key":"x","type":"string"}]}],"global":[]},"projects":{"project":{"id":"project","canonical":"/project","time":{"created":1,"updated":1,"active":1},"sandboxes":[]}},"location":{"info":{"directory":"/project","project":{"id":"project","directory":"/project","canonical":"/project"}},"vcs":{"branch":{"current":"main","default":"main"}},"agent":[],"command":[],"config":[],"integration":[{"id":"openai","name":"OpenAI","methods":[],"connections":[{"type":"credential","id":"crd_1","label":"crd_1","method":"key"},{"type":"credential","id":"crd_2","label":"crd_2","method":"key"}]}],"mcpServer":[],"mcpResource":[],"model":[],"provider":[],"reference":[],"skill":[],"websearch":[],"usageLimits":null,"shell":[{"id":"sh_1","status":"running","command":"ls","cwd":"/project","shell":"bash","file":"/tmp/sh_1","metadata":{"sessionID":"ses_a"},"time":{"started":13},"location":{"directory":"/project"}}]},"requests":[]}}, + {"name":"session.revert.committed","state":"empty","event":{"id":"evt_9060","created":1060,"type":"session.revert.committed","durable":{"aggregateID":"x","seq":0,"version":1},"data":{"sessionID":"ses_a","to":"msg_0004"},"location":{"directory":"/project"}},"expected":{"sessions":{},"missing":[],"family":{"ses_a":[],"ses_b":[]},"status":{"ses_a":"idle","ses_b":"idle"},"messages":{"ses_a":[],"ses_b":[]},"more":{"ses_a":false,"ses_b":false},"pending":{"ses_a":[],"ses_b":[]},"permissions":{},"forms":{},"projects":{},"location":{"shell":[]},"requests":[]}}, + {"name":"session.revert.committed","state":"loaded","event":{"id":"evt_9060","created":1060,"type":"session.revert.committed","durable":{"aggregateID":"x","seq":0,"version":1},"data":{"sessionID":"ses_a","to":"msg_0004"},"location":{"directory":"/project"}},"expected":{"sessions":{"ses_a":{"id":"ses_a","projectID":"project","agent":"build","model":{"providerID":"p","id":"m"},"title":"Title ses_a","cost":0.5,"tokens":{"input":1,"output":1,"reasoning":0,"cache":{"read":0,"write":0}},"time":{"created":1,"updated":2},"location":{"directory":"/project"}}},"missing":[],"family":{"ses_a":["ses_a"],"ses_b":[]},"status":{"ses_a":"idle","ses_b":"idle"},"messages":{"ses_a":[{"id":"msg_0001","type":"user","text":"hello","time":{"created":10}},{"id":"msg_0002","type":"assistant","agent":"build","model":{"providerID":"p","id":"m"},"content":[{"type":"text","text":"done"}],"time":{"created":11,"completed":12}},{"id":"msg_0003","type":"shell","shellID":"sh_1","command":"ls","status":"running","time":{"created":13}}],"ses_b":[]},"more":{"ses_a":true,"ses_b":false},"pending":{"ses_a":[],"ses_b":[]},"permissions":{"ses_a":[{"id":"per_1","sessionID":"ses_a","action":"bash","resources":[]}]},"forms":{"ses_a":[{"id":"frm_1","sessionID":"ses_a","title":"Ask","fields":[{"key":"x","type":"string"}]}],"global":[]},"projects":{"project":{"id":"project","canonical":"/project","time":{"created":1,"updated":1,"active":1},"sandboxes":[]}},"location":{"info":{"directory":"/project","project":{"id":"project","directory":"/project","canonical":"/project"}},"vcs":{"branch":{"current":"main","default":"main"}},"agent":[],"command":[],"config":[],"integration":[{"id":"openai","name":"OpenAI","methods":[],"connections":[{"type":"credential","id":"crd_1","label":"crd_1","method":"key"},{"type":"credential","id":"crd_2","label":"crd_2","method":"key"}]}],"mcpServer":[],"mcpResource":[],"model":[],"provider":[],"reference":[],"skill":[],"websearch":[],"usageLimits":null,"shell":[{"id":"sh_1","status":"running","command":"ls","cwd":"/project","shell":"bash","file":"/tmp/sh_1","metadata":{"sessionID":"ses_a"},"time":{"started":13},"location":{"directory":"/project"}}]},"requests":[]}}, + {"name":"filesystem.changed","state":"empty","event":{"id":"evt_9061","created":1061,"type":"filesystem.changed","data":{"file":"x","event":"add"},"location":{"directory":"/project"}},"expected":{"sessions":{},"missing":[],"family":{"ses_a":[],"ses_b":[]},"status":{"ses_a":"idle","ses_b":"idle"},"messages":{"ses_a":[],"ses_b":[]},"more":{"ses_a":false,"ses_b":false},"pending":{"ses_a":[],"ses_b":[]},"permissions":{},"forms":{},"projects":{},"location":{"shell":[]},"requests":[]}}, + {"name":"filesystem.changed","state":"loaded","event":{"id":"evt_9061","created":1061,"type":"filesystem.changed","data":{"file":"x","event":"add"},"location":{"directory":"/project"}},"expected":{"sessions":{"ses_a":{"id":"ses_a","projectID":"project","agent":"build","model":{"providerID":"p","id":"m"},"title":"Title ses_a","cost":0.5,"tokens":{"input":1,"output":1,"reasoning":0,"cache":{"read":0,"write":0}},"time":{"created":1,"updated":2},"location":{"directory":"/project"}}},"missing":[],"family":{"ses_a":["ses_a"],"ses_b":[]},"status":{"ses_a":"idle","ses_b":"idle"},"messages":{"ses_a":[{"id":"msg_0001","type":"user","text":"hello","time":{"created":10}},{"id":"msg_0002","type":"assistant","agent":"build","model":{"providerID":"p","id":"m"},"content":[{"type":"text","text":"done"}],"time":{"created":11,"completed":12}},{"id":"msg_0003","type":"shell","shellID":"sh_1","command":"ls","status":"running","time":{"created":13}},{"id":"msg_0004","type":"compaction","status":"running","reason":"auto","summary":"sum","time":{"created":14}},{"id":"msg_0005","type":"assistant","agent":"build","model":{"providerID":"p","id":"m"},"content":[{"type":"text","text":"hel"},{"type":"reasoning","text":"th","time":{"created":15}},{"type":"tool","id":"call_1","name":"bash","state":{"status":"streaming","input":"{"},"time":{"created":16}},{"type":"tool","id":"call_2","name":"read","state":{"status":"running","input":{"path":"a"},"metadata":{}},"time":{"created":17,"ran":17}}],"time":{"created":15}},{"id":"msg_0006","type":"user","text":"next","time":{"created":18}}],"ses_b":[]},"more":{"ses_a":true,"ses_b":false},"pending":{"ses_a":[{"id":"msg_0006","sessionID":"ses_a","time":{"created":18},"type":"user","delivery":"steer","payload":{"text":"next"}}],"ses_b":[]},"permissions":{"ses_a":[{"id":"per_1","sessionID":"ses_a","action":"bash","resources":[]}]},"forms":{"ses_a":[{"id":"frm_1","sessionID":"ses_a","title":"Ask","fields":[{"key":"x","type":"string"}]}],"global":[]},"projects":{"project":{"id":"project","canonical":"/project","time":{"created":1,"updated":1,"active":1},"sandboxes":[]}},"location":{"info":{"directory":"/project","project":{"id":"project","directory":"/project","canonical":"/project"}},"vcs":{"branch":{"current":"main","default":"main"}},"agent":[],"command":[],"config":[],"integration":[{"id":"openai","name":"OpenAI","methods":[],"connections":[{"type":"credential","id":"crd_1","label":"crd_1","method":"key"},{"type":"credential","id":"crd_2","label":"crd_2","method":"key"}]}],"mcpServer":[],"mcpResource":[],"model":[],"provider":[],"reference":[],"skill":[],"websearch":[],"usageLimits":null,"shell":[{"id":"sh_1","status":"running","command":"ls","cwd":"/project","shell":"bash","file":"/tmp/sh_1","metadata":{"sessionID":"ses_a"},"time":{"started":13},"location":{"directory":"/project"}}]},"requests":[]}}, + {"name":"reference.updated","state":"empty","event":{"id":"evt_9062","created":1062,"type":"reference.updated","data":{},"location":{"directory":"/project"}},"expected":{"sessions":{},"missing":[],"family":{"ses_a":[],"ses_b":[]},"status":{"ses_a":"idle","ses_b":"idle"},"messages":{"ses_a":[],"ses_b":[]},"more":{"ses_a":false,"ses_b":false},"pending":{"ses_a":[],"ses_b":[]},"permissions":{},"forms":{},"projects":{},"location":{"shell":[]},"requests":[]}}, + {"name":"reference.updated","state":"loaded","event":{"id":"evt_9062","created":1062,"type":"reference.updated","data":{},"location":{"directory":"/project"}},"expected":{"sessions":{"ses_a":{"id":"ses_a","projectID":"project","agent":"build","model":{"providerID":"p","id":"m"},"title":"Title ses_a","cost":0.5,"tokens":{"input":1,"output":1,"reasoning":0,"cache":{"read":0,"write":0}},"time":{"created":1,"updated":2},"location":{"directory":"/project"}}},"missing":[],"family":{"ses_a":["ses_a"],"ses_b":[]},"status":{"ses_a":"idle","ses_b":"idle"},"messages":{"ses_a":[{"id":"msg_0001","type":"user","text":"hello","time":{"created":10}},{"id":"msg_0002","type":"assistant","agent":"build","model":{"providerID":"p","id":"m"},"content":[{"type":"text","text":"done"}],"time":{"created":11,"completed":12}},{"id":"msg_0003","type":"shell","shellID":"sh_1","command":"ls","status":"running","time":{"created":13}},{"id":"msg_0004","type":"compaction","status":"running","reason":"auto","summary":"sum","time":{"created":14}},{"id":"msg_0005","type":"assistant","agent":"build","model":{"providerID":"p","id":"m"},"content":[{"type":"text","text":"hel"},{"type":"reasoning","text":"th","time":{"created":15}},{"type":"tool","id":"call_1","name":"bash","state":{"status":"streaming","input":"{"},"time":{"created":16}},{"type":"tool","id":"call_2","name":"read","state":{"status":"running","input":{"path":"a"},"metadata":{}},"time":{"created":17,"ran":17}}],"time":{"created":15}},{"id":"msg_0006","type":"user","text":"next","time":{"created":18}}],"ses_b":[]},"more":{"ses_a":true,"ses_b":false},"pending":{"ses_a":[{"id":"msg_0006","sessionID":"ses_a","time":{"created":18},"type":"user","delivery":"steer","payload":{"text":"next"}}],"ses_b":[]},"permissions":{"ses_a":[{"id":"per_1","sessionID":"ses_a","action":"bash","resources":[]}]},"forms":{"ses_a":[{"id":"frm_1","sessionID":"ses_a","title":"Ask","fields":[{"key":"x","type":"string"}]}],"global":[]},"projects":{"project":{"id":"project","canonical":"/project","time":{"created":1,"updated":1,"active":1},"sandboxes":[]}},"location":{"info":{"directory":"/project","project":{"id":"project","directory":"/project","canonical":"/project"}},"vcs":{"branch":{"current":"main","default":"main"}},"agent":[],"command":[],"config":[],"integration":[{"id":"openai","name":"OpenAI","methods":[],"connections":[{"type":"credential","id":"crd_1","label":"crd_1","method":"key"},{"type":"credential","id":"crd_2","label":"crd_2","method":"key"}]}],"mcpServer":[],"mcpResource":[],"model":[],"provider":[],"reference":[],"skill":[],"websearch":[],"usageLimits":null,"shell":[{"id":"sh_1","status":"running","command":"ls","cwd":"/project","shell":"bash","file":"/tmp/sh_1","metadata":{"sessionID":"ses_a"},"time":{"started":13},"location":{"directory":"/project"}}]},"requests":["GET /api/reference?location[directory]=/project"]}}, + {"name":"permission.asked","state":"empty","event":{"id":"evt_9063","created":1063,"type":"permission.asked","data":{"id":"per_2","sessionID":"ses_a","action":"edit","resources":["a"]},"location":{"directory":"/project"}},"expected":{"sessions":{},"missing":[],"family":{"ses_a":[],"ses_b":[]},"status":{"ses_a":"idle","ses_b":"idle"},"messages":{"ses_a":[],"ses_b":[]},"more":{"ses_a":false,"ses_b":false},"pending":{"ses_a":[],"ses_b":[]},"permissions":{"ses_a":[{"id":"per_2","sessionID":"ses_a","action":"edit","resources":["a"]}]},"forms":{},"projects":{},"location":{"shell":[]},"requests":[]}}, + {"name":"permission.asked","state":"loaded","event":{"id":"evt_9063","created":1063,"type":"permission.asked","data":{"id":"per_2","sessionID":"ses_a","action":"edit","resources":["a"]},"location":{"directory":"/project"}},"expected":{"sessions":{"ses_a":{"id":"ses_a","projectID":"project","agent":"build","model":{"providerID":"p","id":"m"},"title":"Title ses_a","cost":0.5,"tokens":{"input":1,"output":1,"reasoning":0,"cache":{"read":0,"write":0}},"time":{"created":1,"updated":2},"location":{"directory":"/project"}}},"missing":[],"family":{"ses_a":["ses_a"],"ses_b":[]},"status":{"ses_a":"idle","ses_b":"idle"},"messages":{"ses_a":[{"id":"msg_0001","type":"user","text":"hello","time":{"created":10}},{"id":"msg_0002","type":"assistant","agent":"build","model":{"providerID":"p","id":"m"},"content":[{"type":"text","text":"done"}],"time":{"created":11,"completed":12}},{"id":"msg_0003","type":"shell","shellID":"sh_1","command":"ls","status":"running","time":{"created":13}},{"id":"msg_0004","type":"compaction","status":"running","reason":"auto","summary":"sum","time":{"created":14}},{"id":"msg_0005","type":"assistant","agent":"build","model":{"providerID":"p","id":"m"},"content":[{"type":"text","text":"hel"},{"type":"reasoning","text":"th","time":{"created":15}},{"type":"tool","id":"call_1","name":"bash","state":{"status":"streaming","input":"{"},"time":{"created":16}},{"type":"tool","id":"call_2","name":"read","state":{"status":"running","input":{"path":"a"},"metadata":{}},"time":{"created":17,"ran":17}}],"time":{"created":15}},{"id":"msg_0006","type":"user","text":"next","time":{"created":18}}],"ses_b":[]},"more":{"ses_a":true,"ses_b":false},"pending":{"ses_a":[{"id":"msg_0006","sessionID":"ses_a","time":{"created":18},"type":"user","delivery":"steer","payload":{"text":"next"}}],"ses_b":[]},"permissions":{"ses_a":[{"id":"per_1","sessionID":"ses_a","action":"bash","resources":[]},{"id":"per_2","sessionID":"ses_a","action":"edit","resources":["a"]}]},"forms":{"ses_a":[{"id":"frm_1","sessionID":"ses_a","title":"Ask","fields":[{"key":"x","type":"string"}]}],"global":[]},"projects":{"project":{"id":"project","canonical":"/project","time":{"created":1,"updated":1,"active":1},"sandboxes":[]}},"location":{"info":{"directory":"/project","project":{"id":"project","directory":"/project","canonical":"/project"}},"vcs":{"branch":{"current":"main","default":"main"}},"agent":[],"command":[],"config":[],"integration":[{"id":"openai","name":"OpenAI","methods":[],"connections":[{"type":"credential","id":"crd_1","label":"crd_1","method":"key"},{"type":"credential","id":"crd_2","label":"crd_2","method":"key"}]}],"mcpServer":[],"mcpResource":[],"model":[],"provider":[],"reference":[],"skill":[],"websearch":[],"usageLimits":null,"shell":[{"id":"sh_1","status":"running","command":"ls","cwd":"/project","shell":"bash","file":"/tmp/sh_1","metadata":{"sessionID":"ses_a"},"time":{"started":13},"location":{"directory":"/project"}}]},"requests":[]}}, + {"name":"permission.replied","state":"empty","event":{"id":"evt_9064","created":1064,"type":"permission.replied","data":{"sessionID":"ses_a","requestID":"per_1","reply":"once"},"location":{"directory":"/project"}},"expected":{"sessions":{},"missing":[],"family":{"ses_a":[],"ses_b":[]},"status":{"ses_a":"idle","ses_b":"idle"},"messages":{"ses_a":[],"ses_b":[]},"more":{"ses_a":false,"ses_b":false},"pending":{"ses_a":[],"ses_b":[]},"permissions":{},"forms":{},"projects":{},"location":{"shell":[]},"requests":[]}}, + {"name":"permission.replied","state":"loaded","event":{"id":"evt_9064","created":1064,"type":"permission.replied","data":{"sessionID":"ses_a","requestID":"per_1","reply":"once"},"location":{"directory":"/project"}},"expected":{"sessions":{"ses_a":{"id":"ses_a","projectID":"project","agent":"build","model":{"providerID":"p","id":"m"},"title":"Title ses_a","cost":0.5,"tokens":{"input":1,"output":1,"reasoning":0,"cache":{"read":0,"write":0}},"time":{"created":1,"updated":2},"location":{"directory":"/project"}}},"missing":[],"family":{"ses_a":["ses_a"],"ses_b":[]},"status":{"ses_a":"idle","ses_b":"idle"},"messages":{"ses_a":[{"id":"msg_0001","type":"user","text":"hello","time":{"created":10}},{"id":"msg_0002","type":"assistant","agent":"build","model":{"providerID":"p","id":"m"},"content":[{"type":"text","text":"done"}],"time":{"created":11,"completed":12}},{"id":"msg_0003","type":"shell","shellID":"sh_1","command":"ls","status":"running","time":{"created":13}},{"id":"msg_0004","type":"compaction","status":"running","reason":"auto","summary":"sum","time":{"created":14}},{"id":"msg_0005","type":"assistant","agent":"build","model":{"providerID":"p","id":"m"},"content":[{"type":"text","text":"hel"},{"type":"reasoning","text":"th","time":{"created":15}},{"type":"tool","id":"call_1","name":"bash","state":{"status":"streaming","input":"{"},"time":{"created":16}},{"type":"tool","id":"call_2","name":"read","state":{"status":"running","input":{"path":"a"},"metadata":{}},"time":{"created":17,"ran":17}}],"time":{"created":15}},{"id":"msg_0006","type":"user","text":"next","time":{"created":18}}],"ses_b":[]},"more":{"ses_a":true,"ses_b":false},"pending":{"ses_a":[{"id":"msg_0006","sessionID":"ses_a","time":{"created":18},"type":"user","delivery":"steer","payload":{"text":"next"}}],"ses_b":[]},"permissions":{"ses_a":[]},"forms":{"ses_a":[{"id":"frm_1","sessionID":"ses_a","title":"Ask","fields":[{"key":"x","type":"string"}]}],"global":[]},"projects":{"project":{"id":"project","canonical":"/project","time":{"created":1,"updated":1,"active":1},"sandboxes":[]}},"location":{"info":{"directory":"/project","project":{"id":"project","directory":"/project","canonical":"/project"}},"vcs":{"branch":{"current":"main","default":"main"}},"agent":[],"command":[],"config":[],"integration":[{"id":"openai","name":"OpenAI","methods":[],"connections":[{"type":"credential","id":"crd_1","label":"crd_1","method":"key"},{"type":"credential","id":"crd_2","label":"crd_2","method":"key"}]}],"mcpServer":[],"mcpResource":[],"model":[],"provider":[],"reference":[],"skill":[],"websearch":[],"usageLimits":null,"shell":[{"id":"sh_1","status":"running","command":"ls","cwd":"/project","shell":"bash","file":"/tmp/sh_1","metadata":{"sessionID":"ses_a"},"time":{"started":13},"location":{"directory":"/project"}}]},"requests":[]}}, + {"name":"plugin.updated","state":"empty","event":{"id":"evt_9065","created":1065,"type":"plugin.updated","data":{},"location":{"directory":"/project"}},"expected":{"sessions":{},"missing":[],"family":{"ses_a":[],"ses_b":[]},"status":{"ses_a":"idle","ses_b":"idle"},"messages":{"ses_a":[],"ses_b":[]},"more":{"ses_a":false,"ses_b":false},"pending":{"ses_a":[],"ses_b":[]},"permissions":{},"forms":{},"projects":{},"location":{"shell":[]},"requests":[]}}, + {"name":"plugin.updated","state":"loaded","event":{"id":"evt_9065","created":1065,"type":"plugin.updated","data":{},"location":{"directory":"/project"}},"expected":{"sessions":{"ses_a":{"id":"ses_a","projectID":"project","agent":"build","model":{"providerID":"p","id":"m"},"title":"Title ses_a","cost":0.5,"tokens":{"input":1,"output":1,"reasoning":0,"cache":{"read":0,"write":0}},"time":{"created":1,"updated":2},"location":{"directory":"/project"}}},"missing":[],"family":{"ses_a":["ses_a"],"ses_b":[]},"status":{"ses_a":"idle","ses_b":"idle"},"messages":{"ses_a":[{"id":"msg_0001","type":"user","text":"hello","time":{"created":10}},{"id":"msg_0002","type":"assistant","agent":"build","model":{"providerID":"p","id":"m"},"content":[{"type":"text","text":"done"}],"time":{"created":11,"completed":12}},{"id":"msg_0003","type":"shell","shellID":"sh_1","command":"ls","status":"running","time":{"created":13}},{"id":"msg_0004","type":"compaction","status":"running","reason":"auto","summary":"sum","time":{"created":14}},{"id":"msg_0005","type":"assistant","agent":"build","model":{"providerID":"p","id":"m"},"content":[{"type":"text","text":"hel"},{"type":"reasoning","text":"th","time":{"created":15}},{"type":"tool","id":"call_1","name":"bash","state":{"status":"streaming","input":"{"},"time":{"created":16}},{"type":"tool","id":"call_2","name":"read","state":{"status":"running","input":{"path":"a"},"metadata":{}},"time":{"created":17,"ran":17}}],"time":{"created":15}},{"id":"msg_0006","type":"user","text":"next","time":{"created":18}}],"ses_b":[]},"more":{"ses_a":true,"ses_b":false},"pending":{"ses_a":[{"id":"msg_0006","sessionID":"ses_a","time":{"created":18},"type":"user","delivery":"steer","payload":{"text":"next"}}],"ses_b":[]},"permissions":{"ses_a":[{"id":"per_1","sessionID":"ses_a","action":"bash","resources":[]}]},"forms":{"ses_a":[{"id":"frm_1","sessionID":"ses_a","title":"Ask","fields":[{"key":"x","type":"string"}]}],"global":[]},"projects":{"project":{"id":"project","canonical":"/project","time":{"created":1,"updated":1,"active":1},"sandboxes":[]}},"location":{"info":{"directory":"/project","project":{"id":"project","directory":"/project","canonical":"/project"}},"vcs":{"branch":{"current":"main","default":"main"}},"agent":[],"command":[],"config":[],"integration":[{"id":"openai","name":"OpenAI","methods":[],"connections":[{"type":"credential","id":"crd_1","label":"crd_1","method":"key"},{"type":"credential","id":"crd_2","label":"crd_2","method":"key"}]}],"mcpServer":[],"mcpResource":[],"model":[],"provider":[],"reference":[],"skill":[],"websearch":[],"usageLimits":null,"shell":[{"id":"sh_1","status":"running","command":"ls","cwd":"/project","shell":"bash","file":"/tmp/sh_1","metadata":{"sessionID":"ses_a"},"time":{"started":13},"location":{"directory":"/project"}}]},"requests":[]}}, + {"name":"project.updated","state":"empty","event":{"id":"evt_9066","created":1066,"type":"project.updated","data":{"id":"project","canonical":"/project","time":{"created":0,"updated":0,"active":0},"sandboxes":[],"name":"Renamed"},"location":{"directory":"/project"}},"expected":{"sessions":{},"missing":[],"family":{"ses_a":[],"ses_b":[]},"status":{"ses_a":"idle","ses_b":"idle"},"messages":{"ses_a":[],"ses_b":[]},"more":{"ses_a":false,"ses_b":false},"pending":{"ses_a":[],"ses_b":[]},"permissions":{},"forms":{},"projects":{"project":{"id":"project","canonical":"/project","time":{"created":0,"updated":0,"active":0},"sandboxes":[],"name":"Renamed"}},"location":{"shell":[]},"requests":[]}}, + {"name":"project.updated","state":"loaded","event":{"id":"evt_9066","created":1066,"type":"project.updated","data":{"id":"project","canonical":"/project","time":{"created":0,"updated":0,"active":0},"sandboxes":[],"name":"Renamed"},"location":{"directory":"/project"}},"expected":{"sessions":{"ses_a":{"id":"ses_a","projectID":"project","agent":"build","model":{"providerID":"p","id":"m"},"title":"Title ses_a","cost":0.5,"tokens":{"input":1,"output":1,"reasoning":0,"cache":{"read":0,"write":0}},"time":{"created":1,"updated":2},"location":{"directory":"/project"}}},"missing":[],"family":{"ses_a":["ses_a"],"ses_b":[]},"status":{"ses_a":"idle","ses_b":"idle"},"messages":{"ses_a":[{"id":"msg_0001","type":"user","text":"hello","time":{"created":10}},{"id":"msg_0002","type":"assistant","agent":"build","model":{"providerID":"p","id":"m"},"content":[{"type":"text","text":"done"}],"time":{"created":11,"completed":12}},{"id":"msg_0003","type":"shell","shellID":"sh_1","command":"ls","status":"running","time":{"created":13}},{"id":"msg_0004","type":"compaction","status":"running","reason":"auto","summary":"sum","time":{"created":14}},{"id":"msg_0005","type":"assistant","agent":"build","model":{"providerID":"p","id":"m"},"content":[{"type":"text","text":"hel"},{"type":"reasoning","text":"th","time":{"created":15}},{"type":"tool","id":"call_1","name":"bash","state":{"status":"streaming","input":"{"},"time":{"created":16}},{"type":"tool","id":"call_2","name":"read","state":{"status":"running","input":{"path":"a"},"metadata":{}},"time":{"created":17,"ran":17}}],"time":{"created":15}},{"id":"msg_0006","type":"user","text":"next","time":{"created":18}}],"ses_b":[]},"more":{"ses_a":true,"ses_b":false},"pending":{"ses_a":[{"id":"msg_0006","sessionID":"ses_a","time":{"created":18},"type":"user","delivery":"steer","payload":{"text":"next"}}],"ses_b":[]},"permissions":{"ses_a":[{"id":"per_1","sessionID":"ses_a","action":"bash","resources":[]}]},"forms":{"ses_a":[{"id":"frm_1","sessionID":"ses_a","title":"Ask","fields":[{"key":"x","type":"string"}]}],"global":[]},"projects":{"project":{"id":"project","canonical":"/project","time":{"created":0,"updated":0,"active":0},"sandboxes":[],"name":"Renamed"}},"location":{"info":{"directory":"/project","project":{"id":"project","directory":"/project","canonical":"/project"}},"vcs":{"branch":{"current":"main","default":"main"}},"agent":[],"command":[],"config":[],"integration":[{"id":"openai","name":"OpenAI","methods":[],"connections":[{"type":"credential","id":"crd_1","label":"crd_1","method":"key"},{"type":"credential","id":"crd_2","label":"crd_2","method":"key"}]}],"mcpServer":[],"mcpResource":[],"model":[],"provider":[],"reference":[],"skill":[],"websearch":[],"usageLimits":null,"shell":[{"id":"sh_1","status":"running","command":"ls","cwd":"/project","shell":"bash","file":"/tmp/sh_1","metadata":{"sessionID":"ses_a"},"time":{"started":13},"location":{"directory":"/project"}}]},"requests":[]}}, + {"name":"worktree.updated","state":"empty","event":{"id":"evt_9067","created":1067,"type":"worktree.updated","data":{"projectID":"x"},"location":{"directory":"/project"}},"expected":{"sessions":{},"missing":[],"family":{"ses_a":[],"ses_b":[]},"status":{"ses_a":"idle","ses_b":"idle"},"messages":{"ses_a":[],"ses_b":[]},"more":{"ses_a":false,"ses_b":false},"pending":{"ses_a":[],"ses_b":[]},"permissions":{},"forms":{},"projects":{},"location":{"shell":[]},"requests":[]}}, + {"name":"worktree.updated","state":"loaded","event":{"id":"evt_9067","created":1067,"type":"worktree.updated","data":{"projectID":"x"},"location":{"directory":"/project"}},"expected":{"sessions":{"ses_a":{"id":"ses_a","projectID":"project","agent":"build","model":{"providerID":"p","id":"m"},"title":"Title ses_a","cost":0.5,"tokens":{"input":1,"output":1,"reasoning":0,"cache":{"read":0,"write":0}},"time":{"created":1,"updated":2},"location":{"directory":"/project"}}},"missing":[],"family":{"ses_a":["ses_a"],"ses_b":[]},"status":{"ses_a":"idle","ses_b":"idle"},"messages":{"ses_a":[{"id":"msg_0001","type":"user","text":"hello","time":{"created":10}},{"id":"msg_0002","type":"assistant","agent":"build","model":{"providerID":"p","id":"m"},"content":[{"type":"text","text":"done"}],"time":{"created":11,"completed":12}},{"id":"msg_0003","type":"shell","shellID":"sh_1","command":"ls","status":"running","time":{"created":13}},{"id":"msg_0004","type":"compaction","status":"running","reason":"auto","summary":"sum","time":{"created":14}},{"id":"msg_0005","type":"assistant","agent":"build","model":{"providerID":"p","id":"m"},"content":[{"type":"text","text":"hel"},{"type":"reasoning","text":"th","time":{"created":15}},{"type":"tool","id":"call_1","name":"bash","state":{"status":"streaming","input":"{"},"time":{"created":16}},{"type":"tool","id":"call_2","name":"read","state":{"status":"running","input":{"path":"a"},"metadata":{}},"time":{"created":17,"ran":17}}],"time":{"created":15}},{"id":"msg_0006","type":"user","text":"next","time":{"created":18}}],"ses_b":[]},"more":{"ses_a":true,"ses_b":false},"pending":{"ses_a":[{"id":"msg_0006","sessionID":"ses_a","time":{"created":18},"type":"user","delivery":"steer","payload":{"text":"next"}}],"ses_b":[]},"permissions":{"ses_a":[{"id":"per_1","sessionID":"ses_a","action":"bash","resources":[]}]},"forms":{"ses_a":[{"id":"frm_1","sessionID":"ses_a","title":"Ask","fields":[{"key":"x","type":"string"}]}],"global":[]},"projects":{"project":{"id":"project","canonical":"/project","time":{"created":1,"updated":1,"active":1},"sandboxes":[]}},"location":{"info":{"directory":"/project","project":{"id":"project","directory":"/project","canonical":"/project"}},"vcs":{"branch":{"current":"main","default":"main"}},"agent":[],"command":[],"config":[],"integration":[{"id":"openai","name":"OpenAI","methods":[],"connections":[{"type":"credential","id":"crd_1","label":"crd_1","method":"key"},{"type":"credential","id":"crd_2","label":"crd_2","method":"key"}]}],"mcpServer":[],"mcpResource":[],"model":[],"provider":[],"reference":[],"skill":[],"websearch":[],"usageLimits":null,"shell":[{"id":"sh_1","status":"running","command":"ls","cwd":"/project","shell":"bash","file":"/tmp/sh_1","metadata":{"sessionID":"ses_a"},"time":{"started":13},"location":{"directory":"/project"}}]},"requests":[]}}, + {"name":"worktree.resolved","state":"empty","event":{"id":"evt_9068","created":1068,"type":"worktree.resolved","durable":{"aggregateID":"x","seq":0,"version":1},"data":{"projectID":"x","directory":"x","previous":"x","adopted":["project"]},"location":{"directory":"/project"}},"expected":{"sessions":{},"missing":[],"family":{"ses_a":[],"ses_b":[]},"status":{"ses_a":"idle","ses_b":"idle"},"messages":{"ses_a":[],"ses_b":[]},"more":{"ses_a":false,"ses_b":false},"pending":{"ses_a":[],"ses_b":[]},"permissions":{},"forms":{},"projects":{},"location":{"shell":[]},"requests":[]}}, + {"name":"worktree.resolved","state":"loaded","event":{"id":"evt_9068","created":1068,"type":"worktree.resolved","durable":{"aggregateID":"x","seq":0,"version":1},"data":{"projectID":"x","directory":"x","previous":"x","adopted":["project"]},"location":{"directory":"/project"}},"expected":{"sessions":{"ses_a":{"id":"ses_a","projectID":"project","agent":"build","model":{"providerID":"p","id":"m"},"title":"Title ses_a","cost":0.5,"tokens":{"input":1,"output":1,"reasoning":0,"cache":{"read":0,"write":0}},"time":{"created":1,"updated":2},"location":{"directory":"/project"}}},"missing":[],"family":{"ses_a":["ses_a"],"ses_b":[]},"status":{"ses_a":"idle","ses_b":"idle"},"messages":{"ses_a":[{"id":"msg_0001","type":"user","text":"hello","time":{"created":10}},{"id":"msg_0002","type":"assistant","agent":"build","model":{"providerID":"p","id":"m"},"content":[{"type":"text","text":"done"}],"time":{"created":11,"completed":12}},{"id":"msg_0003","type":"shell","shellID":"sh_1","command":"ls","status":"running","time":{"created":13}},{"id":"msg_0004","type":"compaction","status":"running","reason":"auto","summary":"sum","time":{"created":14}},{"id":"msg_0005","type":"assistant","agent":"build","model":{"providerID":"p","id":"m"},"content":[{"type":"text","text":"hel"},{"type":"reasoning","text":"th","time":{"created":15}},{"type":"tool","id":"call_1","name":"bash","state":{"status":"streaming","input":"{"},"time":{"created":16}},{"type":"tool","id":"call_2","name":"read","state":{"status":"running","input":{"path":"a"},"metadata":{}},"time":{"created":17,"ran":17}}],"time":{"created":15}},{"id":"msg_0006","type":"user","text":"next","time":{"created":18}}],"ses_b":[]},"more":{"ses_a":true,"ses_b":false},"pending":{"ses_a":[{"id":"msg_0006","sessionID":"ses_a","time":{"created":18},"type":"user","delivery":"steer","payload":{"text":"next"}}],"ses_b":[]},"permissions":{"ses_a":[{"id":"per_1","sessionID":"ses_a","action":"bash","resources":[]}]},"forms":{"ses_a":[{"id":"frm_1","sessionID":"ses_a","title":"Ask","fields":[{"key":"x","type":"string"}]}],"global":[]},"projects":{"project":{"id":"project","canonical":"/project","time":{"created":1,"updated":1,"active":1},"sandboxes":[]}},"location":{"info":{"directory":"/project","project":{"id":"project","directory":"/project","canonical":"/project"}},"vcs":{"branch":{"current":"main","default":"main"}},"agent":[],"command":[],"config":[],"integration":[{"id":"openai","name":"OpenAI","methods":[],"connections":[{"type":"credential","id":"crd_1","label":"crd_1","method":"key"},{"type":"credential","id":"crd_2","label":"crd_2","method":"key"}]}],"mcpServer":[],"mcpResource":[],"model":[],"provider":[],"reference":[],"skill":[],"websearch":[],"usageLimits":null,"shell":[{"id":"sh_1","status":"running","command":"ls","cwd":"/project","shell":"bash","file":"/tmp/sh_1","metadata":{"sessionID":"ses_a"},"time":{"started":13},"location":{"directory":"/project"}}]},"requests":[]}}, + {"name":"command.updated","state":"empty","event":{"id":"evt_9069","created":1069,"type":"command.updated","data":{},"location":{"directory":"/project"}},"expected":{"sessions":{},"missing":[],"family":{"ses_a":[],"ses_b":[]},"status":{"ses_a":"idle","ses_b":"idle"},"messages":{"ses_a":[],"ses_b":[]},"more":{"ses_a":false,"ses_b":false},"pending":{"ses_a":[],"ses_b":[]},"permissions":{},"forms":{},"projects":{},"location":{"shell":[]},"requests":[]}}, + {"name":"command.updated","state":"loaded","event":{"id":"evt_9069","created":1069,"type":"command.updated","data":{},"location":{"directory":"/project"}},"expected":{"sessions":{"ses_a":{"id":"ses_a","projectID":"project","agent":"build","model":{"providerID":"p","id":"m"},"title":"Title ses_a","cost":0.5,"tokens":{"input":1,"output":1,"reasoning":0,"cache":{"read":0,"write":0}},"time":{"created":1,"updated":2},"location":{"directory":"/project"}}},"missing":[],"family":{"ses_a":["ses_a"],"ses_b":[]},"status":{"ses_a":"idle","ses_b":"idle"},"messages":{"ses_a":[{"id":"msg_0001","type":"user","text":"hello","time":{"created":10}},{"id":"msg_0002","type":"assistant","agent":"build","model":{"providerID":"p","id":"m"},"content":[{"type":"text","text":"done"}],"time":{"created":11,"completed":12}},{"id":"msg_0003","type":"shell","shellID":"sh_1","command":"ls","status":"running","time":{"created":13}},{"id":"msg_0004","type":"compaction","status":"running","reason":"auto","summary":"sum","time":{"created":14}},{"id":"msg_0005","type":"assistant","agent":"build","model":{"providerID":"p","id":"m"},"content":[{"type":"text","text":"hel"},{"type":"reasoning","text":"th","time":{"created":15}},{"type":"tool","id":"call_1","name":"bash","state":{"status":"streaming","input":"{"},"time":{"created":16}},{"type":"tool","id":"call_2","name":"read","state":{"status":"running","input":{"path":"a"},"metadata":{}},"time":{"created":17,"ran":17}}],"time":{"created":15}},{"id":"msg_0006","type":"user","text":"next","time":{"created":18}}],"ses_b":[]},"more":{"ses_a":true,"ses_b":false},"pending":{"ses_a":[{"id":"msg_0006","sessionID":"ses_a","time":{"created":18},"type":"user","delivery":"steer","payload":{"text":"next"}}],"ses_b":[]},"permissions":{"ses_a":[{"id":"per_1","sessionID":"ses_a","action":"bash","resources":[]}]},"forms":{"ses_a":[{"id":"frm_1","sessionID":"ses_a","title":"Ask","fields":[{"key":"x","type":"string"}]}],"global":[]},"projects":{"project":{"id":"project","canonical":"/project","time":{"created":1,"updated":1,"active":1},"sandboxes":[]}},"location":{"info":{"directory":"/project","project":{"id":"project","directory":"/project","canonical":"/project"}},"vcs":{"branch":{"current":"main","default":"main"}},"agent":[],"command":[],"config":[],"integration":[{"id":"openai","name":"OpenAI","methods":[],"connections":[{"type":"credential","id":"crd_1","label":"crd_1","method":"key"},{"type":"credential","id":"crd_2","label":"crd_2","method":"key"}]}],"mcpServer":[],"mcpResource":[],"model":[],"provider":[],"reference":[],"skill":[],"websearch":[],"usageLimits":null,"shell":[{"id":"sh_1","status":"running","command":"ls","cwd":"/project","shell":"bash","file":"/tmp/sh_1","metadata":{"sessionID":"ses_a"},"time":{"started":13},"location":{"directory":"/project"}}]},"requests":["GET /api/command?location[directory]=/project"]}}, + {"name":"config.updated","state":"empty","event":{"id":"evt_9070","created":1070,"type":"config.updated","data":{},"location":{"directory":"/project"}},"expected":{"sessions":{},"missing":[],"family":{"ses_a":[],"ses_b":[]},"status":{"ses_a":"idle","ses_b":"idle"},"messages":{"ses_a":[],"ses_b":[]},"more":{"ses_a":false,"ses_b":false},"pending":{"ses_a":[],"ses_b":[]},"permissions":{},"forms":{},"projects":{},"location":{"shell":[]},"requests":[]}}, + {"name":"config.updated","state":"loaded","event":{"id":"evt_9070","created":1070,"type":"config.updated","data":{},"location":{"directory":"/project"}},"expected":{"sessions":{"ses_a":{"id":"ses_a","projectID":"project","agent":"build","model":{"providerID":"p","id":"m"},"title":"Title ses_a","cost":0.5,"tokens":{"input":1,"output":1,"reasoning":0,"cache":{"read":0,"write":0}},"time":{"created":1,"updated":2},"location":{"directory":"/project"}}},"missing":[],"family":{"ses_a":["ses_a"],"ses_b":[]},"status":{"ses_a":"idle","ses_b":"idle"},"messages":{"ses_a":[{"id":"msg_0001","type":"user","text":"hello","time":{"created":10}},{"id":"msg_0002","type":"assistant","agent":"build","model":{"providerID":"p","id":"m"},"content":[{"type":"text","text":"done"}],"time":{"created":11,"completed":12}},{"id":"msg_0003","type":"shell","shellID":"sh_1","command":"ls","status":"running","time":{"created":13}},{"id":"msg_0004","type":"compaction","status":"running","reason":"auto","summary":"sum","time":{"created":14}},{"id":"msg_0005","type":"assistant","agent":"build","model":{"providerID":"p","id":"m"},"content":[{"type":"text","text":"hel"},{"type":"reasoning","text":"th","time":{"created":15}},{"type":"tool","id":"call_1","name":"bash","state":{"status":"streaming","input":"{"},"time":{"created":16}},{"type":"tool","id":"call_2","name":"read","state":{"status":"running","input":{"path":"a"},"metadata":{}},"time":{"created":17,"ran":17}}],"time":{"created":15}},{"id":"msg_0006","type":"user","text":"next","time":{"created":18}}],"ses_b":[]},"more":{"ses_a":true,"ses_b":false},"pending":{"ses_a":[{"id":"msg_0006","sessionID":"ses_a","time":{"created":18},"type":"user","delivery":"steer","payload":{"text":"next"}}],"ses_b":[]},"permissions":{"ses_a":[{"id":"per_1","sessionID":"ses_a","action":"bash","resources":[]}]},"forms":{"ses_a":[{"id":"frm_1","sessionID":"ses_a","title":"Ask","fields":[{"key":"x","type":"string"}]}],"global":[]},"projects":{"project":{"id":"project","canonical":"/project","time":{"created":1,"updated":1,"active":1},"sandboxes":[]}},"location":{"info":{"directory":"/project","project":{"id":"project","directory":"/project","canonical":"/project"}},"vcs":{"branch":{"current":"main","default":"main"}},"agent":[],"command":[],"config":[],"integration":[{"id":"openai","name":"OpenAI","methods":[],"connections":[{"type":"credential","id":"crd_1","label":"crd_1","method":"key"},{"type":"credential","id":"crd_2","label":"crd_2","method":"key"}]}],"mcpServer":[],"mcpResource":[],"model":[],"provider":[],"reference":[],"skill":[],"websearch":[],"usageLimits":null,"shell":[{"id":"sh_1","status":"running","command":"ls","cwd":"/project","shell":"bash","file":"/tmp/sh_1","metadata":{"sessionID":"ses_a"},"time":{"started":13},"location":{"directory":"/project"}}]},"requests":["GET /api/config?location[directory]=/project","GET /api/websearch/provider?location[directory]=/project"]}}, + {"name":"skill.updated","state":"empty","event":{"id":"evt_9071","created":1071,"type":"skill.updated","data":{},"location":{"directory":"/project"}},"expected":{"sessions":{},"missing":[],"family":{"ses_a":[],"ses_b":[]},"status":{"ses_a":"idle","ses_b":"idle"},"messages":{"ses_a":[],"ses_b":[]},"more":{"ses_a":false,"ses_b":false},"pending":{"ses_a":[],"ses_b":[]},"permissions":{},"forms":{},"projects":{},"location":{"shell":[]},"requests":[]}}, + {"name":"skill.updated","state":"loaded","event":{"id":"evt_9071","created":1071,"type":"skill.updated","data":{},"location":{"directory":"/project"}},"expected":{"sessions":{"ses_a":{"id":"ses_a","projectID":"project","agent":"build","model":{"providerID":"p","id":"m"},"title":"Title ses_a","cost":0.5,"tokens":{"input":1,"output":1,"reasoning":0,"cache":{"read":0,"write":0}},"time":{"created":1,"updated":2},"location":{"directory":"/project"}}},"missing":[],"family":{"ses_a":["ses_a"],"ses_b":[]},"status":{"ses_a":"idle","ses_b":"idle"},"messages":{"ses_a":[{"id":"msg_0001","type":"user","text":"hello","time":{"created":10}},{"id":"msg_0002","type":"assistant","agent":"build","model":{"providerID":"p","id":"m"},"content":[{"type":"text","text":"done"}],"time":{"created":11,"completed":12}},{"id":"msg_0003","type":"shell","shellID":"sh_1","command":"ls","status":"running","time":{"created":13}},{"id":"msg_0004","type":"compaction","status":"running","reason":"auto","summary":"sum","time":{"created":14}},{"id":"msg_0005","type":"assistant","agent":"build","model":{"providerID":"p","id":"m"},"content":[{"type":"text","text":"hel"},{"type":"reasoning","text":"th","time":{"created":15}},{"type":"tool","id":"call_1","name":"bash","state":{"status":"streaming","input":"{"},"time":{"created":16}},{"type":"tool","id":"call_2","name":"read","state":{"status":"running","input":{"path":"a"},"metadata":{}},"time":{"created":17,"ran":17}}],"time":{"created":15}},{"id":"msg_0006","type":"user","text":"next","time":{"created":18}}],"ses_b":[]},"more":{"ses_a":true,"ses_b":false},"pending":{"ses_a":[{"id":"msg_0006","sessionID":"ses_a","time":{"created":18},"type":"user","delivery":"steer","payload":{"text":"next"}}],"ses_b":[]},"permissions":{"ses_a":[{"id":"per_1","sessionID":"ses_a","action":"bash","resources":[]}]},"forms":{"ses_a":[{"id":"frm_1","sessionID":"ses_a","title":"Ask","fields":[{"key":"x","type":"string"}]}],"global":[]},"projects":{"project":{"id":"project","canonical":"/project","time":{"created":1,"updated":1,"active":1},"sandboxes":[]}},"location":{"info":{"directory":"/project","project":{"id":"project","directory":"/project","canonical":"/project"}},"vcs":{"branch":{"current":"main","default":"main"}},"agent":[],"command":[],"config":[],"integration":[{"id":"openai","name":"OpenAI","methods":[],"connections":[{"type":"credential","id":"crd_1","label":"crd_1","method":"key"},{"type":"credential","id":"crd_2","label":"crd_2","method":"key"}]}],"mcpServer":[],"mcpResource":[],"model":[],"provider":[],"reference":[],"skill":[],"websearch":[],"usageLimits":null,"shell":[{"id":"sh_1","status":"running","command":"ls","cwd":"/project","shell":"bash","file":"/tmp/sh_1","metadata":{"sessionID":"ses_a"},"time":{"started":13},"location":{"directory":"/project"}}]},"requests":["GET /api/skill?location[directory]=/project"]}}, + {"name":"pty.created","state":"empty","event":{"id":"evt_9072","created":1072,"type":"pty.created","data":{"info":{"id":"pty_x","title":"x","command":"x","args":[],"cwd":"x","status":"running","pid":0}},"location":{"directory":"/project"}},"expected":{"sessions":{},"missing":[],"family":{"ses_a":[],"ses_b":[]},"status":{"ses_a":"idle","ses_b":"idle"},"messages":{"ses_a":[],"ses_b":[]},"more":{"ses_a":false,"ses_b":false},"pending":{"ses_a":[],"ses_b":[]},"permissions":{},"forms":{},"projects":{},"location":{"shell":[]},"requests":[]}}, + {"name":"pty.created","state":"loaded","event":{"id":"evt_9072","created":1072,"type":"pty.created","data":{"info":{"id":"pty_x","title":"x","command":"x","args":[],"cwd":"x","status":"running","pid":0}},"location":{"directory":"/project"}},"expected":{"sessions":{"ses_a":{"id":"ses_a","projectID":"project","agent":"build","model":{"providerID":"p","id":"m"},"title":"Title ses_a","cost":0.5,"tokens":{"input":1,"output":1,"reasoning":0,"cache":{"read":0,"write":0}},"time":{"created":1,"updated":2},"location":{"directory":"/project"}}},"missing":[],"family":{"ses_a":["ses_a"],"ses_b":[]},"status":{"ses_a":"idle","ses_b":"idle"},"messages":{"ses_a":[{"id":"msg_0001","type":"user","text":"hello","time":{"created":10}},{"id":"msg_0002","type":"assistant","agent":"build","model":{"providerID":"p","id":"m"},"content":[{"type":"text","text":"done"}],"time":{"created":11,"completed":12}},{"id":"msg_0003","type":"shell","shellID":"sh_1","command":"ls","status":"running","time":{"created":13}},{"id":"msg_0004","type":"compaction","status":"running","reason":"auto","summary":"sum","time":{"created":14}},{"id":"msg_0005","type":"assistant","agent":"build","model":{"providerID":"p","id":"m"},"content":[{"type":"text","text":"hel"},{"type":"reasoning","text":"th","time":{"created":15}},{"type":"tool","id":"call_1","name":"bash","state":{"status":"streaming","input":"{"},"time":{"created":16}},{"type":"tool","id":"call_2","name":"read","state":{"status":"running","input":{"path":"a"},"metadata":{}},"time":{"created":17,"ran":17}}],"time":{"created":15}},{"id":"msg_0006","type":"user","text":"next","time":{"created":18}}],"ses_b":[]},"more":{"ses_a":true,"ses_b":false},"pending":{"ses_a":[{"id":"msg_0006","sessionID":"ses_a","time":{"created":18},"type":"user","delivery":"steer","payload":{"text":"next"}}],"ses_b":[]},"permissions":{"ses_a":[{"id":"per_1","sessionID":"ses_a","action":"bash","resources":[]}]},"forms":{"ses_a":[{"id":"frm_1","sessionID":"ses_a","title":"Ask","fields":[{"key":"x","type":"string"}]}],"global":[]},"projects":{"project":{"id":"project","canonical":"/project","time":{"created":1,"updated":1,"active":1},"sandboxes":[]}},"location":{"info":{"directory":"/project","project":{"id":"project","directory":"/project","canonical":"/project"}},"vcs":{"branch":{"current":"main","default":"main"}},"agent":[],"command":[],"config":[],"integration":[{"id":"openai","name":"OpenAI","methods":[],"connections":[{"type":"credential","id":"crd_1","label":"crd_1","method":"key"},{"type":"credential","id":"crd_2","label":"crd_2","method":"key"}]}],"mcpServer":[],"mcpResource":[],"model":[],"provider":[],"reference":[],"skill":[],"websearch":[],"usageLimits":null,"shell":[{"id":"sh_1","status":"running","command":"ls","cwd":"/project","shell":"bash","file":"/tmp/sh_1","metadata":{"sessionID":"ses_a"},"time":{"started":13},"location":{"directory":"/project"}}]},"requests":[]}}, + {"name":"pty.updated","state":"empty","event":{"id":"evt_9073","created":1073,"type":"pty.updated","data":{"info":{"id":"pty_x","title":"x","command":"x","args":[],"cwd":"x","status":"running","pid":0}},"location":{"directory":"/project"}},"expected":{"sessions":{},"missing":[],"family":{"ses_a":[],"ses_b":[]},"status":{"ses_a":"idle","ses_b":"idle"},"messages":{"ses_a":[],"ses_b":[]},"more":{"ses_a":false,"ses_b":false},"pending":{"ses_a":[],"ses_b":[]},"permissions":{},"forms":{},"projects":{},"location":{"shell":[]},"requests":[]}}, + {"name":"pty.updated","state":"loaded","event":{"id":"evt_9073","created":1073,"type":"pty.updated","data":{"info":{"id":"pty_x","title":"x","command":"x","args":[],"cwd":"x","status":"running","pid":0}},"location":{"directory":"/project"}},"expected":{"sessions":{"ses_a":{"id":"ses_a","projectID":"project","agent":"build","model":{"providerID":"p","id":"m"},"title":"Title ses_a","cost":0.5,"tokens":{"input":1,"output":1,"reasoning":0,"cache":{"read":0,"write":0}},"time":{"created":1,"updated":2},"location":{"directory":"/project"}}},"missing":[],"family":{"ses_a":["ses_a"],"ses_b":[]},"status":{"ses_a":"idle","ses_b":"idle"},"messages":{"ses_a":[{"id":"msg_0001","type":"user","text":"hello","time":{"created":10}},{"id":"msg_0002","type":"assistant","agent":"build","model":{"providerID":"p","id":"m"},"content":[{"type":"text","text":"done"}],"time":{"created":11,"completed":12}},{"id":"msg_0003","type":"shell","shellID":"sh_1","command":"ls","status":"running","time":{"created":13}},{"id":"msg_0004","type":"compaction","status":"running","reason":"auto","summary":"sum","time":{"created":14}},{"id":"msg_0005","type":"assistant","agent":"build","model":{"providerID":"p","id":"m"},"content":[{"type":"text","text":"hel"},{"type":"reasoning","text":"th","time":{"created":15}},{"type":"tool","id":"call_1","name":"bash","state":{"status":"streaming","input":"{"},"time":{"created":16}},{"type":"tool","id":"call_2","name":"read","state":{"status":"running","input":{"path":"a"},"metadata":{}},"time":{"created":17,"ran":17}}],"time":{"created":15}},{"id":"msg_0006","type":"user","text":"next","time":{"created":18}}],"ses_b":[]},"more":{"ses_a":true,"ses_b":false},"pending":{"ses_a":[{"id":"msg_0006","sessionID":"ses_a","time":{"created":18},"type":"user","delivery":"steer","payload":{"text":"next"}}],"ses_b":[]},"permissions":{"ses_a":[{"id":"per_1","sessionID":"ses_a","action":"bash","resources":[]}]},"forms":{"ses_a":[{"id":"frm_1","sessionID":"ses_a","title":"Ask","fields":[{"key":"x","type":"string"}]}],"global":[]},"projects":{"project":{"id":"project","canonical":"/project","time":{"created":1,"updated":1,"active":1},"sandboxes":[]}},"location":{"info":{"directory":"/project","project":{"id":"project","directory":"/project","canonical":"/project"}},"vcs":{"branch":{"current":"main","default":"main"}},"agent":[],"command":[],"config":[],"integration":[{"id":"openai","name":"OpenAI","methods":[],"connections":[{"type":"credential","id":"crd_1","label":"crd_1","method":"key"},{"type":"credential","id":"crd_2","label":"crd_2","method":"key"}]}],"mcpServer":[],"mcpResource":[],"model":[],"provider":[],"reference":[],"skill":[],"websearch":[],"usageLimits":null,"shell":[{"id":"sh_1","status":"running","command":"ls","cwd":"/project","shell":"bash","file":"/tmp/sh_1","metadata":{"sessionID":"ses_a"},"time":{"started":13},"location":{"directory":"/project"}}]},"requests":[]}}, + {"name":"pty.exited","state":"empty","event":{"id":"evt_9074","created":1074,"type":"pty.exited","data":{"id":"pty_x","exitCode":0},"location":{"directory":"/project"}},"expected":{"sessions":{},"missing":[],"family":{"ses_a":[],"ses_b":[]},"status":{"ses_a":"idle","ses_b":"idle"},"messages":{"ses_a":[],"ses_b":[]},"more":{"ses_a":false,"ses_b":false},"pending":{"ses_a":[],"ses_b":[]},"permissions":{},"forms":{},"projects":{},"location":{"shell":[]},"requests":[]}}, + {"name":"pty.exited","state":"loaded","event":{"id":"evt_9074","created":1074,"type":"pty.exited","data":{"id":"pty_x","exitCode":0},"location":{"directory":"/project"}},"expected":{"sessions":{"ses_a":{"id":"ses_a","projectID":"project","agent":"build","model":{"providerID":"p","id":"m"},"title":"Title ses_a","cost":0.5,"tokens":{"input":1,"output":1,"reasoning":0,"cache":{"read":0,"write":0}},"time":{"created":1,"updated":2},"location":{"directory":"/project"}}},"missing":[],"family":{"ses_a":["ses_a"],"ses_b":[]},"status":{"ses_a":"idle","ses_b":"idle"},"messages":{"ses_a":[{"id":"msg_0001","type":"user","text":"hello","time":{"created":10}},{"id":"msg_0002","type":"assistant","agent":"build","model":{"providerID":"p","id":"m"},"content":[{"type":"text","text":"done"}],"time":{"created":11,"completed":12}},{"id":"msg_0003","type":"shell","shellID":"sh_1","command":"ls","status":"running","time":{"created":13}},{"id":"msg_0004","type":"compaction","status":"running","reason":"auto","summary":"sum","time":{"created":14}},{"id":"msg_0005","type":"assistant","agent":"build","model":{"providerID":"p","id":"m"},"content":[{"type":"text","text":"hel"},{"type":"reasoning","text":"th","time":{"created":15}},{"type":"tool","id":"call_1","name":"bash","state":{"status":"streaming","input":"{"},"time":{"created":16}},{"type":"tool","id":"call_2","name":"read","state":{"status":"running","input":{"path":"a"},"metadata":{}},"time":{"created":17,"ran":17}}],"time":{"created":15}},{"id":"msg_0006","type":"user","text":"next","time":{"created":18}}],"ses_b":[]},"more":{"ses_a":true,"ses_b":false},"pending":{"ses_a":[{"id":"msg_0006","sessionID":"ses_a","time":{"created":18},"type":"user","delivery":"steer","payload":{"text":"next"}}],"ses_b":[]},"permissions":{"ses_a":[{"id":"per_1","sessionID":"ses_a","action":"bash","resources":[]}]},"forms":{"ses_a":[{"id":"frm_1","sessionID":"ses_a","title":"Ask","fields":[{"key":"x","type":"string"}]}],"global":[]},"projects":{"project":{"id":"project","canonical":"/project","time":{"created":1,"updated":1,"active":1},"sandboxes":[]}},"location":{"info":{"directory":"/project","project":{"id":"project","directory":"/project","canonical":"/project"}},"vcs":{"branch":{"current":"main","default":"main"}},"agent":[],"command":[],"config":[],"integration":[{"id":"openai","name":"OpenAI","methods":[],"connections":[{"type":"credential","id":"crd_1","label":"crd_1","method":"key"},{"type":"credential","id":"crd_2","label":"crd_2","method":"key"}]}],"mcpServer":[],"mcpResource":[],"model":[],"provider":[],"reference":[],"skill":[],"websearch":[],"usageLimits":null,"shell":[{"id":"sh_1","status":"running","command":"ls","cwd":"/project","shell":"bash","file":"/tmp/sh_1","metadata":{"sessionID":"ses_a"},"time":{"started":13},"location":{"directory":"/project"}}]},"requests":[]}}, + {"name":"pty.deleted","state":"empty","event":{"id":"evt_9075","created":1075,"type":"pty.deleted","data":{"id":"pty_x"},"location":{"directory":"/project"}},"expected":{"sessions":{},"missing":[],"family":{"ses_a":[],"ses_b":[]},"status":{"ses_a":"idle","ses_b":"idle"},"messages":{"ses_a":[],"ses_b":[]},"more":{"ses_a":false,"ses_b":false},"pending":{"ses_a":[],"ses_b":[]},"permissions":{},"forms":{},"projects":{},"location":{"shell":[]},"requests":[]}}, + {"name":"pty.deleted","state":"loaded","event":{"id":"evt_9075","created":1075,"type":"pty.deleted","data":{"id":"pty_x"},"location":{"directory":"/project"}},"expected":{"sessions":{"ses_a":{"id":"ses_a","projectID":"project","agent":"build","model":{"providerID":"p","id":"m"},"title":"Title ses_a","cost":0.5,"tokens":{"input":1,"output":1,"reasoning":0,"cache":{"read":0,"write":0}},"time":{"created":1,"updated":2},"location":{"directory":"/project"}}},"missing":[],"family":{"ses_a":["ses_a"],"ses_b":[]},"status":{"ses_a":"idle","ses_b":"idle"},"messages":{"ses_a":[{"id":"msg_0001","type":"user","text":"hello","time":{"created":10}},{"id":"msg_0002","type":"assistant","agent":"build","model":{"providerID":"p","id":"m"},"content":[{"type":"text","text":"done"}],"time":{"created":11,"completed":12}},{"id":"msg_0003","type":"shell","shellID":"sh_1","command":"ls","status":"running","time":{"created":13}},{"id":"msg_0004","type":"compaction","status":"running","reason":"auto","summary":"sum","time":{"created":14}},{"id":"msg_0005","type":"assistant","agent":"build","model":{"providerID":"p","id":"m"},"content":[{"type":"text","text":"hel"},{"type":"reasoning","text":"th","time":{"created":15}},{"type":"tool","id":"call_1","name":"bash","state":{"status":"streaming","input":"{"},"time":{"created":16}},{"type":"tool","id":"call_2","name":"read","state":{"status":"running","input":{"path":"a"},"metadata":{}},"time":{"created":17,"ran":17}}],"time":{"created":15}},{"id":"msg_0006","type":"user","text":"next","time":{"created":18}}],"ses_b":[]},"more":{"ses_a":true,"ses_b":false},"pending":{"ses_a":[{"id":"msg_0006","sessionID":"ses_a","time":{"created":18},"type":"user","delivery":"steer","payload":{"text":"next"}}],"ses_b":[]},"permissions":{"ses_a":[{"id":"per_1","sessionID":"ses_a","action":"bash","resources":[]}]},"forms":{"ses_a":[{"id":"frm_1","sessionID":"ses_a","title":"Ask","fields":[{"key":"x","type":"string"}]}],"global":[]},"projects":{"project":{"id":"project","canonical":"/project","time":{"created":1,"updated":1,"active":1},"sandboxes":[]}},"location":{"info":{"directory":"/project","project":{"id":"project","directory":"/project","canonical":"/project"}},"vcs":{"branch":{"current":"main","default":"main"}},"agent":[],"command":[],"config":[],"integration":[{"id":"openai","name":"OpenAI","methods":[],"connections":[{"type":"credential","id":"crd_1","label":"crd_1","method":"key"},{"type":"credential","id":"crd_2","label":"crd_2","method":"key"}]}],"mcpServer":[],"mcpResource":[],"model":[],"provider":[],"reference":[],"skill":[],"websearch":[],"usageLimits":null,"shell":[{"id":"sh_1","status":"running","command":"ls","cwd":"/project","shell":"bash","file":"/tmp/sh_1","metadata":{"sessionID":"ses_a"},"time":{"started":13},"location":{"directory":"/project"}}]},"requests":[]}}, + {"name":"persistent-pty.added","state":"empty","event":{"id":"evt_9076","created":1076,"type":"persistent-pty.added","data":{"sessionID":"ses_a","terminal":{"id":"pty_x","title":"x","command":"x","args":[],"cwd":"x","status":"running","pid":0,"sessionID":"ses_x","userTitle":"x","foregroundProcess":"x","size":{"cols":0,"rows":0},"output":{"head":0,"tail":0}}},"location":{"directory":"/project"}},"expected":{"sessions":{},"missing":[],"family":{"ses_a":[],"ses_b":[]},"status":{"ses_a":"idle","ses_b":"idle"},"messages":{"ses_a":[],"ses_b":[]},"more":{"ses_a":false,"ses_b":false},"pending":{"ses_a":[],"ses_b":[]},"permissions":{},"forms":{},"projects":{},"location":{"shell":[]},"requests":[]}}, + {"name":"persistent-pty.added","state":"loaded","event":{"id":"evt_9076","created":1076,"type":"persistent-pty.added","data":{"sessionID":"ses_a","terminal":{"id":"pty_x","title":"x","command":"x","args":[],"cwd":"x","status":"running","pid":0,"sessionID":"ses_x","userTitle":"x","foregroundProcess":"x","size":{"cols":0,"rows":0},"output":{"head":0,"tail":0}}},"location":{"directory":"/project"}},"expected":{"sessions":{"ses_a":{"id":"ses_a","projectID":"project","agent":"build","model":{"providerID":"p","id":"m"},"title":"Title ses_a","cost":0.5,"tokens":{"input":1,"output":1,"reasoning":0,"cache":{"read":0,"write":0}},"time":{"created":1,"updated":2},"location":{"directory":"/project"}}},"missing":[],"family":{"ses_a":["ses_a"],"ses_b":[]},"status":{"ses_a":"idle","ses_b":"idle"},"messages":{"ses_a":[{"id":"msg_0001","type":"user","text":"hello","time":{"created":10}},{"id":"msg_0002","type":"assistant","agent":"build","model":{"providerID":"p","id":"m"},"content":[{"type":"text","text":"done"}],"time":{"created":11,"completed":12}},{"id":"msg_0003","type":"shell","shellID":"sh_1","command":"ls","status":"running","time":{"created":13}},{"id":"msg_0004","type":"compaction","status":"running","reason":"auto","summary":"sum","time":{"created":14}},{"id":"msg_0005","type":"assistant","agent":"build","model":{"providerID":"p","id":"m"},"content":[{"type":"text","text":"hel"},{"type":"reasoning","text":"th","time":{"created":15}},{"type":"tool","id":"call_1","name":"bash","state":{"status":"streaming","input":"{"},"time":{"created":16}},{"type":"tool","id":"call_2","name":"read","state":{"status":"running","input":{"path":"a"},"metadata":{}},"time":{"created":17,"ran":17}}],"time":{"created":15}},{"id":"msg_0006","type":"user","text":"next","time":{"created":18}}],"ses_b":[]},"more":{"ses_a":true,"ses_b":false},"pending":{"ses_a":[{"id":"msg_0006","sessionID":"ses_a","time":{"created":18},"type":"user","delivery":"steer","payload":{"text":"next"}}],"ses_b":[]},"permissions":{"ses_a":[{"id":"per_1","sessionID":"ses_a","action":"bash","resources":[]}]},"forms":{"ses_a":[{"id":"frm_1","sessionID":"ses_a","title":"Ask","fields":[{"key":"x","type":"string"}]}],"global":[]},"projects":{"project":{"id":"project","canonical":"/project","time":{"created":1,"updated":1,"active":1},"sandboxes":[]}},"location":{"info":{"directory":"/project","project":{"id":"project","directory":"/project","canonical":"/project"}},"vcs":{"branch":{"current":"main","default":"main"}},"agent":[],"command":[],"config":[],"integration":[{"id":"openai","name":"OpenAI","methods":[],"connections":[{"type":"credential","id":"crd_1","label":"crd_1","method":"key"},{"type":"credential","id":"crd_2","label":"crd_2","method":"key"}]}],"mcpServer":[],"mcpResource":[],"model":[],"provider":[],"reference":[],"skill":[],"websearch":[],"usageLimits":null,"shell":[{"id":"sh_1","status":"running","command":"ls","cwd":"/project","shell":"bash","file":"/tmp/sh_1","metadata":{"sessionID":"ses_a"},"time":{"started":13},"location":{"directory":"/project"}}]},"requests":[]}}, + {"name":"persistent-pty.removed","state":"empty","event":{"id":"evt_9077","created":1077,"type":"persistent-pty.removed","data":{"sessionID":"ses_a","ptyID":"pty_x"},"location":{"directory":"/project"}},"expected":{"sessions":{},"missing":[],"family":{"ses_a":[],"ses_b":[]},"status":{"ses_a":"idle","ses_b":"idle"},"messages":{"ses_a":[],"ses_b":[]},"more":{"ses_a":false,"ses_b":false},"pending":{"ses_a":[],"ses_b":[]},"permissions":{},"forms":{},"projects":{},"location":{"shell":[]},"requests":[]}}, + {"name":"persistent-pty.removed","state":"loaded","event":{"id":"evt_9077","created":1077,"type":"persistent-pty.removed","data":{"sessionID":"ses_a","ptyID":"pty_x"},"location":{"directory":"/project"}},"expected":{"sessions":{"ses_a":{"id":"ses_a","projectID":"project","agent":"build","model":{"providerID":"p","id":"m"},"title":"Title ses_a","cost":0.5,"tokens":{"input":1,"output":1,"reasoning":0,"cache":{"read":0,"write":0}},"time":{"created":1,"updated":2},"location":{"directory":"/project"}}},"missing":[],"family":{"ses_a":["ses_a"],"ses_b":[]},"status":{"ses_a":"idle","ses_b":"idle"},"messages":{"ses_a":[{"id":"msg_0001","type":"user","text":"hello","time":{"created":10}},{"id":"msg_0002","type":"assistant","agent":"build","model":{"providerID":"p","id":"m"},"content":[{"type":"text","text":"done"}],"time":{"created":11,"completed":12}},{"id":"msg_0003","type":"shell","shellID":"sh_1","command":"ls","status":"running","time":{"created":13}},{"id":"msg_0004","type":"compaction","status":"running","reason":"auto","summary":"sum","time":{"created":14}},{"id":"msg_0005","type":"assistant","agent":"build","model":{"providerID":"p","id":"m"},"content":[{"type":"text","text":"hel"},{"type":"reasoning","text":"th","time":{"created":15}},{"type":"tool","id":"call_1","name":"bash","state":{"status":"streaming","input":"{"},"time":{"created":16}},{"type":"tool","id":"call_2","name":"read","state":{"status":"running","input":{"path":"a"},"metadata":{}},"time":{"created":17,"ran":17}}],"time":{"created":15}},{"id":"msg_0006","type":"user","text":"next","time":{"created":18}}],"ses_b":[]},"more":{"ses_a":true,"ses_b":false},"pending":{"ses_a":[{"id":"msg_0006","sessionID":"ses_a","time":{"created":18},"type":"user","delivery":"steer","payload":{"text":"next"}}],"ses_b":[]},"permissions":{"ses_a":[{"id":"per_1","sessionID":"ses_a","action":"bash","resources":[]}]},"forms":{"ses_a":[{"id":"frm_1","sessionID":"ses_a","title":"Ask","fields":[{"key":"x","type":"string"}]}],"global":[]},"projects":{"project":{"id":"project","canonical":"/project","time":{"created":1,"updated":1,"active":1},"sandboxes":[]}},"location":{"info":{"directory":"/project","project":{"id":"project","directory":"/project","canonical":"/project"}},"vcs":{"branch":{"current":"main","default":"main"}},"agent":[],"command":[],"config":[],"integration":[{"id":"openai","name":"OpenAI","methods":[],"connections":[{"type":"credential","id":"crd_1","label":"crd_1","method":"key"},{"type":"credential","id":"crd_2","label":"crd_2","method":"key"}]}],"mcpServer":[],"mcpResource":[],"model":[],"provider":[],"reference":[],"skill":[],"websearch":[],"usageLimits":null,"shell":[{"id":"sh_1","status":"running","command":"ls","cwd":"/project","shell":"bash","file":"/tmp/sh_1","metadata":{"sessionID":"ses_a"},"time":{"started":13},"location":{"directory":"/project"}}]},"requests":[]}}, + {"name":"persistent-pty.updated","state":"empty","event":{"id":"evt_9078","created":1078,"type":"persistent-pty.updated","data":{"sessionID":"ses_a","terminal":{"id":"pty_x","title":"x","command":"x","args":[],"cwd":"x","status":"running","pid":0,"sessionID":"ses_x","userTitle":"x","foregroundProcess":"x","size":{"cols":0,"rows":0},"output":{"head":0,"tail":0}}},"location":{"directory":"/project"}},"expected":{"sessions":{},"missing":[],"family":{"ses_a":[],"ses_b":[]},"status":{"ses_a":"idle","ses_b":"idle"},"messages":{"ses_a":[],"ses_b":[]},"more":{"ses_a":false,"ses_b":false},"pending":{"ses_a":[],"ses_b":[]},"permissions":{},"forms":{},"projects":{},"location":{"shell":[]},"requests":[]}}, + {"name":"persistent-pty.updated","state":"loaded","event":{"id":"evt_9078","created":1078,"type":"persistent-pty.updated","data":{"sessionID":"ses_a","terminal":{"id":"pty_x","title":"x","command":"x","args":[],"cwd":"x","status":"running","pid":0,"sessionID":"ses_x","userTitle":"x","foregroundProcess":"x","size":{"cols":0,"rows":0},"output":{"head":0,"tail":0}}},"location":{"directory":"/project"}},"expected":{"sessions":{"ses_a":{"id":"ses_a","projectID":"project","agent":"build","model":{"providerID":"p","id":"m"},"title":"Title ses_a","cost":0.5,"tokens":{"input":1,"output":1,"reasoning":0,"cache":{"read":0,"write":0}},"time":{"created":1,"updated":2},"location":{"directory":"/project"}}},"missing":[],"family":{"ses_a":["ses_a"],"ses_b":[]},"status":{"ses_a":"idle","ses_b":"idle"},"messages":{"ses_a":[{"id":"msg_0001","type":"user","text":"hello","time":{"created":10}},{"id":"msg_0002","type":"assistant","agent":"build","model":{"providerID":"p","id":"m"},"content":[{"type":"text","text":"done"}],"time":{"created":11,"completed":12}},{"id":"msg_0003","type":"shell","shellID":"sh_1","command":"ls","status":"running","time":{"created":13}},{"id":"msg_0004","type":"compaction","status":"running","reason":"auto","summary":"sum","time":{"created":14}},{"id":"msg_0005","type":"assistant","agent":"build","model":{"providerID":"p","id":"m"},"content":[{"type":"text","text":"hel"},{"type":"reasoning","text":"th","time":{"created":15}},{"type":"tool","id":"call_1","name":"bash","state":{"status":"streaming","input":"{"},"time":{"created":16}},{"type":"tool","id":"call_2","name":"read","state":{"status":"running","input":{"path":"a"},"metadata":{}},"time":{"created":17,"ran":17}}],"time":{"created":15}},{"id":"msg_0006","type":"user","text":"next","time":{"created":18}}],"ses_b":[]},"more":{"ses_a":true,"ses_b":false},"pending":{"ses_a":[{"id":"msg_0006","sessionID":"ses_a","time":{"created":18},"type":"user","delivery":"steer","payload":{"text":"next"}}],"ses_b":[]},"permissions":{"ses_a":[{"id":"per_1","sessionID":"ses_a","action":"bash","resources":[]}]},"forms":{"ses_a":[{"id":"frm_1","sessionID":"ses_a","title":"Ask","fields":[{"key":"x","type":"string"}]}],"global":[]},"projects":{"project":{"id":"project","canonical":"/project","time":{"created":1,"updated":1,"active":1},"sandboxes":[]}},"location":{"info":{"directory":"/project","project":{"id":"project","directory":"/project","canonical":"/project"}},"vcs":{"branch":{"current":"main","default":"main"}},"agent":[],"command":[],"config":[],"integration":[{"id":"openai","name":"OpenAI","methods":[],"connections":[{"type":"credential","id":"crd_1","label":"crd_1","method":"key"},{"type":"credential","id":"crd_2","label":"crd_2","method":"key"}]}],"mcpServer":[],"mcpResource":[],"model":[],"provider":[],"reference":[],"skill":[],"websearch":[],"usageLimits":null,"shell":[{"id":"sh_1","status":"running","command":"ls","cwd":"/project","shell":"bash","file":"/tmp/sh_1","metadata":{"sessionID":"ses_a"},"time":{"started":13},"location":{"directory":"/project"}}]},"requests":[]}}, + {"name":"shell.created","state":"empty","event":{"id":"evt_9079","created":1079,"type":"shell.created","data":{"info":{"id":"sh_3","status":"running","command":"ls","cwd":"/project","shell":"bash","file":"/tmp/sh_1","metadata":{"sessionID":"ses_a"},"time":{"started":13}}},"location":{"directory":"/project"}},"expected":{"sessions":{},"missing":[],"family":{"ses_a":[],"ses_b":[]},"status":{"ses_a":"idle","ses_b":"idle"},"messages":{"ses_a":[],"ses_b":[]},"more":{"ses_a":false,"ses_b":false},"pending":{"ses_a":[],"ses_b":[]},"permissions":{},"forms":{},"projects":{},"location":{"shell":[{"id":"sh_3","status":"running","command":"ls","cwd":"/project","shell":"bash","file":"/tmp/sh_1","metadata":{"sessionID":"ses_a"},"time":{"started":13},"location":{"directory":"/project"}}]},"requests":[]}}, + {"name":"shell.created","state":"loaded","event":{"id":"evt_9079","created":1079,"type":"shell.created","data":{"info":{"id":"sh_3","status":"running","command":"ls","cwd":"/project","shell":"bash","file":"/tmp/sh_1","metadata":{"sessionID":"ses_a"},"time":{"started":13}}},"location":{"directory":"/project"}},"expected":{"sessions":{"ses_a":{"id":"ses_a","projectID":"project","agent":"build","model":{"providerID":"p","id":"m"},"title":"Title ses_a","cost":0.5,"tokens":{"input":1,"output":1,"reasoning":0,"cache":{"read":0,"write":0}},"time":{"created":1,"updated":2},"location":{"directory":"/project"}}},"missing":[],"family":{"ses_a":["ses_a"],"ses_b":[]},"status":{"ses_a":"idle","ses_b":"idle"},"messages":{"ses_a":[{"id":"msg_0001","type":"user","text":"hello","time":{"created":10}},{"id":"msg_0002","type":"assistant","agent":"build","model":{"providerID":"p","id":"m"},"content":[{"type":"text","text":"done"}],"time":{"created":11,"completed":12}},{"id":"msg_0003","type":"shell","shellID":"sh_1","command":"ls","status":"running","time":{"created":13}},{"id":"msg_0004","type":"compaction","status":"running","reason":"auto","summary":"sum","time":{"created":14}},{"id":"msg_0005","type":"assistant","agent":"build","model":{"providerID":"p","id":"m"},"content":[{"type":"text","text":"hel"},{"type":"reasoning","text":"th","time":{"created":15}},{"type":"tool","id":"call_1","name":"bash","state":{"status":"streaming","input":"{"},"time":{"created":16}},{"type":"tool","id":"call_2","name":"read","state":{"status":"running","input":{"path":"a"},"metadata":{}},"time":{"created":17,"ran":17}}],"time":{"created":15}},{"id":"msg_0006","type":"user","text":"next","time":{"created":18}}],"ses_b":[]},"more":{"ses_a":true,"ses_b":false},"pending":{"ses_a":[{"id":"msg_0006","sessionID":"ses_a","time":{"created":18},"type":"user","delivery":"steer","payload":{"text":"next"}}],"ses_b":[]},"permissions":{"ses_a":[{"id":"per_1","sessionID":"ses_a","action":"bash","resources":[]}]},"forms":{"ses_a":[{"id":"frm_1","sessionID":"ses_a","title":"Ask","fields":[{"key":"x","type":"string"}]}],"global":[]},"projects":{"project":{"id":"project","canonical":"/project","time":{"created":1,"updated":1,"active":1},"sandboxes":[]}},"location":{"info":{"directory":"/project","project":{"id":"project","directory":"/project","canonical":"/project"}},"vcs":{"branch":{"current":"main","default":"main"}},"agent":[],"command":[],"config":[],"integration":[{"id":"openai","name":"OpenAI","methods":[],"connections":[{"type":"credential","id":"crd_1","label":"crd_1","method":"key"},{"type":"credential","id":"crd_2","label":"crd_2","method":"key"}]}],"mcpServer":[],"mcpResource":[],"model":[],"provider":[],"reference":[],"skill":[],"websearch":[],"usageLimits":null,"shell":[{"id":"sh_1","status":"running","command":"ls","cwd":"/project","shell":"bash","file":"/tmp/sh_1","metadata":{"sessionID":"ses_a"},"time":{"started":13},"location":{"directory":"/project"}},{"id":"sh_3","status":"running","command":"ls","cwd":"/project","shell":"bash","file":"/tmp/sh_1","metadata":{"sessionID":"ses_a"},"time":{"started":13},"location":{"directory":"/project"}}]},"requests":[]}}, + {"name":"shell.exited","state":"empty","event":{"id":"evt_9080","created":1080,"type":"shell.exited","data":{"id":"sh_1","status":"running"},"location":{"directory":"/project"}},"expected":{"sessions":{},"missing":[],"family":{"ses_a":[],"ses_b":[]},"status":{"ses_a":"idle","ses_b":"idle"},"messages":{"ses_a":[],"ses_b":[]},"more":{"ses_a":false,"ses_b":false},"pending":{"ses_a":[],"ses_b":[]},"permissions":{},"forms":{},"projects":{},"location":{"shell":[]},"requests":[]}}, + {"name":"shell.exited","state":"loaded","event":{"id":"evt_9080","created":1080,"type":"shell.exited","data":{"id":"sh_1","status":"running"},"location":{"directory":"/project"}},"expected":{"sessions":{"ses_a":{"id":"ses_a","projectID":"project","agent":"build","model":{"providerID":"p","id":"m"},"title":"Title ses_a","cost":0.5,"tokens":{"input":1,"output":1,"reasoning":0,"cache":{"read":0,"write":0}},"time":{"created":1,"updated":2},"location":{"directory":"/project"}}},"missing":[],"family":{"ses_a":["ses_a"],"ses_b":[]},"status":{"ses_a":"idle","ses_b":"idle"},"messages":{"ses_a":[{"id":"msg_0001","type":"user","text":"hello","time":{"created":10}},{"id":"msg_0002","type":"assistant","agent":"build","model":{"providerID":"p","id":"m"},"content":[{"type":"text","text":"done"}],"time":{"created":11,"completed":12}},{"id":"msg_0003","type":"shell","shellID":"sh_1","command":"ls","status":"running","time":{"created":13}},{"id":"msg_0004","type":"compaction","status":"running","reason":"auto","summary":"sum","time":{"created":14}},{"id":"msg_0005","type":"assistant","agent":"build","model":{"providerID":"p","id":"m"},"content":[{"type":"text","text":"hel"},{"type":"reasoning","text":"th","time":{"created":15}},{"type":"tool","id":"call_1","name":"bash","state":{"status":"streaming","input":"{"},"time":{"created":16}},{"type":"tool","id":"call_2","name":"read","state":{"status":"running","input":{"path":"a"},"metadata":{}},"time":{"created":17,"ran":17}}],"time":{"created":15}},{"id":"msg_0006","type":"user","text":"next","time":{"created":18}}],"ses_b":[]},"more":{"ses_a":true,"ses_b":false},"pending":{"ses_a":[{"id":"msg_0006","sessionID":"ses_a","time":{"created":18},"type":"user","delivery":"steer","payload":{"text":"next"}}],"ses_b":[]},"permissions":{"ses_a":[{"id":"per_1","sessionID":"ses_a","action":"bash","resources":[]}]},"forms":{"ses_a":[{"id":"frm_1","sessionID":"ses_a","title":"Ask","fields":[{"key":"x","type":"string"}]}],"global":[]},"projects":{"project":{"id":"project","canonical":"/project","time":{"created":1,"updated":1,"active":1},"sandboxes":[]}},"location":{"info":{"directory":"/project","project":{"id":"project","directory":"/project","canonical":"/project"}},"vcs":{"branch":{"current":"main","default":"main"}},"agent":[],"command":[],"config":[],"integration":[{"id":"openai","name":"OpenAI","methods":[],"connections":[{"type":"credential","id":"crd_1","label":"crd_1","method":"key"},{"type":"credential","id":"crd_2","label":"crd_2","method":"key"}]}],"mcpServer":[],"mcpResource":[],"model":[],"provider":[],"reference":[],"skill":[],"websearch":[],"usageLimits":null,"shell":[]},"requests":[]}}, + {"name":"shell.deleted","state":"empty","event":{"id":"evt_9081","created":1081,"type":"shell.deleted","data":{"id":"sh_1"},"location":{"directory":"/project"}},"expected":{"sessions":{},"missing":[],"family":{"ses_a":[],"ses_b":[]},"status":{"ses_a":"idle","ses_b":"idle"},"messages":{"ses_a":[],"ses_b":[]},"more":{"ses_a":false,"ses_b":false},"pending":{"ses_a":[],"ses_b":[]},"permissions":{},"forms":{},"projects":{},"location":{"shell":[]},"requests":[]}}, + {"name":"shell.deleted","state":"loaded","event":{"id":"evt_9081","created":1081,"type":"shell.deleted","data":{"id":"sh_1"},"location":{"directory":"/project"}},"expected":{"sessions":{"ses_a":{"id":"ses_a","projectID":"project","agent":"build","model":{"providerID":"p","id":"m"},"title":"Title ses_a","cost":0.5,"tokens":{"input":1,"output":1,"reasoning":0,"cache":{"read":0,"write":0}},"time":{"created":1,"updated":2},"location":{"directory":"/project"}}},"missing":[],"family":{"ses_a":["ses_a"],"ses_b":[]},"status":{"ses_a":"idle","ses_b":"idle"},"messages":{"ses_a":[{"id":"msg_0001","type":"user","text":"hello","time":{"created":10}},{"id":"msg_0002","type":"assistant","agent":"build","model":{"providerID":"p","id":"m"},"content":[{"type":"text","text":"done"}],"time":{"created":11,"completed":12}},{"id":"msg_0003","type":"shell","shellID":"sh_1","command":"ls","status":"running","time":{"created":13}},{"id":"msg_0004","type":"compaction","status":"running","reason":"auto","summary":"sum","time":{"created":14}},{"id":"msg_0005","type":"assistant","agent":"build","model":{"providerID":"p","id":"m"},"content":[{"type":"text","text":"hel"},{"type":"reasoning","text":"th","time":{"created":15}},{"type":"tool","id":"call_1","name":"bash","state":{"status":"streaming","input":"{"},"time":{"created":16}},{"type":"tool","id":"call_2","name":"read","state":{"status":"running","input":{"path":"a"},"metadata":{}},"time":{"created":17,"ran":17}}],"time":{"created":15}},{"id":"msg_0006","type":"user","text":"next","time":{"created":18}}],"ses_b":[]},"more":{"ses_a":true,"ses_b":false},"pending":{"ses_a":[{"id":"msg_0006","sessionID":"ses_a","time":{"created":18},"type":"user","delivery":"steer","payload":{"text":"next"}}],"ses_b":[]},"permissions":{"ses_a":[{"id":"per_1","sessionID":"ses_a","action":"bash","resources":[]}]},"forms":{"ses_a":[{"id":"frm_1","sessionID":"ses_a","title":"Ask","fields":[{"key":"x","type":"string"}]}],"global":[]},"projects":{"project":{"id":"project","canonical":"/project","time":{"created":1,"updated":1,"active":1},"sandboxes":[]}},"location":{"info":{"directory":"/project","project":{"id":"project","directory":"/project","canonical":"/project"}},"vcs":{"branch":{"current":"main","default":"main"}},"agent":[],"command":[],"config":[],"integration":[{"id":"openai","name":"OpenAI","methods":[],"connections":[{"type":"credential","id":"crd_1","label":"crd_1","method":"key"},{"type":"credential","id":"crd_2","label":"crd_2","method":"key"}]}],"mcpServer":[],"mcpResource":[],"model":[],"provider":[],"reference":[],"skill":[],"websearch":[],"usageLimits":null,"shell":[]},"requests":[]}}, + {"name":"experimental.job.updated","state":"empty","event":{"id":"evt_9082","created":1082,"type":"experimental.job.updated","data":{"info":{"kind":"shell","id":"x","sessionID":"ses_x","status":"running","time":{"started":0},"shellID":"x","command":"x"}},"location":{"directory":"/project"}},"expected":{"sessions":{},"missing":[],"family":{"ses_a":[],"ses_b":[]},"status":{"ses_a":"idle","ses_b":"idle"},"messages":{"ses_a":[],"ses_b":[]},"more":{"ses_a":false,"ses_b":false},"pending":{"ses_a":[],"ses_b":[]},"permissions":{},"forms":{},"projects":{},"location":{"shell":[]},"requests":[]}}, + {"name":"experimental.job.updated","state":"loaded","event":{"id":"evt_9082","created":1082,"type":"experimental.job.updated","data":{"info":{"kind":"shell","id":"x","sessionID":"ses_x","status":"running","time":{"started":0},"shellID":"x","command":"x"}},"location":{"directory":"/project"}},"expected":{"sessions":{"ses_a":{"id":"ses_a","projectID":"project","agent":"build","model":{"providerID":"p","id":"m"},"title":"Title ses_a","cost":0.5,"tokens":{"input":1,"output":1,"reasoning":0,"cache":{"read":0,"write":0}},"time":{"created":1,"updated":2},"location":{"directory":"/project"}}},"missing":[],"family":{"ses_a":["ses_a"],"ses_b":[]},"status":{"ses_a":"idle","ses_b":"idle"},"messages":{"ses_a":[{"id":"msg_0001","type":"user","text":"hello","time":{"created":10}},{"id":"msg_0002","type":"assistant","agent":"build","model":{"providerID":"p","id":"m"},"content":[{"type":"text","text":"done"}],"time":{"created":11,"completed":12}},{"id":"msg_0003","type":"shell","shellID":"sh_1","command":"ls","status":"running","time":{"created":13}},{"id":"msg_0004","type":"compaction","status":"running","reason":"auto","summary":"sum","time":{"created":14}},{"id":"msg_0005","type":"assistant","agent":"build","model":{"providerID":"p","id":"m"},"content":[{"type":"text","text":"hel"},{"type":"reasoning","text":"th","time":{"created":15}},{"type":"tool","id":"call_1","name":"bash","state":{"status":"streaming","input":"{"},"time":{"created":16}},{"type":"tool","id":"call_2","name":"read","state":{"status":"running","input":{"path":"a"},"metadata":{}},"time":{"created":17,"ran":17}}],"time":{"created":15}},{"id":"msg_0006","type":"user","text":"next","time":{"created":18}}],"ses_b":[]},"more":{"ses_a":true,"ses_b":false},"pending":{"ses_a":[{"id":"msg_0006","sessionID":"ses_a","time":{"created":18},"type":"user","delivery":"steer","payload":{"text":"next"}}],"ses_b":[]},"permissions":{"ses_a":[{"id":"per_1","sessionID":"ses_a","action":"bash","resources":[]}]},"forms":{"ses_a":[{"id":"frm_1","sessionID":"ses_a","title":"Ask","fields":[{"key":"x","type":"string"}]}],"global":[]},"projects":{"project":{"id":"project","canonical":"/project","time":{"created":1,"updated":1,"active":1},"sandboxes":[]}},"location":{"info":{"directory":"/project","project":{"id":"project","directory":"/project","canonical":"/project"}},"vcs":{"branch":{"current":"main","default":"main"}},"agent":[],"command":[],"config":[],"integration":[{"id":"openai","name":"OpenAI","methods":[],"connections":[{"type":"credential","id":"crd_1","label":"crd_1","method":"key"},{"type":"credential","id":"crd_2","label":"crd_2","method":"key"}]}],"mcpServer":[],"mcpResource":[],"model":[],"provider":[],"reference":[],"skill":[],"websearch":[],"usageLimits":null,"shell":[{"id":"sh_1","status":"running","command":"ls","cwd":"/project","shell":"bash","file":"/tmp/sh_1","metadata":{"sessionID":"ses_a"},"time":{"started":13},"location":{"directory":"/project"}}]},"requests":[]}}, + {"name":"form.created","state":"empty","event":{"id":"evt_9083","created":1083,"type":"form.created","data":{"form":{"id":"frm_2","sessionID":"ses_a","title":"Pick","fields":[{"key":"x","type":"string"}]}},"location":{"directory":"/project"}},"expected":{"sessions":{},"missing":[],"family":{"ses_a":[],"ses_b":[]},"status":{"ses_a":"idle","ses_b":"idle"},"messages":{"ses_a":[],"ses_b":[]},"more":{"ses_a":false,"ses_b":false},"pending":{"ses_a":[],"ses_b":[]},"permissions":{},"forms":{"ses_a":[{"id":"frm_2","sessionID":"ses_a","title":"Pick","fields":[{"key":"x","type":"string"}]}]},"projects":{},"location":{"shell":[]},"requests":[]}}, + {"name":"form.created","state":"loaded","event":{"id":"evt_9083","created":1083,"type":"form.created","data":{"form":{"id":"frm_2","sessionID":"ses_a","title":"Pick","fields":[{"key":"x","type":"string"}]}},"location":{"directory":"/project"}},"expected":{"sessions":{"ses_a":{"id":"ses_a","projectID":"project","agent":"build","model":{"providerID":"p","id":"m"},"title":"Title ses_a","cost":0.5,"tokens":{"input":1,"output":1,"reasoning":0,"cache":{"read":0,"write":0}},"time":{"created":1,"updated":2},"location":{"directory":"/project"}}},"missing":[],"family":{"ses_a":["ses_a"],"ses_b":[]},"status":{"ses_a":"idle","ses_b":"idle"},"messages":{"ses_a":[{"id":"msg_0001","type":"user","text":"hello","time":{"created":10}},{"id":"msg_0002","type":"assistant","agent":"build","model":{"providerID":"p","id":"m"},"content":[{"type":"text","text":"done"}],"time":{"created":11,"completed":12}},{"id":"msg_0003","type":"shell","shellID":"sh_1","command":"ls","status":"running","time":{"created":13}},{"id":"msg_0004","type":"compaction","status":"running","reason":"auto","summary":"sum","time":{"created":14}},{"id":"msg_0005","type":"assistant","agent":"build","model":{"providerID":"p","id":"m"},"content":[{"type":"text","text":"hel"},{"type":"reasoning","text":"th","time":{"created":15}},{"type":"tool","id":"call_1","name":"bash","state":{"status":"streaming","input":"{"},"time":{"created":16}},{"type":"tool","id":"call_2","name":"read","state":{"status":"running","input":{"path":"a"},"metadata":{}},"time":{"created":17,"ran":17}}],"time":{"created":15}},{"id":"msg_0006","type":"user","text":"next","time":{"created":18}}],"ses_b":[]},"more":{"ses_a":true,"ses_b":false},"pending":{"ses_a":[{"id":"msg_0006","sessionID":"ses_a","time":{"created":18},"type":"user","delivery":"steer","payload":{"text":"next"}}],"ses_b":[]},"permissions":{"ses_a":[{"id":"per_1","sessionID":"ses_a","action":"bash","resources":[]}]},"forms":{"ses_a":[{"id":"frm_1","sessionID":"ses_a","title":"Ask","fields":[{"key":"x","type":"string"}]},{"id":"frm_2","sessionID":"ses_a","title":"Pick","fields":[{"key":"x","type":"string"}]}],"global":[]},"projects":{"project":{"id":"project","canonical":"/project","time":{"created":1,"updated":1,"active":1},"sandboxes":[]}},"location":{"info":{"directory":"/project","project":{"id":"project","directory":"/project","canonical":"/project"}},"vcs":{"branch":{"current":"main","default":"main"}},"agent":[],"command":[],"config":[],"integration":[{"id":"openai","name":"OpenAI","methods":[],"connections":[{"type":"credential","id":"crd_1","label":"crd_1","method":"key"},{"type":"credential","id":"crd_2","label":"crd_2","method":"key"}]}],"mcpServer":[],"mcpResource":[],"model":[],"provider":[],"reference":[],"skill":[],"websearch":[],"usageLimits":null,"shell":[{"id":"sh_1","status":"running","command":"ls","cwd":"/project","shell":"bash","file":"/tmp/sh_1","metadata":{"sessionID":"ses_a"},"time":{"started":13},"location":{"directory":"/project"}}]},"requests":[]}}, + {"name":"form.replied","state":"empty","event":{"id":"evt_9084","created":1084,"type":"form.replied","data":{"id":"frm_1","sessionID":"ses_a","answer":{}},"location":{"directory":"/project"}},"expected":{"sessions":{},"missing":[],"family":{"ses_a":[],"ses_b":[]},"status":{"ses_a":"idle","ses_b":"idle"},"messages":{"ses_a":[],"ses_b":[]},"more":{"ses_a":false,"ses_b":false},"pending":{"ses_a":[],"ses_b":[]},"permissions":{},"forms":{},"projects":{},"location":{"shell":[]},"requests":[]}}, + {"name":"form.replied","state":"loaded","event":{"id":"evt_9084","created":1084,"type":"form.replied","data":{"id":"frm_1","sessionID":"ses_a","answer":{}},"location":{"directory":"/project"}},"expected":{"sessions":{"ses_a":{"id":"ses_a","projectID":"project","agent":"build","model":{"providerID":"p","id":"m"},"title":"Title ses_a","cost":0.5,"tokens":{"input":1,"output":1,"reasoning":0,"cache":{"read":0,"write":0}},"time":{"created":1,"updated":2},"location":{"directory":"/project"}}},"missing":[],"family":{"ses_a":["ses_a"],"ses_b":[]},"status":{"ses_a":"idle","ses_b":"idle"},"messages":{"ses_a":[{"id":"msg_0001","type":"user","text":"hello","time":{"created":10}},{"id":"msg_0002","type":"assistant","agent":"build","model":{"providerID":"p","id":"m"},"content":[{"type":"text","text":"done"}],"time":{"created":11,"completed":12}},{"id":"msg_0003","type":"shell","shellID":"sh_1","command":"ls","status":"running","time":{"created":13}},{"id":"msg_0004","type":"compaction","status":"running","reason":"auto","summary":"sum","time":{"created":14}},{"id":"msg_0005","type":"assistant","agent":"build","model":{"providerID":"p","id":"m"},"content":[{"type":"text","text":"hel"},{"type":"reasoning","text":"th","time":{"created":15}},{"type":"tool","id":"call_1","name":"bash","state":{"status":"streaming","input":"{"},"time":{"created":16}},{"type":"tool","id":"call_2","name":"read","state":{"status":"running","input":{"path":"a"},"metadata":{}},"time":{"created":17,"ran":17}}],"time":{"created":15}},{"id":"msg_0006","type":"user","text":"next","time":{"created":18}}],"ses_b":[]},"more":{"ses_a":true,"ses_b":false},"pending":{"ses_a":[{"id":"msg_0006","sessionID":"ses_a","time":{"created":18},"type":"user","delivery":"steer","payload":{"text":"next"}}],"ses_b":[]},"permissions":{"ses_a":[{"id":"per_1","sessionID":"ses_a","action":"bash","resources":[]}]},"forms":{"ses_a":[],"global":[]},"projects":{"project":{"id":"project","canonical":"/project","time":{"created":1,"updated":1,"active":1},"sandboxes":[]}},"location":{"info":{"directory":"/project","project":{"id":"project","directory":"/project","canonical":"/project"}},"vcs":{"branch":{"current":"main","default":"main"}},"agent":[],"command":[],"config":[],"integration":[{"id":"openai","name":"OpenAI","methods":[],"connections":[{"type":"credential","id":"crd_1","label":"crd_1","method":"key"},{"type":"credential","id":"crd_2","label":"crd_2","method":"key"}]}],"mcpServer":[],"mcpResource":[],"model":[],"provider":[],"reference":[],"skill":[],"websearch":[],"usageLimits":null,"shell":[{"id":"sh_1","status":"running","command":"ls","cwd":"/project","shell":"bash","file":"/tmp/sh_1","metadata":{"sessionID":"ses_a"},"time":{"started":13},"location":{"directory":"/project"}}]},"requests":[]}}, + {"name":"form.cancelled","state":"empty","event":{"id":"evt_9085","created":1085,"type":"form.cancelled","data":{"id":"frm_1","sessionID":"ses_a"},"location":{"directory":"/project"}},"expected":{"sessions":{},"missing":[],"family":{"ses_a":[],"ses_b":[]},"status":{"ses_a":"idle","ses_b":"idle"},"messages":{"ses_a":[],"ses_b":[]},"more":{"ses_a":false,"ses_b":false},"pending":{"ses_a":[],"ses_b":[]},"permissions":{},"forms":{},"projects":{},"location":{"shell":[]},"requests":[]}}, + {"name":"form.cancelled","state":"loaded","event":{"id":"evt_9085","created":1085,"type":"form.cancelled","data":{"id":"frm_1","sessionID":"ses_a"},"location":{"directory":"/project"}},"expected":{"sessions":{"ses_a":{"id":"ses_a","projectID":"project","agent":"build","model":{"providerID":"p","id":"m"},"title":"Title ses_a","cost":0.5,"tokens":{"input":1,"output":1,"reasoning":0,"cache":{"read":0,"write":0}},"time":{"created":1,"updated":2},"location":{"directory":"/project"}}},"missing":[],"family":{"ses_a":["ses_a"],"ses_b":[]},"status":{"ses_a":"idle","ses_b":"idle"},"messages":{"ses_a":[{"id":"msg_0001","type":"user","text":"hello","time":{"created":10}},{"id":"msg_0002","type":"assistant","agent":"build","model":{"providerID":"p","id":"m"},"content":[{"type":"text","text":"done"}],"time":{"created":11,"completed":12}},{"id":"msg_0003","type":"shell","shellID":"sh_1","command":"ls","status":"running","time":{"created":13}},{"id":"msg_0004","type":"compaction","status":"running","reason":"auto","summary":"sum","time":{"created":14}},{"id":"msg_0005","type":"assistant","agent":"build","model":{"providerID":"p","id":"m"},"content":[{"type":"text","text":"hel"},{"type":"reasoning","text":"th","time":{"created":15}},{"type":"tool","id":"call_1","name":"bash","state":{"status":"streaming","input":"{"},"time":{"created":16}},{"type":"tool","id":"call_2","name":"read","state":{"status":"running","input":{"path":"a"},"metadata":{}},"time":{"created":17,"ran":17}}],"time":{"created":15}},{"id":"msg_0006","type":"user","text":"next","time":{"created":18}}],"ses_b":[]},"more":{"ses_a":true,"ses_b":false},"pending":{"ses_a":[{"id":"msg_0006","sessionID":"ses_a","time":{"created":18},"type":"user","delivery":"steer","payload":{"text":"next"}}],"ses_b":[]},"permissions":{"ses_a":[{"id":"per_1","sessionID":"ses_a","action":"bash","resources":[]}]},"forms":{"ses_a":[],"global":[]},"projects":{"project":{"id":"project","canonical":"/project","time":{"created":1,"updated":1,"active":1},"sandboxes":[]}},"location":{"info":{"directory":"/project","project":{"id":"project","directory":"/project","canonical":"/project"}},"vcs":{"branch":{"current":"main","default":"main"}},"agent":[],"command":[],"config":[],"integration":[{"id":"openai","name":"OpenAI","methods":[],"connections":[{"type":"credential","id":"crd_1","label":"crd_1","method":"key"},{"type":"credential","id":"crd_2","label":"crd_2","method":"key"}]}],"mcpServer":[],"mcpResource":[],"model":[],"provider":[],"reference":[],"skill":[],"websearch":[],"usageLimits":null,"shell":[{"id":"sh_1","status":"running","command":"ls","cwd":"/project","shell":"bash","file":"/tmp/sh_1","metadata":{"sessionID":"ses_a"},"time":{"started":13},"location":{"directory":"/project"}}]},"requests":[]}}, + {"name":"websearch.updated","state":"empty","event":{"id":"evt_9086","created":1086,"type":"websearch.updated","data":{},"location":{"directory":"/project"}},"expected":{"sessions":{},"missing":[],"family":{"ses_a":[],"ses_b":[]},"status":{"ses_a":"idle","ses_b":"idle"},"messages":{"ses_a":[],"ses_b":[]},"more":{"ses_a":false,"ses_b":false},"pending":{"ses_a":[],"ses_b":[]},"permissions":{},"forms":{},"projects":{},"location":{"shell":[]},"requests":[]}}, + {"name":"websearch.updated","state":"loaded","event":{"id":"evt_9086","created":1086,"type":"websearch.updated","data":{},"location":{"directory":"/project"}},"expected":{"sessions":{"ses_a":{"id":"ses_a","projectID":"project","agent":"build","model":{"providerID":"p","id":"m"},"title":"Title ses_a","cost":0.5,"tokens":{"input":1,"output":1,"reasoning":0,"cache":{"read":0,"write":0}},"time":{"created":1,"updated":2},"location":{"directory":"/project"}}},"missing":[],"family":{"ses_a":["ses_a"],"ses_b":[]},"status":{"ses_a":"idle","ses_b":"idle"},"messages":{"ses_a":[{"id":"msg_0001","type":"user","text":"hello","time":{"created":10}},{"id":"msg_0002","type":"assistant","agent":"build","model":{"providerID":"p","id":"m"},"content":[{"type":"text","text":"done"}],"time":{"created":11,"completed":12}},{"id":"msg_0003","type":"shell","shellID":"sh_1","command":"ls","status":"running","time":{"created":13}},{"id":"msg_0004","type":"compaction","status":"running","reason":"auto","summary":"sum","time":{"created":14}},{"id":"msg_0005","type":"assistant","agent":"build","model":{"providerID":"p","id":"m"},"content":[{"type":"text","text":"hel"},{"type":"reasoning","text":"th","time":{"created":15}},{"type":"tool","id":"call_1","name":"bash","state":{"status":"streaming","input":"{"},"time":{"created":16}},{"type":"tool","id":"call_2","name":"read","state":{"status":"running","input":{"path":"a"},"metadata":{}},"time":{"created":17,"ran":17}}],"time":{"created":15}},{"id":"msg_0006","type":"user","text":"next","time":{"created":18}}],"ses_b":[]},"more":{"ses_a":true,"ses_b":false},"pending":{"ses_a":[{"id":"msg_0006","sessionID":"ses_a","time":{"created":18},"type":"user","delivery":"steer","payload":{"text":"next"}}],"ses_b":[]},"permissions":{"ses_a":[{"id":"per_1","sessionID":"ses_a","action":"bash","resources":[]}]},"forms":{"ses_a":[{"id":"frm_1","sessionID":"ses_a","title":"Ask","fields":[{"key":"x","type":"string"}]}],"global":[]},"projects":{"project":{"id":"project","canonical":"/project","time":{"created":1,"updated":1,"active":1},"sandboxes":[]}},"location":{"info":{"directory":"/project","project":{"id":"project","directory":"/project","canonical":"/project"}},"vcs":{"branch":{"current":"main","default":"main"}},"agent":[],"command":[],"config":[],"integration":[{"id":"openai","name":"OpenAI","methods":[],"connections":[{"type":"credential","id":"crd_1","label":"crd_1","method":"key"},{"type":"credential","id":"crd_2","label":"crd_2","method":"key"}]}],"mcpServer":[],"mcpResource":[],"model":[],"provider":[],"reference":[],"skill":[],"websearch":[],"usageLimits":null,"shell":[{"id":"sh_1","status":"running","command":"ls","cwd":"/project","shell":"bash","file":"/tmp/sh_1","metadata":{"sessionID":"ses_a"},"time":{"started":13},"location":{"directory":"/project"}}]},"requests":["GET /api/websearch/provider?location[directory]=/project"]}}, + {"name":"artifact.updated","state":"empty","event":{"id":"evt_9087","created":1087,"type":"artifact.updated","data":{},"location":{"directory":"/project"}},"expected":{"sessions":{},"missing":[],"family":{"ses_a":[],"ses_b":[]},"status":{"ses_a":"idle","ses_b":"idle"},"messages":{"ses_a":[],"ses_b":[]},"more":{"ses_a":false,"ses_b":false},"pending":{"ses_a":[],"ses_b":[]},"permissions":{},"forms":{},"projects":{},"location":{"shell":[]},"requests":[]}}, + {"name":"artifact.updated","state":"loaded","event":{"id":"evt_9087","created":1087,"type":"artifact.updated","data":{},"location":{"directory":"/project"}},"expected":{"sessions":{"ses_a":{"id":"ses_a","projectID":"project","agent":"build","model":{"providerID":"p","id":"m"},"title":"Title ses_a","cost":0.5,"tokens":{"input":1,"output":1,"reasoning":0,"cache":{"read":0,"write":0}},"time":{"created":1,"updated":2},"location":{"directory":"/project"}}},"missing":[],"family":{"ses_a":["ses_a"],"ses_b":[]},"status":{"ses_a":"idle","ses_b":"idle"},"messages":{"ses_a":[{"id":"msg_0001","type":"user","text":"hello","time":{"created":10}},{"id":"msg_0002","type":"assistant","agent":"build","model":{"providerID":"p","id":"m"},"content":[{"type":"text","text":"done"}],"time":{"created":11,"completed":12}},{"id":"msg_0003","type":"shell","shellID":"sh_1","command":"ls","status":"running","time":{"created":13}},{"id":"msg_0004","type":"compaction","status":"running","reason":"auto","summary":"sum","time":{"created":14}},{"id":"msg_0005","type":"assistant","agent":"build","model":{"providerID":"p","id":"m"},"content":[{"type":"text","text":"hel"},{"type":"reasoning","text":"th","time":{"created":15}},{"type":"tool","id":"call_1","name":"bash","state":{"status":"streaming","input":"{"},"time":{"created":16}},{"type":"tool","id":"call_2","name":"read","state":{"status":"running","input":{"path":"a"},"metadata":{}},"time":{"created":17,"ran":17}}],"time":{"created":15}},{"id":"msg_0006","type":"user","text":"next","time":{"created":18}}],"ses_b":[]},"more":{"ses_a":true,"ses_b":false},"pending":{"ses_a":[{"id":"msg_0006","sessionID":"ses_a","time":{"created":18},"type":"user","delivery":"steer","payload":{"text":"next"}}],"ses_b":[]},"permissions":{"ses_a":[{"id":"per_1","sessionID":"ses_a","action":"bash","resources":[]}]},"forms":{"ses_a":[{"id":"frm_1","sessionID":"ses_a","title":"Ask","fields":[{"key":"x","type":"string"}]}],"global":[]},"projects":{"project":{"id":"project","canonical":"/project","time":{"created":1,"updated":1,"active":1},"sandboxes":[]}},"location":{"info":{"directory":"/project","project":{"id":"project","directory":"/project","canonical":"/project"}},"vcs":{"branch":{"current":"main","default":"main"}},"agent":[],"command":[],"config":[],"integration":[{"id":"openai","name":"OpenAI","methods":[],"connections":[{"type":"credential","id":"crd_1","label":"crd_1","method":"key"},{"type":"credential","id":"crd_2","label":"crd_2","method":"key"}]}],"mcpServer":[],"mcpResource":[],"model":[],"provider":[],"reference":[],"skill":[],"websearch":[],"usageLimits":null,"shell":[{"id":"sh_1","status":"running","command":"ls","cwd":"/project","shell":"bash","file":"/tmp/sh_1","metadata":{"sessionID":"ses_a"},"time":{"started":13},"location":{"directory":"/project"}}]},"requests":[]}}, + {"name":"session.status","state":"empty","event":{"id":"evt_9088","created":1088,"type":"session.status","data":{"sessionID":"ses_a","status":{"type":"idle"}},"location":{"directory":"/project"}},"expected":{"sessions":{},"missing":[],"family":{"ses_a":[],"ses_b":[]},"status":{"ses_a":"idle","ses_b":"idle"},"messages":{"ses_a":[],"ses_b":[]},"more":{"ses_a":false,"ses_b":false},"pending":{"ses_a":[],"ses_b":[]},"permissions":{},"forms":{},"projects":{},"location":{"shell":[]},"requests":[]}}, + {"name":"session.status","state":"loaded","event":{"id":"evt_9088","created":1088,"type":"session.status","data":{"sessionID":"ses_a","status":{"type":"idle"}},"location":{"directory":"/project"}},"expected":{"sessions":{"ses_a":{"id":"ses_a","projectID":"project","agent":"build","model":{"providerID":"p","id":"m"},"title":"Title ses_a","cost":0.5,"tokens":{"input":1,"output":1,"reasoning":0,"cache":{"read":0,"write":0}},"time":{"created":1,"updated":2},"location":{"directory":"/project"}}},"missing":[],"family":{"ses_a":["ses_a"],"ses_b":[]},"status":{"ses_a":"idle","ses_b":"idle"},"messages":{"ses_a":[{"id":"msg_0001","type":"user","text":"hello","time":{"created":10}},{"id":"msg_0002","type":"assistant","agent":"build","model":{"providerID":"p","id":"m"},"content":[{"type":"text","text":"done"}],"time":{"created":11,"completed":12}},{"id":"msg_0003","type":"shell","shellID":"sh_1","command":"ls","status":"running","time":{"created":13}},{"id":"msg_0004","type":"compaction","status":"running","reason":"auto","summary":"sum","time":{"created":14}},{"id":"msg_0005","type":"assistant","agent":"build","model":{"providerID":"p","id":"m"},"content":[{"type":"text","text":"hel"},{"type":"reasoning","text":"th","time":{"created":15}},{"type":"tool","id":"call_1","name":"bash","state":{"status":"streaming","input":"{"},"time":{"created":16}},{"type":"tool","id":"call_2","name":"read","state":{"status":"running","input":{"path":"a"},"metadata":{}},"time":{"created":17,"ran":17}}],"time":{"created":15}},{"id":"msg_0006","type":"user","text":"next","time":{"created":18}}],"ses_b":[]},"more":{"ses_a":true,"ses_b":false},"pending":{"ses_a":[{"id":"msg_0006","sessionID":"ses_a","time":{"created":18},"type":"user","delivery":"steer","payload":{"text":"next"}}],"ses_b":[]},"permissions":{"ses_a":[{"id":"per_1","sessionID":"ses_a","action":"bash","resources":[]}]},"forms":{"ses_a":[{"id":"frm_1","sessionID":"ses_a","title":"Ask","fields":[{"key":"x","type":"string"}]}],"global":[]},"projects":{"project":{"id":"project","canonical":"/project","time":{"created":1,"updated":1,"active":1},"sandboxes":[]}},"location":{"info":{"directory":"/project","project":{"id":"project","directory":"/project","canonical":"/project"}},"vcs":{"branch":{"current":"main","default":"main"}},"agent":[],"command":[],"config":[],"integration":[{"id":"openai","name":"OpenAI","methods":[],"connections":[{"type":"credential","id":"crd_1","label":"crd_1","method":"key"},{"type":"credential","id":"crd_2","label":"crd_2","method":"key"}]}],"mcpServer":[],"mcpResource":[],"model":[],"provider":[],"reference":[],"skill":[],"websearch":[],"usageLimits":null,"shell":[{"id":"sh_1","status":"running","command":"ls","cwd":"/project","shell":"bash","file":"/tmp/sh_1","metadata":{"sessionID":"ses_a"},"time":{"started":13},"location":{"directory":"/project"}}]},"requests":[]}}, + {"name":"session.idle","state":"empty","event":{"id":"evt_9089","created":1089,"type":"session.idle","data":{"sessionID":"ses_a"},"location":{"directory":"/project"}},"expected":{"sessions":{},"missing":[],"family":{"ses_a":[],"ses_b":[]},"status":{"ses_a":"idle","ses_b":"idle"},"messages":{"ses_a":[],"ses_b":[]},"more":{"ses_a":false,"ses_b":false},"pending":{"ses_a":[],"ses_b":[]},"permissions":{},"forms":{},"projects":{},"location":{"shell":[]},"requests":[]}}, + {"name":"session.idle","state":"loaded","event":{"id":"evt_9089","created":1089,"type":"session.idle","data":{"sessionID":"ses_a"},"location":{"directory":"/project"}},"expected":{"sessions":{"ses_a":{"id":"ses_a","projectID":"project","agent":"build","model":{"providerID":"p","id":"m"},"title":"Title ses_a","cost":0.5,"tokens":{"input":1,"output":1,"reasoning":0,"cache":{"read":0,"write":0}},"time":{"created":1,"updated":2},"location":{"directory":"/project"}}},"missing":[],"family":{"ses_a":["ses_a"],"ses_b":[]},"status":{"ses_a":"idle","ses_b":"idle"},"messages":{"ses_a":[{"id":"msg_0001","type":"user","text":"hello","time":{"created":10}},{"id":"msg_0002","type":"assistant","agent":"build","model":{"providerID":"p","id":"m"},"content":[{"type":"text","text":"done"}],"time":{"created":11,"completed":12}},{"id":"msg_0003","type":"shell","shellID":"sh_1","command":"ls","status":"running","time":{"created":13}},{"id":"msg_0004","type":"compaction","status":"running","reason":"auto","summary":"sum","time":{"created":14}},{"id":"msg_0005","type":"assistant","agent":"build","model":{"providerID":"p","id":"m"},"content":[{"type":"text","text":"hel"},{"type":"reasoning","text":"th","time":{"created":15}},{"type":"tool","id":"call_1","name":"bash","state":{"status":"streaming","input":"{"},"time":{"created":16}},{"type":"tool","id":"call_2","name":"read","state":{"status":"running","input":{"path":"a"},"metadata":{}},"time":{"created":17,"ran":17}}],"time":{"created":15}},{"id":"msg_0006","type":"user","text":"next","time":{"created":18}}],"ses_b":[]},"more":{"ses_a":true,"ses_b":false},"pending":{"ses_a":[{"id":"msg_0006","sessionID":"ses_a","time":{"created":18},"type":"user","delivery":"steer","payload":{"text":"next"}}],"ses_b":[]},"permissions":{"ses_a":[{"id":"per_1","sessionID":"ses_a","action":"bash","resources":[]}]},"forms":{"ses_a":[{"id":"frm_1","sessionID":"ses_a","title":"Ask","fields":[{"key":"x","type":"string"}]}],"global":[]},"projects":{"project":{"id":"project","canonical":"/project","time":{"created":1,"updated":1,"active":1},"sandboxes":[]}},"location":{"info":{"directory":"/project","project":{"id":"project","directory":"/project","canonical":"/project"}},"vcs":{"branch":{"current":"main","default":"main"}},"agent":[],"command":[],"config":[],"integration":[{"id":"openai","name":"OpenAI","methods":[],"connections":[{"type":"credential","id":"crd_1","label":"crd_1","method":"key"},{"type":"credential","id":"crd_2","label":"crd_2","method":"key"}]}],"mcpServer":[],"mcpResource":[],"model":[],"provider":[],"reference":[],"skill":[],"websearch":[],"usageLimits":null,"shell":[{"id":"sh_1","status":"running","command":"ls","cwd":"/project","shell":"bash","file":"/tmp/sh_1","metadata":{"sessionID":"ses_a"},"time":{"started":13},"location":{"directory":"/project"}}]},"requests":[]}}, + {"name":"tui.prompt.append","state":"empty","event":{"id":"evt_9090","created":1090,"type":"tui.prompt.append","data":{"text":"x"},"location":{"directory":"/project"}},"expected":{"sessions":{},"missing":[],"family":{"ses_a":[],"ses_b":[]},"status":{"ses_a":"idle","ses_b":"idle"},"messages":{"ses_a":[],"ses_b":[]},"more":{"ses_a":false,"ses_b":false},"pending":{"ses_a":[],"ses_b":[]},"permissions":{},"forms":{},"projects":{},"location":{"shell":[]},"requests":[]}}, + {"name":"tui.prompt.append","state":"loaded","event":{"id":"evt_9090","created":1090,"type":"tui.prompt.append","data":{"text":"x"},"location":{"directory":"/project"}},"expected":{"sessions":{"ses_a":{"id":"ses_a","projectID":"project","agent":"build","model":{"providerID":"p","id":"m"},"title":"Title ses_a","cost":0.5,"tokens":{"input":1,"output":1,"reasoning":0,"cache":{"read":0,"write":0}},"time":{"created":1,"updated":2},"location":{"directory":"/project"}}},"missing":[],"family":{"ses_a":["ses_a"],"ses_b":[]},"status":{"ses_a":"idle","ses_b":"idle"},"messages":{"ses_a":[{"id":"msg_0001","type":"user","text":"hello","time":{"created":10}},{"id":"msg_0002","type":"assistant","agent":"build","model":{"providerID":"p","id":"m"},"content":[{"type":"text","text":"done"}],"time":{"created":11,"completed":12}},{"id":"msg_0003","type":"shell","shellID":"sh_1","command":"ls","status":"running","time":{"created":13}},{"id":"msg_0004","type":"compaction","status":"running","reason":"auto","summary":"sum","time":{"created":14}},{"id":"msg_0005","type":"assistant","agent":"build","model":{"providerID":"p","id":"m"},"content":[{"type":"text","text":"hel"},{"type":"reasoning","text":"th","time":{"created":15}},{"type":"tool","id":"call_1","name":"bash","state":{"status":"streaming","input":"{"},"time":{"created":16}},{"type":"tool","id":"call_2","name":"read","state":{"status":"running","input":{"path":"a"},"metadata":{}},"time":{"created":17,"ran":17}}],"time":{"created":15}},{"id":"msg_0006","type":"user","text":"next","time":{"created":18}}],"ses_b":[]},"more":{"ses_a":true,"ses_b":false},"pending":{"ses_a":[{"id":"msg_0006","sessionID":"ses_a","time":{"created":18},"type":"user","delivery":"steer","payload":{"text":"next"}}],"ses_b":[]},"permissions":{"ses_a":[{"id":"per_1","sessionID":"ses_a","action":"bash","resources":[]}]},"forms":{"ses_a":[{"id":"frm_1","sessionID":"ses_a","title":"Ask","fields":[{"key":"x","type":"string"}]}],"global":[]},"projects":{"project":{"id":"project","canonical":"/project","time":{"created":1,"updated":1,"active":1},"sandboxes":[]}},"location":{"info":{"directory":"/project","project":{"id":"project","directory":"/project","canonical":"/project"}},"vcs":{"branch":{"current":"main","default":"main"}},"agent":[],"command":[],"config":[],"integration":[{"id":"openai","name":"OpenAI","methods":[],"connections":[{"type":"credential","id":"crd_1","label":"crd_1","method":"key"},{"type":"credential","id":"crd_2","label":"crd_2","method":"key"}]}],"mcpServer":[],"mcpResource":[],"model":[],"provider":[],"reference":[],"skill":[],"websearch":[],"usageLimits":null,"shell":[{"id":"sh_1","status":"running","command":"ls","cwd":"/project","shell":"bash","file":"/tmp/sh_1","metadata":{"sessionID":"ses_a"},"time":{"started":13},"location":{"directory":"/project"}}]},"requests":[]}}, + {"name":"tui.command.execute","state":"empty","event":{"id":"evt_9091","created":1091,"type":"tui.command.execute","data":{"command":"session.list"},"location":{"directory":"/project"}},"expected":{"sessions":{},"missing":[],"family":{"ses_a":[],"ses_b":[]},"status":{"ses_a":"idle","ses_b":"idle"},"messages":{"ses_a":[],"ses_b":[]},"more":{"ses_a":false,"ses_b":false},"pending":{"ses_a":[],"ses_b":[]},"permissions":{},"forms":{},"projects":{},"location":{"shell":[]},"requests":[]}}, + {"name":"tui.command.execute","state":"loaded","event":{"id":"evt_9091","created":1091,"type":"tui.command.execute","data":{"command":"session.list"},"location":{"directory":"/project"}},"expected":{"sessions":{"ses_a":{"id":"ses_a","projectID":"project","agent":"build","model":{"providerID":"p","id":"m"},"title":"Title ses_a","cost":0.5,"tokens":{"input":1,"output":1,"reasoning":0,"cache":{"read":0,"write":0}},"time":{"created":1,"updated":2},"location":{"directory":"/project"}}},"missing":[],"family":{"ses_a":["ses_a"],"ses_b":[]},"status":{"ses_a":"idle","ses_b":"idle"},"messages":{"ses_a":[{"id":"msg_0001","type":"user","text":"hello","time":{"created":10}},{"id":"msg_0002","type":"assistant","agent":"build","model":{"providerID":"p","id":"m"},"content":[{"type":"text","text":"done"}],"time":{"created":11,"completed":12}},{"id":"msg_0003","type":"shell","shellID":"sh_1","command":"ls","status":"running","time":{"created":13}},{"id":"msg_0004","type":"compaction","status":"running","reason":"auto","summary":"sum","time":{"created":14}},{"id":"msg_0005","type":"assistant","agent":"build","model":{"providerID":"p","id":"m"},"content":[{"type":"text","text":"hel"},{"type":"reasoning","text":"th","time":{"created":15}},{"type":"tool","id":"call_1","name":"bash","state":{"status":"streaming","input":"{"},"time":{"created":16}},{"type":"tool","id":"call_2","name":"read","state":{"status":"running","input":{"path":"a"},"metadata":{}},"time":{"created":17,"ran":17}}],"time":{"created":15}},{"id":"msg_0006","type":"user","text":"next","time":{"created":18}}],"ses_b":[]},"more":{"ses_a":true,"ses_b":false},"pending":{"ses_a":[{"id":"msg_0006","sessionID":"ses_a","time":{"created":18},"type":"user","delivery":"steer","payload":{"text":"next"}}],"ses_b":[]},"permissions":{"ses_a":[{"id":"per_1","sessionID":"ses_a","action":"bash","resources":[]}]},"forms":{"ses_a":[{"id":"frm_1","sessionID":"ses_a","title":"Ask","fields":[{"key":"x","type":"string"}]}],"global":[]},"projects":{"project":{"id":"project","canonical":"/project","time":{"created":1,"updated":1,"active":1},"sandboxes":[]}},"location":{"info":{"directory":"/project","project":{"id":"project","directory":"/project","canonical":"/project"}},"vcs":{"branch":{"current":"main","default":"main"}},"agent":[],"command":[],"config":[],"integration":[{"id":"openai","name":"OpenAI","methods":[],"connections":[{"type":"credential","id":"crd_1","label":"crd_1","method":"key"},{"type":"credential","id":"crd_2","label":"crd_2","method":"key"}]}],"mcpServer":[],"mcpResource":[],"model":[],"provider":[],"reference":[],"skill":[],"websearch":[],"usageLimits":null,"shell":[{"id":"sh_1","status":"running","command":"ls","cwd":"/project","shell":"bash","file":"/tmp/sh_1","metadata":{"sessionID":"ses_a"},"time":{"started":13},"location":{"directory":"/project"}}]},"requests":[]}}, + {"name":"tui.toast.show","state":"empty","event":{"id":"evt_9092","created":1092,"type":"tui.toast.show","data":{"message":"x","variant":"info"},"location":{"directory":"/project"}},"expected":{"sessions":{},"missing":[],"family":{"ses_a":[],"ses_b":[]},"status":{"ses_a":"idle","ses_b":"idle"},"messages":{"ses_a":[],"ses_b":[]},"more":{"ses_a":false,"ses_b":false},"pending":{"ses_a":[],"ses_b":[]},"permissions":{},"forms":{},"projects":{},"location":{"shell":[]},"requests":[]}}, + {"name":"tui.toast.show","state":"loaded","event":{"id":"evt_9092","created":1092,"type":"tui.toast.show","data":{"message":"x","variant":"info"},"location":{"directory":"/project"}},"expected":{"sessions":{"ses_a":{"id":"ses_a","projectID":"project","agent":"build","model":{"providerID":"p","id":"m"},"title":"Title ses_a","cost":0.5,"tokens":{"input":1,"output":1,"reasoning":0,"cache":{"read":0,"write":0}},"time":{"created":1,"updated":2},"location":{"directory":"/project"}}},"missing":[],"family":{"ses_a":["ses_a"],"ses_b":[]},"status":{"ses_a":"idle","ses_b":"idle"},"messages":{"ses_a":[{"id":"msg_0001","type":"user","text":"hello","time":{"created":10}},{"id":"msg_0002","type":"assistant","agent":"build","model":{"providerID":"p","id":"m"},"content":[{"type":"text","text":"done"}],"time":{"created":11,"completed":12}},{"id":"msg_0003","type":"shell","shellID":"sh_1","command":"ls","status":"running","time":{"created":13}},{"id":"msg_0004","type":"compaction","status":"running","reason":"auto","summary":"sum","time":{"created":14}},{"id":"msg_0005","type":"assistant","agent":"build","model":{"providerID":"p","id":"m"},"content":[{"type":"text","text":"hel"},{"type":"reasoning","text":"th","time":{"created":15}},{"type":"tool","id":"call_1","name":"bash","state":{"status":"streaming","input":"{"},"time":{"created":16}},{"type":"tool","id":"call_2","name":"read","state":{"status":"running","input":{"path":"a"},"metadata":{}},"time":{"created":17,"ran":17}}],"time":{"created":15}},{"id":"msg_0006","type":"user","text":"next","time":{"created":18}}],"ses_b":[]},"more":{"ses_a":true,"ses_b":false},"pending":{"ses_a":[{"id":"msg_0006","sessionID":"ses_a","time":{"created":18},"type":"user","delivery":"steer","payload":{"text":"next"}}],"ses_b":[]},"permissions":{"ses_a":[{"id":"per_1","sessionID":"ses_a","action":"bash","resources":[]}]},"forms":{"ses_a":[{"id":"frm_1","sessionID":"ses_a","title":"Ask","fields":[{"key":"x","type":"string"}]}],"global":[]},"projects":{"project":{"id":"project","canonical":"/project","time":{"created":1,"updated":1,"active":1},"sandboxes":[]}},"location":{"info":{"directory":"/project","project":{"id":"project","directory":"/project","canonical":"/project"}},"vcs":{"branch":{"current":"main","default":"main"}},"agent":[],"command":[],"config":[],"integration":[{"id":"openai","name":"OpenAI","methods":[],"connections":[{"type":"credential","id":"crd_1","label":"crd_1","method":"key"},{"type":"credential","id":"crd_2","label":"crd_2","method":"key"}]}],"mcpServer":[],"mcpResource":[],"model":[],"provider":[],"reference":[],"skill":[],"websearch":[],"usageLimits":null,"shell":[{"id":"sh_1","status":"running","command":"ls","cwd":"/project","shell":"bash","file":"/tmp/sh_1","metadata":{"sessionID":"ses_a"},"time":{"started":13},"location":{"directory":"/project"}}]},"requests":[]}}, + {"name":"tui.session.select","state":"empty","event":{"id":"evt_9093","created":1093,"type":"tui.session.select","data":{"sessionID":"ses_a"},"location":{"directory":"/project"}},"expected":{"sessions":{},"missing":[],"family":{"ses_a":[],"ses_b":[]},"status":{"ses_a":"idle","ses_b":"idle"},"messages":{"ses_a":[],"ses_b":[]},"more":{"ses_a":false,"ses_b":false},"pending":{"ses_a":[],"ses_b":[]},"permissions":{},"forms":{},"projects":{},"location":{"shell":[]},"requests":[]}}, + {"name":"tui.session.select","state":"loaded","event":{"id":"evt_9093","created":1093,"type":"tui.session.select","data":{"sessionID":"ses_a"},"location":{"directory":"/project"}},"expected":{"sessions":{"ses_a":{"id":"ses_a","projectID":"project","agent":"build","model":{"providerID":"p","id":"m"},"title":"Title ses_a","cost":0.5,"tokens":{"input":1,"output":1,"reasoning":0,"cache":{"read":0,"write":0}},"time":{"created":1,"updated":2},"location":{"directory":"/project"}}},"missing":[],"family":{"ses_a":["ses_a"],"ses_b":[]},"status":{"ses_a":"idle","ses_b":"idle"},"messages":{"ses_a":[{"id":"msg_0001","type":"user","text":"hello","time":{"created":10}},{"id":"msg_0002","type":"assistant","agent":"build","model":{"providerID":"p","id":"m"},"content":[{"type":"text","text":"done"}],"time":{"created":11,"completed":12}},{"id":"msg_0003","type":"shell","shellID":"sh_1","command":"ls","status":"running","time":{"created":13}},{"id":"msg_0004","type":"compaction","status":"running","reason":"auto","summary":"sum","time":{"created":14}},{"id":"msg_0005","type":"assistant","agent":"build","model":{"providerID":"p","id":"m"},"content":[{"type":"text","text":"hel"},{"type":"reasoning","text":"th","time":{"created":15}},{"type":"tool","id":"call_1","name":"bash","state":{"status":"streaming","input":"{"},"time":{"created":16}},{"type":"tool","id":"call_2","name":"read","state":{"status":"running","input":{"path":"a"},"metadata":{}},"time":{"created":17,"ran":17}}],"time":{"created":15}},{"id":"msg_0006","type":"user","text":"next","time":{"created":18}}],"ses_b":[]},"more":{"ses_a":true,"ses_b":false},"pending":{"ses_a":[{"id":"msg_0006","sessionID":"ses_a","time":{"created":18},"type":"user","delivery":"steer","payload":{"text":"next"}}],"ses_b":[]},"permissions":{"ses_a":[{"id":"per_1","sessionID":"ses_a","action":"bash","resources":[]}]},"forms":{"ses_a":[{"id":"frm_1","sessionID":"ses_a","title":"Ask","fields":[{"key":"x","type":"string"}]}],"global":[]},"projects":{"project":{"id":"project","canonical":"/project","time":{"created":1,"updated":1,"active":1},"sandboxes":[]}},"location":{"info":{"directory":"/project","project":{"id":"project","directory":"/project","canonical":"/project"}},"vcs":{"branch":{"current":"main","default":"main"}},"agent":[],"command":[],"config":[],"integration":[{"id":"openai","name":"OpenAI","methods":[],"connections":[{"type":"credential","id":"crd_1","label":"crd_1","method":"key"},{"type":"credential","id":"crd_2","label":"crd_2","method":"key"}]}],"mcpServer":[],"mcpResource":[],"model":[],"provider":[],"reference":[],"skill":[],"websearch":[],"usageLimits":null,"shell":[{"id":"sh_1","status":"running","command":"ls","cwd":"/project","shell":"bash","file":"/tmp/sh_1","metadata":{"sessionID":"ses_a"},"time":{"started":13},"location":{"directory":"/project"}}]},"requests":[]}}, + {"name":"installation.updated","state":"empty","event":{"id":"evt_9094","created":1094,"type":"installation.updated","data":{"version":"x"},"location":{"directory":"/project"}},"expected":{"sessions":{},"missing":[],"family":{"ses_a":[],"ses_b":[]},"status":{"ses_a":"idle","ses_b":"idle"},"messages":{"ses_a":[],"ses_b":[]},"more":{"ses_a":false,"ses_b":false},"pending":{"ses_a":[],"ses_b":[]},"permissions":{},"forms":{},"projects":{},"location":{"shell":[]},"requests":[]}}, + {"name":"installation.updated","state":"loaded","event":{"id":"evt_9094","created":1094,"type":"installation.updated","data":{"version":"x"},"location":{"directory":"/project"}},"expected":{"sessions":{"ses_a":{"id":"ses_a","projectID":"project","agent":"build","model":{"providerID":"p","id":"m"},"title":"Title ses_a","cost":0.5,"tokens":{"input":1,"output":1,"reasoning":0,"cache":{"read":0,"write":0}},"time":{"created":1,"updated":2},"location":{"directory":"/project"}}},"missing":[],"family":{"ses_a":["ses_a"],"ses_b":[]},"status":{"ses_a":"idle","ses_b":"idle"},"messages":{"ses_a":[{"id":"msg_0001","type":"user","text":"hello","time":{"created":10}},{"id":"msg_0002","type":"assistant","agent":"build","model":{"providerID":"p","id":"m"},"content":[{"type":"text","text":"done"}],"time":{"created":11,"completed":12}},{"id":"msg_0003","type":"shell","shellID":"sh_1","command":"ls","status":"running","time":{"created":13}},{"id":"msg_0004","type":"compaction","status":"running","reason":"auto","summary":"sum","time":{"created":14}},{"id":"msg_0005","type":"assistant","agent":"build","model":{"providerID":"p","id":"m"},"content":[{"type":"text","text":"hel"},{"type":"reasoning","text":"th","time":{"created":15}},{"type":"tool","id":"call_1","name":"bash","state":{"status":"streaming","input":"{"},"time":{"created":16}},{"type":"tool","id":"call_2","name":"read","state":{"status":"running","input":{"path":"a"},"metadata":{}},"time":{"created":17,"ran":17}}],"time":{"created":15}},{"id":"msg_0006","type":"user","text":"next","time":{"created":18}}],"ses_b":[]},"more":{"ses_a":true,"ses_b":false},"pending":{"ses_a":[{"id":"msg_0006","sessionID":"ses_a","time":{"created":18},"type":"user","delivery":"steer","payload":{"text":"next"}}],"ses_b":[]},"permissions":{"ses_a":[{"id":"per_1","sessionID":"ses_a","action":"bash","resources":[]}]},"forms":{"ses_a":[{"id":"frm_1","sessionID":"ses_a","title":"Ask","fields":[{"key":"x","type":"string"}]}],"global":[]},"projects":{"project":{"id":"project","canonical":"/project","time":{"created":1,"updated":1,"active":1},"sandboxes":[]}},"location":{"info":{"directory":"/project","project":{"id":"project","directory":"/project","canonical":"/project"}},"vcs":{"branch":{"current":"main","default":"main"}},"agent":[],"command":[],"config":[],"integration":[{"id":"openai","name":"OpenAI","methods":[],"connections":[{"type":"credential","id":"crd_1","label":"crd_1","method":"key"},{"type":"credential","id":"crd_2","label":"crd_2","method":"key"}]}],"mcpServer":[],"mcpResource":[],"model":[],"provider":[],"reference":[],"skill":[],"websearch":[],"usageLimits":null,"shell":[{"id":"sh_1","status":"running","command":"ls","cwd":"/project","shell":"bash","file":"/tmp/sh_1","metadata":{"sessionID":"ses_a"},"time":{"started":13},"location":{"directory":"/project"}}]},"requests":[]}}, + {"name":"installation.update-available","state":"empty","event":{"id":"evt_9095","created":1095,"type":"installation.update-available","data":{"version":"x"},"location":{"directory":"/project"}},"expected":{"sessions":{},"missing":[],"family":{"ses_a":[],"ses_b":[]},"status":{"ses_a":"idle","ses_b":"idle"},"messages":{"ses_a":[],"ses_b":[]},"more":{"ses_a":false,"ses_b":false},"pending":{"ses_a":[],"ses_b":[]},"permissions":{},"forms":{},"projects":{},"location":{"shell":[]},"requests":[]}}, + {"name":"installation.update-available","state":"loaded","event":{"id":"evt_9095","created":1095,"type":"installation.update-available","data":{"version":"x"},"location":{"directory":"/project"}},"expected":{"sessions":{"ses_a":{"id":"ses_a","projectID":"project","agent":"build","model":{"providerID":"p","id":"m"},"title":"Title ses_a","cost":0.5,"tokens":{"input":1,"output":1,"reasoning":0,"cache":{"read":0,"write":0}},"time":{"created":1,"updated":2},"location":{"directory":"/project"}}},"missing":[],"family":{"ses_a":["ses_a"],"ses_b":[]},"status":{"ses_a":"idle","ses_b":"idle"},"messages":{"ses_a":[{"id":"msg_0001","type":"user","text":"hello","time":{"created":10}},{"id":"msg_0002","type":"assistant","agent":"build","model":{"providerID":"p","id":"m"},"content":[{"type":"text","text":"done"}],"time":{"created":11,"completed":12}},{"id":"msg_0003","type":"shell","shellID":"sh_1","command":"ls","status":"running","time":{"created":13}},{"id":"msg_0004","type":"compaction","status":"running","reason":"auto","summary":"sum","time":{"created":14}},{"id":"msg_0005","type":"assistant","agent":"build","model":{"providerID":"p","id":"m"},"content":[{"type":"text","text":"hel"},{"type":"reasoning","text":"th","time":{"created":15}},{"type":"tool","id":"call_1","name":"bash","state":{"status":"streaming","input":"{"},"time":{"created":16}},{"type":"tool","id":"call_2","name":"read","state":{"status":"running","input":{"path":"a"},"metadata":{}},"time":{"created":17,"ran":17}}],"time":{"created":15}},{"id":"msg_0006","type":"user","text":"next","time":{"created":18}}],"ses_b":[]},"more":{"ses_a":true,"ses_b":false},"pending":{"ses_a":[{"id":"msg_0006","sessionID":"ses_a","time":{"created":18},"type":"user","delivery":"steer","payload":{"text":"next"}}],"ses_b":[]},"permissions":{"ses_a":[{"id":"per_1","sessionID":"ses_a","action":"bash","resources":[]}]},"forms":{"ses_a":[{"id":"frm_1","sessionID":"ses_a","title":"Ask","fields":[{"key":"x","type":"string"}]}],"global":[]},"projects":{"project":{"id":"project","canonical":"/project","time":{"created":1,"updated":1,"active":1},"sandboxes":[]}},"location":{"info":{"directory":"/project","project":{"id":"project","directory":"/project","canonical":"/project"}},"vcs":{"branch":{"current":"main","default":"main"}},"agent":[],"command":[],"config":[],"integration":[{"id":"openai","name":"OpenAI","methods":[],"connections":[{"type":"credential","id":"crd_1","label":"crd_1","method":"key"},{"type":"credential","id":"crd_2","label":"crd_2","method":"key"}]}],"mcpServer":[],"mcpResource":[],"model":[],"provider":[],"reference":[],"skill":[],"websearch":[],"usageLimits":null,"shell":[{"id":"sh_1","status":"running","command":"ls","cwd":"/project","shell":"bash","file":"/tmp/sh_1","metadata":{"sessionID":"ses_a"},"time":{"started":13},"location":{"directory":"/project"}}]},"requests":[]}}, + {"name":"vcs.branch.updated","state":"empty","event":{"id":"evt_9096","created":1096,"type":"vcs.branch.updated","data":{},"location":{"directory":"/project"}},"expected":{"sessions":{},"missing":[],"family":{"ses_a":[],"ses_b":[]},"status":{"ses_a":"idle","ses_b":"idle"},"messages":{"ses_a":[],"ses_b":[]},"more":{"ses_a":false,"ses_b":false},"pending":{"ses_a":[],"ses_b":[]},"permissions":{},"forms":{},"projects":{},"location":{"shell":[]},"requests":[]}}, + {"name":"vcs.branch.updated","state":"loaded","event":{"id":"evt_9096","created":1096,"type":"vcs.branch.updated","data":{},"location":{"directory":"/project"}},"expected":{"sessions":{"ses_a":{"id":"ses_a","projectID":"project","agent":"build","model":{"providerID":"p","id":"m"},"title":"Title ses_a","cost":0.5,"tokens":{"input":1,"output":1,"reasoning":0,"cache":{"read":0,"write":0}},"time":{"created":1,"updated":2},"location":{"directory":"/project"}}},"missing":[],"family":{"ses_a":["ses_a"],"ses_b":[]},"status":{"ses_a":"idle","ses_b":"idle"},"messages":{"ses_a":[{"id":"msg_0001","type":"user","text":"hello","time":{"created":10}},{"id":"msg_0002","type":"assistant","agent":"build","model":{"providerID":"p","id":"m"},"content":[{"type":"text","text":"done"}],"time":{"created":11,"completed":12}},{"id":"msg_0003","type":"shell","shellID":"sh_1","command":"ls","status":"running","time":{"created":13}},{"id":"msg_0004","type":"compaction","status":"running","reason":"auto","summary":"sum","time":{"created":14}},{"id":"msg_0005","type":"assistant","agent":"build","model":{"providerID":"p","id":"m"},"content":[{"type":"text","text":"hel"},{"type":"reasoning","text":"th","time":{"created":15}},{"type":"tool","id":"call_1","name":"bash","state":{"status":"streaming","input":"{"},"time":{"created":16}},{"type":"tool","id":"call_2","name":"read","state":{"status":"running","input":{"path":"a"},"metadata":{}},"time":{"created":17,"ran":17}}],"time":{"created":15}},{"id":"msg_0006","type":"user","text":"next","time":{"created":18}}],"ses_b":[]},"more":{"ses_a":true,"ses_b":false},"pending":{"ses_a":[{"id":"msg_0006","sessionID":"ses_a","time":{"created":18},"type":"user","delivery":"steer","payload":{"text":"next"}}],"ses_b":[]},"permissions":{"ses_a":[{"id":"per_1","sessionID":"ses_a","action":"bash","resources":[]}]},"forms":{"ses_a":[{"id":"frm_1","sessionID":"ses_a","title":"Ask","fields":[{"key":"x","type":"string"}]}],"global":[]},"projects":{"project":{"id":"project","canonical":"/project","time":{"created":1,"updated":1,"active":1},"sandboxes":[]}},"location":{"info":{"directory":"/project","project":{"id":"project","directory":"/project","canonical":"/project"}},"vcs":{"branch":{"current":"main","default":"main"}},"agent":[],"command":[],"config":[],"integration":[{"id":"openai","name":"OpenAI","methods":[],"connections":[{"type":"credential","id":"crd_1","label":"crd_1","method":"key"},{"type":"credential","id":"crd_2","label":"crd_2","method":"key"}]}],"mcpServer":[],"mcpResource":[],"model":[],"provider":[],"reference":[],"skill":[],"websearch":[],"usageLimits":null,"shell":[{"id":"sh_1","status":"running","command":"ls","cwd":"/project","shell":"bash","file":"/tmp/sh_1","metadata":{"sessionID":"ses_a"},"time":{"started":13},"location":{"directory":"/project"}}]},"requests":["GET /api/vcs?location[directory]=/project"]}}, + {"name":"mcp.status.changed","state":"empty","event":{"id":"evt_9097","created":1097,"type":"mcp.status.changed","data":{"server":"x"},"location":{"directory":"/project"}},"expected":{"sessions":{},"missing":[],"family":{"ses_a":[],"ses_b":[]},"status":{"ses_a":"idle","ses_b":"idle"},"messages":{"ses_a":[],"ses_b":[]},"more":{"ses_a":false,"ses_b":false},"pending":{"ses_a":[],"ses_b":[]},"permissions":{},"forms":{},"projects":{},"location":{"shell":[]},"requests":[]}}, + {"name":"mcp.status.changed","state":"loaded","event":{"id":"evt_9097","created":1097,"type":"mcp.status.changed","data":{"server":"x"},"location":{"directory":"/project"}},"expected":{"sessions":{"ses_a":{"id":"ses_a","projectID":"project","agent":"build","model":{"providerID":"p","id":"m"},"title":"Title ses_a","cost":0.5,"tokens":{"input":1,"output":1,"reasoning":0,"cache":{"read":0,"write":0}},"time":{"created":1,"updated":2},"location":{"directory":"/project"}}},"missing":[],"family":{"ses_a":["ses_a"],"ses_b":[]},"status":{"ses_a":"idle","ses_b":"idle"},"messages":{"ses_a":[{"id":"msg_0001","type":"user","text":"hello","time":{"created":10}},{"id":"msg_0002","type":"assistant","agent":"build","model":{"providerID":"p","id":"m"},"content":[{"type":"text","text":"done"}],"time":{"created":11,"completed":12}},{"id":"msg_0003","type":"shell","shellID":"sh_1","command":"ls","status":"running","time":{"created":13}},{"id":"msg_0004","type":"compaction","status":"running","reason":"auto","summary":"sum","time":{"created":14}},{"id":"msg_0005","type":"assistant","agent":"build","model":{"providerID":"p","id":"m"},"content":[{"type":"text","text":"hel"},{"type":"reasoning","text":"th","time":{"created":15}},{"type":"tool","id":"call_1","name":"bash","state":{"status":"streaming","input":"{"},"time":{"created":16}},{"type":"tool","id":"call_2","name":"read","state":{"status":"running","input":{"path":"a"},"metadata":{}},"time":{"created":17,"ran":17}}],"time":{"created":15}},{"id":"msg_0006","type":"user","text":"next","time":{"created":18}}],"ses_b":[]},"more":{"ses_a":true,"ses_b":false},"pending":{"ses_a":[{"id":"msg_0006","sessionID":"ses_a","time":{"created":18},"type":"user","delivery":"steer","payload":{"text":"next"}}],"ses_b":[]},"permissions":{"ses_a":[{"id":"per_1","sessionID":"ses_a","action":"bash","resources":[]}]},"forms":{"ses_a":[{"id":"frm_1","sessionID":"ses_a","title":"Ask","fields":[{"key":"x","type":"string"}]}],"global":[]},"projects":{"project":{"id":"project","canonical":"/project","time":{"created":1,"updated":1,"active":1},"sandboxes":[]}},"location":{"info":{"directory":"/project","project":{"id":"project","directory":"/project","canonical":"/project"}},"vcs":{"branch":{"current":"main","default":"main"}},"agent":[],"command":[],"config":[],"integration":[{"id":"openai","name":"OpenAI","methods":[],"connections":[{"type":"credential","id":"crd_1","label":"crd_1","method":"key"},{"type":"credential","id":"crd_2","label":"crd_2","method":"key"}]}],"mcpServer":[],"mcpResource":[],"model":[],"provider":[],"reference":[],"skill":[],"websearch":[],"usageLimits":null,"shell":[{"id":"sh_1","status":"running","command":"ls","cwd":"/project","shell":"bash","file":"/tmp/sh_1","metadata":{"sessionID":"ses_a"},"time":{"started":13},"location":{"directory":"/project"}}]},"requests":["GET /api/mcp?location[directory]=/project"]}}, + {"name":"mcp.resources.changed","state":"empty","event":{"id":"evt_9098","created":1098,"type":"mcp.resources.changed","data":{"server":"x"},"location":{"directory":"/project"}},"expected":{"sessions":{},"missing":[],"family":{"ses_a":[],"ses_b":[]},"status":{"ses_a":"idle","ses_b":"idle"},"messages":{"ses_a":[],"ses_b":[]},"more":{"ses_a":false,"ses_b":false},"pending":{"ses_a":[],"ses_b":[]},"permissions":{},"forms":{},"projects":{},"location":{"shell":[]},"requests":[]}}, + {"name":"mcp.resources.changed","state":"loaded","event":{"id":"evt_9098","created":1098,"type":"mcp.resources.changed","data":{"server":"x"},"location":{"directory":"/project"}},"expected":{"sessions":{"ses_a":{"id":"ses_a","projectID":"project","agent":"build","model":{"providerID":"p","id":"m"},"title":"Title ses_a","cost":0.5,"tokens":{"input":1,"output":1,"reasoning":0,"cache":{"read":0,"write":0}},"time":{"created":1,"updated":2},"location":{"directory":"/project"}}},"missing":[],"family":{"ses_a":["ses_a"],"ses_b":[]},"status":{"ses_a":"idle","ses_b":"idle"},"messages":{"ses_a":[{"id":"msg_0001","type":"user","text":"hello","time":{"created":10}},{"id":"msg_0002","type":"assistant","agent":"build","model":{"providerID":"p","id":"m"},"content":[{"type":"text","text":"done"}],"time":{"created":11,"completed":12}},{"id":"msg_0003","type":"shell","shellID":"sh_1","command":"ls","status":"running","time":{"created":13}},{"id":"msg_0004","type":"compaction","status":"running","reason":"auto","summary":"sum","time":{"created":14}},{"id":"msg_0005","type":"assistant","agent":"build","model":{"providerID":"p","id":"m"},"content":[{"type":"text","text":"hel"},{"type":"reasoning","text":"th","time":{"created":15}},{"type":"tool","id":"call_1","name":"bash","state":{"status":"streaming","input":"{"},"time":{"created":16}},{"type":"tool","id":"call_2","name":"read","state":{"status":"running","input":{"path":"a"},"metadata":{}},"time":{"created":17,"ran":17}}],"time":{"created":15}},{"id":"msg_0006","type":"user","text":"next","time":{"created":18}}],"ses_b":[]},"more":{"ses_a":true,"ses_b":false},"pending":{"ses_a":[{"id":"msg_0006","sessionID":"ses_a","time":{"created":18},"type":"user","delivery":"steer","payload":{"text":"next"}}],"ses_b":[]},"permissions":{"ses_a":[{"id":"per_1","sessionID":"ses_a","action":"bash","resources":[]}]},"forms":{"ses_a":[{"id":"frm_1","sessionID":"ses_a","title":"Ask","fields":[{"key":"x","type":"string"}]}],"global":[]},"projects":{"project":{"id":"project","canonical":"/project","time":{"created":1,"updated":1,"active":1},"sandboxes":[]}},"location":{"info":{"directory":"/project","project":{"id":"project","directory":"/project","canonical":"/project"}},"vcs":{"branch":{"current":"main","default":"main"}},"agent":[],"command":[],"config":[],"integration":[{"id":"openai","name":"OpenAI","methods":[],"connections":[{"type":"credential","id":"crd_1","label":"crd_1","method":"key"},{"type":"credential","id":"crd_2","label":"crd_2","method":"key"}]}],"mcpServer":[],"mcpResource":[],"model":[],"provider":[],"reference":[],"skill":[],"websearch":[],"usageLimits":null,"shell":[{"id":"sh_1","status":"running","command":"ls","cwd":"/project","shell":"bash","file":"/tmp/sh_1","metadata":{"sessionID":"ses_a"},"time":{"started":13},"location":{"directory":"/project"}}]},"requests":["GET /api/mcp/resource?location[directory]=/project"]}}, + {"name":"experimental.mcp.event","state":"empty","event":{"id":"evt_9099","created":1099,"type":"experimental.mcp.event","data":{"id":"x","server":"x","name":"x","eventId":"x","timestamp":"x","data":{},"cursor":"x"},"location":{"directory":"/project"}},"expected":{"sessions":{},"missing":[],"family":{"ses_a":[],"ses_b":[]},"status":{"ses_a":"idle","ses_b":"idle"},"messages":{"ses_a":[],"ses_b":[]},"more":{"ses_a":false,"ses_b":false},"pending":{"ses_a":[],"ses_b":[]},"permissions":{},"forms":{},"projects":{},"location":{"shell":[]},"requests":[]}}, + {"name":"experimental.mcp.event","state":"loaded","event":{"id":"evt_9099","created":1099,"type":"experimental.mcp.event","data":{"id":"x","server":"x","name":"x","eventId":"x","timestamp":"x","data":{},"cursor":"x"},"location":{"directory":"/project"}},"expected":{"sessions":{"ses_a":{"id":"ses_a","projectID":"project","agent":"build","model":{"providerID":"p","id":"m"},"title":"Title ses_a","cost":0.5,"tokens":{"input":1,"output":1,"reasoning":0,"cache":{"read":0,"write":0}},"time":{"created":1,"updated":2},"location":{"directory":"/project"}}},"missing":[],"family":{"ses_a":["ses_a"],"ses_b":[]},"status":{"ses_a":"idle","ses_b":"idle"},"messages":{"ses_a":[{"id":"msg_0001","type":"user","text":"hello","time":{"created":10}},{"id":"msg_0002","type":"assistant","agent":"build","model":{"providerID":"p","id":"m"},"content":[{"type":"text","text":"done"}],"time":{"created":11,"completed":12}},{"id":"msg_0003","type":"shell","shellID":"sh_1","command":"ls","status":"running","time":{"created":13}},{"id":"msg_0004","type":"compaction","status":"running","reason":"auto","summary":"sum","time":{"created":14}},{"id":"msg_0005","type":"assistant","agent":"build","model":{"providerID":"p","id":"m"},"content":[{"type":"text","text":"hel"},{"type":"reasoning","text":"th","time":{"created":15}},{"type":"tool","id":"call_1","name":"bash","state":{"status":"streaming","input":"{"},"time":{"created":16}},{"type":"tool","id":"call_2","name":"read","state":{"status":"running","input":{"path":"a"},"metadata":{}},"time":{"created":17,"ran":17}}],"time":{"created":15}},{"id":"msg_0006","type":"user","text":"next","time":{"created":18}}],"ses_b":[]},"more":{"ses_a":true,"ses_b":false},"pending":{"ses_a":[{"id":"msg_0006","sessionID":"ses_a","time":{"created":18},"type":"user","delivery":"steer","payload":{"text":"next"}}],"ses_b":[]},"permissions":{"ses_a":[{"id":"per_1","sessionID":"ses_a","action":"bash","resources":[]}]},"forms":{"ses_a":[{"id":"frm_1","sessionID":"ses_a","title":"Ask","fields":[{"key":"x","type":"string"}]}],"global":[]},"projects":{"project":{"id":"project","canonical":"/project","time":{"created":1,"updated":1,"active":1},"sandboxes":[]}},"location":{"info":{"directory":"/project","project":{"id":"project","directory":"/project","canonical":"/project"}},"vcs":{"branch":{"current":"main","default":"main"}},"agent":[],"command":[],"config":[],"integration":[{"id":"openai","name":"OpenAI","methods":[],"connections":[{"type":"credential","id":"crd_1","label":"crd_1","method":"key"},{"type":"credential","id":"crd_2","label":"crd_2","method":"key"}]}],"mcpServer":[],"mcpResource":[],"model":[],"provider":[],"reference":[],"skill":[],"websearch":[],"usageLimits":null,"shell":[{"id":"sh_1","status":"running","command":"ls","cwd":"/project","shell":"bash","file":"/tmp/sh_1","metadata":{"sessionID":"ses_a"},"time":{"started":13},"location":{"directory":"/project"}}]},"requests":[]}}, + {"name":"rpc.x","state":"empty","event":{"id":"evt_9100","created":1100,"type":"rpc.x","location":{"directory":"/project"},"data":{}},"expected":{"sessions":{},"missing":[],"family":{"ses_a":[],"ses_b":[]},"status":{"ses_a":"idle","ses_b":"idle"},"messages":{"ses_a":[],"ses_b":[]},"more":{"ses_a":false,"ses_b":false},"pending":{"ses_a":[],"ses_b":[]},"permissions":{},"forms":{},"projects":{},"location":{"shell":[]},"requests":[]}}, + {"name":"rpc.x","state":"loaded","event":{"id":"evt_9100","created":1100,"type":"rpc.x","location":{"directory":"/project"},"data":{}},"expected":{"sessions":{"ses_a":{"id":"ses_a","projectID":"project","agent":"build","model":{"providerID":"p","id":"m"},"title":"Title ses_a","cost":0.5,"tokens":{"input":1,"output":1,"reasoning":0,"cache":{"read":0,"write":0}},"time":{"created":1,"updated":2},"location":{"directory":"/project"}}},"missing":[],"family":{"ses_a":["ses_a"],"ses_b":[]},"status":{"ses_a":"idle","ses_b":"idle"},"messages":{"ses_a":[{"id":"msg_0001","type":"user","text":"hello","time":{"created":10}},{"id":"msg_0002","type":"assistant","agent":"build","model":{"providerID":"p","id":"m"},"content":[{"type":"text","text":"done"}],"time":{"created":11,"completed":12}},{"id":"msg_0003","type":"shell","shellID":"sh_1","command":"ls","status":"running","time":{"created":13}},{"id":"msg_0004","type":"compaction","status":"running","reason":"auto","summary":"sum","time":{"created":14}},{"id":"msg_0005","type":"assistant","agent":"build","model":{"providerID":"p","id":"m"},"content":[{"type":"text","text":"hel"},{"type":"reasoning","text":"th","time":{"created":15}},{"type":"tool","id":"call_1","name":"bash","state":{"status":"streaming","input":"{"},"time":{"created":16}},{"type":"tool","id":"call_2","name":"read","state":{"status":"running","input":{"path":"a"},"metadata":{}},"time":{"created":17,"ran":17}}],"time":{"created":15}},{"id":"msg_0006","type":"user","text":"next","time":{"created":18}}],"ses_b":[]},"more":{"ses_a":true,"ses_b":false},"pending":{"ses_a":[{"id":"msg_0006","sessionID":"ses_a","time":{"created":18},"type":"user","delivery":"steer","payload":{"text":"next"}}],"ses_b":[]},"permissions":{"ses_a":[{"id":"per_1","sessionID":"ses_a","action":"bash","resources":[]}]},"forms":{"ses_a":[{"id":"frm_1","sessionID":"ses_a","title":"Ask","fields":[{"key":"x","type":"string"}]}],"global":[]},"projects":{"project":{"id":"project","canonical":"/project","time":{"created":1,"updated":1,"active":1},"sandboxes":[]}},"location":{"info":{"directory":"/project","project":{"id":"project","directory":"/project","canonical":"/project"}},"vcs":{"branch":{"current":"main","default":"main"}},"agent":[],"command":[],"config":[],"integration":[{"id":"openai","name":"OpenAI","methods":[],"connections":[{"type":"credential","id":"crd_1","label":"crd_1","method":"key"},{"type":"credential","id":"crd_2","label":"crd_2","method":"key"}]}],"mcpServer":[],"mcpResource":[],"model":[],"provider":[],"reference":[],"skill":[],"websearch":[],"usageLimits":null,"shell":[{"id":"sh_1","status":"running","command":"ls","cwd":"/project","shell":"bash","file":"/tmp/sh_1","metadata":{"sessionID":"ses_a"},"time":{"started":13},"location":{"directory":"/project"}}]},"requests":[]}}, + {"name":"server.connected","state":"empty","event":{"id":"evt_9101","type":"server.connected","data":{},"created":1101,"location":{"directory":"/project"}},"expected":{"sessions":{},"missing":[],"family":{"ses_a":[],"ses_b":[]},"status":{"ses_a":"idle","ses_b":"idle"},"messages":{"ses_a":[],"ses_b":[]},"more":{"ses_a":false,"ses_b":false},"pending":{"ses_a":[],"ses_b":[]},"permissions":{},"forms":{},"projects":{"project":{"id":"project","canonical":"/project","time":{"created":1,"updated":1,"active":1},"sandboxes":[]}},"location":{"info":{"directory":"/project","project":{"id":"project","directory":"/project","canonical":"/project"}},"vcs":{"branch":{"current":"main","default":"main"}},"shell":[]},"requests":["GET /api/location?location[directory]=/project","GET /api/project","GET /api/session/active","GET /api/vcs?location[directory]=/project"]}}, + {"name":"server.connected","state":"loaded","event":{"id":"evt_9101","type":"server.connected","data":{},"created":1101,"location":{"directory":"/project"}},"expected":{"sessions":{"ses_a":{"id":"ses_a","projectID":"project","agent":"build","model":{"providerID":"p","id":"m"},"title":"Title ses_a","cost":0.5,"tokens":{"input":1,"output":1,"reasoning":0,"cache":{"read":0,"write":0}},"time":{"created":1,"updated":2},"location":{"directory":"/project"}}},"missing":[],"family":{"ses_a":["ses_a"],"ses_b":[]},"status":{"ses_a":"idle","ses_b":"idle"},"messages":{"ses_a":[{"id":"msg_0001","type":"user","text":"hello","time":{"created":10}},{"id":"msg_0002","type":"assistant","agent":"build","model":{"providerID":"p","id":"m"},"content":[{"type":"text","text":"done"}],"time":{"created":11,"completed":12}},{"id":"msg_0003","type":"shell","shellID":"sh_1","command":"ls","status":"running","time":{"created":13}},{"id":"msg_0004","type":"compaction","status":"running","reason":"auto","summary":"sum","time":{"created":14}},{"id":"msg_0005","type":"assistant","agent":"build","model":{"providerID":"p","id":"m"},"content":[{"type":"text","text":"hel"},{"type":"reasoning","text":"th","time":{"created":15}},{"type":"tool","id":"call_1","name":"bash","state":{"status":"streaming","input":"{"},"time":{"created":16}},{"type":"tool","id":"call_2","name":"read","state":{"status":"running","input":{"path":"a"},"metadata":{}},"time":{"created":17,"ran":17}}],"time":{"created":15}},{"id":"msg_0006","type":"user","text":"next","time":{"created":18}}],"ses_b":[]},"more":{"ses_a":true,"ses_b":false},"pending":{"ses_a":[{"id":"msg_0006","sessionID":"ses_a","time":{"created":18},"type":"user","delivery":"steer","payload":{"text":"next"}}],"ses_b":[]},"permissions":{"ses_a":[{"id":"per_1","sessionID":"ses_a","action":"bash","resources":[]}]},"forms":{"ses_a":[{"id":"frm_1","sessionID":"ses_a","title":"Ask","fields":[{"key":"x","type":"string"}]}],"global":[]},"projects":{"project":{"id":"project","canonical":"/project","time":{"created":1,"updated":1,"active":1},"sandboxes":[]}},"location":{"info":{"directory":"/project","project":{"id":"project","directory":"/project","canonical":"/project"}},"vcs":{"branch":{"current":"main","default":"main"}},"agent":[],"command":[],"config":[],"integration":[{"id":"openai","name":"OpenAI","methods":[],"connections":[{"type":"credential","id":"crd_1","label":"crd_1","method":"key"},{"type":"credential","id":"crd_2","label":"crd_2","method":"key"}]}],"mcpServer":[],"mcpResource":[],"model":[],"provider":[],"reference":[],"skill":[],"websearch":[],"usageLimits":null,"shell":[{"id":"sh_1","status":"running","command":"ls","cwd":"/project","shell":"bash","file":"/tmp/sh_1","metadata":{"sessionID":"ses_a"},"time":{"started":13},"location":{"directory":"/project"}}]},"requests":["GET /api/location?location[directory]=/project","GET /api/session/active"]}}, + {"name":"session.execution.interrupted#shutdown","state":"empty","event":{"id":"evt_9102","created":1102,"type":"session.execution.interrupted","durable":{"aggregateID":"x","seq":0,"version":1},"data":{"sessionID":"ses_a","reason":"shutdown"},"location":{"directory":"/project"}},"expected":{"sessions":{},"missing":[],"family":{"ses_a":[],"ses_b":[]},"status":{"ses_a":"idle","ses_b":"idle"},"messages":{"ses_a":[],"ses_b":[]},"more":{"ses_a":false,"ses_b":false},"pending":{"ses_a":[],"ses_b":[]},"permissions":{},"forms":{},"projects":{},"location":{"shell":[]},"requests":[]}}, + {"name":"session.execution.interrupted#shutdown","state":"loaded","event":{"id":"evt_9102","created":1102,"type":"session.execution.interrupted","durable":{"aggregateID":"x","seq":0,"version":1},"data":{"sessionID":"ses_a","reason":"shutdown"},"location":{"directory":"/project"}},"expected":{"sessions":{"ses_a":{"id":"ses_a","projectID":"project","agent":"build","model":{"providerID":"p","id":"m"},"title":"Title ses_a","cost":0.5,"tokens":{"input":1,"output":1,"reasoning":0,"cache":{"read":0,"write":0}},"time":{"created":1,"updated":2},"location":{"directory":"/project"}}},"missing":[],"family":{"ses_a":["ses_a"],"ses_b":[]},"status":{"ses_a":"idle","ses_b":"idle"},"messages":{"ses_a":[{"id":"msg_0001","type":"user","text":"hello","time":{"created":10}},{"id":"msg_0002","type":"assistant","agent":"build","model":{"providerID":"p","id":"m"},"content":[{"type":"text","text":"done"}],"time":{"created":11,"completed":12}},{"id":"msg_0003","type":"shell","shellID":"sh_1","command":"ls","status":"running","time":{"created":13}},{"id":"msg_0004","type":"compaction","status":"running","reason":"auto","summary":"sum","time":{"created":14}},{"id":"msg_0005","type":"assistant","agent":"build","model":{"providerID":"p","id":"m"},"content":[{"type":"text","text":"hel"},{"type":"reasoning","text":"th","time":{"created":15}},{"type":"tool","id":"call_1","name":"bash","state":{"status":"streaming","input":"{"},"time":{"created":16}},{"type":"tool","id":"call_2","name":"read","state":{"status":"running","input":{"path":"a"},"metadata":{}},"time":{"created":17,"ran":17}}],"time":{"created":15}},{"id":"msg_0006","type":"user","text":"next","time":{"created":18}}],"ses_b":[]},"more":{"ses_a":true,"ses_b":false},"pending":{"ses_a":[{"id":"msg_0006","sessionID":"ses_a","time":{"created":18},"type":"user","delivery":"steer","payload":{"text":"next"}}],"ses_b":[]},"permissions":{"ses_a":[{"id":"per_1","sessionID":"ses_a","action":"bash","resources":[]}]},"forms":{"ses_a":[{"id":"frm_1","sessionID":"ses_a","title":"Ask","fields":[{"key":"x","type":"string"}]}],"global":[]},"projects":{"project":{"id":"project","canonical":"/project","time":{"created":1,"updated":1,"active":1},"sandboxes":[]}},"location":{"info":{"directory":"/project","project":{"id":"project","directory":"/project","canonical":"/project"}},"vcs":{"branch":{"current":"main","default":"main"}},"agent":[],"command":[],"config":[],"integration":[{"id":"openai","name":"OpenAI","methods":[],"connections":[{"type":"credential","id":"crd_1","label":"crd_1","method":"key"},{"type":"credential","id":"crd_2","label":"crd_2","method":"key"}]}],"mcpServer":[],"mcpResource":[],"model":[],"provider":[],"reference":[],"skill":[],"websearch":[],"usageLimits":null,"shell":[{"id":"sh_1","status":"running","command":"ls","cwd":"/project","shell":"bash","file":"/tmp/sh_1","metadata":{"sessionID":"ses_a"},"time":{"started":13},"location":{"directory":"/project"}}]},"requests":[]}}, + {"name":"session.step.failed#budget","state":"empty","event":{"id":"evt_9103","created":1103,"type":"session.step.failed","durable":{"aggregateID":"x","seq":0,"version":1},"data":{"sessionID":"ses_a","assistantMessageID":"msg_0005","error":{"type":"provider.budget-limit","message":"budget"}},"location":{"directory":"/project"}},"expected":{"sessions":{},"missing":[],"family":{"ses_a":[],"ses_b":[]},"status":{"ses_a":"idle","ses_b":"idle"},"messages":{"ses_a":[],"ses_b":[]},"more":{"ses_a":false,"ses_b":false},"pending":{"ses_a":[],"ses_b":[]},"permissions":{},"forms":{},"projects":{},"location":{"shell":[]},"requests":[]}}, + {"name":"session.step.failed#budget","state":"loaded","event":{"id":"evt_9103","created":1103,"type":"session.step.failed","durable":{"aggregateID":"x","seq":0,"version":1},"data":{"sessionID":"ses_a","assistantMessageID":"msg_0005","error":{"type":"provider.budget-limit","message":"budget"}},"location":{"directory":"/project"}},"expected":{"sessions":{"ses_a":{"id":"ses_a","projectID":"project","agent":"build","model":{"providerID":"p","id":"m"},"title":"Title ses_a","cost":0.5,"tokens":{"input":1,"output":1,"reasoning":0,"cache":{"read":0,"write":0}},"time":{"created":1,"updated":2},"location":{"directory":"/project"}}},"missing":[],"family":{"ses_a":["ses_a"],"ses_b":[]},"status":{"ses_a":"idle","ses_b":"idle"},"messages":{"ses_a":[{"id":"msg_0001","type":"user","text":"hello","time":{"created":10}},{"id":"msg_0002","type":"assistant","agent":"build","model":{"providerID":"p","id":"m"},"content":[{"type":"text","text":"done"}],"time":{"created":11,"completed":12}},{"id":"msg_0003","type":"shell","shellID":"sh_1","command":"ls","status":"running","time":{"created":13}},{"id":"msg_0004","type":"compaction","status":"running","reason":"auto","summary":"sum","time":{"created":14}},{"id":"msg_0005","type":"assistant","agent":"build","model":{"providerID":"p","id":"m"},"content":[{"type":"text","text":"hel"},{"type":"reasoning","text":"th","time":{"created":15}},{"type":"tool","id":"call_1","name":"bash","state":{"status":"streaming","input":"{"},"time":{"created":16}},{"type":"tool","id":"call_2","name":"read","state":{"status":"running","input":{"path":"a"},"metadata":{}},"time":{"created":17,"ran":17}}],"time":{"created":15,"completed":1103},"finish":"error","error":{"type":"provider.budget-limit","message":"budget"}},{"id":"msg_0006","type":"user","text":"next","time":{"created":18}}],"ses_b":[]},"more":{"ses_a":true,"ses_b":false},"pending":{"ses_a":[{"id":"msg_0006","sessionID":"ses_a","time":{"created":18},"type":"user","delivery":"steer","payload":{"text":"next"}}],"ses_b":[]},"permissions":{"ses_a":[{"id":"per_1","sessionID":"ses_a","action":"bash","resources":[]}]},"forms":{"ses_a":[{"id":"frm_1","sessionID":"ses_a","title":"Ask","fields":[{"key":"x","type":"string"}]}],"global":[]},"projects":{"project":{"id":"project","canonical":"/project","time":{"created":1,"updated":1,"active":1},"sandboxes":[]}},"location":{"info":{"directory":"/project","project":{"id":"project","directory":"/project","canonical":"/project"}},"vcs":{"branch":{"current":"main","default":"main"}},"agent":[],"command":[],"config":[],"integration":[{"id":"openai","name":"OpenAI","methods":[],"connections":[{"type":"credential","id":"crd_1","label":"crd_1","method":"key"},{"type":"credential","id":"crd_2","label":"crd_2","method":"key"}]}],"mcpServer":[],"mcpResource":[],"model":[],"provider":[],"reference":[],"skill":[],"websearch":[],"usageLimits":null,"shell":[{"id":"sh_1","status":"running","command":"ls","cwd":"/project","shell":"bash","file":"/tmp/sh_1","metadata":{"sessionID":"ses_a"},"time":{"started":13},"location":{"directory":"/project"}}]},"requests":["GET /api/experimental/usage/limits?location[directory]=/project"]}}, + {"name":"session.step.started#existing","state":"empty","event":{"id":"evt_9104","created":1104,"type":"session.step.started","durable":{"aggregateID":"x","seq":0,"version":1},"data":{"sessionID":"ses_a","assistantMessageID":"msg_0005","agent":"x","model":{"id":"x","providerID":"x"},"started":31},"location":{"directory":"/project"}},"expected":{"sessions":{},"missing":[],"family":{"ses_a":[],"ses_b":[]},"status":{"ses_a":"idle","ses_b":"idle"},"messages":{"ses_a":[{"id":"msg_0005","type":"assistant","agent":"x","model":{"id":"x","providerID":"x"},"content":[],"time":{"created":31}}],"ses_b":[]},"more":{"ses_a":false,"ses_b":false},"pending":{"ses_a":[],"ses_b":[]},"permissions":{},"forms":{},"projects":{},"location":{"shell":[]},"requests":[]}}, + {"name":"session.step.started#existing","state":"loaded","event":{"id":"evt_9104","created":1104,"type":"session.step.started","durable":{"aggregateID":"x","seq":0,"version":1},"data":{"sessionID":"ses_a","assistantMessageID":"msg_0005","agent":"x","model":{"id":"x","providerID":"x"},"started":31},"location":{"directory":"/project"}},"expected":{"sessions":{"ses_a":{"id":"ses_a","projectID":"project","agent":"build","model":{"providerID":"p","id":"m"},"title":"Title ses_a","cost":0.5,"tokens":{"input":1,"output":1,"reasoning":0,"cache":{"read":0,"write":0}},"time":{"created":1,"updated":2},"location":{"directory":"/project"}}},"missing":[],"family":{"ses_a":["ses_a"],"ses_b":[]},"status":{"ses_a":"idle","ses_b":"idle"},"messages":{"ses_a":[{"id":"msg_0001","type":"user","text":"hello","time":{"created":10}},{"id":"msg_0002","type":"assistant","agent":"build","model":{"providerID":"p","id":"m"},"content":[{"type":"text","text":"done"}],"time":{"created":11,"completed":12}},{"id":"msg_0003","type":"shell","shellID":"sh_1","command":"ls","status":"running","time":{"created":13}},{"id":"msg_0004","type":"compaction","status":"running","reason":"auto","summary":"sum","time":{"created":14}},{"id":"msg_0005","type":"assistant","agent":"x","model":{"id":"x","providerID":"x"},"content":[{"type":"text","text":"hel"},{"type":"reasoning","text":"th","time":{"created":15}},{"type":"tool","id":"call_1","name":"bash","state":{"status":"streaming","input":"{"},"time":{"created":16}},{"type":"tool","id":"call_2","name":"read","state":{"status":"running","input":{"path":"a"},"metadata":{}},"time":{"created":17,"ran":17}}],"time":{"created":31}},{"id":"msg_0006","type":"user","text":"next","time":{"created":18}}],"ses_b":[]},"more":{"ses_a":true,"ses_b":false},"pending":{"ses_a":[{"id":"msg_0006","sessionID":"ses_a","time":{"created":18},"type":"user","delivery":"steer","payload":{"text":"next"}}],"ses_b":[]},"permissions":{"ses_a":[{"id":"per_1","sessionID":"ses_a","action":"bash","resources":[]}]},"forms":{"ses_a":[{"id":"frm_1","sessionID":"ses_a","title":"Ask","fields":[{"key":"x","type":"string"}]}],"global":[]},"projects":{"project":{"id":"project","canonical":"/project","time":{"created":1,"updated":1,"active":1},"sandboxes":[]}},"location":{"info":{"directory":"/project","project":{"id":"project","directory":"/project","canonical":"/project"}},"vcs":{"branch":{"current":"main","default":"main"}},"agent":[],"command":[],"config":[],"integration":[{"id":"openai","name":"OpenAI","methods":[],"connections":[{"type":"credential","id":"crd_1","label":"crd_1","method":"key"},{"type":"credential","id":"crd_2","label":"crd_2","method":"key"}]}],"mcpServer":[],"mcpResource":[],"model":[],"provider":[],"reference":[],"skill":[],"websearch":[],"usageLimits":null,"shell":[{"id":"sh_1","status":"running","command":"ls","cwd":"/project","shell":"bash","file":"/tmp/sh_1","metadata":{"sessionID":"ses_a"},"time":{"started":13},"location":{"directory":"/project"}}]},"requests":[]}}, + {"name":"session.instructions.updated#baseline","state":"empty","event":{"id":"evt_9105","created":1105,"type":"session.instructions.updated","durable":{"aggregateID":"x","seq":0,"version":2},"data":{"sessionID":"ses_a","delta":{}},"location":{"directory":"/project"}},"expected":{"sessions":{},"missing":[],"family":{"ses_a":[],"ses_b":[]},"status":{"ses_a":"idle","ses_b":"idle"},"messages":{"ses_a":[],"ses_b":[]},"more":{"ses_a":false,"ses_b":false},"pending":{"ses_a":[],"ses_b":[]},"permissions":{},"forms":{},"projects":{},"location":{"shell":[]},"requests":[]}}, + {"name":"session.instructions.updated#baseline","state":"loaded","event":{"id":"evt_9105","created":1105,"type":"session.instructions.updated","durable":{"aggregateID":"x","seq":0,"version":2},"data":{"sessionID":"ses_a","delta":{}},"location":{"directory":"/project"}},"expected":{"sessions":{"ses_a":{"id":"ses_a","projectID":"project","agent":"build","model":{"providerID":"p","id":"m"},"title":"Title ses_a","cost":0.5,"tokens":{"input":1,"output":1,"reasoning":0,"cache":{"read":0,"write":0}},"time":{"created":1,"updated":2},"location":{"directory":"/project"}}},"missing":[],"family":{"ses_a":["ses_a"],"ses_b":[]},"status":{"ses_a":"idle","ses_b":"idle"},"messages":{"ses_a":[{"id":"msg_0001","type":"user","text":"hello","time":{"created":10}},{"id":"msg_0002","type":"assistant","agent":"build","model":{"providerID":"p","id":"m"},"content":[{"type":"text","text":"done"}],"time":{"created":11,"completed":12}},{"id":"msg_0003","type":"shell","shellID":"sh_1","command":"ls","status":"running","time":{"created":13}},{"id":"msg_0004","type":"compaction","status":"running","reason":"auto","summary":"sum","time":{"created":14}},{"id":"msg_0005","type":"assistant","agent":"build","model":{"providerID":"p","id":"m"},"content":[{"type":"text","text":"hel"},{"type":"reasoning","text":"th","time":{"created":15}},{"type":"tool","id":"call_1","name":"bash","state":{"status":"streaming","input":"{"},"time":{"created":16}},{"type":"tool","id":"call_2","name":"read","state":{"status":"running","input":{"path":"a"},"metadata":{}},"time":{"created":17,"ran":17}}],"time":{"created":15}},{"id":"msg_0006","type":"user","text":"next","time":{"created":18}}],"ses_b":[]},"more":{"ses_a":true,"ses_b":false},"pending":{"ses_a":[{"id":"msg_0006","sessionID":"ses_a","time":{"created":18},"type":"user","delivery":"steer","payload":{"text":"next"}}],"ses_b":[]},"permissions":{"ses_a":[{"id":"per_1","sessionID":"ses_a","action":"bash","resources":[]}]},"forms":{"ses_a":[{"id":"frm_1","sessionID":"ses_a","title":"Ask","fields":[{"key":"x","type":"string"}]}],"global":[]},"projects":{"project":{"id":"project","canonical":"/project","time":{"created":1,"updated":1,"active":1},"sandboxes":[]}},"location":{"info":{"directory":"/project","project":{"id":"project","directory":"/project","canonical":"/project"}},"vcs":{"branch":{"current":"main","default":"main"}},"agent":[],"command":[],"config":[],"integration":[{"id":"openai","name":"OpenAI","methods":[],"connections":[{"type":"credential","id":"crd_1","label":"crd_1","method":"key"},{"type":"credential","id":"crd_2","label":"crd_2","method":"key"}]}],"mcpServer":[],"mcpResource":[],"model":[],"provider":[],"reference":[],"skill":[],"websearch":[],"usageLimits":null,"shell":[{"id":"sh_1","status":"running","command":"ls","cwd":"/project","shell":"bash","file":"/tmp/sh_1","metadata":{"sessionID":"ses_a"},"time":{"started":13},"location":{"directory":"/project"}}]},"requests":[]}}, + {"name":"session.model.selected#no-previous","state":"empty","event":{"id":"evt_9106","created":1106,"type":"session.model.selected","durable":{"aggregateID":"x","seq":0,"version":1},"data":{"sessionID":"ses_a","model":{"id":"n","providerID":"p"}},"location":{"directory":"/project"}},"expected":{"sessions":{},"missing":[],"family":{"ses_a":[],"ses_b":[]},"status":{"ses_a":"idle","ses_b":"idle"},"messages":{"ses_a":[],"ses_b":[]},"more":{"ses_a":false,"ses_b":false},"pending":{"ses_a":[],"ses_b":[]},"permissions":{},"forms":{},"projects":{},"location":{"shell":[]},"requests":[]}}, + {"name":"session.model.selected#no-previous","state":"loaded","event":{"id":"evt_9106","created":1106,"type":"session.model.selected","durable":{"aggregateID":"x","seq":0,"version":1},"data":{"sessionID":"ses_a","model":{"id":"n","providerID":"p"}},"location":{"directory":"/project"}},"expected":{"sessions":{"ses_a":{"id":"ses_a","projectID":"project","agent":"build","model":{"providerID":"p","id":"n"},"title":"Title ses_a","cost":0.5,"tokens":{"input":1,"output":1,"reasoning":0,"cache":{"read":0,"write":0}},"time":{"created":1,"updated":2},"location":{"directory":"/project"}}},"missing":[],"family":{"ses_a":["ses_a"],"ses_b":[]},"status":{"ses_a":"idle","ses_b":"idle"},"messages":{"ses_a":[{"id":"msg_0001","type":"user","text":"hello","time":{"created":10}},{"id":"msg_0002","type":"assistant","agent":"build","model":{"providerID":"p","id":"m"},"content":[{"type":"text","text":"done"}],"time":{"created":11,"completed":12}},{"id":"msg_0003","type":"shell","shellID":"sh_1","command":"ls","status":"running","time":{"created":13}},{"id":"msg_0004","type":"compaction","status":"running","reason":"auto","summary":"sum","time":{"created":14}},{"id":"msg_0005","type":"assistant","agent":"build","model":{"providerID":"p","id":"m"},"content":[{"type":"text","text":"hel"},{"type":"reasoning","text":"th","time":{"created":15}},{"type":"tool","id":"call_1","name":"bash","state":{"status":"streaming","input":"{"},"time":{"created":16}},{"type":"tool","id":"call_2","name":"read","state":{"status":"running","input":{"path":"a"},"metadata":{}},"time":{"created":17,"ran":17}}],"time":{"created":15}},{"id":"msg_0006","type":"user","text":"next","time":{"created":18}},{"id":"msg_9106","type":"model-switched","model":{"id":"n","providerID":"p"},"previous":{"providerID":"p","id":"n"},"time":{"created":1106}}],"ses_b":[]},"more":{"ses_a":true,"ses_b":false},"pending":{"ses_a":[{"id":"msg_0006","sessionID":"ses_a","time":{"created":18},"type":"user","delivery":"steer","payload":{"text":"next"}}],"ses_b":[]},"permissions":{"ses_a":[{"id":"per_1","sessionID":"ses_a","action":"bash","resources":[]}]},"forms":{"ses_a":[{"id":"frm_1","sessionID":"ses_a","title":"Ask","fields":[{"key":"x","type":"string"}]}],"global":[]},"projects":{"project":{"id":"project","canonical":"/project","time":{"created":1,"updated":1,"active":1},"sandboxes":[]}},"location":{"info":{"directory":"/project","project":{"id":"project","directory":"/project","canonical":"/project"}},"vcs":{"branch":{"current":"main","default":"main"}},"agent":[],"command":[],"config":[],"integration":[{"id":"openai","name":"OpenAI","methods":[],"connections":[{"type":"credential","id":"crd_1","label":"crd_1","method":"key"},{"type":"credential","id":"crd_2","label":"crd_2","method":"key"}]}],"mcpServer":[],"mcpResource":[],"model":[],"provider":[],"reference":[],"skill":[],"websearch":[],"usageLimits":null,"shell":[{"id":"sh_1","status":"running","command":"ls","cwd":"/project","shell":"bash","file":"/tmp/sh_1","metadata":{"sessionID":"ses_a"},"time":{"started":13},"location":{"directory":"/project"}}]},"requests":["GET /api/session/ses_a/message/msg_9106"]}}, + {"name":"session.inbox.enqueued#compaction","state":"empty","event":{"id":"evt_9107","created":1107,"type":"session.inbox.enqueued","durable":{"aggregateID":"x","seq":0,"version":1},"data":{"sessionID":"ses_a","inboxID":"msg_0010","item":{"type":"compaction","delivery":"steer","payload":{}}},"location":{"directory":"/project"}},"expected":{"sessions":{},"missing":[],"family":{"ses_a":[],"ses_b":[]},"status":{"ses_a":"idle","ses_b":"idle"},"messages":{"ses_a":[],"ses_b":[]},"more":{"ses_a":false,"ses_b":false},"pending":{"ses_a":[{"id":"msg_0010","sessionID":"ses_a","time":{"created":1107},"type":"compaction","delivery":"steer","payload":{}}],"ses_b":[]},"permissions":{},"forms":{},"projects":{},"location":{"shell":[]},"requests":[]}}, + {"name":"session.inbox.enqueued#compaction","state":"loaded","event":{"id":"evt_9107","created":1107,"type":"session.inbox.enqueued","durable":{"aggregateID":"x","seq":0,"version":1},"data":{"sessionID":"ses_a","inboxID":"msg_0010","item":{"type":"compaction","delivery":"steer","payload":{}}},"location":{"directory":"/project"}},"expected":{"sessions":{"ses_a":{"id":"ses_a","projectID":"project","agent":"build","model":{"providerID":"p","id":"m"},"title":"Title ses_a","cost":0.5,"tokens":{"input":1,"output":1,"reasoning":0,"cache":{"read":0,"write":0}},"time":{"created":1,"updated":2},"location":{"directory":"/project"}}},"missing":[],"family":{"ses_a":["ses_a"],"ses_b":[]},"status":{"ses_a":"idle","ses_b":"idle"},"messages":{"ses_a":[{"id":"msg_0001","type":"user","text":"hello","time":{"created":10}},{"id":"msg_0002","type":"assistant","agent":"build","model":{"providerID":"p","id":"m"},"content":[{"type":"text","text":"done"}],"time":{"created":11,"completed":12}},{"id":"msg_0003","type":"shell","shellID":"sh_1","command":"ls","status":"running","time":{"created":13}},{"id":"msg_0004","type":"compaction","status":"running","reason":"auto","summary":"sum","time":{"created":14}},{"id":"msg_0005","type":"assistant","agent":"build","model":{"providerID":"p","id":"m"},"content":[{"type":"text","text":"hel"},{"type":"reasoning","text":"th","time":{"created":15}},{"type":"tool","id":"call_1","name":"bash","state":{"status":"streaming","input":"{"},"time":{"created":16}},{"type":"tool","id":"call_2","name":"read","state":{"status":"running","input":{"path":"a"},"metadata":{}},"time":{"created":17,"ran":17}}],"time":{"created":15}},{"id":"msg_0006","type":"user","text":"next","time":{"created":18}}],"ses_b":[]},"more":{"ses_a":true,"ses_b":false},"pending":{"ses_a":[{"id":"msg_0006","sessionID":"ses_a","time":{"created":18},"type":"user","delivery":"steer","payload":{"text":"next"}},{"id":"msg_0010","sessionID":"ses_a","time":{"created":1107},"type":"compaction","delivery":"steer","payload":{}}],"ses_b":[]},"permissions":{"ses_a":[{"id":"per_1","sessionID":"ses_a","action":"bash","resources":[]}]},"forms":{"ses_a":[{"id":"frm_1","sessionID":"ses_a","title":"Ask","fields":[{"key":"x","type":"string"}]}],"global":[]},"projects":{"project":{"id":"project","canonical":"/project","time":{"created":1,"updated":1,"active":1},"sandboxes":[]}},"location":{"info":{"directory":"/project","project":{"id":"project","directory":"/project","canonical":"/project"}},"vcs":{"branch":{"current":"main","default":"main"}},"agent":[],"command":[],"config":[],"integration":[{"id":"openai","name":"OpenAI","methods":[],"connections":[{"type":"credential","id":"crd_1","label":"crd_1","method":"key"},{"type":"credential","id":"crd_2","label":"crd_2","method":"key"}]}],"mcpServer":[],"mcpResource":[],"model":[],"provider":[],"reference":[],"skill":[],"websearch":[],"usageLimits":null,"shell":[{"id":"sh_1","status":"running","command":"ls","cwd":"/project","shell":"bash","file":"/tmp/sh_1","metadata":{"sessionID":"ses_a"},"time":{"started":13},"location":{"directory":"/project"}}]},"requests":[]}}, + {"name":"form.created#global","state":"empty","event":{"id":"evt_9108","created":1108,"type":"form.created","data":{"form":{"id":"frm_3","sessionID":"global","title":"Elicit","fields":[{"key":"x","type":"string"}]}},"location":{"directory":"/project"}},"expected":{"sessions":{},"missing":[],"family":{"ses_a":[],"ses_b":[]},"status":{"ses_a":"idle","ses_b":"idle"},"messages":{"ses_a":[],"ses_b":[]},"more":{"ses_a":false,"ses_b":false},"pending":{"ses_a":[],"ses_b":[]},"permissions":{},"forms":{"global":[{"id":"frm_3","sessionID":"global","title":"Elicit","fields":[{"key":"x","type":"string"}],"location":{"directory":"/project"}}]},"projects":{},"location":{"shell":[]},"requests":[]}}, + {"name":"form.created#global","state":"loaded","event":{"id":"evt_9108","created":1108,"type":"form.created","data":{"form":{"id":"frm_3","sessionID":"global","title":"Elicit","fields":[{"key":"x","type":"string"}]}},"location":{"directory":"/project"}},"expected":{"sessions":{"ses_a":{"id":"ses_a","projectID":"project","agent":"build","model":{"providerID":"p","id":"m"},"title":"Title ses_a","cost":0.5,"tokens":{"input":1,"output":1,"reasoning":0,"cache":{"read":0,"write":0}},"time":{"created":1,"updated":2},"location":{"directory":"/project"}}},"missing":[],"family":{"ses_a":["ses_a"],"ses_b":[]},"status":{"ses_a":"idle","ses_b":"idle"},"messages":{"ses_a":[{"id":"msg_0001","type":"user","text":"hello","time":{"created":10}},{"id":"msg_0002","type":"assistant","agent":"build","model":{"providerID":"p","id":"m"},"content":[{"type":"text","text":"done"}],"time":{"created":11,"completed":12}},{"id":"msg_0003","type":"shell","shellID":"sh_1","command":"ls","status":"running","time":{"created":13}},{"id":"msg_0004","type":"compaction","status":"running","reason":"auto","summary":"sum","time":{"created":14}},{"id":"msg_0005","type":"assistant","agent":"build","model":{"providerID":"p","id":"m"},"content":[{"type":"text","text":"hel"},{"type":"reasoning","text":"th","time":{"created":15}},{"type":"tool","id":"call_1","name":"bash","state":{"status":"streaming","input":"{"},"time":{"created":16}},{"type":"tool","id":"call_2","name":"read","state":{"status":"running","input":{"path":"a"},"metadata":{}},"time":{"created":17,"ran":17}}],"time":{"created":15}},{"id":"msg_0006","type":"user","text":"next","time":{"created":18}}],"ses_b":[]},"more":{"ses_a":true,"ses_b":false},"pending":{"ses_a":[{"id":"msg_0006","sessionID":"ses_a","time":{"created":18},"type":"user","delivery":"steer","payload":{"text":"next"}}],"ses_b":[]},"permissions":{"ses_a":[{"id":"per_1","sessionID":"ses_a","action":"bash","resources":[]}]},"forms":{"ses_a":[{"id":"frm_1","sessionID":"ses_a","title":"Ask","fields":[{"key":"x","type":"string"}]}],"global":[{"id":"frm_3","sessionID":"global","title":"Elicit","fields":[{"key":"x","type":"string"}],"location":{"directory":"/project"}}]},"projects":{"project":{"id":"project","canonical":"/project","time":{"created":1,"updated":1,"active":1},"sandboxes":[]}},"location":{"info":{"directory":"/project","project":{"id":"project","directory":"/project","canonical":"/project"}},"vcs":{"branch":{"current":"main","default":"main"}},"agent":[],"command":[],"config":[],"integration":[{"id":"openai","name":"OpenAI","methods":[],"connections":[{"type":"credential","id":"crd_1","label":"crd_1","method":"key"},{"type":"credential","id":"crd_2","label":"crd_2","method":"key"}]}],"mcpServer":[],"mcpResource":[],"model":[],"provider":[],"reference":[],"skill":[],"websearch":[],"usageLimits":null,"shell":[{"id":"sh_1","status":"running","command":"ls","cwd":"/project","shell":"bash","file":"/tmp/sh_1","metadata":{"sessionID":"ses_a"},"time":{"started":13},"location":{"directory":"/project"}}]},"requests":[]}} + ] +} diff --git a/packages/cli-rs/parity/fixtures/F.8/session-target.json b/packages/cli-rs/parity/fixtures/F.8/session-target.json new file mode 100644 index 000000000000..3968d41ea109 --- /dev/null +++ b/packages/cli-rs/parity/fixtures/F.8/session-target.json @@ -0,0 +1,145 @@ +{ + "targets": [ + { + "name": "adopts an explicit Session location and model", + "input": {"session":"ses_resume"}, + "routes": [ + {"method":"GET","path":"/api/session/ses_resume","replies":[{"status":200,"body":{"data":{"id":"ses_resume","projectID":"project","title":"ses_resume","location":{"directory":"/session"},"cost":0,"tokens":{"input":0,"output":0,"reasoning":0,"cache":{"read":0,"write":0}},"time":{"created":1,"updated":1},"model":{"providerID":"openai","id":"gpt-5"}}}}]}, + {"method":"GET","path":"/api/location","replies":[{"status":200,"body":{"directory":"/session","project":{"id":"project","directory":"/session","canonical":"/session"}}}]} + ], + "expected": {"requests":[{"method":"GET","path":"/api/session/ses_resume","query":[],"body":null},{"method":"GET","path":"/api/location","query":[["location[directory]","/session"]],"body":null}],"prepared":{"location":"/session","session":"ses_resume","model":{"providerID":"openai","id":"gpt-5"},"agent":null},"outcome":{"ok":{"session":"ses_resume","location":"/session","model":{"providerID":"openai","id":"gpt-5"},"agent":null,"resume":true}}} + }, + { + "name": "creates a missing explicit Session with its ID", + "input": {"session":"ses_chosen"}, + "routes": [ + {"method":"GET","path":"/api/session/ses_chosen","replies":[{"status":404,"body":{"_tag":"SessionNotFoundError","sessionID":"ses_chosen","message":"Session not found: ses_chosen"}}]}, + {"method":"GET","path":"/api/location","replies":[{"status":200,"body":{"directory":"/project","project":{"id":"project","directory":"/project","canonical":"/project"}}}]}, + {"method":"POST","path":"/api/session","replies":[{"status":200,"body":{"data":{"id":"ses_chosen","projectID":"project","title":"ses_chosen","location":{"directory":"/project"},"cost":0,"tokens":{"input":0,"output":0,"reasoning":0,"cache":{"read":0,"write":0}},"time":{"created":1,"updated":1}}}}]} + ], + "expected": {"requests":[{"method":"GET","path":"/api/session/ses_chosen","query":[],"body":null},{"method":"GET","path":"/api/location","query":[],"body":null},{"method":"POST","path":"/api/session","query":[],"body":{"id":"ses_chosen","location":{"directory":"/project"}}}],"prepared":{"location":"/project","session":null,"model":null,"agent":null},"outcome":{"ok":{"session":"ses_chosen","location":"/project","model":null,"agent":null,"resume":false}}} + }, + { + "name": "does not create a missing explicit Session to fork", + "input": {"session":"ses_chosen","fork":true}, + "routes": [ + {"method":"GET","path":"/api/session/ses_chosen","replies":[{"status":404,"body":{"_tag":"SessionNotFoundError","sessionID":"ses_chosen","message":"Session not found: ses_chosen"}}]} + ], + "expected": {"requests":[{"method":"GET","path":"/api/session/ses_chosen","query":[],"body":null}],"prepared":null,"outcome":{"error":{"kind":"not-found"}}} + }, + { + "name": "forks an explicit Session", + "input": {"session":"ses_resume","fork":true,"agent":"plan"}, + "routes": [ + {"method":"GET","path":"/api/session/ses_resume","replies":[{"status":200,"body":{"data":{"id":"ses_resume","projectID":"project","title":"ses_resume","location":{"directory":"/session"},"cost":0,"tokens":{"input":0,"output":0,"reasoning":0,"cache":{"read":0,"write":0}},"time":{"created":1,"updated":1}}}}]}, + {"method":"POST","path":"/api/session/ses_resume/fork","replies":[{"status":200,"body":{"data":{"id":"ses_fork","projectID":"project","title":"ses_fork","location":{"directory":"/session"},"cost":0,"tokens":{"input":0,"output":0,"reasoning":0,"cache":{"read":0,"write":0}},"time":{"created":1,"updated":1},"agent":"build"}}}]}, + {"method":"GET","path":"/api/location","replies":[{"status":200,"body":{"directory":"/session","project":{"id":"project","directory":"/session","canonical":"/session"}}}]} + ], + "expected": {"requests":[{"method":"GET","path":"/api/session/ses_resume","query":[],"body":null},{"method":"POST","path":"/api/session/ses_resume/fork","query":[],"body":{}},{"method":"GET","path":"/api/location","query":[["location[directory]","/session"]],"body":null}],"prepared":{"location":"/session","session":"ses_fork","model":null,"agent":"plan"},"outcome":{"ok":{"session":"ses_fork","location":"/session","model":null,"agent":"plan","resume":true}}} + }, + { + "name": "paginates to continue the exact directory", + "input": {"directory":"/project","continue":true}, + "routes": [ + {"method":"GET","path":"/api/location","replies":[{"status":200,"body":{"directory":"/project","project":{"id":"project","directory":"/project","canonical":"/project"}}}]}, + {"method":"GET","path":"/api/session","replies":[{"status":200,"body":{"data":[{"id":"ses_0","projectID":"project","title":"ses_0","location":{"directory":"/other/0"},"cost":0,"tokens":{"input":0,"output":0,"reasoning":0,"cache":{"read":0,"write":0}},"time":{"created":1,"updated":1}},{"id":"ses_1","projectID":"project","title":"ses_1","location":{"directory":"/other/1"},"cost":0,"tokens":{"input":0,"output":0,"reasoning":0,"cache":{"read":0,"write":0}},"time":{"created":1,"updated":1}},{"id":"ses_2","projectID":"project","title":"ses_2","location":{"directory":"/other/2"},"cost":0,"tokens":{"input":0,"output":0,"reasoning":0,"cache":{"read":0,"write":0}},"time":{"created":1,"updated":1}},{"id":"ses_3","projectID":"project","title":"ses_3","location":{"directory":"/other/3"},"cost":0,"tokens":{"input":0,"output":0,"reasoning":0,"cache":{"read":0,"write":0}},"time":{"created":1,"updated":1}},{"id":"ses_4","projectID":"project","title":"ses_4","location":{"directory":"/other/4"},"cost":0,"tokens":{"input":0,"output":0,"reasoning":0,"cache":{"read":0,"write":0}},"time":{"created":1,"updated":1}},{"id":"ses_5","projectID":"project","title":"ses_5","location":{"directory":"/other/5"},"cost":0,"tokens":{"input":0,"output":0,"reasoning":0,"cache":{"read":0,"write":0}},"time":{"created":1,"updated":1}},{"id":"ses_6","projectID":"project","title":"ses_6","location":{"directory":"/other/6"},"cost":0,"tokens":{"input":0,"output":0,"reasoning":0,"cache":{"read":0,"write":0}},"time":{"created":1,"updated":1}},{"id":"ses_7","projectID":"project","title":"ses_7","location":{"directory":"/other/7"},"cost":0,"tokens":{"input":0,"output":0,"reasoning":0,"cache":{"read":0,"write":0}},"time":{"created":1,"updated":1}},{"id":"ses_8","projectID":"project","title":"ses_8","location":{"directory":"/other/8"},"cost":0,"tokens":{"input":0,"output":0,"reasoning":0,"cache":{"read":0,"write":0}},"time":{"created":1,"updated":1}},{"id":"ses_9","projectID":"project","title":"ses_9","location":{"directory":"/other/9"},"cost":0,"tokens":{"input":0,"output":0,"reasoning":0,"cache":{"read":0,"write":0}},"time":{"created":1,"updated":1}},{"id":"ses_10","projectID":"project","title":"ses_10","location":{"directory":"/other/10"},"cost":0,"tokens":{"input":0,"output":0,"reasoning":0,"cache":{"read":0,"write":0}},"time":{"created":1,"updated":1}},{"id":"ses_11","projectID":"project","title":"ses_11","location":{"directory":"/other/11"},"cost":0,"tokens":{"input":0,"output":0,"reasoning":0,"cache":{"read":0,"write":0}},"time":{"created":1,"updated":1}},{"id":"ses_12","projectID":"project","title":"ses_12","location":{"directory":"/other/12"},"cost":0,"tokens":{"input":0,"output":0,"reasoning":0,"cache":{"read":0,"write":0}},"time":{"created":1,"updated":1}},{"id":"ses_13","projectID":"project","title":"ses_13","location":{"directory":"/other/13"},"cost":0,"tokens":{"input":0,"output":0,"reasoning":0,"cache":{"read":0,"write":0}},"time":{"created":1,"updated":1}},{"id":"ses_14","projectID":"project","title":"ses_14","location":{"directory":"/other/14"},"cost":0,"tokens":{"input":0,"output":0,"reasoning":0,"cache":{"read":0,"write":0}},"time":{"created":1,"updated":1}},{"id":"ses_15","projectID":"project","title":"ses_15","location":{"directory":"/other/15"},"cost":0,"tokens":{"input":0,"output":0,"reasoning":0,"cache":{"read":0,"write":0}},"time":{"created":1,"updated":1}},{"id":"ses_16","projectID":"project","title":"ses_16","location":{"directory":"/other/16"},"cost":0,"tokens":{"input":0,"output":0,"reasoning":0,"cache":{"read":0,"write":0}},"time":{"created":1,"updated":1}},{"id":"ses_17","projectID":"project","title":"ses_17","location":{"directory":"/other/17"},"cost":0,"tokens":{"input":0,"output":0,"reasoning":0,"cache":{"read":0,"write":0}},"time":{"created":1,"updated":1}},{"id":"ses_18","projectID":"project","title":"ses_18","location":{"directory":"/other/18"},"cost":0,"tokens":{"input":0,"output":0,"reasoning":0,"cache":{"read":0,"write":0}},"time":{"created":1,"updated":1}},{"id":"ses_19","projectID":"project","title":"ses_19","location":{"directory":"/other/19"},"cost":0,"tokens":{"input":0,"output":0,"reasoning":0,"cache":{"read":0,"write":0}},"time":{"created":1,"updated":1}},{"id":"ses_20","projectID":"project","title":"ses_20","location":{"directory":"/other/20"},"cost":0,"tokens":{"input":0,"output":0,"reasoning":0,"cache":{"read":0,"write":0}},"time":{"created":1,"updated":1}},{"id":"ses_21","projectID":"project","title":"ses_21","location":{"directory":"/other/21"},"cost":0,"tokens":{"input":0,"output":0,"reasoning":0,"cache":{"read":0,"write":0}},"time":{"created":1,"updated":1}},{"id":"ses_22","projectID":"project","title":"ses_22","location":{"directory":"/other/22"},"cost":0,"tokens":{"input":0,"output":0,"reasoning":0,"cache":{"read":0,"write":0}},"time":{"created":1,"updated":1}},{"id":"ses_23","projectID":"project","title":"ses_23","location":{"directory":"/other/23"},"cost":0,"tokens":{"input":0,"output":0,"reasoning":0,"cache":{"read":0,"write":0}},"time":{"created":1,"updated":1}},{"id":"ses_24","projectID":"project","title":"ses_24","location":{"directory":"/other/24"},"cost":0,"tokens":{"input":0,"output":0,"reasoning":0,"cache":{"read":0,"write":0}},"time":{"created":1,"updated":1}},{"id":"ses_25","projectID":"project","title":"ses_25","location":{"directory":"/other/25"},"cost":0,"tokens":{"input":0,"output":0,"reasoning":0,"cache":{"read":0,"write":0}},"time":{"created":1,"updated":1}},{"id":"ses_26","projectID":"project","title":"ses_26","location":{"directory":"/other/26"},"cost":0,"tokens":{"input":0,"output":0,"reasoning":0,"cache":{"read":0,"write":0}},"time":{"created":1,"updated":1}},{"id":"ses_27","projectID":"project","title":"ses_27","location":{"directory":"/other/27"},"cost":0,"tokens":{"input":0,"output":0,"reasoning":0,"cache":{"read":0,"write":0}},"time":{"created":1,"updated":1}},{"id":"ses_28","projectID":"project","title":"ses_28","location":{"directory":"/other/28"},"cost":0,"tokens":{"input":0,"output":0,"reasoning":0,"cache":{"read":0,"write":0}},"time":{"created":1,"updated":1}},{"id":"ses_29","projectID":"project","title":"ses_29","location":{"directory":"/other/29"},"cost":0,"tokens":{"input":0,"output":0,"reasoning":0,"cache":{"read":0,"write":0}},"time":{"created":1,"updated":1}},{"id":"ses_30","projectID":"project","title":"ses_30","location":{"directory":"/other/30"},"cost":0,"tokens":{"input":0,"output":0,"reasoning":0,"cache":{"read":0,"write":0}},"time":{"created":1,"updated":1}},{"id":"ses_31","projectID":"project","title":"ses_31","location":{"directory":"/other/31"},"cost":0,"tokens":{"input":0,"output":0,"reasoning":0,"cache":{"read":0,"write":0}},"time":{"created":1,"updated":1}},{"id":"ses_32","projectID":"project","title":"ses_32","location":{"directory":"/other/32"},"cost":0,"tokens":{"input":0,"output":0,"reasoning":0,"cache":{"read":0,"write":0}},"time":{"created":1,"updated":1}},{"id":"ses_33","projectID":"project","title":"ses_33","location":{"directory":"/other/33"},"cost":0,"tokens":{"input":0,"output":0,"reasoning":0,"cache":{"read":0,"write":0}},"time":{"created":1,"updated":1}},{"id":"ses_34","projectID":"project","title":"ses_34","location":{"directory":"/other/34"},"cost":0,"tokens":{"input":0,"output":0,"reasoning":0,"cache":{"read":0,"write":0}},"time":{"created":1,"updated":1}},{"id":"ses_35","projectID":"project","title":"ses_35","location":{"directory":"/other/35"},"cost":0,"tokens":{"input":0,"output":0,"reasoning":0,"cache":{"read":0,"write":0}},"time":{"created":1,"updated":1}},{"id":"ses_36","projectID":"project","title":"ses_36","location":{"directory":"/other/36"},"cost":0,"tokens":{"input":0,"output":0,"reasoning":0,"cache":{"read":0,"write":0}},"time":{"created":1,"updated":1}},{"id":"ses_37","projectID":"project","title":"ses_37","location":{"directory":"/other/37"},"cost":0,"tokens":{"input":0,"output":0,"reasoning":0,"cache":{"read":0,"write":0}},"time":{"created":1,"updated":1}},{"id":"ses_38","projectID":"project","title":"ses_38","location":{"directory":"/other/38"},"cost":0,"tokens":{"input":0,"output":0,"reasoning":0,"cache":{"read":0,"write":0}},"time":{"created":1,"updated":1}},{"id":"ses_39","projectID":"project","title":"ses_39","location":{"directory":"/other/39"},"cost":0,"tokens":{"input":0,"output":0,"reasoning":0,"cache":{"read":0,"write":0}},"time":{"created":1,"updated":1}},{"id":"ses_40","projectID":"project","title":"ses_40","location":{"directory":"/other/40"},"cost":0,"tokens":{"input":0,"output":0,"reasoning":0,"cache":{"read":0,"write":0}},"time":{"created":1,"updated":1}},{"id":"ses_41","projectID":"project","title":"ses_41","location":{"directory":"/other/41"},"cost":0,"tokens":{"input":0,"output":0,"reasoning":0,"cache":{"read":0,"write":0}},"time":{"created":1,"updated":1}},{"id":"ses_42","projectID":"project","title":"ses_42","location":{"directory":"/other/42"},"cost":0,"tokens":{"input":0,"output":0,"reasoning":0,"cache":{"read":0,"write":0}},"time":{"created":1,"updated":1}},{"id":"ses_43","projectID":"project","title":"ses_43","location":{"directory":"/other/43"},"cost":0,"tokens":{"input":0,"output":0,"reasoning":0,"cache":{"read":0,"write":0}},"time":{"created":1,"updated":1}},{"id":"ses_44","projectID":"project","title":"ses_44","location":{"directory":"/other/44"},"cost":0,"tokens":{"input":0,"output":0,"reasoning":0,"cache":{"read":0,"write":0}},"time":{"created":1,"updated":1}},{"id":"ses_45","projectID":"project","title":"ses_45","location":{"directory":"/other/45"},"cost":0,"tokens":{"input":0,"output":0,"reasoning":0,"cache":{"read":0,"write":0}},"time":{"created":1,"updated":1}},{"id":"ses_46","projectID":"project","title":"ses_46","location":{"directory":"/other/46"},"cost":0,"tokens":{"input":0,"output":0,"reasoning":0,"cache":{"read":0,"write":0}},"time":{"created":1,"updated":1}},{"id":"ses_47","projectID":"project","title":"ses_47","location":{"directory":"/other/47"},"cost":0,"tokens":{"input":0,"output":0,"reasoning":0,"cache":{"read":0,"write":0}},"time":{"created":1,"updated":1}},{"id":"ses_48","projectID":"project","title":"ses_48","location":{"directory":"/other/48"},"cost":0,"tokens":{"input":0,"output":0,"reasoning":0,"cache":{"read":0,"write":0}},"time":{"created":1,"updated":1}},{"id":"ses_49","projectID":"project","title":"ses_49","location":{"directory":"/other/49"},"cost":0,"tokens":{"input":0,"output":0,"reasoning":0,"cache":{"read":0,"write":0}},"time":{"created":1,"updated":1}}],"cursor":{"next":"page_2"}}},{"status":200,"body":{"data":[{"id":"ses_implicit","projectID":"project","title":"ses_implicit","location":{"directory":"/project"},"cost":0,"tokens":{"input":0,"output":0,"reasoning":0,"cache":{"read":0,"write":0}},"time":{"created":1,"updated":1}}],"cursor":{}}}]} + ], + "expected": {"requests":[{"method":"GET","path":"/api/location","query":[["location[directory]","/project"]],"body":null},{"method":"GET","path":"/api/session","query":[["archived","false"],["directory","/project"],["limit","50"],["order","desc"],["parentID","null"]],"body":null},{"method":"GET","path":"/api/session","query":[["archived","false"],["cursor","page_2"],["directory","/project"],["limit","50"],["order","desc"],["parentID","null"]],"body":null},{"method":"GET","path":"/api/location","query":[["location[directory]","/project"]],"body":null}],"prepared":{"location":"/project","session":"ses_implicit","model":null,"agent":null},"outcome":{"ok":{"session":"ses_implicit","location":"/project","model":null,"agent":null,"resume":true}}} + }, + { + "name": "continues and forks the latest Session", + "input": {"directory":"/project","continue":true,"fork":true}, + "routes": [ + {"method":"GET","path":"/api/location","replies":[{"status":200,"body":{"directory":"/project","project":{"id":"project","directory":"/project","canonical":"/project"}}}]}, + {"method":"GET","path":"/api/session","replies":[{"status":200,"body":{"data":[{"id":"ses_latest","projectID":"project","title":"ses_latest","location":{"directory":"/project"},"cost":0,"tokens":{"input":0,"output":0,"reasoning":0,"cache":{"read":0,"write":0}},"time":{"created":1,"updated":1}}],"cursor":{}}}]}, + {"method":"POST","path":"/api/session/ses_latest/fork","replies":[{"status":200,"body":{"data":{"id":"ses_fork","projectID":"project","title":"ses_fork","location":{"directory":"/project"},"cost":0,"tokens":{"input":0,"output":0,"reasoning":0,"cache":{"read":0,"write":0}},"time":{"created":1,"updated":1}}}}]}, + {"method":"GET","path":"/api/location","query":{"location[directory]":"/project"},"replies":[{"status":200,"body":{"directory":"/project","project":{"id":"project","directory":"/project","canonical":"/project"}}}]} + ], + "expected": {"requests":[{"method":"GET","path":"/api/location","query":[["location[directory]","/project"]],"body":null},{"method":"GET","path":"/api/session","query":[["archived","false"],["directory","/project"],["limit","50"],["order","desc"],["parentID","null"]],"body":null},{"method":"POST","path":"/api/session/ses_latest/fork","query":[],"body":{}},{"method":"GET","path":"/api/location","query":[["location[directory]","/project"]],"body":null}],"prepared":{"location":"/project","session":"ses_fork","model":null,"agent":null},"outcome":{"ok":{"session":"ses_fork","location":"/project","model":null,"agent":null,"resume":true}}} + }, + { + "name": "creates a Session when there is none to continue", + "input": {"directory":"/empty","continue":true,"model":{"providerID":"openai","id":"gpt-5","variant":"high"}}, + "routes": [ + {"method":"GET","path":"/api/location","replies":[{"status":200,"body":{"directory":"/empty","project":{"id":"project","directory":"/empty","canonical":"/empty"}}}]}, + {"method":"GET","path":"/api/session","replies":[{"status":200,"body":{"data":[],"cursor":{"next":"more"}}}]}, + {"method":"POST","path":"/api/session","replies":[{"status":200,"body":{"data":{"id":"ses_new","projectID":"project","title":"ses_new","location":{"directory":"/empty"},"cost":0,"tokens":{"input":0,"output":0,"reasoning":0,"cache":{"read":0,"write":0}},"time":{"created":1,"updated":1}}}}]} + ], + "expected": {"requests":[{"method":"GET","path":"/api/location","query":[["location[directory]","/empty"]],"body":null},{"method":"GET","path":"/api/session","query":[["archived","false"],["directory","/empty"],["limit","50"],["order","desc"],["parentID","null"]],"body":null},{"method":"POST","path":"/api/session","query":[],"body":{"model":{"providerID":"openai","id":"gpt-5","variant":"high"},"location":{"directory":"/empty"}}}],"prepared":{"location":"/empty","session":null,"model":{"providerID":"openai","id":"gpt-5","variant":"high"},"agent":null},"outcome":{"ok":{"session":"ses_new","location":"/empty","model":{"providerID":"openai","id":"gpt-5","variant":"high"},"agent":null,"resume":false}}} + }, + { + "name": "attaches the terminal environment to the resolved local Session", + "input": {"session":"ses_resume","environment":{"PATH":"/terminal/bin"}}, + "routes": [ + {"method":"GET","path":"/api/session/ses_resume","replies":[{"status":200,"body":{"data":{"id":"ses_resume","projectID":"project","title":"ses_resume","location":{"directory":"/session"},"cost":0,"tokens":{"input":0,"output":0,"reasoning":0,"cache":{"read":0,"write":0}},"time":{"created":1,"updated":1}}}}]}, + {"method":"GET","path":"/api/location","replies":[{"status":200,"body":{"directory":"/session","project":{"id":"project","directory":"/session","canonical":"/session"}}}]}, + {"method":"PUT","path":"/api/session/ses_resume/environment","replies":[{"status":204}]} + ], + "expected": {"requests":[{"method":"GET","path":"/api/session/ses_resume","query":[],"body":null},{"method":"GET","path":"/api/location","query":[["location[directory]","/session"]],"body":null},{"method":"PUT","path":"/api/session/ses_resume/environment","query":[],"body":{"variables":{"PATH":"/terminal/bin"}}}],"prepared":{"location":"/session","session":"ses_resume","model":null,"agent":null},"outcome":{"ok":{"session":"ses_resume","location":"/session","model":null,"agent":null,"resume":true}}} + }, + { + "name": "prepares a fresh Session at the server Location before creation", + "input": {"agent":"requested"}, + "prepare": {"agent":"prepared"}, + "routes": [ + {"method":"GET","path":"/api/location","replies":[{"status":200,"body":{"directory":"/server","project":{"id":"project","directory":"/server","canonical":"/server"}}}]}, + {"method":"POST","path":"/api/session","replies":[{"status":200,"body":{"data":{"id":"ses_fresh","projectID":"project","title":"ses_fresh","location":{"directory":"/server"},"cost":0,"tokens":{"input":0,"output":0,"reasoning":0,"cache":{"read":0,"write":0}},"time":{"created":1,"updated":1}}}}]} + ], + "expected": {"requests":[{"method":"GET","path":"/api/location","query":[],"body":null},{"method":"POST","path":"/api/session","query":[],"body":{"agent":"prepared","location":{"directory":"/server"}}}],"prepared":{"location":"/server","session":null,"model":null,"agent":"requested"},"outcome":{"ok":{"session":"ses_fresh","location":"/server","model":null,"agent":"prepared","resume":false}}} + }, + { + "name": "uses the agent resolved by the server for a fresh Session", + "input": {}, + "routes": [ + {"method":"GET","path":"/api/location","replies":[{"status":200,"body":{"directory":"/project","project":{"id":"project","directory":"/project","canonical":"/project"}}}]}, + {"method":"POST","path":"/api/session","replies":[{"status":200,"body":{"data":{"id":"ses_fresh","projectID":"project","title":"ses_fresh","location":{"directory":"/project"},"cost":0,"tokens":{"input":0,"output":0,"reasoning":0,"cache":{"read":0,"write":0}},"time":{"created":1,"updated":1},"agent":"review"}}}]} + ], + "expected": {"requests":[{"method":"GET","path":"/api/location","query":[],"body":null},{"method":"POST","path":"/api/session","query":[],"body":{"location":{"directory":"/project"}}}],"prepared":{"location":"/project","session":null,"model":null,"agent":null},"outcome":{"ok":{"session":"ses_fresh","location":"/project","model":null,"agent":"review","resume":false}}} + }, + { + "name": "does not retry an ambiguous Session creation", + "input": {}, + "routes": [ + {"method":"GET","path":"/api/location","replies":[{"status":200,"body":{"directory":"/project","project":{"id":"project","directory":"/project","canonical":"/project"}}}]}, + {"method":"POST","path":"/api/session","replies":[{"status":502,"body":"connection closed after create"}]} + ], + "expected": {"requests":[{"method":"GET","path":"/api/location","query":[],"body":null},{"method":"POST","path":"/api/session","query":[],"body":{"location":{"directory":"/project"}}}],"prepared":{"location":"/project","session":null,"model":null,"agent":null},"outcome":{"error":{"kind":"mutation"}}} + }, + { + "name": "reports a failed environment upload as a mutation", + "input": {"environment":{"TERM":"xterm"}}, + "routes": [ + {"method":"GET","path":"/api/location","replies":[{"status":200,"body":{"directory":"/project","project":{"id":"project","directory":"/project","canonical":"/project"}}}]}, + {"method":"POST","path":"/api/session","replies":[{"status":200,"body":{"data":{"id":"ses_fresh","projectID":"project","title":"ses_fresh","location":{"directory":"/project"},"cost":0,"tokens":{"input":0,"output":0,"reasoning":0,"cache":{"read":0,"write":0}},"time":{"created":1,"updated":1}}}}]}, + {"method":"PUT","path":"/api/session/ses_fresh/environment","replies":[{"status":502,"body":"down"}]} + ], + "expected": {"requests":[{"method":"GET","path":"/api/location","query":[],"body":null},{"method":"POST","path":"/api/session","query":[],"body":{"location":{"directory":"/project"}}},{"method":"PUT","path":"/api/session/ses_fresh/environment","query":[],"body":{"variables":{"TERM":"xterm"}}}],"prepared":{"location":"/project","session":null,"model":null,"agent":null},"outcome":{"error":{"kind":"mutation"}}} + }, + { + "name": "reports a failed Session read", + "input": {"session":"ses_broken"}, + "routes": [ + {"method":"GET","path":"/api/session/ses_broken","replies":[{"status":502,"body":"down"}]} + ], + "expected": {"requests":[{"method":"GET","path":"/api/session/ses_broken","query":[],"body":null}],"prepared":null,"outcome":{"error":{"kind":"request"}}} + } + ], + "worktrees": [ + {"name":"creates a worktree from the caller's checkout","input":{"directory":"/project","name":"pr-12"},"routes":[{"method":"GET","path":"/api/location","replies":[{"status":200,"body":{"directory":"/project","project":{"id":"project","directory":"/project","canonical":"/project"}}}]},{"method":"POST","path":"/api/worktree","replies":[{"status":200,"body":{"directory":"/worktrees/pr-12"}}]}],"expected":{"requests":[{"method":"GET","path":"/api/location","query":[["location[directory]","/project"]],"body":null},{"method":"POST","path":"/api/worktree","query":[],"body":{"projectID":"project","from":"/project","name":"pr-12"}}],"outcome":{"ok":{"root":"/worktrees/pr-12","directory":"/worktrees/pr-12"}}}}, + {"name":"keeps the caller's subfolder in the new worktree","input":{"directory":"/project/packages/cli"},"routes":[{"method":"GET","path":"/api/location","query":{"location[directory]":"/project/packages/cli"},"replies":[{"status":200,"body":{"directory":"/project/packages/cli","project":{"id":"project","directory":"/project","canonical":"/project"}}}]},{"method":"GET","path":"/api/location","query":{"location[directory]":"/worktrees/pr-12/packages/cli"},"replies":[{"status":200,"body":{"directory":"/worktrees/pr-12/packages/cli","project":{"id":"project","directory":"/worktrees/pr-12","canonical":"/worktrees/pr-12"}}}]},{"method":"POST","path":"/api/worktree","replies":[{"status":200,"body":{"directory":"/worktrees/pr-12"}}]}],"expected":{"requests":[{"method":"GET","path":"/api/location","query":[["location[directory]","/project/packages/cli"]],"body":null},{"method":"POST","path":"/api/worktree","query":[],"body":{"projectID":"project","from":"/project"}},{"method":"GET","path":"/api/location","query":[["location[directory]","/worktrees/pr-12/packages/cli"]],"body":null}],"outcome":{"ok":{"root":"/worktrees/pr-12","directory":"/worktrees/pr-12/packages/cli"}}}}, + {"name":"uses the worktree root when the subfolder is not in the worktree","input":{"directory":"/project/scratch"},"routes":[{"method":"GET","path":"/api/location","query":{"location[directory]":"/project/scratch"},"replies":[{"status":200,"body":{"directory":"/project/scratch","project":{"id":"project","directory":"/project","canonical":"/project"}}}]},{"method":"GET","path":"/api/location","query":{"location[directory]":"/worktrees/pr-12/scratch"},"replies":[{"status":502,"body":"Location folder is missing"}]},{"method":"POST","path":"/api/worktree","replies":[{"status":200,"body":{"directory":"/worktrees/pr-12"}}]}],"expected":{"requests":[{"method":"GET","path":"/api/location","query":[["location[directory]","/project/scratch"]],"body":null},{"method":"POST","path":"/api/worktree","query":[],"body":{"projectID":"project","from":"/project"}},{"method":"GET","path":"/api/location","query":[["location[directory]","/worktrees/pr-12/scratch"]],"body":null}],"outcome":{"ok":{"root":"/worktrees/pr-12","directory":"/worktrees/pr-12"}}}}, + {"name":"reports a failed worktree creation as a mutation","input":{},"routes":[{"method":"GET","path":"/api/location","replies":[{"status":200,"body":{"directory":"/project","project":{"id":"project","directory":"/project","canonical":"/project"}}}]},{"method":"POST","path":"/api/worktree","replies":[{"status":502,"body":"x"}]}],"expected":{"requests":[{"method":"GET","path":"/api/location","query":[],"body":null},{"method":"POST","path":"/api/worktree","query":[],"body":{"projectID":"project","from":"/project"}}],"outcome":{"error":{"kind":"mutation"}}}} + ], + "models": [ + {"value":"openai/gpt-5","ok":{"providerID":"openai","id":"gpt-5"}}, + {"value":"openai/gpt-5#high","ok":{"providerID":"openai","id":"gpt-5","variant":"high"}}, + {"value":"","ok":null}, + {"value":"gpt-5","error":"Invalid model reference: gpt-5"}, + {"value":"/gpt-5","error":"Invalid model reference: /gpt-5"}, + {"value":"openai/","error":"Invalid model reference: openai/"}, + {"value":"openai/gpt-5#","error":"Invalid model reference: openai/gpt-5#"}, + {"value":"a#b/c","error":"Invalid model reference: a#b/c"}, + {"value":"a/b#c#d","error":"Invalid model reference: a/b#c#d"}, + {"value":"a/b/c","ok":{"providerID":"a","id":"b/c"}} + ] +} diff --git a/packages/cli-rs/parity/fixtures/H.1/alert.json b/packages/cli-rs/parity/fixtures/H.1/alert.json new file mode 100644 index 000000000000..eba46aae805b --- /dev/null +++ b/packages/cli-rs/parity/fixtures/H.1/alert.json @@ -0,0 +1,14 @@ +{"width":60,"height":12,"styles":["#ffffffff #030303ff 0","#ffffffff #141414ff 0","#808080ff #141414ff 0","#ffffffff #202020ff 0","#808080ff #202020ff 0"],"lines":[ +[" ",[[0,60]]], +[" ",[[0,60]]], +[" ",[[0,60]]], +[" ",[[0,1],[1,58],[0,1]]], +[" Heads up esc ",[[0,1],[1,52],[2,3],[1,3],[0,1]]], +[" ",[[0,1],[1,58],[0,1]]], +[" The session was compacted. ",[[0,1],[1,3],[2,26],[1,29],[0,1]]], +[" ",[[0,1],[1,58],[0,1]]], +[" ",[[0,1],[3,58],[0,1]]], +[" ok enter ",[[0,1],[3,49],[4,6],[3,3],[0,1]]], +[" ",[[0,1],[3,58],[0,1]]], +[" ",[[0,60]]] +]} diff --git a/packages/cli-rs/parity/fixtures/H.1/box.json b/packages/cli-rs/parity/fixtures/H.1/box.json new file mode 100644 index 000000000000..a79a5ed9de2a --- /dev/null +++ b/packages/cli-rs/parity/fixtures/H.1/box.json @@ -0,0 +1,7 @@ +{"width":24,"height":5,"styles":["#5c9cf5ff #1e1e2eff 0","#ffffffff #00000000 0","#ffffffff #1e1e2eff 0","#eeeeeeff #1e1e2eff 1","#eeeeeeff #1e1e2eff 0"],"lines":[ +["╭─ Hi ─────────────╮ ",[[0,20],[1,4]]], +[["│"," ","H","e","l","l","o"," ","界",""," "," "," "," "," "," "," "," "," ","│"," "," "," "," "],[[0,1],[2,1],[3,5],[4,3],[2,9],[0,1],[1,4]]], +["│ │ ",[[0,1],[2,18],[0,1],[1,4]]], +["╰──────────────────╯ ",[[0,20],[1,4]]], +[" ",[[1,24]]] +]} diff --git a/packages/cli-rs/parity/fixtures/H.2/home-sessions.app.json b/packages/cli-rs/parity/fixtures/H.2/home-sessions.app.json new file mode 100644 index 000000000000..47da77f00883 --- /dev/null +++ b/packages/cli-rs/parity/fixtures/H.2/home-sessions.app.json @@ -0,0 +1,60 @@ +{ + "scenario": "H.2/home-sessions", + "width": 100, + "height": 30, + "directory": "/tmp/opencode/packages/tui", + "config": { + "animations": false, + "experimental": {"new-designs":true}, + "theme": {"name":"opencode"} + }, + "args": {}, + "routes": [ + {"path":"/api/session","json":{"data":[{"id":"ses_b","title":"Fix the parser","projectID":"proj_test","cost":0,"tokens":{"input":0,"output":0,"reasoning":0,"cache":{"read":0,"write":0}},"time":{"created":2,"updated":2},"location":{"directory":"/tmp/opencode/packages/tui"}},{"id":"ses_a","title":"Write docs","projectID":"proj_test","cost":0,"tokens":{"input":0,"output":0,"reasoning":0,"cache":{"read":0,"write":0}},"time":{"created":1,"updated":1},"location":{"directory":"/tmp/opencode/packages/tui"}}],"cursor":{}}}, + {"path":"/api/session/ses_b","json":{"data":{"id":"ses_b","title":"Fix the parser","projectID":"proj_test","cost":0,"tokens":{"input":0,"output":0,"reasoning":0,"cache":{"read":0,"write":0}},"time":{"created":2,"updated":2},"location":{"directory":"/tmp/opencode/packages/tui"}}}}, + {"path":"/api/session/ses_b/message","json":{"data":[{"id":"msg_2","type":"assistant","agent":"build","model":{"providerID":"provider","id":"model"},"content":[{"type":"text","text":"The parser drops the last token."}],"finish":"stop","time":{"created":2,"completed":3}},{"id":"msg_1","type":"user","text":"Why does the parser fail?","time":{"created":1}}],"cursor":{}}}, + {"path":"/api/session/ses_b/inbox","json":{"data":[]}} + ], + "steps": [ + {"checkpoint":"home","until":"Ask anything","masks":[{"x":16,"y":16,"width":84,"height":1,"reason":"the placeholder example: random in TS and Rust"}],"fixture":"H.2/home-sessions/home"}, + {"keys":["ctrl+x","l"]}, + {"checkpoint":"list","until":"Write docs","fixture":"H.2/home-sessions/list"}, + {"keys":["enter"]}, + {"checkpoint":"session","until":"The parser drops the last token.","fixture":"H.2/home-sessions/session"} + ], + "requests": { + "writes": [], + "reads": [ + {"method":"GET","path":"/api/agent","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":[]}}, + {"method":"GET","path":"/api/command","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":[]}}, + {"method":"GET","path":"/api/config","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":[]}, + {"method":"GET","path":"/api/experimental/job","query":{"descendants":["true"],"sessionID":["ses_b"],"status":["running"]},"status":200,"json":{"data":[]}}, + {"method":"GET","path":"/api/experimental/migration/v1","query":{},"status":200,"json":{"status":"completed"}}, + {"method":"GET","path":"/api/experimental/session/ses_b/terminal","query":{},"status":200,"json":{"data":[]}}, + {"method":"GET","path":"/api/form","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode"}},"data":[]}}, + {"method":"GET","path":"/api/fs/list","query":{"location[directory]":["<cwd>"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":[]}}, + {"method":"GET","path":"/api/info","query":{},"status":200,"json":{"version":"test","pid":0,"urls":[],"paths":{"tmp":"/tmp"},"capabilities":{"persistentPty":true}}}, + {"method":"GET","path":"/api/integration","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":[]}}, + {"method":"GET","path":"/api/location","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}}}, + {"method":"GET","path":"/api/mcp","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":[]}}, + {"method":"GET","path":"/api/mcp/resource","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":{"resources":[],"templates":[]}}}, + {"method":"GET","path":"/api/model","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":[]}}, + {"method":"GET","path":"/api/plugin","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":[]}}, + {"method":"GET","path":"/api/project","query":{},"status":200,"json":[]}, + {"method":"GET","path":"/api/provider","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":[]}}, + {"method":"GET","path":"/api/reference","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode/packages/tui","canonical":"/tmp/opencode/packages/tui"}},"data":[]}}, + {"method":"GET","path":"/api/session","query":{"archived":["false"],"limit":["50"],"order":["desc"],"parentID":["null"],"project":["proj_test"],"subpath":["packages/tui"]},"status":200,"json":{"data":[{"id":"ses_b","title":"Fix the parser","projectID":"proj_test","cost":0,"tokens":{"input":0,"output":0,"reasoning":0,"cache":{"read":0,"write":0}},"time":{"created":2,"updated":2},"location":{"directory":"/tmp/opencode/packages/tui"}},{"id":"ses_a","title":"Write docs","projectID":"proj_test","cost":0,"tokens":{"input":0,"output":0,"reasoning":0,"cache":{"read":0,"write":0}},"time":{"created":1,"updated":1},"location":{"directory":"/tmp/opencode/packages/tui"}}],"cursor":{}}}, + {"method":"GET","path":"/api/session","query":{"limit":["200"],"order":["desc"],"parentID":["ses_b"]},"status":200,"json":{"data":[{"id":"ses_b","title":"Fix the parser","projectID":"proj_test","cost":0,"tokens":{"input":0,"output":0,"reasoning":0,"cache":{"read":0,"write":0}},"time":{"created":2,"updated":2},"location":{"directory":"/tmp/opencode/packages/tui"}},{"id":"ses_a","title":"Write docs","projectID":"proj_test","cost":0,"tokens":{"input":0,"output":0,"reasoning":0,"cache":{"read":0,"write":0}},"time":{"created":1,"updated":1},"location":{"directory":"/tmp/opencode/packages/tui"}}],"cursor":{}}}, + {"method":"GET","path":"/api/session/active","query":{},"status":200,"json":{"data":{}}}, + {"method":"GET","path":"/api/session/ses_b","query":{},"status":200,"json":{"data":{"id":"ses_b","title":"Fix the parser","projectID":"proj_test","cost":0,"tokens":{"input":0,"output":0,"reasoning":0,"cache":{"read":0,"write":0}},"time":{"created":2,"updated":2},"location":{"directory":"/tmp/opencode/packages/tui"}}}}, + {"method":"GET","path":"/api/session/ses_b/form","query":{},"status":200,"json":{"data":[]}}, + {"method":"GET","path":"/api/session/ses_b/inbox","query":{},"status":200,"json":{"data":[]}}, + {"method":"GET","path":"/api/session/ses_b/message","query":{"limit":["20"],"order":["desc"]},"status":200,"json":{"data":[{"id":"msg_2","type":"assistant","agent":"build","model":{"providerID":"provider","id":"model"},"content":[{"type":"text","text":"The parser drops the last token."}],"finish":"stop","time":{"created":2,"completed":3}},{"id":"msg_1","type":"user","text":"Why does the parser fail?","time":{"created":1}}],"cursor":{}}}, + {"method":"GET","path":"/api/session/ses_b/permission","query":{},"status":200,"json":{"data":[]}}, + {"method":"GET","path":"/api/shell","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":[]}}, + {"method":"GET","path":"/api/skill","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":[]}}, + {"method":"GET","path":"/api/vcs","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":{"branch":{"current":"main","default":"main"}}}}, + {"method":"POST","path":"/api/rpc/opencode.goal/get","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"body":{"input":{"sessionID":"ses_b"}},"status":200,"json":{"output":null}} + ] + } +} diff --git a/packages/cli-rs/parity/fixtures/H.2/home-sessions/home.json b/packages/cli-rs/parity/fixtures/H.2/home-sessions/home.json new file mode 100644 index 000000000000..fde2210b2f02 --- /dev/null +++ b/packages/cli-rs/parity/fixtures/H.2/home-sessions/home.json @@ -0,0 +1,32 @@ +{"width":100,"height":30,"styles":["#ffffffff #080808ff 0","#808080ff #080808ff 0","#ffffffff #080808ff 1","#808080ff #262626ff 0","#ffffffff #464646ff 1","#262626ff #080808ff 0","#484848ff #080808ff 0","#ffffffff #202020ff 0","#00000000 #00000000 0","#202020ff #080808ff 0"],"lines":[ +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ▄ ",[[0,31],[1,19],[0,1],[2,19],[0,30]]], +[" █▀▀█ █▀▀█ █▀▀█ █▀▀▄ █▀▀▀ █▀▀█ █▀▀█ █▀▀█ ",[[0,31],[1,19],[0,1],[2,19],[0,30]]], +[" █ █ █ █ █▀▀▀ █ █ █ █ █ █ █ █▀▀▀ ",[[0,31],[1,1],[3,2],[1,3],[3,2],[1,3],[3,3],[1,2],[3,2],[1,1],[0,1],[2,1],[4,3],[2,2],[4,2],[2,3],[4,2],[2,3],[4,3],[0,30]]], +[" ▀▀▀▀ █▀▀▀ ▀▀▀▀ ▀▀▀▀ ▀▀▀▀ ▀▀▀▀ ▀▀▀▀ ▀▀▀▀ ",[[0,31],[1,16],[5,2],[1,1],[0,1],[2,19],[0,30]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ┃ ",[[0,13],[6,1],[7,74],[0,12]]], +[" ┃ ",[[0,13],[6,1],[7,2],[8,84]]], +[" ┃ ",[[0,13],[6,1],[7,74],[0,12]]], +[" ┃ ",[[0,13],[6,1],[7,74],[0,12]]], +[" ╹▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀ ",[[0,13],[6,1],[9,74],[0,12]]], +[" /tmp/opencode/packages/tui:main shift+tab agents ctrl+p commands ",[[0,13],[1,31],[0,21],[1,6],[0,9],[1,8],[0,12]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" test ",[[0,94],[1,4],[0,2]]], +[" ",[[0,100]]] +]} diff --git a/packages/cli-rs/parity/fixtures/H.2/home-sessions/list.json b/packages/cli-rs/parity/fixtures/H.2/home-sessions/list.json new file mode 100644 index 000000000000..2f7cadd7b56b --- /dev/null +++ b/packages/cli-rs/parity/fixtures/H.2/home-sessions/list.json @@ -0,0 +1,32 @@ +{"width":100,"height":30,"styles":["#ffffffff #030303ff 0","#ffffffff #141414ff 0","#808080ff #141414ff 0","#808080ff #141414ff 1","#7699feff #141414ff 0","#ffffffff #23344bff 0","#ffffffff #202020ff 0","#808080ff #202020ff 0","#1e1e1eff #030303ff 0","#ffffffff #0d0d0dff 0","#0d0d0dff #030303ff 0","#353535ff #030303ff 0","#696969ff #030303ff 0"],"lines":[ +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,6],[1,88],[0,6]]], +[" Search sessions esc ",[[0,6],[1,4],[2,15],[1,62],[2,3],[1,4],[0,6]]], +[" ",[[0,6],[1,88],[0,6]]], +[" Thu Jan 01 1970 ",[[0,6],[1,4],[3,15],[1,69],[0,6]]], +[" ┃ Fix the parser ",[[0,6],[4,1],[5,87],[0,6]]], +[" Write docs ",[[0,6],[4,1],[1,87],[0,6]]], +[" ",[[0,6],[1,88],[0,6]]], +[" ",[[0,6],[6,88],[0,6]]], +[" all projects ctrl+a delete ctrl+d rename ctrl+r ",[[0,6],[6,16],[7,7],[6,38],[7,7],[6,9],[7,7],[6,4],[0,6]]], +[" ",[[0,6],[6,88],[0,6]]], +[" ┃ ",[[0,13],[8,1],[9,74],[0,12]]], +[" ╹▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀ ",[[0,13],[8,1],[10,74],[0,12]]], +[" /tmp/opencode/packages/tui:main shift+tab agents ctrl+p commands ",[[0,13],[11,31],[0,11],[12,9],[0,1],[11,6],[0,2],[12,6],[0,1],[11,8],[0,12]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" test ",[[0,94],[11,4],[0,2]]], +[" ",[[0,100]]] +]} diff --git a/packages/cli-rs/parity/fixtures/H.2/home-sessions/session.json b/packages/cli-rs/parity/fixtures/H.2/home-sessions/session.json new file mode 100644 index 000000000000..7d97e35ad0c4 --- /dev/null +++ b/packages/cli-rs/parity/fixtures/H.2/home-sessions/session.json @@ -0,0 +1,32 @@ +{"width":100,"height":30,"styles":["#ffffffff #202020ff 0","#ffffffff #202020ff 1","#808080ff #080808ff 0","#ffffffff #080808ff 0","#7699feff #141414ff 0","#ffffffff #141414ff 0","#eeeeeeff #080808ff 0","#7699feff #080808ff 0","#484848ff #080808ff 0","#202020ff #080808ff 0"],"lines":[ +[" Fix the parser + ",[[0,3],[1,14],[0,15],[2,3],[3,65]]], +[" ",[[3,100]]], +[" ┃ ",[[3,2],[4,1],[5,95],[3,2]]], +[" ┃ Why does the parser fail? ",[[3,2],[4,1],[5,95],[3,2]]], +[" ┃ ",[[3,2],[4,1],[5,95],[3,2]]], +[" ",[[3,100]]], +[" The parser drops the last token. ",[[3,5],[6,32],[3,63]]], +[" ",[[3,100]]], +[" Build · provider/model · 2ms ",[[3,5],[7,5],[2,23],[3,67]]], +[" ",[[3,100]]], +[" ",[[3,100]]], +[" ",[[3,100]]], +[" ",[[3,100]]], +[" ",[[3,100]]], +[" ",[[3,100]]], +[" ",[[3,100]]], +[" ",[[3,100]]], +[" ",[[3,100]]], +[" ",[[3,100]]], +[" ",[[3,100]]], +[" ",[[3,100]]], +[" ",[[3,100]]], +[" ",[[3,100]]], +[" ┃ ",[[3,2],[8,1],[0,95],[3,2]]], +[" ┃ ",[[3,2],[8,1],[0,95],[3,2]]], +[" ┃ ",[[3,2],[8,1],[0,95],[3,2]]], +[" ┃ ",[[3,2],[8,1],[0,95],[3,2]]], +[" ╹▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀ ",[[3,2],[8,1],[9,95],[3,2]]], +[" /tmp/opencode/packages/tui:main shift+tab agents ctrl+p commands ",[[3,2],[2,31],[3,42],[2,6],[3,9],[2,8],[3,2]]], +[" ",[[3,100]]] +]} diff --git a/packages/cli-rs/parity/fixtures/H.2/session-open.app.json b/packages/cli-rs/parity/fixtures/H.2/session-open.app.json new file mode 100644 index 000000000000..77b9670c2f8e --- /dev/null +++ b/packages/cli-rs/parity/fixtures/H.2/session-open.app.json @@ -0,0 +1,58 @@ +{ + "scenario": "H.2/session-open", + "width": 100, + "height": 30, + "directory": "/tmp/opencode/packages/tui", + "config": { + "animations": false, + "experimental": {"new-designs":true}, + "theme": {"name":"opencode"} + }, + "args": { + "sessionID": "ses_b" + }, + "routes": [ + {"path":"/api/session/ses_b","json":{"data":{"id":"ses_b","title":"Fix the parser","projectID":"proj_test","cost":0,"tokens":{"input":0,"output":0,"reasoning":0,"cache":{"read":0,"write":0}},"time":{"created":2,"updated":2},"location":{"directory":"/tmp/opencode/packages/tui"}}}}, + {"path":"/api/session/ses_b/message","json":{"data":[{"id":"msg_2","type":"assistant","agent":"build","model":{"providerID":"provider","id":"model"},"content":[{"type":"text","text":"The parser drops the last token."}],"finish":"stop","time":{"created":2,"completed":3}},{"id":"msg_1","type":"user","text":"Why does the parser fail?","time":{"created":1}}],"cursor":{}}}, + {"path":"/api/session/ses_b/inbox","json":{"data":[]}} + ], + "steps": [ + {"checkpoint":"open","until":"The parser drops the last token.","fixture":"H.2/session-open/open"}, + {"event":{"id":"evt_1","created":3,"type":"session.text.delta","durable":{"aggregateID":"ses_b","seq":1,"version":1},"data":{"sessionID":"ses_b","assistantMessageID":"msg_2","ordinal":0,"delta":" Fixed."}}}, + {"checkpoint":"streamed","until":"Fixed.","fixture":"H.2/session-open/streamed"} + ], + "requests": { + "writes": [], + "reads": [ + {"method":"GET","path":"/api/agent","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":[]}}, + {"method":"GET","path":"/api/command","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":[]}}, + {"method":"GET","path":"/api/config","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":[]}, + {"method":"GET","path":"/api/experimental/job","query":{"descendants":["true"],"sessionID":["ses_b"],"status":["running"]},"status":200,"json":{"data":[]}}, + {"method":"GET","path":"/api/experimental/migration/v1","query":{},"status":200,"json":{"status":"completed"}}, + {"method":"GET","path":"/api/experimental/session/ses_b/terminal","query":{},"status":200,"json":{"data":[]}}, + {"method":"GET","path":"/api/form","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode"}},"data":[]}}, + {"method":"GET","path":"/api/fs/list","query":{"location[directory]":["<cwd>"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":[]}}, + {"method":"GET","path":"/api/info","query":{},"status":200,"json":{"version":"test","pid":0,"urls":[],"paths":{"tmp":"/tmp"},"capabilities":{"persistentPty":true}}}, + {"method":"GET","path":"/api/integration","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":[]}}, + {"method":"GET","path":"/api/location","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}}}, + {"method":"GET","path":"/api/mcp","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":[]}}, + {"method":"GET","path":"/api/mcp/resource","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":{"resources":[],"templates":[]}}}, + {"method":"GET","path":"/api/model","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":[]}}, + {"method":"GET","path":"/api/plugin","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":[]}}, + {"method":"GET","path":"/api/project","query":{},"status":200,"json":[]}, + {"method":"GET","path":"/api/provider","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":[]}}, + {"method":"GET","path":"/api/reference","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode/packages/tui","canonical":"/tmp/opencode/packages/tui"}},"data":[]}}, + {"method":"GET","path":"/api/session","query":{"limit":["200"],"order":["desc"],"parentID":["ses_b"]},"status":200,"json":{"data":[],"cursor":{}}}, + {"method":"GET","path":"/api/session/active","query":{},"status":200,"json":{"data":{}}}, + {"method":"GET","path":"/api/session/ses_b","query":{},"status":200,"json":{"data":{"id":"ses_b","title":"Fix the parser","projectID":"proj_test","cost":0,"tokens":{"input":0,"output":0,"reasoning":0,"cache":{"read":0,"write":0}},"time":{"created":2,"updated":2},"location":{"directory":"/tmp/opencode/packages/tui"}}}}, + {"method":"GET","path":"/api/session/ses_b/form","query":{},"status":200,"json":{"data":[]}}, + {"method":"GET","path":"/api/session/ses_b/inbox","query":{},"status":200,"json":{"data":[]}}, + {"method":"GET","path":"/api/session/ses_b/message","query":{"limit":["20"],"order":["desc"]},"status":200,"json":{"data":[{"id":"msg_2","type":"assistant","agent":"build","model":{"providerID":"provider","id":"model"},"content":[{"type":"text","text":"The parser drops the last token."}],"finish":"stop","time":{"created":2,"completed":3}},{"id":"msg_1","type":"user","text":"Why does the parser fail?","time":{"created":1}}],"cursor":{}}}, + {"method":"GET","path":"/api/session/ses_b/permission","query":{},"status":200,"json":{"data":[]}}, + {"method":"GET","path":"/api/shell","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":[]}}, + {"method":"GET","path":"/api/skill","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":[]}}, + {"method":"GET","path":"/api/vcs","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":{"branch":{"current":"main","default":"main"}}}}, + {"method":"POST","path":"/api/rpc/opencode.goal/get","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"body":{"input":{"sessionID":"ses_b"}},"status":200,"json":{"output":null}} + ] + } +} diff --git a/packages/cli-rs/parity/fixtures/H.2/session-open/open.json b/packages/cli-rs/parity/fixtures/H.2/session-open/open.json new file mode 100644 index 000000000000..7d97e35ad0c4 --- /dev/null +++ b/packages/cli-rs/parity/fixtures/H.2/session-open/open.json @@ -0,0 +1,32 @@ +{"width":100,"height":30,"styles":["#ffffffff #202020ff 0","#ffffffff #202020ff 1","#808080ff #080808ff 0","#ffffffff #080808ff 0","#7699feff #141414ff 0","#ffffffff #141414ff 0","#eeeeeeff #080808ff 0","#7699feff #080808ff 0","#484848ff #080808ff 0","#202020ff #080808ff 0"],"lines":[ +[" Fix the parser + ",[[0,3],[1,14],[0,15],[2,3],[3,65]]], +[" ",[[3,100]]], +[" ┃ ",[[3,2],[4,1],[5,95],[3,2]]], +[" ┃ Why does the parser fail? ",[[3,2],[4,1],[5,95],[3,2]]], +[" ┃ ",[[3,2],[4,1],[5,95],[3,2]]], +[" ",[[3,100]]], +[" The parser drops the last token. ",[[3,5],[6,32],[3,63]]], +[" ",[[3,100]]], +[" Build · provider/model · 2ms ",[[3,5],[7,5],[2,23],[3,67]]], +[" ",[[3,100]]], +[" ",[[3,100]]], +[" ",[[3,100]]], +[" ",[[3,100]]], +[" ",[[3,100]]], +[" ",[[3,100]]], +[" ",[[3,100]]], +[" ",[[3,100]]], +[" ",[[3,100]]], +[" ",[[3,100]]], +[" ",[[3,100]]], +[" ",[[3,100]]], +[" ",[[3,100]]], +[" ",[[3,100]]], +[" ┃ ",[[3,2],[8,1],[0,95],[3,2]]], +[" ┃ ",[[3,2],[8,1],[0,95],[3,2]]], +[" ┃ ",[[3,2],[8,1],[0,95],[3,2]]], +[" ┃ ",[[3,2],[8,1],[0,95],[3,2]]], +[" ╹▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀ ",[[3,2],[8,1],[9,95],[3,2]]], +[" /tmp/opencode/packages/tui:main shift+tab agents ctrl+p commands ",[[3,2],[2,31],[3,42],[2,6],[3,9],[2,8],[3,2]]], +[" ",[[3,100]]] +]} diff --git a/packages/cli-rs/parity/fixtures/H.2/session-open/streamed.json b/packages/cli-rs/parity/fixtures/H.2/session-open/streamed.json new file mode 100644 index 000000000000..05482001d188 --- /dev/null +++ b/packages/cli-rs/parity/fixtures/H.2/session-open/streamed.json @@ -0,0 +1,32 @@ +{"width":100,"height":30,"styles":["#ffffffff #202020ff 0","#ffffffff #202020ff 1","#808080ff #080808ff 0","#ffffffff #080808ff 0","#7699feff #141414ff 0","#ffffffff #141414ff 0","#eeeeeeff #080808ff 0","#7699feff #080808ff 0","#484848ff #080808ff 0","#202020ff #080808ff 0"],"lines":[ +[" Fix the parser + ",[[0,3],[1,14],[0,15],[2,3],[3,65]]], +[" ",[[3,100]]], +[" ┃ ",[[3,2],[4,1],[5,95],[3,2]]], +[" ┃ Why does the parser fail? ",[[3,2],[4,1],[5,95],[3,2]]], +[" ┃ ",[[3,2],[4,1],[5,95],[3,2]]], +[" ",[[3,100]]], +[" The parser drops the last token. Fixed. ",[[3,5],[6,39],[3,56]]], +[" ",[[3,100]]], +[" Build · provider/model · 2ms ",[[3,5],[7,5],[2,23],[3,67]]], +[" ",[[3,100]]], +[" ",[[3,100]]], +[" ",[[3,100]]], +[" ",[[3,100]]], +[" ",[[3,100]]], +[" ",[[3,100]]], +[" ",[[3,100]]], +[" ",[[3,100]]], +[" ",[[3,100]]], +[" ",[[3,100]]], +[" ",[[3,100]]], +[" ",[[3,100]]], +[" ",[[3,100]]], +[" ",[[3,100]]], +[" ┃ ",[[3,2],[8,1],[0,95],[3,2]]], +[" ┃ ",[[3,2],[8,1],[0,95],[3,2]]], +[" ┃ ",[[3,2],[8,1],[0,95],[3,2]]], +[" ┃ ",[[3,2],[8,1],[0,95],[3,2]]], +[" ╹▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀ ",[[3,2],[8,1],[9,95],[3,2]]], +[" /tmp/opencode/packages/tui:main shift+tab agents ctrl+p commands ",[[3,2],[2,31],[3,42],[2,6],[3,9],[2,8],[3,2]]], +[" ",[[3,100]]] +]} diff --git a/packages/cli-rs/parity/fixtures/P.0b/reads.app.json b/packages/cli-rs/parity/fixtures/P.0b/reads.app.json new file mode 100644 index 000000000000..8dd7049cf254 --- /dev/null +++ b/packages/cli-rs/parity/fixtures/P.0b/reads.app.json @@ -0,0 +1,45 @@ +{ + "scenario": "P.0b/reads", + "width": 100, + "height": 30, + "directory": "/tmp/opencode/packages/tui", + "config": { + "plugins": ["./plugins/p0b"], + "animations": false, + "experimental": {"new-designs":true}, + "theme": {"name":"opencode"} + }, + "args": {}, + "env": { + "OPENCODE_PARITY_PLUGIN": "p0b" + }, + "routes": [], + "steps": [ + {"checkpoint":"home","until":"pending 0","masks":[{"x":16,"y":16,"width":84,"height":1,"reason":"the placeholder example: random in TS and Rust"}],"fixture":"P.0b/reads/home"} + ], + "requests": { + "writes": [], + "reads": [ + {"method":"GET","path":"/api/agent","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":[]}}, + {"method":"GET","path":"/api/command","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":[]}}, + {"method":"GET","path":"/api/config","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":[]}, + {"method":"GET","path":"/api/experimental/migration/v1","query":{},"status":200,"json":{"status":"completed"}}, + {"method":"GET","path":"/api/form","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode"}},"data":[]}}, + {"method":"GET","path":"/api/fs/list","query":{"location[directory]":["<cwd>"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":[]}}, + {"method":"GET","path":"/api/info","query":{},"status":200,"json":{"version":"test","pid":0,"urls":[],"paths":{"tmp":"/tmp"},"capabilities":{"persistentPty":true}}}, + {"method":"GET","path":"/api/integration","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":[]}}, + {"method":"GET","path":"/api/location","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}}}, + {"method":"GET","path":"/api/mcp","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":[]}}, + {"method":"GET","path":"/api/mcp/resource","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":{"resources":[],"templates":[]}}}, + {"method":"GET","path":"/api/model","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":[]}}, + {"method":"GET","path":"/api/plugin","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":[]}}, + {"method":"GET","path":"/api/project","query":{},"status":200,"json":[]}, + {"method":"GET","path":"/api/provider","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":[]}}, + {"method":"GET","path":"/api/reference","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode/packages/tui","canonical":"/tmp/opencode/packages/tui"}},"data":[]}}, + {"method":"GET","path":"/api/session/active","query":{},"status":200,"json":{"data":{}}}, + {"method":"GET","path":"/api/shell","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":[]}}, + {"method":"GET","path":"/api/skill","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":[]}}, + {"method":"GET","path":"/api/vcs","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":{"branch":{"current":"main","default":"main"}}}} + ] + } +} diff --git a/packages/cli-rs/parity/fixtures/P.0b/reads/home.json b/packages/cli-rs/parity/fixtures/P.0b/reads/home.json new file mode 100644 index 000000000000..4e020325559c --- /dev/null +++ b/packages/cli-rs/parity/fixtures/P.0b/reads/home.json @@ -0,0 +1,32 @@ +{"width":100,"height":30,"styles":["#ffffffff #080808ff 0","#808080ff #080808ff 0","#ffffffff #080808ff 1","#808080ff #262626ff 0","#ffffffff #464646ff 1","#262626ff #080808ff 0","#484848ff #080808ff 0","#ffffffff #202020ff 0","#00000000 #00000000 0","#202020ff #080808ff 0"],"lines":[ +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ▄ ",[[0,31],[1,19],[0,1],[2,19],[0,30]]], +[" █▀▀█ █▀▀█ █▀▀█ █▀▀▄ █▀▀▀ █▀▀█ █▀▀█ █▀▀█ ",[[0,31],[1,19],[0,1],[2,19],[0,30]]], +[" █ █ █ █ █▀▀▀ █ █ █ █ █ █ █ █▀▀▀ ",[[0,31],[1,1],[3,2],[1,3],[3,2],[1,3],[3,3],[1,2],[3,2],[1,1],[0,1],[2,1],[4,3],[2,2],[4,2],[2,3],[4,2],[2,3],[4,3],[0,30]]], +[" ▀▀▀▀ █▀▀▀ ▀▀▀▀ ▀▀▀▀ ▀▀▀▀ ▀▀▀▀ ▀▀▀▀ ▀▀▀▀ ",[[0,31],[1,16],[5,2],[1,1],[0,1],[2,19],[0,30]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ┃ ",[[0,13],[6,1],[7,74],[0,12]]], +[" ┃ ",[[0,13],[6,1],[7,2],[8,84]]], +[" ┃ ",[[0,13],[6,1],[7,74],[0,12]]], +[" ┃ ",[[0,13],[6,1],[7,74],[0,12]]], +[" ╹▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀ ",[[0,13],[6,1],[9,74],[0,12]]], +[" /tmp/opencode/packages/tui:main shift+tab agents ctrl+p commands ",[[0,13],[1,31],[0,21],[1,6],[0,9],[1,8],[0,12]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" test ",[[0,94],[1,4],[0,2]]], +[" ",[[0,100]]], +[" p0b: w100 tabs true 0 keys ctrl+p variants 0 pending 0 ",[[0,2],[1,54],[0,44]]] +]} diff --git a/packages/cli-rs/parity/fixtures/P.1/app-home.app.json b/packages/cli-rs/parity/fixtures/P.1/app-home.app.json new file mode 100644 index 000000000000..067ac2cd9fab --- /dev/null +++ b/packages/cli-rs/parity/fixtures/P.1/app-home.app.json @@ -0,0 +1,45 @@ +{ + "scenario": "P.1/app-home", + "width": 100, + "height": 30, + "directory": "/tmp/opencode/packages/tui", + "config": { + "plugins": ["./plugins/app"], + "animations": false, + "experimental": {"new-designs":true}, + "theme": {"name":"opencode"} + }, + "args": {}, + "env": { + "OPENCODE_PARITY_PLUGIN": "app" + }, + "routes": [], + "steps": [ + {"checkpoint":"home","until":"app plugin: app","masks":[{"x":16,"y":16,"width":84,"height":1,"reason":"the placeholder example: random in TS and Rust"}],"fixture":"P.1/app-home/home"} + ], + "requests": { + "writes": [], + "reads": [ + {"method":"GET","path":"/api/agent","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":[]}}, + {"method":"GET","path":"/api/command","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":[]}}, + {"method":"GET","path":"/api/config","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":[]}, + {"method":"GET","path":"/api/experimental/migration/v1","query":{},"status":200,"json":{"status":"completed"}}, + {"method":"GET","path":"/api/form","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode"}},"data":[]}}, + {"method":"GET","path":"/api/fs/list","query":{"location[directory]":["<cwd>"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":[]}}, + {"method":"GET","path":"/api/info","query":{},"status":200,"json":{"version":"test","pid":0,"urls":[],"paths":{"tmp":"/tmp"},"capabilities":{"persistentPty":true}}}, + {"method":"GET","path":"/api/integration","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":[]}}, + {"method":"GET","path":"/api/location","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}}}, + {"method":"GET","path":"/api/mcp","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":[]}}, + {"method":"GET","path":"/api/mcp/resource","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":{"resources":[],"templates":[]}}}, + {"method":"GET","path":"/api/model","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":[]}}, + {"method":"GET","path":"/api/plugin","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":[]}}, + {"method":"GET","path":"/api/project","query":{},"status":200,"json":[]}, + {"method":"GET","path":"/api/provider","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":[]}}, + {"method":"GET","path":"/api/reference","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode/packages/tui","canonical":"/tmp/opencode/packages/tui"}},"data":[]}}, + {"method":"GET","path":"/api/session/active","query":{},"status":200,"json":{"data":{}}}, + {"method":"GET","path":"/api/shell","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":[]}}, + {"method":"GET","path":"/api/skill","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":[]}}, + {"method":"GET","path":"/api/vcs","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":{"branch":{"current":"main","default":"main"}}}} + ] + } +} diff --git a/packages/cli-rs/parity/fixtures/P.1/app-home/home.json b/packages/cli-rs/parity/fixtures/P.1/app-home/home.json new file mode 100644 index 000000000000..5d210c882cc8 --- /dev/null +++ b/packages/cli-rs/parity/fixtures/P.1/app-home/home.json @@ -0,0 +1,32 @@ +{"width":100,"height":30,"styles":["#ffffffff #080808ff 0","#808080ff #080808ff 0","#ffffffff #080808ff 1","#808080ff #262626ff 0","#ffffffff #464646ff 1","#262626ff #080808ff 0","#484848ff #080808ff 0","#ffffffff #202020ff 0","#00000000 #00000000 0","#202020ff #080808ff 0"],"lines":[ +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ▄ ",[[0,31],[1,19],[0,1],[2,19],[0,30]]], +[" █▀▀█ █▀▀█ █▀▀█ █▀▀▄ █▀▀▀ █▀▀█ █▀▀█ █▀▀█ ",[[0,31],[1,19],[0,1],[2,19],[0,30]]], +[" █ █ █ █ █▀▀▀ █ █ █ █ █ █ █ █▀▀▀ ",[[0,31],[1,1],[3,2],[1,3],[3,2],[1,3],[3,3],[1,2],[3,2],[1,1],[0,1],[2,1],[4,3],[2,2],[4,2],[2,3],[4,2],[2,3],[4,3],[0,30]]], +[" ▀▀▀▀ █▀▀▀ ▀▀▀▀ ▀▀▀▀ ▀▀▀▀ ▀▀▀▀ ▀▀▀▀ ▀▀▀▀ ",[[0,31],[1,16],[5,2],[1,1],[0,1],[2,19],[0,30]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ┃ ",[[0,13],[6,1],[7,74],[0,12]]], +[" ┃ ",[[0,13],[6,1],[7,2],[8,84]]], +[" ┃ ",[[0,13],[6,1],[7,74],[0,12]]], +[" ┃ ",[[0,13],[6,1],[7,74],[0,12]]], +[" ╹▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀ ",[[0,13],[6,1],[9,74],[0,12]]], +[" /tmp/opencode/packages/tui:main shift+tab agents ctrl+p commands ",[[0,13],[1,31],[0,21],[1,6],[0,9],[1,8],[0,12]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" test ",[[0,94],[1,4],[0,2]]], +[" ",[[0,100]]], +[" app plugin: app ",[[0,2],[1,15],[0,83]]] +]} diff --git a/packages/cli-rs/parity/fixtures/P.1/app-session.app.json b/packages/cli-rs/parity/fixtures/P.1/app-session.app.json new file mode 100644 index 000000000000..99c0814552a7 --- /dev/null +++ b/packages/cli-rs/parity/fixtures/P.1/app-session.app.json @@ -0,0 +1,61 @@ +{ + "scenario": "P.1/app-session", + "width": 100, + "height": 30, + "directory": "/tmp/opencode/packages/tui", + "config": { + "plugins": ["./plugins/app"], + "animations": false, + "experimental": {"new-designs":true}, + "theme": {"name":"opencode"} + }, + "args": { + "sessionID": "ses_a" + }, + "env": { + "OPENCODE_PARITY_PLUGIN": "app" + }, + "routes": [ + {"path":"/api/session/ses_a","json":{"data":{"id":"ses_a","title":"Plan the release","projectID":"proj_test","cost":0,"tokens":{"input":0,"output":0,"reasoning":0,"cache":{"read":0,"write":0}},"time":{"created":2,"updated":2},"location":{"directory":"/tmp/opencode/packages/tui"}}}}, + {"path":"/api/session","json":{"data":[{"id":"ses_a","title":"Plan the release","projectID":"proj_test","cost":0,"tokens":{"input":0,"output":0,"reasoning":0,"cache":{"read":0,"write":0}},"time":{"created":2,"updated":2},"location":{"directory":"/tmp/opencode/packages/tui"}}],"cursor":{}}}, + {"path":"/api/session/ses_a/message","json":{"data":[{"id":"msg_2","type":"assistant","agent":"build","model":{"providerID":"provider","id":"model"},"content":[{"type":"text","text":"Done."}],"finish":"stop","time":{"created":2000,"completed":2001}},{"id":"msg_1","type":"user","text":"Ship it","time":{"created":1000}}],"cursor":{}}}, + {"path":"/api/session/ses_a/inbox","json":{"data":[]}} + ], + "steps": [ + {"checkpoint":"session","until":"Done.","fixture":"P.1/app-session/session"} + ], + "requests": { + "writes": [], + "reads": [ + {"method":"GET","path":"/api/agent","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":[]}}, + {"method":"GET","path":"/api/command","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":[]}}, + {"method":"GET","path":"/api/config","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":[]}, + {"method":"GET","path":"/api/experimental/job","query":{"descendants":["true"],"sessionID":["ses_a"],"status":["running"]},"status":200,"json":{"data":[]}}, + {"method":"GET","path":"/api/experimental/migration/v1","query":{},"status":200,"json":{"status":"completed"}}, + {"method":"GET","path":"/api/experimental/session/ses_a/terminal","query":{},"status":200,"json":{"data":[]}}, + {"method":"GET","path":"/api/form","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode"}},"data":[]}}, + {"method":"GET","path":"/api/fs/list","query":{"location[directory]":["<cwd>"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":[]}}, + {"method":"GET","path":"/api/info","query":{},"status":200,"json":{"version":"test","pid":0,"urls":[],"paths":{"tmp":"/tmp"},"capabilities":{"persistentPty":true}}}, + {"method":"GET","path":"/api/integration","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":[]}}, + {"method":"GET","path":"/api/location","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}}}, + {"method":"GET","path":"/api/mcp","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":[]}}, + {"method":"GET","path":"/api/mcp/resource","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":{"resources":[],"templates":[]}}}, + {"method":"GET","path":"/api/model","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":[]}}, + {"method":"GET","path":"/api/plugin","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":[]}}, + {"method":"GET","path":"/api/project","query":{},"status":200,"json":[]}, + {"method":"GET","path":"/api/provider","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":[]}}, + {"method":"GET","path":"/api/reference","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode/packages/tui","canonical":"/tmp/opencode/packages/tui"}},"data":[]}}, + {"method":"GET","path":"/api/session","query":{"limit":["200"],"order":["desc"],"parentID":["ses_a"]},"status":200,"json":{"data":[{"id":"ses_a","title":"Plan the release","projectID":"proj_test","cost":0,"tokens":{"input":0,"output":0,"reasoning":0,"cache":{"read":0,"write":0}},"time":{"created":2,"updated":2},"location":{"directory":"/tmp/opencode/packages/tui"}}],"cursor":{}}}, + {"method":"GET","path":"/api/session/active","query":{},"status":200,"json":{"data":{}}}, + {"method":"GET","path":"/api/session/ses_a","query":{},"status":200,"json":{"data":{"id":"ses_a","title":"Plan the release","projectID":"proj_test","cost":0,"tokens":{"input":0,"output":0,"reasoning":0,"cache":{"read":0,"write":0}},"time":{"created":2,"updated":2},"location":{"directory":"/tmp/opencode/packages/tui"}}}}, + {"method":"GET","path":"/api/session/ses_a/form","query":{},"status":200,"json":{"data":[]}}, + {"method":"GET","path":"/api/session/ses_a/inbox","query":{},"status":200,"json":{"data":[]}}, + {"method":"GET","path":"/api/session/ses_a/message","query":{"limit":["20"],"order":["desc"]},"status":200,"json":{"data":[{"id":"msg_2","type":"assistant","agent":"build","model":{"providerID":"provider","id":"model"},"content":[{"type":"text","text":"Done."}],"finish":"stop","time":{"created":2000,"completed":2001}},{"id":"msg_1","type":"user","text":"Ship it","time":{"created":1000}}],"cursor":{}}}, + {"method":"GET","path":"/api/session/ses_a/permission","query":{},"status":200,"json":{"data":[]}}, + {"method":"GET","path":"/api/shell","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":[]}}, + {"method":"GET","path":"/api/skill","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":[]}}, + {"method":"GET","path":"/api/vcs","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":{"branch":{"current":"main","default":"main"}}}}, + {"method":"POST","path":"/api/rpc/opencode.goal/get","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"body":{"input":{"sessionID":"ses_a"}},"status":200,"json":{"output":null}} + ] + } +} diff --git a/packages/cli-rs/parity/fixtures/P.1/app-session/session.json b/packages/cli-rs/parity/fixtures/P.1/app-session/session.json new file mode 100644 index 000000000000..82b604f67a97 --- /dev/null +++ b/packages/cli-rs/parity/fixtures/P.1/app-session/session.json @@ -0,0 +1,32 @@ +{"width":100,"height":30,"styles":["#ffffffff #202020ff 0","#ffffffff #202020ff 1","#808080ff #080808ff 0","#ffffffff #080808ff 0","#7699feff #141414ff 0","#ffffffff #141414ff 0","#eeeeeeff #080808ff 0","#7699feff #080808ff 0","#484848ff #080808ff 0","#202020ff #080808ff 0"],"lines":[ +[" Plan the release + ",[[0,3],[1,16],[0,13],[2,3],[3,65]]], +[" ",[[3,100]]], +[" ┃ ",[[3,2],[4,1],[5,95],[3,2]]], +[" ┃ Ship it ",[[3,2],[4,1],[5,95],[3,2]]], +[" ┃ ",[[3,2],[4,1],[5,95],[3,2]]], +[" ",[[3,100]]], +[" Done. ",[[3,5],[6,5],[3,90]]], +[" ",[[3,100]]], +[" Build · provider/model · 1.0s ",[[3,5],[7,5],[2,24],[3,66]]], +[" ",[[3,100]]], +[" ",[[3,100]]], +[" ",[[3,100]]], +[" ",[[3,100]]], +[" ",[[3,100]]], +[" ",[[3,100]]], +[" ",[[3,100]]], +[" ",[[3,100]]], +[" ",[[3,100]]], +[" ",[[3,100]]], +[" ",[[3,100]]], +[" ",[[3,100]]], +[" ",[[3,100]]], +[" ┃ ",[[3,2],[8,1],[0,95],[3,2]]], +[" ┃ ",[[3,2],[8,1],[0,95],[3,2]]], +[" ┃ ",[[3,2],[8,1],[0,95],[3,2]]], +[" ┃ ",[[3,2],[8,1],[0,95],[3,2]]], +[" ╹▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀ ",[[3,2],[8,1],[9,95],[3,2]]], +[" /tmp/opencode/packages/tui:main shift+tab agents ctrl+p commands ",[[3,2],[2,31],[3,42],[2,6],[3,9],[2,8],[3,2]]], +[" ",[[3,100]]], +[" app plugin: app ",[[3,2],[2,15],[3,83]]] +]} diff --git a/packages/cli-rs/parity/fixtures/P.1/composer-top.app.json b/packages/cli-rs/parity/fixtures/P.1/composer-top.app.json new file mode 100644 index 000000000000..7ca2d6e2286b --- /dev/null +++ b/packages/cli-rs/parity/fixtures/P.1/composer-top.app.json @@ -0,0 +1,63 @@ +{ + "scenario": "P.1/composer-top", + "width": 100, + "height": 30, + "directory": "/tmp/opencode/packages/tui", + "config": { + "experimental": {"new-designs":true}, + "plugins": ["./plugins/slot"], + "animations": false, + "theme": {"name":"opencode"} + }, + "args": { + "sessionID": "ses_s" + }, + "env": { + "OPENCODE_PARITY_PLUGIN": "slot" + }, + "routes": [ + {"path":"/api/session/ses_s","json":{"data":{"id":"ses_s","title":"Plan the release","projectID":"proj_test","cost":0,"tokens":{"input":0,"output":0,"reasoning":0,"cache":{"read":0,"write":0}},"time":{"created":2,"updated":2},"location":{"directory":"/tmp/opencode/packages/tui"}}}}, + {"path":"/api/session","json":{"data":[{"id":"ses_s","title":"Plan the release","projectID":"proj_test","cost":0,"tokens":{"input":0,"output":0,"reasoning":0,"cache":{"read":0,"write":0}},"time":{"created":2,"updated":2},"location":{"directory":"/tmp/opencode/packages/tui"}}],"cursor":{}}}, + {"path":"/api/session/ses_s/message","json":{"data":[{"id":"msg_2","type":"assistant","agent":"build","model":{"providerID":"provider","id":"model"},"content":[{"type":"text","text":"Done."}],"finish":"stop","time":{"created":2000,"completed":2001}},{"id":"msg_1","type":"user","text":"Ship it","time":{"created":1000}}],"cursor":{}}}, + {"path":"/api/session/ses_s/inbox","json":{"data":[{"id":"msg_5","sessionID":"ses_s","type":"user","payload":{"text":"Then tag it"},"delivery":"queue","time":{"created":3000}}]}} + ], + "steps": [ + {"checkpoint":"session","until":"Done.","masks":[{"x":39,"y":28,"width":22,"height":1,"reason":"TS plugin loading notice (F16)"}],"fixture":"P.1/composer-top/session"}, + {"keys":["down"]}, + {"checkpoint":"composer","until":"Subagents","masks":[{"x":39,"y":28,"width":22,"height":1,"reason":"TS plugin loading notice (F16)"}],"fixture":"P.1/composer-top/composer"} + ], + "requests": { + "writes": [], + "reads": [ + {"method":"GET","path":"/api/agent","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":[]}}, + {"method":"GET","path":"/api/command","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":[]}}, + {"method":"GET","path":"/api/config","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":[]}, + {"method":"GET","path":"/api/experimental/job","query":{"descendants":["true"],"sessionID":["ses_s"],"status":["running"]},"status":200,"json":{"data":[]}}, + {"method":"GET","path":"/api/experimental/migration/v1","query":{},"status":200,"json":{"status":"completed"}}, + {"method":"GET","path":"/api/experimental/session/ses_s/terminal","query":{},"status":200,"json":{"data":[]}}, + {"method":"GET","path":"/api/form","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode"}},"data":[]}}, + {"method":"GET","path":"/api/fs/list","query":{"location[directory]":["<cwd>"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":[]}}, + {"method":"GET","path":"/api/info","query":{},"status":200,"json":{"version":"test","pid":0,"urls":[],"paths":{"tmp":"/tmp"},"capabilities":{"persistentPty":true}}}, + {"method":"GET","path":"/api/integration","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":[]}}, + {"method":"GET","path":"/api/location","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}}}, + {"method":"GET","path":"/api/mcp","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":[]}}, + {"method":"GET","path":"/api/mcp/resource","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":{"resources":[],"templates":[]}}}, + {"method":"GET","path":"/api/model","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":[]}}, + {"method":"GET","path":"/api/plugin","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":[]}}, + {"method":"GET","path":"/api/project","query":{},"status":200,"json":[]}, + {"method":"GET","path":"/api/provider","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":[]}}, + {"method":"GET","path":"/api/reference","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode/packages/tui","canonical":"/tmp/opencode/packages/tui"}},"data":[]}}, + {"method":"GET","path":"/api/session","query":{"limit":["200"],"order":["desc"],"parentID":["ses_s"]},"status":200,"json":{"data":[{"id":"ses_s","title":"Plan the release","projectID":"proj_test","cost":0,"tokens":{"input":0,"output":0,"reasoning":0,"cache":{"read":0,"write":0}},"time":{"created":2,"updated":2},"location":{"directory":"/tmp/opencode/packages/tui"}}],"cursor":{}}}, + {"method":"GET","path":"/api/session/active","query":{},"status":200,"json":{"data":{}}}, + {"method":"GET","path":"/api/session/ses_s","query":{},"status":200,"json":{"data":{"id":"ses_s","title":"Plan the release","projectID":"proj_test","cost":0,"tokens":{"input":0,"output":0,"reasoning":0,"cache":{"read":0,"write":0}},"time":{"created":2,"updated":2},"location":{"directory":"/tmp/opencode/packages/tui"}}}}, + {"method":"GET","path":"/api/session/ses_s/form","query":{},"status":200,"json":{"data":[]}}, + {"method":"GET","path":"/api/session/ses_s/inbox","query":{},"status":200,"json":{"data":[{"id":"msg_5","sessionID":"ses_s","type":"user","payload":{"text":"Then tag it"},"delivery":"queue","time":{"created":3000}}]}}, + {"method":"GET","path":"/api/session/ses_s/message","query":{"limit":["20"],"order":["desc"]},"status":200,"json":{"data":[{"id":"msg_2","type":"assistant","agent":"build","model":{"providerID":"provider","id":"model"},"content":[{"type":"text","text":"Done."}],"finish":"stop","time":{"created":2000,"completed":2001}},{"id":"msg_1","type":"user","text":"Ship it","time":{"created":1000}}],"cursor":{}}}, + {"method":"GET","path":"/api/session/ses_s/permission","query":{},"status":200,"json":{"data":[]}}, + {"method":"GET","path":"/api/shell","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":[]}}, + {"method":"GET","path":"/api/skill","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":[]}}, + {"method":"GET","path":"/api/vcs","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":{"branch":{"current":"main","default":"main"}}}}, + {"method":"POST","path":"/api/rpc/opencode.goal/get","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"body":{"input":{"sessionID":"ses_s"}},"status":200,"json":{"output":null}} + ] + } +} diff --git a/packages/cli-rs/parity/fixtures/P.1/composer-top/composer.json b/packages/cli-rs/parity/fixtures/P.1/composer-top/composer.json new file mode 100644 index 000000000000..e3483a7ae094 --- /dev/null +++ b/packages/cli-rs/parity/fixtures/P.1/composer-top/composer.json @@ -0,0 +1,32 @@ +{"width":100,"height":30,"styles":["#ffffffff #202020ff 0","#93a2b7ff #202020ff 1","#ffffffff #202020ff 1","#808080ff #080808ff 0","#ffffffff #080808ff 0","#7699feff #141414ff 0","#ffffffff #141414ff 0","#eeeeeeff #080808ff 0","#7699feff #080808ff 0","#484848ff #141414ff 0","#ffffffff #141414ff 1","#808080ff #141414ff 0","#00000000 #00000000 0"],"lines":[ +[" ⠋ Plan the release + ",[[0,1],[1,1],[0,1],[2,16],[0,13],[3,3],[4,65]]], +[" ",[[4,100]]], +[" ┃ ",[[4,2],[5,1],[6,95],[4,2]]], +[" ┃ Ship it ",[[4,2],[5,1],[6,95],[4,2]]], +[" ┃ ",[[4,2],[5,1],[6,95],[4,2]]], +[" ",[[4,100]]], +[" Done. ",[[4,5],[7,5],[4,90]]], +[" ",[[4,100]]], +[" Build · provider/model · 1.0s ",[[4,5],[8,5],[3,24],[4,66]]], +[" ",[[4,100]]], +[" ",[[4,100]]], +[" ",[[4,100]]], +[" ",[[4,100]]], +[" ",[[4,100]]], +[" ",[[4,100]]], +[" ",[[4,100]]], +[" ",[[4,100]]], +[" slot plugin: session.composer.top ",[[4,4],[3,33],[4,63]]], +[" ┃ ",[[4,2],[9,1],[6,95],[4,2]]], +[" ┃ Subagents Shell Terminals esc ",[[4,2],[9,1],[6,2],[10,9],[6,2],[11,5],[6,2],[11,9],[6,61],[11,3],[6,2],[4,2]]], +[" ┃ ",[[4,2],[9,1],[6,95],[4,2]]], +[" ┃ No active subagents ",[[4,2],[9,1],[6,1],[11,20],[6,74],[4,2]]], +[" ┃ ",[[4,2],[9,1],[6,95],[4,2]]], +[" ┃ ",[[4,2],[9,1],[6,95],[4,2]]], +[" ┃ ",[[4,2],[9,1],[6,95],[4,2]]], +[" ┃ ",[[4,2],[9,1],[6,95],[4,2]]], +[" ┃ ",[[4,2],[9,1],[6,95],[4,2]]], +[" ┃ show inactive ctrl+a tabs ←/→ ",[[4,2],[9,1],[6,2],[10,13],[6,1],[11,6],[6,2],[10,4],[6,1],[11,3],[6,63],[4,2]]], +[" ┃ ",[[4,2],[9,1],[6,36],[12,22],[6,37],[4,2]]], +[" ",[[4,100]]] +]} diff --git a/packages/cli-rs/parity/fixtures/P.1/composer-top/session.json b/packages/cli-rs/parity/fixtures/P.1/composer-top/session.json new file mode 100644 index 000000000000..53ed84050f84 --- /dev/null +++ b/packages/cli-rs/parity/fixtures/P.1/composer-top/session.json @@ -0,0 +1,32 @@ +{"width":100,"height":30,"styles":["#ffffffff #202020ff 0","#93a2b7ff #202020ff 1","#ffffffff #202020ff 1","#808080ff #080808ff 0","#ffffffff #080808ff 0","#7699feff #141414ff 0","#ffffffff #141414ff 0","#eeeeeeff #080808ff 0","#7699feff #080808ff 0","#484848ff #080808ff 0","#808080ff #141414ff 0","#202020ff #080808ff 0","#00000000 #00000000 0"],"lines":[ +[" ⠋ Plan the release + ",[[0,1],[1,1],[0,1],[2,16],[0,13],[3,3],[4,65]]], +[" ",[[4,100]]], +[" ┃ ",[[4,2],[5,1],[6,95],[4,2]]], +[" ┃ Ship it ",[[4,2],[5,1],[6,95],[4,2]]], +[" ┃ ",[[4,2],[5,1],[6,95],[4,2]]], +[" ",[[4,100]]], +[" Done. ",[[4,5],[7,5],[4,90]]], +[" ",[[4,100]]], +[" Build · provider/model · 1.0s ",[[4,5],[8,5],[3,24],[4,66]]], +[" ",[[4,100]]], +[" ",[[4,100]]], +[" ",[[4,100]]], +[" ",[[4,100]]], +[" ",[[4,100]]], +[" ",[[4,100]]], +[" ",[[4,100]]], +[" ",[[4,100]]], +[" ",[[4,100]]], +[" ┃ ",[[4,2],[9,1],[6,95],[4,2]]], +[" ┃ 1 queued · Then tag it ",[[4,2],[9,1],[6,10],[10,14],[6,71],[4,2]]], +[" ┃ ",[[4,2],[9,1],[6,95],[4,2]]], +[" ",[[4,100]]], +[" slot plugin: session.composer.top ",[[4,4],[3,33],[4,63]]], +[" ┃ ",[[4,2],[9,1],[0,95],[4,2]]], +[" ┃ ",[[4,2],[9,1],[0,95],[4,2]]], +[" ┃ ",[[4,2],[9,1],[0,95],[4,2]]], +[" ┃ ",[[4,2],[9,1],[0,95],[4,2]]], +[" ╹▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀ ",[[4,2],[9,1],[11,95],[4,2]]], +[" /tmp/opencode/packages/tui:main shift+tab agents ctrl+p commands ",[[4,2],[3,31],[4,6],[12,22],[4,14],[3,6],[4,9],[3,8],[4,2]]], +[" ",[[4,100]]] +]} diff --git a/packages/cli-rs/parity/fixtures/P.1/p0a-composer.app.json b/packages/cli-rs/parity/fixtures/P.1/p0a-composer.app.json new file mode 100644 index 000000000000..7624dcb2ae65 --- /dev/null +++ b/packages/cli-rs/parity/fixtures/P.1/p0a-composer.app.json @@ -0,0 +1,52 @@ +{ + "scenario": "P.1/p0a-composer", + "width": 100, + "height": 30, + "directory": "/tmp/opencode/packages/tui", + "config": { + "plugins": ["./plugins/p0a"], + "animations": false, + "experimental": {"new-designs":true}, + "theme": {"name":"opencode"} + }, + "args": {}, + "env": { + "OPENCODE_PARITY_PLUGIN": "p0a" + }, + "routes": [], + "steps": [ + {"type":"hello world"}, + {"keys":["left","left","left","left","left"]}, + {"keys":["f8"]}, + {"type":"!"}, + {"checkpoint":"inserted","until":"hello inserted!world","masks":[{"x":39,"y":28,"width":22,"height":1,"reason":"TS plugin loading notice (F16)"}],"fixture":"P.1/p0a-composer/inserted"}, + {"keys":["f9"]}, + {"type":"?"}, + {"checkpoint":"set","until":"set by the plugin?","masks":[{"x":39,"y":28,"width":22,"height":1,"reason":"TS plugin loading notice (F16)"}],"fixture":"P.1/p0a-composer/set"} + ], + "requests": { + "writes": [], + "reads": [ + {"method":"GET","path":"/api/agent","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":[]}}, + {"method":"GET","path":"/api/command","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":[]}}, + {"method":"GET","path":"/api/config","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":[]}, + {"method":"GET","path":"/api/experimental/migration/v1","query":{},"status":200,"json":{"status":"completed"}}, + {"method":"GET","path":"/api/form","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode"}},"data":[]}}, + {"method":"GET","path":"/api/fs/list","query":{"location[directory]":["<cwd>"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":[]}}, + {"method":"GET","path":"/api/info","query":{},"status":200,"json":{"version":"test","pid":0,"urls":[],"paths":{"tmp":"/tmp"},"capabilities":{"persistentPty":true}}}, + {"method":"GET","path":"/api/integration","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":[]}}, + {"method":"GET","path":"/api/location","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}}}, + {"method":"GET","path":"/api/mcp","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":[]}}, + {"method":"GET","path":"/api/mcp/resource","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":{"resources":[],"templates":[]}}}, + {"method":"GET","path":"/api/model","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":[]}}, + {"method":"GET","path":"/api/plugin","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":[]}}, + {"method":"GET","path":"/api/project","query":{},"status":200,"json":[]}, + {"method":"GET","path":"/api/provider","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":[]}}, + {"method":"GET","path":"/api/reference","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode/packages/tui","canonical":"/tmp/opencode/packages/tui"}},"data":[]}}, + {"method":"GET","path":"/api/session/active","query":{},"status":200,"json":{"data":{}}}, + {"method":"GET","path":"/api/shell","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":[]}}, + {"method":"GET","path":"/api/skill","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":[]}}, + {"method":"GET","path":"/api/vcs","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":{"branch":{"current":"main","default":"main"}}}} + ] + } +} diff --git a/packages/cli-rs/parity/fixtures/P.1/p0a-composer/inserted.json b/packages/cli-rs/parity/fixtures/P.1/p0a-composer/inserted.json new file mode 100644 index 000000000000..fc5f202d5555 --- /dev/null +++ b/packages/cli-rs/parity/fixtures/P.1/p0a-composer/inserted.json @@ -0,0 +1,32 @@ +{"width":100,"height":30,"styles":["#ffffffff #080808ff 0","#808080ff #080808ff 0","#ffffffff #080808ff 1","#808080ff #262626ff 0","#ffffffff #464646ff 1","#262626ff #080808ff 0","#484848ff #080808ff 0","#ffffffff #202020ff 0","#202020ff #080808ff 0","#00000000 #00000000 0"],"lines":[ +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ▄ ",[[0,31],[1,19],[0,1],[2,19],[0,30]]], +[" █▀▀█ █▀▀█ █▀▀█ █▀▀▄ █▀▀▀ █▀▀█ █▀▀█ █▀▀█ ",[[0,31],[1,19],[0,1],[2,19],[0,30]]], +[" █ █ █ █ █▀▀▀ █ █ █ █ █ █ █ █▀▀▀ ",[[0,31],[1,1],[3,2],[1,3],[3,2],[1,3],[3,3],[1,2],[3,2],[1,1],[0,1],[2,1],[4,3],[2,2],[4,2],[2,3],[4,2],[2,3],[4,3],[0,30]]], +[" ▀▀▀▀ █▀▀▀ ▀▀▀▀ ▀▀▀▀ ▀▀▀▀ ▀▀▀▀ ▀▀▀▀ ▀▀▀▀ ",[[0,31],[1,16],[5,2],[1,1],[0,1],[2,19],[0,30]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ┃ ",[[0,13],[6,1],[7,74],[0,12]]], +[" ┃ hello inserted!world ",[[0,13],[6,1],[7,74],[0,12]]], +[" ┃ ",[[0,13],[6,1],[7,74],[0,12]]], +[" ┃ ",[[0,13],[6,1],[7,74],[0,12]]], +[" ╹▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀ ",[[0,13],[6,1],[8,74],[0,12]]], +[" /tmp/opencode/packages/tui:main shift+tab agents ctrl+p commands ",[[0,13],[1,31],[0,21],[1,6],[0,9],[1,8],[0,12]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" test ",[[0,94],[1,4],[0,2]]], +[" ",[[0,100]]], +[" ╭─────────p0a──────────╮ ",[[0,2],[6,24],[0,74]]], +[" │ ┃ ruled │ ",[[0,2],[6,1],[0,2],[1,1],[0,19],[6,1],[0,74]]], +[" │ alpha beta gamma │ ",[[0,2],[6,1],[0,22],[6,1],[0,74]]], +[" │ │ ",[[0,2],[6,1],[0,22],[6,1],[0,13],[9,22],[0,39]]], +[" ╰──────────────────────╯ ",[[0,2],[6,24],[0,74]]] +]} diff --git a/packages/cli-rs/parity/fixtures/P.1/p0a-composer/set.json b/packages/cli-rs/parity/fixtures/P.1/p0a-composer/set.json new file mode 100644 index 000000000000..9d94d039c2b1 --- /dev/null +++ b/packages/cli-rs/parity/fixtures/P.1/p0a-composer/set.json @@ -0,0 +1,32 @@ +{"width":100,"height":30,"styles":["#ffffffff #080808ff 0","#808080ff #080808ff 0","#ffffffff #080808ff 1","#808080ff #262626ff 0","#ffffffff #464646ff 1","#262626ff #080808ff 0","#484848ff #080808ff 0","#ffffffff #202020ff 0","#202020ff #080808ff 0","#00000000 #00000000 0"],"lines":[ +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ▄ ",[[0,31],[1,19],[0,1],[2,19],[0,30]]], +[" █▀▀█ █▀▀█ █▀▀█ █▀▀▄ █▀▀▀ █▀▀█ █▀▀█ █▀▀█ ",[[0,31],[1,19],[0,1],[2,19],[0,30]]], +[" █ █ █ █ █▀▀▀ █ █ █ █ █ █ █ █▀▀▀ ",[[0,31],[1,1],[3,2],[1,3],[3,2],[1,3],[3,3],[1,2],[3,2],[1,1],[0,1],[2,1],[4,3],[2,2],[4,2],[2,3],[4,2],[2,3],[4,3],[0,30]]], +[" ▀▀▀▀ █▀▀▀ ▀▀▀▀ ▀▀▀▀ ▀▀▀▀ ▀▀▀▀ ▀▀▀▀ ▀▀▀▀ ",[[0,31],[1,16],[5,2],[1,1],[0,1],[2,19],[0,30]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ┃ ",[[0,13],[6,1],[7,74],[0,12]]], +[" ┃ set by the plugin? ",[[0,13],[6,1],[7,74],[0,12]]], +[" ┃ ",[[0,13],[6,1],[7,74],[0,12]]], +[" ┃ ",[[0,13],[6,1],[7,74],[0,12]]], +[" ╹▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀ ",[[0,13],[6,1],[8,74],[0,12]]], +[" /tmp/opencode/packages/tui:main shift+tab agents ctrl+p commands ",[[0,13],[1,31],[0,21],[1,6],[0,9],[1,8],[0,12]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" test ",[[0,94],[1,4],[0,2]]], +[" ",[[0,100]]], +[" ╭─────────p0a──────────╮ ",[[0,2],[6,24],[0,74]]], +[" │ ┃ ruled │ ",[[0,2],[6,1],[0,2],[1,1],[0,19],[6,1],[0,74]]], +[" │ alpha beta gamma │ ",[[0,2],[6,1],[0,22],[6,1],[0,74]]], +[" │ │ ",[[0,2],[6,1],[0,22],[6,1],[0,13],[9,22],[0,39]]], +[" ╰──────────────────────╯ ",[[0,2],[6,24],[0,74]]] +]} diff --git a/packages/cli-rs/parity/fixtures/P.1/p0a-dialogs.app.json b/packages/cli-rs/parity/fixtures/P.1/p0a-dialogs.app.json new file mode 100644 index 000000000000..b212e176ea99 --- /dev/null +++ b/packages/cli-rs/parity/fixtures/P.1/p0a-dialogs.app.json @@ -0,0 +1,56 @@ +{ + "scenario": "P.1/p0a-dialogs", + "width": 100, + "height": 30, + "directory": "/tmp/opencode/packages/tui", + "config": { + "plugins": ["./plugins/p0a"], + "animations": false, + "experimental": {"new-designs":true}, + "theme": {"name":"opencode"} + }, + "args": {}, + "env": { + "OPENCODE_PARITY_PLUGIN": "p0a" + }, + "routes": [], + "steps": [ + {"checkpoint":"home","until":"p0a","masks":[{"x":16,"y":14,"width":84,"height":1,"reason":"the placeholder example: random in TS and Rust"},{"x":39,"y":28,"width":22,"height":1,"reason":"TS plugin loading notice (F16)"}],"fixture":"P.1/p0a-dialogs/home"}, + {"keys":["f6"]}, + {"checkpoint":"confirm","until":"Delete the draft?","masks":[{"x":39,"y":28,"width":22,"height":1,"reason":"TS plugin loading notice (F16)"}],"fixture":"P.1/p0a-dialogs/confirm"}, + {"keys":["return"]}, + {"checkpoint":"confirmed","until":"answered true","masks":[{"x":16,"y":14,"width":84,"height":1,"reason":"the placeholder example: random in TS and Rust"},{"x":39,"y":28,"width":22,"height":1,"reason":"TS plugin loading notice (F16)"}],"fixture":"P.1/p0a-dialogs/confirmed"}, + {"keys":["f7"]}, + {"checkpoint":"alert","until":"Heads up","masks":[{"x":39,"y":28,"width":22,"height":1,"reason":"TS plugin loading notice (F16)"}],"fixture":"P.1/p0a-dialogs/alert"}, + {"keys":["escape"]}, + {"checkpoint":"alerted","until":"alert closed","masks":[{"x":16,"y":14,"width":84,"height":1,"reason":"the placeholder example: random in TS and Rust"},{"x":39,"y":28,"width":22,"height":1,"reason":"TS plugin loading notice (F16)"}],"fixture":"P.1/p0a-dialogs/alerted"}, + {"keys":["f6"]}, + {"keys":["escape"]}, + {"checkpoint":"cancelled","until":"answered false","masks":[{"x":16,"y":14,"width":84,"height":1,"reason":"the placeholder example: random in TS and Rust"},{"x":39,"y":28,"width":22,"height":1,"reason":"TS plugin loading notice (F16)"}],"fixture":"P.1/p0a-dialogs/cancelled"} + ], + "requests": { + "writes": [], + "reads": [ + {"method":"GET","path":"/api/agent","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":[]}}, + {"method":"GET","path":"/api/command","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":[]}}, + {"method":"GET","path":"/api/config","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":[]}, + {"method":"GET","path":"/api/experimental/migration/v1","query":{},"status":200,"json":{"status":"completed"}}, + {"method":"GET","path":"/api/form","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode"}},"data":[]}}, + {"method":"GET","path":"/api/fs/list","query":{"location[directory]":["<cwd>"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":[]}}, + {"method":"GET","path":"/api/info","query":{},"status":200,"json":{"version":"test","pid":0,"urls":[],"paths":{"tmp":"/tmp"},"capabilities":{"persistentPty":true}}}, + {"method":"GET","path":"/api/integration","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":[]}}, + {"method":"GET","path":"/api/location","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}}}, + {"method":"GET","path":"/api/mcp","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":[]}}, + {"method":"GET","path":"/api/mcp/resource","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":{"resources":[],"templates":[]}}}, + {"method":"GET","path":"/api/model","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":[]}}, + {"method":"GET","path":"/api/plugin","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":[]}}, + {"method":"GET","path":"/api/project","query":{},"status":200,"json":[]}, + {"method":"GET","path":"/api/provider","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":[]}}, + {"method":"GET","path":"/api/reference","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode/packages/tui","canonical":"/tmp/opencode/packages/tui"}},"data":[]}}, + {"method":"GET","path":"/api/session/active","query":{},"status":200,"json":{"data":{}}}, + {"method":"GET","path":"/api/shell","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":[]}}, + {"method":"GET","path":"/api/skill","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":[]}}, + {"method":"GET","path":"/api/vcs","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":{"branch":{"current":"main","default":"main"}}}} + ] + } +} diff --git a/packages/cli-rs/parity/fixtures/P.1/p0a-dialogs/alert.json b/packages/cli-rs/parity/fixtures/P.1/p0a-dialogs/alert.json new file mode 100644 index 000000000000..df0fa3469649 --- /dev/null +++ b/packages/cli-rs/parity/fixtures/P.1/p0a-dialogs/alert.json @@ -0,0 +1,32 @@ +{"width":100,"height":30,"styles":["#ffffffff #030303ff 0","#313f69ff #030303ff 0","#ffffffff #0d0d0dff 0","#696969ff #0d0d0dff 0","#353535ff #0d0d0dff 0","#696969ff #030303ff 1","#ffffffff #141414ff 0","#808080ff #141414ff 0","#1e1e1eff #030303ff 0","#ffffffff #202020ff 0","#808080ff #202020ff 0","#0d0d0dff #030303ff 0","#353535ff #030303ff 0","#696969ff #030303ff 0","#00000000 #00000000 0"],"lines":[ +[" ",[[0,100]]], +[" ┃ ┃ ",[[0,76],[1,1],[2,20],[1,1],[0,2]]], +[" ┃ answered true x ┃ ",[[0,76],[1,1],[2,2],[3,8],[2,1],[3,4],[2,2],[4,1],[2,2],[1,1],[0,2]]], +[" ┃ ┃ ",[[0,76],[1,1],[2,20],[1,1],[0,2]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ▄ ",[[0,64],[5,1],[0,35]]], +[" ",[[0,20],[6,60],[0,20]]], +[" Heads up esc ",[[0,20],[6,54],[7,3],[6,3],[0,20]]], +[" ",[[0,20],[6,60],[0,20]]], +[" The plugin says hello. ",[[0,20],[6,3],[7,22],[6,35],[0,20]]], +[" ",[[0,20],[6,60],[0,20]]], +[" ┃ ",[[0,13],[8,1],[2,6],[9,60],[2,8],[0,12]]], +[" ┃ Ask ok enter ",[[0,13],[8,1],[2,2],[4,3],[2,1],[9,51],[10,6],[9,3],[2,8],[0,12]]], +[" ┃ ",[[0,13],[8,1],[2,6],[9,60],[2,8],[0,12]]], +[" ┃ ",[[0,13],[8,1],[2,74],[0,12]]], +[" ╹▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀ ",[[0,13],[8,1],[11,74],[0,12]]], +[" /tmp/opencode/packages/tui:main shift+tab agents ctrl+p commands ",[[0,13],[12,31],[0,11],[13,9],[0,1],[12,6],[0,2],[13,6],[0,1],[12,8],[0,12]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" test ",[[0,94],[12,4],[0,2]]], +[" ",[[0,100]]], +[" ╭─────────p0a──────────╮ ",[[0,2],[8,24],[0,74]]], +[" │ ┃ ruled │ ",[[0,2],[8,1],[0,2],[12,1],[0,1],[13,5],[0,13],[8,1],[0,74]]], +[" │ alpha beta gamma │ ",[[0,2],[8,1],[0,2],[13,5],[0,1],[13,4],[0,1],[13,5],[0,4],[8,1],[0,74]]], +[" │ │ ",[[0,2],[8,1],[0,22],[8,1],[0,13],[14,22],[0,39]]], +[" ╰──────────────────────╯ ",[[0,2],[8,24],[0,74]]] +]} diff --git a/packages/cli-rs/parity/fixtures/P.1/p0a-dialogs/alerted.json b/packages/cli-rs/parity/fixtures/P.1/p0a-dialogs/alerted.json new file mode 100644 index 000000000000..60d106dc893d --- /dev/null +++ b/packages/cli-rs/parity/fixtures/P.1/p0a-dialogs/alerted.json @@ -0,0 +1,32 @@ +{"width":100,"height":30,"styles":["#ffffffff #080808ff 0","#7699feff #080808ff 0","#ffffffff #202020ff 0","#808080ff #202020ff 0","#808080ff #080808ff 0","#ffffffff #080808ff 1","#808080ff #262626ff 0","#ffffffff #464646ff 1","#262626ff #080808ff 0","#484848ff #080808ff 0","#00000000 #00000000 0","#202020ff #080808ff 0"],"lines":[ +[" ",[[0,100]]], +[" ┃ ┃ ",[[0,77],[1,1],[2,19],[1,1],[0,2]]], +[" ┃ alert closed x ┃ ",[[0,77],[1,1],[2,16],[3,1],[2,2],[1,1],[0,2]]], +[" ┃ ┃ ",[[0,77],[1,1],[2,19],[1,1],[0,2]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ▄ ",[[0,31],[4,19],[0,1],[5,19],[0,30]]], +[" █▀▀█ █▀▀█ █▀▀█ █▀▀▄ █▀▀▀ █▀▀█ █▀▀█ █▀▀█ ",[[0,31],[4,19],[0,1],[5,19],[0,30]]], +[" █ █ █ █ █▀▀▀ █ █ █ █ █ █ █ █▀▀▀ ",[[0,31],[4,1],[6,2],[4,3],[6,2],[4,3],[6,3],[4,2],[6,2],[4,1],[0,1],[5,1],[7,3],[5,2],[7,2],[5,3],[7,2],[5,3],[7,3],[0,30]]], +[" ▀▀▀▀ █▀▀▀ ▀▀▀▀ ▀▀▀▀ ▀▀▀▀ ▀▀▀▀ ▀▀▀▀ ▀▀▀▀ ",[[0,31],[4,16],[8,2],[4,1],[0,1],[5,19],[0,30]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ┃ ",[[0,13],[9,1],[2,74],[0,12]]], +[" ┃ ",[[0,13],[9,1],[2,2],[10,84]]], +[" ┃ ",[[0,13],[9,1],[2,74],[0,12]]], +[" ┃ ",[[0,13],[9,1],[2,74],[0,12]]], +[" ╹▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀ ",[[0,13],[9,1],[11,74],[0,12]]], +[" /tmp/opencode/packages/tui:main shift+tab agents ctrl+p commands ",[[0,13],[4,31],[0,21],[4,6],[0,9],[4,8],[0,12]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" test ",[[0,94],[4,4],[0,2]]], +[" ",[[0,100]]], +[" ╭─────────p0a──────────╮ ",[[0,2],[9,24],[0,74]]], +[" │ ┃ ruled │ ",[[0,2],[9,1],[0,2],[4,1],[0,19],[9,1],[0,74]]], +[" │ alpha beta gamma │ ",[[0,2],[9,1],[0,22],[9,1],[0,74]]], +[" │ │ ",[[0,2],[9,1],[0,22],[9,1],[0,13],[10,22],[0,39]]], +[" ╰──────────────────────╯ ",[[0,2],[9,24],[0,74]]] +]} diff --git a/packages/cli-rs/parity/fixtures/P.1/p0a-dialogs/cancelled.json b/packages/cli-rs/parity/fixtures/P.1/p0a-dialogs/cancelled.json new file mode 100644 index 000000000000..25e4786ee126 --- /dev/null +++ b/packages/cli-rs/parity/fixtures/P.1/p0a-dialogs/cancelled.json @@ -0,0 +1,32 @@ +{"width":100,"height":30,"styles":["#ffffffff #080808ff 0","#7699feff #080808ff 0","#ffffffff #202020ff 0","#808080ff #202020ff 0","#808080ff #080808ff 0","#ffffffff #080808ff 1","#808080ff #262626ff 0","#ffffffff #464646ff 1","#262626ff #080808ff 0","#484848ff #080808ff 0","#00000000 #00000000 0","#202020ff #080808ff 0"],"lines":[ +[" ",[[0,100]]], +[" ┃ ┃ ",[[0,75],[1,1],[2,21],[1,1],[0,2]]], +[" ┃ answered false x ┃ ",[[0,75],[1,1],[2,18],[3,1],[2,2],[1,1],[0,2]]], +[" ┃ ┃ ",[[0,75],[1,1],[2,21],[1,1],[0,2]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ▄ ",[[0,31],[4,19],[0,1],[5,19],[0,30]]], +[" █▀▀█ █▀▀█ █▀▀█ █▀▀▄ █▀▀▀ █▀▀█ █▀▀█ █▀▀█ ",[[0,31],[4,19],[0,1],[5,19],[0,30]]], +[" █ █ █ █ █▀▀▀ █ █ █ █ █ █ █ █▀▀▀ ",[[0,31],[4,1],[6,2],[4,3],[6,2],[4,3],[6,3],[4,2],[6,2],[4,1],[0,1],[5,1],[7,3],[5,2],[7,2],[5,3],[7,2],[5,3],[7,3],[0,30]]], +[" ▀▀▀▀ █▀▀▀ ▀▀▀▀ ▀▀▀▀ ▀▀▀▀ ▀▀▀▀ ▀▀▀▀ ▀▀▀▀ ",[[0,31],[4,16],[8,2],[4,1],[0,1],[5,19],[0,30]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ┃ ",[[0,13],[9,1],[2,74],[0,12]]], +[" ┃ ",[[0,13],[9,1],[2,2],[10,84]]], +[" ┃ ",[[0,13],[9,1],[2,74],[0,12]]], +[" ┃ ",[[0,13],[9,1],[2,74],[0,12]]], +[" ╹▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀ ",[[0,13],[9,1],[11,74],[0,12]]], +[" /tmp/opencode/packages/tui:main shift+tab agents ctrl+p commands ",[[0,13],[4,31],[0,21],[4,6],[0,9],[4,8],[0,12]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" test ",[[0,94],[4,4],[0,2]]], +[" ",[[0,100]]], +[" ╭─────────p0a──────────╮ ",[[0,2],[9,24],[0,74]]], +[" │ ┃ ruled │ ",[[0,2],[9,1],[0,2],[4,1],[0,19],[9,1],[0,74]]], +[" │ alpha beta gamma │ ",[[0,2],[9,1],[0,22],[9,1],[0,74]]], +[" │ │ ",[[0,2],[9,1],[0,22],[9,1],[0,13],[10,22],[0,39]]], +[" ╰──────────────────────╯ ",[[0,2],[9,24],[0,74]]] +]} diff --git a/packages/cli-rs/parity/fixtures/P.1/p0a-dialogs/confirm.json b/packages/cli-rs/parity/fixtures/P.1/p0a-dialogs/confirm.json new file mode 100644 index 000000000000..433b24033e8e --- /dev/null +++ b/packages/cli-rs/parity/fixtures/P.1/p0a-dialogs/confirm.json @@ -0,0 +1,32 @@ +{"width":100,"height":30,"styles":["#ffffffff #030303ff 0","#696969ff #030303ff 1","#ffffffff #141414ff 0","#808080ff #141414ff 0","#1e1e1eff #030303ff 0","#ffffffff #0d0d0dff 0","#ffffffff #23344bff 0","#353535ff #0d0d0dff 0","#0d0d0dff #030303ff 0","#353535ff #030303ff 0","#696969ff #030303ff 0","#00000000 #00000000 0"],"lines":[ +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ▄ ",[[0,64],[1,1],[0,35]]], +[" ",[[0,20],[2,60],[0,20]]], +[" Delete the draft? esc ",[[0,20],[2,54],[3,3],[2,3],[0,20]]], +[" ",[[0,20],[2,60],[0,20]]], +[" It cannot be undone. ",[[0,20],[2,3],[3,20],[2,37],[0,20]]], +[" ",[[0,20],[2,60],[0,20]]], +[" ┃ Keep Delete ",[[0,13],[4,1],[5,6],[2,44],[3,4],[2,1],[6,8],[2,3],[5,8],[0,12]]], +[" ┃ Ask ",[[0,13],[4,1],[5,2],[7,3],[5,1],[2,60],[5,8],[0,12]]], +[" ┃ ",[[0,13],[4,1],[5,74],[0,12]]], +[" ┃ ",[[0,13],[4,1],[5,74],[0,12]]], +[" ╹▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀ ",[[0,13],[4,1],[8,74],[0,12]]], +[" /tmp/opencode/packages/tui:main shift+tab agents ctrl+p commands ",[[0,13],[9,31],[0,11],[10,9],[0,1],[9,6],[0,2],[10,6],[0,1],[9,8],[0,12]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" test ",[[0,94],[9,4],[0,2]]], +[" ",[[0,100]]], +[" ╭─────────p0a──────────╮ ",[[0,2],[4,24],[0,74]]], +[" │ ┃ ruled │ ",[[0,2],[4,1],[0,2],[9,1],[0,1],[10,5],[0,13],[4,1],[0,74]]], +[" │ alpha beta gamma │ ",[[0,2],[4,1],[0,2],[10,5],[0,1],[10,4],[0,1],[10,5],[0,4],[4,1],[0,74]]], +[" │ │ ",[[0,2],[4,1],[0,22],[4,1],[0,13],[11,22],[0,39]]], +[" ╰──────────────────────╯ ",[[0,2],[4,24],[0,74]]] +]} diff --git a/packages/cli-rs/parity/fixtures/P.1/p0a-dialogs/confirmed.json b/packages/cli-rs/parity/fixtures/P.1/p0a-dialogs/confirmed.json new file mode 100644 index 000000000000..935d899fdff5 --- /dev/null +++ b/packages/cli-rs/parity/fixtures/P.1/p0a-dialogs/confirmed.json @@ -0,0 +1,32 @@ +{"width":100,"height":30,"styles":["#ffffffff #080808ff 0","#7699feff #080808ff 0","#ffffffff #202020ff 0","#808080ff #202020ff 0","#808080ff #080808ff 0","#ffffffff #080808ff 1","#808080ff #262626ff 0","#ffffffff #464646ff 1","#262626ff #080808ff 0","#484848ff #080808ff 0","#00000000 #00000000 0","#202020ff #080808ff 0"],"lines":[ +[" ",[[0,100]]], +[" ┃ ┃ ",[[0,76],[1,1],[2,20],[1,1],[0,2]]], +[" ┃ answered true x ┃ ",[[0,76],[1,1],[2,17],[3,1],[2,2],[1,1],[0,2]]], +[" ┃ ┃ ",[[0,76],[1,1],[2,20],[1,1],[0,2]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ▄ ",[[0,31],[4,19],[0,1],[5,19],[0,30]]], +[" █▀▀█ █▀▀█ █▀▀█ █▀▀▄ █▀▀▀ █▀▀█ █▀▀█ █▀▀█ ",[[0,31],[4,19],[0,1],[5,19],[0,30]]], +[" █ █ █ █ █▀▀▀ █ █ █ █ █ █ █ █▀▀▀ ",[[0,31],[4,1],[6,2],[4,3],[6,2],[4,3],[6,3],[4,2],[6,2],[4,1],[0,1],[5,1],[7,3],[5,2],[7,2],[5,3],[7,2],[5,3],[7,3],[0,30]]], +[" ▀▀▀▀ █▀▀▀ ▀▀▀▀ ▀▀▀▀ ▀▀▀▀ ▀▀▀▀ ▀▀▀▀ ▀▀▀▀ ",[[0,31],[4,16],[8,2],[4,1],[0,1],[5,19],[0,30]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ┃ ",[[0,13],[9,1],[2,74],[0,12]]], +[" ┃ ",[[0,13],[9,1],[2,2],[10,84]]], +[" ┃ ",[[0,13],[9,1],[2,74],[0,12]]], +[" ┃ ",[[0,13],[9,1],[2,74],[0,12]]], +[" ╹▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀ ",[[0,13],[9,1],[11,74],[0,12]]], +[" /tmp/opencode/packages/tui:main shift+tab agents ctrl+p commands ",[[0,13],[4,31],[0,21],[4,6],[0,9],[4,8],[0,12]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" test ",[[0,94],[4,4],[0,2]]], +[" ",[[0,100]]], +[" ╭─────────p0a──────────╮ ",[[0,2],[9,24],[0,74]]], +[" │ ┃ ruled │ ",[[0,2],[9,1],[0,2],[4,1],[0,19],[9,1],[0,74]]], +[" │ alpha beta gamma │ ",[[0,2],[9,1],[0,22],[9,1],[0,74]]], +[" │ │ ",[[0,2],[9,1],[0,22],[9,1],[0,13],[10,22],[0,39]]], +[" ╰──────────────────────╯ ",[[0,2],[9,24],[0,74]]] +]} diff --git a/packages/cli-rs/parity/fixtures/P.1/p0a-dialogs/home.json b/packages/cli-rs/parity/fixtures/P.1/p0a-dialogs/home.json new file mode 100644 index 000000000000..191c05045268 --- /dev/null +++ b/packages/cli-rs/parity/fixtures/P.1/p0a-dialogs/home.json @@ -0,0 +1,32 @@ +{"width":100,"height":30,"styles":["#ffffffff #080808ff 0","#808080ff #080808ff 0","#ffffffff #080808ff 1","#808080ff #262626ff 0","#ffffffff #464646ff 1","#262626ff #080808ff 0","#484848ff #080808ff 0","#ffffffff #202020ff 0","#00000000 #00000000 0","#202020ff #080808ff 0"],"lines":[ +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ▄ ",[[0,31],[1,19],[0,1],[2,19],[0,30]]], +[" █▀▀█ █▀▀█ █▀▀█ █▀▀▄ █▀▀▀ █▀▀█ █▀▀█ █▀▀█ ",[[0,31],[1,19],[0,1],[2,19],[0,30]]], +[" █ █ █ █ █▀▀▀ █ █ █ █ █ █ █ █▀▀▀ ",[[0,31],[1,1],[3,2],[1,3],[3,2],[1,3],[3,3],[1,2],[3,2],[1,1],[0,1],[2,1],[4,3],[2,2],[4,2],[2,3],[4,2],[2,3],[4,3],[0,30]]], +[" ▀▀▀▀ █▀▀▀ ▀▀▀▀ ▀▀▀▀ ▀▀▀▀ ▀▀▀▀ ▀▀▀▀ ▀▀▀▀ ",[[0,31],[1,16],[5,2],[1,1],[0,1],[2,19],[0,30]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ┃ ",[[0,13],[6,1],[7,74],[0,12]]], +[" ┃ ",[[0,13],[6,1],[7,2],[8,84]]], +[" ┃ ",[[0,13],[6,1],[7,74],[0,12]]], +[" ┃ ",[[0,13],[6,1],[7,74],[0,12]]], +[" ╹▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀ ",[[0,13],[6,1],[9,74],[0,12]]], +[" /tmp/opencode/packages/tui:main shift+tab agents ctrl+p commands ",[[0,13],[1,31],[0,21],[1,6],[0,9],[1,8],[0,12]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" test ",[[0,94],[1,4],[0,2]]], +[" ",[[0,100]]], +[" ╭─────────p0a──────────╮ ",[[0,2],[6,24],[0,74]]], +[" │ ┃ ruled │ ",[[0,2],[6,1],[0,2],[1,1],[0,19],[6,1],[0,74]]], +[" │ alpha beta gamma │ ",[[0,2],[6,1],[0,22],[6,1],[0,74]]], +[" │ │ ",[[0,2],[6,1],[0,22],[6,1],[0,13],[8,22],[0,39]]], +[" ╰──────────────────────╯ ",[[0,2],[6,24],[0,74]]] +]} diff --git a/packages/cli-rs/parity/fixtures/P.1/slot.app.json b/packages/cli-rs/parity/fixtures/P.1/slot.app.json new file mode 100644 index 000000000000..0c9d8528732c --- /dev/null +++ b/packages/cli-rs/parity/fixtures/P.1/slot.app.json @@ -0,0 +1,45 @@ +{ + "scenario": "P.1/slot", + "width": 100, + "height": 30, + "directory": "/tmp/opencode/packages/tui", + "config": { + "plugins": ["./plugins/slot"], + "animations": false, + "experimental": {"new-designs":true}, + "theme": {"name":"opencode"} + }, + "args": {}, + "env": { + "OPENCODE_PARITY_PLUGIN": "slot" + }, + "routes": [], + "steps": [ + {"checkpoint":"home","until":"slot plugin: home.footer","masks":[{"x":16,"y":16,"width":84,"height":1,"reason":"the placeholder example: random in TS and Rust"}],"fixture":"P.1/slot/home"} + ], + "requests": { + "writes": [], + "reads": [ + {"method":"GET","path":"/api/agent","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":[]}}, + {"method":"GET","path":"/api/command","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":[]}}, + {"method":"GET","path":"/api/config","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":[]}, + {"method":"GET","path":"/api/experimental/migration/v1","query":{},"status":200,"json":{"status":"completed"}}, + {"method":"GET","path":"/api/form","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode"}},"data":[]}}, + {"method":"GET","path":"/api/fs/list","query":{"location[directory]":["<cwd>"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":[]}}, + {"method":"GET","path":"/api/info","query":{},"status":200,"json":{"version":"test","pid":0,"urls":[],"paths":{"tmp":"/tmp"},"capabilities":{"persistentPty":true}}}, + {"method":"GET","path":"/api/integration","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":[]}}, + {"method":"GET","path":"/api/location","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}}}, + {"method":"GET","path":"/api/mcp","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":[]}}, + {"method":"GET","path":"/api/mcp/resource","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":{"resources":[],"templates":[]}}}, + {"method":"GET","path":"/api/model","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":[]}}, + {"method":"GET","path":"/api/plugin","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":[]}}, + {"method":"GET","path":"/api/project","query":{},"status":200,"json":[]}, + {"method":"GET","path":"/api/provider","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":[]}}, + {"method":"GET","path":"/api/reference","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode/packages/tui","canonical":"/tmp/opencode/packages/tui"}},"data":[]}}, + {"method":"GET","path":"/api/session/active","query":{},"status":200,"json":{"data":{}}}, + {"method":"GET","path":"/api/shell","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":[]}}, + {"method":"GET","path":"/api/skill","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":[]}}, + {"method":"GET","path":"/api/vcs","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":{"branch":{"current":"main","default":"main"}}}} + ] + } +} diff --git a/packages/cli-rs/parity/fixtures/P.1/slot/home.json b/packages/cli-rs/parity/fixtures/P.1/slot/home.json new file mode 100644 index 000000000000..f20b9441dac3 --- /dev/null +++ b/packages/cli-rs/parity/fixtures/P.1/slot/home.json @@ -0,0 +1,32 @@ +{"width":100,"height":30,"styles":["#ffffffff #080808ff 0","#808080ff #080808ff 0","#ffffffff #080808ff 1","#808080ff #262626ff 0","#ffffffff #464646ff 1","#262626ff #080808ff 0","#484848ff #080808ff 0","#ffffffff #202020ff 0","#00000000 #00000000 0","#202020ff #080808ff 0"],"lines":[ +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ▄ ",[[0,31],[1,19],[0,1],[2,19],[0,30]]], +[" █▀▀█ █▀▀█ █▀▀█ █▀▀▄ █▀▀▀ █▀▀█ █▀▀█ █▀▀█ ",[[0,31],[1,19],[0,1],[2,19],[0,30]]], +[" █ █ █ █ █▀▀▀ █ █ █ █ █ █ █ █▀▀▀ ",[[0,31],[1,1],[3,2],[1,3],[3,2],[1,3],[3,3],[1,2],[3,2],[1,1],[0,1],[2,1],[4,3],[2,2],[4,2],[2,3],[4,2],[2,3],[4,3],[0,30]]], +[" ▀▀▀▀ █▀▀▀ ▀▀▀▀ ▀▀▀▀ ▀▀▀▀ ▀▀▀▀ ▀▀▀▀ ▀▀▀▀ ",[[0,31],[1,16],[5,2],[1,1],[0,1],[2,19],[0,30]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ┃ ",[[0,13],[6,1],[7,74],[0,12]]], +[" ┃ ",[[0,13],[6,1],[7,2],[8,84]]], +[" ┃ ",[[0,13],[6,1],[7,74],[0,12]]], +[" ┃ ",[[0,13],[6,1],[7,74],[0,12]]], +[" ╹▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀ ",[[0,13],[6,1],[9,74],[0,12]]], +[" /tmp/opencode/packages/tui:main shift+tab agents ctrl+p commands ",[[0,13],[1,31],[0,21],[1,6],[0,9],[1,8],[0,12]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" test ",[[0,94],[1,4],[0,2]]], +[" ",[[0,100]]], +[" slot plugin: home.footer ",[[0,2],[1,24],[0,74]]] +]} diff --git a/packages/cli-rs/parity/fixtures/P.2/adapter.json b/packages/cli-rs/parity/fixtures/P.2/adapter.json new file mode 100644 index 000000000000..9beab4278553 --- /dev/null +++ b/packages/cli-rs/parity/fixtures/P.2/adapter.json @@ -0,0 +1,38 @@ +{"width":60,"height":36,"styles":["#ffffffff #080808ff 0","#eeeeeeff #080808ff 0","#808080ff #080808ff 0","#ffffffff #080808ff 1"],"lines":[ +[" Structured math through the adapter: ",[[0,3],[1,36],[0,21]]], +[" ",[[0,60]]], +[" ",[[0,60]]], +[" 1 ",[[0,60]]], +[" ─── ",[[0,3],[2,3],[0,54]]], +[" 2 ╭─ ",[[0,6],[2,2],[0,52]]], +[" ╰╯x ",[[0,5],[2,2],[0,53]]], +[" ",[[0,60]]], +[" ",[[0,60]]], +[" ║v║ + (A → B) ",[[0,3],[2,1],[0,1],[2,1],[0,3],[2,1],[0,5],[2,1],[0,44]]], +[" ",[[0,60]]], +[" ",[[0,60]]], +[" a = b + c ",[[0,6],[3,1],[0,53]]], +[" ",[[0,60]]], +[" = d ",[[0,6],[3,1],[0,53]]], +[" ",[[0,60]]], +[" ",[[0,60]]], +[" x = 1 ",[[0,5],[3,1],[0,54]]], +[" ",[[0,60]]], +[" y = 2 ",[[0,5],[3,1],[0,54]]], +[" ",[[0,60]]], +[" ",[[0,60]]], +[" 1 ",[[0,60]]], +[" ─────── a + b + c ",[[0,3],[2,7],[0,50]]], +[" 12345 ╰───┬───╯ ",[[0,14],[2,9],[0,37]]], +[" n ",[[0,60]]], +[" ",[[0,60]]], +[" ",[[0,60]]], +[" a │ wide ",[[0,8],[2,1],[0,51]]], +[[" "," "," "," "," "," "," "," ","│"," "," "," "," "," "," ","中","","文",""," ","="," ","x"," "," "," "," "," "," "," "," "," "," "," "," "," "," "," "," "," "," "," "," "," "," "," "," "," "," "," "," "," "," "," "," "," "," "," "," "," "],[[0,8],[2,1],[0,11],[3,1],[0,39]]], +[" long │ b ",[[0,8],[2,1],[0,51]]], +[" ",[[0,60]]], +[" ",[[0,60]]], +[" ",[[0,60]]], +[" ",[[0,60]]], +[" ",[[0,60]]] +]} diff --git a/packages/cli-rs/parity/fixtures/P.2/corpus.json b/packages/cli-rs/parity/fixtures/P.2/corpus.json new file mode 100644 index 000000000000..1a74452845fe --- /dev/null +++ b/packages/cli-rs/parity/fixtures/P.2/corpus.json @@ -0,0 +1,6 @@ +{ + "structures": "Before the math.\n\n```latex\n\\frac{x+1}{y-1} = \\sqrt{\\frac{1}{2}}\n```\n\n```math\n\\begin{pmatrix}a & b \\\\ c & d\\end{pmatrix}^2\n```\n\n```latex\n\\sum_{i=1}^{n} i^2 \\le \\binom{n}{k}\n```\n\n```LATEX title=example\n\\begin{cases}x & x>0\\\\x^2+1 & x\\le0\\end{cases}\n```\n\nAfter the math.", + "adapter": "Structured math through the adapter:\n\n```latex\n\\sqrt[\\frac{1}{2}]{x}\n```\n\n```tex\n\\left\\|v\\right\\| + \\left(A\\rightarrow B\\right)\n```\n\n```latex\n\\begin{aligned}a&=b+c\\\\&=d\\end{aligned}\n```\n\n```latex\n\\displaylines{x=1\\\\y=2}\n```\n\n```latex\n\\cfrac[l]{1}{12345} \\quad \\underbrace{a+b+c}_{n}\n```\n\n```latex\n\\begin{array}{l|r}a&wide\\\\long&b\\end{array} \\text{中文}=x\n```", + "wide": "Wide:\n\n```latex\n\\text{Start a very long formula with enough content to overflow Finish}\n```\n\nEnd.", + "invalid": "Invalid math stays source:\n\n```latex\n\\frac{1}{\n```\n\n```latex\n\\unsupported{x}\n```\n\n```typescript\nconst x = 2\n```\n\nDone." +} diff --git a/packages/cli-rs/parity/fixtures/P.2/fence-margin.app.json b/packages/cli-rs/parity/fixtures/P.2/fence-margin.app.json new file mode 100644 index 000000000000..e08d536fd668 --- /dev/null +++ b/packages/cli-rs/parity/fixtures/P.2/fence-margin.app.json @@ -0,0 +1,56 @@ +{ + "scenario": "P.2/fence-margin", + "width": 100, + "height": 40, + "directory": "/tmp/opencode/packages/tui", + "config": { + "animations": false, + "experimental": {"new-designs":true}, + "theme": {"name":"opencode"} + }, + "args": { + "sessionID": "ses_m" + }, + "routes": [ + {"path":"/api/session/ses_m","json":{"data":{"id":"ses_m","title":"Draw the math","projectID":"proj_test","cost":0,"tokens":{"input":0,"output":0,"reasoning":0,"cache":{"read":0,"write":0}},"time":{"created":2,"updated":2},"location":{"directory":"/tmp/opencode/packages/tui"}}}}, + {"path":"/api/session/ses_m/message","json":{"data":[{"id":"msg_2","type":"assistant","agent":"build","model":{"providerID":"provider","id":"model"},"content":[{"type":"text","text":"The area is:\n\n```latex\nx^2\n```\n\nand the root:\n\n```latex\n\\sqrt{x}\n```\n\n```latex\na+b\n```\n\n- parse\n- render\n\n```mermaid\nflowchart LR\n A --> B\n```"}],"finish":"stop","time":{"created":2000,"completed":2001}},{"id":"msg_1","type":"user","text":"Show the formulas","time":{"created":1000}}],"cursor":{}}}, + {"path":"/api/session/ses_m/inbox","json":{"data":[]}} + ], + "steps": [ + {"checkpoint":"open","until":"render","deviation":[{"file":"P2-latex-opentui-tex","cells":2},{"file":"F16-plugin-fence-margin","cells":175}],"fixture":"P.2/fence-margin/open"} + ], + "requests": { + "writes": [], + "reads": [ + {"method":"GET","path":"/api/agent","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":[]}}, + {"method":"GET","path":"/api/command","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":[]}}, + {"method":"GET","path":"/api/config","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":[]}, + {"method":"GET","path":"/api/experimental/job","query":{"descendants":["true"],"sessionID":["ses_m"],"status":["running"]},"status":200,"json":{"data":[]}}, + {"method":"GET","path":"/api/experimental/migration/v1","query":{},"status":200,"json":{"status":"completed"}}, + {"method":"GET","path":"/api/experimental/session/ses_m/terminal","query":{},"status":200,"json":{"data":[]}}, + {"method":"GET","path":"/api/form","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode"}},"data":[]}}, + {"method":"GET","path":"/api/fs/list","query":{"location[directory]":["<cwd>"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":[]}}, + {"method":"GET","path":"/api/info","query":{},"status":200,"json":{"version":"test","pid":0,"urls":[],"paths":{"tmp":"/tmp"},"capabilities":{"persistentPty":true}}}, + {"method":"GET","path":"/api/integration","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":[]}}, + {"method":"GET","path":"/api/location","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}}}, + {"method":"GET","path":"/api/mcp","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":[]}}, + {"method":"GET","path":"/api/mcp/resource","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":{"resources":[],"templates":[]}}}, + {"method":"GET","path":"/api/model","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":[]}}, + {"method":"GET","path":"/api/plugin","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":[]}}, + {"method":"GET","path":"/api/project","query":{},"status":200,"json":[]}, + {"method":"GET","path":"/api/provider","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":[]}}, + {"method":"GET","path":"/api/reference","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode/packages/tui","canonical":"/tmp/opencode/packages/tui"}},"data":[]}}, + {"method":"GET","path":"/api/session","query":{"limit":["200"],"order":["desc"],"parentID":["ses_m"]},"status":200,"json":{"data":[],"cursor":{}}}, + {"method":"GET","path":"/api/session/active","query":{},"status":200,"json":{"data":{}}}, + {"method":"GET","path":"/api/session/ses_m","query":{},"status":200,"json":{"data":{"id":"ses_m","title":"Draw the math","projectID":"proj_test","cost":0,"tokens":{"input":0,"output":0,"reasoning":0,"cache":{"read":0,"write":0}},"time":{"created":2,"updated":2},"location":{"directory":"/tmp/opencode/packages/tui"}}}}, + {"method":"GET","path":"/api/session/ses_m/form","query":{},"status":200,"json":{"data":[]}}, + {"method":"GET","path":"/api/session/ses_m/inbox","query":{},"status":200,"json":{"data":[]}}, + {"method":"GET","path":"/api/session/ses_m/message","query":{"limit":["20"],"order":["desc"]},"status":200,"json":{"data":[{"id":"msg_2","type":"assistant","agent":"build","model":{"providerID":"provider","id":"model"},"content":[{"type":"text","text":"The area is:\n\n```latex\nx^2\n```\n\nand the root:\n\n```latex\n\\sqrt{x}\n```\n\n```latex\na+b\n```\n\n- parse\n- render\n\n```mermaid\nflowchart LR\n A --> B\n```"}],"finish":"stop","time":{"created":2000,"completed":2001}},{"id":"msg_1","type":"user","text":"Show the formulas","time":{"created":1000}}],"cursor":{}}}, + {"method":"GET","path":"/api/session/ses_m/permission","query":{},"status":200,"json":{"data":[]}}, + {"method":"GET","path":"/api/shell","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":[]}}, + {"method":"GET","path":"/api/skill","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":[]}}, + {"method":"GET","path":"/api/vcs","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":{"branch":{"current":"main","default":"main"}}}}, + {"method":"POST","path":"/api/rpc/opencode.goal/get","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"body":{"input":{"sessionID":"ses_m"}},"status":200,"json":{"output":null}} + ] + } +} diff --git a/packages/cli-rs/parity/fixtures/P.2/fence-margin/open.json b/packages/cli-rs/parity/fixtures/P.2/fence-margin/open.json new file mode 100644 index 000000000000..e7df5b147569 --- /dev/null +++ b/packages/cli-rs/parity/fixtures/P.2/fence-margin/open.json @@ -0,0 +1,42 @@ +{"width":100,"height":40,"styles":["#ffffffff #202020ff 0","#ffffffff #202020ff 1","#808080ff #080808ff 0","#ffffffff #080808ff 0","#7699feff #141414ff 0","#ffffffff #141414ff 0","#eeeeeeff #080808ff 0","#fab283ff #080808ff 0","#a6a6a6ff #080808ff 0","#999999ff #080808ff 0","#939393ff #080808ff 0","#8d8d8dff #080808ff 0","#868686ff #080808ff 0","#7699feff #080808ff 0","#484848ff #080808ff 0","#202020ff #080808ff 0"],"lines":[ +[" Draw the math + ",[[0,3],[1,13],[0,16],[2,3],[3,65]]], +[" ",[[3,100]]], +[" ┃ ",[[3,2],[4,1],[5,95],[3,2]]], +[" ┃ Show the formulas ",[[3,2],[4,1],[5,95],[3,2]]], +[" ┃ ",[[3,2],[4,1],[5,95],[3,2]]], +[" ",[[3,100]]], +[" The area is: ",[[3,5],[6,12],[3,83]]], +[" ",[[3,100]]], +[" ",[[3,100]]], +[" x² ",[[3,100]]], +[" ",[[3,100]]], +[" and the root: ",[[3,5],[6,13],[3,82]]], +[" ",[[3,100]]], +[" ",[[3,100]]], +[" ╭─ ",[[3,6],[2,2],[3,92]]], +[" ╰╯x ",[[3,5],[2,2],[3,93]]], +[" ",[[3,100]]], +[" ",[[3,100]]], +[" a + b ",[[3,100]]], +[" ",[[3,100]]], +[" - parse ",[[3,5],[7,2],[6,5],[3,88]]], +[" - render ",[[3,5],[7,2],[6,6],[3,87]]], +[" ",[[3,100]]], +[" ",[[3,100]]], +[" ╭───╮ ╭───╮ ",[[3,5],[8,5],[3,4],[8,5],[3,81]]], +[" │ A ├───▶│ B │ ",[[3,5],[8,1],[3,3],[9,1],[10,1],[11,1],[12,1],[2,1],[8,1],[3,3],[8,1],[3,81]]], +[" ╰───╯ ╰───╯ ",[[3,5],[8,5],[3,4],[8,5],[3,81]]], +[" ",[[3,100]]], +[" Build · provider/model · 1.0s ",[[3,5],[13,5],[2,24],[3,66]]], +[" ",[[3,100]]], +[" ",[[3,100]]], +[" ",[[3,100]]], +[" ",[[3,100]]], +[" ┃ ",[[3,2],[14,1],[0,95],[3,2]]], +[" ┃ ",[[3,2],[14,1],[0,95],[3,2]]], +[" ┃ ",[[3,2],[14,1],[0,95],[3,2]]], +[" ┃ ",[[3,2],[14,1],[0,95],[3,2]]], +[" ╹▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀ ",[[3,2],[14,1],[15,95],[3,2]]], +[" /tmp/opencode/packages/tui:main shift+tab agents ctrl+p commands ",[[3,2],[2,31],[3,42],[2,6],[3,9],[2,8],[3,2]]], +[" ",[[3,100]]] +]} diff --git a/packages/cli-rs/parity/fixtures/P.2/inline-math.app.json b/packages/cli-rs/parity/fixtures/P.2/inline-math.app.json new file mode 100644 index 000000000000..e42735733943 --- /dev/null +++ b/packages/cli-rs/parity/fixtures/P.2/inline-math.app.json @@ -0,0 +1,56 @@ +{ + "scenario": "P.2/inline-math", + "width": 100, + "height": 30, + "directory": "/tmp/opencode/packages/tui", + "config": { + "animations": false, + "experimental": {"new-designs":true}, + "theme": {"name":"opencode"} + }, + "args": { + "sessionID": "ses_im" + }, + "routes": [ + {"path":"/api/session/ses_im","json":{"data":{"id":"ses_im","title":"Mixed math","projectID":"proj_test","cost":0,"tokens":{"input":0,"output":0,"reasoning":0,"cache":{"read":0,"write":0}},"time":{"created":2,"updated":2},"location":{"directory":"/tmp/opencode/packages/tui"}}}}, + {"path":"/api/session/ses_im/message","json":{"data":[{"id":"msg_2","type":"assistant","agent":"build","model":{"providerID":"provider","id":"model"},"content":[{"type":"text","text":"Energy is $E=mc^2$ and \\(\\alpha \\le \\frac{1}{2}\\) holds.\n\n$$\n\\frac{a+b}{2}\n$$\n\n\\[\nx_i^2\n\\]\n\n```latex\n\\sqrt{x}\n```\n\nIt costs $5 and $10; run echo $HOME."}],"finish":"stop","time":{"created":2000,"completed":2001}},{"id":"msg_1","type":"user","text":"Show the math","time":{"created":1000}}],"cursor":{}}}, + {"path":"/api/session/ses_im/inbox","json":{"data":[]}} + ], + "steps": [ + {"checkpoint":"open","until":"run echo $HOME.","deviation":[{"file":"P2-latex-inline","cells":191},{"file":"F16-plugin-fence-margin","cells":262}],"fixture":"P.2/inline-math/open"} + ], + "requests": { + "writes": [], + "reads": [ + {"method":"GET","path":"/api/agent","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":[]}}, + {"method":"GET","path":"/api/command","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":[]}}, + {"method":"GET","path":"/api/config","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":[]}, + {"method":"GET","path":"/api/experimental/job","query":{"descendants":["true"],"sessionID":["ses_im"],"status":["running"]},"status":200,"json":{"data":[]}}, + {"method":"GET","path":"/api/experimental/migration/v1","query":{},"status":200,"json":{"status":"completed"}}, + {"method":"GET","path":"/api/experimental/session/ses_im/terminal","query":{},"status":200,"json":{"data":[]}}, + {"method":"GET","path":"/api/form","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode"}},"data":[]}}, + {"method":"GET","path":"/api/fs/list","query":{"location[directory]":["<cwd>"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":[]}}, + {"method":"GET","path":"/api/info","query":{},"status":200,"json":{"version":"test","pid":0,"urls":[],"paths":{"tmp":"/tmp"},"capabilities":{"persistentPty":true}}}, + {"method":"GET","path":"/api/integration","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":[]}}, + {"method":"GET","path":"/api/location","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}}}, + {"method":"GET","path":"/api/mcp","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":[]}}, + {"method":"GET","path":"/api/mcp/resource","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":{"resources":[],"templates":[]}}}, + {"method":"GET","path":"/api/model","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":[]}}, + {"method":"GET","path":"/api/plugin","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":[]}}, + {"method":"GET","path":"/api/project","query":{},"status":200,"json":[]}, + {"method":"GET","path":"/api/provider","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":[]}}, + {"method":"GET","path":"/api/reference","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode/packages/tui","canonical":"/tmp/opencode/packages/tui"}},"data":[]}}, + {"method":"GET","path":"/api/session","query":{"limit":["200"],"order":["desc"],"parentID":["ses_im"]},"status":200,"json":{"data":[],"cursor":{}}}, + {"method":"GET","path":"/api/session/active","query":{},"status":200,"json":{"data":{}}}, + {"method":"GET","path":"/api/session/ses_im","query":{},"status":200,"json":{"data":{"id":"ses_im","title":"Mixed math","projectID":"proj_test","cost":0,"tokens":{"input":0,"output":0,"reasoning":0,"cache":{"read":0,"write":0}},"time":{"created":2,"updated":2},"location":{"directory":"/tmp/opencode/packages/tui"}}}}, + {"method":"GET","path":"/api/session/ses_im/form","query":{},"status":200,"json":{"data":[]}}, + {"method":"GET","path":"/api/session/ses_im/inbox","query":{},"status":200,"json":{"data":[]}}, + {"method":"GET","path":"/api/session/ses_im/message","query":{"limit":["20"],"order":["desc"]},"status":200,"json":{"data":[{"id":"msg_2","type":"assistant","agent":"build","model":{"providerID":"provider","id":"model"},"content":[{"type":"text","text":"Energy is $E=mc^2$ and \\(\\alpha \\le \\frac{1}{2}\\) holds.\n\n$$\n\\frac{a+b}{2}\n$$\n\n\\[\nx_i^2\n\\]\n\n```latex\n\\sqrt{x}\n```\n\nIt costs $5 and $10; run echo $HOME."}],"finish":"stop","time":{"created":2000,"completed":2001}},{"id":"msg_1","type":"user","text":"Show the math","time":{"created":1000}}],"cursor":{}}}, + {"method":"GET","path":"/api/session/ses_im/permission","query":{},"status":200,"json":{"data":[]}}, + {"method":"GET","path":"/api/shell","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":[]}}, + {"method":"GET","path":"/api/skill","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":[]}}, + {"method":"GET","path":"/api/vcs","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":{"branch":{"current":"main","default":"main"}}}}, + {"method":"POST","path":"/api/rpc/opencode.goal/get","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"body":{"input":{"sessionID":"ses_im"}},"status":200,"json":{"output":null}} + ] + } +} diff --git a/packages/cli-rs/parity/fixtures/P.2/inline-math/open.json b/packages/cli-rs/parity/fixtures/P.2/inline-math/open.json new file mode 100644 index 000000000000..9415c4cba941 --- /dev/null +++ b/packages/cli-rs/parity/fixtures/P.2/inline-math/open.json @@ -0,0 +1,32 @@ +{"width":100,"height":30,"styles":["#ffffffff #202020ff 0","#ffffffff #202020ff 1","#808080ff #080808ff 0","#ffffffff #080808ff 0","#7699feff #141414ff 0","#ffffffff #141414ff 0","#eeeeeeff #080808ff 0","#9d7cd8ff #080808ff 0","#7699feff #080808ff 0","#484848ff #080808ff 0","#202020ff #080808ff 0"],"lines":[ +[" Mixed math + ",[[0,3],[1,10],[0,19],[2,3],[3,65]]], +[" ┃ ",[[3,2],[4,1],[5,95],[3,2]]], +[" ┃ Show the math ",[[3,2],[4,1],[5,95],[3,2]]], +[" ┃ ",[[3,2],[4,1],[5,95],[3,2]]], +[" ",[[3,100]]], +[" Energy is $E=mc^2$ and (\\alpha \\le \\frac{1}{2}) holds. ",[[3,5],[6,23],[7,1],[6,22],[7,1],[6,7],[3,41]]], +[" ",[[3,100]]], +[" $$ ",[[3,5],[6,2],[3,93]]], +[" \\frac{a+b}{2} ",[[3,5],[6,13],[3,82]]], +[" $$ ",[[3,5],[6,2],[3,93]]], +[" ",[[3,100]]], +[" [ ",[[3,5],[7,1],[3,94]]], +[" x_i^2 ",[[3,5],[6,5],[3,90]]], +[" ] ",[[3,5],[7,1],[3,94]]], +[" ",[[3,100]]], +[" ",[[3,100]]], +[" ╭─ ",[[3,6],[2,2],[3,92]]], +[" ╰╯x ",[[3,5],[2,2],[3,93]]], +[" ",[[3,100]]], +[" It costs $5 and $10; run echo $HOME. ",[[3,5],[6,36],[3,59]]], +[" ",[[3,100]]], +[" Build · provider/model · 1.0s ",[[3,5],[8,5],[2,24],[3,66]]], +[" ",[[3,100]]], +[" ┃ ",[[3,2],[9,1],[0,95],[3,2]]], +[" ┃ ",[[3,2],[9,1],[0,95],[3,2]]], +[" ┃ ",[[3,2],[9,1],[0,95],[3,2]]], +[" ┃ ",[[3,2],[9,1],[0,95],[3,2]]], +[" ╹▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀ ",[[3,2],[9,1],[10,95],[3,2]]], +[" /tmp/opencode/packages/tui:main shift+tab agents ctrl+p commands ",[[3,2],[2,31],[3,42],[2,6],[3,9],[2,8],[3,2]]], +[" ",[[3,100]]] +]} diff --git a/packages/cli-rs/parity/fixtures/P.2/invalid.json b/packages/cli-rs/parity/fixtures/P.2/invalid.json new file mode 100644 index 000000000000..5c25258a5aa8 --- /dev/null +++ b/packages/cli-rs/parity/fixtures/P.2/invalid.json @@ -0,0 +1,22 @@ +{"width":60,"height":20,"styles":["#ffffffff #080808ff 0","#eeeeeeff #080808ff 0","#9d7cd8ff #080808ff 4","#e06c75ff #080808ff 0","#56b6c2ff #080808ff 0","#f5a742ff #080808ff 0"],"lines":[ +[" Invalid math stays source: ",[[0,3],[1,26],[0,31]]], +[" ",[[0,60]]], +[" \\frac{1}{ ",[[0,3],[1,9],[0,48]]], +[" ",[[0,60]]], +[" \\unsupported{x} ",[[0,3],[1,15],[0,42]]], +[" ",[[0,60]]], +[" const x = 2 ",[[0,3],[2,5],[0,1],[3,1],[0,1],[4,1],[0,1],[5,1],[0,46]]], +[" ",[[0,60]]], +[" Done. ",[[0,3],[1,5],[0,52]]], +[" ",[[0,60]]], +[" ",[[0,60]]], +[" ",[[0,60]]], +[" ",[[0,60]]], +[" ",[[0,60]]], +[" ",[[0,60]]], +[" ",[[0,60]]], +[" ",[[0,60]]], +[" ",[[0,60]]], +[" ",[[0,60]]], +[" ",[[0,60]]] +]} diff --git a/packages/cli-rs/parity/fixtures/P.2/latex-opens.app.json b/packages/cli-rs/parity/fixtures/P.2/latex-opens.app.json new file mode 100644 index 000000000000..5c565373711f --- /dev/null +++ b/packages/cli-rs/parity/fixtures/P.2/latex-opens.app.json @@ -0,0 +1,56 @@ +{ + "scenario": "P.2/latex-opens", + "width": 100, + "height": 30, + "directory": "/tmp/opencode/packages/tui", + "config": { + "animations": false, + "experimental": {"new-designs":true}, + "theme": {"name":"opencode"} + }, + "args": { + "sessionID": "ses_l" + }, + "routes": [ + {"path":"/api/session/ses_l","json":{"data":{"id":"ses_l","title":"Draw the math","projectID":"proj_test","cost":0,"tokens":{"input":0,"output":0,"reasoning":0,"cache":{"read":0,"write":0}},"time":{"created":2,"updated":2},"location":{"directory":"/tmp/opencode/packages/tui"}}}}, + {"path":"/api/session/ses_l/message","json":{"data":[{"id":"msg_2","type":"assistant","agent":"build","model":{"providerID":"provider","id":"model"},"content":[{"type":"text","text":"```latex\nx^2\n```\n\nThat is the area."}],"finish":"stop","time":{"created":2000,"completed":2001}},{"id":"msg_1","type":"user","text":"Area?","time":{"created":1000}}],"cursor":{}}}, + {"path":"/api/session/ses_l/inbox","json":{"data":[]}} + ], + "steps": [ + {"checkpoint":"open","until":"That is the area.","deviation":[{"file":"F13-latex-leading-row","cells":96}],"fixture":"P.2/latex-opens/open"} + ], + "requests": { + "writes": [], + "reads": [ + {"method":"GET","path":"/api/agent","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":[]}}, + {"method":"GET","path":"/api/command","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":[]}}, + {"method":"GET","path":"/api/config","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":[]}, + {"method":"GET","path":"/api/experimental/job","query":{"descendants":["true"],"sessionID":["ses_l"],"status":["running"]},"status":200,"json":{"data":[]}}, + {"method":"GET","path":"/api/experimental/migration/v1","query":{},"status":200,"json":{"status":"completed"}}, + {"method":"GET","path":"/api/experimental/session/ses_l/terminal","query":{},"status":200,"json":{"data":[]}}, + {"method":"GET","path":"/api/form","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode"}},"data":[]}}, + {"method":"GET","path":"/api/fs/list","query":{"location[directory]":["<cwd>"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":[]}}, + {"method":"GET","path":"/api/info","query":{},"status":200,"json":{"version":"test","pid":0,"urls":[],"paths":{"tmp":"/tmp"},"capabilities":{"persistentPty":true}}}, + {"method":"GET","path":"/api/integration","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":[]}}, + {"method":"GET","path":"/api/location","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}}}, + {"method":"GET","path":"/api/mcp","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":[]}}, + {"method":"GET","path":"/api/mcp/resource","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":{"resources":[],"templates":[]}}}, + {"method":"GET","path":"/api/model","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":[]}}, + {"method":"GET","path":"/api/plugin","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":[]}}, + {"method":"GET","path":"/api/project","query":{},"status":200,"json":[]}, + {"method":"GET","path":"/api/provider","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":[]}}, + {"method":"GET","path":"/api/reference","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode/packages/tui","canonical":"/tmp/opencode/packages/tui"}},"data":[]}}, + {"method":"GET","path":"/api/session","query":{"limit":["200"],"order":["desc"],"parentID":["ses_l"]},"status":200,"json":{"data":[],"cursor":{}}}, + {"method":"GET","path":"/api/session/active","query":{},"status":200,"json":{"data":{}}}, + {"method":"GET","path":"/api/session/ses_l","query":{},"status":200,"json":{"data":{"id":"ses_l","title":"Draw the math","projectID":"proj_test","cost":0,"tokens":{"input":0,"output":0,"reasoning":0,"cache":{"read":0,"write":0}},"time":{"created":2,"updated":2},"location":{"directory":"/tmp/opencode/packages/tui"}}}}, + {"method":"GET","path":"/api/session/ses_l/form","query":{},"status":200,"json":{"data":[]}}, + {"method":"GET","path":"/api/session/ses_l/inbox","query":{},"status":200,"json":{"data":[]}}, + {"method":"GET","path":"/api/session/ses_l/message","query":{"limit":["20"],"order":["desc"]},"status":200,"json":{"data":[{"id":"msg_2","type":"assistant","agent":"build","model":{"providerID":"provider","id":"model"},"content":[{"type":"text","text":"```latex\nx^2\n```\n\nThat is the area."}],"finish":"stop","time":{"created":2000,"completed":2001}},{"id":"msg_1","type":"user","text":"Area?","time":{"created":1000}}],"cursor":{}}}, + {"method":"GET","path":"/api/session/ses_l/permission","query":{},"status":200,"json":{"data":[]}}, + {"method":"GET","path":"/api/shell","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":[]}}, + {"method":"GET","path":"/api/skill","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":[]}}, + {"method":"GET","path":"/api/vcs","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":{"branch":{"current":"main","default":"main"}}}}, + {"method":"POST","path":"/api/rpc/opencode.goal/get","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"body":{"input":{"sessionID":"ses_l"}},"status":200,"json":{"output":null}} + ] + } +} diff --git a/packages/cli-rs/parity/fixtures/P.2/latex-opens/open.json b/packages/cli-rs/parity/fixtures/P.2/latex-opens/open.json new file mode 100644 index 000000000000..d67feedc4fcc --- /dev/null +++ b/packages/cli-rs/parity/fixtures/P.2/latex-opens/open.json @@ -0,0 +1,32 @@ +{"width":100,"height":30,"styles":["#ffffffff #202020ff 0","#ffffffff #202020ff 1","#808080ff #080808ff 0","#ffffffff #080808ff 0","#7699feff #141414ff 0","#ffffffff #141414ff 0","#eeeeeeff #080808ff 0","#7699feff #080808ff 0","#484848ff #080808ff 0","#202020ff #080808ff 0"],"lines":[ +[" Draw the math + ",[[0,3],[1,13],[0,16],[2,3],[3,65]]], +[" ",[[3,100]]], +[" ┃ ",[[3,2],[4,1],[5,95],[3,2]]], +[" ┃ Area? ",[[3,2],[4,1],[5,95],[3,2]]], +[" ┃ ",[[3,2],[4,1],[5,95],[3,2]]], +[" ",[[3,100]]], +[" ",[[3,100]]], +[" x² ",[[3,100]]], +[" ",[[3,100]]], +[" That is the area. ",[[3,5],[6,17],[3,78]]], +[" ",[[3,100]]], +[" Build · provider/model · 1.0s ",[[3,5],[7,5],[2,24],[3,66]]], +[" ",[[3,100]]], +[" ",[[3,100]]], +[" ",[[3,100]]], +[" ",[[3,100]]], +[" ",[[3,100]]], +[" ",[[3,100]]], +[" ",[[3,100]]], +[" ",[[3,100]]], +[" ",[[3,100]]], +[" ",[[3,100]]], +[" ",[[3,100]]], +[" ┃ ",[[3,2],[8,1],[0,95],[3,2]]], +[" ┃ ",[[3,2],[8,1],[0,95],[3,2]]], +[" ┃ ",[[3,2],[8,1],[0,95],[3,2]]], +[" ┃ ",[[3,2],[8,1],[0,95],[3,2]]], +[" ╹▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀ ",[[3,2],[8,1],[9,95],[3,2]]], +[" /tmp/opencode/packages/tui:main shift+tab agents ctrl+p commands ",[[3,2],[2,31],[3,42],[2,6],[3,9],[2,8],[3,2]]], +[" ",[[3,100]]] +]} diff --git a/packages/cli-rs/parity/fixtures/P.2/layouts.json b/packages/cli-rs/parity/fixtures/P.2/layouts.json new file mode 100644 index 000000000000..1daf2b39a138 --- /dev/null +++ b/packages/cli-rs/parity/fixtures/P.2/layouts.json @@ -0,0 +1,498 @@ +[ + {"source":"\\frac{x+1}{y-1}","text":" x + 1\n───────\n y - 1","width":7,"height":3,"baseline":1,"styled":[]}, + {"source":"E = mc^2","text":"E = mc²","width":7,"height":1,"baseline":0,"styled":[]}, + {"source":"a_n","text":"aₙ","width":2,"height":1,"baseline":0,"styled":[]}, + {"source":"x_i^2","text":"x²ᵢ","width":3,"height":1,"baseline":0,"styled":[]}, + {"source":"x^{}","text":"x","width":1,"height":1,"baseline":0,"styled":[]}, + {"source":"x_{}","text":"x","width":1,"height":1,"baseline":0,"styled":[]}, + {"source":"x^{}_{}","text":"x","width":1,"height":1,"baseline":0,"styled":[]}, + {"source":"x^m_1","text":" m\nx\n 1","width":2,"height":3,"baseline":1,"styled":[]}, + {"source":"x^2_q","text":" 2\nx\n q","width":2,"height":3,"baseline":1,"styled":[]}, + {"source":"x^{\\frac{1}{2}}_1","text":" 1\n ───\n 2\nx\n 1","width":4,"height":5,"baseline":3,"styled":[]}, + {"source":"\\sum_1^n","text":"n\n∑\n1","width":1,"height":3,"baseline":1,"styled":[]}, + {"source":"P = \\binom{n}{k}","text":" ⎛ n ⎞\nP = ⎜ ⎟\n ⎝ k ⎠","width":9,"height":3,"baseline":1,"styled":[]}, + {"source":"\\sqrt{x^2+y^2}","text":" ╭───────\n╰╯x² + y²","width":9,"height":2,"baseline":1,"styled":[]}, + {"source":"\\begin{pmatrix}a & b \\\\ c & d\\end{pmatrix}","text":"⎛a b⎞\n⎜ ⎟\n⎝c d⎠","width":5,"height":3,"baseline":1,"styled":[]}, + {"source":"\\sum_{i=1}^{n} i^2","text":" n\n ∑ i²\ni = 1","width":8,"height":3,"baseline":1,"styled":[]}, + {"source":"\\frac{1}{2}","text":" 1\n───\n 2","width":3,"height":3,"baseline":1,"styled":[]}, + {"source":"\\mathbb{R} \\to \\mathcal{C} \\times \\mathfrak{g}","text":"ℝ → 𝒞 × 𝔤","width":9,"height":1,"baseline":0,"styled":[]}, + {"source":"\\mathbf{\\mathsf{\\textcolor{red}{\\mathit{x}}}}","text":"x","width":1,"height":1,"baseline":0,"styled":["0,0 bi red"]}, + {"source":"\\frac{1}{1+\\frac{1}{x}}","text":" 1\n─────────\n 1\n 1 + ───\n x","width":9,"height":5,"baseline":1,"styled":[]}, + {"source":"\\left[\\frac{-b \\pm \\sqrt{b^2-4ac}}{2a}\\right]","text":"⎡ ╭──────── ⎤\n⎢ -b ± ╰╯b² - 4ac ⎥\n⎢─────────────────⎥\n⎣ 2a ⎦","width":19,"height":4,"baseline":2,"styled":[]}, + {"source":"\\not\\rightarrow","text":"↛","width":1,"height":1,"baseline":0,"styled":[]}, + {"source":"x\\in[0,1]","text":"x ∈ [0,1]","width":9,"height":1,"baseline":0,"styled":[]}, + {"source":"[-1,1]","text":"[-1,1]","width":6,"height":1,"baseline":0,"styled":[]}, + {"source":"\\sqrt{x}","text":" ╭─\n╰╯x","width":3,"height":2,"baseline":1,"styled":[]}, + {"source":"\\sqrt{x}^{}","text":" ╭─\n╰╯x","width":3,"height":2,"baseline":1,"styled":[]}, + {"source":"\\sqrt{x}_{}","text":" ╭─\n╰╯x","width":3,"height":2,"baseline":1,"styled":[]}, + {"source":"\\sqrt{x}^{}_{}","text":" ╭─\n╰╯x","width":3,"height":2,"baseline":1,"styled":[]}, + {"source":"\\begin{pmatrix}a&b\\\\c&d\\end{pmatrix}","text":"⎛a b⎞\n⎜ ⎟\n⎝c d⎠","width":5,"height":3,"baseline":1,"styled":[]}, + {"source":"\\begin{pmatrix}a&b\\\\c&d\\end{pmatrix}^{}","text":"⎛a b⎞\n⎜ ⎟\n⎝c d⎠","width":5,"height":3,"baseline":1,"styled":[]}, + {"source":"\\begin{pmatrix}a&b\\\\c&d\\end{pmatrix}_{}","text":"⎛a b⎞\n⎜ ⎟\n⎝c d⎠","width":5,"height":3,"baseline":1,"styled":[]}, + {"source":"\\begin{pmatrix}a&b\\\\c&d\\end{pmatrix}^{}_{}","text":"⎛a b⎞\n⎜ ⎟\n⎝c d⎠","width":5,"height":3,"baseline":1,"styled":[]}, + {"source":"\\underbrace{abcd}","text":"abcd\n╰┬─╯","width":4,"height":2,"baseline":0,"styled":[]}, + {"source":"\\underbrace{abcd}^{}","text":"abcd\n╰┬─╯","width":4,"height":2,"baseline":0,"styled":[]}, + {"source":"\\underbrace{abcd}_{}","text":"abcd\n╰┬─╯","width":4,"height":2,"baseline":0,"styled":[]}, + {"source":"\\underbrace{abcd}^{}_{}","text":"abcd\n╰┬─╯","width":4,"height":2,"baseline":0,"styled":[]}, + {"source":"\\overbrace{abcd}","text":"╭┴─╮\nabcd","width":4,"height":2,"baseline":1,"styled":[]}, + {"source":"\\overbrace{abcd}^{}","text":"╭┴─╮\nabcd","width":4,"height":2,"baseline":1,"styled":[]}, + {"source":"\\overbrace{abcd}_{}","text":"╭┴─╮\nabcd","width":4,"height":2,"baseline":1,"styled":[]}, + {"source":"\\overbrace{abcd}^{}_{}","text":"╭┴─╮\nabcd","width":4,"height":2,"baseline":1,"styled":[]}, + {"source":"\\sum","text":"∑","width":1,"height":1,"baseline":0,"styled":[]}, + {"source":"\\sum^{}","text":"∑","width":1,"height":1,"baseline":0,"styled":[]}, + {"source":"\\sum_{}","text":"∑","width":1,"height":1,"baseline":0,"styled":[]}, + {"source":"\\sum^{}_{}","text":"∑","width":1,"height":1,"baseline":0,"styled":[]}, + {"source":"\\overbrace{abcd}^{n}","text":" n\n╭┴─╮\nabcd","width":4,"height":3,"baseline":2,"styled":[]}, + {"source":"\\underbrace{abcd}_{n}","text":"abcd\n╰┬─╯\n n","width":4,"height":3,"baseline":0,"styled":[]}, + {"source":"\\begin{pmatrix}a&b\\\\c&d\\end{pmatrix}^2","text":" 2\n⎛a b⎞\n⎜ ⎟\n⎝c d⎠","width":6,"height":4,"baseline":2,"styled":[]}, + {"source":"\\begin{cases}x & x>0\\\\x^2+1 & x\\le0\\end{cases}","text":"⎧x x > 0\n⎨\n⎩x² + 1 x ≤ 0","width":14,"height":3,"baseline":1,"styled":[]}, + {"source":"\\begin{array}{l|r}\\text{a}&\\text{wide}\\\\\\text{long}&\\text{b}\\end{array}","text":"a │ wide\n │\nlong │ b","width":11,"height":3,"baseline":1,"styled":[]}, + {"source":"\\begin{array}{|l||r|}\\text{a}&\\text{b}\\\\\\text{long}&\\text{c}\\end{array}","text":"│ a ││ b │\n│ ││ │\n│ long ││ c │","width":13,"height":3,"baseline":1,"styled":[]}, + {"source":"\\cfrac[l]{\\text{1}}{\\text{12345}}","text":" 1\n───────\n 12345","width":7,"height":3,"baseline":1,"styled":[]}, + {"source":"\\cfrac[r]{\\text{1}}{\\text{12345}}","text":" 1\n───────\n 12345","width":7,"height":3,"baseline":1,"styled":[]}, + {"source":"\\overbrace{a + b + c}^{n}","text":" n\n╭───┴───╮\na + b + c","width":9,"height":3,"baseline":2,"styled":[]}, + {"source":"\\underbrace{a + b + c}_{n}","text":"a + b + c\n╰───┬───╯\n n","width":9,"height":3,"baseline":0,"styled":[]}, + {"source":"\\sqrt[\\textcolor{blue}{\\frac{1}{2}}]{\\textcolor{red}{x}}","text":" 1\n───\n 2 ╭─\n ╰╯x","width":5,"height":4,"baseline":3,"styled":["1,0 blue","0,1 blue","1,1 blue","2,1 blue","1,2 blue","4,3 red"]}, + {"source":"\\sqrt[\\textcolor{blue}{\\sqrt{n}}]{\\textcolor{red}{x}}","text":" ╭─\n╰╯n╭─\n ╰╯x","width":5,"height":3,"baseline":2,"styled":["1,0 blue","2,0 blue","0,1 blue","1,1 blue","2,1 blue","4,2 red"]}, + {"source":"\\sqrt[\\textcolor{blue}{123456789}]{\\textcolor{red}{x}}","text":"123456789╭─\n ╰╯x","width":11,"height":2,"baseline":1,"styled":["0,0 blue","1,0 blue","2,0 blue","3,0 blue","4,0 blue","5,0 blue","6,0 blue","7,0 blue","8,0 blue","10,1 red"]}, + {"source":"\\sqrt[\\textcolor{blue}{\\frac{123456789}{\\frac{n}{m}}}]{\\textcolor{red}{x}}","text":" 123456789\n───────────\n n\n ───\n m ╭─\n ╰╯x","width":13,"height":6,"baseline":5,"styled":["1,0 blue","2,0 blue","3,0 blue","4,0 blue","5,0 blue","6,0 blue","7,0 blue","8,0 blue","9,0 blue","0,1 blue","1,1 blue","2,1 blue","3,1 blue","4,1 blue","5,1 blue","6,1 blue","7,1 blue","8,1 blue","9,1 blue","10,1 blue","5,2 blue","4,3 blue","5,3 blue","6,3 blue","5,4 blue","12,5 red"]}, + {"source":"\\sqrt[\\textcolor{blue}{3}]{\\textcolor{red}{\\frac{a}{b}}}","text":"3╭───\n │ a\n │───\n╰╯ b","width":5,"height":4,"baseline":2,"styled":["0,0 blue","3,1 red","2,2 red","3,2 red","4,2 red","3,3 red"]}, + {"source":"\\sqrt[\\textcolor{blue}{\\sqrt{\\frac{n}{m}}}]{\\textcolor{red}{\\sqrt{\\frac{a}{b}}}}","text":" ╭───\n │ n\n │───\n╰╯ m ╭─────\n │ ╭───\n │ │ a\n │ │───\n ╰╯╰╯ b","width":11,"height":8,"baseline":6,"styled":["1,0 blue","2,0 blue","3,0 blue","4,0 blue","1,1 blue","3,1 blue","1,2 blue","2,2 blue","3,2 blue","4,2 blue","0,3 blue","1,3 blue","3,3 blue","7,4 red","8,4 red","9,4 red","10,4 red","7,5 red","9,5 red","7,6 red","8,6 red","9,6 red","10,6 red","6,7 red","7,7 red","9,7 red"]}, + {"source":"\\sqrt[\\textcolor{blue}{\\text{\\u6B21}}]{\\textcolor{red}{\\text{\\u754C}}}","text":"\\u6B21╭──────\n ╰╯\\u754C","width":13,"height":2,"baseline":1,"styled":["0,0 blue","1,0 blue","2,0 blue","3,0 blue","4,0 blue","5,0 blue","7,1 red","8,1 red","9,1 red","10,1 red","11,1 red","12,1 red"]}, + {"source":"\\sqrt[\\textcolor{blue}{\\frac{1}{2}}]{\\textcolor{red}{}}","text":" 1\n───\n 2 ╭\n ╰╯","width":4,"height":4,"baseline":3,"styled":["1,0 blue","0,1 blue","1,1 blue","2,1 blue","1,2 blue"]}, + {"source":"\\sqrt{\\sqrt{\\sqrt{x}}}","text":" ╭─────\n │ ╭───\n │ │ ╭─\n╰╯╰╯╰╯x","width":7,"height":4,"baseline":3,"styled":[]}, + {"source":"\\sqrt{\\frac{a}{b}}","text":" ╭───\n │ a\n │───\n╰╯ b","width":5,"height":4,"baseline":2,"styled":[]}, + {"source":"\\sqrt[3]{x}","text":"3╭─\n╰╯x","width":3,"height":2,"baseline":1,"styled":[]}, + {"source":"\\sqrt[\\frac{1}{2}]{x}","text":" 1\n───\n 2 ╭─\n ╰╯x","width":5,"height":4,"baseline":3,"styled":[]}, + {"source":"\\sqrt[\\sqrt{n}]{x}","text":" ╭─\n╰╯n╭─\n ╰╯x","width":5,"height":3,"baseline":2,"styled":[]}, + {"source":"\\|v\\|","text":"║v║","width":3,"height":1,"baseline":0,"styled":[]}, + {"source":"\\left\\|v\\right\\|","text":"║v║","width":3,"height":1,"baseline":0,"styled":[]}, + {"source":"\\left|v\\right|","text":"│v│","width":3,"height":1,"baseline":0,"styled":[]}, + {"source":"\\left(A\\rightarrow B\\right)","text":"(A → B)","width":7,"height":1,"baseline":0,"styled":[]}, + {"source":"\\left\\lbrace x\\right\\rbrace","text":"{x}","width":3,"height":1,"baseline":0,"styled":[]}, + {"source":"\\operatorname{arg\\,max} x","text":"arg max x","width":9,"height":1,"baseline":0,"styled":[]}, + {"source":"\\textrm{if }x","text":"if x","width":4,"height":1,"baseline":0,"styled":[]}, + {"source":"\\displaylines{x=1\\\\y=2}","text":"x = 1\n\ny = 2","width":5,"height":3,"baseline":1,"styled":[]}, + {"source":"\\begin{aligned}&=x\\\\&=y\\end{aligned}","text":" = x\n\n = y","width":5,"height":3,"baseline":1,"styled":[]}, + {"source":"\\begin{aligned}{}&=x\\\\{}&=y\\end{aligned}","text":" = x\n\n = y","width":5,"height":3,"baseline":1,"styled":[]}, + {"source":"\\frac{x^2+1}{y_0}","text":" x² + 1\n────────\n y₀","width":8,"height":3,"baseline":1,"styled":[]}, + {"source":"\\begin{array}{cc}a & b \\\\ c & d\\end{array}","text":"a b\n\nc d","width":3,"height":3,"baseline":1,"styled":[]}, + {"source":"\\begin{align*}a &= b \\\\ c &= d\\end{align*}","text":"a = b\n\nc = d","width":6,"height":3,"baseline":1,"styled":[]}, + {"source":"\\left(\\left[A\\right]\\rightharpoonup B\\right)","text":"([A] ⇀ B)","width":9,"height":1,"baseline":0,"styled":[]}, + {"source":"\\left(A\\rightarrow B","error":true}, + {"source":"\\left(A\\rightward B\\right)","error":true}, + {"source":"\\begin{matrix}a&&\\\\&b&\\end{matrix}","text":"a\n\n b","width":4,"height":3,"baseline":1,"styled":[]}, + {"source":"\\begin{matrix}a\\\\\\end{matrix}","text":"a","width":1,"height":1,"baseline":0,"styled":[]}, + {"source":"\\begin{matrix}\\\\\\end{matrix}","text":"","width":0,"height":1,"baseline":0,"styled":[]}, + {"source":"\\displaylines{\\frac{1}{2}\\\\{y}}+z","text":" 1\n───\n 2 +z\n\n y","width":6,"height":5,"baseline":2,"styled":[]}, + {"source":"\\displaylines[l]{x\\\\y}","error":true}, + {"source":"\\displaylines{x\\\\y","error":true}, + {"source":"\\cfrac{1}{23}","text":" 1\n────\n 23","width":4,"height":3,"baseline":1,"styled":[]}, + {"source":"\\cfrac[]{1}{23}","text":" 1\n────\n 23","width":4,"height":3,"baseline":1,"styled":[]}, + {"source":"\\cfrac[l]{1}{23}","text":" 1\n────\n 23","width":4,"height":3,"baseline":1,"styled":[]}, + {"source":"\\cfrac[r]{1}{23}","text":" 1\n────\n 23","width":4,"height":3,"baseline":1,"styled":[]}, + {"source":"\\cfrac[c]{1}{23}","error":true}, + {"source":"\\cfrac[lr]{1}{23}","error":true}, + {"source":"\\cfrac[left]{1}{23}","error":true}, + {"source":"\\cfrac[l{1}{23}","error":true}, + {"source":"\\begin{array}{ | l || c r | }a&b&c\\end{array}","text":"│ a ││ b c │","width":12,"height":1,"baseline":0,"styled":[]}, + {"source":"\\begin{array}{}a\\end{array}","error":true}, + {"source":"\\begin{array}{||}a\\end{array}","error":true}, + {"source":"\\begin{array}{p{2cm}}a\\end{array}","error":true}, + {"source":"\\begin{array}{*{2}{c}}a\\end{array}","error":true}, + {"source":"\\begin{array}{c@{}c}a\\end{array}","error":true}, + {"source":"\\begin{array}{lXr}a\\end{array}","error":true}, + {"source":"\\begin{array}a&b\\end{array}","error":true}, + {"source":"\\overbrace{a+b}^{n}","text":" n\n╭─┴─╮\na + b","width":5,"height":3,"baseline":2,"styled":[]}, + {"source":"\\underbrace{x}_{k}","text":" x\n╰┬╯\n k","width":3,"height":3,"baseline":0,"styled":[]}, + {"source":"\\lbrace x\\rbrace","text":"{x}","width":3,"height":1,"baseline":0,"styled":[]}, + {"source":"\\left\\unknown x\\right)","error":true}, + {"source":"\\left(x\\right\\unknown","error":true}, + {"source":"\\big\\unknown","error":true}, + {"source":"\\left(x\\middle\\unknown y\\right)","error":true}, + {"source":"\\definitelyUnknown{x}","error":true}, + {"source":"\\text{left \\{ only}","text":"left { only","width":11,"height":1,"baseline":0,"styled":[]}, + {"source":"\\text{right \\} only}","text":"right } only","width":12,"height":1,"baseline":0,"styled":[]}, + {"source":"\\operatorname*{arg\\,max}_{x}","text":"arg max\n x","width":7,"height":2,"baseline":0,"styled":[]}, + {"source":"\\int\\limits_0^1","text":"1\n∫\n0","width":1,"height":3,"baseline":1,"styled":[]}, + {"source":"\\sum\\nolimits_{i=1}","text":"∑ᵢ₌₁","width":4,"height":1,"baseline":0,"styled":[]}, + {"source":"\\operatorname{arg\\,max}","text":"arg max","width":7,"height":1,"baseline":0,"styled":[]}, + {"source":"\\textrm{ if }","text":" if","width":4,"height":1,"baseline":0,"styled":[]}, + {"source":"\\begin{matrix}]","error":true}, + {"source":"\\begin{matrix}x}","error":true}, + {"source":"\\begin{matrix}&}","error":true}, + {"source":"{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{x}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}","error":true}, + {"source":"\\frac{1}{","error":true}, + {"source":"\\unsupported{x}","error":true}, + {"source":"\\cfrac[x]{1}{2}","error":true}, + {"source":"\\begin{array}{p{2cm}}x\\end{array}","error":true}, + {"source":"\\documentclass{article}\n\\begin{document}\nHello\n\\end{document}","error":true}, + {"source":"\\cfrac[l]{1}{12345}","text":" 1\n───────\n 12345","width":7,"height":3,"baseline":1,"styled":[]}, + {"source":"\\underbrace{a+b+c}_{n}","text":"a + b + c\n╰───┬───╯\n n","width":9,"height":3,"baseline":0,"styled":[]}, + {"source":"\\begin{array}{l|r}a&wide\\\\long&b\\end{array}","text":"a │ wide\n │\nlong │ b","width":11,"height":3,"baseline":1,"styled":[]}, + {"source":"\\begin{aligned}a&=b+c\\\\&=d\\end{aligned}","text":"a = b + c\n\n = d","width":10,"height":3,"baseline":1,"styled":[]}, + {"source":"\\frac{a_1+b_1}{c_1+d_1}","text":" a₁ + b₁\n─────────\n c₁ + d₁","width":9,"height":3,"baseline":1,"styled":[]}, + {"source":"\\frac{a_1+b_1}{c_1+d_1}+\\frac{a_","error":true}, + {"source":"\\frac{a_1+b_1}{c_1+d_1}+\\frac{a_2+b_2}{c_2+d_2}","text":" a₁ + b₁ a₂ + b₂\n───────── + ─────────\n c₁ + d₁ c₂ + d₂","width":21,"height":3,"baseline":1,"styled":[]}, + {"source":"x^2 + \\frac{1}{","error":true}, + {"source":"x^2 + \\unsupported{x}","error":true}, + {"source":"\\text{Start a very long formula with enough content to overflow Finish}","text":"Start a very long formula with enough content to overflow Finish","width":64,"height":1,"baseline":0,"styled":[]}, + {"source":"x=\\sqrt{\\frac{1}{2}}","text":" ╭───\n │ 1\nx = │───\n ╰╯ 2","width":9,"height":4,"baseline":2,"styled":[]}, + {"source":"\\text{\\u4E2D\\u6587}=x","text":"\\u4E2D\\u6587 = x","width":16,"height":1,"baseline":0,"styled":[]}, + {"source":"\\frac{\\text{\\u4E2D\\u6587}}{abcd}=x","text":" \\u4E2D\\u6587\n────────────── = x\n abcd","width":18,"height":3,"baseline":1,"styled":[]}, + {"source":"e^{i\\pi} + 1 = 0","text":" iπ\ne + 1 = 0","width":11,"height":2,"baseline":1,"styled":[]}, + {"source":"\\int_0^\\infty e^{-x^2}\\,dx = \\frac{\\sqrt{\\pi}}{2}","text":" ╭─\n ∞ -x² ╰╯π\n∫ e dx = ─────\n 0 2","width":17,"height":4,"baseline":2,"styled":[]}, + {"source":"\\lim_{x \\to 0} \\frac{\\sin x}{x} = 1","text":" sin x\n lim ─────── = 1\nx → 0 x","width":17,"height":3,"baseline":1,"styled":[]}, + {"source":"f(x) = \\sum_{n=0}^{\\infty} \\frac{f^{(n)}(a)}{n!}(x-a)^n","text":" ∞ f⁽ⁿ⁾(a)\nf(x) = ∑ ───────── (x - a)ⁿ\n n = 0 n!","width":31,"height":3,"baseline":1,"styled":[]}, + {"source":"\\nabla \\times \\vec{E} = -\\frac{\\partial \\vec{B}}{\\partial t}","text":" →\n → ∂B\n∇ × E = - ────\n ∂t","width":14,"height":4,"baseline":2,"styled":[]}, + {"source":"\\hat{x} + \\bar{y} + \\tilde{z} + \\dot{a} + \\ddot{b} + \\widehat{abc} + \\overline{xy} + \\underline{uv}","text":"^ ─ ~ · ¨ ⌢ ──\nx + y + z + a + b + abc + xy + uv\n ──","width":33,"height":3,"baseline":1,"styled":[]}, + {"source":"\\overset{\\text{def}}{=} \\underset{n}{\\max} \\stackrel{?}{=}","text":"def ?\n = max=\n n","width":7,"height":3,"baseline":1,"styled":[]}, + {"source":"\\begin{bmatrix}1 & 0 \\\\ 0 & 1\\end{bmatrix} \\begin{Bmatrix}a\\end{Bmatrix} \\begin{vmatrix}a & b \\\\ c & d\\end{vmatrix} \\begin{Vmatrix}x\\end{Vmatrix}","text":"⎡1 0⎤ │a b│\n⎢ ⎥ {a} │ │ ║x║\n⎣0 1⎦ │c d│","width":19,"height":3,"baseline":1,"styled":[]}, + {"source":"\\begin{gather}a = b \\\\ c = d\\end{gather} \\begin{smallmatrix}1&2\\end{smallmatrix}","text":"a = b\n 1 2\nc = d","width":9,"height":3,"baseline":1,"styled":[]}, + {"source":"\\left\\langle u, v \\right\\rangle \\left\\lfloor x \\right\\rfloor \\left\\lceil y \\right\\rceil","text":"⟨u,v⟩⌊x⌋⌈y⌉","width":11,"height":1,"baseline":0,"styled":[]}, + {"source":"\\left( \\frac{a}{b} \\right) \\left\\{ \\frac{a}{b} \\right\\} \\left. \\frac{a}{b} \\right|","text":"⎛ a ⎞⎧ a ⎫ a │\n⎜───⎟⎨───⎬───│\n⎝ b ⎠⎩ b ⎭ b │","width":14,"height":3,"baseline":1,"styled":[]}, + {"source":"\\alpha\\beta\\gamma\\Gamma\\epsilon\\varepsilon\\phi\\varphi \\infty \\partial \\forall \\exists \\emptyset","text":"αβγΓεϵϕφ∞∂∀∃∅","width":13,"height":1,"baseline":0,"styled":[]}, + {"source":"a \\le b \\ge c \\ne d \\approx e \\equiv f \\sim g \\subset h \\subseteq i \\in j \\notin k","text":"a ≤ b ≥ c ≠ d ≈ e ≡ f ∼ g ⊂ h ⊆ i ∈ j ∉ k","width":41,"height":1,"baseline":0,"styled":[]}, + {"source":"\\not= \\not\\in \\not\\equiv \\not<","text":"≠ ∉ ≢ ≮","width":7,"height":1,"baseline":0,"styled":[]}, + {"source":"A \\cup B \\cap C \\setminus D \\oplus E \\otimes F \\cdot G \\times H \\div I \\pm J \\mp K","text":"A ∪ B ∩ C ∖ D ⊕ E ⊗ F · G × H ÷ I ± J ∓ K","width":41,"height":1,"baseline":0,"styled":[]}, + {"source":"\\Rightarrow \\Leftarrow \\Leftrightarrow \\mapsto \\to \\gets \\longrightarrow","text":"⇒ ⇐ ⇔ ↦ → ← ⟶","width":13,"height":1,"baseline":0,"styled":[]}, + {"source":"\\cdots \\ldots \\vdots \\ddots , ; :","text":"⋯…⋮⋱,;:","width":7,"height":1,"baseline":0,"styled":[]}, + {"source":"\\sin x + \\cos y + \\tan z + \\log w + \\ln v + \\exp u + \\det A + \\gcd(a,b)","text":"sin x + cos y + tan z + log w + ln v + exp u + det A + gcd (a,b)","width":64,"height":1,"baseline":0,"styled":[]}, + {"source":"\\max_{x} f(x) \\min_{y} g(y) \\sup_n a_n \\inf_n b_n \\limsup_{n\\to\\infty} c_n","text":"max f(x) min g(y) supₙ aₙ infₙ bₙ limsup cₙ\n x y n → ∞","width":43,"height":2,"baseline":0,"styled":[]}, + {"source":"\\prod_{i=1}^n x_i \\coprod \\iint \\iiint \\oint \\bigcup_i A_i \\bigcap_j B_j","text":" n\n ∏ xᵢ ∐ ∬ ∭ ∮ ⋃ Aᵢ ⋂ Bⱼ\ni = 1 i j","width":26,"height":3,"baseline":1,"styled":[]}, + {"source":"\\mathrm{d}x \\mathbf{v} \\mathit{w} \\mathsf{S} \\mathtt{code1} \\mathbb{N}\\mathbb{Z}\\mathbb{Q}\\mathbb{C} \\mathcal{L} \\mathfrak{H}","text":"dxvw𝖲𝚌𝚘𝚍𝚎𝟷ℕℤℚℂℒℌ","width":16,"height":1,"baseline":0,"styled":["2,0 b","3,0 i"]}, + {"source":"a\\quad b\\qquad c\\,d\\;e\\:f\\!g~h\\enspace i","text":"a b cd e fg h i","width":19,"height":1,"baseline":0,"styled":[]}, + {"source":"\\text{if } x > 0 \\text{ and } y \\mbox{ or } z","text":"if x > 0 and y or z","width":19,"height":1,"baseline":0,"styled":[]}, + {"source":"\\color{red} x + y","text":"x + y","width":5,"height":1,"baseline":0,"styled":["0,0 red","2,0 red","4,0 red"]}, + {"source":"\\textcolor{blue}{\\frac{1}{2}}","text":" 1\n───\n 2","width":3,"height":3,"baseline":1,"styled":["1,0 blue","0,1 blue","1,1 blue","2,1 blue","1,2 blue"]}, + {"source":"\\displaystyle \\frac{a}{b} \\textstyle c \\scriptstyle d","text":" a\n ─── cd\n b","width":7,"height":3,"baseline":1,"styled":[]}, + {"source":"\\bigl( x \\bigr) \\Big[ y \\Big] \\bigg\\{ z \\bigg\\} \\Bigg| w \\Bigg|","text":"(x)[y]{z}│w│","width":12,"height":1,"baseline":0,"styled":[]}, + {"source":"\\pmod{7} a \\bmod b a \\mod c","text":" (mod 7)a mod ba mod c","width":22,"height":1,"baseline":0,"styled":[]}, + {"source":"\\dfrac{1}{2} \\tfrac{3}{4} \\dbinom{n}{2} \\tbinom{m}{3}","text":" 1 3 ⎛ n ⎞⎛ m ⎞\n─── ─── ⎜ ⎟⎜ ⎟\n 2 4 ⎝ 2 ⎠⎝ 3 ⎠","width":18,"height":3,"baseline":1,"styled":[]}, + {"source":"\\# \\$ \\% \\& \\_ \\{ \\} \\backslash","text":"#$%&_{}\\","width":8,"height":1,"baseline":0,"styled":[]}, + {"source":"x^{2^{3}} x_{i_{j}} x^{-1} x^{n+1} x_{ij} x^{(n)}","text":" 2³\nx x x⁻¹xⁿ⁺¹xᵢⱼx⁽ⁿ⁾\n iⱼ","width":20,"height":3,"baseline":1,"styled":[]}, + {"source":"f'(x) f''(x) x^\\prime","text":" ′\nf'(x)f''(x)x","width":13,"height":2,"baseline":1,"styled":[]}, + {"source":"% comment\nx + y % trailing\n= z","text":"x + y = z","width":9,"height":1,"baseline":0,"styled":[]}, + {"source":"\\begin{cases} 0 & \\text{if } x < 0 \\\\ \\frac{x}{2} & \\text{otherwise} \\end{cases}","text":"⎧0 if x < 0\n⎪\n⎨ x\n⎪─── otherwise\n⎩ 2","width":15,"height":5,"baseline":2,"styled":[]}, + {"source":"\\begin{pmatrix} \\frac{1}{2} & 0 \\\\ 0 & \\sqrt{2} \\end{pmatrix}","text":"⎛ 1 ⎞\n⎜─── 0 ⎟\n⎜ 2 ⎟\n⎜ ⎟\n⎜ ╭─⎟\n⎝ 0 ╰╯2⎠","width":9,"height":6,"baseline":3,"styled":[]}, + {"source":"\\begin{aligned} f(x) &= (x+1)^2 \\\\ &= x^2 + 2x + 1 \\end{aligned}","text":"f(x) = (x + 1)²\n\n = x² + 2x + 1","width":19,"height":3,"baseline":1,"styled":[]}, + {"source":"\\begin{align} a &= b & c &= d \\end{align}","text":"a = b c = d","width":14,"height":1,"baseline":0,"styled":[]}, + {"source":"\\sqrt[n]{x^n + y^n}","text":"n╭───────\n╰╯xⁿ + yⁿ","width":9,"height":2,"baseline":1,"styled":[]}, + {"source":"\\frac{\\partial^2 u}{\\partial t^2} = c^2 \\nabla^2 u","text":" ∂²u\n───── = c²∇²u\n ∂t²","width":13,"height":3,"baseline":1,"styled":[]}, + {"source":"\\begin{unknownenv}x\\end{unknownenv}","error":true}, + {"source":"\\begin{equation}x\\end{equation}","error":true}, + {"source":"x^","error":true}, + {"source":"x_","error":true}, + {"source":"\\frac{1}","error":true}, + {"source":"\\sqrt[3","error":true}, + {"source":"{x","error":true}, + {"source":"x}","error":true}, + {"source":"\\right)","error":true}, + {"source":"\\text{unterminated","error":true}, + {"source":"\\not","text":"","width":0,"height":1,"baseline":0,"styled":[]}, + {"source":"\\left","error":true}, + {"source":"- a","text":"-a","width":2,"height":1,"baseline":0,"styled":[]}, + {"source":"a -","text":"a-","width":2,"height":1,"baseline":0,"styled":[]}, + {"source":"(-a) + [-b] - \\{-c\\}","text":"(-a) + [-b] - { - c}","width":20,"height":1,"baseline":0,"styled":[]}, + {"source":"a = -b","text":"a = -b","width":6,"height":1,"baseline":0,"styled":[]}, + {"source":"\\vec{v} \\cdot \\vec{w}","text":"→ →\nv · w","width":5,"height":2,"baseline":1,"styled":[]}, + {"source":"\\overbrace{x+y}^{\\text{sum}} + \\underbrace{a \\cdot b}_{\\text{product}}","text":" sum\n╭─┴─╮\nx + y + a · b\n ╰─┬─╯\n product","width":15,"height":5,"baseline":2,"styled":[]}, + {"source":"\\binom{n}{k} = \\frac{n!}{k!(n-k)!}","text":"⎛ n ⎞ n!\n⎜ ⎟ = ────────────\n⎝ k ⎠ k!(n - k)!","width":20,"height":3,"baseline":1,"styled":[]}, + {"source":"\\left( \\sum_{k=1}^n a_k b_k \\right)^2 \\le \\left( \\sum_{k=1}^n a_k^2 \\right) \\left( \\sum_{k=1}^n b_k^2 \\right)","text":" 2\n⎛ n ⎞ ⎛ n ⎞⎛ n ⎞\n⎜ ∑ aₖbₖ⎟ ≤ ⎜ ∑ a²ₖ⎟⎜ ∑ b²ₖ⎟\n⎝k = 1 ⎠ ⎝k = 1 ⎠⎝k = 1 ⎠","width":38,"height":4,"baseline":2,"styled":[]}, + {"source":"","text":"","width":0,"height":1,"baseline":0,"styled":[]}, + {"source":" ","text":"","width":0,"height":1,"baseline":0,"styled":[]}, + {"source":"x\n\ny","text":"xy","width":2,"height":1,"baseline":0,"styled":[]}, + {"source":"x% ignored }\\unknown\ny","text":"xy","width":2,"height":1,"baseline":0,"styled":[]}, + {"source":"x% ignored\ry","text":"x","width":1,"height":1,"baseline":0,"styled":[]}, + {"source":"x% ignored at EOF","text":"x","width":1,"height":1,"baseline":0,"styled":[]}, + {"source":"\\frac% ignored\n{x}{y}","text":" x\n───\n y","width":3,"height":3,"baseline":1,"styled":[]}, + {"source":"\\begin{array}{l% ignored }\ncr}x&y&z\\end{array}","error":true}, + {"source":"\\textcolor{re% ignored\r\nd}{x}","text":"x","width":1,"height":1,"baseline":0,"styled":["0,0 re% ignored\r\nd"]}, + {"source":"\\textcolor{re% ignored\rd}{x}","text":"x","width":1,"height":1,"baseline":0,"styled":["0,0 re% ignored\rd"]}, + {"source":"\\begin{array}{l% ignored }\rcr}x&y&z\\end{array}","error":true}, + {"source":"x % comment\n+y","text":"x + y","width":5,"height":1,"baseline":0,"styled":[]}, + {"source":"\\begin{matrix}&=x\\\\&=y\\end{matrix}","text":" = x\n\n = y","width":4,"height":3,"baseline":1,"styled":[]}, + {"source":"\\begin{matrix}&&\\end{matrix}","text":"","width":2,"height":1,"baseline":0,"styled":[]}, + {"source":"\\begin{matrix}\\end{matrix}","text":"","width":0,"height":1,"baseline":0,"styled":[]}, + {"source":"\\begin{aligned}a&&\\\\&b&\\end{aligned}","text":"a\n\n b","width":6,"height":3,"baseline":1,"styled":[]}, + {"source":"\\begin{aligned}&&\\end{aligned}","text":"","width":4,"height":1,"baseline":0,"styled":[]}, + {"source":"\\begin{aligned}a\\\\\\end{aligned}","text":"a","width":1,"height":1,"baseline":0,"styled":[]}, + {"source":"\\begin{aligned}\\\\\\end{aligned}","text":"","width":0,"height":1,"baseline":0,"styled":[]}, + {"source":"\\begin{aligned}\\end{aligned}","text":"","width":0,"height":1,"baseline":0,"styled":[]}, + {"source":"\\begin{align*}a&&\\\\&b&\\end{align*}","text":"a\n\n b","width":6,"height":3,"baseline":1,"styled":[]}, + {"source":"\\begin{align*}&=x\\\\&=y\\end{align*}","text":" = x\n\n = y","width":5,"height":3,"baseline":1,"styled":[]}, + {"source":"\\begin{align*}&&\\end{align*}","text":"","width":4,"height":1,"baseline":0,"styled":[]}, + {"source":"\\begin{align*}a\\\\\\end{align*}","text":"a","width":1,"height":1,"baseline":0,"styled":[]}, + {"source":"\\begin{align*}\\\\\\end{align*}","text":"","width":0,"height":1,"baseline":0,"styled":[]}, + {"source":"\\begin{align*}\\end{align*}","text":"","width":0,"height":1,"baseline":0,"styled":[]}, + {"source":"\\begin{aligned}&\\begin{matrix}a&&b\\end{matrix}\\\\c&\\end{aligned}","text":" a b\n\nc","width":7,"height":3,"baseline":1,"styled":[]}, + {"source":"\\displaylines{a&\\\\&b}","text":"a\n\n b","width":3,"height":3,"baseline":1,"styled":[]}, + {"source":"\\mathrm{x}","text":"x","width":1,"height":1,"baseline":0,"styled":[]}, + {"source":"\\textrm{x}","text":"x","width":1,"height":1,"baseline":0,"styled":[]}, + {"source":"\\mathnormal{x}","text":"x","width":1,"height":1,"baseline":0,"styled":[]}, + {"source":"\\mathbf{x}","text":"x","width":1,"height":1,"baseline":0,"styled":["0,0 b"]}, + {"source":"\\boldsymbol{x}","text":"x","width":1,"height":1,"baseline":0,"styled":["0,0 b"]}, + {"source":"\\bm{x}","text":"x","width":1,"height":1,"baseline":0,"styled":["0,0 b"]}, + {"source":"\\mathit{x}","text":"x","width":1,"height":1,"baseline":0,"styled":["0,0 i"]}, + {"source":"\\mathsf{x}","text":"𝗑","width":1,"height":1,"baseline":0,"styled":[]}, + {"source":"\\mathtt{x}","text":"𝚡","width":1,"height":1,"baseline":0,"styled":[]}, + {"source":"\\mathbb{x}","text":"𝕩","width":1,"height":1,"baseline":0,"styled":[]}, + {"source":"\\mathcal{x}","text":"𝓍","width":1,"height":1,"baseline":0,"styled":[]}, + {"source":"\\mathscr{x}","text":"𝓍","width":1,"height":1,"baseline":0,"styled":[]}, + {"source":"\\mathfrak{x}","text":"𝔵","width":1,"height":1,"baseline":0,"styled":[]}, + {"source":"\\text{left \\{ right \\} \\% \\# \\$ \\& \\_ \\ }","text":"left { right } % # $ & _","width":26,"height":1,"baseline":0,"styled":[]}, + {"source":"\\text{a\\,b\\:c\\;d\\!e~f\\textbackslash!}","text":"a b c de f\\!","width":12,"height":1,"baseline":0,"styled":[]}, + {"source":"\\mbox{\\quad!\\qquad!\\enspace!\\thinspace!}","text":" ! ! ! !","width":12,"height":1,"baseline":0,"styled":[]}, + {"source":"\\text{100% raw\ntext}","text":"100% rawtext","width":12,"height":1,"baseline":0,"styled":[]}, + {"source":"\\text{\\unknown}","text":"\\unknown","width":8,"height":1,"baseline":0,"styled":[]}, + {"source":"a \\mod b","text":"a mod b","width":7,"height":1,"baseline":0,"styled":[]}, + {"source":"a \\bmod b","text":"a mod b","width":7,"height":1,"baseline":0,"styled":[]}, + {"source":"\\arccos_n","text":"arccosₙ","width":7,"height":1,"baseline":0,"styled":[]}, + {"source":"\\arcsin_n","text":"arcsinₙ","width":7,"height":1,"baseline":0,"styled":[]}, + {"source":"\\arctan_n","text":"arctanₙ","width":7,"height":1,"baseline":0,"styled":[]}, + {"source":"\\arg_n","text":"argₙ","width":4,"height":1,"baseline":0,"styled":[]}, + {"source":"\\cosh_n","text":"coshₙ","width":5,"height":1,"baseline":0,"styled":[]}, + {"source":"\\cot_n","text":"cotₙ","width":4,"height":1,"baseline":0,"styled":[]}, + {"source":"\\coth_n","text":"cothₙ","width":5,"height":1,"baseline":0,"styled":[]}, + {"source":"\\csc_n","text":"cscₙ","width":4,"height":1,"baseline":0,"styled":[]}, + {"source":"\\deg_n","text":"degₙ","width":4,"height":1,"baseline":0,"styled":[]}, + {"source":"\\dim_n","text":"dimₙ","width":4,"height":1,"baseline":0,"styled":[]}, + {"source":"\\hom_n","text":"homₙ","width":4,"height":1,"baseline":0,"styled":[]}, + {"source":"\\lg_n","text":"lgₙ","width":3,"height":1,"baseline":0,"styled":[]}, + {"source":"\\Pr_n","text":"Prₙ","width":3,"height":1,"baseline":0,"styled":[]}, + {"source":"\\sec_n","text":"secₙ","width":4,"height":1,"baseline":0,"styled":[]}, + {"source":"\\sinh_n","text":"sinhₙ","width":5,"height":1,"baseline":0,"styled":[]}, + {"source":"\\tanh_n","text":"tanhₙ","width":5,"height":1,"baseline":0,"styled":[]}, + {"source":"\\liminf_n","text":"liminf\n n","width":6,"height":2,"baseline":0,"styled":[]}, + {"source":"\\limsup_n","text":"limsup\n n","width":6,"height":2,"baseline":0,"styled":[]}, + {"source":"\\bigoplus_1^2","text":"2\n⨁\n1","width":1,"height":3,"baseline":1,"styled":[]}, + {"source":"\\bigotimes_1^2","text":"2\n⨂\n1","width":1,"height":3,"baseline":1,"styled":[]}, + {"source":"\\bigodot_1^2","text":"2\n⨀\n1","width":1,"height":3,"baseline":1,"styled":[]}, + {"source":"\\imath \\jmath \\beth \\daleth \\measuredangle \\lozenge \\nexists \\clubsuit \\uplus \\sqcup","text":"ıȷℶℸ∡◊∄♣⊎⊔","width":10,"height":1,"baseline":0,"styled":[]}, + {"source":"\\wr \\triangleleft \\equals \\asymp \\preceq \\sqsubseteq \\owns \\mid \\dashv \\smile","text":"≀◁ = ≍ ⪯ ⊑ ∋ ∣ ⊣ ⌣","width":18,"height":1,"baseline":0,"styled":[]}, + {"source":"\\hookrightarrow \\rightharpoonup \\rightleftharpoons \\Longrightarrow \\longmapsto \\Updownarrow \\nwarrow \\epsilon \\varepsilon \\degree","error":true}, + {"source":"\\not =","text":"≠","width":1,"height":1,"baseline":0,"styled":[]}, + {"source":"\\not <","text":"≮","width":1,"height":1,"baseline":0,"styled":[]}, + {"source":"\\not >","text":"≯","width":1,"height":1,"baseline":0,"styled":[]}, + {"source":"\\not \\leq","text":"≰","width":1,"height":1,"baseline":0,"styled":[]}, + {"source":"\\not \\geq","text":"≱","width":1,"height":1,"baseline":0,"styled":[]}, + {"source":"\\not \\in","text":"∉","width":1,"height":1,"baseline":0,"styled":[]}, + {"source":"\\not \\ni","text":"∌","width":1,"height":1,"baseline":0,"styled":[]}, + {"source":"\\not \\subset","text":"⊄","width":1,"height":1,"baseline":0,"styled":[]}, + {"source":"\\not \\supset","text":"⊅","width":1,"height":1,"baseline":0,"styled":[]}, + {"source":"\\not \\equiv","text":"≢","width":1,"height":1,"baseline":0,"styled":[]}, + {"source":"\\not \\approx","text":"≉","width":1,"height":1,"baseline":0,"styled":[]}, + {"source":"\\not \\sim","text":"≁","width":1,"height":1,"baseline":0,"styled":[]}, + {"source":"\\not \\subseteq","text":"⊈","width":1,"height":1,"baseline":0,"styled":[]}, + {"source":"\\not \\supseteq","text":"⊉","width":1,"height":1,"baseline":0,"styled":[]}, + {"source":"\\not \\mid","text":"∤","width":1,"height":1,"baseline":0,"styled":[]}, + {"source":"\\not \\parallel","text":"∦","width":1,"height":1,"baseline":0,"styled":[]}, + {"source":"\\not x","text":"x̸","width":1,"height":1,"baseline":0,"styled":[]}, + {"source":"\\left\\lvert x\\right\\rvert","text":"│x│","width":3,"height":1,"baseline":0,"styled":[]}, + {"source":"\\left\\lVert x\\right\\rVert","text":"║x║","width":3,"height":1,"baseline":0,"styled":[]}, + {"source":"\\lvert x \\rvert \\lVert y \\rVert","text":"│x│║y║","width":6,"height":1,"baseline":0,"styled":[]}, + {"source":"\\epsilon\\varepsilon\\phi\\varphi","text":"εϵϕφ","width":4,"height":1,"baseline":0,"styled":[]}, + {"source":"\\textcolor{red}{x}+y","text":"x + y","width":5,"height":1,"baseline":0,"styled":["0,0 red"]}, + {"source":"{\\color{red}xy}z","text":"xyz","width":3,"height":1,"baseline":0,"styled":["0,0 red","1,0 red"]}, + {"source":"\\begin{matrix}\\color{red}x&y\\\\z\\end{matrix}","error":true}, + {"source":"\\left(\\color{red}x\\right)","error":true}, + {"source":"\\sqrt[\\color{red}3]{x}","error":true}, + {"source":"x^{\\textcolor{blue}{q}}","text":" q\nx","width":2,"height":2,"baseline":1,"styled":["1,0 blue"]}, + {"source":"x^\\displaystyle2","text":"x2","width":2,"height":1,"baseline":0,"styled":[]}, + {"source":"\\sum\\displaystyle_1^2","text":"∑ ²₁","width":4,"height":1,"baseline":0,"styled":[]}, + {"source":"x^\\textstyle2","text":"x2","width":2,"height":1,"baseline":0,"styled":[]}, + {"source":"\\sum\\textstyle_1^2","text":"∑ ²₁","width":4,"height":1,"baseline":0,"styled":[]}, + {"source":"x^\\scriptstyle2","text":"x2","width":2,"height":1,"baseline":0,"styled":[]}, + {"source":"\\sum\\scriptstyle_1^2","text":"∑ ²₁","width":4,"height":1,"baseline":0,"styled":[]}, + {"source":"x^\\scriptscriptstyle2","text":"x2","width":2,"height":1,"baseline":0,"styled":[]}, + {"source":"\\sum\\scriptscriptstyle_1^2","text":"∑ ²₁","width":4,"height":1,"baseline":0,"styled":[]}, + {"source":"a\\not\\mathbf{=}b","text":"a¬=b","width":4,"height":1,"baseline":0,"styled":["2,0 b"]}, + {"source":"x\\not\\mathrm{\\in}S","text":"x¬∈S","width":4,"height":1,"baseline":0,"styled":[]}, + {"source":"\\not\\textcolor{red}{\\mathit{\\subseteq}}","text":"¬⊆","width":2,"height":1,"baseline":0,"styled":["1,0 i red"]}, + {"source":"\\mathbf{x}̅","text":"x","width":1,"height":1,"baseline":0,"styled":["0,0 b"]}, + {"source":"\\mathrm{x}⃗","text":"x⃗","width":2,"height":1,"baseline":0,"styled":[]}, + {"source":"\\textcolor{red}{\\mathit{x}}̅","text":"x","width":1,"height":1,"baseline":0,"styled":["0,0 i red"]}, + {"source":"\\mathbb{R}+\\mathcal{F}","text":"ℝ + ℱ","width":5,"height":1,"baseline":0,"styled":[]}, + {"source":"\\arctan x","text":"arctan x","width":8,"height":1,"baseline":0,"styled":[]}, + {"source":"x\\pmod{n}","text":"x (mod n)","width":9,"height":1,"baseline":0,"styled":[]}, + {"source":"\\mathrm{d}\\mathbf{x}+\\alpha","text":"dx + α","width":6,"height":1,"baseline":0,"styled":["1,0 b"]}, + {"source":"\\hat{x}+\\overline{yz}","text":"^ ──\nx + yz","width":6,"height":2,"baseline":1,"styled":[]}, + {"source":"\\mathbf{x+\\mathit{y}}+\\textcolor{red}{z}","text":"x + y + z","width":9,"height":1,"baseline":0,"styled":["0,0 b","2,0 b","4,0 bi","8,0 red"]}, + {"source":"\\mathsf{\\mathrm{x}}","text":"x","width":1,"height":1,"baseline":0,"styled":[]}, + {"source":"\\textcolor{red}{\\mathbf{a\\mathit{b}\\textcolor{blue}{c}}}d\\textcolor{red}{e}","text":"abcde","width":5,"height":1,"baseline":0,"styled":["0,0 b red","1,0 bi red","2,0 b blue","4,0 red"]}, + {"source":"\\mathbb{\\text{CHNPQRZaz09α+}}","text":"ℂℍℕℙℚℝℤ𝕒𝕫𝟘𝟡α+","width":13,"height":1,"baseline":0,"styled":[]}, + {"source":"\\mathcal{\\text{BEFHILMRegoAz9α+}}","text":"ℬℰℱℋℐℒℳℛℯℊℴ𝒜𝓏9α+","width":16,"height":1,"baseline":0,"styled":[]}, + {"source":"\\mathfrak{\\text{CHIRZaz9α+}}","text":"ℭℌℑℜℨ𝔞𝔷9α+","width":10,"height":1,"baseline":0,"styled":[]}, + {"source":"\\mathsf{\\text{AZaz09α+}}","text":"𝖠𝖹𝖺𝗓𝟢𝟫α+","width":8,"height":1,"baseline":0,"styled":[]}, + {"source":"\\mathtt{\\text{AZaz09α+}}","text":"𝙰𝚉𝚊𝚣𝟶𝟿α+","width":8,"height":1,"baseline":0,"styled":[]}, + {"source":"\\mathrm{\\text{AZaz09α+}}","text":"AZaz09α+","width":8,"height":1,"baseline":0,"styled":[]}, + {"source":"\\textcolor{red}{\\mathbf{\\frac{1}{2}}}","text":" 1\n───\n 2","width":3,"height":3,"baseline":1,"styled":["1,0 b red","0,1 b red","1,1 b red","2,1 b red","1,2 b red"]}, + {"source":"\\sqrt[3]{\\frac{1}{2}}","text":"3╭───\n │ 1\n │───\n╰╯ 2","width":5,"height":4,"baseline":2,"styled":[]}, + {"source":"\\textcolor{red}{\\mathbf{\\sqrt[3]{\\frac{1}{2}}}}","text":"3╭───\n │ 1\n │───\n╰╯ 2","width":5,"height":4,"baseline":2,"styled":["0,0 b red","1,0 b red","2,0 b red","3,0 b red","4,0 b red","1,1 b red","3,1 b red","1,2 b red","2,2 b red","3,2 b red","4,2 b red","0,3 b red","1,3 b red","3,3 b red"]}, + {"source":"\\left[̅\\frac{1}{2}\\right]̅","text":"⎡ 1 ⎤\n⎢ ───⎥\n⎣ 2 ⎦","width":6,"height":3,"baseline":1,"styled":[]}, + {"source":"\\textcolor{red}{\\mathbf{\\left[̅\\frac{1}{2}\\right]̅}}","text":"⎡ 1 ⎤\n⎢ ───⎥\n⎣ 2 ⎦","width":6,"height":3,"baseline":1,"styled":["0,0 b red","3,0 b red","5,0 b red","0,1 b red","2,1 b red","3,1 b red","4,1 b red","5,1 b red","0,2 b red","3,2 b red","5,2 b red"]}, + {"source":"\\begin{array}{|l||r|}x&\\frac{1}{2}\\end{array}","text":"│ ││ 1 │\n│ x ││ ─── │\n│ ││ 2 │","width":12,"height":3,"baseline":1,"styled":[]}, + {"source":"\\textcolor{red}{\\mathbf{\\begin{array}{|l||r|}x&\\frac{1}{2}\\end{array}}}","text":"│ ││ 1 │\n│ x ││ ─── │\n│ ││ 2 │","width":12,"height":3,"baseline":1,"styled":["0,0 b red","4,0 b red","5,0 b red","8,0 b red","11,0 b red","0,1 b red","2,1 b red","4,1 b red","5,1 b red","7,1 b red","8,1 b red","9,1 b red","11,1 b red","0,2 b red","4,2 b red","5,2 b red","8,2 b red","11,2 b red"]}, + {"source":"\\begin{cases}x\\\\y\\end{cases}","text":"⎧x\n⎨\n⎩y","width":2,"height":3,"baseline":1,"styled":[]}, + {"source":"\\textcolor{red}{\\mathbf{\\begin{cases}x\\\\y\\end{cases}}}","text":"⎧x\n⎨\n⎩y","width":2,"height":3,"baseline":1,"styled":["0,0 b red","1,0 b red","0,1 b red","0,2 b red","1,2 b red"]}, + {"source":"\\textcolor{red}{\\mathbf{\\overbrace{abcd}}}","text":"╭┴─╮\nabcd","width":4,"height":2,"baseline":1,"styled":["0,0 b red","1,0 b red","2,0 b red","3,0 b red","0,1 b red","1,1 b red","2,1 b red","3,1 b red"]}, + {"source":"\\hat{x}","text":"^\nx","width":1,"height":2,"baseline":1,"styled":[]}, + {"source":"\\textcolor{red}{\\mathbf{\\hat{x}}}","text":"^\nx","width":1,"height":2,"baseline":1,"styled":["0,0 b red","0,1 b red"]}, + {"source":"\\underline{x}","text":"x\n─","width":1,"height":2,"baseline":0,"styled":[]}, + {"source":"\\textcolor{red}{\\mathbf{\\underline{x}}}","text":"x\n─","width":1,"height":2,"baseline":0,"styled":["0,0 b red","0,1 b red"]}, + {"source":"x^2_i","text":"x²ᵢ","width":3,"height":1,"baseline":0,"styled":[]}, + {"source":"\\textcolor{red}{\\mathbf{x^2_i}}","text":"x²ᵢ","width":3,"height":1,"baseline":0,"styled":["0,0 b red","1,0 b red","2,0 b red"]}, + {"source":"\\frac{1}{2}^q","text":" q\n 1\n───\n 2","width":4,"height":4,"baseline":2,"styled":[]}, + {"source":"\\textcolor{red}{\\mathbf{\\frac{1}{2}^q}}","text":" q\n 1\n───\n 2","width":4,"height":4,"baseline":2,"styled":["3,0 b red","1,1 b red","0,2 b red","1,2 b red","2,2 b red","1,3 b red"]}, + {"source":"\\overset{n}{\\underset{m}{x}}","text":"n\nx\nm","width":1,"height":3,"baseline":1,"styled":[]}, + {"source":"\\textcolor{red}{\\mathbf{\\overset{n}{\\underset{m}{x}}}}","text":"n\nx\nm","width":1,"height":3,"baseline":1,"styled":["0,0 b red","0,1 b red","0,2 b red"]}, + {"source":"؀{x}","text":"؀x","width":2,"height":1,"baseline":0,"styled":[]}, + {"source":"؀ {x}","text":"؀x","width":2,"height":1,"baseline":0,"styled":[]}, + {"source":"؀^2","text":"؀²","width":2,"height":1,"baseline":0,"styled":[]}, + {"source":"؀ ^2","text":"؀²","width":2,"height":1,"baseline":0,"styled":[]}, + {"source":"؀_2","text":"؀₂","width":2,"height":1,"baseline":0,"styled":[]}, + {"source":"؀ _2","text":"؀₂","width":2,"height":1,"baseline":0,"styled":[]}, + {"source":"؀\\alpha","text":"؀α","width":2,"height":1,"baseline":0,"styled":[]}, + {"source":"؀ \\alpha","text":"؀α","width":2,"height":1,"baseline":0,"styled":[]}, + {"source":"؀~x","text":"؀ x","width":3,"height":1,"baseline":0,"styled":[]}, + {"source":"؀ ~x","text":"؀ x","width":3,"height":1,"baseline":0,"styled":[]}, + {"source":"؀% ignored\nx","text":"؀x","width":2,"height":1,"baseline":0,"styled":[]}, + {"source":"؀ % ignored\nx","text":"؀x","width":2,"height":1,"baseline":0,"styled":[]}, + {"source":"\\begin{matrix}؀&&x\\end{matrix}","text":"؀ x","width":4,"height":1,"baseline":0,"styled":[]}, + {"source":"a≠b","text":"a = b","width":5,"height":1,"baseline":0,"styled":[]}, + {"source":"x̅+y","text":"x + y","width":5,"height":1,"baseline":0,"styled":[]}, + {"source":"x̅^2","text":"x²","width":2,"height":1,"baseline":0,"styled":[]}, + {"source":"\\frac x̅y","text":" x\n─── y\n","width":5,"height":3,"baseline":1,"styled":[]}, + {"source":"👩‍🔬^2+🇩🇰","text":"👩‍🔬² + 🇩🇰","width":13,"height":1,"baseline":0,"styled":[]}, + {"source":"[̅x]̅","text":"[x]","width":3,"height":1,"baseline":0,"styled":[]}, + {"source":"\\big[̅x\\big]̅","text":"[x]","width":3,"height":1,"baseline":0,"styled":[]}, + {"source":"\\left[̅x\\right]̅","text":"[x]","width":3,"height":1,"baseline":0,"styled":[]}, + {"source":"\\left\\langle̅x\\right\\rangle̅","text":"⟨x⟩","width":3,"height":1,"baseline":0,"styled":[]}, + {"source":"\\%̅x","text":"%x","width":2,"height":1,"baseline":0,"styled":[]}, + {"source":"\\{̅x\\}̅","text":"{x}","width":3,"height":1,"baseline":0,"styled":[]}, + {"source":"\\alpha̅́\\beta","text":"αβ","width":2,"height":1,"baseline":0,"styled":[]}, + {"source":"\\alpha𝅧^2","text":"α𝅧²","width":4,"height":1,"baseline":0,"styled":[]}, + {"source":"\\#️⃣^2","text":"#⃣²","width":3,"height":1,"baseline":0,"styled":[]}, + {"source":"{\\alpha̅}^2_1","text":"α²₁","width":3,"height":1,"baseline":0,"styled":[]}, + {"source":"\\frac\\alpha̅x","text":" α\n─── x\n","width":5,"height":3,"baseline":1,"styled":[]}, + {"source":"x^\\alpha̅y","text":" α\nx y","width":3,"height":2,"baseline":1,"styled":[]}, + {"source":"\\sum̅\\limits_1^2","text":"∑ ²₁","width":4,"height":1,"baseline":0,"styled":[]}, + {"source":"\\left.̅x\\right.̅","text":"x","width":1,"height":1,"baseline":0,"styled":[]}, + {"source":"\\left\\{̅\\frac{1}{2}\\right\\}̅","text":"⎧ 1 ⎫\n⎨ ───⎬\n⎩ 2 ⎭","width":6,"height":3,"baseline":1,"styled":[]}, + {"source":"\\|x\\|","text":"║x║","width":3,"height":1,"baseline":0,"styled":[]}, + {"source":"|x|","text":"|x|","width":3,"height":1,"baseline":0,"styled":[]}, + {"source":"\\left.x\\right\\|","text":"x║","width":2,"height":1,"baseline":0,"styled":[]}, + {"source":"\\left\\.x\\right\\.","text":"x","width":1,"height":1,"baseline":0,"styled":[]}, + {"source":"x\\.","text":"x","width":1,"height":1,"baseline":0,"styled":[]}, + {"source":"\\unknown","error":true}, + {"source":"\\constructor","error":true}, + {"source":"\\toString","error":true}, + {"source":"a}b","error":true}, + {"source":"\\frac}","error":true}, + {"source":"\\not}","text":"}̸","width":1,"height":1,"baseline":0,"styled":[]}, + {"source":"\\end{matrix}","error":true}, + {"source":"\\begin{unknown}x","error":true}, + {"source":"\\begin{matrix}1\\end{pmatrix}","error":true}, + {"source":"\\begin{array}x","error":true}, + {"source":"\\begin{array}{}x","error":true}, + {"source":"\\begin{array}{||}x","error":true}, + {"source":"\\begin{array}{p{2cm}}x","error":true}, + {"source":"\\begin{array}{*{2}{c}}x","error":true}, + {"source":"\\begin{array}{c@{}c}x","error":true}, + {"source":"\\begin{array}{lXr}x","error":true}, + {"source":"\\cfrac[c]12","error":true}, + {"source":"\\cfrac[lr]12","error":true}, + {"source":"\\cfrac[l{1}{2}","error":true}, + {"source":"\\cfrac[l\n","error":true}, + {"source":"\\begin{array}{% comment\n}","error":true}, + {"source":"\\displaylines[l]{x}","error":true}, + {"source":"\\left(x\\right}","text":"(x}","width":3,"height":1,"baseline":0,"styled":[]}, + {"source":"\\frac","error":true}, + {"source":"x^\\displaystyle","text":"x","width":1,"height":1,"baseline":0,"styled":[]}, + {"source":"\\left(x","error":true}, + {"source":"\\left(x\\right","error":true}, + {"source":"\\left(x\\rightfoo","error":true}, + {"source":"\\overbrace{","error":true}, + {"source":"\\mathbb","error":true}, + {"source":"\\textcolor{red}{","error":true}, + {"source":"\\displaylines{a\\\\b","error":true}, + {"source":"\\begin{matrix}1&&","error":true}, + {"source":"\\cfrac[","error":true}, + {"source":"{ab","error":true}, + {"source":"\\left[̅x","error":true}, + {"source":"\\sqrt[\\frac{1}{2}","error":true}, + {"source":"\\frac{1}{12345}","text":" 1\n───────\n 12345","width":7,"height":3,"baseline":1,"styled":[]}, + {"source":"\\underbrace{x}","text":" x\n╰┬╯","width":3,"height":2,"baseline":0,"styled":[]}, + {"source":"\\overbrace{x}","text":"╭┴╮\n x","width":3,"height":2,"baseline":1,"styled":[]}, + {"source":"\\begin{array}{ | l || r | }a&b\\\\\\frac{1}{2}&cc\\end{array}","text":"│ a ││ b │\n│ ││ │\n│ 1 ││ │\n│ ─── ││ cc │\n│ 2 ││ │","width":13,"height":5,"baseline":2,"styled":[]}, + {"source":"\\begin{array}{lcr}a&b&c\\\\long&wide&last\\end{array}","text":"a b c\n\nlong wide last","width":14,"height":3,"baseline":1,"styled":[]}, + {"source":"\\frac{1}{2}^2_1","text":" 2\n 1\n───\n 2\n 1","width":4,"height":5,"baseline":2,"styled":[]}, + {"source":"\\begin{aligned}x &= 1 \\\\ yy &= 2\\end{aligned}","text":" x = 1\n\nyy = 2","width":7,"height":3,"baseline":1,"styled":[]}, + {"source":"\\cfrac[r]{1}{12345}","text":" 1\n───────\n 12345","width":7,"height":3,"baseline":1,"styled":[]}, + {"source":"\\begin{pmatrix}a & b \\\\ cc & d\\end{pmatrix}","text":"⎛a b⎞\n⎜ ⎟\n⎝cc d⎠","width":6,"height":3,"baseline":1,"styled":[]}, + {"source":"\\begin{cases}x & x \\ge 0 \\\\ -x & x < 0\\end{cases}","text":"⎧x x ≥ 0\n⎨\n⎩-x x < 0","width":10,"height":3,"baseline":1,"styled":[]}, + {"source":"\\begin{aligned}A &= \\begin{pmatrix}a & b \\\\ c & d\\end{pmatrix} \\\\ z &= 1\\end{aligned}","text":" ⎛a b⎞\nA = ⎜ ⎟\n ⎝c d⎠\n\nz = 1","width":10,"height":5,"baseline":2,"styled":[]}, + {"source":"\\sum\\limits_1^2","text":"2\n∑\n1","width":1,"height":3,"baseline":1,"styled":[]}, + {"source":"\\sum\\nolimits_1^2","text":"∑²₁","width":3,"height":1,"baseline":0,"styled":[]}, + {"source":"\\int\\limits_1^2","text":"2\n∫\n1","width":1,"height":3,"baseline":1,"styled":[]}, + {"source":"\\sum^2\\nolimits_1","text":"∑²₁","width":3,"height":1,"baseline":0,"styled":[]}, + {"source":"\\sum\\limits\\nolimits_1^2","text":"∑²₁","width":3,"height":1,"baseline":0,"styled":[]}, + {"source":"\\sum\\nolimits\\limits_1^2","text":"2\n∑\n1","width":1,"height":3,"baseline":1,"styled":[]}, + {"source":"\\mathbf{\\sum}\\limits_1^2","text":"∑²₁","width":3,"height":1,"baseline":0,"styled":["0,0 b"]}, + {"source":"\\textcolor{red}{\\sum}\\nolimits_1^2","text":"∑²₁","width":3,"height":1,"baseline":0,"styled":["0,0 red"]}, + {"source":"\\mathbf{\\sin}x","text":"sinx","width":4,"height":1,"baseline":0,"styled":["0,0 b","1,0 b","2,0 b"]}, + {"source":"\\mathbf{\\underbrace{abcd}}_{n}","text":"abcd\n╰┬─╯\n n","width":5,"height":3,"baseline":0,"styled":["0,0 b","1,0 b","2,0 b","3,0 b","0,1 b","1,1 b","2,1 b","3,1 b"]}, + {"source":"\\mathbf{\\sum_1^2}\\nolimits","text":"2\n∑\n1","width":1,"height":3,"baseline":1,"styled":["0,0 b","0,1 b","0,2 b"]}, + {"source":"\\textcolor{red}{\\mathbf{\\sum_1^2}}\\limits","text":"2\n∑\n1","width":1,"height":3,"baseline":1,"styled":["0,0 b red","0,1 b red","0,2 b red"]}, + {"source":"\\mathbf{\\sum_1}\\limits^2","text":" 2\n∑\n1","width":2,"height":3,"baseline":1,"styled":["0,1 b","0,2 b"]}, + {"source":"\\mathbf{\\sum^2}\\limits_1","text":"2\n∑\n 1","width":2,"height":3,"baseline":1,"styled":["0,0 b","0,1 b"]}, + {"source":"\\textcolor{red}{\\sum_1}\\limits^2","text":" 2\n∑\n1","width":2,"height":3,"baseline":1,"styled":["0,1 red","0,2 red"]}, + {"source":"\\mathbf{\\sum}_1^2","text":"∑²₁","width":3,"height":1,"baseline":0,"styled":["0,0 b"]}, + {"source":"\\sum_1^2","text":"2\n∑\n1","width":1,"height":3,"baseline":1,"styled":[]}, + {"source":"\\int_1^2","text":"∫²₁","width":3,"height":1,"baseline":0,"styled":[]}, + {"source":"\\operatorname{arg\\,max}_x","text":"arg maxₓ","width":8,"height":1,"baseline":0,"styled":[]}, + {"source":"\\operatorname*{arg\\,max}_x","text":"arg max\n x","width":7,"height":2,"baseline":0,"styled":[]}, + {"source":"x_i^2","options":{"compactScripts":false},"text":" 2\nx\n i","width":2,"height":3,"baseline":1,"styled":[]}, + {"source":"\\sum_1^n","options":{"displayMode":false},"text":"∑ⁿ₁","width":3,"height":1,"baseline":0,"styled":[]}, + {"source":"\\sum_1^n","options":{"compactScripts":false},"text":"n\n∑\n1","width":1,"height":3,"baseline":1,"styled":[]}, + {"source":"\\lim_{x\\to0} f","options":{"displayMode":false},"text":"lim f\n x → 0","width":10,"height":2,"baseline":0,"styled":[]}, + {"source":"\\sum\\limits_1^2","options":{"displayMode":false},"text":"∑²₁","width":3,"height":1,"baseline":0,"styled":[]}, + {"source":"\\sum\\nolimits_1^2","options":{"displayMode":false},"text":"∑²₁","width":3,"height":1,"baseline":0,"styled":[]}, + {"source":"\\int\\limits_1^2","options":{"displayMode":false},"text":"∫²₁","width":3,"height":1,"baseline":0,"styled":[]}, + {"source":"\\sum^2\\nolimits_1","options":{"displayMode":false},"text":"∑²₁","width":3,"height":1,"baseline":0,"styled":[]}, + {"source":"\\sum\\limits\\nolimits_1^2","options":{"displayMode":false},"text":"∑²₁","width":3,"height":1,"baseline":0,"styled":[]}, + {"source":"\\sum\\nolimits\\limits_1^2","options":{"displayMode":false},"text":"∑²₁","width":3,"height":1,"baseline":0,"styled":[]}, + {"source":"\\mathbf{\\sum}\\limits_1^2","options":{"displayMode":false},"text":"∑²₁","width":3,"height":1,"baseline":0,"styled":["0,0 b"]}, + {"source":"\\textcolor{red}{\\sum}\\nolimits_1^2","options":{"displayMode":false},"text":"∑²₁","width":3,"height":1,"baseline":0,"styled":["0,0 red"]}, + {"source":"\\mathbf{\\sin}x","options":{"displayMode":false},"text":"sinx","width":4,"height":1,"baseline":0,"styled":["0,0 b","1,0 b","2,0 b"]}, + {"source":"\\mathbf{\\underbrace{abcd}}_{n}","options":{"displayMode":false},"text":"abcd\n╰┬─╯\n n","width":5,"height":3,"baseline":0,"styled":["0,0 b","1,0 b","2,0 b","3,0 b","0,1 b","1,1 b","2,1 b","3,1 b"]}, + {"source":"\\mathbf{\\sum_1^2}\\nolimits","options":{"displayMode":false},"text":"∑²₁","width":3,"height":1,"baseline":0,"styled":["0,0 b","1,0 b","2,0 b"]}, + {"source":"\\textcolor{red}{\\mathbf{\\sum_1^2}}\\limits","options":{"displayMode":false},"text":"∑²₁","width":3,"height":1,"baseline":0,"styled":["0,0 b red","1,0 b red","2,0 b red"]}, + {"source":"\\mathbf{\\sum_1}\\limits^2","options":{"displayMode":false},"text":"∑₁²","width":3,"height":1,"baseline":0,"styled":["0,0 b","1,0 b"]}, + {"source":"\\mathbf{\\sum^2}\\limits_1","options":{"displayMode":false},"text":"∑²₁","width":3,"height":1,"baseline":0,"styled":["0,0 b","1,0 b"]}, + {"source":"\\textcolor{red}{\\sum_1}\\limits^2","options":{"displayMode":false},"text":"∑₁²","width":3,"height":1,"baseline":0,"styled":["0,0 red","1,0 red"]}, + {"source":"x^\\displaystyle2","options":{"displayMode":false},"text":"x2","width":2,"height":1,"baseline":0,"styled":[]}, + {"source":"\\mathbf{\\sum}_1^2","options":{"displayMode":false},"text":"∑²₁","width":3,"height":1,"baseline":0,"styled":["0,0 b"]}, + {"source":"\\sum_1^2","options":{"displayMode":false},"text":"∑²₁","width":3,"height":1,"baseline":0,"styled":[]}, + {"source":"\\int_1^2","options":{"displayMode":false},"text":"∫²₁","width":3,"height":1,"baseline":0,"styled":[]}, + {"source":"\\operatorname{arg\\,max}_x","options":{"displayMode":false},"text":"arg maxₓ","width":8,"height":1,"baseline":0,"styled":[]}, + {"source":"\\operatorname*{arg\\,max}_x","options":{"displayMode":false},"text":"arg maxₓ","width":8,"height":1,"baseline":0,"styled":[]}, + {"source":"\\sqrt{x^2+y^2}","options":{"displayMode":false},"text":" ╭───────\n╰╯x² + y²","width":9,"height":2,"baseline":1,"styled":[]}, + {"source":"\\sqrt[3]{x}","options":{"displayMode":false},"text":"3╭─\n╰╯x","width":3,"height":2,"baseline":1,"styled":[]}, + {"source":"\\sqrt[\\frac{1}{2}]{x}","options":{"displayMode":false},"text":" 1\n───\n 2 ╭─\n ╰╯x","width":5,"height":4,"baseline":3,"styled":[]}, + {"source":"\\sqrt[a_b]{x}","options":{"displayMode":false},"text":"a\n b╭─\n ╰╯x","width":4,"height":3,"baseline":2,"styled":[]}, + {"source":"\\sqrt[界]{x}","options":{"displayMode":false},"text":"界╭─\n ╰╯x","width":4,"height":2,"baseline":1,"styled":[]}, + {"source":"\\sqrt[\\frac{1}{2}]{\\frac{x}{y}}","options":{"displayMode":false},"text":" 1\n───\n 2 ╭───\n │ x\n │───\n ╰╯ y","width":7,"height":6,"baseline":4,"styled":[]}, + {"source":"\\unknown","options":{"strict":false},"text":"\\unknown","width":8,"height":1,"baseline":0,"styled":[]}, + {"source":"\\constructor","options":{"strict":false},"error":true}, + {"source":"\\toString","options":{"strict":false},"error":true}, + {"source":"\\left\\unknown x\\right)","options":{"strict":false},"text":"\\unknownx)","width":10,"height":1,"baseline":0,"styled":[]}, + {"source":"\\left(x\\right\\unknown","options":{"strict":false},"text":"(x\\unknown","width":10,"height":1,"baseline":0,"styled":[]}, + {"source":"\\big\\unknown","options":{"strict":false},"text":"\\unknown","width":8,"height":1,"baseline":0,"styled":[]}, + {"source":"\\left(x\\middle\\unknown y\\right)","options":{"strict":false},"text":"(x\\unknowny)","width":12,"height":1,"baseline":0,"styled":[]}, + {"source":"\\left ax\\right)","options":{"strict":false},"text":"ax)","width":3,"height":1,"baseline":0,"styled":[]}, + {"source":"\\unknown{x}","options":{"strict":false},"text":"\\unknownx","width":9,"height":1,"baseline":0,"styled":[]}, + {"source":"\\left🐱x\\right🐶","options":{"strict":false},"text":"🐱x🐶","width":5,"height":1,"baseline":0,"styled":[]}, + {"source":"\\left#️⃣\\frac{1}{2}\\right#️⃣","options":{"strict":false},"text":"# 1 #\n#⃣ ───#⃣\n# 2 #","width":8,"height":3,"baseline":1,"styled":[]}, + {"source":"\\left(x\\rightfoo","options":{"strict":false},"error":true} +] diff --git a/packages/cli-rs/parity/fixtures/P.2/mermaid-opens.app.json b/packages/cli-rs/parity/fixtures/P.2/mermaid-opens.app.json new file mode 100644 index 000000000000..7537bb270ce9 --- /dev/null +++ b/packages/cli-rs/parity/fixtures/P.2/mermaid-opens.app.json @@ -0,0 +1,56 @@ +{ + "scenario": "P.2/mermaid-opens", + "width": 100, + "height": 30, + "directory": "/tmp/opencode/packages/tui", + "config": { + "animations": false, + "experimental": {"new-designs":true}, + "theme": {"name":"opencode"} + }, + "args": { + "sessionID": "ses_d" + }, + "routes": [ + {"path":"/api/session/ses_d","json":{"data":{"id":"ses_d","title":"Draw the flow","projectID":"proj_test","cost":0,"tokens":{"input":0,"output":0,"reasoning":0,"cache":{"read":0,"write":0}},"time":{"created":2,"updated":2},"location":{"directory":"/tmp/opencode/packages/tui"}}}}, + {"path":"/api/session/ses_d/message","json":{"data":[{"id":"msg_2","type":"assistant","agent":"build","model":{"providerID":"provider","id":"model"},"content":[{"type":"text","text":"```mermaid\nflowchart LR\n A --> B\n```\n\nThat is the flow."}],"finish":"stop","time":{"created":2000,"completed":2001}},{"id":"msg_1","type":"user","text":"Flow?","time":{"created":1000}}],"cursor":{}}}, + {"path":"/api/session/ses_d/inbox","json":{"data":[]}} + ], + "steps": [ + {"checkpoint":"open","until":"That is the flow.","deviation":[{"file":"F12-mermaid-leading-row","cells":140}],"fixture":"P.2/mermaid-opens/open"} + ], + "requests": { + "writes": [], + "reads": [ + {"method":"GET","path":"/api/agent","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":[]}}, + {"method":"GET","path":"/api/command","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":[]}}, + {"method":"GET","path":"/api/config","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":[]}, + {"method":"GET","path":"/api/experimental/job","query":{"descendants":["true"],"sessionID":["ses_d"],"status":["running"]},"status":200,"json":{"data":[]}}, + {"method":"GET","path":"/api/experimental/migration/v1","query":{},"status":200,"json":{"status":"completed"}}, + {"method":"GET","path":"/api/experimental/session/ses_d/terminal","query":{},"status":200,"json":{"data":[]}}, + {"method":"GET","path":"/api/form","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode"}},"data":[]}}, + {"method":"GET","path":"/api/fs/list","query":{"location[directory]":["<cwd>"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":[]}}, + {"method":"GET","path":"/api/info","query":{},"status":200,"json":{"version":"test","pid":0,"urls":[],"paths":{"tmp":"/tmp"},"capabilities":{"persistentPty":true}}}, + {"method":"GET","path":"/api/integration","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":[]}}, + {"method":"GET","path":"/api/location","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}}}, + {"method":"GET","path":"/api/mcp","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":[]}}, + {"method":"GET","path":"/api/mcp/resource","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":{"resources":[],"templates":[]}}}, + {"method":"GET","path":"/api/model","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":[]}}, + {"method":"GET","path":"/api/plugin","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":[]}}, + {"method":"GET","path":"/api/project","query":{},"status":200,"json":[]}, + {"method":"GET","path":"/api/provider","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":[]}}, + {"method":"GET","path":"/api/reference","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode/packages/tui","canonical":"/tmp/opencode/packages/tui"}},"data":[]}}, + {"method":"GET","path":"/api/session","query":{"limit":["200"],"order":["desc"],"parentID":["ses_d"]},"status":200,"json":{"data":[],"cursor":{}}}, + {"method":"GET","path":"/api/session/active","query":{},"status":200,"json":{"data":{}}}, + {"method":"GET","path":"/api/session/ses_d","query":{},"status":200,"json":{"data":{"id":"ses_d","title":"Draw the flow","projectID":"proj_test","cost":0,"tokens":{"input":0,"output":0,"reasoning":0,"cache":{"read":0,"write":0}},"time":{"created":2,"updated":2},"location":{"directory":"/tmp/opencode/packages/tui"}}}}, + {"method":"GET","path":"/api/session/ses_d/form","query":{},"status":200,"json":{"data":[]}}, + {"method":"GET","path":"/api/session/ses_d/inbox","query":{},"status":200,"json":{"data":[]}}, + {"method":"GET","path":"/api/session/ses_d/message","query":{"limit":["20"],"order":["desc"]},"status":200,"json":{"data":[{"id":"msg_2","type":"assistant","agent":"build","model":{"providerID":"provider","id":"model"},"content":[{"type":"text","text":"```mermaid\nflowchart LR\n A --> B\n```\n\nThat is the flow."}],"finish":"stop","time":{"created":2000,"completed":2001}},{"id":"msg_1","type":"user","text":"Flow?","time":{"created":1000}}],"cursor":{}}}, + {"method":"GET","path":"/api/session/ses_d/permission","query":{},"status":200,"json":{"data":[]}}, + {"method":"GET","path":"/api/shell","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":[]}}, + {"method":"GET","path":"/api/skill","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":[]}}, + {"method":"GET","path":"/api/vcs","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":{"branch":{"current":"main","default":"main"}}}}, + {"method":"POST","path":"/api/rpc/opencode.goal/get","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"body":{"input":{"sessionID":"ses_d"}},"status":200,"json":{"output":null}} + ] + } +} diff --git a/packages/cli-rs/parity/fixtures/P.2/mermaid-opens/open.json b/packages/cli-rs/parity/fixtures/P.2/mermaid-opens/open.json new file mode 100644 index 000000000000..23557538d777 --- /dev/null +++ b/packages/cli-rs/parity/fixtures/P.2/mermaid-opens/open.json @@ -0,0 +1,32 @@ +{"width":100,"height":30,"styles":["#ffffffff #202020ff 0","#ffffffff #202020ff 1","#808080ff #080808ff 0","#ffffffff #080808ff 0","#7699feff #141414ff 0","#ffffffff #141414ff 0","#a6a6a6ff #080808ff 0","#999999ff #080808ff 0","#939393ff #080808ff 0","#8d8d8dff #080808ff 0","#868686ff #080808ff 0","#eeeeeeff #080808ff 0","#7699feff #080808ff 0","#484848ff #080808ff 0","#202020ff #080808ff 0"],"lines":[ +[" Draw the flow + ",[[0,3],[1,13],[0,16],[2,3],[3,65]]], +[" ",[[3,100]]], +[" ┃ ",[[3,2],[4,1],[5,95],[3,2]]], +[" ┃ Flow? ",[[3,2],[4,1],[5,95],[3,2]]], +[" ┃ ",[[3,2],[4,1],[5,95],[3,2]]], +[" ",[[3,100]]], +[" ",[[3,100]]], +[" ╭───╮ ╭───╮ ",[[3,5],[6,5],[3,4],[6,5],[3,81]]], +[" │ A ├───▶│ B │ ",[[3,5],[6,1],[3,3],[7,1],[8,1],[9,1],[10,1],[2,1],[6,1],[3,3],[6,1],[3,81]]], +[" ╰───╯ ╰───╯ ",[[3,5],[6,5],[3,4],[6,5],[3,81]]], +[" ",[[3,100]]], +[" That is the flow. ",[[3,5],[11,17],[3,78]]], +[" ",[[3,100]]], +[" Build · provider/model · 1.0s ",[[3,5],[12,5],[2,24],[3,66]]], +[" ",[[3,100]]], +[" ",[[3,100]]], +[" ",[[3,100]]], +[" ",[[3,100]]], +[" ",[[3,100]]], +[" ",[[3,100]]], +[" ",[[3,100]]], +[" ",[[3,100]]], +[" ",[[3,100]]], +[" ┃ ",[[3,2],[13,1],[0,95],[3,2]]], +[" ┃ ",[[3,2],[13,1],[0,95],[3,2]]], +[" ┃ ",[[3,2],[13,1],[0,95],[3,2]]], +[" ┃ ",[[3,2],[13,1],[0,95],[3,2]]], +[" ╹▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀ ",[[3,2],[13,1],[14,95],[3,2]]], +[" /tmp/opencode/packages/tui:main shift+tab agents ctrl+p commands ",[[3,2],[2,31],[3,42],[2,6],[3,9],[2,8],[3,2]]], +[" ",[[3,100]]] +]} diff --git a/packages/cli-rs/parity/fixtures/P.2/plugin-fence-margin.app.json b/packages/cli-rs/parity/fixtures/P.2/plugin-fence-margin.app.json new file mode 100644 index 000000000000..4ecd5055e13e --- /dev/null +++ b/packages/cli-rs/parity/fixtures/P.2/plugin-fence-margin.app.json @@ -0,0 +1,60 @@ +{ + "scenario": "P.2/plugin-fence-margin", + "width": 100, + "height": 32, + "directory": "/tmp/opencode/packages/tui", + "config": { + "plugins": ["./plugins/fence-margin"], + "animations": false, + "experimental": {"new-designs":true}, + "theme": {"name":"opencode"} + }, + "args": { + "sessionID": "ses_f" + }, + "env": { + "OPENCODE_PARITY_PLUGIN": "fence-margin" + }, + "routes": [ + {"path":"/api/session/ses_f","json":{"data":{"id":"ses_f","title":"Show the fences","projectID":"proj_test","cost":0,"tokens":{"input":0,"output":0,"reasoning":0,"cache":{"read":0,"write":0}},"time":{"created":2,"updated":2},"location":{"directory":"/tmp/opencode/packages/tui"}}}}, + {"path":"/api/session/ses_f/message","json":{"data":[{"id":"msg_2","type":"assistant","agent":"build","model":{"providerID":"provider","id":"model"},"content":[{"type":"text","text":"Before the fence.\n\n```parity\none\n```\n\nAfter it.\n\n```parity\ntwo\n```\n\n```parity\nthree\n```\n\n- a list\n\n```parity\nfour\n```"}],"finish":"stop","time":{"created":2000,"completed":2001}},{"id":"msg_1","type":"user","text":"Draw the fences","time":{"created":1000}}],"cursor":{}}}, + {"path":"/api/session/ses_f/inbox","json":{"data":[]}} + ], + "steps": [ + {"checkpoint":"open","until":"fence: four","fixture":"P.2/plugin-fence-margin/open"} + ], + "requests": { + "writes": [], + "reads": [ + {"method":"GET","path":"/api/agent","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":[]}}, + {"method":"GET","path":"/api/command","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":[]}}, + {"method":"GET","path":"/api/config","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":[]}, + {"method":"GET","path":"/api/experimental/job","query":{"descendants":["true"],"sessionID":["ses_f"],"status":["running"]},"status":200,"json":{"data":[]}}, + {"method":"GET","path":"/api/experimental/migration/v1","query":{},"status":200,"json":{"status":"completed"}}, + {"method":"GET","path":"/api/experimental/session/ses_f/terminal","query":{},"status":200,"json":{"data":[]}}, + {"method":"GET","path":"/api/form","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode"}},"data":[]}}, + {"method":"GET","path":"/api/fs/list","query":{"location[directory]":["<cwd>"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":[]}}, + {"method":"GET","path":"/api/info","query":{},"status":200,"json":{"version":"test","pid":0,"urls":[],"paths":{"tmp":"/tmp"},"capabilities":{"persistentPty":true}}}, + {"method":"GET","path":"/api/integration","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":[]}}, + {"method":"GET","path":"/api/location","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}}}, + {"method":"GET","path":"/api/mcp","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":[]}}, + {"method":"GET","path":"/api/mcp/resource","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":{"resources":[],"templates":[]}}}, + {"method":"GET","path":"/api/model","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":[]}}, + {"method":"GET","path":"/api/plugin","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":[]}}, + {"method":"GET","path":"/api/project","query":{},"status":200,"json":[]}, + {"method":"GET","path":"/api/provider","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":[]}}, + {"method":"GET","path":"/api/reference","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode/packages/tui","canonical":"/tmp/opencode/packages/tui"}},"data":[]}}, + {"method":"GET","path":"/api/session","query":{"limit":["200"],"order":["desc"],"parentID":["ses_f"]},"status":200,"json":{"data":[],"cursor":{}}}, + {"method":"GET","path":"/api/session/active","query":{},"status":200,"json":{"data":{}}}, + {"method":"GET","path":"/api/session/ses_f","query":{},"status":200,"json":{"data":{"id":"ses_f","title":"Show the fences","projectID":"proj_test","cost":0,"tokens":{"input":0,"output":0,"reasoning":0,"cache":{"read":0,"write":0}},"time":{"created":2,"updated":2},"location":{"directory":"/tmp/opencode/packages/tui"}}}}, + {"method":"GET","path":"/api/session/ses_f/form","query":{},"status":200,"json":{"data":[]}}, + {"method":"GET","path":"/api/session/ses_f/inbox","query":{},"status":200,"json":{"data":[]}}, + {"method":"GET","path":"/api/session/ses_f/message","query":{"limit":["20"],"order":["desc"]},"status":200,"json":{"data":[{"id":"msg_2","type":"assistant","agent":"build","model":{"providerID":"provider","id":"model"},"content":[{"type":"text","text":"Before the fence.\n\n```parity\none\n```\n\nAfter it.\n\n```parity\ntwo\n```\n\n```parity\nthree\n```\n\n- a list\n\n```parity\nfour\n```"}],"finish":"stop","time":{"created":2000,"completed":2001}},{"id":"msg_1","type":"user","text":"Draw the fences","time":{"created":1000}}],"cursor":{}}}, + {"method":"GET","path":"/api/session/ses_f/permission","query":{},"status":200,"json":{"data":[]}}, + {"method":"GET","path":"/api/shell","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":[]}}, + {"method":"GET","path":"/api/skill","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":[]}}, + {"method":"GET","path":"/api/vcs","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":{"branch":{"current":"main","default":"main"}}}}, + {"method":"POST","path":"/api/rpc/opencode.goal/get","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"body":{"input":{"sessionID":"ses_f"}},"status":200,"json":{"output":null}} + ] + } +} diff --git a/packages/cli-rs/parity/fixtures/P.2/plugin-fence-margin/open.json b/packages/cli-rs/parity/fixtures/P.2/plugin-fence-margin/open.json new file mode 100644 index 000000000000..4669d44a57c0 --- /dev/null +++ b/packages/cli-rs/parity/fixtures/P.2/plugin-fence-margin/open.json @@ -0,0 +1,34 @@ +{"width":100,"height":32,"styles":["#ffffffff #202020ff 0","#ffffffff #202020ff 1","#808080ff #080808ff 0","#ffffffff #080808ff 0","#7699feff #141414ff 0","#ffffffff #141414ff 0","#eeeeeeff #080808ff 0","#fab283ff #080808ff 0","#7699feff #080808ff 0","#484848ff #080808ff 0","#202020ff #080808ff 0"],"lines":[ +[" Show the fences + ",[[0,3],[1,15],[0,14],[2,3],[3,65]]], +[" ",[[3,100]]], +[" ┃ ",[[3,2],[4,1],[5,95],[3,2]]], +[" ┃ Draw the fences ",[[3,2],[4,1],[5,95],[3,2]]], +[" ┃ ",[[3,2],[4,1],[5,95],[3,2]]], +[" ",[[3,100]]], +[" Before the fence. ",[[3,5],[6,17],[3,78]]], +[" ",[[3,100]]], +[" fence: one ",[[3,100]]], +[" ",[[3,100]]], +[" After it. ",[[3,5],[6,9],[3,86]]], +[" ",[[3,100]]], +[" fence: two ",[[3,100]]], +[" ",[[3,100]]], +[" fence: three ",[[3,100]]], +[" ",[[3,100]]], +[" - a list ",[[3,5],[7,2],[6,6],[3,87]]], +[" ",[[3,100]]], +[" fence: four ",[[3,100]]], +[" ",[[3,100]]], +[" Build · provider/model · 1.0s ",[[3,5],[8,5],[2,24],[3,66]]], +[" ",[[3,100]]], +[" ",[[3,100]]], +[" ",[[3,100]]], +[" ",[[3,100]]], +[" ┃ ",[[3,2],[9,1],[0,95],[3,2]]], +[" ┃ ",[[3,2],[9,1],[0,95],[3,2]]], +[" ┃ ",[[3,2],[9,1],[0,95],[3,2]]], +[" ┃ ",[[3,2],[9,1],[0,95],[3,2]]], +[" ╹▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀ ",[[3,2],[9,1],[10,95],[3,2]]], +[" /tmp/opencode/packages/tui:main shift+tab agents ctrl+p commands ",[[3,2],[2,31],[3,42],[2,6],[3,9],[2,8],[3,2]]], +[" ",[[3,100]]] +]} diff --git a/packages/cli-rs/parity/fixtures/P.2/structures.json b/packages/cli-rs/parity/fixtures/P.2/structures.json new file mode 100644 index 000000000000..1793c056edc8 --- /dev/null +++ b/packages/cli-rs/parity/fixtures/P.2/structures.json @@ -0,0 +1,32 @@ +{"width":60,"height":30,"styles":["#ffffffff #080808ff 0","#eeeeeeff #080808ff 0","#808080ff #080808ff 0","#ffffffff #080808ff 1"],"lines":[ +[" Before the math. ",[[0,3],[1,16],[0,41]]], +[" ",[[0,60]]], +[" ",[[0,60]]], +[" ╭─── ",[[0,14],[2,4],[0,42]]], +[" x + 1 │ 1 ",[[0,14],[2,1],[0,45]]], +[" ─────── = │─── ",[[0,3],[2,7],[0,1],[3,1],[0,2],[2,4],[0,42]]], +[" y - 1 ╰╯ 2 ",[[0,13],[2,2],[0,45]]], +[" ",[[0,60]]], +[" ",[[0,60]]], +[" 2 ",[[0,60]]], +[" ⎛a b⎞ ",[[0,3],[2,1],[0,3],[2,1],[0,52]]], +[" ⎜ ⎟ ",[[0,3],[2,1],[0,3],[2,1],[0,52]]], +[" ⎝c d⎠ ",[[0,3],[2,1],[0,3],[2,1],[0,52]]], +[" ",[[0,60]]], +[" ",[[0,60]]], +[" n ⎛ n ⎞ ",[[0,14],[2,1],[0,3],[2,1],[0,41]]], +[" ∑ i² ≤ ⎜ ⎟ ",[[0,12],[3,1],[0,1],[2,1],[0,3],[2,1],[0,41]]], +[" i = 1 ⎝ k ⎠ ",[[0,5],[3,1],[0,8],[2,1],[0,3],[2,1],[0,41]]], +[" ",[[0,60]]], +[" ",[[0,60]]], +[" ⎧x x > 0 ",[[0,3],[2,1],[0,10],[3,1],[0,45]]], +[" ⎨ ",[[0,3],[2,1],[0,56]]], +[" ⎩x² + 1 x ≤ 0 ",[[0,3],[2,1],[0,10],[3,1],[0,45]]], +[" ",[[0,60]]], +[" After the math. ",[[0,3],[1,15],[0,42]]], +[" ",[[0,60]]], +[" ",[[0,60]]], +[" ",[[0,60]]], +[" ",[[0,60]]], +[" ",[[0,60]]] +]} diff --git a/packages/cli-rs/parity/fixtures/P.2/wide.json b/packages/cli-rs/parity/fixtures/P.2/wide.json new file mode 100644 index 000000000000..fab9b10df001 --- /dev/null +++ b/packages/cli-rs/parity/fixtures/P.2/wide.json @@ -0,0 +1,10 @@ +{"width":30,"height":8,"styles":["#ffffffff #080808ff 0","#eeeeeeff #080808ff 0"],"lines":[ +[" Wide: ",[[0,3],[1,5],[0,22]]], +[" ",[[0,30]]], +[" ",[[0,30]]], +[" Start a very long formula w",[[0,30]]], +[" ",[[0,30]]], +[" End. ",[[0,3],[1,4],[0,23]]], +[" ",[[0,30]]], +[" ",[[0,30]]] +]} diff --git a/packages/cli-rs/parity/fixtures/P.3/corpus.json b/packages/cli-rs/parity/fixtures/P.3/corpus.json new file mode 100644 index 000000000000..156732beffc0 --- /dev/null +++ b/packages/cli-rs/parity/fixtures/P.3/corpus.json @@ -0,0 +1,503 @@ +{ + "styles": ["807770ff - 0","- - 0","a6a6a6ff - 0","ffffffff - 0","939393ff - 0","808080ff - 0","999999ff - 0","8d8d8dff - 0","868686ff - 0","a0a0a0ff - 0","ffffffff ffffff14 0","ffffffff - 4","c0c0c0ff - 0","7699feff - 0","343434ff - 0","c6a0f6ff - 0","a5b19fff - 0","a3bc97ff - 0","a2c790ff - 0","a1d189ff - 0","9fdc81ff - 0","9ee77aff - 0","f5a742ff - 0","cea774ff - 0","c0a685ff - 0","b3a695ff - 0","ffffffff 262626ff 0","c0c0c0ff 080808ff 0","e8a753ff - 0","dba763ff - 0","9d9d9dff - 0","8a8a8aff - 0","b09c8dff - 0","b3b3b3ff - 0","afafafff - 0","aaaaaaff - 0","8ea0d2ff - 0","96a2c3ff - 0","9ea4b5ff - 0"], + "cases": [ + {"width":120,"source":"flowchart LR\n subgraph Group\n A[Node]\n end","height":5,"lines":["╭─ Group ──╮","│ ╭──────╮ │","│ │ Node │ │","│ ╰──────╯ │","╰──────────╯"],"runs":[[[2,0],[7,0],[3,0]],[[1,0],[1,1],[8,2],[1,1],[1,0]],[[1,0],[1,1],[1,2],[6,3],[1,2],[1,1],[1,0]],[[1,0],[1,1],[8,2],[1,1],[1,0]],[[12,0]]]}, + {"width":120,"source":"flowchart TB\n A --> B\n A --> C","height":8,"lines":[" ╭───╮"," │ A │"," ╰─┬─╯"," ╭───────┴────────╮"," ▼ ▼","╭───╮ ╭───╮","│ B │ │ C │","╰───╯ ╰───╯"],"runs":[[[8,1],[5,2]],[[8,1],[1,2],[3,3],[1,2]],[[8,1],[2,2],[1,4],[2,2]],[[2,1],[18,5]],[[2,1],[1,5],[16,1],[1,5]],[[5,2],[12,1],[5,2]],[[1,2],[3,3],[1,2],[12,1],[1,2],[3,3],[1,2]],[[5,2],[12,1],[5,2]]]}, + {"width":120,"source":"flowchart LR\n A[Idea] --> B[Parse]\n B --> C[Render]\n C --> D[Terminal]","height":3,"lines":["╭──────╮ ╭───────╮ ╭────────╮ ╭──────────╮","│ Idea ├───▶│ Parse ├───▶│ Render ├───▶│ Terminal │","╰──────╯ ╰───────╯ ╰────────╯ ╰──────────╯"],"runs":[[[8,2],[4,1],[9,2],[4,1],[10,2],[4,1],[12,2]],[[1,2],[6,3],[1,6],[1,4],[1,7],[1,8],[1,5],[1,2],[7,3],[1,6],[1,4],[1,7],[1,8],[1,5],[1,2],[8,3],[1,6],[1,4],[1,7],[1,8],[1,5],[1,2],[10,3],[1,2]],[[8,2],[4,1],[9,2],[4,1],[10,2],[4,1],[12,2]]]}, + {"width":120,"source":"flowchart TD\n A[Start] --> B[Done]","height":8,"lines":["╭───────╮","│ Start │","╰───┬───╯"," │"," ▼","╭──────╮","│ Done │","╰──────╯"],"runs":[[[9,2]],[[1,2],[7,3],[1,2]],[[4,2],[1,6],[4,2]],[[4,1],[1,7]],[[4,1],[1,5]],[[8,2]],[[1,2],[6,3],[1,2]],[[8,2]]]}, + {"width":120,"source":"flowchart TD\n D[DEPLOYMENT - Anomaly] --> CA[ClientApps: google, github]\n D --> O[ORG acme = guild/workspace]\n O --> OG[org grant: google, authed as bot@acme.com]\n O --> M[MEMBER juliana]\n M --> UG[user grant: google, personal]","height":18,"lines":[" ╭──────────────────────╮"," │ DEPLOYMENT - Anomaly │"," ╰───────────┬──────────╯"," ╭────────────────────┴────────────────────╮"," ▼ ▼"," ╭────────────────────────────╮ ╭────────────────────────────╮"," │ ClientApps: google, github │ │ ORG acme = guild/workspace │"," ╰────────────────────────────╯ ╰──────────────┬─────────────╯"," ╭───────────────────────────────────┴───────╮"," ▼ ▼","╭───────────────────────────────────────────╮ ╭────────────────╮","│ org grant: google, authed as bot@acme.com │ │ MEMBER juliana │","╰───────────────────────────────────────────╯ ╰────────┬───────╯"," ╭────────────────────────────╯"," ▼"," ╭──────────────────────────────╮"," │ user grant: google, personal │"," ╰──────────────────────────────╯"],"runs":[[[25,1],[24,2]],[[25,1],[1,2],[22,3],[1,2]],[[25,1],[12,2],[1,4],[11,2]],[[16,1],[43,5]],[[16,1],[1,5],[41,1],[1,5]],[[1,1],[30,2],[12,1],[30,2]],[[1,1],[1,2],[28,3],[1,2],[12,1],[1,2],[28,3],[1,2]],[[1,1],[30,2],[12,1],[15,2],[1,4],[14,2]],[[22,1],[45,5]],[[22,1],[1,5],[43,1],[1,5]],[[45,2],[12,1],[18,2]],[[1,2],[43,3],[1,2],[12,1],[1,2],[16,3],[1,2]],[[45,2],[12,1],[9,2],[1,4],[8,2]],[[37,1],[30,5]],[[37,1],[1,5]],[[21,1],[32,2]],[[21,1],[1,2],[30,3],[1,2]],[[21,1],[32,2]]]}, + {"width":120,"source":"flowchart LR\n A[界]","height":3,"lines":["╭────╮","│ 界 │","╰────╯"],"runs":[[[6,2]],[[1,2],[3,3],[1,2]],[[6,2]]]}, + {"width":120,"source":"flowchart LR\n A --> B","height":3,"lines":["╭───╮ ╭───╮","│ A ├───▶│ B │","╰───╯ ╰───╯"],"runs":[[[5,2],[4,1],[5,2]],[[1,2],[3,3],[1,6],[1,4],[1,7],[1,8],[1,5],[1,2],[3,3],[1,2]],[[5,2],[4,1],[5,2]]]}, + {"width":120,"source":"flowchart RL\n Parser[Parser] --> Output[Rendered]","height":3,"lines":["╭──────────╮ ╭────────╮","│ Rendered │◀───┤ Parser │","╰──────────╯ ╰────────╯"],"runs":[[[12,2],[4,1],[10,2]],[[1,2],[10,3],[1,2],[1,5],[1,8],[1,7],[1,4],[1,6],[8,3],[1,2]],[[12,2],[4,1],[10,2]]]}, + {"width":120,"source":"flowchart LR\n A[A] --> B[B]\n B --> A","height":7,"lines":[" ╭────────╮"," │ │"," │ │"," ▼ │","╭───╮ ╭─┴─╮","│ A ├───▶│ B │","╰───╯ ╰───╯"],"runs":[[[2,1],[10,5]],[[2,1],[1,5],[8,1],[1,8]],[[2,1],[1,5],[8,1],[1,7]],[[2,1],[1,5],[8,1],[1,4]],[[5,2],[4,1],[2,2],[1,6],[2,2]],[[1,2],[3,3],[1,6],[1,4],[1,7],[1,8],[1,5],[1,2],[3,3],[1,2]],[[5,2],[4,1],[5,2]]]}, + {"width":120,"source":"flowchart TD\n S[Source] --> A[Alpha]\n S --> B{Beta?}\n S --> C[(Store)]\n A --> J[[Join]]\n B --> J\n C --> J\n J -->|cycle back| S","height":17,"lines":[" ╭────────╮"," │ Source │◀───────────────────────╮"," ╰────┬───╯ │"," ╭─────────────────────┼─────────────────────╮ │"," │ │ │ │"," │ ▼ ▼ │"," ▼ ╭─────╮ ╭───────╮ │","╭───────╮ ╭─╯ ╰─╮ ├───────┤ │","│ Alpha │ │ Beta? │ │ Store │ │","╰───┬───╯ ╰─╮ ╭─╯ ├───────┤ │"," │ ╰──┬──╯ ╰───┬───╯ │"," │ │ │ │"," ╰─────────────────────┼─────────────────────╯ │"," ▼ │"," ╭─┬────┬─╮ │"," │ │Join│ ├────── cycle back ──────╯"," ╰─┴────┴─╯"],"runs":[[[21,1],[10,2]],[[21,1],[1,2],[8,3],[1,2],[25,5]],[[21,1],[5,2],[1,4],[4,2],[24,1],[1,5]],[[4,1],[45,5],[6,1],[1,5]],[[4,1],[1,5],[21,1],[1,5],[21,1],[1,5],[6,1],[1,5]],[[4,1],[1,5],[21,1],[1,5],[21,1],[1,5],[6,1],[1,5]],[[4,1],[1,5],[18,1],[7,2],[14,1],[9,2],[2,1],[1,5]],[[9,2],[12,1],[3,2],[5,1],[3,2],[12,1],[9,2],[2,1],[1,5]],[[1,2],[7,3],[1,2],[12,1],[1,2],[2,1],[5,3],[2,1],[1,2],[12,1],[1,2],[7,3],[1,2],[2,1],[1,5]],[[4,2],[1,6],[4,2],[12,1],[3,2],[5,1],[3,2],[12,1],[9,2],[2,1],[1,5]],[[4,1],[1,4],[18,1],[3,2],[1,6],[3,2],[14,1],[4,2],[1,6],[4,2],[2,1],[1,5]],[[4,1],[1,7],[21,1],[1,7],[21,1],[1,7],[6,1],[1,5]],[[4,1],[45,5],[6,1],[1,5]],[[26,1],[1,5],[28,1],[1,5]],[[21,1],[10,2],[24,1],[1,5]],[[21,1],[1,2],[1,3],[1,2],[4,3],[1,2],[1,3],[1,9],[2,6],[1,4],[2,7],[1,8],[12,10],[7,5]],[[21,1],[10,2]]]}, + {"width":120,"source":"flowchart TD\n A[Left] -->|left| C[Merge]\n B[Right] -->|right| C","height":9,"lines":["╭──────╮ ╭───────╮","│ Left │ │ Right │","╰───┬──╯ ╰───┬───╯"," │ │"," ╰── left ──┬── right ──╯"," ▼"," ╭───────╮"," │ Merge │"," ╰───────╯"],"runs":[[[8,2],[15,1],[9,2]],[[1,2],[6,3],[1,2],[15,1],[1,2],[7,3],[1,2]],[[4,2],[1,6],[3,2],[15,1],[4,2],[1,6],[4,2]],[[4,1],[1,7],[22,1],[1,7]],[[4,1],[3,5],[6,10],[5,5],[7,10],[3,5]],[[15,1],[1,5]],[[11,1],[9,2]],[[11,1],[1,2],[7,3],[1,2]],[[11,1],[9,2]]]}, + {"width":120,"source":"flowchart TD\n B[Start] --> D{Choose}\n D --> E[[Primary]]\n D --> F[Fallback]\n E --> B\n F --> E","height":15,"lines":[" ╭───────╮","╭────────────────▶│ Start │","│ ╰───┬───╯","│ │","│ ▼","│ ╭───────╮","│ ╭─╯ ╰─╮","│ │ Choose │","│ ╰─╮ ╭─╯","│ ╰───┬───╯","│ ╭───────────┴────────────╮","│ ▼ ▼","│ ╭─┬───────┬─╮ ╭──────────╮","╰───┤ │Primary│ │◀───────────┤ Fallback │"," ╰─┴───────┴─╯ ╰──────────╯"],"runs":[[[18,1],[9,2]],[[18,5],[1,2],[7,3],[1,2]],[[1,5],[17,1],[4,2],[1,6],[4,2]],[[1,5],[21,1],[1,7]],[[1,5],[21,1],[1,5]],[[1,5],[17,1],[9,2]],[[1,5],[15,1],[3,2],[7,1],[3,2]],[[1,5],[15,1],[1,2],[2,1],[6,3],[3,1],[1,2]],[[1,5],[15,1],[3,2],[7,1],[3,2]],[[1,5],[17,1],[4,2],[1,4],[4,2]],[[1,5],[9,1],[26,5]],[[1,5],[9,1],[1,5],[24,1],[1,5]],[[1,5],[3,1],[13,2],[12,1],[12,2]],[[1,5],[1,8],[1,7],[1,4],[1,6],[1,3],[1,2],[7,3],[1,2],[1,3],[1,2],[1,5],[2,8],[3,7],[2,4],[3,6],[2,9],[10,3],[1,2]],[[4,1],[13,2],[12,1],[12,2]]]}, + {"width":120,"source":"flowchart LR\n A[Source] -->|first| B[Target]\n A -->|second| B","height":5,"lines":["╭────────╮ ╭────────╮","│ Source │ │ Target │","╰────┬───╯ ╰────────╯"," ├──────── first ─────────▶"," ╰──────── second ────────╯"],"runs":[[[10,2],[15,1],[10,2]],[[1,2],[8,3],[1,2],[15,1],[1,2],[8,3],[1,2]],[[5,2],[1,4],[4,2],[15,1],[10,2]],[[5,1],[9,5],[7,10],[10,5]],[[5,1],[9,5],[8,10],[9,5]]]}, + {"width":120,"source":"flowchart TD\n A[A] -->|forward_label| B[B]\n B -->|backward_label| A","height":9,"lines":["╭───╮","│ A │◀─────────────╮","╰─┬─╯ │"," │ │"," │ forward_label │ backward_label "," ▼ │","╭───╮ │","│ B ├──────────────╯","╰───╯"],"runs":[[[5,2]],[[1,2],[3,3],[1,2],[15,5]],[[2,2],[1,6],[2,2],[14,1],[1,5]],[[2,1],[1,4],[16,1],[1,5]],[[2,1],[1,7],[15,10],[1,1],[1,5],[16,10]],[[2,1],[1,5],[16,1],[1,5]],[[5,2],[14,1],[1,5]],[[1,2],[3,3],[3,9],[3,6],[3,4],[3,7],[3,8],[1,5]],[[5,2]]]}, + {"width":120,"source":"flowchart BT\n F3_1[Node F3_1]\n F3_4[Node F3_4]\n F3_3[Node F3_3]\n F3_2[Node F3_2]\n F3_3 -->|flow_edge_3_0| F3_4\n F3_2 -->|flow_edge_3_1| F3_3\n F3_1 -->|flow_edge_3_5| F3_4\n F3_1 -->|flow_edge_3_6| F3_4\n F3_2 -->|flow_edge_3_7| F3_1\n F3_1 -->|flow_edge_3_8| F3_4","height":15,"lines":[" ╭───────────╮"," │ Node F3_4 │"," ╰───────────╯"," ▲"," ├─ flow_edge_3_0 ─╮"," │ │"," ╭───────────╮ │ ╭─────┴─────╮","╭─▶│ Node F3_1 │ │ │ Node F3_3 │◀─╮","│ ╰─────┬─────╯ │ ╰───────────╯ │","│ ├─ flow_edge_3_5 ─┤ │","│ ├─ flow_edge_3_6 ─┤ │","│ ╰─ flow_edge_3_8 ─╯ │","│ ╭───────────╮ │","╰── flow_edge_3_7 ───┤ Node F3_2 ├─── flow_edge_3_1 ──╯"," ╰───────────╯"],"runs":[[[21,1],[13,2]],[[21,1],[1,2],[11,3],[1,2]],[[21,1],[13,2]],[[27,1],[1,5]],[[27,1],[2,5],[15,10],[2,5]],[[27,1],[1,5],[17,1],[1,7]],[[3,1],[13,2],[11,1],[1,5],[11,1],[6,2],[1,6],[6,2]],[[3,5],[1,2],[11,3],[1,2],[11,1],[1,5],[11,1],[1,2],[11,3],[1,2],[3,5]],[[1,5],[2,1],[6,2],[1,4],[6,2],[11,1],[1,5],[11,1],[13,2],[2,1],[1,5]],[[1,5],[8,1],[2,5],[15,10],[2,5],[26,1],[1,5]],[[1,5],[8,1],[2,5],[15,10],[2,5],[26,1],[1,5]],[[1,5],[8,1],[2,5],[15,10],[2,5],[26,1],[1,5]],[[1,5],[20,1],[13,2],[20,1],[1,5]],[[3,5],[15,10],[1,8],[1,7],[1,4],[1,6],[11,3],[1,6],[1,4],[1,7],[1,8],[15,10],[3,5]],[[21,1],[13,2]]]}, + {"width":120,"source":"flowchart BT\n F3_0[Node F3_0]\n F3_1[Node F3_1]\n F3_2[Node F3_2]\n F3_3[Node F3_3]\n F3_4[Node F3_4]\n F3_0 -->|flow_edge_3_0| F3_1\n F3_1 -->|flow_edge_3_1| F3_2\n F3_2 -->|flow_edge_3_2| F3_3\n F3_3 -->|flow_edge_3_3| F3_4\n F3_0 -->|flow_edge_3_4| F3_4\n F3_0 -->|flow_edge_3_5| F3_0\n F3_1 -->|flow_edge_3_6| F3_4\n F3_3 -->|flow_edge_3_7| F3_0\n F3_1 -->|flow_edge_3_8| F3_4\n F3_3 -->|flow_edge_3_9| F3_0","height":28,"lines":[" ╭╮"," ││","╭──────────────────┼┼──────┬──────────── flow_edge_3_3 ─────────────╮","│ flow_edge_3_7 │╭─────┴─────╮ │","├──────────────────┼▶┤ Node F3_3 │ │","│ │ ╰───────────╯ │","│ │ │","│ │ │","│ │ │","│ │ ╭───────────╮ │","├── flow_edge_3_2 ─┼─┤ Node F3_2 │ │","│ │ ╰───────────╯ │","│ flow_edge_3_9 │ ▲ │","│ ╭─────────┼───────╯ flow_edge_3_1 │","│ │ │ │","│ ╭─────┴─────╮ │ ╭───────────╮ │","├─▶│ Node F3_1 ├╮ │ ╭▶│ Node F3_4 │◀───────────────╯","│ ╰───────────╯│ │ │ ╰───────────╯","│ flow_edge_3_8 │ │ │ ▲","│ │ │ │ │"," flow_edge_3_0 ─┼──┼───────╮ │ │","│ flow_edge_3_6 │ │ ╭─────┴─────╮ │ │","├───────────────┼──┴▶│ Node F3_0 │ │ │","│ │ ╰─────┬─────╯ │ │","│ │ │ │ │","│ │ │ │ │","╰───────────────┴──────────┴─────────┴───────╯"," flow_edge_3_5 flow_edge_3_4 "],"runs":[[[19,1],[2,5]],[[19,1],[2,5]],[[40,5],[15,10],[14,5]],[[1,5],[4,1],[15,10],[1,5],[6,2],[1,4],[6,2],[34,1],[1,5]],[[21,5],[1,4],[11,3],[1,2],[34,1],[1,5]],[[1,5],[18,1],[1,5],[1,1],[13,2],[34,1],[1,5]],[[1,5],[18,1],[1,5],[48,1],[1,5]],[[1,5],[18,1],[1,5],[48,1],[1,5]],[[1,5],[18,1],[1,5],[48,1],[1,5]],[[1,5],[18,1],[1,5],[1,1],[13,2],[34,1],[1,5]],[[3,5],[15,10],[2,5],[1,7],[1,6],[11,3],[1,2],[34,1],[1,5]],[[1,5],[18,1],[1,5],[1,1],[13,2],[34,1],[1,5]],[[1,5],[2,1],[15,10],[1,1],[1,5],[7,1],[1,5],[40,1],[1,5]],[[1,5],[8,1],[19,5],[15,10],[25,1],[1,5]],[[1,5],[8,1],[1,7],[9,1],[1,5],[48,1],[1,5]],[[1,5],[2,1],[6,2],[1,6],[6,2],[3,1],[1,5],[19,1],[13,2],[16,1],[1,5]],[[3,5],[1,2],[11,3],[1,4],[1,5],[2,1],[1,5],[17,1],[2,5],[1,2],[11,3],[1,2],[17,5]],[[1,5],[2,1],[13,2],[1,5],[2,1],[1,5],[17,1],[1,5],[1,1],[13,2]],[[1,5],[15,10],[1,5],[2,1],[1,5],[17,1],[1,5],[7,1],[1,5]],[[1,5],[15,1],[1,5],[2,1],[1,5],[17,1],[1,5],[7,1],[1,5]],[[15,10],[13,5],[9,1],[1,5],[7,1],[1,5]],[[1,5],[15,10],[1,5],[2,1],[1,5],[1,1],[6,2],[1,4],[6,2],[3,1],[1,5],[7,1],[1,5]],[[21,5],[1,2],[11,3],[1,2],[3,1],[1,5],[7,1],[1,5]],[[1,5],[15,1],[1,5],[4,1],[6,2],[1,4],[6,2],[3,1],[1,5],[7,1],[1,5]],[[1,5],[15,1],[1,5],[10,1],[1,5],[9,1],[1,5],[7,1],[1,5]],[[1,5],[15,1],[1,5],[10,1],[1,5],[9,1],[1,5],[7,1],[1,5]],[[46,5]],[[6,1],[15,10],[8,1],[15,10]]]}, + {"width":120,"source":"flowchart TB\n F9_0[Node F9_0]\n F9_1[Node F9_1]\n F9_2[Node F9_2]\n F9_3[Node F9_3]\n F9_4[Node F9_4]\n F9_5[Node F9_5]\n F9_6[Node F9_6]\n F9_0 -->|flow_edge_9_0| F9_1\n F9_1 -->|flow_edge_9_1| F9_2\n F9_2 -->|flow_edge_9_2| F9_3\n F9_3 -->|flow_edge_9_3| F9_4\n F9_4 -->|flow_edge_9_4| F9_5\n F9_5 -->|flow_edge_9_5| F9_6\n F9_2 -->|flow_edge_9_6| F9_3\n F9_1 -->|flow_edge_9_7| F9_0\n F9_5 -->|flow_edge_9_8| F9_6\n F9_6 -->|flow_edge_9_9| F9_3\n F9_0 -->|flow_edge_9_10| F9_1\n F9_1 -->|flow_edge_9_11| F9_5","height":33,"lines":["╭╮","││","││","││ flow_edge_9_6 ╭───────────╮","││ ╭──▶│ Node F9_0 ├┬────────────────╮","││ │ ╰───────────╯│ │","││ │ │ │","││ │ flow_edge_9_7 │ flow_edge_9_0 │ flow_edge_9_10 ","││ │ │ │","││ │ ╭───────────╮│ │","││ ╰───┤ Node F9_1 │▼────────────────╯","││ ╰─────┬─────╯","││ ╭─ flow_edge_9_1 ─┴─ flow_edge_9_11 ─╮","││ │ │","││ ▼ ▼","││╭───────────╮ ╭───────────╮","│╰┤ Node F9_2 ├╮ ╭▶│ Node F9_5 ├┬────────────────╮","│ ╰───────────╯│ │ ╰───────────╯│ │","│ │ │ │ │","│ │ flow_edge_9_2 │ │ flow_edge_9_5 │ flow_edge_9_8 ","│ │ │ │ │","│ ╭───────────╮│ │╭───────────╮ │ │","├▶│ Node F9_3 │▼ ╭┤ Node F9_6 │◀┴────────────────╯","│ ╰─────┬─────╯ │╰───────────╯","│ │ │","│ ╰─ flow_edge_9_3 ─╮ │","│ ▼ │","│ ╭───────────╮ │","│ │ Node F9_4 ├╮ │","│ ╰───────────╯│ │","│ flow_edge_9_4 │ │","│ │ │","╰────────── flow_edge_9_9 ───────┴───╯"],"runs":[[[2,5]],[[2,5]],[[2,5]],[[2,5],[15,10],[3,1],[13,2]],[[2,5],[14,1],[4,5],[1,2],[11,3],[1,4],[18,5]],[[2,5],[14,1],[1,5],[3,1],[13,2],[1,5],[16,1],[1,5]],[[2,5],[14,1],[1,5],[16,1],[1,5],[16,1],[1,5]],[[2,5],[14,1],[1,5],[15,10],[1,1],[1,5],[15,10],[1,1],[1,5],[16,10]],[[2,5],[14,1],[1,5],[16,1],[1,5],[16,1],[1,5]],[[2,5],[14,1],[1,5],[3,1],[13,2],[1,5],[16,1],[1,5]],[[2,5],[14,1],[1,5],[1,8],[1,7],[1,4],[1,6],[11,3],[1,2],[18,5]],[[2,5],[18,1],[6,2],[1,4],[6,2]],[[2,5],[6,1],[2,5],[15,10],[3,5],[16,10],[2,5]],[[2,5],[6,1],[1,5],[36,1],[1,5]],[[2,5],[6,1],[1,5],[36,1],[1,5]],[[2,5],[13,2],[24,1],[13,2]],[[2,5],[1,4],[11,3],[1,4],[1,5],[21,1],[2,5],[1,2],[11,3],[1,4],[18,5]],[[1,5],[1,1],[13,2],[1,5],[21,1],[1,5],[1,1],[13,2],[1,5],[16,1],[1,5]],[[1,5],[14,1],[1,5],[21,1],[1,5],[14,1],[1,5],[16,1],[1,5]],[[1,5],[14,1],[1,5],[15,10],[6,1],[1,5],[14,1],[1,5],[15,10],[1,1],[1,5],[15,10]],[[1,5],[14,1],[1,5],[21,1],[1,5],[14,1],[1,5],[16,1],[1,5]],[[1,5],[1,1],[13,2],[1,5],[21,1],[1,5],[13,2],[1,1],[1,5],[16,1],[1,5]],[[2,5],[1,2],[11,3],[1,2],[1,5],[21,1],[1,5],[1,4],[11,3],[1,2],[19,5]],[[1,5],[1,1],[6,2],[1,6],[6,2],[22,1],[1,5],[13,2]],[[1,5],[7,1],[1,7],[28,1],[1,5]],[[1,5],[7,1],[2,5],[15,10],[2,5],[10,1],[1,5]],[[1,5],[25,1],[1,5],[10,1],[1,5]],[[1,5],[19,1],[13,2],[4,1],[1,5]],[[1,5],[19,1],[1,2],[11,3],[1,4],[1,5],[3,1],[1,5]],[[1,5],[19,1],[13,2],[1,5],[3,1],[1,5]],[[1,5],[17,1],[15,10],[1,5],[3,1],[1,5]],[[1,5],[32,1],[1,5],[3,1],[1,5]],[[11,5],[15,10],[12,5]]]}, + {"width":120,"source":"flowchart TB\n F7_0[Node F7_0]\n F7_1[Node F7_1]\n F7_2[Node F7_2]\n F7_3[Node F7_3]\n F7_4[Node F7_4]\n F7_5[Node F7_5]\n F7_6[Node F7_6]\n F7_7[Node F7_7]\n F7_0 -->|flow_edge_7_0| F7_1\n F7_1 -->|flow_edge_7_1| F7_2\n F7_2 -->|flow_edge_7_2| F7_3\n F7_3 -->|flow_edge_7_3| F7_4\n F7_4 -->|flow_edge_7_4| F7_5\n F7_5 -->|flow_edge_7_5| F7_6\n F7_6 -->|flow_edge_7_6| F7_7\n F7_7 -->|flow_edge_7_7| F7_2\n F7_3 -->|flow_edge_7_8| F7_3\n F7_0 -->|flow_edge_7_9| F7_4\n F7_5 -->|flow_edge_7_10| F7_6\n F7_4 -->|flow_edge_7_11| F7_2","height":33,"lines":[" ╭────────────────── flow_edge_7_3 ──────────────────╮"," │ │"," │ │"," │ ╭───────────╮ │"," │ │ Node F7_0 │ │"," │ ╰─────┬─────╯ │"," │ ╭─ flow_edge_7_0 ─┴─ flow_edge_7_9 ──╮ │"," │ │ │ │"," │ ▼ ▼ │"," │╭───────────╮ ╭───────────╮ │"," ││ Node F7_1 │ │ Node F7_4 │◀╯"," │╰─────┬─────╯ ╰─────┬─────╯"," │ │────────── flow_edge_7_11 ──────────┤"," │ │ flow_edge_7_1 │ flow_edge_7_4 "," │ ▼ ▼"," │╭───────────╮ ╭───────────╮"," ││ Node F7_2 │◀╮ │ Node F7_5 ├┬────────────────╮"," │╰─────┬─────╯ │ ╰───────────╯│ │","╭─┼──────╯ │ │ │","╰─┼ flow_edge_7_2 │ flow_edge_7_5 │ flow_edge_7_10 "," │ ▼ │ │ │"," │╭───────────╮ │ ╭───────────╮│ │"," ╰┤ Node F7_3 ├─┼─╮ │ Node F7_6 │▼────────────────╯"," ╰───────────╯ │ │ flow_edge_7_8 ╰─────┬─────╯"," ▲ │ │ │"," ╰───────┼─╯ ╭─ flow_edge_7_6 ──╯"," │ ▼"," │ ╭───────────╮"," │ ╭┤ Node F7_7 │"," │ │╰───────────╯"," │ │ flow_edge_7_7 "," │ │"," ╰──╯"],"runs":[[[2,1],[19,5],[15,10],[19,5]],[[2,1],[1,5],[51,1],[1,5]],[[2,1],[1,5],[51,1],[1,5]],[[2,1],[1,5],[18,1],[13,2],[20,1],[1,5]],[[2,1],[1,5],[18,1],[1,2],[11,3],[1,2],[20,1],[1,5]],[[2,1],[1,5],[18,1],[6,2],[1,4],[6,2],[20,1],[1,5]],[[2,1],[1,5],[6,1],[2,5],[15,10],[3,5],[15,10],[3,5],[7,1],[1,5]],[[2,1],[1,5],[6,1],[1,5],[36,1],[1,5],[7,1],[1,5]],[[2,1],[1,5],[6,1],[1,5],[36,1],[1,5],[7,1],[1,5]],[[2,1],[1,5],[13,2],[24,1],[13,2],[1,1],[1,5]],[[2,1],[1,5],[1,2],[11,3],[1,2],[24,1],[1,2],[11,3],[1,2],[2,5]],[[2,1],[1,5],[6,2],[1,6],[6,2],[24,1],[6,2],[1,4],[6,2]],[[2,1],[1,5],[6,1],[1,7],[10,5],[16,10],[11,5]],[[2,1],[1,5],[6,1],[1,5],[15,10],[21,1],[1,5],[15,10]],[[2,1],[1,5],[6,1],[1,5],[36,1],[1,5]],[[2,1],[1,5],[13,2],[24,1],[13,2]],[[2,1],[1,5],[1,2],[11,3],[1,2],[2,5],[22,1],[1,2],[11,3],[1,4],[18,5]],[[2,1],[1,5],[6,2],[1,4],[6,2],[1,1],[1,5],[22,1],[13,2],[1,5],[16,1],[1,5]],[[10,5],[7,1],[1,5],[35,1],[1,5],[16,1],[1,5]],[[3,5],[15,10],[35,1],[1,5],[15,10],[1,1],[1,5],[16,10]],[[2,1],[1,5],[6,1],[1,5],[7,1],[1,5],[35,1],[1,5],[16,1],[1,5]],[[2,1],[1,5],[13,2],[1,1],[1,5],[22,1],[13,2],[1,5],[16,1],[1,5]],[[2,1],[1,5],[1,4],[11,3],[1,6],[1,7],[3,5],[20,1],[1,2],[11,3],[1,2],[18,5]],[[3,1],[13,2],[1,1],[1,5],[1,1],[1,5],[15,10],[5,1],[6,2],[1,6],[6,2]],[[9,1],[1,5],[7,1],[1,5],[1,1],[1,5],[26,1],[1,7]],[[9,1],[11,5],[7,1],[2,5],[15,10],[3,5]],[[17,1],[1,5],[9,1],[1,5]],[[17,1],[1,5],[3,1],[13,2]],[[17,1],[1,5],[2,1],[1,5],[1,4],[11,3],[1,2]],[[17,1],[1,5],[2,1],[1,5],[13,2]],[[17,1],[1,5],[2,1],[1,5],[15,10]],[[17,1],[1,5],[2,1],[1,5]],[[17,1],[4,5]]]}, + {"width":120,"source":"flowchart BT\n F130_0[Node F130_0]\n F130_1[Node F130_1]\n F130_2[Node F130_2]\n F130_3[Node F130_3]\n F130_4[Node F130_4]\n F130_5[Node F130_5]\n F130_0 -->|flow_edge_130_0| F130_1\n F130_1 -->|flow_edge_130_1| F130_2\n F130_2 -->|flow_edge_130_2| F130_3\n F130_3 -->|flow_edge_130_3| F130_4\n F130_4 -->|flow_edge_130_4| F130_5\n F130_2 -->|flow_edge_130_5| F130_1\n F130_4 -->|flow_edge_130_6| F130_3\n F130_3 -->|flow_edge_130_7| F130_1\n F130_5 -->|flow_edge_130_8| F130_5\n F130_2 -->|flow_edge_130_9| F130_0\n F130_4 -->|flow_edge_130_10| F130_0\n F130_4 -->|flow_edge_130_11| F130_0","height":36,"lines":[" ╭───── flow_edge_130_8 ─────╮"," │ │"," │ │"," ╭──────┴──────╮ │"," │ Node F130_5 │◀───────────────────╯"," ╰─────────────╯"," ▲"," │ flow_edge_130_4 "," ├─── flow_edge_130_6 ───╮"," ╭──────┴──────╮ │"," ╭─▶│ Node F130_4 ├──┬─────────────┼───╮"," │ ╰─────────────╯ │ │ │"," │ │ │ │"," │ flow_edge_130_3 │ │ │"," │ │ │ │"," │ ╭─────────────╮ │ │ │"," ├─▶┤ Node F130_3 │◀─┼─────────────╯ │"," │ ╰─────────────╯ │ │"," │ │ │"," │ flow_edge_130_2 │ │"," │ │ │"," │ ╭─────────────╮ │ │"," flow_edge_130_7 ├─▶┤ Node F130_2 │ │ flow_edge_130_10 flow_edge_130_11 "," │ ╰─────────────╯ │ │"," │ │ │"," flow_edge_130_1 │ flow_edge_130_5 │ │"," │ │ │"," │ ╭─────────────╮ │ │"," flow_edge_130_9 ├─▶┤ Node F130_1 │ │ │"," │ ╰─────────────╯ │ │"," │ ▲ │ │"," │ ╰─────────┤ │"," │ ╭─────────┤ flow_edge_130_0 │"," │ ╭──────┴──────╮ │ │"," ╰─▶│ Node F130_0 │◀─┴─────────────────╯"," ╰─────────────╯"],"runs":[[[27,1],[6,5],[17,10],[6,5]],[[27,1],[1,7],[27,1],[1,5]],[[27,1],[1,4],[27,1],[1,5]],[[20,1],[7,2],[1,6],[7,2],[20,1],[1,5]],[[20,1],[1,2],[13,3],[1,2],[21,5]],[[20,1],[15,2]],[[27,1],[1,5]],[[27,1],[1,5],[17,10]],[[27,1],[4,5],[17,10],[4,5]],[[20,1],[7,2],[1,4],[7,2],[16,1],[1,5]],[[17,1],[3,5],[1,2],[13,3],[1,4],[21,5]],[[17,1],[1,5],[2,1],[15,2],[2,1],[1,5],[13,1],[1,5],[3,1],[1,5]],[[17,1],[1,5],[19,1],[1,5],[13,1],[1,5],[3,1],[1,5]],[[17,1],[1,5],[2,1],[17,10],[1,5],[13,1],[1,5],[3,1],[1,5]],[[17,1],[1,5],[19,1],[1,5],[13,1],[1,5],[3,1],[1,5]],[[17,1],[1,5],[2,1],[15,2],[2,1],[1,5],[13,1],[1,5],[3,1],[1,5]],[[17,1],[3,5],[1,4],[13,3],[1,2],[17,5],[3,1],[1,5]],[[17,1],[1,5],[2,1],[15,2],[2,1],[1,5],[17,1],[1,5]],[[17,1],[1,5],[19,1],[1,5],[17,1],[1,5]],[[17,1],[1,5],[2,1],[17,10],[1,5],[17,1],[1,5]],[[17,1],[1,5],[19,1],[1,5],[17,1],[1,5]],[[17,1],[1,5],[2,1],[15,2],[2,1],[1,5],[17,1],[1,5]],[[17,10],[3,5],[1,4],[13,3],[1,2],[2,1],[1,5],[36,10]],[[17,1],[1,5],[2,1],[15,2],[2,1],[1,5],[17,1],[1,5]],[[17,1],[1,5],[19,1],[1,5],[17,1],[1,5]],[[17,10],[1,5],[2,1],[17,10],[1,5],[17,1],[1,5]],[[17,1],[1,5],[19,1],[1,5],[17,1],[1,5]],[[17,1],[1,5],[2,1],[15,2],[2,1],[1,5],[17,1],[1,5]],[[17,10],[3,5],[1,4],[13,3],[1,2],[2,1],[1,5],[17,1],[1,5]],[[17,1],[1,5],[2,1],[15,2],[2,1],[1,5],[17,1],[1,5]],[[17,1],[1,5],[9,1],[1,5],[9,1],[1,5],[17,1],[1,5]],[[17,1],[1,5],[9,1],[11,5],[17,1],[1,5]],[[17,1],[1,5],[9,1],[11,5],[17,10],[1,5]],[[17,1],[1,5],[2,1],[7,2],[1,4],[7,2],[2,1],[1,5],[17,1],[1,5]],[[17,1],[3,5],[1,2],[13,3],[1,2],[21,5]],[[20,1],[15,2]]]}, + {"width":120,"source":"flowchart BT\n F141_0[Node F141_0]\n F141_1[Node F141_1]\n F141_2[Node F141_2]\n F141_3[Node F141_3]\n F141_4[Node F141_4]\n F141_5[Node F141_5]\n F141_6[Node F141_6]\n F141_7[Node F141_7]\n F141_0 -->|flow_edge_141_0| F141_1\n F141_1 -->|flow_edge_141_1| F141_2\n F141_2 -->|flow_edge_141_2| F141_3\n F141_3 -->|flow_edge_141_3| F141_4\n F141_4 -->|flow_edge_141_4| F141_5\n F141_5 -->|flow_edge_141_5| F141_6\n F141_6 -->|flow_edge_141_6| F141_7\n F141_7 -->|flow_edge_141_7| F141_1\n F141_4 -->|flow_edge_141_8| F141_4\n F141_3 -->|flow_edge_141_9| F141_0\n F141_3 -->|flow_edge_141_10| F141_2\n F141_7 -->|flow_edge_141_11| F141_6\n F141_7 -->|flow_edge_141_12| F141_2\n F141_7 -->|flow_edge_141_13| F141_5","height":46,"lines":[" ╭────────── flow_edge_141_12 ──────────╮"," ╭──────┴──────╮ │"," ╭──┤ Node F141_7 ├───────────╮ │"," │ ╰─────────────╯ │ │"," │ ▲ │ │"," │ │ flow_edge_141_6 │ flow_edge_141_11 │"," │ │ │ │"," │ ╭──────┴──────╮ │ │"," │ │ Node F141_6 │◀──────────┤ flow_edge_141_13 │"," │ ╰─────────────╯ │ │"," │ ▲ │ │"," │ │ flow_edge_141_5 │ │"," │ │ │ │"," │ ╭──────┴──────╮ │ │"," │ │ Node F141_5 │◀──────────╯ │"," │ ╰─────────────╯ │"," │ ▲ │"," │ │ flow_edge_141_4 │"," │ │ │"," │ ╭──────┴──────╮ │"," flow_edge_141_7 │ │ Node F141_4 ├───╮ │"," │ ╰─────────────╯ │ flow_edge_141_8 │"," │ ▲ │ │"," │ ╰─────────┬╯ │"," │ ╭─────────╯ flow_edge_141_3 │"," │ ╭──────┴──────╮ │"," ├──┤ Node F141_3 ├───────────╮ │"," │ ╰─────────────╯ │ │"," │ ▲ │ │"," │ │ flow_edge_141_2 │ flow_edge_141_10 │"," │ │ │ │"," │ ╭──────┴──────╮ │ │"," │ │ Node F141_2 │◀─┬────────┴───────────────────╯"," │ ╰─────────────╯ │"," │ │"," │ flow_edge_141_9 │ flow_edge_141_1 "," │ │"," │ ╭─────────────╮ │"," ├─▶│ Node F141_1 ├──╯"," │ ╰─────────────╯"," │ ▲"," │ │ flow_edge_141_0 "," │ │"," │ ╭──────┴──────╮"," ╰─▶│ Node F141_0 │"," ╰─────────────╯"],"runs":[[[27,1],[11,5],[18,10],[11,5]],[[20,1],[7,2],[1,4],[7,2],[31,1],[1,5]],[[17,1],[1,5],[1,7],[1,4],[1,6],[13,3],[1,4],[12,5],[19,1],[1,5]],[[17,1],[1,5],[2,1],[15,2],[11,1],[1,5],[19,1],[1,5]],[[17,1],[1,5],[9,1],[1,5],[18,1],[1,5],[19,1],[1,5]],[[17,1],[1,5],[9,1],[1,7],[17,10],[1,1],[1,5],[18,10],[1,1],[1,5]],[[17,1],[1,5],[9,1],[1,4],[18,1],[1,5],[19,1],[1,5]],[[17,1],[1,5],[2,1],[7,2],[1,6],[7,2],[11,1],[1,5],[19,1],[1,5]],[[17,1],[1,5],[2,1],[1,2],[13,3],[1,2],[12,5],[18,10],[1,1],[1,5]],[[17,1],[1,5],[2,1],[15,2],[11,1],[1,5],[19,1],[1,5]],[[17,1],[1,5],[9,1],[1,5],[18,1],[1,5],[19,1],[1,5]],[[17,1],[1,5],[9,1],[1,7],[17,10],[1,1],[1,5],[19,1],[1,5]],[[17,1],[1,5],[9,1],[1,4],[18,1],[1,5],[19,1],[1,5]],[[17,1],[1,5],[2,1],[7,2],[1,6],[7,2],[11,1],[1,5],[19,1],[1,5]],[[17,1],[1,5],[2,1],[1,2],[13,3],[1,2],[12,5],[19,1],[1,5]],[[17,1],[1,5],[2,1],[15,2],[31,1],[1,5]],[[17,1],[1,5],[9,1],[1,5],[38,1],[1,5]],[[17,1],[1,5],[9,1],[1,7],[17,10],[21,1],[1,5]],[[17,1],[1,5],[9,1],[1,4],[38,1],[1,5]],[[17,1],[1,5],[2,1],[7,2],[1,6],[7,2],[31,1],[1,5]],[[17,10],[1,5],[2,1],[1,2],[13,3],[1,6],[1,4],[1,7],[1,8],[1,5],[27,1],[1,5]],[[17,1],[1,5],[2,1],[15,2],[3,1],[1,5],[17,10],[10,1],[1,5]],[[17,1],[1,5],[9,1],[1,5],[10,1],[1,5],[27,1],[1,5]],[[17,1],[1,5],[9,1],[12,5],[27,1],[1,5]],[[17,1],[1,5],[9,1],[11,5],[17,10],[11,1],[1,5]],[[17,1],[1,5],[2,1],[7,2],[1,4],[7,2],[31,1],[1,5]],[[17,1],[1,5],[1,7],[1,4],[1,6],[13,3],[2,9],[3,6],[2,4],[3,7],[2,8],[1,5],[19,1],[1,5]],[[17,1],[1,5],[2,1],[15,2],[11,1],[1,5],[19,1],[1,5]],[[17,1],[1,5],[9,1],[1,5],[18,1],[1,5],[19,1],[1,5]],[[17,1],[1,5],[9,1],[1,7],[17,10],[1,1],[1,5],[18,10],[1,1],[1,5]],[[17,1],[1,5],[9,1],[1,4],[18,1],[1,5],[19,1],[1,5]],[[17,1],[1,5],[2,1],[7,2],[1,6],[7,2],[11,1],[1,5],[19,1],[1,5]],[[17,1],[1,5],[2,1],[1,2],[13,3],[1,2],[32,5]],[[17,1],[1,5],[2,1],[15,2],[2,1],[1,5]],[[17,1],[1,5],[19,1],[1,5]],[[17,1],[1,5],[2,1],[17,10],[1,5],[17,10]],[[17,1],[1,5],[19,1],[1,5]],[[17,1],[1,5],[2,1],[15,2],[2,1],[1,5]],[[17,1],[3,5],[1,2],[13,3],[1,6],[1,4],[1,7],[1,5]],[[17,1],[1,5],[2,1],[15,2]],[[17,1],[1,5],[9,1],[1,5]],[[17,1],[1,5],[9,1],[1,7],[17,10]],[[17,1],[1,5],[9,1],[1,4]],[[17,1],[1,5],[2,1],[7,2],[1,6],[7,2]],[[17,1],[3,5],[1,2],[13,3],[1,2]],[[20,1],[15,2]]]}, + {"width":120,"source":"flowchart BT\n F223_0[Node F223_0]\n F223_1[Node F223_1]\n F223_2[Node F223_2]\n F223_3[Node F223_3]\n F223_4[Node F223_4]\n F223_5[Node F223_5]\n F223_6[Node F223_6]\n F223_0 -->|flow_edge_223_0| F223_1\n F223_1 -->|flow_edge_223_1| F223_2\n F223_2 -->|flow_edge_223_2| F223_3\n F223_3 -->|flow_edge_223_3| F223_4\n F223_4 -->|flow_edge_223_4| F223_5\n F223_5 -->|flow_edge_223_5| F223_6\n F223_5 -->|flow_edge_223_6| F223_2\n F223_2 -->|flow_edge_223_7| F223_6\n F223_3 -->|flow_edge_223_8| F223_6","height":38,"lines":[" ╭───────── flow_edge_223_5 ──────────╮"," │ │"," ╭──────────┬ flow_edge_223_8 ───────────╮ │"," │ ││ flow_edge_223_6 │ │"," │ ││ │ │"," │ ││╭─────────────╮ │ │"," │ │╰┤ Node F223_5 │ │ │"," │ │ ╰─────────────╯ │ │"," │ │ ▲ │ │"," │ │ │ flow_edge_223_4 │ │"," │ │ │ │ │"," │ │ ╭──────┴──────╮ │ │"," ╭─────────┼──────────┼▶│ Node F223_4 │ │ │"," │ │ │ ╰─────────────╯ │ │"," │ │ │ │ │"," flow_edge_223_3 │ │ │ │ │"," │ │ │ ▼ │"," │ ╭──────┴──────╮ │ ╭─────────────╮ │"," ╰──┤ Node F223_3 │ │ │ Node F223_6 │◀╯"," ╰─────────────╯ │ ╰─────────────╯"," ▲ │ ▲"," ╰──────────┼────────────────────────────┼─────────╮"," │ ╭─ flow_edge_223_7 ─╯ │"," │ ╭──────┴──────╮ │"," ╰▶│ Node F223_2 ├─── flow_edge_223_2 ──╯"," ╰─────────────╯"," ▲"," │ flow_edge_223_1 "," │"," ╭──────┴──────╮"," │ Node F223_1 │"," ╰─────────────╯"," ▲"," │ flow_edge_223_0 "," │"," ╭──────┴──────╮"," │ Node F223_0 │"," ╰─────────────╯"],"runs":[[[39,1],[10,5],[17,10],[11,5]],[[39,1],[1,5],[36,1],[1,5]],[[27,1],[12,5],[17,10],[12,5],[8,1],[1,5]],[[27,1],[1,5],[10,1],[2,5],[17,10],[10,1],[1,5],[8,1],[1,5]],[[27,1],[1,5],[10,1],[2,5],[27,1],[1,5],[8,1],[1,5]],[[27,1],[1,5],[10,1],[2,5],[15,2],[12,1],[1,5],[8,1],[1,5]],[[27,1],[1,5],[10,1],[2,5],[1,4],[13,3],[1,2],[12,1],[1,5],[8,1],[1,5]],[[27,1],[1,5],[10,1],[1,5],[1,1],[15,2],[12,1],[1,5],[8,1],[1,5]],[[27,1],[1,5],[10,1],[1,5],[8,1],[1,5],[19,1],[1,5],[8,1],[1,5]],[[27,1],[1,5],[10,1],[1,5],[8,1],[1,7],[17,10],[2,1],[1,5],[8,1],[1,5]],[[27,1],[1,5],[10,1],[1,5],[8,1],[1,4],[19,1],[1,5],[8,1],[1,5]],[[27,1],[1,5],[10,1],[1,5],[1,1],[7,2],[1,6],[7,2],[12,1],[1,5],[8,1],[1,5]],[[17,1],[23,5],[1,2],[13,3],[1,2],[12,1],[1,5],[8,1],[1,5]],[[17,1],[1,5],[9,1],[1,8],[10,1],[1,5],[1,1],[15,2],[12,1],[1,5],[8,1],[1,5]],[[17,1],[1,5],[9,1],[1,7],[10,1],[1,5],[28,1],[1,5],[8,1],[1,5]],[[17,10],[1,5],[9,1],[1,4],[10,1],[1,5],[28,1],[1,5],[8,1],[1,5]],[[17,1],[1,5],[9,1],[1,6],[10,1],[1,5],[28,1],[1,5],[8,1],[1,5]],[[17,1],[1,5],[2,1],[7,2],[1,9],[7,2],[3,1],[1,5],[21,1],[15,2],[1,1],[1,5]],[[17,1],[1,5],[1,7],[1,4],[1,6],[13,3],[1,2],[3,1],[1,5],[21,1],[1,2],[13,3],[1,2],[2,5]],[[20,1],[15,2],[3,1],[1,5],[21,1],[15,2]],[[27,1],[1,5],[10,1],[1,5],[28,1],[1,5]],[[27,1],[51,5]],[[38,1],[1,5],[8,1],[2,5],[17,10],[2,5],[9,1],[1,5]],[[38,1],[1,5],[1,1],[7,2],[1,4],[7,2],[22,1],[1,5]],[[38,1],[2,5],[1,2],[13,3],[1,6],[1,4],[1,7],[1,8],[17,10],[3,5]],[[40,1],[15,2]],[[47,1],[1,5]],[[47,1],[1,7],[17,10]],[[47,1],[1,4]],[[40,1],[7,2],[1,6],[7,2]],[[40,1],[1,2],[13,3],[1,2]],[[40,1],[15,2]],[[47,1],[1,5]],[[47,1],[1,7],[17,10]],[[47,1],[1,4]],[[40,1],[7,2],[1,6],[7,2]],[[40,1],[1,2],[13,3],[1,2]],[[40,1],[15,2]]]}, + {"width":120,"source":"flowchart TB\n F238_0[Node F238_0]\n F238_1[Node F238_1]\n F238_2[Node F238_2]\n F238_3[Node F238_3]\n F238_4[Node F238_4]\n F238_5[Node F238_5]\n F238_0 -->|flow_edge_238_0| F238_1\n F238_1 -->|flow_edge_238_1| F238_2\n F238_2 -->|flow_edge_238_2| F238_3\n F238_3 -->|flow_edge_238_3| F238_4\n F238_4 -->|flow_edge_238_4| F238_5\n F238_1 -->|flow_edge_238_5| F238_2\n F238_3 -->|flow_edge_238_6| F238_3\n F238_2 -->|flow_edge_238_7| F238_0\n F238_1 -->|flow_edge_238_8| F238_5\n F238_1 -->|flow_edge_238_9| F238_1\n F238_4 -->|flow_edge_238_10| F238_4\n F238_4 -->|flow_edge_238_11| F238_0\n F238_2 -->|flow_edge_238_12| F238_2","height":33,"lines":[" ╭──┬╮ flow_edge_238_0 "," │ ││"," │ ││"," │ ││╭─────────────╮"," │ ├▶┤ Node F238_0 │◀──────────────────────╮"," │ │ ╰─────────────╯ │"," │ │ │"," │ │ │"," flow_edge_238_7 │ │ │"," flow_edge_238_1 │ │ ╭─────────────╮ │"," ╭─────────────────┼──┴▶┤ Node F238_1 ├───╮ │"," flow_edge_238_8 flow_edge_238_5 │ ╰─────────────╯ │ flow_edge_238_9 │"," │ │ ▲ │ │"," ├─────────────────┼───────────┴──────────┴─────────╮ │"," │ │ ▼ │"," │ ╭─────────────╮│ ╭─────────────╮ │"," ├─▶┤ Node F238_2 ├╯ │ Node F238_5 │◀╮│"," │ ╰──────┬──────╯ ╰─────────────╯ ││"," │ │ ││"," flow_edge_238_2 │ │ ││"," │ │ ││"," │ │ ╭─────────────╮ ││"," ├─────────┼───────────▶│ Node F238_3 ├─── flow_edge_238_3 ──┼┤"," │ │ ╰─────────────╯ │ flow_edge_238_6 ││"," │ │ ▲ │ ││"," │ │ flow_edge_238_12 ├──────────┴──────────────────┼┤"," │ │ ▼ ││"," │ │ ╭─────────────╮ ││"," │ │ ╭┤ Node F238_4 ├─── flow_edge_238_11 ─┼╯"," │ │ │╰─────────────╯ │ flow_edge_238_10 │"," │ │ │ ▲ │ │"," │ │ │ ╰──────────╯ │"," ╰─────────╯ ╰────────── flow_edge_238_4 ──────────╯"],"runs":[[[35,1],[5,5],[17,10]],[[35,1],[1,5],[2,1],[2,5]],[[35,1],[1,5],[2,1],[2,5]],[[35,1],[1,5],[2,1],[2,5],[15,2]],[[35,1],[1,5],[2,1],[2,5],[1,4],[13,3],[1,2],[24,5]],[[35,1],[1,5],[2,1],[1,5],[1,1],[15,2],[23,1],[1,5]],[[35,1],[1,5],[2,1],[1,5],[39,1],[1,5]],[[35,1],[1,5],[2,1],[1,5],[39,1],[1,5]],[[18,1],[17,10],[1,5],[2,1],[1,5],[39,1],[1,5]],[[17,1],[17,10],[1,1],[1,5],[2,1],[1,5],[1,1],[15,2],[23,1],[1,5]],[[17,1],[23,5],[1,4],[13,3],[1,6],[1,4],[1,7],[1,8],[1,5],[19,1],[1,5]],[[34,10],[1,1],[1,5],[4,1],[15,2],[3,1],[1,5],[17,10],[2,1],[1,5]],[[17,1],[1,5],[17,1],[1,5],[11,1],[1,5],[10,1],[1,5],[19,1],[1,5]],[[17,1],[52,5],[9,1],[1,5]],[[17,1],[1,5],[17,1],[1,5],[32,1],[1,5],[9,1],[1,5]],[[17,1],[1,5],[2,1],[15,2],[1,5],[25,1],[15,2],[2,1],[1,5]],[[17,1],[3,5],[1,4],[13,3],[1,4],[1,5],[25,1],[1,2],[13,3],[1,2],[3,5]],[[17,1],[1,5],[2,1],[7,2],[1,9],[7,2],[26,1],[15,2],[1,1],[2,5]],[[17,1],[1,5],[9,1],[1,6],[49,1],[2,5]],[[17,10],[1,5],[9,1],[1,4],[49,1],[2,5]],[[17,1],[1,5],[9,1],[1,7],[49,1],[2,5]],[[17,1],[1,5],[9,1],[1,8],[12,1],[15,2],[22,1],[2,5]],[[17,1],[23,5],[1,2],[13,3],[1,4],[3,5],[17,10],[4,5]],[[17,1],[1,5],[9,1],[1,5],[12,1],[15,2],[3,1],[1,5],[17,10],[1,1],[2,5]],[[17,1],[1,5],[9,1],[1,5],[19,1],[1,5],[10,1],[1,5],[18,1],[2,5]],[[17,1],[1,5],[9,1],[1,5],[18,10],[1,1],[32,5]],[[17,1],[1,5],[9,1],[1,5],[19,1],[1,5],[29,1],[2,5]],[[17,1],[1,5],[9,1],[1,5],[12,1],[15,2],[22,1],[2,5]],[[17,1],[1,5],[9,1],[1,5],[11,1],[1,5],[1,4],[13,3],[1,4],[3,5],[18,10],[3,5]],[[17,1],[1,5],[9,1],[1,5],[11,1],[1,5],[15,2],[3,1],[1,5],[18,10],[1,5]],[[17,1],[1,5],[9,1],[1,5],[11,1],[1,5],[7,1],[1,5],[10,1],[1,5],[18,1],[1,5]],[[17,1],[1,5],[9,1],[1,5],[11,1],[1,5],[7,1],[12,5],[18,1],[1,5]],[[17,1],[11,5],[11,1],[11,5],[17,10],[11,5]]]}, + {"width":120,"source":"flowchart LR\n A[Source] -->|first 1<br/>first 2<br/>first 3<br/>first 4| B[Target]\n A -->|second 1<br/>second 2<br/>second 3<br/>second 4| B\n A -->|third 1<br/>third 2<br/>third 3<br/>third 4| B","height":18,"lines":["╭────────╮ ╭────────╮","│ Source │ │ Target │","╰────┬───╯ ╰────────╯"," │ first 1 ▲"," │ first 2 │"," │ first 3 │"," │ first 4 │"," ├──────────────────────────┤"," │ second 1 │"," │ second 2 │"," │ second 3 │"," │ second 4 │"," ├──────────────────────────┤"," │ third 1 │"," │ third 2 │"," │ third 3 │"," │ third 4 │"," ╰──────────────────────────╯"],"runs":[[[10,2],[17,1],[10,2]],[[1,2],[8,3],[1,2],[17,1],[1,2],[8,3],[1,2]],[[5,2],[1,4],[4,2],[17,1],[10,2]],[[5,1],[1,5],[8,1],[9,10],[9,1],[1,5]],[[5,1],[1,5],[8,1],[9,10],[9,1],[1,5]],[[5,1],[1,5],[8,1],[9,10],[9,1],[1,5]],[[5,1],[1,5],[8,1],[9,10],[9,1],[1,5]],[[5,1],[28,5]],[[5,1],[1,5],[8,1],[10,10],[8,1],[1,5]],[[5,1],[1,5],[8,1],[10,10],[8,1],[1,5]],[[5,1],[1,5],[8,1],[10,10],[8,1],[1,5]],[[5,1],[1,5],[8,1],[10,10],[8,1],[1,5]],[[5,1],[28,5]],[[5,1],[1,5],[8,1],[9,10],[9,1],[1,5]],[[5,1],[1,5],[8,1],[9,10],[9,1],[1,5]],[[5,1],[1,5],[8,1],[9,10],[9,1],[1,5]],[[5,1],[1,5],[8,1],[9,10],[9,1],[1,5]],[[5,1],[28,5]]]}, + {"width":120,"source":"flowchart TD\n A[Source] -->|first lane<br/>first two| B[Target]\n A -->|second lane<br/>second two| B\n A -->|third lane<br/>third two| B","height":10,"lines":["╭────────╮","│ Source ├┬─────────────┬──────────────╮","╰────────╯│ │ │"," │ │ │"," │ first lane │ second lane │ third lane "," │ first two │ second two │ third two "," │ │ │","╭────────╮│ │ │","│ Target │▼─────────────┴──────────────╯","╰────────╯"],"runs":[[[10,2]],[[1,2],[8,3],[1,4],[30,5]],[[10,2],[1,5],[13,1],[1,5],[14,1],[1,5]],[[10,1],[1,5],[13,1],[1,5],[14,1],[1,5]],[[10,1],[1,5],[12,10],[1,1],[1,5],[13,10],[1,1],[1,5],[12,10]],[[10,1],[1,5],[11,10],[2,1],[1,5],[12,10],[2,1],[1,5],[11,10]],[[10,1],[1,5],[13,1],[1,5],[14,1],[1,5]],[[10,2],[1,5],[13,1],[1,5],[14,1],[1,5]],[[1,2],[8,3],[1,2],[30,5]],[[10,2]]]}, + {"width":120,"source":"flowchart TD\n A[Source] -->|one alpha<br/>one beta| B[Target]\n A -->|two alpha<br/>two beta| B\n A -->|three alpha<br/>three beta| B\n A -->|four alpha<br/>four beta| B\n A -->|five alpha<br/>five beta| B","height":10,"lines":["╭────────╮","│ Source ├┬────────────┬────────────┬──────────────┬─────────────╮","╰────────╯│ │ │ │ │"," │ │ │ │ │"," │ one alpha │ two alpha │ three alpha │ four alpha │ five alpha "," │ one beta │ two beta │ three beta │ four beta │ five beta "," │ │ │ │ │","╭────────╮│ │ │ │ │","│ Target │▼────────────┴────────────┴──────────────┴─────────────╯","╰────────╯"],"runs":[[[10,2]],[[1,2],[8,3],[1,4],[56,5]],[[10,2],[1,5],[12,1],[1,5],[12,1],[1,5],[14,1],[1,5],[13,1],[1,5]],[[10,1],[1,5],[12,1],[1,5],[12,1],[1,5],[14,1],[1,5],[13,1],[1,5]],[[10,1],[1,5],[11,10],[1,1],[1,5],[11,10],[1,1],[1,5],[13,10],[1,1],[1,5],[12,10],[1,1],[1,5],[12,10]],[[10,1],[1,5],[10,10],[2,1],[1,5],[10,10],[2,1],[1,5],[12,10],[2,1],[1,5],[11,10],[2,1],[1,5],[11,10]],[[10,1],[1,5],[12,1],[1,5],[12,1],[1,5],[14,1],[1,5],[13,1],[1,5]],[[10,2],[1,5],[12,1],[1,5],[12,1],[1,5],[14,1],[1,5],[13,1],[1,5]],[[1,2],[8,3],[1,2],[56,5]],[[10,2]]]}, + {"width":120,"source":"flowchart TD\n S[The Boss] --> A[A]\n S --> B[B]\n S --> C[C]\n S --> D[D]\n S --> E[E]\n S --> F[F]\n S --> G[G]\n S --> H[H]\n S --> I[I]\n S --> J[J]","height":8,"lines":[" ╭──────────╮"," │ The Boss │"," ╰─────┬────╯"," ╭─────────┬─────────┬─────────┬─────────┬────┴────┬─────────┬─────────┬─────────┬─────────╮"," ▼ ▼ ▼ ▼ ▼ ▼ ▼ ▼ ▼ ▼","╭───╮ ╭───╮ ╭───╮ ╭───╮ ╭───╮ ╭───╮ ╭───╮ ╭───╮ ╭───╮ ╭───╮","│ A │ │ B │ │ C │ │ D │ │ E │ │ F │ │ G │ │ H │ │ I │ │ J │","╰───╯ ╰───╯ ╰───╯ ╰───╯ ╰───╯ ╰───╯ ╰───╯ ╰───╯ ╰───╯ ╰───╯"],"runs":[[[41,1],[12,2]],[[41,1],[1,2],[10,3],[1,2]],[[41,1],[6,2],[1,4],[5,2]],[[2,1],[91,5]],[[2,1],[1,5],[9,1],[1,5],[9,1],[1,5],[9,1],[1,5],[9,1],[1,5],[9,1],[1,5],[9,1],[1,5],[9,1],[1,5],[9,1],[1,5],[9,1],[1,5]],[[5,2],[5,1],[5,2],[5,1],[5,2],[5,1],[5,2],[5,1],[5,2],[5,1],[5,2],[5,1],[5,2],[5,1],[5,2],[5,1],[5,2],[5,1],[5,2]],[[1,2],[3,3],[1,2],[5,1],[1,2],[3,3],[1,2],[5,1],[1,2],[3,3],[1,2],[5,1],[1,2],[3,3],[1,2],[5,1],[1,2],[3,3],[1,2],[5,1],[1,2],[3,3],[1,2],[5,1],[1,2],[3,3],[1,2],[5,1],[1,2],[3,3],[1,2],[5,1],[1,2],[3,3],[1,2],[5,1],[1,2],[3,3],[1,2]],[[5,2],[5,1],[5,2],[5,1],[5,2],[5,1],[5,2],[5,1],[5,2],[5,1],[5,2],[5,1],[5,2],[5,1],[5,2],[5,1],[5,2],[5,1],[5,2]]]}, + {"width":120,"source":"flowchart TD\n A[Start] --> B[Validate]\n B --> C[Publish]\n A --> C","height":13,"lines":[" ╭───────╮"," │ Start ├────╮"," ╰───┬───╯ │"," ╰╮ │"," ▼ │","╭──────────╮ │","│ Validate │ │","╰────┬─────╯ │"," │ │"," ▼ │","╭─────────╮ │","│ Publish │◀──╯","╰─────────╯"],"runs":[[[1,1],[9,2]],[[1,1],[1,2],[7,3],[1,9],[1,6],[1,4],[1,7],[1,8],[1,5]],[[1,1],[4,2],[1,4],[4,2],[4,1],[1,5]],[[5,1],[2,5],[7,1],[1,5]],[[6,1],[1,5],[7,1],[1,5]],[[12,2],[2,1],[1,5]],[[1,2],[10,3],[1,2],[2,1],[1,5]],[[5,2],[1,6],[6,2],[2,1],[1,5]],[[5,1],[1,7],[8,1],[1,5]],[[5,1],[1,5],[8,1],[1,5]],[[11,2],[3,1],[1,5]],[[1,2],[9,3],[1,2],[4,5]],[[11,2]]]}, + {"width":120,"source":"flowchart TD\n A{Question} -->|Path one| B[Step one]\n A -->|Path two| C[Step two]\n B --> D{Check one}\n D -->|No| E{Retry one}\n E -->|No| B\n C --> F{Check two}\n F -->|No| G{Retry two}\n G -->|No| C\n E -->|Yes| H[Rethink]\n G -->|Yes| H\n H --> A\n D -->|Yes| I([Done])\n F -->|Yes| I","height":33,"lines":[" ╭─────────╮"," ╭─╯ ╰─╮"," │ Question │◀──────────────────────────╮"," ╰─╮ ╭─╯ │"," ╰────┬────╯ │"," ╭─ Path one ──┴── Path two ───╮ │"," │ │ │"," ▼ ▼ │"," ╭──────────╮ ╭──────────╮ │","╭──── No ─────▶│ Step one │ │ Step two │◀──── No ────┤","│ ╰─────┬────╯ ╰─────┬────╯ │","│ │ │ │","│ │ ╭─╯ │","│ ▼ ▼ │","│ ╭─────────╮ ╭─────────╮ │","│ ╭─╯ ╰─╮ ╭─╯ ╰─╮ │","│ │ Check one │ │ Check two │ │","│ ╰─╮ ╭─╯ ╰─╮ ╭─╯ │","│ ╰────┬────╯ ╰────┬────╯ │","│ ╭── No ───┴──── Yes ─────┬─── Yes ────┴─── No ───╮ │","│ │ │ │ │","│ ▼ │ ▼ │","│ ╭─────────╮ ▼ ╭─────────╮ │","│ ╭─╯ ╰─╮ ╭──────╮ ╭─╯ ╰─╮ │","╰───┤ Retry one │ │ Done │ │ Retry two ├──┤"," ╰─╮ ╭─╯ ╰──────╯ ╰─╮ ╭─╯ │"," ╰────┬────╯ ╰────┬────╯ │"," │ │ │"," ╰───────── Yes ─────────┬───────── Yes ──────────╯ │"," ▼ │"," ╭─────────╮ │"," │ Rethink ├─────────────────────────────╯"," ╰─────────╯"],"runs":[[[30,1],[11,2]],[[28,1],[3,2],[9,1],[3,2]],[[28,1],[1,2],[2,1],[8,3],[3,1],[1,2],[28,5]],[[28,1],[3,2],[9,1],[3,2],[27,1],[1,5]],[[30,1],[5,2],[1,4],[5,2],[29,1],[1,5]],[[21,1],[2,5],[10,10],[5,5],[10,10],[4,5],[18,1],[1,5]],[[21,1],[1,5],[29,1],[1,5],[18,1],[1,5]],[[21,1],[1,5],[29,1],[1,5],[18,1],[1,5]],[[15,1],[12,2],[18,1],[12,2],[13,1],[1,5]],[[5,5],[4,10],[6,5],[1,2],[10,3],[1,2],[18,1],[1,2],[10,3],[1,2],[5,5],[4,10],[5,5]],[[1,5],[14,1],[6,2],[1,6],[5,2],[18,1],[6,2],[1,6],[5,2],[13,1],[1,5]],[[1,5],[20,1],[1,4],[29,1],[1,7],[18,1],[1,5]],[[1,5],[20,1],[1,7],[27,1],[3,5],[18,1],[1,5]],[[1,5],[20,1],[1,5],[27,1],[1,5],[20,1],[1,5]],[[1,5],[15,1],[11,2],[17,1],[11,2],[15,1],[1,5]],[[1,5],[13,1],[3,2],[9,1],[3,2],[13,1],[3,2],[9,1],[3,2],[13,1],[1,5]],[[1,5],[13,1],[1,2],[2,1],[9,3],[2,1],[1,2],[13,1],[1,2],[2,1],[9,3],[2,1],[1,2],[13,1],[1,5]],[[1,5],[13,1],[3,2],[9,1],[3,2],[13,1],[3,2],[9,1],[3,2],[13,1],[1,5]],[[1,5],[15,1],[5,2],[1,4],[5,2],[17,1],[5,2],[1,4],[5,2],[15,1],[1,5]],[[1,5],[10,1],[3,5],[4,10],[8,5],[5,10],[9,5],[5,10],[8,5],[4,10],[4,5],[9,1],[1,5]],[[1,5],[10,1],[1,5],[24,1],[1,5],[23,1],[1,5],[9,1],[1,5]],[[1,5],[10,1],[1,5],[24,1],[1,5],[23,1],[1,5],[9,1],[1,5]],[[1,5],[5,1],[11,2],[19,1],[1,5],[18,1],[11,2],[4,1],[1,5]],[[1,5],[3,1],[3,2],[9,1],[3,2],[13,1],[8,2],[13,1],[3,2],[9,1],[3,2],[2,1],[1,5]],[[1,5],[1,8],[1,7],[1,4],[1,6],[2,1],[9,3],[2,1],[1,2],[13,1],[1,2],[6,3],[1,2],[13,1],[1,2],[2,1],[9,3],[2,1],[1,6],[1,4],[1,7],[1,5]],[[4,1],[3,2],[9,1],[3,2],[13,1],[8,2],[13,1],[3,2],[9,1],[3,2],[2,1],[1,5]],[[6,1],[5,2],[1,6],[5,2],[38,1],[5,2],[1,6],[5,2],[4,1],[1,5]],[[11,1],[1,7],[48,1],[1,7],[9,1],[1,5]],[[11,1],[10,5],[5,10],[19,5],[5,10],[11,5],[9,1],[1,5]],[[35,1],[1,5],[34,1],[1,5]],[[30,1],[11,2],[29,1],[1,5]],[[30,1],[1,2],[9,3],[6,9],[6,6],[6,4],[6,7],[6,8],[1,5]],[[30,1],[11,2]]]}, + {"width":120,"source":"flowchart LR\n A[Start] --> B[Validate]\n B --> C[Publish]\n A --> C","height":6,"lines":[" ╭─────────────────────────────╮"," │ │"," │ ▼","╭───┴───╮ ╭──────────╮ ╭─────────╮","│ Start ├───▶│ Validate ├───▶│ Publish │","╰───────╯ ╰──────────╯ ╰─────────╯"],"runs":[[[4,1],[31,5]],[[4,1],[1,7],[29,1],[1,5]],[[4,1],[1,4],[29,1],[1,5]],[[4,2],[1,6],[4,2],[4,1],[12,2],[4,1],[11,2]],[[1,2],[7,3],[1,6],[1,7],[3,5],[1,2],[10,3],[1,6],[1,4],[1,7],[1,8],[1,5],[1,2],[9,3],[1,2]],[[9,2],[4,1],[12,2],[4,1],[11,2]]]}, + {"width":120,"source":"flowchart LR\n C[ReceiveInput] --> P[Persist ActivityRequested]\n P --> S[Self RunPendingActivity]\n S --> O[OpenCode async task]\n O --> M[Self OutputObserved]\n M --> E[Persist OutputObserved]","height":28,"lines":[" ╭──────────────╮"," │ ReceiveInput │"," ╰───────┬──────╯"," │"," ▼","╭───────────────────────────╮","│ Persist ActivityRequested │","╰─────────────┬─────────────╯"," │"," ▼"," ╭─────────────────────────╮"," │ Self RunPendingActivity │"," ╰────────────┬────────────╯"," │"," ▼"," ╭─────────────────────╮"," │ OpenCode async task │"," ╰──────────┬──────────╯"," │"," ▼"," ╭─────────────────────╮"," │ Self OutputObserved │"," ╰──────────┬──────────╯"," │"," ▼"," ╭────────────────────────╮"," │ Persist OutputObserved │"," ╰────────────────────────╯"],"runs":[[[6,1],[16,2]],[[6,1],[1,2],[14,3],[1,2]],[[6,1],[8,2],[1,6],[7,2]],[[14,1],[1,7]],[[14,1],[1,5]],[[29,2]],[[1,2],[27,3],[1,2]],[[14,2],[1,6],[14,2]],[[14,1],[1,7]],[[14,1],[1,5]],[[1,1],[27,2]],[[1,1],[1,2],[25,3],[1,2]],[[1,1],[13,2],[1,6],[13,2]],[[14,1],[1,7]],[[14,1],[1,5]],[[3,1],[23,2]],[[3,1],[1,2],[21,3],[1,2]],[[3,1],[11,2],[1,6],[11,2]],[[14,1],[1,7]],[[14,1],[1,5]],[[3,1],[23,2]],[[3,1],[1,2],[21,3],[1,2]],[[3,1],[11,2],[1,6],[11,2]],[[14,1],[1,7]],[[14,1],[1,5]],[[1,1],[26,2]],[[1,1],[1,2],[24,3],[1,2]],[[1,1],[26,2]]]}, + {"width":120,"source":"flowchart LR\n C[Commands] --> A[AgentThread activation]\n A -->|persist facts| J[(AgentThread journal)]\n A -->|resume / steer / abort| O[OpenCode session]\n O -->|observed output| A\n J -->|visible output requested| R[Reactor]\n R --> D[Discord]","height":27,"lines":[" ╭──────────╮"," │ Commands │"," ╰─────┬────╯"," │"," ▼"," ╭────────────────────────╮"," │ AgentThread activation │◀───── observed output ─────╮"," ╰────────────┬───────────╯ │"," ╭───── persist facts ──────┴── resume / steer / abort ──╮ │"," │ │ │"," ▼ │ │","╭─────────────────────╮ ▼ │","├─────────────────────┤ ╭──────────────────╮ │","│ AgentThread journal │ │ OpenCode session ├──╯","├─────────────────────┤ ╰──────────────────╯","╰──────────┬──────────╯"," │"," ╰ visible output requested ╮"," ▼"," ╭─────────╮"," │ Reactor │"," ╰────┬────╯"," │"," ▼"," ╭─────────╮"," │ Discord │"," ╰─────────╯"],"runs":[[[32,1],[12,2]],[[32,1],[1,2],[10,3],[1,2]],[[32,1],[6,2],[1,6],[5,2]],[[38,1],[1,7]],[[38,1],[1,5]],[[25,1],[26,2]],[[25,1],[1,2],[24,3],[1,2],[6,5],[17,10],[6,5]],[[25,1],[13,2],[1,4],[12,2],[28,1],[1,5]],[[11,1],[6,5],[15,10],[9,5],[24,10],[3,5],[11,1],[1,5]],[[11,1],[1,5],[55,1],[1,5],[11,1],[1,5]],[[11,1],[1,5],[55,1],[1,5],[11,1],[1,5]],[[23,2],[44,1],[1,5],[11,1],[1,5]],[[23,2],[34,1],[20,2],[2,1],[1,5]],[[1,2],[21,3],[1,2],[34,1],[1,2],[18,3],[1,6],[1,4],[1,7],[1,5]],[[23,2],[34,1],[20,2]],[[11,2],[1,6],[11,2]],[[11,1],[1,7]],[[11,1],[1,5],[26,10],[1,5]],[[38,1],[1,5]],[[33,1],[11,2]],[[33,1],[1,2],[9,3],[1,2]],[[33,1],[5,2],[1,6],[5,2]],[[38,1],[1,7]],[[38,1],[1,5]],[[33,1],[11,2]],[[33,1],[1,2],[9,3],[1,2]],[[33,1],[11,2]]]}, + {"width":120,"source":"flowchart BT\n N0[Outside zero]\n subgraph Outer\n N2[Two]\n subgraph Inner\n direction LR\n N3[Three]\n N4[Four]\n end\n N5[X]\n end\n N7[Outside seven]\n N7 --> N2\n N2 -->|label 6| N5\n N5 --> N4\n N0 --> N7","height":26,"lines":[" ╭─────────╮"," │ │"," │ │"," ╭───────┴──────╮ │"," │ Outside zero │ │"," ╰──────────────╯ │"," ▼"," ╭───────────────╮","╭───────────────┤ Outside seven │","│ ╰───────────────╯","│","│╭─ Outer ────────────────────────────────────────╮","││ ╭───╮ ╭─ Inner ───╮ │","││ ╭─────────────────▶│ X │ │ ╭───────╮ │ │","││ │ ╰─┬─╯ │ │ Three │ │ │","││ │ ╰────────╮ │ ╰───────╯ │ │","││ │ │ │ │ │","││ ╰───── label 6 ──────╮ │ │ │ │","││ ╭──┴──╮ │ │ │ │","╰───────────────────▶│ Two │ │ │ │ │"," │ ╰─────╯ │ │ │ │"," │ │ │ ╭──────╮ │ │"," │ ╰───▶│ Four │ │ │"," │ │ ╰──────╯ │ │"," │ ╰───────────╯ │"," ╰────────────────────────────────────────────────╯"],"runs":[[[14,1],[11,5]],[[14,1],[1,7],[9,1],[1,5]],[[14,1],[1,4],[9,1],[1,5]],[[6,1],[8,2],[1,6],[7,2],[2,1],[1,5]],[[6,1],[1,2],[14,3],[1,2],[2,1],[1,5]],[[6,1],[16,2],[2,1],[1,5]],[[24,1],[1,5]],[[16,1],[17,2]],[[1,5],[3,8],[3,7],[4,4],[3,6],[3,9],[15,3],[1,2]],[[1,5],[15,1],[17,2]],[[1,5]],[[1,5],[2,0],[7,0],[41,0]],[[1,5],[1,0],[20,1],[5,2],[9,1],[2,0],[7,0],[4,0],[1,1],[1,0]],[[1,5],[1,0],[1,1],[19,5],[1,2],[3,3],[1,2],[9,1],[1,0],[1,1],[9,2],[1,1],[1,0],[1,1],[1,0]],[[1,5],[1,0],[1,1],[1,5],[18,1],[2,2],[1,4],[2,2],[9,1],[1,0],[1,1],[1,2],[7,3],[1,2],[1,1],[1,0],[1,1],[1,0]],[[1,5],[1,0],[1,1],[1,5],[20,1],[10,5],[2,1],[1,0],[1,1],[9,2],[1,1],[1,0],[1,1],[1,0]],[[1,5],[1,0],[1,1],[1,5],[29,1],[1,5],[2,1],[1,0],[11,1],[1,0],[1,1],[1,0]],[[1,5],[1,0],[1,1],[6,5],[9,10],[7,5],[8,1],[1,5],[2,1],[1,0],[11,1],[1,0],[1,1],[1,0]],[[1,5],[1,0],[19,1],[3,2],[1,4],[3,2],[5,1],[1,5],[2,1],[1,0],[11,1],[1,0],[1,1],[1,0]],[[21,5],[1,2],[5,3],[1,2],[5,1],[1,5],[2,1],[1,0],[11,1],[1,0],[1,1],[1,0]],[[1,1],[1,0],[19,1],[7,2],[5,1],[1,5],[2,1],[1,0],[11,1],[1,0],[1,1],[1,0]],[[1,1],[1,0],[31,1],[1,5],[2,1],[1,0],[1,1],[8,2],[2,1],[1,0],[1,1],[1,0]],[[1,1],[1,0],[31,1],[5,5],[1,2],[6,3],[1,2],[2,1],[1,0],[1,1],[1,0]],[[1,1],[1,0],[34,1],[1,0],[1,1],[8,2],[2,1],[1,0],[1,1],[1,0]],[[1,1],[1,0],[34,1],[13,0],[1,1],[1,0]],[[1,1],[50,0]]]}, + {"width":120,"source":"flowchart LR\n Input([Input]) --> Parse\n subgraph Outer[Outer orchestration]\n direction RL\n subgraph Inner[Inner pipeline]\n direction TD\n Parse[Parse request] --> Validate{Valid?}\n Validate -->|yes| Cache[(Cache)]\n Cache -->|stale| Validate\n end\n Validate --> Dispatch[[Dispatch work]]\n Dispatch -->|requeue| Parse\n end\n Dispatch -. result .-> Output([Output])\n Output -->|audit| Cache","height":46,"lines":[" ╭───────╮"," │ Input │"," ╰───┬───╯"," ╰──────────────────────────────────────╮"," ╭─ Outer orchestration ──────────────────────────────────────────────────────────╮ │"," │ ╭──────────────────── requeue ────────────────────╮ │ │"," │ │ │ │ │"," │ │ │ │ │"," │ │ ╭─ Inner pipeline ──────▼─────────╮ │ │"," │ │ │ ╭───────────────╮ │ │ │"," │ │ │ │ Parse request │◀──────╯"," │ │ │ ╰───────┬───────╯ │ │"," │ │ │ │ │ │"," │ │ │ │ │ │"," │ │ │ ▼ │ │"," │ │ │ ╭───────╮ │ │"," │ │ │ ╭─╯ ╰─╮ │ │"," │ ╭─┬──────┴──────┬─╮ │ │ Valid? │◀───────╮"," │ ╭┤ │Dispatch work│ │ │ ╰─╮ ╭─╯ │ │ │"," │ │╰─┴─────────────┴─╯ │ ╰───┬───╯ │ │ │","╭───────────┼─────────▲─────────────────────────────────────────────────┤ │ │ │","╰───────────┼─────────╯ │ ╭────── yes ──────╯ │ │ │"," │ │ │ ▼ │ │ │"," │ │ │ ╭───────╮ │ │ │"," │ │ │ ├───────┤ │ │ │"," │ │ │ │ Cache │◀───────────────────────────┤"," │ │ │ ├───────┤ │ │ │"," │ │ │ ╰───┬───╯ │ │ │"," │ │ │ ╰──────────── stale ─────────────┤"," │ │ │ │ │ │"," │ │ │ │ │ │"," │ │ │ │ │ │"," │ │ │ │ │ │"," │ │ │ │ │ │"," │ │ │ │ │ │"," │ │ │ │ │ │"," │ │ │ │ │ │"," │ │ ╰─────────────────────────────────╯ │ │"," ╰────────│───────────────────────────────────────────────────────────────────────╯ │"," │ │"," │ ╭────────╮ │"," │ ╭▶│ Output ├───────────── audit ─────────────╯"," │ │ ╰────────╯"," │ │"," │ │"," ╰────────── result ───────────╯"],"runs":[[[45,1],[9,2]],[[45,1],[1,2],[7,3],[1,2]],[[45,1],[4,2],[1,4],[4,2]],[[49,1],[40,5]],[[3,1],[2,0],[21,0],[59,0],[3,1],[1,5]],[[3,1],[1,0],[18,1],[21,5],[9,10],[21,5],[11,1],[1,0],[3,1],[1,5]],[[3,1],[1,0],[18,1],[1,8],[49,1],[1,5],[11,1],[1,0],[3,1],[1,5]],[[3,1],[1,0],[18,1],[1,8],[49,1],[1,5],[11,1],[1,0],[3,1],[1,5]],[[3,1],[1,0],[18,1],[1,7],[25,1],[2,0],[16,0],[6,0],[1,5],[10,0],[1,1],[1,0],[3,1],[1,5]],[[3,1],[1,0],[18,1],[1,7],[25,1],[1,0],[15,1],[17,2],[1,1],[1,0],[1,1],[1,0],[3,1],[1,5]],[[3,1],[1,0],[18,1],[1,7],[25,1],[1,0],[15,1],[1,2],[15,3],[1,2],[8,5]],[[3,1],[1,0],[18,1],[1,4],[25,1],[1,0],[15,1],[8,2],[1,6],[8,2],[1,1],[1,0],[1,1],[1,0]],[[3,1],[1,0],[18,1],[1,4],[25,1],[1,0],[23,1],[1,4],[9,1],[1,0],[1,1],[1,0]],[[3,1],[1,0],[18,1],[1,6],[25,1],[1,0],[23,1],[1,7],[9,1],[1,0],[1,1],[1,0]],[[3,1],[1,0],[18,1],[1,6],[25,1],[1,0],[23,1],[1,5],[9,1],[1,0],[1,1],[1,0]],[[3,1],[1,0],[18,1],[1,6],[25,1],[1,0],[19,1],[9,2],[5,1],[1,0],[1,1],[1,0]],[[3,1],[1,0],[18,1],[1,9],[25,1],[1,0],[17,1],[3,2],[7,1],[3,2],[3,1],[1,0],[1,1],[1,0]],[[3,1],[1,0],[9,1],[9,2],[1,9],[9,2],[16,1],[1,0],[17,1],[1,2],[2,1],[6,3],[3,1],[1,2],[9,5]],[[3,1],[1,0],[8,1],[1,5],[1,4],[1,3],[1,2],[13,3],[1,2],[1,3],[1,2],[16,1],[1,0],[17,1],[3,2],[7,1],[3,2],[3,1],[1,0],[1,1],[1,0],[2,1],[1,5]],[[3,1],[1,0],[8,1],[1,5],[19,2],[16,1],[1,0],[19,1],[4,2],[1,4],[4,2],[5,1],[1,0],[1,1],[1,0],[2,1],[1,5]],[[73,5],[9,1],[1,0],[1,1],[1,0],[2,1],[1,5]],[[23,5],[25,1],[1,0],[5,1],[7,5],[5,10],[7,5],[9,1],[1,0],[1,1],[1,0],[2,1],[1,5]],[[3,1],[1,0],[8,1],[1,5],[35,1],[1,0],[5,1],[1,5],[27,1],[1,0],[1,1],[1,0],[2,1],[1,5]],[[3,1],[1,0],[8,1],[1,5],[35,1],[1,0],[1,1],[9,2],[23,1],[1,0],[1,1],[1,0],[2,1],[1,5]],[[3,1],[1,0],[8,1],[1,5],[35,1],[1,0],[1,1],[9,2],[23,1],[1,0],[1,1],[1,0],[2,1],[1,5]],[[3,1],[1,0],[8,1],[1,5],[35,1],[1,0],[1,1],[1,2],[7,3],[1,2],[29,5]],[[3,1],[1,0],[8,1],[1,5],[35,1],[1,0],[1,1],[9,2],[23,1],[1,0],[1,1],[1,0],[2,1],[1,5]],[[3,1],[1,0],[8,1],[1,5],[35,1],[1,0],[1,1],[4,2],[1,4],[4,2],[23,1],[1,0],[1,1],[1,0],[2,1],[1,5]],[[3,1],[1,0],[8,1],[1,5],[35,1],[1,0],[5,1],[13,5],[7,10],[14,5]],[[3,1],[1,0],[8,1],[1,5],[35,1],[1,0],[33,1],[1,0],[1,1],[1,0],[2,1],[1,5]],[[3,1],[1,0],[8,1],[1,5],[35,1],[1,0],[33,1],[1,0],[1,1],[1,0],[2,1],[1,5]],[[3,1],[1,0],[8,1],[1,5],[35,1],[1,0],[33,1],[1,0],[1,1],[1,0],[2,1],[1,5]],[[3,1],[1,0],[8,1],[1,5],[35,1],[1,0],[33,1],[1,0],[1,1],[1,0],[2,1],[1,5]],[[3,1],[1,0],[8,1],[1,5],[35,1],[1,0],[33,1],[1,0],[1,1],[1,0],[2,1],[1,5]],[[3,1],[1,0],[8,1],[1,5],[35,1],[1,0],[33,1],[1,0],[1,1],[1,0],[2,1],[1,5]],[[3,1],[1,0],[8,1],[1,5],[35,1],[1,0],[33,1],[1,0],[1,1],[1,0],[2,1],[1,5]],[[3,1],[1,0],[8,1],[1,5],[35,1],[1,0],[33,1],[1,0],[1,1],[1,0],[2,1],[1,5]],[[3,1],[1,0],[8,1],[1,5],[35,1],[35,0],[1,1],[1,0],[2,1],[1,5]],[[3,1],[9,0],[1,5],[72,0],[2,1],[1,5]],[[12,1],[1,5],[74,1],[1,5]],[[12,1],[1,5],[31,1],[10,2],[33,1],[1,5]],[[12,1],[1,5],[29,1],[2,5],[1,2],[8,3],[2,9],[3,6],[3,4],[3,7],[3,8],[7,10],[14,5]],[[12,1],[1,5],[29,1],[1,5],[1,1],[10,2]],[[12,1],[1,5],[29,1],[1,5]],[[12,1],[1,5],[29,1],[1,5]],[[12,1],[11,5],[8,10],[12,5]]]}, + {"width":120,"source":"flowchart TD\n subgraph Parent\n direction LR\n subgraph Left [A deliberately long left group title]\n direction LR\n A1[One] --> A2[Two]\n end\n subgraph Right [A deliberately long right group title]\n direction LR\n B1[Three] --> B2[Four]\n end\n A2 --> B1\n end","height":11,"lines":["╭─ Parent ──────────────────────────────────────────────────────────────────────────────╮","│ ╭─ A deliberately long left group title ╮ ╭─ A deliberately long right group title ╮ │","│ │ ╭─────╮ ╭─────╮ │ │ ╭───────╮ ╭──────╮ │ │","│ │ │ One ├─▶│ Two ├╮ │ │ ╭▶│ Three ├─▶│ Four │ │ │","│ │ ╰─────╯ ╰─────╯│ │ │ │ ╰───────╯ ╰──────╯ │ │","│ ╰───────────────────────────│───────────╯ ╰────────│───────────────────────────────╯ │","│ │ │ │","│ │ │ │","│ │ │ │","│ ╰───────────────────────╯ │","╰───────────────────────────────────────────────────────────────────────────────────────╯"],"runs":[[[2,0],[8,0],[79,0]],[[1,0],[1,1],[2,0],[38,0],[1,0],[2,1],[2,0],[39,0],[1,0],[1,1],[1,0]],[[1,0],[1,1],[1,0],[11,1],[7,2],[2,1],[7,2],[12,1],[1,0],[2,1],[1,0],[10,1],[9,2],[2,1],[8,2],[11,1],[1,0],[1,1],[1,0]],[[1,0],[1,1],[1,0],[11,1],[1,2],[5,3],[1,6],[1,7],[1,5],[1,2],[5,3],[1,4],[1,5],[11,1],[1,0],[2,1],[1,0],[8,1],[2,5],[1,2],[7,3],[1,6],[1,7],[1,5],[1,2],[6,3],[1,2],[11,1],[1,0],[1,1],[1,0]],[[1,0],[1,1],[1,0],[11,1],[7,2],[2,1],[7,2],[1,5],[11,1],[1,0],[2,1],[1,0],[8,1],[1,5],[1,1],[9,2],[2,1],[8,2],[11,1],[1,0],[1,1],[1,0]],[[1,0],[1,1],[28,0],[1,5],[12,0],[2,1],[9,0],[1,5],[32,0],[1,1],[1,0]],[[1,0],[29,1],[1,5],[23,1],[1,5],[33,1],[1,0]],[[1,0],[29,1],[1,5],[23,1],[1,5],[33,1],[1,0]],[[1,0],[29,1],[1,5],[23,1],[1,5],[33,1],[1,0]],[[1,0],[29,1],[25,5],[33,1],[1,0]],[[89,0]]]}, + {"width":120,"source":"flowchart LR\n Browser([Browser]) --> Gateway[Gateway]\n subgraph Cloud[Cloud platform]\n direction TB\n subgraph Compute[Compute]\n API[API service] --> Worker[Background worker]\n end\n subgraph Storage[Storage]\n Database[(Database)]\n Cache[(Cache)]\n end\n API --> Database\n Worker --> Cache\n end\n Gateway --> API\n Worker --> Result([Result])","height":28,"lines":[" ╭────────────────────────────╮ ╭─────────╮"," │ │ │ │"," │ │ │ │"," │ ╭─ Cloud platform ───│──────────│────────╮│"," │ │ ╭─ Compute ─▼──────────│╮ ││"," │ │ │ ╭─────────────╮ ││ ││"," │ │╭────────────┤ API service │ ││ ││"," │ ││ │ ╰──────┬──────╯ ││ ││"," │ ││ │ │ ││ ││"," │ ││ │ │ ││ ││"," │ ││ │ │ ││ ││"," │ ││ │ ▼ ││ ││"," │ ││ │ ╭───────────────────╮││ ││"," │ ││ │ │ Background worker ├╯│ ││"," │ ││ │ ╰─────────┬─────────╯ │ ││"," │ ││ ╰───────────│───────────╯ ││"," │ ││ ╰───────────╮ ││","╭─────────╮ ╭────┴────╮ ││ │ ││","│ Browser ├─▶│ Gateway │ ││ │ ││","╰─────────╯ ╰─────────╯ ││ │ ││"," ││ ╭─ Storage ───────────────────▼─────╮ ││"," ││ │ ╭──────────╮ ╭───────╮ │ ││"," ││ │ ├──────────┤ ├───────┤ │ ││ ╭────────╮"," │╰──▶│ Database │ │ Cache │ │ │╰▶│ Result │"," │ │ ├──────────┤ ├───────┤ │ │ ╰────────╯"," │ │ ╰──────────╯ ╰───────╯ │ │"," │ ╰───────────────────────────────────╯ │"," ╰────────────────────────────────────────╯"],"runs":[[[18,1],[30,5],[10,1],[11,5]],[[18,1],[1,8],[28,1],[1,5],[10,1],[1,5],[9,1],[1,5]],[[18,1],[1,8],[28,1],[1,5],[10,1],[1,5],[9,1],[1,5]],[[18,1],[1,8],[7,1],[2,0],[16,0],[3,0],[1,5],[10,0],[1,5],[9,0],[1,5]],[[18,1],[1,7],[7,1],[1,0],[8,1],[2,0],[9,0],[1,0],[1,5],[10,0],[1,5],[1,0],[7,1],[1,0],[1,5]],[[18,1],[1,7],[7,1],[1,0],[8,1],[1,0],[4,1],[15,2],[3,1],[1,5],[1,0],[7,1],[1,0],[1,5]],[[18,1],[1,7],[7,1],[1,0],[1,5],[2,8],[3,7],[3,4],[3,6],[2,9],[13,3],[1,2],[3,1],[1,5],[1,0],[7,1],[1,0],[1,5]],[[18,1],[1,7],[7,1],[1,0],[1,5],[7,1],[1,0],[4,1],[7,2],[1,6],[7,2],[3,1],[1,5],[1,0],[7,1],[1,0],[1,5]],[[18,1],[1,4],[7,1],[1,0],[1,5],[7,1],[1,0],[11,1],[1,7],[10,1],[1,5],[1,0],[7,1],[1,0],[1,5]],[[18,1],[1,4],[7,1],[1,0],[1,5],[7,1],[1,0],[11,1],[1,5],[10,1],[1,5],[1,0],[7,1],[1,0],[1,5]],[[18,1],[1,4],[7,1],[1,0],[1,5],[7,1],[1,0],[11,1],[1,5],[10,1],[1,5],[1,0],[7,1],[1,0],[1,5]],[[18,1],[1,6],[7,1],[1,0],[1,5],[7,1],[1,0],[11,1],[1,5],[10,1],[1,5],[1,0],[7,1],[1,0],[1,5]],[[18,1],[1,6],[7,1],[1,0],[1,5],[7,1],[1,0],[1,1],[21,2],[1,5],[1,0],[7,1],[1,0],[1,5]],[[18,1],[1,6],[7,1],[1,0],[1,5],[7,1],[1,0],[1,1],[1,2],[19,3],[1,4],[1,5],[1,0],[7,1],[1,0],[1,5]],[[18,1],[1,6],[7,1],[1,0],[1,5],[7,1],[1,0],[1,1],[10,2],[1,6],[10,2],[1,1],[1,0],[7,1],[1,0],[1,5]],[[18,1],[1,9],[7,1],[1,0],[1,5],[7,1],[12,0],[1,7],[12,0],[7,1],[1,0],[1,5]],[[18,1],[1,9],[7,1],[1,0],[1,5],[19,1],[13,5],[7,1],[1,0],[1,5]],[[11,2],[2,1],[5,2],[1,9],[5,2],[2,1],[1,0],[1,5],[31,1],[1,5],[7,1],[1,0],[1,5]],[[1,2],[9,3],[1,6],[1,7],[1,5],[1,2],[9,3],[1,2],[2,1],[1,0],[1,5],[31,1],[1,5],[7,1],[1,0],[1,5]],[[11,2],[2,1],[11,2],[2,1],[1,0],[1,5],[31,1],[1,5],[7,1],[1,0],[1,5]],[[26,1],[1,0],[1,5],[1,1],[2,0],[9,0],[19,0],[1,5],[6,0],[1,1],[1,0],[1,5]],[[26,1],[1,0],[1,5],[1,1],[1,0],[1,1],[12,2],[12,1],[9,2],[1,1],[1,0],[1,1],[1,0],[1,5]],[[26,1],[1,0],[1,5],[1,1],[1,0],[1,1],[12,2],[12,1],[9,2],[1,1],[1,0],[1,1],[1,0],[1,5],[1,1],[10,2]],[[26,1],[1,0],[4,5],[1,2],[10,3],[1,2],[12,1],[1,2],[7,3],[1,2],[1,1],[1,0],[1,1],[1,0],[2,5],[1,2],[8,3],[1,2]],[[26,1],[1,0],[2,1],[1,0],[1,1],[12,2],[12,1],[9,2],[1,1],[1,0],[1,1],[1,0],[2,1],[10,2]],[[26,1],[1,0],[2,1],[1,0],[1,1],[12,2],[12,1],[9,2],[1,1],[1,0],[1,1],[1,0]],[[26,1],[1,0],[2,1],[37,0],[1,1],[1,0]],[[26,1],[42,0]]]}, + {"width":120,"source":"flowchart LR\n Request([Request]) --> Gateway[API gateway]\n Gateway -->|authenticate| Auth[Authentication]\n Gateway -->|rate limit| Limit[Rate limiter]\n Gateway -->|cache lookup| Cache[(Response cache)]\n Auth --> Worker[Request worker]\n Limit --> Worker\n Cache --> Worker\n Worker --> Response([Response])","height":21,"lines":[" ╭────────────────╮"," ╭─ authenticate ─▶│ Authentication ├──╮"," │ ╰────────────────╯ │"," │ │"," │ │"," │ │"," │ │"," │ │"," │ ╭──────────────╮ │","╭─────────╮ ╭─────────────╮ ├── rate limit ───▶│ Rate limiter ├───┤ ╭────────────────╮ ╭──────────╮","│ Request ├───▶│ API gateway ├───┤ ╰──────────────╯ ├▶│ Request worker ├───▶│ Response │","╰─────────╯ ╰─────────────╯ │ │ ╰────────────────╯ ╰──────────╯"," │ │"," │ │"," │ │"," │ │"," │ ╭────────────────╮ │"," │ ├────────────────┤ │"," ╰─ cache lookup ─▶│ Response cache ├──╯"," ├────────────────┤"," ╰────────────────╯"],"runs":[[[51,1],[18,2]],[[33,1],[2,5],[14,10],[2,5],[1,2],[16,3],[1,6],[1,4],[1,7],[1,5]],[[33,1],[1,5],[17,1],[18,2],[2,1],[1,5]],[[33,1],[1,5],[37,1],[1,5]],[[33,1],[1,5],[37,1],[1,5]],[[33,1],[1,5],[37,1],[1,5]],[[33,1],[1,5],[37,1],[1,5]],[[33,1],[1,5],[37,1],[1,5]],[[33,1],[1,5],[18,1],[16,2],[3,1],[1,5]],[[11,2],[4,1],[15,2],[3,1],[3,5],[12,10],[4,5],[1,2],[14,3],[1,6],[1,4],[1,7],[1,8],[1,5],[1,1],[18,2],[4,1],[12,2]],[[1,2],[9,3],[1,6],[1,4],[1,7],[1,8],[1,5],[1,2],[13,3],[1,4],[4,5],[18,1],[16,2],[3,1],[2,5],[1,2],[16,3],[1,6],[1,4],[1,7],[1,8],[1,5],[1,2],[10,3],[1,2]],[[11,2],[4,1],[15,2],[3,1],[1,5],[37,1],[1,5],[1,1],[18,2],[4,1],[12,2]],[[33,1],[1,5],[37,1],[1,5]],[[33,1],[1,5],[37,1],[1,5]],[[33,1],[1,5],[37,1],[1,5]],[[33,1],[1,5],[37,1],[1,5]],[[33,1],[1,5],[17,1],[18,2],[2,1],[1,5]],[[33,1],[1,5],[17,1],[18,2],[2,1],[1,5]],[[33,1],[2,5],[14,10],[2,5],[1,2],[16,3],[1,6],[1,4],[1,7],[1,5]],[[51,1],[18,2]],[[51,1],[18,2]]]}, + {"width":120,"source":"flowchart TD\n A[A] -->|one| B[B]\n A -->|two| B","height":9,"lines":["╭───╮","│ A ├┬──────╮","╰───╯│ │"," │ │"," │ one │ two "," │ │","╭───╮│ │","│ B │▼──────╯","╰───╯"],"runs":[[[5,2]],[[1,2],[3,3],[1,4],[8,5]],[[5,2],[1,5],[6,1],[1,5]],[[5,1],[1,5],[6,1],[1,5]],[[5,1],[1,5],[5,10],[1,1],[1,5],[5,10]],[[5,1],[1,5],[6,1],[1,5]],[[5,2],[1,5],[6,1],[1,5]],[[1,2],[3,3],[1,2],[8,5]],[[5,2]]]}, + {"width":120,"source":"flowchart TD\n subgraph Group\n S[Source]\n S -->|route 0 detail| N0[Node 0]\n S -->|route 1 detail| N1[Node 1]\n S -->|route 2 detail| N2[Node 2]\n S -->|route 3 detail| N3[Node 3]\n end","height":11,"lines":["╭─ Group ──────────────────────────────────────────────────────────────────────────────────────────────────────────╮","│ ╭────────╮ │","│ │ Source │ │","│ ╰────┬───╯ │","│ ╭───────────────── route 0 detail ┬────────────────┴────────────────┬ route 3 detail ─────────────────╮ │","│ │ │ route 1 detail │ route 2 detail │ │","│ ▼ ▼ ▼ ▼ │","│ ╭────────╮ ╭────────╮ ╭────────╮ ╭────────╮ │","│ │ Node 0 │ │ Node 1 │ │ Node 2 │ │ Node 3 │ │","│ ╰────────╯ ╰────────╯ ╰────────╯ ╰────────╯ │","╰──────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯"],"runs":[[[2,0],[7,0],[107,0]],[[1,0],[52,1],[10,2],[52,1],[1,0]],[[1,0],[52,1],[1,2],[8,3],[1,2],[52,1],[1,0]],[[1,0],[52,1],[5,2],[1,4],[4,2],[52,1],[1,0]],[[1,0],[6,1],[18,5],[16,10],[35,5],[16,10],[18,5],[5,1],[1,0]],[[1,0],[6,1],[1,5],[33,1],[1,5],[16,10],[17,1],[1,5],[16,10],[17,1],[1,5],[5,1],[1,0]],[[1,0],[6,1],[1,5],[33,1],[1,5],[33,1],[1,5],[33,1],[1,5],[5,1],[1,0]],[[1,0],[1,1],[10,2],[24,1],[10,2],[24,1],[10,2],[24,1],[10,2],[1,1],[1,0]],[[1,0],[1,1],[1,2],[8,3],[1,2],[24,1],[1,2],[8,3],[1,2],[24,1],[1,2],[8,3],[1,2],[24,1],[1,2],[8,3],[1,2],[1,1],[1,0]],[[1,0],[1,1],[10,2],[24,1],[10,2],[24,1],[10,2],[24,1],[10,2],[1,1],[1,0]],[[116,0]]]}, + {"width":120,"source":"\nflowchart TD\n Start([Start]):::focus --> Form[Collect Details]\n Form -->|valid| Store[(Orders DB)]:::store\n Form -- invalid --> Review(Manual Review)\n Review --> Decision{Approved?}\n","height":23,"lines":[" ╭───────╮"," │ Start │"," ╰───┬───╯"," │"," ▼"," ╭─────────────────╮"," │ Collect Details │"," ╰────────┬────────╯"," ╭──── valid ─────┴── invalid ───╮"," │ │"," ▼ │","╭───────────╮ ▼","├───────────┤ ╭───────────────╮","│ Orders DB │ │ Manual Review │","├───────────┤ ╰───────┬───────╯","╰───────────╯ │"," ╭──────────────╯"," ▼"," ╭─────────╮"," ╭─╯ ╰─╮"," │ Approved? │"," ╰─╮ ╭─╯"," ╰─────────╯"],"runs":[[[19,1],[9,2]],[[19,1],[1,2],[7,3],[1,2]],[[19,1],[4,2],[1,6],[4,2]],[[23,1],[1,7]],[[23,1],[1,5]],[[14,1],[19,2]],[[14,1],[1,2],[17,3],[1,2]],[[14,1],[9,2],[1,4],[9,2]],[[6,1],[5,5],[7,10],[8,5],[9,10],[4,5]],[[6,1],[1,5],[31,1],[1,5]],[[6,1],[1,5],[31,1],[1,5]],[[13,2],[25,1],[1,5]],[[13,2],[17,1],[17,2]],[[1,2],[11,3],[1,2],[17,1],[1,2],[15,3],[1,2]],[[13,2],[17,1],[8,2],[1,6],[8,2]],[[13,2],[25,1],[1,7]],[[23,1],[16,5]],[[23,1],[1,5]],[[18,1],[11,2]],[[16,1],[3,2],[9,1],[3,2]],[[16,1],[1,2],[2,1],[9,3],[2,1],[1,2]],[[16,1],[3,2],[9,1],[3,2]],[[18,1],[11,2]]]}, + {"width":120,"source":"flowchart LR\n A[HMAC verify <3s & continue] -->|result ≥ 1| B[Done]","height":3,"lines":["╭────────────────────────────╮ ╭──────╮","│ HMAC verify <3s & continue ├─── result ≥ 1 ───▶│ Done │","╰────────────────────────────╯ ╰──────╯"],"runs":[[[30,2],[19,1],[8,2]],[[1,2],[28,3],[1,6],[1,4],[1,7],[1,8],[12,10],[4,5],[1,2],[6,3],[1,2]],[[30,2],[19,1],[8,2]]]}, + {"width":120,"source":"flowchart TD\n A -->|\"fs: watcher/fff off<br/>events.persist: true<br/>mcp.stdio: false<br/>A --> B\"| B","height":12,"lines":["╭───╮","│ A │","╰─┬─╯"," │"," │ fs: watcher/fff off "," │ events.persist: true "," │ mcp.stdio: false "," │ A --> B "," ▼","╭───╮","│ B │","╰───╯"],"runs":[[[5,2]],[[1,2],[3,3],[1,2]],[[2,2],[1,9],[2,2]],[[2,1],[1,6]],[[2,1],[1,4],[21,10]],[[2,1],[1,4],[22,10]],[[2,1],[1,7],[18,10]],[[2,1],[1,8],[9,10]],[[2,1],[1,5]],[[5,2]],[[1,2],[3,3],[1,2]],[[5,2]]]}, + {"width":120,"source":"flowchart LR\n API --> Worker --> DB[(Database)]","height":5,"lines":[" ╭──────────╮","╭─────╮ ╭────────╮ ├──────────┤","│ API ├───▶│ Worker ├───▶│ Database │","╰─────╯ ╰────────╯ ├──────────┤"," ╰──────────╯"],"runs":[[[25,1],[12,2]],[[7,2],[4,1],[10,2],[4,1],[12,2]],[[1,2],[5,3],[1,6],[1,4],[1,7],[1,8],[1,5],[1,2],[8,3],[1,6],[1,4],[1,7],[1,8],[1,5],[1,2],[10,3],[1,2]],[[7,2],[4,1],[10,2],[4,1],[12,2]],[[25,1],[12,2]]]}, + {"width":120,"source":"flowchart LR\n A -->|plain| B -.->|retry| C ==>|done| D","height":3,"lines":["╭───╮ ╭───╮ ╭───╮ ╭───╮","│ A ├─── plain ───▶│ B ├─── retry ───▶│ C ├━━━ done ━━━▶│ D │","╰───╯ ╰───╯ ╰───╯ ╰───╯"],"runs":[[[5,2],[14,1],[5,2],[14,1],[5,2],[13,1],[5,2]],[[1,2],[3,3],[1,6],[1,4],[1,7],[1,8],[7,10],[4,5],[1,2],[3,3],[1,6],[1,4],[1,7],[1,8],[7,10],[4,5],[1,2],[3,3],[1,6],[1,4],[1,7],[1,8],[6,10],[4,5],[1,2],[3,3],[1,2]],[[5,2],[14,1],[5,2],[14,1],[5,2],[13,1],[5,2]]]}, + {"width":120,"source":"flowchart LR\n N[Native] & M[Mapped] & O --> LM[\"LanguageModel\"]\n LM -->|prepare| REQ & LOG","height":19,"lines":["╭────────╮","│ Native ├──╮","╰────────╯ │"," │"," │ ╭─────╮"," │ ╭─ prepare ─▶│ REQ │"," │ │ ╰─────╯"," │ │","╭────────╮ │ ╭───────────────╮ │","│ Mapped ├──┼▶│ LanguageModel ├───┤","╰────────╯ │ ╰───────────────╯ │"," │ │"," │ │ ╭─────╮"," │ ╰─ prepare ─▶│ LOG │"," │ ╰─────╯"," │"," ╭───╮ │"," │ O ├─────╯"," ╰───╯"],"runs":[[[10,2]],[[1,2],[8,3],[1,6],[1,4],[1,7],[1,5]],[[10,2],[2,1],[1,5]],[[12,1],[1,5]],[[12,1],[1,5],[34,1],[7,2]],[[12,1],[1,5],[21,1],[2,5],[9,10],[2,5],[1,2],[5,3],[1,2]],[[12,1],[1,5],[21,1],[1,5],[12,1],[7,2]],[[12,1],[1,5],[21,1],[1,5]],[[10,2],[2,1],[1,5],[1,1],[17,2],[3,1],[1,5]],[[1,2],[8,3],[1,6],[1,4],[1,7],[2,5],[1,2],[15,3],[1,4],[4,5]],[[10,2],[2,1],[1,5],[1,1],[17,2],[3,1],[1,5]],[[12,1],[1,5],[21,1],[1,5]],[[12,1],[1,5],[21,1],[1,5],[12,1],[7,2]],[[12,1],[1,5],[21,1],[2,5],[9,10],[2,5],[1,2],[5,3],[1,2]],[[12,1],[1,5],[34,1],[7,2]],[[12,1],[1,5]],[[2,1],[5,2],[5,1],[1,5]],[[2,1],[1,2],[3,3],[1,9],[1,6],[2,4],[1,7],[1,8],[1,5]],[[2,1],[5,2]]]}, + {"width":120,"source":"flowchart LR\n A & B --> C & D --> E","height":16,"lines":["╭───────╮","│ │","│ │","│╭───╮ │ ╭───╮","││ A ├─┬┴▶│ C ├──╮","│╰───╯ │ ╰───╯ │","│ │ │","│ │ │ ╭───╮","│ │ ├▶│ E │","│ │ │ ╰───╯","│ │ │","│╭───╮ │ ╭───╮ │","╰┤ B ├╮╰─▶│ D ├──╯"," ╰───╯│ ╰───╯"," │ ▲"," ╰─────╯"],"runs":[[[9,5]],[[1,5],[7,1],[1,5]],[[1,5],[7,1],[1,5]],[[1,5],[5,2],[2,1],[1,5],[1,1],[5,2]],[[1,5],[1,2],[3,3],[1,4],[4,5],[1,2],[3,3],[1,6],[1,4],[1,7],[1,5]],[[1,5],[5,2],[1,1],[1,5],[2,1],[5,2],[2,1],[1,5]],[[1,5],[6,1],[1,5],[9,1],[1,5]],[[1,5],[6,1],[1,5],[9,1],[1,5],[1,1],[5,2]],[[1,5],[6,1],[1,5],[9,1],[2,5],[1,2],[3,3],[1,2]],[[1,5],[6,1],[1,5],[9,1],[1,5],[1,1],[5,2]],[[1,5],[6,1],[1,5],[9,1],[1,5]],[[1,5],[5,2],[1,1],[1,5],[2,1],[5,2],[2,1],[1,5]],[[1,5],[1,4],[3,3],[1,4],[4,5],[1,2],[3,3],[1,6],[1,4],[1,7],[1,5]],[[1,1],[5,2],[1,5],[3,1],[5,2]],[[6,1],[1,5],[5,1],[1,5]],[[6,1],[7,5]]]}, + {"width":120,"source":"flowchart TD\n subgraph Runtime\n A[Alpha] & B[Beta]:::focus\n end\n A --> B","height":10,"lines":["╭─ Runtime ─╮","│ ╭───────╮ │","│ │ Alpha │ │","│ ╰───┬───╯ │","│ │ │","│ ▼ │","│ ╭──────╮ │","│ │ Beta │ │","│ ╰──────╯ │","╰───────────╯"],"runs":[[[2,0],[9,0],[2,0]],[[1,0],[1,1],[9,2],[1,1],[1,0]],[[1,0],[1,1],[1,2],[7,3],[1,2],[1,1],[1,0]],[[1,0],[1,1],[4,2],[1,6],[4,2],[1,1],[1,0]],[[1,0],[5,1],[1,7],[5,1],[1,0]],[[1,0],[5,1],[1,5],[5,1],[1,0]],[[1,0],[1,1],[8,2],[2,1],[1,0]],[[1,0],[1,1],[1,2],[6,3],[1,2],[2,1],[1,0]],[[1,0],[1,1],[8,2],[2,1],[1,0]],[[13,0]]]}, + {"width":120,"source":"flowchart LR\n A[\"Fetch & parse\"] & B[R&D] --> C[Done & dusted]","height":11,"lines":["╭───────────────╮","│ Fetch & parse ├──╮","╰───────────────╯ │"," │"," │ ╭───────────────╮"," ├▶│ Done & dusted │"," │ ╰───────────────╯"," │"," ╭─────╮ │"," │ R&D ├───────╯"," ╰─────╯"],"runs":[[[17,2]],[[1,2],[15,3],[1,6],[1,4],[1,7],[1,5]],[[17,2],[2,1],[1,5]],[[19,1],[1,5]],[[19,1],[1,5],[1,1],[17,2]],[[19,1],[2,5],[1,2],[15,3],[1,2]],[[19,1],[1,5],[1,1],[17,2]],[[19,1],[1,5]],[[5,1],[7,2],[7,1],[1,5]],[[5,1],[1,2],[5,3],[1,9],[2,6],[2,4],[2,7],[1,8],[1,5]],[[5,1],[7,2]]]}, + {"width":120,"source":"flowchart LR\n X[a & b] -->|x & y| Y","height":3,"lines":["╭───────╮ ╭───╮","│ a & b ├─── x & y ───▶│ Y │","╰───────╯ ╰───╯"],"runs":[[[9,2],[14,1],[5,2]],[[1,2],[7,3],[1,6],[1,4],[1,7],[1,8],[7,10],[4,5],[1,2],[3,3],[1,2]],[[9,2],[14,1],[5,2]]]}, + {"width":120,"source":"flowchart LR\n CS[Console's own schema copy] -. validates .-> CFG\n A[Bob's] & B[Al's] --> C[it's done; ship]","height":19,"lines":["╭───────────────────────────╮","│ Console's own schema copy ├──── validates ────╮","╰───────────────────────────╯ │"," │"," │ ╭─────╮"," ╰───▶│ CFG │"," ╰─────╯",""," ╭───────╮"," │ Bob's ├────────────────────────╮"," ╰───────╯ │"," │"," │ ╭─────────────────╮"," ├──▶│ it's done; ship │"," │ ╰─────────────────╯"," │"," ╭──────╮ │"," │ Al's ├─────────────────────────╯"," ╰──────╯"],"runs":[[[29,2]],[[1,2],[27,3],[1,9],[1,6],[1,4],[1,7],[1,8],[11,10],[5,5]],[[29,2],[19,1],[1,5]],[[48,1],[1,5]],[[48,1],[1,5],[4,1],[7,2]],[[48,1],[5,5],[1,2],[5,3],[1,2]],[[53,1],[7,2]],[],[[10,1],[9,2]],[[10,1],[1,2],[7,3],[5,9],[5,6],[5,4],[5,7],[5,8],[1,5]],[[10,1],[9,2],[24,1],[1,5]],[[43,1],[1,5]],[[43,1],[1,5],[3,1],[19,2]],[[43,1],[4,5],[1,2],[17,3],[1,2]],[[43,1],[1,5],[3,1],[19,2]],[[43,1],[1,5]],[[10,1],[8,2],[25,1],[1,5]],[[10,1],[1,2],[6,3],[5,9],[5,6],[6,4],[5,7],[5,8],[1,5]],[[10,1],[8,2]]]}, + {"width":120,"source":"flowchart LR\n N & M & O --> LM[LanguageModel] --> REQ[LLMRequest]","height":19,"lines":["╭───╮","│ N ├──╮","╰───╯ │"," │"," │"," │"," │"," │","╭───╮ │ ╭───────────────╮ ╭────────────╮","│ M ├──┼▶│ LanguageModel ├───▶│ LLMRequest │","╰───╯ │ ╰───────────────╯ ╰────────────╯"," │"," │"," │"," │"," │","╭───╮ │","│ O ├──╯","╰───╯"],"runs":[[[5,2]],[[1,2],[3,3],[1,6],[1,4],[1,7],[1,5]],[[5,2],[2,1],[1,5]],[[7,1],[1,5]],[[7,1],[1,5]],[[7,1],[1,5]],[[7,1],[1,5]],[[7,1],[1,5]],[[5,2],[2,1],[1,5],[1,1],[17,2],[4,1],[14,2]],[[1,2],[3,3],[1,6],[1,4],[1,7],[2,5],[1,2],[15,3],[1,6],[1,4],[1,7],[1,8],[1,5],[1,2],[12,3],[1,2]],[[5,2],[2,1],[1,5],[1,1],[17,2],[4,1],[14,2]],[[7,1],[1,5]],[[7,1],[1,5]],[[7,1],[1,5]],[[7,1],[1,5]],[[7,1],[1,5]],[[5,2],[2,1],[1,5]],[[1,2],[3,3],[1,6],[1,4],[1,7],[1,5]],[[5,2]]]}, + {"width":120,"source":"flowchart LR\n N --> LM[LanguageModel]\n M --> LM\n O --> LM\n LM --> REQ[LLMRequest]","height":19,"lines":["╭───╮","│ N ├──╮","╰───╯ │"," │"," │"," │"," │"," │","╭───╮ │ ╭───────────────╮ ╭────────────╮","│ M ├──┼▶│ LanguageModel ├───▶│ LLMRequest │","╰───╯ │ ╰───────────────╯ ╰────────────╯"," │"," │"," │"," │"," │","╭───╮ │","│ O ├──╯","╰───╯"],"runs":[[[5,2]],[[1,2],[3,3],[1,6],[1,4],[1,7],[1,5]],[[5,2],[2,1],[1,5]],[[7,1],[1,5]],[[7,1],[1,5]],[[7,1],[1,5]],[[7,1],[1,5]],[[7,1],[1,5]],[[5,2],[2,1],[1,5],[1,1],[17,2],[4,1],[14,2]],[[1,2],[3,3],[1,6],[1,4],[1,7],[2,5],[1,2],[15,3],[1,6],[1,4],[1,7],[1,8],[1,5],[1,2],[12,3],[1,2]],[[5,2],[2,1],[1,5],[1,1],[17,2],[4,1],[14,2]],[[7,1],[1,5]],[[7,1],[1,5]],[[7,1],[1,5]],[[7,1],[1,5]],[[7,1],[1,5]],[[5,2],[2,1],[1,5]],[[1,2],[3,3],[1,6],[1,4],[1,7],[1,5]],[[5,2]]]}, + {"width":120,"source":"flowchart LR\n A --- B --- C","height":3,"lines":["╭───╮ ╭───╮ ╭───╮","│ A ├────│ B ├────│ C │","╰───╯ ╰───╯ ╰───╯"],"runs":[[[5,2],[4,1],[5,2],[4,1],[5,2]],[[1,2],[3,3],[1,6],[1,4],[1,7],[1,8],[1,5],[1,2],[3,3],[1,6],[1,4],[1,7],[1,8],[1,5],[1,2],[3,3],[1,2]],[[5,2],[4,1],[5,2],[4,1],[5,2]]]}, + {"width":120,"source":"flowchart LR\n DB[(Durable Object SQLite)]\n API[Slack API]\n DB -. no shared transaction .- API\n API <--> DB","height":9,"lines":[" ╭────────────────────────────────────────────────╮"," │ │"," │ │"," ▼ │","╭───────────────────────╮ ▼","├───────────────────────┤ ╭─────┴─────╮","│ Durable Object SQLite ├─── no shared transaction ────│ Slack API │","├───────────────────────┤ ╰───────────╯","╰───────────────────────╯"],"runs":[[[12,1],[50,5]],[[12,1],[1,5],[48,1],[1,8]],[[12,1],[1,5],[48,1],[1,7]],[[12,1],[1,5],[48,1],[1,4]],[[25,2],[36,1],[1,5]],[[25,2],[30,1],[6,2],[1,9],[6,2]],[[1,2],[23,3],[1,6],[1,4],[1,7],[1,8],[23,10],[4,5],[1,2],[11,3],[1,2]],[[25,2],[30,1],[13,2]],[[25,2]]]}, + {"width":120,"source":"flowchart LR\n DB[(Durable Object SQLite)] -. no shared transaction .- API[Slack API]","height":5,"lines":["╭───────────────────────╮","├───────────────────────┤ ╭───────────╮","│ Durable Object SQLite ├─── no shared transaction ────│ Slack API │","├───────────────────────┤ ╰───────────╯","╰───────────────────────╯"],"runs":[[[25,2]],[[25,2],[30,1],[13,2]],[[1,2],[23,3],[1,6],[1,4],[1,7],[1,8],[23,10],[4,5],[1,2],[11,3],[1,2]],[[25,2],[30,1],[13,2]],[[25,2]]]}, + {"width":120,"source":"flowchart LR\n DB[(Durable Object SQLite)] <--> API[Slack API]","height":5,"lines":["╭───────────────────────╮","├───────────────────────┤ ╭───────────╮","│ Durable Object SQLite ├◀──▶│ Slack API │","├───────────────────────┤ ╰───────────╯","╰───────────────────────╯"],"runs":[[[25,2]],[[25,2],[4,1],[13,2]],[[1,2],[23,3],[1,6],[1,5],[1,7],[1,8],[1,5],[1,2],[11,3],[1,2]],[[25,2],[4,1],[13,2]],[[25,2]]]}, + {"width":120,"source":"flowchart LR\n subgraph durable [Durable — survives everything]\n V[(Volume ws-wor_abc<br/>mounted at /workspace)]\n R[our row: id, provider]\n end\n subgraph ephemeral [Ephemeral — dies freely]\n S1[Sandbox #1] -. mounts .-> V\n S2[Sandbox #2<br/>Tuesday] -. mounts same .-> V\n X[apt-get installs,<br/>~/.cache, /tmp]\n end\n S1 --- X\n style X stroke-dasharray: 5 5","height":42,"lines":[" ╭─ Durable — survives everything ────────────────────────────────────────╮"," │ ╭───────────────────────╮ │"," │ │ our row: id, provider │ │"," │ ╰───────────────────────╯ │"," │ │"," │ │"," │ │"," │ │"," │ │"," │ │"," │ │"," │ │"," │ │"," │ │"," │ │"," │ │"," │ │"," │ │"," │ │"," │ │"," ╰────────────────────────────────────────────────────────────────────────╯","","","╭─ Ephemeral — dies freely ───────────────────────────────────────────────────────────╮","│ ╭───────────────────────╮ │","│ ├───────────────────────┤ │","│ │ Volume ws-wor_abc │ │","│ ╭────── mounts ───────▶│ mounted at /workspace │◀───────────╮","│ │ ├───────────────────────┤ │ │","│ ╭────────────╮ │ ╰───────────────────────╯ │ │","│ │ Sandbox #1 ├───┤ │ │","│ ╰────────────╯ │ │ │","│ │ │ │","│ │ │ │","│ │ │ │","│ │ ╭───────────────────╮ │ │","│ │ │ apt-get installs, │ │ │","│ ╭────────────╮ ╰────────────────────────│ ~/.cache, /tmp │ │ │","│ │ Sandbox #2 │ ╰───────────────────╯ │ │","│ │ Tuesday ├───────────────────────── mounts same ─────────────────────────╯","│ ╰────────────╯ │","╰─────────────────────────────────────────────────────────────────────────────────────╯"],"runs":[[[5,1],[2,0],[31,0],[41,0]],[[5,1],[1,0],[1,1],[25,2],[46,1],[1,0]],[[5,1],[1,0],[1,1],[1,2],[23,3],[1,2],[46,1],[1,0]],[[5,1],[1,0],[1,1],[25,2],[46,1],[1,0]],[[5,1],[1,0],[72,1],[1,0]],[[5,1],[1,0],[72,1],[1,0]],[[5,1],[1,0],[72,1],[1,0]],[[5,1],[1,0],[72,1],[1,0]],[[5,1],[1,0],[72,1],[1,0]],[[5,1],[1,0],[72,1],[1,0]],[[5,1],[1,0],[72,1],[1,0]],[[5,1],[1,0],[72,1],[1,0]],[[5,1],[1,0],[72,1],[1,0]],[[5,1],[1,0],[72,1],[1,0]],[[5,1],[1,0],[72,1],[1,0]],[[5,1],[1,0],[72,1],[1,0]],[[5,1],[1,0],[72,1],[1,0]],[[5,1],[1,0],[72,1],[1,0]],[[5,1],[1,0],[72,1],[1,0]],[[5,1],[1,0],[72,1],[1,0]],[[5,1],[74,0]],[],[],[[2,0],[25,0],[60,0]],[[1,0],[51,1],[25,2],[9,1],[1,0]],[[1,0],[51,1],[25,2],[9,1],[1,0]],[[1,0],[51,1],[1,2],[23,3],[1,2],[9,1],[1,0]],[[1,0],[28,1],[7,5],[8,10],[8,5],[1,2],[23,3],[1,2],[13,5]],[[1,0],[28,1],[1,5],[22,1],[25,2],[9,1],[1,0],[2,1],[1,5]],[[1,0],[11,1],[14,2],[3,1],[1,5],[22,1],[25,2],[9,1],[1,0],[2,1],[1,5]],[[1,0],[11,1],[1,2],[12,3],[1,4],[4,5],[56,1],[1,0],[2,1],[1,5]],[[1,0],[11,1],[14,2],[3,1],[1,5],[56,1],[1,0],[2,1],[1,5]],[[1,0],[28,1],[1,5],[56,1],[1,0],[2,1],[1,5]],[[1,0],[28,1],[1,5],[56,1],[1,0],[2,1],[1,5]],[[1,0],[28,1],[1,5],[56,1],[1,0],[2,1],[1,5]],[[1,0],[28,1],[1,5],[24,1],[21,2],[11,1],[1,0],[2,1],[1,5]],[[1,0],[28,1],[1,5],[24,1],[1,2],[19,3],[1,2],[11,1],[1,0],[2,1],[1,5]],[[1,0],[11,1],[14,2],[3,1],[25,5],[1,2],[19,3],[1,2],[11,1],[1,0],[2,1],[1,5]],[[1,0],[11,1],[1,2],[12,3],[1,2],[28,1],[21,2],[11,1],[1,0],[2,1],[1,5]],[[1,0],[11,1],[1,2],[12,3],[5,9],[5,6],[6,4],[5,7],[5,8],[13,10],[26,5]],[[1,0],[11,1],[14,2],[60,1],[1,0]],[[87,0]]]}, + {"width":120,"source":"flowchart LR\n A[A] -->|A to X| X[X]\n A -->|A to Y| Y[Y]\n B[B] -->|B to Y| Y\n B -->|B to Z| Z[Z]","height":19,"lines":[" ╭───╮"," ╭─ A to X ─▶│ X │"," │ ╰───╯"," │","╭───╮ │","│ A ├───┤","╰───╯ │"," │"," │ ╭───╮"," ╰─ A to Y ─▶│ Y │"," ╰───╯"," ▲","╭───╮ ╭── B to Y ──╯","│ B ├────┤","╰───╯ │"," │ B to Z "," │ ╭───╮"," ╰─────────▶│ Z │"," ╰───╯"],"runs":[[[20,1],[5,2]],[[8,1],[2,5],[8,10],[2,5],[1,2],[3,3],[1,2]],[[8,1],[1,5],[11,1],[5,2]],[[8,1],[1,5]],[[5,2],[3,1],[1,5]],[[1,2],[3,3],[1,4],[4,5]],[[5,2],[3,1],[1,5]],[[8,1],[1,5]],[[8,1],[1,5],[11,1],[5,2]],[[8,1],[2,5],[8,10],[2,5],[1,2],[3,3],[1,2]],[[20,1],[5,2]],[[22,1],[1,5]],[[5,2],[4,1],[3,5],[8,10],[3,5]],[[1,2],[3,3],[1,4],[5,5]],[[5,2],[4,1],[1,5]],[[9,1],[1,5],[8,10]],[[9,1],[1,5],[10,1],[5,2]],[[9,1],[11,5],[1,2],[3,3],[1,2]],[[20,1],[5,2]]]}, + {"width":120,"source":"flowchart TD\n CS[conformance suite<br/>same test cases pin every driver] -.verifies.-> LS\n CS -.verifies.-> MS\n CS -.verifies.-> MEM[memory driver]","height":10,"lines":[" ╭──────────────────────────────────╮"," │ conformance suite │"," │ same test cases pin every driver │"," ╰─────────────────┬────────────────╯"," ╭───────── verifies ────┬────┴────── verifies ───────╮"," │ │ verifies │"," ▼ ▼ ▼","╭────╮ ╭────╮ ╭───────────────╮","│ LS │ │ MS │ │ memory driver │","╰────╯ ╰────╯ ╰───────────────╯"],"runs":[[[14,1],[36,2]],[[14,1],[1,2],[34,3],[1,2]],[[14,1],[1,2],[34,3],[1,2]],[[14,1],[18,2],[1,4],[17,2]],[[3,1],[10,5],[10,10],[16,5],[10,10],[8,5]],[[3,1],[1,5],[23,1],[1,5],[10,10],[18,1],[1,5]],[[3,1],[1,5],[23,1],[1,5],[28,1],[1,5]],[[6,2],[18,1],[6,2],[18,1],[17,2]],[[1,2],[4,3],[1,2],[18,1],[1,2],[4,3],[1,2],[18,1],[1,2],[15,3],[1,2]],[[6,2],[18,1],[6,2],[18,1],[17,2]]]}, + {"width":120,"source":"flowchart LR\n subgraph before [Before]\n T1[read/edit/write/patch<br/>shell/grep/glob] --> F1[FSUtil / node:fs / AppProcess<br/>+ hosted branching in every tool]\n end\n subgraph after [After — merged this week]\n T2[same 8 tools] --> E[Environment<br/>files + spawner]\n E --> D{driver}\n D --> L[local<br/>node:fs]\n D --> M[Modal<br/>sandbox.exec]\n D --> Mem[memory<br/>tests]\n end\n before ~~~ after","height":37,"lines":[" ╭─ Before ─────────────────────────────╮"," │ ╭───────────────────────╮ │"," │ │ read/edit/write/patch │ │"," │ │ shell/grep/glob │ │"," │ ╰───────────┬───────────╯ │"," │ │ │"," │ ▼ │"," │ ╭──────────────────────────────────╮ │"," │ │ FSUtil / node:fs / AppProcess │ │"," │ │ + hosted branching in every tool │ │"," │ ╰──────────────────────────────────╯ │"," ╰──────────────────────────────────────╯","","╭─ After — merged this week ────────────────────────────────────╮","│ ╭──────────────╮ │","│ │ same 8 tools │ │","│ ╰───────┬──────╯ │","│ │ │","│ ▼ │","│ ╭─────────────────╮ │","│ │ Environment │ │","│ │ files + spawner │ │","│ ╰────────┬────────╯ │","│ │ │","│ ▼ │","│ ╭───────╮ │","│ ╭─╯ ╰─╮ │","│ │ driver │ │","│ ╰─╮ ╭─╯ │","│ ╰───┬───╯ │","│ ╭────────────────────────┴┬────────────────────────╮ │","│ ▼ ▼ ▼ │","│ ╭─────────╮ ╭──────────────╮ ╭────────╮ │","│ │ local │ │ Modal │ │ memory │ │","│ │ node:fs │ │ sandbox.exec │ │ tests │ │","│ ╰─────────╯ ╰──────────────╯ ╰────────╯ │","╰───────────────────────────────────────────────────────────────╯"],"runs":[[[12,1],[2,0],[8,0],[30,0]],[[12,1],[1,0],[7,1],[25,2],[6,1],[1,0]],[[12,1],[1,0],[7,1],[1,2],[23,3],[1,2],[6,1],[1,0]],[[12,1],[1,0],[7,1],[1,2],[23,3],[1,2],[6,1],[1,0]],[[12,1],[1,0],[7,1],[12,2],[1,6],[12,2],[6,1],[1,0]],[[12,1],[1,0],[19,1],[1,7],[18,1],[1,0]],[[12,1],[1,0],[19,1],[1,5],[18,1],[1,0]],[[12,1],[1,0],[1,1],[36,2],[1,1],[1,0]],[[12,1],[1,0],[1,1],[1,2],[34,3],[1,2],[1,1],[1,0]],[[12,1],[1,0],[1,1],[1,2],[34,3],[1,2],[1,1],[1,0]],[[12,1],[1,0],[1,1],[36,2],[1,1],[1,0]],[[12,1],[40,0]],[],[[2,0],[26,0],[37,0]],[[1,0],[23,1],[16,2],[24,1],[1,0]],[[1,0],[23,1],[1,2],[14,3],[1,2],[24,1],[1,0]],[[1,0],[23,1],[8,2],[1,6],[7,2],[24,1],[1,0]],[[1,0],[31,1],[1,7],[31,1],[1,0]],[[1,0],[31,1],[1,5],[31,1],[1,0]],[[1,0],[22,1],[19,2],[22,1],[1,0]],[[1,0],[22,1],[1,2],[17,3],[1,2],[22,1],[1,0]],[[1,0],[22,1],[1,2],[17,3],[1,2],[22,1],[1,0]],[[1,0],[22,1],[9,2],[1,6],[9,2],[22,1],[1,0]],[[1,0],[31,1],[1,7],[31,1],[1,0]],[[1,0],[31,1],[1,5],[31,1],[1,0]],[[1,0],[27,1],[9,2],[27,1],[1,0]],[[1,0],[25,1],[3,2],[7,1],[3,2],[25,1],[1,0]],[[1,0],[25,1],[1,2],[2,1],[6,3],[3,1],[1,2],[25,1],[1,0]],[[1,0],[25,1],[3,2],[7,1],[3,2],[25,1],[1,0]],[[1,0],[27,1],[4,2],[1,4],[4,2],[27,1],[1,0]],[[1,0],[6,1],[52,5],[5,1],[1,0]],[[1,0],[6,1],[1,5],[25,1],[1,5],[24,1],[1,5],[5,1],[1,0]],[[1,0],[1,1],[11,2],[12,1],[16,2],[12,1],[10,2],[1,1],[1,0]],[[1,0],[1,1],[1,2],[9,3],[1,2],[12,1],[1,2],[14,3],[1,2],[12,1],[1,2],[8,3],[1,2],[1,1],[1,0]],[[1,0],[1,1],[1,2],[9,3],[1,2],[12,1],[1,2],[14,3],[1,2],[12,1],[1,2],[8,3],[1,2],[1,1],[1,0]],[[1,0],[1,1],[11,2],[12,1],[16,2],[12,1],[10,2],[1,1],[1,0]],[[65,0]]]}, + {"width":120,"source":"flowchart TD\n subgraph S1[\"1. provider.transform (seed)\"]\n A1[\"Catalog model → copy catalog variants\"]\n A2[\"Custom model → apply package/modelID/limit + seed default variants\"]\n end\n subgraph S2[\"2. plugin model.transform\"]\n B[\"Plugin can replace variants, clear to [], or ignore\"]\n end\n subgraph S3[\"3. config model.transform (post)\"]\n C1{\"Config sets reasoning or variants?\"}\n C1 -- yes --> C2[\"Apply explicit config\"]\n C1 -- no --> C3{\"Config changed package (or recreated removed model)?\"}\n C3 -- yes --> C4[\"Respell / reseed variants\"]\n C3 -- no --> C5[\"Keep current variants\"]\n end\n S1 --> S2 --> S3","height":37,"lines":["╭─ 1. provider.transform (seed) ───────────────────────────────────────────────────────────────────────────────────────╮","│ ╭───────────────────────────────────────╮ ╭────────────────────────────────────────────────────────────────────╮ │","│ │ Catalog model → copy catalog variants │ │ Custom model → apply package/modelID/limit + seed default variants │ │","│ ╰───────────────────────────────────────╯ ╰────────────────────────────────────────────────────────────────────╯ │","╰──────────────────────────────────────────────────────────┬───────────────────────────────────────────────────────────╯"," │"," │"," ▼"," ╭─ 2. plugin model.transform ─────────────────────────────╮"," │ ╭─────────────────────────────────────────────────────╮ │"," │ │ Plugin can replace variants, clear to [], or ignore │ │"," │ ╰─────────────────────────────────────────────────────╯ │"," ╰────────────────────────────┬────────────────────────────╯"," │"," │"," ▼"," ╭─ 3. config model.transform (post) ────────────────────────────────────────────────────────────────╮"," │ ╭───────────────────────────────────╮ │"," │ ╭─╯ ╰─╮ │"," │ │ Config sets reasoning or variants? │ │"," │ ╰─╮ ╭─╯ │"," │ ╰─────────────────┬─────────────────╯ │"," │ ╭─────────────── yes ───────────────┴─────── no ───────╮ │"," │ │ │ │"," │ │ ▼ │"," │ ▼ ╭─────────────────────────────────────────────────────╮ │"," │ ╭───────────────────────╮ ╭─╯ ╰─╮ │"," │ │ Apply explicit config │ │ Config changed package (or recreated removed model)? │ │"," │ ╰───────────────────────╯ ╰─╮ ╭─╯ │"," │ ╰──────────────────────────┬──────────────────────────╯ │"," │ ╭──────────────── yes ────────────────┴─╮ │"," │ │ │ no │"," │ ▼ ▼ │"," │ ╭───────────────────────────╮ ╭───────────────────────╮ │"," │ │ Respell / reseed variants │ │ Keep current variants │ │"," │ ╰───────────────────────────╯ ╰───────────────────────╯ │"," ╰───────────────────────────────────────────────────────────────────────────────────────────────────╯"],"runs":[[[2,0],[30,0],[88,0]],[[1,0],[1,1],[41,2],[5,1],[70,2],[1,1],[1,0]],[[1,0],[1,1],[1,2],[39,3],[1,2],[5,1],[1,2],[68,3],[1,2],[1,1],[1,0]],[[1,0],[1,1],[41,2],[5,1],[70,2],[1,1],[1,0]],[[59,0],[1,6],[60,0]],[[59,1],[1,4]],[[59,1],[1,7]],[[59,1],[1,5]],[[30,1],[2,0],[27,0],[30,0]],[[30,1],[1,0],[1,1],[55,2],[1,1],[1,0]],[[30,1],[1,0],[1,1],[1,2],[53,3],[1,2],[1,1],[1,0]],[[30,1],[1,0],[1,1],[55,2],[1,1],[1,0]],[[30,1],[29,0],[1,6],[29,0]],[[59,1],[1,4]],[[59,1],[1,7]],[[59,1],[1,5]],[[9,1],[2,0],[34,0],[65,0]],[[9,1],[1,0],[31,1],[37,2],[31,1],[1,0]],[[9,1],[1,0],[29,1],[3,2],[35,1],[3,2],[29,1],[1,0]],[[9,1],[1,0],[29,1],[1,2],[2,1],[34,3],[3,1],[1,2],[29,1],[1,0]],[[9,1],[1,0],[29,1],[3,2],[35,1],[3,2],[29,1],[1,0]],[[9,1],[1,0],[31,1],[18,2],[1,4],[18,2],[31,1],[1,0]],[[9,1],[1,0],[13,1],[16,5],[5,10],[23,5],[4,10],[8,5],[30,1],[1,0]],[[9,1],[1,0],[13,1],[1,5],[54,1],[1,5],[30,1],[1,0]],[[9,1],[1,0],[13,1],[1,5],[54,1],[1,5],[30,1],[1,0]],[[9,1],[1,0],[13,1],[1,5],[27,1],[55,2],[3,1],[1,0]],[[9,1],[1,0],[1,1],[25,2],[13,1],[3,2],[53,1],[3,2],[1,1],[1,0]],[[9,1],[1,0],[1,1],[1,2],[23,3],[1,2],[13,1],[1,2],[2,1],[52,3],[3,1],[1,2],[1,1],[1,0]],[[9,1],[1,0],[1,1],[25,2],[13,1],[3,2],[53,1],[3,2],[1,1],[1,0]],[[9,1],[1,0],[41,1],[27,2],[1,4],[27,2],[3,1],[1,0]],[[9,1],[1,0],[30,1],[17,5],[5,10],[19,5],[28,1],[1,0]],[[9,1],[1,0],[30,1],[1,5],[39,1],[1,5],[4,10],[24,1],[1,0]],[[9,1],[1,0],[30,1],[1,5],[39,1],[1,5],[28,1],[1,0]],[[9,1],[1,0],[16,1],[29,2],[13,1],[25,2],[16,1],[1,0]],[[9,1],[1,0],[16,1],[1,2],[27,3],[1,2],[13,1],[1,2],[23,3],[1,2],[16,1],[1,0]],[[9,1],[1,0],[16,1],[29,2],[13,1],[25,2],[16,1],[1,0]],[[9,1],[101,0]]]}, + {"width":120,"source":"flowchart TD\n Start[Start] --> S1\n S1 -->|done| Done[Done]\n subgraph S1[\"Stage\"]\n W1[Step 1] --> W2[Step 2]\n end","height":22,"lines":[" ╭───────╮"," │ Start │"," ╰────┬──╯"," │"," │"," ▼","╭─ Stage ────╮","│ ╭────────╮ │","│ │ Step 1 │ │","│ ╰────┬───╯ │","│ │ │","│ ▼ │","│ ╭────────╮ │","│ │ Step 2 │ │","│ ╰────────╯ │","╰──────┬─────╯"," │"," │ done "," ▼"," ╭──────╮"," │ Done │"," ╰──────╯"],"runs":[[[2,1],[9,2]],[[2,1],[1,2],[7,3],[1,2]],[[2,1],[5,2],[1,6],[3,2]],[[7,1],[1,4]],[[7,1],[1,7]],[[7,1],[1,5]],[[2,0],[7,0],[5,0]],[[1,0],[1,1],[10,2],[1,1],[1,0]],[[1,0],[1,1],[1,2],[8,3],[1,2],[1,1],[1,0]],[[1,0],[1,1],[5,2],[1,6],[4,2],[1,1],[1,0]],[[1,0],[6,1],[1,7],[5,1],[1,0]],[[1,0],[6,1],[1,5],[5,1],[1,0]],[[1,0],[1,1],[10,2],[1,1],[1,0]],[[1,0],[1,1],[1,2],[8,3],[1,2],[1,1],[1,0]],[[1,0],[1,1],[10,2],[1,1],[1,0]],[[7,0],[1,6],[6,0]],[[7,1],[1,4]],[[7,1],[1,7],[6,10]],[[7,1],[1,5]],[[3,1],[8,2]],[[3,1],[1,2],[6,3],[1,2]],[[3,1],[8,2]]]}, + {"width":120,"source":"flowchart BT\n subgraph S1[\"First group title\"]\n A1[Alpha]\n end\n subgraph S2[\"Second group title\"]\n B1[Beta]\n end\n S1 --> S2","height":13,"lines":["╭─ Second group title ╮","│ ╭──────╮ │","│ │ Beta │ │","│ ╰──────╯ │","╰─────────────────────╯"," ▲"," │"," │"," ╭─────────┴──────────╮"," │ ╭───────╮ │"," │ │ Alpha │ │"," │ ╰───────╯ │"," ╰─ First group title ╯"],"runs":[[[2,0],[20,0],[1,0]],[[1,0],[6,1],[8,2],[7,1],[1,0]],[[1,0],[6,1],[1,2],[6,3],[1,2],[7,1],[1,0]],[[1,0],[6,1],[8,2],[7,1],[1,0]],[[23,0]],[[11,1],[1,5]],[[11,1],[1,7]],[[11,1],[1,4]],[[1,1],[10,0],[1,6],[11,0]],[[1,1],[1,0],[5,1],[9,2],[6,1],[1,0]],[[1,1],[1,0],[5,1],[1,2],[7,3],[1,2],[6,1],[1,0]],[[1,1],[1,0],[5,1],[9,2],[6,1],[1,0]],[[1,1],[2,0],[19,0],[1,0]]]}, + {"width":120,"source":"flowchart TD\n subgraph Outer[\"Outer\"]\n Entry[Entry] --> Inner\n subgraph Inner[\"Inner\"]\n A[One] --> B[Two]\n end\n end","height":18,"lines":["╭─ Outer ─────╮","│ ╭───────╮ │","│ │ Entry │ │","│ ╰───┬───╯ │","│ │ │","│ │ │","│ ▼ │","│ ╭─ Inner ─╮ │","│ │ ╭─────╮ │ │","│ │ │ One │ │ │","│ │ ╰──┬──╯ │ │","│ │ │ │ │","│ │ ▼ │ │","│ │ ╭─────╮ │ │","│ │ │ Two │ │ │","│ │ ╰─────╯ │ │","│ ╰─────────╯ │","╰─────────────╯"],"runs":[[[2,0],[7,0],[6,0]],[[1,0],[2,1],[9,2],[2,1],[1,0]],[[1,0],[2,1],[1,2],[7,3],[1,2],[2,1],[1,0]],[[1,0],[2,1],[4,2],[1,6],[4,2],[2,1],[1,0]],[[1,0],[6,1],[1,4],[6,1],[1,0]],[[1,0],[6,1],[1,7],[6,1],[1,0]],[[1,0],[6,1],[1,5],[6,1],[1,0]],[[1,0],[1,1],[2,0],[7,0],[2,0],[1,1],[1,0]],[[1,0],[1,1],[1,0],[1,1],[7,2],[1,1],[1,0],[1,1],[1,0]],[[1,0],[1,1],[1,0],[1,1],[1,2],[5,3],[1,2],[1,1],[1,0],[1,1],[1,0]],[[1,0],[1,1],[1,0],[1,1],[3,2],[1,6],[3,2],[1,1],[1,0],[1,1],[1,0]],[[1,0],[1,1],[1,0],[4,1],[1,7],[4,1],[1,0],[1,1],[1,0]],[[1,0],[1,1],[1,0],[4,1],[1,5],[4,1],[1,0],[1,1],[1,0]],[[1,0],[1,1],[1,0],[1,1],[7,2],[1,1],[1,0],[1,1],[1,0]],[[1,0],[1,1],[1,0],[1,1],[1,2],[5,3],[1,2],[1,1],[1,0],[1,1],[1,0]],[[1,0],[1,1],[1,0],[1,1],[7,2],[1,1],[1,0],[1,1],[1,0]],[[1,0],[1,1],[11,0],[1,1],[1,0]],[[15,0]]]}, + {"width":120,"source":"flowchart LR\n subgraph API\n API[API Gateway] --> DB[(Postgres)]\n end","height":7,"lines":["╭─ API ───────────────────────────╮","│ ╭──────────╮ │","│ ╭─────────────╮ ├──────────┤ │","│ │ API Gateway ├───▶│ Postgres │ │","│ ╰─────────────╯ ├──────────┤ │","│ ╰──────────╯ │","╰─────────────────────────────────╯"],"runs":[[[2,0],[5,0],[28,0]],[[1,0],[20,1],[12,2],[1,1],[1,0]],[[1,0],[1,1],[15,2],[4,1],[12,2],[1,1],[1,0]],[[1,0],[1,1],[1,2],[13,3],[1,6],[1,4],[1,7],[1,8],[1,5],[1,2],[10,3],[1,2],[1,1],[1,0]],[[1,0],[1,1],[15,2],[4,1],[12,2],[1,1],[1,0]],[[1,0],[20,1],[12,2],[1,1],[1,0]],[[35,0]]]}, + {"width":120,"source":"flowchart LR\n subgraph Pipeline\n A --> B --> C --> D --> E --> F --> G --> H --> I --> J --> K --> L\n end","height":5,"lines":["╭─ Pipeline ───────────────────────────────────────────────────────────────────────────────────────────────╮","│ ╭───╮ ╭───╮ ╭───╮ ╭───╮ ╭───╮ ╭───╮ ╭───╮ ╭───╮ ╭───╮ ╭───╮ ╭───╮ ╭───╮ │","│ │ A ├───▶│ B ├───▶│ C ├───▶│ D ├───▶│ E ├───▶│ F ├───▶│ G ├───▶│ H ├───▶│ I ├───▶│ J ├───▶│ K ├───▶│ L │ │","│ ╰───╯ ╰───╯ ╰───╯ ╰───╯ ╰───╯ ╰───╯ ╰───╯ ╰───╯ ╰───╯ ╰───╯ ╰───╯ ╰───╯ │","╰──────────────────────────────────────────────────────────────────────────────────────────────────────────╯"],"runs":[[[2,0],[10,0],[96,0]],[[1,0],[1,1],[5,2],[4,1],[5,2],[4,1],[5,2],[4,1],[5,2],[4,1],[5,2],[4,1],[5,2],[4,1],[5,2],[4,1],[5,2],[4,1],[5,2],[4,1],[5,2],[4,1],[5,2],[4,1],[5,2],[1,1],[1,0]],[[1,0],[1,1],[1,2],[3,3],[1,6],[1,4],[1,7],[1,8],[1,5],[1,2],[3,3],[1,6],[1,4],[1,7],[1,8],[1,5],[1,2],[3,3],[1,6],[1,4],[1,7],[1,8],[1,5],[1,2],[3,3],[1,6],[1,4],[1,7],[1,8],[1,5],[1,2],[3,3],[1,6],[1,4],[1,7],[1,8],[1,5],[1,2],[3,3],[1,6],[1,4],[1,7],[1,8],[1,5],[1,2],[3,3],[1,6],[1,4],[1,7],[1,8],[1,5],[1,2],[3,3],[1,6],[1,4],[1,7],[1,8],[1,5],[1,2],[3,3],[1,6],[1,4],[1,7],[1,8],[1,5],[1,2],[3,3],[1,6],[1,4],[1,7],[1,8],[1,5],[1,2],[3,3],[1,6],[1,4],[1,7],[1,8],[1,5],[1,2],[3,3],[1,2],[1,1],[1,0]],[[1,0],[1,1],[5,2],[4,1],[5,2],[4,1],[5,2],[4,1],[5,2],[4,1],[5,2],[4,1],[5,2],[4,1],[5,2],[4,1],[5,2],[4,1],[5,2],[4,1],[5,2],[4,1],[5,2],[4,1],[5,2],[1,1],[1,0]],[[108,0]]]}, + {"width":120,"source":"flowchart LR\n subgraph Services\n API\n Worker\n end\n API --> Worker --> DB[(Database)]","height":5,"lines":["╭─ Services ────────────╮ ╭──────────╮","│ ╭─────╮ ╭────────╮ │ ├──────────┤","│ │ API ├───▶│ Worker ├───▶│ Database │","│ ╰─────╯ ╰────────╯ │ ├──────────┤","╰───────────────────────╯ ╰──────────╯"],"runs":[[[2,0],[10,0],[13,0],[2,1],[12,2]],[[1,0],[1,1],[7,2],[4,1],[10,2],[1,1],[1,0],[2,1],[12,2]],[[1,0],[1,1],[1,2],[5,3],[1,6],[1,4],[1,7],[1,8],[1,5],[1,2],[8,3],[1,6],[1,4],[1,7],[1,8],[1,5],[1,2],[10,3],[1,2]],[[1,0],[1,1],[7,2],[4,1],[10,2],[1,1],[1,0],[2,1],[12,2]],[[25,0],[2,1],[12,2]]]}, + {"width":120,"source":"\nflowchart LR\n subgraph Web [Web App]\n UI[UI] --> API[API]\n end\n subgraph Platform\n API --> DB[(Database)]\n end\n","height":7,"lines":[" ╭─ Platform ──────────────╮","╭─ Web App ──────────────────────╮ │ ╭──────────╮ │","│ ╭────╮ │ │ ╭─────╮ ├──────────┤ │","│ │ UI ├─────────────────────────────▶│ API ├───▶│ Database │ │","│ ╰────╯ │ │ ╰─────╯ ├──────────┤ │","╰────────────────────────────────╯ │ ╰──────────╯ │"," ╰─────────────────────────╯"],"runs":[[[36,1],[2,0],[10,0],[15,0]],[[2,0],[9,0],[23,0],[2,1],[1,0],[12,1],[12,2],[1,1],[1,0]],[[1,0],[1,1],[6,2],[25,1],[1,0],[2,1],[1,0],[1,1],[7,2],[4,1],[12,2],[1,1],[1,0]],[[1,0],[1,1],[1,2],[4,3],[6,9],[6,6],[6,4],[6,7],[6,8],[1,5],[1,2],[5,3],[1,6],[1,4],[1,7],[1,8],[1,5],[1,2],[10,3],[1,2],[1,1],[1,0]],[[1,0],[1,1],[6,2],[25,1],[1,0],[2,1],[1,0],[1,1],[7,2],[4,1],[12,2],[1,1],[1,0]],[[34,0],[2,1],[1,0],[12,1],[12,2],[1,1],[1,0]],[[36,1],[27,0]]]}, + {"width":120,"source":"\nflowchart TD\n subgraph Verse\n direction LR\n A[A] --> B[B]\n end\n","height":5,"lines":["╭─ Verse ──────╮","│ ╭───╮ ╭───╮ │","│ │ A ├─▶│ B │ │","│ ╰───╯ ╰───╯ │","╰──────────────╯"],"runs":[[[2,0],[7,0],[7,0]],[[1,0],[1,1],[5,2],[2,1],[5,2],[1,1],[1,0]],[[1,0],[1,1],[1,2],[3,3],[1,6],[1,7],[1,5],[1,2],[3,3],[1,2],[1,1],[1,0]],[[1,0],[1,1],[5,2],[2,1],[5,2],[1,1],[1,0]],[[16,0]]]}, + {"width":120,"source":"\nflowchart LR\n Parse[[Parse]] --> Layout[Layout]\n","height":3,"lines":["╭─┬─────┬─╮ ╭────────╮","│ │Parse│ ├───▶│ Layout │","╰─┴─────┴─╯ ╰────────╯"],"runs":[[[11,2],[4,1],[10,2]],[[1,2],[1,3],[1,2],[5,3],[1,2],[1,3],[1,6],[1,4],[1,7],[1,8],[1,5],[1,2],[8,3],[1,2]],[[11,2],[4,1],[10,2]]]}, + {"width":120,"source":"\nflowchart LR\n Build[Build] ==> Ship[Ship]\n","height":3,"lines":["╭───────╮ ╭──────╮","│ Build ├━━━▶│ Ship │","╰───────╯ ╰──────╯"],"runs":[[[9,2],[4,1],[8,2]],[[1,2],[7,3],[1,6],[1,4],[1,7],[1,8],[1,5],[1,2],[6,3],[1,2]],[[9,2],[4,1],[8,2]]]}, + {"width":120,"source":"\nflowchart LR\n Build[Build] -.-> Ship[Ship]\n","height":3,"lines":["╭───────╮ ╭──────╮","│ Build ├───▶│ Ship │","╰───────╯ ╰──────╯"],"runs":[[[9,2],[4,1],[8,2]],[[1,2],[7,3],[1,6],[1,4],[1,7],[1,8],[1,5],[1,2],[6,3],[1,2]],[[9,2],[4,1],[8,2]]]}, + {"width":120,"source":"flowchart LR\n D{driver} --> L[local]\n D --> M[Modal]\n D --> Mem[memory]","height":19,"lines":[" ╭───────╮"," ╭─▶│ local │"," │ ╰───────╯"," │"," │"," │"," │"," ╭───────╮ │","╭─╯ ╰─╮ │ ╭───────╮","│ driver ├─┼─▶│ Modal │","╰─╮ ╭─╯ │ ╰───────╯"," ╰───────╯ │"," │"," │"," │"," │"," │ ╭────────╮"," ╰─▶│ memory │"," ╰────────╯"],"runs":[[[17,1],[9,2]],[[14,1],[3,5],[1,2],[7,3],[1,2]],[[14,1],[1,5],[2,1],[9,2]],[[14,1],[1,5]],[[14,1],[1,5]],[[14,1],[1,5]],[[14,1],[1,5]],[[2,1],[9,2],[3,1],[1,5]],[[3,2],[7,1],[3,2],[1,1],[1,5],[2,1],[9,2]],[[1,2],[2,1],[6,3],[3,1],[1,4],[4,5],[1,2],[7,3],[1,2]],[[3,2],[7,1],[3,2],[1,1],[1,5],[2,1],[9,2]],[[2,1],[9,2],[3,1],[1,5]],[[14,1],[1,5]],[[14,1],[1,5]],[[14,1],[1,5]],[[14,1],[1,5]],[[14,1],[1,5],[2,1],[10,2]],[[14,1],[3,5],[1,2],[8,3],[1,2]],[[17,1],[10,2]]]}, + {"width":120,"source":"flowchart TD\n C[Files contract<br/>read / write / stat<br/>errors: Failed] -->|implemented by| ED[exec-defaults<br/>fused scripts<br/>one process]","height":13,"lines":["╭─────────────────────╮","│ Files contract │","│ read / write / stat │","│ errors: Failed │","╰──────────┬──────────╯"," │"," │ implemented by "," ▼"," ╭───────────────╮"," │ exec-defaults │"," │ fused scripts │"," │ one process │"," ╰───────────────╯"],"runs":[[[23,2]],[[1,2],[21,3],[1,2]],[[1,2],[21,3],[1,2]],[[1,2],[21,3],[1,2]],[[11,2],[1,6],[11,2]],[[11,1],[1,4]],[[11,1],[1,7],[16,10]],[[11,1],[1,5]],[[3,1],[17,2]],[[3,1],[1,2],[15,3],[1,2]],[[3,1],[1,2],[15,3],[1,2]],[[3,1],[1,2],[15,3],[1,2]],[[3,1],[17,2]]]}, + {"width":120,"source":"\nflowchart LR\n subgraph Outer\n subgraph Inner [Inner Work]\n A[A] --> B[B]\n end\n B --> C[C]\n end\n","height":7,"lines":["╭─ Outer ───────────────────╮","│ ╭─ Inner Work ───╮ │","│ │ ╭───╮ ╭───╮ │ ╭───╮ │","│ │ │ A ├───▶│ B ├───▶│ C │ │","│ │ ╰───╯ ╰───╯ │ ╰───╯ │","│ ╰────────────────╯ │","╰───────────────────────────╯"],"runs":[[[2,0],[7,0],[20,0]],[[1,0],[1,1],[2,0],[12,0],[4,0],[8,1],[1,0]],[[1,0],[1,1],[1,0],[1,1],[5,2],[4,1],[5,2],[1,1],[1,0],[2,1],[5,2],[1,1],[1,0]],[[1,0],[1,1],[1,0],[1,1],[1,2],[3,3],[1,6],[1,4],[1,7],[1,8],[1,5],[1,2],[3,3],[1,6],[1,4],[1,7],[1,8],[1,5],[1,2],[3,3],[1,2],[1,1],[1,0]],[[1,0],[1,1],[1,0],[1,1],[5,2],[4,1],[5,2],[1,1],[1,0],[2,1],[5,2],[1,1],[1,0]],[[1,0],[1,1],[18,0],[8,1],[1,0]],[[29,0]]]}, + {"width":120,"source":"\ngraph LR\n Client([Client]) --> API[API]\n API --> Cache[(Cache)]\n","height":5,"lines":[" ╭───────╮","╭────────╮ ╭─────╮ ├───────┤","│ Client ├───▶│ API ├───▶│ Cache │","╰────────╯ ╰─────╯ ├───────┤"," ╰───────╯"],"runs":[[[25,1],[9,2]],[[10,2],[4,1],[7,2],[4,1],[9,2]],[[1,2],[8,3],[1,6],[1,4],[1,7],[1,8],[1,5],[1,2],[5,3],[1,6],[1,4],[1,7],[1,8],[1,5],[1,2],[7,3],[1,2]],[[10,2],[4,1],[7,2],[4,1],[9,2]],[[25,1],[9,2]]]}, + {"width":120,"source":"\nflowchart LR\n Build[Build] --> Gate{Ready?}\n Gate -->|yes| Ship([Ship])\n Gate -->|no| Fix[Fix]\n","height":11,"lines":[" ╭──────╮"," ╭─ yes ─▶│ Ship │"," │ ╰──────╯"," ╭───────╮ │","╭───────╮ ╭─╯ ╰─╮ │","│ Build ├───▶│ Ready? ├───┤","╰───────╯ ╰─╮ ╭─╯ │"," ╰───────╯ │"," │ ╭─────╮"," ╰─ no ──▶│ Fix │"," ╰─────╯"],"runs":[[[38,1],[8,2]],[[29,1],[2,5],[5,10],[2,5],[1,2],[6,3],[1,2]],[[29,1],[1,5],[8,1],[8,2]],[[15,1],[9,2],[5,1],[1,5]],[[9,2],[4,1],[3,2],[7,1],[3,2],[3,1],[1,5]],[[1,2],[7,3],[1,6],[1,4],[1,7],[1,8],[1,5],[1,2],[2,1],[6,3],[3,1],[1,4],[4,5]],[[9,2],[4,1],[3,2],[7,1],[3,2],[3,1],[1,5]],[[15,1],[9,2],[5,1],[1,5]],[[29,1],[1,5],[8,1],[7,2]],[[29,1],[2,5],[4,10],[3,5],[1,2],[5,3],[1,2]],[[38,1],[7,2]]]}, + {"width":120,"source":"\nflowchart LR\n Gate{Ready?} -->|pass| Stage[(Stage)]\n Gate -->|notes| Notes([Notes])\n","height":13,"lines":[" ╭───────╮"," ├───────┤"," ╭─ pass ──▶│ Stage │"," │ ├───────┤"," ╭───────╮ │ ╰───────╯","╭─╯ ╰─╮ │","│ Ready? ├───┤","╰─╮ ╭─╯ │"," ╰───────╯ │"," │"," │ ╭───────╮"," ╰─ notes ─▶│ Notes │"," ╰───────╯"],"runs":[[[27,1],[9,2]],[[27,1],[9,2]],[[16,1],[2,5],[6,10],[3,5],[1,2],[7,3],[1,2]],[[16,1],[1,5],[10,1],[9,2]],[[2,1],[9,2],[5,1],[1,5],[10,1],[9,2]],[[3,2],[7,1],[3,2],[3,1],[1,5]],[[1,2],[2,1],[6,3],[3,1],[1,4],[4,5]],[[3,2],[7,1],[3,2],[3,1],[1,5]],[[2,1],[9,2],[5,1],[1,5]],[[16,1],[1,5]],[[16,1],[1,5],[10,1],[9,2]],[[16,1],[2,5],[7,10],[2,5],[1,2],[7,3],[1,2]],[[27,1],[9,2]]]}, + {"width":120,"source":"flowchart LR\n A[Start] -->|first<br/>second line| B[Finish]","height":4,"lines":[" first ","╭───────╮ second line ╭────────╮","│ Start ├───────────────────▶│ Finish │","╰───────╯ ╰────────╯"],"runs":[[[12,1],[7,10]],[[9,2],[3,1],[13,10],[4,1],[10,2]],[[1,2],[7,3],[4,9],[4,6],[4,4],[4,7],[4,8],[1,5],[1,2],[8,3],[1,2]],[[9,2],[20,1],[10,2]]]}, + {"width":120,"source":"flowchart LR\n A[Start] -->|route label| B[Finish]","height":3,"lines":["╭───────╮ ╭────────╮","│ Start ├─── route label ───▶│ Finish │","╰───────╯ ╰────────╯"],"runs":[[[9,2],[20,1],[10,2]],[[1,2],[7,3],[1,6],[1,4],[1,7],[1,8],[13,10],[4,5],[1,2],[8,3],[1,2]],[[9,2],[20,1],[10,2]]]}, + {"width":120,"source":"flowchart TB\n DO[\"ServerWorkerd.create({ storage, config })\"]\n DO --> SO[\"serverOptions()<br/><i>option flags</i>\"]\n DO --> RP[\"replacements()<br/><i>layer overrides</i>\"]\n SO -->|\"fs: watcher/fff off<br/>events.persist: true<br/>mcp.stdio: false<br/>config as string\"| SF[\"ServerFetch.make(options, { overrides })\"]\n RP -->|\"Database → DO-SQLite<br/>Shell/FS/Pty → typed-unavailable<br/>Snapshot/Vcs → no-op<br/>plugins → precompiled only\"| SF\n SF --> GRAPH[\"LayerNode graph<br/>(core builds normally,<br/>swapped nodes substituted)\"]","height":25,"lines":[" ╭───────────────────────────────────────────╮"," │ ServerWorkerd.create({ storage, config }) │"," ╰─────────────────────┬─────────────────────╯"," ╭─────────────────────────────┴──────────────────────────────╮"," ▼ ▼"," ╭─────────────────╮ ╭─────────────────╮"," │ serverOptions() │ │ replacements() │","╭──┤ option flags │ │ layer overrides │","│ ╰─────────────────╯ ╰────────┬────────╯","│ │ Database → DO-SQLite ","│ fs: watcher/fff off │ Shell/FS/Pty → typed-unavailable ","│ events.persist: true ╭─────────────────────────────╯ Snapshot/Vcs → no-op ","│ mcp.stdio: false │ plugins → precompiled only ","│ config as string │","│ ▼","│ ╭──────────────────────────────────────────╮","╰───────────────────▶│ ServerFetch.make(options, { overrides }) │"," ╰─────────────────────┬────────────────────╯"," │"," ▼"," ╭────────────────────────────╮"," │ LayerNode graph │"," │ (core builds normally, │"," │ swapped nodes substituted) │"," ╰────────────────────────────╯"],"runs":[[[20,1],[45,2]],[[20,1],[1,2],[43,3],[1,2]],[[20,1],[22,2],[1,4],[22,2]],[[12,1],[62,5]],[[12,1],[1,5],[60,1],[1,5]],[[3,1],[19,2],[42,1],[19,2]],[[3,1],[1,2],[17,3],[1,2],[42,1],[1,2],[17,3],[1,2]],[[1,5],[1,7],[1,4],[1,6],[2,3],[12,11],[3,3],[1,2],[42,1],[1,2],[1,3],[15,11],[1,3],[1,2]],[[1,5],[2,1],[19,2],[42,1],[9,2],[1,6],[9,2]],[[1,5],[72,1],[1,4],[22,10]],[[1,5],[2,1],[21,10],[49,1],[1,7],[34,10]],[[1,5],[2,1],[22,10],[18,1],[31,5],[22,10]],[[1,5],[2,1],[18,10],[22,1],[1,5],[30,1],[28,10]],[[1,5],[2,1],[18,10],[22,1],[1,5]],[[1,5],[42,1],[1,5]],[[1,5],[20,1],[44,2]],[[21,5],[1,2],[42,3],[1,2]],[[21,1],[22,2],[1,6],[21,2]],[[43,1],[1,7]],[[43,1],[1,5]],[[28,1],[30,2]],[[28,1],[1,2],[28,3],[1,2]],[[28,1],[1,2],[28,3],[1,2]],[[28,1],[1,2],[28,3],[1,2]],[[28,1],[30,2]]]}, + {"width":120,"source":"flowchart TB\n subgraph consumer[\"Durable Object\"]\n DO[\"ServerWorkerd.create({ storage, config })\"]\n end\n\n DO --> SO[\"serverOptions()<br/><i>option flags</i>\"]\n DO --> RP[\"replacements()<br/><i>layer overrides</i>\"]\n\n SO -->|\"fs: watcher/fff off<br/>events.persist: true<br/>mcp.stdio: false<br/>config as string\"| SF[\"ServerFetch.make(options, { overrides })\"]\n RP -->|\"Database → DO-SQLite<br/>Shell/FS/Pty → typed-unavailable<br/>Snapshot/Vcs → no-op<br/>plugins → precompiled only\"| SF\n\n SF --> GRAPH[\"LayerNode graph<br/>(core builds normally,<br/>swapped nodes substituted)\"]\n\n subgraph bundle[\"3rd mechanism: bundle conditions (build time)\"]\n COND[\"--conditions=workerd<br/>pty / fff / photon / shell-parser<br/>native modules → inert stubs<br/>#global-roots → workerd path rooting\"]\n end\n COND -.->|import resolution| GRAPH","height":31,"lines":[" ╭─ 3rd mechanism: bundle conditions (build time) ╮"," ╭─ Durable Object ──────────────────────────────╮ │ ╭──────────────────────────────────────╮ │"," │ ╭───────────────────────────────────────────╮ │ │ │ --conditions=workerd │ │","╭────┤ ServerWorkerd.create({ storage, config }) │ │ │ │ pty / fff / photon / shell-parser │ │","│ │ ╰─────────────────────┬─────────────────────╯ │ │ │ native modules → inert stubs ├──────────╮","│ ╰───────────────────────│───────────────────────╯ │ │ #global-roots → workerd path rooting │ │ │","│ │ │ ╰──────────────────────────────────────╯ │ │","│ ╰──╮ ╰────────────────────────────────────────────────╯ │","╰─────────────────────────────┼────────────────────────────────────────────────────────────╮ │"," ▼ ▼ │"," ╭─────────────────╮ ╭─────────────────╮ │"," │ serverOptions() │ │ replacements() │ │","╭────────────────────┤ option flags │ │ layer overrides │ │","│ ╰─────────────────╯ ╰────────┬────────╯ │","│ │ Database → DO-SQLite │","│ │ Shell/FS/Pty → typed-unavailable │","│ ╭─────────────────────────────╯ Snapshot/Vcs → no-op │","│ fs: watcher/fff off │ plugins → precompiled only │","│ events.persist: true │ │","│ mcp.stdio: false ▼ │","│ config as string ╭──────────────────────────────────────────╮ │","╰─────────────────────────────────────▶│ ServerFetch.make(options, { overrides }) │ │"," ╰─────────────────────┬────────────────────╯ │"," │ │"," │ │"," ▼ │"," ╭────────────────────────────╮ │"," │ LayerNode graph │ │"," │ (core builds normally, │◀─────────────── import resolution ────────────────╯"," │ swapped nodes substituted) │"," ╰────────────────────────────╯"],"runs":[[[72,1],[2,0],[47,0],[1,0]],[[3,1],[2,0],[16,0],[31,0],[20,1],[1,0],[4,1],[40,2],[4,1],[1,0]],[[3,1],[1,0],[1,1],[45,2],[1,1],[1,0],[20,1],[1,0],[4,1],[1,2],[38,3],[1,2],[4,1],[1,0]],[[1,5],[1,8],[1,7],[1,4],[1,6],[1,9],[43,3],[1,2],[1,1],[1,0],[20,1],[1,0],[4,1],[1,2],[38,3],[1,2],[4,1],[1,0]],[[1,5],[2,1],[1,0],[1,1],[22,2],[1,6],[22,2],[1,1],[1,0],[20,1],[1,0],[4,1],[1,2],[38,3],[2,9],[2,6],[3,4],[2,7],[2,8],[1,5]],[[1,5],[2,1],[24,0],[1,4],[24,0],[20,1],[1,0],[4,1],[1,2],[38,3],[1,2],[4,1],[1,0],[5,1],[1,5]],[[1,5],[26,1],[1,7],[44,1],[1,0],[4,1],[40,2],[4,1],[1,0],[5,1],[1,5]],[[1,5],[26,1],[4,5],[41,1],[50,0],[5,1],[1,5]],[[92,5],[35,1],[1,5]],[[30,1],[1,5],[60,1],[1,5],[35,1],[1,5]],[[21,1],[19,2],[42,1],[19,2],[26,1],[1,5]],[[21,1],[1,2],[17,3],[1,2],[42,1],[1,2],[17,3],[1,2],[26,1],[1,5]],[[1,5],[4,8],[4,7],[5,4],[4,6],[4,9],[2,3],[12,11],[3,3],[1,2],[42,1],[1,2],[1,3],[15,11],[1,3],[1,2],[26,1],[1,5]],[[1,5],[20,1],[19,2],[42,1],[9,2],[1,6],[9,2],[26,1],[1,5]],[[1,5],[90,1],[1,4],[22,10],[13,1],[1,5]],[[1,5],[90,1],[1,7],[34,10],[1,1],[1,5]],[[1,5],[60,1],[31,5],[22,10],[13,1],[1,5]],[[1,5],[7,1],[21,10],[32,1],[1,5],[30,1],[28,10],[7,1],[1,5]],[[1,5],[7,1],[22,10],[31,1],[1,5],[65,1],[1,5]],[[1,5],[7,1],[18,10],[35,1],[1,5],[65,1],[1,5]],[[1,5],[7,1],[18,10],[13,1],[44,2],[44,1],[1,5]],[[39,5],[1,2],[42,3],[1,2],[44,1],[1,5]],[[39,1],[22,2],[1,6],[21,2],[44,1],[1,5]],[[61,1],[1,7],[65,1],[1,5]],[[61,1],[1,5],[65,1],[1,5]],[[61,1],[1,5],[65,1],[1,5]],[[46,1],[30,2],[51,1],[1,5]],[[46,1],[1,2],[28,3],[1,2],[51,1],[1,5]],[[46,1],[1,2],[28,3],[1,2],[16,5],[19,10],[17,5]],[[46,1],[1,2],[28,3],[1,2]],[[46,1],[30,2]]]}, + {"width":120,"source":"flowchart LR\n A[Start] -->|one<br/>two<br/>three<br/>four<br/>five| B[Upper]\n A --> C[Lower]","height":15,"lines":[" one "," two "," three "," four "," five ╭───────╮"," ╭─────────▶│ Upper │"," │ ╰───────╯"," │","╭───────╮ │","│ Start ├───┤","╰───────╯ │"," │"," │ ╭───────╮"," ╰─────────▶│ Lower │"," ╰───────╯"],"runs":[[[14,1],[5,10]],[[14,1],[5,10]],[[14,1],[7,10]],[[14,1],[6,10]],[[14,1],[6,10],[3,1],[9,2]],[[12,1],[11,5],[1,2],[7,3],[1,2]],[[12,1],[1,5],[10,1],[9,2]],[[12,1],[1,5]],[[9,2],[3,1],[1,5]],[[1,2],[7,3],[1,4],[4,5]],[[9,2],[3,1],[1,5]],[[12,1],[1,5]],[[12,1],[1,5],[10,1],[9,2]],[[12,1],[11,5],[1,2],[7,3],[1,2]],[[23,1],[9,2]]]}, + {"width":120,"source":"flowchart TD\n A[Start] -->|first<br/>second<br/>third<br/>fourth| B[Finish]","height":12,"lines":["╭───────╮","│ Start │","╰────┬──╯"," │"," │ first "," │ second "," │ third "," │ fourth "," ▼","╭────────╮","│ Finish │","╰────────╯"],"runs":[[[9,2]],[[1,2],[7,3],[1,2]],[[5,2],[1,9],[3,2]],[[5,1],[1,6]],[[5,1],[1,4],[7,10]],[[5,1],[1,4],[8,10]],[[5,1],[1,7],[7,10]],[[5,1],[1,8],[8,10]],[[5,1],[1,5]],[[10,2]],[[1,2],[8,3],[1,2]],[[10,2]]]}, + {"width":120,"source":"flowchart TD\n A --> B\n B -->|try<br/>again| A","height":10,"lines":["╭───╮","│ A │◀─╮","╰─┬─╯ │"," │ │"," │ │ try "," │ │ again "," ▼ │","╭───╮ │","│ B ├──╯","╰───╯"],"runs":[[[5,2]],[[1,2],[3,3],[1,2],[3,5]],[[2,2],[1,6],[2,2],[2,1],[1,5]],[[2,1],[1,4],[4,1],[1,5]],[[2,1],[1,7],[4,1],[1,5],[5,10]],[[2,1],[1,8],[4,1],[1,5],[7,10]],[[2,1],[1,5],[4,1],[1,5]],[[5,2],[2,1],[1,5]],[[1,2],[3,3],[1,6],[1,4],[1,7],[1,5]],[[5,2]]]}, + {"width":120,"source":"\nflowchart LR\n Spec[Spec] --> Plan[Plan]\n Plan --> Build[Build]\n Build --> Gate{Ready?}\n Gate -->|pass| Stage[(Stage)]\n","height":5,"lines":[" ╭───────╮ ╭───────╮","╭──────╮ ╭──────╮ ╭───────╮ ╭─╯ ╰─╮ ├───────┤","│ Spec ├───▶│ Plan ├───▶│ Build ├───▶│ Ready? ├─── pass ───▶│ Stage │","╰──────╯ ╰──────╯ ╰───────╯ ╰─╮ ╭─╯ ├───────┤"," ╰───────╯ ╰───────╯"],"runs":[[[39,1],[9,2],[15,1],[9,2]],[[8,2],[4,1],[8,2],[4,1],[9,2],[4,1],[3,2],[7,1],[3,2],[13,1],[9,2]],[[1,2],[6,3],[1,6],[1,4],[1,7],[1,8],[1,5],[1,2],[6,3],[1,6],[1,4],[1,7],[1,8],[1,5],[1,2],[7,3],[1,6],[1,4],[1,7],[1,8],[1,5],[1,2],[2,1],[6,3],[3,1],[1,6],[1,4],[1,7],[1,8],[6,10],[4,5],[1,2],[7,3],[1,2]],[[8,2],[4,1],[8,2],[4,1],[9,2],[4,1],[3,2],[7,1],[3,2],[13,1],[9,2]],[[39,1],[9,2],[15,1],[9,2]]]}, + {"width":120,"source":"\ngraph LR\n subgraph Web [Web App]\n UI[UI] --> API[API]\n end\n API --> DB[(DB)]\n","height":5,"lines":["╭─ Web App ─────────╮ ╭────╮","│ ╭────╮ ╭─────╮ │ ├────┤","│ │ UI ├───▶│ API ├───▶│ DB │","│ ╰────╯ ╰─────╯ │ ├────┤","╰───────────────────╯ ╰────╯"],"runs":[[[2,0],[9,0],[10,0],[2,1],[6,2]],[[1,0],[1,1],[6,2],[4,1],[7,2],[1,1],[1,0],[2,1],[6,2]],[[1,0],[1,1],[1,2],[4,3],[1,6],[1,4],[1,7],[1,8],[1,5],[1,2],[5,3],[1,6],[1,4],[1,7],[1,8],[1,5],[1,2],[4,3],[1,2]],[[1,0],[1,1],[6,2],[4,1],[7,2],[1,1],[1,0],[2,1],[6,2]],[[21,0],[2,1],[6,2]]]}, + {"width":120,"source":"flowchart LR\n Outside[Outside] --> Inside\n subgraph Group\n Inside[Inside]\n end","height":5,"lines":[" ╭─ Group ────╮","╭─────────╮ │ ╭────────╮ │","│ Outside ├───▶│ Inside │ │","╰─────────╯ │ ╰────────╯ │"," ╰────────────╯"],"runs":[[[13,1],[2,0],[7,0],[5,0]],[[11,2],[2,1],[1,0],[1,1],[10,2],[1,1],[1,0]],[[1,2],[9,3],[1,6],[1,4],[1,7],[1,8],[1,5],[1,2],[8,3],[1,2],[1,1],[1,0]],[[11,2],[2,1],[1,0],[1,1],[10,2],[1,1],[1,0]],[[13,1],[14,0]]]}, + {"width":120,"source":"flowchart TD\n Outside[Outside] --> Inside\n subgraph Outer [O]\n subgraph Inner\n Inside[Inside]\n end\n end","height":10,"lines":[" ╭─────────╮"," │ Outside │"," ╰────┬────╯","╭─ O ────│───────╮","│ ╭──────▼─────╮ │","│ │ ╭────────╮ │ │","│ │ │ Inside │ │ │","│ │ ╰────────╯ │ │","│ ╰─ Inner ────╯ │","╰────────────────╯"],"runs":[[[4,1],[11,2]],[[4,1],[1,2],[9,3],[1,2]],[[4,1],[5,2],[1,6],[5,2]],[[2,0],[3,0],[4,0],[1,7],[8,0]],[[1,0],[1,1],[7,0],[1,5],[6,0],[1,1],[1,0]],[[1,0],[1,1],[1,0],[1,1],[10,2],[1,1],[1,0],[1,1],[1,0]],[[1,0],[1,1],[1,0],[1,1],[1,2],[8,3],[1,2],[1,1],[1,0],[1,1],[1,0]],[[1,0],[1,1],[1,0],[1,1],[10,2],[1,1],[1,0],[1,1],[1,0]],[[1,0],[1,1],[2,0],[7,0],[5,0],[1,1],[1,0]],[[18,0]]]}, + {"width":120,"source":"flowchart LR\n subgraph Web [API<br/>Services]\n A[Worker]\n end","height":7,"lines":["╭─ API ──────╮","│ Services │","│ ╭────────╮ │","│ │ Worker │ │","│ ╰────────╯ │","│ │","╰────────────╯"],"runs":[[[2,0],[5,0],[7,0]],[[1,0],[1,1],[10,0],[1,1],[1,0]],[[1,0],[1,1],[10,2],[1,1],[1,0]],[[1,0],[1,1],[1,2],[8,3],[1,2],[1,1],[1,0]],[[1,0],[1,1],[10,2],[1,1],[1,0]],[[1,0],[12,1],[1,0]],[[14,0]]]}, + {"width":120,"source":"flowchart TD\n Input --> A\n subgraph Group [Line one<br/>Line two]\n A[A] --> B[B]\n end","height":15,"lines":[" ╭───────╮"," │ Input │"," ╰───┬───╯","╭─────│─────╮","│ ▼ │","│ ╭───╮ │","│ │ A │ │","│ ╰─┬─╯ │","│ │ │","│ ▼ │","│ ╭───╮ │","│ │ B │ │","│ ╰───╯ │","│ Line one │","╰─ Line two ╯"],"runs":[[[2,1],[9,2]],[[2,1],[1,2],[7,3],[1,2]],[[2,1],[4,2],[1,6],[4,2]],[[6,0],[1,7],[6,0]],[[1,0],[5,1],[1,5],[5,1],[1,0]],[[1,0],[3,1],[5,2],[3,1],[1,0]],[[1,0],[3,1],[1,2],[3,3],[1,2],[3,1],[1,0]],[[1,0],[3,1],[2,2],[1,6],[2,2],[3,1],[1,0]],[[1,0],[5,1],[1,7],[5,1],[1,0]],[[1,0],[5,1],[1,5],[5,1],[1,0]],[[1,0],[3,1],[5,2],[3,1],[1,0]],[[1,0],[3,1],[1,2],[3,3],[1,2],[3,1],[1,0]],[[1,0],[3,1],[5,2],[3,1],[1,0]],[[1,0],[1,1],[10,0],[1,0]],[[2,0],[10,0],[1,0]]]}, + {"width":120,"source":"flowchart TD\n U[Up] --> A\n subgraph G [界界界界界界]\n A[A]\n end\n A --> D[Down]","height":13,"lines":[" ╭────╮"," │ Up ├───────╮"," ╰────╯ │"," │","╭─ 界界界界界界 ╮ │","│ ╭───╮ │ │","│ │ A │◀───────╯","│ ╰──┬╯ │","╰────────│──────╯"," ▼"," ╭──────╮"," │ Down │"," ╰──────╯"],"runs":[[[6,1],[6,2]],[[6,1],[1,2],[4,3],[1,9],[2,6],[2,4],[2,7],[1,8],[1,5]],[[6,1],[6,2],[7,1],[1,5]],[[19,1],[1,5]],[[2,0],[8,0],[1,0],[2,1],[1,5]],[[1,0],[5,1],[5,2],[5,1],[1,0],[2,1],[1,5]],[[1,0],[5,1],[1,2],[3,3],[1,2],[9,5]],[[1,0],[5,1],[3,2],[1,6],[1,2],[5,1],[1,0]],[[9,0],[1,7],[7,0]],[[9,1],[1,5]],[[5,1],[8,2]],[[5,1],[1,2],[6,3],[1,2]],[[5,1],[8,2]]]}, + {"width":120,"source":"\nflowchart TD\n Start[Start] --> A[A]\n subgraph Steps\n direction LR\n A --> B[B]\n B --> C[C]\n end\n C --> Done[Done]\n","height":16,"lines":[" ╭───────╮"," │ Start │"," ╰───┬───╯","╭─────────────╯","│ ╭─ Steps ─────────────╮","│ │ ╭───╮ ╭───╮ ╭───╮ │","╰───▶│ A ├─▶│ B ├─▶│ C │ │"," │ ╰───╯ ╰───╯ ╰─┬─╯ │"," ╰─────────────────│───╯"," │"," ╭──────╮ │"," │ Done │ │"," ╰──────╯ │"," ▲ │"," │ │"," ╰──────╯"],"runs":[[[10,1],[9,2]],[[10,1],[1,2],[7,3],[1,2]],[[10,1],[4,2],[1,4],[4,2]],[[15,5]],[[1,5],[2,1],[2,0],[7,0],[14,0]],[[1,5],[2,1],[1,0],[1,1],[5,2],[2,1],[5,2],[2,1],[5,2],[1,1],[1,0]],[[5,5],[1,2],[3,3],[1,6],[1,7],[1,5],[1,2],[3,3],[1,6],[1,7],[1,5],[1,2],[3,3],[1,2],[1,1],[1,0]],[[3,1],[1,0],[1,1],[5,2],[2,1],[5,2],[2,1],[2,2],[1,9],[2,2],[1,1],[1,0]],[[3,1],[18,0],[1,6],[4,0]],[[21,1],[1,6]],[[10,1],[8,2],[3,1],[1,4]],[[10,1],[1,2],[6,3],[1,2],[3,1],[1,4]],[[10,1],[8,2],[3,1],[1,7]],[[14,1],[1,5],[6,1],[1,7]],[[14,1],[1,5],[6,1],[1,8]],[[14,1],[8,5]]]}, + {"width":120,"source":"flowchart TD\n subgraph Workers\n direction TD\n A[Worker one] --> B[Worker two]\n end\n subgraph Peer\n direction RL\n C[Store] --> D[Transform]\n end\n B --> D","height":16,"lines":[" ╭─ Workers ────────────────╮"," │ ╭────────────╮ │"," │ │ Worker one │ │"," │ ╰──────┬─────╯ │"," │ ╰─────────╮ │"," │ ▼ │"," │ ╭────────────╮ │","╭──────────────┤ Worker two │ │","│ │ ╰────────────╯ │","│ ╰──────────────────────────╯","│","│ ╭─ Peer ───────────────────╮","│ │ ╭───────────╮ ╭───────╮ │","╰──────────────▶│ Transform │◀─┤ Store │ │"," │ ╰───────────╯ ╰───────╯ │"," ╰──────────────────────────╯"],"runs":[[[3,1],[2,0],[9,0],[17,0]],[[3,1],[1,0],[1,1],[14,2],[11,1],[1,0]],[[3,1],[1,0],[1,1],[1,2],[12,3],[1,2],[11,1],[1,0]],[[3,1],[1,0],[1,1],[7,2],[1,4],[6,2],[11,1],[1,0]],[[3,1],[1,0],[8,1],[11,5],[7,1],[1,0]],[[3,1],[1,0],[18,1],[1,5],[7,1],[1,0]],[[3,1],[1,0],[11,1],[14,2],[1,1],[1,0]],[[1,5],[3,8],[3,7],[3,4],[3,6],[3,9],[12,3],[1,2],[1,1],[1,0]],[[1,5],[2,1],[1,0],[11,1],[14,2],[1,1],[1,0]],[[1,5],[2,1],[28,0]],[[1,5]],[[1,5],[13,1],[2,0],[6,0],[20,0]],[[1,5],[13,1],[1,0],[1,1],[13,2],[2,1],[9,2],[1,1],[1,0]],[[16,5],[1,2],[11,3],[1,2],[1,5],[1,7],[1,6],[7,3],[1,2],[1,1],[1,0]],[[14,1],[1,0],[1,1],[13,2],[2,1],[9,2],[1,1],[1,0]],[[14,1],[28,0]]]}, + {"width":120,"source":"flowchart TD\n Input --> Parse\n subgraph Outer\n direction LR\n subgraph Inner\n direction BT\n Parse[Parse] --> Validate{Valid?}\n Validate -->|yes| Cache[(Cache)]\n Cache --> Validate\n end\n Validate --> Dispatch[Dispatch]\n end","height":32,"lines":[" ╭───────╮"," │ Input │"," ╰───┬───╯","╭──────────────────────────╯","│ ╭─ Outer ────────────────────────────────╮","│ │ ╭─ Inner ────────────────────────────╮ │","│ │ │ ╭───────╮ │ │","│ │ │ ├───────┤ │ │","│ │ │ │ Cache ├──────────────────────╮ │ │","│ │ │ ├───────┤ │ │ │","│ │ │ ╰───────╯ │ │ │","│ │ │ ▲ │ │ │","│ │ │ │ yes │ │ │","│ │ │ │ │ │ │","│ │ │ ╭───┴───╮ ╭──────────╮ │ │ │","│ │ │ ╭─╯ ╰─╮ ╭▶│ Dispatch │ │ │ │","│ │ │ │ Valid? ├╮ │ ╰──────────╯ │ │ │","│ │ │ ╰─╮ ╭─╯│ │ │ │ │","│ │ │ ╰───────╯ │ │ │ │ │","│ │ │ ▲ │ │ │ │ │","│ │ │ │──────┼─┼─────────────────╯ │ │","│ │ │ ╭───┴───╮ │ │ │ │","╰───────────▶│ Parse │ │ │ │ │"," │ │ ╰───────╯ │ │ │ │"," │ ╰──────────────│─│───────────────────╯ │"," │ │ │ │"," │ │ │ │"," │ │ │ │"," │ │ │ │"," │ │ │ │"," │ ╰─╯ │"," ╰────────────────────────────────────────╯"],"runs":[[[23,1],[9,2]],[[23,1],[1,2],[7,3],[1,2]],[[23,1],[4,2],[1,4],[4,2]],[[28,5]],[[1,5],[6,1],[2,0],[7,0],[33,0]],[[1,5],[6,1],[1,0],[1,1],[2,0],[7,0],[29,0],[1,1],[1,0]],[[1,5],[6,1],[1,0],[1,1],[1,0],[3,1],[9,2],[24,1],[1,0],[1,1],[1,0]],[[1,5],[6,1],[1,0],[1,1],[1,0],[3,1],[9,2],[24,1],[1,0],[1,1],[1,0]],[[1,5],[6,1],[1,0],[1,1],[1,0],[3,1],[1,2],[7,3],[4,9],[5,6],[5,4],[5,7],[4,8],[1,5],[1,1],[1,0],[1,1],[1,0]],[[1,5],[6,1],[1,0],[1,1],[1,0],[3,1],[9,2],[22,1],[1,5],[1,1],[1,0],[1,1],[1,0]],[[1,5],[6,1],[1,0],[1,1],[1,0],[3,1],[9,2],[22,1],[1,5],[1,1],[1,0],[1,1],[1,0]],[[1,5],[6,1],[1,0],[1,1],[1,0],[7,1],[1,5],[26,1],[1,5],[1,1],[1,0],[1,1],[1,0]],[[1,5],[6,1],[1,0],[1,1],[1,0],[7,1],[1,7],[5,10],[21,1],[1,5],[1,1],[1,0],[1,1],[1,0]],[[1,5],[6,1],[1,0],[1,1],[1,0],[7,1],[1,4],[26,1],[1,5],[1,1],[1,0],[1,1],[1,0]],[[1,5],[6,1],[1,0],[1,1],[1,0],[3,1],[4,2],[1,6],[4,2],[6,1],[12,2],[4,1],[1,5],[1,1],[1,0],[1,1],[1,0]],[[1,5],[6,1],[1,0],[1,1],[1,0],[1,1],[3,2],[7,1],[3,2],[2,1],[2,5],[1,2],[10,3],[1,2],[4,1],[1,5],[1,1],[1,0],[1,1],[1,0]],[[1,5],[6,1],[1,0],[1,1],[1,0],[1,1],[1,2],[2,1],[6,3],[3,1],[1,4],[1,5],[1,1],[1,5],[1,1],[12,2],[4,1],[1,5],[1,1],[1,0],[1,1],[1,0]],[[1,5],[6,1],[1,0],[1,1],[1,0],[1,1],[3,2],[7,1],[3,2],[1,5],[1,1],[1,5],[17,1],[1,5],[1,1],[1,0],[1,1],[1,0]],[[1,5],[6,1],[1,0],[1,1],[1,0],[3,1],[9,2],[2,1],[1,5],[1,1],[1,5],[17,1],[1,5],[1,1],[1,0],[1,1],[1,0]],[[1,5],[6,1],[1,0],[1,1],[1,0],[7,1],[1,5],[6,1],[1,5],[1,1],[1,5],[17,1],[1,5],[1,1],[1,0],[1,1],[1,0]],[[1,5],[6,1],[1,0],[1,1],[1,0],[7,1],[1,7],[27,5],[1,1],[1,0],[1,1],[1,0]],[[1,5],[6,1],[1,0],[1,1],[1,0],[3,1],[4,2],[1,6],[4,2],[2,1],[1,5],[1,1],[1,5],[19,1],[1,0],[1,1],[1,0]],[[13,5],[1,2],[7,3],[1,2],[2,1],[1,5],[1,1],[1,5],[19,1],[1,0],[1,1],[1,0]],[[7,1],[1,0],[1,1],[1,0],[3,1],[9,2],[2,1],[1,5],[1,1],[1,5],[19,1],[1,0],[1,1],[1,0]],[[7,1],[1,0],[1,1],[15,0],[1,5],[1,0],[1,5],[20,0],[1,1],[1,0]],[[7,1],[1,0],[16,1],[1,5],[1,1],[1,5],[21,1],[1,0]],[[7,1],[1,0],[16,1],[1,5],[1,1],[1,5],[21,1],[1,0]],[[7,1],[1,0],[16,1],[1,5],[1,1],[1,5],[21,1],[1,0]],[[7,1],[1,0],[16,1],[1,5],[1,1],[1,5],[21,1],[1,0]],[[7,1],[1,0],[16,1],[1,5],[1,1],[1,5],[21,1],[1,0]],[[7,1],[1,0],[16,1],[3,5],[21,1],[1,0]],[[7,1],[42,0]]]}, + {"width":120,"source":"flowchart RL\n I([Input λ]) --> A\n subgraph Outer [Outer group 長い]\n direction LR\n subgraph Inner [Inner<br/>工程]\n direction BT\n A[Parse request] -->|inner edge| B{Valid?}\n B --> C[(Cache Ω)]\n C --> B\n end\n B --> D[[Dispatch work]]\n end\n D -.->|result path| O([Output μ])","height":32,"lines":[" ╭─────────╮"," │ Input λ │"," ╰────┬────╯"," ╰────────────────────────────────╮","╭─ Outer group 長い ────────────────────────────────────────────────────╮ │","│ ╭─ Inner ──────────────────────────────────────╮ │ │","│ │ 工程 │ │ │","│ │ ╭─────────╮ │ │ │","│ │ ├─────────┤ │ │ │","│ │ ╭─────────┤ Cache Ω │ │ │ │","│ │ │ ├─────────┤ │ │ │","│ │ │ ╰─────────╯ │ │ │","│ │ │ ▲ │ │ │","│ │ │ ╰───────────────────╮ │ │ │","│ │ │ ╭───┴───╮ │ │ │","│ │ │ ╭─╯ ╰─╮ │ ╭─┬─────────────┬─╮ │ │","│ │ ╰───────────────────────────▶│ Valid? ├─────▶│ │Dispatch work│ ├────┤","│ │ ╰─╮ ╭─╯ │ ╰─┴─────────────┴─╯ │ │","│ │ ╰───────╯ │ │ │","│ │ ▲ │ │ │","│ │ ╭──────────────────────────────────╯ │ │ │","│ │ ╰─────────── inner edge ───────────╮ │ │ │","│ │ ╭───────┴───────╮ │ │ │","│ │ │ Parse request │◀──────────────────────────┤","│ │ ╰───────────────╯ │ │ │","│ │ │ │ │","│ ╰──────────────────────────────────────────────╯ │ │","╰───────────────────────────────────────────────────────────────────────╯ │"," │"," ╭──────────╮ │"," │ Output μ │◀─────── result path ──────╯"," ╰──────────╯"],"runs":[[[37,1],[11,2]],[[37,1],[1,2],[9,3],[1,2]],[[37,1],[5,2],[1,4],[5,2]],[[42,1],[34,5]],[[2,0],[16,0],[53,0],[2,1],[1,5]],[[1,0],[1,1],[2,0],[7,0],[39,0],[22,1],[1,0],[2,1],[1,5]],[[1,0],[1,1],[1,0],[1,1],[4,0],[39,1],[1,0],[22,1],[1,0],[2,1],[1,5]],[[1,0],[1,1],[1,0],[11,1],[11,2],[24,1],[1,0],[22,1],[1,0],[2,1],[1,5]],[[1,0],[1,1],[1,0],[11,1],[11,2],[24,1],[1,0],[22,1],[1,0],[2,1],[1,5]],[[1,0],[1,1],[1,0],[1,1],[1,5],[2,8],[2,7],[2,4],[2,6],[2,9],[9,3],[1,2],[24,1],[1,0],[22,1],[1,0],[2,1],[1,5]],[[1,0],[1,1],[1,0],[1,1],[1,5],[9,1],[11,2],[24,1],[1,0],[22,1],[1,0],[2,1],[1,5]],[[1,0],[1,1],[1,0],[1,1],[1,5],[9,1],[11,2],[24,1],[1,0],[22,1],[1,0],[2,1],[1,5]],[[1,0],[1,1],[1,0],[1,1],[1,5],[14,1],[1,5],[29,1],[1,0],[22,1],[1,0],[2,1],[1,5]],[[1,0],[1,1],[1,0],[1,1],[1,5],[14,1],[21,5],[9,1],[1,0],[22,1],[1,0],[2,1],[1,5]],[[1,0],[1,1],[1,0],[1,1],[1,5],[30,1],[4,2],[1,4],[4,2],[5,1],[1,0],[22,1],[1,0],[2,1],[1,5]],[[1,0],[1,1],[1,0],[1,1],[1,5],[28,1],[3,2],[7,1],[3,2],[3,1],[1,0],[2,1],[19,2],[1,1],[1,0],[2,1],[1,5]],[[1,0],[1,1],[1,0],[1,1],[29,5],[1,2],[2,1],[6,3],[3,1],[1,9],[1,6],[2,4],[1,7],[1,8],[1,5],[1,2],[1,3],[1,2],[13,3],[1,2],[1,3],[1,9],[1,6],[1,4],[1,7],[1,8],[1,5]],[[1,0],[1,1],[1,0],[30,1],[3,2],[7,1],[3,2],[3,1],[1,0],[2,1],[19,2],[1,1],[1,0],[2,1],[1,5]],[[1,0],[1,1],[1,0],[32,1],[9,2],[5,1],[1,0],[22,1],[1,0],[2,1],[1,5]],[[1,0],[1,1],[1,0],[36,1],[1,5],[9,1],[1,0],[22,1],[1,0],[2,1],[1,5]],[[1,0],[1,1],[1,0],[1,1],[36,5],[9,1],[1,0],[22,1],[1,0],[2,1],[1,5]],[[1,0],[1,1],[1,0],[1,1],[12,5],[12,10],[12,5],[9,1],[1,0],[22,1],[1,0],[2,1],[1,5]],[[1,0],[1,1],[1,0],[28,1],[8,2],[1,4],[8,2],[1,1],[1,0],[22,1],[1,0],[2,1],[1,5]],[[1,0],[1,1],[1,0],[28,1],[1,2],[15,3],[1,2],[28,5]],[[1,0],[1,1],[1,0],[28,1],[17,2],[1,1],[1,0],[22,1],[1,0],[2,1],[1,5]],[[1,0],[1,1],[1,0],[46,1],[1,0],[22,1],[1,0],[2,1],[1,5]],[[1,0],[1,1],[48,0],[22,1],[1,0],[2,1],[1,5]],[[73,0],[2,1],[1,5]],[[75,1],[1,5]],[[36,1],[12,2],[27,1],[1,5]],[[36,1],[1,2],[10,3],[1,2],[8,5],[13,10],[7,5]],[[36,1],[12,2]]]}, + {"width":120,"source":"\nflowchart TD\n Start[Start] --> A\n subgraph First [first row]\n direction LR\n A[A] --> B[B]\n end\n B --> C\n subgraph Second [second row]\n direction LR\n C[C] --> D[D]\n end\n D --> Done[Done]\n","height":19,"lines":[" ╭───────╮"," │ Start │"," ╰───┬───╯"," ╭──────────╯"," │ ╭─ first row ──╮"," │ │ ╭───╮ ╭───╮ │"," ╰───▶│ A ├─▶│ B ├─────╮"," │ ╰───╯ ╰───╯ │ │"," ╰──────────────╯ │","╭──────────────────────────────────╯","│ ╭─ second row ─╮","│ │ ╭───╮ ╭───╮ │","╰───▶│ C ├─▶│ D ├─────╮"," │ ╰───╯ ╰───╯ │ │"," ╰──────────────╯ ╰─╮"," ▼"," ╭──────╮"," │ Done │"," ╰──────╯"],"runs":[[[20,1],[9,2]],[[20,1],[1,2],[7,3],[1,2]],[[20,1],[4,2],[1,4],[4,2]],[[13,1],[12,5]],[[13,1],[1,5],[2,1],[2,0],[11,0],[3,0]],[[13,1],[1,5],[2,1],[1,0],[1,1],[5,2],[2,1],[5,2],[1,1],[1,0]],[[13,1],[5,5],[1,2],[3,3],[1,6],[1,7],[1,5],[1,2],[3,3],[1,9],[1,6],[2,4],[1,7],[1,8],[1,5]],[[16,1],[1,0],[1,1],[5,2],[2,1],[5,2],[1,1],[1,0],[3,1],[1,5]],[[16,1],[16,0],[3,1],[1,5]],[[36,5]],[[1,5],[2,1],[2,0],[12,0],[2,0]],[[1,5],[2,1],[1,0],[1,1],[5,2],[2,1],[5,2],[1,1],[1,0]],[[5,5],[1,2],[3,3],[1,6],[1,7],[1,5],[1,2],[3,3],[1,9],[1,6],[2,4],[1,7],[1,8],[1,5]],[[3,1],[1,0],[1,1],[5,2],[2,1],[5,2],[1,1],[1,0],[3,1],[1,5]],[[3,1],[16,0],[3,1],[3,5]],[[24,1],[1,5]],[[20,1],[8,2]],[[20,1],[1,2],[6,3],[1,2]],[[20,1],[8,2]]]}, + {"width":120,"source":"\nflowchart TD\n Start[Start] --> Remember\n subgraph Remembering [remember to]\n direction LR\n Remember[remember to] --> Heart[Heart]\n end\n","height":9,"lines":[" ╭───────╮"," │ Start │"," ╰───┬───╯","╭─────────────────╯","│ ╭─ remember to ──────────────╮","│ │ ╭─────────────╮ ╭───────╮ │","╰───▶│ remember to ├─▶│ Heart │ │"," │ ╰─────────────╯ ╰───────╯ │"," ╰────────────────────────────╯"],"runs":[[[14,1],[9,2]],[[14,1],[1,2],[7,3],[1,2]],[[14,1],[4,2],[1,4],[4,2]],[[19,5]],[[1,5],[2,1],[2,0],[13,0],[15,0]],[[1,5],[2,1],[1,0],[1,1],[15,2],[2,1],[9,2],[1,1],[1,0]],[[5,5],[1,2],[13,3],[1,6],[1,7],[1,5],[1,2],[7,3],[1,2],[1,1],[1,0]],[[3,1],[1,0],[1,1],[15,2],[2,1],[9,2],[1,1],[1,0]],[[3,1],[30,0]]]}, + {"width":120,"source":"\nflowchart TD\n Start[Start] --> A\n subgraph Verse [verse]\n direction LR\n A[A]\n B[B]\n C[C]\n D[D]\n E[E]\n F[F]\n G[G]\n A --> B\n B --> C\n A --> D\n D --> E\n A --> F\n F --> G\n end\n C --> Join\n E --> Join\n G --> Join\n","height":32,"lines":[" ╭───────╮"," │ Start │"," ╰───┬───╯"," ╭─╯"," │ ╭─ verse ─────────────╮"," │ │ ╭───╮ ╭───╮ │"," │ │ ╭▶│ B ├─▶│ C ├────╮"," │ │ │ ╰───╯ ╰───╯ │ │"," │ │ │ │ │"," │ │ │ │ │"," │ │ │ │ │"," │ │ │ │ │"," │ │ │ │ │"," │ │ ╭───╮│ ╭───╮ ╭───╮ │ │"," ╰───▶│ A ├┼▶│ D ├─▶│ E ├────┤"," │ ╰───╯│ ╰───╯ ╰───╯ │ │"," │ │ │ │"," │ │ │ │"," │ │ │ │"," │ │ │ │"," │ │ │ │"," │ │ ╭───╮ ╭───╮ │ │"," │ ╰▶│ F ├─▶│ G │ │ │"," │ ╰───╯ ╰─┬─╯ │ │"," ╰─────────────────│───╯ │"," │ │"," ╭──────╮ │ │"," │ Join │◀──────────────┼──────╯"," ╰──────╯ │"," ▲ │"," │ │"," ╰──────────────────╯"],"runs":[[[15,1],[9,2]],[[15,1],[1,2],[7,3],[1,2]],[[15,1],[4,2],[1,4],[4,2]],[[17,1],[3,5]],[[17,1],[1,5],[2,1],[2,0],[7,0],[14,0]],[[17,1],[1,5],[2,1],[1,0],[8,1],[5,2],[2,1],[5,2],[1,1],[1,0]],[[17,1],[1,5],[2,1],[1,0],[6,1],[2,5],[1,2],[3,3],[1,6],[1,7],[1,5],[1,2],[3,3],[1,9],[1,6],[1,4],[1,7],[1,8],[1,5]],[[17,1],[1,5],[2,1],[1,0],[6,1],[1,5],[1,1],[5,2],[2,1],[5,2],[1,1],[1,0],[2,1],[1,5]],[[17,1],[1,5],[2,1],[1,0],[6,1],[1,5],[14,1],[1,0],[2,1],[1,5]],[[17,1],[1,5],[2,1],[1,0],[6,1],[1,5],[14,1],[1,0],[2,1],[1,5]],[[17,1],[1,5],[2,1],[1,0],[6,1],[1,5],[14,1],[1,0],[2,1],[1,5]],[[17,1],[1,5],[2,1],[1,0],[6,1],[1,5],[14,1],[1,0],[2,1],[1,5]],[[17,1],[1,5],[2,1],[1,0],[6,1],[1,5],[14,1],[1,0],[2,1],[1,5]],[[17,1],[1,5],[2,1],[1,0],[1,1],[5,2],[1,5],[1,1],[5,2],[2,1],[5,2],[1,1],[1,0],[2,1],[1,5]],[[17,1],[5,5],[1,2],[3,3],[1,4],[2,5],[1,2],[3,3],[1,6],[1,7],[1,5],[1,2],[3,3],[1,9],[1,6],[1,4],[1,7],[1,8],[1,5]],[[20,1],[1,0],[1,1],[5,2],[1,5],[1,1],[5,2],[2,1],[5,2],[1,1],[1,0],[2,1],[1,5]],[[20,1],[1,0],[6,1],[1,5],[14,1],[1,0],[2,1],[1,5]],[[20,1],[1,0],[6,1],[1,5],[14,1],[1,0],[2,1],[1,5]],[[20,1],[1,0],[6,1],[1,5],[14,1],[1,0],[2,1],[1,5]],[[20,1],[1,0],[6,1],[1,5],[14,1],[1,0],[2,1],[1,5]],[[20,1],[1,0],[6,1],[1,5],[14,1],[1,0],[2,1],[1,5]],[[20,1],[1,0],[6,1],[1,5],[1,1],[5,2],[2,1],[5,2],[1,1],[1,0],[2,1],[1,5]],[[20,1],[1,0],[6,1],[2,5],[1,2],[3,3],[1,6],[1,7],[1,5],[1,2],[3,3],[1,2],[1,1],[1,0],[2,1],[1,5]],[[20,1],[1,0],[8,1],[5,2],[2,1],[2,2],[1,6],[2,2],[1,1],[1,0],[2,1],[1,5]],[[20,1],[18,0],[1,4],[4,0],[2,1],[1,5]],[[38,1],[1,7],[6,1],[1,5]],[[15,1],[8,2],[15,1],[1,8],[6,1],[1,5]],[[15,1],[1,2],[6,3],[1,2],[23,5]],[[15,1],[8,2],[15,1],[1,5]],[[19,1],[1,5],[18,1],[1,5]],[[19,1],[1,5],[18,1],[1,5]],[[19,1],[20,5]]]}, + {"width":120,"source":"\nflowchart TD\n subgraph First [first]\n direction LR\n A[A]\n B[B]\n C[C]\n A --> B\n A --> C\n end\n B --> D\n C --> D\n subgraph Second [second]\n direction LR\n D[D] --> E[E]\n end\n","height":19,"lines":[" ╭─ first ──────╮"," │ ╭───╮ │"," │ ╭▶│ B ├─────╮"," │ │ ╰───╯ │ │"," │ │ │ │"," │ ╭───╮│ │ │"," │ │ A ├┤ │ │"," │ ╰───╯│ │ │"," │ │ │ │"," │ │ ╭───╮ │ │"," │ ╰▶│ C ├─────┤"," │ ╰───╯ │ │"," ╰──────────────╯ │","╭──────────────────────╯","│ ╭─ second ─────╮","│ │ ╭───╮ ╭───╮ │","╰───▶│ D ├─▶│ E │ │"," │ ╰───╯ ╰───╯ │"," ╰──────────────╯"],"runs":[[[4,1],[2,0],[7,0],[7,0]],[[4,1],[1,0],[8,1],[5,2],[1,1],[1,0]],[[4,1],[1,0],[6,1],[2,5],[1,2],[3,3],[1,9],[1,6],[2,4],[1,7],[1,8],[1,5]],[[4,1],[1,0],[6,1],[1,5],[1,1],[5,2],[1,1],[1,0],[3,1],[1,5]],[[4,1],[1,0],[6,1],[1,5],[7,1],[1,0],[3,1],[1,5]],[[4,1],[1,0],[1,1],[5,2],[1,5],[7,1],[1,0],[3,1],[1,5]],[[4,1],[1,0],[1,1],[1,2],[3,3],[1,4],[1,5],[7,1],[1,0],[3,1],[1,5]],[[4,1],[1,0],[1,1],[5,2],[1,5],[7,1],[1,0],[3,1],[1,5]],[[4,1],[1,0],[6,1],[1,5],[7,1],[1,0],[3,1],[1,5]],[[4,1],[1,0],[6,1],[1,5],[1,1],[5,2],[1,1],[1,0],[3,1],[1,5]],[[4,1],[1,0],[6,1],[2,5],[1,2],[3,3],[1,9],[1,6],[2,4],[1,7],[1,8],[1,5]],[[4,1],[1,0],[8,1],[5,2],[1,1],[1,0],[3,1],[1,5]],[[4,1],[16,0],[3,1],[1,5]],[[24,5]],[[1,5],[2,1],[2,0],[8,0],[6,0]],[[1,5],[2,1],[1,0],[1,1],[5,2],[2,1],[5,2],[1,1],[1,0]],[[5,5],[1,2],[3,3],[1,6],[1,7],[1,5],[1,2],[3,3],[1,2],[1,1],[1,0]],[[3,1],[1,0],[1,1],[5,2],[2,1],[5,2],[1,1],[1,0]],[[3,1],[16,0]]]}, + {"width":120,"source":"\nflowchart LR\n Brief([Sketch Brief]) --> Parse[Parse Mermaid]\n subgraph Plan [Diagram Plan]\n Parse --> Layout[Rank Layout]\n Parse --> Cache[(Diagram Cache)]\n end\n Layout --> Preview([Terminal Preview])\n Cache --> Preview\n","height":15,"lines":[" ╭─ Diagram Plan ─────────────────────────╮"," │ ╭─────────────╮ │"," │ ╭──▶│ Rank Layout ├───╮"," │ │ ╰─────────────╯ ││"," │ │ ││"," │ │ ││","╭──────────────╮ │ ╭───────────────╮ │ ││ ╭──────────────────╮","│ Sketch Brief ├───▶│ Parse Mermaid ├─┤ │├▶│ Terminal Preview │","╰──────────────╯ │ ╰───────────────╯ │ ││ ╰──────────────────╯"," │ │ ╭───────────────╮ ││"," │ │ ├───────────────┤ ││"," │ ╰─▶│ Diagram Cache ├──╯"," │ ├───────────────┤ │"," │ ╰───────────────╯ │"," ╰────────────────────────────────────────╯"],"runs":[[[18,1],[2,0],[14,0],[26,0]],[[18,1],[1,0],[23,1],[15,2],[2,1],[1,0]],[[18,1],[1,0],[19,1],[4,5],[1,2],[13,3],[1,6],[1,4],[1,7],[1,8],[1,5]],[[18,1],[1,0],[19,1],[1,5],[3,1],[15,2],[2,1],[1,0],[1,5]],[[18,1],[1,0],[19,1],[1,5],[20,1],[1,0],[1,5]],[[18,1],[1,0],[19,1],[1,5],[20,1],[1,0],[1,5]],[[16,2],[2,1],[1,0],[1,1],[17,2],[1,1],[1,5],[20,1],[1,0],[1,5],[1,1],[20,2]],[[1,2],[14,3],[1,6],[1,4],[1,7],[1,8],[1,5],[1,2],[15,3],[1,4],[2,5],[20,1],[1,0],[2,5],[1,2],[18,3],[1,2]],[[16,2],[2,1],[1,0],[1,1],[17,2],[1,1],[1,5],[20,1],[1,0],[1,5],[1,1],[20,2]],[[18,1],[1,0],[19,1],[1,5],[2,1],[17,2],[1,1],[1,0],[1,5]],[[18,1],[1,0],[19,1],[1,5],[2,1],[17,2],[1,1],[1,0],[1,5]],[[18,1],[1,0],[19,1],[3,5],[1,2],[15,3],[1,6],[1,4],[1,7],[1,5]],[[18,1],[1,0],[22,1],[17,2],[1,1],[1,0]],[[18,1],[1,0],[22,1],[17,2],[1,1],[1,0]],[[18,1],[42,0]]]}, + {"width":120,"source":"flowchart TD\n subgraph plugins[\"Plugins — one verb: attach\"]\n chip[\"pr-indicator<br/>attach(prompt.footer, { after: 'directory' })\"]\n theme[\"fancy-footer<br/>attach(prompt.footer, { replace: 'right' })\"]\n end\n\n subgraph host[\"Host anatomy tree — published, stable part IDs\"]\n footer[\"prompt.footer\"]\n left[\"left\"]\n right[\"right<br/>(container)\"]\n dir[\"directory\"]\n model[\"model\"]\n tokens[\"tokens\"]\n footer --> left\n footer --> right\n right --> dir\n right --> model\n right --> tokens\n end\n\n chip -- \"insert after\" --> dir\n theme == \"takeover\" ==> right\n theme -. \"suppresses guests<br/>in subtree\" .-> chip","height":38,"lines":["╭─ Plugins — one verb: attach ────────────────────────────────────────────────────────────────────────╮","│ ╭─────────────────────────────────────────────╮ │","│ │ fancy-footer │ │","│┏┤ attach(prompt.footer, { replace: 'right' }) │ suppresses guests │","│┃╰──────────────────────┬──────────────────────╯ in subtree │","│┃ ╰──────────────────────────────────────────────────────────────────────────╮ │","│┃ │ │","│┃ ╭─────────────────────────────────────────────────────────────────────╯ │","│┃ ▼ │","│┃ ╭───────────────────────────────────────────────╮ │","│┃ │ pr-indicator │ │","│┃ │ attach(prompt.footer, { after: 'directory' }) │ │","│┃ ╰───────────────────────┬───────────────────────╯ │","╰┃────────────────────────────│───────────────────────────────────────────────────────────────────────╯"," ┃ │"," ┃ ╭──────────────────────│───────────────────────────────────────────────────────────────╮"," ┃ │ │ ╭───────────────╮ │"," ┃ │ │ │ prompt.footer │ │"," ┃ │ │ ╰───────┬───────╯ │"," ┃ │ │ insert after │ │"," ┃ │ │ │ │"," ┃ │ │ ╭───────────────┬───╯ │"," ┃ │ │ │ │ │"," ┃ │ │ ▼ ▼ │"," ┃ │ │ ╭──────╮ ╭─────────────╮ │"," ┃ │ │ │ left │ │ right │ │"," ┃ │ ╭──────────────╯ ╰──────╯ ┏▶│ (container) │ │"," ┃ │ │ ┃ ╰──────┬──────╯ │"," ┃ │ ├────────────────────────────────┬──────────────────────┼────────┤ │"," ┃ │ │ │ ┃ │ │"," ┃ │ ▼ ▼ ┃ ▼ │"," ┃ │ ╭───────────╮ ╭───────╮ ┃ ╭────────╮ │"," ┃ │ │ directory │ │ model │ ┃ │ tokens │ │"," ┃ │ ╰───────────╯ ╰───────╯ ┃ ╰────────╯ │"," ┃ ╰─ Host anatomy tree — published, stable part IDs ──────────────┃──────────────────────╯"," ┃ ┃"," ┃ ┃"," ┗━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ takeover ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┛"],"runs":[[[2,0],[28,0],[73,0]],[[1,0],[1,1],[47,2],[53,1],[1,0]],[[1,0],[1,1],[1,2],[45,3],[1,2],[53,1],[1,0]],[[1,0],[1,5],[1,4],[45,3],[1,2],[4,1],[19,10],[30,1],[1,0]],[[1,0],[1,5],[23,2],[1,4],[23,2],[4,1],[12,10],[37,1],[1,0]],[[1,0],[1,5],[23,1],[76,5],[1,1],[1,0]],[[1,0],[1,5],[98,1],[1,5],[1,1],[1,0]],[[1,0],[1,5],[28,1],[71,5],[1,1],[1,0]],[[1,0],[1,5],[28,1],[1,5],[71,1],[1,0]],[[1,0],[1,5],[4,1],[49,2],[47,1],[1,0]],[[1,0],[1,5],[4,1],[1,2],[47,3],[1,2],[47,1],[1,0]],[[1,0],[1,5],[4,1],[1,2],[47,3],[1,2],[47,1],[1,0]],[[1,0],[1,5],[4,1],[24,2],[1,9],[24,2],[47,1],[1,0]],[[1,0],[1,5],[28,0],[1,9],[72,0]],[[1,1],[1,5],[28,1],[1,6]],[[1,1],[1,5],[5,1],[23,0],[1,6],[64,0]],[[1,1],[1,5],[5,1],[1,0],[22,1],[1,6],[45,1],[17,2],[1,1],[1,0]],[[1,1],[1,5],[5,1],[1,0],[22,1],[1,4],[45,1],[1,2],[15,3],[1,2],[1,1],[1,0]],[[1,1],[1,5],[5,1],[1,0],[22,1],[1,4],[45,1],[8,2],[1,4],[8,2],[1,1],[1,0]],[[1,1],[1,5],[5,1],[1,0],[22,1],[1,4],[14,10],[39,1],[1,5],[9,1],[1,0]],[[1,1],[1,5],[5,1],[1,0],[22,1],[1,7],[53,1],[1,5],[9,1],[1,0]],[[1,1],[1,5],[5,1],[1,0],[22,1],[1,7],[33,1],[21,5],[9,1],[1,0]],[[1,1],[1,5],[5,1],[1,0],[22,1],[1,7],[33,1],[1,5],[15,1],[1,5],[13,1],[1,0]],[[1,1],[1,5],[5,1],[1,0],[22,1],[1,8],[33,1],[1,5],[15,1],[1,5],[13,1],[1,0]],[[1,1],[1,5],[5,1],[1,0],[22,1],[1,8],[29,1],[8,2],[5,1],[15,2],[6,1],[1,0]],[[1,1],[1,5],[5,1],[1,0],[22,1],[1,8],[29,1],[1,2],[6,3],[1,2],[5,1],[1,2],[13,3],[1,2],[6,1],[1,0]],[[1,1],[1,5],[5,1],[1,0],[7,1],[16,5],[29,1],[8,2],[3,1],[2,5],[1,2],[13,3],[1,2],[6,1],[1,0]],[[1,1],[1,5],[5,1],[1,0],[7,1],[1,5],[55,1],[1,5],[1,1],[7,2],[1,4],[7,2],[6,1],[1,0]],[[1,1],[1,5],[5,1],[1,0],[7,1],[66,5],[13,1],[1,0]],[[1,1],[1,5],[5,1],[1,0],[7,1],[1,5],[32,1],[1,5],[22,1],[1,5],[8,1],[1,5],[13,1],[1,0]],[[1,1],[1,5],[5,1],[1,0],[7,1],[1,5],[32,1],[1,5],[22,1],[1,5],[8,1],[1,5],[13,1],[1,0]],[[1,1],[1,5],[5,1],[1,0],[1,1],[13,2],[22,1],[9,2],[18,1],[1,5],[3,1],[10,2],[9,1],[1,0]],[[1,1],[1,5],[5,1],[1,0],[1,1],[1,2],[11,3],[1,2],[22,1],[1,2],[7,3],[1,2],[18,1],[1,5],[3,1],[1,2],[8,3],[1,2],[9,1],[1,0]],[[1,1],[1,5],[5,1],[1,0],[1,1],[13,2],[22,1],[9,2],[18,1],[1,5],[3,1],[10,2],[9,1],[1,0]],[[1,1],[1,5],[5,1],[2,0],[48,0],[14,0],[1,5],[23,0]],[[1,1],[1,5],[69,1],[1,5]],[[1,1],[1,5],[69,1],[1,5]],[[1,1],[30,5],[10,10],[31,5]]]}, + {"width":120,"source":"\nflowchart TD\n Payment -->|approved| Orders[(Orders DB)]\n Payment -->|declined| Retry([Retry])\n Orders --> Receipt([Receipt])\n subgraph Fulfill [Fulfillment]\n Orders[(Orders DB)]\n Receipt([Receipt])\n end\n","height":17,"lines":[" ╭─────────╮"," │ Payment │"," ╰────┬────╯"," ╭─ approved ─┴── declined ───╮"," │ │","╭───────▼───────────────────╮ │","│ ╭───────────╮ │ ▼","│ ├───────────┤ │ ╭───────╮","│ │ Orders DB │ │ │ Retry │","│ ├───────────┤ │ ╰───────╯","│ ╰─────┬─────╯ │","│ ╰────────────╮ │","│ ▼ │","│ ╭─────────╮ │","│ │ Receipt │ │","│ ╰─────────╯ │","╰─ Fulfillment ─────────────╯"],"runs":[[[16,1],[11,2]],[[16,1],[1,2],[9,3],[1,2]],[[16,1],[5,2],[1,4],[5,2]],[[8,1],[2,5],[10,10],[4,5],[10,10],[4,5]],[[8,1],[1,5],[28,1],[1,5]],[[8,0],[1,5],[20,0],[8,1],[1,5]],[[1,0],[1,1],[13,2],[13,1],[1,0],[8,1],[1,5]],[[1,0],[1,1],[13,2],[13,1],[1,0],[4,1],[9,2]],[[1,0],[1,1],[1,2],[11,3],[1,2],[13,1],[1,0],[4,1],[1,2],[7,3],[1,2]],[[1,0],[1,1],[13,2],[13,1],[1,0],[4,1],[9,2]],[[1,0],[1,1],[6,2],[1,4],[6,2],[13,1],[1,0]],[[1,0],[7,1],[14,5],[6,1],[1,0]],[[1,0],[20,1],[1,5],[6,1],[1,0]],[[1,0],[15,1],[11,2],[1,1],[1,0]],[[1,0],[15,1],[1,2],[9,3],[1,2],[1,1],[1,0]],[[1,0],[15,1],[11,2],[1,1],[1,0]],[[2,0],[13,0],[14,0]]]}, + {"width":120,"source":"\nflowchart TD\n Input([Input]) --> Router[Route]\n Router -->|hit| Cache[(Cache)]\n Router -->|miss| Worker[Worker]\n","height":16,"lines":[" ╭───────╮"," │ Input │"," ╰───┬───╯"," │"," ▼"," ╭───────╮"," │ Route │"," ╰───┬───╯"," ╭─── hit ───┴── miss ───╮"," │ │"," ▼ │","╭───────╮ ▼","├───────┤ ╭────────╮","│ Cache │ │ Worker │","├───────┤ ╰────────╯","╰───────╯"],"runs":[[[12,1],[9,2]],[[12,1],[1,2],[7,3],[1,2]],[[12,1],[4,2],[1,6],[4,2]],[[16,1],[1,7]],[[16,1],[1,5]],[[12,1],[9,2]],[[12,1],[1,2],[7,3],[1,2]],[[12,1],[4,2],[1,4],[4,2]],[[4,1],[4,5],[5,10],[6,5],[6,10],[4,5]],[[4,1],[1,5],[23,1],[1,5]],[[4,1],[1,5],[23,1],[1,5]],[[9,2],[19,1],[1,5]],[[9,2],[14,1],[10,2]],[[1,2],[7,3],[1,2],[14,1],[1,2],[8,3],[1,2]],[[9,2],[14,1],[10,2]],[[9,2]]]}, + {"width":120,"source":"\ngraph LR\n Ticket([Ticket]) --> Triage[Auto Triage]\n Triage -->|billing| Billing[Billing Queue]\n Triage -->|bug| Bugs[(Bug Tracker)]\n Triage -->|question| Docs[Docs Reply]\n Billing --> Done([Closed])\n Bugs --> Done\n Docs --> Done\n","height":21,"lines":[" ╭───────────────╮"," ╭─ billing ──▶│ Billing Queue ├──╮"," │ ╰───────────────╯ │"," │ │"," │ │"," │ │"," │ │"," │ │"," │ ╭─────────────╮ │","╭────────╮ ╭─────────────╮ │ ├─────────────┤ │ ╭────────╮","│ Ticket ├───▶│ Auto Triage ├───┼──── bug ────▶│ Bug Tracker ├───┼▶│ Closed │","╰────────╯ ╰─────────────╯ │ ├─────────────┤ │ ╰────────╯"," │ ╰─────────────╯ │"," │ │"," │ │"," │ │"," │ │"," │ │"," │ ╭────────────╮ │"," ╰─ question ──▶│ Docs Reply ├────╯"," ╰────────────╯"],"runs":[[[46,1],[17,2]],[[32,1],[2,5],[9,10],[3,5],[1,2],[15,3],[1,6],[1,4],[1,7],[1,5]],[[32,1],[1,5],[13,1],[17,2],[2,1],[1,5]],[[32,1],[1,5],[32,1],[1,5]],[[32,1],[1,5],[32,1],[1,5]],[[32,1],[1,5],[32,1],[1,5]],[[32,1],[1,5],[32,1],[1,5]],[[32,1],[1,5],[32,1],[1,5]],[[32,1],[1,5],[14,1],[15,2],[3,1],[1,5]],[[10,2],[4,1],[15,2],[3,1],[1,5],[14,1],[15,2],[3,1],[1,5],[1,1],[10,2]],[[1,2],[8,3],[1,6],[1,4],[1,7],[1,8],[1,5],[1,2],[13,3],[1,4],[8,5],[5,10],[5,5],[1,2],[13,3],[1,6],[1,4],[1,7],[1,8],[2,5],[1,2],[8,3],[1,2]],[[10,2],[4,1],[15,2],[3,1],[1,5],[14,1],[15,2],[3,1],[1,5],[1,1],[10,2]],[[32,1],[1,5],[14,1],[15,2],[3,1],[1,5]],[[32,1],[1,5],[32,1],[1,5]],[[32,1],[1,5],[32,1],[1,5]],[[32,1],[1,5],[32,1],[1,5]],[[32,1],[1,5],[32,1],[1,5]],[[32,1],[1,5],[32,1],[1,5]],[[32,1],[1,5],[14,1],[14,2],[4,1],[1,5]],[[32,1],[2,5],[10,10],[3,5],[1,2],[12,3],[1,9],[1,6],[1,4],[1,7],[1,8],[1,5]],[[47,1],[14,2]]]}, + {"width":120,"source":"\nflowchart TD\n Cart([Cart]) --> Address[Address]\n Address --> Payment[Payment]\n Payment -->|approved| Orders[(Orders DB)]\n Payment -->|declined| Retry([Retry])\n Retry --> Payment\n Orders --> Receipt([Receipt])\n","height":26,"lines":[" ╭──────╮"," │ Cart │"," ╰──┬───╯"," │"," ▼"," ╭─────────╮"," │ Address │"," ╰────┬────╯"," │"," ▼"," ╭─────────╮"," │ Payment │◀────────────────╮"," ╰────┬────╯ │"," ╭─ approved ─┴── declined ───╮ │"," │ │ │"," ▼ │ │","╭───────────╮ ▼ │","├───────────┤ ╭───────╮ │","│ Orders DB │ │ Retry ├──╯","├───────────┤ ╰───────╯","╰─────┬─────╯"," ╰────────────╮"," ▼"," ╭─────────╮"," │ Receipt │"," ╰─────────╯"],"runs":[[[16,1],[8,2]],[[16,1],[1,2],[6,3],[1,2]],[[16,1],[3,2],[1,6],[4,2]],[[19,1],[1,7]],[[19,1],[1,5]],[[14,1],[11,2]],[[14,1],[1,2],[9,3],[1,2]],[[14,1],[5,2],[1,6],[5,2]],[[19,1],[1,7]],[[19,1],[1,5]],[[14,1],[11,2]],[[14,1],[1,2],[9,3],[1,2],[18,5]],[[14,1],[5,2],[1,4],[5,2],[17,1],[1,5]],[[6,1],[2,5],[10,10],[4,5],[10,10],[4,5],[6,1],[1,5]],[[6,1],[1,5],[28,1],[1,5],[6,1],[1,5]],[[6,1],[1,5],[28,1],[1,5],[6,1],[1,5]],[[13,2],[22,1],[1,5],[6,1],[1,5]],[[13,2],[18,1],[9,2],[2,1],[1,5]],[[1,2],[11,3],[1,2],[18,1],[1,2],[7,3],[1,6],[1,4],[1,7],[1,5]],[[13,2],[18,1],[9,2]],[[6,2],[1,4],[6,2]],[[6,1],[14,5]],[[19,1],[1,5]],[[14,1],[11,2]],[[14,1],[1,2],[9,3],[1,2]],[[14,1],[11,2]]]}, + {"width":120,"source":"\nflowchart TD\n A --> B\n B -->|again| A\n","height":9,"lines":["╭───╮","│ A │◀─╮","╰─┬─╯ │"," │ │"," │ │ again "," ▼ │","╭───╮ │","│ B ├──╯","╰───╯"],"runs":[[[5,2]],[[1,2],[3,3],[1,2],[3,5]],[[2,2],[1,6],[2,2],[2,1],[1,5]],[[2,1],[1,4],[4,1],[1,5]],[[2,1],[1,7],[4,1],[1,5],[7,10]],[[2,1],[1,5],[4,1],[1,5]],[[5,2],[2,1],[1,5]],[[1,2],[3,3],[1,6],[1,4],[1,7],[1,5]],[[5,2]]]}, + {"width":120,"source":"\nflowchart LR\n Build[Build Services] --> Test[Integration Tests]\n Test -->|pass| Canary[Canary]\n Test -->|fail| Fix[Fix Forward]\n Fix --> Build\n Canary -->|rollback| Fix\n","height":14,"lines":[" ╭────────╮"," ╭── pass ──▶│ Canary ├─────╮"," │ ╰────────╯ │"," │ │","╭────────────────╮ ╭───────────────────╮ │ │","│ Build Services ├───▶│ Integration Tests ├───┤ │ rollback ","╰────────────────╯ ╰───────────────────╯ │ │"," ▲ │ │"," │ │ ╭─────────────╮ │"," │ ╰─ fail ─▶│ Fix Forward │◀─╯"," │ ╰──────┬──────╯"," │ │"," │ │"," ╰─────────────────────────────────────────────────────╯"],"runs":[[[58,1],[10,2]],[[46,1],[3,5],[6,10],[3,5],[1,2],[8,3],[1,9],[1,6],[2,4],[1,7],[1,8],[1,5]],[[46,1],[1,5],[11,1],[10,2],[5,1],[1,5]],[[46,1],[1,5],[26,1],[1,5]],[[18,2],[4,1],[21,2],[3,1],[1,5],[26,1],[1,5]],[[1,2],[16,3],[1,6],[1,4],[1,7],[1,8],[1,5],[1,2],[19,3],[1,4],[4,5],[26,1],[1,5],[10,10]],[[18,2],[4,1],[21,2],[3,1],[1,5],[26,1],[1,5]],[[9,1],[1,5],[36,1],[1,5],[26,1],[1,5]],[[9,1],[1,5],[36,1],[1,5],[9,1],[15,2],[2,1],[1,5]],[[9,1],[1,5],[36,1],[2,5],[6,10],[2,5],[1,2],[13,3],[1,2],[3,5]],[[9,1],[1,5],[46,1],[7,2],[1,6],[7,2]],[[9,1],[1,5],[53,1],[1,4]],[[9,1],[1,5],[53,1],[1,7]],[[9,1],[55,5]]]}, + {"width":120,"source":"gantt\n dateFormat s\n axisFormat %Ss\n section OLD (blocking)\n provider.create (Modal sandbox) :crit, 0, 15\n model streams first token :15, 17\n section NEW (eager kick)\n reserve (DB insert) :0, 1\n model streams first token :0, 2\n provisioning in background :active, 0, 15\n model calls bash → spawn runs :15, 16\n section NEW (pure chat thread)\n reserve (DB insert) :0, 1\n model answers, never calls bash :0, 4","height":15,"lines":[" 00s 05s 10s 15s"," ┬──────────────────┬─────────────────┬──────────────────┬───────","OLD (blocking)","provider.create (Modal sandbox) ────────────────────────────────────────────────────────────────","model streams first token ────────────────────────────────────────────────────────────────","","NEW (eager kick)","reserve (DB insert) ────────────────────────────────────────────────────────────────","model streams first token ────────────────────────────────────────────────────────────────","provisioning in background ────────────────────────────────────────────────────────────────","model calls bash → spawn runs ────────────────────────────────────────────────────────────────","","NEW (pure chat thread)","reserve (DB insert) ────────────────────────────────────────────────────────────────","model answers, never calls bash ────────────────────────────────────────────────────────────────"],"runs":[[[33,1],[3,2],[15,1],[3,2],[15,1],[3,2],[16,1],[3,2]],[[33,1],[64,2]],[[14,12]],[[31,13],[2,1],[57,13],[7,14]],[[25,3],[8,1],[56,14],[8,3]],[],[[16,12]],[[19,3],[14,1],[5,3],[59,14]],[[25,3],[8,1],[8,3],[56,14]],[[26,3],[7,1],[57,3],[7,14]],[[29,3],[4,1],[56,14],[4,3],[4,14]],[],[[22,12]],[[19,3],[14,1],[5,3],[59,14]],[[31,3],[2,1],[16,3],[48,14]]]}, + {"width":120,"source":"gantt\n dateFormat YYYY-MM-DD\n task one :done, first, 2026-08-01, 2d\n deploy :milestone, after first, 0d","height":4,"lines":[" 2026-08-01 2026-08-01 2026-08-02 2026-08-02 2026-08-03"," ┬───────────────┬───────────────┬──────────────┬───────────────┬","task one ────────────────────────────────────────────────────────────────","deploy ◆"],"runs":[[[10,1],[10,2],[1,1],[10,2],[6,1],[10,2],[5,1],[10,2],[2,1],[10,2]],[[10,1],[64,2]],[[8,2],[2,1],[64,2]],[[6,15],[67,1],[1,15]]]}, + {"width":120,"source":"gantt\n dateFormat YYYY-MM-DD\n task one :first, 2026-08-01, 2d\n deploy :milestone, after first, 0d","height":4,"lines":[" 2026-08-01 2026-08-01 2026-08-02 2026-08-02 2026-08-03"," ┬───────────────┬───────────────┬──────────────┬───────────────┬","task one ────────────────────────────────────────────────────────────────","deploy ◆"],"runs":[[[10,1],[10,2],[1,1],[10,2],[6,1],[10,2],[5,1],[10,2],[2,1],[10,2]],[[10,1],[64,2]],[[8,3],[2,1],[64,3]],[[6,15],[67,1],[1,15]]]}, + {"width":120,"source":"gitGraph TB:\n commit id: \"init\"\n branch feature order: 1\n commit id: \"api\" msg: \"Add API\" tag: \"ready\"\n checkout main\n commit id: \"docs\" type: HIGHLIGHT\n merge feature id: \"merge-feature\"","height":5,"lines":["● init","├─╮","│ ● Add API [feature] [ready]","◆ │ docs","◎─╯ merge-feature [main]"],"runs":[[[1,3],[4,1],[4,3]],[[1,2],[2,2]],[[1,2],[1,1],[1,3],[2,1],[26,3]],[[1,13],[1,1],[1,2],[2,1],[4,3]],[[1,12],[2,2],[2,1],[21,3]]]}, + {"width":120,"source":"gitGraph\n commit id: \"baseline\"\n branch refactor\n commit id: \"extract-seam\" msg: \"Extract seam\"\n commit id: \"add-tests\" tag: \"ready\"\n checkout main\n commit id: \"unrelated-fix\"\n merge refactor id: \"land-refactor\" tag: \"v2\"","height":6,"lines":["● baseline","├─╮","│ ● Extract seam","│ ● add-tests [refactor] [ready]","● │ unrelated-fix","◎─╯ land-refactor [main] [v2]"],"runs":[[[1,3],[4,1],[8,3]],[[1,2],[2,2]],[[1,2],[1,1],[1,3],[2,1],[12,3]],[[1,2],[1,1],[1,3],[2,1],[29,3]],[[1,3],[1,1],[1,2],[2,1],[13,3]],[[1,12],[2,2],[2,1],[26,3]]]}, + {"width":120,"source":"gitGraph\n commit \"Initial release\"\n branch feature\n checkout main\n commit id: next","height":2,"lines":["● Initial release [feature]","● next [main]"],"runs":[[[1,3],[4,1],[26,3]],[[1,3],[4,1],[12,3]]]}, + {"width":120,"source":"gitGraph\n commit id: base\n branch feature\n checkout main\n commit id: next","height":2,"lines":["● base [feature]","● next [main]"],"runs":[[[1,3],[4,1],[15,3]],[[1,3],[4,1],[12,3]]]}, + {"width":120,"source":"gitGraph\n commit id: base\n branch later order: 2\n checkout main\n branch ordinary\n checkout main\n branch earlier order: 1","height":1,"lines":["● base [main] [ordinary] [earlier] [later]"],"runs":[[[1,3],[8,1],[41,3]]]}, + {"width":120,"source":"gitGraph\n commit id: base\n branch one\n branch two\n commit id: work","height":3,"lines":["● base [main] [one]","├───╮"," ● work [two]"],"runs":[[[1,3],[6,1],[18,3]],[[1,2],[4,2]],[[4,1],[1,3],[2,1],[11,3]]]}, + {"width":120,"source":"gitGraph\n commit id: base\n branch feature\n commit id: work type: REVERSE\n checkout main\n commit id: checkpoint type: HIGHLIGHT\n merge feature id: done","height":5,"lines":["● base","├─╮","│ ⊗ work [feature]","◆ │ checkpoint","◎─╯ done [main]"],"runs":[[[1,3],[4,1],[4,3]],[[1,2],[2,2]],[[1,2],[1,1],[1,13],[2,1],[15,3]],[[1,13],[1,1],[1,2],[2,1],[10,3]],[[1,12],[2,2],[2,1],[12,3]]]}, + {"width":120,"source":"\nsequenceDiagram\n participant B as Browser\n participant S as Server\n B->>S: GET /\n S-->>B: 401 WWW-Auth\n","height":6,"lines":["Browser Server"," │ │"," ├──── GET / ──────►"," │ │"," ◄─ 401 WWW-Auth ──┤"," │ │"],"runs":[[[7,3],[11,1],[6,3]],[[3,1],[1,2],[17,1],[1,2]],[[3,1],[1,16],[1,17],[1,18],[1,19],[1,20],[14,21]],[[3,1],[1,2],[17,1],[1,2]],[[3,1],[16,22],[1,23],[1,24],[1,25]],[[3,1],[1,2],[17,1],[1,2]]]}, + {"width":120,"source":"sequenceDiagram\n participant A as Worker & signer\n participant B\n A->>B: ack <3s\n Note over A,B: result ≥ 1","height":7,"lines":["Worker & signer B"," │ │"," ├─── ack <3s ─────►"," │ │"," │ │"," │ result ≥ 1 │"," │ │"],"runs":[[[15,3],[10,1],[1,3]],[[7,1],[1,2],[17,1],[1,2]],[[7,1],[1,16],[1,17],[1,18],[1,19],[15,21]],[[7,1],[1,2],[17,1],[1,2]],[[7,1],[1,2],[17,1],[1,2]],[[7,1],[1,2],[1,1],[14,26],[2,1],[1,2]],[[7,1],[1,2],[17,1],[1,2]]]}, + {"width":120,"source":"\nsequenceDiagram\n participant Leaf as leaf tool\n participant Location as LocationMutation\n participant File as FileMutation\n Leaf->>Location: resolve(path)\n Location-->>Leaf: Plan(target, authority anchor)\n Leaf->>File: commit(plan)\n File->>Location: revalidate(plan)\n Location-->>File: same target or reject\n","height":12,"lines":["leaf tool LocationMutation FileMutation"," │ │ │"," ├───────── resolve(path) ───────────► │"," │ │ │"," ◄─ Plan(target, authority anchor) ──┤ │"," │ │ │"," ├─────────────────────── commit(plan) ─────────────────────────►"," │ │ │"," │ ◄─── revalidate(plan) ─────┤"," │ │ │"," │ ├─ same target or reject ──►"," │ │ │"],"runs":[[[9,3],[23,1],[16,3],[13,1],[12,3]],[[4,1],[1,2],[35,1],[1,2],[26,1],[1,2]],[[4,1],[1,16],[1,17],[1,18],[1,19],[1,20],[32,21],[26,1],[1,2]],[[4,1],[1,2],[35,1],[1,2],[26,1],[1,2]],[[4,1],[34,22],[1,23],[1,24],[1,25],[26,1],[1,2]],[[4,1],[1,2],[35,1],[1,2],[26,1],[1,2]],[[4,1],[1,16],[1,17],[1,18],[1,19],[1,20],[59,21]],[[4,1],[1,2],[35,1],[1,2],[26,1],[1,2]],[[4,1],[1,2],[35,1],[23,21],[1,20],[1,19],[1,18],[1,17],[1,16]],[[4,1],[1,2],[35,1],[1,2],[26,1],[1,2]],[[4,1],[1,2],[35,1],[1,25],[1,24],[26,22]],[[4,1],[1,2],[35,1],[1,2],[26,1],[1,2]]]}, + {"width":120,"source":"\nsequenceDiagram\n participant Worker\n participant Store\n Note over Worker,Store: transaction\n alt accepted\n Worker->>Worker: prepare\n Worker->>Store: commit\n end\n","height":15,"lines":["Worker Store"," │ │"," │ │"," │ transaction │"," │ │","╭─ alt: accepted ────────╮","│ │ │ │","│ ├──────────╮ │ │","│ │ prepare │ │ │","│ ◄──────────╯ │ │","│ │ │ │","│ ├──── commit ──────► │","│ │ │ │","╰────────────────────────╯"," │ │"],"runs":[[[6,3],[14,1],[5,3]],[[3,1],[1,2],[18,1],[1,2]],[[3,1],[1,2],[18,1],[1,2]],[[3,1],[1,2],[1,1],[15,26],[2,1],[1,2]],[[3,1],[1,2],[18,1],[1,2]],[[2,12],[15,27],[9,12]],[[1,12],[2,1],[1,2],[18,1],[1,2],[2,1],[1,12]],[[1,12],[2,1],[1,16],[1,17],[1,18],[1,19],[1,20],[7,21],[7,1],[1,2],[2,1],[1,12]],[[1,12],[2,1],[1,2],[1,1],[7,21],[2,1],[1,21],[7,1],[1,2],[2,1],[1,12]],[[1,12],[2,1],[12,21],[7,1],[1,2],[2,1],[1,12]],[[1,12],[2,1],[1,2],[18,1],[1,2],[2,1],[1,12]],[[1,12],[2,1],[1,16],[1,17],[1,18],[1,19],[1,20],[15,21],[2,1],[1,12]],[[1,12],[2,1],[1,2],[18,1],[1,2],[2,1],[1,12]],[[26,12]],[[3,1],[1,2],[18,1],[1,2]]]}, + {"width":120,"source":"\nsequenceDiagram\n participant Browser\n participant Server\n","height":3,"lines":["Browser Server"," │ │"," │ │"],"runs":[[[7,3],[11,1],[6,3]],[[3,1],[1,2],[17,1],[1,2]],[[3,1],[1,2],[17,1],[1,2]]]}, + {"width":120,"source":"\nsequenceDiagram\n participant Browser\n participant Server\n participant Store as Ticket store\n Note over Browser,Server: native browser Basic prompt\n Browser->>Server: POST connect-token\n Server->>Store: issue { ptyID, scope }\n","height":9,"lines":["Browser Server Ticket store"," │ │ │"," │ │ │"," │ native browser Basic prompt │ │"," │ │ │"," ├────── POST connect-token ────────► │"," │ │ │"," │ ├─ issue { ptyID, scope } ──►"," │ │ │"],"runs":[[[7,3],[28,1],[6,3],[19,1],[12,3]],[[3,1],[1,2],[34,1],[1,2],[27,1],[1,2]],[[3,1],[1,2],[34,1],[1,2],[27,1],[1,2]],[[3,1],[1,2],[1,1],[31,26],[2,1],[1,2],[27,1],[1,2]],[[3,1],[1,2],[34,1],[1,2],[27,1],[1,2]],[[3,1],[1,16],[1,17],[1,18],[1,19],[1,20],[31,21],[27,1],[1,2]],[[3,1],[1,2],[34,1],[1,2],[27,1],[1,2]],[[3,1],[1,2],[34,1],[1,16],[1,17],[27,21]],[[3,1],[1,2],[34,1],[1,2],[27,1],[1,2]]]}, + {"width":120,"source":"sequenceDiagram\n participant OpenTUI\n Note right of OpenTUI: child is not renderable\n Note left of OpenTUI: remove failed","height":8,"lines":[" OpenTUI"," │"," │"," │ child is not renderable "," │"," │"," remove failed │"," │"],"runs":[[[16,1],[7,3]],[[19,1],[1,2]],[[19,1],[1,2]],[[19,1],[1,2],[1,1],[27,26]],[[19,1],[1,2]],[[19,1],[1,2]],[[17,26],[2,1],[1,2]],[[19,1],[1,2]]]}, + {"width":120,"source":"sequenceDiagram\n participant A\n Note over A: hello","height":5,"lines":[" A"," │"," │"," hello "," │"],"runs":[[[4,1],[1,3]],[[4,1],[1,2]],[[4,1],[1,2]],[[9,26]],[[4,1],[1,2]]]}, + {"width":120,"source":"sequenceDiagram\n Note over Tool: directory instead?<br/>the WrongKind error carries the answer —<br/>branch to list, no extra round trip","height":7,"lines":[" Tool"," │"," │"," directory instead? "," the WrongKind error carries the answer — "," branch to list, no extra round trip "," │"],"runs":[[[20,1],[4,3]],[[22,1],[1,2]],[[22,1],[1,2]],[[44,26]],[[44,26]],[[44,26]],[[22,1],[1,2]]]}, + {"width":120,"source":"\nsequenceDiagram\n Browser->>+Server: request\n alt accepted\n Server-->>-Browser: response\n else rejected\n activate Server\n Server-->>Browser: error\n deactivate Server\n end\n","height":14,"lines":["Browser Server"," │ │"," ├─── request ─────►"," │ ┃","╭─ alt: accepted ───────╮","│ │ ┃ │","│ ◄─── response ────┤ │","│ │ ┃ │","├─ else: rejected ──────┤","│ │ ┃ │","│ ◄──── error ──────┤ │","│ │ │ │","╰───────────────────────╯"," │ │"],"runs":[[[7,3],[11,1],[6,3]],[[3,1],[1,2],[17,1],[1,2]],[[3,1],[1,16],[1,17],[1,18],[1,19],[15,21]],[[3,1],[1,2],[17,1],[1,2]],[[2,12],[15,27],[8,12]],[[1,12],[2,1],[1,2],[17,1],[1,2],[2,1],[1,12]],[[1,12],[2,1],[14,22],[1,28],[1,29],[1,23],[1,24],[1,25],[2,1],[1,12]],[[1,12],[2,1],[1,2],[17,1],[1,2],[2,1],[1,12]],[[2,12],[16,27],[7,12]],[[1,12],[2,1],[1,2],[17,1],[1,2],[2,1],[1,12]],[[1,12],[2,1],[14,22],[1,28],[1,29],[1,23],[1,24],[1,25],[2,1],[1,12]],[[1,12],[2,1],[1,2],[17,1],[1,2],[2,1],[1,12]],[[25,12]],[[3,1],[1,2],[17,1],[1,2]]]}, + {"width":120,"source":"\nsequenceDiagram\n Browser->>+Server: request\n Server-->>-Browser: response\n","height":6,"lines":["Browser Server"," │ │"," ├─── request ─────►"," │ ┃"," ◄─── response ────┤"," │ │"],"runs":[[[7,3],[11,1],[6,3]],[[3,1],[1,2],[17,1],[1,2]],[[3,1],[1,16],[1,17],[1,18],[1,19],[15,21]],[[3,1],[1,2],[17,1],[1,2]],[[3,1],[14,22],[1,28],[1,29],[1,23],[1,24],[1,25]],[[3,1],[1,2],[17,1],[1,2]]]}, + {"width":120,"source":"sequenceDiagram\n participant A as First line<br/>Second line\n participant B as Normal\n A->>B: hello","height":5,"lines":["First line Normal","Second line"," │ │"," ├──── hello ──────►"," │ │"],"runs":[[[10,3],[10,1],[6,3]],[[11,3]],[[5,1],[1,2],[17,1],[1,2]],[[5,1],[1,16],[1,17],[1,18],[1,19],[1,20],[14,21]],[[5,1],[1,2],[17,1],[1,2]]]}, + {"width":120,"source":"\nsequenceDiagram\n A->B: open solid\n B-->A: open dashed\n A-xB: failed solid\n B--xA: failed dashed\n A-)B: async solid\n B--)A: async dashed\n","height":14,"lines":[" A B"," │ │"," ├── open solid ───>│"," │ │"," │<─ open dashed ───┤"," │ │"," ├─ failed solid ──✕│"," │ │"," │✕ failed dashed ──┤"," │ │"," ├── async solid ──)│"," │ │"," │( async dashed ───┤"," │ │"],"runs":[[[1,1],[1,3],[18,1],[1,3]],[[1,1],[1,2],[18,1],[1,2]],[[1,1],[1,16],[1,17],[1,18],[16,21],[1,2]],[[1,1],[1,2],[18,1],[1,2]],[[1,1],[1,2],[15,22],[1,29],[1,23],[1,24],[1,25]],[[1,1],[1,2],[18,1],[1,2]],[[1,1],[1,16],[1,17],[17,21],[1,2]],[[1,1],[1,2],[18,1],[1,2]],[[1,1],[1,2],[16,22],[1,23],[1,24],[1,25]],[[1,1],[1,2],[18,1],[1,2]],[[1,1],[1,16],[1,17],[1,18],[16,21],[1,2]],[[1,1],[1,2],[18,1],[1,2]],[[1,1],[1,2],[15,22],[1,29],[1,23],[1,24],[1,25]],[[1,1],[1,2],[18,1],[1,2]]]}, + {"width":120,"source":"\nsequenceDiagram\n alt accepted\n Browser->>Server: ok\n else rejected\n Server-->>Browser: no\n end\n","height":12,"lines":["Browser Server"," │ │","╭─ alt: accepted ───────╮","│ │ │ │","│ ├────── ok ───────► │","│ │ │ │","├─ else: rejected ──────┤","│ │ │ │","│ ◄────── no ───────┤ │","│ │ │ │","╰───────────────────────╯"," │ │"],"runs":[[[7,3],[11,1],[6,3]],[[3,1],[1,2],[17,1],[1,2]],[[2,12],[15,27],[8,12]],[[1,12],[2,1],[1,2],[17,1],[1,2],[2,1],[1,12]],[[1,12],[2,1],[1,16],[1,17],[1,18],[1,19],[1,20],[14,21],[2,1],[1,12]],[[1,12],[2,1],[1,2],[17,1],[1,2],[2,1],[1,12]],[[2,12],[16,27],[7,12]],[[1,12],[2,1],[1,2],[17,1],[1,2],[2,1],[1,12]],[[1,12],[2,1],[14,22],[1,28],[1,29],[1,23],[1,24],[1,25],[2,1],[1,12]],[[1,12],[2,1],[1,2],[17,1],[1,2],[2,1],[1,12]],[[25,12]],[[3,1],[1,2],[17,1],[1,2]]]}, + {"width":120,"source":"sequenceDiagram\n A->>B: start\n alt ok\n A->>B: yes\n else validation failed with a substantially longer explanation\n B-->>A: no\n end","height":14,"lines":[" A B"," │ │"," ├──── start ──────►"," │ │","╭─ alt: ok ──────────────────────────────────────────────────────────╮","│ │ │ │","│ ├───── yes ───────► │","│ │ │ │","├─ else: validation failed with a substantially longer explanation ──┤","│ │ │ │","│ ◄────── no ───────┤ │","│ │ │ │","╰────────────────────────────────────────────────────────────────────╯"," │ │"],"runs":[[[3,1],[1,3],[17,1],[1,3]],[[3,1],[1,2],[17,1],[1,2]],[[3,1],[1,16],[1,17],[1,18],[1,19],[1,20],[14,21]],[[3,1],[1,2],[17,1],[1,2]],[[2,12],[9,27],[59,12]],[[1,12],[2,1],[1,2],[17,1],[1,2],[47,1],[1,12]],[[1,12],[2,1],[1,16],[1,17],[1,18],[1,19],[1,20],[14,21],[47,1],[1,12]],[[1,12],[2,1],[1,2],[17,1],[1,2],[47,1],[1,12]],[[2,12],[65,27],[3,12]],[[1,12],[2,1],[1,2],[17,1],[1,2],[47,1],[1,12]],[[1,12],[2,1],[14,22],[1,28],[1,29],[1,23],[1,24],[1,25],[47,1],[1,12]],[[1,12],[2,1],[1,2],[17,1],[1,2],[47,1],[1,12]],[[70,12]],[[3,1],[1,2],[17,1],[1,2]]]}, + {"width":120,"source":"sequenceDiagram\n participant A as Cafe\\u0301\n participant B\n A->>B: hi","height":4,"lines":["Cafe\\u0301 B"," │ │"," ├────── hi ───────►"," │ │"],"runs":[[[10,3],[13,1],[1,3]],[[5,1],[1,2],[17,1],[1,2]],[[5,1],[1,16],[1,17],[1,18],[1,19],[1,20],[14,21]],[[5,1],[1,2],[17,1],[1,2]]]}, + {"width":120,"source":"\nsequenceDiagram\n participant A\n participant B\n alt ok\n A->>B: yes\n end\n","height":8,"lines":[" A B"," │ │","╭─ alt: ok ─────────────╮","│ │ │ │","│ ├───── yes ───────► │","│ │ │ │","╰───────────────────────╯"," │ │"],"runs":[[[3,1],[1,3],[17,1],[1,3]],[[3,1],[1,2],[17,1],[1,2]],[[2,12],[9,27],[14,12]],[[1,12],[2,1],[1,2],[17,1],[1,2],[2,1],[1,12]],[[1,12],[2,1],[1,16],[1,17],[1,18],[1,19],[1,20],[14,21],[2,1],[1,12]],[[1,12],[2,1],[1,2],[17,1],[1,2],[2,1],[1,12]],[[25,12]],[[3,1],[1,2],[17,1],[1,2]]]}, + {"width":120,"source":"\nsequenceDiagram\n participant A\n participant B\n alt ok\n A->>B: yes\n else no\n B-->>A: no\n end\n","height":12,"lines":[" A B"," │ │","╭─ alt: ok ─────────────╮","│ │ │ │","│ ├───── yes ───────► │","│ │ │ │","├─ else: no ────────────┤","│ │ │ │","│ ◄────── no ───────┤ │","│ │ │ │","╰───────────────────────╯"," │ │"],"runs":[[[3,1],[1,3],[17,1],[1,3]],[[3,1],[1,2],[17,1],[1,2]],[[2,12],[9,27],[14,12]],[[1,12],[2,1],[1,2],[17,1],[1,2],[2,1],[1,12]],[[1,12],[2,1],[1,16],[1,17],[1,18],[1,19],[1,20],[14,21],[2,1],[1,12]],[[1,12],[2,1],[1,2],[17,1],[1,2],[2,1],[1,12]],[[2,12],[10,27],[13,12]],[[1,12],[2,1],[1,2],[17,1],[1,2],[2,1],[1,12]],[[1,12],[2,1],[14,22],[1,28],[1,29],[1,23],[1,24],[1,25],[2,1],[1,12]],[[1,12],[2,1],[1,2],[17,1],[1,2],[2,1],[1,12]],[[25,12]],[[3,1],[1,2],[17,1],[1,2]]]}, + {"width":120,"source":"\nsequenceDiagram\n autonumber\n Browser->>API: request\n API-->>Browser: response\n","height":6,"lines":["Browser API"," │ │"," ├── 1. request ───►"," │ │"," ◄─ 2. response ───┤"," │ │"],"runs":[[[7,3],[13,1],[3,3]],[[3,1],[1,2],[17,1],[1,2]],[[3,1],[1,16],[1,17],[1,18],[16,21]],[[3,1],[1,2],[17,1],[1,2]],[[3,1],[15,22],[1,29],[1,23],[1,24],[1,25]],[[3,1],[1,2],[17,1],[1,2]]]}, + {"width":120,"source":"\nsequenceDiagram\n autonumber 10 5\n Browser->>API: first\n API-->>Browser: second\n","height":6,"lines":["Browser API"," │ │"," ├── 10. first ────►"," │ │"," ◄── 15. second ───┤"," │ │"],"runs":[[[7,3],[13,1],[3,3]],[[3,1],[1,2],[17,1],[1,2]],[[3,1],[1,16],[1,17],[1,18],[16,21]],[[3,1],[1,2],[17,1],[1,2]],[[3,1],[15,22],[1,29],[1,23],[1,24],[1,25]],[[3,1],[1,2],[17,1],[1,2]]]}, + {"width":120,"source":"\nsequenceDiagram\n loop retry up to 3x\n Browser->>API: GET /users/42\n API-->>Browser: 503\n end\n","height":10,"lines":["Browser API"," │ │","╭─ ↻ loop: retry up to 3x ─╮","│ │ │ │","│ ├─ GET /users/42 ──► │","│ │ │ │","│ ◄────── 503 ───────┤ │","│ │ │ │","╰──────────────────────────╯"," │ │"],"runs":[[[7,3],[14,1],[3,3]],[[3,1],[1,2],[18,1],[1,2]],[[2,12],[24,27],[2,12]],[[1,12],[2,1],[1,2],[18,1],[1,2],[4,1],[1,12]],[[1,12],[2,1],[1,16],[1,17],[18,21],[4,1],[1,12]],[[1,12],[2,1],[1,2],[18,1],[1,2],[4,1],[1,12]],[[1,12],[2,1],[15,22],[1,28],[1,29],[1,23],[1,24],[1,25],[4,1],[1,12]],[[1,12],[2,1],[1,2],[18,1],[1,2],[4,1],[1,12]],[[28,12]],[[3,1],[1,2],[18,1],[1,2]]]}, + {"width":120,"source":"\nsequenceDiagram\n participant Browser\n box Backend\n participant API\n participant Cache\n end\n box Purple Storage Layer\n participant DB\n end\n box \"Purple Literal Label\"\n participant Worker\n end\n Browser->>API: request\n","height":6,"lines":[" ╭─ Backend ──────────────╮ ╭─ Storage Layer ─╮ ╭─ Purple Literal Label ─╮","Browser │ API Cache │ │ DB │ │ Worker │"," │ │ │ │ │ │ │ │ │ │ │"," ├─── request ─────► │ │ │ │ │ │ │ │"," │ │ │ │ │ │ │ │ │ │ │"," ╰────────────────────────╯ ╰─────────────────╯ ╰────────────────────────╯"],"runs":[[[18,1],[26,12],[4,1],[19,12],[2,1],[26,12]],[[7,3],[11,1],[1,12],[1,1],[3,3],[14,1],[5,3],[1,1],[1,12],[4,1],[1,12],[7,1],[2,3],[8,1],[1,12],[2,1],[1,12],[9,1],[6,3],[9,1],[1,12]],[[3,1],[1,2],[14,1],[1,12],[2,1],[1,2],[17,1],[1,2],[3,1],[1,12],[4,1],[1,12],[8,1],[1,2],[8,1],[1,12],[2,1],[1,12],[12,1],[1,2],[11,1],[1,12]],[[3,1],[1,16],[1,17],[1,18],[1,19],[15,21],[17,1],[1,2],[3,1],[1,12],[4,1],[1,12],[8,1],[1,2],[8,1],[1,12],[2,1],[1,12],[12,1],[1,2],[11,1],[1,12]],[[3,1],[1,2],[14,1],[1,12],[2,1],[1,2],[17,1],[1,2],[3,1],[1,12],[4,1],[1,12],[8,1],[1,2],[8,1],[1,12],[2,1],[1,12],[12,1],[1,2],[11,1],[1,12]],[[18,1],[26,12],[4,1],[19,12],[2,1],[26,12]]]}, + {"width":120,"source":"\nsequenceDiagram\n participant API\n box Backend\n API->>DB: query\n end\n","height":6,"lines":["╭─ Backend ────────────╮","│ API DB │","│ │ │ │","│ ├──── query ──────► │","│ │ │ │","╰──────────────────────╯"],"runs":[[[24,12]],[[1,12],[1,1],[3,3],[15,1],[2,3],[1,1],[1,12]],[[1,12],[2,1],[1,2],[17,1],[1,2],[1,1],[1,12]],[[1,12],[2,1],[1,16],[1,17],[1,18],[1,19],[1,20],[14,21],[1,1],[1,12]],[[1,12],[2,1],[1,2],[17,1],[1,2],[1,1],[1,12]],[[24,12]]]}, + {"width":120,"source":"\nsequenceDiagram\n participant A\n participant B\n participant C\n A->>C: this message needs room past the final participant\n Note over A,C: this note also needs full horizontal room\n","height":8,"lines":[" A B C"," │ │ │"," │ this message needs room past the final participant"," ├───────────────────────────────────►"," │ │ │"," │ │ │"," this note also needs full horizontal room "," │ │ │"],"runs":[[[4,1],[1,3],[17,1],[1,3],[17,1],[1,3]],[[4,1],[1,2],[17,1],[1,2],[17,1],[1,2]],[[4,1],[1,2],[1,1],[50,21]],[[4,1],[1,16],[1,17],[1,18],[1,19],[1,20],[32,21]],[[4,1],[1,2],[17,1],[1,2],[17,1],[1,2]],[[4,1],[1,2],[17,1],[1,2],[17,1],[1,2]],[[45,26]],[[4,1],[1,2],[17,1],[1,2],[17,1],[1,2]]]}, + {"width":120,"source":"sequenceDiagram\n box Services\n participant A\n participant B\n participant C\n A->>C: this message text runs far outside of the group container boundary\n end","height":7,"lines":["╭─ Services ───────────────────────────────────────────────────────────╮","│ A B C │","│ │ │ │ │","│ │ this message text runs far outside of the group container boundary │","│ ├───────────────────────────────────► │","│ │ │ │ │","╰──────────────────────────────────────────────────────────────────────╯"],"runs":[[[72,12]],[[1,12],[1,1],[1,3],[17,1],[1,3],[17,1],[1,3],[32,1],[1,12]],[[1,12],[1,1],[1,2],[17,1],[1,2],[17,1],[1,2],[32,1],[1,12]],[[1,12],[1,1],[1,2],[1,1],[66,21],[1,1],[1,12]],[[1,12],[1,1],[1,16],[1,17],[1,18],[1,19],[1,20],[32,21],[32,1],[1,12]],[[1,12],[1,1],[1,2],[17,1],[1,2],[17,1],[1,2],[32,1],[1,12]],[[72,12]]]}, + {"width":120,"source":"sequenceDiagram\n participant A\n participant B\n participant C\n alt lookup\n A->>C: this non adjacent message is deliberately much wider than the frame\n end","height":9,"lines":[" A B C"," │ │ │","╭─ alt: lookup ─────────────────────────────────────────────────────────╮","│ │ │ │ │","│ │ this non adjacent message is deliberately much wider than the frame│","│ ├───────────────────────────────────► │","│ │ │ │ │","╰───────────────────────────────────────────────────────────────────────╯"," │ │ │"],"runs":[[[3,1],[1,3],[17,1],[1,3],[17,1],[1,3]],[[3,1],[1,2],[17,1],[1,2],[17,1],[1,2]],[[2,12],[13,27],[58,12]],[[1,12],[2,1],[1,2],[17,1],[1,2],[17,1],[1,2],[32,1],[1,12]],[[1,12],[2,1],[1,2],[1,1],[67,21],[1,12]],[[1,12],[2,1],[1,16],[1,17],[1,18],[1,19],[1,20],[32,21],[32,1],[1,12]],[[1,12],[2,1],[1,2],[17,1],[1,2],[17,1],[1,2],[32,1],[1,12]],[[73,12]],[[3,1],[1,2],[17,1],[1,2],[17,1],[1,2]]]}, + {"width":120,"source":"sequenceDiagram\n box Services\n participant A\n participant B\n participant C\n Note over A,C: this note text runs far outside of the group container boundary\n end","height":7,"lines":["╭─ Services ──────────────────────────────────────────────────────────╮","│ A B C │","│ │ │ │ │","│ │ │ │ │","│ this note text runs far outside of the group container boundary │","│ │ │ │ │","╰─────────────────────────────────────────────────────────────────────╯"],"runs":[[[71,12]],[[1,12],[16,1],[1,3],[17,1],[1,3],[17,1],[1,3],[16,1],[1,12]],[[1,12],[16,1],[1,2],[17,1],[1,2],[17,1],[1,2],[16,1],[1,12]],[[1,12],[16,1],[1,2],[17,1],[1,2],[17,1],[1,2],[16,1],[1,12]],[[1,12],[1,1],[67,26],[1,1],[1,12]],[[1,12],[16,1],[1,2],[17,1],[1,2],[17,1],[1,2],[16,1],[1,12]],[[71,12]]]}, + {"width":120,"source":"sequenceDiagram\n participant A\n participant B\n participant C\n alt lookup\n Note over A,C: this non adjacent note is deliberately much wider than the frame\n end","height":9,"lines":[" A B C"," │ │ │","╭─ alt: lookup ──────────────────────────────────────────────────────╮","│ │ │ │ │","│ │ │ │ │","│ this non adjacent note is deliberately much wider than the frame │","│ │ │ │ │","╰────────────────────────────────────────────────────────────────────╯"," │ │ │"],"runs":[[[17,1],[1,3],[17,1],[1,3],[17,1],[1,3]],[[17,1],[1,2],[17,1],[1,2],[17,1],[1,2]],[[2,12],[13,27],[55,12]],[[1,12],[16,1],[1,2],[17,1],[1,2],[17,1],[1,2],[15,1],[1,12]],[[1,12],[16,1],[1,2],[17,1],[1,2],[17,1],[1,2],[15,1],[1,12]],[[1,12],[68,26],[1,12]],[[1,12],[16,1],[1,2],[17,1],[1,2],[17,1],[1,2],[15,1],[1,12]],[[70,12]],[[17,1],[1,2],[17,1],[1,2],[17,1],[1,2]]]}, + {"width":120,"source":"sequenceDiagram\n participant A\n participant B\n alt outer\n loop inner heading wider than outer frame and participant span\n A->>B: x\n end\n end","height":12,"lines":[" A B"," │ │","╭─ alt: outer ──────────────────────────────────────────────────────────╮","│ │ │ │","│╭─ ↻ loop: inner heading wider than outer frame and participant span ─╮│","││ │ │ ││","││ ├────── x ────────► ││","││ │ │ ││","│╰─────────────────────────────────────────────────────────────────────╯│","│ │ │ │","╰───────────────────────────────────────────────────────────────────────╯"," │ │"],"runs":[[[3,1],[1,3],[17,1],[1,3]],[[3,1],[1,2],[17,1],[1,2]],[[2,12],[12,27],[59,12]],[[1,12],[2,1],[1,2],[17,1],[1,2],[50,1],[1,12]],[[3,12],[67,27],[3,12]],[[2,12],[1,1],[1,2],[17,1],[1,2],[49,1],[2,12]],[[2,12],[1,1],[1,16],[1,17],[1,18],[1,19],[1,20],[14,21],[49,1],[2,12]],[[2,12],[1,1],[1,2],[17,1],[1,2],[49,1],[2,12]],[[73,12]],[[1,12],[2,1],[1,2],[17,1],[1,2],[50,1],[1,12]],[[73,12]],[[3,1],[1,2],[17,1],[1,2]]]}, + {"width":120,"source":"sequenceDiagram\n box G\n participant A\n end\n participant B as External\n A->>A: this self-loop extends underneath the external participant header","height":8,"lines":["╭─ G ────────────────────────────────────────────────────────────────────╮","│ A │ External","│ │ │ │","│ ├────────────────────────────────────────────────────────────────────╮ │ │","│ │ this self-loop extends underneath the external participant header │ │ │","│ ◄────────────────────────────────────────────────────────────────────╯ │ │","│ │ │ │","╰────────────────────────────────────────────────────────────────────────╯"],"runs":[[[74,12]],[[1,12],[1,1],[1,3],[70,1],[1,12],[2,1],[8,3]],[[1,12],[1,1],[1,2],[70,1],[1,12],[6,1],[1,2]],[[1,12],[1,1],[1,16],[1,17],[1,18],[1,19],[1,20],[65,21],[1,1],[1,12],[6,1],[1,2]],[[1,12],[1,1],[1,2],[1,1],[65,21],[2,1],[1,21],[1,1],[1,12],[6,1],[1,2]],[[1,12],[1,1],[70,21],[1,1],[1,12],[6,1],[1,2]],[[1,12],[1,1],[1,2],[70,1],[1,12],[6,1],[1,2]],[[74,12]]]}, + {"width":120,"source":"sequenceDiagram\n box First very wide group heading\n participant A\n end\n box Second very wide group heading\n participant B\n end\n A->>B: hi","height":6,"lines":["╭─ First very wide group heading ─╮ ╭─ Second very wide group heading ─╮","│ A │ │ B │","│ │ │ │ │ │","│ ├─────────────── hi ─────────────────► │","│ │ │ │ │ │","╰─────────────────────────────────╯ ╰──────────────────────────────────╯"],"runs":[[[35,12],[2,1],[36,12]],[[1,12],[16,1],[1,3],[16,1],[1,12],[2,1],[1,12],[16,1],[1,3],[17,1],[1,12]],[[1,12],[16,1],[1,2],[16,1],[1,12],[2,1],[1,12],[16,1],[1,2],[17,1],[1,12]],[[1,12],[16,1],[1,16],[1,17],[1,18],[1,19],[1,20],[33,21],[17,1],[1,12]],[[1,12],[16,1],[1,2],[16,1],[1,12],[2,1],[1,12],[16,1],[1,2],[17,1],[1,12]],[[35,12],[2,1],[36,12]]]}, + {"width":120,"source":"\nsequenceDiagram\n participant Browser\n box Backend\n participant API\n participant Cache\n participant DB\n end\n Browser->>API: GET /users/42\n API->>Cache: get user:42\n","height":8,"lines":[" ╭─ Backend ──────────────────────────────╮","Browser │ API Cache DB │"," │ │ │ │ │ │"," ├─ GET /users/42 ──► │ │ │"," │ │ │ │ │ │"," │ │ ├─ get user:42 ───► │ │"," │ │ │ │ │ │"," ╰────────────────────────────────────────╯"],"runs":[[[19,1],[42,12]],[[7,3],[12,1],[1,12],[1,1],[3,3],[14,1],[5,3],[14,1],[2,3],[1,1],[1,12]],[[3,1],[1,2],[15,1],[1,12],[2,1],[1,2],[17,1],[1,2],[17,1],[1,2],[1,1],[1,12]],[[3,1],[1,16],[1,17],[18,21],[17,1],[1,2],[17,1],[1,2],[1,1],[1,12]],[[3,1],[1,2],[15,1],[1,12],[2,1],[1,2],[17,1],[1,2],[17,1],[1,2],[1,1],[1,12]],[[3,1],[1,2],[15,1],[1,12],[2,1],[1,16],[1,17],[17,21],[17,1],[1,2],[1,1],[1,12]],[[3,1],[1,2],[15,1],[1,12],[2,1],[1,2],[17,1],[1,2],[17,1],[1,2],[1,1],[1,12]],[[19,1],[42,12]]]}, + {"width":120,"source":"\nsequenceDiagram\n participant Browser\n box Backend\n participant API\n end\n Browser->>API: GET /users/42\n","height":6,"lines":[" ╭─ Backend ─╮","Browser │ API │"," │ │ │ │"," ├─ GET /users/42 ──► │"," │ │ │ │"," ╰───────────╯"],"runs":[[[16,1],[13,12]],[[7,3],[9,1],[1,12],[4,1],[3,3],[4,1],[1,12]],[[3,1],[1,2],[12,1],[1,12],[5,1],[1,2],[5,1],[1,12]],[[3,1],[1,16],[1,17],[18,21],[5,1],[1,12]],[[3,1],[1,2],[12,1],[1,12],[5,1],[1,2],[5,1],[1,12]],[[16,1],[13,12]]]}, + {"width":120,"source":"sequenceDiagram\n box Backend\n participant A\n participant B\n A->>B: request\n end","height":6,"lines":["╭─ Backend ───────────╮","│ A B │","│ │ │ │","│ ├─── request ─────► │","│ │ │ │","╰─────────────────────╯"],"runs":[[[23,12]],[[1,12],[1,1],[1,3],[17,1],[1,3],[1,1],[1,12]],[[1,12],[1,1],[1,2],[17,1],[1,2],[1,1],[1,12]],[[1,12],[1,1],[1,16],[1,17],[1,18],[1,19],[15,21],[1,1],[1,12]],[[1,12],[1,1],[1,2],[17,1],[1,2],[1,1],[1,12]],[[23,12]]]}, + {"width":120,"source":"\nsequenceDiagram\n participant Service\n Service->>Service: Check Permissions\n","height":6,"lines":["Service"," │"," ├────────────────────╮"," │ Check Permissions │"," ◄────────────────────╯"," │"],"runs":[[[7,3]],[[3,1],[1,2]],[[3,1],[1,16],[1,17],[1,18],[1,19],[1,20],[17,21]],[[3,1],[1,2],[1,1],[17,21],[2,1],[1,21]],[[3,1],[22,21]],[[3,1],[1,2]]]}, + {"width":120,"source":"\nsequenceDiagram\n Browser->>Server: one\n Note over Browser,Server: phase\n Browser->>Server: two\n","height":9,"lines":["Browser Server"," │ │"," ├───── one ───────►"," │ │"," │ │"," │ phase │"," │ │"," ├───── two ───────►"," │ │"],"runs":[[[7,3],[11,1],[6,3]],[[3,1],[1,2],[17,1],[1,2]],[[3,1],[1,16],[1,17],[1,18],[1,19],[1,20],[14,21]],[[3,1],[1,2],[17,1],[1,2]],[[3,1],[1,2],[17,1],[1,2]],[[3,1],[1,2],[4,1],[9,26],[4,1],[1,2]],[[3,1],[1,2],[17,1],[1,2]],[[3,1],[1,16],[1,17],[1,18],[1,19],[1,20],[14,21]],[[3,1],[1,2],[17,1],[1,2]]]}, + {"width":120,"source":"\nsequenceDiagram\n Browser->>Server: POST connect-token<br/>· Basic (cached by browser)<br/>· X-OpenCode-Ticket: 1\n","height":7,"lines":["Browser Server"," │ │"," │ POST connect-token │"," │ · Basic (cached by browser) │"," │ · X-OpenCode-Ticket: 1 │"," ├────────────────────────────────►"," │ │"],"runs":[[[7,3],[26,1],[6,3]],[[3,1],[1,2],[32,1],[1,2]],[[3,1],[1,2],[1,1],[18,21],[13,1],[1,2]],[[3,1],[1,2],[1,1],[27,21],[4,1],[1,2]],[[3,1],[1,2],[1,1],[22,21],[9,1],[1,2]],[[3,1],[1,16],[1,17],[1,18],[1,19],[1,20],[29,21]],[[3,1],[1,2],[32,1],[1,2]]]}, + {"width":120,"source":"sequenceDiagram\n participant A\n participant B\n participant C\n A->>C: this message needs room past the final participant\n Note over A,C: this note also needs full horizontal room","height":8,"lines":[" A B C"," │ │ │"," │ this message needs room past the final participant"," ├───────────────────────────────────►"," │ │ │"," │ │ │"," this note also needs full horizontal room "," │ │ │"],"runs":[[[4,1],[1,3],[17,1],[1,3],[17,1],[1,3]],[[4,1],[1,2],[17,1],[1,2],[17,1],[1,2]],[[4,1],[1,2],[1,1],[50,21]],[[4,1],[1,16],[1,17],[1,18],[1,19],[1,20],[32,21]],[[4,1],[1,2],[17,1],[1,2],[17,1],[1,2]],[[4,1],[1,2],[17,1],[1,2],[17,1],[1,2]],[[45,26]],[[4,1],[1,2],[17,1],[1,2],[17,1],[1,2]]]}, + {"width":120,"source":"sequenceDiagram\n participant A\n participant B\n participant C\n Note right of A: a long note between the first two participants\n Note left of C: another long note between the final participants","height":8,"lines":[" A B C"," │ │ │"," │ │ │"," │ a long note between the first two participants │ │"," │ │ │"," │ │ │"," │ │ another long note between the final participants │"," │ │ │"],"runs":[[[1,1],[1,3],[53,1],[1,3],[55,1],[1,3]],[[1,1],[1,2],[53,1],[1,2],[55,1],[1,2]],[[1,1],[1,2],[53,1],[1,2],[55,1],[1,2]],[[1,1],[1,2],[1,1],[50,26],[2,1],[1,2],[55,1],[1,2]],[[1,1],[1,2],[53,1],[1,2],[55,1],[1,2]],[[1,1],[1,2],[53,1],[1,2],[55,1],[1,2]],[[1,1],[1,2],[53,1],[1,2],[1,1],[52,26],[2,1],[1,2]],[[1,1],[1,2],[53,1],[1,2],[55,1],[1,2]]]}, + {"width":120,"source":"sequenceDiagram\n box Backend\n participant Service\n Service->>Service: Check Permissions\n end","height":8,"lines":["╭─ Backend ─────────────────╮","│ Service │","│ │ │","│ ├────────────────────╮ │","│ │ Check Permissions │ │","│ ◄────────────────────╯ │","│ │ │","╰───────────────────────────╯"],"runs":[[[29,12]],[[1,12],[1,1],[7,3],[19,1],[1,12]],[[1,12],[4,1],[1,2],[22,1],[1,12]],[[1,12],[4,1],[1,16],[1,17],[1,18],[1,19],[1,20],[17,21],[1,1],[1,12]],[[1,12],[4,1],[1,2],[1,1],[17,21],[2,1],[1,21],[1,1],[1,12]],[[1,12],[4,1],[22,21],[1,1],[1,12]],[[1,12],[4,1],[1,2],[22,1],[1,12]],[[29,12]]]}, + {"width":120,"source":"sequenceDiagram\n box G\n participant A\n end\n participant B as External\n A->>A: this self-loop extends underneath the external participant header","height":8,"lines":["╭─ G ────────────────────────────────────────────────────────────────────╮","│ A │ External","│ │ │ │","│ ├────────────────────────────────────────────────────────────────────╮ │ │","│ │ this self-loop extends underneath the external participant header │ │ │","│ ◄────────────────────────────────────────────────────────────────────╯ │ │","│ │ │ │","╰────────────────────────────────────────────────────────────────────────╯"],"runs":[[[74,12]],[[1,12],[1,1],[1,3],[70,1],[1,12],[2,1],[8,3]],[[1,12],[1,1],[1,2],[70,1],[1,12],[6,1],[1,2]],[[1,12],[1,1],[1,16],[1,17],[1,18],[1,19],[1,20],[65,21],[1,1],[1,12],[6,1],[1,2]],[[1,12],[1,1],[1,2],[1,1],[65,21],[2,1],[1,21],[1,1],[1,12],[6,1],[1,2]],[[1,12],[1,1],[70,21],[1,1],[1,12],[6,1],[1,2]],[[1,12],[1,1],[1,2],[70,1],[1,12],[6,1],[1,2]],[[74,12]]]}, + {"width":120,"source":"sequenceDiagram\n box Tools\n participant Tool\n alt retry\n Note over Tool: directory instead?<br/>the WrongKind error carries the answer —<br/>branch to list, no extra round trip\n Note over Tool: first<br>second<br />third\n end\n end","height":18,"lines":["╭─ Tools ──────────────────────────────────────╮","│ Tool │","│ │ │","│╭─ alt: retry ───────────────────────────────╮│","││ │ ││","││ │ ││","││ directory instead? ││","││ the WrongKind error carries the answer — ││","││ branch to list, no extra round trip ││","││ │ ││","││ │ ││","││ first ││","││ second ││","││ third ││","││ │ ││","│╰────────────────────────────────────────────╯│","│ │ │","╰──────────────────────────────────────────────╯"],"runs":[[[48,12]],[[1,12],[21,1],[4,3],[21,1],[1,12]],[[1,12],[23,1],[1,2],[22,1],[1,12]],[[1,12],[2,12],[12,27],[32,12],[1,12]],[[1,12],[1,12],[22,1],[1,2],[21,1],[1,12],[1,12]],[[1,12],[1,12],[22,1],[1,2],[21,1],[1,12],[1,12]],[[1,12],[1,12],[44,26],[1,12],[1,12]],[[1,12],[1,12],[44,26],[1,12],[1,12]],[[1,12],[1,12],[44,26],[1,12],[1,12]],[[1,12],[1,12],[22,1],[1,2],[21,1],[1,12],[1,12]],[[1,12],[1,12],[22,1],[1,2],[21,1],[1,12],[1,12]],[[1,12],[1,12],[17,1],[10,26],[17,1],[1,12],[1,12]],[[1,12],[1,12],[17,1],[10,26],[17,1],[1,12],[1,12]],[[1,12],[1,12],[17,1],[10,26],[17,1],[1,12],[1,12]],[[1,12],[1,12],[22,1],[1,2],[21,1],[1,12],[1,12]],[[1,12],[46,12],[1,12]],[[1,12],[23,1],[1,2],[22,1],[1,12]],[[48,12]]]}, + {"width":120,"source":"sequenceDiagram\n A->>+B: request\n B-->>-A: response","height":6,"lines":[" A B"," │ │"," ├─── request ─────►"," │ ┃"," ◄─── response ────┤"," │ │"],"runs":[[[1,1],[1,3],[17,1],[1,3]],[[1,1],[1,2],[17,1],[1,2]],[[1,1],[1,16],[1,17],[1,18],[1,19],[15,21]],[[1,1],[1,2],[17,1],[1,2]],[[1,1],[14,22],[1,28],[1,29],[1,23],[1,24],[1,25]],[[1,1],[1,2],[17,1],[1,2]]]}, + {"width":120,"source":"sequenceDiagram\n A->>B: request\n activate B\n B-->>A: response\n deactivate B","height":6,"lines":[" A B"," │ │"," ├─── request ─────►"," │ ┃"," ◄─── response ────┤"," │ │"],"runs":[[[1,1],[1,3],[17,1],[1,3]],[[1,1],[1,2],[17,1],[1,2]],[[1,1],[1,16],[1,17],[1,18],[1,19],[15,21]],[[1,1],[1,2],[17,1],[1,2]],[[1,1],[14,22],[1,28],[1,29],[1,23],[1,24],[1,25]],[[1,1],[1,2],[17,1],[1,2]]]}, + {"width":120,"source":"sequenceDiagram\n participant A\n participant B\n A->>B: short<br/>a much longer line","height":6,"lines":[" A B"," │ │"," │ short │"," │ a much longer line │"," ├───────────────────────►"," │ │"],"runs":[[[1,1],[1,3],[23,1],[1,3]],[[1,1],[1,2],[23,1],[1,2]],[[1,1],[1,2],[1,1],[5,21],[17,1],[1,2]],[[1,1],[1,2],[1,1],[18,21],[4,1],[1,2]],[[1,1],[1,16],[1,17],[1,18],[1,19],[1,20],[20,21]],[[1,1],[1,2],[23,1],[1,2]]]}, + {"width":120,"source":"\nstateDiagram-v2\n %% request lifecycle\n direction LR\n [*] --> Idle\n Idle --> Loading: submit\n Loading --> Success: done\n Success --> [*]\n","height":3,"lines":[" ╭──────╮ submit ╭─────────╮ done ╭─────────╮","●────────────▶│ Idle ├────────────▶│ Loading ├────────────▶│ Success ├────────────▶◎"," ╰──────╯ ╰─────────╯ ╰─────────╯"],"runs":[[[14,1],[8,2],[2,1],[8,10],[3,1],[11,2],[3,1],[6,10],[4,1],[11,2]],[[1,12],[13,5],[1,2],[6,3],[1,30],[1,4],[1,31],[11,5],[1,2],[9,3],[1,30],[1,4],[1,31],[11,5],[1,2],[9,3],[1,30],[1,4],[1,31],[11,5],[1,12]],[[14,1],[8,2],[13,1],[11,2],[13,1],[11,2]]]}, + {"width":120,"source":"\nstateDiagram-v2\n state \"Waiting<br/>for Payment\" as WaitingPayment\n [*] --> WaitingPayment\n","height":4,"lines":[" ╭─────────────╮"," │ Waiting │","●────────────▶│ for Payment │"," ╰─────────────╯"],"runs":[[[14,1],[15,2]],[[14,1],[1,2],[13,3],[1,2]],[[1,12],[13,5],[1,2],[13,3],[1,2]],[[14,1],[15,2]]]}, + {"width":120,"source":"stateDiagram-v2\n state \"Ready & waiting\" as Ready\n Ready --> Done: elapsed <3s\n note right of Done: result ≥ 1","height":3,"lines":["╭─────────────────╮ elapsed <3s ╭──────╮ ╔════════════╗","│ Ready & waiting ├────────────▶│ Done │════╣ result ≥ 1 ║","╰─────────────────╯ ╰──────╯ ╚════════════╝"],"runs":[[[19,2],[13,10],[8,2],[4,1],[14,0]],[[1,2],[17,3],[1,30],[1,4],[1,31],[11,5],[1,2],[6,3],[1,2],[1,0],[1,0],[1,0],[1,0],[1,0],[1,1],[10,32],[1,1],[1,0]],[[19,2],[13,1],[8,2],[4,1],[14,0]]]}, + {"width":120,"source":"\nstateDiagram-v2\n [*] --> Decision\n state Decision <<choice>>\n Decision --> Accepted: yes\n","height":3,"lines":[" yes ╭──────────╮","●────────────▶◆────────────▶│ Accepted │"," ╰──────────╯"],"runs":[[[18,1],[5,10],[5,1],[12,2]],[[1,12],[13,5],[1,12],[13,5],[1,2],[10,3],[1,2]],[[28,1],[12,2]]]}, + {"width":120,"source":"\nstateDiagram-v2\n state Authenticated {\n [*] --> Idle\n Idle --> Editing: open\n }\n note right of Editing\n Draft changes\n end note\n","height":7,"lines":["╭─ Authenticated ─────────────────────────────────────────────────────╮","│ │","│ ╭──────╮ open ╭─────────╮ ╔═══════════════╗ │","│ ─────────────▶│ Idle ├────────────▶│ Editing │════╣ Draft changes ║ │","│ ╰──────╯ ╰─────────╯ ╚═══════════════╝ │","│ │","╰─────────────────────────────────────────────────────────────────────╯"],"runs":[[[2,0],[15,0],[54,0]],[[1,0],[69,1],[1,0]],[[1,0],[15,1],[8,2],[3,1],[6,10],[4,1],[11,2],[4,1],[17,0],[1,1],[1,0]],[[1,0],[1,1],[14,5],[1,2],[6,3],[1,30],[1,4],[1,31],[11,5],[1,2],[9,3],[1,2],[1,0],[1,0],[1,0],[1,0],[1,0],[1,1],[13,32],[1,1],[1,0],[1,1],[1,0]],[[1,0],[15,1],[8,2],[13,1],[11,2],[4,1],[17,0],[1,1],[1,0]],[[1,0],[69,1],[1,0]],[[71,0]]]}, + {"width":120,"source":"\nstateDiagram-v2\n direction LR\n [*] --> Idle\n Idle --> Loading: submit\n Loading --> Success: done\n Success --> [*]\n","height":3,"lines":[" ╭──────╮ submit ╭─────────╮ done ╭─────────╮","●────────────▶│ Idle ├────────────▶│ Loading ├────────────▶│ Success ├────────────▶◎"," ╰──────╯ ╰─────────╯ ╰─────────╯"],"runs":[[[14,1],[8,2],[2,1],[8,10],[3,1],[11,2],[3,1],[6,10],[4,1],[11,2]],[[1,12],[13,5],[1,2],[6,3],[1,30],[1,4],[1,31],[11,5],[1,2],[9,3],[1,30],[1,4],[1,31],[11,5],[1,2],[9,3],[1,30],[1,4],[1,31],[11,5],[1,12]],[[14,1],[8,2],[13,1],[11,2],[13,1],[11,2]]]}, + {"width":120,"source":"stateDiagram-v2\n direction RL\n A --> B","height":3,"lines":["╭───╮ ╭───╮","│ B │◀────────────┤ A │","╰───╯ ╰───╯"],"runs":[[[5,2],[13,1],[5,2]],[[1,2],[3,3],[1,2],[11,5],[1,31],[1,4],[1,30],[3,3],[1,2]],[[5,2],[13,1],[5,2]]]}, + {"width":120,"source":"stateDiagram-v2\n direction BT\n A --> B","height":10,"lines":["╭───╮","│ B │","╰───╯"," ▲"," │"," │"," │","╭─┴─╮","│ A │","╰───╯"],"runs":[[[5,2]],[[1,2],[3,3],[1,2]],[[5,2]],[[2,1],[1,5]],[[2,1],[1,5]],[[2,1],[1,31]],[[2,1],[1,4]],[[2,2],[1,30],[2,2]],[[1,2],[3,3],[1,2]],[[5,2]]]}, + {"width":120,"source":"stateDiagram-v2\n direction LR\n A --> B","height":3,"lines":["╭───╮ ╭───╮","│ A ├────────────▶│ B │","╰───╯ ╰───╯"],"runs":[[[5,2],[13,1],[5,2]],[[1,2],[3,3],[1,30],[1,4],[1,31],[11,5],[1,2],[3,3],[1,2]],[[5,2],[13,1],[5,2]]]}, + {"width":120,"source":"stateDiagram-v2\n direction RL\n A --> B: reopen after a very detailed reviewer comment","height":3,"lines":["╭───╮ reopen after a very detailed reviewer comment ╭───╮","│ B │◀──────────────────────────────────────────────┤ A │","╰───╯ ╰───╯"],"runs":[[[5,2],[47,10],[5,2]],[[1,2],[3,3],[1,2],[45,5],[1,31],[1,4],[1,30],[3,3],[1,2]],[[5,2],[47,1],[5,2]]]}, + {"width":120,"source":"stateDiagram-v2\n direction LR\n state \"界\" as Wide","height":3,"lines":["╭────╮","│ 界 │","╰────╯"],"runs":[[[6,2]],[[1,2],[3,3],[1,2]],[[6,2]]]}, + {"width":120,"source":"stateDiagram-v2\n direction LR\n A --> B: first<br/>second","height":4,"lines":[" first ","╭───╮ second ╭───╮","│ A ├────────────▶│ B │","╰───╯ ╰───╯"],"runs":[[[7,1],[7,10]],[[5,2],[2,1],[8,10],[3,1],[5,2]],[[1,2],[3,3],[1,30],[1,4],[1,31],[11,5],[1,2],[3,3],[1,2]],[[5,2],[13,1],[5,2]]]}, + {"width":120,"source":"stateDiagram-v2\n [*] --> Running: create from base image\n Running --> Dormant: 📸 suspend hook fires<br/>(WE must call it on idle)\n Dormant --> Running: wake from snapshot image<br/>(apt installs restored!)\n Running --> Lost: 💥 sandbox dies BEFORE hook fires<br/>(crash, our bug, race)\n Lost --> Running: wake from LAST snapshot<br/>⚠ files since then GONE","height":15,"lines":[" create from base image ╭─────────╮","●───────────────────────▶│ Running │"," ╰──┬──────╯"," ▲ │ ▲ 💥 sandbox dies BEFORE hook fires "," ╭────────┼─┴───┼───────╮(crash, our bug, race) "," ▼ ╭────┼─────╯ ▼"," ╭──────┴──╮ │ ╭──────╮"," │ Dormant │ │ │ Lost │"," ╰─────────╯ │ ╰───┬──╯"," │ │"," 📸 suspend hook fires │ │ wake from LAST snapshot "," (WE must call it on idle)│ │ ⚠ files since then GONE "," ╰───────────────╯"," wake from snapshot image "," (apt installs restored!) "],"runs":[[[1,1],[24,10],[11,2]],[[1,12],[24,5],[1,2],[9,3],[1,2]],[[25,1],[3,2],[1,30],[7,2]],[[26,1],[1,5],[1,1],[1,4],[3,1],[1,5],[7,1],[34,10]],[[17,1],[11,5],[1,31],[12,5],[23,10]],[[17,1],[1,5],[3,1],[1,4],[1,31],[10,5],[7,1],[1,5]],[[14,1],[7,2],[1,30],[3,2],[1,1],[1,5],[11,1],[8,2]],[[14,1],[1,2],[9,3],[1,2],[1,1],[1,5],[11,1],[1,2],[6,3],[1,2]],[[14,1],[11,2],[1,1],[1,5],[11,1],[4,2],[1,30],[3,2]],[[26,1],[1,5],[15,1],[1,4]],[[22,10],[3,1],[1,5],[15,1],[1,31],[25,10]],[[26,10],[1,5],[15,1],[1,5],[25,10]],[[26,1],[17,5]],[[21,1],[26,10]],[[21,1],[26,10]]]}, + {"width":120,"source":"\nstateDiagram-v2\n direction TB\n [*] --> Cart\n Cart --> Payment: checkout\n Payment --> Complete\n","height":22,"lines":[" ●"," │"," │"," │"," ▼"," ╭──────╮"," │ Cart │"," ╰───┬──╯"," │"," │ checkout "," │"," ▼"," ╭─────────╮"," │ Payment │"," ╰────┬────╯"," │"," │"," │"," ▼","╭──────────╮","│ Complete │","╰──────────╯"],"runs":[[[6,1],[1,12]],[[6,1],[1,5]],[[6,1],[1,5]],[[6,1],[1,5]],[[6,1],[1,5]],[[2,1],[8,2]],[[2,1],[1,2],[6,3],[1,2]],[[2,1],[4,2],[1,30],[3,2]],[[6,1],[1,4]],[[6,1],[1,31],[10,10]],[[6,1],[1,5]],[[6,1],[1,5]],[[1,1],[11,2]],[[1,1],[1,2],[9,3],[1,2]],[[1,1],[5,2],[1,30],[5,2]],[[6,1],[1,4]],[[6,1],[1,31]],[[6,1],[1,5]],[[6,1],[1,5]],[[12,2]],[[1,2],[10,3],[1,2]],[[12,2]]]}, + {"width":120,"source":"\nstateDiagram-v2\n direction LR\n [*] --> Idle\n Idle --> Loading: submit\n Loading --> Success: 200 OK\n Loading --> Error: timeout\n Error --> Loading: retry\n Success --> [*]\n","height":9,"lines":[" ╭──────╮ submit ╭─────────╮ 200 OK ╭─────────╮","●────────────▶│ Idle ├────────────▶│ Loading ├────────────▶│ Success ├────────────▶◎"," ╰──────╯ ╰──┬──────╯ ╰─────────╯"," │ ▲"," timeout │ │"," ▼ │ retry "," ╭─────┴─╮"," │ Error │"," ╰───────╯"],"runs":[[[14,1],[8,2],[2,1],[8,10],[3,1],[11,2],[2,1],[8,10],[3,1],[11,2]],[[1,12],[13,5],[1,2],[6,3],[1,30],[1,4],[1,31],[11,5],[1,2],[9,3],[1,30],[1,4],[1,31],[11,5],[1,2],[9,3],[1,30],[1,4],[1,31],[11,5],[1,12]],[[14,1],[8,2],[13,1],[3,2],[1,30],[7,2],[13,1],[11,2]],[[38,1],[1,4],[3,1],[1,5]],[[28,1],[9,10],[1,1],[1,31],[3,1],[1,31]],[[38,1],[1,5],[3,1],[1,4],[1,1],[7,10]],[[36,1],[6,2],[1,30],[2,2]],[[36,1],[1,2],[7,3],[1,2]],[[36,1],[9,2]]]}, + {"width":120,"source":"stateDiagram-v2\n [*] --> Waiting\n state \"Waiting for surface and workspace\" as Waiting\n state \"Surface bound only\" as Surface\n state \"Workspace bound only\" as Workspace\n state \"Ready with queued input\" as Ready\n state \"Agent activity requested\" as Active\n Waiting --> Surface: InteractionSurfaceBound\n Waiting --> Workspace: WorkspaceBound\n Surface --> Ready: WorkspaceBound\n Workspace --> Ready: InteractionSurfaceBound\n Ready --> Active: AgentActivityRequested","height":29,"lines":[" ●"," │"," │"," │"," ▼","╭───────────────────────────────────╮","│ Waiting for surface and workspace │","╰─────────────────┬─────────────────╯"," │ InteractionSurfaceBound "," ╭──────┴────────────────────────────╮"," │ │"," ▼ WorkspaceBound ▼","╭────────────────────╮ ╭──────────────────────╮","│ Surface bound only │ │ Workspace bound only │","╰──────────┬─────────╯ ╰───────────┬──────────╯"," │ WorkspaceBound │"," ╰──────┬────────────────────────────╯"," │"," ▼ InteractionSurfaceBound "," ╭─────────────────────────╮"," │ Ready with queued input │"," ╰────────────┬────────────╯"," │"," │ AgentActivityRequested "," │"," ▼"," ╭──────────────────────────╮"," │ Agent activity requested │"," ╰──────────────────────────╯"],"runs":[[[18,1],[1,12]],[[18,1],[1,5]],[[18,1],[1,5]],[[18,1],[1,5]],[[18,1],[1,5]],[[37,2]],[[1,2],[35,3],[1,2]],[[18,2],[1,30],[18,2]],[[18,1],[1,4],[2,1],[25,10]],[[11,1],[7,5],[1,31],[29,5]],[[11,1],[1,5],[35,1],[1,5]],[[11,1],[1,5],[7,1],[16,10],[12,1],[1,5]],[[22,2],[13,1],[24,2]],[[1,2],[20,3],[1,2],[13,1],[1,2],[22,3],[1,2]],[[11,2],[1,30],[10,2],[13,1],[12,2],[1,30],[11,2]],[[11,1],[1,4],[16,10],[19,1],[1,4]],[[11,1],[1,31],[35,5],[1,31]],[[18,1],[1,5]],[[18,1],[1,5],[2,1],[25,10]],[[5,1],[27,2]],[[5,1],[1,2],[25,3],[1,2]],[[5,1],[13,2],[1,30],[13,2]],[[18,1],[1,4]],[[18,1],[1,31],[24,10]],[[18,1],[1,5]],[[18,1],[1,5]],[[4,1],[28,2]],[[4,1],[1,2],[26,3],[1,2]],[[4,1],[28,2]]]}, + {"width":120,"source":"\nstateDiagram-v2\n direction LR\n [*] --> Idle\n Idle --> Loading: submit\n Loading --> Success: 200 OK\n Loading --> Error: timeout\n note right of Loading : waiting for response\n Error --> Loading: retry\n Success --> [*]\n","height":14,"lines":[" ╔══════════════════════╗"," ╔═══╣ waiting for response ║"," ║ ╚══════════════════════╝"," ║"," ║"," ╭──────╮ submit ╭─────────╮ 200 OK ╭─────────╮","●────────────▶│ Idle ├────────────▶│ Loading ├────────────▶│ Success ├────────────▶◎"," ╰──────╯ ╰──┬──────╯ ╰─────────╯"," │ ▲"," timeout │ │"," ▼ │ retry "," ╭─────┴─╮"," │ Error │"," ╰───────╯"],"runs":[[[50,1],[24,0]],[[46,1],[1,0],[1,0],[1,0],[1,0],[1,0],[1,1],[20,32],[1,1],[1,0]],[[46,1],[1,0],[3,1],[24,0]],[[46,1],[1,0]],[[46,1],[1,0]],[[14,1],[8,2],[2,1],[8,10],[3,1],[11,2],[2,1],[8,10],[3,1],[11,2]],[[1,12],[13,5],[1,2],[6,3],[1,30],[1,4],[1,31],[11,5],[1,2],[9,3],[1,30],[1,4],[1,31],[11,5],[1,2],[9,3],[1,30],[1,4],[1,31],[11,5],[1,12]],[[14,1],[8,2],[13,1],[3,2],[1,30],[7,2],[13,1],[11,2]],[[38,1],[1,4],[3,1],[1,5]],[[28,1],[9,10],[1,1],[1,31],[3,1],[1,31]],[[38,1],[1,5],[3,1],[1,4],[1,1],[7,10]],[[36,1],[6,2],[1,30],[2,2]],[[36,1],[1,2],[7,3],[1,2]],[[36,1],[9,2]]]}, + {"width":120,"source":"stateDiagram-v2\n [*] --> Processing\n\n state Processing {\n [*] --> Validate\n Validate --> Decision\n state Decision <<choice>>\n Decision --> Accepted: valid\n Decision --> Rejected: invalid\n Accepted --> [*]\n Rejected --> [*]\n }\n\n note right of Processing\n Validation and routing happen\n inside this composite state.\n end note\n\n Processing --> Complete\n Complete --> [*]","height":20,"lines":[" ╔═══════════════════════════════╗"," ║ Validation and routing happen ║"," ╔═══╣ inside this composite state. ║"," ║ ╚═══════════════════════════════╝"," ║"," ║"," ╭─ Processing ────────────────────────────────────────╮"," │ │"," │ ╭──────────╮ valid ╭──────────╮ │ ╭──────────╮","●────────────▶│ Validate ├────────────▶◆────────────▶│ Accepted ├────────────▶│ Complete ├────────────▶◎"," │ ╰──────────╯ │ ╰──────────╯ │ ╰──────────╯"," │ │ invalid │ ▲"," │ ╰─────────────────╮ │ │"," │ │ │ │"," │ ▼ ╭────────────────────────╯"," │ ╭───────┴──╮ │"," │ │ Rejected │ │"," │ ╰──────────╯ │"," │ │"," ╰─────────────────────────────────────────────────────╯"],"runs":[[[71,1],[33,0]],[[71,1],[1,0],[1,1],[29,32],[1,1],[1,0]],[[67,1],[1,0],[1,0],[1,0],[1,0],[1,0],[1,1],[28,32],[2,1],[1,0]],[[67,1],[1,0],[3,1],[33,0]],[[67,1],[1,0]],[[67,1],[1,0]],[[12,1],[2,0],[12,0],[41,0]],[[12,1],[1,0],[53,1],[1,0]],[[12,1],[1,0],[1,1],[12,2],[16,1],[7,10],[4,1],[12,2],[1,1],[1,0],[11,1],[12,2]],[[1,12],[13,5],[1,2],[10,3],[1,30],[1,4],[1,31],[11,5],[1,12],[13,5],[1,2],[10,3],[1,30],[1,4],[1,31],[11,5],[1,2],[10,3],[1,30],[1,4],[1,31],[11,5],[1,12]],[[12,1],[1,0],[1,1],[12,2],[13,1],[1,5],[13,1],[12,2],[1,1],[1,0],[11,1],[12,2]],[[12,1],[1,0],[26,1],[1,5],[3,1],[9,10],[14,1],[1,0],[19,1],[1,5]],[[12,1],[1,0],[26,1],[19,5],[8,1],[1,0],[19,1],[1,5]],[[12,1],[1,0],[44,1],[1,5],[8,1],[1,0],[19,1],[1,5]],[[12,1],[1,0],[44,1],[1,5],[3,1],[1,4],[1,31],[24,5]],[[12,1],[1,0],[40,1],[8,2],[1,30],[3,2],[1,1],[1,0]],[[12,1],[1,0],[40,1],[1,2],[10,3],[1,2],[1,1],[1,0]],[[12,1],[1,0],[40,1],[12,2],[1,1],[1,0]],[[12,1],[1,0],[53,1],[1,0]],[[12,1],[55,0]]]}, + {"width":120,"source":"\nstateDiagram-v2\n direction LR\n [*] --> Idle\n Idle --> Loading: submit\n","height":3,"lines":[" ╭──────╮ submit ╭─────────╮","●────────────▶│ Idle ├────────────▶│ Loading │"," ╰──────╯ ╰─────────╯"],"runs":[[[14,1],[8,2],[2,1],[8,10],[3,1],[11,2]],[[1,12],[13,5],[1,2],[6,3],[1,30],[1,4],[1,31],[11,5],[1,2],[9,3],[1,2]],[[14,1],[8,2],[13,1],[11,2]]]}, + {"width":120,"source":"\nstateDiagram-v2\n direction LR\n state Decision <<choice>>\n [*] --> Editing\n Editing --> Editing: type\n Editing --> Decision: submit\n Decision --> Saved: ok\n Decision --> Error: fail\n Error --> Editing: retry\n","height":13,"lines":[" ╭─────────╮ submit ok ╭───────╮","●────────────▶│ Editing ├────────────▶◆────────────▶│ Saved │"," ╰──┬──────╯ │ ╰───────╯"," ▲ │ ▲ type │ fail "," │ ╰────╯ │"," │ ▼"," │ ╭───────╮"," │ │ Error │"," │ ╰───┬───╯"," │ │"," │ │"," │ retry │"," ╰──────────────────────╯"],"runs":[[[14,1],[11,2],[2,1],[8,10],[8,1],[4,10],[5,1],[9,2]],[[1,12],[13,5],[1,2],[9,3],[1,30],[1,4],[1,31],[11,5],[1,12],[13,5],[1,2],[7,3],[1,2]],[[14,1],[3,2],[1,30],[7,2],[13,1],[1,5],[13,1],[9,2]],[[15,1],[1,5],[1,1],[1,4],[4,1],[1,5],[6,10],[9,1],[1,5],[6,10]],[[15,1],[1,5],[1,1],[1,31],[5,5],[15,1],[1,5]],[[15,1],[1,5],[22,1],[1,5]],[[15,1],[1,5],[18,1],[9,2]],[[15,1],[1,5],[18,1],[1,2],[7,3],[1,2]],[[15,1],[1,5],[18,1],[4,2],[1,30],[4,2]],[[15,1],[1,5],[22,1],[1,4]],[[15,1],[1,5],[22,1],[1,31]],[[15,1],[1,5],[7,1],[7,10],[8,1],[1,5]],[[15,1],[24,5]]]}, + {"width":120,"source":"stateDiagram-v2\n direction LR\n state Decision <<choice>>\n [*] --> Fork\n Fork --> Upper\n Fork --> Lower\n Upper --> Decision\n Lower --> Decision\n Decision --> Done\n Done --> [*]","height":10,"lines":[" ╭──────╮ ╭───────╮ ╭──────╮","●────────────▶│ Fork ├────────────▶│ Upper ├────────────▶◆────────────▶│ Done ├────────────▶◎"," ╰─┬────╯ ╰───────╯ ▲ ╰──────╯"," │ │"," ╰────────────────────╮ │"," │ │"," ▼ ╭───────────────╯"," ╭─────┴─╮"," │ Lower │"," ╰───────╯"],"runs":[[[14,1],[8,2],[13,1],[9,2],[27,1],[8,2]],[[1,12],[13,5],[1,2],[6,3],[1,30],[1,4],[1,31],[11,5],[1,2],[7,3],[1,30],[1,4],[1,31],[11,5],[1,12],[13,5],[1,2],[6,3],[1,30],[1,4],[1,31],[11,5],[1,12]],[[14,1],[2,2],[1,30],[5,2],[13,1],[9,2],[13,1],[1,5],[13,1],[8,2]],[[16,1],[1,4],[40,1],[1,5]],[[16,1],[1,31],[21,5],[19,1],[1,5]],[[37,1],[1,5],[19,1],[1,5]],[[37,1],[1,5],[3,1],[1,4],[1,31],[15,5]],[[35,1],[6,2],[1,30],[2,2]],[[35,1],[1,2],[7,3],[1,2]],[[35,1],[9,2]]]}, + {"width":120,"source":"stateDiagram-v2\n direction TB\n Working --> Working: retry","height":5,"lines":["╭─────────╮","│ Working │","╰──┬──────╯"," │ ▲ retry "," ╰────╯"],"runs":[[[11,2]],[[1,2],[9,3],[1,2]],[[3,2],[1,30],[7,2]],[[3,1],[1,4],[4,1],[1,5],[7,10]],[[3,1],[1,31],[5,5]]]}, + {"width":120,"source":"stateDiagram-v2\n direction LR\n state Decision <<choice>>\n Decision --> Decision: reconsider","height":3,"lines":["◆───╮","▲ │ reconsider ","╰───╯"],"runs":[[[1,12],[4,5]],[[1,5],[3,1],[1,5],[12,10]],[[5,5]]]}, + {"width":120,"source":"stateDiagram-v2\n direction LR\n A --> B: first\n A --> B: second","height":9,"lines":["╭───╮ ╭───╮","│ A ├────────────▶│ B │","╰─┬─╯ ╰───╯"," │ first ▲"," │ │"," │ │"," ╰──────────────────╯",""," second "],"runs":[[[5,2],[13,1],[5,2]],[[1,2],[3,3],[1,30],[1,4],[1,31],[11,5],[1,2],[3,3],[1,2]],[[2,2],[1,30],[2,2],[13,1],[5,2]],[[2,1],[1,4],[4,1],[7,10],[7,1],[1,5]],[[2,1],[1,31],[18,1],[1,5]],[[2,1],[1,5],[18,1],[1,5]],[[2,1],[20,5]],[],[[7,1],[8,10]]]}, + {"width":120,"source":"stateDiagram-v2\n direction TB\n A --> B: first\n A --> B: second","height":10,"lines":["╭───╮ first ","│ A ├───╮","╰─┬─╯ │"," │ │"," │ │ second "," │ │"," ▼ │","╭───╮ │","│ B │◀──╯","╰───╯"],"runs":[[[5,2],[7,10]],[[1,2],[3,3],[1,30],[1,4],[1,31],[2,5]],[[2,2],[1,30],[2,2],[3,1],[1,5]],[[2,1],[1,4],[5,1],[1,5]],[[2,1],[1,31],[5,1],[1,5],[8,10]],[[2,1],[1,5],[5,1],[1,5]],[[2,1],[1,5],[5,1],[1,5]],[[5,2],[3,1],[1,5]],[[1,2],[3,3],[1,2],[4,5]],[[5,2]]]}, + {"width":120,"source":"stateDiagram-v2\n direction TD\n state \"Node S13_0\" as S13_0\n state \"Node S13_1\" as S13_1\n state \"Node S13_2\" as S13_2\n state \"Node S13_3\" as S13_3\n state \"Node S13_4\" as S13_4\n S13_0 --> S13_1: state_edge_13_0\n S13_1 --> S13_2: state_edge_13_1\n S13_2 --> S13_3: state_edge_13_2\n S13_3 --> S13_4: state_edge_13_3\n S13_0 --> S13_2: state_edge_13_4\n S13_4 --> S13_1: state_edge_13_5\n S13_2 --> S13_0: state_edge_13_6\n S13_1 --> S13_2: state_edge_13_7\n S13_3 --> S13_2: state_edge_13_8\n S13_3 --> S13_0: state_edge_13_9\n S13_0 --> S13_0: state_edge_13_10\n note left of S13_0: state_note_13_0","height":24,"lines":["╔═════════════════╗ ╭────────────╮state_edge_13_4 ","║ state_note_13_0 ╠════│ Node S13_0 │◀────────────────────────────────┬─────╮","╚═════════════════╝ ╰───┬──┬─────╯ │ │"," state_edge_13_10 │ │ ▲ state_edge_13_1 state_edge_13_6 │ │"," ╰──┼──┴───────────────────────╮ │ │"," │ state_edge_13_0 │ │ │"," ╭───────▼ ▼ │ │"," │╭────────────╮ ╭────────────╮ │ │"," ││ Node S13_1 ├────────────▶│ Node S13_2 ├◀─────┴──╮ │ state_edge_13_9 "," │╰──────┬─────╯ ╰──────┬─────╯ │ │"," │ ╰──────────────────────────┼────◀ │ │"," │ ╭──────────────────────────╯ │ │"," │ │ │ │"," │ ▼ state_edge_13_2 state_edge_13_8 │ │"," │╭────────────╮ │ │"," ││ Node S13_3 ├────────────────────────────────────┴──╯"," │╰──────┬─────╯ state_edge_13_7 "," ╰───────┤"," │ state_edge_13_3 "," │"," ╰──────╮ state_edge_13_5 "," ╭────────────╮│"," │ Node S13_4 ├╯"," ╰────────────╯"],"runs":[[[19,0],[4,1],[14,2],[16,10]],[[1,0],[1,1],[15,32],[1,1],[1,0],[1,0],[1,0],[1,0],[1,0],[1,2],[12,3],[1,2],[40,5]],[[19,0],[4,1],[4,2],[1,30],[2,2],[1,30],[6,2],[33,1],[1,5],[5,1],[1,5]],[[8,1],[18,10],[1,1],[1,4],[2,1],[1,4],[2,1],[1,5],[3,1],[33,10],[1,5],[5,1],[1,5]],[[27,1],[1,31],[30,5],[12,1],[1,5],[5,1],[1,5]],[[30,1],[1,5],[17,10],[9,1],[1,5],[12,1],[1,5],[5,1],[1,5]],[[22,1],[9,5],[26,1],[1,5],[12,1],[1,5],[5,1],[1,5]],[[22,1],[1,5],[14,2],[13,1],[14,2],[6,1],[1,5],[5,1],[1,5]],[[22,1],[1,5],[1,2],[12,3],[1,30],[1,4],[1,31],[11,5],[1,2],[12,3],[1,30],[10,5],[2,1],[1,5],[17,10]],[[22,1],[1,5],[7,2],[1,30],[6,2],[13,1],[7,2],[1,30],[6,2],[9,1],[1,5],[2,1],[1,5]],[[22,1],[1,5],[7,1],[1,4],[1,31],[31,5],[10,1],[1,5],[2,1],[1,5]],[[22,1],[1,5],[7,1],[27,5],[1,31],[15,1],[1,5],[2,1],[1,5]],[[22,1],[1,5],[7,1],[1,5],[42,1],[1,5],[2,1],[1,5]],[[22,1],[1,5],[7,1],[1,5],[8,1],[34,10],[1,5],[2,1],[1,5]],[[22,1],[1,5],[14,2],[36,1],[1,5],[2,1],[1,5]],[[22,1],[1,5],[1,2],[12,3],[1,30],[1,4],[1,31],[38,5]],[[22,1],[1,5],[7,2],[1,30],[6,2],[17,10]],[[22,1],[9,5]],[[30,1],[1,5],[17,10]],[[30,1],[1,5]],[[30,1],[8,5],[17,10]],[[23,1],[14,2],[1,31]],[[23,1],[1,2],[12,3],[1,30],[1,4]],[[23,1],[14,2]]]}, + {"width":120,"source":"stateDiagram-v2\n direction TD\n state \"Node S21_0\" as S21_0\n state \"Node S21_1\" as S21_1\n state \"Node S21_2\" as S21_2\n state \"Node S21_3\" as S21_3\n state \"Node S21_4\" as S21_4\n state \"Node S21_5\" as S21_5\n S21_0 --> S21_1: state_edge_21_0\n S21_1 --> S21_2: state_edge_21_1\n S21_2 --> S21_3: state_edge_21_2\n S21_3 --> S21_4: state_edge_21_3\n S21_4 --> S21_5: state_edge_21_4\n S21_4 --> S21_5: state_edge_21_5\n S21_2 --> S21_4: state_edge_21_6\n S21_3 --> S21_1: state_edge_21_7\n note right of S21_1: state_note_21_0\n note left of S21_0: state_note_21_1\n note left of S21_4: state_note_21_2","height":35,"lines":["╔═════════════════╗ ╭────────────╮","║ state_note_21_1 ╠════│ Node S21_0 │","╚═════════════════╝ ╰──────┬─────╯"," │"," │ state_edge_21_0 "," │"," ▼"," ╭────────────╮ ╔═════════════════╗"," ▶│ Node S21_1 │════╣ state_note_21_0 ║"," │╰──────┬─────╯ ╚═════════════════╝"," │ │"," │ │ state_edge_21_1 "," │ │"," │ ▼"," │╭────────────╮ state_edge_21_3 "," state_edge_21_7 ││ Node S21_2 │"," │╰──────┬─────╯ state_edge_21_6 "," │ │ state_edge_21_2 "," │ ├──────────────────────────╮"," │ │ ╭───────────────────┼──────╮"," │ ▼ │ ╔══ ▼ │"," │╭────────────╮│ ║ ╭──────┴─────╮│"," ╰┤ Node S21_3 ├┤ ║ │ Node S21_4 ├╯ state_edge_21_5 "," ╰────────────╯│ ║ ╰────────────╯"," │ ║"," state_edge_21_4 │ ║"," │ ║"," │ ║"," ╭────────────╮│ ║"," │ Node S21_5 │◀ ║"," ╰────────────╯ ║"," ║"," ╔═════════════════╗ ║"," ║ state_note_21_2 ╠═╝"," ╚═════════════════╝"],"runs":[[[19,0],[4,1],[14,2]],[[1,0],[1,1],[15,32],[1,1],[1,0],[1,0],[1,0],[1,0],[1,0],[1,2],[12,3],[1,2]],[[19,0],[4,1],[7,2],[1,30],[6,2]],[[30,1],[1,4]],[[30,1],[1,31],[17,10]],[[30,1],[1,5]],[[30,1],[1,5]],[[23,1],[14,2],[4,1],[19,0]],[[22,1],[1,5],[1,2],[12,3],[1,2],[1,0],[1,0],[1,0],[1,0],[1,0],[1,1],[15,32],[1,1],[1,0]],[[22,1],[1,5],[7,2],[1,30],[6,2],[4,1],[19,0]],[[22,1],[1,5],[7,1],[1,4]],[[22,1],[1,5],[7,1],[1,31],[17,10]],[[22,1],[1,5],[7,1],[1,5]],[[22,1],[1,5],[7,1],[1,5]],[[22,1],[1,5],[14,2],[17,10]],[[4,1],[17,10],[1,1],[1,5],[1,2],[12,3],[1,2]],[[22,1],[1,5],[7,2],[1,30],[6,2],[10,1],[17,10]],[[22,1],[1,5],[7,1],[1,4],[17,10]],[[22,1],[1,5],[7,1],[1,31],[27,5]],[[22,1],[1,5],[7,1],[1,5],[6,1],[28,5]],[[22,1],[1,5],[7,1],[1,5],[6,1],[1,5],[9,1],[3,0],[7,1],[1,5],[6,1],[1,5]],[[22,1],[1,31],[14,2],[1,5],[9,1],[1,0],[2,1],[7,2],[1,30],[6,2],[1,31]],[[22,1],[1,4],[1,30],[12,3],[1,30],[1,5],[9,1],[1,0],[2,1],[1,2],[12,3],[1,30],[1,4],[17,10]],[[23,1],[14,2],[1,5],[9,1],[1,0],[2,1],[14,2]],[[37,1],[1,5],[9,1],[1,0]],[[19,1],[17,10],[1,1],[1,5],[9,1],[1,0]],[[37,1],[1,5],[9,1],[1,0]],[[37,1],[1,5],[9,1],[1,0]],[[23,1],[14,2],[1,5],[9,1],[1,0]],[[23,1],[1,2],[12,3],[1,2],[1,5],[9,1],[1,0]],[[23,1],[14,2],[10,1],[1,0]],[[47,1],[1,0]],[[27,1],[19,0],[1,1],[1,0]],[[27,1],[1,0],[1,1],[15,32],[1,1],[1,0],[1,0],[1,0]],[[27,1],[19,0]]]}, + {"width":120,"source":"stateDiagram-v2\n direction TB\n state \"Node S27_0\" as S27_0\n state \"Node S27_1\" as S27_1\n state \"Node S27_2\" as S27_2\n state \"Node S27_3\" as S27_3\n state \"Node S27_4\" as S27_4\n state \"Node S27_5\" as S27_5\n S27_0 --> S27_1: state_edge_27_0\n S27_1 --> S27_2: state_edge_27_1\n S27_2 --> S27_3: state_edge_27_2\n S27_3 --> S27_4: state_edge_27_3\n S27_4 --> S27_5: state_edge_27_4\n S27_1 --> S27_0: state_edge_27_5\n S27_5 --> S27_1: state_edge_27_6\n S27_2 --> S27_1: state_edge_27_7\n S27_1 --> S27_5: state_edge_27_8\n note left of S27_5: state_note_27_0\n note right of S27_0: state_note_27_1\n note left of S27_3: state_note_27_2","height":38,"lines":[" ╭────────────╮ ╔═════════════════╗"," ▶│ Node S27_0 │════╣ state_note_27_1 ║"," │╰──────┬─────╯ ╚═════════════════╝"," │ │"," state_edge_27_5 │ │ state_edge_27_0 "," │ │"," │ ▼"," │╭────────────╮"," ▶┤ Node S27_1 ├◀───────────────────────────────────╮"," │╰──────┬─────╯│state_edge_27_8 │"," │ │ │ │"," state_edge_27_7 │ ╰──────┼───────────────────╮ │ state_edge_27_6 "," ╭─╯ ╰───────────────────┼╮ │"," │╔════════════════════════════════════╰─────╮ │"," │║ ╭────────────╮ ╭────────────╮│ │"," │║ │ Node S27_2 │◀ │ Node S27_5 ├───┬─────╯"," │║ ╰──────┬─────╯│ ╰────────────╯│ │"," │║╭───────┤ ╰──────────────────────────╯ │"," │║│ │ state_edge_27_2 │"," │║│ │ state_edge_27_1 │"," │║│ ▼ │"," │║│╭────────────╮ ╔═════════════════╗"," │║││ Node S27_3 │══════════════════════════════╣ state_note_27_2 ║"," │║│╰──────┬─────╯ ╚═════════════════╝"," │║│ │ │ state_edge_27_4 "," │║│ │ state_edge_27_3 │"," │║│ │ │"," │║│ ▼ │"," │║│╭────────────╮ │"," │║││ Node S27_4 ├──────────────────────────────╯"," │║│╰────────────╯"," │║│"," │║│","╭────────────────────╯║│","│╔═════════════════╗ ║│","│║ state_note_27_0 ╠══╝│","│╚═════════════════╝ │","╰──────────────────────╯"],"runs":[[[24,1],[14,2],[4,1],[19,0]],[[23,1],[1,5],[1,2],[12,3],[1,2],[1,0],[1,0],[1,0],[1,0],[1,0],[1,1],[15,32],[1,1],[1,0]],[[23,1],[1,5],[7,2],[1,30],[6,2],[4,1],[19,0]],[[23,1],[1,5],[7,1],[1,4]],[[5,1],[17,10],[1,1],[1,5],[7,1],[1,31],[17,10]],[[23,1],[1,5],[7,1],[1,5]],[[23,1],[1,5],[7,1],[1,5]],[[23,1],[1,31],[14,2]],[[23,1],[1,5],[1,30],[12,3],[1,30],[37,5]],[[23,1],[1,5],[7,2],[1,30],[6,2],[1,31],[16,10],[19,1],[1,5]],[[23,1],[1,5],[7,1],[1,4],[6,1],[1,5],[35,1],[1,5]],[[5,1],[17,10],[1,1],[1,5],[7,1],[1,31],[27,5],[15,1],[1,5],[17,10]],[[21,1],[3,5],[14,1],[22,5],[14,1],[1,5]],[[21,1],[1,5],[37,0],[7,5],[8,1],[1,5]],[[21,1],[1,5],[1,0],[1,1],[14,2],[13,1],[14,2],[1,5],[8,1],[1,5]],[[21,1],[1,5],[1,0],[1,1],[1,2],[12,3],[1,2],[1,5],[12,1],[1,2],[12,3],[1,30],[1,4],[1,31],[8,5]],[[21,1],[1,5],[1,0],[1,1],[7,2],[1,30],[6,2],[1,5],[12,1],[14,2],[1,5],[2,1],[1,5]],[[21,1],[1,5],[1,0],[7,5],[1,31],[1,4],[6,1],[28,5],[2,1],[1,5]],[[21,1],[1,5],[1,0],[1,5],[7,1],[1,31],[17,10],[19,1],[1,5]],[[21,1],[1,5],[1,0],[1,5],[7,1],[1,5],[16,1],[17,10],[3,1],[1,5]],[[21,1],[1,5],[1,0],[1,5],[7,1],[1,5],[36,1],[1,5]],[[21,1],[1,5],[1,0],[1,5],[14,2],[30,1],[19,0]],[[21,1],[1,5],[1,0],[1,5],[1,2],[12,3],[1,2],[27,0],[1,0],[1,0],[1,0],[1,0],[1,1],[15,32],[1,1],[1,0]],[[21,1],[1,5],[1,0],[1,5],[7,2],[1,30],[6,2],[30,1],[19,0]],[[21,1],[1,5],[1,0],[1,5],[7,1],[1,4],[36,1],[1,5],[17,10]],[[21,1],[1,5],[1,0],[1,5],[7,1],[1,31],[17,10],[19,1],[1,5]],[[21,1],[1,5],[1,0],[1,5],[7,1],[1,5],[36,1],[1,5]],[[21,1],[1,5],[1,0],[1,5],[7,1],[1,5],[36,1],[1,5]],[[21,1],[1,5],[1,0],[1,5],[14,2],[30,1],[1,5]],[[21,1],[1,5],[1,0],[1,5],[1,2],[12,3],[1,30],[1,4],[1,31],[29,5]],[[21,1],[1,5],[1,0],[1,5],[14,2]],[[21,1],[1,5],[1,0],[1,5]],[[21,1],[1,5],[1,0],[1,5]],[[22,5],[1,0],[1,5]],[[1,5],[19,0],[2,1],[1,0],[1,5]],[[1,5],[1,0],[1,1],[15,32],[1,1],[1,0],[1,0],[1,0],[1,0],[1,5]],[[1,5],[19,0],[3,1],[1,5]],[[24,5]]]}, + {"width":120,"source":"stateDiagram-v2\n direction TD\n state \"Node S33_0\" as S33_0\n state \"Node S33_1\" as S33_1\n state \"Node S33_2\" as S33_2\n state \"Node S33_3\" as S33_3\n state \"Node S33_4\" as S33_4\n state \"Node S33_5\" as S33_5\n state \"Node S33_6\" as S33_6\n S33_0 --> S33_1: state_edge_33_0\n S33_1 --> S33_2: state_edge_33_1\n S33_2 --> S33_3: state_edge_33_2\n S33_3 --> S33_4: state_edge_33_3\n S33_4 --> S33_5: state_edge_33_4\n S33_5 --> S33_6: state_edge_33_5\n S33_6 --> S33_4: state_edge_33_6\n S33_2 --> S33_4: state_edge_33_7\n S33_3 --> S33_3: state_edge_33_8\n note left of S33_2: state_note_33_0\n note left of S33_6: state_note_33_1","height":38,"lines":[" ╭────────────╮"," │ Node S33_0 │"," ╰──────┬─────╯"," │"," │ state_edge_33_0 "," │"," ▼"," ╭────────────╮"," │ Node S33_1 │"," ╰──────┬─────╯"," │"," │ state_edge_33_1 "," │"," ▼"," ╔═════════════════╗ ╭────────────╮"," ║ state_note_33_0 ╠════│ Node S33_2 │"," ╚═════════════════╝ ╰──────┬─────╯ state_edge_33_7 "," │ state_edge_33_2 "," ├──────────────────────────╮"," │ │"," ▼ state_edge_33_3 ▼"," ╭────────────╮ ╭────────────╮"," │ Node S33_3 ├────────────▶│ Node S33_4 │◀──╮"," ╰───┬────────╯ ╰──────┬─────╯ │"," state_edge_33_8 ╰─────◀ state_edge_33_4 │ │"," ╭──────────────────────────╯ │"," │ │"," ▼ │"," ╭────────────╮ │"," │ Node S33_5 │ │ state_edge_33_6 "," ╰──────┬─────╯ │"," │ │"," │ state_edge_33_5 │"," │ │"," ▼ │","╔═════════════════╗ ╭────────────╮ │","║ state_note_33_1 ╠═══════════════════════════│ Node S33_6 ├──────────────────────────────╯","╚═════════════════╝ ╰────────────╯"],"runs":[[[46,1],[14,2]],[[46,1],[1,2],[12,3],[1,2]],[[46,1],[7,2],[1,30],[6,2]],[[53,1],[1,4]],[[53,1],[1,31],[17,10]],[[53,1],[1,5]],[[53,1],[1,5]],[[46,1],[14,2]],[[46,1],[1,2],[12,3],[1,2]],[[46,1],[7,2],[1,30],[6,2]],[[53,1],[1,4]],[[53,1],[1,31],[17,10]],[[53,1],[1,5]],[[53,1],[1,5]],[[23,1],[19,0],[4,1],[14,2]],[[23,1],[1,0],[1,1],[15,32],[1,1],[1,0],[1,0],[1,0],[1,0],[1,0],[1,2],[12,3],[1,2]],[[23,1],[19,0],[4,1],[7,2],[1,30],[6,2],[10,1],[17,10]],[[53,1],[1,4],[17,10]],[[53,1],[1,31],[27,5]],[[53,1],[1,5],[26,1],[1,5]],[[53,1],[1,5],[6,1],[17,10],[3,1],[1,5]],[[46,1],[14,2],[13,1],[14,2]],[[46,1],[1,2],[12,3],[1,30],[1,4],[1,31],[11,5],[1,2],[12,3],[1,2],[4,5]],[[46,1],[4,2],[1,30],[9,2],[13,1],[7,2],[1,30],[6,2],[3,1],[1,5]],[[33,1],[17,10],[1,4],[1,31],[5,5],[5,1],[17,10],[1,1],[1,4],[9,1],[1,5]],[[53,1],[27,5],[1,31],[9,1],[1,5]],[[53,1],[1,5],[36,1],[1,5]],[[53,1],[1,5],[36,1],[1,5]],[[46,1],[14,2],[30,1],[1,5]],[[46,1],[1,2],[12,3],[1,2],[30,1],[1,5],[17,10]],[[46,1],[7,2],[1,30],[6,2],[30,1],[1,5]],[[53,1],[1,4],[36,1],[1,5]],[[53,1],[1,31],[17,10],[19,1],[1,5]],[[53,1],[1,5],[36,1],[1,5]],[[53,1],[1,5],[36,1],[1,5]],[[19,0],[27,1],[14,2],[30,1],[1,5]],[[1,0],[1,1],[15,32],[1,1],[1,0],[1,0],[1,0],[1,0],[24,0],[1,2],[12,3],[1,30],[1,4],[1,31],[29,5]],[[19,0],[27,1],[14,2]]]}, + {"width":120,"source":"stateDiagram-v2\n direction RL\n state \"Node S237_0\" as S237_0\n state \"Node S237_1\" as S237_1\n state \"Node S237_2\" as S237_2\n state \"Node S237_3\" as S237_3\n state \"Node S237_4\" as S237_4\n state \"Node S237_5\" as S237_5\n S237_0 --> S237_1: state_edge_237_0\n S237_1 --> S237_2: state_edge_237_1\n S237_2 --> S237_3: state_edge_237_2\n S237_3 --> S237_4: state_edge_237_3\n S237_4 --> S237_5: state_edge_237_4\n S237_1 --> S237_5: state_edge_237_5\n S237_4 --> S237_5: state_edge_237_6\n S237_4 --> S237_0: state_edge_237_7\n S237_0 --> S237_4: state_edge_237_8\n note right of S237_1: state_note_237_0\n note left of S237_5: state_note_237_1\n note right of S237_2: state_note_237_2","height":24,"lines":[" ╔══════════════════╗"," ╔═══╣ state_note_237_0 ║"," ║ ╚══════════════════╝"," ║"," ◀─╮ ║"," ╔══════════════════╗ ╭─────────────╮│state_edge_237_5 ╭─────────────╮ state_edge_237_0 ╭─────────────╮"," ║ state_note_237_1 ╠════│ Node S237_5 ││─────────────────┤ Node S237_1 │◀─────────────────┤ Node S237_0 │"," ╚══════════════════╝ ╰─────────────╯│ ╰────┬────────╯ ╰────┬────────╯"," ▲ ╭─╯ │ ╰╮ ▲"," │ │ │ state_edge_237_1 │ │"," ╭─────────────────────────┴─────╯ ▼ │ │"," │╭─────────────╮ state_edge_237_2 ╭─────────────╮ ╔══════════════════╗│ │"," ││ Node S237_3 │◀───────────────────────────────────┤ Node S237_2 │════╣ state_note_237_2 ║│ │"," │╰────┬────────╯ ╰─────────────╯ ╚══════════════════╝│ │"," ╰─────┼───────────────────┬─────╮ state_edge_237_8 │ │"," ╰───────────────────┼─────┼────────────────────────╮ │ │"," │ ╰────────────────────────▶─────────┬───────────────────────╯ │"," state_edge_237_3 │ ╭─────────────╮│ state_edge_237_6 │"," ╰─────────────────────────┤ Node S237_4 ├╯ │"," ╰──────┬──────╯ │"," state_edge_237_4 │ │"," │ │"," │ state_edge_237_7 │"," ╰──────────────────────────────────────╯"],"runs":[[[88,1],[20,0]],[[84,1],[1,0],[1,0],[1,0],[1,0],[1,0],[1,1],[16,32],[1,1],[1,0]],[[84,1],[1,0],[3,1],[20,0]],[[84,1],[1,0]],[[49,1],[3,5],[32,1],[1,0]],[[12,1],[20,0],[4,1],[15,2],[1,5],[17,10],[15,2],[18,10],[15,2]],[[12,1],[1,0],[1,1],[16,32],[1,1],[1,0],[1,0],[1,0],[1,0],[1,0],[1,2],[13,3],[1,2],[16,5],[1,31],[1,4],[1,30],[13,3],[1,2],[16,5],[1,31],[1,4],[1,30],[13,3],[1,2]],[[12,1],[20,0],[4,1],[15,2],[1,5],[17,1],[5,2],[1,30],[9,2],[18,1],[5,2],[1,30],[9,2]],[[43,1],[1,5],[5,1],[3,5],[22,1],[1,4],[32,1],[1,4],[1,31],[6,1],[1,5]],[[43,1],[1,5],[5,1],[1,5],[24,1],[1,31],[18,10],[15,1],[1,5],[6,1],[1,5]],[[17,1],[33,5],[24,1],[1,5],[33,1],[1,5],[6,1],[1,5]],[[17,1],[1,5],[15,2],[8,1],[18,10],[10,1],[15,2],[4,1],[20,0],[1,5],[6,1],[1,5]],[[17,1],[1,5],[1,2],[13,3],[1,2],[34,5],[1,31],[1,4],[1,30],[13,3],[1,2],[1,0],[1,0],[1,0],[1,0],[1,0],[1,1],[16,32],[1,1],[1,0],[1,5],[6,1],[1,5]],[[17,1],[1,5],[5,2],[1,30],[9,2],[36,1],[15,2],[4,1],[20,0],[1,5],[6,1],[1,5]],[[17,1],[33,5],[38,1],[18,10],[2,1],[1,5],[6,1],[1,5]],[[23,1],[1,31],[51,5],[33,1],[1,5],[6,1],[1,5]],[[43,1],[1,5],[5,1],[60,5],[6,1],[1,5]],[[24,1],[18,10],[1,1],[1,5],[25,1],[15,2],[1,31],[18,10],[12,1],[1,5]],[[43,1],[24,5],[1,31],[1,4],[1,30],[13,3],[1,30],[1,4],[30,1],[1,5]],[[69,1],[7,2],[1,30],[7,2],[31,1],[1,5]],[[51,1],[18,10],[7,1],[1,4],[38,1],[1,5]],[[76,1],[1,31],[38,1],[1,5]],[[76,1],[1,5],[9,1],[18,10],[11,1],[1,5]],[[76,1],[40,5]]]}, + {"width":120,"source":"stateDiagram-v2\n direction TB\n A --> B: one\n A --> B: two\n A --> B: three\n A --> B: four","height":10,"lines":["╭───╮","│ A ├───┬──┬──╮","╰─┬─╯ │ │ │ three "," │ │ │ │"," │ one │ │ │ two "," │ │ │ │"," ▼ │ │ │ four ","╭───╮ │ │ │","│ B │◀──┴──┴──╯","╰───╯"],"runs":[[[5,2]],[[1,2],[3,3],[1,30],[1,4],[1,31],[8,5]],[[2,2],[1,30],[2,2],[3,1],[1,5],[2,1],[1,5],[2,1],[1,5],[7,10]],[[2,1],[1,4],[5,1],[1,5],[2,1],[1,5],[2,1],[1,5]],[[2,1],[1,31],[5,10],[1,5],[2,1],[1,5],[2,1],[1,5],[5,10]],[[2,1],[1,5],[5,1],[1,5],[2,1],[1,5],[2,1],[1,5]],[[2,1],[1,5],[5,1],[1,5],[2,1],[1,5],[2,1],[1,5],[6,10]],[[5,2],[3,1],[1,5],[2,1],[1,5],[2,1],[1,5]],[[1,2],[3,3],[1,2],[10,5]],[[5,2]]]}, + {"width":120,"source":"stateDiagram-v2\n direction TB\n A --> B: alpha route label that is deliberately long\n A --> B: beta route label that is deliberately long\n A --> B: gamma route label that is deliberately long","height":10,"lines":["╭───╮ alpha route label that is deliberately long ","│ A ├───┬──╮","╰─┬─╯ │ │ gamma route label that is deliberately long "," │ │ │"," │ │ │ beta route label that is deliberately long "," │ │ │"," ▼ │ │","╭───╮ │ │","│ B │◀──┴──╯","╰───╯"],"runs":[[[5,2],[45,10]],[[1,2],[3,3],[1,30],[1,4],[1,31],[5,5]],[[2,2],[1,30],[2,2],[3,1],[1,5],[2,1],[1,5],[45,10]],[[2,1],[1,4],[5,1],[1,5],[2,1],[1,5]],[[2,1],[1,31],[5,1],[1,5],[2,1],[1,5],[44,10]],[[2,1],[1,5],[5,1],[1,5],[2,1],[1,5]],[[2,1],[1,5],[5,1],[1,5],[2,1],[1,5]],[[5,2],[3,1],[1,5],[2,1],[1,5]],[[1,2],[3,3],[1,2],[7,5]],[[5,2]]]}, + {"width":120,"source":"stateDiagram-v2\n direction LR\n A --> A: one\n A --> A: two\n A --> A: three","height":11,"lines":["╭───╮","│ A │","╰─┬─╯"," │ ▲ ▲ ▲"," ├──╯ │ │"," │ │ │"," │ one │ │"," ├──────╯ │"," │ │"," │ two │ three "," ╰──────────╯"],"runs":[[[5,2]],[[1,2],[3,3],[1,2]],[[2,2],[1,30],[2,2]],[[2,1],[1,4],[2,1],[1,5],[3,1],[1,5],[3,1],[1,5]],[[2,1],[1,31],[3,5],[3,1],[1,5],[3,1],[1,5]],[[2,1],[1,5],[6,1],[1,5],[3,1],[1,5]],[[2,1],[1,5],[5,10],[1,1],[1,5],[3,1],[1,5]],[[2,1],[8,5],[3,1],[1,5]],[[2,1],[1,5],[10,1],[1,5]],[[2,1],[1,5],[4,1],[5,10],[1,1],[1,5],[7,10]],[[2,1],[12,5]]]}, + {"width":120,"source":"stateDiagram-v2\n direction LR\n state Outer {\n A --> A: loop-0\n A --> A: loop-1\n A --> A: loop-2\n }\n A --> C","height":14,"lines":["╭─ Outer ──────────────╮","│ │","│ ╭───╮ │ ╭───╮","│ │ A ├────────────────────▶│ C │","│ ╰─┬─╯ loop-0 │ ╰───╯","│ │ ▲ ▲ ▲ │","│ ├──╯ │ │ │","│ │ │ │ │","│ │ │ │ │","│ ├──────╯ │ │","│ │ │ │","│ │ loop-1 │ loop-2│","│ ╰──────────╯ │","╰──────────────────────╯"],"runs":[[[2,0],[7,0],[15,0]],[[1,0],[22,1],[1,0]],[[1,0],[1,1],[5,2],[16,1],[1,0],[4,1],[5,2]],[[1,0],[1,1],[1,2],[3,3],[1,30],[1,4],[1,31],[19,5],[1,2],[3,3],[1,2]],[[1,0],[1,1],[2,2],[1,30],[2,2],[1,1],[8,10],[7,1],[1,0],[4,1],[5,2]],[[1,0],[3,1],[1,4],[2,1],[1,5],[3,1],[1,5],[3,1],[1,5],[7,1],[1,0]],[[1,0],[3,1],[1,31],[3,5],[3,1],[1,5],[3,1],[1,5],[7,1],[1,0]],[[1,0],[3,1],[1,5],[6,1],[1,5],[3,1],[1,5],[7,1],[1,0]],[[1,0],[3,1],[1,5],[6,1],[1,5],[3,1],[1,5],[7,1],[1,0]],[[1,0],[3,1],[8,5],[3,1],[1,5],[7,1],[1,0]],[[1,0],[3,1],[1,5],[10,1],[1,5],[7,1],[1,0]],[[1,0],[3,1],[1,5],[2,1],[8,10],[1,5],[7,10],[1,0]],[[1,0],[3,1],[12,5],[7,1],[1,0]],[[24,0]]]}, + {"width":120,"source":"stateDiagram-v2\n direction TB\n state Outer {\n state Inner {\n A --> B: down\n B --> A: up\n note right of B: note\n }\n }","height":18,"lines":["╭─ Outer ───────────────╮","│ │","│ ╭─ Inner ───────────╮ │","│ │ │ │","│ │ ╭───╮ │ │","│ │▶│ A │ │ │","│ ││╰─┬─╯ │ │","│ ││ │ │ │","│ ││ │ down │ │","│ ││ │ │ │","│ ││ ▼ │ │","│ ││╭───╮ ╔══════╗ │ │","│ │╰┤ B │════╣ note ║ │ │","│ │ ╰───╯ ╚══════╝ │ │","│ │up │ │","│ ╰───────────────────╯ │","│ │","╰───────────────────────╯"],"runs":[[[2,0],[7,0],[16,0]],[[1,0],[23,1],[1,0]],[[1,0],[1,1],[2,0],[7,0],[12,0],[1,1],[1,0]],[[1,0],[1,1],[1,0],[19,1],[1,0],[1,1],[1,0]],[[1,0],[1,1],[1,0],[1,1],[5,2],[13,1],[1,0],[1,1],[1,0]],[[1,0],[1,1],[1,0],[1,5],[1,2],[3,3],[1,2],[13,1],[1,0],[1,1],[1,0]],[[1,0],[1,1],[1,0],[1,5],[2,2],[1,30],[2,2],[13,1],[1,0],[1,1],[1,0]],[[1,0],[1,1],[1,0],[1,5],[2,1],[1,4],[15,1],[1,0],[1,1],[1,0]],[[1,0],[1,1],[1,0],[1,5],[2,1],[1,31],[6,10],[9,1],[1,0],[1,1],[1,0]],[[1,0],[1,1],[1,0],[1,5],[2,1],[1,5],[15,1],[1,0],[1,1],[1,0]],[[1,0],[1,1],[1,0],[1,5],[2,1],[1,5],[15,1],[1,0],[1,1],[1,0]],[[1,0],[1,1],[1,0],[1,31],[5,2],[4,1],[8,0],[1,1],[1,0],[1,1],[1,0]],[[1,0],[1,1],[1,0],[1,4],[1,30],[3,3],[1,2],[1,0],[1,0],[1,0],[1,0],[1,0],[1,1],[4,32],[1,1],[1,0],[1,1],[1,0],[1,1],[1,0]],[[1,0],[1,1],[1,0],[1,1],[5,2],[4,1],[8,0],[1,1],[1,0],[1,1],[1,0]],[[1,0],[1,1],[1,0],[3,10],[16,1],[1,0],[1,1],[1,0]],[[1,0],[1,1],[21,0],[1,1],[1,0]],[[1,0],[23,1],[1,0]],[[25,0]]]}, + {"width":120,"source":"stateDiagram-v2\n direction LR\n state Session {\n [*] --> Open\n state Open {\n [*] --> Clean\n }\n }\n [*] --> Session: hydrate","height":11,"lines":[" ╭─ Session ─────╮"," │ │"," │ ╭─ Open ────╮ │"," │ │ │ │"," hydrate│ │ ╭───────╮ │ │","●────────────▶│ Clean │ │ │"," │ │ ╰───────╯ │ │"," │ │ │ │"," │ ╰───────────╯ │"," │ │"," ╰───────────────╯"],"runs":[[[10,1],[2,0],[9,0],[6,0]],[[10,1],[1,0],[15,1],[1,0]],[[10,1],[1,0],[1,1],[2,0],[6,0],[5,0],[1,1],[1,0]],[[10,1],[1,0],[1,1],[1,0],[11,1],[1,0],[1,1],[1,0]],[[2,1],[8,10],[1,0],[1,1],[1,0],[1,1],[9,2],[1,1],[1,0],[1,1],[1,0]],[[1,12],[13,5],[1,2],[7,3],[1,2],[1,1],[1,0],[1,1],[1,0]],[[10,1],[1,0],[1,1],[1,0],[1,1],[9,2],[1,1],[1,0],[1,1],[1,0]],[[10,1],[1,0],[1,1],[1,0],[11,1],[1,0],[1,1],[1,0]],[[10,1],[1,0],[1,1],[13,0],[1,1],[1,0]],[[10,1],[1,0],[15,1],[1,0]],[[10,1],[17,0]]]}, + {"width":120,"source":"stateDiagram-v2\n direction TB\n state One <<choice>>\n state Two <<choice>>\n state Three <<choice>>\n One --> Two: clockwise\n Two --> Three: clockwise\n Three --> One: clockwise","height":15,"lines":["◆◀──╮","│ │","│ │clockwise ","│ │","│ │","│ │","▼ │","◆ │ clockwise ","│ │","│ │clockwise ","│ │","│ │","│ │","▼ │","◆───╯"],"runs":[[[1,12],[4,5]],[[1,5],[3,1],[1,5]],[[1,5],[3,1],[1,5],[10,10]],[[1,5],[3,1],[1,5]],[[1,5],[3,1],[1,5]],[[1,5],[3,1],[1,5]],[[1,5],[3,1],[1,5]],[[1,12],[3,1],[1,5],[11,10]],[[1,5],[3,1],[1,5]],[[1,5],[3,1],[1,5],[10,10]],[[1,5],[3,1],[1,5]],[[1,5],[3,1],[1,5]],[[1,5],[3,1],[1,5]],[[1,5],[3,1],[1,5]],[[1,12],[4,5]]]}, + {"width":120,"source":"stateDiagram-v2\n direction LR\n A --> B: ab\n A --> C: ac\n A --> D: ad\n B --> A: ba\n B --> C: bc\n B --> D: bd\n C --> A: ca\n C --> B: cb\n C --> D: cd\n D --> A: da\n D --> B: db\n D --> C: dc","height":25,"lines":[" ╭───╮"," │ A │◀──────────────╮"," ╰┬──╯ad │"," ba ab │ ▲ da │"," ╭─────────────────┼─┼───────────────╮│"," ▼ ╭─────────────────┤ ca ▼│","╭──┴╮ bc ac ╭──┴╮ cd ╭─┴─╮","│ B ├────────────▶│ C ├────────────▶│ D │","╰─┬─╯ ╰─┬─╯ ╰─┬─╯"," ▲│ ▲│ │▲"," ││ ││ ││"," ││ cb ││ ││"," ├┼────────────────┼╯ ││"," ││ │ ││"," ││ │ ││"," ││ │ ││"," ││ │ ││"," ││ │ dc ││"," ││ ╰──────────────────┤│"," ││ ││"," ││ db ││"," ╰┼───────────────────────────────────╯│"," │ │"," │ bd │"," ╰────────────────────────────────────╯"],"runs":[[[18,1],[5,2]],[[18,1],[1,2],[3,3],[1,2],[16,5]],[[18,1],[1,2],[1,30],[3,2],[3,10],[12,1],[1,5]],[[10,1],[8,10],[1,1],[1,4],[1,1],[1,5],[3,1],[4,10],[9,1],[1,5]],[[1,1],[18,5],[1,31],[1,5],[1,31],[16,5],[1,31]],[[1,1],[1,5],[1,1],[1,4],[1,31],[16,5],[1,4],[1,1],[4,10],[10,1],[1,5],[1,4]],[[3,2],[1,30],[1,2],[4,1],[4,10],[1,1],[4,10],[3,2],[1,30],[1,2],[4,1],[4,10],[5,1],[2,2],[1,30],[2,2]],[[1,2],[3,3],[1,30],[1,4],[1,31],[11,5],[1,2],[3,3],[1,30],[1,4],[1,31],[11,5],[1,2],[3,3],[1,2]],[[2,2],[1,30],[2,2],[13,1],[2,2],[1,30],[2,2],[13,1],[2,2],[1,30],[2,2]],[[1,1],[1,5],[1,4],[16,1],[1,5],[1,4],[17,1],[1,4],[1,5]],[[1,1],[1,5],[1,31],[16,1],[1,5],[1,31],[17,1],[1,31],[1,5]],[[1,1],[2,5],[5,1],[4,10],[7,1],[2,5],[17,1],[2,5]],[[1,1],[20,5],[17,1],[2,5]],[[1,1],[2,5],[16,1],[1,5],[18,1],[2,5]],[[1,1],[2,5],[16,1],[1,5],[18,1],[2,5]],[[1,1],[2,5],[16,1],[1,5],[18,1],[2,5]],[[1,1],[2,5],[16,1],[1,5],[18,1],[2,5]],[[1,1],[2,5],[16,1],[1,5],[6,1],[4,10],[8,1],[2,5]],[[1,1],[2,5],[16,1],[21,5]],[[1,1],[2,5],[35,1],[2,5]],[[1,1],[2,5],[14,1],[4,10],[17,1],[2,5]],[[1,1],[39,5]],[[2,1],[1,5],[36,1],[1,5]],[[2,1],[1,5],[15,1],[4,10],[17,1],[1,5]],[[2,1],[38,5]]]}, + {"width":120,"source":"stateDiagram-v2\n direction TB\n state \"Alpha\" as A\n state \"Beta\" as B\n state \"Gamma store\" as C\n state \"Delta notifier\" as D\n A --> B\n A --> C\n A --> D\n B --> A: back\n B --> D: across","height":13,"lines":["╭───────╮","│ Alpha │◀","╰───┬───╯│"," │ │"," ├────┼──────────────────┬─────────────────────────────╮"," │ │ back │ │"," ▼ │ ▼ ▼","╭──────╮ │ ╭─────────────╮ ╭────────────────╮","│ Beta ├┬╯ │ Gamma store │ ▶│ Delta notifier │","╰──────╯│ ╰─────────────╯ │╰────────────────╯"," ╰───────────────────────────────────────╯",""," across "],"runs":[[[9,2]],[[1,2],[7,3],[1,2],[1,5]],[[4,2],[1,30],[4,2],[1,5]],[[4,1],[1,4],[4,1],[1,5]],[[4,1],[1,31],[54,5]],[[4,1],[1,5],[4,1],[1,5],[6,10],[12,1],[1,5],[29,1],[1,5]],[[4,1],[1,5],[4,1],[1,5],[18,1],[1,5],[29,1],[1,5]],[[8,2],[1,1],[1,5],[11,1],[15,2],[13,1],[18,2]],[[1,2],[6,3],[1,30],[1,4],[1,31],[11,1],[1,2],[13,3],[1,2],[12,1],[1,5],[1,2],[16,3],[1,2]],[[8,2],[1,31],[12,1],[15,2],[12,1],[1,5],[18,2]],[[8,1],[41,5]],[],[[24,1],[8,10]]]}, + {"width":120,"source":"stateDiagram-v2\n A --> B: first<br/>line two\n A --> B: second<br/>another line\n B --> A: return<br/>with details","height":11,"lines":[" return ","╭───╮ with details ","│ A ├───╮","╰┬──╯ │"," │ ▲ │ second "," │ │ │ another line "," ▼ │ │","╭──┴╮ │","│ B │◀──╯","╰───╯ first "," line two "],"runs":[[[5,1],[8,10]],[[5,2],[14,10]],[[1,2],[3,3],[1,30],[1,4],[1,31],[2,5]],[[1,2],[1,30],[3,2],[3,1],[1,5]],[[1,1],[1,4],[1,1],[1,5],[4,1],[1,5],[8,10]],[[1,1],[1,31],[1,1],[1,31],[4,1],[1,5],[14,10]],[[1,1],[1,5],[1,1],[1,4],[4,1],[1,5]],[[3,2],[1,30],[1,2],[3,1],[1,5]],[[1,2],[3,3],[1,2],[4,5]],[[5,2],[7,10]],[[5,1],[10,10]]]}, + {"width":120,"source":"stateDiagram-v2\n direction LR\n state Runtime {\n A --> B: advance\n B --> C: continue\n C --> D: finish\n C --> A: reset A\n D --> B: reset B\n }","height":16,"lines":["╭─ Runtime ───────────────────────────────────────────────────╮","│ ╭──────────────────────────────────╮ │","│ │ │ │","│ │ │ │","│ │ │ │","│ ▼ reset B │ │","│ ╭───╮ advance ╭───╮ continue ╭───╮ finish ╭─┴─╮ │","│ │ A ├────────────▶│ B ├────────────▶│ C ├────────────▶│ D │ │","│ ╰───╯ ╰───╯ ╰─┬─╯ ╰───╯ │","│ ▲ │ │","│ │ │ │","│ │ │ │","│ │ │ │","│ │ reset A │ │","│ ╰────────────────────────────────────╯ │","╰─────────────────────────────────────────────────────────────╯"],"runs":[[[2,0],[9,0],[52,0]],[[1,0],[22,1],[36,5],[3,1],[1,0]],[[1,0],[22,1],[1,5],[34,1],[1,5],[3,1],[1,0]],[[1,0],[22,1],[1,5],[34,1],[1,5],[3,1],[1,0]],[[1,0],[22,1],[1,5],[34,1],[1,31],[3,1],[1,0]],[[1,0],[22,1],[1,5],[12,1],[9,10],[13,1],[1,4],[3,1],[1,0]],[[1,0],[1,1],[5,2],[1,1],[9,10],[3,1],[5,2],[1,1],[10,10],[2,1],[5,2],[2,1],[8,10],[3,1],[2,2],[1,30],[2,2],[1,1],[1,0]],[[1,0],[1,1],[1,2],[3,3],[1,30],[1,4],[1,31],[11,5],[1,2],[3,3],[1,30],[1,4],[1,31],[11,5],[1,2],[3,3],[1,30],[1,4],[1,31],[11,5],[1,2],[3,3],[1,2],[1,1],[1,0]],[[1,0],[1,1],[5,2],[13,1],[5,2],[13,1],[2,2],[1,30],[2,2],[13,1],[5,2],[1,1],[1,0]],[[1,0],[2,1],[1,5],[36,1],[1,4],[21,1],[1,0]],[[1,0],[2,1],[1,5],[36,1],[1,31],[21,1],[1,0]],[[1,0],[2,1],[1,5],[36,1],[1,5],[21,1],[1,0]],[[1,0],[2,1],[1,5],[36,1],[1,5],[21,1],[1,0]],[[1,0],[2,1],[1,5],[13,1],[9,10],[14,1],[1,5],[21,1],[1,0]],[[1,0],[2,1],[38,5],[21,1],[1,0]],[[63,0]]]}, + {"width":120,"source":"stateDiagram-v2\n direction LR\n A --> B: advance\n B --> C: continue\n C --> D: finish\n C --> A: reset A\n D --> B: reset B\n note right of B : note beside B","height":14,"lines":[" ╔═══════════════╗"," ╔═════════╣ note beside B ║"," ║ ╚═══════════════╝"," ║"," ║ reset B "," ║"," ║ ▼──────────────────────────────────╮","╭───╮ advance ║╭───╮ continue ╭───╮ finish ╭─┴─╮","│ A ├────────────▶│ B ├────────────▶│ C ├────────────▶│ D │","╰───╯ ╰───╯ ╰─┬─╯ ╰───╯"," ▲ │"," │ │"," │ reset A │"," ╰────────────────────────────────────╯"],"runs":[[[27,1],[17,0]],[[17,1],[7,0],[1,0],[1,0],[1,0],[1,0],[1,1],[13,32],[1,1],[1,0]],[[17,1],[1,0],[9,1],[17,0]],[[17,1],[1,0]],[[17,1],[1,0],[16,1],[9,10]],[[17,1],[1,0]],[[17,1],[1,0],[3,1],[34,5],[1,31],[1,4]],[[5,2],[1,1],[9,10],[2,1],[1,0],[5,2],[1,1],[10,10],[2,1],[5,2],[2,1],[8,10],[3,1],[2,2],[1,30],[2,2]],[[1,2],[3,3],[1,30],[1,4],[1,31],[11,5],[1,2],[3,3],[1,30],[1,4],[1,31],[11,5],[1,2],[3,3],[1,30],[1,4],[1,31],[11,5],[1,2],[3,3],[1,2]],[[5,2],[13,1],[5,2],[13,1],[2,2],[1,30],[2,2],[13,1],[5,2]],[[1,1],[1,5],[36,1],[1,4]],[[1,1],[1,5],[36,1],[1,31]],[[1,1],[1,5],[13,1],[9,10],[14,1],[1,5]],[[1,1],[38,5]]]}, + {"width":120,"source":"stateDiagram-v2\n direction LR\n A --> B: proceed only after validation\n note left of B: blocking note","height":5,"lines":[" ╭────────────────────────────────▼","╭───╮│ ╔═══════════════╗ ╭───╮","│ A ├╯ ║ blocking note ╠════│ B │","╰───╯ ╚═══════════════╝ ╰───╯"," proceed only after validation "],"runs":[[[5,1],[34,5]],[[5,2],[1,31],[9,1],[17,0],[4,1],[5,2]],[[1,2],[3,3],[1,30],[1,4],[9,1],[1,0],[1,1],[13,32],[1,1],[1,0],[1,0],[1,0],[1,0],[1,0],[1,2],[3,3],[1,2]],[[5,2],[10,1],[17,0],[4,1],[5,2]],[[5,1],[31,10]]]}, + {"width":120,"source":"stateDiagram-v2\n direction LR\n A --> B: advance\n B --> C: continue\n note right of B: first note\n note right of B: second note\n note left of C: left note","height":17,"lines":[" ╔═══════════╗"," ║ left note ╠═════════╗"," ╚═══════════╝ ║"," ║"," ╔════════════╗║"," ╔═══╣ first note ║║"," ║ ╚════════════╝║"," ║ ║"," ║ ║","╭───╮ advance ╭───╮ continue ╭───╮║","│ A ├────────────▶│ B ├────────────▶│ C │","╰───╯ ╰───╯ ╰───╯"," ║"," ║"," ║ ╔═════════════╗"," ╚═══╣ second note ║"," ╚═════════════╝"],"runs":[[[19,1],[13,0]],[[19,1],[1,0],[1,1],[9,32],[1,1],[1,0],[1,0],[1,0],[1,0],[7,0]],[[19,1],[13,0],[9,1],[1,0]],[[41,1],[1,0]],[[27,1],[14,0],[1,0]],[[23,1],[1,0],[1,0],[1,0],[1,0],[1,0],[1,1],[10,32],[1,1],[1,0],[1,0]],[[23,1],[1,0],[3,1],[14,0],[1,0]],[[23,1],[1,0],[17,1],[1,0]],[[23,1],[1,0],[17,1],[1,0]],[[5,2],[1,1],[9,10],[3,1],[5,2],[1,1],[10,10],[2,1],[5,2],[1,0]],[[1,2],[3,3],[1,30],[1,4],[1,31],[11,5],[1,2],[3,3],[1,30],[1,4],[1,31],[11,5],[1,2],[3,3],[1,2]],[[5,2],[13,1],[5,2],[13,1],[5,2]],[[23,1],[1,0]],[[23,1],[1,0]],[[23,1],[1,0],[3,1],[15,0]],[[23,1],[1,0],[1,0],[1,0],[1,0],[1,0],[1,1],[11,32],[1,1],[1,0]],[[27,1],[15,0]]]}, + {"width":120,"source":"stateDiagram-v2\n direction TB\n state \"Processing Ω<br/>phase two\" as Processing\n state \"Result ≥ threshold\" as Result\n Ready --> Processing: first\n Ready --> Processing: duplicate\n Processing --> Ready: restore\n Processing --> Processing: heartbeat\n Processing --> Result: result ≥ 1\n Result --> Ready: reopen\n note right of Processing: Unicode note 界","height":12,"lines":["╭──────────────╮","│ Processing Ω │ ╔═════════════════╗","│ phase two │════╣ Unicode note 界 ║","╰────┬──┬──────╯ ╚═════════════════╝"," │ │──▲──────────────────────╮ duplicate "," ╰──┴──┼──────────────────────┼────╮"," heartbeat │ first │ │"," ▼restore │ ▼","╭────────────────────╮ reopen │╭───────╮","│ Result ≥ threshold ├────────────▶┤ Ready │","╰────────────────────╯ ╰───────╯"," result ≥ 1 "],"runs":[[[16,2]],[[1,2],[14,3],[1,2],[4,1],[19,0]],[[1,2],[14,3],[1,2],[1,0],[1,0],[1,0],[1,0],[1,0],[1,1],[14,32],[1,1],[1,0]],[[5,2],[1,30],[2,2],[1,30],[7,2],[4,1],[19,0]],[[5,1],[1,4],[2,1],[1,4],[26,5],[4,1],[11,10]],[[5,1],[1,31],[2,5],[1,31],[31,5]],[[11,10],[1,5],[15,1],[7,10],[1,5],[4,1],[1,5]],[[11,1],[1,5],[8,10],[14,1],[1,5],[4,1],[1,5]],[[22,2],[2,1],[8,10],[2,1],[1,31],[9,2]],[[1,2],[20,3],[1,30],[1,4],[1,31],[11,5],[1,30],[7,3],[1,2]],[[22,2],[13,1],[9,2]],[[9,1],[12,10]]]}, + {"width":120,"source":"stateDiagram-v2\n direction LR\n state \"Open document\" as Open {\n [*] --> Clean: load\n Clean --> Dirty: edit\n Dirty --> Clean: save\n }\n note right of Dirty: unsaved changes","height":12,"lines":["╭─ Open document ──────────────────────────────────────────────────────╮","│ │","│ load ╭───────╮ edit ╭───────╮ ╔═════════════════╗ │","│ ─────────────▶│ Clean ├────────────▶│ Dirty │════╣ unsaved changes ║ │","│ ╰───────╯ ╰───┬───╯ ╚═════════════════╝ │","│ ▲ │ │","│ │ │ │","│ │ │ │","│ │ │ │","│ │ save │ │","│ ╰────────────────────────╯ │","╰──────────────────────────────────────────────────────────────────────╯"],"runs":[[[2,0],[15,0],[55,0]],[[1,0],[70,1],[1,0]],[[1,0],[5,1],[6,10],[4,1],[9,2],[3,1],[6,10],[4,1],[9,2],[4,1],[19,0],[1,1],[1,0]],[[1,0],[1,1],[14,5],[1,2],[7,3],[1,30],[1,4],[1,31],[11,5],[1,2],[7,3],[1,2],[1,0],[1,0],[1,0],[1,0],[1,0],[1,1],[15,32],[1,1],[1,0],[1,1],[1,0]],[[1,0],[15,1],[9,2],[13,1],[4,2],[1,30],[4,2],[4,1],[19,0],[1,1],[1,0]],[[1,0],[16,1],[1,5],[24,1],[1,4],[28,1],[1,0]],[[1,0],[16,1],[1,5],[24,1],[1,31],[28,1],[1,0]],[[1,0],[16,1],[1,5],[24,1],[1,5],[28,1],[1,0]],[[1,0],[16,1],[1,5],[24,1],[1,5],[28,1],[1,0]],[[1,0],[16,1],[1,5],[8,1],[6,10],[10,1],[1,5],[28,1],[1,0]],[[1,0],[16,1],[26,5],[28,1],[1,0]],[[72,0]]]}, + {"width":120,"source":"stateDiagram-v2\n direction LR\n A --> B\n B --> C\n C --> D\n C --> A: ca\n D --> B: db1\n D --> B: db2","height":13,"lines":[" ╭──────────────────────────────────╮"," │ │"," │ │"," ├──────────────────────────────────┤"," │ │"," ▼ │","╭───╮ ╭───╮ db1 ╭───╮ db2 ╭─┴─╮","│ A ├────────────▶│ B ├────────────▶│ C ├────────────▶│ D │","╰───╯ ╰───╯ ╰─┬─╯ ╰───╯"," ▲ │"," │ │"," │ ca │"," ╰────────────────────────────────────╯"],"runs":[[[21,1],[36,5]],[[21,1],[1,5],[34,1],[1,5]],[[21,1],[1,5],[34,1],[1,5]],[[21,1],[36,5]],[[21,1],[1,5],[34,1],[1,31]],[[21,1],[1,5],[34,1],[1,4]],[[5,2],[13,1],[5,2],[8,1],[5,10],[5,2],[5,10],[8,1],[2,2],[1,30],[2,2]],[[1,2],[3,3],[1,30],[1,4],[1,31],[11,5],[1,2],[3,3],[1,30],[1,4],[1,31],[11,5],[1,2],[3,3],[1,30],[1,4],[1,31],[11,5],[1,2],[3,3],[1,2]],[[5,2],[13,1],[5,2],[13,1],[2,2],[1,30],[2,2],[13,1],[5,2]],[[1,1],[1,5],[36,1],[1,4]],[[1,1],[1,5],[36,1],[1,31]],[[1,1],[1,5],[15,1],[4,10],[17,1],[1,5]],[[1,1],[38,5]]]}, + {"width":120,"source":"\nstateDiagram-v2\n direction LR\n state Authenticated {\n [*] --> Idle\n Idle --> Editing: open\n Editing --> [*]: save\n }\n","height":7,"lines":["╭─ Authenticated ──────────────────────────────────────────────╮","│ │","│ ╭──────╮ open ╭─────────╮ save │","│ ─────────────▶│ Idle ├────────────▶│ Editing ├────────────── │","│ ╰──────╯ ╰─────────╯ │","│ │","╰──────────────────────────────────────────────────────────────╯"],"runs":[[[2,0],[15,0],[47,0]],[[1,0],[62,1],[1,0]],[[1,0],[15,1],[8,2],[3,1],[6,10],[4,1],[11,2],[3,1],[6,10],[6,1],[1,0]],[[1,0],[1,1],[14,5],[1,2],[6,3],[1,30],[1,4],[1,31],[11,5],[1,2],[9,3],[1,30],[1,4],[1,31],[12,5],[1,1],[1,0]],[[1,0],[15,1],[8,2],[13,1],[11,2],[15,1],[1,0]],[[1,0],[62,1],[1,0]],[[64,0]]]}, + {"width":120,"source":"\nstateDiagram-v2\n direction LR\n [*] --> Authenticated: login\n state Authenticated {\n [*] --> Idle\n Idle --> Editing: open\n Editing --> [*]: save\n }\n Authenticated --> [*]: logout\n","height":7,"lines":[" ╭─ Authenticated ──────────────────╮"," │ │ save "," login │ ╭──────╮ open ╭─────────╮ │ logout ","●────────────▶│ Idle ├────────────▶│ Editing ├────────────▶◎"," │ ╰──────╯ ╰─────────╯ │"," │ │"," ╰──────────────────────────────────╯"],"runs":[[[12,1],[2,0],[15,0],[19,0]],[[12,1],[1,0],[34,1],[1,0],[6,10]],[[3,1],[7,10],[2,1],[1,0],[1,1],[8,2],[3,1],[6,10],[4,1],[11,2],[1,1],[1,0],[8,10]],[[1,12],[13,5],[1,2],[6,3],[1,30],[1,4],[1,31],[11,5],[1,2],[9,3],[1,30],[1,4],[1,31],[11,5],[1,12]],[[12,1],[1,0],[1,1],[8,2],[13,1],[11,2],[1,1],[1,0]],[[12,1],[1,0],[34,1],[1,0]],[[12,1],[36,0]]]}, + {"width":120,"source":"stateDiagram-v2\n state Session {\n [*] --> Open\n state Open {\n [*] --> Clean\n Clean --> Dirty: edit\n Dirty --> Clean: save\n }\n note right of Open: document lifecycle\n Open --> [*]: close\n }\n [*] --> Session\n Session --> [*]","height":18,"lines":[" ╭─ Session ─────────────────────────────────────────────────────╮"," │ │"," │ ╭─ Open ──────────────────────────╮ │"," │ │ │ │"," │ │ ╭───────╮ edit ╭───────╮ │ ╔════════════════════╗ │","●────────────▶│ Clean ├────────────▶│ Dirty │ │════╣ document lifecycle ║ │"," │ │ ╰───────╯ ╰───┬───╯ │ ╚════════════════════╝ │"," │ │ ▲ │ │ │"," │ │ │ │ │ │"," │ │ │ │ ├────────────────────────────────────╮ close "," │ │ │ │ │ │ ◎◀──╯"," │ │ │ │ │ │"," │ │ │ │ │ │"," │ │ │ save │ │ │"," │ │ ╰────────────────────────╯ │ │"," │ ╰─────────────────────────────────╯ │"," │ │"," ╰───────────────────────────────────────────────────────────────╯"],"runs":[[[10,1],[2,0],[9,0],[54,0]],[[10,1],[1,0],[63,1],[1,0]],[[10,1],[1,0],[1,1],[2,0],[6,0],[27,0],[27,1],[1,0]],[[10,1],[1,0],[1,1],[1,0],[33,1],[1,0],[27,1],[1,0]],[[10,1],[1,0],[1,1],[1,0],[1,1],[9,2],[3,1],[6,10],[4,1],[9,2],[1,1],[1,0],[4,1],[22,0],[1,1],[1,0]],[[1,12],[13,5],[1,2],[7,3],[1,30],[1,4],[1,31],[11,5],[1,2],[7,3],[1,2],[1,1],[1,0],[1,0],[1,0],[1,0],[1,0],[1,0],[1,1],[18,32],[1,1],[1,0],[1,1],[1,0]],[[10,1],[1,0],[1,1],[1,0],[1,1],[9,2],[13,1],[4,2],[1,30],[4,2],[1,1],[1,0],[4,1],[22,0],[1,1],[1,0]],[[10,1],[1,0],[1,1],[1,0],[2,1],[1,5],[24,1],[1,4],[5,1],[1,0],[27,1],[1,0]],[[10,1],[1,0],[1,1],[1,0],[2,1],[1,5],[24,1],[1,31],[5,1],[1,0],[27,1],[1,0]],[[10,1],[1,0],[1,1],[1,0],[2,1],[1,5],[24,1],[1,5],[5,1],[38,5],[7,10]],[[10,1],[1,0],[1,1],[1,0],[2,1],[1,5],[24,1],[1,5],[5,1],[1,0],[27,1],[1,0],[4,1],[1,12],[4,5]],[[10,1],[1,0],[1,1],[1,0],[2,1],[1,5],[24,1],[1,5],[5,1],[1,0],[27,1],[1,0]],[[10,1],[1,0],[1,1],[1,0],[2,1],[1,5],[24,1],[1,5],[5,1],[1,0],[27,1],[1,0]],[[10,1],[1,0],[1,1],[1,0],[2,1],[1,5],[8,1],[6,10],[10,1],[1,5],[5,1],[1,0],[27,1],[1,0]],[[10,1],[1,0],[1,1],[1,0],[2,1],[26,5],[5,1],[1,0],[27,1],[1,0]],[[10,1],[1,0],[1,1],[35,0],[27,1],[1,0]],[[10,1],[1,0],[63,1],[1,0]],[[10,1],[65,0]]]}, + {"width":120,"source":"\nstateDiagram-v2\n direction LR\n [*] --> Idle\n Idle --> Loading: submit\n note right of Loading : waits for response\n","height":3,"lines":[" ╭──────╮ submit ╭─────────╮ ╔════════════════════╗","●────────────▶│ Idle ├────────────▶│ Loading │════╣ waits for response ║"," ╰──────╯ ╰─────────╯ ╚════════════════════╝"],"runs":[[[14,1],[8,2],[2,1],[8,10],[3,1],[11,2],[4,1],[22,0]],[[1,12],[13,5],[1,2],[6,3],[1,30],[1,4],[1,31],[11,5],[1,2],[9,3],[1,2],[1,0],[1,0],[1,0],[1,0],[1,0],[1,1],[18,32],[1,1],[1,0]],[[14,1],[8,2],[13,1],[11,2],[4,1],[22,0]]]}, + {"width":120,"source":"stateDiagram-v2\n [*] --> Authenticated\n state Authenticated {\n [*] --> Editing\n Editing --> Ready\n }\n note right of Editing\n Draft changes\n end note\n Authenticated --> Decision\n state Decision <<choice>>\n Decision --> [*]","height":13,"lines":[" ╭─ Authenticated ───────────────────╮"," │ ╔═══════════════╗ │"," │ ╔═══╣ Draft changes ║ │"," │ ║ ╚═══════════════╝ │"," │ ║ │"," │ ║ │"," │ ╭─────────╮ ╭───────╮ │","●────────────▶│ Editing ├────────────▶│ Ready │ │"," │ ╰─────────╯ ╰───────╯ │"," │ │"," ╰───────────────┬───────────────────╯"," ╰─────────────▼"," ◆────────────▶◎"],"runs":[[[12,1],[2,0],[15,0],[20,0]],[[12,1],[1,0],[16,1],[17,0],[2,1],[1,0]],[[12,1],[1,0],[12,1],[1,0],[1,0],[1,0],[1,0],[1,0],[1,1],[13,32],[1,1],[1,0],[2,1],[1,0]],[[12,1],[1,0],[12,1],[1,0],[3,1],[17,0],[2,1],[1,0]],[[12,1],[1,0],[12,1],[1,0],[22,1],[1,0]],[[12,1],[1,0],[12,1],[1,0],[22,1],[1,0]],[[12,1],[1,0],[1,1],[11,2],[13,1],[9,2],[1,1],[1,0]],[[1,12],[13,5],[1,2],[9,3],[1,30],[1,4],[1,31],[11,5],[1,2],[7,3],[1,2],[1,1],[1,0]],[[12,1],[1,0],[1,1],[11,2],[13,1],[9,2],[1,1],[1,0]],[[12,1],[1,0],[35,1],[1,0]],[[12,1],[16,0],[1,5],[20,0]],[[28,1],[15,5]],[[42,1],[1,12],[13,5],[1,12]]]}, + {"width":120,"source":"stateDiagram-v2\n direction TB\n state \"Branch root\" as Root\n state \"Upper branch\" as Upper\n state \"Lower branch\" as Lower\n state \"Merged branch\" as Merge\n Root --> Upper: branch-up\n Root --> Lower: branch-down\n Upper --> Merge: merge-up\n Lower --> Merge: merge-down\n Merge --> Root: branch-feedback","height":17,"lines":[" ╭─────────────╮"," │ Branch root │◀───────────────────────────────╮"," ╰──────┬──────╯ │"," │ branch-up │"," ├────────────────────────────╮ │"," │ │ │"," ▼ branch-down ▼ │","╭──────────────╮ ╭──────────────╮ │","│ Upper branch │ │ Lower branch │ │ branch-feedback ","╰───────┬──────╯ ╰───────┬──────╯ │"," │ merge-up merge-down │ │"," ├────────────────────────────╯ │"," │ │"," ▼ │","╭───────────────╮ │","│ Merged branch ├───────────────────────────────╯","╰───────────────╯"],"runs":[[[1,1],[15,2]],[[1,1],[1,2],[13,3],[1,2],[33,5]],[[1,1],[7,2],[1,30],[7,2],[32,1],[1,5]],[[8,1],[1,4],[11,10],[28,1],[1,5]],[[8,1],[1,31],[29,5],[10,1],[1,5]],[[8,1],[1,5],[28,1],[1,5],[10,1],[1,5]],[[8,1],[1,5],[13,10],[15,1],[1,5],[10,1],[1,5]],[[16,2],[13,1],[16,2],[3,1],[1,5]],[[1,2],[14,3],[1,2],[13,1],[1,2],[14,3],[1,2],[3,1],[1,5],[17,10]],[[8,2],[1,30],[7,2],[13,1],[8,2],[1,30],[7,2],[3,1],[1,5]],[[8,1],[1,4],[10,10],[5,1],[12,10],[1,1],[1,4],[10,1],[1,5]],[[8,1],[29,5],[1,31],[10,1],[1,5]],[[8,1],[1,5],[39,1],[1,5]],[[8,1],[1,5],[39,1],[1,5]],[[17,2],[31,1],[1,5]],[[1,2],[15,3],[1,30],[1,4],[1,31],[30,5]],[[17,2]]]}, + {"width":120,"source":"stateDiagram-v2\n direction TB\n [*] --> Root\n Root --> A\n Root --> B\n A --> Merge\n B --> Merge\n Merge --> A: retry","height":22,"lines":[" ●"," │"," │"," │"," ▼","╭──────╮","│ Root │","╰───┬──╯"," │"," ╭─┴───────────────╮"," │ │"," ▼▼─────╮ ▼","╭───╮ │ ╭───╮","│ A │ │ │ B │","╰─┬─╯ │ ╰─┬─╯"," │ │ │"," ╰─┬────┼──────────╯"," │ │ retry "," ▼ │","╭───────╮│","│ Merge ├╯","╰───────╯"],"runs":[[[4,1],[1,12]],[[4,1],[1,5]],[[4,1],[1,5]],[[4,1],[1,5]],[[4,1],[1,5]],[[8,2]],[[1,2],[6,3],[1,2]],[[4,2],[1,30],[3,2]],[[4,1],[1,4]],[[2,1],[2,5],[1,31],[16,5]],[[2,1],[1,5],[17,1],[1,5]],[[2,1],[8,5],[10,1],[1,5]],[[5,2],[4,1],[1,5],[8,1],[5,2]],[[1,2],[3,3],[1,2],[4,1],[1,5],[8,1],[1,2],[3,3],[1,2]],[[2,2],[1,30],[2,2],[4,1],[1,5],[8,1],[2,2],[1,30],[2,2]],[[2,1],[1,4],[6,1],[1,5],[10,1],[1,4]],[[2,1],[1,31],[17,5],[1,31]],[[4,1],[1,5],[4,1],[1,5],[7,10]],[[4,1],[1,5],[4,1],[1,5]],[[9,2],[1,31]],[[1,2],[7,3],[1,30],[1,4]],[[9,2]]]}, + {"width":120,"source":"stateDiagram-v2\n [*] --> Idle\n Idle --> MailboxPending: enqueue + setAlarm\n MailboxPending --> PromptSubmitted: drain mailbox\n PromptSubmitted --> Polling: prompt admitted\n Polling --> Polling: execution still active\n Polling --> Completed: terminal log event\n Polling --> Polling: retry after transient failure\n Completed --> Idle: final Slack projection\n Idle --> Expired: 30 days inactive\n Expired --> [*]: delete SQLite state","height":39,"lines":[" ●"," │"," │"," │"," ▼"," ╭──────╮"," │ Idle │◀──────────────────────────────────╮"," ╰───┬──╯ │"," │ enqueue + setAlarm │"," ╰──┬──────────────────────────╮ │"," │ │ │"," ▼30 days inactive ▼ │","╭────────────────╮ ╭─────────╮ │","│ MailboxPending │ │ Expired │ │","╰────────┬───────╯ ╰────┬────╯ │"," │ │ │"," │ drain mailbox │ │"," │ ╭───╯ │"," ▼ delete SQLite state │ │","╭─────────────────╮ ▼ │","│ PromptSubmitted │ ◎ │","╰────────┬────────╯ │ final Slack projection "," │ prompt admitted │"," ╭──╯ │"," │ │"," ▼ │"," ╭─────────╮ │"," │ Polling │ │"," ╰──┬─┬────╯ │"," │ │ ▲ ▲ execution still active │"," ├─┼──╯ │ │"," │ │ │ │"," │ │ │ retry after transient failure │"," ╰─┼──────╯ │"," │ terminal log event │"," ▼ │","╭───────────╮ │","│ Completed ├────────────────────────────────╯","╰───────────╯"],"runs":[[[6,1],[1,12]],[[6,1],[1,5]],[[6,1],[1,5]],[[6,1],[1,5]],[[6,1],[1,5]],[[2,1],[8,2]],[[2,1],[1,2],[6,3],[1,2],[36,5]],[[2,1],[4,2],[1,30],[3,2],[35,1],[1,5]],[[6,1],[1,4],[20,10],[18,1],[1,5]],[[6,1],[1,31],[30,5],[8,1],[1,5]],[[9,1],[1,5],[26,1],[1,5],[8,1],[1,5]],[[9,1],[1,5],[17,10],[9,1],[1,5],[8,1],[1,5]],[[18,2],[13,1],[11,2],[3,1],[1,5]],[[1,2],[16,3],[1,2],[13,1],[1,2],[9,3],[1,2],[3,1],[1,5]],[[9,2],[1,30],[8,2],[13,1],[5,2],[1,30],[5,2],[3,1],[1,5]],[[9,1],[1,4],[26,1],[1,4],[8,1],[1,5]],[[9,1],[1,31],[15,10],[11,1],[1,31],[8,1],[1,5]],[[9,1],[1,5],[22,1],[5,5],[8,1],[1,5]],[[9,1],[1,5],[21,10],[1,1],[1,5],[12,1],[1,5]],[[19,2],[13,1],[1,5],[12,1],[1,5]],[[1,2],[17,3],[1,2],[13,1],[1,12],[12,1],[1,5]],[[9,2],[1,30],[9,2],[26,1],[1,5],[24,10]],[[9,1],[1,4],[2,1],[17,10],[16,1],[1,5]],[[6,1],[3,5],[1,31],[35,1],[1,5]],[[6,1],[1,5],[38,1],[1,5]],[[6,1],[1,5],[38,1],[1,5]],[[1,1],[11,2],[33,1],[1,5]],[[1,1],[1,2],[9,3],[1,2],[33,1],[1,5]],[[1,1],[3,2],[1,30],[1,2],[1,30],[5,2],[33,1],[1,5]],[[4,1],[1,4],[1,1],[1,4],[2,1],[1,5],[3,1],[1,5],[24,10],[7,1],[1,5]],[[4,1],[1,31],[1,5],[1,31],[3,5],[3,1],[1,5],[31,1],[1,5]],[[4,1],[1,5],[1,1],[1,5],[6,1],[1,5],[31,1],[1,5]],[[4,1],[1,5],[1,1],[1,5],[6,1],[1,5],[31,10],[1,5]],[[4,1],[10,5],[31,1],[1,5]],[[6,1],[1,5],[20,10],[18,1],[1,5]],[[6,1],[1,5],[38,1],[1,5]],[[13,2],[32,1],[1,5]],[[1,2],[11,3],[1,30],[1,4],[1,31],[31,5]],[[13,2]]]}, + {"width":120,"source":"stateDiagram-v2\n direction LR\n state FirstGroup {\n [*] --> FirstInner\n FirstInner --> [*]: first-out\n }\n state SecondGroup {\n [*] --> SecondInner\n SecondInner --> [*]: second-out\n }\n FirstGroup --> SecondGroup: group-next\n SecondGroup --> FirstGroup: group-back","height":11,"lines":["╭─ FirstGroup ───╮ ╭─ SecondGroup ───╮","│ │first-out │ │","│ ╭────────────╮ │group-next │ ╭─────────────╮ │","│ │ FirstInner ├───────────────▶│ SecondInner │ │","│ ╰────────────╯ │ │ ╰──────┬──────╯ │","│ ▲ │ │ │ │","╰──│─────────────╯ ╰────────│────────╯"," │ │"," │ second-out │"," │ group-back │"," ╰───────────────────────────────────╯"],"runs":[[[2,0],[12,0],[4,0],[12,1],[2,0],[13,0],[4,0]],[[1,0],[16,1],[1,0],[10,10],[2,1],[1,0],[17,1],[1,0]],[[1,0],[1,1],[14,2],[1,1],[1,0],[11,10],[1,1],[1,0],[1,1],[15,2],[1,1],[1,0]],[[1,0],[1,1],[1,2],[12,3],[1,30],[1,4],[1,31],[14,5],[1,2],[13,3],[1,2],[1,1],[1,0]],[[1,0],[1,1],[14,2],[1,1],[1,0],[12,1],[1,0],[1,1],[7,2],[1,30],[7,2],[1,1],[1,0]],[[1,0],[2,1],[1,5],[13,1],[1,0],[12,1],[1,0],[8,1],[1,4],[8,1],[1,0]],[[3,0],[1,5],[14,0],[12,1],[9,0],[1,31],[9,0]],[[3,1],[1,5],[35,1],[1,5]],[[3,1],[1,5],[11,1],[12,10],[12,1],[1,5]],[[3,1],[1,5],[11,1],[12,10],[12,1],[1,5]],[[3,1],[37,5]]]}, + {"width":120,"source":"stateDiagram-v2\n direction LR\n state Outer {\n state Inner {\n A --> B: internal route\n note right of B: nested note\n }\n }\n Outer --> Done: leave composite","height":13,"lines":["╭─ Outer ───────────────────────────────────────────╮","│ │","│ ╭─ Inner ───────────────────────────────────────╮ │","│ │ │ │","│ │ ╭───╮ internal route ╭───╮ ╔═════════════╗ │ │","│ │ │ A ├───────────────▶│ B │════╣ nested note ║ ├───────────────╮","│ │ ╰───╯ ╰───╯ ╚═════════════╝ │ │ │","│ │ │ │ │","│ ╰───────────────────────────────────────────────╯ │ │ leave composite ","│ │ │","╰───────────────────────────────────────────────────╯ ╭──────╮ │"," │ Done │◀──╯"," ╰──────╯"],"runs":[[[2,0],[7,0],[44,0]],[[1,0],[51,1],[1,0]],[[1,0],[1,1],[2,0],[7,0],[40,0],[1,1],[1,0]],[[1,0],[1,1],[1,0],[47,1],[1,0],[1,1],[1,0]],[[1,0],[1,1],[1,0],[1,1],[5,2],[16,10],[5,2],[4,1],[15,0],[1,1],[1,0],[1,1],[1,0]],[[1,0],[1,1],[1,0],[1,1],[1,2],[3,3],[1,30],[1,4],[1,31],[14,5],[1,2],[3,3],[1,2],[1,0],[1,0],[1,0],[1,0],[1,0],[1,1],[11,32],[1,1],[1,0],[1,1],[17,5]],[[1,0],[1,1],[1,0],[1,1],[5,2],[16,1],[5,2],[4,1],[15,0],[1,1],[1,0],[1,1],[1,0],[13,1],[1,5]],[[1,0],[1,1],[1,0],[47,1],[1,0],[1,1],[1,0],[13,1],[1,5]],[[1,0],[1,1],[49,0],[1,1],[1,0],[13,1],[1,5],[17,10]],[[1,0],[51,1],[1,0],[13,1],[1,5]],[[53,0],[2,1],[8,2],[3,1],[1,5]],[[55,1],[1,2],[6,3],[1,2],[4,5]],[[55,1],[8,2]]]}, + {"width":120,"source":"stateDiagram-v2\n direction LR\n [*] --> Clean\n Clean --> Dirty: edit\n Dirty --> Clean: save\n Dirty --> Closing: request close\n Closing --> [*]: closed","height":7,"lines":[" ╭───────╮ edit ╭───────╮ request close ╭─────────╮ closed ","●────────────▶│ Clean ├────────────▶│ Dirty ├──────────────▶│ Closing ├────────────▶◎"," ╰───────╯ ╰───┬───╯ ╰─────────╯"," ▲ │"," │ │"," │ save │"," ╰────────────────────────╯"],"runs":[[[14,1],[9,2],[3,1],[6,10],[4,1],[9,2],[15,10],[11,2],[2,1],[8,10]],[[1,12],[13,5],[1,2],[7,3],[1,30],[1,4],[1,31],[11,5],[1,2],[7,3],[1,30],[1,4],[1,31],[13,5],[1,2],[9,3],[1,30],[1,4],[1,31],[11,5],[1,12]],[[14,1],[9,2],[13,1],[4,2],[1,30],[4,2],[15,1],[11,2]],[[15,1],[1,5],[24,1],[1,4]],[[15,1],[1,5],[24,1],[1,31]],[[15,1],[1,5],[8,1],[6,10],[10,1],[1,5]],[[15,1],[26,5]]]}, + {"width":120,"source":"stateDiagram-v2\n direction TB\n state Session {\n [*] --> Open\n state Open {\n [*] --> Clean\n Clean --> Dirty: edit\n Dirty --> Clean: save\n Dirty --> [*]\n }\n Open --> Closing: request close\n Closing --> Open: cancel\n Closing --> [*]: closed\n note right of Dirty: unsaved changes\n }\n [*] --> Session: hydrate\n Session --> [*]: release","height":28,"lines":[" ●","╭─ Session ────────────────────────────╮","│ │ hydrate │","│ ╭─ Open ───────────────────────────╮ │","│ │ ▼ │ │","│ │ ╭───────╮ │ │","│ ╭▶│ Clean │ │ │","│ ││╰───┬───╯ │ │","│ ││ │ │ │","│ ││ │ edit │ │","│ ││ │ │ │","│ ││ ▼ save │ │","│ ││╭───────╮ ╔═════════════════╗ │ │","│ │╰┤ Dirty │════╣ unsaved changes ║ │ │","│ │ ╰───┬───╯ ╚═════════════════╝ │ │","│ │ │ cancel │ │","│ │─────│────────────────────────────╯ │","│ │ │ request close │","│ │ ▼ │","│ │╭─────────╮ │","│ ╰┤ Closing │ │","│ ╰────┬────╯ │","│ │ │","╰───────│──────────────────────────────╯"," │ closed "," │ release "," ▼"," ◎"],"runs":[[[8,1],[1,12]],[[2,0],[9,0],[29,0]],[[1,0],[7,1],[1,5],[9,10],[21,1],[1,0]],[[1,0],[1,1],[2,0],[6,0],[28,0],[1,1],[1,0]],[[1,0],[1,1],[1,0],[5,1],[1,5],[28,1],[1,0],[1,1],[1,0]],[[1,0],[1,1],[1,0],[1,1],[9,2],[24,1],[1,0],[1,1],[1,0]],[[1,0],[1,1],[2,5],[1,2],[7,3],[1,2],[24,1],[1,0],[1,1],[1,0]],[[1,0],[1,1],[2,5],[4,2],[1,30],[4,2],[24,1],[1,0],[1,1],[1,0]],[[1,0],[1,1],[2,5],[4,1],[1,4],[28,1],[1,0],[1,1],[1,0]],[[1,0],[1,1],[2,5],[4,1],[1,31],[6,10],[22,1],[1,0],[1,1],[1,0]],[[1,0],[1,1],[2,5],[4,1],[1,5],[28,1],[1,0],[1,1],[1,0]],[[1,0],[1,1],[2,5],[4,1],[1,5],[6,10],[22,1],[1,0],[1,1],[1,0]],[[1,0],[1,1],[1,5],[1,31],[9,2],[4,1],[19,0],[1,1],[1,0],[1,1],[1,0]],[[1,0],[1,1],[1,5],[1,4],[1,30],[7,3],[1,2],[1,0],[1,0],[1,0],[1,0],[1,0],[1,1],[15,32],[1,1],[1,0],[1,1],[1,0],[1,1],[1,0]],[[1,0],[1,1],[1,5],[1,1],[4,2],[1,30],[4,2],[4,1],[19,0],[1,1],[1,0],[1,1],[1,0]],[[1,0],[1,1],[1,5],[5,1],[1,4],[8,10],[20,1],[1,0],[1,1],[1,0]],[[1,0],[1,1],[1,5],[5,0],[1,31],[29,0],[1,1],[1,0]],[[1,0],[1,1],[1,5],[5,1],[1,5],[15,10],[15,1],[1,0]],[[1,0],[1,1],[1,5],[5,1],[1,5],[30,1],[1,0]],[[1,0],[1,1],[1,31],[11,2],[25,1],[1,0]],[[1,0],[1,1],[1,4],[1,30],[9,3],[1,2],[25,1],[1,0]],[[1,0],[2,1],[5,2],[1,30],[5,2],[25,1],[1,0]],[[1,0],[7,1],[1,4],[30,1],[1,0]],[[8,0],[1,31],[31,0]],[[8,1],[1,5],[8,10]],[[8,1],[1,5],[9,10]],[[8,1],[1,5]],[[8,1],[1,12]]]}, + {"width":120,"source":"stateDiagram-v2\n direction TB\n [*] --> Pending\n Pending --> Decision: review\n state Decision <<choice>>\n Decision --> Approved: accept\n Decision --> Rejected: reject\n Rejected --> Pending: retry\n Approved --> [*]: complete","height":27,"lines":[" ●"," │"," │"," │"," ▼","╭─────────╮","│ Pending │◀────────────────────────────╮","╰────┬────╯ │"," │ │"," │ review │"," │ │"," ▼ │"," ◆ │"," │ │ retry "," │ │"," │ accept reject │"," ╰┬────────────────────────╮ │"," │ │ │"," ▼ ▼ │","╭──────────╮ ╭──────────╮ │","│ Approved │ │ Rejected ├───╯","╰─────┬────╯ ╰──────────╯"," │ complete "," ╭╯"," │"," ▼"," ◎"],"runs":[[[5,1],[1,12]],[[5,1],[1,5]],[[5,1],[1,5]],[[5,1],[1,5]],[[5,1],[1,5]],[[11,2]],[[1,2],[9,3],[1,2],[30,5]],[[5,2],[1,30],[5,2],[29,1],[1,5]],[[5,1],[1,4],[34,1],[1,5]],[[5,1],[1,31],[8,10],[26,1],[1,5]],[[5,1],[1,5],[34,1],[1,5]],[[5,1],[1,5],[34,1],[1,5]],[[5,1],[1,12],[34,1],[1,5]],[[5,1],[1,5],[34,1],[1,5],[7,10]],[[5,1],[1,5],[34,1],[1,5]],[[5,1],[1,5],[16,10],[18,1],[1,5]],[[5,1],[27,5],[8,1],[1,5]],[[6,1],[1,5],[24,1],[1,5],[8,1],[1,5]],[[6,1],[1,5],[24,1],[1,5],[8,1],[1,5]],[[12,2],[13,1],[12,2],[3,1],[1,5]],[[1,2],[10,3],[1,2],[13,1],[1,2],[10,3],[1,30],[1,4],[1,31],[2,5]],[[6,2],[1,30],[5,2],[13,1],[12,2]],[[6,1],[1,4],[2,1],[10,10]],[[5,1],[1,5],[1,31]],[[5,1],[1,5]],[[5,1],[1,5]],[[5,1],[1,12]]]}, + {"width":120,"source":"stateDiagram-v2\n direction TB\n [*] --> Listening\n Listening --> Listening: heartbeat\n Listening --> Listening: refresh token\n Listening --> Connected: client connected\n Connected --> Connected: received message\n Connected --> Listening: disconnected\n Connected --> [*]: shutdown","height":23,"lines":[" ●"," │"," │"," │"," ▼","╭───────────╮","│ Listening │◀──╮","╰───┬─┬─────╯ │"," │ │ ▲ ▲ │ heartbeat "," ├─┼──╯ │ │"," │ │ │ │"," │ │ │ │ refresh token "," ╰─┼──────╯ │"," │ │ client connected "," ▼ │","╭───────────╮ │ disconnected ","│ Connected ├───╯","╰───┬─┬─────╯"," │ │ ▲ received message "," ╰─┼──╯"," │ shutdown "," ▼"," ◎"],"runs":[[[6,1],[1,12]],[[6,1],[1,5]],[[6,1],[1,5]],[[6,1],[1,5]],[[6,1],[1,5]],[[13,2]],[[1,2],[11,3],[1,2],[4,5]],[[4,2],[1,30],[1,2],[1,30],[6,2],[3,1],[1,5]],[[4,1],[1,4],[1,1],[1,4],[2,1],[1,5],[3,1],[1,5],[2,1],[1,5],[11,10]],[[4,1],[1,31],[1,5],[1,31],[3,5],[3,1],[1,5],[2,1],[1,5]],[[4,1],[1,5],[1,1],[1,5],[6,1],[1,5],[2,1],[1,5]],[[4,1],[1,5],[1,1],[1,5],[6,1],[1,5],[2,1],[1,5],[15,10]],[[4,1],[10,5],[2,1],[1,5]],[[6,1],[1,5],[9,1],[1,5],[18,10]],[[6,1],[1,5],[9,1],[1,5]],[[13,2],[3,1],[1,5],[14,10]],[[1,2],[11,3],[1,30],[1,4],[1,31],[2,5]],[[4,2],[1,30],[1,2],[1,30],[6,2]],[[4,1],[1,4],[1,1],[1,4],[2,1],[1,5],[18,10]],[[4,1],[1,31],[1,5],[1,31],[3,5]],[[6,1],[1,5],[10,10]],[[6,1],[1,5]],[[6,1],[1,12]]]}, + {"width":120,"source":"stateDiagram-v2\n [*] --> Pending\n Pending --> Running\n Running --> Idle\n Running --> Interrupted\n Interrupted --> [*]","height":9,"lines":[" ╭─────────╮ ╭─────────╮ ╭──────╮","●────────────▶│ Pending ├────────────▶│ Running ├────────────▶│ Idle │"," ╰─────────╯ ╰──┬──────╯ ╰──────╯"," │"," │"," ▼"," ╭─────────────╮ ◎◀───────╮"," │ Interrupted ├──────────────────────╯"," ╰─────────────╯"],"runs":[[[14,1],[11,2],[13,1],[11,2],[13,1],[8,2]],[[1,12],[13,5],[1,2],[9,3],[1,30],[1,4],[1,31],[11,5],[1,2],[9,3],[1,30],[1,4],[1,31],[11,5],[1,2],[6,3],[1,2]],[[14,1],[11,2],[13,1],[3,2],[1,30],[7,2],[13,1],[8,2]],[[41,1],[1,4]],[[41,1],[1,31]],[[41,1],[1,5]],[[36,1],[15,2],[13,1],[1,12],[9,5]],[[36,1],[1,2],[13,3],[1,30],[1,4],[1,31],[21,5]],[[36,1],[15,2]]]}, + {"width":120,"source":"stateDiagram-v2\n direction TB\n state \"A\" as A\n state \"B\" as B\n state \"C\" as C\n A --> B: e0\n A --> C: e1\n B --> A: e2","height":10,"lines":["╭───╮","│ A │◀","╰─┬─╯│"," │ │e0 "," ├──┼──────────────╮"," │ │ e2 │"," ▼e1│ ▼","╭───╮│ ╭───╮","│ B ├╯ │ C │","╰───╯ ╰───╯"],"runs":[[[5,2]],[[1,2],[3,3],[1,2],[1,5]],[[2,2],[1,30],[2,2],[1,5]],[[2,1],[1,4],[2,1],[1,5],[3,10]],[[2,1],[1,31],[18,5]],[[2,1],[1,5],[2,1],[1,5],[4,10],[10,1],[1,5]],[[2,1],[1,5],[2,10],[1,5],[14,1],[1,5]],[[5,2],[1,31],[12,1],[5,2]],[[1,2],[3,3],[1,30],[1,4],[12,1],[1,2],[3,3],[1,2]],[[5,2],[13,1],[5,2]]]}, + {"width":120,"source":"stateDiagram-v2\n direction LR\n A --> B\n note right of A : note","height":4,"lines":[" ╭──────────────╮","╭─┴─╮ ╔══════╗│╭───╮","│ A │════╣ note ║▶│ B │","╰───╯ ╚══════╝ ╰───╯"],"runs":[[[2,1],[1,4],[1,31],[14,5]],[[2,2],[1,30],[2,2],[4,1],[8,0],[1,5],[5,2]],[[1,2],[3,3],[1,2],[1,0],[1,0],[1,0],[1,0],[1,0],[1,1],[4,32],[1,1],[1,0],[1,5],[1,2],[3,3],[1,2]],[[5,2],[4,1],[8,0],[1,1],[5,2]]]}, + {"width":120,"source":"stateDiagram-v2\n Check --> Decision\n state Decision <<choice>>\n Decision --> Ready: yes\n Decision --> Failed: no","height":9,"lines":["╭───────╮ yes ╭───────╮","│ Check ├────────────▶◆────────────▶│ Ready │","╰───────╯ │ ╰───────╯"," │ no "," │"," ▼"," ╭────────╮"," │ Failed │"," ╰────────╯"],"runs":[[[9,2],[17,1],[5,10],[5,1],[9,2]],[[1,2],[7,3],[1,30],[1,4],[1,31],[11,5],[1,12],[13,5],[1,2],[7,3],[1,2]],[[9,2],[13,1],[1,5],[13,1],[9,2]],[[22,1],[1,5],[4,10]],[[22,1],[1,5]],[[22,1],[1,5]],[[17,1],[10,2]],[[17,1],[1,2],[8,3],[1,2]],[[17,1],[10,2]]]}, + {"width":120,"source":"stateDiagram-v2\n state Group {\n A --> [*]\n }","height":7,"lines":["╭─ Group ─────────────╮","│ │","│ ╭───╮ │","│ │ A ├────────────── │","│ ╰───╯ │","│ │","╰─────────────────────╯"],"runs":[[[2,0],[7,0],[14,0]],[[1,0],[21,1],[1,0]],[[1,0],[1,1],[5,2],[15,1],[1,0]],[[1,0],[1,1],[1,2],[3,3],[1,30],[1,4],[1,31],[12,5],[1,1],[1,0]],[[1,0],[1,1],[5,2],[15,1],[1,0]],[[1,0],[21,1],[1,0]],[[23,0]]]}, + {"width":120,"source":"stateDiagram-v2\n A --> B: transition label","height":3,"lines":["╭───╮ transition label ╭───╮","│ A ├─────────────────▶│ B │","╰───╯ ╰───╯"],"runs":[[[5,2],[18,10],[5,2]],[[1,2],[3,3],[1,30],[1,4],[1,31],[16,5],[1,2],[3,3],[1,2]],[[5,2],[18,1],[5,2]]]}, + {"width":120,"source":"stateDiagram-v2\n [*] --> Authenticated: login\n state Authenticated {\n [*] --> Idle\n Idle --> Editing: open\n Editing --> [*]: save\n }\n Authenticated --> [*]: logout","height":7,"lines":[" ╭─ Authenticated ──────────────────╮"," │ │ save "," login │ ╭──────╮ open ╭─────────╮ │ logout ","●────────────▶│ Idle ├────────────▶│ Editing ├────────────▶◎"," │ ╰──────╯ ╰─────────╯ │"," │ │"," ╰──────────────────────────────────╯"],"runs":[[[12,1],[2,0],[15,0],[19,0]],[[12,1],[1,0],[34,1],[1,0],[6,10]],[[3,1],[7,10],[2,1],[1,0],[1,1],[8,2],[3,1],[6,10],[4,1],[11,2],[1,1],[1,0],[8,10]],[[1,12],[13,5],[1,2],[6,3],[1,30],[1,4],[1,31],[11,5],[1,2],[9,3],[1,30],[1,4],[1,31],[11,5],[1,12]],[[12,1],[1,0],[1,1],[8,2],[13,1],[11,2],[1,1],[1,0]],[[12,1],[1,0],[34,1],[1,0]],[[12,1],[36,0]]]}, + {"width":120,"source":"stateDiagram-v2\n state Session {\n [*] --> Open\n state Open {\n [*] --> Clean\n Clean --> Dirty: edit\n Dirty --> Clean: save\n }\n Open --> [*]: close\n }\n [*] --> Session\n Session --> [*]","height":18,"lines":[" ╭─ Session ───────────────────────────╮"," │ │"," │ ╭─ Open ──────────────────────────╮ │"," │ │ │ │"," │ │ ╭───────╮ edit ╭───────╮ │ │","●────────────▶│ Clean ├────────────▶│ Dirty │ │ │"," │ │ ╰───────╯ ╰───┬───╯ │ │"," │ │ ▲ │ │ │"," │ │ │ │ │ │"," │ │ │ │ ├──────────╮ close "," │ │ │ │ │ │ ◎◀──╯"," │ │ │ │ │ │"," │ │ │ │ │ │"," │ │ │ save │ │ │"," │ │ ╰────────────────────────╯ │ │"," │ ╰─────────────────────────────────╯ │"," │ │"," ╰─────────────────────────────────────╯"],"runs":[[[10,1],[2,0],[9,0],[28,0]],[[10,1],[1,0],[37,1],[1,0]],[[10,1],[1,0],[1,1],[2,0],[6,0],[27,0],[1,1],[1,0]],[[10,1],[1,0],[1,1],[1,0],[33,1],[1,0],[1,1],[1,0]],[[10,1],[1,0],[1,1],[1,0],[1,1],[9,2],[3,1],[6,10],[4,1],[9,2],[1,1],[1,0],[1,1],[1,0]],[[1,12],[13,5],[1,2],[7,3],[1,30],[1,4],[1,31],[11,5],[1,2],[7,3],[1,2],[1,1],[1,0],[1,1],[1,0]],[[10,1],[1,0],[1,1],[1,0],[1,1],[9,2],[13,1],[4,2],[1,30],[4,2],[1,1],[1,0],[1,1],[1,0]],[[10,1],[1,0],[1,1],[1,0],[2,1],[1,5],[24,1],[1,4],[5,1],[1,0],[1,1],[1,0]],[[10,1],[1,0],[1,1],[1,0],[2,1],[1,5],[24,1],[1,31],[5,1],[1,0],[1,1],[1,0]],[[10,1],[1,0],[1,1],[1,0],[2,1],[1,5],[24,1],[1,5],[5,1],[12,5],[7,10]],[[10,1],[1,0],[1,1],[1,0],[2,1],[1,5],[24,1],[1,5],[5,1],[1,0],[1,1],[1,0],[4,1],[1,12],[4,5]],[[10,1],[1,0],[1,1],[1,0],[2,1],[1,5],[24,1],[1,5],[5,1],[1,0],[1,1],[1,0]],[[10,1],[1,0],[1,1],[1,0],[2,1],[1,5],[24,1],[1,5],[5,1],[1,0],[1,1],[1,0]],[[10,1],[1,0],[1,1],[1,0],[2,1],[1,5],[8,1],[6,10],[10,1],[1,5],[5,1],[1,0],[1,1],[1,0]],[[10,1],[1,0],[1,1],[1,0],[2,1],[26,5],[5,1],[1,0],[1,1],[1,0]],[[10,1],[1,0],[1,1],[35,0],[1,1],[1,0]],[[10,1],[1,0],[37,1],[1,0]],[[10,1],[39,0]]]}, + {"width":120,"source":"stateDiagram-v2\n state Session {\n [*] --> Open\n state Open {\n [*] --> Clean\n Clean --> Dirty: edit\n Dirty --> Clean: save\n Dirty --> [*]\n }\n Open --> Closing: request close\n Closing --> Open: cancel\n }\n [*] --> Session: hydrate","height":19,"lines":[" ╭─ Session ───────────────────────────────────────────────────────╮"," │ │"," │ ╭─ Open ──────────────────────────╮ │"," │ │ │ │"," hydrate│ │ ╭───────╮ edit ╭───────╮ │request close ╭─────────╮ │","●────────────▶│ Clean ├────────────▶│ Dirty ├──────────────────▶│ Closing │ │"," │ │ ╰───────╯ ╰───┬───╯ │ ╰────┬────╯ │"," │ │ ▲ │ │ │ │"," │ │ │ │ │ │ │"," │ │ │ │ │ │ │"," │ │ │ │ │ │ │"," │ │ │ │ │ │ │"," │ │ │ │ │ │ │"," │ │ │ save │ │ │ │"," │ │ ├────────────────────────╯ │ │ │"," │ ╰──│──────────────────────────────╯ │ │"," │ │ cancel │ │"," │ ╰─────────────────────────────────────────────────────╯ │"," ╰─────────────────────────────────────────────────────────────────╯"],"runs":[[[10,1],[2,0],[9,0],[56,0]],[[10,1],[1,0],[65,1],[1,0]],[[10,1],[1,0],[1,1],[2,0],[6,0],[27,0],[29,1],[1,0]],[[10,1],[1,0],[1,1],[1,0],[33,1],[1,0],[29,1],[1,0]],[[2,1],[8,10],[1,0],[1,1],[1,0],[1,1],[9,2],[3,1],[6,10],[4,1],[9,2],[1,1],[1,0],[14,10],[3,1],[11,2],[1,1],[1,0]],[[1,12],[13,5],[1,2],[7,3],[1,30],[1,4],[1,31],[11,5],[1,2],[7,3],[1,30],[1,4],[1,31],[17,5],[1,2],[9,3],[1,2],[1,1],[1,0]],[[10,1],[1,0],[1,1],[1,0],[1,1],[9,2],[13,1],[4,2],[1,30],[4,2],[1,1],[1,0],[17,1],[5,2],[1,30],[5,2],[1,1],[1,0]],[[10,1],[1,0],[1,1],[1,0],[2,1],[1,5],[24,1],[1,4],[5,1],[1,0],[22,1],[1,4],[6,1],[1,0]],[[10,1],[1,0],[1,1],[1,0],[2,1],[1,5],[24,1],[1,31],[5,1],[1,0],[22,1],[1,31],[6,1],[1,0]],[[10,1],[1,0],[1,1],[1,0],[2,1],[1,5],[24,1],[1,5],[5,1],[1,0],[22,1],[1,5],[6,1],[1,0]],[[10,1],[1,0],[1,1],[1,0],[2,1],[1,5],[24,1],[1,5],[5,1],[1,0],[22,1],[1,5],[6,1],[1,0]],[[10,1],[1,0],[1,1],[1,0],[2,1],[1,5],[24,1],[1,5],[5,1],[1,0],[22,1],[1,5],[6,1],[1,0]],[[10,1],[1,0],[1,1],[1,0],[2,1],[1,5],[24,1],[1,5],[5,1],[1,0],[22,1],[1,5],[6,1],[1,0]],[[10,1],[1,0],[1,1],[1,0],[2,1],[1,5],[8,1],[6,10],[10,1],[1,5],[5,1],[1,0],[22,1],[1,5],[6,1],[1,0]],[[10,1],[1,0],[1,1],[1,0],[2,1],[26,5],[5,1],[1,0],[22,1],[1,5],[6,1],[1,0]],[[10,1],[1,0],[1,1],[3,0],[1,5],[31,0],[22,1],[1,5],[6,1],[1,0]],[[10,1],[1,0],[4,1],[1,5],[22,1],[8,10],[23,1],[1,5],[6,1],[1,0]],[[10,1],[1,0],[4,1],[55,5],[6,1],[1,0]],[[10,1],[67,0]]]}, + {"width":120,"source":"stateDiagram-v2\n [*] --> Session: open session\n state Session {\n [*] --> Ready: initialize\n Ready --> [*]: finalize\n }\n Session --> [*]: close session","height":7,"lines":[" ╭─ Session ─╮"," open session │ │finalize "," initialize │ ╭───────╮ │close session ","●─────────────────▶│ Ready ├──────────────────▶◎"," │ ╰───────╯ │"," │ │"," ╰───────────╯"],"runs":[[[17,1],[2,0],[9,0],[2,0]],[[2,1],[14,10],[1,1],[1,0],[11,1],[1,0],[9,10]],[[2,1],[12,10],[3,1],[1,0],[1,1],[9,2],[1,1],[1,0],[14,10]],[[1,12],[18,5],[1,2],[7,3],[1,30],[1,4],[1,31],[17,5],[1,12]],[[17,1],[1,0],[1,1],[9,2],[1,1],[1,0]],[[17,1],[1,0],[11,1],[1,0]],[[17,1],[13,0]]]}, + {"width":120,"source":"flowchart LR\n A[Start] --> B[Done]\n classDef highlight fill:#fff\n class A highlight\n style B fill:#000\n linkStyle 0 stroke:#fff","height":3,"lines":["╭───────╮ ╭──────╮","│ Start ├───▶│ Done │","╰───────╯ ╰──────╯"],"runs":[[[9,2],[4,1],[8,2]],[[1,2],[7,3],[1,6],[1,4],[1,7],[1,8],[1,5],[1,2],[6,3],[1,2]],[[9,2],[4,1],[8,2]]]}, + {"width":120,"source":"flowchart LR\n A[Start] --> B[Done]\n A --o B","height":3,"lines":["╭───────╮ ╭──────╮","│ Start ├───▶│ Done │","╰───────╯ ╰──────╯"],"runs":[[[9,2],[4,1],[8,2]],[[1,2],[7,3],[1,6],[1,4],[1,7],[1,8],[1,5],[1,2],[6,3],[1,2]],[[9,2],[4,1],[8,2]]]}, + {"width":120,"source":"flowchart LR\n A[\"send --> receive\"] --> B","height":3,"lines":["╭──────────────────╮ ╭───╮","│ send --> receive ├───▶│ B │","╰──────────────────╯ ╰───╯"],"runs":[[[20,2],[4,1],[5,2]],[[1,2],[18,3],[1,6],[1,4],[1,7],[1,8],[1,5],[1,2],[3,3],[1,2]],[[20,2],[4,1],[5,2]]]}, + {"width":120,"source":"sequenceDiagram\n A->>B: request\n opt retry","height":4,"lines":[" A B"," │ │"," ├─── request ─────►"," │ │"],"runs":[[[1,1],[1,3],[17,1],[1,3]],[[1,1],[1,2],[17,1],[1,2]],[[1,1],[1,16],[1,17],[1,18],[1,19],[15,21]],[[1,1],[1,2],[17,1],[1,2]]]}, + {"width":120,"source":"stateDiagram-v2\n state Running {\n [*] --> Ready","lines":null}, + {"width":120,"source":"stateDiagram-v2\n direction LR\n state Parent {\n direction TB\n A --> B\n }","lines":null}, + {"width":120,"source":"sequenceDiagram\n end","lines":null}, + {"width":120,"source":"sequenceDiagram\n alt available\n loop retry\n else fallback","lines":null}, + {"width":120,"source":"flowchart LR\n Client[OpenCode client]\n\n subgraph CF[Cloudflare]\n DNS[opencode.ai]\n Web[Console frontend Worker]\n Proxy[Console API proxy Worker]\n Infer[inference-next Worker]\n KV[Model registry KV]\n Redis[Upstash Redis]\n Logs[Axiom / Cloudflare logs]\n Lake[Pipeline to R2 data lake]\n end\n\n subgraph AWS[AWS]\n EKS[EKS cluster]\n API[Console API pod<br/>1 replica]\n OTEL[OTel collector]\n ECR[ECR]\n end\n\n DB[(PlanetScale)]\n Models[Anthropic / OpenAI / other providers]\n\n Client -->|/inference/*| DNS --> Infer\n Client -->|/console/*| DNS --> Web\n Web -->|/console/api, /auth, etc.| Proxy\n Proxy -->|Cloudflare VPC service| API\n\n Infer -->|public DATABASE_URL| DB\n Infer --> KV\n Infer --> Redis\n Infer --> Models\n Infer --> Logs\n Infer --> Lake\n\n API -->|private DATABASE_AWS_URL| DB\n API --> OTEL\n ECR --> API","height":77,"lines":[" ╭─────────────────╮"," │ OpenCode client ├────────────────────────────────┬───────────────╮"," ╰─────────────────╯ │ │"," │ │"," │ /inference/* │ /console/* ","╭─ Cloudflare ──────────────────────────────────────────────────────────│───────────────│──────────────────────────────╮","│ ╭─────────────╮ │ │ │","│ │ opencode.ai │◀┴───────────────╯ │","│ ╰──────┬──────╯ │","│ ╭─────────────────────────────┴──────────────────────────────╮ │","│ ▼ ▼ │","│ ╭─────────────────────────╮ ╭───────────────────────╮ │","│ ╭─────────────────┤ Console frontend Worker │ │ inference-next Worker │ │","│ │ ╰─────────────────────────╯ ╰───────────┬───────────╯ │","│ │ ╭───────────┬───────────────────────┬────────────────┴─────────┬─────────────────╮","│ │ /console/api, /auth, etc. │ │ │ │ │ │","│ │ │ ▼ ▼ ▼ │ │","│ │ ╭──────────────────────────╮ │ ╭───────────────────╮ ╭───────────────╮ ╭─────────────────────────╮ │ │","│ ╰──────▶│ Console API proxy Worker │ │ │ Model registry KV │ │ Upstash Redis │ │ Axiom / Cloudflare logs │ │ │","│ ╰─────────────┬────────────╯ │ ╰───────────────────╯ ╰───────────────╯ ╰─────────────────────────╯ │ │","│ │ │ │ │","│ │ │ │ │","│ │ │ │ │","│ │ │ ╭─────────────────────────────────────────┤","│ │ ▼ ▼ │ │","│ │ ╭──────────────────────────╮ ╭──────────────────────────────────────╮ │ │","│ │ │ Pipeline to R2 data lake │ │ Anthropic / OpenAI / other providers │ │ │","│ │ ╰──────────────────────────╯ ╰──────────────────────────────────────╯ │ │ public DATABASE_URL ","╰───────────────────────│──────────────────────────────────────────────────────────────────────────────────────────────╯ │"," │ │"," │ ╭─ AWS ────────────────────────────────────────────────────────────────────────╮ │"," │ │ ╭─────────────╮ ╭─────╮ │ │"," │ │ │ EKS cluster │ │ ECR │ │ │"," │ │ ╰─────────────╯ ╰──┬──╯ │ │"," │ │ │ │ │"," │ │ │ │ │"," │ │ │ │ │"," │ │ │ │ │"," │ │ ╭─────────────╮ │ │ │"," │ │ ├─────────────┤ │ │ │"," │ │ ╭▶│ PlanetScale │◀────┼───────────────────╯"," │ │ │ ├─────────────┤ │ │"," │ │ │ ╰─────────────╯ │ │"," │ │ │ │ │"," │ │ │ │ │"," │ │ │ │ │"," │ │ │ │ │"," │ │ │ │ │"," │ │ │ │ │"," │ │ │ │ │"," │ │ │ │ │"," │ │ │ │ │"," │ │ │ │ │"," │ │ │ │ │"," │ │ │ │ │"," │ │ │ │ │"," │ │ │ │ │"," │ │ │ │ │"," ╰─────── Cloudflare VPC service ───────┬────────────────┼─────────────────────╯ │"," │ │ │ │"," │ │ │ │"," │ ▼ │ │"," │ ╭─────────────────╮ │ │"," │ │ Console API pod │ │ │"," │ ╭┤ 1 replica │ │ │"," │ │╰────────┬────────╯ │ │"," │ │ │ │ │"," │ ╭─────────────┼─────────╯ │ │"," │ │ │ │ │"," │ ▼ │ │ │"," │ ╭────────────────╮ │ private DATABASE_AWS_URL │ │"," │ │ OTel collector │ │ │ │"," │ ╰────────────────╯ │ │ │"," ╰────────────────────────│──────────────────────────│──────────────────────────╯"," │ │"," │ │"," ╰──────────────────────────╯"],"runs":[[[21,1],[19,2]],[[21,1],[1,2],[17,3],[1,4],[49,5]],[[21,1],[19,2],[32,1],[1,5],[15,1],[1,5]],[[72,1],[1,5],[15,1],[1,5]],[[72,1],[1,5],[14,10],[1,1],[1,5],[12,10]],[[2,0],[12,0],[58,0],[1,5],[15,0],[1,5],[31,0]],[[1,0],[55,1],[15,2],[1,1],[1,5],[15,1],[1,5],[30,1],[1,0]],[[1,0],[55,1],[1,2],[13,3],[1,2],[18,5],[30,1],[1,0]],[[1,0],[55,1],[7,2],[1,4],[7,2],[48,1],[1,0]],[[1,0],[32,1],[62,5],[24,1],[1,0]],[[1,0],[32,1],[1,5],[60,1],[1,5],[24,1],[1,0]],[[1,0],[19,1],[27,2],[35,1],[25,2],[12,1],[1,0]],[[1,0],[1,1],[1,5],[3,8],[4,7],[4,4],[4,6],[3,9],[25,3],[1,2],[35,1],[1,2],[23,3],[1,2],[12,1],[1,0]],[[1,0],[1,1],[1,5],[17,1],[27,2],[35,1],[12,2],[1,4],[12,2],[12,1],[1,0]],[[1,0],[1,1],[1,5],[38,1],[82,5]],[[1,0],[1,1],[1,5],[7,1],[27,10],[4,1],[1,5],[11,1],[1,5],[23,1],[1,5],[26,1],[1,5],[14,1],[1,0],[2,1],[1,5]],[[1,0],[1,1],[1,5],[38,1],[1,5],[11,1],[1,5],[23,1],[1,5],[26,1],[1,5],[14,1],[1,0],[2,1],[1,5]],[[1,0],[1,1],[1,5],[7,1],[28,2],[3,1],[1,5],[1,1],[21,2],[5,1],[17,2],[5,1],[27,2],[1,1],[1,0],[2,1],[1,5]],[[1,0],[1,1],[8,5],[1,2],[26,3],[1,2],[3,1],[1,5],[1,1],[1,2],[19,3],[1,2],[5,1],[1,2],[15,3],[1,2],[5,1],[1,2],[25,3],[1,2],[1,1],[1,0],[2,1],[1,5]],[[1,0],[9,1],[14,2],[1,9],[13,2],[3,1],[1,5],[1,1],[21,2],[5,1],[17,2],[5,1],[27,2],[1,1],[1,0],[2,1],[1,5]],[[1,0],[23,1],[1,9],[16,1],[1,5],[77,1],[1,0],[2,1],[1,5]],[[1,0],[23,1],[1,9],[16,1],[1,5],[77,1],[1,0],[2,1],[1,5]],[[1,0],[23,1],[1,9],[16,1],[1,5],[77,1],[1,0],[2,1],[1,5]],[[1,0],[23,1],[1,9],[16,1],[1,5],[38,1],[43,5]],[[1,0],[23,1],[1,9],[16,1],[1,5],[38,1],[1,5],[38,1],[1,0],[2,1],[1,5]],[[1,0],[23,1],[1,9],[2,1],[28,2],[5,1],[40,2],[19,1],[1,0],[2,1],[1,5]],[[1,0],[23,1],[1,6],[2,1],[1,2],[26,3],[1,2],[5,1],[1,2],[38,3],[1,2],[19,1],[1,0],[2,1],[1,5]],[[1,0],[23,1],[1,6],[2,1],[28,2],[5,1],[40,2],[19,1],[1,0],[2,1],[1,5],[21,10]],[[24,0],[1,6],[95,0],[2,1],[1,5]],[[24,1],[1,6],[97,1],[1,5]],[[24,1],[1,6],[3,1],[2,0],[5,0],[73,0],[14,1],[1,5]],[[24,1],[1,6],[3,1],[1,0],[33,1],[15,2],[22,1],[7,2],[1,1],[1,0],[14,1],[1,5]],[[24,1],[1,6],[3,1],[1,0],[33,1],[1,2],[13,3],[1,2],[22,1],[1,2],[5,3],[1,2],[1,1],[1,0],[14,1],[1,5]],[[24,1],[1,6],[3,1],[1,0],[33,1],[15,2],[22,1],[3,2],[1,9],[3,2],[1,1],[1,0],[14,1],[1,5]],[[24,1],[1,4],[3,1],[1,0],[73,1],[1,6],[4,1],[1,0],[14,1],[1,5]],[[24,1],[1,4],[3,1],[1,0],[73,1],[1,6],[4,1],[1,0],[14,1],[1,5]],[[24,1],[1,4],[3,1],[1,0],[73,1],[1,4],[4,1],[1,0],[14,1],[1,5]],[[24,1],[1,4],[3,1],[1,0],[73,1],[1,7],[4,1],[1,0],[14,1],[1,5]],[[24,1],[1,4],[3,1],[1,0],[53,1],[15,2],[5,1],[1,7],[4,1],[1,0],[14,1],[1,5]],[[24,1],[1,4],[3,1],[1,0],[53,1],[15,2],[5,1],[1,8],[4,1],[1,0],[14,1],[1,5]],[[24,1],[1,4],[3,1],[1,0],[51,1],[2,5],[1,2],[13,3],[1,2],[26,5]],[[24,1],[1,4],[3,1],[1,0],[51,1],[1,5],[1,1],[15,2],[5,1],[1,5],[4,1],[1,0]],[[24,1],[1,7],[3,1],[1,0],[51,1],[1,5],[1,1],[15,2],[5,1],[1,5],[4,1],[1,0]],[[24,1],[1,7],[3,1],[1,0],[51,1],[1,5],[21,1],[1,5],[4,1],[1,0]],[[24,1],[1,7],[3,1],[1,0],[51,1],[1,5],[21,1],[1,5],[4,1],[1,0]],[[24,1],[1,7],[3,1],[1,0],[51,1],[1,5],[21,1],[1,5],[4,1],[1,0]],[[24,1],[1,7],[3,1],[1,0],[51,1],[1,5],[21,1],[1,5],[4,1],[1,0]],[[24,1],[1,7],[3,1],[1,0],[51,1],[1,5],[21,1],[1,5],[4,1],[1,0]],[[24,1],[1,7],[3,1],[1,0],[51,1],[1,5],[21,1],[1,5],[4,1],[1,0]],[[24,1],[1,7],[3,1],[1,0],[51,1],[1,5],[21,1],[1,5],[4,1],[1,0]],[[24,1],[1,8],[3,1],[1,0],[51,1],[1,5],[21,1],[1,5],[4,1],[1,0]],[[24,1],[1,8],[3,1],[1,0],[51,1],[1,5],[21,1],[1,5],[4,1],[1,0]],[[24,1],[1,8],[3,1],[1,0],[51,1],[1,5],[21,1],[1,5],[4,1],[1,0]],[[24,1],[1,8],[3,1],[1,0],[51,1],[1,5],[21,1],[1,5],[4,1],[1,0]],[[24,1],[1,8],[3,1],[1,0],[51,1],[1,5],[21,1],[1,5],[4,1],[1,0]],[[24,1],[1,8],[3,1],[1,0],[51,1],[1,5],[21,1],[1,5],[4,1],[1,0]],[[24,1],[1,8],[3,1],[1,0],[51,1],[1,5],[21,1],[1,5],[4,1],[1,0]],[[24,1],[1,8],[3,1],[1,0],[51,1],[1,5],[21,1],[1,5],[4,1],[1,0]],[[24,1],[8,5],[24,10],[47,5],[4,1],[1,0]],[[28,1],[1,0],[34,1],[1,5],[16,1],[1,5],[26,1],[1,0]],[[28,1],[1,0],[34,1],[1,5],[16,1],[1,5],[26,1],[1,0]],[[28,1],[1,0],[34,1],[1,5],[16,1],[1,5],[26,1],[1,0]],[[28,1],[1,0],[25,1],[19,2],[7,1],[1,5],[26,1],[1,0]],[[28,1],[1,0],[25,1],[1,2],[17,3],[1,2],[7,1],[1,5],[26,1],[1,0]],[[28,1],[1,0],[24,1],[1,5],[1,4],[17,3],[1,2],[7,1],[1,5],[26,1],[1,0]],[[28,1],[1,0],[24,1],[1,5],[9,2],[1,6],[9,2],[7,1],[1,5],[26,1],[1,0]],[[28,1],[1,0],[24,1],[1,5],[9,1],[1,7],[16,1],[1,5],[26,1],[1,0]],[[28,1],[1,0],[10,1],[25,5],[16,1],[1,5],[26,1],[1,0]],[[28,1],[1,0],[10,1],[1,5],[13,1],[1,5],[26,1],[1,5],[26,1],[1,0]],[[28,1],[1,0],[10,1],[1,5],[13,1],[1,5],[26,1],[1,5],[26,1],[1,0]],[[28,1],[1,0],[1,1],[18,2],[5,1],[1,5],[26,10],[1,5],[26,1],[1,0]],[[28,1],[1,0],[1,1],[1,2],[16,3],[1,2],[5,1],[1,5],[26,1],[1,5],[26,1],[1,0]],[[28,1],[1,0],[1,1],[18,2],[5,1],[1,5],[26,1],[1,5],[26,1],[1,0]],[[28,1],[25,0],[1,5],[26,0],[1,5],[27,0]],[[53,1],[1,5],[26,1],[1,5]],[[53,1],[1,5],[26,1],[1,5]],[[53,1],[28,5]]]}, + {"width":120,"source":"\n%% product history\ntimeline LR\n title Product &<br/>Platform\n\n section Foundation\n 2024 : Prototype : First release\n : Public beta\n section Growth\n 2025 : \"Scale: ≥ 10k\"\n","height":13,"lines":[" Product &"," Platform","","Foundation ───┐"," │"," 2024 ───● Prototype"," │ First release"," │ Public beta"," │"," Growth ───┤"," │"," 2025 ───● Scale: ≥ 10k"," │"],"runs":[[[11,1],[9,3]],[[11,1],[8,3]],[],[[10,12],[1,1],[1,33],[1,34],[1,35],[1,2]],[[14,1],[1,2]],[[6,1],[4,13],[1,1],[1,36],[1,37],[1,38],[1,2],[2,1],[9,3]],[[14,1],[1,2],[2,1],[13,3]],[[14,1],[1,2],[2,1],[11,3]],[[14,1],[1,2]],[[4,1],[6,12],[1,1],[1,33],[1,34],[1,35],[1,2]],[[14,1],[1,2]],[[6,1],[4,13],[1,1],[1,36],[1,37],[1,38],[1,2],[2,1],[12,3]],[[14,1],[1,2]]]}, + {"width":120,"source":"timeline\n title Product &<br/>Platform\n section Foundation<br/>phase\n 2024 : Prototype<br/>ready : First release\n : Scale ≥ 10k","height":11,"lines":[" Product &"," Platform","","Foundation ───┐"," phase │"," │"," 2024 ───● Prototype"," │ ready"," │ First release"," │ Scale ≥ 10k"," │"],"runs":[[[11,1],[9,3]],[[11,1],[8,3]],[],[[10,12],[1,1],[1,33],[1,34],[1,35],[1,2]],[[5,1],[5,12],[4,1],[1,2]],[[14,1],[1,2]],[[6,1],[4,13],[1,1],[1,36],[1,37],[1,38],[1,2],[2,1],[9,3]],[[14,1],[1,2],[2,1],[5,3]],[[14,1],[1,2],[2,1],[13,3]],[[14,1],[1,2],[2,1],[11,3]],[[14,1],[1,2]]]}, + {"width":120,"source":"timeline\n 2024 : https://example.com : event:detail : next event","height":4,"lines":["2024 ───● https://example.com"," │ event:detail"," │ next event"," │"],"runs":[[[4,13],[1,1],[1,36],[1,37],[1,38],[1,2],[2,1],[19,3]],[[8,1],[1,2],[2,1],[12,3]],[[8,1],[1,2],[2,1],[10,3]],[[8,1],[1,2]]]}, + {"width":120,"source":"timeline\n 2024\n : First release\n : Public beta","height":3,"lines":["2024 ───● First release"," │ Public beta"," │"],"runs":[[[4,13],[1,1],[1,36],[1,37],[1,38],[1,2],[2,1],[13,3]],[[8,1],[1,2],[2,1],[11,3]],[[8,1],[1,2]]]}, + {"width":120,"source":"timeline\n # product history\n accTitle: Product timeline\n accDescr Product release history\n 2024 : Prototype %% internal note","height":2,"lines":["2024 ───● Prototype"," │"],"runs":[[[4,13],[1,1],[1,36],[1,37],[1,38],[1,2],[2,1],[9,3]],[[8,1],[1,2]]]}, + {"width":120,"source":"timeline\n accDescr {\n Product milestones by year.\n Includes launch and growth.\n }\n 2024 : Ship","height":2,"lines":["2024 ───● Ship"," │"],"runs":[[[4,13],[1,1],[1,36],[1,37],[1,38],[1,2],[2,1],[4,3]],[[8,1],[1,2]]]}, + {"width":120,"source":"flowchart LR\n A -.-> B\n C -.->D.- E\n F -. note .-> G\n H -.-> I -. x .- J","lines":null}, + {"width":60,"source":"flowchart LR\n subgraph Group\n A[Node]\n end","height":5,"lines":["╭─ Group ──╮","│ ╭──────╮ │","│ │ Node │ │","│ ╰──────╯ │","╰──────────╯"],"runs":[[[2,0],[7,0],[3,0]],[[1,0],[1,1],[8,2],[1,1],[1,0]],[[1,0],[1,1],[1,2],[6,3],[1,2],[1,1],[1,0]],[[1,0],[1,1],[8,2],[1,1],[1,0]],[[12,0]]]}, + {"width":60,"source":"flowchart TB\n A --> B\n A --> C","height":8,"lines":[" ╭───╮"," │ A │"," ╰─┬─╯"," ╭───────┴────────╮"," ▼ ▼","╭───╮ ╭───╮","│ B │ │ C │","╰───╯ ╰───╯"],"runs":[[[8,1],[5,2]],[[8,1],[1,2],[3,3],[1,2]],[[8,1],[2,2],[1,4],[2,2]],[[2,1],[18,5]],[[2,1],[1,5],[16,1],[1,5]],[[5,2],[12,1],[5,2]],[[1,2],[3,3],[1,2],[12,1],[1,2],[3,3],[1,2]],[[5,2],[12,1],[5,2]]]}, + {"width":60,"source":"flowchart LR\n A[Idea] --> B[Parse]\n B --> C[Render]\n C --> D[Terminal]","height":3,"lines":["╭──────╮ ╭───────╮ ╭────────╮ ╭──────────╮","│ Idea ├───▶│ Parse ├───▶│ Render ├───▶│ Terminal │","╰──────╯ ╰───────╯ ╰────────╯ ╰──────────╯"],"runs":[[[8,2],[4,1],[9,2],[4,1],[10,2],[4,1],[12,2]],[[1,2],[6,3],[1,6],[1,4],[1,7],[1,8],[1,5],[1,2],[7,3],[1,6],[1,4],[1,7],[1,8],[1,5],[1,2],[8,3],[1,6],[1,4],[1,7],[1,8],[1,5],[1,2],[10,3],[1,2]],[[8,2],[4,1],[9,2],[4,1],[10,2],[4,1],[12,2]]]}, + {"width":60,"source":"flowchart TD\n A[Start] --> B[Done]","height":8,"lines":["╭───────╮","│ Start │","╰───┬───╯"," │"," ▼","╭──────╮","│ Done │","╰──────╯"],"runs":[[[9,2]],[[1,2],[7,3],[1,2]],[[4,2],[1,6],[4,2]],[[4,1],[1,7]],[[4,1],[1,5]],[[8,2]],[[1,2],[6,3],[1,2]],[[8,2]]]}, + {"width":60,"source":"flowchart TD\n D[DEPLOYMENT - Anomaly] --> CA[ClientApps: google, github]\n D --> O[ORG acme = guild/workspace]\n O --> OG[org grant: google, authed as bot@acme.com]\n O --> M[MEMBER juliana]\n M --> UG[user grant: google, personal]","height":34,"lines":[" ╭──────────────────────╮","╭────────────┤ DEPLOYMENT - Anomaly │","│ ╰───────────┬──────────╯","│ │","│ ▼","│ ╭────────────────────────────╮","│ │ ClientApps: google, github │","│ ╰────────────────────────────╯","│","│","│","│","│","│ ╭────────────────────────────╮","╰────────▶│ ORG acme = guild/workspace ├──────────╮"," ╰──────────────┬─────────────╯ │"," │ │"," ▼ │"," ╭───────────────────────────────────────────╮ │"," │ org grant: google, authed as bot@acme.com │ │"," ╰───────────────────────────────────────────╯ │"," │"," │"," │"," │"," │"," ╭────────────────╮ │"," │ MEMBER juliana │◀───────────────╯"," ╰────────┬───────╯"," │"," ▼"," ╭──────────────────────────────╮"," │ user grant: google, personal │"," ╰──────────────────────────────╯"],"runs":[[[13,1],[24,2]],[[1,5],[2,8],[3,7],[3,4],[3,6],[2,9],[22,3],[1,2]],[[1,5],[12,1],[12,2],[1,6],[11,2]],[[1,5],[24,1],[1,7]],[[1,5],[24,1],[1,5]],[[1,5],[9,1],[30,2]],[[1,5],[9,1],[1,2],[28,3],[1,2]],[[1,5],[9,1],[30,2]],[[1,5]],[[1,5]],[[1,5]],[[1,5]],[[1,5]],[[1,5],[9,1],[30,2]],[[10,5],[1,2],[28,3],[2,9],[2,6],[3,4],[2,7],[2,8],[1,5]],[[10,1],[15,2],[1,6],[14,2],[10,1],[1,5]],[[25,1],[1,7],[24,1],[1,5]],[[25,1],[1,5],[24,1],[1,5]],[[3,1],[45,2],[2,1],[1,5]],[[3,1],[1,2],[43,3],[1,2],[2,1],[1,5]],[[3,1],[45,2],[2,1],[1,5]],[[50,1],[1,5]],[[50,1],[1,5]],[[50,1],[1,5]],[[50,1],[1,5]],[[50,1],[1,5]],[[16,1],[18,2],[16,1],[1,5]],[[16,1],[1,2],[16,3],[1,2],[17,5]],[[16,1],[9,2],[1,6],[8,2]],[[25,1],[1,7]],[[25,1],[1,5]],[[9,1],[32,2]],[[9,1],[1,2],[30,3],[1,2]],[[9,1],[32,2]]]}, + {"width":60,"source":"flowchart LR\n A[界]","height":3,"lines":["╭────╮","│ 界 │","╰────╯"],"runs":[[[6,2]],[[1,2],[3,3],[1,2]],[[6,2]]]}, + {"width":60,"source":"flowchart LR\n A --> B","height":3,"lines":["╭───╮ ╭───╮","│ A ├───▶│ B │","╰───╯ ╰───╯"],"runs":[[[5,2],[4,1],[5,2]],[[1,2],[3,3],[1,6],[1,4],[1,7],[1,8],[1,5],[1,2],[3,3],[1,2]],[[5,2],[4,1],[5,2]]]}, + {"width":60,"source":"flowchart RL\n Parser[Parser] --> Output[Rendered]","height":3,"lines":["╭──────────╮ ╭────────╮","│ Rendered │◀───┤ Parser │","╰──────────╯ ╰────────╯"],"runs":[[[12,2],[4,1],[10,2]],[[1,2],[10,3],[1,2],[1,5],[1,8],[1,7],[1,4],[1,6],[8,3],[1,2]],[[12,2],[4,1],[10,2]]]}, + {"width":60,"source":"flowchart LR\n A[A] --> B[B]\n B --> A","height":7,"lines":[" ╭────────╮"," │ │"," │ │"," ▼ │","╭───╮ ╭─┴─╮","│ A ├───▶│ B │","╰───╯ ╰───╯"],"runs":[[[2,1],[10,5]],[[2,1],[1,5],[8,1],[1,8]],[[2,1],[1,5],[8,1],[1,7]],[[2,1],[1,5],[8,1],[1,4]],[[5,2],[4,1],[2,2],[1,6],[2,2]],[[1,2],[3,3],[1,6],[1,4],[1,7],[1,8],[1,5],[1,2],[3,3],[1,2]],[[5,2],[4,1],[5,2]]]}, + {"width":60,"source":"flowchart TD\n S[Source] --> A[Alpha]\n S --> B{Beta?}\n S --> C[(Store)]\n A --> J[[Join]]\n B --> J\n C --> J\n J -->|cycle back| S","height":17,"lines":[" ╭────────╮"," │ Source │◀───────────────────────╮"," ╰────┬───╯ │"," ╭─────────────────────┼─────────────────────╮ │"," │ │ │ │"," │ ▼ ▼ │"," ▼ ╭─────╮ ╭───────╮ │","╭───────╮ ╭─╯ ╰─╮ ├───────┤ │","│ Alpha │ │ Beta? │ │ Store │ │","╰───┬───╯ ╰─╮ ╭─╯ ├───────┤ │"," │ ╰──┬──╯ ╰───┬───╯ │"," │ │ │ │"," ╰─────────────────────┼─────────────────────╯ │"," ▼ │"," ╭─┬────┬─╮ │"," │ │Join│ ├────── cycle back ──────╯"," ╰─┴────┴─╯"],"runs":[[[21,1],[10,2]],[[21,1],[1,2],[8,3],[1,2],[25,5]],[[21,1],[5,2],[1,4],[4,2],[24,1],[1,5]],[[4,1],[45,5],[6,1],[1,5]],[[4,1],[1,5],[21,1],[1,5],[21,1],[1,5],[6,1],[1,5]],[[4,1],[1,5],[21,1],[1,5],[21,1],[1,5],[6,1],[1,5]],[[4,1],[1,5],[18,1],[7,2],[14,1],[9,2],[2,1],[1,5]],[[9,2],[12,1],[3,2],[5,1],[3,2],[12,1],[9,2],[2,1],[1,5]],[[1,2],[7,3],[1,2],[12,1],[1,2],[2,1],[5,3],[2,1],[1,2],[12,1],[1,2],[7,3],[1,2],[2,1],[1,5]],[[4,2],[1,6],[4,2],[12,1],[3,2],[5,1],[3,2],[12,1],[9,2],[2,1],[1,5]],[[4,1],[1,4],[18,1],[3,2],[1,6],[3,2],[14,1],[4,2],[1,6],[4,2],[2,1],[1,5]],[[4,1],[1,7],[21,1],[1,7],[21,1],[1,7],[6,1],[1,5]],[[4,1],[45,5],[6,1],[1,5]],[[26,1],[1,5],[28,1],[1,5]],[[21,1],[10,2],[24,1],[1,5]],[[21,1],[1,2],[1,3],[1,2],[4,3],[1,2],[1,3],[1,9],[2,6],[1,4],[2,7],[1,8],[12,10],[7,5]],[[21,1],[10,2]]]}, + {"width":60,"source":"flowchart TD\n A[Left] -->|left| C[Merge]\n B[Right] -->|right| C","height":9,"lines":["╭──────╮ ╭───────╮","│ Left │ │ Right │","╰───┬──╯ ╰───┬───╯"," │ │"," ╰── left ──┬── right ──╯"," ▼"," ╭───────╮"," │ Merge │"," ╰───────╯"],"runs":[[[8,2],[15,1],[9,2]],[[1,2],[6,3],[1,2],[15,1],[1,2],[7,3],[1,2]],[[4,2],[1,6],[3,2],[15,1],[4,2],[1,6],[4,2]],[[4,1],[1,7],[22,1],[1,7]],[[4,1],[3,5],[6,10],[5,5],[7,10],[3,5]],[[15,1],[1,5]],[[11,1],[9,2]],[[11,1],[1,2],[7,3],[1,2]],[[11,1],[9,2]]]}, + {"width":60,"source":"flowchart TD\n B[Start] --> D{Choose}\n D --> E[[Primary]]\n D --> F[Fallback]\n E --> B\n F --> E","height":15,"lines":[" ╭───────╮","╭────────────────▶│ Start │","│ ╰───┬───╯","│ │","│ ▼","│ ╭───────╮","│ ╭─╯ ╰─╮","│ │ Choose │","│ ╰─╮ ╭─╯","│ ╰───┬───╯","│ ╭───────────┴────────────╮","│ ▼ ▼","│ ╭─┬───────┬─╮ ╭──────────╮","╰───┤ │Primary│ │◀───────────┤ Fallback │"," ╰─┴───────┴─╯ ╰──────────╯"],"runs":[[[18,1],[9,2]],[[18,5],[1,2],[7,3],[1,2]],[[1,5],[17,1],[4,2],[1,6],[4,2]],[[1,5],[21,1],[1,7]],[[1,5],[21,1],[1,5]],[[1,5],[17,1],[9,2]],[[1,5],[15,1],[3,2],[7,1],[3,2]],[[1,5],[15,1],[1,2],[2,1],[6,3],[3,1],[1,2]],[[1,5],[15,1],[3,2],[7,1],[3,2]],[[1,5],[17,1],[4,2],[1,4],[4,2]],[[1,5],[9,1],[26,5]],[[1,5],[9,1],[1,5],[24,1],[1,5]],[[1,5],[3,1],[13,2],[12,1],[12,2]],[[1,5],[1,8],[1,7],[1,4],[1,6],[1,3],[1,2],[7,3],[1,2],[1,3],[1,2],[1,5],[2,8],[3,7],[2,4],[3,6],[2,9],[10,3],[1,2]],[[4,1],[13,2],[12,1],[12,2]]]}, + {"width":60,"source":"flowchart LR\n A[Source] -->|first| B[Target]\n A -->|second| B","height":5,"lines":["╭────────╮ ╭────────╮","│ Source │ │ Target │","╰────┬───╯ ╰────────╯"," ├──────── first ─────────▶"," ╰──────── second ────────╯"],"runs":[[[10,2],[15,1],[10,2]],[[1,2],[8,3],[1,2],[15,1],[1,2],[8,3],[1,2]],[[5,2],[1,4],[4,2],[15,1],[10,2]],[[5,1],[9,5],[7,10],[10,5]],[[5,1],[9,5],[8,10],[9,5]]]}, + {"width":60,"source":"flowchart TD\n A[A] -->|forward_label| B[B]\n B -->|backward_label| A","height":9,"lines":["╭───╮","│ A │◀─────────────╮","╰─┬─╯ │"," │ │"," │ forward_label │ backward_label "," ▼ │","╭───╮ │","│ B ├──────────────╯","╰───╯"],"runs":[[[5,2]],[[1,2],[3,3],[1,2],[15,5]],[[2,2],[1,6],[2,2],[14,1],[1,5]],[[2,1],[1,4],[16,1],[1,5]],[[2,1],[1,7],[15,10],[1,1],[1,5],[16,10]],[[2,1],[1,5],[16,1],[1,5]],[[5,2],[14,1],[1,5]],[[1,2],[3,3],[3,9],[3,6],[3,4],[3,7],[3,8],[1,5]],[[5,2]]]}, + {"width":60,"source":"flowchart BT\n F3_1[Node F3_1]\n F3_4[Node F3_4]\n F3_3[Node F3_3]\n F3_2[Node F3_2]\n F3_3 -->|flow_edge_3_0| F3_4\n F3_2 -->|flow_edge_3_1| F3_3\n F3_1 -->|flow_edge_3_5| F3_4\n F3_1 -->|flow_edge_3_6| F3_4\n F3_2 -->|flow_edge_3_7| F3_1\n F3_1 -->|flow_edge_3_8| F3_4","height":15,"lines":[" ╭───────────╮"," │ Node F3_4 │"," ╰───────────╯"," ▲"," ├─ flow_edge_3_0 ─╮"," │ │"," ╭───────────╮ │ ╭─────┴─────╮","╭─▶│ Node F3_1 │ │ │ Node F3_3 │◀─╮","│ ╰─────┬─────╯ │ ╰───────────╯ │","│ ├─ flow_edge_3_5 ─┤ │","│ ├─ flow_edge_3_6 ─┤ │","│ ╰─ flow_edge_3_8 ─╯ │","│ ╭───────────╮ │","╰── flow_edge_3_7 ───┤ Node F3_2 ├─── flow_edge_3_1 ──╯"," ╰───────────╯"],"runs":[[[21,1],[13,2]],[[21,1],[1,2],[11,3],[1,2]],[[21,1],[13,2]],[[27,1],[1,5]],[[27,1],[2,5],[15,10],[2,5]],[[27,1],[1,5],[17,1],[1,7]],[[3,1],[13,2],[11,1],[1,5],[11,1],[6,2],[1,6],[6,2]],[[3,5],[1,2],[11,3],[1,2],[11,1],[1,5],[11,1],[1,2],[11,3],[1,2],[3,5]],[[1,5],[2,1],[6,2],[1,4],[6,2],[11,1],[1,5],[11,1],[13,2],[2,1],[1,5]],[[1,5],[8,1],[2,5],[15,10],[2,5],[26,1],[1,5]],[[1,5],[8,1],[2,5],[15,10],[2,5],[26,1],[1,5]],[[1,5],[8,1],[2,5],[15,10],[2,5],[26,1],[1,5]],[[1,5],[20,1],[13,2],[20,1],[1,5]],[[3,5],[15,10],[1,8],[1,7],[1,4],[1,6],[11,3],[1,6],[1,4],[1,7],[1,8],[15,10],[3,5]],[[21,1],[13,2]]]}, + {"width":60,"source":"flowchart BT\n F3_0[Node F3_0]\n F3_1[Node F3_1]\n F3_2[Node F3_2]\n F3_3[Node F3_3]\n F3_4[Node F3_4]\n F3_0 -->|flow_edge_3_0| F3_1\n F3_1 -->|flow_edge_3_1| F3_2\n F3_2 -->|flow_edge_3_2| F3_3\n F3_3 -->|flow_edge_3_3| F3_4\n F3_0 -->|flow_edge_3_4| F3_4\n F3_0 -->|flow_edge_3_5| F3_0\n F3_1 -->|flow_edge_3_6| F3_4\n F3_3 -->|flow_edge_3_7| F3_0\n F3_1 -->|flow_edge_3_8| F3_4\n F3_3 -->|flow_edge_3_9| F3_0","height":28,"lines":[" ╭╮"," ││","╭──────────────────┼┼──────┬──────────── flow_edge_3_3 ─────────────╮","│ flow_edge_3_7 │╭─────┴─────╮ │","├──────────────────┼▶┤ Node F3_3 │ │","│ │ ╰───────────╯ │","│ │ │","│ │ │","│ │ │","│ │ ╭───────────╮ │","├── flow_edge_3_2 ─┼─┤ Node F3_2 │ │","│ │ ╰───────────╯ │","│ flow_edge_3_9 │ ▲ │","│ ╭─────────┼───────╯ flow_edge_3_1 │","│ │ │ │","│ ╭─────┴─────╮ │ ╭───────────╮ │","├─▶│ Node F3_1 ├╮ │ ╭▶│ Node F3_4 │◀───────────────╯","│ ╰───────────╯│ │ │ ╰───────────╯","│ flow_edge_3_8 │ │ │ ▲","│ │ │ │ │"," flow_edge_3_0 ─┼──┼───────╮ │ │","│ flow_edge_3_6 │ │ ╭─────┴─────╮ │ │","├───────────────┼──┴▶│ Node F3_0 │ │ │","│ │ ╰─────┬─────╯ │ │","│ │ │ │ │","│ │ │ │ │","╰───────────────┴──────────┴─────────┴───────╯"," flow_edge_3_5 flow_edge_3_4 "],"runs":[[[19,1],[2,5]],[[19,1],[2,5]],[[40,5],[15,10],[14,5]],[[1,5],[4,1],[15,10],[1,5],[6,2],[1,4],[6,2],[34,1],[1,5]],[[21,5],[1,4],[11,3],[1,2],[34,1],[1,5]],[[1,5],[18,1],[1,5],[1,1],[13,2],[34,1],[1,5]],[[1,5],[18,1],[1,5],[48,1],[1,5]],[[1,5],[18,1],[1,5],[48,1],[1,5]],[[1,5],[18,1],[1,5],[48,1],[1,5]],[[1,5],[18,1],[1,5],[1,1],[13,2],[34,1],[1,5]],[[3,5],[15,10],[2,5],[1,7],[1,6],[11,3],[1,2],[34,1],[1,5]],[[1,5],[18,1],[1,5],[1,1],[13,2],[34,1],[1,5]],[[1,5],[2,1],[15,10],[1,1],[1,5],[7,1],[1,5],[40,1],[1,5]],[[1,5],[8,1],[19,5],[15,10],[25,1],[1,5]],[[1,5],[8,1],[1,7],[9,1],[1,5],[48,1],[1,5]],[[1,5],[2,1],[6,2],[1,6],[6,2],[3,1],[1,5],[19,1],[13,2],[16,1],[1,5]],[[3,5],[1,2],[11,3],[1,4],[1,5],[2,1],[1,5],[17,1],[2,5],[1,2],[11,3],[1,2],[17,5]],[[1,5],[2,1],[13,2],[1,5],[2,1],[1,5],[17,1],[1,5],[1,1],[13,2]],[[1,5],[15,10],[1,5],[2,1],[1,5],[17,1],[1,5],[7,1],[1,5]],[[1,5],[15,1],[1,5],[2,1],[1,5],[17,1],[1,5],[7,1],[1,5]],[[15,10],[13,5],[9,1],[1,5],[7,1],[1,5]],[[1,5],[15,10],[1,5],[2,1],[1,5],[1,1],[6,2],[1,4],[6,2],[3,1],[1,5],[7,1],[1,5]],[[21,5],[1,2],[11,3],[1,2],[3,1],[1,5],[7,1],[1,5]],[[1,5],[15,1],[1,5],[4,1],[6,2],[1,4],[6,2],[3,1],[1,5],[7,1],[1,5]],[[1,5],[15,1],[1,5],[10,1],[1,5],[9,1],[1,5],[7,1],[1,5]],[[1,5],[15,1],[1,5],[10,1],[1,5],[9,1],[1,5],[7,1],[1,5]],[[46,5]],[[6,1],[15,10],[8,1],[15,10]]]}, + {"width":60,"source":"flowchart TB\n F9_0[Node F9_0]\n F9_1[Node F9_1]\n F9_2[Node F9_2]\n F9_3[Node F9_3]\n F9_4[Node F9_4]\n F9_5[Node F9_5]\n F9_6[Node F9_6]\n F9_0 -->|flow_edge_9_0| F9_1\n F9_1 -->|flow_edge_9_1| F9_2\n F9_2 -->|flow_edge_9_2| F9_3\n F9_3 -->|flow_edge_9_3| F9_4\n F9_4 -->|flow_edge_9_4| F9_5\n F9_5 -->|flow_edge_9_5| F9_6\n F9_2 -->|flow_edge_9_6| F9_3\n F9_1 -->|flow_edge_9_7| F9_0\n F9_5 -->|flow_edge_9_8| F9_6\n F9_6 -->|flow_edge_9_9| F9_3\n F9_0 -->|flow_edge_9_10| F9_1\n F9_1 -->|flow_edge_9_11| F9_5","height":33,"lines":["╭╮","││","││","││ flow_edge_9_6 ╭───────────╮","││ ╭──▶│ Node F9_0 ├┬────────────────╮","││ │ ╰───────────╯│ │","││ │ │ │","││ │ flow_edge_9_7 │ flow_edge_9_0 │ flow_edge_9_10 ","││ │ │ │","││ │ ╭───────────╮│ │","││ ╰───┤ Node F9_1 │▼────────────────╯","││ ╰─────┬─────╯","││ ╭─ flow_edge_9_1 ─┴─ flow_edge_9_11 ─╮","││ │ │","││ ▼ ▼","││╭───────────╮ ╭───────────╮ flow_edge_9_8 ","│╰┤ Node F9_2 ├╮ ╭▶│ Node F9_5 ├┬────────────────╮","│ ╰───────────╯│ │ ╰───────────╯│ │","│ │ │ │ │","│ │ flow_edge_9_2 │ │ flow_edge_9_5 │","│ │ │ │ │","│ ╭───────────╮│ │╭───────────╮ │ │","├▶│ Node F9_3 │▼ ╭┤ Node F9_6 │◀┴────────────────╯","│ ╰─────┬─────╯ │╰───────────╯","│ │ │","│ ╰─ flow_edge_9_3 ─╮ │","│ ▼ │","│ ╭───────────╮ │","│ │ Node F9_4 ├╮ │","│ ╰───────────╯│ │","│ flow_edge_9_4 │ │","│ │ │","╰────────── flow_edge_9_9 ───────┴───╯"],"runs":[[[2,5]],[[2,5]],[[2,5]],[[2,5],[15,10],[3,1],[13,2]],[[2,5],[14,1],[4,5],[1,2],[11,3],[1,4],[18,5]],[[2,5],[14,1],[1,5],[3,1],[13,2],[1,5],[16,1],[1,5]],[[2,5],[14,1],[1,5],[16,1],[1,5],[16,1],[1,5]],[[2,5],[14,1],[1,5],[15,10],[1,1],[1,5],[15,10],[1,1],[1,5],[16,10]],[[2,5],[14,1],[1,5],[16,1],[1,5],[16,1],[1,5]],[[2,5],[14,1],[1,5],[3,1],[13,2],[1,5],[16,1],[1,5]],[[2,5],[14,1],[1,5],[1,8],[1,7],[1,4],[1,6],[11,3],[1,2],[18,5]],[[2,5],[18,1],[6,2],[1,4],[6,2]],[[2,5],[6,1],[2,5],[15,10],[3,5],[16,10],[2,5]],[[2,5],[6,1],[1,5],[36,1],[1,5]],[[2,5],[6,1],[1,5],[36,1],[1,5]],[[2,5],[13,2],[24,1],[13,2],[2,1],[15,10]],[[2,5],[1,4],[11,3],[1,4],[1,5],[21,1],[2,5],[1,2],[11,3],[1,4],[18,5]],[[1,5],[1,1],[13,2],[1,5],[21,1],[1,5],[1,1],[13,2],[1,5],[16,1],[1,5]],[[1,5],[14,1],[1,5],[21,1],[1,5],[14,1],[1,5],[16,1],[1,5]],[[1,5],[14,1],[1,5],[15,10],[6,1],[1,5],[14,1],[1,5],[15,10],[1,1],[1,5]],[[1,5],[14,1],[1,5],[21,1],[1,5],[14,1],[1,5],[16,1],[1,5]],[[1,5],[1,1],[13,2],[1,5],[21,1],[1,5],[13,2],[1,1],[1,5],[16,1],[1,5]],[[2,5],[1,2],[11,3],[1,2],[1,5],[21,1],[1,5],[1,4],[11,3],[1,2],[19,5]],[[1,5],[1,1],[6,2],[1,6],[6,2],[22,1],[1,5],[13,2]],[[1,5],[7,1],[1,7],[28,1],[1,5]],[[1,5],[7,1],[2,5],[15,10],[2,5],[10,1],[1,5]],[[1,5],[25,1],[1,5],[10,1],[1,5]],[[1,5],[19,1],[13,2],[4,1],[1,5]],[[1,5],[19,1],[1,2],[11,3],[1,4],[1,5],[3,1],[1,5]],[[1,5],[19,1],[13,2],[1,5],[3,1],[1,5]],[[1,5],[17,1],[15,10],[1,5],[3,1],[1,5]],[[1,5],[32,1],[1,5],[3,1],[1,5]],[[11,5],[15,10],[12,5]]]}, + {"width":60,"source":"flowchart TB\n F7_0[Node F7_0]\n F7_1[Node F7_1]\n F7_2[Node F7_2]\n F7_3[Node F7_3]\n F7_4[Node F7_4]\n F7_5[Node F7_5]\n F7_6[Node F7_6]\n F7_7[Node F7_7]\n F7_0 -->|flow_edge_7_0| F7_1\n F7_1 -->|flow_edge_7_1| F7_2\n F7_2 -->|flow_edge_7_2| F7_3\n F7_3 -->|flow_edge_7_3| F7_4\n F7_4 -->|flow_edge_7_4| F7_5\n F7_5 -->|flow_edge_7_5| F7_6\n F7_6 -->|flow_edge_7_6| F7_7\n F7_7 -->|flow_edge_7_7| F7_2\n F7_3 -->|flow_edge_7_8| F7_3\n F7_0 -->|flow_edge_7_9| F7_4\n F7_5 -->|flow_edge_7_10| F7_6\n F7_4 -->|flow_edge_7_11| F7_2","height":33,"lines":[" ╭────────────────── flow_edge_7_3 ──────────────────╮"," │ │"," │ │"," │ ╭───────────╮ │"," │ │ Node F7_0 │ │"," │ ╰─────┬─────╯ │"," │ ╭─ flow_edge_7_0 ─┴─ flow_edge_7_9 ──╮ │"," │ │ │ │"," │ ▼ ▼ │"," │╭───────────╮ ╭───────────╮ │"," ││ Node F7_1 │ │ Node F7_4 │◀╯"," │╰─────┬─────╯ ╰─────┬─────╯"," │ │────────── flow_edge_7_11 ──────────┤"," │ │ flow_edge_7_1 │ flow_edge_7_4 "," │ ▼ ▼"," │╭───────────╮ ╭───────────╮ flow_edge_7_10 "," ││ Node F7_2 │◀╮ │ Node F7_5 ├┬────────────────╮"," │╰─────┬─────╯ │ ╰───────────╯│ │","╭─┼──────╯ │ │ │","╰─┼ flow_edge_7_2 │ flow_edge_7_5 │"," │ ▼ │ │ │"," │╭───────────╮ │ ╭───────────╮│ │"," ╰┤ Node F7_3 ├─┼─╮ │ Node F7_6 │▼────────────────╯"," ╰───────────╯ │ │ flow_edge_7_8 ╰─────┬─────╯"," ▲ │ │ │"," ╰───────┼─╯ ╭─ flow_edge_7_6 ──╯"," │ ▼"," │ ╭───────────╮"," │ ╭┤ Node F7_7 │"," │ │╰───────────╯"," │ │ flow_edge_7_7 "," │ │"," ╰──╯"],"runs":[[[2,1],[19,5],[15,10],[19,5]],[[2,1],[1,5],[51,1],[1,5]],[[2,1],[1,5],[51,1],[1,5]],[[2,1],[1,5],[18,1],[13,2],[20,1],[1,5]],[[2,1],[1,5],[18,1],[1,2],[11,3],[1,2],[20,1],[1,5]],[[2,1],[1,5],[18,1],[6,2],[1,4],[6,2],[20,1],[1,5]],[[2,1],[1,5],[6,1],[2,5],[15,10],[3,5],[15,10],[3,5],[7,1],[1,5]],[[2,1],[1,5],[6,1],[1,5],[36,1],[1,5],[7,1],[1,5]],[[2,1],[1,5],[6,1],[1,5],[36,1],[1,5],[7,1],[1,5]],[[2,1],[1,5],[13,2],[24,1],[13,2],[1,1],[1,5]],[[2,1],[1,5],[1,2],[11,3],[1,2],[24,1],[1,2],[11,3],[1,2],[2,5]],[[2,1],[1,5],[6,2],[1,6],[6,2],[24,1],[6,2],[1,4],[6,2]],[[2,1],[1,5],[6,1],[1,7],[10,5],[16,10],[11,5]],[[2,1],[1,5],[6,1],[1,5],[15,10],[21,1],[1,5],[15,10]],[[2,1],[1,5],[6,1],[1,5],[36,1],[1,5]],[[2,1],[1,5],[13,2],[24,1],[13,2],[2,1],[16,10]],[[2,1],[1,5],[1,2],[11,3],[1,2],[2,5],[22,1],[1,2],[11,3],[1,4],[18,5]],[[2,1],[1,5],[6,2],[1,4],[6,2],[1,1],[1,5],[22,1],[13,2],[1,5],[16,1],[1,5]],[[10,5],[7,1],[1,5],[35,1],[1,5],[16,1],[1,5]],[[3,5],[15,10],[35,1],[1,5],[15,10],[1,1],[1,5]],[[2,1],[1,5],[6,1],[1,5],[7,1],[1,5],[35,1],[1,5],[16,1],[1,5]],[[2,1],[1,5],[13,2],[1,1],[1,5],[22,1],[13,2],[1,5],[16,1],[1,5]],[[2,1],[1,5],[1,4],[11,3],[1,6],[1,7],[3,5],[20,1],[1,2],[11,3],[1,2],[18,5]],[[3,1],[13,2],[1,1],[1,5],[1,1],[1,5],[15,10],[5,1],[6,2],[1,6],[6,2]],[[9,1],[1,5],[7,1],[1,5],[1,1],[1,5],[26,1],[1,7]],[[9,1],[11,5],[7,1],[2,5],[15,10],[3,5]],[[17,1],[1,5],[9,1],[1,5]],[[17,1],[1,5],[3,1],[13,2]],[[17,1],[1,5],[2,1],[1,5],[1,4],[11,3],[1,2]],[[17,1],[1,5],[2,1],[1,5],[13,2]],[[17,1],[1,5],[2,1],[1,5],[15,10]],[[17,1],[1,5],[2,1],[1,5]],[[17,1],[4,5]]]}, + {"width":60,"source":"flowchart BT\n F130_0[Node F130_0]\n F130_1[Node F130_1]\n F130_2[Node F130_2]\n F130_3[Node F130_3]\n F130_4[Node F130_4]\n F130_5[Node F130_5]\n F130_0 -->|flow_edge_130_0| F130_1\n F130_1 -->|flow_edge_130_1| F130_2\n F130_2 -->|flow_edge_130_2| F130_3\n F130_3 -->|flow_edge_130_3| F130_4\n F130_4 -->|flow_edge_130_4| F130_5\n F130_2 -->|flow_edge_130_5| F130_1\n F130_4 -->|flow_edge_130_6| F130_3\n F130_3 -->|flow_edge_130_7| F130_1\n F130_5 -->|flow_edge_130_8| F130_5\n F130_2 -->|flow_edge_130_9| F130_0\n F130_4 -->|flow_edge_130_10| F130_0\n F130_4 -->|flow_edge_130_11| F130_0","height":36,"lines":[" ╭───── flow_edge_130_8 ─────╮"," │ │"," │ │"," ╭──────┴──────╮ │"," │ Node F130_5 │◀───────────────────╯"," ╰─────────────╯"," ▲"," │ flow_edge_130_4 "," ├─── flow_edge_130_6 ───╮"," ╭──────┴──────╮ │"," ╭─▶│ Node F130_4 ├──┬─────────────┼───╮"," │ ╰─────────────╯ │ │ │"," │ │ │ │"," │ flow_edge_130_3 │ │ │"," │ │ │ │"," │ ╭─────────────╮ │ │ │"," ├─▶┤ Node F130_3 │◀─┼─────────────╯ │"," │ ╰─────────────╯ │ │"," │ │ │"," │ flow_edge_130_2 │ │"," │ │ │"," │ ╭─────────────╮ │ │"," flow_edge_130_7 ├─▶┤ Node F130_2 │ │ flow_edge_130_10 flow_edge_130_11 "," │ ╰─────────────╯ │ │"," │ │ │"," flow_edge_130_1 │ flow_edge_130_5 │ │"," │ │ │"," │ ╭─────────────╮ │ │"," flow_edge_130_9 ├─▶┤ Node F130_1 │ │ │"," │ ╰─────────────╯ │ │"," │ ▲ │ │"," │ ╰─────────┤ │"," │ ╭─────────┤ flow_edge_130_0 │"," │ ╭──────┴──────╮ │ │"," ╰─▶│ Node F130_0 │◀─┴─────────────────╯"," ╰─────────────╯"],"runs":[[[27,1],[6,5],[17,10],[6,5]],[[27,1],[1,7],[27,1],[1,5]],[[27,1],[1,4],[27,1],[1,5]],[[20,1],[7,2],[1,6],[7,2],[20,1],[1,5]],[[20,1],[1,2],[13,3],[1,2],[21,5]],[[20,1],[15,2]],[[27,1],[1,5]],[[27,1],[1,5],[17,10]],[[27,1],[4,5],[17,10],[4,5]],[[20,1],[7,2],[1,4],[7,2],[16,1],[1,5]],[[17,1],[3,5],[1,2],[13,3],[1,4],[21,5]],[[17,1],[1,5],[2,1],[15,2],[2,1],[1,5],[13,1],[1,5],[3,1],[1,5]],[[17,1],[1,5],[19,1],[1,5],[13,1],[1,5],[3,1],[1,5]],[[17,1],[1,5],[2,1],[17,10],[1,5],[13,1],[1,5],[3,1],[1,5]],[[17,1],[1,5],[19,1],[1,5],[13,1],[1,5],[3,1],[1,5]],[[17,1],[1,5],[2,1],[15,2],[2,1],[1,5],[13,1],[1,5],[3,1],[1,5]],[[17,1],[3,5],[1,4],[13,3],[1,2],[17,5],[3,1],[1,5]],[[17,1],[1,5],[2,1],[15,2],[2,1],[1,5],[17,1],[1,5]],[[17,1],[1,5],[19,1],[1,5],[17,1],[1,5]],[[17,1],[1,5],[2,1],[17,10],[1,5],[17,1],[1,5]],[[17,1],[1,5],[19,1],[1,5],[17,1],[1,5]],[[17,1],[1,5],[2,1],[15,2],[2,1],[1,5],[17,1],[1,5]],[[17,10],[3,5],[1,4],[13,3],[1,2],[2,1],[1,5],[36,10]],[[17,1],[1,5],[2,1],[15,2],[2,1],[1,5],[17,1],[1,5]],[[17,1],[1,5],[19,1],[1,5],[17,1],[1,5]],[[17,10],[1,5],[2,1],[17,10],[1,5],[17,1],[1,5]],[[17,1],[1,5],[19,1],[1,5],[17,1],[1,5]],[[17,1],[1,5],[2,1],[15,2],[2,1],[1,5],[17,1],[1,5]],[[17,10],[3,5],[1,4],[13,3],[1,2],[2,1],[1,5],[17,1],[1,5]],[[17,1],[1,5],[2,1],[15,2],[2,1],[1,5],[17,1],[1,5]],[[17,1],[1,5],[9,1],[1,5],[9,1],[1,5],[17,1],[1,5]],[[17,1],[1,5],[9,1],[11,5],[17,1],[1,5]],[[17,1],[1,5],[9,1],[11,5],[17,10],[1,5]],[[17,1],[1,5],[2,1],[7,2],[1,4],[7,2],[2,1],[1,5],[17,1],[1,5]],[[17,1],[3,5],[1,2],[13,3],[1,2],[21,5]],[[20,1],[15,2]]]}, + {"width":60,"source":"flowchart BT\n F141_0[Node F141_0]\n F141_1[Node F141_1]\n F141_2[Node F141_2]\n F141_3[Node F141_3]\n F141_4[Node F141_4]\n F141_5[Node F141_5]\n F141_6[Node F141_6]\n F141_7[Node F141_7]\n F141_0 -->|flow_edge_141_0| F141_1\n F141_1 -->|flow_edge_141_1| F141_2\n F141_2 -->|flow_edge_141_2| F141_3\n F141_3 -->|flow_edge_141_3| F141_4\n F141_4 -->|flow_edge_141_4| F141_5\n F141_5 -->|flow_edge_141_5| F141_6\n F141_6 -->|flow_edge_141_6| F141_7\n F141_7 -->|flow_edge_141_7| F141_1\n F141_4 -->|flow_edge_141_8| F141_4\n F141_3 -->|flow_edge_141_9| F141_0\n F141_3 -->|flow_edge_141_10| F141_2\n F141_7 -->|flow_edge_141_11| F141_6\n F141_7 -->|flow_edge_141_12| F141_2\n F141_7 -->|flow_edge_141_13| F141_5","height":46,"lines":[" ╭────────── flow_edge_141_12 ──────────╮"," ╭──────┴──────╮ │"," ╭──┤ Node F141_7 ├───────────╮ │"," │ ╰─────────────╯ │ │"," │ ▲ │ │"," │ │ flow_edge_141_6 │ flow_edge_141_11 │"," │ │ │ │"," │ ╭──────┴──────╮ │ │"," │ │ Node F141_6 │◀──────────┤ flow_edge_141_13 │"," │ ╰─────────────╯ │ │"," │ ▲ │ │"," │ │ flow_edge_141_5 │ │"," │ │ │ │"," │ ╭──────┴──────╮ │ │"," │ │ Node F141_5 │◀──────────╯ │"," │ ╰─────────────╯ │"," │ ▲ │"," │ │ flow_edge_141_4 │"," │ │ │"," │ ╭──────┴──────╮ │"," flow_edge_141_7 │ │ Node F141_4 ├───╮ │"," │ ╰─────────────╯ │ flow_edge_141_8 │"," │ ▲ │ │"," │ ╰─────────┬╯ │"," │ ╭─────────╯ flow_edge_141_3 │"," │ ╭──────┴──────╮ │"," ├──┤ Node F141_3 ├───────────╮ │"," │ ╰─────────────╯ │ │"," │ ▲ │ │"," │ │ flow_edge_141_2 │ flow_edge_141_10 │"," │ │ │ │"," │ ╭──────┴──────╮ │ │"," │ │ Node F141_2 │◀─┬────────┴───────────────────╯"," │ ╰─────────────╯ │"," │ │"," │ flow_edge_141_9 │ flow_edge_141_1 "," │ │"," │ ╭─────────────╮ │"," ├─▶│ Node F141_1 ├──╯"," │ ╰─────────────╯"," │ ▲"," │ │ flow_edge_141_0 "," │ │"," │ ╭──────┴──────╮"," ╰─▶│ Node F141_0 │"," ╰─────────────╯"],"runs":[[[27,1],[11,5],[18,10],[11,5]],[[20,1],[7,2],[1,4],[7,2],[31,1],[1,5]],[[17,1],[1,5],[1,7],[1,4],[1,6],[13,3],[1,4],[12,5],[19,1],[1,5]],[[17,1],[1,5],[2,1],[15,2],[11,1],[1,5],[19,1],[1,5]],[[17,1],[1,5],[9,1],[1,5],[18,1],[1,5],[19,1],[1,5]],[[17,1],[1,5],[9,1],[1,7],[17,10],[1,1],[1,5],[18,10],[1,1],[1,5]],[[17,1],[1,5],[9,1],[1,4],[18,1],[1,5],[19,1],[1,5]],[[17,1],[1,5],[2,1],[7,2],[1,6],[7,2],[11,1],[1,5],[19,1],[1,5]],[[17,1],[1,5],[2,1],[1,2],[13,3],[1,2],[12,5],[18,10],[1,1],[1,5]],[[17,1],[1,5],[2,1],[15,2],[11,1],[1,5],[19,1],[1,5]],[[17,1],[1,5],[9,1],[1,5],[18,1],[1,5],[19,1],[1,5]],[[17,1],[1,5],[9,1],[1,7],[17,10],[1,1],[1,5],[19,1],[1,5]],[[17,1],[1,5],[9,1],[1,4],[18,1],[1,5],[19,1],[1,5]],[[17,1],[1,5],[2,1],[7,2],[1,6],[7,2],[11,1],[1,5],[19,1],[1,5]],[[17,1],[1,5],[2,1],[1,2],[13,3],[1,2],[12,5],[19,1],[1,5]],[[17,1],[1,5],[2,1],[15,2],[31,1],[1,5]],[[17,1],[1,5],[9,1],[1,5],[38,1],[1,5]],[[17,1],[1,5],[9,1],[1,7],[17,10],[21,1],[1,5]],[[17,1],[1,5],[9,1],[1,4],[38,1],[1,5]],[[17,1],[1,5],[2,1],[7,2],[1,6],[7,2],[31,1],[1,5]],[[17,10],[1,5],[2,1],[1,2],[13,3],[1,6],[1,4],[1,7],[1,8],[1,5],[27,1],[1,5]],[[17,1],[1,5],[2,1],[15,2],[3,1],[1,5],[17,10],[10,1],[1,5]],[[17,1],[1,5],[9,1],[1,5],[10,1],[1,5],[27,1],[1,5]],[[17,1],[1,5],[9,1],[12,5],[27,1],[1,5]],[[17,1],[1,5],[9,1],[11,5],[17,10],[11,1],[1,5]],[[17,1],[1,5],[2,1],[7,2],[1,4],[7,2],[31,1],[1,5]],[[17,1],[1,5],[1,7],[1,4],[1,6],[13,3],[2,9],[3,6],[2,4],[3,7],[2,8],[1,5],[19,1],[1,5]],[[17,1],[1,5],[2,1],[15,2],[11,1],[1,5],[19,1],[1,5]],[[17,1],[1,5],[9,1],[1,5],[18,1],[1,5],[19,1],[1,5]],[[17,1],[1,5],[9,1],[1,7],[17,10],[1,1],[1,5],[18,10],[1,1],[1,5]],[[17,1],[1,5],[9,1],[1,4],[18,1],[1,5],[19,1],[1,5]],[[17,1],[1,5],[2,1],[7,2],[1,6],[7,2],[11,1],[1,5],[19,1],[1,5]],[[17,1],[1,5],[2,1],[1,2],[13,3],[1,2],[32,5]],[[17,1],[1,5],[2,1],[15,2],[2,1],[1,5]],[[17,1],[1,5],[19,1],[1,5]],[[17,1],[1,5],[2,1],[17,10],[1,5],[17,10]],[[17,1],[1,5],[19,1],[1,5]],[[17,1],[1,5],[2,1],[15,2],[2,1],[1,5]],[[17,1],[3,5],[1,2],[13,3],[1,6],[1,4],[1,7],[1,5]],[[17,1],[1,5],[2,1],[15,2]],[[17,1],[1,5],[9,1],[1,5]],[[17,1],[1,5],[9,1],[1,7],[17,10]],[[17,1],[1,5],[9,1],[1,4]],[[17,1],[1,5],[2,1],[7,2],[1,6],[7,2]],[[17,1],[3,5],[1,2],[13,3],[1,2]],[[20,1],[15,2]]]}, + {"width":60,"source":"flowchart BT\n F223_0[Node F223_0]\n F223_1[Node F223_1]\n F223_2[Node F223_2]\n F223_3[Node F223_3]\n F223_4[Node F223_4]\n F223_5[Node F223_5]\n F223_6[Node F223_6]\n F223_0 -->|flow_edge_223_0| F223_1\n F223_1 -->|flow_edge_223_1| F223_2\n F223_2 -->|flow_edge_223_2| F223_3\n F223_3 -->|flow_edge_223_3| F223_4\n F223_4 -->|flow_edge_223_4| F223_5\n F223_5 -->|flow_edge_223_5| F223_6\n F223_5 -->|flow_edge_223_6| F223_2\n F223_2 -->|flow_edge_223_7| F223_6\n F223_3 -->|flow_edge_223_8| F223_6","height":38,"lines":[" ╭───────── flow_edge_223_5 ──────────╮"," │ │"," ╭──────────┬ flow_edge_223_8 ───────────╮ │"," │ ││ flow_edge_223_6 │ │"," │ ││ │ │"," │ ││╭─────────────╮ │ │"," │ │╰┤ Node F223_5 │ │ │"," │ │ ╰─────────────╯ │ │"," │ │ ▲ │ │"," │ │ │ flow_edge_223_4 │ │"," │ │ │ │ │"," │ │ ╭──────┴──────╮ │ │"," ╭─────────┼──────────┼▶│ Node F223_4 │ │ │"," │ │ │ ╰─────────────╯ │ │"," │ │ │ │ │"," flow_edge_223_3 │ │ │ │ │"," │ │ │ ▼ │"," │ ╭──────┴──────╮ │ ╭─────────────╮ │"," ╰──┤ Node F223_3 │ │ │ Node F223_6 │◀╯"," ╰─────────────╯ │ ╰─────────────╯"," ▲ │ ▲"," ╰──────────┼────────────────────────────┼─────────╮"," │ ╭─ flow_edge_223_7 ─╯ │"," │ ╭──────┴──────╮ │"," ╰▶│ Node F223_2 ├─── flow_edge_223_2 ──╯"," ╰─────────────╯"," ▲"," │ flow_edge_223_1 "," │"," ╭──────┴──────╮"," │ Node F223_1 │"," ╰─────────────╯"," ▲"," │ flow_edge_223_0 "," │"," ╭──────┴──────╮"," │ Node F223_0 │"," ╰─────────────╯"],"runs":[[[39,1],[10,5],[17,10],[11,5]],[[39,1],[1,5],[36,1],[1,5]],[[27,1],[12,5],[17,10],[12,5],[8,1],[1,5]],[[27,1],[1,5],[10,1],[2,5],[17,10],[10,1],[1,5],[8,1],[1,5]],[[27,1],[1,5],[10,1],[2,5],[27,1],[1,5],[8,1],[1,5]],[[27,1],[1,5],[10,1],[2,5],[15,2],[12,1],[1,5],[8,1],[1,5]],[[27,1],[1,5],[10,1],[2,5],[1,4],[13,3],[1,2],[12,1],[1,5],[8,1],[1,5]],[[27,1],[1,5],[10,1],[1,5],[1,1],[15,2],[12,1],[1,5],[8,1],[1,5]],[[27,1],[1,5],[10,1],[1,5],[8,1],[1,5],[19,1],[1,5],[8,1],[1,5]],[[27,1],[1,5],[10,1],[1,5],[8,1],[1,7],[17,10],[2,1],[1,5],[8,1],[1,5]],[[27,1],[1,5],[10,1],[1,5],[8,1],[1,4],[19,1],[1,5],[8,1],[1,5]],[[27,1],[1,5],[10,1],[1,5],[1,1],[7,2],[1,6],[7,2],[12,1],[1,5],[8,1],[1,5]],[[17,1],[23,5],[1,2],[13,3],[1,2],[12,1],[1,5],[8,1],[1,5]],[[17,1],[1,5],[9,1],[1,8],[10,1],[1,5],[1,1],[15,2],[12,1],[1,5],[8,1],[1,5]],[[17,1],[1,5],[9,1],[1,7],[10,1],[1,5],[28,1],[1,5],[8,1],[1,5]],[[17,10],[1,5],[9,1],[1,4],[10,1],[1,5],[28,1],[1,5],[8,1],[1,5]],[[17,1],[1,5],[9,1],[1,6],[10,1],[1,5],[28,1],[1,5],[8,1],[1,5]],[[17,1],[1,5],[2,1],[7,2],[1,9],[7,2],[3,1],[1,5],[21,1],[15,2],[1,1],[1,5]],[[17,1],[1,5],[1,7],[1,4],[1,6],[13,3],[1,2],[3,1],[1,5],[21,1],[1,2],[13,3],[1,2],[2,5]],[[20,1],[15,2],[3,1],[1,5],[21,1],[15,2]],[[27,1],[1,5],[10,1],[1,5],[28,1],[1,5]],[[27,1],[51,5]],[[38,1],[1,5],[8,1],[2,5],[17,10],[2,5],[9,1],[1,5]],[[38,1],[1,5],[1,1],[7,2],[1,4],[7,2],[22,1],[1,5]],[[38,1],[2,5],[1,2],[13,3],[1,6],[1,4],[1,7],[1,8],[17,10],[3,5]],[[40,1],[15,2]],[[47,1],[1,5]],[[47,1],[1,7],[17,10]],[[47,1],[1,4]],[[40,1],[7,2],[1,6],[7,2]],[[40,1],[1,2],[13,3],[1,2]],[[40,1],[15,2]],[[47,1],[1,5]],[[47,1],[1,7],[17,10]],[[47,1],[1,4]],[[40,1],[7,2],[1,6],[7,2]],[[40,1],[1,2],[13,3],[1,2]],[[40,1],[15,2]]]}, + {"width":60,"source":"flowchart TB\n F238_0[Node F238_0]\n F238_1[Node F238_1]\n F238_2[Node F238_2]\n F238_3[Node F238_3]\n F238_4[Node F238_4]\n F238_5[Node F238_5]\n F238_0 -->|flow_edge_238_0| F238_1\n F238_1 -->|flow_edge_238_1| F238_2\n F238_2 -->|flow_edge_238_2| F238_3\n F238_3 -->|flow_edge_238_3| F238_4\n F238_4 -->|flow_edge_238_4| F238_5\n F238_1 -->|flow_edge_238_5| F238_2\n F238_3 -->|flow_edge_238_6| F238_3\n F238_2 -->|flow_edge_238_7| F238_0\n F238_1 -->|flow_edge_238_8| F238_5\n F238_1 -->|flow_edge_238_9| F238_1\n F238_4 -->|flow_edge_238_10| F238_4\n F238_4 -->|flow_edge_238_11| F238_0\n F238_2 -->|flow_edge_238_12| F238_2","height":33,"lines":[" ╭──┬╮ flow_edge_238_0 "," │ ││"," │ ││"," │ ││╭─────────────╮"," │ ├▶┤ Node F238_0 │◀──────────────────────╮"," │ │ ╰─────────────╯ │"," │ │ │"," │ │ │"," flow_edge_238_7 │ │ │"," flow_edge_238_1 │ │ ╭─────────────╮ │"," ╭─────────────────┼──┴▶┤ Node F238_1 ├───╮ │"," flow_edge_238_8 flow_edge_238_5 │ ╰─────────────╯ │ flow_edge_238_9 │"," │ │ ▲ │ │"," ├─────────────────┼───────────┴──────────┴─────────╮ │"," │ │ ▼ │"," │ ╭─────────────╮│ ╭─────────────╮ │"," ├─▶┤ Node F238_2 ├╯ │ Node F238_5 │◀╮│"," │ ╰──────┬──────╯ ╰─────────────╯ ││"," │ │ ││"," flow_edge_238_2 │ │ ││"," │ │ ││"," │ │ ╭─────────────╮ ││"," ├─────────┼───────────▶│ Node F238_3 ├─── flow_edge_238_3 ──┼┤"," │ │ ╰─────────────╯ │ flow_edge_238_6 ││"," │ │ ▲ │ ││"," │ │ flow_edge_238_12 ├──────────┴──────────────────┼┤"," │ │ ▼ ││"," │ │ ╭─────────────╮ ││"," │ │ ╭┤ Node F238_4 ├─── flow_edge_238_11 ─┼╯"," │ │ │╰─────────────╯ │ flow_edge_238_10 │"," │ │ │ ▲ │ │"," │ │ │ ╰──────────╯ │"," ╰─────────╯ ╰────────── flow_edge_238_4 ──────────╯"],"runs":[[[35,1],[5,5],[17,10]],[[35,1],[1,5],[2,1],[2,5]],[[35,1],[1,5],[2,1],[2,5]],[[35,1],[1,5],[2,1],[2,5],[15,2]],[[35,1],[1,5],[2,1],[2,5],[1,4],[13,3],[1,2],[24,5]],[[35,1],[1,5],[2,1],[1,5],[1,1],[15,2],[23,1],[1,5]],[[35,1],[1,5],[2,1],[1,5],[39,1],[1,5]],[[35,1],[1,5],[2,1],[1,5],[39,1],[1,5]],[[18,1],[17,10],[1,5],[2,1],[1,5],[39,1],[1,5]],[[17,1],[17,10],[1,1],[1,5],[2,1],[1,5],[1,1],[15,2],[23,1],[1,5]],[[17,1],[23,5],[1,4],[13,3],[1,6],[1,4],[1,7],[1,8],[1,5],[19,1],[1,5]],[[34,10],[1,1],[1,5],[4,1],[15,2],[3,1],[1,5],[17,10],[2,1],[1,5]],[[17,1],[1,5],[17,1],[1,5],[11,1],[1,5],[10,1],[1,5],[19,1],[1,5]],[[17,1],[52,5],[9,1],[1,5]],[[17,1],[1,5],[17,1],[1,5],[32,1],[1,5],[9,1],[1,5]],[[17,1],[1,5],[2,1],[15,2],[1,5],[25,1],[15,2],[2,1],[1,5]],[[17,1],[3,5],[1,4],[13,3],[1,4],[1,5],[25,1],[1,2],[13,3],[1,2],[3,5]],[[17,1],[1,5],[2,1],[7,2],[1,9],[7,2],[26,1],[15,2],[1,1],[2,5]],[[17,1],[1,5],[9,1],[1,6],[49,1],[2,5]],[[17,10],[1,5],[9,1],[1,4],[49,1],[2,5]],[[17,1],[1,5],[9,1],[1,7],[49,1],[2,5]],[[17,1],[1,5],[9,1],[1,8],[12,1],[15,2],[22,1],[2,5]],[[17,1],[23,5],[1,2],[13,3],[1,4],[3,5],[17,10],[4,5]],[[17,1],[1,5],[9,1],[1,5],[12,1],[15,2],[3,1],[1,5],[17,10],[1,1],[2,5]],[[17,1],[1,5],[9,1],[1,5],[19,1],[1,5],[10,1],[1,5],[18,1],[2,5]],[[17,1],[1,5],[9,1],[1,5],[18,10],[1,1],[32,5]],[[17,1],[1,5],[9,1],[1,5],[19,1],[1,5],[29,1],[2,5]],[[17,1],[1,5],[9,1],[1,5],[12,1],[15,2],[22,1],[2,5]],[[17,1],[1,5],[9,1],[1,5],[11,1],[1,5],[1,4],[13,3],[1,4],[3,5],[18,10],[3,5]],[[17,1],[1,5],[9,1],[1,5],[11,1],[1,5],[15,2],[3,1],[1,5],[18,10],[1,5]],[[17,1],[1,5],[9,1],[1,5],[11,1],[1,5],[7,1],[1,5],[10,1],[1,5],[18,1],[1,5]],[[17,1],[1,5],[9,1],[1,5],[11,1],[1,5],[7,1],[12,5],[18,1],[1,5]],[[17,1],[11,5],[11,1],[11,5],[17,10],[11,5]]]}, + {"width":60,"source":"flowchart LR\n A[Source] -->|first 1<br/>first 2<br/>first 3<br/>first 4| B[Target]\n A -->|second 1<br/>second 2<br/>second 3<br/>second 4| B\n A -->|third 1<br/>third 2<br/>third 3<br/>third 4| B","height":18,"lines":["╭────────╮ ╭────────╮","│ Source │ │ Target │","╰────┬───╯ ╰────────╯"," │ first 1 ▲"," │ first 2 │"," │ first 3 │"," │ first 4 │"," ├──────────────────────────┤"," │ second 1 │"," │ second 2 │"," │ second 3 │"," │ second 4 │"," ├──────────────────────────┤"," │ third 1 │"," │ third 2 │"," │ third 3 │"," │ third 4 │"," ╰──────────────────────────╯"],"runs":[[[10,2],[17,1],[10,2]],[[1,2],[8,3],[1,2],[17,1],[1,2],[8,3],[1,2]],[[5,2],[1,4],[4,2],[17,1],[10,2]],[[5,1],[1,5],[8,1],[9,10],[9,1],[1,5]],[[5,1],[1,5],[8,1],[9,10],[9,1],[1,5]],[[5,1],[1,5],[8,1],[9,10],[9,1],[1,5]],[[5,1],[1,5],[8,1],[9,10],[9,1],[1,5]],[[5,1],[28,5]],[[5,1],[1,5],[8,1],[10,10],[8,1],[1,5]],[[5,1],[1,5],[8,1],[10,10],[8,1],[1,5]],[[5,1],[1,5],[8,1],[10,10],[8,1],[1,5]],[[5,1],[1,5],[8,1],[10,10],[8,1],[1,5]],[[5,1],[28,5]],[[5,1],[1,5],[8,1],[9,10],[9,1],[1,5]],[[5,1],[1,5],[8,1],[9,10],[9,1],[1,5]],[[5,1],[1,5],[8,1],[9,10],[9,1],[1,5]],[[5,1],[1,5],[8,1],[9,10],[9,1],[1,5]],[[5,1],[28,5]]]}, + {"width":60,"source":"flowchart TD\n A[Source] -->|first lane<br/>first two| B[Target]\n A -->|second lane<br/>second two| B\n A -->|third lane<br/>third two| B","height":10,"lines":["╭────────╮","│ Source ├┬─────────────┬──────────────╮","╰────────╯│ │ │"," │ │ │"," │ first lane │ second lane │ third lane "," │ first two │ second two │ third two "," │ │ │","╭────────╮│ │ │","│ Target │▼─────────────┴──────────────╯","╰────────╯"],"runs":[[[10,2]],[[1,2],[8,3],[1,4],[30,5]],[[10,2],[1,5],[13,1],[1,5],[14,1],[1,5]],[[10,1],[1,5],[13,1],[1,5],[14,1],[1,5]],[[10,1],[1,5],[12,10],[1,1],[1,5],[13,10],[1,1],[1,5],[12,10]],[[10,1],[1,5],[11,10],[2,1],[1,5],[12,10],[2,1],[1,5],[11,10]],[[10,1],[1,5],[13,1],[1,5],[14,1],[1,5]],[[10,2],[1,5],[13,1],[1,5],[14,1],[1,5]],[[1,2],[8,3],[1,2],[30,5]],[[10,2]]]}, + {"width":60,"source":"flowchart TD\n A[Source] -->|one alpha<br/>one beta| B[Target]\n A -->|two alpha<br/>two beta| B\n A -->|three alpha<br/>three beta| B\n A -->|four alpha<br/>four beta| B\n A -->|five alpha<br/>five beta| B","height":11,"lines":[" five alpha ","╭────────╮ five beta ","│ Source ├┬────────────┬────────────┬──────────────┬─────────────╮","╰────────╯│ │ │ │ │"," │ │ │ │ │"," │ one alpha │ two alpha │ three alpha │ four alpha │"," │ one beta │ two beta │ three beta │ four beta │"," │ │ │ │ │","╭────────╮│ │ │ │ │","│ Target │▼────────────┴────────────┴──────────────┴─────────────╯","╰────────╯"],"runs":[[[32,1],[12,10]],[[10,2],[22,1],[11,10]],[[1,2],[8,3],[1,4],[56,5]],[[10,2],[1,5],[12,1],[1,5],[12,1],[1,5],[14,1],[1,5],[13,1],[1,5]],[[10,1],[1,5],[12,1],[1,5],[12,1],[1,5],[14,1],[1,5],[13,1],[1,5]],[[10,1],[1,5],[11,10],[1,1],[1,5],[11,10],[1,1],[1,5],[13,10],[1,1],[1,5],[12,10],[1,1],[1,5]],[[10,1],[1,5],[10,10],[2,1],[1,5],[10,10],[2,1],[1,5],[12,10],[2,1],[1,5],[11,10],[2,1],[1,5]],[[10,1],[1,5],[12,1],[1,5],[12,1],[1,5],[14,1],[1,5],[13,1],[1,5]],[[10,2],[1,5],[12,1],[1,5],[12,1],[1,5],[14,1],[1,5],[13,1],[1,5]],[[1,2],[8,3],[1,2],[56,5]],[[10,2]]]}, + {"width":60,"source":"flowchart TD\n S[The Boss] --> A[A]\n S --> B[B]\n S --> C[C]\n S --> D[D]\n S --> E[E]\n S --> F[F]\n S --> G[G]\n S --> H[H]\n S --> I[I]\n S --> J[J]","height":19,"lines":[" ╭──────────╮","╭───────────────────────┤ The Boss ├────────────────────────╮","│ ╰─────┬────╯ │","│ ╭─────────┬─────────┬────┼────┬─────────┬─────────╮ │","│ ▼ ▼ ▼ │ ▼ ▼ ▼ │","│ ╭───╮ ╭───╮ ╭───╮ │ ╭───╮ ╭───╮ ╭───╮ │","│ │ A │ │ B │ │ C │ │ │ D │ │ E │ │ F │ │","│ ╰───╯ ╰───╯ ╰───╯ │ ╰───╯ ╰───╯ ╰───╯ │","│ │ │","│ │ │","│ │ │","│ │ │","│ │ │","│ ╭───╮ ╭───╮ │ ╭───╮ ╭───╮ │","╰───────────▶│ G │ │ H │ │ │ I │ │ J │◀───────────╯"," ╰───╯ ╰───╯ │ ╰───╯ ╰───╯"," ▲ │ ▲"," │ │ │"," ╰────┴────╯"],"runs":[[[24,1],[12,2]],[[1,5],[5,8],[5,7],[5,4],[5,6],[4,9],[10,3],[5,9],[5,6],[5,4],[5,7],[5,8],[1,5]],[[1,5],[23,1],[6,2],[1,4],[5,2],[24,1],[1,5]],[[1,5],[4,1],[51,5],[4,1],[1,5]],[[1,5],[4,1],[1,5],[9,1],[1,5],[9,1],[1,5],[4,1],[1,5],[4,1],[1,5],[9,1],[1,5],[9,1],[1,5],[4,1],[1,5]],[[1,5],[2,1],[5,2],[5,1],[5,2],[5,1],[5,2],[2,1],[1,5],[2,1],[5,2],[5,1],[5,2],[5,1],[5,2],[2,1],[1,5]],[[1,5],[2,1],[1,2],[3,3],[1,2],[5,1],[1,2],[3,3],[1,2],[5,1],[1,2],[3,3],[1,2],[2,1],[1,5],[2,1],[1,2],[3,3],[1,2],[5,1],[1,2],[3,3],[1,2],[5,1],[1,2],[3,3],[1,2],[2,1],[1,5]],[[1,5],[2,1],[5,2],[5,1],[5,2],[5,1],[5,2],[2,1],[1,5],[2,1],[5,2],[5,1],[5,2],[5,1],[5,2],[2,1],[1,5]],[[1,5],[29,1],[1,5],[29,1],[1,5]],[[1,5],[29,1],[1,5],[29,1],[1,5]],[[1,5],[29,1],[1,5],[29,1],[1,5]],[[1,5],[29,1],[1,5],[29,1],[1,5]],[[1,5],[29,1],[1,5],[29,1],[1,5]],[[1,5],[12,1],[5,2],[5,1],[5,2],[2,1],[1,5],[2,1],[5,2],[5,1],[5,2],[12,1],[1,5]],[[13,5],[1,2],[3,3],[1,2],[5,1],[1,2],[3,3],[1,2],[2,1],[1,5],[2,1],[1,2],[3,3],[1,2],[5,1],[1,2],[3,3],[1,2],[13,5]],[[13,1],[5,2],[5,1],[5,2],[2,1],[1,5],[2,1],[5,2],[5,1],[5,2]],[[25,1],[1,5],[4,1],[1,5],[4,1],[1,5]],[[25,1],[1,5],[4,1],[1,5],[4,1],[1,5]],[[25,1],[11,5]]]}, + {"width":60,"source":"flowchart TD\n A[Start] --> B[Validate]\n B --> C[Publish]\n A --> C","height":13,"lines":[" ╭───────╮"," │ Start ├────╮"," ╰───┬───╯ │"," ╰╮ │"," ▼ │","╭──────────╮ │","│ Validate │ │","╰────┬─────╯ │"," │ │"," ▼ │","╭─────────╮ │","│ Publish │◀──╯","╰─────────╯"],"runs":[[[1,1],[9,2]],[[1,1],[1,2],[7,3],[1,9],[1,6],[1,4],[1,7],[1,8],[1,5]],[[1,1],[4,2],[1,4],[4,2],[4,1],[1,5]],[[5,1],[2,5],[7,1],[1,5]],[[6,1],[1,5],[7,1],[1,5]],[[12,2],[2,1],[1,5]],[[1,2],[10,3],[1,2],[2,1],[1,5]],[[5,2],[1,6],[6,2],[2,1],[1,5]],[[5,1],[1,7],[8,1],[1,5]],[[5,1],[1,5],[8,1],[1,5]],[[11,2],[3,1],[1,5]],[[1,2],[9,3],[1,2],[4,5]],[[11,2]]]}, + {"width":60,"source":"flowchart TD\n A{Question} -->|Path one| B[Step one]\n A -->|Path two| C[Step two]\n B --> D{Check one}\n D -->|No| E{Retry one}\n E -->|No| B\n C --> F{Check two}\n F -->|No| G{Retry two}\n G -->|No| C\n E -->|Yes| H[Rethink]\n G -->|Yes| H\n H --> A\n D -->|Yes| I([Done])\n F -->|Yes| I","height":33,"lines":[" ╭─────────╮"," ╭─╯ ╰─╮"," │ Question │◀──────────────────╮"," ╰─╮ ╭─╯ │"," ╰────┬────╯ │"," ╭─ Path one ──┴── Path two ───╮ │","╭─── No ────┤ │ │","│ ▼ ▼ │","│ ╭──────────╮ ╭──────────╮ │","│ │ Step one │ │ Step two │◀────┤","│ ╰─────┬────╯ ╰─────┬────╯ │","│ │ │ │","│ │ ╭─╯ │","│ ▼ ▼ │","│ ╭─────────╮ ╭─────────╮ │","│ ╭─╯ ╰─╮ ╭─╯ ╰─╮ │","│ │ Check one │ │ Check two │ │ No ","│ ╰─╮ ╭─╯ ╰─╮ ╭─╯ │","│ ╰────┬────╯ ╰────┬────╯ │","│ ╭─┴──── Yes ─────┬─── Yes ────┴──╮ │","│ │ No │ │ No │","│ ▼ │ ▼ │","│ ╭─────────╮ ▼ ╭─────────╮ │","│ ╭─╯ ╰─╮ ╭──────╮ ╭─╯ ╰─╮ │","╰──┤ Retry one │ │ Done │ │ Retry two ├──┤"," ╰─╮ ╭─╯ ╰──────╯ ╰─╮ ╭─╯ │"," ╰────┬────╯ ╰────┬────╯ │"," │ │ │"," ╰───── Yes ─────┬───── Yes ──────╯ │"," ▼ │"," ╭─────────╮ │"," │ Rethink ├─────────────────────╯"," ╰─────────╯"],"runs":[[[21,1],[11,2]],[[19,1],[3,2],[9,1],[3,2]],[[19,1],[1,2],[2,1],[8,3],[3,1],[1,2],[20,5]],[[19,1],[3,2],[9,1],[3,2],[19,1],[1,5]],[[21,1],[5,2],[1,4],[5,2],[21,1],[1,5]],[[12,1],[2,5],[10,10],[5,5],[10,10],[4,5],[10,1],[1,5]],[[4,5],[4,10],[5,5],[29,1],[1,5],[10,1],[1,5]],[[1,5],[11,1],[1,5],[29,1],[1,5],[10,1],[1,5]],[[1,5],[5,1],[12,2],[18,1],[12,2],[5,1],[1,5]],[[1,5],[5,1],[1,2],[10,3],[1,2],[18,1],[1,2],[10,3],[1,2],[6,5]],[[1,5],[5,1],[6,2],[1,6],[5,2],[18,1],[6,2],[1,6],[5,2],[5,1],[1,5]],[[1,5],[11,1],[1,4],[29,1],[1,7],[10,1],[1,5]],[[1,5],[11,1],[1,7],[27,1],[3,5],[10,1],[1,5]],[[1,5],[11,1],[1,5],[27,1],[1,5],[12,1],[1,5]],[[1,5],[6,1],[11,2],[17,1],[11,2],[7,1],[1,5]],[[1,5],[4,1],[3,2],[9,1],[3,2],[13,1],[3,2],[9,1],[3,2],[5,1],[1,5]],[[1,5],[4,1],[1,2],[2,1],[9,3],[2,1],[1,2],[13,1],[1,2],[2,1],[9,3],[2,1],[1,2],[5,1],[1,5],[4,10]],[[1,5],[4,1],[3,2],[9,1],[3,2],[13,1],[3,2],[9,1],[3,2],[5,1],[1,5]],[[1,5],[6,1],[5,2],[1,4],[5,2],[17,1],[5,2],[1,4],[5,2],[7,1],[1,5]],[[1,5],[9,1],[7,5],[5,10],[9,5],[5,10],[8,5],[9,1],[1,5]],[[1,5],[9,1],[1,5],[4,10],[12,1],[1,5],[15,1],[1,5],[4,10],[5,1],[1,5]],[[1,5],[9,1],[1,5],[16,1],[1,5],[15,1],[1,5],[9,1],[1,5]],[[1,5],[4,1],[11,2],[11,1],[1,5],[10,1],[11,2],[4,1],[1,5]],[[1,5],[2,1],[3,2],[9,1],[3,2],[5,1],[8,2],[5,1],[3,2],[9,1],[3,2],[2,1],[1,5]],[[1,5],[1,7],[1,4],[1,6],[2,1],[9,3],[2,1],[1,2],[5,1],[1,2],[6,3],[1,2],[5,1],[1,2],[2,1],[9,3],[2,1],[1,6],[1,4],[1,7],[1,5]],[[3,1],[3,2],[9,1],[3,2],[5,1],[8,2],[5,1],[3,2],[9,1],[3,2],[2,1],[1,5]],[[5,1],[5,2],[1,6],[5,2],[22,1],[5,2],[1,6],[5,2],[4,1],[1,5]],[[10,1],[1,7],[32,1],[1,7],[9,1],[1,5]],[[10,1],[6,5],[5,10],[11,5],[5,10],[7,5],[9,1],[1,5]],[[26,1],[1,5],[26,1],[1,5]],[[21,1],[11,2],[21,1],[1,5]],[[21,1],[1,2],[9,3],[4,9],[5,6],[4,4],[5,7],[4,8],[1,5]],[[21,1],[11,2]]]}, + {"width":60,"source":"flowchart LR\n A[Start] --> B[Validate]\n B --> C[Publish]\n A --> C","height":6,"lines":[" ╭─────────────────────────────╮"," │ │"," │ ▼","╭───┴───╮ ╭──────────╮ ╭─────────╮","│ Start ├───▶│ Validate ├───▶│ Publish │","╰───────╯ ╰──────────╯ ╰─────────╯"],"runs":[[[4,1],[31,5]],[[4,1],[1,7],[29,1],[1,5]],[[4,1],[1,4],[29,1],[1,5]],[[4,2],[1,6],[4,2],[4,1],[12,2],[4,1],[11,2]],[[1,2],[7,3],[1,6],[1,7],[3,5],[1,2],[10,3],[1,6],[1,4],[1,7],[1,8],[1,5],[1,2],[9,3],[1,2]],[[9,2],[4,1],[12,2],[4,1],[11,2]]]}, + {"width":60,"source":"flowchart LR\n C[ReceiveInput] --> P[Persist ActivityRequested]\n P --> S[Self RunPendingActivity]\n S --> O[OpenCode async task]\n O --> M[Self OutputObserved]\n M --> E[Persist OutputObserved]","height":28,"lines":[" ╭──────────────╮"," │ ReceiveInput │"," ╰───────┬──────╯"," │"," ▼","╭───────────────────────────╮","│ Persist ActivityRequested │","╰─────────────┬─────────────╯"," │"," ▼"," ╭─────────────────────────╮"," │ Self RunPendingActivity │"," ╰────────────┬────────────╯"," │"," ▼"," ╭─────────────────────╮"," │ OpenCode async task │"," ╰──────────┬──────────╯"," │"," ▼"," ╭─────────────────────╮"," │ Self OutputObserved │"," ╰──────────┬──────────╯"," │"," ▼"," ╭────────────────────────╮"," │ Persist OutputObserved │"," ╰────────────────────────╯"],"runs":[[[6,1],[16,2]],[[6,1],[1,2],[14,3],[1,2]],[[6,1],[8,2],[1,6],[7,2]],[[14,1],[1,7]],[[14,1],[1,5]],[[29,2]],[[1,2],[27,3],[1,2]],[[14,2],[1,6],[14,2]],[[14,1],[1,7]],[[14,1],[1,5]],[[1,1],[27,2]],[[1,1],[1,2],[25,3],[1,2]],[[1,1],[13,2],[1,6],[13,2]],[[14,1],[1,7]],[[14,1],[1,5]],[[3,1],[23,2]],[[3,1],[1,2],[21,3],[1,2]],[[3,1],[11,2],[1,6],[11,2]],[[14,1],[1,7]],[[14,1],[1,5]],[[3,1],[23,2]],[[3,1],[1,2],[21,3],[1,2]],[[3,1],[11,2],[1,6],[11,2]],[[14,1],[1,7]],[[14,1],[1,5]],[[1,1],[26,2]],[[1,1],[1,2],[24,3],[1,2]],[[1,1],[26,2]]]}, + {"width":60,"source":"flowchart LR\n C[Commands] --> A[AgentThread activation]\n A -->|persist facts| J[(AgentThread journal)]\n A -->|resume / steer / abort| O[OpenCode session]\n O -->|observed output| A\n J -->|visible output requested| R[Reactor]\n R --> D[Discord]","height":27,"lines":[" ╭──────────╮"," │ Commands │"," ╰─────┬────╯"," │"," ▼"," ╭────────────────────────╮"," │ AgentThread activation │◀──── observed output ─────╮"," ╰────────────┬───────────╯ │"," ╭────────────┴─────────────╮ │"," │ persist facts │ │"," ▼ resume / steer / abort │ │","╭─────────────────────╮ ▼ │","├─────────────────────┤ ╭──────────────────╮ │","│ AgentThread journal │ │ OpenCode session ├────────────────╯","├─────────────────────┤ ╰──────────────────╯","╰──────────┬──────────╯"," │"," ╰ visible output requested "," ▼"," ╭─────────╮"," │ Reactor │"," ╰────┬────╯"," │"," ▼"," ╭─────────╮"," │ Discord │"," ╰─────────╯"],"runs":[[[18,1],[12,2]],[[18,1],[1,2],[10,3],[1,2]],[[18,1],[6,2],[1,6],[5,2]],[[24,1],[1,7]],[[24,1],[1,5]],[[11,1],[26,2]],[[11,1],[1,2],[24,3],[1,2],[5,5],[17,10],[6,5]],[[11,1],[13,2],[1,4],[12,2],[27,1],[1,5]],[[11,1],[28,5],[25,1],[1,5]],[[11,1],[1,5],[15,10],[11,1],[1,5],[25,1],[1,5]],[[11,1],[1,5],[2,1],[24,10],[1,5],[25,1],[1,5]],[[23,2],[15,1],[1,5],[25,1],[1,5]],[[23,2],[5,1],[20,2],[16,1],[1,5]],[[1,2],[21,3],[1,2],[5,1],[1,2],[18,3],[3,9],[4,6],[3,4],[4,7],[3,8],[1,5]],[[23,2],[5,1],[20,2]],[[11,2],[1,6],[11,2]],[[11,1],[1,7]],[[11,1],[1,5],[26,10]],[[23,1],[1,5]],[[18,1],[11,2]],[[18,1],[1,2],[9,3],[1,2]],[[18,1],[5,2],[1,6],[5,2]],[[23,1],[1,7]],[[23,1],[1,5]],[[18,1],[11,2]],[[18,1],[1,2],[9,3],[1,2]],[[18,1],[11,2]]]}, + {"width":60,"source":"flowchart BT\n N0[Outside zero]\n subgraph Outer\n N2[Two]\n subgraph Inner\n direction LR\n N3[Three]\n N4[Four]\n end\n N5[X]\n end\n N7[Outside seven]\n N7 --> N2\n N2 -->|label 6| N5\n N5 --> N4\n N0 --> N7","height":26,"lines":[" ╭─────────╮"," │ │"," │ │"," ╭───────┴──────╮ │"," │ Outside zero │ │"," ╰──────────────╯ │"," ▼"," ╭───────────────╮","╭───────────────┤ Outside seven │","│ ╰───────────────╯","│","│╭─ Outer ────────────────────────────────────────╮","││ ╭───╮ ╭─ Inner ───╮ │","││ ╭─────────────────▶│ X │ │ ╭───────╮ │ │","││ │ ╰─┬─╯ │ │ Three │ │ │","││ │ ╰────────╮ │ ╰───────╯ │ │","││ │ │ │ │ │","││ ╰───── label 6 ──────╮ │ │ │ │","││ ╭──┴──╮ │ │ │ │","╰───────────────────▶│ Two │ │ │ │ │"," │ ╰─────╯ │ │ │ │"," │ │ │ ╭──────╮ │ │"," │ ╰───▶│ Four │ │ │"," │ │ ╰──────╯ │ │"," │ ╰───────────╯ │"," ╰────────────────────────────────────────────────╯"],"runs":[[[14,1],[11,5]],[[14,1],[1,7],[9,1],[1,5]],[[14,1],[1,4],[9,1],[1,5]],[[6,1],[8,2],[1,6],[7,2],[2,1],[1,5]],[[6,1],[1,2],[14,3],[1,2],[2,1],[1,5]],[[6,1],[16,2],[2,1],[1,5]],[[24,1],[1,5]],[[16,1],[17,2]],[[1,5],[3,8],[3,7],[4,4],[3,6],[3,9],[15,3],[1,2]],[[1,5],[15,1],[17,2]],[[1,5]],[[1,5],[2,0],[7,0],[41,0]],[[1,5],[1,0],[20,1],[5,2],[9,1],[2,0],[7,0],[4,0],[1,1],[1,0]],[[1,5],[1,0],[1,1],[19,5],[1,2],[3,3],[1,2],[9,1],[1,0],[1,1],[9,2],[1,1],[1,0],[1,1],[1,0]],[[1,5],[1,0],[1,1],[1,5],[18,1],[2,2],[1,4],[2,2],[9,1],[1,0],[1,1],[1,2],[7,3],[1,2],[1,1],[1,0],[1,1],[1,0]],[[1,5],[1,0],[1,1],[1,5],[20,1],[10,5],[2,1],[1,0],[1,1],[9,2],[1,1],[1,0],[1,1],[1,0]],[[1,5],[1,0],[1,1],[1,5],[29,1],[1,5],[2,1],[1,0],[11,1],[1,0],[1,1],[1,0]],[[1,5],[1,0],[1,1],[6,5],[9,10],[7,5],[8,1],[1,5],[2,1],[1,0],[11,1],[1,0],[1,1],[1,0]],[[1,5],[1,0],[19,1],[3,2],[1,4],[3,2],[5,1],[1,5],[2,1],[1,0],[11,1],[1,0],[1,1],[1,0]],[[21,5],[1,2],[5,3],[1,2],[5,1],[1,5],[2,1],[1,0],[11,1],[1,0],[1,1],[1,0]],[[1,1],[1,0],[19,1],[7,2],[5,1],[1,5],[2,1],[1,0],[11,1],[1,0],[1,1],[1,0]],[[1,1],[1,0],[31,1],[1,5],[2,1],[1,0],[1,1],[8,2],[2,1],[1,0],[1,1],[1,0]],[[1,1],[1,0],[31,1],[5,5],[1,2],[6,3],[1,2],[2,1],[1,0],[1,1],[1,0]],[[1,1],[1,0],[34,1],[1,0],[1,1],[8,2],[2,1],[1,0],[1,1],[1,0]],[[1,1],[1,0],[34,1],[13,0],[1,1],[1,0]],[[1,1],[50,0]]]}, + {"width":60,"source":"flowchart LR\n Input([Input]) --> Parse\n subgraph Outer[Outer orchestration]\n direction RL\n subgraph Inner[Inner pipeline]\n direction TD\n Parse[Parse request] --> Validate{Valid?}\n Validate -->|yes| Cache[(Cache)]\n Cache -->|stale| Validate\n end\n Validate --> Dispatch[[Dispatch work]]\n Dispatch -->|requeue| Parse\n end\n Dispatch -. result .-> Output([Output])\n Output -->|audit| Cache","height":46,"lines":[" ╭───────╮"," │ Input │"," ╰───┬───╯"," ╰──────────────────────────────────────╮"," ╭─ Outer orchestration ──────────────────────────────────────────────────────────╮ │"," │ ╭──────────────────── requeue ────────────────────╮ │ │"," │ │ │ │ │"," │ │ │ │ │"," │ │ ╭─ Inner pipeline ──────▼─────────╮ │ │"," │ │ │ ╭───────────────╮ │ │ │"," │ │ │ │ Parse request │◀──────╯"," │ │ │ ╰───────┬───────╯ │ │"," │ │ │ │ │ │"," │ │ │ │ │ │"," │ │ │ ▼ │ │"," │ │ │ ╭───────╮ │ │"," │ │ │ ╭─╯ ╰─╮ │ │"," │ ╭─┬──────┴──────┬─╮ │ │ Valid? │◀───────╮"," │ ╭┤ │Dispatch work│ │ │ ╰─╮ ╭─╯ │ │ │"," │ │╰─┴─────────────┴─╯ │ ╰───┬───╯ │ │ │","╭───────────┼─────────▲─────────────────────────────────────────────────┤ │ │ │","╰───────────┼─────────╯ │ ╭────── yes ──────╯ │ │ │"," │ │ │ ▼ │ │ │"," │ │ │ ╭───────╮ │ │ │"," │ │ │ ├───────┤ │ │ │"," │ │ │ │ Cache │◀───────────────────────────┤"," │ │ │ ├───────┤ │ │ │"," │ │ │ ╰───┬───╯ │ │ │"," │ │ │ ╰──────────── stale ─────────────┤"," │ │ │ │ │ │"," │ │ │ │ │ │"," │ │ │ │ │ │"," │ │ │ │ │ │"," │ │ │ │ │ │"," │ │ │ │ │ │"," │ │ │ │ │ │"," │ │ │ │ │ │"," │ │ ╰─────────────────────────────────╯ │ │"," ╰────────│───────────────────────────────────────────────────────────────────────╯ │"," │ │"," │ ╭────────╮ │"," │ ╭▶│ Output ├───────────── audit ─────────────╯"," │ │ ╰────────╯"," │ │"," │ │"," ╰────────── result ───────────╯"],"runs":[[[45,1],[9,2]],[[45,1],[1,2],[7,3],[1,2]],[[45,1],[4,2],[1,4],[4,2]],[[49,1],[40,5]],[[3,1],[2,0],[21,0],[59,0],[3,1],[1,5]],[[3,1],[1,0],[18,1],[21,5],[9,10],[21,5],[11,1],[1,0],[3,1],[1,5]],[[3,1],[1,0],[18,1],[1,8],[49,1],[1,5],[11,1],[1,0],[3,1],[1,5]],[[3,1],[1,0],[18,1],[1,8],[49,1],[1,5],[11,1],[1,0],[3,1],[1,5]],[[3,1],[1,0],[18,1],[1,7],[25,1],[2,0],[16,0],[6,0],[1,5],[10,0],[1,1],[1,0],[3,1],[1,5]],[[3,1],[1,0],[18,1],[1,7],[25,1],[1,0],[15,1],[17,2],[1,1],[1,0],[1,1],[1,0],[3,1],[1,5]],[[3,1],[1,0],[18,1],[1,7],[25,1],[1,0],[15,1],[1,2],[15,3],[1,2],[8,5]],[[3,1],[1,0],[18,1],[1,4],[25,1],[1,0],[15,1],[8,2],[1,6],[8,2],[1,1],[1,0],[1,1],[1,0]],[[3,1],[1,0],[18,1],[1,4],[25,1],[1,0],[23,1],[1,4],[9,1],[1,0],[1,1],[1,0]],[[3,1],[1,0],[18,1],[1,6],[25,1],[1,0],[23,1],[1,7],[9,1],[1,0],[1,1],[1,0]],[[3,1],[1,0],[18,1],[1,6],[25,1],[1,0],[23,1],[1,5],[9,1],[1,0],[1,1],[1,0]],[[3,1],[1,0],[18,1],[1,6],[25,1],[1,0],[19,1],[9,2],[5,1],[1,0],[1,1],[1,0]],[[3,1],[1,0],[18,1],[1,9],[25,1],[1,0],[17,1],[3,2],[7,1],[3,2],[3,1],[1,0],[1,1],[1,0]],[[3,1],[1,0],[9,1],[9,2],[1,9],[9,2],[16,1],[1,0],[17,1],[1,2],[2,1],[6,3],[3,1],[1,2],[9,5]],[[3,1],[1,0],[8,1],[1,5],[1,4],[1,3],[1,2],[13,3],[1,2],[1,3],[1,2],[16,1],[1,0],[17,1],[3,2],[7,1],[3,2],[3,1],[1,0],[1,1],[1,0],[2,1],[1,5]],[[3,1],[1,0],[8,1],[1,5],[19,2],[16,1],[1,0],[19,1],[4,2],[1,4],[4,2],[5,1],[1,0],[1,1],[1,0],[2,1],[1,5]],[[73,5],[9,1],[1,0],[1,1],[1,0],[2,1],[1,5]],[[23,5],[25,1],[1,0],[5,1],[7,5],[5,10],[7,5],[9,1],[1,0],[1,1],[1,0],[2,1],[1,5]],[[3,1],[1,0],[8,1],[1,5],[35,1],[1,0],[5,1],[1,5],[27,1],[1,0],[1,1],[1,0],[2,1],[1,5]],[[3,1],[1,0],[8,1],[1,5],[35,1],[1,0],[1,1],[9,2],[23,1],[1,0],[1,1],[1,0],[2,1],[1,5]],[[3,1],[1,0],[8,1],[1,5],[35,1],[1,0],[1,1],[9,2],[23,1],[1,0],[1,1],[1,0],[2,1],[1,5]],[[3,1],[1,0],[8,1],[1,5],[35,1],[1,0],[1,1],[1,2],[7,3],[1,2],[29,5]],[[3,1],[1,0],[8,1],[1,5],[35,1],[1,0],[1,1],[9,2],[23,1],[1,0],[1,1],[1,0],[2,1],[1,5]],[[3,1],[1,0],[8,1],[1,5],[35,1],[1,0],[1,1],[4,2],[1,4],[4,2],[23,1],[1,0],[1,1],[1,0],[2,1],[1,5]],[[3,1],[1,0],[8,1],[1,5],[35,1],[1,0],[5,1],[13,5],[7,10],[14,5]],[[3,1],[1,0],[8,1],[1,5],[35,1],[1,0],[33,1],[1,0],[1,1],[1,0],[2,1],[1,5]],[[3,1],[1,0],[8,1],[1,5],[35,1],[1,0],[33,1],[1,0],[1,1],[1,0],[2,1],[1,5]],[[3,1],[1,0],[8,1],[1,5],[35,1],[1,0],[33,1],[1,0],[1,1],[1,0],[2,1],[1,5]],[[3,1],[1,0],[8,1],[1,5],[35,1],[1,0],[33,1],[1,0],[1,1],[1,0],[2,1],[1,5]],[[3,1],[1,0],[8,1],[1,5],[35,1],[1,0],[33,1],[1,0],[1,1],[1,0],[2,1],[1,5]],[[3,1],[1,0],[8,1],[1,5],[35,1],[1,0],[33,1],[1,0],[1,1],[1,0],[2,1],[1,5]],[[3,1],[1,0],[8,1],[1,5],[35,1],[1,0],[33,1],[1,0],[1,1],[1,0],[2,1],[1,5]],[[3,1],[1,0],[8,1],[1,5],[35,1],[1,0],[33,1],[1,0],[1,1],[1,0],[2,1],[1,5]],[[3,1],[1,0],[8,1],[1,5],[35,1],[35,0],[1,1],[1,0],[2,1],[1,5]],[[3,1],[9,0],[1,5],[72,0],[2,1],[1,5]],[[12,1],[1,5],[74,1],[1,5]],[[12,1],[1,5],[31,1],[10,2],[33,1],[1,5]],[[12,1],[1,5],[29,1],[2,5],[1,2],[8,3],[2,9],[3,6],[3,4],[3,7],[3,8],[7,10],[14,5]],[[12,1],[1,5],[29,1],[1,5],[1,1],[10,2]],[[12,1],[1,5],[29,1],[1,5]],[[12,1],[1,5],[29,1],[1,5]],[[12,1],[11,5],[8,10],[12,5]]]}, + {"width":60,"source":"flowchart TD\n subgraph Parent\n direction LR\n subgraph Left [A deliberately long left group title]\n direction LR\n A1[One] --> A2[Two]\n end\n subgraph Right [A deliberately long right group title]\n direction LR\n B1[Three] --> B2[Four]\n end\n A2 --> B1\n end","height":11,"lines":["╭─ Parent ──────────────────────────────────────────────────────────────────────────────╮","│ ╭─ A deliberately long left group title ╮ ╭─ A deliberately long right group title ╮ │","│ │ ╭─────╮ ╭─────╮ │ │ ╭───────╮ ╭──────╮ │ │","│ │ │ One ├─▶│ Two ├╮ │ │ ╭▶│ Three ├─▶│ Four │ │ │","│ │ ╰─────╯ ╰─────╯│ │ │ │ ╰───────╯ ╰──────╯ │ │","│ ╰───────────────────────────│───────────╯ ╰────────│───────────────────────────────╯ │","│ │ │ │","│ │ │ │","│ │ │ │","│ ╰───────────────────────╯ │","╰───────────────────────────────────────────────────────────────────────────────────────╯"],"runs":[[[2,0],[8,0],[79,0]],[[1,0],[1,1],[2,0],[38,0],[1,0],[2,1],[2,0],[39,0],[1,0],[1,1],[1,0]],[[1,0],[1,1],[1,0],[11,1],[7,2],[2,1],[7,2],[12,1],[1,0],[2,1],[1,0],[10,1],[9,2],[2,1],[8,2],[11,1],[1,0],[1,1],[1,0]],[[1,0],[1,1],[1,0],[11,1],[1,2],[5,3],[1,6],[1,7],[1,5],[1,2],[5,3],[1,4],[1,5],[11,1],[1,0],[2,1],[1,0],[8,1],[2,5],[1,2],[7,3],[1,6],[1,7],[1,5],[1,2],[6,3],[1,2],[11,1],[1,0],[1,1],[1,0]],[[1,0],[1,1],[1,0],[11,1],[7,2],[2,1],[7,2],[1,5],[11,1],[1,0],[2,1],[1,0],[8,1],[1,5],[1,1],[9,2],[2,1],[8,2],[11,1],[1,0],[1,1],[1,0]],[[1,0],[1,1],[28,0],[1,5],[12,0],[2,1],[9,0],[1,5],[32,0],[1,1],[1,0]],[[1,0],[29,1],[1,5],[23,1],[1,5],[33,1],[1,0]],[[1,0],[29,1],[1,5],[23,1],[1,5],[33,1],[1,0]],[[1,0],[29,1],[1,5],[23,1],[1,5],[33,1],[1,0]],[[1,0],[29,1],[25,5],[33,1],[1,0]],[[89,0]]]}, + {"width":60,"source":"flowchart LR\n Browser([Browser]) --> Gateway[Gateway]\n subgraph Cloud[Cloud platform]\n direction TB\n subgraph Compute[Compute]\n API[API service] --> Worker[Background worker]\n end\n subgraph Storage[Storage]\n Database[(Database)]\n Cache[(Cache)]\n end\n API --> Database\n Worker --> Cache\n end\n Gateway --> API\n Worker --> Result([Result])","height":33,"lines":[" ╭─────────╮"," │ Browser │"," ╰────┬────╯"," │"," ╭─────────╮"," │ Gateway ├────────────╮"," ╰─────────╯ │"," │","╭─ Cloud platform ────────────────────────╮ │","│ ╭─ Compute ─────────────╮ │ │","│ │ ╭─────────────╮ │ │ │","│ ╭────────────┤ API service │◀─────────────────────────╯","│ │ │ ╰──────┬──────╯ │ │","│ │ │ │ │ │","│ │ │ ▼ │ │","│ │ │ ╭───────────────────╮ │ │","│ │ │ │ Background worker ├───────────────────────╮","│ │ │ ╰─────────┬─────────╯ │ │ │","│ │ ╰───────────│───────────╯ │ │","│ │ ╰───────────╮ │ │","│ │ │ │ │","│ │ ╭─ Storage ───────────────────▼─────╮ │ │","│ │ │ ╭──────────╮ ╭───────╮ │ │ │","│ │ │ ├──────────┤ ├───────┤ │ │ │","│ ╰──▶│ Database │ │ Cache │ │ │ │","│ │ ├──────────┤ ├───────┤ │ │ │","│ │ ╰──────────╯ ╰───────╯ │ │ │","│ ╰───────────────────────────────────╯ │ │","╰─────────────────────────────────────────╯ │"," │"," ╭────────╮ │"," │ Result │◀─╯"," ╰────────╯"],"runs":[[[33,1],[11,2]],[[33,1],[1,2],[9,3],[1,2]],[[33,1],[5,2],[1,5],[5,2]],[[38,1],[1,5]],[[33,1],[11,2]],[[33,1],[1,2],[9,3],[2,9],[3,6],[3,4],[3,7],[2,8],[1,5]],[[33,1],[11,2],[12,1],[1,5]],[[56,1],[1,5]],[[2,0],[16,0],[25,0],[13,1],[1,5]],[[1,0],[9,1],[2,0],[9,0],[14,0],[7,1],[1,0],[13,1],[1,5]],[[1,0],[9,1],[1,0],[4,1],[15,2],[4,1],[1,0],[7,1],[1,0],[13,1],[1,5]],[[1,0],[1,1],[1,5],[2,8],[3,7],[3,4],[3,6],[2,9],[13,3],[1,2],[27,5]],[[1,0],[1,1],[1,5],[7,1],[1,0],[4,1],[7,2],[1,6],[7,2],[4,1],[1,0],[7,1],[1,0]],[[1,0],[1,1],[1,5],[7,1],[1,0],[11,1],[1,7],[11,1],[1,0],[7,1],[1,0]],[[1,0],[1,1],[1,5],[7,1],[1,0],[11,1],[1,5],[11,1],[1,0],[7,1],[1,0]],[[1,0],[1,1],[1,5],[7,1],[1,0],[1,1],[21,2],[1,1],[1,0],[7,1],[1,0]],[[1,0],[1,1],[1,5],[7,1],[1,0],[1,1],[1,2],[19,3],[4,9],[5,6],[5,4],[5,7],[5,8],[1,5]],[[1,0],[1,1],[1,5],[7,1],[1,0],[1,1],[10,2],[1,6],[10,2],[1,1],[1,0],[7,1],[1,0],[13,1],[1,5]],[[1,0],[1,1],[1,5],[7,1],[12,0],[1,7],[12,0],[7,1],[1,0],[13,1],[1,5]],[[1,0],[1,1],[1,5],[19,1],[13,5],[7,1],[1,0],[13,1],[1,5]],[[1,0],[1,1],[1,5],[31,1],[1,5],[7,1],[1,0],[13,1],[1,5]],[[1,0],[1,1],[1,5],[1,1],[2,0],[9,0],[19,0],[1,5],[6,0],[1,1],[1,0],[13,1],[1,5]],[[1,0],[1,1],[1,5],[1,1],[1,0],[1,1],[12,2],[12,1],[9,2],[1,1],[1,0],[1,1],[1,0],[13,1],[1,5]],[[1,0],[1,1],[1,5],[1,1],[1,0],[1,1],[12,2],[12,1],[9,2],[1,1],[1,0],[1,1],[1,0],[13,1],[1,5]],[[1,0],[1,1],[4,5],[1,2],[10,3],[1,2],[12,1],[1,2],[7,3],[1,2],[1,1],[1,0],[1,1],[1,0],[13,1],[1,5]],[[1,0],[3,1],[1,0],[1,1],[12,2],[12,1],[9,2],[1,1],[1,0],[1,1],[1,0],[13,1],[1,5]],[[1,0],[3,1],[1,0],[1,1],[12,2],[12,1],[9,2],[1,1],[1,0],[1,1],[1,0],[13,1],[1,5]],[[1,0],[3,1],[37,0],[1,1],[1,0],[13,1],[1,5]],[[43,0],[13,1],[1,5]],[[56,1],[1,5]],[[44,1],[10,2],[2,1],[1,5]],[[44,1],[1,2],[8,3],[1,2],[3,5]],[[44,1],[10,2]]]}, + {"width":60,"source":"flowchart LR\n Request([Request]) --> Gateway[API gateway]\n Gateway -->|authenticate| Auth[Authentication]\n Gateway -->|rate limit| Limit[Rate limiter]\n Gateway -->|cache lookup| Cache[(Response cache)]\n Auth --> Worker[Request worker]\n Limit --> Worker\n Cache --> Worker\n Worker --> Response([Response])","height":34,"lines":[" ╭─────────╮"," │ Request │"," ╰────┬────╯"," │"," ▼"," ╭─────────────╮"," cache lookup ─┤ API gateway │","│ ╰──────┬──────╯","│ ╭─────────┴───────────╮","│ │ authenticate │ rate limit ","│ ▼ ▼","│ ╭────────────────╮ ╭──────────────╮","│ │ Authentication │ │ Rate limiter │","│ ╰────────┬───────╯ ╰───────┬──────╯","│ │ │","│ │ │","│ │ │","│ │ │","│ │ │","│ │╭────────────────╮ │","│ │├────────────────┤ │","╰───────────▶│ Response cache │ │"," │├────────────────┤ │"," │╰────────┬───────╯ │"," ╰─────────│───────────╯"," ▼"," ╭────────────────╮"," │ Request worker │"," ╰────────┬───────╯"," │"," ▼"," ╭──────────╮"," │ Response │"," ╰──────────╯"],"runs":[[[17,1],[11,2]],[[17,1],[1,2],[9,3],[1,2]],[[17,1],[5,2],[1,6],[5,2]],[[22,1],[1,7]],[[22,1],[1,5]],[[15,1],[15,2]],[[14,10],[1,7],[1,6],[13,3],[1,2]],[[1,5],[14,1],[7,2],[1,4],[7,2]],[[1,5],[11,1],[23,5]],[[1,5],[11,1],[1,5],[14,10],[7,1],[1,5],[12,10]],[[1,5],[11,1],[1,5],[21,1],[1,5]],[[1,5],[2,1],[18,2],[5,1],[16,2]],[[1,5],[2,1],[1,2],[16,3],[1,2],[5,1],[1,2],[14,3],[1,2]],[[1,5],[2,1],[9,2],[1,9],[8,2],[5,1],[8,2],[1,9],[7,2]],[[1,5],[11,1],[1,6],[21,1],[1,9]],[[1,5],[11,1],[1,6],[21,1],[1,6]],[[1,5],[11,1],[1,4],[21,1],[1,6]],[[1,5],[11,1],[1,4],[21,1],[1,4]],[[1,5],[11,1],[1,7],[21,1],[1,4]],[[1,5],[11,1],[1,7],[18,2],[3,1],[1,4]],[[1,5],[11,1],[1,8],[18,2],[3,1],[1,7]],[[13,5],[1,2],[16,3],[1,2],[3,1],[1,7]],[[12,1],[1,5],[18,2],[3,1],[1,8]],[[12,1],[1,5],[9,2],[1,6],[8,2],[3,1],[1,8]],[[12,1],[10,5],[1,7],[12,5]],[[22,1],[1,5]],[[13,1],[18,2]],[[13,1],[1,2],[16,3],[1,2]],[[13,1],[9,2],[1,6],[8,2]],[[22,1],[1,7]],[[22,1],[1,5]],[[16,1],[12,2]],[[16,1],[1,2],[10,3],[1,2]],[[16,1],[12,2]]]}, + {"width":60,"source":"flowchart TD\n A[A] -->|one| B[B]\n A -->|two| B","height":9,"lines":["╭───╮","│ A ├┬──────╮","╰───╯│ │"," │ │"," │ one │ two "," │ │","╭───╮│ │","│ B │▼──────╯","╰───╯"],"runs":[[[5,2]],[[1,2],[3,3],[1,4],[8,5]],[[5,2],[1,5],[6,1],[1,5]],[[5,1],[1,5],[6,1],[1,5]],[[5,1],[1,5],[5,10],[1,1],[1,5],[5,10]],[[5,1],[1,5],[6,1],[1,5]],[[5,2],[1,5],[6,1],[1,5]],[[1,2],[3,3],[1,2],[8,5]],[[5,2]]]}, + {"width":60,"source":"flowchart TD\n subgraph Group\n S[Source]\n S -->|route 0 detail| N0[Node 0]\n S -->|route 1 detail| N1[Node 1]\n S -->|route 2 detail| N2[Node 2]\n S -->|route 3 detail| N3[Node 3]\n end","height":23,"lines":["╭─ Group ──────────────────────────────────────────────╮","│ ╭────────╮ │","│ ╭─── route 2 detail ─────┤ Source │ │","│ │ ╰────┬───╯ │","│ │ ╭────────────────┼────────────────╮ │","│ │ │ route 0 detail │ route 1 detail │","│ │ ▼ │ ▼ │","│ │ ╭────────╮ │ ╭────────╮ │","│ │ │ Node 0 │ │ │ Node 1 │ │","│ │ ╰────────╯ │ ╰────────╯ │","│ │ │ │","│ │ │ │","│ │ │ route 3 detail │","│ │ │ │","│ │ │ │","│ │ ╭────────╮ │ ╭────────╮ │","│ ╰──────▶│ Node 2 │ │ │ Node 3 │ │","│ ╰────────╯ │ ╰────────╯ │","│ │ ▲ │","│ │ │ │","│ │ │ │","│ ╰────────────────╯ │","╰──────────────────────────────────────────────────────╯"],"runs":[[[2,0],[7,0],[47,0]],[[1,0],[26,1],[10,2],[18,1],[1,0]],[[1,0],[1,1],[4,5],[16,10],[1,8],[1,7],[2,4],[1,6],[1,9],[8,3],[1,2],[18,1],[1,0]],[[1,0],[1,1],[1,5],[24,1],[5,2],[1,4],[4,2],[18,1],[1,0]],[[1,0],[1,1],[1,5],[12,1],[35,5],[5,1],[1,0]],[[1,0],[1,1],[1,5],[12,1],[1,5],[16,10],[1,5],[1,1],[16,10],[5,1],[1,0]],[[1,0],[1,1],[1,5],[12,1],[1,5],[16,1],[1,5],[16,1],[1,5],[5,1],[1,0]],[[1,0],[1,1],[1,5],[7,1],[10,2],[12,1],[1,5],[11,1],[10,2],[1,1],[1,0]],[[1,0],[1,1],[1,5],[7,1],[1,2],[8,3],[1,2],[12,1],[1,5],[11,1],[1,2],[8,3],[1,2],[1,1],[1,0]],[[1,0],[1,1],[1,5],[7,1],[10,2],[12,1],[1,5],[11,1],[10,2],[1,1],[1,0]],[[1,0],[1,1],[1,5],[29,1],[1,5],[22,1],[1,0]],[[1,0],[1,1],[1,5],[29,1],[1,5],[22,1],[1,0]],[[1,0],[1,1],[1,5],[29,1],[1,5],[16,10],[6,1],[1,0]],[[1,0],[1,1],[1,5],[29,1],[1,5],[22,1],[1,0]],[[1,0],[1,1],[1,5],[29,1],[1,5],[22,1],[1,0]],[[1,0],[1,1],[1,5],[7,1],[10,2],[12,1],[1,5],[11,1],[10,2],[1,1],[1,0]],[[1,0],[1,1],[8,5],[1,2],[8,3],[1,2],[12,1],[1,5],[11,1],[1,2],[8,3],[1,2],[1,1],[1,0]],[[1,0],[9,1],[10,2],[12,1],[1,5],[11,1],[10,2],[1,1],[1,0]],[[1,0],[31,1],[1,5],[16,1],[1,5],[5,1],[1,0]],[[1,0],[31,1],[1,5],[16,1],[1,5],[5,1],[1,0]],[[1,0],[31,1],[1,5],[16,1],[1,5],[5,1],[1,0]],[[1,0],[31,1],[18,5],[5,1],[1,0]],[[56,0]]]}, + {"width":60,"source":"\nflowchart TD\n Start([Start]):::focus --> Form[Collect Details]\n Form -->|valid| Store[(Orders DB)]:::store\n Form -- invalid --> Review(Manual Review)\n Review --> Decision{Approved?}\n","height":23,"lines":[" ╭───────╮"," │ Start │"," ╰───┬───╯"," │"," ▼"," ╭─────────────────╮"," │ Collect Details │"," ╰────────┬────────╯"," ╭──── valid ─────┴── invalid ───╮"," │ │"," ▼ │","╭───────────╮ ▼","├───────────┤ ╭───────────────╮","│ Orders DB │ │ Manual Review │","├───────────┤ ╰───────┬───────╯","╰───────────╯ │"," ╭──────────────╯"," ▼"," ╭─────────╮"," ╭─╯ ╰─╮"," │ Approved? │"," ╰─╮ ╭─╯"," ╰─────────╯"],"runs":[[[19,1],[9,2]],[[19,1],[1,2],[7,3],[1,2]],[[19,1],[4,2],[1,6],[4,2]],[[23,1],[1,7]],[[23,1],[1,5]],[[14,1],[19,2]],[[14,1],[1,2],[17,3],[1,2]],[[14,1],[9,2],[1,4],[9,2]],[[6,1],[5,5],[7,10],[8,5],[9,10],[4,5]],[[6,1],[1,5],[31,1],[1,5]],[[6,1],[1,5],[31,1],[1,5]],[[13,2],[25,1],[1,5]],[[13,2],[17,1],[17,2]],[[1,2],[11,3],[1,2],[17,1],[1,2],[15,3],[1,2]],[[13,2],[17,1],[8,2],[1,6],[8,2]],[[13,2],[25,1],[1,7]],[[23,1],[16,5]],[[23,1],[1,5]],[[18,1],[11,2]],[[16,1],[3,2],[9,1],[3,2]],[[16,1],[1,2],[2,1],[9,3],[2,1],[1,2]],[[16,1],[3,2],[9,1],[3,2]],[[18,1],[11,2]]]}, + {"width":60,"source":"flowchart LR\n A[HMAC verify <3s & continue] -->|result ≥ 1| B[Done]","height":9,"lines":["╭────────────────────────────╮","│ HMAC verify <3s & continue │","╰──────────────┬─────────────╯"," │"," │ result ≥ 1 "," ▼"," ╭──────╮"," │ Done │"," ╰──────╯"],"runs":[[[30,2]],[[1,2],[28,3],[1,2]],[[15,2],[1,6],[14,2]],[[15,1],[1,4]],[[15,1],[1,7],[12,10]],[[15,1],[1,5]],[[11,1],[8,2]],[[11,1],[1,2],[6,3],[1,2]],[[11,1],[8,2]]]}, + {"width":60,"source":"flowchart TD\n A -->|\"fs: watcher/fff off<br/>events.persist: true<br/>mcp.stdio: false<br/>A --> B\"| B","height":12,"lines":["╭───╮","│ A │","╰─┬─╯"," │"," │ fs: watcher/fff off "," │ events.persist: true "," │ mcp.stdio: false "," │ A --> B "," ▼","╭───╮","│ B │","╰───╯"],"runs":[[[5,2]],[[1,2],[3,3],[1,2]],[[2,2],[1,9],[2,2]],[[2,1],[1,6]],[[2,1],[1,4],[21,10]],[[2,1],[1,4],[22,10]],[[2,1],[1,7],[18,10]],[[2,1],[1,8],[9,10]],[[2,1],[1,5]],[[5,2]],[[1,2],[3,3],[1,2]],[[5,2]]]}, + {"width":60,"source":"flowchart LR\n API --> Worker --> DB[(Database)]","height":5,"lines":[" ╭──────────╮","╭─────╮ ╭────────╮ ├──────────┤","│ API ├───▶│ Worker ├───▶│ Database │","╰─────╯ ╰────────╯ ├──────────┤"," ╰──────────╯"],"runs":[[[25,1],[12,2]],[[7,2],[4,1],[10,2],[4,1],[12,2]],[[1,2],[5,3],[1,6],[1,4],[1,7],[1,8],[1,5],[1,2],[8,3],[1,6],[1,4],[1,7],[1,8],[1,5],[1,2],[10,3],[1,2]],[[7,2],[4,1],[10,2],[4,1],[12,2]],[[25,1],[12,2]]]}, + {"width":60,"source":"flowchart LR\n A -->|plain| B -.->|retry| C ==>|done| D","height":21,"lines":["╭───╮","│ A │","╰─┬─╯"," │"," │ plain "," ▼","╭───╮","│ B │","╰─┬─╯"," │"," │ retry "," ▼","╭───╮","│ C │","╰─┬─╯"," ┃"," ┃ done "," ▼","╭───╮","│ D │","╰───╯"],"runs":[[[5,2]],[[1,2],[3,3],[1,2]],[[2,2],[1,6],[2,2]],[[2,1],[1,4]],[[2,1],[1,7],[7,10]],[[2,1],[1,5]],[[5,2]],[[1,2],[3,3],[1,2]],[[2,2],[1,6],[2,2]],[[2,1],[1,4]],[[2,1],[1,7],[7,10]],[[2,1],[1,5]],[[5,2]],[[1,2],[3,3],[1,2]],[[2,2],[1,6],[2,2]],[[2,1],[1,4]],[[2,1],[1,7],[6,10]],[[2,1],[1,5]],[[5,2]],[[1,2],[3,3],[1,2]],[[5,2]]]}, + {"width":60,"source":"flowchart LR\n N[Native] & M[Mapped] & O --> LM[\"LanguageModel\"]\n LM -->|prepare| REQ & LOG","height":19,"lines":["╭────────╮","│ Native ├──╮","╰────────╯ │"," │"," │ ╭─────╮"," │ ╭─ prepare ─▶│ REQ │"," │ │ ╰─────╯"," │ │","╭────────╮ │ ╭───────────────╮ │","│ Mapped ├──┼▶│ LanguageModel ├───┤","╰────────╯ │ ╰───────────────╯ │"," │ │"," │ │ ╭─────╮"," │ ╰─ prepare ─▶│ LOG │"," │ ╰─────╯"," │"," ╭───╮ │"," │ O ├─────╯"," ╰───╯"],"runs":[[[10,2]],[[1,2],[8,3],[1,6],[1,4],[1,7],[1,5]],[[10,2],[2,1],[1,5]],[[12,1],[1,5]],[[12,1],[1,5],[34,1],[7,2]],[[12,1],[1,5],[21,1],[2,5],[9,10],[2,5],[1,2],[5,3],[1,2]],[[12,1],[1,5],[21,1],[1,5],[12,1],[7,2]],[[12,1],[1,5],[21,1],[1,5]],[[10,2],[2,1],[1,5],[1,1],[17,2],[3,1],[1,5]],[[1,2],[8,3],[1,6],[1,4],[1,7],[2,5],[1,2],[15,3],[1,4],[4,5]],[[10,2],[2,1],[1,5],[1,1],[17,2],[3,1],[1,5]],[[12,1],[1,5],[21,1],[1,5]],[[12,1],[1,5],[21,1],[1,5],[12,1],[7,2]],[[12,1],[1,5],[21,1],[2,5],[9,10],[2,5],[1,2],[5,3],[1,2]],[[12,1],[1,5],[34,1],[7,2]],[[12,1],[1,5]],[[2,1],[5,2],[5,1],[1,5]],[[2,1],[1,2],[3,3],[1,9],[1,6],[2,4],[1,7],[1,8],[1,5]],[[2,1],[5,2]]]}, + {"width":60,"source":"flowchart LR\n A & B --> C & D --> E","height":16,"lines":["╭───────╮","│ │","│ │","│╭───╮ │ ╭───╮","││ A ├─┬┴▶│ C ├──╮","│╰───╯ │ ╰───╯ │","│ │ │","│ │ │ ╭───╮","│ │ ├▶│ E │","│ │ │ ╰───╯","│ │ │","│╭───╮ │ ╭───╮ │","╰┤ B ├╮╰─▶│ D ├──╯"," ╰───╯│ ╰───╯"," │ ▲"," ╰─────╯"],"runs":[[[9,5]],[[1,5],[7,1],[1,5]],[[1,5],[7,1],[1,5]],[[1,5],[5,2],[2,1],[1,5],[1,1],[5,2]],[[1,5],[1,2],[3,3],[1,4],[4,5],[1,2],[3,3],[1,6],[1,4],[1,7],[1,5]],[[1,5],[5,2],[1,1],[1,5],[2,1],[5,2],[2,1],[1,5]],[[1,5],[6,1],[1,5],[9,1],[1,5]],[[1,5],[6,1],[1,5],[9,1],[1,5],[1,1],[5,2]],[[1,5],[6,1],[1,5],[9,1],[2,5],[1,2],[3,3],[1,2]],[[1,5],[6,1],[1,5],[9,1],[1,5],[1,1],[5,2]],[[1,5],[6,1],[1,5],[9,1],[1,5]],[[1,5],[5,2],[1,1],[1,5],[2,1],[5,2],[2,1],[1,5]],[[1,5],[1,4],[3,3],[1,4],[4,5],[1,2],[3,3],[1,6],[1,4],[1,7],[1,5]],[[1,1],[5,2],[1,5],[3,1],[5,2]],[[6,1],[1,5],[5,1],[1,5]],[[6,1],[7,5]]]}, + {"width":60,"source":"flowchart TD\n subgraph Runtime\n A[Alpha] & B[Beta]:::focus\n end\n A --> B","height":10,"lines":["╭─ Runtime ─╮","│ ╭───────╮ │","│ │ Alpha │ │","│ ╰───┬───╯ │","│ │ │","│ ▼ │","│ ╭──────╮ │","│ │ Beta │ │","│ ╰──────╯ │","╰───────────╯"],"runs":[[[2,0],[9,0],[2,0]],[[1,0],[1,1],[9,2],[1,1],[1,0]],[[1,0],[1,1],[1,2],[7,3],[1,2],[1,1],[1,0]],[[1,0],[1,1],[4,2],[1,6],[4,2],[1,1],[1,0]],[[1,0],[5,1],[1,7],[5,1],[1,0]],[[1,0],[5,1],[1,5],[5,1],[1,0]],[[1,0],[1,1],[8,2],[2,1],[1,0]],[[1,0],[1,1],[1,2],[6,3],[1,2],[2,1],[1,0]],[[1,0],[1,1],[8,2],[2,1],[1,0]],[[13,0]]]}, + {"width":60,"source":"flowchart LR\n A[\"Fetch & parse\"] & B[R&D] --> C[Done & dusted]","height":11,"lines":["╭───────────────╮","│ Fetch & parse ├──╮","╰───────────────╯ │"," │"," │ ╭───────────────╮"," ├▶│ Done & dusted │"," │ ╰───────────────╯"," │"," ╭─────╮ │"," │ R&D ├───────╯"," ╰─────╯"],"runs":[[[17,2]],[[1,2],[15,3],[1,6],[1,4],[1,7],[1,5]],[[17,2],[2,1],[1,5]],[[19,1],[1,5]],[[19,1],[1,5],[1,1],[17,2]],[[19,1],[2,5],[1,2],[15,3],[1,2]],[[19,1],[1,5],[1,1],[17,2]],[[19,1],[1,5]],[[5,1],[7,2],[7,1],[1,5]],[[5,1],[1,2],[5,3],[1,9],[2,6],[2,4],[2,7],[1,8],[1,5]],[[5,1],[7,2]]]}, + {"width":60,"source":"flowchart LR\n X[a & b] -->|x & y| Y","height":3,"lines":["╭───────╮ ╭───╮","│ a & b ├─── x & y ───▶│ Y │","╰───────╯ ╰───╯"],"runs":[[[9,2],[14,1],[5,2]],[[1,2],[7,3],[1,6],[1,4],[1,7],[1,8],[7,10],[4,5],[1,2],[3,3],[1,2]],[[9,2],[14,1],[5,2]]]}, + {"width":60,"source":"flowchart LR\n CS[Console's own schema copy] -. validates .-> CFG\n A[Bob's] & B[Al's] --> C[it's done; ship]","height":9,"lines":["╭───────────────────────────╮ ╭───────╮ ╭──────╮","│ Console's own schema copy │ │ Bob's │ │ Al's │","╰─────────────┬─────────────╯ ╰───┬───╯ ╰───┬──╯"," │ │ │"," ╭─────╯ validates ╰─┬───────────╯"," ▼ ▼"," ╭─────╮ ╭─────────────────╮"," │ CFG │ │ it's done; ship │"," ╰─────╯ ╰─────────────────╯"],"runs":[[[29,2],[5,1],[9,2],[5,1],[8,2]],[[1,2],[27,3],[1,2],[5,1],[1,2],[7,3],[1,2],[5,1],[1,2],[6,3],[1,2]],[[14,2],[1,6],[14,2],[5,1],[4,2],[1,6],[4,2],[5,1],[4,2],[1,6],[3,2]],[[14,1],[1,7],[23,1],[1,7],[13,1],[1,7]],[[8,1],[7,5],[11,10],[12,1],[15,5]],[[8,1],[1,5],[31,1],[1,5]],[[5,1],[7,2],[19,1],[19,2]],[[5,1],[1,2],[5,3],[1,2],[19,1],[1,2],[17,3],[1,2]],[[5,1],[7,2],[19,1],[19,2]]]}, + {"width":60,"source":"flowchart LR\n N & M & O --> LM[LanguageModel] --> REQ[LLMRequest]","height":19,"lines":["╭───╮","│ N ├──╮","╰───╯ │"," │"," │"," │"," │"," │","╭───╮ │ ╭───────────────╮ ╭────────────╮","│ M ├──┼▶│ LanguageModel ├───▶│ LLMRequest │","╰───╯ │ ╰───────────────╯ ╰────────────╯"," │"," │"," │"," │"," │","╭───╮ │","│ O ├──╯","╰───╯"],"runs":[[[5,2]],[[1,2],[3,3],[1,6],[1,4],[1,7],[1,5]],[[5,2],[2,1],[1,5]],[[7,1],[1,5]],[[7,1],[1,5]],[[7,1],[1,5]],[[7,1],[1,5]],[[7,1],[1,5]],[[5,2],[2,1],[1,5],[1,1],[17,2],[4,1],[14,2]],[[1,2],[3,3],[1,6],[1,4],[1,7],[2,5],[1,2],[15,3],[1,6],[1,4],[1,7],[1,8],[1,5],[1,2],[12,3],[1,2]],[[5,2],[2,1],[1,5],[1,1],[17,2],[4,1],[14,2]],[[7,1],[1,5]],[[7,1],[1,5]],[[7,1],[1,5]],[[7,1],[1,5]],[[7,1],[1,5]],[[5,2],[2,1],[1,5]],[[1,2],[3,3],[1,6],[1,4],[1,7],[1,5]],[[5,2]]]}, + {"width":60,"source":"flowchart LR\n N --> LM[LanguageModel]\n M --> LM\n O --> LM\n LM --> REQ[LLMRequest]","height":19,"lines":["╭───╮","│ N ├──╮","╰───╯ │"," │"," │"," │"," │"," │","╭───╮ │ ╭───────────────╮ ╭────────────╮","│ M ├──┼▶│ LanguageModel ├───▶│ LLMRequest │","╰───╯ │ ╰───────────────╯ ╰────────────╯"," │"," │"," │"," │"," │","╭───╮ │","│ O ├──╯","╰───╯"],"runs":[[[5,2]],[[1,2],[3,3],[1,6],[1,4],[1,7],[1,5]],[[5,2],[2,1],[1,5]],[[7,1],[1,5]],[[7,1],[1,5]],[[7,1],[1,5]],[[7,1],[1,5]],[[7,1],[1,5]],[[5,2],[2,1],[1,5],[1,1],[17,2],[4,1],[14,2]],[[1,2],[3,3],[1,6],[1,4],[1,7],[2,5],[1,2],[15,3],[1,6],[1,4],[1,7],[1,8],[1,5],[1,2],[12,3],[1,2]],[[5,2],[2,1],[1,5],[1,1],[17,2],[4,1],[14,2]],[[7,1],[1,5]],[[7,1],[1,5]],[[7,1],[1,5]],[[7,1],[1,5]],[[7,1],[1,5]],[[5,2],[2,1],[1,5]],[[1,2],[3,3],[1,6],[1,4],[1,7],[1,5]],[[5,2]]]}, + {"width":60,"source":"flowchart LR\n A --- B --- C","height":3,"lines":["╭───╮ ╭───╮ ╭───╮","│ A ├────│ B ├────│ C │","╰───╯ ╰───╯ ╰───╯"],"runs":[[[5,2],[4,1],[5,2],[4,1],[5,2]],[[1,2],[3,3],[1,6],[1,4],[1,7],[1,8],[1,5],[1,2],[3,3],[1,6],[1,4],[1,7],[1,8],[1,5],[1,2],[3,3],[1,2]],[[5,2],[4,1],[5,2],[4,1],[5,2]]]}, + {"width":60,"source":"flowchart LR\n DB[(Durable Object SQLite)]\n API[Slack API]\n DB -. no shared transaction .- API\n API <--> DB","height":11,"lines":[" ╭───────────────────────╮"," ├───────────────────────┤","╭──▶│ Durable Object SQLite │","│ ├───────────────────────┤","│ ╰───────────┬───────────╯","│ │","│ │ no shared transaction ","│ │","│ ╭───────────╮","╰────────▶┤ Slack API │"," ╰───────────╯"],"runs":[[[4,1],[25,2]],[[4,1],[25,2]],[[4,5],[1,2],[23,3],[1,2]],[[1,5],[3,1],[25,2]],[[1,5],[3,1],[12,2],[1,6],[12,2]],[[1,5],[15,1],[1,4]],[[1,5],[15,1],[1,7],[23,10]],[[1,5],[15,1],[1,5]],[[1,5],[9,1],[13,2]],[[1,5],[2,8],[2,7],[2,4],[2,6],[1,5],[1,9],[11,3],[1,2]],[[10,1],[13,2]]]}, + {"width":60,"source":"flowchart LR\n DB[(Durable Object SQLite)] -. no shared transaction .- API[Slack API]","height":11,"lines":["╭───────────────────────╮","├───────────────────────┤","│ Durable Object SQLite │","├───────────────────────┤","╰───────────┬───────────╯"," │"," │ no shared transaction "," │"," ╭───────────╮"," │ Slack API │"," ╰───────────╯"],"runs":[[[25,2]],[[25,2]],[[1,2],[23,3],[1,2]],[[25,2]],[[12,2],[1,6],[12,2]],[[12,1],[1,4]],[[12,1],[1,7],[23,10]],[[12,1],[1,5]],[[6,1],[13,2]],[[6,1],[1,2],[11,3],[1,2]],[[6,1],[13,2]]]}, + {"width":60,"source":"flowchart LR\n DB[(Durable Object SQLite)] <--> API[Slack API]","height":5,"lines":["╭───────────────────────╮","├───────────────────────┤ ╭───────────╮","│ Durable Object SQLite ├◀──▶│ Slack API │","├───────────────────────┤ ╰───────────╯","╰───────────────────────╯"],"runs":[[[25,2]],[[25,2],[4,1],[13,2]],[[1,2],[23,3],[1,6],[1,5],[1,7],[1,8],[1,5],[1,2],[11,3],[1,2]],[[25,2],[4,1],[13,2]],[[25,2]]]}, + {"width":60,"source":"flowchart LR\n subgraph durable [Durable — survives everything]\n V[(Volume ws-wor_abc<br/>mounted at /workspace)]\n R[our row: id, provider]\n end\n subgraph ephemeral [Ephemeral — dies freely]\n S1[Sandbox #1] -. mounts .-> V\n S2[Sandbox #2<br/>Tuesday] -. mounts same .-> V\n X[apt-get installs,<br/>~/.cache, /tmp]\n end\n S1 --- X\n style X stroke-dasharray: 5 5","height":76,"lines":[" ╭─ Durable — survives everything ────────────╮"," │ ╭───────────────────────╮ │"," │ │ our row: id, provider │ │"," │ ╰───────────────────────╯ │"," │ │"," │ │"," │ │"," │ │"," │ │"," │ │"," │ │"," │ │"," │ │"," │ │"," │ │"," │ │"," │ │"," │ │"," │ │"," │ │"," │ │"," │ │"," │ │"," │ │"," │ │"," │ │"," │ │"," │ │"," │ │"," │ │"," │ │"," │ │"," │ │"," │ │"," │ │"," │ │"," │ │"," │ │"," │ │"," │ │"," │ │"," │ │"," │ │"," │ │"," ╭─ Ephemeral — dies freely ────────────────────────────────────────────────────────────────────────────────╮ ╰────────────────────────────────────────────╯"," │ ╭────────────╮ │"," │ │ Sandbox #1 │ │"," │ ╰──────┬─────╯ │"," ╭───────────────────────────────────────────┤ │"," │ │ │ mounts │"," │ │ │ │"," │ │ ╰──────────────────────────────────────────────────────────────────────────────────────────────────╮"," │ │ │ │"," │ │ ╭────────────╮ │ │"," │ │ │ Sandbox #2 │ │ │"," │ │ │ Tuesday │ │ │"," │ │ ╰──────┬─────╯ │ │"," │ │ │ │ │"," │ │ ╰ mounts same ────────────────────────────────────────────────────────────────────────────────────────────────────────────┤"," │ │ │ ▼"," │ │ │ ╭───────────────────────╮"," │ │ │ ├───────────────────────┤"," │ │ │ │ Volume ws-wor_abc │"," │ │ │ │ mounted at /workspace │"," │ │ │ ├───────────────────────┤"," │ │ │ ╰───────────────────────╯"," │ │ │"," │ │ │"," │ │ │"," ╰───────────────────╮ │"," │ │ │"," │ ╭───────────────────╮ │"," │ │ apt-get installs, │ │"," │ │ ~/.cache, /tmp │ │"," │ ╰───────────────────╯ │"," ╰──────────────────────────────────────────────────────────────────────────────────────────────────────────╯"],"runs":[[[121,1],[2,0],[31,0],[13,0]],[[121,1],[1,0],[1,1],[25,2],[18,1],[1,0]],[[121,1],[1,0],[1,1],[1,2],[23,3],[1,2],[18,1],[1,0]],[[121,1],[1,0],[1,1],[25,2],[18,1],[1,0]],[[121,1],[1,0],[44,1],[1,0]],[[121,1],[1,0],[44,1],[1,0]],[[121,1],[1,0],[44,1],[1,0]],[[121,1],[1,0],[44,1],[1,0]],[[121,1],[1,0],[44,1],[1,0]],[[121,1],[1,0],[44,1],[1,0]],[[121,1],[1,0],[44,1],[1,0]],[[121,1],[1,0],[44,1],[1,0]],[[121,1],[1,0],[44,1],[1,0]],[[121,1],[1,0],[44,1],[1,0]],[[121,1],[1,0],[44,1],[1,0]],[[121,1],[1,0],[44,1],[1,0]],[[121,1],[1,0],[44,1],[1,0]],[[121,1],[1,0],[44,1],[1,0]],[[121,1],[1,0],[44,1],[1,0]],[[121,1],[1,0],[44,1],[1,0]],[[121,1],[1,0],[44,1],[1,0]],[[121,1],[1,0],[44,1],[1,0]],[[121,1],[1,0],[44,1],[1,0]],[[121,1],[1,0],[44,1],[1,0]],[[121,1],[1,0],[44,1],[1,0]],[[121,1],[1,0],[44,1],[1,0]],[[121,1],[1,0],[44,1],[1,0]],[[121,1],[1,0],[44,1],[1,0]],[[121,1],[1,0],[44,1],[1,0]],[[121,1],[1,0],[44,1],[1,0]],[[121,1],[1,0],[44,1],[1,0]],[[121,1],[1,0],[44,1],[1,0]],[[121,1],[1,0],[44,1],[1,0]],[[121,1],[1,0],[44,1],[1,0]],[[121,1],[1,0],[44,1],[1,0]],[[121,1],[1,0],[44,1],[1,0]],[[121,1],[1,0],[44,1],[1,0]],[[121,1],[1,0],[44,1],[1,0]],[[121,1],[1,0],[44,1],[1,0]],[[121,1],[1,0],[44,1],[1,0]],[[121,1],[1,0],[44,1],[1,0]],[[121,1],[1,0],[44,1],[1,0]],[[121,1],[1,0],[44,1],[1,0]],[[121,1],[1,0],[44,1],[1,0]],[[12,1],[2,0],[25,0],[81,0],[1,1],[46,0]],[[12,1],[1,0],[33,1],[14,2],[59,1],[1,0]],[[12,1],[1,0],[33,1],[1,2],[12,3],[1,2],[59,1],[1,0]],[[12,1],[1,0],[33,1],[7,2],[1,4],[6,2],[59,1],[1,0]],[[9,1],[45,5],[65,1],[1,0]],[[9,1],[1,5],[2,1],[1,0],[40,1],[1,5],[8,10],[57,1],[1,0]],[[9,1],[1,5],[2,1],[1,0],[40,1],[1,5],[65,1],[1,0]],[[9,1],[1,5],[2,1],[1,0],[40,1],[100,5]],[[9,1],[1,5],[2,1],[1,0],[106,1],[1,0],[32,1],[1,5]],[[9,1],[1,5],[2,1],[1,0],[10,1],[14,2],[82,1],[1,0],[32,1],[1,5]],[[9,1],[1,5],[2,1],[1,0],[10,1],[1,2],[12,3],[1,2],[82,1],[1,0],[32,1],[1,5]],[[9,1],[1,5],[2,1],[1,0],[10,1],[1,2],[12,3],[1,2],[82,1],[1,0],[32,1],[1,5]],[[9,1],[1,5],[2,1],[1,0],[10,1],[7,2],[1,6],[6,2],[82,1],[1,0],[32,1],[1,5]],[[9,1],[1,5],[2,1],[1,0],[17,1],[1,7],[88,1],[1,0],[32,1],[1,5]],[[9,1],[1,5],[2,1],[1,0],[17,1],[1,5],[13,10],[109,5]],[[9,1],[1,5],[2,1],[1,0],[106,1],[1,0],[32,1],[1,5]],[[9,1],[1,5],[2,1],[1,0],[106,1],[1,0],[20,1],[25,2]],[[9,1],[1,5],[2,1],[1,0],[106,1],[1,0],[20,1],[25,2]],[[9,1],[1,5],[2,1],[1,0],[106,1],[1,0],[20,1],[1,2],[23,3],[1,2]],[[9,1],[1,5],[2,1],[1,0],[106,1],[1,0],[20,1],[1,2],[23,3],[1,2]],[[9,1],[1,5],[2,1],[1,0],[106,1],[1,0],[20,1],[25,2]],[[9,1],[1,5],[2,1],[1,0],[106,1],[1,0],[20,1],[25,2]],[[9,1],[1,5],[2,1],[1,0],[106,1],[1,0]],[[9,1],[1,5],[2,1],[1,0],[106,1],[1,0]],[[9,1],[1,5],[2,1],[1,0],[106,1],[1,0]],[[9,1],[21,5],[89,1],[1,0]],[[12,1],[1,0],[16,1],[1,5],[89,1],[1,0]],[[12,1],[1,0],[6,1],[21,2],[79,1],[1,0]],[[12,1],[1,0],[6,1],[1,2],[19,3],[1,2],[79,1],[1,0]],[[12,1],[1,0],[6,1],[1,2],[19,3],[1,2],[79,1],[1,0]],[[12,1],[1,0],[6,1],[21,2],[79,1],[1,0]],[[12,1],[108,0]]]}, + {"width":60,"source":"flowchart LR\n A[A] -->|A to X| X[X]\n A -->|A to Y| Y[Y]\n B[B] -->|B to Y| Y\n B -->|B to Z| Z[Z]","height":19,"lines":[" ╭───╮"," ╭─ A to X ─▶│ X │"," │ ╰───╯"," │","╭───╮ │","│ A ├───┤","╰───╯ │"," │"," │ ╭───╮"," ╰─ A to Y ─▶│ Y │"," ╰───╯"," ▲","╭───╮ ╭── B to Y ──╯","│ B ├────┤","╰───╯ │"," │ B to Z "," │ ╭───╮"," ╰─────────▶│ Z │"," ╰───╯"],"runs":[[[20,1],[5,2]],[[8,1],[2,5],[8,10],[2,5],[1,2],[3,3],[1,2]],[[8,1],[1,5],[11,1],[5,2]],[[8,1],[1,5]],[[5,2],[3,1],[1,5]],[[1,2],[3,3],[1,4],[4,5]],[[5,2],[3,1],[1,5]],[[8,1],[1,5]],[[8,1],[1,5],[11,1],[5,2]],[[8,1],[2,5],[8,10],[2,5],[1,2],[3,3],[1,2]],[[20,1],[5,2]],[[22,1],[1,5]],[[5,2],[4,1],[3,5],[8,10],[3,5]],[[1,2],[3,3],[1,4],[5,5]],[[5,2],[4,1],[1,5]],[[9,1],[1,5],[8,10]],[[9,1],[1,5],[10,1],[5,2]],[[9,1],[11,5],[1,2],[3,3],[1,2]],[[20,1],[5,2]]]}, + {"width":60,"source":"flowchart TD\n CS[conformance suite<br/>same test cases pin every driver] -.verifies.-> LS\n CS -.verifies.-> MS\n CS -.verifies.-> MEM[memory driver]","height":12,"lines":[" ╭──────────────────────────────────╮"," │ conformance suite │","╭───┤ same test cases pin every driver │","│ ╰─────────────────┬────────────────╯","│ ╭── verifies ───┴──────────╮","│ │ │ verifies ","│ ▼ ▼","│ ╭────╮ ╭────╮ ╭───────────────╮","│ │ LS │ │ MS │ │ memory driver │","│ ╰────╯ ╰────╯ ╰───────────────╯","│ ▲","╰─── verifies ───╯"],"runs":[[[4,1],[36,2]],[[4,1],[1,2],[34,3],[1,2]],[[1,5],[1,8],[1,7],[1,4],[1,6],[34,3],[1,2]],[[1,5],[3,1],[18,2],[1,4],[17,2]],[[1,5],[5,1],[3,5],[10,10],[15,5]],[[1,5],[5,1],[1,5],[26,1],[1,5],[10,10]],[[1,5],[5,1],[1,5],[26,1],[1,5]],[[1,5],[2,1],[6,2],[5,1],[6,2],[5,1],[17,2]],[[1,5],[2,1],[1,2],[4,3],[1,2],[5,1],[1,2],[4,3],[1,2],[5,1],[1,2],[15,3],[1,2]],[[1,5],[2,1],[6,2],[5,1],[6,2],[5,1],[17,2]],[[1,5],[16,1],[1,5]],[[4,5],[10,10],[4,5]]]}, + {"width":60,"source":"flowchart LR\n subgraph before [Before]\n T1[read/edit/write/patch<br/>shell/grep/glob] --> F1[FSUtil / node:fs / AppProcess<br/>+ hosted branching in every tool]\n end\n subgraph after [After — merged this week]\n T2[same 8 tools] --> E[Environment<br/>files + spawner]\n E --> D{driver}\n D --> L[local<br/>node:fs]\n D --> M[Modal<br/>sandbox.exec]\n D --> Mem[memory<br/>tests]\n end\n before ~~~ after","height":37,"lines":[" ╭─ Before ─────────────────────────────╮"," │ ╭───────────────────────╮ │"," │ │ read/edit/write/patch │ │"," │ │ shell/grep/glob │ │"," │ ╰───────────┬───────────╯ │"," │ │ │"," │ ▼ │"," │ ╭──────────────────────────────────╮ │"," │ │ FSUtil / node:fs / AppProcess │ │"," │ │ + hosted branching in every tool │ │"," │ ╰──────────────────────────────────╯ │"," ╰──────────────────────────────────────╯","","╭─ After — merged this week ──────────────────────╮","│ ╭──────────────╮ │","│ │ same 8 tools │ │","│ ╰───────┬──────╯ │","│ │ │","│ ▼ │","│ ╭─────────────────╮ │","│ │ Environment │ │","│ │ files + spawner │ │","│ ╰────────┬────────╯ │","│ │ │","│ ▼ │","│ ╭───────╮ │","│ ╭─╯ ╰─╮ │","│ │ driver │ │","│ ╰─╮ ╭─╯ │","│ ╰───┬───╯ │","│ ╭─────────────────┴┬─────────────────╮ │","│ ▼ ▼ ▼ │","│ ╭─────────╮ ╭──────────────╮ ╭────────╮ │","│ │ local │ │ Modal │ │ memory │ │","│ │ node:fs │ │ sandbox.exec │ │ tests │ │","│ ╰─────────╯ ╰──────────────╯ ╰────────╯ │","╰─────────────────────────────────────────────────╯"],"runs":[[[5,1],[2,0],[8,0],[30,0]],[[5,1],[1,0],[7,1],[25,2],[6,1],[1,0]],[[5,1],[1,0],[7,1],[1,2],[23,3],[1,2],[6,1],[1,0]],[[5,1],[1,0],[7,1],[1,2],[23,3],[1,2],[6,1],[1,0]],[[5,1],[1,0],[7,1],[12,2],[1,6],[12,2],[6,1],[1,0]],[[5,1],[1,0],[19,1],[1,7],[18,1],[1,0]],[[5,1],[1,0],[19,1],[1,5],[18,1],[1,0]],[[5,1],[1,0],[1,1],[36,2],[1,1],[1,0]],[[5,1],[1,0],[1,1],[1,2],[34,3],[1,2],[1,1],[1,0]],[[5,1],[1,0],[1,1],[1,2],[34,3],[1,2],[1,1],[1,0]],[[5,1],[1,0],[1,1],[36,2],[1,1],[1,0]],[[5,1],[40,0]],[],[[2,0],[26,0],[23,0]],[[1,0],[16,1],[16,2],[17,1],[1,0]],[[1,0],[16,1],[1,2],[14,3],[1,2],[17,1],[1,0]],[[1,0],[16,1],[8,2],[1,6],[7,2],[17,1],[1,0]],[[1,0],[24,1],[1,7],[24,1],[1,0]],[[1,0],[24,1],[1,5],[24,1],[1,0]],[[1,0],[15,1],[19,2],[15,1],[1,0]],[[1,0],[15,1],[1,2],[17,3],[1,2],[15,1],[1,0]],[[1,0],[15,1],[1,2],[17,3],[1,2],[15,1],[1,0]],[[1,0],[15,1],[9,2],[1,6],[9,2],[15,1],[1,0]],[[1,0],[24,1],[1,7],[24,1],[1,0]],[[1,0],[24,1],[1,5],[24,1],[1,0]],[[1,0],[20,1],[9,2],[20,1],[1,0]],[[1,0],[18,1],[3,2],[7,1],[3,2],[18,1],[1,0]],[[1,0],[18,1],[1,2],[2,1],[6,3],[3,1],[1,2],[18,1],[1,0]],[[1,0],[18,1],[3,2],[7,1],[3,2],[18,1],[1,0]],[[1,0],[20,1],[4,2],[1,4],[4,2],[20,1],[1,0]],[[1,0],[6,1],[38,5],[5,1],[1,0]],[[1,0],[6,1],[1,5],[18,1],[1,5],[17,1],[1,5],[5,1],[1,0]],[[1,0],[1,1],[11,2],[5,1],[16,2],[5,1],[10,2],[1,1],[1,0]],[[1,0],[1,1],[1,2],[9,3],[1,2],[5,1],[1,2],[14,3],[1,2],[5,1],[1,2],[8,3],[1,2],[1,1],[1,0]],[[1,0],[1,1],[1,2],[9,3],[1,2],[5,1],[1,2],[14,3],[1,2],[5,1],[1,2],[8,3],[1,2],[1,1],[1,0]],[[1,0],[1,1],[11,2],[5,1],[16,2],[5,1],[10,2],[1,1],[1,0]],[[51,0]]]}, + {"width":60,"source":"flowchart TD\n subgraph S1[\"1. provider.transform (seed)\"]\n A1[\"Catalog model → copy catalog variants\"]\n A2[\"Custom model → apply package/modelID/limit + seed default variants\"]\n end\n subgraph S2[\"2. plugin model.transform\"]\n B[\"Plugin can replace variants, clear to [], or ignore\"]\n end\n subgraph S3[\"3. config model.transform (post)\"]\n C1{\"Config sets reasoning or variants?\"}\n C1 -- yes --> C2[\"Apply explicit config\"]\n C1 -- no --> C3{\"Config changed package (or recreated removed model)?\"}\n C3 -- yes --> C4[\"Respell / reseed variants\"]\n C3 -- no --> C5[\"Keep current variants\"]\n end\n S1 --> S2 --> S3","height":61,"lines":[" ╭─ 1. provider.transform (seed) ─────────────────────────────────────────╮"," │ ╭───────────────────────────────────────╮ │"," │ │ Catalog model → copy catalog variants │ │"," │ ╰───────────────────────────────────────╯ │"," │ │"," │ │"," │ │"," │ │"," │ │"," │ ╭────────────────────────────────────────────────────────────────────╮ │"," │ │ Custom model → apply package/modelID/limit + seed default variants │ │"," │ ╰────────────────────────────────────────────────────────────────────╯ │"," ╰───────────────────────────────────┬────────────────────────────────────╯"," │"," │"," ▼"," ╭─ 2. plugin model.transform ─────────────────────────────╮"," │ ╭─────────────────────────────────────────────────────╮ │"," │ │ Plugin can replace variants, clear to [], or ignore │ │"," │ ╰─────────────────────────────────────────────────────╯ │"," ╰────────────────────────────┬────────────────────────────╯"," │"," ╭─────╯"," ▼","╭─ 3. config model.transform (post) ───────────────────────────────────────╮","│ ╭───────────────────────────────────╮ │","│ ╭─╯ ╰─╮ │","│ │ Config sets reasoning or variants? │ │","│ ╰─╮ ╭─╯ │","│ ╰─────────────────┬─────────────────╯ │","│ ╭────────────────── no ───────────────────┤ │","│ │ │ yes │","│ │ ▼ │","│ │ ╭───────────────────────╮ │","│ │ │ Apply explicit config │ │","│ │ ╰───────────────────────╯ │","│ │ │","│ │ │","│ │ │","│ ╰─────────────────────────────────────────╮ │","│ ▼ │","│ ╭─────────────────────────────────────────────────────╮ │","│ ╭─╯ ╰─╮ │","│ │ Config changed package (or recreated removed model)? │ │","│ ╰─╮ ╭─╯ │","│ ╰──────────────────────────┬──────────────────────────╯ │","│ ╭────────────────── no ───────────────────┤ │","│ │ │ yes │","│ │ ▼ │","│ │ ╭───────────────────────────╮ │","│ │ │ Respell / reseed variants │ │","│ │ ╰───────────────────────────╯ │","│ │ │","│ │ │","│ │ │","│ ╰─────────────────────────────────────────╮ │","│ ▼ │","│ ╭───────────────────────╮ │","│ │ Keep current variants │ │","│ ╰───────────────────────╯ │","╰──────────────────────────────────────────────────────────────────────────╯"],"runs":[[[8,1],[2,0],[30,0],[42,0]],[[8,1],[1,0],[15,1],[41,2],[16,1],[1,0]],[[8,1],[1,0],[15,1],[1,2],[39,3],[1,2],[16,1],[1,0]],[[8,1],[1,0],[15,1],[41,2],[16,1],[1,0]],[[8,1],[1,0],[72,1],[1,0]],[[8,1],[1,0],[72,1],[1,0]],[[8,1],[1,0],[72,1],[1,0]],[[8,1],[1,0],[72,1],[1,0]],[[8,1],[1,0],[72,1],[1,0]],[[8,1],[1,0],[1,1],[70,2],[1,1],[1,0]],[[8,1],[1,0],[1,1],[1,2],[68,3],[1,2],[1,1],[1,0]],[[8,1],[1,0],[1,1],[70,2],[1,1],[1,0]],[[8,1],[36,0],[1,6],[37,0]],[[44,1],[1,4]],[[44,1],[1,7]],[[44,1],[1,5]],[[15,1],[2,0],[27,0],[30,0]],[[15,1],[1,0],[1,1],[55,2],[1,1],[1,0]],[[15,1],[1,0],[1,1],[1,2],[53,3],[1,2],[1,1],[1,0]],[[15,1],[1,0],[1,1],[55,2],[1,1],[1,0]],[[15,1],[29,0],[1,6],[29,0]],[[44,1],[1,7]],[[38,1],[7,5]],[[38,1],[1,5]],[[2,0],[34,0],[40,0]],[[1,0],[25,1],[37,2],[12,1],[1,0]],[[1,0],[23,1],[3,2],[35,1],[3,2],[10,1],[1,0]],[[1,0],[23,1],[1,2],[2,1],[34,3],[3,1],[1,2],[10,1],[1,0]],[[1,0],[23,1],[3,2],[35,1],[3,2],[10,1],[1,0]],[[1,0],[25,1],[18,2],[1,4],[18,2],[12,1],[1,0]],[[1,0],[1,1],[19,5],[4,10],[20,5],[30,1],[1,0]],[[1,0],[1,1],[1,5],[41,1],[1,5],[5,10],[25,1],[1,0]],[[1,0],[1,1],[1,5],[41,1],[1,5],[30,1],[1,0]],[[1,0],[1,1],[1,5],[29,1],[25,2],[18,1],[1,0]],[[1,0],[1,1],[1,5],[29,1],[1,2],[23,3],[1,2],[18,1],[1,0]],[[1,0],[1,1],[1,5],[29,1],[25,2],[18,1],[1,0]],[[1,0],[1,1],[1,5],[72,1],[1,0]],[[1,0],[1,1],[1,5],[72,1],[1,0]],[[1,0],[1,1],[1,5],[72,1],[1,0]],[[1,0],[1,1],[43,5],[30,1],[1,0]],[[1,0],[43,1],[1,5],[30,1],[1,0]],[[1,0],[16,1],[55,2],[3,1],[1,0]],[[1,0],[14,1],[3,2],[53,1],[3,2],[1,1],[1,0]],[[1,0],[14,1],[1,2],[2,1],[52,3],[3,1],[1,2],[1,1],[1,0]],[[1,0],[14,1],[3,2],[53,1],[3,2],[1,1],[1,0]],[[1,0],[16,1],[27,2],[1,4],[27,2],[3,1],[1,0]],[[1,0],[1,1],[19,5],[4,10],[20,5],[30,1],[1,0]],[[1,0],[1,1],[1,5],[41,1],[1,5],[5,10],[25,1],[1,0]],[[1,0],[1,1],[1,5],[41,1],[1,5],[30,1],[1,0]],[[1,0],[1,1],[1,5],[27,1],[29,2],[16,1],[1,0]],[[1,0],[1,1],[1,5],[27,1],[1,2],[27,3],[1,2],[16,1],[1,0]],[[1,0],[1,1],[1,5],[27,1],[29,2],[16,1],[1,0]],[[1,0],[1,1],[1,5],[72,1],[1,0]],[[1,0],[1,1],[1,5],[72,1],[1,0]],[[1,0],[1,1],[1,5],[72,1],[1,0]],[[1,0],[1,1],[43,5],[30,1],[1,0]],[[1,0],[43,1],[1,5],[30,1],[1,0]],[[1,0],[31,1],[25,2],[18,1],[1,0]],[[1,0],[31,1],[1,2],[23,3],[1,2],[18,1],[1,0]],[[1,0],[31,1],[25,2],[18,1],[1,0]],[[76,0]]]}, + {"width":60,"source":"flowchart TD\n Start[Start] --> S1\n S1 -->|done| Done[Done]\n subgraph S1[\"Stage\"]\n W1[Step 1] --> W2[Step 2]\n end","height":22,"lines":[" ╭───────╮"," │ Start │"," ╰────┬──╯"," │"," │"," ▼","╭─ Stage ────╮","│ ╭────────╮ │","│ │ Step 1 │ │","│ ╰────┬───╯ │","│ │ │","│ ▼ │","│ ╭────────╮ │","│ │ Step 2 │ │","│ ╰────────╯ │","╰──────┬─────╯"," │"," │ done "," ▼"," ╭──────╮"," │ Done │"," ╰──────╯"],"runs":[[[2,1],[9,2]],[[2,1],[1,2],[7,3],[1,2]],[[2,1],[5,2],[1,6],[3,2]],[[7,1],[1,4]],[[7,1],[1,7]],[[7,1],[1,5]],[[2,0],[7,0],[5,0]],[[1,0],[1,1],[10,2],[1,1],[1,0]],[[1,0],[1,1],[1,2],[8,3],[1,2],[1,1],[1,0]],[[1,0],[1,1],[5,2],[1,6],[4,2],[1,1],[1,0]],[[1,0],[6,1],[1,7],[5,1],[1,0]],[[1,0],[6,1],[1,5],[5,1],[1,0]],[[1,0],[1,1],[10,2],[1,1],[1,0]],[[1,0],[1,1],[1,2],[8,3],[1,2],[1,1],[1,0]],[[1,0],[1,1],[10,2],[1,1],[1,0]],[[7,0],[1,6],[6,0]],[[7,1],[1,4]],[[7,1],[1,7],[6,10]],[[7,1],[1,5]],[[3,1],[8,2]],[[3,1],[1,2],[6,3],[1,2]],[[3,1],[8,2]]]}, + {"width":60,"source":"flowchart BT\n subgraph S1[\"First group title\"]\n A1[Alpha]\n end\n subgraph S2[\"Second group title\"]\n B1[Beta]\n end\n S1 --> S2","height":13,"lines":["╭─ Second group title ╮","│ ╭──────╮ │","│ │ Beta │ │","│ ╰──────╯ │","╰─────────────────────╯"," ▲"," │"," │"," ╭─────────┴──────────╮"," │ ╭───────╮ │"," │ │ Alpha │ │"," │ ╰───────╯ │"," ╰─ First group title ╯"],"runs":[[[2,0],[20,0],[1,0]],[[1,0],[6,1],[8,2],[7,1],[1,0]],[[1,0],[6,1],[1,2],[6,3],[1,2],[7,1],[1,0]],[[1,0],[6,1],[8,2],[7,1],[1,0]],[[23,0]],[[11,1],[1,5]],[[11,1],[1,7]],[[11,1],[1,4]],[[1,1],[10,0],[1,6],[11,0]],[[1,1],[1,0],[5,1],[9,2],[6,1],[1,0]],[[1,1],[1,0],[5,1],[1,2],[7,3],[1,2],[6,1],[1,0]],[[1,1],[1,0],[5,1],[9,2],[6,1],[1,0]],[[1,1],[2,0],[19,0],[1,0]]]}, + {"width":60,"source":"flowchart TD\n subgraph Outer[\"Outer\"]\n Entry[Entry] --> Inner\n subgraph Inner[\"Inner\"]\n A[One] --> B[Two]\n end\n end","height":18,"lines":["╭─ Outer ─────╮","│ ╭───────╮ │","│ │ Entry │ │","│ ╰───┬───╯ │","│ │ │","│ │ │","│ ▼ │","│ ╭─ Inner ─╮ │","│ │ ╭─────╮ │ │","│ │ │ One │ │ │","│ │ ╰──┬──╯ │ │","│ │ │ │ │","│ │ ▼ │ │","│ │ ╭─────╮ │ │","│ │ │ Two │ │ │","│ │ ╰─────╯ │ │","│ ╰─────────╯ │","╰─────────────╯"],"runs":[[[2,0],[7,0],[6,0]],[[1,0],[2,1],[9,2],[2,1],[1,0]],[[1,0],[2,1],[1,2],[7,3],[1,2],[2,1],[1,0]],[[1,0],[2,1],[4,2],[1,6],[4,2],[2,1],[1,0]],[[1,0],[6,1],[1,4],[6,1],[1,0]],[[1,0],[6,1],[1,7],[6,1],[1,0]],[[1,0],[6,1],[1,5],[6,1],[1,0]],[[1,0],[1,1],[2,0],[7,0],[2,0],[1,1],[1,0]],[[1,0],[1,1],[1,0],[1,1],[7,2],[1,1],[1,0],[1,1],[1,0]],[[1,0],[1,1],[1,0],[1,1],[1,2],[5,3],[1,2],[1,1],[1,0],[1,1],[1,0]],[[1,0],[1,1],[1,0],[1,1],[3,2],[1,6],[3,2],[1,1],[1,0],[1,1],[1,0]],[[1,0],[1,1],[1,0],[4,1],[1,7],[4,1],[1,0],[1,1],[1,0]],[[1,0],[1,1],[1,0],[4,1],[1,5],[4,1],[1,0],[1,1],[1,0]],[[1,0],[1,1],[1,0],[1,1],[7,2],[1,1],[1,0],[1,1],[1,0]],[[1,0],[1,1],[1,0],[1,1],[1,2],[5,3],[1,2],[1,1],[1,0],[1,1],[1,0]],[[1,0],[1,1],[1,0],[1,1],[7,2],[1,1],[1,0],[1,1],[1,0]],[[1,0],[1,1],[11,0],[1,1],[1,0]],[[15,0]]]}, + {"width":60,"source":"flowchart LR\n subgraph API\n API[API Gateway] --> DB[(Postgres)]\n end","height":7,"lines":["╭─ API ───────────────────────────╮","│ ╭──────────╮ │","│ ╭─────────────╮ ├──────────┤ │","│ │ API Gateway ├───▶│ Postgres │ │","│ ╰─────────────╯ ├──────────┤ │","│ ╰──────────╯ │","╰─────────────────────────────────╯"],"runs":[[[2,0],[5,0],[28,0]],[[1,0],[20,1],[12,2],[1,1],[1,0]],[[1,0],[1,1],[15,2],[4,1],[12,2],[1,1],[1,0]],[[1,0],[1,1],[1,2],[13,3],[1,6],[1,4],[1,7],[1,8],[1,5],[1,2],[10,3],[1,2],[1,1],[1,0]],[[1,0],[1,1],[15,2],[4,1],[12,2],[1,1],[1,0]],[[1,0],[20,1],[12,2],[1,1],[1,0]],[[35,0]]]}, + {"width":60,"source":"flowchart LR\n subgraph Pipeline\n A --> B --> C --> D --> E --> F --> G --> H --> I --> J --> K --> L\n end","height":60,"lines":["╭─ Pipeline ╮","│ ╭───╮ │","│ │ A │ │","│ ╰─┬─╯ │","│ │ │","│ ▼ │","│ ╭───╮ │","│ │ B │ │","│ ╰─┬─╯ │","│ │ │","│ ▼ │","│ ╭───╮ │","│ │ C │ │","│ ╰─┬─╯ │","│ │ │","│ ▼ │","│ ╭───╮ │","│ │ D │ │","│ ╰─┬─╯ │","│ │ │","│ ▼ │","│ ╭───╮ │","│ │ E │ │","│ ╰─┬─╯ │","│ │ │","│ ▼ │","│ ╭───╮ │","│ │ F │ │","│ ╰─┬─╯ │","│ │ │","│ ▼ │","│ ╭───╮ │","│ │ G │ │","│ ╰─┬─╯ │","│ │ │","│ ▼ │","│ ╭───╮ │","│ │ H │ │","│ ╰─┬─╯ │","│ │ │","│ ▼ │","│ ╭───╮ │","│ │ I │ │","│ ╰─┬─╯ │","│ │ │","│ ▼ │","│ ╭───╮ │","│ │ J │ │","│ ╰─┬─╯ │","│ │ │","│ ▼ │","│ ╭───╮ │","│ │ K │ │","│ ╰─┬─╯ │","│ │ │","│ ▼ │","│ ╭───╮ │","│ │ L │ │","│ ╰───╯ │","╰───────────╯"],"runs":[[[2,0],[10,0],[1,0]],[[1,0],[3,1],[5,2],[3,1],[1,0]],[[1,0],[3,1],[1,2],[3,3],[1,2],[3,1],[1,0]],[[1,0],[3,1],[2,2],[1,6],[2,2],[3,1],[1,0]],[[1,0],[5,1],[1,7],[5,1],[1,0]],[[1,0],[5,1],[1,5],[5,1],[1,0]],[[1,0],[3,1],[5,2],[3,1],[1,0]],[[1,0],[3,1],[1,2],[3,3],[1,2],[3,1],[1,0]],[[1,0],[3,1],[2,2],[1,6],[2,2],[3,1],[1,0]],[[1,0],[5,1],[1,7],[5,1],[1,0]],[[1,0],[5,1],[1,5],[5,1],[1,0]],[[1,0],[3,1],[5,2],[3,1],[1,0]],[[1,0],[3,1],[1,2],[3,3],[1,2],[3,1],[1,0]],[[1,0],[3,1],[2,2],[1,6],[2,2],[3,1],[1,0]],[[1,0],[5,1],[1,7],[5,1],[1,0]],[[1,0],[5,1],[1,5],[5,1],[1,0]],[[1,0],[3,1],[5,2],[3,1],[1,0]],[[1,0],[3,1],[1,2],[3,3],[1,2],[3,1],[1,0]],[[1,0],[3,1],[2,2],[1,6],[2,2],[3,1],[1,0]],[[1,0],[5,1],[1,7],[5,1],[1,0]],[[1,0],[5,1],[1,5],[5,1],[1,0]],[[1,0],[3,1],[5,2],[3,1],[1,0]],[[1,0],[3,1],[1,2],[3,3],[1,2],[3,1],[1,0]],[[1,0],[3,1],[2,2],[1,6],[2,2],[3,1],[1,0]],[[1,0],[5,1],[1,7],[5,1],[1,0]],[[1,0],[5,1],[1,5],[5,1],[1,0]],[[1,0],[3,1],[5,2],[3,1],[1,0]],[[1,0],[3,1],[1,2],[3,3],[1,2],[3,1],[1,0]],[[1,0],[3,1],[2,2],[1,6],[2,2],[3,1],[1,0]],[[1,0],[5,1],[1,7],[5,1],[1,0]],[[1,0],[5,1],[1,5],[5,1],[1,0]],[[1,0],[3,1],[5,2],[3,1],[1,0]],[[1,0],[3,1],[1,2],[3,3],[1,2],[3,1],[1,0]],[[1,0],[3,1],[2,2],[1,6],[2,2],[3,1],[1,0]],[[1,0],[5,1],[1,7],[5,1],[1,0]],[[1,0],[5,1],[1,5],[5,1],[1,0]],[[1,0],[3,1],[5,2],[3,1],[1,0]],[[1,0],[3,1],[1,2],[3,3],[1,2],[3,1],[1,0]],[[1,0],[3,1],[2,2],[1,6],[2,2],[3,1],[1,0]],[[1,0],[5,1],[1,7],[5,1],[1,0]],[[1,0],[5,1],[1,5],[5,1],[1,0]],[[1,0],[3,1],[5,2],[3,1],[1,0]],[[1,0],[3,1],[1,2],[3,3],[1,2],[3,1],[1,0]],[[1,0],[3,1],[2,2],[1,6],[2,2],[3,1],[1,0]],[[1,0],[5,1],[1,7],[5,1],[1,0]],[[1,0],[5,1],[1,5],[5,1],[1,0]],[[1,0],[3,1],[5,2],[3,1],[1,0]],[[1,0],[3,1],[1,2],[3,3],[1,2],[3,1],[1,0]],[[1,0],[3,1],[2,2],[1,6],[2,2],[3,1],[1,0]],[[1,0],[5,1],[1,7],[5,1],[1,0]],[[1,0],[5,1],[1,5],[5,1],[1,0]],[[1,0],[3,1],[5,2],[3,1],[1,0]],[[1,0],[3,1],[1,2],[3,3],[1,2],[3,1],[1,0]],[[1,0],[3,1],[2,2],[1,6],[2,2],[3,1],[1,0]],[[1,0],[5,1],[1,7],[5,1],[1,0]],[[1,0],[5,1],[1,5],[5,1],[1,0]],[[1,0],[3,1],[5,2],[3,1],[1,0]],[[1,0],[3,1],[1,2],[3,3],[1,2],[3,1],[1,0]],[[1,0],[3,1],[5,2],[3,1],[1,0]],[[13,0]]]}, + {"width":60,"source":"flowchart LR\n subgraph Services\n API\n Worker\n end\n API --> Worker --> DB[(Database)]","height":5,"lines":["╭─ Services ────────────╮ ╭──────────╮","│ ╭─────╮ ╭────────╮ │ ├──────────┤","│ │ API ├───▶│ Worker ├───▶│ Database │","│ ╰─────╯ ╰────────╯ │ ├──────────┤","╰───────────────────────╯ ╰──────────╯"],"runs":[[[2,0],[10,0],[13,0],[2,1],[12,2]],[[1,0],[1,1],[7,2],[4,1],[10,2],[1,1],[1,0],[2,1],[12,2]],[[1,0],[1,1],[1,2],[5,3],[1,6],[1,4],[1,7],[1,8],[1,5],[1,2],[8,3],[1,6],[1,4],[1,7],[1,8],[1,5],[1,2],[10,3],[1,2]],[[1,0],[1,1],[7,2],[4,1],[10,2],[1,1],[1,0],[2,1],[12,2]],[[25,0],[2,1],[12,2]]]}, + {"width":60,"source":"\nflowchart LR\n subgraph Web [Web App]\n UI[UI] --> API[API]\n end\n subgraph Platform\n API --> DB[(Database)]\n end\n","height":37,"lines":[" ╭─ Web App ╮"," │ ╭────╮ │"," │ │ UI │ │"," │ ╰─┬──╯ │"," │ │ │"," │ │ │"," │ │ │"," │ │ │"," │ │ │"," │ │ │"," │ │ │"," │ │ │"," │ │ │"," │ │ │"," │ │ │"," │ │ │"," │ │ │"," │ │ │"," │ │ │"," ╰────│─────╯"," │"," │"," │"," │"," │","╭──────▼───────╮","│ ╭─────╮ │","│ │ API │ │","│ ╰───┬─╯ │","│ │ │","│ ▼ │","│ ╭──────────╮ │","│ ├──────────┤ │","│ │ Database │ │","│ ├──────────┤ │","│ ╰──────────╯ │","╰─ Platform ───╯"],"runs":[[[2,1],[2,0],[9,0],[1,0]],[[2,1],[1,0],[2,1],[6,2],[2,1],[1,0]],[[2,1],[1,0],[2,1],[1,2],[4,3],[1,2],[2,1],[1,0]],[[2,1],[1,0],[2,1],[2,2],[1,9],[3,2],[2,1],[1,0]],[[2,1],[1,0],[4,1],[1,9],[5,1],[1,0]],[[2,1],[1,0],[4,1],[1,9],[5,1],[1,0]],[[2,1],[1,0],[4,1],[1,9],[5,1],[1,0]],[[2,1],[1,0],[4,1],[1,6],[5,1],[1,0]],[[2,1],[1,0],[4,1],[1,6],[5,1],[1,0]],[[2,1],[1,0],[4,1],[1,6],[5,1],[1,0]],[[2,1],[1,0],[4,1],[1,6],[5,1],[1,0]],[[2,1],[1,0],[4,1],[1,6],[5,1],[1,0]],[[2,1],[1,0],[4,1],[1,4],[5,1],[1,0]],[[2,1],[1,0],[4,1],[1,4],[5,1],[1,0]],[[2,1],[1,0],[4,1],[1,4],[5,1],[1,0]],[[2,1],[1,0],[4,1],[1,4],[5,1],[1,0]],[[2,1],[1,0],[4,1],[1,7],[5,1],[1,0]],[[2,1],[1,0],[4,1],[1,7],[5,1],[1,0]],[[2,1],[1,0],[4,1],[1,7],[5,1],[1,0]],[[2,1],[5,0],[1,7],[6,0]],[[7,1],[1,7]],[[7,1],[1,8]],[[7,1],[1,8]],[[7,1],[1,8]],[[7,1],[1,8]],[[7,0],[1,5],[8,0]],[[1,0],[3,1],[7,2],[4,1],[1,0]],[[1,0],[3,1],[1,2],[5,3],[1,2],[4,1],[1,0]],[[1,0],[3,1],[4,2],[1,6],[2,2],[4,1],[1,0]],[[1,0],[7,1],[1,7],[6,1],[1,0]],[[1,0],[7,1],[1,5],[6,1],[1,0]],[[1,0],[1,1],[12,2],[1,1],[1,0]],[[1,0],[1,1],[12,2],[1,1],[1,0]],[[1,0],[1,1],[1,2],[10,3],[1,2],[1,1],[1,0]],[[1,0],[1,1],[12,2],[1,1],[1,0]],[[1,0],[1,1],[12,2],[1,1],[1,0]],[[2,0],[10,0],[4,0]]]}, + {"width":60,"source":"\nflowchart TD\n subgraph Verse\n direction LR\n A[A] --> B[B]\n end\n","height":5,"lines":["╭─ Verse ──────╮","│ ╭───╮ ╭───╮ │","│ │ A ├─▶│ B │ │","│ ╰───╯ ╰───╯ │","╰──────────────╯"],"runs":[[[2,0],[7,0],[7,0]],[[1,0],[1,1],[5,2],[2,1],[5,2],[1,1],[1,0]],[[1,0],[1,1],[1,2],[3,3],[1,6],[1,7],[1,5],[1,2],[3,3],[1,2],[1,1],[1,0]],[[1,0],[1,1],[5,2],[2,1],[5,2],[1,1],[1,0]],[[16,0]]]}, + {"width":60,"source":"\nflowchart LR\n Parse[[Parse]] --> Layout[Layout]\n","height":3,"lines":["╭─┬─────┬─╮ ╭────────╮","│ │Parse│ ├───▶│ Layout │","╰─┴─────┴─╯ ╰────────╯"],"runs":[[[11,2],[4,1],[10,2]],[[1,2],[1,3],[1,2],[5,3],[1,2],[1,3],[1,6],[1,4],[1,7],[1,8],[1,5],[1,2],[8,3],[1,2]],[[11,2],[4,1],[10,2]]]}, + {"width":60,"source":"\nflowchart LR\n Build[Build] ==> Ship[Ship]\n","height":3,"lines":["╭───────╮ ╭──────╮","│ Build ├━━━▶│ Ship │","╰───────╯ ╰──────╯"],"runs":[[[9,2],[4,1],[8,2]],[[1,2],[7,3],[1,6],[1,4],[1,7],[1,8],[1,5],[1,2],[6,3],[1,2]],[[9,2],[4,1],[8,2]]]}, + {"width":60,"source":"\nflowchart LR\n Build[Build] -.-> Ship[Ship]\n","height":3,"lines":["╭───────╮ ╭──────╮","│ Build ├───▶│ Ship │","╰───────╯ ╰──────╯"],"runs":[[[9,2],[4,1],[8,2]],[[1,2],[7,3],[1,6],[1,4],[1,7],[1,8],[1,5],[1,2],[6,3],[1,2]],[[9,2],[4,1],[8,2]]]}, + {"width":60,"source":"flowchart LR\n D{driver} --> L[local]\n D --> M[Modal]\n D --> Mem[memory]","height":19,"lines":[" ╭───────╮"," ╭─▶│ local │"," │ ╰───────╯"," │"," │"," │"," │"," ╭───────╮ │","╭─╯ ╰─╮ │ ╭───────╮","│ driver ├─┼─▶│ Modal │","╰─╮ ╭─╯ │ ╰───────╯"," ╰───────╯ │"," │"," │"," │"," │"," │ ╭────────╮"," ╰─▶│ memory │"," ╰────────╯"],"runs":[[[17,1],[9,2]],[[14,1],[3,5],[1,2],[7,3],[1,2]],[[14,1],[1,5],[2,1],[9,2]],[[14,1],[1,5]],[[14,1],[1,5]],[[14,1],[1,5]],[[14,1],[1,5]],[[2,1],[9,2],[3,1],[1,5]],[[3,2],[7,1],[3,2],[1,1],[1,5],[2,1],[9,2]],[[1,2],[2,1],[6,3],[3,1],[1,4],[4,5],[1,2],[7,3],[1,2]],[[3,2],[7,1],[3,2],[1,1],[1,5],[2,1],[9,2]],[[2,1],[9,2],[3,1],[1,5]],[[14,1],[1,5]],[[14,1],[1,5]],[[14,1],[1,5]],[[14,1],[1,5]],[[14,1],[1,5],[2,1],[10,2]],[[14,1],[3,5],[1,2],[8,3],[1,2]],[[17,1],[10,2]]]}, + {"width":60,"source":"flowchart TD\n C[Files contract<br/>read / write / stat<br/>errors: Failed] -->|implemented by| ED[exec-defaults<br/>fused scripts<br/>one process]","height":13,"lines":["╭─────────────────────╮","│ Files contract │","│ read / write / stat │","│ errors: Failed │","╰──────────┬──────────╯"," │"," │ implemented by "," ▼"," ╭───────────────╮"," │ exec-defaults │"," │ fused scripts │"," │ one process │"," ╰───────────────╯"],"runs":[[[23,2]],[[1,2],[21,3],[1,2]],[[1,2],[21,3],[1,2]],[[1,2],[21,3],[1,2]],[[11,2],[1,6],[11,2]],[[11,1],[1,4]],[[11,1],[1,7],[16,10]],[[11,1],[1,5]],[[3,1],[17,2]],[[3,1],[1,2],[15,3],[1,2]],[[3,1],[1,2],[15,3],[1,2]],[[3,1],[1,2],[15,3],[1,2]],[[3,1],[17,2]]]}, + {"width":60,"source":"\nflowchart LR\n subgraph Outer\n subgraph Inner [Inner Work]\n A[A] --> B[B]\n end\n B --> C[C]\n end\n","height":7,"lines":["╭─ Outer ───────────────────╮","│ ╭─ Inner Work ───╮ │","│ │ ╭───╮ ╭───╮ │ ╭───╮ │","│ │ │ A ├───▶│ B ├───▶│ C │ │","│ │ ╰───╯ ╰───╯ │ ╰───╯ │","│ ╰────────────────╯ │","╰───────────────────────────╯"],"runs":[[[2,0],[7,0],[20,0]],[[1,0],[1,1],[2,0],[12,0],[4,0],[8,1],[1,0]],[[1,0],[1,1],[1,0],[1,1],[5,2],[4,1],[5,2],[1,1],[1,0],[2,1],[5,2],[1,1],[1,0]],[[1,0],[1,1],[1,0],[1,1],[1,2],[3,3],[1,6],[1,4],[1,7],[1,8],[1,5],[1,2],[3,3],[1,6],[1,4],[1,7],[1,8],[1,5],[1,2],[3,3],[1,2],[1,1],[1,0]],[[1,0],[1,1],[1,0],[1,1],[5,2],[4,1],[5,2],[1,1],[1,0],[2,1],[5,2],[1,1],[1,0]],[[1,0],[1,1],[18,0],[8,1],[1,0]],[[29,0]]]}, + {"width":60,"source":"\ngraph LR\n Client([Client]) --> API[API]\n API --> Cache[(Cache)]\n","height":5,"lines":[" ╭───────╮","╭────────╮ ╭─────╮ ├───────┤","│ Client ├───▶│ API ├───▶│ Cache │","╰────────╯ ╰─────╯ ├───────┤"," ╰───────╯"],"runs":[[[25,1],[9,2]],[[10,2],[4,1],[7,2],[4,1],[9,2]],[[1,2],[8,3],[1,6],[1,4],[1,7],[1,8],[1,5],[1,2],[5,3],[1,6],[1,4],[1,7],[1,8],[1,5],[1,2],[7,3],[1,2]],[[10,2],[4,1],[7,2],[4,1],[9,2]],[[25,1],[9,2]]]}, + {"width":60,"source":"\nflowchart LR\n Build[Build] --> Gate{Ready?}\n Gate -->|yes| Ship([Ship])\n Gate -->|no| Fix[Fix]\n","height":11,"lines":[" ╭──────╮"," ╭─ yes ─▶│ Ship │"," │ ╰──────╯"," ╭───────╮ │","╭───────╮ ╭─╯ ╰─╮ │","│ Build ├───▶│ Ready? ├───┤","╰───────╯ ╰─╮ ╭─╯ │"," ╰───────╯ │"," │ ╭─────╮"," ╰─ no ──▶│ Fix │"," ╰─────╯"],"runs":[[[38,1],[8,2]],[[29,1],[2,5],[5,10],[2,5],[1,2],[6,3],[1,2]],[[29,1],[1,5],[8,1],[8,2]],[[15,1],[9,2],[5,1],[1,5]],[[9,2],[4,1],[3,2],[7,1],[3,2],[3,1],[1,5]],[[1,2],[7,3],[1,6],[1,4],[1,7],[1,8],[1,5],[1,2],[2,1],[6,3],[3,1],[1,4],[4,5]],[[9,2],[4,1],[3,2],[7,1],[3,2],[3,1],[1,5]],[[15,1],[9,2],[5,1],[1,5]],[[29,1],[1,5],[8,1],[7,2]],[[29,1],[2,5],[4,10],[3,5],[1,2],[5,3],[1,2]],[[38,1],[7,2]]]}, + {"width":60,"source":"\nflowchart LR\n Gate{Ready?} -->|pass| Stage[(Stage)]\n Gate -->|notes| Notes([Notes])\n","height":13,"lines":[" ╭───────╮"," ├───────┤"," ╭─ pass ──▶│ Stage │"," │ ├───────┤"," ╭───────╮ │ ╰───────╯","╭─╯ ╰─╮ │","│ Ready? ├───┤","╰─╮ ╭─╯ │"," ╰───────╯ │"," │"," │ ╭───────╮"," ╰─ notes ─▶│ Notes │"," ╰───────╯"],"runs":[[[27,1],[9,2]],[[27,1],[9,2]],[[16,1],[2,5],[6,10],[3,5],[1,2],[7,3],[1,2]],[[16,1],[1,5],[10,1],[9,2]],[[2,1],[9,2],[5,1],[1,5],[10,1],[9,2]],[[3,2],[7,1],[3,2],[3,1],[1,5]],[[1,2],[2,1],[6,3],[3,1],[1,4],[4,5]],[[3,2],[7,1],[3,2],[3,1],[1,5]],[[2,1],[9,2],[5,1],[1,5]],[[16,1],[1,5]],[[16,1],[1,5],[10,1],[9,2]],[[16,1],[2,5],[7,10],[2,5],[1,2],[7,3],[1,2]],[[27,1],[9,2]]]}, + {"width":60,"source":"flowchart LR\n A[Start] -->|first<br/>second line| B[Finish]","height":4,"lines":[" first ","╭───────╮ second line ╭────────╮","│ Start ├───────────────────▶│ Finish │","╰───────╯ ╰────────╯"],"runs":[[[12,1],[7,10]],[[9,2],[3,1],[13,10],[4,1],[10,2]],[[1,2],[7,3],[4,9],[4,6],[4,4],[4,7],[4,8],[1,5],[1,2],[8,3],[1,2]],[[9,2],[20,1],[10,2]]]}, + {"width":60,"source":"flowchart LR\n A[Start] -->|route label| B[Finish]","height":3,"lines":["╭───────╮ ╭────────╮","│ Start ├─── route label ───▶│ Finish │","╰───────╯ ╰────────╯"],"runs":[[[9,2],[20,1],[10,2]],[[1,2],[7,3],[1,6],[1,4],[1,7],[1,8],[13,10],[4,5],[1,2],[8,3],[1,2]],[[9,2],[20,1],[10,2]]]}, + {"width":60,"source":"flowchart TB\n DO[\"ServerWorkerd.create({ storage, config })\"]\n DO --> SO[\"serverOptions()<br/><i>option flags</i>\"]\n DO --> RP[\"replacements()<br/><i>layer overrides</i>\"]\n SO -->|\"fs: watcher/fff off<br/>events.persist: true<br/>mcp.stdio: false<br/>config as string\"| SF[\"ServerFetch.make(options, { overrides })\"]\n RP -->|\"Database → DO-SQLite<br/>Shell/FS/Pty → typed-unavailable<br/>Snapshot/Vcs → no-op<br/>plugins → precompiled only\"| SF\n SF --> GRAPH[\"LayerNode graph<br/>(core builds normally,<br/>swapped nodes substituted)\"]","height":29,"lines":["╭───────────────────────────────────────────╮","│ ServerWorkerd.create({ storage, config }) │","╰─────────────────────┬─────────────────────╯"," ╭───────────┴───────────╮"," ▼ ▼"," ╭─────────────────╮ ╭─────────────────╮"," │ serverOptions() │ │ replacements() │"," │ option flags │ │ layer overrides ├───╮"," ╰────────┬────────╯ ╰─────────────────╯ │"," │ fs: watcher/fff off │"," │ events.persist: true │"," ╰ mcp.stdio: false │"," config as string │"," │ │"," ▼ │","╭──────────────────────────────────────────╮ │","│ ServerFetch.make(options, { overrides }) │◀──╯","╰─────────────────────┬────────────────────╯"," │"," ▼"," ╭────────────────────────────╮"," │ LayerNode graph │"," │ (core builds normally, │"," │ swapped nodes substituted) │"," ╰────────────────────────────╯"," Database → DO-SQLite "," Shell/FS/Pty → typed-unavailable "," Snapshot/Vcs → no-op "," plugins → precompiled only "],"runs":[[[45,2]],[[1,2],[43,3],[1,2]],[[22,2],[1,4],[22,2]],[[10,1],[25,5]],[[10,1],[1,5],[23,1],[1,5]],[[1,1],[19,2],[5,1],[19,2]],[[1,1],[1,2],[17,3],[1,2],[5,1],[1,2],[17,3],[1,2]],[[1,1],[1,2],[2,3],[12,11],[3,3],[1,2],[5,1],[1,2],[1,3],[15,11],[1,3],[1,6],[1,4],[1,7],[1,8],[1,5]],[[1,1],[9,2],[1,6],[9,2],[5,1],[19,2],[3,1],[1,5]],[[10,1],[1,4],[21,10],[15,1],[1,5]],[[10,1],[1,7],[22,10],[14,1],[1,5]],[[10,1],[1,5],[18,10],[18,1],[1,5]],[[11,1],[18,10],[18,1],[1,5]],[[22,1],[1,5],[24,1],[1,5]],[[22,1],[1,5],[24,1],[1,5]],[[44,2],[3,1],[1,5]],[[1,2],[42,3],[1,2],[4,5]],[[22,2],[1,6],[21,2]],[[22,1],[1,7]],[[22,1],[1,5]],[[7,1],[30,2]],[[7,1],[1,2],[28,3],[1,2]],[[7,1],[1,2],[28,3],[1,2]],[[7,1],[1,2],[28,3],[1,2]],[[7,1],[30,2]],[[26,1],[22,10]],[[26,1],[34,10]],[[26,1],[22,10]],[[26,1],[28,10]]]}, + {"width":60,"source":"flowchart TB\n subgraph consumer[\"Durable Object\"]\n DO[\"ServerWorkerd.create({ storage, config })\"]\n end\n\n DO --> SO[\"serverOptions()<br/><i>option flags</i>\"]\n DO --> RP[\"replacements()<br/><i>layer overrides</i>\"]\n\n SO -->|\"fs: watcher/fff off<br/>events.persist: true<br/>mcp.stdio: false<br/>config as string\"| SF[\"ServerFetch.make(options, { overrides })\"]\n RP -->|\"Database → DO-SQLite<br/>Shell/FS/Pty → typed-unavailable<br/>Snapshot/Vcs → no-op<br/>plugins → precompiled only\"| SF\n\n SF --> GRAPH[\"LayerNode graph<br/>(core builds normally,<br/>swapped nodes substituted)\"]\n\n subgraph bundle[\"3rd mechanism: bundle conditions (build time)\"]\n COND[\"--conditions=workerd<br/>pty / fff / photon / shell-parser<br/>native modules → inert stubs<br/>#global-roots → workerd path rooting\"]\n end\n COND -.->|import resolution| GRAPH","height":39,"lines":[" ╭─ Durable Object ──────────────────────────────╮"," │ ╭───────────────────────────────────────────╮ │"," ╭───────────────────────────────────────────────────────┤ ServerWorkerd.create({ storage, config }) │ │"," │ │ ╰───────────────────────────────────────────╯ │"," │ ╰───────────────────────────────────────────────╯"," │"," │"," │"," │ ╭─ 3rd mechanism: bundle conditions (build time) ╮"," │ │ ╭──────────────────────────────────────╮ │"," │ │ │ --conditions=workerd │ │"," │ │ │ pty / fff / photon / shell-parser │ │"," │ │ │ native modules → inert stubs ├───── import resolution ─────────────────────────────────╮"," │ │ │ #global-roots → workerd path rooting │ │ │"," │ │ ╰──────────────────────────────────────╯ │ │"," │ ╰────────────────────────────────────────────────╯ │"," ╰───────────────┬───────────────────────╮ │"," ▼ ▼ │"," ╭─────────────────╮ ╭─────────────────╮ │"," │ serverOptions() │ │ replacements() │ │"," │ option flags │ │ layer overrides │ │"," ╰────────┬────────╯ ╰────────┬────────╯ │"," ╭───────────────╯───────────────────────╯ │"," │ │"," Database → DO-SQLite │ fs: watcher/fff off │"," Shell/FS/Pty → typed-unavailable │ events.persist: true │"," Snapshot/Vcs → no-op │ mcp.stdio: false │"," plugins → precompiled only │ config as string │"," │ ╭──────────────────────────────────────────╮ │"," ╰────▶│ ServerFetch.make(options, { overrides }) │ │"," ╰─────────────────────┬────────────────────╯ │"," │ │"," │ │"," ▼ │"," ╭────────────────────────────╮ │"," │ LayerNode graph │ │"," │ (core builds normally, │◀─────────────────────────────────────────────────────────────╯"," │ swapped nodes substituted) │"," ╰────────────────────────────╯"],"runs":[[[88,1],[2,0],[16,0],[31,0]],[[88,1],[1,0],[1,1],[45,2],[1,1],[1,0]],[[34,1],[56,5],[1,4],[43,3],[1,2],[1,1],[1,0]],[[34,1],[1,5],[53,1],[1,0],[1,1],[45,2],[1,1],[1,0]],[[34,1],[1,5],[53,1],[49,0]],[[34,1],[1,5]],[[34,1],[1,5]],[[34,1],[1,5]],[[34,1],[1,5],[2,1],[2,0],[47,0],[1,0]],[[34,1],[1,5],[2,1],[1,0],[4,1],[40,2],[4,1],[1,0]],[[34,1],[1,5],[2,1],[1,0],[4,1],[1,2],[38,3],[1,2],[4,1],[1,0]],[[34,1],[1,5],[2,1],[1,0],[4,1],[1,2],[38,3],[1,2],[4,1],[1,0]],[[34,1],[1,5],[2,1],[1,0],[4,1],[1,2],[38,3],[1,9],[1,6],[2,4],[1,7],[1,8],[19,10],[34,5]],[[34,1],[1,5],[2,1],[1,0],[4,1],[1,2],[38,3],[1,2],[4,1],[1,0],[52,1],[1,5]],[[34,1],[1,5],[2,1],[1,0],[4,1],[40,2],[4,1],[1,0],[52,1],[1,5]],[[34,1],[1,5],[2,1],[50,0],[52,1],[1,5]],[[34,1],[41,5],[64,1],[1,5]],[[50,1],[1,5],[23,1],[1,5],[64,1],[1,5]],[[41,1],[19,2],[5,1],[19,2],[55,1],[1,5]],[[41,1],[1,2],[17,3],[1,2],[5,1],[1,2],[17,3],[1,2],[55,1],[1,5]],[[41,1],[1,2],[2,3],[12,11],[3,3],[1,2],[5,1],[1,2],[1,3],[15,11],[1,3],[1,2],[55,1],[1,5]],[[41,1],[9,2],[1,4],[9,2],[5,1],[9,2],[1,4],[9,2],[55,1],[1,5]],[[34,1],[41,5],[64,1],[1,5]],[[34,1],[1,5],[104,1],[1,5]],[[22,10],[12,1],[1,5],[5,1],[21,10],[78,1],[1,5]],[[34,10],[1,5],[5,1],[22,10],[77,1],[1,5]],[[22,10],[12,1],[1,5],[5,1],[18,10],[81,1],[1,5]],[[28,10],[6,1],[1,5],[5,1],[18,10],[81,1],[1,5]],[[34,1],[1,5],[5,1],[44,2],[55,1],[1,5]],[[34,1],[6,5],[1,2],[42,3],[1,2],[55,1],[1,5]],[[40,1],[22,2],[1,6],[21,2],[55,1],[1,5]],[[62,1],[1,7],[76,1],[1,5]],[[62,1],[1,5],[76,1],[1,5]],[[62,1],[1,5],[76,1],[1,5]],[[47,1],[30,2],[62,1],[1,5]],[[47,1],[1,2],[28,3],[1,2],[62,1],[1,5]],[[47,1],[1,2],[28,3],[1,2],[63,5]],[[47,1],[1,2],[28,3],[1,2]],[[47,1],[30,2]]]}, + {"width":60,"source":"flowchart LR\n A[Start] -->|one<br/>two<br/>three<br/>four<br/>five| B[Upper]\n A --> C[Lower]","height":15,"lines":[" one "," two "," three "," four "," five ╭───────╮"," ╭─────────▶│ Upper │"," │ ╰───────╯"," │","╭───────╮ │","│ Start ├───┤","╰───────╯ │"," │"," │ ╭───────╮"," ╰─────────▶│ Lower │"," ╰───────╯"],"runs":[[[14,1],[5,10]],[[14,1],[5,10]],[[14,1],[7,10]],[[14,1],[6,10]],[[14,1],[6,10],[3,1],[9,2]],[[12,1],[11,5],[1,2],[7,3],[1,2]],[[12,1],[1,5],[10,1],[9,2]],[[12,1],[1,5]],[[9,2],[3,1],[1,5]],[[1,2],[7,3],[1,4],[4,5]],[[9,2],[3,1],[1,5]],[[12,1],[1,5]],[[12,1],[1,5],[10,1],[9,2]],[[12,1],[11,5],[1,2],[7,3],[1,2]],[[23,1],[9,2]]]}, + {"width":60,"source":"flowchart TD\n A[Start] -->|first<br/>second<br/>third<br/>fourth| B[Finish]","height":12,"lines":["╭───────╮","│ Start │","╰────┬──╯"," │"," │ first "," │ second "," │ third "," │ fourth "," ▼","╭────────╮","│ Finish │","╰────────╯"],"runs":[[[9,2]],[[1,2],[7,3],[1,2]],[[5,2],[1,9],[3,2]],[[5,1],[1,6]],[[5,1],[1,4],[7,10]],[[5,1],[1,4],[8,10]],[[5,1],[1,7],[7,10]],[[5,1],[1,8],[8,10]],[[5,1],[1,5]],[[10,2]],[[1,2],[8,3],[1,2]],[[10,2]]]}, + {"width":60,"source":"flowchart TD\n A --> B\n B -->|try<br/>again| A","height":10,"lines":["╭───╮","│ A │◀─╮","╰─┬─╯ │"," │ │"," │ │ try "," │ │ again "," ▼ │","╭───╮ │","│ B ├──╯","╰───╯"],"runs":[[[5,2]],[[1,2],[3,3],[1,2],[3,5]],[[2,2],[1,6],[2,2],[2,1],[1,5]],[[2,1],[1,4],[4,1],[1,5]],[[2,1],[1,7],[4,1],[1,5],[5,10]],[[2,1],[1,8],[4,1],[1,5],[7,10]],[[2,1],[1,5],[4,1],[1,5]],[[5,2],[2,1],[1,5]],[[1,2],[3,3],[1,6],[1,4],[1,7],[1,5]],[[5,2]]]}, + {"width":60,"source":"\nflowchart LR\n Spec[Spec] --> Plan[Plan]\n Plan --> Build[Build]\n Build --> Gate{Ready?}\n Gate -->|pass| Stage[(Stage)]\n","height":28,"lines":[" ╭──────╮"," │ Spec │"," ╰───┬──╯"," │"," ▼"," ╭──────╮"," │ Plan │"," ╰───┬──╯"," │"," ▼"," ╭───────╮"," │ Build │"," ╰───┬───╯"," │"," ▼"," ╭───────╮","╭─╯ ╰─╮","│ Ready? │","╰─╮ ╭─╯"," ╰───┬───╯"," │"," │ pass "," ▼"," ╭───────╮"," ├───────┤"," │ Stage │"," ├───────┤"," ╰───────╯"],"runs":[[[2,1],[8,2]],[[2,1],[1,2],[6,3],[1,2]],[[2,1],[4,2],[1,6],[3,2]],[[6,1],[1,7]],[[6,1],[1,5]],[[2,1],[8,2]],[[2,1],[1,2],[6,3],[1,2]],[[2,1],[4,2],[1,6],[3,2]],[[6,1],[1,7]],[[6,1],[1,5]],[[2,1],[9,2]],[[2,1],[1,2],[7,3],[1,2]],[[2,1],[4,2],[1,6],[4,2]],[[6,1],[1,7]],[[6,1],[1,5]],[[2,1],[9,2]],[[3,2],[7,1],[3,2]],[[1,2],[2,1],[6,3],[3,1],[1,2]],[[3,2],[7,1],[3,2]],[[2,1],[4,2],[1,6],[4,2]],[[6,1],[1,4]],[[6,1],[1,7],[6,10]],[[6,1],[1,5]],[[2,1],[9,2]],[[2,1],[9,2]],[[2,1],[1,2],[7,3],[1,2]],[[2,1],[9,2]],[[2,1],[9,2]]]}, + {"width":60,"source":"\ngraph LR\n subgraph Web [Web App]\n UI[UI] --> API[API]\n end\n API --> DB[(DB)]\n","height":5,"lines":["╭─ Web App ─────────╮ ╭────╮","│ ╭────╮ ╭─────╮ │ ├────┤","│ │ UI ├───▶│ API ├───▶│ DB │","│ ╰────╯ ╰─────╯ │ ├────┤","╰───────────────────╯ ╰────╯"],"runs":[[[2,0],[9,0],[10,0],[2,1],[6,2]],[[1,0],[1,1],[6,2],[4,1],[7,2],[1,1],[1,0],[2,1],[6,2]],[[1,0],[1,1],[1,2],[4,3],[1,6],[1,4],[1,7],[1,8],[1,5],[1,2],[5,3],[1,6],[1,4],[1,7],[1,8],[1,5],[1,2],[4,3],[1,2]],[[1,0],[1,1],[6,2],[4,1],[7,2],[1,1],[1,0],[2,1],[6,2]],[[21,0],[2,1],[6,2]]]}, + {"width":60,"source":"flowchart LR\n Outside[Outside] --> Inside\n subgraph Group\n Inside[Inside]\n end","height":5,"lines":[" ╭─ Group ────╮","╭─────────╮ │ ╭────────╮ │","│ Outside ├───▶│ Inside │ │","╰─────────╯ │ ╰────────╯ │"," ╰────────────╯"],"runs":[[[13,1],[2,0],[7,0],[5,0]],[[11,2],[2,1],[1,0],[1,1],[10,2],[1,1],[1,0]],[[1,2],[9,3],[1,6],[1,4],[1,7],[1,8],[1,5],[1,2],[8,3],[1,2],[1,1],[1,0]],[[11,2],[2,1],[1,0],[1,1],[10,2],[1,1],[1,0]],[[13,1],[14,0]]]}, + {"width":60,"source":"flowchart TD\n Outside[Outside] --> Inside\n subgraph Outer [O]\n subgraph Inner\n Inside[Inside]\n end\n end","height":10,"lines":[" ╭─────────╮"," │ Outside │"," ╰────┬────╯","╭─ O ────│───────╮","│ ╭──────▼─────╮ │","│ │ ╭────────╮ │ │","│ │ │ Inside │ │ │","│ │ ╰────────╯ │ │","│ ╰─ Inner ────╯ │","╰────────────────╯"],"runs":[[[4,1],[11,2]],[[4,1],[1,2],[9,3],[1,2]],[[4,1],[5,2],[1,6],[5,2]],[[2,0],[3,0],[4,0],[1,7],[8,0]],[[1,0],[1,1],[7,0],[1,5],[6,0],[1,1],[1,0]],[[1,0],[1,1],[1,0],[1,1],[10,2],[1,1],[1,0],[1,1],[1,0]],[[1,0],[1,1],[1,0],[1,1],[1,2],[8,3],[1,2],[1,1],[1,0],[1,1],[1,0]],[[1,0],[1,1],[1,0],[1,1],[10,2],[1,1],[1,0],[1,1],[1,0]],[[1,0],[1,1],[2,0],[7,0],[5,0],[1,1],[1,0]],[[18,0]]]}, + {"width":60,"source":"flowchart LR\n subgraph Web [API<br/>Services]\n A[Worker]\n end","height":7,"lines":["╭─ API ──────╮","│ Services │","│ ╭────────╮ │","│ │ Worker │ │","│ ╰────────╯ │","│ │","╰────────────╯"],"runs":[[[2,0],[5,0],[7,0]],[[1,0],[1,1],[10,0],[1,1],[1,0]],[[1,0],[1,1],[10,2],[1,1],[1,0]],[[1,0],[1,1],[1,2],[8,3],[1,2],[1,1],[1,0]],[[1,0],[1,1],[10,2],[1,1],[1,0]],[[1,0],[12,1],[1,0]],[[14,0]]]}, + {"width":60,"source":"flowchart TD\n Input --> A\n subgraph Group [Line one<br/>Line two]\n A[A] --> B[B]\n end","height":15,"lines":[" ╭───────╮"," │ Input │"," ╰───┬───╯","╭─────│─────╮","│ ▼ │","│ ╭───╮ │","│ │ A │ │","│ ╰─┬─╯ │","│ │ │","│ ▼ │","│ ╭───╮ │","│ │ B │ │","│ ╰───╯ │","│ Line one │","╰─ Line two ╯"],"runs":[[[2,1],[9,2]],[[2,1],[1,2],[7,3],[1,2]],[[2,1],[4,2],[1,6],[4,2]],[[6,0],[1,7],[6,0]],[[1,0],[5,1],[1,5],[5,1],[1,0]],[[1,0],[3,1],[5,2],[3,1],[1,0]],[[1,0],[3,1],[1,2],[3,3],[1,2],[3,1],[1,0]],[[1,0],[3,1],[2,2],[1,6],[2,2],[3,1],[1,0]],[[1,0],[5,1],[1,7],[5,1],[1,0]],[[1,0],[5,1],[1,5],[5,1],[1,0]],[[1,0],[3,1],[5,2],[3,1],[1,0]],[[1,0],[3,1],[1,2],[3,3],[1,2],[3,1],[1,0]],[[1,0],[3,1],[5,2],[3,1],[1,0]],[[1,0],[1,1],[10,0],[1,0]],[[2,0],[10,0],[1,0]]]}, + {"width":60,"source":"flowchart TD\n U[Up] --> A\n subgraph G [界界界界界界]\n A[A]\n end\n A --> D[Down]","height":13,"lines":[" ╭────╮"," │ Up ├───────╮"," ╰────╯ │"," │","╭─ 界界界界界界 ╮ │","│ ╭───╮ │ │","│ │ A │◀───────╯","│ ╰──┬╯ │","╰────────│──────╯"," ▼"," ╭──────╮"," │ Down │"," ╰──────╯"],"runs":[[[6,1],[6,2]],[[6,1],[1,2],[4,3],[1,9],[2,6],[2,4],[2,7],[1,8],[1,5]],[[6,1],[6,2],[7,1],[1,5]],[[19,1],[1,5]],[[2,0],[8,0],[1,0],[2,1],[1,5]],[[1,0],[5,1],[5,2],[5,1],[1,0],[2,1],[1,5]],[[1,0],[5,1],[1,2],[3,3],[1,2],[9,5]],[[1,0],[5,1],[3,2],[1,6],[1,2],[5,1],[1,0]],[[9,0],[1,7],[7,0]],[[9,1],[1,5]],[[5,1],[8,2]],[[5,1],[1,2],[6,3],[1,2]],[[5,1],[8,2]]]}, + {"width":60,"source":"\nflowchart TD\n Start[Start] --> A[A]\n subgraph Steps\n direction LR\n A --> B[B]\n B --> C[C]\n end\n C --> Done[Done]\n","height":16,"lines":[" ╭───────╮"," │ Start │"," ╰───┬───╯","╭─────────────╯","│ ╭─ Steps ─────────────╮","│ │ ╭───╮ ╭───╮ ╭───╮ │","╰───▶│ A ├─▶│ B ├─▶│ C │ │"," │ ╰───╯ ╰───╯ ╰─┬─╯ │"," ╰─────────────────│───╯"," │"," ╭──────╮ │"," │ Done │ │"," ╰──────╯ │"," ▲ │"," │ │"," ╰──────╯"],"runs":[[[10,1],[9,2]],[[10,1],[1,2],[7,3],[1,2]],[[10,1],[4,2],[1,4],[4,2]],[[15,5]],[[1,5],[2,1],[2,0],[7,0],[14,0]],[[1,5],[2,1],[1,0],[1,1],[5,2],[2,1],[5,2],[2,1],[5,2],[1,1],[1,0]],[[5,5],[1,2],[3,3],[1,6],[1,7],[1,5],[1,2],[3,3],[1,6],[1,7],[1,5],[1,2],[3,3],[1,2],[1,1],[1,0]],[[3,1],[1,0],[1,1],[5,2],[2,1],[5,2],[2,1],[2,2],[1,9],[2,2],[1,1],[1,0]],[[3,1],[18,0],[1,6],[4,0]],[[21,1],[1,6]],[[10,1],[8,2],[3,1],[1,4]],[[10,1],[1,2],[6,3],[1,2],[3,1],[1,4]],[[10,1],[8,2],[3,1],[1,7]],[[14,1],[1,5],[6,1],[1,7]],[[14,1],[1,5],[6,1],[1,8]],[[14,1],[8,5]]]}, + {"width":60,"source":"flowchart TD\n subgraph Workers\n direction TD\n A[Worker one] --> B[Worker two]\n end\n subgraph Peer\n direction RL\n C[Store] --> D[Transform]\n end\n B --> D","height":16,"lines":[" ╭─ Workers ────────────────╮"," │ ╭────────────╮ │"," │ │ Worker one │ │"," │ ╰──────┬─────╯ │"," │ ╰─────────╮ │"," │ ▼ │"," │ ╭────────────╮ │","╭──────────────┤ Worker two │ │","│ │ ╰────────────╯ │","│ ╰──────────────────────────╯","│","│ ╭─ Peer ───────────────────╮","│ │ ╭───────────╮ ╭───────╮ │","╰──────────────▶│ Transform │◀─┤ Store │ │"," │ ╰───────────╯ ╰───────╯ │"," ╰──────────────────────────╯"],"runs":[[[3,1],[2,0],[9,0],[17,0]],[[3,1],[1,0],[1,1],[14,2],[11,1],[1,0]],[[3,1],[1,0],[1,1],[1,2],[12,3],[1,2],[11,1],[1,0]],[[3,1],[1,0],[1,1],[7,2],[1,4],[6,2],[11,1],[1,0]],[[3,1],[1,0],[8,1],[11,5],[7,1],[1,0]],[[3,1],[1,0],[18,1],[1,5],[7,1],[1,0]],[[3,1],[1,0],[11,1],[14,2],[1,1],[1,0]],[[1,5],[3,8],[3,7],[3,4],[3,6],[3,9],[12,3],[1,2],[1,1],[1,0]],[[1,5],[2,1],[1,0],[11,1],[14,2],[1,1],[1,0]],[[1,5],[2,1],[28,0]],[[1,5]],[[1,5],[13,1],[2,0],[6,0],[20,0]],[[1,5],[13,1],[1,0],[1,1],[13,2],[2,1],[9,2],[1,1],[1,0]],[[16,5],[1,2],[11,3],[1,2],[1,5],[1,7],[1,6],[7,3],[1,2],[1,1],[1,0]],[[14,1],[1,0],[1,1],[13,2],[2,1],[9,2],[1,1],[1,0]],[[14,1],[28,0]]]}, + {"width":60,"source":"flowchart TD\n Input --> Parse\n subgraph Outer\n direction LR\n subgraph Inner\n direction BT\n Parse[Parse] --> Validate{Valid?}\n Validate -->|yes| Cache[(Cache)]\n Cache --> Validate\n end\n Validate --> Dispatch[Dispatch]\n end","height":32,"lines":[" ╭───────╮"," │ Input │"," ╰───┬───╯","╭──────────────────────────╯","│ ╭─ Outer ────────────────────────────────╮","│ │ ╭─ Inner ────────────────────────────╮ │","│ │ │ ╭───────╮ │ │","│ │ │ ├───────┤ │ │","│ │ │ │ Cache ├──────────────────────╮ │ │","│ │ │ ├───────┤ │ │ │","│ │ │ ╰───────╯ │ │ │","│ │ │ ▲ │ │ │","│ │ │ │ yes │ │ │","│ │ │ │ │ │ │","│ │ │ ╭───┴───╮ ╭──────────╮ │ │ │","│ │ │ ╭─╯ ╰─╮ ╭▶│ Dispatch │ │ │ │","│ │ │ │ Valid? ├╮ │ ╰──────────╯ │ │ │","│ │ │ ╰─╮ ╭─╯│ │ │ │ │","│ │ │ ╰───────╯ │ │ │ │ │","│ │ │ ▲ │ │ │ │ │","│ │ │ │──────┼─┼─────────────────╯ │ │","│ │ │ ╭───┴───╮ │ │ │ │","╰───────────▶│ Parse │ │ │ │ │"," │ │ ╰───────╯ │ │ │ │"," │ ╰──────────────│─│───────────────────╯ │"," │ │ │ │"," │ │ │ │"," │ │ │ │"," │ │ │ │"," │ │ │ │"," │ ╰─╯ │"," ╰────────────────────────────────────────╯"],"runs":[[[23,1],[9,2]],[[23,1],[1,2],[7,3],[1,2]],[[23,1],[4,2],[1,4],[4,2]],[[28,5]],[[1,5],[6,1],[2,0],[7,0],[33,0]],[[1,5],[6,1],[1,0],[1,1],[2,0],[7,0],[29,0],[1,1],[1,0]],[[1,5],[6,1],[1,0],[1,1],[1,0],[3,1],[9,2],[24,1],[1,0],[1,1],[1,0]],[[1,5],[6,1],[1,0],[1,1],[1,0],[3,1],[9,2],[24,1],[1,0],[1,1],[1,0]],[[1,5],[6,1],[1,0],[1,1],[1,0],[3,1],[1,2],[7,3],[4,9],[5,6],[5,4],[5,7],[4,8],[1,5],[1,1],[1,0],[1,1],[1,0]],[[1,5],[6,1],[1,0],[1,1],[1,0],[3,1],[9,2],[22,1],[1,5],[1,1],[1,0],[1,1],[1,0]],[[1,5],[6,1],[1,0],[1,1],[1,0],[3,1],[9,2],[22,1],[1,5],[1,1],[1,0],[1,1],[1,0]],[[1,5],[6,1],[1,0],[1,1],[1,0],[7,1],[1,5],[26,1],[1,5],[1,1],[1,0],[1,1],[1,0]],[[1,5],[6,1],[1,0],[1,1],[1,0],[7,1],[1,7],[5,10],[21,1],[1,5],[1,1],[1,0],[1,1],[1,0]],[[1,5],[6,1],[1,0],[1,1],[1,0],[7,1],[1,4],[26,1],[1,5],[1,1],[1,0],[1,1],[1,0]],[[1,5],[6,1],[1,0],[1,1],[1,0],[3,1],[4,2],[1,6],[4,2],[6,1],[12,2],[4,1],[1,5],[1,1],[1,0],[1,1],[1,0]],[[1,5],[6,1],[1,0],[1,1],[1,0],[1,1],[3,2],[7,1],[3,2],[2,1],[2,5],[1,2],[10,3],[1,2],[4,1],[1,5],[1,1],[1,0],[1,1],[1,0]],[[1,5],[6,1],[1,0],[1,1],[1,0],[1,1],[1,2],[2,1],[6,3],[3,1],[1,4],[1,5],[1,1],[1,5],[1,1],[12,2],[4,1],[1,5],[1,1],[1,0],[1,1],[1,0]],[[1,5],[6,1],[1,0],[1,1],[1,0],[1,1],[3,2],[7,1],[3,2],[1,5],[1,1],[1,5],[17,1],[1,5],[1,1],[1,0],[1,1],[1,0]],[[1,5],[6,1],[1,0],[1,1],[1,0],[3,1],[9,2],[2,1],[1,5],[1,1],[1,5],[17,1],[1,5],[1,1],[1,0],[1,1],[1,0]],[[1,5],[6,1],[1,0],[1,1],[1,0],[7,1],[1,5],[6,1],[1,5],[1,1],[1,5],[17,1],[1,5],[1,1],[1,0],[1,1],[1,0]],[[1,5],[6,1],[1,0],[1,1],[1,0],[7,1],[1,7],[27,5],[1,1],[1,0],[1,1],[1,0]],[[1,5],[6,1],[1,0],[1,1],[1,0],[3,1],[4,2],[1,6],[4,2],[2,1],[1,5],[1,1],[1,5],[19,1],[1,0],[1,1],[1,0]],[[13,5],[1,2],[7,3],[1,2],[2,1],[1,5],[1,1],[1,5],[19,1],[1,0],[1,1],[1,0]],[[7,1],[1,0],[1,1],[1,0],[3,1],[9,2],[2,1],[1,5],[1,1],[1,5],[19,1],[1,0],[1,1],[1,0]],[[7,1],[1,0],[1,1],[15,0],[1,5],[1,0],[1,5],[20,0],[1,1],[1,0]],[[7,1],[1,0],[16,1],[1,5],[1,1],[1,5],[21,1],[1,0]],[[7,1],[1,0],[16,1],[1,5],[1,1],[1,5],[21,1],[1,0]],[[7,1],[1,0],[16,1],[1,5],[1,1],[1,5],[21,1],[1,0]],[[7,1],[1,0],[16,1],[1,5],[1,1],[1,5],[21,1],[1,0]],[[7,1],[1,0],[16,1],[1,5],[1,1],[1,5],[21,1],[1,0]],[[7,1],[1,0],[16,1],[3,5],[21,1],[1,0]],[[7,1],[42,0]]]}, + {"width":60,"source":"flowchart RL\n I([Input λ]) --> A\n subgraph Outer [Outer group 長い]\n direction LR\n subgraph Inner [Inner<br/>工程]\n direction BT\n A[Parse request] -->|inner edge| B{Valid?}\n B --> C[(Cache Ω)]\n C --> B\n end\n B --> D[[Dispatch work]]\n end\n D -.->|result path| O([Output μ])","height":32,"lines":[" ╭─────────╮"," │ Input λ │"," ╰────┬────╯"," ╰────────────────────────────────╮","╭─ Outer group 長い ────────────────────────────────────────────────────╮ │","│ ╭─ Inner ──────────────────────────────────────╮ │ │","│ │ 工程 │ │ │","│ │ ╭─────────╮ │ │ │","│ │ ├─────────┤ │ │ │","│ │ ╭─────────┤ Cache Ω │ │ │ │","│ │ │ ├─────────┤ │ │ │","│ │ │ ╰─────────╯ │ │ │","│ │ │ ▲ │ │ │","│ │ │ ╰───────────────────╮ │ │ │","│ │ │ ╭───┴───╮ │ │ │","│ │ │ ╭─╯ ╰─╮ │ ╭─┬─────────────┬─╮ │ │","│ │ ╰───────────────────────────▶│ Valid? ├─────▶│ │Dispatch work│ ├────┤","│ │ ╰─╮ ╭─╯ │ ╰─┴─────────────┴─╯ │ │","│ │ ╰───────╯ │ │ │","│ │ ▲ │ │ │","│ │ ╭──────────────────────────────────╯ │ │ │","│ │ ╰─────────── inner edge ───────────╮ │ │ │","│ │ ╭───────┴───────╮ │ │ │","│ │ │ Parse request │◀──────────────────────────┤","│ │ ╰───────────────╯ │ │ │","│ │ │ │ │","│ ╰──────────────────────────────────────────────╯ │ │","╰───────────────────────────────────────────────────────────────────────╯ │"," │"," ╭──────────╮ │"," │ Output μ │◀─────── result path ──────╯"," ╰──────────╯"],"runs":[[[37,1],[11,2]],[[37,1],[1,2],[9,3],[1,2]],[[37,1],[5,2],[1,4],[5,2]],[[42,1],[34,5]],[[2,0],[16,0],[53,0],[2,1],[1,5]],[[1,0],[1,1],[2,0],[7,0],[39,0],[22,1],[1,0],[2,1],[1,5]],[[1,0],[1,1],[1,0],[1,1],[4,0],[39,1],[1,0],[22,1],[1,0],[2,1],[1,5]],[[1,0],[1,1],[1,0],[11,1],[11,2],[24,1],[1,0],[22,1],[1,0],[2,1],[1,5]],[[1,0],[1,1],[1,0],[11,1],[11,2],[24,1],[1,0],[22,1],[1,0],[2,1],[1,5]],[[1,0],[1,1],[1,0],[1,1],[1,5],[2,8],[2,7],[2,4],[2,6],[2,9],[9,3],[1,2],[24,1],[1,0],[22,1],[1,0],[2,1],[1,5]],[[1,0],[1,1],[1,0],[1,1],[1,5],[9,1],[11,2],[24,1],[1,0],[22,1],[1,0],[2,1],[1,5]],[[1,0],[1,1],[1,0],[1,1],[1,5],[9,1],[11,2],[24,1],[1,0],[22,1],[1,0],[2,1],[1,5]],[[1,0],[1,1],[1,0],[1,1],[1,5],[14,1],[1,5],[29,1],[1,0],[22,1],[1,0],[2,1],[1,5]],[[1,0],[1,1],[1,0],[1,1],[1,5],[14,1],[21,5],[9,1],[1,0],[22,1],[1,0],[2,1],[1,5]],[[1,0],[1,1],[1,0],[1,1],[1,5],[30,1],[4,2],[1,4],[4,2],[5,1],[1,0],[22,1],[1,0],[2,1],[1,5]],[[1,0],[1,1],[1,0],[1,1],[1,5],[28,1],[3,2],[7,1],[3,2],[3,1],[1,0],[2,1],[19,2],[1,1],[1,0],[2,1],[1,5]],[[1,0],[1,1],[1,0],[1,1],[29,5],[1,2],[2,1],[6,3],[3,1],[1,9],[1,6],[2,4],[1,7],[1,8],[1,5],[1,2],[1,3],[1,2],[13,3],[1,2],[1,3],[1,9],[1,6],[1,4],[1,7],[1,8],[1,5]],[[1,0],[1,1],[1,0],[30,1],[3,2],[7,1],[3,2],[3,1],[1,0],[2,1],[19,2],[1,1],[1,0],[2,1],[1,5]],[[1,0],[1,1],[1,0],[32,1],[9,2],[5,1],[1,0],[22,1],[1,0],[2,1],[1,5]],[[1,0],[1,1],[1,0],[36,1],[1,5],[9,1],[1,0],[22,1],[1,0],[2,1],[1,5]],[[1,0],[1,1],[1,0],[1,1],[36,5],[9,1],[1,0],[22,1],[1,0],[2,1],[1,5]],[[1,0],[1,1],[1,0],[1,1],[12,5],[12,10],[12,5],[9,1],[1,0],[22,1],[1,0],[2,1],[1,5]],[[1,0],[1,1],[1,0],[28,1],[8,2],[1,4],[8,2],[1,1],[1,0],[22,1],[1,0],[2,1],[1,5]],[[1,0],[1,1],[1,0],[28,1],[1,2],[15,3],[1,2],[28,5]],[[1,0],[1,1],[1,0],[28,1],[17,2],[1,1],[1,0],[22,1],[1,0],[2,1],[1,5]],[[1,0],[1,1],[1,0],[46,1],[1,0],[22,1],[1,0],[2,1],[1,5]],[[1,0],[1,1],[48,0],[22,1],[1,0],[2,1],[1,5]],[[73,0],[2,1],[1,5]],[[75,1],[1,5]],[[36,1],[12,2],[27,1],[1,5]],[[36,1],[1,2],[10,3],[1,2],[8,5],[13,10],[7,5]],[[36,1],[12,2]]]}, + {"width":60,"source":"\nflowchart TD\n Start[Start] --> A\n subgraph First [first row]\n direction LR\n A[A] --> B[B]\n end\n B --> C\n subgraph Second [second row]\n direction LR\n C[C] --> D[D]\n end\n D --> Done[Done]\n","height":19,"lines":[" ╭───────╮"," │ Start │"," ╰───┬───╯"," ╭──────────╯"," │ ╭─ first row ──╮"," │ │ ╭───╮ ╭───╮ │"," ╰───▶│ A ├─▶│ B ├─────╮"," │ ╰───╯ ╰───╯ │ │"," ╰──────────────╯ │","╭──────────────────────────────────╯","│ ╭─ second row ─╮","│ │ ╭───╮ ╭───╮ │","╰───▶│ C ├─▶│ D ├─────╮"," │ ╰───╯ ╰───╯ │ │"," ╰──────────────╯ ╰─╮"," ▼"," ╭──────╮"," │ Done │"," ╰──────╯"],"runs":[[[20,1],[9,2]],[[20,1],[1,2],[7,3],[1,2]],[[20,1],[4,2],[1,4],[4,2]],[[13,1],[12,5]],[[13,1],[1,5],[2,1],[2,0],[11,0],[3,0]],[[13,1],[1,5],[2,1],[1,0],[1,1],[5,2],[2,1],[5,2],[1,1],[1,0]],[[13,1],[5,5],[1,2],[3,3],[1,6],[1,7],[1,5],[1,2],[3,3],[1,9],[1,6],[2,4],[1,7],[1,8],[1,5]],[[16,1],[1,0],[1,1],[5,2],[2,1],[5,2],[1,1],[1,0],[3,1],[1,5]],[[16,1],[16,0],[3,1],[1,5]],[[36,5]],[[1,5],[2,1],[2,0],[12,0],[2,0]],[[1,5],[2,1],[1,0],[1,1],[5,2],[2,1],[5,2],[1,1],[1,0]],[[5,5],[1,2],[3,3],[1,6],[1,7],[1,5],[1,2],[3,3],[1,9],[1,6],[2,4],[1,7],[1,8],[1,5]],[[3,1],[1,0],[1,1],[5,2],[2,1],[5,2],[1,1],[1,0],[3,1],[1,5]],[[3,1],[16,0],[3,1],[3,5]],[[24,1],[1,5]],[[20,1],[8,2]],[[20,1],[1,2],[6,3],[1,2]],[[20,1],[8,2]]]}, + {"width":60,"source":"\nflowchart TD\n Start[Start] --> Remember\n subgraph Remembering [remember to]\n direction LR\n Remember[remember to] --> Heart[Heart]\n end\n","height":9,"lines":[" ╭───────╮"," │ Start │"," ╰───┬───╯","╭─────────────────╯","│ ╭─ remember to ──────────────╮","│ │ ╭─────────────╮ ╭───────╮ │","╰───▶│ remember to ├─▶│ Heart │ │"," │ ╰─────────────╯ ╰───────╯ │"," ╰────────────────────────────╯"],"runs":[[[14,1],[9,2]],[[14,1],[1,2],[7,3],[1,2]],[[14,1],[4,2],[1,4],[4,2]],[[19,5]],[[1,5],[2,1],[2,0],[13,0],[15,0]],[[1,5],[2,1],[1,0],[1,1],[15,2],[2,1],[9,2],[1,1],[1,0]],[[5,5],[1,2],[13,3],[1,6],[1,7],[1,5],[1,2],[7,3],[1,2],[1,1],[1,0]],[[3,1],[1,0],[1,1],[15,2],[2,1],[9,2],[1,1],[1,0]],[[3,1],[30,0]]]}, + {"width":60,"source":"\nflowchart TD\n Start[Start] --> A\n subgraph Verse [verse]\n direction LR\n A[A]\n B[B]\n C[C]\n D[D]\n E[E]\n F[F]\n G[G]\n A --> B\n B --> C\n A --> D\n D --> E\n A --> F\n F --> G\n end\n C --> Join\n E --> Join\n G --> Join\n","height":32,"lines":[" ╭───────╮"," │ Start │"," ╰───┬───╯"," ╭─╯"," │ ╭─ verse ─────────────╮"," │ │ ╭───╮ ╭───╮ │"," │ │ ╭▶│ B ├─▶│ C ├────╮"," │ │ │ ╰───╯ ╰───╯ │ │"," │ │ │ │ │"," │ │ │ │ │"," │ │ │ │ │"," │ │ │ │ │"," │ │ │ │ │"," │ │ ╭───╮│ ╭───╮ ╭───╮ │ │"," ╰───▶│ A ├┼▶│ D ├─▶│ E ├────┤"," │ ╰───╯│ ╰───╯ ╰───╯ │ │"," │ │ │ │"," │ │ │ │"," │ │ │ │"," │ │ │ │"," │ │ │ │"," │ │ ╭───╮ ╭───╮ │ │"," │ ╰▶│ F ├─▶│ G │ │ │"," │ ╰───╯ ╰─┬─╯ │ │"," ╰─────────────────│───╯ │"," │ │"," ╭──────╮ │ │"," │ Join │◀──────────────┼──────╯"," ╰──────╯ │"," ▲ │"," │ │"," ╰──────────────────╯"],"runs":[[[15,1],[9,2]],[[15,1],[1,2],[7,3],[1,2]],[[15,1],[4,2],[1,4],[4,2]],[[17,1],[3,5]],[[17,1],[1,5],[2,1],[2,0],[7,0],[14,0]],[[17,1],[1,5],[2,1],[1,0],[8,1],[5,2],[2,1],[5,2],[1,1],[1,0]],[[17,1],[1,5],[2,1],[1,0],[6,1],[2,5],[1,2],[3,3],[1,6],[1,7],[1,5],[1,2],[3,3],[1,9],[1,6],[1,4],[1,7],[1,8],[1,5]],[[17,1],[1,5],[2,1],[1,0],[6,1],[1,5],[1,1],[5,2],[2,1],[5,2],[1,1],[1,0],[2,1],[1,5]],[[17,1],[1,5],[2,1],[1,0],[6,1],[1,5],[14,1],[1,0],[2,1],[1,5]],[[17,1],[1,5],[2,1],[1,0],[6,1],[1,5],[14,1],[1,0],[2,1],[1,5]],[[17,1],[1,5],[2,1],[1,0],[6,1],[1,5],[14,1],[1,0],[2,1],[1,5]],[[17,1],[1,5],[2,1],[1,0],[6,1],[1,5],[14,1],[1,0],[2,1],[1,5]],[[17,1],[1,5],[2,1],[1,0],[6,1],[1,5],[14,1],[1,0],[2,1],[1,5]],[[17,1],[1,5],[2,1],[1,0],[1,1],[5,2],[1,5],[1,1],[5,2],[2,1],[5,2],[1,1],[1,0],[2,1],[1,5]],[[17,1],[5,5],[1,2],[3,3],[1,4],[2,5],[1,2],[3,3],[1,6],[1,7],[1,5],[1,2],[3,3],[1,9],[1,6],[1,4],[1,7],[1,8],[1,5]],[[20,1],[1,0],[1,1],[5,2],[1,5],[1,1],[5,2],[2,1],[5,2],[1,1],[1,0],[2,1],[1,5]],[[20,1],[1,0],[6,1],[1,5],[14,1],[1,0],[2,1],[1,5]],[[20,1],[1,0],[6,1],[1,5],[14,1],[1,0],[2,1],[1,5]],[[20,1],[1,0],[6,1],[1,5],[14,1],[1,0],[2,1],[1,5]],[[20,1],[1,0],[6,1],[1,5],[14,1],[1,0],[2,1],[1,5]],[[20,1],[1,0],[6,1],[1,5],[14,1],[1,0],[2,1],[1,5]],[[20,1],[1,0],[6,1],[1,5],[1,1],[5,2],[2,1],[5,2],[1,1],[1,0],[2,1],[1,5]],[[20,1],[1,0],[6,1],[2,5],[1,2],[3,3],[1,6],[1,7],[1,5],[1,2],[3,3],[1,2],[1,1],[1,0],[2,1],[1,5]],[[20,1],[1,0],[8,1],[5,2],[2,1],[2,2],[1,6],[2,2],[1,1],[1,0],[2,1],[1,5]],[[20,1],[18,0],[1,4],[4,0],[2,1],[1,5]],[[38,1],[1,7],[6,1],[1,5]],[[15,1],[8,2],[15,1],[1,8],[6,1],[1,5]],[[15,1],[1,2],[6,3],[1,2],[23,5]],[[15,1],[8,2],[15,1],[1,5]],[[19,1],[1,5],[18,1],[1,5]],[[19,1],[1,5],[18,1],[1,5]],[[19,1],[20,5]]]}, + {"width":60,"source":"\nflowchart TD\n subgraph First [first]\n direction LR\n A[A]\n B[B]\n C[C]\n A --> B\n A --> C\n end\n B --> D\n C --> D\n subgraph Second [second]\n direction LR\n D[D] --> E[E]\n end\n","height":19,"lines":[" ╭─ first ──────╮"," │ ╭───╮ │"," │ ╭▶│ B ├─────╮"," │ │ ╰───╯ │ │"," │ │ │ │"," │ ╭───╮│ │ │"," │ │ A ├┤ │ │"," │ ╰───╯│ │ │"," │ │ │ │"," │ │ ╭───╮ │ │"," │ ╰▶│ C ├─────┤"," │ ╰───╯ │ │"," ╰──────────────╯ │","╭──────────────────────╯","│ ╭─ second ─────╮","│ │ ╭───╮ ╭───╮ │","╰───▶│ D ├─▶│ E │ │"," │ ╰───╯ ╰───╯ │"," ╰──────────────╯"],"runs":[[[4,1],[2,0],[7,0],[7,0]],[[4,1],[1,0],[8,1],[5,2],[1,1],[1,0]],[[4,1],[1,0],[6,1],[2,5],[1,2],[3,3],[1,9],[1,6],[2,4],[1,7],[1,8],[1,5]],[[4,1],[1,0],[6,1],[1,5],[1,1],[5,2],[1,1],[1,0],[3,1],[1,5]],[[4,1],[1,0],[6,1],[1,5],[7,1],[1,0],[3,1],[1,5]],[[4,1],[1,0],[1,1],[5,2],[1,5],[7,1],[1,0],[3,1],[1,5]],[[4,1],[1,0],[1,1],[1,2],[3,3],[1,4],[1,5],[7,1],[1,0],[3,1],[1,5]],[[4,1],[1,0],[1,1],[5,2],[1,5],[7,1],[1,0],[3,1],[1,5]],[[4,1],[1,0],[6,1],[1,5],[7,1],[1,0],[3,1],[1,5]],[[4,1],[1,0],[6,1],[1,5],[1,1],[5,2],[1,1],[1,0],[3,1],[1,5]],[[4,1],[1,0],[6,1],[2,5],[1,2],[3,3],[1,9],[1,6],[2,4],[1,7],[1,8],[1,5]],[[4,1],[1,0],[8,1],[5,2],[1,1],[1,0],[3,1],[1,5]],[[4,1],[16,0],[3,1],[1,5]],[[24,5]],[[1,5],[2,1],[2,0],[8,0],[6,0]],[[1,5],[2,1],[1,0],[1,1],[5,2],[2,1],[5,2],[1,1],[1,0]],[[5,5],[1,2],[3,3],[1,6],[1,7],[1,5],[1,2],[3,3],[1,2],[1,1],[1,0]],[[3,1],[1,0],[1,1],[5,2],[2,1],[5,2],[1,1],[1,0]],[[3,1],[16,0]]]}, + {"width":60,"source":"\nflowchart LR\n Brief([Sketch Brief]) --> Parse[Parse Mermaid]\n subgraph Plan [Diagram Plan]\n Parse --> Layout[Rank Layout]\n Parse --> Cache[(Diagram Cache)]\n end\n Layout --> Preview([Terminal Preview])\n Cache --> Preview\n","height":23,"lines":[" ╭──────────────╮"," │ Sketch Brief │"," ╰──────┬───────╯"," │","╭─ Diagram Plan ───────▼───────────────────────╮","│ ╭───────────────╮ │","│ │ Parse Mermaid │ │","│ ╰───────┬───────╯ │","│ ╭─────────────┴─────────────╮ │","│ │ ▼ │","│ ▼ ╭───────────────╮ │","│ ╭─────────────╮ ├───────────────┤ │","│ │ Rank Layout │ │ Diagram Cache │ │","│ ╰──────┬──────╯ ├───────────────┤ │","│ │ ╰───────┬───────╯ │","╰────────│───────────────────────────│─────────╯"," │ │"," │ ╭──────────────────╮ │"," │ │ Terminal Preview │ │"," │ ╰──────────────────╯ │"," │ ▲ │"," │ │ │"," ╰──────────────┴────────────╯"],"runs":[[[16,1],[16,2]],[[16,1],[1,2],[14,3],[1,2]],[[16,1],[7,2],[1,6],[8,2]],[[23,1],[1,7]],[[2,0],[14,0],[7,0],[1,5],[24,0]],[[1,0],[14,1],[17,2],[15,1],[1,0]],[[1,0],[14,1],[1,2],[15,3],[1,2],[15,1],[1,0]],[[1,0],[14,1],[8,2],[1,4],[8,2],[15,1],[1,0]],[[1,0],[8,1],[29,5],[9,1],[1,0]],[[1,0],[8,1],[1,5],[27,1],[1,5],[9,1],[1,0]],[[1,0],[8,1],[1,5],[19,1],[17,2],[1,1],[1,0]],[[1,0],[1,1],[15,2],[12,1],[17,2],[1,1],[1,0]],[[1,0],[1,1],[1,2],[13,3],[1,2],[12,1],[1,2],[15,3],[1,2],[1,1],[1,0]],[[1,0],[1,1],[7,2],[1,9],[7,2],[12,1],[17,2],[1,1],[1,0]],[[1,0],[8,1],[1,6],[19,1],[8,2],[1,9],[8,2],[1,1],[1,0]],[[9,0],[1,6],[27,0],[1,6],[10,0]],[[9,1],[1,4],[27,1],[1,6]],[[9,1],[1,4],[4,1],[20,2],[3,1],[1,4]],[[9,1],[1,7],[4,1],[1,2],[18,3],[1,2],[3,1],[1,4]],[[9,1],[1,7],[4,1],[20,2],[3,1],[1,7]],[[9,1],[1,8],[14,1],[1,5],[12,1],[1,7]],[[9,1],[1,8],[14,1],[1,5],[12,1],[1,8]],[[9,1],[29,5]]]}, + {"width":60,"source":"flowchart TD\n subgraph plugins[\"Plugins — one verb: attach\"]\n chip[\"pr-indicator<br/>attach(prompt.footer, { after: 'directory' })\"]\n theme[\"fancy-footer<br/>attach(prompt.footer, { replace: 'right' })\"]\n end\n\n subgraph host[\"Host anatomy tree — published, stable part IDs\"]\n footer[\"prompt.footer\"]\n left[\"left\"]\n right[\"right<br/>(container)\"]\n dir[\"directory\"]\n model[\"model\"]\n tokens[\"tokens\"]\n footer --> left\n footer --> right\n right --> dir\n right --> model\n right --> tokens\n end\n\n chip -- \"insert after\" --> dir\n theme == \"takeover\" ==> right\n theme -. \"suppresses guests<br/>in subtree\" .-> chip","height":83,"lines":[" ╭─ Plugins — one verb: attach ──────────────────────────────╮"," │ ╭─────────────────────────────────────────────╮ │"," │ │ fancy-footer │ │","╭─────┤ attach(prompt.footer, { replace: 'right' }) │ │","│ │ ╰──────────────────────┬──────────────────────╯ │","│ │ ┗━━━━━━━━━━━━━ takeover ━━━━━━━━━━━━━┓","│ │ │ ┃","│ │ │ ┃","│ │ │ ┃","│ │ │ ┃","│ │ suppresses guests │ ┃","│ │ in subtree │ ┃","│ │ │ ┃","│ │ │ ┃","│ │ │ ┃","│ │ │ ┃","│ │ │ ┃","│ │ ╭───────────────────────────────────────────────╮ │ ┃","│ │ │ pr-indicator │ │ ┃","╰───▶│ attach(prompt.footer, { after: 'directory' }) │ │ ┃"," │ ╰───────────────────────┬───────────────────────╯ │ ┃","╭─────── insert after ───────╯ │ ┃","│ │ │ ┃","│ │ │ ┃","│ │ │ ┃","│ │ │ ┃","│ │ │ ┃","│ │ │ ┃","│ │ │ ┃","│ │ │ ┃","│ │ │ ┃","│ │ │ ┃","│ │ │ ┃","│ │ │ ┃","│ │ │ ┃","│ │ │ ┃","│ │ │ ┃","│ │ │ ┃","│ │ │ ┃","│ │ │ ┃","│ │ │ ┃","│ │ │ ┃","│ │ │ ┃","│ │ │ ┃","│ │ │ ┃","│ │ │ ┃","│ │ │ ┃","│ │ │ ┃","│ │ │ ┃","│ │ │ ┃","│ │ │ ┃","│ │ │ ┃","│ │ │ ┃","│ ╰───────────────────────────────────────────────────────────╯ ┃","│ ┃","│ ╭─ Host anatomy tree — published, stable part IDs ╮ ┃","│ │ ╭───────────────╮ │ ┃","│ │ │ prompt.footer │ │ ┃","│ │ ╰───────┬───────╯ │ ┃","│ │ │ │ ┃","│ │ │ │ ┃","│ │ │ │ ┃","│ │ ╭─────────┴─────╮ │ ┃","│ │ │ │ │ ┃","│ │ │ │ │ ┃","│ │ │ │ │ ┃","│ │ │ │ │ ┃","│ │ │ │ │ ┃","│ │ │ │ │ ┃","│ │ │ │ │ ┃","│ │ │ ├━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┛","│ │ ▼ ▼ │","│ │ ╭──────╮ ╭─────────────╮ │","│ │ │ left │ │ right │ │","│ │ ╰──────╯ │ (container) │ │","│ │ ╰──────┬──────╯ │","│ │ ╭───────────────┬────┴─────────╮ │","╰─────────────┤ │ │ │"," │ ▼ ▼ ▼ │"," │ ╭───────────╮ ╭───────╮ ╭────────╮ │"," │ │ directory │ │ model │ │ tokens │ │"," │ ╰───────────╯ ╰───────╯ ╰────────╯ │"," ╰─────────────────────────────────────────────────╯"],"runs":[[[3,1],[2,0],[28,0],[31,0]],[[3,1],[1,0],[2,1],[47,2],[10,1],[1,0]],[[3,1],[1,0],[2,1],[1,2],[45,3],[1,2],[10,1],[1,0]],[[1,5],[1,8],[1,7],[2,4],[1,6],[1,9],[45,3],[1,2],[10,1],[1,0]],[[1,5],[2,1],[1,0],[2,1],[23,2],[1,4],[23,2],[10,1],[1,0]],[[1,5],[2,1],[1,0],[25,1],[14,5],[10,10],[14,5]],[[1,5],[2,1],[1,0],[59,1],[1,0],[2,1],[1,5]],[[1,5],[2,1],[1,0],[59,1],[1,0],[2,1],[1,5]],[[1,5],[2,1],[1,0],[59,1],[1,0],[2,1],[1,5]],[[1,5],[2,1],[1,0],[59,1],[1,0],[2,1],[1,5]],[[1,5],[2,1],[1,0],[1,1],[19,10],[39,1],[1,0],[2,1],[1,5]],[[1,5],[2,1],[1,0],[1,1],[12,10],[46,1],[1,0],[2,1],[1,5]],[[1,5],[2,1],[1,0],[59,1],[1,0],[2,1],[1,5]],[[1,5],[2,1],[1,0],[59,1],[1,0],[2,1],[1,5]],[[1,5],[2,1],[1,0],[59,1],[1,0],[2,1],[1,5]],[[1,5],[2,1],[1,0],[59,1],[1,0],[2,1],[1,5]],[[1,5],[2,1],[1,0],[59,1],[1,0],[2,1],[1,5]],[[1,5],[2,1],[1,0],[1,1],[49,2],[9,1],[1,0],[2,1],[1,5]],[[1,5],[2,1],[1,0],[1,1],[1,2],[47,3],[1,2],[9,1],[1,0],[2,1],[1,5]],[[5,5],[1,2],[47,3],[1,2],[9,1],[1,0],[2,1],[1,5]],[[3,1],[1,0],[1,1],[24,2],[1,4],[24,2],[9,1],[1,0],[2,1],[1,5]],[[8,5],[14,10],[8,5],[33,1],[1,0],[2,1],[1,5]],[[1,5],[2,1],[1,0],[59,1],[1,0],[2,1],[1,5]],[[1,5],[2,1],[1,0],[59,1],[1,0],[2,1],[1,5]],[[1,5],[2,1],[1,0],[59,1],[1,0],[2,1],[1,5]],[[1,5],[2,1],[1,0],[59,1],[1,0],[2,1],[1,5]],[[1,5],[2,1],[1,0],[59,1],[1,0],[2,1],[1,5]],[[1,5],[2,1],[1,0],[59,1],[1,0],[2,1],[1,5]],[[1,5],[2,1],[1,0],[59,1],[1,0],[2,1],[1,5]],[[1,5],[2,1],[1,0],[59,1],[1,0],[2,1],[1,5]],[[1,5],[2,1],[1,0],[59,1],[1,0],[2,1],[1,5]],[[1,5],[2,1],[1,0],[59,1],[1,0],[2,1],[1,5]],[[1,5],[2,1],[1,0],[59,1],[1,0],[2,1],[1,5]],[[1,5],[2,1],[1,0],[59,1],[1,0],[2,1],[1,5]],[[1,5],[2,1],[1,0],[59,1],[1,0],[2,1],[1,5]],[[1,5],[2,1],[1,0],[59,1],[1,0],[2,1],[1,5]],[[1,5],[2,1],[1,0],[59,1],[1,0],[2,1],[1,5]],[[1,5],[2,1],[1,0],[59,1],[1,0],[2,1],[1,5]],[[1,5],[2,1],[1,0],[59,1],[1,0],[2,1],[1,5]],[[1,5],[2,1],[1,0],[59,1],[1,0],[2,1],[1,5]],[[1,5],[2,1],[1,0],[59,1],[1,0],[2,1],[1,5]],[[1,5],[2,1],[1,0],[59,1],[1,0],[2,1],[1,5]],[[1,5],[2,1],[1,0],[59,1],[1,0],[2,1],[1,5]],[[1,5],[2,1],[1,0],[59,1],[1,0],[2,1],[1,5]],[[1,5],[2,1],[1,0],[59,1],[1,0],[2,1],[1,5]],[[1,5],[2,1],[1,0],[59,1],[1,0],[2,1],[1,5]],[[1,5],[2,1],[1,0],[59,1],[1,0],[2,1],[1,5]],[[1,5],[2,1],[1,0],[59,1],[1,0],[2,1],[1,5]],[[1,5],[2,1],[1,0],[59,1],[1,0],[2,1],[1,5]],[[1,5],[2,1],[1,0],[59,1],[1,0],[2,1],[1,5]],[[1,5],[2,1],[1,0],[59,1],[1,0],[2,1],[1,5]],[[1,5],[2,1],[1,0],[59,1],[1,0],[2,1],[1,5]],[[1,5],[2,1],[1,0],[59,1],[1,0],[2,1],[1,5]],[[1,5],[2,1],[61,0],[2,1],[1,5]],[[1,5],[65,1],[1,5]],[[1,5],[3,1],[2,0],[48,0],[1,0],[11,1],[1,5]],[[1,5],[3,1],[1,0],[16,1],[17,2],[16,1],[1,0],[11,1],[1,5]],[[1,5],[3,1],[1,0],[16,1],[1,2],[15,3],[1,2],[16,1],[1,0],[11,1],[1,5]],[[1,5],[3,1],[1,0],[16,1],[8,2],[1,4],[8,2],[16,1],[1,0],[11,1],[1,5]],[[1,5],[3,1],[1,0],[24,1],[1,5],[24,1],[1,0],[11,1],[1,5]],[[1,5],[3,1],[1,0],[24,1],[1,5],[24,1],[1,0],[11,1],[1,5]],[[1,5],[3,1],[1,0],[24,1],[1,5],[24,1],[1,0],[11,1],[1,5]],[[1,5],[3,1],[1,0],[14,1],[17,5],[18,1],[1,0],[11,1],[1,5]],[[1,5],[3,1],[1,0],[14,1],[1,5],[15,1],[1,5],[18,1],[1,0],[11,1],[1,5]],[[1,5],[3,1],[1,0],[14,1],[1,5],[15,1],[1,5],[18,1],[1,0],[11,1],[1,5]],[[1,5],[3,1],[1,0],[14,1],[1,5],[15,1],[1,5],[18,1],[1,0],[11,1],[1,5]],[[1,5],[3,1],[1,0],[14,1],[1,5],[15,1],[1,5],[18,1],[1,0],[11,1],[1,5]],[[1,5],[3,1],[1,0],[14,1],[1,5],[15,1],[1,5],[18,1],[1,0],[11,1],[1,5]],[[1,5],[3,1],[1,0],[14,1],[1,5],[15,1],[1,5],[18,1],[1,0],[11,1],[1,5]],[[1,5],[3,1],[1,0],[14,1],[1,5],[15,1],[1,5],[18,1],[1,0],[11,1],[1,5]],[[1,5],[3,1],[1,0],[14,1],[1,5],[15,1],[32,5]],[[1,5],[3,1],[1,0],[14,1],[1,5],[15,1],[1,5],[18,1],[1,0]],[[1,5],[3,1],[1,0],[10,1],[8,2],[5,1],[15,2],[11,1],[1,0]],[[1,5],[3,1],[1,0],[10,1],[1,2],[6,3],[1,2],[5,1],[1,2],[13,3],[1,2],[11,1],[1,0]],[[1,5],[3,1],[1,0],[10,1],[8,2],[5,1],[1,2],[13,3],[1,2],[11,1],[1,0]],[[1,5],[3,1],[1,0],[23,1],[7,2],[1,4],[7,2],[11,1],[1,0]],[[1,5],[3,1],[1,0],[9,1],[32,5],[8,1],[1,0]],[[15,5],[15,1],[1,5],[14,1],[1,5],[8,1],[1,0]],[[4,1],[1,0],[9,1],[1,5],[15,1],[1,5],[14,1],[1,5],[8,1],[1,0]],[[4,1],[1,0],[3,1],[13,2],[5,1],[9,2],[5,1],[10,2],[4,1],[1,0]],[[4,1],[1,0],[3,1],[1,2],[11,3],[1,2],[5,1],[1,2],[7,3],[1,2],[5,1],[1,2],[8,3],[1,2],[4,1],[1,0]],[[4,1],[1,0],[3,1],[13,2],[5,1],[9,2],[5,1],[10,2],[4,1],[1,0]],[[4,1],[51,0]]]}, + {"width":60,"source":"\nflowchart TD\n Payment -->|approved| Orders[(Orders DB)]\n Payment -->|declined| Retry([Retry])\n Orders --> Receipt([Receipt])\n subgraph Fulfill [Fulfillment]\n Orders[(Orders DB)]\n Receipt([Receipt])\n end\n","height":17,"lines":[" ╭─────────╮"," │ Payment │"," ╰────┬────╯"," ╭─ approved ─┴── declined ───╮"," │ │","╭───────▼───────────────────╮ │","│ ╭───────────╮ │ ▼","│ ├───────────┤ │ ╭───────╮","│ │ Orders DB │ │ │ Retry │","│ ├───────────┤ │ ╰───────╯","│ ╰─────┬─────╯ │","│ ╰────────────╮ │","│ ▼ │","│ ╭─────────╮ │","│ │ Receipt │ │","│ ╰─────────╯ │","╰─ Fulfillment ─────────────╯"],"runs":[[[16,1],[11,2]],[[16,1],[1,2],[9,3],[1,2]],[[16,1],[5,2],[1,4],[5,2]],[[8,1],[2,5],[10,10],[4,5],[10,10],[4,5]],[[8,1],[1,5],[28,1],[1,5]],[[8,0],[1,5],[20,0],[8,1],[1,5]],[[1,0],[1,1],[13,2],[13,1],[1,0],[8,1],[1,5]],[[1,0],[1,1],[13,2],[13,1],[1,0],[4,1],[9,2]],[[1,0],[1,1],[1,2],[11,3],[1,2],[13,1],[1,0],[4,1],[1,2],[7,3],[1,2]],[[1,0],[1,1],[13,2],[13,1],[1,0],[4,1],[9,2]],[[1,0],[1,1],[6,2],[1,4],[6,2],[13,1],[1,0]],[[1,0],[7,1],[14,5],[6,1],[1,0]],[[1,0],[20,1],[1,5],[6,1],[1,0]],[[1,0],[15,1],[11,2],[1,1],[1,0]],[[1,0],[15,1],[1,2],[9,3],[1,2],[1,1],[1,0]],[[1,0],[15,1],[11,2],[1,1],[1,0]],[[2,0],[13,0],[14,0]]]}, + {"width":60,"source":"\nflowchart TD\n Input([Input]) --> Router[Route]\n Router -->|hit| Cache[(Cache)]\n Router -->|miss| Worker[Worker]\n","height":16,"lines":[" ╭───────╮"," │ Input │"," ╰───┬───╯"," │"," ▼"," ╭───────╮"," │ Route │"," ╰───┬───╯"," ╭─── hit ───┴── miss ───╮"," │ │"," ▼ │","╭───────╮ ▼","├───────┤ ╭────────╮","│ Cache │ │ Worker │","├───────┤ ╰────────╯","╰───────╯"],"runs":[[[12,1],[9,2]],[[12,1],[1,2],[7,3],[1,2]],[[12,1],[4,2],[1,6],[4,2]],[[16,1],[1,7]],[[16,1],[1,5]],[[12,1],[9,2]],[[12,1],[1,2],[7,3],[1,2]],[[12,1],[4,2],[1,4],[4,2]],[[4,1],[4,5],[5,10],[6,5],[6,10],[4,5]],[[4,1],[1,5],[23,1],[1,5]],[[4,1],[1,5],[23,1],[1,5]],[[9,2],[19,1],[1,5]],[[9,2],[14,1],[10,2]],[[1,2],[7,3],[1,2],[14,1],[1,2],[8,3],[1,2]],[[9,2],[14,1],[10,2]],[[9,2]]]}, + {"width":60,"source":"\ngraph LR\n Ticket([Ticket]) --> Triage[Auto Triage]\n Triage -->|billing| Billing[Billing Queue]\n Triage -->|bug| Bugs[(Bug Tracker)]\n Triage -->|question| Docs[Docs Reply]\n Billing --> Done([Closed])\n Bugs --> Done\n Docs --> Done\n","height":21,"lines":[" ╭────────╮"," │ Ticket │"," ╰───┬────╯"," │"," ▼"," ╭─────────────╮"," │ Auto Triage │"," ╰──────┬──────╯"," ╭──── billing ─────┴─┬─── question ──────╮"," │ │ bug │"," │ ▼ │"," ▼ ╭─────────────╮ ▼","╭───────────────╮ ├─────────────┤ ╭────────────╮","│ Billing Queue │ │ Bug Tracker │ │ Docs Reply │","╰───────┬───────╯ ├─────────────┤ ╰──────┬─────╯"," │ ╰──────┬──────╯ │"," ╰───────────────────┬╯───────────────────╯"," ▼"," ╭────────╮"," │ Closed │"," ╰────────╯"],"runs":[[[23,1],[10,2]],[[23,1],[1,2],[8,3],[1,2]],[[23,1],[4,2],[1,6],[5,2]],[[27,1],[1,7]],[[27,1],[1,5]],[[20,1],[15,2]],[[20,1],[1,2],[13,3],[1,2]],[[20,1],[7,2],[1,4],[7,2]],[[8,1],[5,5],[9,10],[11,5],[10,10],[7,5]],[[8,1],[1,5],[20,1],[1,5],[5,10],[14,1],[1,5]],[[8,1],[1,5],[20,1],[1,5],[19,1],[1,5]],[[8,1],[1,5],[13,1],[15,2],[12,1],[1,5]],[[17,2],[5,1],[15,2],[5,1],[14,2]],[[1,2],[15,3],[1,2],[5,1],[1,2],[13,3],[1,2],[5,1],[1,2],[12,3],[1,2]],[[8,2],[1,6],[8,2],[5,1],[15,2],[5,1],[7,2],[1,6],[6,2]],[[8,1],[1,7],[13,1],[7,2],[1,4],[7,2],[12,1],[1,7]],[[8,1],[42,5]],[[28,1],[1,5]],[[23,1],[10,2]],[[23,1],[1,2],[8,3],[1,2]],[[23,1],[10,2]]]}, + {"width":60,"source":"\nflowchart TD\n Cart([Cart]) --> Address[Address]\n Address --> Payment[Payment]\n Payment -->|approved| Orders[(Orders DB)]\n Payment -->|declined| Retry([Retry])\n Retry --> Payment\n Orders --> Receipt([Receipt])\n","height":26,"lines":[" ╭──────╮"," │ Cart │"," ╰──┬───╯"," │"," ▼"," ╭─────────╮"," │ Address │"," ╰────┬────╯"," │"," ▼"," ╭─────────╮"," │ Payment │◀────────────────╮"," ╰────┬────╯ │"," ╭─ approved ─┴── declined ───╮ │"," │ │ │"," ▼ │ │","╭───────────╮ ▼ │","├───────────┤ ╭───────╮ │","│ Orders DB │ │ Retry ├──╯","├───────────┤ ╰───────╯","╰─────┬─────╯"," ╰────────────╮"," ▼"," ╭─────────╮"," │ Receipt │"," ╰─────────╯"],"runs":[[[16,1],[8,2]],[[16,1],[1,2],[6,3],[1,2]],[[16,1],[3,2],[1,6],[4,2]],[[19,1],[1,7]],[[19,1],[1,5]],[[14,1],[11,2]],[[14,1],[1,2],[9,3],[1,2]],[[14,1],[5,2],[1,6],[5,2]],[[19,1],[1,7]],[[19,1],[1,5]],[[14,1],[11,2]],[[14,1],[1,2],[9,3],[1,2],[18,5]],[[14,1],[5,2],[1,4],[5,2],[17,1],[1,5]],[[6,1],[2,5],[10,10],[4,5],[10,10],[4,5],[6,1],[1,5]],[[6,1],[1,5],[28,1],[1,5],[6,1],[1,5]],[[6,1],[1,5],[28,1],[1,5],[6,1],[1,5]],[[13,2],[22,1],[1,5],[6,1],[1,5]],[[13,2],[18,1],[9,2],[2,1],[1,5]],[[1,2],[11,3],[1,2],[18,1],[1,2],[7,3],[1,6],[1,4],[1,7],[1,5]],[[13,2],[18,1],[9,2]],[[6,2],[1,4],[6,2]],[[6,1],[14,5]],[[19,1],[1,5]],[[14,1],[11,2]],[[14,1],[1,2],[9,3],[1,2]],[[14,1],[11,2]]]}, + {"width":60,"source":"\nflowchart TD\n A --> B\n B -->|again| A\n","height":9,"lines":["╭───╮","│ A │◀─╮","╰─┬─╯ │"," │ │"," │ │ again "," ▼ │","╭───╮ │","│ B ├──╯","╰───╯"],"runs":[[[5,2]],[[1,2],[3,3],[1,2],[3,5]],[[2,2],[1,6],[2,2],[2,1],[1,5]],[[2,1],[1,4],[4,1],[1,5]],[[2,1],[1,7],[4,1],[1,5],[7,10]],[[2,1],[1,5],[4,1],[1,5]],[[5,2],[2,1],[1,5]],[[1,2],[3,3],[1,6],[1,4],[1,7],[1,5]],[[5,2]]]}, + {"width":60,"source":"\nflowchart LR\n Build[Build Services] --> Test[Integration Tests]\n Test -->|pass| Canary[Canary]\n Test -->|fail| Fix[Fix Forward]\n Fix --> Build\n Canary -->|rollback| Fix\n","height":17,"lines":[" ╭────────────────╮"," │ Build Services │◀──────────────╮"," ╰────────┬───────╯ │"," │ │"," ▼ │"," ╭───────────────────╮ │"," │ Integration Tests │ │"," ╰─────────┬─────────╯ │"," ╭──── pass ─────┴─── fail ────╮ │"," │ │ │"," ▼ ▼ │","╭────────╮ ╭─────────────╮ │","│ Canary │ │ Fix Forward ├──╯","╰────┬───╯ ╰─────────────╯"," │ ▲"," │ │"," ╰───────── rollback ──────────╯"],"runs":[[[12,1],[18,2]],[[12,1],[1,2],[16,3],[1,2],[16,5]],[[12,1],[9,2],[1,6],[8,2],[15,1],[1,5]],[[21,1],[1,7],[23,1],[1,5]],[[21,1],[1,5],[23,1],[1,5]],[[11,1],[21,2],[13,1],[1,5]],[[11,1],[1,2],[19,3],[1,2],[13,1],[1,5]],[[11,1],[10,2],[1,4],[10,2],[13,1],[1,5]],[[5,1],[5,5],[6,10],[9,5],[6,10],[5,5],[9,1],[1,5]],[[5,1],[1,5],[29,1],[1,5],[9,1],[1,5]],[[5,1],[1,5],[29,1],[1,5],[9,1],[1,5]],[[10,2],[18,1],[15,2],[2,1],[1,5]],[[1,2],[8,3],[1,2],[18,1],[1,2],[13,3],[1,6],[1,4],[1,7],[1,5]],[[5,2],[1,6],[4,2],[18,1],[15,2]],[[5,1],[1,4],[29,1],[1,5]],[[5,1],[1,7],[29,1],[1,5]],[[5,1],[10,5],[10,10],[11,5]]]}, + {"width":60,"source":"gantt\n dateFormat s\n axisFormat %Ss\n section OLD (blocking)\n provider.create (Modal sandbox) :crit, 0, 15\n model streams first token :15, 17\n section NEW (eager kick)\n reserve (DB insert) :0, 1\n model streams first token :0, 2\n provisioning in background :active, 0, 15\n model calls bash → spawn runs :15, 16\n section NEW (pure chat thread)\n reserve (DB insert) :0, 1\n model answers, never calls bash :0, 4","height":15,"lines":[" 00s 05s 10s 15s"," ┬───────┬──────┬───────┬───","OLD (blocking)","provider.create (Modal sandbox) ───────────────────────────","model streams first token ───────────────────────────","","NEW (eager kick)","reserve (DB insert) ───────────────────────────","model streams first token ───────────────────────────","provisioning in background ───────────────────────────","model calls bash → spawn runs ───────────────────────────","","NEW (pure chat thread)","reserve (DB insert) ───────────────────────────","model answers, never calls bash ───────────────────────────"],"runs":[[[33,1],[3,2],[4,1],[3,2],[4,1],[3,2],[5,1],[3,2]],[[33,1],[27,2]],[[14,12]],[[31,13],[2,1],[24,13],[3,14]],[[25,3],[8,1],[23,14],[4,3]],[],[[16,12]],[[19,3],[14,1],[3,3],[24,14]],[[25,3],[8,1],[4,3],[23,14]],[[26,3],[7,1],[24,3],[3,14]],[[29,3],[4,1],[23,14],[2,3],[2,14]],[],[[22,12]],[[19,3],[14,1],[3,3],[24,14]],[[31,3],[2,1],[7,3],[20,14]]]}, + {"width":60,"source":"gantt\n dateFormat YYYY-MM-DD\n task one :done, first, 2026-08-01, 2d\n deploy :milestone, after first, 0d","height":4,"lines":[" 2026-082026-08-01 2026-08-02 2026-08-2026-08-03"," ┬───────────┬────────────┬───────────┬───────────┬","task one ──────────────────────────────────────────────────","deploy ◆"],"runs":[[[10,1],[17,2],[3,1],[10,2],[2,1],[18,2]],[[10,1],[50,2]],[[8,2],[2,1],[50,2]],[[6,15],[53,1],[1,15]]]}, + {"width":60,"source":"gantt\n dateFormat YYYY-MM-DD\n task one :first, 2026-08-01, 2d\n deploy :milestone, after first, 0d","height":4,"lines":[" 2026-082026-08-01 2026-08-02 2026-08-2026-08-03"," ┬───────────┬────────────┬───────────┬───────────┬","task one ──────────────────────────────────────────────────","deploy ◆"],"runs":[[[10,1],[17,2],[3,1],[10,2],[2,1],[18,2]],[[10,1],[50,2]],[[8,3],[2,1],[50,3]],[[6,15],[53,1],[1,15]]]}, + {"width":60,"source":"gitGraph TB:\n commit id: \"init\"\n branch feature order: 1\n commit id: \"api\" msg: \"Add API\" tag: \"ready\"\n checkout main\n commit id: \"docs\" type: HIGHLIGHT\n merge feature id: \"merge-feature\"","height":5,"lines":["● init","├─╮","│ ● Add API [feature] [ready]","◆ │ docs","◎─╯ merge-feature [main]"],"runs":[[[1,3],[4,1],[4,3]],[[1,2],[2,2]],[[1,2],[1,1],[1,3],[2,1],[26,3]],[[1,13],[1,1],[1,2],[2,1],[4,3]],[[1,12],[2,2],[2,1],[21,3]]]}, + {"width":60,"source":"gitGraph\n commit id: \"baseline\"\n branch refactor\n commit id: \"extract-seam\" msg: \"Extract seam\"\n commit id: \"add-tests\" tag: \"ready\"\n checkout main\n commit id: \"unrelated-fix\"\n merge refactor id: \"land-refactor\" tag: \"v2\"","height":6,"lines":["● baseline","├─╮","│ ● Extract seam","│ ● add-tests [refactor] [ready]","● │ unrelated-fix","◎─╯ land-refactor [main] [v2]"],"runs":[[[1,3],[4,1],[8,3]],[[1,2],[2,2]],[[1,2],[1,1],[1,3],[2,1],[12,3]],[[1,2],[1,1],[1,3],[2,1],[29,3]],[[1,3],[1,1],[1,2],[2,1],[13,3]],[[1,12],[2,2],[2,1],[26,3]]]}, + {"width":60,"source":"gitGraph\n commit \"Initial release\"\n branch feature\n checkout main\n commit id: next","height":2,"lines":["● Initial release [feature]","● next [main]"],"runs":[[[1,3],[4,1],[26,3]],[[1,3],[4,1],[12,3]]]}, + {"width":60,"source":"gitGraph\n commit id: base\n branch feature\n checkout main\n commit id: next","height":2,"lines":["● base [feature]","● next [main]"],"runs":[[[1,3],[4,1],[15,3]],[[1,3],[4,1],[12,3]]]}, + {"width":60,"source":"gitGraph\n commit id: base\n branch later order: 2\n checkout main\n branch ordinary\n checkout main\n branch earlier order: 1","height":1,"lines":["● base [main] [ordinary] [earlier] [later]"],"runs":[[[1,3],[8,1],[41,3]]]}, + {"width":60,"source":"gitGraph\n commit id: base\n branch one\n branch two\n commit id: work","height":3,"lines":["● base [main] [one]","├───╮"," ● work [two]"],"runs":[[[1,3],[6,1],[18,3]],[[1,2],[4,2]],[[4,1],[1,3],[2,1],[11,3]]]}, + {"width":60,"source":"gitGraph\n commit id: base\n branch feature\n commit id: work type: REVERSE\n checkout main\n commit id: checkpoint type: HIGHLIGHT\n merge feature id: done","height":5,"lines":["● base","├─╮","│ ⊗ work [feature]","◆ │ checkpoint","◎─╯ done [main]"],"runs":[[[1,3],[4,1],[4,3]],[[1,2],[2,2]],[[1,2],[1,1],[1,13],[2,1],[15,3]],[[1,13],[1,1],[1,2],[2,1],[10,3]],[[1,12],[2,2],[2,1],[12,3]]]}, + {"width":60,"source":"\nsequenceDiagram\n participant B as Browser\n participant S as Server\n B->>S: GET /\n S-->>B: 401 WWW-Auth\n","height":6,"lines":["Browser Server"," │ │"," ├──── GET / ──────►"," │ │"," ◄─ 401 WWW-Auth ──┤"," │ │"],"runs":[[[7,3],[11,1],[6,3]],[[3,1],[1,2],[17,1],[1,2]],[[3,1],[1,16],[1,17],[1,18],[1,19],[1,20],[14,21]],[[3,1],[1,2],[17,1],[1,2]],[[3,1],[16,22],[1,23],[1,24],[1,25]],[[3,1],[1,2],[17,1],[1,2]]]}, + {"width":60,"source":"sequenceDiagram\n participant A as Worker & signer\n participant B\n A->>B: ack <3s\n Note over A,B: result ≥ 1","height":7,"lines":["Worker & signer B"," │ │"," ├─── ack <3s ─────►"," │ │"," │ │"," │ result ≥ 1 │"," │ │"],"runs":[[[15,3],[10,1],[1,3]],[[7,1],[1,2],[17,1],[1,2]],[[7,1],[1,16],[1,17],[1,18],[1,19],[15,21]],[[7,1],[1,2],[17,1],[1,2]],[[7,1],[1,2],[17,1],[1,2]],[[7,1],[1,2],[1,1],[14,26],[2,1],[1,2]],[[7,1],[1,2],[17,1],[1,2]]]}, + {"width":60,"source":"\nsequenceDiagram\n participant Leaf as leaf tool\n participant Location as LocationMutation\n participant File as FileMutation\n Leaf->>Location: resolve(path)\n Location-->>Leaf: Plan(target, authority anchor)\n Leaf->>File: commit(plan)\n File->>Location: revalidate(plan)\n Location-->>File: same target or reject\n","height":12,"lines":["leaf tool LocationMutation FileMutation"," │ │ │"," ├───────── resolve(path) ───────────► │"," │ │ │"," ◄─ Plan(target, authority anchor) ──┤ │"," │ │ │"," ├─────────────────────── commit(plan) ─────────────────────────►"," │ │ │"," │ ◄─── revalidate(plan) ─────┤"," │ │ │"," │ ├─ same target or reject ──►"," │ │ │"],"runs":[[[9,3],[23,1],[16,3],[13,1],[12,3]],[[4,1],[1,2],[35,1],[1,2],[26,1],[1,2]],[[4,1],[1,16],[1,17],[1,18],[1,19],[1,20],[32,21],[26,1],[1,2]],[[4,1],[1,2],[35,1],[1,2],[26,1],[1,2]],[[4,1],[34,22],[1,23],[1,24],[1,25],[26,1],[1,2]],[[4,1],[1,2],[35,1],[1,2],[26,1],[1,2]],[[4,1],[1,16],[1,17],[1,18],[1,19],[1,20],[59,21]],[[4,1],[1,2],[35,1],[1,2],[26,1],[1,2]],[[4,1],[1,2],[35,1],[23,21],[1,20],[1,19],[1,18],[1,17],[1,16]],[[4,1],[1,2],[35,1],[1,2],[26,1],[1,2]],[[4,1],[1,2],[35,1],[1,25],[1,24],[26,22]],[[4,1],[1,2],[35,1],[1,2],[26,1],[1,2]]]}, + {"width":60,"source":"\nsequenceDiagram\n participant Worker\n participant Store\n Note over Worker,Store: transaction\n alt accepted\n Worker->>Worker: prepare\n Worker->>Store: commit\n end\n","height":15,"lines":["Worker Store"," │ │"," │ │"," │ transaction │"," │ │","╭─ alt: accepted ────────╮","│ │ │ │","│ ├──────────╮ │ │","│ │ prepare │ │ │","│ ◄──────────╯ │ │","│ │ │ │","│ ├──── commit ──────► │","│ │ │ │","╰────────────────────────╯"," │ │"],"runs":[[[6,3],[14,1],[5,3]],[[3,1],[1,2],[18,1],[1,2]],[[3,1],[1,2],[18,1],[1,2]],[[3,1],[1,2],[1,1],[15,26],[2,1],[1,2]],[[3,1],[1,2],[18,1],[1,2]],[[2,12],[15,27],[9,12]],[[1,12],[2,1],[1,2],[18,1],[1,2],[2,1],[1,12]],[[1,12],[2,1],[1,16],[1,17],[1,18],[1,19],[1,20],[7,21],[7,1],[1,2],[2,1],[1,12]],[[1,12],[2,1],[1,2],[1,1],[7,21],[2,1],[1,21],[7,1],[1,2],[2,1],[1,12]],[[1,12],[2,1],[12,21],[7,1],[1,2],[2,1],[1,12]],[[1,12],[2,1],[1,2],[18,1],[1,2],[2,1],[1,12]],[[1,12],[2,1],[1,16],[1,17],[1,18],[1,19],[1,20],[15,21],[2,1],[1,12]],[[1,12],[2,1],[1,2],[18,1],[1,2],[2,1],[1,12]],[[26,12]],[[3,1],[1,2],[18,1],[1,2]]]}, + {"width":60,"source":"\nsequenceDiagram\n participant Browser\n participant Server\n","height":3,"lines":["Browser Server"," │ │"," │ │"],"runs":[[[7,3],[11,1],[6,3]],[[3,1],[1,2],[17,1],[1,2]],[[3,1],[1,2],[17,1],[1,2]]]}, + {"width":60,"source":"\nsequenceDiagram\n participant Browser\n participant Server\n participant Store as Ticket store\n Note over Browser,Server: native browser Basic prompt\n Browser->>Server: POST connect-token\n Server->>Store: issue { ptyID, scope }\n","height":9,"lines":["Browser Server Ticket store"," │ │ │"," │ │ │"," │ native browser Basic prompt │ │"," │ │ │"," ├────── POST connect-token ────────► │"," │ │ │"," │ ├─ issue { ptyID, scope } ──►"," │ │ │"],"runs":[[[7,3],[28,1],[6,3],[19,1],[12,3]],[[3,1],[1,2],[34,1],[1,2],[27,1],[1,2]],[[3,1],[1,2],[34,1],[1,2],[27,1],[1,2]],[[3,1],[1,2],[1,1],[31,26],[2,1],[1,2],[27,1],[1,2]],[[3,1],[1,2],[34,1],[1,2],[27,1],[1,2]],[[3,1],[1,16],[1,17],[1,18],[1,19],[1,20],[31,21],[27,1],[1,2]],[[3,1],[1,2],[34,1],[1,2],[27,1],[1,2]],[[3,1],[1,2],[34,1],[1,16],[1,17],[27,21]],[[3,1],[1,2],[34,1],[1,2],[27,1],[1,2]]]}, + {"width":60,"source":"sequenceDiagram\n participant OpenTUI\n Note right of OpenTUI: child is not renderable\n Note left of OpenTUI: remove failed","height":8,"lines":[" OpenTUI"," │"," │"," │ child is not renderable "," │"," │"," remove failed │"," │"],"runs":[[[16,1],[7,3]],[[19,1],[1,2]],[[19,1],[1,2]],[[19,1],[1,2],[1,1],[27,26]],[[19,1],[1,2]],[[19,1],[1,2]],[[17,26],[2,1],[1,2]],[[19,1],[1,2]]]}, + {"width":60,"source":"sequenceDiagram\n participant A\n Note over A: hello","height":5,"lines":[" A"," │"," │"," hello "," │"],"runs":[[[4,1],[1,3]],[[4,1],[1,2]],[[4,1],[1,2]],[[9,26]],[[4,1],[1,2]]]}, + {"width":60,"source":"sequenceDiagram\n Note over Tool: directory instead?<br/>the WrongKind error carries the answer —<br/>branch to list, no extra round trip","height":7,"lines":[" Tool"," │"," │"," directory instead? "," the WrongKind error carries the answer — "," branch to list, no extra round trip "," │"],"runs":[[[20,1],[4,3]],[[22,1],[1,2]],[[22,1],[1,2]],[[44,26]],[[44,26]],[[44,26]],[[22,1],[1,2]]]}, + {"width":60,"source":"\nsequenceDiagram\n Browser->>+Server: request\n alt accepted\n Server-->>-Browser: response\n else rejected\n activate Server\n Server-->>Browser: error\n deactivate Server\n end\n","height":14,"lines":["Browser Server"," │ │"," ├─── request ─────►"," │ ┃","╭─ alt: accepted ───────╮","│ │ ┃ │","│ ◄─── response ────┤ │","│ │ ┃ │","├─ else: rejected ──────┤","│ │ ┃ │","│ ◄──── error ──────┤ │","│ │ │ │","╰───────────────────────╯"," │ │"],"runs":[[[7,3],[11,1],[6,3]],[[3,1],[1,2],[17,1],[1,2]],[[3,1],[1,16],[1,17],[1,18],[1,19],[15,21]],[[3,1],[1,2],[17,1],[1,2]],[[2,12],[15,27],[8,12]],[[1,12],[2,1],[1,2],[17,1],[1,2],[2,1],[1,12]],[[1,12],[2,1],[14,22],[1,28],[1,29],[1,23],[1,24],[1,25],[2,1],[1,12]],[[1,12],[2,1],[1,2],[17,1],[1,2],[2,1],[1,12]],[[2,12],[16,27],[7,12]],[[1,12],[2,1],[1,2],[17,1],[1,2],[2,1],[1,12]],[[1,12],[2,1],[14,22],[1,28],[1,29],[1,23],[1,24],[1,25],[2,1],[1,12]],[[1,12],[2,1],[1,2],[17,1],[1,2],[2,1],[1,12]],[[25,12]],[[3,1],[1,2],[17,1],[1,2]]]}, + {"width":60,"source":"\nsequenceDiagram\n Browser->>+Server: request\n Server-->>-Browser: response\n","height":6,"lines":["Browser Server"," │ │"," ├─── request ─────►"," │ ┃"," ◄─── response ────┤"," │ │"],"runs":[[[7,3],[11,1],[6,3]],[[3,1],[1,2],[17,1],[1,2]],[[3,1],[1,16],[1,17],[1,18],[1,19],[15,21]],[[3,1],[1,2],[17,1],[1,2]],[[3,1],[14,22],[1,28],[1,29],[1,23],[1,24],[1,25]],[[3,1],[1,2],[17,1],[1,2]]]}, + {"width":60,"source":"sequenceDiagram\n participant A as First line<br/>Second line\n participant B as Normal\n A->>B: hello","height":5,"lines":["First line Normal","Second line"," │ │"," ├──── hello ──────►"," │ │"],"runs":[[[10,3],[10,1],[6,3]],[[11,3]],[[5,1],[1,2],[17,1],[1,2]],[[5,1],[1,16],[1,17],[1,18],[1,19],[1,20],[14,21]],[[5,1],[1,2],[17,1],[1,2]]]}, + {"width":60,"source":"\nsequenceDiagram\n A->B: open solid\n B-->A: open dashed\n A-xB: failed solid\n B--xA: failed dashed\n A-)B: async solid\n B--)A: async dashed\n","height":14,"lines":[" A B"," │ │"," ├── open solid ───>│"," │ │"," │<─ open dashed ───┤"," │ │"," ├─ failed solid ──✕│"," │ │"," │✕ failed dashed ──┤"," │ │"," ├── async solid ──)│"," │ │"," │( async dashed ───┤"," │ │"],"runs":[[[1,1],[1,3],[18,1],[1,3]],[[1,1],[1,2],[18,1],[1,2]],[[1,1],[1,16],[1,17],[1,18],[16,21],[1,2]],[[1,1],[1,2],[18,1],[1,2]],[[1,1],[1,2],[15,22],[1,29],[1,23],[1,24],[1,25]],[[1,1],[1,2],[18,1],[1,2]],[[1,1],[1,16],[1,17],[17,21],[1,2]],[[1,1],[1,2],[18,1],[1,2]],[[1,1],[1,2],[16,22],[1,23],[1,24],[1,25]],[[1,1],[1,2],[18,1],[1,2]],[[1,1],[1,16],[1,17],[1,18],[16,21],[1,2]],[[1,1],[1,2],[18,1],[1,2]],[[1,1],[1,2],[15,22],[1,29],[1,23],[1,24],[1,25]],[[1,1],[1,2],[18,1],[1,2]]]}, + {"width":60,"source":"\nsequenceDiagram\n alt accepted\n Browser->>Server: ok\n else rejected\n Server-->>Browser: no\n end\n","height":12,"lines":["Browser Server"," │ │","╭─ alt: accepted ───────╮","│ │ │ │","│ ├────── ok ───────► │","│ │ │ │","├─ else: rejected ──────┤","│ │ │ │","│ ◄────── no ───────┤ │","│ │ │ │","╰───────────────────────╯"," │ │"],"runs":[[[7,3],[11,1],[6,3]],[[3,1],[1,2],[17,1],[1,2]],[[2,12],[15,27],[8,12]],[[1,12],[2,1],[1,2],[17,1],[1,2],[2,1],[1,12]],[[1,12],[2,1],[1,16],[1,17],[1,18],[1,19],[1,20],[14,21],[2,1],[1,12]],[[1,12],[2,1],[1,2],[17,1],[1,2],[2,1],[1,12]],[[2,12],[16,27],[7,12]],[[1,12],[2,1],[1,2],[17,1],[1,2],[2,1],[1,12]],[[1,12],[2,1],[14,22],[1,28],[1,29],[1,23],[1,24],[1,25],[2,1],[1,12]],[[1,12],[2,1],[1,2],[17,1],[1,2],[2,1],[1,12]],[[25,12]],[[3,1],[1,2],[17,1],[1,2]]]}, + {"width":60,"source":"sequenceDiagram\n A->>B: start\n alt ok\n A->>B: yes\n else validation failed with a substantially longer explanation\n B-->>A: no\n end","height":14,"lines":[" A B"," │ │"," ├──── start ──────►"," │ │","╭─ alt: ok ──────────────────────────────────────────────────────────╮","│ │ │ │","│ ├───── yes ───────► │","│ │ │ │","├─ else: validation failed with a substantially longer explanation ──┤","│ │ │ │","│ ◄────── no ───────┤ │","│ │ │ │","╰────────────────────────────────────────────────────────────────────╯"," │ │"],"runs":[[[3,1],[1,3],[17,1],[1,3]],[[3,1],[1,2],[17,1],[1,2]],[[3,1],[1,16],[1,17],[1,18],[1,19],[1,20],[14,21]],[[3,1],[1,2],[17,1],[1,2]],[[2,12],[9,27],[59,12]],[[1,12],[2,1],[1,2],[17,1],[1,2],[47,1],[1,12]],[[1,12],[2,1],[1,16],[1,17],[1,18],[1,19],[1,20],[14,21],[47,1],[1,12]],[[1,12],[2,1],[1,2],[17,1],[1,2],[47,1],[1,12]],[[2,12],[65,27],[3,12]],[[1,12],[2,1],[1,2],[17,1],[1,2],[47,1],[1,12]],[[1,12],[2,1],[14,22],[1,28],[1,29],[1,23],[1,24],[1,25],[47,1],[1,12]],[[1,12],[2,1],[1,2],[17,1],[1,2],[47,1],[1,12]],[[70,12]],[[3,1],[1,2],[17,1],[1,2]]]}, + {"width":60,"source":"sequenceDiagram\n participant A as Cafe\\u0301\n participant B\n A->>B: hi","height":4,"lines":["Cafe\\u0301 B"," │ │"," ├────── hi ───────►"," │ │"],"runs":[[[10,3],[13,1],[1,3]],[[5,1],[1,2],[17,1],[1,2]],[[5,1],[1,16],[1,17],[1,18],[1,19],[1,20],[14,21]],[[5,1],[1,2],[17,1],[1,2]]]}, + {"width":60,"source":"\nsequenceDiagram\n participant A\n participant B\n alt ok\n A->>B: yes\n end\n","height":8,"lines":[" A B"," │ │","╭─ alt: ok ─────────────╮","│ │ │ │","│ ├───── yes ───────► │","│ │ │ │","╰───────────────────────╯"," │ │"],"runs":[[[3,1],[1,3],[17,1],[1,3]],[[3,1],[1,2],[17,1],[1,2]],[[2,12],[9,27],[14,12]],[[1,12],[2,1],[1,2],[17,1],[1,2],[2,1],[1,12]],[[1,12],[2,1],[1,16],[1,17],[1,18],[1,19],[1,20],[14,21],[2,1],[1,12]],[[1,12],[2,1],[1,2],[17,1],[1,2],[2,1],[1,12]],[[25,12]],[[3,1],[1,2],[17,1],[1,2]]]}, + {"width":60,"source":"\nsequenceDiagram\n participant A\n participant B\n alt ok\n A->>B: yes\n else no\n B-->>A: no\n end\n","height":12,"lines":[" A B"," │ │","╭─ alt: ok ─────────────╮","│ │ │ │","│ ├───── yes ───────► │","│ │ │ │","├─ else: no ────────────┤","│ │ │ │","│ ◄────── no ───────┤ │","│ │ │ │","╰───────────────────────╯"," │ │"],"runs":[[[3,1],[1,3],[17,1],[1,3]],[[3,1],[1,2],[17,1],[1,2]],[[2,12],[9,27],[14,12]],[[1,12],[2,1],[1,2],[17,1],[1,2],[2,1],[1,12]],[[1,12],[2,1],[1,16],[1,17],[1,18],[1,19],[1,20],[14,21],[2,1],[1,12]],[[1,12],[2,1],[1,2],[17,1],[1,2],[2,1],[1,12]],[[2,12],[10,27],[13,12]],[[1,12],[2,1],[1,2],[17,1],[1,2],[2,1],[1,12]],[[1,12],[2,1],[14,22],[1,28],[1,29],[1,23],[1,24],[1,25],[2,1],[1,12]],[[1,12],[2,1],[1,2],[17,1],[1,2],[2,1],[1,12]],[[25,12]],[[3,1],[1,2],[17,1],[1,2]]]}, + {"width":60,"source":"\nsequenceDiagram\n autonumber\n Browser->>API: request\n API-->>Browser: response\n","height":6,"lines":["Browser API"," │ │"," ├── 1. request ───►"," │ │"," ◄─ 2. response ───┤"," │ │"],"runs":[[[7,3],[13,1],[3,3]],[[3,1],[1,2],[17,1],[1,2]],[[3,1],[1,16],[1,17],[1,18],[16,21]],[[3,1],[1,2],[17,1],[1,2]],[[3,1],[15,22],[1,29],[1,23],[1,24],[1,25]],[[3,1],[1,2],[17,1],[1,2]]]}, + {"width":60,"source":"\nsequenceDiagram\n autonumber 10 5\n Browser->>API: first\n API-->>Browser: second\n","height":6,"lines":["Browser API"," │ │"," ├── 10. first ────►"," │ │"," ◄── 15. second ───┤"," │ │"],"runs":[[[7,3],[13,1],[3,3]],[[3,1],[1,2],[17,1],[1,2]],[[3,1],[1,16],[1,17],[1,18],[16,21]],[[3,1],[1,2],[17,1],[1,2]],[[3,1],[15,22],[1,29],[1,23],[1,24],[1,25]],[[3,1],[1,2],[17,1],[1,2]]]}, + {"width":60,"source":"\nsequenceDiagram\n loop retry up to 3x\n Browser->>API: GET /users/42\n API-->>Browser: 503\n end\n","height":10,"lines":["Browser API"," │ │","╭─ ↻ loop: retry up to 3x ─╮","│ │ │ │","│ ├─ GET /users/42 ──► │","│ │ │ │","│ ◄────── 503 ───────┤ │","│ │ │ │","╰──────────────────────────╯"," │ │"],"runs":[[[7,3],[14,1],[3,3]],[[3,1],[1,2],[18,1],[1,2]],[[2,12],[24,27],[2,12]],[[1,12],[2,1],[1,2],[18,1],[1,2],[4,1],[1,12]],[[1,12],[2,1],[1,16],[1,17],[18,21],[4,1],[1,12]],[[1,12],[2,1],[1,2],[18,1],[1,2],[4,1],[1,12]],[[1,12],[2,1],[15,22],[1,28],[1,29],[1,23],[1,24],[1,25],[4,1],[1,12]],[[1,12],[2,1],[1,2],[18,1],[1,2],[4,1],[1,12]],[[28,12]],[[3,1],[1,2],[18,1],[1,2]]]}, + {"width":60,"source":"\nsequenceDiagram\n participant Browser\n box Backend\n participant API\n participant Cache\n end\n box Purple Storage Layer\n participant DB\n end\n box \"Purple Literal Label\"\n participant Worker\n end\n Browser->>API: request\n","height":6,"lines":[" ╭─ Backend ──────────────╮ ╭─ Storage Layer ─╮ ╭─ Purple Literal Label ─╮","Browser │ API Cache │ │ DB │ │ Worker │"," │ │ │ │ │ │ │ │ │ │ │"," ├─── request ─────► │ │ │ │ │ │ │ │"," │ │ │ │ │ │ │ │ │ │ │"," ╰────────────────────────╯ ╰─────────────────╯ ╰────────────────────────╯"],"runs":[[[18,1],[26,12],[4,1],[19,12],[2,1],[26,12]],[[7,3],[11,1],[1,12],[1,1],[3,3],[14,1],[5,3],[1,1],[1,12],[4,1],[1,12],[7,1],[2,3],[8,1],[1,12],[2,1],[1,12],[9,1],[6,3],[9,1],[1,12]],[[3,1],[1,2],[14,1],[1,12],[2,1],[1,2],[17,1],[1,2],[3,1],[1,12],[4,1],[1,12],[8,1],[1,2],[8,1],[1,12],[2,1],[1,12],[12,1],[1,2],[11,1],[1,12]],[[3,1],[1,16],[1,17],[1,18],[1,19],[15,21],[17,1],[1,2],[3,1],[1,12],[4,1],[1,12],[8,1],[1,2],[8,1],[1,12],[2,1],[1,12],[12,1],[1,2],[11,1],[1,12]],[[3,1],[1,2],[14,1],[1,12],[2,1],[1,2],[17,1],[1,2],[3,1],[1,12],[4,1],[1,12],[8,1],[1,2],[8,1],[1,12],[2,1],[1,12],[12,1],[1,2],[11,1],[1,12]],[[18,1],[26,12],[4,1],[19,12],[2,1],[26,12]]]}, + {"width":60,"source":"\nsequenceDiagram\n participant API\n box Backend\n API->>DB: query\n end\n","height":6,"lines":["╭─ Backend ────────────╮","│ API DB │","│ │ │ │","│ ├──── query ──────► │","│ │ │ │","╰──────────────────────╯"],"runs":[[[24,12]],[[1,12],[1,1],[3,3],[15,1],[2,3],[1,1],[1,12]],[[1,12],[2,1],[1,2],[17,1],[1,2],[1,1],[1,12]],[[1,12],[2,1],[1,16],[1,17],[1,18],[1,19],[1,20],[14,21],[1,1],[1,12]],[[1,12],[2,1],[1,2],[17,1],[1,2],[1,1],[1,12]],[[24,12]]]}, + {"width":60,"source":"\nsequenceDiagram\n participant A\n participant B\n participant C\n A->>C: this message needs room past the final participant\n Note over A,C: this note also needs full horizontal room\n","height":8,"lines":[" A B C"," │ │ │"," │ this message needs room past the final participant"," ├───────────────────────────────────►"," │ │ │"," │ │ │"," this note also needs full horizontal room "," │ │ │"],"runs":[[[4,1],[1,3],[17,1],[1,3],[17,1],[1,3]],[[4,1],[1,2],[17,1],[1,2],[17,1],[1,2]],[[4,1],[1,2],[1,1],[50,21]],[[4,1],[1,16],[1,17],[1,18],[1,19],[1,20],[32,21]],[[4,1],[1,2],[17,1],[1,2],[17,1],[1,2]],[[4,1],[1,2],[17,1],[1,2],[17,1],[1,2]],[[45,26]],[[4,1],[1,2],[17,1],[1,2],[17,1],[1,2]]]}, + {"width":60,"source":"sequenceDiagram\n box Services\n participant A\n participant B\n participant C\n A->>C: this message text runs far outside of the group container boundary\n end","height":7,"lines":["╭─ Services ───────────────────────────────────────────────────────────╮","│ A B C │","│ │ │ │ │","│ │ this message text runs far outside of the group container boundary │","│ ├───────────────────────────────────► │","│ │ │ │ │","╰──────────────────────────────────────────────────────────────────────╯"],"runs":[[[72,12]],[[1,12],[1,1],[1,3],[17,1],[1,3],[17,1],[1,3],[32,1],[1,12]],[[1,12],[1,1],[1,2],[17,1],[1,2],[17,1],[1,2],[32,1],[1,12]],[[1,12],[1,1],[1,2],[1,1],[66,21],[1,1],[1,12]],[[1,12],[1,1],[1,16],[1,17],[1,18],[1,19],[1,20],[32,21],[32,1],[1,12]],[[1,12],[1,1],[1,2],[17,1],[1,2],[17,1],[1,2],[32,1],[1,12]],[[72,12]]]}, + {"width":60,"source":"sequenceDiagram\n participant A\n participant B\n participant C\n alt lookup\n A->>C: this non adjacent message is deliberately much wider than the frame\n end","height":9,"lines":[" A B C"," │ │ │","╭─ alt: lookup ─────────────────────────────────────────────────────────╮","│ │ │ │ │","│ │ this non adjacent message is deliberately much wider than the frame│","│ ├───────────────────────────────────► │","│ │ │ │ │","╰───────────────────────────────────────────────────────────────────────╯"," │ │ │"],"runs":[[[3,1],[1,3],[17,1],[1,3],[17,1],[1,3]],[[3,1],[1,2],[17,1],[1,2],[17,1],[1,2]],[[2,12],[13,27],[58,12]],[[1,12],[2,1],[1,2],[17,1],[1,2],[17,1],[1,2],[32,1],[1,12]],[[1,12],[2,1],[1,2],[1,1],[67,21],[1,12]],[[1,12],[2,1],[1,16],[1,17],[1,18],[1,19],[1,20],[32,21],[32,1],[1,12]],[[1,12],[2,1],[1,2],[17,1],[1,2],[17,1],[1,2],[32,1],[1,12]],[[73,12]],[[3,1],[1,2],[17,1],[1,2],[17,1],[1,2]]]}, + {"width":60,"source":"sequenceDiagram\n box Services\n participant A\n participant B\n participant C\n Note over A,C: this note text runs far outside of the group container boundary\n end","height":7,"lines":["╭─ Services ──────────────────────────────────────────────────────────╮","│ A B C │","│ │ │ │ │","│ │ │ │ │","│ this note text runs far outside of the group container boundary │","│ │ │ │ │","╰─────────────────────────────────────────────────────────────────────╯"],"runs":[[[71,12]],[[1,12],[16,1],[1,3],[17,1],[1,3],[17,1],[1,3],[16,1],[1,12]],[[1,12],[16,1],[1,2],[17,1],[1,2],[17,1],[1,2],[16,1],[1,12]],[[1,12],[16,1],[1,2],[17,1],[1,2],[17,1],[1,2],[16,1],[1,12]],[[1,12],[1,1],[67,26],[1,1],[1,12]],[[1,12],[16,1],[1,2],[17,1],[1,2],[17,1],[1,2],[16,1],[1,12]],[[71,12]]]}, + {"width":60,"source":"sequenceDiagram\n participant A\n participant B\n participant C\n alt lookup\n Note over A,C: this non adjacent note is deliberately much wider than the frame\n end","height":9,"lines":[" A B C"," │ │ │","╭─ alt: lookup ──────────────────────────────────────────────────────╮","│ │ │ │ │","│ │ │ │ │","│ this non adjacent note is deliberately much wider than the frame │","│ │ │ │ │","╰────────────────────────────────────────────────────────────────────╯"," │ │ │"],"runs":[[[17,1],[1,3],[17,1],[1,3],[17,1],[1,3]],[[17,1],[1,2],[17,1],[1,2],[17,1],[1,2]],[[2,12],[13,27],[55,12]],[[1,12],[16,1],[1,2],[17,1],[1,2],[17,1],[1,2],[15,1],[1,12]],[[1,12],[16,1],[1,2],[17,1],[1,2],[17,1],[1,2],[15,1],[1,12]],[[1,12],[68,26],[1,12]],[[1,12],[16,1],[1,2],[17,1],[1,2],[17,1],[1,2],[15,1],[1,12]],[[70,12]],[[17,1],[1,2],[17,1],[1,2],[17,1],[1,2]]]}, + {"width":60,"source":"sequenceDiagram\n participant A\n participant B\n alt outer\n loop inner heading wider than outer frame and participant span\n A->>B: x\n end\n end","height":12,"lines":[" A B"," │ │","╭─ alt: outer ──────────────────────────────────────────────────────────╮","│ │ │ │","│╭─ ↻ loop: inner heading wider than outer frame and participant span ─╮│","││ │ │ ││","││ ├────── x ────────► ││","││ │ │ ││","│╰─────────────────────────────────────────────────────────────────────╯│","│ │ │ │","╰───────────────────────────────────────────────────────────────────────╯"," │ │"],"runs":[[[3,1],[1,3],[17,1],[1,3]],[[3,1],[1,2],[17,1],[1,2]],[[2,12],[12,27],[59,12]],[[1,12],[2,1],[1,2],[17,1],[1,2],[50,1],[1,12]],[[3,12],[67,27],[3,12]],[[2,12],[1,1],[1,2],[17,1],[1,2],[49,1],[2,12]],[[2,12],[1,1],[1,16],[1,17],[1,18],[1,19],[1,20],[14,21],[49,1],[2,12]],[[2,12],[1,1],[1,2],[17,1],[1,2],[49,1],[2,12]],[[73,12]],[[1,12],[2,1],[1,2],[17,1],[1,2],[50,1],[1,12]],[[73,12]],[[3,1],[1,2],[17,1],[1,2]]]}, + {"width":60,"source":"sequenceDiagram\n box G\n participant A\n end\n participant B as External\n A->>A: this self-loop extends underneath the external participant header","height":8,"lines":["╭─ G ────────────────────────────────────────────────────────────────────╮","│ A │ External","│ │ │ │","│ ├────────────────────────────────────────────────────────────────────╮ │ │","│ │ this self-loop extends underneath the external participant header │ │ │","│ ◄────────────────────────────────────────────────────────────────────╯ │ │","│ │ │ │","╰────────────────────────────────────────────────────────────────────────╯"],"runs":[[[74,12]],[[1,12],[1,1],[1,3],[70,1],[1,12],[2,1],[8,3]],[[1,12],[1,1],[1,2],[70,1],[1,12],[6,1],[1,2]],[[1,12],[1,1],[1,16],[1,17],[1,18],[1,19],[1,20],[65,21],[1,1],[1,12],[6,1],[1,2]],[[1,12],[1,1],[1,2],[1,1],[65,21],[2,1],[1,21],[1,1],[1,12],[6,1],[1,2]],[[1,12],[1,1],[70,21],[1,1],[1,12],[6,1],[1,2]],[[1,12],[1,1],[1,2],[70,1],[1,12],[6,1],[1,2]],[[74,12]]]}, + {"width":60,"source":"sequenceDiagram\n box First very wide group heading\n participant A\n end\n box Second very wide group heading\n participant B\n end\n A->>B: hi","height":6,"lines":["╭─ First very wide group heading ─╮ ╭─ Second very wide group heading ─╮","│ A │ │ B │","│ │ │ │ │ │","│ ├─────────────── hi ─────────────────► │","│ │ │ │ │ │","╰─────────────────────────────────╯ ╰──────────────────────────────────╯"],"runs":[[[35,12],[2,1],[36,12]],[[1,12],[16,1],[1,3],[16,1],[1,12],[2,1],[1,12],[16,1],[1,3],[17,1],[1,12]],[[1,12],[16,1],[1,2],[16,1],[1,12],[2,1],[1,12],[16,1],[1,2],[17,1],[1,12]],[[1,12],[16,1],[1,16],[1,17],[1,18],[1,19],[1,20],[33,21],[17,1],[1,12]],[[1,12],[16,1],[1,2],[16,1],[1,12],[2,1],[1,12],[16,1],[1,2],[17,1],[1,12]],[[35,12],[2,1],[36,12]]]}, + {"width":60,"source":"\nsequenceDiagram\n participant Browser\n box Backend\n participant API\n participant Cache\n participant DB\n end\n Browser->>API: GET /users/42\n API->>Cache: get user:42\n","height":8,"lines":[" ╭─ Backend ──────────────────────────────╮","Browser │ API Cache DB │"," │ │ │ │ │ │"," ├─ GET /users/42 ──► │ │ │"," │ │ │ │ │ │"," │ │ ├─ get user:42 ───► │ │"," │ │ │ │ │ │"," ╰────────────────────────────────────────╯"],"runs":[[[19,1],[42,12]],[[7,3],[12,1],[1,12],[1,1],[3,3],[14,1],[5,3],[14,1],[2,3],[1,1],[1,12]],[[3,1],[1,2],[15,1],[1,12],[2,1],[1,2],[17,1],[1,2],[17,1],[1,2],[1,1],[1,12]],[[3,1],[1,16],[1,17],[18,21],[17,1],[1,2],[17,1],[1,2],[1,1],[1,12]],[[3,1],[1,2],[15,1],[1,12],[2,1],[1,2],[17,1],[1,2],[17,1],[1,2],[1,1],[1,12]],[[3,1],[1,2],[15,1],[1,12],[2,1],[1,16],[1,17],[17,21],[17,1],[1,2],[1,1],[1,12]],[[3,1],[1,2],[15,1],[1,12],[2,1],[1,2],[17,1],[1,2],[17,1],[1,2],[1,1],[1,12]],[[19,1],[42,12]]]}, + {"width":60,"source":"\nsequenceDiagram\n participant Browser\n box Backend\n participant API\n end\n Browser->>API: GET /users/42\n","height":6,"lines":[" ╭─ Backend ─╮","Browser │ API │"," │ │ │ │"," ├─ GET /users/42 ──► │"," │ │ │ │"," ╰───────────╯"],"runs":[[[16,1],[13,12]],[[7,3],[9,1],[1,12],[4,1],[3,3],[4,1],[1,12]],[[3,1],[1,2],[12,1],[1,12],[5,1],[1,2],[5,1],[1,12]],[[3,1],[1,16],[1,17],[18,21],[5,1],[1,12]],[[3,1],[1,2],[12,1],[1,12],[5,1],[1,2],[5,1],[1,12]],[[16,1],[13,12]]]}, + {"width":60,"source":"sequenceDiagram\n box Backend\n participant A\n participant B\n A->>B: request\n end","height":6,"lines":["╭─ Backend ───────────╮","│ A B │","│ │ │ │","│ ├─── request ─────► │","│ │ │ │","╰─────────────────────╯"],"runs":[[[23,12]],[[1,12],[1,1],[1,3],[17,1],[1,3],[1,1],[1,12]],[[1,12],[1,1],[1,2],[17,1],[1,2],[1,1],[1,12]],[[1,12],[1,1],[1,16],[1,17],[1,18],[1,19],[15,21],[1,1],[1,12]],[[1,12],[1,1],[1,2],[17,1],[1,2],[1,1],[1,12]],[[23,12]]]}, + {"width":60,"source":"\nsequenceDiagram\n participant Service\n Service->>Service: Check Permissions\n","height":6,"lines":["Service"," │"," ├────────────────────╮"," │ Check Permissions │"," ◄────────────────────╯"," │"],"runs":[[[7,3]],[[3,1],[1,2]],[[3,1],[1,16],[1,17],[1,18],[1,19],[1,20],[17,21]],[[3,1],[1,2],[1,1],[17,21],[2,1],[1,21]],[[3,1],[22,21]],[[3,1],[1,2]]]}, + {"width":60,"source":"\nsequenceDiagram\n Browser->>Server: one\n Note over Browser,Server: phase\n Browser->>Server: two\n","height":9,"lines":["Browser Server"," │ │"," ├───── one ───────►"," │ │"," │ │"," │ phase │"," │ │"," ├───── two ───────►"," │ │"],"runs":[[[7,3],[11,1],[6,3]],[[3,1],[1,2],[17,1],[1,2]],[[3,1],[1,16],[1,17],[1,18],[1,19],[1,20],[14,21]],[[3,1],[1,2],[17,1],[1,2]],[[3,1],[1,2],[17,1],[1,2]],[[3,1],[1,2],[4,1],[9,26],[4,1],[1,2]],[[3,1],[1,2],[17,1],[1,2]],[[3,1],[1,16],[1,17],[1,18],[1,19],[1,20],[14,21]],[[3,1],[1,2],[17,1],[1,2]]]}, + {"width":60,"source":"\nsequenceDiagram\n Browser->>Server: POST connect-token<br/>· Basic (cached by browser)<br/>· X-OpenCode-Ticket: 1\n","height":7,"lines":["Browser Server"," │ │"," │ POST connect-token │"," │ · Basic (cached by browser) │"," │ · X-OpenCode-Ticket: 1 │"," ├────────────────────────────────►"," │ │"],"runs":[[[7,3],[26,1],[6,3]],[[3,1],[1,2],[32,1],[1,2]],[[3,1],[1,2],[1,1],[18,21],[13,1],[1,2]],[[3,1],[1,2],[1,1],[27,21],[4,1],[1,2]],[[3,1],[1,2],[1,1],[22,21],[9,1],[1,2]],[[3,1],[1,16],[1,17],[1,18],[1,19],[1,20],[29,21]],[[3,1],[1,2],[32,1],[1,2]]]}, + {"width":60,"source":"sequenceDiagram\n participant A\n participant B\n participant C\n A->>C: this message needs room past the final participant\n Note over A,C: this note also needs full horizontal room","height":8,"lines":[" A B C"," │ │ │"," │ this message needs room past the final participant"," ├───────────────────────────────────►"," │ │ │"," │ │ │"," this note also needs full horizontal room "," │ │ │"],"runs":[[[4,1],[1,3],[17,1],[1,3],[17,1],[1,3]],[[4,1],[1,2],[17,1],[1,2],[17,1],[1,2]],[[4,1],[1,2],[1,1],[50,21]],[[4,1],[1,16],[1,17],[1,18],[1,19],[1,20],[32,21]],[[4,1],[1,2],[17,1],[1,2],[17,1],[1,2]],[[4,1],[1,2],[17,1],[1,2],[17,1],[1,2]],[[45,26]],[[4,1],[1,2],[17,1],[1,2],[17,1],[1,2]]]}, + {"width":60,"source":"sequenceDiagram\n participant A\n participant B\n participant C\n Note right of A: a long note between the first two participants\n Note left of C: another long note between the final participants","height":8,"lines":[" A B C"," │ │ │"," │ │ │"," │ a long note between the first two participants │ │"," │ │ │"," │ │ │"," │ │ another long note between the final participants │"," │ │ │"],"runs":[[[1,1],[1,3],[53,1],[1,3],[55,1],[1,3]],[[1,1],[1,2],[53,1],[1,2],[55,1],[1,2]],[[1,1],[1,2],[53,1],[1,2],[55,1],[1,2]],[[1,1],[1,2],[1,1],[50,26],[2,1],[1,2],[55,1],[1,2]],[[1,1],[1,2],[53,1],[1,2],[55,1],[1,2]],[[1,1],[1,2],[53,1],[1,2],[55,1],[1,2]],[[1,1],[1,2],[53,1],[1,2],[1,1],[52,26],[2,1],[1,2]],[[1,1],[1,2],[53,1],[1,2],[55,1],[1,2]]]}, + {"width":60,"source":"sequenceDiagram\n box Backend\n participant Service\n Service->>Service: Check Permissions\n end","height":8,"lines":["╭─ Backend ─────────────────╮","│ Service │","│ │ │","│ ├────────────────────╮ │","│ │ Check Permissions │ │","│ ◄────────────────────╯ │","│ │ │","╰───────────────────────────╯"],"runs":[[[29,12]],[[1,12],[1,1],[7,3],[19,1],[1,12]],[[1,12],[4,1],[1,2],[22,1],[1,12]],[[1,12],[4,1],[1,16],[1,17],[1,18],[1,19],[1,20],[17,21],[1,1],[1,12]],[[1,12],[4,1],[1,2],[1,1],[17,21],[2,1],[1,21],[1,1],[1,12]],[[1,12],[4,1],[22,21],[1,1],[1,12]],[[1,12],[4,1],[1,2],[22,1],[1,12]],[[29,12]]]}, + {"width":60,"source":"sequenceDiagram\n box G\n participant A\n end\n participant B as External\n A->>A: this self-loop extends underneath the external participant header","height":8,"lines":["╭─ G ────────────────────────────────────────────────────────────────────╮","│ A │ External","│ │ │ │","│ ├────────────────────────────────────────────────────────────────────╮ │ │","│ │ this self-loop extends underneath the external participant header │ │ │","│ ◄────────────────────────────────────────────────────────────────────╯ │ │","│ │ │ │","╰────────────────────────────────────────────────────────────────────────╯"],"runs":[[[74,12]],[[1,12],[1,1],[1,3],[70,1],[1,12],[2,1],[8,3]],[[1,12],[1,1],[1,2],[70,1],[1,12],[6,1],[1,2]],[[1,12],[1,1],[1,16],[1,17],[1,18],[1,19],[1,20],[65,21],[1,1],[1,12],[6,1],[1,2]],[[1,12],[1,1],[1,2],[1,1],[65,21],[2,1],[1,21],[1,1],[1,12],[6,1],[1,2]],[[1,12],[1,1],[70,21],[1,1],[1,12],[6,1],[1,2]],[[1,12],[1,1],[1,2],[70,1],[1,12],[6,1],[1,2]],[[74,12]]]}, + {"width":60,"source":"sequenceDiagram\n box Tools\n participant Tool\n alt retry\n Note over Tool: directory instead?<br/>the WrongKind error carries the answer —<br/>branch to list, no extra round trip\n Note over Tool: first<br>second<br />third\n end\n end","height":18,"lines":["╭─ Tools ──────────────────────────────────────╮","│ Tool │","│ │ │","│╭─ alt: retry ───────────────────────────────╮│","││ │ ││","││ │ ││","││ directory instead? ││","││ the WrongKind error carries the answer — ││","││ branch to list, no extra round trip ││","││ │ ││","││ │ ││","││ first ││","││ second ││","││ third ││","││ │ ││","│╰────────────────────────────────────────────╯│","│ │ │","╰──────────────────────────────────────────────╯"],"runs":[[[48,12]],[[1,12],[21,1],[4,3],[21,1],[1,12]],[[1,12],[23,1],[1,2],[22,1],[1,12]],[[1,12],[2,12],[12,27],[32,12],[1,12]],[[1,12],[1,12],[22,1],[1,2],[21,1],[1,12],[1,12]],[[1,12],[1,12],[22,1],[1,2],[21,1],[1,12],[1,12]],[[1,12],[1,12],[44,26],[1,12],[1,12]],[[1,12],[1,12],[44,26],[1,12],[1,12]],[[1,12],[1,12],[44,26],[1,12],[1,12]],[[1,12],[1,12],[22,1],[1,2],[21,1],[1,12],[1,12]],[[1,12],[1,12],[22,1],[1,2],[21,1],[1,12],[1,12]],[[1,12],[1,12],[17,1],[10,26],[17,1],[1,12],[1,12]],[[1,12],[1,12],[17,1],[10,26],[17,1],[1,12],[1,12]],[[1,12],[1,12],[17,1],[10,26],[17,1],[1,12],[1,12]],[[1,12],[1,12],[22,1],[1,2],[21,1],[1,12],[1,12]],[[1,12],[46,12],[1,12]],[[1,12],[23,1],[1,2],[22,1],[1,12]],[[48,12]]]}, + {"width":60,"source":"sequenceDiagram\n A->>+B: request\n B-->>-A: response","height":6,"lines":[" A B"," │ │"," ├─── request ─────►"," │ ┃"," ◄─── response ────┤"," │ │"],"runs":[[[1,1],[1,3],[17,1],[1,3]],[[1,1],[1,2],[17,1],[1,2]],[[1,1],[1,16],[1,17],[1,18],[1,19],[15,21]],[[1,1],[1,2],[17,1],[1,2]],[[1,1],[14,22],[1,28],[1,29],[1,23],[1,24],[1,25]],[[1,1],[1,2],[17,1],[1,2]]]}, + {"width":60,"source":"sequenceDiagram\n A->>B: request\n activate B\n B-->>A: response\n deactivate B","height":6,"lines":[" A B"," │ │"," ├─── request ─────►"," │ ┃"," ◄─── response ────┤"," │ │"],"runs":[[[1,1],[1,3],[17,1],[1,3]],[[1,1],[1,2],[17,1],[1,2]],[[1,1],[1,16],[1,17],[1,18],[1,19],[15,21]],[[1,1],[1,2],[17,1],[1,2]],[[1,1],[14,22],[1,28],[1,29],[1,23],[1,24],[1,25]],[[1,1],[1,2],[17,1],[1,2]]]}, + {"width":60,"source":"sequenceDiagram\n participant A\n participant B\n A->>B: short<br/>a much longer line","height":6,"lines":[" A B"," │ │"," │ short │"," │ a much longer line │"," ├───────────────────────►"," │ │"],"runs":[[[1,1],[1,3],[23,1],[1,3]],[[1,1],[1,2],[23,1],[1,2]],[[1,1],[1,2],[1,1],[5,21],[17,1],[1,2]],[[1,1],[1,2],[1,1],[18,21],[4,1],[1,2]],[[1,1],[1,16],[1,17],[1,18],[1,19],[1,20],[20,21]],[[1,1],[1,2],[23,1],[1,2]]]}, + {"width":60,"source":"\nstateDiagram-v2\n %% request lifecycle\n direction LR\n [*] --> Idle\n Idle --> Loading: submit\n Loading --> Success: done\n Success --> [*]\n","height":27,"lines":[" ●"," │"," │"," │"," ▼"," ╭──────╮"," │ Idle │"," ╰───┬──╯"," │"," │ submit "," │"," ▼","╭─────────╮","│ Loading │","╰────┬────╯"," │"," │ done "," │"," ▼","╭─────────╮","│ Success │","╰────┬────╯"," │"," │"," │"," ▼"," ◎"],"runs":[[[5,1],[1,12]],[[5,1],[1,5]],[[5,1],[1,5]],[[5,1],[1,5]],[[5,1],[1,5]],[[1,1],[8,2]],[[1,1],[1,2],[6,3],[1,2]],[[1,1],[4,2],[1,30],[3,2]],[[5,1],[1,4]],[[5,1],[1,31],[8,10]],[[5,1],[1,5]],[[5,1],[1,5]],[[11,2]],[[1,2],[9,3],[1,2]],[[5,2],[1,30],[5,2]],[[5,1],[1,4]],[[5,1],[1,31],[6,10]],[[5,1],[1,5]],[[5,1],[1,5]],[[11,2]],[[1,2],[9,3],[1,2]],[[5,2],[1,30],[5,2]],[[5,1],[1,4]],[[5,1],[1,31]],[[5,1],[1,5]],[[5,1],[1,5]],[[5,1],[1,12]]]}, + {"width":60,"source":"\nstateDiagram-v2\n state \"Waiting<br/>for Payment\" as WaitingPayment\n [*] --> WaitingPayment\n","height":4,"lines":[" ╭─────────────╮"," │ Waiting │","●────────────▶│ for Payment │"," ╰─────────────╯"],"runs":[[[14,1],[15,2]],[[14,1],[1,2],[13,3],[1,2]],[[1,12],[13,5],[1,2],[13,3],[1,2]],[[14,1],[15,2]]]}, + {"width":60,"source":"stateDiagram-v2\n state \"Ready & waiting\" as Ready\n Ready --> Done: elapsed <3s\n note right of Done: result ≥ 1","height":3,"lines":["╭─────────────────╮ elapsed <3s ╭──────╮ ╔════════════╗","│ Ready & waiting ├────────────▶│ Done │════╣ result ≥ 1 ║","╰─────────────────╯ ╰──────╯ ╚════════════╝"],"runs":[[[19,2],[13,10],[8,2],[4,1],[14,0]],[[1,2],[17,3],[1,30],[1,4],[1,31],[11,5],[1,2],[6,3],[1,2],[1,0],[1,0],[1,0],[1,0],[1,0],[1,1],[10,32],[1,1],[1,0]],[[19,2],[13,1],[8,2],[4,1],[14,0]]]}, + {"width":60,"source":"\nstateDiagram-v2\n [*] --> Decision\n state Decision <<choice>>\n Decision --> Accepted: yes\n","height":3,"lines":[" yes ╭──────────╮","●────────────▶◆────────────▶│ Accepted │"," ╰──────────╯"],"runs":[[[18,1],[5,10],[5,1],[12,2]],[[1,12],[13,5],[1,12],[13,5],[1,2],[10,3],[1,2]],[[28,1],[12,2]]]}, + {"width":60,"source":"\nstateDiagram-v2\n state Authenticated {\n [*] --> Idle\n Idle --> Editing: open\n }\n note right of Editing\n Draft changes\n end note\n","height":19,"lines":["╭─ Authenticated ──────────────────╮","│ │","│ │ │","│ │ │","│ │ │","│ │ │","│ ▼ │","│ ╭──────╮ │","│ │ Idle │ │","│ ╰───┬──╯ │","│ │ │","│ │ open │","│ │ │","│ ▼ │","│ ╭─────────╮ ╔═══════════════╗ │","│ │ Editing │════╣ Draft changes ║ │","│ ╰─────────╯ ╚═══════════════╝ │","│ │","╰──────────────────────────────────╯"],"runs":[[[2,0],[15,0],[19,0]],[[1,0],[34,1],[1,0]],[[1,0],[6,1],[1,5],[27,1],[1,0]],[[1,0],[6,1],[1,5],[27,1],[1,0]],[[1,0],[6,1],[1,5],[27,1],[1,0]],[[1,0],[6,1],[1,5],[27,1],[1,0]],[[1,0],[6,1],[1,5],[27,1],[1,0]],[[1,0],[2,1],[8,2],[24,1],[1,0]],[[1,0],[2,1],[1,2],[6,3],[1,2],[24,1],[1,0]],[[1,0],[2,1],[4,2],[1,30],[3,2],[24,1],[1,0]],[[1,0],[6,1],[1,4],[27,1],[1,0]],[[1,0],[6,1],[1,31],[6,10],[21,1],[1,0]],[[1,0],[6,1],[1,5],[27,1],[1,0]],[[1,0],[6,1],[1,5],[27,1],[1,0]],[[1,0],[1,1],[11,2],[4,1],[17,0],[1,1],[1,0]],[[1,0],[1,1],[1,2],[9,3],[1,2],[1,0],[1,0],[1,0],[1,0],[1,0],[1,1],[13,32],[1,1],[1,0],[1,1],[1,0]],[[1,0],[1,1],[11,2],[4,1],[17,0],[1,1],[1,0]],[[1,0],[34,1],[1,0]],[[36,0]]]}, + {"width":60,"source":"\nstateDiagram-v2\n direction LR\n [*] --> Idle\n Idle --> Loading: submit\n Loading --> Success: done\n Success --> [*]\n","height":27,"lines":[" ●"," │"," │"," │"," ▼"," ╭──────╮"," │ Idle │"," ╰───┬──╯"," │"," │ submit "," │"," ▼","╭─────────╮","│ Loading │","╰────┬────╯"," │"," │ done "," │"," ▼","╭─────────╮","│ Success │","╰────┬────╯"," │"," │"," │"," ▼"," ◎"],"runs":[[[5,1],[1,12]],[[5,1],[1,5]],[[5,1],[1,5]],[[5,1],[1,5]],[[5,1],[1,5]],[[1,1],[8,2]],[[1,1],[1,2],[6,3],[1,2]],[[1,1],[4,2],[1,30],[3,2]],[[5,1],[1,4]],[[5,1],[1,31],[8,10]],[[5,1],[1,5]],[[5,1],[1,5]],[[11,2]],[[1,2],[9,3],[1,2]],[[5,2],[1,30],[5,2]],[[5,1],[1,4]],[[5,1],[1,31],[6,10]],[[5,1],[1,5]],[[5,1],[1,5]],[[11,2]],[[1,2],[9,3],[1,2]],[[5,2],[1,30],[5,2]],[[5,1],[1,4]],[[5,1],[1,31]],[[5,1],[1,5]],[[5,1],[1,5]],[[5,1],[1,12]]]}, + {"width":60,"source":"stateDiagram-v2\n direction RL\n A --> B","height":3,"lines":["╭───╮ ╭───╮","│ B │◀────────────┤ A │","╰───╯ ╰───╯"],"runs":[[[5,2],[13,1],[5,2]],[[1,2],[3,3],[1,2],[11,5],[1,31],[1,4],[1,30],[3,3],[1,2]],[[5,2],[13,1],[5,2]]]}, + {"width":60,"source":"stateDiagram-v2\n direction BT\n A --> B","height":10,"lines":["╭───╮","│ B │","╰───╯"," ▲"," │"," │"," │","╭─┴─╮","│ A │","╰───╯"],"runs":[[[5,2]],[[1,2],[3,3],[1,2]],[[5,2]],[[2,1],[1,5]],[[2,1],[1,5]],[[2,1],[1,31]],[[2,1],[1,4]],[[2,2],[1,30],[2,2]],[[1,2],[3,3],[1,2]],[[5,2]]]}, + {"width":60,"source":"stateDiagram-v2\n direction LR\n A --> B","height":3,"lines":["╭───╮ ╭───╮","│ A ├────────────▶│ B │","╰───╯ ╰───╯"],"runs":[[[5,2],[13,1],[5,2]],[[1,2],[3,3],[1,30],[1,4],[1,31],[11,5],[1,2],[3,3],[1,2]],[[5,2],[13,1],[5,2]]]}, + {"width":60,"source":"stateDiagram-v2\n direction RL\n A --> B: reopen after a very detailed reviewer comment","height":3,"lines":["╭───╮ reopen after a very detailed reviewer comment ╭───╮","│ B │◀──────────────────────────────────────────────┤ A │","╰───╯ ╰───╯"],"runs":[[[5,2],[47,10],[5,2]],[[1,2],[3,3],[1,2],[45,5],[1,31],[1,4],[1,30],[3,3],[1,2]],[[5,2],[47,1],[5,2]]]}, + {"width":60,"source":"stateDiagram-v2\n direction LR\n state \"界\" as Wide","height":3,"lines":["╭────╮","│ 界 │","╰────╯"],"runs":[[[6,2]],[[1,2],[3,3],[1,2]],[[6,2]]]}, + {"width":60,"source":"stateDiagram-v2\n direction LR\n A --> B: first<br/>second","height":4,"lines":[" first ","╭───╮ second ╭───╮","│ A ├────────────▶│ B │","╰───╯ ╰───╯"],"runs":[[[7,1],[7,10]],[[5,2],[2,1],[8,10],[3,1],[5,2]],[[1,2],[3,3],[1,30],[1,4],[1,31],[11,5],[1,2],[3,3],[1,2]],[[5,2],[13,1],[5,2]]]}, + {"width":60,"source":"stateDiagram-v2\n [*] --> Running: create from base image\n Running --> Dormant: 📸 suspend hook fires<br/>(WE must call it on idle)\n Dormant --> Running: wake from snapshot image<br/>(apt installs restored!)\n Running --> Lost: 💥 sandbox dies BEFORE hook fires<br/>(crash, our bug, race)\n Lost --> Running: wake from LAST snapshot<br/>⚠ files since then GONE","height":19,"lines":[" ●"," │"," │ create from base image "," │"," ▼","╭─────────╮","│ Running │◀──────────────────────────╮ wake from snapshot image ","╰────┬────╯│ │ (apt installs restored!) "," │ │📸 suspend hook fires │"," │ │(WE must call it on idle) │ wake from LAST snapshot "," ├─────┼────────────────╮ │ ⚠ files since then GONE "," │ │ │ │"," ▼ │ ▼ │","╭─────────╮│ ╭──────╮ │","│ Dormant ├╯ │ Lost ├──────╯","╰─────────╯ ╰──────╯",""," 💥 sandbox dies BEFORE hook fires "," (crash, our bug, race) "],"runs":[[[5,1],[1,12]],[[5,1],[1,5]],[[5,1],[1,5],[24,10]],[[5,1],[1,5]],[[5,1],[1,5]],[[11,2]],[[1,2],[9,3],[1,2],[28,5],[26,10]],[[5,2],[1,30],[5,2],[1,5],[26,1],[1,5],[26,10]],[[5,1],[1,4],[5,1],[1,5],[21,10],[4,1],[1,5]],[[5,1],[1,31],[5,1],[1,5],[26,10],[1,5],[25,10]],[[5,1],[24,5],[9,1],[1,5],[25,10]],[[5,1],[1,5],[5,1],[1,5],[16,1],[1,5],[9,1],[1,5]],[[5,1],[1,5],[5,1],[1,5],[16,1],[1,5],[9,1],[1,5]],[[11,2],[1,31],[12,1],[8,2],[6,1],[1,5]],[[1,2],[9,3],[1,30],[1,4],[12,1],[1,2],[6,3],[1,30],[1,4],[1,31],[5,5]],[[11,2],[13,1],[8,2]],[],[[6,1],[34,10]],[[6,1],[24,10]]]}, + {"width":60,"source":"\nstateDiagram-v2\n direction TB\n [*] --> Cart\n Cart --> Payment: checkout\n Payment --> Complete\n","height":22,"lines":[" ●"," │"," │"," │"," ▼"," ╭──────╮"," │ Cart │"," ╰───┬──╯"," │"," │ checkout "," │"," ▼"," ╭─────────╮"," │ Payment │"," ╰────┬────╯"," │"," │"," │"," ▼","╭──────────╮","│ Complete │","╰──────────╯"],"runs":[[[6,1],[1,12]],[[6,1],[1,5]],[[6,1],[1,5]],[[6,1],[1,5]],[[6,1],[1,5]],[[2,1],[8,2]],[[2,1],[1,2],[6,3],[1,2]],[[2,1],[4,2],[1,30],[3,2]],[[6,1],[1,4]],[[6,1],[1,31],[10,10]],[[6,1],[1,5]],[[6,1],[1,5]],[[1,1],[11,2]],[[1,1],[1,2],[9,3],[1,2]],[[1,1],[5,2],[1,30],[5,2]],[[6,1],[1,4]],[[6,1],[1,31]],[[6,1],[1,5]],[[6,1],[1,5]],[[12,2]],[[1,2],[10,3],[1,2]],[[12,2]]]}, + {"width":60,"source":"\nstateDiagram-v2\n direction LR\n [*] --> Idle\n Idle --> Loading: submit\n Loading --> Success: 200 OK\n Loading --> Error: timeout\n Error --> Loading: retry\n Success --> [*]\n","height":27,"lines":[" ●"," │"," │"," │"," ▼"," ╭──────╮"," │ Idle │"," ╰───┬──╯"," │"," │ submit "," │"," ▼","╭─────────╮","│ Loading │◀────────────────────────╮","╰────┬────╯ │"," │ 200 OK │"," ├──────────────────────╮ │ retry "," │ │ │"," ▼ timeout ▼ │","╭─────────╮ ╭───────╮ │","│ Success │ │ Error ├───╯","╰────┬────╯ ╰───────╯"," │"," │"," │"," ▼"," ◎"],"runs":[[[5,1],[1,12]],[[5,1],[1,5]],[[5,1],[1,5]],[[5,1],[1,5]],[[5,1],[1,5]],[[1,1],[8,2]],[[1,1],[1,2],[6,3],[1,2]],[[1,1],[4,2],[1,30],[3,2]],[[5,1],[1,4]],[[5,1],[1,31],[8,10]],[[5,1],[1,5]],[[5,1],[1,5]],[[11,2]],[[1,2],[9,3],[1,2],[26,5]],[[5,2],[1,30],[5,2],[25,1],[1,5]],[[5,1],[1,4],[8,10],[22,1],[1,5]],[[5,1],[1,31],[23,5],[7,1],[1,5],[7,10]],[[5,1],[1,5],[22,1],[1,5],[7,1],[1,5]],[[5,1],[1,5],[9,10],[13,1],[1,5],[7,1],[1,5]],[[11,2],[13,1],[9,2],[3,1],[1,5]],[[1,2],[9,3],[1,2],[13,1],[1,2],[7,3],[1,30],[1,4],[1,31],[2,5]],[[5,2],[1,30],[5,2],[13,1],[9,2]],[[5,1],[1,4]],[[5,1],[1,31]],[[5,1],[1,5]],[[5,1],[1,5]],[[5,1],[1,12]]]}, + {"width":60,"source":"stateDiagram-v2\n [*] --> Waiting\n state \"Waiting for surface and workspace\" as Waiting\n state \"Surface bound only\" as Surface\n state \"Workspace bound only\" as Workspace\n state \"Ready with queued input\" as Ready\n state \"Agent activity requested\" as Active\n Waiting --> Surface: InteractionSurfaceBound\n Waiting --> Workspace: WorkspaceBound\n Surface --> Ready: WorkspaceBound\n Workspace --> Ready: InteractionSurfaceBound\n Ready --> Active: AgentActivityRequested","height":29,"lines":[" ●"," │"," │"," │"," ▼","╭───────────────────────────────────╮","│ Waiting for surface and workspace │","╰─────────────────┬─────────────────╯"," │ InteractionSurfaceBound "," ╭──────┴────────────────────────────╮"," │ │"," ▼ WorkspaceBound ▼","╭────────────────────╮ ╭──────────────────────╮","│ Surface bound only │ │ Workspace bound only │","╰──────────┬─────────╯ ╰───────────┬──────────╯"," │ WorkspaceBound │"," ╰──────┬────────────────────────────╯"," │"," ▼ InteractionSurfaceBound "," ╭─────────────────────────╮"," │ Ready with queued input │"," ╰────────────┬────────────╯"," │"," │ AgentActivityRequested "," │"," ▼"," ╭──────────────────────────╮"," │ Agent activity requested │"," ╰──────────────────────────╯"],"runs":[[[18,1],[1,12]],[[18,1],[1,5]],[[18,1],[1,5]],[[18,1],[1,5]],[[18,1],[1,5]],[[37,2]],[[1,2],[35,3],[1,2]],[[18,2],[1,30],[18,2]],[[18,1],[1,4],[2,1],[25,10]],[[11,1],[7,5],[1,31],[29,5]],[[11,1],[1,5],[35,1],[1,5]],[[11,1],[1,5],[7,1],[16,10],[12,1],[1,5]],[[22,2],[13,1],[24,2]],[[1,2],[20,3],[1,2],[13,1],[1,2],[22,3],[1,2]],[[11,2],[1,30],[10,2],[13,1],[12,2],[1,30],[11,2]],[[11,1],[1,4],[16,10],[19,1],[1,4]],[[11,1],[1,31],[35,5],[1,31]],[[18,1],[1,5]],[[18,1],[1,5],[2,1],[25,10]],[[5,1],[27,2]],[[5,1],[1,2],[25,3],[1,2]],[[5,1],[13,2],[1,30],[13,2]],[[18,1],[1,4]],[[18,1],[1,31],[24,10]],[[18,1],[1,5]],[[18,1],[1,5]],[[4,1],[28,2]],[[4,1],[1,2],[26,3],[1,2]],[[4,1],[28,2]]]}, + {"width":60,"source":"\nstateDiagram-v2\n direction LR\n [*] --> Idle\n Idle --> Loading: submit\n Loading --> Success: 200 OK\n Loading --> Error: timeout\n note right of Loading : waiting for response\n Error --> Loading: retry\n Success --> [*]\n","height":27,"lines":[" ●"," │"," │"," │"," ▼"," ╭──────╮"," │ Idle │"," ╰───┬──╯"," │"," │ submit "," │","╭─────▼","│╭─────────╮ ╔══════════════════════╗","││ Loading │════╣ waiting for response ║","│╰────┬────╯ ╚══════════════════════╝","╰────╮│ 200 OK "," │├──────────────────────╮"," ╰┤ │"," ╰─────╮timeout retry ▼"," ╭─────────╮│ ╭───────╮"," │ Success │╰────────────┤ Error │"," ╰────┬────╯ ╰───────╯"," │"," │"," │"," ▼"," ◎"],"runs":[[[6,1],[1,12]],[[6,1],[1,5]],[[6,1],[1,5]],[[6,1],[1,5]],[[6,1],[1,5]],[[2,1],[8,2]],[[2,1],[1,2],[6,3],[1,2]],[[2,1],[4,2],[1,30],[3,2]],[[6,1],[1,4]],[[6,1],[1,31],[8,10]],[[6,1],[1,5]],[[7,5]],[[1,5],[11,2],[4,1],[24,0]],[[1,5],[1,2],[9,3],[1,2],[1,0],[1,0],[1,0],[1,0],[1,0],[1,1],[20,32],[1,1],[1,0]],[[1,5],[5,2],[1,30],[5,2],[4,1],[24,0]],[[6,5],[1,4],[8,10]],[[5,1],[1,5],[1,31],[23,5]],[[5,1],[2,5],[22,1],[1,5]],[[6,1],[7,5],[8,10],[1,1],[7,10],[1,5]],[[1,1],[11,2],[1,5],[12,1],[9,2]],[[1,1],[1,2],[9,3],[1,2],[11,5],[1,31],[1,4],[1,30],[7,3],[1,2]],[[1,1],[5,2],[1,30],[5,2],[13,1],[9,2]],[[6,1],[1,4]],[[6,1],[1,31]],[[6,1],[1,5]],[[6,1],[1,5]],[[6,1],[1,12]]]}, + {"width":60,"source":"stateDiagram-v2\n [*] --> Processing\n\n state Processing {\n [*] --> Validate\n Validate --> Decision\n state Decision <<choice>>\n Decision --> Accepted: valid\n Decision --> Rejected: invalid\n Accepted --> [*]\n Rejected --> [*]\n }\n\n note right of Processing\n Validation and routing happen\n inside this composite state.\n end note\n\n Processing --> Complete\n Complete --> [*]","height":34,"lines":[" ●"," │"," │","╭─ Processing ──────────────────────────╮","│ ▼ │","│ ╭──────────╮ │","│ │ Validate │ │","│ ╰─────┬────╯ │","│ │ │","│ │ │","│ │ │","│ ▼ │ ╔═══════════════════════════════╗","│ ◆ │ ║ Validation and routing happen ║","│ │ │════╣ inside this composite state. ║","│ │ valid │ ╚═══════════════════════════════╝","│ │ invalid │","│ ├────────────────────────╮ │","│ │ │ │","│ ▼ ▼ │","│ ╭──────────╮ ╭──────────╮ │","│ │ Accepted │ │ Rejected │ │","│ ╰─────┬────╯ ╰─────┬────╯ │","│ │ │ │","╰───────├────────────────────────╯──────╯"," │"," ▼"," ╭──────────╮"," │ Complete │"," ╰─────┬────╯"," │"," │"," │"," ▼"," ◎"],"runs":[[[8,1],[1,12]],[[8,1],[1,5]],[[8,1],[1,5]],[[2,0],[12,0],[27,0]],[[1,0],[7,1],[1,5],[31,1],[1,0]],[[1,0],[1,1],[12,2],[26,1],[1,0]],[[1,0],[1,1],[1,2],[10,3],[1,2],[26,1],[1,0]],[[1,0],[1,1],[6,2],[1,30],[5,2],[26,1],[1,0]],[[1,0],[7,1],[1,4],[31,1],[1,0]],[[1,0],[7,1],[1,31],[31,1],[1,0]],[[1,0],[7,1],[1,5],[31,1],[1,0]],[[1,0],[7,1],[1,5],[31,1],[1,0],[4,1],[33,0]],[[1,0],[7,1],[1,12],[31,1],[1,0],[4,1],[1,0],[1,1],[29,32],[1,1],[1,0]],[[1,0],[7,1],[1,5],[31,1],[1,0],[1,0],[1,0],[1,0],[1,0],[1,0],[1,1],[28,32],[2,1],[1,0]],[[1,0],[7,1],[1,5],[7,10],[24,1],[1,0],[4,1],[33,0]],[[1,0],[7,1],[1,5],[7,1],[9,10],[15,1],[1,0]],[[1,0],[7,1],[26,5],[6,1],[1,0]],[[1,0],[7,1],[1,5],[24,1],[1,5],[6,1],[1,0]],[[1,0],[7,1],[1,5],[24,1],[1,5],[6,1],[1,0]],[[1,0],[1,1],[12,2],[13,1],[12,2],[1,1],[1,0]],[[1,0],[1,1],[1,2],[10,3],[1,2],[13,1],[1,2],[10,3],[1,2],[1,1],[1,0]],[[1,0],[1,1],[6,2],[1,30],[5,2],[13,1],[6,2],[1,30],[5,2],[1,1],[1,0]],[[1,0],[7,1],[1,4],[24,1],[1,4],[6,1],[1,0]],[[8,0],[25,5],[1,31],[7,0]],[[8,1],[1,5]],[[8,1],[1,5]],[[2,1],[12,2]],[[2,1],[1,2],[10,3],[1,2]],[[2,1],[6,2],[1,30],[5,2]],[[8,1],[1,4]],[[8,1],[1,31]],[[8,1],[1,5]],[[8,1],[1,5]],[[8,1],[1,12]]]}, + {"width":60,"source":"\nstateDiagram-v2\n direction LR\n [*] --> Idle\n Idle --> Loading: submit\n","height":3,"lines":[" ╭──────╮ submit ╭─────────╮","●────────────▶│ Idle ├────────────▶│ Loading │"," ╰──────╯ ╰─────────╯"],"runs":[[[14,1],[8,2],[2,1],[8,10],[3,1],[11,2]],[[1,12],[13,5],[1,2],[6,3],[1,30],[1,4],[1,31],[11,5],[1,2],[9,3],[1,2]],[[14,1],[8,2],[13,1],[11,2]]]}, + {"width":60,"source":"\nstateDiagram-v2\n direction LR\n state Decision <<choice>>\n [*] --> Editing\n Editing --> Editing: type\n Editing --> Decision: submit\n Decision --> Saved: ok\n Decision --> Error: fail\n Error --> Editing: retry\n","height":22,"lines":[" ●"," │"," │"," │"," ▼","╭─────────╮","│ Editing │◀──────────────────────╮","╰──┬─┬────╯ │"," │ │ ▲ type │"," ╰─┼──╯ │"," │ submit │"," ▼ │"," ◆ │"," │ │ retry "," │ │"," ok │ fail │"," ╭┴────────────────────╮ │"," │ │ │"," ▼ ▼ │","╭───────╮ ╭───────╮ │","│ Saved │ │ Error ├───╯","╰───────╯ ╰───────╯"],"runs":[[[5,1],[1,12]],[[5,1],[1,5]],[[5,1],[1,5]],[[5,1],[1,5]],[[5,1],[1,5]],[[11,2]],[[1,2],[9,3],[1,2],[24,5]],[[3,2],[1,30],[1,2],[1,30],[5,2],[23,1],[1,5]],[[3,1],[1,4],[1,1],[1,4],[2,1],[1,5],[6,10],[19,1],[1,5]],[[3,1],[1,31],[1,5],[1,31],[3,5],[25,1],[1,5]],[[5,1],[1,5],[8,10],[20,1],[1,5]],[[5,1],[1,5],[28,1],[1,5]],[[5,1],[1,12],[28,1],[1,5]],[[5,1],[1,5],[28,1],[1,5],[7,10]],[[5,1],[1,5],[28,1],[1,5]],[[4,10],[1,1],[1,5],[6,1],[6,10],[16,1],[1,5]],[[4,1],[23,5],[7,1],[1,5]],[[4,1],[1,5],[21,1],[1,5],[7,1],[1,5]],[[4,1],[1,5],[21,1],[1,5],[7,1],[1,5]],[[9,2],[13,1],[9,2],[3,1],[1,5]],[[1,2],[7,3],[1,2],[13,1],[1,2],[7,3],[1,30],[1,4],[1,31],[2,5]],[[9,2],[13,1],[9,2]]]}, + {"width":60,"source":"stateDiagram-v2\n direction LR\n state Decision <<choice>>\n [*] --> Fork\n Fork --> Upper\n Fork --> Lower\n Upper --> Decision\n Lower --> Decision\n Decision --> Done\n Done --> [*]","height":34,"lines":[" ●"," │"," │"," │"," ▼","╭──────╮","│ Fork │","╰───┬──╯"," │"," ├─────────────────────╮"," │ │"," ▼ ▼","╭───────╮ ╭───────╮","│ Upper │ │ Lower │","╰───┬───╯ ╰───┬───╯"," │ │"," ├─────────────────────╯"," │"," ▼"," ◆"," │"," │"," │"," │"," │"," ▼","╭──────╮","│ Done │","╰───┬──╯"," │"," │"," │"," ▼"," ◎"],"runs":[[[4,1],[1,12]],[[4,1],[1,5]],[[4,1],[1,5]],[[4,1],[1,5]],[[4,1],[1,5]],[[8,2]],[[1,2],[6,3],[1,2]],[[4,2],[1,30],[3,2]],[[4,1],[1,4]],[[4,1],[1,31],[22,5]],[[4,1],[1,5],[21,1],[1,5]],[[4,1],[1,5],[21,1],[1,5]],[[9,2],[13,1],[9,2]],[[1,2],[7,3],[1,2],[13,1],[1,2],[7,3],[1,2]],[[4,2],[1,30],[4,2],[13,1],[4,2],[1,30],[4,2]],[[4,1],[1,4],[21,1],[1,4]],[[4,1],[22,5],[1,31]],[[4,1],[1,5]],[[4,1],[1,5]],[[4,1],[1,12]],[[4,1],[1,5]],[[4,1],[1,5]],[[4,1],[1,5]],[[4,1],[1,5]],[[4,1],[1,5]],[[4,1],[1,5]],[[8,2]],[[1,2],[6,3],[1,2]],[[4,2],[1,30],[3,2]],[[4,1],[1,4]],[[4,1],[1,31]],[[4,1],[1,5]],[[4,1],[1,5]],[[4,1],[1,12]]]}, + {"width":60,"source":"stateDiagram-v2\n direction TB\n Working --> Working: retry","height":5,"lines":["╭─────────╮","│ Working │","╰──┬──────╯"," │ ▲ retry "," ╰────╯"],"runs":[[[11,2]],[[1,2],[9,3],[1,2]],[[3,2],[1,30],[7,2]],[[3,1],[1,4],[4,1],[1,5],[7,10]],[[3,1],[1,31],[5,5]]]}, + {"width":60,"source":"stateDiagram-v2\n direction LR\n state Decision <<choice>>\n Decision --> Decision: reconsider","height":3,"lines":["◆───╮","▲ │ reconsider ","╰───╯"],"runs":[[[1,12],[4,5]],[[1,5],[3,1],[1,5],[12,10]],[[5,5]]]}, + {"width":60,"source":"stateDiagram-v2\n direction LR\n A --> B: first\n A --> B: second","height":9,"lines":["╭───╮ ╭───╮","│ A ├────────────▶│ B │","╰─┬─╯ ╰───╯"," │ first ▲"," │ │"," │ │"," ╰──────────────────╯",""," second "],"runs":[[[5,2],[13,1],[5,2]],[[1,2],[3,3],[1,30],[1,4],[1,31],[11,5],[1,2],[3,3],[1,2]],[[2,2],[1,30],[2,2],[13,1],[5,2]],[[2,1],[1,4],[4,1],[7,10],[7,1],[1,5]],[[2,1],[1,31],[18,1],[1,5]],[[2,1],[1,5],[18,1],[1,5]],[[2,1],[20,5]],[],[[7,1],[8,10]]]}, + {"width":60,"source":"stateDiagram-v2\n direction TB\n A --> B: first\n A --> B: second","height":10,"lines":["╭───╮ first ","│ A ├───╮","╰─┬─╯ │"," │ │"," │ │ second "," │ │"," ▼ │","╭───╮ │","│ B │◀──╯","╰───╯"],"runs":[[[5,2],[7,10]],[[1,2],[3,3],[1,30],[1,4],[1,31],[2,5]],[[2,2],[1,30],[2,2],[3,1],[1,5]],[[2,1],[1,4],[5,1],[1,5]],[[2,1],[1,31],[5,1],[1,5],[8,10]],[[2,1],[1,5],[5,1],[1,5]],[[2,1],[1,5],[5,1],[1,5]],[[5,2],[3,1],[1,5]],[[1,2],[3,3],[1,2],[4,5]],[[5,2]]]}, + {"width":60,"source":"stateDiagram-v2\n direction TD\n state \"Node S13_0\" as S13_0\n state \"Node S13_1\" as S13_1\n state \"Node S13_2\" as S13_2\n state \"Node S13_3\" as S13_3\n state \"Node S13_4\" as S13_4\n S13_0 --> S13_1: state_edge_13_0\n S13_1 --> S13_2: state_edge_13_1\n S13_2 --> S13_3: state_edge_13_2\n S13_3 --> S13_4: state_edge_13_3\n S13_0 --> S13_2: state_edge_13_4\n S13_4 --> S13_1: state_edge_13_5\n S13_2 --> S13_0: state_edge_13_6\n S13_1 --> S13_2: state_edge_13_7\n S13_3 --> S13_2: state_edge_13_8\n S13_3 --> S13_0: state_edge_13_9\n S13_0 --> S13_0: state_edge_13_10\n note left of S13_0: state_note_13_0","height":24,"lines":["╔═════════════════╗ ╭────────────╮state_edge_13_4 ","║ state_note_13_0 ╠════│ Node S13_0 │◀────────────────────────────────┬─────╮","╚═════════════════╝ ╰───┬──┬─────╯ │ │"," state_edge_13_10 │ │ ▲ state_edge_13_1 state_edge_13_6 │ │"," ╰──┼──┴───────────────────────╮ │ │"," │ state_edge_13_0 │ │ │"," ╭───────▼ ▼ │ │"," │╭────────────╮ ╭────────────╮ │ │"," ││ Node S13_1 ├────────────▶│ Node S13_2 ├◀─────┴──╮ │ state_edge_13_9 "," │╰──────┬─────╯ ╰──────┬─────╯ │ │"," │ ╰──────────────────────────┼────◀ │ │"," │ ╭──────────────────────────╯ │ │"," │ │ │ │"," │ ▼ state_edge_13_2 state_edge_13_8 │ │"," │╭────────────╮ │ │"," ││ Node S13_3 ├────────────────────────────────────┴──╯"," │╰──────┬─────╯ state_edge_13_7 "," ╰───────┤"," │ state_edge_13_3 "," │"," ╰──────╮ state_edge_13_5 "," ╭────────────╮│"," │ Node S13_4 ├╯"," ╰────────────╯"],"runs":[[[19,0],[4,1],[14,2],[16,10]],[[1,0],[1,1],[15,32],[1,1],[1,0],[1,0],[1,0],[1,0],[1,0],[1,2],[12,3],[1,2],[40,5]],[[19,0],[4,1],[4,2],[1,30],[2,2],[1,30],[6,2],[33,1],[1,5],[5,1],[1,5]],[[8,1],[18,10],[1,1],[1,4],[2,1],[1,4],[2,1],[1,5],[3,1],[33,10],[1,5],[5,1],[1,5]],[[27,1],[1,31],[30,5],[12,1],[1,5],[5,1],[1,5]],[[30,1],[1,5],[17,10],[9,1],[1,5],[12,1],[1,5],[5,1],[1,5]],[[22,1],[9,5],[26,1],[1,5],[12,1],[1,5],[5,1],[1,5]],[[22,1],[1,5],[14,2],[13,1],[14,2],[6,1],[1,5],[5,1],[1,5]],[[22,1],[1,5],[1,2],[12,3],[1,30],[1,4],[1,31],[11,5],[1,2],[12,3],[1,30],[10,5],[2,1],[1,5],[17,10]],[[22,1],[1,5],[7,2],[1,30],[6,2],[13,1],[7,2],[1,30],[6,2],[9,1],[1,5],[2,1],[1,5]],[[22,1],[1,5],[7,1],[1,4],[1,31],[31,5],[10,1],[1,5],[2,1],[1,5]],[[22,1],[1,5],[7,1],[27,5],[1,31],[15,1],[1,5],[2,1],[1,5]],[[22,1],[1,5],[7,1],[1,5],[42,1],[1,5],[2,1],[1,5]],[[22,1],[1,5],[7,1],[1,5],[8,1],[34,10],[1,5],[2,1],[1,5]],[[22,1],[1,5],[14,2],[36,1],[1,5],[2,1],[1,5]],[[22,1],[1,5],[1,2],[12,3],[1,30],[1,4],[1,31],[38,5]],[[22,1],[1,5],[7,2],[1,30],[6,2],[17,10]],[[22,1],[9,5]],[[30,1],[1,5],[17,10]],[[30,1],[1,5]],[[30,1],[8,5],[17,10]],[[23,1],[14,2],[1,31]],[[23,1],[1,2],[12,3],[1,30],[1,4]],[[23,1],[14,2]]]}, + {"width":60,"source":"stateDiagram-v2\n direction TD\n state \"Node S21_0\" as S21_0\n state \"Node S21_1\" as S21_1\n state \"Node S21_2\" as S21_2\n state \"Node S21_3\" as S21_3\n state \"Node S21_4\" as S21_4\n state \"Node S21_5\" as S21_5\n S21_0 --> S21_1: state_edge_21_0\n S21_1 --> S21_2: state_edge_21_1\n S21_2 --> S21_3: state_edge_21_2\n S21_3 --> S21_4: state_edge_21_3\n S21_4 --> S21_5: state_edge_21_4\n S21_4 --> S21_5: state_edge_21_5\n S21_2 --> S21_4: state_edge_21_6\n S21_3 --> S21_1: state_edge_21_7\n note right of S21_1: state_note_21_0\n note left of S21_0: state_note_21_1\n note left of S21_4: state_note_21_2","height":35,"lines":["╔═════════════════╗ ╭────────────╮","║ state_note_21_1 ╠════│ Node S21_0 │","╚═════════════════╝ ╰──────┬─────╯"," │"," │ state_edge_21_0 "," │"," ▼"," ╭────────────╮ ╔═════════════════╗"," ▶│ Node S21_1 │════╣ state_note_21_0 ║"," │╰──────┬─────╯ ╚═════════════════╝"," │ │"," │ │ state_edge_21_1 "," │ │"," │ ▼"," │╭────────────╮ state_edge_21_3 "," state_edge_21_7 ││ Node S21_2 │"," │╰──────┬─────╯ state_edge_21_6 "," │ │ state_edge_21_2 "," │ ├──────────────────────────╮"," │ │ ╭───────────────────┼──────╮"," │ ▼ │ ╔══ ▼ │"," │╭────────────╮│ ║ ╭──────┴─────╮│"," ╰┤ Node S21_3 ├┤ ║ │ Node S21_4 ├╯ state_edge_21_5 "," ╰────────────╯│ ║ ╰────────────╯"," │ ║"," state_edge_21_4 │ ║"," │ ║"," │ ║"," ╭────────────╮│ ║"," │ Node S21_5 │◀ ║"," ╰────────────╯ ║"," ║"," ╔═════════════════╗ ║"," ║ state_note_21_2 ╠═╝"," ╚═════════════════╝"],"runs":[[[19,0],[4,1],[14,2]],[[1,0],[1,1],[15,32],[1,1],[1,0],[1,0],[1,0],[1,0],[1,0],[1,2],[12,3],[1,2]],[[19,0],[4,1],[7,2],[1,30],[6,2]],[[30,1],[1,4]],[[30,1],[1,31],[17,10]],[[30,1],[1,5]],[[30,1],[1,5]],[[23,1],[14,2],[4,1],[19,0]],[[22,1],[1,5],[1,2],[12,3],[1,2],[1,0],[1,0],[1,0],[1,0],[1,0],[1,1],[15,32],[1,1],[1,0]],[[22,1],[1,5],[7,2],[1,30],[6,2],[4,1],[19,0]],[[22,1],[1,5],[7,1],[1,4]],[[22,1],[1,5],[7,1],[1,31],[17,10]],[[22,1],[1,5],[7,1],[1,5]],[[22,1],[1,5],[7,1],[1,5]],[[22,1],[1,5],[14,2],[17,10]],[[4,1],[17,10],[1,1],[1,5],[1,2],[12,3],[1,2]],[[22,1],[1,5],[7,2],[1,30],[6,2],[10,1],[17,10]],[[22,1],[1,5],[7,1],[1,4],[17,10]],[[22,1],[1,5],[7,1],[1,31],[27,5]],[[22,1],[1,5],[7,1],[1,5],[6,1],[28,5]],[[22,1],[1,5],[7,1],[1,5],[6,1],[1,5],[9,1],[3,0],[7,1],[1,5],[6,1],[1,5]],[[22,1],[1,31],[14,2],[1,5],[9,1],[1,0],[2,1],[7,2],[1,30],[6,2],[1,31]],[[22,1],[1,4],[1,30],[12,3],[1,30],[1,5],[9,1],[1,0],[2,1],[1,2],[12,3],[1,30],[1,4],[17,10]],[[23,1],[14,2],[1,5],[9,1],[1,0],[2,1],[14,2]],[[37,1],[1,5],[9,1],[1,0]],[[19,1],[17,10],[1,1],[1,5],[9,1],[1,0]],[[37,1],[1,5],[9,1],[1,0]],[[37,1],[1,5],[9,1],[1,0]],[[23,1],[14,2],[1,5],[9,1],[1,0]],[[23,1],[1,2],[12,3],[1,2],[1,5],[9,1],[1,0]],[[23,1],[14,2],[10,1],[1,0]],[[47,1],[1,0]],[[27,1],[19,0],[1,1],[1,0]],[[27,1],[1,0],[1,1],[15,32],[1,1],[1,0],[1,0],[1,0]],[[27,1],[19,0]]]}, + {"width":60,"source":"stateDiagram-v2\n direction TB\n state \"Node S27_0\" as S27_0\n state \"Node S27_1\" as S27_1\n state \"Node S27_2\" as S27_2\n state \"Node S27_3\" as S27_3\n state \"Node S27_4\" as S27_4\n state \"Node S27_5\" as S27_5\n S27_0 --> S27_1: state_edge_27_0\n S27_1 --> S27_2: state_edge_27_1\n S27_2 --> S27_3: state_edge_27_2\n S27_3 --> S27_4: state_edge_27_3\n S27_4 --> S27_5: state_edge_27_4\n S27_1 --> S27_0: state_edge_27_5\n S27_5 --> S27_1: state_edge_27_6\n S27_2 --> S27_1: state_edge_27_7\n S27_1 --> S27_5: state_edge_27_8\n note left of S27_5: state_note_27_0\n note right of S27_0: state_note_27_1\n note left of S27_3: state_note_27_2","height":38,"lines":[" ╭────────────╮ ╔═════════════════╗"," ▶│ Node S27_0 │════╣ state_note_27_1 ║"," │╰──────┬─────╯ ╚═════════════════╝"," │ │"," state_edge_27_5 │ │ state_edge_27_0 "," │ │"," │ ▼"," │╭────────────╮"," ▶┤ Node S27_1 ├◀───────────────────────────────────╮"," │╰──────┬─────╯│state_edge_27_8 │"," │ │ │ │"," state_edge_27_7 │ ╰──────┼───────────────────╮ │ state_edge_27_6 "," ╭─╯ ╰───────────────────┼╮ │"," │╔════════════════════════════════════╰─────╮ │"," │║ ╭────────────╮ ╭────────────╮│ │"," │║ │ Node S27_2 │◀ │ Node S27_5 ├───┬─────╯"," │║ ╰──────┬─────╯│ ╰────────────╯│ │"," │║╭───────┤ ╰──────────────────────────╯ │"," │║│ │ state_edge_27_2 │"," │║│ │ state_edge_27_1 │"," │║│ ▼ │"," │║│╭────────────╮ ╔═════════════════╗"," │║││ Node S27_3 │══════════════════════════════╣ state_note_27_2 ║"," │║│╰──────┬─────╯ ╚═════════════════╝"," │║│ │ │ state_edge_27_4 "," │║│ │ state_edge_27_3 │"," │║│ │ │"," │║│ ▼ │"," │║│╭────────────╮ │"," │║││ Node S27_4 ├──────────────────────────────╯"," │║│╰────────────╯"," │║│"," │║│","╭────────────────────╯║│","│╔═════════════════╗ ║│","│║ state_note_27_0 ╠══╝│","│╚═════════════════╝ │","╰──────────────────────╯"],"runs":[[[24,1],[14,2],[4,1],[19,0]],[[23,1],[1,5],[1,2],[12,3],[1,2],[1,0],[1,0],[1,0],[1,0],[1,0],[1,1],[15,32],[1,1],[1,0]],[[23,1],[1,5],[7,2],[1,30],[6,2],[4,1],[19,0]],[[23,1],[1,5],[7,1],[1,4]],[[5,1],[17,10],[1,1],[1,5],[7,1],[1,31],[17,10]],[[23,1],[1,5],[7,1],[1,5]],[[23,1],[1,5],[7,1],[1,5]],[[23,1],[1,31],[14,2]],[[23,1],[1,5],[1,30],[12,3],[1,30],[37,5]],[[23,1],[1,5],[7,2],[1,30],[6,2],[1,31],[16,10],[19,1],[1,5]],[[23,1],[1,5],[7,1],[1,4],[6,1],[1,5],[35,1],[1,5]],[[5,1],[17,10],[1,1],[1,5],[7,1],[1,31],[27,5],[15,1],[1,5],[17,10]],[[21,1],[3,5],[14,1],[22,5],[14,1],[1,5]],[[21,1],[1,5],[37,0],[7,5],[8,1],[1,5]],[[21,1],[1,5],[1,0],[1,1],[14,2],[13,1],[14,2],[1,5],[8,1],[1,5]],[[21,1],[1,5],[1,0],[1,1],[1,2],[12,3],[1,2],[1,5],[12,1],[1,2],[12,3],[1,30],[1,4],[1,31],[8,5]],[[21,1],[1,5],[1,0],[1,1],[7,2],[1,30],[6,2],[1,5],[12,1],[14,2],[1,5],[2,1],[1,5]],[[21,1],[1,5],[1,0],[7,5],[1,31],[1,4],[6,1],[28,5],[2,1],[1,5]],[[21,1],[1,5],[1,0],[1,5],[7,1],[1,31],[17,10],[19,1],[1,5]],[[21,1],[1,5],[1,0],[1,5],[7,1],[1,5],[16,1],[17,10],[3,1],[1,5]],[[21,1],[1,5],[1,0],[1,5],[7,1],[1,5],[36,1],[1,5]],[[21,1],[1,5],[1,0],[1,5],[14,2],[30,1],[19,0]],[[21,1],[1,5],[1,0],[1,5],[1,2],[12,3],[1,2],[27,0],[1,0],[1,0],[1,0],[1,0],[1,1],[15,32],[1,1],[1,0]],[[21,1],[1,5],[1,0],[1,5],[7,2],[1,30],[6,2],[30,1],[19,0]],[[21,1],[1,5],[1,0],[1,5],[7,1],[1,4],[36,1],[1,5],[17,10]],[[21,1],[1,5],[1,0],[1,5],[7,1],[1,31],[17,10],[19,1],[1,5]],[[21,1],[1,5],[1,0],[1,5],[7,1],[1,5],[36,1],[1,5]],[[21,1],[1,5],[1,0],[1,5],[7,1],[1,5],[36,1],[1,5]],[[21,1],[1,5],[1,0],[1,5],[14,2],[30,1],[1,5]],[[21,1],[1,5],[1,0],[1,5],[1,2],[12,3],[1,30],[1,4],[1,31],[29,5]],[[21,1],[1,5],[1,0],[1,5],[14,2]],[[21,1],[1,5],[1,0],[1,5]],[[21,1],[1,5],[1,0],[1,5]],[[22,5],[1,0],[1,5]],[[1,5],[19,0],[2,1],[1,0],[1,5]],[[1,5],[1,0],[1,1],[15,32],[1,1],[1,0],[1,0],[1,0],[1,0],[1,5]],[[1,5],[19,0],[3,1],[1,5]],[[24,5]]]}, + {"width":60,"source":"stateDiagram-v2\n direction TD\n state \"Node S33_0\" as S33_0\n state \"Node S33_1\" as S33_1\n state \"Node S33_2\" as S33_2\n state \"Node S33_3\" as S33_3\n state \"Node S33_4\" as S33_4\n state \"Node S33_5\" as S33_5\n state \"Node S33_6\" as S33_6\n S33_0 --> S33_1: state_edge_33_0\n S33_1 --> S33_2: state_edge_33_1\n S33_2 --> S33_3: state_edge_33_2\n S33_3 --> S33_4: state_edge_33_3\n S33_4 --> S33_5: state_edge_33_4\n S33_5 --> S33_6: state_edge_33_5\n S33_6 --> S33_4: state_edge_33_6\n S33_2 --> S33_4: state_edge_33_7\n S33_3 --> S33_3: state_edge_33_8\n note left of S33_2: state_note_33_0\n note left of S33_6: state_note_33_1","height":38,"lines":[" ╭────────────╮"," │ Node S33_0 │"," ╰──────┬─────╯"," │"," │ state_edge_33_0 "," │"," ▼"," ╭────────────╮"," │ Node S33_1 │"," ╰──────┬─────╯"," │"," │ state_edge_33_1 "," │"," ▼"," ╔═════════════════╗ ╭────────────╮"," ║ state_note_33_0 ╠════│ Node S33_2 │"," ╚═════════════════╝ ╰──────┬─────╯ state_edge_33_7 "," │ state_edge_33_2 "," ├──────────────────────────╮"," │ │"," ▼ state_edge_33_3 ▼"," ╭────────────╮ ╭────────────╮"," │ Node S33_3 ├────────────▶│ Node S33_4 │◀──╮"," ╰───┬────────╯ ╰──────┬─────╯ │"," state_edge_33_8 ╰─────◀ state_edge_33_4 │ │"," ╭──────────────────────────╯ │"," │ │"," ▼ │"," ╭────────────╮ │"," │ Node S33_5 │ │ state_edge_33_6 "," ╰──────┬─────╯ │"," │ │"," │ state_edge_33_5 │"," │ │"," ▼ │","╔═════════════════╗ ╭────────────╮ │","║ state_note_33_1 ╠═══════════════════════════│ Node S33_6 ├──────────────────────────────╯","╚═════════════════╝ ╰────────────╯"],"runs":[[[46,1],[14,2]],[[46,1],[1,2],[12,3],[1,2]],[[46,1],[7,2],[1,30],[6,2]],[[53,1],[1,4]],[[53,1],[1,31],[17,10]],[[53,1],[1,5]],[[53,1],[1,5]],[[46,1],[14,2]],[[46,1],[1,2],[12,3],[1,2]],[[46,1],[7,2],[1,30],[6,2]],[[53,1],[1,4]],[[53,1],[1,31],[17,10]],[[53,1],[1,5]],[[53,1],[1,5]],[[23,1],[19,0],[4,1],[14,2]],[[23,1],[1,0],[1,1],[15,32],[1,1],[1,0],[1,0],[1,0],[1,0],[1,0],[1,2],[12,3],[1,2]],[[23,1],[19,0],[4,1],[7,2],[1,30],[6,2],[10,1],[17,10]],[[53,1],[1,4],[17,10]],[[53,1],[1,31],[27,5]],[[53,1],[1,5],[26,1],[1,5]],[[53,1],[1,5],[6,1],[17,10],[3,1],[1,5]],[[46,1],[14,2],[13,1],[14,2]],[[46,1],[1,2],[12,3],[1,30],[1,4],[1,31],[11,5],[1,2],[12,3],[1,2],[4,5]],[[46,1],[4,2],[1,30],[9,2],[13,1],[7,2],[1,30],[6,2],[3,1],[1,5]],[[33,1],[17,10],[1,4],[1,31],[5,5],[5,1],[17,10],[1,1],[1,4],[9,1],[1,5]],[[53,1],[27,5],[1,31],[9,1],[1,5]],[[53,1],[1,5],[36,1],[1,5]],[[53,1],[1,5],[36,1],[1,5]],[[46,1],[14,2],[30,1],[1,5]],[[46,1],[1,2],[12,3],[1,2],[30,1],[1,5],[17,10]],[[46,1],[7,2],[1,30],[6,2],[30,1],[1,5]],[[53,1],[1,4],[36,1],[1,5]],[[53,1],[1,31],[17,10],[19,1],[1,5]],[[53,1],[1,5],[36,1],[1,5]],[[53,1],[1,5],[36,1],[1,5]],[[19,0],[27,1],[14,2],[30,1],[1,5]],[[1,0],[1,1],[15,32],[1,1],[1,0],[1,0],[1,0],[1,0],[24,0],[1,2],[12,3],[1,30],[1,4],[1,31],[29,5]],[[19,0],[27,1],[14,2]]]}, + {"width":60,"source":"stateDiagram-v2\n direction RL\n state \"Node S237_0\" as S237_0\n state \"Node S237_1\" as S237_1\n state \"Node S237_2\" as S237_2\n state \"Node S237_3\" as S237_3\n state \"Node S237_4\" as S237_4\n state \"Node S237_5\" as S237_5\n S237_0 --> S237_1: state_edge_237_0\n S237_1 --> S237_2: state_edge_237_1\n S237_2 --> S237_3: state_edge_237_2\n S237_3 --> S237_4: state_edge_237_3\n S237_4 --> S237_5: state_edge_237_4\n S237_1 --> S237_5: state_edge_237_5\n S237_4 --> S237_5: state_edge_237_6\n S237_4 --> S237_0: state_edge_237_7\n S237_0 --> S237_4: state_edge_237_8\n note right of S237_1: state_note_237_0\n note left of S237_5: state_note_237_1\n note right of S237_2: state_note_237_2","height":29,"lines":[" ╔══════════════════╗"," ║ state_note_237_1 ╠═══╗"," ╚══════════════════╝ ║"," ║state_edge_237_5 "," ╭─────────────╮ ║"," │ Node S237_3 │ ║ ╭─────────────────────────╮"," ╰──────┬──────╯ ║ │ ╔══════════════════╗│"," │ ║ │ ╔═╣ state_note_237_2 ║│"," │ state_edge_237_2 ║ │ ║ ╚══════════════════╝│"," │ ║ │ ║ │","╭───────┤ state_edge_237_1 ║ ▼ ╚═══╗ ╭──────────────╯","│╭──────┴──────╮ ║╭─────────────╮╚═╗│","││ Node S237_2 │ ║│ Node S237_5 │ ║│ state_edge_237_6 ","│╰─────────────╯ ╰─────────────╯╔═╝│","│ ▲ ═══════════════════╗ ╔═══╝╭─╯","│ │ ║ ║╭──┬╯","│ │ state_edge_237_0 ╚════╝│ │ state_edge_237_4 ","│ ├────────────────────────────────╯ │","│╭──────┴──────╮ ╭─────────────╮│","││ Node S237_1 │║ │ Node S237_4 ├┤","│╰─────────────╯║ ╰─────────────╯│","│ ▲ ║ ▲ │ state_edge_237_7 ","│ │ ║state_edge_237_8 │ │","│ │ ║ ├───╮ │ state_edge_237_3 ","│ ├───────║───╔══════════════════╗│ │","│╭──────┴──────╮╚═══╣ state_note_237_0 ║│ │","││ Node S237_0 │◀ ╚══════════════════╝│ │","│╰─────────────╯╰───────────────────┬───┴───╯","╰───────────────────────────────────╯"],"runs":[[[5,1],[20,0]],[[5,1],[1,0],[1,1],[16,32],[1,1],[1,0],[1,0],[1,0],[1,0],[1,0]],[[5,1],[20,0],[3,1],[1,0]],[[28,1],[1,0],[17,10]],[[1,1],[15,2],[12,1],[1,0]],[[1,1],[1,2],[13,3],[1,2],[12,1],[1,0],[7,1],[27,5]],[[1,1],[7,2],[1,30],[7,2],[12,1],[1,0],[7,1],[1,5],[5,1],[20,0],[1,5]],[[8,1],[1,4],[19,1],[1,0],[7,1],[1,5],[3,1],[1,0],[1,0],[1,0],[1,1],[16,32],[1,1],[1,0],[1,5]],[[8,1],[1,31],[18,10],[1,1],[1,0],[7,1],[1,5],[3,1],[1,0],[1,1],[20,0],[1,5]],[[8,1],[1,5],[19,1],[1,0],[7,1],[1,5],[3,1],[1,0],[21,1],[1,5]],[[9,5],[18,10],[1,1],[1,0],[7,1],[1,5],[3,1],[5,0],[2,1],[16,5]],[[1,5],[7,2],[1,30],[7,2],[12,1],[1,0],[15,2],[3,0],[1,5]],[[1,5],[1,2],[13,3],[1,2],[12,1],[1,0],[1,2],[13,3],[1,2],[2,1],[1,0],[1,5],[3,1],[18,10]],[[1,5],[15,2],[13,1],[15,2],[3,0],[1,5]],[[1,5],[7,1],[1,5],[7,1],[20,0],[4,1],[5,0],[3,5]],[[1,5],[7,1],[1,5],[26,1],[1,0],[4,1],[1,0],[5,5]],[[1,5],[7,1],[1,31],[18,10],[8,1],[6,0],[1,5],[2,1],[1,5],[18,10]],[[1,5],[7,1],[1,4],[1,31],[32,5],[2,1],[1,5]],[[1,5],[7,2],[1,30],[7,2],[13,1],[15,2],[1,31]],[[1,5],[1,2],[13,3],[1,2],[1,0],[12,1],[1,2],[13,3],[1,30],[1,4]],[[1,5],[15,2],[1,0],[12,1],[15,2],[1,31]],[[1,5],[7,1],[1,5],[7,1],[1,0],[19,1],[1,5],[7,1],[1,5],[18,10]],[[1,5],[7,1],[1,5],[7,1],[1,0],[17,10],[2,1],[1,5],[7,1],[1,5]],[[1,5],[7,1],[1,31],[7,1],[1,0],[19,1],[5,5],[3,1],[1,5],[18,10]],[[1,5],[7,1],[1,4],[1,31],[6,5],[1,0],[3,5],[20,0],[1,5],[3,1],[1,5]],[[1,5],[7,2],[1,30],[7,2],[1,0],[1,0],[1,0],[1,0],[1,0],[1,1],[16,32],[1,1],[1,0],[1,5],[3,1],[1,5]],[[1,5],[1,2],[13,3],[1,2],[1,5],[3,1],[20,0],[1,5],[3,1],[1,5]],[[1,5],[15,2],[29,5]],[[37,5]]]}, + {"width":60,"source":"stateDiagram-v2\n direction TB\n A --> B: one\n A --> B: two\n A --> B: three\n A --> B: four","height":10,"lines":["╭───╮","│ A ├───┬──┬──╮","╰─┬─╯ │ │ │ three "," │ │ │ │"," │ one │ │ │ two "," │ │ │ │"," ▼ │ │ │ four ","╭───╮ │ │ │","│ B │◀──┴──┴──╯","╰───╯"],"runs":[[[5,2]],[[1,2],[3,3],[1,30],[1,4],[1,31],[8,5]],[[2,2],[1,30],[2,2],[3,1],[1,5],[2,1],[1,5],[2,1],[1,5],[7,10]],[[2,1],[1,4],[5,1],[1,5],[2,1],[1,5],[2,1],[1,5]],[[2,1],[1,31],[5,10],[1,5],[2,1],[1,5],[2,1],[1,5],[5,10]],[[2,1],[1,5],[5,1],[1,5],[2,1],[1,5],[2,1],[1,5]],[[2,1],[1,5],[5,1],[1,5],[2,1],[1,5],[2,1],[1,5],[6,10]],[[5,2],[3,1],[1,5],[2,1],[1,5],[2,1],[1,5]],[[1,2],[3,3],[1,2],[10,5]],[[5,2]]]}, + {"width":60,"source":"stateDiagram-v2\n direction TB\n A --> B: alpha route label that is deliberately long\n A --> B: beta route label that is deliberately long\n A --> B: gamma route label that is deliberately long","height":10,"lines":["╭───╮ alpha route label that is deliberately long ","│ A ├───┬──╮","╰─┬─╯ │ │ gamma route label that is deliberately long "," │ │ │"," │ │ │ beta route label that is deliberately long "," │ │ │"," ▼ │ │","╭───╮ │ │","│ B │◀──┴──╯","╰───╯"],"runs":[[[5,2],[45,10]],[[1,2],[3,3],[1,30],[1,4],[1,31],[5,5]],[[2,2],[1,30],[2,2],[3,1],[1,5],[2,1],[1,5],[45,10]],[[2,1],[1,4],[5,1],[1,5],[2,1],[1,5]],[[2,1],[1,31],[5,1],[1,5],[2,1],[1,5],[44,10]],[[2,1],[1,5],[5,1],[1,5],[2,1],[1,5]],[[2,1],[1,5],[5,1],[1,5],[2,1],[1,5]],[[5,2],[3,1],[1,5],[2,1],[1,5]],[[1,2],[3,3],[1,2],[7,5]],[[5,2]]]}, + {"width":60,"source":"stateDiagram-v2\n direction LR\n A --> A: one\n A --> A: two\n A --> A: three","height":11,"lines":["╭───╮","│ A │","╰─┬─╯"," │ ▲ ▲ ▲"," ├──╯ │ │"," │ │ │"," │ one │ │"," ├──────╯ │"," │ │"," │ two │ three "," ╰──────────╯"],"runs":[[[5,2]],[[1,2],[3,3],[1,2]],[[2,2],[1,30],[2,2]],[[2,1],[1,4],[2,1],[1,5],[3,1],[1,5],[3,1],[1,5]],[[2,1],[1,31],[3,5],[3,1],[1,5],[3,1],[1,5]],[[2,1],[1,5],[6,1],[1,5],[3,1],[1,5]],[[2,1],[1,5],[5,10],[1,1],[1,5],[3,1],[1,5]],[[2,1],[8,5],[3,1],[1,5]],[[2,1],[1,5],[10,1],[1,5]],[[2,1],[1,5],[4,1],[5,10],[1,1],[1,5],[7,10]],[[2,1],[12,5]]]}, + {"width":60,"source":"stateDiagram-v2\n direction LR\n state Outer {\n A --> A: loop-0\n A --> A: loop-1\n A --> A: loop-2\n }\n A --> C","height":14,"lines":["╭─ Outer ──────────────╮","│ │","│ ╭───╮ │ ╭───╮","│ │ A ├────────────────────▶│ C │","│ ╰─┬─╯ loop-0 │ ╰───╯","│ │ ▲ ▲ ▲ │","│ ├──╯ │ │ │","│ │ │ │ │","│ │ │ │ │","│ ├──────╯ │ │","│ │ │ │","│ │ loop-1 │ loop-2│","│ ╰──────────╯ │","╰──────────────────────╯"],"runs":[[[2,0],[7,0],[15,0]],[[1,0],[22,1],[1,0]],[[1,0],[1,1],[5,2],[16,1],[1,0],[4,1],[5,2]],[[1,0],[1,1],[1,2],[3,3],[1,30],[1,4],[1,31],[19,5],[1,2],[3,3],[1,2]],[[1,0],[1,1],[2,2],[1,30],[2,2],[1,1],[8,10],[7,1],[1,0],[4,1],[5,2]],[[1,0],[3,1],[1,4],[2,1],[1,5],[3,1],[1,5],[3,1],[1,5],[7,1],[1,0]],[[1,0],[3,1],[1,31],[3,5],[3,1],[1,5],[3,1],[1,5],[7,1],[1,0]],[[1,0],[3,1],[1,5],[6,1],[1,5],[3,1],[1,5],[7,1],[1,0]],[[1,0],[3,1],[1,5],[6,1],[1,5],[3,1],[1,5],[7,1],[1,0]],[[1,0],[3,1],[8,5],[3,1],[1,5],[7,1],[1,0]],[[1,0],[3,1],[1,5],[10,1],[1,5],[7,1],[1,0]],[[1,0],[3,1],[1,5],[2,1],[8,10],[1,5],[7,10],[1,0]],[[1,0],[3,1],[12,5],[7,1],[1,0]],[[24,0]]]}, + {"width":60,"source":"stateDiagram-v2\n direction TB\n state Outer {\n state Inner {\n A --> B: down\n B --> A: up\n note right of B: note\n }\n }","height":18,"lines":["╭─ Outer ───────────────╮","│ │","│ ╭─ Inner ───────────╮ │","│ │ │ │","│ │ ╭───╮ │ │","│ │▶│ A │ │ │","│ ││╰─┬─╯ │ │","│ ││ │ │ │","│ ││ │ down │ │","│ ││ │ │ │","│ ││ ▼ │ │","│ ││╭───╮ ╔══════╗ │ │","│ │╰┤ B │════╣ note ║ │ │","│ │ ╰───╯ ╚══════╝ │ │","│ │up │ │","│ ╰───────────────────╯ │","│ │","╰───────────────────────╯"],"runs":[[[2,0],[7,0],[16,0]],[[1,0],[23,1],[1,0]],[[1,0],[1,1],[2,0],[7,0],[12,0],[1,1],[1,0]],[[1,0],[1,1],[1,0],[19,1],[1,0],[1,1],[1,0]],[[1,0],[1,1],[1,0],[1,1],[5,2],[13,1],[1,0],[1,1],[1,0]],[[1,0],[1,1],[1,0],[1,5],[1,2],[3,3],[1,2],[13,1],[1,0],[1,1],[1,0]],[[1,0],[1,1],[1,0],[1,5],[2,2],[1,30],[2,2],[13,1],[1,0],[1,1],[1,0]],[[1,0],[1,1],[1,0],[1,5],[2,1],[1,4],[15,1],[1,0],[1,1],[1,0]],[[1,0],[1,1],[1,0],[1,5],[2,1],[1,31],[6,10],[9,1],[1,0],[1,1],[1,0]],[[1,0],[1,1],[1,0],[1,5],[2,1],[1,5],[15,1],[1,0],[1,1],[1,0]],[[1,0],[1,1],[1,0],[1,5],[2,1],[1,5],[15,1],[1,0],[1,1],[1,0]],[[1,0],[1,1],[1,0],[1,31],[5,2],[4,1],[8,0],[1,1],[1,0],[1,1],[1,0]],[[1,0],[1,1],[1,0],[1,4],[1,30],[3,3],[1,2],[1,0],[1,0],[1,0],[1,0],[1,0],[1,1],[4,32],[1,1],[1,0],[1,1],[1,0],[1,1],[1,0]],[[1,0],[1,1],[1,0],[1,1],[5,2],[4,1],[8,0],[1,1],[1,0],[1,1],[1,0]],[[1,0],[1,1],[1,0],[3,10],[16,1],[1,0],[1,1],[1,0]],[[1,0],[1,1],[21,0],[1,1],[1,0]],[[1,0],[23,1],[1,0]],[[25,0]]]}, + {"width":60,"source":"stateDiagram-v2\n direction LR\n state Session {\n [*] --> Open\n state Open {\n [*] --> Clean\n }\n }\n [*] --> Session: hydrate","height":11,"lines":[" ╭─ Session ─────╮"," │ │"," │ ╭─ Open ────╮ │"," │ │ │ │"," hydrate│ │ ╭───────╮ │ │","●────────────▶│ Clean │ │ │"," │ │ ╰───────╯ │ │"," │ │ │ │"," │ ╰───────────╯ │"," │ │"," ╰───────────────╯"],"runs":[[[10,1],[2,0],[9,0],[6,0]],[[10,1],[1,0],[15,1],[1,0]],[[10,1],[1,0],[1,1],[2,0],[6,0],[5,0],[1,1],[1,0]],[[10,1],[1,0],[1,1],[1,0],[11,1],[1,0],[1,1],[1,0]],[[2,1],[8,10],[1,0],[1,1],[1,0],[1,1],[9,2],[1,1],[1,0],[1,1],[1,0]],[[1,12],[13,5],[1,2],[7,3],[1,2],[1,1],[1,0],[1,1],[1,0]],[[10,1],[1,0],[1,1],[1,0],[1,1],[9,2],[1,1],[1,0],[1,1],[1,0]],[[10,1],[1,0],[1,1],[1,0],[11,1],[1,0],[1,1],[1,0]],[[10,1],[1,0],[1,1],[13,0],[1,1],[1,0]],[[10,1],[1,0],[15,1],[1,0]],[[10,1],[17,0]]]}, + {"width":60,"source":"stateDiagram-v2\n direction TB\n state One <<choice>>\n state Two <<choice>>\n state Three <<choice>>\n One --> Two: clockwise\n Two --> Three: clockwise\n Three --> One: clockwise","height":15,"lines":["◆◀──╮","│ │","│ │clockwise ","│ │","│ │","│ │","▼ │","◆ │ clockwise ","│ │","│ │clockwise ","│ │","│ │","│ │","▼ │","◆───╯"],"runs":[[[1,12],[4,5]],[[1,5],[3,1],[1,5]],[[1,5],[3,1],[1,5],[10,10]],[[1,5],[3,1],[1,5]],[[1,5],[3,1],[1,5]],[[1,5],[3,1],[1,5]],[[1,5],[3,1],[1,5]],[[1,12],[3,1],[1,5],[11,10]],[[1,5],[3,1],[1,5]],[[1,5],[3,1],[1,5],[10,10]],[[1,5],[3,1],[1,5]],[[1,5],[3,1],[1,5]],[[1,5],[3,1],[1,5]],[[1,5],[3,1],[1,5]],[[1,12],[4,5]]]}, + {"width":60,"source":"stateDiagram-v2\n direction LR\n A --> B: ab\n A --> C: ac\n A --> D: ad\n B --> A: ba\n B --> C: bc\n B --> D: bd\n C --> A: ca\n C --> B: cb\n C --> D: cd\n D --> A: da\n D --> B: db\n D --> C: dc","height":25,"lines":[" ╭───╮"," │ A │◀──────────────╮"," ╰┬──╯ad │"," ba ab │ ▲ da │"," ╭─────────────────┼─┼───────────────╮│"," ▼ ╭─────────────────┤ ca ▼│","╭──┴╮ bc ac ╭──┴╮ cd ╭─┴─╮","│ B ├────────────▶│ C ├────────────▶│ D │","╰─┬─╯ ╰─┬─╯ ╰─┬─╯"," ▲│ ▲│ │▲"," ││ ││ ││"," ││ cb ││ ││"," ├┼────────────────┼╯ ││"," ││ │ ││"," ││ │ ││"," ││ │ ││"," ││ │ ││"," ││ │ dc ││"," ││ ╰──────────────────┤│"," ││ ││"," ││ db ││"," ╰┼───────────────────────────────────╯│"," │ │"," │ bd │"," ╰────────────────────────────────────╯"],"runs":[[[18,1],[5,2]],[[18,1],[1,2],[3,3],[1,2],[16,5]],[[18,1],[1,2],[1,30],[3,2],[3,10],[12,1],[1,5]],[[10,1],[8,10],[1,1],[1,4],[1,1],[1,5],[3,1],[4,10],[9,1],[1,5]],[[1,1],[18,5],[1,31],[1,5],[1,31],[16,5],[1,31]],[[1,1],[1,5],[1,1],[1,4],[1,31],[16,5],[1,4],[1,1],[4,10],[10,1],[1,5],[1,4]],[[3,2],[1,30],[1,2],[4,1],[4,10],[1,1],[4,10],[3,2],[1,30],[1,2],[4,1],[4,10],[5,1],[2,2],[1,30],[2,2]],[[1,2],[3,3],[1,30],[1,4],[1,31],[11,5],[1,2],[3,3],[1,30],[1,4],[1,31],[11,5],[1,2],[3,3],[1,2]],[[2,2],[1,30],[2,2],[13,1],[2,2],[1,30],[2,2],[13,1],[2,2],[1,30],[2,2]],[[1,1],[1,5],[1,4],[16,1],[1,5],[1,4],[17,1],[1,4],[1,5]],[[1,1],[1,5],[1,31],[16,1],[1,5],[1,31],[17,1],[1,31],[1,5]],[[1,1],[2,5],[5,1],[4,10],[7,1],[2,5],[17,1],[2,5]],[[1,1],[20,5],[17,1],[2,5]],[[1,1],[2,5],[16,1],[1,5],[18,1],[2,5]],[[1,1],[2,5],[16,1],[1,5],[18,1],[2,5]],[[1,1],[2,5],[16,1],[1,5],[18,1],[2,5]],[[1,1],[2,5],[16,1],[1,5],[18,1],[2,5]],[[1,1],[2,5],[16,1],[1,5],[6,1],[4,10],[8,1],[2,5]],[[1,1],[2,5],[16,1],[21,5]],[[1,1],[2,5],[35,1],[2,5]],[[1,1],[2,5],[14,1],[4,10],[17,1],[2,5]],[[1,1],[39,5]],[[2,1],[1,5],[36,1],[1,5]],[[2,1],[1,5],[15,1],[4,10],[17,1],[1,5]],[[2,1],[38,5]]]}, + {"width":60,"source":"stateDiagram-v2\n direction TB\n state \"Alpha\" as A\n state \"Beta\" as B\n state \"Gamma store\" as C\n state \"Delta notifier\" as D\n A --> B\n A --> C\n A --> D\n B --> A: back\n B --> D: across","height":13,"lines":["╭───────╮","│ Alpha │◀","╰───┬───╯│"," │ │"," ├────┼──────────────────┬─────────────────────────────╮"," │ │ back │ │"," ▼ │ ▼ ▼","╭──────╮ │ ╭─────────────╮ ╭────────────────╮","│ Beta ├┬╯ │ Gamma store │ ▶│ Delta notifier │","╰──────╯│ ╰─────────────╯ │╰────────────────╯"," ╰───────────────────────────────────────╯",""," across "],"runs":[[[9,2]],[[1,2],[7,3],[1,2],[1,5]],[[4,2],[1,30],[4,2],[1,5]],[[4,1],[1,4],[4,1],[1,5]],[[4,1],[1,31],[54,5]],[[4,1],[1,5],[4,1],[1,5],[6,10],[12,1],[1,5],[29,1],[1,5]],[[4,1],[1,5],[4,1],[1,5],[18,1],[1,5],[29,1],[1,5]],[[8,2],[1,1],[1,5],[11,1],[15,2],[13,1],[18,2]],[[1,2],[6,3],[1,30],[1,4],[1,31],[11,1],[1,2],[13,3],[1,2],[12,1],[1,5],[1,2],[16,3],[1,2]],[[8,2],[1,31],[12,1],[15,2],[12,1],[1,5],[18,2]],[[8,1],[41,5]],[],[[24,1],[8,10]]]}, + {"width":60,"source":"stateDiagram-v2\n A --> B: first<br/>line two\n A --> B: second<br/>another line\n B --> A: return<br/>with details","height":11,"lines":[" return ","╭───╮ with details ","│ A ├───╮","╰┬──╯ │"," │ ▲ │ second "," │ │ │ another line "," ▼ │ │","╭──┴╮ │","│ B │◀──╯","╰───╯ first "," line two "],"runs":[[[5,1],[8,10]],[[5,2],[14,10]],[[1,2],[3,3],[1,30],[1,4],[1,31],[2,5]],[[1,2],[1,30],[3,2],[3,1],[1,5]],[[1,1],[1,4],[1,1],[1,5],[4,1],[1,5],[8,10]],[[1,1],[1,31],[1,1],[1,31],[4,1],[1,5],[14,10]],[[1,1],[1,5],[1,1],[1,4],[4,1],[1,5]],[[3,2],[1,30],[1,2],[3,1],[1,5]],[[1,2],[3,3],[1,2],[4,5]],[[5,2],[7,10]],[[5,1],[10,10]]]}, + {"width":60,"source":"stateDiagram-v2\n direction LR\n state Runtime {\n A --> B: advance\n B --> C: continue\n C --> D: finish\n C --> A: reset A\n D --> B: reset B\n }","height":28,"lines":["╭─ Runtime ──────────────╮","│ │","│ ╭───╮ │","│ │ A │◀─╮ │","│ ╰─┬─╯ │ │","│ │ │ │","│ │ │advance │","│ │ │ │","│ ▼ │ │","│ ╭───╮ │ │","│ │ B │◀ │ reset A │","│ ╰─┬─╯│ │ │","│ │ │ │ │","│ │ │ │continue │","│ │ │ │ │","│╭─────╯ │ │","││╭───╮ │ │","│││ C ├──╯ │","││╰─┬─╯ │","│╰──┼──╮ │","│ │ │finish │","│ │ │ │","│ ▼ │ reset B │","│ ╭───╮│ │","│ │ D ├╯ │","│ ╰───╯ │","│ │","╰────────────────────────╯"],"runs":[[[2,0],[9,0],[15,0]],[[1,0],[24,1],[1,0]],[[1,0],[1,1],[5,2],[18,1],[1,0]],[[1,0],[1,1],[1,2],[3,3],[1,2],[3,5],[15,1],[1,0]],[[1,0],[1,1],[2,2],[1,30],[2,2],[2,1],[1,5],[15,1],[1,0]],[[1,0],[3,1],[1,4],[4,1],[1,5],[15,1],[1,0]],[[1,0],[3,1],[1,31],[4,1],[1,5],[8,10],[7,1],[1,0]],[[1,0],[3,1],[1,5],[4,1],[1,5],[15,1],[1,0]],[[1,0],[3,1],[1,5],[4,1],[1,5],[15,1],[1,0]],[[1,0],[1,1],[5,2],[2,1],[1,5],[15,1],[1,0]],[[1,0],[1,1],[1,2],[3,3],[1,2],[1,5],[1,1],[1,5],[9,10],[6,1],[1,0]],[[1,0],[1,1],[2,2],[1,30],[2,2],[1,5],[1,1],[1,5],[15,1],[1,0]],[[1,0],[3,1],[1,4],[2,1],[1,5],[1,1],[1,5],[15,1],[1,0]],[[1,0],[3,1],[1,31],[2,1],[1,5],[1,1],[1,5],[9,10],[6,1],[1,0]],[[1,0],[3,1],[1,5],[2,1],[1,5],[1,1],[1,5],[15,1],[1,0]],[[1,0],[7,5],[1,1],[1,5],[15,1],[1,0]],[[1,0],[1,5],[5,2],[2,1],[1,5],[15,1],[1,0]],[[1,0],[1,5],[1,2],[3,3],[1,30],[1,4],[1,31],[1,5],[15,1],[1,0]],[[1,0],[1,5],[2,2],[1,30],[2,2],[18,1],[1,0]],[[1,0],[7,5],[17,1],[1,0]],[[1,0],[3,1],[1,31],[2,1],[1,5],[7,10],[10,1],[1,0]],[[1,0],[3,1],[1,5],[2,1],[1,5],[17,1],[1,0]],[[1,0],[3,1],[1,5],[2,1],[1,5],[9,10],[8,1],[1,0]],[[1,0],[1,1],[5,2],[1,31],[17,1],[1,0]],[[1,0],[1,1],[1,2],[3,3],[1,30],[1,4],[17,1],[1,0]],[[1,0],[1,1],[5,2],[18,1],[1,0]],[[1,0],[24,1],[1,0]],[[26,0]]]}, + {"width":60,"source":"stateDiagram-v2\n direction LR\n A --> B: advance\n B --> C: continue\n C --> D: finish\n C --> A: reset A\n D --> B: reset B\n note right of B : note beside B","height":24,"lines":[" ╭───╮"," │ A │"," ╰─┬─╯reset A "," ▲"," │ advance "," │","╭──╯ continue ","│╭───╮ ╔═══════════════╗","││ B │════╣─note beside B ║","│╰─┬─╯ ╚═══════════════╝","╰──┤ │"," │ │"," │ │"," │ │"," ╭─┴─╮ │"," │ C │ │ reset B "," ╰─┬─╯ │"," │ │"," │ finish │"," │ │"," ▼ │"," ╭───╮ │"," │ D ├──────╯"," ╰───╯"],"runs":[[[1,1],[5,2]],[[1,1],[1,2],[3,3],[1,2]],[[1,1],[2,2],[1,30],[2,2],[8,10]],[[3,1],[1,5]],[[3,1],[1,5],[9,10]],[[3,1],[1,5]],[[4,5],[10,10]],[[1,5],[5,2],[4,1],[17,0]],[[1,5],[1,2],[3,3],[1,2],[1,0],[1,0],[1,0],[1,0],[1,0],[1,5],[13,32],[1,1],[1,0]],[[1,5],[2,2],[1,30],[2,2],[4,1],[17,0]],[[4,5],[8,1],[1,5]],[[3,1],[1,5],[8,1],[1,5]],[[3,1],[1,31],[8,1],[1,5]],[[3,1],[1,4],[8,1],[1,5]],[[1,1],[2,2],[1,30],[2,2],[6,1],[1,5]],[[1,1],[1,2],[3,3],[1,2],[6,1],[1,5],[9,10]],[[1,1],[2,2],[1,30],[2,2],[6,1],[1,5]],[[3,1],[1,4],[8,1],[1,5]],[[3,1],[1,31],[8,10],[1,5]],[[3,1],[1,5],[8,1],[1,5]],[[3,1],[1,5],[8,1],[1,5]],[[1,1],[5,2],[6,1],[1,5]],[[1,1],[1,2],[3,3],[1,30],[1,4],[1,31],[5,5]],[[1,1],[5,2]]]}, + {"width":60,"source":"stateDiagram-v2\n direction LR\n A --> B: proceed only after validation\n note left of B: blocking note","height":5,"lines":[" ╭────────────────────────────────▼","╭───╮│ ╔═══════════════╗ ╭───╮","│ A ├╯ ║ blocking note ╠════│ B │","╰───╯ ╚═══════════════╝ ╰───╯"," proceed only after validation "],"runs":[[[5,1],[34,5]],[[5,2],[1,31],[9,1],[17,0],[4,1],[5,2]],[[1,2],[3,3],[1,30],[1,4],[9,1],[1,0],[1,1],[13,32],[1,1],[1,0],[1,0],[1,0],[1,0],[1,0],[1,2],[3,3],[1,2]],[[5,2],[10,1],[17,0],[4,1],[5,2]],[[5,1],[31,10]]]}, + {"width":60,"source":"stateDiagram-v2\n direction LR\n A --> B: advance\n B --> C: continue\n note right of B: first note\n note right of B: second note\n note left of C: left note","height":17,"lines":[" ╔═══════════╗"," ║ left note ╠═════════╗"," ╚═══════════╝ ║"," ║"," ╔════════════╗║"," ╔═══╣ first note ║║"," ║ ╚════════════╝║"," ║ ║"," ║ ║","╭───╮ advance ╭───╮ continue ╭───╮║","│ A ├────────────▶│ B ├────────────▶│ C │","╰───╯ ╰───╯ ╰───╯"," ║"," ║"," ║ ╔═════════════╗"," ╚═══╣ second note ║"," ╚═════════════╝"],"runs":[[[19,1],[13,0]],[[19,1],[1,0],[1,1],[9,32],[1,1],[1,0],[1,0],[1,0],[1,0],[7,0]],[[19,1],[13,0],[9,1],[1,0]],[[41,1],[1,0]],[[27,1],[14,0],[1,0]],[[23,1],[1,0],[1,0],[1,0],[1,0],[1,0],[1,1],[10,32],[1,1],[1,0],[1,0]],[[23,1],[1,0],[3,1],[14,0],[1,0]],[[23,1],[1,0],[17,1],[1,0]],[[23,1],[1,0],[17,1],[1,0]],[[5,2],[1,1],[9,10],[3,1],[5,2],[1,1],[10,10],[2,1],[5,2],[1,0]],[[1,2],[3,3],[1,30],[1,4],[1,31],[11,5],[1,2],[3,3],[1,30],[1,4],[1,31],[11,5],[1,2],[3,3],[1,2]],[[5,2],[13,1],[5,2],[13,1],[5,2]],[[23,1],[1,0]],[[23,1],[1,0]],[[23,1],[1,0],[3,1],[15,0]],[[23,1],[1,0],[1,0],[1,0],[1,0],[1,0],[1,1],[11,32],[1,1],[1,0]],[[27,1],[15,0]]]}, + {"width":60,"source":"stateDiagram-v2\n direction TB\n state \"Processing Ω<br/>phase two\" as Processing\n state \"Result ≥ threshold\" as Result\n Ready --> Processing: first\n Ready --> Processing: duplicate\n Processing --> Ready: restore\n Processing --> Processing: heartbeat\n Processing --> Result: result ≥ 1\n Result --> Ready: reopen\n note right of Processing: Unicode note 界","height":12,"lines":["╭──────────────╮","│ Processing Ω │ ╔═════════════════╗","│ phase two │════╣ Unicode note 界 ║","╰────┬──┬──────╯ ╚═════════════════╝"," │ │──▲──────────────────────╮ duplicate "," ╰──┴──┼──────────────────────┼────╮"," heartbeat │ first │ │"," ▼restore │ ▼","╭────────────────────╮ reopen │╭───────╮","│ Result ≥ threshold ├────────────▶┤ Ready │","╰────────────────────╯ ╰───────╯"," result ≥ 1 "],"runs":[[[16,2]],[[1,2],[14,3],[1,2],[4,1],[19,0]],[[1,2],[14,3],[1,2],[1,0],[1,0],[1,0],[1,0],[1,0],[1,1],[14,32],[1,1],[1,0]],[[5,2],[1,30],[2,2],[1,30],[7,2],[4,1],[19,0]],[[5,1],[1,4],[2,1],[1,4],[26,5],[4,1],[11,10]],[[5,1],[1,31],[2,5],[1,31],[31,5]],[[11,10],[1,5],[15,1],[7,10],[1,5],[4,1],[1,5]],[[11,1],[1,5],[8,10],[14,1],[1,5],[4,1],[1,5]],[[22,2],[2,1],[8,10],[2,1],[1,31],[9,2]],[[1,2],[20,3],[1,30],[1,4],[1,31],[11,5],[1,30],[7,3],[1,2]],[[22,2],[13,1],[9,2]],[[9,1],[12,10]]]}, + {"width":60,"source":"stateDiagram-v2\n direction LR\n state \"Open document\" as Open {\n [*] --> Clean: load\n Clean --> Dirty: edit\n Dirty --> Clean: save\n }\n note right of Dirty: unsaved changes","height":19,"lines":["╭─ Open document ──────────────────╮","│ │","│ │ │","│ │ │","│ │ load │","│ │ │","│ ▼ │","│ ╭───────╮ │","│▶│ Clean │ │","││╰───┬───╯ │","││ │ │","││ │ edit │","││ │ │","││ ▼ save │","││╭───────╮ ╔═════════════════╗ │","│╰┤ Dirty │════╣ unsaved changes ║ │","│ ╰───────╯ ╚═════════════════╝ │","│ │","╰──────────────────────────────────╯"],"runs":[[[2,0],[15,0],[19,0]],[[1,0],[34,1],[1,0]],[[1,0],[5,1],[1,5],[28,1],[1,0]],[[1,0],[5,1],[1,5],[28,1],[1,0]],[[1,0],[5,1],[1,5],[6,10],[22,1],[1,0]],[[1,0],[5,1],[1,5],[28,1],[1,0]],[[1,0],[5,1],[1,5],[28,1],[1,0]],[[1,0],[1,1],[9,2],[24,1],[1,0]],[[1,0],[1,5],[1,2],[7,3],[1,2],[24,1],[1,0]],[[1,0],[1,5],[4,2],[1,30],[4,2],[24,1],[1,0]],[[1,0],[1,5],[4,1],[1,4],[28,1],[1,0]],[[1,0],[1,5],[4,1],[1,31],[6,10],[22,1],[1,0]],[[1,0],[1,5],[4,1],[1,5],[28,1],[1,0]],[[1,0],[1,5],[4,1],[1,5],[6,10],[22,1],[1,0]],[[1,0],[1,31],[9,2],[4,1],[19,0],[1,1],[1,0]],[[1,0],[1,4],[1,30],[7,3],[1,2],[1,0],[1,0],[1,0],[1,0],[1,0],[1,1],[15,32],[1,1],[1,0],[1,1],[1,0]],[[1,0],[1,1],[9,2],[4,1],[19,0],[1,1],[1,0]],[[1,0],[34,1],[1,0]],[[36,0]]]}, + {"width":60,"source":"stateDiagram-v2\n direction LR\n A --> B\n B --> C\n C --> D\n C --> A: ca\n D --> B: db1\n D --> B: db2","height":24,"lines":[" ╭───╮"," │ A │◀──╮"," ╰─┬─╯ │"," │ │"," │ │"," │ │"," ▼ │"," ╭───╮ │"," │ B │◀ │ ca "," ╰─┬─╯│ │"," │ │ │"," │ │ │"," │ │ │","╭─────╯ │","│╭───╮ │","││ C ├───╯","│╰─┬─╯","╰──┼──╮ db1 "," │ │"," │ │ db2 "," ▼ │"," ╭───╮│"," │ D ├╯"," ╰───╯"],"runs":[[[1,1],[5,2]],[[1,1],[1,2],[3,3],[1,2],[4,5]],[[1,1],[2,2],[1,30],[2,2],[3,1],[1,5]],[[3,1],[1,4],[5,1],[1,5]],[[3,1],[1,31],[5,1],[1,5]],[[3,1],[1,5],[5,1],[1,5]],[[3,1],[1,5],[5,1],[1,5]],[[1,1],[5,2],[3,1],[1,5]],[[1,1],[1,2],[3,3],[1,2],[1,5],[2,1],[1,5],[4,10]],[[1,1],[2,2],[1,30],[2,2],[1,5],[2,1],[1,5]],[[3,1],[1,4],[2,1],[1,5],[2,1],[1,5]],[[3,1],[1,31],[2,1],[1,5],[2,1],[1,5]],[[3,1],[1,5],[2,1],[1,5],[2,1],[1,5]],[[7,5],[2,1],[1,5]],[[1,5],[5,2],[3,1],[1,5]],[[1,5],[1,2],[3,3],[1,30],[1,4],[1,31],[2,5]],[[1,5],[2,2],[1,30],[2,2]],[[7,5],[5,10]],[[3,1],[1,31],[2,1],[1,5]],[[3,1],[1,5],[2,1],[1,5],[5,10]],[[3,1],[1,5],[2,1],[1,5]],[[1,1],[5,2],[1,31]],[[1,1],[1,2],[3,3],[1,30],[1,4]],[[1,1],[5,2]]]}, + {"width":60,"source":"\nstateDiagram-v2\n direction LR\n state Authenticated {\n [*] --> Idle\n Idle --> Editing: open\n Editing --> [*]: save\n }\n","height":24,"lines":["╭─ Authenticated ╮","│ │","│ │ │","│ │ │","│ │ │","│ │ │","│ ▼ │","│ ╭──────╮ │","│ │ Idle │ │","│ ╰───┬──╯ │","│ │ │","│ │ open │","│ │ │","│ ▼ │","│ ╭─────────╮ │","│ │ Editing │ │","│ ╰────┬────╯ │","│ │ │","│ │ save │","│ │ │","│ │ │","│ │ │","│ │","╰────────────────╯"],"runs":[[[2,0],[15,0],[1,0]],[[1,0],[16,1],[1,0]],[[1,0],[6,1],[1,5],[9,1],[1,0]],[[1,0],[6,1],[1,5],[9,1],[1,0]],[[1,0],[6,1],[1,5],[9,1],[1,0]],[[1,0],[6,1],[1,5],[9,1],[1,0]],[[1,0],[6,1],[1,5],[9,1],[1,0]],[[1,0],[2,1],[8,2],[6,1],[1,0]],[[1,0],[2,1],[1,2],[6,3],[1,2],[6,1],[1,0]],[[1,0],[2,1],[4,2],[1,30],[3,2],[6,1],[1,0]],[[1,0],[6,1],[1,4],[9,1],[1,0]],[[1,0],[6,1],[1,31],[6,10],[3,1],[1,0]],[[1,0],[6,1],[1,5],[9,1],[1,0]],[[1,0],[6,1],[1,5],[9,1],[1,0]],[[1,0],[1,1],[11,2],[4,1],[1,0]],[[1,0],[1,1],[1,2],[9,3],[1,2],[4,1],[1,0]],[[1,0],[1,1],[5,2],[1,30],[5,2],[4,1],[1,0]],[[1,0],[6,1],[1,4],[9,1],[1,0]],[[1,0],[6,1],[1,31],[6,10],[3,1],[1,0]],[[1,0],[6,1],[1,5],[9,1],[1,0]],[[1,0],[6,1],[1,5],[9,1],[1,0]],[[1,0],[6,1],[1,5],[9,1],[1,0]],[[1,0],[16,1],[1,0]],[[18,0]]]}, + {"width":60,"source":"\nstateDiagram-v2\n direction LR\n [*] --> Authenticated: login\n state Authenticated {\n [*] --> Idle\n Idle --> Editing: open\n Editing --> [*]: save\n }\n Authenticated --> [*]: logout\n","height":21,"lines":[" ●"," │"," │ login ","╭─ Authenticated ╮","│ ▼ │","│ ╭──────╮ │","│ │ Idle │ │","│ ╰───┬──╯ │","│ │ │","│ │ open │","│ │ │","│ ▼ │","│ ╭─────────╮ │","│ │ Editing │ │","│ ╰────┬────╯ │","│ │ │","╰──────│─────────╯"," │ save "," │ logout "," ▼"," ◎"],"runs":[[[7,1],[1,12]],[[7,1],[1,5]],[[7,1],[1,5],[7,10]],[[2,0],[15,0],[1,0]],[[1,0],[6,1],[1,5],[9,1],[1,0]],[[1,0],[2,1],[8,2],[6,1],[1,0]],[[1,0],[2,1],[1,2],[6,3],[1,2],[6,1],[1,0]],[[1,0],[2,1],[4,2],[1,30],[3,2],[6,1],[1,0]],[[1,0],[6,1],[1,4],[9,1],[1,0]],[[1,0],[6,1],[1,31],[6,10],[3,1],[1,0]],[[1,0],[6,1],[1,5],[9,1],[1,0]],[[1,0],[6,1],[1,5],[9,1],[1,0]],[[1,0],[1,1],[11,2],[4,1],[1,0]],[[1,0],[1,1],[1,2],[9,3],[1,2],[4,1],[1,0]],[[1,0],[1,1],[5,2],[1,30],[5,2],[4,1],[1,0]],[[1,0],[6,1],[1,4],[9,1],[1,0]],[[7,0],[1,31],[10,0]],[[7,1],[1,5],[6,10]],[[7,1],[1,5],[8,10]],[[7,1],[1,5]],[[7,1],[1,12]]]}, + {"width":60,"source":"stateDiagram-v2\n state Session {\n [*] --> Open\n state Open {\n [*] --> Clean\n Clean --> Dirty: edit\n Dirty --> Clean: save\n }\n note right of Open: document lifecycle\n Open --> [*]: close\n }\n [*] --> Session\n Session --> [*]","height":20,"lines":[" ●","╭─ Session ──────────────────────────────────────────╮","│ │ │","│ ╭─ Open ───────────────╮ │","│ │ ▼ │ │","│ │ ╭───────╮ │ │","│ │ │ Clean │◀─╮ │ │","│ │ ╰───┬───╯ │ │ │","│ │ │ │ │ │","│ │ │ edit │ save │ ╔════════════════════╗ │","│ │ │ │ │════╣ document lifecycle ║ │","│ │ ▼ │ │ ╚════════════════════╝ │","│ │ ╭───────╮ │ │ │","│ │ │ Dirty ├──╯ │ │","│ │ ╰───────╯ │ │","│ │ │ │","│ ╰───────────┬──────────╯ │","│ close │ │","╰───────▼─────╯──────────────────────────────────────╯"," ◎"],"runs":[[[8,1],[1,12]],[[2,0],[9,0],[43,0]],[[1,0],[7,1],[1,5],[44,1],[1,0]],[[1,0],[1,1],[2,0],[6,0],[16,0],[27,1],[1,0]],[[1,0],[1,1],[1,0],[5,1],[1,5],[16,1],[1,0],[27,1],[1,0]],[[1,0],[1,1],[1,0],[1,1],[9,2],[12,1],[1,0],[27,1],[1,0]],[[1,0],[1,1],[1,0],[1,1],[1,2],[7,3],[1,2],[3,5],[9,1],[1,0],[27,1],[1,0]],[[1,0],[1,1],[1,0],[1,1],[4,2],[1,30],[4,2],[2,1],[1,5],[9,1],[1,0],[27,1],[1,0]],[[1,0],[1,1],[1,0],[5,1],[1,4],[6,1],[1,5],[9,1],[1,0],[27,1],[1,0]],[[1,0],[1,1],[1,0],[5,1],[1,31],[6,10],[1,5],[6,10],[3,1],[1,0],[4,1],[22,0],[1,1],[1,0]],[[1,0],[1,1],[1,0],[5,1],[1,5],[6,1],[1,5],[9,1],[1,0],[1,0],[1,0],[1,0],[1,0],[1,0],[1,1],[18,32],[1,1],[1,0],[1,1],[1,0]],[[1,0],[1,1],[1,0],[5,1],[1,5],[6,1],[1,5],[9,1],[1,0],[4,1],[22,0],[1,1],[1,0]],[[1,0],[1,1],[1,0],[1,1],[9,2],[2,1],[1,5],[9,1],[1,0],[27,1],[1,0]],[[1,0],[1,1],[1,0],[1,1],[1,2],[7,3],[1,30],[1,4],[1,31],[1,5],[9,1],[1,0],[27,1],[1,0]],[[1,0],[1,1],[1,0],[1,1],[9,2],[12,1],[1,0],[27,1],[1,0]],[[1,0],[1,1],[1,0],[22,1],[1,0],[27,1],[1,0]],[[1,0],[1,1],[12,0],[1,5],[11,0],[27,1],[1,0]],[[1,0],[5,1],[7,10],[1,1],[1,5],[38,1],[1,0]],[[8,0],[7,5],[39,0]],[[8,1],[1,12]]]}, + {"width":60,"source":"\nstateDiagram-v2\n direction LR\n [*] --> Idle\n Idle --> Loading: submit\n note right of Loading : waits for response\n","height":15,"lines":[" ●"," │"," │"," │"," ▼"," ╭──────╮"," │ Idle │"," ╰───┬──╯"," │"," │ submit "," │"," ▼","╭─────────╮ ╔════════════════════╗","│ Loading │════╣ waits for response ║","╰─────────╯ ╚════════════════════╝"],"runs":[[[5,1],[1,12]],[[5,1],[1,5]],[[5,1],[1,5]],[[5,1],[1,5]],[[5,1],[1,5]],[[1,1],[8,2]],[[1,1],[1,2],[6,3],[1,2]],[[1,1],[4,2],[1,30],[3,2]],[[5,1],[1,4]],[[5,1],[1,31],[8,10]],[[5,1],[1,5]],[[5,1],[1,5]],[[11,2],[4,1],[22,0]],[[1,2],[9,3],[1,2],[1,0],[1,0],[1,0],[1,0],[1,0],[1,1],[18,32],[1,1],[1,0]],[[11,2],[4,1],[22,0]]]}, + {"width":60,"source":"stateDiagram-v2\n [*] --> Authenticated\n state Authenticated {\n [*] --> Editing\n Editing --> Ready\n }\n note right of Editing\n Draft changes\n end note\n Authenticated --> Decision\n state Decision <<choice>>\n Decision --> [*]","height":13,"lines":[" ╭─ Authenticated ───────────────────╮"," │ ╔═══════════════╗ │"," │ ╔═══╣ Draft changes ║ │"," │ ║ ╚═══════════════╝ │"," │ ║ │"," │ ║ │"," │ ╭─────────╮ ╭───────╮ │","●────────────▶│ Editing ├────────────▶│ Ready │ │"," │ ╰─────────╯ ╰───────╯ │"," │ │"," ╰───────────────┬───────────────────╯"," ╰─────────────▼"," ◆────────────▶◎"],"runs":[[[12,1],[2,0],[15,0],[20,0]],[[12,1],[1,0],[16,1],[17,0],[2,1],[1,0]],[[12,1],[1,0],[12,1],[1,0],[1,0],[1,0],[1,0],[1,0],[1,1],[13,32],[1,1],[1,0],[2,1],[1,0]],[[12,1],[1,0],[12,1],[1,0],[3,1],[17,0],[2,1],[1,0]],[[12,1],[1,0],[12,1],[1,0],[22,1],[1,0]],[[12,1],[1,0],[12,1],[1,0],[22,1],[1,0]],[[12,1],[1,0],[1,1],[11,2],[13,1],[9,2],[1,1],[1,0]],[[1,12],[13,5],[1,2],[9,3],[1,30],[1,4],[1,31],[11,5],[1,2],[7,3],[1,2],[1,1],[1,0]],[[12,1],[1,0],[1,1],[11,2],[13,1],[9,2],[1,1],[1,0]],[[12,1],[1,0],[35,1],[1,0]],[[12,1],[16,0],[1,5],[20,0]],[[28,1],[15,5]],[[42,1],[1,12],[13,5],[1,12]]]}, + {"width":60,"source":"stateDiagram-v2\n direction TB\n state \"Branch root\" as Root\n state \"Upper branch\" as Upper\n state \"Lower branch\" as Lower\n state \"Merged branch\" as Merge\n Root --> Upper: branch-up\n Root --> Lower: branch-down\n Upper --> Merge: merge-up\n Lower --> Merge: merge-down\n Merge --> Root: branch-feedback","height":17,"lines":[" ╭─────────────╮"," │ Branch root │◀───────────────────────────────╮"," ╰──────┬──────╯ │"," │ branch-up │"," ├────────────────────────────╮ │"," │ │ │"," ▼ branch-down ▼ │","╭──────────────╮ ╭──────────────╮ │","│ Upper branch │ │ Lower branch │ │ branch-feedback ","╰───────┬──────╯ ╰───────┬──────╯ │"," │ merge-up merge-down │ │"," ├────────────────────────────╯ │"," │ │"," ▼ │","╭───────────────╮ │","│ Merged branch ├───────────────────────────────╯","╰───────────────╯"],"runs":[[[1,1],[15,2]],[[1,1],[1,2],[13,3],[1,2],[33,5]],[[1,1],[7,2],[1,30],[7,2],[32,1],[1,5]],[[8,1],[1,4],[11,10],[28,1],[1,5]],[[8,1],[1,31],[29,5],[10,1],[1,5]],[[8,1],[1,5],[28,1],[1,5],[10,1],[1,5]],[[8,1],[1,5],[13,10],[15,1],[1,5],[10,1],[1,5]],[[16,2],[13,1],[16,2],[3,1],[1,5]],[[1,2],[14,3],[1,2],[13,1],[1,2],[14,3],[1,2],[3,1],[1,5],[17,10]],[[8,2],[1,30],[7,2],[13,1],[8,2],[1,30],[7,2],[3,1],[1,5]],[[8,1],[1,4],[10,10],[5,1],[12,10],[1,1],[1,4],[10,1],[1,5]],[[8,1],[29,5],[1,31],[10,1],[1,5]],[[8,1],[1,5],[39,1],[1,5]],[[8,1],[1,5],[39,1],[1,5]],[[17,2],[31,1],[1,5]],[[1,2],[15,3],[1,30],[1,4],[1,31],[30,5]],[[17,2]]]}, + {"width":60,"source":"stateDiagram-v2\n direction TB\n [*] --> Root\n Root --> A\n Root --> B\n A --> Merge\n B --> Merge\n Merge --> A: retry","height":22,"lines":[" ●"," │"," │"," │"," ▼","╭──────╮","│ Root │","╰───┬──╯"," │"," ╭─┴───────────────╮"," │ │"," ▼▼─────╮ ▼","╭───╮ │ ╭───╮","│ A │ │ │ B │","╰─┬─╯ │ ╰─┬─╯"," │ │ │"," ╰─┬────┼──────────╯"," │ │ retry "," ▼ │","╭───────╮│","│ Merge ├╯","╰───────╯"],"runs":[[[4,1],[1,12]],[[4,1],[1,5]],[[4,1],[1,5]],[[4,1],[1,5]],[[4,1],[1,5]],[[8,2]],[[1,2],[6,3],[1,2]],[[4,2],[1,30],[3,2]],[[4,1],[1,4]],[[2,1],[2,5],[1,31],[16,5]],[[2,1],[1,5],[17,1],[1,5]],[[2,1],[8,5],[10,1],[1,5]],[[5,2],[4,1],[1,5],[8,1],[5,2]],[[1,2],[3,3],[1,2],[4,1],[1,5],[8,1],[1,2],[3,3],[1,2]],[[2,2],[1,30],[2,2],[4,1],[1,5],[8,1],[2,2],[1,30],[2,2]],[[2,1],[1,4],[6,1],[1,5],[10,1],[1,4]],[[2,1],[1,31],[17,5],[1,31]],[[4,1],[1,5],[4,1],[1,5],[7,10]],[[4,1],[1,5],[4,1],[1,5]],[[9,2],[1,31]],[[1,2],[7,3],[1,30],[1,4]],[[9,2]]]}, + {"width":60,"source":"stateDiagram-v2\n [*] --> Idle\n Idle --> MailboxPending: enqueue + setAlarm\n MailboxPending --> PromptSubmitted: drain mailbox\n PromptSubmitted --> Polling: prompt admitted\n Polling --> Polling: execution still active\n Polling --> Completed: terminal log event\n Polling --> Polling: retry after transient failure\n Completed --> Idle: final Slack projection\n Idle --> Expired: 30 days inactive\n Expired --> [*]: delete SQLite state","height":39,"lines":[" ●"," │"," │"," │"," ▼"," ╭──────╮"," │ Idle │◀──────────────────────────────────╮"," ╰───┬──╯ │"," │ enqueue + setAlarm │"," ╰──┬──────────────────────────╮ │"," │ │ │"," ▼30 days inactive ▼ │","╭────────────────╮ ╭─────────╮ │","│ MailboxPending │ │ Expired │ │","╰────────┬───────╯ ╰────┬────╯ │"," │ │ │"," │ drain mailbox │ │"," │ ╭───╯ │"," ▼ delete SQLite state │ │","╭─────────────────╮ ▼ │","│ PromptSubmitted │ ◎ │","╰────────┬────────╯ │ final Slack projection "," │ prompt admitted │"," ╭──╯ │"," │ │"," ▼ │"," ╭─────────╮ │"," │ Polling │ │"," ╰──┬─┬────╯ │"," │ │ ▲ ▲ execution still active │"," ├─┼──╯ │ │"," │ │ │ │"," │ │ │ retry after transient failure │"," ╰─┼──────╯ │"," │ terminal log event │"," ▼ │","╭───────────╮ │","│ Completed ├────────────────────────────────╯","╰───────────╯"],"runs":[[[6,1],[1,12]],[[6,1],[1,5]],[[6,1],[1,5]],[[6,1],[1,5]],[[6,1],[1,5]],[[2,1],[8,2]],[[2,1],[1,2],[6,3],[1,2],[36,5]],[[2,1],[4,2],[1,30],[3,2],[35,1],[1,5]],[[6,1],[1,4],[20,10],[18,1],[1,5]],[[6,1],[1,31],[30,5],[8,1],[1,5]],[[9,1],[1,5],[26,1],[1,5],[8,1],[1,5]],[[9,1],[1,5],[17,10],[9,1],[1,5],[8,1],[1,5]],[[18,2],[13,1],[11,2],[3,1],[1,5]],[[1,2],[16,3],[1,2],[13,1],[1,2],[9,3],[1,2],[3,1],[1,5]],[[9,2],[1,30],[8,2],[13,1],[5,2],[1,30],[5,2],[3,1],[1,5]],[[9,1],[1,4],[26,1],[1,4],[8,1],[1,5]],[[9,1],[1,31],[15,10],[11,1],[1,31],[8,1],[1,5]],[[9,1],[1,5],[22,1],[5,5],[8,1],[1,5]],[[9,1],[1,5],[21,10],[1,1],[1,5],[12,1],[1,5]],[[19,2],[13,1],[1,5],[12,1],[1,5]],[[1,2],[17,3],[1,2],[13,1],[1,12],[12,1],[1,5]],[[9,2],[1,30],[9,2],[26,1],[1,5],[24,10]],[[9,1],[1,4],[2,1],[17,10],[16,1],[1,5]],[[6,1],[3,5],[1,31],[35,1],[1,5]],[[6,1],[1,5],[38,1],[1,5]],[[6,1],[1,5],[38,1],[1,5]],[[1,1],[11,2],[33,1],[1,5]],[[1,1],[1,2],[9,3],[1,2],[33,1],[1,5]],[[1,1],[3,2],[1,30],[1,2],[1,30],[5,2],[33,1],[1,5]],[[4,1],[1,4],[1,1],[1,4],[2,1],[1,5],[3,1],[1,5],[24,10],[7,1],[1,5]],[[4,1],[1,31],[1,5],[1,31],[3,5],[3,1],[1,5],[31,1],[1,5]],[[4,1],[1,5],[1,1],[1,5],[6,1],[1,5],[31,1],[1,5]],[[4,1],[1,5],[1,1],[1,5],[6,1],[1,5],[31,10],[1,5]],[[4,1],[10,5],[31,1],[1,5]],[[6,1],[1,5],[20,10],[18,1],[1,5]],[[6,1],[1,5],[38,1],[1,5]],[[13,2],[32,1],[1,5]],[[1,2],[11,3],[1,30],[1,4],[1,31],[31,5]],[[13,2]]]}, + {"width":60,"source":"stateDiagram-v2\n direction LR\n state FirstGroup {\n [*] --> FirstInner\n FirstInner --> [*]: first-out\n }\n state SecondGroup {\n [*] --> SecondInner\n SecondInner --> [*]: second-out\n }\n FirstGroup --> SecondGroup: group-next\n SecondGroup --> FirstGroup: group-back","height":11,"lines":["╭─ FirstGroup ───╮ ╭─ SecondGroup ───╮","│ │first-out │ │","│ ╭────────────╮ │group-next │ ╭─────────────╮ │","│ │ FirstInner ├───────────────▶│ SecondInner │ │","│ ╰────────────╯ │ │ ╰──────┬──────╯ │","│ ▲ │ │ │ │","╰──│─────────────╯ ╰────────│────────╯"," │ │"," │ second-out │"," │ group-back │"," ╰───────────────────────────────────╯"],"runs":[[[2,0],[12,0],[4,0],[12,1],[2,0],[13,0],[4,0]],[[1,0],[16,1],[1,0],[10,10],[2,1],[1,0],[17,1],[1,0]],[[1,0],[1,1],[14,2],[1,1],[1,0],[11,10],[1,1],[1,0],[1,1],[15,2],[1,1],[1,0]],[[1,0],[1,1],[1,2],[12,3],[1,30],[1,4],[1,31],[14,5],[1,2],[13,3],[1,2],[1,1],[1,0]],[[1,0],[1,1],[14,2],[1,1],[1,0],[12,1],[1,0],[1,1],[7,2],[1,30],[7,2],[1,1],[1,0]],[[1,0],[2,1],[1,5],[13,1],[1,0],[12,1],[1,0],[8,1],[1,4],[8,1],[1,0]],[[3,0],[1,5],[14,0],[12,1],[9,0],[1,31],[9,0]],[[3,1],[1,5],[35,1],[1,5]],[[3,1],[1,5],[11,1],[12,10],[12,1],[1,5]],[[3,1],[1,5],[11,1],[12,10],[12,1],[1,5]],[[3,1],[37,5]]]}, + {"width":60,"source":"stateDiagram-v2\n direction LR\n state Outer {\n state Inner {\n A --> B: internal route\n note right of B: nested note\n }\n }\n Outer --> Done: leave composite","height":21,"lines":["╭─ Outer ──────────────────────╮","│ │","│ ╭─ Inner ──────────────────╮ │","│ │ │ │","│ │ ╭───╮ │ │","│ │ │ A │ │ │","│ │ ╰─┬─╯ │ │","│ │ │ │ │","│ │ │ internal route │ │","│ │ │ │ ├───╮","│ │ ▼ │ │ │","│ │ ╭───╮ ╔═════════════╗ │ │ │","│ │ │ B │════╣ nested note ║ │ │ │","│ │ ╰───╯ ╚═════════════╝ │ │ │","│ │ │ │ │ leave composite ","│ ╰──────────────────────────╯ │ │","│ │ │","╰──────────────────────────────╯ │"," ╭──────╮ │"," │ Done │◀────────────────────────╯"," ╰──────╯"],"runs":[[[2,0],[7,0],[23,0]],[[1,0],[30,1],[1,0]],[[1,0],[1,1],[2,0],[7,0],[19,0],[1,1],[1,0]],[[1,0],[1,1],[1,0],[26,1],[1,0],[1,1],[1,0]],[[1,0],[1,1],[1,0],[1,1],[5,2],[20,1],[1,0],[1,1],[1,0]],[[1,0],[1,1],[1,0],[1,1],[1,2],[3,3],[1,2],[20,1],[1,0],[1,1],[1,0]],[[1,0],[1,1],[1,0],[1,1],[2,2],[1,30],[2,2],[20,1],[1,0],[1,1],[1,0]],[[1,0],[1,1],[1,0],[3,1],[1,4],[22,1],[1,0],[1,1],[1,0]],[[1,0],[1,1],[1,0],[3,1],[1,31],[16,10],[6,1],[1,0],[1,1],[1,0]],[[1,0],[1,1],[1,0],[3,1],[1,5],[22,1],[1,0],[1,1],[5,5]],[[1,0],[1,1],[1,0],[3,1],[1,5],[22,1],[1,0],[1,1],[1,0],[3,1],[1,5]],[[1,0],[1,1],[1,0],[1,1],[5,2],[4,1],[15,0],[1,1],[1,0],[1,1],[1,0],[3,1],[1,5]],[[1,0],[1,1],[1,0],[1,1],[1,2],[3,3],[1,2],[1,0],[1,0],[1,0],[1,0],[1,0],[1,1],[11,32],[1,1],[1,0],[1,1],[1,0],[1,1],[1,0],[3,1],[1,5]],[[1,0],[1,1],[1,0],[1,1],[5,2],[4,1],[15,0],[1,1],[1,0],[1,1],[1,0],[3,1],[1,5]],[[1,0],[1,1],[1,0],[26,1],[1,0],[1,1],[1,0],[3,1],[1,5],[17,10]],[[1,0],[1,1],[28,0],[1,1],[1,0],[3,1],[1,5]],[[1,0],[30,1],[1,0],[3,1],[1,5]],[[32,0],[3,1],[1,5]],[[2,1],[8,2],[25,1],[1,5]],[[2,1],[1,2],[6,3],[1,2],[26,5]],[[2,1],[8,2]]]}, + {"width":60,"source":"stateDiagram-v2\n direction LR\n [*] --> Clean\n Clean --> Dirty: edit\n Dirty --> Clean: save\n Dirty --> Closing: request close\n Closing --> [*]: closed","height":27,"lines":[" ●"," │"," │"," │"," ▼"," ╭───────╮"," │ Clean │◀───╮"," ╰───┬───╯ │"," │ │"," │ edit │ save "," │ │"," ▼ │"," ╭───────╮ │"," │ Dirty ├────╯"," ╰───┬───╯"," │"," │ request close "," │"," ▼","╭─────────╮","│ Closing │","╰────┬────╯"," │"," │ closed "," │"," ▼"," ◎"],"runs":[[[5,1],[1,12]],[[5,1],[1,5]],[[5,1],[1,5]],[[5,1],[1,5]],[[5,1],[1,5]],[[1,1],[9,2]],[[1,1],[1,2],[7,3],[1,2],[5,5]],[[1,1],[4,2],[1,30],[4,2],[4,1],[1,5]],[[5,1],[1,4],[8,1],[1,5]],[[5,1],[1,31],[6,10],[2,1],[1,5],[6,10]],[[5,1],[1,5],[8,1],[1,5]],[[5,1],[1,5],[8,1],[1,5]],[[1,1],[9,2],[4,1],[1,5]],[[1,1],[1,2],[7,3],[1,30],[1,4],[1,31],[3,5]],[[1,1],[4,2],[1,30],[4,2]],[[5,1],[1,4]],[[5,1],[1,31],[15,10]],[[5,1],[1,5]],[[5,1],[1,5]],[[11,2]],[[1,2],[9,3],[1,2]],[[5,2],[1,30],[5,2]],[[5,1],[1,4]],[[5,1],[1,31],[8,10]],[[5,1],[1,5]],[[5,1],[1,5]],[[5,1],[1,12]]]}, + {"width":60,"source":"stateDiagram-v2\n direction TB\n state Session {\n [*] --> Open\n state Open {\n [*] --> Clean\n Clean --> Dirty: edit\n Dirty --> Clean: save\n Dirty --> [*]\n }\n Open --> Closing: request close\n Closing --> Open: cancel\n Closing --> [*]: closed\n note right of Dirty: unsaved changes\n }\n [*] --> Session: hydrate\n Session --> [*]: release","height":28,"lines":[" ●","╭─ Session ────────────────────────────╮","│ │ hydrate │","│ ╭─ Open ───────────────────────────╮ │","│ │ ▼ │ │","│ │ ╭───────╮ │ │","│ ╭▶│ Clean │ │ │","│ ││╰───┬───╯ │ │","│ ││ │ │ │","│ ││ │ edit │ │","│ ││ │ │ │","│ ││ ▼ save │ │","│ ││╭───────╮ ╔═════════════════╗ │ │","│ │╰┤ Dirty │════╣ unsaved changes ║ │ │","│ │ ╰───┬───╯ ╚═════════════════╝ │ │","│ │ │ cancel │ │","│ │─────│────────────────────────────╯ │","│ │ │ request close │","│ │ ▼ │","│ │╭─────────╮ │","│ ╰┤ Closing │ │","│ ╰────┬────╯ │","│ │ │","╰───────│──────────────────────────────╯"," │ closed "," │ release "," ▼"," ◎"],"runs":[[[8,1],[1,12]],[[2,0],[9,0],[29,0]],[[1,0],[7,1],[1,5],[9,10],[21,1],[1,0]],[[1,0],[1,1],[2,0],[6,0],[28,0],[1,1],[1,0]],[[1,0],[1,1],[1,0],[5,1],[1,5],[28,1],[1,0],[1,1],[1,0]],[[1,0],[1,1],[1,0],[1,1],[9,2],[24,1],[1,0],[1,1],[1,0]],[[1,0],[1,1],[2,5],[1,2],[7,3],[1,2],[24,1],[1,0],[1,1],[1,0]],[[1,0],[1,1],[2,5],[4,2],[1,30],[4,2],[24,1],[1,0],[1,1],[1,0]],[[1,0],[1,1],[2,5],[4,1],[1,4],[28,1],[1,0],[1,1],[1,0]],[[1,0],[1,1],[2,5],[4,1],[1,31],[6,10],[22,1],[1,0],[1,1],[1,0]],[[1,0],[1,1],[2,5],[4,1],[1,5],[28,1],[1,0],[1,1],[1,0]],[[1,0],[1,1],[2,5],[4,1],[1,5],[6,10],[22,1],[1,0],[1,1],[1,0]],[[1,0],[1,1],[1,5],[1,31],[9,2],[4,1],[19,0],[1,1],[1,0],[1,1],[1,0]],[[1,0],[1,1],[1,5],[1,4],[1,30],[7,3],[1,2],[1,0],[1,0],[1,0],[1,0],[1,0],[1,1],[15,32],[1,1],[1,0],[1,1],[1,0],[1,1],[1,0]],[[1,0],[1,1],[1,5],[1,1],[4,2],[1,30],[4,2],[4,1],[19,0],[1,1],[1,0],[1,1],[1,0]],[[1,0],[1,1],[1,5],[5,1],[1,4],[8,10],[20,1],[1,0],[1,1],[1,0]],[[1,0],[1,1],[1,5],[5,0],[1,31],[29,0],[1,1],[1,0]],[[1,0],[1,1],[1,5],[5,1],[1,5],[15,10],[15,1],[1,0]],[[1,0],[1,1],[1,5],[5,1],[1,5],[30,1],[1,0]],[[1,0],[1,1],[1,31],[11,2],[25,1],[1,0]],[[1,0],[1,1],[1,4],[1,30],[9,3],[1,2],[25,1],[1,0]],[[1,0],[2,1],[5,2],[1,30],[5,2],[25,1],[1,0]],[[1,0],[7,1],[1,4],[30,1],[1,0]],[[8,0],[1,31],[31,0]],[[8,1],[1,5],[8,10]],[[8,1],[1,5],[9,10]],[[8,1],[1,5]],[[8,1],[1,12]]]}, + {"width":60,"source":"stateDiagram-v2\n direction TB\n [*] --> Pending\n Pending --> Decision: review\n state Decision <<choice>>\n Decision --> Approved: accept\n Decision --> Rejected: reject\n Rejected --> Pending: retry\n Approved --> [*]: complete","height":27,"lines":[" ●"," │"," │"," │"," ▼","╭─────────╮","│ Pending │◀────────────────────────────╮","╰────┬────╯ │"," │ │"," │ review │"," │ │"," ▼ │"," ◆ │"," │ │ retry "," │ │"," │ accept reject │"," ╰┬────────────────────────╮ │"," │ │ │"," ▼ ▼ │","╭──────────╮ ╭──────────╮ │","│ Approved │ │ Rejected ├───╯","╰─────┬────╯ ╰──────────╯"," │ complete "," ╭╯"," │"," ▼"," ◎"],"runs":[[[5,1],[1,12]],[[5,1],[1,5]],[[5,1],[1,5]],[[5,1],[1,5]],[[5,1],[1,5]],[[11,2]],[[1,2],[9,3],[1,2],[30,5]],[[5,2],[1,30],[5,2],[29,1],[1,5]],[[5,1],[1,4],[34,1],[1,5]],[[5,1],[1,31],[8,10],[26,1],[1,5]],[[5,1],[1,5],[34,1],[1,5]],[[5,1],[1,5],[34,1],[1,5]],[[5,1],[1,12],[34,1],[1,5]],[[5,1],[1,5],[34,1],[1,5],[7,10]],[[5,1],[1,5],[34,1],[1,5]],[[5,1],[1,5],[16,10],[18,1],[1,5]],[[5,1],[27,5],[8,1],[1,5]],[[6,1],[1,5],[24,1],[1,5],[8,1],[1,5]],[[6,1],[1,5],[24,1],[1,5],[8,1],[1,5]],[[12,2],[13,1],[12,2],[3,1],[1,5]],[[1,2],[10,3],[1,2],[13,1],[1,2],[10,3],[1,30],[1,4],[1,31],[2,5]],[[6,2],[1,30],[5,2],[13,1],[12,2]],[[6,1],[1,4],[2,1],[10,10]],[[5,1],[1,5],[1,31]],[[5,1],[1,5]],[[5,1],[1,5]],[[5,1],[1,12]]]}, + {"width":60,"source":"stateDiagram-v2\n direction TB\n [*] --> Listening\n Listening --> Listening: heartbeat\n Listening --> Listening: refresh token\n Listening --> Connected: client connected\n Connected --> Connected: received message\n Connected --> Listening: disconnected\n Connected --> [*]: shutdown","height":23,"lines":[" ●"," │"," │"," │"," ▼","╭───────────╮","│ Listening │◀──╮","╰───┬─┬─────╯ │"," │ │ ▲ ▲ │ heartbeat "," ├─┼──╯ │ │"," │ │ │ │"," │ │ │ │ refresh token "," ╰─┼──────╯ │"," │ │ client connected "," ▼ │","╭───────────╮ │ disconnected ","│ Connected ├───╯","╰───┬─┬─────╯"," │ │ ▲ received message "," ╰─┼──╯"," │ shutdown "," ▼"," ◎"],"runs":[[[6,1],[1,12]],[[6,1],[1,5]],[[6,1],[1,5]],[[6,1],[1,5]],[[6,1],[1,5]],[[13,2]],[[1,2],[11,3],[1,2],[4,5]],[[4,2],[1,30],[1,2],[1,30],[6,2],[3,1],[1,5]],[[4,1],[1,4],[1,1],[1,4],[2,1],[1,5],[3,1],[1,5],[2,1],[1,5],[11,10]],[[4,1],[1,31],[1,5],[1,31],[3,5],[3,1],[1,5],[2,1],[1,5]],[[4,1],[1,5],[1,1],[1,5],[6,1],[1,5],[2,1],[1,5]],[[4,1],[1,5],[1,1],[1,5],[6,1],[1,5],[2,1],[1,5],[15,10]],[[4,1],[10,5],[2,1],[1,5]],[[6,1],[1,5],[9,1],[1,5],[18,10]],[[6,1],[1,5],[9,1],[1,5]],[[13,2],[3,1],[1,5],[14,10]],[[1,2],[11,3],[1,30],[1,4],[1,31],[2,5]],[[4,2],[1,30],[1,2],[1,30],[6,2]],[[4,1],[1,4],[1,1],[1,4],[2,1],[1,5],[18,10]],[[4,1],[1,31],[1,5],[1,31],[3,5]],[[6,1],[1,5],[10,10]],[[6,1],[1,5]],[[6,1],[1,12]]]}, + {"width":60,"source":"stateDiagram-v2\n [*] --> Pending\n Pending --> Running\n Running --> Idle\n Running --> Interrupted\n Interrupted --> [*]","height":27,"lines":[" ●"," │"," │"," │"," ▼","╭─────────╮","│ Pending │","╰────┬────╯"," │"," │"," │"," ▼","╭─────────╮","│ Running │","╰────┬────╯"," │"," ╭┴──────────────────────╮"," │ │"," ▼ ▼","╭──────╮ ╭─────────────╮","│ Idle │ │ Interrupted │","╰──────╯ ╰──────┬──────╯"," │"," ╭──────────────────────╯"," │"," ▼"," ◎"],"runs":[[[5,1],[1,12]],[[5,1],[1,5]],[[5,1],[1,5]],[[5,1],[1,5]],[[5,1],[1,5]],[[11,2]],[[1,2],[9,3],[1,2]],[[5,2],[1,30],[5,2]],[[5,1],[1,4]],[[5,1],[1,31]],[[5,1],[1,5]],[[5,1],[1,5]],[[11,2]],[[1,2],[9,3],[1,2]],[[5,2],[1,30],[5,2]],[[5,1],[1,4]],[[4,1],[1,5],[1,31],[23,5]],[[4,1],[1,5],[23,1],[1,5]],[[4,1],[1,5],[23,1],[1,5]],[[8,2],[13,1],[15,2]],[[1,2],[6,3],[1,2],[13,1],[1,2],[13,3],[1,2]],[[8,2],[13,1],[7,2],[1,30],[7,2]],[[28,1],[1,4]],[[5,1],[23,5],[1,31]],[[5,1],[1,5]],[[5,1],[1,5]],[[5,1],[1,12]]]}, + {"width":60,"source":"stateDiagram-v2\n direction TB\n state \"A\" as A\n state \"B\" as B\n state \"C\" as C\n A --> B: e0\n A --> C: e1\n B --> A: e2","height":10,"lines":["╭───╮","│ A │◀","╰─┬─╯│"," │ │e0 "," ├──┼──────────────╮"," │ │ e2 │"," ▼e1│ ▼","╭───╮│ ╭───╮","│ B ├╯ │ C │","╰───╯ ╰───╯"],"runs":[[[5,2]],[[1,2],[3,3],[1,2],[1,5]],[[2,2],[1,30],[2,2],[1,5]],[[2,1],[1,4],[2,1],[1,5],[3,10]],[[2,1],[1,31],[18,5]],[[2,1],[1,5],[2,1],[1,5],[4,10],[10,1],[1,5]],[[2,1],[1,5],[2,10],[1,5],[14,1],[1,5]],[[5,2],[1,31],[12,1],[5,2]],[[1,2],[3,3],[1,30],[1,4],[12,1],[1,2],[3,3],[1,2]],[[5,2],[13,1],[5,2]]]}, + {"width":60,"source":"stateDiagram-v2\n direction LR\n A --> B\n note right of A : note","height":4,"lines":[" ╭──────────────╮","╭─┴─╮ ╔══════╗│╭───╮","│ A │════╣ note ║▶│ B │","╰───╯ ╚══════╝ ╰───╯"],"runs":[[[2,1],[1,4],[1,31],[14,5]],[[2,2],[1,30],[2,2],[4,1],[8,0],[1,5],[5,2]],[[1,2],[3,3],[1,2],[1,0],[1,0],[1,0],[1,0],[1,0],[1,1],[4,32],[1,1],[1,0],[1,5],[1,2],[3,3],[1,2]],[[5,2],[4,1],[8,0],[1,1],[5,2]]]}, + {"width":60,"source":"stateDiagram-v2\n Check --> Decision\n state Decision <<choice>>\n Decision --> Ready: yes\n Decision --> Failed: no","height":9,"lines":["╭───────╮ yes ╭───────╮","│ Check ├────────────▶◆────────────▶│ Ready │","╰───────╯ │ ╰───────╯"," │ no "," │"," ▼"," ╭────────╮"," │ Failed │"," ╰────────╯"],"runs":[[[9,2],[17,1],[5,10],[5,1],[9,2]],[[1,2],[7,3],[1,30],[1,4],[1,31],[11,5],[1,12],[13,5],[1,2],[7,3],[1,2]],[[9,2],[13,1],[1,5],[13,1],[9,2]],[[22,1],[1,5],[4,10]],[[22,1],[1,5]],[[22,1],[1,5]],[[17,1],[10,2]],[[17,1],[1,2],[8,3],[1,2]],[[17,1],[10,2]]]}, + {"width":60,"source":"stateDiagram-v2\n state Group {\n A --> [*]\n }","height":7,"lines":["╭─ Group ─────────────╮","│ │","│ ╭───╮ │","│ │ A ├────────────── │","│ ╰───╯ │","│ │","╰─────────────────────╯"],"runs":[[[2,0],[7,0],[14,0]],[[1,0],[21,1],[1,0]],[[1,0],[1,1],[5,2],[15,1],[1,0]],[[1,0],[1,1],[1,2],[3,3],[1,30],[1,4],[1,31],[12,5],[1,1],[1,0]],[[1,0],[1,1],[5,2],[15,1],[1,0]],[[1,0],[21,1],[1,0]],[[23,0]]]}, + {"width":60,"source":"stateDiagram-v2\n A --> B: transition label","height":3,"lines":["╭───╮ transition label ╭───╮","│ A ├─────────────────▶│ B │","╰───╯ ╰───╯"],"runs":[[[5,2],[18,10],[5,2]],[[1,2],[3,3],[1,30],[1,4],[1,31],[16,5],[1,2],[3,3],[1,2]],[[5,2],[18,1],[5,2]]]}, + {"width":60,"source":"stateDiagram-v2\n [*] --> Authenticated: login\n state Authenticated {\n [*] --> Idle\n Idle --> Editing: open\n Editing --> [*]: save\n }\n Authenticated --> [*]: logout","height":21,"lines":[" ●"," │"," │ login ","╭─ Authenticated ╮","│ ▼ │","│ ╭──────╮ │","│ │ Idle │ │","│ ╰───┬──╯ │","│ │ │","│ │ open │","│ │ │","│ ▼ │","│ ╭─────────╮ │","│ │ Editing │ │","│ ╰────┬────╯ │","│ │ │","╰──────│─────────╯"," │ save "," │ logout "," ▼"," ◎"],"runs":[[[7,1],[1,12]],[[7,1],[1,5]],[[7,1],[1,5],[7,10]],[[2,0],[15,0],[1,0]],[[1,0],[6,1],[1,5],[9,1],[1,0]],[[1,0],[2,1],[8,2],[6,1],[1,0]],[[1,0],[2,1],[1,2],[6,3],[1,2],[6,1],[1,0]],[[1,0],[2,1],[4,2],[1,30],[3,2],[6,1],[1,0]],[[1,0],[6,1],[1,4],[9,1],[1,0]],[[1,0],[6,1],[1,31],[6,10],[3,1],[1,0]],[[1,0],[6,1],[1,5],[9,1],[1,0]],[[1,0],[6,1],[1,5],[9,1],[1,0]],[[1,0],[1,1],[11,2],[4,1],[1,0]],[[1,0],[1,1],[1,2],[9,3],[1,2],[4,1],[1,0]],[[1,0],[1,1],[5,2],[1,30],[5,2],[4,1],[1,0]],[[1,0],[6,1],[1,4],[9,1],[1,0]],[[7,0],[1,31],[10,0]],[[7,1],[1,5],[6,10]],[[7,1],[1,5],[8,10]],[[7,1],[1,5]],[[7,1],[1,12]]]}, + {"width":60,"source":"stateDiagram-v2\n state Session {\n [*] --> Open\n state Open {\n [*] --> Clean\n Clean --> Dirty: edit\n Dirty --> Clean: save\n }\n Open --> [*]: close\n }\n [*] --> Session\n Session --> [*]","height":20,"lines":[" ●","╭─ Session ────────────────╮","│ │ │","│ ╭─ Open ───────────────╮ │","│ │ ▼ │ │","│ │ ╭───────╮ │ │","│ │ │ Clean │◀─╮ │ │","│ │ ╰───┬───╯ │ │ │","│ │ │ │ │ │","│ │ │ edit │ save │ │","│ │ │ │ │ │","│ │ ▼ │ │ │","│ │ ╭───────╮ │ │ │","│ │ │ Dirty ├──╯ │ │","│ │ ╰───────╯ │ │","│ │ │ │","│ ╰───────────┬──────────╯ │","│ close │ │","╰───────▼─────╯────────────╯"," ◎"],"runs":[[[8,1],[1,12]],[[2,0],[9,0],[17,0]],[[1,0],[7,1],[1,5],[18,1],[1,0]],[[1,0],[1,1],[2,0],[6,0],[16,0],[1,1],[1,0]],[[1,0],[1,1],[1,0],[5,1],[1,5],[16,1],[1,0],[1,1],[1,0]],[[1,0],[1,1],[1,0],[1,1],[9,2],[12,1],[1,0],[1,1],[1,0]],[[1,0],[1,1],[1,0],[1,1],[1,2],[7,3],[1,2],[3,5],[9,1],[1,0],[1,1],[1,0]],[[1,0],[1,1],[1,0],[1,1],[4,2],[1,30],[4,2],[2,1],[1,5],[9,1],[1,0],[1,1],[1,0]],[[1,0],[1,1],[1,0],[5,1],[1,4],[6,1],[1,5],[9,1],[1,0],[1,1],[1,0]],[[1,0],[1,1],[1,0],[5,1],[1,31],[6,10],[1,5],[6,10],[3,1],[1,0],[1,1],[1,0]],[[1,0],[1,1],[1,0],[5,1],[1,5],[6,1],[1,5],[9,1],[1,0],[1,1],[1,0]],[[1,0],[1,1],[1,0],[5,1],[1,5],[6,1],[1,5],[9,1],[1,0],[1,1],[1,0]],[[1,0],[1,1],[1,0],[1,1],[9,2],[2,1],[1,5],[9,1],[1,0],[1,1],[1,0]],[[1,0],[1,1],[1,0],[1,1],[1,2],[7,3],[1,30],[1,4],[1,31],[1,5],[9,1],[1,0],[1,1],[1,0]],[[1,0],[1,1],[1,0],[1,1],[9,2],[12,1],[1,0],[1,1],[1,0]],[[1,0],[1,1],[1,0],[22,1],[1,0],[1,1],[1,0]],[[1,0],[1,1],[12,0],[1,5],[11,0],[1,1],[1,0]],[[1,0],[5,1],[7,10],[1,1],[1,5],[12,1],[1,0]],[[8,0],[7,5],[13,0]],[[8,1],[1,12]]]}, + {"width":60,"source":"stateDiagram-v2\n state Session {\n [*] --> Open\n state Open {\n [*] --> Clean\n Clean --> Dirty: edit\n Dirty --> Clean: save\n Dirty --> [*]\n }\n Open --> Closing: request close\n Closing --> Open: cancel\n }\n [*] --> Session: hydrate","height":24,"lines":[" ●","╭─ Session ────────────────╮","│ │ hydrate │","│ ╭─ Open ───────────────╮ │","│ │ ▼ │ │","│ │ ╭───────╮ │ │","│ │ │ Clean │◀─┬╮ │ │","│ │ ╰───┬───╯ ││ │ │","│ │ │ ││ │ │","│ │ │ edit ││ │ │","│ │ │ ││ │ │","│ │ ▼ save ││ │ │","│ │ ╭───────╮ ││ cancel │ │","│ │ │ Dirty ├──┴┼──╮ │ │","│ │ ╰───────╯ │ │ │ │","│ │ │ │ │ │","│ ╰─────────────│──│─────╯ │","│ │ │ │","│ │ │ │","│ ╭─────────╮ │ │ │","│ │ Closing ├◀─┴──╯ │","│ ╰─────────╯ │","│ request close │","╰──────────────────────────╯"],"runs":[[[8,1],[1,12]],[[2,0],[9,0],[17,0]],[[1,0],[7,1],[1,5],[9,10],[9,1],[1,0]],[[1,0],[1,1],[2,0],[6,0],[16,0],[1,1],[1,0]],[[1,0],[1,1],[1,0],[5,1],[1,5],[16,1],[1,0],[1,1],[1,0]],[[1,0],[1,1],[1,0],[1,1],[9,2],[12,1],[1,0],[1,1],[1,0]],[[1,0],[1,1],[1,0],[1,1],[1,2],[7,3],[1,2],[4,5],[8,1],[1,0],[1,1],[1,0]],[[1,0],[1,1],[1,0],[1,1],[4,2],[1,30],[4,2],[2,1],[2,5],[8,1],[1,0],[1,1],[1,0]],[[1,0],[1,1],[1,0],[5,1],[1,4],[6,1],[2,5],[8,1],[1,0],[1,1],[1,0]],[[1,0],[1,1],[1,0],[5,1],[1,31],[6,10],[2,5],[8,1],[1,0],[1,1],[1,0]],[[1,0],[1,1],[1,0],[5,1],[1,5],[6,1],[2,5],[8,1],[1,0],[1,1],[1,0]],[[1,0],[1,1],[1,0],[5,1],[1,5],[6,10],[2,5],[8,1],[1,0],[1,1],[1,0]],[[1,0],[1,1],[1,0],[1,1],[9,2],[2,1],[2,5],[8,10],[1,0],[1,1],[1,0]],[[1,0],[1,1],[1,0],[1,1],[1,2],[7,3],[1,30],[1,4],[1,31],[5,5],[5,1],[1,0],[1,1],[1,0]],[[1,0],[1,1],[1,0],[1,1],[9,2],[3,1],[1,5],[2,1],[1,5],[5,1],[1,0],[1,1],[1,0]],[[1,0],[1,1],[1,0],[13,1],[1,5],[2,1],[1,5],[5,1],[1,0],[1,1],[1,0]],[[1,0],[1,1],[14,0],[1,5],[2,0],[1,5],[6,0],[1,1],[1,0]],[[1,0],[15,1],[1,5],[2,1],[1,5],[7,1],[1,0]],[[1,0],[15,1],[1,5],[2,1],[1,5],[7,1],[1,0]],[[1,0],[2,1],[11,2],[2,1],[1,5],[2,1],[1,5],[7,1],[1,0]],[[1,0],[2,1],[1,2],[9,3],[1,30],[6,5],[7,1],[1,0]],[[1,0],[2,1],[11,2],[13,1],[1,0]],[[1,0],[11,1],[15,10],[1,0]],[[28,0]]]}, + {"width":60,"source":"stateDiagram-v2\n [*] --> Session: open session\n state Session {\n [*] --> Ready: initialize\n Ready --> [*]: finalize\n }\n Session --> [*]: close session","height":7,"lines":[" ╭─ Session ─╮"," open session │ │finalize "," initialize │ ╭───────╮ │close session ","●─────────────────▶│ Ready ├──────────────────▶◎"," │ ╰───────╯ │"," │ │"," ╰───────────╯"],"runs":[[[17,1],[2,0],[9,0],[2,0]],[[2,1],[14,10],[1,1],[1,0],[11,1],[1,0],[9,10]],[[2,1],[12,10],[3,1],[1,0],[1,1],[9,2],[1,1],[1,0],[14,10]],[[1,12],[18,5],[1,2],[7,3],[1,30],[1,4],[1,31],[17,5],[1,12]],[[17,1],[1,0],[1,1],[9,2],[1,1],[1,0]],[[17,1],[1,0],[11,1],[1,0]],[[17,1],[13,0]]]}, + {"width":60,"source":"flowchart LR\n A[Start] --> B[Done]\n classDef highlight fill:#fff\n class A highlight\n style B fill:#000\n linkStyle 0 stroke:#fff","height":3,"lines":["╭───────╮ ╭──────╮","│ Start ├───▶│ Done │","╰───────╯ ╰──────╯"],"runs":[[[9,2],[4,1],[8,2]],[[1,2],[7,3],[1,6],[1,4],[1,7],[1,8],[1,5],[1,2],[6,3],[1,2]],[[9,2],[4,1],[8,2]]]}, + {"width":60,"source":"flowchart LR\n A[Start] --> B[Done]\n A --o B","height":3,"lines":["╭───────╮ ╭──────╮","│ Start ├───▶│ Done │","╰───────╯ ╰──────╯"],"runs":[[[9,2],[4,1],[8,2]],[[1,2],[7,3],[1,6],[1,4],[1,7],[1,8],[1,5],[1,2],[6,3],[1,2]],[[9,2],[4,1],[8,2]]]}, + {"width":60,"source":"flowchart LR\n A[\"send --> receive\"] --> B","height":3,"lines":["╭──────────────────╮ ╭───╮","│ send --> receive ├───▶│ B │","╰──────────────────╯ ╰───╯"],"runs":[[[20,2],[4,1],[5,2]],[[1,2],[18,3],[1,6],[1,4],[1,7],[1,8],[1,5],[1,2],[3,3],[1,2]],[[20,2],[4,1],[5,2]]]}, + {"width":60,"source":"sequenceDiagram\n A->>B: request\n opt retry","height":4,"lines":[" A B"," │ │"," ├─── request ─────►"," │ │"],"runs":[[[1,1],[1,3],[17,1],[1,3]],[[1,1],[1,2],[17,1],[1,2]],[[1,1],[1,16],[1,17],[1,18],[1,19],[15,21]],[[1,1],[1,2],[17,1],[1,2]]]}, + {"width":60,"source":"stateDiagram-v2\n state Running {\n [*] --> Ready","lines":null}, + {"width":60,"source":"stateDiagram-v2\n direction LR\n state Parent {\n direction TB\n A --> B\n }","lines":null}, + {"width":60,"source":"sequenceDiagram\n end","lines":null}, + {"width":60,"source":"sequenceDiagram\n alt available\n loop retry\n else fallback","lines":null}, + {"width":60,"source":"flowchart LR\n Client[OpenCode client]\n\n subgraph CF[Cloudflare]\n DNS[opencode.ai]\n Web[Console frontend Worker]\n Proxy[Console API proxy Worker]\n Infer[inference-next Worker]\n KV[Model registry KV]\n Redis[Upstash Redis]\n Logs[Axiom / Cloudflare logs]\n Lake[Pipeline to R2 data lake]\n end\n\n subgraph AWS[AWS]\n EKS[EKS cluster]\n API[Console API pod<br/>1 replica]\n OTEL[OTel collector]\n ECR[ECR]\n end\n\n DB[(PlanetScale)]\n Models[Anthropic / OpenAI / other providers]\n\n Client -->|/inference/*| DNS --> Infer\n Client -->|/console/*| DNS --> Web\n Web -->|/console/api, /auth, etc.| Proxy\n Proxy -->|Cloudflare VPC service| API\n\n Infer -->|public DATABASE_URL| DB\n Infer --> KV\n Infer --> Redis\n Infer --> Models\n Infer --> Logs\n Infer --> Lake\n\n API -->|private DATABASE_AWS_URL| DB\n API --> OTEL\n ECR --> API","height":108,"lines":[" ╭─ /console/* ─╮"," │ │"," │ │"," │ │"," │ │"," │ │"," │ │"," ╭─────────────────╮│ │"," │ OpenCode client ├┴──────────────┤"," ╰─────────────────╯ │"," │"," │ /inference/* ","╭─ Cloudflare ─────────────────────────────────│───────────────────────────────╮","│ ╭─────────────╮ │ │","│ │ opencode.ai │◀╯ │","│ ╰──────┬──────╯ │","│ ╭──────────────┴───────────────╮ │","│ ▼ ▼ │","│ ╭─────────────────────────╮ ╭───────────────────────╮ │","│ │ Console frontend Worker │ │ inference-next Worker │ │","│ ╰────────────┬────────────╯ ╰───────────┬───────────╯ │","│ ╭────────────────────╯ ├──────────────────────╮ │","│ │ │ │ │","│ │ /console/api, /auth, etc. ▼ │ │","│ │ ╭──────────────────────────╮ ╭───────────────────╮ │ │","│ ╰───────▶│ Console API proxy Worker │ │ Model registry KV │ │ │","│ ╰─────────────┬────────────╯ ╰───────────────────╯ │ │","│ ╭──────────────────────╯ │ │","│ │ │ │","│ │ │ │","│ │ ╭──────────────────────────┬───────────────────────────┤ │","│ │ ▼ ▼ │ │","│ │ ╭───────────────╮ ╭─────────────────────────╮ │ │","│ │ │ Upstash Redis │ │ Axiom / Cloudflare logs │ │ │","│ │ ╰───────────────╯ ╰─────────────────────────╯ │ │","│ │ │ │","│ │ │ │","│ │ │ │","│ │ ╭──────────────────────────────────────┤ │","│ │ ▼ │ │","│ │ ╭──────────────────────────╮ │ │","│ │ │ Pipeline to R2 data lake │ │ │","│ │ ╰──────────────────────────╯ │ │","╰─│──────────────────────────────────────────────────────────────────────────│─╯"," │ public DATABASE_URL │","╭─│──────────────────────────────────────────────────────────────────────────│─╮","│ │ ╭─────────────╮ ╭─────╮ │ │","│ │ │ EKS cluster │ │ ECR ├─────────────┤ │","│ │ ╰─────────────╯ ╰─────╯ │ │","│ │ │ │","│ │ │ │","│ │ │ │","│ │ │ │","│ │ │ │","│ │ │ │","│ │ │ │","│ │ │ │","│ │ │ │","│ │ │ │","│ │ │ │","│ │ │ │","│ │ Cloudflare VPC service ╭─────────────╮ │ │","│ │ ├─────────────┤ │ │","│ ├───── private DATABASE_AWS_URL ───────▶│ PlanetScale │◀───────────────────┤ │","│ │ ├─────────────┤ │ │","│ │ ╰─────────────╯ │ │","│ │ │ │","│ │ │ │","│ │ │ │","│ │ │ │","│ │ │ │","│ │ │ │","│ │ │ │","│ │ │ │","│ │ │ │","│ │ │ │","│ │ │ │","│ │ │ │","│ │ │ │","│ │ │ │","│ │ │ │","│ │ │ │","│ │ │ │","│ │ │ │","│ │ │ │","│ │ │ │","│ │ │ │","│ │ │ │","│ │ │ │","│ │ │ │","│ │ │ │","│ │ │ │","│ │ │ │","│ │ ╭─────────────────╮ │ │","│ │ │ Console API pod │ │ │","│ ╰─────────────────────────▶┤ 1 replica │◀────────────────────────────┤ │","│ ╰────────┬────────╯ │ │","│ ╭───────────────────────────────────╯ │ │","│ │ │ │","│ │ │ │","│ │ │ │","│ │ ╭────────────────╮ │ │","│ ╰───────────────▶│ OTel collector │ │ │","│ ╰────────────────╯ │ │","╰─ AWS ──────────────────────────────────────────────────────────────────────│─╯"," ╭──────────────────────────────────────╮ │"," │ Anthropic / OpenAI / other providers │◀──────────────────╯"," ╰──────────────────────────────────────╯"],"runs":[[[32,1],[2,5],[12,10],[2,5]],[[32,1],[1,5],[14,1],[1,5]],[[32,1],[1,5],[14,1],[1,5]],[[32,1],[1,5],[14,1],[1,5]],[[32,1],[1,5],[14,1],[1,5]],[[32,1],[1,5],[14,1],[1,5]],[[32,1],[1,5],[14,1],[1,5]],[[13,1],[19,2],[1,5],[14,1],[1,5]],[[13,1],[1,2],[17,3],[1,4],[16,5]],[[13,1],[19,2],[15,1],[1,5]],[[47,1],[1,5]],[[47,1],[1,5],[14,10]],[[2,0],[12,0],[33,0],[1,5],[32,0]],[[1,0],[30,1],[15,2],[1,1],[1,5],[31,1],[1,0]],[[1,0],[30,1],[1,2],[13,3],[1,2],[2,5],[31,1],[1,0]],[[1,0],[30,1],[7,2],[1,4],[7,2],[33,1],[1,0]],[[1,0],[22,1],[32,5],[24,1],[1,0]],[[1,0],[22,1],[1,5],[30,1],[1,5],[24,1],[1,0]],[[1,0],[9,1],[27,2],[5,1],[25,2],[12,1],[1,0]],[[1,0],[9,1],[1,2],[25,3],[1,2],[5,1],[1,2],[23,3],[1,2],[12,1],[1,0]],[[1,0],[9,1],[13,2],[1,4],[13,2],[5,1],[12,2],[1,4],[12,2],[12,1],[1,0]],[[1,0],[1,1],[22,5],[30,1],[24,5],[1,1],[1,0]],[[1,0],[1,1],[1,5],[51,1],[1,5],[22,1],[1,5],[1,1],[1,0]],[[1,0],[1,1],[1,5],[7,1],[27,10],[17,1],[1,5],[22,1],[1,5],[1,1],[1,0]],[[1,0],[1,1],[1,5],[8,1],[28,2],[5,1],[21,2],[12,1],[1,5],[1,1],[1,0]],[[1,0],[1,1],[9,5],[1,2],[26,3],[1,2],[5,1],[1,2],[19,3],[1,2],[12,1],[1,5],[1,1],[1,0]],[[1,0],[10,1],[14,2],[1,4],[13,2],[5,1],[21,2],[12,1],[1,5],[1,1],[1,0]],[[1,0],[1,1],[24,5],[51,1],[1,5],[1,1],[1,0]],[[1,0],[1,1],[1,5],[74,1],[1,5],[1,1],[1,0]],[[1,0],[1,1],[1,5],[74,1],[1,5],[1,1],[1,0]],[[1,0],[1,1],[1,5],[19,1],[56,5],[1,1],[1,0]],[[1,0],[1,1],[1,5],[19,1],[1,5],[26,1],[1,5],[27,1],[1,5],[1,1],[1,0]],[[1,0],[1,1],[1,5],[11,1],[17,2],[5,1],[27,2],[14,1],[1,5],[1,1],[1,0]],[[1,0],[1,1],[1,5],[11,1],[1,2],[15,3],[1,2],[5,1],[1,2],[25,3],[1,2],[14,1],[1,5],[1,1],[1,0]],[[1,0],[1,1],[1,5],[11,1],[17,2],[5,1],[27,2],[14,1],[1,5],[1,1],[1,0]],[[1,0],[1,1],[1,5],[74,1],[1,5],[1,1],[1,0]],[[1,0],[1,1],[1,5],[74,1],[1,5],[1,1],[1,0]],[[1,0],[1,1],[1,5],[74,1],[1,5],[1,1],[1,0]],[[1,0],[1,1],[1,5],[35,1],[40,5],[1,1],[1,0]],[[1,0],[1,1],[1,5],[35,1],[1,5],[38,1],[1,5],[1,1],[1,0]],[[1,0],[1,1],[1,5],[21,1],[28,2],[25,1],[1,5],[1,1],[1,0]],[[1,0],[1,1],[1,5],[21,1],[1,2],[26,3],[1,2],[25,1],[1,5],[1,1],[1,0]],[[1,0],[1,1],[1,5],[21,1],[28,2],[25,1],[1,5],[1,1],[1,0]],[[2,0],[1,5],[74,0],[1,5],[2,0]],[[2,1],[1,5],[53,1],[21,10],[1,5]],[[2,0],[1,5],[74,0],[1,5],[2,0]],[[1,0],[1,1],[1,5],[34,1],[15,2],[5,1],[7,2],[13,1],[1,5],[1,1],[1,0]],[[1,0],[1,1],[1,5],[34,1],[1,2],[13,3],[1,2],[5,1],[1,2],[5,3],[2,9],[3,6],[3,4],[3,7],[3,8],[1,5],[1,1],[1,0]],[[1,0],[1,1],[1,5],[34,1],[15,2],[5,1],[7,2],[13,1],[1,5],[1,1],[1,0]],[[1,0],[1,1],[1,5],[74,1],[1,5],[1,1],[1,0]],[[1,0],[1,1],[1,5],[74,1],[1,5],[1,1],[1,0]],[[1,0],[1,1],[1,5],[74,1],[1,5],[1,1],[1,0]],[[1,0],[1,1],[1,5],[74,1],[1,5],[1,1],[1,0]],[[1,0],[1,1],[1,5],[74,1],[1,5],[1,1],[1,0]],[[1,0],[1,1],[1,5],[74,1],[1,5],[1,1],[1,0]],[[1,0],[1,1],[1,5],[74,1],[1,5],[1,1],[1,0]],[[1,0],[1,1],[1,5],[74,1],[1,5],[1,1],[1,0]],[[1,0],[1,1],[1,5],[74,1],[1,5],[1,1],[1,0]],[[1,0],[1,1],[1,5],[74,1],[1,5],[1,1],[1,0]],[[1,0],[1,1],[1,5],[74,1],[1,5],[1,1],[1,0]],[[1,0],[1,1],[1,5],[74,1],[1,5],[1,1],[1,0]],[[1,0],[1,1],[1,5],[7,1],[24,10],[8,1],[15,2],[20,1],[1,5],[1,1],[1,0]],[[1,0],[1,1],[1,5],[39,1],[15,2],[20,1],[1,5],[1,1],[1,0]],[[1,0],[1,1],[6,5],[26,10],[8,5],[1,2],[13,3],[1,2],[21,5],[1,1],[1,0]],[[1,0],[1,1],[1,5],[39,1],[15,2],[20,1],[1,5],[1,1],[1,0]],[[1,0],[1,1],[1,5],[39,1],[15,2],[20,1],[1,5],[1,1],[1,0]],[[1,0],[1,1],[1,5],[74,1],[1,5],[1,1],[1,0]],[[1,0],[1,1],[1,5],[74,1],[1,5],[1,1],[1,0]],[[1,0],[1,1],[1,5],[74,1],[1,5],[1,1],[1,0]],[[1,0],[1,1],[1,5],[74,1],[1,5],[1,1],[1,0]],[[1,0],[1,1],[1,5],[74,1],[1,5],[1,1],[1,0]],[[1,0],[1,1],[1,5],[74,1],[1,5],[1,1],[1,0]],[[1,0],[1,1],[1,5],[74,1],[1,5],[1,1],[1,0]],[[1,0],[1,1],[1,5],[74,1],[1,5],[1,1],[1,0]],[[1,0],[1,1],[1,5],[74,1],[1,5],[1,1],[1,0]],[[1,0],[1,1],[1,5],[74,1],[1,5],[1,1],[1,0]],[[1,0],[1,1],[1,5],[74,1],[1,5],[1,1],[1,0]],[[1,0],[1,1],[1,5],[74,1],[1,5],[1,1],[1,0]],[[1,0],[1,1],[1,5],[74,1],[1,5],[1,1],[1,0]],[[1,0],[1,1],[1,5],[74,1],[1,5],[1,1],[1,0]],[[1,0],[1,1],[1,5],[74,1],[1,5],[1,1],[1,0]],[[1,0],[1,1],[1,5],[74,1],[1,5],[1,1],[1,0]],[[1,0],[1,1],[1,5],[74,1],[1,5],[1,1],[1,0]],[[1,0],[1,1],[1,5],[74,1],[1,5],[1,1],[1,0]],[[1,0],[1,1],[1,5],[74,1],[1,5],[1,1],[1,0]],[[1,0],[1,1],[1,5],[74,1],[1,5],[1,1],[1,0]],[[1,0],[1,1],[1,5],[74,1],[1,5],[1,1],[1,0]],[[1,0],[1,1],[1,5],[74,1],[1,5],[1,1],[1,0]],[[1,0],[1,1],[1,5],[74,1],[1,5],[1,1],[1,0]],[[1,0],[1,1],[1,5],[74,1],[1,5],[1,1],[1,0]],[[1,0],[1,1],[1,5],[74,1],[1,5],[1,1],[1,0]],[[1,0],[1,1],[1,5],[74,1],[1,5],[1,1],[1,0]],[[1,0],[1,1],[1,5],[74,1],[1,5],[1,1],[1,0]],[[1,0],[1,1],[1,5],[26,1],[19,2],[29,1],[1,5],[1,1],[1,0]],[[1,0],[1,1],[1,5],[26,1],[1,2],[17,3],[1,2],[29,1],[1,5],[1,1],[1,0]],[[1,0],[1,1],[27,5],[1,4],[17,3],[1,2],[30,5],[1,1],[1,0]],[[1,0],[28,1],[9,2],[1,4],[9,2],[29,1],[1,5],[1,1],[1,0]],[[1,0],[1,1],[37,5],[38,1],[1,5],[1,1],[1,0]],[[1,0],[1,1],[1,5],[74,1],[1,5],[1,1],[1,0]],[[1,0],[1,1],[1,5],[74,1],[1,5],[1,1],[1,0]],[[1,0],[1,1],[1,5],[74,1],[1,5],[1,1],[1,0]],[[1,0],[1,1],[1,5],[16,1],[18,2],[40,1],[1,5],[1,1],[1,0]],[[1,0],[1,1],[17,5],[1,2],[16,3],[1,2],[40,1],[1,5],[1,1],[1,0]],[[1,0],[18,1],[18,2],[40,1],[1,5],[1,1],[1,0]],[[2,0],[5,0],[70,0],[1,5],[2,0]],[[18,1],[40,2],[19,1],[1,5]],[[18,1],[1,2],[38,3],[1,2],[20,5]],[[18,1],[40,2]]]}, + {"width":60,"source":"\n%% product history\ntimeline LR\n title Product &<br/>Platform\n\n section Foundation\n 2024 : Prototype : First release\n : Public beta\n section Growth\n 2025 : \"Scale: ≥ 10k\"\n","height":13,"lines":[" Product &"," Platform","","Foundation ───┐"," │"," 2024 ───● Prototype"," │ First release"," │ Public beta"," │"," Growth ───┤"," │"," 2025 ───● Scale: ≥ 10k"," │"],"runs":[[[11,1],[9,3]],[[11,1],[8,3]],[],[[10,12],[1,1],[1,33],[1,34],[1,35],[1,2]],[[14,1],[1,2]],[[6,1],[4,13],[1,1],[1,36],[1,37],[1,38],[1,2],[2,1],[9,3]],[[14,1],[1,2],[2,1],[13,3]],[[14,1],[1,2],[2,1],[11,3]],[[14,1],[1,2]],[[4,1],[6,12],[1,1],[1,33],[1,34],[1,35],[1,2]],[[14,1],[1,2]],[[6,1],[4,13],[1,1],[1,36],[1,37],[1,38],[1,2],[2,1],[12,3]],[[14,1],[1,2]]]}, + {"width":60,"source":"timeline\n title Product &<br/>Platform\n section Foundation<br/>phase\n 2024 : Prototype<br/>ready : First release\n : Scale ≥ 10k","height":11,"lines":[" Product &"," Platform","","Foundation ───┐"," phase │"," │"," 2024 ───● Prototype"," │ ready"," │ First release"," │ Scale ≥ 10k"," │"],"runs":[[[11,1],[9,3]],[[11,1],[8,3]],[],[[10,12],[1,1],[1,33],[1,34],[1,35],[1,2]],[[5,1],[5,12],[4,1],[1,2]],[[14,1],[1,2]],[[6,1],[4,13],[1,1],[1,36],[1,37],[1,38],[1,2],[2,1],[9,3]],[[14,1],[1,2],[2,1],[5,3]],[[14,1],[1,2],[2,1],[13,3]],[[14,1],[1,2],[2,1],[11,3]],[[14,1],[1,2]]]}, + {"width":60,"source":"timeline\n 2024 : https://example.com : event:detail : next event","height":4,"lines":["2024 ───● https://example.com"," │ event:detail"," │ next event"," │"],"runs":[[[4,13],[1,1],[1,36],[1,37],[1,38],[1,2],[2,1],[19,3]],[[8,1],[1,2],[2,1],[12,3]],[[8,1],[1,2],[2,1],[10,3]],[[8,1],[1,2]]]}, + {"width":60,"source":"timeline\n 2024\n : First release\n : Public beta","height":3,"lines":["2024 ───● First release"," │ Public beta"," │"],"runs":[[[4,13],[1,1],[1,36],[1,37],[1,38],[1,2],[2,1],[13,3]],[[8,1],[1,2],[2,1],[11,3]],[[8,1],[1,2]]]}, + {"width":60,"source":"timeline\n # product history\n accTitle: Product timeline\n accDescr Product release history\n 2024 : Prototype %% internal note","height":2,"lines":["2024 ───● Prototype"," │"],"runs":[[[4,13],[1,1],[1,36],[1,37],[1,38],[1,2],[2,1],[9,3]],[[8,1],[1,2]]]}, + {"width":60,"source":"timeline\n accDescr {\n Product milestones by year.\n Includes launch and growth.\n }\n 2024 : Ship","height":2,"lines":["2024 ───● Ship"," │"],"runs":[[[4,13],[1,1],[1,36],[1,37],[1,38],[1,2],[2,1],[4,3]],[[8,1],[1,2]]]}, + {"width":60,"source":"flowchart LR\n A -.-> B\n C -.->D.- E\n F -. note .-> G\n H -.-> I -. x .- J","lines":null} + ] +} diff --git a/packages/cli-rs/parity/fixtures/P.3/markdown.json b/packages/cli-rs/parity/fixtures/P.3/markdown.json new file mode 100644 index 000000000000..dc9e52a13a1f --- /dev/null +++ b/packages/cli-rs/parity/fixtures/P.3/markdown.json @@ -0,0 +1,32 @@ +{"width":80,"height":30,"styles":["#ffffffff #080808ff 0","#eeeeeeff #080808ff 0","#808080ff #080808ff 0","#ffffffff #1b1b1bff 0","#868686ff #080808ff 0","#8d8d8dff #080808ff 0","#939393ff #080808ff 0","#a6a6a6ff #080808ff 0","#999999ff #080808ff 0","#a0a0a0ff #080808ff 0","#a5b19fff #080808ff 0","#a3bc97ff #080808ff 0","#a2c790ff #080808ff 0","#a1d189ff #080808ff 0","#9ee77aff #080808ff 0","#f5a742ff #080808ff 0","#e8a753ff #080808ff 0","#dba763ff #080808ff 0","#cea774ff #080808ff 0","#c0a685ff #080808ff 0","#b3a695ff #080808ff 0"],"lines":[ +[" Two diagrams. ",[[0,3],[1,13],[0,64]]], +[" ",[[0,80]]], +[" ",[[0,80]]], +[" ╭──────── no ────────╮ ",[[0,7],[2,9],[3,4],[2,9],[0,51]]], +[" │ │ ",[[0,7],[2,1],[0,20],[4,1],[0,51]]], +[" │ │ ",[[0,7],[2,1],[0,20],[5,1],[0,51]]], +[" │ │ ",[[0,7],[2,1],[0,20],[6,1],[0,51]]], +[" ▼ ╭───┴───╮ ╭───────╮ ",[[0,7],[2,1],[0,16],[7,4],[8,1],[7,4],[0,14],[7,9],[0,24]]], +[" ╭──────╮ ╭─╯ ╰─╮ ├───────┤ ",[[0,3],[7,8],[0,11],[7,3],[0,7],[7,3],[0,12],[7,9],[0,24]]], +[" │ Idea ├──────────▶│ Ready? ├─── yes ───▶│ Store │ ",[[0,3],[7,1],[0,6],[9,2],[8,2],[6,3],[5,2],[4,2],[2,1],[7,1],[0,11],[8,1],[6,1],[5,1],[4,1],[3,5],[2,4],[7,1],[0,7],[7,1],[0,24]]], +[" ╰──────╯ ╰─╮ ╭─╯ ├───────┤ ",[[0,3],[7,8],[0,11],[7,3],[0,7],[7,3],[0,12],[7,9],[0,24]]], +[" ╰───────╯ ╰───────╯ ",[[0,24],[7,9],[0,14],[7,9],[0,24]]], +[" ",[[0,80]]], +[" ",[[0,80]]], +[" Client Server ",[[0,80]]], +[" │ │ ",[[0,6],[7,1],[0,17],[7,1],[0,55]]], +[" ├─── request ─────► ",[[0,6],[10,1],[11,1],[12,1],[13,1],[14,15],[0,55]]], +[" │ │ ",[[0,6],[7,1],[0,17],[7,1],[0,55]]], +[" ◄─── response ────┤ ",[[0,6],[15,14],[16,1],[17,1],[18,1],[19,1],[20,1],[0,55]]], +[" │ │ ",[[0,6],[7,1],[0,17],[7,1],[0,55]]], +[" ",[[0,80]]], +[" After the diagrams. ",[[0,3],[1,19],[0,58]]], +[" ",[[0,80]]], +[" ",[[0,80]]], +[" ",[[0,80]]], +[" ",[[0,80]]], +[" ",[[0,80]]], +[" ",[[0,80]]], +[" ",[[0,80]]], +[" ",[[0,80]]] +]} diff --git a/packages/cli-rs/parity/fixtures/P.3/message.json b/packages/cli-rs/parity/fixtures/P.3/message.json new file mode 100644 index 000000000000..9863894df550 --- /dev/null +++ b/packages/cli-rs/parity/fixtures/P.3/message.json @@ -0,0 +1,3 @@ +{ + "message": "Two diagrams.\n\n```mermaid\nflowchart LR\n A[Idea] --> B{Ready?}\n B -->|yes| C[(Store)]\n B -->|no| A\n```\n\n```mermaid\nsequenceDiagram\n Client->>Server: request\n Server-->>Client: response\n```\n\nAfter the diagrams." +} diff --git a/packages/cli-rs/parity/fixtures/P.8/cache-cli.app.json b/packages/cli-rs/parity/fixtures/P.8/cache-cli.app.json new file mode 100644 index 000000000000..91c1bd902086 --- /dev/null +++ b/packages/cli-rs/parity/fixtures/P.8/cache-cli.app.json @@ -0,0 +1,64 @@ +{ + "scenario": "P.8/cache-cli", + "width": 140, + "height": 34, + "directory": "/tmp/opencode/packages/tui", + "config": { + "experimental": {"new-designs":true}, + "plugins": ["opencode-sidebar-tokens@0.1.3"], + "animations": false, + "theme": {"name":"opencode"} + }, + "args": { + "sessionID": "ses_t" + }, + "env": { + "OPENCODE_PARITY_PLUGIN": "npm" + }, + "cache": {"opencode-sidebar-tokens@0.1.3":"opencode-sidebar-tokens"}, + "routes": [ + {"path":"/api/session/ses_t","json":{"data":{"id":"ses_t","title":"Count the tokens","projectID":"proj_test","cost":0,"tokens":{"input":0,"output":0,"reasoning":0,"cache":{"read":0,"write":0}},"time":{"created":2,"updated":2},"location":{"directory":"/tmp/opencode/packages/tui"}}}}, + {"path":"/api/session","json":{"data":[{"id":"ses_t","title":"Count the tokens","projectID":"proj_test","cost":0,"tokens":{"input":0,"output":0,"reasoning":0,"cache":{"read":0,"write":0}},"time":{"created":2,"updated":2},"location":{"directory":"/tmp/opencode/packages/tui"}}],"cursor":{}}}, + {"path":"/api/session/ses_t/message","json":{"data":[{"id":"msg_2","type":"assistant","agent":"build","model":{"providerID":"provider","id":"model"},"content":[{"type":"text","text":"Counted."}],"finish":"stop","time":{"created":2000,"completed":2001}},{"id":"msg_1","type":"user","text":"Count them","time":{"created":1000}}],"cursor":{}}}, + {"path":"/api/session/ses_t/inbox","json":{"data":[]}} + ], + "steps": [ + {"checkpoint":"empty","until":"Cache write","fixture":"P.8/cache-cli/empty"}, + {"event":{"id":"evt_usage","created":3,"type":"session.usage.updated","location":{"directory":"/tmp/opencode/packages/tui"},"data":{"sessionID":"ses_t","cost":0.08,"tokens":{"input":22870,"output":100,"reasoning":0,"cache":{"read":0,"write":0}}}}}, + {"checkpoint":"totals","until":"22,870","fixture":"P.8/cache-cli/totals"} + ], + "requests": { + "writes": [], + "reads": [ + {"method":"GET","path":"/api/agent","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":[]}}, + {"method":"GET","path":"/api/command","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":[]}}, + {"method":"GET","path":"/api/config","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":[]}, + {"method":"GET","path":"/api/experimental/job","query":{"descendants":["true"],"sessionID":["ses_t"],"status":["running"]},"status":200,"json":{"data":[]}}, + {"method":"GET","path":"/api/experimental/migration/v1","query":{},"status":200,"json":{"status":"completed"}}, + {"method":"GET","path":"/api/experimental/session/ses_t/terminal","query":{},"status":200,"json":{"data":[]}}, + {"method":"GET","path":"/api/form","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode"}},"data":[]}}, + {"method":"GET","path":"/api/fs/list","query":{"location[directory]":["<cwd>"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":[]}}, + {"method":"GET","path":"/api/info","query":{},"status":200,"json":{"version":"test","pid":0,"urls":[],"paths":{"tmp":"/tmp"},"capabilities":{"persistentPty":true}}}, + {"method":"GET","path":"/api/integration","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":[]}}, + {"method":"GET","path":"/api/location","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}}}, + {"method":"GET","path":"/api/mcp","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":[]}}, + {"method":"GET","path":"/api/mcp/resource","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":{"resources":[],"templates":[]}}}, + {"method":"GET","path":"/api/model","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":[]}}, + {"method":"GET","path":"/api/plugin","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":[]}}, + {"method":"GET","path":"/api/project","query":{},"status":200,"json":[]}, + {"method":"GET","path":"/api/provider","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":[]}}, + {"method":"GET","path":"/api/reference","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode/packages/tui","canonical":"/tmp/opencode/packages/tui"}},"data":[]}}, + {"method":"GET","path":"/api/session","query":{"limit":["200"],"order":["desc"],"parentID":["ses_t"]},"status":200,"json":{"data":[{"id":"ses_t","title":"Count the tokens","projectID":"proj_test","cost":0,"tokens":{"input":0,"output":0,"reasoning":0,"cache":{"read":0,"write":0}},"time":{"created":2,"updated":2},"location":{"directory":"/tmp/opencode/packages/tui"}}],"cursor":{}}}, + {"method":"GET","path":"/api/session/active","query":{},"status":200,"json":{"data":{}}}, + {"method":"GET","path":"/api/session/ses_t","query":{},"status":200,"json":{"data":{"id":"ses_t","title":"Count the tokens","projectID":"proj_test","cost":0,"tokens":{"input":0,"output":0,"reasoning":0,"cache":{"read":0,"write":0}},"time":{"created":2,"updated":2},"location":{"directory":"/tmp/opencode/packages/tui"}}}}, + {"method":"GET","path":"/api/session/ses_t/form","query":{},"status":200,"json":{"data":[]}}, + {"method":"GET","path":"/api/session/ses_t/inbox","query":{},"status":200,"json":{"data":[]}}, + {"method":"GET","path":"/api/session/ses_t/message","query":{"limit":["20"],"order":["desc"]},"status":200,"json":{"data":[{"id":"msg_2","type":"assistant","agent":"build","model":{"providerID":"provider","id":"model"},"content":[{"type":"text","text":"Counted."}],"finish":"stop","time":{"created":2000,"completed":2001}},{"id":"msg_1","type":"user","text":"Count them","time":{"created":1000}}],"cursor":{}}}, + {"method":"GET","path":"/api/session/ses_t/permission","query":{},"status":200,"json":{"data":[]}}, + {"method":"GET","path":"/api/shell","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":[]}}, + {"method":"GET","path":"/api/skill","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":[]}}, + {"method":"GET","path":"/api/vcs","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":{"branch":{"current":"main","default":"main"}}}}, + {"method":"POST","path":"/api/rpc/opencode.goal/get","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"body":{"input":{"sessionID":"ses_t"}},"status":200,"json":{"output":null}} + ] + } +} diff --git a/packages/cli-rs/parity/fixtures/P.8/cache-cli/empty.json b/packages/cli-rs/parity/fixtures/P.8/cache-cli/empty.json new file mode 100644 index 000000000000..2c885a3019d0 --- /dev/null +++ b/packages/cli-rs/parity/fixtures/P.8/cache-cli/empty.json @@ -0,0 +1,36 @@ +{"width":140,"height":34,"styles":["#ffffffff #202020ff 0","#ffffffff #202020ff 1","#808080ff #080808ff 0","#ffffffff #080808ff 0","#ffffffff #141414ff 0","#7699feff #141414ff 0","#ffffffff #141414ff 1","#eeeeeeff #080808ff 0","#808080ff #141414ff 0","#7699feff #080808ff 0","#808080ff #202020ff 0","#484848ff #080808ff 0","#202020ff #080808ff 0"],"lines":[ +[" Count the tokens + ",[[0,3],[1,16],[0,13],[2,3],[3,105]]], +[" ",[[3,98],[4,42]]], +[" ┃ Count the tokens ",[[3,2],[5,1],[4,93],[3,2],[4,2],[6,16],[4,24]]], +[" ┃ Count them ",[[3,2],[5,1],[4,93],[3,2],[4,42]]], +[" ┃ ",[[3,2],[5,1],[4,93],[3,2],[4,42]]], +[" Session tokens ",[[3,98],[4,2],[6,14],[4,26]]], +[" Counted. Input 0 ",[[3,5],[7,8],[3,85],[4,2],[8,5],[4,35]]], +[" Output 0 ",[[3,98],[4,2],[8,6],[4,34]]], +[" Build · provider/model · 1.0s Cache read 0 ",[[3,5],[9,5],[2,24],[3,64],[4,2],[8,10],[4,30]]], +[" Cache write 0 ",[[3,98],[4,2],[8,11],[4,29]]], +[" ",[[3,98],[4,42]]], +[" ",[[3,98],[4,42]]], +[" ",[[3,98],[4,42]]], +[" ",[[3,98],[4,42]]], +[" ",[[3,98],[4,42]]], +[" ",[[3,98],[4,42]]], +[" ",[[3,98],[4,42]]], +[" ",[[3,98],[4,42]]], +[" ",[[3,98],[4,42]]], +[" ",[[3,98],[4,2],[0,38],[4,2]]], +[" ⬖ Getting started ✕ ",[[3,98],[4,2],[0,4],[1,15],[0,16],[10,1],[0,2],[4,2]]], +[" ",[[3,98],[4,2],[0,38],[4,2]]], +[" OpenCode includes free models so ",[[3,98],[4,2],[0,4],[10,32],[0,2],[4,2]]], +[" you can start immediately. ",[[3,98],[4,2],[0,4],[10,26],[0,8],[4,2]]], +[" ",[[3,98],[4,2],[0,38],[4,2]]], +[" Connect from 75+ providers to ",[[3,98],[4,2],[0,4],[10,30],[0,4],[4,2]]], +[" use other models, including ",[[3,98],[4,2],[0,4],[10,28],[0,6],[4,2]]], +[" ┃ Claude, GPT, Gemini etc ",[[3,2],[11,1],[0,93],[3,2],[4,2],[0,4],[10,23],[0,11],[4,2]]], +[" ┃ ",[[3,2],[11,1],[0,93],[3,2],[4,2],[0,38],[4,2]]], +[" ┃ Connect provider /connect ",[[3,2],[11,1],[0,93],[3,2],[4,2],[0,28],[10,8],[0,2],[4,2]]], +[" ┃ ",[[3,2],[11,1],[0,93],[3,2],[4,2],[0,38],[4,2]]], +[" ╹▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀ ",[[3,2],[11,1],[12,93],[3,2],[4,42]]], +[" /tmp/opencode/packages/tui:main shift+tab agents ctrl+p commands /tmp/opencode/packages/tui:main ",[[3,2],[2,31],[3,40],[2,6],[3,9],[2,8],[3,2],[4,2],[8,31],[4,9]]], +[" ",[[3,98],[4,42]]] +]} diff --git a/packages/cli-rs/parity/fixtures/P.8/cache-cli/totals.json b/packages/cli-rs/parity/fixtures/P.8/cache-cli/totals.json new file mode 100644 index 000000000000..6d1e0a3f9d93 --- /dev/null +++ b/packages/cli-rs/parity/fixtures/P.8/cache-cli/totals.json @@ -0,0 +1,36 @@ +{"width":140,"height":34,"styles":["#ffffffff #202020ff 0","#ffffffff #202020ff 1","#808080ff #080808ff 0","#ffffffff #080808ff 0","#ffffffff #141414ff 0","#7699feff #141414ff 0","#ffffffff #141414ff 1","#808080ff #141414ff 0","#eeeeeeff #080808ff 0","#7699feff #080808ff 0","#808080ff #202020ff 0","#484848ff #080808ff 0","#202020ff #080808ff 0"],"lines":[ +[" Count the tokens + ",[[0,3],[1,16],[0,13],[2,3],[3,105]]], +[" ",[[3,98],[4,42]]], +[" ┃ Count the tokens ",[[3,2],[5,1],[4,93],[3,2],[4,2],[6,16],[4,24]]], +[" ┃ Count them ",[[3,2],[5,1],[4,93],[3,2],[4,42]]], +[" ┃ Context ",[[3,2],[5,1],[4,93],[3,2],[4,2],[6,7],[4,33]]], +[" $0.08 spent ",[[3,98],[4,2],[7,11],[4,29]]], +[" Counted. ",[[3,5],[8,8],[3,85],[4,42]]], +[" ",[[3,98],[4,42]]], +[" Build · provider/model · 1.0s Session tokens ",[[3,5],[9,5],[2,24],[3,64],[4,2],[6,14],[4,26]]], +[" Input 22,870 ",[[3,98],[4,2],[7,5],[4,35]]], +[" Output 100 ",[[3,98],[4,2],[7,6],[4,34]]], +[" Cache read 0 ",[[3,98],[4,2],[7,10],[4,30]]], +[" Cache write 0 ",[[3,98],[4,2],[7,11],[4,29]]], +[" ",[[3,98],[4,42]]], +[" ",[[3,98],[4,42]]], +[" ",[[3,98],[4,42]]], +[" ",[[3,98],[4,42]]], +[" ",[[3,98],[4,42]]], +[" ",[[3,98],[4,42]]], +[" ",[[3,98],[4,2],[0,38],[4,2]]], +[" ⬖ Getting started ✕ ",[[3,98],[4,2],[0,4],[1,15],[0,16],[10,1],[0,2],[4,2]]], +[" ",[[3,98],[4,2],[0,38],[4,2]]], +[" OpenCode includes free models so ",[[3,98],[4,2],[0,4],[10,32],[0,2],[4,2]]], +[" you can start immediately. ",[[3,98],[4,2],[0,4],[10,26],[0,8],[4,2]]], +[" ",[[3,98],[4,2],[0,38],[4,2]]], +[" Connect from 75+ providers to ",[[3,98],[4,2],[0,4],[10,30],[0,4],[4,2]]], +[" use other models, including ",[[3,98],[4,2],[0,4],[10,28],[0,6],[4,2]]], +[" ┃ Claude, GPT, Gemini etc ",[[3,2],[11,1],[0,93],[3,2],[4,2],[0,4],[10,23],[0,11],[4,2]]], +[" ┃ ",[[3,2],[11,1],[0,93],[3,2],[4,2],[0,38],[4,2]]], +[" ┃ Connect provider /connect ",[[3,2],[11,1],[0,93],[3,2],[4,2],[0,28],[10,8],[0,2],[4,2]]], +[" ┃ ",[[3,2],[11,1],[0,93],[3,2],[4,2],[0,38],[4,2]]], +[" ╹▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀ ",[[3,2],[11,1],[12,93],[3,2],[4,42]]], +[" /tmp/opencode/packages/tui:main $0.08 ctrl+p commands /tmp/opencode/packages/tui:main ",[[3,2],[2,31],[3,41],[2,5],[3,9],[2,8],[3,2],[4,2],[7,31],[4,9]]], +[" ",[[3,98],[4,42]]] +]} diff --git a/packages/cli-rs/parity/fixtures/P.8/cache-server.app.json b/packages/cli-rs/parity/fixtures/P.8/cache-server.app.json new file mode 100644 index 000000000000..34494da6830f --- /dev/null +++ b/packages/cli-rs/parity/fixtures/P.8/cache-server.app.json @@ -0,0 +1,66 @@ +{ + "scenario": "P.8/cache-server", + "width": 140, + "height": 34, + "directory": "/tmp/opencode/packages/tui", + "config": { + "experimental": {"new-designs":true}, + "animations": false, + "theme": {"name":"opencode"} + }, + "args": { + "sessionID": "ses_l" + }, + "env": { + "OPENCODE_PARITY_PLUGIN": "npm" + }, + "cache": {"opencode-sidebar-prompt@0.1.6":"opencode-sidebar-prompt"}, + "routes": [ + {"path":"/api/plugin","json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":[{"id":"sidebar-prompt","source":{"type":"package","target":"opencode-sidebar-prompt@0.1.6"},"features":{"server":true,"tui":true},"state":{"status":"active"}}]}}, + {"path":"/api/session/ses_l","json":{"data":{"id":"ses_l","title":"Release notes","projectID":"proj_test","cost":0,"tokens":{"input":0,"output":0,"reasoning":0,"cache":{"read":0,"write":0}},"time":{"created":2,"updated":2},"location":{"directory":"/tmp/opencode/packages/tui"}}}}, + {"path":"/api/session","json":{"data":[{"id":"ses_l","title":"Release notes","projectID":"proj_test","cost":0,"tokens":{"input":0,"output":0,"reasoning":0,"cache":{"read":0,"write":0}},"time":{"created":2,"updated":2},"location":{"directory":"/tmp/opencode/packages/tui"}}],"cursor":{}}}, + {"path":"/api/session/ses_l/message","json":{"data":[{"id":"msg_2","type":"assistant","agent":"build","model":{"providerID":"provider","id":"model"},"content":[{"type":"text","text":"Drafted."}],"finish":"stop","time":{"created":2000,"completed":2001}},{"id":"msg_1","type":"user","text":"Write the release notes for 2.3: the new sidebar, the plugin host, and the fixes to the theme picker. Keep each line short, link every pull request, and leave the upgrade steps for last.","time":{"created":1000}}],"cursor":{}}}, + {"path":"/api/session/ses_l/inbox","json":{"data":[]}} + ], + "steps": [ + {"checkpoint":"sidebar","until":"Open full prompt","fixture":"P.8/cache-server/sidebar"}, + {"type":"/lastprompt"}, + {"checkpoint":"slash","until":"Show full last prompt","fixture":"P.8/cache-server/slash"}, + {"keys":["enter"]}, + {"checkpoint":"dialog","until":"Esc · Close","fixture":"P.8/cache-server/dialog"} + ], + "requests": { + "writes": [], + "reads": [ + {"method":"GET","path":"/api/agent","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":[]}}, + {"method":"GET","path":"/api/command","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":[]}}, + {"method":"GET","path":"/api/config","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":[]}, + {"method":"GET","path":"/api/experimental/job","query":{"descendants":["true"],"sessionID":["ses_l"],"status":["running"]},"status":200,"json":{"data":[]}}, + {"method":"GET","path":"/api/experimental/migration/v1","query":{},"status":200,"json":{"status":"completed"}}, + {"method":"GET","path":"/api/experimental/session/ses_l/terminal","query":{},"status":200,"json":{"data":[]}}, + {"method":"GET","path":"/api/form","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode"}},"data":[]}}, + {"method":"GET","path":"/api/fs/list","query":{"location[directory]":["<cwd>"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":[]}}, + {"method":"GET","path":"/api/info","query":{},"status":200,"json":{"version":"test","pid":0,"urls":[],"paths":{"tmp":"/tmp"},"capabilities":{"persistentPty":true}}}, + {"method":"GET","path":"/api/integration","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":[]}}, + {"method":"GET","path":"/api/location","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}}}, + {"method":"GET","path":"/api/mcp","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":[]}}, + {"method":"GET","path":"/api/mcp/resource","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":{"resources":[],"templates":[]}}}, + {"method":"GET","path":"/api/model","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":[]}}, + {"method":"GET","path":"/api/plugin","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":[{"id":"sidebar-prompt","source":{"type":"package","target":"opencode-sidebar-prompt@0.1.6"},"features":{"server":true,"tui":true},"state":{"status":"active"}}]}}, + {"method":"GET","path":"/api/project","query":{},"status":200,"json":[]}, + {"method":"GET","path":"/api/provider","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":[]}}, + {"method":"GET","path":"/api/reference","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode/packages/tui","canonical":"/tmp/opencode/packages/tui"}},"data":[]}}, + {"method":"GET","path":"/api/session","query":{"limit":["200"],"order":["desc"],"parentID":["ses_l"]},"status":200,"json":{"data":[{"id":"ses_l","title":"Release notes","projectID":"proj_test","cost":0,"tokens":{"input":0,"output":0,"reasoning":0,"cache":{"read":0,"write":0}},"time":{"created":2,"updated":2},"location":{"directory":"/tmp/opencode/packages/tui"}}],"cursor":{}}}, + {"method":"GET","path":"/api/session/active","query":{},"status":200,"json":{"data":{}}}, + {"method":"GET","path":"/api/session/ses_l","query":{},"status":200,"json":{"data":{"id":"ses_l","title":"Release notes","projectID":"proj_test","cost":0,"tokens":{"input":0,"output":0,"reasoning":0,"cache":{"read":0,"write":0}},"time":{"created":2,"updated":2},"location":{"directory":"/tmp/opencode/packages/tui"}}}}, + {"method":"GET","path":"/api/session/ses_l/form","query":{},"status":200,"json":{"data":[]}}, + {"method":"GET","path":"/api/session/ses_l/inbox","query":{},"status":200,"json":{"data":[]}}, + {"method":"GET","path":"/api/session/ses_l/message","query":{"limit":["20"],"order":["desc"]},"status":200,"json":{"data":[{"id":"msg_2","type":"assistant","agent":"build","model":{"providerID":"provider","id":"model"},"content":[{"type":"text","text":"Drafted."}],"finish":"stop","time":{"created":2000,"completed":2001}},{"id":"msg_1","type":"user","text":"Write the release notes for 2.3: the new sidebar, the plugin host, and the fixes to the theme picker. Keep each line short, link every pull request, and leave the upgrade steps for last.","time":{"created":1000}}],"cursor":{}}}, + {"method":"GET","path":"/api/session/ses_l/permission","query":{},"status":200,"json":{"data":[]}}, + {"method":"GET","path":"/api/shell","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":[]}}, + {"method":"GET","path":"/api/skill","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":[]}}, + {"method":"GET","path":"/api/vcs","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":{"branch":{"current":"main","default":"main"}}}}, + {"method":"POST","path":"/api/rpc/opencode.goal/get","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"body":{"input":{"sessionID":"ses_l"}},"status":200,"json":{"output":null}} + ] + } +} diff --git a/packages/cli-rs/parity/fixtures/P.8/cache-server/dialog.json b/packages/cli-rs/parity/fixtures/P.8/cache-server/dialog.json new file mode 100644 index 000000000000..a3bafde46c5c --- /dev/null +++ b/packages/cli-rs/parity/fixtures/P.8/cache-server/dialog.json @@ -0,0 +1,36 @@ +{"width":140,"height":34,"styles":["#ffffffff #0d0d0dff 0","#696969ff #0d0d0dff 1","#ffffffff #030303ff 0","#353535ff #030303ff 0","#ffffffff #080808ff 0","#313f69ff #080808ff 0","#ffffffff #141414ff 0","#696969ff #080808ff 0","#ffffffff #141414ff 1","#808080ff #141414ff 0","#626262ff #030303ff 0","#313f69ff #030303ff 0","#353535ff #0d0d0dff 0","#1e1e1eff #030303ff 0","#696969ff #0d0d0dff 0","#0d0d0dff #030303ff 0","#353535ff #080808ff 0"],"lines":[ +[" Release notes + ",[[0,3],[1,7],[0,1],[1,5],[0,16],[2,1],[3,1],[2,106]]], +[" ",[[2,98],[4,42]]], +[" ┃ ",[[2,2],[5,1],[4,23],[6,88],[4,26]]], +[" ┃ Write the release not ",[[2,2],[5,1],[4,2],[7,5],[4,1],[7,3],[4,1],[7,7],[4,1],[7,3],[6,88],[4,26]]], +[" ┃ theme picker. Keep ea Last prompt Esc · Close ",[[2,2],[5,1],[4,2],[7,5],[4,1],[7,7],[4,1],[7,4],[4,1],[7,2],[6,1],[8,11],[6,64],[9,11],[6,1],[4,26]]], +[" ┃ for last. ",[[2,2],[5,1],[4,2],[7,3],[4,1],[7,5],[4,12],[6,88],[4,26]]], +[" ┃ Write the release notes for 2.3: the new sidebar, the plugin host, and the fixes to ase notes for 2.3: the ",[[2,2],[5,1],[4,23],[6,88],[7,3],[4,1],[7,5],[4,1],[7,3],[4,1],[7,4],[4,1],[7,3],[4,4]]], +[" the theme picker. Keep each line short, link every pull request, and leave the upgrade he plugin host, and the ",[[2,26],[6,88],[7,2],[4,1],[7,6],[4,1],[7,5],[4,1],[7,3],[4,1],[7,3],[4,3]]], +[" Drafted. steps for last. heme picker. Keep each ",[[2,5],[10,8],[2,13],[6,88],[7,4],[4,1],[7,7],[4,1],[7,4],[4,1],[7,4],[4,4]]], +[" nk every pull request, ",[[2,26],[6,88],[7,2],[4,1],[7,5],[4,1],[7,4],[4,1],[7,8],[4,4]]], +[" Build · provider/mode upgrade steps fo… ",[[2,5],[11,5],[2,1],[3,1],[2,1],[3,13],[6,88],[7,7],[4,1],[7,5],[4,1],[7,3],[4,9]]], +[" pt · /lastprompt ",[[2,26],[6,88],[7,2],[4,1],[7,1],[4,1],[7,11],[4,10]]], +[" ",[[2,26],[6,88],[4,26]]], +[" ",[[2,26],[6,88],[4,26]]], +[" ",[[2,26],[6,88],[4,26]]], +[" ",[[2,26],[6,88],[4,26]]], +[" ",[[2,26],[6,88],[4,26]]], +[" ",[[2,26],[6,88],[4,26]]], +[" ",[[2,26],[6,88],[4,26]]], +[" ",[[2,26],[6,88],[0,24],[4,2]]], +[" arted ✕ ",[[2,26],[6,88],[1,5],[0,16],[12,1],[0,2],[4,2]]], +[" ",[[2,26],[6,88],[0,24],[4,2]]], +[" ncludes free models so ",[[2,26],[6,88],[12,7],[0,1],[12,4],[0,1],[12,6],[0,1],[12,2],[0,2],[4,2]]], +[" art immediately. ",[[2,26],[6,88],[12,3],[0,1],[12,12],[0,8],[4,2]]], +[" ",[[2,26],[6,88],[0,24],[4,2]]], +[" om 75+ providers to ",[[2,26],[6,88],[12,2],[0,1],[12,3],[0,1],[12,9],[0,1],[12,2],[0,5],[4,2]]], +[" models, including ",[[2,26],[6,88],[12,7],[0,1],[12,9],[0,7],[4,2]]], +[" ┃ T, Gemini etc ",[[2,2],[13,1],[0,23],[6,88],[12,2],[0,1],[12,6],[0,1],[12,3],[0,11],[4,2]]], +[" ┃ ",[[2,2],[13,1],[0,23],[6,88],[0,24],[4,2]]], +[" ┃ ovider /connect ",[[2,2],[13,1],[0,23],[6,88],[14,6],[0,8],[12,8],[0,2],[4,2]]], +[" ┃ ",[[2,2],[13,1],[0,23],[6,88],[0,24],[4,2]]], +[" ╹▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀ ↑ ↓ / PgUp PgDown · Scroll ",[[2,2],[13,1],[15,23],[6,1],[9,26],[6,61],[4,26]]], +[" /tmp/opencode/packages/t packages/tui:main ",[[2,2],[3,24],[6,88],[16,17],[4,9]]], +[" ",[[2,98],[4,42]]] +]} diff --git a/packages/cli-rs/parity/fixtures/P.8/cache-server/sidebar.json b/packages/cli-rs/parity/fixtures/P.8/cache-server/sidebar.json new file mode 100644 index 000000000000..a801ab5ab701 --- /dev/null +++ b/packages/cli-rs/parity/fixtures/P.8/cache-server/sidebar.json @@ -0,0 +1,36 @@ +{"width":140,"height":34,"styles":["#ffffffff #202020ff 0","#ffffffff #202020ff 1","#808080ff #080808ff 0","#ffffffff #080808ff 0","#ffffffff #141414ff 0","#7699feff #141414ff 0","#ffffffff #141414ff 1","#eeeeeeff #080808ff 0","#7699feff #080808ff 0","#808080ff #202020ff 0","#484848ff #080808ff 0","#202020ff #080808ff 0","#808080ff #141414ff 0"],"lines":[ +[" Release notes + ",[[0,3],[1,13],[0,16],[2,3],[3,105]]], +[" ",[[3,98],[4,42]]], +[" ┃ Release notes ",[[3,2],[5,1],[4,93],[3,2],[4,2],[6,13],[4,27]]], +[" ┃ Write the release notes for 2.3: the new sidebar, the plugin host, and the fixes to the ",[[3,2],[5,1],[4,93],[3,2],[4,42]]], +[" ┃ theme picker. Keep each line short, link every pull request, and leave the upgrade steps ",[[3,2],[5,1],[4,93],[3,2],[4,42]]], +[" ┃ for last. Last prompt ",[[3,2],[5,1],[4,93],[3,2],[4,2],[6,11],[4,29]]], +[" ┃ Write the release notes for 2.3: the ",[[3,2],[5,1],[4,93],[3,2],[4,42]]], +[" new sidebar, the plugin host, and the ",[[3,98],[4,42]]], +[" Drafted. fixes to the theme picker. Keep each ",[[3,5],[7,8],[3,85],[4,42]]], +[" line short, link every pull request, ",[[3,98],[4,42]]], +[" Build · provider/model · 1.0s and leave the upgrade steps fo… ",[[3,5],[8,5],[2,24],[3,64],[4,42]]], +[" Open full prompt · /lastprompt ",[[3,98],[4,42]]], +[" ",[[3,98],[4,42]]], +[" ",[[3,98],[4,42]]], +[" ",[[3,98],[4,42]]], +[" ",[[3,98],[4,42]]], +[" ",[[3,98],[4,42]]], +[" ",[[3,98],[4,42]]], +[" ",[[3,98],[4,42]]], +[" ",[[3,98],[4,2],[0,38],[4,2]]], +[" ⬖ Getting started ✕ ",[[3,98],[4,2],[0,4],[1,15],[0,16],[9,1],[0,2],[4,2]]], +[" ",[[3,98],[4,2],[0,38],[4,2]]], +[" OpenCode includes free models so ",[[3,98],[4,2],[0,4],[9,32],[0,2],[4,2]]], +[" you can start immediately. ",[[3,98],[4,2],[0,4],[9,26],[0,8],[4,2]]], +[" ",[[3,98],[4,2],[0,38],[4,2]]], +[" Connect from 75+ providers to ",[[3,98],[4,2],[0,4],[9,30],[0,4],[4,2]]], +[" use other models, including ",[[3,98],[4,2],[0,4],[9,28],[0,6],[4,2]]], +[" ┃ Claude, GPT, Gemini etc ",[[3,2],[10,1],[0,93],[3,2],[4,2],[0,4],[9,23],[0,11],[4,2]]], +[" ┃ ",[[3,2],[10,1],[0,93],[3,2],[4,2],[0,38],[4,2]]], +[" ┃ Connect provider /connect ",[[3,2],[10,1],[0,93],[3,2],[4,2],[0,28],[9,8],[0,2],[4,2]]], +[" ┃ ",[[3,2],[10,1],[0,93],[3,2],[4,2],[0,38],[4,2]]], +[" ╹▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀ ",[[3,2],[10,1],[11,93],[3,2],[4,42]]], +[" /tmp/opencode/packages/tui:main shift+tab agents ctrl+p commands /tmp/opencode/packages/tui:main ",[[3,2],[2,31],[3,40],[2,6],[3,9],[2,8],[3,2],[4,2],[12,31],[4,9]]], +[" ",[[3,98],[4,42]]] +]} diff --git a/packages/cli-rs/parity/fixtures/P.8/cache-server/slash.json b/packages/cli-rs/parity/fixtures/P.8/cache-server/slash.json new file mode 100644 index 000000000000..ded030cf5ce8 --- /dev/null +++ b/packages/cli-rs/parity/fixtures/P.8/cache-server/slash.json @@ -0,0 +1,36 @@ +{"width":140,"height":34,"styles":["#ffffffff #202020ff 0","#ffffffff #202020ff 1","#808080ff #080808ff 0","#ffffffff #080808ff 0","#ffffffff #141414ff 0","#7699feff #141414ff 0","#ffffffff #141414ff 1","#eeeeeeff #080808ff 0","#7699feff #080808ff 0","#808080ff #202020ff 0","#ffffffff #23344bff 0","#484848ff #080808ff 0","#202020ff #080808ff 0","#808080ff #141414ff 0"],"lines":[ +[" Release notes + ",[[0,3],[1,13],[0,16],[2,3],[3,105]]], +[" ",[[3,98],[4,42]]], +[" ┃ Release notes ",[[3,2],[5,1],[4,93],[3,2],[4,2],[6,13],[4,27]]], +[" ┃ Write the release notes for 2.3: the new sidebar, the plugin host, and the fixes to the ",[[3,2],[5,1],[4,93],[3,2],[4,42]]], +[" ┃ theme picker. Keep each line short, link every pull request, and leave the upgrade steps ",[[3,2],[5,1],[4,93],[3,2],[4,42]]], +[" ┃ for last. Last prompt ",[[3,2],[5,1],[4,93],[3,2],[4,2],[6,11],[4,29]]], +[" ┃ Write the release notes for 2.3: the ",[[3,2],[5,1],[4,93],[3,2],[4,42]]], +[" new sidebar, the plugin host, and the ",[[3,98],[4,42]]], +[" Drafted. fixes to the theme picker. Keep each ",[[3,5],[7,8],[3,85],[4,42]]], +[" line short, link every pull request, ",[[3,98],[4,42]]], +[" Build · provider/model · 1.0s and leave the upgrade steps fo… ",[[3,5],[8,5],[2,24],[3,64],[4,42]]], +[" Open full prompt · /lastprompt ",[[3,98],[4,42]]], +[" ",[[3,98],[4,42]]], +[" ",[[3,98],[4,42]]], +[" ",[[3,98],[4,42]]], +[" ",[[3,98],[4,42]]], +[" ",[[3,98],[4,42]]], +[" ",[[3,98],[4,42]]], +[" ",[[3,98],[4,42]]], +[" ",[[3,98],[4,2],[0,38],[4,2]]], +[" ⬖ Getting started ✕ ",[[3,98],[4,2],[0,4],[1,15],[0,16],[9,1],[0,2],[4,2]]], +[" ",[[3,98],[4,2],[0,38],[4,2]]], +[" OpenCode includes free models so ",[[3,98],[4,2],[0,4],[9,32],[0,2],[4,2]]], +[" you can start immediately. ",[[3,98],[4,2],[0,4],[9,26],[0,8],[4,2]]], +[" ",[[3,98],[4,2],[0,38],[4,2]]], +[" Connect from 75+ providers to ",[[3,98],[4,2],[0,4],[9,30],[0,4],[4,2]]], +[" ┃ /lastprompt Show full last prompt ┃ use other models, including ",[[3,2],[8,1],[10,92],[11,1],[3,2],[4,2],[0,4],[9,28],[0,6],[4,2]]], +[" ┃ Claude, GPT, Gemini etc ",[[3,2],[11,1],[0,93],[3,2],[4,2],[0,4],[9,23],[0,11],[4,2]]], +[" ┃ /lastprompt ",[[3,2],[11,1],[0,93],[3,2],[4,2],[0,38],[4,2]]], +[" ┃ Connect provider /connect ",[[3,2],[11,1],[0,93],[3,2],[4,2],[0,28],[9,8],[0,2],[4,2]]], +[" ┃ ",[[3,2],[11,1],[0,93],[3,2],[4,2],[0,38],[4,2]]], +[" ╹▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀ ",[[3,2],[11,1],[12,93],[3,2],[4,42]]], +[" /tmp/opencode/packages/tui:main shift+tab agents ctrl+p commands /tmp/opencode/packages/tui:main ",[[3,2],[2,31],[3,40],[2,6],[3,9],[2,8],[3,2],[4,2],[13,31],[4,9]]], +[" ",[[3,98],[4,42]]] +]} diff --git a/packages/cli-rs/parity/fixtures/P.8/command-hotkeys.app.json b/packages/cli-rs/parity/fixtures/P.8/command-hotkeys.app.json new file mode 100644 index 000000000000..9e04c9fc804c --- /dev/null +++ b/packages/cli-rs/parity/fixtures/P.8/command-hotkeys.app.json @@ -0,0 +1,74 @@ +{ + "scenario": "P.8/command-hotkeys", + "width": 140, + "height": 34, + "directory": "/tmp/opencode/packages/tui", + "config": { + "experimental": {"new-designs":true}, + "plugins": [{"package":"./out/npm/node_modules/opencode-command-hotkeys","options":{"bindings":[{"id":"review","key":"alt+r","title":"Run the review","command":"review","text":"--all"},{"id":"goal","key":"alt+o","title":"Toggle the goal","action":"goal-toggle"}]}}], + "animations": false, + "theme": {"name":"opencode"} + }, + "args": { + "sessionID": "ses_h" + }, + "env": { + "OPENCODE_PARITY_PLUGIN": "npm" + }, + "routes": [ + {"path":"/api/session/ses_h","json":{"data":{"id":"ses_h","title":"Review it","projectID":"proj_test","cost":0,"tokens":{"input":0,"output":0,"reasoning":0,"cache":{"read":0,"write":0}},"time":{"created":2,"updated":2},"location":{"directory":"/tmp/opencode/packages/tui"}}}}, + {"path":"/api/session","json":{"data":[{"id":"ses_h","title":"Review it","projectID":"proj_test","cost":0,"tokens":{"input":0,"output":0,"reasoning":0,"cache":{"read":0,"write":0}},"time":{"created":2,"updated":2},"location":{"directory":"/tmp/opencode/packages/tui"}}],"cursor":{}}}, + {"path":"/api/session/ses_h/message","json":{"data":[{"id":"msg_2","type":"assistant","agent":"build","model":{"providerID":"provider","id":"model"},"content":[{"type":"text","text":"Ready."}],"finish":"stop","time":{"created":2000,"completed":2001}},{"id":"msg_1","type":"user","text":"Review it","time":{"created":1000}}],"cursor":{}}}, + {"path":"/api/session/ses_h/inbox","json":{"data":[]}}, + {"method":"POST","path":"/api/session/ses_h/command","status":204} + ], + "steps": [ + {"checkpoint":"ready","until":"Review it","fixture":"P.8/command-hotkeys/ready"}, + {"keys":["ctrl+p"]}, + {"checkpoint":"palette","until":"Search commands","masks":[{"x":40,"y":9,"width":62,"height":24,"reason":"the host's palette list, which the plugin does not draw"}],"fixture":"P.8/command-hotkeys/palette"}, + {"type":"Run the review"}, + {"checkpoint":"found","until":"Run the review","fixture":"P.8/command-hotkeys/found"}, + {"keys":["enter"]}, + {"wait":300}, + {"keys":["alt+r"]}, + {"wait":300}, + {"checkpoint":"ran","fixture":"P.8/command-hotkeys/ran"} + ], + "requests": { + "writes": [ + {"method":"POST","path":"/api/session/ses_h/command","query":{},"body":{"name":"review","text":"--all"},"status":204}, + {"method":"POST","path":"/api/session/ses_h/command","query":{},"body":{"name":"review","text":"--all"},"status":204} + ], + "reads": [ + {"method":"GET","path":"/api/agent","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":[]}}, + {"method":"GET","path":"/api/command","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":[]}}, + {"method":"GET","path":"/api/config","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":[]}, + {"method":"GET","path":"/api/experimental/job","query":{"descendants":["true"],"sessionID":["ses_h"],"status":["running"]},"status":200,"json":{"data":[]}}, + {"method":"GET","path":"/api/experimental/migration/v1","query":{},"status":200,"json":{"status":"completed"}}, + {"method":"GET","path":"/api/experimental/session/ses_h/terminal","query":{},"status":200,"json":{"data":[]}}, + {"method":"GET","path":"/api/form","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode"}},"data":[]}}, + {"method":"GET","path":"/api/fs/list","query":{"location[directory]":["<cwd>"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":[]}}, + {"method":"GET","path":"/api/info","query":{},"status":200,"json":{"version":"test","pid":0,"urls":[],"paths":{"tmp":"/tmp"},"capabilities":{"persistentPty":true}}}, + {"method":"GET","path":"/api/integration","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":[]}}, + {"method":"GET","path":"/api/location","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}}}, + {"method":"GET","path":"/api/mcp","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":[]}}, + {"method":"GET","path":"/api/mcp/resource","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":{"resources":[],"templates":[]}}}, + {"method":"GET","path":"/api/model","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":[]}}, + {"method":"GET","path":"/api/plugin","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":[]}}, + {"method":"GET","path":"/api/project","query":{},"status":200,"json":[]}, + {"method":"GET","path":"/api/provider","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":[]}}, + {"method":"GET","path":"/api/reference","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode/packages/tui","canonical":"/tmp/opencode/packages/tui"}},"data":[]}}, + {"method":"GET","path":"/api/session","query":{"limit":["200"],"order":["desc"],"parentID":["ses_h"]},"status":200,"json":{"data":[{"id":"ses_h","title":"Review it","projectID":"proj_test","cost":0,"tokens":{"input":0,"output":0,"reasoning":0,"cache":{"read":0,"write":0}},"time":{"created":2,"updated":2},"location":{"directory":"/tmp/opencode/packages/tui"}}],"cursor":{}}}, + {"method":"GET","path":"/api/session/active","query":{},"status":200,"json":{"data":{}}}, + {"method":"GET","path":"/api/session/ses_h","query":{},"status":200,"json":{"data":{"id":"ses_h","title":"Review it","projectID":"proj_test","cost":0,"tokens":{"input":0,"output":0,"reasoning":0,"cache":{"read":0,"write":0}},"time":{"created":2,"updated":2},"location":{"directory":"/tmp/opencode/packages/tui"}}}}, + {"method":"GET","path":"/api/session/ses_h/form","query":{},"status":200,"json":{"data":[]}}, + {"method":"GET","path":"/api/session/ses_h/inbox","query":{},"status":200,"json":{"data":[]}}, + {"method":"GET","path":"/api/session/ses_h/message","query":{"limit":["20"],"order":["desc"]},"status":200,"json":{"data":[{"id":"msg_2","type":"assistant","agent":"build","model":{"providerID":"provider","id":"model"},"content":[{"type":"text","text":"Ready."}],"finish":"stop","time":{"created":2000,"completed":2001}},{"id":"msg_1","type":"user","text":"Review it","time":{"created":1000}}],"cursor":{}}}, + {"method":"GET","path":"/api/session/ses_h/permission","query":{},"status":200,"json":{"data":[]}}, + {"method":"GET","path":"/api/shell","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":[]}}, + {"method":"GET","path":"/api/skill","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":[]}}, + {"method":"GET","path":"/api/vcs","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":{"branch":{"current":"main","default":"main"}}}}, + {"method":"POST","path":"/api/rpc/opencode.goal/get","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"body":{"input":{"sessionID":"ses_h"}},"status":200,"json":{"output":null}} + ] + } +} diff --git a/packages/cli-rs/parity/fixtures/P.8/command-hotkeys/found.json b/packages/cli-rs/parity/fixtures/P.8/command-hotkeys/found.json new file mode 100644 index 000000000000..05abc4b32efa --- /dev/null +++ b/packages/cli-rs/parity/fixtures/P.8/command-hotkeys/found.json @@ -0,0 +1,36 @@ +{"width":140,"height":34,"styles":["#ffffffff #0d0d0dff 0","#696969ff #0d0d0dff 1","#ffffffff #030303ff 0","#353535ff #030303ff 0","#ffffffff #080808ff 0","#313f69ff #080808ff 0","#696969ff #080808ff 1","#696969ff #080808ff 0","#626262ff #030303ff 0","#313f69ff #030303ff 0","#ffffffff #141414ff 0","#808080ff #141414ff 0","#7699feff #141414ff 0","#ffffffff #23344bff 0","#696969ff #0d0d0dff 0","#353535ff #0d0d0dff 0","#1e1e1eff #030303ff 0","#0d0d0dff #030303ff 0","#696969ff #030303ff 0","#353535ff #080808ff 0"],"lines":[ +[" Review it + ",[[0,3],[1,6],[0,1],[1,2],[0,20],[2,1],[3,1],[2,106]]], +[" ",[[2,98],[4,42]]], +[" ┃ Review it ",[[2,2],[5,1],[4,93],[2,2],[4,2],[6,6],[4,1],[6,2],[4,31]]], +[" ┃ Review it ",[[2,2],[5,1],[4,2],[7,6],[4,1],[7,2],[4,82],[2,2],[4,42]]], +[" ┃ ",[[2,2],[5,1],[4,93],[2,2],[4,42]]], +[" ",[[2,98],[4,42]]], +[" Ready. ",[[2,5],[8,6],[2,87],[4,42]]], +[" ",[[2,98],[4,42]]], +[" Build · provider/model · 1.0s ",[[2,5],[9,5],[2,1],[3,1],[2,1],[3,14],[2,1],[3,1],[2,1],[3,4],[2,64],[4,42]]], +[" ",[[2,40],[10,60],[4,40]]], +[" Run the review esc ",[[2,40],[10,53],[11,3],[10,4],[4,40]]], +[" ",[[2,40],[10,60],[4,40]]], +[" ┃ Run the review ",[[2,40],[12,1],[13,59],[4,40]]], +[" ",[[2,40],[10,60],[4,40]]], +[" ",[[2,98],[4,42]]], +[" ",[[2,98],[4,42]]], +[" ",[[2,98],[4,42]]], +[" ",[[2,98],[4,42]]], +[" ",[[2,98],[4,42]]], +[" ",[[2,98],[4,2],[0,38],[4,2]]], +[" ⬖ Getting started ✕ ",[[2,98],[4,2],[0,2],[14,1],[0,1],[1,7],[0,1],[1,7],[0,16],[15,1],[0,2],[4,2]]], +[" ",[[2,98],[4,2],[0,38],[4,2]]], +[" OpenCode includes free models so ",[[2,98],[4,2],[0,4],[15,8],[0,1],[15,8],[0,1],[15,4],[0,1],[15,6],[0,1],[15,2],[0,2],[4,2]]], +[" you can start immediately. ",[[2,98],[4,2],[0,4],[15,3],[0,1],[15,3],[0,1],[15,5],[0,1],[15,12],[0,8],[4,2]]], +[" ",[[2,98],[4,2],[0,38],[4,2]]], +[" Connect from 75+ providers to ",[[2,98],[4,2],[0,4],[15,7],[0,1],[15,4],[0,1],[15,3],[0,1],[15,9],[0,1],[15,2],[0,5],[4,2]]], +[" use other models, including ",[[2,98],[4,2],[0,4],[15,3],[0,1],[15,5],[0,1],[15,7],[0,1],[15,9],[0,7],[4,2]]], +[" ┃ Claude, GPT, Gemini etc ",[[2,2],[16,1],[0,93],[2,2],[4,2],[0,4],[15,7],[0,1],[15,4],[0,1],[15,6],[0,1],[15,3],[0,11],[4,2]]], +[" ┃ ",[[2,2],[16,1],[0,93],[2,2],[4,2],[0,38],[4,2]]], +[" ┃ Connect provider /connect ",[[2,2],[16,1],[0,93],[2,2],[4,2],[0,4],[14,7],[0,1],[14,8],[0,8],[15,8],[0,2],[4,2]]], +[" ┃ ",[[2,2],[16,1],[0,93],[2,2],[4,2],[0,38],[4,2]]], +[" ╹▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀ ",[[2,2],[16,1],[17,93],[2,2],[4,42]]], +[" /tmp/opencode/packages/tui:main shift+tab agents ctrl+p commands /tmp/opencode/packages/tui:main ",[[2,2],[3,31],[2,30],[18,9],[2,1],[3,6],[2,2],[18,6],[2,1],[3,8],[2,2],[4,2],[19,31],[4,9]]], +[" ",[[2,98],[4,42]]] +]} diff --git a/packages/cli-rs/parity/fixtures/P.8/command-hotkeys/palette.json b/packages/cli-rs/parity/fixtures/P.8/command-hotkeys/palette.json new file mode 100644 index 000000000000..c63454221101 --- /dev/null +++ b/packages/cli-rs/parity/fixtures/P.8/command-hotkeys/palette.json @@ -0,0 +1,36 @@ +{"width":140,"height":34,"styles":["#ffffffff #0d0d0dff 0","#696969ff #0d0d0dff 1","#ffffffff #030303ff 0","#353535ff #030303ff 0","#ffffffff #080808ff 0","#313f69ff #080808ff 0","#696969ff #080808ff 1","#696969ff #080808ff 0","#626262ff #030303ff 0","#313f69ff #030303ff 0","#00000000 #00000000 0","#696969ff #0d0d0dff 0","#353535ff #0d0d0dff 0","#1e1e1eff #030303ff 0","#0d0d0dff #030303ff 0","#353535ff #080808ff 0"],"lines":[ +[" Review it + ",[[0,3],[1,6],[0,1],[1,2],[0,20],[2,1],[3,1],[2,106]]], +[" ",[[2,98],[4,42]]], +[" ┃ Review it ",[[2,2],[5,1],[4,93],[2,2],[4,2],[6,6],[4,1],[6,2],[4,31]]], +[" ┃ Review it ",[[2,2],[5,1],[4,2],[7,6],[4,1],[7,2],[4,82],[2,2],[4,42]]], +[" ┃ ",[[2,2],[5,1],[4,93],[2,2],[4,42]]], +[" ",[[2,98],[4,42]]], +[" Ready. ",[[2,5],[8,6],[2,87],[4,42]]], +[" ",[[2,98],[4,42]]], +[" Build · provider/model · 1.0s ",[[2,5],[9,5],[2,1],[3,1],[2,1],[3,14],[2,1],[3,1],[2,1],[3,4],[2,64],[4,42]]], +[" ",[[2,40],[10,62],[4,38]]], +[" ",[[2,40],[10,62],[4,38]]], +[" ",[[2,40],[10,62],[4,38]]], +[" ",[[2,40],[10,62],[4,38]]], +[" ",[[2,40],[10,62],[4,38]]], +[" ",[[2,40],[10,62],[4,38]]], +[" ",[[2,40],[10,62],[4,38]]], +[" ",[[2,40],[10,62],[4,38]]], +[" ",[[2,40],[10,62],[4,38]]], +[" ",[[2,40],[10,62],[4,38]]], +[" ",[[2,40],[10,62],[0,36],[4,2]]], +[" ⬖ Getting started ✕ ",[[2,40],[10,62],[11,1],[0,1],[1,7],[0,1],[1,7],[0,16],[12,1],[0,2],[4,2]]], +[" ",[[2,40],[10,62],[0,36],[4,2]]], +[" OpenCode includes free models so ",[[2,40],[10,62],[0,2],[12,8],[0,1],[12,8],[0,1],[12,4],[0,1],[12,6],[0,1],[12,2],[0,2],[4,2]]], +[" you can start immediately. ",[[2,40],[10,62],[0,2],[12,3],[0,1],[12,3],[0,1],[12,5],[0,1],[12,12],[0,8],[4,2]]], +[" ",[[2,40],[10,62],[0,36],[4,2]]], +[" Connect from 75+ providers to ",[[2,40],[10,62],[0,2],[12,7],[0,1],[12,4],[0,1],[12,3],[0,1],[12,9],[0,1],[12,2],[0,5],[4,2]]], +[" use other models, including ",[[2,40],[10,62],[0,2],[12,3],[0,1],[12,5],[0,1],[12,7],[0,1],[12,9],[0,7],[4,2]]], +[" ┃ Claude, GPT, Gemini etc ",[[2,2],[13,1],[0,37],[10,62],[0,2],[12,7],[0,1],[12,4],[0,1],[12,6],[0,1],[12,3],[0,11],[4,2]]], +[" ┃ ",[[2,2],[13,1],[0,37],[10,62],[0,36],[4,2]]], +[" ┃ Connect provider /connect ",[[2,2],[13,1],[0,37],[10,62],[0,2],[11,7],[0,1],[11,8],[0,8],[12,8],[0,2],[4,2]]], +[" ┃ ",[[2,2],[13,1],[0,37],[10,62],[0,36],[4,2]]], +[" ╹▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀ ",[[2,2],[13,1],[14,37],[10,62],[4,38]]], +[" /tmp/opencode/packages/tui:main mp/opencode/packages/tui:main ",[[2,2],[3,31],[2,7],[10,62],[15,29],[4,9]]], +[" ",[[2,98],[4,42]]] +]} diff --git a/packages/cli-rs/parity/fixtures/P.8/command-hotkeys/ran.json b/packages/cli-rs/parity/fixtures/P.8/command-hotkeys/ran.json new file mode 100644 index 000000000000..0ec9211a70b1 --- /dev/null +++ b/packages/cli-rs/parity/fixtures/P.8/command-hotkeys/ran.json @@ -0,0 +1,36 @@ +{"width":140,"height":34,"styles":["#ffffffff #202020ff 0","#ffffffff #202020ff 1","#808080ff #080808ff 0","#ffffffff #080808ff 0","#ffffffff #141414ff 0","#7699feff #141414ff 0","#ffffffff #141414ff 1","#eeeeeeff #080808ff 0","#7699feff #080808ff 0","#808080ff #202020ff 0","#484848ff #080808ff 0","#202020ff #080808ff 0","#808080ff #141414ff 0"],"lines":[ +[" Review it + ",[[0,3],[1,9],[0,20],[2,3],[3,105]]], +[" ",[[3,98],[4,42]]], +[" ┃ Review it ",[[3,2],[5,1],[4,93],[3,2],[4,2],[6,9],[4,31]]], +[" ┃ Review it ",[[3,2],[5,1],[4,93],[3,2],[4,42]]], +[" ┃ ",[[3,2],[5,1],[4,93],[3,2],[4,42]]], +[" ",[[3,98],[4,42]]], +[" Ready. ",[[3,5],[7,6],[3,87],[4,42]]], +[" ",[[3,98],[4,42]]], +[" Build · provider/model · 1.0s ",[[3,5],[8,5],[2,24],[3,64],[4,42]]], +[" ",[[3,98],[4,42]]], +[" ",[[3,98],[4,42]]], +[" ",[[3,98],[4,42]]], +[" ",[[3,98],[4,42]]], +[" ",[[3,98],[4,42]]], +[" ",[[3,98],[4,42]]], +[" ",[[3,98],[4,42]]], +[" ",[[3,98],[4,42]]], +[" ",[[3,98],[4,42]]], +[" ",[[3,98],[4,42]]], +[" ",[[3,98],[4,2],[0,38],[4,2]]], +[" ⬖ Getting started ✕ ",[[3,98],[4,2],[0,4],[1,15],[0,16],[9,1],[0,2],[4,2]]], +[" ",[[3,98],[4,2],[0,38],[4,2]]], +[" OpenCode includes free models so ",[[3,98],[4,2],[0,4],[9,32],[0,2],[4,2]]], +[" you can start immediately. ",[[3,98],[4,2],[0,4],[9,26],[0,8],[4,2]]], +[" ",[[3,98],[4,2],[0,38],[4,2]]], +[" Connect from 75+ providers to ",[[3,98],[4,2],[0,4],[9,30],[0,4],[4,2]]], +[" use other models, including ",[[3,98],[4,2],[0,4],[9,28],[0,6],[4,2]]], +[" ┃ Claude, GPT, Gemini etc ",[[3,2],[10,1],[0,93],[3,2],[4,2],[0,4],[9,23],[0,11],[4,2]]], +[" ┃ ",[[3,2],[10,1],[0,93],[3,2],[4,2],[0,38],[4,2]]], +[" ┃ Connect provider /connect ",[[3,2],[10,1],[0,93],[3,2],[4,2],[0,28],[9,8],[0,2],[4,2]]], +[" ┃ ",[[3,2],[10,1],[0,93],[3,2],[4,2],[0,38],[4,2]]], +[" ╹▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀ ",[[3,2],[10,1],[11,93],[3,2],[4,42]]], +[" /tmp/opencode/packages/tui:main shift+tab agents ctrl+p commands /tmp/opencode/packages/tui:main ",[[3,2],[2,31],[3,40],[2,6],[3,9],[2,8],[3,2],[4,2],[12,31],[4,9]]], +[" ",[[3,98],[4,42]]] +]} diff --git a/packages/cli-rs/parity/fixtures/P.8/command-hotkeys/ready.json b/packages/cli-rs/parity/fixtures/P.8/command-hotkeys/ready.json new file mode 100644 index 000000000000..0ec9211a70b1 --- /dev/null +++ b/packages/cli-rs/parity/fixtures/P.8/command-hotkeys/ready.json @@ -0,0 +1,36 @@ +{"width":140,"height":34,"styles":["#ffffffff #202020ff 0","#ffffffff #202020ff 1","#808080ff #080808ff 0","#ffffffff #080808ff 0","#ffffffff #141414ff 0","#7699feff #141414ff 0","#ffffffff #141414ff 1","#eeeeeeff #080808ff 0","#7699feff #080808ff 0","#808080ff #202020ff 0","#484848ff #080808ff 0","#202020ff #080808ff 0","#808080ff #141414ff 0"],"lines":[ +[" Review it + ",[[0,3],[1,9],[0,20],[2,3],[3,105]]], +[" ",[[3,98],[4,42]]], +[" ┃ Review it ",[[3,2],[5,1],[4,93],[3,2],[4,2],[6,9],[4,31]]], +[" ┃ Review it ",[[3,2],[5,1],[4,93],[3,2],[4,42]]], +[" ┃ ",[[3,2],[5,1],[4,93],[3,2],[4,42]]], +[" ",[[3,98],[4,42]]], +[" Ready. ",[[3,5],[7,6],[3,87],[4,42]]], +[" ",[[3,98],[4,42]]], +[" Build · provider/model · 1.0s ",[[3,5],[8,5],[2,24],[3,64],[4,42]]], +[" ",[[3,98],[4,42]]], +[" ",[[3,98],[4,42]]], +[" ",[[3,98],[4,42]]], +[" ",[[3,98],[4,42]]], +[" ",[[3,98],[4,42]]], +[" ",[[3,98],[4,42]]], +[" ",[[3,98],[4,42]]], +[" ",[[3,98],[4,42]]], +[" ",[[3,98],[4,42]]], +[" ",[[3,98],[4,42]]], +[" ",[[3,98],[4,2],[0,38],[4,2]]], +[" ⬖ Getting started ✕ ",[[3,98],[4,2],[0,4],[1,15],[0,16],[9,1],[0,2],[4,2]]], +[" ",[[3,98],[4,2],[0,38],[4,2]]], +[" OpenCode includes free models so ",[[3,98],[4,2],[0,4],[9,32],[0,2],[4,2]]], +[" you can start immediately. ",[[3,98],[4,2],[0,4],[9,26],[0,8],[4,2]]], +[" ",[[3,98],[4,2],[0,38],[4,2]]], +[" Connect from 75+ providers to ",[[3,98],[4,2],[0,4],[9,30],[0,4],[4,2]]], +[" use other models, including ",[[3,98],[4,2],[0,4],[9,28],[0,6],[4,2]]], +[" ┃ Claude, GPT, Gemini etc ",[[3,2],[10,1],[0,93],[3,2],[4,2],[0,4],[9,23],[0,11],[4,2]]], +[" ┃ ",[[3,2],[10,1],[0,93],[3,2],[4,2],[0,38],[4,2]]], +[" ┃ Connect provider /connect ",[[3,2],[10,1],[0,93],[3,2],[4,2],[0,28],[9,8],[0,2],[4,2]]], +[" ┃ ",[[3,2],[10,1],[0,93],[3,2],[4,2],[0,38],[4,2]]], +[" ╹▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀ ",[[3,2],[10,1],[11,93],[3,2],[4,42]]], +[" /tmp/opencode/packages/tui:main shift+tab agents ctrl+p commands /tmp/opencode/packages/tui:main ",[[3,2],[2,31],[3,40],[2,6],[3,9],[2,8],[3,2],[4,2],[12,31],[4,9]]], +[" ",[[3,98],[4,42]]] +]} diff --git a/packages/cli-rs/parity/fixtures/P.8/context-gauge.app.json b/packages/cli-rs/parity/fixtures/P.8/context-gauge.app.json new file mode 100644 index 000000000000..580b0da9db13 --- /dev/null +++ b/packages/cli-rs/parity/fixtures/P.8/context-gauge.app.json @@ -0,0 +1,62 @@ +{ + "scenario": "P.8/context-gauge", + "width": 140, + "height": 34, + "directory": "/tmp/opencode/packages/tui", + "config": { + "experimental": {"new-designs":true}, + "plugins": ["./out/npm/node_modules/opencode-tui-context"], + "animations": false, + "theme": {"name":"opencode"} + }, + "args": { + "sessionID": "ses_c" + }, + "env": { + "OPENCODE_PARITY_PLUGIN": "npm" + }, + "routes": [ + {"path":"/api/session/ses_c","json":{"data":{"id":"ses_c","title":"Measure it","projectID":"proj_test","cost":0.04,"tokens":{"input":0,"output":0,"reasoning":0,"cache":{"read":0,"write":0}},"time":{"created":2,"updated":2},"location":{"directory":"/tmp/opencode/packages/tui"}}}}, + {"path":"/api/session","json":{"data":[{"id":"ses_c","title":"Measure it","projectID":"proj_test","cost":0,"tokens":{"input":0,"output":0,"reasoning":0,"cache":{"read":0,"write":0}},"time":{"created":2,"updated":2},"location":{"directory":"/tmp/opencode/packages/tui"}}],"cursor":{}}}, + {"path":"/api/session/ses_c/message","json":{"data":[{"id":"msg_2","type":"assistant","agent":"build","model":{"providerID":"provider","id":"model"},"content":[{"type":"text","text":"Measured."}],"finish":"stop","time":{"created":2000,"completed":2001},"cost":0.04,"tokens":{"input":13060,"output":20,"reasoning":0,"cache":{"read":0,"write":0}}},{"id":"msg_1","type":"user","text":"Measure","time":{"created":1000}}],"cursor":{}}}, + {"path":"/api/session/ses_c/inbox","json":{"data":[]}}, + {"path":"/api/model","json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":[{"id":"model","modelID":"model","providerID":"provider","name":"Model","capabilities":{"tools":true,"input":["text"],"output":["text"]},"variants":[],"time":{"released":0},"cost":[{"input":3,"output":15,"cache":{"read":0.3,"write":3.75}}],"status":"active","enabled":true,"limit":{"context":200000,"output":32000}}]}} + ], + "steps": [ + {"checkpoint":"panel","until":"used","deviation":[{"file":"F16-v2-compat-layer","cells":13}],"fixture":"P.8/context-gauge/panel"} + ], + "requests": { + "writes": [], + "reads": [ + {"method":"GET","path":"/api/agent","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":[]}}, + {"method":"GET","path":"/api/command","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":[]}}, + {"method":"GET","path":"/api/config","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":[]}, + {"method":"GET","path":"/api/experimental/job","query":{"descendants":["true"],"sessionID":["ses_c"],"status":["running"]},"status":200,"json":{"data":[]}}, + {"method":"GET","path":"/api/experimental/migration/v1","query":{},"status":200,"json":{"status":"completed"}}, + {"method":"GET","path":"/api/experimental/session/ses_c/terminal","query":{},"status":200,"json":{"data":[]}}, + {"method":"GET","path":"/api/form","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode"}},"data":[]}}, + {"method":"GET","path":"/api/fs/list","query":{"location[directory]":["<cwd>"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":[]}}, + {"method":"GET","path":"/api/info","query":{},"status":200,"json":{"version":"test","pid":0,"urls":[],"paths":{"tmp":"/tmp"},"capabilities":{"persistentPty":true}}}, + {"method":"GET","path":"/api/integration","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":[]}}, + {"method":"GET","path":"/api/location","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}}}, + {"method":"GET","path":"/api/mcp","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":[]}}, + {"method":"GET","path":"/api/mcp/resource","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":{"resources":[],"templates":[]}}}, + {"method":"GET","path":"/api/model","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":[{"id":"model","modelID":"model","providerID":"provider","name":"Model","capabilities":{"tools":true,"input":["text"],"output":["text"]},"variants":[],"time":{"released":0},"cost":[{"input":3,"output":15,"cache":{"read":0.3,"write":3.75}}],"status":"active","enabled":true,"limit":{"context":200000,"output":32000}}]}}, + {"method":"GET","path":"/api/plugin","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":[]}}, + {"method":"GET","path":"/api/project","query":{},"status":200,"json":[]}, + {"method":"GET","path":"/api/provider","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":[]}}, + {"method":"GET","path":"/api/reference","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode/packages/tui","canonical":"/tmp/opencode/packages/tui"}},"data":[]}}, + {"method":"GET","path":"/api/session","query":{"limit":["200"],"order":["desc"],"parentID":["ses_c"]},"status":200,"json":{"data":[{"id":"ses_c","title":"Measure it","projectID":"proj_test","cost":0,"tokens":{"input":0,"output":0,"reasoning":0,"cache":{"read":0,"write":0}},"time":{"created":2,"updated":2},"location":{"directory":"/tmp/opencode/packages/tui"}}],"cursor":{}}}, + {"method":"GET","path":"/api/session/active","query":{},"status":200,"json":{"data":{}}}, + {"method":"GET","path":"/api/session/ses_c","query":{},"status":200,"json":{"data":{"id":"ses_c","title":"Measure it","projectID":"proj_test","cost":0.04,"tokens":{"input":0,"output":0,"reasoning":0,"cache":{"read":0,"write":0}},"time":{"created":2,"updated":2},"location":{"directory":"/tmp/opencode/packages/tui"}}}}, + {"method":"GET","path":"/api/session/ses_c/form","query":{},"status":200,"json":{"data":[]}}, + {"method":"GET","path":"/api/session/ses_c/inbox","query":{},"status":200,"json":{"data":[]}}, + {"method":"GET","path":"/api/session/ses_c/message","query":{"limit":["20"],"order":["desc"]},"status":200,"json":{"data":[{"id":"msg_2","type":"assistant","agent":"build","model":{"providerID":"provider","id":"model"},"content":[{"type":"text","text":"Measured."}],"finish":"stop","time":{"created":2000,"completed":2001},"cost":0.04,"tokens":{"input":13060,"output":20,"reasoning":0,"cache":{"read":0,"write":0}}},{"id":"msg_1","type":"user","text":"Measure","time":{"created":1000}}],"cursor":{}}}, + {"method":"GET","path":"/api/session/ses_c/permission","query":{},"status":200,"json":{"data":[]}}, + {"method":"GET","path":"/api/shell","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":[]}}, + {"method":"GET","path":"/api/skill","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":[]}}, + {"method":"GET","path":"/api/vcs","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":{"branch":{"current":"main","default":"main"}}}}, + {"method":"POST","path":"/api/rpc/opencode.goal/get","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"body":{"input":{"sessionID":"ses_c"}},"status":200,"json":{"output":null}} + ] + } +} diff --git a/packages/cli-rs/parity/fixtures/P.8/context-gauge/panel.json b/packages/cli-rs/parity/fixtures/P.8/context-gauge/panel.json new file mode 100644 index 000000000000..46afa8d72a3e --- /dev/null +++ b/packages/cli-rs/parity/fixtures/P.8/context-gauge/panel.json @@ -0,0 +1,36 @@ +{"width":140,"height":34,"styles":["#ffffffff #202020ff 0","#ffffffff #202020ff 1","#808080ff #080808ff 0","#ffffffff #080808ff 0","#ffffffff #141414ff 0","#7699feff #141414ff 0","#ffffffff #141414ff 1","#606060ff #141414ff 0","#808080ff #141414ff 0","#eeeeeeff #080808ff 0","#7699feff #080808ff 0","#484848ff #141414ff 0","#426097ff #141414ff 0","#ffff00ff #141414ff 0","#9ee77aff #141414ff 0","#808080ff #202020ff 0","#484848ff #080808ff 0","#202020ff #080808ff 0"],"lines":[ +[" Measure it + ",[[0,3],[1,10],[0,19],[2,3],[3,105]]], +[" ",[[3,98],[4,42]]], +[" ┃ Measure it ",[[3,2],[5,1],[4,93],[3,2],[4,2],[6,10],[4,30]]], +[" ┃ Measure ",[[3,2],[5,1],[4,93],[3,2],[4,42]]], +[" ┃ Context █ ",[[3,2],[5,1],[4,93],[3,2],[4,2],[6,7],[4,30],[7,1],[4,2]]], +[" 13,080 tokens █ ",[[3,98],[4,2],[8,13],[4,24],[7,1],[4,2]]], +[" Measured. 7% used █ ",[[3,5],[9,9],[3,84],[4,2],[8,7],[4,30],[7,1],[4,2]]], +[" █ ",[[3,98],[4,39],[7,1],[4,2]]], +[" Build · Model · 1.0s ┌───────────────────────────────────┐█ ",[[3,5],[10,5],[2,15],[3,73],[4,2],[11,37],[7,1],[4,2]]], +[" │ Context 7% used │█ ",[[3,98],[4,2],[11,1],[4,1],[6,7],[4,19],[12,7],[4,1],[11,1],[7,1],[4,2]]], +[" │ │█ ",[[3,98],[4,2],[11,1],[4,35],[11,1],[7,1],[4,2]]], +[" │ ▓▓▓▓▓▓▓░░░░░░░░░░░░░░░░░░░░░░░░░░ │█ ",[[3,98],[4,2],[11,1],[4,1],[12,2],[8,5],[4,27],[11,1],[7,1],[4,2]]], +[" │ │█ ",[[3,98],[4,2],[11,1],[4,35],[11,1],[7,1],[4,2]]], +[" │ ▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓ │█ ",[[3,98],[4,2],[11,1],[4,1],[12,32],[13,1],[4,1],[11,1],[7,1],[4,2]]], +[" │ │█ ",[[3,98],[4,2],[11,1],[4,35],[11,1],[7,1],[4,2]]], +[" │ ▓ u 13.1K ▓ r 32K ░ f 154.9K │█ ",[[3,98],[4,2],[11,1],[4,1],[12,3],[4,1],[8,5],[4,1],[8,3],[4,1],[8,3],[4,5],[8,6],[4,6],[11,1],[7,1],[4,2]]], +[" │ │█ ",[[3,98],[4,2],[11,1],[4,35],[11,1],[7,1],[4,2]]], +[" │ ▓ c 0 ▓ p 13.1K ▓ t 0 ▓ o 20 │ ",[[3,98],[4,2],[11,1],[4,1],[14,3],[4,1],[8,1],[4,1],[12,3],[4,1],[8,5],[4,1],[5,3],[4,1],[8,1],[4,1],[13,3],[4,1],[8,2],[4,6],[11,1],[4,3]]], +[" ",[[3,98],[4,42]]], +[" ",[[3,98],[4,2],[0,38],[4,2]]], +[" ⬖ Getting started ✕ ",[[3,98],[4,2],[0,4],[1,15],[0,16],[15,1],[0,2],[4,2]]], +[" ",[[3,98],[4,2],[0,38],[4,2]]], +[" OpenCode includes free models so ",[[3,98],[4,2],[0,4],[15,32],[0,2],[4,2]]], +[" you can start immediately. ",[[3,98],[4,2],[0,4],[15,26],[0,8],[4,2]]], +[" ",[[3,98],[4,2],[0,38],[4,2]]], +[" Connect from 75+ providers to ",[[3,98],[4,2],[0,4],[15,30],[0,4],[4,2]]], +[" use other models, including ",[[3,98],[4,2],[0,4],[15,28],[0,6],[4,2]]], +[" ┃ Claude, GPT, Gemini etc ",[[3,2],[16,1],[0,93],[3,2],[4,2],[0,4],[15,23],[0,11],[4,2]]], +[" ┃ ",[[3,2],[16,1],[0,93],[3,2],[4,2],[0,38],[4,2]]], +[" ┃ Connect provider /connect ",[[3,2],[16,1],[0,93],[3,2],[4,2],[0,28],[15,8],[0,2],[4,2]]], +[" ┃ ",[[3,2],[16,1],[0,93],[3,2],[4,2],[0,38],[4,2]]], +[" ╹▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀ ",[[3,2],[16,1],[17,93],[3,2],[4,42]]], +[" /tmp/opencode/packages/tui:main 13.1K (7%) ctrl+p commands /tmp/opencode/packages/tui:main ",[[3,2],[2,31],[3,36],[2,10],[3,9],[2,8],[3,2],[4,2],[8,31],[4,9]]], +[" ",[[3,98],[4,42]]] +]} diff --git a/packages/cli-rs/parity/fixtures/P.8/context-grid.app.json b/packages/cli-rs/parity/fixtures/P.8/context-grid.app.json new file mode 100644 index 000000000000..9a9a0081e839 --- /dev/null +++ b/packages/cli-rs/parity/fixtures/P.8/context-grid.app.json @@ -0,0 +1,68 @@ +{ + "scenario": "P.8/context-grid", + "width": 140, + "height": 34, + "directory": "/tmp/opencode/packages/tui", + "config": { + "experimental": {"new-designs":true}, + "plugins": ["./out/npm/node_modules/@khaosoigai/oc-context-grid"], + "animations": false, + "theme": {"name":"opencode"} + }, + "args": { + "sessionID": "ses_g" + }, + "env": { + "OPENCODE_PARITY_PLUGIN": "npm" + }, + "routes": [ + {"path":"/api/session/ses_g","json":{"data":{"id":"ses_g","title":"Draft the notes","projectID":"proj_test","cost":0.08,"tokens":{"input":0,"output":0,"reasoning":0,"cache":{"read":0,"write":0}},"time":{"created":2,"updated":2},"location":{"directory":"/tmp/opencode/packages/tui"}}}}, + {"path":"/api/session","json":{"data":[{"id":"ses_g","title":"Draft the notes","projectID":"proj_test","cost":0,"tokens":{"input":0,"output":0,"reasoning":0,"cache":{"read":0,"write":0}},"time":{"created":2,"updated":2},"location":{"directory":"/tmp/opencode/packages/tui"}}],"cursor":{}}}, + {"path":"/api/session/ses_g/message","json":{"data":[{"id":"msg_2","type":"assistant","agent":"build","model":{"providerID":"provider","id":"model"},"content":[{"type":"text","text":"The file says what the release holds; the notes follow it."},{"type":"tool","id":"call_1","name":"read","state":{"status":"completed","input":{"path":"CHANGELOG.md"},"content":[{"type":"text","text":"xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx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xxxxxxxxxxxxxxxxx"}]},"time":{"created":2,"ran":2,"completed":3}}],"finish":"stop","time":{"created":2,"completed":3},"cost":0.08,"tokens":{"input":30000,"output":500,"reasoning":0,"cache":{"read":5000,"write":0}}},{"id":"msg_1","type":"user","text":"Read the changelog and draft the notes for 2.3.","time":{"created":1}}],"cursor":{}}}, + {"path":"/api/session/ses_g/inbox","json":{"data":[]}}, + {"path":"/api/model","json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":[{"id":"model","modelID":"model","providerID":"provider","name":"Model","capabilities":{"tools":true,"input":["text"],"output":["text"]},"variants":[],"time":{"released":0},"cost":[{"input":3,"output":15,"cache":{"read":0.3,"write":3.75}}],"status":"active","enabled":true,"limit":{"context":200000,"output":32000}}]}} + ], + "steps": [ + {"checkpoint":"sidebar","until":"tokens (18%)","fixture":"P.8/context-grid/sidebar"}, + {"type":"/contextgrid"}, + {"checkpoint":"slash","until":"Show context usage as a grid","fixture":"P.8/context-grid/slash"}, + {"keys":["enter"]}, + {"checkpoint":"page","until":"Estimated usage by category","fixture":"P.8/context-grid/page"}, + {"keys":["escape"]}, + {"checkpoint":"back","until":"tokens (18%)","fixture":"P.8/context-grid/back"} + ], + "requests": { + "writes": [], + "reads": [ + {"method":"GET","path":"/api/agent","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":[]}}, + {"method":"GET","path":"/api/command","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":[]}}, + {"method":"GET","path":"/api/config","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":[]}, + {"method":"GET","path":"/api/experimental/job","query":{"descendants":["true"],"sessionID":["ses_g"],"status":["running"]},"status":200,"json":{"data":[]}}, + {"method":"GET","path":"/api/experimental/migration/v1","query":{},"status":200,"json":{"status":"completed"}}, + {"method":"GET","path":"/api/experimental/session/ses_g/terminal","query":{},"status":200,"json":{"data":[]}}, + {"method":"GET","path":"/api/form","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode"}},"data":[]}}, + {"method":"GET","path":"/api/fs/list","query":{"location[directory]":["<cwd>"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":[]}}, + {"method":"GET","path":"/api/info","query":{},"status":200,"json":{"version":"test","pid":0,"urls":[],"paths":{"tmp":"/tmp"},"capabilities":{"persistentPty":true}}}, + {"method":"GET","path":"/api/integration","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":[]}}, + {"method":"GET","path":"/api/location","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}}}, + {"method":"GET","path":"/api/mcp","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":[]}}, + {"method":"GET","path":"/api/mcp/resource","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":{"resources":[],"templates":[]}}}, + {"method":"GET","path":"/api/model","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":[{"id":"model","modelID":"model","providerID":"provider","name":"Model","capabilities":{"tools":true,"input":["text"],"output":["text"]},"variants":[],"time":{"released":0},"cost":[{"input":3,"output":15,"cache":{"read":0.3,"write":3.75}}],"status":"active","enabled":true,"limit":{"context":200000,"output":32000}}]}}, + {"method":"GET","path":"/api/plugin","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":[]}}, + {"method":"GET","path":"/api/project","query":{},"status":200,"json":[]}, + {"method":"GET","path":"/api/provider","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":[]}}, + {"method":"GET","path":"/api/reference","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode/packages/tui","canonical":"/tmp/opencode/packages/tui"}},"data":[]}}, + {"method":"GET","path":"/api/session","query":{"limit":["200"],"order":["desc"],"parentID":["ses_g"]},"status":200,"json":{"data":[{"id":"ses_g","title":"Draft the notes","projectID":"proj_test","cost":0,"tokens":{"input":0,"output":0,"reasoning":0,"cache":{"read":0,"write":0}},"time":{"created":2,"updated":2},"location":{"directory":"/tmp/opencode/packages/tui"}}],"cursor":{}}}, + {"method":"GET","path":"/api/session/active","query":{},"status":200,"json":{"data":{}}}, + {"method":"GET","path":"/api/session/ses_g","query":{},"status":200,"json":{"data":{"id":"ses_g","title":"Draft the notes","projectID":"proj_test","cost":0.08,"tokens":{"input":0,"output":0,"reasoning":0,"cache":{"read":0,"write":0}},"time":{"created":2,"updated":2},"location":{"directory":"/tmp/opencode/packages/tui"}}}}, + {"method":"GET","path":"/api/session/ses_g/form","query":{},"status":200,"json":{"data":[]}}, + {"method":"GET","path":"/api/session/ses_g/inbox","query":{},"status":200,"json":{"data":[]}}, + {"method":"GET","path":"/api/session/ses_g/message","query":{"limit":["20"],"order":["desc"]},"status":200,"json":{"data":[{"id":"msg_2","type":"assistant","agent":"build","model":{"providerID":"provider","id":"model"},"content":[{"type":"text","text":"The file says what the release holds; the notes follow it."},{"type":"tool","id":"call_1","name":"read","state":{"status":"completed","input":{"path":"CHANGELOG.md"},"content":[{"type":"text","text":"xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx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xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx"}]},"time":{"created":2,"ran":2,"completed":3}}],"finish":"stop","time":{"created":2,"completed":3},"cost":0.08,"tokens":{"input":30000,"output":500,"reasoning":0,"cache":{"read":5000,"write":0}}},{"id":"msg_1","type":"user","text":"Read the changelog and draft the notes for 2.3.","time":{"created":1}}],"cursor":{}}}, + {"method":"GET","path":"/api/session/ses_g/permission","query":{},"status":200,"json":{"data":[]}}, + {"method":"GET","path":"/api/shell","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":[]}}, + {"method":"GET","path":"/api/skill","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":[]}}, + {"method":"GET","path":"/api/vcs","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":{"branch":{"current":"main","default":"main"}}}}, + {"method":"POST","path":"/api/rpc/opencode.goal/get","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"body":{"input":{"sessionID":"ses_g"}},"status":200,"json":{"output":null}} + ] + } +} diff --git a/packages/cli-rs/parity/fixtures/P.8/context-grid/back.json b/packages/cli-rs/parity/fixtures/P.8/context-grid/back.json new file mode 100644 index 000000000000..e488a58fd413 --- /dev/null +++ b/packages/cli-rs/parity/fixtures/P.8/context-grid/back.json @@ -0,0 +1,36 @@ +{"width":140,"height":34,"styles":["#ffffffff #202020ff 0","#ffffffff #202020ff 1","#808080ff #080808ff 0","#ffffffff #080808ff 0","#ffffffff #141414ff 0","#7699feff #141414ff 0","#ffffffff #141414ff 1","#808080ff #141414ff 0","#eeeeeeff #080808ff 0","#7699feff #080808ff 0","#ecb081ff #141414ff 0","#808080ff #202020ff 0","#484848ff #080808ff 0","#202020ff #080808ff 0"],"lines":[ +[" Draft the notes + ",[[0,3],[1,15],[0,14],[2,3],[3,105]]], +[" ",[[3,98],[4,42]]], +[" ┃ Draft the notes ",[[3,2],[5,1],[4,93],[3,2],[4,2],[6,15],[4,25]]], +[" ┃ Read the changelog and draft the notes for 2.3. ",[[3,2],[5,1],[4,93],[3,2],[4,42]]], +[" ┃ Context ",[[3,2],[5,1],[4,93],[3,2],[4,2],[6,7],[4,33]]], +[" 35,500 tokens ",[[3,98],[4,2],[7,13],[4,27]]], +[" The file says what the release holds; the notes follow it. 18% used ",[[3,5],[8,58],[3,35],[4,2],[7,8],[4,32]]], +[" ",[[3,98],[4,42]]], +[" + 1 read Context grid ",[[3,5],[2,1],[3,1],[2,6],[3,85],[4,2],[6,12],[4,28]]], +[" 35.5k/200k tokens (18%) ",[[3,98],[4,2],[7,23],[4,17]]], +[" Build · Model · 2ms ⛁ ⛁ ⛁ ⛁ ⛁ ⛀ ⛶ ⛶ ⛶ ⛶ ",[[3,5],[9,5],[2,14],[3,74],[4,2],[5,8],[10,4],[7,8],[4,20]]], +[" ⛶ ⛶ ⛶ ⛶ ⛶ ⛶ ⛶ ⛶ ⛶ ⛶ ",[[3,98],[4,2],[7,20],[4,20]]], +[" ⛶ ⛶ ⛶ ⛶ ⛶ ⛶ ⛶ ⛶ ⛶ ⛶ ",[[3,98],[4,2],[7,20],[4,20]]], +[" ",[[3,98],[4,42]]], +[" ",[[3,98],[4,42]]], +[" ",[[3,98],[4,42]]], +[" ",[[3,98],[4,42]]], +[" ",[[3,98],[4,42]]], +[" ",[[3,98],[4,42]]], +[" ",[[3,98],[4,2],[0,38],[4,2]]], +[" ⬖ Getting started ✕ ",[[3,98],[4,2],[0,4],[1,15],[0,16],[11,1],[0,2],[4,2]]], +[" ",[[3,98],[4,2],[0,38],[4,2]]], +[" OpenCode includes free models so ",[[3,98],[4,2],[0,4],[11,32],[0,2],[4,2]]], +[" you can start immediately. ",[[3,98],[4,2],[0,4],[11,26],[0,8],[4,2]]], +[" ",[[3,98],[4,2],[0,38],[4,2]]], +[" Connect from 75+ providers to ",[[3,98],[4,2],[0,4],[11,30],[0,4],[4,2]]], +[" use other models, including ",[[3,98],[4,2],[0,4],[11,28],[0,6],[4,2]]], +[" ┃ Claude, GPT, Gemini etc ",[[3,2],[12,1],[0,93],[3,2],[4,2],[0,4],[11,23],[0,11],[4,2]]], +[" ┃ ",[[3,2],[12,1],[0,93],[3,2],[4,2],[0,38],[4,2]]], +[" ┃ Connect provider /connect ",[[3,2],[12,1],[0,93],[3,2],[4,2],[0,28],[11,8],[0,2],[4,2]]], +[" ┃ ",[[3,2],[12,1],[0,93],[3,2],[4,2],[0,38],[4,2]]], +[" ╹▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀ ",[[3,2],[12,1],[13,93],[3,2],[4,42]]], +[" /tmp/opencode/packages/tui:main 35.5K (18%) ctrl+p commands /tmp/opencode/packages/tui:main ",[[3,2],[2,31],[3,35],[2,11],[3,9],[2,8],[3,2],[4,2],[7,31],[4,9]]], +[" ",[[3,98],[4,42]]] +]} diff --git a/packages/cli-rs/parity/fixtures/P.8/context-grid/page.json b/packages/cli-rs/parity/fixtures/P.8/context-grid/page.json new file mode 100644 index 000000000000..20a6194e8bd6 --- /dev/null +++ b/packages/cli-rs/parity/fixtures/P.8/context-grid/page.json @@ -0,0 +1,36 @@ +{"width":140,"height":34,"styles":["#ffffffff #080808ff 0","#ffffffff #080808ff 1","#808080ff #080808ff 0","#7699feff #080808ff 0","#ecb081ff #080808ff 0","#a383e2ff #080808ff 0","#9ee77aff #080808ff 0","#ef6c6cff #080808ff 0"],"lines":[ +[" ",[[0,140]]], +[" Context Usage ",[[0,1],[1,13],[0,126]]], +[" ",[[0,140]]], +[" Model · 35.5k/200k tokens (18%) · $0.00 spent ",[[0,1],[2,45],[0,94]]], +[" ",[[0,140]]], +[" ⛁ ⛁ ⛁ ⛁ ⛁ ⛁ ⛁ ⛁ ⛁ ⛁ Estimated usage by category ",[[0,1],[3,20],[0,2],[2,27],[0,90]]], +[" ⛁ ⛁ ⛁ ⛁ ⛁ ⛁ ⛁ ⛁ ⛶ ⛶ ⛁ System: 27.6k tokens (13.8%) ",[[0,1],[3,8],[4,8],[2,4],[0,2],[3,2],[0,8],[2,20],[0,87]]], +[" ⛶ ⛶ ⛶ ⛶ ⛶ ⛶ ⛶ ⛶ ⛶ ⛶ ⛁ User: 9 tokens (0.0%) ",[[0,1],[2,20],[0,2],[5,2],[0,6],[2,15],[0,94]]], +[" ⛶ ⛶ ⛶ ⛶ ⛶ ⛶ ⛶ ⛶ ⛶ ⛶ ⛁ Assistant: 11 tokens (0.0%) ",[[0,1],[2,20],[0,2],[6,2],[0,11],[2,16],[0,88]]], +[" ⛶ ⛶ ⛶ ⛶ ⛶ ⛶ ⛶ ⛶ ⛶ ⛶ ⛁ Tools: 7.9k tokens (3.9%) ",[[0,1],[2,20],[0,2],[4,2],[0,7],[2,18],[0,90]]], +[" ⛶ ⛶ ⛶ ⛶ ⛶ ⛶ ⛶ ⛶ ⛶ ⛶ ⛁ Other: 3 tokens (0.0%) ",[[0,1],[2,20],[0,2],[7,2],[0,7],[2,15],[0,93]]], +[" ⛶ ⛶ ⛶ ⛶ ⛶ ⛶ ⛶ ⛶ ⛶ ⛶ ⛶ Free space: 165k (82.3%) ",[[0,1],[2,20],[0,2],[2,2],[0,12],[2,12],[0,91]]], +[" ⛶ ⛶ ⛶ ⛶ ⛶ ⛶ ⛶ ⛶ ⛶ ⛶ ",[[0,1],[2,20],[0,119]]], +[" ⛶ ⛶ ⛶ ⛶ ⛶ ⛶ ⛶ ⛶ ⛶ ⛶ ",[[0,1],[2,20],[0,119]]], +[" ⛶ ⛶ ⛶ ⛶ ⛶ ⛶ ⛶ ⛶ ⛶ ⛶ ",[[0,1],[2,20],[0,119]]], +[" ",[[0,140]]], +[" esc close ",[[0,1],[2,9],[0,130]]], +[" ",[[0,140]]], +[" ",[[0,140]]], +[" ",[[0,140]]], +[" ",[[0,140]]], +[" ",[[0,140]]], +[" ",[[0,140]]], +[" ",[[0,140]]], +[" ",[[0,140]]], +[" ",[[0,140]]], +[" ",[[0,140]]], +[" ",[[0,140]]], +[" ",[[0,140]]], +[" ",[[0,140]]], +[" ",[[0,140]]], +[" ",[[0,140]]], +[" ",[[0,140]]], +[" ",[[0,140]]] +]} diff --git a/packages/cli-rs/parity/fixtures/P.8/context-grid/sidebar.json b/packages/cli-rs/parity/fixtures/P.8/context-grid/sidebar.json new file mode 100644 index 000000000000..e488a58fd413 --- /dev/null +++ b/packages/cli-rs/parity/fixtures/P.8/context-grid/sidebar.json @@ -0,0 +1,36 @@ +{"width":140,"height":34,"styles":["#ffffffff #202020ff 0","#ffffffff #202020ff 1","#808080ff #080808ff 0","#ffffffff #080808ff 0","#ffffffff #141414ff 0","#7699feff #141414ff 0","#ffffffff #141414ff 1","#808080ff #141414ff 0","#eeeeeeff #080808ff 0","#7699feff #080808ff 0","#ecb081ff #141414ff 0","#808080ff #202020ff 0","#484848ff #080808ff 0","#202020ff #080808ff 0"],"lines":[ +[" Draft the notes + ",[[0,3],[1,15],[0,14],[2,3],[3,105]]], +[" ",[[3,98],[4,42]]], +[" ┃ Draft the notes ",[[3,2],[5,1],[4,93],[3,2],[4,2],[6,15],[4,25]]], +[" ┃ Read the changelog and draft the notes for 2.3. ",[[3,2],[5,1],[4,93],[3,2],[4,42]]], +[" ┃ Context ",[[3,2],[5,1],[4,93],[3,2],[4,2],[6,7],[4,33]]], +[" 35,500 tokens ",[[3,98],[4,2],[7,13],[4,27]]], +[" The file says what the release holds; the notes follow it. 18% used ",[[3,5],[8,58],[3,35],[4,2],[7,8],[4,32]]], +[" ",[[3,98],[4,42]]], +[" + 1 read Context grid ",[[3,5],[2,1],[3,1],[2,6],[3,85],[4,2],[6,12],[4,28]]], +[" 35.5k/200k tokens (18%) ",[[3,98],[4,2],[7,23],[4,17]]], +[" Build · Model · 2ms ⛁ ⛁ ⛁ ⛁ ⛁ ⛀ ⛶ ⛶ ⛶ ⛶ ",[[3,5],[9,5],[2,14],[3,74],[4,2],[5,8],[10,4],[7,8],[4,20]]], +[" ⛶ ⛶ ⛶ ⛶ ⛶ ⛶ ⛶ ⛶ ⛶ ⛶ ",[[3,98],[4,2],[7,20],[4,20]]], +[" ⛶ ⛶ ⛶ ⛶ ⛶ ⛶ ⛶ ⛶ ⛶ ⛶ ",[[3,98],[4,2],[7,20],[4,20]]], +[" ",[[3,98],[4,42]]], +[" ",[[3,98],[4,42]]], +[" ",[[3,98],[4,42]]], +[" ",[[3,98],[4,42]]], +[" ",[[3,98],[4,42]]], +[" ",[[3,98],[4,42]]], +[" ",[[3,98],[4,2],[0,38],[4,2]]], +[" ⬖ Getting started ✕ ",[[3,98],[4,2],[0,4],[1,15],[0,16],[11,1],[0,2],[4,2]]], +[" ",[[3,98],[4,2],[0,38],[4,2]]], +[" OpenCode includes free models so ",[[3,98],[4,2],[0,4],[11,32],[0,2],[4,2]]], +[" you can start immediately. ",[[3,98],[4,2],[0,4],[11,26],[0,8],[4,2]]], +[" ",[[3,98],[4,2],[0,38],[4,2]]], +[" Connect from 75+ providers to ",[[3,98],[4,2],[0,4],[11,30],[0,4],[4,2]]], +[" use other models, including ",[[3,98],[4,2],[0,4],[11,28],[0,6],[4,2]]], +[" ┃ Claude, GPT, Gemini etc ",[[3,2],[12,1],[0,93],[3,2],[4,2],[0,4],[11,23],[0,11],[4,2]]], +[" ┃ ",[[3,2],[12,1],[0,93],[3,2],[4,2],[0,38],[4,2]]], +[" ┃ Connect provider /connect ",[[3,2],[12,1],[0,93],[3,2],[4,2],[0,28],[11,8],[0,2],[4,2]]], +[" ┃ ",[[3,2],[12,1],[0,93],[3,2],[4,2],[0,38],[4,2]]], +[" ╹▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀ ",[[3,2],[12,1],[13,93],[3,2],[4,42]]], +[" /tmp/opencode/packages/tui:main 35.5K (18%) ctrl+p commands /tmp/opencode/packages/tui:main ",[[3,2],[2,31],[3,35],[2,11],[3,9],[2,8],[3,2],[4,2],[7,31],[4,9]]], +[" ",[[3,98],[4,42]]] +]} diff --git a/packages/cli-rs/parity/fixtures/P.8/context-grid/slash.json b/packages/cli-rs/parity/fixtures/P.8/context-grid/slash.json new file mode 100644 index 000000000000..d822603c8ad5 --- /dev/null +++ b/packages/cli-rs/parity/fixtures/P.8/context-grid/slash.json @@ -0,0 +1,36 @@ +{"width":140,"height":34,"styles":["#ffffffff #202020ff 0","#ffffffff #202020ff 1","#808080ff #080808ff 0","#ffffffff #080808ff 0","#ffffffff #141414ff 0","#7699feff #141414ff 0","#ffffffff #141414ff 1","#808080ff #141414ff 0","#eeeeeeff #080808ff 0","#7699feff #080808ff 0","#ecb081ff #141414ff 0","#808080ff #202020ff 0","#ffffffff #23344bff 0","#484848ff #080808ff 0","#202020ff #080808ff 0"],"lines":[ +[" Draft the notes + ",[[0,3],[1,15],[0,14],[2,3],[3,105]]], +[" ",[[3,98],[4,42]]], +[" ┃ Draft the notes ",[[3,2],[5,1],[4,93],[3,2],[4,2],[6,15],[4,25]]], +[" ┃ Read the changelog and draft the notes for 2.3. ",[[3,2],[5,1],[4,93],[3,2],[4,42]]], +[" ┃ Context ",[[3,2],[5,1],[4,93],[3,2],[4,2],[6,7],[4,33]]], +[" 35,500 tokens ",[[3,98],[4,2],[7,13],[4,27]]], +[" The file says what the release holds; the notes follow it. 18% used ",[[3,5],[8,58],[3,35],[4,2],[7,8],[4,32]]], +[" ",[[3,98],[4,42]]], +[" + 1 read Context grid ",[[3,5],[2,1],[3,1],[2,6],[3,85],[4,2],[6,12],[4,28]]], +[" 35.5k/200k tokens (18%) ",[[3,98],[4,2],[7,23],[4,17]]], +[" Build · Model · 2ms ⛁ ⛁ ⛁ ⛁ ⛁ ⛀ ⛶ ⛶ ⛶ ⛶ ",[[3,5],[9,5],[2,14],[3,74],[4,2],[5,8],[10,4],[7,8],[4,20]]], +[" ⛶ ⛶ ⛶ ⛶ ⛶ ⛶ ⛶ ⛶ ⛶ ⛶ ",[[3,98],[4,2],[7,20],[4,20]]], +[" ⛶ ⛶ ⛶ ⛶ ⛶ ⛶ ⛶ ⛶ ⛶ ⛶ ",[[3,98],[4,2],[7,20],[4,20]]], +[" ",[[3,98],[4,42]]], +[" ",[[3,98],[4,42]]], +[" ",[[3,98],[4,42]]], +[" ",[[3,98],[4,42]]], +[" ",[[3,98],[4,42]]], +[" ",[[3,98],[4,42]]], +[" ",[[3,98],[4,2],[0,38],[4,2]]], +[" ⬖ Getting started ✕ ",[[3,98],[4,2],[0,4],[1,15],[0,16],[11,1],[0,2],[4,2]]], +[" ",[[3,98],[4,2],[0,38],[4,2]]], +[" OpenCode includes free models so ",[[3,98],[4,2],[0,4],[11,32],[0,2],[4,2]]], +[" you can start immediately. ",[[3,98],[4,2],[0,4],[11,26],[0,8],[4,2]]], +[" ",[[3,98],[4,2],[0,38],[4,2]]], +[" ┃ /contextgrid Show context usage as a grid of squares ┃ Connect from 75+ providers to ",[[3,2],[9,1],[12,92],[13,1],[3,2],[4,2],[0,4],[11,30],[0,4],[4,2]]], +[" ┃ /ctx Show context usage as a grid of squares ┃ use other models, including ",[[3,2],[13,1],[0,15],[11,40],[0,37],[13,1],[3,2],[4,2],[0,4],[11,28],[0,6],[4,2]]], +[" ┃ Claude, GPT, Gemini etc ",[[3,2],[13,1],[0,93],[3,2],[4,2],[0,4],[11,23],[0,11],[4,2]]], +[" ┃ /contextgrid ",[[3,2],[13,1],[0,93],[3,2],[4,2],[0,38],[4,2]]], +[" ┃ Connect provider /connect ",[[3,2],[13,1],[0,93],[3,2],[4,2],[0,28],[11,8],[0,2],[4,2]]], +[" ┃ ",[[3,2],[13,1],[0,93],[3,2],[4,2],[0,38],[4,2]]], +[" ╹▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀ ",[[3,2],[13,1],[14,93],[3,2],[4,42]]], +[" /tmp/opencode/packages/tui:main 35.5K (18%) ctrl+p commands /tmp/opencode/packages/tui:main ",[[3,2],[2,31],[3,35],[2,11],[3,9],[2,8],[3,2],[4,2],[7,31],[4,9]]], +[" ",[[3,98],[4,42]]] +]} diff --git a/packages/cli-rs/parity/fixtures/P.8/context-hue.app.json b/packages/cli-rs/parity/fixtures/P.8/context-hue.app.json new file mode 100644 index 000000000000..a85966425374 --- /dev/null +++ b/packages/cli-rs/parity/fixtures/P.8/context-hue.app.json @@ -0,0 +1,62 @@ +{ + "scenario": "P.8/context-hue", + "width": 140, + "height": 34, + "directory": "/tmp/opencode/packages/tui", + "config": { + "experimental": {"new-designs":true}, + "plugins": ["./out/npm/node_modules/opencode-plugin-context"], + "animations": false, + "theme": {"name":"opencode"} + }, + "args": { + "sessionID": "ses_h" + }, + "env": { + "OPENCODE_PARITY_PLUGIN": "npm" + }, + "routes": [ + {"path":"/api/session/ses_h","json":{"data":{"id":"ses_h","title":"Measure the context","projectID":"proj_test","cost":0.42,"tokens":{"input":0,"output":0,"reasoning":0,"cache":{"read":0,"write":0}},"time":{"created":2,"updated":2},"location":{"directory":"/tmp/opencode/packages/tui"}}}}, + {"path":"/api/session","json":{"data":[{"id":"ses_h","title":"Measure the context","projectID":"proj_test","cost":0,"tokens":{"input":0,"output":0,"reasoning":0,"cache":{"read":0,"write":0}},"time":{"created":2,"updated":2},"location":{"directory":"/tmp/opencode/packages/tui"}}],"cursor":{}}}, + {"path":"/api/session/ses_h/message","json":{"data":[{"id":"msg_2","type":"assistant","agent":"build","model":{"providerID":"provider","id":"model"},"content":[{"type":"text","text":"Measured."}],"finish":"stop","time":{"created":2000,"completed":2001},"cost":0.42,"tokens":{"input":120000,"output":500,"reasoning":2000,"cache":{"read":30000,"write":0}}},{"id":"msg_1","type":"user","text":"Measure it","time":{"created":1000}}],"cursor":{}}}, + {"path":"/api/session/ses_h/inbox","json":{"data":[]}}, + {"path":"/api/model","json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":[{"id":"model","modelID":"model","providerID":"provider","name":"Model","capabilities":{"tools":true,"input":["text"],"output":["text"]},"variants":[],"time":{"released":0},"cost":[{"input":3,"output":15,"cache":{"read":0.3,"write":3.75}}],"status":"active","enabled":true,"limit":{"context":200000,"output":32000}}]}} + ], + "steps": [ + {"checkpoint":"bar","until":"200,000 tokens","fixture":"P.8/context-hue/bar"} + ], + "requests": { + "writes": [], + "reads": [ + {"method":"GET","path":"/api/agent","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":[]}}, + {"method":"GET","path":"/api/command","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":[]}}, + {"method":"GET","path":"/api/config","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":[]}, + {"method":"GET","path":"/api/experimental/job","query":{"descendants":["true"],"sessionID":["ses_h"],"status":["running"]},"status":200,"json":{"data":[]}}, + {"method":"GET","path":"/api/experimental/migration/v1","query":{},"status":200,"json":{"status":"completed"}}, + {"method":"GET","path":"/api/experimental/session/ses_h/terminal","query":{},"status":200,"json":{"data":[]}}, + {"method":"GET","path":"/api/form","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode"}},"data":[]}}, + {"method":"GET","path":"/api/fs/list","query":{"location[directory]":["<cwd>"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":[]}}, + {"method":"GET","path":"/api/info","query":{},"status":200,"json":{"version":"test","pid":0,"urls":[],"paths":{"tmp":"/tmp"},"capabilities":{"persistentPty":true}}}, + {"method":"GET","path":"/api/integration","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":[]}}, + {"method":"GET","path":"/api/location","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}}}, + {"method":"GET","path":"/api/mcp","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":[]}}, + {"method":"GET","path":"/api/mcp/resource","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":{"resources":[],"templates":[]}}}, + {"method":"GET","path":"/api/model","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":[{"id":"model","modelID":"model","providerID":"provider","name":"Model","capabilities":{"tools":true,"input":["text"],"output":["text"]},"variants":[],"time":{"released":0},"cost":[{"input":3,"output":15,"cache":{"read":0.3,"write":3.75}}],"status":"active","enabled":true,"limit":{"context":200000,"output":32000}}]}}, + {"method":"GET","path":"/api/plugin","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":[]}}, + {"method":"GET","path":"/api/project","query":{},"status":200,"json":[]}, + {"method":"GET","path":"/api/provider","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":[]}}, + {"method":"GET","path":"/api/reference","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode/packages/tui","canonical":"/tmp/opencode/packages/tui"}},"data":[]}}, + {"method":"GET","path":"/api/session","query":{"limit":["200"],"order":["desc"],"parentID":["ses_h"]},"status":200,"json":{"data":[{"id":"ses_h","title":"Measure the context","projectID":"proj_test","cost":0,"tokens":{"input":0,"output":0,"reasoning":0,"cache":{"read":0,"write":0}},"time":{"created":2,"updated":2},"location":{"directory":"/tmp/opencode/packages/tui"}}],"cursor":{}}}, + {"method":"GET","path":"/api/session/active","query":{},"status":200,"json":{"data":{}}}, + {"method":"GET","path":"/api/session/ses_h","query":{},"status":200,"json":{"data":{"id":"ses_h","title":"Measure the context","projectID":"proj_test","cost":0.42,"tokens":{"input":0,"output":0,"reasoning":0,"cache":{"read":0,"write":0}},"time":{"created":2,"updated":2},"location":{"directory":"/tmp/opencode/packages/tui"}}}}, + {"method":"GET","path":"/api/session/ses_h/form","query":{},"status":200,"json":{"data":[]}}, + {"method":"GET","path":"/api/session/ses_h/inbox","query":{},"status":200,"json":{"data":[]}}, + {"method":"GET","path":"/api/session/ses_h/message","query":{"limit":["20"],"order":["desc"]},"status":200,"json":{"data":[{"id":"msg_2","type":"assistant","agent":"build","model":{"providerID":"provider","id":"model"},"content":[{"type":"text","text":"Measured."}],"finish":"stop","time":{"created":2000,"completed":2001},"cost":0.42,"tokens":{"input":120000,"output":500,"reasoning":2000,"cache":{"read":30000,"write":0}}},{"id":"msg_1","type":"user","text":"Measure it","time":{"created":1000}}],"cursor":{}}}, + {"method":"GET","path":"/api/session/ses_h/permission","query":{},"status":200,"json":{"data":[]}}, + {"method":"GET","path":"/api/shell","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":[]}}, + {"method":"GET","path":"/api/skill","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":[]}}, + {"method":"GET","path":"/api/vcs","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":{"branch":{"current":"main","default":"main"}}}}, + {"method":"POST","path":"/api/rpc/opencode.goal/get","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"body":{"input":{"sessionID":"ses_h"}},"status":200,"json":{"output":null}} + ] + } +} diff --git a/packages/cli-rs/parity/fixtures/P.8/context-hue/bar.json b/packages/cli-rs/parity/fixtures/P.8/context-hue/bar.json new file mode 100644 index 000000000000..28116835ebb0 --- /dev/null +++ b/packages/cli-rs/parity/fixtures/P.8/context-hue/bar.json @@ -0,0 +1,36 @@ +{"width":140,"height":34,"styles":["#ffffffff #202020ff 0","#ffffffff #202020ff 1","#808080ff #080808ff 0","#ffffffff #080808ff 0","#ffffffff #141414ff 0","#7699feff #141414ff 0","#ffffffff #141414ff 1","#808080ff #141414ff 0","#eeeeeeff #080808ff 0","#7699feff #080808ff 0","#9ee77aff #141414ff 0","#426097ff #141414ff 0","#f5a742ff #141414ff 0","#808080ff #202020ff 0","#484848ff #080808ff 0","#202020ff #080808ff 0"],"lines":[ +[" Measure the context + ",[[0,3],[1,19],[0,10],[2,3],[3,105]]], +[" ",[[3,98],[4,42]]], +[" ┃ Measure the context ",[[3,2],[5,1],[4,93],[3,2],[4,2],[6,19],[4,21]]], +[" ┃ Measure it ",[[3,2],[5,1],[4,93],[3,2],[4,42]]], +[" ┃ Context ",[[3,2],[5,1],[4,93],[3,2],[4,2],[6,7],[4,33]]], +[" 152,500 tokens ",[[3,98],[4,2],[7,14],[4,26]]], +[" Measured. 76% used ",[[3,5],[8,9],[3,84],[4,2],[7,8],[4,32]]], +[" ",[[3,98],[4,42]]], +[" Build · Model · 1.0s Context ",[[3,5],[9,5],[2,15],[3,73],[4,2],[6,7],[4,33]]], +[" ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 76% ",[[3,98],[4,2],[10,5],[11,19],[7,5],[4,4],[12,4],[4,3]]], +[" ▍c30K ▍p120K ▍t2K ▍o500 ▍r32K ▍f16K ",[[3,98],[4,2],[10,1],[7,5],[11,1],[7,6],[12,1],[7,4],[5,1],[7,11],[4,1],[7,4],[4,5]]], +[" 152,500 / 200,000 tokens ",[[3,98],[4,2],[7,24],[4,16]]], +[" ",[[3,98],[4,42]]], +[" ",[[3,98],[4,42]]], +[" ",[[3,98],[4,42]]], +[" ",[[3,98],[4,42]]], +[" ",[[3,98],[4,42]]], +[" ",[[3,98],[4,42]]], +[" ",[[3,98],[4,42]]], +[" ",[[3,98],[4,2],[0,38],[4,2]]], +[" ⬖ Getting started ✕ ",[[3,98],[4,2],[0,4],[1,15],[0,16],[13,1],[0,2],[4,2]]], +[" ",[[3,98],[4,2],[0,38],[4,2]]], +[" OpenCode includes free models so ",[[3,98],[4,2],[0,4],[13,32],[0,2],[4,2]]], +[" you can start immediately. ",[[3,98],[4,2],[0,4],[13,26],[0,8],[4,2]]], +[" ",[[3,98],[4,2],[0,38],[4,2]]], +[" Connect from 75+ providers to ",[[3,98],[4,2],[0,4],[13,30],[0,4],[4,2]]], +[" use other models, including ",[[3,98],[4,2],[0,4],[13,28],[0,6],[4,2]]], +[" ┃ Claude, GPT, Gemini etc ",[[3,2],[14,1],[0,93],[3,2],[4,2],[0,4],[13,23],[0,11],[4,2]]], +[" ┃ ",[[3,2],[14,1],[0,93],[3,2],[4,2],[0,38],[4,2]]], +[" ┃ Connect provider /connect ",[[3,2],[14,1],[0,93],[3,2],[4,2],[0,28],[13,8],[0,2],[4,2]]], +[" ┃ ",[[3,2],[14,1],[0,93],[3,2],[4,2],[0,38],[4,2]]], +[" ╹▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀ ",[[3,2],[14,1],[15,93],[3,2],[4,42]]], +[" /tmp/opencode/packages/tui:main 152.5K (76%) ctrl+p commands /tmp/opencode/packages/tui:main ",[[3,2],[2,31],[3,34],[2,12],[3,9],[2,8],[3,2],[4,2],[7,31],[4,9]]], +[" ",[[3,98],[4,42]]] +]} diff --git a/packages/cli-rs/parity/fixtures/P.8/file-browser.app.json b/packages/cli-rs/parity/fixtures/P.8/file-browser.app.json new file mode 100644 index 000000000000..67822a38d60f --- /dev/null +++ b/packages/cli-rs/parity/fixtures/P.8/file-browser.app.json @@ -0,0 +1,66 @@ +{ + "scenario": "P.8/file-browser", + "width": 140, + "height": 34, + "directory": "/tmp/opencode/packages/tui", + "config": { + "experimental": {"new-designs":true}, + "plugins": ["./out/npm/node_modules/opencode-file-browser"], + "animations": false, + "theme": {"name":"opencode"} + }, + "args": {}, + "env": { + "OPENCODE_PARITY_PLUGIN": "npm" + }, + "routes": [ + {"path":"/api/fs/list","json":{"location":{"directory":"/tmp/opencode/packages/tui"},"data":[{"path":"src","type":"directory"},{"path":"test","type":"directory"},{"path":"README.md","type":"file"},{"path":"package.json","type":"file"},{"path":"tsconfig.json","type":"file"}]}}, + {"path":"/api/fs/find","json":{"location":{"directory":"/tmp/opencode/packages/tui"},"data":[{"path":"src/package.ts","type":"file"},{"path":"package.json","type":"file"}]}} + ], + "steps": [ + {"checkpoint":"home","until":"ctrl+p commands","masks":[{"x":36,"y":18,"width":70,"height":1,"reason":"the placeholder example: random in TS and Rust"}],"fixture":"P.8/file-browser/home"}, + {"type":"/files"}, + {"checkpoint":"slash","until":"Browse, preview, edit","fixture":"P.8/file-browser/slash"}, + {"keys":["enter"]}, + {"checkpoint":"browser","until":"tsconfig.json","deviation":[{"file":"F16-v2-compat-layer","cells":40}],"fixture":"P.8/file-browser/browser"}, + {"keys":["down"]}, + {"keys":["j"]}, + {"checkpoint":"moved","deviation":[{"file":"F16-v2-compat-layer","cells":40}],"fixture":"P.8/file-browser/moved"}, + {"keys":["ctrl+f"]}, + {"keys":["down"]}, + {"checkpoint":"searching","deviation":[{"file":"F16-v2-compat-layer","cells":40}],"fixture":"P.8/file-browser/searching"}, + {"type":"src"}, + {"checkpoint":"typed","until":"2 matches","deviation":[{"file":"F16-v2-compat-layer","cells":40}],"fixture":"P.8/file-browser/typed"}, + {"keys":["escape"]}, + {"checkpoint":"left","until":"tsconfig.json","deviation":[{"file":"F16-v2-compat-layer","cells":40}],"fixture":"P.8/file-browser/left"}, + {"keys":["q"]}, + {"checkpoint":"closed","until":"ctrl+p commands","masks":[{"x":36,"y":18,"width":70,"height":1,"reason":"the placeholder example: random in TS and Rust"}],"fixture":"P.8/file-browser/closed"} + ], + "requests": { + "writes": [], + "reads": [ + {"method":"GET","path":"/api/agent","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":[]}}, + {"method":"GET","path":"/api/command","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":[]}}, + {"method":"GET","path":"/api/config","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":[]}, + {"method":"GET","path":"/api/experimental/migration/v1","query":{},"status":200,"json":{"status":"completed"}}, + {"method":"GET","path":"/api/form","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode"}},"data":[]}}, + {"method":"GET","path":"/api/fs/find","query":{"limit":["200"],"location[directory]":["/tmp/opencode/packages/tui"],"query":["src"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui"},"data":[{"path":"src/package.ts","type":"file"},{"path":"package.json","type":"file"}]}}, + {"method":"GET","path":"/api/fs/list","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui"},"data":[{"path":"src","type":"directory"},{"path":"test","type":"directory"},{"path":"README.md","type":"file"},{"path":"package.json","type":"file"},{"path":"tsconfig.json","type":"file"}]}}, + {"method":"GET","path":"/api/fs/list","query":{"location[directory]":["<cwd>"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui"},"data":[{"path":"src","type":"directory"},{"path":"test","type":"directory"},{"path":"README.md","type":"file"},{"path":"package.json","type":"file"},{"path":"tsconfig.json","type":"file"}]}}, + {"method":"GET","path":"/api/info","query":{},"status":200,"json":{"version":"test","pid":0,"urls":[],"paths":{"tmp":"/tmp"},"capabilities":{"persistentPty":true}}}, + {"method":"GET","path":"/api/integration","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":[]}}, + {"method":"GET","path":"/api/location","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}}}, + {"method":"GET","path":"/api/mcp","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":[]}}, + {"method":"GET","path":"/api/mcp/resource","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":{"resources":[],"templates":[]}}}, + {"method":"GET","path":"/api/model","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":[]}}, + {"method":"GET","path":"/api/plugin","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":[]}}, + {"method":"GET","path":"/api/project","query":{},"status":200,"json":[]}, + {"method":"GET","path":"/api/provider","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":[]}}, + {"method":"GET","path":"/api/reference","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode/packages/tui","canonical":"/tmp/opencode/packages/tui"}},"data":[]}}, + {"method":"GET","path":"/api/session/active","query":{},"status":200,"json":{"data":{}}}, + {"method":"GET","path":"/api/shell","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":[]}}, + {"method":"GET","path":"/api/skill","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":[]}}, + {"method":"GET","path":"/api/vcs","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":{"branch":{"current":"main","default":"main"}}}} + ] + } +} diff --git a/packages/cli-rs/parity/fixtures/P.8/file-browser/browser.json b/packages/cli-rs/parity/fixtures/P.8/file-browser/browser.json new file mode 100644 index 000000000000..1f331023f180 --- /dev/null +++ b/packages/cli-rs/parity/fixtures/P.8/file-browser/browser.json @@ -0,0 +1,36 @@ +{"width":140,"height":34,"styles":["#ffffffff #080808ff 0","#ffffffff #080808ff 1","#808080ff #080808ff 0","#484848ff #080808ff 0","#666666ff #080808ff 0","#ffffffff #303030ff 0","#808080ff #303030ff 0","#7699feff #303030ff 0","#9a9ea3ff #252527ff 0","#f5a742ff #080808ff 0","#fab283ff #080808ff 0","#7699feff #080808ff 1"],"lines":[ +[" files /tmp/opencode/packages/tui 5 items ",[[0,1],[1,5],[0,1],[2,26],[0,98],[2,7],[0,2]]], +["┌─────────────────────────────────────┐ ",[[3,39],[0,101]]], +["│ Explorer [names] │ ",[[3,1],[0,1],[1,8],[0,1],[2,7],[0,20],[3,1],[0,101]]], +["│ Search files… │ ",[[3,1],[0,1],[4,13],[0,23],[3,1],[0,101]]], +["│ ▸ src/ █│ ",[[3,1],[5,1],[6,2],[7,4],[5,29],[8,1],[3,1],[0,101]]], +["│ ▸ test/ █│ ",[[3,1],[0,1],[2,7],[0,28],[8,1],[3,1],[0,101]]], +["│ ◆ package.json █│ ",[[3,1],[0,1],[9,2],[0,33],[8,1],[3,1],[0,101]]], +["│ ◆ README.md █│ OpenCode files ",[[3,1],[0,1],[10,2],[0,33],[8,1],[3,1],[0,43],[1,14],[0,44]]], +["│ ◆ tsconfig.json █│ ",[[3,1],[0,1],[9,2],[0,33],[8,1],[3,1],[0,101]]], +["│ █│ Browse, edit and review without leaving the TUI. ",[[3,1],[0,36],[8,1],[3,1],[0,26],[2,48],[0,27]]], +["│ █│ ",[[3,1],[0,36],[8,1],[3,1],[0,101]]], +["│ █│ ┌──────────────────────────────────────────────────────────┐ ",[[3,1],[0,36],[8,1],[3,1],[0,20],[3,60],[0,21]]], +["│ █│ │ │ ",[[3,1],[0,36],[8,1],[3,1],[0,20],[3,1],[0,58],[3,1],[0,21]]], +["│ █│ │ Quick start │ ",[[3,1],[0,36],[8,1],[3,1],[0,20],[3,1],[0,2],[11,11],[0,45],[3,1],[0,21]]], +["│ █│ │ │ ",[[3,1],[0,36],[8,1],[3,1],[0,20],[3,1],[0,58],[3,1],[0,21]]], +["│ █│ │ ↑ ↓ enter move and open │ ",[[3,1],[0,36],[8,1],[3,1],[0,20],[3,1],[0,2],[2,9],[0,47],[3,1],[0,21]]], +["│ █│ │ │ ",[[3,1],[0,36],[8,1],[3,1],[0,20],[3,1],[0,58],[3,1],[0,21]]], +["│ █│ │ ctrl+f / ctrl+e search names or content │ ",[[3,1],[0,36],[8,1],[3,1],[0,20],[3,1],[0,2],[2,15],[0,41],[3,1],[0,21]]], +["│ █│ │ │ ",[[3,1],[0,36],[8,1],[3,1],[0,20],[3,1],[0,58],[3,1],[0,21]]], +["│ █│ │ e / ctrl+s edit and save │ ",[[3,1],[0,36],[8,1],[3,1],[0,20],[3,1],[0,2],[2,10],[0,46],[3,1],[0,21]]], +["│ █│ │ │ ",[[3,1],[0,36],[8,1],[3,1],[0,20],[3,1],[0,58],[3,1],[0,21]]], +["│ █│ │ ctrl+g git changes, stage and commit │ ",[[3,1],[0,36],[8,1],[3,1],[0,20],[3,1],[0,2],[2,6],[0,50],[3,1],[0,21]]], +["│ █│ │ │ ",[[3,1],[0,36],[8,1],[3,1],[0,20],[3,1],[0,58],[3,1],[0,21]]], +["│ █│ │ F2 preferences, including simple mode │ ",[[3,1],[0,36],[8,1],[3,1],[0,20],[3,1],[0,2],[2,2],[0,54],[3,1],[0,21]]], +["│ █│ │ │ ",[[3,1],[0,36],[8,1],[3,1],[0,20],[3,1],[0,58],[3,1],[0,21]]], +["│ █│ │ F1 every shortcut │ ",[[3,1],[0,36],[8,1],[3,1],[0,20],[3,1],[0,2],[2,2],[0,54],[3,1],[0,21]]], +["│ █│ └──────────────────────────────────────────────────────────┘ ",[[3,1],[0,36],[8,1],[3,1],[0,20],[3,60],[0,21]]], +["│ █│ ",[[3,1],[0,36],[8,1],[3,1],[0,101]]], +["│ █│ ",[[3,1],[0,36],[8,1],[3,1],[0,101]]], +["│ █│ ",[[3,1],[0,36],[8,1],[3,1],[0,101]]], +["│ █│ ",[[3,1],[0,36],[8,1],[3,1],[0,101]]], +["│ no repository ctrl+e │ ",[[3,1],[0,1],[2,13],[0,16],[2,6],[0,1],[3,1],[0,101]]], +["└─────────────────────────────────────┘ ",[[3,39],[0,101]]], +[" ↑↓ move · enter open · → expand · ← collapse · tab pane · ctrl+f search · ctrl+e mode · F2 prefs · F1 help 0 tabs ",[[0,1],[2,106],[0,25],[2,6],[0,2]]] +]} diff --git a/packages/cli-rs/parity/fixtures/P.8/file-browser/closed.json b/packages/cli-rs/parity/fixtures/P.8/file-browser/closed.json new file mode 100644 index 000000000000..d5522550d513 --- /dev/null +++ b/packages/cli-rs/parity/fixtures/P.8/file-browser/closed.json @@ -0,0 +1,36 @@ +{"width":140,"height":34,"styles":["#ffffffff #080808ff 0","#808080ff #080808ff 0","#ffffffff #080808ff 1","#808080ff #262626ff 0","#ffffffff #464646ff 1","#262626ff #080808ff 0","#484848ff #080808ff 0","#ffffffff #202020ff 0","#00000000 #00000000 0","#202020ff #080808ff 0"],"lines":[ +[" ",[[0,140]]], +[" ",[[0,140]]], +[" ",[[0,140]]], +[" ",[[0,140]]], +[" ",[[0,140]]], +[" ",[[0,140]]], +[" ",[[0,140]]], +[" ",[[0,140]]], +[" ",[[0,140]]], +[" ",[[0,140]]], +[" ",[[0,140]]], +[" ▄ ",[[0,51],[1,19],[0,1],[2,19],[0,50]]], +[" █▀▀█ █▀▀█ █▀▀█ █▀▀▄ █▀▀▀ █▀▀█ █▀▀█ █▀▀█ ",[[0,51],[1,19],[0,1],[2,19],[0,50]]], +[" █ █ █ █ █▀▀▀ █ █ █ █ █ █ █ █▀▀▀ ",[[0,51],[1,1],[3,2],[1,3],[3,2],[1,3],[3,3],[1,2],[3,2],[1,1],[0,1],[2,1],[4,3],[2,2],[4,2],[2,3],[4,2],[2,3],[4,3],[0,50]]], +[" ▀▀▀▀ █▀▀▀ ▀▀▀▀ ▀▀▀▀ ▀▀▀▀ ▀▀▀▀ ▀▀▀▀ ▀▀▀▀ ",[[0,51],[1,16],[5,2],[1,1],[0,1],[2,19],[0,50]]], +[" ",[[0,140]]], +[" ",[[0,140]]], +[" ┃ ",[[0,33],[6,1],[7,74],[0,32]]], +[" ┃ ",[[0,33],[6,1],[7,2],[8,70],[7,2],[0,32]]], +[" ┃ ",[[0,33],[6,1],[7,74],[0,32]]], +[" ┃ ",[[0,33],[6,1],[7,74],[0,32]]], +[" ╹▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀ ",[[0,33],[6,1],[9,74],[0,32]]], +[" /tmp/opencode/packages/tui:main shift+tab agents ctrl+p commands ",[[0,33],[1,31],[0,21],[1,6],[0,9],[1,8],[0,32]]], +[" ",[[0,140]]], +[" ",[[0,140]]], +[" ",[[0,140]]], +[" ",[[0,140]]], +[" ",[[0,140]]], +[" ",[[0,140]]], +[" ",[[0,140]]], +[" ",[[0,140]]], +[" ",[[0,140]]], +[" test ",[[0,134],[1,4],[0,2]]], +[" ",[[0,140]]] +]} diff --git a/packages/cli-rs/parity/fixtures/P.8/file-browser/home.json b/packages/cli-rs/parity/fixtures/P.8/file-browser/home.json new file mode 100644 index 000000000000..d5522550d513 --- /dev/null +++ b/packages/cli-rs/parity/fixtures/P.8/file-browser/home.json @@ -0,0 +1,36 @@ +{"width":140,"height":34,"styles":["#ffffffff #080808ff 0","#808080ff #080808ff 0","#ffffffff #080808ff 1","#808080ff #262626ff 0","#ffffffff #464646ff 1","#262626ff #080808ff 0","#484848ff #080808ff 0","#ffffffff #202020ff 0","#00000000 #00000000 0","#202020ff #080808ff 0"],"lines":[ +[" ",[[0,140]]], +[" ",[[0,140]]], +[" ",[[0,140]]], +[" ",[[0,140]]], +[" ",[[0,140]]], +[" ",[[0,140]]], +[" ",[[0,140]]], +[" ",[[0,140]]], +[" ",[[0,140]]], +[" ",[[0,140]]], +[" ",[[0,140]]], +[" ▄ ",[[0,51],[1,19],[0,1],[2,19],[0,50]]], +[" █▀▀█ █▀▀█ █▀▀█ █▀▀▄ █▀▀▀ █▀▀█ █▀▀█ █▀▀█ ",[[0,51],[1,19],[0,1],[2,19],[0,50]]], +[" █ █ █ █ █▀▀▀ █ █ █ █ █ █ █ █▀▀▀ ",[[0,51],[1,1],[3,2],[1,3],[3,2],[1,3],[3,3],[1,2],[3,2],[1,1],[0,1],[2,1],[4,3],[2,2],[4,2],[2,3],[4,2],[2,3],[4,3],[0,50]]], +[" ▀▀▀▀ █▀▀▀ ▀▀▀▀ ▀▀▀▀ ▀▀▀▀ ▀▀▀▀ ▀▀▀▀ ▀▀▀▀ ",[[0,51],[1,16],[5,2],[1,1],[0,1],[2,19],[0,50]]], +[" ",[[0,140]]], +[" ",[[0,140]]], +[" ┃ ",[[0,33],[6,1],[7,74],[0,32]]], +[" ┃ ",[[0,33],[6,1],[7,2],[8,70],[7,2],[0,32]]], +[" ┃ ",[[0,33],[6,1],[7,74],[0,32]]], +[" ┃ ",[[0,33],[6,1],[7,74],[0,32]]], +[" ╹▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀ ",[[0,33],[6,1],[9,74],[0,32]]], +[" /tmp/opencode/packages/tui:main shift+tab agents ctrl+p commands ",[[0,33],[1,31],[0,21],[1,6],[0,9],[1,8],[0,32]]], +[" ",[[0,140]]], +[" ",[[0,140]]], +[" ",[[0,140]]], +[" ",[[0,140]]], +[" ",[[0,140]]], +[" ",[[0,140]]], +[" ",[[0,140]]], +[" ",[[0,140]]], +[" ",[[0,140]]], +[" test ",[[0,134],[1,4],[0,2]]], +[" ",[[0,140]]] +]} diff --git a/packages/cli-rs/parity/fixtures/P.8/file-browser/left.json b/packages/cli-rs/parity/fixtures/P.8/file-browser/left.json new file mode 100644 index 000000000000..1f331023f180 --- /dev/null +++ b/packages/cli-rs/parity/fixtures/P.8/file-browser/left.json @@ -0,0 +1,36 @@ +{"width":140,"height":34,"styles":["#ffffffff #080808ff 0","#ffffffff #080808ff 1","#808080ff #080808ff 0","#484848ff #080808ff 0","#666666ff #080808ff 0","#ffffffff #303030ff 0","#808080ff #303030ff 0","#7699feff #303030ff 0","#9a9ea3ff #252527ff 0","#f5a742ff #080808ff 0","#fab283ff #080808ff 0","#7699feff #080808ff 1"],"lines":[ +[" files /tmp/opencode/packages/tui 5 items ",[[0,1],[1,5],[0,1],[2,26],[0,98],[2,7],[0,2]]], +["┌─────────────────────────────────────┐ ",[[3,39],[0,101]]], +["│ Explorer [names] │ ",[[3,1],[0,1],[1,8],[0,1],[2,7],[0,20],[3,1],[0,101]]], +["│ Search files… │ ",[[3,1],[0,1],[4,13],[0,23],[3,1],[0,101]]], +["│ ▸ src/ █│ ",[[3,1],[5,1],[6,2],[7,4],[5,29],[8,1],[3,1],[0,101]]], +["│ ▸ test/ █│ ",[[3,1],[0,1],[2,7],[0,28],[8,1],[3,1],[0,101]]], +["│ ◆ package.json █│ ",[[3,1],[0,1],[9,2],[0,33],[8,1],[3,1],[0,101]]], +["│ ◆ README.md █│ OpenCode files ",[[3,1],[0,1],[10,2],[0,33],[8,1],[3,1],[0,43],[1,14],[0,44]]], +["│ ◆ tsconfig.json █│ ",[[3,1],[0,1],[9,2],[0,33],[8,1],[3,1],[0,101]]], +["│ █│ Browse, edit and review without leaving the TUI. ",[[3,1],[0,36],[8,1],[3,1],[0,26],[2,48],[0,27]]], +["│ █│ ",[[3,1],[0,36],[8,1],[3,1],[0,101]]], +["│ █│ ┌──────────────────────────────────────────────────────────┐ ",[[3,1],[0,36],[8,1],[3,1],[0,20],[3,60],[0,21]]], +["│ █│ │ │ ",[[3,1],[0,36],[8,1],[3,1],[0,20],[3,1],[0,58],[3,1],[0,21]]], +["│ █│ │ Quick start │ ",[[3,1],[0,36],[8,1],[3,1],[0,20],[3,1],[0,2],[11,11],[0,45],[3,1],[0,21]]], +["│ █│ │ │ ",[[3,1],[0,36],[8,1],[3,1],[0,20],[3,1],[0,58],[3,1],[0,21]]], +["│ █│ │ ↑ ↓ enter move and open │ ",[[3,1],[0,36],[8,1],[3,1],[0,20],[3,1],[0,2],[2,9],[0,47],[3,1],[0,21]]], +["│ █│ │ │ ",[[3,1],[0,36],[8,1],[3,1],[0,20],[3,1],[0,58],[3,1],[0,21]]], +["│ █│ │ ctrl+f / ctrl+e search names or content │ ",[[3,1],[0,36],[8,1],[3,1],[0,20],[3,1],[0,2],[2,15],[0,41],[3,1],[0,21]]], +["│ █│ │ │ ",[[3,1],[0,36],[8,1],[3,1],[0,20],[3,1],[0,58],[3,1],[0,21]]], +["│ █│ │ e / ctrl+s edit and save │ ",[[3,1],[0,36],[8,1],[3,1],[0,20],[3,1],[0,2],[2,10],[0,46],[3,1],[0,21]]], +["│ █│ │ │ ",[[3,1],[0,36],[8,1],[3,1],[0,20],[3,1],[0,58],[3,1],[0,21]]], +["│ █│ │ ctrl+g git changes, stage and commit │ ",[[3,1],[0,36],[8,1],[3,1],[0,20],[3,1],[0,2],[2,6],[0,50],[3,1],[0,21]]], +["│ █│ │ │ ",[[3,1],[0,36],[8,1],[3,1],[0,20],[3,1],[0,58],[3,1],[0,21]]], +["│ █│ │ F2 preferences, including simple mode │ ",[[3,1],[0,36],[8,1],[3,1],[0,20],[3,1],[0,2],[2,2],[0,54],[3,1],[0,21]]], +["│ █│ │ │ ",[[3,1],[0,36],[8,1],[3,1],[0,20],[3,1],[0,58],[3,1],[0,21]]], +["│ █│ │ F1 every shortcut │ ",[[3,1],[0,36],[8,1],[3,1],[0,20],[3,1],[0,2],[2,2],[0,54],[3,1],[0,21]]], +["│ █│ └──────────────────────────────────────────────────────────┘ ",[[3,1],[0,36],[8,1],[3,1],[0,20],[3,60],[0,21]]], +["│ █│ ",[[3,1],[0,36],[8,1],[3,1],[0,101]]], +["│ █│ ",[[3,1],[0,36],[8,1],[3,1],[0,101]]], +["│ █│ ",[[3,1],[0,36],[8,1],[3,1],[0,101]]], +["│ █│ ",[[3,1],[0,36],[8,1],[3,1],[0,101]]], +["│ no repository ctrl+e │ ",[[3,1],[0,1],[2,13],[0,16],[2,6],[0,1],[3,1],[0,101]]], +["└─────────────────────────────────────┘ ",[[3,39],[0,101]]], +[" ↑↓ move · enter open · → expand · ← collapse · tab pane · ctrl+f search · ctrl+e mode · F2 prefs · F1 help 0 tabs ",[[0,1],[2,106],[0,25],[2,6],[0,2]]] +]} diff --git a/packages/cli-rs/parity/fixtures/P.8/file-browser/moved.json b/packages/cli-rs/parity/fixtures/P.8/file-browser/moved.json new file mode 100644 index 000000000000..33fc5320e6b5 --- /dev/null +++ b/packages/cli-rs/parity/fixtures/P.8/file-browser/moved.json @@ -0,0 +1,36 @@ +{"width":140,"height":34,"styles":["#ffffffff #080808ff 0","#ffffffff #080808ff 1","#808080ff #080808ff 0","#484848ff #080808ff 0","#666666ff #080808ff 0","#9a9ea3ff #252527ff 0","#ffffffff #303030ff 0","#f5a742ff #303030ff 0","#7699feff #303030ff 0","#fab283ff #080808ff 0","#f5a742ff #080808ff 0","#7699feff #080808ff 1"],"lines":[ +[" files /tmp/opencode/packages/tui 5 items ",[[0,1],[1,5],[0,1],[2,26],[0,98],[2,7],[0,2]]], +["┌─────────────────────────────────────┐ ",[[3,39],[0,101]]], +["│ Explorer [names] │ ",[[3,1],[0,1],[1,8],[0,1],[2,7],[0,20],[3,1],[0,101]]], +["│ Search files… │ ",[[3,1],[0,1],[4,13],[0,23],[3,1],[0,101]]], +["│ ▸ src/ █│ ",[[3,1],[0,1],[2,6],[0,29],[5,1],[3,1],[0,101]]], +["│ ▸ test/ █│ ",[[3,1],[0,1],[2,7],[0,28],[5,1],[3,1],[0,101]]], +["│ ◆ package.json █│ ",[[3,1],[6,1],[7,2],[8,12],[6,21],[5,1],[3,1],[0,101]]], +["│ ◆ README.md █│ OpenCode files ",[[3,1],[0,1],[9,2],[0,33],[5,1],[3,1],[0,43],[1,14],[0,44]]], +["│ ◆ tsconfig.json █│ ",[[3,1],[0,1],[10,2],[0,33],[5,1],[3,1],[0,101]]], +["│ █│ Browse, edit and review without leaving the TUI. ",[[3,1],[0,36],[5,1],[3,1],[0,26],[2,48],[0,27]]], +["│ █│ ",[[3,1],[0,36],[5,1],[3,1],[0,101]]], +["│ █│ ┌──────────────────────────────────────────────────────────┐ ",[[3,1],[0,36],[5,1],[3,1],[0,20],[3,60],[0,21]]], +["│ █│ │ │ ",[[3,1],[0,36],[5,1],[3,1],[0,20],[3,1],[0,58],[3,1],[0,21]]], +["│ █│ │ Quick start │ ",[[3,1],[0,36],[5,1],[3,1],[0,20],[3,1],[0,2],[11,11],[0,45],[3,1],[0,21]]], +["│ █│ │ │ ",[[3,1],[0,36],[5,1],[3,1],[0,20],[3,1],[0,58],[3,1],[0,21]]], +["│ █│ │ ↑ ↓ enter move and open │ ",[[3,1],[0,36],[5,1],[3,1],[0,20],[3,1],[0,2],[2,9],[0,47],[3,1],[0,21]]], +["│ █│ │ │ ",[[3,1],[0,36],[5,1],[3,1],[0,20],[3,1],[0,58],[3,1],[0,21]]], +["│ █│ │ ctrl+f / ctrl+e search names or content │ ",[[3,1],[0,36],[5,1],[3,1],[0,20],[3,1],[0,2],[2,15],[0,41],[3,1],[0,21]]], +["│ █│ │ │ ",[[3,1],[0,36],[5,1],[3,1],[0,20],[3,1],[0,58],[3,1],[0,21]]], +["│ █│ │ e / ctrl+s edit and save │ ",[[3,1],[0,36],[5,1],[3,1],[0,20],[3,1],[0,2],[2,10],[0,46],[3,1],[0,21]]], +["│ █│ │ │ ",[[3,1],[0,36],[5,1],[3,1],[0,20],[3,1],[0,58],[3,1],[0,21]]], +["│ █│ │ ctrl+g git changes, stage and commit │ ",[[3,1],[0,36],[5,1],[3,1],[0,20],[3,1],[0,2],[2,6],[0,50],[3,1],[0,21]]], +["│ █│ │ │ ",[[3,1],[0,36],[5,1],[3,1],[0,20],[3,1],[0,58],[3,1],[0,21]]], +["│ █│ │ F2 preferences, including simple mode │ ",[[3,1],[0,36],[5,1],[3,1],[0,20],[3,1],[0,2],[2,2],[0,54],[3,1],[0,21]]], +["│ █│ │ │ ",[[3,1],[0,36],[5,1],[3,1],[0,20],[3,1],[0,58],[3,1],[0,21]]], +["│ █│ │ F1 every shortcut │ ",[[3,1],[0,36],[5,1],[3,1],[0,20],[3,1],[0,2],[2,2],[0,54],[3,1],[0,21]]], +["│ █│ └──────────────────────────────────────────────────────────┘ ",[[3,1],[0,36],[5,1],[3,1],[0,20],[3,60],[0,21]]], +["│ █│ ",[[3,1],[0,36],[5,1],[3,1],[0,101]]], +["│ █│ ",[[3,1],[0,36],[5,1],[3,1],[0,101]]], +["│ █│ ",[[3,1],[0,36],[5,1],[3,1],[0,101]]], +["│ █│ ",[[3,1],[0,36],[5,1],[3,1],[0,101]]], +["│ no repository ctrl+e │ ",[[3,1],[0,1],[2,13],[0,16],[2,6],[0,1],[3,1],[0,101]]], +["└─────────────────────────────────────┘ ",[[3,39],[0,101]]], +[" ↑↓ move · enter open · → expand · ← collapse · tab pane · ctrl+f search · ctrl+e mode · F2 prefs · F1 help 0 tabs ",[[0,1],[2,106],[0,25],[2,6],[0,2]]] +]} diff --git a/packages/cli-rs/parity/fixtures/P.8/file-browser/searching.json b/packages/cli-rs/parity/fixtures/P.8/file-browser/searching.json new file mode 100644 index 000000000000..005be4fae2a9 --- /dev/null +++ b/packages/cli-rs/parity/fixtures/P.8/file-browser/searching.json @@ -0,0 +1,36 @@ +{"width":140,"height":34,"styles":["#ffffffff #080808ff 0","#ffffffff #080808ff 1","#808080ff #080808ff 0","#484848ff #080808ff 0","#666666ff #080808ff 0","#9a9ea3ff #252527ff 0","#f5a742ff #080808ff 0","#ffffffff #303030ff 0","#fab283ff #303030ff 0","#7699feff #303030ff 0","#7699feff #080808ff 1"],"lines":[ +[" files /tmp/opencode/packages/tui 5 items ",[[0,1],[1,5],[0,1],[2,26],[0,98],[2,7],[0,2]]], +["┌─────────────────────────────────────┐ ",[[3,39],[0,101]]], +["│ Explorer [names] │ ",[[3,1],[0,1],[1,8],[0,1],[2,7],[0,20],[3,1],[0,101]]], +["│ Search files… │ ",[[3,1],[0,1],[4,13],[0,23],[3,1],[0,101]]], +["│ ▸ src/ █│ ",[[3,1],[0,1],[2,6],[0,29],[5,1],[3,1],[0,101]]], +["│ ▸ test/ █│ ",[[3,1],[0,1],[2,7],[0,28],[5,1],[3,1],[0,101]]], +["│ ◆ package.json █│ ",[[3,1],[0,1],[6,2],[0,33],[5,1],[3,1],[0,101]]], +["│ ◆ README.md █│ OpenCode files ",[[3,1],[7,1],[8,2],[9,9],[7,24],[5,1],[3,1],[0,43],[1,14],[0,44]]], +["│ ◆ tsconfig.json █│ ",[[3,1],[0,1],[6,2],[0,33],[5,1],[3,1],[0,101]]], +["│ █│ Browse, edit and review without leaving the TUI. ",[[3,1],[0,36],[5,1],[3,1],[0,26],[2,48],[0,27]]], +["│ █│ ",[[3,1],[0,36],[5,1],[3,1],[0,101]]], +["│ █│ ┌──────────────────────────────────────────────────────────┐ ",[[3,1],[0,36],[5,1],[3,1],[0,20],[3,60],[0,21]]], +["│ █│ │ │ ",[[3,1],[0,36],[5,1],[3,1],[0,20],[3,1],[0,58],[3,1],[0,21]]], +["│ █│ │ Quick start │ ",[[3,1],[0,36],[5,1],[3,1],[0,20],[3,1],[0,2],[10,11],[0,45],[3,1],[0,21]]], +["│ █│ │ │ ",[[3,1],[0,36],[5,1],[3,1],[0,20],[3,1],[0,58],[3,1],[0,21]]], +["│ █│ │ ↑ ↓ enter move and open │ ",[[3,1],[0,36],[5,1],[3,1],[0,20],[3,1],[0,2],[2,9],[0,47],[3,1],[0,21]]], +["│ █│ │ │ ",[[3,1],[0,36],[5,1],[3,1],[0,20],[3,1],[0,58],[3,1],[0,21]]], +["│ █│ │ ctrl+f / ctrl+e search names or content │ ",[[3,1],[0,36],[5,1],[3,1],[0,20],[3,1],[0,2],[2,15],[0,41],[3,1],[0,21]]], +["│ █│ │ │ ",[[3,1],[0,36],[5,1],[3,1],[0,20],[3,1],[0,58],[3,1],[0,21]]], +["│ █│ │ e / ctrl+s edit and save │ ",[[3,1],[0,36],[5,1],[3,1],[0,20],[3,1],[0,2],[2,10],[0,46],[3,1],[0,21]]], +["│ █│ │ │ ",[[3,1],[0,36],[5,1],[3,1],[0,20],[3,1],[0,58],[3,1],[0,21]]], +["│ █│ │ ctrl+g git changes, stage and commit │ ",[[3,1],[0,36],[5,1],[3,1],[0,20],[3,1],[0,2],[2,6],[0,50],[3,1],[0,21]]], +["│ █│ │ │ ",[[3,1],[0,36],[5,1],[3,1],[0,20],[3,1],[0,58],[3,1],[0,21]]], +["│ █│ │ F2 preferences, including simple mode │ ",[[3,1],[0,36],[5,1],[3,1],[0,20],[3,1],[0,2],[2,2],[0,54],[3,1],[0,21]]], +["│ █│ │ │ ",[[3,1],[0,36],[5,1],[3,1],[0,20],[3,1],[0,58],[3,1],[0,21]]], +["│ █│ │ F1 every shortcut │ ",[[3,1],[0,36],[5,1],[3,1],[0,20],[3,1],[0,2],[2,2],[0,54],[3,1],[0,21]]], +["│ █│ └──────────────────────────────────────────────────────────┘ ",[[3,1],[0,36],[5,1],[3,1],[0,20],[3,60],[0,21]]], +["│ █│ ",[[3,1],[0,36],[5,1],[3,1],[0,101]]], +["│ █│ ",[[3,1],[0,36],[5,1],[3,1],[0,101]]], +["│ █│ ",[[3,1],[0,36],[5,1],[3,1],[0,101]]], +["│ █│ ",[[3,1],[0,36],[5,1],[3,1],[0,101]]], +["│ no repository ctrl+e │ ",[[3,1],[0,1],[2,13],[0,16],[2,6],[0,1],[3,1],[0,101]]], +["└─────────────────────────────────────┘ ",[[3,39],[0,101]]], +[" ↑↓ move · enter open · → expand · ← collapse · tab pane · ctrl+f search · ctrl+e mode · F2 prefs · F1 help 0 tabs ",[[0,1],[2,106],[0,25],[2,6],[0,2]]] +]} diff --git a/packages/cli-rs/parity/fixtures/P.8/file-browser/slash.json b/packages/cli-rs/parity/fixtures/P.8/file-browser/slash.json new file mode 100644 index 000000000000..e8e905f5f849 --- /dev/null +++ b/packages/cli-rs/parity/fixtures/P.8/file-browser/slash.json @@ -0,0 +1,36 @@ +{"width":140,"height":34,"styles":["#ffffffff #080808ff 0","#808080ff #080808ff 0","#ffffffff #080808ff 1","#7699feff #080808ff 0","#ffffffff #23344bff 0","#484848ff #080808ff 0","#ffffffff #202020ff 0","#808080ff #202020ff 0","#202020ff #080808ff 0"],"lines":[ +[" ",[[0,140]]], +[" ",[[0,140]]], +[" ",[[0,140]]], +[" ",[[0,140]]], +[" ",[[0,140]]], +[" ",[[0,140]]], +[" ",[[0,140]]], +[" ",[[0,140]]], +[" ",[[0,140]]], +[" ",[[0,140]]], +[" ",[[0,140]]], +[" ▄ ",[[0,51],[1,19],[0,1],[2,19],[0,50]]], +[" █▀▀█ █▀▀█ █▀▀█ █▀▀▄ █▀▀▀ █▀▀█ █▀▀█ █▀▀█ ",[[0,51],[1,19],[0,1],[2,19],[0,50]]], +[" ┃ /files Browse, preview, edit and review changes ┃ ",[[0,33],[3,1],[4,73],[5,1],[0,32]]], +[" ┃ /files-update Pull the latest version from GitHub ┃ ",[[0,33],[5,1],[6,25],[7,36],[6,12],[5,1],[0,32]]], +[" ┃ /files-settings Open the preferences modal ┃ ",[[0,33],[5,1],[6,25],[7,27],[6,21],[5,1],[0,32]]], +[" ┃ /update-files Pull the latest version from GitHub ┃ ",[[0,33],[5,1],[6,25],[7,36],[6,12],[5,1],[0,32]]], +[" ┃ ",[[0,33],[5,1],[6,74],[0,32]]], +[" ┃ /files ",[[0,33],[5,1],[6,74],[0,32]]], +[" ┃ ",[[0,33],[5,1],[6,74],[0,32]]], +[" ┃ ",[[0,33],[5,1],[6,74],[0,32]]], +[" ╹▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀ ",[[0,33],[5,1],[8,74],[0,32]]], +[" /tmp/opencode/packages/tui:main shift+tab agents ctrl+p commands ",[[0,33],[1,31],[0,21],[1,6],[0,9],[1,8],[0,32]]], +[" ",[[0,140]]], +[" ",[[0,140]]], +[" ",[[0,140]]], +[" ",[[0,140]]], +[" ",[[0,140]]], +[" ",[[0,140]]], +[" ",[[0,140]]], +[" ",[[0,140]]], +[" ",[[0,140]]], +[" test ",[[0,134],[1,4],[0,2]]], +[" ",[[0,140]]] +]} diff --git a/packages/cli-rs/parity/fixtures/P.8/file-browser/typed.json b/packages/cli-rs/parity/fixtures/P.8/file-browser/typed.json new file mode 100644 index 000000000000..150dcfb1c253 --- /dev/null +++ b/packages/cli-rs/parity/fixtures/P.8/file-browser/typed.json @@ -0,0 +1,36 @@ +{"width":140,"height":34,"styles":["#ffffffff #080808ff 0","#ffffffff #080808ff 1","#808080ff #080808ff 0","#484848ff #080808ff 0","#ffffffff #303030ff 0","#fab283ff #303030ff 0","#7699feff #303030ff 0","#9a9ea3ff #252527ff 0","#f5a742ff #080808ff 0","#7699feff #080808ff 1"],"lines":[ +[" files /tmp/opencode/packages/tui 2 matches ",[[0,1],[1,5],[0,1],[2,26],[0,96],[2,9],[0,2]]], +["┌─────────────────────────────────────┐ ",[[3,39],[0,101]]], +["│ Explorer [names] │ ",[[3,1],[0,1],[1,8],[0,1],[2,7],[0,20],[3,1],[0,101]]], +["│ src │ ",[[3,1],[0,37],[3,1],[0,101]]], +["│ ◆ package.ts █│ ",[[3,1],[4,1],[5,2],[6,10],[4,23],[7,1],[3,1],[0,101]]], +["│ ◆ package.json █│ ",[[3,1],[0,1],[8,2],[0,33],[7,1],[3,1],[0,101]]], +["│ █│ ",[[3,1],[0,36],[7,1],[3,1],[0,101]]], +["│ █│ OpenCode files ",[[3,1],[0,36],[7,1],[3,1],[0,43],[1,14],[0,44]]], +["│ █│ ",[[3,1],[0,36],[7,1],[3,1],[0,101]]], +["│ █│ Browse, edit and review without leaving the TUI. ",[[3,1],[0,36],[7,1],[3,1],[0,26],[2,48],[0,27]]], +["│ █│ ",[[3,1],[0,36],[7,1],[3,1],[0,101]]], +["│ █│ ┌──────────────────────────────────────────────────────────┐ ",[[3,1],[0,36],[7,1],[3,1],[0,20],[3,60],[0,21]]], +["│ █│ │ │ ",[[3,1],[0,36],[7,1],[3,1],[0,20],[3,1],[0,58],[3,1],[0,21]]], +["│ █│ │ Quick start │ ",[[3,1],[0,36],[7,1],[3,1],[0,20],[3,1],[0,2],[9,11],[0,45],[3,1],[0,21]]], +["│ █│ │ │ ",[[3,1],[0,36],[7,1],[3,1],[0,20],[3,1],[0,58],[3,1],[0,21]]], +["│ █│ │ ↑ ↓ enter move and open │ ",[[3,1],[0,36],[7,1],[3,1],[0,20],[3,1],[0,2],[2,9],[0,47],[3,1],[0,21]]], +["│ █│ │ │ ",[[3,1],[0,36],[7,1],[3,1],[0,20],[3,1],[0,58],[3,1],[0,21]]], +["│ █│ │ ctrl+f / ctrl+e search names or content │ ",[[3,1],[0,36],[7,1],[3,1],[0,20],[3,1],[0,2],[2,15],[0,41],[3,1],[0,21]]], +["│ █│ │ │ ",[[3,1],[0,36],[7,1],[3,1],[0,20],[3,1],[0,58],[3,1],[0,21]]], +["│ █│ │ e / ctrl+s edit and save │ ",[[3,1],[0,36],[7,1],[3,1],[0,20],[3,1],[0,2],[2,10],[0,46],[3,1],[0,21]]], +["│ █│ │ │ ",[[3,1],[0,36],[7,1],[3,1],[0,20],[3,1],[0,58],[3,1],[0,21]]], +["│ █│ │ ctrl+g git changes, stage and commit │ ",[[3,1],[0,36],[7,1],[3,1],[0,20],[3,1],[0,2],[2,6],[0,50],[3,1],[0,21]]], +["│ █│ │ │ ",[[3,1],[0,36],[7,1],[3,1],[0,20],[3,1],[0,58],[3,1],[0,21]]], +["│ █│ │ F2 preferences, including simple mode │ ",[[3,1],[0,36],[7,1],[3,1],[0,20],[3,1],[0,2],[2,2],[0,54],[3,1],[0,21]]], +["│ █│ │ │ ",[[3,1],[0,36],[7,1],[3,1],[0,20],[3,1],[0,58],[3,1],[0,21]]], +["│ █│ │ F1 every shortcut │ ",[[3,1],[0,36],[7,1],[3,1],[0,20],[3,1],[0,2],[2,2],[0,54],[3,1],[0,21]]], +["│ █│ └──────────────────────────────────────────────────────────┘ ",[[3,1],[0,36],[7,1],[3,1],[0,20],[3,60],[0,21]]], +["│ █│ ",[[3,1],[0,36],[7,1],[3,1],[0,101]]], +["│ █│ ",[[3,1],[0,36],[7,1],[3,1],[0,101]]], +["│ █│ ",[[3,1],[0,36],[7,1],[3,1],[0,101]]], +["│ █│ ",[[3,1],[0,36],[7,1],[3,1],[0,101]]], +["│ no repository ctrl+e │ ",[[3,1],[0,1],[2,13],[0,16],[2,6],[0,1],[3,1],[0,101]]], +["└─────────────────────────────────────┘ ",[[3,39],[0,101]]], +[" ↑↓ move · enter open · → expand · ← collapse · tab pane · ctrl+f search · ctrl+e mode · F2 prefs · F1 help 0 tabs ",[[0,1],[2,106],[0,25],[2,6],[0,2]]] +]} diff --git a/packages/cli-rs/parity/fixtures/P.8/force-input.app.json b/packages/cli-rs/parity/fixtures/P.8/force-input.app.json new file mode 100644 index 000000000000..2184f915f538 --- /dev/null +++ b/packages/cli-rs/parity/fixtures/P.8/force-input.app.json @@ -0,0 +1,65 @@ +{ + "scenario": "P.8/force-input", + "width": 100, + "height": 30, + "directory": "/tmp/opencode/packages/tui", + "config": { + "plugins": ["./out/npm/node_modules/@mynameistito/opencode-force-input"], + "animations": false, + "experimental": {"new-designs":true}, + "theme": {"name":"opencode"} + }, + "args": { + "sessionID": "ses_f" + }, + "env": { + "OPENCODE_PARITY_PLUGIN": "npm" + }, + "routes": [ + {"path":"/api/session/ses_f","json":{"data":{"id":"ses_f","title":"Ship it","projectID":"proj_test","cost":0,"tokens":{"input":0,"output":0,"reasoning":0,"cache":{"read":0,"write":0}},"time":{"created":2,"updated":2},"location":{"directory":"/tmp/opencode/packages/tui"}}}}, + {"path":"/api/session","json":{"data":[{"id":"ses_f","title":"Ship it","projectID":"proj_test","cost":0,"tokens":{"input":0,"output":0,"reasoning":0,"cache":{"read":0,"write":0}},"time":{"created":2,"updated":2},"location":{"directory":"/tmp/opencode/packages/tui"}}],"cursor":{}}}, + {"path":"/api/session/ses_f/message","json":{"data":[{"id":"msg_2","type":"assistant","agent":"build","model":{"providerID":"provider","id":"model"},"content":[{"type":"text","text":"Done."}],"finish":"stop","time":{"created":2000,"completed":2001}},{"id":"msg_1","type":"user","text":"Ship it","time":{"created":1000}}],"cursor":{}}}, + {"path":"/api/session/ses_f/inbox","json":{"data":[]}}, + {"method":"POST","path":"/api/session/ses_f/prompt","json":{"data":{"id":"inb_1"}}} + ], + "steps": [ + {"checkpoint":"hint","until":"send","fixture":"P.8/force-input/hint"}, + {"type":"now"}, + {"keys":["ctrl+enter"]}, + {"checkpoint":"forced","fixture":"P.8/force-input/forced"} + ], + "requests": { + "writes": [], + "reads": [ + {"method":"GET","path":"/api/agent","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":[]}}, + {"method":"GET","path":"/api/command","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":[]}}, + {"method":"GET","path":"/api/config","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":[]}, + {"method":"GET","path":"/api/experimental/job","query":{"descendants":["true"],"sessionID":["ses_f"],"status":["running"]},"status":200,"json":{"data":[]}}, + {"method":"GET","path":"/api/experimental/migration/v1","query":{},"status":200,"json":{"status":"completed"}}, + {"method":"GET","path":"/api/experimental/session/ses_f/terminal","query":{},"status":200,"json":{"data":[]}}, + {"method":"GET","path":"/api/form","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode"}},"data":[]}}, + {"method":"GET","path":"/api/fs/list","query":{"location[directory]":["<cwd>"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":[]}}, + {"method":"GET","path":"/api/info","query":{},"status":200,"json":{"version":"test","pid":0,"urls":[],"paths":{"tmp":"/tmp"},"capabilities":{"persistentPty":true}}}, + {"method":"GET","path":"/api/integration","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":[]}}, + {"method":"GET","path":"/api/location","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}}}, + {"method":"GET","path":"/api/mcp","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":[]}}, + {"method":"GET","path":"/api/mcp/resource","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":{"resources":[],"templates":[]}}}, + {"method":"GET","path":"/api/model","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":[]}}, + {"method":"GET","path":"/api/plugin","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":[]}}, + {"method":"GET","path":"/api/project","query":{},"status":200,"json":[]}, + {"method":"GET","path":"/api/provider","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":[]}}, + {"method":"GET","path":"/api/reference","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode/packages/tui","canonical":"/tmp/opencode/packages/tui"}},"data":[]}}, + {"method":"GET","path":"/api/session","query":{"limit":["200"],"order":["desc"],"parentID":["ses_f"]},"status":200,"json":{"data":[{"id":"ses_f","title":"Ship it","projectID":"proj_test","cost":0,"tokens":{"input":0,"output":0,"reasoning":0,"cache":{"read":0,"write":0}},"time":{"created":2,"updated":2},"location":{"directory":"/tmp/opencode/packages/tui"}}],"cursor":{}}}, + {"method":"GET","path":"/api/session/active","query":{},"status":200,"json":{"data":{}}}, + {"method":"GET","path":"/api/session/ses_f","query":{},"status":200,"json":{"data":{"id":"ses_f","title":"Ship it","projectID":"proj_test","cost":0,"tokens":{"input":0,"output":0,"reasoning":0,"cache":{"read":0,"write":0}},"time":{"created":2,"updated":2},"location":{"directory":"/tmp/opencode/packages/tui"}}}}, + {"method":"GET","path":"/api/session/ses_f/form","query":{},"status":200,"json":{"data":[]}}, + {"method":"GET","path":"/api/session/ses_f/inbox","query":{},"status":200,"json":{"data":[]}}, + {"method":"GET","path":"/api/session/ses_f/message","query":{"limit":["20"],"order":["desc"]},"status":200,"json":{"data":[{"id":"msg_2","type":"assistant","agent":"build","model":{"providerID":"provider","id":"model"},"content":[{"type":"text","text":"Done."}],"finish":"stop","time":{"created":2000,"completed":2001}},{"id":"msg_1","type":"user","text":"Ship it","time":{"created":1000}}],"cursor":{}}}, + {"method":"GET","path":"/api/session/ses_f/permission","query":{},"status":200,"json":{"data":[]}}, + {"method":"GET","path":"/api/shell","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":[]}}, + {"method":"GET","path":"/api/skill","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":[]}}, + {"method":"GET","path":"/api/vcs","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":{"branch":{"current":"main","default":"main"}}}}, + {"method":"POST","path":"/api/rpc/opencode.goal/get","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"body":{"input":{"sessionID":"ses_f"}},"status":200,"json":{"output":null}} + ] + } +} diff --git a/packages/cli-rs/parity/fixtures/P.8/force-input/forced.json b/packages/cli-rs/parity/fixtures/P.8/force-input/forced.json new file mode 100644 index 000000000000..5c4b053c6c9e --- /dev/null +++ b/packages/cli-rs/parity/fixtures/P.8/force-input/forced.json @@ -0,0 +1,32 @@ +{"width":100,"height":30,"styles":["#ffffffff #202020ff 0","#ffffffff #202020ff 1","#808080ff #080808ff 0","#ffffffff #080808ff 0","#7699feff #141414ff 0","#ffffffff #141414ff 0","#eeeeeeff #080808ff 0","#7699feff #080808ff 0","#484848ff #080808ff 0","#808080ff #202020ff 0","#202020ff #080808ff 0"],"lines":[ +[" Ship it + ",[[0,3],[1,7],[0,22],[2,3],[3,65]]], +[" ",[[3,100]]], +[" ┃ ",[[3,2],[4,1],[5,95],[3,2]]], +[" ┃ Ship it ",[[3,2],[4,1],[5,95],[3,2]]], +[" ┃ ",[[3,2],[4,1],[5,95],[3,2]]], +[" ",[[3,100]]], +[" Done. ",[[3,5],[6,5],[3,90]]], +[" ",[[3,100]]], +[" Build · provider/model · 1.0s ",[[3,5],[7,5],[2,24],[3,66]]], +[" ",[[3,100]]], +[" ",[[3,100]]], +[" ",[[3,100]]], +[" ",[[3,100]]], +[" ",[[3,100]]], +[" ",[[3,100]]], +[" ",[[3,100]]], +[" ",[[3,100]]], +[" ",[[3,100]]], +[" ",[[3,100]]], +[" ",[[3,100]]], +[" ",[[3,100]]], +[" ",[[3,100]]], +[" ",[[3,100]]], +[" ┃ ",[[3,2],[8,1],[0,95],[3,2]]], +[" ┃ now ",[[3,2],[8,1],[0,95],[3,2]]], +[" ┃ ",[[3,2],[8,1],[0,95],[3,2]]], +[" ┃ ⏎ send ",[[3,2],[8,1],[0,89],[9,4],[0,2],[3,2]]], +[" ╹▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀ ",[[3,2],[8,1],[10,95],[3,2]]], +[" /tmp/opencode/packages/tui:main shift+tab agents ctrl+p commands ",[[3,2],[2,31],[3,42],[2,6],[3,9],[2,8],[3,2]]], +[" ",[[3,100]]] +]} diff --git a/packages/cli-rs/parity/fixtures/P.8/force-input/hint.json b/packages/cli-rs/parity/fixtures/P.8/force-input/hint.json new file mode 100644 index 000000000000..eedc4740830d --- /dev/null +++ b/packages/cli-rs/parity/fixtures/P.8/force-input/hint.json @@ -0,0 +1,32 @@ +{"width":100,"height":30,"styles":["#ffffffff #202020ff 0","#ffffffff #202020ff 1","#808080ff #080808ff 0","#ffffffff #080808ff 0","#7699feff #141414ff 0","#ffffffff #141414ff 0","#eeeeeeff #080808ff 0","#7699feff #080808ff 0","#484848ff #080808ff 0","#808080ff #202020ff 0","#202020ff #080808ff 0"],"lines":[ +[" Ship it + ",[[0,3],[1,7],[0,22],[2,3],[3,65]]], +[" ",[[3,100]]], +[" ┃ ",[[3,2],[4,1],[5,95],[3,2]]], +[" ┃ Ship it ",[[3,2],[4,1],[5,95],[3,2]]], +[" ┃ ",[[3,2],[4,1],[5,95],[3,2]]], +[" ",[[3,100]]], +[" Done. ",[[3,5],[6,5],[3,90]]], +[" ",[[3,100]]], +[" Build · provider/model · 1.0s ",[[3,5],[7,5],[2,24],[3,66]]], +[" ",[[3,100]]], +[" ",[[3,100]]], +[" ",[[3,100]]], +[" ",[[3,100]]], +[" ",[[3,100]]], +[" ",[[3,100]]], +[" ",[[3,100]]], +[" ",[[3,100]]], +[" ",[[3,100]]], +[" ",[[3,100]]], +[" ",[[3,100]]], +[" ",[[3,100]]], +[" ",[[3,100]]], +[" ",[[3,100]]], +[" ┃ ",[[3,2],[8,1],[0,95],[3,2]]], +[" ┃ ",[[3,2],[8,1],[0,95],[3,2]]], +[" ┃ ",[[3,2],[8,1],[0,95],[3,2]]], +[" ┃ ⏎ send ",[[3,2],[8,1],[0,89],[9,4],[0,2],[3,2]]], +[" ╹▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀ ",[[3,2],[8,1],[10,95],[3,2]]], +[" /tmp/opencode/packages/tui:main shift+tab agents ctrl+p commands ",[[3,2],[2,31],[3,42],[2,6],[3,9],[2,8],[3,2]]], +[" ",[[3,100]]] +]} diff --git a/packages/cli-rs/parity/fixtures/P.8/goal-plugin.app.json b/packages/cli-rs/parity/fixtures/P.8/goal-plugin.app.json new file mode 100644 index 000000000000..54bd42e32ace --- /dev/null +++ b/packages/cli-rs/parity/fixtures/P.8/goal-plugin.app.json @@ -0,0 +1,73 @@ +{ + "scenario": "P.8/goal-plugin", + "width": 150, + "height": 40, + "directory": "/tmp/opencode/packages/tui", + "config": { + "plugins": ["./out/npm/node_modules/@prevalentware/opencode-goal-plugin"], + "animations": false, + "experimental": {"new-designs":true}, + "theme": {"name":"opencode"} + }, + "args": { + "sessionID": "ses_g" + }, + "env": { + "OPENCODE_PARITY_PLUGIN": "npm", + "OPENCODE_GOAL_STATE_PATH": "/nonexistent/opencode-goal-plugin/goals.json" + }, + "routes": [ + {"path":"/api/session/ses_g","json":{"data":{"id":"ses_g","title":"Rewrite the parser","projectID":"proj_test","cost":0,"tokens":{"input":0,"output":0,"reasoning":0,"cache":{"read":0,"write":0}},"time":{"created":2,"updated":2},"location":{"directory":"/tmp/opencode/packages/tui"}}}}, + {"path":"/api/session","json":{"data":[{"id":"ses_g","title":"Rewrite the parser","projectID":"proj_test","cost":0,"tokens":{"input":0,"output":0,"reasoning":0,"cache":{"read":0,"write":0}},"time":{"created":2,"updated":2},"location":{"directory":"/tmp/opencode/packages/tui"}}],"cursor":{}}}, + {"path":"/api/session/ses_g/message","json":{"data":[{"id":"msg_3","type":"assistant","agent":"build","model":{"providerID":"provider","id":"model"},"content":[{"type":"tool","id":"call_2","name":"get_goal","state":{"status":"completed","input":{},"content":[{"type":"text","text":"{\"goal\":{\"sessionID\":\"ses_g\",\"objective\":\"Ship the parser rewrite\",\"status\":\"paused\",\"tokenBudget\":50000,\"tokensUsed\":1200,\"timeUsedSeconds\":725,\"createdAt\":1700000000,\"updatedAt\":1700000600,\"completionEvidence\":null,\"blocker\":null,\"closedAt\":null,\"continuationFailures\":0,\"lastStatus\":\"Goal paused.\",\"maxAutoTurns\":10,\"maxDurationSeconds\":3600,\"noProgressTokenThreshold\":null,\"maxNoProgressTurns\":null,\"noProgressTurns\":1,\"budgetWrapupSent\":false,\"stopReason\":\"paused\",\"history\":[{\"type\":\"created\",\"detail\":\"Goal set.\",\"timestamp\":1700000000}],\"checkpoints\":[{\"summary\":\"Lexer done\",\"timestamp\":1700000300}],\"lastCheckpoint\":{\"summary\":\"Lexer done\",\"timestamp\":1700000300},\"lastAssistantText\":\"\",\"lastAssistantMessageID\":\"\",\"autoTurns\":3,\"lastContinuationAt\":null,\"remainingTokens\":48800}}"}]},"time":{"created":30,"ran":31,"completed":32}},{"type":"text","text":"Paused."}],"finish":"stop","time":{"created":30,"completed":31}},{"id":"msg_2","type":"assistant","agent":"build","model":{"providerID":"provider","id":"model"},"content":[{"type":"tool","id":"call_1","name":"create_goal","state":{"status":"completed","input":{},"content":[{"type":"text","text":"not json"}]},"time":{"created":20,"ran":21,"completed":22}}],"finish":"stop","time":{"created":20,"completed":21}},{"id":"msg_1","type":"user","text":"Rewrite the parser","time":{"created":10}}],"cursor":{}}}, + {"path":"/api/session/ses_g/inbox","json":{"data":[]}}, + {"method":"POST","path":"/api/session/ses_g/prompt","json":{"data":{"id":"inb_1"}}} + ], + "steps": [ + {"checkpoint":"sidebar","until":"Ship the parser rewrite","fixture":"P.8/goal-plugin/sidebar"}, + {"keys":["ctrl+p"]}, + {"checkpoint":"commands","until":"Search commands","masks":[{"x":41,"y":13,"width":62,"height":14,"reason":"the host's palette list, which the plugin does not draw"}],"fixture":"P.8/goal-plugin/commands"}, + {"type":"goal"}, + {"checkpoint":"palette","until":"View, pause, resume","fixture":"P.8/goal-plugin/palette"}, + {"keys":["enter"]}, + {"checkpoint":"summary","until":"Refresh","fixture":"P.8/goal-plugin/summary"}, + {"keys":["down","down","enter"]}, + {"checkpoint":"sent","until":"Paused.","fixture":"P.8/goal-plugin/sent"} + ], + "requests": { + "writes": [ + {"method":"POST","path":"/api/session/ses_g/prompt","query":{},"body":{"text":"Resume the current session goal by calling update_goal_status with status \"active\", then continue working toward it."},"status":200,"json":{"data":{"id":"inb_1"}}} + ], + "reads": [ + {"method":"GET","path":"/api/agent","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":[]}}, + {"method":"GET","path":"/api/command","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":[]}}, + {"method":"GET","path":"/api/config","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":[]}, + {"method":"GET","path":"/api/experimental/job","query":{"descendants":["true"],"sessionID":["ses_g"],"status":["running"]},"status":200,"json":{"data":[]}}, + {"method":"GET","path":"/api/experimental/migration/v1","query":{},"status":200,"json":{"status":"completed"}}, + {"method":"GET","path":"/api/experimental/session/ses_g/terminal","query":{},"status":200,"json":{"data":[]}}, + {"method":"GET","path":"/api/form","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode"}},"data":[]}}, + {"method":"GET","path":"/api/fs/list","query":{"location[directory]":["<cwd>"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":[]}}, + {"method":"GET","path":"/api/info","query":{},"status":200,"json":{"version":"test","pid":0,"urls":[],"paths":{"tmp":"/tmp"},"capabilities":{"persistentPty":true}}}, + {"method":"GET","path":"/api/integration","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":[]}}, + {"method":"GET","path":"/api/location","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}}}, + {"method":"GET","path":"/api/mcp","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":[]}}, + {"method":"GET","path":"/api/mcp/resource","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":{"resources":[],"templates":[]}}}, + {"method":"GET","path":"/api/model","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":[]}}, + {"method":"GET","path":"/api/plugin","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":[]}}, + {"method":"GET","path":"/api/project","query":{},"status":200,"json":[]}, + {"method":"GET","path":"/api/provider","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":[]}}, + {"method":"GET","path":"/api/reference","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode/packages/tui","canonical":"/tmp/opencode/packages/tui"}},"data":[]}}, + {"method":"GET","path":"/api/session","query":{"limit":["200"],"order":["desc"],"parentID":["ses_g"]},"status":200,"json":{"data":[{"id":"ses_g","title":"Rewrite the parser","projectID":"proj_test","cost":0,"tokens":{"input":0,"output":0,"reasoning":0,"cache":{"read":0,"write":0}},"time":{"created":2,"updated":2},"location":{"directory":"/tmp/opencode/packages/tui"}}],"cursor":{}}}, + {"method":"GET","path":"/api/session/active","query":{},"status":200,"json":{"data":{}}}, + {"method":"GET","path":"/api/session/ses_g","query":{},"status":200,"json":{"data":{"id":"ses_g","title":"Rewrite the parser","projectID":"proj_test","cost":0,"tokens":{"input":0,"output":0,"reasoning":0,"cache":{"read":0,"write":0}},"time":{"created":2,"updated":2},"location":{"directory":"/tmp/opencode/packages/tui"}}}}, + {"method":"GET","path":"/api/session/ses_g/form","query":{},"status":200,"json":{"data":[]}}, + {"method":"GET","path":"/api/session/ses_g/inbox","query":{},"status":200,"json":{"data":[]}}, + {"method":"GET","path":"/api/session/ses_g/message","query":{"limit":["20"],"order":["desc"]},"status":200,"json":{"data":[{"id":"msg_3","type":"assistant","agent":"build","model":{"providerID":"provider","id":"model"},"content":[{"type":"tool","id":"call_2","name":"get_goal","state":{"status":"completed","input":{},"content":[{"type":"text","text":"{\"goal\":{\"sessionID\":\"ses_g\",\"objective\":\"Ship the parser rewrite\",\"status\":\"paused\",\"tokenBudget\":50000,\"tokensUsed\":1200,\"timeUsedSeconds\":725,\"createdAt\":1700000000,\"updatedAt\":1700000600,\"completionEvidence\":null,\"blocker\":null,\"closedAt\":null,\"continuationFailures\":0,\"lastStatus\":\"Goal paused.\",\"maxAutoTurns\":10,\"maxDurationSeconds\":3600,\"noProgressTokenThreshold\":null,\"maxNoProgressTurns\":null,\"noProgressTurns\":1,\"budgetWrapupSent\":false,\"stopReason\":\"paused\",\"history\":[{\"type\":\"created\",\"detail\":\"Goal set.\",\"timestamp\":1700000000}],\"checkpoints\":[{\"summary\":\"Lexer done\",\"timestamp\":1700000300}],\"lastCheckpoint\":{\"summary\":\"Lexer done\",\"timestamp\":1700000300},\"lastAssistantText\":\"\",\"lastAssistantMessageID\":\"\",\"autoTurns\":3,\"lastContinuationAt\":null,\"remainingTokens\":48800}}"}]},"time":{"created":30,"ran":31,"completed":32}},{"type":"text","text":"Paused."}],"finish":"stop","time":{"created":30,"completed":31}},{"id":"msg_2","type":"assistant","agent":"build","model":{"providerID":"provider","id":"model"},"content":[{"type":"tool","id":"call_1","name":"create_goal","state":{"status":"completed","input":{},"content":[{"type":"text","text":"not json"}]},"time":{"created":20,"ran":21,"completed":22}}],"finish":"stop","time":{"created":20,"completed":21}},{"id":"msg_1","type":"user","text":"Rewrite the parser","time":{"created":10}}],"cursor":{}}}, + {"method":"GET","path":"/api/session/ses_g/permission","query":{},"status":200,"json":{"data":[]}}, + {"method":"GET","path":"/api/shell","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":[]}}, + {"method":"GET","path":"/api/skill","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":[]}}, + {"method":"GET","path":"/api/vcs","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":{"branch":{"current":"main","default":"main"}}}}, + {"method":"POST","path":"/api/rpc/opencode.goal/get","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"body":{"input":{"sessionID":"ses_g"}},"status":200,"json":{"output":null}} + ] + } +} diff --git a/packages/cli-rs/parity/fixtures/P.8/goal-plugin/commands.json b/packages/cli-rs/parity/fixtures/P.8/goal-plugin/commands.json new file mode 100644 index 000000000000..d34490ab0641 --- /dev/null +++ b/packages/cli-rs/parity/fixtures/P.8/goal-plugin/commands.json @@ -0,0 +1,42 @@ +{"width":150,"height":40,"styles":["#ffffffff #0d0d0dff 0","#696969ff #0d0d0dff 1","#ffffffff #030303ff 0","#353535ff #030303ff 0","#ffffffff #080808ff 0","#313f69ff #080808ff 0","#696969ff #080808ff 1","#696969ff #080808ff 0","#353535ff #080808ff 0","#313f69ff #030303ff 0","#ffffffff #141414ff 0","#808080ff #141414ff 0","#626262ff #030303ff 0","#00000000 #00000000 0","#ffffffff #23344bff 0","#696969ff #0d0d0dff 0","#353535ff #0d0d0dff 0","#1e1e1eff #030303ff 0","#0d0d0dff #030303ff 0","#696969ff #030303ff 0"],"lines":[ +[" Rewrite the parser + ",[[0,3],[1,7],[0,1],[1,3],[0,1],[1,6],[0,11],[2,1],[3,1],[2,116]]], +[" ",[[2,108],[4,42]]], +[" ┃ Rewrite the parser ",[[2,2],[5,1],[4,103],[2,2],[4,2],[6,7],[4,1],[6,3],[4,1],[6,6],[4,22]]], +[" ┃ Rewrite the parser ",[[2,2],[5,1],[4,2],[7,7],[4,1],[7,3],[4,1],[7,6],[4,83],[2,2],[4,42]]], +[" ┃ Goal ",[[2,2],[5,1],[4,103],[2,2],[4,2],[7,4],[4,36]]], +[" Status: paused ",[[2,108],[4,2],[8,7],[4,1],[8,6],[4,26]]], +[" + 1 tool Time: 12:05 ",[[2,5],[3,1],[2,1],[3,1],[2,1],[3,4],[2,95],[4,2],[8,5],[4,1],[8,5],[4,29]]], +[" Tokens: 1200/50000 ",[[2,108],[4,2],[8,7],[4,1],[8,10],[4,22]]], +[" Build · provider/model · 11ms Auto-continues: 3/10 ",[[2,5],[9,5],[2,1],[3,1],[2,1],[3,14],[2,1],[3,1],[2,1],[3,4],[2,74],[4,2],[8,15],[4,1],[8,4],[4,20]]], +[" Checkpoint: Lexer done ",[[2,108],[4,2],[8,11],[4,1],[8,5],[4,1],[8,4],[4,18]]], +[" + 1 tool Stop: paused ",[[2,5],[3,1],[2,1],[3,1],[2,1],[3,4],[2,32],[10,60],[2,3],[4,2],[8,5],[4,1],[8,6],[4,28]]], +[" Search commands esc Goal paused. ",[[2,45],[10,4],[11,15],[10,34],[11,3],[10,4],[2,3],[4,2],[8,4],[4,1],[8,7],[4,28]]], +[" Paused. Ship the parser rewrite ",[[2,5],[12,7],[2,33],[10,60],[2,3],[4,2],[8,4],[4,1],[8,3],[4,1],[8,6],[4,1],[8,7],[4,17]]], +[" ",[[2,41],[13,62],[10,2],[2,3],[4,42]]], +[" Build · provider/model · 21ms ",[[2,5],[9,5],[2,1],[3,1],[2,1],[3,14],[2,1],[3,1],[2,1],[3,4],[2,7],[13,62],[14,2],[2,3],[4,42]]], +[" ",[[2,41],[13,62],[10,2],[2,3],[4,42]]], +[" ",[[2,41],[13,62],[10,2],[2,3],[4,42]]], +[" ",[[2,41],[13,62],[10,2],[2,3],[4,42]]], +[" ",[[2,41],[13,62],[10,2],[2,3],[4,42]]], +[" ",[[2,41],[13,62],[10,2],[2,3],[4,42]]], +[" ",[[2,41],[13,62],[10,2],[2,3],[4,42]]], +[" ",[[2,41],[13,62],[10,2],[2,3],[4,42]]], +[" ",[[2,41],[13,62],[10,2],[2,3],[4,42]]], +[" ",[[2,41],[13,62],[10,2],[2,3],[4,42]]], +[" ",[[2,41],[13,62],[10,2],[2,3],[4,42]]], +[" ",[[2,41],[13,62],[10,2],[2,3],[4,2],[0,38],[4,2]]], +[" ⬖ Getting started ✕ ",[[2,41],[13,62],[10,2],[2,3],[4,2],[0,2],[15,1],[0,1],[1,7],[0,1],[1,7],[0,16],[16,1],[0,2],[4,2]]], +[" ",[[2,45],[10,60],[2,3],[4,2],[0,38],[4,2]]], +[" OpenCode includes free models so ",[[2,108],[4,2],[0,4],[16,8],[0,1],[16,8],[0,1],[16,4],[0,1],[16,6],[0,1],[16,2],[0,2],[4,2]]], +[" you can start immediately. ",[[2,108],[4,2],[0,4],[16,3],[0,1],[16,3],[0,1],[16,5],[0,1],[16,12],[0,8],[4,2]]], +[" ",[[2,108],[4,2],[0,38],[4,2]]], +[" Connect from 75+ providers to ",[[2,108],[4,2],[0,4],[16,7],[0,1],[16,4],[0,1],[16,3],[0,1],[16,9],[0,1],[16,2],[0,5],[4,2]]], +[" use other models, including ",[[2,108],[4,2],[0,4],[16,3],[0,1],[16,5],[0,1],[16,7],[0,1],[16,9],[0,7],[4,2]]], +[" ┃ Claude, GPT, Gemini etc ",[[2,2],[17,1],[0,103],[2,2],[4,2],[0,4],[16,7],[0,1],[16,4],[0,1],[16,6],[0,1],[16,3],[0,11],[4,2]]], +[" ┃ ",[[2,2],[17,1],[0,103],[2,2],[4,2],[0,38],[4,2]]], +[" ┃ Connect provider /connect ",[[2,2],[17,1],[0,103],[2,2],[4,2],[0,4],[15,7],[0,1],[15,8],[0,8],[16,8],[0,2],[4,2]]], +[" ┃ ",[[2,2],[17,1],[0,103],[2,2],[4,2],[0,38],[4,2]]], +[" ╹▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀ ",[[2,2],[17,1],[18,103],[2,2],[4,42]]], +[" /tmp/opencode/packages/tui:main shift+tab agents ctrl+p commands /tmp/opencode/packages/tui:main ",[[2,2],[3,31],[2,40],[19,9],[2,1],[3,6],[2,2],[19,6],[2,1],[3,8],[2,2],[4,2],[8,31],[4,9]]], +[" ",[[2,108],[4,42]]] +]} diff --git a/packages/cli-rs/parity/fixtures/P.8/goal-plugin/palette.json b/packages/cli-rs/parity/fixtures/P.8/goal-plugin/palette.json new file mode 100644 index 000000000000..c634b5dd06d6 --- /dev/null +++ b/packages/cli-rs/parity/fixtures/P.8/goal-plugin/palette.json @@ -0,0 +1,42 @@ +{"width":150,"height":40,"styles":["#ffffffff #0d0d0dff 0","#696969ff #0d0d0dff 1","#ffffffff #030303ff 0","#353535ff #030303ff 0","#ffffffff #080808ff 0","#313f69ff #080808ff 0","#696969ff #080808ff 1","#696969ff #080808ff 0","#353535ff #080808ff 0","#313f69ff #030303ff 0","#ffffffff #141414ff 0","#808080ff #141414ff 0","#626262ff #030303ff 0","#7699feff #141414ff 0","#ffffffff #23344bff 0","#93a2b7ff #23344bff 0","#696969ff #0d0d0dff 0","#353535ff #0d0d0dff 0","#1e1e1eff #030303ff 0","#0d0d0dff #030303ff 0","#696969ff #030303ff 0"],"lines":[ +[" Rewrite the parser + ",[[0,3],[1,7],[0,1],[1,3],[0,1],[1,6],[0,11],[2,1],[3,1],[2,116]]], +[" ",[[2,108],[4,42]]], +[" ┃ Rewrite the parser ",[[2,2],[5,1],[4,103],[2,2],[4,2],[6,7],[4,1],[6,3],[4,1],[6,6],[4,22]]], +[" ┃ Rewrite the parser ",[[2,2],[5,1],[4,2],[7,7],[4,1],[7,3],[4,1],[7,6],[4,83],[2,2],[4,42]]], +[" ┃ Goal ",[[2,2],[5,1],[4,103],[2,2],[4,2],[7,4],[4,36]]], +[" Status: paused ",[[2,108],[4,2],[8,7],[4,1],[8,6],[4,26]]], +[" + 1 tool Time: 12:05 ",[[2,5],[3,1],[2,1],[3,1],[2,1],[3,4],[2,95],[4,2],[8,5],[4,1],[8,5],[4,29]]], +[" Tokens: 1200/50000 ",[[2,108],[4,2],[8,7],[4,1],[8,10],[4,22]]], +[" Build · provider/model · 11ms Auto-continues: 3/10 ",[[2,5],[9,5],[2,1],[3,1],[2,1],[3,14],[2,1],[3,1],[2,1],[3,4],[2,74],[4,2],[8,15],[4,1],[8,4],[4,20]]], +[" Checkpoint: Lexer done ",[[2,108],[4,2],[8,11],[4,1],[8,5],[4,1],[8,4],[4,18]]], +[" + 1 tool Stop: paused ",[[2,5],[3,1],[2,1],[3,1],[2,1],[3,4],[2,32],[10,60],[2,3],[4,2],[8,5],[4,1],[8,6],[4,28]]], +[" goal esc Goal paused. ",[[2,45],[10,53],[11,3],[10,4],[2,3],[4,2],[8,4],[4,1],[8,7],[4,28]]], +[" Paused. Ship the parser rewrite ",[[2,5],[12,7],[2,33],[10,60],[2,3],[4,2],[8,4],[4,1],[8,3],[4,1],[8,6],[4,1],[8,7],[4,17]]], +[" ┃ Goal View, pause, resume, or clear the long-run Goal ",[[2,45],[13,1],[14,7],[15,43],[14,1],[15,4],[14,4],[2,3],[4,42]]], +[" Build · provider/model · 21ms ",[[2,5],[9,5],[2,1],[3,1],[2,1],[3,14],[2,1],[3,1],[2,1],[3,4],[2,11],[10,60],[2,3],[4,42]]], +[" ",[[2,108],[4,42]]], +[" ",[[2,108],[4,42]]], +[" ",[[2,108],[4,42]]], +[" ",[[2,108],[4,42]]], +[" ",[[2,108],[4,42]]], +[" ",[[2,108],[4,42]]], +[" ",[[2,108],[4,42]]], +[" ",[[2,108],[4,42]]], +[" ",[[2,108],[4,42]]], +[" ",[[2,108],[4,42]]], +[" ",[[2,108],[4,2],[0,38],[4,2]]], +[" ⬖ Getting started ✕ ",[[2,108],[4,2],[0,2],[16,1],[0,1],[1,7],[0,1],[1,7],[0,16],[17,1],[0,2],[4,2]]], +[" ",[[2,108],[4,2],[0,38],[4,2]]], +[" OpenCode includes free models so ",[[2,108],[4,2],[0,4],[17,8],[0,1],[17,8],[0,1],[17,4],[0,1],[17,6],[0,1],[17,2],[0,2],[4,2]]], +[" you can start immediately. ",[[2,108],[4,2],[0,4],[17,3],[0,1],[17,3],[0,1],[17,5],[0,1],[17,12],[0,8],[4,2]]], +[" ",[[2,108],[4,2],[0,38],[4,2]]], +[" Connect from 75+ providers to ",[[2,108],[4,2],[0,4],[17,7],[0,1],[17,4],[0,1],[17,3],[0,1],[17,9],[0,1],[17,2],[0,5],[4,2]]], +[" use other models, including ",[[2,108],[4,2],[0,4],[17,3],[0,1],[17,5],[0,1],[17,7],[0,1],[17,9],[0,7],[4,2]]], +[" ┃ Claude, GPT, Gemini etc ",[[2,2],[18,1],[0,103],[2,2],[4,2],[0,4],[17,7],[0,1],[17,4],[0,1],[17,6],[0,1],[17,3],[0,11],[4,2]]], +[" ┃ ",[[2,2],[18,1],[0,103],[2,2],[4,2],[0,38],[4,2]]], +[" ┃ Connect provider /connect ",[[2,2],[18,1],[0,103],[2,2],[4,2],[0,4],[16,7],[0,1],[16,8],[0,8],[17,8],[0,2],[4,2]]], +[" ┃ ",[[2,2],[18,1],[0,103],[2,2],[4,2],[0,38],[4,2]]], +[" ╹▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀ ",[[2,2],[18,1],[19,103],[2,2],[4,42]]], +[" /tmp/opencode/packages/tui:main shift+tab agents ctrl+p commands /tmp/opencode/packages/tui:main ",[[2,2],[3,31],[2,40],[20,9],[2,1],[3,6],[2,2],[20,6],[2,1],[3,8],[2,2],[4,2],[8,31],[4,9]]], +[" ",[[2,108],[4,42]]] +]} diff --git a/packages/cli-rs/parity/fixtures/P.8/goal-plugin/sent.json b/packages/cli-rs/parity/fixtures/P.8/goal-plugin/sent.json new file mode 100644 index 000000000000..4f0bc60d3a11 --- /dev/null +++ b/packages/cli-rs/parity/fixtures/P.8/goal-plugin/sent.json @@ -0,0 +1,42 @@ +{"width":150,"height":40,"styles":["#ffffffff #202020ff 0","#ffffffff #202020ff 1","#808080ff #080808ff 0","#ffffffff #080808ff 0","#ffffffff #141414ff 0","#7699feff #141414ff 0","#ffffffff #141414ff 1","#808080ff #141414ff 0","#7699feff #080808ff 0","#eeeeeeff #080808ff 0","#808080ff #202020ff 0","#484848ff #080808ff 0","#202020ff #080808ff 0"],"lines":[ +[" Rewrite the parser + ",[[0,3],[1,18],[0,11],[2,3],[3,115]]], +[" ",[[3,108],[4,42]]], +[" ┃ Rewrite the parser ",[[3,2],[5,1],[4,103],[3,2],[4,2],[6,18],[4,22]]], +[" ┃ Rewrite the parser ",[[3,2],[5,1],[4,103],[3,2],[4,42]]], +[" ┃ Goal ",[[3,2],[5,1],[4,103],[3,2],[4,42]]], +[" Status: paused ",[[3,108],[4,2],[7,14],[4,26]]], +[" + 1 tool Time: 12:05 ",[[3,5],[2,1],[3,1],[2,6],[3,95],[4,2],[7,11],[4,29]]], +[" Tokens: 1200/50000 ",[[3,108],[4,2],[7,18],[4,22]]], +[" Build · provider/model · 11ms Auto-continues: 3/10 ",[[3,5],[8,5],[2,24],[3,74],[4,2],[7,20],[4,20]]], +[" Checkpoint: Lexer done ",[[3,108],[4,2],[7,22],[4,18]]], +[" + 1 tool Stop: paused ",[[3,5],[2,1],[3,1],[2,6],[3,95],[4,2],[7,12],[4,28]]], +[" Goal paused. ",[[3,108],[4,2],[7,12],[4,28]]], +[" Paused. Ship the parser rewrite ",[[3,5],[9,7],[3,96],[4,2],[7,23],[4,17]]], +[" ",[[3,108],[4,42]]], +[" Build · provider/model · 21ms ",[[3,5],[8,5],[2,24],[3,74],[4,42]]], +[" ",[[3,108],[4,42]]], +[" ",[[3,108],[4,42]]], +[" ",[[3,108],[4,42]]], +[" ",[[3,108],[4,42]]], +[" ",[[3,108],[4,42]]], +[" ",[[3,108],[4,42]]], +[" ",[[3,108],[4,42]]], +[" ",[[3,108],[4,42]]], +[" ",[[3,108],[4,42]]], +[" ",[[3,108],[4,42]]], +[" ",[[3,108],[4,2],[0,38],[4,2]]], +[" ⬖ Getting started ✕ ",[[3,108],[4,2],[0,4],[1,15],[0,16],[10,1],[0,2],[4,2]]], +[" ",[[3,108],[4,2],[0,38],[4,2]]], +[" OpenCode includes free models so ",[[3,108],[4,2],[0,4],[10,32],[0,2],[4,2]]], +[" you can start immediately. ",[[3,108],[4,2],[0,4],[10,26],[0,8],[4,2]]], +[" ",[[3,108],[4,2],[0,38],[4,2]]], +[" Connect from 75+ providers to ",[[3,108],[4,2],[0,4],[10,30],[0,4],[4,2]]], +[" use other models, including ",[[3,108],[4,2],[0,4],[10,28],[0,6],[4,2]]], +[" ┃ Claude, GPT, Gemini etc ",[[3,2],[11,1],[0,103],[3,2],[4,2],[0,4],[10,23],[0,11],[4,2]]], +[" ┃ ",[[3,2],[11,1],[0,103],[3,2],[4,2],[0,38],[4,2]]], +[" ┃ Connect provider /connect ",[[3,2],[11,1],[0,103],[3,2],[4,2],[0,28],[10,8],[0,2],[4,2]]], +[" ┃ ",[[3,2],[11,1],[0,103],[3,2],[4,2],[0,38],[4,2]]], +[" ╹▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀ ",[[3,2],[11,1],[12,103],[3,2],[4,42]]], +[" /tmp/opencode/packages/tui:main shift+tab agents ctrl+p commands /tmp/opencode/packages/tui:main ",[[3,2],[2,31],[3,50],[2,6],[3,9],[2,8],[3,2],[4,2],[7,31],[4,9]]], +[" ",[[3,108],[4,42]]] +]} diff --git a/packages/cli-rs/parity/fixtures/P.8/goal-plugin/sidebar.json b/packages/cli-rs/parity/fixtures/P.8/goal-plugin/sidebar.json new file mode 100644 index 000000000000..4f0bc60d3a11 --- /dev/null +++ b/packages/cli-rs/parity/fixtures/P.8/goal-plugin/sidebar.json @@ -0,0 +1,42 @@ +{"width":150,"height":40,"styles":["#ffffffff #202020ff 0","#ffffffff #202020ff 1","#808080ff #080808ff 0","#ffffffff #080808ff 0","#ffffffff #141414ff 0","#7699feff #141414ff 0","#ffffffff #141414ff 1","#808080ff #141414ff 0","#7699feff #080808ff 0","#eeeeeeff #080808ff 0","#808080ff #202020ff 0","#484848ff #080808ff 0","#202020ff #080808ff 0"],"lines":[ +[" Rewrite the parser + ",[[0,3],[1,18],[0,11],[2,3],[3,115]]], +[" ",[[3,108],[4,42]]], +[" ┃ Rewrite the parser ",[[3,2],[5,1],[4,103],[3,2],[4,2],[6,18],[4,22]]], +[" ┃ Rewrite the parser ",[[3,2],[5,1],[4,103],[3,2],[4,42]]], +[" ┃ Goal ",[[3,2],[5,1],[4,103],[3,2],[4,42]]], +[" Status: paused ",[[3,108],[4,2],[7,14],[4,26]]], +[" + 1 tool Time: 12:05 ",[[3,5],[2,1],[3,1],[2,6],[3,95],[4,2],[7,11],[4,29]]], +[" Tokens: 1200/50000 ",[[3,108],[4,2],[7,18],[4,22]]], +[" Build · provider/model · 11ms Auto-continues: 3/10 ",[[3,5],[8,5],[2,24],[3,74],[4,2],[7,20],[4,20]]], +[" Checkpoint: Lexer done ",[[3,108],[4,2],[7,22],[4,18]]], +[" + 1 tool Stop: paused ",[[3,5],[2,1],[3,1],[2,6],[3,95],[4,2],[7,12],[4,28]]], +[" Goal paused. ",[[3,108],[4,2],[7,12],[4,28]]], +[" Paused. Ship the parser rewrite ",[[3,5],[9,7],[3,96],[4,2],[7,23],[4,17]]], +[" ",[[3,108],[4,42]]], +[" Build · provider/model · 21ms ",[[3,5],[8,5],[2,24],[3,74],[4,42]]], +[" ",[[3,108],[4,42]]], +[" ",[[3,108],[4,42]]], +[" ",[[3,108],[4,42]]], +[" ",[[3,108],[4,42]]], +[" ",[[3,108],[4,42]]], +[" ",[[3,108],[4,42]]], +[" ",[[3,108],[4,42]]], +[" ",[[3,108],[4,42]]], +[" ",[[3,108],[4,42]]], +[" ",[[3,108],[4,42]]], +[" ",[[3,108],[4,2],[0,38],[4,2]]], +[" ⬖ Getting started ✕ ",[[3,108],[4,2],[0,4],[1,15],[0,16],[10,1],[0,2],[4,2]]], +[" ",[[3,108],[4,2],[0,38],[4,2]]], +[" OpenCode includes free models so ",[[3,108],[4,2],[0,4],[10,32],[0,2],[4,2]]], +[" you can start immediately. ",[[3,108],[4,2],[0,4],[10,26],[0,8],[4,2]]], +[" ",[[3,108],[4,2],[0,38],[4,2]]], +[" Connect from 75+ providers to ",[[3,108],[4,2],[0,4],[10,30],[0,4],[4,2]]], +[" use other models, including ",[[3,108],[4,2],[0,4],[10,28],[0,6],[4,2]]], +[" ┃ Claude, GPT, Gemini etc ",[[3,2],[11,1],[0,103],[3,2],[4,2],[0,4],[10,23],[0,11],[4,2]]], +[" ┃ ",[[3,2],[11,1],[0,103],[3,2],[4,2],[0,38],[4,2]]], +[" ┃ Connect provider /connect ",[[3,2],[11,1],[0,103],[3,2],[4,2],[0,28],[10,8],[0,2],[4,2]]], +[" ┃ ",[[3,2],[11,1],[0,103],[3,2],[4,2],[0,38],[4,2]]], +[" ╹▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀ ",[[3,2],[11,1],[12,103],[3,2],[4,42]]], +[" /tmp/opencode/packages/tui:main shift+tab agents ctrl+p commands /tmp/opencode/packages/tui:main ",[[3,2],[2,31],[3,50],[2,6],[3,9],[2,8],[3,2],[4,2],[7,31],[4,9]]], +[" ",[[3,108],[4,42]]] +]} diff --git a/packages/cli-rs/parity/fixtures/P.8/goal-plugin/summary.json b/packages/cli-rs/parity/fixtures/P.8/goal-plugin/summary.json new file mode 100644 index 000000000000..33d9dc79fc30 --- /dev/null +++ b/packages/cli-rs/parity/fixtures/P.8/goal-plugin/summary.json @@ -0,0 +1,42 @@ +{"width":150,"height":40,"styles":["#ffffffff #0d0d0dff 0","#696969ff #0d0d0dff 1","#ffffffff #030303ff 0","#353535ff #030303ff 0","#ffffffff #080808ff 0","#313f69ff #080808ff 0","#696969ff #080808ff 1","#696969ff #080808ff 0","#353535ff #080808ff 0","#313f69ff #030303ff 0","#ffffffff #141414ff 0","#808080ff #141414ff 0","#626262ff #030303ff 0","#7699feff #141414ff 0","#ffffffff #23344bff 0","#93a2b7ff #23344bff 0","#696969ff #0d0d0dff 0","#353535ff #0d0d0dff 0","#1e1e1eff #030303ff 0","#0d0d0dff #030303ff 0","#696969ff #030303ff 0"],"lines":[ +[" Rewrite the parser + ",[[0,3],[1,7],[0,1],[1,3],[0,1],[1,6],[0,11],[2,1],[3,1],[2,116]]], +[" ",[[2,108],[4,42]]], +[" ┃ Rewrite the parser ",[[2,2],[5,1],[4,103],[2,2],[4,2],[6,7],[4,1],[6,3],[4,1],[6,6],[4,22]]], +[" ┃ Rewrite the parser ",[[2,2],[5,1],[4,2],[7,7],[4,1],[7,3],[4,1],[7,6],[4,83],[2,2],[4,42]]], +[" ┃ Goal ",[[2,2],[5,1],[4,103],[2,2],[4,2],[7,4],[4,36]]], +[" Status: paused ",[[2,108],[4,2],[8,7],[4,1],[8,6],[4,26]]], +[" + 1 tool Time: 12:05 ",[[2,5],[3,1],[2,1],[3,1],[2,1],[3,4],[2,95],[4,2],[8,5],[4,1],[8,5],[4,29]]], +[" Tokens: 1200/50000 ",[[2,108],[4,2],[8,7],[4,1],[8,10],[4,22]]], +[" Build · provider/model · 11ms Auto-continues: 3/10 ",[[2,5],[9,5],[2,1],[3,1],[2,1],[3,14],[2,1],[3,1],[2,1],[3,4],[2,74],[4,2],[8,15],[4,1],[8,4],[4,20]]], +[" Checkpoint: Lexer done ",[[2,108],[4,2],[8,11],[4,1],[8,5],[4,1],[8,4],[4,18]]], +[" + 1 tool Stop: paused ",[[2,5],[3,1],[2,1],[3,1],[2,1],[3,4],[2,32],[10,60],[2,3],[4,2],[8,5],[4,1],[8,6],[4,28]]], +[" Goal esc Goal paused. ",[[2,45],[10,53],[11,3],[10,4],[2,3],[4,2],[8,4],[4,1],[8,7],[4,28]]], +[" Paused. Ship the parser rewrite ",[[2,5],[12,7],[2,33],[10,60],[2,3],[4,2],[8,4],[4,1],[8,3],[4,1],[8,6],[4,1],[8,7],[4,17]]], +[" Objective: Ship the parser rewrite ",[[2,45],[10,4],[11,34],[10,22],[2,3],[4,42]]], +[" Build · provider/model · 21ms ",[[2,5],[9,5],[2,1],[3,1],[2,1],[3,14],[2,1],[3,1],[2,1],[3,4],[2,11],[10,60],[2,3],[4,42]]], +[" ┃ Refresh Ask the agent to read the current goal state ",[[2,45],[13,1],[14,10],[15,45],[14,4],[2,3],[4,42]]], +[" History Ask the agent to show lifecycle history ",[[2,45],[13,1],[10,10],[11,40],[10,9],[2,3],[4,42]]], +[" Resume Resume the goal and continue ",[[2,45],[13,1],[10,9],[11,29],[10,21],[2,3],[4,42]]], +[" Clear Ask the agent to clear this session goal ",[[2,45],[13,1],[10,8],[11,41],[10,10],[2,3],[4,42]]], +[" ",[[2,45],[10,60],[2,3],[4,42]]], +[" ",[[2,108],[4,42]]], +[" ",[[2,108],[4,42]]], +[" ",[[2,108],[4,42]]], +[" ",[[2,108],[4,42]]], +[" ",[[2,108],[4,42]]], +[" ",[[2,108],[4,2],[0,38],[4,2]]], +[" ⬖ Getting started ✕ ",[[2,108],[4,2],[0,2],[16,1],[0,1],[1,7],[0,1],[1,7],[0,16],[17,1],[0,2],[4,2]]], +[" ",[[2,108],[4,2],[0,38],[4,2]]], +[" OpenCode includes free models so ",[[2,108],[4,2],[0,4],[17,8],[0,1],[17,8],[0,1],[17,4],[0,1],[17,6],[0,1],[17,2],[0,2],[4,2]]], +[" you can start immediately. ",[[2,108],[4,2],[0,4],[17,3],[0,1],[17,3],[0,1],[17,5],[0,1],[17,12],[0,8],[4,2]]], +[" ",[[2,108],[4,2],[0,38],[4,2]]], +[" Connect from 75+ providers to ",[[2,108],[4,2],[0,4],[17,7],[0,1],[17,4],[0,1],[17,3],[0,1],[17,9],[0,1],[17,2],[0,5],[4,2]]], +[" use other models, including ",[[2,108],[4,2],[0,4],[17,3],[0,1],[17,5],[0,1],[17,7],[0,1],[17,9],[0,7],[4,2]]], +[" ┃ Claude, GPT, Gemini etc ",[[2,2],[18,1],[0,103],[2,2],[4,2],[0,4],[17,7],[0,1],[17,4],[0,1],[17,6],[0,1],[17,3],[0,11],[4,2]]], +[" ┃ ",[[2,2],[18,1],[0,103],[2,2],[4,2],[0,38],[4,2]]], +[" ┃ Connect provider /connect ",[[2,2],[18,1],[0,103],[2,2],[4,2],[0,4],[16,7],[0,1],[16,8],[0,8],[17,8],[0,2],[4,2]]], +[" ┃ ",[[2,2],[18,1],[0,103],[2,2],[4,2],[0,38],[4,2]]], +[" ╹▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀ ",[[2,2],[18,1],[19,103],[2,2],[4,42]]], +[" /tmp/opencode/packages/tui:main shift+tab agents ctrl+p commands /tmp/opencode/packages/tui:main ",[[2,2],[3,31],[2,40],[20,9],[2,1],[3,6],[2,2],[20,6],[2,1],[3,8],[2,2],[4,2],[8,31],[4,9]]], +[" ",[[2,108],[4,42]]] +]} diff --git a/packages/cli-rs/parity/fixtures/P.8/goal-select.app.json b/packages/cli-rs/parity/fixtures/P.8/goal-select.app.json new file mode 100644 index 000000000000..e3ecbdf3ee87 --- /dev/null +++ b/packages/cli-rs/parity/fixtures/P.8/goal-select.app.json @@ -0,0 +1,65 @@ +{ + "scenario": "P.8/goal-select", + "width": 140, + "height": 34, + "directory": "/tmp/opencode/packages/tui", + "config": { + "experimental": {"new-designs":true}, + "plugins": ["./out/npm/node_modules/@cleocode/goal"], + "animations": false, + "theme": {"name":"opencode"} + }, + "args": { + "sessionID": "ses_o" + }, + "env": { + "OPENCODE_PARITY_PLUGIN": "npm" + }, + "routes": [ + {"path":"/api/session/ses_o","json":{"data":{"id":"ses_o","title":"Set a goal","projectID":"proj_test","cost":0,"tokens":{"input":0,"output":0,"reasoning":0,"cache":{"read":0,"write":0}},"time":{"created":2,"updated":2},"location":{"directory":"/tmp/opencode/packages/tui"}}}}, + {"path":"/api/session","json":{"data":[{"id":"ses_o","title":"Set a goal","projectID":"proj_test","cost":0,"tokens":{"input":0,"output":0,"reasoning":0,"cache":{"read":0,"write":0}},"time":{"created":2,"updated":2},"location":{"directory":"/tmp/opencode/packages/tui"}}],"cursor":{}}}, + {"path":"/api/session/ses_o/message","json":{"data":[{"id":"msg_2","type":"assistant","agent":"build","model":{"providerID":"provider","id":"model"},"content":[{"type":"text","text":"Goal set."}],"finish":"stop","time":{"created":2000,"completed":2001}},{"id":"msg_1","type":"user","text":"Set it","time":{"created":1000}}],"cursor":{}}}, + {"path":"/api/session/ses_o/inbox","json":{"data":[]}}, + {"method":"POST","path":"/api/rpc/open-goal/:method","status":404,"json":{"_tag":"NotFound","message":"no such RPC"}} + ], + "steps": [ + {"checkpoint":"sidebar","until":"F9 manager","fixture":"P.8/goal-select/sidebar"} + ], + "requests": { + "writes": [ + {"method":"POST","path":"/api/rpc/open-goal/snapshot","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"body":{"input":{"sessionID":"ses_o"}},"status":404,"json":{"_tag":"NotFound","message":"no such RPC"}}, + {"method":"POST","path":"/api/rpc/open-goal/list","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"body":{"input":{}},"status":404,"json":{"_tag":"NotFound","message":"no such RPC"}} + ], + "reads": [ + {"method":"GET","path":"/api/agent","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":[]}}, + {"method":"GET","path":"/api/command","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":[]}}, + {"method":"GET","path":"/api/config","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":[]}, + {"method":"GET","path":"/api/experimental/job","query":{"descendants":["true"],"sessionID":["ses_o"],"status":["running"]},"status":200,"json":{"data":[]}}, + {"method":"GET","path":"/api/experimental/migration/v1","query":{},"status":200,"json":{"status":"completed"}}, + {"method":"GET","path":"/api/experimental/session/ses_o/terminal","query":{},"status":200,"json":{"data":[]}}, + {"method":"GET","path":"/api/form","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode"}},"data":[]}}, + {"method":"GET","path":"/api/fs/list","query":{"location[directory]":["<cwd>"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":[]}}, + {"method":"GET","path":"/api/info","query":{},"status":200,"json":{"version":"test","pid":0,"urls":[],"paths":{"tmp":"/tmp"},"capabilities":{"persistentPty":true}}}, + {"method":"GET","path":"/api/integration","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":[]}}, + {"method":"GET","path":"/api/location","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}}}, + {"method":"GET","path":"/api/mcp","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":[]}}, + {"method":"GET","path":"/api/mcp/resource","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":{"resources":[],"templates":[]}}}, + {"method":"GET","path":"/api/model","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":[]}}, + {"method":"GET","path":"/api/plugin","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":[]}}, + {"method":"GET","path":"/api/project","query":{},"status":200,"json":[]}, + {"method":"GET","path":"/api/provider","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":[]}}, + {"method":"GET","path":"/api/reference","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode/packages/tui","canonical":"/tmp/opencode/packages/tui"}},"data":[]}}, + {"method":"GET","path":"/api/session","query":{"limit":["200"],"order":["desc"],"parentID":["ses_o"]},"status":200,"json":{"data":[{"id":"ses_o","title":"Set a goal","projectID":"proj_test","cost":0,"tokens":{"input":0,"output":0,"reasoning":0,"cache":{"read":0,"write":0}},"time":{"created":2,"updated":2},"location":{"directory":"/tmp/opencode/packages/tui"}}],"cursor":{}}}, + {"method":"GET","path":"/api/session/active","query":{},"status":200,"json":{"data":{}}}, + {"method":"GET","path":"/api/session/ses_o","query":{},"status":200,"json":{"data":{"id":"ses_o","title":"Set a goal","projectID":"proj_test","cost":0,"tokens":{"input":0,"output":0,"reasoning":0,"cache":{"read":0,"write":0}},"time":{"created":2,"updated":2},"location":{"directory":"/tmp/opencode/packages/tui"}}}}, + {"method":"GET","path":"/api/session/ses_o/form","query":{},"status":200,"json":{"data":[]}}, + {"method":"GET","path":"/api/session/ses_o/inbox","query":{},"status":200,"json":{"data":[]}}, + {"method":"GET","path":"/api/session/ses_o/message","query":{"limit":["20"],"order":["desc"]},"status":200,"json":{"data":[{"id":"msg_2","type":"assistant","agent":"build","model":{"providerID":"provider","id":"model"},"content":[{"type":"text","text":"Goal set."}],"finish":"stop","time":{"created":2000,"completed":2001}},{"id":"msg_1","type":"user","text":"Set it","time":{"created":1000}}],"cursor":{}}}, + {"method":"GET","path":"/api/session/ses_o/permission","query":{},"status":200,"json":{"data":[]}}, + {"method":"GET","path":"/api/shell","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":[]}}, + {"method":"GET","path":"/api/skill","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":[]}}, + {"method":"GET","path":"/api/vcs","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":{"branch":{"current":"main","default":"main"}}}}, + {"method":"POST","path":"/api/rpc/opencode.goal/get","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"body":{"input":{"sessionID":"ses_o"}},"status":200,"json":{"output":null}} + ] + } +} diff --git a/packages/cli-rs/parity/fixtures/P.8/goal-select/sidebar.json b/packages/cli-rs/parity/fixtures/P.8/goal-select/sidebar.json new file mode 100644 index 000000000000..c7634781b20e --- /dev/null +++ b/packages/cli-rs/parity/fixtures/P.8/goal-select/sidebar.json @@ -0,0 +1,36 @@ +{"width":140,"height":34,"styles":["#ffffffff #202020ff 0","#ffffffff #202020ff 1","#808080ff #080808ff 0","#ffffffff #080808ff 0","#ffffffff #141414ff 0","#7699feff #141414ff 0","#ffffffff #141414ff 1","#ffffffff #334455ff 0","#ffff00ff #334455ff 0","#eeeeeeff #080808ff 0","#7699feff #080808ff 0","#808080ff #202020ff 0","#484848ff #080808ff 0","#202020ff #080808ff 0","#808080ff #141414ff 0"],"lines":[ +[" Set a goal + ",[[0,3],[1,10],[0,19],[2,3],[3,105]]], +[" ",[[3,98],[4,42]]], +[" ┃ Set a goal ",[[3,2],[5,1],[4,93],[3,2],[4,2],[6,10],[4,30]]], +[" ┃ Set it ",[[3,2],[5,1],[4,93],[3,2],[4,42]]], +[" ┃ ▶ Retry goals — F9 manager ",[[3,2],[5,1],[4,93],[3,2],[4,2],[7,1],[8,26],[7,10],[4,3]]], +[" ",[[3,98],[4,42]]], +[" Goal set. ",[[3,5],[9,9],[3,84],[4,42]]], +[" ",[[3,98],[4,42]]], +[" Build · provider/model · 1.0s ",[[3,5],[10,5],[2,24],[3,64],[4,42]]], +[" ",[[3,98],[4,42]]], +[" ",[[3,98],[4,42]]], +[" ",[[3,98],[4,42]]], +[" ",[[3,98],[4,42]]], +[" ",[[3,98],[4,42]]], +[" ",[[3,98],[4,42]]], +[" ",[[3,98],[4,42]]], +[" ",[[3,98],[4,42]]], +[" ",[[3,98],[4,42]]], +[" ",[[3,98],[4,42]]], +[" ",[[3,98],[4,2],[0,38],[4,2]]], +[" ⬖ Getting started ✕ ",[[3,98],[4,2],[0,4],[1,15],[0,16],[11,1],[0,2],[4,2]]], +[" ",[[3,98],[4,2],[0,38],[4,2]]], +[" OpenCode includes free models so ",[[3,98],[4,2],[0,4],[11,32],[0,2],[4,2]]], +[" you can start immediately. ",[[3,98],[4,2],[0,4],[11,26],[0,8],[4,2]]], +[" ",[[3,98],[4,2],[0,38],[4,2]]], +[" Connect from 75+ providers to ",[[3,98],[4,2],[0,4],[11,30],[0,4],[4,2]]], +[" use other models, including ",[[3,98],[4,2],[0,4],[11,28],[0,6],[4,2]]], +[" ┃ Claude, GPT, Gemini etc ",[[3,2],[12,1],[0,93],[3,2],[4,2],[0,4],[11,23],[0,11],[4,2]]], +[" ┃ ",[[3,2],[12,1],[0,93],[3,2],[4,2],[0,38],[4,2]]], +[" ┃ Connect provider /connect ",[[3,2],[12,1],[0,93],[3,2],[4,2],[0,28],[11,8],[0,2],[4,2]]], +[" ┃ ",[[3,2],[12,1],[0,93],[3,2],[4,2],[0,38],[4,2]]], +[" ╹▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀ ",[[3,2],[12,1],[13,93],[3,2],[4,42]]], +[" /tmp/opencode/packages/tui:main shift+tab agents ctrl+p commands /tmp/opencode/packages/tui:main ",[[3,2],[2,31],[3,40],[2,6],[3,9],[2,8],[3,2],[4,2],[14,31],[4,9]]], +[" ",[[3,98],[4,42]]] +]} diff --git a/packages/cli-rs/parity/fixtures/P.8/good-fences.app.json b/packages/cli-rs/parity/fixtures/P.8/good-fences.app.json new file mode 100644 index 000000000000..bdb95fc818c1 --- /dev/null +++ b/packages/cli-rs/parity/fixtures/P.8/good-fences.app.json @@ -0,0 +1,74 @@ +{ + "scenario": "P.8/good-fences", + "width": 120, + "height": 40, + "directory": "/tmp/opencode/packages/tui", + "config": { + "experimental": {"new-designs":true}, + "plugins": ["./out/npm/node_modules/opencode-good-fences"], + "animations": false, + "theme": {"name":"opencode"} + }, + "args": { + "sessionID": "ses_g" + }, + "env": { + "OPENCODE_PARITY_PLUGIN": "npm" + }, + "routes": [ + {"path":"/api/session/ses_g","json":{"data":{"id":"ses_g","title":"Show the fences","projectID":"proj_test","cost":0,"tokens":{"input":0,"output":0,"reasoning":0,"cache":{"read":0,"write":0}},"time":{"created":2,"updated":2},"location":{"directory":"/tmp/opencode/packages/tui"}}}}, + {"path":"/api/session","json":{"data":[{"id":"ses_g","title":"Show the fences","projectID":"proj_test","cost":0,"tokens":{"input":0,"output":0,"reasoning":0,"cache":{"read":0,"write":0}},"time":{"created":2,"updated":2},"location":{"directory":"/tmp/opencode/packages/tui"}}],"cursor":{}}}, + {"path":"/api/session/ses_g/message","json":{"data":[{"id":"msg_2","type":"assistant","agent":"build","model":{"providerID":"provider","id":"model"},"content":[{"type":"text","text":"Here is the code:\n\n```ts\nconst answer = 42\nconsole.log(answer)\n```\n\nA plain fence:\n\n```\nno language here\n```\n\nAnd the math:\n\n```latex\nE = mc^2\n```\n"}],"finish":"stop","time":{"created":2000,"completed":2001}},{"id":"msg_1","type":"user","text":"Show me the fences","time":{"created":1000}}],"cursor":{}}}, + {"path":"/api/session/ses_g/inbox","json":{"data":[]}} + ], + "steps": [ + {"checkpoint":"settled","until":"E = mc^2","deviation":[{"file":"F16-plugin-fence-margin","cells":44}],"fixture":"P.8/good-fences/settled"}, + {"event":{"id":"evt_1","created":11,"type":"session.text.delta","durable":{"aggregateID":"ses_g","seq":1,"version":1},"data":{"sessionID":"ses_g","assistantMessageID":"msg_2","ordinal":0,"delta":"\nOne more:\n\n```py\nprint('streaming')\n"}}}, + {"checkpoint":"streaming","until":"print('streaming')","deviation":[{"file":"F16-plugin-fence-margin","cells":44}],"fixture":"P.8/good-fences/streaming"}, + {"event":{"id":"evt_2","created":12,"type":"session.text.delta","durable":{"aggregateID":"ses_g","seq":2,"version":1},"data":{"sessionID":"ses_g","assistantMessageID":"msg_2","ordinal":0,"delta":"print('done')\n```\n\nThat is all.\n"}}}, + {"checkpoint":"streamed","until":"That is all.","deviation":[{"file":"F16-plugin-fence-margin","cells":44}],"fixture":"P.8/good-fences/streamed"}, + {"type":"/themes"}, + {"checkpoint":"slash","until":"Switch theme","deviation":[{"file":"F16-plugin-fence-margin","cells":44}],"fixture":"P.8/good-fences/slash"}, + {"keys":["enter"]}, + {"wait":500}, + {"type":"tokyonight"}, + {"wait":500}, + {"keys":["enter"]}, + {"wait":1000}, + {"checkpoint":"themed","until":"That is all.","deviation":[{"file":"F16-plugin-fence-margin","cells":75}],"fixture":"P.8/good-fences/themed"} + ], + "requests": { + "writes": [], + "reads": [ + {"method":"GET","path":"/api/agent","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":[]}}, + {"method":"GET","path":"/api/command","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":[]}}, + {"method":"GET","path":"/api/config","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":[]}, + {"method":"GET","path":"/api/experimental/job","query":{"descendants":["true"],"sessionID":["ses_g"],"status":["running"]},"status":200,"json":{"data":[]}}, + {"method":"GET","path":"/api/experimental/migration/v1","query":{},"status":200,"json":{"status":"completed"}}, + {"method":"GET","path":"/api/experimental/session/ses_g/terminal","query":{},"status":200,"json":{"data":[]}}, + {"method":"GET","path":"/api/form","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode"}},"data":[]}}, + {"method":"GET","path":"/api/fs/list","query":{"location[directory]":["<cwd>"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":[]}}, + {"method":"GET","path":"/api/info","query":{},"status":200,"json":{"version":"test","pid":0,"urls":[],"paths":{"tmp":"/tmp"},"capabilities":{"persistentPty":true}}}, + {"method":"GET","path":"/api/integration","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":[]}}, + {"method":"GET","path":"/api/location","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}}}, + {"method":"GET","path":"/api/mcp","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":[]}}, + {"method":"GET","path":"/api/mcp/resource","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":{"resources":[],"templates":[]}}}, + {"method":"GET","path":"/api/model","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":[]}}, + {"method":"GET","path":"/api/plugin","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":[]}}, + {"method":"GET","path":"/api/project","query":{},"status":200,"json":[]}, + {"method":"GET","path":"/api/provider","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":[]}}, + {"method":"GET","path":"/api/reference","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode/packages/tui","canonical":"/tmp/opencode/packages/tui"}},"data":[]}}, + {"method":"GET","path":"/api/session","query":{"limit":["200"],"order":["desc"],"parentID":["ses_g"]},"status":200,"json":{"data":[{"id":"ses_g","title":"Show the fences","projectID":"proj_test","cost":0,"tokens":{"input":0,"output":0,"reasoning":0,"cache":{"read":0,"write":0}},"time":{"created":2,"updated":2},"location":{"directory":"/tmp/opencode/packages/tui"}}],"cursor":{}}}, + {"method":"GET","path":"/api/session/active","query":{},"status":200,"json":{"data":{}}}, + {"method":"GET","path":"/api/session/ses_g","query":{},"status":200,"json":{"data":{"id":"ses_g","title":"Show the fences","projectID":"proj_test","cost":0,"tokens":{"input":0,"output":0,"reasoning":0,"cache":{"read":0,"write":0}},"time":{"created":2,"updated":2},"location":{"directory":"/tmp/opencode/packages/tui"}}}}, + {"method":"GET","path":"/api/session/ses_g/form","query":{},"status":200,"json":{"data":[]}}, + {"method":"GET","path":"/api/session/ses_g/inbox","query":{},"status":200,"json":{"data":[]}}, + {"method":"GET","path":"/api/session/ses_g/message","query":{"limit":["20"],"order":["desc"]},"status":200,"json":{"data":[{"id":"msg_2","type":"assistant","agent":"build","model":{"providerID":"provider","id":"model"},"content":[{"type":"text","text":"Here is the code:\n\n```ts\nconst answer = 42\nconsole.log(answer)\n```\n\nA plain fence:\n\n```\nno language here\n```\n\nAnd the math:\n\n```latex\nE = mc^2\n```\n"}],"finish":"stop","time":{"created":2000,"completed":2001}},{"id":"msg_1","type":"user","text":"Show me the fences","time":{"created":1000}}],"cursor":{}}}, + {"method":"GET","path":"/api/session/ses_g/permission","query":{},"status":200,"json":{"data":[]}}, + {"method":"GET","path":"/api/shell","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":[]}}, + {"method":"GET","path":"/api/skill","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":[]}}, + {"method":"GET","path":"/api/vcs","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":{"branch":{"current":"main","default":"main"}}}}, + {"method":"POST","path":"/api/rpc/opencode.goal/get","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"body":{"input":{"sessionID":"ses_g"}},"status":200,"json":{"output":null}} + ] + } +} diff --git a/packages/cli-rs/parity/fixtures/P.8/good-fences/settled.json b/packages/cli-rs/parity/fixtures/P.8/good-fences/settled.json new file mode 100644 index 000000000000..320c9a17014c --- /dev/null +++ b/packages/cli-rs/parity/fixtures/P.8/good-fences/settled.json @@ -0,0 +1,42 @@ +{"width":120,"height":40,"styles":["#ffffffff #202020ff 0","#ffffffff #202020ff 1","#808080ff #080808ff 0","#ffffffff #080808ff 0","#7699feff #141414ff 0","#ffffffff #141414ff 0","#eeeeeeff #080808ff 0","#808080ff #141414ff 0","#9d7cd8ff #080808ff 4","#e06c75ff #080808ff 0","#56b6c2ff #080808ff 0","#f5a742ff #080808ff 0","#ef6c6cff #080808ff 0","#7699feff #080808ff 0","#484848ff #080808ff 0","#202020ff #080808ff 0"],"lines":[ +[" Show the fences + ",[[0,3],[1,15],[0,14],[2,3],[3,85]]], +[" ",[[3,120]]], +[" ┃ ",[[3,2],[4,1],[5,115],[3,2]]], +[" ┃ Show me the fences ",[[3,2],[4,1],[5,115],[3,2]]], +[" ┃ ",[[3,2],[4,1],[5,115],[3,2]]], +[" ",[[3,120]]], +[" Here is the code: ",[[3,5],[6,17],[3,98]]], +[" ",[[3,120]]], +[" ts ",[[3,5],[5,2],[7,2],[5,109],[3,2]]], +[" const answer = 42 ",[[3,5],[5,2],[8,5],[3,1],[9,6],[3,1],[10,1],[3,1],[11,2],[5,94],[3,2]]], +[" console.log(answer) ",[[3,5],[5,2],[12,7],[10,1],[9,3],[6,1],[9,6],[6,1],[5,92],[3,2]]], +[" ",[[3,120]]], +[" A plain fence: ",[[3,5],[6,14],[3,101]]], +[" ",[[3,120]]], +[" no language here ",[[3,5],[6,16],[3,99]]], +[" ",[[3,120]]], +[" And the math: ",[[3,5],[6,13],[3,102]]], +[" ",[[3,120]]], +[" latex ",[[3,5],[5,2],[7,5],[5,106],[3,2]]], +[" E = mc^2 ",[[3,5],[5,2],[6,8],[5,103],[3,2]]], +[" ",[[3,120]]], +[" Build · provider/model · 1.0s ",[[3,5],[13,5],[2,24],[3,86]]], +[" ",[[3,120]]], +[" ",[[3,120]]], +[" ",[[3,120]]], +[" ",[[3,120]]], +[" ",[[3,120]]], +[" ",[[3,120]]], +[" ",[[3,120]]], +[" ",[[3,120]]], +[" ",[[3,120]]], +[" ",[[3,120]]], +[" ",[[3,120]]], +[" ┃ ",[[3,2],[14,1],[0,115],[3,2]]], +[" ┃ ",[[3,2],[14,1],[0,115],[3,2]]], +[" ┃ ",[[3,2],[14,1],[0,115],[3,2]]], +[" ┃ ",[[3,2],[14,1],[0,115],[3,2]]], +[" ╹▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀ ",[[3,2],[14,1],[15,115],[3,2]]], +[" /tmp/opencode/packages/tui:main shift+tab agents ctrl+p commands ",[[3,2],[2,31],[3,62],[2,6],[3,9],[2,8],[3,2]]], +[" ",[[3,120]]] +]} diff --git a/packages/cli-rs/parity/fixtures/P.8/good-fences/slash.json b/packages/cli-rs/parity/fixtures/P.8/good-fences/slash.json new file mode 100644 index 000000000000..ba7cf2ec3156 --- /dev/null +++ b/packages/cli-rs/parity/fixtures/P.8/good-fences/slash.json @@ -0,0 +1,42 @@ +{"width":120,"height":40,"styles":["#ffffffff #202020ff 0","#ffffffff #202020ff 1","#808080ff #080808ff 0","#ffffffff #080808ff 0","#7699feff #141414ff 0","#ffffffff #141414ff 0","#eeeeeeff #080808ff 0","#808080ff #141414ff 0","#9d7cd8ff #080808ff 4","#e06c75ff #080808ff 0","#56b6c2ff #080808ff 0","#f5a742ff #080808ff 0","#ef6c6cff #080808ff 0","#ef6c6cff #141414ff 0","#7fd88fff #141414ff 0","#7699feff #080808ff 0","#ffffffff #23344bff 0","#484848ff #080808ff 0","#202020ff #080808ff 0"],"lines":[ +[" Show the fences + ",[[0,3],[1,15],[0,14],[2,3],[3,85]]], +[" ",[[3,120]]], +[" ┃ ",[[3,2],[4,1],[5,115],[3,2]]], +[" ┃ Show me the fences ",[[3,2],[4,1],[5,115],[3,2]]], +[" ┃ ",[[3,2],[4,1],[5,115],[3,2]]], +[" ",[[3,120]]], +[" Here is the code: ",[[3,5],[6,17],[3,98]]], +[" ",[[3,120]]], +[" ts ",[[3,5],[5,2],[7,2],[5,109],[3,2]]], +[" const answer = 42 ",[[3,5],[5,2],[8,5],[3,1],[9,6],[3,1],[10,1],[3,1],[11,2],[5,94],[3,2]]], +[" console.log(answer) ",[[3,5],[5,2],[12,7],[10,1],[9,3],[6,1],[9,6],[6,1],[5,92],[3,2]]], +[" ",[[3,120]]], +[" A plain fence: ",[[3,5],[6,14],[3,101]]], +[" ",[[3,120]]], +[" no language here ",[[3,5],[6,16],[3,99]]], +[" ",[[3,120]]], +[" And the math: ",[[3,5],[6,13],[3,102]]], +[" ",[[3,120]]], +[" latex ",[[3,5],[5,2],[7,5],[5,106],[3,2]]], +[" E = mc^2 ",[[3,5],[5,2],[6,8],[5,103],[3,2]]], +[" ",[[3,120]]], +[" One more: ",[[3,5],[6,9],[3,106]]], +[" ",[[3,120]]], +[" py ",[[3,5],[5,2],[7,2],[5,109],[3,2]]], +[" print('streaming') ",[[3,5],[5,2],[13,5],[5,1],[14,11],[5,94],[3,2]]], +[" print('done') ",[[3,5],[5,2],[13,5],[5,1],[14,6],[5,99],[3,2]]], +[" ",[[3,120]]], +[" That is all. ",[[3,5],[6,12],[3,103]]], +[" ",[[3,120]]], +[" Build · provider/model · 1.0s ",[[3,5],[15,5],[2,24],[3,86]]], +[" ",[[3,120]]], +[" ",[[3,120]]], +[" ┃ /themes Switch theme ┃ ",[[3,2],[15,1],[16,114],[17,1],[3,2]]], +[" ┃ ",[[3,2],[17,1],[0,115],[3,2]]], +[" ┃ /themes ",[[3,2],[17,1],[0,115],[3,2]]], +[" ┃ ",[[3,2],[17,1],[0,115],[3,2]]], +[" ┃ ",[[3,2],[17,1],[0,115],[3,2]]], +[" ╹▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀ ",[[3,2],[17,1],[18,115],[3,2]]], +[" /tmp/opencode/packages/tui:main shift+tab agents ctrl+p commands ",[[3,2],[2,31],[3,62],[2,6],[3,9],[2,8],[3,2]]], +[" ",[[3,120]]] +]} diff --git a/packages/cli-rs/parity/fixtures/P.8/good-fences/streamed.json b/packages/cli-rs/parity/fixtures/P.8/good-fences/streamed.json new file mode 100644 index 000000000000..39762e788b32 --- /dev/null +++ b/packages/cli-rs/parity/fixtures/P.8/good-fences/streamed.json @@ -0,0 +1,42 @@ +{"width":120,"height":40,"styles":["#ffffffff #202020ff 0","#ffffffff #202020ff 1","#808080ff #080808ff 0","#ffffffff #080808ff 0","#7699feff #141414ff 0","#ffffffff #141414ff 0","#eeeeeeff #080808ff 0","#808080ff #141414ff 0","#9d7cd8ff #080808ff 4","#e06c75ff #080808ff 0","#56b6c2ff #080808ff 0","#f5a742ff #080808ff 0","#ef6c6cff #080808ff 0","#ef6c6cff #141414ff 0","#7fd88fff #141414ff 0","#7699feff #080808ff 0","#484848ff #080808ff 0","#202020ff #080808ff 0"],"lines":[ +[" Show the fences + ",[[0,3],[1,15],[0,14],[2,3],[3,85]]], +[" ",[[3,120]]], +[" ┃ ",[[3,2],[4,1],[5,115],[3,2]]], +[" ┃ Show me the fences ",[[3,2],[4,1],[5,115],[3,2]]], +[" ┃ ",[[3,2],[4,1],[5,115],[3,2]]], +[" ",[[3,120]]], +[" Here is the code: ",[[3,5],[6,17],[3,98]]], +[" ",[[3,120]]], +[" ts ",[[3,5],[5,2],[7,2],[5,109],[3,2]]], +[" const answer = 42 ",[[3,5],[5,2],[8,5],[3,1],[9,6],[3,1],[10,1],[3,1],[11,2],[5,94],[3,2]]], +[" console.log(answer) ",[[3,5],[5,2],[12,7],[10,1],[9,3],[6,1],[9,6],[6,1],[5,92],[3,2]]], +[" ",[[3,120]]], +[" A plain fence: ",[[3,5],[6,14],[3,101]]], +[" ",[[3,120]]], +[" no language here ",[[3,5],[6,16],[3,99]]], +[" ",[[3,120]]], +[" And the math: ",[[3,5],[6,13],[3,102]]], +[" ",[[3,120]]], +[" latex ",[[3,5],[5,2],[7,5],[5,106],[3,2]]], +[" E = mc^2 ",[[3,5],[5,2],[6,8],[5,103],[3,2]]], +[" ",[[3,120]]], +[" One more: ",[[3,5],[6,9],[3,106]]], +[" ",[[3,120]]], +[" py ",[[3,5],[5,2],[7,2],[5,109],[3,2]]], +[" print('streaming') ",[[3,5],[5,2],[13,5],[5,1],[14,11],[5,94],[3,2]]], +[" print('done') ",[[3,5],[5,2],[13,5],[5,1],[14,6],[5,99],[3,2]]], +[" ",[[3,120]]], +[" That is all. ",[[3,5],[6,12],[3,103]]], +[" ",[[3,120]]], +[" Build · provider/model · 1.0s ",[[3,5],[15,5],[2,24],[3,86]]], +[" ",[[3,120]]], +[" ",[[3,120]]], +[" ",[[3,120]]], +[" ┃ ",[[3,2],[16,1],[0,115],[3,2]]], +[" ┃ ",[[3,2],[16,1],[0,115],[3,2]]], +[" ┃ ",[[3,2],[16,1],[0,115],[3,2]]], +[" ┃ ",[[3,2],[16,1],[0,115],[3,2]]], +[" ╹▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀ ",[[3,2],[16,1],[17,115],[3,2]]], +[" /tmp/opencode/packages/tui:main shift+tab agents ctrl+p commands ",[[3,2],[2,31],[3,62],[2,6],[3,9],[2,8],[3,2]]], +[" ",[[3,120]]] +]} diff --git a/packages/cli-rs/parity/fixtures/P.8/good-fences/streaming.json b/packages/cli-rs/parity/fixtures/P.8/good-fences/streaming.json new file mode 100644 index 000000000000..04cc2b746f5b --- /dev/null +++ b/packages/cli-rs/parity/fixtures/P.8/good-fences/streaming.json @@ -0,0 +1,42 @@ +{"width":120,"height":40,"styles":["#ffffffff #202020ff 0","#ffffffff #202020ff 1","#808080ff #080808ff 0","#ffffffff #080808ff 0","#7699feff #141414ff 0","#ffffffff #141414ff 0","#eeeeeeff #080808ff 0","#808080ff #141414ff 0","#9d7cd8ff #080808ff 4","#e06c75ff #080808ff 0","#56b6c2ff #080808ff 0","#f5a742ff #080808ff 0","#ef6c6cff #080808ff 0","#ef6c6cff #141414ff 0","#7fd88fff #141414ff 0","#7699feff #080808ff 0","#484848ff #080808ff 0","#202020ff #080808ff 0"],"lines":[ +[" Show the fences + ",[[0,3],[1,15],[0,14],[2,3],[3,85]]], +[" ",[[3,120]]], +[" ┃ ",[[3,2],[4,1],[5,115],[3,2]]], +[" ┃ Show me the fences ",[[3,2],[4,1],[5,115],[3,2]]], +[" ┃ ",[[3,2],[4,1],[5,115],[3,2]]], +[" ",[[3,120]]], +[" Here is the code: ",[[3,5],[6,17],[3,98]]], +[" ",[[3,120]]], +[" ts ",[[3,5],[5,2],[7,2],[5,109],[3,2]]], +[" const answer = 42 ",[[3,5],[5,2],[8,5],[3,1],[9,6],[3,1],[10,1],[3,1],[11,2],[5,94],[3,2]]], +[" console.log(answer) ",[[3,5],[5,2],[12,7],[10,1],[9,3],[6,1],[9,6],[6,1],[5,92],[3,2]]], +[" ",[[3,120]]], +[" A plain fence: ",[[3,5],[6,14],[3,101]]], +[" ",[[3,120]]], +[" no language here ",[[3,5],[6,16],[3,99]]], +[" ",[[3,120]]], +[" And the math: ",[[3,5],[6,13],[3,102]]], +[" ",[[3,120]]], +[" latex ",[[3,5],[5,2],[7,5],[5,106],[3,2]]], +[" E = mc^2 ",[[3,5],[5,2],[6,8],[5,103],[3,2]]], +[" ",[[3,120]]], +[" One more: ",[[3,5],[6,9],[3,106]]], +[" ",[[3,120]]], +[" py ",[[3,5],[5,2],[7,2],[5,109],[3,2]]], +[" print('streaming') ",[[3,5],[5,2],[13,5],[5,1],[14,11],[5,94],[3,2]]], +[" ",[[3,120]]], +[" Build · provider/model · 1.0s ",[[3,5],[15,5],[2,24],[3,86]]], +[" ",[[3,120]]], +[" ",[[3,120]]], +[" ",[[3,120]]], +[" ",[[3,120]]], +[" ",[[3,120]]], +[" ",[[3,120]]], +[" ┃ ",[[3,2],[16,1],[0,115],[3,2]]], +[" ┃ ",[[3,2],[16,1],[0,115],[3,2]]], +[" ┃ ",[[3,2],[16,1],[0,115],[3,2]]], +[" ┃ ",[[3,2],[16,1],[0,115],[3,2]]], +[" ╹▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀ ",[[3,2],[16,1],[17,115],[3,2]]], +[" /tmp/opencode/packages/tui:main shift+tab agents ctrl+p commands ",[[3,2],[2,31],[3,62],[2,6],[3,9],[2,8],[3,2]]], +[" ",[[3,120]]] +]} diff --git a/packages/cli-rs/parity/fixtures/P.8/good-fences/themed.json b/packages/cli-rs/parity/fixtures/P.8/good-fences/themed.json new file mode 100644 index 000000000000..44798ddc3469 --- /dev/null +++ b/packages/cli-rs/parity/fixtures/P.8/good-fences/themed.json @@ -0,0 +1,42 @@ +{"width":120,"height":40,"styles":["#ffffffff #2a2b3cff 0","#c8d3f5ff #2a2b3cff 1","#828bb8ff #1a1b26ff 0","#ffffffff #1a1b26ff 0","#c099ffff #202230ff 0","#ffffffff #202230ff 0","#c8d3f5ff #202230ff 0","#c8d3f5ff #1a1b26ff 0","#828bb8ff #202230ff 0","#c099ffff #1a1b26ff 4","#ff757fff #1a1b26ff 0","#86e1fcff #1a1b26ff 0","#ff966cff #1a1b26ff 0","#c3e88dff #1a1b26ff 0","#c099ffff #1a1b26ff 0","#737aa2ff #1a1b26ff 0","#2a2b3cff #1a1b26ff 0"],"lines":[ +[" Show the fences + ",[[0,3],[1,15],[0,14],[2,3],[3,85]]], +[" ",[[3,120]]], +[" ┃ ",[[3,2],[4,1],[5,115],[3,2]]], +[" ┃ Show me the fences ",[[3,2],[4,1],[5,2],[6,18],[5,95],[3,2]]], +[" ┃ ",[[3,2],[4,1],[5,115],[3,2]]], +[" ",[[3,120]]], +[" Here is the code: ",[[3,5],[7,17],[3,98]]], +[" ",[[3,120]]], +[" ts ",[[3,5],[5,2],[8,2],[5,109],[3,2]]], +[" const answer = 42 ",[[3,5],[5,2],[9,5],[7,1],[10,6],[7,1],[11,1],[7,1],[12,2],[5,94],[3,2]]], +[" console.log(answer) ",[[3,5],[5,2],[10,7],[11,1],[10,3],[7,1],[10,6],[7,1],[5,92],[3,2]]], +[" ",[[3,120]]], +[" A plain fence: ",[[3,5],[7,14],[3,101]]], +[" ",[[3,120]]], +[" no language here ",[[3,5],[7,16],[3,99]]], +[" ",[[3,120]]], +[" And the math: ",[[3,5],[7,13],[3,102]]], +[" ",[[3,120]]], +[" latex ",[[3,5],[5,2],[8,5],[5,106],[3,2]]], +[" E = mc^2 ",[[3,5],[5,2],[7,8],[5,103],[3,2]]], +[" ",[[3,120]]], +[" One more: ",[[3,5],[7,9],[3,106]]], +[" ",[[3,120]]], +[" py ",[[3,5],[5,2],[8,2],[5,109],[3,2]]], +[" print('streaming') ",[[3,5],[5,2],[10,5],[7,1],[13,11],[7,1],[5,93],[3,2]]], +[" print('done') ",[[3,5],[5,2],[10,5],[7,1],[13,6],[7,1],[5,98],[3,2]]], +[" ",[[3,120]]], +[" That is all. ",[[3,5],[7,12],[3,103]]], +[" ",[[3,120]]], +[" Build · provider/model · 1.0s ",[[3,5],[14,5],[2,24],[3,86]]], +[" ",[[3,120]]], +[" ",[[3,120]]], +[" ",[[3,120]]], +[" ┃ ",[[3,2],[15,1],[0,115],[3,2]]], +[" ┃ ",[[3,2],[15,1],[0,115],[3,2]]], +[" ┃ ",[[3,2],[15,1],[0,115],[3,2]]], +[" ┃ ",[[3,2],[15,1],[0,115],[3,2]]], +[" ╹▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀ ",[[3,2],[15,1],[16,115],[3,2]]], +[" /tmp/opencode/packages/tui:main shift+tab agents ctrl+p commands ",[[3,2],[2,31],[3,52],[7,10],[2,6],[3,2],[7,7],[2,8],[3,2]]], +[" ",[[3,120]]] +]} diff --git a/packages/cli-rs/parity/fixtures/P.8/host-keys.app.json b/packages/cli-rs/parity/fixtures/P.8/host-keys.app.json new file mode 100644 index 000000000000..041112d59276 --- /dev/null +++ b/packages/cli-rs/parity/fixtures/P.8/host-keys.app.json @@ -0,0 +1,71 @@ +{ + "scenario": "P.8/host-keys", + "width": 100, + "height": 30, + "directory": "/tmp/opencode/packages/tui", + "config": { + "animations": false, + "experimental": {"new-designs":true}, + "theme": {"name":"opencode"} + }, + "args": { + "sessionID": "ses_d" + }, + "routes": [ + {"path":"/api/session/ses_d","json":{"data":{"id":"ses_d","title":"Run it","projectID":"proj_test","cost":0,"tokens":{"input":0,"output":0,"reasoning":0,"cache":{"read":0,"write":0}},"time":{"created":2,"updated":2},"location":{"directory":"/tmp/opencode/packages/tui"}}}}, + {"path":"/api/session","json":{"data":[{"id":"ses_d","title":"Run it","projectID":"proj_test","cost":0,"tokens":{"input":0,"output":0,"reasoning":0,"cache":{"read":0,"write":0}},"time":{"created":2,"updated":2},"location":{"directory":"/tmp/opencode/packages/tui"}}],"cursor":{}}}, + {"path":"/api/session/ses_d/message","json":{"data":[{"id":"msg_2","type":"assistant","agent":"build","model":{"providerID":"provider","id":"model"},"content":[{"type":"text","text":"Ran."}],"finish":"stop","time":{"created":2000,"completed":2001}},{"id":"msg_1","type":"user","text":"Run it","time":{"created":1000}}],"cursor":{}}}, + {"path":"/api/session/ses_d/inbox","json":{"data":[]}}, + {"method":"POST","path":"/api/session/ses_d/prompt","json":{"data":{"id":"inb_1"}}}, + {"method":"POST","path":"/api/session/ses_d/agent","status":204}, + {"method":"POST","path":"/api/session/ses_d/model","status":204}, + {"path":"/api/agent","json":{"location":{"directory":"/tmp/opencode/packages/tui"},"data":[{"id":"build","name":"build","mode":"primary","hidden":false,"permissions":[],"request":{"settings":{},"headers":{},"body":{}}}]}}, + {"path":"/api/model","json":{"location":{"directory":"/tmp/opencode/packages/tui"},"data":[{"id":"model","modelID":"model","providerID":"provider","name":"Model","capabilities":{"tools":true,"input":["text"],"output":["text"]},"variants":[],"time":{"released":0},"cost":[{"input":3,"output":15,"cache":{"read":0.3,"write":3.75}}],"status":"active","enabled":true,"limit":{"context":200000,"output":32000}}]}} + ], + "steps": [ + {"checkpoint":"session","until":"Ran.","fixture":"P.8/host-keys/session"}, + {"type":"refresh"}, + {"keys":["space"]}, + {"type":"rr"}, + {"checkpoint":"typed","until":"refresh rr","fixture":"P.8/host-keys/typed"}, + {"keys":["enter"]} + ], + "requests": { + "writes": [ + {"method":"POST","path":"/api/session/ses_d/agent","query":{},"body":{"agent":"build"},"status":204}, + {"method":"POST","path":"/api/session/ses_d/model","query":{},"body":{"model":{"providerID":"provider","id":"model"}},"status":204}, + {"method":"POST","path":"/api/session/ses_d/prompt","query":{},"body":{"id":"<msg>","text":"refresh rr","files":[],"agents":[],"delivery":"steer"},"status":200,"json":{"data":{"id":"inb_1"}}} + ], + "reads": [ + {"method":"GET","path":"/api/agent","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui"},"data":[{"id":"build","name":"build","mode":"primary","hidden":false,"permissions":[],"request":{"settings":{},"headers":{},"body":{}}}]}}, + {"method":"GET","path":"/api/command","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":[]}}, + {"method":"GET","path":"/api/config","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":[]}, + {"method":"GET","path":"/api/experimental/job","query":{"descendants":["true"],"sessionID":["ses_d"],"status":["running"]},"status":200,"json":{"data":[]}}, + {"method":"GET","path":"/api/experimental/migration/v1","query":{},"status":200,"json":{"status":"completed"}}, + {"method":"GET","path":"/api/experimental/session/ses_d/terminal","query":{},"status":200,"json":{"data":[]}}, + {"method":"GET","path":"/api/form","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode"}},"data":[]}}, + {"method":"GET","path":"/api/fs/list","query":{"location[directory]":["<cwd>"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":[]}}, + {"method":"GET","path":"/api/info","query":{},"status":200,"json":{"version":"test","pid":0,"urls":[],"paths":{"tmp":"/tmp"},"capabilities":{"persistentPty":true}}}, + {"method":"GET","path":"/api/integration","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":[]}}, + {"method":"GET","path":"/api/location","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}}}, + {"method":"GET","path":"/api/mcp","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":[]}}, + {"method":"GET","path":"/api/mcp/resource","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":{"resources":[],"templates":[]}}}, + {"method":"GET","path":"/api/model","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui"},"data":[{"id":"model","modelID":"model","providerID":"provider","name":"Model","capabilities":{"tools":true,"input":["text"],"output":["text"]},"variants":[],"time":{"released":0},"cost":[{"input":3,"output":15,"cache":{"read":0.3,"write":3.75}}],"status":"active","enabled":true,"limit":{"context":200000,"output":32000}}]}}, + {"method":"GET","path":"/api/plugin","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":[]}}, + {"method":"GET","path":"/api/project","query":{},"status":200,"json":[]}, + {"method":"GET","path":"/api/provider","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":[]}}, + {"method":"GET","path":"/api/reference","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode/packages/tui","canonical":"/tmp/opencode/packages/tui"}},"data":[]}}, + {"method":"GET","path":"/api/session","query":{"limit":["200"],"order":["desc"],"parentID":["ses_d"]},"status":200,"json":{"data":[{"id":"ses_d","title":"Run it","projectID":"proj_test","cost":0,"tokens":{"input":0,"output":0,"reasoning":0,"cache":{"read":0,"write":0}},"time":{"created":2,"updated":2},"location":{"directory":"/tmp/opencode/packages/tui"}}],"cursor":{}}}, + {"method":"GET","path":"/api/session/active","query":{},"status":200,"json":{"data":{}}}, + {"method":"GET","path":"/api/session/ses_d","query":{},"status":200,"json":{"data":{"id":"ses_d","title":"Run it","projectID":"proj_test","cost":0,"tokens":{"input":0,"output":0,"reasoning":0,"cache":{"read":0,"write":0}},"time":{"created":2,"updated":2},"location":{"directory":"/tmp/opencode/packages/tui"}}}}, + {"method":"GET","path":"/api/session/ses_d/form","query":{},"status":200,"json":{"data":[]}}, + {"method":"GET","path":"/api/session/ses_d/inbox","query":{},"status":200,"json":{"data":[]}}, + {"method":"GET","path":"/api/session/ses_d/message","query":{"limit":["20"],"order":["desc"]},"status":200,"json":{"data":[{"id":"msg_2","type":"assistant","agent":"build","model":{"providerID":"provider","id":"model"},"content":[{"type":"text","text":"Ran."}],"finish":"stop","time":{"created":2000,"completed":2001}},{"id":"msg_1","type":"user","text":"Run it","time":{"created":1000}}],"cursor":{}}}, + {"method":"GET","path":"/api/session/ses_d/permission","query":{},"status":200,"json":{"data":[]}}, + {"method":"GET","path":"/api/shell","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":[]}}, + {"method":"GET","path":"/api/skill","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":[]}}, + {"method":"GET","path":"/api/vcs","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":{"branch":{"current":"main","default":"main"}}}}, + {"method":"POST","path":"/api/rpc/opencode.goal/get","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"body":{"input":{"sessionID":"ses_d"}},"status":200,"json":{"output":null}} + ] + } +} diff --git a/packages/cli-rs/parity/fixtures/P.8/host-keys/session.json b/packages/cli-rs/parity/fixtures/P.8/host-keys/session.json new file mode 100644 index 000000000000..5003ae583d9f --- /dev/null +++ b/packages/cli-rs/parity/fixtures/P.8/host-keys/session.json @@ -0,0 +1,32 @@ +{"width":100,"height":30,"styles":["#ffffffff #202020ff 0","#ffffffff #202020ff 1","#808080ff #080808ff 0","#ffffffff #080808ff 0","#7699feff #141414ff 0","#ffffffff #141414ff 0","#eeeeeeff #080808ff 0","#7699feff #080808ff 0","#7699feff #202020ff 0","#808080ff #202020ff 0","#202020ff #080808ff 0"],"lines":[ +[" Run it + ",[[0,3],[1,6],[0,23],[2,3],[3,65]]], +[" ",[[3,100]]], +[" ┃ ",[[3,2],[4,1],[5,95],[3,2]]], +[" ┃ Run it ",[[3,2],[4,1],[5,95],[3,2]]], +[" ┃ ",[[3,2],[4,1],[5,95],[3,2]]], +[" ",[[3,100]]], +[" Ran. ",[[3,5],[6,4],[3,91]]], +[" ",[[3,100]]], +[" Build · Model · 1.0s ",[[3,5],[7,5],[2,15],[3,75]]], +[" ",[[3,100]]], +[" ",[[3,100]]], +[" ",[[3,100]]], +[" ",[[3,100]]], +[" ",[[3,100]]], +[" ",[[3,100]]], +[" ",[[3,100]]], +[" ",[[3,100]]], +[" ",[[3,100]]], +[" ",[[3,100]]], +[" ",[[3,100]]], +[" ",[[3,100]]], +[" ",[[3,100]]], +[" ",[[3,100]]], +[" ┃ ",[[3,2],[7,1],[0,95],[3,2]]], +[" ┃ ",[[3,2],[7,1],[0,95],[3,2]]], +[" ┃ ",[[3,2],[7,1],[0,95],[3,2]]], +[" ┃ Build · Model provider ",[[3,2],[7,1],[0,2],[8,5],[0,1],[9,1],[0,7],[9,8],[0,71],[3,2]]], +[" ╹▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀ ",[[3,2],[7,1],[10,95],[3,2]]], +[" /tmp/opencode/packages/tui:main shift+tab agents ctrl+p commands ",[[3,2],[2,31],[3,42],[2,6],[3,9],[2,8],[3,2]]], +[" ",[[3,100]]] +]} diff --git a/packages/cli-rs/parity/fixtures/P.8/host-keys/typed.json b/packages/cli-rs/parity/fixtures/P.8/host-keys/typed.json new file mode 100644 index 000000000000..e5d209346f35 --- /dev/null +++ b/packages/cli-rs/parity/fixtures/P.8/host-keys/typed.json @@ -0,0 +1,32 @@ +{"width":100,"height":30,"styles":["#ffffffff #202020ff 0","#ffffffff #202020ff 1","#808080ff #080808ff 0","#ffffffff #080808ff 0","#7699feff #141414ff 0","#ffffffff #141414ff 0","#eeeeeeff #080808ff 0","#7699feff #080808ff 0","#7699feff #202020ff 0","#808080ff #202020ff 0","#202020ff #080808ff 0"],"lines":[ +[" Run it + ",[[0,3],[1,6],[0,23],[2,3],[3,65]]], +[" ",[[3,100]]], +[" ┃ ",[[3,2],[4,1],[5,95],[3,2]]], +[" ┃ Run it ",[[3,2],[4,1],[5,95],[3,2]]], +[" ┃ ",[[3,2],[4,1],[5,95],[3,2]]], +[" ",[[3,100]]], +[" Ran. ",[[3,5],[6,4],[3,91]]], +[" ",[[3,100]]], +[" Build · Model · 1.0s ",[[3,5],[7,5],[2,15],[3,75]]], +[" ",[[3,100]]], +[" ",[[3,100]]], +[" ",[[3,100]]], +[" ",[[3,100]]], +[" ",[[3,100]]], +[" ",[[3,100]]], +[" ",[[3,100]]], +[" ",[[3,100]]], +[" ",[[3,100]]], +[" ",[[3,100]]], +[" ",[[3,100]]], +[" ",[[3,100]]], +[" ",[[3,100]]], +[" ",[[3,100]]], +[" ┃ ",[[3,2],[7,1],[0,95],[3,2]]], +[" ┃ refresh rr ",[[3,2],[7,1],[0,95],[3,2]]], +[" ┃ ",[[3,2],[7,1],[0,95],[3,2]]], +[" ┃ Build · Model provider ",[[3,2],[7,1],[0,2],[8,5],[0,1],[9,1],[0,7],[9,8],[0,71],[3,2]]], +[" ╹▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀ ",[[3,2],[7,1],[10,95],[3,2]]], +[" /tmp/opencode/packages/tui:main shift+tab agents ctrl+p commands ",[[3,2],[2,31],[3,42],[2,6],[3,9],[2,8],[3,2]]], +[" ",[[3,100]]] +]} diff --git a/packages/cli-rs/parity/fixtures/P.8/linear-keys.app.json b/packages/cli-rs/parity/fixtures/P.8/linear-keys.app.json new file mode 100644 index 000000000000..e1c4aca933d3 --- /dev/null +++ b/packages/cli-rs/parity/fixtures/P.8/linear-keys.app.json @@ -0,0 +1,75 @@ +{ + "scenario": "P.8/linear-keys", + "width": 100, + "height": 30, + "directory": "/tmp/opencode/packages/tui", + "config": { + "plugins": ["./out/npm/node_modules/@joe-broadhead/opencode-linear"], + "animations": false, + "experimental": {"new-designs":true}, + "theme": {"name":"opencode"} + }, + "args": { + "sessionID": "ses_d" + }, + "env": { + "OPENCODE_PARITY_PLUGIN": "npm" + }, + "routes": [ + {"path":"/api/session/ses_d","json":{"data":{"id":"ses_d","title":"Run it","projectID":"proj_test","cost":0,"tokens":{"input":0,"output":0,"reasoning":0,"cache":{"read":0,"write":0}},"time":{"created":2,"updated":2},"location":{"directory":"/tmp/opencode/packages/tui"}}}}, + {"path":"/api/session","json":{"data":[{"id":"ses_d","title":"Run it","projectID":"proj_test","cost":0,"tokens":{"input":0,"output":0,"reasoning":0,"cache":{"read":0,"write":0}},"time":{"created":2,"updated":2},"location":{"directory":"/tmp/opencode/packages/tui"}}],"cursor":{}}}, + {"path":"/api/session/ses_d/message","json":{"data":[{"id":"msg_2","type":"assistant","agent":"build","model":{"providerID":"provider","id":"model"},"content":[{"type":"text","text":"Ran."}],"finish":"stop","time":{"created":2000,"completed":2001}},{"id":"msg_1","type":"user","text":"Run it","time":{"created":1000}}],"cursor":{}}}, + {"path":"/api/session/ses_d/inbox","json":{"data":[]}}, + {"method":"POST","path":"/api/session/ses_d/prompt","json":{"data":{"id":"inb_1"}}}, + {"method":"POST","path":"/api/session/ses_d/agent","status":204}, + {"method":"POST","path":"/api/session/ses_d/model","status":204}, + {"path":"/api/agent","json":{"location":{"directory":"/tmp/opencode/packages/tui"},"data":[{"id":"build","name":"build","mode":"primary","hidden":false,"permissions":[],"request":{"settings":{},"headers":{},"body":{}}}]}}, + {"path":"/api/model","json":{"location":{"directory":"/tmp/opencode/packages/tui"},"data":[{"id":"model","modelID":"model","providerID":"provider","name":"Model","capabilities":{"tools":true,"input":["text"],"output":["text"]},"variants":[],"time":{"released":0},"cost":[{"input":3,"output":15,"cache":{"read":0.3,"write":3.75}}],"status":"active","enabled":true,"limit":{"context":200000,"output":32000}}]}} + ], + "steps": [ + {"checkpoint":"session","until":"Ran.","fixture":"P.8/linear-keys/session"}, + {"type":"refresh"}, + {"keys":["space"]}, + {"type":"rr"}, + {"checkpoint":"typed","until":"refresh rr","fixture":"P.8/linear-keys/typed"}, + {"keys":["enter"]} + ], + "requests": { + "writes": [ + {"method":"POST","path":"/api/session/ses_d/agent","query":{},"body":{"agent":"build"},"status":204}, + {"method":"POST","path":"/api/session/ses_d/model","query":{},"body":{"model":{"providerID":"provider","id":"model"}},"status":204}, + {"method":"POST","path":"/api/session/ses_d/prompt","query":{},"body":{"id":"<msg>","text":"refresh rr","files":[],"agents":[],"delivery":"steer"},"status":200,"json":{"data":{"id":"inb_1"}}} + ], + "reads": [ + {"method":"GET","path":"/api/agent","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui"},"data":[{"id":"build","name":"build","mode":"primary","hidden":false,"permissions":[],"request":{"settings":{},"headers":{},"body":{}}}]}}, + {"method":"GET","path":"/api/command","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":[]}}, + {"method":"GET","path":"/api/config","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":[]}, + {"method":"GET","path":"/api/experimental/job","query":{"descendants":["true"],"sessionID":["ses_d"],"status":["running"]},"status":200,"json":{"data":[]}}, + {"method":"GET","path":"/api/experimental/migration/v1","query":{},"status":200,"json":{"status":"completed"}}, + {"method":"GET","path":"/api/experimental/session/ses_d/terminal","query":{},"status":200,"json":{"data":[]}}, + {"method":"GET","path":"/api/form","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode"}},"data":[]}}, + {"method":"GET","path":"/api/fs/list","query":{"location[directory]":["<cwd>"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":[]}}, + {"method":"GET","path":"/api/info","query":{},"status":200,"json":{"version":"test","pid":0,"urls":[],"paths":{"tmp":"/tmp"},"capabilities":{"persistentPty":true}}}, + {"method":"GET","path":"/api/integration","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":[]}}, + {"method":"GET","path":"/api/location","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}}}, + {"method":"GET","path":"/api/mcp","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":[]}}, + {"method":"GET","path":"/api/mcp/resource","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":{"resources":[],"templates":[]}}}, + {"method":"GET","path":"/api/model","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui"},"data":[{"id":"model","modelID":"model","providerID":"provider","name":"Model","capabilities":{"tools":true,"input":["text"],"output":["text"]},"variants":[],"time":{"released":0},"cost":[{"input":3,"output":15,"cache":{"read":0.3,"write":3.75}}],"status":"active","enabled":true,"limit":{"context":200000,"output":32000}}]}}, + {"method":"GET","path":"/api/plugin","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":[]}}, + {"method":"GET","path":"/api/project","query":{},"status":200,"json":[]}, + {"method":"GET","path":"/api/provider","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":[]}}, + {"method":"GET","path":"/api/reference","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode/packages/tui","canonical":"/tmp/opencode/packages/tui"}},"data":[]}}, + {"method":"GET","path":"/api/session","query":{"limit":["200"],"order":["desc"],"parentID":["ses_d"]},"status":200,"json":{"data":[{"id":"ses_d","title":"Run it","projectID":"proj_test","cost":0,"tokens":{"input":0,"output":0,"reasoning":0,"cache":{"read":0,"write":0}},"time":{"created":2,"updated":2},"location":{"directory":"/tmp/opencode/packages/tui"}}],"cursor":{}}}, + {"method":"GET","path":"/api/session/active","query":{},"status":200,"json":{"data":{}}}, + {"method":"GET","path":"/api/session/ses_d","query":{},"status":200,"json":{"data":{"id":"ses_d","title":"Run it","projectID":"proj_test","cost":0,"tokens":{"input":0,"output":0,"reasoning":0,"cache":{"read":0,"write":0}},"time":{"created":2,"updated":2},"location":{"directory":"/tmp/opencode/packages/tui"}}}}, + {"method":"GET","path":"/api/session/ses_d/form","query":{},"status":200,"json":{"data":[]}}, + {"method":"GET","path":"/api/session/ses_d/inbox","query":{},"status":200,"json":{"data":[]}}, + {"method":"GET","path":"/api/session/ses_d/message","query":{"limit":["20"],"order":["desc"]},"status":200,"json":{"data":[{"id":"msg_2","type":"assistant","agent":"build","model":{"providerID":"provider","id":"model"},"content":[{"type":"text","text":"Ran."}],"finish":"stop","time":{"created":2000,"completed":2001}},{"id":"msg_1","type":"user","text":"Run it","time":{"created":1000}}],"cursor":{}}}, + {"method":"GET","path":"/api/session/ses_d/permission","query":{},"status":200,"json":{"data":[]}}, + {"method":"GET","path":"/api/shell","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":[]}}, + {"method":"GET","path":"/api/skill","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":[]}}, + {"method":"GET","path":"/api/vcs","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":{"branch":{"current":"main","default":"main"}}}}, + {"method":"POST","path":"/api/rpc/opencode.goal/get","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"body":{"input":{"sessionID":"ses_d"}},"status":200,"json":{"output":null}} + ] + } +} diff --git a/packages/cli-rs/parity/fixtures/P.8/linear-keys/session.json b/packages/cli-rs/parity/fixtures/P.8/linear-keys/session.json new file mode 100644 index 000000000000..5003ae583d9f --- /dev/null +++ b/packages/cli-rs/parity/fixtures/P.8/linear-keys/session.json @@ -0,0 +1,32 @@ +{"width":100,"height":30,"styles":["#ffffffff #202020ff 0","#ffffffff #202020ff 1","#808080ff #080808ff 0","#ffffffff #080808ff 0","#7699feff #141414ff 0","#ffffffff #141414ff 0","#eeeeeeff #080808ff 0","#7699feff #080808ff 0","#7699feff #202020ff 0","#808080ff #202020ff 0","#202020ff #080808ff 0"],"lines":[ +[" Run it + ",[[0,3],[1,6],[0,23],[2,3],[3,65]]], +[" ",[[3,100]]], +[" ┃ ",[[3,2],[4,1],[5,95],[3,2]]], +[" ┃ Run it ",[[3,2],[4,1],[5,95],[3,2]]], +[" ┃ ",[[3,2],[4,1],[5,95],[3,2]]], +[" ",[[3,100]]], +[" Ran. ",[[3,5],[6,4],[3,91]]], +[" ",[[3,100]]], +[" Build · Model · 1.0s ",[[3,5],[7,5],[2,15],[3,75]]], +[" ",[[3,100]]], +[" ",[[3,100]]], +[" ",[[3,100]]], +[" ",[[3,100]]], +[" ",[[3,100]]], +[" ",[[3,100]]], +[" ",[[3,100]]], +[" ",[[3,100]]], +[" ",[[3,100]]], +[" ",[[3,100]]], +[" ",[[3,100]]], +[" ",[[3,100]]], +[" ",[[3,100]]], +[" ",[[3,100]]], +[" ┃ ",[[3,2],[7,1],[0,95],[3,2]]], +[" ┃ ",[[3,2],[7,1],[0,95],[3,2]]], +[" ┃ ",[[3,2],[7,1],[0,95],[3,2]]], +[" ┃ Build · Model provider ",[[3,2],[7,1],[0,2],[8,5],[0,1],[9,1],[0,7],[9,8],[0,71],[3,2]]], +[" ╹▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀ ",[[3,2],[7,1],[10,95],[3,2]]], +[" /tmp/opencode/packages/tui:main shift+tab agents ctrl+p commands ",[[3,2],[2,31],[3,42],[2,6],[3,9],[2,8],[3,2]]], +[" ",[[3,100]]] +]} diff --git a/packages/cli-rs/parity/fixtures/P.8/linear-keys/typed.json b/packages/cli-rs/parity/fixtures/P.8/linear-keys/typed.json new file mode 100644 index 000000000000..e5d209346f35 --- /dev/null +++ b/packages/cli-rs/parity/fixtures/P.8/linear-keys/typed.json @@ -0,0 +1,32 @@ +{"width":100,"height":30,"styles":["#ffffffff #202020ff 0","#ffffffff #202020ff 1","#808080ff #080808ff 0","#ffffffff #080808ff 0","#7699feff #141414ff 0","#ffffffff #141414ff 0","#eeeeeeff #080808ff 0","#7699feff #080808ff 0","#7699feff #202020ff 0","#808080ff #202020ff 0","#202020ff #080808ff 0"],"lines":[ +[" Run it + ",[[0,3],[1,6],[0,23],[2,3],[3,65]]], +[" ",[[3,100]]], +[" ┃ ",[[3,2],[4,1],[5,95],[3,2]]], +[" ┃ Run it ",[[3,2],[4,1],[5,95],[3,2]]], +[" ┃ ",[[3,2],[4,1],[5,95],[3,2]]], +[" ",[[3,100]]], +[" Ran. ",[[3,5],[6,4],[3,91]]], +[" ",[[3,100]]], +[" Build · Model · 1.0s ",[[3,5],[7,5],[2,15],[3,75]]], +[" ",[[3,100]]], +[" ",[[3,100]]], +[" ",[[3,100]]], +[" ",[[3,100]]], +[" ",[[3,100]]], +[" ",[[3,100]]], +[" ",[[3,100]]], +[" ",[[3,100]]], +[" ",[[3,100]]], +[" ",[[3,100]]], +[" ",[[3,100]]], +[" ",[[3,100]]], +[" ",[[3,100]]], +[" ",[[3,100]]], +[" ┃ ",[[3,2],[7,1],[0,95],[3,2]]], +[" ┃ refresh rr ",[[3,2],[7,1],[0,95],[3,2]]], +[" ┃ ",[[3,2],[7,1],[0,95],[3,2]]], +[" ┃ Build · Model provider ",[[3,2],[7,1],[0,2],[8,5],[0,1],[9,1],[0,7],[9,8],[0,71],[3,2]]], +[" ╹▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀ ",[[3,2],[7,1],[10,95],[3,2]]], +[" /tmp/opencode/packages/tui:main shift+tab agents ctrl+p commands ",[[3,2],[2,31],[3,42],[2,6],[3,9],[2,8],[3,2]]], +[" ",[[3,100]]] +]} diff --git a/packages/cli-rs/parity/fixtures/P.8/navigator.app.json b/packages/cli-rs/parity/fixtures/P.8/navigator.app.json new file mode 100644 index 000000000000..a7a83df9d51b --- /dev/null +++ b/packages/cli-rs/parity/fixtures/P.8/navigator.app.json @@ -0,0 +1,64 @@ +{ + "scenario": "P.8/navigator", + "width": 140, + "height": 34, + "directory": "/tmp/opencode/packages/tui", + "config": { + "experimental": {"new-designs":true}, + "plugins": ["./out/npm/node_modules/opencode-navigator"], + "animations": false, + "theme": {"name":"opencode"} + }, + "args": { + "sessionID": "ses_n" + }, + "env": { + "OPENCODE_PARITY_PLUGIN": "npm" + }, + "routes": [ + {"path":"/api/session/ses_n","json":{"data":{"id":"ses_n","title":"Navigate","projectID":"proj_test","cost":0,"tokens":{"input":0,"output":0,"reasoning":0,"cache":{"read":0,"write":0}},"time":{"created":2,"updated":2},"location":{"directory":"/tmp/opencode/packages/tui"}}}}, + {"path":"/api/session","json":{"data":[{"id":"ses_n","title":"Navigate","projectID":"proj_test","cost":0,"tokens":{"input":0,"output":0,"reasoning":0,"cache":{"read":0,"write":0}},"time":{"created":2,"updated":2},"location":{"directory":"/tmp/opencode/packages/tui"}}],"cursor":{}}}, + {"path":"/api/session/ses_n/message","json":{"data":[{"id":"msg_2","type":"assistant","agent":"build","model":{"providerID":"provider","id":"model"},"content":[{"type":"text","text":"Navigated."}],"finish":"stop","time":{"created":2000,"completed":2001}},{"id":"msg_1","type":"user","text":"Navigate","time":{"created":1000}}],"cursor":{}}}, + {"path":"/api/session/ses_n/inbox","json":{"data":[]}}, + {"path":"/api/fs/read/.opencode/:file","base64":"e30="} + ], + "steps": [ + {"checkpoint":"session","until":"Navigator 0.27.7","deviation":[{"file":"F16-v2-compat-layer","cells":5}],"fixture":"P.8/navigator/session"} + ], + "requests": { + "writes": [], + "reads": [ + {"method":"GET","path":"/api/agent","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":[]}}, + {"method":"GET","path":"/api/command","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":[]}}, + {"method":"GET","path":"/api/config","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":[]}, + {"method":"GET","path":"/api/experimental/job","query":{"descendants":["true"],"sessionID":["ses_n"],"status":["running"]},"status":200,"json":{"data":[]}}, + {"method":"GET","path":"/api/experimental/migration/v1","query":{},"status":200,"json":{"status":"completed"}}, + {"method":"GET","path":"/api/experimental/session/ses_n/terminal","query":{},"status":200,"json":{"data":[]}}, + {"method":"GET","path":"/api/form","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode"}},"data":[]}}, + {"method":"GET","path":"/api/fs/list","query":{"location[directory]":["<cwd>"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":[]}}, + {"method":"GET","path":"/api/fs/read/.opencode/navigator.json","query":{"location[directory]":["/tmp/opencode/packages/tui"],"location[project][canonical]":["/tmp/opencode"],"location[project][directory]":["/tmp/opencode"],"location[project][id]":["proj_test"]},"status":200,"text":"{}","contentType":"application/octet-stream"}, + {"method":"GET","path":"/api/info","query":{},"status":200,"json":{"version":"test","pid":0,"urls":[],"paths":{"tmp":"/tmp"},"capabilities":{"persistentPty":true}}}, + {"method":"GET","path":"/api/integration","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":[]}}, + {"method":"GET","path":"/api/location","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}}}, + {"method":"GET","path":"/api/mcp","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":[]}}, + {"method":"GET","path":"/api/mcp/resource","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":{"resources":[],"templates":[]}}}, + {"method":"GET","path":"/api/model","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":[]}}, + {"method":"GET","path":"/api/plugin","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":[]}}, + {"method":"GET","path":"/api/project","query":{},"status":200,"json":[]}, + {"method":"GET","path":"/api/provider","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":[]}}, + {"method":"GET","path":"/api/reference","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode/packages/tui","canonical":"/tmp/opencode/packages/tui"}},"data":[]}}, + {"method":"GET","path":"/api/session","query":{"limit":["100"],"parentID":["ses_n"]},"status":200,"json":{"data":[{"id":"ses_n","title":"Navigate","projectID":"proj_test","cost":0,"tokens":{"input":0,"output":0,"reasoning":0,"cache":{"read":0,"write":0}},"time":{"created":2,"updated":2},"location":{"directory":"/tmp/opencode/packages/tui"}}],"cursor":{}}}, + {"method":"GET","path":"/api/session","query":{"limit":["200"],"order":["desc"],"parentID":["ses_n"]},"status":200,"json":{"data":[{"id":"ses_n","title":"Navigate","projectID":"proj_test","cost":0,"tokens":{"input":0,"output":0,"reasoning":0,"cache":{"read":0,"write":0}},"time":{"created":2,"updated":2},"location":{"directory":"/tmp/opencode/packages/tui"}}],"cursor":{}}}, + {"method":"GET","path":"/api/session/active","query":{},"status":200,"json":{"data":{}}}, + {"method":"GET","path":"/api/session/ses_n","query":{},"status":200,"json":{"data":{"id":"ses_n","title":"Navigate","projectID":"proj_test","cost":0,"tokens":{"input":0,"output":0,"reasoning":0,"cache":{"read":0,"write":0}},"time":{"created":2,"updated":2},"location":{"directory":"/tmp/opencode/packages/tui"}}}}, + {"method":"GET","path":"/api/session/ses_n/form","query":{},"status":200,"json":{"data":[]}}, + {"method":"GET","path":"/api/session/ses_n/inbox","query":{},"status":200,"json":{"data":[]}}, + {"method":"GET","path":"/api/session/ses_n/message","query":{"limit":["20"],"order":["desc"]},"status":200,"json":{"data":[{"id":"msg_2","type":"assistant","agent":"build","model":{"providerID":"provider","id":"model"},"content":[{"type":"text","text":"Navigated."}],"finish":"stop","time":{"created":2000,"completed":2001}},{"id":"msg_1","type":"user","text":"Navigate","time":{"created":1000}}],"cursor":{}}}, + {"method":"GET","path":"/api/session/ses_n/permission","query":{},"status":200,"json":{"data":[]}}, + {"method":"GET","path":"/api/shell","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":[]}}, + {"method":"GET","path":"/api/skill","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":[]}}, + {"method":"GET","path":"/api/vcs","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":{"branch":{"current":"main","default":"main"}}}}, + {"method":"POST","path":"/api/rpc/opencode.goal/get","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"body":{"input":{"sessionID":"ses_n"}},"status":200,"json":{"output":null}} + ] + } +} diff --git a/packages/cli-rs/parity/fixtures/P.8/navigator/session.json b/packages/cli-rs/parity/fixtures/P.8/navigator/session.json new file mode 100644 index 000000000000..9a15cee79a24 --- /dev/null +++ b/packages/cli-rs/parity/fixtures/P.8/navigator/session.json @@ -0,0 +1,36 @@ +{"width":140,"height":34,"styles":["#ffffffff #202020ff 0","#ffffffff #202020ff 1","#808080ff #080808ff 0","#ffffffff #080808ff 0","#ffffffff #141414ff 0","#7699feff #141414ff 0","#ffffffff #141414ff 1","#93a2b7ff #141414ff 0","#808080ff #141414ff 0","#606060ff #141414ff 0","#eeeeeeff #080808ff 0","#7699feff #080808ff 0","#212121ff #141414ff 0","#808080ff #202020ff 0","#484848ff #080808ff 0","#202020ff #080808ff 0","#f5a742ff #141414ff 0"],"lines":[ +[" Navigate + ",[[0,3],[1,8],[0,21],[2,3],[3,105]]], +[" ",[[3,98],[4,42]]], +[" ┃ Navigate ",[[3,2],[5,1],[4,93],[3,2],[4,2],[6,8],[4,32]]], +[" ┃ Navigate ",[[3,2],[5,1],[4,93],[3,2],[4,42]]], +[" ┃  󰊚 LIMITS  █ ",[[3,2],[5,1],[4,93],[3,2],[4,3],[7,1],[4,1],[7,2],[6,6],[4,23],[8,1],[4,2],[9,1],[4,2]]], +[" █ ",[[3,98],[4,39],[9,1],[4,2]]], +[" Navigated. Open a session to view model limits █ ",[[3,5],[10,10],[3,83],[4,2],[8,35],[4,2],[9,1],[4,2]]], +[" █ ",[[3,98],[4,39],[9,1],[4,2]]], +[" Build · provider/model · 1.0s ─────────────────────────────────────▀ ",[[3,5],[11,5],[2,24],[3,64],[4,2],[12,37],[9,1],[4,2]]], +[" ",[[3,98],[4,42]]], +["   TODO  Refresh 0/0 ",[[3,98],[4,3],[7,1],[4,1],[7,2],[6,4],[4,13],[7,9],[4,2],[8,3],[4,4]]], +[" ",[[3,98],[4,42]]], +["  Native OpenCode Todo is disabled. ",[[3,98],[4,2],[8,36],[4,4]]], +[" Enable it to let the built-in ",[[3,98],[4,2],[8,30],[4,10]]], +[" todowrite tool manage tasks. ",[[3,98],[4,2],[8,28],[4,12]]], +[" Enable Todo… ",[[3,98],[4,42]]], +[" ",[[3,98],[4,42]]], +[" ",[[3,98],[4,2],[0,38],[4,2]]], +[" ⬖ Getting started ✕ ",[[3,98],[4,2],[0,4],[1,15],[0,16],[13,1],[0,2],[4,2]]], +[" ",[[3,98],[4,2],[0,38],[4,2]]], +[" OpenCode includes free models so ",[[3,98],[4,2],[0,4],[13,32],[0,2],[4,2]]], +[" you can start immediately. ",[[3,98],[4,2],[0,4],[13,26],[0,8],[4,2]]], +[" ",[[3,98],[4,2],[0,38],[4,2]]], +[" Connect from 75+ providers to ",[[3,98],[4,2],[0,4],[13,30],[0,4],[4,2]]], +[" use other models, including ",[[3,98],[4,2],[0,4],[13,28],[0,6],[4,2]]], +[" Claude, GPT, Gemini etc ",[[3,98],[4,2],[0,4],[13,23],[0,11],[4,2]]], +[" ",[[3,98],[4,2],[0,38],[4,2]]], +[" ┃ Connect provider /connect ",[[3,2],[14,1],[0,93],[3,2],[4,2],[0,28],[13,8],[0,2],[4,2]]], +[" ┃ ",[[3,2],[14,1],[0,93],[3,2],[4,2],[0,38],[4,2]]], +[" ┃ ",[[3,2],[14,1],[0,93],[3,2],[4,42]]], +[" ┃ /tmp/opencode/packages/tui:main ",[[3,2],[14,1],[0,93],[3,2],[4,2],[8,31],[4,9]]], +[" ╹▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀ ",[[3,2],[14,1],[15,93],[3,2],[4,42]]], +[" /tmp/opencode/packages/tui:main shift+tab agents ctrl+p commands OpenCode test | Navigator 0.27.7󰁟  ",[[3,2],[2,31],[3,40],[2,6],[3,9],[2,8],[3,2],[4,2],[8,32],[16,1],[4,3],[8,1],[4,3]]], +[" ",[[3,98],[4,42]]] +]} diff --git a/packages/cli-rs/parity/fixtures/P.8/queue-manager.app.json b/packages/cli-rs/parity/fixtures/P.8/queue-manager.app.json new file mode 100644 index 000000000000..b803a3bdf876 --- /dev/null +++ b/packages/cli-rs/parity/fixtures/P.8/queue-manager.app.json @@ -0,0 +1,117 @@ +{ + "scenario": "P.8/queue-manager", + "width": 120, + "height": 34, + "directory": "/tmp/opencode/packages/tui", + "config": { + "plugins": ["./out/npm/node_modules/@bybrawe/opencode-queue-manager"], + "animations": false, + "experimental": {"new-designs":true}, + "theme": {"name":"opencode"} + }, + "args": { + "sessionID": "ses_q" + }, + "env": { + "OPENCODE_PARITY_PLUGIN": "npm" + }, + "routes": [ + {"path":"/api/session/ses_q","json":{"data":{"id":"ses_q","title":"Queue the work","projectID":"proj_test","cost":0,"tokens":{"input":0,"output":0,"reasoning":0,"cache":{"read":0,"write":0}},"time":{"created":2,"updated":2},"location":{"directory":"/tmp/opencode/packages/tui"}}}}, + {"path":"/api/session","json":{"data":[{"id":"ses_q","title":"Queue the work","projectID":"proj_test","cost":0,"tokens":{"input":0,"output":0,"reasoning":0,"cache":{"read":0,"write":0}},"time":{"created":2,"updated":2},"location":{"directory":"/tmp/opencode/packages/tui"}}],"cursor":{}}}, + {"path":"/api/session/ses_q/message","json":{"data":[{"id":"msg_2","type":"assistant","agent":"build","model":{"providerID":"provider","id":"model"},"content":[{"type":"text","text":"Ready."}],"finish":"stop","time":{"created":2000,"completed":2001}},{"id":"msg_1","type":"user","text":"Queue the work","time":{"created":1000}}],"cursor":{}}}, + {"path":"/api/session/ses_q/inbox","json":{"data":[{"id":"msg_p1","sessionID":"ses_q","time":{"created":3000},"type":"user","payload":{"text":"Write the tests"},"delivery":"queue"},{"id":"msg_p2","sessionID":"ses_q","time":{"created":3001},"type":"synthetic","payload":{"text":"Continue if you have next steps"},"delivery":"queue"}]}}, + {"method":"POST","path":"/api/session/ses_q/prompt","json":{"data":{"id":"msg_p1","sessionID":"ses_q","time":{"created":3000},"type":"user","payload":{"text":"Write the tests"},"delivery":"queue"}}}, + {"method":"DELETE","path":"/api/session/ses_q/inbox/msg_p1","status":204} + ], + "steps": [ + {"checkpoint":"session","until":"Ready.","fixture":"P.8/queue-manager/session"}, + {"type":"/qm"}, + {"checkpoint":"slash","until":"Queue Manager","fixture":"P.8/queue-manager/slash"}, + {"keys":["enter"]}, + {"checkpoint":"menu","until":"native pending","fixture":"P.8/queue-manager/menu"}, + {"keys":["down","enter"]}, + {"checkpoint":"add","until":"Your prompt","fixture":"P.8/queue-manager/add"}, + {"type":"Review the diff"}, + {"keys":["enter"]}, + {"checkpoint":"added","until":"1 drafts","fixture":"P.8/queue-manager/added"}, + {"keys":["enter"]}, + {"checkpoint":"count","until":"Custom (1-500)","fixture":"P.8/queue-manager/count"}, + {"keys":["enter"]}, + {"checkpoint":"message","until":"Custom message","fixture":"P.8/queue-manager/message"}, + {"keys":["down","enter"]}, + {"checkpoint":"stage","until":"Stage 10 copies","fixture":"P.8/queue-manager/stage"}, + {"keys":["enter"]}, + {"checkpoint":"staged","until":"11 drafts","fixture":"P.8/queue-manager/staged"}, + {"keys":["down","down","down","enter"]}, + {"checkpoint":"drafts","until":"choose one","fixture":"P.8/queue-manager/drafts"}, + {"keys":["down","enter"]}, + {"checkpoint":"actions","until":"Move to bottom","fixture":"P.8/queue-manager/actions"}, + {"keys":["down","down","down","enter"]}, + {"checkpoint":"moved","until":"001. continue","fixture":"P.8/queue-manager/moved"}, + {"keys":["escape"]}, + {"checkpoint":"back","until":"11 drafts","fixture":"P.8/queue-manager/back"}, + {"keys":["down","down","down","down","down","enter"]}, + {"checkpoint":"publish","until":"Send 11 messages","fixture":"P.8/queue-manager/publish"}, + {"keys":["enter"]}, + {"checkpoint":"published","until":"0 drafts","fixture":"P.8/queue-manager/published"}, + {"keys":["down","down","down","down","down","down","enter"]}, + {"checkpoint":"inbox","until":"native inbox (2)","fixture":"P.8/queue-manager/inbox"}, + {"keys":["enter"]}, + {"checkpoint":"item","until":"Cancel this pending item","fixture":"P.8/queue-manager/item"}, + {"keys":["enter"]}, + {"checkpoint":"cancel","until":"only still-pending","fixture":"P.8/queue-manager/cancel"}, + {"keys":["enter"]}, + {"checkpoint":"cancelled","until":"native inbox (2)","fixture":"P.8/queue-manager/cancelled"}, + {"keys":["escape"]}, + {"checkpoint":"again","until":"0 drafts","fixture":"P.8/queue-manager/again"}, + {"keys":["escape"]}, + {"checkpoint":"closed","until":"Ready.","fixture":"P.8/queue-manager/closed"} + ], + "requests": { + "writes": [ + {"method":"POST","path":"/api/session/ses_q/prompt","query":{},"body":{"text":"continue","delivery":"queue"},"status":200,"json":{"data":{"id":"msg_p1","sessionID":"ses_q","time":{"created":3000},"type":"user","payload":{"text":"Write the tests"},"delivery":"queue"}}}, + {"method":"POST","path":"/api/session/ses_q/prompt","query":{},"body":{"text":"Review the diff","delivery":"queue"},"status":200,"json":{"data":{"id":"msg_p1","sessionID":"ses_q","time":{"created":3000},"type":"user","payload":{"text":"Write the tests"},"delivery":"queue"}}}, + {"method":"POST","path":"/api/session/ses_q/prompt","query":{},"body":{"text":"continue","delivery":"queue"},"status":200,"json":{"data":{"id":"msg_p1","sessionID":"ses_q","time":{"created":3000},"type":"user","payload":{"text":"Write the tests"},"delivery":"queue"}}}, + {"method":"POST","path":"/api/session/ses_q/prompt","query":{},"body":{"text":"continue","delivery":"queue"},"status":200,"json":{"data":{"id":"msg_p1","sessionID":"ses_q","time":{"created":3000},"type":"user","payload":{"text":"Write the tests"},"delivery":"queue"}}}, + {"method":"POST","path":"/api/session/ses_q/prompt","query":{},"body":{"text":"continue","delivery":"queue"},"status":200,"json":{"data":{"id":"msg_p1","sessionID":"ses_q","time":{"created":3000},"type":"user","payload":{"text":"Write the tests"},"delivery":"queue"}}}, + {"method":"POST","path":"/api/session/ses_q/prompt","query":{},"body":{"text":"continue","delivery":"queue"},"status":200,"json":{"data":{"id":"msg_p1","sessionID":"ses_q","time":{"created":3000},"type":"user","payload":{"text":"Write the tests"},"delivery":"queue"}}}, + {"method":"POST","path":"/api/session/ses_q/prompt","query":{},"body":{"text":"continue","delivery":"queue"},"status":200,"json":{"data":{"id":"msg_p1","sessionID":"ses_q","time":{"created":3000},"type":"user","payload":{"text":"Write the tests"},"delivery":"queue"}}}, + {"method":"POST","path":"/api/session/ses_q/prompt","query":{},"body":{"text":"continue","delivery":"queue"},"status":200,"json":{"data":{"id":"msg_p1","sessionID":"ses_q","time":{"created":3000},"type":"user","payload":{"text":"Write the tests"},"delivery":"queue"}}}, + {"method":"POST","path":"/api/session/ses_q/prompt","query":{},"body":{"text":"continue","delivery":"queue"},"status":200,"json":{"data":{"id":"msg_p1","sessionID":"ses_q","time":{"created":3000},"type":"user","payload":{"text":"Write the tests"},"delivery":"queue"}}}, + {"method":"POST","path":"/api/session/ses_q/prompt","query":{},"body":{"text":"continue","delivery":"queue"},"status":200,"json":{"data":{"id":"msg_p1","sessionID":"ses_q","time":{"created":3000},"type":"user","payload":{"text":"Write the tests"},"delivery":"queue"}}}, + {"method":"POST","path":"/api/session/ses_q/prompt","query":{},"body":{"text":"continue","delivery":"queue"},"status":200,"json":{"data":{"id":"msg_p1","sessionID":"ses_q","time":{"created":3000},"type":"user","payload":{"text":"Write the tests"},"delivery":"queue"}}}, + {"method":"DELETE","path":"/api/session/ses_q/inbox/msg_p1","query":{},"status":204} + ], + "reads": [ + {"method":"GET","path":"/api/agent","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":[]}}, + {"method":"GET","path":"/api/command","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":[]}}, + {"method":"GET","path":"/api/config","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":[]}, + {"method":"GET","path":"/api/experimental/job","query":{"descendants":["true"],"sessionID":["ses_q"],"status":["running"]},"status":200,"json":{"data":[]}}, + {"method":"GET","path":"/api/experimental/migration/v1","query":{},"status":200,"json":{"status":"completed"}}, + {"method":"GET","path":"/api/experimental/session/ses_q/terminal","query":{},"status":200,"json":{"data":[]}}, + {"method":"GET","path":"/api/form","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode"}},"data":[]}}, + {"method":"GET","path":"/api/fs/list","query":{"location[directory]":["<cwd>"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":[]}}, + {"method":"GET","path":"/api/info","query":{},"status":200,"json":{"version":"test","pid":0,"urls":[],"paths":{"tmp":"/tmp"},"capabilities":{"persistentPty":true}}}, + {"method":"GET","path":"/api/integration","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":[]}}, + {"method":"GET","path":"/api/location","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}}}, + {"method":"GET","path":"/api/mcp","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":[]}}, + {"method":"GET","path":"/api/mcp/resource","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":{"resources":[],"templates":[]}}}, + {"method":"GET","path":"/api/model","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":[]}}, + {"method":"GET","path":"/api/plugin","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":[]}}, + {"method":"GET","path":"/api/project","query":{},"status":200,"json":[]}, + {"method":"GET","path":"/api/provider","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":[]}}, + {"method":"GET","path":"/api/reference","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode/packages/tui","canonical":"/tmp/opencode/packages/tui"}},"data":[]}}, + {"method":"GET","path":"/api/session","query":{"limit":["200"],"order":["desc"],"parentID":["ses_q"]},"status":200,"json":{"data":[{"id":"ses_q","title":"Queue the work","projectID":"proj_test","cost":0,"tokens":{"input":0,"output":0,"reasoning":0,"cache":{"read":0,"write":0}},"time":{"created":2,"updated":2},"location":{"directory":"/tmp/opencode/packages/tui"}}],"cursor":{}}}, + {"method":"GET","path":"/api/session/active","query":{},"status":200,"json":{"data":{}}}, + {"method":"GET","path":"/api/session/ses_q","query":{},"status":200,"json":{"data":{"id":"ses_q","title":"Queue the work","projectID":"proj_test","cost":0,"tokens":{"input":0,"output":0,"reasoning":0,"cache":{"read":0,"write":0}},"time":{"created":2,"updated":2},"location":{"directory":"/tmp/opencode/packages/tui"}}}}, + {"method":"GET","path":"/api/session/ses_q/form","query":{},"status":200,"json":{"data":[]}}, + {"method":"GET","path":"/api/session/ses_q/inbox","query":{},"status":200,"json":{"data":[{"id":"msg_p1","sessionID":"ses_q","time":{"created":3000},"type":"user","payload":{"text":"Write the tests"},"delivery":"queue"},{"id":"msg_p2","sessionID":"ses_q","time":{"created":3001},"type":"synthetic","payload":{"text":"Continue if you have next steps"},"delivery":"queue"}]}}, + {"method":"GET","path":"/api/session/ses_q/message","query":{"limit":["20"],"order":["desc"]},"status":200,"json":{"data":[{"id":"msg_2","type":"assistant","agent":"build","model":{"providerID":"provider","id":"model"},"content":[{"type":"text","text":"Ready."}],"finish":"stop","time":{"created":2000,"completed":2001}},{"id":"msg_1","type":"user","text":"Queue the work","time":{"created":1000}}],"cursor":{}}}, + {"method":"GET","path":"/api/session/ses_q/permission","query":{},"status":200,"json":{"data":[]}}, + {"method":"GET","path":"/api/shell","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":[]}}, + {"method":"GET","path":"/api/skill","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":[]}}, + {"method":"GET","path":"/api/vcs","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":{"branch":{"current":"main","default":"main"}}}}, + {"method":"POST","path":"/api/rpc/opencode.goal/get","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"body":{"input":{"sessionID":"ses_q"}},"status":200,"json":{"output":null}} + ] + } +} diff --git a/packages/cli-rs/parity/fixtures/P.8/queue-manager/actions.json b/packages/cli-rs/parity/fixtures/P.8/queue-manager/actions.json new file mode 100644 index 000000000000..f342df6c62ce --- /dev/null +++ b/packages/cli-rs/parity/fixtures/P.8/queue-manager/actions.json @@ -0,0 +1,36 @@ +{"width":120,"height":34,"styles":["#ffffffff #0d0d0dff 0","#3d434bff #0d0d0dff 1","#696969ff #0d0d0dff 1","#ffffffff #030303ff 0","#353535ff #030303ff 0","#313f69ff #030303ff 0","#313f69ff #080808ff 0","#ffffffff #080808ff 0","#353535ff #0d0d0dff 0","#696969ff #080808ff 0","#696969ff #0d0d0dff 0","#626262ff #030303ff 0","#ffffffff #141414ff 0","#808080ff #141414ff 0","#7699feff #141414ff 0","#ffffffff #23344bff 0","#1e1e1eff #030303ff 0","#353535ff #080808ff 0","#0d0d0dff #030303ff 0","#696969ff #030303ff 0"],"lines":[ +[" ⠋ Queue the work + ",[[0,1],[1,1],[0,1],[2,5],[0,1],[2,3],[0,1],[2,4],[0,15],[3,1],[4,1],[3,86]]], +[" ┃ ┃ ",[[3,58],[5,1],[0,58],[5,1],[3,2]]], +[" ┃ ┃ Draft ready x ┃ ",[[3,2],[6,1],[7,55],[6,1],[0,2],[2,5],[0,1],[2,5],[0,42],[8,1],[0,2],[6,1],[3,2]]], +[" ┃ Queue the work ┃ ┃ ",[[3,2],[6,1],[7,2],[9,5],[7,1],[9,3],[7,1],[9,4],[7,39],[6,1],[0,58],[6,1],[3,2]]], +[" ┃ ┃ 10 items added. Use 'Publish drafts' to send them to ┃ ",[[3,2],[6,1],[7,55],[6,1],[0,2],[10,2],[0,1],[10,5],[0,1],[10,6],[0,1],[10,3],[0,1],[10,8],[0,1],[10,7],[0,1],[10,2],[0,1],[10,4],[0,1],[10,4],[0,1],[10,2],[0,4],[6,1],[3,2]]], +[" ┃ the native queue. ┃ ",[[3,58],[5,1],[0,2],[10,3],[0,1],[10,6],[0,1],[10,6],[0,39],[5,1],[3,2]]], +[" Ready. ┃ ┃ ",[[3,5],[11,6],[3,47],[5,1],[0,58],[5,1],[3,2]]], +[" ",[[3,120]]], +[" Build · provider/model · 1.0s ",[[3,5],[5,5],[3,1],[4,1],[3,1],[4,14],[3,1],[4,1],[3,1],[4,4],[3,86]]], +[" ",[[3,30],[12,60],[3,30]]], +[" Draft #2 esc ",[[3,30],[12,53],[13,3],[12,4],[3,30]]], +[" ",[[3,30],[12,60],[3,30]]], +[" Search ",[[3,30],[12,4],[13,6],[12,50],[3,30]]], +[" ",[[3,30],[12,60],[3,30]]], +[" ┃ Replace text ",[[3,30],[14,1],[15,59],[3,30]]], +[" Move up ",[[3,30],[14,1],[12,59],[3,30]]], +[" Move down ",[[3,30],[14,1],[12,59],[3,30]]], +[" Move to top ",[[3,30],[14,1],[12,59],[3,30]]], +[" Move to bottom ",[[3,30],[14,1],[12,59],[3,30]]], +[" Duplicate ",[[3,30],[14,1],[12,59],[3,30]]], +[" Delete ",[[3,30],[14,1],[12,59],[3,30]]], +[" Back ",[[3,30],[14,1],[12,59],[3,30]]], +[" ",[[3,30],[12,60],[3,30]]], +[" ┃ ",[[3,2],[16,1],[7,115],[3,2]]], +[" ┃ 1 queued · Write the tests ",[[3,2],[16,1],[7,2],[9,1],[7,1],[9,6],[7,1],[17,1],[7,1],[17,5],[7,1],[17,3],[7,1],[17,5],[7,87],[3,2]]], +[" ┃ ",[[3,2],[16,1],[7,115],[3,2]]], +[" ",[[3,120]]], +[" ┃ ",[[3,2],[16,1],[0,115],[3,2]]], +[" ┃ ",[[3,2],[16,1],[0,115],[3,2]]], +[" ┃ ",[[3,2],[16,1],[0,115],[3,2]]], +[" ┃ ",[[3,2],[16,1],[0,115],[3,2]]], +[" ╹▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀ ",[[3,2],[16,1],[18,115],[3,2]]], +[" /tmp/opencode/packages/tui:main shift+tab agents ctrl+p commands ",[[3,2],[4,31],[3,52],[19,9],[3,1],[4,6],[3,2],[19,6],[3,1],[4,8],[3,2]]], +[" ",[[3,120]]] +]} diff --git a/packages/cli-rs/parity/fixtures/P.8/queue-manager/add.json b/packages/cli-rs/parity/fixtures/P.8/queue-manager/add.json new file mode 100644 index 000000000000..d47c03b9ee8b --- /dev/null +++ b/packages/cli-rs/parity/fixtures/P.8/queue-manager/add.json @@ -0,0 +1,36 @@ +{"width":120,"height":34,"styles":["#ffffffff #0d0d0dff 0","#3d434bff #0d0d0dff 1","#696969ff #0d0d0dff 1","#ffffffff #030303ff 0","#353535ff #030303ff 0","#313f69ff #080808ff 0","#ffffffff #080808ff 0","#696969ff #080808ff 0","#626262ff #030303ff 0","#313f69ff #030303ff 0","#ffffffff #141414ff 0","#808080ff #141414ff 0","#ffffffff #23344bff 0","#1e1e1eff #030303ff 0","#353535ff #080808ff 0","#0d0d0dff #030303ff 0","#696969ff #030303ff 0"],"lines":[ +[" ⠋ Queue the work + ",[[0,1],[1,1],[0,1],[2,5],[0,1],[2,3],[0,1],[2,4],[0,15],[3,1],[4,1],[3,86]]], +[" ",[[3,120]]], +[" ┃ ",[[3,2],[5,1],[6,115],[3,2]]], +[" ┃ Queue the work ",[[3,2],[5,1],[6,2],[7,5],[6,1],[7,3],[6,1],[7,4],[6,99],[3,2]]], +[" ┃ ",[[3,2],[5,1],[6,115],[3,2]]], +[" ",[[3,120]]], +[" Ready. ",[[3,5],[8,6],[3,109]]], +[" ",[[3,120]]], +[" Build · provider/model · 1.0s ",[[3,5],[9,5],[3,1],[4,1],[3,1],[4,14],[3,1],[4,1],[3,1],[4,4],[3,86]]], +[" ",[[3,30],[10,60],[3,30]]], +[" Add one draft message esc ",[[3,30],[10,54],[11,3],[10,3],[3,30]]], +[" ",[[3,30],[10,60],[3,30]]], +[" Your prompt ",[[3,30],[10,3],[11,11],[10,46],[3,30]]], +[" ",[[3,30],[10,60],[3,30]]], +[" Submit ",[[3,30],[10,49],[12,8],[10,3],[3,30]]], +[" ",[[3,30],[10,60],[3,30]]], +[" ",[[3,120]]], +[" ",[[3,120]]], +[" ",[[3,120]]], +[" ",[[3,120]]], +[" ",[[3,120]]], +[" ",[[3,120]]], +[" ",[[3,120]]], +[" ┃ ",[[3,2],[13,1],[6,115],[3,2]]], +[" ┃ 1 queued · Write the tests ",[[3,2],[13,1],[6,2],[7,1],[6,1],[7,6],[6,1],[14,1],[6,1],[14,5],[6,1],[14,3],[6,1],[14,5],[6,87],[3,2]]], +[" ┃ ",[[3,2],[13,1],[6,115],[3,2]]], +[" ",[[3,120]]], +[" ┃ ",[[3,2],[13,1],[0,115],[3,2]]], +[" ┃ ",[[3,2],[13,1],[0,115],[3,2]]], +[" ┃ ",[[3,2],[13,1],[0,115],[3,2]]], +[" ┃ ",[[3,2],[13,1],[0,115],[3,2]]], +[" ╹▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀ ",[[3,2],[13,1],[15,115],[3,2]]], +[" /tmp/opencode/packages/tui:main shift+tab agents ctrl+p commands ",[[3,2],[4,31],[3,52],[16,9],[3,1],[4,6],[3,2],[16,6],[3,1],[4,8],[3,2]]], +[" ",[[3,120]]] +]} diff --git a/packages/cli-rs/parity/fixtures/P.8/queue-manager/added.json b/packages/cli-rs/parity/fixtures/P.8/queue-manager/added.json new file mode 100644 index 000000000000..a989dfc0472f --- /dev/null +++ b/packages/cli-rs/parity/fixtures/P.8/queue-manager/added.json @@ -0,0 +1,36 @@ +{"width":120,"height":34,"styles":["#ffffffff #0d0d0dff 0","#3d434bff #0d0d0dff 1","#696969ff #0d0d0dff 1","#ffffffff #030303ff 0","#353535ff #030303ff 0","#313f69ff #030303ff 0","#313f69ff #080808ff 0","#ffffffff #080808ff 0","#353535ff #0d0d0dff 0","#696969ff #080808ff 0","#696969ff #0d0d0dff 0","#626262ff #030303ff 0","#ffffffff #141414ff 0","#808080ff #141414ff 0","#7699feff #141414ff 0","#ffffffff #23344bff 0","#1e1e1eff #030303ff 0","#353535ff #080808ff 0","#0d0d0dff #030303ff 0","#696969ff #030303ff 0"],"lines":[ +[" ⠋ Queue the work + ",[[0,1],[1,1],[0,1],[2,5],[0,1],[2,3],[0,1],[2,4],[0,15],[3,1],[4,1],[3,86]]], +[" ┃ ┃ ",[[3,77],[5,1],[0,39],[5,1],[3,2]]], +[" ┃ ┃ Added x ┃ ",[[3,2],[6,1],[7,74],[6,1],[0,2],[2,5],[0,29],[8,1],[0,2],[6,1],[3,2]]], +[" ┃ Queue the work ┃ ┃ ",[[3,2],[6,1],[7,2],[9,5],[7,1],[9,3],[7,1],[9,4],[7,58],[6,1],[0,39],[6,1],[3,2]]], +[" ┃ ┃ Message appended to the draft list. ┃ ",[[3,2],[6,1],[7,74],[6,1],[0,2],[10,7],[0,1],[10,8],[0,1],[10,2],[0,1],[10,3],[0,1],[10,5],[0,1],[10,5],[0,2],[6,1],[3,2]]], +[" ┃ ┃ ",[[3,77],[5,1],[0,39],[5,1],[3,2]]], +[" Ready. ",[[3,5],[11,6],[3,109]]], +[" ",[[3,120]]], +[" Build · provider/model · 1.0s ",[[3,5],[5,5],[3,1],[4,1],[3,1],[4,14],[3,1],[4,1],[3,1],[4,4],[3,86]]], +[" ",[[3,30],[12,60],[3,30]]], +[" Queue Manager | 1 drafts | 2 native pending esc ",[[3,30],[12,53],[13,3],[12,4],[3,30]]], +[" ",[[3,30],[12,60],[3,30]]], +[" Search ",[[3,30],[12,4],[13,6],[12,50],[3,30]]], +[" ",[[3,30],[12,60],[3,30]]], +[" ┃ Repeat 10 / 25 / 50 / 100 / 200 / custom ",[[3,30],[14,1],[15,59],[3,30]]], +[" Add one draft message ",[[3,30],[14,1],[12,59],[3,30]]], +[" Import lines from .txt ",[[3,30],[14,1],[12,59],[3,30]]], +[" Manage draft list (1) - edit, reorder, delete ",[[3,30],[14,1],[12,59],[3,30]]], +[" Reverse / sort draft list ",[[3,30],[14,1],[12,59],[3,30]]], +[" Publish all drafts to OpenCode native queue (1) ",[[3,30],[14,1],[12,59],[3,30]]], +[" View / cancel native pending messages (2) ",[[3,30],[14,1],[12,59],[3,30]]], +[" Clear draft list ",[[3,30],[14,1],[12,59],[3,30]]], +[" Clear native queued user prompts ",[[3,30],[14,1],[12,59],[3,30]]], +[" ┃ Close ",[[3,2],[16,1],[7,27],[14,1],[12,59],[7,28],[3,2]]], +[" ┃ 1 queued · Write the test ",[[3,2],[16,1],[7,2],[9,1],[7,1],[9,6],[7,1],[17,1],[7,1],[17,5],[7,1],[17,3],[7,1],[17,4],[12,60],[7,28],[3,2]]], +[" ┃ ",[[3,2],[16,1],[7,115],[3,2]]], +[" ",[[3,120]]], +[" ┃ ",[[3,2],[16,1],[0,115],[3,2]]], +[" ┃ ",[[3,2],[16,1],[0,115],[3,2]]], +[" ┃ ",[[3,2],[16,1],[0,115],[3,2]]], +[" ┃ ",[[3,2],[16,1],[0,115],[3,2]]], +[" ╹▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀ ",[[3,2],[16,1],[18,115],[3,2]]], +[" /tmp/opencode/packages/tui:main shift+tab agents ctrl+p commands ",[[3,2],[4,31],[3,52],[19,9],[3,1],[4,6],[3,2],[19,6],[3,1],[4,8],[3,2]]], +[" ",[[3,120]]] +]} diff --git a/packages/cli-rs/parity/fixtures/P.8/queue-manager/again.json b/packages/cli-rs/parity/fixtures/P.8/queue-manager/again.json new file mode 100644 index 000000000000..27c0c6571086 --- /dev/null +++ b/packages/cli-rs/parity/fixtures/P.8/queue-manager/again.json @@ -0,0 +1,36 @@ +{"width":120,"height":34,"styles":["#ffffffff #0d0d0dff 0","#3d434bff #0d0d0dff 1","#696969ff #0d0d0dff 1","#ffffffff #030303ff 0","#353535ff #030303ff 0","#313f69ff #030303ff 0","#313f69ff #080808ff 0","#ffffffff #080808ff 0","#353535ff #0d0d0dff 0","#696969ff #080808ff 0","#696969ff #0d0d0dff 0","#626262ff #030303ff 0","#ffffffff #141414ff 0","#808080ff #141414ff 0","#7699feff #141414ff 0","#ffffffff #23344bff 0","#1e1e1eff #030303ff 0","#353535ff #080808ff 0","#0d0d0dff #030303ff 0","#696969ff #030303ff 0"],"lines":[ +[" ⠋ Queue the work + ",[[0,1],[1,1],[0,1],[2,5],[0,1],[2,3],[0,1],[2,4],[0,15],[3,1],[4,1],[3,86]]], +[" ┃ ┃ ",[[3,71],[5,1],[0,45],[5,1],[3,2]]], +[" ┃ ┃ Published x ┃ ",[[3,2],[6,1],[7,68],[6,1],[0,2],[2,9],[0,31],[8,1],[0,2],[6,1],[3,2]]], +[" ┃ Queue the work ┃ ┃ ",[[3,2],[6,1],[7,2],[9,5],[7,1],[9,3],[7,1],[9,4],[7,52],[6,1],[0,45],[6,1],[3,2]]], +[" ┃ ┃ 11 messages admitted to the native queue. ┃ ",[[3,2],[6,1],[7,68],[6,1],[0,2],[10,2],[0,1],[10,8],[0,1],[10,8],[0,1],[10,2],[0,1],[10,3],[0,1],[10,6],[0,1],[10,6],[0,2],[6,1],[3,2]]], +[" ┃ ┃ ",[[3,71],[5,1],[0,45],[5,1],[3,2]]], +[" Ready. ",[[3,5],[11,6],[3,109]]], +[" ",[[3,120]]], +[" Build · provider/model · 1.0s ",[[3,5],[5,5],[3,1],[4,1],[3,1],[4,14],[3,1],[4,1],[3,1],[4,4],[3,86]]], +[" ",[[3,30],[12,60],[3,30]]], +[" Queue Manager | 0 drafts | 2 native pending esc ",[[3,30],[12,53],[13,3],[12,4],[3,30]]], +[" ",[[3,30],[12,60],[3,30]]], +[" Search ",[[3,30],[12,4],[13,6],[12,50],[3,30]]], +[" ",[[3,30],[12,60],[3,30]]], +[" ┃ Repeat 10 / 25 / 50 / 100 / 200 / custom ",[[3,30],[14,1],[15,59],[3,30]]], +[" Add one draft message ",[[3,30],[14,1],[12,59],[3,30]]], +[" Import lines from .txt ",[[3,30],[14,1],[12,59],[3,30]]], +[" Manage draft list (0) - edit, reorder, delete ",[[3,30],[14,1],[12,59],[3,30]]], +[" Reverse / sort draft list ",[[3,30],[14,1],[12,59],[3,30]]], +[" Publish all drafts to OpenCode native queue (0) ",[[3,30],[14,1],[12,59],[3,30]]], +[" View / cancel native pending messages (2) ",[[3,30],[14,1],[12,59],[3,30]]], +[" Clear draft list ",[[3,30],[14,1],[12,59],[3,30]]], +[" Clear native queued user prompts ",[[3,30],[14,1],[12,59],[3,30]]], +[" ┃ Close ",[[3,2],[16,1],[7,27],[14,1],[12,59],[7,28],[3,2]]], +[" ┃ 1 queued · Write the test ",[[3,2],[16,1],[7,2],[9,1],[7,1],[9,6],[7,1],[17,1],[7,1],[17,5],[7,1],[17,3],[7,1],[17,4],[12,60],[7,28],[3,2]]], +[" ┃ ",[[3,2],[16,1],[7,115],[3,2]]], +[" ",[[3,120]]], +[" ┃ ",[[3,2],[16,1],[0,115],[3,2]]], +[" ┃ ",[[3,2],[16,1],[0,115],[3,2]]], +[" ┃ ",[[3,2],[16,1],[0,115],[3,2]]], +[" ┃ ",[[3,2],[16,1],[0,115],[3,2]]], +[" ╹▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀ ",[[3,2],[16,1],[18,115],[3,2]]], +[" /tmp/opencode/packages/tui:main shift+tab agents ctrl+p commands ",[[3,2],[4,31],[3,52],[19,9],[3,1],[4,6],[3,2],[19,6],[3,1],[4,8],[3,2]]], +[" ",[[3,120]]] +]} diff --git a/packages/cli-rs/parity/fixtures/P.8/queue-manager/back.json b/packages/cli-rs/parity/fixtures/P.8/queue-manager/back.json new file mode 100644 index 000000000000..e28b9e251e82 --- /dev/null +++ b/packages/cli-rs/parity/fixtures/P.8/queue-manager/back.json @@ -0,0 +1,36 @@ +{"width":120,"height":34,"styles":["#ffffffff #0d0d0dff 0","#3d434bff #0d0d0dff 1","#696969ff #0d0d0dff 1","#ffffffff #030303ff 0","#353535ff #030303ff 0","#313f69ff #030303ff 0","#313f69ff #080808ff 0","#ffffffff #080808ff 0","#353535ff #0d0d0dff 0","#696969ff #080808ff 0","#696969ff #0d0d0dff 0","#626262ff #030303ff 0","#ffffffff #141414ff 0","#808080ff #141414ff 0","#7699feff #141414ff 0","#ffffffff #23344bff 0","#1e1e1eff #030303ff 0","#353535ff #080808ff 0","#0d0d0dff #030303ff 0","#696969ff #030303ff 0"],"lines":[ +[" ⠋ Queue the work + ",[[0,1],[1,1],[0,1],[2,5],[0,1],[2,3],[0,1],[2,4],[0,15],[3,1],[4,1],[3,86]]], +[" ┃ ┃ ",[[3,58],[5,1],[0,58],[5,1],[3,2]]], +[" ┃ ┃ Draft ready x ┃ ",[[3,2],[6,1],[7,55],[6,1],[0,2],[2,5],[0,1],[2,5],[0,42],[8,1],[0,2],[6,1],[3,2]]], +[" ┃ Queue the work ┃ ┃ ",[[3,2],[6,1],[7,2],[9,5],[7,1],[9,3],[7,1],[9,4],[7,39],[6,1],[0,58],[6,1],[3,2]]], +[" ┃ ┃ 10 items added. Use 'Publish drafts' to send them to ┃ ",[[3,2],[6,1],[7,55],[6,1],[0,2],[10,2],[0,1],[10,5],[0,1],[10,6],[0,1],[10,3],[0,1],[10,8],[0,1],[10,7],[0,1],[10,2],[0,1],[10,4],[0,1],[10,4],[0,1],[10,2],[0,4],[6,1],[3,2]]], +[" ┃ the native queue. ┃ ",[[3,58],[5,1],[0,2],[10,3],[0,1],[10,6],[0,1],[10,6],[0,39],[5,1],[3,2]]], +[" Ready. ┃ ┃ ",[[3,5],[11,6],[3,47],[5,1],[0,58],[5,1],[3,2]]], +[" ",[[3,120]]], +[" Build · provider/model · 1.0s ",[[3,5],[5,5],[3,1],[4,1],[3,1],[4,14],[3,1],[4,1],[3,1],[4,4],[3,86]]], +[" ",[[3,30],[12,60],[3,30]]], +[" Queue Manager | 11 drafts | 2 native pending esc ",[[3,30],[12,53],[13,3],[12,4],[3,30]]], +[" ",[[3,30],[12,60],[3,30]]], +[" Search ",[[3,30],[12,4],[13,6],[12,50],[3,30]]], +[" ",[[3,30],[12,60],[3,30]]], +[" ┃ Repeat 10 / 25 / 50 / 100 / 200 / custom ",[[3,30],[14,1],[15,59],[3,30]]], +[" Add one draft message ",[[3,30],[14,1],[12,59],[3,30]]], +[" Import lines from .txt ",[[3,30],[14,1],[12,59],[3,30]]], +[" Manage draft list (11) - edit, reorder, delete ",[[3,30],[14,1],[12,59],[3,30]]], +[" Reverse / sort draft list ",[[3,30],[14,1],[12,59],[3,30]]], +[" Publish all drafts to OpenCode native queue (11) ",[[3,30],[14,1],[12,59],[3,30]]], +[" View / cancel native pending messages (2) ",[[3,30],[14,1],[12,59],[3,30]]], +[" Clear draft list ",[[3,30],[14,1],[12,59],[3,30]]], +[" Clear native queued user prompts ",[[3,30],[14,1],[12,59],[3,30]]], +[" ┃ Close ",[[3,2],[16,1],[7,27],[14,1],[12,59],[7,28],[3,2]]], +[" ┃ 1 queued · Write the test ",[[3,2],[16,1],[7,2],[9,1],[7,1],[9,6],[7,1],[17,1],[7,1],[17,5],[7,1],[17,3],[7,1],[17,4],[12,60],[7,28],[3,2]]], +[" ┃ ",[[3,2],[16,1],[7,115],[3,2]]], +[" ",[[3,120]]], +[" ┃ ",[[3,2],[16,1],[0,115],[3,2]]], +[" ┃ ",[[3,2],[16,1],[0,115],[3,2]]], +[" ┃ ",[[3,2],[16,1],[0,115],[3,2]]], +[" ┃ ",[[3,2],[16,1],[0,115],[3,2]]], +[" ╹▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀ ",[[3,2],[16,1],[18,115],[3,2]]], +[" /tmp/opencode/packages/tui:main shift+tab agents ctrl+p commands ",[[3,2],[4,31],[3,52],[19,9],[3,1],[4,6],[3,2],[19,6],[3,1],[4,8],[3,2]]], +[" ",[[3,120]]] +]} diff --git a/packages/cli-rs/parity/fixtures/P.8/queue-manager/cancel.json b/packages/cli-rs/parity/fixtures/P.8/queue-manager/cancel.json new file mode 100644 index 000000000000..0bd2f9f8821e --- /dev/null +++ b/packages/cli-rs/parity/fixtures/P.8/queue-manager/cancel.json @@ -0,0 +1,36 @@ +{"width":120,"height":34,"styles":["#ffffffff #0d0d0dff 0","#3d434bff #0d0d0dff 1","#696969ff #0d0d0dff 1","#ffffffff #030303ff 0","#353535ff #030303ff 0","#313f69ff #030303ff 0","#313f69ff #080808ff 0","#ffffffff #080808ff 0","#353535ff #0d0d0dff 0","#696969ff #080808ff 0","#696969ff #0d0d0dff 0","#626262ff #030303ff 0","#ffffffff #141414ff 0","#808080ff #141414ff 0","#ffffffff #23344bff 0","#1e1e1eff #030303ff 0","#353535ff #080808ff 0","#0d0d0dff #030303ff 0","#696969ff #030303ff 0"],"lines":[ +[" ⠋ Queue the work + ",[[0,1],[1,1],[0,1],[2,5],[0,1],[2,3],[0,1],[2,4],[0,15],[3,1],[4,1],[3,86]]], +[" ┃ ┃ ",[[3,71],[5,1],[0,45],[5,1],[3,2]]], +[" ┃ ┃ Published x ┃ ",[[3,2],[6,1],[7,68],[6,1],[0,2],[2,9],[0,31],[8,1],[0,2],[6,1],[3,2]]], +[" ┃ Queue the work ┃ ┃ ",[[3,2],[6,1],[7,2],[9,5],[7,1],[9,3],[7,1],[9,4],[7,52],[6,1],[0,45],[6,1],[3,2]]], +[" ┃ ┃ 11 messages admitted to the native queue. ┃ ",[[3,2],[6,1],[7,68],[6,1],[0,2],[10,2],[0,1],[10,8],[0,1],[10,8],[0,1],[10,2],[0,1],[10,3],[0,1],[10,6],[0,1],[10,6],[0,2],[6,1],[3,2]]], +[" ┃ ┃ ",[[3,71],[5,1],[0,45],[5,1],[3,2]]], +[" Ready. ",[[3,5],[11,6],[3,109]]], +[" ",[[3,120]]], +[" Build · provider/model · 1.0s ",[[3,5],[5,5],[3,1],[4,1],[3,1],[4,14],[3,1],[4,1],[3,1],[4,4],[3,86]]], +[" ",[[3,30],[12,60],[3,30]]], +[" Cancel pending item? esc ",[[3,30],[12,54],[13,3],[12,3],[3,30]]], +[" ",[[3,30],[12,60],[3,30]]], +[" This cannot stop a message already being executed; ",[[3,30],[12,3],[13,51],[12,6],[3,30]]], +[" only still-pending items can be cancelled. ",[[3,30],[12,3],[13,42],[12,15],[3,30]]], +[" ",[[3,30],[12,60],[3,30]]], +[" Keep Cancel Item ",[[3,30],[12,39],[13,4],[12,1],[14,13],[12,3],[3,30]]], +[" ",[[3,30],[12,60],[3,30]]], +[" ",[[3,120]]], +[" ",[[3,120]]], +[" ",[[3,120]]], +[" ",[[3,120]]], +[" ",[[3,120]]], +[" ",[[3,120]]], +[" ┃ ",[[3,2],[15,1],[7,115],[3,2]]], +[" ┃ 1 queued · Write the tests ",[[3,2],[15,1],[7,2],[9,1],[7,1],[9,6],[7,1],[16,1],[7,1],[16,5],[7,1],[16,3],[7,1],[16,5],[7,87],[3,2]]], +[" ┃ ",[[3,2],[15,1],[7,115],[3,2]]], +[" ",[[3,120]]], +[" ┃ ",[[3,2],[15,1],[0,115],[3,2]]], +[" ┃ ",[[3,2],[15,1],[0,115],[3,2]]], +[" ┃ ",[[3,2],[15,1],[0,115],[3,2]]], +[" ┃ ",[[3,2],[15,1],[0,115],[3,2]]], +[" ╹▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀ ",[[3,2],[15,1],[17,115],[3,2]]], +[" /tmp/opencode/packages/tui:main shift+tab agents ctrl+p commands ",[[3,2],[4,31],[3,52],[18,9],[3,1],[4,6],[3,2],[18,6],[3,1],[4,8],[3,2]]], +[" ",[[3,120]]] +]} diff --git a/packages/cli-rs/parity/fixtures/P.8/queue-manager/cancelled.json b/packages/cli-rs/parity/fixtures/P.8/queue-manager/cancelled.json new file mode 100644 index 000000000000..417caebefa86 --- /dev/null +++ b/packages/cli-rs/parity/fixtures/P.8/queue-manager/cancelled.json @@ -0,0 +1,36 @@ +{"width":120,"height":34,"styles":["#ffffffff #0d0d0dff 0","#3d434bff #0d0d0dff 1","#696969ff #0d0d0dff 1","#ffffffff #030303ff 0","#353535ff #030303ff 0","#313f69ff #030303ff 0","#313f69ff #080808ff 0","#ffffffff #080808ff 0","#353535ff #0d0d0dff 0","#696969ff #080808ff 0","#696969ff #0d0d0dff 0","#626262ff #030303ff 0","#ffffffff #141414ff 0","#808080ff #141414ff 0","#7699feff #141414ff 0","#ffffffff #23344bff 0","#93a2b7ff #23344bff 0","#1e1e1eff #030303ff 0","#353535ff #080808ff 0","#0d0d0dff #030303ff 0","#696969ff #030303ff 0"],"lines":[ +[" ⠋ Queue the work + ",[[0,1],[1,1],[0,1],[2,5],[0,1],[2,3],[0,1],[2,4],[0,15],[3,1],[4,1],[3,86]]], +[" ┃ ┃ ",[[3,71],[5,1],[0,45],[5,1],[3,2]]], +[" ┃ ┃ Published x ┃ ",[[3,2],[6,1],[7,68],[6,1],[0,2],[2,9],[0,31],[8,1],[0,2],[6,1],[3,2]]], +[" ┃ Queue the work ┃ ┃ ",[[3,2],[6,1],[7,2],[9,5],[7,1],[9,3],[7,1],[9,4],[7,52],[6,1],[0,45],[6,1],[3,2]]], +[" ┃ ┃ 11 messages admitted to the native queue. ┃ ",[[3,2],[6,1],[7,68],[6,1],[0,2],[10,2],[0,1],[10,8],[0,1],[10,8],[0,1],[10,2],[0,1],[10,3],[0,1],[10,6],[0,1],[10,6],[0,2],[6,1],[3,2]]], +[" ┃ ┃ ",[[3,71],[5,1],[0,45],[5,1],[3,2]]], +[" Ready. ",[[3,5],[11,6],[3,109]]], +[" ",[[3,120]]], +[" Build · provider/model · 1.0s ",[[3,5],[5,5],[3,1],[4,1],[3,1],[4,14],[3,1],[4,1],[3,1],[4,4],[3,86]]], +[" ",[[3,30],[12,60],[3,30]]], +[" OpenCode native inbox (2) esc ",[[3,30],[12,53],[13,3],[12,4],[3,30]]], +[" ",[[3,30],[12,60],[3,30]]], +[" Search ",[[3,30],[12,4],[13,6],[12,50],[3,30]]], +[" ",[[3,30],[12,60],[3,30]]], +[" ┃ 001. Write the tests queue ",[[3,30],[14,1],[15,23],[16,6],[15,30],[3,30]]], +[" 002. Continue if you have next steps queue ",[[3,30],[14,1],[12,39],[13,6],[12,14],[3,30]]], +[" Back ",[[3,30],[14,1],[12,59],[3,30]]], +[" ",[[3,30],[12,60],[3,30]]], +[" ",[[3,120]]], +[" ",[[3,120]]], +[" ",[[3,120]]], +[" ",[[3,120]]], +[" ",[[3,120]]], +[" ┃ ",[[3,2],[17,1],[7,115],[3,2]]], +[" ┃ 1 queued · Write the tests ",[[3,2],[17,1],[7,2],[9,1],[7,1],[9,6],[7,1],[18,1],[7,1],[18,5],[7,1],[18,3],[7,1],[18,5],[7,87],[3,2]]], +[" ┃ ",[[3,2],[17,1],[7,115],[3,2]]], +[" ",[[3,120]]], +[" ┃ ",[[3,2],[17,1],[0,115],[3,2]]], +[" ┃ ",[[3,2],[17,1],[0,115],[3,2]]], +[" ┃ ",[[3,2],[17,1],[0,115],[3,2]]], +[" ┃ ",[[3,2],[17,1],[0,115],[3,2]]], +[" ╹▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀ ",[[3,2],[17,1],[19,115],[3,2]]], +[" /tmp/opencode/packages/tui:main shift+tab agents ctrl+p commands ",[[3,2],[4,31],[3,52],[20,9],[3,1],[4,6],[3,2],[20,6],[3,1],[4,8],[3,2]]], +[" ",[[3,120]]] +]} diff --git a/packages/cli-rs/parity/fixtures/P.8/queue-manager/closed.json b/packages/cli-rs/parity/fixtures/P.8/queue-manager/closed.json new file mode 100644 index 000000000000..ecb31dafc8e5 --- /dev/null +++ b/packages/cli-rs/parity/fixtures/P.8/queue-manager/closed.json @@ -0,0 +1,36 @@ +{"width":120,"height":34,"styles":["#ffffffff #202020ff 0","#93a2b7ff #202020ff 1","#ffffffff #202020ff 1","#808080ff #080808ff 0","#ffffffff #080808ff 0","#7699feff #080808ff 0","#7699feff #141414ff 0","#ffffffff #141414ff 0","#808080ff #202020ff 0","#eeeeeeff #080808ff 0","#484848ff #080808ff 0","#808080ff #141414ff 0","#202020ff #080808ff 0"],"lines":[ +[" ⠋ Queue the work + ",[[0,1],[1,1],[0,1],[2,14],[0,15],[3,3],[4,85]]], +[" ┃ ┃ ",[[4,71],[5,1],[0,45],[5,1],[4,2]]], +[" ┃ ┃ Published x ┃ ",[[4,2],[6,1],[7,68],[6,1],[0,2],[2,9],[0,31],[8,1],[0,2],[6,1],[4,2]]], +[" ┃ Queue the work ┃ ┃ ",[[4,2],[6,1],[7,68],[6,1],[0,45],[6,1],[4,2]]], +[" ┃ ┃ 11 messages admitted to the native queue. ┃ ",[[4,2],[6,1],[7,68],[6,1],[0,45],[6,1],[4,2]]], +[" ┃ ┃ ",[[4,71],[5,1],[0,45],[5,1],[4,2]]], +[" Ready. ",[[4,5],[9,6],[4,109]]], +[" ",[[4,120]]], +[" Build · provider/model · 1.0s ",[[4,5],[5,5],[3,24],[4,86]]], +[" ",[[4,120]]], +[" ",[[4,120]]], +[" ",[[4,120]]], +[" ",[[4,120]]], +[" ",[[4,120]]], +[" ",[[4,120]]], +[" ",[[4,120]]], +[" ",[[4,120]]], +[" ",[[4,120]]], +[" ",[[4,120]]], +[" ",[[4,120]]], +[" ",[[4,120]]], +[" ",[[4,120]]], +[" ",[[4,120]]], +[" ┃ ",[[4,2],[10,1],[7,115],[4,2]]], +[" ┃ 1 queued · Write the tests ",[[4,2],[10,1],[7,10],[11,18],[7,87],[4,2]]], +[" ┃ ",[[4,2],[10,1],[7,115],[4,2]]], +[" ",[[4,120]]], +[" ┃ ",[[4,2],[10,1],[0,115],[4,2]]], +[" ┃ ",[[4,2],[10,1],[0,115],[4,2]]], +[" ┃ ",[[4,2],[10,1],[0,115],[4,2]]], +[" ┃ ",[[4,2],[10,1],[0,115],[4,2]]], +[" ╹▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀ ",[[4,2],[10,1],[12,115],[4,2]]], +[" /tmp/opencode/packages/tui:main shift+tab agents ctrl+p commands ",[[4,2],[3,31],[4,62],[3,6],[4,9],[3,8],[4,2]]], +[" ",[[4,120]]] +]} diff --git a/packages/cli-rs/parity/fixtures/P.8/queue-manager/count.json b/packages/cli-rs/parity/fixtures/P.8/queue-manager/count.json new file mode 100644 index 000000000000..83f353e3025b --- /dev/null +++ b/packages/cli-rs/parity/fixtures/P.8/queue-manager/count.json @@ -0,0 +1,36 @@ +{"width":120,"height":34,"styles":["#ffffffff #0d0d0dff 0","#3d434bff #0d0d0dff 1","#696969ff #0d0d0dff 1","#ffffffff #030303ff 0","#353535ff #030303ff 0","#313f69ff #030303ff 0","#313f69ff #080808ff 0","#ffffffff #080808ff 0","#353535ff #0d0d0dff 0","#696969ff #080808ff 0","#696969ff #0d0d0dff 0","#626262ff #030303ff 0","#ffffffff #141414ff 0","#808080ff #141414ff 0","#7699feff #141414ff 0","#ffffffff #23344bff 0","#1e1e1eff #030303ff 0","#353535ff #080808ff 0","#0d0d0dff #030303ff 0","#696969ff #030303ff 0"],"lines":[ +[" ⠋ Queue the work + ",[[0,1],[1,1],[0,1],[2,5],[0,1],[2,3],[0,1],[2,4],[0,15],[3,1],[4,1],[3,86]]], +[" ┃ ┃ ",[[3,77],[5,1],[0,39],[5,1],[3,2]]], +[" ┃ ┃ Added x ┃ ",[[3,2],[6,1],[7,74],[6,1],[0,2],[2,5],[0,29],[8,1],[0,2],[6,1],[3,2]]], +[" ┃ Queue the work ┃ ┃ ",[[3,2],[6,1],[7,2],[9,5],[7,1],[9,3],[7,1],[9,4],[7,58],[6,1],[0,39],[6,1],[3,2]]], +[" ┃ ┃ Message appended to the draft list. ┃ ",[[3,2],[6,1],[7,74],[6,1],[0,2],[10,7],[0,1],[10,8],[0,1],[10,2],[0,1],[10,3],[0,1],[10,5],[0,1],[10,5],[0,2],[6,1],[3,2]]], +[" ┃ ┃ ",[[3,77],[5,1],[0,39],[5,1],[3,2]]], +[" Ready. ",[[3,5],[11,6],[3,109]]], +[" ",[[3,120]]], +[" Build · provider/model · 1.0s ",[[3,5],[5,5],[3,1],[4,1],[3,1],[4,14],[3,1],[4,1],[3,1],[4,4],[3,86]]], +[" ",[[3,30],[12,60],[3,30]]], +[" Repeat count esc ",[[3,30],[12,53],[13,3],[12,4],[3,30]]], +[" ",[[3,30],[12,60],[3,30]]], +[" Search ",[[3,30],[12,4],[13,6],[12,50],[3,30]]], +[" ",[[3,30],[12,60],[3,30]]], +[" ┃ 10 ",[[3,30],[14,1],[15,59],[3,30]]], +[" 25 ",[[3,30],[14,1],[12,59],[3,30]]], +[" 50 ",[[3,30],[14,1],[12,59],[3,30]]], +[" 100 ",[[3,30],[14,1],[12,59],[3,30]]], +[" 200 ",[[3,30],[14,1],[12,59],[3,30]]], +[" Custom (1-500) ",[[3,30],[14,1],[12,59],[3,30]]], +[" ",[[3,30],[12,60],[3,30]]], +[" ",[[3,120]]], +[" ",[[3,120]]], +[" ┃ ",[[3,2],[16,1],[7,115],[3,2]]], +[" ┃ 1 queued · Write the tests ",[[3,2],[16,1],[7,2],[9,1],[7,1],[9,6],[7,1],[17,1],[7,1],[17,5],[7,1],[17,3],[7,1],[17,5],[7,87],[3,2]]], +[" ┃ ",[[3,2],[16,1],[7,115],[3,2]]], +[" ",[[3,120]]], +[" ┃ ",[[3,2],[16,1],[0,115],[3,2]]], +[" ┃ ",[[3,2],[16,1],[0,115],[3,2]]], +[" ┃ ",[[3,2],[16,1],[0,115],[3,2]]], +[" ┃ ",[[3,2],[16,1],[0,115],[3,2]]], +[" ╹▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀ ",[[3,2],[16,1],[18,115],[3,2]]], +[" /tmp/opencode/packages/tui:main shift+tab agents ctrl+p commands ",[[3,2],[4,31],[3,52],[19,9],[3,1],[4,6],[3,2],[19,6],[3,1],[4,8],[3,2]]], +[" ",[[3,120]]] +]} diff --git a/packages/cli-rs/parity/fixtures/P.8/queue-manager/drafts.json b/packages/cli-rs/parity/fixtures/P.8/queue-manager/drafts.json new file mode 100644 index 000000000000..71494a0eeeb7 --- /dev/null +++ b/packages/cli-rs/parity/fixtures/P.8/queue-manager/drafts.json @@ -0,0 +1,36 @@ +{"width":120,"height":34,"styles":["#ffffffff #0d0d0dff 0","#3d434bff #0d0d0dff 1","#696969ff #0d0d0dff 1","#ffffffff #030303ff 0","#353535ff #030303ff 0","#313f69ff #030303ff 0","#313f69ff #080808ff 0","#ffffffff #080808ff 0","#353535ff #0d0d0dff 0","#696969ff #080808ff 0","#696969ff #0d0d0dff 0","#626262ff #030303ff 0","#ffffffff #141414ff 0","#808080ff #141414ff 0","#7699feff #141414ff 0","#ffffffff #23344bff 0","#1e1e1eff #030303ff 0","#353535ff #080808ff 0","#0d0d0dff #030303ff 0","#696969ff #030303ff 0"],"lines":[ +[" ⠋ Queue the work + ",[[0,1],[1,1],[0,1],[2,5],[0,1],[2,3],[0,1],[2,4],[0,15],[3,1],[4,1],[3,86]]], +[" ┃ ┃ ",[[3,58],[5,1],[0,58],[5,1],[3,2]]], +[" ┃ ┃ Draft ready x ┃ ",[[3,2],[6,1],[7,55],[6,1],[0,2],[2,5],[0,1],[2,5],[0,42],[8,1],[0,2],[6,1],[3,2]]], +[" ┃ Queue the work ┃ ┃ ",[[3,2],[6,1],[7,2],[9,5],[7,1],[9,3],[7,1],[9,4],[7,39],[6,1],[0,58],[6,1],[3,2]]], +[" ┃ ┃ 10 items added. Use 'Publish drafts' to send them to ┃ ",[[3,2],[6,1],[7,55],[6,1],[0,2],[10,2],[0,1],[10,5],[0,1],[10,6],[0,1],[10,3],[0,1],[10,8],[0,1],[10,7],[0,1],[10,2],[0,1],[10,4],[0,1],[10,4],[0,1],[10,2],[0,4],[6,1],[3,2]]], +[" ┃ the native queue. ┃ ",[[3,58],[5,1],[0,2],[10,3],[0,1],[10,6],[0,1],[10,6],[0,39],[5,1],[3,2]]], +[" Ready. ┃ ┃ ",[[3,5],[11,6],[3,47],[5,1],[0,58],[5,1],[3,2]]], +[" ",[[3,120]]], +[" Build · provider/model · 1.0s ",[[3,5],[5,5],[3,1],[4,1],[3,1],[4,14],[3,1],[4,1],[3,1],[4,4],[3,86]]], +[" ",[[3,30],[12,60],[3,30]]], +[" Drafts (11) - choose one esc ",[[3,30],[12,53],[13,3],[12,4],[3,30]]], +[" ",[[3,30],[12,60],[3,30]]], +[" Search ",[[3,30],[12,4],[13,6],[12,50],[3,30]]], +[" ",[[3,30],[12,60],[3,30]]], +[" ┃ 001. Review the diff ",[[3,30],[14,1],[15,59],[3,30]]], +[" 002. continue ",[[3,30],[14,1],[12,59],[3,30]]], +[" 003. continue ",[[3,30],[14,1],[12,59],[3,30]]], +[" 004. continue ",[[3,30],[14,1],[12,59],[3,30]]], +[" 005. continue ",[[3,30],[14,1],[12,59],[3,30]]], +[" 006. continue ",[[3,30],[14,1],[12,59],[3,30]]], +[" 007. continue ",[[3,30],[14,1],[12,59],[3,30]]], +[" 008. continue ",[[3,30],[14,1],[12,59],[3,30]]], +[" 009. continue ",[[3,30],[14,1],[12,59],[3,30]]], +[" ┃ 010. continue ",[[3,2],[16,1],[7,27],[14,1],[12,59],[7,28],[3,2]]], +[" ┃ 1 queued · Write the test 011. continue ",[[3,2],[16,1],[7,2],[9,1],[7,1],[9,6],[7,1],[17,1],[7,1],[17,5],[7,1],[17,3],[7,1],[17,4],[14,1],[12,59],[7,28],[3,2]]], +[" ┃ ",[[3,2],[16,1],[7,27],[12,60],[7,28],[3,2]]], +[" ",[[3,120]]], +[" ┃ ",[[3,2],[16,1],[0,115],[3,2]]], +[" ┃ ",[[3,2],[16,1],[0,115],[3,2]]], +[" ┃ ",[[3,2],[16,1],[0,115],[3,2]]], +[" ┃ ",[[3,2],[16,1],[0,115],[3,2]]], +[" ╹▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀ ",[[3,2],[16,1],[18,115],[3,2]]], +[" /tmp/opencode/packages/tui:main shift+tab agents ctrl+p commands ",[[3,2],[4,31],[3,52],[19,9],[3,1],[4,6],[3,2],[19,6],[3,1],[4,8],[3,2]]], +[" ",[[3,120]]] +]} diff --git a/packages/cli-rs/parity/fixtures/P.8/queue-manager/inbox.json b/packages/cli-rs/parity/fixtures/P.8/queue-manager/inbox.json new file mode 100644 index 000000000000..417caebefa86 --- /dev/null +++ b/packages/cli-rs/parity/fixtures/P.8/queue-manager/inbox.json @@ -0,0 +1,36 @@ +{"width":120,"height":34,"styles":["#ffffffff #0d0d0dff 0","#3d434bff #0d0d0dff 1","#696969ff #0d0d0dff 1","#ffffffff #030303ff 0","#353535ff #030303ff 0","#313f69ff #030303ff 0","#313f69ff #080808ff 0","#ffffffff #080808ff 0","#353535ff #0d0d0dff 0","#696969ff #080808ff 0","#696969ff #0d0d0dff 0","#626262ff #030303ff 0","#ffffffff #141414ff 0","#808080ff #141414ff 0","#7699feff #141414ff 0","#ffffffff #23344bff 0","#93a2b7ff #23344bff 0","#1e1e1eff #030303ff 0","#353535ff #080808ff 0","#0d0d0dff #030303ff 0","#696969ff #030303ff 0"],"lines":[ +[" ⠋ Queue the work + ",[[0,1],[1,1],[0,1],[2,5],[0,1],[2,3],[0,1],[2,4],[0,15],[3,1],[4,1],[3,86]]], +[" ┃ ┃ ",[[3,71],[5,1],[0,45],[5,1],[3,2]]], +[" ┃ ┃ Published x ┃ ",[[3,2],[6,1],[7,68],[6,1],[0,2],[2,9],[0,31],[8,1],[0,2],[6,1],[3,2]]], +[" ┃ Queue the work ┃ ┃ ",[[3,2],[6,1],[7,2],[9,5],[7,1],[9,3],[7,1],[9,4],[7,52],[6,1],[0,45],[6,1],[3,2]]], +[" ┃ ┃ 11 messages admitted to the native queue. ┃ ",[[3,2],[6,1],[7,68],[6,1],[0,2],[10,2],[0,1],[10,8],[0,1],[10,8],[0,1],[10,2],[0,1],[10,3],[0,1],[10,6],[0,1],[10,6],[0,2],[6,1],[3,2]]], +[" ┃ ┃ ",[[3,71],[5,1],[0,45],[5,1],[3,2]]], +[" Ready. ",[[3,5],[11,6],[3,109]]], +[" ",[[3,120]]], +[" Build · provider/model · 1.0s ",[[3,5],[5,5],[3,1],[4,1],[3,1],[4,14],[3,1],[4,1],[3,1],[4,4],[3,86]]], +[" ",[[3,30],[12,60],[3,30]]], +[" OpenCode native inbox (2) esc ",[[3,30],[12,53],[13,3],[12,4],[3,30]]], +[" ",[[3,30],[12,60],[3,30]]], +[" Search ",[[3,30],[12,4],[13,6],[12,50],[3,30]]], +[" ",[[3,30],[12,60],[3,30]]], +[" ┃ 001. Write the tests queue ",[[3,30],[14,1],[15,23],[16,6],[15,30],[3,30]]], +[" 002. Continue if you have next steps queue ",[[3,30],[14,1],[12,39],[13,6],[12,14],[3,30]]], +[" Back ",[[3,30],[14,1],[12,59],[3,30]]], +[" ",[[3,30],[12,60],[3,30]]], +[" ",[[3,120]]], +[" ",[[3,120]]], +[" ",[[3,120]]], +[" ",[[3,120]]], +[" ",[[3,120]]], +[" ┃ ",[[3,2],[17,1],[7,115],[3,2]]], +[" ┃ 1 queued · Write the tests ",[[3,2],[17,1],[7,2],[9,1],[7,1],[9,6],[7,1],[18,1],[7,1],[18,5],[7,1],[18,3],[7,1],[18,5],[7,87],[3,2]]], +[" ┃ ",[[3,2],[17,1],[7,115],[3,2]]], +[" ",[[3,120]]], +[" ┃ ",[[3,2],[17,1],[0,115],[3,2]]], +[" ┃ ",[[3,2],[17,1],[0,115],[3,2]]], +[" ┃ ",[[3,2],[17,1],[0,115],[3,2]]], +[" ┃ ",[[3,2],[17,1],[0,115],[3,2]]], +[" ╹▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀ ",[[3,2],[17,1],[19,115],[3,2]]], +[" /tmp/opencode/packages/tui:main shift+tab agents ctrl+p commands ",[[3,2],[4,31],[3,52],[20,9],[3,1],[4,6],[3,2],[20,6],[3,1],[4,8],[3,2]]], +[" ",[[3,120]]] +]} diff --git a/packages/cli-rs/parity/fixtures/P.8/queue-manager/item.json b/packages/cli-rs/parity/fixtures/P.8/queue-manager/item.json new file mode 100644 index 000000000000..0f207eb31582 --- /dev/null +++ b/packages/cli-rs/parity/fixtures/P.8/queue-manager/item.json @@ -0,0 +1,36 @@ +{"width":120,"height":34,"styles":["#ffffffff #0d0d0dff 0","#3d434bff #0d0d0dff 1","#696969ff #0d0d0dff 1","#ffffffff #030303ff 0","#353535ff #030303ff 0","#313f69ff #030303ff 0","#313f69ff #080808ff 0","#ffffffff #080808ff 0","#353535ff #0d0d0dff 0","#696969ff #080808ff 0","#696969ff #0d0d0dff 0","#626262ff #030303ff 0","#ffffffff #141414ff 0","#808080ff #141414ff 0","#7699feff #141414ff 0","#ffffffff #23344bff 0","#1e1e1eff #030303ff 0","#353535ff #080808ff 0","#0d0d0dff #030303ff 0","#696969ff #030303ff 0"],"lines":[ +[" ⠋ Queue the work + ",[[0,1],[1,1],[0,1],[2,5],[0,1],[2,3],[0,1],[2,4],[0,15],[3,1],[4,1],[3,86]]], +[" ┃ ┃ ",[[3,71],[5,1],[0,45],[5,1],[3,2]]], +[" ┃ ┃ Published x ┃ ",[[3,2],[6,1],[7,68],[6,1],[0,2],[2,9],[0,31],[8,1],[0,2],[6,1],[3,2]]], +[" ┃ Queue the work ┃ ┃ ",[[3,2],[6,1],[7,2],[9,5],[7,1],[9,3],[7,1],[9,4],[7,52],[6,1],[0,45],[6,1],[3,2]]], +[" ┃ ┃ 11 messages admitted to the native queue. ┃ ",[[3,2],[6,1],[7,68],[6,1],[0,2],[10,2],[0,1],[10,8],[0,1],[10,8],[0,1],[10,2],[0,1],[10,3],[0,1],[10,6],[0,1],[10,6],[0,2],[6,1],[3,2]]], +[" ┃ ┃ ",[[3,71],[5,1],[0,45],[5,1],[3,2]]], +[" Ready. ",[[3,5],[11,6],[3,109]]], +[" ",[[3,120]]], +[" Build · provider/model · 1.0s ",[[3,5],[5,5],[3,1],[4,1],[3,1],[4,14],[3,1],[4,1],[3,1],[4,4],[3,86]]], +[" ",[[3,30],[12,60],[3,30]]], +[" Pending item (user) esc ",[[3,30],[12,53],[13,3],[12,4],[3,30]]], +[" ",[[3,30],[12,60],[3,30]]], +[" Search ",[[3,30],[12,4],[13,6],[12,50],[3,30]]], +[" ",[[3,30],[12,60],[3,30]]], +[" ┃ Cancel this pending item ",[[3,30],[14,1],[15,59],[3,30]]], +[" Back ",[[3,30],[14,1],[12,59],[3,30]]], +[" ",[[3,30],[12,60],[3,30]]], +[" ",[[3,120]]], +[" ",[[3,120]]], +[" ",[[3,120]]], +[" ",[[3,120]]], +[" ",[[3,120]]], +[" ",[[3,120]]], +[" ┃ ",[[3,2],[16,1],[7,115],[3,2]]], +[" ┃ 1 queued · Write the tests ",[[3,2],[16,1],[7,2],[9,1],[7,1],[9,6],[7,1],[17,1],[7,1],[17,5],[7,1],[17,3],[7,1],[17,5],[7,87],[3,2]]], +[" ┃ ",[[3,2],[16,1],[7,115],[3,2]]], +[" ",[[3,120]]], +[" ┃ ",[[3,2],[16,1],[0,115],[3,2]]], +[" ┃ ",[[3,2],[16,1],[0,115],[3,2]]], +[" ┃ ",[[3,2],[16,1],[0,115],[3,2]]], +[" ┃ ",[[3,2],[16,1],[0,115],[3,2]]], +[" ╹▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀ ",[[3,2],[16,1],[18,115],[3,2]]], +[" /tmp/opencode/packages/tui:main shift+tab agents ctrl+p commands ",[[3,2],[4,31],[3,52],[19,9],[3,1],[4,6],[3,2],[19,6],[3,1],[4,8],[3,2]]], +[" ",[[3,120]]] +]} diff --git a/packages/cli-rs/parity/fixtures/P.8/queue-manager/menu.json b/packages/cli-rs/parity/fixtures/P.8/queue-manager/menu.json new file mode 100644 index 000000000000..81e0ae05523f --- /dev/null +++ b/packages/cli-rs/parity/fixtures/P.8/queue-manager/menu.json @@ -0,0 +1,36 @@ +{"width":120,"height":34,"styles":["#ffffffff #0d0d0dff 0","#3d434bff #0d0d0dff 1","#696969ff #0d0d0dff 1","#ffffffff #030303ff 0","#353535ff #030303ff 0","#313f69ff #080808ff 0","#ffffffff #080808ff 0","#696969ff #080808ff 0","#626262ff #030303ff 0","#313f69ff #030303ff 0","#ffffffff #141414ff 0","#808080ff #141414ff 0","#7699feff #141414ff 0","#ffffffff #23344bff 0","#1e1e1eff #030303ff 0","#353535ff #080808ff 0","#0d0d0dff #030303ff 0","#696969ff #030303ff 0"],"lines":[ +[" ⠋ Queue the work + ",[[0,1],[1,1],[0,1],[2,5],[0,1],[2,3],[0,1],[2,4],[0,15],[3,1],[4,1],[3,86]]], +[" ",[[3,120]]], +[" ┃ ",[[3,2],[5,1],[6,115],[3,2]]], +[" ┃ Queue the work ",[[3,2],[5,1],[6,2],[7,5],[6,1],[7,3],[6,1],[7,4],[6,99],[3,2]]], +[" ┃ ",[[3,2],[5,1],[6,115],[3,2]]], +[" ",[[3,120]]], +[" Ready. ",[[3,5],[8,6],[3,109]]], +[" ",[[3,120]]], +[" Build · provider/model · 1.0s ",[[3,5],[9,5],[3,1],[4,1],[3,1],[4,14],[3,1],[4,1],[3,1],[4,4],[3,86]]], +[" ",[[3,30],[10,60],[3,30]]], +[" Queue Manager | 0 drafts | 2 native pending esc ",[[3,30],[10,53],[11,3],[10,4],[3,30]]], +[" ",[[3,30],[10,60],[3,30]]], +[" Search ",[[3,30],[10,4],[11,6],[10,50],[3,30]]], +[" ",[[3,30],[10,60],[3,30]]], +[" ┃ Repeat 10 / 25 / 50 / 100 / 200 / custom ",[[3,30],[12,1],[13,59],[3,30]]], +[" Add one draft message ",[[3,30],[12,1],[10,59],[3,30]]], +[" Import lines from .txt ",[[3,30],[12,1],[10,59],[3,30]]], +[" Manage draft list (0) - edit, reorder, delete ",[[3,30],[12,1],[10,59],[3,30]]], +[" Reverse / sort draft list ",[[3,30],[12,1],[10,59],[3,30]]], +[" Publish all drafts to OpenCode native queue (0) ",[[3,30],[12,1],[10,59],[3,30]]], +[" View / cancel native pending messages (2) ",[[3,30],[12,1],[10,59],[3,30]]], +[" Clear draft list ",[[3,30],[12,1],[10,59],[3,30]]], +[" Clear native queued user prompts ",[[3,30],[12,1],[10,59],[3,30]]], +[" ┃ Close ",[[3,2],[14,1],[6,27],[12,1],[10,59],[6,28],[3,2]]], +[" ┃ 1 queued · Write the test ",[[3,2],[14,1],[6,2],[7,1],[6,1],[7,6],[6,1],[15,1],[6,1],[15,5],[6,1],[15,3],[6,1],[15,4],[10,60],[6,28],[3,2]]], +[" ┃ ",[[3,2],[14,1],[6,115],[3,2]]], +[" ",[[3,120]]], +[" ┃ ",[[3,2],[14,1],[0,115],[3,2]]], +[" ┃ ",[[3,2],[14,1],[0,115],[3,2]]], +[" ┃ ",[[3,2],[14,1],[0,115],[3,2]]], +[" ┃ ",[[3,2],[14,1],[0,115],[3,2]]], +[" ╹▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀ ",[[3,2],[14,1],[16,115],[3,2]]], +[" /tmp/opencode/packages/tui:main shift+tab agents ctrl+p commands ",[[3,2],[4,31],[3,52],[17,9],[3,1],[4,6],[3,2],[17,6],[3,1],[4,8],[3,2]]], +[" ",[[3,120]]] +]} diff --git a/packages/cli-rs/parity/fixtures/P.8/queue-manager/message.json b/packages/cli-rs/parity/fixtures/P.8/queue-manager/message.json new file mode 100644 index 000000000000..87527e0f3966 --- /dev/null +++ b/packages/cli-rs/parity/fixtures/P.8/queue-manager/message.json @@ -0,0 +1,36 @@ +{"width":120,"height":34,"styles":["#ffffffff #0d0d0dff 0","#3d434bff #0d0d0dff 1","#696969ff #0d0d0dff 1","#ffffffff #030303ff 0","#353535ff #030303ff 0","#313f69ff #030303ff 0","#313f69ff #080808ff 0","#ffffffff #080808ff 0","#353535ff #0d0d0dff 0","#696969ff #080808ff 0","#696969ff #0d0d0dff 0","#626262ff #030303ff 0","#ffffffff #141414ff 0","#808080ff #141414ff 0","#7699feff #141414ff 0","#ffffffff #23344bff 0","#1e1e1eff #030303ff 0","#353535ff #080808ff 0","#0d0d0dff #030303ff 0","#696969ff #030303ff 0"],"lines":[ +[" ⠋ Queue the work + ",[[0,1],[1,1],[0,1],[2,5],[0,1],[2,3],[0,1],[2,4],[0,15],[3,1],[4,1],[3,86]]], +[" ┃ ┃ ",[[3,77],[5,1],[0,39],[5,1],[3,2]]], +[" ┃ ┃ Added x ┃ ",[[3,2],[6,1],[7,74],[6,1],[0,2],[2,5],[0,29],[8,1],[0,2],[6,1],[3,2]]], +[" ┃ Queue the work ┃ ┃ ",[[3,2],[6,1],[7,2],[9,5],[7,1],[9,3],[7,1],[9,4],[7,58],[6,1],[0,39],[6,1],[3,2]]], +[" ┃ ┃ Message appended to the draft list. ┃ ",[[3,2],[6,1],[7,74],[6,1],[0,2],[10,7],[0,1],[10,8],[0,1],[10,2],[0,1],[10,3],[0,1],[10,5],[0,1],[10,5],[0,2],[6,1],[3,2]]], +[" ┃ ┃ ",[[3,77],[5,1],[0,39],[5,1],[3,2]]], +[" Ready. ",[[3,5],[11,6],[3,109]]], +[" ",[[3,120]]], +[" Build · provider/model · 1.0s ",[[3,5],[5,5],[3,1],[4,1],[3,1],[4,14],[3,1],[4,1],[3,1],[4,4],[3,86]]], +[" ",[[3,30],[12,60],[3,30]]], +[" Choose message esc ",[[3,30],[12,53],[13,3],[12,4],[3,30]]], +[" ",[[3,30],[12,60],[3,30]]], +[" Search ",[[3,30],[12,4],[13,6],[12,50],[3,30]]], +[" ",[[3,30],[12,60],[3,30]]], +[" ┃ devam et ",[[3,30],[14,1],[15,59],[3,30]]], +[" continue ",[[3,30],[14,1],[12,59],[3,30]]], +[" testleri çalıştır ve hataları düzelt ",[[3,30],[14,1],[12,59],[3,30]]], +[" Custom message ",[[3,30],[14,1],[12,59],[3,30]]], +[" ",[[3,30],[12,60],[3,30]]], +[" ",[[3,120]]], +[" ",[[3,120]]], +[" ",[[3,120]]], +[" ",[[3,120]]], +[" ┃ ",[[3,2],[16,1],[7,115],[3,2]]], +[" ┃ 1 queued · Write the tests ",[[3,2],[16,1],[7,2],[9,1],[7,1],[9,6],[7,1],[17,1],[7,1],[17,5],[7,1],[17,3],[7,1],[17,5],[7,87],[3,2]]], +[" ┃ ",[[3,2],[16,1],[7,115],[3,2]]], +[" ",[[3,120]]], +[" ┃ ",[[3,2],[16,1],[0,115],[3,2]]], +[" ┃ ",[[3,2],[16,1],[0,115],[3,2]]], +[" ┃ ",[[3,2],[16,1],[0,115],[3,2]]], +[" ┃ ",[[3,2],[16,1],[0,115],[3,2]]], +[" ╹▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀ ",[[3,2],[16,1],[18,115],[3,2]]], +[" /tmp/opencode/packages/tui:main shift+tab agents ctrl+p commands ",[[3,2],[4,31],[3,52],[19,9],[3,1],[4,6],[3,2],[19,6],[3,1],[4,8],[3,2]]], +[" ",[[3,120]]] +]} diff --git a/packages/cli-rs/parity/fixtures/P.8/queue-manager/moved.json b/packages/cli-rs/parity/fixtures/P.8/queue-manager/moved.json new file mode 100644 index 000000000000..9c8a07cce23f --- /dev/null +++ b/packages/cli-rs/parity/fixtures/P.8/queue-manager/moved.json @@ -0,0 +1,36 @@ +{"width":120,"height":34,"styles":["#ffffffff #0d0d0dff 0","#3d434bff #0d0d0dff 1","#696969ff #0d0d0dff 1","#ffffffff #030303ff 0","#353535ff #030303ff 0","#313f69ff #030303ff 0","#313f69ff #080808ff 0","#ffffffff #080808ff 0","#353535ff #0d0d0dff 0","#696969ff #080808ff 0","#696969ff #0d0d0dff 0","#626262ff #030303ff 0","#ffffffff #141414ff 0","#808080ff #141414ff 0","#7699feff #141414ff 0","#ffffffff #23344bff 0","#1e1e1eff #030303ff 0","#353535ff #080808ff 0","#0d0d0dff #030303ff 0","#696969ff #030303ff 0"],"lines":[ +[" ⠋ Queue the work + ",[[0,1],[1,1],[0,1],[2,5],[0,1],[2,3],[0,1],[2,4],[0,15],[3,1],[4,1],[3,86]]], +[" ┃ ┃ ",[[3,58],[5,1],[0,58],[5,1],[3,2]]], +[" ┃ ┃ Draft ready x ┃ ",[[3,2],[6,1],[7,55],[6,1],[0,2],[2,5],[0,1],[2,5],[0,42],[8,1],[0,2],[6,1],[3,2]]], +[" ┃ Queue the work ┃ ┃ ",[[3,2],[6,1],[7,2],[9,5],[7,1],[9,3],[7,1],[9,4],[7,39],[6,1],[0,58],[6,1],[3,2]]], +[" ┃ ┃ 10 items added. Use 'Publish drafts' to send them to ┃ ",[[3,2],[6,1],[7,55],[6,1],[0,2],[10,2],[0,1],[10,5],[0,1],[10,6],[0,1],[10,3],[0,1],[10,8],[0,1],[10,7],[0,1],[10,2],[0,1],[10,4],[0,1],[10,4],[0,1],[10,2],[0,4],[6,1],[3,2]]], +[" ┃ the native queue. ┃ ",[[3,58],[5,1],[0,2],[10,3],[0,1],[10,6],[0,1],[10,6],[0,39],[5,1],[3,2]]], +[" Ready. ┃ ┃ ",[[3,5],[11,6],[3,47],[5,1],[0,58],[5,1],[3,2]]], +[" ",[[3,120]]], +[" Build · provider/model · 1.0s ",[[3,5],[5,5],[3,1],[4,1],[3,1],[4,14],[3,1],[4,1],[3,1],[4,4],[3,86]]], +[" ",[[3,30],[12,60],[3,30]]], +[" Drafts (11) - choose one esc ",[[3,30],[12,53],[13,3],[12,4],[3,30]]], +[" ",[[3,30],[12,60],[3,30]]], +[" Search ",[[3,30],[12,4],[13,6],[12,50],[3,30]]], +[" ",[[3,30],[12,60],[3,30]]], +[" ┃ 001. continue ",[[3,30],[14,1],[15,59],[3,30]]], +[" 002. Review the diff ",[[3,30],[14,1],[12,59],[3,30]]], +[" 003. continue ",[[3,30],[14,1],[12,59],[3,30]]], +[" 004. continue ",[[3,30],[14,1],[12,59],[3,30]]], +[" 005. continue ",[[3,30],[14,1],[12,59],[3,30]]], +[" 006. continue ",[[3,30],[14,1],[12,59],[3,30]]], +[" 007. continue ",[[3,30],[14,1],[12,59],[3,30]]], +[" 008. continue ",[[3,30],[14,1],[12,59],[3,30]]], +[" 009. continue ",[[3,30],[14,1],[12,59],[3,30]]], +[" ┃ 010. continue ",[[3,2],[16,1],[7,27],[14,1],[12,59],[7,28],[3,2]]], +[" ┃ 1 queued · Write the test 011. continue ",[[3,2],[16,1],[7,2],[9,1],[7,1],[9,6],[7,1],[17,1],[7,1],[17,5],[7,1],[17,3],[7,1],[17,4],[14,1],[12,59],[7,28],[3,2]]], +[" ┃ ",[[3,2],[16,1],[7,27],[12,60],[7,28],[3,2]]], +[" ",[[3,120]]], +[" ┃ ",[[3,2],[16,1],[0,115],[3,2]]], +[" ┃ ",[[3,2],[16,1],[0,115],[3,2]]], +[" ┃ ",[[3,2],[16,1],[0,115],[3,2]]], +[" ┃ ",[[3,2],[16,1],[0,115],[3,2]]], +[" ╹▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀ ",[[3,2],[16,1],[18,115],[3,2]]], +[" /tmp/opencode/packages/tui:main shift+tab agents ctrl+p commands ",[[3,2],[4,31],[3,52],[19,9],[3,1],[4,6],[3,2],[19,6],[3,1],[4,8],[3,2]]], +[" ",[[3,120]]] +]} diff --git a/packages/cli-rs/parity/fixtures/P.8/queue-manager/publish.json b/packages/cli-rs/parity/fixtures/P.8/queue-manager/publish.json new file mode 100644 index 000000000000..a85f2d227e5c --- /dev/null +++ b/packages/cli-rs/parity/fixtures/P.8/queue-manager/publish.json @@ -0,0 +1,36 @@ +{"width":120,"height":34,"styles":["#ffffffff #0d0d0dff 0","#3d434bff #0d0d0dff 1","#696969ff #0d0d0dff 1","#ffffffff #030303ff 0","#353535ff #030303ff 0","#313f69ff #030303ff 0","#313f69ff #080808ff 0","#ffffffff #080808ff 0","#353535ff #0d0d0dff 0","#696969ff #080808ff 0","#696969ff #0d0d0dff 0","#626262ff #030303ff 0","#ffffffff #141414ff 0","#808080ff #141414ff 0","#ffffffff #23344bff 0","#1e1e1eff #030303ff 0","#353535ff #080808ff 0","#0d0d0dff #030303ff 0","#696969ff #030303ff 0"],"lines":[ +[" ⠋ Queue the work + ",[[0,1],[1,1],[0,1],[2,5],[0,1],[2,3],[0,1],[2,4],[0,15],[3,1],[4,1],[3,86]]], +[" ┃ ┃ ",[[3,58],[5,1],[0,58],[5,1],[3,2]]], +[" ┃ ┃ Draft ready x ┃ ",[[3,2],[6,1],[7,55],[6,1],[0,2],[2,5],[0,1],[2,5],[0,42],[8,1],[0,2],[6,1],[3,2]]], +[" ┃ Queue the work ┃ ┃ ",[[3,2],[6,1],[7,2],[9,5],[7,1],[9,3],[7,1],[9,4],[7,39],[6,1],[0,58],[6,1],[3,2]]], +[" ┃ ┃ 10 items added. Use 'Publish drafts' to send them to ┃ ",[[3,2],[6,1],[7,55],[6,1],[0,2],[10,2],[0,1],[10,5],[0,1],[10,6],[0,1],[10,3],[0,1],[10,8],[0,1],[10,7],[0,1],[10,2],[0,1],[10,4],[0,1],[10,4],[0,1],[10,2],[0,4],[6,1],[3,2]]], +[" ┃ the native queue. ┃ ",[[3,58],[5,1],[0,2],[10,3],[0,1],[10,6],[0,1],[10,6],[0,39],[5,1],[3,2]]], +[" Ready. ┃ ┃ ",[[3,5],[11,6],[3,47],[5,1],[0,58],[5,1],[3,2]]], +[" ",[[3,120]]], +[" Build · provider/model · 1.0s ",[[3,5],[5,5],[3,1],[4,1],[3,1],[4,14],[3,1],[4,1],[3,1],[4,4],[3,86]]], +[" ",[[3,30],[12,60],[3,30]]], +[" Publish to OpenCode native queue? esc ",[[3,30],[12,54],[13,3],[12,3],[3,30]]], +[" ",[[3,30],[12,60],[3,30]]], +[" Send 11 messages with delivery=queue to THIS session? ",[[3,30],[12,3],[13,54],[12,3],[3,30]]], +[" They may begin executing immediately as the session ",[[3,30],[12,3],[13,52],[12,5],[3,30]]], +[" becomes idle. This can incur provider costs. ",[[3,30],[12,3],[13,44],[12,13],[3,30]]], +[" ",[[3,30],[12,60],[3,30]]], +[" Cancel Publish ",[[3,30],[12,41],[13,6],[12,1],[14,9],[12,3],[3,30]]], +[" ",[[3,30],[12,60],[3,30]]], +[" ",[[3,120]]], +[" ",[[3,120]]], +[" ",[[3,120]]], +[" ",[[3,120]]], +[" ",[[3,120]]], +[" ┃ ",[[3,2],[15,1],[7,115],[3,2]]], +[" ┃ 1 queued · Write the tests ",[[3,2],[15,1],[7,2],[9,1],[7,1],[9,6],[7,1],[16,1],[7,1],[16,5],[7,1],[16,3],[7,1],[16,5],[7,87],[3,2]]], +[" ┃ ",[[3,2],[15,1],[7,115],[3,2]]], +[" ",[[3,120]]], +[" ┃ ",[[3,2],[15,1],[0,115],[3,2]]], +[" ┃ ",[[3,2],[15,1],[0,115],[3,2]]], +[" ┃ ",[[3,2],[15,1],[0,115],[3,2]]], +[" ┃ ",[[3,2],[15,1],[0,115],[3,2]]], +[" ╹▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀ ",[[3,2],[15,1],[17,115],[3,2]]], +[" /tmp/opencode/packages/tui:main shift+tab agents ctrl+p commands ",[[3,2],[4,31],[3,52],[18,9],[3,1],[4,6],[3,2],[18,6],[3,1],[4,8],[3,2]]], +[" ",[[3,120]]] +]} diff --git a/packages/cli-rs/parity/fixtures/P.8/queue-manager/published.json b/packages/cli-rs/parity/fixtures/P.8/queue-manager/published.json new file mode 100644 index 000000000000..27c0c6571086 --- /dev/null +++ b/packages/cli-rs/parity/fixtures/P.8/queue-manager/published.json @@ -0,0 +1,36 @@ +{"width":120,"height":34,"styles":["#ffffffff #0d0d0dff 0","#3d434bff #0d0d0dff 1","#696969ff #0d0d0dff 1","#ffffffff #030303ff 0","#353535ff #030303ff 0","#313f69ff #030303ff 0","#313f69ff #080808ff 0","#ffffffff #080808ff 0","#353535ff #0d0d0dff 0","#696969ff #080808ff 0","#696969ff #0d0d0dff 0","#626262ff #030303ff 0","#ffffffff #141414ff 0","#808080ff #141414ff 0","#7699feff #141414ff 0","#ffffffff #23344bff 0","#1e1e1eff #030303ff 0","#353535ff #080808ff 0","#0d0d0dff #030303ff 0","#696969ff #030303ff 0"],"lines":[ +[" ⠋ Queue the work + ",[[0,1],[1,1],[0,1],[2,5],[0,1],[2,3],[0,1],[2,4],[0,15],[3,1],[4,1],[3,86]]], +[" ┃ ┃ ",[[3,71],[5,1],[0,45],[5,1],[3,2]]], +[" ┃ ┃ Published x ┃ ",[[3,2],[6,1],[7,68],[6,1],[0,2],[2,9],[0,31],[8,1],[0,2],[6,1],[3,2]]], +[" ┃ Queue the work ┃ ┃ ",[[3,2],[6,1],[7,2],[9,5],[7,1],[9,3],[7,1],[9,4],[7,52],[6,1],[0,45],[6,1],[3,2]]], +[" ┃ ┃ 11 messages admitted to the native queue. ┃ ",[[3,2],[6,1],[7,68],[6,1],[0,2],[10,2],[0,1],[10,8],[0,1],[10,8],[0,1],[10,2],[0,1],[10,3],[0,1],[10,6],[0,1],[10,6],[0,2],[6,1],[3,2]]], +[" ┃ ┃ ",[[3,71],[5,1],[0,45],[5,1],[3,2]]], +[" Ready. ",[[3,5],[11,6],[3,109]]], +[" ",[[3,120]]], +[" Build · provider/model · 1.0s ",[[3,5],[5,5],[3,1],[4,1],[3,1],[4,14],[3,1],[4,1],[3,1],[4,4],[3,86]]], +[" ",[[3,30],[12,60],[3,30]]], +[" Queue Manager | 0 drafts | 2 native pending esc ",[[3,30],[12,53],[13,3],[12,4],[3,30]]], +[" ",[[3,30],[12,60],[3,30]]], +[" Search ",[[3,30],[12,4],[13,6],[12,50],[3,30]]], +[" ",[[3,30],[12,60],[3,30]]], +[" ┃ Repeat 10 / 25 / 50 / 100 / 200 / custom ",[[3,30],[14,1],[15,59],[3,30]]], +[" Add one draft message ",[[3,30],[14,1],[12,59],[3,30]]], +[" Import lines from .txt ",[[3,30],[14,1],[12,59],[3,30]]], +[" Manage draft list (0) - edit, reorder, delete ",[[3,30],[14,1],[12,59],[3,30]]], +[" Reverse / sort draft list ",[[3,30],[14,1],[12,59],[3,30]]], +[" Publish all drafts to OpenCode native queue (0) ",[[3,30],[14,1],[12,59],[3,30]]], +[" View / cancel native pending messages (2) ",[[3,30],[14,1],[12,59],[3,30]]], +[" Clear draft list ",[[3,30],[14,1],[12,59],[3,30]]], +[" Clear native queued user prompts ",[[3,30],[14,1],[12,59],[3,30]]], +[" ┃ Close ",[[3,2],[16,1],[7,27],[14,1],[12,59],[7,28],[3,2]]], +[" ┃ 1 queued · Write the test ",[[3,2],[16,1],[7,2],[9,1],[7,1],[9,6],[7,1],[17,1],[7,1],[17,5],[7,1],[17,3],[7,1],[17,4],[12,60],[7,28],[3,2]]], +[" ┃ ",[[3,2],[16,1],[7,115],[3,2]]], +[" ",[[3,120]]], +[" ┃ ",[[3,2],[16,1],[0,115],[3,2]]], +[" ┃ ",[[3,2],[16,1],[0,115],[3,2]]], +[" ┃ ",[[3,2],[16,1],[0,115],[3,2]]], +[" ┃ ",[[3,2],[16,1],[0,115],[3,2]]], +[" ╹▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀ ",[[3,2],[16,1],[18,115],[3,2]]], +[" /tmp/opencode/packages/tui:main shift+tab agents ctrl+p commands ",[[3,2],[4,31],[3,52],[19,9],[3,1],[4,6],[3,2],[19,6],[3,1],[4,8],[3,2]]], +[" ",[[3,120]]] +]} diff --git a/packages/cli-rs/parity/fixtures/P.8/queue-manager/session.json b/packages/cli-rs/parity/fixtures/P.8/queue-manager/session.json new file mode 100644 index 000000000000..4982108a8254 --- /dev/null +++ b/packages/cli-rs/parity/fixtures/P.8/queue-manager/session.json @@ -0,0 +1,36 @@ +{"width":120,"height":34,"styles":["#ffffffff #202020ff 0","#93a2b7ff #202020ff 1","#ffffffff #202020ff 1","#808080ff #080808ff 0","#ffffffff #080808ff 0","#7699feff #141414ff 0","#ffffffff #141414ff 0","#eeeeeeff #080808ff 0","#7699feff #080808ff 0","#484848ff #080808ff 0","#808080ff #141414ff 0","#202020ff #080808ff 0"],"lines":[ +[" ⠋ Queue the work + ",[[0,1],[1,1],[0,1],[2,14],[0,15],[3,3],[4,85]]], +[" ",[[4,120]]], +[" ┃ ",[[4,2],[5,1],[6,115],[4,2]]], +[" ┃ Queue the work ",[[4,2],[5,1],[6,115],[4,2]]], +[" ┃ ",[[4,2],[5,1],[6,115],[4,2]]], +[" ",[[4,120]]], +[" Ready. ",[[4,5],[7,6],[4,109]]], +[" ",[[4,120]]], +[" Build · provider/model · 1.0s ",[[4,5],[8,5],[3,24],[4,86]]], +[" ",[[4,120]]], +[" ",[[4,120]]], +[" ",[[4,120]]], +[" ",[[4,120]]], +[" ",[[4,120]]], +[" ",[[4,120]]], +[" ",[[4,120]]], +[" ",[[4,120]]], +[" ",[[4,120]]], +[" ",[[4,120]]], +[" ",[[4,120]]], +[" ",[[4,120]]], +[" ",[[4,120]]], +[" ",[[4,120]]], +[" ┃ ",[[4,2],[9,1],[6,115],[4,2]]], +[" ┃ 1 queued · Write the tests ",[[4,2],[9,1],[6,10],[10,18],[6,87],[4,2]]], +[" ┃ ",[[4,2],[9,1],[6,115],[4,2]]], +[" ",[[4,120]]], +[" ┃ ",[[4,2],[9,1],[0,115],[4,2]]], +[" ┃ ",[[4,2],[9,1],[0,115],[4,2]]], +[" ┃ ",[[4,2],[9,1],[0,115],[4,2]]], +[" ┃ ",[[4,2],[9,1],[0,115],[4,2]]], +[" ╹▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀ ",[[4,2],[9,1],[11,115],[4,2]]], +[" /tmp/opencode/packages/tui:main shift+tab agents ctrl+p commands ",[[4,2],[3,31],[4,62],[3,6],[4,9],[3,8],[4,2]]], +[" ",[[4,120]]] +]} diff --git a/packages/cli-rs/parity/fixtures/P.8/queue-manager/slash.json b/packages/cli-rs/parity/fixtures/P.8/queue-manager/slash.json new file mode 100644 index 000000000000..21ee417a1677 --- /dev/null +++ b/packages/cli-rs/parity/fixtures/P.8/queue-manager/slash.json @@ -0,0 +1,36 @@ +{"width":120,"height":34,"styles":["#ffffffff #202020ff 0","#93a2b7ff #202020ff 1","#ffffffff #202020ff 1","#808080ff #080808ff 0","#ffffffff #080808ff 0","#7699feff #141414ff 0","#ffffffff #141414ff 0","#eeeeeeff #080808ff 0","#7699feff #080808ff 0","#484848ff #080808ff 0","#808080ff #141414ff 0","#ffffffff #23344bff 0","#202020ff #080808ff 0"],"lines":[ +[" ⠋ Queue the work + ",[[0,1],[1,1],[0,1],[2,14],[0,15],[3,3],[4,85]]], +[" ",[[4,120]]], +[" ┃ ",[[4,2],[5,1],[6,115],[4,2]]], +[" ┃ Queue the work ",[[4,2],[5,1],[6,115],[4,2]]], +[" ┃ ",[[4,2],[5,1],[6,115],[4,2]]], +[" ",[[4,120]]], +[" Ready. ",[[4,5],[7,6],[4,109]]], +[" ",[[4,120]]], +[" Build · provider/model · 1.0s ",[[4,5],[8,5],[3,24],[4,86]]], +[" ",[[4,120]]], +[" ",[[4,120]]], +[" ",[[4,120]]], +[" ",[[4,120]]], +[" ",[[4,120]]], +[" ",[[4,120]]], +[" ",[[4,120]]], +[" ",[[4,120]]], +[" ",[[4,120]]], +[" ",[[4,120]]], +[" ",[[4,120]]], +[" ",[[4,120]]], +[" ",[[4,120]]], +[" ",[[4,120]]], +[" ┃ ",[[4,2],[9,1],[6,115],[4,2]]], +[" ┃ 1 queued · Write the tests ",[[4,2],[9,1],[6,10],[10,18],[6,87],[4,2]]], +[" ┃ ",[[4,2],[9,1],[6,115],[4,2]]], +[" ┃ /qm Queue Manager ┃ ",[[4,2],[8,1],[11,114],[9,1],[4,2]]], +[" ┃ ",[[4,2],[9,1],[0,115],[4,2]]], +[" ┃ /qm ",[[4,2],[9,1],[0,115],[4,2]]], +[" ┃ ",[[4,2],[9,1],[0,115],[4,2]]], +[" ┃ ",[[4,2],[9,1],[0,115],[4,2]]], +[" ╹▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀ ",[[4,2],[9,1],[12,115],[4,2]]], +[" /tmp/opencode/packages/tui:main shift+tab agents ctrl+p commands ",[[4,2],[3,31],[4,62],[3,6],[4,9],[3,8],[4,2]]], +[" ",[[4,120]]] +]} diff --git a/packages/cli-rs/parity/fixtures/P.8/queue-manager/stage.json b/packages/cli-rs/parity/fixtures/P.8/queue-manager/stage.json new file mode 100644 index 000000000000..ec117059fd9b --- /dev/null +++ b/packages/cli-rs/parity/fixtures/P.8/queue-manager/stage.json @@ -0,0 +1,36 @@ +{"width":120,"height":34,"styles":["#ffffffff #0d0d0dff 0","#3d434bff #0d0d0dff 1","#696969ff #0d0d0dff 1","#ffffffff #030303ff 0","#353535ff #030303ff 0","#313f69ff #030303ff 0","#313f69ff #080808ff 0","#ffffffff #080808ff 0","#353535ff #0d0d0dff 0","#696969ff #080808ff 0","#696969ff #0d0d0dff 0","#626262ff #030303ff 0","#ffffffff #141414ff 0","#808080ff #141414ff 0","#ffffffff #23344bff 0","#1e1e1eff #030303ff 0","#353535ff #080808ff 0","#0d0d0dff #030303ff 0","#696969ff #030303ff 0"],"lines":[ +[" ⠋ Queue the work + ",[[0,1],[1,1],[0,1],[2,5],[0,1],[2,3],[0,1],[2,4],[0,15],[3,1],[4,1],[3,86]]], +[" ┃ ┃ ",[[3,77],[5,1],[0,39],[5,1],[3,2]]], +[" ┃ ┃ Added x ┃ ",[[3,2],[6,1],[7,74],[6,1],[0,2],[2,5],[0,29],[8,1],[0,2],[6,1],[3,2]]], +[" ┃ Queue the work ┃ ┃ ",[[3,2],[6,1],[7,2],[9,5],[7,1],[9,3],[7,1],[9,4],[7,58],[6,1],[0,39],[6,1],[3,2]]], +[" ┃ ┃ Message appended to the draft list. ┃ ",[[3,2],[6,1],[7,74],[6,1],[0,2],[10,7],[0,1],[10,8],[0,1],[10,2],[0,1],[10,3],[0,1],[10,5],[0,1],[10,5],[0,2],[6,1],[3,2]]], +[" ┃ ┃ ",[[3,77],[5,1],[0,39],[5,1],[3,2]]], +[" Ready. ",[[3,5],[11,6],[3,109]]], +[" ",[[3,120]]], +[" Build · provider/model · 1.0s ",[[3,5],[5,5],[3,1],[4,1],[3,1],[4,14],[3,1],[4,1],[3,1],[4,4],[3,86]]], +[" ",[[3,30],[12,60],[3,30]]], +[" Create repeated draft items? esc ",[[3,30],[12,54],[13,3],[12,3],[3,30]]], +[" ",[[3,30],[12,60],[3,30]]], +[" Stage 10 copies of 'continue'? No prompts will be sent ",[[3,30],[12,3],[13,54],[12,3],[3,30]]], +[" yet. ",[[3,30],[12,3],[13,4],[12,53],[3,30]]], +[" ",[[3,30],[12,60],[3,30]]], +[" Cancel Stage ",[[3,30],[12,43],[13,6],[12,1],[14,7],[12,3],[3,30]]], +[" ",[[3,30],[12,60],[3,30]]], +[" ",[[3,120]]], +[" ",[[3,120]]], +[" ",[[3,120]]], +[" ",[[3,120]]], +[" ",[[3,120]]], +[" ",[[3,120]]], +[" ┃ ",[[3,2],[15,1],[7,115],[3,2]]], +[" ┃ 1 queued · Write the tests ",[[3,2],[15,1],[7,2],[9,1],[7,1],[9,6],[7,1],[16,1],[7,1],[16,5],[7,1],[16,3],[7,1],[16,5],[7,87],[3,2]]], +[" ┃ ",[[3,2],[15,1],[7,115],[3,2]]], +[" ",[[3,120]]], +[" ┃ ",[[3,2],[15,1],[0,115],[3,2]]], +[" ┃ ",[[3,2],[15,1],[0,115],[3,2]]], +[" ┃ ",[[3,2],[15,1],[0,115],[3,2]]], +[" ┃ ",[[3,2],[15,1],[0,115],[3,2]]], +[" ╹▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀ ",[[3,2],[15,1],[17,115],[3,2]]], +[" /tmp/opencode/packages/tui:main shift+tab agents ctrl+p commands ",[[3,2],[4,31],[3,52],[18,9],[3,1],[4,6],[3,2],[18,6],[3,1],[4,8],[3,2]]], +[" ",[[3,120]]] +]} diff --git a/packages/cli-rs/parity/fixtures/P.8/queue-manager/staged.json b/packages/cli-rs/parity/fixtures/P.8/queue-manager/staged.json new file mode 100644 index 000000000000..e28b9e251e82 --- /dev/null +++ b/packages/cli-rs/parity/fixtures/P.8/queue-manager/staged.json @@ -0,0 +1,36 @@ +{"width":120,"height":34,"styles":["#ffffffff #0d0d0dff 0","#3d434bff #0d0d0dff 1","#696969ff #0d0d0dff 1","#ffffffff #030303ff 0","#353535ff #030303ff 0","#313f69ff #030303ff 0","#313f69ff #080808ff 0","#ffffffff #080808ff 0","#353535ff #0d0d0dff 0","#696969ff #080808ff 0","#696969ff #0d0d0dff 0","#626262ff #030303ff 0","#ffffffff #141414ff 0","#808080ff #141414ff 0","#7699feff #141414ff 0","#ffffffff #23344bff 0","#1e1e1eff #030303ff 0","#353535ff #080808ff 0","#0d0d0dff #030303ff 0","#696969ff #030303ff 0"],"lines":[ +[" ⠋ Queue the work + ",[[0,1],[1,1],[0,1],[2,5],[0,1],[2,3],[0,1],[2,4],[0,15],[3,1],[4,1],[3,86]]], +[" ┃ ┃ ",[[3,58],[5,1],[0,58],[5,1],[3,2]]], +[" ┃ ┃ Draft ready x ┃ ",[[3,2],[6,1],[7,55],[6,1],[0,2],[2,5],[0,1],[2,5],[0,42],[8,1],[0,2],[6,1],[3,2]]], +[" ┃ Queue the work ┃ ┃ ",[[3,2],[6,1],[7,2],[9,5],[7,1],[9,3],[7,1],[9,4],[7,39],[6,1],[0,58],[6,1],[3,2]]], +[" ┃ ┃ 10 items added. Use 'Publish drafts' to send them to ┃ ",[[3,2],[6,1],[7,55],[6,1],[0,2],[10,2],[0,1],[10,5],[0,1],[10,6],[0,1],[10,3],[0,1],[10,8],[0,1],[10,7],[0,1],[10,2],[0,1],[10,4],[0,1],[10,4],[0,1],[10,2],[0,4],[6,1],[3,2]]], +[" ┃ the native queue. ┃ ",[[3,58],[5,1],[0,2],[10,3],[0,1],[10,6],[0,1],[10,6],[0,39],[5,1],[3,2]]], +[" Ready. ┃ ┃ ",[[3,5],[11,6],[3,47],[5,1],[0,58],[5,1],[3,2]]], +[" ",[[3,120]]], +[" Build · provider/model · 1.0s ",[[3,5],[5,5],[3,1],[4,1],[3,1],[4,14],[3,1],[4,1],[3,1],[4,4],[3,86]]], +[" ",[[3,30],[12,60],[3,30]]], +[" Queue Manager | 11 drafts | 2 native pending esc ",[[3,30],[12,53],[13,3],[12,4],[3,30]]], +[" ",[[3,30],[12,60],[3,30]]], +[" Search ",[[3,30],[12,4],[13,6],[12,50],[3,30]]], +[" ",[[3,30],[12,60],[3,30]]], +[" ┃ Repeat 10 / 25 / 50 / 100 / 200 / custom ",[[3,30],[14,1],[15,59],[3,30]]], +[" Add one draft message ",[[3,30],[14,1],[12,59],[3,30]]], +[" Import lines from .txt ",[[3,30],[14,1],[12,59],[3,30]]], +[" Manage draft list (11) - edit, reorder, delete ",[[3,30],[14,1],[12,59],[3,30]]], +[" Reverse / sort draft list ",[[3,30],[14,1],[12,59],[3,30]]], +[" Publish all drafts to OpenCode native queue (11) ",[[3,30],[14,1],[12,59],[3,30]]], +[" View / cancel native pending messages (2) ",[[3,30],[14,1],[12,59],[3,30]]], +[" Clear draft list ",[[3,30],[14,1],[12,59],[3,30]]], +[" Clear native queued user prompts ",[[3,30],[14,1],[12,59],[3,30]]], +[" ┃ Close ",[[3,2],[16,1],[7,27],[14,1],[12,59],[7,28],[3,2]]], +[" ┃ 1 queued · Write the test ",[[3,2],[16,1],[7,2],[9,1],[7,1],[9,6],[7,1],[17,1],[7,1],[17,5],[7,1],[17,3],[7,1],[17,4],[12,60],[7,28],[3,2]]], +[" ┃ ",[[3,2],[16,1],[7,115],[3,2]]], +[" ",[[3,120]]], +[" ┃ ",[[3,2],[16,1],[0,115],[3,2]]], +[" ┃ ",[[3,2],[16,1],[0,115],[3,2]]], +[" ┃ ",[[3,2],[16,1],[0,115],[3,2]]], +[" ┃ ",[[3,2],[16,1],[0,115],[3,2]]], +[" ╹▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀ ",[[3,2],[16,1],[18,115],[3,2]]], +[" /tmp/opencode/packages/tui:main shift+tab agents ctrl+p commands ",[[3,2],[4,31],[3,52],[19,9],[3,1],[4,6],[3,2],[19,6],[3,1],[4,8],[3,2]]], +[" ",[[3,120]]] +]} diff --git a/packages/cli-rs/parity/fixtures/P.8/quick-switch.app.json b/packages/cli-rs/parity/fixtures/P.8/quick-switch.app.json new file mode 100644 index 000000000000..9d940ad20b25 --- /dev/null +++ b/packages/cli-rs/parity/fixtures/P.8/quick-switch.app.json @@ -0,0 +1,61 @@ +{ + "scenario": "P.8/quick-switch", + "width": 140, + "height": 34, + "directory": "/tmp/opencode/packages/tui", + "config": { + "experimental": {"new-designs":true}, + "plugins": ["./out/npm/node_modules/opencode-model-quick-switch"], + "animations": false, + "theme": {"name":"opencode"} + }, + "args": { + "sessionID": "ses_q" + }, + "env": { + "OPENCODE_PARITY_PLUGIN": "npm" + }, + "routes": [ + {"path":"/api/session/ses_q","json":{"data":{"id":"ses_q","title":"Switch models","projectID":"proj_test","cost":0,"tokens":{"input":0,"output":0,"reasoning":0,"cache":{"read":0,"write":0}},"time":{"created":2,"updated":2},"location":{"directory":"/tmp/opencode/packages/tui"}}}}, + {"path":"/api/session","json":{"data":[{"id":"ses_q","title":"Switch models","projectID":"proj_test","cost":0,"tokens":{"input":0,"output":0,"reasoning":0,"cache":{"read":0,"write":0}},"time":{"created":2,"updated":2},"location":{"directory":"/tmp/opencode/packages/tui"}}],"cursor":{}}}, + {"path":"/api/session/ses_q/message","json":{"data":[{"id":"msg_2","type":"assistant","agent":"build","model":{"providerID":"provider","id":"model"},"content":[{"type":"text","text":"Switched."}],"finish":"stop","time":{"created":2000,"completed":2001}},{"id":"msg_1","type":"user","text":"Switch it","time":{"created":1000}}],"cursor":{}}}, + {"path":"/api/session/ses_q/inbox","json":{"data":[]}} + ], + "steps": [ + {"checkpoint":"sidebar","until":"Requires OpenCode 2.2.5","masks":[{"x":59,"y":32,"width":22,"height":1,"reason":"TS plugin loading notice"}],"fixture":"P.8/quick-switch/sidebar"} + ], + "requests": { + "writes": [], + "reads": [ + {"method":"GET","path":"/api/agent","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":[]}}, + {"method":"GET","path":"/api/command","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":[]}}, + {"method":"GET","path":"/api/config","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":[]}, + {"method":"GET","path":"/api/experimental/job","query":{"descendants":["true"],"sessionID":["ses_q"],"status":["running"]},"status":200,"json":{"data":[]}}, + {"method":"GET","path":"/api/experimental/migration/v1","query":{},"status":200,"json":{"status":"completed"}}, + {"method":"GET","path":"/api/experimental/session/ses_q/terminal","query":{},"status":200,"json":{"data":[]}}, + {"method":"GET","path":"/api/form","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode"}},"data":[]}}, + {"method":"GET","path":"/api/fs/list","query":{"location[directory]":["<cwd>"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":[]}}, + {"method":"GET","path":"/api/info","query":{},"status":200,"json":{"version":"test","pid":0,"urls":[],"paths":{"tmp":"/tmp"},"capabilities":{"persistentPty":true}}}, + {"method":"GET","path":"/api/integration","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":[]}}, + {"method":"GET","path":"/api/location","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}}}, + {"method":"GET","path":"/api/mcp","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":[]}}, + {"method":"GET","path":"/api/mcp/resource","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":{"resources":[],"templates":[]}}}, + {"method":"GET","path":"/api/model","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":[]}}, + {"method":"GET","path":"/api/plugin","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":[]}}, + {"method":"GET","path":"/api/project","query":{},"status":200,"json":[]}, + {"method":"GET","path":"/api/provider","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":[]}}, + {"method":"GET","path":"/api/reference","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode/packages/tui","canonical":"/tmp/opencode/packages/tui"}},"data":[]}}, + {"method":"GET","path":"/api/session","query":{"limit":["200"],"order":["desc"],"parentID":["ses_q"]},"status":200,"json":{"data":[{"id":"ses_q","title":"Switch models","projectID":"proj_test","cost":0,"tokens":{"input":0,"output":0,"reasoning":0,"cache":{"read":0,"write":0}},"time":{"created":2,"updated":2},"location":{"directory":"/tmp/opencode/packages/tui"}}],"cursor":{}}}, + {"method":"GET","path":"/api/session/active","query":{},"status":200,"json":{"data":{}}}, + {"method":"GET","path":"/api/session/ses_q","query":{},"status":200,"json":{"data":{"id":"ses_q","title":"Switch models","projectID":"proj_test","cost":0,"tokens":{"input":0,"output":0,"reasoning":0,"cache":{"read":0,"write":0}},"time":{"created":2,"updated":2},"location":{"directory":"/tmp/opencode/packages/tui"}}}}, + {"method":"GET","path":"/api/session/ses_q/form","query":{},"status":200,"json":{"data":[]}}, + {"method":"GET","path":"/api/session/ses_q/inbox","query":{},"status":200,"json":{"data":[]}}, + {"method":"GET","path":"/api/session/ses_q/message","query":{"limit":["20"],"order":["desc"]},"status":200,"json":{"data":[{"id":"msg_2","type":"assistant","agent":"build","model":{"providerID":"provider","id":"model"},"content":[{"type":"text","text":"Switched."}],"finish":"stop","time":{"created":2000,"completed":2001}},{"id":"msg_1","type":"user","text":"Switch it","time":{"created":1000}}],"cursor":{}}}, + {"method":"GET","path":"/api/session/ses_q/permission","query":{},"status":200,"json":{"data":[]}}, + {"method":"GET","path":"/api/shell","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":[]}}, + {"method":"GET","path":"/api/skill","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":[]}}, + {"method":"GET","path":"/api/vcs","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":{"branch":{"current":"main","default":"main"}}}}, + {"method":"POST","path":"/api/rpc/opencode.goal/get","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"body":{"input":{"sessionID":"ses_q"}},"status":200,"json":{"output":null}} + ] + } +} diff --git a/packages/cli-rs/parity/fixtures/P.8/quick-switch/sidebar.json b/packages/cli-rs/parity/fixtures/P.8/quick-switch/sidebar.json new file mode 100644 index 000000000000..6cce44c8af0a --- /dev/null +++ b/packages/cli-rs/parity/fixtures/P.8/quick-switch/sidebar.json @@ -0,0 +1,36 @@ +{"width":140,"height":34,"styles":["#ffffffff #202020ff 0","#ffffffff #202020ff 1","#808080ff #080808ff 0","#ffffffff #080808ff 0","#ffffffff #141414ff 0","#7699feff #141414ff 0","#ffffffff #141414ff 1","#eeeeeeff #080808ff 0","#808080ff #141414ff 0","#7699feff #080808ff 0","#808080ff #202020ff 0","#484848ff #080808ff 0","#202020ff #080808ff 0","#00000000 #00000000 0"],"lines":[ +[" Switch models + ",[[0,3],[1,13],[0,16],[2,3],[3,105]]], +[" ",[[3,98],[4,42]]], +[" ┃ Switch models ",[[3,2],[5,1],[4,93],[3,2],[4,2],[6,13],[4,27]]], +[" ┃ Switch it ",[[3,2],[5,1],[4,93],[3,2],[4,42]]], +[" ┃ ",[[3,2],[5,1],[4,93],[3,2],[4,42]]], +[" Recent models ",[[3,98],[4,2],[5,13],[4,27]]], +[" Switched. Requires OpenCode 2.2.5 ",[[3,5],[7,9],[3,84],[4,2],[8,23],[4,17]]], +[" Open /models ",[[3,98],[4,2],[8,12],[4,28]]], +[" Build · provider/model · 1.0s ",[[3,5],[9,5],[2,24],[3,64],[4,42]]], +[" ",[[3,98],[4,42]]], +[" ",[[3,98],[4,42]]], +[" ",[[3,98],[4,42]]], +[" ",[[3,98],[4,42]]], +[" ",[[3,98],[4,42]]], +[" ",[[3,98],[4,42]]], +[" ",[[3,98],[4,42]]], +[" ",[[3,98],[4,42]]], +[" ",[[3,98],[4,42]]], +[" ",[[3,98],[4,42]]], +[" ",[[3,98],[4,2],[0,38],[4,2]]], +[" ⬖ Getting started ✕ ",[[3,98],[4,2],[0,4],[1,15],[0,16],[10,1],[0,2],[4,2]]], +[" ",[[3,98],[4,2],[0,38],[4,2]]], +[" OpenCode includes free models so ",[[3,98],[4,2],[0,4],[10,32],[0,2],[4,2]]], +[" you can start immediately. ",[[3,98],[4,2],[0,4],[10,26],[0,8],[4,2]]], +[" ",[[3,98],[4,2],[0,38],[4,2]]], +[" Connect from 75+ providers to ",[[3,98],[4,2],[0,4],[10,30],[0,4],[4,2]]], +[" use other models, including ",[[3,98],[4,2],[0,4],[10,28],[0,6],[4,2]]], +[" ┃ Claude, GPT, Gemini etc ",[[3,2],[11,1],[0,93],[3,2],[4,2],[0,4],[10,23],[0,11],[4,2]]], +[" ┃ ",[[3,2],[11,1],[0,93],[3,2],[4,2],[0,38],[4,2]]], +[" ┃ Connect provider /connect ",[[3,2],[11,1],[0,93],[3,2],[4,2],[0,28],[10,8],[0,2],[4,2]]], +[" ┃ ",[[3,2],[11,1],[0,93],[3,2],[4,2],[0,38],[4,2]]], +[" ╹▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀ ",[[3,2],[11,1],[12,93],[3,2],[4,42]]], +[" /tmp/opencode/packages/tui:main ctrl+p commands /tmp/opencode/packages/tui:main ",[[3,2],[2,31],[3,26],[13,22],[3,7],[2,8],[3,2],[4,2],[8,31],[4,9]]], +[" ",[[3,98],[4,42]]] +]} diff --git a/packages/cli-rs/parity/fixtures/P.8/reviewer-border.app.json b/packages/cli-rs/parity/fixtures/P.8/reviewer-border.app.json new file mode 100644 index 000000000000..f80a143627a7 --- /dev/null +++ b/packages/cli-rs/parity/fixtures/P.8/reviewer-border.app.json @@ -0,0 +1,62 @@ +{ + "scenario": "P.8/reviewer-border", + "width": 140, + "height": 34, + "directory": "/tmp/opencode/packages/tui", + "config": { + "experimental": {"new-designs":true}, + "plugins": ["./out/npm/node_modules/mighty-reviewer"], + "animations": false, + "theme": {"name":"opencode"} + }, + "args": { + "sessionID": "ses_r" + }, + "env": { + "OPENCODE_PARITY_PLUGIN": "npm" + }, + "routes": [ + {"path":"/api/session/ses_r","json":{"data":{"id":"ses_r","title":"Review it","projectID":"proj_test","cost":0,"tokens":{"input":0,"output":0,"reasoning":0,"cache":{"read":0,"write":0}},"time":{"created":2,"updated":2},"location":{"directory":"/tmp/opencode/packages/tui"}}}}, + {"path":"/api/session","json":{"data":[{"id":"ses_r","title":"Review it","projectID":"proj_test","cost":0,"tokens":{"input":0,"output":0,"reasoning":0,"cache":{"read":0,"write":0}},"time":{"created":2,"updated":2},"location":{"directory":"/tmp/opencode/packages/tui"}}],"cursor":{}}}, + {"path":"/api/session/ses_r/message","json":{"data":[{"id":"msg_2","type":"assistant","agent":"build","model":{"providerID":"provider","id":"model"},"content":[{"type":"text","text":"Reviewed."}],"finish":"stop","time":{"created":2000,"completed":2001}},{"id":"msg_1","type":"user","text":"Review it","time":{"created":1000}}],"cursor":{}}}, + {"path":"/api/session/ses_r/inbox","json":{"data":[]}} + ], + "steps": [ + {"checkpoint":"sidebar","until":"Reviewed.","fixture":"P.8/reviewer-border/sidebar"} + ], + "requests": { + "writes": [], + "reads": [ + {"method":"GET","path":"/api/agent","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":[]}}, + {"method":"GET","path":"/api/command","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":[]}}, + {"method":"GET","path":"/api/config","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":[]}, + {"method":"GET","path":"/api/experimental/job","query":{"descendants":["true"],"sessionID":["ses_r"],"status":["running"]},"status":200,"json":{"data":[]}}, + {"method":"GET","path":"/api/experimental/migration/v1","query":{},"status":200,"json":{"status":"completed"}}, + {"method":"GET","path":"/api/experimental/session/ses_r/terminal","query":{},"status":200,"json":{"data":[]}}, + {"method":"GET","path":"/api/form","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode"}},"data":[]}}, + {"method":"GET","path":"/api/fs/list","query":{"location[directory]":["<cwd>"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":[]}}, + {"method":"GET","path":"/api/info","query":{},"status":200,"json":{"version":"test","pid":0,"urls":[],"paths":{"tmp":"/tmp"},"capabilities":{"persistentPty":true}}}, + {"method":"GET","path":"/api/integration","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":[]}}, + {"method":"GET","path":"/api/location","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}}}, + {"method":"GET","path":"/api/mcp","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":[]}}, + {"method":"GET","path":"/api/mcp/resource","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":{"resources":[],"templates":[]}}}, + {"method":"GET","path":"/api/model","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":[]}}, + {"method":"GET","path":"/api/plugin","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":[]}}, + {"method":"GET","path":"/api/project","query":{},"status":200,"json":[]}, + {"method":"GET","path":"/api/provider","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":[]}}, + {"method":"GET","path":"/api/reference","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode/packages/tui","canonical":"/tmp/opencode/packages/tui"}},"data":[]}}, + {"method":"GET","path":"/api/session","query":{"directory":["/tmp/opencode/packages/tui"],"limit":["50"],"order":["desc"],"parentID":["null"]},"status":200,"json":{"data":[{"id":"ses_r","title":"Review it","projectID":"proj_test","cost":0,"tokens":{"input":0,"output":0,"reasoning":0,"cache":{"read":0,"write":0}},"time":{"created":2,"updated":2},"location":{"directory":"/tmp/opencode/packages/tui"}}],"cursor":{}}}, + {"method":"GET","path":"/api/session","query":{"limit":["200"],"order":["desc"],"parentID":["ses_r"]},"status":200,"json":{"data":[{"id":"ses_r","title":"Review it","projectID":"proj_test","cost":0,"tokens":{"input":0,"output":0,"reasoning":0,"cache":{"read":0,"write":0}},"time":{"created":2,"updated":2},"location":{"directory":"/tmp/opencode/packages/tui"}}],"cursor":{}}}, + {"method":"GET","path":"/api/session/active","query":{},"status":200,"json":{"data":{}}}, + {"method":"GET","path":"/api/session/ses_r","query":{},"status":200,"json":{"data":{"id":"ses_r","title":"Review it","projectID":"proj_test","cost":0,"tokens":{"input":0,"output":0,"reasoning":0,"cache":{"read":0,"write":0}},"time":{"created":2,"updated":2},"location":{"directory":"/tmp/opencode/packages/tui"}}}}, + {"method":"GET","path":"/api/session/ses_r/form","query":{},"status":200,"json":{"data":[]}}, + {"method":"GET","path":"/api/session/ses_r/inbox","query":{},"status":200,"json":{"data":[]}}, + {"method":"GET","path":"/api/session/ses_r/message","query":{"limit":["20"],"order":["desc"]},"status":200,"json":{"data":[{"id":"msg_2","type":"assistant","agent":"build","model":{"providerID":"provider","id":"model"},"content":[{"type":"text","text":"Reviewed."}],"finish":"stop","time":{"created":2000,"completed":2001}},{"id":"msg_1","type":"user","text":"Review it","time":{"created":1000}}],"cursor":{}}}, + {"method":"GET","path":"/api/session/ses_r/permission","query":{},"status":200,"json":{"data":[]}}, + {"method":"GET","path":"/api/shell","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":[]}}, + {"method":"GET","path":"/api/skill","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":[]}}, + {"method":"GET","path":"/api/vcs","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":{"branch":{"current":"main","default":"main"}}}}, + {"method":"POST","path":"/api/rpc/opencode.goal/get","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"body":{"input":{"sessionID":"ses_r"}},"status":200,"json":{"output":null}} + ] + } +} diff --git a/packages/cli-rs/parity/fixtures/P.8/reviewer-border/sidebar.json b/packages/cli-rs/parity/fixtures/P.8/reviewer-border/sidebar.json new file mode 100644 index 000000000000..c2a89c26d31d --- /dev/null +++ b/packages/cli-rs/parity/fixtures/P.8/reviewer-border/sidebar.json @@ -0,0 +1,36 @@ +{"width":140,"height":34,"styles":["#ffffffff #202020ff 0","#ffffffff #202020ff 1","#808080ff #080808ff 0","#ffffffff #080808ff 0","#ffffffff #141414ff 0","#7699feff #141414ff 0","#ffffffff #141414ff 1","#808080ff #141414ff 0","#eeeeeeff #080808ff 0","#7699feff #080808ff 0","#808080ff #202020ff 0","#484848ff #080808ff 0","#202020ff #080808ff 0"],"lines":[ +[" Review it + ",[[0,3],[1,9],[0,20],[2,3],[3,105]]], +[" ",[[3,98],[4,42]]], +[" ┃ Review it ",[[3,2],[5,1],[4,93],[3,2],[4,2],[6,9],[4,31]]], +[" ┃ Review it ",[[3,2],[5,1],[4,93],[3,2],[4,42]]], +[" ┃ ",[[3,2],[5,1],[4,93],[3,2],[4,42]]], +[" ▶ Mighty Reviewer v0.14.0 idle ",[[3,98],[4,2],[7,2],[4,16],[7,7],[4,7],[7,4],[4,4]]], +[" Reviewed. ",[[3,5],[8,9],[3,84],[4,42]]], +[" ",[[3,98],[4,42]]], +[" Build · provider/model · 1.0s ",[[3,5],[9,5],[2,24],[3,64],[4,42]]], +[" ",[[3,98],[4,42]]], +[" ",[[3,98],[4,42]]], +[" ",[[3,98],[4,42]]], +[" ",[[3,98],[4,42]]], +[" ",[[3,98],[4,42]]], +[" ",[[3,98],[4,42]]], +[" ",[[3,98],[4,42]]], +[" ",[[3,98],[4,42]]], +[" ",[[3,98],[4,42]]], +[" ",[[3,98],[4,42]]], +[" ",[[3,98],[4,2],[0,38],[4,2]]], +[" ⬖ Getting started ✕ ",[[3,98],[4,2],[0,4],[1,15],[0,16],[10,1],[0,2],[4,2]]], +[" ",[[3,98],[4,2],[0,38],[4,2]]], +[" OpenCode includes free models so ",[[3,98],[4,2],[0,4],[10,32],[0,2],[4,2]]], +[" you can start immediately. ",[[3,98],[4,2],[0,4],[10,26],[0,8],[4,2]]], +[" ",[[3,98],[4,2],[0,38],[4,2]]], +[" Connect from 75+ providers to ",[[3,98],[4,2],[0,4],[10,30],[0,4],[4,2]]], +[" use other models, including ",[[3,98],[4,2],[0,4],[10,28],[0,6],[4,2]]], +[" ┃ Claude, GPT, Gemini etc ",[[3,2],[11,1],[0,93],[3,2],[4,2],[0,4],[10,23],[0,11],[4,2]]], +[" ┃ ",[[3,2],[11,1],[0,93],[3,2],[4,2],[0,38],[4,2]]], +[" ┃ Connect provider /connect ",[[3,2],[11,1],[0,93],[3,2],[4,2],[0,28],[10,8],[0,2],[4,2]]], +[" ┃ ",[[3,2],[11,1],[0,93],[3,2],[4,2],[0,38],[4,2]]], +[" ╹▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀ ",[[3,2],[11,1],[12,93],[3,2],[4,42]]], +[" /tmp/opencode/packages/tui:main shift+tab agents ctrl+p commands /tmp/opencode/packages/tui:main ",[[3,2],[2,31],[3,40],[2,6],[3,9],[2,8],[3,2],[4,2],[7,31],[4,9]]], +[" ",[[3,98],[4,42]]] +]} diff --git a/packages/cli-rs/parity/fixtures/P.8/rundev-keys.app.json b/packages/cli-rs/parity/fixtures/P.8/rundev-keys.app.json new file mode 100644 index 000000000000..03e8671d8298 --- /dev/null +++ b/packages/cli-rs/parity/fixtures/P.8/rundev-keys.app.json @@ -0,0 +1,75 @@ +{ + "scenario": "P.8/rundev-keys", + "width": 100, + "height": 30, + "directory": "/tmp/opencode/packages/tui", + "config": { + "plugins": ["./out/npm/node_modules/opencode-rundev"], + "animations": false, + "experimental": {"new-designs":true}, + "theme": {"name":"opencode"} + }, + "args": { + "sessionID": "ses_d" + }, + "env": { + "OPENCODE_PARITY_PLUGIN": "npm" + }, + "routes": [ + {"path":"/api/session/ses_d","json":{"data":{"id":"ses_d","title":"Run it","projectID":"proj_test","cost":0,"tokens":{"input":0,"output":0,"reasoning":0,"cache":{"read":0,"write":0}},"time":{"created":2,"updated":2},"location":{"directory":"/tmp/opencode/packages/tui"}}}}, + {"path":"/api/session","json":{"data":[{"id":"ses_d","title":"Run it","projectID":"proj_test","cost":0,"tokens":{"input":0,"output":0,"reasoning":0,"cache":{"read":0,"write":0}},"time":{"created":2,"updated":2},"location":{"directory":"/tmp/opencode/packages/tui"}}],"cursor":{}}}, + {"path":"/api/session/ses_d/message","json":{"data":[{"id":"msg_2","type":"assistant","agent":"build","model":{"providerID":"provider","id":"model"},"content":[{"type":"text","text":"Ran."}],"finish":"stop","time":{"created":2000,"completed":2001}},{"id":"msg_1","type":"user","text":"Run it","time":{"created":1000}}],"cursor":{}}}, + {"path":"/api/session/ses_d/inbox","json":{"data":[]}}, + {"method":"POST","path":"/api/session/ses_d/prompt","json":{"data":{"id":"inb_1"}}}, + {"method":"POST","path":"/api/session/ses_d/agent","status":204}, + {"method":"POST","path":"/api/session/ses_d/model","status":204}, + {"path":"/api/agent","json":{"location":{"directory":"/tmp/opencode/packages/tui"},"data":[{"id":"build","name":"build","mode":"primary","hidden":false,"permissions":[],"request":{"settings":{},"headers":{},"body":{}}}]}}, + {"path":"/api/model","json":{"location":{"directory":"/tmp/opencode/packages/tui"},"data":[{"id":"model","modelID":"model","providerID":"provider","name":"Model","capabilities":{"tools":true,"input":["text"],"output":["text"]},"variants":[],"time":{"released":0},"cost":[{"input":3,"output":15,"cache":{"read":0.3,"write":3.75}}],"status":"active","enabled":true,"limit":{"context":200000,"output":32000}}]}} + ], + "steps": [ + {"checkpoint":"session","until":"Ran.","fixture":"P.8/rundev-keys/session"}, + {"type":"refresh"}, + {"keys":["space"]}, + {"type":"rr"}, + {"checkpoint":"typed","until":"refresh rr","fixture":"P.8/rundev-keys/typed"}, + {"keys":["enter"]} + ], + "requests": { + "writes": [ + {"method":"POST","path":"/api/session/ses_d/agent","query":{},"body":{"agent":"build"},"status":204}, + {"method":"POST","path":"/api/session/ses_d/model","query":{},"body":{"model":{"providerID":"provider","id":"model"}},"status":204}, + {"method":"POST","path":"/api/session/ses_d/prompt","query":{},"body":{"id":"<msg>","text":"refresh rr","files":[],"agents":[],"delivery":"steer"},"status":200,"json":{"data":{"id":"inb_1"}}} + ], + "reads": [ + {"method":"GET","path":"/api/agent","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui"},"data":[{"id":"build","name":"build","mode":"primary","hidden":false,"permissions":[],"request":{"settings":{},"headers":{},"body":{}}}]}}, + {"method":"GET","path":"/api/command","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":[]}}, + {"method":"GET","path":"/api/config","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":[]}, + {"method":"GET","path":"/api/experimental/job","query":{"descendants":["true"],"sessionID":["ses_d"],"status":["running"]},"status":200,"json":{"data":[]}}, + {"method":"GET","path":"/api/experimental/migration/v1","query":{},"status":200,"json":{"status":"completed"}}, + {"method":"GET","path":"/api/experimental/session/ses_d/terminal","query":{},"status":200,"json":{"data":[]}}, + {"method":"GET","path":"/api/form","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode"}},"data":[]}}, + {"method":"GET","path":"/api/fs/list","query":{"location[directory]":["<cwd>"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":[]}}, + {"method":"GET","path":"/api/info","query":{},"status":200,"json":{"version":"test","pid":0,"urls":[],"paths":{"tmp":"/tmp"},"capabilities":{"persistentPty":true}}}, + {"method":"GET","path":"/api/integration","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":[]}}, + {"method":"GET","path":"/api/location","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}}}, + {"method":"GET","path":"/api/mcp","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":[]}}, + {"method":"GET","path":"/api/mcp/resource","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":{"resources":[],"templates":[]}}}, + {"method":"GET","path":"/api/model","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui"},"data":[{"id":"model","modelID":"model","providerID":"provider","name":"Model","capabilities":{"tools":true,"input":["text"],"output":["text"]},"variants":[],"time":{"released":0},"cost":[{"input":3,"output":15,"cache":{"read":0.3,"write":3.75}}],"status":"active","enabled":true,"limit":{"context":200000,"output":32000}}]}}, + {"method":"GET","path":"/api/plugin","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":[]}}, + {"method":"GET","path":"/api/project","query":{},"status":200,"json":[]}, + {"method":"GET","path":"/api/provider","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":[]}}, + {"method":"GET","path":"/api/reference","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode/packages/tui","canonical":"/tmp/opencode/packages/tui"}},"data":[]}}, + {"method":"GET","path":"/api/session","query":{"limit":["200"],"order":["desc"],"parentID":["ses_d"]},"status":200,"json":{"data":[{"id":"ses_d","title":"Run it","projectID":"proj_test","cost":0,"tokens":{"input":0,"output":0,"reasoning":0,"cache":{"read":0,"write":0}},"time":{"created":2,"updated":2},"location":{"directory":"/tmp/opencode/packages/tui"}}],"cursor":{}}}, + {"method":"GET","path":"/api/session/active","query":{},"status":200,"json":{"data":{}}}, + {"method":"GET","path":"/api/session/ses_d","query":{},"status":200,"json":{"data":{"id":"ses_d","title":"Run it","projectID":"proj_test","cost":0,"tokens":{"input":0,"output":0,"reasoning":0,"cache":{"read":0,"write":0}},"time":{"created":2,"updated":2},"location":{"directory":"/tmp/opencode/packages/tui"}}}}, + {"method":"GET","path":"/api/session/ses_d/form","query":{},"status":200,"json":{"data":[]}}, + {"method":"GET","path":"/api/session/ses_d/inbox","query":{},"status":200,"json":{"data":[]}}, + {"method":"GET","path":"/api/session/ses_d/message","query":{"limit":["20"],"order":["desc"]},"status":200,"json":{"data":[{"id":"msg_2","type":"assistant","agent":"build","model":{"providerID":"provider","id":"model"},"content":[{"type":"text","text":"Ran."}],"finish":"stop","time":{"created":2000,"completed":2001}},{"id":"msg_1","type":"user","text":"Run it","time":{"created":1000}}],"cursor":{}}}, + {"method":"GET","path":"/api/session/ses_d/permission","query":{},"status":200,"json":{"data":[]}}, + {"method":"GET","path":"/api/shell","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":[]}}, + {"method":"GET","path":"/api/skill","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":[]}}, + {"method":"GET","path":"/api/vcs","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":{"branch":{"current":"main","default":"main"}}}}, + {"method":"POST","path":"/api/rpc/opencode.goal/get","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"body":{"input":{"sessionID":"ses_d"}},"status":200,"json":{"output":null}} + ] + } +} diff --git a/packages/cli-rs/parity/fixtures/P.8/rundev-keys/session.json b/packages/cli-rs/parity/fixtures/P.8/rundev-keys/session.json new file mode 100644 index 000000000000..5003ae583d9f --- /dev/null +++ b/packages/cli-rs/parity/fixtures/P.8/rundev-keys/session.json @@ -0,0 +1,32 @@ +{"width":100,"height":30,"styles":["#ffffffff #202020ff 0","#ffffffff #202020ff 1","#808080ff #080808ff 0","#ffffffff #080808ff 0","#7699feff #141414ff 0","#ffffffff #141414ff 0","#eeeeeeff #080808ff 0","#7699feff #080808ff 0","#7699feff #202020ff 0","#808080ff #202020ff 0","#202020ff #080808ff 0"],"lines":[ +[" Run it + ",[[0,3],[1,6],[0,23],[2,3],[3,65]]], +[" ",[[3,100]]], +[" ┃ ",[[3,2],[4,1],[5,95],[3,2]]], +[" ┃ Run it ",[[3,2],[4,1],[5,95],[3,2]]], +[" ┃ ",[[3,2],[4,1],[5,95],[3,2]]], +[" ",[[3,100]]], +[" Ran. ",[[3,5],[6,4],[3,91]]], +[" ",[[3,100]]], +[" Build · Model · 1.0s ",[[3,5],[7,5],[2,15],[3,75]]], +[" ",[[3,100]]], +[" ",[[3,100]]], +[" ",[[3,100]]], +[" ",[[3,100]]], +[" ",[[3,100]]], +[" ",[[3,100]]], +[" ",[[3,100]]], +[" ",[[3,100]]], +[" ",[[3,100]]], +[" ",[[3,100]]], +[" ",[[3,100]]], +[" ",[[3,100]]], +[" ",[[3,100]]], +[" ",[[3,100]]], +[" ┃ ",[[3,2],[7,1],[0,95],[3,2]]], +[" ┃ ",[[3,2],[7,1],[0,95],[3,2]]], +[" ┃ ",[[3,2],[7,1],[0,95],[3,2]]], +[" ┃ Build · Model provider ",[[3,2],[7,1],[0,2],[8,5],[0,1],[9,1],[0,7],[9,8],[0,71],[3,2]]], +[" ╹▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀ ",[[3,2],[7,1],[10,95],[3,2]]], +[" /tmp/opencode/packages/tui:main shift+tab agents ctrl+p commands ",[[3,2],[2,31],[3,42],[2,6],[3,9],[2,8],[3,2]]], +[" ",[[3,100]]] +]} diff --git a/packages/cli-rs/parity/fixtures/P.8/rundev-keys/typed.json b/packages/cli-rs/parity/fixtures/P.8/rundev-keys/typed.json new file mode 100644 index 000000000000..e5d209346f35 --- /dev/null +++ b/packages/cli-rs/parity/fixtures/P.8/rundev-keys/typed.json @@ -0,0 +1,32 @@ +{"width":100,"height":30,"styles":["#ffffffff #202020ff 0","#ffffffff #202020ff 1","#808080ff #080808ff 0","#ffffffff #080808ff 0","#7699feff #141414ff 0","#ffffffff #141414ff 0","#eeeeeeff #080808ff 0","#7699feff #080808ff 0","#7699feff #202020ff 0","#808080ff #202020ff 0","#202020ff #080808ff 0"],"lines":[ +[" Run it + ",[[0,3],[1,6],[0,23],[2,3],[3,65]]], +[" ",[[3,100]]], +[" ┃ ",[[3,2],[4,1],[5,95],[3,2]]], +[" ┃ Run it ",[[3,2],[4,1],[5,95],[3,2]]], +[" ┃ ",[[3,2],[4,1],[5,95],[3,2]]], +[" ",[[3,100]]], +[" Ran. ",[[3,5],[6,4],[3,91]]], +[" ",[[3,100]]], +[" Build · Model · 1.0s ",[[3,5],[7,5],[2,15],[3,75]]], +[" ",[[3,100]]], +[" ",[[3,100]]], +[" ",[[3,100]]], +[" ",[[3,100]]], +[" ",[[3,100]]], +[" ",[[3,100]]], +[" ",[[3,100]]], +[" ",[[3,100]]], +[" ",[[3,100]]], +[" ",[[3,100]]], +[" ",[[3,100]]], +[" ",[[3,100]]], +[" ",[[3,100]]], +[" ",[[3,100]]], +[" ┃ ",[[3,2],[7,1],[0,95],[3,2]]], +[" ┃ refresh rr ",[[3,2],[7,1],[0,95],[3,2]]], +[" ┃ ",[[3,2],[7,1],[0,95],[3,2]]], +[" ┃ Build · Model provider ",[[3,2],[7,1],[0,2],[8,5],[0,1],[9,1],[0,7],[9,8],[0,71],[3,2]]], +[" ╹▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀ ",[[3,2],[7,1],[10,95],[3,2]]], +[" /tmp/opencode/packages/tui:main shift+tab agents ctrl+p commands ",[[3,2],[2,31],[3,42],[2,6],[3,9],[2,8],[3,2]]], +[" ",[[3,100]]] +]} diff --git a/packages/cli-rs/parity/fixtures/P.8/select-search.app.json b/packages/cli-rs/parity/fixtures/P.8/select-search.app.json new file mode 100644 index 000000000000..06c468b6dd78 --- /dev/null +++ b/packages/cli-rs/parity/fixtures/P.8/select-search.app.json @@ -0,0 +1,52 @@ +{ + "scenario": "P.8/select-search", + "width": 120, + "height": 30, + "directory": "/tmp/opencode/packages/tui", + "config": { + "experimental": {"new-designs":true}, + "plugins": ["./plugins/v2search"], + "animations": false, + "theme": {"name":"opencode"} + }, + "args": {}, + "env": { + "OPENCODE_PARITY_PLUGIN": "npm" + }, + "routes": [], + "steps": [ + {"type":"/find"}, + {"checkpoint":"slash","until":"Find a turn","fixture":"P.8/select-search/slash"}, + {"keys":["enter"]}, + {"checkpoint":"listed","until":"red fish","fixture":"P.8/select-search/listed"}, + {"type":"one"}, + {"checkpoint":"searched","until":"someone else","masks":[{"x":26,"y":16,"width":90,"height":1,"reason":"the placeholder example: random in TS and Rust"}],"fixture":"P.8/select-search/searched"}, + {"keys":["enter"]}, + {"checkpoint":"picked","until":"picked t1","masks":[{"x":26,"y":16,"width":90,"height":1,"reason":"the placeholder example: random in TS and Rust"}],"fixture":"P.8/select-search/picked"} + ], + "requests": { + "writes": [], + "reads": [ + {"method":"GET","path":"/api/agent","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":[]}}, + {"method":"GET","path":"/api/command","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":[]}}, + {"method":"GET","path":"/api/config","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":[]}, + {"method":"GET","path":"/api/experimental/migration/v1","query":{},"status":200,"json":{"status":"completed"}}, + {"method":"GET","path":"/api/form","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode"}},"data":[]}}, + {"method":"GET","path":"/api/fs/list","query":{"location[directory]":["<cwd>"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":[]}}, + {"method":"GET","path":"/api/info","query":{},"status":200,"json":{"version":"test","pid":0,"urls":[],"paths":{"tmp":"/tmp"},"capabilities":{"persistentPty":true}}}, + {"method":"GET","path":"/api/integration","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":[]}}, + {"method":"GET","path":"/api/location","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}}}, + {"method":"GET","path":"/api/mcp","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":[]}}, + {"method":"GET","path":"/api/mcp/resource","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":{"resources":[],"templates":[]}}}, + {"method":"GET","path":"/api/model","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":[]}}, + {"method":"GET","path":"/api/plugin","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":[]}}, + {"method":"GET","path":"/api/project","query":{},"status":200,"json":[]}, + {"method":"GET","path":"/api/provider","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":[]}}, + {"method":"GET","path":"/api/reference","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode/packages/tui","canonical":"/tmp/opencode/packages/tui"}},"data":[]}}, + {"method":"GET","path":"/api/session/active","query":{},"status":200,"json":{"data":{}}}, + {"method":"GET","path":"/api/shell","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":[]}}, + {"method":"GET","path":"/api/skill","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":[]}}, + {"method":"GET","path":"/api/vcs","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":{"branch":{"current":"main","default":"main"}}}} + ] + } +} diff --git a/packages/cli-rs/parity/fixtures/P.8/select-search/listed.json b/packages/cli-rs/parity/fixtures/P.8/select-search/listed.json new file mode 100644 index 000000000000..c7182234e202 --- /dev/null +++ b/packages/cli-rs/parity/fixtures/P.8/select-search/listed.json @@ -0,0 +1,32 @@ +{"width":120,"height":30,"styles":["#ffffffff #030303ff 0","#ffffffff #141414ff 0","#808080ff #141414ff 0","#7699feff #141414ff 0","#ffffffff #23344bff 0","#93a2b7ff #23344bff 0","#1e1e1eff #030303ff 0","#ffffffff #0d0d0dff 0","#0d0d0dff #030303ff 0","#353535ff #030303ff 0","#696969ff #030303ff 0"],"lines":[ +[" ",[[0,120]]], +[" ",[[0,120]]], +[" ",[[0,120]]], +[" ",[[0,120]]], +[" ",[[0,120]]], +[" ",[[0,120]]], +[" ",[[0,120]]], +[" ",[[0,120]]], +[" ",[[0,2],[1,116],[0,2]]], +[" Find a turn esc ",[[0,2],[1,109],[2,3],[1,4],[0,2]]], +[" ",[[0,2],[1,116],[0,2]]], +[" Search ",[[0,2],[1,4],[2,6],[1,106],[0,2]]], +[" ",[[0,2],[1,116],[0,2]]], +[" ┃ 10:00 · build · first one fish Morning ",[[0,2],[3,1],[4,24],[5,9],[4,71],[5,7],[4,4],[0,2]]], +[" 10:05 · plan · second two fish Morning ",[[0,2],[3,1],[1,24],[2,9],[1,71],[2,7],[1,4],[0,2]]], +[" 10:10 · build · third red fish ",[[0,2],[3,1],[1,24],[2,9],[1,82],[0,2]]], +[" 10:15 · build · fourth someone else Noon ",[[0,2],[3,1],[1,25],[2,13],[1,69],[2,4],[1,4],[0,2]]], +[" ",[[0,2],[1,116],[0,2]]], +[" ┃ ",[[0,23],[6,1],[7,74],[0,22]]], +[" ╹▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀ ",[[0,23],[6,1],[8,74],[0,22]]], +[" /tmp/opencode/packages/tui:main shift+tab agents ctrl+p commands ",[[0,23],[9,31],[0,11],[10,9],[0,1],[9,6],[0,2],[10,6],[0,1],[9,8],[0,22]]], +[" ",[[0,120]]], +[" ",[[0,120]]], +[" ",[[0,120]]], +[" ",[[0,120]]], +[" ",[[0,120]]], +[" ",[[0,120]]], +[" test ",[[0,114],[9,4],[0,2]]], +[" ",[[0,120]]], +["v2search loaded ",[[9,8],[0,1],[9,6],[0,105]]] +]} diff --git a/packages/cli-rs/parity/fixtures/P.8/select-search/picked.json b/packages/cli-rs/parity/fixtures/P.8/select-search/picked.json new file mode 100644 index 000000000000..13df3e051547 --- /dev/null +++ b/packages/cli-rs/parity/fixtures/P.8/select-search/picked.json @@ -0,0 +1,32 @@ +{"width":120,"height":30,"styles":["#ffffffff #080808ff 0","#7699feff #080808ff 0","#ffffffff #202020ff 0","#808080ff #202020ff 0","#808080ff #080808ff 0","#ffffffff #080808ff 1","#808080ff #262626ff 0","#ffffffff #464646ff 1","#262626ff #080808ff 0","#484848ff #080808ff 0","#00000000 #00000000 0","#202020ff #080808ff 0"],"lines":[ +[" ",[[0,120]]], +[" ┃ ┃ ",[[0,100],[1,1],[2,16],[1,1],[0,2]]], +[" ┃ picked t1 x ┃ ",[[0,100],[1,1],[2,13],[3,1],[2,2],[1,1],[0,2]]], +[" ┃ ┃ ",[[0,100],[1,1],[2,16],[1,1],[0,2]]], +[" ",[[0,120]]], +[" ",[[0,120]]], +[" ",[[0,120]]], +[" ",[[0,120]]], +[" ",[[0,120]]], +[" ▄ ",[[0,41],[4,19],[0,1],[5,19],[0,40]]], +[" █▀▀█ █▀▀█ █▀▀█ █▀▀▄ █▀▀▀ █▀▀█ █▀▀█ █▀▀█ ",[[0,41],[4,19],[0,1],[5,19],[0,40]]], +[" █ █ █ █ █▀▀▀ █ █ █ █ █ █ █ █▀▀▀ ",[[0,41],[4,1],[6,2],[4,3],[6,2],[4,3],[6,3],[4,2],[6,2],[4,1],[0,1],[5,1],[7,3],[5,2],[7,2],[5,3],[7,2],[5,3],[7,3],[0,40]]], +[" ▀▀▀▀ █▀▀▀ ▀▀▀▀ ▀▀▀▀ ▀▀▀▀ ▀▀▀▀ ▀▀▀▀ ▀▀▀▀ ",[[0,41],[4,16],[8,2],[4,1],[0,1],[5,19],[0,40]]], +[" ",[[0,120]]], +[" ",[[0,120]]], +[" ┃ ",[[0,23],[9,1],[2,74],[0,22]]], +[" ┃ ",[[0,23],[9,1],[2,2],[10,90],[0,4]]], +[" ┃ ",[[0,23],[9,1],[2,74],[0,22]]], +[" ┃ ",[[0,23],[9,1],[2,74],[0,22]]], +[" ╹▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀ ",[[0,23],[9,1],[11,74],[0,22]]], +[" /tmp/opencode/packages/tui:main shift+tab agents ctrl+p commands ",[[0,23],[4,31],[0,21],[4,6],[0,9],[4,8],[0,22]]], +[" ",[[0,120]]], +[" ",[[0,120]]], +[" ",[[0,120]]], +[" ",[[0,120]]], +[" ",[[0,120]]], +[" ",[[0,120]]], +[" test ",[[0,114],[4,4],[0,2]]], +[" ",[[0,120]]], +["v2search loaded ",[[4,15],[0,105]]] +]} diff --git a/packages/cli-rs/parity/fixtures/P.8/select-search/searched.json b/packages/cli-rs/parity/fixtures/P.8/select-search/searched.json new file mode 100644 index 000000000000..17e0d4a515c0 --- /dev/null +++ b/packages/cli-rs/parity/fixtures/P.8/select-search/searched.json @@ -0,0 +1,32 @@ +{"width":120,"height":30,"styles":["#ffffffff #030303ff 0","#ffffffff #141414ff 0","#808080ff #141414ff 0","#7699feff #141414ff 0","#ffffffff #23344bff 0","#93a2b7ff #23344bff 0","#1e1e1eff #030303ff 0","#ffffffff #0d0d0dff 0","#00000000 #00000000 0","#0d0d0dff #030303ff 0","#353535ff #030303ff 0","#696969ff #030303ff 0"],"lines":[ +[" ",[[0,120]]], +[" ",[[0,120]]], +[" ",[[0,120]]], +[" ",[[0,120]]], +[" ",[[0,120]]], +[" ",[[0,120]]], +[" ",[[0,120]]], +[" ",[[0,120]]], +[" ",[[0,2],[1,116],[0,2]]], +[" Find a turn esc ",[[0,2],[1,109],[2,3],[1,4],[0,2]]], +[" ",[[0,2],[1,116],[0,2]]], +[" one ",[[0,2],[1,116],[0,2]]], +[" ",[[0,2],[1,116],[0,2]]], +[" ┃ 10:00 · build · first one fish Morning ",[[0,2],[3,1],[4,24],[5,9],[4,71],[5,7],[4,4],[0,2]]], +[" 10:15 · build · fourth someone else Noon ",[[0,2],[3,1],[1,25],[2,13],[1,69],[2,4],[1,4],[0,2]]], +[" ",[[0,2],[1,116],[0,2]]], +[" ┃ ",[[0,23],[6,1],[7,2],[8,90],[0,4]]], +[" ┃ ",[[0,23],[6,1],[7,74],[0,22]]], +[" ┃ ",[[0,23],[6,1],[7,74],[0,22]]], +[" ╹▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀ ",[[0,23],[6,1],[9,74],[0,22]]], +[" /tmp/opencode/packages/tui:main shift+tab agents ctrl+p commands ",[[0,23],[10,31],[0,11],[11,9],[0,1],[10,6],[0,2],[11,6],[0,1],[10,8],[0,22]]], +[" ",[[0,120]]], +[" ",[[0,120]]], +[" ",[[0,120]]], +[" ",[[0,120]]], +[" ",[[0,120]]], +[" ",[[0,120]]], +[" test ",[[0,114],[10,4],[0,2]]], +[" ",[[0,120]]], +["v2search loaded ",[[10,8],[0,1],[10,6],[0,105]]] +]} diff --git a/packages/cli-rs/parity/fixtures/P.8/select-search/slash.json b/packages/cli-rs/parity/fixtures/P.8/select-search/slash.json new file mode 100644 index 000000000000..13bc63b36c4f --- /dev/null +++ b/packages/cli-rs/parity/fixtures/P.8/select-search/slash.json @@ -0,0 +1,32 @@ +{"width":120,"height":30,"styles":["#ffffffff #080808ff 0","#808080ff #080808ff 0","#ffffffff #080808ff 1","#808080ff #262626ff 0","#ffffffff #464646ff 1","#262626ff #080808ff 0","#7699feff #080808ff 0","#ffffffff #23344bff 0","#484848ff #080808ff 0","#ffffffff #202020ff 0","#808080ff #202020ff 0","#202020ff #080808ff 0"],"lines":[ +[" ",[[0,120]]], +[" ",[[0,120]]], +[" ",[[0,120]]], +[" ",[[0,120]]], +[" ",[[0,120]]], +[" ",[[0,120]]], +[" ",[[0,120]]], +[" ",[[0,120]]], +[" ",[[0,120]]], +[" ▄ ",[[0,41],[1,19],[0,1],[2,19],[0,40]]], +[" █▀▀█ █▀▀█ █▀▀█ █▀▀▄ █▀▀▀ █▀▀█ █▀▀█ █▀▀█ ",[[0,41],[1,19],[0,1],[2,19],[0,40]]], +[" █ █ █ █ █▀▀▀ █ █ █ █ █ █ █ █▀▀▀ ",[[0,41],[1,1],[3,2],[1,3],[3,2],[1,3],[3,3],[1,2],[3,2],[1,1],[0,1],[2,1],[4,3],[2,2],[4,2],[2,3],[4,2],[2,3],[4,3],[0,40]]], +[" ▀▀▀▀ █▀▀▀ ▀▀▀▀ ▀▀▀▀ ▀▀▀▀ ▀▀▀▀ ▀▀▀▀ ▀▀▀▀ ",[[0,41],[1,16],[5,2],[1,1],[0,1],[2,19],[0,40]]], +[" ┃ /find Find a turn ┃ ",[[0,23],[6,1],[7,73],[8,1],[0,22]]], +[" ┃ /btw One-shot answer from the session's context without adding ┃ ",[[0,23],[8,1],[9,13],[10,59],[9,1],[8,1],[0,22]]], +[" ┃ ",[[0,23],[8,1],[9,74],[0,22]]], +[" ┃ /find ",[[0,23],[8,1],[9,74],[0,22]]], +[" ┃ ",[[0,23],[8,1],[9,74],[0,22]]], +[" ┃ ",[[0,23],[8,1],[9,74],[0,22]]], +[" ╹▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀ ",[[0,23],[8,1],[11,74],[0,22]]], +[" /tmp/opencode/packages/tui:main shift+tab agents ctrl+p commands ",[[0,23],[1,31],[0,21],[1,6],[0,9],[1,8],[0,22]]], +[" ",[[0,120]]], +[" ",[[0,120]]], +[" ",[[0,120]]], +[" ",[[0,120]]], +[" ",[[0,120]]], +[" ",[[0,120]]], +[" test ",[[0,114],[1,4],[0,2]]], +[" ",[[0,120]]], +["v2search loaded ",[[1,15],[0,105]]] +]} diff --git a/packages/cli-rs/parity/fixtures/P.8/sensitive-encrypt.app.json b/packages/cli-rs/parity/fixtures/P.8/sensitive-encrypt.app.json new file mode 100644 index 000000000000..4ef6bb224ba5 --- /dev/null +++ b/packages/cli-rs/parity/fixtures/P.8/sensitive-encrypt.app.json @@ -0,0 +1,74 @@ +{ + "scenario": "P.8/sensitive-encrypt", + "width": 140, + "height": 34, + "directory": "/tmp/opencode/packages/tui", + "config": { + "experimental": {"new-designs":true}, + "plugins": ["./out/npm/node_modules/@max10240/opencode-plugin-sensitive-encrypt"], + "animations": false, + "theme": {"name":"opencode"} + }, + "args": { + "sessionID": "ses_e" + }, + "env": { + "OPENCODE_PARITY_PLUGIN": "npm" + }, + "routes": [ + {"path":"/api/session/ses_e","json":{"data":{"id":"ses_e","title":"Secrets","projectID":"proj_test","cost":0,"tokens":{"input":0,"output":0,"reasoning":0,"cache":{"read":0,"write":0}},"time":{"created":2,"updated":2},"location":{"directory":"/tmp/opencode/packages/tui"}}}}, + {"path":"/api/session","json":{"data":[{"id":"ses_e","title":"Secrets","projectID":"proj_test","cost":0,"tokens":{"input":0,"output":0,"reasoning":0,"cache":{"read":0,"write":0}},"time":{"created":2,"updated":2},"location":{"directory":"/tmp/opencode/packages/tui"}}],"cursor":{}}}, + {"path":"/api/session/ses_e/message","json":{"data":[{"id":"msg_2","type":"assistant","agent":"build","model":{"providerID":"provider","id":"model"},"content":[{"type":"text","text":"Done."}],"finish":"stop","time":{"created":2000,"completed":2001}},{"id":"msg_1","type":"user","text":"Hide it","time":{"created":1000}}],"cursor":{}}}, + {"path":"/api/session/ses_e/inbox","json":{"data":[]}}, + {"method":"POST","path":"/api/rpc/max10240.sensitive-encrypt/keys","json":{"output":{"keys":[{"role":"encrypt","keyID":"key-0001"}],"defaultRole":"encrypt"}}} + ], + "steps": [ + {"checkpoint":"session","until":"Hide it","fixture":"P.8/sensitive-encrypt/session"}, + {"type":"/encrypt-sensitive"}, + {"checkpoint":"slash","until":"configured public key","fixture":"P.8/sensitive-encrypt/slash"}, + {"keys":["enter"]}, + {"checkpoint":"panel","until":"ctrl+t switch","deviation":[{"file":"F16-v2-compat-layer","cells":900,"styleOnly":true}],"fixture":"P.8/sensitive-encrypt/panel"}, + {"wait":300}, + {"type":"hunter2"}, + {"checkpoint":"typed","until":"hunter2","deviation":[{"file":"F16-v2-compat-layer","cells":900,"styleOnly":true}],"fixture":"P.8/sensitive-encrypt/typed"}, + {"keys":["escape"]}, + {"checkpoint":"closed","until":"Hide it","fixture":"P.8/sensitive-encrypt/closed"} + ], + "deviation": "F16-v2-compat-layer", + "requests": { + "writes": [ + {"method":"POST","path":"/api/rpc/max10240.sensitive-encrypt/keys","query":{"location[directory]":["/tmp/opencode/packages/tui"],"location[project][canonical]":["/tmp/opencode"],"location[project][directory]":["/tmp/opencode"],"location[project][id]":["proj_test"]},"body":{"input":{}},"status":200,"json":{"output":{"keys":[{"role":"encrypt","keyID":"key-0001"}],"defaultRole":"encrypt"}}} + ], + "reads": [ + {"method":"GET","path":"/api/agent","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":[]}}, + {"method":"GET","path":"/api/command","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":[]}}, + {"method":"GET","path":"/api/config","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":[]}, + {"method":"GET","path":"/api/experimental/job","query":{"descendants":["true"],"sessionID":["ses_e"],"status":["running"]},"status":200,"json":{"data":[]}}, + {"method":"GET","path":"/api/experimental/migration/v1","query":{},"status":200,"json":{"status":"completed"}}, + {"method":"GET","path":"/api/experimental/session/ses_e/terminal","query":{},"status":200,"json":{"data":[]}}, + {"method":"GET","path":"/api/form","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode"}},"data":[]}}, + {"method":"GET","path":"/api/fs/list","query":{"location[directory]":["<cwd>"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":[]}}, + {"method":"GET","path":"/api/info","query":{},"status":200,"json":{"version":"test","pid":0,"urls":[],"paths":{"tmp":"/tmp"},"capabilities":{"persistentPty":true}}}, + {"method":"GET","path":"/api/integration","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":[]}}, + {"method":"GET","path":"/api/location","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}}}, + {"method":"GET","path":"/api/mcp","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":[]}}, + {"method":"GET","path":"/api/mcp/resource","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":{"resources":[],"templates":[]}}}, + {"method":"GET","path":"/api/model","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":[]}}, + {"method":"GET","path":"/api/plugin","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":[]}}, + {"method":"GET","path":"/api/project","query":{},"status":200,"json":[]}, + {"method":"GET","path":"/api/provider","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":[]}}, + {"method":"GET","path":"/api/reference","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode/packages/tui","canonical":"/tmp/opencode/packages/tui"}},"data":[]}}, + {"method":"GET","path":"/api/session","query":{"limit":["200"],"order":["desc"],"parentID":["ses_e"]},"status":200,"json":{"data":[{"id":"ses_e","title":"Secrets","projectID":"proj_test","cost":0,"tokens":{"input":0,"output":0,"reasoning":0,"cache":{"read":0,"write":0}},"time":{"created":2,"updated":2},"location":{"directory":"/tmp/opencode/packages/tui"}}],"cursor":{}}}, + {"method":"GET","path":"/api/session/active","query":{},"status":200,"json":{"data":{}}}, + {"method":"GET","path":"/api/session/ses_e","query":{},"status":200,"json":{"data":{"id":"ses_e","title":"Secrets","projectID":"proj_test","cost":0,"tokens":{"input":0,"output":0,"reasoning":0,"cache":{"read":0,"write":0}},"time":{"created":2,"updated":2},"location":{"directory":"/tmp/opencode/packages/tui"}}}}, + {"method":"GET","path":"/api/session/ses_e/form","query":{},"status":200,"json":{"data":[]}}, + {"method":"GET","path":"/api/session/ses_e/inbox","query":{},"status":200,"json":{"data":[]}}, + {"method":"GET","path":"/api/session/ses_e/message","query":{"limit":["20"],"order":["desc"]},"status":200,"json":{"data":[{"id":"msg_2","type":"assistant","agent":"build","model":{"providerID":"provider","id":"model"},"content":[{"type":"text","text":"Done."}],"finish":"stop","time":{"created":2000,"completed":2001}},{"id":"msg_1","type":"user","text":"Hide it","time":{"created":1000}}],"cursor":{}}}, + {"method":"GET","path":"/api/session/ses_e/permission","query":{},"status":200,"json":{"data":[]}}, + {"method":"GET","path":"/api/shell","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":[]}}, + {"method":"GET","path":"/api/skill","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":[]}}, + {"method":"GET","path":"/api/vcs","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":{"branch":{"current":"main","default":"main"}}}}, + {"method":"POST","path":"/api/rpc/opencode.goal/get","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"body":{"input":{"sessionID":"ses_e"}},"status":200,"json":{"output":null}} + ] + } +} diff --git a/packages/cli-rs/parity/fixtures/P.8/sensitive-encrypt/closed.json b/packages/cli-rs/parity/fixtures/P.8/sensitive-encrypt/closed.json new file mode 100644 index 000000000000..93bf349fd7b0 --- /dev/null +++ b/packages/cli-rs/parity/fixtures/P.8/sensitive-encrypt/closed.json @@ -0,0 +1,36 @@ +{"width":140,"height":34,"styles":["#ffffffff #202020ff 0","#ffffffff #202020ff 1","#808080ff #080808ff 0","#ffffffff #080808ff 0","#ffffffff #141414ff 0","#7699feff #141414ff 0","#ffffffff #141414ff 1","#eeeeeeff #080808ff 0","#7699feff #080808ff 0","#808080ff #202020ff 0","#484848ff #080808ff 0","#202020ff #080808ff 0","#808080ff #141414ff 0"],"lines":[ +[" Secrets + ",[[0,3],[1,7],[0,22],[2,3],[3,105]]], +[" ",[[3,98],[4,42]]], +[" ┃ Secrets ",[[3,2],[5,1],[4,93],[3,2],[4,2],[6,7],[4,33]]], +[" ┃ Hide it ",[[3,2],[5,1],[4,93],[3,2],[4,42]]], +[" ┃ ",[[3,2],[5,1],[4,93],[3,2],[4,42]]], +[" ",[[3,98],[4,42]]], +[" Done. ",[[3,5],[7,5],[3,88],[4,42]]], +[" ",[[3,98],[4,42]]], +[" Build · provider/model · 1.0s ",[[3,5],[8,5],[2,24],[3,64],[4,42]]], +[" ",[[3,98],[4,42]]], +[" ",[[3,98],[4,42]]], +[" ",[[3,98],[4,42]]], +[" ",[[3,98],[4,42]]], +[" ",[[3,98],[4,42]]], +[" ",[[3,98],[4,42]]], +[" ",[[3,98],[4,42]]], +[" ",[[3,98],[4,42]]], +[" ",[[3,98],[4,42]]], +[" ",[[3,98],[4,42]]], +[" ",[[3,98],[4,2],[0,38],[4,2]]], +[" ⬖ Getting started ✕ ",[[3,98],[4,2],[0,4],[1,15],[0,16],[9,1],[0,2],[4,2]]], +[" ",[[3,98],[4,2],[0,38],[4,2]]], +[" OpenCode includes free models so ",[[3,98],[4,2],[0,4],[9,32],[0,2],[4,2]]], +[" you can start immediately. ",[[3,98],[4,2],[0,4],[9,26],[0,8],[4,2]]], +[" ",[[3,98],[4,2],[0,38],[4,2]]], +[" Connect from 75+ providers to ",[[3,98],[4,2],[0,4],[9,30],[0,4],[4,2]]], +[" use other models, including ",[[3,98],[4,2],[0,4],[9,28],[0,6],[4,2]]], +[" ┃ Claude, GPT, Gemini etc ",[[3,2],[10,1],[0,93],[3,2],[4,2],[0,4],[9,23],[0,11],[4,2]]], +[" ┃ ",[[3,2],[10,1],[0,93],[3,2],[4,2],[0,38],[4,2]]], +[" ┃ Connect provider /connect ",[[3,2],[10,1],[0,93],[3,2],[4,2],[0,28],[9,8],[0,2],[4,2]]], +[" ┃ ",[[3,2],[10,1],[0,93],[3,2],[4,2],[0,38],[4,2]]], +[" ╹▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀ ",[[3,2],[10,1],[11,93],[3,2],[4,42]]], +[" /tmp/opencode/packages/tui:main shift+tab agents ctrl+p commands /tmp/opencode/packages/tui:main ",[[3,2],[2,31],[3,40],[2,6],[3,9],[2,8],[3,2],[4,2],[12,31],[4,9]]], +[" ",[[3,98],[4,42]]] +]} diff --git a/packages/cli-rs/parity/fixtures/P.8/sensitive-encrypt/panel.json b/packages/cli-rs/parity/fixtures/P.8/sensitive-encrypt/panel.json new file mode 100644 index 000000000000..86ae98b0b940 --- /dev/null +++ b/packages/cli-rs/parity/fixtures/P.8/sensitive-encrypt/panel.json @@ -0,0 +1,36 @@ +{"width":140,"height":34,"styles":["#ffffffff #0d0d0dff 0","#696969ff #0d0d0dff 1","#ffffffff #030303ff 0","#353535ff #030303ff 0","#ffffffff #080808ff 0","#313f69ff #080808ff 0","#696969ff #080808ff 1","#696969ff #080808ff 0","#626262ff #030303ff 0","#313f69ff #030303ff 0","#ffffffff #141414ff 0","#ffffffff #141414ff 1","#666666ff #141414ff 0","#353535ff #0d0d0dff 0","#1e1e1eff #030303ff 0","#696969ff #0d0d0dff 0","#0d0d0dff #030303ff 0","#696969ff #030303ff 0","#353535ff #080808ff 0"],"lines":[ +[" Secrets + ",[[0,3],[1,7],[0,22],[2,1],[3,1],[2,106]]], +[" ",[[2,98],[4,42]]], +[" ┃ Secrets ",[[2,2],[5,1],[4,93],[2,2],[4,2],[6,7],[4,33]]], +[" ┃ Hide it ",[[2,2],[5,1],[4,2],[7,4],[4,1],[7,2],[4,84],[2,2],[4,42]]], +[" ┃ ",[[2,2],[5,1],[4,93],[2,2],[4,42]]], +[" ",[[2,98],[4,42]]], +[" Done. ",[[2,5],[8,5],[2,88],[4,42]]], +[" ",[[2,98],[4,42]]], +[" Build · provider/mode ",[[2,5],[9,5],[2,1],[3,1],[2,1],[3,13],[10,88],[4,26]]], +[" Encrypt sensitive data esc close ",[[2,26],[10,2],[11,22],[10,64],[4,26]]], +[" ",[[2,26],[10,88],[4,26]]], +[" [Text] File ctrl+t switch ",[[2,26],[10,88],[4,26]]], +[" ",[[2,26],[10,88],[4,26]]], +[" Type any text to encrypt… ",[[2,26],[10,2],[12,25],[10,61],[4,26]]], +[" ",[[2,26],[10,88],[4,26]]], +[" ",[[2,26],[10,88],[4,26]]], +[" ",[[2,26],[10,88],[4,26]]], +[" ",[[2,26],[10,88],[4,26]]], +[" ",[[2,26],[10,88],[4,26]]], +[" ",[[2,26],[10,88],[0,24],[4,2]]], +[" arted ✕ ",[[2,26],[10,88],[1,5],[0,16],[13,1],[0,2],[4,2]]], +[" ",[[2,26],[10,88],[0,24],[4,2]]], +[" Ciphertext output (optional, under $TMPDIR) ncludes free models so ",[[2,26],[10,2],[12,43],[10,43],[13,7],[0,1],[13,4],[0,1],[13,6],[0,1],[13,2],[0,2],[4,2]]], +[" art immediately. ",[[2,26],[10,88],[13,3],[0,1],[13,12],[0,8],[4,2]]], +[" Key: Encrypt (key-0001…) ",[[2,26],[10,88],[0,24],[4,2]]], +[" om 75+ providers to ",[[2,26],[10,88],[13,2],[0,1],[13,3],[0,1],[13,9],[0,1],[13,2],[0,5],[4,2]]], +[" f2 encrypt · ctrl+t text/file · tab output/key · esc close models, including ",[[2,26],[10,88],[13,7],[0,1],[13,9],[0,7],[4,2]]], +[" ┃ Claude, GPT, Gemini etc ",[[2,2],[14,1],[0,93],[2,2],[4,2],[0,4],[13,7],[0,1],[13,4],[0,1],[13,6],[0,1],[13,3],[0,11],[4,2]]], +[" ┃ ",[[2,2],[14,1],[0,93],[2,2],[4,2],[0,38],[4,2]]], +[" ┃ Connect provider /connect ",[[2,2],[14,1],[0,93],[2,2],[4,2],[0,4],[15,7],[0,1],[15,8],[0,8],[13,8],[0,2],[4,2]]], +[" ┃ ",[[2,2],[14,1],[0,93],[2,2],[4,2],[0,38],[4,2]]], +[" ╹▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀ ",[[2,2],[14,1],[16,93],[2,2],[4,42]]], +[" /tmp/opencode/packages/tui:main shift+tab agents ctrl+p commands /tmp/opencode/packages/tui:main ",[[2,2],[3,31],[2,30],[17,9],[2,1],[3,6],[2,2],[17,6],[2,1],[3,8],[2,2],[4,2],[18,31],[4,9]]], +[" ",[[2,98],[4,42]]] +]} diff --git a/packages/cli-rs/parity/fixtures/P.8/sensitive-encrypt/session.json b/packages/cli-rs/parity/fixtures/P.8/sensitive-encrypt/session.json new file mode 100644 index 000000000000..93bf349fd7b0 --- /dev/null +++ b/packages/cli-rs/parity/fixtures/P.8/sensitive-encrypt/session.json @@ -0,0 +1,36 @@ +{"width":140,"height":34,"styles":["#ffffffff #202020ff 0","#ffffffff #202020ff 1","#808080ff #080808ff 0","#ffffffff #080808ff 0","#ffffffff #141414ff 0","#7699feff #141414ff 0","#ffffffff #141414ff 1","#eeeeeeff #080808ff 0","#7699feff #080808ff 0","#808080ff #202020ff 0","#484848ff #080808ff 0","#202020ff #080808ff 0","#808080ff #141414ff 0"],"lines":[ +[" Secrets + ",[[0,3],[1,7],[0,22],[2,3],[3,105]]], +[" ",[[3,98],[4,42]]], +[" ┃ Secrets ",[[3,2],[5,1],[4,93],[3,2],[4,2],[6,7],[4,33]]], +[" ┃ Hide it ",[[3,2],[5,1],[4,93],[3,2],[4,42]]], +[" ┃ ",[[3,2],[5,1],[4,93],[3,2],[4,42]]], +[" ",[[3,98],[4,42]]], +[" Done. ",[[3,5],[7,5],[3,88],[4,42]]], +[" ",[[3,98],[4,42]]], +[" Build · provider/model · 1.0s ",[[3,5],[8,5],[2,24],[3,64],[4,42]]], +[" ",[[3,98],[4,42]]], +[" ",[[3,98],[4,42]]], +[" ",[[3,98],[4,42]]], +[" ",[[3,98],[4,42]]], +[" ",[[3,98],[4,42]]], +[" ",[[3,98],[4,42]]], +[" ",[[3,98],[4,42]]], +[" ",[[3,98],[4,42]]], +[" ",[[3,98],[4,42]]], +[" ",[[3,98],[4,42]]], +[" ",[[3,98],[4,2],[0,38],[4,2]]], +[" ⬖ Getting started ✕ ",[[3,98],[4,2],[0,4],[1,15],[0,16],[9,1],[0,2],[4,2]]], +[" ",[[3,98],[4,2],[0,38],[4,2]]], +[" OpenCode includes free models so ",[[3,98],[4,2],[0,4],[9,32],[0,2],[4,2]]], +[" you can start immediately. ",[[3,98],[4,2],[0,4],[9,26],[0,8],[4,2]]], +[" ",[[3,98],[4,2],[0,38],[4,2]]], +[" Connect from 75+ providers to ",[[3,98],[4,2],[0,4],[9,30],[0,4],[4,2]]], +[" use other models, including ",[[3,98],[4,2],[0,4],[9,28],[0,6],[4,2]]], +[" ┃ Claude, GPT, Gemini etc ",[[3,2],[10,1],[0,93],[3,2],[4,2],[0,4],[9,23],[0,11],[4,2]]], +[" ┃ ",[[3,2],[10,1],[0,93],[3,2],[4,2],[0,38],[4,2]]], +[" ┃ Connect provider /connect ",[[3,2],[10,1],[0,93],[3,2],[4,2],[0,28],[9,8],[0,2],[4,2]]], +[" ┃ ",[[3,2],[10,1],[0,93],[3,2],[4,2],[0,38],[4,2]]], +[" ╹▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀ ",[[3,2],[10,1],[11,93],[3,2],[4,42]]], +[" /tmp/opencode/packages/tui:main shift+tab agents ctrl+p commands /tmp/opencode/packages/tui:main ",[[3,2],[2,31],[3,40],[2,6],[3,9],[2,8],[3,2],[4,2],[12,31],[4,9]]], +[" ",[[3,98],[4,42]]] +]} diff --git a/packages/cli-rs/parity/fixtures/P.8/sensitive-encrypt/slash.json b/packages/cli-rs/parity/fixtures/P.8/sensitive-encrypt/slash.json new file mode 100644 index 000000000000..3abd432bf1df --- /dev/null +++ b/packages/cli-rs/parity/fixtures/P.8/sensitive-encrypt/slash.json @@ -0,0 +1,36 @@ +{"width":140,"height":34,"styles":["#ffffffff #202020ff 0","#ffffffff #202020ff 1","#808080ff #080808ff 0","#ffffffff #080808ff 0","#ffffffff #141414ff 0","#7699feff #141414ff 0","#ffffffff #141414ff 1","#eeeeeeff #080808ff 0","#7699feff #080808ff 0","#808080ff #202020ff 0","#ffffffff #23344bff 0","#484848ff #080808ff 0","#202020ff #080808ff 0","#808080ff #141414ff 0"],"lines":[ +[" Secrets + ",[[0,3],[1,7],[0,22],[2,3],[3,105]]], +[" ",[[3,98],[4,42]]], +[" ┃ Secrets ",[[3,2],[5,1],[4,93],[3,2],[4,2],[6,7],[4,33]]], +[" ┃ Hide it ",[[3,2],[5,1],[4,93],[3,2],[4,42]]], +[" ┃ ",[[3,2],[5,1],[4,93],[3,2],[4,42]]], +[" ",[[3,98],[4,42]]], +[" Done. ",[[3,5],[7,5],[3,88],[4,42]]], +[" ",[[3,98],[4,42]]], +[" Build · provider/model · 1.0s ",[[3,5],[8,5],[2,24],[3,64],[4,42]]], +[" ",[[3,98],[4,42]]], +[" ",[[3,98],[4,42]]], +[" ",[[3,98],[4,42]]], +[" ",[[3,98],[4,42]]], +[" ",[[3,98],[4,42]]], +[" ",[[3,98],[4,42]]], +[" ",[[3,98],[4,42]]], +[" ",[[3,98],[4,42]]], +[" ",[[3,98],[4,42]]], +[" ",[[3,98],[4,42]]], +[" ",[[3,98],[4,2],[0,38],[4,2]]], +[" ⬖ Getting started ✕ ",[[3,98],[4,2],[0,4],[1,15],[0,16],[9,1],[0,2],[4,2]]], +[" ",[[3,98],[4,2],[0,38],[4,2]]], +[" OpenCode includes free models so ",[[3,98],[4,2],[0,4],[9,32],[0,2],[4,2]]], +[" you can start immediately. ",[[3,98],[4,2],[0,4],[9,26],[0,8],[4,2]]], +[" ",[[3,98],[4,2],[0,38],[4,2]]], +[" Connect from 75+ providers to ",[[3,98],[4,2],[0,4],[9,30],[0,4],[4,2]]], +[" ┃ /encrypt-sensitive Encrypt in-memory text or a file with the configured public key ┃ use other models, including ",[[3,2],[8,1],[10,92],[11,1],[3,2],[4,2],[0,4],[9,28],[0,6],[4,2]]], +[" ┃ Claude, GPT, Gemini etc ",[[3,2],[11,1],[0,93],[3,2],[4,2],[0,4],[9,23],[0,11],[4,2]]], +[" ┃ /encrypt-sensitive ",[[3,2],[11,1],[0,93],[3,2],[4,2],[0,38],[4,2]]], +[" ┃ Connect provider /connect ",[[3,2],[11,1],[0,93],[3,2],[4,2],[0,28],[9,8],[0,2],[4,2]]], +[" ┃ ",[[3,2],[11,1],[0,93],[3,2],[4,2],[0,38],[4,2]]], +[" ╹▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀ ",[[3,2],[11,1],[12,93],[3,2],[4,42]]], +[" /tmp/opencode/packages/tui:main shift+tab agents ctrl+p commands /tmp/opencode/packages/tui:main ",[[3,2],[2,31],[3,40],[2,6],[3,9],[2,8],[3,2],[4,2],[13,31],[4,9]]], +[" ",[[3,98],[4,42]]] +]} diff --git a/packages/cli-rs/parity/fixtures/P.8/sensitive-encrypt/typed.json b/packages/cli-rs/parity/fixtures/P.8/sensitive-encrypt/typed.json new file mode 100644 index 000000000000..67f128f167e7 --- /dev/null +++ b/packages/cli-rs/parity/fixtures/P.8/sensitive-encrypt/typed.json @@ -0,0 +1,36 @@ +{"width":140,"height":34,"styles":["#ffffffff #0d0d0dff 0","#696969ff #0d0d0dff 1","#ffffffff #030303ff 0","#353535ff #030303ff 0","#ffffffff #080808ff 0","#313f69ff #080808ff 0","#696969ff #080808ff 1","#696969ff #080808ff 0","#626262ff #030303ff 0","#313f69ff #030303ff 0","#ffffffff #141414ff 0","#ffffffff #141414ff 1","#353535ff #0d0d0dff 0","#666666ff #141414ff 0","#1e1e1eff #030303ff 0","#696969ff #0d0d0dff 0","#0d0d0dff #030303ff 0","#696969ff #030303ff 0","#353535ff #080808ff 0"],"lines":[ +[" Secrets + ",[[0,3],[1,7],[0,22],[2,1],[3,1],[2,106]]], +[" ",[[2,98],[4,42]]], +[" ┃ Secrets ",[[2,2],[5,1],[4,93],[2,2],[4,2],[6,7],[4,33]]], +[" ┃ Hide it ",[[2,2],[5,1],[4,2],[7,4],[4,1],[7,2],[4,84],[2,2],[4,42]]], +[" ┃ ",[[2,2],[5,1],[4,93],[2,2],[4,42]]], +[" ",[[2,98],[4,42]]], +[" Done. ",[[2,5],[8,5],[2,88],[4,42]]], +[" ",[[2,98],[4,42]]], +[" Build · provider/mode ",[[2,5],[9,5],[2,1],[3,1],[2,1],[3,13],[10,88],[4,26]]], +[" Encrypt sensitive data esc close ",[[2,26],[10,2],[11,22],[10,64],[4,26]]], +[" ",[[2,26],[10,88],[4,26]]], +[" [Text] File ctrl+t switch ",[[2,26],[10,88],[4,26]]], +[" ",[[2,26],[10,88],[4,26]]], +[" hunter2 ",[[2,26],[10,88],[4,26]]], +[" ",[[2,26],[10,88],[4,26]]], +[" ",[[2,26],[10,88],[4,26]]], +[" ",[[2,26],[10,88],[4,26]]], +[" ",[[2,26],[10,88],[4,26]]], +[" ",[[2,26],[10,88],[4,26]]], +[" ",[[2,26],[10,88],[0,24],[4,2]]], +[" arted ✕ ",[[2,26],[10,88],[1,5],[0,16],[12,1],[0,2],[4,2]]], +[" ",[[2,26],[10,88],[0,24],[4,2]]], +[" Ciphertext output (optional, under $TMPDIR) ncludes free models so ",[[2,26],[10,2],[13,43],[10,43],[12,7],[0,1],[12,4],[0,1],[12,6],[0,1],[12,2],[0,2],[4,2]]], +[" art immediately. ",[[2,26],[10,88],[12,3],[0,1],[12,12],[0,8],[4,2]]], +[" Key: Encrypt (key-0001…) ",[[2,26],[10,88],[0,24],[4,2]]], +[" om 75+ providers to ",[[2,26],[10,88],[12,2],[0,1],[12,3],[0,1],[12,9],[0,1],[12,2],[0,5],[4,2]]], +[" f2 encrypt · ctrl+t text/file · tab output/key · esc close models, including ",[[2,26],[10,88],[12,7],[0,1],[12,9],[0,7],[4,2]]], +[" ┃ Claude, GPT, Gemini etc ",[[2,2],[14,1],[0,93],[2,2],[4,2],[0,4],[12,7],[0,1],[12,4],[0,1],[12,6],[0,1],[12,3],[0,11],[4,2]]], +[" ┃ ",[[2,2],[14,1],[0,93],[2,2],[4,2],[0,38],[4,2]]], +[" ┃ Connect provider /connect ",[[2,2],[14,1],[0,93],[2,2],[4,2],[0,4],[15,7],[0,1],[15,8],[0,8],[12,8],[0,2],[4,2]]], +[" ┃ ",[[2,2],[14,1],[0,93],[2,2],[4,2],[0,38],[4,2]]], +[" ╹▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀ ",[[2,2],[14,1],[16,93],[2,2],[4,42]]], +[" /tmp/opencode/packages/tui:main shift+tab agents ctrl+p commands /tmp/opencode/packages/tui:main ",[[2,2],[3,31],[2,30],[17,9],[2,1],[3,6],[2,2],[17,6],[2,1],[3,8],[2,2],[4,2],[18,31],[4,9]]], +[" ",[[2,98],[4,42]]] +]} diff --git a/packages/cli-rs/parity/fixtures/P.8/session-manager.app.json b/packages/cli-rs/parity/fixtures/P.8/session-manager.app.json new file mode 100644 index 000000000000..88420047b896 --- /dev/null +++ b/packages/cli-rs/parity/fixtures/P.8/session-manager.app.json @@ -0,0 +1,94 @@ +{ + "scenario": "P.8/session-manager", + "width": 140, + "height": 34, + "directory": "/tmp/opencode/packages/tui", + "config": { + "experimental": {"new-designs":true}, + "plugins": ["./out/npm/node_modules/@0xuwui/opencode-session-manager"], + "animations": false, + "theme": {"name":"opencode"} + }, + "args": { + "sessionID": "ses_m" + }, + "env": { + "OPENCODE_PARITY_PLUGIN": "npm" + }, + "routes": [ + {"path":"/api/session/ses_m","json":{"data":{"id":"ses_m","title":"Plan the release","projectID":"proj_test","cost":0,"tokens":{"input":0,"output":0,"reasoning":0,"cache":{"read":0,"write":0}},"time":{"created":1700000000000,"updated":1700150000000},"location":{"directory":"/tmp/opencode/packages/tui"}}}}, + {"path":"/api/session","json":{"data":[{"id":"ses_n","title":"Fix the theme picker","projectID":"proj_test","cost":0,"tokens":{"input":0,"output":0,"reasoning":0,"cache":{"read":0,"write":0}},"time":{"created":1700100000000,"updated":1700200000000},"location":{"directory":"/tmp/opencode/packages/app"}},{"id":"ses_m","title":"Plan the release","projectID":"proj_test","cost":0,"tokens":{"input":0,"output":0,"reasoning":0,"cache":{"read":0,"write":0}},"time":{"created":1700000000000,"updated":1700150000000},"location":{"directory":"/tmp/opencode/packages/tui"}},{"id":"ses_o","title":"Draft the notes","projectID":"proj_test","cost":0,"tokens":{"input":0,"output":0,"reasoning":0,"cache":{"read":0,"write":0}},"time":{"created":1699000000000,"updated":1699500000000},"location":{"directory":"/tmp/opencode/packages/tui"}}],"cursor":{}}}, + {"path":"/api/session/ses_m/message","json":{"data":[],"cursor":{}}}, + {"path":"/api/session/ses_m/inbox","json":{"data":[]}}, + {"method":"DELETE","path":"/api/session/ses_n","status":204} + ], + "steps": [ + {"checkpoint":"session","until":"Plan the release","fixture":"P.8/session-manager/session"}, + {"type":"/session-manager"}, + {"checkpoint":"slash","until":"Browse, rename and delete","fixture":"P.8/session-manager/slash"}, + {"keys":["enter"]}, + {"checkpoint":"page","until":"Draft the notes","fixture":"P.8/session-manager/page"}, + {"keys":["k"]}, + {"checkpoint":"moved","until":"Draft the notes","fixture":"P.8/session-manager/moved"}, + {"keys":["tab"]}, + {"checkpoint":"project","until":"[Project]","fixture":"P.8/session-manager/project"}, + {"keys":["shift+tab"]}, + {"keys":["/"]}, + {"checkpoint":"searching","until":"Search titles","deviation":[{"file":"F16-plugin-contract-gaps","cells":29,"styleOnly":true}],"fixture":"P.8/session-manager/searching"}, + {"wait":300}, + {"type":"theme"}, + {"checkpoint":"search","until":"1 match","deviation":[{"file":"F16-plugin-contract-gaps","cells":5,"styleOnly":true}],"fixture":"P.8/session-manager/search"}, + {"keys":["escape"]}, + {"checkpoint":"cleared","until":"Draft the notes","fixture":"P.8/session-manager/cleared"}, + {"keys":["k"]}, + {"keys":["r"]}, + {"checkpoint":"rename","until":"Rename session","deviation":[{"file":"CF3-plugin-prompt","cells":26,"styleOnly":true}],"fixture":"P.8/session-manager/rename"}, + {"keys":["escape"]}, + {"checkpoint":"renamed","until":"Esc back","fixture":"P.8/session-manager/renamed"}, + {"keys":["d"]}, + {"checkpoint":"delete","until":"This cannot be undone.","fixture":"P.8/session-manager/delete"}, + {"keys":["enter"]}, + {"checkpoint":"deleted","until":"Deleted 1 session","fixture":"P.8/session-manager/deleted"}, + {"keys":["pagedown"]}, + {"checkpoint":"paged-down","until":"Plan the release","fixture":"P.8/session-manager/paged-down"}, + {"keys":["pageup"]}, + {"checkpoint":"paged-up","until":"Plan the release","fixture":"P.8/session-manager/paged-up"} + ], + "requests": { + "writes": [ + {"method":"DELETE","path":"/api/session/ses_n","query":{},"status":204} + ], + "reads": [ + {"method":"GET","path":"/api/agent","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":[]}}, + {"method":"GET","path":"/api/command","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":[]}}, + {"method":"GET","path":"/api/config","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":[]}, + {"method":"GET","path":"/api/experimental/job","query":{"descendants":["true"],"sessionID":["ses_m"],"status":["running"]},"status":200,"json":{"data":[]}}, + {"method":"GET","path":"/api/experimental/migration/v1","query":{},"status":200,"json":{"status":"completed"}}, + {"method":"GET","path":"/api/experimental/session/ses_m/terminal","query":{},"status":200,"json":{"data":[]}}, + {"method":"GET","path":"/api/form","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode"}},"data":[]}}, + {"method":"GET","path":"/api/fs/list","query":{"location[directory]":["<cwd>"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":[]}}, + {"method":"GET","path":"/api/info","query":{},"status":200,"json":{"version":"test","pid":0,"urls":[],"paths":{"tmp":"/tmp"},"capabilities":{"persistentPty":true}}}, + {"method":"GET","path":"/api/integration","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":[]}}, + {"method":"GET","path":"/api/location","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}}}, + {"method":"GET","path":"/api/mcp","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":[]}}, + {"method":"GET","path":"/api/mcp/resource","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":{"resources":[],"templates":[]}}}, + {"method":"GET","path":"/api/model","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":[]}}, + {"method":"GET","path":"/api/plugin","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":[]}}, + {"method":"GET","path":"/api/project","query":{},"status":200,"json":[]}, + {"method":"GET","path":"/api/provider","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":[]}}, + {"method":"GET","path":"/api/reference","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode/packages/tui","canonical":"/tmp/opencode/packages/tui"}},"data":[]}}, + {"method":"GET","path":"/api/session","query":{"limit":["200"],"order":["desc"],"parentID":["ses_m"]},"status":200,"json":{"data":[{"id":"ses_n","title":"Fix the theme picker","projectID":"proj_test","cost":0,"tokens":{"input":0,"output":0,"reasoning":0,"cache":{"read":0,"write":0}},"time":{"created":1700100000000,"updated":1700200000000},"location":{"directory":"/tmp/opencode/packages/app"}},{"id":"ses_m","title":"Plan the release","projectID":"proj_test","cost":0,"tokens":{"input":0,"output":0,"reasoning":0,"cache":{"read":0,"write":0}},"time":{"created":1700000000000,"updated":1700150000000},"location":{"directory":"/tmp/opencode/packages/tui"}},{"id":"ses_o","title":"Draft the notes","projectID":"proj_test","cost":0,"tokens":{"input":0,"output":0,"reasoning":0,"cache":{"read":0,"write":0}},"time":{"created":1699000000000,"updated":1699500000000},"location":{"directory":"/tmp/opencode/packages/tui"}}],"cursor":{}}}, + {"method":"GET","path":"/api/session","query":{"limit":["200"],"order":["desc"]},"status":200,"json":{"data":[{"id":"ses_n","title":"Fix the theme picker","projectID":"proj_test","cost":0,"tokens":{"input":0,"output":0,"reasoning":0,"cache":{"read":0,"write":0}},"time":{"created":1700100000000,"updated":1700200000000},"location":{"directory":"/tmp/opencode/packages/app"}},{"id":"ses_m","title":"Plan the release","projectID":"proj_test","cost":0,"tokens":{"input":0,"output":0,"reasoning":0,"cache":{"read":0,"write":0}},"time":{"created":1700000000000,"updated":1700150000000},"location":{"directory":"/tmp/opencode/packages/tui"}},{"id":"ses_o","title":"Draft the notes","projectID":"proj_test","cost":0,"tokens":{"input":0,"output":0,"reasoning":0,"cache":{"read":0,"write":0}},"time":{"created":1699000000000,"updated":1699500000000},"location":{"directory":"/tmp/opencode/packages/tui"}}],"cursor":{}}}, + {"method":"GET","path":"/api/session/active","query":{},"status":200,"json":{"data":{}}}, + {"method":"GET","path":"/api/session/ses_m","query":{},"status":200,"json":{"data":{"id":"ses_m","title":"Plan the release","projectID":"proj_test","cost":0,"tokens":{"input":0,"output":0,"reasoning":0,"cache":{"read":0,"write":0}},"time":{"created":1700000000000,"updated":1700150000000},"location":{"directory":"/tmp/opencode/packages/tui"}}}}, + {"method":"GET","path":"/api/session/ses_m/form","query":{},"status":200,"json":{"data":[]}}, + {"method":"GET","path":"/api/session/ses_m/inbox","query":{},"status":200,"json":{"data":[]}}, + {"method":"GET","path":"/api/session/ses_m/message","query":{"limit":["20"],"order":["desc"]},"status":200,"json":{"data":[],"cursor":{}}}, + {"method":"GET","path":"/api/session/ses_m/permission","query":{},"status":200,"json":{"data":[]}}, + {"method":"GET","path":"/api/shell","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":[]}}, + {"method":"GET","path":"/api/skill","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":[]}}, + {"method":"GET","path":"/api/vcs","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":{"branch":{"current":"main","default":"main"}}}}, + {"method":"POST","path":"/api/rpc/opencode.goal/get","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"body":{"input":{"sessionID":"ses_m"}},"status":200,"json":{"output":null}} + ] + } +} diff --git a/packages/cli-rs/parity/fixtures/P.8/session-manager/cleared.json b/packages/cli-rs/parity/fixtures/P.8/session-manager/cleared.json new file mode 100644 index 000000000000..04d6678a4170 --- /dev/null +++ b/packages/cli-rs/parity/fixtures/P.8/session-manager/cleared.json @@ -0,0 +1,36 @@ +{"width":140,"height":34,"styles":["#ffffffff #080808ff 0","#ffffffff #080808ff 1","#808080ff #080808ff 0","#ffffffff #202020ff 0","#ffffffff #202020ff 1","#808080ff #202020ff 0","#9ee77aff #080808ff 0"],"lines":[ +[" ",[[0,140]]], +[[" "," ","S","e","s","s","i","o","n"," ","M","a","n","a","g","e","r"," "," ","[","D","i","r","e","c","t","o","r","y","]"," "," ","P","r","o","j","e","c","t"," "," "," ","C","r","e","a","t","e","d"," "," "," ","U","p","d","a","t","e","d"," "," "," ","V","i","e","w","e","d"," "," "," "," "," "," "," "," "," "," "," "," "," "," "," "," "," "," "," "," "," "," "," "," "," "," "," ","S","u","b","s","e","s","s","i","o","n","s",":"," ","h","i","d","d","e","n"," ","·"," ","3"," ","s","e","s","s","i","o","n","s"," "," ","E","N"," ","|"," ","中","","文",""," "," "],[[0,2],[1,15],[0,14],[2,9],[0,1],[2,9],[0,1],[2,9],[0,1],[2,8],[0,26],[2,32],[0,2],[1,2],[2,7],[0,2]]], +[" ",[[0,140]]], +[" ▼ /tmp/opencode/packages/app (1) ",[[0,4],[1,26],[2,4],[0,106]]], +[" · Fix the theme picker 2023-11-17 ",[[0,4],[2,2],[0,122],[2,10],[0,2]]], +[" ",[[0,140]]], +[" ▼ /tmp/opencode/packages/tui (2) ",[[0,2],[3,2],[4,26],[5,4],[3,104],[0,2]]], +[" ● Plan the release 2023-11-16 ",[[0,4],[6,2],[0,122],[2,10],[0,2]]], +[" · Draft the notes 2023-11-09 ",[[0,4],[2,2],[0,122],[2,10],[0,2]]], +[" ",[[0,140]]], +[" ",[[0,140]]], +[" ",[[0,140]]], +[" ",[[0,140]]], +[" ",[[0,140]]], +[" ",[[0,140]]], +[" ",[[0,140]]], +[" ",[[0,140]]], +[" ",[[0,140]]], +[" ",[[0,140]]], +[" ",[[0,140]]], +[" ",[[0,140]]], +[" ",[[0,140]]], +[" ",[[0,140]]], +[" ",[[0,140]]], +[" ",[[0,140]]], +[" ",[[0,140]]], +[" ",[[0,140]]], +[" ",[[0,140]]], +[" ",[[0,140]]], +[" ",[[0,140]]], +[" ",[[0,140]]], +[" ",[[0,140]]], +[" ↑↓ select Enter open/fold Tab group by c subsessions r rename d delete D delete group / search F5 refresh l language Esc back ",[[0,4],[2,7],[0,7],[2,10],[0,5],[2,9],[0,3],[2,12],[0,3],[2,7],[0,3],[2,7],[0,3],[2,13],[0,3],[2,7],[0,4],[2,8],[0,3],[2,9],[0,5],[2,5],[0,3]]], +[" ",[[0,140]]] +]} diff --git a/packages/cli-rs/parity/fixtures/P.8/session-manager/delete.json b/packages/cli-rs/parity/fixtures/P.8/session-manager/delete.json new file mode 100644 index 000000000000..46213408ea26 --- /dev/null +++ b/packages/cli-rs/parity/fixtures/P.8/session-manager/delete.json @@ -0,0 +1,36 @@ +{"width":140,"height":34,"styles":["#ffffffff #030303ff 0","#696969ff #030303ff 1","#696969ff #030303ff 0","#353535ff #030303ff 0","#ffffffff #0d0d0dff 0","#353535ff #0d0d0dff 0","#696969ff #0d0d0dff 0","#415f32ff #030303ff 0","#ffffffff #141414ff 0","#808080ff #141414ff 0","#ffffffff #23344bff 0"],"lines":[ +[" ",[[0,140]]], +[" Session Manager [Directory] Project Created Updated Viewed Subsessions: hidden · 3 sessions EN | ",[[0,2],[1,7],[0,1],[1,7],[0,2],[2,11],[0,2],[3,7],[0,3],[3,7],[0,3],[3,7],[0,3],[3,6],[0,27],[3,12],[0,1],[3,6],[0,1],[3,1],[0,1],[3,1],[0,1],[3,8],[0,2],[1,2],[0,1],[3,1],[0,7]]], +[" ",[[0,140]]], +[" ▼ /tmp/opencode/packages/app (1) ",[[0,2],[2,1],[0,1],[1,26],[0,1],[3,3],[0,106]]], +[" · Fix the theme picker 2023-11-17 ",[[0,2],[4,2],[5,1],[4,1],[6,3],[4,1],[6,3],[4,1],[6,5],[4,1],[6,6],[4,102],[5,10],[0,2]]], +[" ",[[0,140]]], +[" ▼ /tmp/opencode/packages/tui (2) ",[[0,2],[2,1],[0,1],[1,26],[0,1],[3,3],[0,106]]], +[" ● Plan the release 2023-11-16 ",[[0,4],[7,1],[0,1],[2,4],[0,1],[2,3],[0,1],[2,7],[0,106],[3,10],[0,2]]], +[" · Draft the notes 2023-11-09 ",[[0,4],[3,1],[0,1],[2,5],[0,1],[2,3],[0,1],[2,5],[0,107],[3,10],[0,2]]], +[" ",[[0,40],[8,60],[0,40]]], +[" Delete session esc ",[[0,40],[8,54],[9,3],[8,3],[0,40]]], +[" ",[[0,40],[8,60],[0,40]]], +[" Delete \"Fix the theme picker\"? ",[[0,40],[8,3],[9,30],[8,27],[0,40]]], +[" This cannot be undone. ",[[0,40],[8,3],[9,22],[8,35],[0,40]]], +[" ",[[0,40],[8,60],[0,40]]], +[" Cancel Delete ",[[0,40],[8,42],[9,6],[8,1],[10,8],[8,3],[0,40]]], +[" ",[[0,40],[8,60],[0,40]]], +[" ",[[0,140]]], +[" ",[[0,140]]], +[" ",[[0,140]]], +[" ",[[0,140]]], +[" ",[[0,140]]], +[" ",[[0,140]]], +[" ",[[0,140]]], +[" ",[[0,140]]], +[" ",[[0,140]]], +[" ",[[0,140]]], +[" ",[[0,140]]], +[" ",[[0,140]]], +[" ",[[0,140]]], +[" ",[[0,140]]], +[" ",[[0,140]]], +[" ↑↓ select Enter open/fold Tab group by c subsessions r rename d delete D delete group / search F5 refresh l language Esc back ",[[0,2],[2,2],[0,1],[3,6],[0,2],[2,5],[0,1],[3,9],[0,2],[2,3],[0,1],[3,5],[0,1],[3,2],[0,2],[2,1],[0,1],[3,11],[0,2],[2,1],[0,1],[3,6],[0,2],[2,1],[0,1],[3,6],[0,2],[2,1],[0,1],[3,6],[0,1],[3,5],[0,2],[2,1],[0,1],[3,6],[0,2],[2,2],[0,1],[3,7],[0,2],[2,1],[0,1],[3,8],[0,2],[2,3],[0,1],[3,4],[0,3]]], +[" ",[[0,140]]] +]} diff --git a/packages/cli-rs/parity/fixtures/P.8/session-manager/deleted.json b/packages/cli-rs/parity/fixtures/P.8/session-manager/deleted.json new file mode 100644 index 000000000000..2a4875f08aa2 --- /dev/null +++ b/packages/cli-rs/parity/fixtures/P.8/session-manager/deleted.json @@ -0,0 +1,36 @@ +{"width":140,"height":34,"styles":["#ffffffff #080808ff 0","#ffffffff #080808ff 1","#808080ff #080808ff 0","#9ee77aff #080808ff 0","#ffffffff #202020ff 0","#808080ff #202020ff 0","#9ee77aff #202020ff 0"],"lines":[ +[" ",[[0,140]]], +[" Session Manager [Directory] Project Created Updated Viewed Subsessions: hidd┃ ┃ ",[[0,2],[1,15],[0,14],[2,9],[0,1],[2,9],[0,1],[2,9],[0,1],[2,8],[0,26],[2,17],[3,1],[4,24],[3,1],[0,2]]], +[" ┃ Deleted 1 session x ┃ ",[[0,112],[3,1],[4,21],[5,1],[4,2],[3,1],[0,2]]], +[" ▼ /tmp/opencode/packages/tui (2) ┃ ┃ ",[[0,4],[1,26],[2,4],[0,78],[3,1],[4,24],[3,1],[0,2]]], +[" ● Plan the release 2023-11-16 ",[[0,2],[4,2],[6,2],[4,122],[5,10],[0,2]]], +[" · Draft the notes 2023-11-09 ",[[0,4],[2,2],[0,122],[2,10],[0,2]]], +[" ",[[0,140]]], +[" ",[[0,140]]], +[" ",[[0,140]]], +[" ",[[0,140]]], +[" ",[[0,140]]], +[" ",[[0,140]]], +[" ",[[0,140]]], +[" ",[[0,140]]], +[" ",[[0,140]]], +[" ",[[0,140]]], +[" ",[[0,140]]], +[" ",[[0,140]]], +[" ",[[0,140]]], +[" ",[[0,140]]], +[" ",[[0,140]]], +[" ",[[0,140]]], +[" ",[[0,140]]], +[" ",[[0,140]]], +[" ",[[0,140]]], +[" ",[[0,140]]], +[" ",[[0,140]]], +[" ",[[0,140]]], +[" ",[[0,140]]], +[" ",[[0,140]]], +[" ",[[0,140]]], +[" ",[[0,140]]], +[" ↑↓ select Enter open/fold Tab group by c subsessions r rename d delete D delete group / search F5 refresh l language Esc back ",[[0,4],[2,7],[0,7],[2,10],[0,5],[2,9],[0,3],[2,12],[0,3],[2,7],[0,3],[2,7],[0,3],[2,13],[0,3],[2,7],[0,4],[2,8],[0,3],[2,9],[0,5],[2,5],[0,3]]], +[" ",[[0,140]]] +]} diff --git a/packages/cli-rs/parity/fixtures/P.8/session-manager/moved.json b/packages/cli-rs/parity/fixtures/P.8/session-manager/moved.json new file mode 100644 index 000000000000..04d6678a4170 --- /dev/null +++ b/packages/cli-rs/parity/fixtures/P.8/session-manager/moved.json @@ -0,0 +1,36 @@ +{"width":140,"height":34,"styles":["#ffffffff #080808ff 0","#ffffffff #080808ff 1","#808080ff #080808ff 0","#ffffffff #202020ff 0","#ffffffff #202020ff 1","#808080ff #202020ff 0","#9ee77aff #080808ff 0"],"lines":[ +[" ",[[0,140]]], +[[" "," ","S","e","s","s","i","o","n"," ","M","a","n","a","g","e","r"," "," ","[","D","i","r","e","c","t","o","r","y","]"," "," ","P","r","o","j","e","c","t"," "," "," ","C","r","e","a","t","e","d"," "," "," ","U","p","d","a","t","e","d"," "," "," ","V","i","e","w","e","d"," "," "," "," "," "," "," "," "," "," "," "," "," "," "," "," "," "," "," "," "," "," "," "," "," "," "," ","S","u","b","s","e","s","s","i","o","n","s",":"," ","h","i","d","d","e","n"," ","·"," ","3"," ","s","e","s","s","i","o","n","s"," "," ","E","N"," ","|"," ","中","","文",""," "," "],[[0,2],[1,15],[0,14],[2,9],[0,1],[2,9],[0,1],[2,9],[0,1],[2,8],[0,26],[2,32],[0,2],[1,2],[2,7],[0,2]]], +[" ",[[0,140]]], +[" ▼ /tmp/opencode/packages/app (1) ",[[0,4],[1,26],[2,4],[0,106]]], +[" · Fix the theme picker 2023-11-17 ",[[0,4],[2,2],[0,122],[2,10],[0,2]]], +[" ",[[0,140]]], +[" ▼ /tmp/opencode/packages/tui (2) ",[[0,2],[3,2],[4,26],[5,4],[3,104],[0,2]]], +[" ● Plan the release 2023-11-16 ",[[0,4],[6,2],[0,122],[2,10],[0,2]]], +[" · Draft the notes 2023-11-09 ",[[0,4],[2,2],[0,122],[2,10],[0,2]]], +[" ",[[0,140]]], +[" ",[[0,140]]], +[" ",[[0,140]]], +[" ",[[0,140]]], +[" ",[[0,140]]], +[" ",[[0,140]]], +[" ",[[0,140]]], +[" ",[[0,140]]], +[" ",[[0,140]]], +[" ",[[0,140]]], +[" ",[[0,140]]], +[" ",[[0,140]]], +[" ",[[0,140]]], +[" ",[[0,140]]], +[" ",[[0,140]]], +[" ",[[0,140]]], +[" ",[[0,140]]], +[" ",[[0,140]]], +[" ",[[0,140]]], +[" ",[[0,140]]], +[" ",[[0,140]]], +[" ",[[0,140]]], +[" ",[[0,140]]], +[" ↑↓ select Enter open/fold Tab group by c subsessions r rename d delete D delete group / search F5 refresh l language Esc back ",[[0,4],[2,7],[0,7],[2,10],[0,5],[2,9],[0,3],[2,12],[0,3],[2,7],[0,3],[2,7],[0,3],[2,13],[0,3],[2,7],[0,4],[2,8],[0,3],[2,9],[0,5],[2,5],[0,3]]], +[" ",[[0,140]]] +]} diff --git a/packages/cli-rs/parity/fixtures/P.8/session-manager/page.json b/packages/cli-rs/parity/fixtures/P.8/session-manager/page.json new file mode 100644 index 000000000000..089a60978822 --- /dev/null +++ b/packages/cli-rs/parity/fixtures/P.8/session-manager/page.json @@ -0,0 +1,36 @@ +{"width":140,"height":34,"styles":["#ffffffff #080808ff 0","#ffffffff #080808ff 1","#808080ff #080808ff 0","#ffffffff #202020ff 0","#9ee77aff #202020ff 0","#808080ff #202020ff 0"],"lines":[ +[" ",[[0,140]]], +[[" "," ","S","e","s","s","i","o","n"," ","M","a","n","a","g","e","r"," "," ","[","D","i","r","e","c","t","o","r","y","]"," "," ","P","r","o","j","e","c","t"," "," "," ","C","r","e","a","t","e","d"," "," "," ","U","p","d","a","t","e","d"," "," "," ","V","i","e","w","e","d"," "," "," "," "," "," "," "," "," "," "," "," "," "," "," "," "," "," "," "," "," "," "," "," "," "," "," ","S","u","b","s","e","s","s","i","o","n","s",":"," ","h","i","d","d","e","n"," ","·"," ","3"," ","s","e","s","s","i","o","n","s"," "," ","E","N"," ","|"," ","中","","文",""," "," "],[[0,2],[1,15],[0,14],[2,9],[0,1],[2,9],[0,1],[2,9],[0,1],[2,8],[0,26],[2,32],[0,2],[1,2],[2,7],[0,2]]], +[" ",[[0,140]]], +[" ▼ /tmp/opencode/packages/app (1) ",[[0,4],[1,26],[2,4],[0,106]]], +[" · Fix the theme picker 2023-11-17 ",[[0,4],[2,2],[0,122],[2,10],[0,2]]], +[" ",[[0,140]]], +[" ▼ /tmp/opencode/packages/tui (2) ",[[0,4],[1,26],[2,4],[0,106]]], +[" ● Plan the release 2023-11-16 ",[[0,2],[3,2],[4,2],[3,122],[5,10],[0,2]]], +[" · Draft the notes 2023-11-09 ",[[0,4],[2,2],[0,122],[2,10],[0,2]]], +[" ",[[0,140]]], +[" ",[[0,140]]], +[" ",[[0,140]]], +[" ",[[0,140]]], +[" ",[[0,140]]], +[" ",[[0,140]]], +[" ",[[0,140]]], +[" ",[[0,140]]], +[" ",[[0,140]]], +[" ",[[0,140]]], +[" ",[[0,140]]], +[" ",[[0,140]]], +[" ",[[0,140]]], +[" ",[[0,140]]], +[" ",[[0,140]]], +[" ",[[0,140]]], +[" ",[[0,140]]], +[" ",[[0,140]]], +[" ",[[0,140]]], +[" ",[[0,140]]], +[" ",[[0,140]]], +[" ",[[0,140]]], +[" ",[[0,140]]], +[" ↑↓ select Enter open/fold Tab group by c subsessions r rename d delete D delete group / search F5 refresh l language Esc back ",[[0,4],[2,7],[0,7],[2,10],[0,5],[2,9],[0,3],[2,12],[0,3],[2,7],[0,3],[2,7],[0,3],[2,13],[0,3],[2,7],[0,4],[2,8],[0,3],[2,9],[0,5],[2,5],[0,3]]], +[" ",[[0,140]]] +]} diff --git a/packages/cli-rs/parity/fixtures/P.8/session-manager/paged-down.json b/packages/cli-rs/parity/fixtures/P.8/session-manager/paged-down.json new file mode 100644 index 000000000000..044391ba16f7 --- /dev/null +++ b/packages/cli-rs/parity/fixtures/P.8/session-manager/paged-down.json @@ -0,0 +1,36 @@ +{"width":140,"height":34,"styles":["#ffffffff #080808ff 0","#ffffffff #080808ff 1","#808080ff #080808ff 0","#9ee77aff #080808ff 0","#ffffffff #202020ff 0","#808080ff #202020ff 0"],"lines":[ +[" ",[[0,140]]], +[" Session Manager [Directory] Project Created Updated Viewed Subsessions: hidd┃ ┃ ",[[0,2],[1,15],[0,14],[2,9],[0,1],[2,9],[0,1],[2,9],[0,1],[2,8],[0,26],[2,17],[3,1],[4,24],[3,1],[0,2]]], +[" ┃ Deleted 1 session x ┃ ",[[0,112],[3,1],[4,21],[5,1],[4,2],[3,1],[0,2]]], +[" ▼ /tmp/opencode/packages/tui (2) ┃ ┃ ",[[0,4],[1,26],[2,4],[0,78],[3,1],[4,24],[3,1],[0,2]]], +[" ● Plan the release 2023-11-16 ",[[0,4],[3,2],[0,122],[2,10],[0,2]]], +[" · Draft the notes 2023-11-09 ",[[0,2],[4,2],[5,2],[4,122],[5,10],[0,2]]], +[" ",[[0,140]]], +[" ",[[0,140]]], +[" ",[[0,140]]], +[" ",[[0,140]]], +[" ",[[0,140]]], +[" ",[[0,140]]], +[" ",[[0,140]]], +[" ",[[0,140]]], +[" ",[[0,140]]], +[" ",[[0,140]]], +[" ",[[0,140]]], +[" ",[[0,140]]], +[" ",[[0,140]]], +[" ",[[0,140]]], +[" ",[[0,140]]], +[" ",[[0,140]]], +[" ",[[0,140]]], +[" ",[[0,140]]], +[" ",[[0,140]]], +[" ",[[0,140]]], +[" ",[[0,140]]], +[" ",[[0,140]]], +[" ",[[0,140]]], +[" ",[[0,140]]], +[" ",[[0,140]]], +[" ",[[0,140]]], +[" ↑↓ select Enter open/fold Tab group by c subsessions r rename d delete D delete group / search F5 refresh l language Esc back ",[[0,4],[2,7],[0,7],[2,10],[0,5],[2,9],[0,3],[2,12],[0,3],[2,7],[0,3],[2,7],[0,3],[2,13],[0,3],[2,7],[0,4],[2,8],[0,3],[2,9],[0,5],[2,5],[0,3]]], +[" ",[[0,140]]] +]} diff --git a/packages/cli-rs/parity/fixtures/P.8/session-manager/paged-up.json b/packages/cli-rs/parity/fixtures/P.8/session-manager/paged-up.json new file mode 100644 index 000000000000..f26fd5b886a5 --- /dev/null +++ b/packages/cli-rs/parity/fixtures/P.8/session-manager/paged-up.json @@ -0,0 +1,36 @@ +{"width":140,"height":34,"styles":["#ffffffff #080808ff 0","#ffffffff #080808ff 1","#808080ff #080808ff 0","#9ee77aff #080808ff 0","#ffffffff #202020ff 0","#808080ff #202020ff 0","#ffffffff #202020ff 1","#9ee77aff #202020ff 0"],"lines":[ +[" ",[[0,140]]], +[" Session Manager [Directory] Project Created Updated Viewed Subsessions: hidd┃ ┃ ",[[0,2],[1,15],[0,14],[2,9],[0,1],[2,9],[0,1],[2,9],[0,1],[2,8],[0,26],[2,17],[3,1],[4,24],[3,1],[0,2]]], +[" ┃ Deleted 1 session x ┃ ",[[0,112],[3,1],[4,21],[5,1],[4,2],[3,1],[0,2]]], +[" ▼ /tmp/opencode/packages/tui (2) ┃ ┃ ",[[0,2],[4,2],[6,26],[5,4],[4,78],[7,1],[4,24],[7,1],[0,2]]], +[" ● Plan the release 2023-11-16 ",[[0,4],[3,2],[0,122],[2,10],[0,2]]], +[" · Draft the notes 2023-11-09 ",[[0,4],[2,2],[0,122],[2,10],[0,2]]], +[" ",[[0,140]]], +[" ",[[0,140]]], +[" ",[[0,140]]], +[" ",[[0,140]]], +[" ",[[0,140]]], +[" ",[[0,140]]], +[" ",[[0,140]]], +[" ",[[0,140]]], +[" ",[[0,140]]], +[" ",[[0,140]]], +[" ",[[0,140]]], +[" ",[[0,140]]], +[" ",[[0,140]]], +[" ",[[0,140]]], +[" ",[[0,140]]], +[" ",[[0,140]]], +[" ",[[0,140]]], +[" ",[[0,140]]], +[" ",[[0,140]]], +[" ",[[0,140]]], +[" ",[[0,140]]], +[" ",[[0,140]]], +[" ",[[0,140]]], +[" ",[[0,140]]], +[" ",[[0,140]]], +[" ",[[0,140]]], +[" ↑↓ select Enter open/fold Tab group by c subsessions r rename d delete D delete group / search F5 refresh l language Esc back ",[[0,4],[2,7],[0,7],[2,10],[0,5],[2,9],[0,3],[2,12],[0,3],[2,7],[0,3],[2,7],[0,3],[2,13],[0,3],[2,7],[0,4],[2,8],[0,3],[2,9],[0,5],[2,5],[0,3]]], +[" ",[[0,140]]] +]} diff --git a/packages/cli-rs/parity/fixtures/P.8/session-manager/project.json b/packages/cli-rs/parity/fixtures/P.8/session-manager/project.json new file mode 100644 index 000000000000..0562f850e09c --- /dev/null +++ b/packages/cli-rs/parity/fixtures/P.8/session-manager/project.json @@ -0,0 +1,36 @@ +{"width":140,"height":34,"styles":["#ffffffff #080808ff 0","#ffffffff #080808ff 1","#808080ff #080808ff 0","#ffffffff #202020ff 0","#9ee77aff #202020ff 0","#808080ff #202020ff 0"],"lines":[ +[" ",[[0,140]]], +[[" "," ","S","e","s","s","i","o","n"," ","M","a","n","a","g","e","r"," "," "," ","D","i","r","e","c","t","o","r","y"," "," ","[","P","r","o","j","e","c","t","]"," "," ","C","r","e","a","t","e","d"," "," "," ","U","p","d","a","t","e","d"," "," "," ","V","i","e","w","e","d"," "," "," "," "," "," "," "," "," "," "," "," "," "," "," "," "," "," "," "," "," "," "," "," "," "," "," ","S","u","b","s","e","s","s","i","o","n","s",":"," ","h","i","d","d","e","n"," ","·"," ","3"," ","s","e","s","s","i","o","n","s"," "," ","E","N"," ","|"," ","中","","文",""," "," "],[[0,2],[1,15],[0,2],[2,11],[0,11],[2,9],[0,1],[2,9],[0,1],[2,8],[0,26],[2,32],[0,2],[1,2],[2,7],[0,2]]], +[" ",[[0,140]]], +[" ▼ proj_test (3) ",[[0,4],[1,9],[2,4],[0,123]]], +[" · Fix the theme picker /tmp/opencode/packages/app 2023-11-17 ",[[0,4],[2,2],[0,95],[2,26],[0,1],[2,10],[0,2]]], +[" ● Plan the release /tmp/opencode/packages/tui 2023-11-16 ",[[0,2],[3,2],[4,2],[3,95],[5,26],[3,1],[5,10],[0,2]]], +[" · Draft the notes /tmp/opencode/packages/tui 2023-11-09 ",[[0,4],[2,2],[0,95],[2,26],[0,1],[2,10],[0,2]]], +[" ",[[0,140]]], +[" ",[[0,140]]], +[" ",[[0,140]]], +[" ",[[0,140]]], +[" ",[[0,140]]], +[" ",[[0,140]]], +[" ",[[0,140]]], +[" ",[[0,140]]], +[" ",[[0,140]]], +[" ",[[0,140]]], +[" ",[[0,140]]], +[" ",[[0,140]]], +[" ",[[0,140]]], +[" ",[[0,140]]], +[" ",[[0,140]]], +[" ",[[0,140]]], +[" ",[[0,140]]], +[" ",[[0,140]]], +[" ",[[0,140]]], +[" ",[[0,140]]], +[" ",[[0,140]]], +[" ",[[0,140]]], +[" ",[[0,140]]], +[" ",[[0,140]]], +[" ",[[0,140]]], +[" ↑↓ select Enter open/fold Tab group by c subsessions r rename d delete D delete group / search F5 refresh l language Esc back ",[[0,4],[2,7],[0,7],[2,10],[0,5],[2,9],[0,3],[2,12],[0,3],[2,7],[0,3],[2,7],[0,3],[2,13],[0,3],[2,7],[0,4],[2,8],[0,3],[2,9],[0,5],[2,5],[0,3]]], +[" ",[[0,140]]] +]} diff --git a/packages/cli-rs/parity/fixtures/P.8/session-manager/rename.json b/packages/cli-rs/parity/fixtures/P.8/session-manager/rename.json new file mode 100644 index 000000000000..4d5ab103602e --- /dev/null +++ b/packages/cli-rs/parity/fixtures/P.8/session-manager/rename.json @@ -0,0 +1,36 @@ +{"width":140,"height":34,"styles":["#ffffffff #030303ff 0","#696969ff #030303ff 1","#696969ff #030303ff 0","#353535ff #030303ff 0","#ffffffff #0d0d0dff 0","#353535ff #0d0d0dff 0","#696969ff #0d0d0dff 0","#415f32ff #030303ff 0","#ffffffff #141414ff 0","#808080ff #141414ff 0","#ffffffff #23344bff 0"],"lines":[ +[" ",[[0,140]]], +[" Session Manager [Directory] Project Created Updated Viewed Subsessions: hidden · 3 sessions EN | ",[[0,2],[1,7],[0,1],[1,7],[0,2],[2,11],[0,2],[3,7],[0,3],[3,7],[0,3],[3,7],[0,3],[3,6],[0,27],[3,12],[0,1],[3,6],[0,1],[3,1],[0,1],[3,1],[0,1],[3,8],[0,2],[1,2],[0,1],[3,1],[0,7]]], +[" ",[[0,140]]], +[" ▼ /tmp/opencode/packages/app (1) ",[[0,2],[2,1],[0,1],[1,26],[0,1],[3,3],[0,106]]], +[" · Fix the theme picker 2023-11-17 ",[[0,2],[4,2],[5,1],[4,1],[6,3],[4,1],[6,3],[4,1],[6,5],[4,1],[6,6],[4,102],[5,10],[0,2]]], +[" ",[[0,140]]], +[" ▼ /tmp/opencode/packages/tui (2) ",[[0,2],[2,1],[0,1],[1,26],[0,1],[3,3],[0,106]]], +[" ● Plan the release 2023-11-16 ",[[0,4],[7,1],[0,1],[2,4],[0,1],[2,3],[0,1],[2,7],[0,106],[3,10],[0,2]]], +[" · Draft the notes 2023-11-09 ",[[0,4],[3,1],[0,1],[2,5],[0,1],[2,3],[0,1],[2,5],[0,107],[3,10],[0,2]]], +[" ",[[0,40],[8,60],[0,40]]], +[" Rename session esc ",[[0,40],[8,54],[9,3],[8,3],[0,40]]], +[" ",[[0,40],[8,60],[0,40]]], +[" /tmp/opencode/packages/app ",[[0,40],[8,60],[0,40]]], +[" ",[[0,40],[8,60],[0,40]]], +[" Fix the theme picker ",[[0,40],[8,60],[0,40]]], +[" ",[[0,40],[8,60],[0,40]]], +[" Submit ",[[0,40],[8,49],[10,8],[8,3],[0,40]]], +[" ",[[0,40],[8,60],[0,40]]], +[" ",[[0,140]]], +[" ",[[0,140]]], +[" ",[[0,140]]], +[" ",[[0,140]]], +[" ",[[0,140]]], +[" ",[[0,140]]], +[" ",[[0,140]]], +[" ",[[0,140]]], +[" ",[[0,140]]], +[" ",[[0,140]]], +[" ",[[0,140]]], +[" ",[[0,140]]], +[" ",[[0,140]]], +[" ",[[0,140]]], +[" ↑↓ select Enter open/fold Tab group by c subsessions r rename d delete D delete group / search F5 refresh l language Esc back ",[[0,2],[2,2],[0,1],[3,6],[0,2],[2,5],[0,1],[3,9],[0,2],[2,3],[0,1],[3,5],[0,1],[3,2],[0,2],[2,1],[0,1],[3,11],[0,2],[2,1],[0,1],[3,6],[0,2],[2,1],[0,1],[3,6],[0,2],[2,1],[0,1],[3,6],[0,1],[3,5],[0,2],[2,1],[0,1],[3,6],[0,2],[2,2],[0,1],[3,7],[0,2],[2,1],[0,1],[3,8],[0,2],[2,3],[0,1],[3,4],[0,3]]], +[" ",[[0,140]]] +]} diff --git a/packages/cli-rs/parity/fixtures/P.8/session-manager/renamed.json b/packages/cli-rs/parity/fixtures/P.8/session-manager/renamed.json new file mode 100644 index 000000000000..8b30998f3f08 --- /dev/null +++ b/packages/cli-rs/parity/fixtures/P.8/session-manager/renamed.json @@ -0,0 +1,36 @@ +{"width":140,"height":34,"styles":["#ffffffff #080808ff 0","#ffffffff #080808ff 1","#808080ff #080808ff 0","#ffffffff #202020ff 0","#808080ff #202020ff 0","#9ee77aff #080808ff 0"],"lines":[ +[" ",[[0,140]]], +[[" "," ","S","e","s","s","i","o","n"," ","M","a","n","a","g","e","r"," "," ","[","D","i","r","e","c","t","o","r","y","]"," "," ","P","r","o","j","e","c","t"," "," "," ","C","r","e","a","t","e","d"," "," "," ","U","p","d","a","t","e","d"," "," "," ","V","i","e","w","e","d"," "," "," "," "," "," "," "," "," "," "," "," "," "," "," "," "," "," "," "," "," "," "," "," "," "," "," ","S","u","b","s","e","s","s","i","o","n","s",":"," ","h","i","d","d","e","n"," ","·"," ","3"," ","s","e","s","s","i","o","n","s"," "," ","E","N"," ","|"," ","中","","文",""," "," "],[[0,2],[1,15],[0,14],[2,9],[0,1],[2,9],[0,1],[2,9],[0,1],[2,8],[0,26],[2,32],[0,2],[1,2],[2,7],[0,2]]], +[" ",[[0,140]]], +[" ▼ /tmp/opencode/packages/app (1) ",[[0,4],[1,26],[2,4],[0,106]]], +[" · Fix the theme picker 2023-11-17 ",[[0,2],[3,2],[4,2],[3,122],[4,10],[0,2]]], +[" ",[[0,140]]], +[" ▼ /tmp/opencode/packages/tui (2) ",[[0,4],[1,26],[2,4],[0,106]]], +[" ● Plan the release 2023-11-16 ",[[0,4],[5,2],[0,122],[2,10],[0,2]]], +[" · Draft the notes 2023-11-09 ",[[0,4],[2,2],[0,122],[2,10],[0,2]]], +[" ",[[0,140]]], +[" ",[[0,140]]], +[" ",[[0,140]]], +[" ",[[0,140]]], +[" ",[[0,140]]], +[" ",[[0,140]]], +[" ",[[0,140]]], +[" ",[[0,140]]], +[" ",[[0,140]]], +[" ",[[0,140]]], +[" ",[[0,140]]], +[" ",[[0,140]]], +[" ",[[0,140]]], +[" ",[[0,140]]], +[" ",[[0,140]]], +[" ",[[0,140]]], +[" ",[[0,140]]], +[" ",[[0,140]]], +[" ",[[0,140]]], +[" ",[[0,140]]], +[" ",[[0,140]]], +[" ",[[0,140]]], +[" ",[[0,140]]], +[" ↑↓ select Enter open/fold Tab group by c subsessions r rename d delete D delete group / search F5 refresh l language Esc back ",[[0,4],[2,7],[0,7],[2,10],[0,5],[2,9],[0,3],[2,12],[0,3],[2,7],[0,3],[2,7],[0,3],[2,13],[0,3],[2,7],[0,4],[2,8],[0,3],[2,9],[0,5],[2,5],[0,3]]], +[" ",[[0,140]]] +]} diff --git a/packages/cli-rs/parity/fixtures/P.8/session-manager/search.json b/packages/cli-rs/parity/fixtures/P.8/session-manager/search.json new file mode 100644 index 000000000000..aa3006149789 --- /dev/null +++ b/packages/cli-rs/parity/fixtures/P.8/session-manager/search.json @@ -0,0 +1,36 @@ +{"width":140,"height":34,"styles":["#ffffffff #080808ff 0","#ffffffff #080808ff 1","#808080ff #080808ff 0","#ffffffff #202020ff 0","#808080ff #202020ff 0"],"lines":[ +[" ",[[0,140]]], +[[" "," ","S","e","s","s","i","o","n"," ","M","a","n","a","g","e","r"," "," ","[","D","i","r","e","c","t","o","r","y","]"," "," ","P","r","o","j","e","c","t"," "," "," ","C","r","e","a","t","e","d"," "," "," ","U","p","d","a","t","e","d"," "," "," ","V","i","e","w","e","d"," "," "," "," "," "," "," "," "," "," "," "," "," "," "," "," "," "," "," "," "," "," "," "," "," "," "," "," ","S","u","b","s","e","s","s","i","o","n","s",":"," ","h","i","d","d","e","n"," ","·"," ","1"," ","s","e","s","s","i","o","n"," "," ","E","N"," ","|"," ","中","","文",""," "," "],[[0,2],[1,15],[0,14],[2,9],[0,1],[2,9],[0,1],[2,9],[0,1],[2,8],[0,27],[2,31],[0,2],[1,2],[2,7],[0,2]]], +[" ",[[0,140]]], +[" / theme 1 match ",[[0,131],[2,7],[0,2]]], +[" ",[[0,140]]], +[" ▼ /tmp/opencode/packages/app (1) ",[[0,4],[1,26],[2,4],[0,106]]], +[" · Fix the theme picker 2023-11-17 ",[[0,2],[3,2],[4,2],[3,122],[4,10],[0,2]]], +[" ",[[0,140]]], +[" ",[[0,140]]], +[" ",[[0,140]]], +[" ",[[0,140]]], +[" ",[[0,140]]], +[" ",[[0,140]]], +[" ",[[0,140]]], +[" ",[[0,140]]], +[" ",[[0,140]]], +[" ",[[0,140]]], +[" ",[[0,140]]], +[" ",[[0,140]]], +[" ",[[0,140]]], +[" ",[[0,140]]], +[" ",[[0,140]]], +[" ",[[0,140]]], +[" ",[[0,140]]], +[" ",[[0,140]]], +[" ",[[0,140]]], +[" ",[[0,140]]], +[" ",[[0,140]]], +[" ",[[0,140]]], +[" ",[[0,140]]], +[" ",[[0,140]]], +[" ",[[0,140]]], +[" ↑↓ select Enter open/fold Tab group by c subsessions r rename d delete D delete group / search F5 refresh l language Esc back ",[[0,4],[2,7],[0,7],[2,10],[0,5],[2,9],[0,3],[2,12],[0,3],[2,7],[0,3],[2,7],[0,3],[2,13],[0,3],[2,7],[0,4],[2,8],[0,3],[2,9],[0,5],[2,5],[0,3]]], +[" ",[[0,140]]] +]} diff --git a/packages/cli-rs/parity/fixtures/P.8/session-manager/searching.json b/packages/cli-rs/parity/fixtures/P.8/session-manager/searching.json new file mode 100644 index 000000000000..25f1afa2847a --- /dev/null +++ b/packages/cli-rs/parity/fixtures/P.8/session-manager/searching.json @@ -0,0 +1,36 @@ +{"width":140,"height":34,"styles":["#ffffffff #080808ff 0","#ffffffff #080808ff 1","#808080ff #080808ff 0","#666666ff #080808ff 0","#ffffffff #202020ff 0","#ffffffff #202020ff 1","#808080ff #202020ff 0","#9ee77aff #080808ff 0"],"lines":[ +[" ",[[0,140]]], +[[" "," ","S","e","s","s","i","o","n"," ","M","a","n","a","g","e","r"," "," ","[","D","i","r","e","c","t","o","r","y","]"," "," ","P","r","o","j","e","c","t"," "," "," ","C","r","e","a","t","e","d"," "," "," ","U","p","d","a","t","e","d"," "," "," ","V","i","e","w","e","d"," "," "," "," "," "," "," "," "," "," "," "," "," "," "," "," "," "," "," "," "," "," "," "," "," "," "," ","S","u","b","s","e","s","s","i","o","n","s",":"," ","h","i","d","d","e","n"," ","·"," ","3"," ","s","e","s","s","i","o","n","s"," "," ","E","N"," ","|"," ","中","","文",""," "," "],[[0,2],[1,15],[0,14],[2,9],[0,1],[2,9],[0,1],[2,9],[0,1],[2,8],[0,26],[2,32],[0,2],[1,2],[2,7],[0,2]]], +[" ",[[0,140]]], +[" / Search titles and directories ",[[0,4],[3,29],[0,107]]], +[" ",[[0,140]]], +[" ▼ /tmp/opencode/packages/app (1) ",[[0,4],[1,26],[2,4],[0,106]]], +[" · Fix the theme picker 2023-11-17 ",[[0,4],[2,2],[0,122],[2,10],[0,2]]], +[" ",[[0,140]]], +[" ▼ /tmp/opencode/packages/tui (2) ",[[0,2],[4,2],[5,26],[6,4],[4,104],[0,2]]], +[" ● Plan the release 2023-11-16 ",[[0,4],[7,2],[0,122],[2,10],[0,2]]], +[" · Draft the notes 2023-11-09 ",[[0,4],[2,2],[0,122],[2,10],[0,2]]], +[" ",[[0,140]]], +[" ",[[0,140]]], +[" ",[[0,140]]], +[" ",[[0,140]]], +[" ",[[0,140]]], +[" ",[[0,140]]], +[" ",[[0,140]]], +[" ",[[0,140]]], +[" ",[[0,140]]], +[" ",[[0,140]]], +[" ",[[0,140]]], +[" ",[[0,140]]], +[" ",[[0,140]]], +[" ",[[0,140]]], +[" ",[[0,140]]], +[" ",[[0,140]]], +[" ",[[0,140]]], +[" ",[[0,140]]], +[" ",[[0,140]]], +[" ",[[0,140]]], +[" ",[[0,140]]], +[" ↑↓ select Enter open/fold Tab group by c subsessions r rename d delete D delete group / search F5 refresh l language Esc back ",[[0,4],[2,7],[0,7],[2,10],[0,5],[2,9],[0,3],[2,12],[0,3],[2,7],[0,3],[2,7],[0,3],[2,13],[0,3],[2,7],[0,4],[2,8],[0,3],[2,9],[0,5],[2,5],[0,3]]], +[" ",[[0,140]]] +]} diff --git a/packages/cli-rs/parity/fixtures/P.8/session-manager/session.json b/packages/cli-rs/parity/fixtures/P.8/session-manager/session.json new file mode 100644 index 000000000000..becd22a11d78 --- /dev/null +++ b/packages/cli-rs/parity/fixtures/P.8/session-manager/session.json @@ -0,0 +1,36 @@ +{"width":140,"height":34,"styles":["#ffffffff #202020ff 0","#ffffffff #202020ff 1","#808080ff #080808ff 0","#ffffffff #080808ff 0","#ffffffff #141414ff 0","#ffffffff #141414ff 1","#808080ff #202020ff 0","#484848ff #080808ff 0","#202020ff #080808ff 0","#808080ff #141414ff 0"],"lines":[ +[" Plan the release + ",[[0,3],[1,16],[0,13],[2,3],[3,105]]], +[" ",[[3,98],[4,42]]], +[" Plan the release ",[[3,98],[4,2],[5,16],[4,24]]], +[" ",[[3,98],[4,42]]], +[" ",[[3,98],[4,42]]], +[" ",[[3,98],[4,42]]], +[" ",[[3,98],[4,42]]], +[" ",[[3,98],[4,42]]], +[" ",[[3,98],[4,42]]], +[" ",[[3,98],[4,42]]], +[" ",[[3,98],[4,42]]], +[" ",[[3,98],[4,42]]], +[" ",[[3,98],[4,42]]], +[" ",[[3,98],[4,42]]], +[" ",[[3,98],[4,42]]], +[" ",[[3,98],[4,42]]], +[" ",[[3,98],[4,42]]], +[" ",[[3,98],[4,42]]], +[" ",[[3,98],[4,42]]], +[" ",[[3,98],[4,2],[0,38],[4,2]]], +[" ⬖ Getting started ✕ ",[[3,98],[4,2],[0,4],[1,15],[0,16],[6,1],[0,2],[4,2]]], +[" ",[[3,98],[4,2],[0,38],[4,2]]], +[" OpenCode includes free models so ",[[3,98],[4,2],[0,4],[6,32],[0,2],[4,2]]], +[" you can start immediately. ",[[3,98],[4,2],[0,4],[6,26],[0,8],[4,2]]], +[" ",[[3,98],[4,2],[0,38],[4,2]]], +[" Connect from 75+ providers to ",[[3,98],[4,2],[0,4],[6,30],[0,4],[4,2]]], +[" use other models, including ",[[3,98],[4,2],[0,4],[6,28],[0,6],[4,2]]], +[" ┃ Claude, GPT, Gemini etc ",[[3,2],[7,1],[0,93],[3,2],[4,2],[0,4],[6,23],[0,11],[4,2]]], +[" ┃ ",[[3,2],[7,1],[0,93],[3,2],[4,2],[0,38],[4,2]]], +[" ┃ Connect provider /connect ",[[3,2],[7,1],[0,93],[3,2],[4,2],[0,28],[6,8],[0,2],[4,2]]], +[" ┃ ",[[3,2],[7,1],[0,93],[3,2],[4,2],[0,38],[4,2]]], +[" ╹▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀ ",[[3,2],[7,1],[8,93],[3,2],[4,42]]], +[" /tmp/opencode/packages/tui:main shift+tab agents ctrl+p commands /tmp/opencode/packages/tui:main ",[[3,2],[2,31],[3,40],[2,6],[3,9],[2,8],[3,2],[4,2],[9,31],[4,9]]], +[" ",[[3,98],[4,42]]] +]} diff --git a/packages/cli-rs/parity/fixtures/P.8/session-manager/slash.json b/packages/cli-rs/parity/fixtures/P.8/session-manager/slash.json new file mode 100644 index 000000000000..aa0aef3cc899 --- /dev/null +++ b/packages/cli-rs/parity/fixtures/P.8/session-manager/slash.json @@ -0,0 +1,36 @@ +{"width":140,"height":34,"styles":["#ffffffff #202020ff 0","#ffffffff #202020ff 1","#808080ff #080808ff 0","#ffffffff #080808ff 0","#ffffffff #141414ff 0","#ffffffff #141414ff 1","#808080ff #202020ff 0","#7699feff #080808ff 0","#ffffffff #23344bff 0","#484848ff #080808ff 0","#202020ff #080808ff 0","#808080ff #141414ff 0"],"lines":[ +[" Plan the release + ",[[0,3],[1,16],[0,13],[2,3],[3,105]]], +[" ",[[3,98],[4,42]]], +[" Plan the release ",[[3,98],[4,2],[5,16],[4,24]]], +[" ",[[3,98],[4,42]]], +[" ",[[3,98],[4,42]]], +[" ",[[3,98],[4,42]]], +[" ",[[3,98],[4,42]]], +[" ",[[3,98],[4,42]]], +[" ",[[3,98],[4,42]]], +[" ",[[3,98],[4,42]]], +[" ",[[3,98],[4,42]]], +[" ",[[3,98],[4,42]]], +[" ",[[3,98],[4,42]]], +[" ",[[3,98],[4,42]]], +[" ",[[3,98],[4,42]]], +[" ",[[3,98],[4,42]]], +[" ",[[3,98],[4,42]]], +[" ",[[3,98],[4,42]]], +[" ",[[3,98],[4,42]]], +[" ",[[3,98],[4,2],[0,38],[4,2]]], +[" ⬖ Getting started ✕ ",[[3,98],[4,2],[0,4],[1,15],[0,16],[6,1],[0,2],[4,2]]], +[" ",[[3,98],[4,2],[0,38],[4,2]]], +[" OpenCode includes free models so ",[[3,98],[4,2],[0,4],[6,32],[0,2],[4,2]]], +[" you can start immediately. ",[[3,98],[4,2],[0,4],[6,26],[0,8],[4,2]]], +[" ",[[3,98],[4,2],[0,38],[4,2]]], +[" Connect from 75+ providers to ",[[3,98],[4,2],[0,4],[6,30],[0,4],[4,2]]], +[" ┃ /session-manager Browse, rename and delete sessions grouped by directory, project or tim ┃ use other models, including ",[[3,2],[7,1],[8,92],[9,1],[3,2],[4,2],[0,4],[6,28],[0,6],[4,2]]], +[" ┃ Claude, GPT, Gemini etc ",[[3,2],[9,1],[0,93],[3,2],[4,2],[0,4],[6,23],[0,11],[4,2]]], +[" ┃ /session-manager ",[[3,2],[9,1],[0,93],[3,2],[4,2],[0,38],[4,2]]], +[" ┃ Connect provider /connect ",[[3,2],[9,1],[0,93],[3,2],[4,2],[0,28],[6,8],[0,2],[4,2]]], +[" ┃ ",[[3,2],[9,1],[0,93],[3,2],[4,2],[0,38],[4,2]]], +[" ╹▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀ ",[[3,2],[9,1],[10,93],[3,2],[4,42]]], +[" /tmp/opencode/packages/tui:main shift+tab agents ctrl+p commands /tmp/opencode/packages/tui:main ",[[3,2],[2,31],[3,40],[2,6],[3,9],[2,8],[3,2],[4,2],[11,31],[4,9]]], +[" ",[[3,98],[4,42]]] +]} diff --git a/packages/cli-rs/parity/fixtures/P.8/session-time.app.json b/packages/cli-rs/parity/fixtures/P.8/session-time.app.json new file mode 100644 index 000000000000..b7c4bdafdc50 --- /dev/null +++ b/packages/cli-rs/parity/fixtures/P.8/session-time.app.json @@ -0,0 +1,69 @@ +{ + "scenario": "P.8/session-time", + "width": 140, + "height": 34, + "directory": "/tmp/opencode/packages/tui", + "config": { + "experimental": {"new-designs":true}, + "plugins": ["./out/npm/node_modules/opencode-session-time"], + "animations": false, + "theme": {"name":"opencode"} + }, + "args": { + "sessionID": "ses_t" + }, + "env": { + "OPENCODE_PARITY_PLUGIN": "npm" + }, + "routes": [ + {"path":"/api/session/ses_t","json":{"data":{"id":"ses_t","title":"Time the turns","projectID":"proj_test","cost":0,"tokens":{"input":0,"output":0,"reasoning":0,"cache":{"read":0,"write":0}},"time":{"created":200000,"updated":200000},"location":{"directory":"/tmp/opencode/packages/tui"}}}}, + {"path":"/api/session","json":{"data":[{"id":"ses_t","title":"Time the turns","projectID":"proj_test","cost":0,"tokens":{"input":0,"output":0,"reasoning":0,"cache":{"read":0,"write":0}},"time":{"created":200000,"updated":200000},"location":{"directory":"/tmp/opencode/packages/tui"}}],"cursor":{}}}, + {"path":"/api/session/ses_t/message","json":{"data":[{"id":"msg_a3","type":"assistant","agent":"build","model":{"providerID":"provider","id":"model"},"content":[{"type":"text","text":"Third answer."}],"finish":"stop","time":{"created":181000,"completed":184500}},{"id":"msg_u3","type":"user","text":"Question 3","time":{"created":180000}},{"id":"msg_a2","type":"assistant","agent":"build","model":{"providerID":"provider","id":"model"},"content":[{"type":"text","text":"Second answer."}],"finish":"stop","time":{"created":121000,"completed":124500}},{"id":"msg_u2","type":"user","text":"Question 2","time":{"created":120000}},{"id":"msg_a1","type":"assistant","agent":"build","model":{"providerID":"provider","id":"model"},"content":[{"type":"text","text":"First answer."}],"finish":"stop","time":{"created":61000,"completed":64500}},{"id":"msg_u1","type":"user","text":"Question 1","time":{"created":60000}}],"cursor":{}}}, + {"path":"/api/session/ses_t/inbox","json":{"data":[]}} + ], + "steps": [ + {"checkpoint":"session","until":"Third answer.","masks":[{"x":100,"y":4,"width":38,"height":7,"reason":"the plugin's live timings: TS recomputes them on a timer its recorder never fires"},{"x":50,"y":32,"width":13,"height":1,"reason":"the plugin's live timings: TS recomputes them on a timer its recorder never fires"}],"fixture":"P.8/session-time/session"}, + {"type":"/time"}, + {"checkpoint":"slash","until":"Time: session timeline","masks":[{"x":100,"y":4,"width":38,"height":7,"reason":"the plugin's live timings: TS recomputes them on a timer its recorder never fires"},{"x":50,"y":32,"width":13,"height":1,"reason":"the plugin's live timings: TS recomputes them on a timer its recorder never fires"}],"fixture":"P.8/session-time/slash"}, + {"keys":["enter"]}, + {"checkpoint":"timeline","until":"3 turns","masks":[{"x":100,"y":4,"width":38,"height":7,"reason":"the plugin's live timings: TS recomputes them on a timer its recorder never fires"},{"x":50,"y":32,"width":13,"height":1,"reason":"the plugin's live timings: TS recomputes them on a timer its recorder never fires"}],"fixture":"P.8/session-time/timeline"}, + {"keys":["enter"]}, + {"checkpoint":"details","until":"Turn details","masks":[{"x":100,"y":4,"width":38,"height":7,"reason":"the plugin's live timings: TS recomputes them on a timer its recorder never fires"},{"x":50,"y":32,"width":13,"height":1,"reason":"the plugin's live timings: TS recomputes them on a timer its recorder never fires"}],"fixture":"P.8/session-time/details"} + ], + "requests": { + "writes": [], + "reads": [ + {"method":"GET","path":"/api/agent","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":[]}}, + {"method":"GET","path":"/api/command","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":[]}}, + {"method":"GET","path":"/api/config","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":[]}, + {"method":"GET","path":"/api/experimental/job","query":{"descendants":["true"],"sessionID":["ses_t"],"status":["running"]},"status":200,"json":{"data":[]}}, + {"method":"GET","path":"/api/experimental/migration/v1","query":{},"status":200,"json":{"status":"completed"}}, + {"method":"GET","path":"/api/experimental/session/ses_t/terminal","query":{},"status":200,"json":{"data":[]}}, + {"method":"GET","path":"/api/form","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode"}},"data":[]}}, + {"method":"GET","path":"/api/fs/list","query":{"location[directory]":["<cwd>"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":[]}}, + {"method":"GET","path":"/api/info","query":{},"status":200,"json":{"version":"test","pid":0,"urls":[],"paths":{"tmp":"/tmp"},"capabilities":{"persistentPty":true}}}, + {"method":"GET","path":"/api/integration","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":[]}}, + {"method":"GET","path":"/api/location","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}}}, + {"method":"GET","path":"/api/mcp","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":[]}}, + {"method":"GET","path":"/api/mcp/resource","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":{"resources":[],"templates":[]}}}, + {"method":"GET","path":"/api/model","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":[]}}, + {"method":"GET","path":"/api/plugin","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":[]}}, + {"method":"GET","path":"/api/project","query":{},"status":200,"json":[]}, + {"method":"GET","path":"/api/provider","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":[]}}, + {"method":"GET","path":"/api/reference","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode/packages/tui","canonical":"/tmp/opencode/packages/tui"}},"data":[]}}, + {"method":"GET","path":"/api/session","query":{"limit":["200"],"order":["desc"],"parentID":["ses_t"]},"status":200,"json":{"data":[{"id":"ses_t","title":"Time the turns","projectID":"proj_test","cost":0,"tokens":{"input":0,"output":0,"reasoning":0,"cache":{"read":0,"write":0}},"time":{"created":200000,"updated":200000},"location":{"directory":"/tmp/opencode/packages/tui"}}],"cursor":{}}}, + {"method":"GET","path":"/api/session/active","query":{},"status":200,"json":{"data":{}}}, + {"method":"GET","path":"/api/session/ses_t","query":{},"status":200,"json":{"data":{"id":"ses_t","title":"Time the turns","projectID":"proj_test","cost":0,"tokens":{"input":0,"output":0,"reasoning":0,"cache":{"read":0,"write":0}},"time":{"created":200000,"updated":200000},"location":{"directory":"/tmp/opencode/packages/tui"}}}}, + {"method":"GET","path":"/api/session/ses_t/form","query":{},"status":200,"json":{"data":[]}}, + {"method":"GET","path":"/api/session/ses_t/inbox","query":{},"status":200,"json":{"data":[]}}, + {"method":"GET","path":"/api/session/ses_t/message","query":{"limit":["1"],"order":["desc"],"type":["user"]},"status":200,"json":{"data":[{"id":"msg_a3","type":"assistant","agent":"build","model":{"providerID":"provider","id":"model"},"content":[{"type":"text","text":"Third answer."}],"finish":"stop","time":{"created":181000,"completed":184500}},{"id":"msg_u3","type":"user","text":"Question 3","time":{"created":180000}},{"id":"msg_a2","type":"assistant","agent":"build","model":{"providerID":"provider","id":"model"},"content":[{"type":"text","text":"Second answer."}],"finish":"stop","time":{"created":121000,"completed":124500}},{"id":"msg_u2","type":"user","text":"Question 2","time":{"created":120000}},{"id":"msg_a1","type":"assistant","agent":"build","model":{"providerID":"provider","id":"model"},"content":[{"type":"text","text":"First answer."}],"finish":"stop","time":{"created":61000,"completed":64500}},{"id":"msg_u1","type":"user","text":"Question 1","time":{"created":60000}}],"cursor":{}}}, + {"method":"GET","path":"/api/session/ses_t/message","query":{"limit":["100"]},"status":200,"json":{"data":[{"id":"msg_a3","type":"assistant","agent":"build","model":{"providerID":"provider","id":"model"},"content":[{"type":"text","text":"Third answer."}],"finish":"stop","time":{"created":181000,"completed":184500}},{"id":"msg_u3","type":"user","text":"Question 3","time":{"created":180000}},{"id":"msg_a2","type":"assistant","agent":"build","model":{"providerID":"provider","id":"model"},"content":[{"type":"text","text":"Second answer."}],"finish":"stop","time":{"created":121000,"completed":124500}},{"id":"msg_u2","type":"user","text":"Question 2","time":{"created":120000}},{"id":"msg_a1","type":"assistant","agent":"build","model":{"providerID":"provider","id":"model"},"content":[{"type":"text","text":"First answer."}],"finish":"stop","time":{"created":61000,"completed":64500}},{"id":"msg_u1","type":"user","text":"Question 1","time":{"created":60000}}],"cursor":{}}}, + {"method":"GET","path":"/api/session/ses_t/message","query":{"limit":["20"],"order":["desc"]},"status":200,"json":{"data":[{"id":"msg_a3","type":"assistant","agent":"build","model":{"providerID":"provider","id":"model"},"content":[{"type":"text","text":"Third answer."}],"finish":"stop","time":{"created":181000,"completed":184500}},{"id":"msg_u3","type":"user","text":"Question 3","time":{"created":180000}},{"id":"msg_a2","type":"assistant","agent":"build","model":{"providerID":"provider","id":"model"},"content":[{"type":"text","text":"Second answer."}],"finish":"stop","time":{"created":121000,"completed":124500}},{"id":"msg_u2","type":"user","text":"Question 2","time":{"created":120000}},{"id":"msg_a1","type":"assistant","agent":"build","model":{"providerID":"provider","id":"model"},"content":[{"type":"text","text":"First answer."}],"finish":"stop","time":{"created":61000,"completed":64500}},{"id":"msg_u1","type":"user","text":"Question 1","time":{"created":60000}}],"cursor":{}}}, + {"method":"GET","path":"/api/session/ses_t/permission","query":{},"status":200,"json":{"data":[]}}, + {"method":"GET","path":"/api/shell","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":[]}}, + {"method":"GET","path":"/api/skill","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":[]}}, + {"method":"GET","path":"/api/vcs","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":{"branch":{"current":"main","default":"main"}}}}, + {"method":"POST","path":"/api/rpc/opencode.goal/get","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"body":{"input":{"sessionID":"ses_t"}},"status":200,"json":{"output":null}} + ] + } +} diff --git a/packages/cli-rs/parity/fixtures/P.8/session-time/details.json b/packages/cli-rs/parity/fixtures/P.8/session-time/details.json new file mode 100644 index 000000000000..a8d8dba8d8d3 --- /dev/null +++ b/packages/cli-rs/parity/fixtures/P.8/session-time/details.json @@ -0,0 +1,36 @@ +{"width":140,"height":34,"styles":["#ffffffff #0d0d0dff 0","#696969ff #0d0d0dff 1","#ffffffff #030303ff 0","#353535ff #030303ff 0","#ffffffff #080808ff 0","#313f69ff #080808ff 0","#696969ff #080808ff 1","#696969ff #080808ff 0","#00000000 #00000000 0","#626262ff #030303ff 0","#313f69ff #030303ff 0","#ffffffff #141414ff 0","#808080ff #141414ff 0","#353535ff #0d0d0dff 0","#ffffffff #202020ff 0","#808080ff #202020ff 0","#1e1e1eff #030303ff 0","#696969ff #0d0d0dff 0","#0d0d0dff #030303ff 0","#696969ff #030303ff 0","#353535ff #080808ff 0"],"lines":[ +[" Time the turns + ",[[0,3],[1,4],[0,1],[1,3],[0,1],[1,5],[0,15],[2,1],[3,1],[2,106]]], +[" ",[[2,98],[4,42]]], +[" ┃ Time the turns ",[[2,2],[5,1],[4,93],[2,2],[4,2],[6,4],[4,1],[6,3],[4,1],[6,5],[4,26]]], +[" ┃ Question 1 ",[[2,2],[5,1],[4,2],[7,8],[4,1],[7,1],[4,81],[2,2],[4,42]]], +[" ┃ ",[[2,2],[5,1],[4,93],[2,2],[4,2],[8,38],[4,2]]], +[" ",[[2,98],[4,2],[8,38],[4,2]]], +[" First answer. ",[[2,5],[9,5],[2,1],[9,7],[2,80],[4,2],[8,38],[4,2]]], +[" ",[[2,98],[4,2],[8,38],[4,2]]], +[" Build · provider/model · 4.5s ",[[2,5],[10,5],[2,1],[3,1],[2,1],[3,14],[2,1],[3,1],[2,1],[3,4],[2,64],[4,2],[8,38],[4,2]]], +[" ",[[2,12],[11,88],[8,38],[4,2]]], +[" ┃ Turn details ",[[2,2],[5,1],[4,9],[11,88],[8,38],[4,2]]], +[" ┃ Questio ",[[2,2],[5,1],[4,2],[7,7],[11,116],[4,12]]], +[" ┃ started: 01.01, 00:03:01 ",[[2,2],[5,1],[4,9],[11,3],[12,26],[11,87],[4,12]]], +[" completed: 01.01, 00:03:04 ",[[2,12],[11,3],[12,26],[11,87],[4,12]]], +[" Second duration: 3.5s ",[[2,5],[9,6],[2,1],[11,3],[12,15],[11,98],[4,12]]], +[" agent: build ",[[2,12],[11,3],[12,16],[11,97],[4,12]]], +[" Build · model: model ",[[2,5],[10,5],[2,1],[3,1],[11,3],[12,16],[11,97],[4,12]]], +[" tokens: in 0 · out 0 · reasoning 0 · cache read 0 ",[[2,12],[11,3],[12,52],[11,61],[4,12]]], +[" ┃ cost: $0 ",[[2,2],[5,1],[4,9],[11,3],[12,13],[11,100],[4,12]]], +[" ┃ Questio finish: stop ",[[2,2],[5,1],[4,2],[7,7],[11,3],[12,15],[11,98],[0,10],[4,2]]], +[" ┃ ✕ ",[[2,2],[5,1],[4,9],[11,116],[0,7],[13,1],[0,2],[4,2]]], +[" Third answer. ",[[2,12],[11,3],[12,13],[11,100],[0,10],[4,2]]], +[" Third a odels so ",[[2,5],[9,5],[2,1],[9,1],[11,116],[13,5],[0,1],[13,2],[0,2],[4,2]]], +[" y. ",[[2,12],[14,116],[13,2],[0,8],[4,2]]], +[" Build · ok enter ",[[2,5],[10,5],[2,1],[3,1],[14,107],[15,6],[14,3],[0,10],[4,2]]], +[" rs to ",[[2,12],[14,116],[13,2],[0,1],[13,2],[0,5],[4,2]]], +[" use other models, including ",[[2,98],[4,2],[0,4],[13,3],[0,1],[13,5],[0,1],[13,7],[0,1],[13,9],[0,7],[4,2]]], +[" ┃ Claude, GPT, Gemini etc ",[[2,2],[16,1],[0,93],[2,2],[4,2],[0,4],[13,7],[0,1],[13,4],[0,1],[13,6],[0,1],[13,3],[0,11],[4,2]]], +[" ┃ ",[[2,2],[16,1],[0,93],[2,2],[4,2],[0,38],[4,2]]], +[" ┃ Connect provider /connect ",[[2,2],[16,1],[0,93],[2,2],[4,2],[0,4],[17,7],[0,1],[17,8],[0,8],[13,8],[0,2],[4,2]]], +[" ┃ ",[[2,2],[16,1],[0,93],[2,2],[4,2],[0,38],[4,2]]], +[" ╹▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀ ",[[2,2],[16,1],[18,93],[2,2],[4,42]]], +[" /tmp/opencode/packages/tui:main shift+tab agents ctrl+p commands /tmp/opencode/packages/tui:main ",[[2,2],[3,31],[2,17],[8,13],[19,9],[2,1],[3,6],[2,2],[19,6],[2,1],[3,8],[2,2],[4,2],[20,31],[4,9]]], +[" ",[[2,98],[4,42]]] +]} diff --git a/packages/cli-rs/parity/fixtures/P.8/session-time/session.json b/packages/cli-rs/parity/fixtures/P.8/session-time/session.json new file mode 100644 index 000000000000..74711dfbd3a0 --- /dev/null +++ b/packages/cli-rs/parity/fixtures/P.8/session-time/session.json @@ -0,0 +1,36 @@ +{"width":140,"height":34,"styles":["#ffffffff #202020ff 0","#ffffffff #202020ff 1","#808080ff #080808ff 0","#ffffffff #080808ff 0","#ffffffff #141414ff 0","#7699feff #141414ff 0","#ffffffff #141414ff 1","#00000000 #00000000 0","#eeeeeeff #080808ff 0","#7699feff #080808ff 0","#808080ff #202020ff 0","#484848ff #080808ff 0","#202020ff #080808ff 0","#808080ff #141414ff 0"],"lines":[ +[" Time the turns + ",[[0,3],[1,14],[0,15],[2,3],[3,105]]], +[" ",[[3,98],[4,42]]], +[" ┃ Time the turns ",[[3,2],[5,1],[4,93],[3,2],[4,2],[6,14],[4,26]]], +[" ┃ Question 1 ",[[3,2],[5,1],[4,93],[3,2],[4,42]]], +[" ┃ ",[[3,2],[5,1],[4,93],[3,2],[4,2],[7,38],[4,2]]], +[" ",[[3,98],[4,2],[7,38],[4,2]]], +[" First answer. ",[[3,5],[8,13],[3,80],[4,2],[7,38],[4,2]]], +[" ",[[3,98],[4,2],[7,38],[4,2]]], +[" Build · provider/model · 4.5s ",[[3,5],[9,5],[2,24],[3,64],[4,2],[7,38],[4,2]]], +[" ",[[3,98],[4,2],[7,38],[4,2]]], +[" ┃ ",[[3,2],[5,1],[4,93],[3,2],[4,2],[7,38],[4,2]]], +[" ┃ Question 2 ",[[3,2],[5,1],[4,93],[3,2],[4,42]]], +[" ┃ ",[[3,2],[5,1],[4,93],[3,2],[4,42]]], +[" ",[[3,98],[4,42]]], +[" Second answer. ",[[3,5],[8,14],[3,79],[4,42]]], +[" ",[[3,98],[4,42]]], +[" Build · provider/model · 4.5s ",[[3,5],[9,5],[2,24],[3,64],[4,42]]], +[" ",[[3,98],[4,42]]], +[" ┃ ",[[3,2],[5,1],[4,93],[3,2],[4,42]]], +[" ┃ Question 3 ",[[3,2],[5,1],[4,93],[3,2],[4,2],[0,38],[4,2]]], +[" ┃ ⬖ Getting started ✕ ",[[3,2],[5,1],[4,93],[3,2],[4,2],[0,4],[1,15],[0,16],[10,1],[0,2],[4,2]]], +[" ",[[3,98],[4,2],[0,38],[4,2]]], +[" Third answer. OpenCode includes free models so ",[[3,5],[8,13],[3,80],[4,2],[0,4],[10,32],[0,2],[4,2]]], +[" you can start immediately. ",[[3,98],[4,2],[0,4],[10,26],[0,8],[4,2]]], +[" Build · provider/model · 4.5s ",[[3,5],[9,5],[2,24],[3,64],[4,2],[0,38],[4,2]]], +[" Connect from 75+ providers to ",[[3,98],[4,2],[0,4],[10,30],[0,4],[4,2]]], +[" use other models, including ",[[3,98],[4,2],[0,4],[10,28],[0,6],[4,2]]], +[" ┃ Claude, GPT, Gemini etc ",[[3,2],[11,1],[0,93],[3,2],[4,2],[0,4],[10,23],[0,11],[4,2]]], +[" ┃ ",[[3,2],[11,1],[0,93],[3,2],[4,2],[0,38],[4,2]]], +[" ┃ Connect provider /connect ",[[3,2],[11,1],[0,93],[3,2],[4,2],[0,28],[10,8],[0,2],[4,2]]], +[" ┃ ",[[3,2],[11,1],[0,93],[3,2],[4,2],[0,38],[4,2]]], +[" ╹▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀ ",[[3,2],[11,1],[12,93],[3,2],[4,42]]], +[" /tmp/opencode/packages/tui:main shift+tab agents ctrl+p commands /tmp/opencode/packages/tui:main ",[[3,2],[2,31],[3,17],[7,13],[3,10],[2,6],[3,9],[2,8],[3,2],[4,2],[13,31],[4,9]]], +[" ",[[3,98],[4,42]]] +]} diff --git a/packages/cli-rs/parity/fixtures/P.8/session-time/slash.json b/packages/cli-rs/parity/fixtures/P.8/session-time/slash.json new file mode 100644 index 000000000000..57430a9ff8ac --- /dev/null +++ b/packages/cli-rs/parity/fixtures/P.8/session-time/slash.json @@ -0,0 +1,36 @@ +{"width":140,"height":34,"styles":["#ffffffff #202020ff 0","#ffffffff #202020ff 1","#808080ff #080808ff 0","#ffffffff #080808ff 0","#ffffffff #141414ff 0","#7699feff #141414ff 0","#ffffffff #141414ff 1","#00000000 #00000000 0","#eeeeeeff #080808ff 0","#7699feff #080808ff 0","#808080ff #202020ff 0","#ffffffff #23344bff 0","#484848ff #080808ff 0","#202020ff #080808ff 0","#808080ff #141414ff 0"],"lines":[ +[" Time the turns + ",[[0,3],[1,14],[0,15],[2,3],[3,105]]], +[" ",[[3,98],[4,42]]], +[" ┃ Time the turns ",[[3,2],[5,1],[4,93],[3,2],[4,2],[6,14],[4,26]]], +[" ┃ Question 1 ",[[3,2],[5,1],[4,93],[3,2],[4,42]]], +[" ┃ ",[[3,2],[5,1],[4,93],[3,2],[4,2],[7,38],[4,2]]], +[" ",[[3,98],[4,2],[7,38],[4,2]]], +[" First answer. ",[[3,5],[8,13],[3,80],[4,2],[7,38],[4,2]]], +[" ",[[3,98],[4,2],[7,38],[4,2]]], +[" Build · provider/model · 4.5s ",[[3,5],[9,5],[2,24],[3,64],[4,2],[7,38],[4,2]]], +[" ",[[3,98],[4,2],[7,38],[4,2]]], +[" ┃ ",[[3,2],[5,1],[4,93],[3,2],[4,2],[7,38],[4,2]]], +[" ┃ Question 2 ",[[3,2],[5,1],[4,93],[3,2],[4,42]]], +[" ┃ ",[[3,2],[5,1],[4,93],[3,2],[4,42]]], +[" ",[[3,98],[4,42]]], +[" Second answer. ",[[3,5],[8,14],[3,79],[4,42]]], +[" ",[[3,98],[4,42]]], +[" Build · provider/model · 4.5s ",[[3,5],[9,5],[2,24],[3,64],[4,42]]], +[" ",[[3,98],[4,42]]], +[" ┃ ",[[3,2],[5,1],[4,93],[3,2],[4,42]]], +[" ┃ Question 3 ",[[3,2],[5,1],[4,93],[3,2],[4,2],[0,38],[4,2]]], +[" ┃ ⬖ Getting started ✕ ",[[3,2],[5,1],[4,93],[3,2],[4,2],[0,4],[1,15],[0,16],[10,1],[0,2],[4,2]]], +[" ",[[3,98],[4,2],[0,38],[4,2]]], +[" Third answer. OpenCode includes free models so ",[[3,5],[8,13],[3,80],[4,2],[0,4],[10,32],[0,2],[4,2]]], +[" you can start immediately. ",[[3,98],[4,2],[0,4],[10,26],[0,8],[4,2]]], +[" ┃ /time Time: session timeline ┃ ",[[3,2],[9,1],[11,92],[12,1],[3,2],[4,2],[0,38],[4,2]]], +[" ┃ /timeline Jump to message ┃ Connect from 75+ providers to ",[[3,2],[12,1],[0,13],[10,16],[0,63],[12,1],[3,2],[4,2],[0,4],[10,30],[0,4],[4,2]]], +[" ┃ /copy Copy last assistant message ┃ use other models, including ",[[3,2],[12,1],[0,13],[10,28],[0,51],[12,1],[3,2],[4,2],[0,4],[10,28],[0,6],[4,2]]], +[" ┃ Claude, GPT, Gemini etc ",[[3,2],[12,1],[0,93],[3,2],[4,2],[0,4],[10,23],[0,11],[4,2]]], +[" ┃ /time ",[[3,2],[12,1],[0,93],[3,2],[4,2],[0,38],[4,2]]], +[" ┃ Connect provider /connect ",[[3,2],[12,1],[0,93],[3,2],[4,2],[0,28],[10,8],[0,2],[4,2]]], +[" ┃ ",[[3,2],[12,1],[0,93],[3,2],[4,2],[0,38],[4,2]]], +[" ╹▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀ ",[[3,2],[12,1],[13,93],[3,2],[4,42]]], +[" /tmp/opencode/packages/tui:main shift+tab agents ctrl+p commands /tmp/opencode/packages/tui:main ",[[3,2],[2,31],[3,17],[7,13],[3,10],[2,6],[3,9],[2,8],[3,2],[4,2],[14,31],[4,9]]], +[" ",[[3,98],[4,42]]] +]} diff --git a/packages/cli-rs/parity/fixtures/P.8/session-time/timeline.json b/packages/cli-rs/parity/fixtures/P.8/session-time/timeline.json new file mode 100644 index 000000000000..5e4d6aa6807d --- /dev/null +++ b/packages/cli-rs/parity/fixtures/P.8/session-time/timeline.json @@ -0,0 +1,36 @@ +{"width":140,"height":34,"styles":["#ffffffff #0d0d0dff 0","#696969ff #0d0d0dff 1","#ffffffff #030303ff 0","#353535ff #030303ff 0","#ffffffff #080808ff 0","#313f69ff #080808ff 0","#696969ff #080808ff 1","#696969ff #080808ff 0","#00000000 #00000000 0","#626262ff #030303ff 0","#313f69ff #030303ff 0","#ffffffff #141414ff 0","#808080ff #141414ff 0","#7699feff #141414ff 0","#ffffffff #23344bff 0","#93a2b7ff #23344bff 0","#ffffffff #202020ff 0","#353535ff #0d0d0dff 0","#808080ff #202020ff 0","#1e1e1eff #030303ff 0","#696969ff #0d0d0dff 0","#0d0d0dff #030303ff 0","#696969ff #030303ff 0","#353535ff #080808ff 0"],"lines":[ +[" Time the turns + ",[[0,3],[1,4],[0,1],[1,3],[0,1],[1,5],[0,15],[2,1],[3,1],[2,106]]], +[" ",[[2,98],[4,42]]], +[" ┃ Time the turns ",[[2,2],[5,1],[4,93],[2,2],[4,2],[6,4],[4,1],[6,3],[4,1],[6,5],[4,26]]], +[" ┃ Question 1 ",[[2,2],[5,1],[4,2],[7,8],[4,1],[7,1],[4,81],[2,2],[4,42]]], +[" ┃ ",[[2,2],[5,1],[4,93],[2,2],[4,2],[8,38],[4,2]]], +[" ",[[2,98],[4,2],[8,38],[4,2]]], +[" First answer. ",[[2,5],[9,5],[2,1],[9,7],[2,80],[4,2],[8,38],[4,2]]], +[" ",[[2,98],[4,2],[8,38],[4,2]]], +[" Build · provider/model · 4.5s ",[[2,5],[10,5],[2,1],[3,1],[2,1],[3,14],[2,1],[3,1],[2,1],[3,4],[2,64],[4,2],[8,38],[4,2]]], +[" ",[[2,98],[4,2],[8,38],[4,2]]], +[" ┃ ",[[2,2],[5,1],[4,93],[2,2],[4,2],[8,38],[4,2]]], +[" ┃ Questio ",[[2,2],[5,1],[4,2],[7,7],[11,116],[4,12]]], +[" ┃ Session timeline · 3 turns esc ",[[2,2],[5,1],[4,9],[11,109],[12,3],[11,4],[4,12]]], +[" ",[[2,12],[11,116],[4,12]]], +[" Second Search ",[[2,5],[9,6],[2,1],[11,4],[12,6],[11,106],[4,12]]], +[" ",[[2,12],[11,116],[4,12]]], +[" Build ·┃ 01.01, 00:03:01 · build · model · 3.5s Third answer. ",[[2,5],[10,5],[2,1],[3,1],[13,1],[14,41],[15,14],[14,60],[4,12]]], +[" 01.01, 00:02:01 · build · model · 3.5s Second answer. ",[[2,12],[13,1],[11,41],[12,15],[11,59],[4,12]]], +[" ┃ 01.01, 00:01:01 · build · model · 3.5s First answer. ",[[2,2],[5,1],[4,9],[13,1],[11,41],[12,14],[11,60],[4,12]]], +[" ┃ Questio ",[[2,2],[5,1],[4,2],[7,7],[11,116],[0,10],[4,2]]], +[" ┃ ✕ ",[[2,2],[5,1],[4,9],[16,116],[0,7],[17,1],[0,2],[4,2]]], +[" Close ctrl+a ",[[2,12],[16,9],[18,7],[16,100],[0,10],[4,2]]], +[" Third a odels so ",[[2,5],[9,5],[2,1],[9,1],[16,116],[17,5],[0,1],[17,2],[0,2],[4,2]]], +[" you can start immediately. ",[[2,98],[4,2],[0,4],[17,3],[0,1],[17,3],[0,1],[17,5],[0,1],[17,12],[0,8],[4,2]]], +[" Build · provider/model · 4.5s ",[[2,5],[10,5],[2,1],[3,1],[2,1],[3,14],[2,1],[3,1],[2,1],[3,4],[2,64],[4,2],[0,38],[4,2]]], +[" Connect from 75+ providers to ",[[2,98],[4,2],[0,4],[17,7],[0,1],[17,4],[0,1],[17,3],[0,1],[17,9],[0,1],[17,2],[0,5],[4,2]]], +[" use other models, including ",[[2,98],[4,2],[0,4],[17,3],[0,1],[17,5],[0,1],[17,7],[0,1],[17,9],[0,7],[4,2]]], +[" ┃ Claude, GPT, Gemini etc ",[[2,2],[19,1],[0,93],[2,2],[4,2],[0,4],[17,7],[0,1],[17,4],[0,1],[17,6],[0,1],[17,3],[0,11],[4,2]]], +[" ┃ ",[[2,2],[19,1],[0,93],[2,2],[4,2],[0,38],[4,2]]], +[" ┃ Connect provider /connect ",[[2,2],[19,1],[0,93],[2,2],[4,2],[0,4],[20,7],[0,1],[20,8],[0,8],[17,8],[0,2],[4,2]]], +[" ┃ ",[[2,2],[19,1],[0,93],[2,2],[4,2],[0,38],[4,2]]], +[" ╹▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀ ",[[2,2],[19,1],[21,93],[2,2],[4,42]]], +[" /tmp/opencode/packages/tui:main shift+tab agents ctrl+p commands /tmp/opencode/packages/tui:main ",[[2,2],[3,31],[2,17],[8,13],[22,9],[2,1],[3,6],[2,2],[22,6],[2,1],[3,8],[2,2],[4,2],[23,31],[4,9]]], +[" ",[[2,98],[4,42]]] +]} diff --git a/packages/cli-rs/parity/fixtures/P.8/session-usage.app.json b/packages/cli-rs/parity/fixtures/P.8/session-usage.app.json new file mode 100644 index 000000000000..40c638d01853 --- /dev/null +++ b/packages/cli-rs/parity/fixtures/P.8/session-usage.app.json @@ -0,0 +1,65 @@ +{ + "scenario": "P.8/session-usage", + "width": 140, + "height": 34, + "directory": "/tmp/opencode/packages/tui", + "config": { + "experimental": {"new-designs":true}, + "plugins": ["./out/npm/node_modules/opencode-session-usage"], + "animations": false, + "theme": {"name":"opencode"} + }, + "args": { + "sessionID": "ses_u" + }, + "env": { + "OPENCODE_PARITY_PLUGIN": "npm" + }, + "routes": [ + {"path":"/api/session/ses_u","json":{"data":{"id":"ses_u","title":"Count the cost","projectID":"proj_test","cost":0.42,"tokens":{"input":0,"output":0,"reasoning":0,"cache":{"read":0,"write":0}},"time":{"created":2,"updated":2},"location":{"directory":"/tmp/opencode/packages/tui"}}}}, + {"path":"/api/session","json":{"data":[{"id":"ses_u","title":"Count the cost","projectID":"proj_test","cost":0,"tokens":{"input":0,"output":0,"reasoning":0,"cache":{"read":0,"write":0}},"time":{"created":2,"updated":2},"location":{"directory":"/tmp/opencode/packages/tui"}}],"cursor":{}}}, + {"path":"/api/session/ses_u/message","json":{"data":[{"id":"msg_2","type":"assistant","agent":"build","model":{"providerID":"provider","id":"model"},"content":[{"type":"text","text":"Done."}],"finish":"stop","time":{"created":2000,"completed":2001},"cost":0.42},{"id":"msg_1","type":"user","text":"Count it","time":{"created":1000}}],"cursor":{}}}, + {"path":"/api/session/ses_u/inbox","json":{"data":[]}}, + {"path":"/api/experimental/usage/limits","json":{"data":{"go":{"rolling":{"percent":12,"limited":false,"resetsAt":0},"weekly":{"percent":75,"limited":false,"resetsAt":0},"monthly":{"percent":95,"limited":false,"resetsAt":0}}}}} + ], + "steps": [ + {"checkpoint":"meters","until":"Monthly","fixture":"P.8/session-usage/meters"} + ], + "requests": { + "writes": [], + "reads": [ + {"method":"GET","path":"/api/agent","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":[]}}, + {"method":"GET","path":"/api/command","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":[]}}, + {"method":"GET","path":"/api/config","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":[]}, + {"method":"GET","path":"/api/experimental/job","query":{"descendants":["true"],"sessionID":["ses_u"],"status":["running"]},"status":200,"json":{"data":[]}}, + {"method":"GET","path":"/api/experimental/migration/v1","query":{},"status":200,"json":{"status":"completed"}}, + {"method":"GET","path":"/api/experimental/session/ses_u/terminal","query":{},"status":200,"json":{"data":[]}}, + {"method":"GET","path":"/api/experimental/usage/limits","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"data":{"go":{"rolling":{"percent":12,"limited":false,"resetsAt":0},"weekly":{"percent":75,"limited":false,"resetsAt":0},"monthly":{"percent":95,"limited":false,"resetsAt":0}}}}}, + {"method":"GET","path":"/api/form","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode"}},"data":[]}}, + {"method":"GET","path":"/api/fs/list","query":{"location[directory]":["<cwd>"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":[]}}, + {"method":"GET","path":"/api/info","query":{},"status":200,"json":{"version":"test","pid":0,"urls":[],"paths":{"tmp":"/tmp"},"capabilities":{"persistentPty":true}}}, + {"method":"GET","path":"/api/integration","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":[]}}, + {"method":"GET","path":"/api/location","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}}}, + {"method":"GET","path":"/api/mcp","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":[]}}, + {"method":"GET","path":"/api/mcp/resource","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":{"resources":[],"templates":[]}}}, + {"method":"GET","path":"/api/model","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":[]}}, + {"method":"GET","path":"/api/plugin","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":[]}}, + {"method":"GET","path":"/api/project","query":{},"status":200,"json":[]}, + {"method":"GET","path":"/api/provider","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":[]}}, + {"method":"GET","path":"/api/reference","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode/packages/tui","canonical":"/tmp/opencode/packages/tui"}},"data":[]}}, + {"method":"GET","path":"/api/session","query":{"limit":["100"],"parentID":["ses_u"]},"status":200,"json":{"data":[{"id":"ses_u","title":"Count the cost","projectID":"proj_test","cost":0,"tokens":{"input":0,"output":0,"reasoning":0,"cache":{"read":0,"write":0}},"time":{"created":2,"updated":2},"location":{"directory":"/tmp/opencode/packages/tui"}}],"cursor":{}}}, + {"method":"GET","path":"/api/session","query":{"limit":["200"],"order":["desc"],"parentID":["ses_u"]},"status":200,"json":{"data":[{"id":"ses_u","title":"Count the cost","projectID":"proj_test","cost":0,"tokens":{"input":0,"output":0,"reasoning":0,"cache":{"read":0,"write":0}},"time":{"created":2,"updated":2},"location":{"directory":"/tmp/opencode/packages/tui"}}],"cursor":{}}}, + {"method":"GET","path":"/api/session/active","query":{},"status":200,"json":{"data":{}}}, + {"method":"GET","path":"/api/session/ses_u","query":{},"status":200,"json":{"data":{"id":"ses_u","title":"Count the cost","projectID":"proj_test","cost":0.42,"tokens":{"input":0,"output":0,"reasoning":0,"cache":{"read":0,"write":0}},"time":{"created":2,"updated":2},"location":{"directory":"/tmp/opencode/packages/tui"}}}}, + {"method":"GET","path":"/api/session/ses_u/form","query":{},"status":200,"json":{"data":[]}}, + {"method":"GET","path":"/api/session/ses_u/inbox","query":{},"status":200,"json":{"data":[]}}, + {"method":"GET","path":"/api/session/ses_u/message","query":{"limit":["100"]},"status":200,"json":{"data":[{"id":"msg_2","type":"assistant","agent":"build","model":{"providerID":"provider","id":"model"},"content":[{"type":"text","text":"Done."}],"finish":"stop","time":{"created":2000,"completed":2001},"cost":0.42},{"id":"msg_1","type":"user","text":"Count it","time":{"created":1000}}],"cursor":{}}}, + {"method":"GET","path":"/api/session/ses_u/message","query":{"limit":["20"],"order":["desc"]},"status":200,"json":{"data":[{"id":"msg_2","type":"assistant","agent":"build","model":{"providerID":"provider","id":"model"},"content":[{"type":"text","text":"Done."}],"finish":"stop","time":{"created":2000,"completed":2001},"cost":0.42},{"id":"msg_1","type":"user","text":"Count it","time":{"created":1000}}],"cursor":{}}}, + {"method":"GET","path":"/api/session/ses_u/permission","query":{},"status":200,"json":{"data":[]}}, + {"method":"GET","path":"/api/shell","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":[]}}, + {"method":"GET","path":"/api/skill","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":[]}}, + {"method":"GET","path":"/api/vcs","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":{"branch":{"current":"main","default":"main"}}}}, + {"method":"POST","path":"/api/rpc/opencode.goal/get","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"body":{"input":{"sessionID":"ses_u"}},"status":200,"json":{"output":null}} + ] + } +} diff --git a/packages/cli-rs/parity/fixtures/P.8/session-usage/meters.json b/packages/cli-rs/parity/fixtures/P.8/session-usage/meters.json new file mode 100644 index 000000000000..1e9d8251c7fa --- /dev/null +++ b/packages/cli-rs/parity/fixtures/P.8/session-usage/meters.json @@ -0,0 +1,36 @@ +{"width":140,"height":34,"styles":["#ffffffff #202020ff 0","#ffffffff #202020ff 1","#808080ff #080808ff 0","#ffffffff #080808ff 0","#ffffffff #141414ff 0","#7699feff #141414ff 0","#ffffffff #141414ff 1","#808080ff #141414ff 0","#eeeeeeff #080808ff 0","#9ee77aff #141414ff 0","#7699feff #080808ff 0","#f5a742ff #141414ff 0","#ef6c6cff #141414ff 0","#808080ff #202020ff 0","#484848ff #080808ff 0","#202020ff #080808ff 0"],"lines":[ +[" Count the cost + ",[[0,3],[1,14],[0,15],[2,3],[3,105]]], +[" ",[[3,98],[4,42]]], +[" ┃ Count the cost ",[[3,2],[5,1],[4,93],[3,2],[4,2],[6,14],[4,26]]], +[" ┃ Count it ",[[3,2],[5,1],[4,93],[3,2],[4,42]]], +[" ┃ Usage ",[[3,2],[5,1],[4,93],[3,2],[4,42]]], +[" ≈ $0.42 session total ",[[3,98],[4,2],[7,21],[4,19]]], +[" Done. ",[[3,5],[8,5],[3,88],[4,42]]], +[" Rolling 12% used · resets 0h 0m ",[[3,98],[4,10],[9,9],[7,15],[4,8]]], +[" Build · provider/model · 1.0s ━━━─────────────────── ",[[3,5],[10,5],[2,24],[3,64],[4,2],[9,3],[7,19],[4,18]]], +[" ",[[3,98],[4,42]]], +[" Weekly 75% used · resets 0h 0m ",[[3,98],[4,10],[11,9],[7,15],[4,8]]], +[" ━━━━━━━━━━━━━━━━━───── ",[[3,98],[4,2],[11,17],[7,5],[4,18]]], +[" ",[[3,98],[4,42]]], +[" Monthly 95% used · resets 0h 0m ",[[3,98],[4,10],[12,9],[7,15],[4,8]]], +[" ━━━━━━━━━━━━━━━━━━━━━─ ",[[3,98],[4,2],[12,21],[7,1],[4,18]]], +[" ",[[3,98],[4,42]]], +[" ",[[3,98],[4,42]]], +[" ",[[3,98],[4,42]]], +[" ",[[3,98],[4,42]]], +[" ",[[3,98],[4,2],[0,38],[4,2]]], +[" ⬖ Getting started ✕ ",[[3,98],[4,2],[0,4],[1,15],[0,16],[13,1],[0,2],[4,2]]], +[" ",[[3,98],[4,2],[0,38],[4,2]]], +[" OpenCode includes free models so ",[[3,98],[4,2],[0,4],[13,32],[0,2],[4,2]]], +[" you can start immediately. ",[[3,98],[4,2],[0,4],[13,26],[0,8],[4,2]]], +[" ",[[3,98],[4,2],[0,38],[4,2]]], +[" Connect from 75+ providers to ",[[3,98],[4,2],[0,4],[13,30],[0,4],[4,2]]], +[" use other models, including ",[[3,98],[4,2],[0,4],[13,28],[0,6],[4,2]]], +[" ┃ Claude, GPT, Gemini etc ",[[3,2],[14,1],[0,93],[3,2],[4,2],[0,4],[13,23],[0,11],[4,2]]], +[" ┃ ",[[3,2],[14,1],[0,93],[3,2],[4,2],[0,38],[4,2]]], +[" ┃ Connect provider /connect ",[[3,2],[14,1],[0,93],[3,2],[4,2],[0,28],[13,8],[0,2],[4,2]]], +[" ┃ ",[[3,2],[14,1],[0,93],[3,2],[4,2],[0,38],[4,2]]], +[" ╹▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀ ",[[3,2],[14,1],[15,93],[3,2],[4,42]]], +[" /tmp/opencode/packages/tui:main shift+tab agents ctrl+p commands /tmp/opencode/packages/tui:main ",[[3,2],[2,31],[3,40],[2,6],[3,9],[2,8],[3,2],[4,2],[7,31],[4,9]]], +[" ",[[3,98],[4,42]]] +]} diff --git a/packages/cli-rs/parity/fixtures/P.8/sessionwatch-width.app.json b/packages/cli-rs/parity/fixtures/P.8/sessionwatch-width.app.json new file mode 100644 index 000000000000..4e7b2451ba46 --- /dev/null +++ b/packages/cli-rs/parity/fixtures/P.8/sessionwatch-width.app.json @@ -0,0 +1,62 @@ +{ + "scenario": "P.8/sessionwatch-width", + "width": 140, + "height": 34, + "directory": "/tmp/opencode/packages/tui", + "config": { + "experimental": {"new-designs":true}, + "plugins": ["./out/npm/node_modules/@jasonencode/opencode-context"], + "animations": false, + "theme": {"name":"opencode"} + }, + "args": { + "sessionID": "ses_w" + }, + "env": { + "OPENCODE_PARITY_PLUGIN": "npm" + }, + "routes": [ + {"path":"/api/session/ses_w","json":{"data":{"id":"ses_w","title":"Watch the session","projectID":"proj_test","cost":0.02,"tokens":{"input":0,"output":0,"reasoning":0,"cache":{"read":0,"write":0}},"time":{"created":2,"updated":2},"location":{"directory":"/tmp/opencode/packages/tui"}}}}, + {"path":"/api/session","json":{"data":[{"id":"ses_w","title":"Watch the session","projectID":"proj_test","cost":0,"tokens":{"input":0,"output":0,"reasoning":0,"cache":{"read":0,"write":0}},"time":{"created":2,"updated":2},"location":{"directory":"/tmp/opencode/packages/tui"}}],"cursor":{}}}, + {"path":"/api/session/ses_w/message","json":{"data":[{"id":"msg_2","type":"assistant","agent":"build","model":{"providerID":"provider","id":"model"},"content":[{"type":"text","text":"Watched."}],"finish":"stop","time":{"created":2000,"completed":2001},"cost":0.02,"tokens":{"input":6900,"output":20,"reasoning":0,"cache":{"read":0,"write":0}}},{"id":"msg_1","type":"user","text":"Watch it","time":{"created":1000}}],"cursor":{}}}, + {"path":"/api/session/ses_w/inbox","json":{"data":[]}}, + {"path":"/api/model","json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":[{"id":"model","modelID":"model","providerID":"provider","name":"Model","capabilities":{"tools":true,"input":["text"],"output":["text"]},"variants":[],"time":{"released":0},"cost":[{"input":3,"output":15,"cache":{"read":0.3,"write":3.75}}],"status":"active","enabled":true,"limit":{"context":200000,"output":32000}}]}} + ], + "steps": [ + {"checkpoint":"panel","until":"SessionWatch","masks":[{"x":100,"y":5,"width":37,"height":1,"reason":"the hit rate: counted from events in TS, none here"},{"x":100,"y":11,"width":37,"height":1,"reason":"the request counts: counted from events in TS, none here"},{"x":0,"y":14,"width":140,"height":20,"reason":"what follows the counts, and the footer's context use"}],"deviation":[{"file":"F16-v2-compat-layer","cells":10}],"fixture":"P.8/sessionwatch-width/panel"} + ], + "requests": { + "writes": [], + "reads": [ + {"method":"GET","path":"/api/agent","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":[]}}, + {"method":"GET","path":"/api/command","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":[]}}, + {"method":"GET","path":"/api/config","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":[]}, + {"method":"GET","path":"/api/experimental/job","query":{"descendants":["true"],"sessionID":["ses_w"],"status":["running"]},"status":200,"json":{"data":[]}}, + {"method":"GET","path":"/api/experimental/migration/v1","query":{},"status":200,"json":{"status":"completed"}}, + {"method":"GET","path":"/api/experimental/session/ses_w/terminal","query":{},"status":200,"json":{"data":[]}}, + {"method":"GET","path":"/api/form","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode"}},"data":[]}}, + {"method":"GET","path":"/api/fs/list","query":{"location[directory]":["<cwd>"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":[]}}, + {"method":"GET","path":"/api/info","query":{},"status":200,"json":{"version":"test","pid":0,"urls":[],"paths":{"tmp":"/tmp"},"capabilities":{"persistentPty":true}}}, + {"method":"GET","path":"/api/integration","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":[]}}, + {"method":"GET","path":"/api/location","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}}}, + {"method":"GET","path":"/api/mcp","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":[]}}, + {"method":"GET","path":"/api/mcp/resource","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":{"resources":[],"templates":[]}}}, + {"method":"GET","path":"/api/model","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":[{"id":"model","modelID":"model","providerID":"provider","name":"Model","capabilities":{"tools":true,"input":["text"],"output":["text"]},"variants":[],"time":{"released":0},"cost":[{"input":3,"output":15,"cache":{"read":0.3,"write":3.75}}],"status":"active","enabled":true,"limit":{"context":200000,"output":32000}}]}}, + {"method":"GET","path":"/api/plugin","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":[]}}, + {"method":"GET","path":"/api/project","query":{},"status":200,"json":[]}, + {"method":"GET","path":"/api/provider","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":[]}}, + {"method":"GET","path":"/api/reference","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode/packages/tui","canonical":"/tmp/opencode/packages/tui"}},"data":[]}}, + {"method":"GET","path":"/api/session","query":{"limit":["200"],"order":["desc"],"parentID":["ses_w"]},"status":200,"json":{"data":[{"id":"ses_w","title":"Watch the session","projectID":"proj_test","cost":0,"tokens":{"input":0,"output":0,"reasoning":0,"cache":{"read":0,"write":0}},"time":{"created":2,"updated":2},"location":{"directory":"/tmp/opencode/packages/tui"}}],"cursor":{}}}, + {"method":"GET","path":"/api/session/active","query":{},"status":200,"json":{"data":{}}}, + {"method":"GET","path":"/api/session/ses_w","query":{},"status":200,"json":{"data":{"id":"ses_w","title":"Watch the session","projectID":"proj_test","cost":0.02,"tokens":{"input":0,"output":0,"reasoning":0,"cache":{"read":0,"write":0}},"time":{"created":2,"updated":2},"location":{"directory":"/tmp/opencode/packages/tui"}}}}, + {"method":"GET","path":"/api/session/ses_w/form","query":{},"status":200,"json":{"data":[]}}, + {"method":"GET","path":"/api/session/ses_w/inbox","query":{},"status":200,"json":{"data":[]}}, + {"method":"GET","path":"/api/session/ses_w/message","query":{"limit":["20"],"order":["desc"]},"status":200,"json":{"data":[{"id":"msg_2","type":"assistant","agent":"build","model":{"providerID":"provider","id":"model"},"content":[{"type":"text","text":"Watched."}],"finish":"stop","time":{"created":2000,"completed":2001},"cost":0.02,"tokens":{"input":6900,"output":20,"reasoning":0,"cache":{"read":0,"write":0}}},{"id":"msg_1","type":"user","text":"Watch it","time":{"created":1000}}],"cursor":{}}}, + {"method":"GET","path":"/api/session/ses_w/permission","query":{},"status":200,"json":{"data":[]}}, + {"method":"GET","path":"/api/shell","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":[]}}, + {"method":"GET","path":"/api/skill","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":[]}}, + {"method":"GET","path":"/api/vcs","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":{"branch":{"current":"main","default":"main"}}}}, + {"method":"POST","path":"/api/rpc/opencode.goal/get","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"body":{"input":{"sessionID":"ses_w"}},"status":200,"json":{"output":null}} + ] + } +} diff --git a/packages/cli-rs/parity/fixtures/P.8/sessionwatch-width/panel.json b/packages/cli-rs/parity/fixtures/P.8/sessionwatch-width/panel.json new file mode 100644 index 000000000000..9d778a575bd6 --- /dev/null +++ b/packages/cli-rs/parity/fixtures/P.8/sessionwatch-width/panel.json @@ -0,0 +1,36 @@ +{"width":140,"height":34,"styles":["#ffffffff #202020ff 0","#ffffffff #202020ff 1","#808080ff #080808ff 0","#ffffffff #080808ff 0","#ffffffff #141414ff 0","#7699feff #141414ff 0","#ffffffff #141414ff 1","#374150ff #141414ff 0","#606060ff #141414ff 0","#00000000 #00000000 0","#eeeeeeff #080808ff 0","#7699feff #080808ff 0","#808080ff #141414ff 0","#4caf50ff #141414ff 0","#484f58ff #141414ff 0"],"lines":[ +[" Watch the session + ",[[0,3],[1,17],[0,12],[2,3],[3,105]]], +[" ",[[3,98],[4,42]]], +[" ┃ Watch the session ",[[3,2],[5,1],[4,93],[3,2],[4,2],[6,17],[4,23]]], +[" ┃ Watch it ",[[3,2],[5,1],[4,93],[3,2],[4,42]]], +[" ┃ ╭───────────────────────────────────╮█ ",[[3,2],[5,1],[4,93],[3,2],[4,2],[7,37],[8,1],[4,2]]], +[" █ ",[[3,98],[4,2],[9,37],[8,1],[4,2]]], +[" Watched. │ ───────────────────────────────── │█ ",[[3,5],[10,8],[3,85],[4,2],[7,37],[8,1],[4,2]]], +[" │ │█ ",[[3,98],[4,2],[7,1],[4,35],[7,1],[8,1],[4,2]]], +[" Build · Model · 1.0s │ Context:░░░░░░░░░░ 3% 6.8K/195.3K │█ ",[[3,5],[11,5],[2,15],[3,73],[4,2],[7,1],[4,1],[12,8],[13,13],[12,12],[4,1],[7,1],[8,1],[4,2]]], +[" │ ↻ 1s · ⏱ 1s │█ ",[[3,98],[4,2],[7,1],[4,1],[12,2],[4,2],[12,6],[4,24],[7,1],[8,1],[4,2]]], +[" │ ───────────────────────────────── │█ ",[[3,98],[4,2],[7,37],[8,1],[4,2]]], +[" █ ",[[3,98],[4,2],[9,37],[8,1],[4,2]]], +[" │ TOTAL REQ INPUT OUTPUT │█ ",[[3,98],[4,2],[7,1],[4,1],[14,33],[4,1],[7,1],[8,1],[4,2]]], +[" │ │█ ",[[3,98],[4,2],[7,1],[4,35],[7,1],[8,1],[4,2]]], +[" ",[[9,140]]], +[" ",[[9,140]]], +[" ",[[9,140]]], +[" ",[[9,140]]], +[" ",[[9,140]]], +[" ",[[9,140]]], +[" ",[[9,140]]], +[" ",[[9,140]]], +[" ",[[9,140]]], +[" ",[[9,140]]], +[" ",[[9,140]]], +[" ",[[9,140]]], +[" ",[[9,140]]], +[" ",[[9,140]]], +[" ",[[9,140]]], +[" ",[[9,140]]], +[" ",[[9,140]]], +[" ",[[9,140]]], +[" ",[[9,140]]], +[" ",[[9,140]]] +]} diff --git a/packages/cli-rs/parity/fixtures/P.8/shell-highlighting.app.json b/packages/cli-rs/parity/fixtures/P.8/shell-highlighting.app.json new file mode 100644 index 000000000000..d169baeefc3a --- /dev/null +++ b/packages/cli-rs/parity/fixtures/P.8/shell-highlighting.app.json @@ -0,0 +1,66 @@ +{ + "scenario": "P.8/shell-highlighting", + "width": 140, + "height": 34, + "directory": "/tmp/opencode/packages/tui", + "config": { + "experimental": {"new-designs":true}, + "plugins": ["./out/npm/node_modules/@kud/opencode-shell-highlighting"], + "animations": false, + "theme": {"name":"opencode"} + }, + "args": { + "sessionID": "ses_k" + }, + "env": { + "OPENCODE_PARITY_PLUGIN": "npm" + }, + "routes": [ + {"path":"/api/session/ses_k","json":{"data":{"id":"ses_k","title":"Highlight","projectID":"proj_test","cost":0,"tokens":{"input":0,"output":0,"reasoning":0,"cache":{"read":0,"write":0}},"time":{"created":2,"updated":2},"location":{"directory":"/tmp/opencode/packages/tui"}}}}, + {"path":"/api/session","json":{"data":[{"id":"ses_k","title":"Highlight","projectID":"proj_test","cost":0,"tokens":{"input":0,"output":0,"reasoning":0,"cache":{"read":0,"write":0}},"time":{"created":2,"updated":2},"location":{"directory":"/tmp/opencode/packages/tui"}}],"cursor":{}}}, + {"path":"/api/session/ses_k/message","json":{"data":[{"id":"msg_2","type":"assistant","agent":"build","model":{"providerID":"provider","id":"model"},"content":[{"type":"text","text":"Highlighted."}],"finish":"stop","time":{"created":2000,"completed":2001}},{"id":"msg_1","type":"user","text":"Highlight it","time":{"created":1000}}],"cursor":{}}}, + {"path":"/api/session/ses_k/inbox","json":{"data":[]}} + ], + "steps": [ + {"checkpoint":"session","until":"Highlighted.","fixture":"P.8/shell-highlighting/session"}, + {"type":"/plugins"}, + {"checkpoint":"slash","until":"Plugins","fixture":"P.8/shell-highlighting/slash"}, + {"keys":["enter"]}, + {"checkpoint":"plugins","until":"shell-highlighting","fixture":"P.8/shell-highlighting/plugins"} + ], + "requests": { + "writes": [], + "reads": [ + {"method":"GET","path":"/api/agent","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":[]}}, + {"method":"GET","path":"/api/command","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":[]}}, + {"method":"GET","path":"/api/config","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":[]}, + {"method":"GET","path":"/api/experimental/job","query":{"descendants":["true"],"sessionID":["ses_k"],"status":["running"]},"status":200,"json":{"data":[]}}, + {"method":"GET","path":"/api/experimental/migration/v1","query":{},"status":200,"json":{"status":"completed"}}, + {"method":"GET","path":"/api/experimental/session/ses_k/terminal","query":{},"status":200,"json":{"data":[]}}, + {"method":"GET","path":"/api/form","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode"}},"data":[]}}, + {"method":"GET","path":"/api/fs/list","query":{"location[directory]":["<cwd>"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":[]}}, + {"method":"GET","path":"/api/info","query":{},"status":200,"json":{"version":"test","pid":0,"urls":[],"paths":{"tmp":"/tmp"},"capabilities":{"persistentPty":true}}}, + {"method":"GET","path":"/api/integration","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":[]}}, + {"method":"GET","path":"/api/location","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}}}, + {"method":"GET","path":"/api/mcp","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":[]}}, + {"method":"GET","path":"/api/mcp/resource","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":{"resources":[],"templates":[]}}}, + {"method":"GET","path":"/api/model","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":[]}}, + {"method":"GET","path":"/api/plugin","query":{"location[directory]":["/tmp/opencode/packages/tui"],"location[project][canonical]":["/tmp/opencode"],"location[project][directory]":["/tmp/opencode"],"location[project][id]":["proj_test"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":[]}}, + {"method":"GET","path":"/api/plugin","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":[]}}, + {"method":"GET","path":"/api/project","query":{},"status":200,"json":[]}, + {"method":"GET","path":"/api/provider","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":[]}}, + {"method":"GET","path":"/api/reference","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode/packages/tui","canonical":"/tmp/opencode/packages/tui"}},"data":[]}}, + {"method":"GET","path":"/api/session","query":{"limit":["200"],"order":["desc"],"parentID":["ses_k"]},"status":200,"json":{"data":[{"id":"ses_k","title":"Highlight","projectID":"proj_test","cost":0,"tokens":{"input":0,"output":0,"reasoning":0,"cache":{"read":0,"write":0}},"time":{"created":2,"updated":2},"location":{"directory":"/tmp/opencode/packages/tui"}}],"cursor":{}}}, + {"method":"GET","path":"/api/session/active","query":{},"status":200,"json":{"data":{}}}, + {"method":"GET","path":"/api/session/ses_k","query":{},"status":200,"json":{"data":{"id":"ses_k","title":"Highlight","projectID":"proj_test","cost":0,"tokens":{"input":0,"output":0,"reasoning":0,"cache":{"read":0,"write":0}},"time":{"created":2,"updated":2},"location":{"directory":"/tmp/opencode/packages/tui"}}}}, + {"method":"GET","path":"/api/session/ses_k/form","query":{},"status":200,"json":{"data":[]}}, + {"method":"GET","path":"/api/session/ses_k/inbox","query":{},"status":200,"json":{"data":[]}}, + {"method":"GET","path":"/api/session/ses_k/message","query":{"limit":["20"],"order":["desc"]},"status":200,"json":{"data":[{"id":"msg_2","type":"assistant","agent":"build","model":{"providerID":"provider","id":"model"},"content":[{"type":"text","text":"Highlighted."}],"finish":"stop","time":{"created":2000,"completed":2001}},{"id":"msg_1","type":"user","text":"Highlight it","time":{"created":1000}}],"cursor":{}}}, + {"method":"GET","path":"/api/session/ses_k/permission","query":{},"status":200,"json":{"data":[]}}, + {"method":"GET","path":"/api/shell","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":[]}}, + {"method":"GET","path":"/api/skill","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":[]}}, + {"method":"GET","path":"/api/vcs","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":{"branch":{"current":"main","default":"main"}}}}, + {"method":"POST","path":"/api/rpc/opencode.goal/get","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"body":{"input":{"sessionID":"ses_k"}},"status":200,"json":{"output":null}} + ] + } +} diff --git a/packages/cli-rs/parity/fixtures/P.8/shell-highlighting/plugins.json b/packages/cli-rs/parity/fixtures/P.8/shell-highlighting/plugins.json new file mode 100644 index 000000000000..5bca54cad132 --- /dev/null +++ b/packages/cli-rs/parity/fixtures/P.8/shell-highlighting/plugins.json @@ -0,0 +1,36 @@ +{"width":140,"height":34,"styles":["#ffffffff #0d0d0dff 0","#696969ff #0d0d0dff 1","#ffffffff #030303ff 0","#353535ff #030303ff 0","#ffffffff #080808ff 0","#313f69ff #080808ff 0","#696969ff #080808ff 1","#696969ff #080808ff 0","#626262ff #030303ff 0","#313f69ff #030303ff 0","#ffffffff #141414ff 0","#808080ff #141414ff 0","#808080ff #141414ff 1","#7699feff #141414ff 0","#ffffffff #23344bff 0","#93a2b7ff #23344bff 0","#ffffffff #202020ff 0","#808080ff #202020ff 0","#696969ff #0d0d0dff 0","#353535ff #0d0d0dff 0","#1e1e1eff #030303ff 0","#0d0d0dff #030303ff 0","#696969ff #030303ff 0","#353535ff #080808ff 0"],"lines":[ +[" Highlight + ",[[0,3],[1,9],[0,20],[2,1],[3,1],[2,106]]], +[" ",[[2,98],[4,42]]], +[" ┃ Highlight ",[[2,2],[5,1],[4,93],[2,2],[4,2],[6,9],[4,31]]], +[" ┃ Highlight it ",[[2,2],[5,1],[4,2],[7,9],[4,1],[7,2],[4,79],[2,2],[4,42]]], +[" ┃ ",[[2,2],[5,1],[4,93],[2,2],[4,42]]], +[" ",[[2,98],[4,42]]], +[" Highlighted. ",[[2,5],[8,12],[2,81],[4,42]]], +[" ",[[2,98],[4,42]]], +[" Build · provider/model · 1.0s ",[[2,5],[9,5],[2,1],[3,1],[2,1],[3,14],[2,1],[3,1],[2,1],[3,4],[2,64],[4,42]]], +[" ",[[2,26],[10,88],[4,26]]], +[" Plugins esc ",[[2,26],[10,81],[11,3],[10,4],[4,26]]], +[" ",[[2,26],[10,88],[4,26]]], +[" Search ",[[2,26],[10,4],[11,6],[10,78],[4,26]]], +[" ",[[2,26],[10,88],[4,26]]], +[" TUI ",[[2,26],[10,4],[12,3],[10,81],[4,26]]], +[" ┃ kud.shell-highlighting local ",[[2,26],[13,1],[14,78],[15,5],[14,4],[4,26]]], +[" ",[[2,26],[10,88],[4,26]]], +[" ",[[2,26],[16,88],[4,26]]], +[" show internal ctrl+a disable enter ",[[2,26],[16,17],[17,7],[16,54],[17,6],[16,4],[4,26]]], +[" ",[[2,26],[16,88],[0,24],[4,2]]], +[" ⬖ Getting started ✕ ",[[2,98],[4,2],[0,2],[18,1],[0,1],[1,7],[0,1],[1,7],[0,16],[19,1],[0,2],[4,2]]], +[" ",[[2,98],[4,2],[0,38],[4,2]]], +[" OpenCode includes free models so ",[[2,98],[4,2],[0,4],[19,8],[0,1],[19,8],[0,1],[19,4],[0,1],[19,6],[0,1],[19,2],[0,2],[4,2]]], +[" you can start immediately. ",[[2,98],[4,2],[0,4],[19,3],[0,1],[19,3],[0,1],[19,5],[0,1],[19,12],[0,8],[4,2]]], +[" ",[[2,98],[4,2],[0,38],[4,2]]], +[" Connect from 75+ providers to ",[[2,98],[4,2],[0,4],[19,7],[0,1],[19,4],[0,1],[19,3],[0,1],[19,9],[0,1],[19,2],[0,5],[4,2]]], +[" use other models, including ",[[2,98],[4,2],[0,4],[19,3],[0,1],[19,5],[0,1],[19,7],[0,1],[19,9],[0,7],[4,2]]], +[" ┃ Claude, GPT, Gemini etc ",[[2,2],[20,1],[0,93],[2,2],[4,2],[0,4],[19,7],[0,1],[19,4],[0,1],[19,6],[0,1],[19,3],[0,11],[4,2]]], +[" ┃ ",[[2,2],[20,1],[0,93],[2,2],[4,2],[0,38],[4,2]]], +[" ┃ Connect provider /connect ",[[2,2],[20,1],[0,93],[2,2],[4,2],[0,4],[18,7],[0,1],[18,8],[0,8],[19,8],[0,2],[4,2]]], +[" ┃ ",[[2,2],[20,1],[0,93],[2,2],[4,2],[0,38],[4,2]]], +[" ╹▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀ ",[[2,2],[20,1],[21,93],[2,2],[4,42]]], +[" /tmp/opencode/packages/tui:main shift+tab agents ctrl+p commands /tmp/opencode/packages/tui:main ",[[2,2],[3,31],[2,30],[22,9],[2,1],[3,6],[2,2],[22,6],[2,1],[3,8],[2,2],[4,2],[23,31],[4,9]]], +[" ",[[2,98],[4,42]]] +]} diff --git a/packages/cli-rs/parity/fixtures/P.8/shell-highlighting/session.json b/packages/cli-rs/parity/fixtures/P.8/shell-highlighting/session.json new file mode 100644 index 000000000000..afe6ae1f7525 --- /dev/null +++ b/packages/cli-rs/parity/fixtures/P.8/shell-highlighting/session.json @@ -0,0 +1,36 @@ +{"width":140,"height":34,"styles":["#ffffffff #202020ff 0","#ffffffff #202020ff 1","#808080ff #080808ff 0","#ffffffff #080808ff 0","#ffffffff #141414ff 0","#7699feff #141414ff 0","#ffffffff #141414ff 1","#eeeeeeff #080808ff 0","#7699feff #080808ff 0","#808080ff #202020ff 0","#484848ff #080808ff 0","#202020ff #080808ff 0","#808080ff #141414ff 0"],"lines":[ +[" Highlight + ",[[0,3],[1,9],[0,20],[2,3],[3,105]]], +[" ",[[3,98],[4,42]]], +[" ┃ Highlight ",[[3,2],[5,1],[4,93],[3,2],[4,2],[6,9],[4,31]]], +[" ┃ Highlight it ",[[3,2],[5,1],[4,93],[3,2],[4,42]]], +[" ┃ ",[[3,2],[5,1],[4,93],[3,2],[4,42]]], +[" ",[[3,98],[4,42]]], +[" Highlighted. ",[[3,5],[7,12],[3,81],[4,42]]], +[" ",[[3,98],[4,42]]], +[" Build · provider/model · 1.0s ",[[3,5],[8,5],[2,24],[3,64],[4,42]]], +[" ",[[3,98],[4,42]]], +[" ",[[3,98],[4,42]]], +[" ",[[3,98],[4,42]]], +[" ",[[3,98],[4,42]]], +[" ",[[3,98],[4,42]]], +[" ",[[3,98],[4,42]]], +[" ",[[3,98],[4,42]]], +[" ",[[3,98],[4,42]]], +[" ",[[3,98],[4,42]]], +[" ",[[3,98],[4,42]]], +[" ",[[3,98],[4,2],[0,38],[4,2]]], +[" ⬖ Getting started ✕ ",[[3,98],[4,2],[0,4],[1,15],[0,16],[9,1],[0,2],[4,2]]], +[" ",[[3,98],[4,2],[0,38],[4,2]]], +[" OpenCode includes free models so ",[[3,98],[4,2],[0,4],[9,32],[0,2],[4,2]]], +[" you can start immediately. ",[[3,98],[4,2],[0,4],[9,26],[0,8],[4,2]]], +[" ",[[3,98],[4,2],[0,38],[4,2]]], +[" Connect from 75+ providers to ",[[3,98],[4,2],[0,4],[9,30],[0,4],[4,2]]], +[" use other models, including ",[[3,98],[4,2],[0,4],[9,28],[0,6],[4,2]]], +[" ┃ Claude, GPT, Gemini etc ",[[3,2],[10,1],[0,93],[3,2],[4,2],[0,4],[9,23],[0,11],[4,2]]], +[" ┃ ",[[3,2],[10,1],[0,93],[3,2],[4,2],[0,38],[4,2]]], +[" ┃ Connect provider /connect ",[[3,2],[10,1],[0,93],[3,2],[4,2],[0,28],[9,8],[0,2],[4,2]]], +[" ┃ ",[[3,2],[10,1],[0,93],[3,2],[4,2],[0,38],[4,2]]], +[" ╹▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀ ",[[3,2],[10,1],[11,93],[3,2],[4,42]]], +[" /tmp/opencode/packages/tui:main shift+tab agents ctrl+p commands /tmp/opencode/packages/tui:main ",[[3,2],[2,31],[3,40],[2,6],[3,9],[2,8],[3,2],[4,2],[12,31],[4,9]]], +[" ",[[3,98],[4,42]]] +]} diff --git a/packages/cli-rs/parity/fixtures/P.8/shell-highlighting/slash.json b/packages/cli-rs/parity/fixtures/P.8/shell-highlighting/slash.json new file mode 100644 index 000000000000..68fb1a5015a9 --- /dev/null +++ b/packages/cli-rs/parity/fixtures/P.8/shell-highlighting/slash.json @@ -0,0 +1,36 @@ +{"width":140,"height":34,"styles":["#ffffffff #202020ff 0","#ffffffff #202020ff 1","#808080ff #080808ff 0","#ffffffff #080808ff 0","#ffffffff #141414ff 0","#7699feff #141414ff 0","#ffffffff #141414ff 1","#eeeeeeff #080808ff 0","#7699feff #080808ff 0","#808080ff #202020ff 0","#ffffffff #23344bff 0","#484848ff #080808ff 0","#202020ff #080808ff 0","#808080ff #141414ff 0"],"lines":[ +[" Highlight + ",[[0,3],[1,9],[0,20],[2,3],[3,105]]], +[" ",[[3,98],[4,42]]], +[" ┃ Highlight ",[[3,2],[5,1],[4,93],[3,2],[4,2],[6,9],[4,31]]], +[" ┃ Highlight it ",[[3,2],[5,1],[4,93],[3,2],[4,42]]], +[" ┃ ",[[3,2],[5,1],[4,93],[3,2],[4,42]]], +[" ",[[3,98],[4,42]]], +[" Highlighted. ",[[3,5],[7,12],[3,81],[4,42]]], +[" ",[[3,98],[4,42]]], +[" Build · provider/model · 1.0s ",[[3,5],[8,5],[2,24],[3,64],[4,42]]], +[" ",[[3,98],[4,42]]], +[" ",[[3,98],[4,42]]], +[" ",[[3,98],[4,42]]], +[" ",[[3,98],[4,42]]], +[" ",[[3,98],[4,42]]], +[" ",[[3,98],[4,42]]], +[" ",[[3,98],[4,42]]], +[" ",[[3,98],[4,42]]], +[" ",[[3,98],[4,42]]], +[" ",[[3,98],[4,42]]], +[" ",[[3,98],[4,2],[0,38],[4,2]]], +[" ⬖ Getting started ✕ ",[[3,98],[4,2],[0,4],[1,15],[0,16],[9,1],[0,2],[4,2]]], +[" ",[[3,98],[4,2],[0,38],[4,2]]], +[" OpenCode includes free models so ",[[3,98],[4,2],[0,4],[9,32],[0,2],[4,2]]], +[" you can start immediately. ",[[3,98],[4,2],[0,4],[9,26],[0,8],[4,2]]], +[" ",[[3,98],[4,2],[0,38],[4,2]]], +[" Connect from 75+ providers to ",[[3,98],[4,2],[0,4],[9,30],[0,4],[4,2]]], +[" ┃ /plugins Plugins ┃ use other models, including ",[[3,2],[8,1],[10,92],[11,1],[3,2],[4,2],[0,4],[9,28],[0,6],[4,2]]], +[" ┃ Claude, GPT, Gemini etc ",[[3,2],[11,1],[0,93],[3,2],[4,2],[0,4],[9,23],[0,11],[4,2]]], +[" ┃ /plugins ",[[3,2],[11,1],[0,93],[3,2],[4,2],[0,38],[4,2]]], +[" ┃ Connect provider /connect ",[[3,2],[11,1],[0,93],[3,2],[4,2],[0,28],[9,8],[0,2],[4,2]]], +[" ┃ ",[[3,2],[11,1],[0,93],[3,2],[4,2],[0,38],[4,2]]], +[" ╹▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀ ",[[3,2],[11,1],[12,93],[3,2],[4,42]]], +[" /tmp/opencode/packages/tui:main shift+tab agents ctrl+p commands /tmp/opencode/packages/tui:main ",[[3,2],[2,31],[3,40],[2,6],[3,9],[2,8],[3,2],[4,2],[13,31],[4,9]]], +[" ",[[3,98],[4,42]]] +]} diff --git a/packages/cli-rs/parity/fixtures/P.8/sidebar-prompt.app.json b/packages/cli-rs/parity/fixtures/P.8/sidebar-prompt.app.json new file mode 100644 index 000000000000..e1368ad521ee --- /dev/null +++ b/packages/cli-rs/parity/fixtures/P.8/sidebar-prompt.app.json @@ -0,0 +1,73 @@ +{ + "scenario": "P.8/sidebar-prompt", + "width": 140, + "height": 34, + "directory": "/tmp/opencode/packages/tui", + "config": { + "experimental": {"new-designs":true}, + "plugins": ["./out/npm/node_modules/opencode-sidebar-prompt"], + "animations": false, + "theme": {"name":"opencode"} + }, + "args": { + "sessionID": "ses_l" + }, + "env": { + "OPENCODE_PARITY_PLUGIN": "npm" + }, + "routes": [ + {"path":"/api/session/ses_l","json":{"data":{"id":"ses_l","title":"Release notes","projectID":"proj_test","cost":0,"tokens":{"input":0,"output":0,"reasoning":0,"cache":{"read":0,"write":0}},"time":{"created":2,"updated":2},"location":{"directory":"/tmp/opencode/packages/tui"}}}}, + {"path":"/api/session","json":{"data":[{"id":"ses_l","title":"Release notes","projectID":"proj_test","cost":0,"tokens":{"input":0,"output":0,"reasoning":0,"cache":{"read":0,"write":0}},"time":{"created":2,"updated":2},"location":{"directory":"/tmp/opencode/packages/tui"}}],"cursor":{}}}, + {"path":"/api/session/ses_l/message","json":{"data":[{"id":"msg_2","type":"assistant","agent":"build","model":{"providerID":"provider","id":"model"},"content":[{"type":"text","text":"Drafted."}],"finish":"stop","time":{"created":2000,"completed":2001}},{"id":"msg_1","type":"user","text":"Write the release notes for 2.3: the new sidebar, the plugin host, and the fixes to the theme picker. Keep each line short, link every pull request, and leave the upgrade steps for last.\nStep 1: check the notes of change 1 by hand.\nStep 2: check the notes of change 2 by hand.\nStep 3: check the notes of change 3 by hand.\nStep 4: check the notes of change 4 by hand.\nStep 5: check the notes of change 5 by hand.\nStep 6: check the notes of change 6 by hand.\nStep 7: check the notes of change 7 by hand.\nStep 8: check the notes of change 8 by hand.\nStep 9: check the notes of change 9 by hand.\nStep 10: check the notes of change 10 by hand.\nStep 11: check the notes of change 11 by hand.\nStep 12: check the notes of change 12 by hand.\nStep 13: check the notes of change 13 by hand.\nStep 14: check the notes of change 14 by hand.\nStep 15: check the notes of change 15 by hand.\nStep 16: check the notes of change 16 by hand.\nStep 17: check the notes of change 17 by hand.\nStep 18: check the notes of change 18 by hand.\nStep 19: check the notes of change 19 by hand.\nStep 20: check the notes of change 20 by hand.\nStep 21: check the notes of change 21 by hand.\nStep 22: check the notes of change 22 by hand.\nStep 23: check the notes of change 23 by hand.\nStep 24: check the notes of change 24 by hand.\nStep 25: check the notes of change 25 by hand.\nStep 26: check the notes of change 26 by hand.\nStep 27: check the notes of change 27 by hand.\nStep 28: check the notes of change 28 by hand.\nStep 29: check the notes of change 29 by hand.\nStep 30: check the notes of change 30 by hand.\nStep 31: check the notes of change 31 by hand.\nStep 32: check the notes of change 32 by hand.\nStep 33: check the notes of change 33 by hand.\nStep 34: check the notes of change 34 by hand.\nStep 35: check the notes of change 35 by hand.\nStep 36: check the notes of change 36 by hand.\nStep 37: check the notes of change 37 by hand.\nStep 38: check the notes of change 38 by hand.\nStep 39: check the notes of change 39 by hand.\nStep 40: check the notes of change 40 by hand.\nLast line of the prompt.","time":{"created":1000}}],"cursor":{}}}, + {"path":"/api/session/ses_l/inbox","json":{"data":[]}} + ], + "steps": [ + {"checkpoint":"sidebar","until":"Open full prompt","fixture":"P.8/sidebar-prompt/sidebar"}, + {"type":"/lastprompt"}, + {"checkpoint":"slash","until":"Show full last prompt","fixture":"P.8/sidebar-prompt/slash"}, + {"keys":["enter"]}, + {"checkpoint":"dialog","until":"Esc · Close","fixture":"P.8/sidebar-prompt/dialog"}, + {"wait":800}, + {"checkpoint":"kept","until":"Esc · Close","fixture":"P.8/sidebar-prompt/kept"}, + {"keys":["down","down","down"]}, + {"checkpoint":"scrolled","until":"Step 36: check the notes","fixture":"P.8/sidebar-prompt/scrolled"}, + {"keys":["up"]}, + {"checkpoint":"back","until":"Step 8: check the notes","fixture":"P.8/sidebar-prompt/back"}, + {"keys":["escape"]}, + {"checkpoint":"closed","until":"Open full prompt","fixture":"P.8/sidebar-prompt/closed"} + ], + "requests": { + "writes": [], + "reads": [ + {"method":"GET","path":"/api/agent","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":[]}}, + {"method":"GET","path":"/api/command","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":[]}}, + {"method":"GET","path":"/api/config","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":[]}, + {"method":"GET","path":"/api/experimental/job","query":{"descendants":["true"],"sessionID":["ses_l"],"status":["running"]},"status":200,"json":{"data":[]}}, + {"method":"GET","path":"/api/experimental/migration/v1","query":{},"status":200,"json":{"status":"completed"}}, + {"method":"GET","path":"/api/experimental/session/ses_l/terminal","query":{},"status":200,"json":{"data":[]}}, + {"method":"GET","path":"/api/form","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode"}},"data":[]}}, + {"method":"GET","path":"/api/fs/list","query":{"location[directory]":["<cwd>"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":[]}}, + {"method":"GET","path":"/api/info","query":{},"status":200,"json":{"version":"test","pid":0,"urls":[],"paths":{"tmp":"/tmp"},"capabilities":{"persistentPty":true}}}, + {"method":"GET","path":"/api/integration","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":[]}}, + {"method":"GET","path":"/api/location","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}}}, + {"method":"GET","path":"/api/mcp","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":[]}}, + {"method":"GET","path":"/api/mcp/resource","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":{"resources":[],"templates":[]}}}, + {"method":"GET","path":"/api/model","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":[]}}, + {"method":"GET","path":"/api/plugin","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":[]}}, + {"method":"GET","path":"/api/project","query":{},"status":200,"json":[]}, + {"method":"GET","path":"/api/provider","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":[]}}, + {"method":"GET","path":"/api/reference","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode/packages/tui","canonical":"/tmp/opencode/packages/tui"}},"data":[]}}, + {"method":"GET","path":"/api/session","query":{"limit":["200"],"order":["desc"],"parentID":["ses_l"]},"status":200,"json":{"data":[{"id":"ses_l","title":"Release notes","projectID":"proj_test","cost":0,"tokens":{"input":0,"output":0,"reasoning":0,"cache":{"read":0,"write":0}},"time":{"created":2,"updated":2},"location":{"directory":"/tmp/opencode/packages/tui"}}],"cursor":{}}}, + {"method":"GET","path":"/api/session/active","query":{},"status":200,"json":{"data":{}}}, + {"method":"GET","path":"/api/session/ses_l","query":{},"status":200,"json":{"data":{"id":"ses_l","title":"Release notes","projectID":"proj_test","cost":0,"tokens":{"input":0,"output":0,"reasoning":0,"cache":{"read":0,"write":0}},"time":{"created":2,"updated":2},"location":{"directory":"/tmp/opencode/packages/tui"}}}}, + {"method":"GET","path":"/api/session/ses_l/form","query":{},"status":200,"json":{"data":[]}}, + {"method":"GET","path":"/api/session/ses_l/inbox","query":{},"status":200,"json":{"data":[]}}, + {"method":"GET","path":"/api/session/ses_l/message","query":{"limit":["20"],"order":["desc"]},"status":200,"json":{"data":[{"id":"msg_2","type":"assistant","agent":"build","model":{"providerID":"provider","id":"model"},"content":[{"type":"text","text":"Drafted."}],"finish":"stop","time":{"created":2000,"completed":2001}},{"id":"msg_1","type":"user","text":"Write the release notes for 2.3: the new sidebar, the plugin host, and the fixes to the theme picker. Keep each line short, link every pull request, and leave the upgrade steps for last.\nStep 1: check the notes of change 1 by hand.\nStep 2: check the notes of change 2 by hand.\nStep 3: check the notes of change 3 by hand.\nStep 4: check the notes of change 4 by hand.\nStep 5: check the notes of change 5 by hand.\nStep 6: check the notes of change 6 by hand.\nStep 7: check the notes of change 7 by hand.\nStep 8: check the notes of change 8 by hand.\nStep 9: check the notes of change 9 by hand.\nStep 10: check the notes of change 10 by hand.\nStep 11: check the notes of change 11 by hand.\nStep 12: check the notes of change 12 by hand.\nStep 13: check the notes of change 13 by hand.\nStep 14: check the notes of change 14 by hand.\nStep 15: check the notes of change 15 by hand.\nStep 16: check the notes of change 16 by hand.\nStep 17: check the notes of change 17 by hand.\nStep 18: check the notes of change 18 by hand.\nStep 19: check the notes of change 19 by hand.\nStep 20: check the notes of change 20 by hand.\nStep 21: check the notes of change 21 by hand.\nStep 22: check the notes of change 22 by hand.\nStep 23: check the notes of change 23 by hand.\nStep 24: check the notes of change 24 by hand.\nStep 25: check the notes of change 25 by hand.\nStep 26: check the notes of change 26 by hand.\nStep 27: check the notes of change 27 by hand.\nStep 28: check the notes of change 28 by hand.\nStep 29: check the notes of change 29 by hand.\nStep 30: check the notes of change 30 by hand.\nStep 31: check the notes of change 31 by hand.\nStep 32: check the notes of change 32 by hand.\nStep 33: check the notes of change 33 by hand.\nStep 34: check the notes of change 34 by hand.\nStep 35: check the notes of change 35 by hand.\nStep 36: check the notes of change 36 by hand.\nStep 37: check the notes of change 37 by hand.\nStep 38: check the notes of change 38 by hand.\nStep 39: check the notes of change 39 by hand.\nStep 40: check the notes of change 40 by hand.\nLast line of the prompt.","time":{"created":1000}}],"cursor":{}}}, + {"method":"GET","path":"/api/session/ses_l/permission","query":{},"status":200,"json":{"data":[]}}, + {"method":"GET","path":"/api/shell","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":[]}}, + {"method":"GET","path":"/api/skill","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":[]}}, + {"method":"GET","path":"/api/vcs","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":{"branch":{"current":"main","default":"main"}}}}, + {"method":"POST","path":"/api/rpc/opencode.goal/get","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"body":{"input":{"sessionID":"ses_l"}},"status":200,"json":{"output":null}} + ] + } +} diff --git a/packages/cli-rs/parity/fixtures/P.8/sidebar-prompt/back.json b/packages/cli-rs/parity/fixtures/P.8/sidebar-prompt/back.json new file mode 100644 index 000000000000..c1940d6dc20e --- /dev/null +++ b/packages/cli-rs/parity/fixtures/P.8/sidebar-prompt/back.json @@ -0,0 +1,36 @@ +{"width":140,"height":34,"styles":["#ffffffff #0d0d0dff 0","#696969ff #0d0d0dff 1","#ffffffff #030303ff 0","#353535ff #030303ff 0","#313f69ff #080808ff 0","#ffffffff #080808ff 0","#696969ff #080808ff 0","#ffffffff #141414ff 0","#ffffffff #141414ff 1","#808080ff #141414ff 0","#ffffffff #252527ff 0","#9a9ea3ff #252527ff 0","#353535ff #0d0d0dff 0","#626262ff #030303ff 0","#313f69ff #030303ff 0","#1e1e1eff #030303ff 0","#696969ff #0d0d0dff 0","#0d0d0dff #030303ff 0","#353535ff #080808ff 0"],"lines":[ +[" Release notes + ",[[0,3],[1,7],[0,1],[1,5],[0,16],[2,1],[3,1],[2,106]]], +[" ┃ Step 22: check the notes of change 22 by hand. ",[[2,2],[4,1],[5,2],[6,4],[5,1],[6,3],[5,1],[6,5],[5,1],[6,3],[5,1],[6,5],[5,1],[6,2],[5,1],[6,6],[5,1],[6,2],[5,1],[6,2],[5,1],[6,5],[5,45],[2,2],[5,42]]], +[" ┃ Step 23: check the no ",[[2,2],[4,1],[5,2],[6,4],[5,1],[6,3],[5,1],[6,5],[5,1],[6,3],[5,1],[6,2],[7,88],[5,26]]], +[" ┃ Step 24: check the no ",[[2,2],[4,1],[5,2],[6,4],[5,1],[6,3],[5,1],[6,5],[5,1],[6,3],[5,1],[6,2],[7,88],[5,26]]], +[" ┃ Step 25: check the no Last prompt Esc · Close ",[[2,2],[4,1],[5,2],[6,4],[5,1],[6,3],[5,1],[6,5],[5,1],[6,3],[5,1],[6,2],[7,1],[8,11],[7,64],[9,11],[7,1],[5,26]]], +[" ┃ Step 26: check the no ",[[2,2],[4,1],[5,2],[6,4],[5,1],[6,3],[5,1],[6,5],[5,1],[6,3],[5,1],[6,2],[7,88],[5,26]]], +[" ┃ Step 27: check the no Step 8: check the notes of change 8 by hand. ase notes for 2.3: the ",[[2,2],[4,1],[5,2],[6,4],[5,1],[6,3],[5,1],[6,5],[5,1],[6,3],[5,1],[6,2],[7,86],[10,1],[7,1],[6,3],[5,1],[6,5],[5,1],[6,3],[5,1],[6,4],[5,1],[6,3],[5,4]]], +[" ┃ Step 28: check the no Step 9: check the notes of change 9 by hand. he plugin host, and the ",[[2,2],[4,1],[5,2],[6,4],[5,1],[6,3],[5,1],[6,5],[5,1],[6,3],[5,1],[6,2],[7,86],[10,1],[7,1],[6,2],[5,1],[6,6],[5,1],[6,5],[5,1],[6,3],[5,1],[6,3],[5,3]]], +[" ┃ Step 29: check the no Step 10: check the notes of change 10 by hand. heme picker. Keep each ",[[2,2],[4,1],[5,2],[6,4],[5,1],[6,3],[5,1],[6,5],[5,1],[6,3],[5,1],[6,2],[7,86],[10,1],[7,1],[6,4],[5,1],[6,7],[5,1],[6,4],[5,1],[6,4],[5,4]]], +[" ┃ Step 30: check the no Step 11: check the notes of change 11 by hand. nk every pull request, ",[[2,2],[4,1],[5,2],[6,4],[5,1],[6,3],[5,1],[6,5],[5,1],[6,3],[5,1],[6,2],[7,86],[10,1],[7,1],[6,2],[5,1],[6,5],[5,1],[6,4],[5,1],[6,8],[5,4]]], +[" ┃ Step 31: check the no Step 12: check the notes of change 12 by hand. upgrade steps fo… ",[[2,2],[4,1],[5,2],[6,4],[5,1],[6,3],[5,1],[6,5],[5,1],[6,3],[5,1],[6,2],[7,86],[10,1],[7,1],[6,7],[5,1],[6,5],[5,1],[6,3],[5,9]]], +[" ┃ Step 32: check the no Step 13: check the notes of change 13 by hand. ▄ pt · /lastprompt ",[[2,2],[4,1],[5,2],[6,4],[5,1],[6,3],[5,1],[6,5],[5,1],[6,3],[5,1],[6,2],[7,86],[11,1],[7,1],[6,2],[5,1],[6,1],[5,1],[6,11],[5,10]]], +[" ┃ Step 33: check the no Step 14: check the notes of change 14 by hand. █ ",[[2,2],[4,1],[5,2],[6,4],[5,1],[6,3],[5,1],[6,5],[5,1],[6,3],[5,1],[6,2],[7,86],[11,1],[7,1],[5,26]]], +[" ┃ Step 34: check the no Step 15: check the notes of change 15 by hand. █ ",[[2,2],[4,1],[5,2],[6,4],[5,1],[6,3],[5,1],[6,5],[5,1],[6,3],[5,1],[6,2],[7,86],[11,1],[7,1],[5,26]]], +[" ┃ Step 35: check the no Step 16: check the notes of change 16 by hand. █ ",[[2,2],[4,1],[5,2],[6,4],[5,1],[6,3],[5,1],[6,5],[5,1],[6,3],[5,1],[6,2],[7,86],[11,1],[7,1],[5,26]]], +[" ┃ Step 36: check the no Step 17: check the notes of change 17 by hand. █ ",[[2,2],[4,1],[5,2],[6,4],[5,1],[6,3],[5,1],[6,5],[5,1],[6,3],[5,1],[6,2],[7,86],[11,1],[7,1],[5,26]]], +[" ┃ Step 37: check the no Step 18: check the notes of change 18 by hand. █ ",[[2,2],[4,1],[5,2],[6,4],[5,1],[6,3],[5,1],[6,5],[5,1],[6,3],[5,1],[6,2],[7,86],[11,1],[7,1],[5,26]]], +[" ┃ Step 38: check the no Step 19: check the notes of change 19 by hand. █ ",[[2,2],[4,1],[5,2],[6,4],[5,1],[6,3],[5,1],[6,5],[5,1],[6,3],[5,1],[6,2],[7,86],[11,1],[7,1],[5,26]]], +[" ┃ Step 39: check the no Step 20: check the notes of change 20 by hand. █ ",[[2,2],[4,1],[5,2],[6,4],[5,1],[6,3],[5,1],[6,5],[5,1],[6,3],[5,1],[6,2],[7,86],[11,1],[7,1],[5,26]]], +[" ┃ Step 40: check the no Step 21: check the notes of change 21 by hand. █ ",[[2,2],[4,1],[5,2],[6,4],[5,1],[6,3],[5,1],[6,5],[5,1],[6,3],[5,1],[6,2],[7,86],[11,1],[7,1],[0,24],[5,2]]], +[" ┃ Last line of the prom Step 22: check the notes of change 22 by hand. █ arted ✕ ",[[2,2],[4,1],[5,2],[6,4],[5,1],[6,4],[5,1],[6,2],[5,1],[6,3],[5,1],[6,4],[7,86],[11,1],[7,1],[1,5],[0,16],[12,1],[0,2],[5,2]]], +[" ┃ Step 23: check the notes of change 23 by hand. █ ",[[2,2],[4,1],[5,23],[7,86],[11,1],[7,1],[0,24],[5,2]]], +[" Step 24: check the notes of change 24 by hand. █ ncludes free models so ",[[2,26],[7,86],[11,1],[7,1],[12,7],[0,1],[12,4],[0,1],[12,6],[0,1],[12,2],[0,2],[5,2]]], +[" Drafted. Step 25: check the notes of change 25 by hand. █ art immediately. ",[[2,5],[13,8],[2,13],[7,86],[11,1],[7,1],[12,3],[0,1],[12,12],[0,8],[5,2]]], +[" Step 26: check the notes of change 26 by hand. ▀ ",[[2,26],[7,86],[11,1],[7,1],[0,24],[5,2]]], +[" Build · provider/mode Step 27: check the notes of change 27 by hand. om 75+ providers to ",[[2,5],[14,5],[2,1],[3,1],[2,1],[3,13],[7,86],[10,1],[7,1],[12,2],[0,1],[12,3],[0,1],[12,9],[0,1],[12,2],[0,5],[5,2]]], +[" Step 28: check the notes of change 28 by hand. models, including ",[[2,26],[7,86],[10,1],[7,1],[12,7],[0,1],[12,9],[0,7],[5,2]]], +[" ┃ Step 29: check the notes of change 29 by hand. T, Gemini etc ",[[2,2],[15,1],[0,23],[7,86],[10,1],[7,1],[12,2],[0,1],[12,6],[0,1],[12,3],[0,11],[5,2]]], +[" ┃ Step 30: check the notes of change 30 by hand. ",[[2,2],[15,1],[0,23],[7,86],[10,1],[7,1],[0,24],[5,2]]], +[" ┃ Step 31: check the notes of change 31 by hand. ovider /connect ",[[2,2],[15,1],[0,23],[7,86],[10,1],[7,1],[16,6],[0,8],[12,8],[0,2],[5,2]]], +[" ┃ ",[[2,2],[15,1],[0,23],[7,88],[0,24],[5,2]]], +[" ╹▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀ ↑ ↓ / PgUp PgDown · Scroll ",[[2,2],[15,1],[17,23],[7,1],[9,26],[7,61],[5,26]]], +[" /tmp/opencode/packages/t packages/tui:main ",[[2,2],[3,24],[7,88],[18,17],[5,9]]], +[" ",[[2,98],[5,42]]] +]} diff --git a/packages/cli-rs/parity/fixtures/P.8/sidebar-prompt/closed.json b/packages/cli-rs/parity/fixtures/P.8/sidebar-prompt/closed.json new file mode 100644 index 000000000000..87b73984dc18 --- /dev/null +++ b/packages/cli-rs/parity/fixtures/P.8/sidebar-prompt/closed.json @@ -0,0 +1,36 @@ +{"width":140,"height":34,"styles":["#ffffffff #202020ff 0","#ffffffff #202020ff 1","#808080ff #080808ff 0","#ffffffff #080808ff 0","#7699feff #141414ff 0","#ffffffff #141414ff 0","#ffffffff #141414ff 1","#808080ff #202020ff 0","#eeeeeeff #080808ff 0","#7699feff #080808ff 0","#484848ff #080808ff 0","#202020ff #080808ff 0","#808080ff #141414ff 0"],"lines":[ +[" Release notes + ",[[0,3],[1,13],[0,16],[2,3],[3,105]]], +[" ┃ Step 22: check the notes of change 22 by hand. ",[[3,2],[4,1],[5,93],[3,2],[5,42]]], +[" ┃ Step 23: check the notes of change 23 by hand. Release notes ",[[3,2],[4,1],[5,93],[3,2],[5,2],[6,13],[5,27]]], +[" ┃ Step 24: check the notes of change 24 by hand. ",[[3,2],[4,1],[5,93],[3,2],[5,42]]], +[" ┃ Step 25: check the notes of change 25 by hand. ",[[3,2],[4,1],[5,93],[3,2],[5,42]]], +[" ┃ Step 26: check the notes of change 26 by hand. Last prompt ",[[3,2],[4,1],[5,93],[3,2],[5,2],[6,11],[5,29]]], +[" ┃ Step 27: check the notes of change 27 by hand. Write the release notes for 2.3: the ",[[3,2],[4,1],[5,93],[3,2],[5,42]]], +[" ┃ Step 28: check the notes of change 28 by hand. new sidebar, the plugin host, and the ",[[3,2],[4,1],[5,93],[3,2],[5,42]]], +[" ┃ Step 29: check the notes of change 29 by hand. fixes to the theme picker. Keep each ",[[3,2],[4,1],[5,93],[3,2],[5,42]]], +[" ┃ Step 30: check the notes of change 30 by hand. line short, link every pull request, ",[[3,2],[4,1],[5,93],[3,2],[5,42]]], +[" ┃ Step 31: check the notes of change 31 by hand. and leave the upgrade steps fo… ",[[3,2],[4,1],[5,93],[3,2],[5,42]]], +[" ┃ Step 32: check the notes of change 32 by hand. Open full prompt · /lastprompt ",[[3,2],[4,1],[5,93],[3,2],[5,42]]], +[" ┃ Step 33: check the notes of change 33 by hand. ",[[3,2],[4,1],[5,93],[3,2],[5,42]]], +[" ┃ Step 34: check the notes of change 34 by hand. ",[[3,2],[4,1],[5,93],[3,2],[5,42]]], +[" ┃ Step 35: check the notes of change 35 by hand. ",[[3,2],[4,1],[5,93],[3,2],[5,42]]], +[" ┃ Step 36: check the notes of change 36 by hand. ",[[3,2],[4,1],[5,93],[3,2],[5,42]]], +[" ┃ Step 37: check the notes of change 37 by hand. ",[[3,2],[4,1],[5,93],[3,2],[5,42]]], +[" ┃ Step 38: check the notes of change 38 by hand. ",[[3,2],[4,1],[5,93],[3,2],[5,42]]], +[" ┃ Step 39: check the notes of change 39 by hand. ",[[3,2],[4,1],[5,93],[3,2],[5,42]]], +[" ┃ Step 40: check the notes of change 40 by hand. ",[[3,2],[4,1],[5,93],[3,2],[5,2],[0,38],[5,2]]], +[" ┃ Last line of the prompt. ⬖ Getting started ✕ ",[[3,2],[4,1],[5,93],[3,2],[5,2],[0,4],[1,15],[0,16],[7,1],[0,2],[5,2]]], +[" ┃ ",[[3,2],[4,1],[5,93],[3,2],[5,2],[0,38],[5,2]]], +[" OpenCode includes free models so ",[[3,98],[5,2],[0,4],[7,32],[0,2],[5,2]]], +[" Drafted. you can start immediately. ",[[3,5],[8,8],[3,85],[5,2],[0,4],[7,26],[0,8],[5,2]]], +[" ",[[3,98],[5,2],[0,38],[5,2]]], +[" Build · provider/model · 1.0s Connect from 75+ providers to ",[[3,5],[9,5],[2,24],[3,64],[5,2],[0,4],[7,30],[0,4],[5,2]]], +[" use other models, including ",[[3,98],[5,2],[0,4],[7,28],[0,6],[5,2]]], +[" ┃ Claude, GPT, Gemini etc ",[[3,2],[10,1],[0,93],[3,2],[5,2],[0,4],[7,23],[0,11],[5,2]]], +[" ┃ ",[[3,2],[10,1],[0,93],[3,2],[5,2],[0,38],[5,2]]], +[" ┃ Connect provider /connect ",[[3,2],[10,1],[0,93],[3,2],[5,2],[0,28],[7,8],[0,2],[5,2]]], +[" ┃ ",[[3,2],[10,1],[0,93],[3,2],[5,2],[0,38],[5,2]]], +[" ╹▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀ ",[[3,2],[10,1],[11,93],[3,2],[5,42]]], +[" /tmp/opencode/packages/tui:main shift+tab agents ctrl+p commands /tmp/opencode/packages/tui:main ",[[3,2],[2,31],[3,40],[2,6],[3,9],[2,8],[3,2],[5,2],[12,31],[5,9]]], +[" ",[[3,98],[5,42]]] +]} diff --git a/packages/cli-rs/parity/fixtures/P.8/sidebar-prompt/dialog.json b/packages/cli-rs/parity/fixtures/P.8/sidebar-prompt/dialog.json new file mode 100644 index 000000000000..3c50575b4faa --- /dev/null +++ b/packages/cli-rs/parity/fixtures/P.8/sidebar-prompt/dialog.json @@ -0,0 +1,36 @@ +{"width":140,"height":34,"styles":["#ffffffff #0d0d0dff 0","#696969ff #0d0d0dff 1","#ffffffff #030303ff 0","#353535ff #030303ff 0","#313f69ff #080808ff 0","#ffffffff #080808ff 0","#696969ff #080808ff 0","#ffffffff #141414ff 0","#ffffffff #141414ff 1","#808080ff #141414ff 0","#9a9ea3ff #252527ff 0","#ffffffff #252527ff 0","#353535ff #0d0d0dff 0","#626262ff #030303ff 0","#313f69ff #030303ff 0","#1e1e1eff #030303ff 0","#696969ff #0d0d0dff 0","#0d0d0dff #030303ff 0","#353535ff #080808ff 0"],"lines":[ +[" Release notes + ",[[0,3],[1,7],[0,1],[1,5],[0,16],[2,1],[3,1],[2,106]]], +[" ┃ Step 22: check the notes of change 22 by hand. ",[[2,2],[4,1],[5,2],[6,4],[5,1],[6,3],[5,1],[6,5],[5,1],[6,3],[5,1],[6,5],[5,1],[6,2],[5,1],[6,6],[5,1],[6,2],[5,1],[6,2],[5,1],[6,5],[5,45],[2,2],[5,42]]], +[" ┃ Step 23: check the no ",[[2,2],[4,1],[5,2],[6,4],[5,1],[6,3],[5,1],[6,5],[5,1],[6,3],[5,1],[6,2],[7,88],[5,26]]], +[" ┃ Step 24: check the no ",[[2,2],[4,1],[5,2],[6,4],[5,1],[6,3],[5,1],[6,5],[5,1],[6,3],[5,1],[6,2],[7,88],[5,26]]], +[" ┃ Step 25: check the no Last prompt Esc · Close ",[[2,2],[4,1],[5,2],[6,4],[5,1],[6,3],[5,1],[6,5],[5,1],[6,3],[5,1],[6,2],[7,1],[8,11],[7,64],[9,11],[7,1],[5,26]]], +[" ┃ Step 26: check the no ",[[2,2],[4,1],[5,2],[6,4],[5,1],[6,3],[5,1],[6,5],[5,1],[6,3],[5,1],[6,2],[7,88],[5,26]]], +[" ┃ Step 27: check the no Write the release notes for 2.3: the new sidebar, the plugin host, and the fixes to █ ase notes for 2.3: the ",[[2,2],[4,1],[5,2],[6,4],[5,1],[6,3],[5,1],[6,5],[5,1],[6,3],[5,1],[6,2],[7,86],[10,1],[7,1],[6,3],[5,1],[6,5],[5,1],[6,3],[5,1],[6,4],[5,1],[6,3],[5,4]]], +[" ┃ Step 28: check the no the theme picker. Keep each line short, link every pull request, and leave the █ he plugin host, and the ",[[2,2],[4,1],[5,2],[6,4],[5,1],[6,3],[5,1],[6,5],[5,1],[6,3],[5,1],[6,2],[7,86],[10,1],[7,1],[6,2],[5,1],[6,6],[5,1],[6,5],[5,1],[6,3],[5,1],[6,3],[5,3]]], +[" ┃ Step 29: check the no upgrade steps for last. █ heme picker. Keep each ",[[2,2],[4,1],[5,2],[6,4],[5,1],[6,3],[5,1],[6,5],[5,1],[6,3],[5,1],[6,2],[7,86],[10,1],[7,1],[6,4],[5,1],[6,7],[5,1],[6,4],[5,1],[6,4],[5,4]]], +[" ┃ Step 30: check the no Step 1: check the notes of change 1 by hand. █ nk every pull request, ",[[2,2],[4,1],[5,2],[6,4],[5,1],[6,3],[5,1],[6,5],[5,1],[6,3],[5,1],[6,2],[7,86],[10,1],[7,1],[6,2],[5,1],[6,5],[5,1],[6,4],[5,1],[6,8],[5,4]]], +[" ┃ Step 31: check the no Step 2: check the notes of change 2 by hand. █ upgrade steps fo… ",[[2,2],[4,1],[5,2],[6,4],[5,1],[6,3],[5,1],[6,5],[5,1],[6,3],[5,1],[6,2],[7,86],[10,1],[7,1],[6,7],[5,1],[6,5],[5,1],[6,3],[5,9]]], +[" ┃ Step 32: check the no Step 3: check the notes of change 3 by hand. █ pt · /lastprompt ",[[2,2],[4,1],[5,2],[6,4],[5,1],[6,3],[5,1],[6,5],[5,1],[6,3],[5,1],[6,2],[7,86],[10,1],[7,1],[6,2],[5,1],[6,1],[5,1],[6,11],[5,10]]], +[" ┃ Step 33: check the no Step 4: check the notes of change 4 by hand. █ ",[[2,2],[4,1],[5,2],[6,4],[5,1],[6,3],[5,1],[6,5],[5,1],[6,3],[5,1],[6,2],[7,86],[10,1],[7,1],[5,26]]], +[" ┃ Step 34: check the no Step 5: check the notes of change 5 by hand. █ ",[[2,2],[4,1],[5,2],[6,4],[5,1],[6,3],[5,1],[6,5],[5,1],[6,3],[5,1],[6,2],[7,86],[10,1],[7,1],[5,26]]], +[" ┃ Step 35: check the no Step 6: check the notes of change 6 by hand. █ ",[[2,2],[4,1],[5,2],[6,4],[5,1],[6,3],[5,1],[6,5],[5,1],[6,3],[5,1],[6,2],[7,86],[10,1],[7,1],[5,26]]], +[" ┃ Step 36: check the no Step 7: check the notes of change 7 by hand. █ ",[[2,2],[4,1],[5,2],[6,4],[5,1],[6,3],[5,1],[6,5],[5,1],[6,3],[5,1],[6,2],[7,86],[10,1],[7,1],[5,26]]], +[" ┃ Step 37: check the no Step 8: check the notes of change 8 by hand. █ ",[[2,2],[4,1],[5,2],[6,4],[5,1],[6,3],[5,1],[6,5],[5,1],[6,3],[5,1],[6,2],[7,86],[10,1],[7,1],[5,26]]], +[" ┃ Step 38: check the no Step 9: check the notes of change 9 by hand. █ ",[[2,2],[4,1],[5,2],[6,4],[5,1],[6,3],[5,1],[6,5],[5,1],[6,3],[5,1],[6,2],[7,86],[10,1],[7,1],[5,26]]], +[" ┃ Step 39: check the no Step 10: check the notes of change 10 by hand. █ ",[[2,2],[4,1],[5,2],[6,4],[5,1],[6,3],[5,1],[6,5],[5,1],[6,3],[5,1],[6,2],[7,86],[10,1],[7,1],[5,26]]], +[" ┃ Step 40: check the no Step 11: check the notes of change 11 by hand. ",[[2,2],[4,1],[5,2],[6,4],[5,1],[6,3],[5,1],[6,5],[5,1],[6,3],[5,1],[6,2],[7,86],[11,1],[7,1],[0,24],[5,2]]], +[" ┃ Last line of the prom Step 12: check the notes of change 12 by hand. arted ✕ ",[[2,2],[4,1],[5,2],[6,4],[5,1],[6,4],[5,1],[6,2],[5,1],[6,3],[5,1],[6,4],[7,86],[11,1],[7,1],[1,5],[0,16],[12,1],[0,2],[5,2]]], +[" ┃ Step 13: check the notes of change 13 by hand. ",[[2,2],[4,1],[5,23],[7,86],[11,1],[7,1],[0,24],[5,2]]], +[" Step 14: check the notes of change 14 by hand. ncludes free models so ",[[2,26],[7,86],[11,1],[7,1],[12,7],[0,1],[12,4],[0,1],[12,6],[0,1],[12,2],[0,2],[5,2]]], +[" Drafted. Step 15: check the notes of change 15 by hand. art immediately. ",[[2,5],[13,8],[2,13],[7,86],[11,1],[7,1],[12,3],[0,1],[12,12],[0,8],[5,2]]], +[" Step 16: check the notes of change 16 by hand. ",[[2,26],[7,86],[11,1],[7,1],[0,24],[5,2]]], +[" Build · provider/mode Step 17: check the notes of change 17 by hand. om 75+ providers to ",[[2,5],[14,5],[2,1],[3,1],[2,1],[3,13],[7,86],[11,1],[7,1],[12,2],[0,1],[12,3],[0,1],[12,9],[0,1],[12,2],[0,5],[5,2]]], +[" Step 18: check the notes of change 18 by hand. models, including ",[[2,26],[7,86],[11,1],[7,1],[12,7],[0,1],[12,9],[0,7],[5,2]]], +[" ┃ Step 19: check the notes of change 19 by hand. T, Gemini etc ",[[2,2],[15,1],[0,23],[7,86],[11,1],[7,1],[12,2],[0,1],[12,6],[0,1],[12,3],[0,11],[5,2]]], +[" ┃ Step 20: check the notes of change 20 by hand. ",[[2,2],[15,1],[0,23],[7,86],[11,1],[7,1],[0,24],[5,2]]], +[" ┃ Step 21: check the notes of change 21 by hand. ovider /connect ",[[2,2],[15,1],[0,23],[7,86],[11,1],[7,1],[16,6],[0,8],[12,8],[0,2],[5,2]]], +[" ┃ ",[[2,2],[15,1],[0,23],[7,88],[0,24],[5,2]]], +[" ╹▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀ ↑ ↓ / PgUp PgDown · Scroll ",[[2,2],[15,1],[17,23],[7,1],[9,26],[7,61],[5,26]]], +[" /tmp/opencode/packages/t packages/tui:main ",[[2,2],[3,24],[7,88],[18,17],[5,9]]], +[" ",[[2,98],[5,42]]] +]} diff --git a/packages/cli-rs/parity/fixtures/P.8/sidebar-prompt/kept.json b/packages/cli-rs/parity/fixtures/P.8/sidebar-prompt/kept.json new file mode 100644 index 000000000000..3c50575b4faa --- /dev/null +++ b/packages/cli-rs/parity/fixtures/P.8/sidebar-prompt/kept.json @@ -0,0 +1,36 @@ +{"width":140,"height":34,"styles":["#ffffffff #0d0d0dff 0","#696969ff #0d0d0dff 1","#ffffffff #030303ff 0","#353535ff #030303ff 0","#313f69ff #080808ff 0","#ffffffff #080808ff 0","#696969ff #080808ff 0","#ffffffff #141414ff 0","#ffffffff #141414ff 1","#808080ff #141414ff 0","#9a9ea3ff #252527ff 0","#ffffffff #252527ff 0","#353535ff #0d0d0dff 0","#626262ff #030303ff 0","#313f69ff #030303ff 0","#1e1e1eff #030303ff 0","#696969ff #0d0d0dff 0","#0d0d0dff #030303ff 0","#353535ff #080808ff 0"],"lines":[ +[" Release notes + ",[[0,3],[1,7],[0,1],[1,5],[0,16],[2,1],[3,1],[2,106]]], +[" ┃ Step 22: check the notes of change 22 by hand. ",[[2,2],[4,1],[5,2],[6,4],[5,1],[6,3],[5,1],[6,5],[5,1],[6,3],[5,1],[6,5],[5,1],[6,2],[5,1],[6,6],[5,1],[6,2],[5,1],[6,2],[5,1],[6,5],[5,45],[2,2],[5,42]]], +[" ┃ Step 23: check the no ",[[2,2],[4,1],[5,2],[6,4],[5,1],[6,3],[5,1],[6,5],[5,1],[6,3],[5,1],[6,2],[7,88],[5,26]]], +[" ┃ Step 24: check the no ",[[2,2],[4,1],[5,2],[6,4],[5,1],[6,3],[5,1],[6,5],[5,1],[6,3],[5,1],[6,2],[7,88],[5,26]]], +[" ┃ Step 25: check the no Last prompt Esc · Close ",[[2,2],[4,1],[5,2],[6,4],[5,1],[6,3],[5,1],[6,5],[5,1],[6,3],[5,1],[6,2],[7,1],[8,11],[7,64],[9,11],[7,1],[5,26]]], +[" ┃ Step 26: check the no ",[[2,2],[4,1],[5,2],[6,4],[5,1],[6,3],[5,1],[6,5],[5,1],[6,3],[5,1],[6,2],[7,88],[5,26]]], +[" ┃ Step 27: check the no Write the release notes for 2.3: the new sidebar, the plugin host, and the fixes to █ ase notes for 2.3: the ",[[2,2],[4,1],[5,2],[6,4],[5,1],[6,3],[5,1],[6,5],[5,1],[6,3],[5,1],[6,2],[7,86],[10,1],[7,1],[6,3],[5,1],[6,5],[5,1],[6,3],[5,1],[6,4],[5,1],[6,3],[5,4]]], +[" ┃ Step 28: check the no the theme picker. Keep each line short, link every pull request, and leave the █ he plugin host, and the ",[[2,2],[4,1],[5,2],[6,4],[5,1],[6,3],[5,1],[6,5],[5,1],[6,3],[5,1],[6,2],[7,86],[10,1],[7,1],[6,2],[5,1],[6,6],[5,1],[6,5],[5,1],[6,3],[5,1],[6,3],[5,3]]], +[" ┃ Step 29: check the no upgrade steps for last. █ heme picker. Keep each ",[[2,2],[4,1],[5,2],[6,4],[5,1],[6,3],[5,1],[6,5],[5,1],[6,3],[5,1],[6,2],[7,86],[10,1],[7,1],[6,4],[5,1],[6,7],[5,1],[6,4],[5,1],[6,4],[5,4]]], +[" ┃ Step 30: check the no Step 1: check the notes of change 1 by hand. █ nk every pull request, ",[[2,2],[4,1],[5,2],[6,4],[5,1],[6,3],[5,1],[6,5],[5,1],[6,3],[5,1],[6,2],[7,86],[10,1],[7,1],[6,2],[5,1],[6,5],[5,1],[6,4],[5,1],[6,8],[5,4]]], +[" ┃ Step 31: check the no Step 2: check the notes of change 2 by hand. █ upgrade steps fo… ",[[2,2],[4,1],[5,2],[6,4],[5,1],[6,3],[5,1],[6,5],[5,1],[6,3],[5,1],[6,2],[7,86],[10,1],[7,1],[6,7],[5,1],[6,5],[5,1],[6,3],[5,9]]], +[" ┃ Step 32: check the no Step 3: check the notes of change 3 by hand. █ pt · /lastprompt ",[[2,2],[4,1],[5,2],[6,4],[5,1],[6,3],[5,1],[6,5],[5,1],[6,3],[5,1],[6,2],[7,86],[10,1],[7,1],[6,2],[5,1],[6,1],[5,1],[6,11],[5,10]]], +[" ┃ Step 33: check the no Step 4: check the notes of change 4 by hand. █ ",[[2,2],[4,1],[5,2],[6,4],[5,1],[6,3],[5,1],[6,5],[5,1],[6,3],[5,1],[6,2],[7,86],[10,1],[7,1],[5,26]]], +[" ┃ Step 34: check the no Step 5: check the notes of change 5 by hand. █ ",[[2,2],[4,1],[5,2],[6,4],[5,1],[6,3],[5,1],[6,5],[5,1],[6,3],[5,1],[6,2],[7,86],[10,1],[7,1],[5,26]]], +[" ┃ Step 35: check the no Step 6: check the notes of change 6 by hand. █ ",[[2,2],[4,1],[5,2],[6,4],[5,1],[6,3],[5,1],[6,5],[5,1],[6,3],[5,1],[6,2],[7,86],[10,1],[7,1],[5,26]]], +[" ┃ Step 36: check the no Step 7: check the notes of change 7 by hand. █ ",[[2,2],[4,1],[5,2],[6,4],[5,1],[6,3],[5,1],[6,5],[5,1],[6,3],[5,1],[6,2],[7,86],[10,1],[7,1],[5,26]]], +[" ┃ Step 37: check the no Step 8: check the notes of change 8 by hand. █ ",[[2,2],[4,1],[5,2],[6,4],[5,1],[6,3],[5,1],[6,5],[5,1],[6,3],[5,1],[6,2],[7,86],[10,1],[7,1],[5,26]]], +[" ┃ Step 38: check the no Step 9: check the notes of change 9 by hand. █ ",[[2,2],[4,1],[5,2],[6,4],[5,1],[6,3],[5,1],[6,5],[5,1],[6,3],[5,1],[6,2],[7,86],[10,1],[7,1],[5,26]]], +[" ┃ Step 39: check the no Step 10: check the notes of change 10 by hand. █ ",[[2,2],[4,1],[5,2],[6,4],[5,1],[6,3],[5,1],[6,5],[5,1],[6,3],[5,1],[6,2],[7,86],[10,1],[7,1],[5,26]]], +[" ┃ Step 40: check the no Step 11: check the notes of change 11 by hand. ",[[2,2],[4,1],[5,2],[6,4],[5,1],[6,3],[5,1],[6,5],[5,1],[6,3],[5,1],[6,2],[7,86],[11,1],[7,1],[0,24],[5,2]]], +[" ┃ Last line of the prom Step 12: check the notes of change 12 by hand. arted ✕ ",[[2,2],[4,1],[5,2],[6,4],[5,1],[6,4],[5,1],[6,2],[5,1],[6,3],[5,1],[6,4],[7,86],[11,1],[7,1],[1,5],[0,16],[12,1],[0,2],[5,2]]], +[" ┃ Step 13: check the notes of change 13 by hand. ",[[2,2],[4,1],[5,23],[7,86],[11,1],[7,1],[0,24],[5,2]]], +[" Step 14: check the notes of change 14 by hand. ncludes free models so ",[[2,26],[7,86],[11,1],[7,1],[12,7],[0,1],[12,4],[0,1],[12,6],[0,1],[12,2],[0,2],[5,2]]], +[" Drafted. Step 15: check the notes of change 15 by hand. art immediately. ",[[2,5],[13,8],[2,13],[7,86],[11,1],[7,1],[12,3],[0,1],[12,12],[0,8],[5,2]]], +[" Step 16: check the notes of change 16 by hand. ",[[2,26],[7,86],[11,1],[7,1],[0,24],[5,2]]], +[" Build · provider/mode Step 17: check the notes of change 17 by hand. om 75+ providers to ",[[2,5],[14,5],[2,1],[3,1],[2,1],[3,13],[7,86],[11,1],[7,1],[12,2],[0,1],[12,3],[0,1],[12,9],[0,1],[12,2],[0,5],[5,2]]], +[" Step 18: check the notes of change 18 by hand. models, including ",[[2,26],[7,86],[11,1],[7,1],[12,7],[0,1],[12,9],[0,7],[5,2]]], +[" ┃ Step 19: check the notes of change 19 by hand. T, Gemini etc ",[[2,2],[15,1],[0,23],[7,86],[11,1],[7,1],[12,2],[0,1],[12,6],[0,1],[12,3],[0,11],[5,2]]], +[" ┃ Step 20: check the notes of change 20 by hand. ",[[2,2],[15,1],[0,23],[7,86],[11,1],[7,1],[0,24],[5,2]]], +[" ┃ Step 21: check the notes of change 21 by hand. ovider /connect ",[[2,2],[15,1],[0,23],[7,86],[11,1],[7,1],[16,6],[0,8],[12,8],[0,2],[5,2]]], +[" ┃ ",[[2,2],[15,1],[0,23],[7,88],[0,24],[5,2]]], +[" ╹▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀ ↑ ↓ / PgUp PgDown · Scroll ",[[2,2],[15,1],[17,23],[7,1],[9,26],[7,61],[5,26]]], +[" /tmp/opencode/packages/t packages/tui:main ",[[2,2],[3,24],[7,88],[18,17],[5,9]]], +[" ",[[2,98],[5,42]]] +]} diff --git a/packages/cli-rs/parity/fixtures/P.8/sidebar-prompt/scrolled.json b/packages/cli-rs/parity/fixtures/P.8/sidebar-prompt/scrolled.json new file mode 100644 index 000000000000..9acd4623e177 --- /dev/null +++ b/packages/cli-rs/parity/fixtures/P.8/sidebar-prompt/scrolled.json @@ -0,0 +1,36 @@ +{"width":140,"height":34,"styles":["#ffffffff #0d0d0dff 0","#696969ff #0d0d0dff 1","#ffffffff #030303ff 0","#353535ff #030303ff 0","#313f69ff #080808ff 0","#ffffffff #080808ff 0","#696969ff #080808ff 0","#ffffffff #141414ff 0","#ffffffff #141414ff 1","#808080ff #141414ff 0","#ffffffff #252527ff 0","#9a9ea3ff #252527ff 0","#353535ff #0d0d0dff 0","#626262ff #030303ff 0","#313f69ff #030303ff 0","#1e1e1eff #030303ff 0","#696969ff #0d0d0dff 0","#0d0d0dff #030303ff 0","#353535ff #080808ff 0"],"lines":[ +[" Release notes + ",[[0,3],[1,7],[0,1],[1,5],[0,16],[2,1],[3,1],[2,106]]], +[" ┃ Step 22: check the notes of change 22 by hand. ",[[2,2],[4,1],[5,2],[6,4],[5,1],[6,3],[5,1],[6,5],[5,1],[6,3],[5,1],[6,5],[5,1],[6,2],[5,1],[6,6],[5,1],[6,2],[5,1],[6,2],[5,1],[6,5],[5,45],[2,2],[5,42]]], +[" ┃ Step 23: check the no ",[[2,2],[4,1],[5,2],[6,4],[5,1],[6,3],[5,1],[6,5],[5,1],[6,3],[5,1],[6,2],[7,88],[5,26]]], +[" ┃ Step 24: check the no ",[[2,2],[4,1],[5,2],[6,4],[5,1],[6,3],[5,1],[6,5],[5,1],[6,3],[5,1],[6,2],[7,88],[5,26]]], +[" ┃ Step 25: check the no Last prompt Esc · Close ",[[2,2],[4,1],[5,2],[6,4],[5,1],[6,3],[5,1],[6,5],[5,1],[6,3],[5,1],[6,2],[7,1],[8,11],[7,64],[9,11],[7,1],[5,26]]], +[" ┃ Step 26: check the no ",[[2,2],[4,1],[5,2],[6,4],[5,1],[6,3],[5,1],[6,5],[5,1],[6,3],[5,1],[6,2],[7,88],[5,26]]], +[" ┃ Step 27: check the no Step 13: check the notes of change 13 by hand. ase notes for 2.3: the ",[[2,2],[4,1],[5,2],[6,4],[5,1],[6,3],[5,1],[6,5],[5,1],[6,3],[5,1],[6,2],[7,86],[10,1],[7,1],[6,3],[5,1],[6,5],[5,1],[6,3],[5,1],[6,4],[5,1],[6,3],[5,4]]], +[" ┃ Step 28: check the no Step 14: check the notes of change 14 by hand. he plugin host, and the ",[[2,2],[4,1],[5,2],[6,4],[5,1],[6,3],[5,1],[6,5],[5,1],[6,3],[5,1],[6,2],[7,86],[10,1],[7,1],[6,2],[5,1],[6,6],[5,1],[6,5],[5,1],[6,3],[5,1],[6,3],[5,3]]], +[" ┃ Step 29: check the no Step 15: check the notes of change 15 by hand. heme picker. Keep each ",[[2,2],[4,1],[5,2],[6,4],[5,1],[6,3],[5,1],[6,5],[5,1],[6,3],[5,1],[6,2],[7,86],[10,1],[7,1],[6,4],[5,1],[6,7],[5,1],[6,4],[5,1],[6,4],[5,4]]], +[" ┃ Step 30: check the no Step 16: check the notes of change 16 by hand. nk every pull request, ",[[2,2],[4,1],[5,2],[6,4],[5,1],[6,3],[5,1],[6,5],[5,1],[6,3],[5,1],[6,2],[7,86],[10,1],[7,1],[6,2],[5,1],[6,5],[5,1],[6,4],[5,1],[6,8],[5,4]]], +[" ┃ Step 31: check the no Step 17: check the notes of change 17 by hand. upgrade steps fo… ",[[2,2],[4,1],[5,2],[6,4],[5,1],[6,3],[5,1],[6,5],[5,1],[6,3],[5,1],[6,2],[7,86],[10,1],[7,1],[6,7],[5,1],[6,5],[5,1],[6,3],[5,9]]], +[" ┃ Step 32: check the no Step 18: check the notes of change 18 by hand. pt · /lastprompt ",[[2,2],[4,1],[5,2],[6,4],[5,1],[6,3],[5,1],[6,5],[5,1],[6,3],[5,1],[6,2],[7,86],[10,1],[7,1],[6,2],[5,1],[6,1],[5,1],[6,11],[5,10]]], +[" ┃ Step 33: check the no Step 19: check the notes of change 19 by hand. ",[[2,2],[4,1],[5,2],[6,4],[5,1],[6,3],[5,1],[6,5],[5,1],[6,3],[5,1],[6,2],[7,86],[10,1],[7,1],[5,26]]], +[" ┃ Step 34: check the no Step 20: check the notes of change 20 by hand. ",[[2,2],[4,1],[5,2],[6,4],[5,1],[6,3],[5,1],[6,5],[5,1],[6,3],[5,1],[6,2],[7,86],[10,1],[7,1],[5,26]]], +[" ┃ Step 35: check the no Step 21: check the notes of change 21 by hand. ▄ ",[[2,2],[4,1],[5,2],[6,4],[5,1],[6,3],[5,1],[6,5],[5,1],[6,3],[5,1],[6,2],[7,86],[11,1],[7,1],[5,26]]], +[" ┃ Step 36: check the no Step 22: check the notes of change 22 by hand. █ ",[[2,2],[4,1],[5,2],[6,4],[5,1],[6,3],[5,1],[6,5],[5,1],[6,3],[5,1],[6,2],[7,86],[11,1],[7,1],[5,26]]], +[" ┃ Step 37: check the no Step 23: check the notes of change 23 by hand. █ ",[[2,2],[4,1],[5,2],[6,4],[5,1],[6,3],[5,1],[6,5],[5,1],[6,3],[5,1],[6,2],[7,86],[11,1],[7,1],[5,26]]], +[" ┃ Step 38: check the no Step 24: check the notes of change 24 by hand. █ ",[[2,2],[4,1],[5,2],[6,4],[5,1],[6,3],[5,1],[6,5],[5,1],[6,3],[5,1],[6,2],[7,86],[11,1],[7,1],[5,26]]], +[" ┃ Step 39: check the no Step 25: check the notes of change 25 by hand. █ ",[[2,2],[4,1],[5,2],[6,4],[5,1],[6,3],[5,1],[6,5],[5,1],[6,3],[5,1],[6,2],[7,86],[11,1],[7,1],[5,26]]], +[" ┃ Step 40: check the no Step 26: check the notes of change 26 by hand. █ ",[[2,2],[4,1],[5,2],[6,4],[5,1],[6,3],[5,1],[6,5],[5,1],[6,3],[5,1],[6,2],[7,86],[11,1],[7,1],[0,24],[5,2]]], +[" ┃ Last line of the prom Step 27: check the notes of change 27 by hand. █ arted ✕ ",[[2,2],[4,1],[5,2],[6,4],[5,1],[6,4],[5,1],[6,2],[5,1],[6,3],[5,1],[6,4],[7,86],[11,1],[7,1],[1,5],[0,16],[12,1],[0,2],[5,2]]], +[" ┃ Step 28: check the notes of change 28 by hand. █ ",[[2,2],[4,1],[5,23],[7,86],[11,1],[7,1],[0,24],[5,2]]], +[" Step 29: check the notes of change 29 by hand. █ ncludes free models so ",[[2,26],[7,86],[11,1],[7,1],[12,7],[0,1],[12,4],[0,1],[12,6],[0,1],[12,2],[0,2],[5,2]]], +[" Drafted. Step 30: check the notes of change 30 by hand. █ art immediately. ",[[2,5],[13,8],[2,13],[7,86],[11,1],[7,1],[12,3],[0,1],[12,12],[0,8],[5,2]]], +[" Step 31: check the notes of change 31 by hand. █ ",[[2,26],[7,86],[11,1],[7,1],[0,24],[5,2]]], +[" Build · provider/mode Step 32: check the notes of change 32 by hand. █ om 75+ providers to ",[[2,5],[14,5],[2,1],[3,1],[2,1],[3,13],[7,86],[11,1],[7,1],[12,2],[0,1],[12,3],[0,1],[12,9],[0,1],[12,2],[0,5],[5,2]]], +[" Step 33: check the notes of change 33 by hand. █ models, including ",[[2,26],[7,86],[11,1],[7,1],[12,7],[0,1],[12,9],[0,7],[5,2]]], +[" ┃ Step 34: check the notes of change 34 by hand. ▀ T, Gemini etc ",[[2,2],[15,1],[0,23],[7,86],[11,1],[7,1],[12,2],[0,1],[12,6],[0,1],[12,3],[0,11],[5,2]]], +[" ┃ Step 35: check the notes of change 35 by hand. ",[[2,2],[15,1],[0,23],[7,86],[10,1],[7,1],[0,24],[5,2]]], +[" ┃ Step 36: check the notes of change 36 by hand. ovider /connect ",[[2,2],[15,1],[0,23],[7,86],[10,1],[7,1],[16,6],[0,8],[12,8],[0,2],[5,2]]], +[" ┃ ",[[2,2],[15,1],[0,23],[7,88],[0,24],[5,2]]], +[" ╹▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀ ↑ ↓ / PgUp PgDown · Scroll ",[[2,2],[15,1],[17,23],[7,1],[9,26],[7,61],[5,26]]], +[" /tmp/opencode/packages/t packages/tui:main ",[[2,2],[3,24],[7,88],[18,17],[5,9]]], +[" ",[[2,98],[5,42]]] +]} diff --git a/packages/cli-rs/parity/fixtures/P.8/sidebar-prompt/sidebar.json b/packages/cli-rs/parity/fixtures/P.8/sidebar-prompt/sidebar.json new file mode 100644 index 000000000000..87b73984dc18 --- /dev/null +++ b/packages/cli-rs/parity/fixtures/P.8/sidebar-prompt/sidebar.json @@ -0,0 +1,36 @@ +{"width":140,"height":34,"styles":["#ffffffff #202020ff 0","#ffffffff #202020ff 1","#808080ff #080808ff 0","#ffffffff #080808ff 0","#7699feff #141414ff 0","#ffffffff #141414ff 0","#ffffffff #141414ff 1","#808080ff #202020ff 0","#eeeeeeff #080808ff 0","#7699feff #080808ff 0","#484848ff #080808ff 0","#202020ff #080808ff 0","#808080ff #141414ff 0"],"lines":[ +[" Release notes + ",[[0,3],[1,13],[0,16],[2,3],[3,105]]], +[" ┃ Step 22: check the notes of change 22 by hand. ",[[3,2],[4,1],[5,93],[3,2],[5,42]]], +[" ┃ Step 23: check the notes of change 23 by hand. Release notes ",[[3,2],[4,1],[5,93],[3,2],[5,2],[6,13],[5,27]]], +[" ┃ Step 24: check the notes of change 24 by hand. ",[[3,2],[4,1],[5,93],[3,2],[5,42]]], +[" ┃ Step 25: check the notes of change 25 by hand. ",[[3,2],[4,1],[5,93],[3,2],[5,42]]], +[" ┃ Step 26: check the notes of change 26 by hand. Last prompt ",[[3,2],[4,1],[5,93],[3,2],[5,2],[6,11],[5,29]]], +[" ┃ Step 27: check the notes of change 27 by hand. Write the release notes for 2.3: the ",[[3,2],[4,1],[5,93],[3,2],[5,42]]], +[" ┃ Step 28: check the notes of change 28 by hand. new sidebar, the plugin host, and the ",[[3,2],[4,1],[5,93],[3,2],[5,42]]], +[" ┃ Step 29: check the notes of change 29 by hand. fixes to the theme picker. Keep each ",[[3,2],[4,1],[5,93],[3,2],[5,42]]], +[" ┃ Step 30: check the notes of change 30 by hand. line short, link every pull request, ",[[3,2],[4,1],[5,93],[3,2],[5,42]]], +[" ┃ Step 31: check the notes of change 31 by hand. and leave the upgrade steps fo… ",[[3,2],[4,1],[5,93],[3,2],[5,42]]], +[" ┃ Step 32: check the notes of change 32 by hand. Open full prompt · /lastprompt ",[[3,2],[4,1],[5,93],[3,2],[5,42]]], +[" ┃ Step 33: check the notes of change 33 by hand. ",[[3,2],[4,1],[5,93],[3,2],[5,42]]], +[" ┃ Step 34: check the notes of change 34 by hand. ",[[3,2],[4,1],[5,93],[3,2],[5,42]]], +[" ┃ Step 35: check the notes of change 35 by hand. ",[[3,2],[4,1],[5,93],[3,2],[5,42]]], +[" ┃ Step 36: check the notes of change 36 by hand. ",[[3,2],[4,1],[5,93],[3,2],[5,42]]], +[" ┃ Step 37: check the notes of change 37 by hand. ",[[3,2],[4,1],[5,93],[3,2],[5,42]]], +[" ┃ Step 38: check the notes of change 38 by hand. ",[[3,2],[4,1],[5,93],[3,2],[5,42]]], +[" ┃ Step 39: check the notes of change 39 by hand. ",[[3,2],[4,1],[5,93],[3,2],[5,42]]], +[" ┃ Step 40: check the notes of change 40 by hand. ",[[3,2],[4,1],[5,93],[3,2],[5,2],[0,38],[5,2]]], +[" ┃ Last line of the prompt. ⬖ Getting started ✕ ",[[3,2],[4,1],[5,93],[3,2],[5,2],[0,4],[1,15],[0,16],[7,1],[0,2],[5,2]]], +[" ┃ ",[[3,2],[4,1],[5,93],[3,2],[5,2],[0,38],[5,2]]], +[" OpenCode includes free models so ",[[3,98],[5,2],[0,4],[7,32],[0,2],[5,2]]], +[" Drafted. you can start immediately. ",[[3,5],[8,8],[3,85],[5,2],[0,4],[7,26],[0,8],[5,2]]], +[" ",[[3,98],[5,2],[0,38],[5,2]]], +[" Build · provider/model · 1.0s Connect from 75+ providers to ",[[3,5],[9,5],[2,24],[3,64],[5,2],[0,4],[7,30],[0,4],[5,2]]], +[" use other models, including ",[[3,98],[5,2],[0,4],[7,28],[0,6],[5,2]]], +[" ┃ Claude, GPT, Gemini etc ",[[3,2],[10,1],[0,93],[3,2],[5,2],[0,4],[7,23],[0,11],[5,2]]], +[" ┃ ",[[3,2],[10,1],[0,93],[3,2],[5,2],[0,38],[5,2]]], +[" ┃ Connect provider /connect ",[[3,2],[10,1],[0,93],[3,2],[5,2],[0,28],[7,8],[0,2],[5,2]]], +[" ┃ ",[[3,2],[10,1],[0,93],[3,2],[5,2],[0,38],[5,2]]], +[" ╹▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀ ",[[3,2],[10,1],[11,93],[3,2],[5,42]]], +[" /tmp/opencode/packages/tui:main shift+tab agents ctrl+p commands /tmp/opencode/packages/tui:main ",[[3,2],[2,31],[3,40],[2,6],[3,9],[2,8],[3,2],[5,2],[12,31],[5,9]]], +[" ",[[3,98],[5,42]]] +]} diff --git a/packages/cli-rs/parity/fixtures/P.8/sidebar-prompt/slash.json b/packages/cli-rs/parity/fixtures/P.8/sidebar-prompt/slash.json new file mode 100644 index 000000000000..b3c84d3eb028 --- /dev/null +++ b/packages/cli-rs/parity/fixtures/P.8/sidebar-prompt/slash.json @@ -0,0 +1,36 @@ +{"width":140,"height":34,"styles":["#ffffffff #202020ff 0","#ffffffff #202020ff 1","#808080ff #080808ff 0","#ffffffff #080808ff 0","#7699feff #141414ff 0","#ffffffff #141414ff 0","#ffffffff #141414ff 1","#808080ff #202020ff 0","#eeeeeeff #080808ff 0","#7699feff #080808ff 0","#ffffffff #23344bff 0","#484848ff #080808ff 0","#202020ff #080808ff 0","#808080ff #141414ff 0"],"lines":[ +[" Release notes + ",[[0,3],[1,13],[0,16],[2,3],[3,105]]], +[" ┃ Step 22: check the notes of change 22 by hand. ",[[3,2],[4,1],[5,93],[3,2],[5,42]]], +[" ┃ Step 23: check the notes of change 23 by hand. Release notes ",[[3,2],[4,1],[5,93],[3,2],[5,2],[6,13],[5,27]]], +[" ┃ Step 24: check the notes of change 24 by hand. ",[[3,2],[4,1],[5,93],[3,2],[5,42]]], +[" ┃ Step 25: check the notes of change 25 by hand. ",[[3,2],[4,1],[5,93],[3,2],[5,42]]], +[" ┃ Step 26: check the notes of change 26 by hand. Last prompt ",[[3,2],[4,1],[5,93],[3,2],[5,2],[6,11],[5,29]]], +[" ┃ Step 27: check the notes of change 27 by hand. Write the release notes for 2.3: the ",[[3,2],[4,1],[5,93],[3,2],[5,42]]], +[" ┃ Step 28: check the notes of change 28 by hand. new sidebar, the plugin host, and the ",[[3,2],[4,1],[5,93],[3,2],[5,42]]], +[" ┃ Step 29: check the notes of change 29 by hand. fixes to the theme picker. Keep each ",[[3,2],[4,1],[5,93],[3,2],[5,42]]], +[" ┃ Step 30: check the notes of change 30 by hand. line short, link every pull request, ",[[3,2],[4,1],[5,93],[3,2],[5,42]]], +[" ┃ Step 31: check the notes of change 31 by hand. and leave the upgrade steps fo… ",[[3,2],[4,1],[5,93],[3,2],[5,42]]], +[" ┃ Step 32: check the notes of change 32 by hand. Open full prompt · /lastprompt ",[[3,2],[4,1],[5,93],[3,2],[5,42]]], +[" ┃ Step 33: check the notes of change 33 by hand. ",[[3,2],[4,1],[5,93],[3,2],[5,42]]], +[" ┃ Step 34: check the notes of change 34 by hand. ",[[3,2],[4,1],[5,93],[3,2],[5,42]]], +[" ┃ Step 35: check the notes of change 35 by hand. ",[[3,2],[4,1],[5,93],[3,2],[5,42]]], +[" ┃ Step 36: check the notes of change 36 by hand. ",[[3,2],[4,1],[5,93],[3,2],[5,42]]], +[" ┃ Step 37: check the notes of change 37 by hand. ",[[3,2],[4,1],[5,93],[3,2],[5,42]]], +[" ┃ Step 38: check the notes of change 38 by hand. ",[[3,2],[4,1],[5,93],[3,2],[5,42]]], +[" ┃ Step 39: check the notes of change 39 by hand. ",[[3,2],[4,1],[5,93],[3,2],[5,42]]], +[" ┃ Step 40: check the notes of change 40 by hand. ",[[3,2],[4,1],[5,93],[3,2],[5,2],[0,38],[5,2]]], +[" ┃ Last line of the prompt. ⬖ Getting started ✕ ",[[3,2],[4,1],[5,93],[3,2],[5,2],[0,4],[1,15],[0,16],[7,1],[0,2],[5,2]]], +[" ┃ ",[[3,2],[4,1],[5,93],[3,2],[5,2],[0,38],[5,2]]], +[" OpenCode includes free models so ",[[3,98],[5,2],[0,4],[7,32],[0,2],[5,2]]], +[" Drafted. you can start immediately. ",[[3,5],[8,8],[3,85],[5,2],[0,4],[7,26],[0,8],[5,2]]], +[" ",[[3,98],[5,2],[0,38],[5,2]]], +[" Build · provider/model · 1.0s Connect from 75+ providers to ",[[3,5],[9,5],[2,24],[3,64],[5,2],[0,4],[7,30],[0,4],[5,2]]], +[" ┃ /lastprompt Show full last prompt ┃ use other models, including ",[[3,2],[9,1],[10,92],[11,1],[3,2],[5,2],[0,4],[7,28],[0,6],[5,2]]], +[" ┃ Claude, GPT, Gemini etc ",[[3,2],[11,1],[0,93],[3,2],[5,2],[0,4],[7,23],[0,11],[5,2]]], +[" ┃ /lastprompt ",[[3,2],[11,1],[0,93],[3,2],[5,2],[0,38],[5,2]]], +[" ┃ Connect provider /connect ",[[3,2],[11,1],[0,93],[3,2],[5,2],[0,28],[7,8],[0,2],[5,2]]], +[" ┃ ",[[3,2],[11,1],[0,93],[3,2],[5,2],[0,38],[5,2]]], +[" ╹▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀ ",[[3,2],[11,1],[12,93],[3,2],[5,42]]], +[" /tmp/opencode/packages/tui:main shift+tab agents ctrl+p commands /tmp/opencode/packages/tui:main ",[[3,2],[2,31],[3,40],[2,6],[3,9],[2,8],[3,2],[5,2],[13,31],[5,9]]], +[" ",[[3,98],[5,42]]] +]} diff --git a/packages/cli-rs/parity/fixtures/P.8/sidebar-tokens.app.json b/packages/cli-rs/parity/fixtures/P.8/sidebar-tokens.app.json new file mode 100644 index 000000000000..a331e09a2503 --- /dev/null +++ b/packages/cli-rs/parity/fixtures/P.8/sidebar-tokens.app.json @@ -0,0 +1,63 @@ +{ + "scenario": "P.8/sidebar-tokens", + "width": 140, + "height": 34, + "directory": "/tmp/opencode/packages/tui", + "config": { + "experimental": {"new-designs":true}, + "plugins": ["./out/npm/node_modules/opencode-sidebar-tokens"], + "animations": false, + "theme": {"name":"opencode"} + }, + "args": { + "sessionID": "ses_t" + }, + "env": { + "OPENCODE_PARITY_PLUGIN": "npm" + }, + "routes": [ + {"path":"/api/session/ses_t","json":{"data":{"id":"ses_t","title":"Count the tokens","projectID":"proj_test","cost":0,"tokens":{"input":0,"output":0,"reasoning":0,"cache":{"read":0,"write":0}},"time":{"created":2,"updated":2},"location":{"directory":"/tmp/opencode/packages/tui"}}}}, + {"path":"/api/session","json":{"data":[{"id":"ses_t","title":"Count the tokens","projectID":"proj_test","cost":0,"tokens":{"input":0,"output":0,"reasoning":0,"cache":{"read":0,"write":0}},"time":{"created":2,"updated":2},"location":{"directory":"/tmp/opencode/packages/tui"}}],"cursor":{}}}, + {"path":"/api/session/ses_t/message","json":{"data":[{"id":"msg_2","type":"assistant","agent":"build","model":{"providerID":"provider","id":"model"},"content":[{"type":"text","text":"Counted."}],"finish":"stop","time":{"created":2000,"completed":2001}},{"id":"msg_1","type":"user","text":"Count them","time":{"created":1000}}],"cursor":{}}}, + {"path":"/api/session/ses_t/inbox","json":{"data":[]}} + ], + "steps": [ + {"checkpoint":"empty","until":"Cache write","fixture":"P.8/sidebar-tokens/empty"}, + {"event":{"id":"evt_usage","created":3,"type":"session.usage.updated","location":{"directory":"/tmp/opencode/packages/tui"},"data":{"sessionID":"ses_t","cost":0.08,"tokens":{"input":22870,"output":100,"reasoning":0,"cache":{"read":0,"write":0}}}}}, + {"checkpoint":"totals","until":"22,870","fixture":"P.8/sidebar-tokens/totals"} + ], + "requests": { + "writes": [], + "reads": [ + {"method":"GET","path":"/api/agent","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":[]}}, + {"method":"GET","path":"/api/command","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":[]}}, + {"method":"GET","path":"/api/config","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":[]}, + {"method":"GET","path":"/api/experimental/job","query":{"descendants":["true"],"sessionID":["ses_t"],"status":["running"]},"status":200,"json":{"data":[]}}, + {"method":"GET","path":"/api/experimental/migration/v1","query":{},"status":200,"json":{"status":"completed"}}, + {"method":"GET","path":"/api/experimental/session/ses_t/terminal","query":{},"status":200,"json":{"data":[]}}, + {"method":"GET","path":"/api/form","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode"}},"data":[]}}, + {"method":"GET","path":"/api/fs/list","query":{"location[directory]":["<cwd>"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":[]}}, + {"method":"GET","path":"/api/info","query":{},"status":200,"json":{"version":"test","pid":0,"urls":[],"paths":{"tmp":"/tmp"},"capabilities":{"persistentPty":true}}}, + {"method":"GET","path":"/api/integration","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":[]}}, + {"method":"GET","path":"/api/location","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}}}, + {"method":"GET","path":"/api/mcp","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":[]}}, + {"method":"GET","path":"/api/mcp/resource","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":{"resources":[],"templates":[]}}}, + {"method":"GET","path":"/api/model","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":[]}}, + {"method":"GET","path":"/api/plugin","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":[]}}, + {"method":"GET","path":"/api/project","query":{},"status":200,"json":[]}, + {"method":"GET","path":"/api/provider","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":[]}}, + {"method":"GET","path":"/api/reference","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode/packages/tui","canonical":"/tmp/opencode/packages/tui"}},"data":[]}}, + {"method":"GET","path":"/api/session","query":{"limit":["200"],"order":["desc"],"parentID":["ses_t"]},"status":200,"json":{"data":[{"id":"ses_t","title":"Count the tokens","projectID":"proj_test","cost":0,"tokens":{"input":0,"output":0,"reasoning":0,"cache":{"read":0,"write":0}},"time":{"created":2,"updated":2},"location":{"directory":"/tmp/opencode/packages/tui"}}],"cursor":{}}}, + {"method":"GET","path":"/api/session/active","query":{},"status":200,"json":{"data":{}}}, + {"method":"GET","path":"/api/session/ses_t","query":{},"status":200,"json":{"data":{"id":"ses_t","title":"Count the tokens","projectID":"proj_test","cost":0,"tokens":{"input":0,"output":0,"reasoning":0,"cache":{"read":0,"write":0}},"time":{"created":2,"updated":2},"location":{"directory":"/tmp/opencode/packages/tui"}}}}, + {"method":"GET","path":"/api/session/ses_t/form","query":{},"status":200,"json":{"data":[]}}, + {"method":"GET","path":"/api/session/ses_t/inbox","query":{},"status":200,"json":{"data":[]}}, + {"method":"GET","path":"/api/session/ses_t/message","query":{"limit":["20"],"order":["desc"]},"status":200,"json":{"data":[{"id":"msg_2","type":"assistant","agent":"build","model":{"providerID":"provider","id":"model"},"content":[{"type":"text","text":"Counted."}],"finish":"stop","time":{"created":2000,"completed":2001}},{"id":"msg_1","type":"user","text":"Count them","time":{"created":1000}}],"cursor":{}}}, + {"method":"GET","path":"/api/session/ses_t/permission","query":{},"status":200,"json":{"data":[]}}, + {"method":"GET","path":"/api/shell","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":[]}}, + {"method":"GET","path":"/api/skill","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":[]}}, + {"method":"GET","path":"/api/vcs","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":{"branch":{"current":"main","default":"main"}}}}, + {"method":"POST","path":"/api/rpc/opencode.goal/get","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"body":{"input":{"sessionID":"ses_t"}},"status":200,"json":{"output":null}} + ] + } +} diff --git a/packages/cli-rs/parity/fixtures/P.8/sidebar-tokens/empty.json b/packages/cli-rs/parity/fixtures/P.8/sidebar-tokens/empty.json new file mode 100644 index 000000000000..2c885a3019d0 --- /dev/null +++ b/packages/cli-rs/parity/fixtures/P.8/sidebar-tokens/empty.json @@ -0,0 +1,36 @@ +{"width":140,"height":34,"styles":["#ffffffff #202020ff 0","#ffffffff #202020ff 1","#808080ff #080808ff 0","#ffffffff #080808ff 0","#ffffffff #141414ff 0","#7699feff #141414ff 0","#ffffffff #141414ff 1","#eeeeeeff #080808ff 0","#808080ff #141414ff 0","#7699feff #080808ff 0","#808080ff #202020ff 0","#484848ff #080808ff 0","#202020ff #080808ff 0"],"lines":[ +[" Count the tokens + ",[[0,3],[1,16],[0,13],[2,3],[3,105]]], +[" ",[[3,98],[4,42]]], +[" ┃ Count the tokens ",[[3,2],[5,1],[4,93],[3,2],[4,2],[6,16],[4,24]]], +[" ┃ Count them ",[[3,2],[5,1],[4,93],[3,2],[4,42]]], +[" ┃ ",[[3,2],[5,1],[4,93],[3,2],[4,42]]], +[" Session tokens ",[[3,98],[4,2],[6,14],[4,26]]], +[" Counted. Input 0 ",[[3,5],[7,8],[3,85],[4,2],[8,5],[4,35]]], +[" Output 0 ",[[3,98],[4,2],[8,6],[4,34]]], +[" Build · provider/model · 1.0s Cache read 0 ",[[3,5],[9,5],[2,24],[3,64],[4,2],[8,10],[4,30]]], +[" Cache write 0 ",[[3,98],[4,2],[8,11],[4,29]]], +[" ",[[3,98],[4,42]]], +[" ",[[3,98],[4,42]]], +[" ",[[3,98],[4,42]]], +[" ",[[3,98],[4,42]]], +[" ",[[3,98],[4,42]]], +[" ",[[3,98],[4,42]]], +[" ",[[3,98],[4,42]]], +[" ",[[3,98],[4,42]]], +[" ",[[3,98],[4,42]]], +[" ",[[3,98],[4,2],[0,38],[4,2]]], +[" ⬖ Getting started ✕ ",[[3,98],[4,2],[0,4],[1,15],[0,16],[10,1],[0,2],[4,2]]], +[" ",[[3,98],[4,2],[0,38],[4,2]]], +[" OpenCode includes free models so ",[[3,98],[4,2],[0,4],[10,32],[0,2],[4,2]]], +[" you can start immediately. ",[[3,98],[4,2],[0,4],[10,26],[0,8],[4,2]]], +[" ",[[3,98],[4,2],[0,38],[4,2]]], +[" Connect from 75+ providers to ",[[3,98],[4,2],[0,4],[10,30],[0,4],[4,2]]], +[" use other models, including ",[[3,98],[4,2],[0,4],[10,28],[0,6],[4,2]]], +[" ┃ Claude, GPT, Gemini etc ",[[3,2],[11,1],[0,93],[3,2],[4,2],[0,4],[10,23],[0,11],[4,2]]], +[" ┃ ",[[3,2],[11,1],[0,93],[3,2],[4,2],[0,38],[4,2]]], +[" ┃ Connect provider /connect ",[[3,2],[11,1],[0,93],[3,2],[4,2],[0,28],[10,8],[0,2],[4,2]]], +[" ┃ ",[[3,2],[11,1],[0,93],[3,2],[4,2],[0,38],[4,2]]], +[" ╹▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀ ",[[3,2],[11,1],[12,93],[3,2],[4,42]]], +[" /tmp/opencode/packages/tui:main shift+tab agents ctrl+p commands /tmp/opencode/packages/tui:main ",[[3,2],[2,31],[3,40],[2,6],[3,9],[2,8],[3,2],[4,2],[8,31],[4,9]]], +[" ",[[3,98],[4,42]]] +]} diff --git a/packages/cli-rs/parity/fixtures/P.8/sidebar-tokens/totals.json b/packages/cli-rs/parity/fixtures/P.8/sidebar-tokens/totals.json new file mode 100644 index 000000000000..6d1e0a3f9d93 --- /dev/null +++ b/packages/cli-rs/parity/fixtures/P.8/sidebar-tokens/totals.json @@ -0,0 +1,36 @@ +{"width":140,"height":34,"styles":["#ffffffff #202020ff 0","#ffffffff #202020ff 1","#808080ff #080808ff 0","#ffffffff #080808ff 0","#ffffffff #141414ff 0","#7699feff #141414ff 0","#ffffffff #141414ff 1","#808080ff #141414ff 0","#eeeeeeff #080808ff 0","#7699feff #080808ff 0","#808080ff #202020ff 0","#484848ff #080808ff 0","#202020ff #080808ff 0"],"lines":[ +[" Count the tokens + ",[[0,3],[1,16],[0,13],[2,3],[3,105]]], +[" ",[[3,98],[4,42]]], +[" ┃ Count the tokens ",[[3,2],[5,1],[4,93],[3,2],[4,2],[6,16],[4,24]]], +[" ┃ Count them ",[[3,2],[5,1],[4,93],[3,2],[4,42]]], +[" ┃ Context ",[[3,2],[5,1],[4,93],[3,2],[4,2],[6,7],[4,33]]], +[" $0.08 spent ",[[3,98],[4,2],[7,11],[4,29]]], +[" Counted. ",[[3,5],[8,8],[3,85],[4,42]]], +[" ",[[3,98],[4,42]]], +[" Build · provider/model · 1.0s Session tokens ",[[3,5],[9,5],[2,24],[3,64],[4,2],[6,14],[4,26]]], +[" Input 22,870 ",[[3,98],[4,2],[7,5],[4,35]]], +[" Output 100 ",[[3,98],[4,2],[7,6],[4,34]]], +[" Cache read 0 ",[[3,98],[4,2],[7,10],[4,30]]], +[" Cache write 0 ",[[3,98],[4,2],[7,11],[4,29]]], +[" ",[[3,98],[4,42]]], +[" ",[[3,98],[4,42]]], +[" ",[[3,98],[4,42]]], +[" ",[[3,98],[4,42]]], +[" ",[[3,98],[4,42]]], +[" ",[[3,98],[4,42]]], +[" ",[[3,98],[4,2],[0,38],[4,2]]], +[" ⬖ Getting started ✕ ",[[3,98],[4,2],[0,4],[1,15],[0,16],[10,1],[0,2],[4,2]]], +[" ",[[3,98],[4,2],[0,38],[4,2]]], +[" OpenCode includes free models so ",[[3,98],[4,2],[0,4],[10,32],[0,2],[4,2]]], +[" you can start immediately. ",[[3,98],[4,2],[0,4],[10,26],[0,8],[4,2]]], +[" ",[[3,98],[4,2],[0,38],[4,2]]], +[" Connect from 75+ providers to ",[[3,98],[4,2],[0,4],[10,30],[0,4],[4,2]]], +[" use other models, including ",[[3,98],[4,2],[0,4],[10,28],[0,6],[4,2]]], +[" ┃ Claude, GPT, Gemini etc ",[[3,2],[11,1],[0,93],[3,2],[4,2],[0,4],[10,23],[0,11],[4,2]]], +[" ┃ ",[[3,2],[11,1],[0,93],[3,2],[4,2],[0,38],[4,2]]], +[" ┃ Connect provider /connect ",[[3,2],[11,1],[0,93],[3,2],[4,2],[0,28],[10,8],[0,2],[4,2]]], +[" ┃ ",[[3,2],[11,1],[0,93],[3,2],[4,2],[0,38],[4,2]]], +[" ╹▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀ ",[[3,2],[11,1],[12,93],[3,2],[4,42]]], +[" /tmp/opencode/packages/tui:main $0.08 ctrl+p commands /tmp/opencode/packages/tui:main ",[[3,2],[2,31],[3,41],[2,5],[3,9],[2,8],[3,2],[4,2],[7,31],[4,9]]], +[" ",[[3,98],[4,42]]] +]} diff --git a/packages/cli-rs/parity/fixtures/P.8/skills-data.app.json b/packages/cli-rs/parity/fixtures/P.8/skills-data.app.json new file mode 100644 index 000000000000..1fb60b8fd479 --- /dev/null +++ b/packages/cli-rs/parity/fixtures/P.8/skills-data.app.json @@ -0,0 +1,64 @@ +{ + "scenario": "P.8/skills-data", + "width": 140, + "height": 34, + "directory": "/tmp/opencode/packages/tui", + "config": { + "experimental": {"new-designs":true}, + "plugins": ["./out/npm/node_modules/opencode-skills-tui"], + "animations": false, + "theme": {"name":"opencode"} + }, + "args": { + "sessionID": "ses_k" + }, + "env": { + "OPENCODE_PARITY_PLUGIN": "npm" + }, + "routes": [ + {"path":"/api/session/ses_k","json":{"data":{"id":"ses_k","title":"Use the skills","projectID":"proj_test","cost":0,"tokens":{"input":0,"output":0,"reasoning":0,"cache":{"read":0,"write":0}},"time":{"created":2,"updated":2},"location":{"directory":"/tmp/opencode/packages/tui"}}}}, + {"path":"/api/session","json":{"data":[{"id":"ses_k","title":"Use the skills","projectID":"proj_test","cost":0,"tokens":{"input":0,"output":0,"reasoning":0,"cache":{"read":0,"write":0}},"time":{"created":2,"updated":2},"location":{"directory":"/tmp/opencode/packages/tui"}}],"cursor":{}}}, + {"path":"/api/session/ses_k/message","json":{"data":[{"id":"msg_2","type":"assistant","agent":"build","model":{"providerID":"provider","id":"model"},"content":[{"type":"text","text":"Used."}],"finish":"stop","time":{"created":2000,"completed":2001}},{"id":"msg_1","type":"user","text":"Use them","time":{"created":1000}}],"cursor":{}}}, + {"path":"/api/session/ses_k/inbox","json":{"data":[]}}, + {"path":"/api/agent","json":{"location":{"directory":"/tmp/opencode/packages/tui"},"data":[{"id":"build","name":"build","mode":"primary","hidden":false,"permissions":[],"request":{"settings":{},"headers":{},"body":{}}}]}}, + {"path":"/api/skill","json":{"location":{"directory":"/tmp/opencode/packages/tui"},"data":[{"id":"release-notes","name":"release-notes","description":"Write the release notes","path":"/tmp/opencode/.opencode/skill/release-notes/SKILL.md","location":"project"},{"id":"triage","name":"triage","description":"Triage the issue queue","path":"/tmp/opencode/.opencode/skill/triage/SKILL.md","location":"project"}]}} + ], + "steps": [ + {"checkpoint":"skills","until":"triage","fixture":"P.8/skills-data/skills"} + ], + "requests": { + "writes": [], + "reads": [ + {"method":"GET","path":"/api/agent","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui"},"data":[{"id":"build","name":"build","mode":"primary","hidden":false,"permissions":[],"request":{"settings":{},"headers":{},"body":{}}}]}}, + {"method":"GET","path":"/api/command","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":[]}}, + {"method":"GET","path":"/api/config","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":[]}, + {"method":"GET","path":"/api/experimental/job","query":{"descendants":["true"],"sessionID":["ses_k"],"status":["running"]},"status":200,"json":{"data":[]}}, + {"method":"GET","path":"/api/experimental/migration/v1","query":{},"status":200,"json":{"status":"completed"}}, + {"method":"GET","path":"/api/experimental/session/ses_k/terminal","query":{},"status":200,"json":{"data":[]}}, + {"method":"GET","path":"/api/form","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode"}},"data":[]}}, + {"method":"GET","path":"/api/fs/list","query":{"location[directory]":["<cwd>"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":[]}}, + {"method":"GET","path":"/api/info","query":{},"status":200,"json":{"version":"test","pid":0,"urls":[],"paths":{"tmp":"/tmp"},"capabilities":{"persistentPty":true}}}, + {"method":"GET","path":"/api/integration","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":[]}}, + {"method":"GET","path":"/api/location","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}}}, + {"method":"GET","path":"/api/mcp","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":[]}}, + {"method":"GET","path":"/api/mcp/resource","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":{"resources":[],"templates":[]}}}, + {"method":"GET","path":"/api/model","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":[]}}, + {"method":"GET","path":"/api/plugin","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":[]}}, + {"method":"GET","path":"/api/project","query":{},"status":200,"json":[]}, + {"method":"GET","path":"/api/provider","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":[]}}, + {"method":"GET","path":"/api/reference","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode/packages/tui","canonical":"/tmp/opencode/packages/tui"}},"data":[]}}, + {"method":"GET","path":"/api/session","query":{"limit":["200"],"order":["desc"],"parentID":["ses_k"]},"status":200,"json":{"data":[{"id":"ses_k","title":"Use the skills","projectID":"proj_test","cost":0,"tokens":{"input":0,"output":0,"reasoning":0,"cache":{"read":0,"write":0}},"time":{"created":2,"updated":2},"location":{"directory":"/tmp/opencode/packages/tui"}}],"cursor":{}}}, + {"method":"GET","path":"/api/session/active","query":{},"status":200,"json":{"data":{}}}, + {"method":"GET","path":"/api/session/ses_k","query":{},"status":200,"json":{"data":{"id":"ses_k","title":"Use the skills","projectID":"proj_test","cost":0,"tokens":{"input":0,"output":0,"reasoning":0,"cache":{"read":0,"write":0}},"time":{"created":2,"updated":2},"location":{"directory":"/tmp/opencode/packages/tui"}}}}, + {"method":"GET","path":"/api/session/ses_k/form","query":{},"status":200,"json":{"data":[]}}, + {"method":"GET","path":"/api/session/ses_k/inbox","query":{},"status":200,"json":{"data":[]}}, + {"method":"GET","path":"/api/session/ses_k/message","query":{"limit":["20"],"order":["desc"]},"status":200,"json":{"data":[{"id":"msg_2","type":"assistant","agent":"build","model":{"providerID":"provider","id":"model"},"content":[{"type":"text","text":"Used."}],"finish":"stop","time":{"created":2000,"completed":2001}},{"id":"msg_1","type":"user","text":"Use them","time":{"created":1000}}],"cursor":{}}}, + {"method":"GET","path":"/api/session/ses_k/message","query":{"limit":["200"],"order":["desc"]},"status":200,"json":{"data":[{"id":"msg_2","type":"assistant","agent":"build","model":{"providerID":"provider","id":"model"},"content":[{"type":"text","text":"Used."}],"finish":"stop","time":{"created":2000,"completed":2001}},{"id":"msg_1","type":"user","text":"Use them","time":{"created":1000}}],"cursor":{}}}, + {"method":"GET","path":"/api/session/ses_k/permission","query":{},"status":200,"json":{"data":[]}}, + {"method":"GET","path":"/api/shell","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":[]}}, + {"method":"GET","path":"/api/skill","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui"},"data":[{"id":"release-notes","name":"release-notes","description":"Write the release notes","path":"/tmp/opencode/.opencode/skill/release-notes/SKILL.md","location":"project"},{"id":"triage","name":"triage","description":"Triage the issue queue","path":"/tmp/opencode/.opencode/skill/triage/SKILL.md","location":"project"}]}}, + {"method":"GET","path":"/api/vcs","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":{"branch":{"current":"main","default":"main"}}}}, + {"method":"POST","path":"/api/rpc/opencode.goal/get","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"body":{"input":{"sessionID":"ses_k"}},"status":200,"json":{"output":null}} + ] + } +} diff --git a/packages/cli-rs/parity/fixtures/P.8/skills-data/skills.json b/packages/cli-rs/parity/fixtures/P.8/skills-data/skills.json new file mode 100644 index 000000000000..cad2019db3b7 --- /dev/null +++ b/packages/cli-rs/parity/fixtures/P.8/skills-data/skills.json @@ -0,0 +1,36 @@ +{"width":140,"height":34,"styles":["#ffffffff #202020ff 0","#ffffffff #202020ff 1","#808080ff #080808ff 0","#ffffffff #080808ff 0","#ffffffff #141414ff 0","#7699feff #141414ff 0","#ffffffff #141414ff 1","#808080ff #141414ff 0","#eeeeeeff #080808ff 0","#7699feff #080808ff 0","#808080ff #202020ff 0","#7699feff #202020ff 0","#202020ff #080808ff 0"],"lines":[ +[" Use the skills + ",[[0,3],[1,14],[0,15],[2,3],[3,105]]], +[" ",[[3,98],[4,42]]], +[" ┃ Use the skills ",[[3,2],[5,1],[4,93],[3,2],[4,2],[6,14],[4,26]]], +[" ┃ Use them ",[[3,2],[5,1],[4,93],[3,2],[4,42]]], +[" ┃ ▼ Skills (0 loaded · 2 visible) ",[[3,2],[5,1],[4,93],[3,2],[4,4],[6,6],[4,1],[7,22],[4,9]]], +[" • release-notes ",[[3,98],[4,42]]], +[" Used. • triage ",[[3,5],[8,5],[3,88],[4,42]]], +[" ",[[3,98],[4,42]]], +[" Build · provider/model · 1.0s ",[[3,5],[9,5],[2,24],[3,64],[4,42]]], +[" ",[[3,98],[4,42]]], +[" ",[[3,98],[4,42]]], +[" ",[[3,98],[4,42]]], +[" ",[[3,98],[4,42]]], +[" ",[[3,98],[4,42]]], +[" ",[[3,98],[4,42]]], +[" ",[[3,98],[4,42]]], +[" ",[[3,98],[4,42]]], +[" ",[[3,98],[4,42]]], +[" ",[[3,98],[4,42]]], +[" ",[[3,98],[4,2],[0,38],[4,2]]], +[" ⬖ Getting started ✕ ",[[3,98],[4,2],[0,4],[1,15],[0,16],[10,1],[0,2],[4,2]]], +[" ",[[3,98],[4,2],[0,38],[4,2]]], +[" OpenCode includes free models so ",[[3,98],[4,2],[0,4],[10,32],[0,2],[4,2]]], +[" you can start immediately. ",[[3,98],[4,2],[0,4],[10,26],[0,8],[4,2]]], +[" ",[[3,98],[4,2],[0,38],[4,2]]], +[" Connect from 75+ providers to ",[[3,98],[4,2],[0,4],[10,30],[0,4],[4,2]]], +[" use other models, including ",[[3,98],[4,2],[0,4],[10,28],[0,6],[4,2]]], +[" ┃ Claude, GPT, Gemini etc ",[[3,2],[9,1],[0,93],[3,2],[4,2],[0,4],[10,23],[0,11],[4,2]]], +[" ┃ ",[[3,2],[9,1],[0,93],[3,2],[4,2],[0,38],[4,2]]], +[" ┃ Connect provider /connect ",[[3,2],[9,1],[0,93],[3,2],[4,2],[0,28],[10,8],[0,2],[4,2]]], +[" ┃ Build · No provider selected Connect a provider ",[[3,2],[9,1],[0,2],[11,5],[0,1],[10,1],[0,22],[10,18],[0,44],[3,2],[4,2],[0,38],[4,2]]], +[" ╹▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀ ",[[3,2],[9,1],[12,93],[3,2],[4,42]]], +[" /tmp/opencode/packages/tui:main shift+tab agents ctrl+p commands /tmp/opencode/packages/tui:main ",[[3,2],[2,31],[3,40],[2,6],[3,9],[2,8],[3,2],[4,2],[7,31],[4,9]]], +[" ",[[3,98],[4,42]]] +]} diff --git a/packages/cli-rs/parity/fixtures/P.8/subagents.app.json b/packages/cli-rs/parity/fixtures/P.8/subagents.app.json new file mode 100644 index 000000000000..28a0650da335 --- /dev/null +++ b/packages/cli-rs/parity/fixtures/P.8/subagents.app.json @@ -0,0 +1,65 @@ +{ + "scenario": "P.8/subagents", + "width": 140, + "height": 34, + "directory": "/tmp/opencode/packages/tui", + "config": { + "experimental": {"new-designs":true}, + "plugins": ["./out/npm/node_modules/opencode-subagents-sidebar"], + "animations": false, + "theme": {"name":"opencode"} + }, + "args": { + "sessionID": "ses_s" + }, + "env": { + "OPENCODE_PARITY_PLUGIN": "npm" + }, + "routes": [ + {"path":"/api/session/ses_s","json":{"data":{"id":"ses_s","title":"Plan the release","projectID":"proj_test","cost":0,"tokens":{"input":0,"output":0,"reasoning":0,"cache":{"read":0,"write":0}},"time":{"created":5,"updated":5},"location":{"directory":"/tmp/opencode/packages/tui"}}}}, + {"path":"/api/session","json":{"data":[{"id":"ses_s","title":"Plan the release","projectID":"proj_test","cost":0,"tokens":{"input":0,"output":0,"reasoning":0,"cache":{"read":0,"write":0}},"time":{"created":5,"updated":5},"location":{"directory":"/tmp/opencode/packages/tui"}},{"id":"ses_c1","title":"Write the changelog","projectID":"proj_test","cost":0,"tokens":{"input":0,"output":0,"reasoning":0,"cache":{"read":0,"write":0}},"time":{"created":4,"updated":4},"location":{"directory":"/tmp/opencode/packages/tui"},"parentID":"ses_s"},{"id":"ses_c2","title":"Tag the release","projectID":"proj_test","cost":0,"tokens":{"input":0,"output":0,"reasoning":0,"cache":{"read":0,"write":0}},"time":{"created":3,"updated":3},"location":{"directory":"/tmp/opencode/packages/tui"},"parentID":"ses_s"}],"cursor":{}}}, + {"path":"/api/session/ses_s/message","json":{"data":[{"id":"msg_1","type":"user","text":"Plan it","time":{"created":1}}],"cursor":{}}}, + {"path":"/api/session/ses_s/inbox","json":{"data":[]}} + ], + "steps": [ + {"checkpoint":"listed","until":"Subagents","fixture":"P.8/subagents/listed"} + ], + "requests": { + "writes": [], + "reads": [ + {"method":"GET","path":"/api/agent","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":[]}}, + {"method":"GET","path":"/api/command","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":[]}}, + {"method":"GET","path":"/api/config","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":[]}, + {"method":"GET","path":"/api/experimental/job","query":{"descendants":["true"],"sessionID":["ses_s"],"status":["running"]},"status":200,"json":{"data":[]}}, + {"method":"GET","path":"/api/experimental/migration/v1","query":{},"status":200,"json":{"status":"completed"}}, + {"method":"GET","path":"/api/experimental/session/ses_s/terminal","query":{},"status":200,"json":{"data":[]}}, + {"method":"GET","path":"/api/form","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode"}},"data":[]}}, + {"method":"GET","path":"/api/fs/list","query":{"location[directory]":["<cwd>"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":[]}}, + {"method":"GET","path":"/api/info","query":{},"status":200,"json":{"version":"test","pid":0,"urls":[],"paths":{"tmp":"/tmp"},"capabilities":{"persistentPty":true}}}, + {"method":"GET","path":"/api/integration","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":[]}}, + {"method":"GET","path":"/api/location","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}}}, + {"method":"GET","path":"/api/mcp","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":[]}}, + {"method":"GET","path":"/api/mcp/resource","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":{"resources":[],"templates":[]}}}, + {"method":"GET","path":"/api/model","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":[]}}, + {"method":"GET","path":"/api/plugin","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":[]}}, + {"method":"GET","path":"/api/project","query":{},"status":200,"json":[]}, + {"method":"GET","path":"/api/provider","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":[]}}, + {"method":"GET","path":"/api/reference","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode/packages/tui","canonical":"/tmp/opencode/packages/tui"}},"data":[]}}, + {"method":"GET","path":"/api/session","query":{"limit":["200"],"order":["desc"],"parentID":["ses_s"]},"status":200,"json":{"data":[{"id":"ses_s","title":"Plan the release","projectID":"proj_test","cost":0,"tokens":{"input":0,"output":0,"reasoning":0,"cache":{"read":0,"write":0}},"time":{"created":5,"updated":5},"location":{"directory":"/tmp/opencode/packages/tui"}},{"id":"ses_c1","title":"Write the changelog","projectID":"proj_test","cost":0,"tokens":{"input":0,"output":0,"reasoning":0,"cache":{"read":0,"write":0}},"time":{"created":4,"updated":4},"location":{"directory":"/tmp/opencode/packages/tui"},"parentID":"ses_s"},{"id":"ses_c2","title":"Tag the release","projectID":"proj_test","cost":0,"tokens":{"input":0,"output":0,"reasoning":0,"cache":{"read":0,"write":0}},"time":{"created":3,"updated":3},"location":{"directory":"/tmp/opencode/packages/tui"},"parentID":"ses_s"}],"cursor":{}}}, + {"method":"GET","path":"/api/session/active","query":{},"status":200,"json":{"data":{}}}, + {"method":"GET","path":"/api/session/ses_c1/form","query":{},"status":200,"json":{"data":[]}}, + {"method":"GET","path":"/api/session/ses_c1/permission","query":{},"status":200,"json":{"data":[]}}, + {"method":"GET","path":"/api/session/ses_c2/form","query":{},"status":200,"json":{"data":[]}}, + {"method":"GET","path":"/api/session/ses_c2/permission","query":{},"status":200,"json":{"data":[]}}, + {"method":"GET","path":"/api/session/ses_s","query":{},"status":200,"json":{"data":{"id":"ses_s","title":"Plan the release","projectID":"proj_test","cost":0,"tokens":{"input":0,"output":0,"reasoning":0,"cache":{"read":0,"write":0}},"time":{"created":5,"updated":5},"location":{"directory":"/tmp/opencode/packages/tui"}}}}, + {"method":"GET","path":"/api/session/ses_s/form","query":{},"status":200,"json":{"data":[]}}, + {"method":"GET","path":"/api/session/ses_s/inbox","query":{},"status":200,"json":{"data":[]}}, + {"method":"GET","path":"/api/session/ses_s/message","query":{"limit":["20"],"order":["desc"]},"status":200,"json":{"data":[{"id":"msg_1","type":"user","text":"Plan it","time":{"created":1}}],"cursor":{}}}, + {"method":"GET","path":"/api/session/ses_s/permission","query":{},"status":200,"json":{"data":[]}}, + {"method":"GET","path":"/api/shell","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":[]}}, + {"method":"GET","path":"/api/skill","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":[]}}, + {"method":"GET","path":"/api/vcs","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":{"branch":{"current":"main","default":"main"}}}}, + {"method":"POST","path":"/api/rpc/opencode.goal/get","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"body":{"input":{"sessionID":"ses_s"}},"status":200,"json":{"output":null}} + ] + } +} diff --git a/packages/cli-rs/parity/fixtures/P.8/subagents/listed.json b/packages/cli-rs/parity/fixtures/P.8/subagents/listed.json new file mode 100644 index 000000000000..18f61a3f45da --- /dev/null +++ b/packages/cli-rs/parity/fixtures/P.8/subagents/listed.json @@ -0,0 +1,36 @@ +{"width":140,"height":34,"styles":["#ffffffff #202020ff 0","#ffffffff #202020ff 1","#808080ff #080808ff 0","#ffffffff #080808ff 0","#ffffffff #141414ff 0","#7699feff #141414ff 0","#ffffffff #141414ff 1","#808080ff #141414ff 0","#808080ff #202020ff 0","#484848ff #080808ff 0","#202020ff #080808ff 0"],"lines":[ +[" Plan the release + ",[[0,3],[1,16],[0,13],[2,3],[3,105]]], +[" ",[[3,98],[4,42]]], +[" ┃ Plan the release ",[[3,2],[5,1],[4,93],[3,2],[4,2],[6,16],[4,24]]], +[" ┃ Plan it ",[[3,2],[5,1],[4,93],[3,2],[4,42]]], +[" ┃ ▼ Subagents ",[[3,2],[5,1],[4,93],[3,2],[4,4],[6,9],[4,29]]], +[" • Write the changelog done ",[[3,98],[4,2],[7,1],[4,32],[7,4],[4,3]]], +[" • Tag the release done ",[[3,98],[4,2],[7,1],[4,32],[7,4],[4,3]]], +[" ",[[3,98],[4,42]]], +[" ",[[3,98],[4,42]]], +[" ",[[3,98],[4,42]]], +[" ",[[3,98],[4,42]]], +[" ",[[3,98],[4,42]]], +[" ",[[3,98],[4,42]]], +[" ",[[3,98],[4,42]]], +[" ",[[3,98],[4,42]]], +[" ",[[3,98],[4,42]]], +[" ",[[3,98],[4,42]]], +[" ",[[3,98],[4,42]]], +[" ",[[3,98],[4,42]]], +[" ",[[3,98],[4,2],[0,38],[4,2]]], +[" ⬖ Getting started ✕ ",[[3,98],[4,2],[0,4],[1,15],[0,16],[8,1],[0,2],[4,2]]], +[" ",[[3,98],[4,2],[0,38],[4,2]]], +[" OpenCode includes free models so ",[[3,98],[4,2],[0,4],[8,32],[0,2],[4,2]]], +[" you can start immediately. ",[[3,98],[4,2],[0,4],[8,26],[0,8],[4,2]]], +[" ",[[3,98],[4,2],[0,38],[4,2]]], +[" Connect from 75+ providers to ",[[3,98],[4,2],[0,4],[8,30],[0,4],[4,2]]], +[" use other models, including ",[[3,98],[4,2],[0,4],[8,28],[0,6],[4,2]]], +[" ┃ Claude, GPT, Gemini etc ",[[3,2],[9,1],[0,93],[3,2],[4,2],[0,4],[8,23],[0,11],[4,2]]], +[" ┃ ",[[3,2],[9,1],[0,93],[3,2],[4,2],[0,38],[4,2]]], +[" ┃ Connect provider /connect ",[[3,2],[9,1],[0,93],[3,2],[4,2],[0,28],[8,8],[0,2],[4,2]]], +[" ┃ ",[[3,2],[9,1],[0,93],[3,2],[4,2],[0,38],[4,2]]], +[" ╹▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀ ",[[3,2],[9,1],[10,93],[3,2],[4,42]]], +[" /tmp/opencode/packages/tui:main shift+tab agents ctrl+p commands /tmp/opencode/packages/tui:main ",[[3,2],[2,31],[3,40],[2,6],[3,9],[2,8],[3,2],[4,2],[7,31],[4,9]]], +[" ",[[3,98],[4,42]]] +]} diff --git a/packages/cli-rs/parity/fixtures/P.8/tavily-surface.app.json b/packages/cli-rs/parity/fixtures/P.8/tavily-surface.app.json new file mode 100644 index 000000000000..b7b5886871d0 --- /dev/null +++ b/packages/cli-rs/parity/fixtures/P.8/tavily-surface.app.json @@ -0,0 +1,69 @@ +{ + "scenario": "P.8/tavily-surface", + "width": 140, + "height": 34, + "directory": "/tmp/opencode/packages/tui", + "config": { + "plugins": ["./out/npm/node_modules/@joe-broadhead/opencode-tavily"], + "animations": false, + "experimental": {"new-designs":true}, + "theme": {"name":"opencode"} + }, + "args": { + "sessionID": "ses_t" + }, + "env": { + "OPENCODE_PARITY_PLUGIN": "npm" + }, + "routes": [ + {"path":"/api/session/ses_t","json":{"data":{"id":"ses_t","title":"Search the web","projectID":"proj_test","cost":0,"tokens":{"input":0,"output":0,"reasoning":0,"cache":{"read":0,"write":0}},"time":{"created":2,"updated":2},"location":{"directory":"/tmp/opencode/packages/tui"}}}}, + {"path":"/api/session","json":{"data":[{"id":"ses_t","title":"Search the web","projectID":"proj_test","cost":0,"tokens":{"input":0,"output":0,"reasoning":0,"cache":{"read":0,"write":0}},"time":{"created":2,"updated":2},"location":{"directory":"/tmp/opencode/packages/tui"}}],"cursor":{}}}, + {"path":"/api/session/ses_t/message","json":{"data":[{"id":"msg_2","type":"assistant","agent":"build","model":{"providerID":"provider","id":"model"},"content":[{"type":"text","text":"Searched."}],"finish":"stop","time":{"created":2000,"completed":2001}},{"id":"msg_1","type":"user","text":"Search it","time":{"created":1000}}],"cursor":{}}}, + {"path":"/api/session/ses_t/inbox","json":{"data":[]}}, + {"method":"POST","path":"/api/rpc/tavily.web/status","status":404,"json":{"_tag":"NotFound","message":"no such RPC"}}, + {"path":"/api/location","json":{"directory":"/tmp/opencode/packages/tui"}} + ], + "steps": [ + {"checkpoint":"session","until":"Searched.","fixture":"P.8/tavily-surface/session"}, + {"type":"/tavily"}, + {"checkpoint":"slash","until":"Show Tavily","fixture":"P.8/tavily-surface/slash"}, + {"keys":["enter"]}, + {"checkpoint":"status","until":"no such RPC","fixture":"P.8/tavily-surface/status"} + ], + "requests": { + "writes": [ + {"method":"POST","path":"/api/rpc/tavily.web/status","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"body":{"input":{}},"status":404,"json":{"_tag":"NotFound","message":"no such RPC"}} + ], + "reads": [ + {"method":"GET","path":"/api/agent","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":[]}}, + {"method":"GET","path":"/api/command","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":[]}}, + {"method":"GET","path":"/api/config","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":[]}, + {"method":"GET","path":"/api/experimental/job","query":{"descendants":["true"],"sessionID":["ses_t"],"status":["running"]},"status":200,"json":{"data":[]}}, + {"method":"GET","path":"/api/experimental/migration/v1","query":{},"status":200,"json":{"status":"completed"}}, + {"method":"GET","path":"/api/experimental/session/ses_t/terminal","query":{},"status":200,"json":{"data":[]}}, + {"method":"GET","path":"/api/form","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode"}},"data":[]}}, + {"method":"GET","path":"/api/fs/list","query":{"location[directory]":["<cwd>"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":[]}}, + {"method":"GET","path":"/api/info","query":{},"status":200,"json":{"version":"test","pid":0,"urls":[],"paths":{"tmp":"/tmp"},"capabilities":{"persistentPty":true}}}, + {"method":"GET","path":"/api/integration","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":[]}}, + {"method":"GET","path":"/api/location","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"directory":"/tmp/opencode/packages/tui"}}, + {"method":"GET","path":"/api/mcp","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":[]}}, + {"method":"GET","path":"/api/mcp/resource","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":{"resources":[],"templates":[]}}}, + {"method":"GET","path":"/api/model","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":[]}}, + {"method":"GET","path":"/api/plugin","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":[]}}, + {"method":"GET","path":"/api/project","query":{},"status":200,"json":[]}, + {"method":"GET","path":"/api/provider","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":[]}}, + {"method":"GET","path":"/api/reference","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode/packages/tui","canonical":"/tmp/opencode/packages/tui"}},"data":[]}}, + {"method":"GET","path":"/api/session","query":{"limit":["200"],"order":["desc"],"parentID":["ses_t"]},"status":200,"json":{"data":[{"id":"ses_t","title":"Search the web","projectID":"proj_test","cost":0,"tokens":{"input":0,"output":0,"reasoning":0,"cache":{"read":0,"write":0}},"time":{"created":2,"updated":2},"location":{"directory":"/tmp/opencode/packages/tui"}}],"cursor":{}}}, + {"method":"GET","path":"/api/session/active","query":{},"status":200,"json":{"data":{}}}, + {"method":"GET","path":"/api/session/ses_t","query":{},"status":200,"json":{"data":{"id":"ses_t","title":"Search the web","projectID":"proj_test","cost":0,"tokens":{"input":0,"output":0,"reasoning":0,"cache":{"read":0,"write":0}},"time":{"created":2,"updated":2},"location":{"directory":"/tmp/opencode/packages/tui"}}}}, + {"method":"GET","path":"/api/session/ses_t/form","query":{},"status":200,"json":{"data":[]}}, + {"method":"GET","path":"/api/session/ses_t/inbox","query":{},"status":200,"json":{"data":[]}}, + {"method":"GET","path":"/api/session/ses_t/message","query":{"limit":["20"],"order":["desc"]},"status":200,"json":{"data":[{"id":"msg_2","type":"assistant","agent":"build","model":{"providerID":"provider","id":"model"},"content":[{"type":"text","text":"Searched."}],"finish":"stop","time":{"created":2000,"completed":2001}},{"id":"msg_1","type":"user","text":"Search it","time":{"created":1000}}],"cursor":{}}}, + {"method":"GET","path":"/api/session/ses_t/permission","query":{},"status":200,"json":{"data":[]}}, + {"method":"GET","path":"/api/shell","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":[]}}, + {"method":"GET","path":"/api/skill","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":[]}}, + {"method":"GET","path":"/api/vcs","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":{"branch":{"current":"main","default":"main"}}}}, + {"method":"POST","path":"/api/rpc/opencode.goal/get","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"body":{"input":{"sessionID":"ses_t"}},"status":200,"json":{"output":null}} + ] + } +} diff --git a/packages/cli-rs/parity/fixtures/P.8/tavily-surface/session.json b/packages/cli-rs/parity/fixtures/P.8/tavily-surface/session.json new file mode 100644 index 000000000000..5685ea0cbb40 --- /dev/null +++ b/packages/cli-rs/parity/fixtures/P.8/tavily-surface/session.json @@ -0,0 +1,36 @@ +{"width":140,"height":34,"styles":["#ffffffff #202020ff 0","#ffffffff #202020ff 1","#808080ff #080808ff 0","#ffffffff #080808ff 0","#ffffffff #141414ff 0","#7699feff #141414ff 0","#ffffffff #141414ff 1","#eeeeeeff #080808ff 0","#7699feff #080808ff 0","#808080ff #202020ff 0","#484848ff #080808ff 0","#202020ff #080808ff 0","#808080ff #141414ff 0"],"lines":[ +[" Search the web + ",[[0,3],[1,14],[0,15],[2,3],[3,105]]], +[" ",[[3,98],[4,42]]], +[" ┃ Search the web ",[[3,2],[5,1],[4,93],[3,2],[4,2],[6,14],[4,26]]], +[" ┃ Search it ",[[3,2],[5,1],[4,93],[3,2],[4,42]]], +[" ┃ ",[[3,2],[5,1],[4,93],[3,2],[4,42]]], +[" ",[[3,98],[4,42]]], +[" Searched. ",[[3,5],[7,9],[3,84],[4,42]]], +[" ",[[3,98],[4,42]]], +[" Build · provider/model · 1.0s ",[[3,5],[8,5],[2,24],[3,64],[4,42]]], +[" ",[[3,98],[4,42]]], +[" ",[[3,98],[4,42]]], +[" ",[[3,98],[4,42]]], +[" ",[[3,98],[4,42]]], +[" ",[[3,98],[4,42]]], +[" ",[[3,98],[4,42]]], +[" ",[[3,98],[4,42]]], +[" ",[[3,98],[4,42]]], +[" ",[[3,98],[4,42]]], +[" ",[[3,98],[4,42]]], +[" ",[[3,98],[4,2],[0,38],[4,2]]], +[" ⬖ Getting started ✕ ",[[3,98],[4,2],[0,4],[1,15],[0,16],[9,1],[0,2],[4,2]]], +[" ",[[3,98],[4,2],[0,38],[4,2]]], +[" OpenCode includes free models so ",[[3,98],[4,2],[0,4],[9,32],[0,2],[4,2]]], +[" you can start immediately. ",[[3,98],[4,2],[0,4],[9,26],[0,8],[4,2]]], +[" ",[[3,98],[4,2],[0,38],[4,2]]], +[" Connect from 75+ providers to ",[[3,98],[4,2],[0,4],[9,30],[0,4],[4,2]]], +[" use other models, including ",[[3,98],[4,2],[0,4],[9,28],[0,6],[4,2]]], +[" ┃ Claude, GPT, Gemini etc ",[[3,2],[10,1],[0,93],[3,2],[4,2],[0,4],[9,23],[0,11],[4,2]]], +[" ┃ ",[[3,2],[10,1],[0,93],[3,2],[4,2],[0,38],[4,2]]], +[" ┃ Connect provider /connect ",[[3,2],[10,1],[0,93],[3,2],[4,2],[0,28],[9,8],[0,2],[4,2]]], +[" ┃ ",[[3,2],[10,1],[0,93],[3,2],[4,2],[0,38],[4,2]]], +[" ╹▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀ ",[[3,2],[10,1],[11,93],[3,2],[4,42]]], +[" /tmp/opencode/packages/tui:main shift+tab agents ctrl+p commands /tmp/opencode/packages/tui:main ",[[3,2],[2,31],[3,40],[2,6],[3,9],[2,8],[3,2],[4,2],[12,31],[4,9]]], +[" ",[[3,98],[4,42]]] +]} diff --git a/packages/cli-rs/parity/fixtures/P.8/tavily-surface/slash.json b/packages/cli-rs/parity/fixtures/P.8/tavily-surface/slash.json new file mode 100644 index 000000000000..4c3fb9687e2c --- /dev/null +++ b/packages/cli-rs/parity/fixtures/P.8/tavily-surface/slash.json @@ -0,0 +1,36 @@ +{"width":140,"height":34,"styles":["#ffffffff #202020ff 0","#ffffffff #202020ff 1","#808080ff #080808ff 0","#ffffffff #080808ff 0","#ffffffff #141414ff 0","#7699feff #141414ff 0","#ffffffff #141414ff 1","#eeeeeeff #080808ff 0","#7699feff #080808ff 0","#808080ff #202020ff 0","#ffffffff #23344bff 0","#484848ff #080808ff 0","#202020ff #080808ff 0","#808080ff #141414ff 0"],"lines":[ +[" Search the web + ",[[0,3],[1,14],[0,15],[2,3],[3,105]]], +[" ",[[3,98],[4,42]]], +[" ┃ Search the web ",[[3,2],[5,1],[4,93],[3,2],[4,2],[6,14],[4,26]]], +[" ┃ Search it ",[[3,2],[5,1],[4,93],[3,2],[4,42]]], +[" ┃ ",[[3,2],[5,1],[4,93],[3,2],[4,42]]], +[" ",[[3,98],[4,42]]], +[" Searched. ",[[3,5],[7,9],[3,84],[4,42]]], +[" ",[[3,98],[4,42]]], +[" Build · provider/model · 1.0s ",[[3,5],[8,5],[2,24],[3,64],[4,42]]], +[" ",[[3,98],[4,42]]], +[" ",[[3,98],[4,42]]], +[" ",[[3,98],[4,42]]], +[" ",[[3,98],[4,42]]], +[" ",[[3,98],[4,42]]], +[" ",[[3,98],[4,42]]], +[" ",[[3,98],[4,42]]], +[" ",[[3,98],[4,42]]], +[" ",[[3,98],[4,42]]], +[" ",[[3,98],[4,42]]], +[" ",[[3,98],[4,2],[0,38],[4,2]]], +[" ⬖ Getting started ✕ ",[[3,98],[4,2],[0,4],[1,15],[0,16],[9,1],[0,2],[4,2]]], +[" ",[[3,98],[4,2],[0,38],[4,2]]], +[" OpenCode includes free models so ",[[3,98],[4,2],[0,4],[9,32],[0,2],[4,2]]], +[" you can start immediately. ",[[3,98],[4,2],[0,4],[9,26],[0,8],[4,2]]], +[" ",[[3,98],[4,2],[0,38],[4,2]]], +[" Connect from 75+ providers to ",[[3,98],[4,2],[0,4],[9,30],[0,4],[4,2]]], +[" ┃ /tavily Show Tavily's connection, sign-in, tools, web search default and next step ┃ use other models, including ",[[3,2],[8,1],[10,92],[11,1],[3,2],[4,2],[0,4],[9,28],[0,6],[4,2]]], +[" ┃ Claude, GPT, Gemini etc ",[[3,2],[11,1],[0,93],[3,2],[4,2],[0,4],[9,23],[0,11],[4,2]]], +[" ┃ /tavily ",[[3,2],[11,1],[0,93],[3,2],[4,2],[0,38],[4,2]]], +[" ┃ Connect provider /connect ",[[3,2],[11,1],[0,93],[3,2],[4,2],[0,28],[9,8],[0,2],[4,2]]], +[" ┃ ",[[3,2],[11,1],[0,93],[3,2],[4,2],[0,38],[4,2]]], +[" ╹▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀ ",[[3,2],[11,1],[12,93],[3,2],[4,42]]], +[" /tmp/opencode/packages/tui:main shift+tab agents ctrl+p commands /tmp/opencode/packages/tui:main ",[[3,2],[2,31],[3,40],[2,6],[3,9],[2,8],[3,2],[4,2],[13,31],[4,9]]], +[" ",[[3,98],[4,42]]] +]} diff --git a/packages/cli-rs/parity/fixtures/P.8/tavily-surface/status.json b/packages/cli-rs/parity/fixtures/P.8/tavily-surface/status.json new file mode 100644 index 000000000000..55f2b1c4aab1 --- /dev/null +++ b/packages/cli-rs/parity/fixtures/P.8/tavily-surface/status.json @@ -0,0 +1,36 @@ +{"width":140,"height":34,"styles":["#ffffffff #0d0d0dff 0","#696969ff #0d0d0dff 1","#ffffffff #030303ff 0","#353535ff #030303ff 0","#ffffffff #080808ff 0","#313f69ff #080808ff 0","#696969ff #080808ff 1","#696969ff #080808ff 0","#626262ff #030303ff 0","#313f69ff #030303ff 0","#ffffffff #141414ff 0","#ffffffff #141414ff 1","#808080ff #141414ff 0","#ef6c6cff #141414ff 0","#696969ff #0d0d0dff 0","#353535ff #0d0d0dff 0","#1e1e1eff #030303ff 0","#0d0d0dff #030303ff 0","#696969ff #030303ff 0","#353535ff #080808ff 0"],"lines":[ +[" Search the web + ",[[0,3],[1,6],[0,1],[1,3],[0,1],[1,3],[0,15],[2,1],[3,1],[2,106]]], +[" ",[[2,98],[4,42]]], +[" ┃ Search the web ",[[2,2],[5,1],[4,93],[2,2],[4,2],[6,6],[4,1],[6,3],[4,1],[6,3],[4,26]]], +[" ┃ Search it ",[[2,2],[5,1],[4,2],[7,6],[4,1],[7,2],[4,82],[2,2],[4,42]]], +[" ┃ ",[[2,2],[5,1],[4,93],[2,2],[4,42]]], +[" ",[[2,98],[4,42]]], +[" Searched. ",[[2,5],[8,9],[2,84],[4,42]]], +[" ",[[2,98],[4,42]]], +[" Build · provider/model · 1.0s ",[[2,5],[9,5],[2,1],[3,1],[2,1],[3,14],[2,1],[3,1],[2,1],[3,4],[2,64],[4,42]]], +[" ",[[2,26],[10,88],[4,26]]], +[" Tavily status r refresh · esc close ",[[2,26],[10,2],[11,13],[10,50],[12,21],[10,2],[4,26]]], +[" ",[[2,26],[10,88],[4,26]]], +[" Tavily status unavailable ",[[2,26],[10,2],[13,25],[10,61],[4,26]]], +[" no such RPC ",[[2,26],[10,2],[12,11],[10,75],[4,26]]], +[" Next step Run /tavily-status in a session, and restart OpenCode ",[[2,26],[10,2],[12,9],[10,77],[4,26]]], +[" if that fails too. ",[[2,26],[10,88],[4,26]]], +[" ",[[2,26],[10,88],[4,26]]], +[" ",[[2,98],[4,42]]], +[" ",[[2,98],[4,42]]], +[" ",[[2,98],[4,2],[0,38],[4,2]]], +[" ⬖ Getting started ✕ ",[[2,98],[4,2],[0,2],[14,1],[0,1],[1,7],[0,1],[1,7],[0,16],[15,1],[0,2],[4,2]]], +[" ",[[2,98],[4,2],[0,38],[4,2]]], +[" OpenCode includes free models so ",[[2,98],[4,2],[0,4],[15,8],[0,1],[15,8],[0,1],[15,4],[0,1],[15,6],[0,1],[15,2],[0,2],[4,2]]], +[" you can start immediately. ",[[2,98],[4,2],[0,4],[15,3],[0,1],[15,3],[0,1],[15,5],[0,1],[15,12],[0,8],[4,2]]], +[" ",[[2,98],[4,2],[0,38],[4,2]]], +[" Connect from 75+ providers to ",[[2,98],[4,2],[0,4],[15,7],[0,1],[15,4],[0,1],[15,3],[0,1],[15,9],[0,1],[15,2],[0,5],[4,2]]], +[" use other models, including ",[[2,98],[4,2],[0,4],[15,3],[0,1],[15,5],[0,1],[15,7],[0,1],[15,9],[0,7],[4,2]]], +[" ┃ Claude, GPT, Gemini etc ",[[2,2],[16,1],[0,93],[2,2],[4,2],[0,4],[15,7],[0,1],[15,4],[0,1],[15,6],[0,1],[15,3],[0,11],[4,2]]], +[" ┃ ",[[2,2],[16,1],[0,93],[2,2],[4,2],[0,38],[4,2]]], +[" ┃ Connect provider /connect ",[[2,2],[16,1],[0,93],[2,2],[4,2],[0,4],[14,7],[0,1],[14,8],[0,8],[15,8],[0,2],[4,2]]], +[" ┃ ",[[2,2],[16,1],[0,93],[2,2],[4,2],[0,38],[4,2]]], +[" ╹▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀ ",[[2,2],[16,1],[17,93],[2,2],[4,42]]], +[" /tmp/opencode/packages/tui:main shift+tab agents ctrl+p commands /tmp/opencode/packages/tui:main ",[[2,2],[3,31],[2,30],[18,9],[2,1],[3,6],[2,2],[18,6],[2,1],[3,8],[2,2],[4,2],[19,31],[4,9]]], +[" ",[[2,98],[4,42]]] +]} diff --git a/packages/cli-rs/parity/fixtures/P.8/tokscope-sidebar.app.json b/packages/cli-rs/parity/fixtures/P.8/tokscope-sidebar.app.json new file mode 100644 index 000000000000..eda6cc49b2da --- /dev/null +++ b/packages/cli-rs/parity/fixtures/P.8/tokscope-sidebar.app.json @@ -0,0 +1,63 @@ +{ + "scenario": "P.8/tokscope-sidebar", + "width": 140, + "height": 34, + "directory": "/tmp/opencode/packages/tui", + "config": { + "experimental": {"new-designs":true}, + "plugins": ["./out/npm/node_modules/opencode-tokscope"], + "animations": false, + "theme": {"name":"opencode"} + }, + "args": { + "sessionID": "ses_s" + }, + "env": { + "OPENCODE_PARITY_PLUGIN": "npm" + }, + "routes": [ + {"path":"/api/session/ses_s","json":{"data":{"id":"ses_s","title":"Scope the tokens","projectID":"proj_test","cost":0,"tokens":{"input":0,"output":0,"reasoning":0,"cache":{"read":0,"write":0}},"time":{"created":2,"updated":2},"location":{"directory":"/tmp/opencode/packages/tui"}}}}, + {"path":"/api/session","json":{"data":[{"id":"ses_s","title":"Scope the tokens","projectID":"proj_test","cost":0,"tokens":{"input":0,"output":0,"reasoning":0,"cache":{"read":0,"write":0}},"time":{"created":2,"updated":2},"location":{"directory":"/tmp/opencode/packages/tui"}}],"cursor":{}}}, + {"path":"/api/session/ses_s/message","json":{"data":[{"id":"msg_2","type":"assistant","agent":"build","model":{"providerID":"provider","id":"model"},"content":[{"type":"text","text":"Scoped."}],"finish":"stop","time":{"created":2000,"completed":2001}},{"id":"msg_1","type":"user","text":"Scope it","time":{"created":1000}}],"cursor":{}}}, + {"path":"/api/session/ses_s/inbox","json":{"data":[]}} + ], + "steps": [ + {"checkpoint":"sidebar","until":"TokScope","fixture":"P.8/tokscope-sidebar/sidebar"} + ], + "requests": { + "writes": [], + "reads": [ + {"method":"GET","path":"/api/agent","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":[]}}, + {"method":"GET","path":"/api/command","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":[]}}, + {"method":"GET","path":"/api/config","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":[]}, + {"method":"GET","path":"/api/experimental/job","query":{"descendants":["true"],"sessionID":["ses_s"],"status":["running"]},"status":200,"json":{"data":[]}}, + {"method":"GET","path":"/api/experimental/migration/v1","query":{},"status":200,"json":{"status":"completed"}}, + {"method":"GET","path":"/api/experimental/session/ses_s/terminal","query":{},"status":200,"json":{"data":[]}}, + {"method":"GET","path":"/api/form","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode"}},"data":[]}}, + {"method":"GET","path":"/api/fs/list","query":{"location[directory]":["<cwd>"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":[]}}, + {"method":"GET","path":"/api/info","query":{},"status":200,"json":{"version":"test","pid":0,"urls":[],"paths":{"tmp":"/tmp"},"capabilities":{"persistentPty":true}}}, + {"method":"GET","path":"/api/integration","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":[]}}, + {"method":"GET","path":"/api/location","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}}}, + {"method":"GET","path":"/api/mcp","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":[]}}, + {"method":"GET","path":"/api/mcp/resource","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":{"resources":[],"templates":[]}}}, + {"method":"GET","path":"/api/model","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":[]}}, + {"method":"GET","path":"/api/plugin","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":[]}}, + {"method":"GET","path":"/api/project","query":{},"status":200,"json":[]}, + {"method":"GET","path":"/api/provider","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":[]}}, + {"method":"GET","path":"/api/reference","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode/packages/tui","canonical":"/tmp/opencode/packages/tui"}},"data":[]}}, + {"method":"GET","path":"/api/session","query":{"limit":["100"],"order":["desc"]},"status":200,"json":{"data":[{"id":"ses_s","title":"Scope the tokens","projectID":"proj_test","cost":0,"tokens":{"input":0,"output":0,"reasoning":0,"cache":{"read":0,"write":0}},"time":{"created":2,"updated":2},"location":{"directory":"/tmp/opencode/packages/tui"}}],"cursor":{}}}, + {"method":"GET","path":"/api/session","query":{"limit":["200"],"order":["desc"],"parentID":["ses_s"]},"status":200,"json":{"data":[{"id":"ses_s","title":"Scope the tokens","projectID":"proj_test","cost":0,"tokens":{"input":0,"output":0,"reasoning":0,"cache":{"read":0,"write":0}},"time":{"created":2,"updated":2},"location":{"directory":"/tmp/opencode/packages/tui"}}],"cursor":{}}}, + {"method":"GET","path":"/api/session/active","query":{},"status":200,"json":{"data":{}}}, + {"method":"GET","path":"/api/session/ses_s","query":{},"status":200,"json":{"data":{"id":"ses_s","title":"Scope the tokens","projectID":"proj_test","cost":0,"tokens":{"input":0,"output":0,"reasoning":0,"cache":{"read":0,"write":0}},"time":{"created":2,"updated":2},"location":{"directory":"/tmp/opencode/packages/tui"}}}}, + {"method":"GET","path":"/api/session/ses_s/form","query":{},"status":200,"json":{"data":[]}}, + {"method":"GET","path":"/api/session/ses_s/inbox","query":{},"status":200,"json":{"data":[]}}, + {"method":"GET","path":"/api/session/ses_s/message","query":{"limit":["20"],"order":["desc"]},"status":200,"json":{"data":[{"id":"msg_2","type":"assistant","agent":"build","model":{"providerID":"provider","id":"model"},"content":[{"type":"text","text":"Scoped."}],"finish":"stop","time":{"created":2000,"completed":2001}},{"id":"msg_1","type":"user","text":"Scope it","time":{"created":1000}}],"cursor":{}}}, + {"method":"GET","path":"/api/session/ses_s/message","query":{"limit":["200"],"order":["desc"],"type":["assistant"]},"status":200,"json":{"data":[{"id":"msg_2","type":"assistant","agent":"build","model":{"providerID":"provider","id":"model"},"content":[{"type":"text","text":"Scoped."}],"finish":"stop","time":{"created":2000,"completed":2001}},{"id":"msg_1","type":"user","text":"Scope it","time":{"created":1000}}],"cursor":{}}}, + {"method":"GET","path":"/api/session/ses_s/permission","query":{},"status":200,"json":{"data":[]}}, + {"method":"GET","path":"/api/shell","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":[]}}, + {"method":"GET","path":"/api/skill","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":[]}}, + {"method":"GET","path":"/api/vcs","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":{"branch":{"current":"main","default":"main"}}}}, + {"method":"POST","path":"/api/rpc/opencode.goal/get","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"body":{"input":{"sessionID":"ses_s"}},"status":200,"json":{"output":null}} + ] + } +} diff --git a/packages/cli-rs/parity/fixtures/P.8/tokscope-sidebar/sidebar.json b/packages/cli-rs/parity/fixtures/P.8/tokscope-sidebar/sidebar.json new file mode 100644 index 000000000000..eafef33292d1 --- /dev/null +++ b/packages/cli-rs/parity/fixtures/P.8/tokscope-sidebar/sidebar.json @@ -0,0 +1,36 @@ +{"width":140,"height":34,"styles":["#ffffffff #202020ff 0","#ffffffff #202020ff 1","#808080ff #080808ff 0","#ffffffff #080808ff 0","#ffffffff #141414ff 0","#7699feff #141414ff 0","#ffffffff #141414ff 1","#808080ff #141414ff 0","#eeeeeeff #080808ff 0","#7699feff #080808ff 0","#808080ff #202020ff 0","#484848ff #080808ff 0","#202020ff #080808ff 0"],"lines":[ +[" Scope the tokens + ",[[0,3],[1,16],[0,13],[2,3],[3,105]]], +[" ",[[3,98],[4,42]]], +[" ┃ Scope the tokens ",[[3,2],[5,1],[4,93],[3,2],[4,2],[6,16],[4,24]]], +[" ┃ Scope it ",[[3,2],[5,1],[4,93],[3,2],[4,42]]], +[" ┃ TokScope · Today tok/s ",[[3,2],[5,1],[4,93],[3,2],[4,2],[6,8],[7,29],[4,3]]], +[" No models with 3+ calls today. ",[[3,98],[4,2],[7,30],[4,10]]], +[" Scoped. ",[[3,5],[8,7],[3,86],[4,42]]], +[" ",[[3,98],[4,42]]], +[" Build · provider/model · 1.0s ",[[3,5],[9,5],[2,24],[3,64],[4,42]]], +[" ",[[3,98],[4,42]]], +[" ",[[3,98],[4,42]]], +[" ",[[3,98],[4,42]]], +[" ",[[3,98],[4,42]]], +[" ",[[3,98],[4,42]]], +[" ",[[3,98],[4,42]]], +[" ",[[3,98],[4,42]]], +[" ",[[3,98],[4,42]]], +[" ",[[3,98],[4,42]]], +[" ",[[3,98],[4,42]]], +[" ",[[3,98],[4,2],[0,38],[4,2]]], +[" ⬖ Getting started ✕ ",[[3,98],[4,2],[0,4],[1,15],[0,16],[10,1],[0,2],[4,2]]], +[" ",[[3,98],[4,2],[0,38],[4,2]]], +[" OpenCode includes free models so ",[[3,98],[4,2],[0,4],[10,32],[0,2],[4,2]]], +[" you can start immediately. ",[[3,98],[4,2],[0,4],[10,26],[0,8],[4,2]]], +[" ",[[3,98],[4,2],[0,38],[4,2]]], +[" Connect from 75+ providers to ",[[3,98],[4,2],[0,4],[10,30],[0,4],[4,2]]], +[" use other models, including ",[[3,98],[4,2],[0,4],[10,28],[0,6],[4,2]]], +[" ┃ Claude, GPT, Gemini etc ",[[3,2],[11,1],[0,93],[3,2],[4,2],[0,4],[10,23],[0,11],[4,2]]], +[" ┃ ",[[3,2],[11,1],[0,93],[3,2],[4,2],[0,38],[4,2]]], +[" ┃ Connect provider /connect ",[[3,2],[11,1],[0,93],[3,2],[4,2],[0,28],[10,8],[0,2],[4,2]]], +[" ┃ ",[[3,2],[11,1],[0,93],[3,2],[4,2],[0,38],[4,2]]], +[" ╹▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀ ",[[3,2],[11,1],[12,93],[3,2],[4,42]]], +[" /tmp/opencode/packages/tui:main shift+tab agents ctrl+p commands /tmp/opencode/packages/tui:main ",[[3,2],[2,31],[3,40],[2,6],[3,9],[2,8],[3,2],[4,2],[7,31],[4,9]]], +[" ",[[3,98],[4,42]]] +]} diff --git a/packages/cli-rs/parity/fixtures/P.8/usage-report-keys.app.json b/packages/cli-rs/parity/fixtures/P.8/usage-report-keys.app.json new file mode 100644 index 000000000000..7bfd3a5d3616 --- /dev/null +++ b/packages/cli-rs/parity/fixtures/P.8/usage-report-keys.app.json @@ -0,0 +1,75 @@ +{ + "scenario": "P.8/usage-report-keys", + "width": 100, + "height": 30, + "directory": "/tmp/opencode/packages/tui", + "config": { + "plugins": ["./out/npm/node_modules/opencode-usage-report"], + "animations": false, + "experimental": {"new-designs":true}, + "theme": {"name":"opencode"} + }, + "args": { + "sessionID": "ses_d" + }, + "env": { + "OPENCODE_PARITY_PLUGIN": "npm" + }, + "routes": [ + {"path":"/api/session/ses_d","json":{"data":{"id":"ses_d","title":"Run it","projectID":"proj_test","cost":0,"tokens":{"input":0,"output":0,"reasoning":0,"cache":{"read":0,"write":0}},"time":{"created":2,"updated":2},"location":{"directory":"/tmp/opencode/packages/tui"}}}}, + {"path":"/api/session","json":{"data":[{"id":"ses_d","title":"Run it","projectID":"proj_test","cost":0,"tokens":{"input":0,"output":0,"reasoning":0,"cache":{"read":0,"write":0}},"time":{"created":2,"updated":2},"location":{"directory":"/tmp/opencode/packages/tui"}}],"cursor":{}}}, + {"path":"/api/session/ses_d/message","json":{"data":[{"id":"msg_2","type":"assistant","agent":"build","model":{"providerID":"provider","id":"model"},"content":[{"type":"text","text":"Ran."}],"finish":"stop","time":{"created":2000,"completed":2001}},{"id":"msg_1","type":"user","text":"Run it","time":{"created":1000}}],"cursor":{}}}, + {"path":"/api/session/ses_d/inbox","json":{"data":[]}}, + {"method":"POST","path":"/api/session/ses_d/prompt","json":{"data":{"id":"inb_1"}}}, + {"method":"POST","path":"/api/session/ses_d/agent","status":204}, + {"method":"POST","path":"/api/session/ses_d/model","status":204}, + {"path":"/api/agent","json":{"location":{"directory":"/tmp/opencode/packages/tui"},"data":[{"id":"build","name":"build","mode":"primary","hidden":false,"permissions":[],"request":{"settings":{},"headers":{},"body":{}}}]}}, + {"path":"/api/model","json":{"location":{"directory":"/tmp/opencode/packages/tui"},"data":[{"id":"model","modelID":"model","providerID":"provider","name":"Model","capabilities":{"tools":true,"input":["text"],"output":["text"]},"variants":[],"time":{"released":0},"cost":[{"input":3,"output":15,"cache":{"read":0.3,"write":3.75}}],"status":"active","enabled":true,"limit":{"context":200000,"output":32000}}]}} + ], + "steps": [ + {"checkpoint":"session","until":"Ran.","fixture":"P.8/usage-report-keys/session"}, + {"type":"refresh"}, + {"keys":["space"]}, + {"type":"rr"}, + {"checkpoint":"typed","until":"refresh rr","fixture":"P.8/usage-report-keys/typed"}, + {"keys":["enter"]} + ], + "requests": { + "writes": [ + {"method":"POST","path":"/api/session/ses_d/agent","query":{},"body":{"agent":"build"},"status":204}, + {"method":"POST","path":"/api/session/ses_d/model","query":{},"body":{"model":{"providerID":"provider","id":"model"}},"status":204}, + {"method":"POST","path":"/api/session/ses_d/prompt","query":{},"body":{"id":"<msg>","text":"refresh rr","files":[],"agents":[],"delivery":"steer"},"status":200,"json":{"data":{"id":"inb_1"}}} + ], + "reads": [ + {"method":"GET","path":"/api/agent","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui"},"data":[{"id":"build","name":"build","mode":"primary","hidden":false,"permissions":[],"request":{"settings":{},"headers":{},"body":{}}}]}}, + {"method":"GET","path":"/api/command","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":[]}}, + {"method":"GET","path":"/api/config","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":[]}, + {"method":"GET","path":"/api/experimental/job","query":{"descendants":["true"],"sessionID":["ses_d"],"status":["running"]},"status":200,"json":{"data":[]}}, + {"method":"GET","path":"/api/experimental/migration/v1","query":{},"status":200,"json":{"status":"completed"}}, + {"method":"GET","path":"/api/experimental/session/ses_d/terminal","query":{},"status":200,"json":{"data":[]}}, + {"method":"GET","path":"/api/form","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode"}},"data":[]}}, + {"method":"GET","path":"/api/fs/list","query":{"location[directory]":["<cwd>"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":[]}}, + {"method":"GET","path":"/api/info","query":{},"status":200,"json":{"version":"test","pid":0,"urls":[],"paths":{"tmp":"/tmp"},"capabilities":{"persistentPty":true}}}, + {"method":"GET","path":"/api/integration","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":[]}}, + {"method":"GET","path":"/api/location","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}}}, + {"method":"GET","path":"/api/mcp","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":[]}}, + {"method":"GET","path":"/api/mcp/resource","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":{"resources":[],"templates":[]}}}, + {"method":"GET","path":"/api/model","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui"},"data":[{"id":"model","modelID":"model","providerID":"provider","name":"Model","capabilities":{"tools":true,"input":["text"],"output":["text"]},"variants":[],"time":{"released":0},"cost":[{"input":3,"output":15,"cache":{"read":0.3,"write":3.75}}],"status":"active","enabled":true,"limit":{"context":200000,"output":32000}}]}}, + {"method":"GET","path":"/api/plugin","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":[]}}, + {"method":"GET","path":"/api/project","query":{},"status":200,"json":[]}, + {"method":"GET","path":"/api/provider","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":[]}}, + {"method":"GET","path":"/api/reference","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode/packages/tui","canonical":"/tmp/opencode/packages/tui"}},"data":[]}}, + {"method":"GET","path":"/api/session","query":{"limit":["200"],"order":["desc"],"parentID":["ses_d"]},"status":200,"json":{"data":[{"id":"ses_d","title":"Run it","projectID":"proj_test","cost":0,"tokens":{"input":0,"output":0,"reasoning":0,"cache":{"read":0,"write":0}},"time":{"created":2,"updated":2},"location":{"directory":"/tmp/opencode/packages/tui"}}],"cursor":{}}}, + {"method":"GET","path":"/api/session/active","query":{},"status":200,"json":{"data":{}}}, + {"method":"GET","path":"/api/session/ses_d","query":{},"status":200,"json":{"data":{"id":"ses_d","title":"Run it","projectID":"proj_test","cost":0,"tokens":{"input":0,"output":0,"reasoning":0,"cache":{"read":0,"write":0}},"time":{"created":2,"updated":2},"location":{"directory":"/tmp/opencode/packages/tui"}}}}, + {"method":"GET","path":"/api/session/ses_d/form","query":{},"status":200,"json":{"data":[]}}, + {"method":"GET","path":"/api/session/ses_d/inbox","query":{},"status":200,"json":{"data":[]}}, + {"method":"GET","path":"/api/session/ses_d/message","query":{"limit":["20"],"order":["desc"]},"status":200,"json":{"data":[{"id":"msg_2","type":"assistant","agent":"build","model":{"providerID":"provider","id":"model"},"content":[{"type":"text","text":"Ran."}],"finish":"stop","time":{"created":2000,"completed":2001}},{"id":"msg_1","type":"user","text":"Run it","time":{"created":1000}}],"cursor":{}}}, + {"method":"GET","path":"/api/session/ses_d/permission","query":{},"status":200,"json":{"data":[]}}, + {"method":"GET","path":"/api/shell","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":[]}}, + {"method":"GET","path":"/api/skill","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":[]}}, + {"method":"GET","path":"/api/vcs","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":{"branch":{"current":"main","default":"main"}}}}, + {"method":"POST","path":"/api/rpc/opencode.goal/get","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"body":{"input":{"sessionID":"ses_d"}},"status":200,"json":{"output":null}} + ] + } +} diff --git a/packages/cli-rs/parity/fixtures/P.8/usage-report-keys/session.json b/packages/cli-rs/parity/fixtures/P.8/usage-report-keys/session.json new file mode 100644 index 000000000000..5003ae583d9f --- /dev/null +++ b/packages/cli-rs/parity/fixtures/P.8/usage-report-keys/session.json @@ -0,0 +1,32 @@ +{"width":100,"height":30,"styles":["#ffffffff #202020ff 0","#ffffffff #202020ff 1","#808080ff #080808ff 0","#ffffffff #080808ff 0","#7699feff #141414ff 0","#ffffffff #141414ff 0","#eeeeeeff #080808ff 0","#7699feff #080808ff 0","#7699feff #202020ff 0","#808080ff #202020ff 0","#202020ff #080808ff 0"],"lines":[ +[" Run it + ",[[0,3],[1,6],[0,23],[2,3],[3,65]]], +[" ",[[3,100]]], +[" ┃ ",[[3,2],[4,1],[5,95],[3,2]]], +[" ┃ Run it ",[[3,2],[4,1],[5,95],[3,2]]], +[" ┃ ",[[3,2],[4,1],[5,95],[3,2]]], +[" ",[[3,100]]], +[" Ran. ",[[3,5],[6,4],[3,91]]], +[" ",[[3,100]]], +[" Build · Model · 1.0s ",[[3,5],[7,5],[2,15],[3,75]]], +[" ",[[3,100]]], +[" ",[[3,100]]], +[" ",[[3,100]]], +[" ",[[3,100]]], +[" ",[[3,100]]], +[" ",[[3,100]]], +[" ",[[3,100]]], +[" ",[[3,100]]], +[" ",[[3,100]]], +[" ",[[3,100]]], +[" ",[[3,100]]], +[" ",[[3,100]]], +[" ",[[3,100]]], +[" ",[[3,100]]], +[" ┃ ",[[3,2],[7,1],[0,95],[3,2]]], +[" ┃ ",[[3,2],[7,1],[0,95],[3,2]]], +[" ┃ ",[[3,2],[7,1],[0,95],[3,2]]], +[" ┃ Build · Model provider ",[[3,2],[7,1],[0,2],[8,5],[0,1],[9,1],[0,7],[9,8],[0,71],[3,2]]], +[" ╹▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀ ",[[3,2],[7,1],[10,95],[3,2]]], +[" /tmp/opencode/packages/tui:main shift+tab agents ctrl+p commands ",[[3,2],[2,31],[3,42],[2,6],[3,9],[2,8],[3,2]]], +[" ",[[3,100]]] +]} diff --git a/packages/cli-rs/parity/fixtures/P.8/usage-report-keys/typed.json b/packages/cli-rs/parity/fixtures/P.8/usage-report-keys/typed.json new file mode 100644 index 000000000000..e5d209346f35 --- /dev/null +++ b/packages/cli-rs/parity/fixtures/P.8/usage-report-keys/typed.json @@ -0,0 +1,32 @@ +{"width":100,"height":30,"styles":["#ffffffff #202020ff 0","#ffffffff #202020ff 1","#808080ff #080808ff 0","#ffffffff #080808ff 0","#7699feff #141414ff 0","#ffffffff #141414ff 0","#eeeeeeff #080808ff 0","#7699feff #080808ff 0","#7699feff #202020ff 0","#808080ff #202020ff 0","#202020ff #080808ff 0"],"lines":[ +[" Run it + ",[[0,3],[1,6],[0,23],[2,3],[3,65]]], +[" ",[[3,100]]], +[" ┃ ",[[3,2],[4,1],[5,95],[3,2]]], +[" ┃ Run it ",[[3,2],[4,1],[5,95],[3,2]]], +[" ┃ ",[[3,2],[4,1],[5,95],[3,2]]], +[" ",[[3,100]]], +[" Ran. ",[[3,5],[6,4],[3,91]]], +[" ",[[3,100]]], +[" Build · Model · 1.0s ",[[3,5],[7,5],[2,15],[3,75]]], +[" ",[[3,100]]], +[" ",[[3,100]]], +[" ",[[3,100]]], +[" ",[[3,100]]], +[" ",[[3,100]]], +[" ",[[3,100]]], +[" ",[[3,100]]], +[" ",[[3,100]]], +[" ",[[3,100]]], +[" ",[[3,100]]], +[" ",[[3,100]]], +[" ",[[3,100]]], +[" ",[[3,100]]], +[" ",[[3,100]]], +[" ┃ ",[[3,2],[7,1],[0,95],[3,2]]], +[" ┃ refresh rr ",[[3,2],[7,1],[0,95],[3,2]]], +[" ┃ ",[[3,2],[7,1],[0,95],[3,2]]], +[" ┃ Build · Model provider ",[[3,2],[7,1],[0,2],[8,5],[0,1],[9,1],[0,7],[9,8],[0,71],[3,2]]], +[" ╹▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀ ",[[3,2],[7,1],[10,95],[3,2]]], +[" /tmp/opencode/packages/tui:main shift+tab agents ctrl+p commands ",[[3,2],[2,31],[3,42],[2,6],[3,9],[2,8],[3,2]]], +[" ",[[3,100]]] +]} diff --git a/packages/cli-rs/parity/fixtures/P.8/voice-title.app.json b/packages/cli-rs/parity/fixtures/P.8/voice-title.app.json new file mode 100644 index 000000000000..9c8202200a0c --- /dev/null +++ b/packages/cli-rs/parity/fixtures/P.8/voice-title.app.json @@ -0,0 +1,70 @@ +{ + "scenario": "P.8/voice-title", + "width": 140, + "height": 34, + "directory": "/tmp/opencode/packages/tui", + "config": { + "experimental": {"new-designs":true}, + "plugins": ["./out/npm/node_modules/@juliuskb/opencode-voice"], + "animations": false, + "theme": {"name":"opencode"} + }, + "args": { + "sessionID": "ses_v" + }, + "env": { + "OPENCODE_PARITY_PLUGIN": "npm" + }, + "routes": [ + {"path":"/api/session/ses_v","json":{"data":{"id":"ses_v","title":"Speak","projectID":"proj_test","cost":0,"tokens":{"input":0,"output":0,"reasoning":0,"cache":{"read":0,"write":0}},"time":{"created":2,"updated":2},"location":{"directory":"/tmp/opencode/packages/tui"}}}}, + {"path":"/api/session","json":{"data":[{"id":"ses_v","title":"Speak","projectID":"proj_test","cost":0,"tokens":{"input":0,"output":0,"reasoning":0,"cache":{"read":0,"write":0}},"time":{"created":2,"updated":2},"location":{"directory":"/tmp/opencode/packages/tui"}}],"cursor":{}}}, + {"path":"/api/session/ses_v/message","json":{"data":[{"id":"msg_2","type":"assistant","agent":"build","model":{"providerID":"provider","id":"model"},"content":[{"type":"text","text":"Spoken."}],"finish":"stop","time":{"created":2000,"completed":2001}},{"id":"msg_1","type":"user","text":"Speak it","time":{"created":1000}}],"cursor":{}}}, + {"path":"/api/session/ses_v/inbox","json":{"data":[]}}, + {"method":"POST","path":"/api/rpc/voice/status","json":{"output":{"recording":false,"engineLoaded":false,"modelInstalled":false,"rssMb":0,"cpuPct":0}}}, + {"method":"POST","path":"/api/rpc/voice/settingsGet","json":{"output":{"json":"{}"}}}, + {"method":"POST","path":"/api/rpc/voice/:method","status":404,"json":{"_tag":"NotFound","message":"no such RPC"}} + ], + "steps": [ + {"checkpoint":"panel","until":"Menu:","fixture":"P.8/voice-title/panel"} + ], + "deviation": "F16-v2-compat-layer", + "requests": { + "writes": [ + {"method":"POST","path":"/api/rpc/voice/status","query":{},"body":{"input":{}},"status":200,"json":{"output":{"recording":false,"engineLoaded":false,"modelInstalled":false,"rssMb":0,"cpuPct":0}}}, + {"method":"POST","path":"/api/rpc/voice/settingsGet","query":{},"body":{"input":{}},"status":200,"json":{"output":{"json":"{}"}}}, + {"method":"POST","path":"/api/rpc/voice/status","query":{},"body":{"input":{}},"status":200,"json":{"output":{"recording":false,"engineLoaded":false,"modelInstalled":false,"rssMb":0,"cpuPct":0}}}, + {"method":"POST","path":"/api/rpc/voice/updateStatus","query":{},"body":{"input":{}},"status":404,"json":{"_tag":"NotFound","message":"no such RPC"}} + ], + "reads": [ + {"method":"GET","path":"/api/agent","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":[]}}, + {"method":"GET","path":"/api/command","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":[]}}, + {"method":"GET","path":"/api/config","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":[]}, + {"method":"GET","path":"/api/experimental/job","query":{"descendants":["true"],"sessionID":["ses_v"],"status":["running"]},"status":200,"json":{"data":[]}}, + {"method":"GET","path":"/api/experimental/migration/v1","query":{},"status":200,"json":{"status":"completed"}}, + {"method":"GET","path":"/api/experimental/session/ses_v/terminal","query":{},"status":200,"json":{"data":[]}}, + {"method":"GET","path":"/api/form","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode"}},"data":[]}}, + {"method":"GET","path":"/api/fs/list","query":{"location[directory]":["<cwd>"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":[]}}, + {"method":"GET","path":"/api/info","query":{},"status":200,"json":{"version":"test","pid":0,"urls":[],"paths":{"tmp":"/tmp"},"capabilities":{"persistentPty":true}}}, + {"method":"GET","path":"/api/integration","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":[]}}, + {"method":"GET","path":"/api/location","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}}}, + {"method":"GET","path":"/api/mcp","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":[]}}, + {"method":"GET","path":"/api/mcp/resource","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":{"resources":[],"templates":[]}}}, + {"method":"GET","path":"/api/model","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":[]}}, + {"method":"GET","path":"/api/plugin","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":[]}}, + {"method":"GET","path":"/api/project","query":{},"status":200,"json":[]}, + {"method":"GET","path":"/api/provider","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":[]}}, + {"method":"GET","path":"/api/reference","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode/packages/tui","canonical":"/tmp/opencode/packages/tui"}},"data":[]}}, + {"method":"GET","path":"/api/session","query":{"limit":["200"],"order":["desc"],"parentID":["ses_v"]},"status":200,"json":{"data":[{"id":"ses_v","title":"Speak","projectID":"proj_test","cost":0,"tokens":{"input":0,"output":0,"reasoning":0,"cache":{"read":0,"write":0}},"time":{"created":2,"updated":2},"location":{"directory":"/tmp/opencode/packages/tui"}}],"cursor":{}}}, + {"method":"GET","path":"/api/session/active","query":{},"status":200,"json":{"data":{}}}, + {"method":"GET","path":"/api/session/ses_v","query":{},"status":200,"json":{"data":{"id":"ses_v","title":"Speak","projectID":"proj_test","cost":0,"tokens":{"input":0,"output":0,"reasoning":0,"cache":{"read":0,"write":0}},"time":{"created":2,"updated":2},"location":{"directory":"/tmp/opencode/packages/tui"}}}}, + {"method":"GET","path":"/api/session/ses_v/form","query":{},"status":200,"json":{"data":[]}}, + {"method":"GET","path":"/api/session/ses_v/inbox","query":{},"status":200,"json":{"data":[]}}, + {"method":"GET","path":"/api/session/ses_v/message","query":{"limit":["20"],"order":["desc"]},"status":200,"json":{"data":[{"id":"msg_2","type":"assistant","agent":"build","model":{"providerID":"provider","id":"model"},"content":[{"type":"text","text":"Spoken."}],"finish":"stop","time":{"created":2000,"completed":2001}},{"id":"msg_1","type":"user","text":"Speak it","time":{"created":1000}}],"cursor":{}}}, + {"method":"GET","path":"/api/session/ses_v/permission","query":{},"status":200,"json":{"data":[]}}, + {"method":"GET","path":"/api/shell","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":[]}}, + {"method":"GET","path":"/api/skill","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":[]}}, + {"method":"GET","path":"/api/vcs","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":{"branch":{"current":"main","default":"main"}}}}, + {"method":"POST","path":"/api/rpc/opencode.goal/get","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"body":{"input":{"sessionID":"ses_v"}},"status":200,"json":{"output":null}} + ] + } +} diff --git a/packages/cli-rs/parity/fixtures/P.8/voice-title/panel.json b/packages/cli-rs/parity/fixtures/P.8/voice-title/panel.json new file mode 100644 index 000000000000..5ccaf21c5db6 --- /dev/null +++ b/packages/cli-rs/parity/fixtures/P.8/voice-title/panel.json @@ -0,0 +1,36 @@ +{"width":140,"height":34,"styles":["#ffffffff #202020ff 0","#ffffffff #202020ff 1","#808080ff #080808ff 0","#ffffffff #080808ff 0","#ffffffff #141414ff 0","#7699feff #141414ff 0","#ffffffff #141414ff 1","#808080ff #141414ff 0","#eeeeeeff #080808ff 0","#7699feff #080808ff 0","#808080ff #202020ff 0","#484848ff #080808ff 0","#202020ff #080808ff 0"],"lines":[ +[" Speak + ",[[0,3],[1,5],[0,24],[2,3],[3,105]]], +[" ",[[3,98],[4,42]]], +[" ┃ Speak ",[[3,2],[5,1],[4,93],[3,2],[4,2],[6,5],[4,35]]], +[" ┃ Speak it ",[[3,2],[5,1],[4,93],[3,2],[4,42]]], +[" ┃ ╭─Voice v0.0.9───────Menu:undefined─╮ ",[[3,2],[5,1],[4,93],[3,2],[4,2],[7,37],[4,3]]], +[" │⚠ no model installed │ ",[[3,98],[4,2],[7,1],[4,35],[7,1],[4,3]]], +[" Spoken. │download one to start │ ",[[3,5],[8,7],[3,86],[4,2],[7,22],[4,14],[7,1],[4,3]]], +[" │___________________________________│ ",[[3,98],[4,2],[7,37],[4,3]]], +[" Build · provider/model · 1.0s │undefined get a model │ ",[[3,5],[9,5],[2,24],[3,64],[4,2],[7,1],[4,9],[7,13],[4,13],[7,1],[4,3]]], +[" ╰────────────────────C: 0% R: 0M─╯ ",[[3,98],[4,2],[7,37],[4,3]]], +[" ",[[3,98],[4,42]]], +[" ",[[3,98],[4,42]]], +[" ",[[3,98],[4,42]]], +[" ",[[3,98],[4,42]]], +[" ",[[3,98],[4,42]]], +[" ",[[3,98],[4,42]]], +[" ",[[3,98],[4,42]]], +[" ",[[3,98],[4,42]]], +[" ",[[3,98],[4,42]]], +[" ",[[3,98],[4,2],[0,38],[4,2]]], +[" ⬖ Getting started ✕ ",[[3,98],[4,2],[0,4],[1,15],[0,16],[10,1],[0,2],[4,2]]], +[" ",[[3,98],[4,2],[0,38],[4,2]]], +[" OpenCode includes free models so ",[[3,98],[4,2],[0,4],[10,32],[0,2],[4,2]]], +[" you can start immediately. ",[[3,98],[4,2],[0,4],[10,26],[0,8],[4,2]]], +[" ",[[3,98],[4,2],[0,38],[4,2]]], +[" Connect from 75+ providers to ",[[3,98],[4,2],[0,4],[10,30],[0,4],[4,2]]], +[" use other models, including ",[[3,98],[4,2],[0,4],[10,28],[0,6],[4,2]]], +[" ┃ Claude, GPT, Gemini etc ",[[3,2],[11,1],[0,93],[3,2],[4,2],[0,4],[10,23],[0,11],[4,2]]], +[" ┃ ",[[3,2],[11,1],[0,93],[3,2],[4,2],[0,38],[4,2]]], +[" ┃ Connect provider /connect ",[[3,2],[11,1],[0,93],[3,2],[4,2],[0,28],[10,8],[0,2],[4,2]]], +[" ┃ ",[[3,2],[11,1],[0,93],[3,2],[4,2],[0,38],[4,2]]], +[" ╹▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀ ",[[3,2],[11,1],[12,93],[3,2],[4,42]]], +[" /tmp/opencode/packages/tui:main shift+tab agents ctrl+p commands /tmp/opencode/packages/tui:main ",[[3,2],[2,31],[3,40],[2,6],[3,9],[2,8],[3,2],[4,2],[7,31],[4,9]]], +[" ",[[3,98],[4,42]]] +]} diff --git a/packages/cli-rs/parity/fixtures/Pr/fence.app.json b/packages/cli-rs/parity/fixtures/Pr/fence.app.json new file mode 100644 index 000000000000..59ac59682716 --- /dev/null +++ b/packages/cli-rs/parity/fixtures/Pr/fence.app.json @@ -0,0 +1,61 @@ +{ + "scenario": "Pr/fence", + "width": 100, + "height": 30, + "directory": "/tmp/opencode/packages/tui", + "config": { + "plugins": ["./plugins/fence"], + "animations": false, + "experimental": {"new-designs":true}, + "theme": {"name":"opencode"} + }, + "args": { + "sessionID": "ses_a" + }, + "env": { + "OPENCODE_PARITY_PLUGIN": "fence" + }, + "routes": [ + {"path":"/api/session/ses_a","json":{"data":{"id":"ses_a","title":"Fence plugin","projectID":"proj_test","cost":0,"tokens":{"input":0,"output":0,"reasoning":0,"cache":{"read":0,"write":0}},"time":{"created":2,"updated":2},"location":{"directory":"/tmp/opencode/packages/tui"}}}}, + {"path":"/api/session","json":{"data":[{"id":"ses_a","title":"Fence plugin","projectID":"proj_test","cost":0,"tokens":{"input":0,"output":0,"reasoning":0,"cache":{"read":0,"write":0}},"time":{"created":2,"updated":2},"location":{"directory":"/tmp/opencode/packages/tui"}}],"cursor":{}}}, + {"path":"/api/session/ses_a/message","json":{"data":[{"id":"msg_2","type":"assistant","agent":"build","model":{"providerID":"provider","id":"model"},"content":[{"type":"text","text":"```parity\nalpha\nbeta\n```\n\nDone."}],"finish":"stop","time":{"created":2000,"completed":2001}},{"id":"msg_1","type":"user","text":"Show the fence","time":{"created":1000}}],"cursor":{}}}, + {"path":"/api/session/ses_a/inbox","json":{"data":[]}} + ], + "steps": [ + {"checkpoint":"session","until":"fence plugin: beta","masks":[{"x":39,"y":28,"width":22,"height":1,"reason":"TS plugin loading notice (F16)"}],"fixture":"Pr/fence/session"} + ], + "requests": { + "writes": [], + "reads": [ + {"method":"GET","path":"/api/agent","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":[]}}, + {"method":"GET","path":"/api/command","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":[]}}, + {"method":"GET","path":"/api/config","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":[]}, + {"method":"GET","path":"/api/experimental/job","query":{"descendants":["true"],"sessionID":["ses_a"],"status":["running"]},"status":200,"json":{"data":[]}}, + {"method":"GET","path":"/api/experimental/migration/v1","query":{},"status":200,"json":{"status":"completed"}}, + {"method":"GET","path":"/api/experimental/session/ses_a/terminal","query":{},"status":200,"json":{"data":[]}}, + {"method":"GET","path":"/api/form","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode"}},"data":[]}}, + {"method":"GET","path":"/api/fs/list","query":{"location[directory]":["<cwd>"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":[]}}, + {"method":"GET","path":"/api/info","query":{},"status":200,"json":{"version":"test","pid":0,"urls":[],"paths":{"tmp":"/tmp"},"capabilities":{"persistentPty":true}}}, + {"method":"GET","path":"/api/integration","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":[]}}, + {"method":"GET","path":"/api/location","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}}}, + {"method":"GET","path":"/api/mcp","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":[]}}, + {"method":"GET","path":"/api/mcp/resource","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":{"resources":[],"templates":[]}}}, + {"method":"GET","path":"/api/model","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":[]}}, + {"method":"GET","path":"/api/plugin","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":[]}}, + {"method":"GET","path":"/api/project","query":{},"status":200,"json":[]}, + {"method":"GET","path":"/api/provider","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":[]}}, + {"method":"GET","path":"/api/reference","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode/packages/tui","canonical":"/tmp/opencode/packages/tui"}},"data":[]}}, + {"method":"GET","path":"/api/session","query":{"limit":["200"],"order":["desc"],"parentID":["ses_a"]},"status":200,"json":{"data":[{"id":"ses_a","title":"Fence plugin","projectID":"proj_test","cost":0,"tokens":{"input":0,"output":0,"reasoning":0,"cache":{"read":0,"write":0}},"time":{"created":2,"updated":2},"location":{"directory":"/tmp/opencode/packages/tui"}}],"cursor":{}}}, + {"method":"GET","path":"/api/session/active","query":{},"status":200,"json":{"data":{}}}, + {"method":"GET","path":"/api/session/ses_a","query":{},"status":200,"json":{"data":{"id":"ses_a","title":"Fence plugin","projectID":"proj_test","cost":0,"tokens":{"input":0,"output":0,"reasoning":0,"cache":{"read":0,"write":0}},"time":{"created":2,"updated":2},"location":{"directory":"/tmp/opencode/packages/tui"}}}}, + {"method":"GET","path":"/api/session/ses_a/form","query":{},"status":200,"json":{"data":[]}}, + {"method":"GET","path":"/api/session/ses_a/inbox","query":{},"status":200,"json":{"data":[]}}, + {"method":"GET","path":"/api/session/ses_a/message","query":{"limit":["20"],"order":["desc"]},"status":200,"json":{"data":[{"id":"msg_2","type":"assistant","agent":"build","model":{"providerID":"provider","id":"model"},"content":[{"type":"text","text":"```parity\nalpha\nbeta\n```\n\nDone."}],"finish":"stop","time":{"created":2000,"completed":2001}},{"id":"msg_1","type":"user","text":"Show the fence","time":{"created":1000}}],"cursor":{}}}, + {"method":"GET","path":"/api/session/ses_a/permission","query":{},"status":200,"json":{"data":[]}}, + {"method":"GET","path":"/api/shell","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":[]}}, + {"method":"GET","path":"/api/skill","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":[]}}, + {"method":"GET","path":"/api/vcs","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":{"branch":{"current":"main","default":"main"}}}}, + {"method":"POST","path":"/api/rpc/opencode.goal/get","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"body":{"input":{"sessionID":"ses_a"}},"status":200,"json":{"output":null}} + ] + } +} diff --git a/packages/cli-rs/parity/fixtures/Pr/fence/session.json b/packages/cli-rs/parity/fixtures/Pr/fence/session.json new file mode 100644 index 000000000000..3c76e759fa86 --- /dev/null +++ b/packages/cli-rs/parity/fixtures/Pr/fence/session.json @@ -0,0 +1,32 @@ +{"width":100,"height":30,"styles":["#ffffffff #202020ff 0","#ffffffff #202020ff 1","#808080ff #080808ff 0","#ffffffff #080808ff 0","#7699feff #141414ff 0","#ffffffff #141414ff 0","#eeeeeeff #080808ff 0","#7699feff #080808ff 0","#484848ff #080808ff 0","#202020ff #080808ff 0","#00000000 #00000000 0"],"lines":[ +[" Fence plugin + ",[[0,3],[1,12],[0,17],[2,3],[3,65]]], +[" ",[[3,100]]], +[" ┃ ",[[3,2],[4,1],[5,95],[3,2]]], +[" ┃ Show the fence ",[[3,2],[4,1],[5,95],[3,2]]], +[" ┃ ",[[3,2],[4,1],[5,95],[3,2]]], +[" ",[[3,100]]], +[" fence plugin: alpha ",[[3,5],[2,19],[3,76]]], +[" fence plugin: beta ",[[3,5],[2,18],[3,77]]], +[" ",[[3,100]]], +[" Done. ",[[3,5],[6,5],[3,90]]], +[" ",[[3,100]]], +[" Build · provider/model · 1.0s ",[[3,5],[7,5],[2,24],[3,66]]], +[" ",[[3,100]]], +[" ",[[3,100]]], +[" ",[[3,100]]], +[" ",[[3,100]]], +[" ",[[3,100]]], +[" ",[[3,100]]], +[" ",[[3,100]]], +[" ",[[3,100]]], +[" ",[[3,100]]], +[" ",[[3,100]]], +[" ",[[3,100]]], +[" ┃ ",[[3,2],[8,1],[0,95],[3,2]]], +[" ┃ ",[[3,2],[8,1],[0,95],[3,2]]], +[" ┃ ",[[3,2],[8,1],[0,95],[3,2]]], +[" ┃ ",[[3,2],[8,1],[0,95],[3,2]]], +[" ╹▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀ ",[[3,2],[8,1],[9,95],[3,2]]], +[" /tmp/opencode/packages/tui:main shift+tab agents ctrl+p commands ",[[3,2],[2,31],[3,6],[10,22],[3,14],[2,6],[3,9],[2,8],[3,2]]], +[" ",[[3,100]]] +]} diff --git a/packages/cli-rs/parity/fixtures/U.1/tokens.json b/packages/cli-rs/parity/fixtures/U.1/tokens.json new file mode 100644 index 000000000000..969a94a6295a --- /dev/null +++ b/packages/cli-rs/parity/fixtures/U.1/tokens.json @@ -0,0 +1,1541 @@ +{ + "paths": [ + "background.action.destructive.base", + "background.action.destructive.disabled", + "background.action.destructive.focused", + "background.action.destructive.hovered", + "background.action.destructive.pressed", + "background.action.destructive.selected", + "background.action.primary.base", + "background.action.primary.disabled", + "background.action.primary.focused", + "background.action.primary.hovered", + "background.action.primary.pressed", + "background.action.primary.selected", + "background.action.secondary.base", + "background.action.secondary.disabled", + "background.action.secondary.focused", + "background.action.secondary.hovered", + "background.action.secondary.pressed", + "background.action.secondary.selected", + "background.base", + "background.feedback.error.base", + "background.feedback.info.base", + "background.feedback.success.base", + "background.feedback.warning.base", + "background.formfield.base", + "background.formfield.disabled", + "background.formfield.focused", + "background.formfield.hovered", + "background.formfield.pressed", + "background.formfield.selected", + "background.raised.base", + "background.raised.high", + "background.raised.max", + "border.base", + "diff.background.added", + "diff.background.context", + "diff.background.removed", + "diff.highlight.added", + "diff.highlight.removed", + "diff.lineNumber.background.added", + "diff.lineNumber.background.removed", + "diff.lineNumber.text", + "diff.text.added", + "diff.text.context", + "diff.text.hunkHeader", + "diff.text.removed", + "markdown.blockQuote", + "markdown.code", + "markdown.codeBlock", + "markdown.emphasis", + "markdown.heading", + "markdown.horizontalRule", + "markdown.image", + "markdown.imageText", + "markdown.link", + "markdown.linkText", + "markdown.listEnumeration", + "markdown.listItem", + "markdown.strong", + "markdown.text", + "scrollbar.base", + "syntax.comment", + "syntax.function", + "syntax.keyword", + "syntax.number", + "syntax.operator", + "syntax.punctuation", + "syntax.string", + "syntax.type", + "syntax.variable", + "text.action.destructive.base", + "text.action.destructive.disabled", + "text.action.destructive.focused", + "text.action.destructive.hovered", + "text.action.destructive.pressed", + "text.action.destructive.selected", + "text.action.primary.base", + "text.action.primary.disabled", + "text.action.primary.focused", + "text.action.primary.hovered", + "text.action.primary.pressed", + "text.action.primary.selected", + "text.action.secondary.base", + "text.action.secondary.disabled", + "text.action.secondary.focused", + "text.action.secondary.hovered", + "text.action.secondary.pressed", + "text.action.secondary.selected", + "text.base", + "text.faint", + "text.feedback.error.base", + "text.feedback.error.muted", + "text.feedback.info.base", + "text.feedback.info.muted", + "text.feedback.success.base", + "text.feedback.success.muted", + "text.feedback.warning.base", + "text.feedback.warning.muted", + "text.formfield.base", + "text.formfield.disabled", + "text.formfield.focused", + "text.formfield.hovered", + "text.formfield.pressed", + "text.formfield.selected", + "text.muted" + ], + "builtins": { + "aura/dark": { + "modes": ["dark"], + "hues": ["gray","red","orange","green","purple","accent","interactive","neutral"], + "hue": "edeceeffa7a6a7ff6d6d6dff4d4c55ff33323aff24232aff19181eff15141aff0f0f0fffeddddbffba9592ff836361ffff6767ffa34a48ff3b2b2aff2c2020ff1e1717ff140f0fffe5e0daffa99d8fff756a5effffca85ff987952ff332e27ff26221eff1b1816ff11100fffd8e5dfff8aa79bff5a7368ff61ffcaff3d9677ff25312cff1c2521ff141a17ff0e1110ffe2dfedffa19abaff6e6883ffa277ffff6c54a4ff302d3bff24212bff19181eff101013ffe2dfedffa19abaff6e6883ffa277ffff6c54a4ff302d3bff24212bff19181eff101013ffe2dfedffa19abaff6e6883ffa277ffff6c54a4ff302d3bff24212bff19181eff101013ffedeceeffa7a6a7ff6d6d6dff4d4c55ff33323aff24232aff19181eff15141aff0f0f0fff", + "categorical": "e2dfedffa19abaff6e6883ffa277ffff6c54a4ff302d3bff24212bff19181eff101013ffd8e5dfff8aa79bff5a7368ff61ffcaff3d9677ff25312cff1c2521ff141a17ff0e1110ffe5e0daffa99d8fff756a5effffca85ff987952ff332e27ff26221eff1b1816ff11100fffeddddbffba9592ff836361ffff6767ffa34a48ff3b2b2aff2c2020ff1e1717ff140f0fff", + "base": "ff6767ffff6767ffff6767ffff6767ffff6767ffff6767ff0000000000000000302d3bff19181eff00000000000000000000000000000000000000000000000000000000000000000f0f0fff0f0f0fff0f0f0fff0f0f0fff0f0f0fff0f0f0fff0f0f0fff0f0f0fff0f0f0fff0f0f0fff0f0f0fff19181eff24232aff33323aff2d2d2dff354933ff15141bff3f191aff61ffcaffff6767ff162620ff26161aff898989ff61ffcaff6d6d6dff6d6d6dffff6767ff6d6d6dff61ffcaffedeceeffffca85ffa277ffff6d6d6dfff694ffffa277fffff694ffffa277ffffa277ffffa277ffffa277ffffedeceeff6d6d6dff6d6d6dffa277fffff694ffff9dff65fff694ffffedeceeff61ffcaffa277ffffa277ffff0f0f0fff6d6d6dff0f0f0fff0f0f0fff0f0f0fff0f0f0fffedeceeff6d6d6dffedeceeffedeceeffedeceeffa277ffffa7a6a7ffa7a6a7ffa19abaffedeceeffa7a6a7ffa7a6a7ffedeceeff6d6d6dffff6767ffff6767ffa277ffffa277ffff61ffcaff61ffcaffffca85ffffca85ffedeceeff6d6d6dffa277ffffa277ffffa277ffffa277ffffa7a6a7ff", + "dialog": "ff6767ffff6767ffff6767ffff6767ffff6767ffff6767ff0000000000000000302d3bff33323aff000000000000000000000000000000000000000033323aff000000000000000019181eff19181eff19181eff19181eff19181eff19181eff19181eff19181eff19181eff19181eff19181eff19181eff24232aff33323aff2d2d2dff354933ff15141bff3f191aff61ffcaffff6767ff162620ff26161aff898989ff61ffcaff6d6d6dff6d6d6dffff6767ff6d6d6dff61ffcaffedeceeffffca85ffa277ffff6d6d6dfff694ffffa277fffff694ffffa277ffffa277ffffa277ffffa277ffffedeceeff6d6d6dff6d6d6dffa277fffff694ffff9dff65fff694ffffedeceeff61ffcaffa277ffffa277ffff0f0f0fff6d6d6dff0f0f0fff0f0f0fff0f0f0fff0f0f0fffedeceeff6d6d6dffedeceeffedeceeffedeceeffa277ffffa7a6a7ffa7a6a7ffa19abaffedeceeffa7a6a7ffa7a6a7ffedeceeff6d6d6dffff6767ffff6767ffa277ffffa277ffff61ffcaff61ffcaffffca85ffffca85ffedeceeff6d6d6dffa277ffffa277ffffa277ffffa277ffffa7a6a7ff", + "footer": "ff6767ffff6767ffff6767ffff6767ffff6767ffff6767ff0000000000000000302d3bff33323aff000000000000000000000000000000000000000033323aff000000000000000019181eff19181eff19181eff19181eff19181eff19181eff19181eff19181eff19181eff19181eff19181eff19181eff24232aff33323aff2d2d2dff354933ff15141bff3f191aff61ffcaffff6767ff162620ff26161aff898989ff61ffcaff6d6d6dff6d6d6dffff6767ff6d6d6dff61ffcaffedeceeffffca85ffa277ffff6d6d6dfff694ffffa277fffff694ffffa277ffffa277ffffa277ffffa277ffffedeceeff6d6d6dff6d6d6dffa277fffff694ffff9dff65fff694ffffedeceeff61ffcaffa277ffffa277ffff0f0f0fff6d6d6dff0f0f0fff0f0f0fff0f0f0fff0f0f0fffedeceeff6d6d6dffedeceeffedeceeffedeceeffa277ffffa7a6a7ffa7a6a7ffa19abaffedeceeffa7a6a7ffa7a6a7ffedeceeff6d6d6dffff6767ffff6767ffa277ffffa277ffff61ffcaff61ffcaffffca85ffffca85ffedeceeff6d6d6dffa277ffffa277ffffa277ffffa277ffffa7a6a7ff", + "decrease": "836361ff836361ff836361ff836361ff836361ff836361ff00000000000000006c54a4ff24232aff000000000000000000000000000000000000000000000000000000000000000015141aff15141aff15141aff15141aff15141aff15141aff15141aff15141aff15141aff15141aff15141aff24232aff33323aff4d4c55ff2d2d2dff354933ff15141bff3f191aff5a7368ff836361ff162620ff26161aff898989ff5a7368ffa7a6a7ffa7a6a7ff836361ffa7a6a7ff5a7368ffedeceeff756a5eff6e6883ffa7a6a7fff694ffff6e6883fff694ffff6e6883ff6e6883ff6e6883ff6e6883ffedeceeffa7a6a7ffa7a6a7ff6e6883fff694ffff9dff65fff694ffffedeceeff5a7368ff6e6883ff6e6883ff15141affa7a6a7ff15141aff15141aff15141aff15141affedeceeffa7a6a7ffedeceeffedeceeffedeceeff6e6883ffedeceeffedeceeffe2dfedffedeceeffedeceeffedeceeffedeceeffa7a6a7ff836361ff836361ff6e6883ff6e6883ff5a7368ff5a7368ff756a5eff756a5effedeceeffa7a6a7ff6e6883ff6e6883ff6e6883ff6e6883ffedeceeff", + "increase": "3b2b2aff3b2b2aff3b2b2aff3b2b2aff3b2b2aff3b2b2aff000000000000000019181eff0f0f0fff00000000000000000000000000000000000000000000000000000000000000000f0f0fff0f0f0fff0f0f0fff0f0f0fff0f0f0fff0f0f0fff0f0f0fff0f0f0fff0f0f0fff0f0f0fff0f0f0fff0f0f0fff15141aff19181eff2d2d2dff354933ff15141bff3f191aff25312cff3b2b2aff162620ff26161aff898989ff25312cff33323aff33323aff3b2b2aff33323aff25312cff6d6d6dff332e27ff302d3bff33323afff694ffff302d3bfff694ffff302d3bff302d3bff302d3bff302d3bff6d6d6dff33323aff33323aff302d3bfff694ffff9dff65fff694ffff6d6d6dff25312cff302d3bff302d3bff0f0f0fff33323aff0f0f0fff0f0f0fff0f0f0fff0f0f0fff6d6d6dff33323aff6d6d6dff6d6d6dff6d6d6dff302d3bff4d4c55ff4d4c55ffa277ffff6d6d6dff4d4c55ff4d4c55ff6d6d6dff33323aff3b2b2aff3b2b2aff302d3bff302d3bff25312cff25312cff332e27ff332e27ff6d6d6dff33323aff302d3bff302d3bff302d3bff302d3bff4d4c55ff" + }, + "ayu/dark": { + "modes": ["dark"], + "hues": ["gray","red","orange","green","cyan","blue","purple","accent","interactive","neutral"], + "hue": "bfbdb6ff828882ff565b66ff484c55ff2f323bff20232bff141820ff11141bff0b0e14ffbcaeadff967674ff6d5251ffd95757ff914442ff392a32ff2b1f25ff1e1519ff120e12ffb6b1a9ff897e6bff625948ffe6b450ff8d7037ff392b29ff2a201eff1e1614ff140d0fffacb5aaff73866dff4f604aff7fd962ff518541ff1d322eff172522ff0f1a18ff081113ffaab4b8ff6d838dff4a5e66ff39bae6ff317791ff243037ff1b2329ff13181cff0b1014ffabb3b9ff6e8290ff4b5d69ff59c2ffff3e799dff252f39ff1c232aff13181dff0c0f14ffb4b0b9ff847b8eff5e5667ffd2a6ffff81689cff2f2c39ff23212bff19171dff0e0f14ffb6b1a9ff897e6bff625948ffe6b450ff8d7037ff392b29ff2a201eff1e1614ff140d0fffabb3b9ff6e8290ff4b5d69ff59c2ffff3e799dff252f39ff1c232aff13181dff0c0f14ffbfbdb6ff828882ff565b66ff484c55ff2f323bff20232bff141820ff11141bff0b0e14ff", + "categorical": "b4b0b9ff847b8eff5e5667ffd2a6ffff81689cff2f2c39ff23212bff19171dff0e0f14ffb6b1a9ff897e6bff625948ffe6b450ff8d7037ff392b29ff2a201eff1e1614ff140d0fffacb5aaff73866dff4f604aff7fd962ff518541ff1d322eff172522ff0f1a18ff081113ffabb3b9ff6e8290ff4b5d69ff59c2ffff3e799dff252f39ff1c232aff13181dff0c0f14ffbcaeadff967674ff6d5251ffd95757ff914442ff392a32ff2b1f25ff1e1519ff120e12ffaab4b8ff6d838dff4a5e66ff39bae6ff317791ff243037ff1b2329ff13181cff0b1014ff", + "base": "d95757ffd95757ffd95757ffd95757ffd95757ffd95757ff0000000000000000252f39ff141820ff00000000000000000000000000000000000000000000000000000000000000000b0e14ff0b0e14ff0b0e14ff0b0e14ff0b0e14ff0b0e14ff0b0e14ff0b0e14ff0b0e14ff0b0e14ff0b0e14ff141820ff20232bff2f323bff6c7380ff20303bff0f131aff37222cffaad94cfff07178ff1b2b34ff2d1f26ffacb6bfff7fd962ffacb6bfffacb6bffff26d78ffe6b673ffaad94cffbfbdb6ffe6b673ffd2a6ffff565b66ff59c2ffff39bae6ff59c2ffff39bae6ff39bae6ff59c2ffffffb454ffbfbdb6ff6c7380ffacb6bfffffb454ffff8f40ffd2a6fffff29668ffbfbdb6ffaad94cffe6b673ff59c2ffff0b0e14ff565b66ff0b0e14ff0b0e14ff0b0e14ff0b0e14ffbfbdb6ff565b66ffbfbdb6ffbfbdb6ffbfbdb6ff59c2ffff828882ff828882ff6e8290ffbfbdb6ff828882ff828882ffbfbdb6ff565b66ffd95757ffd95757ff39bae6ff39bae6ff7fd962ff7fd962ffe6b673ffe6b673ffbfbdb6ff565b66ff59c2ffff59c2ffff59c2ffff59c2ffff828882ff", + "dialog": "d95757ffd95757ffd95757ffd95757ffd95757ffd95757ff0000000000000000252f39ff2f323bff00000000000000000000000000000000000000002f323bff0000000000000000141820ff141820ff141820ff141820ff141820ff141820ff141820ff141820ff141820ff141820ff141820ff141820ff20232bff2f323bff6c7380ff20303bff0f131aff37222cffaad94cfff07178ff1b2b34ff2d1f26ffacb6bfff7fd962ffacb6bfffacb6bffff26d78ffe6b673ffaad94cffbfbdb6ffe6b673ffd2a6ffff565b66ff59c2ffff39bae6ff59c2ffff39bae6ff39bae6ff59c2ffffffb454ffbfbdb6ff6c7380ffacb6bfffffb454ffff8f40ffd2a6fffff29668ffbfbdb6ffaad94cffe6b673ff59c2ffff0b0e14ff565b66ff0b0e14ff0b0e14ff0b0e14ff0b0e14ffbfbdb6ff565b66ffbfbdb6ffbfbdb6ffbfbdb6ff59c2ffff828882ff828882ff6e8290ffbfbdb6ff828882ff828882ffbfbdb6ff565b66ffd95757ffd95757ff39bae6ff39bae6ff7fd962ff7fd962ffe6b673ffe6b673ffbfbdb6ff565b66ff59c2ffff59c2ffff59c2ffff59c2ffff828882ff", + "footer": "d95757ffd95757ffd95757ffd95757ffd95757ffd95757ff0000000000000000252f39ff2f323bff00000000000000000000000000000000000000002f323bff0000000000000000141820ff141820ff141820ff141820ff141820ff141820ff141820ff141820ff141820ff141820ff141820ff141820ff20232bff2f323bff6c7380ff20303bff0f131aff37222cffaad94cfff07178ff1b2b34ff2d1f26ffacb6bfff7fd962ffacb6bfffacb6bffff26d78ffe6b673ffaad94cffbfbdb6ffe6b673ffd2a6ffff565b66ff59c2ffff39bae6ff59c2ffff39bae6ff39bae6ff59c2ffffffb454ffbfbdb6ff6c7380ffacb6bfffffb454ffff8f40ffd2a6fffff29668ffbfbdb6ffaad94cffe6b673ff59c2ffff0b0e14ff565b66ff0b0e14ff0b0e14ff0b0e14ff0b0e14ffbfbdb6ff565b66ffbfbdb6ffbfbdb6ffbfbdb6ff59c2ffff828882ff828882ff6e8290ffbfbdb6ff828882ff828882ffbfbdb6ff565b66ffd95757ffd95757ff39bae6ff39bae6ff7fd962ff7fd962ffe6b673ffe6b673ffbfbdb6ff565b66ff59c2ffff59c2ffff59c2ffff59c2ffff828882ff", + "decrease": "6d5251ff6d5251ff6d5251ff6d5251ff6d5251ff6d5251ff00000000000000003e799dff20232bff000000000000000000000000000000000000000000000000000000000000000011141bff11141bff11141bff11141bff11141bff11141bff11141bff11141bff11141bff11141bff11141bff20232bff2f323bff484c55ff6c7380ff20303bff0f131aff37222cffaad94cfff07178ff1b2b34ff2d1f26ffacb6bfff4f604affacb6bfffacb6bffff26d78ffe6b673ffaad94cffbfbdb6ffe6b673ff5e5667ff828882ff4b5d69ff4a5e66ff4b5d69ff4a5e66ff4a5e66ff4b5d69ffffb454ffbfbdb6ff6c7380ffacb6bfffffb454ffff8f40ff5e5667fff29668ffbfbdb6ffaad94cffe6b673ff4b5d69ff11141bff828882ff11141bff11141bff11141bff11141bffbfbdb6ff828882ffbfbdb6ffbfbdb6ffbfbdb6ff4b5d69ffbfbdb6ffbfbdb6ffabb3b9ffbfbdb6ffbfbdb6ffbfbdb6ffbfbdb6ff828882ff6d5251ff6d5251ff4a5e66ff4a5e66ff4f604aff4f604affe6b673ffe6b673ffbfbdb6ff828882ff4b5d69ff4b5d69ff4b5d69ff4b5d69ffbfbdb6ff", + "increase": "392a32ff392a32ff392a32ff392a32ff392a32ff392a32ff000000000000000013181dff0b0e14ff00000000000000000000000000000000000000000000000000000000000000000b0e14ff0b0e14ff0b0e14ff0b0e14ff0b0e14ff0b0e14ff0b0e14ff0b0e14ff0b0e14ff0b0e14ff0b0e14ff0b0e14ff11141bff141820ff6c7380ff20303bff0f131aff37222cffaad94cfff07178ff1b2b34ff2d1f26ffacb6bfff1d322effacb6bfffacb6bffff26d78ffe6b673ffaad94cff565b66ffe6b673ff2f2c39ff2f323bff252f39ff243037ff252f39ff243037ff243037ff252f39ffffb454ff565b66ff6c7380ffacb6bfffffb454ffff8f40ff2f2c39fff29668ff565b66ffaad94cffe6b673ff252f39ff0b0e14ff2f323bff0b0e14ff0b0e14ff0b0e14ff0b0e14ff565b66ff2f323bff565b66ff565b66ff565b66ff252f39ff484c55ff484c55ff59c2ffff565b66ff484c55ff484c55ff565b66ff2f323bff392a32ff392a32ff243037ff243037ff1d322eff1d322effe6b673ffe6b673ff565b66ff2f323bff252f39ff252f39ff252f39ff252f39ff484c55ff" + }, + "catppuccin/light": { + "modes": ["light","dark"], + "hues": ["gray","red","orange","green","cyan","blue","purple","accent","interactive","neutral"], + "hue": "4c4f69ff7c7f93ff9a9fafffa4a8b0ffc0c3cbffced1d9ffe2e5eaffeaedf2ffeff1f5ff7f5f5fffb8a2a1ffdabcbbffd20f39ffe19d9dffeecfd2fff2dfdffff2e8e8fff1ededff746657ffb0a69cffcfc2b4ffdf8e1dffddbe9dffe3d4c6ffeae2d9ffeeeae6fff0eeecff5e6e5bffa1ab9fffbbc9b8ff40a02bffa3c59dffccdcc9ffdde7dcffe8ece7ffedefedff5d6c6dffa0aaabffb9c8c8ff179299ff9dbfc1ffcadadbffdce6e6ffe7ececffedefefff5b6982ff9fa8baffb8c5ddff1e66f5ff95b3eaffc9d8f1ffdbe4f3ffe7ebf3ffedeef1ff76616fffb1a3acffd1becbffea76cbffe3b5d4ffe4d1e0ffece0e8ffefe9edfff0edefff76616fffb1a3acffd1becbffea76cbffe3b5d4ffe4d1e0ffece0e8ffefe9edfff0edefff5b6982ff9fa8baffb8c5ddff1e66f5ff95b3eaffc9d8f1ffdbe4f3ffe7ebf3ffedeef1ff4c4f69ff7c7f93ff9a9fafffa4a8b0ffc0c3cbffced1d9ffe2e5eaffeaedf2ffeff1f5ff", + "categorical": "76616fffb1a3acffd1becbffea76cbffe3b5d4ffe4d1e0ffece0e8ffefe9edfff0edefff5e6e5bffa1ab9fffbbc9b8ff40a02bffa3c59dffccdcc9ffdde7dcffe8ece7ffedefedff746657ffb0a69cffcfc2b4ffdf8e1dffddbe9dffe3d4c6ffeae2d9ffeeeae6fff0eeecff5b6982ff9fa8baffb8c5ddff1e66f5ff95b3eaffc9d8f1ffdbe4f3ffe7ebf3ffedeef1ff7f5f5fffb8a2a1ffdabcbbffd20f39ffe19d9dffeecfd2fff2dfdffff2e8e8fff1ededff5d6c6dffa0aaabffb9c8c8ff179299ff9dbfc1ffcadadbffdce6e6ffe7ececffedefefff", + "base": "d20f39ffd20f39ffd20f39ffd20f39ffd20f39ffd20f39ff0000000000000000c9d8f1ffe2e5eaff0000000000000000000000000000000000000000000000000000000000000000eff1f5ffeff1f5ffeff1f5ffeff1f5ffeff1f5ffeff1f5ffeff1f5ffeff1f5ffeff1f5ffeff1f5ffeff1f5ffe2e5eaffced1d9ffc0c3cbffccd0daffd6f0d9ffe6e9effff6dfe2ff40a02bffd20f39ffc9e3cbffe9d3d6ff5b5d63ff40a02bff7c7f93fffe640bffd20f39ffdf8e1dff40a02bff4c4f69ffdf8e1dff8839efff6c6f85ff1e66f5ff04a5e5ff1e66f5ff04a5e5ff04a5e5ff1e66f5fffe640bff4c4f69ffbcc0ccff7c7f93ff1e66f5ff8839effffe640bff04a5e5ff4c4f69ff40a02bffdf8e1dffd20f39ffeff1f5ff9a9fafffeff1f5ffeff1f5ffeff1f5ffeff1f5ff4c4f69ff9a9fafff4c4f69ff4c4f69ff4c4f69ff1e66f5ff7c7f93ff7c7f93ff9fa8baff4c4f69ff7c7f93ff7c7f93ff4c4f69ff9a9fafffd20f39ffd20f39ff179299ff179299ff40a02bff40a02bffdf8e1dffdf8e1dff4c4f69ff9a9fafff1e66f5ff1e66f5ff1e66f5ff1e66f5ff7c7f93ff", + "dialog": "d20f39ffd20f39ffd20f39ffd20f39ffd20f39ffd20f39ff0000000000000000c9d8f1ffced1d9ff0000000000000000000000000000000000000000ced1d9ff0000000000000000eaedf2ffeaedf2ffeaedf2ffeaedf2ffeaedf2ffeaedf2ffeaedf2ffeaedf2ffeaedf2ffeaedf2ffeaedf2ffe2e5eaffe2e5eaffc0c3cbffccd0daffd6f0d9ffe6e9effff6dfe2ff40a02bffd20f39ffc9e3cbffe9d3d6ff5b5d63ff40a02bff7c7f93fffe640bffd20f39ffdf8e1dff40a02bff4c4f69ffdf8e1dff8839efff6c6f85ff1e66f5ff04a5e5ff1e66f5ff04a5e5ff04a5e5ff1e66f5fffe640bff4c4f69ffbcc0ccff7c7f93ff1e66f5ff8839effffe640bff04a5e5ff4c4f69ff40a02bffdf8e1dffd20f39ffeff1f5ff9a9fafffeff1f5ffeff1f5ffeff1f5ffeff1f5ff4c4f69ff9a9fafff4c4f69ff4c4f69ff4c4f69ff1e66f5ff7c7f93ff7c7f93ff9fa8baff4c4f69ff7c7f93ff7c7f93ff4c4f69ff9a9fafffd20f39ffd20f39ff179299ff179299ff40a02bff40a02bffdf8e1dffdf8e1dff4c4f69ff9a9fafff1e66f5ff1e66f5ff1e66f5ff1e66f5ff7c7f93ff", + "footer": "d20f39ffd20f39ffd20f39ffd20f39ffd20f39ffd20f39ff0000000000000000c9d8f1ffced1d9ff0000000000000000000000000000000000000000ced1d9ff0000000000000000eaedf2ffeaedf2ffeaedf2ffeaedf2ffeaedf2ffeaedf2ffeaedf2ffeaedf2ffeaedf2ffeaedf2ffeaedf2ffe2e5eaffe2e5eaffc0c3cbffccd0daffd6f0d9ffe6e9effff6dfe2ff40a02bffd20f39ffc9e3cbffe9d3d6ff5b5d63ff40a02bff7c7f93fffe640bffd20f39ffdf8e1dff40a02bff4c4f69ffdf8e1dff8839efff6c6f85ff1e66f5ff04a5e5ff1e66f5ff04a5e5ff04a5e5ff1e66f5fffe640bff4c4f69ffbcc0ccff7c7f93ff1e66f5ff8839effffe640bff04a5e5ff4c4f69ff40a02bffdf8e1dffd20f39ffeff1f5ff9a9fafffeff1f5ffeff1f5ffeff1f5ffeff1f5ff4c4f69ff9a9fafff4c4f69ff4c4f69ff4c4f69ff1e66f5ff7c7f93ff7c7f93ff9fa8baff4c4f69ff7c7f93ff7c7f93ff4c4f69ff9a9fafffd20f39ffd20f39ff179299ff179299ff40a02bff40a02bffdf8e1dffdf8e1dff4c4f69ff9a9fafff1e66f5ff1e66f5ff1e66f5ff1e66f5ff7c7f93ff", + "decrease": "dabcbbffdabcbbffdabcbbffdabcbbffdabcbbffdabcbbff000000000000000095b3eaffced1d9ff0000000000000000000000000000000000000000000000000000000000000000eaedf2ffeaedf2ffeaedf2ffeaedf2ffeaedf2ffeaedf2ffeaedf2ffeaedf2ffeaedf2ffeaedf2ffeaedf2ffced1d9ffc0c3cbffa4a8b0ffccd0daffd6f0d9ffe6e9effff6dfe2ffbbc9b8ffdabcbbffc9e3cbffe9d3d6ff5b5d63ffbbc9b8ff4c4f69fffe640bffdabcbbffcfc2b4ffbbc9b8ff4c4f69ffcfc2b4ff8839efff6c6f85ffb8c5ddff04a5e5ffb8c5ddff04a5e5ff04a5e5ffb8c5ddfffe640bff4c4f69ffbcc0ccff4c4f69ffb8c5ddff8839effffe640bff04a5e5ff4c4f69ffbbc9b8ffcfc2b4ffdabcbbffeaedf2ff7c7f93ffeaedf2ffeaedf2ffeaedf2ffeaedf2ff4c4f69ff7c7f93ff4c4f69ff4c4f69ff4c4f69ffb8c5ddff4c4f69ff4c4f69ff5b6982ff4c4f69ff4c4f69ff4c4f69ff4c4f69ff7c7f93ffdabcbbffdabcbbffb9c8c8ffb9c8c8ffbbc9b8ffbbc9b8ffcfc2b4ffcfc2b4ff4c4f69ff7c7f93ffb8c5ddffb8c5ddffb8c5ddffb8c5ddff4c4f69ff", + "increase": "eecfd2ffeecfd2ffeecfd2ffeecfd2ffeecfd2ffeecfd2ff0000000000000000e7ebf3ffeff1f5ff0000000000000000000000000000000000000000000000000000000000000000eff1f5ffeff1f5ffeff1f5ffeff1f5ffeff1f5ffeff1f5ffeff1f5ffeff1f5ffeff1f5ffeff1f5ffeff1f5ffeff1f5ffeaedf2ffe2e5eaffccd0daffd6f0d9ffe6e9effff6dfe2ffccdcc9ffeecfd2ffc9e3cbffe9d3d6ff5b5d63ffccdcc9ffa4a8b0fffe640bffeecfd2ffe3d4c6ffccdcc9ff9a9fafffe3d4c6ff8839efff6c6f85ffc9d8f1ff04a5e5ffc9d8f1ff04a5e5ff04a5e5ffc9d8f1fffe640bff9a9fafffbcc0ccffa4a8b0ffc9d8f1ff8839effffe640bff04a5e5ff9a9fafffccdcc9ffe3d4c6ffeecfd2ffeff1f5ffc0c3cbffeff1f5ffeff1f5ffeff1f5ffeff1f5ff9a9fafffc0c3cbff9a9fafff9a9fafff9a9fafffc9d8f1ffa4a8b0ffa4a8b0ff1e66f5ff9a9fafffa4a8b0ffa4a8b0ff9a9fafffc0c3cbffeecfd2ffeecfd2ffcadadbffcadadbffccdcc9ffccdcc9ffe3d4c6ffe3d4c6ff9a9fafffc0c3cbffc9d8f1ffc9d8f1ffc9d8f1ffc9d8f1ffa4a8b0ff" + }, + "catppuccin/dark": { + "modes": ["light","dark"], + "hues": ["gray","red","yellow","green","cyan","blue","purple","accent","interactive","neutral"], + "hue": "cdd6f4ff9399b2ff767a92ff60616eff3c3c4aff2e2e3cff242534ff222232ff1e1e2effd4c8cbffa58c91ff8a7479fff38ba8ffa66778ff423543ff362b37ff2c232eff251e28ffcecbc7ff989388ff7f7a71fff9e2afff9e9173ff453538ff392b2eff2f2326ff291d23ffc8cec7ff8a9889ff737f72ffa6e3a1ff71956eff293c41ff213136ff1b282eff162329ffc6cdccff879794ff707e7cff94e2d5ff67948dff2e3b44ff253038ff1d2730ff19222affc7ccd3ff8a94a4ff737b8aff89b4faff657ea8ff343948ff2b2e3bff232531ff1e202bffcfcacdff9b8f97ff82777ffff5c2e7ff9f8197ff3d3743ff322c37ff2a242eff231f29ffcfcacdff9b8f97ff82777ffff5c2e7ff9f8197ff3d3743ff322c37ff2a242eff231f29ffc7ccd3ff8a94a4ff737b8aff89b4faff657ea8ff343948ff2b2e3bff232531ff1e202bffcdd6f4ff9399b2ff767a92ff60616eff3c3c4aff2e2e3cff242534ff222232ff1e1e2eff", + "categorical": "cfcacdff9b8f97ff82777ffff5c2e7ff9f8197ff3d3743ff322c37ff2a242eff231f29ffc8cec7ff8a9889ff737f72ffa6e3a1ff71956eff293c41ff213136ff1b282eff162329ffcecbc7ff989388ff7f7a71fff9e2afff9e9173ff453538ff392b2eff2f2326ff291d23ffc7ccd3ff8a94a4ff737b8aff89b4faff657ea8ff343948ff2b2e3bff232531ff1e202bffd4c8cbffa58c91ff8a7479fff38ba8ffa66778ff423543ff362b37ff2c232eff251e28ffc6cdccff879794ff707e7cff94e2d5ff67948dff2e3b44ff253038ff1d2730ff19222aff", + "base": "f38ba8fff38ba8fff38ba8fff38ba8fff38ba8fff38ba8ff0000000000000000343948ff242534ff00000000000000000000000000000000000000000000000000000000000000001e1e2eff1e1e2eff1e1e2eff1e1e2eff1e1e2eff1e1e2eff1e1e2eff1e1e2eff1e1e2eff1e1e2eff1e1e2eff242534ff2e2e3cff3c3c4aff313244ff24312bff181825ff3c2a32ffa6e3a1fff38ba8ff1e2a25ff32232aff9399b2ffa6e3a1ff9399b2fffab387fff38ba8fff9e2afffa6e3a1ffcdd6f4fff9e2afffcba6f7ffa6adc8ff89b4faff89dcebff89b4faff89dcebff89dcebff89b4fafffab387ffcdd6f4ff45475aff9399b2ff89b4faffcba6f7fffab387ff89dcebffcdd6f4ffa6e3a1fff9e2affff38ba8ff1e1e2eff767a92ff1e1e2eff1e1e2eff1e1e2eff1e1e2effcdd6f4ff767a92ffcdd6f4ffcdd6f4ffcdd6f4ff89b4faff9399b2ff9399b2ff8a94a4ffcdd6f4ff9399b2ff9399b2ffcdd6f4ff767a92fff38ba8fff38ba8ff94e2d5ff94e2d5ffa6e3a1ffa6e3a1fff9e2affff9e2afffcdd6f4ff767a92ff89b4faff89b4faff89b4faff89b4faff9399b2ff", + "dialog": "f38ba8fff38ba8fff38ba8fff38ba8fff38ba8fff38ba8ff0000000000000000343948ff3c3c4aff00000000000000000000000000000000000000003c3c4aff0000000000000000242534ff242534ff242534ff242534ff242534ff242534ff242534ff242534ff242534ff242534ff242534ff242534ff2e2e3cff3c3c4aff313244ff24312bff181825ff3c2a32ffa6e3a1fff38ba8ff1e2a25ff32232aff9399b2ffa6e3a1ff9399b2fffab387fff38ba8fff9e2afffa6e3a1ffcdd6f4fff9e2afffcba6f7ffa6adc8ff89b4faff89dcebff89b4faff89dcebff89dcebff89b4fafffab387ffcdd6f4ff45475aff9399b2ff89b4faffcba6f7fffab387ff89dcebffcdd6f4ffa6e3a1fff9e2affff38ba8ff1e1e2eff767a92ff1e1e2eff1e1e2eff1e1e2eff1e1e2effcdd6f4ff767a92ffcdd6f4ffcdd6f4ffcdd6f4ff89b4faff9399b2ff9399b2ff8a94a4ffcdd6f4ff9399b2ff9399b2ffcdd6f4ff767a92fff38ba8fff38ba8ff94e2d5ff94e2d5ffa6e3a1ffa6e3a1fff9e2affff9e2afffcdd6f4ff767a92ff89b4faff89b4faff89b4faff89b4faff9399b2ff", + "footer": "f38ba8fff38ba8fff38ba8fff38ba8fff38ba8fff38ba8ff0000000000000000343948ff3c3c4aff00000000000000000000000000000000000000003c3c4aff0000000000000000242534ff242534ff242534ff242534ff242534ff242534ff242534ff242534ff242534ff242534ff242534ff242534ff2e2e3cff3c3c4aff313244ff24312bff181825ff3c2a32ffa6e3a1fff38ba8ff1e2a25ff32232aff9399b2ffa6e3a1ff9399b2fffab387fff38ba8fff9e2afffa6e3a1ffcdd6f4fff9e2afffcba6f7ffa6adc8ff89b4faff89dcebff89b4faff89dcebff89dcebff89b4fafffab387ffcdd6f4ff45475aff9399b2ff89b4faffcba6f7fffab387ff89dcebffcdd6f4ffa6e3a1fff9e2affff38ba8ff1e1e2eff767a92ff1e1e2eff1e1e2eff1e1e2eff1e1e2effcdd6f4ff767a92ffcdd6f4ffcdd6f4ffcdd6f4ff89b4faff9399b2ff9399b2ff8a94a4ffcdd6f4ff9399b2ff9399b2ffcdd6f4ff767a92fff38ba8fff38ba8ff94e2d5ff94e2d5ffa6e3a1ffa6e3a1fff9e2affff9e2afffcdd6f4ff767a92ff89b4faff89b4faff89b4faff89b4faff9399b2ff", + "decrease": "8a7479ff8a7479ff8a7479ff8a7479ff8a7479ff8a7479ff0000000000000000657ea8ff2e2e3cff0000000000000000000000000000000000000000000000000000000000000000222232ff222232ff222232ff222232ff222232ff222232ff222232ff222232ff222232ff222232ff222232ff2e2e3cff3c3c4aff60616eff313244ff24312bff181825ff3c2a32ff737f72ff8a7479ff1e2a25ff32232affcdd6f4ff737f72ffcdd6f4fffab387ff8a7479ff7f7a71ff737f72ffcdd6f4ff7f7a71ffcba6f7ffa6adc8ff737b8aff89dcebff737b8aff89dcebff89dcebff737b8afffab387ffcdd6f4ff45475affcdd6f4ff737b8affcba6f7fffab387ff89dcebffcdd6f4ff737f72ff7f7a71ff8a7479ff222232ff9399b2ff222232ff222232ff222232ff222232ffcdd6f4ff9399b2ffcdd6f4ffcdd6f4ffcdd6f4ff737b8affcdd6f4ffcdd6f4ffc7ccd3ffcdd6f4ffcdd6f4ffcdd6f4ffcdd6f4ff9399b2ff8a7479ff8a7479ff707e7cff707e7cff737f72ff737f72ff7f7a71ff7f7a71ffcdd6f4ff9399b2ff737b8aff737b8aff737b8aff737b8affcdd6f4ff", + "increase": "423543ff423543ff423543ff423543ff423543ff423543ff0000000000000000232531ff1e1e2eff00000000000000000000000000000000000000000000000000000000000000001e1e2eff1e1e2eff1e1e2eff1e1e2eff1e1e2eff1e1e2eff1e1e2eff1e1e2eff1e1e2eff1e1e2eff1e1e2eff1e1e2eff222232ff242534ff313244ff24312bff181825ff3c2a32ff293c41ff423543ff1e2a25ff32232aff60616eff293c41ff60616efffab387ff423543ff453538ff293c41ff767a92ff453538ffcba6f7ffa6adc8ff343948ff89dcebff343948ff89dcebff89dcebff343948fffab387ff767a92ff45475aff60616eff343948ffcba6f7fffab387ff89dcebff767a92ff293c41ff453538ff423543ff1e1e2eff3c3c4aff1e1e2eff1e1e2eff1e1e2eff1e1e2eff767a92ff3c3c4aff767a92ff767a92ff767a92ff343948ff60616eff60616eff89b4faff767a92ff60616eff60616eff767a92ff3c3c4aff423543ff423543ff2e3b44ff2e3b44ff293c41ff293c41ff453538ff453538ff767a92ff3c3c4aff343948ff343948ff343948ff343948ff60616eff" + }, + "catppuccin-frappe/dark": { + "modes": ["dark"], + "hues": ["gray","red","yellow","green","cyan","blue","purple","accent","interactive","neutral"], + "hue": "c6d0f5ff949cb8ff7c83a0ff767a8bff4b4e60ff3e4153ff363a4cff34384aff303446ffcec3c3ffa88f8fff947e7dffe78284ffb07172ff544757ff493e4cff413844ff3b333effc9c6c1ff9c9589ff898378ffe5c890ffa69473ff58474fff4c3e46ff44373fff3f3239ffc3c8c1ff909a8aff7e8779ffa6d189ff819b70ff3a4f55ff33464cff2e3f44ff29393effc1c8c7ff8b9a97ff7a8785ff81c8beff6e9891ff3f4d57ff37444eff313d46ff2c3840ffc4c6cdff9096a5ff7f8491ff8da4e2ff7785abff474b5bff3e4250ff373b48ff323642ffcac4c8ff9f919bff8c8088fff4b8e4ffaf8aa5ff4f4959ff44404eff3d3946ff383440ffcac4c8ff9f919bff8c8088fff4b8e4ffaf8aa5ff4f4959ff44404eff3d3946ff383440ffc4c6cdff9096a5ff7f8491ff8da4e2ff7785abff474b5bff3e4250ff373b48ff323642ffc6d0f5ff949cb8ff7c83a0ff767a8bff4b4e60ff3e4153ff363a4cff34384aff303446ff", + "categorical": "cac4c8ff9f919bff8c8088fff4b8e4ffaf8aa5ff4f4959ff44404eff3d3946ff383440ffc3c8c1ff909a8aff7e8779ffa6d189ff819b70ff3a4f55ff33464cff2e3f44ff29393effc9c6c1ff9c9589ff898378ffe5c890ffa69473ff58474fff4c3e46ff44373fff3f3239ffc4c6cdff9096a5ff7f8491ff8da4e2ff7785abff474b5bff3e4250ff373b48ff323642ffcec3c3ffa88f8fff947e7dffe78284ffb07172ff544757ff493e4cff413844ff3b333effc1c8c7ff8b9a97ff7a8785ff81c8beff6e9891ff3f4d57ff37444eff313d46ff2c3840ff", + "base": "e78284ffe78284ffe78284ffe78284ffe78284ffe78284ff0000000000000000474b5bff363a4cff0000000000000000000000000000000000000000000000000000000000000000303446ff303446ff303446ff303446ff303446ff303446ff303446ff303446ff303446ff303446ff303446ff363a4cff3e4153ff4b4e60ff414559ff29342bff292c3cff3a2a31ffa6d189ffe78284ff223025ff2f242bff949cb8ffa6d189ff949cb8ffef9f76ffe78284ffe5c890ffa6d189ffc6d0f5ffe5c890ffca9ee6ffa5adceff8da4e2ff99d1dbff8da4e2ff99d1dbff99d1dbff8da4e2ffef9f76ffc6d0f5ff51576dff949cb8ff8da4e2ffca9ee6ffef9f76ff99d1dbffc6d0f5ffa6d189ffe5c890ffe78284ff303446ff7c83a0ff303446ff303446ff303446ff303446ffc6d0f5ff7c83a0ffc6d0f5ffc6d0f5ffc6d0f5ff8da4e2ff949cb8ff949cb8ff9096a5ffc6d0f5ff949cb8ff949cb8ffc6d0f5ff7c83a0ffe78284ffe78284ff81c8beff81c8beffa6d189ffa6d189ffe5c890ffe5c890ffc6d0f5ff7c83a0ff8da4e2ff8da4e2ff8da4e2ff8da4e2ff949cb8ff", + "dialog": "e78284ffe78284ffe78284ffe78284ffe78284ffe78284ff0000000000000000474b5bff4b4e60ff00000000000000000000000000000000000000004b4e60ff0000000000000000363a4cff363a4cff363a4cff363a4cff363a4cff363a4cff363a4cff363a4cff363a4cff363a4cff363a4cff363a4cff3e4153ff4b4e60ff414559ff29342bff292c3cff3a2a31ffa6d189ffe78284ff223025ff2f242bff949cb8ffa6d189ff949cb8ffef9f76ffe78284ffe5c890ffa6d189ffc6d0f5ffe5c890ffca9ee6ffa5adceff8da4e2ff99d1dbff8da4e2ff99d1dbff99d1dbff8da4e2ffef9f76ffc6d0f5ff51576dff949cb8ff8da4e2ffca9ee6ffef9f76ff99d1dbffc6d0f5ffa6d189ffe5c890ffe78284ff303446ff7c83a0ff303446ff303446ff303446ff303446ffc6d0f5ff7c83a0ffc6d0f5ffc6d0f5ffc6d0f5ff8da4e2ff949cb8ff949cb8ff9096a5ffc6d0f5ff949cb8ff949cb8ffc6d0f5ff7c83a0ffe78284ffe78284ff81c8beff81c8beffa6d189ffa6d189ffe5c890ffe5c890ffc6d0f5ff7c83a0ff8da4e2ff8da4e2ff8da4e2ff8da4e2ff949cb8ff", + "footer": "e78284ffe78284ffe78284ffe78284ffe78284ffe78284ff0000000000000000474b5bff4b4e60ff00000000000000000000000000000000000000004b4e60ff0000000000000000363a4cff363a4cff363a4cff363a4cff363a4cff363a4cff363a4cff363a4cff363a4cff363a4cff363a4cff363a4cff3e4153ff4b4e60ff414559ff29342bff292c3cff3a2a31ffa6d189ffe78284ff223025ff2f242bff949cb8ffa6d189ff949cb8ffef9f76ffe78284ffe5c890ffa6d189ffc6d0f5ffe5c890ffca9ee6ffa5adceff8da4e2ff99d1dbff8da4e2ff99d1dbff99d1dbff8da4e2ffef9f76ffc6d0f5ff51576dff949cb8ff8da4e2ffca9ee6ffef9f76ff99d1dbffc6d0f5ffa6d189ffe5c890ffe78284ff303446ff7c83a0ff303446ff303446ff303446ff303446ffc6d0f5ff7c83a0ffc6d0f5ffc6d0f5ffc6d0f5ff8da4e2ff949cb8ff949cb8ff9096a5ffc6d0f5ff949cb8ff949cb8ffc6d0f5ff7c83a0ffe78284ffe78284ff81c8beff81c8beffa6d189ffa6d189ffe5c890ffe5c890ffc6d0f5ff7c83a0ff8da4e2ff8da4e2ff8da4e2ff8da4e2ff949cb8ff", + "decrease": "947e7dff947e7dff947e7dff947e7dff947e7dff947e7dff00000000000000007785abff3e4153ff000000000000000000000000000000000000000000000000000000000000000034384aff34384aff34384aff34384aff34384aff34384aff34384aff34384aff34384aff34384aff34384aff3e4153ff4b4e60ff767a8bff414559ff29342bff292c3cff3a2a31ff7e8779ff947e7dff223025ff2f242bffc6d0f5ff7e8779ffc6d0f5ffef9f76ff947e7dff898378ff7e8779ffc6d0f5ff898378ffca9ee6ffa5adceff7f8491ff99d1dbff7f8491ff99d1dbff99d1dbff7f8491ffef9f76ffc6d0f5ff51576dffc6d0f5ff7f8491ffca9ee6ffef9f76ff99d1dbffc6d0f5ff7e8779ff898378ff947e7dff34384aff949cb8ff34384aff34384aff34384aff34384affc6d0f5ff949cb8ffc6d0f5ffc6d0f5ffc6d0f5ff7f8491ffc6d0f5ffc6d0f5ffc4c6cdffc6d0f5ffc6d0f5ffc6d0f5ffc6d0f5ff949cb8ff947e7dff947e7dff7a8785ff7a8785ff7e8779ff7e8779ff898378ff898378ffc6d0f5ff949cb8ff7f8491ff7f8491ff7f8491ff7f8491ffc6d0f5ff", + "increase": "544757ff544757ff544757ff544757ff544757ff544757ff0000000000000000373b48ff303446ff0000000000000000000000000000000000000000000000000000000000000000303446ff303446ff303446ff303446ff303446ff303446ff303446ff303446ff303446ff303446ff303446ff303446ff34384aff363a4cff414559ff29342bff292c3cff3a2a31ff3a4f55ff544757ff223025ff2f242bff767a8bff3a4f55ff767a8bffef9f76ff544757ff58474fff3a4f55ff7c83a0ff58474fffca9ee6ffa5adceff474b5bff99d1dbff474b5bff99d1dbff99d1dbff474b5bffef9f76ff7c83a0ff51576dff767a8bff474b5bffca9ee6ffef9f76ff99d1dbff7c83a0ff3a4f55ff58474fff544757ff303446ff4b4e60ff303446ff303446ff303446ff303446ff7c83a0ff4b4e60ff7c83a0ff7c83a0ff7c83a0ff474b5bff767a8bff767a8bff8da4e2ff7c83a0ff767a8bff767a8bff7c83a0ff4b4e60ff544757ff544757ff3f4d57ff3f4d57ff3a4f55ff3a4f55ff58474fff58474fff7c83a0ff4b4e60ff474b5bff474b5bff474b5bff474b5bff767a8bff" + }, + "catppuccin-macchiato/dark": { + "modes": ["dark"], + "hues": ["gray","red","yellow","green","cyan","blue","purple","accent","interactive","neutral"], + "hue": "cad3f5ff939ab7ff787e99ff696b7bff414355ff333647ff2a2d40ff282b3dff24273affd1c6c7ffa68d90ff8e787affed8796ffa96b73ff493c4bff3d3240ff342b38ff2e2632ffcbc9c4ff9a9488ff837e74ffeed49fffa09172ff4d3b41ff413238ff382a31ff33252bffc6cbc4ff8d9989ff788274ffa6da95ff78976eff2d4449ff26393fff213238ff1c2d32ffc4cbcaff899896ff748280ff8bd5caff6a958eff33424cff2a3741ff24313aff1f2b34ffc5c9d1ff8c95a5ff777f8dff8aadf4ff6c81acff3b4050ff313544ff2a2e3cff252936ffcdc7cbff9d9099ff867b83fff5bde6ffa6849dff443d4dff393341ff312c39ff2c2734ffcdc7cbff9d9099ff867b83fff5bde6ffa6849dff443d4dff393341ff312c39ff2c2734ffc5c9d1ff8c95a5ff777f8dff8aadf4ff6c81acff3b4050ff313544ff2a2e3cff252936ffcad3f5ff939ab7ff787e99ff696b7bff414355ff333647ff2a2d40ff282b3dff24273aff", + "categorical": "cdc7cbff9d9099ff867b83fff5bde6ffa6849dff443d4dff393341ff312c39ff2c2734ffc6cbc4ff8d9989ff788274ffa6da95ff78976eff2d4449ff26393fff213238ff1c2d32ffcbc9c4ff9a9488ff837e74ffeed49fffa09172ff4d3b41ff413238ff382a31ff33252bffc5c9d1ff8c95a5ff777f8dff8aadf4ff6c81acff3b4050ff313544ff2a2e3cff252936ffd1c6c7ffa68d90ff8e787affed8796ffa96b73ff493c4bff3d3240ff342b38ff2e2632ffc4cbcaff899896ff748280ff8bd5caff6a958eff33424cff2a3741ff24313aff1f2b34ff", + "base": "ed8796ffed8796ffed8796ffed8796ffed8796ffed8796ff00000000000000003b4050ff2a2d40ff000000000000000000000000000000000000000000000000000000000000000024273aff24273aff24273aff24273aff24273aff24273aff24273aff24273aff24273aff24273aff24273aff2a2d40ff333647ff414355ff363a4fff29342bff1e2030ff3a2a31ffa6da95ffed8796ff223025ff2f242bff939ab7ffa6da95ff939ab7fff5a97fffed8796ffeed49fffa6da95ffcad3f5ffeed49fffc6a0f6ffa5adcbff8aadf4ff91d7e3ff8aadf4ff91d7e3ff91d7e3ff8aadf4fff5a97fffcad3f5ff494d64ff939ab7ff8aadf4ffc6a0f6fff5a97fff91d7e3ffcad3f5ffa6da95ffeed49fffed8796ff24273aff787e99ff24273aff24273aff24273aff24273affcad3f5ff787e99ffcad3f5ffcad3f5ffcad3f5ff8aadf4ff939ab7ff939ab7ff8c95a5ffcad3f5ff939ab7ff939ab7ffcad3f5ff787e99ffed8796ffed8796ff8bd5caff8bd5caffa6da95ffa6da95ffeed49fffeed49fffcad3f5ff787e99ff8aadf4ff8aadf4ff8aadf4ff8aadf4ff939ab7ff", + "dialog": "ed8796ffed8796ffed8796ffed8796ffed8796ffed8796ff00000000000000003b4050ff414355ff0000000000000000000000000000000000000000414355ff00000000000000002a2d40ff2a2d40ff2a2d40ff2a2d40ff2a2d40ff2a2d40ff2a2d40ff2a2d40ff2a2d40ff2a2d40ff2a2d40ff2a2d40ff333647ff414355ff363a4fff29342bff1e2030ff3a2a31ffa6da95ffed8796ff223025ff2f242bff939ab7ffa6da95ff939ab7fff5a97fffed8796ffeed49fffa6da95ffcad3f5ffeed49fffc6a0f6ffa5adcbff8aadf4ff91d7e3ff8aadf4ff91d7e3ff91d7e3ff8aadf4fff5a97fffcad3f5ff494d64ff939ab7ff8aadf4ffc6a0f6fff5a97fff91d7e3ffcad3f5ffa6da95ffeed49fffed8796ff24273aff787e99ff24273aff24273aff24273aff24273affcad3f5ff787e99ffcad3f5ffcad3f5ffcad3f5ff8aadf4ff939ab7ff939ab7ff8c95a5ffcad3f5ff939ab7ff939ab7ffcad3f5ff787e99ffed8796ffed8796ff8bd5caff8bd5caffa6da95ffa6da95ffeed49fffeed49fffcad3f5ff787e99ff8aadf4ff8aadf4ff8aadf4ff8aadf4ff939ab7ff", + "footer": "ed8796ffed8796ffed8796ffed8796ffed8796ffed8796ff00000000000000003b4050ff414355ff0000000000000000000000000000000000000000414355ff00000000000000002a2d40ff2a2d40ff2a2d40ff2a2d40ff2a2d40ff2a2d40ff2a2d40ff2a2d40ff2a2d40ff2a2d40ff2a2d40ff2a2d40ff333647ff414355ff363a4fff29342bff1e2030ff3a2a31ffa6da95ffed8796ff223025ff2f242bff939ab7ffa6da95ff939ab7fff5a97fffed8796ffeed49fffa6da95ffcad3f5ffeed49fffc6a0f6ffa5adcbff8aadf4ff91d7e3ff8aadf4ff91d7e3ff91d7e3ff8aadf4fff5a97fffcad3f5ff494d64ff939ab7ff8aadf4ffc6a0f6fff5a97fff91d7e3ffcad3f5ffa6da95ffeed49fffed8796ff24273aff787e99ff24273aff24273aff24273aff24273affcad3f5ff787e99ffcad3f5ffcad3f5ffcad3f5ff8aadf4ff939ab7ff939ab7ff8c95a5ffcad3f5ff939ab7ff939ab7ffcad3f5ff787e99ffed8796ffed8796ff8bd5caff8bd5caffa6da95ffa6da95ffeed49fffeed49fffcad3f5ff787e99ff8aadf4ff8aadf4ff8aadf4ff8aadf4ff939ab7ff", + "decrease": "8e787aff8e787aff8e787aff8e787aff8e787aff8e787aff00000000000000006c81acff333647ff0000000000000000000000000000000000000000000000000000000000000000282b3dff282b3dff282b3dff282b3dff282b3dff282b3dff282b3dff282b3dff282b3dff282b3dff282b3dff333647ff414355ff696b7bff363a4fff29342bff1e2030ff3a2a31ff788274ff8e787aff223025ff2f242bffcad3f5ff788274ffcad3f5fff5a97fff8e787aff837e74ff788274ffcad3f5ff837e74ffc6a0f6ffa5adcbff777f8dff91d7e3ff777f8dff91d7e3ff91d7e3ff777f8dfff5a97fffcad3f5ff494d64ffcad3f5ff777f8dffc6a0f6fff5a97fff91d7e3ffcad3f5ff788274ff837e74ff8e787aff282b3dff939ab7ff282b3dff282b3dff282b3dff282b3dffcad3f5ff939ab7ffcad3f5ffcad3f5ffcad3f5ff777f8dffcad3f5ffcad3f5ffc5c9d1ffcad3f5ffcad3f5ffcad3f5ffcad3f5ff939ab7ff8e787aff8e787aff748280ff748280ff788274ff788274ff837e74ff837e74ffcad3f5ff939ab7ff777f8dff777f8dff777f8dff777f8dffcad3f5ff", + "increase": "493c4bff493c4bff493c4bff493c4bff493c4bff493c4bff00000000000000002a2e3cff24273aff000000000000000000000000000000000000000000000000000000000000000024273aff24273aff24273aff24273aff24273aff24273aff24273aff24273aff24273aff24273aff24273aff24273aff282b3dff2a2d40ff363a4fff29342bff1e2030ff3a2a31ff2d4449ff493c4bff223025ff2f242bff696b7bff2d4449ff696b7bfff5a97fff493c4bff4d3b41ff2d4449ff787e99ff4d3b41ffc6a0f6ffa5adcbff3b4050ff91d7e3ff3b4050ff91d7e3ff91d7e3ff3b4050fff5a97fff787e99ff494d64ff696b7bff3b4050ffc6a0f6fff5a97fff91d7e3ff787e99ff2d4449ff4d3b41ff493c4bff24273aff414355ff24273aff24273aff24273aff24273aff787e99ff414355ff787e99ff787e99ff787e99ff3b4050ff696b7bff696b7bff8aadf4ff787e99ff696b7bff696b7bff787e99ff414355ff493c4bff493c4bff33424cff33424cff2d4449ff2d4449ff4d3b41ff4d3b41ff787e99ff414355ff3b4050ff3b4050ff3b4050ff3b4050ff696b7bff" + }, + "cobalt2/light": { + "modes": ["light","dark"], + "hues": ["gray","red","orange","green","cyan","blue","purple","accent","interactive","neutral"], + "hue": "193549ff5c6b7dff8997a3ffb2b5baffccd0d5ffdbdee3fff0f2f5fff9fbfdffffffffff5d3e42ffa0898cffcfb0b4ffe91e63fff3aab4fffddbe0ffffeceefffff6f7fffffbfcff554435ff998d83ffc6b6a7ffff9800fff3cba6fff3e1d0fffaefe6fffdf8f3fffefcfaff3e4c3dff899388ffafbeafff4caf50ffb1d3afffdae9d9ffebf5ebfff6faf5fffbfdfbff3a4b4eff869294ffacbdc0ff00acc1ffa8d2d9ffd6e8ecffe9f4f6fff4fafbfffbfdfdff3c495aff87919dffaebaccff0066ccff9bbae3ffd7e6f9ffeaf2fefff5f9fffffbfdffff464460ff8e8da1ffb7b6d2ff7c4dffffbab4f7ffe2e1fdfff0f0fffff8f8fffffcfcffff3a4b4eff869294ffacbdc0ff00acc1ffa8d2d9ffd6e8ecffe9f4f6fff4fafbfffbfdfdff3c495aff87919dffaebaccff0066ccff9bbae3ffd7e6f9ffeaf2fefff5f9fffffbfdffff193549ff5c6b7dff8997a3ffb2b5baffccd0d5ffdbdee3fff0f2f5fff9fbfdffffffffff", + "categorical": "464460ff8e8da1ffb7b6d2ff7c4dffffbab4f7ffe2e1fdfff0f0fffff8f8fffffcfcffff3a4b4eff869294ffacbdc0ff00acc1ffa8d2d9ffd6e8ecffe9f4f6fff4fafbfffbfdfdff3e4c3dff899388ffafbeafff4caf50ffb1d3afffdae9d9ffebf5ebfff6faf5fffbfdfbff554435ff998d83ffc6b6a7ffff9800fff3cba6fff3e1d0fffaefe6fffdf8f3fffefcfaff3c495aff87919dffaebaccff0066ccff9bbae3ffd7e6f9ffeaf2fefff5f9fffffbfdffff5d3e42ffa0898cffcfb0b4ffe91e63fff3aab4fffddbe0ffffeceefffff6f7fffffbfcff", + "base": "e91e63ffe91e63ffe91e63ffe91e63ffe91e63ffe91e63ff0000000000000000d7e6f9fff0f2f5ff0000000000000000000000000000000000000000000000000000000000000000fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0f2f5ffdbdee3ffccd0d5ffd3dae3ffe8f5e9fff5f7faffffebeeff4caf50ffe91e63ffe8f5e9ffffebeeff5c6b7dff4caf50ff5c6b7dff00acc1ffe91e63ff5c6b7dff4caf50ff193549ffff5722ffff9800ffd3dae3ff0066ccff00acc1ff0066ccff00acc1ff00acc1ff0066ccffe91e63ff193549ff0066ccff5c6b7dffff9800ffff5722ffe91e63ffff5722ff193549ff4caf50ff00acc1ff193549ffffffffff8997a3ffffffffffffffffffffffffffffffffff193549ff8997a3ff193549ff193549ff193549ff0066ccff5c6b7dff5c6b7dff87919dff193549ff5c6b7dff5c6b7dff193549ff8997a3ffe91e63ffe91e63ffff5722ffff5722ff4caf50ff4caf50ffff9800ffff9800ff193549ff8997a3ff0066ccff0066ccff0066ccff0066ccff5c6b7dff", + "dialog": "e91e63ffe91e63ffe91e63ffe91e63ffe91e63ffe91e63ff0000000000000000d7e6f9ffdbdee3ff0000000000000000000000000000000000000000dbdee3ff0000000000000000f9fbfdfff9fbfdfff9fbfdfff9fbfdfff9fbfdfff9fbfdfff9fbfdfff9fbfdfff9fbfdfff9fbfdfff9fbfdfff0f2f5fff0f2f5ffccd0d5ffd3dae3ffe8f5e9fff5f7faffffebeeff4caf50ffe91e63ffe8f5e9ffffebeeff5c6b7dff4caf50ff5c6b7dff00acc1ffe91e63ff5c6b7dff4caf50ff193549ffff5722ffff9800ffd3dae3ff0066ccff00acc1ff0066ccff00acc1ff00acc1ff0066ccffe91e63ff193549ff0066ccff5c6b7dffff9800ffff5722ffe91e63ffff5722ff193549ff4caf50ff00acc1ff193549ffffffffff8997a3ffffffffffffffffffffffffffffffffff193549ff8997a3ff193549ff193549ff193549ff0066ccff5c6b7dff5c6b7dff87919dff193549ff5c6b7dff5c6b7dff193549ff8997a3ffe91e63ffe91e63ffff5722ffff5722ff4caf50ff4caf50ffff9800ffff9800ff193549ff8997a3ff0066ccff0066ccff0066ccff0066ccff5c6b7dff", + "footer": "e91e63ffe91e63ffe91e63ffe91e63ffe91e63ffe91e63ff0000000000000000d7e6f9ffdbdee3ff0000000000000000000000000000000000000000dbdee3ff0000000000000000f9fbfdfff9fbfdfff9fbfdfff9fbfdfff9fbfdfff9fbfdfff9fbfdfff9fbfdfff9fbfdfff9fbfdfff9fbfdfff0f2f5fff0f2f5ffccd0d5ffd3dae3ffe8f5e9fff5f7faffffebeeff4caf50ffe91e63ffe8f5e9ffffebeeff5c6b7dff4caf50ff5c6b7dff00acc1ffe91e63ff5c6b7dff4caf50ff193549ffff5722ffff9800ffd3dae3ff0066ccff00acc1ff0066ccff00acc1ff00acc1ff0066ccffe91e63ff193549ff0066ccff5c6b7dffff9800ffff5722ffe91e63ffff5722ff193549ff4caf50ff00acc1ff193549ffffffffff8997a3ffffffffffffffffffffffffffffffffff193549ff8997a3ff193549ff193549ff193549ff0066ccff5c6b7dff5c6b7dff87919dff193549ff5c6b7dff5c6b7dff193549ff8997a3ffe91e63ffe91e63ffff5722ffff5722ff4caf50ff4caf50ffff9800ffff9800ff193549ff8997a3ff0066ccff0066ccff0066ccff0066ccff5c6b7dff", + "decrease": "cfb0b4ffcfb0b4ffcfb0b4ffcfb0b4ffcfb0b4ffcfb0b4ff00000000000000009bbae3ffdbdee3ff0000000000000000000000000000000000000000000000000000000000000000f9fbfdfff9fbfdfff9fbfdfff9fbfdfff9fbfdfff9fbfdfff9fbfdfff9fbfdfff9fbfdfff9fbfdfff9fbfdffdbdee3ffccd0d5ffb2b5baffd3dae3ffe8f5e9fff5f7faffffebeeffafbeafffcfb0b4ffe8f5e9ffffebeeff193549ffafbeafff193549ffacbdc0ffcfb0b4ff193549ffafbeafff193549ffff5722ffc6b6a7ffd3dae3ffaebaccffacbdc0ffaebaccffacbdc0ffacbdc0ffaebaccffcfb0b4ff193549ffaebaccff193549ffc6b6a7ffff5722ffcfb0b4ffff5722ff193549ffafbeafffacbdc0ff193549fff9fbfdff5c6b7dfff9fbfdfff9fbfdfff9fbfdfff9fbfdff193549ff5c6b7dff193549ff193549ff193549ffaebaccff193549ff193549ff3c495aff193549ff193549ff193549ff193549ff5c6b7dffcfb0b4ffcfb0b4ffff5722ffff5722ffafbeafffafbeafffc6b6a7ffc6b6a7ff193549ff5c6b7dffaebaccffaebaccffaebaccffaebaccff193549ff", + "increase": "fddbe0fffddbe0fffddbe0fffddbe0fffddbe0fffddbe0ff0000000000000000f5f9ffffffffffff0000000000000000000000000000000000000000000000000000000000000000fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff9fbfdfff0f2f5ffd3dae3ffe8f5e9fff5f7faffffebeeffdae9d9fffddbe0ffe8f5e9ffffebeeffb2b5baffdae9d9ffb2b5baffd6e8ecfffddbe0ffb2b5baffdae9d9ff8997a3ffff5722fff3e1d0ffd3dae3ffd7e6f9ffd6e8ecffd7e6f9ffd6e8ecffd6e8ecffd7e6f9fffddbe0ff8997a3ffd7e6f9ffb2b5bafff3e1d0ffff5722fffddbe0ffff5722ff8997a3ffdae9d9ffd6e8ecff8997a3ffffffffffccd0d5ffffffffffffffffffffffffffffffffff8997a3ffccd0d5ff8997a3ff8997a3ff8997a3ffd7e6f9ffb2b5baffb2b5baff0066ccff8997a3ffb2b5baffb2b5baff8997a3ffccd0d5fffddbe0fffddbe0ffff5722ffff5722ffdae9d9ffdae9d9fff3e1d0fff3e1d0ff8997a3ffccd0d5ffd7e6f9ffd7e6f9ffd7e6f9ffd7e6f9ffb2b5baff" + }, + "cobalt2/dark": { + "modes": ["light","dark"], + "hues": ["gray","red","orange","yellow","green","blue","purple","accent","interactive","neutral"], + "hue": "ffffffffadb7c9ff8e9ca7ff547c9bff2e506aff22435cff213b4eff20394cff193549fffeeff3ffd29faeffb88a97ffff0088ffc44476ff4d4564ff413c56ff39354bff3b2f3cfffcf1e8ffc2ab94ffa99580ffff9d00ffb87d3aff2f5044ff29463dff243f36ff203931fff8f3e7ffbbae92ffa3987effffc600ffb3913aff2c5048ff264640ff223f39ff1e3934ffe9f7f3ff96b8b0ff82a099ff2affdfff46b09dff2c4e57ff26444cff223d44ff1e383fffecf4ffff9bb2ceff869bb4ff0088ffff3c79c2ff354b61ff2d4154ff293a4bff243544fff5f1feffb4a9caff9d93b1ff9a5febff8262b6ff3f4963ff363f56ff2f384cff2b3345ffe9f7f3ff96b8b0ff82a099ff2affdfff46b09dff2c4e57ff26444cff223d44ff1e383fffecf4ffff9bb2ceff869bb4ff0088ffff3c79c2ff354b61ff2d4154ff293a4bff243544ffffffffffadb7c9ff8e9ca7ff547c9bff2e506aff22435cff213b4eff20394cff193549ff", + "categorical": "f5f1feffb4a9caff9d93b1ff9a5febff8262b6ff3f4963ff363f56ff2f384cff2b3345ffe9f7f3ff96b8b0ff82a099ff2affdfff46b09dff2c4e57ff26444cff223d44ff1e383ffff8f3e7ffbbae92ffa3987effffc600ffb3913aff2c5048ff264640ff223f39ff1e3934ffecf4ffff9bb2ceff869bb4ff0088ffff3c79c2ff354b61ff2d4154ff293a4bff243544fffeeff3ffd29faeffb88a97ffff0088ffc44476ff4d4564ff413c56ff39354bff3b2f3cfffcf1e8ffc2ab94ffa99580ffff9d00ffb87d3aff2f5044ff29463dff243f36ff203931ff", + "base": "ff0088ffff0088ffff0088ffff0088ffff0088ffff0088ff0000000000000000354b61ff213b4eff0000000000000000000000000000000000000000000000000000000000000000193549ff193549ff193549ff193549ff193549ff193549ff193549ff193549ff193549ff193549ff193549ff213b4eff22435cff2e506aff1f4662ff1a3a2aff122738ff3a1a2affb9ff9fffff5fb3ff1a3a2aff3a1a2affadb7c9ff9eff80ffadb7c9ff2affdfffff0088ffadb7c9ff9eff80ffffffffffff9d00ffffc600ff2d5a7bff0088ffff2affdfff0088ffff2affdfff2affdfff0088ffffff628cffffffffff0088ffff0088ffffffc600ffff9d00ffff628cffff9d00ffffffffff9eff80ff2affdfffffffffff193549ff8e9ca7ff193549ff193549ff193549ff193549ffffffffff8e9ca7ffffffffffffffffffffffffff0088ffffadb7c9ffadb7c9ff9bb2ceffffffffffadb7c9ffadb7c9ffffffffff8e9ca7ffff0088ffff0088ffff9d00ffff9d00ff9eff80ff9eff80ffffc600ffffc600ffffffffff8e9ca7ff0088ffff0088ffff0088ffff0088ffffadb7c9ff", + "dialog": "ff0088ffff0088ffff0088ffff0088ffff0088ffff0088ff0000000000000000354b61ff2e506aff00000000000000000000000000000000000000002e506aff0000000000000000213b4eff213b4eff213b4eff213b4eff213b4eff213b4eff213b4eff213b4eff213b4eff213b4eff213b4eff213b4eff22435cff2e506aff1f4662ff1a3a2aff122738ff3a1a2affb9ff9fffff5fb3ff1a3a2aff3a1a2affadb7c9ff9eff80ffadb7c9ff2affdfffff0088ffadb7c9ff9eff80ffffffffffff9d00ffffc600ff2d5a7bff0088ffff2affdfff0088ffff2affdfff2affdfff0088ffffff628cffffffffff0088ffff0088ffffffc600ffff9d00ffff628cffff9d00ffffffffff9eff80ff2affdfffffffffff193549ff8e9ca7ff193549ff193549ff193549ff193549ffffffffff8e9ca7ffffffffffffffffffffffffff0088ffffadb7c9ffadb7c9ff9bb2ceffffffffffadb7c9ffadb7c9ffffffffff8e9ca7ffff0088ffff0088ffff9d00ffff9d00ff9eff80ff9eff80ffffc600ffffc600ffffffffff8e9ca7ff0088ffff0088ffff0088ffff0088ffffadb7c9ff", + "footer": "ff0088ffff0088ffff0088ffff0088ffff0088ffff0088ff0000000000000000354b61ff2e506aff00000000000000000000000000000000000000002e506aff0000000000000000213b4eff213b4eff213b4eff213b4eff213b4eff213b4eff213b4eff213b4eff213b4eff213b4eff213b4eff213b4eff22435cff2e506aff1f4662ff1a3a2aff122738ff3a1a2affb9ff9fffff5fb3ff1a3a2aff3a1a2affadb7c9ff9eff80ffadb7c9ff2affdfffff0088ffadb7c9ff9eff80ffffffffffff9d00ffffc600ff2d5a7bff0088ffff2affdfff0088ffff2affdfff2affdfff0088ffffff628cffffffffff0088ffff0088ffffffc600ffff9d00ffff628cffff9d00ffffffffff9eff80ff2affdfffffffffff193549ff8e9ca7ff193549ff193549ff193549ff193549ffffffffff8e9ca7ffffffffffffffffffffffffff0088ffffadb7c9ffadb7c9ff9bb2ceffffffffffadb7c9ffadb7c9ffffffffff8e9ca7ffff0088ffff0088ffff9d00ffff9d00ff9eff80ff9eff80ffffc600ffffc600ffffffffff8e9ca7ff0088ffff0088ffff0088ffff0088ffffadb7c9ff", + "decrease": "b88a97ffb88a97ffb88a97ffb88a97ffb88a97ffb88a97ff00000000000000003c79c2ff22435cff000000000000000000000000000000000000000000000000000000000000000020394cff20394cff20394cff20394cff20394cff20394cff20394cff20394cff20394cff20394cff20394cff22435cff2e506aff547c9bff1f4662ff1a3a2aff122738ff3a1a2affb9ff9fffff5fb3ff1a3a2aff3a1a2affffffffff9eff80ffffffffff82a099ffb88a97ffffffffff9eff80ffffffffffa99580ffa3987eff2d5a7bff869bb4ff82a099ff869bb4ff82a099ff82a099ff869bb4ffff628cffffffffff869bb4ff869bb4ffa3987effa99580ffff628cffa99580ffffffffff9eff80ff82a099ffffffffff20394cffadb7c9ff20394cff20394cff20394cff20394cffffffffffadb7c9ffffffffffffffffffffffffff869bb4ffffffffffffffffffecf4ffffffffffffffffffffffffffffffffffffadb7c9ffb88a97ffb88a97ffa99580ffa99580ff9eff80ff9eff80ffa3987effa3987effffffffffadb7c9ff869bb4ff869bb4ff869bb4ff869bb4ffffffffff", + "increase": "4d4564ff4d4564ff4d4564ff4d4564ff4d4564ff4d4564ff0000000000000000293a4bff193549ff0000000000000000000000000000000000000000000000000000000000000000193549ff193549ff193549ff193549ff193549ff193549ff193549ff193549ff193549ff193549ff193549ff193549ff20394cff213b4eff1f4662ff1a3a2aff122738ff3a1a2affb9ff9fffff5fb3ff1a3a2aff3a1a2aff547c9bff9eff80ff547c9bff2c4e57ff4d4564ff547c9bff9eff80ff8e9ca7ff2f5044ff2c5048ff2d5a7bff354b61ff2c4e57ff354b61ff2c4e57ff2c4e57ff354b61ffff628cff8e9ca7ff354b61ff354b61ff2c5048ff2f5044ffff628cff2f5044ff8e9ca7ff9eff80ff2c4e57ff8e9ca7ff193549ff2e506aff193549ff193549ff193549ff193549ff8e9ca7ff2e506aff8e9ca7ff8e9ca7ff8e9ca7ff354b61ff547c9bff547c9bff0088ffff8e9ca7ff547c9bff547c9bff8e9ca7ff2e506aff4d4564ff4d4564ff2f5044ff2f5044ff9eff80ff9eff80ff2c5048ff2c5048ff8e9ca7ff2e506aff354b61ff354b61ff354b61ff354b61ff547c9bff" + }, + "cursor/light": { + "modes": ["light","dark"], + "hues": ["gray","red","green","cyan","accent","interactive","neutral"], + "hue": "141414ff141414ad818181ffb2b2b2ffcdcdcdffdbdbdbffefefeffff8f8f8fffcfcfcff382022ff3e2e30ffb79d9fffcf2d56ffe6a7adfff7dadcfffbeaebfffcf3f4fffcf8f9ff1e2b25ff2d3531ff9ba8a2ff1f8a65ffa2c3b3ffd7e5deffe8f1ecfff3f7f5fff8faf9ff22292aff303435ff9fa6a8ff6f9ba6ffb8c9cdffdbe3e5ffebeff0fff4f6f7fff9fafaff22292aff303435ff9fa6a8ff6f9ba6ffb8c9cdffdbe3e5ffebeff0fff4f6f7fff9fafaff22292aff303435ff9fa6a8ff6f9ba6ffb8c9cdffdbe3e5ffebeff0fff4f6f7fff9fafaff141414ff141414ad818181ffb2b2b2ffcdcdcdffdbdbdbffefefeffff8f8f8fffcfcfcff", + "categorical": "22292aff303435ff9fa6a8ff6f9ba6ffb8c9cdffdbe3e5ffebeff0fff4f6f7fff9fafaff1e2b25ff2d3531ff9ba8a2ff1f8a65ffa2c3b3ffd7e5deffe8f1ecfff3f7f5fff8faf9ff382022ff3e2e30ffb79d9fffcf2d56ffe6a7adfff7dadcfffbeaebfffcf3f4fffcf8f9ff", + "base": "cf2d56ffcf2d56ffcf2d56ffcf2d56ffcf2d56ffcf2d56ff0000000000000000dbe3e5ffefefefff0000000000000000000000000000000000000000000000000000000000000000fcfcfcfffcfcfcfffcfcfcfffcfcfcfffcfcfcfffcfcfcfffcfcfcfffcfcfcfffcfcfcfffcfcfcfffcfcfcffefefefffdbdbdbffcdcdcdff141414131f8a651ff3f3f3ffcf2d561455a583ffe75e78ff1f8a651fcf2d5614141414ad1f8a65ff141414ad141414adcf2d56ff141414ad1f8a65ff141414ff141414ff206595ff141414ad206595ff141414ad206595ff141414ad141414ad141414ff141414ff141414ff6f9ba6ff141414addb704bffb3003fffb8448bff141414ff141414ff9e94d5ff206595ff141414fffcfcfcff818181fffcfcfcfffcfcfcfffcfcfcfffcfcfcff141414ff818181ff141414ff141414ff141414ff6f9ba6ff141414ad141414ad303435ff141414ff141414ad141414ad141414ff818181ffcf2d56ffcf2d56ff3c7cabff3c7cabff1f8a65ff1f8a65ffdb704bffdb704bff141414ff818181ff6f9ba6ff6f9ba6ff6f9ba6ff6f9ba6ff141414ad", + "dialog": "cf2d56ffcf2d56ffcf2d56ffcf2d56ffcf2d56ffcf2d56ff0000000000000000dbe3e5ffdbdbdbff0000000000000000000000000000000000000000dbdbdbff0000000000000000f8f8f8fff8f8f8fff8f8f8fff8f8f8fff8f8f8fff8f8f8fff8f8f8fff8f8f8fff8f8f8fff8f8f8fff8f8f8ffefefefffefefefffcdcdcdff141414131f8a651ff3f3f3ffcf2d561455a583ffe75e78ff1f8a651fcf2d5614141414ad1f8a65ff141414ad141414adcf2d56ff141414ad1f8a65ff141414ff141414ff206595ff141414ad206595ff141414ad206595ff141414ad141414ad141414ff141414ff141414ff6f9ba6ff141414addb704bffb3003fffb8448bff141414ff141414ff9e94d5ff206595ff141414fffcfcfcff818181fffcfcfcfffcfcfcfffcfcfcfffcfcfcff141414ff818181ff141414ff141414ff141414ff6f9ba6ff141414ad141414ad303435ff141414ff141414ad141414ad141414ff818181ffcf2d56ffcf2d56ff3c7cabff3c7cabff1f8a65ff1f8a65ffdb704bffdb704bff141414ff818181ff6f9ba6ff6f9ba6ff6f9ba6ff6f9ba6ff141414ad", + "footer": "cf2d56ffcf2d56ffcf2d56ffcf2d56ffcf2d56ffcf2d56ff0000000000000000dbe3e5ffdbdbdbff0000000000000000000000000000000000000000dbdbdbff0000000000000000f8f8f8fff8f8f8fff8f8f8fff8f8f8fff8f8f8fff8f8f8fff8f8f8fff8f8f8fff8f8f8fff8f8f8fff8f8f8ffefefefffefefefffcdcdcdff141414131f8a651ff3f3f3ffcf2d561455a583ffe75e78ff1f8a651fcf2d5614141414ad1f8a65ff141414ad141414adcf2d56ff141414ad1f8a65ff141414ff141414ff206595ff141414ad206595ff141414ad206595ff141414ad141414ad141414ff141414ff141414ff6f9ba6ff141414addb704bffb3003fffb8448bff141414ff141414ff9e94d5ff206595ff141414fffcfcfcff818181fffcfcfcfffcfcfcfffcfcfcfffcfcfcff141414ff818181ff141414ff141414ff141414ff6f9ba6ff141414ad141414ad303435ff141414ff141414ad141414ad141414ff818181ffcf2d56ffcf2d56ff3c7cabff3c7cabff1f8a65ff1f8a65ffdb704bffdb704bff141414ff818181ff6f9ba6ff6f9ba6ff6f9ba6ff6f9ba6ff141414ad", + "decrease": "b79d9fffb79d9fffb79d9fffb79d9fffb79d9fffb79d9fff0000000000000000b8c9cdffdbdbdbff0000000000000000000000000000000000000000000000000000000000000000f8f8f8fff8f8f8fff8f8f8fff8f8f8fff8f8f8fff8f8f8fff8f8f8fff8f8f8fff8f8f8fff8f8f8fff8f8f8ffdbdbdbffcdcdcdffb2b2b2ff141414131f8a651ff3f3f3ffcf2d561455a583ffe75e78ff1f8a651fcf2d5614141414ff9ba8a2ff141414ff141414ffb79d9fff141414ff9ba8a2ff141414ff141414ff206595ff141414ff206595ff141414ff206595ff141414ff141414ff141414ff141414ff141414ff9fa6a8ff141414ffdb704bffb3003fffb8448bff141414ff141414ff9e94d5ff206595ff141414fff8f8f8ff141414adf8f8f8fff8f8f8fff8f8f8fff8f8f8ff141414ff141414ad141414ff141414ff141414ff9fa6a8ff141414ff141414ff22292aff141414ff141414ff141414ff141414ff141414adb79d9fffb79d9fff3c7cabff3c7cabff9ba8a2ff9ba8a2ffdb704bffdb704bff141414ff141414ad9fa6a8ff9fa6a8ff9fa6a8ff9fa6a8ff141414ff", + "increase": "f7dadcfff7dadcfff7dadcfff7dadcfff7dadcfff7dadcff0000000000000000f4f6f7fffcfcfcff0000000000000000000000000000000000000000000000000000000000000000fcfcfcfffcfcfcfffcfcfcfffcfcfcfffcfcfcfffcfcfcfffcfcfcfffcfcfcfffcfcfcfffcfcfcfffcfcfcfffcfcfcfff8f8f8ffefefefff141414131f8a651ff3f3f3ffcf2d561455a583ffe75e78ff1f8a651fcf2d5614b2b2b2ffd7e5deffb2b2b2ffb2b2b2fff7dadcffb2b2b2ffd7e5deff818181ff818181ff206595ffb2b2b2ff206595ffb2b2b2ff206595ffb2b2b2ffb2b2b2ff818181ff818181ff818181ffdbe3e5ffb2b2b2ffdb704bffb3003fffb8448bff818181ff818181ff9e94d5ff206595ff818181fffcfcfcffcdcdcdfffcfcfcfffcfcfcfffcfcfcfffcfcfcff818181ffcdcdcdff818181ff818181ff818181ffdbe3e5ffb2b2b2ffb2b2b2ff6f9ba6ff818181ffb2b2b2ffb2b2b2ff818181ffcdcdcdfff7dadcfff7dadcff3c7cabff3c7cabffd7e5deffd7e5deffdb704bffdb704bff818181ffcdcdcdffdbe3e5ffdbe3e5ffdbe3e5ffdbe3e5ffb2b2b2ff" + }, + "cursor/dark": { + "modes": ["light","dark"], + "hues": ["gray","red","orange","green","cyan","blue","accent","interactive","neutral"], + "hue": "e4e4e4ffe4e4e45e7d7d7dff585858ff383838ff292929ff1f1f1fff1c1c1cff181818ffe5d4d6fffad1d6ff947277ffe34671ff9f4358ff403033ff312628ff251e1fff1c1819ffded8d0ffe9dac9ff877a6cfff1b467ff9a764aff39332dff2c2824ff221f1dff1a1918ffd3dbd5ffcee3d3ff708275ff3fa266ff3e7551ff2e3631ff252a27ff1e201eff181a18ffd4dadbffd2dfe3ff747f82ff88c0d0ff5f7f89ff303536ff26292aff1e2021ff18191affd6d9dcffd6dee6ff777d84ff81a1c1ff5e7184ff323438ff27292cff1e2021ff19191affd4dadbffd2dfe3ff747f82ff88c0d0ff5f7f89ff303536ff26292aff1e2021ff18191affd4dadbffd2dfe3ff747f82ff88c0d0ff5f7f89ff303536ff26292aff1e2021ff18191affe4e4e4ffe4e4e45e7d7d7dff585858ff383838ff292929ff1f1f1fff1c1c1cff181818ff", + "categorical": "d6d9dcffd6dee6ff777d84ff81a1c1ff5e7184ff323438ff27292cff1e2021ff19191affd4dadbffd2dfe3ff747f82ff88c0d0ff5f7f89ff303536ff26292aff1e2021ff18191affd3dbd5ffcee3d3ff708275ff3fa266ff3e7551ff2e3631ff252a27ff1e201eff181a18ffded8d0ffe9dac9ff877a6cfff1b467ff9a764aff39332dff2c2824ff221f1dff1a1918ffe5d4d6fffad1d6ff947277ffe34671ff9f4358ff403033ff312628ff251e1fff1c1819ff", + "base": "e34671ffe34671ffe34671ffe34671ffe34671ffe34671ff0000000000000000303536ff1f1f1fff0000000000000000000000000000000000000000000000000000000000000000181818ff181818ff181818ff181818ff181818ff181818ff181818ff181818ff181818ff181818ff181818ff1f1f1fff292929ff383838ffe4e4e4133fa26633141414ffb800493370b489fffc6b83ff3fa26633b8004933eeeeee873fa266ffe4e4e45ee4e4e45ee34671ffe4e4e45ee394dcffe4e4e4ff82d2ceffaaa0faffe4e4e45e88c0d0ff81a1c1ff82d2ceff81a1c1ff88c0d0ffe4e4e4fff8c762ffe4e4e4ff88c0d0ffe4e4e45eefb080ff82d2cefff8c762ffe4e4e4ffe4e4e4ffe394dcffefb080ffe4e4e4ff181818ff7d7d7dff181818ff181818ff181818ff181818ffe4e4e4ff7d7d7dffe4e4e4ffe4e4e4ffe4e4e4ff88c0d0ffe4e4e45ee4e4e45ed2dfe3ffe4e4e4ffe4e4e45ee4e4e45ee4e4e4ff7d7d7dffe34671ffe34671ff81a1c1ff81a1c1ff3fa266ff3fa266fff1b467fff1b467ffe4e4e4ff7d7d7dff88c0d0ff88c0d0ff88c0d0ff88c0d0ffe4e4e45e", + "dialog": "e34671ffe34671ffe34671ffe34671ffe34671ffe34671ff0000000000000000303536ff383838ff0000000000000000000000000000000000000000383838ff00000000000000001f1f1fff1f1f1fff1f1f1fff1f1f1fff1f1f1fff1f1f1fff1f1f1fff1f1f1fff1f1f1fff1f1f1fff1f1f1fff1f1f1fff292929ff383838ffe4e4e4133fa26633141414ffb800493370b489fffc6b83ff3fa26633b8004933eeeeee873fa266ffe4e4e45ee4e4e45ee34671ffe4e4e45ee394dcffe4e4e4ff82d2ceffaaa0faffe4e4e45e88c0d0ff81a1c1ff82d2ceff81a1c1ff88c0d0ffe4e4e4fff8c762ffe4e4e4ff88c0d0ffe4e4e45eefb080ff82d2cefff8c762ffe4e4e4ffe4e4e4ffe394dcffefb080ffe4e4e4ff181818ff7d7d7dff181818ff181818ff181818ff181818ffe4e4e4ff7d7d7dffe4e4e4ffe4e4e4ffe4e4e4ff88c0d0ffe4e4e45ee4e4e45ed2dfe3ffe4e4e4ffe4e4e45ee4e4e45ee4e4e4ff7d7d7dffe34671ffe34671ff81a1c1ff81a1c1ff3fa266ff3fa266fff1b467fff1b467ffe4e4e4ff7d7d7dff88c0d0ff88c0d0ff88c0d0ff88c0d0ffe4e4e45e", + "footer": "e34671ffe34671ffe34671ffe34671ffe34671ffe34671ff0000000000000000303536ff383838ff0000000000000000000000000000000000000000383838ff00000000000000001f1f1fff1f1f1fff1f1f1fff1f1f1fff1f1f1fff1f1f1fff1f1f1fff1f1f1fff1f1f1fff1f1f1fff1f1f1fff1f1f1fff292929ff383838ffe4e4e4133fa26633141414ffb800493370b489fffc6b83ff3fa26633b8004933eeeeee873fa266ffe4e4e45ee4e4e45ee34671ffe4e4e45ee394dcffe4e4e4ff82d2ceffaaa0faffe4e4e45e88c0d0ff81a1c1ff82d2ceff81a1c1ff88c0d0ffe4e4e4fff8c762ffe4e4e4ff88c0d0ffe4e4e45eefb080ff82d2cefff8c762ffe4e4e4ffe4e4e4ffe394dcffefb080ffe4e4e4ff181818ff7d7d7dff181818ff181818ff181818ff181818ffe4e4e4ff7d7d7dffe4e4e4ffe4e4e4ffe4e4e4ff88c0d0ffe4e4e45ee4e4e45ed2dfe3ffe4e4e4ffe4e4e45ee4e4e45ee4e4e4ff7d7d7dffe34671ffe34671ff81a1c1ff81a1c1ff3fa266ff3fa266fff1b467fff1b467ffe4e4e4ff7d7d7dff88c0d0ff88c0d0ff88c0d0ff88c0d0ffe4e4e45e", + "decrease": "947277ff947277ff947277ff947277ff947277ff947277ff00000000000000005f7f89ff292929ff00000000000000000000000000000000000000000000000000000000000000001c1c1cff1c1c1cff1c1c1cff1c1c1cff1c1c1cff1c1c1cff1c1c1cff1c1c1cff1c1c1cff1c1c1cff1c1c1cff292929ff383838ff585858ffe4e4e4133fa26633141414ffb800493370b489fffc6b83ff3fa26633b8004933eeeeee87708275ffe4e4e4ffe4e4e4ff947277ffe4e4e4ffe394dcffe4e4e4ff82d2ceffaaa0faffe4e4e4ff747f82ff777d84ff82d2ceff777d84ff747f82ffe4e4e4fff8c762ffe4e4e4ff747f82ffe4e4e4ffefb080ff82d2cefff8c762ffe4e4e4ffe4e4e4ffe394dcffefb080ffe4e4e4ff1c1c1cffe4e4e45e1c1c1cff1c1c1cff1c1c1cff1c1c1cffe4e4e4ffe4e4e45ee4e4e4ffe4e4e4ffe4e4e4ff747f82ffe4e4e4ffe4e4e4ffd4dadbffe4e4e4ffe4e4e4ffe4e4e4ffe4e4e4ffe4e4e45e947277ff947277ff777d84ff777d84ff708275ff708275ff877a6cff877a6cffe4e4e4ffe4e4e45e747f82ff747f82ff747f82ff747f82ffe4e4e4ff", + "increase": "403033ff403033ff403033ff403033ff403033ff403033ff00000000000000001e2021ff181818ff0000000000000000000000000000000000000000000000000000000000000000181818ff181818ff181818ff181818ff181818ff181818ff181818ff181818ff181818ff181818ff181818ff181818ff1c1c1cff1f1f1fffe4e4e4133fa26633141414ffb800493370b489fffc6b83ff3fa26633b8004933eeeeee872e3631ff585858ff585858ff403033ff585858ffe394dcff7d7d7dff82d2ceffaaa0faff585858ff303536ff323438ff82d2ceff323438ff303536ff7d7d7dfff8c762ff7d7d7dff303536ff585858ffefb080ff82d2cefff8c762ff7d7d7dff7d7d7dffe394dcffefb080ff7d7d7dff181818ff383838ff181818ff181818ff181818ff181818ff7d7d7dff383838ff7d7d7dff7d7d7dff7d7d7dff303536ff585858ff585858ff88c0d0ff7d7d7dff585858ff585858ff7d7d7dff383838ff403033ff403033ff323438ff323438ff2e3631ff2e3631ff39332dff39332dff7d7d7dff383838ff303536ff303536ff303536ff303536ff585858ff" + }, + "dracula/light": { + "modes": ["light","dark"], + "hues": ["gray","red","orange","yellow","green","cyan","purple","accent","interactive","neutral"], + "hue": "282a36ff6272a4ff84908fffaeaea9ffc9c9c3ffd8d8d2ffebebe5fff3f4edfff8f8f2ff533836ffaa9694ffc5a9a7ffff5555fff4b1acfff4d6d2fff8e6e3fff8efeefff8f4f3ff493e33ffa29a92ffbaafa4ffffb86cffecd0b6ffe7dbcffff0e9e1fff4f0edfff6f5f3ff404232ff9b9c91ffb1b3a3fff1fa8cffe3e8c1ffdddfceffeaebe1fff1f2edfff5f5f3ff314634ff91a092ffa3b8a5ff50fa7bffb5eabbffcde4cfffe1eee2ffedf3edfff3f6f3ff364346ff949d9fffa7b4b7ff8be9fdffc2e2e9ffd2e0e3ffe3eceeffeef2f3fff3f5f6ff433d4dff9d99a5ffb4aebeffbd93f9ffd2c3ebffe1daebffece8f3fff2f0f6fff5f4f7ff364346ff949d9fffa7b4b7ff8be9fdffc2e2e9ffd2e0e3ffe3eceeffeef2f3fff3f5f6ff433d4dff9d99a5ffb4aebeffbd93f9ffd2c3ebffe1daebffece8f3fff2f0f6fff5f4f7ff282a36ff6272a4ff84908fffaeaea9ffc9c9c3ffd8d8d2ffebebe5fff3f4edfff8f8f2ff", + "categorical": "533836ffaa9694ffc5a9a7ffff5555fff4b1acfff4d6d2fff8e6e3fff8efeefff8f4f3ff364346ff949d9fffa7b4b7ff8be9fdffc2e2e9ffd2e0e3ffe3eceeffeef2f3fff3f5f6ff314634ff91a092ffa3b8a5ff50fa7bffb5eabbffcde4cfffe1eee2ffedf3edfff3f6f3ff404232ff9b9c91ffb1b3a3fff1fa8cffe3e8c1ffdddfceffeaebe1fff1f2edfff5f5f3ff433d4dff9d99a5ffb4aebeffbd93f9ffd2c3ebffe1daebffece8f3fff2f0f6fff5f4f7ff493e33ffa29a92ffbaafa4ffffb86cffecd0b6ffe7dbcffff0e9e1fff4f0edfff6f5f3ff", + "base": "ff5555ffff5555ffff5555ffff5555ffff5555ffff5555ff0000000000000000e1daebffebebe5ff0000000000000000000000000000000000000000000000000000000000000000f8f8f2fff8f8f2fff8f8f2fff8f8f2fff8f8f2fff8f8f2fff8f8f2fff8f8f2fff8f8f2fff8f8f2fff8f8f2ffebebe5ffd8d8d2ffc9c9c3ffc8c8c2ffe0ffe0ffe8e8e2ffffe0e0ff50fa7bffff5555ffe0ffe0ffffe0e0ff686865ff50fa7bff6272a4ff6272a4ffff5555ff6272a4ff50fa7bff282a36fff1fa8cffbd93f9ff6272a4ff8be9fdffff79c6ff8be9fdffff79c6ff8be9fdffbd93f9ffffb86cff282a36ffbd93f9ff6272a4ff50fa7bffff79c6ffbd93f9ffff79c6ff282a36fff1fa8cff8be9fdff282a36fff8f8f2ff84908ffff8f8f2fff8f8f2fff8f8f2fff8f8f2ff282a36ff84908fff282a36ff282a36ff282a36ffbd93f9ff6272a4ff6272a4ff9d99a5ff282a36ff6272a4ff6272a4ff282a36ff84908fffff5555ffff5555ffffb86cffffb86cff50fa7bff50fa7bfff1fa8cfff1fa8cff282a36ff84908fffbd93f9ffbd93f9ffbd93f9ffbd93f9ff6272a4ff", + "dialog": "ff5555ffff5555ffff5555ffff5555ffff5555ffff5555ff0000000000000000e1daebffd8d8d2ff0000000000000000000000000000000000000000d8d8d2ff0000000000000000f3f4edfff3f4edfff3f4edfff3f4edfff3f4edfff3f4edfff3f4edfff3f4edfff3f4edfff3f4edfff3f4edffebebe5ffebebe5ffc9c9c3ffc8c8c2ffe0ffe0ffe8e8e2ffffe0e0ff50fa7bffff5555ffe0ffe0ffffe0e0ff686865ff50fa7bff6272a4ff6272a4ffff5555ff6272a4ff50fa7bff282a36fff1fa8cffbd93f9ff6272a4ff8be9fdffff79c6ff8be9fdffff79c6ff8be9fdffbd93f9ffffb86cff282a36ffbd93f9ff6272a4ff50fa7bffff79c6ffbd93f9ffff79c6ff282a36fff1fa8cff8be9fdff282a36fff8f8f2ff84908ffff8f8f2fff8f8f2fff8f8f2fff8f8f2ff282a36ff84908fff282a36ff282a36ff282a36ffbd93f9ff6272a4ff6272a4ff9d99a5ff282a36ff6272a4ff6272a4ff282a36ff84908fffff5555ffff5555ffffb86cffffb86cff50fa7bff50fa7bfff1fa8cfff1fa8cff282a36ff84908fffbd93f9ffbd93f9ffbd93f9ffbd93f9ff6272a4ff", + "footer": "ff5555ffff5555ffff5555ffff5555ffff5555ffff5555ff0000000000000000e1daebffd8d8d2ff0000000000000000000000000000000000000000d8d8d2ff0000000000000000f3f4edfff3f4edfff3f4edfff3f4edfff3f4edfff3f4edfff3f4edfff3f4edfff3f4edfff3f4edfff3f4edffebebe5ffebebe5ffc9c9c3ffc8c8c2ffe0ffe0ffe8e8e2ffffe0e0ff50fa7bffff5555ffe0ffe0ffffe0e0ff686865ff50fa7bff6272a4ff6272a4ffff5555ff6272a4ff50fa7bff282a36fff1fa8cffbd93f9ff6272a4ff8be9fdffff79c6ff8be9fdffff79c6ff8be9fdffbd93f9ffffb86cff282a36ffbd93f9ff6272a4ff50fa7bffff79c6ffbd93f9ffff79c6ff282a36fff1fa8cff8be9fdff282a36fff8f8f2ff84908ffff8f8f2fff8f8f2fff8f8f2fff8f8f2ff282a36ff84908fff282a36ff282a36ff282a36ffbd93f9ff6272a4ff6272a4ff9d99a5ff282a36ff6272a4ff6272a4ff282a36ff84908fffff5555ffff5555ffffb86cffffb86cff50fa7bff50fa7bfff1fa8cfff1fa8cff282a36ff84908fffbd93f9ffbd93f9ffbd93f9ffbd93f9ff6272a4ff", + "decrease": "c5a9a7ffc5a9a7ffc5a9a7ffc5a9a7ffc5a9a7ffc5a9a7ff0000000000000000d2c3ebffd8d8d2ff0000000000000000000000000000000000000000000000000000000000000000f3f4edfff3f4edfff3f4edfff3f4edfff3f4edfff3f4edfff3f4edfff3f4edfff3f4edfff3f4edfff3f4edffd8d8d2ffc9c9c3ffaeaea9ffc8c8c2ffe0ffe0ffe8e8e2ffffe0e0ffa3b8a5ffc5a9a7ffe0ffe0ffffe0e0ff686865ffa3b8a5ff282a36ff282a36ffc5a9a7ff282a36ffa3b8a5ff282a36ffb1b3a3ffb4aebeff282a36ffa7b4b7ffff79c6ffa7b4b7ffff79c6ffa7b4b7ffb4aebeffbaafa4ff282a36ffb4aebeff282a36ffa3b8a5ffff79c6ffb4aebeffff79c6ff282a36ffb1b3a3ffa7b4b7ff282a36fff3f4edff6272a4fff3f4edfff3f4edfff3f4edfff3f4edff282a36ff6272a4ff282a36ff282a36ff282a36ffb4aebeff282a36ff282a36ff433d4dff282a36ff282a36ff282a36ff282a36ff6272a4ffc5a9a7ffc5a9a7ffbaafa4ffbaafa4ffa3b8a5ffa3b8a5ffb1b3a3ffb1b3a3ff282a36ff6272a4ffb4aebeffb4aebeffb4aebeffb4aebeff282a36ff", + "increase": "f4d6d2fff4d6d2fff4d6d2fff4d6d2fff4d6d2fff4d6d2ff0000000000000000f2f0f6fff8f8f2ff0000000000000000000000000000000000000000000000000000000000000000f8f8f2fff8f8f2fff8f8f2fff8f8f2fff8f8f2fff8f8f2fff8f8f2fff8f8f2fff8f8f2fff8f8f2fff8f8f2fff8f8f2fff3f4edffebebe5ffc8c8c2ffe0ffe0ffe8e8e2ffffe0e0ffcde4cffff4d6d2ffe0ffe0ffffe0e0ff686865ffcde4cfffaeaea9ffaeaea9fff4d6d2ffaeaea9ffcde4cfff84908fffdddfceffe1daebffaeaea9ffd2e0e3ffff79c6ffd2e0e3ffff79c6ffd2e0e3ffe1daebffe7dbcfff84908fffe1daebffaeaea9ffcde4cfffff79c6ffe1daebffff79c6ff84908fffdddfceffd2e0e3ff84908ffff8f8f2ffc9c9c3fff8f8f2fff8f8f2fff8f8f2fff8f8f2ff84908fffc9c9c3ff84908fff84908fff84908fffe1daebffaeaea9ffaeaea9ffbd93f9ff84908fffaeaea9ffaeaea9ff84908fffc9c9c3fff4d6d2fff4d6d2ffe7dbcfffe7dbcfffcde4cfffcde4cfffdddfceffdddfceff84908fffc9c9c3ffe1daebffe1daebffe1daebffe1daebffaeaea9ff" + }, + "dracula/dark": { + "modes": ["light","dark"], + "hues": ["gray","red","orange","yellow","green","cyan","purple","accent","interactive","neutral"], + "hue": "f8f8f2ffb3bbb5ff6272a4ff6a6e82ff434556ff363848ff2e303bff2c2e39ff282a36fffae7e5ffcfa6a2ff8c6a66ffff5555ffbb5652ff4c3e4cff3f3540ff362e38ff302932fff2ebe3ffbfae9eff7f7163ffffb86cffaf8559ff4d3e46ff40353cff372e34ff32292fffecede3ffb1b49dff737662fff1fa8cff9fa565ff334548ff2b3b3eff273436ff222e31ffe3f0e4ff9bbb9fff617c64ff50fa7bff4daa60ff2f464dff2a3b42ff263439ff222e34ffe5eef0ffa2b5baff66777bff8be9fdff699fabff3a434dff313942ff2b323aff262d34ffeeeaf5ffb5acc5ff776f84ffbd93f9ff8c74b1ff424150ff383744ff30303aff2b2b35ffe5eef0ffa2b5baff66777bff8be9fdff699fabff3a434dff313942ff2b323aff262d34ffeeeaf5ffb5acc5ff776f84ffbd93f9ff8c74b1ff424150ff383744ff30303aff2b2b35fff8f8f2ffb3bbb5ff6272a4ff6a6e82ff434556ff363848ff2e303bff2c2e39ff282a36ff", + "categorical": "fae7e5ffcfa6a2ff8c6a66ffff5555ffbb5652ff4c3e4cff3f3540ff362e38ff302932ffe5eef0ffa2b5baff66777bff8be9fdff699fabff3a434dff313942ff2b323aff262d34ffe3f0e4ff9bbb9fff617c64ff50fa7bff4daa60ff2f464dff2a3b42ff263439ff222e34ffecede3ffb1b49dff737662fff1fa8cff9fa565ff334548ff2b3b3eff273436ff222e31ffeeeaf5ffb5acc5ff776f84ffbd93f9ff8c74b1ff424150ff383744ff30303aff2b2b35fff2ebe3ffbfae9eff7f7163ffffb86cffaf8559ff4d3e46ff40353cff372e34ff32292fff", + "base": "ff5555ffff5555ffff5555ffff5555ffff5555ffff5555ff0000000000000000424150ff2e303bff0000000000000000000000000000000000000000000000000000000000000000282a36ff282a36ff282a36ff282a36ff282a36ff282a36ff282a36ff282a36ff282a36ff282a36ff282a36ff2e303bff363848ff434556ff44475aff1a3a1aff21222cff3a1a1aff50fa7bffff5555ff1a3a1aff3a1a1aff989aa4ff50fa7bff6272a4ff6272a4ffff5555ff6272a4ff50fa7bfff8f8f2fff1fa8cffbd93f9ff6272a4ff8be9fdffff79c6ff8be9fdffff79c6ff8be9fdffbd93f9ffffb86cfff8f8f2ffbd93f9ff6272a4ff50fa7bffff79c6ffbd93f9ffff79c6fff8f8f2fff1fa8cff8be9fdfff8f8f2ff282a36ff6272a4ff282a36ff282a36ff282a36ff282a36fff8f8f2ff6272a4fff8f8f2fff8f8f2fff8f8f2ffbd93f9ffb3bbb5ffb3bbb5ffb5acc5fff8f8f2ffb3bbb5ffb3bbb5fff8f8f2ff6272a4ffff5555ffff5555ffffb86cffffb86cff50fa7bff50fa7bfff1fa8cfff1fa8cfff8f8f2ff6272a4ffbd93f9ffbd93f9ffbd93f9ffbd93f9ffb3bbb5ff", + "dialog": "ff5555ffff5555ffff5555ffff5555ffff5555ffff5555ff0000000000000000424150ff434556ff0000000000000000000000000000000000000000434556ff00000000000000002e303bff2e303bff2e303bff2e303bff2e303bff2e303bff2e303bff2e303bff2e303bff2e303bff2e303bff2e303bff363848ff434556ff44475aff1a3a1aff21222cff3a1a1aff50fa7bffff5555ff1a3a1aff3a1a1aff989aa4ff50fa7bff6272a4ff6272a4ffff5555ff6272a4ff50fa7bfff8f8f2fff1fa8cffbd93f9ff6272a4ff8be9fdffff79c6ff8be9fdffff79c6ff8be9fdffbd93f9ffffb86cfff8f8f2ffbd93f9ff6272a4ff50fa7bffff79c6ffbd93f9ffff79c6fff8f8f2fff1fa8cff8be9fdfff8f8f2ff282a36ff6272a4ff282a36ff282a36ff282a36ff282a36fff8f8f2ff6272a4fff8f8f2fff8f8f2fff8f8f2ffbd93f9ffb3bbb5ffb3bbb5ffb5acc5fff8f8f2ffb3bbb5ffb3bbb5fff8f8f2ff6272a4ffff5555ffff5555ffffb86cffffb86cff50fa7bff50fa7bfff1fa8cfff1fa8cfff8f8f2ff6272a4ffbd93f9ffbd93f9ffbd93f9ffbd93f9ffb3bbb5ff", + "footer": "ff5555ffff5555ffff5555ffff5555ffff5555ffff5555ff0000000000000000424150ff434556ff0000000000000000000000000000000000000000434556ff00000000000000002e303bff2e303bff2e303bff2e303bff2e303bff2e303bff2e303bff2e303bff2e303bff2e303bff2e303bff2e303bff363848ff434556ff44475aff1a3a1aff21222cff3a1a1aff50fa7bffff5555ff1a3a1aff3a1a1aff989aa4ff50fa7bff6272a4ff6272a4ffff5555ff6272a4ff50fa7bfff8f8f2fff1fa8cffbd93f9ff6272a4ff8be9fdffff79c6ff8be9fdffff79c6ff8be9fdffbd93f9ffffb86cfff8f8f2ffbd93f9ff6272a4ff50fa7bffff79c6ffbd93f9ffff79c6fff8f8f2fff1fa8cff8be9fdfff8f8f2ff282a36ff6272a4ff282a36ff282a36ff282a36ff282a36fff8f8f2ff6272a4fff8f8f2fff8f8f2fff8f8f2ffbd93f9ffb3bbb5ffb3bbb5ffb5acc5fff8f8f2ffb3bbb5ffb3bbb5fff8f8f2ff6272a4ffff5555ffff5555ffffb86cffffb86cff50fa7bff50fa7bfff1fa8cfff1fa8cfff8f8f2ff6272a4ffbd93f9ffbd93f9ffbd93f9ffbd93f9ffb3bbb5ff", + "decrease": "8c6a66ff8c6a66ff8c6a66ff8c6a66ff8c6a66ff8c6a66ff00000000000000008c74b1ff363848ff00000000000000000000000000000000000000000000000000000000000000002c2e39ff2c2e39ff2c2e39ff2c2e39ff2c2e39ff2c2e39ff2c2e39ff2c2e39ff2c2e39ff2c2e39ff2c2e39ff363848ff434556ff6a6e82ff44475aff1a3a1aff21222cff3a1a1aff617c64ff8c6a66ff1a3a1aff3a1a1aff989aa4ff617c64ffb3bbb5ffb3bbb5ff8c6a66ffb3bbb5ff617c64fff8f8f2ff737662ff776f84ffb3bbb5ff66777bffff79c6ff66777bffff79c6ff66777bff776f84ff7f7163fff8f8f2ff776f84ffb3bbb5ff617c64ffff79c6ff776f84ffff79c6fff8f8f2ff737662ff66777bfff8f8f2ff2c2e39ffb3bbb5ff2c2e39ff2c2e39ff2c2e39ff2c2e39fff8f8f2ffb3bbb5fff8f8f2fff8f8f2fff8f8f2ff776f84fff8f8f2fff8f8f2ffeeeaf5fff8f8f2fff8f8f2fff8f8f2fff8f8f2ffb3bbb5ff8c6a66ff8c6a66ff7f7163ff7f7163ff617c64ff617c64ff737662ff737662fff8f8f2ffb3bbb5ff776f84ff776f84ff776f84ff776f84fff8f8f2ff", + "increase": "4c3e4cff4c3e4cff4c3e4cff4c3e4cff4c3e4cff4c3e4cff000000000000000030303aff282a36ff0000000000000000000000000000000000000000000000000000000000000000282a36ff282a36ff282a36ff282a36ff282a36ff282a36ff282a36ff282a36ff282a36ff282a36ff282a36ff282a36ff2c2e39ff2e303bff44475aff1a3a1aff21222cff3a1a1aff2f464dff4c3e4cff1a3a1aff3a1a1aff989aa4ff2f464dff434556ff434556ff4c3e4cff434556ff2f464dff6272a4ff334548ff424150ff434556ff3a434dffff79c6ff3a434dffff79c6ff3a434dff424150ff4d3e46ff6272a4ff424150ff434556ff2f464dffff79c6ff424150ffff79c6ff6272a4ff334548ff3a434dff6272a4ff282a36ff434556ff282a36ff282a36ff282a36ff282a36ff6272a4ff434556ff6272a4ff6272a4ff6272a4ff424150ff6a6e82ff6a6e82ffbd93f9ff6272a4ff6a6e82ff6a6e82ff6272a4ff434556ff4c3e4cff4c3e4cff4d3e46ff4d3e46ff2f464dff2f464dff334548ff334548ff6272a4ff434556ff424150ff424150ff424150ff424150ff6a6e82ff" + }, + "everforest/light": { + "modes": ["light","dark"], + "hues": ["gray","red","orange","yellow","green","blue","purple","accent","interactive","neutral"], + "hue": "5c6a72ff839694ffa6b0a0ffb1ae98ffe9e3cfffece7d2ffeeead3fff7f3dcfffdf6e3ff957774ffc9b5b2ffe6cac7fff85552fff0b0aafff9e3d5fff7e4e2fff7eeecfff6f3f2ff917b6effc6b7aeffe1cdc1fff57d26ffebbca1fff4e5d4fff3e6dffff5eeebfff6f3f1ff7e826fffb9bcafffcfd4c2ff8da101ffbec89dffe8e8d4ffe7eadfffeff1ebfff3f4f2ff74847cffb2bdb7ffc6d5ceff35a77cffa6cab9ffdfeadbffe2ebe6ffecf1effff2f4f3ff74828bffb2bcc2ffc7d3dcff3a94c5ffa5c3d7ffd8ebe6ffe2eaefffedf1f3fff2f4f5ff8e7886ffc4b5beffdfcad7ffdf69baffe3b4d1fffae2ddfff2e5ecfff4eef2fff5f3f4ff8e7886ffc4b5beffdfcad7ffdf69baffe3b4d1fffae2ddfff2e5ecfff4eef2fff5f3f4ff7e826fffb9bcafffcfd4c2ff8da101ffbec89dffe8e8d4ffe7eadfffeff1ebfff3f4f2ff5c6a72ff839694ffa6b0a0ffb1ae98ffe9e3cfffece7d2ffeeead3fff7f3dcfffdf6e3ff", + "categorical": "74828bffb2bcc2ffc7d3dcff3a94c5ffa5c3d7ffd8ebe6ffe2eaefffedf1f3fff2f4f5ff8e7886ffc4b5beffdfcad7ffdf69baffe3b4d1fffae2ddfff2e5ecfff4eef2fff5f3f4ff7e826fffb9bcafffcfd4c2ff8da101ffbec89dffe8e8d4ffe7eadfffeff1ebfff3f4f2ff917b6effc6b7aeffe1cdc1fff57d26ffebbca1fff4e5d4fff3e6dffff5eeebfff6f3f1ff957774ffc9b5b2ffe6cac7fff85552fff0b0aafff9e3d5fff7e4e2fff7eeecfff6f3f2ff74847cffb2bdb7ffc6d5ceff35a77cffa6cab9ffdfeadbffe2ebe6ffecf1effff2f4f3ff", + "base": "f85552fff85552fff85552fff85552fff85552fff85552ff0000000000000000e8e8d4ffeeead3ff0000000000000000000000000000000000000000000000000000000000000000fdf6e3fffdf6e3fffdf6e3fffdf6e3fffdf6e3fffdf6e3fffdf6e3fffdf6e3fffdf6e3fffdf6e3fffdf6e3ffeeead3ffece7d2ffe9e3cfff939f91ffd5e5d5ffefebd4fff7d8dbff4db380fff52a65ffc5d5c5ffe7c8cbff5b5951ff1e725cff7086b5ff7086b5ffc53b53ffdfa000ff8da101ff5c6a72ffdfa000ffdf69baffa6b0a0ff8da101ff35a77cff8da101ff35a77cff35a77cff8da101fff57d26ff5c6a72ff829181ffa6b0a0ff8da101ffdf69bafff57d26ff35a77cff5c6a72ff8da101ffdfa000fff85552fffdf6e3ffa6b0a0fffdf6e3fffdf6e3fffdf6e3fffdf6e3ff5c6a72ffa6b0a0ff5c6a72ff5c6a72ff5c6a72ff8da101ff839694ff839694ffb9bcafff5c6a72ff839694ff839694ff5c6a72ffa6b0a0fff85552fff85552ff35a77cff35a77cff8da101ff8da101fff57d26fff57d26ff5c6a72ffa6b0a0ff8da101ff8da101ff8da101ff8da101ff839694ff", + "dialog": "f85552fff85552fff85552fff85552fff85552fff85552ff0000000000000000e8e8d4ffece7d2ff0000000000000000000000000000000000000000ece7d2ff0000000000000000f7f3dcfff7f3dcfff7f3dcfff7f3dcfff7f3dcfff7f3dcfff7f3dcfff7f3dcfff7f3dcfff7f3dcfff7f3dcffeeead3ffeeead3ffe9e3cfff939f91ffd5e5d5ffefebd4fff7d8dbff4db380fff52a65ffc5d5c5ffe7c8cbff5b5951ff1e725cff7086b5ff7086b5ffc53b53ffdfa000ff8da101ff5c6a72ffdfa000ffdf69baffa6b0a0ff8da101ff35a77cff8da101ff35a77cff35a77cff8da101fff57d26ff5c6a72ff829181ffa6b0a0ff8da101ffdf69bafff57d26ff35a77cff5c6a72ff8da101ffdfa000fff85552fffdf6e3ffa6b0a0fffdf6e3fffdf6e3fffdf6e3fffdf6e3ff5c6a72ffa6b0a0ff5c6a72ff5c6a72ff5c6a72ff8da101ff839694ff839694ffb9bcafff5c6a72ff839694ff839694ff5c6a72ffa6b0a0fff85552fff85552ff35a77cff35a77cff8da101ff8da101fff57d26fff57d26ff5c6a72ffa6b0a0ff8da101ff8da101ff8da101ff8da101ff839694ff", + "footer": "f85552fff85552fff85552fff85552fff85552fff85552ff0000000000000000e8e8d4ffece7d2ff0000000000000000000000000000000000000000ece7d2ff0000000000000000f7f3dcfff7f3dcfff7f3dcfff7f3dcfff7f3dcfff7f3dcfff7f3dcfff7f3dcfff7f3dcfff7f3dcfff7f3dcffeeead3ffeeead3ffe9e3cfff939f91ffd5e5d5ffefebd4fff7d8dbff4db380fff52a65ffc5d5c5ffe7c8cbff5b5951ff1e725cff7086b5ff7086b5ffc53b53ffdfa000ff8da101ff5c6a72ffdfa000ffdf69baffa6b0a0ff8da101ff35a77cff8da101ff35a77cff35a77cff8da101fff57d26ff5c6a72ff829181ffa6b0a0ff8da101ffdf69bafff57d26ff35a77cff5c6a72ff8da101ffdfa000fff85552fffdf6e3ffa6b0a0fffdf6e3fffdf6e3fffdf6e3fffdf6e3ff5c6a72ffa6b0a0ff5c6a72ff5c6a72ff5c6a72ff8da101ff839694ff839694ffb9bcafff5c6a72ff839694ff839694ff5c6a72ffa6b0a0fff85552fff85552ff35a77cff35a77cff8da101ff8da101fff57d26fff57d26ff5c6a72ffa6b0a0ff8da101ff8da101ff8da101ff8da101ff839694ff", + "decrease": "e6cac7ffe6cac7ffe6cac7ffe6cac7ffe6cac7ffe6cac7ff0000000000000000bec89dffece7d2ff0000000000000000000000000000000000000000000000000000000000000000f7f3dcfff7f3dcfff7f3dcfff7f3dcfff7f3dcfff7f3dcfff7f3dcfff7f3dcfff7f3dcfff7f3dcfff7f3dcffece7d2ffe9e3cfffb1ae98ff939f91ffd5e5d5ffefebd4fff7d8dbff4db380fff52a65ffc5d5c5ffe7c8cbff5b5951ff1e725cff7086b5ff7086b5ffc53b53ffdfa000ffcfd4c2ff5c6a72ffdfa000ffdfcad7ff839694ffcfd4c2ffc6d5ceffcfd4c2ffc6d5ceffc6d5ceffcfd4c2ffe1cdc1ff5c6a72ff829181ff839694ffcfd4c2ffdfcad7ffe1cdc1ffc6d5ceff5c6a72ffcfd4c2ffdfa000ffe6cac7fff7f3dcff839694fff7f3dcfff7f3dcfff7f3dcfff7f3dcff5c6a72ff839694ff5c6a72ff5c6a72ff5c6a72ffcfd4c2ff5c6a72ff5c6a72ff7e826fff5c6a72ff5c6a72ff5c6a72ff5c6a72ff839694ffe6cac7ffe6cac7ffc6d5ceffc6d5ceffcfd4c2ffcfd4c2ffe1cdc1ffe1cdc1ff5c6a72ff839694ffcfd4c2ffcfd4c2ffcfd4c2ffcfd4c2ff5c6a72ff", + "increase": "f9e3d5fff9e3d5fff9e3d5fff9e3d5fff9e3d5fff9e3d5ff0000000000000000eff1ebfffdf6e3ff0000000000000000000000000000000000000000000000000000000000000000fdf6e3fffdf6e3fffdf6e3fffdf6e3fffdf6e3fffdf6e3fffdf6e3fffdf6e3fffdf6e3fffdf6e3fffdf6e3fffdf6e3fff7f3dcffeeead3ff939f91ffd5e5d5ffefebd4fff7d8dbff4db380fff52a65ffc5d5c5ffe7c8cbff5b5951ff1e725cff7086b5ff7086b5ffc53b53ffdfa000ffe8e8d4ffa6b0a0ffdfa000fffae2ddffe9e3cfffe8e8d4ffdfeadbffe8e8d4ffdfeadbffdfeadbffe8e8d4fff4e5d4ffa6b0a0ff829181ffe9e3cfffe8e8d4fffae2ddfff4e5d4ffdfeadbffa6b0a0ffe8e8d4ffdfa000fff9e3d5fffdf6e3ffe9e3cffffdf6e3fffdf6e3fffdf6e3fffdf6e3ffa6b0a0ffe9e3cfffa6b0a0ffa6b0a0ffa6b0a0ffe8e8d4ffb1ae98ffb1ae98ff8da101ffa6b0a0ffb1ae98ffb1ae98ffa6b0a0ffe9e3cffff9e3d5fff9e3d5ffdfeadbffdfeadbffe8e8d4ffe8e8d4fff4e5d4fff4e5d4ffa6b0a0ffe9e3cfffe8e8d4ffe8e8d4ffe8e8d4ffe8e8d4ffb1ae98ff" + }, + "everforest/dark": { + "modes": ["light","dark"], + "hues": ["gray","red","orange","yellow","green","cyan","accent","interactive","neutral"], + "hue": "d3c6aaff949f89ff7a8478ff6f7c81ff465056ff3a4349ff323b41ff31393fff2d353bffc0babdff9e8f95ff897c81ffd699b6ffa27c8eff4a4a54ff404049ff393a41ff34343bffc2bab7ffa28f87ff8c7c75ffe69875ffac7c67ff4e4952ff443f48ff3c3940ff383339ffbabdb7ff909688ff7d8275ffa7c080ff83936cff414d4dff394443ff333c3cff2e3737ffb8beb9ff8a988dff77837aff83c092ff6f9478ff414d4fff394345ff333c3dff2e3738ffb8bdbcff8a9795ff778381ff7fbbb3ff6d918cff424c50ff3a4346ff343c3eff2f3639ffc0babdff9e8f95ff897c81ffd699b6ffa27c8eff4a4a54ff404049ff393a41ff34343bffbabdb7ff909688ff7d8275ffa7c080ff83936cff414d4dff394443ff333c3cff2e3737ffd3c6aaff949f89ff7a8478ff6f7c81ff465056ff3a4349ff323b41ff31393fff2d353bff", + "categorical": "b8bdbcff8a9795ff778381ff7fbbb3ff6d918cff424c50ff3a4346ff343c3eff2f3639ffc0babdff9e8f95ff897c81ffd699b6ffa27c8eff4a4a54ff404049ff393a41ff34343bffbabdb7ff909688ff7d8275ffa7c080ff83936cff414d4dff394443ff333c3cff2e3737ffc2bab7ffa28f87ff8c7c75ffe69875ffac7c67ff4e4952ff443f48ff3c3940ff383339ffb8beb9ff8a988dff77837aff83c092ff6f9478ff414d4fff394345ff333c3dff2e3738ff", + "base": "e67e80ffe67e80ffe67e80ffe67e80ffe67e80ffe67e80ff0000000000000000414d4dff323b41ff00000000000000000000000000000000000000000000000000000000000000002d353bff2d353bff2d353bff2d353bff2d353bff2d353bff2d353bff2d353bff2d353bff2d353bff2d353bff323b41ff3a4349ff465056ff859289ff20303bff333c43ff37222cffb8db87ffe26a75ff1b2b34ff2d1f26ffa0a5a7ff4fd6beff828bb8ff828bb8ffc53b53ffdbbc7fffa7c080ffd3c6aaffdbbc7fffd699b6ff7a8478ffa7c080ff83c092ffa7c080ff83c092ff83c092ffa7c080ffe69875ffd3c6aaff9da9a0ff7a8478ffa7c080ffd699b6ffe69875ff83c092ffd3c6aaffa7c080ffdbbc7fffe67e80ff2d353bff7a8478ff2d353bff2d353bff2d353bff2d353bffd3c6aaff7a8478ffd3c6aaffd3c6aaffd3c6aaffa7c080ff949f89ff949f89ff909688ffd3c6aaff949f89ff949f89ffd3c6aaff7a8478ffe67e80ffe67e80ff83c092ff83c092ffa7c080ffa7c080ffe69875ffe69875ffd3c6aaff7a8478ffa7c080ffa7c080ffa7c080ffa7c080ff949f89ff", + "dialog": "e67e80ffe67e80ffe67e80ffe67e80ffe67e80ffe67e80ff0000000000000000414d4dff465056ff0000000000000000000000000000000000000000465056ff0000000000000000323b41ff323b41ff323b41ff323b41ff323b41ff323b41ff323b41ff323b41ff323b41ff323b41ff323b41ff323b41ff3a4349ff465056ff859289ff20303bff333c43ff37222cffb8db87ffe26a75ff1b2b34ff2d1f26ffa0a5a7ff4fd6beff828bb8ff828bb8ffc53b53ffdbbc7fffa7c080ffd3c6aaffdbbc7fffd699b6ff7a8478ffa7c080ff83c092ffa7c080ff83c092ff83c092ffa7c080ffe69875ffd3c6aaff9da9a0ff7a8478ffa7c080ffd699b6ffe69875ff83c092ffd3c6aaffa7c080ffdbbc7fffe67e80ff2d353bff7a8478ff2d353bff2d353bff2d353bff2d353bffd3c6aaff7a8478ffd3c6aaffd3c6aaffd3c6aaffa7c080ff949f89ff949f89ff909688ffd3c6aaff949f89ff949f89ffd3c6aaff7a8478ffe67e80ffe67e80ff83c092ff83c092ffa7c080ffa7c080ffe69875ffe69875ffd3c6aaff7a8478ffa7c080ffa7c080ffa7c080ffa7c080ff949f89ff", + "footer": "e67e80ffe67e80ffe67e80ffe67e80ffe67e80ffe67e80ff0000000000000000414d4dff465056ff0000000000000000000000000000000000000000465056ff0000000000000000323b41ff323b41ff323b41ff323b41ff323b41ff323b41ff323b41ff323b41ff323b41ff323b41ff323b41ff323b41ff3a4349ff465056ff859289ff20303bff333c43ff37222cffb8db87ffe26a75ff1b2b34ff2d1f26ffa0a5a7ff4fd6beff828bb8ff828bb8ffc53b53ffdbbc7fffa7c080ffd3c6aaffdbbc7fffd699b6ff7a8478ffa7c080ff83c092ffa7c080ff83c092ff83c092ffa7c080ffe69875ffd3c6aaff9da9a0ff7a8478ffa7c080ffd699b6ffe69875ff83c092ffd3c6aaffa7c080ffdbbc7fffe67e80ff2d353bff7a8478ff2d353bff2d353bff2d353bff2d353bffd3c6aaff7a8478ffd3c6aaffd3c6aaffd3c6aaffa7c080ff949f89ff949f89ff909688ffd3c6aaff949f89ff949f89ffd3c6aaff7a8478ffe67e80ffe67e80ff83c092ff83c092ffa7c080ffa7c080ffe69875ffe69875ffd3c6aaff7a8478ffa7c080ffa7c080ffa7c080ffa7c080ff949f89ff", + "decrease": "e67e80ffe67e80ffe67e80ffe67e80ffe67e80ffe67e80ff000000000000000083936cff3a4349ff000000000000000000000000000000000000000000000000000000000000000031393fff31393fff31393fff31393fff31393fff31393fff31393fff31393fff31393fff31393fff31393fff3a4349ff465056ff6f7c81ff859289ff20303bff333c43ff37222cffb8db87ffe26a75ff1b2b34ff2d1f26ffa0a5a7ff4fd6beff828bb8ff828bb8ffc53b53ffdbbc7fff7d8275ffd3c6aaffdbbc7fff897c81ff949f89ff7d8275ff77837aff7d8275ff77837aff77837aff7d8275ff8c7c75ffd3c6aaff9da9a0ff949f89ff7d8275ff897c81ff8c7c75ff77837affd3c6aaff7d8275ffdbbc7fffe67e80ff31393fff949f89ff31393fff31393fff31393fff31393fffd3c6aaff949f89ffd3c6aaffd3c6aaffd3c6aaff7d8275ffd3c6aaffd3c6aaffbabdb7ffd3c6aaffd3c6aaffd3c6aaffd3c6aaff949f89ffe67e80ffe67e80ff77837aff77837aff7d8275ff7d8275ff8c7c75ff8c7c75ffd3c6aaff949f89ff7d8275ff7d8275ff7d8275ff7d8275ffd3c6aaff", + "increase": "e67e80ffe67e80ffe67e80ffe67e80ffe67e80ffe67e80ff0000000000000000333c3cff2d353bff00000000000000000000000000000000000000000000000000000000000000002d353bff2d353bff2d353bff2d353bff2d353bff2d353bff2d353bff2d353bff2d353bff2d353bff2d353bff2d353bff31393fff323b41ff859289ff20303bff333c43ff37222cffb8db87ffe26a75ff1b2b34ff2d1f26ffa0a5a7ff4fd6beff828bb8ff828bb8ffc53b53ffdbbc7fff414d4dff7a8478ffdbbc7fff4a4a54ff465056ff414d4dff414d4fff414d4dff414d4fff414d4fff414d4dff4e4952ff7a8478ff9da9a0ff465056ff414d4dff4a4a54ff4e4952ff414d4fff7a8478ff414d4dffdbbc7fffe67e80ff2d353bff465056ff2d353bff2d353bff2d353bff2d353bff7a8478ff465056ff7a8478ff7a8478ff7a8478ff414d4dff6f7c81ff6f7c81ffa7c080ff7a8478ff6f7c81ff6f7c81ff7a8478ff465056ffe67e80ffe67e80ff414d4fff414d4fff414d4dff414d4dff4e4952ff4e4952ff7a8478ff465056ff414d4dff414d4dff414d4dff414d4dff6f7c81ff" + }, + "flexoki/light": { + "modes": ["light","dark"], + "hues": ["gray","red","orange","green","cyan","blue","purple","accent","interactive","neutral"], + "hue": "100f0fff4f4f4bff6f6e69ffb4b2a8ffcecdc2ffdedbd1fff1efe4fffaf8ecfffffcf0ff301c1aff7e6f6dffa08b87ffaf3029ffd9a59dfff4dbd7fff9ebe8fffbf3f2fffbf8f8ff2e1e17ff7d706bff9e8c84ffbc5215ffdbaf9cfff1ddd3fff8ebe6fffaf4f1fffbf8f7ff202417ff71756bff8e9384ff66800bffb3bf9cffdee4d3ffecf0e6fff4f6f1fff9f9f7ff192523ff6d7574ff879391ff24837bffa2c0bcffd7e4e2ffe8f0effff2f6f6fff8f9f9ff1a232eff6d747dff88919dff205ea6ff9cb3d1ffd7e2f0ffe8eff7fff3f6fafff8f9fbff23202eff74717dff918e9dff5e409dffb0a8ceffe3def0ffefecf7fff6f5fafff9f9fbff2e1e17ff7d706bff9e8c84ffbc5215ffdbaf9cfff1ddd3fff8ebe6fffaf4f1fffbf8f7ff1a232eff6d747dff88919dff205ea6ff9cb3d1ffd7e2f0ffe8eff7fff3f6fafff8f9fbff100f0fff4f4f4bff6f6e69ffb4b2a8ffcecdc2ffdedbd1fff1efe4fffaf8ecfffffcf0ff", + "categorical": "23202eff74717dff918e9dff5e409dffb0a8ceffe3def0ffefecf7fff6f5fafff9f9fbff2e1e17ff7d706bff9e8c84ffbc5215ffdbaf9cfff1ddd3fff8ebe6fffaf4f1fffbf8f7ff202417ff71756bff8e9384ff66800bffb3bf9cffdee4d3ffecf0e6fff4f6f1fff9f9f7ff1a232eff6d747dff88919dff205ea6ff9cb3d1ffd7e2f0ffe8eff7fff3f6fafff8f9fbff301c1aff7e6f6dffa08b87ffaf3029ffd9a59dfff4dbd7fff9ebe8fffbf3f2fffbf8f8ff192523ff6d7574ff879391ff24837bffa2c0bcffd7e4e2ffe8f0effff2f6f6fff8f9f9ff", + "base": "af3029ffaf3029ffaf3029ffaf3029ffaf3029ffaf3029ff0000000000000000d7e2f0fff1efe4ff0000000000000000000000000000000000000000000000000000000000000000fffcf0fffffcf0fffffcf0fffffcf0fffffcf0fffffcf0fffffcf0fffffcf0fffffcf0fffffcf0fffffcf0fff1efe4ffdedbd1ffcecdc2ffb7b5acffd5e5d5fff2f0e5fff7d8dbff66800bffaf3029ffc5d5c5ffe7c8cbff5a5955ff66800bff6f6e69ff205ea6ffaf3029ffad8301ff24837bff100f0fffad8301ff5e409dff6f6e69ffa02f6fff24837bff205ea6ff24837bff24837bffbc5215ffbc5215ff100f0fff878580ff6f6e69ffbc5215ff66800bff5e409dff6f6e69ff6f6e69ff24837bffad8301ff205ea6fffffcf0ff6f6e69fffffcf0fffffcf0fffffcf0fffffcf0ff100f0fff6f6e69ff100f0fff100f0fff100f0fff205ea6ff4f4f4bff4f4f4bff6d747dff100f0fff4f4f4bff4f4f4bff100f0fff6f6e69ffaf3029ffaf3029ff24837bff24837bff66800bff66800bffbc5215ffbc5215ff100f0fff6f6e69ff205ea6ff205ea6ff205ea6ff205ea6ff4f4f4bff", + "dialog": "af3029ffaf3029ffaf3029ffaf3029ffaf3029ffaf3029ff0000000000000000d7e2f0ffdedbd1ff0000000000000000000000000000000000000000dedbd1ff0000000000000000faf8ecfffaf8ecfffaf8ecfffaf8ecfffaf8ecfffaf8ecfffaf8ecfffaf8ecfffaf8ecfffaf8ecfffaf8ecfff1efe4fff1efe4ffcecdc2ffb7b5acffd5e5d5fff2f0e5fff7d8dbff66800bffaf3029ffc5d5c5ffe7c8cbff5a5955ff66800bff6f6e69ff205ea6ffaf3029ffad8301ff24837bff100f0fffad8301ff5e409dff6f6e69ffa02f6fff24837bff205ea6ff24837bff24837bffbc5215ffbc5215ff100f0fff878580ff6f6e69ffbc5215ff66800bff5e409dff6f6e69ff6f6e69ff24837bffad8301ff205ea6fffffcf0ff6f6e69fffffcf0fffffcf0fffffcf0fffffcf0ff100f0fff6f6e69ff100f0fff100f0fff100f0fff205ea6ff4f4f4bff4f4f4bff6d747dff100f0fff4f4f4bff4f4f4bff100f0fff6f6e69ffaf3029ffaf3029ff24837bff24837bff66800bff66800bffbc5215ffbc5215ff100f0fff6f6e69ff205ea6ff205ea6ff205ea6ff205ea6ff4f4f4bff", + "footer": "af3029ffaf3029ffaf3029ffaf3029ffaf3029ffaf3029ff0000000000000000d7e2f0ffdedbd1ff0000000000000000000000000000000000000000dedbd1ff0000000000000000faf8ecfffaf8ecfffaf8ecfffaf8ecfffaf8ecfffaf8ecfffaf8ecfffaf8ecfffaf8ecfffaf8ecfffaf8ecfff1efe4fff1efe4ffcecdc2ffb7b5acffd5e5d5fff2f0e5fff7d8dbff66800bffaf3029ffc5d5c5ffe7c8cbff5a5955ff66800bff6f6e69ff205ea6ffaf3029ffad8301ff24837bff100f0fffad8301ff5e409dff6f6e69ffa02f6fff24837bff205ea6ff24837bff24837bffbc5215ffbc5215ff100f0fff878580ff6f6e69ffbc5215ff66800bff5e409dff6f6e69ff6f6e69ff24837bffad8301ff205ea6fffffcf0ff6f6e69fffffcf0fffffcf0fffffcf0fffffcf0ff100f0fff6f6e69ff100f0fff100f0fff100f0fff205ea6ff4f4f4bff4f4f4bff6d747dff100f0fff4f4f4bff4f4f4bff100f0fff6f6e69ffaf3029ffaf3029ff24837bff24837bff66800bff66800bffbc5215ffbc5215ff100f0fff6f6e69ff205ea6ff205ea6ff205ea6ff205ea6ff4f4f4bff", + "decrease": "a08b87ffa08b87ffa08b87ffa08b87ffa08b87ffa08b87ff00000000000000009cb3d1ffdedbd1ff0000000000000000000000000000000000000000000000000000000000000000faf8ecfffaf8ecfffaf8ecfffaf8ecfffaf8ecfffaf8ecfffaf8ecfffaf8ecfffaf8ecfffaf8ecfffaf8ecffdedbd1ffcecdc2ffb4b2a8ffb7b5acffd5e5d5fff2f0e5fff7d8dbff8e9384ffa08b87ffc5d5c5ffe7c8cbff5a5955ff8e9384ff4f4f4bff88919dffa08b87ffad8301ff879391ff100f0fffad8301ff918e9dff4f4f4bffa02f6fff879391ff88919dff879391ff879391ff9e8c84ff9e8c84ff100f0fff878580ff4f4f4bff9e8c84ff8e9384ff918e9dff4f4f4bff4f4f4bff879391ffad8301ff88919dfffaf8ecff4f4f4bfffaf8ecfffaf8ecfffaf8ecfffaf8ecff100f0fff4f4f4bff100f0fff100f0fff100f0fff88919dff100f0fff100f0fff1a232eff100f0fff100f0fff100f0fff100f0fff4f4f4bffa08b87ffa08b87ff879391ff879391ff8e9384ff8e9384ff9e8c84ff9e8c84ff100f0fff4f4f4bff88919dff88919dff88919dff88919dff100f0fff", + "increase": "f4dbd7fff4dbd7fff4dbd7fff4dbd7fff4dbd7fff4dbd7ff0000000000000000f3f6fafffffcf0ff0000000000000000000000000000000000000000000000000000000000000000fffcf0fffffcf0fffffcf0fffffcf0fffffcf0fffffcf0fffffcf0fffffcf0fffffcf0fffffcf0fffffcf0fffffcf0fffaf8ecfff1efe4ffb7b5acffd5e5d5fff2f0e5fff7d8dbffdee4d3fff4dbd7ffc5d5c5ffe7c8cbff5a5955ffdee4d3ffcecdc2ffd7e2f0fff4dbd7ffad8301ffd7e4e2ff6f6e69ffad8301ffe3def0ffcecdc2ffa02f6fffd7e4e2ffd7e2f0ffd7e4e2ffd7e4e2fff1ddd3fff1ddd3ff6f6e69ff878580ffcecdc2fff1ddd3ffdee4d3ffe3def0ffcecdc2ffcecdc2ffd7e4e2ffad8301ffd7e2f0fffffcf0ffcecdc2fffffcf0fffffcf0fffffcf0fffffcf0ff6f6e69ffcecdc2ff6f6e69ff6f6e69ff6f6e69ffd7e2f0ffb4b2a8ffb4b2a8ff205ea6ff6f6e69ffb4b2a8ffb4b2a8ff6f6e69ffcecdc2fff4dbd7fff4dbd7ffd7e4e2ffd7e4e2ffdee4d3ffdee4d3fff1ddd3fff1ddd3ff6f6e69ffcecdc2ffd7e2f0ffd7e2f0ffd7e2f0ffd7e2f0ffb4b2a8ff" + }, + "flexoki/dark": { + "modes": ["light","dark"], + "hues": ["gray","red","orange","yellow","cyan","blue","purple","accent","interactive","neutral"], + "hue": "cecdc3ff92918aff6f6e69ff4f4d4cff333232ff242423ff191818ff161515ff100f0fffccbdbbffa1817cff816561ffd14d41ff8f4138ff3b2b29ff2b201fff1e1716ff130f0fffcabfb9ff9d8477ff7e685cffda702cff90512cff392c26ff2a211dff1d1715ff13100effc0c3baff888d79ff6b705eff879a39ff5e6933ff2d3027ff22241dff181915ff10110effbbc3c2ff7a8f8cff5f716fff3aa99fff35716bff27312fff1e2424ff151919ff0f1111ffbcc2c8ff7e8c9aff626f7bff4385beff3a6082ff292f36ff1f2328ff16191cff0f1112ffc1c0c8ff8a8899ff6d6b7aff8b7ec8ff615a86ff2f2e37ff232228ff19181cff111013ffc1c0c8ff8a8899ff6d6b7aff8b7ec8ff615a86ff2f2e37ff232228ff19181cff111013ffcabfb9ff9d8477ff7e685cffda702cff90512cff392c26ff2a211dff1d1715ff13100effcecdc3ff92918aff6f6e69ff4f4d4cff333232ff242423ff191818ff161515ff100f0fff", + "categorical": "bcc2c8ff7e8c9aff626f7bff4385beff3a6082ff292f36ff1f2328ff16191cff0f1112ffc1c0c8ff8a8899ff6d6b7aff8b7ec8ff615a86ff2f2e37ff232228ff19181cff111013ffc0c3baff888d79ff6b705eff879a39ff5e6933ff2d3027ff22241dff181915ff10110effcabfb9ff9d8477ff7e685cffda702cff90512cff392c26ff2a211dff1d1715ff13100effccbdbbffa1817cff816561ffd14d41ff8f4138ff3b2b29ff2b201fff1e1716ff130f0fffbbc3c2ff7a8f8cff5f716fff3aa99fff35716bff27312fff1e2424ff151919ff0f1111ff", + "base": "d14d41ffd14d41ffd14d41ffd14d41ffd14d41ffd14d41ff0000000000000000392c26ff191818ff0000000000000000000000000000000000000000000000000000000000000000100f0fff100f0fff100f0fff100f0fff100f0fff100f0fff100f0fff100f0fff100f0fff100f0fff100f0fff191818ff242423ff333232ff575653ff1a2d1aff1c1b1aff2d1a1aff879a39ffd14d41ff152515ff251515ff888883ff879a39ff6f6e69ff4385beffd14d41ffd0a215ff3aa99fffcecdc3ffd0a215ff8b7ec8ff6f6e69ffce5d97ff3aa99fff4385beff3aa99fff3aa99fffda702cffda702cffcecdc3ff6f6e69ff6f6e69ffda702cff879a39ff8b7ec8ffb7b5acffb7b5acff3aa99fffd0a215ff4385beff100f0fff6f6e69ff100f0fff100f0fff100f0fff100f0fffcecdc3ff6f6e69ffcecdc3ffcecdc3ffcecdc3ffda702cff92918aff92918aff9d8477ffcecdc3ff92918aff92918affcecdc3ff6f6e69ffd14d41ffd14d41ff3aa99fff3aa99fff879a39ff879a39ffda702cffda702cffcecdc3ff6f6e69ffda702cffda702cffda702cffda702cff92918aff", + "dialog": "d14d41ffd14d41ffd14d41ffd14d41ffd14d41ffd14d41ff0000000000000000392c26ff333232ff0000000000000000000000000000000000000000333232ff0000000000000000191818ff191818ff191818ff191818ff191818ff191818ff191818ff191818ff191818ff191818ff191818ff191818ff242423ff333232ff575653ff1a2d1aff1c1b1aff2d1a1aff879a39ffd14d41ff152515ff251515ff888883ff879a39ff6f6e69ff4385beffd14d41ffd0a215ff3aa99fffcecdc3ffd0a215ff8b7ec8ff6f6e69ffce5d97ff3aa99fff4385beff3aa99fff3aa99fffda702cffda702cffcecdc3ff6f6e69ff6f6e69ffda702cff879a39ff8b7ec8ffb7b5acffb7b5acff3aa99fffd0a215ff4385beff100f0fff6f6e69ff100f0fff100f0fff100f0fff100f0fffcecdc3ff6f6e69ffcecdc3ffcecdc3ffcecdc3ffda702cff92918aff92918aff9d8477ffcecdc3ff92918aff92918affcecdc3ff6f6e69ffd14d41ffd14d41ff3aa99fff3aa99fff879a39ff879a39ffda702cffda702cffcecdc3ff6f6e69ffda702cffda702cffda702cffda702cff92918aff", + "footer": "d14d41ffd14d41ffd14d41ffd14d41ffd14d41ffd14d41ff0000000000000000392c26ff333232ff0000000000000000000000000000000000000000333232ff0000000000000000191818ff191818ff191818ff191818ff191818ff191818ff191818ff191818ff191818ff191818ff191818ff191818ff242423ff333232ff575653ff1a2d1aff1c1b1aff2d1a1aff879a39ffd14d41ff152515ff251515ff888883ff879a39ff6f6e69ff4385beffd14d41ffd0a215ff3aa99fffcecdc3ffd0a215ff8b7ec8ff6f6e69ffce5d97ff3aa99fff4385beff3aa99fff3aa99fffda702cffda702cffcecdc3ff6f6e69ff6f6e69ffda702cff879a39ff8b7ec8ffb7b5acffb7b5acff3aa99fffd0a215ff4385beff100f0fff6f6e69ff100f0fff100f0fff100f0fff100f0fffcecdc3ff6f6e69ffcecdc3ffcecdc3ffcecdc3ffda702cff92918aff92918aff9d8477ffcecdc3ff92918aff92918affcecdc3ff6f6e69ffd14d41ffd14d41ff3aa99fff3aa99fff879a39ff879a39ffda702cffda702cffcecdc3ff6f6e69ffda702cffda702cffda702cffda702cff92918aff", + "decrease": "816561ff816561ff816561ff816561ff816561ff816561ff000000000000000090512cff242423ff0000000000000000000000000000000000000000000000000000000000000000161515ff161515ff161515ff161515ff161515ff161515ff161515ff161515ff161515ff161515ff161515ff242423ff333232ff4f4d4cff575653ff1a2d1aff1c1b1aff2d1a1aff6b705eff816561ff152515ff251515ff888883ff6b705eff92918aff626f7bff816561ffd0a215ff5f716fffcecdc3ffd0a215ff6d6b7aff92918affce5d97ff5f716fff626f7bff5f716fff5f716fff7e685cff7e685cffcecdc3ff92918aff92918aff7e685cff6b705eff6d6b7affb7b5acffb7b5acff5f716fffd0a215ff626f7bff161515ff92918aff161515ff161515ff161515ff161515ffcecdc3ff92918affcecdc3ffcecdc3ffcecdc3ff7e685cffcecdc3ffcecdc3ffcabfb9ffcecdc3ffcecdc3ffcecdc3ffcecdc3ff92918aff816561ff816561ff5f716fff5f716fff6b705eff6b705eff7e685cff7e685cffcecdc3ff92918aff7e685cff7e685cff7e685cff7e685cffcecdc3ff", + "increase": "3b2b29ff3b2b29ff3b2b29ff3b2b29ff3b2b29ff3b2b29ff00000000000000001d1715ff100f0fff0000000000000000000000000000000000000000000000000000000000000000100f0fff100f0fff100f0fff100f0fff100f0fff100f0fff100f0fff100f0fff100f0fff100f0fff100f0fff100f0fff161515ff191818ff575653ff1a2d1aff1c1b1aff2d1a1aff2d3027ff3b2b29ff152515ff251515ff888883ff2d3027ff333232ff292f36ff3b2b29ffd0a215ff27312fff6f6e69ffd0a215ff2f2e37ff333232ffce5d97ff27312fff292f36ff27312fff27312fff392c26ff392c26ff6f6e69ff333232ff333232ff392c26ff2d3027ff2f2e37ffb7b5acffb7b5acff27312fffd0a215ff292f36ff100f0fff333232ff100f0fff100f0fff100f0fff100f0fff6f6e69ff333232ff6f6e69ff6f6e69ff6f6e69ff392c26ff4f4d4cff4f4d4cffda702cff6f6e69ff4f4d4cff4f4d4cff6f6e69ff333232ff3b2b29ff3b2b29ff27312fff27312fff2d3027ff2d3027ff392c26ff392c26ff6f6e69ff333232ff392c26ff392c26ff392c26ff392c26ff4f4d4cff" + }, + "github/light": { + "modes": ["light","dark"], + "hues": ["gray","red","orange","yellow","green","cyan","blue","purple","accent","interactive","neutral"], + "hue": "24292fff57606aff8d9093ffb3b5b8ffcdd0d3ffdbdee1fff0f2f4fff9fbfcffffffffff503633ff937f7dffc8aca9ffcf222effe9a8a2fffbddd9fffeedebfffef7f6fffffbfbff4b3930ff8f817bffc2afa6ffbc4c00ffdeb09cfff5dfd6fffbeee9fffef7f4fffefcfbff453c31ff8a847cffbab2a6ff9a6700ffccb79cffece3d6fff6f1e9fffbf8f4fffdfcfbff344236ff7e887fffaab7abff1a7f37ffa1c2a5ffdae9dcffebf4ecfff6faf6fffbfdfbff344041ff7e8687ffaab6b7ff1b7c83ffa2c0c2ffdae7e8ffebf3f4fff6fafafffbfdfdff323e51ff7c8593ffa7b4c7ff0969daff9cbbe8ffd7e6faffeaf2fffff5f9fffffbfcffff3f3950ff858292ffb4afc7ff8250dfffbfb2eaffe6e0fafff2effefff9f8fffffcfcffff344041ff7e8687ffaab6b7ff1b7c83ffa2c0c2ffdae7e8ffebf3f4fff6fafafffbfdfdff323e51ff7c8593ffa7b4c7ff0969daff9cbbe8ffd7e6faffeaf2fffff5f9fffffbfcffff24292fff57606aff8d9093ffb3b5b8ffcdd0d3ffdbdee1fff0f2f4fff9fbfcffffffffff", + "categorical": "3f3950ff858292ffb4afc7ff8250dfffbfb2eaffe6e0fafff2effefff9f8fffffcfcffff344041ff7e8687ffaab6b7ff1b7c83ffa2c0c2ffdae7e8ffebf3f4fff6fafafffbfdfdff344236ff7e887fffaab7abff1a7f37ffa1c2a5ffdae9dcffebf4ecfff6faf6fffbfdfbff453c31ff8a847cffbab2a6ff9a6700ffccb79cffece3d6fff6f1e9fffbf8f4fffdfcfbff323e51ff7c8593ffa7b4c7ff0969daff9cbbe8ffd7e6faffeaf2fffff5f9fffffbfcffff503633ff937f7dffc8aca9ffcf222effe9a8a2fffbddd9fffeedebfffef7f6fffffbfbff4b3930ff8f817bffc2afa6ffbc4c00ffdeb09cfff5dfd6fffbeee9fffef7f4fffefcfbff", + "base": "cf222effcf222effcf222effcf222effcf222effcf222eff0000000000000000d7e6fafff0f2f4ff0000000000000000000000000000000000000000000000000000000000000000fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0f2f4ffdbdee1ffcdd0d3ffd0d7deffdafbe1fff6f8faffffebe9ff1a7f37ffcf222effdafbe1ffffebe9ff57606aff1a7f37ff57606aff0969daffcf222eff57606affbf3989ff24292fff9a6700ff0969daffd0d7deff0969daff1b7c83ff0969daff1b7c83ff1b7c83ff0969daffbc4c00ff24292fff0969daff57606aff8250dfffcf222eff1b7c83ffcf222eff24292fff0969daffbc4c00ffbc4c00ffffffffff8d9093ffffffffffffffffffffffffffffffffff24292fff8d9093ff24292fff24292fff24292fff0969daff57606aff57606aff7c8593ff24292fff57606aff57606aff24292fff8d9093ffcf222effcf222effbc4c00ffbc4c00ff1a7f37ff1a7f37ff9a6700ff9a6700ff24292fff8d9093ff0969daff0969daff0969daff0969daff57606aff", + "dialog": "cf222effcf222effcf222effcf222effcf222effcf222eff0000000000000000d7e6faffdbdee1ff0000000000000000000000000000000000000000dbdee1ff0000000000000000f9fbfcfff9fbfcfff9fbfcfff9fbfcfff9fbfcfff9fbfcfff9fbfcfff9fbfcfff9fbfcfff9fbfcfff9fbfcfff0f2f4fff0f2f4ffcdd0d3ffd0d7deffdafbe1fff6f8faffffebe9ff1a7f37ffcf222effdafbe1ffffebe9ff57606aff1a7f37ff57606aff0969daffcf222eff57606affbf3989ff24292fff9a6700ff0969daffd0d7deff0969daff1b7c83ff0969daff1b7c83ff1b7c83ff0969daffbc4c00ff24292fff0969daff57606aff8250dfffcf222eff1b7c83ffcf222eff24292fff0969daffbc4c00ffbc4c00ffffffffff8d9093ffffffffffffffffffffffffffffffffff24292fff8d9093ff24292fff24292fff24292fff0969daff57606aff57606aff7c8593ff24292fff57606aff57606aff24292fff8d9093ffcf222effcf222effbc4c00ffbc4c00ff1a7f37ff1a7f37ff9a6700ff9a6700ff24292fff8d9093ff0969daff0969daff0969daff0969daff57606aff", + "footer": "cf222effcf222effcf222effcf222effcf222effcf222eff0000000000000000d7e6faffdbdee1ff0000000000000000000000000000000000000000dbdee1ff0000000000000000f9fbfcfff9fbfcfff9fbfcfff9fbfcfff9fbfcfff9fbfcfff9fbfcfff9fbfcfff9fbfcfff9fbfcfff9fbfcfff0f2f4fff0f2f4ffcdd0d3ffd0d7deffdafbe1fff6f8faffffebe9ff1a7f37ffcf222effdafbe1ffffebe9ff57606aff1a7f37ff57606aff0969daffcf222eff57606affbf3989ff24292fff9a6700ff0969daffd0d7deff0969daff1b7c83ff0969daff1b7c83ff1b7c83ff0969daffbc4c00ff24292fff0969daff57606aff8250dfffcf222eff1b7c83ffcf222eff24292fff0969daffbc4c00ffbc4c00ffffffffff8d9093ffffffffffffffffffffffffffffffffff24292fff8d9093ff24292fff24292fff24292fff0969daff57606aff57606aff7c8593ff24292fff57606aff57606aff24292fff8d9093ffcf222effcf222effbc4c00ffbc4c00ff1a7f37ff1a7f37ff9a6700ff9a6700ff24292fff8d9093ff0969daff0969daff0969daff0969daff57606aff", + "decrease": "c8aca9ffc8aca9ffc8aca9ffc8aca9ffc8aca9ffc8aca9ff00000000000000009cbbe8ffdbdee1ff0000000000000000000000000000000000000000000000000000000000000000f9fbfcfff9fbfcfff9fbfcfff9fbfcfff9fbfcfff9fbfcfff9fbfcfff9fbfcfff9fbfcfff9fbfcfff9fbfcffdbdee1ffcdd0d3ffb3b5b8ffd0d7deffdafbe1fff6f8faffffebe9ffaab7abffc8aca9ffdafbe1ffffebe9ff24292fffaab7abff24292fffa7b4c7ffc8aca9ff24292fffbf3989ff24292fffbab2a6ffa7b4c7ffd0d7deffa7b4c7ffaab6b7ffa7b4c7ffaab6b7ffaab6b7ffa7b4c7ffc2afa6ff24292fffa7b4c7ff24292fffb4afc7ffc8aca9ffaab6b7ffc8aca9ff24292fffa7b4c7ffc2afa6ffc2afa6fff9fbfcff57606afff9fbfcfff9fbfcfff9fbfcfff9fbfcff24292fff57606aff24292fff24292fff24292fffa7b4c7ff24292fff24292fff323e51ff24292fff24292fff24292fff24292fff57606affc8aca9ffc8aca9ffc2afa6ffc2afa6ffaab7abffaab7abffbab2a6ffbab2a6ff24292fff57606affa7b4c7ffa7b4c7ffa7b4c7ffa7b4c7ff24292fff", + "increase": "fbddd9fffbddd9fffbddd9fffbddd9fffbddd9fffbddd9ff0000000000000000f5f9ffffffffffff0000000000000000000000000000000000000000000000000000000000000000fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff9fbfcfff0f2f4ffd0d7deffdafbe1fff6f8faffffebe9ffdae9dcfffbddd9ffdafbe1ffffebe9ffb3b5b8ffdae9dcffb3b5b8ffd7e6fafffbddd9ffb3b5b8ffbf3989ff8d9093ffece3d6ffd7e6faffd0d7deffd7e6faffdae7e8ffd7e6faffdae7e8ffdae7e8ffd7e6fafff5dfd6ff8d9093ffd7e6faffb3b5b8ffe6e0fafffbddd9ffdae7e8fffbddd9ff8d9093ffd7e6fafff5dfd6fff5dfd6ffffffffffcdd0d3ffffffffffffffffffffffffffffffffff8d9093ffcdd0d3ff8d9093ff8d9093ff8d9093ffd7e6faffb3b5b8ffb3b5b8ff0969daff8d9093ffb3b5b8ffb3b5b8ff8d9093ffcdd0d3fffbddd9fffbddd9fff5dfd6fff5dfd6ffdae9dcffdae9dcffece3d6ffece3d6ff8d9093ffcdd0d3ffd7e6faffd7e6faffd7e6faffd7e6faffb3b5b8ff" + }, + "github/dark": { + "modes": ["light","dark"], + "hues": ["gray","red","orange","yellow","green","cyan","blue","purple","accent","interactive","neutral"], + "hue": "c9d1d9ff8b949eff6a7078ff4a5058ff2f343cff20252dff141a22ff11171fff0d1117ffd2c0beffa8817cff876560fff85149ffa3423bff3d2a35ff2e2027ff21171cff161015ffcac4bbff978a75ff786d5bffd29922ff886628ff283228ff1e261eff161b16ff0c1413ffc9c4bbff958b75ff776d5bffe3b341ff8e7232ff273229ff1e261fff161b16ff0c1413ffbec8beff7c937cff607561ff3fb950ff377b3eff1e3331ff172625ff111c1bff0b1315ffbdc7c8ff799193ff5e7375ff39c5cfff337e84ff243236ff1c2529ff141b1eff0d1316ffbec5cfff7d8ea2ff617082ff58a6ffff416fa3ff28303cff1e242dff161a21ff0f1218ffc6c2ceff9087a1ff726a81ffbc8cffff7a5ea2ff2f2e3dff23232eff1a1921ff111118ffbdc7c8ff799193ff5e7375ff39c5cfff337e84ff243236ff1c2529ff141b1eff0d1316ffbec5cfff7d8ea2ff617082ff58a6ffff416fa3ff28303cff1e242dff161a21ff0f1218ffc9d1d9ff8b949eff6a7078ff4a5058ff2f343cff20252dff141a22ff11171fff0d1117ff", + "categorical": "c6c2ceff9087a1ff726a81ffbc8cffff7a5ea2ff2f2e3dff23232eff1a1921ff111118ffbdc7c8ff799193ff5e7375ff39c5cfff337e84ff243236ff1c2529ff141b1eff0d1316ffbec8beff7c937cff607561ff3fb950ff377b3eff1e3331ff172625ff111c1bff0b1315ffc9c4bbff958b75ff776d5bffe3b341ff8e7232ff273229ff1e261fff161b16ff0c1413ffbec5cfff7d8ea2ff617082ff58a6ffff416fa3ff28303cff1e242dff161a21ff0f1218ffd2c0beffa8817cff876560fff85149ffa3423bff3d2a35ff2e2027ff21171cff161015ffcac4bbff978a75ff786d5bffd29922ff886628ff283228ff1e261eff161b16ff0c1413ff", + "base": "f85149fff85149fff85149fff85149fff85149fff85149ff000000000000000028303cff141a22ff00000000000000000000000000000000000000000000000000000000000000000d1117ff0d1117ff0d1117ff0d1117ff0d1117ff0d1117ff0d1117ff0d1117ff0d1117ff0d1117ff0d1117ff141a22ff20252dff2f343cff30363dff033a16ff010409ff67060cff3fb950fff85149ff033a16ff67060cff95999eff3fb950ff8b949eff58a6fffff85149ff8b949effff7b72ffc9d1d9ffe3b341ff58a6ffff30363dff58a6ffff39c5cfff58a6ffff39c5cfff39c5cfff58a6ffffd29922ffc9d1d9ff58a6ffff8b949effbc8cffffff7b72ff58a6ffffff7b72ffc9d1d9ff39c5cfffd29922ffd29922ff0d1117ff6a7078ff0d1117ff0d1117ff0d1117ff0d1117ffc9d1d9ff6a7078ffc9d1d9ffc9d1d9ffc9d1d9ff58a6ffff8b949eff8b949eff7d8ea2ffc9d1d9ff8b949eff8b949effc9d1d9ff6a7078fff85149fff85149ffd29922ffd29922ff3fb950ff3fb950ffe3b341ffe3b341ffc9d1d9ff6a7078ff58a6ffff58a6ffff58a6ffff58a6ffff8b949eff", + "dialog": "f85149fff85149fff85149fff85149fff85149fff85149ff000000000000000028303cff2f343cff00000000000000000000000000000000000000002f343cff0000000000000000141a22ff141a22ff141a22ff141a22ff141a22ff141a22ff141a22ff141a22ff141a22ff141a22ff141a22ff141a22ff20252dff2f343cff30363dff033a16ff010409ff67060cff3fb950fff85149ff033a16ff67060cff95999eff3fb950ff8b949eff58a6fffff85149ff8b949effff7b72ffc9d1d9ffe3b341ff58a6ffff30363dff58a6ffff39c5cfff58a6ffff39c5cfff39c5cfff58a6ffffd29922ffc9d1d9ff58a6ffff8b949effbc8cffffff7b72ff58a6ffffff7b72ffc9d1d9ff39c5cfffd29922ffd29922ff0d1117ff6a7078ff0d1117ff0d1117ff0d1117ff0d1117ffc9d1d9ff6a7078ffc9d1d9ffc9d1d9ffc9d1d9ff58a6ffff8b949eff8b949eff7d8ea2ffc9d1d9ff8b949eff8b949effc9d1d9ff6a7078fff85149fff85149ffd29922ffd29922ff3fb950ff3fb950ffe3b341ffe3b341ffc9d1d9ff6a7078ff58a6ffff58a6ffff58a6ffff58a6ffff8b949eff", + "footer": "f85149fff85149fff85149fff85149fff85149fff85149ff000000000000000028303cff2f343cff00000000000000000000000000000000000000002f343cff0000000000000000141a22ff141a22ff141a22ff141a22ff141a22ff141a22ff141a22ff141a22ff141a22ff141a22ff141a22ff141a22ff20252dff2f343cff30363dff033a16ff010409ff67060cff3fb950fff85149ff033a16ff67060cff95999eff3fb950ff8b949eff58a6fffff85149ff8b949effff7b72ffc9d1d9ffe3b341ff58a6ffff30363dff58a6ffff39c5cfff58a6ffff39c5cfff39c5cfff58a6ffffd29922ffc9d1d9ff58a6ffff8b949effbc8cffffff7b72ff58a6ffffff7b72ffc9d1d9ff39c5cfffd29922ffd29922ff0d1117ff6a7078ff0d1117ff0d1117ff0d1117ff0d1117ffc9d1d9ff6a7078ffc9d1d9ffc9d1d9ffc9d1d9ff58a6ffff8b949eff8b949eff7d8ea2ffc9d1d9ff8b949eff8b949effc9d1d9ff6a7078fff85149fff85149ffd29922ffd29922ff3fb950ff3fb950ffe3b341ffe3b341ffc9d1d9ff6a7078ff58a6ffff58a6ffff58a6ffff58a6ffff8b949eff", + "decrease": "876560ff876560ff876560ff876560ff876560ff876560ff0000000000000000416fa3ff20252dff000000000000000000000000000000000000000000000000000000000000000011171fff11171fff11171fff11171fff11171fff11171fff11171fff11171fff11171fff11171fff11171fff20252dff2f343cff4a5058ff30363dff033a16ff010409ff67060cff607561ff876560ff033a16ff67060cff95999eff607561ffc9d1d9ff617082ff876560ffc9d1d9ffff7b72ffc9d1d9ff776d5bff617082ff30363dff617082ff5e7375ff617082ff5e7375ff5e7375ff617082ff786d5bffc9d1d9ff617082ffc9d1d9ff726a81ffff7b72ff617082ffff7b72ffc9d1d9ff5e7375ff786d5bff786d5bff11171fff8b949eff11171fff11171fff11171fff11171fffc9d1d9ff8b949effc9d1d9ffc9d1d9ffc9d1d9ff617082ffc9d1d9ffc9d1d9ffbec5cfffc9d1d9ffc9d1d9ffc9d1d9ffc9d1d9ff8b949eff876560ff876560ff786d5bff786d5bff607561ff607561ff776d5bff776d5bffc9d1d9ff8b949eff617082ff617082ff617082ff617082ffc9d1d9ff", + "increase": "3d2a35ff3d2a35ff3d2a35ff3d2a35ff3d2a35ff3d2a35ff0000000000000000161a21ff0d1117ff00000000000000000000000000000000000000000000000000000000000000000d1117ff0d1117ff0d1117ff0d1117ff0d1117ff0d1117ff0d1117ff0d1117ff0d1117ff0d1117ff0d1117ff0d1117ff11171fff141a22ff30363dff033a16ff010409ff67060cff1e3331ff3d2a35ff033a16ff67060cff95999eff1e3331ff4a5058ff28303cff3d2a35ff4a5058ffff7b72ff6a7078ff273229ff28303cff30363dff28303cff243236ff28303cff243236ff243236ff28303cff283228ff6a7078ff28303cff4a5058ff2f2e3dffff7b72ff28303cffff7b72ff6a7078ff243236ff283228ff283228ff0d1117ff2f343cff0d1117ff0d1117ff0d1117ff0d1117ff6a7078ff2f343cff6a7078ff6a7078ff6a7078ff28303cff4a5058ff4a5058ff58a6ffff6a7078ff4a5058ff4a5058ff6a7078ff2f343cff3d2a35ff3d2a35ff283228ff283228ff1e3331ff1e3331ff273229ff273229ff6a7078ff2f343cff28303cff28303cff28303cff28303cff4a5058ff" + }, + "gruvbox/light": { + "modes": ["light","dark"], + "hues": ["gray","red","orange","yellow","green","cyan","purple","accent","interactive","neutral"], + "hue": "3c3836ff7c6f64ff9e8f7dffb6a583ffd2c19effe0d0acfff3e3b9fffbecc2fffbf1c7ff604845ffa59491ffc8b0acff9d0006ffcc958dffecd0cafff0dfdcfff0e8e7fff0edecff5e4a43ffa49590ffc6b1aaffaf3a03ffd0a191ffe9d2c8ffeee0dbffefe8e6fff0edecff505043ff999990ffb7b7aaff79740effb4b394ffd7d7c9ffe4e3dbffeaeae6ffeeeeecff48524bff949a96ffb0b9b2ff427b58ffa1b6a7ffcfd9d2ffdfe4e0ffe8ebe9ffedeeedff465154ff929a9cffadb8bbff076678ff94aeb5ffccd9dcffdde4e6ffe7ebecffeceeeeff594a52ffa0959bffc0b1b9ff8f3f71ffc19fb2ffe5d1d9ffeae0e5ffede8ebffefedeeff48524bff949a96ffb0b9b2ff427b58ffa1b6a7ffcfd9d2ffdfe4e0ffe8ebe9ffedeeedff465154ff929a9cffadb8bbff076678ff94aeb5ffccd9dcffdde4e6ffe7ebecffeceeeeff3c3836ff7c6f64ff9e8f7dffb6a583ffd2c19effe0d0acfff3e3b9fffbecc2fffbf1c7ff", + "categorical": "594a52ffa0959bffc0b1b9ff8f3f71ffc19fb2ffe5d1d9ffeae0e5ffede8ebffefedeeff48524bff949a96ffb0b9b2ff427b58ffa1b6a7ffcfd9d2ffdfe4e0ffe8ebe9ffedeeedff505043ff999990ffb7b7aaff79740effb4b394ffd7d7c9ffe4e3dbffeaeae6ffeeeeecff5e4a43ffa49590ffc6b1aaffaf3a03ffd0a191ffe9d2c8ffeee0dbffefe8e6fff0edecff465154ff929a9cffadb8bbff076678ff94aeb5ffccd9dcffdde4e6ffe7ebecffeceeeeff604845ffa59491ffc8b0acff9d0006ffcc958dffecd0cafff0dfdcfff0e8e7fff0edecff", + "base": "9d0006ff9d0006ff9d0006ff9d0006ff9d0006ff9d0006ff0000000000000000ccd9dcfff3e3b9ff0000000000000000000000000000000000000000000000000000000000000000fbf1c7fffbf1c7fffbf1c7fffbf1c7fffbf1c7fffbf1c7fffbf1c7fffbf1c7fffbf1c7fffbf1c7fffbf1c7fff3e3b9ffe0d0acffd2c19effbdae93ffdcd8a4ffebdbb2ffe2c7c3ff79740eff9d0006ffcec99effd3bdb9ff564f43ff79740eff7c6f64ff427b58ff9d0006ff7c6f64ffb57614ff3c3836ff8f3f71ff076678ff7c6f64ff427b58ff79740eff427b58ff79740eff427b58ff076678ffaf3a03ff3c3836ff3c3836ff7c6f64ff79740eff9d0006ff8f3f71ffaf3a03ff3c3836ffb57614ff427b58ff076678fffbf1c7ff9e8f7dfffbf1c7fffbf1c7fffbf1c7fffbf1c7ff3c3836ff9e8f7dff3c3836ff3c3836ff3c3836ff076678ff7c6f64ff7c6f64ff929a9cff3c3836ff7c6f64ff7c6f64ff3c3836ff9e8f7dff9d0006ff9d0006ffb57614ffb57614ff79740eff79740effaf3a03ffaf3a03ff3c3836ff9e8f7dff076678ff076678ff076678ff076678ff7c6f64ff", + "dialog": "9d0006ff9d0006ff9d0006ff9d0006ff9d0006ff9d0006ff0000000000000000ccd9dcffe0d0acff0000000000000000000000000000000000000000e0d0acff0000000000000000fbecc2fffbecc2fffbecc2fffbecc2fffbecc2fffbecc2fffbecc2fffbecc2fffbecc2fffbecc2fffbecc2fff3e3b9fff3e3b9ffd2c19effbdae93ffdcd8a4ffebdbb2ffe2c7c3ff79740eff9d0006ffcec99effd3bdb9ff564f43ff79740eff7c6f64ff427b58ff9d0006ff7c6f64ffb57614ff3c3836ff8f3f71ff076678ff7c6f64ff427b58ff79740eff427b58ff79740eff427b58ff076678ffaf3a03ff3c3836ff3c3836ff7c6f64ff79740eff9d0006ff8f3f71ffaf3a03ff3c3836ffb57614ff427b58ff076678fffbf1c7ff9e8f7dfffbf1c7fffbf1c7fffbf1c7fffbf1c7ff3c3836ff9e8f7dff3c3836ff3c3836ff3c3836ff076678ff7c6f64ff7c6f64ff929a9cff3c3836ff7c6f64ff7c6f64ff3c3836ff9e8f7dff9d0006ff9d0006ffb57614ffb57614ff79740eff79740effaf3a03ffaf3a03ff3c3836ff9e8f7dff076678ff076678ff076678ff076678ff7c6f64ff", + "footer": "9d0006ff9d0006ff9d0006ff9d0006ff9d0006ff9d0006ff0000000000000000ccd9dcffe0d0acff0000000000000000000000000000000000000000e0d0acff0000000000000000fbecc2fffbecc2fffbecc2fffbecc2fffbecc2fffbecc2fffbecc2fffbecc2fffbecc2fffbecc2fffbecc2fff3e3b9fff3e3b9ffd2c19effbdae93ffdcd8a4ffebdbb2ffe2c7c3ff79740eff9d0006ffcec99effd3bdb9ff564f43ff79740eff7c6f64ff427b58ff9d0006ff7c6f64ffb57614ff3c3836ff8f3f71ff076678ff7c6f64ff427b58ff79740eff427b58ff79740eff427b58ff076678ffaf3a03ff3c3836ff3c3836ff7c6f64ff79740eff9d0006ff8f3f71ffaf3a03ff3c3836ffb57614ff427b58ff076678fffbf1c7ff9e8f7dfffbf1c7fffbf1c7fffbf1c7fffbf1c7ff3c3836ff9e8f7dff3c3836ff3c3836ff3c3836ff076678ff7c6f64ff7c6f64ff929a9cff3c3836ff7c6f64ff7c6f64ff3c3836ff9e8f7dff9d0006ff9d0006ffb57614ffb57614ff79740eff79740effaf3a03ffaf3a03ff3c3836ff9e8f7dff076678ff076678ff076678ff076678ff7c6f64ff", + "decrease": "c8b0acffc8b0acffc8b0acffc8b0acffc8b0acffc8b0acff000000000000000094aeb5ffe0d0acff0000000000000000000000000000000000000000000000000000000000000000fbecc2fffbecc2fffbecc2fffbecc2fffbecc2fffbecc2fffbecc2fffbecc2fffbecc2fffbecc2fffbecc2ffe0d0acffd2c19effb6a583ffbdae93ffdcd8a4ffebdbb2ffe2c7c3ffb7b7aaffc8b0acffcec99effd3bdb9ff564f43ffb7b7aaff3c3836ffb0b9b2ffc8b0acff3c3836ffb57614ff3c3836ffc0b1b9ffadb8bbff3c3836ffb0b9b2ffb7b7aaffb0b9b2ffb7b7aaffb0b9b2ffadb8bbffc6b1aaff3c3836ff3c3836ff3c3836ffb7b7aaffc8b0acffc0b1b9ffc6b1aaff3c3836ffb57614ffb0b9b2ffadb8bbfffbecc2ff7c6f64fffbecc2fffbecc2fffbecc2fffbecc2ff3c3836ff7c6f64ff3c3836ff3c3836ff3c3836ffadb8bbff3c3836ff3c3836ff465154ff3c3836ff3c3836ff3c3836ff3c3836ff7c6f64ffc8b0acffc8b0acffb57614ffb57614ffb7b7aaffb7b7aaffc6b1aaffc6b1aaff3c3836ff7c6f64ffadb8bbffadb8bbffadb8bbffadb8bbff3c3836ff", + "increase": "ecd0caffecd0caffecd0caffecd0caffecd0caffecd0caff0000000000000000e7ebecfffbf1c7ff0000000000000000000000000000000000000000000000000000000000000000fbf1c7fffbf1c7fffbf1c7fffbf1c7fffbf1c7fffbf1c7fffbf1c7fffbf1c7fffbf1c7fffbf1c7fffbf1c7fffbf1c7fffbecc2fff3e3b9ffbdae93ffdcd8a4ffebdbb2ffe2c7c3ffd7d7c9ffecd0caffcec99effd3bdb9ff564f43ffd7d7c9ffb6a583ffcfd9d2ffecd0caffb6a583ffb57614ff9e8f7dffe5d1d9ffccd9dcffb6a583ffcfd9d2ffd7d7c9ffcfd9d2ffd7d7c9ffcfd9d2ffccd9dcffe9d2c8ff9e8f7dff9e8f7dffb6a583ffd7d7c9ffecd0caffe5d1d9ffe9d2c8ff9e8f7dffb57614ffcfd9d2ffccd9dcfffbf1c7ffd2c19efffbf1c7fffbf1c7fffbf1c7fffbf1c7ff9e8f7dffd2c19eff9e8f7dff9e8f7dff9e8f7dffccd9dcffb6a583ffb6a583ff076678ff9e8f7dffb6a583ffb6a583ff9e8f7dffd2c19effecd0caffecd0caffb57614ffb57614ffd7d7c9ffd7d7c9ffe9d2c8ffe9d2c8ff9e8f7dffd2c19effccd9dcffccd9dcffccd9dcffccd9dcffb6a583ff" + }, + "gruvbox/dark": { + "modes": ["light","dark"], + "hues": ["gray","red","orange","yellow","green","accent","interactive","neutral"], + "hue": "ebdbb2ffafa488ff928374ff716a66ff484341ff3a3634ff2f2d2dff2d2c2bff282828ffdfccc8ffbc928affa07b74fffb4934ffb85040ff4b3d3aff3d3432ff322d2cff2c2827ffdbcec6ffb59785ff997f6ffffe8019ffb46837ff493e39ff3b3431ff312d2bff2b2927ffd1d2c6ff9ea085ff86876fffb8bb26ff86883bff404138ff363631ff2e2f2bff292927ffced1d0ff98a09dff808784ff83a598ff6a7f77ff3e413fff353636ff2e2e2eff292929ffced1d0ff98a09dff808784ff83a598ff6a7f77ff3e413fff353636ff2e2e2eff292929ffced1d0ff98a09dff808784ff83a598ff6a7f77ff3e413fff353636ff2e2e2eff292929ffebdbb2ffafa488ff928374ff716a66ff484341ff3a3634ff2f2d2dff2d2c2bff282828ff", + "categorical": "dfccc8ffbc928affa07b74fffb4934ffb85040ff4b3d3aff3d3432ff322d2cff2c2827ffced1d0ff98a09dff808784ff83a598ff6a7f77ff3e413fff353636ff2e2e2eff292929ffd1d2c6ff9ea085ff86876fffb8bb26ff86883bff404138ff363631ff2e2f2bff292927ffdbcec6ffb59785ff997f6ffffe8019ffb46837ff493e39ff3b3431ff312d2bff2b2927ff", + "base": "fb4934fffb4934fffb4934fffb4934fffb4934fffb4934ff00000000000000003e413fff2f2d2dff0000000000000000000000000000000000000000000000000000000000000000282828ff282828ff282828ff282828ff282828ff282828ff282828ff282828ff282828ff282828ff282828ff2f2d2dff3a3634ff484341ff665c54ff32302fff3c3836ff322929ffb8bb26fffb4934ff2a2827ff2a2222ffa8a29eff98971aff928374ff689d6affcc241dff928374fffabd2fffebdbb2ffd3869bff83a598ff928374ff8ec07cffb8bb26ff8ec07cffb8bb26ff8ec07cff83a598fffe8019ffebdbb2ffebdbb2ff928374ffb8bb26fffb4934ffd3869bfffe8019ffebdbb2fffabd2fff8ec07cff83a598ff282828ff928374ff282828ff282828ff282828ff282828ffebdbb2ff928374ffebdbb2ffebdbb2ffebdbb2ff83a598ffafa488ffafa488ff98a09dffebdbb2ffafa488ffafa488ffebdbb2ff928374fffb4934fffb4934fffabd2ffffabd2fffb8bb26ffb8bb26fffe8019fffe8019ffebdbb2ff928374ff83a598ff83a598ff83a598ff83a598ffafa488ff", + "dialog": "fb4934fffb4934fffb4934fffb4934fffb4934fffb4934ff00000000000000003e413fff484341ff0000000000000000000000000000000000000000484341ff00000000000000002f2d2dff2f2d2dff2f2d2dff2f2d2dff2f2d2dff2f2d2dff2f2d2dff2f2d2dff2f2d2dff2f2d2dff2f2d2dff2f2d2dff3a3634ff484341ff665c54ff32302fff3c3836ff322929ffb8bb26fffb4934ff2a2827ff2a2222ffa8a29eff98971aff928374ff689d6affcc241dff928374fffabd2fffebdbb2ffd3869bff83a598ff928374ff8ec07cffb8bb26ff8ec07cffb8bb26ff8ec07cff83a598fffe8019ffebdbb2ffebdbb2ff928374ffb8bb26fffb4934ffd3869bfffe8019ffebdbb2fffabd2fff8ec07cff83a598ff282828ff928374ff282828ff282828ff282828ff282828ffebdbb2ff928374ffebdbb2ffebdbb2ffebdbb2ff83a598ffafa488ffafa488ff98a09dffebdbb2ffafa488ffafa488ffebdbb2ff928374fffb4934fffb4934fffabd2ffffabd2fffb8bb26ffb8bb26fffe8019fffe8019ffebdbb2ff928374ff83a598ff83a598ff83a598ff83a598ffafa488ff", + "footer": "fb4934fffb4934fffb4934fffb4934fffb4934fffb4934ff00000000000000003e413fff484341ff0000000000000000000000000000000000000000484341ff00000000000000002f2d2dff2f2d2dff2f2d2dff2f2d2dff2f2d2dff2f2d2dff2f2d2dff2f2d2dff2f2d2dff2f2d2dff2f2d2dff2f2d2dff3a3634ff484341ff665c54ff32302fff3c3836ff322929ffb8bb26fffb4934ff2a2827ff2a2222ffa8a29eff98971aff928374ff689d6affcc241dff928374fffabd2fffebdbb2ffd3869bff83a598ff928374ff8ec07cffb8bb26ff8ec07cffb8bb26ff8ec07cff83a598fffe8019ffebdbb2ffebdbb2ff928374ffb8bb26fffb4934ffd3869bfffe8019ffebdbb2fffabd2fff8ec07cff83a598ff282828ff928374ff282828ff282828ff282828ff282828ffebdbb2ff928374ffebdbb2ffebdbb2ffebdbb2ff83a598ffafa488ffafa488ff98a09dffebdbb2ffafa488ffafa488ffebdbb2ff928374fffb4934fffb4934fffabd2ffffabd2fffb8bb26ffb8bb26fffe8019fffe8019ffebdbb2ff928374ff83a598ff83a598ff83a598ff83a598ffafa488ff", + "decrease": "a07b74ffa07b74ffa07b74ffa07b74ffa07b74ffa07b74ff00000000000000006a7f77ff3a3634ff00000000000000000000000000000000000000000000000000000000000000002d2c2bff2d2c2bff2d2c2bff2d2c2bff2d2c2bff2d2c2bff2d2c2bff2d2c2bff2d2c2bff2d2c2bff2d2c2bff3a3634ff484341ff716a66ff665c54ff32302fff3c3836ff322929ff86876fffa07b74ff2a2827ff2a2222ffa8a29eff98971affafa488ff689d6affcc241dffafa488fffabd2fffebdbb2ffd3869bff808784ffafa488ff8ec07cff86876fff8ec07cff86876fff8ec07cff808784ff997f6fffebdbb2ffebdbb2ffafa488ff86876fffa07b74ffd3869bff997f6fffebdbb2fffabd2fff8ec07cff808784ff2d2c2bffafa488ff2d2c2bff2d2c2bff2d2c2bff2d2c2bffebdbb2ffafa488ffebdbb2ffebdbb2ffebdbb2ff808784ffebdbb2ffebdbb2ffced1d0ffebdbb2ffebdbb2ffebdbb2ffebdbb2ffafa488ffa07b74ffa07b74fffabd2ffffabd2fff86876fff86876fff997f6fff997f6fffebdbb2ffafa488ff808784ff808784ff808784ff808784ffebdbb2ff", + "increase": "4b3d3aff4b3d3aff4b3d3aff4b3d3aff4b3d3aff4b3d3aff00000000000000002e2e2eff282828ff0000000000000000000000000000000000000000000000000000000000000000282828ff282828ff282828ff282828ff282828ff282828ff282828ff282828ff282828ff282828ff282828ff282828ff2d2c2bff2f2d2dff665c54ff32302fff3c3836ff322929ff404138ff4b3d3aff2a2827ff2a2222ffa8a29eff98971aff484341ff689d6affcc241dff484341fffabd2fff928374ffd3869bff3e413fff484341ff8ec07cff404138ff8ec07cff404138ff8ec07cff3e413fff493e39ff928374ff928374ff484341ff404138ff4b3d3affd3869bff493e39ff928374fffabd2fff8ec07cff3e413fff282828ff484341ff282828ff282828ff282828ff282828ff928374ff484341ff928374ff928374ff928374ff3e413fff716a66ff716a66ff83a598ff928374ff716a66ff716a66ff928374ff484341ff4b3d3aff4b3d3afffabd2ffffabd2fff404138ff404138ff493e39ff493e39ff928374ff484341ff3e413fff3e413fff3e413fff3e413fff716a66ff" + }, + "kanagawa/light": { + "modes": ["light","dark"], + "hues": ["gray","red","orange","green","cyan","purple","accent","interactive","neutral"], + "hue": "54433aff827369ff9e9389ffa7a197ffc3bdb3ffd2cac1ffe4ded1ffece6d9fff2e9deff68595dffa59a9dffc3b5b9ffd27e99ffd5b3bcffddcdd0ffe4dbddffe8e3e4ffe9e7e8ff655d51ffa29c94ffc0b8adffd7a657ffd4c2a6ffd8d0c3ffe1dcd5ffe6e4e0ffe9e8e6ff5a6058ff9b9f99ffb6bbb4ff76946affafbbabffccd2caffdbdedaffe3e5e2ffe7e8e7ff595f64ff9a9ea1ffb4babfff2d4f67ff93a1abffcbd2d6ffdadee0ffe3e4e6ffe7e8e8ff5f5c66ff9e9ca3ffbbb7c1ff957fb8ffbbb3caffd3cfd9ffdedce2ffe5e4e7ffe8e7e9ff68595dffa59a9dffc3b5b9ffd27e99ffd5b3bcffddcdd0ffe4dbddffe8e3e4ffe9e7e8ff595f64ff9a9ea1ffb4babfff2d4f67ff93a1abffcbd2d6ffdadee0ffe3e4e6ffe7e8e8ff54433aff827369ff9e9389ffa7a197ffc3bdb3ffd2cac1ffe4ded1ffece6d9fff2e9deff", + "categorical": "5f5c66ff9e9ca3ffbbb7c1ff957fb8ffbbb3caffd3cfd9ffdedce2ffe5e4e7ffe8e7e9ff68595dffa59a9dffc3b5b9ffd27e99ffd5b3bcffddcdd0ffe4dbddffe8e3e4ffe9e7e8ff5a6058ff9b9f99ffb6bbb4ff76946affafbbabffccd2caffdbdedaffe3e5e2ffe7e8e7ff655d51ffa29c94ffc0b8adffd7a657ffd4c2a6ffd8d0c3ffe1dcd5ffe6e4e0ffe9e8e6ff595f64ff9a9ea1ffb4babfff2d4f67ff93a1abffcbd2d6ffdadee0ffe3e4e6ffe7e8e8ff", + "base": "e82424ffe82424ffe82424ffe82424ffe82424ffe82424ff0000000000000000cbd2d6ffe4ded1ff0000000000000000000000000000000000000000000000000000000000000000f2e9defff2e9defff2e9defff2e9defff2e9defff2e9defff2e9defff2e9defff2e9defff2e9defff2e9deffe4ded1ffd2cac1ffc3bdb3ffd4cbbfffeaf3e4ffeae4d7fffbe6e6ff89af5bffd61f1fffdde8d6fff2dadaff65615cff98bb6cff9e9389ff2d4f67ffe82424ff9e9389ff98bb6cff54433affc38d9dff957fb8ff9e9389ff2d4f67ff76946aff2d4f67ff76946aff76946aff2d4f67ffd7a657ff54433affc38d9dff9e9389ff2d4f67ff957fb8ffd7a657ffd27e99ff54433aff98bb6cffc38d9dff54433afff2e9deff9e9389fff2e9defff2e9defff2e9defff2e9deff54433aff9e9389ff54433aff54433aff54433aff2d4f67ff827369ff827369ff9a9ea1ff54433aff827369ff827369ff54433aff9e9389ffe82424ffe82424ff76946aff76946aff98bb6cff98bb6cffd7a657ffd7a657ff54433aff9e9389ff2d4f67ff2d4f67ff2d4f67ff2d4f67ff827369ff", + "dialog": "e82424ffe82424ffe82424ffe82424ffe82424ffe82424ff0000000000000000cbd2d6ffd2cac1ff0000000000000000000000000000000000000000d2cac1ff0000000000000000ece6d9ffece6d9ffece6d9ffece6d9ffece6d9ffece6d9ffece6d9ffece6d9ffece6d9ffece6d9ffece6d9ffe4ded1ffe4ded1ffc3bdb3ffd4cbbfffeaf3e4ffeae4d7fffbe6e6ff89af5bffd61f1fffdde8d6fff2dadaff65615cff98bb6cff9e9389ff2d4f67ffe82424ff9e9389ff98bb6cff54433affc38d9dff957fb8ff9e9389ff2d4f67ff76946aff2d4f67ff76946aff76946aff2d4f67ffd7a657ff54433affc38d9dff9e9389ff2d4f67ff957fb8ffd7a657ffd27e99ff54433aff98bb6cffc38d9dff54433afff2e9deff9e9389fff2e9defff2e9defff2e9defff2e9deff54433aff9e9389ff54433aff54433aff54433aff2d4f67ff827369ff827369ff9a9ea1ff54433aff827369ff827369ff54433aff9e9389ffe82424ffe82424ff76946aff76946aff98bb6cff98bb6cffd7a657ffd7a657ff54433aff9e9389ff2d4f67ff2d4f67ff2d4f67ff2d4f67ff827369ff", + "footer": "e82424ffe82424ffe82424ffe82424ffe82424ffe82424ff0000000000000000cbd2d6ffd2cac1ff0000000000000000000000000000000000000000d2cac1ff0000000000000000ece6d9ffece6d9ffece6d9ffece6d9ffece6d9ffece6d9ffece6d9ffece6d9ffece6d9ffece6d9ffece6d9ffe4ded1ffe4ded1ffc3bdb3ffd4cbbfffeaf3e4ffeae4d7fffbe6e6ff89af5bffd61f1fffdde8d6fff2dadaff65615cff98bb6cff9e9389ff2d4f67ffe82424ff9e9389ff98bb6cff54433affc38d9dff957fb8ff9e9389ff2d4f67ff76946aff2d4f67ff76946aff76946aff2d4f67ffd7a657ff54433affc38d9dff9e9389ff2d4f67ff957fb8ffd7a657ffd27e99ff54433aff98bb6cffc38d9dff54433afff2e9deff9e9389fff2e9defff2e9defff2e9defff2e9deff54433aff9e9389ff54433aff54433aff54433aff2d4f67ff827369ff827369ff9a9ea1ff54433aff827369ff827369ff54433aff9e9389ffe82424ffe82424ff76946aff76946aff98bb6cff98bb6cffd7a657ffd7a657ff54433aff9e9389ff2d4f67ff2d4f67ff2d4f67ff2d4f67ff827369ff", + "decrease": "e82424ffe82424ffe82424ffe82424ffe82424ffe82424ff000000000000000093a1abffd2cac1ff0000000000000000000000000000000000000000000000000000000000000000ece6d9ffece6d9ffece6d9ffece6d9ffece6d9ffece6d9ffece6d9ffece6d9ffece6d9ffece6d9ffece6d9ffd2cac1ffc3bdb3ffa7a197ffd4cbbfffeaf3e4ffeae4d7fffbe6e6ff89af5bffd61f1fffdde8d6fff2dadaff65615cff98bb6cff827369ffb4babfffe82424ff827369ff98bb6cff54433affc38d9dffbbb7c1ff827369ffb4babfffb6bbb4ffb4babfffb6bbb4ffb6bbb4ffb4babfffc0b8adff54433affc38d9dff827369ffb4babfffbbb7c1ffc0b8adffc3b5b9ff54433aff98bb6cffc38d9dff54433affece6d9ff827369ffece6d9ffece6d9ffece6d9ffece6d9ff54433aff827369ff54433aff54433aff54433affb4babfff54433aff54433aff595f64ff54433aff54433aff54433aff54433aff827369ffe82424ffe82424ffb6bbb4ffb6bbb4ff98bb6cff98bb6cffc0b8adffc0b8adff54433aff827369ffb4babfffb4babfffb4babfffb4babfff54433aff", + "increase": "e82424ffe82424ffe82424ffe82424ffe82424ffe82424ff0000000000000000e3e4e6fff2e9deff0000000000000000000000000000000000000000000000000000000000000000f2e9defff2e9defff2e9defff2e9defff2e9defff2e9defff2e9defff2e9defff2e9defff2e9defff2e9defff2e9deffece6d9ffe4ded1ffd4cbbfffeaf3e4ffeae4d7fffbe6e6ff89af5bffd61f1fffdde8d6fff2dadaff65615cff98bb6cffc3bdb3ffcbd2d6ffe82424ffc3bdb3ff98bb6cff9e9389ffc38d9dffd3cfd9ffc3bdb3ffcbd2d6ffccd2caffcbd2d6ffccd2caffccd2caffcbd2d6ffd8d0c3ff9e9389ffc38d9dffc3bdb3ffcbd2d6ffd3cfd9ffd8d0c3ffddcdd0ff9e9389ff98bb6cffc38d9dff9e9389fff2e9deffc3bdb3fff2e9defff2e9defff2e9defff2e9deff9e9389ffc3bdb3ff9e9389ff9e9389ff9e9389ffcbd2d6ffa7a197ffa7a197ff2d4f67ff9e9389ffa7a197ffa7a197ff9e9389ffc3bdb3ffe82424ffe82424ffccd2caffccd2caff98bb6cff98bb6cffd8d0c3ffd8d0c3ff9e9389ffc3bdb3ffcbd2d6ffcbd2d6ffcbd2d6ffcbd2d6ffa7a197ff" + }, + "kanagawa/dark": { + "modes": ["light","dark"], + "hues": ["gray","red","orange","green","blue","purple","accent","interactive","neutral"], + "hue": "dcd7baffaf988cff727169ff606072ff3c3c4bff2e2e3cff252530ff23232eff1f1f28ffd1c8caffa59096ff7c6a6fffd27e99ff966272ff3f3740ff332d34ff29252bff241f26ffcfcac3ffa09585ff786e60ffd7a657ff947749ff443639ff372c2fff2d2427ff261f22ffc9ccc7ff92998fff6c7269ff76946aff607259ff303b3eff273033ff20272bff1b2226ffc7cbd1ff9097a5ff6a707cff7e9cd8ff627498ff373944ff2c2e37ff25262eff1f2127ffcbc9cfff9994a2ff726d79ff957fb8ff736588ff3a3842ff2f2e36ff27252dff212027ffd1c8caffa59096ff7c6a6fffd27e99ff966272ff3f3740ff332d34ff29252bff241f26ffc7cbd1ff9097a5ff6a707cff7e9cd8ff627498ff373944ff2c2e37ff25262eff1f2127ffdcd7baffaf988cff727169ff606072ff3c3c4bff2e2e3cff252530ff23232eff1f1f28ff", + "categorical": "cbc9cfff9994a2ff726d79ff957fb8ff736588ff3a3842ff2f2e36ff27252dff212027ffd1c8caffa59096ff7c6a6fffd27e99ff966272ff3f3740ff332d34ff29252bff241f26ffc9ccc7ff92998fff6c7269ff76946aff607259ff303b3eff273033ff20272bff1b2226ffcfcac3ffa09585ff786e60ffd7a657ff947749ff443639ff372c2fff2d2427ff261f22ffc7cbd1ff9097a5ff6a707cff7e9cd8ff627498ff373944ff2c2e37ff25262eff1f2127ff", + "base": "e82424ffe82424ffe82424ffe82424ffe82424ffe82424ff0000000000000000373944ff252530ff00000000000000000000000000000000000000000000000000000000000000001f1f28ff1f1f28ff1f1f28ff1f1f28ff1f1f28ff1f1f28ff1f1f28ff1f1f28ff1f1f28ff1f1f28ff1f1f28ff252530ff2e2e3cff3c3c4bff54546dff252e25ff2a2a37ff362020ffa9d977fff24a4aff202820ff2d1c1cff9090a0ff98bb6cff727169ff2d4f67ffe82424ff727169ff98bb6cffdcd7baffc38d9dff957fb8ff727169ff7e9cd8ff76946aff7e9cd8ff76946aff76946aff7e9cd8ffd7a657ffdcd7baffc38d9dff727169ff7e9cd8ff957fb8ffd7a657ffd27e99ffdcd7baff98bb6cffc38d9dffdcd7baff1f1f28ff727169ff1f1f28ff1f1f28ff1f1f28ff1f1f28ffdcd7baff727169ffdcd7baffdcd7baffdcd7baff7e9cd8ffaf988cffaf988cff9097a5ffdcd7baffaf988cffaf988cffdcd7baff727169ffe82424ffe82424ff76946aff76946aff98bb6cff98bb6cffd7a657ffd7a657ffdcd7baff727169ff7e9cd8ff7e9cd8ff7e9cd8ff7e9cd8ffaf988cff", + "dialog": "e82424ffe82424ffe82424ffe82424ffe82424ffe82424ff0000000000000000373944ff3c3c4bff00000000000000000000000000000000000000003c3c4bff0000000000000000252530ff252530ff252530ff252530ff252530ff252530ff252530ff252530ff252530ff252530ff252530ff252530ff2e2e3cff3c3c4bff54546dff252e25ff2a2a37ff362020ffa9d977fff24a4aff202820ff2d1c1cff9090a0ff98bb6cff727169ff2d4f67ffe82424ff727169ff98bb6cffdcd7baffc38d9dff957fb8ff727169ff7e9cd8ff76946aff7e9cd8ff76946aff76946aff7e9cd8ffd7a657ffdcd7baffc38d9dff727169ff7e9cd8ff957fb8ffd7a657ffd27e99ffdcd7baff98bb6cffc38d9dffdcd7baff1f1f28ff727169ff1f1f28ff1f1f28ff1f1f28ff1f1f28ffdcd7baff727169ffdcd7baffdcd7baffdcd7baff7e9cd8ffaf988cffaf988cff9097a5ffdcd7baffaf988cffaf988cffdcd7baff727169ffe82424ffe82424ff76946aff76946aff98bb6cff98bb6cffd7a657ffd7a657ffdcd7baff727169ff7e9cd8ff7e9cd8ff7e9cd8ff7e9cd8ffaf988cff", + "footer": "e82424ffe82424ffe82424ffe82424ffe82424ffe82424ff0000000000000000373944ff3c3c4bff00000000000000000000000000000000000000003c3c4bff0000000000000000252530ff252530ff252530ff252530ff252530ff252530ff252530ff252530ff252530ff252530ff252530ff252530ff2e2e3cff3c3c4bff54546dff252e25ff2a2a37ff362020ffa9d977fff24a4aff202820ff2d1c1cff9090a0ff98bb6cff727169ff2d4f67ffe82424ff727169ff98bb6cffdcd7baffc38d9dff957fb8ff727169ff7e9cd8ff76946aff7e9cd8ff76946aff76946aff7e9cd8ffd7a657ffdcd7baffc38d9dff727169ff7e9cd8ff957fb8ffd7a657ffd27e99ffdcd7baff98bb6cffc38d9dffdcd7baff1f1f28ff727169ff1f1f28ff1f1f28ff1f1f28ff1f1f28ffdcd7baff727169ffdcd7baffdcd7baffdcd7baff7e9cd8ffaf988cffaf988cff9097a5ffdcd7baffaf988cffaf988cffdcd7baff727169ffe82424ffe82424ff76946aff76946aff98bb6cff98bb6cffd7a657ffd7a657ffdcd7baff727169ff7e9cd8ff7e9cd8ff7e9cd8ff7e9cd8ffaf988cff", + "decrease": "e82424ffe82424ffe82424ffe82424ffe82424ffe82424ff0000000000000000627498ff2e2e3cff000000000000000000000000000000000000000000000000000000000000000023232eff23232eff23232eff23232eff23232eff23232eff23232eff23232eff23232eff23232eff23232eff2e2e3cff3c3c4bff606072ff54546dff252e25ff2a2a37ff362020ffa9d977fff24a4aff202820ff2d1c1cff9090a0ff98bb6cffaf988cff2d4f67ffe82424ffaf988cff98bb6cffdcd7baffc38d9dff726d79ffaf988cff6a707cff6c7269ff6a707cff6c7269ff6c7269ff6a707cff786e60ffdcd7baffc38d9dffaf988cff6a707cff726d79ff786e60ff7c6a6fffdcd7baff98bb6cffc38d9dffdcd7baff23232effaf988cff23232eff23232eff23232eff23232effdcd7baffaf988cffdcd7baffdcd7baffdcd7baff6a707cffdcd7baffdcd7baffc7cbd1ffdcd7baffdcd7baffdcd7baffdcd7baffaf988cffe82424ffe82424ff6c7269ff6c7269ff98bb6cff98bb6cff786e60ff786e60ffdcd7baffaf988cff6a707cff6a707cff6a707cff6a707cffdcd7baff", + "increase": "e82424ffe82424ffe82424ffe82424ffe82424ffe82424ff000000000000000025262eff1f1f28ff00000000000000000000000000000000000000000000000000000000000000001f1f28ff1f1f28ff1f1f28ff1f1f28ff1f1f28ff1f1f28ff1f1f28ff1f1f28ff1f1f28ff1f1f28ff1f1f28ff1f1f28ff23232eff252530ff54546dff252e25ff2a2a37ff362020ffa9d977fff24a4aff202820ff2d1c1cff9090a0ff98bb6cff3c3c4bff2d4f67ffe82424ff3c3c4bff98bb6cff727169ffc38d9dff3a3842ff3c3c4bff373944ff303b3eff373944ff303b3eff303b3eff373944ff443639ff727169ffc38d9dff3c3c4bff373944ff3a3842ff443639ff3f3740ff727169ff98bb6cffc38d9dff727169ff1f1f28ff3c3c4bff1f1f28ff1f1f28ff1f1f28ff1f1f28ff727169ff3c3c4bff727169ff727169ff727169ff373944ff606072ff606072ff7e9cd8ff727169ff606072ff606072ff727169ff3c3c4bffe82424ffe82424ff303b3eff303b3eff98bb6cff98bb6cff443639ff443639ff727169ff3c3c4bff373944ff373944ff373944ff373944ff606072ff" + }, + "material/light": { + "modes": ["light","dark"], + "hues": ["gray","red","orange","green","cyan","blue","purple","accent","interactive","neutral"], + "hue": "263238ff616a6fff90a4aeffb0b0b1ffcbcbcaffdad9d8ffedededfff6f6f6fffafafaff593d3aff9e8a87ffdabdb9ffe53935ffedaba2fff7d8d4fffae8e5fffbf1f0fffaf6f6ff4f4432ff968e81ffcfc3b2ffffb300ffedd1a6ffeaddcafff3ebe0fff7f3eefff9f7f5ff42483aff8c9187ffc1c8b9ff91b859ffc3d3b0ffdbe2d3ffeaeee5fff2f5f0fff7f8f6ff3a494aff879192ffb9c8c9ff39adb5ffabcfd1ffd3e3e4ffe5efeffff0f5f5fff6f8f8ff40464fff8b8f96ffbfc5cfff6182b8ffb1bed4ffd9e0eaffe9edf3fff2f4f7fff7f7f9ff44425dff8e8da1ffc3c1deff7c4dffffb7b1f4ffdedcfaffebeafdfff3f3fcfff7f7fbff3a494aff879192ffb9c8c9ff39adb5ffabcfd1ffd3e3e4ffe5efeffff0f5f5fff6f8f8ff40464fff8b8f96ffbfc5cfff6182b8ffb1bed4ffd9e0eaffe9edf3fff2f4f7fff7f7f9ff263238ff616a6fff90a4aeffb0b0b1ffcbcbcaffdad9d8ffedededfff6f6f6fffafafaff", + "categorical": "44425dff8e8da1ffc3c1deff7c4dffffb7b1f4ffdedcfaffebeafdfff3f3fcfff7f7fbff3a494aff879192ffb9c8c9ff39adb5ffabcfd1ffd3e3e4ffe5efeffff0f5f5fff6f8f8ff42483aff8c9187ffc1c8b9ff91b859ffc3d3b0ffdbe2d3ffeaeee5fff2f5f0fff7f8f6ff4f4432ff968e81ffcfc3b2ffffb300ffedd1a6ffeaddcafff3ebe0fff7f3eefff9f7f5ff40464fff8b8f96ffbfc5cfff6182b8ffb1bed4ffd9e0eaffe9edf3fff2f4f7fff7f7f9ff593d3aff9e8a87ffdabdb9ffe53935ffedaba2fff7d8d4fffae8e5fffbf1f0fffaf6f6ff", + "base": "e53935ffe53935ffe53935ffe53935ffe53935ffe53935ff0000000000000000d9e0eaffedededff0000000000000000000000000000000000000000000000000000000000000000fafafafffafafafffafafafffafafafffafafafffafafafffafafafffafafafffafafafffafafafffafafaffedededffdad9d8ffcbcbcaffe0e0e0ffe8f5e9fff5f5f5ffffebeeff91b859ffe53935ffe8f5e9ffffebeeff6a6e70ff91b859ff90a4aeff39adb5ffe53935ff90a4aeff91b859ff263238ffffb300ff6182b8ffe0e0e0ff39adb5ff7c4dffff39adb5ff7c4dffff39adb5ff6182b8fff4511eff263238ff6182b8ff90a4aeff6182b8ff7c4dfffff4511eff39adb5ff263238ff91b859ffffb300ff263238fffafafaff90a4aefffafafafffafafafffafafafffafafaff263238ff90a4aeff263238ff263238ff263238ff6182b8ff616a6fff616a6fff8b8f96ff263238ff616a6fff616a6fff263238ff90a4aeffe53935ffe53935fff4511efff4511eff91b859ff91b859ffffb300ffffb300ff263238ff90a4aeff6182b8ff6182b8ff6182b8ff6182b8ff616a6fff", + "dialog": "e53935ffe53935ffe53935ffe53935ffe53935ffe53935ff0000000000000000d9e0eaffdad9d8ff0000000000000000000000000000000000000000dad9d8ff0000000000000000f6f6f6fff6f6f6fff6f6f6fff6f6f6fff6f6f6fff6f6f6fff6f6f6fff6f6f6fff6f6f6fff6f6f6fff6f6f6ffedededffedededffcbcbcaffe0e0e0ffe8f5e9fff5f5f5ffffebeeff91b859ffe53935ffe8f5e9ffffebeeff6a6e70ff91b859ff90a4aeff39adb5ffe53935ff90a4aeff91b859ff263238ffffb300ff6182b8ffe0e0e0ff39adb5ff7c4dffff39adb5ff7c4dffff39adb5ff6182b8fff4511eff263238ff6182b8ff90a4aeff6182b8ff7c4dfffff4511eff39adb5ff263238ff91b859ffffb300ff263238fffafafaff90a4aefffafafafffafafafffafafafffafafaff263238ff90a4aeff263238ff263238ff263238ff6182b8ff616a6fff616a6fff8b8f96ff263238ff616a6fff616a6fff263238ff90a4aeffe53935ffe53935fff4511efff4511eff91b859ff91b859ffffb300ffffb300ff263238ff90a4aeff6182b8ff6182b8ff6182b8ff6182b8ff616a6fff", + "footer": "e53935ffe53935ffe53935ffe53935ffe53935ffe53935ff0000000000000000d9e0eaffdad9d8ff0000000000000000000000000000000000000000dad9d8ff0000000000000000f6f6f6fff6f6f6fff6f6f6fff6f6f6fff6f6f6fff6f6f6fff6f6f6fff6f6f6fff6f6f6fff6f6f6fff6f6f6ffedededffedededffcbcbcaffe0e0e0ffe8f5e9fff5f5f5ffffebeeff91b859ffe53935ffe8f5e9ffffebeeff6a6e70ff91b859ff90a4aeff39adb5ffe53935ff90a4aeff91b859ff263238ffffb300ff6182b8ffe0e0e0ff39adb5ff7c4dffff39adb5ff7c4dffff39adb5ff6182b8fff4511eff263238ff6182b8ff90a4aeff6182b8ff7c4dfffff4511eff39adb5ff263238ff91b859ffffb300ff263238fffafafaff90a4aefffafafafffafafafffafafafffafafaff263238ff90a4aeff263238ff263238ff263238ff6182b8ff616a6fff616a6fff8b8f96ff263238ff616a6fff616a6fff263238ff90a4aeffe53935ffe53935fff4511efff4511eff91b859ff91b859ffffb300ffffb300ff263238ff90a4aeff6182b8ff6182b8ff6182b8ff6182b8ff616a6fff", + "decrease": "dabdb9ffdabdb9ffdabdb9ffdabdb9ffdabdb9ffdabdb9ff0000000000000000b1bed4ffdad9d8ff0000000000000000000000000000000000000000000000000000000000000000f6f6f6fff6f6f6fff6f6f6fff6f6f6fff6f6f6fff6f6f6fff6f6f6fff6f6f6fff6f6f6fff6f6f6fff6f6f6ffdad9d8ffcbcbcaffb0b0b1ffe0e0e0ffe8f5e9fff5f5f5ffffebeeffc1c8b9ffdabdb9ffe8f5e9ffffebeeff6a6e70ffc1c8b9ff616a6fffb9c8c9ffdabdb9ff616a6fffc1c8b9ff263238ffcfc3b2ffbfc5cfffe0e0e0ffb9c8c9ffc3c1deffb9c8c9ffc3c1deffb9c8c9ffbfc5cffff4511eff263238ffbfc5cfff616a6fffbfc5cfffc3c1defff4511effb9c8c9ff263238ffc1c8b9ffcfc3b2ff263238fff6f6f6ff616a6ffff6f6f6fff6f6f6fff6f6f6fff6f6f6ff263238ff616a6fff263238ff263238ff263238ffbfc5cfff263238ff263238ff40464fff263238ff263238ff263238ff263238ff616a6fffdabdb9ffdabdb9fff4511efff4511effc1c8b9ffc1c8b9ffcfc3b2ffcfc3b2ff263238ff616a6fffbfc5cfffbfc5cfffbfc5cfffbfc5cfff263238ff", + "increase": "f7d8d4fff7d8d4fff7d8d4fff7d8d4fff7d8d4fff7d8d4ff0000000000000000f2f4f7fffafafaff0000000000000000000000000000000000000000000000000000000000000000fafafafffafafafffafafafffafafafffafafafffafafafffafafafffafafafffafafafffafafafffafafafffafafafff6f6f6ffedededffe0e0e0ffe8f5e9fff5f5f5ffffebeeffdbe2d3fff7d8d4ffe8f5e9ffffebeeff6a6e70ffdbe2d3ffcbcbcaffd3e3e4fff7d8d4ffcbcbcaffdbe2d3ff90a4aeffeaddcaffd9e0eaffe0e0e0ffd3e3e4ffdedcfaffd3e3e4ffdedcfaffd3e3e4ffd9e0eafff4511eff90a4aeffd9e0eaffcbcbcaffd9e0eaffdedcfafff4511effd3e3e4ff90a4aeffdbe2d3ffeaddcaff90a4aefffafafaffcbcbcafffafafafffafafafffafafafffafafaff90a4aeffcbcbcaff90a4aeff90a4aeff90a4aeffd9e0eaffb0b0b1ffb0b0b1ff6182b8ff90a4aeffb0b0b1ffb0b0b1ff90a4aeffcbcbcafff7d8d4fff7d8d4fff4511efff4511effdbe2d3ffdbe2d3ffeaddcaffeaddcaff90a4aeffcbcbcaffd9e0eaffd9e0eaffd9e0eaffd9e0eaffb0b0b1ff" + }, + "material/dark": { + "modes": ["light","dark"], + "hues": ["gray","red","orange","green","cyan","blue","purple","accent","interactive","neutral"], + "hue": "eeffffffb0c0c2ff546e7aff677881ff3f4d55ff324048ff2d383dff2b363cff263238fffaebebffcdacacff7b6161fff07178ffb46668ff494554ff3e3c48ff36353fff313039fff4efe6ffc0b4a0ff716757ffffcb6bffb0915aff3c4a44ff34403cff2e3935ff2a3430ffedf1e8ffb0b9a5ff646c5bffc3e88dff8ba26cff3a4a48ff32403fff2d3938ff293433ffe9f1f4ffa7b9c1ff5d6b72ff89ddffff6c9db1ff3d494fff343f45ff2f383dff2a3337ffebeff8ffabb6caff60697aff82aaffff6c85b8ff3d4953ff353e47ff2f373eff2b3239fff2edf6ffbcb0c5ff6e6476ffc792eaff9676acff424754ff383d48ff32373fff2d3139ffe9f1f4ffa7b9c1ff5d6b72ff89ddffff6c9db1ff3d494fff343f45ff2f383dff2a3337ffebeff8ffabb6caff60697aff82aaffff6c85b8ff3d4953ff353e47ff2f373eff2b3239ffeeffffffb0c0c2ff546e7aff677881ff3f4d55ff324048ff2d383dff2b363cff263238ff", + "categorical": "f2edf6ffbcb0c5ff6e6476ffc792eaff9676acff424754ff383d48ff32373fff2d3139ffe9f1f4ffa7b9c1ff5d6b72ff89ddffff6c9db1ff3d494fff343f45ff2f383dff2a3337ffedf1e8ffb0b9a5ff646c5bffc3e88dff8ba26cff3a4a48ff32403fff2d3938ff293433fff4efe6ffc0b4a0ff716757ffffcb6bffb0915aff3c4a44ff34403cff2e3935ff2a3430ffebeff8ffabb6caff60697aff82aaffff6c85b8ff3d4953ff353e47ff2f373eff2b3239fffaebebffcdacacff7b6161fff07178ffb46668ff494554ff3e3c48ff36353fff313039ff", + "base": "f07178fff07178fff07178fff07178fff07178fff07178ff00000000000000003d4953ff2d383dff0000000000000000000000000000000000000000000000000000000000000000263238ff263238ff263238ff263238ff263238ff263238ff263238ff263238ff263238ff263238ff263238ff2d383dff324048ff3f4d55ff37474fff2e3c2bff1e272cff3c2b2bffc3e88dfff07178ff2e3c2bff3c2b2bff9aa2a6ffc3e88dff546e7aff89ddfffff07178ff546e7affc3e88dffeeffffffffcb6bff82aaffff37474fff89ddffffc792eaff89ddffffc792eaff89ddffff82aaffffffcb6bffeeffffff82aaffff546e7aff82aaffffc792eaffffcb6bff89ddffffeeffffffc3e88dffffcb6bffeeffffff263238ff546e7aff263238ff263238ff263238ff263238ffeeffffff546e7affeeffffffeeffffffeeffffff82aaffffb0c0c2ffb0c0c2ffabb6caffeeffffffb0c0c2ffb0c0c2ffeeffffff546e7afff07178fff07178ffffcb6bffffcb6bffc3e88dffc3e88dffffcb6bffffcb6bffeeffffff546e7aff82aaffff82aaffff82aaffff82aaffffb0c0c2ff", + "dialog": "f07178fff07178fff07178fff07178fff07178fff07178ff00000000000000003d4953ff3f4d55ff00000000000000000000000000000000000000003f4d55ff00000000000000002d383dff2d383dff2d383dff2d383dff2d383dff2d383dff2d383dff2d383dff2d383dff2d383dff2d383dff2d383dff324048ff3f4d55ff37474fff2e3c2bff1e272cff3c2b2bffc3e88dfff07178ff2e3c2bff3c2b2bff9aa2a6ffc3e88dff546e7aff89ddfffff07178ff546e7affc3e88dffeeffffffffcb6bff82aaffff37474fff89ddffffc792eaff89ddffffc792eaff89ddffff82aaffffffcb6bffeeffffff82aaffff546e7aff82aaffffc792eaffffcb6bff89ddffffeeffffffc3e88dffffcb6bffeeffffff263238ff546e7aff263238ff263238ff263238ff263238ffeeffffff546e7affeeffffffeeffffffeeffffff82aaffffb0c0c2ffb0c0c2ffabb6caffeeffffffb0c0c2ffb0c0c2ffeeffffff546e7afff07178fff07178ffffcb6bffffcb6bffc3e88dffc3e88dffffcb6bffffcb6bffeeffffff546e7aff82aaffff82aaffff82aaffff82aaffffb0c0c2ff", + "footer": "f07178fff07178fff07178fff07178fff07178fff07178ff00000000000000003d4953ff3f4d55ff00000000000000000000000000000000000000003f4d55ff00000000000000002d383dff2d383dff2d383dff2d383dff2d383dff2d383dff2d383dff2d383dff2d383dff2d383dff2d383dff2d383dff324048ff3f4d55ff37474fff2e3c2bff1e272cff3c2b2bffc3e88dfff07178ff2e3c2bff3c2b2bff9aa2a6ffc3e88dff546e7aff89ddfffff07178ff546e7affc3e88dffeeffffffffcb6bff82aaffff37474fff89ddffffc792eaff89ddffffc792eaff89ddffff82aaffffffcb6bffeeffffff82aaffff546e7aff82aaffffc792eaffffcb6bff89ddffffeeffffffc3e88dffffcb6bffeeffffff263238ff546e7aff263238ff263238ff263238ff263238ffeeffffff546e7affeeffffffeeffffffeeffffff82aaffffb0c0c2ffb0c0c2ffabb6caffeeffffffb0c0c2ffb0c0c2ffeeffffff546e7afff07178fff07178ffffcb6bffffcb6bffc3e88dffc3e88dffffcb6bffffcb6bffeeffffff546e7aff82aaffff82aaffff82aaffff82aaffffb0c0c2ff", + "decrease": "7b6161ff7b6161ff7b6161ff7b6161ff7b6161ff7b6161ff00000000000000006c85b8ff324048ff00000000000000000000000000000000000000000000000000000000000000002b363cff2b363cff2b363cff2b363cff2b363cff2b363cff2b363cff2b363cff2b363cff2b363cff2b363cff324048ff3f4d55ff677881ff37474fff2e3c2bff1e272cff3c2b2bff646c5bff7b6161ff2e3c2bff3c2b2bff9aa2a6ff646c5bffb0c0c2ff5d6b72ff7b6161ffb0c0c2ff646c5bffeeffffff716757ff60697aff37474fff5d6b72ff6e6476ff5d6b72ff6e6476ff5d6b72ff60697aff716757ffeeffffff60697affb0c0c2ff60697aff6e6476ff716757ff5d6b72ffeeffffff646c5bff716757ffeeffffff2b363cffb0c0c2ff2b363cff2b363cff2b363cff2b363cffeeffffffb0c0c2ffeeffffffeeffffffeeffffff60697affeeffffffeeffffffebeff8ffeeffffffeeffffffeeffffffeeffffffb0c0c2ff7b6161ff7b6161ff716757ff716757ff646c5bff646c5bff716757ff716757ffeeffffffb0c0c2ff60697aff60697aff60697aff60697affeeffffff", + "increase": "494554ff494554ff494554ff494554ff494554ff494554ff00000000000000002f373eff263238ff0000000000000000000000000000000000000000000000000000000000000000263238ff263238ff263238ff263238ff263238ff263238ff263238ff263238ff263238ff263238ff263238ff263238ff2b363cff2d383dff37474fff2e3c2bff1e272cff3c2b2bff3a4a48ff494554ff2e3c2bff3c2b2bff9aa2a6ff3a4a48ff3f4d55ff3d494fff494554ff3f4d55ff3a4a48ff546e7aff3c4a44ff3d4953ff37474fff3d494fff424754ff3d494fff424754ff3d494fff3d4953ff3c4a44ff546e7aff3d4953ff3f4d55ff3d4953ff424754ff3c4a44ff3d494fff546e7aff3a4a48ff3c4a44ff546e7aff263238ff3f4d55ff263238ff263238ff263238ff263238ff546e7aff3f4d55ff546e7aff546e7aff546e7aff3d4953ff677881ff677881ff82aaffff546e7aff677881ff677881ff546e7aff3f4d55ff494554ff494554ff3c4a44ff3c4a44ff3a4a48ff3a4a48ff3c4a44ff3c4a44ff546e7aff3f4d55ff3d4953ff3d4953ff3d4953ff3d4953ff677881ff" + }, + "matrix/light": { + "modes": ["light","dark"], + "hues": ["gray","red","yellow","green","blue","purple","accent","interactive","neutral"], + "hue": "203022ff5a6759ff748476ffa4aaa1ffbfc6bcffcdd4caffe0e7ddffe8efe5ffeef3eaff543835ff988381ffb79a97ffff4b4bfff0aba4ffefd0cafff2e0dcfff2e8e7fff2ededff3f432dff878b7cffa0a590ffe6ff57ffdbe6b0ffd4dac2ffe2e5d8ffeaece5ffeeefecff334634ff7f8d80ff95a896ff1cc24bffa3d2a7ffc8ddc9ffdbe7dcffe7ede7ffedefedff33434fff7f8a93ff95a5b0ff30b3ffffa4cce9ffc8dae6ffdbe5edffe6ecefffedeff0ff473b51ff8d8595ffa99db2ffc770ffffd3b5eaffdbd4ecffe7e1efffede9f0ffefeef1ff473b51ff8d8595ffa99db2ffc770ffffd3b5eaffdbd4ecffe7e1efffede9f0ffefeef1ff334634ff7f8d80ff95a896ff1cc24bffa3d2a7ffc8ddc9ffdbe7dcffe7ede7ffedefedff203022ff5a6759ff748476ffa4aaa1ffbfc6bcffcdd4caffe0e7ddffe8efe5ffeef3eaff", + "categorical": "334634ff7f8d80ff95a896ff1cc24bffa3d2a7ffc8ddc9ffdbe7dcffe7ede7ffedefedff473b51ff8d8595ffa99db2ffc770ffffd3b5eaffdbd4ecffe7e1efffede9f0ffefeef1ff3f432dff878b7cffa0a590ffe6ff57ffdbe6b0ffd4dac2ffe2e5d8ffeaece5ffeeefecff543835ff988381ffb79a97ffff4b4bfff0aba4ffefd0cafff2e0dcfff2e8e7fff2ededff33434fff7f8a93ff95a5b0ff30b3ffffa4cce9ffc8dae6ffdbe5edffe6ecefffedeff0ff", + "base": "ff4b4bffff4b4bffff4b4bffff4b4bffff4b4bffff4b4bff0000000000000000c8ddc9ffe0e7ddff0000000000000000000000000000000000000000000000000000000000000000eef3eaffeef3eaffeef3eaffeef3eaffeef3eaffeef3eaffeef3eaffeef3eaffeef3eaffeef3eaffeef3eaffe0e7ddffcdd4caffbfc6bcff748476ffe0efdeffe4ebe1fff9e5e5ff5dac7effd53a3affd6e7d2fff2d2d2ff556156ff1cc24bff748476ff30b3ffffff4b4bff748476ff1cc24bff203022ffffa83dff24f6d9ff748476ff30b3ffff24f6d9ff30b3ffff24f6d9ff24f6d9ff30b3ffffe6ff57ff203022ff1cc24bff748476ff30b3ffffc770ffffffa83dff24f6d9ff203022ff1cc24bffe6ff57ff203022ffeef3eaff748476ffeef3eaffeef3eaffeef3eaffeef3eaff203022ff748476ff203022ff203022ff203022ff1cc24bff5a6759ff5a6759ff7f8d80ff203022ff5a6759ff5a6759ff203022ff748476ffff4b4bffff4b4bff30b3ffff30b3ffff1cc24bff1cc24bffe6ff57ffe6ff57ff203022ff748476ff1cc24bff1cc24bff1cc24bff1cc24bff5a6759ff", + "dialog": "ff4b4bffff4b4bffff4b4bffff4b4bffff4b4bffff4b4bff0000000000000000c8ddc9ffcdd4caff0000000000000000000000000000000000000000cdd4caff0000000000000000e8efe5ffe8efe5ffe8efe5ffe8efe5ffe8efe5ffe8efe5ffe8efe5ffe8efe5ffe8efe5ffe8efe5ffe8efe5ffe0e7ddffe0e7ddffbfc6bcff748476ffe0efdeffe4ebe1fff9e5e5ff5dac7effd53a3affd6e7d2fff2d2d2ff556156ff1cc24bff748476ff30b3ffffff4b4bff748476ff1cc24bff203022ffffa83dff24f6d9ff748476ff30b3ffff24f6d9ff30b3ffff24f6d9ff24f6d9ff30b3ffffe6ff57ff203022ff1cc24bff748476ff30b3ffffc770ffffffa83dff24f6d9ff203022ff1cc24bffe6ff57ff203022ffeef3eaff748476ffeef3eaffeef3eaffeef3eaffeef3eaff203022ff748476ff203022ff203022ff203022ff1cc24bff5a6759ff5a6759ff7f8d80ff203022ff5a6759ff5a6759ff203022ff748476ffff4b4bffff4b4bff30b3ffff30b3ffff1cc24bff1cc24bffe6ff57ffe6ff57ff203022ff748476ff1cc24bff1cc24bff1cc24bff1cc24bff5a6759ff", + "footer": "ff4b4bffff4b4bffff4b4bffff4b4bffff4b4bffff4b4bff0000000000000000c8ddc9ffcdd4caff0000000000000000000000000000000000000000cdd4caff0000000000000000e8efe5ffe8efe5ffe8efe5ffe8efe5ffe8efe5ffe8efe5ffe8efe5ffe8efe5ffe8efe5ffe8efe5ffe8efe5ffe0e7ddffe0e7ddffbfc6bcff748476ffe0efdeffe4ebe1fff9e5e5ff5dac7effd53a3affd6e7d2fff2d2d2ff556156ff1cc24bff748476ff30b3ffffff4b4bff748476ff1cc24bff203022ffffa83dff24f6d9ff748476ff30b3ffff24f6d9ff30b3ffff24f6d9ff24f6d9ff30b3ffffe6ff57ff203022ff1cc24bff748476ff30b3ffffc770ffffffa83dff24f6d9ff203022ff1cc24bffe6ff57ff203022ffeef3eaff748476ffeef3eaffeef3eaffeef3eaffeef3eaff203022ff748476ff203022ff203022ff203022ff1cc24bff5a6759ff5a6759ff7f8d80ff203022ff5a6759ff5a6759ff203022ff748476ffff4b4bffff4b4bff30b3ffff30b3ffff1cc24bff1cc24bffe6ff57ffe6ff57ff203022ff748476ff1cc24bff1cc24bff1cc24bff1cc24bff5a6759ff", + "decrease": "b79a97ffb79a97ffb79a97ffb79a97ffb79a97ffb79a97ff0000000000000000a3d2a7ffcdd4caff0000000000000000000000000000000000000000000000000000000000000000e8efe5ffe8efe5ffe8efe5ffe8efe5ffe8efe5ffe8efe5ffe8efe5ffe8efe5ffe8efe5ffe8efe5ffe8efe5ffcdd4caffbfc6bcffa4aaa1ff5a6759ffe0efdeffe4ebe1fff9e5e5ff5dac7effd53a3affd6e7d2fff2d2d2ff556156ff95a896ff5a6759ff95a5b0ffb79a97ff5a6759ff95a896ff203022ffffa83dff24f6d9ff5a6759ff95a5b0ff24f6d9ff95a5b0ff24f6d9ff24f6d9ff95a5b0ffa0a590ff203022ff95a896ff5a6759ff95a5b0ffa99db2ffffa83dff24f6d9ff203022ff95a896ffa0a590ff203022ffe8efe5ff5a6759ffe8efe5ffe8efe5ffe8efe5ffe8efe5ff203022ff5a6759ff203022ff203022ff203022ff95a896ff203022ff203022ff334634ff203022ff203022ff203022ff203022ff5a6759ffb79a97ffb79a97ff95a5b0ff95a5b0ff95a896ff95a896ffa0a590ffa0a590ff203022ff5a6759ff95a896ff95a896ff95a896ff95a896ff203022ff", + "increase": "efd0caffefd0caffefd0caffefd0caffefd0caffefd0caff0000000000000000e7ede7ffeef3eaff0000000000000000000000000000000000000000000000000000000000000000eef3eaffeef3eaffeef3eaffeef3eaffeef3eaffeef3eaffeef3eaffeef3eaffeef3eaffeef3eaffeef3eaffeef3eaffe8efe5ffe0e7ddffbfc6bcffe0efdeffe4ebe1fff9e5e5ff5dac7effd53a3affd6e7d2fff2d2d2ff556156ffc8ddc9ffbfc6bcffc8dae6ffefd0caffbfc6bcffc8ddc9ff748476ffffa83dff24f6d9ffbfc6bcffc8dae6ff24f6d9ffc8dae6ff24f6d9ff24f6d9ffc8dae6ffd4dac2ff748476ffc8ddc9ffbfc6bcffc8dae6ffdbd4ecffffa83dff24f6d9ff748476ffc8ddc9ffd4dac2ff748476ffeef3eaffbfc6bcffeef3eaffeef3eaffeef3eaffeef3eaff748476ffbfc6bcff748476ff748476ff748476ffc8ddc9ffa4aaa1ffa4aaa1ff1cc24bff748476ffa4aaa1ffa4aaa1ff748476ffbfc6bcffefd0caffefd0caffc8dae6ffc8dae6ffc8ddc9ffc8ddc9ffd4dac2ffd4dac2ff748476ffbfc6bcffc8ddc9ffc8ddc9ffc8ddc9ffc8ddc9ffa4aaa1ff" + }, + "matrix/dark": { + "modes": ["light","dark"], + "hues": ["gray","red","yellow","green","cyan","blue","purple","accent","interactive","neutral"], + "hue": "62ff94ff8ca391ff3e844cff444e42ff2c342aff1d251bff131813ff101510ff0a0e0affdecbc9ffb38985ff8b6763ffff4b4bffa43c39ff3b2a1dff2c1f17ff1f1511ff130d09ffcfd2c4ff92997aff6f755affe6ff57ff839232ff2a3020ff1f2318ff161811ff0d0f0affc6d5c7ff7d9f80ff5c7a5fff2eff6aff269641ff203222ff182419ff111912ff0a0f0affc5d3d4ff7c9c9fff5b777aff00efffff1b8d97ff20312fff182423ff101917ff090f0effc7d2d9ff8199aaff607484ff30b3ffff2c729fff1e3034ff172426ff10181bff090f0fffd4ccdbff9f8dadff7a6a86ffc770ffff7f4da1ff252e3fff1c222dff14171fff090f14ffd4ccdbff9f8dadff7a6a86ffc770ffff7f4da1ff252e3fff1c222dff14171fff090f14ffc6d5c7ff7d9f80ff5c7a5fff2eff6aff269641ff203222ff182419ff111912ff0a0f0aff62ff94ff8ca391ff3e844cff444e42ff2c342aff1d251bff131813ff101510ff0a0e0aff", + "categorical": "c5d3d4ff7c9c9fff5b777aff00efffff1b8d97ff20312fff182423ff101917ff090f0effd4ccdbff9f8dadff7a6a86ffc770ffff7f4da1ff252e3fff1c222dff14171fff090f14ffc6d5c7ff7d9f80ff5c7a5fff2eff6aff269641ff203222ff182419ff111912ff0a0f0affcfd2c4ff92997aff6f755affe6ff57ff839232ff2a3020ff1f2318ff161811ff0d0f0affdecbc9ffb38985ff8b6763ffff4b4bffa43c39ff3b2a1dff2c1f17ff1f1511ff130d09ffc7d2d9ff8199aaff607484ff30b3ffff2c729fff1e3034ff172426ff10181bff090f0fff", + "base": "ff4b4bffff4b4bffff4b4bffff4b4bffff4b4bffff4b4bff0000000000000000203222ff131813ff00000000000000000000000000000000000000000000000000000000000000000a0e0aff0a0e0aff0a0e0aff0a0e0aff0a0e0aff0a0e0aff0a0e0aff0a0e0aff0a0e0aff0a0e0aff0a0e0aff131813ff1d251bff2c342aff1e2a1bff132616ff0e130dff261212ff77ffafffff7171ff0f1b11ff1b1414ff8ca391ff1cc24bff8ca391ff30b3ffffff4b4bff8ca391ff1cc24bff62ff94ffffa83dff00efffff8ca391ff30b3ffff24f6d9ff30b3ffff24f6d9ff24f6d9ff30b3ffffe6ff57ff62ff94ff2eff6aff8ca391ff30b3ffffc770ffffffa83dff24f6d9ff62ff94ff1cc24bffe6ff57ff62ff94ff0a0e0aff3e844cff0a0e0aff0a0e0aff0a0e0aff0a0e0aff62ff94ff3e844cff62ff94ff62ff94ff62ff94ff2eff6aff8ca391ff8ca391ff7d9f80ff62ff94ff8ca391ff8ca391ff62ff94ff3e844cffff4b4bffff4b4bff30b3ffff30b3ffff62ff94ff62ff94ffe6ff57ffe6ff57ff62ff94ff3e844cff2eff6aff2eff6aff2eff6aff2eff6aff8ca391ff", + "dialog": "ff4b4bffff4b4bffff4b4bffff4b4bffff4b4bffff4b4bff0000000000000000203222ff2c342aff00000000000000000000000000000000000000002c342aff0000000000000000131813ff131813ff131813ff131813ff131813ff131813ff131813ff131813ff131813ff131813ff131813ff131813ff1d251bff2c342aff1e2a1bff132616ff0e130dff261212ff77ffafffff7171ff0f1b11ff1b1414ff8ca391ff1cc24bff8ca391ff30b3ffffff4b4bff8ca391ff1cc24bff62ff94ffffa83dff00efffff8ca391ff30b3ffff24f6d9ff30b3ffff24f6d9ff24f6d9ff30b3ffffe6ff57ff62ff94ff2eff6aff8ca391ff30b3ffffc770ffffffa83dff24f6d9ff62ff94ff1cc24bffe6ff57ff62ff94ff0a0e0aff3e844cff0a0e0aff0a0e0aff0a0e0aff0a0e0aff62ff94ff3e844cff62ff94ff62ff94ff62ff94ff2eff6aff8ca391ff8ca391ff7d9f80ff62ff94ff8ca391ff8ca391ff62ff94ff3e844cffff4b4bffff4b4bff30b3ffff30b3ffff62ff94ff62ff94ffe6ff57ffe6ff57ff62ff94ff3e844cff2eff6aff2eff6aff2eff6aff2eff6aff8ca391ff", + "footer": "ff4b4bffff4b4bffff4b4bffff4b4bffff4b4bffff4b4bff0000000000000000203222ff2c342aff00000000000000000000000000000000000000002c342aff0000000000000000131813ff131813ff131813ff131813ff131813ff131813ff131813ff131813ff131813ff131813ff131813ff131813ff1d251bff2c342aff1e2a1bff132616ff0e130dff261212ff77ffafffff7171ff0f1b11ff1b1414ff8ca391ff1cc24bff8ca391ff30b3ffffff4b4bff8ca391ff1cc24bff62ff94ffffa83dff00efffff8ca391ff30b3ffff24f6d9ff30b3ffff24f6d9ff24f6d9ff30b3ffffe6ff57ff62ff94ff2eff6aff8ca391ff30b3ffffc770ffffffa83dff24f6d9ff62ff94ff1cc24bffe6ff57ff62ff94ff0a0e0aff3e844cff0a0e0aff0a0e0aff0a0e0aff0a0e0aff62ff94ff3e844cff62ff94ff62ff94ff62ff94ff2eff6aff8ca391ff8ca391ff7d9f80ff62ff94ff8ca391ff8ca391ff62ff94ff3e844cffff4b4bffff4b4bff30b3ffff30b3ffff62ff94ff62ff94ffe6ff57ffe6ff57ff62ff94ff3e844cff2eff6aff2eff6aff2eff6aff2eff6aff8ca391ff", + "decrease": "8b6763ff8b6763ff8b6763ff8b6763ff8b6763ff8b6763ff0000000000000000269641ff1d251bff0000000000000000000000000000000000000000000000000000000000000000101510ff101510ff101510ff101510ff101510ff101510ff101510ff101510ff101510ff101510ff101510ff1d251bff2c342aff444e42ff1e2a1bff132616ff0e130dff261212ff77ffafffff7171ff0f1b11ff1b1414ff62ff94ff1cc24bff62ff94ff607484ff8b6763ff62ff94ff1cc24bff62ff94ffffa83dff5b777aff62ff94ff607484ff24f6d9ff607484ff24f6d9ff24f6d9ff607484ff6f755aff62ff94ff5c7a5fff62ff94ff607484ff7a6a86ffffa83dff24f6d9ff62ff94ff1cc24bff6f755aff62ff94ff101510ff8ca391ff101510ff101510ff101510ff101510ff62ff94ff8ca391ff62ff94ff62ff94ff62ff94ff5c7a5fff62ff94ff62ff94ffc6d5c7ff62ff94ff62ff94ff62ff94ff62ff94ff8ca391ff8b6763ff8b6763ff607484ff607484ff62ff94ff62ff94ff6f755aff6f755aff62ff94ff8ca391ff5c7a5fff5c7a5fff5c7a5fff5c7a5fff62ff94ff", + "increase": "3b2a1dff3b2a1dff3b2a1dff3b2a1dff3b2a1dff3b2a1dff0000000000000000111912ff0a0e0aff00000000000000000000000000000000000000000000000000000000000000000a0e0aff0a0e0aff0a0e0aff0a0e0aff0a0e0aff0a0e0aff0a0e0aff0a0e0aff0a0e0aff0a0e0aff0a0e0aff0a0e0aff101510ff131813ff1e2a1bff132616ff0e130dff261212ff77ffafffff7171ff0f1b11ff1b1414ff444e42ff1cc24bff444e42ff1e3034ff3b2a1dff444e42ff1cc24bff3e844cffffa83dff20312fff444e42ff1e3034ff24f6d9ff1e3034ff24f6d9ff24f6d9ff1e3034ff2a3020ff3e844cff203222ff444e42ff1e3034ff252e3fffffa83dff24f6d9ff3e844cff1cc24bff2a3020ff3e844cff0a0e0aff2c342aff0a0e0aff0a0e0aff0a0e0aff0a0e0aff3e844cff2c342aff3e844cff3e844cff3e844cff203222ff444e42ff444e42ff2eff6aff3e844cff444e42ff444e42ff3e844cff2c342aff3b2a1dff3b2a1dff1e3034ff1e3034ff3e844cff3e844cff2a3020ff2a3020ff3e844cff2c342aff203222ff203222ff203222ff203222ff444e42ff" + }, + "mercury/light": { + "modes": ["light","dark"], + "hues": ["gray","red","orange","green","cyan","blue","accent","interactive","neutral"], + "hue": "363644ff70707dff97979fffb4b5b9ffcecfd3ffdddee1fff1f2f3fffbfbf9ffffffffff5f454dffa59397ffceb5bcffb0175fffdca2b3fff8dde4fffdedf1fffff6f8fffffbfcff5b4941ffa29590ffcab8b0ffa44200ffd4ab99fff3e0d7fffaefeafffdf7f5fffefcfbff445149ff929b95ffb4c0b8ff036e43ff9dbba8ffdbe8dfffecf4effff6faf7fffbfdfcff425054ff919a9dffb2bfc3ff007f95ffa1c1c9ffd9e7ebffebf3f6fff5fafbfffbfdfdff464d63ff9398a8ffb5bcd2ff5266ebffabbaefffdce3fcffedf1fefff7f9fefffbfcffff464d63ff9398a8ffb5bcd2ff5266ebffabbaefffdce3fcffedf1fefff7f9fefffbfcffff464d63ff9398a8ffb5bcd2ff5266ebffabbaefffdce3fcffedf1fefff7f9fefffbfcffff363644ff70707dff97979fffb4b5b9ffcecfd3ffdddee1fff1f2f3fffbfbf9ffffffffff", + "categorical": "464d63ff9398a8ffb5bcd2ff5266ebffabbaefffdce3fcffedf1fefff7f9fefffbfcffff445149ff929b95ffb4c0b8ff036e43ff9dbba8ffdbe8dfffecf4effff6faf7fffbfdfcff5b4941ffa29590ffcab8b0ffa44200ffd4ab99fff3e0d7fffaefeafffdf7f5fffefcfbff5f454dffa59397ffceb5bcffb0175fffdca2b3fff8dde4fffdedf1fffff6f8fffffbfcff425054ff919a9dffb2bfc3ff007f95ffa1c1c9ffd9e7ebffebf3f6fff5fafbfffbfdfdff", + "base": "b0175fffb0175fffb0175fffb0175fffb0175fffb0175fff0000000000000000dce3fcfff1f2f3ff0000000000000000000000000000000000000000000000000000000000000000fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1f2f3ffdddee1ffcecfd3ff7073931a1885541afbfcfdffd032751a036e43ffb0175fff1885541ad032751a535461ff036e43ff70707dff70707dffb0175fff70707dff036e43ff363644ffa44200ff1e1e2aff7073931a465bd1ff5266ebff465bd1ff5266ebff5266ebff1e1e2aff1e1e2aff363644ff5266ebff70707dff5266ebff465bd1ffa44200ff465bd1ff363644ff036e43ff007f95ff007f95ffffffffff97979fffffffffffffffffffffffffffffffffff363644ff97979fff363644ff363644ff363644ff5266ebff70707dff70707dff9398a8ff363644ff70707dff70707dff363644ff97979fffb0175fffb0175fff007f95ff007f95ff036e43ff036e43ffa44200ffa44200ff363644ff97979fff5266ebff5266ebff5266ebff5266ebff70707dff", + "dialog": "b0175fffb0175fffb0175fffb0175fffb0175fffb0175fff0000000000000000dce3fcffdddee1ff0000000000000000000000000000000000000000dddee1ff0000000000000000fbfbf9fffbfbf9fffbfbf9fffbfbf9fffbfbf9fffbfbf9fffbfbf9fffbfbf9fffbfbf9fffbfbf9fffbfbf9fff1f2f3fff1f2f3ffcecfd3ff7073931a1885541afbfcfdffd032751a036e43ffb0175fff1885541ad032751a535461ff036e43ff70707dff70707dffb0175fff70707dff036e43ff363644ffa44200ff1e1e2aff7073931a465bd1ff5266ebff465bd1ff5266ebff5266ebff1e1e2aff1e1e2aff363644ff5266ebff70707dff5266ebff465bd1ffa44200ff465bd1ff363644ff036e43ff007f95ff007f95ffffffffff97979fffffffffffffffffffffffffffffffffff363644ff97979fff363644ff363644ff363644ff5266ebff70707dff70707dff9398a8ff363644ff70707dff70707dff363644ff97979fffb0175fffb0175fff007f95ff007f95ff036e43ff036e43ffa44200ffa44200ff363644ff97979fff5266ebff5266ebff5266ebff5266ebff70707dff", + "footer": "b0175fffb0175fffb0175fffb0175fffb0175fffb0175fff0000000000000000dce3fcffdddee1ff0000000000000000000000000000000000000000dddee1ff0000000000000000fbfbf9fffbfbf9fffbfbf9fffbfbf9fffbfbf9fffbfbf9fffbfbf9fffbfbf9fffbfbf9fffbfbf9fffbfbf9fff1f2f3fff1f2f3ffcecfd3ff7073931a1885541afbfcfdffd032751a036e43ffb0175fff1885541ad032751a535461ff036e43ff70707dff70707dffb0175fff70707dff036e43ff363644ffa44200ff1e1e2aff7073931a465bd1ff5266ebff465bd1ff5266ebff5266ebff1e1e2aff1e1e2aff363644ff5266ebff70707dff5266ebff465bd1ffa44200ff465bd1ff363644ff036e43ff007f95ff007f95ffffffffff97979fffffffffffffffffffffffffffffffffff363644ff97979fff363644ff363644ff363644ff5266ebff70707dff70707dff9398a8ff363644ff70707dff70707dff363644ff97979fffb0175fffb0175fff007f95ff007f95ff036e43ff036e43ffa44200ffa44200ff363644ff97979fff5266ebff5266ebff5266ebff5266ebff70707dff", + "decrease": "ceb5bcffceb5bcffceb5bcffceb5bcffceb5bcffceb5bcff0000000000000000abbaefffdddee1ff0000000000000000000000000000000000000000000000000000000000000000fbfbf9fffbfbf9fffbfbf9fffbfbf9fffbfbf9fffbfbf9fffbfbf9fffbfbf9fffbfbf9fffbfbf9fffbfbf9ffdddee1ffcecfd3ffb4b5b9ff7073931a1885541afbfcfdffd032751ab4c0b8ffceb5bcff1885541ad032751a535461ffb4c0b8ff363644ff363644ffceb5bcff363644ffb4c0b8ff363644ffcab8b0ff1e1e2aff7073931a465bd1ffb5bcd2ff465bd1ffb5bcd2ffb5bcd2ff1e1e2aff1e1e2aff363644ffb5bcd2ff363644ffb5bcd2ff465bd1ffcab8b0ff465bd1ff363644ffb4c0b8ffb2bfc3ffb2bfc3fffbfbf9ff70707dfffbfbf9fffbfbf9fffbfbf9fffbfbf9ff363644ff70707dff363644ff363644ff363644ffb5bcd2ff363644ff363644ff464d63ff363644ff363644ff363644ff363644ff70707dffceb5bcffceb5bcffb2bfc3ffb2bfc3ffb4c0b8ffb4c0b8ffcab8b0ffcab8b0ff363644ff70707dffb5bcd2ffb5bcd2ffb5bcd2ffb5bcd2ff363644ff", + "increase": "f8dde4fff8dde4fff8dde4fff8dde4fff8dde4fff8dde4ff0000000000000000f7f9feffffffffff0000000000000000000000000000000000000000000000000000000000000000fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffbfbf9fff1f2f3ff7073931a1885541afbfcfdffd032751adbe8dffff8dde4ff1885541ad032751a535461ffdbe8dfffb4b5b9ffb4b5b9fff8dde4ffb4b5b9ffdbe8dfff97979ffff3e0d7ff1e1e2aff7073931a465bd1ffdce3fcff465bd1ffdce3fcffdce3fcff1e1e2aff1e1e2aff97979fffdce3fcffb4b5b9ffdce3fcff465bd1fff3e0d7ff465bd1ff97979fffdbe8dfffd9e7ebffd9e7ebffffffffffcecfd3ffffffffffffffffffffffffffffffffff97979fffcecfd3ff97979fff97979fff97979fffdce3fcffb4b5b9ffb4b5b9ff5266ebff97979fffb4b5b9ffb4b5b9ff97979fffcecfd3fff8dde4fff8dde4ffd9e7ebffd9e7ebffdbe8dfffdbe8dffff3e0d7fff3e0d7ff97979fffcecfd3ffdce3fcffdce3fcffdce3fcffdce3fcffb4b5b9ff" + }, + "mercury/dark": { + "modes": ["light","dark"], + "hues": ["gray","red","orange","green","cyan","blue","accent","interactive","neutral"], + "hue": "dddde5ff9d9da8ff797983ff575767ff363745ff282836ff1e1f29ff1b1c26ff171721ffdbcfd2ffa98f96ff897379fffc92b4ffa36478ff3c303bff2f262fff241d24ff1d171dffdad0ccffa99288ff89756cfffc9b6fffa36a50ff3f3035ff31252aff261d21ff1e171cffcdd5d0ff8b9c92ff6f7e75ff77c599ff568369ff28363aff1f2a2eff182124ff131a1fffcdd4d6ff8b9a9eff6f7c80ff77becfff567f89ff2d353cff232930ff1b2026ff151a20ffcfd2dbff9097aaff74798aff8da4f5ff6371a2ff313340ff272832ff1e1f27ff181920ffcfd2dbff9097aaff74798aff8da4f5ff6371a2ff313340ff272832ff1e1f27ff181920ffcfd2dbff9097aaff74798aff8da4f5ff6371a2ff313340ff272832ff1e1f27ff181920ffdddde5ff9d9da8ff797983ff575767ff363745ff282836ff1e1f29ff1b1c26ff171721ff", + "categorical": "cfd2dbff9097aaff74798aff8da4f5ff6371a2ff313340ff272832ff1e1f27ff181920ffcdd5d0ff8b9c92ff6f7e75ff77c599ff568369ff28363aff1f2a2eff182124ff131a1fffdad0ccffa99288ff89756cfffc9b6fffa36a50ff3f3035ff31252aff261d21ff1e171cffdbcfd2ffa98f96ff897379fffc92b4ffa36478ff3c303bff2f262fff241d24ff1d171dffcdd4d6ff8b9a9eff6f7c80ff77becfff567f89ff2d353cff232930ff1b2026ff151a20ff", + "base": "fc92b4fffc92b4fffc92b4fffc92b4fffc92b4fffc92b4ff0000000000000000313340ff1e1f29ff0000000000000000000000000000000000000000000000000000000000000000171721ff171721ff171721ff171721ff171721ff171721ff171721ff171721ff171721ff171721ff171721ff1e1f29ff282836ff363745ffb4b7c81f77c599331e1e2afffc92b43377c599fffc92b4ff77c59933fc92b433c3c3ccff77c599ff9d9da8ff9d9da8fffc92b4ff9d9da8ff77c599ffdddde5fffc9b6fffffffffffb4b7c81f8da4f5ffa7b6f8ff8da4f5ffa7b6f8ff8da4f5fffffffffff4f5f9ffdddde5ff8da4f5ff9d9da8ff8da4f5ff8da4f5fffc9b6fff8da4f5ffdddde5ff77c599ff77becfff77becfff171721ff797983ff171721ff171721ff171721ff171721ffdddde5ff797983ffdddde5ffdddde5ffdddde5ff8da4f5ff9d9da8ff9d9da8ff9097aaffdddde5ff9d9da8ff9d9da8ffdddde5ff797983fffc92b4fffc92b4ff77becfff77becfff77c599ff77c599fffc9b6ffffc9b6fffdddde5ff797983ff8da4f5ff8da4f5ff8da4f5ff8da4f5ff9d9da8ff", + "dialog": "fc92b4fffc92b4fffc92b4fffc92b4fffc92b4fffc92b4ff0000000000000000313340ff363745ff0000000000000000000000000000000000000000363745ff00000000000000001e1f29ff1e1f29ff1e1f29ff1e1f29ff1e1f29ff1e1f29ff1e1f29ff1e1f29ff1e1f29ff1e1f29ff1e1f29ff1e1f29ff282836ff363745ffb4b7c81f77c599331e1e2afffc92b43377c599fffc92b4ff77c59933fc92b433c3c3ccff77c599ff9d9da8ff9d9da8fffc92b4ff9d9da8ff77c599ffdddde5fffc9b6fffffffffffb4b7c81f8da4f5ffa7b6f8ff8da4f5ffa7b6f8ff8da4f5fffffffffff4f5f9ffdddde5ff8da4f5ff9d9da8ff8da4f5ff8da4f5fffc9b6fff8da4f5ffdddde5ff77c599ff77becfff77becfff171721ff797983ff171721ff171721ff171721ff171721ffdddde5ff797983ffdddde5ffdddde5ffdddde5ff8da4f5ff9d9da8ff9d9da8ff9097aaffdddde5ff9d9da8ff9d9da8ffdddde5ff797983fffc92b4fffc92b4ff77becfff77becfff77c599ff77c599fffc9b6ffffc9b6fffdddde5ff797983ff8da4f5ff8da4f5ff8da4f5ff8da4f5ff9d9da8ff", + "footer": "fc92b4fffc92b4fffc92b4fffc92b4fffc92b4fffc92b4ff0000000000000000313340ff363745ff0000000000000000000000000000000000000000363745ff00000000000000001e1f29ff1e1f29ff1e1f29ff1e1f29ff1e1f29ff1e1f29ff1e1f29ff1e1f29ff1e1f29ff1e1f29ff1e1f29ff1e1f29ff282836ff363745ffb4b7c81f77c599331e1e2afffc92b43377c599fffc92b4ff77c59933fc92b433c3c3ccff77c599ff9d9da8ff9d9da8fffc92b4ff9d9da8ff77c599ffdddde5fffc9b6fffffffffffb4b7c81f8da4f5ffa7b6f8ff8da4f5ffa7b6f8ff8da4f5fffffffffff4f5f9ffdddde5ff8da4f5ff9d9da8ff8da4f5ff8da4f5fffc9b6fff8da4f5ffdddde5ff77c599ff77becfff77becfff171721ff797983ff171721ff171721ff171721ff171721ffdddde5ff797983ffdddde5ffdddde5ffdddde5ff8da4f5ff9d9da8ff9d9da8ff9097aaffdddde5ff9d9da8ff9d9da8ffdddde5ff797983fffc92b4fffc92b4ff77becfff77becfff77c599ff77c599fffc9b6ffffc9b6fffdddde5ff797983ff8da4f5ff8da4f5ff8da4f5ff8da4f5ff9d9da8ff", + "decrease": "897379ff897379ff897379ff897379ff897379ff897379ff00000000000000006371a2ff282836ff00000000000000000000000000000000000000000000000000000000000000001b1c26ff1b1c26ff1b1c26ff1b1c26ff1b1c26ff1b1c26ff1b1c26ff1b1c26ff1b1c26ff1b1c26ff1b1c26ff282836ff363745ff575767ffb4b7c81f77c599331e1e2afffc92b4336f7e75ff897379ff77c59933fc92b433c3c3ccff6f7e75ffdddde5ffdddde5ff897379ffdddde5ff6f7e75ffdddde5ff89756cffffffffffb4b7c81f74798affa7b6f8ff74798affa7b6f8ff74798afffffffffff4f5f9ffdddde5ff74798affdddde5ff74798aff74798aff89756cff74798affdddde5ff6f7e75ff6f7c80ff6f7c80ff1b1c26ff9d9da8ff1b1c26ff1b1c26ff1b1c26ff1b1c26ffdddde5ff9d9da8ffdddde5ffdddde5ffdddde5ff74798affdddde5ffdddde5ffcfd2dbffdddde5ffdddde5ffdddde5ffdddde5ff9d9da8ff897379ff897379ff6f7c80ff6f7c80ff6f7e75ff6f7e75ff89756cff89756cffdddde5ff9d9da8ff74798aff74798aff74798aff74798affdddde5ff", + "increase": "3c303bff3c303bff3c303bff3c303bff3c303bff3c303bff00000000000000001e1f27ff171721ff0000000000000000000000000000000000000000000000000000000000000000171721ff171721ff171721ff171721ff171721ff171721ff171721ff171721ff171721ff171721ff171721ff171721ff1b1c26ff1e1f29ffb4b7c81f77c599331e1e2afffc92b43328363aff3c303bff77c59933fc92b433c3c3ccff28363aff575767ff575767ff3c303bff575767ff28363aff797983ff3f3035ffffffffffb4b7c81f313340ffa7b6f8ff313340ffa7b6f8ff313340fffffffffff4f5f9ff797983ff313340ff575767ff313340ff313340ff3f3035ff313340ff797983ff28363aff2d353cff2d353cff171721ff363745ff171721ff171721ff171721ff171721ff797983ff363745ff797983ff797983ff797983ff313340ff575767ff575767ff8da4f5ff797983ff575767ff575767ff797983ff363745ff3c303bff3c303bff2d353cff2d353cff28363aff28363aff3f3035ff3f3035ff797983ff363745ff313340ff313340ff313340ff313340ff575767ff" + }, + "monokai/light": { + "modes": ["light","dark"], + "hues": ["gray","red","orange","green","cyan","purple","accent","interactive","neutral"], + "hue": "272822ff75715eff8c8d89ffb0b0b0ffcbcbcbffdadadaffedededfff6f6f6fffafafaff513238ffa89094ffc7a6acfff92672fff5a9b7fff9d7dcfffce7eafffcf1f2fffbf6f7ff49392bffa1958bffbdad9ffffd971fffefc7a5ffeedccdfff5eae1fff8f3eefff9f7f5ff37402aff939a8affaab49effa6e22effcae2abffd9e4ccffe9efe1fff2f5eefff7f8f5ff303f43ff8f9a9cffa4b3b6ff66d9efffb9dee6ffd2e3e6ffe5eff1fff0f5f6fff6f8f8ff3e384cff9995a3ffb2acc1ffae81ffffcdbff0ffe1dcf2ffeeeaf7fff4f3f9fff8f7faff37402aff939a8affaab49effa6e22effcae2abffd9e4ccffe9efe1fff2f5eefff7f8f5ff303f43ff8f9a9cffa4b3b6ff66d9efffb9dee6ffd2e3e6ffe5eff1fff0f5f6fff6f8f8ff272822ff75715eff8c8d89ffb0b0b0ffcbcbcbffdadadaffedededfff6f6f6fffafafaff", + "categorical": "3e384cff9995a3ffb2acc1ffae81ffffcdbff0ffe1dcf2ffeeeaf7fff4f3f9fff8f7faff37402aff939a8affaab49effa6e22effcae2abffd9e4ccffe9efe1fff2f5eefff7f8f5ff49392bffa1958bffbdad9ffffd971fffefc7a5ffeedccdfff5eae1fff8f3eefff9f7f5ff303f43ff8f9a9cffa4b3b6ff66d9efffb9dee6ffd2e3e6ffe5eff1fff0f5f6fff6f8f8ff513238ffa89094ffc7a6acfff92672fff5a9b7fff9d7dcfffce7eafffcf1f2fffbf6f7ff", + "base": "f92672fff92672fff92672fff92672fff92672fff92672ff0000000000000000d2e3e6ffedededff0000000000000000000000000000000000000000000000000000000000000000fafafafffafafafffafafafffafafafffafafafffafafafffafafafffafafafffafafafffafafafffafafaffedededffdadadaffcbcbcbffd0d0d0ffe0ffe0fff0f0f0ffffe0e0ffa6e22efff92672ffe0ffe0ffffe0e0ff686868ffa6e22eff75715eff75715efff92672ff75715effa6e22eff272822fffd971ffff92672ff75715eff66d9efffae81ffff66d9efffae81ffffae81ffff66d9effffd971fff272822ff66d9efff75715effa6e22efff92672ffae81fffff92672ff272822fffd971fff66d9efff272822fffafafaff8c8d89fffafafafffafafafffafafafffafafaff272822ff8c8d89ff272822ff272822ff272822ff66d9efff75715eff75715eff8f9a9cff272822ff75715eff75715eff272822ff8c8d89fff92672fff92672fffd971ffffd971fffa6e22effa6e22efffd971ffffd971fff272822ff8c8d89ff66d9efff66d9efff66d9efff66d9efff75715eff", + "dialog": "f92672fff92672fff92672fff92672fff92672fff92672ff0000000000000000d2e3e6ffdadadaff0000000000000000000000000000000000000000dadadaff0000000000000000f6f6f6fff6f6f6fff6f6f6fff6f6f6fff6f6f6fff6f6f6fff6f6f6fff6f6f6fff6f6f6fff6f6f6fff6f6f6ffedededffedededffcbcbcbffd0d0d0ffe0ffe0fff0f0f0ffffe0e0ffa6e22efff92672ffe0ffe0ffffe0e0ff686868ffa6e22eff75715eff75715efff92672ff75715effa6e22eff272822fffd971ffff92672ff75715eff66d9efffae81ffff66d9efffae81ffffae81ffff66d9effffd971fff272822ff66d9efff75715effa6e22efff92672ffae81fffff92672ff272822fffd971fff66d9efff272822fffafafaff8c8d89fffafafafffafafafffafafafffafafaff272822ff8c8d89ff272822ff272822ff272822ff66d9efff75715eff75715eff8f9a9cff272822ff75715eff75715eff272822ff8c8d89fff92672fff92672fffd971ffffd971fffa6e22effa6e22efffd971ffffd971fff272822ff8c8d89ff66d9efff66d9efff66d9efff66d9efff75715eff", + "footer": "f92672fff92672fff92672fff92672fff92672fff92672ff0000000000000000d2e3e6ffdadadaff0000000000000000000000000000000000000000dadadaff0000000000000000f6f6f6fff6f6f6fff6f6f6fff6f6f6fff6f6f6fff6f6f6fff6f6f6fff6f6f6fff6f6f6fff6f6f6fff6f6f6ffedededffedededffcbcbcbffd0d0d0ffe0ffe0fff0f0f0ffffe0e0ffa6e22efff92672ffe0ffe0ffffe0e0ff686868ffa6e22eff75715eff75715efff92672ff75715effa6e22eff272822fffd971ffff92672ff75715eff66d9efffae81ffff66d9efffae81ffffae81ffff66d9effffd971fff272822ff66d9efff75715effa6e22efff92672ffae81fffff92672ff272822fffd971fff66d9efff272822fffafafaff8c8d89fffafafafffafafafffafafafffafafaff272822ff8c8d89ff272822ff272822ff272822ff66d9efff75715eff75715eff8f9a9cff272822ff75715eff75715eff272822ff8c8d89fff92672fff92672fffd971ffffd971fffa6e22effa6e22efffd971ffffd971fff272822ff8c8d89ff66d9efff66d9efff66d9efff66d9efff75715eff", + "decrease": "c7a6acffc7a6acffc7a6acffc7a6acffc7a6acffc7a6acff0000000000000000b9dee6ffdadadaff0000000000000000000000000000000000000000000000000000000000000000f6f6f6fff6f6f6fff6f6f6fff6f6f6fff6f6f6fff6f6f6fff6f6f6fff6f6f6fff6f6f6fff6f6f6fff6f6f6ffdadadaffcbcbcbffb0b0b0ffd0d0d0ffe0ffe0fff0f0f0ffffe0e0ffaab49effc7a6acffe0ffe0ffffe0e0ff686868ffaab49eff272822ff272822ffc7a6acff272822ffaab49eff272822ffbdad9fffc7a6acff272822ffa4b3b6ffb2acc1ffa4b3b6ffb2acc1ffb2acc1ffa4b3b6ffbdad9fff272822ffa4b3b6ff272822ffaab49effc7a6acffb2acc1ffc7a6acff272822ffbdad9fffa4b3b6ff272822fff6f6f6ff75715efff6f6f6fff6f6f6fff6f6f6fff6f6f6ff272822ff75715eff272822ff272822ff272822ffa4b3b6ff272822ff272822ff303f43ff272822ff272822ff272822ff272822ff75715effc7a6acffc7a6acffbdad9fffbdad9fffaab49effaab49effbdad9fffbdad9fff272822ff75715effa4b3b6ffa4b3b6ffa4b3b6ffa4b3b6ff272822ff", + "increase": "f9d7dcfff9d7dcfff9d7dcfff9d7dcfff9d7dcfff9d7dcff0000000000000000f0f5f6fffafafaff0000000000000000000000000000000000000000000000000000000000000000fafafafffafafafffafafafffafafafffafafafffafafafffafafafffafafafffafafafffafafafffafafafffafafafff6f6f6ffedededffd0d0d0ffe0ffe0fff0f0f0ffffe0e0ffd9e4ccfff9d7dcffe0ffe0ffffe0e0ff686868ffd9e4ccffb0b0b0ffb0b0b0fff9d7dcffb0b0b0ffd9e4ccff8c8d89ffeedccdfff9d7dcffb0b0b0ffd2e3e6ffe1dcf2ffd2e3e6ffe1dcf2ffe1dcf2ffd2e3e6ffeedccdff8c8d89ffd2e3e6ffb0b0b0ffd9e4ccfff9d7dcffe1dcf2fff9d7dcff8c8d89ffeedccdffd2e3e6ff8c8d89fffafafaffcbcbcbfffafafafffafafafffafafafffafafaff8c8d89ffcbcbcbff8c8d89ff8c8d89ff8c8d89ffd2e3e6ffb0b0b0ffb0b0b0ff66d9efff8c8d89ffb0b0b0ffb0b0b0ff8c8d89ffcbcbcbfff9d7dcfff9d7dcffeedccdffeedccdffd9e4ccffd9e4ccffeedccdffeedccdff8c8d89ffcbcbcbffd2e3e6ffd2e3e6ffd2e3e6ffd2e3e6ffb0b0b0ff" + }, + "monokai/dark": { + "modes": ["light","dark"], + "hues": ["gray","red","orange","yellow","green","cyan","purple","accent","interactive","neutral"], + "hue": "f8f8f2ffb7b8b1ff75715eff6c6b5fff44443bff36372eff2d2e29ff2b2c27ff272822fffbe6e9ffd1a1a9ff8b636afff92672ffb84362ff4b3d31ff3d332aff332c25ff2d2821fff5eae1ffc3ab96ff806b5afffd971fffb07337ff443f33ff39352cff302e27ff2a2822ffedece3ffb3b19cff72715effe6db74ff9a9459ff404036ff35362eff2e2e28ff292923ffe8efe0ffa7b695ff687559ffa6e22eff779b3bff3d4133ff34362cff2c2f27ff282923ffe4eef0ff9eb5baff607478ff66d9efff5596a3ff38423cff303733ff2a2f2bff252a26ffedeaf7ffb3abc9ff726b84ffae81ffff8369b5ff4c3c3aff3e3330ff332c28ff2e2724ffe8efe0ffa7b695ff687559ffa6e22eff779b3bff3d4133ff34362cff2c2f27ff282923ffe4eef0ff9eb5baff607478ff66d9efff5596a3ff38423cff303733ff2a2f2bff252a26fff8f8f2ffb7b8b1ff75715eff6c6b5fff44443bff36372eff2d2e29ff2b2c27ff272822ff", + "categorical": "edeaf7ffb3abc9ff726b84ffae81ffff8369b5ff4c3c3aff3e3330ff332c28ff2e2724ffe8efe0ffa7b695ff687559ffa6e22eff779b3bff3d4133ff34362cff2c2f27ff282923ffedece3ffb3b19cff72715effe6db74ff9a9459ff404036ff35362eff2e2e28ff292923ffe4eef0ff9eb5baff607478ff66d9efff5596a3ff38423cff303733ff2a2f2bff252a26fffbe6e9ffd1a1a9ff8b636afff92672ffb84362ff4b3d31ff3d332aff332c25ff2d2821fff5eae1ffc3ab96ff806b5afffd971fffb07337ff443f33ff39352cff302e27ff2a2822ff", + "base": "f92672fff92672fff92672fff92672fff92672fff92672ff000000000000000038423cff2d2e29ff0000000000000000000000000000000000000000000000000000000000000000272822ff272822ff272822ff272822ff272822ff272822ff272822ff272822ff272822ff272822ff272822ff2d2e29ff36372eff44443bff3e3d32ff1a3a1aff1e1f1cff3a1a1affa6e22efff92672ff1a3a1aff3a1a1aff9b9b95ffa6e22eff75715eff75715efff92672ff75715effa6e22efff8f8f2ffe6db74fff92672ff75715eff66d9efffae81ffff66d9efffae81ffffae81ffff66d9effffd971ffff8f8f2ff66d9efff75715effa6e22efff92672ffae81fffff92672fff8f8f2ffe6db74ff66d9effff8f8f2ff272822ff75715eff272822ff272822ff272822ff272822fff8f8f2ff75715efff8f8f2fff8f8f2fff8f8f2ff66d9efffb7b8b1ffb7b8b1ff9eb5bafff8f8f2ffb7b8b1ffb7b8b1fff8f8f2ff75715efff92672fff92672fffd971ffffd971fffa6e22effa6e22effe6db74ffe6db74fff8f8f2ff75715eff66d9efff66d9efff66d9efff66d9efffb7b8b1ff", + "dialog": "f92672fff92672fff92672fff92672fff92672fff92672ff000000000000000038423cff44443bff000000000000000000000000000000000000000044443bff00000000000000002d2e29ff2d2e29ff2d2e29ff2d2e29ff2d2e29ff2d2e29ff2d2e29ff2d2e29ff2d2e29ff2d2e29ff2d2e29ff2d2e29ff36372eff44443bff3e3d32ff1a3a1aff1e1f1cff3a1a1affa6e22efff92672ff1a3a1aff3a1a1aff9b9b95ffa6e22eff75715eff75715efff92672ff75715effa6e22efff8f8f2ffe6db74fff92672ff75715eff66d9efffae81ffff66d9efffae81ffffae81ffff66d9effffd971ffff8f8f2ff66d9efff75715effa6e22efff92672ffae81fffff92672fff8f8f2ffe6db74ff66d9effff8f8f2ff272822ff75715eff272822ff272822ff272822ff272822fff8f8f2ff75715efff8f8f2fff8f8f2fff8f8f2ff66d9efffb7b8b1ffb7b8b1ff9eb5bafff8f8f2ffb7b8b1ffb7b8b1fff8f8f2ff75715efff92672fff92672fffd971ffffd971fffa6e22effa6e22effe6db74ffe6db74fff8f8f2ff75715eff66d9efff66d9efff66d9efff66d9efffb7b8b1ff", + "footer": "f92672fff92672fff92672fff92672fff92672fff92672ff000000000000000038423cff44443bff000000000000000000000000000000000000000044443bff00000000000000002d2e29ff2d2e29ff2d2e29ff2d2e29ff2d2e29ff2d2e29ff2d2e29ff2d2e29ff2d2e29ff2d2e29ff2d2e29ff2d2e29ff36372eff44443bff3e3d32ff1a3a1aff1e1f1cff3a1a1affa6e22efff92672ff1a3a1aff3a1a1aff9b9b95ffa6e22eff75715eff75715efff92672ff75715effa6e22efff8f8f2ffe6db74fff92672ff75715eff66d9efffae81ffff66d9efffae81ffffae81ffff66d9effffd971ffff8f8f2ff66d9efff75715effa6e22efff92672ffae81fffff92672fff8f8f2ffe6db74ff66d9effff8f8f2ff272822ff75715eff272822ff272822ff272822ff272822fff8f8f2ff75715efff8f8f2fff8f8f2fff8f8f2ff66d9efffb7b8b1ffb7b8b1ff9eb5bafff8f8f2ffb7b8b1ffb7b8b1fff8f8f2ff75715efff92672fff92672fffd971ffffd971fffa6e22effa6e22effe6db74ffe6db74fff8f8f2ff75715eff66d9efff66d9efff66d9efff66d9efffb7b8b1ff", + "decrease": "8b636aff8b636aff8b636aff8b636aff8b636aff8b636aff00000000000000005596a3ff36372eff00000000000000000000000000000000000000000000000000000000000000002b2c27ff2b2c27ff2b2c27ff2b2c27ff2b2c27ff2b2c27ff2b2c27ff2b2c27ff2b2c27ff2b2c27ff2b2c27ff36372eff44443bff6c6b5fff3e3d32ff1a3a1aff1e1f1cff3a1a1aff687559ff8b636aff1a3a1aff3a1a1aff9b9b95ff687559ffb7b8b1ffb7b8b1ff8b636affb7b8b1ff687559fff8f8f2ff72715eff8b636affb7b8b1ff607478ff726b84ff607478ff726b84ff726b84ff607478ff806b5afff8f8f2ff607478ffb7b8b1ff687559ff8b636aff726b84ff8b636afff8f8f2ff72715eff607478fff8f8f2ff2b2c27ffb7b8b1ff2b2c27ff2b2c27ff2b2c27ff2b2c27fff8f8f2ffb7b8b1fff8f8f2fff8f8f2fff8f8f2ff607478fff8f8f2fff8f8f2ffe4eef0fff8f8f2fff8f8f2fff8f8f2fff8f8f2ffb7b8b1ff8b636aff8b636aff806b5aff806b5aff687559ff687559ff72715eff72715efff8f8f2ffb7b8b1ff607478ff607478ff607478ff607478fff8f8f2ff", + "increase": "4b3d31ff4b3d31ff4b3d31ff4b3d31ff4b3d31ff4b3d31ff00000000000000002a2f2bff272822ff0000000000000000000000000000000000000000000000000000000000000000272822ff272822ff272822ff272822ff272822ff272822ff272822ff272822ff272822ff272822ff272822ff272822ff2b2c27ff2d2e29ff3e3d32ff1a3a1aff1e1f1cff3a1a1aff3d4133ff4b3d31ff1a3a1aff3a1a1aff9b9b95ff3d4133ff44443bff44443bff4b3d31ff44443bff3d4133ff75715eff404036ff4b3d31ff44443bff38423cff4c3c3aff38423cff4c3c3aff4c3c3aff38423cff443f33ff75715eff38423cff44443bff3d4133ff4b3d31ff4c3c3aff4b3d31ff75715eff404036ff38423cff75715eff272822ff44443bff272822ff272822ff272822ff272822ff75715eff44443bff75715eff75715eff75715eff38423cff6c6b5fff6c6b5fff66d9efff75715eff6c6b5fff6c6b5fff75715eff44443bff4b3d31ff4b3d31ff443f33ff443f33ff3d4133ff3d4133ff404036ff404036ff75715eff44443bff38423cff38423cff38423cff38423cff6c6b5fff" + }, + "nightowl/dark": { + "modes": ["dark"], + "hues": ["gray","red","orange","yellow","green","blue","purple","accent","interactive","neutral"], + "hue": "d6deebff94a0afff5f7e97ff3c576fff1f384eff10293eff051e32ff031b2fff011627ffdfceccffb28d89ff91706cffef5350ffa24641ff402b3cff32212eff261922ff1e1218ffd5d1ccff9f968aff80786dffecc48dff937b5bff293528ff1f291eff122017ff051a15ffd0d4caff939b85ff767c68ffc5e478ff7a8c4eff1c362fff152a24ff0d201cff021a1affccd4d2ff899c98ff6d7d7aff7fdbcaff558a80ff1e3539ff16292cff0d1f23ff04191effced2dbff8e98abff71798bff82aaffff5a72a4ff263243ff1d2735ff151d29ff0e1621ffd5d0d9ff9e92a6ff7f7486ffc792eaff836498ff313043ff252535ff1c1b29ff121522ffd5d0d9ff9e92a6ff7f7486ffc792eaff836498ff313043ff252535ff1c1b29ff121522ffced2dbff8e98abff71798bff82aaffff5a72a4ff263243ff1d2735ff151d29ff0e1621ffd6deebff94a0afff5f7e97ff3c576fff1f384eff10293eff051e32ff031b2fff011627ff", + "categorical": "ccd4d2ff899c98ff6d7d7aff7fdbcaff558a80ff1e3539ff16292cff0d1f23ff04191effd5d0d9ff9e92a6ff7f7486ffc792eaff836498ff313043ff252535ff1c1b29ff121522ffd0d4caff939b85ff767c68ffc5e478ff7a8c4eff1c362fff152a24ff0d201cff021a1affd5d1ccff9f968aff80786dffecc48dff937b5bff293528ff1f291eff122017ff051a15ffced2dbff8e98abff71798bff82aaffff5a72a4ff263243ff1d2735ff151d29ff0e1621ffdfceccffb28d89ff91706cffef5350ffa24641ff402b3cff32212eff261922ff1e1218ff", + "base": "ef5350ffef5350ffef5350ffef5350ffef5350ffef5350ff0000000000000000263243ff051e32ff0000000000000000000000000000000000000000000000000000000000000000011627ff011627ff011627ff011627ff011627ff011627ff011627ff011627ff011627ff011627ff011627ff051e32ff10293eff1f384eff5f7e97ff0a2e1aff0b253aff2d1b1bffc5e478ffef5350ff0a2e1aff2d1b1bff7791a6ffc5e478ff5f7e97ff5f7e97ffef5350ff5f7e97ffc5e478ffd6deebffc792eaff82aaffff5f7e97ff7fdbcaff82aaffff7fdbcaff82aaffff7fdbcaff82aaffffecc48dffd6deebff82aaffff637777ff82aaffffc792eafff78c6cff7fdbcaffd6deebffecc48dffc5e478ffd6deebff011627ff5f7e97ff011627ff011627ff011627ff011627ffd6deebff5f7e97ffd6deebffd6deebffd6deebff82aaffff94a0afff94a0afff8e98abffd6deebff94a0afff94a0afffd6deebff5f7e97ffef5350ffef5350ff82aaffff82aaffffc5e478ffc5e478ffecc48dffecc48dffd6deebff5f7e97ff82aaffff82aaffff82aaffff82aaffff94a0afff", + "dialog": "ef5350ffef5350ffef5350ffef5350ffef5350ffef5350ff0000000000000000263243ff1f384eff00000000000000000000000000000000000000001f384eff0000000000000000051e32ff051e32ff051e32ff051e32ff051e32ff051e32ff051e32ff051e32ff051e32ff051e32ff051e32ff051e32ff10293eff1f384eff5f7e97ff0a2e1aff0b253aff2d1b1bffc5e478ffef5350ff0a2e1aff2d1b1bff7791a6ffc5e478ff5f7e97ff5f7e97ffef5350ff5f7e97ffc5e478ffd6deebffc792eaff82aaffff5f7e97ff7fdbcaff82aaffff7fdbcaff82aaffff7fdbcaff82aaffffecc48dffd6deebff82aaffff637777ff82aaffffc792eafff78c6cff7fdbcaffd6deebffecc48dffc5e478ffd6deebff011627ff5f7e97ff011627ff011627ff011627ff011627ffd6deebff5f7e97ffd6deebffd6deebffd6deebff82aaffff94a0afff94a0afff8e98abffd6deebff94a0afff94a0afffd6deebff5f7e97ffef5350ffef5350ff82aaffff82aaffffc5e478ffc5e478ffecc48dffecc48dffd6deebff5f7e97ff82aaffff82aaffff82aaffff82aaffff94a0afff", + "footer": "ef5350ffef5350ffef5350ffef5350ffef5350ffef5350ff0000000000000000263243ff1f384eff00000000000000000000000000000000000000001f384eff0000000000000000051e32ff051e32ff051e32ff051e32ff051e32ff051e32ff051e32ff051e32ff051e32ff051e32ff051e32ff051e32ff10293eff1f384eff5f7e97ff0a2e1aff0b253aff2d1b1bffc5e478ffef5350ff0a2e1aff2d1b1bff7791a6ffc5e478ff5f7e97ff5f7e97ffef5350ff5f7e97ffc5e478ffd6deebffc792eaff82aaffff5f7e97ff7fdbcaff82aaffff7fdbcaff82aaffff7fdbcaff82aaffffecc48dffd6deebff82aaffff637777ff82aaffffc792eafff78c6cff7fdbcaffd6deebffecc48dffc5e478ffd6deebff011627ff5f7e97ff011627ff011627ff011627ff011627ffd6deebff5f7e97ffd6deebffd6deebffd6deebff82aaffff94a0afff94a0afff8e98abffd6deebff94a0afff94a0afffd6deebff5f7e97ffef5350ffef5350ff82aaffff82aaffffc5e478ffc5e478ffecc48dffecc48dffd6deebff5f7e97ff82aaffff82aaffff82aaffff82aaffff94a0afff", + "decrease": "91706cff91706cff91706cff91706cff91706cff91706cff00000000000000005a72a4ff10293eff0000000000000000000000000000000000000000000000000000000000000000031b2fff031b2fff031b2fff031b2fff031b2fff031b2fff031b2fff031b2fff031b2fff031b2fff031b2fff10293eff1f384eff3c576fff94a0afff0a2e1aff0b253aff2d1b1bff767c68ff91706cff0a2e1aff2d1b1bff7791a6ff767c68ff94a0afff94a0afff91706cff94a0afff767c68ffd6deebff7f7486ff71798bff94a0afff6d7d7aff71798bff6d7d7aff71798bff6d7d7aff71798bff80786dffd6deebff71798bff637777ff71798bff7f7486fff78c6cff6d7d7affd6deebff80786dff767c68ffd6deebff031b2fff94a0afff031b2fff031b2fff031b2fff031b2fffd6deebff94a0afffd6deebffd6deebffd6deebff71798bffd6deebffd6deebffced2dbffd6deebffd6deebffd6deebffd6deebff94a0afff91706cff91706cff71798bff71798bff767c68ff767c68ff80786dff80786dffd6deebff94a0afff71798bff71798bff71798bff71798bffd6deebff", + "increase": "402b3cff402b3cff402b3cff402b3cff402b3cff402b3cff0000000000000000151d29ff011627ff0000000000000000000000000000000000000000000000000000000000000000011627ff011627ff011627ff011627ff011627ff011627ff011627ff011627ff011627ff011627ff011627ff011627ff031b2fff051e32ff1f384eff0a2e1aff0b253aff2d1b1bff1c362fff402b3cff0a2e1aff2d1b1bff7791a6ff1c362fff1f384eff1f384eff402b3cff1f384eff1c362fff5f7e97ff313043ff263243ff1f384eff1e3539ff263243ff1e3539ff263243ff1e3539ff263243ff293528ff5f7e97ff263243ff637777ff263243ff313043fff78c6cff1e3539ff5f7e97ff293528ff1c362fff5f7e97ff011627ff1f384eff011627ff011627ff011627ff011627ff5f7e97ff1f384eff5f7e97ff5f7e97ff5f7e97ff263243ff3c576fff3c576fff82aaffff5f7e97ff3c576fff3c576fff5f7e97ff1f384eff402b3cff402b3cff263243ff263243ff1c362fff1c362fff293528ff293528ff5f7e97ff1f384eff263243ff263243ff263243ff263243ff3c576fff" + }, + "nord/light": { + "modes": ["light","dark"], + "hues": ["gray","red","green","cyan","blue","accent","interactive","neutral"], + "hue": "2e3440ff3b4252ff8a8f98ffa0a6b1ffbcc2ccffcad0daffdfe3e9ffe7ebf1ffeceff4ff554546ff6e6363ffbeaeaeffbf616affd2abadffe2d1d2ffe9dfdfffede7e7ffeeebecff474b43ff646762ffb0b4acffa3be8cffc2cdbaffd1d6ceffdfe2ddffe8e9e6ffececebff444b4bff626767ffadb4b4ff8fbcbbffbbccccffcfd6d6ffdee2e2ffe7e9e9ffebececff444a52ff62666bffadb3baff5e81acffa9b7c8ffcfd5ddffdee2e6ffe7e9ebffebecedff444b4bff626767ffadb4b4ff8fbcbbffbbccccffcfd6d6ffdee2e2ffe7e9e9ffebececff444a52ff62666bffadb3baff5e81acffa9b7c8ffcfd5ddffdee2e6ffe7e9ebffebecedff2e3440ff3b4252ff8a8f98ffa0a6b1ffbcc2ccffcad0daffdfe3e9ffe7ebf1ffeceff4ff", + "categorical": "444a52ff62666bffadb3baff5e81acffa9b7c8ffcfd5ddffdee2e6ffe7e9ebffebecedff444b4bff626767ffadb4b4ff8fbcbbffbbccccffcfd6d6ffdee2e2ffe7e9e9ffebececff474b43ff646762ffb0b4acffa3be8cffc2cdbaffd1d6ceffdfe2ddffe8e9e6ffececebff554546ff6e6363ffbeaeaeffbf616affd2abadffe2d1d2ffe9dfdfffede7e7ffeeebecff", + "base": "bf616affbf616affbf616affbf616affbf616affbf616aff0000000000000000cfd5ddffdfe3e9ff0000000000000000000000000000000000000000000000000000000000000000eceff4ffeceff4ffeceff4ffeceff4ffeceff4ffeceff4ffeceff4ffeceff4ffeceff4ffeceff4ffeceff4ffdfe3e9ffcad0daffbcc2ccff4c566affe5e9f0ffe5e9f0ffe5e9f0ffa3be8cffbf616affe5e9f0ffe5e9f0ff3b4252ffa3be8cff4c566aff4c566affbf616aff4c566affa3be8cff2e3440ffd08770ff5e81acff4c566aff81a1c1ff8fbcbbff81a1c1ff8fbcbbff8fbcbbff5e81acffebcb8bff2e3440ff434c5eff4c566aff88c0d0ff81a1c1ffb48eadff81a1c1ff2e3440ffa3be8cff8fbcbbff8fbcbbffeceff4ff8a8f98ffeceff4ffeceff4ffeceff4ffeceff4ff2e3440ff8a8f98ff2e3440ff2e3440ff2e3440ff5e81acff3b4252ff3b4252ff62666bff2e3440ff3b4252ff3b4252ff2e3440ff8a8f98ffbf616affbf616aff5e81acff5e81acffa3be8cffa3be8cffd08770ffd08770ff2e3440ff8a8f98ff5e81acff5e81acff5e81acff5e81acff3b4252ff", + "dialog": "bf616affbf616affbf616affbf616affbf616affbf616aff0000000000000000cfd5ddffcad0daff0000000000000000000000000000000000000000cad0daff0000000000000000e7ebf1ffe7ebf1ffe7ebf1ffe7ebf1ffe7ebf1ffe7ebf1ffe7ebf1ffe7ebf1ffe7ebf1ffe7ebf1ffe7ebf1ffdfe3e9ffdfe3e9ffbcc2ccff4c566affe5e9f0ffe5e9f0ffe5e9f0ffa3be8cffbf616affe5e9f0ffe5e9f0ff3b4252ffa3be8cff4c566aff4c566affbf616aff4c566affa3be8cff2e3440ffd08770ff5e81acff4c566aff81a1c1ff8fbcbbff81a1c1ff8fbcbbff8fbcbbff5e81acffebcb8bff2e3440ff434c5eff4c566aff88c0d0ff81a1c1ffb48eadff81a1c1ff2e3440ffa3be8cff8fbcbbff8fbcbbffeceff4ff8a8f98ffeceff4ffeceff4ffeceff4ffeceff4ff2e3440ff8a8f98ff2e3440ff2e3440ff2e3440ff5e81acff3b4252ff3b4252ff62666bff2e3440ff3b4252ff3b4252ff2e3440ff8a8f98ffbf616affbf616aff5e81acff5e81acffa3be8cffa3be8cffd08770ffd08770ff2e3440ff8a8f98ff5e81acff5e81acff5e81acff5e81acff3b4252ff", + "footer": "bf616affbf616affbf616affbf616affbf616affbf616aff0000000000000000cfd5ddffcad0daff0000000000000000000000000000000000000000cad0daff0000000000000000e7ebf1ffe7ebf1ffe7ebf1ffe7ebf1ffe7ebf1ffe7ebf1ffe7ebf1ffe7ebf1ffe7ebf1ffe7ebf1ffe7ebf1ffdfe3e9ffdfe3e9ffbcc2ccff4c566affe5e9f0ffe5e9f0ffe5e9f0ffa3be8cffbf616affe5e9f0ffe5e9f0ff3b4252ffa3be8cff4c566aff4c566affbf616aff4c566affa3be8cff2e3440ffd08770ff5e81acff4c566aff81a1c1ff8fbcbbff81a1c1ff8fbcbbff8fbcbbff5e81acffebcb8bff2e3440ff434c5eff4c566aff88c0d0ff81a1c1ffb48eadff81a1c1ff2e3440ffa3be8cff8fbcbbff8fbcbbffeceff4ff8a8f98ffeceff4ffeceff4ffeceff4ffeceff4ff2e3440ff8a8f98ff2e3440ff2e3440ff2e3440ff5e81acff3b4252ff3b4252ff62666bff2e3440ff3b4252ff3b4252ff2e3440ff8a8f98ffbf616affbf616aff5e81acff5e81acffa3be8cffa3be8cffd08770ffd08770ff2e3440ff8a8f98ff5e81acff5e81acff5e81acff5e81acff3b4252ff", + "decrease": "beaeaeffbeaeaeffbeaeaeffbeaeaeffbeaeaeffbeaeaeff0000000000000000a9b7c8ffcad0daff0000000000000000000000000000000000000000000000000000000000000000e7ebf1ffe7ebf1ffe7ebf1ffe7ebf1ffe7ebf1ffe7ebf1ffe7ebf1ffe7ebf1ffe7ebf1ffe7ebf1ffe7ebf1ffcad0daffbcc2ccffa0a6b1ff4c566affe5e9f0ffe5e9f0ffe5e9f0ffb0b4acffbeaeaeffe5e9f0ffe5e9f0ff2e3440ffb0b4acff4c566aff4c566affbeaeaeff4c566affb0b4acff2e3440ffd08770ffadb3baff4c566aff81a1c1ffadb4b4ff81a1c1ffadb4b4ffadb4b4ffadb3baffebcb8bff2e3440ff434c5eff4c566aff88c0d0ff81a1c1ffb48eadff81a1c1ff2e3440ffb0b4acffadb4b4ffadb4b4ffe7ebf1ff3b4252ffe7ebf1ffe7ebf1ffe7ebf1ffe7ebf1ff2e3440ff3b4252ff2e3440ff2e3440ff2e3440ffadb3baff2e3440ff2e3440ff444a52ff2e3440ff2e3440ff2e3440ff2e3440ff3b4252ffbeaeaeffbeaeaeffadb3baffadb3baffb0b4acffb0b4acffd08770ffd08770ff2e3440ff3b4252ffadb3baffadb3baffadb3baffadb3baff2e3440ff", + "increase": "e2d1d2ffe2d1d2ffe2d1d2ffe2d1d2ffe2d1d2ffe2d1d2ff0000000000000000e7e9ebffeceff4ff0000000000000000000000000000000000000000000000000000000000000000eceff4ffeceff4ffeceff4ffeceff4ffeceff4ffeceff4ffeceff4ffeceff4ffeceff4ffeceff4ffeceff4ffeceff4ffe7ebf1ffdfe3e9ff4c566affe5e9f0ffe5e9f0ffe5e9f0ffd1d6ceffe2d1d2ffe5e9f0ffe5e9f0ffa0a6b1ffd1d6ceff4c566aff4c566affe2d1d2ff4c566affd1d6ceff8a8f98ffd08770ffcfd5ddff4c566aff81a1c1ffcfd6d6ff81a1c1ffcfd6d6ffcfd6d6ffcfd5ddffebcb8bff8a8f98ff434c5eff4c566aff88c0d0ff81a1c1ffb48eadff81a1c1ff8a8f98ffd1d6ceffcfd6d6ffcfd6d6ffeceff4ffbcc2ccffeceff4ffeceff4ffeceff4ffeceff4ff8a8f98ffbcc2ccff8a8f98ff8a8f98ff8a8f98ffcfd5ddffa0a6b1ffa0a6b1ff5e81acff8a8f98ffa0a6b1ffa0a6b1ff8a8f98ffbcc2ccffe2d1d2ffe2d1d2ffcfd5ddffcfd5ddffd1d6ceffd1d6ceffd08770ffd08770ff8a8f98ffbcc2ccffcfd5ddffcfd5ddffcfd5ddffcfd5ddffa0a6b1ff" + }, + "nord/dark": { + "modes": ["light","dark"], + "hues": ["gray","red","green","cyan","blue","accent","interactive","neutral"], + "hue": "eceff4ffb2b6beff8b95a7ff707a8dff474e5eff3a4250ff333a47ff323845ff2e3440ffebe0e1ffc0a8a8ffa38d8effbf616aff9e6367ff504855ff443e4aff3d3842ff38333cffe1e4dfffabb1a5ff90968bffa3be8cff819273ff3e4d50ff364447ff313d3fff2c383affdfe4e6ffa5b1b5ff8b9699ff88c0d0ff71929cff434c54ff3a424aff343b42ff2f363dffe0e4e7ffa8b0b7ff8e949bff81a1c1ff708498ff454b55ff3c424aff353b43ff30363dffdfe4e6ffa5b1b5ff8b9699ff88c0d0ff71929cff434c54ff3a424aff343b42ff2f363dffdfe4e6ffa5b1b5ff8b9699ff88c0d0ff71929cff434c54ff3a424aff343b42ff2f363dffeceff4ffb2b6beff8b95a7ff707a8dff474e5eff3a4250ff333a47ff323845ff2e3440ff", + "categorical": "e0e4e7ffa8b0b7ff8e949bff81a1c1ff708498ff454b55ff3c424aff353b43ff30363dffdfe4e6ffa5b1b5ff8b9699ff88c0d0ff71929cff434c54ff3a424aff343b42ff2f363dffe1e4dfffabb1a5ff90968bffa3be8cff819273ff3e4d50ff364447ff313d3fff2c383affebe0e1ffc0a8a8ffa38d8effbf616aff9e6367ff504855ff443e4aff3d3842ff38333cff", + "base": "bf616affbf616affbf616affbf616affbf616affbf616aff0000000000000000434c54ff333a47ff00000000000000000000000000000000000000000000000000000000000000002e3440ff2e3440ff2e3440ff2e3440ff2e3440ff2e3440ff2e3440ff2e3440ff2e3440ff2e3440ff2e3440ff333a47ff3a4250ff474e5eff434c5eff3b4252ff3b4252ff3b4252ffa3be8cffbf616aff3b4252ff3b4252ffa9aeb6ffa3be8cff8b95a7ff8b95a7ffbf616aff8b95a7ffa3be8cffd8dee9ffd08770ff88c0d0ff8b95a7ff81a1c1ff8fbcbbff81a1c1ff8fbcbbff8fbcbbff88c0d0ffebcb8bffd8dee9ff4c566aff8b95a7ff88c0d0ff81a1c1ffb48eadff81a1c1ffd8dee9ffa3be8cff8fbcbbff8fbcbbff2e3440ff8b95a7ff2e3440ff2e3440ff2e3440ff2e3440ffeceff4ff8b95a7ffeceff4ffeceff4ffeceff4ff88c0d0ffb2b6beffb2b6beffa5b1b5ffeceff4ffb2b6beffb2b6beffeceff4ff8b95a7ffbf616affbf616aff88c0d0ff88c0d0ffa3be8cffa3be8cffd08770ffd08770ffeceff4ff8b95a7ff88c0d0ff88c0d0ff88c0d0ff88c0d0ffb2b6beff", + "dialog": "bf616affbf616affbf616affbf616affbf616affbf616aff0000000000000000434c54ff474e5eff0000000000000000000000000000000000000000474e5eff0000000000000000333a47ff333a47ff333a47ff333a47ff333a47ff333a47ff333a47ff333a47ff333a47ff333a47ff333a47ff333a47ff3a4250ff474e5eff434c5eff3b4252ff3b4252ff3b4252ffa3be8cffbf616aff3b4252ff3b4252ffa9aeb6ffa3be8cff8b95a7ff8b95a7ffbf616aff8b95a7ffa3be8cffd8dee9ffd08770ff88c0d0ff8b95a7ff81a1c1ff8fbcbbff81a1c1ff8fbcbbff8fbcbbff88c0d0ffebcb8bffd8dee9ff4c566aff8b95a7ff88c0d0ff81a1c1ffb48eadff81a1c1ffd8dee9ffa3be8cff8fbcbbff8fbcbbff2e3440ff8b95a7ff2e3440ff2e3440ff2e3440ff2e3440ffeceff4ff8b95a7ffeceff4ffeceff4ffeceff4ff88c0d0ffb2b6beffb2b6beffa5b1b5ffeceff4ffb2b6beffb2b6beffeceff4ff8b95a7ffbf616affbf616aff88c0d0ff88c0d0ffa3be8cffa3be8cffd08770ffd08770ffeceff4ff8b95a7ff88c0d0ff88c0d0ff88c0d0ff88c0d0ffb2b6beff", + "footer": "bf616affbf616affbf616affbf616affbf616affbf616aff0000000000000000434c54ff474e5eff0000000000000000000000000000000000000000474e5eff0000000000000000333a47ff333a47ff333a47ff333a47ff333a47ff333a47ff333a47ff333a47ff333a47ff333a47ff333a47ff333a47ff3a4250ff474e5eff434c5eff3b4252ff3b4252ff3b4252ffa3be8cffbf616aff3b4252ff3b4252ffa9aeb6ffa3be8cff8b95a7ff8b95a7ffbf616aff8b95a7ffa3be8cffd8dee9ffd08770ff88c0d0ff8b95a7ff81a1c1ff8fbcbbff81a1c1ff8fbcbbff8fbcbbff88c0d0ffebcb8bffd8dee9ff4c566aff8b95a7ff88c0d0ff81a1c1ffb48eadff81a1c1ffd8dee9ffa3be8cff8fbcbbff8fbcbbff2e3440ff8b95a7ff2e3440ff2e3440ff2e3440ff2e3440ffeceff4ff8b95a7ffeceff4ffeceff4ffeceff4ff88c0d0ffb2b6beffb2b6beffa5b1b5ffeceff4ffb2b6beffb2b6beffeceff4ff8b95a7ffbf616affbf616aff88c0d0ff88c0d0ffa3be8cffa3be8cffd08770ffd08770ffeceff4ff8b95a7ff88c0d0ff88c0d0ff88c0d0ff88c0d0ffb2b6beff", + "decrease": "a38d8effa38d8effa38d8effa38d8effa38d8effa38d8eff000000000000000071929cff3a4250ff0000000000000000000000000000000000000000000000000000000000000000323845ff323845ff323845ff323845ff323845ff323845ff323845ff323845ff323845ff323845ff323845ff3a4250ff474e5eff707a8dff434c5eff3b4252ff3b4252ff3b4252ff90968bffa38d8eff3b4252ff3b4252ffa9aeb6ff90968bffb2b6beffb2b6beffa38d8effb2b6beff90968bffd8dee9ffd08770ff8b9699ffb2b6beff8e949bff8fbcbbff8e949bff8fbcbbff8fbcbbff8b9699ffebcb8bffd8dee9ff4c566affb2b6beff8b9699ff8e949bffb48eadff8e949bffd8dee9ff90968bff8fbcbbff8fbcbbff323845ffb2b6beff323845ff323845ff323845ff323845ffeceff4ffb2b6beffeceff4ffeceff4ffeceff4ff8b9699ffeceff4ffeceff4ffdfe4e6ffeceff4ffeceff4ffeceff4ffeceff4ffb2b6beffa38d8effa38d8eff8b9699ff8b9699ff90968bff90968bffd08770ffd08770ffeceff4ffb2b6beff8b9699ff8b9699ff8b9699ff8b9699ffeceff4ff", + "increase": "504855ff504855ff504855ff504855ff504855ff504855ff0000000000000000343b42ff2e3440ff00000000000000000000000000000000000000000000000000000000000000002e3440ff2e3440ff2e3440ff2e3440ff2e3440ff2e3440ff2e3440ff2e3440ff2e3440ff2e3440ff2e3440ff2e3440ff323845ff333a47ff434c5eff3b4252ff3b4252ff3b4252ff3e4d50ff504855ff3b4252ff3b4252ffa9aeb6ff3e4d50ff474e5eff474e5eff504855ff474e5eff3e4d50ffd8dee9ffd08770ff434c54ff474e5eff454b55ff8fbcbbff454b55ff8fbcbbff8fbcbbff434c54ffebcb8bffd8dee9ff4c566aff474e5eff434c54ff454b55ffb48eadff454b55ffd8dee9ff3e4d50ff8fbcbbff8fbcbbff2e3440ff474e5eff2e3440ff2e3440ff2e3440ff2e3440ff8b95a7ff474e5eff8b95a7ff8b95a7ff8b95a7ff434c54ff707a8dff707a8dff88c0d0ff8b95a7ff707a8dff707a8dff8b95a7ff474e5eff504855ff504855ff434c54ff434c54ff3e4d50ff3e4d50ffd08770ffd08770ff8b95a7ff474e5eff434c54ff434c54ff434c54ff434c54ff707a8dff" + }, + "one-dark/light": { + "modes": ["light","dark"], + "hues": ["gray","red","orange","yellow","green","cyan","blue","purple","accent","interactive","neutral"], + "hue": "383a42ff6f7177ffa0a1a7ffb0b0b1ffcbcbcaffdad9d8ffededeefff6f6f5fffafafaff624a46ffa59390ffd8c0bcffe45649ffeab1a9fff3d9d5fff8e9e6fffaf2f0fffaf7f6ff594f41ff9e968dffcec4b7ffc18401ffd7c09effe9decffff2ebe3fff6f3effff8f7f5ff574f43ff9d978effcdc5b9ff986801ffc8b599ffe7ded1fff1ece4fff6f3f0fff8f7f6ff485547ff929b91ffbecabdff50a14fffadcbabffd6e4d5ffe7efe7fff1f5f1fff6f8f6ff44535cff8f99a0ffbac8d2ff0184bcff9ec0d7ffd3e2ecffe5eef4fff0f4f8fff6f8f9ff465165ff9098a6ffbcc6dbff4078f2ffa5beedffd4e0f6ffe6edfafff0f4fbfff6f7faff5d495cffa1929fffd3bfd1ffa626a4ffd2a3ceffeed9ecfff5e8f4fff8f1f7fff9f6f9ff44535cff8f99a0ffbac8d2ff0184bcff9ec0d7ffd3e2ecffe5eef4fff0f4f8fff6f8f9ff465165ff9098a6ffbcc6dbff4078f2ffa5beedffd4e0f6ffe6edfafff0f4fbfff6f7faff383a42ff6f7177ffa0a1a7ffb0b0b1ffcbcbcaffdad9d8ffededeefff6f6f5fffafafaff", + "categorical": "5d495cffa1929fffd3bfd1ffa626a4ffd2a3ceffeed9ecfff5e8f4fff8f1f7fff9f6f9ff44535cff8f99a0ffbac8d2ff0184bcff9ec0d7ffd3e2ecffe5eef4fff0f4f8fff6f8f9ff485547ff929b91ffbecabdff50a14fffadcbabffd6e4d5ffe7efe7fff1f5f1fff6f8f6ff594f41ff9e968dffcec4b7ffc18401ffd7c09effe9decffff2ebe3fff6f3effff8f7f5ff465165ff9098a6ffbcc6dbff4078f2ffa5beedffd4e0f6ffe6edfafff0f4fbfff6f7faff624a46ffa59390ffd8c0bcffe45649ffeab1a9fff3d9d5fff8e9e6fffaf2f0fffaf7f6ff574f43ff9d978effcdc5b9ff986801ffc8b599ffe7ded1fff1ece4fff6f3f0fff8f7f6ff", + "base": "e45649ffe45649ffe45649ffe45649ffe45649ffe45649ff0000000000000000d4e0f6ffededeeff0000000000000000000000000000000000000000000000000000000000000000fafafafffafafafffafafafffafafafffafafafffafafafffafafafffafafafffafafafffafafafffafafaffededeeffdad9d8ffcbcbcaffd1d1d2ffeafbe9fff0f0f1fffce9e8ff489447ffd65145ffe1f3dffff5e2e1ff666666ff50a14fffa0a1a7ff0184bcffe45649ffa0a1a7ff50a14fff383a42ffc18401ffa626a4ffa0a1a7ff4078f2ff0184bcff4078f2ff0184bcff0184bcff4078f2ff986801ff383a42ff4078f2ffa0a1a7ff4078f2ffa626a4ff986801ff0184bcff383a42ff50a14fffc18401ffe45649fffafafaffa0a1a7fffafafafffafafafffafafafffafafaff383a42ffa0a1a7ff383a42ff383a42ff383a42ff4078f2ff6f7177ff6f7177ff9098a6ff383a42ff6f7177ff6f7177ff383a42ffa0a1a7ffe45649ffe45649ff986801ff986801ff50a14fff50a14fffc18401ffc18401ff383a42ffa0a1a7ff4078f2ff4078f2ff4078f2ff4078f2ff6f7177ff", + "dialog": "e45649ffe45649ffe45649ffe45649ffe45649ffe45649ff0000000000000000d4e0f6ffdad9d8ff0000000000000000000000000000000000000000dad9d8ff0000000000000000f6f6f5fff6f6f5fff6f6f5fff6f6f5fff6f6f5fff6f6f5fff6f6f5fff6f6f5fff6f6f5fff6f6f5fff6f6f5ffededeeffededeeffcbcbcaffd1d1d2ffeafbe9fff0f0f1fffce9e8ff489447ffd65145ffe1f3dffff5e2e1ff666666ff50a14fffa0a1a7ff0184bcffe45649ffa0a1a7ff50a14fff383a42ffc18401ffa626a4ffa0a1a7ff4078f2ff0184bcff4078f2ff0184bcff0184bcff4078f2ff986801ff383a42ff4078f2ffa0a1a7ff4078f2ffa626a4ff986801ff0184bcff383a42ff50a14fffc18401ffe45649fffafafaffa0a1a7fffafafafffafafafffafafafffafafaff383a42ffa0a1a7ff383a42ff383a42ff383a42ff4078f2ff6f7177ff6f7177ff9098a6ff383a42ff6f7177ff6f7177ff383a42ffa0a1a7ffe45649ffe45649ff986801ff986801ff50a14fff50a14fffc18401ffc18401ff383a42ffa0a1a7ff4078f2ff4078f2ff4078f2ff4078f2ff6f7177ff", + "footer": "e45649ffe45649ffe45649ffe45649ffe45649ffe45649ff0000000000000000d4e0f6ffdad9d8ff0000000000000000000000000000000000000000dad9d8ff0000000000000000f6f6f5fff6f6f5fff6f6f5fff6f6f5fff6f6f5fff6f6f5fff6f6f5fff6f6f5fff6f6f5fff6f6f5fff6f6f5ffededeeffededeeffcbcbcaffd1d1d2ffeafbe9fff0f0f1fffce9e8ff489447ffd65145ffe1f3dffff5e2e1ff666666ff50a14fffa0a1a7ff0184bcffe45649ffa0a1a7ff50a14fff383a42ffc18401ffa626a4ffa0a1a7ff4078f2ff0184bcff4078f2ff0184bcff0184bcff4078f2ff986801ff383a42ff4078f2ffa0a1a7ff4078f2ffa626a4ff986801ff0184bcff383a42ff50a14fffc18401ffe45649fffafafaffa0a1a7fffafafafffafafafffafafafffafafaff383a42ffa0a1a7ff383a42ff383a42ff383a42ff4078f2ff6f7177ff6f7177ff9098a6ff383a42ff6f7177ff6f7177ff383a42ffa0a1a7ffe45649ffe45649ff986801ff986801ff50a14fff50a14fffc18401ffc18401ff383a42ffa0a1a7ff4078f2ff4078f2ff4078f2ff4078f2ff6f7177ff", + "decrease": "d8c0bcffd8c0bcffd8c0bcffd8c0bcffd8c0bcffd8c0bcff0000000000000000a5beedffdad9d8ff0000000000000000000000000000000000000000000000000000000000000000f6f6f5fff6f6f5fff6f6f5fff6f6f5fff6f6f5fff6f6f5fff6f6f5fff6f6f5fff6f6f5fff6f6f5fff6f6f5ffdad9d8ffcbcbcaffb0b0b1ffd1d1d2ffeafbe9fff0f0f1fffce9e8ff489447ffd65145ffe1f3dffff5e2e1ff666666ffbecabdff6f7177ffbac8d2ffd8c0bcff6f7177ffbecabdff383a42ffcec4b7ffd3bfd1ff6f7177ffbcc6dbffbac8d2ffbcc6dbffbac8d2ffbac8d2ffbcc6dbffcdc5b9ff383a42ffbcc6dbff6f7177ffbcc6dbffd3bfd1ffcdc5b9ffbac8d2ff383a42ffbecabdffcec4b7ffd8c0bcfff6f6f5ff6f7177fff6f6f5fff6f6f5fff6f6f5fff6f6f5ff383a42ff6f7177ff383a42ff383a42ff383a42ffbcc6dbff383a42ff383a42ff465165ff383a42ff383a42ff383a42ff383a42ff6f7177ffd8c0bcffd8c0bcffcdc5b9ffcdc5b9ffbecabdffbecabdffcec4b7ffcec4b7ff383a42ff6f7177ffbcc6dbffbcc6dbffbcc6dbffbcc6dbff383a42ff", + "increase": "f3d9d5fff3d9d5fff3d9d5fff3d9d5fff3d9d5fff3d9d5ff0000000000000000f0f4fbfffafafaff0000000000000000000000000000000000000000000000000000000000000000fafafafffafafafffafafafffafafafffafafafffafafafffafafafffafafafffafafafffafafafffafafafffafafafff6f6f5ffededeeffd1d1d2ffeafbe9fff0f0f1fffce9e8ff489447ffd65145ffe1f3dffff5e2e1ff666666ffd6e4d5ffcbcbcaffd3e2ecfff3d9d5ffcbcbcaffd6e4d5ffa0a1a7ffe9decfffeed9ecffcbcbcaffd4e0f6ffd3e2ecffd4e0f6ffd3e2ecffd3e2ecffd4e0f6ffe7ded1ffa0a1a7ffd4e0f6ffcbcbcaffd4e0f6ffeed9ecffe7ded1ffd3e2ecffa0a1a7ffd6e4d5ffe9decffff3d9d5fffafafaffcbcbcafffafafafffafafafffafafafffafafaffa0a1a7ffcbcbcaffa0a1a7ffa0a1a7ffa0a1a7ffd4e0f6ffb0b0b1ffb0b0b1ff4078f2ffa0a1a7ffb0b0b1ffb0b0b1ffa0a1a7ffcbcbcafff3d9d5fff3d9d5ffe7ded1ffe7ded1ffd6e4d5ffd6e4d5ffe9decfffe9decfffa0a1a7ffcbcbcaffd4e0f6ffd4e0f6ffd4e0f6ffd4e0f6ffb0b0b1ff" + }, + "one-dark/dark": { + "modes": ["light","dark"], + "hues": ["gray","red","orange","yellow","green","cyan","blue","purple","accent","interactive","neutral"], + "hue": "abb2bfff838995ff5c6370ff6a717cff40454fff353a44ff2e3239ff2c3037ff282c34ffb0a3a3ff967a7bff735b5bffe06c75ffa96165ff48414cff3d3741ff343038ff2f2b32ffaba6a1ff8c8075ff6b6056ffd19a66ff9b795aff4a4147ff3f373dff363036ff312b30ffaaa6a0ff898173ff686154ffe5c07bffa18a62ff4b4046ff3f373cff373035ff312b2fffa4a8a1ff7c8676ff5d6557ff98c379ff758f63ff384648ff303b3eff2b3436ff262f31ffa1a8aaff748689ff556568ff56b6c2ff548a91ff3b454cff333a40ff2d3338ff282e33ffa1a8aeff748593ff566470ff61afefff5886adff3d444eff343942ff2e3339ff292d34ffaba4aeff8d7b92ff6b5c6fffc678ddff9667a4ff444250ff393843ff31313aff2c2c34ffa1a8aaff748689ff556568ff56b6c2ff548a91ff3b454cff333a40ff2d3338ff282e33ffa1a8aeff748593ff566470ff61afefff5886adff3d444eff343942ff2e3339ff292d34ffabb2bfff838995ff5c6370ff6a717cff40454fff353a44ff2e3239ff2c3037ff282c34ff", + "categorical": "aba4aeff8d7b92ff6b5c6fffc678ddff9667a4ff444250ff393843ff31313aff2c2c34ffa1a8aaff748689ff556568ff56b6c2ff548a91ff3b454cff333a40ff2d3338ff282e33ffa4a8a1ff7c8676ff5d6557ff98c379ff758f63ff384648ff303b3eff2b3436ff262f31ffaaa6a0ff898173ff686154ffe5c07bffa18a62ff4b4046ff3f373cff373035ff312b2fffa1a8aeff748593ff566470ff61afefff5886adff3d444eff343942ff2e3339ff292d34ffb0a3a3ff967a7bff735b5bffe06c75ffa96165ff48414cff3d3741ff343038ff2f2b32ffaba6a1ff8c8075ff6b6056ffd19a66ff9b795aff4a4147ff3f373dff363036ff312b30ff", + "base": "e06c75ffe06c75ffe06c75ffe06c75ffe06c75ffe06c75ff00000000000000003d444eff2e3239ff0000000000000000000000000000000000000000000000000000000000000000282c34ff282c34ff282c34ff282c34ff282c34ff282c34ff282c34ff282c34ff282c34ff282c34ff282c34ff2e3239ff353a44ff40454fff393f4aff2c382bff21252bff3a2d2fffaad482ffe8828bff283427ff36292bff9398a2ff98c379ff5c6370ff56b6c2ffe06c75ff5c6370ff98c379ffabb2bfffe5c07bffc678ddff5c6370ff61afefff56b6c2ff61afefff56b6c2ff56b6c2ff61afefffd19a66ffabb2bfff61afefff5c6370ff61afefffc678ddffd19a66ff56b6c2ffabb2bfff98c379ffe5c07bffe06c75ff282c34ff5c6370ff282c34ff282c34ff282c34ff282c34ffabb2bfff5c6370ffabb2bfffabb2bfffabb2bfff61afefff838995ff838995ff748593ffabb2bfff838995ff838995ffabb2bfff5c6370ffe06c75ffe06c75ffd19a66ffd19a66ff98c379ff98c379ffe5c07bffe5c07bffabb2bfff5c6370ff61afefff61afefff61afefff61afefff838995ff", + "dialog": "e06c75ffe06c75ffe06c75ffe06c75ffe06c75ffe06c75ff00000000000000003d444eff40454fff000000000000000000000000000000000000000040454fff00000000000000002e3239ff2e3239ff2e3239ff2e3239ff2e3239ff2e3239ff2e3239ff2e3239ff2e3239ff2e3239ff2e3239ff2e3239ff353a44ff40454fff393f4aff2c382bff21252bff3a2d2fffaad482ffe8828bff283427ff36292bff9398a2ff98c379ff5c6370ff56b6c2ffe06c75ff5c6370ff98c379ffabb2bfffe5c07bffc678ddff5c6370ff61afefff56b6c2ff61afefff56b6c2ff56b6c2ff61afefffd19a66ffabb2bfff61afefff5c6370ff61afefffc678ddffd19a66ff56b6c2ffabb2bfff98c379ffe5c07bffe06c75ff282c34ff5c6370ff282c34ff282c34ff282c34ff282c34ffabb2bfff5c6370ffabb2bfffabb2bfffabb2bfff61afefff838995ff838995ff748593ffabb2bfff838995ff838995ffabb2bfff5c6370ffe06c75ffe06c75ffd19a66ffd19a66ff98c379ff98c379ffe5c07bffe5c07bffabb2bfff5c6370ff61afefff61afefff61afefff61afefff838995ff", + "footer": "e06c75ffe06c75ffe06c75ffe06c75ffe06c75ffe06c75ff00000000000000003d444eff40454fff000000000000000000000000000000000000000040454fff00000000000000002e3239ff2e3239ff2e3239ff2e3239ff2e3239ff2e3239ff2e3239ff2e3239ff2e3239ff2e3239ff2e3239ff2e3239ff353a44ff40454fff393f4aff2c382bff21252bff3a2d2fffaad482ffe8828bff283427ff36292bff9398a2ff98c379ff5c6370ff56b6c2ffe06c75ff5c6370ff98c379ffabb2bfffe5c07bffc678ddff5c6370ff61afefff56b6c2ff61afefff56b6c2ff56b6c2ff61afefffd19a66ffabb2bfff61afefff5c6370ff61afefffc678ddffd19a66ff56b6c2ffabb2bfff98c379ffe5c07bffe06c75ff282c34ff5c6370ff282c34ff282c34ff282c34ff282c34ffabb2bfff5c6370ffabb2bfffabb2bfffabb2bfff61afefff838995ff838995ff748593ffabb2bfff838995ff838995ffabb2bfff5c6370ffe06c75ffe06c75ffd19a66ffd19a66ff98c379ff98c379ffe5c07bffe5c07bffabb2bfff5c6370ff61afefff61afefff61afefff61afefff838995ff", + "decrease": "735b5bff735b5bff735b5bff735b5bff735b5bff735b5bff00000000000000005886adff353a44ff00000000000000000000000000000000000000000000000000000000000000002c3037ff2c3037ff2c3037ff2c3037ff2c3037ff2c3037ff2c3037ff2c3037ff2c3037ff2c3037ff2c3037ff353a44ff40454fff6a717cff393f4aff2c382bff21252bff3a2d2fffaad482ffe8828bff283427ff36292bff9398a2ff5d6557ff838995ff556568ff735b5bff838995ff5d6557ffabb2bfff686154ff6b5c6fff838995ff566470ff556568ff566470ff556568ff556568ff566470ff6b6056ffabb2bfff566470ff838995ff566470ff6b5c6fff6b6056ff556568ffabb2bfff5d6557ff686154ff735b5bff2c3037ff838995ff2c3037ff2c3037ff2c3037ff2c3037ffabb2bfff838995ffabb2bfffabb2bfffabb2bfff566470ffabb2bfffabb2bfffa1a8aeffabb2bfffabb2bfffabb2bfffabb2bfff838995ff735b5bff735b5bff6b6056ff6b6056ff5d6557ff5d6557ff686154ff686154ffabb2bfff838995ff566470ff566470ff566470ff566470ffabb2bfff", + "increase": "48414cff48414cff48414cff48414cff48414cff48414cff00000000000000002e3339ff282c34ff0000000000000000000000000000000000000000000000000000000000000000282c34ff282c34ff282c34ff282c34ff282c34ff282c34ff282c34ff282c34ff282c34ff282c34ff282c34ff282c34ff2c3037ff2e3239ff393f4aff2c382bff21252bff3a2d2fffaad482ffe8828bff283427ff36292bff9398a2ff384648ff40454fff3b454cff48414cff40454fff384648ff5c6370ff4b4046ff444250ff40454fff3d444eff3b454cff3d444eff3b454cff3b454cff3d444eff4a4147ff5c6370ff3d444eff40454fff3d444eff444250ff4a4147ff3b454cff5c6370ff384648ff4b4046ff48414cff282c34ff40454fff282c34ff282c34ff282c34ff282c34ff5c6370ff40454fff5c6370ff5c6370ff5c6370ff3d444eff6a717cff6a717cff61afefff5c6370ff6a717cff6a717cff5c6370ff40454fff48414cff48414cff4a4147ff4a4147ff384648ff384648ff4b4046ff4b4046ff5c6370ff40454fff3d444eff3d444eff3d444eff3d444eff6a717cff" + }, + "osaka-jade/light": { + "modes": ["light","dark"], + "hues": ["gray","red","yellow","green","accent","interactive","neutral"], + "hue": "111c18ff53685bff7a8476ffadac91ffc8c7abffd6d5b9ffeae9cefff1f1d5fff6f5ddff3d2723ff958380ffb59d99ffc7392dffdca49bffeed4cdfff3e2dffff3ebe9fff3f0efff302d1eff8a887dffa7a495ffb5a020ffccc59fffdcdac8ffe8e6dcffeeede8fff1f1efff21312dff808b87ff98a8a3ff1faa90ffa2cabeffccddd8ffdee8e5ffe9eeedffeff1f0ff21312dff808b87ff98a8a3ff1faa90ffa2cabeffccddd8ffdee8e5ffe9eeedffeff1f0ff21312dff808b87ff98a8a3ff1faa90ffa2cabeffccddd8ffdee8e5ffe9eeedffeff1f0ff111c18ff53685bff7a8476ffadac91ffc8c7abffd6d5b9ffeae9cefff1f1d5fff6f5ddff", + "categorical": "3d2723ff958380ffb59d99ffc7392dffdca49bffeed4cdfff3e2dffff3ebe9fff3f0efff21312dff808b87ff98a8a3ff1faa90ffa2cabeffccddd8ffdee8e5ffe9eeedffeff1f0ff302d1eff8a887dffa7a495ffb5a020ffccc59fffdcdac8ffe8e6dcffeeede8fff1f1efff", + "base": "c7392dffc7392dffc7392dffc7392dffc7392dffc7392dff0000000000000000ccddd8ffeae9ceff0000000000000000000000000000000000000000000000000000000000000000f6f5ddfff6f5ddfff6f5ddfff6f5ddfff6f5ddfff6f5ddfff6f5ddfff6f5ddfff6f5ddfff6f5ddfff6f5ddffeae9ceffd6d5b9ffc8c7abffa8a78cffe0eee5ffe8e7ccffeee0e0ff3d7a52ffc7392dffd5e5daffe5d5d5ff5f5e4fff3d7a52ff53685bff1faa90ffc7392dff53685bff3d7a52ff111c18ffa8527aff1faa90ff53685bff1faa90ff3d7a52ff1faa90ff3d7a52ff1faa90ff1faa90ff111c18ff111c18ff1faa90ff53685bff3d7560ff1faa90ffa8527affb5a020ff111c18ff3d7a52ff3d7a52ff111c18fff6f5ddff7a8476fff6f5ddfff6f5ddfff6f5ddfff6f5ddff111c18ff7a8476ff111c18ff111c18ff111c18ff1faa90ff53685bff53685bff808b87ff111c18ff53685bff53685bff111c18ff7a8476ffc7392dffc7392dff1faa90ff1faa90ff3d7a52ff3d7a52ffb5a020ffb5a020ff111c18ff7a8476ff1faa90ff1faa90ff1faa90ff1faa90ff53685bff", + "dialog": "c7392dffc7392dffc7392dffc7392dffc7392dffc7392dff0000000000000000ccddd8ffd6d5b9ff0000000000000000000000000000000000000000d6d5b9ff0000000000000000f1f1d5fff1f1d5fff1f1d5fff1f1d5fff1f1d5fff1f1d5fff1f1d5fff1f1d5fff1f1d5fff1f1d5fff1f1d5ffeae9ceffeae9ceffc8c7abffa8a78cffe0eee5ffe8e7ccffeee0e0ff3d7a52ffc7392dffd5e5daffe5d5d5ff5f5e4fff3d7a52ff53685bff1faa90ffc7392dff53685bff3d7a52ff111c18ffa8527aff1faa90ff53685bff1faa90ff3d7a52ff1faa90ff3d7a52ff1faa90ff1faa90ff111c18ff111c18ff1faa90ff53685bff3d7560ff1faa90ffa8527affb5a020ff111c18ff3d7a52ff3d7a52ff111c18fff6f5ddff7a8476fff6f5ddfff6f5ddfff6f5ddfff6f5ddff111c18ff7a8476ff111c18ff111c18ff111c18ff1faa90ff53685bff53685bff808b87ff111c18ff53685bff53685bff111c18ff7a8476ffc7392dffc7392dff1faa90ff1faa90ff3d7a52ff3d7a52ffb5a020ffb5a020ff111c18ff7a8476ff1faa90ff1faa90ff1faa90ff1faa90ff53685bff", + "footer": "c7392dffc7392dffc7392dffc7392dffc7392dffc7392dff0000000000000000ccddd8ffd6d5b9ff0000000000000000000000000000000000000000d6d5b9ff0000000000000000f1f1d5fff1f1d5fff1f1d5fff1f1d5fff1f1d5fff1f1d5fff1f1d5fff1f1d5fff1f1d5fff1f1d5fff1f1d5ffeae9ceffeae9ceffc8c7abffa8a78cffe0eee5ffe8e7ccffeee0e0ff3d7a52ffc7392dffd5e5daffe5d5d5ff5f5e4fff3d7a52ff53685bff1faa90ffc7392dff53685bff3d7a52ff111c18ffa8527aff1faa90ff53685bff1faa90ff3d7a52ff1faa90ff3d7a52ff1faa90ff1faa90ff111c18ff111c18ff1faa90ff53685bff3d7560ff1faa90ffa8527affb5a020ff111c18ff3d7a52ff3d7a52ff111c18fff6f5ddff7a8476fff6f5ddfff6f5ddfff6f5ddfff6f5ddff111c18ff7a8476ff111c18ff111c18ff111c18ff1faa90ff53685bff53685bff808b87ff111c18ff53685bff53685bff111c18ff7a8476ffc7392dffc7392dff1faa90ff1faa90ff3d7a52ff3d7a52ffb5a020ffb5a020ff111c18ff7a8476ff1faa90ff1faa90ff1faa90ff1faa90ff53685bff", + "decrease": "b59d99ffb59d99ffb59d99ffb59d99ffb59d99ffb59d99ff0000000000000000a2cabeffd6d5b9ff0000000000000000000000000000000000000000000000000000000000000000f1f1d5fff1f1d5fff1f1d5fff1f1d5fff1f1d5fff1f1d5fff1f1d5fff1f1d5fff1f1d5fff1f1d5fff1f1d5ffd6d5b9ffc8c7abffadac91ffa8a78cffe0eee5ffe8e7ccffeee0e0ff3d7a52ffb59d99ffd5e5daffe5d5d5ff5f5e4fff3d7a52ff111c18ff98a8a3ffb59d99ff111c18ff3d7a52ff111c18ffa8527aff98a8a3ff111c18ff98a8a3ff3d7a52ff98a8a3ff3d7a52ff98a8a3ff98a8a3ff111c18ff111c18ff98a8a3ff111c18ff3d7560ff98a8a3ffa8527affa7a495ff111c18ff3d7a52ff3d7a52ff111c18fff1f1d5ff53685bfff1f1d5fff1f1d5fff1f1d5fff1f1d5ff111c18ff53685bff111c18ff111c18ff111c18ff98a8a3ff111c18ff111c18ff21312dff111c18ff111c18ff111c18ff111c18ff53685bffb59d99ffb59d99ff98a8a3ff98a8a3ff3d7a52ff3d7a52ffa7a495ffa7a495ff111c18ff53685bff98a8a3ff98a8a3ff98a8a3ff98a8a3ff111c18ff", + "increase": "eed4cdffeed4cdffeed4cdffeed4cdffeed4cdffeed4cdff0000000000000000e9eeedfff6f5ddff0000000000000000000000000000000000000000000000000000000000000000f6f5ddfff6f5ddfff6f5ddfff6f5ddfff6f5ddfff6f5ddfff6f5ddfff6f5ddfff6f5ddfff6f5ddfff6f5ddfff6f5ddfff1f1d5ffeae9ceffa8a78cffe0eee5ffe8e7ccffeee0e0ff3d7a52ffeed4cdffd5e5daffe5d5d5ff5f5e4fff3d7a52ffadac91ffccddd8ffeed4cdffadac91ff3d7a52ff7a8476ffa8527affccddd8ffadac91ffccddd8ff3d7a52ffccddd8ff3d7a52ffccddd8ffccddd8ff7a8476ff7a8476ffccddd8ffadac91ff3d7560ffccddd8ffa8527affdcdac8ff7a8476ff3d7a52ff3d7a52ff7a8476fff6f5ddffc8c7abfff6f5ddfff6f5ddfff6f5ddfff6f5ddff7a8476ffc8c7abff7a8476ff7a8476ff7a8476ffccddd8ffadac91ffadac91ff1faa90ff7a8476ffadac91ffadac91ff7a8476ffc8c7abffeed4cdffeed4cdffccddd8ffccddd8ff3d7a52ff3d7a52ffdcdac8ffdcdac8ff7a8476ffc8c7abffccddd8ffccddd8ffccddd8ffccddd8ffadac91ff" + }, + "osaka-jade/dark": { + "modes": ["light","dark"], + "hues": ["gray","red","yellow","green","accent","interactive","neutral"], + "hue": "c1c497ff849273ff53685bff4b6053ff2b3d34ff1d2e26ff18231fff15211cff111c18ffc2b0adffa27a74ff7a5752ffff5345ffae493eff3b3522ff2e2a1cff242117ff1c1b12ffb7b5aaff8b866cff67624bffe5c736ff938133ff31372aff262c22ff1e221bff171c15ffacb8b4ff718c85ff4f6761ff2dd5b7ff358c7aff283833ff202c29ff1a2320ff141d1affacb8b4ff718c85ff4f6761ff2dd5b7ff358c7aff283833ff202c29ff1a2320ff141d1affacb8b4ff718c85ff4f6761ff2dd5b7ff358c7aff283833ff202c29ff1a2320ff141d1affc1c497ff849273ff53685bff4b6053ff2b3d34ff1d2e26ff18231fff15211cff111c18ff", + "categorical": "c2b0adffa27a74ff7a5752ffff5345ffae493eff3b3522ff2e2a1cff242117ff1c1b12ffacb8b4ff718c85ff4f6761ff2dd5b7ff358c7aff283833ff202c29ff1a2320ff141d1affb7b5aaff8b866cff67624bffe5c736ff938133ff31372aff262c22ff1e221bff171c15ff", + "base": "ff5345ffff5345ffff5345ffff5345ffff5345ffff5345ff0000000000000000283833ff18231fff0000000000000000000000000000000000000000000000000000000000000000111c18ff111c18ff111c18ff111c18ff111c18ff111c18ff111c18ff111c18ff111c18ff111c18ff111c18ff18231fff1d2e26ff2b3d34ff3d4a44ff15241cff1a2520ff241515ff63b07affdb9f9cff121f18ff1f1212ff828b87ff549e6aff53685bff2dd5b7ffff5345ff53685bff63b07affc1c497ffd2689cff2dd5b7ff53685bff8cd3cbff549e6aff8cd3cbff549e6aff8cd3cbff2dd5b7ffc1c497ffc1c497ff2dd5b7ff53685bff509475ff2dd5b7ffd2689cff459451ffc1c497ff63b07aff549e6affc1c497ff111c18ff53685bff111c18ff111c18ff111c18ff111c18ffc1c497ff53685bffc1c497ffc1c497ffc1c497ff2dd5b7ff849273ff849273ff718c85ffc1c497ff849273ff849273ffc1c497ff53685bffff5345ffff5345ff2dd5b7ff2dd5b7ff549e6aff549e6affe5c736ffe5c736ffc1c497ff53685bff2dd5b7ff2dd5b7ff2dd5b7ff2dd5b7ff849273ff", + "dialog": "ff5345ffff5345ffff5345ffff5345ffff5345ffff5345ff0000000000000000283833ff2b3d34ff00000000000000000000000000000000000000002b3d34ff000000000000000018231fff18231fff18231fff18231fff18231fff18231fff18231fff18231fff18231fff18231fff18231fff18231fff1d2e26ff2b3d34ff3d4a44ff15241cff1a2520ff241515ff63b07affdb9f9cff121f18ff1f1212ff828b87ff549e6aff53685bff2dd5b7ffff5345ff53685bff63b07affc1c497ffd2689cff2dd5b7ff53685bff8cd3cbff549e6aff8cd3cbff549e6aff8cd3cbff2dd5b7ffc1c497ffc1c497ff2dd5b7ff53685bff509475ff2dd5b7ffd2689cff459451ffc1c497ff63b07aff549e6affc1c497ff111c18ff53685bff111c18ff111c18ff111c18ff111c18ffc1c497ff53685bffc1c497ffc1c497ffc1c497ff2dd5b7ff849273ff849273ff718c85ffc1c497ff849273ff849273ffc1c497ff53685bffff5345ffff5345ff2dd5b7ff2dd5b7ff549e6aff549e6affe5c736ffe5c736ffc1c497ff53685bff2dd5b7ff2dd5b7ff2dd5b7ff2dd5b7ff849273ff", + "footer": "ff5345ffff5345ffff5345ffff5345ffff5345ffff5345ff0000000000000000283833ff2b3d34ff00000000000000000000000000000000000000002b3d34ff000000000000000018231fff18231fff18231fff18231fff18231fff18231fff18231fff18231fff18231fff18231fff18231fff18231fff1d2e26ff2b3d34ff3d4a44ff15241cff1a2520ff241515ff63b07affdb9f9cff121f18ff1f1212ff828b87ff549e6aff53685bff2dd5b7ffff5345ff53685bff63b07affc1c497ffd2689cff2dd5b7ff53685bff8cd3cbff549e6aff8cd3cbff549e6aff8cd3cbff2dd5b7ffc1c497ffc1c497ff2dd5b7ff53685bff509475ff2dd5b7ffd2689cff459451ffc1c497ff63b07aff549e6affc1c497ff111c18ff53685bff111c18ff111c18ff111c18ff111c18ffc1c497ff53685bffc1c497ffc1c497ffc1c497ff2dd5b7ff849273ff849273ff718c85ffc1c497ff849273ff849273ffc1c497ff53685bffff5345ffff5345ff2dd5b7ff2dd5b7ff549e6aff549e6affe5c736ffe5c736ffc1c497ff53685bff2dd5b7ff2dd5b7ff2dd5b7ff2dd5b7ff849273ff", + "decrease": "7a5752ff7a5752ff7a5752ff7a5752ff7a5752ff7a5752ff0000000000000000358c7aff1d2e26ff000000000000000000000000000000000000000000000000000000000000000015211cff15211cff15211cff15211cff15211cff15211cff15211cff15211cff15211cff15211cff15211cff1d2e26ff2b3d34ff4b6053ff3d4a44ff15241cff1a2520ff241515ff63b07affdb9f9cff121f18ff1f1212ff828b87ff549e6aff849273ff4f6761ff7a5752ff849273ff63b07affc1c497ffd2689cff4f6761ff849273ff8cd3cbff549e6aff8cd3cbff549e6aff8cd3cbff4f6761ffc1c497ffc1c497ff4f6761ff849273ff509475ff4f6761ffd2689cff459451ffc1c497ff63b07aff549e6affc1c497ff15211cff849273ff15211cff15211cff15211cff15211cffc1c497ff849273ffc1c497ffc1c497ffc1c497ff4f6761ffc1c497ffc1c497ffacb8b4ffc1c497ffc1c497ffc1c497ffc1c497ff849273ff7a5752ff7a5752ff4f6761ff4f6761ff549e6aff549e6aff67624bff67624bffc1c497ff849273ff4f6761ff4f6761ff4f6761ff4f6761ffc1c497ff", + "increase": "3b3522ff3b3522ff3b3522ff3b3522ff3b3522ff3b3522ff00000000000000001a2320ff111c18ff0000000000000000000000000000000000000000000000000000000000000000111c18ff111c18ff111c18ff111c18ff111c18ff111c18ff111c18ff111c18ff111c18ff111c18ff111c18ff111c18ff15211cff18231fff3d4a44ff15241cff1a2520ff241515ff63b07affdb9f9cff121f18ff1f1212ff828b87ff549e6aff2b3d34ff283833ff3b3522ff2b3d34ff63b07aff53685bffd2689cff283833ff2b3d34ff8cd3cbff549e6aff8cd3cbff549e6aff8cd3cbff283833ff53685bff53685bff283833ff2b3d34ff509475ff283833ffd2689cff459451ff53685bff63b07aff549e6aff53685bff111c18ff2b3d34ff111c18ff111c18ff111c18ff111c18ff53685bff2b3d34ff53685bff53685bff53685bff283833ff4b6053ff4b6053ff2dd5b7ff53685bff4b6053ff4b6053ff53685bff2b3d34ff3b3522ff3b3522ff283833ff283833ff549e6aff549e6aff31372aff31372aff53685bff2b3d34ff283833ff283833ff283833ff283833ff4b6053ff" + }, + "orng/light": { + "modes": ["light","dark"], + "hues": ["gray","red","orange","cyan","blue","accent","interactive","neutral"], + "hue": "1a1a1aff585858ff8a8a8affb9b4afffd3cec9ffe2ddd8fff8f1ebfffffaf6ffffffffff3e2821ff8b7974ffc0a8a0ffec5b2bfff0b7a5fff9ded5fffeede9fffff7f4fffffcfbff3c2922ff897a75ffbea8a2ffc94d24ffe3b0a1fff6dfd7fffceeeafffef7f5fffffcfbff253032ff777f81ffa5b0b2ff318795ffa7c4c9ffdae7e9ffebf3f4fff6fafafffbfdfdff232f40ff767f8cffa2afc1ff0062d1ff9ab9e5ffd7e5faffeaf2fefff5f9fffffbfdffff3c2922ff897a75ffbea8a2ffc94d24ffe3b0a1fff6dfd7fffceeeafffef7f5fffffcfbff3e2821ff8b7974ffc0a8a0ffec5b2bfff0b7a5fff9ded5fffeede9fffff7f4fffffcfbff1a1a1aff585858ff8a8a8affb9b4afffd3cec9ffe2ddd8fff8f1ebfffffaf6ffffffffff", + "categorical": "3e2821ff8b7974ffc0a8a0ffec5b2bfff0b7a5fff9ded5fffeede9fffff7f4fffffcfbff3c2922ff897a75ffbea8a2ffc94d24ffe3b0a1fff6dfd7fffceeeafffef7f5fffffcfbff232f40ff767f8cffa2afc1ff0062d1ff9ab9e5ffd7e5faffeaf2fefff5f9fffffbfdffff253032ff777f81ffa5b0b2ff318795ffa7c4c9ffdae7e9ffebf3f4fff6fafafffbfdfdff", + "base": "d1383dffd1383dffd1383dffd1383dffd1383dffd1383dff0000000000000000f9ded5fff8f1ebff0000000000000000000000000000000000000000000000000000000000000000fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff8f1ebffe2ddd8ffd3cec9ffec5b2bffe0edfafffff7f1fff7d8dbff0062d1fff52a65ffd0e5f5ffe7c8cbff595755ff0062d1ff7086b5ff7086b5ffc53b53ffb0851fff0062d1ff1a1a1affb0851fffec5b2bff8a8a8affec5b2bff318795ffec5b2bff318795ff318795ffec5b2bffec5b2bff1a1a1affc94d24ff8a8a8affc94d24ffec5b2bffec5b2bff318795ff1a1a1aff0062d1ffb0851fffd1383dffffffffff8a8a8affffffffffffffffffffffffffffffffff1a1a1aff8a8a8aff1a1a1aff1a1a1aff1a1a1affec5b2bff585858ff585858ff8b7974ff1a1a1aff585858ff585858ff1a1a1aff8a8a8affd1383dffd1383dff318795ff318795ff0062d1ff0062d1ffec5b2bffec5b2bff1a1a1aff8a8a8affec5b2bffec5b2bffec5b2bffec5b2bff585858ff", + "dialog": "d1383dffd1383dffd1383dffd1383dffd1383dffd1383dff0000000000000000f9ded5ffe2ddd8ff0000000000000000000000000000000000000000e2ddd8ff0000000000000000fffaf6fffffaf6fffffaf6fffffaf6fffffaf6fffffaf6fffffaf6fffffaf6fffffaf6fffffaf6fffffaf6fff8f1ebfff8f1ebffd3cec9ffec5b2bffe0edfafffff7f1fff7d8dbff0062d1fff52a65ffd0e5f5ffe7c8cbff595755ff0062d1ff7086b5ff7086b5ffc53b53ffb0851fff0062d1ff1a1a1affb0851fffec5b2bff8a8a8affec5b2bff318795ffec5b2bff318795ff318795ffec5b2bffec5b2bff1a1a1affc94d24ff8a8a8affc94d24ffec5b2bffec5b2bff318795ff1a1a1aff0062d1ffb0851fffd1383dffffffffff8a8a8affffffffffffffffffffffffffffffffff1a1a1aff8a8a8aff1a1a1aff1a1a1aff1a1a1affec5b2bff585858ff585858ff8b7974ff1a1a1aff585858ff585858ff1a1a1aff8a8a8affd1383dffd1383dff318795ff318795ff0062d1ff0062d1ffec5b2bffec5b2bff1a1a1aff8a8a8affec5b2bffec5b2bffec5b2bffec5b2bff585858ff", + "footer": "d1383dffd1383dffd1383dffd1383dffd1383dffd1383dff0000000000000000f9ded5ffe2ddd8ff0000000000000000000000000000000000000000e2ddd8ff0000000000000000fffaf6fffffaf6fffffaf6fffffaf6fffffaf6fffffaf6fffffaf6fffffaf6fffffaf6fffffaf6fffffaf6fff8f1ebfff8f1ebffd3cec9ffec5b2bffe0edfafffff7f1fff7d8dbff0062d1fff52a65ffd0e5f5ffe7c8cbff595755ff0062d1ff7086b5ff7086b5ffc53b53ffb0851fff0062d1ff1a1a1affb0851fffec5b2bff8a8a8affec5b2bff318795ffec5b2bff318795ff318795ffec5b2bffec5b2bff1a1a1affc94d24ff8a8a8affc94d24ffec5b2bffec5b2bff318795ff1a1a1aff0062d1ffb0851fffd1383dffffffffff8a8a8affffffffffffffffffffffffffffffffff1a1a1aff8a8a8aff1a1a1aff1a1a1aff1a1a1affec5b2bff585858ff585858ff8b7974ff1a1a1aff585858ff585858ff1a1a1aff8a8a8affd1383dffd1383dff318795ff318795ff0062d1ff0062d1ffec5b2bffec5b2bff1a1a1aff8a8a8affec5b2bffec5b2bffec5b2bffec5b2bff585858ff", + "decrease": "d1383dffd1383dffd1383dffd1383dffd1383dffd1383dff0000000000000000f0b7a5ffe2ddd8ff0000000000000000000000000000000000000000000000000000000000000000fffaf6fffffaf6fffffaf6fffffaf6fffffaf6fffffaf6fffffaf6fffffaf6fffffaf6fffffaf6fffffaf6ffe2ddd8ffd3cec9ffb9b4afffc0a8a0ffe0edfafffff7f1fff7d8dbffa2afc1fff52a65ffd0e5f5ffe7c8cbff595755ffa2afc1ff7086b5ff7086b5ffc53b53ffb0851fffa2afc1ff1a1a1affb0851fffc0a8a0ff585858ffc0a8a0ffa5b0b2ffc0a8a0ffa5b0b2ffa5b0b2ffc0a8a0ffc0a8a0ff1a1a1affbea8a2ff585858ffbea8a2ffc0a8a0ffc0a8a0ffa5b0b2ff1a1a1affa2afc1ffb0851fffd1383dfffffaf6ff585858fffffaf6fffffaf6fffffaf6fffffaf6ff1a1a1aff585858ff1a1a1aff1a1a1aff1a1a1affc0a8a0ff1a1a1aff1a1a1aff3e2821ff1a1a1aff1a1a1aff1a1a1aff1a1a1aff585858ffd1383dffd1383dffa5b0b2ffa5b0b2ffa2afc1ffa2afc1ffc0a8a0ffc0a8a0ff1a1a1aff585858ffc0a8a0ffc0a8a0ffc0a8a0ffc0a8a0ff1a1a1aff", + "increase": "d1383dffd1383dffd1383dffd1383dffd1383dffd1383dff0000000000000000fff7f4ffffffffff0000000000000000000000000000000000000000000000000000000000000000fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffaf6fff8f1ebfff9ded5ffe0edfafffff7f1fff7d8dbffd7e5fafff52a65ffd0e5f5ffe7c8cbff595755ffd7e5faff7086b5ff7086b5ffc53b53ffb0851fffd7e5faff8a8a8affb0851ffff9ded5ffd3cec9fff9ded5ffdae7e9fff9ded5ffdae7e9ffdae7e9fff9ded5fff9ded5ff8a8a8afff6dfd7ffd3cec9fff6dfd7fff9ded5fff9ded5ffdae7e9ff8a8a8affd7e5faffb0851fffd1383dffffffffffd3cec9ffffffffffffffffffffffffffffffffff8a8a8affd3cec9ff8a8a8aff8a8a8aff8a8a8afff9ded5ffb9b4afffb9b4afffec5b2bff8a8a8affb9b4afffb9b4afff8a8a8affd3cec9ffd1383dffd1383dffdae7e9ffdae7e9ffd7e5faffd7e5fafff9ded5fff9ded5ff8a8a8affd3cec9fff9ded5fff9ded5fff9ded5fff9ded5ffb9b4afff" + }, + "orng/dark": { + "modes": ["light","dark"], + "hues": ["gray","red","cyan","blue","accent","interactive","neutral"], + "hue": "eeeeeeffa5a5a5ff808080ff474747ff303030ff212121ff151515ff111111ff0a0a0affefdfdaffb8958aff96776effec5b2bff974228ff3a2823ff2a1d1aff1c1311ff0f0a09ffdce4e6ff8fa3a5ff728385ff56b6c2ff3c7279ff252e30ff1b2122ff121617ff0a0c0dffdee3ebff93a0b0ff75808fff6ba1e6ff476790ff272d36ff1c2026ff131519ff0a0c0dffeeeeeeffa5a5a5ff808080ff474747ff303030ff212121ff151515ff111111ff0a0a0affefdfdaffb8958aff96776effec5b2bff974228ff3a2823ff2a1d1aff1c1311ff0f0a09ffeeeeeeffa5a5a5ff808080ff474747ff303030ff212121ff151515ff111111ff0a0a0aff", + "categorical": "efdfdaffb8958aff96776effec5b2bff974228ff3a2823ff2a1d1aff1c1311ff0f0a09ffdee3ebff93a0b0ff75808fff6ba1e6ff476790ff272d36ff1c2026ff131519ff0a0c0dffdce4e6ff8fa3a5ff728385ff56b6c2ff3c7279ff252e30ff1b2122ff121617ff0a0c0dff", + "base": "e06c75ffe06c75ffe06c75ffe06c75ffe06c75ffe06c75ff00000000000000003a2823ff151515ff00000000000000000000000000000000000000000000000000000000000000000a0a0aff0a0a0aff0a0a0aff0a0a0aff0a0a0aff0a0a0aff0a0a0aff0a0a0aff0a0a0aff0a0a0aff0a0a0aff151515ff212121ff303030ffec5b2bff1a2a3dff141414ff37222cff6ba1e6ffe26a75ff162535ff2d1f26ff828bb8ff6ba1e6ff828bb8ff828bb8ffc53b53fffff7f1ff6ba1e6ffeeeeeeffe5c07bffec5b2bff808080ffec5b2bff56b6c2ffec5b2bff56b6c2ff56b6c2ffec5b2bffee7948ffeeeeeeffee7948ff808080ffee7948ffec5b2bfffff7f1ff56b6c2ffeeeeeeff6ba1e6ffe5c07bffe06c75ff0a0a0aff808080ff0a0a0aff0a0a0aff0a0a0aff0a0a0affeeeeeeff808080ffeeeeeeffeeeeeeffeeeeeeffec5b2bffa5a5a5ffa5a5a5ffb8958affeeeeeeffa5a5a5ffa5a5a5ffeeeeeeff808080ffe06c75ffe06c75ff56b6c2ff56b6c2ff6ba1e6ff6ba1e6ffec5b2bffec5b2bffeeeeeeff808080ffec5b2bffec5b2bffec5b2bffec5b2bffa5a5a5ff", + "dialog": "e06c75ffe06c75ffe06c75ffe06c75ffe06c75ffe06c75ff00000000000000003a2823ff303030ff0000000000000000000000000000000000000000303030ff0000000000000000151515ff151515ff151515ff151515ff151515ff151515ff151515ff151515ff151515ff151515ff151515ff151515ff212121ff303030ffec5b2bff1a2a3dff141414ff37222cff6ba1e6ffe26a75ff162535ff2d1f26ff828bb8ff6ba1e6ff828bb8ff828bb8ffc53b53fffff7f1ff6ba1e6ffeeeeeeffe5c07bffec5b2bff808080ffec5b2bff56b6c2ffec5b2bff56b6c2ff56b6c2ffec5b2bffee7948ffeeeeeeffee7948ff808080ffee7948ffec5b2bfffff7f1ff56b6c2ffeeeeeeff6ba1e6ffe5c07bffe06c75ff0a0a0aff808080ff0a0a0aff0a0a0aff0a0a0aff0a0a0affeeeeeeff808080ffeeeeeeffeeeeeeffeeeeeeffec5b2bffa5a5a5ffa5a5a5ffb8958affeeeeeeffa5a5a5ffa5a5a5ffeeeeeeff808080ffe06c75ffe06c75ff56b6c2ff56b6c2ff6ba1e6ff6ba1e6ffec5b2bffec5b2bffeeeeeeff808080ffec5b2bffec5b2bffec5b2bffec5b2bffa5a5a5ff", + "footer": "e06c75ffe06c75ffe06c75ffe06c75ffe06c75ffe06c75ff00000000000000003a2823ff303030ff0000000000000000000000000000000000000000303030ff0000000000000000151515ff151515ff151515ff151515ff151515ff151515ff151515ff151515ff151515ff151515ff151515ff151515ff212121ff303030ffec5b2bff1a2a3dff141414ff37222cff6ba1e6ffe26a75ff162535ff2d1f26ff828bb8ff6ba1e6ff828bb8ff828bb8ffc53b53fffff7f1ff6ba1e6ffeeeeeeffe5c07bffec5b2bff808080ffec5b2bff56b6c2ffec5b2bff56b6c2ff56b6c2ffec5b2bffee7948ffeeeeeeffee7948ff808080ffee7948ffec5b2bfffff7f1ff56b6c2ffeeeeeeff6ba1e6ffe5c07bffe06c75ff0a0a0aff808080ff0a0a0aff0a0a0aff0a0a0aff0a0a0affeeeeeeff808080ffeeeeeeffeeeeeeffeeeeeeffec5b2bffa5a5a5ffa5a5a5ffb8958affeeeeeeffa5a5a5ffa5a5a5ffeeeeeeff808080ffe06c75ffe06c75ff56b6c2ff56b6c2ff6ba1e6ff6ba1e6ffec5b2bffec5b2bffeeeeeeff808080ffec5b2bffec5b2bffec5b2bffec5b2bffa5a5a5ff", + "decrease": "e06c75ffe06c75ffe06c75ffe06c75ffe06c75ffe06c75ff0000000000000000974228ff212121ff0000000000000000000000000000000000000000000000000000000000000000111111ff111111ff111111ff111111ff111111ff111111ff111111ff111111ff111111ff111111ff111111ff212121ff303030ff474747ff96776eff1a2a3dff141414ff37222cff75808fffe26a75ff162535ff2d1f26ff828bb8ff75808fff828bb8ff828bb8ffc53b53fffff7f1ff75808fffeeeeeeffe5c07bff96776effa5a5a5ff96776eff728385ff96776eff728385ff728385ff96776effee7948ffeeeeeeffee7948ffa5a5a5ffee7948ff96776efffff7f1ff728385ffeeeeeeff75808fffe5c07bffe06c75ff111111ffa5a5a5ff111111ff111111ff111111ff111111ffeeeeeeffa5a5a5ffeeeeeeffeeeeeeffeeeeeeff96776effeeeeeeffeeeeeeffefdfdaffeeeeeeffeeeeeeffeeeeeeffeeeeeeffa5a5a5ffe06c75ffe06c75ff728385ff728385ff75808fff75808fff96776eff96776effeeeeeeffa5a5a5ff96776eff96776eff96776eff96776effeeeeeeff", + "increase": "e06c75ffe06c75ffe06c75ffe06c75ffe06c75ffe06c75ff00000000000000001c1311ff0a0a0aff00000000000000000000000000000000000000000000000000000000000000000a0a0aff0a0a0aff0a0a0aff0a0a0aff0a0a0aff0a0a0aff0a0a0aff0a0a0aff0a0a0aff0a0a0aff0a0a0aff0a0a0aff111111ff151515ff3a2823ff1a2a3dff141414ff37222cff272d36ffe26a75ff162535ff2d1f26ff828bb8ff272d36ff828bb8ff828bb8ffc53b53fffff7f1ff272d36ff808080ffe5c07bff3a2823ff303030ff3a2823ff252e30ff3a2823ff252e30ff252e30ff3a2823ffee7948ff808080ffee7948ff303030ffee7948ff3a2823fffff7f1ff252e30ff808080ff272d36ffe5c07bffe06c75ff0a0a0aff303030ff0a0a0aff0a0a0aff0a0a0aff0a0a0aff808080ff303030ff808080ff808080ff808080ff3a2823ff474747ff474747ffec5b2bff808080ff474747ff474747ff808080ff303030ffe06c75ffe06c75ff252e30ff252e30ff272d36ff272d36ff3a2823ff3a2823ff808080ff303030ff3a2823ff3a2823ff3a2823ff3a2823ff474747ff" + }, + "lucent-orng/light": { + "modes": ["light","dark"], + "hues": ["gray","red","orange","cyan","blue","accent","interactive","neutral"], + "hue": "1a1a1aff615f5dff8a8a8affd6ccc7fff1e7e2ff000000000000000000000000000000003e2821ff92817bffc0a8a0ffec5b2bfffec9b8fffefefeffffffffffffffffffffffffff3c2922ff90817dffbea8a2ffc94d24fff4c1b1fffefefeffffffffffffffffffffffffff253032ff7f8788ffa5b0b2ff318795ffb7d4d9fffdffffffffffffffffffffffffffffff232f40ff7d8693ffa2afc1ff0062d1ffaac9f6fffefefeffffffffffffffffffffffffff3c2922ff90817dffbea8a2ffc94d24fff4c1b1fffefefeffffffffffffffffffffffffff3e2821ff92817bffc0a8a0ffec5b2bfffec9b8fffefefeffffffffffffffffffffffffff1a1a1aff615f5dff8a8a8affd6ccc7fff1e7e2ff00000000000000000000000000000000", + "categorical": "3e2821ff92817bffc0a8a0ffec5b2bfffec9b8fffefefeffffffffffffffffffffffffff3c2922ff90817dffbea8a2ffc94d24fff4c1b1fffefefeffffffffffffffffffffffffff232f40ff7d8693ffa2afc1ff0062d1ffaac9f6fffefefeffffffffffffffffffffffffff253032ff7f8788ffa5b0b2ff318795ffb7d4d9fffdffffffffffffffffffffffffffffff", + "base": "d1383dffd1383dffd1383dffd1383dffd1383dffd1383dff0000000000000000fefefeff00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000f1e7e2ffec5b2bff0000000000000000000000000062d1fff52a65ff00000000000000008a8a8aff0062d1ff7086b5ff7086b5ffc53b53ffb0851fff0062d1ff1a1a1affb0851fffec5b2bff8a8a8affec5b2bff318795ffec5b2bff318795ff318795ffec5b2bffec5b2bff1a1a1affc94d24ff8a8a8affc94d24ffec5b2bffec5b2bff318795ff1a1a1aff0062d1ffb0851fffd1383dffffffffff8a8a8affffffffffffffffffffffffffffffffff1a1a1aff8a8a8aff1a1a1aff1a1a1aff1a1a1affec5b2bff615f5dff615f5dff92817bff1a1a1aff615f5dff615f5dff1a1a1aff8a8a8affd1383dffd1383dff318795ff318795ff0062d1ff0062d1ffec5b2bffec5b2bff1a1a1aff8a8a8affec5b2bffec5b2bffec5b2bffec5b2bff615f5dff", + "dialog": "d1383dffd1383dffd1383dffd1383dffd1383dffd1383dff0000000000000000fefefeff000000000000000000000000000000000000000000000000000000000000000000000000fff5f0fffff5f0fffff5f0fffff5f0fffff5f0fffff5f0fffff5f0fffff5f0fffff5f0fffff5f0fffff5f0ff0000000000000000f1e7e2ffec5b2bff0000000000000000000000000062d1fff52a65ff00000000000000008a8a8aff0062d1ff7086b5ff7086b5ffc53b53ffb0851fff0062d1ff1a1a1affb0851fffec5b2bff8a8a8affec5b2bff318795ffec5b2bff318795ff318795ffec5b2bffec5b2bff1a1a1affc94d24ff8a8a8affc94d24ffec5b2bffec5b2bff318795ff1a1a1aff0062d1ffb0851fffd1383dffffffffff8a8a8affffffffffffffffffffffffffffffffff1a1a1aff8a8a8aff1a1a1aff1a1a1aff1a1a1affec5b2bff615f5dff615f5dff92817bff1a1a1aff615f5dff615f5dff1a1a1aff8a8a8affd1383dffd1383dff318795ff318795ff0062d1ff0062d1ffec5b2bffec5b2bff1a1a1aff8a8a8affec5b2bffec5b2bffec5b2bffec5b2bff615f5dff", + "footer": "d1383dffd1383dffd1383dffd1383dffd1383dffd1383dff0000000000000000fefefeff000000000000000000000000000000000000000000000000000000000000000000000000fff5f0fffff5f0fffff5f0fffff5f0fffff5f0fffff5f0fffff5f0fffff5f0fffff5f0fffff5f0fffff5f0ff0000000000000000f1e7e2ffec5b2bff0000000000000000000000000062d1fff52a65ff00000000000000008a8a8aff0062d1ff7086b5ff7086b5ffc53b53ffb0851fff0062d1ff1a1a1affb0851fffec5b2bff8a8a8affec5b2bff318795ffec5b2bff318795ff318795ffec5b2bffec5b2bff1a1a1affc94d24ff8a8a8affc94d24ffec5b2bffec5b2bff318795ff1a1a1aff0062d1ffb0851fffd1383dffffffffff8a8a8affffffffffffffffffffffffffffffffff1a1a1aff8a8a8aff1a1a1aff1a1a1aff1a1a1affec5b2bff615f5dff615f5dff92817bff1a1a1aff615f5dff615f5dff1a1a1aff8a8a8affd1383dffd1383dff318795ff318795ff0062d1ff0062d1ffec5b2bffec5b2bff1a1a1aff8a8a8affec5b2bffec5b2bffec5b2bffec5b2bff615f5dff", + "decrease": "d1383dffd1383dffd1383dffd1383dffd1383dffd1383dff0000000000000000fec9b8ff000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000f1e7e2ffd6ccc7ffc0a8a0ff000000000000000000000000a2afc1fff52a65ff0000000000000000615f5dffa2afc1ff7086b5ff7086b5ffc53b53ffb0851fffa2afc1ff1a1a1affb0851fffc0a8a0ff615f5dffc0a8a0ffa5b0b2ffc0a8a0ffa5b0b2ffa5b0b2ffc0a8a0ffc0a8a0ff1a1a1affbea8a2ff615f5dffbea8a2ffc0a8a0ffc0a8a0ffa5b0b2ff1a1a1affa2afc1ffb0851fffd1383dffffffffff615f5dffffffffffffffffffffffffffffffffff1a1a1aff615f5dff1a1a1aff1a1a1aff1a1a1affc0a8a0ff1a1a1aff1a1a1aff3e2821ff1a1a1aff1a1a1aff1a1a1aff1a1a1aff615f5dffd1383dffd1383dffa5b0b2ffa5b0b2ffa2afc1ffa2afc1ffc0a8a0ffc0a8a0ff1a1a1aff615f5dffc0a8a0ffc0a8a0ffc0a8a0ffc0a8a0ff1a1a1aff", + "increase": "d1383dffd1383dffd1383dffd1383dffd1383dffd1383dff0000000000000000ffffffff0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000fefefeff000000000000000000000000fefefefff52a65ff0000000000000000f1e7e2fffefefeff7086b5ff7086b5ffc53b53ffb0851ffffefefeff8a8a8affb0851ffffefefefff1e7e2fffefefefffdfffffffefefefffdfffffffdfffffffefefefffefefeff8a8a8afffefefefff1e7e2fffefefefffefefefffefefefffdffffff8a8a8afffefefeffb0851fffd1383dfffffffffff1e7e2ffffffffffffffffffffffffffffffffff8a8a8afff1e7e2ff8a8a8aff8a8a8aff8a8a8afffefefeffd6ccc7ffd6ccc7ffec5b2bff8a8a8affd6ccc7ffd6ccc7ff8a8a8afff1e7e2ffd1383dffd1383dfffdfffffffdfffffffefefefffefefefffefefefffefefeff8a8a8afff1e7e2fffefefefffefefefffefefefffefefeffd6ccc7ff" + }, + "lucent-orng/dark": { + "modes": ["light","dark"], + "hues": ["gray","red","cyan","blue","accent","interactive","neutral"], + "hue": "eeeeeeffa9a2a0ff808080ff503e38ff3b2a24ff00000000000000000000000000000000efdfdaffb79489ff96776effec5b2bff943f25ff3b261fff2a1b16ff1a110eff0e0605ffdce4e6ff8ea1a4ff728385ff56b6c2ff396f76ff202e28ff16201eff0e1415ff050905ffdee3ebff929eafff75808fff6ba1e6ff45648dff2a2a37ff1c1e28ff101318ff07080dffeeeeeeffa9a2a0ff808080ff503e38ff3b2a24ff00000000000000000000000000000000efdfdaffb79489ff96776effec5b2bff943f25ff3b261fff2a1b16ff1a110eff0e0605ffeeeeeeffa9a2a0ff808080ff503e38ff3b2a24ff00000000000000000000000000000000", + "categorical": "efdfdaffb79489ff96776effec5b2bff943f25ff3b261fff2a1b16ff1a110eff0e0605ffdee3ebff929eafff75808fff6ba1e6ff45648dff2a2a37ff1c1e28ff101318ff07080dffdce4e6ff8ea1a4ff728385ff56b6c2ff396f76ff202e28ff16201eff0e1415ff050905ff", + "base": "e06c75ffe06c75ffe06c75ffe06c75ffe06c75ffe06c75ff00000000000000003b261fff000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000003b2a24ffec5b2bff0000000000000000000000006ba1e6ffe26a75ff0000000000000000808080ff6ba1e6ff828bb8ff828bb8ffc53b53fffff7f1ff6ba1e6ffeeeeeeffe5c07bffec5b2bff808080ffec5b2bff56b6c2ffec5b2bff56b6c2ff56b6c2ffec5b2bffee7948ffeeeeeeffee7948ff808080ffee7948ffec5b2bfffff7f1ff56b6c2ffeeeeeeff6ba1e6ffe5c07bffe06c75ff0a0a0aff808080ff0a0a0aff0a0a0aff0a0a0aff0a0a0affeeeeeeff808080ffeeeeeeffeeeeeeffeeeeeeffec5b2bffa9a2a0ffa9a2a0ffb79489ffeeeeeeffa9a2a0ffa9a2a0ffeeeeeeff808080ffe06c75ffe06c75ff56b6c2ff56b6c2ff6ba1e6ff6ba1e6ffec5b2bffec5b2bffeeeeeeff808080ffec5b2bffec5b2bffec5b2bffec5b2bffa9a2a0ff", + "dialog": "e06c75ffe06c75ffe06c75ffe06c75ffe06c75ffe06c75ff00000000000000003b261fff3b2a24ff00000000000000000000000000000000000000003b2a24ff00000000000000002a1a15ff2a1a15ff2a1a15ff2a1a15ff2a1a15ff2a1a15ff2a1a15ff2a1a15ff2a1a15ff2a1a15ff2a1a15ff00000000000000003b2a24ffec5b2bff0000000000000000000000006ba1e6ffe26a75ff0000000000000000808080ff6ba1e6ff828bb8ff828bb8ffc53b53fffff7f1ff6ba1e6ffeeeeeeffe5c07bffec5b2bff808080ffec5b2bff56b6c2ffec5b2bff56b6c2ff56b6c2ffec5b2bffee7948ffeeeeeeffee7948ff808080ffee7948ffec5b2bfffff7f1ff56b6c2ffeeeeeeff6ba1e6ffe5c07bffe06c75ff0a0a0aff808080ff0a0a0aff0a0a0aff0a0a0aff0a0a0affeeeeeeff808080ffeeeeeeffeeeeeeffeeeeeeffec5b2bffa9a2a0ffa9a2a0ffb79489ffeeeeeeffa9a2a0ffa9a2a0ffeeeeeeff808080ffe06c75ffe06c75ff56b6c2ff56b6c2ff6ba1e6ff6ba1e6ffec5b2bffec5b2bffeeeeeeff808080ffec5b2bffec5b2bffec5b2bffec5b2bffa9a2a0ff", + "footer": "e06c75ffe06c75ffe06c75ffe06c75ffe06c75ffe06c75ff00000000000000003b261fff3b2a24ff00000000000000000000000000000000000000003b2a24ff00000000000000002a1a15ff2a1a15ff2a1a15ff2a1a15ff2a1a15ff2a1a15ff2a1a15ff2a1a15ff2a1a15ff2a1a15ff2a1a15ff00000000000000003b2a24ffec5b2bff0000000000000000000000006ba1e6ffe26a75ff0000000000000000808080ff6ba1e6ff828bb8ff828bb8ffc53b53fffff7f1ff6ba1e6ffeeeeeeffe5c07bffec5b2bff808080ffec5b2bff56b6c2ffec5b2bff56b6c2ff56b6c2ffec5b2bffee7948ffeeeeeeffee7948ff808080ffee7948ffec5b2bfffff7f1ff56b6c2ffeeeeeeff6ba1e6ffe5c07bffe06c75ff0a0a0aff808080ff0a0a0aff0a0a0aff0a0a0aff0a0a0affeeeeeeff808080ffeeeeeeffeeeeeeffeeeeeeffec5b2bffa9a2a0ffa9a2a0ffb79489ffeeeeeeffa9a2a0ffa9a2a0ffeeeeeeff808080ffe06c75ffe06c75ff56b6c2ff56b6c2ff6ba1e6ff6ba1e6ffec5b2bffec5b2bffeeeeeeff808080ffec5b2bffec5b2bffec5b2bffec5b2bffa9a2a0ff", + "decrease": "e06c75ffe06c75ffe06c75ffe06c75ffe06c75ffe06c75ff0000000000000000943f25ff0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000003b2a24ff503e38ff96776eff00000000000000000000000075808fffe26a75ff0000000000000000a9a2a0ff75808fff828bb8ff828bb8ffc53b53fffff7f1ff75808fffeeeeeeffe5c07bff96776effa9a2a0ff96776eff728385ff96776eff728385ff728385ff96776effee7948ffeeeeeeffee7948ffa9a2a0ffee7948ff96776efffff7f1ff728385ffeeeeeeff75808fffe5c07bffe06c75ff0a0a0affa9a2a0ff0a0a0aff0a0a0aff0a0a0aff0a0a0affeeeeeeffa9a2a0ffeeeeeeffeeeeeeffeeeeeeff96776effeeeeeeffeeeeeeffefdfdaffeeeeeeffeeeeeeffeeeeeeffeeeeeeffa9a2a0ffe06c75ffe06c75ff728385ff728385ff75808fff75808fff96776eff96776effeeeeeeffa9a2a0ff96776eff96776eff96776eff96776effeeeeeeff", + "increase": "e06c75ffe06c75ffe06c75ffe06c75ffe06c75ffe06c75ff00000000000000001a110eff00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000003b261fff0000000000000000000000002a2a37ffe26a75ff00000000000000003b2a24ff2a2a37ff828bb8ff828bb8ffc53b53fffff7f1ff2a2a37ff808080ffe5c07bff3b261fff3b2a24ff3b261fff202e28ff3b261fff202e28ff202e28ff3b261fffee7948ff808080ffee7948ff3b2a24ffee7948ff3b261ffffff7f1ff202e28ff808080ff2a2a37ffe5c07bffe06c75ff0a0a0aff3b2a24ff0a0a0aff0a0a0aff0a0a0aff0a0a0aff808080ff3b2a24ff808080ff808080ff808080ff3b261fff503e38ff503e38ffec5b2bff808080ff503e38ff503e38ff808080ff3b2a24ffe06c75ffe06c75ff202e28ff202e28ff2a2a37ff2a2a37ff3b261fff3b261fff808080ff3b2a24ff3b261fff3b261fff3b261fff3b261fff503e38ff" + }, + "palenight/light": { + "modes": ["light","dark"], + "hues": ["gray","red","orange","green","cyan","blue","purple","accent","interactive","neutral"], + "hue": "292d3eff636774ff8796b0ffb0b0b1ffcbcbcaffdad9d8ffedededfff6f6f6fffafafaff573b38ff9c8885ffceb2aeffe53935ffedaba2fff7d8d4fffae8e5fffbf1f0fffaf6f6ff4d4130ff948c80ffc3b8a6ffffb300ffedd1a6ffeaddcafff3ebe0fff7f3eefff9f7f5ff404638ff8b8f85ffb5bcaeff91b859ffc3d3b0ffdbe2d3ffeaeee5fff2f5f0fff7f8f6ff36474aff849092ffacbdc0ff00acc1ffa5cfd6ffd1e3e7ffe4eff1fff0f5f6fff6f8f8ff3a4356ff878e9bffb0b9cdff4976ebffa7bceaffd5e0f5ffe7edf9fff1f4fafff6f7faff493e56ff918a9bffbfb4cdffa854f2ffccb2edffe6daf5fff0e9f9fff5f2fafff8f7faff36474aff849092ffacbdc0ff00acc1ffa5cfd6ffd1e3e7ffe4eff1fff0f5f6fff6f8f8ff3a4356ff878e9bffb0b9cdff4976ebffa7bceaffd5e0f5ffe7edf9fff1f4fafff6f7faff292d3eff636774ff8796b0ffb0b0b1ffcbcbcaffdad9d8ffedededfff6f6f6fffafafaff", + "categorical": "493e56ff918a9bffbfb4cdffa854f2ffccb2edffe6daf5fff0e9f9fff5f2fafff8f7faff36474aff849092ffacbdc0ff00acc1ffa5cfd6ffd1e3e7ffe4eff1fff0f5f6fff6f8f8ff404638ff8b8f85ffb5bcaeff91b859ffc3d3b0ffdbe2d3ffeaeee5fff2f5f0fff7f8f6ff4d4130ff948c80ffc3b8a6ffffb300ffedd1a6ffeaddcafff3ebe0fff7f3eefff9f7f5ff3a4356ff878e9bffb0b9cdff4976ebffa7bceaffd5e0f5ffe7edf9fff1f4fafff6f7faff573b38ff9c8885ffceb2aeffe53935ffedaba2fff7d8d4fffae8e5fffbf1f0fffaf6f6ff", + "base": "e53935ffe53935ffe53935ffe53935ffe53935ffe53935ff0000000000000000d5e0f5ffedededff0000000000000000000000000000000000000000000000000000000000000000fafafafffafafafffafafafffafafafffafafafffafafafffafafafffafafafffafafafffafafafffafafaffedededffdad9d8ffcbcbcaffe0e0e0ffe8f5e9fff5f5f5ffffebeeff91b859ffe53935ffe8f5e9ffffebeeff6a6e70ff91b859ff8796b0ff00acc1ffe53935ff8796b0ff91b859ff292d3effffb300ffa854f2ff8796b0ff4976ebff00acc1ff4976ebff00acc1ff00acc1ff4976ebfff4511eff292d3eff4976ebff8796b0ff4976ebffa854f2fff4511eff00acc1ff292d3eff91b859ffffb300ff292d3efffafafaff8796b0fffafafafffafafafffafafafffafafaff292d3eff8796b0ff292d3eff292d3eff292d3eff4976ebff636774ff636774ff878e9bff292d3eff636774ff636774ff292d3eff8796b0ffe53935ffe53935fff4511efff4511eff91b859ff91b859ffffb300ffffb300ff292d3eff8796b0ff4976ebff4976ebff4976ebff4976ebff636774ff", + "dialog": "e53935ffe53935ffe53935ffe53935ffe53935ffe53935ff0000000000000000d5e0f5ffdad9d8ff0000000000000000000000000000000000000000dad9d8ff0000000000000000f6f6f6fff6f6f6fff6f6f6fff6f6f6fff6f6f6fff6f6f6fff6f6f6fff6f6f6fff6f6f6fff6f6f6fff6f6f6ffedededffedededffcbcbcaffe0e0e0ffe8f5e9fff5f5f5ffffebeeff91b859ffe53935ffe8f5e9ffffebeeff6a6e70ff91b859ff8796b0ff00acc1ffe53935ff8796b0ff91b859ff292d3effffb300ffa854f2ff8796b0ff4976ebff00acc1ff4976ebff00acc1ff00acc1ff4976ebfff4511eff292d3eff4976ebff8796b0ff4976ebffa854f2fff4511eff00acc1ff292d3eff91b859ffffb300ff292d3efffafafaff8796b0fffafafafffafafafffafafafffafafaff292d3eff8796b0ff292d3eff292d3eff292d3eff4976ebff636774ff636774ff878e9bff292d3eff636774ff636774ff292d3eff8796b0ffe53935ffe53935fff4511efff4511eff91b859ff91b859ffffb300ffffb300ff292d3eff8796b0ff4976ebff4976ebff4976ebff4976ebff636774ff", + "footer": "e53935ffe53935ffe53935ffe53935ffe53935ffe53935ff0000000000000000d5e0f5ffdad9d8ff0000000000000000000000000000000000000000dad9d8ff0000000000000000f6f6f6fff6f6f6fff6f6f6fff6f6f6fff6f6f6fff6f6f6fff6f6f6fff6f6f6fff6f6f6fff6f6f6fff6f6f6ffedededffedededffcbcbcaffe0e0e0ffe8f5e9fff5f5f5ffffebeeff91b859ffe53935ffe8f5e9ffffebeeff6a6e70ff91b859ff8796b0ff00acc1ffe53935ff8796b0ff91b859ff292d3effffb300ffa854f2ff8796b0ff4976ebff00acc1ff4976ebff00acc1ff00acc1ff4976ebfff4511eff292d3eff4976ebff8796b0ff4976ebffa854f2fff4511eff00acc1ff292d3eff91b859ffffb300ff292d3efffafafaff8796b0fffafafafffafafafffafafafffafafaff292d3eff8796b0ff292d3eff292d3eff292d3eff4976ebff636774ff636774ff878e9bff292d3eff636774ff636774ff292d3eff8796b0ffe53935ffe53935fff4511efff4511eff91b859ff91b859ffffb300ffffb300ff292d3eff8796b0ff4976ebff4976ebff4976ebff4976ebff636774ff", + "decrease": "ceb2aeffceb2aeffceb2aeffceb2aeffceb2aeffceb2aeff0000000000000000a7bceaffdad9d8ff0000000000000000000000000000000000000000000000000000000000000000f6f6f6fff6f6f6fff6f6f6fff6f6f6fff6f6f6fff6f6f6fff6f6f6fff6f6f6fff6f6f6fff6f6f6fff6f6f6ffdad9d8ffcbcbcaffb0b0b1ffe0e0e0ffe8f5e9fff5f5f5ffffebeeffb5bcaeffceb2aeffe8f5e9ffffebeeff6a6e70ffb5bcaeff636774ffacbdc0ffceb2aeff636774ffb5bcaeff292d3effc3b8a6ffbfb4cdff636774ffb0b9cdffacbdc0ffb0b9cdffacbdc0ffacbdc0ffb0b9cdfff4511eff292d3effb0b9cdff636774ffb0b9cdffbfb4cdfff4511effacbdc0ff292d3effb5bcaeffc3b8a6ff292d3efff6f6f6ff636774fff6f6f6fff6f6f6fff6f6f6fff6f6f6ff292d3eff636774ff292d3eff292d3eff292d3effb0b9cdff292d3eff292d3eff3a4356ff292d3eff292d3eff292d3eff292d3eff636774ffceb2aeffceb2aefff4511efff4511effb5bcaeffb5bcaeffc3b8a6ffc3b8a6ff292d3eff636774ffb0b9cdffb0b9cdffb0b9cdffb0b9cdff292d3eff", + "increase": "f7d8d4fff7d8d4fff7d8d4fff7d8d4fff7d8d4fff7d8d4ff0000000000000000f1f4fafffafafaff0000000000000000000000000000000000000000000000000000000000000000fafafafffafafafffafafafffafafafffafafafffafafafffafafafffafafafffafafafffafafafffafafafffafafafff6f6f6ffedededffe0e0e0ffe8f5e9fff5f5f5ffffebeeffdbe2d3fff7d8d4ffe8f5e9ffffebeeff6a6e70ffdbe2d3ffcbcbcaffd1e3e7fff7d8d4ffcbcbcaffdbe2d3ff8796b0ffeaddcaffe6daf5ffcbcbcaffd5e0f5ffd1e3e7ffd5e0f5ffd1e3e7ffd1e3e7ffd5e0f5fff4511eff8796b0ffd5e0f5ffcbcbcaffd5e0f5ffe6daf5fff4511effd1e3e7ff8796b0ffdbe2d3ffeaddcaff8796b0fffafafaffcbcbcafffafafafffafafafffafafafffafafaff8796b0ffcbcbcaff8796b0ff8796b0ff8796b0ffd5e0f5ffb0b0b1ffb0b0b1ff4976ebff8796b0ffb0b0b1ffb0b0b1ff8796b0ffcbcbcafff7d8d4fff7d8d4fff4511efff4511effdbe2d3ffdbe2d3ffeaddcaffeaddcaff8796b0ffcbcbcaffd5e0f5ffd5e0f5ffd5e0f5ffd5e0f5ffb0b0b1ff" + }, + "palenight/dark": { + "modes": ["light","dark"], + "hues": ["gray","red","orange","green","cyan","blue","purple","accent","interactive","neutral"], + "hue": "a6accdff8086a2ff676e95ff6c7188ff3d4155ff373b4eff2f3344ff2d3142ff292d3effada09fff967878ff836868fff07178ffb26467ff4a3e4fff423745ff39313dff342c37ffa7a39aff8a7f6cff796f5effffcb6bffaf9059ff4e3d48ff46363fff3d3038ff372b33ffa1a59dff7c8471ff6c7362ffc3e88dff8aa06bff31474dff2c3f44ff27383cff223236ff9da5a8ff73848bff647379ff89ddffff6b9bb0ff3a4451ff333c48ff2d3540ff28303aff9fa3acff778194ff687081ff82aaffff6b83b7ff3d4353ff363b49ff303441ff2b2f3bffa6a1aaff877b8fff766b7dffc792eaff9575aaff424152ff3b3949ff343340ff2f2e3aff9da5a8ff73848bff647379ff89ddffff6b9bb0ff3a4451ff333c48ff2d3540ff28303aff9fa3acff778194ff687081ff82aaffff6b83b7ff3d4353ff363b49ff303441ff2b2f3bffa6accdff8086a2ff676e95ff6c7188ff3d4155ff373b4eff2f3344ff2d3142ff292d3eff", + "categorical": "a6a1aaff877b8fff766b7dffc792eaff9575aaff424152ff3b3949ff343340ff2f2e3aff9da5a8ff73848bff647379ff89ddffff6b9bb0ff3a4451ff333c48ff2d3540ff28303affa1a59dff7c8471ff6c7362ffc3e88dff8aa06bff31474dff2c3f44ff27383cff223236ffa7a39aff8a7f6cff796f5effffcb6bffaf9059ff4e3d48ff46363fff3d3038ff372b33ff9fa3acff778194ff687081ff82aaffff6b83b7ff3d4353ff363b49ff303441ff2b2f3bffada09fff967878ff836868fff07178ffb26467ff4a3e4fff423745ff39313dff342c37ff", + "base": "f07178fff07178fff07178fff07178fff07178fff07178ff00000000000000003d4353ff2f3344ff0000000000000000000000000000000000000000000000000000000000000000292d3eff292d3eff292d3eff292d3eff292d3eff292d3eff292d3eff292d3eff292d3eff292d3eff292d3eff2f3344ff373b4eff3d4155ff32364aff2e3c2bff1e2132ff3c2b2bffc3e88dfff07178ff2e3c2bff3c2b2bffa0a2afffc3e88dff676e95ff89ddfffff07178ff676e95ffc3e88dffa6accdffffcb6bffc792eaff676e95ff82aaffff89ddffff82aaffff89ddffff89ddffff82aafffff78c6cffa6accdff82aaffff676e95ff82aaffffc792eafff78c6cff89ddffffa6accdffc3e88dffffcb6bffa6accdff292d3eff676e95ff292d3eff292d3eff292d3eff292d3effa6accdff676e95ffa6accdffa6accdffa6accdff82aaffff8086a2ff8086a2ff778194ffa6accdff8086a2ff8086a2ffa6accdff676e95fff07178fff07178fff78c6cfff78c6cffc3e88dffc3e88dffffcb6bffffcb6bffa6accdff676e95ff82aaffff82aaffff82aaffff82aaffff8086a2ff", + "dialog": "f07178fff07178fff07178fff07178fff07178fff07178ff00000000000000003d4353ff3d4155ff00000000000000000000000000000000000000003d4155ff00000000000000002f3344ff2f3344ff2f3344ff2f3344ff2f3344ff2f3344ff2f3344ff2f3344ff2f3344ff2f3344ff2f3344ff2f3344ff373b4eff3d4155ff32364aff2e3c2bff1e2132ff3c2b2bffc3e88dfff07178ff2e3c2bff3c2b2bffa0a2afffc3e88dff676e95ff89ddfffff07178ff676e95ffc3e88dffa6accdffffcb6bffc792eaff676e95ff82aaffff89ddffff82aaffff89ddffff89ddffff82aafffff78c6cffa6accdff82aaffff676e95ff82aaffffc792eafff78c6cff89ddffffa6accdffc3e88dffffcb6bffa6accdff292d3eff676e95ff292d3eff292d3eff292d3eff292d3effa6accdff676e95ffa6accdffa6accdffa6accdff82aaffff8086a2ff8086a2ff778194ffa6accdff8086a2ff8086a2ffa6accdff676e95fff07178fff07178fff78c6cfff78c6cffc3e88dffc3e88dffffcb6bffffcb6bffa6accdff676e95ff82aaffff82aaffff82aaffff82aaffff8086a2ff", + "footer": "f07178fff07178fff07178fff07178fff07178fff07178ff00000000000000003d4353ff3d4155ff00000000000000000000000000000000000000003d4155ff00000000000000002f3344ff2f3344ff2f3344ff2f3344ff2f3344ff2f3344ff2f3344ff2f3344ff2f3344ff2f3344ff2f3344ff2f3344ff373b4eff3d4155ff32364aff2e3c2bff1e2132ff3c2b2bffc3e88dfff07178ff2e3c2bff3c2b2bffa0a2afffc3e88dff676e95ff89ddfffff07178ff676e95ffc3e88dffa6accdffffcb6bffc792eaff676e95ff82aaffff89ddffff82aaffff89ddffff89ddffff82aafffff78c6cffa6accdff82aaffff676e95ff82aaffffc792eafff78c6cff89ddffffa6accdffc3e88dffffcb6bffa6accdff292d3eff676e95ff292d3eff292d3eff292d3eff292d3effa6accdff676e95ffa6accdffa6accdffa6accdff82aaffff8086a2ff8086a2ff778194ffa6accdff8086a2ff8086a2ffa6accdff676e95fff07178fff07178fff78c6cfff78c6cffc3e88dffc3e88dffffcb6bffffcb6bffa6accdff676e95ff82aaffff82aaffff82aaffff82aaffff8086a2ff", + "decrease": "836868ff836868ff836868ff836868ff836868ff836868ff00000000000000006b83b7ff373b4eff00000000000000000000000000000000000000000000000000000000000000002d3142ff2d3142ff2d3142ff2d3142ff2d3142ff2d3142ff2d3142ff2d3142ff2d3142ff2d3142ff2d3142ff373b4eff3d4155ff6c7188ff32364aff2e3c2bff1e2132ff3c2b2bff6c7362ff836868ff2e3c2bff3c2b2bffa0a2afff6c7362ff8086a2ff647379ff836868ff8086a2ff6c7362ffa6accdff796f5eff766b7dff8086a2ff687081ff647379ff687081ff647379ff647379ff687081fff78c6cffa6accdff687081ff8086a2ff687081ff766b7dfff78c6cff647379ffa6accdff6c7362ff796f5effa6accdff2d3142ff8086a2ff2d3142ff2d3142ff2d3142ff2d3142ffa6accdff8086a2ffa6accdffa6accdffa6accdff687081ffa6accdffa6accdff9fa3acffa6accdffa6accdffa6accdffa6accdff8086a2ff836868ff836868fff78c6cfff78c6cff6c7362ff6c7362ff796f5eff796f5effa6accdff8086a2ff687081ff687081ff687081ff687081ffa6accdff", + "increase": "4a3e4fff4a3e4fff4a3e4fff4a3e4fff4a3e4fff4a3e4fff0000000000000000303441ff292d3eff0000000000000000000000000000000000000000000000000000000000000000292d3eff292d3eff292d3eff292d3eff292d3eff292d3eff292d3eff292d3eff292d3eff292d3eff292d3eff292d3eff2d3142ff2f3344ff32364aff2e3c2bff1e2132ff3c2b2bff31474dff4a3e4fff2e3c2bff3c2b2bffa0a2afff31474dff3d4155ff3a4451ff4a3e4fff3d4155ff31474dff676e95ff4e3d48ff424152ff3d4155ff3d4353ff3a4451ff3d4353ff3a4451ff3a4451ff3d4353fff78c6cff676e95ff3d4353ff3d4155ff3d4353ff424152fff78c6cff3a4451ff676e95ff31474dff4e3d48ff676e95ff292d3eff3d4155ff292d3eff292d3eff292d3eff292d3eff676e95ff3d4155ff676e95ff676e95ff676e95ff3d4353ff6c7188ff6c7188ff82aaffff676e95ff6c7188ff6c7188ff676e95ff3d4155ff4a3e4fff4a3e4ffff78c6cfff78c6cff31474dff31474dff4e3d48ff4e3d48ff676e95ff3d4155ff3d4353ff3d4353ff3d4353ff3d4353ff6c7188ff" + }, + "rosepine/light": { + "modes": ["light","dark"], + "hues": ["gray","red","orange","cyan","purple","accent","interactive","neutral"], + "hue": "575279ff987c92ff9893a5ffb2aaa2ffd3cac3ffdcd3ccffece8e1fff5f0e9fffaf4edff7b6b6affb6abaaffc5b6b5ffd7827effdebbb8ffe7d7d5ffefe5e4fff2ededfff4f2f2ff7a6d5effb5aca2ffc4b8abffea9d34ffe3c6a5ffe6d8c9ffeee6ddfff2eeeafff4f2f0ff677176ffa8afb2ffb2bcc1ff31748fff9fb6c1ffd2dce1ffe2e9ecffeceff1fff1f3f3ff716d76ffafacb2ffbcb8c0ff907aa9ffc0b7caffddd9e1ffe8e6ebffefeef1fff2f2f3ff7b6b6affb6abaaffc5b6b5ffd7827effdebbb8ffe7d7d5ffefe5e4fff2ededfff4f2f2ff677176ffa8afb2ffb2bcc1ff31748fff9fb6c1ffd2dce1ffe2e9ecffeceff1fff1f3f3ff575279ff987c92ff9893a5ffb2aaa2ffd3cac3ffdcd3ccffece8e1fff5f0e9fffaf4edff", + "categorical": "716d76ffafacb2ffbcb8c0ff907aa9ffc0b7caffddd9e1ffe8e6ebffefeef1fff2f2f3ff7b6b6affb6abaaffc5b6b5ffd7827effdebbb8ffe7d7d5ffefe5e4fff2ededfff4f2f2ff677176ffa8afb2ffb2bcc1ff31748fff9fb6c1ffd2dce1ffe2e9ecffeceff1fff1f3f3ff7a6d5effb5aca2ffc4b8abffea9d34ffe3c6a5ffe6d8c9ffeee6ddfff2eeeafff4f2f0ff", + "base": "b4637affb4637affb4637affb4637affb4637affb4637aff0000000000000000d2dce1ffece8e1ff0000000000000000000000000000000000000000000000000000000000000000faf4edfffaf4edfffaf4edfffaf4edfffaf4edfffaf4edfffaf4edfffaf4edfffaf4edfffaf4edfffaf4edffece8e1ffdcd3ccffd3cac3ffdfdad9ffe5f2f3fffffaf3fffce5e8ff286983ffb4637affe5f2f3fffce5e8ff6c6875ff286983ff9893a5ff907aa9ffb4637aff9893a5ff286983ff575279ffea9d34ff907aa9ffdfdad9ff31748fffd7827eff31748fffd7827effd7827eff31748fffb4637aff575279ff31748fff9893a5ffd7827eff286983ff907aa9ff797593ff797593ffea9d34ff56949fff575279fffaf4edff9893a5fffaf4edfffaf4edfffaf4edfffaf4edff575279ff9893a5ff575279ff575279ff575279ff31748fff987c92ff987c92ffa8afb2ff575279ff987c92ff987c92ff575279ff9893a5ffb4637affb4637aff56949fff56949fff286983ff286983ffea9d34ffea9d34ff575279ff9893a5ff31748fff31748fff31748fff31748fff987c92ff", + "dialog": "b4637affb4637affb4637affb4637affb4637affb4637aff0000000000000000d2dce1ffdcd3ccff0000000000000000000000000000000000000000dcd3ccff0000000000000000f5f0e9fff5f0e9fff5f0e9fff5f0e9fff5f0e9fff5f0e9fff5f0e9fff5f0e9fff5f0e9fff5f0e9fff5f0e9ffece8e1ffece8e1ffd3cac3ffdfdad9ffe5f2f3fffffaf3fffce5e8ff286983ffb4637affe5f2f3fffce5e8ff6c6875ff286983ff9893a5ff907aa9ffb4637aff9893a5ff286983ff575279ffea9d34ff907aa9ffdfdad9ff31748fffd7827eff31748fffd7827effd7827eff31748fffb4637aff575279ff31748fff9893a5ffd7827eff286983ff907aa9ff797593ff797593ffea9d34ff56949fff575279fffaf4edff9893a5fffaf4edfffaf4edfffaf4edfffaf4edff575279ff9893a5ff575279ff575279ff575279ff31748fff987c92ff987c92ffa8afb2ff575279ff987c92ff987c92ff575279ff9893a5ffb4637affb4637aff56949fff56949fff286983ff286983ffea9d34ffea9d34ff575279ff9893a5ff31748fff31748fff31748fff31748fff987c92ff", + "footer": "b4637affb4637affb4637affb4637affb4637affb4637aff0000000000000000d2dce1ffdcd3ccff0000000000000000000000000000000000000000dcd3ccff0000000000000000f5f0e9fff5f0e9fff5f0e9fff5f0e9fff5f0e9fff5f0e9fff5f0e9fff5f0e9fff5f0e9fff5f0e9fff5f0e9ffece8e1ffece8e1ffd3cac3ffdfdad9ffe5f2f3fffffaf3fffce5e8ff286983ffb4637affe5f2f3fffce5e8ff6c6875ff286983ff9893a5ff907aa9ffb4637aff9893a5ff286983ff575279ffea9d34ff907aa9ffdfdad9ff31748fffd7827eff31748fffd7827effd7827eff31748fffb4637aff575279ff31748fff9893a5ffd7827eff286983ff907aa9ff797593ff797593ffea9d34ff56949fff575279fffaf4edff9893a5fffaf4edfffaf4edfffaf4edfffaf4edff575279ff9893a5ff575279ff575279ff575279ff31748fff987c92ff987c92ffa8afb2ff575279ff987c92ff987c92ff575279ff9893a5ffb4637affb4637aff56949fff56949fff286983ff286983ffea9d34ffea9d34ff575279ff9893a5ff31748fff31748fff31748fff31748fff987c92ff", + "decrease": "b4637affb4637affb4637affb4637affb4637affb4637aff00000000000000009fb6c1ffdcd3ccff0000000000000000000000000000000000000000000000000000000000000000f5f0e9fff5f0e9fff5f0e9fff5f0e9fff5f0e9fff5f0e9fff5f0e9fff5f0e9fff5f0e9fff5f0e9fff5f0e9ffdcd3ccffd3cac3ffb2aaa2ffdfdad9ffe5f2f3fffffaf3fffce5e8ff286983ffb4637affe5f2f3fffce5e8ff6c6875ff286983ff987c92ffbcb8c0ffb4637aff987c92ff286983ff575279ffc4b8abffbcb8c0ffdfdad9ffb2bcc1ffc5b6b5ffb2bcc1ffc5b6b5ffc5b6b5ffb2bcc1ffb4637aff575279ffb2bcc1ff987c92ffc5b6b5ff286983ffbcb8c0ff797593ff797593ffc4b8abff56949fff575279fff5f0e9ff987c92fff5f0e9fff5f0e9fff5f0e9fff5f0e9ff575279ff987c92ff575279ff575279ff575279ffb2bcc1ff575279ff575279ff677176ff575279ff575279ff575279ff575279ff987c92ffb4637affb4637aff56949fff56949fff286983ff286983ffc4b8abffc4b8abff575279ff987c92ffb2bcc1ffb2bcc1ffb2bcc1ffb2bcc1ff575279ff", + "increase": "b4637affb4637affb4637affb4637affb4637affb4637aff0000000000000000eceff1fffaf4edff0000000000000000000000000000000000000000000000000000000000000000faf4edfffaf4edfffaf4edfffaf4edfffaf4edfffaf4edfffaf4edfffaf4edfffaf4edfffaf4edfffaf4edfffaf4edfff5f0e9ffece8e1ffdfdad9ffe5f2f3fffffaf3fffce5e8ff286983ffb4637affe5f2f3fffce5e8ff6c6875ff286983ffd3cac3ffddd9e1ffb4637affd3cac3ff286983ff9893a5ffe6d8c9ffddd9e1ffdfdad9ffd2dce1ffe7d7d5ffd2dce1ffe7d7d5ffe7d7d5ffd2dce1ffb4637aff9893a5ffd2dce1ffd3cac3ffe7d7d5ff286983ffddd9e1ff797593ff797593ffe6d8c9ff56949fff9893a5fffaf4edffd3cac3fffaf4edfffaf4edfffaf4edfffaf4edff9893a5ffd3cac3ff9893a5ff9893a5ff9893a5ffd2dce1ffb2aaa2ffb2aaa2ff31748fff9893a5ffb2aaa2ffb2aaa2ff9893a5ffd3cac3ffb4637affb4637aff56949fff56949fff286983ff286983ffe6d8c9ffe6d8c9ff9893a5ffd3cac3ffd2dce1ffd2dce1ffd2dce1ffd2dce1ffb2aaa2ff" + }, + "rosepine/dark": { + "modes": ["light","dark"], + "hues": ["gray","red","orange","cyan","purple","accent","interactive","neutral"], + "hue": "e0def4ffa2a0b4ff6e6a86ff595670ff38364cff2a283cff211e2eff1e1b2bff191724ffd9d4d4ffa39898ff746b6affebbcbaff967a79ff3b3237ff2f272cff261e23ff1e171effdad5ceffa5998aff766c5efff6c177ff9c7d52ff413032ff332628ff281d1fff21171cffd2d6d7ff939ea0ff666f71ff9ccfd8ff68868cff2d353dff232a31ff1b2027ff151a22ffd7d4dbff9f98a7ff706a77ffc4a7e7ff827197ff36323fff2a2832ff211f28ff1b1922ffd9d4d4ffa39898ff746b6affebbcbaff967a79ff3b3237ff2f272cff261e23ff1e171effd2d6d7ff939ea0ff666f71ff9ccfd8ff68868cff2d353dff232a31ff1b2027ff151a22ffe0def4ffa2a0b4ff6e6a86ff595670ff38364cff2a283cff211e2eff1e1b2bff191724ff", + "categorical": "d7d4dbff9f98a7ff706a77ffc4a7e7ff827197ff36323fff2a2832ff211f28ff1b1922ffd9d4d4ffa39898ff746b6affebbcbaff967a79ff3b3237ff2f272cff261e23ff1e171effd2d6d7ff939ea0ff666f71ff9ccfd8ff68868cff2d353dff232a31ff1b2027ff151a22ffdad5ceffa5998aff766c5efff6c177ff9c7d52ff413032ff332628ff281d1fff21171cff", + "base": "eb6f92ffeb6f92ffeb6f92ffeb6f92ffeb6f92ffeb6f92ff00000000000000002d353dff211e2eff0000000000000000000000000000000000000000000000000000000000000000191724ff191724ff191724ff191724ff191724ff191724ff191724ff191724ff191724ff191724ff191724ff211e2eff2a283cff38364cff403d52ff1f2d3aff1f1d2eff3a1f2dff31748fffeb6f92ff1f2d3aff3a1f2dff9491a6ff31748fff6e6a86ffc4a7e7ffeb6f92ff6e6a86ff31748fffe0def4fff6c177ffc4a7e7ff403d52ff9ccfd8ffebbcbaff9ccfd8ffebbcbaffebbcbaff9ccfd8ffeb6f92ffe0def4ff9ccfd8ff6e6a86ffebbcbaff31748fffc4a7e7ff908caaff908caafff6c177ff9ccfd8ffe0def4ff191724ff6e6a86ff191724ff191724ff191724ff191724ffe0def4ff6e6a86ffe0def4ffe0def4ffe0def4ff9ccfd8ffa2a0b4ffa2a0b4ff939ea0ffe0def4ffa2a0b4ffa2a0b4ffe0def4ff6e6a86ffeb6f92ffeb6f92ff9ccfd8ff9ccfd8ff31748fff31748ffff6c177fff6c177ffe0def4ff6e6a86ff9ccfd8ff9ccfd8ff9ccfd8ff9ccfd8ffa2a0b4ff", + "dialog": "eb6f92ffeb6f92ffeb6f92ffeb6f92ffeb6f92ffeb6f92ff00000000000000002d353dff38364cff000000000000000000000000000000000000000038364cff0000000000000000211e2eff211e2eff211e2eff211e2eff211e2eff211e2eff211e2eff211e2eff211e2eff211e2eff211e2eff211e2eff2a283cff38364cff403d52ff1f2d3aff1f1d2eff3a1f2dff31748fffeb6f92ff1f2d3aff3a1f2dff9491a6ff31748fff6e6a86ffc4a7e7ffeb6f92ff6e6a86ff31748fffe0def4fff6c177ffc4a7e7ff403d52ff9ccfd8ffebbcbaff9ccfd8ffebbcbaffebbcbaff9ccfd8ffeb6f92ffe0def4ff9ccfd8ff6e6a86ffebbcbaff31748fffc4a7e7ff908caaff908caafff6c177ff9ccfd8ffe0def4ff191724ff6e6a86ff191724ff191724ff191724ff191724ffe0def4ff6e6a86ffe0def4ffe0def4ffe0def4ff9ccfd8ffa2a0b4ffa2a0b4ff939ea0ffe0def4ffa2a0b4ffa2a0b4ffe0def4ff6e6a86ffeb6f92ffeb6f92ff9ccfd8ff9ccfd8ff31748fff31748ffff6c177fff6c177ffe0def4ff6e6a86ff9ccfd8ff9ccfd8ff9ccfd8ff9ccfd8ffa2a0b4ff", + "footer": "eb6f92ffeb6f92ffeb6f92ffeb6f92ffeb6f92ffeb6f92ff00000000000000002d353dff38364cff000000000000000000000000000000000000000038364cff0000000000000000211e2eff211e2eff211e2eff211e2eff211e2eff211e2eff211e2eff211e2eff211e2eff211e2eff211e2eff211e2eff2a283cff38364cff403d52ff1f2d3aff1f1d2eff3a1f2dff31748fffeb6f92ff1f2d3aff3a1f2dff9491a6ff31748fff6e6a86ffc4a7e7ffeb6f92ff6e6a86ff31748fffe0def4fff6c177ffc4a7e7ff403d52ff9ccfd8ffebbcbaff9ccfd8ffebbcbaffebbcbaff9ccfd8ffeb6f92ffe0def4ff9ccfd8ff6e6a86ffebbcbaff31748fffc4a7e7ff908caaff908caafff6c177ff9ccfd8ffe0def4ff191724ff6e6a86ff191724ff191724ff191724ff191724ffe0def4ff6e6a86ffe0def4ffe0def4ffe0def4ff9ccfd8ffa2a0b4ffa2a0b4ff939ea0ffe0def4ffa2a0b4ffa2a0b4ffe0def4ff6e6a86ffeb6f92ffeb6f92ff9ccfd8ff9ccfd8ff31748fff31748ffff6c177fff6c177ffe0def4ff6e6a86ff9ccfd8ff9ccfd8ff9ccfd8ff9ccfd8ffa2a0b4ff", + "decrease": "eb6f92ffeb6f92ffeb6f92ffeb6f92ffeb6f92ffeb6f92ff000000000000000068868cff2a283cff00000000000000000000000000000000000000000000000000000000000000001e1b2bff1e1b2bff1e1b2bff1e1b2bff1e1b2bff1e1b2bff1e1b2bff1e1b2bff1e1b2bff1e1b2bff1e1b2bff2a283cff38364cff595670ff403d52ff1f2d3aff1f1d2eff3a1f2dff31748fffeb6f92ff1f2d3aff3a1f2dff9491a6ff31748fffa2a0b4ff706a77ffeb6f92ffa2a0b4ff31748fffe0def4ff766c5eff706a77ff403d52ff666f71ff746b6aff666f71ff746b6aff746b6aff666f71ffeb6f92ffe0def4ff666f71ffa2a0b4ff746b6aff31748fff706a77ff908caaff908caaff766c5eff666f71ffe0def4ff1e1b2bffa2a0b4ff1e1b2bff1e1b2bff1e1b2bff1e1b2bffe0def4ffa2a0b4ffe0def4ffe0def4ffe0def4ff666f71ffe0def4ffe0def4ffd2d6d7ffe0def4ffe0def4ffe0def4ffe0def4ffa2a0b4ffeb6f92ffeb6f92ff666f71ff666f71ff31748fff31748fff766c5eff766c5effe0def4ffa2a0b4ff666f71ff666f71ff666f71ff666f71ffe0def4ff", + "increase": "eb6f92ffeb6f92ffeb6f92ffeb6f92ffeb6f92ffeb6f92ff00000000000000001b2027ff191724ff0000000000000000000000000000000000000000000000000000000000000000191724ff191724ff191724ff191724ff191724ff191724ff191724ff191724ff191724ff191724ff191724ff191724ff1e1b2bff211e2eff403d52ff1f2d3aff1f1d2eff3a1f2dff31748fffeb6f92ff1f2d3aff3a1f2dff9491a6ff31748fff38364cff36323fffeb6f92ff38364cff31748fff6e6a86ff413032ff36323fff403d52ff2d353dff3b3237ff2d353dff3b3237ff3b3237ff2d353dffeb6f92ff6e6a86ff2d353dff38364cff3b3237ff31748fff36323fff908caaff908caaff413032ff2d353dff6e6a86ff191724ff38364cff191724ff191724ff191724ff191724ff6e6a86ff38364cff6e6a86ff6e6a86ff6e6a86ff2d353dff595670ff595670ff9ccfd8ff6e6a86ff595670ff595670ff6e6a86ff38364cffeb6f92ffeb6f92ff2d353dff2d353dff31748fff31748fff413032ff413032ff6e6a86ff38364cff2d353dff2d353dff2d353dff2d353dff595670ff" + }, + "solarized/light": { + "modes": ["light","dark"], + "hues": ["gray","red","orange","yellow","cyan","blue","accent","interactive","neutral"], + "hue": "657b83ff93a1a1ffaabcafffb2ad9bffe9e3d0ffefe9d6fff7f1ddfff8f2defffdf6e3ffa68783ffd6c1befff1d4d0ffdc322fffe7a69efffae8d7fffdeee1fffaefeafff6f3f2ffa28981ffd3c2bdffedd6ceffcb4b16ffdeab99fff8e9d8fffbefe1fff7efebfff6f3f2ff968f7effcbc6bbffe2dbccffb58900ffcfbf9cfff2ebd9fff7f0e1fff4f0eafff4f3f2ff839491ffbec9c8ffd0e0deff2aa198ffa4c8c4ffe7efdfffebf3e7ffecf2f0fff2f4f4ff83929fffbec8d1ffd0deeaff268bd2ffa0c1ddffe0f1e3ffe5f5ecffebf2f5fff2f4f5ff839491ffbec9c8ffd0e0deff2aa198ffa4c8c4ffe7efdfffebf3e7ffecf2f0fff2f4f4ff83929fffbec8d1ffd0deeaff268bd2ffa0c1ddffe0f1e3ffe5f5ecffebf2f5fff2f4f5ff657b83ff93a1a1ffaabcafffb2ad9bffe9e3d0ffefe9d6fff7f1ddfff8f2defffdf6e3ff", + "categorical": "83929fffbec8d1ffd0deeaff268bd2ffa0c1ddffe0f1e3ffe5f5ecffebf2f5fff2f4f5ff839491ffbec9c8ffd0e0deff2aa198ffa4c8c4ffe7efdfffebf3e7ffecf2f0fff2f4f4ff968f7effcbc6bbffe2dbccffb58900ffcfbf9cfff2ebd9fff7f0e1fff4f0eafff4f3f2ffa68783ffd6c1befff1d4d0ffdc322fffe7a69efffae8d7fffdeee1fffaefeafff6f3f2ffa28981ffd3c2bdffedd6ceffcb4b16ffdeab99fff8e9d8fffbefe1fff7efebfff6f3f2ff", + "base": "dc322fffdc322fffdc322fffdc322fffdc322fffdc322fff0000000000000000e0f1e3fff7f1ddff0000000000000000000000000000000000000000000000000000000000000000fdf6e3fffdf6e3fffdf6e3fffdf6e3fffdf6e3fffdf6e3fffdf6e3fffdf6e3fffdf6e3fffdf6e3fffdf6e3fff7f1ddffefe9d6ffe9e3d0ffeee8d5ffeee8d5ffeee8d5ffeee8d5ff859900ffdc322fffeee8d5ffeee8d5ff5f6969ff859900ff93a1a1ff93a1a1ffdc322fff93a1a1ff859900ff657b83ffb58900ff268bd2ff93a1a1ff2aa198ff6c71c4ff2aa198ff6c71c4ff2aa198ff268bd2ffcb4b16ff657b83ff93a1a1ff93a1a1ff268bd2ff859900ffd33682ff859900ff657b83ff2aa198ffb58900ff2aa198fffdf6e3ffaabcaffffdf6e3fffdf6e3fffdf6e3fffdf6e3ff657b83ffaabcafff657b83ff657b83ff657b83ff268bd2ff93a1a1ff93a1a1ffbec8d1ff657b83ff93a1a1ff93a1a1ff657b83ffaabcafffdc322fffdc322fffcb4b16ffcb4b16ff859900ff859900ffb58900ffb58900ff657b83ffaabcafff268bd2ff268bd2ff268bd2ff268bd2ff93a1a1ff", + "dialog": "dc322fffdc322fffdc322fffdc322fffdc322fffdc322fff0000000000000000e0f1e3ffefe9d6ff0000000000000000000000000000000000000000efe9d6ff0000000000000000f8f2defff8f2defff8f2defff8f2defff8f2defff8f2defff8f2defff8f2defff8f2defff8f2defff8f2defff7f1ddfff7f1ddffe9e3d0ffeee8d5ffeee8d5ffeee8d5ffeee8d5ff859900ffdc322fffeee8d5ffeee8d5ff5f6969ff859900ff93a1a1ff93a1a1ffdc322fff93a1a1ff859900ff657b83ffb58900ff268bd2ff93a1a1ff2aa198ff6c71c4ff2aa198ff6c71c4ff2aa198ff268bd2ffcb4b16ff657b83ff93a1a1ff93a1a1ff268bd2ff859900ffd33682ff859900ff657b83ff2aa198ffb58900ff2aa198fffdf6e3ffaabcaffffdf6e3fffdf6e3fffdf6e3fffdf6e3ff657b83ffaabcafff657b83ff657b83ff657b83ff268bd2ff93a1a1ff93a1a1ffbec8d1ff657b83ff93a1a1ff93a1a1ff657b83ffaabcafffdc322fffdc322fffcb4b16ffcb4b16ff859900ff859900ffb58900ffb58900ff657b83ffaabcafff268bd2ff268bd2ff268bd2ff268bd2ff93a1a1ff", + "footer": "dc322fffdc322fffdc322fffdc322fffdc322fffdc322fff0000000000000000e0f1e3ffefe9d6ff0000000000000000000000000000000000000000efe9d6ff0000000000000000f8f2defff8f2defff8f2defff8f2defff8f2defff8f2defff8f2defff8f2defff8f2defff8f2defff8f2defff7f1ddfff7f1ddffe9e3d0ffeee8d5ffeee8d5ffeee8d5ffeee8d5ff859900ffdc322fffeee8d5ffeee8d5ff5f6969ff859900ff93a1a1ff93a1a1ffdc322fff93a1a1ff859900ff657b83ffb58900ff268bd2ff93a1a1ff2aa198ff6c71c4ff2aa198ff6c71c4ff2aa198ff268bd2ffcb4b16ff657b83ff93a1a1ff93a1a1ff268bd2ff859900ffd33682ff859900ff657b83ff2aa198ffb58900ff2aa198fffdf6e3ffaabcaffffdf6e3fffdf6e3fffdf6e3fffdf6e3ff657b83ffaabcafff657b83ff657b83ff657b83ff268bd2ff93a1a1ff93a1a1ffbec8d1ff657b83ff93a1a1ff93a1a1ff657b83ffaabcafffdc322fffdc322fffcb4b16ffcb4b16ff859900ff859900ffb58900ffb58900ff657b83ffaabcafff268bd2ff268bd2ff268bd2ff268bd2ff93a1a1ff", + "decrease": "f1d4d0fff1d4d0fff1d4d0fff1d4d0fff1d4d0fff1d4d0ff0000000000000000a0c1ddffefe9d6ff0000000000000000000000000000000000000000000000000000000000000000f8f2defff8f2defff8f2defff8f2defff8f2defff8f2defff8f2defff8f2defff8f2defff8f2defff8f2deffefe9d6ffe9e3d0ffb2ad9bffeee8d5ffeee8d5ffeee8d5ffeee8d5ff859900fff1d4d0ffeee8d5ffeee8d5ff5f6969ff859900ff657b83ff657b83fff1d4d0ff657b83ff859900ff657b83ffe2dbccffd0deeaff657b83ffd0e0deff6c71c4ffd0e0deff6c71c4ffd0e0deffd0deeaffedd6ceff657b83ff657b83ff657b83ffd0deeaff859900ffd33682ff859900ff657b83ffd0e0deffe2dbccffd0e0defff8f2deff93a1a1fff8f2defff8f2defff8f2defff8f2deff657b83ff93a1a1ff657b83ff657b83ff657b83ffd0deeaff657b83ff657b83ff83929fff657b83ff657b83ff657b83ff657b83ff93a1a1fff1d4d0fff1d4d0ffedd6ceffedd6ceff859900ff859900ffe2dbccffe2dbccff657b83ff93a1a1ffd0deeaffd0deeaffd0deeaffd0deeaff657b83ff", + "increase": "fae8d7fffae8d7fffae8d7fffae8d7fffae8d7fffae8d7ff0000000000000000ebf2f5fffdf6e3ff0000000000000000000000000000000000000000000000000000000000000000fdf6e3fffdf6e3fffdf6e3fffdf6e3fffdf6e3fffdf6e3fffdf6e3fffdf6e3fffdf6e3fffdf6e3fffdf6e3fffdf6e3fff8f2defff7f1ddffeee8d5ffeee8d5ffeee8d5ffeee8d5ff859900fffae8d7ffeee8d5ffeee8d5ff5f6969ff859900ffb2ad9bffb2ad9bfffae8d7ffb2ad9bff859900ffaabcaffff2ebd9ffe0f1e3ffb2ad9bffe7efdfff6c71c4ffe7efdfff6c71c4ffe7efdfffe0f1e3fff8e9d8ffaabcafffb2ad9bffb2ad9bffe0f1e3ff859900ffd33682ff859900ffaabcafffe7efdffff2ebd9ffe7efdffffdf6e3ffe9e3d0fffdf6e3fffdf6e3fffdf6e3fffdf6e3ffaabcafffe9e3d0ffaabcafffaabcafffaabcafffe0f1e3ffb2ad9bffb2ad9bff268bd2ffaabcafffb2ad9bffb2ad9bffaabcafffe9e3d0fffae8d7fffae8d7fff8e9d8fff8e9d8ff859900ff859900fff2ebd9fff2ebd9ffaabcafffe9e3d0ffe0f1e3ffe0f1e3ffe0f1e3ffe0f1e3ffb2ad9bff" + }, + "solarized/dark": { + "modes": ["light","dark"], + "hues": ["gray","red","orange","yellow","cyan","blue","accent","interactive","neutral"], + "hue": "839496ff586e75ff476267ff46707eff133d49ff0b3642ff04313cff022f3bff002b36ff92817fff7d5954ff73524effdc322fffa9463eff383751ff312f46ff2a293dff312427ff90827eff795b52ff6f544cffcb4b16ff9e5035ff3a364fff332f45ff2c293cff312329ff89857dff6c624eff635b49ffb58900ff896f32ff254136ff1f392eff1b3128ff162c23ff7f8887ff546866ff4e605eff2aa198ff407e78ff214044ff1b383bff163134ff132b2eff7f878eff546675ff4d5e6cff268bd2ff3d739eff233e4bff1d3642ff192f3aff152a34ff7f8887ff546866ff4e605eff2aa198ff407e78ff214044ff1b383bff163134ff132b2eff7f878eff546675ff4d5e6cff268bd2ff3d739eff233e4bff1d3642ff192f3aff152a34ff839496ff586e75ff476267ff46707eff133d49ff0b3642ff04313cff022f3bff002b36ff", + "categorical": "7f878eff546675ff4d5e6cff268bd2ff3d739eff233e4bff1d3642ff192f3aff152a34ff7f8887ff546866ff4e605eff2aa198ff407e78ff214044ff1b383bff163134ff132b2eff89857dff6c624eff635b49ffb58900ff896f32ff254136ff1f392eff1b3128ff162c23ff92817fff7d5954ff73524effdc322fffa9463eff383751ff312f46ff2a293dff312427ff90827eff795b52ff6f544cffcb4b16ff9e5035ff3a364fff332f45ff2c293cff312329ff", + "base": "dc322fffdc322fffdc322fffdc322fffdc322fffdc322fff0000000000000000233e4bff04313cff0000000000000000000000000000000000000000000000000000000000000000002b36ff002b36ff002b36ff002b36ff002b36ff002b36ff002b36ff002b36ff002b36ff002b36ff002b36ff04313cff0b3642ff133d49ff073642ff073642ff073642ff073642ff859900ffdc322fff073642ff073642ff8b9b9fff859900ff586e75ff586e75ffdc322fff586e75ff859900ff839496ffb58900ff268bd2ff586e75ff2aa198ff6c71c4ff2aa198ff6c71c4ff2aa198ff268bd2ffcb4b16ff839496ff586e75ff586e75ff268bd2ff859900ffd33682ff859900ff839496ff2aa198ffb58900ff2aa198ff002b36ff476267ff002b36ff002b36ff002b36ff002b36ff839496ff476267ff839496ff839496ff839496ff268bd2ff586e75ff586e75ff546675ff839496ff586e75ff586e75ff839496ff476267ffdc322fffdc322fffcb4b16ffcb4b16ff859900ff859900ffb58900ffb58900ff839496ff476267ff268bd2ff268bd2ff268bd2ff268bd2ff586e75ff", + "dialog": "dc322fffdc322fffdc322fffdc322fffdc322fffdc322fff0000000000000000233e4bff133d49ff0000000000000000000000000000000000000000133d49ff000000000000000004313cff04313cff04313cff04313cff04313cff04313cff04313cff04313cff04313cff04313cff04313cff04313cff0b3642ff133d49ff073642ff073642ff073642ff073642ff859900ffdc322fff073642ff073642ff8b9b9fff859900ff586e75ff586e75ffdc322fff586e75ff859900ff839496ffb58900ff268bd2ff586e75ff2aa198ff6c71c4ff2aa198ff6c71c4ff2aa198ff268bd2ffcb4b16ff839496ff586e75ff586e75ff268bd2ff859900ffd33682ff859900ff839496ff2aa198ffb58900ff2aa198ff002b36ff476267ff002b36ff002b36ff002b36ff002b36ff839496ff476267ff839496ff839496ff839496ff268bd2ff586e75ff586e75ff546675ff839496ff586e75ff586e75ff839496ff476267ffdc322fffdc322fffcb4b16ffcb4b16ff859900ff859900ffb58900ffb58900ff839496ff476267ff268bd2ff268bd2ff268bd2ff268bd2ff586e75ff", + "footer": "dc322fffdc322fffdc322fffdc322fffdc322fffdc322fff0000000000000000233e4bff133d49ff0000000000000000000000000000000000000000133d49ff000000000000000004313cff04313cff04313cff04313cff04313cff04313cff04313cff04313cff04313cff04313cff04313cff04313cff0b3642ff133d49ff073642ff073642ff073642ff073642ff859900ffdc322fff073642ff073642ff8b9b9fff859900ff586e75ff586e75ffdc322fff586e75ff859900ff839496ffb58900ff268bd2ff586e75ff2aa198ff6c71c4ff2aa198ff6c71c4ff2aa198ff268bd2ffcb4b16ff839496ff586e75ff586e75ff268bd2ff859900ffd33682ff859900ff839496ff2aa198ffb58900ff2aa198ff002b36ff476267ff002b36ff002b36ff002b36ff002b36ff839496ff476267ff839496ff839496ff839496ff268bd2ff586e75ff586e75ff546675ff839496ff586e75ff586e75ff839496ff476267ffdc322fffdc322fffcb4b16ffcb4b16ff859900ff859900ffb58900ffb58900ff839496ff476267ff268bd2ff268bd2ff268bd2ff268bd2ff586e75ff", + "decrease": "73524eff73524eff73524eff73524eff73524eff73524eff00000000000000003d739eff0b3642ff0000000000000000000000000000000000000000000000000000000000000000022f3bff022f3bff022f3bff022f3bff022f3bff022f3bff022f3bff022f3bff022f3bff022f3bff022f3bff0b3642ff133d49ff46707eff073642ff073642ff073642ff073642ff859900ff73524eff073642ff073642ff8b9b9fff859900ff839496ff839496ff73524eff839496ff859900ff839496ff635b49ff4d5e6cff839496ff4e605eff6c71c4ff4e605eff6c71c4ff4e605eff4d5e6cff6f544cff839496ff839496ff839496ff4d5e6cff859900ffd33682ff859900ff839496ff4e605eff635b49ff4e605eff022f3bff586e75ff022f3bff022f3bff022f3bff022f3bff839496ff586e75ff839496ff839496ff839496ff4d5e6cff839496ff839496ff7f878eff839496ff839496ff839496ff839496ff586e75ff73524eff73524eff6f544cff6f544cff859900ff859900ff635b49ff635b49ff839496ff586e75ff4d5e6cff4d5e6cff4d5e6cff4d5e6cff839496ff", + "increase": "383751ff383751ff383751ff383751ff383751ff383751ff0000000000000000192f3aff002b36ff0000000000000000000000000000000000000000000000000000000000000000002b36ff002b36ff002b36ff002b36ff002b36ff002b36ff002b36ff002b36ff002b36ff002b36ff002b36ff002b36ff022f3bff04313cff073642ff073642ff073642ff073642ff859900ff383751ff073642ff073642ff8b9b9fff859900ff46707eff46707eff383751ff46707eff859900ff476267ff254136ff233e4bff46707eff214044ff6c71c4ff214044ff6c71c4ff214044ff233e4bff3a364fff476267ff46707eff46707eff233e4bff859900ffd33682ff859900ff476267ff214044ff254136ff214044ff002b36ff133d49ff002b36ff002b36ff002b36ff002b36ff476267ff133d49ff476267ff476267ff476267ff233e4bff46707eff46707eff268bd2ff476267ff46707eff46707eff476267ff133d49ff383751ff383751ff3a364fff3a364fff859900ff859900ff254136ff254136ff476267ff133d49ff233e4bff233e4bff233e4bff233e4bff46707eff" + }, + "synthwave84/light": { + "modes": ["light","dark"], + "hues": ["gray","red","orange","green","cyan","purple","accent","interactive","neutral"], + "hue": "262335ff5c5c8aff8b8a95ffb0b0b0ffcbcbcbffdadadaffedededfff6f6f6fffafafaff4e332eff97827fffc4a8a3fff44336fff2aea4fff7d8d2fffbe8e4fffbf1f0fffaf6f6ff473729ff91857bffbcac9dffff9800fff0c8a3ffeedcccfff5eae1fff8f3eefff9f7f5ff313f31ff818b80ffa6b4a5ff4caf50ffaed0acffd5e5d4ffe6f0e6fff1f5f0fff6f8f6ff2c3e42ff7e8a8dffa1b3b6ff00bcd4ffa8d5ddffd0e4e7ffe3eff1ffeff5f6fff6f8f8ff453448ff8f8391ffbaa8bdff9c27b0ffcca3d4ffebd9effff4e8f5fff7f2f8fff9f6f9ff453448ff8f8391ffbaa8bdff9c27b0ffcca3d4ffebd9effff4e8f5fff7f2f8fff9f6f9ff2c3e42ff7e8a8dffa1b3b6ff00bcd4ffa8d5ddffd0e4e7ffe3eff1ffeff5f6fff6f8f8ff262335ff5c5c8aff8b8a95ffb0b0b0ffcbcbcbffdadadaffedededfff6f6f6fffafafaff", + "categorical": "4e332eff97827fffc4a8a3fff44336fff2aea4fff7d8d2fffbe8e4fffbf1f0fffaf6f6ff453448ff8f8391ffbaa8bdff9c27b0ffcca3d4ffebd9effff4e8f5fff7f2f8fff9f6f9ff313f31ff818b80ffa6b4a5ff4caf50ffaed0acffd5e5d4ffe6f0e6fff1f5f0fff6f8f6ff473729ff91857bffbcac9dffff9800fff0c8a3ffeedcccfff5eae1fff8f3eefff9f7f5ff2c3e42ff7e8a8dffa1b3b6ff00bcd4ffa8d5ddffd0e4e7ffe3eff1ffeff5f6fff6f8f8ff", + "base": "f44336fff44336fff44336fff44336fff44336fff44336ff0000000000000000d0e4e7ffedededff0000000000000000000000000000000000000000000000000000000000000000fafafafffafafafffafafafffafafafffafafafffafafafffafafafffafafafffafafafffafafafffafafaffedededffdadadaffcbcbcbffe0e0e0ffe8f5e9fff5f5f5ffffebeeff4caf50fff44336ffe8f5e9ffffebeeff5c5c8aff4caf50ff5c5c8aff9c27b0fff44336ff5c5c8aff4caf50ff262335ffff9800ffe91e63ffe0e0e0ff00bcd4ff9c27b0ff00bcd4ff9c27b0ff9c27b0ff00bcd4ffff5722ff262335ff00bcd4ff5c5c8affff5722ffe91e63ff9c27b0ffe91e63ff262335ffff9800ff00bcd4ff262335fffafafaff8b8a95fffafafafffafafafffafafafffafafaff262335ff8b8a95ff262335ff262335ff262335ff00bcd4ff5c5c8aff5c5c8aff7e8a8dff262335ff5c5c8aff5c5c8aff262335ff8b8a95fff44336fff44336ffff5722ffff5722ff4caf50ff4caf50ffff9800ffff9800ff262335ff8b8a95ff00bcd4ff00bcd4ff00bcd4ff00bcd4ff5c5c8aff", + "dialog": "f44336fff44336fff44336fff44336fff44336fff44336ff0000000000000000d0e4e7ffdadadaff0000000000000000000000000000000000000000dadadaff0000000000000000f6f6f6fff6f6f6fff6f6f6fff6f6f6fff6f6f6fff6f6f6fff6f6f6fff6f6f6fff6f6f6fff6f6f6fff6f6f6ffedededffedededffcbcbcbffe0e0e0ffe8f5e9fff5f5f5ffffebeeff4caf50fff44336ffe8f5e9ffffebeeff5c5c8aff4caf50ff5c5c8aff9c27b0fff44336ff5c5c8aff4caf50ff262335ffff9800ffe91e63ffe0e0e0ff00bcd4ff9c27b0ff00bcd4ff9c27b0ff9c27b0ff00bcd4ffff5722ff262335ff00bcd4ff5c5c8affff5722ffe91e63ff9c27b0ffe91e63ff262335ffff9800ff00bcd4ff262335fffafafaff8b8a95fffafafafffafafafffafafafffafafaff262335ff8b8a95ff262335ff262335ff262335ff00bcd4ff5c5c8aff5c5c8aff7e8a8dff262335ff5c5c8aff5c5c8aff262335ff8b8a95fff44336fff44336ffff5722ffff5722ff4caf50ff4caf50ffff9800ffff9800ff262335ff8b8a95ff00bcd4ff00bcd4ff00bcd4ff00bcd4ff5c5c8aff", + "footer": "f44336fff44336fff44336fff44336fff44336fff44336ff0000000000000000d0e4e7ffdadadaff0000000000000000000000000000000000000000dadadaff0000000000000000f6f6f6fff6f6f6fff6f6f6fff6f6f6fff6f6f6fff6f6f6fff6f6f6fff6f6f6fff6f6f6fff6f6f6fff6f6f6ffedededffedededffcbcbcbffe0e0e0ffe8f5e9fff5f5f5ffffebeeff4caf50fff44336ffe8f5e9ffffebeeff5c5c8aff4caf50ff5c5c8aff9c27b0fff44336ff5c5c8aff4caf50ff262335ffff9800ffe91e63ffe0e0e0ff00bcd4ff9c27b0ff00bcd4ff9c27b0ff9c27b0ff00bcd4ffff5722ff262335ff00bcd4ff5c5c8affff5722ffe91e63ff9c27b0ffe91e63ff262335ffff9800ff00bcd4ff262335fffafafaff8b8a95fffafafafffafafafffafafafffafafaff262335ff8b8a95ff262335ff262335ff262335ff00bcd4ff5c5c8aff5c5c8aff7e8a8dff262335ff5c5c8aff5c5c8aff262335ff8b8a95fff44336fff44336ffff5722ffff5722ff4caf50ff4caf50ffff9800ffff9800ff262335ff8b8a95ff00bcd4ff00bcd4ff00bcd4ff00bcd4ff5c5c8aff", + "decrease": "c4a8a3ffc4a8a3ffc4a8a3ffc4a8a3ffc4a8a3ffc4a8a3ff0000000000000000a8d5ddffdadadaff0000000000000000000000000000000000000000000000000000000000000000f6f6f6fff6f6f6fff6f6f6fff6f6f6fff6f6f6fff6f6f6fff6f6f6fff6f6f6fff6f6f6fff6f6f6fff6f6f6ffdadadaffcbcbcbffb0b0b0ffe0e0e0ffe8f5e9fff5f5f5ffffebeeffa6b4a5ffc4a8a3ffe8f5e9ffffebeeff262335ffa6b4a5ff262335ffbaa8bdffc4a8a3ff262335ffa6b4a5ff262335ffbcac9dffe91e63ffe0e0e0ffa1b3b6ffbaa8bdffa1b3b6ffbaa8bdffbaa8bdffa1b3b6ffff5722ff262335ffa1b3b6ff262335ffff5722ffe91e63ffbaa8bdffe91e63ff262335ffbcac9dffa1b3b6ff262335fff6f6f6ff5c5c8afff6f6f6fff6f6f6fff6f6f6fff6f6f6ff262335ff5c5c8aff262335ff262335ff262335ffa1b3b6ff262335ff262335ff2c3e42ff262335ff262335ff262335ff262335ff5c5c8affc4a8a3ffc4a8a3ffff5722ffff5722ffa6b4a5ffa6b4a5ffbcac9dffbcac9dff262335ff5c5c8affa1b3b6ffa1b3b6ffa1b3b6ffa1b3b6ff262335ff", + "increase": "f7d8d2fff7d8d2fff7d8d2fff7d8d2fff7d8d2fff7d8d2ff0000000000000000eff5f6fffafafaff0000000000000000000000000000000000000000000000000000000000000000fafafafffafafafffafafafffafafafffafafafffafafafffafafafffafafafffafafafffafafafffafafafffafafafff6f6f6ffedededffe0e0e0ffe8f5e9fff5f5f5ffffebeeffd5e5d4fff7d8d2ffe8f5e9ffffebeeffb0b0b0ffd5e5d4ffb0b0b0ffebd9effff7d8d2ffb0b0b0ffd5e5d4ff8b8a95ffeedcccffe91e63ffe0e0e0ffd0e4e7ffebd9efffd0e4e7ffebd9efffebd9efffd0e4e7ffff5722ff8b8a95ffd0e4e7ffb0b0b0ffff5722ffe91e63ffebd9efffe91e63ff8b8a95ffeedcccffd0e4e7ff8b8a95fffafafaffcbcbcbfffafafafffafafafffafafafffafafaff8b8a95ffcbcbcbff8b8a95ff8b8a95ff8b8a95ffd0e4e7ffb0b0b0ffb0b0b0ff00bcd4ff8b8a95ffb0b0b0ffb0b0b0ff8b8a95ffcbcbcbfff7d8d2fff7d8d2ffff5722ffff5722ffd5e5d4ffd5e5d4ffeedcccffeedcccff8b8a95ffcbcbcbffd0e4e7ffd0e4e7ffd0e4e7ffd0e4e7ffb0b0b0ff" + }, + "synthwave84/dark": { + "modes": ["light","dark"], + "hues": ["gray","red","orange","yellow","green","cyan","purple","accent","interactive","neutral"], + "hue": "ffffffffbcbbc2ff848bbdff6d6380ff453e56ff373148ff2d293bff2a2738ff262335fffef0eeffd5a8a5ffaa8381fffe4450ffb84c4cff4c3747ff3f2e3cff342733ff2e232efffdf1e9ffcaae9effa1887affff8b39ffb26c3fff4d3842ff402e37ff362730ff30222bfff6f4e8ffbbb59bff948e78fffede5dffa6944bff4f383bff412e32ff37272bff312227ffecf7f1ffa2bcaeff7e9489ff72f1b8ff59a17fff2d404bff263540ff212e37ff1c2932ffe9f7f6ff9cbcbbff799594ff36f9f6ff40a4a2ff303f4dff293441ff232d39ff1f2833fff5f1fcffb9b0c8ff928aa0ffb084ebff846aa8ff403b4eff353141ff2d2a38ff282532fff5f1fcffb9b0c8ff928aa0ffb084ebff846aa8ff403b4eff353141ff2d2a38ff282532ffe9f7f6ff9cbcbbff799594ff36f9f6ff40a4a2ff303f4dff293441ff232d39ff1f2833ffffffffffbcbbc2ff848bbdff6d6380ff453e56ff373148ff2d293bff2a2738ff262335ff", + "categorical": "f5f1fcffb9b0c8ff928aa0ffb084ebff846aa8ff403b4eff353141ff2d2a38ff282532ffecf7f1ffa2bcaeff7e9489ff72f1b8ff59a17fff2d404bff263540ff212e37ff1c2932fff6f4e8ffbbb59bff948e78fffede5dffa6944bff4f383bff412e32ff37272bff312227ffe9f7f6ff9cbcbbff799594ff36f9f6ff40a4a2ff303f4dff293441ff232d39ff1f2833fffef0eeffd5a8a5ffaa8381fffe4450ffb84c4cff4c3747ff3f2e3cff342733ff2e232efffdf1e9ffcaae9effa1887affff8b39ffb26c3fff4d3842ff402e37ff362730ff30222bff", + "base": "fe4450fffe4450fffe4450fffe4450fffe4450fffe4450ff0000000000000000303f4dff2d293bff0000000000000000000000000000000000000000000000000000000000000000262335ff262335ff262335ff262335ff262335ff262335ff262335ff262335ff262335ff262335ff262335ff2d293bff373148ff453e56ff495495ff1a3a2aff1e1a29ff3a1a2aff97f1d8ffff5e5bff1a3a2aff3a1a2aff959bc1ff72f1b8ff848bbdffb084ebfffe4450ff848bbdff72f1b8fffffffffffede5dffff7edbff495495ff36f9f6ffb084ebff36f9f6ffb084ebffb084ebff36f9f6ffff8b39ffffffffff36f9f6ff848bbdffff8b39ffff7edbffb084ebffff7edbfffffffffffede5dff36f9f6ffffffffff262335ff848bbdff262335ff262335ff262335ff262335ffffffffff848bbdffffffffffffffffffffffffff36f9f6ffbcbbc2ffbcbbc2ff9cbcbbffffffffffbcbbc2ffbcbbc2ffffffffff848bbdfffe4450fffe4450ffff8b39ffff8b39ff72f1b8ff72f1b8fffede5dfffede5dffffffffff848bbdff36f9f6ff36f9f6ff36f9f6ff36f9f6ffbcbbc2ff", + "dialog": "fe4450fffe4450fffe4450fffe4450fffe4450fffe4450ff0000000000000000303f4dff453e56ff0000000000000000000000000000000000000000453e56ff00000000000000002d293bff2d293bff2d293bff2d293bff2d293bff2d293bff2d293bff2d293bff2d293bff2d293bff2d293bff2d293bff373148ff453e56ff495495ff1a3a2aff1e1a29ff3a1a2aff97f1d8ffff5e5bff1a3a2aff3a1a2aff959bc1ff72f1b8ff848bbdffb084ebfffe4450ff848bbdff72f1b8fffffffffffede5dffff7edbff495495ff36f9f6ffb084ebff36f9f6ffb084ebffb084ebff36f9f6ffff8b39ffffffffff36f9f6ff848bbdffff8b39ffff7edbffb084ebffff7edbfffffffffffede5dff36f9f6ffffffffff262335ff848bbdff262335ff262335ff262335ff262335ffffffffff848bbdffffffffffffffffffffffffff36f9f6ffbcbbc2ffbcbbc2ff9cbcbbffffffffffbcbbc2ffbcbbc2ffffffffff848bbdfffe4450fffe4450ffff8b39ffff8b39ff72f1b8ff72f1b8fffede5dfffede5dffffffffff848bbdff36f9f6ff36f9f6ff36f9f6ff36f9f6ffbcbbc2ff", + "footer": "fe4450fffe4450fffe4450fffe4450fffe4450fffe4450ff0000000000000000303f4dff453e56ff0000000000000000000000000000000000000000453e56ff00000000000000002d293bff2d293bff2d293bff2d293bff2d293bff2d293bff2d293bff2d293bff2d293bff2d293bff2d293bff2d293bff373148ff453e56ff495495ff1a3a2aff1e1a29ff3a1a2aff97f1d8ffff5e5bff1a3a2aff3a1a2aff959bc1ff72f1b8ff848bbdffb084ebfffe4450ff848bbdff72f1b8fffffffffffede5dffff7edbff495495ff36f9f6ffb084ebff36f9f6ffb084ebffb084ebff36f9f6ffff8b39ffffffffff36f9f6ff848bbdffff8b39ffff7edbffb084ebffff7edbfffffffffffede5dff36f9f6ffffffffff262335ff848bbdff262335ff262335ff262335ff262335ffffffffff848bbdffffffffffffffffffffffffff36f9f6ffbcbbc2ffbcbbc2ff9cbcbbffffffffffbcbbc2ffbcbbc2ffffffffff848bbdfffe4450fffe4450ffff8b39ffff8b39ff72f1b8ff72f1b8fffede5dfffede5dffffffffff848bbdff36f9f6ff36f9f6ff36f9f6ff36f9f6ffbcbbc2ff", + "decrease": "aa8381ffaa8381ffaa8381ffaa8381ffaa8381ffaa8381ff000000000000000040a4a2ff373148ff00000000000000000000000000000000000000000000000000000000000000002a2738ff2a2738ff2a2738ff2a2738ff2a2738ff2a2738ff2a2738ff2a2738ff2a2738ff2a2738ff2a2738ff373148ff453e56ff6d6380ff495495ff1a3a2aff1e1a29ff3a1a2aff97f1d8ffff5e5bff1a3a2aff3a1a2aff959bc1ff7e9489ffbcbbc2ff928aa0ffaa8381ffbcbbc2ff7e9489ffffffffff948e78ffff7edbff495495ff799594ff928aa0ff799594ff928aa0ff928aa0ff799594ffa1887affffffffff799594ffbcbbc2ffa1887affff7edbff928aa0ffff7edbffffffffff948e78ff799594ffffffffff2a2738ffbcbbc2ff2a2738ff2a2738ff2a2738ff2a2738ffffffffffbcbbc2ffffffffffffffffffffffffff799594ffffffffffffffffffe9f7f6ffffffffffffffffffffffffffffffffffbcbbc2ffaa8381ffaa8381ffa1887affa1887aff7e9489ff7e9489ff948e78ff948e78ffffffffffbcbbc2ff799594ff799594ff799594ff799594ffffffffff", + "increase": "4c3747ff4c3747ff4c3747ff4c3747ff4c3747ff4c3747ff0000000000000000232d39ff262335ff0000000000000000000000000000000000000000000000000000000000000000262335ff262335ff262335ff262335ff262335ff262335ff262335ff262335ff262335ff262335ff262335ff262335ff2a2738ff2d293bff495495ff1a3a2aff1e1a29ff3a1a2aff97f1d8ffff5e5bff1a3a2aff3a1a2aff959bc1ff2d404bff453e56ff403b4eff4c3747ff453e56ff2d404bff848bbdff4f383bffff7edbff495495ff303f4dff403b4eff303f4dff403b4eff403b4eff303f4dff4d3842ff848bbdff303f4dff453e56ff4d3842ffff7edbff403b4effff7edbff848bbdff4f383bff303f4dff848bbdff262335ff453e56ff262335ff262335ff262335ff262335ff848bbdff453e56ff848bbdff848bbdff848bbdff303f4dff6d6380ff6d6380ff36f9f6ff848bbdff6d6380ff6d6380ff848bbdff453e56ff4c3747ff4c3747ff4d3842ff4d3842ff2d404bff2d404bff4f383bff4f383bff848bbdff453e56ff303f4dff303f4dff303f4dff303f4dff6d6380ff" + }, + "tokyonight/light": { + "modes": ["light","dark"], + "hues": ["gray","red","yellow","green","blue","purple","accent","interactive","neutral"], + "hue": "3760bfff8990a3ff92a2d7ff999a9fffcecfd4ffd4d5daffdcdde1ffdcdee3ffe1e2e7ff977478ffcab2b4ffe0c0c3fff52a65ffe49ba3ffddd4e1ffe0dae3ffe4dbdeffe3dedfff8c7b70ffc1b6afffd5c6bcffb15c00ffc5a38bffded5dcffe1dbe0ffe1dcdaffe1dfdeff7b8176ffb6bab3ffc6cbc1ff587539ff9fab94ffd1dadcffd8dee0ffdbdedbffdfe0dfff728094ffb0b9c7ffbecadcff2e7de9ff93b0daffd3d8e3ffd9dde5ffdadde3ffdee0e2ff827995ffbbb5c8ffccc4deff9854f1ffb6a3deffd6d6e4ffdcdce6ffdddce4ffe0dfe2ff8c7b70ffc1b6afffd5c6bcffb15c00ffc5a38bffded5dcffe1dbe0ffe1dcdaffe1dfdeff728094ffb0b9c7ffbecadcff2e7de9ff93b0daffd3d8e3ffd9dde5ffdadde3ffdee0e2ff3760bfff8990a3ff92a2d7ff999a9fffcecfd4ffd4d5daffdcdde1ffdcdee3ffe1e2e7ff", + "categorical": "827995ffbbb5c8ffccc4deff9854f1ffb6a3deffd6d6e4ffdcdce6ffdddce4ffe0dfe2ff8c7b70ffc1b6afffd5c6bcffb15c00ffc5a38bffded5dcffe1dbe0ffe1dcdaffe1dfdeff7b8176ffb6bab3ffc6cbc1ff587539ff9fab94ffd1dadcffd8dee0ffdbdedbffdfe0dfff728094ffb0b9c7ffbecadcff2e7de9ff93b0daffd3d8e3ffd9dde5ffdadde3ffdee0e2ff977478ffcab2b4ffe0c0c3fff52a65ffe49ba3ffddd4e1ffe0dae3ffe4dbdeffe3dedfff", + "base": "f52a65fff52a65fff52a65fff52a65fff52a65fff52a65ff0000000000000000d3d8e3ffdcdde1ff0000000000000000000000000000000000000000000000000000000000000000e1e2e7ffe1e2e7ffe1e2e7ffe1e2e7ffe1e2e7ffe1e2e7ffe1e2e7ffe1e2e7ffe1e2e7ffe1e2e7ffe1e2e7ffdcdde1ffd4d5daffcecfd4ff737a8cffd5e5d5ffd5d6dbfff7d8dbff4db380fff52a65ffc5d5c5ffe7c8cbff59595bff1e725cff7086b5ff7086b5ffc53b53ff8c6c3eff587539ff3760bfff8c6c3eff9854f1ff8990a3ff2e7de9ff007197ff2e7de9ff007197ff007197ff2e7de9ffb15c00ff3760bfff5a607dff8990a3ff2e7de9ff9854f1ffb15c00ff007197ff3760bfff587539ff8c6c3efff52a65ffe1e2e7ff92a2d7ffe1e2e7ffe1e2e7ffe1e2e7ffe1e2e7ff3760bfff92a2d7ff3760bfff3760bfff3760bfff2e7de9ff8990a3ff8990a3ffb0b9c7ff3760bfff8990a3ff8990a3ff3760bfff92a2d7fff52a65fff52a65ff2e7de9ff2e7de9ff587539ff587539ffb15c00ffb15c00ff3760bfff92a2d7ff2e7de9ff2e7de9ff2e7de9ff2e7de9ff8990a3ff", + "dialog": "f52a65fff52a65fff52a65fff52a65fff52a65fff52a65ff0000000000000000d3d8e3ffd4d5daff0000000000000000000000000000000000000000d4d5daff0000000000000000dcdee3ffdcdee3ffdcdee3ffdcdee3ffdcdee3ffdcdee3ffdcdee3ffdcdee3ffdcdee3ffdcdee3ffdcdee3ffdcdde1ffdcdde1ffcecfd4ff737a8cffd5e5d5ffd5d6dbfff7d8dbff4db380fff52a65ffc5d5c5ffe7c8cbff59595bff1e725cff7086b5ff7086b5ffc53b53ff8c6c3eff587539ff3760bfff8c6c3eff9854f1ff8990a3ff2e7de9ff007197ff2e7de9ff007197ff007197ff2e7de9ffb15c00ff3760bfff5a607dff8990a3ff2e7de9ff9854f1ffb15c00ff007197ff3760bfff587539ff8c6c3efff52a65ffe1e2e7ff92a2d7ffe1e2e7ffe1e2e7ffe1e2e7ffe1e2e7ff3760bfff92a2d7ff3760bfff3760bfff3760bfff2e7de9ff8990a3ff8990a3ffb0b9c7ff3760bfff8990a3ff8990a3ff3760bfff92a2d7fff52a65fff52a65ff2e7de9ff2e7de9ff587539ff587539ffb15c00ffb15c00ff3760bfff92a2d7ff2e7de9ff2e7de9ff2e7de9ff2e7de9ff8990a3ff", + "footer": "f52a65fff52a65fff52a65fff52a65fff52a65fff52a65ff0000000000000000d3d8e3ffd4d5daff0000000000000000000000000000000000000000d4d5daff0000000000000000dcdee3ffdcdee3ffdcdee3ffdcdee3ffdcdee3ffdcdee3ffdcdee3ffdcdee3ffdcdee3ffdcdee3ffdcdee3ffdcdde1ffdcdde1ffcecfd4ff737a8cffd5e5d5ffd5d6dbfff7d8dbff4db380fff52a65ffc5d5c5ffe7c8cbff59595bff1e725cff7086b5ff7086b5ffc53b53ff8c6c3eff587539ff3760bfff8c6c3eff9854f1ff8990a3ff2e7de9ff007197ff2e7de9ff007197ff007197ff2e7de9ffb15c00ff3760bfff5a607dff8990a3ff2e7de9ff9854f1ffb15c00ff007197ff3760bfff587539ff8c6c3efff52a65ffe1e2e7ff92a2d7ffe1e2e7ffe1e2e7ffe1e2e7ffe1e2e7ff3760bfff92a2d7ff3760bfff3760bfff3760bfff2e7de9ff8990a3ff8990a3ffb0b9c7ff3760bfff8990a3ff8990a3ff3760bfff92a2d7fff52a65fff52a65ff2e7de9ff2e7de9ff587539ff587539ffb15c00ffb15c00ff3760bfff92a2d7ff2e7de9ff2e7de9ff2e7de9ff2e7de9ff8990a3ff", + "decrease": "e0c0c3ffe0c0c3ffe0c0c3ffe0c0c3ffe0c0c3ffe0c0c3ff000000000000000093b0daffd4d5daff0000000000000000000000000000000000000000000000000000000000000000dcdee3ffdcdee3ffdcdee3ffdcdee3ffdcdee3ffdcdee3ffdcdee3ffdcdee3ffdcdee3ffdcdee3ffdcdee3ffd4d5daffcecfd4ff999a9fff737a8cffd5e5d5ffd5d6dbfff7d8dbff4db380ffe0c0c3ffc5d5c5ffe7c8cbff59595bff1e725cff7086b5ff7086b5ffc53b53ff8c6c3effc6cbc1ff3760bfff8c6c3effccc4deff3760bfffbecadcff007197ffbecadcff007197ff007197ffbecadcffd5c6bcff3760bfff5a607dff3760bfffbecadcffccc4deffd5c6bcff007197ff3760bfffc6cbc1ff8c6c3effe0c0c3ffdcdee3ff8990a3ffdcdee3ffdcdee3ffdcdee3ffdcdee3ff3760bfff8990a3ff3760bfff3760bfff3760bfffbecadcff3760bfff3760bfff728094ff3760bfff3760bfff3760bfff3760bfff8990a3ffe0c0c3ffe0c0c3ffbecadcffbecadcffc6cbc1ffc6cbc1ffd5c6bcffd5c6bcff3760bfff8990a3ffbecadcffbecadcffbecadcffbecadcff3760bfff", + "increase": "ddd4e1ffddd4e1ffddd4e1ffddd4e1ffddd4e1ffddd4e1ff0000000000000000dadde3ffe1e2e7ff0000000000000000000000000000000000000000000000000000000000000000e1e2e7ffe1e2e7ffe1e2e7ffe1e2e7ffe1e2e7ffe1e2e7ffe1e2e7ffe1e2e7ffe1e2e7ffe1e2e7ffe1e2e7ffe1e2e7ffdcdee3ffdcdde1ff737a8cffd5e5d5ffd5d6dbfff7d8dbff4db380ffddd4e1ffc5d5c5ffe7c8cbff59595bff1e725cff7086b5ff7086b5ffc53b53ff8c6c3effd1dadcff92a2d7ff8c6c3effd6d6e4ff999a9fffd3d8e3ff007197ffd3d8e3ff007197ff007197ffd3d8e3ffded5dcff92a2d7ff5a607dff999a9fffd3d8e3ffd6d6e4ffded5dcff007197ff92a2d7ffd1dadcff8c6c3effddd4e1ffe1e2e7ffcecfd4ffe1e2e7ffe1e2e7ffe1e2e7ffe1e2e7ff92a2d7ffcecfd4ff92a2d7ff92a2d7ff92a2d7ffd3d8e3ff999a9fff999a9fff2e7de9ff92a2d7ff999a9fff999a9fff92a2d7ffcecfd4ffddd4e1ffddd4e1ffd3d8e3ffd3d8e3ffd1dadcffd1dadcffded5dcffded5dcff92a2d7ffcecfd4ffd3d8e3ffd3d8e3ffd3d8e3ffd3d8e3ff999a9fff" + }, + "tokyonight/dark": { + "modes": ["light","dark"], + "hues": ["gray","red","green","blue","purple","accent","interactive","neutral"], + "hue": "c8d3f5ff828bb8ff72778eff595c71ff37394bff2a2b3cff202230ff1e1f2dff1a1b26ffd1c6c2ff998178ff887269ffff966cffa96a51ff42323aff34282fff2a2026ff221a20ffc6cac2ff828b78ff737a69ffc3e88dff7e945fff28393bff202e30ff192527ff151f22ffc4c9d2ff7e879bff6f7789ff82aaffff5f77aaff323644ff282b36ff20222bff1b1d25ffcac7d1ff8a839aff7a7388ffc099ffff836ca9ff373544ff2c2a36ff23222bff1d1c25ffd1c6c2ff998178ff887269ffff966cffa96a51ff42323aff34282fff2a2026ff221a20ffc4c9d2ff7e879bff6f7789ff82aaffff5f77aaff323644ff282b36ff20222bff1b1d25ffc8d3f5ff828bb8ff72778eff595c71ff37394bff2a2b3cff202230ff1e1f2dff1a1b26ff", + "categorical": "cac7d1ff8a839aff7a7388ffc099ffff836ca9ff373544ff2c2a36ff23222bff1d1c25ffd1c6c2ff998178ff887269ffff966cffa96a51ff42323aff34282fff2a2026ff221a20ffc6cac2ff828b78ff737a69ffc3e88dff7e945fff28393bff202e30ff192527ff151f22ffc4c9d2ff7e879bff6f7789ff82aaffff5f77aaff323644ff282b36ff20222bff1b1d25ff", + "base": "ff757fffff757fffff757fffff757fffff757fffff757fff0000000000000000323644ff202230ff00000000000000000000000000000000000000000000000000000000000000001a1b26ff1a1b26ff1a1b26ff1a1b26ff1a1b26ff1a1b26ff1a1b26ff1a1b26ff1a1b26ff1a1b26ff1a1b26ff202230ff2a2b3cff37394bff737aa2ff20303bff1e2030ff37222cffb8db87ffe26a75ff1b2b34ff2d1f26ff8f909aff4fd6beff828bb8ff828bb8ffc53b53ffffc777ffc3e88dffc8d3f5ffffc777ffc099ffff828bb8ff82aaffff86e1fcff82aaffff86e1fcff86e1fcff82aaffffff966cffc8d3f5ff9099b2ff828bb8ff82aaffffc099ffffff966cff86e1fcffc8d3f5ffc3e88dffffc777ffff757fff1a1b26ff72778eff1a1b26ff1a1b26ff1a1b26ff1a1b26ffc8d3f5ff72778effc8d3f5ffc8d3f5ffc8d3f5ff82aaffff828bb8ff828bb8ff7e879bffc8d3f5ff828bb8ff828bb8ffc8d3f5ff72778effff757fffff757fff82aaffff82aaffffc3e88dffc3e88dffff966cffff966cffc8d3f5ff72778eff82aaffff82aaffff82aaffff82aaffff828bb8ff", + "dialog": "ff757fffff757fffff757fffff757fffff757fffff757fff0000000000000000323644ff37394bff000000000000000000000000000000000000000037394bff0000000000000000202230ff202230ff202230ff202230ff202230ff202230ff202230ff202230ff202230ff202230ff202230ff202230ff2a2b3cff37394bff737aa2ff20303bff1e2030ff37222cffb8db87ffe26a75ff1b2b34ff2d1f26ff8f909aff4fd6beff828bb8ff828bb8ffc53b53ffffc777ffc3e88dffc8d3f5ffffc777ffc099ffff828bb8ff82aaffff86e1fcff82aaffff86e1fcff86e1fcff82aaffffff966cffc8d3f5ff9099b2ff828bb8ff82aaffffc099ffffff966cff86e1fcffc8d3f5ffc3e88dffffc777ffff757fff1a1b26ff72778eff1a1b26ff1a1b26ff1a1b26ff1a1b26ffc8d3f5ff72778effc8d3f5ffc8d3f5ffc8d3f5ff82aaffff828bb8ff828bb8ff7e879bffc8d3f5ff828bb8ff828bb8ffc8d3f5ff72778effff757fffff757fff82aaffff82aaffffc3e88dffc3e88dffff966cffff966cffc8d3f5ff72778eff82aaffff82aaffff82aaffff82aaffff828bb8ff", + "footer": "ff757fffff757fffff757fffff757fffff757fffff757fff0000000000000000323644ff37394bff000000000000000000000000000000000000000037394bff0000000000000000202230ff202230ff202230ff202230ff202230ff202230ff202230ff202230ff202230ff202230ff202230ff202230ff2a2b3cff37394bff737aa2ff20303bff1e2030ff37222cffb8db87ffe26a75ff1b2b34ff2d1f26ff8f909aff4fd6beff828bb8ff828bb8ffc53b53ffffc777ffc3e88dffc8d3f5ffffc777ffc099ffff828bb8ff82aaffff86e1fcff82aaffff86e1fcff86e1fcff82aaffffff966cffc8d3f5ff9099b2ff828bb8ff82aaffffc099ffffff966cff86e1fcffc8d3f5ffc3e88dffffc777ffff757fff1a1b26ff72778eff1a1b26ff1a1b26ff1a1b26ff1a1b26ffc8d3f5ff72778effc8d3f5ffc8d3f5ffc8d3f5ff82aaffff828bb8ff828bb8ff7e879bffc8d3f5ff828bb8ff828bb8ffc8d3f5ff72778effff757fffff757fff82aaffff82aaffffc3e88dffc3e88dffff966cffff966cffc8d3f5ff72778eff82aaffff82aaffff82aaffff82aaffff828bb8ff", + "decrease": "ff757fffff757fffff757fffff757fffff757fffff757fff00000000000000005f77aaff2a2b3cff00000000000000000000000000000000000000000000000000000000000000001e1f2dff1e1f2dff1e1f2dff1e1f2dff1e1f2dff1e1f2dff1e1f2dff1e1f2dff1e1f2dff1e1f2dff1e1f2dff2a2b3cff37394bff595c71ff737aa2ff20303bff1e2030ff37222cffb8db87ffe26a75ff1b2b34ff2d1f26ff8f909aff4fd6beffc8d3f5ffc8d3f5ffc53b53ffffc777ff737a69ffc8d3f5ffffc777ff7a7388ffc8d3f5ff6f7789ff86e1fcff6f7789ff86e1fcff86e1fcff6f7789ff887269ffc8d3f5ff9099b2ffc8d3f5ff6f7789ff7a7388ff887269ff86e1fcffc8d3f5ff737a69ffffc777ffff757fff1e1f2dff828bb8ff1e1f2dff1e1f2dff1e1f2dff1e1f2dffc8d3f5ff828bb8ffc8d3f5ffc8d3f5ffc8d3f5ff6f7789ffc8d3f5ffc8d3f5ffc4c9d2ffc8d3f5ffc8d3f5ffc8d3f5ffc8d3f5ff828bb8ffff757fffff757fff6f7789ff6f7789ff737a69ff737a69ff887269ff887269ffc8d3f5ff828bb8ff6f7789ff6f7789ff6f7789ff6f7789ffc8d3f5ff", + "increase": "ff757fffff757fffff757fffff757fffff757fffff757fff000000000000000020222bff1a1b26ff00000000000000000000000000000000000000000000000000000000000000001a1b26ff1a1b26ff1a1b26ff1a1b26ff1a1b26ff1a1b26ff1a1b26ff1a1b26ff1a1b26ff1a1b26ff1a1b26ff1a1b26ff1e1f2dff202230ff737aa2ff20303bff1e2030ff37222cffb8db87ffe26a75ff1b2b34ff2d1f26ff8f909aff4fd6beff595c71ff595c71ffc53b53ffffc777ff28393bff72778effffc777ff373544ff595c71ff323644ff86e1fcff323644ff86e1fcff86e1fcff323644ff42323aff72778eff9099b2ff595c71ff323644ff373544ff42323aff86e1fcff72778eff28393bffffc777ffff757fff1a1b26ff37394bff1a1b26ff1a1b26ff1a1b26ff1a1b26ff72778eff37394bff72778eff72778eff72778eff323644ff595c71ff595c71ff82aaffff72778eff595c71ff595c71ff72778eff37394bffff757fffff757fff323644ff323644ff28393bff28393bff42323aff42323aff72778eff37394bff323644ff323644ff323644ff323644ff595c71ff" + }, + "vesper/light": { + "modes": ["light","dark"], + "hues": ["gray","red","orange","green","accent","interactive","neutral"], + "hue": "101010ff505050ffa0a0a0ffb5b5b5ffcfcfcfffdededefff2f2f2fffbfbfbffffffffff301d1dff7f7170ffd4bfbeffff8080fff5c2bffff6dedcfffceeedfffef7f6fffefcfbff29211bff7a736fffccc3bcffffc799fff0dac9ffece2dbfff6f0ecfffbf8f6fffdfcfbff192622ff6e7774ffbac8c4ff99ffe4ffcbefe4ffd9e8e3ffebf4f1fff5faf8fffbfdfcff29211bff7a736fffccc3bcffffc799fff0dac9ffece2dbfff6f0ecfffbf8f6fffdfcfbff29211bff7a736fffccc3bcffffc799fff0dac9ffece2dbfff6f0ecfffbf8f6fffdfcfbff101010ff505050ffa0a0a0ffb5b5b5ffcfcfcfffdededefff2f2f2fffbfbfbffffffffff", + "categorical": "192622ff6e7774ffbac8c4ff99ffe4ffcbefe4ffd9e8e3ffebf4f1fff5faf8fffbfdfcff29211bff7a736fffccc3bcffffc799fff0dac9ffece2dbfff6f0ecfffbf8f6fffdfcfbff301d1dff7f7170ffd4bfbeffff8080fff5c2bffff6dedcfffceeedfffef7f6fffefcfbff", + "base": "ff8080ffff8080ffff8080ffff8080ffff8080ffff8080ff0000000000000000ece2dbfff2f2f2ff0000000000000000000000000000000000000000000000000000000000000000fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff2f2f2ffdededeffcfcfcfffd0d0d0ffe8f5e8fff8f8f8fff5e8e8ff99ffe4ffff8080ffe8f5e8fff5e8e8ff6a6a6aff99ffe4ffa0a0a0ffa0a0a0ffff8080ff101010ffa0a0a0ff101010ff101010ffffc799ff65737effffc799ffa0a0a0ffffc799ffa0a0a0ff101010ff101010ff101010ff101010ffffc799ff8b8b8bffffc799ffa0a0a0ffffc799ffa0a0a0ff101010ff99ffe4ffffc799ff101010ffffffffffa0a0a0ffffffffffffffffffffffffffffffffff101010ffa0a0a0ff101010ff101010ff101010ffffc799ff505050ff505050ff7a736fff101010ff505050ff505050ff101010ffa0a0a0ffff8080ffff8080ffffc799ffffc799ff99ffe4ff99ffe4ffffc799ffffc799ff101010ffa0a0a0ffffc799ffffc799ffffc799ffffc799ff505050ff", + "dialog": "ff8080ffff8080ffff8080ffff8080ffff8080ffff8080ff0000000000000000ece2dbffdededeff0000000000000000000000000000000000000000dededeff0000000000000000fbfbfbfffbfbfbfffbfbfbfffbfbfbfffbfbfbfffbfbfbfffbfbfbfffbfbfbfffbfbfbfffbfbfbfffbfbfbfff2f2f2fff2f2f2ffcfcfcfffd0d0d0ffe8f5e8fff8f8f8fff5e8e8ff99ffe4ffff8080ffe8f5e8fff5e8e8ff6a6a6aff99ffe4ffa0a0a0ffa0a0a0ffff8080ff101010ffa0a0a0ff101010ff101010ffffc799ff65737effffc799ffa0a0a0ffffc799ffa0a0a0ff101010ff101010ff101010ff101010ffffc799ff8b8b8bffffc799ffa0a0a0ffffc799ffa0a0a0ff101010ff99ffe4ffffc799ff101010ffffffffffa0a0a0ffffffffffffffffffffffffffffffffff101010ffa0a0a0ff101010ff101010ff101010ffffc799ff505050ff505050ff7a736fff101010ff505050ff505050ff101010ffa0a0a0ffff8080ffff8080ffffc799ffffc799ff99ffe4ff99ffe4ffffc799ffffc799ff101010ffa0a0a0ffffc799ffffc799ffffc799ffffc799ff505050ff", + "footer": "ff8080ffff8080ffff8080ffff8080ffff8080ffff8080ff0000000000000000ece2dbffdededeff0000000000000000000000000000000000000000dededeff0000000000000000fbfbfbfffbfbfbfffbfbfbfffbfbfbfffbfbfbfffbfbfbfffbfbfbfffbfbfbfffbfbfbfffbfbfbfffbfbfbfff2f2f2fff2f2f2ffcfcfcfffd0d0d0ffe8f5e8fff8f8f8fff5e8e8ff99ffe4ffff8080ffe8f5e8fff5e8e8ff6a6a6aff99ffe4ffa0a0a0ffa0a0a0ffff8080ff101010ffa0a0a0ff101010ff101010ffffc799ff65737effffc799ffa0a0a0ffffc799ffa0a0a0ff101010ff101010ff101010ff101010ffffc799ff8b8b8bffffc799ffa0a0a0ffffc799ffa0a0a0ff101010ff99ffe4ffffc799ff101010ffffffffffa0a0a0ffffffffffffffffffffffffffffffffff101010ffa0a0a0ff101010ff101010ff101010ffffc799ff505050ff505050ff7a736fff101010ff505050ff505050ff101010ffa0a0a0ffff8080ffff8080ffffc799ffffc799ff99ffe4ff99ffe4ffffc799ffffc799ff101010ffa0a0a0ffffc799ffffc799ffffc799ffffc799ff505050ff", + "decrease": "d4bfbeffd4bfbeffd4bfbeffd4bfbeffd4bfbeffd4bfbeff0000000000000000f0dac9ffdededeff0000000000000000000000000000000000000000000000000000000000000000fbfbfbfffbfbfbfffbfbfbfffbfbfbfffbfbfbfffbfbfbfffbfbfbfffbfbfbfffbfbfbfffbfbfbfffbfbfbffdededeffcfcfcfffb5b5b5ffd0d0d0ffe8f5e8fff8f8f8fff5e8e8ffbac8c4ffd4bfbeffe8f5e8fff5e8e8ff6a6a6affbac8c4ff505050ff505050ffd4bfbeff101010ff505050ff101010ff101010ffccc3bcff65737effccc3bcff505050ffccc3bcff505050ff101010ff101010ff101010ff101010ffccc3bcff8b8b8bffccc3bcff505050ffccc3bcff505050ff101010ffbac8c4ffccc3bcff101010fffbfbfbff505050fffbfbfbfffbfbfbfffbfbfbfffbfbfbff101010ff505050ff101010ff101010ff101010ffccc3bcff101010ff101010ff29211bff101010ff101010ff101010ff101010ff505050ffd4bfbeffd4bfbeffccc3bcffccc3bcffbac8c4ffbac8c4ffccc3bcffccc3bcff101010ff505050ffccc3bcffccc3bcffccc3bcffccc3bcff101010ff", + "increase": "f6dedcfff6dedcfff6dedcfff6dedcfff6dedcfff6dedcff0000000000000000fbf8f6ffffffffff0000000000000000000000000000000000000000000000000000000000000000fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffbfbfbfff2f2f2ffd0d0d0ffe8f5e8fff8f8f8fff5e8e8ffd9e8e3fff6dedcffe8f5e8fff5e8e8ff6a6a6affd9e8e3ffcfcfcfffcfcfcffff6dedcffa0a0a0ffcfcfcfffa0a0a0ffa0a0a0ffece2dbff65737effece2dbffcfcfcfffece2dbffcfcfcfffa0a0a0ffa0a0a0ffa0a0a0ffa0a0a0ffece2dbff8b8b8bffece2dbffcfcfcfffece2dbffcfcfcfffa0a0a0ffd9e8e3ffece2dbffa0a0a0ffffffffffcfcfcfffffffffffffffffffffffffffffffffffa0a0a0ffcfcfcfffa0a0a0ffa0a0a0ffa0a0a0ffece2dbffb5b5b5ffb5b5b5ffffc799ffa0a0a0ffb5b5b5ffb5b5b5ffa0a0a0ffcfcfcffff6dedcfff6dedcffece2dbffece2dbffd9e8e3ffd9e8e3ffece2dbffece2dbffa0a0a0ffcfcfcfffece2dbffece2dbffece2dbffece2dbffb5b5b5ff" + }, + "vesper/dark": { + "modes": ["light","dark"], + "hues": ["gray","red","orange","green","accent","interactive","neutral"], + "hue": "ffffffffa0a0a0ff858585ff4f4f4fff333333ff242424ff191919ff161616ff101010fffef0efffaf918fff987d7cffff8080ffa15656ff3a2c2cff2b2121ff1e1818ff141010fff8f2eeffa3968cff8e8279ffffc799ff99785eff342e2aff262320ff1b1917ff121110ffedf6f3ff8a9e98ff778984ff99ffe4ff5b9586ff28312fff1e2523ff171a19ff101211fff8f2eeffa3968cff8e8279ffffc799ff99785eff342e2aff262320ff1b1917ff121110fff8f2eeffa3968cff8e8279ffffc799ff99785eff342e2aff262320ff1b1917ff121110ffffffffffa0a0a0ff858585ff4f4f4fff333333ff242424ff191919ff161616ff101010ff", + "categorical": "edf6f3ff8a9e98ff778984ff99ffe4ff5b9586ff28312fff1e2523ff171a19ff101211fff8f2eeffa3968cff8e8279ffffc799ff99785eff342e2aff262320ff1b1917ff121110fffef0efffaf918fff987d7cffff8080ffa15656ff3a2c2cff2b2121ff1e1818ff141010ff", + "base": "ff8080ffff8080ffff8080ffff8080ffff8080ffff8080ff0000000000000000342e2aff191919ff0000000000000000000000000000000000000000000000000000000000000000101010ff101010ff101010ff101010ff101010ff101010ff101010ff101010ff101010ff101010ff101010ff191919ff242424ff333333ff282828ff0d2818ff101010ff281a1aff99ffe4ffff8080ff0d2818ff281a1affa0a0a0ff99ffe4ffa0a0a0ffa0a0a0ffff8080ffffffffffa0a0a0ffffffffffffffffffffc799ff65737effffc799ffa0a0a0ffffc799ffa0a0a0ffffffffffffffffffffffffffffffffffffc799ff8b8b8bffffc799ffa0a0a0ffffc799ffa0a0a0ffffffffff99ffe4ffffc799ffffffffff101010ff858585ff101010ff101010ff101010ff101010ffffffffff858585ffffffffffffffffffffffffffffc799ffa0a0a0ffa0a0a0ffa3968cffffffffffa0a0a0ffa0a0a0ffffffffff858585ffff8080ffff8080ffffc799ffffc799ff99ffe4ff99ffe4ffffc799ffffc799ffffffffff858585ffffc799ffffc799ffffc799ffffc799ffa0a0a0ff", + "dialog": "ff8080ffff8080ffff8080ffff8080ffff8080ffff8080ff0000000000000000342e2aff333333ff0000000000000000000000000000000000000000333333ff0000000000000000191919ff191919ff191919ff191919ff191919ff191919ff191919ff191919ff191919ff191919ff191919ff191919ff242424ff333333ff282828ff0d2818ff101010ff281a1aff99ffe4ffff8080ff0d2818ff281a1affa0a0a0ff99ffe4ffa0a0a0ffa0a0a0ffff8080ffffffffffa0a0a0ffffffffffffffffffffc799ff65737effffc799ffa0a0a0ffffc799ffa0a0a0ffffffffffffffffffffffffffffffffffffc799ff8b8b8bffffc799ffa0a0a0ffffc799ffa0a0a0ffffffffff99ffe4ffffc799ffffffffff101010ff858585ff101010ff101010ff101010ff101010ffffffffff858585ffffffffffffffffffffffffffffc799ffa0a0a0ffa0a0a0ffa3968cffffffffffa0a0a0ffa0a0a0ffffffffff858585ffff8080ffff8080ffffc799ffffc799ff99ffe4ff99ffe4ffffc799ffffc799ffffffffff858585ffffc799ffffc799ffffc799ffffc799ffa0a0a0ff", + "footer": "ff8080ffff8080ffff8080ffff8080ffff8080ffff8080ff0000000000000000342e2aff333333ff0000000000000000000000000000000000000000333333ff0000000000000000191919ff191919ff191919ff191919ff191919ff191919ff191919ff191919ff191919ff191919ff191919ff191919ff242424ff333333ff282828ff0d2818ff101010ff281a1aff99ffe4ffff8080ff0d2818ff281a1affa0a0a0ff99ffe4ffa0a0a0ffa0a0a0ffff8080ffffffffffa0a0a0ffffffffffffffffffffc799ff65737effffc799ffa0a0a0ffffc799ffa0a0a0ffffffffffffffffffffffffffffffffffffc799ff8b8b8bffffc799ffa0a0a0ffffc799ffa0a0a0ffffffffff99ffe4ffffc799ffffffffff101010ff858585ff101010ff101010ff101010ff101010ffffffffff858585ffffffffffffffffffffffffffffc799ffa0a0a0ffa0a0a0ffa3968cffffffffffa0a0a0ffa0a0a0ffffffffff858585ffff8080ffff8080ffffc799ffffc799ff99ffe4ff99ffe4ffffc799ffffc799ffffffffff858585ffffc799ffffc799ffffc799ffffc799ffa0a0a0ff", + "decrease": "987d7cff987d7cff987d7cff987d7cff987d7cff987d7cff000000000000000099785eff242424ff0000000000000000000000000000000000000000000000000000000000000000161616ff161616ff161616ff161616ff161616ff161616ff161616ff161616ff161616ff161616ff161616ff242424ff333333ff4f4f4fff282828ff0d2818ff161616ff281a1aff778984ff987d7cff0d2818ff281a1affffffffff778984ffffffffffffffffff987d7cffffffffffffffffffffffffffffffffff8e8279ff65737eff8e8279ffffffffff8e8279ffffffffffffffffffffffffffffffffffffffffff8e8279ff8b8b8bff8e8279ffffffffff8e8279ffffffffffffffffff778984ff8e8279ffffffffff161616ffa0a0a0ff161616ff161616ff161616ff161616ffffffffffa0a0a0ffffffffffffffffffffffffff8e8279fffffffffffffffffff8f2eeffffffffffffffffffffffffffffffffffa0a0a0ff987d7cff987d7cff8e8279ff8e8279ff778984ff778984ff8e8279ff8e8279ffffffffffa0a0a0ff8e8279ff8e8279ff8e8279ff8e8279ffffffffff", + "increase": "3a2c2cff3a2c2cff3a2c2cff3a2c2cff3a2c2cff3a2c2cff00000000000000001b1917ff101010ff0000000000000000000000000000000000000000000000000000000000000000101010ff101010ff101010ff101010ff101010ff101010ff101010ff101010ff101010ff101010ff101010ff101010ff161616ff191919ff282828ff0d2818ff101010ff281a1aff28312fff3a2c2cff0d2818ff281a1aff4f4f4fff28312fff4f4f4fff4f4f4fff3a2c2cff858585ff4f4f4fff858585ff858585ff342e2aff65737eff342e2aff4f4f4fff342e2aff4f4f4fff858585ff858585ff858585ff858585ff342e2aff8b8b8bff342e2aff4f4f4fff342e2aff4f4f4fff858585ff28312fff342e2aff858585ff101010ff333333ff101010ff101010ff101010ff101010ff858585ff333333ff858585ff858585ff858585ff342e2aff4f4f4fff4f4f4fffffc799ff858585ff4f4f4fff4f4f4fff858585ff333333ff3a2c2cff3a2c2cff342e2aff342e2aff28312fff28312fff342e2aff342e2aff858585ff333333ff342e2aff342e2aff342e2aff342e2aff4f4f4fff" + }, + "vercel/light": { + "modes": ["light","dark"], + "hues": ["gray","red","orange","green","blue","purple","accent","interactive","neutral"], + "hue": "171717ff666666ff858585ffb5b5b5ffcfcfcfffdededefff2f2f2fffbfbfbffffffffff3c2322ff9b8786ffbca09fffdc3545ffedacaafffbdddbffffedecfffff6f6fffffbfbff372719ff968a7fffb5a596ffff9500fff3caa6fff3e0d1fffaefe6fffdf8f3fffefcfaff222e22ff868f86ffa0ac9fff388e3cffa9c7a7ffdbe9daffecf4ebfff6faf6fffbfdfbff1e2b3fff838d9cff9ba9beff0070f3ff9dbff2ffd6e6fdffeaf2fffff5f9fffffbfcffff2f2639ff8f8997ffaca4b7ff8e4ec6ffc6b0dfffe9e0f5fff4effcfffaf7fefffdfcfeff2f2639ff8f8997ffaca4b7ff8e4ec6ffc6b0dfffe9e0f5fff4effcfffaf7fefffdfcfeff1e2b3fff838d9cff9ba9beff0070f3ff9dbff2ffd6e6fdffeaf2fffff5f9fffffbfcffff171717ff666666ff858585ffb5b5b5ffcfcfcfffdededefff2f2f2fffbfbfbffffffffff", + "categorical": "1e2b3fff838d9cff9ba9beff0070f3ff9dbff2ffd6e6fdffeaf2fffff5f9fffffbfcffff2f2639ff8f8997ffaca4b7ff8e4ec6ffc6b0dfffe9e0f5fff4effcfffaf7fefffdfcfeff222e22ff868f86ffa0ac9fff388e3cffa9c7a7ffdbe9daffecf4ebfff6faf6fffbfdfbff372719ff968a7fffb5a596ffff9500fff3caa6fff3e0d1fffaefe6fffdf8f3fffefcfaff3c2322ff9b8786ffbca09fffdc3545ffedacaafffbdddbffffedecfffff6f6fffffbfbff", + "base": "dc3545ffdc3545ffdc3545ffdc3545ffdc3545ffdc3545ff0000000000000000d6e6fdfff2f2f2ff0000000000000000000000000000000000000000000000000000000000000000fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff2f2f2ffdededeffcfcfcfffeaeaeaffe6f9e9fffffffffffdecedff46a758ffe5484dffd6f5d6ffffe5e5ff666666ff46a758ff666666ff666666ffe5484dff666666ff46a758ff171717ffffb224ff8e4ec6ff999999ff12a594ff12a594ff0070f3ff12a594ff0070f3ff171717ffe93d82ff171717ff999999ff888888ff8e4ec6ffe93d82ffffb224ffe93d82ff171717ff46a758ff12a594ff0070f3ffffffffff858585ffffffffffffffffffffffffffffffffff171717ff858585ff171717ff171717ff171717ff0070f3ff666666ff666666ff838d9cff171717ff666666ff666666ff171717ff858585ffdc3545ffdc3545ff0070f3ff0070f3ff388e3cff388e3cffff9500ffff9500ff171717ff858585ff0070f3ff0070f3ff0070f3ff0070f3ff666666ff", + "dialog": "dc3545ffdc3545ffdc3545ffdc3545ffdc3545ffdc3545ff0000000000000000d6e6fdffdededeff0000000000000000000000000000000000000000dededeff0000000000000000fbfbfbfffbfbfbfffbfbfbfffbfbfbfffbfbfbfffbfbfbfffbfbfbfffbfbfbfffbfbfbfffbfbfbfffbfbfbfff2f2f2fff2f2f2ffcfcfcfffeaeaeaffe6f9e9fffffffffffdecedff46a758ffe5484dffd6f5d6ffffe5e5ff666666ff46a758ff666666ff666666ffe5484dff666666ff46a758ff171717ffffb224ff8e4ec6ff999999ff12a594ff12a594ff0070f3ff12a594ff0070f3ff171717ffe93d82ff171717ff999999ff888888ff8e4ec6ffe93d82ffffb224ffe93d82ff171717ff46a758ff12a594ff0070f3ffffffffff858585ffffffffffffffffffffffffffffffffff171717ff858585ff171717ff171717ff171717ff0070f3ff666666ff666666ff838d9cff171717ff666666ff666666ff171717ff858585ffdc3545ffdc3545ff0070f3ff0070f3ff388e3cff388e3cffff9500ffff9500ff171717ff858585ff0070f3ff0070f3ff0070f3ff0070f3ff666666ff", + "footer": "dc3545ffdc3545ffdc3545ffdc3545ffdc3545ffdc3545ff0000000000000000d6e6fdffdededeff0000000000000000000000000000000000000000dededeff0000000000000000fbfbfbfffbfbfbfffbfbfbfffbfbfbfffbfbfbfffbfbfbfffbfbfbfffbfbfbfffbfbfbfffbfbfbfffbfbfbfff2f2f2fff2f2f2ffcfcfcfffeaeaeaffe6f9e9fffffffffffdecedff46a758ffe5484dffd6f5d6ffffe5e5ff666666ff46a758ff666666ff666666ffe5484dff666666ff46a758ff171717ffffb224ff8e4ec6ff999999ff12a594ff12a594ff0070f3ff12a594ff0070f3ff171717ffe93d82ff171717ff999999ff888888ff8e4ec6ffe93d82ffffb224ffe93d82ff171717ff46a758ff12a594ff0070f3ffffffffff858585ffffffffffffffffffffffffffffffffff171717ff858585ff171717ff171717ff171717ff0070f3ff666666ff666666ff838d9cff171717ff666666ff666666ff171717ff858585ffdc3545ffdc3545ff0070f3ff0070f3ff388e3cff388e3cffff9500ffff9500ff171717ff858585ff0070f3ff0070f3ff0070f3ff0070f3ff666666ff", + "decrease": "bca09fffbca09fffbca09fffbca09fffbca09fffbca09fff00000000000000009dbff2ffdededeff0000000000000000000000000000000000000000000000000000000000000000fbfbfbfffbfbfbfffbfbfbfffbfbfbfffbfbfbfffbfbfbfffbfbfbfffbfbfbfffbfbfbfffbfbfbfffbfbfbffdededeffcfcfcfffb5b5b5ffeaeaeaffe6f9e9fffbfbfbfffdecedff46a758ffe5484dffd6f5d6ffffe5e5ff171717ff46a758ff171717ff171717ffe5484dff171717ff46a758ff171717ffffb224ffaca4b7ff999999ff12a594ff12a594ff9ba9beff12a594ff9ba9beff171717ffe93d82ff171717ff999999ff888888ffaca4b7ffe93d82ffffb224ffe93d82ff171717ff46a758ff12a594ff9ba9befffbfbfbff666666fffbfbfbfffbfbfbfffbfbfbfffbfbfbff171717ff666666ff171717ff171717ff171717ff9ba9beff171717ff171717ff1e2b3fff171717ff171717ff171717ff171717ff666666ffbca09fffbca09fff9ba9beff9ba9beffa0ac9fffa0ac9fffb5a596ffb5a596ff171717ff666666ff9ba9beff9ba9beff9ba9beff9ba9beff171717ff", + "increase": "fbdddbfffbdddbfffbdddbfffbdddbfffbdddbfffbdddbff0000000000000000f5f9ffffffffffff0000000000000000000000000000000000000000000000000000000000000000fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffbfbfbfff2f2f2ffeaeaeaffe6f9e9fffffffffffdecedff46a758ffe5484dffd6f5d6ffffe5e5ffb5b5b5ff46a758ffb5b5b5ffb5b5b5ffe5484dffb5b5b5ff46a758ff858585ffffb224ffe9e0f5ff999999ff12a594ff12a594ffd6e6fdff12a594ffd6e6fdff858585ffe93d82ff858585ff999999ff888888ffe9e0f5ffe93d82ffffb224ffe93d82ff858585ff46a758ff12a594ffd6e6fdffffffffffcfcfcfffffffffffffffffffffffffffffffffff858585ffcfcfcfff858585ff858585ff858585ffd6e6fdffb5b5b5ffb5b5b5ff0070f3ff858585ffb5b5b5ffb5b5b5ff858585ffcfcfcffffbdddbfffbdddbffd6e6fdffd6e6fdffdbe9daffdbe9dafff3e0d1fff3e0d1ff858585ffcfcfcfffd6e6fdffd6e6fdffd6e6fdffd6e6fdffb5b5b5ff" + }, + "vercel/dark": { + "modes": ["light","dark"], + "hues": ["gray","red","orange","green","blue","purple","accent","interactive","neutral"], + "hue": "edededff878787ff666666ff222222ff101010ff040404ff010101ff000000ff000000ffeedddcff9a7673ff7c5c5affe5484dff7b2124ff260f0fff100403ff020000ff000000ffe8e0d6ff8e7e66ff71624effffb224ff7c5510ff201505ff0c0601ff010100ff000000ffdce4dcff738674ff596a5aff46a758ff1f5629ff0e1b0fff030904ff000100ff000000ffd9e2f0ff6e829fff546680ff0070f3ff013b86ff0a172aff020713ff000103ff000000ffe4dfecff877a96ff6a5f78ff8e4ec6ff4d296dff1b1324ff09050fff010002ff000000ffe4dfecff877a96ff6a5f78ff8e4ec6ff4d296dff1b1324ff09050fff010002ff000000ffd9e2f0ff6e829fff546680ff0070f3ff013b86ff0a172aff020713ff000103ff000000ffedededff878787ff666666ff222222ff101010ff040404ff010101ff000000ff000000ff", + "categorical": "d9e2f0ff6e829fff546680ff0070f3ff013b86ff0a172aff020713ff000103ff000000ffe4dfecff877a96ff6a5f78ff8e4ec6ff4d296dff1b1324ff09050fff010002ff000000ffdce4dcff738674ff596a5aff46a758ff1f5629ff0e1b0fff030904ff000100ff000000ffe8e0d6ff8e7e66ff71624effffb224ff7c5510ff201505ff0c0601ff010100ff000000ffeedddcff9a7673ff7c5c5affe5484dff7b2124ff260f0fff100403ff020000ff000000ff", + "base": "e5484dffe5484dffe5484dffe5484dffe5484dffe5484dff00000000000000000a172aff010101ff0000000000000000000000000000000000000000000000000000000000000000000000ff000000ff000000ff000000ff000000ff000000ff000000ff000000ff000000ff000000ff000000ff010101ff040404ff101010ff1f1f1fff0b1d0fff000000ff2a1314ff63c46dffff6166ff0f2613ff3c1618ff8a8a8aff63c46dff878787ff878787ffff6166ff878787ff63c46dffedededfff2a700ffbf7af0ff454545ff0ac7acff50e3c2ff52a8ffff0ac7acff52a8ffffedededfff75590ffedededff454545ff878787ffbf7af0fff75590fff2a700fff75590ffedededff63c46dff0ac7acff52a8ffff000000ff666666ff000000ff000000ff000000ff000000ffedededff666666ffedededffedededffedededff0070f3ff878787ff878787ff6e829fffedededff878787ff878787ffedededff666666ffe5484dffe5484dff52a8ffff52a8ffff46a758ff46a758ffffb224ffffb224ffedededff666666ff0070f3ff0070f3ff0070f3ff0070f3ff878787ff", + "dialog": "e5484dffe5484dffe5484dffe5484dffe5484dffe5484dff00000000000000000a172aff101010ff0000000000000000000000000000000000000000101010ff0000000000000000010101ff010101ff010101ff010101ff010101ff010101ff010101ff010101ff010101ff010101ff010101ff010101ff040404ff101010ff1f1f1fff0b1d0fff000000ff2a1314ff63c46dffff6166ff0f2613ff3c1618ff8a8a8aff63c46dff878787ff878787ffff6166ff878787ff63c46dffedededfff2a700ffbf7af0ff454545ff0ac7acff50e3c2ff52a8ffff0ac7acff52a8ffffedededfff75590ffedededff454545ff878787ffbf7af0fff75590fff2a700fff75590ffedededff63c46dff0ac7acff52a8ffff000000ff666666ff000000ff000000ff000000ff000000ffedededff666666ffedededffedededffedededff0070f3ff878787ff878787ff6e829fffedededff878787ff878787ffedededff666666ffe5484dffe5484dff52a8ffff52a8ffff46a758ff46a758ffffb224ffffb224ffedededff666666ff0070f3ff0070f3ff0070f3ff0070f3ff878787ff", + "footer": "e5484dffe5484dffe5484dffe5484dffe5484dffe5484dff00000000000000000a172aff101010ff0000000000000000000000000000000000000000101010ff0000000000000000010101ff010101ff010101ff010101ff010101ff010101ff010101ff010101ff010101ff010101ff010101ff010101ff040404ff101010ff1f1f1fff0b1d0fff000000ff2a1314ff63c46dffff6166ff0f2613ff3c1618ff8a8a8aff63c46dff878787ff878787ffff6166ff878787ff63c46dffedededfff2a700ffbf7af0ff454545ff0ac7acff50e3c2ff52a8ffff0ac7acff52a8ffffedededfff75590ffedededff454545ff878787ffbf7af0fff75590fff2a700fff75590ffedededff63c46dff0ac7acff52a8ffff000000ff666666ff000000ff000000ff000000ff000000ffedededff666666ffedededffedededffedededff0070f3ff878787ff878787ff6e829fffedededff878787ff878787ffedededff666666ffe5484dffe5484dff52a8ffff52a8ffff46a758ff46a758ffffb224ffffb224ffedededff666666ff0070f3ff0070f3ff0070f3ff0070f3ff878787ff", + "decrease": "7c5c5aff7c5c5aff7c5c5aff7c5c5aff7c5c5aff7c5c5aff0000000000000000013b86ff040404ff0000000000000000000000000000000000000000000000000000000000000000000000ff000000ff000000ff000000ff000000ff000000ff000000ff000000ff000000ff000000ff000000ff040404ff101010ff222222ff1f1f1fff0b1d0fff000000ff2a1314ff63c46dffff6166ff0f2613ff3c1618ff8a8a8aff63c46dffedededffedededffff6166ffedededff63c46dffedededfff2a700ffbf7af0ff454545ff0ac7acff50e3c2ff52a8ffff0ac7acff52a8ffffedededfff75590ffedededff454545ffedededffbf7af0fff75590fff2a700fff75590ffedededff63c46dff0ac7acff52a8ffff000000ff878787ff000000ff000000ff000000ff000000ffedededff878787ffedededffedededffedededff546680ffedededffedededffd9e2f0ffedededffedededffedededffedededff878787ff7c5c5aff7c5c5aff52a8ffff52a8ffff596a5aff596a5aff71624eff71624effedededff878787ff546680ff546680ff546680ff546680ffedededff", + "increase": "260f0fff260f0fff260f0fff260f0fff260f0fff260f0fff0000000000000000000103ff000000ff0000000000000000000000000000000000000000000000000000000000000000000000ff000000ff000000ff000000ff000000ff000000ff000000ff000000ff000000ff000000ff000000ff000000ff000000ff010101ff1f1f1fff0b1d0fff000000ff2a1314ff63c46dffff6166ff0f2613ff3c1618ff8a8a8aff63c46dff222222ff222222ffff6166ff222222ff63c46dff666666fff2a700ffbf7af0ff454545ff0ac7acff50e3c2ff52a8ffff0ac7acff52a8ffff666666fff75590ff666666ff454545ff222222ffbf7af0fff75590fff2a700fff75590ff666666ff63c46dff0ac7acff52a8ffff000000ff101010ff000000ff000000ff000000ff000000ff666666ff101010ff666666ff666666ff666666ff0a172aff222222ff222222ff0070f3ff666666ff222222ff222222ff666666ff101010ff260f0fff260f0fff52a8ffff52a8ffff0e1b0fff0e1b0fff201505ff201505ff666666ff101010ff0a172aff0a172aff0a172aff0a172aff222222ff" + }, + "zenburn/light": { + "modes": ["light","dark"], + "hues": ["gray","red","yellow","green","cyan","purple","accent","interactive","neutral"], + "hue": "3f3f3fff6f6f6fff9c9c95ffb5b5a6ffcfcfc0ffdedecefff2f2e2fffafbeaffffffefff5c5353ff9a9494ffc7bebdff8f5f5fffc7b2b2ffeae0e0fff4efeefff9f6f6fffcfbfbff56564eff969691ffc1c1b9ff8f8f5fffc4c5b2ffe3e3dbfff0f0ebfff7f7f5fffbfbfaff505850ff929892ffbbc3bbff5f8f5fffb3c6b2ffdde6ddffedf2ecfff6f8f5fffafbfaff515659ff939698ffbcc1c4ff5f7f8fffb2bfc6ffdee4e7ffedf1f2fff6f8f8fffafbfbff5b525bff9a9399ffc5bdc5ff8f5f8fffc7b3c6ffe9e0e8fff3eef3fff9f6f9fffcfafcff515659ff939698ffbcc1c4ff5f7f8fffb2bfc6ffdee4e7ffedf1f2fff6f8f8fffafbfbff515659ff939698ffbcc1c4ff5f7f8fffb2bfc6ffdee4e7ffedf1f2fff6f8f8fffafbfbff3f3f3fff6f6f6fff9c9c95ffb5b5a6ffcfcfc0ffdedecefff2f2e2fffafbeaffffffefff", + "categorical": "5b525bff9a9399ffc5bdc5ff8f5f8fffc7b3c6ffe9e0e8fff3eef3fff9f6f9fffcfafcff515659ff939698ffbcc1c4ff5f7f8fffb2bfc6ffdee4e7ffedf1f2fff6f8f8fffafbfbff505850ff929892ffbbc3bbff5f8f5fffb3c6b2ffdde6ddffedf2ecfff6f8f5fffafbfaff56564eff969691ffc1c1b9ff8f8f5fffc4c5b2ffe3e3dbfff0f0ebfff7f7f5fffbfbfaff5c5353ff9a9494ffc7bebdff8f5f5fffc7b2b2ffeae0e0fff4efeefff9f6f6fffcfbfbff", + "base": "8f5f5fff8f5f5fff8f5f5fff8f5f5fff8f5f5fff8f5f5fff0000000000000000dee4e7fff2f2e2ff0000000000000000000000000000000000000000000000000000000000000000ffffefffffffefffffffefffffffefffffffefffffffefffffffefffffffefffffffefffffffefffffffeffff2f2e2ffdedeceffcfcfc0ffd0d0c0ffefffeffff5f5e5ffffefefff5f8f5fff8f5f5fffefffefffffefefff6f6f6fff5f8f5fff6f6f6fff5f8f8fff8f5f5fff6f6f6fff5f8f5fff3f3f3fff8f8f5fff8f8f5fff6f6f6fff5f7f8fff5f8f8fff5f7f8fff5f8f8fff5f8f8fff5f7f8fff8f7f5fff3f3f3fff5f7f8fff5f7f5fff5f7f8fff8f8f5fff5f8f5fff8f8f5fff3f3f3fff8f5f5fff5f8f8fff3f3f3fffffffefff9c9c95ffffffefffffffefffffffefffffffefff3f3f3fff9c9c95ff3f3f3fff3f3f3fff3f3f3fff5f7f8fff6f6f6fff6f6f6fff939698ff3f3f3fff6f6f6fff6f6f6fff3f3f3fff9c9c95ff8f5f5fff8f5f5fff8f7f5fff8f7f5fff5f8f5fff5f8f5fff8f8f5fff8f8f5fff3f3f3fff9c9c95ff5f7f8fff5f7f8fff5f7f8fff5f7f8fff6f6f6fff", + "dialog": "8f5f5fff8f5f5fff8f5f5fff8f5f5fff8f5f5fff8f5f5fff0000000000000000dee4e7ffdedeceff0000000000000000000000000000000000000000dedeceff0000000000000000fafbeafffafbeafffafbeafffafbeafffafbeafffafbeafffafbeafffafbeafffafbeafffafbeafffafbeafff2f2e2fff2f2e2ffcfcfc0ffd0d0c0ffefffeffff5f5e5ffffefefff5f8f5fff8f5f5fffefffefffffefefff6f6f6fff5f8f5fff6f6f6fff5f8f8fff8f5f5fff6f6f6fff5f8f5fff3f3f3fff8f8f5fff8f8f5fff6f6f6fff5f7f8fff5f8f8fff5f7f8fff5f8f8fff5f8f8fff5f7f8fff8f7f5fff3f3f3fff5f7f8fff5f7f5fff5f7f8fff8f8f5fff5f8f5fff8f8f5fff3f3f3fff8f5f5fff5f8f8fff3f3f3fffffffefff9c9c95ffffffefffffffefffffffefffffffefff3f3f3fff9c9c95ff3f3f3fff3f3f3fff3f3f3fff5f7f8fff6f6f6fff6f6f6fff939698ff3f3f3fff6f6f6fff6f6f6fff3f3f3fff9c9c95ff8f5f5fff8f5f5fff8f7f5fff8f7f5fff5f8f5fff5f8f5fff8f8f5fff8f8f5fff3f3f3fff9c9c95ff5f7f8fff5f7f8fff5f7f8fff5f7f8fff6f6f6fff", + "footer": "8f5f5fff8f5f5fff8f5f5fff8f5f5fff8f5f5fff8f5f5fff0000000000000000dee4e7ffdedeceff0000000000000000000000000000000000000000dedeceff0000000000000000fafbeafffafbeafffafbeafffafbeafffafbeafffafbeafffafbeafffafbeafffafbeafffafbeafffafbeafff2f2e2fff2f2e2ffcfcfc0ffd0d0c0ffefffeffff5f5e5ffffefefff5f8f5fff8f5f5fffefffefffffefefff6f6f6fff5f8f5fff6f6f6fff5f8f8fff8f5f5fff6f6f6fff5f8f5fff3f3f3fff8f8f5fff8f8f5fff6f6f6fff5f7f8fff5f8f8fff5f7f8fff5f8f8fff5f8f8fff5f7f8fff8f7f5fff3f3f3fff5f7f8fff5f7f5fff5f7f8fff8f8f5fff5f8f5fff8f8f5fff3f3f3fff8f5f5fff5f8f8fff3f3f3fffffffefff9c9c95ffffffefffffffefffffffefffffffefff3f3f3fff9c9c95ff3f3f3fff3f3f3fff3f3f3fff5f7f8fff6f6f6fff6f6f6fff939698ff3f3f3fff6f6f6fff6f6f6fff3f3f3fff9c9c95ff8f5f5fff8f5f5fff8f7f5fff8f7f5fff5f8f5fff5f8f5fff8f8f5fff8f8f5fff3f3f3fff9c9c95ff5f7f8fff5f7f8fff5f7f8fff5f7f8fff6f6f6fff", + "decrease": "c7bebdffc7bebdffc7bebdffc7bebdffc7bebdffc7bebdff0000000000000000b2bfc6ffdedeceff0000000000000000000000000000000000000000000000000000000000000000fafbeafffafbeafffafbeafffafbeafffafbeafffafbeafffafbeafffafbeafffafbeafffafbeafffafbeaffdedeceffcfcfc0ffb5b5a6ffd0d0c0ffefffeffff5f5e5ffffefefffbbc3bbffc7bebdffefffefffffefefff3f3f3fffbbc3bbff3f3f3fff5f8f8fffc7bebdff3f3f3fffbbc3bbff3f3f3fffc1c1b9ffc1c1b9ff3f3f3fffbcc1c4ff5f8f8fffbcc1c4ff5f8f8fff5f8f8fffbcc1c4ff8f7f5fff3f3f3fffbcc1c4ff5f7f5fffbcc1c4ffc1c1b9ffbbc3bbffc1c1b9ff3f3f3fffc7bebdff5f8f8fff3f3f3ffffafbeaff6f6f6ffffafbeafffafbeafffafbeafffafbeaff3f3f3fff6f6f6fff3f3f3fff3f3f3fff3f3f3fffbcc1c4ff3f3f3fff3f3f3fff515659ff3f3f3fff3f3f3fff3f3f3fff3f3f3fff6f6f6fffc7bebdffc7bebdff8f7f5fff8f7f5fffbbc3bbffbbc3bbffc1c1b9ffc1c1b9ff3f3f3fff6f6f6fffbcc1c4ffbcc1c4ffbcc1c4ffbcc1c4ff3f3f3fff", + "increase": "eae0e0ffeae0e0ffeae0e0ffeae0e0ffeae0e0ffeae0e0ff0000000000000000f6f8f8ffffffefff0000000000000000000000000000000000000000000000000000000000000000ffffefffffffefffffffefffffffefffffffefffffffefffffffefffffffefffffffefffffffefffffffefffffffeffffafbeafff2f2e2ffd0d0c0ffefffeffff5f5e5ffffefefffdde6ddffeae0e0ffefffefffffefefffb5b5a6ffdde6ddffb5b5a6ff5f8f8fffeae0e0ffb5b5a6ffdde6ddff9c9c95ffe3e3dbffe3e3dbffb5b5a6ffdee4e7ff5f8f8fffdee4e7ff5f8f8fff5f8f8fffdee4e7ff8f7f5fff9c9c95ffdee4e7ff5f7f5fffdee4e7ffe3e3dbffdde6ddffe3e3dbff9c9c95ffeae0e0ff5f8f8fff9c9c95ffffffefffcfcfc0ffffffefffffffefffffffefffffffefff9c9c95ffcfcfc0ff9c9c95ff9c9c95ff9c9c95ffdee4e7ffb5b5a6ffb5b5a6ff5f7f8fff9c9c95ffb5b5a6ffb5b5a6ff9c9c95ffcfcfc0ffeae0e0ffeae0e0ff8f7f5fff8f7f5fffdde6ddffdde6ddffe3e3dbffe3e3dbff9c9c95ffcfcfc0ffdee4e7ffdee4e7ffdee4e7ffdee4e7ffb5b5a6ff" + }, + "zenburn/dark": { + "modes": ["light","dark"], + "hues": ["gray","red","orange","yellow","green","cyan","purple","accent","interactive","neutral"], + "hue": "dcdcccff9f9f9fff8f8f87ff868686ff595959ff4c4c4cff454545ff434343ff3f3f3fffd4cecdffa29494ff978a8affcc9393ffa58181ff595454ff4f4c4cff474545ff414040ffd3cecbffa1968eff968c85ffdfaf8fffac8e7bff585553ff4f4c4bff474544ff41403fffd1cfcbff9c988eff918e84fff0dfafffafa588ff575552ff4d4d4aff464644ff41403fffcdd0cdff939b93ff899089ff7f9f7fff778b77ff545654ff4c4d4cff454645ff404140ffcad1d1ff8d9b9cff849191ff8cd0d3ff79a1a3ff525657ff4a4d4dff444646ff3f4141ffd5ccd2ffa5929eff998893ffdc8cc3ffae7c9eff5a5458ff4f4b4eff474546ff424041ffcad1d1ff8d9b9cff849191ff8cd0d3ff79a1a3ff525657ff4a4d4dff444646ff3f4141ffcad1d1ff8d9b9cff849191ff8cd0d3ff79a1a3ff525657ff4a4d4dff444646ff3f4141ffdcdcccff9f9f9fff8f8f87ff868686ff595959ff4c4c4cff454545ff434343ff3f3f3fff", + "categorical": "d5ccd2ffa5929eff998893ffdc8cc3ffae7c9eff5a5458ff4f4b4eff474546ff424041ffcad1d1ff8d9b9cff849191ff8cd0d3ff79a1a3ff525657ff4a4d4dff444646ff3f4141ffcdd0cdff939b93ff899089ff7f9f7fff778b77ff545654ff4c4d4cff454645ff404140ffd1cfcbff9c988eff918e84fff0dfafffafa588ff575552ff4d4d4aff464644ff41403fffd4cecdffa29494ff978a8affcc9393ffa58181ff595454ff4f4c4cff474545ff414040ffd3cecbffa1968eff968c85ffdfaf8fffac8e7bff585553ff4f4c4bff474544ff41403fff", + "base": "cc9393ffcc9393ffcc9393ffcc9393ffcc9393ffcc9393ff0000000000000000525657ff454545ff00000000000000000000000000000000000000000000000000000000000000003f3f3fff3f3f3fff3f3f3fff3f3f3fff3f3f3fff3f3f3fff3f3f3fff3f3f3fff3f3f3fff3f3f3fff3f3f3fff454545ff4c4c4cff595959ff5f5f5fff4f5f4fff4f4f4fff5f4f4fff8fb28fffdca3a3ff4f5f4fff5f4f4fffd2d2d2ff7f9f7fff9f9f9fff93e0e3ffcc9393ff9f9f9fff7f9f7fffdcdcccffe0cf9ffff0dfafff9f9f9fff8cd0d3ff93e0e3ff8cd0d3ff93e0e3ff93e0e3ff8cd0d3ffdfaf8fffdcdcccff8cd0d3ff7f9f7fff8cd0d3fff0dfafff8fb28ffff0dfafffdcdcccffcc9393ff93e0e3ffdcdcccff3f3f3fff8f8f87ff3f3f3fff3f3f3fff3f3f3fff3f3f3fffdcdcccff8f8f87ffdcdcccffdcdcccffdcdcccff8cd0d3ff9f9f9fff9f9f9fff8d9b9cffdcdcccff9f9f9fff9f9f9fffdcdcccff8f8f87ffcc9393ffcc9393ffdfaf8fffdfaf8fff7f9f7fff7f9f7ffff0dfaffff0dfafffdcdcccff8f8f87ff8cd0d3ff8cd0d3ff8cd0d3ff8cd0d3ff9f9f9fff", + "dialog": "cc9393ffcc9393ffcc9393ffcc9393ffcc9393ffcc9393ff0000000000000000525657ff595959ff0000000000000000000000000000000000000000595959ff0000000000000000454545ff454545ff454545ff454545ff454545ff454545ff454545ff454545ff454545ff454545ff454545ff454545ff4c4c4cff595959ff5f5f5fff4f5f4fff4f4f4fff5f4f4fff8fb28fffdca3a3ff4f5f4fff5f4f4fffd2d2d2ff7f9f7fff9f9f9fff93e0e3ffcc9393ff9f9f9fff7f9f7fffdcdcccffe0cf9ffff0dfafff9f9f9fff8cd0d3ff93e0e3ff8cd0d3ff93e0e3ff93e0e3ff8cd0d3ffdfaf8fffdcdcccff8cd0d3ff7f9f7fff8cd0d3fff0dfafff8fb28ffff0dfafffdcdcccffcc9393ff93e0e3ffdcdcccff3f3f3fff8f8f87ff3f3f3fff3f3f3fff3f3f3fff3f3f3fffdcdcccff8f8f87ffdcdcccffdcdcccffdcdcccff8cd0d3ff9f9f9fff9f9f9fff8d9b9cffdcdcccff9f9f9fff9f9f9fffdcdcccff8f8f87ffcc9393ffcc9393ffdfaf8fffdfaf8fff7f9f7fff7f9f7ffff0dfaffff0dfafffdcdcccff8f8f87ff8cd0d3ff8cd0d3ff8cd0d3ff8cd0d3ff9f9f9fff", + "footer": "cc9393ffcc9393ffcc9393ffcc9393ffcc9393ffcc9393ff0000000000000000525657ff595959ff0000000000000000000000000000000000000000595959ff0000000000000000454545ff454545ff454545ff454545ff454545ff454545ff454545ff454545ff454545ff454545ff454545ff454545ff4c4c4cff595959ff5f5f5fff4f5f4fff4f4f4fff5f4f4fff8fb28fffdca3a3ff4f5f4fff5f4f4fffd2d2d2ff7f9f7fff9f9f9fff93e0e3ffcc9393ff9f9f9fff7f9f7fffdcdcccffe0cf9ffff0dfafff9f9f9fff8cd0d3ff93e0e3ff8cd0d3ff93e0e3ff93e0e3ff8cd0d3ffdfaf8fffdcdcccff8cd0d3ff7f9f7fff8cd0d3fff0dfafff8fb28ffff0dfafffdcdcccffcc9393ff93e0e3ffdcdcccff3f3f3fff8f8f87ff3f3f3fff3f3f3fff3f3f3fff3f3f3fffdcdcccff8f8f87ffdcdcccffdcdcccffdcdcccff8cd0d3ff9f9f9fff9f9f9fff8d9b9cffdcdcccff9f9f9fff9f9f9fffdcdcccff8f8f87ffcc9393ffcc9393ffdfaf8fffdfaf8fff7f9f7fff7f9f7ffff0dfaffff0dfafffdcdcccff8f8f87ff8cd0d3ff8cd0d3ff8cd0d3ff8cd0d3ff9f9f9fff", + "decrease": "978a8aff978a8aff978a8aff978a8aff978a8aff978a8aff000000000000000079a1a3ff4c4c4cff0000000000000000000000000000000000000000000000000000000000000000434343ff434343ff434343ff434343ff434343ff434343ff434343ff434343ff434343ff434343ff434343ff4c4c4cff595959ff868686ff5f5f5fff4f5f4fff4f4f4fff5f4f4fff8fb28fffdca3a3ff4f5f4fff5f4f4fffd2d2d2ff899089ffdcdcccff93e0e3ff978a8affdcdcccff899089ffdcdcccffe0cf9fff918e84ffdcdcccff849191ff93e0e3ff849191ff93e0e3ff93e0e3ff849191ff968c85ffdcdcccff849191ff899089ff849191ff918e84ff8fb28fff918e84ffdcdcccff978a8aff93e0e3ffdcdcccff434343ff9f9f9fff434343ff434343ff434343ff434343ffdcdcccff9f9f9fffdcdcccffdcdcccffdcdcccff849191ffdcdcccffdcdcccffcad1d1ffdcdcccffdcdcccffdcdcccffdcdcccff9f9f9fff978a8aff978a8aff968c85ff968c85ff899089ff899089ff918e84ff918e84ffdcdcccff9f9f9fff849191ff849191ff849191ff849191ffdcdcccff", + "increase": "595454ff595454ff595454ff595454ff595454ff595454ff0000000000000000444646ff3f3f3fff00000000000000000000000000000000000000000000000000000000000000003f3f3fff3f3f3fff3f3f3fff3f3f3fff3f3f3fff3f3f3fff3f3f3fff3f3f3fff3f3f3fff3f3f3fff3f3f3fff3f3f3fff434343ff454545ff5f5f5fff4f5f4fff4f4f4fff5f4f4fff8fb28fffdca3a3ff4f5f4fff5f4f4fffd2d2d2ff545654ff868686ff93e0e3ff595454ff868686ff545654ff8f8f87ffe0cf9fff575552ff868686ff525657ff93e0e3ff525657ff93e0e3ff93e0e3ff525657ff585553ff8f8f87ff525657ff545654ff525657ff575552ff8fb28fff575552ff8f8f87ff595454ff93e0e3ff8f8f87ff3f3f3fff595959ff3f3f3fff3f3f3fff3f3f3fff3f3f3fff8f8f87ff595959ff8f8f87ff8f8f87ff8f8f87ff525657ff868686ff868686ff8cd0d3ff8f8f87ff868686ff868686ff8f8f87ff595959ff595454ff595454ff585553ff585553ff545654ff545654ff575552ff575552ff8f8f87ff595959ff525657ff525657ff525657ff525657ff868686ff" + }, + "carbonfox/light": { + "modes": ["light","dark"], + "hues": ["gray","red","green","cyan","blue","accent","interactive","neutral"], + "hue": "161616ff555555ff6f6f6fffb5b5b5ffcfcfcfffdededefff2f2f2fffbfbfbffffffffff372329ff857579ffa18b90ff9f1853ffd5a0aefff6dee4fffcedf1fffef6f8fffffbfcff212d22ff747d75ff89968aff198038ffa1c2a5ffdae9dcffebf4ecfff6faf6fffbfdfbff202d2cff737c7cff889593ff007d79ffa0c0beffd9e8e7ffebf4f3fff5faf9fffbfdfdff1e293fff727b8aff8692a8ff0043ceff94b0e6ffd7e5feffebf2fefff6f9fefffbfcffff372329ff857579ffa18b90ff9f1853ffd5a0aefff6dee4fffcedf1fffef6f8fffffbfcff1e293fff727b8aff8692a8ff0043ceff94b0e6ffd7e5feffebf2fefff6f9fefffbfcffff161616ff555555ff6f6f6fffb5b5b5ffcfcfcfffdededefff2f2f2fffbfbfbffffffffff", + "categorical": "1e293fff727b8aff8692a8ff0043ceff94b0e6ffd7e5feffebf2fefff6f9fefffbfcffff372329ff857579ffa18b90ff9f1853ffd5a0aefff6dee4fffcedf1fffef6f8fffffbfcff212d22ff747d75ff89968aff198038ffa1c2a5ffdae9dcffebf4ecfff6faf6fffbfdfbff202d2cff737c7cff889593ff007d79ffa0c0beffd9e8e7ffebf4f3fff5faf9fffbfdfdff", + "base": "9f1853ff9f1853ff9f1853ff9f1853ff9f1853ff9f1853ff0000000000000000d7e5fefff2f2f2ff0000000000000000000000000000000000000000000000000000000000000000fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff2f2f2ffdededeffcfcfcfffdcdcdcffdefbe6fff4f4f4fffff1f1ff198038ff9f1853ffdefbe6fffff1f1ff6f6f6fff198038ff6f6f6fff0043ceff9f1853ff6f6f6fff198038ff525252ff6929c4ff0043ceffdcdcdcff0043ceff0072c3ff0043ceff0072c3ff0072c3ff0072c3ff000000ff161616ff0043ceff6f6f6fff0043ceff6929c4ff007d79ff525252ff161616ff198038ff007d79ff161616ffffffffff6f6f6fffffffffffffffffffffffffffffffffff161616ff6f6f6fff161616ff161616ff161616ff0043ceff555555ff555555ff727b8aff161616ff555555ff555555ff161616ff6f6f6fff9f1853ff9f1853ff0043ceff0043ceff198038ff198038ff007d79ff007d79ff161616ff6f6f6fff0043ceff0043ceff0043ceff0043ceff555555ff", + "dialog": "9f1853ff9f1853ff9f1853ff9f1853ff9f1853ff9f1853ff0000000000000000d7e5feffdededeff0000000000000000000000000000000000000000dededeff0000000000000000fbfbfbfffbfbfbfffbfbfbfffbfbfbfffbfbfbfffbfbfbfffbfbfbfffbfbfbfffbfbfbfffbfbfbfffbfbfbfff2f2f2fff2f2f2ffcfcfcfffdcdcdcffdefbe6fff4f4f4fffff1f1ff198038ff9f1853ffdefbe6fffff1f1ff6f6f6fff198038ff6f6f6fff0043ceff9f1853ff6f6f6fff198038ff525252ff6929c4ff0043ceffdcdcdcff0043ceff0072c3ff0043ceff0072c3ff0072c3ff0072c3ff000000ff161616ff0043ceff6f6f6fff0043ceff6929c4ff007d79ff525252ff161616ff198038ff007d79ff161616ffffffffff6f6f6fffffffffffffffffffffffffffffffffff161616ff6f6f6fff161616ff161616ff161616ff0043ceff555555ff555555ff727b8aff161616ff555555ff555555ff161616ff6f6f6fff9f1853ff9f1853ff0043ceff0043ceff198038ff198038ff007d79ff007d79ff161616ff6f6f6fff0043ceff0043ceff0043ceff0043ceff555555ff", + "footer": "9f1853ff9f1853ff9f1853ff9f1853ff9f1853ff9f1853ff0000000000000000d7e5feffdededeff0000000000000000000000000000000000000000dededeff0000000000000000fbfbfbfffbfbfbfffbfbfbfffbfbfbfffbfbfbfffbfbfbfffbfbfbfffbfbfbfffbfbfbfffbfbfbfffbfbfbfff2f2f2fff2f2f2ffcfcfcfffdcdcdcffdefbe6fff4f4f4fffff1f1ff198038ff9f1853ffdefbe6fffff1f1ff6f6f6fff198038ff6f6f6fff0043ceff9f1853ff6f6f6fff198038ff525252ff6929c4ff0043ceffdcdcdcff0043ceff0072c3ff0043ceff0072c3ff0072c3ff0072c3ff000000ff161616ff0043ceff6f6f6fff0043ceff6929c4ff007d79ff525252ff161616ff198038ff007d79ff161616ffffffffff6f6f6fffffffffffffffffffffffffffffffffff161616ff6f6f6fff161616ff161616ff161616ff0043ceff555555ff555555ff727b8aff161616ff555555ff555555ff161616ff6f6f6fff9f1853ff9f1853ff0043ceff0043ceff198038ff198038ff007d79ff007d79ff161616ff6f6f6fff0043ceff0043ceff0043ceff0043ceff555555ff", + "decrease": "a18b90ffa18b90ffa18b90ffa18b90ffa18b90ffa18b90ff000000000000000094b0e6ffdededeff0000000000000000000000000000000000000000000000000000000000000000fbfbfbfffbfbfbfffbfbfbfffbfbfbfffbfbfbfffbfbfbfffbfbfbfffbfbfbfffbfbfbfffbfbfbfffbfbfbffdededeffcfcfcfffb5b5b5ffdcdcdcffdefbe6fff4f4f4fffff1f1ff89968affa18b90ffdefbe6fffff1f1ff555555ff89968aff555555ff8692a8ffa18b90ff555555ff89968aff525252ff6929c4ff8692a8ffdcdcdcff8692a8ff0072c3ff8692a8ff0072c3ff0072c3ff0072c3ff000000ff161616ff8692a8ff555555ff8692a8ff6929c4ff889593ff525252ff161616ff89968aff889593ff161616fffbfbfbff555555fffbfbfbfffbfbfbfffbfbfbfffbfbfbff161616ff555555ff161616ff161616ff161616ff8692a8ff161616ff161616ff1e293fff161616ff161616ff161616ff161616ff555555ffa18b90ffa18b90ff8692a8ff8692a8ff89968aff89968aff889593ff889593ff161616ff555555ff8692a8ff8692a8ff8692a8ff8692a8ff161616ff", + "increase": "f6dee4fff6dee4fff6dee4fff6dee4fff6dee4fff6dee4ff0000000000000000f6f9feffffffffff0000000000000000000000000000000000000000000000000000000000000000fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffbfbfbfff2f2f2ffdcdcdcffdefbe6fff4f4f4fffff1f1ffdae9dcfff6dee4ffdefbe6fffff1f1ffcfcfcfffdae9dcffcfcfcfffd7e5fefff6dee4ffcfcfcfffdae9dcff525252ff6929c4ffd7e5feffdcdcdcffd7e5feff0072c3ffd7e5feff0072c3ff0072c3ff0072c3ff000000ff6f6f6fffd7e5feffcfcfcfffd7e5feff6929c4ffd9e8e7ff525252ff6f6f6fffdae9dcffd9e8e7ff6f6f6fffffffffffcfcfcfffffffffffffffffffffffffffffffffff6f6f6fffcfcfcfff6f6f6fff6f6f6fff6f6f6fffd7e5feffb5b5b5ffb5b5b5ff0043ceff6f6f6fffb5b5b5ffb5b5b5ff6f6f6fffcfcfcffff6dee4fff6dee4ffd7e5feffd7e5feffdae9dcffdae9dcffd9e8e7ffd9e8e7ff6f6f6fffcfcfcfffd7e5feffd7e5feffd7e5feffd7e5feffb5b5b5ff" + }, + "carbonfox/dark": { + "modes": ["light","dark"], + "hues": ["gray","red","yellow","green","blue","accent","interactive","neutral"], + "hue": "f2f4f8ffadaeb1ff7d848fff565656ff363636ff282828ff1e1e1eff1b1b1bff161616fff2e4e9ffbd9da9ff957a84ffff7eb6ffa55979ff3c2f34ff2e2529ff211d1eff1a1618ffede8dcffb1a78bff8b826afff1c21bff987c28ff363228ff2a2720ff1f1e1aff181715ffe0ece3ff94af9bff728a78ff25be6aff32814fff2b352eff222924ff1b1f1cff161816ffe0eaf2ff93abbdff718696ff33b1ffff3578a6ff2b343bff22282dff1b1e21ff151719fff2e4e9ffbd9da9ff957a84ffff7eb6ffa55979ff3c2f34ff2e2529ff211d1eff1a1618ffe0eaf2ff93abbdff718696ff33b1ffff3578a6ff2b343bff22282dff1b1e21ff151719fff2f4f8ffadaeb1ff7d848fff565656ff363636ff282828ff1e1e1eff1b1b1bff161616ff", + "categorical": "e0eaf2ff93abbdff718696ff33b1ffff3578a6ff2b343bff22282dff1b1e21ff151719fff2e4e9ffbd9da9ff957a84ffff7eb6ffa55979ff3c2f34ff2e2529ff211d1eff1a1618ffe0ece3ff94af9bff728a78ff25be6aff32814fff2b352eff222924ff1b1f1cff161816ffede8dcffb1a78bff8b826afff1c21bff987c28ff363228ff2a2720ff1f1e1aff181715ff", + "base": "ee5396ffee5396ffee5396ffee5396ffee5396ffee5396ff00000000000000002b343bff1e1e1eff0000000000000000000000000000000000000000000000000000000000000000161616ff161616ff161616ff161616ff161616ff161616ff161616ff161616ff161616ff161616ff161616ff1e1e1eff282828ff363636ff303030ff0f2418ff161616ff2a1216ff7dffaaffff9999ff0f2418ff2a1216ff808792ff50fa7bff7d848fff78a9ffffff6b6bff7d848fff25be6affa9afbcffbe95ffff8cb6ffff303030ff78a9ffff33b1ffff78a9ffff33b1ffff33b1ffff33b1fffffffffffff2f4f8ff33b1ffff7d848fff8cb6ffffbe95ffff3ddbd9ffa9afbcffa9afbcff25be6aff08bdbaffdfdfe0ff161616ff7d848fff161616ff161616ff161616ff161616fff2f4f8ff7d848ffff2f4f8fff2f4f8fff2f4f8ff33b1ffffadaeb1ffadaeb1ff93abbdfff2f4f8ffadaeb1ffadaeb1fff2f4f8ff7d848fffee5396ffee5396ff78a9ffff78a9ffff25be6aff25be6afff1c21bfff1c21bfff2f4f8ff7d848fff33b1ffff33b1ffff33b1ffff33b1ffffadaeb1ff", + "dialog": "ee5396ffee5396ffee5396ffee5396ffee5396ffee5396ff00000000000000002b343bff363636ff0000000000000000000000000000000000000000363636ff00000000000000001e1e1eff1e1e1eff1e1e1eff1e1e1eff1e1e1eff1e1e1eff1e1e1eff1e1e1eff1e1e1eff1e1e1eff1e1e1eff1e1e1eff282828ff363636ff303030ff0f2418ff161616ff2a1216ff7dffaaffff9999ff0f2418ff2a1216ff808792ff50fa7bff7d848fff78a9ffffff6b6bff7d848fff25be6affa9afbcffbe95ffff8cb6ffff303030ff78a9ffff33b1ffff78a9ffff33b1ffff33b1ffff33b1fffffffffffff2f4f8ff33b1ffff7d848fff8cb6ffffbe95ffff3ddbd9ffa9afbcffa9afbcff25be6aff08bdbaffdfdfe0ff161616ff7d848fff161616ff161616ff161616ff161616fff2f4f8ff7d848ffff2f4f8fff2f4f8fff2f4f8ff33b1ffffadaeb1ffadaeb1ff93abbdfff2f4f8ffadaeb1ffadaeb1fff2f4f8ff7d848fffee5396ffee5396ff78a9ffff78a9ffff25be6aff25be6afff1c21bfff1c21bfff2f4f8ff7d848fff33b1ffff33b1ffff33b1ffff33b1ffffadaeb1ff", + "footer": "ee5396ffee5396ffee5396ffee5396ffee5396ffee5396ff00000000000000002b343bff363636ff0000000000000000000000000000000000000000363636ff00000000000000001e1e1eff1e1e1eff1e1e1eff1e1e1eff1e1e1eff1e1e1eff1e1e1eff1e1e1eff1e1e1eff1e1e1eff1e1e1eff1e1e1eff282828ff363636ff303030ff0f2418ff161616ff2a1216ff7dffaaffff9999ff0f2418ff2a1216ff808792ff50fa7bff7d848fff78a9ffffff6b6bff7d848fff25be6affa9afbcffbe95ffff8cb6ffff303030ff78a9ffff33b1ffff78a9ffff33b1ffff33b1ffff33b1fffffffffffff2f4f8ff33b1ffff7d848fff8cb6ffffbe95ffff3ddbd9ffa9afbcffa9afbcff25be6aff08bdbaffdfdfe0ff161616ff7d848fff161616ff161616ff161616ff161616fff2f4f8ff7d848ffff2f4f8fff2f4f8fff2f4f8ff33b1ffffadaeb1ffadaeb1ff93abbdfff2f4f8ffadaeb1ffadaeb1fff2f4f8ff7d848fffee5396ffee5396ff78a9ffff78a9ffff25be6aff25be6afff1c21bfff1c21bfff2f4f8ff7d848fff33b1ffff33b1ffff33b1ffff33b1ffffadaeb1ff", + "decrease": "ee5396ffee5396ffee5396ffee5396ffee5396ffee5396ff00000000000000003578a6ff282828ff00000000000000000000000000000000000000000000000000000000000000001b1b1bff1b1b1bff1b1b1bff1b1b1bff1b1b1bff1b1b1bff1b1b1bff1b1b1bff1b1b1bff1b1b1bff1b1b1bff282828ff363636ff565656ff303030ff0f2418ff1b1b1bff2a1216ff7dffaaffff9999ff0f2418ff2a1216ff808792ff50fa7bffadaeb1ff78a9ffffff6b6bffadaeb1ff728a78ffa9afbcffbe95ffff8cb6ffff303030ff78a9ffff718696ff78a9ffff718696ff718696ff718696fffffffffff2f4f8ff718696ffadaeb1ff8cb6ffffbe95ffff3ddbd9ffa9afbcffa9afbcff728a78ff08bdbaffdfdfe0ff1b1b1bffadaeb1ff1b1b1bff1b1b1bff1b1b1bff1b1b1bfff2f4f8ffadaeb1fff2f4f8fff2f4f8fff2f4f8ff718696fff2f4f8fff2f4f8ffe0eaf2fff2f4f8fff2f4f8fff2f4f8fff2f4f8ffadaeb1ffee5396ffee5396ff78a9ffff78a9ffff728a78ff728a78ff8b826aff8b826afff2f4f8ffadaeb1ff718696ff718696ff718696ff718696fff2f4f8ff", + "increase": "ee5396ffee5396ffee5396ffee5396ffee5396ffee5396ff00000000000000001b1e21ff161616ff0000000000000000000000000000000000000000000000000000000000000000161616ff161616ff161616ff161616ff161616ff161616ff161616ff161616ff161616ff161616ff161616ff161616ff1b1b1bff1e1e1eff303030ff0f2418ff161616ff2a1216ff7dffaaffff9999ff0f2418ff2a1216ff808792ff50fa7bff363636ff78a9ffffff6b6bff363636ff2b352effa9afbcffbe95ffff8cb6ffff303030ff78a9ffff2b343bff78a9ffff2b343bff2b343bff2b343bffffffffff7d848fff2b343bff363636ff8cb6ffffbe95ffff3ddbd9ffa9afbcffa9afbcff2b352eff08bdbaffdfdfe0ff161616ff363636ff161616ff161616ff161616ff161616ff7d848fff363636ff7d848fff7d848fff7d848fff2b343bff565656ff565656ff33b1ffff7d848fff565656ff565656ff7d848fff363636ffee5396ffee5396ff78a9ffff78a9ffff2b352eff2b352eff363228ff363228ff7d848fff363636ff2b343bff2b343bff2b343bff2b343bff565656ff" + }, + "opencode/light": { + "modes": ["light","dark"], + "hues": ["gray","blue","orange","purple","red","green","accent","interactive","neutral"], + "hue": "101010ff505050ff808080ffb5b5b5ffe6e6e6ffeeeeeefff2f2f2fffafafaffffffffff1b1f2eff6e7380ff9ba1b2ff6c8ffeffb9c9f5ffd3ddf8ffeaf0fffff4f7fffffbfcffff2e241bff7d7670ffafa49dffc4713affe8c7adfff0dccefffcf2eafffdf8f4fffefdfbff231b2eff74707cffa29daeff9d78dfffcdbee7ffe8e0f8fff0ebfafff8f5fcfffcfbfeff2e1b1bff7e6d6dffb09999ffec6262ffeab8b8fffbdadafffdeaeafffff6f6fffffbfbff1b2e1bff6d7e6dff99b099ff62ec62ffb8eab8ffdafbdaffeafdeafff6fff6fffbfffbff1b1f2eff6e7380ff9ba1b2ff6c8ffeffb9c9f5ffd3ddf8ffeaf0fffff4f7fffffbfcffff1b1f2eff6e7380ff9ba1b2ff6c8ffeffb9c9f5ffd3ddf8ffeaf0fffff4f7fffffbfcffff101010ff505050ff808080ffb5b5b5ffe6e6e6ffeeeeeefff2f2f2fffafafaffffffffff", + "categorical": "1b1f2eff6e7380ff9ba1b2ff6c8ffeffb9c9f5ffd3ddf8ffeaf0fffff4f7fffffbfcffff231b2eff74707cffa29daeff9d78dfffcdbee7ffe8e0f8fff0ebfafff8f5fcfffcfbfeff1b2e1bff6d7e6dff99b099ff62ec62ffb8eab8ffdafbdaffeafdeafff6fff6fffbfffbff2e241bff7d7670ffafa49dffc4713affe8c7adfff0dccefffcf2eafffdf8f4fffefdfbff2e1b1bff7e6d6dffb09999ffec6262ffeab8b8fffbdadafffdeaeafffff6f6fffffbfbff", + "base": "ec6262ffec6262ffec6262ffec6262ffec6262ffec6262ff0000000000000000d3ddf8fff2f2f2ff0000000000000000000000000000000000000000000000000000000000000000fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff2f2f2ffeeeeeeffe6e6e6ffb8b8b8ffd5e5d5fff2f2f2fff7d8dbff4db380fff52a65ffc5d5c5ffe7c8cbff595959ff1e725cff7086b5ff7086b5ffc53b53ffb0851fff3d9a57ff1a1a1affb0851fffd68c27ff8a8a8aff3b7dd8ff318795ff3b7dd8ff318795ff318795ff3b7dd8ffd68c27ff1a1a1affa0a0a0ff8a8a8aff3b7dd8ffd68c27ffd68c27ff318795ff1a1a1aff3d9a57ffb0851fffd1383dffffffffff808080ffffffffffffffffffffffffffffffffff101010ff808080ff101010ff101010ff101010ff6c8ffeff808080ff808080ff6e7380ff101010ff808080ff808080ff101010ff808080ffec6262ffec6262ff6c8ffeff6c8ffeff62ec62ff62ec62ffd68c27ffd68c27ff101010ff808080ff6c8ffeff6c8ffeff6c8ffeff6c8ffeff808080ff", + "dialog": "ec6262ffec6262ffec6262ffec6262ffec6262ffec6262ff0000000000000000d3ddf8ffeeeeeeff0000000000000000000000000000000000000000eeeeeeff0000000000000000fafafafffafafafffafafafffafafafffafafafffafafafffafafafffafafafffafafafffafafafffafafafff2f2f2fff2f2f2ffe6e6e6ffb8b8b8ffd5e5d5fff2f2f2fff7d8dbff4db380fff52a65ffc5d5c5ffe7c8cbff595959ff1e725cff7086b5ff7086b5ffc53b53ffb0851fff3d9a57ff1a1a1affb0851fffd68c27ff8a8a8aff3b7dd8ff318795ff3b7dd8ff318795ff318795ff3b7dd8ffd68c27ff1a1a1affa0a0a0ff8a8a8aff3b7dd8ffd68c27ffd68c27ff318795ff1a1a1aff3d9a57ffb0851fffd1383dffffffffff808080ffffffffffffffffffffffffffffffffff101010ff808080ff101010ff101010ff101010ff6c8ffeff808080ff808080ff6e7380ff101010ff808080ff808080ff101010ff808080ffec6262ffec6262ff6c8ffeff6c8ffeff62ec62ff62ec62ffd68c27ffd68c27ff101010ff808080ff6c8ffeff6c8ffeff6c8ffeff6c8ffeff808080ff", + "footer": "ec6262ffec6262ffec6262ffec6262ffec6262ffec6262ff0000000000000000d3ddf8ffeeeeeeff0000000000000000000000000000000000000000eeeeeeff0000000000000000fafafafffafafafffafafafffafafafffafafafffafafafffafafafffafafafffafafafffafafafffafafafff2f2f2fff2f2f2ffe6e6e6ffb8b8b8ffd5e5d5fff2f2f2fff7d8dbff4db380fff52a65ffc5d5c5ffe7c8cbff595959ff1e725cff7086b5ff7086b5ffc53b53ffb0851fff3d9a57ff1a1a1affb0851fffd68c27ff8a8a8aff3b7dd8ff318795ff3b7dd8ff318795ff318795ff3b7dd8ffd68c27ff1a1a1affa0a0a0ff8a8a8aff3b7dd8ffd68c27ffd68c27ff318795ff1a1a1aff3d9a57ffb0851fffd1383dffffffffff505050ffffffffffffffffffffffffffffffffff101010ff505050ff101010ff101010ff101010ff6c8ffeff505050ff505050ff6e7380ff101010ff505050ff505050ff101010ff505050ffec6262ffec6262ff6c8ffeff6c8ffeff62ec62ff62ec62ffd68c27ffd68c27ff101010ff505050ff6c8ffeff6c8ffeff6c8ffeff6c8ffeff505050ff", + "decrease": "b09999ffb09999ffb09999ffb09999ffb09999ffb09999ff0000000000000000b9c9f5ffeeeeeeff0000000000000000000000000000000000000000000000000000000000000000fafafafffafafafffafafafffafafafffafafafffafafafffafafafffafafafffafafafffafafafffafafaffeeeeeeffe6e6e6ffb5b5b5ffb8b8b8ffd5e5d5ffeeeeeefff7d8dbff4db380fff52a65ffc5d5c5ffe7c8cbff595959ff1e725cff7086b5ff7086b5ffc53b53ffb0851fff3d9a57ff1a1a1affb0851fffd68c27ff8a8a8aff3b7dd8ff318795ff3b7dd8ff318795ff318795ff3b7dd8ffd68c27ff1a1a1affa0a0a0ff8a8a8aff3b7dd8ffd68c27ffd68c27ff318795ff1a1a1aff3d9a57ffb0851fffd1383dfffafafaff505050fffafafafffafafafffafafafffafafaff101010ff505050ff101010ff101010ff101010ff9ba1b2ff505050ff505050ff1b1f2eff101010ff505050ff505050ff101010ff505050ffb09999ffb09999ff9ba1b2ff9ba1b2ff99b099ff99b099ffd68c27ffd68c27ff101010ff505050ff9ba1b2ff9ba1b2ff9ba1b2ff9ba1b2ff505050ff", + "increase": "fbdadafffbdadafffbdadafffbdadafffbdadafffbdadaff0000000000000000f4f7ffffffffffff0000000000000000000000000000000000000000000000000000000000000000fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffafafafff2f2f2ffb8b8b8ffd5e5d5fffffffffff7d8dbff4db380fff52a65ffc5d5c5ffe7c8cbff595959ff1e725cff7086b5ff7086b5ffc53b53ffb0851fff3d9a57ff1a1a1affb0851fffd68c27ff8a8a8aff3b7dd8ff318795ff3b7dd8ff318795ff318795ff3b7dd8ffd68c27ff1a1a1affa0a0a0ff8a8a8aff3b7dd8ffd68c27ffd68c27ff318795ff1a1a1aff3d9a57ffb0851fffd1383dffffffffffe6e6e6ffffffffffffffffffffffffffffffffff808080ffe6e6e6ff808080ff808080ff808080ffd3ddf8ffe6e6e6ffe6e6e6ff6c8ffeff808080ffe6e6e6ffe6e6e6ff808080ffe6e6e6fffbdadafffbdadaffd3ddf8ffd3ddf8ffdafbdaffdafbdaffd68c27ffd68c27ff808080ffe6e6e6ffd3ddf8ffd3ddf8ffd3ddf8ffd3ddf8ffe6e6e6ff" + }, + "opencode/dark": { + "modes": ["light","dark"], + "hues": ["gray","blue","orange","purple","red","green","accent","interactive","neutral"], + "hue": "ffffffffb0b0b0ff808080ff444444ff303030ff202020ff141414ff101010ff080808fff1f4ffff93a2b7ff6d7a8dff7699feff426097ff23344bff162333ff0d1621ff050a12fff6f0ebffb09c8dff807770ffecb081ff896b50ff42372cff2c241dff1b1612ff0d0907fff7f2ffffaf9ebaff7d7492ffa383e2ff685588ff3b3347ff241e2cff130f18ff0c080efffff2f2ffb09492ff90706fffef6c6cff90494aff4a2e2eff2e1f1fff1a1313ff0d0909fff1f1f1ffc5cfc5ff8f9c8fff9ee77aff499049ff2c422cff1f2e1fff131a13ff090d09fff1f4ffff93a2b7ff6d7a8dff7699feff426097ff23344bff162333ff0d1621ff050a12fff1f4ffff93a2b7ff6d7a8dff7699feff426097ff23344bff162333ff0d1621ff050a12ffffffffffb0b0b0ff808080ff444444ff303030ff202020ff141414ff101010ff080808ff", + "categorical": "f1f4ffff93a2b7ff6d7a8dff7699feff426097ff23344bff162333ff0d1621ff050a12fff7f2ffffaf9ebaff7d7492ffa383e2ff685588ff3b3347ff241e2cff130f18ff0c080efff1f1f1ffc5cfc5ff8f9c8fff9ee77aff499049ff2c422cff1f2e1fff131a13ff090d09fff6f0ebffb09c8dff807770ffecb081ff896b50ff42372cff2c241dff1b1612ff0d0907fffff2f2ffb09492ff90706fffef6c6cff90494aff4a2e2eff2e1f1fff1a1313ff0d0909ff", + "base": "ef6c6cffef6c6cffef6c6cffef6c6cffef6c6cffef6c6cff000000000000000023344bff141414ff0000000000000000000000000000000000000000000000000000000000000000080808ff080808ff080808ff080808ff080808ff080808ff080808ff080808ff080808ff080808ff080808ff141414ff202020ff303030ff484848ff20303bff141414ff37222cffb8db87ffe26a75ff1b2b34ff2d1f26ff8f8f8fff4fd6beff828bb8ff828bb8ffc53b53ffe5c07bff7fd88fffeeeeeeffe5c07bff9d7cd8ff808080fffab283ff56b6c2fffab283ff56b6c2ff56b6c2fffab283fff5a742ffeeeeeeff606060ff808080fffab283ff9d7cd8fff5a742ff56b6c2ffeeeeeeff7fd88fffe5c07bffe06c75ff080808ff808080ff080808ff080808ff080808ff080808ffffffffff808080ffffffffffffffffffffffffff7699feff808080ff808080ff93a2b7ffffffffff808080ff808080ffffffffff808080ffef6c6cffef6c6cff7699feff7699feff9ee77aff9ee77afff5a742fff5a742ffffffffff808080ff7699feff7699feff7699feff7699feff808080ff", + "dialog": "ef6c6cffef6c6cffef6c6cffef6c6cffef6c6cffef6c6cff000000000000000023344bff303030ff0000000000000000000000000000000000000000303030ff0000000000000000141414ff141414ff141414ff141414ff141414ff141414ff141414ff141414ff141414ff141414ff141414ff141414ff202020ff303030ff484848ff20303bff141414ff37222cffb8db87ffe26a75ff1b2b34ff2d1f26ff8f8f8fff4fd6beff828bb8ff828bb8ffc53b53ffe5c07bff7fd88fffeeeeeeffe5c07bff9d7cd8ff808080fffab283ff56b6c2fffab283ff56b6c2ff56b6c2fffab283fff5a742ffeeeeeeff606060ff808080fffab283ff9d7cd8fff5a742ff56b6c2ffeeeeeeff7fd88fffe5c07bffe06c75ff080808ff808080ff080808ff080808ff080808ff080808ffffffffff808080ffffffffffffffffffffffffff7699feff808080ff808080ff93a2b7ffffffffff808080ff808080ffffffffff808080ffef6c6cffef6c6cff7699feff7699feff9ee77aff9ee77afff5a742fff5a742ffffffffff808080ff7699feff7699feff7699feff7699feff808080ff", + "footer": "ef6c6cffef6c6cffef6c6cffef6c6cffef6c6cffef6c6cff000000000000000023344bff303030ff0000000000000000000000000000000000000000303030ff0000000000000000141414ff141414ff141414ff141414ff141414ff141414ff141414ff141414ff141414ff141414ff141414ff141414ff202020ff303030ff484848ff20303bff141414ff37222cffb8db87ffe26a75ff1b2b34ff2d1f26ff8f8f8fff4fd6beff828bb8ff828bb8ffc53b53ffe5c07bff7fd88fffeeeeeeffe5c07bff9d7cd8ff808080fffab283ff56b6c2fffab283ff56b6c2ff56b6c2fffab283fff5a742ffeeeeeeff606060ff808080fffab283ff9d7cd8fff5a742ff56b6c2ffeeeeeeff7fd88fffe5c07bffe06c75ff080808ffb0b0b0ff080808ff080808ff080808ff080808ffffffffffb0b0b0ffffffffffffffffffffffffff7699feffb0b0b0ffb0b0b0ff93a2b7ffffffffffb0b0b0ffb0b0b0ffffffffffb0b0b0ffef6c6cffef6c6cff7699feff7699feff9ee77aff9ee77afff5a742fff5a742ffffffffffb0b0b0ff7699feff7699feff7699feff7699feffb0b0b0ff", + "decrease": "90706fff90706fff90706fff90706fff90706fff90706fff0000000000000000426097ff202020ff0000000000000000000000000000000000000000000000000000000000000000101010ff101010ff101010ff101010ff101010ff101010ff101010ff101010ff101010ff101010ff101010ff202020ff303030ff444444ff484848ff20303bff202020ff37222cffb8db87ffe26a75ff1b2b34ff2d1f26ff8f8f8fff4fd6beff828bb8ff828bb8ffc53b53ffe5c07bff7fd88fffeeeeeeffe5c07bff9d7cd8ff808080fffab283ff56b6c2fffab283ff56b6c2ff56b6c2fffab283fff5a742ffeeeeeeff606060ff808080fffab283ff9d7cd8fff5a742ff56b6c2ffeeeeeeff7fd88fffe5c07bffe06c75ff101010ffb0b0b0ff101010ff101010ff101010ff101010ffffffffffb0b0b0ffffffffffffffffffffffffff6d7a8dffb0b0b0ffb0b0b0fff1f4ffffffffffffb0b0b0ffb0b0b0ffffffffffb0b0b0ff90706fff90706fff6d7a8dff6d7a8dff8f9c8fff8f9c8ffff5a742fff5a742ffffffffffb0b0b0ff6d7a8dff6d7a8dff6d7a8dff6d7a8dffb0b0b0ff", + "increase": "4a2e2eff4a2e2eff4a2e2eff4a2e2eff4a2e2eff4a2e2eff00000000000000000d1621ff080808ff0000000000000000000000000000000000000000000000000000000000000000080808ff080808ff080808ff080808ff080808ff080808ff080808ff080808ff080808ff080808ff080808ff080808ff101010ff141414ff484848ff20303bff080808ff37222cffb8db87ffe26a75ff1b2b34ff2d1f26ff8f8f8fff4fd6beff828bb8ff828bb8ffc53b53ffe5c07bff7fd88fffeeeeeeffe5c07bff9d7cd8ff808080fffab283ff56b6c2fffab283ff56b6c2ff56b6c2fffab283fff5a742ffeeeeeeff606060ff808080fffab283ff9d7cd8fff5a742ff56b6c2ffeeeeeeff7fd88fffe5c07bffe06c75ff080808ff303030ff080808ff080808ff080808ff080808ff808080ff303030ff808080ff808080ff808080ff23344bff303030ff303030ff7699feff808080ff303030ff303030ff808080ff303030ff4a2e2eff4a2e2eff23344bff23344bff2c422cff2c422cfff5a742fff5a742ff808080ff303030ff23344bff23344bff23344bff23344bff303030ff" + }, + "opencode-classic/light": { + "modes": ["light","dark"], + "hues": ["gray","red","orange","green","cyan","blue","purple","accent","interactive","neutral"], + "hue": "000000ff1a1a1aff4e4e4eff8a8a8affbebebefff5f5f5fffafafaffffffffffffffffffc20f26ffd1383dffe05352ffee6b68fffc837dfffda19bfffcbeb9fffed8d5fffff2f0ffc7811effd68c27ffdf9a44ffe8a85cfff1b671fffac386fffcd4a8fffee3c7fffef3e7ff1f8c44ff3d9a57ff55a96aff6cb77cff81c68fff96d5a3fface4b6ffc1f3caffe1fee6ff077786ff318795ff4c97a4ff64a8b4ff7bb8c4ff92c9d4ffa8dbe4ffbfecf4ffe3fafeff226bccff3b7dd8ff518ee4ff67a0f0ff7db1fcff9cc3faffb7d4fdffd4e5fdfff0f6feff6b47a7ff7b5bb6ff8c6fc5ff9d83d4ffaf98e3ffc1acf2ffd3c3fcffe4dbfdfff6f3ffffc7811effd68c27ffdf9a44ffe8a85cfff1b671fffac386fffcd4a8fffee3c7fffef3e7ff226bccff3b7dd8ff518ee4ff67a0f0ff7db1fcff9cc3faffb7d4fdffd4e5fdfff0f6feff000000ff1a1a1aff4e4e4eff8a8a8affbebebefff5f5f5fffafafaffffffffffffffffff", + "categorical": "6b47a7ff7b5bb6ff8c6fc5ff9d83d4ffaf98e3ffc1acf2ffd3c3fcffe4dbfdfff6f3ffffc7811effd68c27ffdf9a44ffe8a85cfff1b671fffac386fffcd4a8fffee3c7fffef3e7ff1f8c44ff3d9a57ff55a96aff6cb77cff81c68fff96d5a3fface4b6ffc1f3caffe1fee6ff226bccff3b7dd8ff518ee4ff67a0f0ff7db1fcff9cc3faffb7d4fdffd4e5fdfff0f6feffc20f26ffd1383dffe05352ffee6b68fffc837dfffda19bfffcbeb9fffed8d5fffff2f0ff", + "base": "d1383dffd1383dffd1383dffd1383dffd1383dffd1383dff00000000000000003b7dd8fffafafaff0000000000000000000000000000000000000000000000000000000000000000fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffafafafff5f5f5ffbebebeffb8b8b8ffd5e5d5fffafafafff7d8dbff4db380fff52a65ffc5d5c5ffe7c8cbff595959ff1e725cff7086b5ff7086b5ffc53b53ffb0851fff3d9a57ff1a1a1affb0851fffd68c27ff8a8a8aff3b7dd8ff318795ff3b7dd8ff318795ff318795ff3b7dd8ffd68c27ff1a1a1affa0a0a0ff8a8a8aff3b7dd8ffd68c27ffd68c27ff318795ff1a1a1aff3d9a57ffb0851fffd1383dffffffffff8a8a8affffffffffffffffffffffffffffffffff1a1a1aff8a8a8affffffffff1a1a1aff1a1a1aff3b7dd8ff8a8a8aff8a8a8aff8a8a8aff1a1a1aff8a8a8aff8a8a8aff1a1a1aff8a8a8affd1383dffd1383dff318795ff318795ff3d9a57ff3d9a57ffd68c27ffd68c27ff1a1a1aff8a8a8aff3b7dd8ff3b7dd8ff3b7dd8ff3b7dd8ff8a8a8aff", + "dialog": "d1383dffd1383dffd1383dffd1383dffd1383dffd1383dff00000000000000003b7dd8fff5f5f5ff0000000000000000000000000000000000000000000000000000000000000000fafafafffafafafffafafafffafafafffafafafffafafafffafafafffafafafffafafafffafafafffafafafffafafafff5f5f5ffbebebeffb8b8b8ffd5e5d5fffafafafff7d8dbff4db380fff52a65ffc5d5c5ffe7c8cbff595959ff1e725cff7086b5ff7086b5ffc53b53ffb0851fff3d9a57ff1a1a1affb0851fffd68c27ff8a8a8aff3b7dd8ff318795ff3b7dd8ff318795ff318795ff3b7dd8ffd68c27ff1a1a1affa0a0a0ff8a8a8aff3b7dd8ffd68c27ffd68c27ff318795ff1a1a1aff3d9a57ffb0851fffd1383dffffffffff8a8a8affffffffffffffffffffffffffffffffff1a1a1aff8a8a8affffffffff1a1a1aff1a1a1aff3b7dd8ff8a8a8aff8a8a8aff8a8a8aff1a1a1aff8a8a8aff8a8a8aff1a1a1aff8a8a8affd1383dffd1383dff318795ff318795ff3d9a57ff3d9a57ffd68c27ffd68c27ff1a1a1aff8a8a8aff3b7dd8ff3b7dd8ff3b7dd8ff3b7dd8ff8a8a8aff", + "footer": "d1383dffd1383dffd1383dffd1383dffd1383dffd1383dff00000000000000003b7dd8fff5f5f5ff0000000000000000000000000000000000000000000000000000000000000000fafafafffafafafffafafafffafafafffafafafffafafafffafafafffafafafffafafafffafafafffafafafffafafafff5f5f5ffbebebeffb8b8b8ffd5e5d5fffafafafff7d8dbff4db380fff52a65ffc5d5c5ffe7c8cbff595959ff1e725cff7086b5ff7086b5ffc53b53ffb0851fff3d9a57ff1a1a1affb0851fffd68c27ff8a8a8aff3b7dd8ff318795ff3b7dd8ff318795ff318795ff3b7dd8ffd68c27ff1a1a1affa0a0a0ff8a8a8aff3b7dd8ffd68c27ffd68c27ff318795ff1a1a1aff3d9a57ffb0851fffd1383dffffffffff8a8a8affffffffffffffffffffffffffffffffff1a1a1aff8a8a8affffffffff1a1a1aff1a1a1aff3b7dd8ff8a8a8aff8a8a8aff8a8a8aff1a1a1aff8a8a8aff8a8a8aff1a1a1aff8a8a8affd1383dffd1383dff318795ff318795ff3d9a57ff3d9a57ffd68c27ffd68c27ff1a1a1aff8a8a8aff3b7dd8ff3b7dd8ff3b7dd8ff3b7dd8ff8a8a8aff", + "decrease": "c20f26ffc20f26ffc20f26ffc20f26ffc20f26ffc20f26ff0000000000000000226bccfff5f5f5ff0000000000000000000000000000000000000000000000000000000000000000fafafafffafafafffafafafffafafafffafafafffafafafffafafafffafafafffafafafffafafafffafafafff5f5f5ffbebebeff8a8a8affb8b8b8ffd5e5d5fff5f5f5fff7d8dbff4db380fff52a65ffc5d5c5ffe7c8cbff595959ff1e725cff7086b5ff7086b5ffc53b53ffb0851fff1f8c44ff000000ffb0851fffc7811eff4e4e4eff226bccff077786ff226bccff077786ff077786ff226bccffc7811eff000000ffa0a0a0ff4e4e4eff226bccffc7811effc7811eff077786ff000000ff1f8c44ffb0851fffc20f26ffffffffff4e4e4effffffffffffffffffffffffffffffffff000000ff4e4e4effffffffff000000ff000000ff226bccff4e4e4eff4e4e4eff4e4e4eff000000ff4e4e4eff4e4e4eff000000ff4e4e4effc20f26ffc20f26ff077786ff077786ff1f8c44ff1f8c44ffc7811effc7811eff000000ff4e4e4eff226bccff226bccff226bccff226bccff4e4e4eff", + "increase": "ee6b68ffee6b68ffee6b68ffee6b68ffee6b68ffee6b68ff000000000000000067a0f0ffffffffff0000000000000000000000000000000000000000000000000000000000000000fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffafafaffb8b8b8ffd5e5d5fffffffffff7d8dbff4db380fff52a65ffc5d5c5ffe7c8cbff595959ff1e725cff7086b5ff7086b5ffc53b53ffb0851fff6cb77cff8a8a8affb0851fffe8a85cfff5f5f5ff67a0f0ff64a8b4ff67a0f0ff64a8b4ff64a8b4ff67a0f0ffe8a85cff8a8a8affa0a0a0fff5f5f5ff67a0f0ffe8a85cffe8a85cff64a8b4ff8a8a8aff6cb77cffb0851fffee6b68fffffffffff5f5f5ffffffffffffffffffffffffffffffffff8a8a8afff5f5f5ffffffffff8a8a8aff8a8a8aff67a0f0fff5f5f5fff5f5f5fff5f5f5ff8a8a8afff5f5f5fff5f5f5ff8a8a8afff5f5f5ffee6b68ffee6b68ff64a8b4ff64a8b4ff6cb77cff6cb77cffe8a85cffe8a85cff8a8a8afff5f5f5ff67a0f0ff67a0f0ff67a0f0ff67a0f0fff5f5f5ff" + }, + "opencode-classic/dark": { + "modes": ["light","dark"], + "hues": ["gray","red","orange","green","cyan","blue","purple","accent","interactive","neutral"], + "hue": "ffffffffeeeeeeffb5b5b5ff808080ff4c4c4cff1e1e1eff141414ff0a0a0aff030303fffd7e87ffe06c75ffc35a63ffa74952ff8c3941ff722931ff591921ff410a13ff280207fffddac5fffab283ffd8976cffb67c56ff966341ff774a2cff593319ff3d1d06ff1f0b01ff96f7a7ff7fd88fff68b977ff539c61ff3d7f4bff296336ff144922ff00300fff011705ff68d0ddff56b6c2ff449da7ff33848eff226c75ff0f555dff093e44ff02292eff001518ff82b4fbff5c9cf5ff4c86d6ff3c70b8ff2c5b9bff1d477fff0f3364ff02214aff01112bffb38ff4ff9d7cd8ff8869bdff7357a2ff5f4688ff4b356fff392557ff271640ff17072bffb38ff4ff9d7cd8ff8869bdff7357a2ff5f4688ff4b356fff392557ff271640ff17072bfffddac5fffab283ffd8976cffb67c56ff966341ff774a2cff593319ff3d1d06ff1f0b01ffffffffffeeeeeeffb5b5b5ff808080ff4c4c4cff1e1e1eff141414ff0a0a0aff030303ff", + "categorical": "82b4fbff5c9cf5ff4c86d6ff3c70b8ff2c5b9bff1d477fff0f3364ff02214aff01112bffb38ff4ff9d7cd8ff8869bdff7357a2ff5f4688ff4b356fff392557ff271640ff17072bff96f7a7ff7fd88fff68b977ff539c61ff3d7f4bff296336ff144922ff00300fff011705fffddac5fffab283ffd8976cffb67c56ff966341ff774a2cff593319ff3d1d06ff1f0b01fffd7e87ffe06c75ffc35a63ffa74952ff8c3941ff722931ff591921ff410a13ff280207ff", + "base": "e06c75ffe06c75ffe06c75ffe06c75ffe06c75ffe06c75ff0000000000000000fab283ff141414ff00000000000000000000000000000000000000000000000000000000000000000a0a0aff0a0a0aff0a0a0aff0a0a0aff0a0a0aff0a0a0aff0a0a0aff0a0a0aff0a0a0aff0a0a0aff0a0a0aff141414ff1e1e1eff4c4c4cff484848ff20303bff141414ff37222cffb8db87ffe26a75ff1b2b34ff2d1f26ff8f8f8fff4fd6beff828bb8ff828bb8ffc53b53ffe5c07bff7fd88fffeeeeeeffe5c07bff9d7cd8ff808080fffab283ff56b6c2fffab283ff56b6c2ff56b6c2fffab283fff5a742ffeeeeeeff606060ff808080fffab283ff9d7cd8fff5a742ff56b6c2ffeeeeeeff7fd88fffe5c07bffe06c75ff0a0a0aff808080ff0a0a0aff0a0a0aff0a0a0aff0a0a0affeeeeeeff808080ff0a0a0affeeeeeeffeeeeeefffab283ff808080ff808080ff808080ffeeeeeeff808080ff808080ffeeeeeeff808080ffe06c75ffe06c75ff56b6c2ff56b6c2ff7fd88fff7fd88ffff5a742fff5a742ffeeeeeeff808080fffab283fffab283fffab283fffab283ff808080ff", + "dialog": "e06c75ffe06c75ffe06c75ffe06c75ffe06c75ffe06c75ff0000000000000000fab283ff1e1e1eff0000000000000000000000000000000000000000000000000000000000000000141414ff141414ff141414ff141414ff141414ff141414ff141414ff141414ff141414ff141414ff141414ff141414ff1e1e1eff4c4c4cff484848ff20303bff141414ff37222cffb8db87ffe26a75ff1b2b34ff2d1f26ff8f8f8fff4fd6beff828bb8ff828bb8ffc53b53ffe5c07bff7fd88fffeeeeeeffe5c07bff9d7cd8ff808080fffab283ff56b6c2fffab283ff56b6c2ff56b6c2fffab283fff5a742ffeeeeeeff606060ff808080fffab283ff9d7cd8fff5a742ff56b6c2ffeeeeeeff7fd88fffe5c07bffe06c75ff0a0a0aff808080ff0a0a0aff0a0a0aff0a0a0aff0a0a0affeeeeeeff808080ff0a0a0affeeeeeeffeeeeeefffab283ff808080ff808080ff808080ffeeeeeeff808080ff808080ffeeeeeeff808080ffe06c75ffe06c75ff56b6c2ff56b6c2ff7fd88fff7fd88ffff5a742fff5a742ffeeeeeeff808080fffab283fffab283fffab283fffab283ff808080ff", + "footer": "e06c75ffe06c75ffe06c75ffe06c75ffe06c75ffe06c75ff0000000000000000fab283ff1e1e1eff0000000000000000000000000000000000000000000000000000000000000000141414ff141414ff141414ff141414ff141414ff141414ff141414ff141414ff141414ff141414ff141414ff141414ff1e1e1eff4c4c4cff484848ff20303bff141414ff37222cffb8db87ffe26a75ff1b2b34ff2d1f26ff8f8f8fff4fd6beff828bb8ff828bb8ffc53b53ffe5c07bff7fd88fffeeeeeeffe5c07bff9d7cd8ff808080fffab283ff56b6c2fffab283ff56b6c2ff56b6c2fffab283fff5a742ffeeeeeeff606060ff808080fffab283ff9d7cd8fff5a742ff56b6c2ffeeeeeeff7fd88fffe5c07bffe06c75ff0a0a0aff808080ff0a0a0aff0a0a0aff0a0a0aff0a0a0affeeeeeeff808080ff0a0a0affeeeeeeffeeeeeefffab283ff808080ff808080ff808080ffeeeeeeff808080ff808080ffeeeeeeff808080ffe06c75ffe06c75ff56b6c2ff56b6c2ff7fd88fff7fd88ffff5a742fff5a742ffeeeeeeff808080fffab283fffab283fffab283fffab283ff808080ff", + "decrease": "fd7e87fffd7e87fffd7e87fffd7e87fffd7e87fffd7e87ff0000000000000000fddac5ff1e1e1eff0000000000000000000000000000000000000000000000000000000000000000141414ff141414ff141414ff141414ff141414ff141414ff141414ff141414ff141414ff141414ff141414ff1e1e1eff4c4c4cff808080ff484848ff20303bff1e1e1eff37222cffb8db87ffe26a75ff1b2b34ff2d1f26ff8f8f8fff4fd6beff828bb8ff828bb8ffc53b53ffe5c07bff96f7a7ffffffffffe5c07bffb38ff4ffb5b5b5fffddac5ff68d0ddfffddac5ff68d0ddff68d0ddfffddac5fff5a742ffffffffff606060ffb5b5b5fffddac5ffb38ff4fff5a742ff68d0ddffffffffff96f7a7ffe5c07bfffd7e87ff141414ffb5b5b5ff141414ff141414ff141414ff141414ffffffffffb5b5b5ff141414fffffffffffffffffffddac5ffb5b5b5ffb5b5b5ffb5b5b5ffffffffffb5b5b5ffb5b5b5ffffffffffb5b5b5fffd7e87fffd7e87ff68d0ddff68d0ddff96f7a7ff96f7a7fff5a742fff5a742ffffffffffb5b5b5fffddac5fffddac5fffddac5fffddac5ffb5b5b5ff", + "increase": "a74952ffa74952ffa74952ffa74952ffa74952ffa74952ff0000000000000000b67c56ff030303ff0000000000000000000000000000000000000000000000000000000000000000030303ff030303ff030303ff030303ff030303ff030303ff030303ff030303ff030303ff030303ff030303ff030303ff0a0a0aff141414ff484848ff20303bff030303ff37222cffb8db87ffe26a75ff1b2b34ff2d1f26ff8f8f8fff4fd6beff828bb8ff828bb8ffc53b53ffe5c07bff539c61ff808080ffe5c07bff7357a2ff1e1e1effb67c56ff33848effb67c56ff33848eff33848effb67c56fff5a742ff808080ff606060ff1e1e1effb67c56ff7357a2fff5a742ff33848eff808080ff539c61ffe5c07bffa74952ff030303ff1e1e1eff030303ff030303ff030303ff030303ff808080ff1e1e1eff030303ff808080ff808080ffb67c56ff1e1e1eff1e1e1eff1e1e1eff808080ff1e1e1eff1e1e1eff808080ff1e1e1effa74952ffa74952ff33848eff33848eff539c61ff539c61fff5a742fff5a742ff808080ff1e1e1effb67c56ffb67c56ffb67c56ffb67c56ff1e1e1eff" + } + }, + "system": { + "dark/dark": { + "modes": ["light","dark"], + "hues": ["gray","red","yellow","cyan","purple","accent","interactive","neutral"], + "hue": "c5c8c6ffa9a9a9ff707575ff5f6267ff3a3d41ff2d3034ff242629ff222427ff1d1f2100c4b9b8ffb59b99ff836d6cffcc6666ff965856ff3e3740ff322d34ff28252aff212024ffbfbcb4ffaaa190ff7a7263fff0c674ff9d8555ff323b37ff29302eff222726ff1d2221ffb8bdbcff99a5a3ff6c7674ff8abeb7ff668480ff343a3cff2b2f31ff232729ff1e2223ffbebbbfffa69fa8ff777179ffb294bbff806e86ff39393fff2e2e33ff26262aff202124ffb8bdbcff99a5a3ff6c7674ff8abeb7ff668480ff343a3cff2b2f31ff232729ff1e2223ffb8bdbcff99a5a3ff6c7674ff8abeb7ff668480ff343a3cff2b2f31ff232729ff1e2223ffc5c8c6ffa9a9a9ff707575ff5f6267ff3a3d41ff2d3034ff242629ff222427ff1d1f2100", + "categorical": "bebbbfffa69fa8ff777179ffb294bbff806e86ff39393fff2e2e33ff26262aff202124ffb8bdbcff99a5a3ff6c7674ff8abeb7ff668480ff343a3cff2b2f31ff232729ff1e2223ffbfbcb4ffaaa190ff7a7263fff0c674ff9d8555ff323b37ff29302eff222726ff1d2221ffc4b9b8ffb59b99ff836d6cffcc6666ff965856ff3e3740ff322d34ff28252aff212024ff", + "base": "cc6666ffcc6666ffcc6666ffcc6666ffcc6666ffcc6666ff0000000000000000343a3cff242629ff00000000000000000000000000000000000000000000000000000000000000001d1f21001d1f21001d1f21001d1f21001d1f21001d1f21001d1f21001d1f21001d1f21001d1f21001d1f2100242629ff2d3034ff3a3d41ff4e5359ff3e4231ff2b2e31ff442f30ffb9ca4affd54e53ff494d3dff4e3a3dffa9a9a9ffb5bd68ff4e5359ff4e5359ffcc6666fff0c674ffb5bd68ffc5c8c6fff0c674ffc5c8c6ff4e5359ff81a2beff8abeb7ff81a2beff8abeb7ff8abeb7ff81a2beffc5c8c6ffc5c8c6ff555b61ffa9a9a9ff81a2beffb294bbfff0c674ff8abeb7ffc5c8c6ffb5bd68ff8abeb7ffc5c8c6ff1d1f21ff707575ff1d1f21ff1d1f21ff1d1f21ff1d1f21ffc5c8c6ff707575ffc5c8c6ffc5c8c6ffc5c8c6ff8abeb7ffa9a9a9ffa9a9a9ff99a5a3ffc5c8c6ffa9a9a9ffa9a9a9ffc5c8c6ff707575ffcc6666ffcc6666ff8abeb7ff8abeb7ffb5bd68ffb5bd68fff0c674fff0c674ffc5c8c6ff707575ff8abeb7ff8abeb7ff8abeb7ff8abeb7ffa9a9a9ff", + "dialog": "cc6666ffcc6666ffcc6666ffcc6666ffcc6666ffcc6666ff0000000000000000343a3cff3a3d41ff00000000000000000000000000000000000000003a3d41ff0000000000000000242629ff242629ff242629ff242629ff242629ff242629ff242629ff242629ff242629ff242629ff242629ff242629ff2d3034ff3a3d41ff4e5359ff3e4231ff2b2e31ff442f30ffb9ca4affd54e53ff494d3dff4e3a3dffa9a9a9ffb5bd68ff4e5359ff4e5359ffcc6666fff0c674ffb5bd68ffc5c8c6fff0c674ffc5c8c6ff4e5359ff81a2beff8abeb7ff81a2beff8abeb7ff8abeb7ff81a2beffc5c8c6ffc5c8c6ff555b61ffa9a9a9ff81a2beffb294bbfff0c674ff8abeb7ffc5c8c6ffb5bd68ff8abeb7ffc5c8c6ff1d1f21ff707575ff1d1f21ff1d1f21ff1d1f21ff1d1f21ffc5c8c6ff707575ffc5c8c6ffc5c8c6ffc5c8c6ff8abeb7ffa9a9a9ffa9a9a9ff99a5a3ffc5c8c6ffa9a9a9ffa9a9a9ffc5c8c6ff707575ffcc6666ffcc6666ff8abeb7ff8abeb7ffb5bd68ffb5bd68fff0c674fff0c674ffc5c8c6ff707575ff8abeb7ff8abeb7ff8abeb7ff8abeb7ffa9a9a9ff", + "footer": "cc6666ffcc6666ffcc6666ffcc6666ffcc6666ffcc6666ff0000000000000000343a3cff3a3d41ff00000000000000000000000000000000000000003a3d41ff0000000000000000242629ff242629ff242629ff242629ff242629ff242629ff242629ff242629ff242629ff242629ff242629ff242629ff2d3034ff3a3d41ff4e5359ff3e4231ff2b2e31ff442f30ffb9ca4affd54e53ff494d3dff4e3a3dffa9a9a9ffb5bd68ff4e5359ff4e5359ffcc6666fff0c674ffb5bd68ffc5c8c6fff0c674ffc5c8c6ff4e5359ff81a2beff8abeb7ff81a2beff8abeb7ff8abeb7ff81a2beffc5c8c6ffc5c8c6ff555b61ffa9a9a9ff81a2beffb294bbfff0c674ff8abeb7ffc5c8c6ffb5bd68ff8abeb7ffc5c8c6ff1d1f21ff707575ff1d1f21ff1d1f21ff1d1f21ff1d1f21ffc5c8c6ff707575ffc5c8c6ffc5c8c6ffc5c8c6ff8abeb7ffa9a9a9ffa9a9a9ff99a5a3ffc5c8c6ffa9a9a9ffa9a9a9ffc5c8c6ff707575ffcc6666ffcc6666ff8abeb7ff8abeb7ffb5bd68ffb5bd68fff0c674fff0c674ffc5c8c6ff707575ff8abeb7ff8abeb7ff8abeb7ff8abeb7ffa9a9a9ff", + "decrease": "836d6cff836d6cff836d6cff836d6cff836d6cff836d6cff0000000000000000668480ff2d3034ff0000000000000000000000000000000000000000000000000000000000000000222427ff222427ff222427ff222427ff222427ff222427ff222427ff222427ff222427ff222427ff222427ff2d3034ff3a3d41ff5f6267ff4e5359ff3e4231ff2b2e31ff442f30ffb9ca4affd54e53ff494d3dff4e3a3dffc5c8c6ffb5bd68ff4e5359ff4e5359ff836d6cff7a7263ffb5bd68ffc5c8c6ff7a7263ffc5c8c6ff4e5359ff81a2beff6c7674ff81a2beff6c7674ff6c7674ff81a2beffc5c8c6ffc5c8c6ff555b61ffc5c8c6ff81a2beff777179ff7a7263ff6c7674ffc5c8c6ffb5bd68ff6c7674ffc5c8c6ff1d1f21ffa9a9a9ff1d1f21ff1d1f21ff1d1f21ff1d1f21ffc5c8c6ffa9a9a9ffc5c8c6ffc5c8c6ffc5c8c6ff6c7674ffc5c8c6ffc5c8c6ffb8bdbcffc5c8c6ffc5c8c6ffc5c8c6ffc5c8c6ffa9a9a9ff836d6cff836d6cff6c7674ff6c7674ffb5bd68ffb5bd68ff7a7263ff7a7263ffc5c8c6ffa9a9a9ff6c7674ff6c7674ff6c7674ff6c7674ffc5c8c6ff", + "increase": "3e3740ff3e3740ff3e3740ff3e3740ff3e3740ff3e3740ff0000000000000000232729ff1d1f210000000000000000000000000000000000000000000000000000000000000000001d1f21001d1f21001d1f21001d1f21001d1f21001d1f21001d1f21001d1f21001d1f21001d1f21001d1f21001d1f2100222427ff242629ff4e5359ff3e4231ff2b2e31ff442f30ffb9ca4affd54e53ff494d3dff4e3a3dff5f6267ffb5bd68ff4e5359ff4e5359ff3e3740ff323b37ffb5bd68ff707575ff323b37ff707575ff4e5359ff81a2beff343a3cff81a2beff343a3cff343a3cff81a2beff707575ff707575ff555b61ff5f6267ff81a2beff39393fff323b37ff343a3cff707575ffb5bd68ff343a3cff707575ff1d1f21ff3a3d41ff1d1f21ff1d1f21ff1d1f21ff1d1f21ff707575ff3a3d41ff707575ff707575ff707575ff343a3cff5f6267ff5f6267ff8abeb7ff707575ff5f6267ff5f6267ff707575ff3a3d41ff3e3740ff3e3740ff343a3cff343a3cffb5bd68ffb5bd68ff323b37ff323b37ff707575ff3a3d41ff343a3cff343a3cff343a3cff343a3cff5f6267ff", + "terminal": "dark" + }, + "dark/light": { + "modes": ["light","dark"], + "hues": ["gray","red","yellow","cyan","purple","accent","interactive","neutral"], + "hue": "c5c8c6ff8d9191ff3c3c3cff000000ff050607ff0d0e10ff1b1c1eff212224ff1d1f2100f2dcdbffc2b5b4ff675756ffcc6666ff4f2d2dff1b0f0eff211919ff24201fff252323ffe9e1d3ffbdb8afff605b50fff0c674ff574a31ff171209ff1e1b16ff22201eff242322ffdbe5e3ffb4bab9ff565d5cff8abeb7ff384846ff0e1413ff191c1cff1f2121ff232323ffe6e0e8ffbbb7bcff5e5a5fffb294bbff453b48ff151116ff1d1b1eff212022ff242324ffdbe5e3ffb4bab9ff565d5cff8abeb7ff384846ff0e1413ff191c1cff1f2121ff232323ffdbe5e3ffb4bab9ff565d5cff8abeb7ff384846ff0e1413ff191c1cff1f2121ff232323ffc5c8c6ff8d9191ff3c3c3cff000000ff050607ff0d0e10ff1b1c1eff212224ff1d1f2100", + "categorical": "e6e0e8ffbbb7bcff5e5a5fffb294bbff453b48ff151116ff1d1b1eff212022ff242324ffdbe5e3ffb4bab9ff565d5cff8abeb7ff384846ff0e1413ff191c1cff1f2121ff232323ffe9e1d3ffbdb8afff605b50fff0c674ff574a31ff171209ff1e1b16ff22201eff242322fff2dcdbffc2b5b4ff675756ffcc6666ff4f2d2dff1b0f0eff211919ff24201fff252323ff", + "base": "cc6666ffcc6666ffcc6666ffcc6666ffcc6666ffcc6666ff00000000000000000e1413ff1b1c1eff00000000000000000000000000000000000000000000000000000000000000001d1f21001d1f21001d1f21001d1f21001d1f21001d1f21001d1f21001d1f21001d1f21001d1f21001d1f21001b1c1eff0d0e10ff050607ff161719ff32352bff1b1c1eff36292bffb9ca4affd54e53ff313328ff342628ff3c3c3cffb5bd68ff161719ff161719ffcc6666fff0c674ffb5bd68ffc5c8c6fff0c674ffc5c8c6ff161719ff81a2beff8abeb7ff81a2beff8abeb7ff8abeb7ff81a2beffc5c8c6ffc5c8c6ff151618ff3c3c3cff81a2beffb294bbfff0c674ff8abeb7ffc5c8c6ffb5bd68ff8abeb7ffc5c8c6ff1d1f21ff3c3c3cff1d1f21ff1d1f21ff1d1f21ff1d1f21ffc5c8c6ff3c3c3cffc5c8c6ffc5c8c6ffc5c8c6ff8abeb7ff8d9191ff8d9191ffb4bab9ffc5c8c6ff8d9191ff8d9191ffc5c8c6ff3c3c3cffcc6666ffcc6666ff8abeb7ff8abeb7ffb5bd68ffb5bd68fff0c674fff0c674ffc5c8c6ff3c3c3cff8abeb7ff8abeb7ff8abeb7ff8abeb7ff8d9191ff", + "dialog": "cc6666ffcc6666ffcc6666ffcc6666ffcc6666ffcc6666ff00000000000000000e1413ff0d0e10ff00000000000000000000000000000000000000000d0e10ff0000000000000000212224ff212224ff212224ff212224ff212224ff212224ff212224ff212224ff212224ff212224ff212224ff1b1c1eff1b1c1eff050607ff161719ff32352bff1b1c1eff36292bffb9ca4affd54e53ff313328ff342628ff3c3c3cffb5bd68ff161719ff161719ffcc6666fff0c674ffb5bd68ffc5c8c6fff0c674ffc5c8c6ff161719ff81a2beff8abeb7ff81a2beff8abeb7ff8abeb7ff81a2beffc5c8c6ffc5c8c6ff151618ff3c3c3cff81a2beffb294bbfff0c674ff8abeb7ffc5c8c6ffb5bd68ff8abeb7ffc5c8c6ff1d1f21ff3c3c3cff1d1f21ff1d1f21ff1d1f21ff1d1f21ffc5c8c6ff3c3c3cffc5c8c6ffc5c8c6ffc5c8c6ff8abeb7ff8d9191ff8d9191ffb4bab9ffc5c8c6ff8d9191ff8d9191ffc5c8c6ff3c3c3cffcc6666ffcc6666ff8abeb7ff8abeb7ffb5bd68ffb5bd68fff0c674fff0c674ffc5c8c6ff3c3c3cff8abeb7ff8abeb7ff8abeb7ff8abeb7ff8d9191ff", + "footer": "cc6666ffcc6666ffcc6666ffcc6666ffcc6666ffcc6666ff00000000000000000e1413ff0d0e10ff00000000000000000000000000000000000000000d0e10ff0000000000000000212224ff212224ff212224ff212224ff212224ff212224ff212224ff212224ff212224ff212224ff212224ff1b1c1eff1b1c1eff050607ff161719ff32352bff1b1c1eff36292bffb9ca4affd54e53ff313328ff342628ff3c3c3cffb5bd68ff161719ff161719ffcc6666fff0c674ffb5bd68ffc5c8c6fff0c674ffc5c8c6ff161719ff81a2beff8abeb7ff81a2beff8abeb7ff8abeb7ff81a2beffc5c8c6ffc5c8c6ff151618ff3c3c3cff81a2beffb294bbfff0c674ff8abeb7ffc5c8c6ffb5bd68ff8abeb7ffc5c8c6ff1d1f21ff3c3c3cff1d1f21ff1d1f21ff1d1f21ff1d1f21ffc5c8c6ff3c3c3cffc5c8c6ffc5c8c6ffc5c8c6ff8abeb7ff8d9191ff8d9191ffb4bab9ffc5c8c6ff8d9191ff8d9191ffc5c8c6ff3c3c3cffcc6666ffcc6666ff8abeb7ff8abeb7ffb5bd68ffb5bd68fff0c674fff0c674ffc5c8c6ff3c3c3cff8abeb7ff8abeb7ff8abeb7ff8abeb7ff8d9191ff", + "decrease": "675756ff675756ff675756ff675756ff675756ff675756ff0000000000000000384846ff0d0e10ff0000000000000000000000000000000000000000000000000000000000000000212224ff212224ff212224ff212224ff212224ff212224ff212224ff212224ff212224ff212224ff212224ff0d0e10ff050607ff000000ff161719ff32352bff0d0e10ff36292bffb9ca4affd54e53ff313328ff342628ff8d9191ffb5bd68ff161719ff161719ff675756ff605b50ffb5bd68ffc5c8c6ff605b50ffc5c8c6ff161719ff81a2beff565d5cff81a2beff565d5cff565d5cff81a2beffc5c8c6ffc5c8c6ff151618ff8d9191ff81a2beff5e5a5fff605b50ff565d5cffc5c8c6ffb5bd68ff565d5cffc5c8c6ff1d1f21ff8d9191ff1d1f21ff1d1f21ff1d1f21ff1d1f21ffc5c8c6ff8d9191ffc5c8c6ffc5c8c6ffc5c8c6ff565d5cffc5c8c6ffc5c8c6ffdbe5e3ffc5c8c6ffc5c8c6ffc5c8c6ffc5c8c6ff8d9191ff675756ff675756ff565d5cff565d5cffb5bd68ffb5bd68ff605b50ff605b50ffc5c8c6ff8d9191ff565d5cff565d5cff565d5cff565d5cffc5c8c6ff", + "increase": "1b0f0eff1b0f0eff1b0f0eff1b0f0eff1b0f0eff1b0f0eff00000000000000001f2121ff1d1f210000000000000000000000000000000000000000000000000000000000000000001d1f21001d1f21001d1f21001d1f21001d1f21001d1f21001d1f21001d1f21001d1f21001d1f21001d1f21001d1f2100212224ff1b1c1eff161719ff32352bff1d1f210036292bffb9ca4affd54e53ff313328ff342628ff050607ffb5bd68ff161719ff161719ff1b0f0eff171209ffb5bd68ff3c3c3cff171209ff3c3c3cff161719ff81a2beff0e1413ff81a2beff0e1413ff0e1413ff81a2beff3c3c3cff3c3c3cff151618ff050607ff81a2beff151116ff171209ff0e1413ff3c3c3cffb5bd68ff0e1413ff3c3c3cff1d1f21ff050607ff1d1f21ff1d1f21ff1d1f21ff1d1f21ff3c3c3cff050607ff3c3c3cff3c3c3cff3c3c3cff0e1413ff000000ff000000ff8abeb7ff3c3c3cff000000ff000000ff3c3c3cff050607ff1b0f0eff1b0f0eff0e1413ff0e1413ffb5bd68ffb5bd68ff171209ff171209ff3c3c3cff050607ff0e1413ff0e1413ff0e1413ff0e1413ff000000ff", + "terminal": "dark" + }, + "light/dark": { + "modes": ["light","dark"], + "hues": ["gray","red","yellow","cyan","purple","accent","interactive","neutral"], + "hue": "586e75ff78908cffc8c8c8fffffffffffffffffffffffffffdf6e3fff7f0ddfffdf6e300675d5dff957c7bffd9c0bfffcc6666fffed2d0fffffffffffffffffffff6f5ffede5e5ff635f59ff8b8272ffcfc6b6fff0c674fffefefefffffffffffffffffffcf8f1ffeae7e2ff5d6160ff7b8684ffbfcac8ff8abeb7ffd9faf5fffffffffffffffffff5f9f9ffe5e8e8ff615f62ff87818affcbc4cdffb294bbfff6e1fcfffffffffffffffffffaf7fbffe9e6e9ff5d6160ff7b8684ffbfcac8ff8abeb7ffd9faf5fffffffffffffffffff5f9f9ffe5e8e8ff5d6160ff7b8684ffbfcac8ff8abeb7ffd9faf5fffffffffffffffffff5f9f9ffe5e8e8ff586e75ff78908cffc8c8c8fffffffffffffffffffffffffffdf6e3fff7f0ddfffdf6e300", + "categorical": "615f62ff87818affcbc4cdffb294bbfff6e1fcfffffffffffffffffffaf7fbffe9e6e9ff5d6160ff7b8684ffbfcac8ff8abeb7ffd9faf5fffffffffffffffffff5f9f9ffe5e8e8ff635f59ff8b8272ffcfc6b6fff0c674fffefefefffffffffffffffffffcf8f1ffeae7e2ff675d5dff957c7bffd9c0bfffcc6666fffed2d0fffffffffffffffffffff6f5ffede5e5ff", + "base": "cc6666ffcc6666ffcc6666ffcc6666ffcc6666ffcc6666ff0000000000000000fffffffffdf6e3ff0000000000000000000000000000000000000000000000000000000000000000fdf6e300fdf6e300fdf6e300fdf6e300fdf6e300fdf6e300fdf6e300fdf6e300fdf6e300fdf6e300fdf6e300fdf6e3fffffffffffffffffffff8e4ffede9c8fffdf6e3fff2d6c8ffb9ca4affd54e53ffede9c8fff2d6c8ffc8c8c8ffb5bd68fffff8e4fffff8e4ffcc6666fff0c674ffb5bd68ff586e75fff0c674ff586e75fffff8e4ff81a2beff8abeb7ff81a2beff8abeb7ff8abeb7ff81a2beff586e75ff586e75fffff8e5ffc8c8c8ff81a2beffb294bbfff0c674ff8abeb7ff586e75ffb5bd68ff8abeb7ff586e75fffdf6e3ffc8c8c8fffdf6e3fffdf6e3fffdf6e3fffdf6e3ff586e75ffc8c8c8ff586e75ff586e75ff586e75ff8abeb7ff78908cff78908cff7b8684ff586e75ff78908cff78908cff586e75ffc8c8c8ffcc6666ffcc6666ff8abeb7ff8abeb7ffb5bd68ffb5bd68fff0c674fff0c674ff586e75ffc8c8c8ff8abeb7ff8abeb7ff8abeb7ff8abeb7ff78908cff", + "dialog": "cc6666ffcc6666ffcc6666ffcc6666ffcc6666ffcc6666ff0000000000000000ffffffffffffffff0000000000000000000000000000000000000000ffffffff0000000000000000fdf6e3fffdf6e3fffdf6e3fffdf6e3fffdf6e3fffdf6e3fffdf6e3fffdf6e3fffdf6e3fffdf6e3fffdf6e3fffdf6e3fffffffffffffffffffff8e4ffede9c8fffdf6e3fff2d6c8ffb9ca4affd54e53ffede9c8fff2d6c8ffc8c8c8ffb5bd68fffff8e4fffff8e4ffcc6666fff0c674ffb5bd68ff586e75fff0c674ff586e75fffff8e4ff81a2beff8abeb7ff81a2beff8abeb7ff8abeb7ff81a2beff586e75ff586e75fffff8e5ffc8c8c8ff81a2beffb294bbfff0c674ff8abeb7ff586e75ffb5bd68ff8abeb7ff586e75fffdf6e3ffc8c8c8fffdf6e3fffdf6e3fffdf6e3fffdf6e3ff586e75ffc8c8c8ff586e75ff586e75ff586e75ff8abeb7ff78908cff78908cff7b8684ff586e75ff78908cff78908cff586e75ffc8c8c8ffcc6666ffcc6666ff8abeb7ff8abeb7ffb5bd68ffb5bd68fff0c674fff0c674ff586e75ffc8c8c8ff8abeb7ff8abeb7ff8abeb7ff8abeb7ff78908cff", + "footer": "cc6666ffcc6666ffcc6666ffcc6666ffcc6666ffcc6666ff0000000000000000ffffffffffffffff0000000000000000000000000000000000000000ffffffff0000000000000000fdf6e3fffdf6e3fffdf6e3fffdf6e3fffdf6e3fffdf6e3fffdf6e3fffdf6e3fffdf6e3fffdf6e3fffdf6e3fffdf6e3fffffffffffffffffffff8e4ffede9c8fffdf6e3fff2d6c8ffb9ca4affd54e53ffede9c8fff2d6c8ffc8c8c8ffb5bd68fffff8e4fffff8e4ffcc6666fff0c674ffb5bd68ff586e75fff0c674ff586e75fffff8e4ff81a2beff8abeb7ff81a2beff8abeb7ff8abeb7ff81a2beff586e75ff586e75fffff8e5ffc8c8c8ff81a2beffb294bbfff0c674ff8abeb7ff586e75ffb5bd68ff8abeb7ff586e75fffdf6e3ffc8c8c8fffdf6e3fffdf6e3fffdf6e3fffdf6e3ff586e75ffc8c8c8ff586e75ff586e75ff586e75ff8abeb7ff78908cff78908cff7b8684ff586e75ff78908cff78908cff586e75ffc8c8c8ffcc6666ffcc6666ff8abeb7ff8abeb7ffb5bd68ffb5bd68fff0c674fff0c674ff586e75ffc8c8c8ff8abeb7ff8abeb7ff8abeb7ff8abeb7ff78908cff", + "decrease": "d9c0bfffd9c0bfffd9c0bfffd9c0bfffd9c0bfffd9c0bfff0000000000000000d9faf5ffffffffff0000000000000000000000000000000000000000000000000000000000000000f7f0ddfff7f0ddfff7f0ddfff7f0ddfff7f0ddfff7f0ddfff7f0ddfff7f0ddfff7f0ddfff7f0ddfff7f0ddfffffffffffffffffffffffffffff8e4ffede9c8fffffffffff2d6c8ffb9ca4affd54e53ffede9c8fff2d6c8ff78908cffb5bd68fffff8e4fffff8e4ffd9c0bfffcfc6b6ffb5bd68ff586e75ffcfc6b6ff586e75fffff8e4ff81a2beffbfcac8ff81a2beffbfcac8ffbfcac8ff81a2beff586e75ff586e75fffff8e5ff78908cff81a2beffcbc4cdffcfc6b6ffbfcac8ff586e75ffb5bd68ffbfcac8ff586e75ffffffffff78908cffffffffffffffffffffffffffffffffff586e75ff78908cff586e75ff586e75ff586e75ffbfcac8ff586e75ff586e75ff5d6160ff586e75ff586e75ff586e75ff586e75ff78908cffd9c0bfffd9c0bfffbfcac8ffbfcac8ffb5bd68ffb5bd68ffcfc6b6ffcfc6b6ff586e75ff78908cffbfcac8ffbfcac8ffbfcac8ffbfcac8ff586e75ff", + "increase": "ffffffffffffffffffffffffffffffffffffffffffffffff0000000000000000f5f9f9fffdf6e3000000000000000000000000000000000000000000000000000000000000000000fdf6e300fdf6e300fdf6e300fdf6e300fdf6e300fdf6e300fdf6e300fdf6e300fdf6e300fdf6e300fdf6e300fdf6e300f7f0ddfffdf6e3fffff8e4ffede9c8fffdf6e300f2d6c8ffb9ca4affd54e53ffede9c8fff2d6c8ffffffffffb5bd68fffff8e4fffff8e4ffffffffffffffffffb5bd68ffc8c8c8ffffffffffc8c8c8fffff8e4ff81a2beffffffffff81a2beffffffffffffffffff81a2beffc8c8c8ffc8c8c8fffff8e5ffffffffff81a2beffffffffffffffffffffffffffc8c8c8ffb5bd68ffffffffffc8c8c8fffdf6e300fffffffffdf6e300fdf6e300fdf6e300fdf6e300c8c8c8ffffffffffc8c8c8ffc8c8c8ffc8c8c8ffffffffffffffffffffffffff8abeb7ffc8c8c8ffffffffffffffffffc8c8c8ffffffffffffffffffffffffffffffffffffffffffb5bd68ffb5bd68ffffffffffffffffffc8c8c8ffffffffffffffffffffffffffffffffffffffffffffffffff", + "terminal": "light" + }, + "light/light": { + "modes": ["light","dark"], + "hues": ["gray","red","yellow","cyan","purple","accent","interactive","neutral"], + "hue": "586e75ff4b4b4bffa9b4b8ffb1b1b1ffe8e8e8ffebebebffeeeeeefff7f7f7fffdf6e300907c7bff786c6bffe5d2d1ffcc6666ffdfb5b3fff4e9e8fff6eaeafff9f3f3fffaf8f8ff888174ff736f67ffddd6cafff0c674ffe7d7baffefebe3fff1ede5fff7f4f1fff9f8f7ff7b8483ff6b7170ffd1d9d8ff8abeb7ffc1d5d2ffe6ecebffeaefeefff3f5f5fff8f9f8ff858087ff716e72ffdad5dcffb294bbffd1c5d4ffedeaeeffefecf0fff6f4f6fff9f8f9ff7b8483ff6b7170ffd1d9d8ff8abeb7ffc1d5d2ffe6ecebffeaefeefff3f5f5fff8f9f8ff7b8483ff6b7170ffd1d9d8ff8abeb7ffc1d5d2ffe6ecebffeaefeefff3f5f5fff8f9f8ff586e75ff4b4b4bffa9b4b8ffb1b1b1ffe8e8e8ffebebebffeeeeeefff7f7f7fffdf6e300", + "categorical": "858087ff716e72ffdad5dcffb294bbffd1c5d4ffedeaeeffefecf0fff6f4f6fff9f8f9ff7b8483ff6b7170ffd1d9d8ff8abeb7ffc1d5d2ffe6ecebffeaefeefff3f5f5fff8f9f8ff888174ff736f67ffddd6cafff0c674ffe7d7baffefebe3fff1ede5fff7f4f1fff9f8f7ff907c7bff786c6bffe5d2d1ffcc6666ffdfb5b3fff4e9e8fff6eaeafff9f3f3fffaf8f8ff", + "base": "cc6666ffcc6666ffcc6666ffcc6666ffcc6666ffcc6666ff0000000000000000e6ecebffeeeeeeff0000000000000000000000000000000000000000000000000000000000000000fdf6e300fdf6e300fdf6e300fdf6e300fdf6e300fdf6e300fdf6e300fdf6e300fdf6e300fdf6e300fdf6e300eeeeeeffebebebffe8e8e8ffc3c3c3fff3eed2ffeeeeeefff6e2d2ffb9ca4affd54e53ffe6e7dbffe9dbdbff4b4b4bffb5bd68ffc3c3c3ffc3c3c3ffcc6666fff0c674ffb5bd68ff586e75fff0c674ff586e75ffc3c3c3ff81a2beff8abeb7ff81a2beff8abeb7ff8abeb7ff81a2beff586e75ff586e75ffbbbbbbff4b4b4bff81a2beffb294bbfff0c674ff8abeb7ff586e75ffb5bd68ff8abeb7ff586e75fffdf6e3ffa9b4b8fffdf6e3fffdf6e3fffdf6e3fffdf6e3ff586e75ffa9b4b8ff586e75ff586e75ff586e75ff8abeb7ff4b4b4bff4b4b4bff6b7170ff586e75ff4b4b4bff4b4b4bff586e75ffa9b4b8ffcc6666ffcc6666ff8abeb7ff8abeb7ffb5bd68ffb5bd68fff0c674fff0c674ff586e75ffa9b4b8ff8abeb7ff8abeb7ff8abeb7ff8abeb7ff4b4b4bff", + "dialog": "cc6666ffcc6666ffcc6666ffcc6666ffcc6666ffcc6666ff0000000000000000e6ecebffebebebff0000000000000000000000000000000000000000ebebebff0000000000000000f7f7f7fff7f7f7fff7f7f7fff7f7f7fff7f7f7fff7f7f7fff7f7f7fff7f7f7fff7f7f7fff7f7f7fff7f7f7ffeeeeeeffeeeeeeffe8e8e8ffc3c3c3fff3eed2ffeeeeeefff6e2d2ffb9ca4affd54e53ffe6e7dbffe9dbdbff4b4b4bffb5bd68ffc3c3c3ffc3c3c3ffcc6666fff0c674ffb5bd68ff586e75fff0c674ff586e75ffc3c3c3ff81a2beff8abeb7ff81a2beff8abeb7ff8abeb7ff81a2beff586e75ff586e75ffbbbbbbff4b4b4bff81a2beffb294bbfff0c674ff8abeb7ff586e75ffb5bd68ff8abeb7ff586e75fffdf6e3ffa9b4b8fffdf6e3fffdf6e3fffdf6e3fffdf6e3ff586e75ffa9b4b8ff586e75ff586e75ff586e75ff8abeb7ff4b4b4bff4b4b4bff6b7170ff586e75ff4b4b4bff4b4b4bff586e75ffa9b4b8ffcc6666ffcc6666ff8abeb7ff8abeb7ffb5bd68ffb5bd68fff0c674fff0c674ff586e75ffa9b4b8ff8abeb7ff8abeb7ff8abeb7ff8abeb7ff4b4b4bff", + "footer": "cc6666ffcc6666ffcc6666ffcc6666ffcc6666ffcc6666ff0000000000000000e6ecebffebebebff0000000000000000000000000000000000000000ebebebff0000000000000000f7f7f7fff7f7f7fff7f7f7fff7f7f7fff7f7f7fff7f7f7fff7f7f7fff7f7f7fff7f7f7fff7f7f7fff7f7f7ffeeeeeeffeeeeeeffe8e8e8ffc3c3c3fff3eed2ffeeeeeefff6e2d2ffb9ca4affd54e53ffe6e7dbffe9dbdbff4b4b4bffb5bd68ffc3c3c3ffc3c3c3ffcc6666fff0c674ffb5bd68ff586e75fff0c674ff586e75ffc3c3c3ff81a2beff8abeb7ff81a2beff8abeb7ff8abeb7ff81a2beff586e75ff586e75ffbbbbbbff4b4b4bff81a2beffb294bbfff0c674ff8abeb7ff586e75ffb5bd68ff8abeb7ff586e75fffdf6e3ffa9b4b8fffdf6e3fffdf6e3fffdf6e3fffdf6e3ff586e75ffa9b4b8ff586e75ff586e75ff586e75ff8abeb7ff4b4b4bff4b4b4bff6b7170ff586e75ff4b4b4bff4b4b4bff586e75ffa9b4b8ffcc6666ffcc6666ff8abeb7ff8abeb7ffb5bd68ffb5bd68fff0c674fff0c674ff586e75ffa9b4b8ff8abeb7ff8abeb7ff8abeb7ff8abeb7ff4b4b4bff", + "decrease": "e5d2d1ffe5d2d1ffe5d2d1ffe5d2d1ffe5d2d1ffe5d2d1ff0000000000000000c1d5d2ffebebebff0000000000000000000000000000000000000000000000000000000000000000f7f7f7fff7f7f7fff7f7f7fff7f7f7fff7f7f7fff7f7f7fff7f7f7fff7f7f7fff7f7f7fff7f7f7fff7f7f7ffebebebffe8e8e8ffb1b1b1ffc3c3c3fff3eed2ffebebebfff6e2d2ffb9ca4affd54e53ffe6e7dbffe9dbdbff586e75ffb5bd68ffc3c3c3ffc3c3c3ffe5d2d1ffddd6caffb5bd68ff586e75ffddd6caff586e75ffc3c3c3ff81a2beffd1d9d8ff81a2beffd1d9d8ffd1d9d8ff81a2beff586e75ff586e75ffbbbbbbff586e75ff81a2beffdad5dcffddd6caffd1d9d8ff586e75ffb5bd68ffd1d9d8ff586e75fffdf6e3ff4b4b4bfffdf6e3fffdf6e3fffdf6e3fffdf6e3ff586e75ff4b4b4bff586e75ff586e75ff586e75ffd1d9d8ff586e75ff586e75ff7b8483ff586e75ff586e75ff586e75ff586e75ff4b4b4bffe5d2d1ffe5d2d1ffd1d9d8ffd1d9d8ffb5bd68ffb5bd68ffddd6caffddd6caff586e75ff4b4b4bffd1d9d8ffd1d9d8ffd1d9d8ffd1d9d8ff586e75ff", + "increase": "f4e9e8fff4e9e8fff4e9e8fff4e9e8fff4e9e8fff4e9e8ff0000000000000000f3f5f5fffdf6e3000000000000000000000000000000000000000000000000000000000000000000fdf6e300fdf6e300fdf6e300fdf6e300fdf6e300fdf6e300fdf6e300fdf6e300fdf6e300fdf6e300fdf6e300fdf6e300f7f7f7ffeeeeeeffc3c3c3fff3eed2fffdf6e300f6e2d2ffb9ca4affd54e53ffe6e7dbffe9dbdbffb1b1b1ffb5bd68ffc3c3c3ffc3c3c3fff4e9e8ffefebe3ffb5bd68ffa9b4b8ffefebe3ffa9b4b8ffc3c3c3ff81a2beffe6ecebff81a2beffe6ecebffe6ecebff81a2beffa9b4b8ffa9b4b8ffbbbbbbffb1b1b1ff81a2beffedeaeeffefebe3ffe6ecebffa9b4b8ffb5bd68ffe6ecebffa9b4b8fffdf6e3ffe8e8e8fffdf6e3fffdf6e3fffdf6e3fffdf6e3ffa9b4b8ffe8e8e8ffa9b4b8ffa9b4b8ffa9b4b8ffe6ecebffb1b1b1ffb1b1b1ff8abeb7ffa9b4b8ffb1b1b1ffb1b1b1ffa9b4b8ffe8e8e8fff4e9e8fff4e9e8ffe6ecebffe6ecebffb5bd68ffb5bd68ffefebe3ffefebe3ffa9b4b8ffe8e8e8ffe6ecebffe6ecebffe6ecebffe6ecebffb1b1b1ff", + "terminal": "light" + }, + "black/dark": { + "modes": ["light","dark"], + "hues": ["gray","red","yellow","cyan","purple","accent","interactive","neutral"], + "hue": "ffffffffb4b4b4ff7e7e7eff414141ff2d2d2dff1d1d1dff111111ff0d0d0dff00000000fcf0f0ffc0a6a4ff8e7776ffcc6666ff814544ff362727ff261b1bff171010ff0b0606fff7f3ebffb5ac9aff857c6dfff0c674ff897142ff302a21ff211e17ff15120dff090705fff0f5f4ffa4b0aeff76807eff8abeb7ff53716cff262c2cff1b1f1fff101313ff060808fff5f2f6ffb1aab3ff817b83ffb294bbff6d5b72ff2d292fff201d21ff131214ff080709fff0f5f4ffa4b0aeff76807eff8abeb7ff53716cff262c2cff1b1f1fff101313ff060808fff0f5f4ffa4b0aeff76807eff8abeb7ff53716cff262c2cff1b1f1fff101313ff060808ffffffffffb4b4b4ff7e7e7eff414141ff2d2d2dff1d1d1dff111111ff0d0d0dff00000000", + "categorical": "f5f2f6ffb1aab3ff817b83ffb294bbff6d5b72ff2d292fff201d21ff131214ff080709fff0f5f4ffa4b0aeff76807eff8abeb7ff53716cff262c2cff1b1f1fff101313ff060808fff7f3ebffb5ac9aff857c6dfff0c674ff897142ff302a21ff211e17ff15120dff090705fffcf0f0ffc0a6a4ff8e7776ffcc6666ff814544ff362727ff261b1bff171010ff0b0606ff", + "base": "cc6666ffcc6666ffcc6666ffcc6666ffcc6666ffcc6666ff0000000000000000262c2cff111111ff00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000111111ff1d1d1dff2d2d2dff3b3b3bff282a17ff111111ff2d1616ffb9ca4affd54e53ff353724ff3a2424ffb4b4b4ffb5bd68ff3b3b3bff3b3b3bffcc6666fff0c674ffb5bd68fffffffffff0c674ffffffffff3b3b3bff81a2beff8abeb7ff81a2beff8abeb7ff8abeb7ff81a2beffffffffffffffffff444444ffb4b4b4ff81a2beffb294bbfff0c674ff8abeb7ffffffffffb5bd68ff8abeb7ffffffffff000000ff7e7e7eff000000ff000000ff000000ff000000ffffffffff7e7e7effffffffffffffffffffffffff8abeb7ffb4b4b4ffb4b4b4ffa4b0aeffffffffffb4b4b4ffb4b4b4ffffffffff7e7e7effcc6666ffcc6666ff8abeb7ff8abeb7ffb5bd68ffb5bd68fff0c674fff0c674ffffffffff7e7e7eff8abeb7ff8abeb7ff8abeb7ff8abeb7ffb4b4b4ff", + "dialog": "cc6666ffcc6666ffcc6666ffcc6666ffcc6666ffcc6666ff0000000000000000262c2cff2d2d2dff00000000000000000000000000000000000000002d2d2dff0000000000000000111111ff111111ff111111ff111111ff111111ff111111ff111111ff111111ff111111ff111111ff111111ff111111ff1d1d1dff2d2d2dff3b3b3bff282a17ff111111ff2d1616ffb9ca4affd54e53ff353724ff3a2424ffb4b4b4ffb5bd68ff3b3b3bff3b3b3bffcc6666fff0c674ffb5bd68fffffffffff0c674ffffffffff3b3b3bff81a2beff8abeb7ff81a2beff8abeb7ff8abeb7ff81a2beffffffffffffffffff444444ffb4b4b4ff81a2beffb294bbfff0c674ff8abeb7ffffffffffb5bd68ff8abeb7ffffffffff000000ff7e7e7eff000000ff000000ff000000ff000000ffffffffff7e7e7effffffffffffffffffffffffff8abeb7ffb4b4b4ffb4b4b4ffa4b0aeffffffffffb4b4b4ffb4b4b4ffffffffff7e7e7effcc6666ffcc6666ff8abeb7ff8abeb7ffb5bd68ffb5bd68fff0c674fff0c674ffffffffff7e7e7eff8abeb7ff8abeb7ff8abeb7ff8abeb7ffb4b4b4ff", + "footer": "cc6666ffcc6666ffcc6666ffcc6666ffcc6666ffcc6666ff0000000000000000262c2cff2d2d2dff00000000000000000000000000000000000000002d2d2dff0000000000000000111111ff111111ff111111ff111111ff111111ff111111ff111111ff111111ff111111ff111111ff111111ff111111ff1d1d1dff2d2d2dff3b3b3bff282a17ff111111ff2d1616ffb9ca4affd54e53ff353724ff3a2424ffb4b4b4ffb5bd68ff3b3b3bff3b3b3bffcc6666fff0c674ffb5bd68fffffffffff0c674ffffffffff3b3b3bff81a2beff8abeb7ff81a2beff8abeb7ff8abeb7ff81a2beffffffffffffffffff444444ffb4b4b4ff81a2beffb294bbfff0c674ff8abeb7ffffffffffb5bd68ff8abeb7ffffffffff000000ff7e7e7eff000000ff000000ff000000ff000000ffffffffff7e7e7effffffffffffffffffffffffff8abeb7ffb4b4b4ffb4b4b4ffa4b0aeffffffffffb4b4b4ffb4b4b4ffffffffff7e7e7effcc6666ffcc6666ff8abeb7ff8abeb7ffb5bd68ffb5bd68fff0c674fff0c674ffffffffff7e7e7eff8abeb7ff8abeb7ff8abeb7ff8abeb7ffb4b4b4ff", + "decrease": "8e7776ff8e7776ff8e7776ff8e7776ff8e7776ff8e7776ff000000000000000053716cff1d1d1dff00000000000000000000000000000000000000000000000000000000000000000d0d0dff0d0d0dff0d0d0dff0d0d0dff0d0d0dff0d0d0dff0d0d0dff0d0d0dff0d0d0dff0d0d0dff0d0d0dff1d1d1dff2d2d2dff414141ff3b3b3bff282a17ff1d1d1dff2d1616ffb9ca4affd54e53ff353724ff3a2424ffffffffffb5bd68ff3b3b3bff3b3b3bff8e7776ff857c6dffb5bd68ffffffffff857c6dffffffffff3b3b3bff81a2beff76807eff81a2beff76807eff76807eff81a2beffffffffffffffffff444444ffffffffff81a2beff817b83ff857c6dff76807effffffffffb5bd68ff76807effffffffff000000ffb4b4b4ff000000ff000000ff000000ff000000ffffffffffb4b4b4ffffffffffffffffffffffffff76807efffffffffffffffffff0f5f4ffffffffffffffffffffffffffffffffffb4b4b4ff8e7776ff8e7776ff76807eff76807effb5bd68ffb5bd68ff857c6dff857c6dffffffffffb4b4b4ff76807eff76807eff76807eff76807effffffffff", + "increase": "362727ff362727ff362727ff362727ff362727ff362727ff0000000000000000101313ff0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000d0d0dff111111ff3b3b3bff282a17ff000000002d1616ffb9ca4affd54e53ff353724ff3a2424ff414141ffb5bd68ff3b3b3bff3b3b3bff362727ff302a21ffb5bd68ff7e7e7eff302a21ff7e7e7eff3b3b3bff81a2beff262c2cff81a2beff262c2cff262c2cff81a2beff7e7e7eff7e7e7eff444444ff414141ff81a2beff2d292fff302a21ff262c2cff7e7e7effb5bd68ff262c2cff7e7e7eff000000ff2d2d2dff000000ff000000ff000000ff000000ff7e7e7eff2d2d2dff7e7e7eff7e7e7eff7e7e7eff262c2cff414141ff414141ff8abeb7ff7e7e7eff414141ff414141ff7e7e7eff2d2d2dff362727ff362727ff262c2cff262c2cffb5bd68ffb5bd68ff302a21ff302a21ff7e7e7eff2d2d2dff262c2cff262c2cff262c2cff262c2cff414141ff", + "terminal": "dark" + }, + "black/light": { + "modes": ["light","dark"], + "hues": ["gray","red","yellow","cyan","purple","accent","interactive","neutral"], + "hue": "ffffffff9e9e9eff3c3c3cff000000ff000000ff000000ff000000ff000000ff00000000ffffffffd1c4c3ff675756ffcc6666ff270a0aff000000ff000000ff000000ff000000ffffffffffccc7beff605b50fff0c674ff30240bff000000ff000000ff000000ff000000ffffffffffc3c9c8ff565d5cff8abeb7ff132321ff000000ff000000ff000000ff000000ffffffffffc9c6cbff5e5a5fffb294bbff201722ff000000ff000000ff000000ff000000ffffffffffc3c9c8ff565d5cff8abeb7ff132321ff000000ff000000ff000000ff000000ffffffffffc3c9c8ff565d5cff8abeb7ff132321ff000000ff000000ff000000ff000000ffffffffff9e9e9eff3c3c3cff000000ff000000ff000000ff000000ff000000ff00000000", + "categorical": "ffffffffc9c6cbff5e5a5fffb294bbff201722ff000000ff000000ff000000ff000000ffffffffffc3c9c8ff565d5cff8abeb7ff132321ff000000ff000000ff000000ff000000ffffffffffccc7beff605b50fff0c674ff30240bff000000ff000000ff000000ff000000ffffffffffd1c4c3ff675756ffcc6666ff270a0aff000000ff000000ff000000ff000000ff", + "base": "cc6666ffcc6666ffcc6666ffcc6666ffcc6666ffcc6666ff0000000000000000000000ff000000ff00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000ff000000ff000000ff000000ff191a0fff000000ff1d0e0effb9ca4affd54e53ff191a0fff1d0e0eff3c3c3cffb5bd68ff000000ff000000ffcc6666fff0c674ffb5bd68fffffffffff0c674ffffffffff000000ff81a2beff8abeb7ff81a2beff8abeb7ff8abeb7ff81a2beffffffffffffffffff000000ff3c3c3cff81a2beffb294bbfff0c674ff8abeb7ffffffffffb5bd68ff8abeb7ffffffffff000000ff3c3c3cff000000ff000000ff000000ff000000ffffffffff3c3c3cffffffffffffffffffffffffff8abeb7ff9e9e9eff9e9e9effc3c9c8ffffffffff9e9e9eff9e9e9effffffffff3c3c3cffcc6666ffcc6666ff8abeb7ff8abeb7ffb5bd68ffb5bd68fff0c674fff0c674ffffffffff3c3c3cff8abeb7ff8abeb7ff8abeb7ff8abeb7ff9e9e9eff", + "dialog": "cc6666ffcc6666ffcc6666ffcc6666ffcc6666ffcc6666ff0000000000000000000000ff000000ff0000000000000000000000000000000000000000000000ff0000000000000000000000ff000000ff000000ff000000ff000000ff000000ff000000ff000000ff000000ff000000ff000000ff000000ff000000ff000000ff000000ff191a0fff000000ff1d0e0effb9ca4affd54e53ff191a0fff1d0e0eff3c3c3cffb5bd68ff000000ff000000ffcc6666fff0c674ffb5bd68fffffffffff0c674ffffffffff000000ff81a2beff8abeb7ff81a2beff8abeb7ff8abeb7ff81a2beffffffffffffffffff000000ff3c3c3cff81a2beffb294bbfff0c674ff8abeb7ffffffffffb5bd68ff8abeb7ffffffffff000000ff3c3c3cff000000ff000000ff000000ff000000ffffffffff3c3c3cffffffffffffffffffffffffff8abeb7ff9e9e9eff9e9e9effc3c9c8ffffffffff9e9e9eff9e9e9effffffffff3c3c3cffcc6666ffcc6666ff8abeb7ff8abeb7ffb5bd68ffb5bd68fff0c674fff0c674ffffffffff3c3c3cff8abeb7ff8abeb7ff8abeb7ff8abeb7ff9e9e9eff", + "footer": "cc6666ffcc6666ffcc6666ffcc6666ffcc6666ffcc6666ff0000000000000000000000ff000000ff0000000000000000000000000000000000000000000000ff0000000000000000000000ff000000ff000000ff000000ff000000ff000000ff000000ff000000ff000000ff000000ff000000ff000000ff000000ff000000ff000000ff191a0fff000000ff1d0e0effb9ca4affd54e53ff191a0fff1d0e0eff3c3c3cffb5bd68ff000000ff000000ffcc6666fff0c674ffb5bd68fffffffffff0c674ffffffffff000000ff81a2beff8abeb7ff81a2beff8abeb7ff8abeb7ff81a2beffffffffffffffffff000000ff3c3c3cff81a2beffb294bbfff0c674ff8abeb7ffffffffffb5bd68ff8abeb7ffffffffff000000ff3c3c3cff000000ff000000ff000000ff000000ffffffffff3c3c3cffffffffffffffffffffffffff8abeb7ff9e9e9eff9e9e9effc3c9c8ffffffffff9e9e9eff9e9e9effffffffff3c3c3cffcc6666ffcc6666ff8abeb7ff8abeb7ffb5bd68ffb5bd68fff0c674fff0c674ffffffffff3c3c3cff8abeb7ff8abeb7ff8abeb7ff8abeb7ff9e9e9eff", + "decrease": "675756ff675756ff675756ff675756ff675756ff675756ff0000000000000000132321ff000000ff0000000000000000000000000000000000000000000000000000000000000000000000ff000000ff000000ff000000ff000000ff000000ff000000ff000000ff000000ff000000ff000000ff000000ff000000ff000000ff000000ff191a0fff000000ff1d0e0effb9ca4affd54e53ff191a0fff1d0e0eff9e9e9effb5bd68ff000000ff000000ff675756ff605b50ffb5bd68ffffffffff605b50ffffffffff000000ff81a2beff565d5cff81a2beff565d5cff565d5cff81a2beffffffffffffffffff000000ff9e9e9eff81a2beff5e5a5fff605b50ff565d5cffffffffffb5bd68ff565d5cffffffffff000000ff9e9e9eff000000ff000000ff000000ff000000ffffffffff9e9e9effffffffffffffffffffffffff565d5cffffffffffffffffffffffffffffffffffffffffffffffffffffffffff9e9e9eff675756ff675756ff565d5cff565d5cffb5bd68ffb5bd68ff605b50ff605b50ffffffffff9e9e9eff565d5cff565d5cff565d5cff565d5cffffffffff", + "increase": "000000ff000000ff000000ff000000ff000000ff000000ff0000000000000000000000ff000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000ff000000ff00000000191a0fff000000001d0e0effb9ca4affd54e53ff191a0fff1d0e0eff000000ffb5bd68ff0000000000000000000000ff000000ffb5bd68ff3c3c3cff000000ff3c3c3cff0000000081a2beff000000ff81a2beff000000ff000000ff81a2beff3c3c3cff3c3c3cff00000000000000ff81a2beff000000ff000000ff000000ff3c3c3cffb5bd68ff000000ff3c3c3cff00000000000000ff000000000000000000000000000000003c3c3cff000000ff3c3c3cff3c3c3cff3c3c3cff000000ff000000ff000000ff8abeb7ff3c3c3cff000000ff000000ff3c3c3cff000000ff000000ff000000ff000000ff000000ffb5bd68ffb5bd68ff000000ff000000ff3c3c3cff000000ff000000ff000000ff000000ff000000ff000000ff", + "terminal": "dark" + }, + "white/dark": { + "modes": ["light","dark"], + "hues": ["gray","red","yellow","cyan","purple","accent","interactive","neutral"], + "hue": "000000ff252525ffc8c8c8fffffffffffffffffffffffffffffffffff9f9f9ffffffff00000000ff2d1a19ffd9c0bfffcc6666fffdd9d7fffffffffffffffffffffffffff6eeedff000000ff261f11ffcfc6b6fff0c674fffffffffffffffffffffffffffffffffff3f0eaff000000ff192221ffbfcac8ff8abeb7ffe0fefaffffffffffffffffffffffffffedf1f0ff000000ff231d25ffcbc4cdffb294bbfff9e7fffffffffffffffffffffffffffff1eff2ff000000ff192221ffbfcac8ff8abeb7ffe0fefaffffffffffffffffffffffffffedf1f0ff000000ff192221ffbfcac8ff8abeb7ffe0fefaffffffffffffffffffffffffffedf1f0ff000000ff252525ffc8c8c8fffffffffffffffffffffffffffffffffff9f9f9ffffffff00", + "categorical": "000000ff231d25ffcbc4cdffb294bbfff9e7fffffffffffffffffffffffffffff1eff2ff000000ff192221ffbfcac8ff8abeb7ffe0fefaffffffffffffffffffffffffffedf1f0ff000000ff261f11ffcfc6b6fff0c674fffffffffffffffffffffffffffffffffff3f0eaff000000ff2d1a19ffd9c0bfffcc6666fffdd9d7fffffffffffffffffffffffffff6eeedff", + "base": "cc6666ffcc6666ffcc6666ffcc6666ffcc6666ffcc6666ff0000000000000000ffffffffffffffff0000000000000000000000000000000000000000000000000000000000000000ffffff00ffffff00ffffff00ffffff00ffffff00ffffff00ffffff00ffffff00ffffff00ffffff00ffffff00ffffffffffffffffffffffffffffffffeff0defffffffffff4ddddffb9ca4affd54e53ffeff0defff4ddddffc8c8c8ffb5bd68ffffffffffffffffffcc6666fff0c674ffb5bd68ff000000fff0c674ff000000ffffffffff81a2beff8abeb7ff81a2beff8abeb7ff8abeb7ff81a2beff000000ff000000ffffffffffc8c8c8ff81a2beffb294bbfff0c674ff8abeb7ff000000ffb5bd68ff8abeb7ff000000ffffffffffc8c8c8ffffffffffffffffffffffffffffffffff000000ffc8c8c8ff000000ff000000ff000000ff8abeb7ff252525ff252525ff192221ff000000ff252525ff252525ff000000ffc8c8c8ffcc6666ffcc6666ff8abeb7ff8abeb7ffb5bd68ffb5bd68fff0c674fff0c674ff000000ffc8c8c8ff8abeb7ff8abeb7ff8abeb7ff8abeb7ff252525ff", + "dialog": "cc6666ffcc6666ffcc6666ffcc6666ffcc6666ffcc6666ff0000000000000000ffffffffffffffff0000000000000000000000000000000000000000ffffffff0000000000000000ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffeff0defffffffffff4ddddffb9ca4affd54e53ffeff0defff4ddddffc8c8c8ffb5bd68ffffffffffffffffffcc6666fff0c674ffb5bd68ff000000fff0c674ff000000ffffffffff81a2beff8abeb7ff81a2beff8abeb7ff8abeb7ff81a2beff000000ff000000ffffffffffc8c8c8ff81a2beffb294bbfff0c674ff8abeb7ff000000ffb5bd68ff8abeb7ff000000ffffffffffc8c8c8ffffffffffffffffffffffffffffffffff000000ffc8c8c8ff000000ff000000ff000000ff8abeb7ff252525ff252525ff192221ff000000ff252525ff252525ff000000ffc8c8c8ffcc6666ffcc6666ff8abeb7ff8abeb7ffb5bd68ffb5bd68fff0c674fff0c674ff000000ffc8c8c8ff8abeb7ff8abeb7ff8abeb7ff8abeb7ff252525ff", + "footer": "cc6666ffcc6666ffcc6666ffcc6666ffcc6666ffcc6666ff0000000000000000ffffffffffffffff0000000000000000000000000000000000000000ffffffff0000000000000000ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffeff0defffffffffff4ddddffb9ca4affd54e53ffeff0defff4ddddffc8c8c8ffb5bd68ffffffffffffffffffcc6666fff0c674ffb5bd68ff000000fff0c674ff000000ffffffffff81a2beff8abeb7ff81a2beff8abeb7ff8abeb7ff81a2beff000000ff000000ffffffffffc8c8c8ff81a2beffb294bbfff0c674ff8abeb7ff000000ffb5bd68ff8abeb7ff000000ffffffffffc8c8c8ffffffffffffffffffffffffffffffffff000000ffc8c8c8ff000000ff000000ff000000ff8abeb7ff252525ff252525ff192221ff000000ff252525ff252525ff000000ffc8c8c8ffcc6666ffcc6666ff8abeb7ff8abeb7ffb5bd68ffb5bd68fff0c674fff0c674ff000000ffc8c8c8ff8abeb7ff8abeb7ff8abeb7ff8abeb7ff252525ff", + "decrease": "d9c0bfffd9c0bfffd9c0bfffd9c0bfffd9c0bfffd9c0bfff0000000000000000e0fefaffffffffff0000000000000000000000000000000000000000000000000000000000000000f9f9f9fff9f9f9fff9f9f9fff9f9f9fff9f9f9fff9f9f9fff9f9f9fff9f9f9fff9f9f9fff9f9f9fff9f9f9ffffffffffffffffffffffffffffffffffeff0defffffffffff4ddddffb9ca4affd54e53ffeff0defff4ddddff252525ffb5bd68ffffffffffffffffffd9c0bfffcfc6b6ffb5bd68ff000000ffcfc6b6ff000000ffffffffff81a2beffbfcac8ff81a2beffbfcac8ffbfcac8ff81a2beff000000ff000000ffffffffff252525ff81a2beffcbc4cdffcfc6b6ffbfcac8ff000000ffb5bd68ffbfcac8ff000000ffffffffff252525ffffffffffffffffffffffffffffffffff000000ff252525ff000000ff000000ff000000ffbfcac8ff000000ff000000ff000000ff000000ff000000ff000000ff000000ff252525ffd9c0bfffd9c0bfffbfcac8ffbfcac8ffb5bd68ffb5bd68ffcfc6b6ffcfc6b6ff000000ff252525ffbfcac8ffbfcac8ffbfcac8ffbfcac8ff000000ff", + "increase": "ffffffffffffffffffffffffffffffffffffffffffffffff0000000000000000ffffffffffffff000000000000000000000000000000000000000000000000000000000000000000ffffff00ffffff00ffffff00ffffff00ffffff00ffffff00ffffff00ffffff00ffffff00ffffff00ffffff00ffffff00f9f9f9ffffffffffffffff00eff0deffffffff00f4ddddffb9ca4affd54e53ffeff0defff4ddddffffffffffb5bd68ffffffff00ffffff00ffffffffffffffffb5bd68ffc8c8c8ffffffffffc8c8c8ffffffff0081a2beffffffffff81a2beffffffffffffffffff81a2beffc8c8c8ffc8c8c8ffffffff00ffffffff81a2beffffffffffffffffffffffffffc8c8c8ffb5bd68ffffffffffc8c8c8ffffffff00ffffffffffffff00ffffff00ffffff00ffffff00c8c8c8ffffffffffc8c8c8ffc8c8c8ffc8c8c8ffffffffffffffffffffffffff8abeb7ffc8c8c8ffffffffffffffffffc8c8c8ffffffffffffffffffffffffffffffffffffffffffb5bd68ffb5bd68ffffffffffffffffffc8c8c8ffffffffffffffffffffffffffffffffffffffffffffffffff", + "terminal": "light" + }, + "white/light": { + "modes": ["light","dark"], + "hues": ["gray","red","yellow","cyan","purple","accent","interactive","neutral"], + "hue": "000000ff303030ff4b4b4bffb1b1b1ffccccccffdadadaffeeeeeefff7f7f7ffffffff00060101ff5a4f4eff776766ffcc6666ffdfb5b3ffefdcdafff6eaeafff9f3f3fffaf8f8ff030200ff56524aff706b60fff0c674ffe7d7baffe6dfd3fff1ede5fff7f4f1fff9f8f7ff010202ff4e5352ff666d6cff8abeb7ffc1d5d2ffdae2e1ffeaefeefff3f5f5fff8f9f8ff030103ff545155ff6e6a6fffb294bbffd1c5d4ffe3dee5ffefecf0fff6f4f6fff9f8f9ff010202ff4e5352ff666d6cff8abeb7ffc1d5d2ffdae2e1ffeaefeefff3f5f5fff8f9f8ff010202ff4e5352ff666d6cff8abeb7ffc1d5d2ffdae2e1ffeaefeefff3f5f5fff8f9f8ff000000ff303030ff4b4b4bffb1b1b1ffccccccffdadadaffeeeeeefff7f7f7ffffffff00", + "categorical": "030103ff545155ff6e6a6fffb294bbffd1c5d4ffe3dee5ffefecf0fff6f4f6fff9f8f9ff010202ff4e5352ff666d6cff8abeb7ffc1d5d2ffdae2e1ffeaefeefff3f5f5fff8f9f8ff030200ff56524aff706b60fff0c674ffe7d7baffe6dfd3fff1ede5fff7f4f1fff9f8f7ff060101ff5a4f4eff776766ffcc6666ffdfb5b3ffefdcdafff6eaeafff9f3f3fffaf8f8ff", + "base": "cc6666ffcc6666ffcc6666ffcc6666ffcc6666ffcc6666ff0000000000000000dae2e1ffeeeeeeff0000000000000000000000000000000000000000000000000000000000000000ffffff00ffffff00ffffff00ffffff00ffffff00ffffff00ffffff00ffffff00ffffff00ffffff00ffffff00eeeeeeffdadadaffccccccffc3c3c3fff5f6eaffeeeeeefff8eaeaffb9ca4affd54e53ffe6e7dbffe9dbdbff4b4b4bffb5bd68ffc3c3c3ffc3c3c3ffcc6666fff0c674ffb5bd68ff000000fff0c674ff000000ffc3c3c3ff81a2beff8abeb7ff81a2beff8abeb7ff8abeb7ff81a2beff000000ff000000ffbbbbbbff4b4b4bff81a2beffb294bbfff0c674ff8abeb7ff000000ffb5bd68ff8abeb7ff000000ffffffffff4b4b4bffffffffffffffffffffffffffffffffff000000ff4b4b4bff000000ff000000ff000000ff8abeb7ff303030ff303030ff4e5352ff000000ff303030ff303030ff000000ff4b4b4bffcc6666ffcc6666ff8abeb7ff8abeb7ffb5bd68ffb5bd68fff0c674fff0c674ff000000ff4b4b4bff8abeb7ff8abeb7ff8abeb7ff8abeb7ff303030ff", + "dialog": "cc6666ffcc6666ffcc6666ffcc6666ffcc6666ffcc6666ff0000000000000000dae2e1ffdadadaff0000000000000000000000000000000000000000dadadaff0000000000000000f7f7f7fff7f7f7fff7f7f7fff7f7f7fff7f7f7fff7f7f7fff7f7f7fff7f7f7fff7f7f7fff7f7f7fff7f7f7ffeeeeeeffeeeeeeffccccccffc3c3c3fff5f6eaffeeeeeefff8eaeaffb9ca4affd54e53ffe6e7dbffe9dbdbff4b4b4bffb5bd68ffc3c3c3ffc3c3c3ffcc6666fff0c674ffb5bd68ff000000fff0c674ff000000ffc3c3c3ff81a2beff8abeb7ff81a2beff8abeb7ff8abeb7ff81a2beff000000ff000000ffbbbbbbff4b4b4bff81a2beffb294bbfff0c674ff8abeb7ff000000ffb5bd68ff8abeb7ff000000ffffffffff4b4b4bffffffffffffffffffffffffffffffffff000000ff4b4b4bff000000ff000000ff000000ff8abeb7ff303030ff303030ff4e5352ff000000ff303030ff303030ff000000ff4b4b4bffcc6666ffcc6666ff8abeb7ff8abeb7ffb5bd68ffb5bd68fff0c674fff0c674ff000000ff4b4b4bff8abeb7ff8abeb7ff8abeb7ff8abeb7ff303030ff", + "footer": "cc6666ffcc6666ffcc6666ffcc6666ffcc6666ffcc6666ff0000000000000000dae2e1ffdadadaff0000000000000000000000000000000000000000dadadaff0000000000000000f7f7f7fff7f7f7fff7f7f7fff7f7f7fff7f7f7fff7f7f7fff7f7f7fff7f7f7fff7f7f7fff7f7f7fff7f7f7ffeeeeeeffeeeeeeffccccccffc3c3c3fff5f6eaffeeeeeefff8eaeaffb9ca4affd54e53ffe6e7dbffe9dbdbff4b4b4bffb5bd68ffc3c3c3ffc3c3c3ffcc6666fff0c674ffb5bd68ff000000fff0c674ff000000ffc3c3c3ff81a2beff8abeb7ff81a2beff8abeb7ff8abeb7ff81a2beff000000ff000000ffbbbbbbff4b4b4bff81a2beffb294bbfff0c674ff8abeb7ff000000ffb5bd68ff8abeb7ff000000ffffffffff4b4b4bffffffffffffffffffffffffffffffffff000000ff4b4b4bff000000ff000000ff000000ff8abeb7ff303030ff303030ff4e5352ff000000ff303030ff303030ff000000ff4b4b4bffcc6666ffcc6666ff8abeb7ff8abeb7ffb5bd68ffb5bd68fff0c674fff0c674ff000000ff4b4b4bff8abeb7ff8abeb7ff8abeb7ff8abeb7ff303030ff", + "decrease": "776766ff776766ff776766ff776766ff776766ff776766ff0000000000000000c1d5d2ffdadadaff0000000000000000000000000000000000000000000000000000000000000000f7f7f7fff7f7f7fff7f7f7fff7f7f7fff7f7f7fff7f7f7fff7f7f7fff7f7f7fff7f7f7fff7f7f7fff7f7f7ffdadadaffccccccffb1b1b1ffc3c3c3fff5f6eaffdadadafff8eaeaffb9ca4affd54e53ffe6e7dbffe9dbdbff303030ffb5bd68ffc3c3c3ffc3c3c3ff776766ff706b60ffb5bd68ff000000ff706b60ff000000ffc3c3c3ff81a2beff666d6cff81a2beff666d6cff666d6cff81a2beff000000ff000000ffbbbbbbff303030ff81a2beff6e6a6fff706b60ff666d6cff000000ffb5bd68ff666d6cff000000ffffffffff303030ffffffffffffffffffffffffffffffffff000000ff303030ff000000ff000000ff000000ff666d6cff000000ff000000ff010202ff000000ff000000ff000000ff000000ff303030ff776766ff776766ff666d6cff666d6cffb5bd68ffb5bd68ff706b60ff706b60ff000000ff303030ff666d6cff666d6cff666d6cff666d6cff000000ff", + "increase": "efdcdaffefdcdaffefdcdaffefdcdaffefdcdaffefdcdaff0000000000000000f3f5f5ffffffff000000000000000000000000000000000000000000000000000000000000000000ffffff00ffffff00ffffff00ffffff00ffffff00ffffff00ffffff00ffffff00ffffff00ffffff00ffffff00ffffff00f7f7f7ffeeeeeeffc3c3c3fff5f6eaffffffff00f8eaeaffb9ca4affd54e53ffe6e7dbffe9dbdbffccccccffb5bd68ffc3c3c3ffc3c3c3ffefdcdaffe6dfd3ffb5bd68ff4b4b4bffe6dfd3ff4b4b4bffc3c3c3ff81a2beffdae2e1ff81a2beffdae2e1ffdae2e1ff81a2beff4b4b4bff4b4b4bffbbbbbbffccccccff81a2beffe3dee5ffe6dfd3ffdae2e1ff4b4b4bffb5bd68ffdae2e1ff4b4b4bffffffffffccccccffffffffffffffffffffffffffffffffff4b4b4bffccccccff4b4b4bff4b4b4bff4b4b4bffdae2e1ffb1b1b1ffb1b1b1ff8abeb7ff4b4b4bffb1b1b1ffb1b1b1ff4b4b4bffccccccffefdcdaffefdcdaffdae2e1ffdae2e1ffb5bd68ffb5bd68ffe6dfd3ffe6dfd3ff4b4b4bffccccccffdae2e1ffdae2e1ffdae2e1ffdae2e1ffb1b1b1ff", + "terminal": "light" + }, + "palette/dark": { + "modes": ["light","dark"], + "hues": ["gray","red","yellow","cyan","purple","accent","interactive","neutral"], + "hue": "c5c8c6ffa9a9a9ff707575ff5f6267ff3a3d41ff2d3034ff242629ff222427ff1d1f2100c4b9b8ffb59b99ff836d6cffcc6666ff965856ff3e3740ff322d34ff28252aff212024ffbfbcb4ffaaa190ff7a7263fff0c674ff9d8555ff323b37ff29302eff222726ff1d2221ffb8bdbcff99a5a3ff6c7674ff8abeb7ff668480ff343a3cff2b2f31ff232729ff1e2223ffbebbbfffa69fa8ff777179ffb294bbff806e86ff39393fff2e2e33ff26262aff202124ffb8bdbcff99a5a3ff6c7674ff8abeb7ff668480ff343a3cff2b2f31ff232729ff1e2223ffb8bdbcff99a5a3ff6c7674ff8abeb7ff668480ff343a3cff2b2f31ff232729ff1e2223ffc5c8c6ffa9a9a9ff707575ff5f6267ff3a3d41ff2d3034ff242629ff222427ff1d1f2100", + "categorical": "bebbbfffa69fa8ff777179ffb294bbff806e86ff39393fff2e2e33ff26262aff202124ffb8bdbcff99a5a3ff6c7674ff8abeb7ff668480ff343a3cff2b2f31ff232729ff1e2223ffbfbcb4ffaaa190ff7a7263fff0c674ff9d8555ff323b37ff29302eff222726ff1d2221ffc4b9b8ffb59b99ff836d6cffcc6666ff965856ff3e3740ff322d34ff28252aff212024ff", + "base": "cc6666ffcc6666ffcc6666ffcc6666ffcc6666ffcc6666ff0000000000000000343a3cff242629ff00000000000000000000000000000000000000000000000000000000000000001d1f21001d1f21001d1f21001d1f21001d1f21001d1f21001d1f21001d1f21001d1f21001d1f21001d1f2100242629ff2d3034ff3a3d41ff4e5359ff3e4231ff2b2e31ff442f30ffb9ca4affd54e53ff494d3dff4e3a3dffa9a9a9ffb5bd68ff4e5359ff4e5359ffcc6666fff0c674ffb5bd68ffc5c8c6fff0c674ffc5c8c6ff4e5359ff81a2beff8abeb7ff81a2beff8abeb7ff8abeb7ff81a2beffc5c8c6ffc5c8c6ff555b61ffa9a9a9ff81a2beffb294bbfff0c674ff8abeb7ffc5c8c6ffb5bd68ff8abeb7ffc5c8c6ff1d1f21ff707575ff1d1f21ff1d1f21ff1d1f21ff1d1f21ffc5c8c6ff707575ffc5c8c6ffc5c8c6ffc5c8c6ff8abeb7ffa9a9a9ffa9a9a9ff99a5a3ffc5c8c6ffa9a9a9ffa9a9a9ffc5c8c6ff707575ffcc6666ffcc6666ff8abeb7ff8abeb7ffb5bd68ffb5bd68fff0c674fff0c674ffc5c8c6ff707575ff8abeb7ff8abeb7ff8abeb7ff8abeb7ffa9a9a9ff", + "dialog": "cc6666ffcc6666ffcc6666ffcc6666ffcc6666ffcc6666ff0000000000000000343a3cff3a3d41ff00000000000000000000000000000000000000003a3d41ff0000000000000000242629ff242629ff242629ff242629ff242629ff242629ff242629ff242629ff242629ff242629ff242629ff242629ff2d3034ff3a3d41ff4e5359ff3e4231ff2b2e31ff442f30ffb9ca4affd54e53ff494d3dff4e3a3dffa9a9a9ffb5bd68ff4e5359ff4e5359ffcc6666fff0c674ffb5bd68ffc5c8c6fff0c674ffc5c8c6ff4e5359ff81a2beff8abeb7ff81a2beff8abeb7ff8abeb7ff81a2beffc5c8c6ffc5c8c6ff555b61ffa9a9a9ff81a2beffb294bbfff0c674ff8abeb7ffc5c8c6ffb5bd68ff8abeb7ffc5c8c6ff1d1f21ff707575ff1d1f21ff1d1f21ff1d1f21ff1d1f21ffc5c8c6ff707575ffc5c8c6ffc5c8c6ffc5c8c6ff8abeb7ffa9a9a9ffa9a9a9ff99a5a3ffc5c8c6ffa9a9a9ffa9a9a9ffc5c8c6ff707575ffcc6666ffcc6666ff8abeb7ff8abeb7ffb5bd68ffb5bd68fff0c674fff0c674ffc5c8c6ff707575ff8abeb7ff8abeb7ff8abeb7ff8abeb7ffa9a9a9ff", + "footer": "cc6666ffcc6666ffcc6666ffcc6666ffcc6666ffcc6666ff0000000000000000343a3cff3a3d41ff00000000000000000000000000000000000000003a3d41ff0000000000000000242629ff242629ff242629ff242629ff242629ff242629ff242629ff242629ff242629ff242629ff242629ff242629ff2d3034ff3a3d41ff4e5359ff3e4231ff2b2e31ff442f30ffb9ca4affd54e53ff494d3dff4e3a3dffa9a9a9ffb5bd68ff4e5359ff4e5359ffcc6666fff0c674ffb5bd68ffc5c8c6fff0c674ffc5c8c6ff4e5359ff81a2beff8abeb7ff81a2beff8abeb7ff8abeb7ff81a2beffc5c8c6ffc5c8c6ff555b61ffa9a9a9ff81a2beffb294bbfff0c674ff8abeb7ffc5c8c6ffb5bd68ff8abeb7ffc5c8c6ff1d1f21ff707575ff1d1f21ff1d1f21ff1d1f21ff1d1f21ffc5c8c6ff707575ffc5c8c6ffc5c8c6ffc5c8c6ff8abeb7ffa9a9a9ffa9a9a9ff99a5a3ffc5c8c6ffa9a9a9ffa9a9a9ffc5c8c6ff707575ffcc6666ffcc6666ff8abeb7ff8abeb7ffb5bd68ffb5bd68fff0c674fff0c674ffc5c8c6ff707575ff8abeb7ff8abeb7ff8abeb7ff8abeb7ffa9a9a9ff", + "decrease": "836d6cff836d6cff836d6cff836d6cff836d6cff836d6cff0000000000000000668480ff2d3034ff0000000000000000000000000000000000000000000000000000000000000000222427ff222427ff222427ff222427ff222427ff222427ff222427ff222427ff222427ff222427ff222427ff2d3034ff3a3d41ff5f6267ff4e5359ff3e4231ff2b2e31ff442f30ffb9ca4affd54e53ff494d3dff4e3a3dffc5c8c6ffb5bd68ff4e5359ff4e5359ff836d6cff7a7263ffb5bd68ffc5c8c6ff7a7263ffc5c8c6ff4e5359ff81a2beff6c7674ff81a2beff6c7674ff6c7674ff81a2beffc5c8c6ffc5c8c6ff555b61ffc5c8c6ff81a2beff777179ff7a7263ff6c7674ffc5c8c6ffb5bd68ff6c7674ffc5c8c6ff1d1f21ffa9a9a9ff1d1f21ff1d1f21ff1d1f21ff1d1f21ffc5c8c6ffa9a9a9ffc5c8c6ffc5c8c6ffc5c8c6ff6c7674ffc5c8c6ffc5c8c6ffb8bdbcffc5c8c6ffc5c8c6ffc5c8c6ffc5c8c6ffa9a9a9ff836d6cff836d6cff6c7674ff6c7674ffb5bd68ffb5bd68ff7a7263ff7a7263ffc5c8c6ffa9a9a9ff6c7674ff6c7674ff6c7674ff6c7674ffc5c8c6ff", + "increase": "3e3740ff3e3740ff3e3740ff3e3740ff3e3740ff3e3740ff0000000000000000232729ff1d1f210000000000000000000000000000000000000000000000000000000000000000001d1f21001d1f21001d1f21001d1f21001d1f21001d1f21001d1f21001d1f21001d1f21001d1f21001d1f21001d1f2100222427ff242629ff4e5359ff3e4231ff2b2e31ff442f30ffb9ca4affd54e53ff494d3dff4e3a3dff5f6267ffb5bd68ff4e5359ff4e5359ff3e3740ff323b37ffb5bd68ff707575ff323b37ff707575ff4e5359ff81a2beff343a3cff81a2beff343a3cff343a3cff81a2beff707575ff707575ff555b61ff5f6267ff81a2beff39393fff323b37ff343a3cff707575ffb5bd68ff343a3cff707575ff1d1f21ff3a3d41ff1d1f21ff1d1f21ff1d1f21ff1d1f21ff707575ff3a3d41ff707575ff707575ff707575ff343a3cff5f6267ff5f6267ff8abeb7ff707575ff5f6267ff5f6267ff707575ff3a3d41ff3e3740ff3e3740ff343a3cff343a3cffb5bd68ffb5bd68ff323b37ff323b37ff707575ff3a3d41ff343a3cff343a3cff343a3cff343a3cff5f6267ff", + "terminal": null + }, + "palette/light": { + "modes": ["light","dark"], + "hues": ["gray","red","yellow","cyan","purple","accent","interactive","neutral"], + "hue": "c5c8c6ff8d9191ff3c3c3cff000000ff050607ff0d0e10ff1b1c1eff212224ff1d1f2100f2dcdbffc2b5b4ff675756ffcc6666ff4f2d2dff1b0f0eff211919ff24201fff252323ffe9e1d3ffbdb8afff605b50fff0c674ff574a31ff171209ff1e1b16ff22201eff242322ffdbe5e3ffb4bab9ff565d5cff8abeb7ff384846ff0e1413ff191c1cff1f2121ff232323ffe6e0e8ffbbb7bcff5e5a5fffb294bbff453b48ff151116ff1d1b1eff212022ff242324ffdbe5e3ffb4bab9ff565d5cff8abeb7ff384846ff0e1413ff191c1cff1f2121ff232323ffdbe5e3ffb4bab9ff565d5cff8abeb7ff384846ff0e1413ff191c1cff1f2121ff232323ffc5c8c6ff8d9191ff3c3c3cff000000ff050607ff0d0e10ff1b1c1eff212224ff1d1f2100", + "categorical": "e6e0e8ffbbb7bcff5e5a5fffb294bbff453b48ff151116ff1d1b1eff212022ff242324ffdbe5e3ffb4bab9ff565d5cff8abeb7ff384846ff0e1413ff191c1cff1f2121ff232323ffe9e1d3ffbdb8afff605b50fff0c674ff574a31ff171209ff1e1b16ff22201eff242322fff2dcdbffc2b5b4ff675756ffcc6666ff4f2d2dff1b0f0eff211919ff24201fff252323ff", + "base": "cc6666ffcc6666ffcc6666ffcc6666ffcc6666ffcc6666ff00000000000000000e1413ff1b1c1eff00000000000000000000000000000000000000000000000000000000000000001d1f21001d1f21001d1f21001d1f21001d1f21001d1f21001d1f21001d1f21001d1f21001d1f21001d1f21001b1c1eff0d0e10ff050607ff161719ff32352bff1b1c1eff36292bffb9ca4affd54e53ff313328ff342628ff3c3c3cffb5bd68ff161719ff161719ffcc6666fff0c674ffb5bd68ffc5c8c6fff0c674ffc5c8c6ff161719ff81a2beff8abeb7ff81a2beff8abeb7ff8abeb7ff81a2beffc5c8c6ffc5c8c6ff151618ff3c3c3cff81a2beffb294bbfff0c674ff8abeb7ffc5c8c6ffb5bd68ff8abeb7ffc5c8c6ff1d1f21ff3c3c3cff1d1f21ff1d1f21ff1d1f21ff1d1f21ffc5c8c6ff3c3c3cffc5c8c6ffc5c8c6ffc5c8c6ff8abeb7ff8d9191ff8d9191ffb4bab9ffc5c8c6ff8d9191ff8d9191ffc5c8c6ff3c3c3cffcc6666ffcc6666ff8abeb7ff8abeb7ffb5bd68ffb5bd68fff0c674fff0c674ffc5c8c6ff3c3c3cff8abeb7ff8abeb7ff8abeb7ff8abeb7ff8d9191ff", + "dialog": "cc6666ffcc6666ffcc6666ffcc6666ffcc6666ffcc6666ff00000000000000000e1413ff0d0e10ff00000000000000000000000000000000000000000d0e10ff0000000000000000212224ff212224ff212224ff212224ff212224ff212224ff212224ff212224ff212224ff212224ff212224ff1b1c1eff1b1c1eff050607ff161719ff32352bff1b1c1eff36292bffb9ca4affd54e53ff313328ff342628ff3c3c3cffb5bd68ff161719ff161719ffcc6666fff0c674ffb5bd68ffc5c8c6fff0c674ffc5c8c6ff161719ff81a2beff8abeb7ff81a2beff8abeb7ff8abeb7ff81a2beffc5c8c6ffc5c8c6ff151618ff3c3c3cff81a2beffb294bbfff0c674ff8abeb7ffc5c8c6ffb5bd68ff8abeb7ffc5c8c6ff1d1f21ff3c3c3cff1d1f21ff1d1f21ff1d1f21ff1d1f21ffc5c8c6ff3c3c3cffc5c8c6ffc5c8c6ffc5c8c6ff8abeb7ff8d9191ff8d9191ffb4bab9ffc5c8c6ff8d9191ff8d9191ffc5c8c6ff3c3c3cffcc6666ffcc6666ff8abeb7ff8abeb7ffb5bd68ffb5bd68fff0c674fff0c674ffc5c8c6ff3c3c3cff8abeb7ff8abeb7ff8abeb7ff8abeb7ff8d9191ff", + "footer": "cc6666ffcc6666ffcc6666ffcc6666ffcc6666ffcc6666ff00000000000000000e1413ff0d0e10ff00000000000000000000000000000000000000000d0e10ff0000000000000000212224ff212224ff212224ff212224ff212224ff212224ff212224ff212224ff212224ff212224ff212224ff1b1c1eff1b1c1eff050607ff161719ff32352bff1b1c1eff36292bffb9ca4affd54e53ff313328ff342628ff3c3c3cffb5bd68ff161719ff161719ffcc6666fff0c674ffb5bd68ffc5c8c6fff0c674ffc5c8c6ff161719ff81a2beff8abeb7ff81a2beff8abeb7ff8abeb7ff81a2beffc5c8c6ffc5c8c6ff151618ff3c3c3cff81a2beffb294bbfff0c674ff8abeb7ffc5c8c6ffb5bd68ff8abeb7ffc5c8c6ff1d1f21ff3c3c3cff1d1f21ff1d1f21ff1d1f21ff1d1f21ffc5c8c6ff3c3c3cffc5c8c6ffc5c8c6ffc5c8c6ff8abeb7ff8d9191ff8d9191ffb4bab9ffc5c8c6ff8d9191ff8d9191ffc5c8c6ff3c3c3cffcc6666ffcc6666ff8abeb7ff8abeb7ffb5bd68ffb5bd68fff0c674fff0c674ffc5c8c6ff3c3c3cff8abeb7ff8abeb7ff8abeb7ff8abeb7ff8d9191ff", + "decrease": "675756ff675756ff675756ff675756ff675756ff675756ff0000000000000000384846ff0d0e10ff0000000000000000000000000000000000000000000000000000000000000000212224ff212224ff212224ff212224ff212224ff212224ff212224ff212224ff212224ff212224ff212224ff0d0e10ff050607ff000000ff161719ff32352bff0d0e10ff36292bffb9ca4affd54e53ff313328ff342628ff8d9191ffb5bd68ff161719ff161719ff675756ff605b50ffb5bd68ffc5c8c6ff605b50ffc5c8c6ff161719ff81a2beff565d5cff81a2beff565d5cff565d5cff81a2beffc5c8c6ffc5c8c6ff151618ff8d9191ff81a2beff5e5a5fff605b50ff565d5cffc5c8c6ffb5bd68ff565d5cffc5c8c6ff1d1f21ff8d9191ff1d1f21ff1d1f21ff1d1f21ff1d1f21ffc5c8c6ff8d9191ffc5c8c6ffc5c8c6ffc5c8c6ff565d5cffc5c8c6ffc5c8c6ffdbe5e3ffc5c8c6ffc5c8c6ffc5c8c6ffc5c8c6ff8d9191ff675756ff675756ff565d5cff565d5cffb5bd68ffb5bd68ff605b50ff605b50ffc5c8c6ff8d9191ff565d5cff565d5cff565d5cff565d5cffc5c8c6ff", + "increase": "1b0f0eff1b0f0eff1b0f0eff1b0f0eff1b0f0eff1b0f0eff00000000000000001f2121ff1d1f210000000000000000000000000000000000000000000000000000000000000000001d1f21001d1f21001d1f21001d1f21001d1f21001d1f21001d1f21001d1f21001d1f21001d1f21001d1f21001d1f2100212224ff1b1c1eff161719ff32352bff1d1f210036292bffb9ca4affd54e53ff313328ff342628ff050607ffb5bd68ff161719ff161719ff1b0f0eff171209ffb5bd68ff3c3c3cff171209ff3c3c3cff161719ff81a2beff0e1413ff81a2beff0e1413ff0e1413ff81a2beff3c3c3cff3c3c3cff151618ff050607ff81a2beff151116ff171209ff0e1413ff3c3c3cffb5bd68ff0e1413ff3c3c3cff1d1f21ff050607ff1d1f21ff1d1f21ff1d1f21ff1d1f21ff3c3c3cff050607ff3c3c3cff3c3c3cff3c3c3cff0e1413ff000000ff000000ff8abeb7ff3c3c3cff000000ff000000ff3c3c3cff050607ff1b0f0eff1b0f0eff0e1413ff0e1413ffb5bd68ffb5bd68ff171209ff171209ff3c3c3cff050607ff0e1413ff0e1413ff0e1413ff0e1413ff000000ff", + "terminal": null + }, + "sparse/dark": { + "modes": ["light","dark"], + "hues": ["gray","red","green","cyan","purple","accent","interactive","neutral"], + "hue": "d0d0d0ffa9a9a9ff787878ff626262ff3d3d3dff303030ff262626ff242424ff20202000cfc1bfffb89a95ff8b716cff800000ff79342bff423736ff352d2cff292625ff232120ffbfc8beff94a993ff6c7d6aff40a040ff447b42ff353b34ff2c302cff252725ff202220ffbfc7c7ff93a6a6ff6b7c7bff40a0a0ff447979ff353b3bff2b3030ff252727ff202222ffccc1cbffb398b1ff866f85ff800080ff753473ff403740ff342d33ff292529ff232023ffbfc7c7ff93a6a6ff6b7c7bff40a0a0ff447979ff353b3bff2b3030ff252727ff202222ffbfc7c7ff93a6a6ff6b7c7bff40a0a0ff447979ff353b3bff2b3030ff252727ff202222ffd0d0d0ffa9a9a9ff787878ff626262ff3d3d3dff303030ff262626ff242424ff20202000", + "categorical": "ccc1cbffb398b1ff866f85ff800080ff753473ff403740ff342d33ff292529ff232023ffbfc7c7ff93a6a6ff6b7c7bff40a0a0ff447979ff353b3bff2b3030ff252727ff202222ffbfc8beff94a993ff6c7d6aff40a040ff447b42ff353b34ff2c302cff252725ff202220ffcfc1bfffb89a95ff8b716cff800000ff79342bff423736ff352d2cff292625ff232120ff", + "base": "800000ff800000ff800000ff800000ff800000ff800000ff0000000000000000353b3bff262626ff00000000000000000000000000000000000000000000000000000000000000002020200020202000202020002020200020202000202020002020200020202000202020002020200020202000262626ff303030ff3d3d3dff545454ff273c27ff2e2e2eff351919ff00ff00ffff0000ff324732ff402424ffa9a9a9ff40a040ff545454ff545454ff800000ff808000ff40a040ffd0d0d0ff808000ffd0d0d0ff545454ff000080ff40a0a0ff000080ff40a0a0ff40a0a0ff000080ffd0d0d0ffd0d0d0ff5b5b5bffa9a9a9ff000080ff800080ff808000ff40a0a0ffd0d0d0ff40a040ff40a0a0ffd0d0d0ff202020ff787878ff202020ff202020ff202020ff202020ffd0d0d0ff787878ffd0d0d0ffd0d0d0ffd0d0d0ff40a0a0ffa9a9a9ffa9a9a9ff93a6a6ffd0d0d0ffa9a9a9ffa9a9a9ffd0d0d0ff787878ff800000ff800000ff40a0a0ff40a0a0ff40a040ff40a040ff808000ff808000ffd0d0d0ff787878ff40a0a0ff40a0a0ff40a0a0ff40a0a0ffa9a9a9ff", + "dialog": "800000ff800000ff800000ff800000ff800000ff800000ff0000000000000000353b3bff3d3d3dff00000000000000000000000000000000000000003d3d3dff0000000000000000262626ff262626ff262626ff262626ff262626ff262626ff262626ff262626ff262626ff262626ff262626ff262626ff303030ff3d3d3dff545454ff273c27ff2e2e2eff351919ff00ff00ffff0000ff324732ff402424ffa9a9a9ff40a040ff545454ff545454ff800000ff808000ff40a040ffd0d0d0ff808000ffd0d0d0ff545454ff000080ff40a0a0ff000080ff40a0a0ff40a0a0ff000080ffd0d0d0ffd0d0d0ff5b5b5bffa9a9a9ff000080ff800080ff808000ff40a0a0ffd0d0d0ff40a040ff40a0a0ffd0d0d0ff202020ff787878ff202020ff202020ff202020ff202020ffd0d0d0ff787878ffd0d0d0ffd0d0d0ffd0d0d0ff40a0a0ffa9a9a9ffa9a9a9ff93a6a6ffd0d0d0ffa9a9a9ffa9a9a9ffd0d0d0ff787878ff800000ff800000ff40a0a0ff40a0a0ff40a040ff40a040ff808000ff808000ffd0d0d0ff787878ff40a0a0ff40a0a0ff40a0a0ff40a0a0ffa9a9a9ff", + "footer": "800000ff800000ff800000ff800000ff800000ff800000ff0000000000000000353b3bff3d3d3dff00000000000000000000000000000000000000003d3d3dff0000000000000000262626ff262626ff262626ff262626ff262626ff262626ff262626ff262626ff262626ff262626ff262626ff262626ff303030ff3d3d3dff545454ff273c27ff2e2e2eff351919ff00ff00ffff0000ff324732ff402424ffa9a9a9ff40a040ff545454ff545454ff800000ff808000ff40a040ffd0d0d0ff808000ffd0d0d0ff545454ff000080ff40a0a0ff000080ff40a0a0ff40a0a0ff000080ffd0d0d0ffd0d0d0ff5b5b5bffa9a9a9ff000080ff800080ff808000ff40a0a0ffd0d0d0ff40a040ff40a0a0ffd0d0d0ff202020ff787878ff202020ff202020ff202020ff202020ffd0d0d0ff787878ffd0d0d0ffd0d0d0ffd0d0d0ff40a0a0ffa9a9a9ffa9a9a9ff93a6a6ffd0d0d0ffa9a9a9ffa9a9a9ffd0d0d0ff787878ff800000ff800000ff40a0a0ff40a0a0ff40a040ff40a040ff808000ff808000ffd0d0d0ff787878ff40a0a0ff40a0a0ff40a0a0ff40a0a0ffa9a9a9ff", + "decrease": "8b716cff8b716cff8b716cff8b716cff8b716cff8b716cff0000000000000000447979ff303030ff0000000000000000000000000000000000000000000000000000000000000000242424ff242424ff242424ff242424ff242424ff242424ff242424ff242424ff242424ff242424ff242424ff303030ff3d3d3dff626262ff545454ff273c27ff2e2e2eff351919ff00ff00ffff0000ff324732ff402424ffd0d0d0ff6c7d6aff545454ff545454ff8b716cff808000ff6c7d6affd0d0d0ff808000ffd0d0d0ff545454ff000080ff6b7c7bff000080ff6b7c7bff6b7c7bff000080ffd0d0d0ffd0d0d0ff5b5b5bffd0d0d0ff000080ff866f85ff808000ff6b7c7bffd0d0d0ff6c7d6aff6b7c7bffd0d0d0ff202020ffa9a9a9ff202020ff202020ff202020ff202020ffd0d0d0ffa9a9a9ffd0d0d0ffd0d0d0ffd0d0d0ff6b7c7bffd0d0d0ffd0d0d0ffbfc7c7ffd0d0d0ffd0d0d0ffd0d0d0ffd0d0d0ffa9a9a9ff8b716cff8b716cff6b7c7bff6b7c7bff6c7d6aff6c7d6aff808000ff808000ffd0d0d0ffa9a9a9ff6b7c7bff6b7c7bff6b7c7bff6b7c7bffd0d0d0ff", + "increase": "423736ff423736ff423736ff423736ff423736ff423736ff0000000000000000252727ff202020000000000000000000000000000000000000000000000000000000000000000000202020002020200020202000202020002020200020202000202020002020200020202000202020002020200020202000242424ff262626ff545454ff273c27ff2e2e2eff351919ff00ff00ffff0000ff324732ff402424ff626262ff353b34ff545454ff545454ff423736ff808000ff353b34ff787878ff808000ff787878ff545454ff000080ff353b3bff000080ff353b3bff353b3bff000080ff787878ff787878ff5b5b5bff626262ff000080ff403740ff808000ff353b3bff787878ff353b34ff353b3bff787878ff202020ff3d3d3dff202020ff202020ff202020ff202020ff787878ff3d3d3dff787878ff787878ff787878ff353b3bff626262ff626262ff40a0a0ff787878ff626262ff626262ff787878ff3d3d3dff423736ff423736ff353b3bff353b3bff353b34ff353b34ff808000ff808000ff787878ff3d3d3dff353b3bff353b3bff353b3bff353b3bff626262ff", + "terminal": "dark" + }, + "sparse/light": { + "modes": ["light","dark"], + "hues": ["gray","red","green","cyan","purple","accent","interactive","neutral"], + "hue": "d0d0d0ff969696ff3c3c3cff000000ff060606ff0f0f0fff1d1d1dff232323ff20202000ffe5e0ffcbbbb8ff695653ff800000ff3a1611ff1e0f0dff231a18ff252020ff262424ffe0f1dfffb8c2b7ff535f52ff40a040ff244123ff0c170bff181f18ff20231fff232523ffdfefefffb8c1c1ff535e5eff40a0a0ff244040ff0b1616ff181e1eff1f2222ff232525fffae3f8ffc8bac7ff655564ff800080ff391738ff1b0e1bff221921ff242024ff252425ffdfefefffb8c1c1ff535e5eff40a0a0ff244040ff0b1616ff181e1eff1f2222ff232525ffdfefefffb8c1c1ff535e5eff40a0a0ff244040ff0b1616ff181e1eff1f2222ff232525ffd0d0d0ff969696ff3c3c3cff000000ff060606ff0f0f0fff1d1d1dff232323ff20202000", + "categorical": "fae3f8ffc8bac7ff655564ff800080ff391738ff1b0e1bff221921ff242024ff252425ffdfefefffb8c1c1ff535e5eff40a0a0ff244040ff0b1616ff181e1eff1f2222ff232525ffe0f1dfffb8c2b7ff535f52ff40a040ff244123ff0c170bff181f18ff20231fff232523ffffe5e0ffcbbbb8ff695653ff800000ff3a1611ff1e0f0dff231a18ff252020ff262424ff", + "base": "800000ff800000ff800000ff800000ff800000ff800000ff00000000000000000b1616ff1d1d1dff000000000000000000000000000000000000000000000000000000000000000020202000202020002020200020202000202020002020200020202000202020002020200020202000202020001d1d1dff0f0f0fff060606ff181818ff243224ff1d1d1dff2d1c1cff00ff00ffff0000ff222f22ff2b1919ff3c3c3cff40a040ff181818ff181818ff800000ff808000ff40a040ffd0d0d0ff808000ffd0d0d0ff181818ff000080ff40a0a0ff000080ff40a0a0ff40a0a0ff000080ffd0d0d0ffd0d0d0ff171717ff3c3c3cff000080ff800080ff808000ff40a0a0ffd0d0d0ff40a040ff40a0a0ffd0d0d0ff202020ff3c3c3cff202020ff202020ff202020ff202020ffd0d0d0ff3c3c3cffd0d0d0ffd0d0d0ffd0d0d0ff40a0a0ff969696ff969696ffb8c1c1ffd0d0d0ff969696ff969696ffd0d0d0ff3c3c3cff800000ff800000ff40a0a0ff40a0a0ff40a040ff40a040ff808000ff808000ffd0d0d0ff3c3c3cff40a0a0ff40a0a0ff40a0a0ff40a0a0ff969696ff", + "dialog": "800000ff800000ff800000ff800000ff800000ff800000ff00000000000000000b1616ff0f0f0fff00000000000000000000000000000000000000000f0f0fff0000000000000000232323ff232323ff232323ff232323ff232323ff232323ff232323ff232323ff232323ff232323ff232323ff1d1d1dff1d1d1dff060606ff181818ff243224ff1d1d1dff2d1c1cff00ff00ffff0000ff222f22ff2b1919ff3c3c3cff40a040ff181818ff181818ff800000ff808000ff40a040ffd0d0d0ff808000ffd0d0d0ff181818ff000080ff40a0a0ff000080ff40a0a0ff40a0a0ff000080ffd0d0d0ffd0d0d0ff171717ff3c3c3cff000080ff800080ff808000ff40a0a0ffd0d0d0ff40a040ff40a0a0ffd0d0d0ff202020ff3c3c3cff202020ff202020ff202020ff202020ffd0d0d0ff3c3c3cffd0d0d0ffd0d0d0ffd0d0d0ff40a0a0ff969696ff969696ffb8c1c1ffd0d0d0ff969696ff969696ffd0d0d0ff3c3c3cff800000ff800000ff40a0a0ff40a0a0ff40a040ff40a040ff808000ff808000ffd0d0d0ff3c3c3cff40a0a0ff40a0a0ff40a0a0ff40a0a0ff969696ff", + "footer": "800000ff800000ff800000ff800000ff800000ff800000ff00000000000000000b1616ff0f0f0fff00000000000000000000000000000000000000000f0f0fff0000000000000000232323ff232323ff232323ff232323ff232323ff232323ff232323ff232323ff232323ff232323ff232323ff1d1d1dff1d1d1dff060606ff181818ff243224ff1d1d1dff2d1c1cff00ff00ffff0000ff222f22ff2b1919ff3c3c3cff40a040ff181818ff181818ff800000ff808000ff40a040ffd0d0d0ff808000ffd0d0d0ff181818ff000080ff40a0a0ff000080ff40a0a0ff40a0a0ff000080ffd0d0d0ffd0d0d0ff171717ff3c3c3cff000080ff800080ff808000ff40a0a0ffd0d0d0ff40a040ff40a0a0ffd0d0d0ff202020ff3c3c3cff202020ff202020ff202020ff202020ffd0d0d0ff3c3c3cffd0d0d0ffd0d0d0ffd0d0d0ff40a0a0ff969696ff969696ffb8c1c1ffd0d0d0ff969696ff969696ffd0d0d0ff3c3c3cff800000ff800000ff40a0a0ff40a0a0ff40a040ff40a040ff808000ff808000ffd0d0d0ff3c3c3cff40a0a0ff40a0a0ff40a0a0ff40a0a0ff969696ff", + "decrease": "695653ff695653ff695653ff695653ff695653ff695653ff0000000000000000244040ff0f0f0fff0000000000000000000000000000000000000000000000000000000000000000232323ff232323ff232323ff232323ff232323ff232323ff232323ff232323ff232323ff232323ff232323ff0f0f0fff060606ff000000ff181818ff243224ff0f0f0fff2d1c1cff00ff00ffff0000ff222f22ff2b1919ff969696ff535f52ff181818ff181818ff695653ff808000ff535f52ffd0d0d0ff808000ffd0d0d0ff181818ff000080ff535e5eff000080ff535e5eff535e5eff000080ffd0d0d0ffd0d0d0ff171717ff969696ff000080ff655564ff808000ff535e5effd0d0d0ff535f52ff535e5effd0d0d0ff202020ff969696ff202020ff202020ff202020ff202020ffd0d0d0ff969696ffd0d0d0ffd0d0d0ffd0d0d0ff535e5effd0d0d0ffd0d0d0ffdfefefffd0d0d0ffd0d0d0ffd0d0d0ffd0d0d0ff969696ff695653ff695653ff535e5eff535e5eff535f52ff535f52ff808000ff808000ffd0d0d0ff969696ff535e5eff535e5eff535e5eff535e5effd0d0d0ff", + "increase": "1e0f0dff1e0f0dff1e0f0dff1e0f0dff1e0f0dff1e0f0dff00000000000000001f2222ff202020000000000000000000000000000000000000000000000000000000000000000000202020002020200020202000202020002020200020202000202020002020200020202000202020002020200020202000232323ff1d1d1dff181818ff243224ff202020002d1c1cff00ff00ffff0000ff222f22ff2b1919ff060606ff0c170bff181818ff181818ff1e0f0dff808000ff0c170bff3c3c3cff808000ff3c3c3cff181818ff000080ff0b1616ff000080ff0b1616ff0b1616ff000080ff3c3c3cff3c3c3cff171717ff060606ff000080ff1b0e1bff808000ff0b1616ff3c3c3cff0c170bff0b1616ff3c3c3cff202020ff060606ff202020ff202020ff202020ff202020ff3c3c3cff060606ff3c3c3cff3c3c3cff3c3c3cff0b1616ff000000ff000000ff40a0a0ff3c3c3cff000000ff000000ff3c3c3cff060606ff1e0f0dff1e0f0dff0b1616ff0b1616ff0c170bff0c170bff808000ff808000ff3c3c3cff060606ff0b1616ff0b1616ff0b1616ff0b1616ff000000ff", + "terminal": "dark" + } + }, + "mini": { + "aura/dark": { + "modes": ["dark"], + "hues": ["gray","red","orange","green","purple","accent","interactive","neutral"], + "hue": "ffffffffedeceeffabaaaaff6d6d6dff423d3dff15141bff15141bff0f0f0fff090909fffa9994ffff6767ffde5555ffbf4344ffa03134ff822024ff650e15ff46050aff290104fffef3e6ffffca85ffdbab6dffb88e55ff97713eff765528ff573b13ff382405ff1b0f01ffffffffff61ffcaff47daabff2cb78cff05946fff067255ff10503cff013224ff00170effb399f9ffa277ffff8c64e0ff7652c1ff6140a3ff4d2f86ff3a1e6aff280e50ff170036ffb399f9ffa277ffff8c64e0ff7652c1ff6140a3ff4d2f86ff3a1e6aff280e50ff170036ffb399f9ffa277ffff8c64e0ff7652c1ff6140a3ff4d2f86ff3a1e6aff280e50ff170036ffffffffffedeceeffabaaaaff6d6d6dff423d3dff15141bff15141bff0f0f0fff090909ff", + "categorical": "b399f9ffa277ffff8c64e0ff7652c1ff6140a3ff4d2f86ff3a1e6aff280e50ff170036ffffffffff61ffcaff47daabff2cb78cff05946fff067255ff10503cff013224ff00170efffef3e6ffffca85ffdbab6dffb88e55ff97713eff765528ff573b13ff382405ff1b0f01fffa9994ffff6767ffde5555ffbf4344ffa03134ff822024ff650e15ff46050aff290104ff", + "base": "ff6767ffff6767ffff6767ffff6767ffff6767ffff6767ff0000000000000000a277ffff15141bff00000000000000000000000000000000000000000000000000000000000000000f0f0fff0f0f0fff0f0f0fff0f0f0fff0f0f0fff0f0f0fff0f0f0fff0f0f0fff0f0f0fff0f0f0fff0f0f0fff15141bff15141bff423d3dff2d2d2dff354933ff15141bff3f191aff61ffcaffff6767ff162620ff26161aff898989ff61ffcaff6d6d6dff6d6d6dffff6767ff6d6d6dff61ffcaffedeceeffffca85ffa277ffff6d6d6dfff694ffffa277fffff694ffffa277ffffa277ffffa277ffffa277ffffedeceeff6d6d6dff6d6d6dffa277fffff694ffff9dff65fff694ffffedeceeff61ffcaffa277ffffa277ffff0f0f0fff6d6d6dff0f0f0fff0f0f0fff0f0f0fff0f0f0fffedeceeff6d6d6dff0f0f0fffedeceeffedeceeffa277ffff6d6d6dff6d6d6dff6d6d6dffedeceeff6d6d6dff6d6d6dffedeceeff6d6d6dffff6767ffff6767ffa277ffffa277ffff61ffcaff61ffcaffffca85ffffca85ffedeceeff6d6d6dffa277ffffa277ffffa277ffffa277ffff6d6d6dff" + }, + "ayu/dark": { + "modes": ["dark"], + "hues": ["gray","red","orange","green","cyan","blue","purple","accent","interactive","neutral"], + "hue": "f6f1f1ffbfbdb6ff828d8bff565b66ff2f333cff0d1017ff0f131aff0b0e14ff07090efff56666ffd95757ffbe4849ffa43a3bff8a2b2dff711d20ff591014ff420308ff280204fffed27fffe6b450ffc6993dffa77f2aff8a6615ff6a4e11ff4e3808ff332301ff191001ff96f977ff7fd962ff69ba4eff539c3aff3e8027ff2a6412ff1c4809ff0d2f01ff051701ff5fd4ffff39bae6ff26a0c8ff1086aaff166d89ff13556bff0b3e4fff032835ff01141dffa4dafdff59c2ffff46a6ddff328bbcff1e719dff07587eff03405dff04293cff001420ffe4cefdffd2a6ffffb48cddff9774bbff7c5c9bff61457cff472f5eff2f1a42ff190728fffed27fffe6b450ffc6993dffa77f2aff8a6615ff6a4e11ff4e3808ff332301ff191001ffa4dafdff59c2ffff46a6ddff328bbcff1e719dff07587eff03405dff04293cff001420fff6f1f1ffbfbdb6ff828d8bff565b66ff2f333cff0d1017ff0f131aff0b0e14ff07090eff", + "categorical": "e4cefdffd2a6ffffb48cddff9774bbff7c5c9bff61457cff472f5eff2f1a42ff190728fffed27fffe6b450ffc6993dffa77f2aff8a6615ff6a4e11ff4e3808ff332301ff191001ff96f977ff7fd962ff69ba4eff539c3aff3e8027ff2a6412ff1c4809ff0d2f01ff051701ffa4dafdff59c2ffff46a6ddff328bbcff1e719dff07587eff03405dff04293cff001420fff56666ffd95757ffbe4849ffa43a3bff8a2b2dff711d20ff591014ff420308ff280204ff5fd4ffff39bae6ff26a0c8ff1086aaff166d89ff13556bff0b3e4fff032835ff01141dff", + "base": "d95757ffd95757ffd95757ffd95757ffd95757ffd95757ff000000000000000059c2ffff0f131aff00000000000000000000000000000000000000000000000000000000000000000b0e14ff0b0e14ff0b0e14ff0b0e14ff0b0e14ff0b0e14ff0b0e14ff0b0e14ff0b0e14ff0b0e14ff0b0e14ff0f131aff0d1017ff2f333cff6c7380ff20303bff0f131aff37222cffaad94cfff07178ff1b2b34ff2d1f26ffacb6bfff7fd962ffacb6bfffacb6bffff26d78ffe6b673ffaad94cffbfbdb6ffe6b673ffd2a6ffff565b66ff59c2ffff39bae6ff59c2ffff39bae6ff39bae6ff59c2ffffffb454ffbfbdb6ff6c7380ffacb6bfffffb454ffff8f40ffd2a6fffff29668ffbfbdb6ffaad94cffe6b673ff59c2ffff0b0e14ff565b66ff0b0e14ff0b0e14ff0b0e14ff0b0e14ffbfbdb6ff565b66ff0b0e14ffbfbdb6ffbfbdb6ff59c2ffff565b66ff565b66ff565b66ffbfbdb6ff565b66ff565b66ffbfbdb6ff565b66ffd95757ffd95757ff39bae6ff39bae6ff7fd962ff7fd962ffe6b673ffe6b673ffbfbdb6ff565b66ff59c2ffff59c2ffff59c2ffff59c2ffff565b66ff" + }, + "catppuccin/light": { + "modes": ["light","dark"], + "hues": ["gray","red","orange","green","cyan","blue","purple","accent","interactive","neutral"], + "hue": "363855ff4c4f69ff63677eff7c7f93ffaaafbdffdce0e8ffe6e9efffeff1f5fff8f9fbffb21431ffd20f39ffe23d4ffff15b65fff97c80fffa9d9dfffbbbbafffdd7d6fffff1f1ffd18414ffdf8e1dffe79c3ffff0a958fff8b66efffcc68cfffdd5acfffee4c9fffef3e8ff33901eff40a02bff57ae46ff6dbc5eff82cb74ff97d98afface8a0ffc1f6b6ffe3ffddff1f8086ff179299ff3ea1a8ff5ab1b6ff72c0c5ff8ad0d4ffa1e0e4ffb9f0f3ffddfcfeff0e54dcff1e66f5ff427ef5ff6094f7ff7ca8faff9abcf9ffb6cffdffd3e2fdfff0f5ffffe266c2ffea76cbfff285d4fffa95ddfffca8e3fffbbce7fffcceedfffedff3fffff0faffe266c2ffea76cbfff285d4fffa95ddfffca8e3fffbbce7fffcceedfffedff3fffff0faff0e54dcff1e66f5ff427ef5ff6094f7ff7ca8faff9abcf9ffb6cffdffd3e2fdfff0f5ffff363855ff4c4f69ff63677eff7c7f93ffaaafbdffdce0e8ffe6e9efffeff1f5fff8f9fbff", + "categorical": "e266c2ffea76cbfff285d4fffa95ddfffca8e3fffbbce7fffcceedfffedff3fffff0faff33901eff40a02bff57ae46ff6dbc5eff82cb74ff97d98afface8a0ffc1f6b6ffe3ffddffd18414ffdf8e1dffe79c3ffff0a958fff8b66efffcc68cfffdd5acfffee4c9fffef3e8ff0e54dcff1e66f5ff427ef5ff6094f7ff7ca8faff9abcf9ffb6cffdffd3e2fdfff0f5ffffb21431ffd20f39ffe23d4ffff15b65fff97c80fffa9d9dfffbbbbafffdd7d6fffff1f1ff1f8086ff179299ff3ea1a8ff5ab1b6ff72c0c5ff8ad0d4ffa1e0e4ffb9f0f3ffddfcfeff", + "base": "d20f39ffd20f39ffd20f39ffd20f39ffd20f39ffd20f39ff00000000000000001e66f5ffe6e9efff0000000000000000000000000000000000000000000000000000000000000000eff1f5ffeff1f5ffeff1f5ffeff1f5ffeff1f5ffeff1f5ffeff1f5ffeff1f5ffeff1f5ffeff1f5ffeff1f5ffe6e9efffdce0e8ffaaafbdffccd0daffd6f0d9ffe6e9effff6dfe2ff40a02bffd20f39ffc9e3cbffe9d3d6ff5b5d63ff40a02bff7c7f93fffe640bffd20f39ffdf8e1dff40a02bff4c4f69ffdf8e1dff8839efff6c6f85ff1e66f5ff04a5e5ff1e66f5ff04a5e5ff04a5e5ff1e66f5fffe640bff4c4f69ffbcc0ccff7c7f93ff1e66f5ff8839effffe640bff04a5e5ff4c4f69ff40a02bffdf8e1dffd20f39ffeff1f5ff7c7f93ffeff1f5ffeff1f5ffeff1f5ffeff1f5ff4c4f69ff7c7f93ffeff1f5ff4c4f69ff4c4f69ff1e66f5ff7c7f93ff7c7f93ff7c7f93ff4c4f69ff7c7f93ff7c7f93ff4c4f69ff7c7f93ffd20f39ffd20f39ff179299ff179299ff40a02bff40a02bffdf8e1dffdf8e1dff4c4f69ff7c7f93ff1e66f5ff1e66f5ff1e66f5ff1e66f5ff7c7f93ff" + }, + "catppuccin/dark": { + "modes": ["light","dark"], + "hues": ["gray","red","yellow","green","cyan","blue","purple","accent","interactive","neutral"], + "hue": "f4f6ffffcdd6f4ffb0b7d3ff9399b2ff4d5061ff11111bff181825ff1e1e2eff242437fffdb1c4fff38ba8ffd3758fffb35f77ff954b60ff77374aff5b2435ff401121ff27020ffffffffffff9e2afffd5c092ffb19f76ff8f7f5bff6f6141ff504428ff332911ff181001ffd3fecfffa6e3a1ff8bc287ff71a26dff588455ff40663dff294a27ff133012ff021702ffc3fff4ff94e2d5ff7ac1b6ff62a297ff4a837aff33665eff1c4a43ff062f2aff001613ffb3cffdff89b4faff739ad9ff5e80b9ff49689aff36507cff233a5fff112443ff03102afffef0fafff5c2e7ffd2a4c6ffb087a5ff906c86ff705168ff52384bff362030ff1c0b18fffef0fafff5c2e7ffd2a4c6ffb087a5ff906c86ff705168ff52384bff362030ff1c0b18ffb3cffdff89b4faff739ad9ff5e80b9ff49689aff36507cff233a5fff112443ff03102afff4f6ffffcdd6f4ffb0b7d3ff9399b2ff4d5061ff11111bff181825ff1e1e2eff242437ff", + "categorical": "fef0fafff5c2e7ffd2a4c6ffb087a5ff906c86ff705168ff52384bff362030ff1c0b18ffd3fecfffa6e3a1ff8bc287ff71a26dff588455ff40663dff294a27ff133012ff021702fffffffffff9e2afffd5c092ffb19f76ff8f7f5bff6f6141ff504428ff332911ff181001ffb3cffdff89b4faff739ad9ff5e80b9ff49689aff36507cff233a5fff112443ff03102afffdb1c4fff38ba8ffd3758fffb35f77ff954b60ff77374aff5b2435ff401121ff27020fffc3fff4ff94e2d5ff7ac1b6ff62a297ff4a837aff33665eff1c4a43ff062f2aff001613ff", + "base": "f38ba8fff38ba8fff38ba8fff38ba8fff38ba8fff38ba8ff000000000000000089b4faff181825ff00000000000000000000000000000000000000000000000000000000000000001e1e2eff1e1e2eff1e1e2eff1e1e2eff1e1e2eff1e1e2eff1e1e2eff1e1e2eff1e1e2eff1e1e2eff1e1e2eff181825ff11111bff4d5061ff313244ff24312bff181825ff3c2a32ffa6e3a1fff38ba8ff1e2a25ff32232aff9399b2ffa6e3a1ff9399b2fffab387fff38ba8fff9e2afffa6e3a1ffcdd6f4fff9e2afffcba6f7ffa6adc8ff89b4faff89dcebff89b4faff89dcebff89dcebff89b4fafffab387ffcdd6f4ff45475aff9399b2ff89b4faffcba6f7fffab387ff89dcebffcdd6f4ffa6e3a1fff9e2affff38ba8ff1e1e2eff9399b2ff1e1e2eff1e1e2eff1e1e2eff1e1e2effcdd6f4ff9399b2ff1e1e2effcdd6f4ffcdd6f4ff89b4faff9399b2ff9399b2ff9399b2ffcdd6f4ff9399b2ff9399b2ffcdd6f4ff9399b2fff38ba8fff38ba8ff94e2d5ff94e2d5ffa6e3a1ffa6e3a1fff9e2affff9e2afffcdd6f4ff9399b2ff89b4faff89b4faff89b4faff89b4faff9399b2ff" + }, + "catppuccin-frappe/dark": { + "modes": ["dark"], + "hues": ["gray","red","yellow","green","cyan","blue","purple","accent","interactive","neutral"], + "hue": "e7ecfeffc6d0f5ffadb6d6ff949cb8ff585e73ff232634ff292c3cff303446ff373c50fff99fa0ffe78284ffc96e70ffab5a5cff8f4749ff733437ff582225ff3f1115ff270306fffde8c1ffe5c890ffc4aa77ffa58d60ff867149ff695733ff4d3d1eff32250aff191000ffc1f0a1ffa6d189ff8cb372ff73965bff5b7a46ff445f31ff2e451dff1a2d0aff081601ff98e5daff81c8beff6baca3ff569088ff41756eff2d5c56ff1a433eff072c28ff011613ffa6bdfaff8da4e2ff788cc4ff6375a7ff4f5f8bff3c4a70ff2a3556ff18223dff091026fffee4f7fff4b8e4ffd29cc3ffb080a4ff906685ff714c68ff53344cff371e31ff1d0919fffee4f7fff4b8e4ffd29cc3ffb080a4ff906685ff714c68ff53344cff371e31ff1d0919ffa6bdfaff8da4e2ff788cc4ff6375a7ff4f5f8bff3c4a70ff2a3556ff18223dff091026ffe7ecfeffc6d0f5ffadb6d6ff949cb8ff585e73ff232634ff292c3cff303446ff373c50ff", + "categorical": "fee4f7fff4b8e4ffd29cc3ffb080a4ff906685ff714c68ff53344cff371e31ff1d0919ffc1f0a1ffa6d189ff8cb372ff73965bff5b7a46ff445f31ff2e451dff1a2d0aff081601fffde8c1ffe5c890ffc4aa77ffa58d60ff867149ff695733ff4d3d1eff32250aff191000ffa6bdfaff8da4e2ff788cc4ff6375a7ff4f5f8bff3c4a70ff2a3556ff18223dff091026fff99fa0ffe78284ffc96e70ffab5a5cff8f4749ff733437ff582225ff3f1115ff270306ff98e5daff81c8beff6baca3ff569088ff41756eff2d5c56ff1a433eff072c28ff011613ff", + "base": "e78284ffe78284ffe78284ffe78284ffe78284ffe78284ff00000000000000008da4e2ff292c3cff0000000000000000000000000000000000000000000000000000000000000000303446ff303446ff303446ff303446ff303446ff303446ff303446ff303446ff303446ff303446ff303446ff292c3cff232634ff585e73ff414559ff29342bff292c3cff3a2a31ffa6d189ffe78284ff223025ff2f242bff949cb8ffa6d189ff949cb8ffef9f76ffe78284ffe5c890ffa6d189ffc6d0f5ffe5c890ffca9ee6ffa5adceff8da4e2ff99d1dbff8da4e2ff99d1dbff99d1dbff8da4e2ffef9f76ffc6d0f5ff51576dff949cb8ff8da4e2ffca9ee6ffef9f76ff99d1dbffc6d0f5ffa6d189ffe5c890ffe78284ff303446ff949cb8ff303446ff303446ff303446ff303446ffc6d0f5ff949cb8ff303446ffc6d0f5ffc6d0f5ff8da4e2ff949cb8ff949cb8ff949cb8ffc6d0f5ff949cb8ff949cb8ffc6d0f5ff949cb8ffe78284ffe78284ff81c8beff81c8beffa6d189ffa6d189ffe5c890ffe5c890ffc6d0f5ff949cb8ff8da4e2ff8da4e2ff8da4e2ff8da4e2ff949cb8ff" + }, + "catppuccin-macchiato/dark": { + "modes": ["dark"], + "hues": ["gray","red","yellow","green","cyan","blue","purple","accent","interactive","neutral"], + "hue": "eef2feffcad3f5ffaeb6d6ff939ab7ff52556aff181926ff1e2030ff24273aff2a2e44fffba9b3ffed8796ffce727fffaf5d6aff924955ff753640ff5a232dff3f121bff27030afffef7e9ffeed49fffccb484ffaa956aff8a7852ff6b5b3aff4e4023ff33270eff181001ffc1faafffa6da95ff8cbb7cff729c64ff5a7f4dff426237ff2c4722ff172e0eff041700ffa4f4e8ff8bd5caff73b6adff5c9990ff467c74ff30615aff1b4641ff062e29ff011613ffaec8fbff8aadf4ff7494d4ff5f7bb5ff4b6496ff384d79ff25375dff142343ff05102afffeeaf8fff5bde6ffd2a0c5ffb184a5ff906886ff714e68ff53364cff371f31ff1d0a18fffeeaf8fff5bde6ffd2a0c5ffb184a5ff906886ff714e68ff53364cff371f31ff1d0a18ffaec8fbff8aadf4ff7494d4ff5f7bb5ff4b6496ff384d79ff25375dff142343ff05102affeef2feffcad3f5ffaeb6d6ff939ab7ff52556aff181926ff1e2030ff24273aff2a2e44ff", + "categorical": "feeaf8fff5bde6ffd2a0c5ffb184a5ff906886ff714e68ff53364cff371f31ff1d0a18ffc1faafffa6da95ff8cbb7cff729c64ff5a7f4dff426237ff2c4722ff172e0eff041700fffef7e9ffeed49fffccb484ffaa956aff8a7852ff6b5b3aff4e4023ff33270eff181001ffaec8fbff8aadf4ff7494d4ff5f7bb5ff4b6496ff384d79ff25375dff142343ff05102afffba9b3ffed8796ffce727fffaf5d6aff924955ff753640ff5a232dff3f121bff27030affa4f4e8ff8bd5caff73b6adff5c9990ff467c74ff30615aff1b4641ff062e29ff011613ff", + "base": "ed8796ffed8796ffed8796ffed8796ffed8796ffed8796ff00000000000000008aadf4ff1e2030ff000000000000000000000000000000000000000000000000000000000000000024273aff24273aff24273aff24273aff24273aff24273aff24273aff24273aff24273aff24273aff24273aff1e2030ff181926ff52556aff363a4fff29342bff1e2030ff3a2a31ffa6da95ffed8796ff223025ff2f242bff939ab7ffa6da95ff939ab7fff5a97fffed8796ffeed49fffa6da95ffcad3f5ffeed49fffc6a0f6ffa5adcbff8aadf4ff91d7e3ff8aadf4ff91d7e3ff91d7e3ff8aadf4fff5a97fffcad3f5ff494d64ff939ab7ff8aadf4ffc6a0f6fff5a97fff91d7e3ffcad3f5ffa6da95ffeed49fffed8796ff24273aff939ab7ff24273aff24273aff24273aff24273affcad3f5ff939ab7ff24273affcad3f5ffcad3f5ff8aadf4ff939ab7ff939ab7ff939ab7ffcad3f5ff939ab7ff939ab7ffcad3f5ff939ab7ffed8796ffed8796ff8bd5caff8bd5caffa6da95ffa6da95ffeed49fffeed49fffcad3f5ff939ab7ff8aadf4ff8aadf4ff8aadf4ff8aadf4ff939ab7ff" + }, + "cobalt2/light": { + "modes": ["light","dark"], + "hues": ["gray","red","orange","green","cyan","blue","purple","accent","interactive","neutral"], + "hue": "031c2aff193549ff3b4f63ff5c6b7dff9fa9b5ffe8ecf1fff5f7faffffffffffffffffffd30055ffe91e63fff64574fffa6a89fff88d9fffffa5b3fffdc0c9fffed9defffef1f3ffec9430ffff9800fffea74dfffdb56ffffec28afffccfa7fffcdcbeffffe7d2fffef3e9ff33a33cff4caf50ff61bb63ff75c776ff89d389ff9ce09bffafecaeffc2f8c0ffe2fee1ff259dafff00acc1ff3bb8cbff58c4d6ff71d0e1ff88dcebff9ee8f6ffb9f3feffe3faffff0255aaff0066ccff2d7bdbff4a90e9ff65a5f8ff85b9ffffabcefcffcee2fdffeff6feff6f2df4ff7c4dffff896dfdff9986feffa99ff8ffbbb4feffcecafbffe1dffcfff4f4feff259dafff00acc1ff3bb8cbff58c4d6ff71d0e1ff88dcebff9ee8f6ffb9f3feffe3faffff0255aaff0066ccff2d7bdbff4a90e9ff65a5f8ff85b9ffffabcefcffcee2fdffeff6feff031c2aff193549ff3b4f63ff5c6b7dff9fa9b5ffe8ecf1fff5f7faffffffffffffffffff", + "categorical": "6f2df4ff7c4dffff896dfdff9986feffa99ff8ffbbb4feffcecafbffe1dffcfff4f4feff259dafff00acc1ff3bb8cbff58c4d6ff71d0e1ff88dcebff9ee8f6ffb9f3feffe3faffff33a33cff4caf50ff61bb63ff75c776ff89d389ff9ce09bffafecaeffc2f8c0ffe2fee1ffec9430ffff9800fffea74dfffdb56ffffec28afffccfa7fffcdcbeffffe7d2fffef3e9ff0255aaff0066ccff2d7bdbff4a90e9ff65a5f8ff85b9ffffabcefcffcee2fdffeff6feffd30055ffe91e63fff64574fffa6a89fff88d9fffffa5b3fffdc0c9fffed9defffef1f3ff", + "base": "e91e63ffe91e63ffe91e63ffe91e63ffe91e63ffe91e63ff00000000000000000066ccfff5f7faff0000000000000000000000000000000000000000000000000000000000000000fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff5f7faffe8ecf1ff9fa9b5ffd3dae3ffe8f5e9fff5f7faffffebeeff4caf50ffe91e63ffe8f5e9ffffebeeff5c6b7dff4caf50ff5c6b7dff00acc1ffe91e63ff5c6b7dff4caf50ff193549ffff5722ffff9800ffd3dae3ff0066ccff00acc1ff0066ccff00acc1ff00acc1ff0066ccffe91e63ff193549ff0066ccff5c6b7dffff9800ffff5722ffe91e63ffff5722ff193549ff4caf50ff00acc1ff193549ffffffffff5c6b7dffffffffffffffffffffffffffffffffff193549ff5c6b7dffffffffff193549ff193549ff0066ccff5c6b7dff5c6b7dff5c6b7dff193549ff5c6b7dff5c6b7dff193549ff5c6b7dffe91e63ffe91e63ffff5722ffff5722ff4caf50ff4caf50ffff9800ffff9800ff193549ff5c6b7dff0066ccff0066ccff0066ccff0066ccff5c6b7dff" + }, + "cobalt2/dark": { + "modes": ["light","dark"], + "hues": ["gray","red","orange","yellow","green","blue","purple","accent","interactive","neutral"], + "hue": "ffffffffffffffffd1dddaffadb7c9ff667c95ff1f4662ff122738ff193549ff20445afffa699effff0088ffd72075ffba0d62ff971551ff7c033fff5d042fff42011fff270110ffffc68cffff9d00ffd78820ffb77006ff935b10ff72460eff543207ff381f00ff1c0e01fffeedc7ffffc600ffd7a925ffb58c03ff91710fff70570cff513d04ff332603ff181001ffffffffff2affdfff3ad8beff1bb59dff1d917eff166f60ff094f44ff05312aff011612ff509ffcff0088ffff1976d6ff0a63baff105296ff03407cff03305eff012043ff011128ffac75fdff9a5febff8650cfff7240b3ff5f3298ff4c237eff3b1565ff2a074dff190133ffffffffff2affdfff3ad8beff1bb59dff1d917eff166f60ff094f44ff05312aff011612ff509ffcff0088ffff1976d6ff0a63baff105296ff03407cff03305eff012043ff011128ffffffffffffffffffd1dddaffadb7c9ff667c95ff1f4662ff122738ff193549ff20445aff", + "categorical": "ac75fdff9a5febff8650cfff7240b3ff5f3298ff4c237eff3b1565ff2a074dff190133ffffffffff2affdfff3ad8beff1bb59dff1d917eff166f60ff094f44ff05312aff011612fffeedc7ffffc600ffd7a925ffb58c03ff91710fff70570cff513d04ff332603ff181001ff509ffcff0088ffff1976d6ff0a63baff105296ff03407cff03305eff012043ff011128fffa699effff0088ffd72075ffba0d62ff971551ff7c033fff5d042fff42011fff270110ffffc68cffff9d00ffd78820ffb77006ff935b10ff72460eff543207ff381f00ff1c0e01ff", + "base": "ff0088ffff0088ffff0088ffff0088ffff0088ffff0088ff00000000000000000088ffff122738ff0000000000000000000000000000000000000000000000000000000000000000193549ff193549ff193549ff193549ff193549ff193549ff193549ff193549ff193549ff193549ff193549ff122738ff1f4662ff667c95ff1f4662ff1a3a2aff122738ff3a1a2affb9ff9fffff5fb3ff1a3a2aff3a1a2affadb7c9ff9eff80ffadb7c9ff2affdfffff0088ffadb7c9ff9eff80ffffffffffff9d00ffffc600ff2d5a7bff0088ffff2affdfff0088ffff2affdfff2affdfff0088ffffff628cffffffffff0088ffff0088ffffffc600ffff9d00ffff628cffff9d00ffffffffff9eff80ff2affdfffffffffff193549ffadb7c9ff193549ff193549ff193549ff193549ffffffffffadb7c9ff193549ffffffffffffffffff0088ffffadb7c9ffadb7c9ffadb7c9ffffffffffadb7c9ffadb7c9ffffffffffadb7c9ffff0088ffff0088ffff9d00ffff9d00ff9eff80ff9eff80ffffc600ffffc600ffffffffffadb7c9ff0088ffff0088ffff0088ffff0088ffffadb7c9ff" + }, + "cursor/light": { + "modes": ["light","dark"], + "hues": ["gray","red","green","cyan","accent","interactive","neutral"], + "hue": "141414ff141414ff141414d6141414ad777777d6edededfff3f3f3fffcfcfcffffffffffb81947ffcf2d56ffde4b69ffed657cfffb7d90fffd9ea9fffcbcc2fffed7dafffff1f2ff057855ff1f8a65ff419a77ff5bab89ff74bc9cff8ccdb0ffa4dec3ffbcf0d7ffddfeeeff5f8e9aff6f9ba6ff7fa8b2ff8fb5bfffa0c3ccffb0d0d9ffc1dee5ffd2ecf3ffe5f9ffff5f8e9aff6f9ba6ff7fa8b2ff8fb5bfffa0c3ccffb0d0d9ffc1dee5ffd2ecf3ffe5f9ffff5f8e9aff6f9ba6ff7fa8b2ff8fb5bfffa0c3ccffb0d0d9ffc1dee5ffd2ecf3ffe5f9ffff141414ff141414ff141414d6141414ad777777d6edededfff3f3f3fffcfcfcffffffffff", + "categorical": "5f8e9aff6f9ba6ff7fa8b2ff8fb5bfffa0c3ccffb0d0d9ffc1dee5ffd2ecf3ffe5f9ffff057855ff1f8a65ff419a77ff5bab89ff74bc9cff8ccdb0ffa4dec3ffbcf0d7ffddfeeeffb81947ffcf2d56ffde4b69ffed657cfffb7d90fffd9ea9fffcbcc2fffed7dafffff1f2ff", + "base": "cf2d56ffcf2d56ffcf2d56ffcf2d56ffcf2d56ffcf2d56ff00000000000000006f9ba6fff3f3f3ff0000000000000000000000000000000000000000000000000000000000000000fcfcfcfffcfcfcfffcfcfcfffcfcfcfffcfcfcfffcfcfcfffcfcfcfffcfcfcfffcfcfcfffcfcfcfffcfcfcfff3f3f3ffedededff777777d6141414131f8a651ff3f3f3ffcf2d561455a583ffe75e78ff1f8a651fcf2d5614141414ad1f8a65ff141414ad141414adcf2d56ff141414ad1f8a65ff141414ff141414ff206595ff141414ad206595ff141414ad206595ff141414ad141414ad141414ff141414ff141414ff6f9ba6ff141414addb704bffb3003fffb8448bff141414ff141414ff9e94d5ff206595ff141414fffcfcfcff141414adfcfcfcfffcfcfcfffcfcfcfffcfcfcff141414ff141414adfcfcfcff141414ff141414ff6f9ba6ff141414ad141414ad141414ad141414ff141414ad141414ad141414ff141414adcf2d56ffcf2d56ff3c7cabff3c7cabff1f8a65ff1f8a65ffdb704bffdb704bff141414ff141414ad6f9ba6ff6f9ba6ff6f9ba6ff6f9ba6ff141414ad" + }, + "cursor/dark": { + "modes": ["light","dark"], + "hues": ["gray","red","orange","green","cyan","blue","accent","interactive","neutral"], + "hue": "e4e4e4ffe4e4e4ffe4e4e4afe4e4e45e7e7e7eaf262626ff141414ff181818ff1c1c1cfff75f85ffe34671ffc73860ffac2a50ff911c40ff770d31ff5a0924ff400418ff29000bfffed7a8fff1b467ffd09952ffb07e3eff90652bff724c17ff563502ff372103ff1b0f01ff4db876ff3fa266ff318c56ff237747ff156338ff054f29ff053b1eff022812ff011708ff9fdceeff88c0d0ff72a5b3ff5c8a97ff47707cff335761ff204048ff0e2931ff01151bff95b8dcff81a1c1ff6d8aa7ff5a748eff485f76ff364a5eff253648ff152432ff07131eff9fdceeff88c0d0ff72a5b3ff5c8a97ff47707cff335761ff204048ff0e2931ff01151bff9fdceeff88c0d0ff72a5b3ff5c8a97ff47707cff335761ff204048ff0e2931ff01151bffe4e4e4ffe4e4e4ffe4e4e4afe4e4e45e7e7e7eaf262626ff141414ff181818ff1c1c1cff", + "categorical": "95b8dcff81a1c1ff6d8aa7ff5a748eff485f76ff364a5eff253648ff152432ff07131eff9fdceeff88c0d0ff72a5b3ff5c8a97ff47707cff335761ff204048ff0e2931ff01151bff4db876ff3fa266ff318c56ff237747ff156338ff054f29ff053b1eff022812ff011708fffed7a8fff1b467ffd09952ffb07e3eff90652bff724c17ff563502ff372103ff1b0f01fff75f85ffe34671ffc73860ffac2a50ff911c40ff770d31ff5a0924ff400418ff29000bff", + "base": "e34671ffe34671ffe34671ffe34671ffe34671ffe34671ff000000000000000088c0d0ff141414ff0000000000000000000000000000000000000000000000000000000000000000181818ff181818ff181818ff181818ff181818ff181818ff181818ff181818ff181818ff181818ff181818ff141414ff262626ff7e7e7eafe4e4e4133fa26633141414ffb800493370b489fffc6b83ff3fa26633b8004933eeeeee873fa266ffe4e4e45ee4e4e45ee34671ffe4e4e45ee394dcffe4e4e4ff82d2ceffaaa0faffe4e4e45e88c0d0ff81a1c1ff82d2ceff81a1c1ff88c0d0ffe4e4e4fff8c762ffe4e4e4ff88c0d0ffe4e4e45eefb080ff82d2cefff8c762ffe4e4e4ffe4e4e4ffe394dcffefb080ffe4e4e4ff181818ffe4e4e45e181818ff181818ff181818ff181818ffe4e4e4ffe4e4e45e181818ffe4e4e4ffe4e4e4ff88c0d0ffe4e4e45ee4e4e45ee4e4e45ee4e4e4ffe4e4e45ee4e4e45ee4e4e4ffe4e4e45ee34671ffe34671ff81a1c1ff81a1c1ff3fa266ff3fa266fff1b467fff1b467ffe4e4e4ffe4e4e45e88c0d0ff88c0d0ff88c0d0ff88c0d0ffe4e4e45e" + }, + "dracula/light": { + "modes": ["light","dark"], + "hues": ["gray","red","orange","yellow","green","cyan","purple","accent","interactive","neutral"], + "hue": "0c0c0cff282a36ff454c6aff6272a4ff85aeaaffd8d8d2ffe8e8e2fff8f8f2fffffffffff63c43ffff5555fff87a74fffa9089fffda49dfffcb9b4fffeccc8fffde0ddfffff2f0fffcb05dffffb86cfffdc284fffccb98fffcd3aafffddbbaffffe3c8ffffebd7fffff3e8fff1fa82fff1fa8cfff2fa95fff2fa9efff3faa7fff3fbaffff4fbb7fff4fbbffff5fbc7ff30f76eff50fa7bff66fd87ff87fc9cff95ffa7ffabffb7ffc2fec9ffd0ffd5ffe1ffe4ff7fe6fbff8be9fdff96ecffffa8eefdffb2f1ffffc0f3feffccf5feffdaf7feffe5fafeffb486f3ffbd93f9ffc69fffffcdaefeffd5bcfeffddcbfcffe5d8fcffeee6fdfff7f3feff7fe6fbff8be9fdff96ecffffa8eefdffb2f1ffffc0f3feffccf5feffdaf7feffe5fafeffb486f3ffbd93f9ffc69fffffcdaefeffd5bcfeffddcbfcffe5d8fcffeee6fdfff7f3feff0c0c0cff282a36ff454c6aff6272a4ff85aeaaffd8d8d2ffe8e8e2fff8f8f2ffffffffff", + "categorical": "f63c43ffff5555fff87a74fffa9089fffda49dfffcb9b4fffeccc8fffde0ddfffff2f0ff7fe6fbff8be9fdff96ecffffa8eefdffb2f1ffffc0f3feffccf5feffdaf7feffe5fafeff30f76eff50fa7bff66fd87ff87fc9cff95ffa7ffabffb7ffc2fec9ffd0ffd5ffe1ffe4fff1fa82fff1fa8cfff2fa95fff2fa9efff3faa7fff3fbaffff4fbb7fff4fbbffff5fbc7ffb486f3ffbd93f9ffc69fffffcdaefeffd5bcfeffddcbfcffe5d8fcffeee6fdfff7f3fefffcb05dffffb86cfffdc284fffccb98fffcd3aafffddbbaffffe3c8ffffebd7fffff3e8ff", + "base": "ff5555ffff5555ffff5555ffff5555ffff5555ffff5555ff0000000000000000bd93f9ffe8e8e2ff0000000000000000000000000000000000000000000000000000000000000000f8f8f2fff8f8f2fff8f8f2fff8f8f2fff8f8f2fff8f8f2fff8f8f2fff8f8f2fff8f8f2fff8f8f2fff8f8f2ffe8e8e2ffd8d8d2ff85aeaaffc8c8c2ffe0ffe0ffe8e8e2ffffe0e0ff50fa7bffff5555ffe0ffe0ffffe0e0ff686865ff50fa7bff6272a4ff6272a4ffff5555ff6272a4ff50fa7bff282a36fff1fa8cffbd93f9ff6272a4ff8be9fdffff79c6ff8be9fdffff79c6ff8be9fdffbd93f9ffffb86cff282a36ffbd93f9ff6272a4ff50fa7bffff79c6ffbd93f9ffff79c6ff282a36fff1fa8cff8be9fdff282a36fff8f8f2ff6272a4fff8f8f2fff8f8f2fff8f8f2fff8f8f2ff282a36ff6272a4fff8f8f2ff282a36ff282a36ffbd93f9ff6272a4ff6272a4ff6272a4ff282a36ff6272a4ff6272a4ff282a36ff6272a4ffff5555ffff5555ffffb86cffffb86cff50fa7bff50fa7bfff1fa8cfff1fa8cff282a36ff6272a4ffbd93f9ffbd93f9ffbd93f9ffbd93f9ff6272a4ff" + }, + "dracula/dark": { + "modes": ["light","dark"], + "hues": ["gray","red","orange","yellow","green","cyan","purple","accent","interactive","neutral"], + "hue": "fffffffff8f8f2ff94bdb9ff6272a4ff545c7eff44475aff21222cff282a36ff2f3240fffe8781ffff5555ffdf4445ffc03436ffa12328ff84111aff630b11ff450408ff290203fffde2c7ffffb86cffdc9c56ffba8141ff99662dff794d18ff5a3502ff3a2102ff1c0e01fffffffffff1fa8cffcdd571ffaab056ff888e3cff676c22ff494c05ff2c2e02ff121300ffe0ffe3ff50fa7bff37d663ff19b44cff1c903fff166f2fff0a501fff053211ff021705fff0fcffff8be9fdff71c7d9ff58a6b6ff408695ff286874ff104b55ff012f37ff00151affd1b5feffbd93f9ffa37cd9ff8966b9ff70519aff583d7dff422961ff2c1745ff18062cfff0fcffff8be9fdff71c7d9ff58a6b6ff408695ff286874ff104b55ff012f37ff00151affd1b5feffbd93f9ffa37cd9ff8966b9ff70519aff583d7dff422961ff2c1745ff18062cfffffffffff8f8f2ff94bdb9ff6272a4ff545c7eff44475aff21222cff282a36ff2f3240ff", + "categorical": "fe8781ffff5555ffdf4445ffc03436ffa12328ff84111aff630b11ff450408ff290203fff0fcffff8be9fdff71c7d9ff58a6b6ff408695ff286874ff104b55ff012f37ff00151affe0ffe3ff50fa7bff37d663ff19b44cff1c903fff166f2fff0a501fff053211ff021705fffffffffff1fa8cffcdd571ffaab056ff888e3cff676c22ff494c05ff2c2e02ff121300ffd1b5feffbd93f9ffa37cd9ff8966b9ff70519aff583d7dff422961ff2c1745ff18062cfffde2c7ffffb86cffdc9c56ffba8141ff99662dff794d18ff5a3502ff3a2102ff1c0e01ff", + "base": "ff5555ffff5555ffff5555ffff5555ffff5555ffff5555ff0000000000000000bd93f9ff21222cff0000000000000000000000000000000000000000000000000000000000000000282a36ff282a36ff282a36ff282a36ff282a36ff282a36ff282a36ff282a36ff282a36ff282a36ff282a36ff21222cff44475aff545c7eff44475aff1a3a1aff21222cff3a1a1aff50fa7bffff5555ff1a3a1aff3a1a1aff989aa4ff50fa7bff6272a4ff6272a4ffff5555ff6272a4ff50fa7bfff8f8f2fff1fa8cffbd93f9ff6272a4ff8be9fdffff79c6ff8be9fdffff79c6ff8be9fdffbd93f9ffffb86cfff8f8f2ffbd93f9ff6272a4ff50fa7bffff79c6ffbd93f9ffff79c6fff8f8f2fff1fa8cff8be9fdfff8f8f2ff282a36ff6272a4ff282a36ff282a36ff282a36ff282a36fff8f8f2ff6272a4ff282a36fff8f8f2fff8f8f2ffbd93f9ff6272a4ff6272a4ff6272a4fff8f8f2ff6272a4ff6272a4fff8f8f2ff6272a4ffff5555ffff5555ffffb86cffffb86cff50fa7bff50fa7bfff1fa8cfff1fa8cfff8f8f2ff6272a4ffbd93f9ffbd93f9ffbd93f9ffbd93f9ff6272a4ff" + }, + "everforest/light": { + "modes": ["light","dark"], + "hues": ["gray","red","orange","yellow","green","blue","purple","accent","interactive","neutral"], + "hue": "464752ff5c6a72ff7a8e8affa6b0a0ffccd0bcfff4f0d9ffefebd4fffdf6e3ffffffffffee3c3ffff85552fff9726bfffc8a82ffffa098fffeb6affffcccc7fffededbfffef2f0ffe6731efff57d26fffd8c44fffd9f67fffab38afffdc3a1fffed3bafffde3d5fffff2ecff81931fff8da101ff9aae35ffa8bb51ffb6c869ffc4d580ffd2e296ffe1f0acfff0fdc2ff029a6dff35a77cff50b48bff68c19aff7eceaaff93dbbaffa8e8caffbcf5daffdefeeeff1986b9ff3a94c5ff53a3d1ff69b1dcff7ec0e8ff94cff3ffadddfbffcceafeffecf7ffffd557afffdf69baffe97ac5fff28bd0fffb9cdbfffbb4e1fffdc8e9fffdddf0fffef1f9ffd557afffdf69baffe97ac5fff28bd0fffb9cdbfffbb4e1fffdc8e9fffdddf0fffef1f9ff81931fff8da101ff9aae35ffa8bb51ffb6c869ffc4d580ffd2e296ffe1f0acfff0fdc2ff464752ff5c6a72ff7a8e8affa6b0a0ffccd0bcfff4f0d9ffefebd4fffdf6e3ffffffffff", + "categorical": "1986b9ff3a94c5ff53a3d1ff69b1dcff7ec0e8ff94cff3ffadddfbffcceafeffecf7ffffd557afffdf69baffe97ac5fff28bd0fffb9cdbfffbb4e1fffdc8e9fffdddf0fffef1f9ff81931fff8da101ff9aae35ffa8bb51ffb6c869ffc4d580ffd2e296ffe1f0acfff0fdc2ffe6731efff57d26fffd8c44fffd9f67fffab38afffdc3a1fffed3bafffde3d5fffff2ecffee3c3ffff85552fff9726bfffc8a82ffffa098fffeb6affffcccc7fffededbfffef2f0ff029a6dff35a77cff50b48bff68c19aff7eceaaff93dbbaffa8e8caffbcf5daffdefeeeff", + "base": "f85552fff85552fff85552fff85552fff85552fff85552ff00000000000000008da101ffefebd4ff0000000000000000000000000000000000000000000000000000000000000000fdf6e3fffdf6e3fffdf6e3fffdf6e3fffdf6e3fffdf6e3fffdf6e3fffdf6e3fffdf6e3fffdf6e3fffdf6e3ffefebd4fff4f0d9ffccd0bcff939f91ffd5e5d5ffefebd4fff7d8dbff4db380fff52a65ffc5d5c5ffe7c8cbff5b5951ff1e725cff7086b5ff7086b5ffc53b53ffdfa000ff8da101ff5c6a72ffdfa000ffdf69baffa6b0a0ff8da101ff35a77cff8da101ff35a77cff35a77cff8da101fff57d26ff5c6a72ff829181ffa6b0a0ff8da101ffdf69bafff57d26ff35a77cff5c6a72ff8da101ffdfa000fff85552fffdf6e3ffa6b0a0fffdf6e3fffdf6e3fffdf6e3fffdf6e3ff5c6a72ffa6b0a0fffdf6e3ff5c6a72ff5c6a72ff8da101ffa6b0a0ffa6b0a0ffa6b0a0ff5c6a72ffa6b0a0ffa6b0a0ff5c6a72ffa6b0a0fff85552fff85552ff35a77cff35a77cff8da101ff8da101fff57d26fff57d26ff5c6a72ffa6b0a0ff8da101ff8da101ff8da101ff8da101ffa6b0a0ff" + }, + "everforest/dark": { + "modes": ["light","dark"], + "hues": ["gray","red","orange","yellow","green","cyan","accent","interactive","neutral"], + "hue": "fee8d7ffd3c6aaffa3a690ff7a8478ff52615fff343f44ff333c43ff2d353bff272e33fff4b1d1ffd699b6ffb9829cff9c6b83ff81566bff664153ff4d2d3dff351a28ff1e0914fffbb596ffe69875ffc78161ffa96a4eff8c553bff70402aff552c19ff3c1908ff220901ffc1dc96ffa7c080ff8ea56bff768a56ff5f7042ff48572fff33401cff1f290bff0d1500ff99dca9ff83c092ff6ea57bff598b66ff457151ff32593cff1f4229ff0e2c17ff011707ff94d6cdff7fbbb3ff6aa199ff568781ff426e69ff2f5651ff1d3f3bff0c2a27ff001613fff4b1d1ffd699b6ffb9829cff9c6b83ff81566bff664153ff4d2d3dff351a28ff1e0914ffc1dc96ffa7c080ff8ea56bff768a56ff5f7042ff48572fff33401cff1f290bff0d1500fffee8d7ffd3c6aaffa3a690ff7a8478ff52615fff343f44ff333c43ff2d353bff272e33ff", + "categorical": "94d6cdff7fbbb3ff6aa199ff568781ff426e69ff2f5651ff1d3f3bff0c2a27ff001613fff4b1d1ffd699b6ffb9829cff9c6b83ff81566bff664153ff4d2d3dff351a28ff1e0914ffc1dc96ffa7c080ff8ea56bff768a56ff5f7042ff48572fff33401cff1f290bff0d1500fffbb596ffe69875ffc78161ffa96a4eff8c553bff70402aff552c19ff3c1908ff220901ff99dca9ff83c092ff6ea57bff598b66ff457151ff32593cff1f4229ff0e2c17ff011707ff", + "base": "e67e80ffe67e80ffe67e80ffe67e80ffe67e80ffe67e80ff0000000000000000a7c080ff333c43ff00000000000000000000000000000000000000000000000000000000000000002d353bff2d353bff2d353bff2d353bff2d353bff2d353bff2d353bff2d353bff2d353bff2d353bff2d353bff333c43ff343f44ff52615fff859289ff20303bff333c43ff37222cffb8db87ffe26a75ff1b2b34ff2d1f26ffa0a5a7ff4fd6beff828bb8ff828bb8ffc53b53ffdbbc7fffa7c080ffd3c6aaffdbbc7fffd699b6ff7a8478ffa7c080ff83c092ffa7c080ff83c092ff83c092ffa7c080ffe69875ffd3c6aaff9da9a0ff7a8478ffa7c080ffd699b6ffe69875ff83c092ffd3c6aaffa7c080ffdbbc7fffe67e80ff2d353bff7a8478ff2d353bff2d353bff2d353bff2d353bffd3c6aaff7a8478ff2d353bffd3c6aaffd3c6aaffa7c080ff7a8478ff7a8478ff7a8478ffd3c6aaff7a8478ff7a8478ffd3c6aaff7a8478ffe67e80ffe67e80ff83c092ff83c092ffa7c080ffa7c080ffe69875ffe69875ffd3c6aaff7a8478ffa7c080ffa7c080ffa7c080ffa7c080ff7a8478ff" + }, + "flexoki/light": { + "modes": ["light","dark"], + "hues": ["gray","red","orange","green","cyan","blue","purple","accent","interactive","neutral"], + "hue": "000000ff100f0fff3d3b39ff6f6e69ffa9a79fffe6e4d9fff2f0e5fffffcf0ffffffffff9c040bffaf3029ffc14c42ffd3655affe57e72fff6968afffdb5abffffd3cdfffef2f0ffa14817ffbc5215ffcb6736ffda7c50ffe99169fff7a682fffcc0a5fffed9c9fffff2edff576d10ff66800bff789133ff8aa34fff9db468ffb0c681ffc4d89affd8ebb3ffecfdccff0e7169ff24837bff43948cff5da59eff75b7afff8dc9c1ffa5dbd4ffbdede7ffd9fef9ff0a4a8dff205ea6ff3c73b8ff5589c9ff6f9edbff88b4ecffa2cbfeffcbe0fcffeff6feff4b268aff5e409dff7258b0ff8670c3ff9c88d6ffb2a1e9ffc9b9fcffdfd6fefff5f3feffa14817ffbc5215ffcb6736ffda7c50ffe99169fff7a682fffcc0a5fffed9c9fffff2edff0a4a8dff205ea6ff3c73b8ff5589c9ff6f9edbff88b4ecffa2cbfeffcbe0fcffeff6feff000000ff100f0fff3d3b39ff6f6e69ffa9a79fffe6e4d9fff2f0e5fffffcf0ffffffffff", + "categorical": "4b268aff5e409dff7258b0ff8670c3ff9c88d6ffb2a1e9ffc9b9fcffdfd6fefff5f3feffa14817ffbc5215ffcb6736ffda7c50ffe99169fff7a682fffcc0a5fffed9c9fffff2edff576d10ff66800bff789133ff8aa34fff9db468ffb0c681ffc4d89affd8ebb3ffecfdccff0a4a8dff205ea6ff3c73b8ff5589c9ff6f9edbff88b4ecffa2cbfeffcbe0fcffeff6feff9c040bffaf3029ffc14c42ffd3655affe57e72fff6968afffdb5abffffd3cdfffef2f0ff0e7169ff24837bff43948cff5da59eff75b7afff8dc9c1ffa5dbd4ffbdede7ffd9fef9ff", + "base": "af3029ffaf3029ffaf3029ffaf3029ffaf3029ffaf3029ff0000000000000000205ea6fff2f0e5ff0000000000000000000000000000000000000000000000000000000000000000fffcf0fffffcf0fffffcf0fffffcf0fffffcf0fffffcf0fffffcf0fffffcf0fffffcf0fffffcf0fffffcf0fff2f0e5ffe6e4d9ffa9a79fffb7b5acffd5e5d5fff2f0e5fff7d8dbff66800bffaf3029ffc5d5c5ffe7c8cbff5a5955ff66800bff6f6e69ff205ea6ffaf3029ffad8301ff24837bff100f0fffad8301ff5e409dff6f6e69ffa02f6fff24837bff205ea6ff24837bff24837bffbc5215ffbc5215ff100f0fff878580ff6f6e69ffbc5215ff66800bff5e409dff6f6e69ff6f6e69ff24837bffad8301ff205ea6fffffcf0ff6f6e69fffffcf0fffffcf0fffffcf0fffffcf0ff100f0fff6f6e69fffffcf0ff100f0fff100f0fff205ea6ff6f6e69ff6f6e69ff6f6e69ff100f0fff6f6e69ff6f6e69ff100f0fff6f6e69ffaf3029ffaf3029ff24837bff24837bff66800bff66800bffbc5215ffbc5215ff100f0fff6f6e69ff205ea6ff205ea6ff205ea6ff205ea6ff6f6e69ff" + }, + "flexoki/dark": { + "modes": ["light","dark"], + "hues": ["gray","red","orange","yellow","cyan","blue","purple","accent","interactive","neutral"], + "hue": "ffffffffcecdc3ff9d9c95ff6f6e69ff4a4946ff282726ff1c1b1aff100f0fff050505ffeb5b4dffd14d41ffb74035ff9e322aff86251eff6f1913ff580b08ff420101ff290201fff68239ffda702cffbe5e1effa34d10ff893d00ff6c3005ff512304ff391601ff210a01ff9bb047ff879a39ff74852cff61701eff4f5c10ff3e4902ff2d3602ff1e2501ff101401ff49c1b6ff3aa99fff2b9289ff1b7c74ff08665fff0b504aff073b37ff022825ff011614ff5098d6ff4385beff3773a7ff2b6190ff1f5079ff134064ff07304fff042138ff011324ff9f91e2ff8b7ec8ff786cafff655a96ff53497eff423967ff312951ff211a3cff120c27ff9f91e2ff8b7ec8ff786cafff655a96ff53497eff423967ff312951ff211a3cff120c27fff68239ffda702cffbe5e1effa34d10ff893d00ff6c3005ff512304ff391601ff210a01ffffffffffcecdc3ff9d9c95ff6f6e69ff4a4946ff282726ff1c1b1aff100f0fff050505ff", + "categorical": "5098d6ff4385beff3773a7ff2b6190ff1f5079ff134064ff07304fff042138ff011324ff9f91e2ff8b7ec8ff786cafff655a96ff53497eff423967ff312951ff211a3cff120c27ff9bb047ff879a39ff74852cff61701eff4f5c10ff3e4902ff2d3602ff1e2501ff101401fff68239ffda702cffbe5e1effa34d10ff893d00ff6c3005ff512304ff391601ff210a01ffeb5b4dffd14d41ffb74035ff9e322aff86251eff6f1913ff580b08ff420101ff290201ff49c1b6ff3aa99fff2b9289ff1b7c74ff08665fff0b504aff073b37ff022825ff011614ff", + "base": "d14d41ffd14d41ffd14d41ffd14d41ffd14d41ffd14d41ff0000000000000000da702cff1c1b1aff0000000000000000000000000000000000000000000000000000000000000000100f0fff100f0fff100f0fff100f0fff100f0fff100f0fff100f0fff100f0fff100f0fff100f0fff100f0fff1c1b1aff282726ff4a4946ff575653ff1a2d1aff1c1b1aff2d1a1aff879a39ffd14d41ff152515ff251515ff888883ff879a39ff6f6e69ff4385beffd14d41ffd0a215ff3aa99fffcecdc3ffd0a215ff8b7ec8ff6f6e69ffce5d97ff3aa99fff4385beff3aa99fff3aa99fffda702cffda702cffcecdc3ff6f6e69ff6f6e69ffda702cff879a39ff8b7ec8ffb7b5acffb7b5acff3aa99fffd0a215ff4385beff100f0fff6f6e69ff100f0fff100f0fff100f0fff100f0fffcecdc3ff6f6e69ff100f0fffcecdc3ffcecdc3ffda702cff6f6e69ff6f6e69ff6f6e69ffcecdc3ff6f6e69ff6f6e69ffcecdc3ff6f6e69ffd14d41ffd14d41ff3aa99fff3aa99fff879a39ff879a39ffda702cffda702cffcecdc3ff6f6e69ffda702cffda702cffda702cffda702cff6f6e69ff" + }, + "github/light": { + "modes": ["light","dark"], + "hues": ["gray","red","orange","yellow","green","cyan","blue","purple","accent","interactive","neutral"], + "hue": "0e1115ff24292fff3d444cff57606affa0a7adfff0f3f6fff6f8faffffffffffffffffffb7031fffcf222effdf4546ffee615dfffd7a74fffe9c95fffdbbb5ffffd6d3fffef2f0ffa04208ffbc4c00ffcc622effdb784affea8e64fff9a37dfffebea2ffffd8c8fffef2edff835808ff9a6700ffaa7a2effba8d4bffcaa065ffdbb47effebc897fffcdcb1fffef3e5ff166a2dff1a7f37ff3c914eff57a465ff71b67cff8ac993ffa3dcaaffbdefc3ffe1fee4ff18686eff1b7c83ff3d8e94ff58a0a6ff72b2b7ff8ac5caffa3d8dcffbcebefffdefcfeff0b59b8ff0969daff317ee8ff4d92f5ff6ea7f9ff91bbf9ffafcffcffd0e2fdfff0f6feff7336d2ff8250dfff9267ecffa27df8ffb196fcffc1affbffd2c5feffe3ddfefff6f3ffff18686eff1b7c83ff3d8e94ff58a0a6ff72b2b7ff8ac5caffa3d8dcffbcebefffdefcfeff0b59b8ff0969daff317ee8ff4d92f5ff6ea7f9ff91bbf9ffafcffcffd0e2fdfff0f6feff0e1115ff24292fff3d444cff57606affa0a7adfff0f3f6fff6f8faffffffffffffffffff", + "categorical": "7336d2ff8250dfff9267ecffa27df8ffb196fcffc1affbffd2c5feffe3ddfefff6f3ffff18686eff1b7c83ff3d8e94ff58a0a6ff72b2b7ff8ac5caffa3d8dcffbcebefffdefcfeff166a2dff1a7f37ff3c914eff57a465ff71b67cff8ac993ffa3dcaaffbdefc3ffe1fee4ff835808ff9a6700ffaa7a2effba8d4bffcaa065ffdbb47effebc897fffcdcb1fffef3e5ff0b59b8ff0969daff317ee8ff4d92f5ff6ea7f9ff91bbf9ffafcffcffd0e2fdfff0f6feffb7031fffcf222effdf4546ffee615dfffd7a74fffe9c95fffdbbb5ffffd6d3fffef2f0ffa04208ffbc4c00ffcc622effdb784affea8e64fff9a37dfffebea2ffffd8c8fffef2edff", + "base": "cf222effcf222effcf222effcf222effcf222effcf222eff00000000000000000969dafff6f8faff0000000000000000000000000000000000000000000000000000000000000000fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff6f8fafff0f3f6ffa0a7adffd0d7deffdafbe1fff6f8faffffebe9ff1a7f37ffcf222effdafbe1ffffebe9ff57606aff1a7f37ff57606aff0969daffcf222eff57606affbf3989ff24292fff9a6700ff0969daffd0d7deff0969daff1b7c83ff0969daff1b7c83ff1b7c83ff0969daffbc4c00ff24292fff0969daff57606aff8250dfffcf222eff1b7c83ffcf222eff24292fff0969daffbc4c00ffbc4c00ffffffffff57606affffffffffffffffffffffffffffffffff24292fff57606affffffffff24292fff24292fff0969daff57606aff57606aff57606aff24292fff57606aff57606aff24292fff57606affcf222effcf222effbc4c00ffbc4c00ff1a7f37ff1a7f37ff9a6700ff9a6700ff24292fff57606aff0969daff0969daff0969daff0969daff57606aff" + }, + "github/dark": { + "modes": ["light","dark"], + "hues": ["gray","red","orange","yellow","green","cyan","blue","purple","accent","interactive","neutral"], + "hue": "eaf1f8ffc9d1d9ffa9b2bbff8b949eff4d545cff161b22ff010409ff0d1117ff1f2126fffe7c71fff85149ffd9413bffbb312dff9d211fff811012ff610b0cff440405ff290202ffefb033ffd29922ffb6820dff976e1aff7d5806ff624508ff483205ff302001ff1a0f00ffffd067ffe3b341ffc4982effa57e19ff85661aff694e03ff4d3801ff312302ff191000ff4fd360ff3fb950ff2fa040ff1e8731ff0a7022ff0c571bff074112ff022b08ff011703ff4ce1ecff39c5cfff25a9b2ff0a8f97ff14737aff115a5fff0a4145ff022b2eff021517ff8abffeff58a6ffff478edfff3777bfff2660a0ff164b83ff053666ff012347ff001129ffcdb1fbffbc8cffffa276deff8961beff704c9fff593981ff422665ff2d1449ff19032fff4ce1ecff39c5cfff25a9b2ff0a8f97ff14737aff115a5fff0a4145ff022b2eff021517ff8abffeff58a6ffff478edfff3777bfff2660a0ff164b83ff053666ff012347ff001129ffeaf1f8ffc9d1d9ffa9b2bbff8b949eff4d545cff161b22ff010409ff0d1117ff1f2126ff", + "categorical": "cdb1fbffbc8cffffa276deff8961beff704c9fff593981ff422665ff2d1449ff19032fff4ce1ecff39c5cfff25a9b2ff0a8f97ff14737aff115a5fff0a4145ff022b2eff021517ff4fd360ff3fb950ff2fa040ff1e8731ff0a7022ff0c571bff074112ff022b08ff011703ffffd067ffe3b341ffc4982effa57e19ff85661aff694e03ff4d3801ff312302ff191000ff8abffeff58a6ffff478edfff3777bfff2660a0ff164b83ff053666ff012347ff001129fffe7c71fff85149ffd9413bffbb312dff9d211fff811012ff610b0cff440405ff290202ffefb033ffd29922ffb6820dff976e1aff7d5806ff624508ff483205ff302001ff1a0f00ff", + "base": "f85149fff85149fff85149fff85149fff85149fff85149ff000000000000000058a6ffff010409ff00000000000000000000000000000000000000000000000000000000000000000d1117ff0d1117ff0d1117ff0d1117ff0d1117ff0d1117ff0d1117ff0d1117ff0d1117ff0d1117ff0d1117ff010409ff161b22ff4d545cff30363dff033a16ff010409ff67060cff3fb950fff85149ff033a16ff67060cff95999eff3fb950ff8b949eff58a6fffff85149ff8b949effff7b72ffc9d1d9ffe3b341ff58a6ffff30363dff58a6ffff39c5cfff58a6ffff39c5cfff39c5cfff58a6ffffd29922ffc9d1d9ff58a6ffff8b949effbc8cffffff7b72ff58a6ffffff7b72ffc9d1d9ff39c5cfffd29922ffd29922ff0d1117ff8b949eff0d1117ff0d1117ff0d1117ff0d1117ffc9d1d9ff8b949eff0d1117ffc9d1d9ffc9d1d9ff58a6ffff8b949eff8b949eff8b949effc9d1d9ff8b949eff8b949effc9d1d9ff8b949efff85149fff85149ffd29922ffd29922ff3fb950ff3fb950ffe3b341ffe3b341ffc9d1d9ff8b949eff58a6ffff58a6ffff58a6ffff58a6ffff8b949eff" + }, + "gruvbox/light": { + "modes": ["light","dark"], + "hues": ["gray","red","orange","yellow","green","cyan","purple","accent","interactive","neutral"], + "hue": "1f1f1fff3c3836ff5b534dff7c6f64ffa99882ffd5c4a1ffebdbb2fffbf1c7ffffffffff760a09ff9d0006ffb3332affc85246ffdd6e61fff18a7dfffaada2fffecfc8fffef2f0ff912f03ffaf3a03ffc1542dffd26c49ffe48463fff59b7dfffbb8a2fffed5c8fffff2eeff666210ff79740eff8a8633ff9c984fffaeab68ffc0be81ffd3d19affe6e5b3fff9f8cdff2b6a45ff427b58ff588d6bff6e9f7fff84b194ff9bc4a8ffb2d7beffc9ead3ffe0fee9ff12505dff076678ff327a8bff4f8f9fff6aa4b3ff85bac7ffa0d0dcffbce6f1ffe6f9ffff7c275eff8f3f71ffa25684ffb56d98ffc884acffdb9cc0ffefb4d5fffecee9fffef1f8ff2b6a45ff427b58ff588d6bff6e9f7fff84b194ff9bc4a8ffb2d7beffc9ead3ffe0fee9ff12505dff076678ff327a8bff4f8f9fff6aa4b3ff85bac7ffa0d0dcffbce6f1ffe6f9ffff1f1f1fff3c3836ff5b534dff7c6f64ffa99882ffd5c4a1ffebdbb2fffbf1c7ffffffffff", + "categorical": "7c275eff8f3f71ffa25684ffb56d98ffc884acffdb9cc0ffefb4d5fffecee9fffef1f8ff2b6a45ff427b58ff588d6bff6e9f7fff84b194ff9bc4a8ffb2d7beffc9ead3ffe0fee9ff666210ff79740eff8a8633ff9c984fffaeab68ffc0be81ffd3d19affe6e5b3fff9f8cdff912f03ffaf3a03ffc1542dffd26c49ffe48463fff59b7dfffbb8a2fffed5c8fffff2eeff12505dff076678ff327a8bff4f8f9fff6aa4b3ff85bac7ffa0d0dcffbce6f1ffe6f9ffff760a09ff9d0006ffb3332affc85246ffdd6e61fff18a7dfffaada2fffecfc8fffef2f0ff", + "base": "9d0006ff9d0006ff9d0006ff9d0006ff9d0006ff9d0006ff0000000000000000076678ffebdbb2ff0000000000000000000000000000000000000000000000000000000000000000fbf1c7fffbf1c7fffbf1c7fffbf1c7fffbf1c7fffbf1c7fffbf1c7fffbf1c7fffbf1c7fffbf1c7fffbf1c7ffebdbb2ffd5c4a1ffa99882ffbdae93ffdcd8a4ffebdbb2ffe2c7c3ff79740eff9d0006ffcec99effd3bdb9ff564f43ff79740eff7c6f64ff427b58ff9d0006ff7c6f64ffb57614ff3c3836ff8f3f71ff076678ff7c6f64ff427b58ff79740eff427b58ff79740eff427b58ff076678ffaf3a03ff3c3836ff3c3836ff7c6f64ff79740eff9d0006ff8f3f71ffaf3a03ff3c3836ffb57614ff427b58ff076678fffbf1c7ff7c6f64fffbf1c7fffbf1c7fffbf1c7fffbf1c7ff3c3836ff7c6f64fffbf1c7ff3c3836ff3c3836ff076678ff7c6f64ff7c6f64ff7c6f64ff3c3836ff7c6f64ff7c6f64ff3c3836ff7c6f64ff9d0006ff9d0006ffb57614ffb57614ff79740eff79740effaf3a03ffaf3a03ff3c3836ff7c6f64ff076678ff076678ff076678ff076678ff7c6f64ff" + }, + "gruvbox/dark": { + "modes": ["light","dark"], + "hues": ["gray","red","orange","yellow","green","accent","interactive","neutral"], + "hue": "ffffffffebdbb2ffbfad92ff928374ff71655cff504945ff3c3836ff282828ff181818fff87e6bfffb4934ffdc3927ffbd2919ffa0190bff7e160bff5f1007ff430703ff2a0100fffcab7afffe8019ffd67026ffb75c14ff944b16ff773803ff582802ff3a1903ff200b01ffd3d739ffb8bb26ff9ea00eff83861bff6b6c03ff535406ff3c3d03ff262703ff121301ff97bdaeff83a598ff6f8e82ff5c786dff496259ff384d45ff273932ff162621ff081510ff97bdaeff83a598ff6f8e82ff5c786dff496259ff384d45ff273932ff162621ff081510ff97bdaeff83a598ff6f8e82ff5c786dff496259ff384d45ff273932ff162621ff081510ffffffffffebdbb2ffbfad92ff928374ff71655cff504945ff3c3836ff282828ff181818ff", + "categorical": "f87e6bfffb4934ffdc3927ffbd2919ffa0190bff7e160bff5f1007ff430703ff2a0100ff97bdaeff83a598ff6f8e82ff5c786dff496259ff384d45ff273932ff162621ff081510ffd3d739ffb8bb26ff9ea00eff83861bff6b6c03ff535406ff3c3d03ff262703ff121301fffcab7afffe8019ffd67026ffb75c14ff944b16ff773803ff582802ff3a1903ff200b01ff", + "base": "fb4934fffb4934fffb4934fffb4934fffb4934fffb4934ff000000000000000083a598ff3c3836ff0000000000000000000000000000000000000000000000000000000000000000282828ff282828ff282828ff282828ff282828ff282828ff282828ff282828ff282828ff282828ff282828ff3c3836ff504945ff71655cff665c54ff32302fff3c3836ff322929ffb8bb26fffb4934ff2a2827ff2a2222ffa8a29eff98971aff928374ff689d6affcc241dff928374fffabd2fffebdbb2ffd3869bff83a598ff928374ff8ec07cffb8bb26ff8ec07cffb8bb26ff8ec07cff83a598fffe8019ffebdbb2ffebdbb2ff928374ffb8bb26fffb4934ffd3869bfffe8019ffebdbb2fffabd2fff8ec07cff83a598ff282828ff928374ff282828ff282828ff282828ff282828ffebdbb2ff928374ff282828ffebdbb2ffebdbb2ff83a598ff928374ff928374ff928374ffebdbb2ff928374ff928374ffebdbb2ff928374fffb4934fffb4934fffabd2ffffabd2fffb8bb26ffb8bb26fffe8019fffe8019ffebdbb2ff928374ff83a598ff83a598ff83a598ff83a598ff928374ff" + }, + "kanagawa/light": { + "modes": ["light","dark"], + "hues": ["gray","red","orange","green","cyan","purple","accent","interactive","neutral"], + "hue": "321f18ff54433aff786a60ff9e9389ffc0b7adffe3dcd2ffeae4d7fff2e9defff9eee6ffc86f8dffd27e99ffdc8da5ffe69bb2fff0aabffff9b9ccfffcccd9fffedee7fffff1f5ffd09b44ffd7a657ffdeb169ffe6bb7affedc68afff5d19bfffcdcabffffe7c5fffef4e3ff66865aff76946aff86a27bff96b18cffa6bf9dffb7ceaeffc8ddc0ffd9ecd2ffebfbe4ff143a52ff2d4f67ff45657cff5e7c92ff7894a9ff92acc0ffadc5d7ffc9deefffedf7ffff8770acff957fb8ffa38ec4ffb19ed0ffbfaeddffcebee9ffdccef5ffeae0fdfff7f3ffffc86f8dffd27e99ffdc8da5ffe69bb2fff0aabffff9b9ccfffcccd9fffedee7fffff1f5ff143a52ff2d4f67ff45657cff5e7c92ff7894a9ff92acc0ffadc5d7ffc9deefffedf7ffff321f18ff54433aff786a60ff9e9389ffc0b7adffe3dcd2ffeae4d7fff2e9defff9eee6ff", + "categorical": "8770acff957fb8ffa38ec4ffb19ed0ffbfaeddffcebee9ffdccef5ffeae0fdfff7f3ffffc86f8dffd27e99ffdc8da5ffe69bb2fff0aabffff9b9ccfffcccd9fffedee7fffff1f5ff66865aff76946aff86a27bff96b18cffa6bf9dffb7ceaeffc8ddc0ffd9ecd2ffebfbe4ffd09b44ffd7a657ffdeb169ffe6bb7affedc68afff5d19bfffcdcabffffe7c5fffef4e3ff143a52ff2d4f67ff45657cff5e7c92ff7894a9ff92acc0ffadc5d7ffc9deefffedf7ffff", + "base": "e82424ffe82424ffe82424ffe82424ffe82424ffe82424ff00000000000000002d4f67ffeae4d7ff0000000000000000000000000000000000000000000000000000000000000000f2e9defff2e9defff2e9defff2e9defff2e9defff2e9defff2e9defff2e9defff2e9defff2e9defff2e9deffeae4d7ffe3dcd2ffc0b7adffd4cbbfffeaf3e4ffeae4d7fffbe6e6ff89af5bffd61f1fffdde8d6fff2dadaff65615cff98bb6cff9e9389ff2d4f67ffe82424ff9e9389ff98bb6cff54433affc38d9dff957fb8ff9e9389ff2d4f67ff76946aff2d4f67ff76946aff76946aff2d4f67ffd7a657ff54433affc38d9dff9e9389ff2d4f67ff957fb8ffd7a657ffd27e99ff54433aff98bb6cffc38d9dff54433afff2e9deff9e9389fff2e9defff2e9defff2e9defff2e9deff54433aff9e9389fff2e9deff54433aff54433aff2d4f67ff9e9389ff9e9389ff9e9389ff54433aff9e9389ff9e9389ff54433aff9e9389ffe82424ffe82424ff76946aff76946aff98bb6cff98bb6cffd7a657ffd7a657ff54433aff9e9389ff2d4f67ff2d4f67ff2d4f67ff2d4f67ff9e9389ff" + }, + "kanagawa/dark": { + "modes": ["light","dark"], + "hues": ["gray","red","orange","green","blue","purple","accent","interactive","neutral"], + "hue": "ffffffffdcd7baffa5a391ff727169ff5e4f50ff363646ff2a2a37ff1f1f28ff14151affee92afffd27e99ffb66b83ff9c586eff82465aff683446ff502333ff391421ff230511fff5bf69ffd7a657ffba8d45ff9d7634ff825e22ff674810ff4c3409ff322102ff1a0f00ff88a97bff76946aff65805aff546c4aff44593bff34472cff25351fff172511ff0a1506ff92b3f5ff7e9cd8ff6b86bcff5870a1ff465b86ff35476cff243454ff15213cff071026ffaa92d0ff957fb8ff816da0ff6d5b89ff5a4a73ff47395dff362948ff251a34ff150c21ffee92afffd27e99ffb66b83ff9c586eff82465aff683446ff502333ff391421ff230511ff92b3f5ff7e9cd8ff6b86bcff5870a1ff465b86ff35476cff243454ff15213cff071026ffffffffffdcd7baffa5a391ff727169ff5e4f50ff363646ff2a2a37ff1f1f28ff14151aff", + "categorical": "aa92d0ff957fb8ff816da0ff6d5b89ff5a4a73ff47395dff362948ff251a34ff150c21ffee92afffd27e99ffb66b83ff9c586eff82465aff683446ff502333ff391421ff230511ff88a97bff76946aff65805aff546c4aff44593bff34472cff25351fff172511ff0a1506fff5bf69ffd7a657ffba8d45ff9d7634ff825e22ff674810ff4c3409ff322102ff1a0f00ff92b3f5ff7e9cd8ff6b86bcff5870a1ff465b86ff35476cff243454ff15213cff071026ff", + "base": "e82424ffe82424ffe82424ffe82424ffe82424ffe82424ff00000000000000007e9cd8ff2a2a37ff00000000000000000000000000000000000000000000000000000000000000001f1f28ff1f1f28ff1f1f28ff1f1f28ff1f1f28ff1f1f28ff1f1f28ff1f1f28ff1f1f28ff1f1f28ff1f1f28ff2a2a37ff363646ff5e4f50ff54546dff252e25ff2a2a37ff362020ffa9d977fff24a4aff202820ff2d1c1cff9090a0ff98bb6cff727169ff2d4f67ffe82424ff727169ff98bb6cffdcd7baffc38d9dff957fb8ff727169ff7e9cd8ff76946aff7e9cd8ff76946aff76946aff7e9cd8ffd7a657ffdcd7baffc38d9dff727169ff7e9cd8ff957fb8ffd7a657ffd27e99ffdcd7baff98bb6cffc38d9dffdcd7baff1f1f28ff727169ff1f1f28ff1f1f28ff1f1f28ff1f1f28ffdcd7baff727169ff1f1f28ffdcd7baffdcd7baff7e9cd8ff727169ff727169ff727169ffdcd7baff727169ff727169ffdcd7baff727169ffe82424ffe82424ff76946aff76946aff98bb6cff98bb6cffd7a657ffd7a657ffdcd7baff727169ff7e9cd8ff7e9cd8ff7e9cd8ff7e9cd8ff727169ff" + }, + "material/light": { + "modes": ["light","dark"], + "hues": ["gray","red","orange","green","cyan","blue","purple","accent","interactive","neutral"], + "hue": "010508ff263238ff586870ff90a4aeffbec4cdffe7e7e8fff5f5f5fffafafaffffffffffd8091affe53935fff2554cfffe6d62fffb8f84fffcaaa0ffffc2baffffdad5fffff2f0fff6ad0bffffb300fffdbe51fffcc874fffcd18efffddaa4fffde3bcfffeebcffffef4e4ff85ae46ff91b859ff9dc26bffa9cc7cffb6d68dffc2e09dffcfeaaeffdcf4beffe9fecfff0ca1aaff39adb5ff54b9c0ff6ac4cbff7fd0d6ff94dce1ffa7e8edffbbf4f8ffdcfcffff5072abff6182b8ff7392c5ff85a2d2ff97b3dfffaac3edffbdd4faffd5e5fefff0f5feff6f2df4ff7c4dffff896dfdff9986feffa99ff8ffbbb4feffcecafbffe1dffcfff4f4feff0ca1aaff39adb5ff54b9c0ff6ac4cbff7fd0d6ff94dce1ffa7e8edffbbf4f8ffdcfcffff5072abff6182b8ff7392c5ff85a2d2ff97b3dfffaac3edffbdd4faffd5e5fefff0f5feff010508ff263238ff586870ff90a4aeffbec4cdffe7e7e8fff5f5f5fffafafaffffffffff", + "categorical": "6f2df4ff7c4dffff896dfdff9986feffa99ff8ffbbb4feffcecafbffe1dffcfff4f4feff0ca1aaff39adb5ff54b9c0ff6ac4cbff7fd0d6ff94dce1ffa7e8edffbbf4f8ffdcfcffff85ae46ff91b859ff9dc26bffa9cc7cffb6d68dffc2e09dffcfeaaeffdcf4beffe9fecffff6ad0bffffb300fffdbe51fffcc874fffcd18efffddaa4fffde3bcfffeebcffffef4e4ff5072abff6182b8ff7392c5ff85a2d2ff97b3dfffaac3edffbdd4faffd5e5fefff0f5feffd8091affe53935fff2554cfffe6d62fffb8f84fffcaaa0ffffc2baffffdad5fffff2f0ff", + "base": "e53935ffe53935ffe53935ffe53935ffe53935ffe53935ff00000000000000006182b8fff5f5f5ff0000000000000000000000000000000000000000000000000000000000000000fafafafffafafafffafafafffafafafffafafafffafafafffafafafffafafafffafafafffafafafffafafafff5f5f5ffe7e7e8ffbec4cdffe0e0e0ffe8f5e9fff5f5f5ffffebeeff91b859ffe53935ffe8f5e9ffffebeeff6a6e70ff91b859ff90a4aeff39adb5ffe53935ff90a4aeff91b859ff263238ffffb300ff6182b8ffe0e0e0ff39adb5ff7c4dffff39adb5ff7c4dffff39adb5ff6182b8fff4511eff263238ff6182b8ff90a4aeff6182b8ff7c4dfffff4511eff39adb5ff263238ff91b859ffffb300ff263238fffafafaff90a4aefffafafafffafafafffafafafffafafaff263238ff90a4aefffafafaff263238ff263238ff6182b8ff90a4aeff90a4aeff90a4aeff263238ff90a4aeff90a4aeff263238ff90a4aeffe53935ffe53935fff4511efff4511eff91b859ff91b859ffffb300ffffb300ff263238ff90a4aeff6182b8ff6182b8ff6182b8ff6182b8ff90a4aeff" + }, + "material/dark": { + "modes": ["light","dark"], + "hues": ["gray","red","orange","green","cyan","blue","purple","accent","interactive","neutral"], + "hue": "ffffffffeeffffff9db4b9ff546e7aff455a64ff37474fff1e272cff263238ff2e3d44fffa9597fff07178ffd15e65ffb34c53ff963a41ff792930ff5e1820ff440811ff290105fffef3e0ffffcb6bffdbac54ffb88e3eff977228ff765610ff553d06ff362504ff191001fff4ffe6ffc3e88dffa5c674ff88a55bff6c8543ff51672dff374a16ff202f01ff0c1500ffdcf4feff89ddffff70bddbff589eb9ff417f98ff2b6278ff144759ff052d3aff00141dffabc6fcff82aaffff6d91deff5979beff46629fff334b80ff223664ff112248ff040f2effdeaffdffc792eaffac7ccbff9166adff775190ff5e3c74ff462959ff30173fff1b0627ffdcf4feff89ddffff70bddbff589eb9ff417f98ff2b6278ff144759ff052d3aff00141dffabc6fcff82aaffff6d91deff5979beff46629fff334b80ff223664ff112248ff040f2effffffffffeeffffff9db4b9ff546e7aff455a64ff37474fff1e272cff263238ff2e3d44ff", + "categorical": "deaffdffc792eaffac7ccbff9166adff775190ff5e3c74ff462959ff30173fff1b0627ffdcf4feff89ddffff70bddbff589eb9ff417f98ff2b6278ff144759ff052d3aff00141dfff4ffe6ffc3e88dffa5c674ff88a55bff6c8543ff51672dff374a16ff202f01ff0c1500fffef3e0ffffcb6bffdbac54ffb88e3eff977228ff765610ff553d06ff362504ff191001ffabc6fcff82aaffff6d91deff5979beff46629fff334b80ff223664ff112248ff040f2efffa9597fff07178ffd15e65ffb34c53ff963a41ff792930ff5e1820ff440811ff290105ff", + "base": "f07178fff07178fff07178fff07178fff07178fff07178ff000000000000000082aaffff1e272cff0000000000000000000000000000000000000000000000000000000000000000263238ff263238ff263238ff263238ff263238ff263238ff263238ff263238ff263238ff263238ff263238ff1e272cff37474fff455a64ff37474fff2e3c2bff1e272cff3c2b2bffc3e88dfff07178ff2e3c2bff3c2b2bff9aa2a6ffc3e88dff546e7aff89ddfffff07178ff546e7affc3e88dffeeffffffffcb6bff82aaffff37474fff89ddffffc792eaff89ddffffc792eaff89ddffff82aaffffffcb6bffeeffffff82aaffff546e7aff82aaffffc792eaffffcb6bff89ddffffeeffffffc3e88dffffcb6bffeeffffff263238ff546e7aff263238ff263238ff263238ff263238ffeeffffff546e7aff263238ffeeffffffeeffffff82aaffff546e7aff546e7aff546e7affeeffffff546e7aff546e7affeeffffff546e7afff07178fff07178ffffcb6bffffcb6bffc3e88dffc3e88dffffcb6bffffcb6bffeeffffff546e7aff82aaffff82aaffff82aaffff82aaffff546e7aff" + }, + "matrix/light": { + "modes": ["light","dark"], + "hues": ["gray","red","yellow","green","blue","purple","accent","interactive","neutral"], + "hue": "010c02ff203022ff48584aff748476ffa6b1a5ffdae1d7ffe4ebe1ffeef3eafff8fbf3fff52c37ffff4b4bfff8746dfffa8c83fffda199fffcb7b0fffecac5fffedfdbfffff2f0ffe5ff41ffe6ff57ffe8fe7bffe9fe88ffeaff86ffebff93ffedff9fffeeffaafff0feb5ff10b543ff1cc24bff44cc5fff5fd672ff76e185ff8ceb97ffa0f5a9ffb4ffbbffe1ffe2ff29a8f0ff30b3ffff5dbdfdff7bc7fcff93d1fdffaedafbffc0e4ffffd6eeffffedf7feffbd5ef8ffc770ffffcd87fdffd49afdffdbadfeffe1bffcffe9d0fdfff1e1fefff9f2feffbd5ef8ffc770ffffcd87fdffd49afdffdbadfeffe1bffcffe9d0fdfff1e1fefff9f2feff10b543ff1cc24bff44cc5fff5fd672ff76e185ff8ceb97ffa0f5a9ffb4ffbbffe1ffe2ff010c02ff203022ff48584aff748476ffa6b1a5ffdae1d7ffe4ebe1ffeef3eafff8fbf3ff", + "categorical": "10b543ff1cc24bff44cc5fff5fd672ff76e185ff8ceb97ffa0f5a9ffb4ffbbffe1ffe2ffbd5ef8ffc770ffffcd87fdffd49afdffdbadfeffe1bffcffe9d0fdfff1e1fefff9f2feffe5ff41ffe6ff57ffe8fe7bffe9fe88ffeaff86ffebff93ffedff9fffeeffaafff0feb5fff52c37ffff4b4bfff8746dfffa8c83fffda199fffcb7b0fffecac5fffedfdbfffff2f0ff29a8f0ff30b3ffff5dbdfdff7bc7fcff93d1fdffaedafbffc0e4ffffd6eeffffedf7feff", + "base": "ff4b4bffff4b4bffff4b4bffff4b4bffff4b4bffff4b4bff00000000000000001cc24bffe4ebe1ff0000000000000000000000000000000000000000000000000000000000000000eef3eaffeef3eaffeef3eaffeef3eaffeef3eaffeef3eaffeef3eaffeef3eaffeef3eaffeef3eaffeef3eaffe4ebe1ffdae1d7ffa6b1a5ff748476ffe0efdeffe4ebe1fff9e5e5ff5dac7effd53a3affd6e7d2fff2d2d2ff556156ff1cc24bff748476ff30b3ffffff4b4bff748476ff1cc24bff203022ffffa83dff24f6d9ff748476ff30b3ffff24f6d9ff30b3ffff24f6d9ff24f6d9ff30b3ffffe6ff57ff203022ff1cc24bff748476ff30b3ffffc770ffffffa83dff24f6d9ff203022ff1cc24bffe6ff57ff203022ffeef3eaff748476ffeef3eaffeef3eaffeef3eaffeef3eaff203022ff748476ffeef3eaff203022ff203022ff1cc24bff748476ff748476ff748476ff203022ff748476ff748476ff203022ff748476ffff4b4bffff4b4bff30b3ffff30b3ffff1cc24bff1cc24bffe6ff57ffe6ff57ff203022ff748476ff1cc24bff1cc24bff1cc24bff1cc24bff748476ff" + }, + "matrix/dark": { + "modes": ["light","dark"], + "hues": ["gray","red","yellow","green","cyan","blue","purple","accent","interactive","neutral"], + "hue": "fcfcfcff62ff94ff80d195ff8ca391ff4c5b4cff141c12ff0e130dff0a0e0aff070907fffd8179ffff4b4bffdf3b3cffc02b2effa21a20ff850513ff64040cff460105ff2a0102ffffffffffe6ff57ffc3d93cffa1b41fff81901eff626e16ff444e08ff292f03ff101400ffe6ffe8ff2eff6aff3bd860ff1eb549ff1f913cff18702dff0b501dff063210ff021705ffd9fcffff00efffff2bcbd7ff03a9b5ff138891ff0f6870ff054b50ff042f32ff011517ff86cafaff30b3ffff1c99deff0181beff0f6999ff0e5178ff083b59ff02273dff001322ffd399fdffc770ffffac5ddfff934bc0ff7a39a1ff612784ff4a1668ff34044dff1d012dffd399fdffc770ffffac5ddfff934bc0ff7a39a1ff612784ff4a1668ff34044dff1d012dffe6ffe8ff2eff6aff3bd860ff1eb549ff1f913cff18702dff0b501dff063210ff021705fffcfcfcff62ff94ff80d195ff8ca391ff4c5b4cff141c12ff0e130dff0a0e0aff070907ff", + "categorical": "d9fcffff00efffff2bcbd7ff03a9b5ff138891ff0f6870ff054b50ff042f32ff011517ffd399fdffc770ffffac5ddfff934bc0ff7a39a1ff612784ff4a1668ff34044dff1d012dffe6ffe8ff2eff6aff3bd860ff1eb549ff1f913cff18702dff0b501dff063210ff021705ffffffffffe6ff57ffc3d93cffa1b41fff81901eff626e16ff444e08ff292f03ff101400fffd8179ffff4b4bffdf3b3cffc02b2effa21a20ff850513ff64040cff460105ff2a0102ff86cafaff30b3ffff1c99deff0181beff0f6999ff0e5178ff083b59ff02273dff001322ff", + "base": "ff4b4bffff4b4bffff4b4bffff4b4bffff4b4bffff4b4bff00000000000000002eff6aff0e130dff00000000000000000000000000000000000000000000000000000000000000000a0e0aff0a0e0aff0a0e0aff0a0e0aff0a0e0aff0a0e0aff0a0e0aff0a0e0aff0a0e0aff0a0e0aff0a0e0aff0e130dff141c12ff4c5b4cff1e2a1bff132616ff0e130dff261212ff77ffafffff7171ff0f1b11ff1b1414ff8ca391ff1cc24bff8ca391ff30b3ffffff4b4bff8ca391ff1cc24bff62ff94ffffa83dff00efffff8ca391ff30b3ffff24f6d9ff30b3ffff24f6d9ff24f6d9ff30b3ffffe6ff57ff62ff94ff2eff6aff8ca391ff30b3ffffc770ffffffa83dff24f6d9ff62ff94ff1cc24bffe6ff57ff62ff94ff0a0e0aff8ca391ff0a0e0aff0a0e0aff0a0e0aff0a0e0aff62ff94ff8ca391ff0a0e0aff62ff94ff62ff94ff2eff6aff8ca391ff8ca391ff8ca391ff62ff94ff8ca391ff8ca391ff62ff94ff8ca391ffff4b4bffff4b4bff30b3ffff30b3ffff62ff94ff62ff94ffe6ff57ffe6ff57ff62ff94ff8ca391ff2eff6aff2eff6aff2eff6aff2eff6aff8ca391ff" + }, + "mercury/light": { + "modes": ["light","dark"], + "hues": ["gray","red","orange","green","cyan","blue","accent","interactive","neutral"], + "hue": "1c1c2aff363644ff525260ff70707dffafb0b9fff4f5f9fffbfcfdffffffffffffffffff91104dffb0175fffc33c72ffd55987ffe7739bfff98db0ffffaec7fffdd1ddfffff1f5ff873500ffa44200ffb65a2bffc87148ffda8862ffec9f7dfffdb797fffcd6c5fffef2edff115636ff036e43ff318259ff4f966fff6aab86ff85c09dffa0d5b5ffbcebceffddffeaff096c7eff007f95ff3490a5ff52a2b5ff6cb4c6ff86c6d7ff9fd9e8ffb8ebf9ffe6f9feff4250dfff5266ebff637bf7ff7991f8ff8fa6fcffa8bafaffc0cefdffd9e1fefff2f5ffff4250dfff5266ebff637bf7ff7991f8ff8fa6fcffa8bafaffc0cefdffd9e1fefff2f5ffff4250dfff5266ebff637bf7ff7991f8ff8fa6fcffa8bafaffc0cefdffd9e1fefff2f5ffff1c1c2aff363644ff525260ff70707dffafb0b9fff4f5f9fffbfcfdffffffffffffffffff", + "categorical": "4250dfff5266ebff637bf7ff7991f8ff8fa6fcffa8bafaffc0cefdffd9e1fefff2f5ffff115636ff036e43ff318259ff4f966fff6aab86ff85c09dffa0d5b5ffbcebceffddffeaff873500ffa44200ffb65a2bffc87148ffda8862ffec9f7dfffdb797fffcd6c5fffef2edff91104dffb0175fffc33c72ffd55987ffe7739bfff98db0ffffaec7fffdd1ddfffff1f5ff096c7eff007f95ff3490a5ff52a2b5ff6cb4c6ff86c6d7ff9fd9e8ffb8ebf9ffe6f9feff", + "base": "b0175fffb0175fffb0175fffb0175fffb0175fffb0175fff00000000000000005266ebfffbfcfdff0000000000000000000000000000000000000000000000000000000000000000fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffbfcfdfff4f5f9ffafb0b9ff7073931a1885541afbfcfdffd032751a036e43ffb0175fff1885541ad032751a535461ff036e43ff70707dff70707dffb0175fff70707dff036e43ff363644ffa44200ff1e1e2aff7073931a465bd1ff5266ebff465bd1ff5266ebff5266ebff1e1e2aff1e1e2aff363644ff5266ebff70707dff5266ebff465bd1ffa44200ff465bd1ff363644ff036e43ff007f95ff007f95ffffffffff70707dffffffffffffffffffffffffffffffffff363644ff70707dffffffffff363644ff363644ff5266ebff70707dff70707dff70707dff363644ff70707dff70707dff363644ff70707dffb0175fffb0175fff007f95ff007f95ff036e43ff036e43ffa44200ffa44200ff363644ff70707dff5266ebff5266ebff5266ebff5266ebff70707dff" + }, + "mercury/dark": { + "modes": ["light","dark"], + "hues": ["gray","red","orange","green","cyan","blue","accent","interactive","neutral"], + "hue": "ffffffffdddde5ffbcbcc6ff9d9da8ff5f5f6cff272735ff10101aff171721ff1e1e28fffebfd1fffc92b4ffda7b9affb96480ff994e67ff7b3950ff5d2539ff411224ff270210fffdc4abfffc9b6fffda835bffb96b47ff9a5534ff7b3f22ff5d2a10ff411601ff220901ff8ce1b1ff77c599ff62a982ff4e8e6bff3b7455ff285b40ff16432cff042d1aff01170aff8cdaecff77becfff62a3b2ff4e8997ff3b6f7cff285762ff164049ff042a32ff01151affadbffaff8da4f5ff778cd5ff6375b6ff4e5e98ff3b497bff29345fff182045ff090e2cffadbffaff8da4f5ff778cd5ff6375b6ff4e5e98ff3b497bff29345fff182045ff090e2cffadbffaff8da4f5ff778cd5ff6375b6ff4e5e98ff3b497bff29345fff182045ff090e2cffffffffffdddde5ffbcbcc6ff9d9da8ff5f5f6cff272735ff10101aff171721ff1e1e28ff", + "categorical": "adbffaff8da4f5ff778cd5ff6375b6ff4e5e98ff3b497bff29345fff182045ff090e2cff8ce1b1ff77c599ff62a982ff4e8e6bff3b7455ff285b40ff16432cff042d1aff01170afffdc4abfffc9b6fffda835bffb96b47ff9a5534ff7b3f22ff5d2a10ff411601ff220901fffebfd1fffc92b4ffda7b9affb96480ff994e67ff7b3950ff5d2539ff411224ff270210ff8cdaecff77becfff62a3b2ff4e8997ff3b6f7cff285762ff164049ff042a32ff01151aff", + "base": "fc92b4fffc92b4fffc92b4fffc92b4fffc92b4fffc92b4ff00000000000000008da4f5ff10101aff0000000000000000000000000000000000000000000000000000000000000000171721ff171721ff171721ff171721ff171721ff171721ff171721ff171721ff171721ff171721ff171721ff10101aff272735ff5f5f6cffb4b7c81f77c599331e1e2afffc92b43377c599fffc92b4ff77c59933fc92b433c3c3ccff77c599ff9d9da8ff9d9da8fffc92b4ff9d9da8ff77c599ffdddde5fffc9b6fffffffffffb4b7c81f8da4f5ffa7b6f8ff8da4f5ffa7b6f8ff8da4f5fffffffffff4f5f9ffdddde5ff8da4f5ff9d9da8ff8da4f5ff8da4f5fffc9b6fff8da4f5ffdddde5ff77c599ff77becfff77becfff171721ff9d9da8ff171721ff171721ff171721ff171721ffdddde5ff9d9da8ff171721ffdddde5ffdddde5ff8da4f5ff9d9da8ff9d9da8ff9d9da8ffdddde5ff9d9da8ff9d9da8ffdddde5ff9d9da8fffc92b4fffc92b4ff77becfff77becfff77c599ff77c599fffc9b6ffffc9b6fffdddde5ff9d9da8ff8da4f5ff8da4f5ff8da4f5ff8da4f5ff9d9da8ff" + }, + "monokai/light": { + "modes": ["light","dark"], + "hues": ["gray","red","orange","green","cyan","purple","accent","interactive","neutral"], + "hue": "080908ff272822ff4c4b3fff75715effa9a79dffe0e0e0fff0f0f0fffafafaffffffffffe41365fff92672fffb5784fffe7796fffb95aafffbafbcfffec5cefffedce1fffff1f3fff18f1cfffd971ffffca653fffcb473fffdc18dffffcea3ffffdabbfffee7d3fffef3eaffa2db31ffa6e22effaee74cffb7ec62ffc0f075ffc8f587ffd1fa98ffd9fea8ffe9feceff53d3ebff66d9efff77dff3ff87e4f7ff95eafbffa4efffffbdf2feffd0f6feffe4fafeffa472f8ffae81ffffb794fdffc1a5fdffcbb5feffd5c5fcffe0d5fdffebe4fefff6f3feffa2db31ffa6e22effaee74cffb7ec62ffc0f075ffc8f587ffd1fa98ffd9fea8ffe9feceff53d3ebff66d9efff77dff3ff87e4f7ff95eafbffa4efffffbdf2feffd0f6feffe4fafeff080908ff272822ff4c4b3fff75715effa9a79dffe0e0e0fff0f0f0fffafafaffffffffff", + "categorical": "a472f8ffae81ffffb794fdffc1a5fdffcbb5feffd5c5fcffe0d5fdffebe4fefff6f3feffa2db31ffa6e22effaee74cffb7ec62ffc0f075ffc8f587ffd1fa98ffd9fea8ffe9fecefff18f1cfffd971ffffca653fffcb473fffdc18dffffcea3ffffdabbfffee7d3fffef3eaff53d3ebff66d9efff77dff3ff87e4f7ff95eafbffa4efffffbdf2feffd0f6feffe4fafeffe41365fff92672fffb5784fffe7796fffb95aafffbafbcfffec5cefffedce1fffff1f3ff", + "base": "f92672fff92672fff92672fff92672fff92672fff92672ff000000000000000066d9effff0f0f0ff0000000000000000000000000000000000000000000000000000000000000000fafafafffafafafffafafafffafafafffafafafffafafafffafafafffafafafffafafafffafafafffafafafff0f0f0ffe0e0e0ffa9a79dffd0d0d0ffe0ffe0fff0f0f0ffffe0e0ffa6e22efff92672ffe0ffe0ffffe0e0ff686868ffa6e22eff75715eff75715efff92672ff75715effa6e22eff272822fffd971ffff92672ff75715eff66d9efffae81ffff66d9efffae81ffffae81ffff66d9effffd971fff272822ff66d9efff75715effa6e22efff92672ffae81fffff92672ff272822fffd971fff66d9efff272822fffafafaff75715efffafafafffafafafffafafafffafafaff272822ff75715efffafafaff272822ff272822ff66d9efff75715eff75715eff75715eff272822ff75715eff75715eff272822ff75715efff92672fff92672fffd971ffffd971fffa6e22effa6e22efffd971ffffd971fff272822ff75715eff66d9efff66d9efff66d9efff66d9efff75715eff" + }, + "monokai/dark": { + "modes": ["light","dark"], + "hues": ["gray","red","orange","yellow","green","cyan","purple","accent","interactive","neutral"], + "hue": "fffffffff8f8f2ffb4b2a5ff75715eff595647ff3e3d32ff1e1f1cff272822ff313128fffd658bfff92672ffda1461ffb51f53ff990e42ff790f34ff5b0b26ff410519ff29000cfffcc08cfffd971fffdb7f02ffb66c17ff925818ff754203ff562f01ff381e03ff1e0d00fffffbceffe6db74ffc5ba5cffa49b46ff857c2fff675f18ff49440cff2e2a01ff151200ffccfe83ffa6e22eff8cc111ff75a11fff5f811eff466403ff33470cff1e2d01ff0c1501ffaff1ffff66d9efff50baceff3a9cadff247e8eff096270ff024751ff032d34ff021519ffc0a4fdffae81ffff966ddfff7f59c0ff6846a1ff533484ff3e2268ff2a114dff180233ffccfe83ffa6e22eff8cc111ff75a11fff5f811eff466403ff33470cff1e2d01ff0c1501ffaff1ffff66d9efff50baceff3a9cadff247e8eff096270ff024751ff032d34ff021519fffffffffff8f8f2ffb4b2a5ff75715eff595647ff3e3d32ff1e1f1cff272822ff313128ff", + "categorical": "c0a4fdffae81ffff966ddfff7f59c0ff6846a1ff533484ff3e2268ff2a114dff180233ffccfe83ffa6e22eff8cc111ff75a11fff5f811eff466403ff33470cff1e2d01ff0c1501fffffbceffe6db74ffc5ba5cffa49b46ff857c2fff675f18ff49440cff2e2a01ff151200ffaff1ffff66d9efff50baceff3a9cadff247e8eff096270ff024751ff032d34ff021519fffd658bfff92672ffda1461ffb51f53ff990e42ff790f34ff5b0b26ff410519ff29000cfffcc08cfffd971fffdb7f02ffb66c17ff925818ff754203ff562f01ff381e03ff1e0d00ff", + "base": "f92672fff92672fff92672fff92672fff92672fff92672ff000000000000000066d9efff1e1f1cff0000000000000000000000000000000000000000000000000000000000000000272822ff272822ff272822ff272822ff272822ff272822ff272822ff272822ff272822ff272822ff272822ff1e1f1cff3e3d32ff595647ff3e3d32ff1a3a1aff1e1f1cff3a1a1affa6e22efff92672ff1a3a1aff3a1a1aff9b9b95ffa6e22eff75715eff75715efff92672ff75715effa6e22efff8f8f2ffe6db74fff92672ff75715eff66d9efffae81ffff66d9efffae81ffffae81ffff66d9effffd971ffff8f8f2ff66d9efff75715effa6e22efff92672ffae81fffff92672fff8f8f2ffe6db74ff66d9effff8f8f2ff272822ff75715eff272822ff272822ff272822ff272822fff8f8f2ff75715eff272822fff8f8f2fff8f8f2ff66d9efff75715eff75715eff75715efff8f8f2ff75715eff75715efff8f8f2ff75715efff92672fff92672fffd971ffffd971fffa6e22effa6e22effe6db74ffe6db74fff8f8f2ff75715eff66d9efff66d9efff66d9efff66d9efff75715eff" + }, + "nightowl/dark": { + "modes": ["dark"], + "hues": ["gray","red","orange","yellow","green","blue","purple","accent","interactive","neutral"], + "hue": "ffffffffd6deebff9aacc1ff5f7e97ff345067ff0b253aff0b253aff011627ff000811fffc756effef5350ffd14342ffb43434ff982526ff7c1519ff62040cff450105ff290102fffee6c7ffecc48dffcba775ffaa8a5dff8b6f47ff6d5431ff503b1dff352408ff1a0f01ffedfec9ffc5e478ffa7c360ff8aa249ff6e8333ff53651dff3a4904ff232d03ff0e1401ff97fbe8ff7fdbcaff68bcacff519d90ff3b8074ff256459ff0f4940ff032e28ff011612ffabc6fcff82aaffff6d91deff5979beff46629fff334b80ff223664ff112248ff040f2effdeaffdffc792eaffac7ccbff9166adff775190ff5e3c74ff462959ff30173fff1b0627ffdeaffdffc792eaffac7ccbff9166adff775190ff5e3c74ff462959ff30173fff1b0627ffabc6fcff82aaffff6d91deff5979beff46629fff334b80ff223664ff112248ff040f2effffffffffd6deebff9aacc1ff5f7e97ff345067ff0b253aff0b253aff011627ff000811ff", + "categorical": "97fbe8ff7fdbcaff68bcacff519d90ff3b8074ff256459ff0f4940ff032e28ff011612ffdeaffdffc792eaffac7ccbff9166adff775190ff5e3c74ff462959ff30173fff1b0627ffedfec9ffc5e478ffa7c360ff8aa249ff6e8333ff53651dff3a4904ff232d03ff0e1401fffee6c7ffecc48dffcba775ffaa8a5dff8b6f47ff6d5431ff503b1dff352408ff1a0f01ffabc6fcff82aaffff6d91deff5979beff46629fff334b80ff223664ff112248ff040f2efffc756effef5350ffd14342ffb43434ff982526ff7c1519ff62040cff450105ff290102ff", + "base": "ef5350ffef5350ffef5350ffef5350ffef5350ffef5350ff000000000000000082aaffff0b253aff0000000000000000000000000000000000000000000000000000000000000000011627ff011627ff011627ff011627ff011627ff011627ff011627ff011627ff011627ff011627ff011627ff0b253aff0b253aff345067ff5f7e97ff0a2e1aff0b253aff2d1b1bffc5e478ffef5350ff0a2e1aff2d1b1bff7791a6ffc5e478ff5f7e97ff5f7e97ffef5350ff5f7e97ffc5e478ffd6deebffc792eaff82aaffff5f7e97ff7fdbcaff82aaffff7fdbcaff82aaffff7fdbcaff82aaffffecc48dffd6deebff82aaffff637777ff82aaffffc792eafff78c6cff7fdbcaffd6deebffecc48dffc5e478ffd6deebff011627ff5f7e97ff011627ff011627ff011627ff011627ffd6deebff5f7e97ff011627ffd6deebffd6deebff82aaffff5f7e97ff5f7e97ff5f7e97ffd6deebff5f7e97ff5f7e97ffd6deebff5f7e97ffef5350ffef5350ff82aaffff82aaffffc5e478ffc5e478ffecc48dffecc48dffd6deebff5f7e97ff82aaffff82aaffff82aaffff82aaffff5f7e97ff" + }, + "nord/light": { + "modes": ["light","dark"], + "hues": ["gray","red","green","cyan","blue","accent","interactive","neutral"], + "hue": "282d37ff2e3440ff343b49ff3b4252ff858c9affd8dee9ffe5e9f0ffeceff4fff3f5f8ffb14e59ffbf616affcd747bffda868cffe8999efff5acb0fffec1c4fffedadbfffef2f2ff99b580ffa3be8cffadc798ffb7cfa4ffc2d8b0ffcce0bcffd7e9c8ffe2f2d4ffecfbe1ff83b3b2ff8fbcbbff9bc5c4ffa7cecdffb3d6d6ffbfdfdfffcbe8e8ffd7f1f1ffe4fbfaff4c719eff5e81acff7091baff83a2c8ff95b2d6ffa9c3e4ffbcd4f3ffd2e5feffeff6feff83b3b2ff8fbcbbff9bc5c4ffa7cecdffb3d6d6ffbfdfdfffcbe8e8ffd7f1f1ffe4fbfaff4c719eff5e81acff7091baff83a2c8ff95b2d6ffa9c3e4ffbcd4f3ffd2e5feffeff6feff282d37ff2e3440ff343b49ff3b4252ff858c9affd8dee9ffe5e9f0ffeceff4fff3f5f8ff", + "categorical": "4c719eff5e81acff7091baff83a2c8ff95b2d6ffa9c3e4ffbcd4f3ffd2e5feffeff6feff83b3b2ff8fbcbbff9bc5c4ffa7cecdffb3d6d6ffbfdfdfffcbe8e8ffd7f1f1ffe4fbfaff99b580ffa3be8cffadc798ffb7cfa4ffc2d8b0ffcce0bcffd7e9c8ffe2f2d4ffecfbe1ffb14e59ffbf616affcd747bffda868cffe8999efff5acb0fffec1c4fffedadbfffef2f2ff", + "base": "bf616affbf616affbf616affbf616affbf616affbf616aff00000000000000005e81acffe5e9f0ff0000000000000000000000000000000000000000000000000000000000000000eceff4ffeceff4ffeceff4ffeceff4ffeceff4ffeceff4ffeceff4ffeceff4ffeceff4ffeceff4ffeceff4ffe5e9f0ffd8dee9ff858c9aff4c566affe5e9f0ffe5e9f0ffe5e9f0ffa3be8cffbf616affe5e9f0ffe5e9f0ff3b4252ffa3be8cff4c566aff4c566affbf616aff4c566affa3be8cff2e3440ffd08770ff5e81acff4c566aff81a1c1ff8fbcbbff81a1c1ff8fbcbbff8fbcbbff5e81acffebcb8bff2e3440ff434c5eff4c566aff88c0d0ff81a1c1ffb48eadff81a1c1ff2e3440ffa3be8cff8fbcbbff8fbcbbffeceff4ff3b4252ffeceff4ffeceff4ffeceff4ffeceff4ff2e3440ff3b4252ffeceff4ff2e3440ff2e3440ff5e81acff3b4252ff3b4252ff3b4252ff2e3440ff3b4252ff3b4252ff2e3440ff3b4252ffbf616affbf616aff5e81acff5e81acffa3be8cffa3be8cffd08770ffd08770ff2e3440ff3b4252ff5e81acff5e81acff5e81acff5e81acff3b4252ff" + }, + "nord/dark": { + "modes": ["light","dark"], + "hues": ["gray","red","green","cyan","blue","accent","interactive","neutral"], + "hue": "ffffffffeceff4ffbac1cdff8b95a7ff666f82ff434c5eff3b4252ff2e3440ff22262fffd7707affbf616affa7525aff90434bff79353dff63282fff4e1b21ff3a0e14ff260309ffbcdaa3ffa3be8cff8ba376ff738860ff5c6f4bff465737ff313f24ff1e2912ff0c1504ff9fdceeff88c0d0ff72a5b3ff5c8a97ff47707cff335761ff204048ff0e2931ff01151bff95b8dcff81a1c1ff6d8aa7ff5a748eff485f76ff364a5eff253648ff152432ff07131eff9fdceeff88c0d0ff72a5b3ff5c8a97ff47707cff335761ff204048ff0e2931ff01151bff9fdceeff88c0d0ff72a5b3ff5c8a97ff47707cff335761ff204048ff0e2931ff01151bffffffffffeceff4ffbac1cdff8b95a7ff666f82ff434c5eff3b4252ff2e3440ff22262fff", + "categorical": "95b8dcff81a1c1ff6d8aa7ff5a748eff485f76ff364a5eff253648ff152432ff07131eff9fdceeff88c0d0ff72a5b3ff5c8a97ff47707cff335761ff204048ff0e2931ff01151bffbcdaa3ffa3be8cff8ba376ff738860ff5c6f4bff465737ff313f24ff1e2912ff0c1504ffd7707affbf616affa7525aff90434bff79353dff63282fff4e1b21ff3a0e14ff260309ff", + "base": "bf616affbf616affbf616affbf616affbf616affbf616aff000000000000000088c0d0ff3b4252ff00000000000000000000000000000000000000000000000000000000000000002e3440ff2e3440ff2e3440ff2e3440ff2e3440ff2e3440ff2e3440ff2e3440ff2e3440ff2e3440ff2e3440ff3b4252ff434c5eff666f82ff434c5eff3b4252ff3b4252ff3b4252ffa3be8cffbf616aff3b4252ff3b4252ffa9aeb6ffa3be8cff8b95a7ff8b95a7ffbf616aff8b95a7ffa3be8cffd8dee9ffd08770ff88c0d0ff8b95a7ff81a1c1ff8fbcbbff81a1c1ff8fbcbbff8fbcbbff88c0d0ffebcb8bffd8dee9ff4c566aff8b95a7ff88c0d0ff81a1c1ffb48eadff81a1c1ffd8dee9ffa3be8cff8fbcbbff8fbcbbff2e3440ff8b95a7ff2e3440ff2e3440ff2e3440ff2e3440ffeceff4ff8b95a7ff2e3440ffeceff4ffeceff4ff88c0d0ff8b95a7ff8b95a7ff8b95a7ffeceff4ff8b95a7ff8b95a7ffeceff4ff8b95a7ffbf616affbf616aff88c0d0ff88c0d0ffa3be8cffa3be8cffd08770ffd08770ffeceff4ff8b95a7ff88c0d0ff88c0d0ff88c0d0ff88c0d0ff8b95a7ff" + }, + "one-dark/light": { + "modes": ["light","dark"], + "hues": ["gray","red","orange","yellow","green","cyan","blue","purple","accent","interactive","neutral"], + "hue": "0d0f17ff383a42ff6a6b73ffa0a1a7ffc5c5c8ffeaeaebfff0f0f1fffafafaffffffffffd83f34ffe45649ffef6b5dfffa7f70fffe9789fffeb0a5fffcc8c0fffdddd8fffef2f0ffad791cffc18401ffcc9333ffd8a24fffe3b268ffeec17ffffad095fffde2bcfffff3e4ff815909ff986801ffa87b2fffb88e4bffc9a165ffd9b57effeac897fffbddb1fffff3e3ff3a933bff50a14fff64af62ff78bc76ff8cca89ff9fd89cffb2e6b0ffc6f4c3ffe1ffdfff1073a2ff0184bcff3595caff52a6d7ff6cb7e5ff85c8f2ffa3d9fbffc9e8fcffecf7ffff2c65e7ff4078f2ff548afcff6f9efdff8cb0f8ffa3c2fdffbcd3ffffd7e4fefff1f5feff8f0d8effa626a4ffb745b4ffc960c5ffda79d6ffeb92e6fffcabf7fffecefafffff0fdff1073a2ff0184bcff3595caff52a6d7ff6cb7e5ff85c8f2ffa3d9fbffc9e8fcffecf7ffff2c65e7ff4078f2ff548afcff6f9efdff8cb0f8ffa3c2fdffbcd3ffffd7e4fefff1f5feff0d0f17ff383a42ff6a6b73ffa0a1a7ffc5c5c8ffeaeaebfff0f0f1fffafafaffffffffff", + "categorical": "8f0d8effa626a4ffb745b4ffc960c5ffda79d6ffeb92e6fffcabf7fffecefafffff0fdff1073a2ff0184bcff3595caff52a6d7ff6cb7e5ff85c8f2ffa3d9fbffc9e8fcffecf7ffff3a933bff50a14fff64af62ff78bc76ff8cca89ff9fd89cffb2e6b0ffc6f4c3ffe1ffdfffad791cffc18401ffcc9333ffd8a24fffe3b268ffeec17ffffad095fffde2bcfffff3e4ff2c65e7ff4078f2ff548afcff6f9efdff8cb0f8ffa3c2fdffbcd3ffffd7e4fefff1f5feffd83f34ffe45649ffef6b5dfffa7f70fffe9789fffeb0a5fffcc8c0fffdddd8fffef2f0ff815909ff986801ffa87b2fffb88e4bffc9a165ffd9b57effeac897fffbddb1fffff3e3ff", + "base": "e45649ffe45649ffe45649ffe45649ffe45649ffe45649ff00000000000000004078f2fff0f0f1ff0000000000000000000000000000000000000000000000000000000000000000fafafafffafafafffafafafffafafafffafafafffafafafffafafafffafafafffafafafffafafafffafafafff0f0f1ffeaeaebffc5c5c8ffd1d1d2ffeafbe9fff0f0f1fffce9e8ff489447ffd65145ffe1f3dffff5e2e1ff666666ff50a14fffa0a1a7ff0184bcffe45649ffa0a1a7ff50a14fff383a42ffc18401ffa626a4ffa0a1a7ff4078f2ff0184bcff4078f2ff0184bcff0184bcff4078f2ff986801ff383a42ff4078f2ffa0a1a7ff4078f2ffa626a4ff986801ff0184bcff383a42ff50a14fffc18401ffe45649fffafafaffa0a1a7fffafafafffafafafffafafafffafafaff383a42ffa0a1a7fffafafaff383a42ff383a42ff4078f2ffa0a1a7ffa0a1a7ffa0a1a7ff383a42ffa0a1a7ffa0a1a7ff383a42ffa0a1a7ffe45649ffe45649ff986801ff986801ff50a14fff50a14fffc18401ffc18401ff383a42ffa0a1a7ff4078f2ff4078f2ff4078f2ff4078f2ffa0a1a7ff" + }, + "one-dark/dark": { + "modes": ["light","dark"], + "hues": ["gray","red","orange","yellow","green","cyan","blue","purple","accent","interactive","neutral"], + "hue": "d5dce9ffabb2bfff828997ff5c6370ff484f5aff353b45ff21252bff282c34ff30333dfffd7e87ffe06c75ffc35a63ffa74952ff8c3941ff722931ff591921ff410a13ff280207ffeeb179ffd19a66ffb58354ff996d42ff7f5831ff654321ff4d2f11ff351d03ff1d0d01fffde0aaffe5c07bffc5a365ffa5884fff876d3aff6a5326ff4e3b12ff342401ff191001ffb0df8eff98c379ff81a764ff6a8c50ff54723dff3f5a2aff2b4218ff182b07ff081600ff68d0ddff56b6c2ff449da7ff33848eff226c75ff0f555dff093e44ff02292eff001518ff8cc7faff61afefff4f96d0ff3d7eb2ff2c6694ff1b5078ff093a5dff022640ff001324ffe18cfaffc678ddffac65c0ff9252a5ff79408aff612f6fff4a1e56ff340e3fff200128ff68d0ddff56b6c2ff449da7ff33848eff226c75ff0f555dff093e44ff02292eff001518ff8cc7faff61afefff4f96d0ff3d7eb2ff2c6694ff1b5078ff093a5dff022640ff001324ffd5dce9ffabb2bfff828997ff5c6370ff484f5aff353b45ff21252bff282c34ff30333dff", + "categorical": "e18cfaffc678ddffac65c0ff9252a5ff79408aff612f6fff4a1e56ff340e3fff200128ff68d0ddff56b6c2ff449da7ff33848eff226c75ff0f555dff093e44ff02292eff001518ffb0df8eff98c379ff81a764ff6a8c50ff54723dff3f5a2aff2b4218ff182b07ff081600fffde0aaffe5c07bffc5a365ffa5884fff876d3aff6a5326ff4e3b12ff342401ff191001ff8cc7faff61afefff4f96d0ff3d7eb2ff2c6694ff1b5078ff093a5dff022640ff001324fffd7e87ffe06c75ffc35a63ffa74952ff8c3941ff722931ff591921ff410a13ff280207ffeeb179ffd19a66ffb58354ff996d42ff7f5831ff654321ff4d2f11ff351d03ff1d0d01ff", + "base": "e06c75ffe06c75ffe06c75ffe06c75ffe06c75ffe06c75ff000000000000000061afefff21252bff0000000000000000000000000000000000000000000000000000000000000000282c34ff282c34ff282c34ff282c34ff282c34ff282c34ff282c34ff282c34ff282c34ff282c34ff282c34ff21252bff353b45ff484f5aff393f4aff2c382bff21252bff3a2d2fffaad482ffe8828bff283427ff36292bff9398a2ff98c379ff5c6370ff56b6c2ffe06c75ff5c6370ff98c379ffabb2bfffe5c07bffc678ddff5c6370ff61afefff56b6c2ff61afefff56b6c2ff56b6c2ff61afefffd19a66ffabb2bfff61afefff5c6370ff61afefffc678ddffd19a66ff56b6c2ffabb2bfff98c379ffe5c07bffe06c75ff282c34ff5c6370ff282c34ff282c34ff282c34ff282c34ffabb2bfff5c6370ff282c34ffabb2bfffabb2bfff61afefff5c6370ff5c6370ff5c6370ffabb2bfff5c6370ff5c6370ffabb2bfff5c6370ffe06c75ffe06c75ffd19a66ffd19a66ff98c379ff98c379ffe5c07bffe5c07bffabb2bfff5c6370ff61afefff61afefff61afefff61afefff5c6370ff" + }, + "osaka-jade/light": { + "modes": ["light","dark"], + "hues": ["gray","red","yellow","green","accent","interactive","neutral"], + "hue": "000201ff111c18ff304038ff53685bff909d87ffd5d4b8ffe8e7ccfff6f5ddffffffffffb7140effc7392dffd75445ffe66c5dfff58374fffd9e90fffcbcb2fffed7d1fffef2f0ffa89416ffb5a020ffbfac41ffcab859ffd5c56fffdfd185ffeade99fff5eaadfffef7ccff0d9b83ff1faa90ff44b69eff5fc3abff76d0b9ff8ddcc8ffa2e9d6ffb7f6e5ffdbfef4ff0d9b83ff1faa90ff44b69eff5fc3abff76d0b9ff8ddcc8ffa2e9d6ffb7f6e5ffdbfef4ff0d9b83ff1faa90ff44b69eff5fc3abff76d0b9ff8ddcc8ffa2e9d6ffb7f6e5ffdbfef4ff000201ff111c18ff304038ff53685bff909d87ffd5d4b8ffe8e7ccfff6f5ddffffffffff", + "categorical": "b7140effc7392dffd75445ffe66c5dfff58374fffd9e90fffcbcb2fffed7d1fffef2f0ff0d9b83ff1faa90ff44b69eff5fc3abff76d0b9ff8ddcc8ffa2e9d6ffb7f6e5ffdbfef4ffa89416ffb5a020ffbfac41ffcab859ffd5c56fffdfd185ffeade99fff5eaadfffef7ccff", + "base": "c7392dffc7392dffc7392dffc7392dffc7392dffc7392dff00000000000000001faa90ffe8e7ccff0000000000000000000000000000000000000000000000000000000000000000f6f5ddfff6f5ddfff6f5ddfff6f5ddfff6f5ddfff6f5ddfff6f5ddfff6f5ddfff6f5ddfff6f5ddfff6f5ddffe8e7ccffd5d4b8ff909d87ffa8a78cffe0eee5ffe8e7ccffeee0e0ff3d7a52ffc7392dffd5e5daffe5d5d5ff5f5e4fff3d7a52ff53685bff1faa90ffc7392dff53685bff3d7a52ff111c18ffa8527aff1faa90ff53685bff1faa90ff3d7a52ff1faa90ff3d7a52ff1faa90ff1faa90ff111c18ff111c18ff1faa90ff53685bff3d7560ff1faa90ffa8527affb5a020ff111c18ff3d7a52ff3d7a52ff111c18fff6f5ddff53685bfff6f5ddfff6f5ddfff6f5ddfff6f5ddff111c18ff53685bfff6f5ddff111c18ff111c18ff1faa90ff53685bff53685bff53685bff111c18ff53685bff53685bff111c18ff53685bffc7392dffc7392dff1faa90ff1faa90ff3d7a52ff3d7a52ffb5a020ffb5a020ff111c18ff53685bff1faa90ff1faa90ff1faa90ff1faa90ff53685bff" + }, + "osaka-jade/dark": { + "modes": ["light","dark"], + "hues": ["gray","red","yellow","green","accent","interactive","neutral"], + "hue": "fef1d5ffc1c497ff84967aff53685bff3a4f42ff23372bff1a2520ff111c18ff081310fffd8677ffff5345ffdf4237ffc03228ffa2211aff840f0cff630a07ff460303ff290101fffde784ffe5c736ffc5a91fffa38d25ff85710bff66570aff4a3e03ff2f2703ff161101ff43f4d3ff2dd5b7ff10b79cff209882ff027c69ff076051ff02463aff042d25ff001611ff43f4d3ff2dd5b7ff10b79cff209882ff027c69ff076051ff02463aff042d25ff001611ff43f4d3ff2dd5b7ff10b79cff209882ff027c69ff076051ff02463aff042d25ff001611fffef1d5ffc1c497ff84967aff53685bff3a4f42ff23372bff1a2520ff111c18ff081310ff", + "categorical": "fd8677ffff5345ffdf4237ffc03228ffa2211aff840f0cff630a07ff460303ff290101ff43f4d3ff2dd5b7ff10b79cff209882ff027c69ff076051ff02463aff042d25ff001611fffde784ffe5c736ffc5a91fffa38d25ff85710bff66570aff4a3e03ff2f2703ff161101ff", + "base": "ff5345ffff5345ffff5345ffff5345ffff5345ffff5345ff00000000000000002dd5b7ff1a2520ff0000000000000000000000000000000000000000000000000000000000000000111c18ff111c18ff111c18ff111c18ff111c18ff111c18ff111c18ff111c18ff111c18ff111c18ff111c18ff1a2520ff23372bff3a4f42ff3d4a44ff15241cff1a2520ff241515ff63b07affdb9f9cff121f18ff1f1212ff828b87ff549e6aff53685bff2dd5b7ffff5345ff53685bff63b07affc1c497ffd2689cff2dd5b7ff53685bff8cd3cbff549e6aff8cd3cbff549e6aff8cd3cbff2dd5b7ffc1c497ffc1c497ff2dd5b7ff53685bff509475ff2dd5b7ffd2689cff459451ffc1c497ff63b07aff549e6affc1c497ff111c18ff53685bff111c18ff111c18ff111c18ff111c18ffc1c497ff53685bff111c18ffc1c497ffc1c497ff2dd5b7ff53685bff53685bff53685bffc1c497ff53685bff53685bffc1c497ff53685bffff5345ffff5345ff2dd5b7ff2dd5b7ff549e6aff549e6affe5c736ffe5c736ffc1c497ff53685bff2dd5b7ff2dd5b7ff2dd5b7ff2dd5b7ff53685bff" + }, + "orng/light": { + "modes": ["light","dark"], + "hues": ["gray","red","orange","cyan","blue","accent","interactive","neutral"], + "hue": "000000ff1a1a1aff4e4e4eff8a8a8affbebcb9fff5f0ebfffff7f1ffffffffffffffffffd94f20ffec5b2bfff66f45fff98866fffd9e82fffcb59ffffec9b9fffeded5fffef2eeffb33e14ffc94d24ffd7633fffe67958fff38e6ffffba68cffffc0acfffcdad0fffef2eeff077786ff318795ff4c97a4ff64a8b4ff7bb8c4ff92c9d4ffa8dbe4ffbfecf4ffe3fafeff0251aeff0062d1ff2c78e0ff498deeff64a2fdff8ab8fbffabcdffffcfe1fcffeff6ffffb33e14ffc94d24ffd7633fffe67958fff38e6ffffba68cffffc0acfffcdad0fffef2eeffd94f20ffec5b2bfff66f45fff98866fffd9e82fffcb59ffffec9b9fffeded5fffef2eeff000000ff1a1a1aff4e4e4eff8a8a8affbebcb9fff5f0ebfffff7f1ffffffffffffffffff", + "categorical": "d94f20ffec5b2bfff66f45fff98866fffd9e82fffcb59ffffec9b9fffeded5fffef2eeffb33e14ffc94d24ffd7633fffe67958fff38e6ffffba68cffffc0acfffcdad0fffef2eeff0251aeff0062d1ff2c78e0ff498deeff64a2fdff8ab8fbffabcdffffcfe1fcffeff6ffff077786ff318795ff4c97a4ff64a8b4ff7bb8c4ff92c9d4ffa8dbe4ffbfecf4ffe3fafeff", + "base": "d1383dffd1383dffd1383dffd1383dffd1383dffd1383dff0000000000000000ec5b2bfffff7f1ff0000000000000000000000000000000000000000000000000000000000000000fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff7f1fff5f0ebffbebcb9ffec5b2bffe0edfafffff7f1fff7d8dbff0062d1fff52a65ffd0e5f5ffe7c8cbff595755ff0062d1ff7086b5ff7086b5ffc53b53ffb0851fff0062d1ff1a1a1affb0851fffec5b2bff8a8a8affec5b2bff318795ffec5b2bff318795ff318795ffec5b2bffec5b2bff1a1a1affc94d24ff8a8a8affc94d24ffec5b2bffec5b2bff318795ff1a1a1aff0062d1ffb0851fffd1383dffffffffff8a8a8affffffffffffffffffffffffffffffffff1a1a1aff8a8a8affffffffff1a1a1aff1a1a1affec5b2bff8a8a8aff8a8a8aff8a8a8aff1a1a1aff8a8a8aff8a8a8aff1a1a1aff8a8a8affd1383dffd1383dff318795ff318795ff0062d1ff0062d1ffec5b2bffec5b2bff1a1a1aff8a8a8affec5b2bffec5b2bffec5b2bffec5b2bff8a8a8aff" + }, + "orng/dark": { + "modes": ["light","dark"], + "hues": ["gray","red","cyan","blue","accent","interactive","neutral"], + "hue": "ffffffffeeeeeeffb5b5b5ff808080ff4c4c4cff1e1e1eff141414ff0a0a0aff030303fffa7b54ffec5b2bffce4b1effb23b0fff903313ff762305ff591904ff3f0e01ff250601ff68d0ddff56b6c2ff449da7ff33848eff226c75ff0f555dff093e44ff02292eff001518ff84b9fdff6ba1e6ff598ac8ff4874acff375e90ff274975ff18355bff092342ff00112affffffffffeeeeeeffb5b5b5ff808080ff4c4c4cff1e1e1eff141414ff0a0a0aff030303fffa7b54ffec5b2bffce4b1effb23b0fff903313ff762305ff591904ff3f0e01ff250601ffffffffffeeeeeeffb5b5b5ff808080ff4c4c4cff1e1e1eff141414ff0a0a0aff030303ff", + "categorical": "fa7b54ffec5b2bffce4b1effb23b0fff903313ff762305ff591904ff3f0e01ff250601ff84b9fdff6ba1e6ff598ac8ff4874acff375e90ff274975ff18355bff092342ff00112aff68d0ddff56b6c2ff449da7ff33848eff226c75ff0f555dff093e44ff02292eff001518ff", + "base": "e06c75ffe06c75ffe06c75ffe06c75ffe06c75ffe06c75ff0000000000000000ec5b2bff141414ff00000000000000000000000000000000000000000000000000000000000000000a0a0aff0a0a0aff0a0a0aff0a0a0aff0a0a0aff0a0a0aff0a0a0aff0a0a0aff0a0a0aff0a0a0aff0a0a0aff141414ff1e1e1eff4c4c4cffec5b2bff1a2a3dff141414ff37222cff6ba1e6ffe26a75ff162535ff2d1f26ff828bb8ff6ba1e6ff828bb8ff828bb8ffc53b53fffff7f1ff6ba1e6ffeeeeeeffe5c07bffec5b2bff808080ffec5b2bff56b6c2ffec5b2bff56b6c2ff56b6c2ffec5b2bffee7948ffeeeeeeffee7948ff808080ffee7948ffec5b2bfffff7f1ff56b6c2ffeeeeeeff6ba1e6ffe5c07bffe06c75ff0a0a0aff808080ff0a0a0aff0a0a0aff0a0a0aff0a0a0affeeeeeeff808080ff0a0a0affeeeeeeffeeeeeeffec5b2bff808080ff808080ff808080ffeeeeeeff808080ff808080ffeeeeeeff808080ffe06c75ffe06c75ff56b6c2ff56b6c2ff6ba1e6ff6ba1e6ffec5b2bffec5b2bffeeeeeeff808080ffec5b2bffec5b2bffec5b2bffec5b2bff808080ff" + }, + "lucent-orng/light": { + "modes": ["light","dark"], + "hues": ["gray","red","orange","cyan","blue","accent","interactive","neutral"], + "hue": "000000ff1a1a1aff4e4e4eff8a8a8aff3232328000000000000000000000000000000000d94f20ffec5b2bfff66f45fff98866fffd9e82fffcb59ffffec9b9fffeded5fffef2eeffb33e14ffc94d24ffd7633fffe67958fff38e6ffffba68cffffc0acfffcdad0fffef2eeff077786ff318795ff4c97a4ff64a8b4ff7bb8c4ff92c9d4ffa8dbe4ffbfecf4ffe3fafeff0251aeff0062d1ff2c78e0ff498deeff64a2fdff8ab8fbffabcdffffcfe1fcffeff6ffffb33e14ffc94d24ffd7633fffe67958fff38e6ffffba68cffffc0acfffcdad0fffef2eeffd94f20ffec5b2bfff66f45fff98866fffd9e82fffcb59ffffec9b9fffeded5fffef2eeff000000ff1a1a1aff4e4e4eff8a8a8aff3232328000000000000000000000000000000000", + "categorical": "d94f20ffec5b2bfff66f45fff98866fffd9e82fffcb59ffffec9b9fffeded5fffef2eeffb33e14ffc94d24ffd7633fffe67958fff38e6ffffba68cffffc0acfffcdad0fffef2eeff0251aeff0062d1ff2c78e0ff498deeff64a2fdff8ab8fbffabcdffffcfe1fcffeff6ffff077786ff318795ff4c97a4ff64a8b4ff7bb8c4ff92c9d4ffa8dbe4ffbfecf4ffe3fafeff", + "base": "d1383dffd1383dffd1383dffd1383dffd1383dffd1383dff0000000000000000ec5b2bff0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000032323280ec5b2bff0000000000000000000000000062d1fff52a65ff00000000000000008a8a8aff0062d1ff7086b5ff7086b5ffc53b53ffb0851fff0062d1ff1a1a1affb0851fffec5b2bff8a8a8affec5b2bff318795ffec5b2bff318795ff318795ffec5b2bffec5b2bff1a1a1affc94d24ff8a8a8affc94d24ffec5b2bffec5b2bff318795ff1a1a1aff0062d1ffb0851fffd1383dffffffffff8a8a8affffffffffffffffffffffffffffffffff1a1a1aff8a8a8affffffffff1a1a1aff1a1a1affec5b2bff8a8a8aff8a8a8aff8a8a8aff1a1a1aff8a8a8aff8a8a8aff1a1a1aff8a8a8affd1383dffd1383dff318795ff318795ff0062d1ff0062d1ffec5b2bffec5b2bff1a1a1aff8a8a8affec5b2bffec5b2bffec5b2bffec5b2bff8a8a8aff" + }, + "lucent-orng/dark": { + "modes": ["light","dark"], + "hues": ["gray","red","cyan","blue","accent","interactive","neutral"], + "hue": "ffffffffeeeeeeffb5b5b5ff808080ff2e2e2e8000000000000000000000000000000000fa7b54ffec5b2bffce4b1effb23b0fff903313ff762305ff591904ff3f0e01ff250601ff68d0ddff56b6c2ff449da7ff33848eff226c75ff0f555dff093e44ff02292eff001518ff84b9fdff6ba1e6ff598ac8ff4874acff375e90ff274975ff18355bff092342ff00112affffffffffeeeeeeffb5b5b5ff808080ff2e2e2e8000000000000000000000000000000000fa7b54ffec5b2bffce4b1effb23b0fff903313ff762305ff591904ff3f0e01ff250601ffffffffffeeeeeeffb5b5b5ff808080ff2e2e2e8000000000000000000000000000000000", + "categorical": "fa7b54ffec5b2bffce4b1effb23b0fff903313ff762305ff591904ff3f0e01ff250601ff84b9fdff6ba1e6ff598ac8ff4874acff375e90ff274975ff18355bff092342ff00112aff68d0ddff56b6c2ff449da7ff33848eff226c75ff0f555dff093e44ff02292eff001518ff", + "base": "e06c75ffe06c75ffe06c75ffe06c75ffe06c75ffe06c75ff0000000000000000ec5b2bff000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000002e2e2e80ec5b2bff0000000000000000000000006ba1e6ffe26a75ff0000000000000000808080ff6ba1e6ff828bb8ff828bb8ffc53b53fffff7f1ff6ba1e6ffeeeeeeffe5c07bffec5b2bff808080ffec5b2bff56b6c2ffec5b2bff56b6c2ff56b6c2ffec5b2bffee7948ffeeeeeeffee7948ff808080ffee7948ffec5b2bfffff7f1ff56b6c2ffeeeeeeff6ba1e6ffe5c07bffe06c75ff0a0a0aff808080ff0a0a0aff0a0a0aff0a0a0aff0a0a0affeeeeeeff808080ff0a0a0affeeeeeeffeeeeeeffec5b2bff808080ff808080ff808080ffeeeeeeff808080ff808080ffeeeeeeff808080ffe06c75ffe06c75ff56b6c2ff56b6c2ff6ba1e6ff6ba1e6ffec5b2bffec5b2bffeeeeeeff808080ffec5b2bffec5b2bffec5b2bffec5b2bff808080ff" + }, + "palenight/light": { + "modes": ["light","dark"], + "hues": ["gray","red","orange","green","cyan","blue","purple","accent","interactive","neutral"], + "hue": "04040eff292d3eff565f75ff8796b0ffb9bdccffe7e7e8fff5f5f5fffafafaffffffffffd8091affe53935fff2554cfffe6d62fffb8f84fffcaaa0ffffc2baffffdad5fffff2f0fff6ad0bffffb300fffdbe51fffcc874fffcd18efffddaa4fffde3bcfffeebcffffef4e4ff85ae46ff91b859ff9dc26bffa9cc7cffb6d68dffc2e09dffcfeaaeffdcf4beffe9fecfff259dafff00acc1ff3bb8cbff58c4d6ff71d0e1ff88dcebff9ee8f6ffb9f3feffe3faffff3763e0ff4976ebff5c88f6ff749cf7ff8caefbffa6c0f9ffbed2fcffd8e4fdfff1f5ffff9b3be8ffa854f2ffb56afcffbf84fcffca9bffffd4b3fcffe0c8feffecdefefff8f2ffff259dafff00acc1ff3bb8cbff58c4d6ff71d0e1ff88dcebff9ee8f6ffb9f3feffe3faffff3763e0ff4976ebff5c88f6ff749cf7ff8caefbffa6c0f9ffbed2fcffd8e4fdfff1f5ffff04040eff292d3eff565f75ff8796b0ffb9bdccffe7e7e8fff5f5f5fffafafaffffffffff", + "categorical": "9b3be8ffa854f2ffb56afcffbf84fcffca9bffffd4b3fcffe0c8feffecdefefff8f2ffff259dafff00acc1ff3bb8cbff58c4d6ff71d0e1ff88dcebff9ee8f6ffb9f3feffe3faffff85ae46ff91b859ff9dc26bffa9cc7cffb6d68dffc2e09dffcfeaaeffdcf4beffe9fecffff6ad0bffffb300fffdbe51fffcc874fffcd18efffddaa4fffde3bcfffeebcffffef4e4ff3763e0ff4976ebff5c88f6ff749cf7ff8caefbffa6c0f9ffbed2fcffd8e4fdfff1f5ffffd8091affe53935fff2554cfffe6d62fffb8f84fffcaaa0ffffc2baffffdad5fffff2f0ff", + "base": "e53935ffe53935ffe53935ffe53935ffe53935ffe53935ff00000000000000004976ebfff5f5f5ff0000000000000000000000000000000000000000000000000000000000000000fafafafffafafafffafafafffafafafffafafafffafafafffafafafffafafafffafafafffafafafffafafafff5f5f5ffe7e7e8ffb9bdccffe0e0e0ffe8f5e9fff5f5f5ffffebeeff91b859ffe53935ffe8f5e9ffffebeeff6a6e70ff91b859ff8796b0ff00acc1ffe53935ff8796b0ff91b859ff292d3effffb300ffa854f2ff8796b0ff4976ebff00acc1ff4976ebff00acc1ff00acc1ff4976ebfff4511eff292d3eff4976ebff8796b0ff4976ebffa854f2fff4511eff00acc1ff292d3eff91b859ffffb300ff292d3efffafafaff8796b0fffafafafffafafafffafafafffafafaff292d3eff8796b0fffafafaff292d3eff292d3eff4976ebff8796b0ff8796b0ff8796b0ff292d3eff8796b0ff8796b0ff292d3eff8796b0ffe53935ffe53935fff4511efff4511eff91b859ff91b859ffffb300ffffb300ff292d3eff8796b0ff4976ebff4976ebff4976ebff4976ebff8796b0ff" + }, + "palenight/dark": { + "modes": ["light","dark"], + "hues": ["gray","red","orange","green","cyan","blue","purple","accent","interactive","neutral"], + "hue": "c7cdeaffa6accdff868cb1ff676e95ff4c516eff32364aff1e2132ff292d3eff35394afffa9597fff07178ffd15e65ffb34c53ff963a41ff792930ff5e1820ff440811ff290105fffef3e0ffffcb6bffdbac54ffb88e3eff977228ff765610ff553d06ff362504ff191001fff4ffe6ffc3e88dffa5c674ff88a55bff6c8543ff51672dff374a16ff202f01ff0c1500ffdcf4feff89ddffff70bddbff589eb9ff417f98ff2b6278ff144759ff052d3aff00141dffabc6fcff82aaffff6d91deff5979beff46629fff334b80ff223664ff112248ff040f2effdeaffdffc792eaffac7ccbff9166adff775190ff5e3c74ff462959ff30173fff1b0627ffdcf4feff89ddffff70bddbff589eb9ff417f98ff2b6278ff144759ff052d3aff00141dffabc6fcff82aaffff6d91deff5979beff46629fff334b80ff223664ff112248ff040f2effc7cdeaffa6accdff868cb1ff676e95ff4c516eff32364aff1e2132ff292d3eff35394aff", + "categorical": "deaffdffc792eaffac7ccbff9166adff775190ff5e3c74ff462959ff30173fff1b0627ffdcf4feff89ddffff70bddbff589eb9ff417f98ff2b6278ff144759ff052d3aff00141dfff4ffe6ffc3e88dffa5c674ff88a55bff6c8543ff51672dff374a16ff202f01ff0c1500fffef3e0ffffcb6bffdbac54ffb88e3eff977228ff765610ff553d06ff362504ff191001ffabc6fcff82aaffff6d91deff5979beff46629fff334b80ff223664ff112248ff040f2efffa9597fff07178ffd15e65ffb34c53ff963a41ff792930ff5e1820ff440811ff290105ff", + "base": "f07178fff07178fff07178fff07178fff07178fff07178ff000000000000000082aaffff1e2132ff0000000000000000000000000000000000000000000000000000000000000000292d3eff292d3eff292d3eff292d3eff292d3eff292d3eff292d3eff292d3eff292d3eff292d3eff292d3eff1e2132ff32364aff4c516eff32364aff2e3c2bff1e2132ff3c2b2bffc3e88dfff07178ff2e3c2bff3c2b2bffa0a2afffc3e88dff676e95ff89ddfffff07178ff676e95ffc3e88dffa6accdffffcb6bffc792eaff676e95ff82aaffff89ddffff82aaffff89ddffff89ddffff82aafffff78c6cffa6accdff82aaffff676e95ff82aaffffc792eafff78c6cff89ddffffa6accdffc3e88dffffcb6bffa6accdff292d3eff676e95ff292d3eff292d3eff292d3eff292d3effa6accdff676e95ff292d3effa6accdffa6accdff82aaffff676e95ff676e95ff676e95ffa6accdff676e95ff676e95ffa6accdff676e95fff07178fff07178fff78c6cfff78c6cffc3e88dffc3e88dffffcb6bffffcb6bffa6accdff676e95ff82aaffff82aaffff82aaffff82aaffff676e95ff" + }, + "rosepine/light": { + "modes": ["light","dark"], + "hues": ["gray","red","orange","cyan","purple","accent","interactive","neutral"], + "hue": "383463ff575279ff77728fff9893a5ffccbabffff2e9e1fffffaf3fffaf4edfff5eee7ffcd7470ffd7827effe1908cffea9f9afff3ada9fffdbcb7fffececafffde0defffef2f1ffe39105ffea9d34fff1a94dfff7b463fffdbf77fffbce9afffcdab5ffffe6ccfffff3e7ff11627eff31748fff4a86a0ff6299b1ff7aacc3ff92bfd4ffaad3e6ffc2e7f8ffeaf8feff826a9cff907aa9ff9f8ab6ffad9ac4ffbdabd2ffccbce0ffdbcdedffebdefbfff8f2ffffcd7470ffd7827effe1908cffea9f9afff3ada9fffdbcb7fffececafffde0defffef2f1ff11627eff31748fff4a86a0ff6299b1ff7aacc3ff92bfd4ffaad3e6ffc2e7f8ffeaf8feff383463ff575279ff77728fff9893a5ffccbabffff2e9e1fffffaf3fffaf4edfff5eee7ff", + "categorical": "826a9cff907aa9ff9f8ab6ffad9ac4ffbdabd2ffccbce0ffdbcdedffebdefbfff8f2ffffcd7470ffd7827effe1908cffea9f9afff3ada9fffdbcb7fffececafffde0defffef2f1ff11627eff31748fff4a86a0ff6299b1ff7aacc3ff92bfd4ffaad3e6ffc2e7f8ffeaf8feffe39105ffea9d34fff1a94dfff7b463fffdbf77fffbce9afffcdab5ffffe6ccfffff3e7ff", + "base": "b4637affb4637affb4637affb4637affb4637affb4637aff000000000000000031748ffffffaf3ff0000000000000000000000000000000000000000000000000000000000000000faf4edfffaf4edfffaf4edfffaf4edfffaf4edfffaf4edfffaf4edfffaf4edfffaf4edfffaf4edfffaf4edfffffaf3fff2e9e1ffccbabfffdfdad9ffe5f2f3fffffaf3fffce5e8ff286983ffb4637affe5f2f3fffce5e8ff6c6875ff286983ff9893a5ff907aa9ffb4637aff9893a5ff286983ff575279ffea9d34ff907aa9ffdfdad9ff31748fffd7827eff31748fffd7827effd7827eff31748fffb4637aff575279ff31748fff9893a5ffd7827eff286983ff907aa9ff797593ff797593ffea9d34ff56949fff575279fffaf4edff9893a5fffaf4edfffaf4edfffaf4edfffaf4edff575279ff9893a5fffaf4edff575279ff575279ff31748fff9893a5ff9893a5ff9893a5ff575279ff9893a5ff9893a5ff575279ff9893a5ffb4637affb4637aff56949fff56949fff286983ff286983ffea9d34ffea9d34ff575279ff9893a5ff31748fff31748fff31748fff31748fff9893a5ff" + }, + "rosepine/dark": { + "modes": ["light","dark"], + "hues": ["gray","red","orange","cyan","purple","accent","interactive","neutral"], + "hue": "ffffffffe0def4ffa5a2bcff6e6a86ff48455fff26233aff1f1d2eff191724ff13111afffedfdeffebbcbaffcaa09effaa8482ff8b6968ff6d504fff503837ff352121ff1c0d0cfffde7c9fff6c177ffd4a460ffb2884bff926c35ff735221ff55390bff382301ff1b0f01ffb6eef8ff9ccfd8ff83b1b9ff6a949bff53787eff3c5d63ff274348ff132b2fff021518ffdec4fdffc4a7e7ffa88ec8ff8d76a9ff735e8cff5a476fff423254ff2b1e3aff160b22fffedfdeffebbcbaffcaa09effaa8482ff8b6968ff6d504fff503837ff352121ff1c0d0cffb6eef8ff9ccfd8ff83b1b9ff6a949bff53787eff3c5d63ff274348ff132b2fff021518ffffffffffe0def4ffa5a2bcff6e6a86ff48455fff26233aff1f1d2eff191724ff13111aff", + "categorical": "dec4fdffc4a7e7ffa88ec8ff8d76a9ff735e8cff5a476fff423254ff2b1e3aff160b22fffedfdeffebbcbaffcaa09effaa8482ff8b6968ff6d504fff503837ff352121ff1c0d0cffb6eef8ff9ccfd8ff83b1b9ff6a949bff53787eff3c5d63ff274348ff132b2fff021518fffde7c9fff6c177ffd4a460ffb2884bff926c35ff735221ff55390bff382301ff1b0f01ff", + "base": "eb6f92ffeb6f92ffeb6f92ffeb6f92ffeb6f92ffeb6f92ff00000000000000009ccfd8ff1f1d2eff0000000000000000000000000000000000000000000000000000000000000000191724ff191724ff191724ff191724ff191724ff191724ff191724ff191724ff191724ff191724ff191724ff1f1d2eff26233aff48455fff403d52ff1f2d3aff1f1d2eff3a1f2dff31748fffeb6f92ff1f2d3aff3a1f2dff9491a6ff31748fff6e6a86ffc4a7e7ffeb6f92ff6e6a86ff31748fffe0def4fff6c177ffc4a7e7ff403d52ff9ccfd8ffebbcbaff9ccfd8ffebbcbaffebbcbaff9ccfd8ffeb6f92ffe0def4ff9ccfd8ff6e6a86ffebbcbaff31748fffc4a7e7ff908caaff908caafff6c177ff9ccfd8ffe0def4ff191724ff6e6a86ff191724ff191724ff191724ff191724ffe0def4ff6e6a86ff191724ffe0def4ffe0def4ff9ccfd8ff6e6a86ff6e6a86ff6e6a86ffe0def4ff6e6a86ff6e6a86ffe0def4ff6e6a86ffeb6f92ffeb6f92ff9ccfd8ff9ccfd8ff31748fff31748ffff6c177fff6c177ffe0def4ff6e6a86ff9ccfd8ff9ccfd8ff9ccfd8ff9ccfd8ff6e6a86ff" + }, + "solarized/light": { + "modes": ["light","dark"], + "hues": ["gray","red","orange","yellow","cyan","blue","accent","interactive","neutral"], + "hue": "516875ff657b83ff7b8e91ff93a1a1ffbac6baffeee8d5ffeee8d5fffdf6e3ffffffffffc52021ffdc322fffea5047fff7695efffd877bfffda49afffcc0b8fffed9d4fffef2f0ffaf4319ffcb4b16ffd96237ffe77851fff58d6afffda688fffcc1adfffddacefffef2eeffa27d1bffb58900ffc19833ffcda74fffd9b668ffe5c57ffff1d495fffde3acfffff4ddff1b9289ff2aa198ff49aea6ff62bcb3ff79c9c1ff8fd7cfffa5e5deffbaf3ecffd7fffaff167bbfff268bd2ff449bdeff5dabe9ff75bbf4ff92cafaffb0d9fdffd0e8fdffedf6feff1b9289ff2aa198ff49aea6ff62bcb3ff79c9c1ff8fd7cfffa5e5deffbaf3ecffd7fffaff167bbfff268bd2ff449bdeff5dabe9ff75bbf4ff92cafaffb0d9fdffd0e8fdffedf6feff516875ff657b83ff7b8e91ff93a1a1ffbac6baffeee8d5ffeee8d5fffdf6e3ffffffffff", + "categorical": "167bbfff268bd2ff449bdeff5dabe9ff75bbf4ff92cafaffb0d9fdffd0e8fdffedf6feff1b9289ff2aa198ff49aea6ff62bcb3ff79c9c1ff8fd7cfffa5e5deffbaf3ecffd7fffaffa27d1bffb58900ffc19833ffcda74fffd9b668ffe5c57ffff1d495fffde3acfffff4ddffc52021ffdc322fffea5047fff7695efffd877bfffda49afffcc0b8fffed9d4fffef2f0ffaf4319ffcb4b16ffd96237ffe77851fff58d6afffda688fffcc1adfffddacefffef2eeff", + "base": "dc322fffdc322fffdc322fffdc322fffdc322fffdc322fff0000000000000000268bd2ffeee8d5ff0000000000000000000000000000000000000000000000000000000000000000fdf6e3fffdf6e3fffdf6e3fffdf6e3fffdf6e3fffdf6e3fffdf6e3fffdf6e3fffdf6e3fffdf6e3fffdf6e3ffeee8d5ffeee8d5ffbac6baffeee8d5ffeee8d5ffeee8d5ffeee8d5ff859900ffdc322fffeee8d5ffeee8d5ff5f6969ff859900ff93a1a1ff93a1a1ffdc322fff93a1a1ff859900ff657b83ffb58900ff268bd2ff93a1a1ff2aa198ff6c71c4ff2aa198ff6c71c4ff2aa198ff268bd2ffcb4b16ff657b83ff93a1a1ff93a1a1ff268bd2ff859900ffd33682ff859900ff657b83ff2aa198ffb58900ff2aa198fffdf6e3ff93a1a1fffdf6e3fffdf6e3fffdf6e3fffdf6e3ff657b83ff93a1a1fffdf6e3ff657b83ff657b83ff268bd2ff93a1a1ff93a1a1ff93a1a1ff657b83ff93a1a1ff93a1a1ff657b83ff93a1a1ffdc322fffdc322fffcb4b16ffcb4b16ff859900ff859900ffb58900ffb58900ff657b83ff93a1a1ff268bd2ff268bd2ff268bd2ff268bd2ff93a1a1ff" + }, + "solarized/dark": { + "modes": ["light","dark"], + "hues": ["gray","red","orange","yellow","cyan","blue","accent","interactive","neutral"], + "hue": "9aa7a8ff839496ff6d8185ff586e75ff32515bff073642ff073642ff002b36ff002029fff73e3affdc322fffc22524ffa8181aff8f090fff710d0eff5a0105ff410103ff290202ffe45821ffcb4b16ffb23e0aff953814ff7e2b09ff681f00ff501702ff390f01ff250600ffcd9d16ffb58900ff9a7619ff836309ff6b5110ff563f02ff402f02ff2c1f00ff191000ff38b7adff2aa198ff1b8b83ff08766fff12615bff014d48ff023936ff012724ff011614ff329fecff268bd2ff1978b8ff0a659fff115381ff04426aff043151ff022239ff011322ff38b7adff2aa198ff1b8b83ff08766fff12615bff014d48ff023936ff012724ff011614ff329fecff268bd2ff1978b8ff0a659fff115381ff04426aff043151ff022239ff011322ff9aa7a8ff839496ff6d8185ff586e75ff32515bff073642ff073642ff002b36ff002029ff", + "categorical": "329fecff268bd2ff1978b8ff0a659fff115381ff04426aff043151ff022239ff011322ff38b7adff2aa198ff1b8b83ff08766fff12615bff014d48ff023936ff012724ff011614ffcd9d16ffb58900ff9a7619ff836309ff6b5110ff563f02ff402f02ff2c1f00ff191000fff73e3affdc322fffc22524ffa8181aff8f090fff710d0eff5a0105ff410103ff290202ffe45821ffcb4b16ffb23e0aff953814ff7e2b09ff681f00ff501702ff390f01ff250600ff", + "base": "dc322fffdc322fffdc322fffdc322fffdc322fffdc322fff0000000000000000268bd2ff073642ff0000000000000000000000000000000000000000000000000000000000000000002b36ff002b36ff002b36ff002b36ff002b36ff002b36ff002b36ff002b36ff002b36ff002b36ff002b36ff073642ff073642ff32515bff073642ff073642ff073642ff073642ff859900ffdc322fff073642ff073642ff8b9b9fff859900ff586e75ff586e75ffdc322fff586e75ff859900ff839496ffb58900ff268bd2ff586e75ff2aa198ff6c71c4ff2aa198ff6c71c4ff2aa198ff268bd2ffcb4b16ff839496ff586e75ff586e75ff268bd2ff859900ffd33682ff859900ff839496ff2aa198ffb58900ff2aa198ff002b36ff586e75ff002b36ff002b36ff002b36ff002b36ff839496ff586e75ff002b36ff839496ff839496ff268bd2ff586e75ff586e75ff586e75ff839496ff586e75ff586e75ff839496ff586e75ffdc322fffdc322fffcb4b16ffcb4b16ff859900ff859900ffb58900ffb58900ff839496ff586e75ff268bd2ff268bd2ff268bd2ff268bd2ff586e75ff" + }, + "synthwave84/light": { + "modes": ["light","dark"], + "hues": ["gray","red","orange","green","cyan","purple","accent","interactive","neutral"], + "hue": "0d0b11ff262335ff413e5eff5c5c8affba9ca1ffeeeeeefff5f5f5fffafafaffffffffffe91f19fff44336ffff5d4dfff98172fffd998bfffdb1a6fffbc8c0ffffddd7fffff2f0ffec9430ffff9800fffea74dfffdb56ffffec28afffccfa7fffcdcbeffffe7d2fffef3e9ff33a33cff4caf50ff61bb63ff75c776ff89d389ff9ce09bffafecaeffc2f8c0ffe2fee1ff2eafc3ff00bcd4ff3dc6dcff5ad0e4ff73daedff88e4f5ff9deefdffc2f4feffe3faffff860d99ff9c27b0ffae46c0ffbf61d0ffd17ae1ffe293f1fff0affcfff7d1fdfffcf1feff860d99ff9c27b0ffae46c0ffbf61d0ffd17ae1ffe293f1fff0affcfff7d1fdfffcf1feff2eafc3ff00bcd4ff3dc6dcff5ad0e4ff73daedff88e4f5ff9deefdffc2f4feffe3faffff0d0b11ff262335ff413e5eff5c5c8affba9ca1ffeeeeeefff5f5f5fffafafaffffffffff", + "categorical": "e91f19fff44336ffff5d4dfff98172fffd998bfffdb1a6fffbc8c0ffffddd7fffff2f0ff860d99ff9c27b0ffae46c0ffbf61d0ffd17ae1ffe293f1fff0affcfff7d1fdfffcf1feff33a33cff4caf50ff61bb63ff75c776ff89d389ff9ce09bffafecaeffc2f8c0ffe2fee1ffec9430ffff9800fffea74dfffdb56ffffec28afffccfa7fffcdcbeffffe7d2fffef3e9ff2eafc3ff00bcd4ff3dc6dcff5ad0e4ff73daedff88e4f5ff9deefdffc2f4feffe3faffff", + "base": "f44336fff44336fff44336fff44336fff44336fff44336ff000000000000000000bcd4fff5f5f5ff0000000000000000000000000000000000000000000000000000000000000000fafafafffafafafffafafafffafafafffafafafffafafafffafafafffafafafffafafafffafafafffafafafff5f5f5ffeeeeeeffba9ca1ffe0e0e0ffe8f5e9fff5f5f5ffffebeeff4caf50fff44336ffe8f5e9ffffebeeff5c5c8aff4caf50ff5c5c8aff9c27b0fff44336ff5c5c8aff4caf50ff262335ffff9800ffe91e63ffe0e0e0ff00bcd4ff9c27b0ff00bcd4ff9c27b0ff9c27b0ff00bcd4ffff5722ff262335ff00bcd4ff5c5c8affff5722ffe91e63ff9c27b0ffe91e63ff262335ffff9800ff00bcd4ff262335fffafafaff5c5c8afffafafafffafafafffafafafffafafaff262335ff5c5c8afffafafaff262335ff262335ff00bcd4ff5c5c8aff5c5c8aff5c5c8aff262335ff5c5c8aff5c5c8aff262335ff5c5c8afff44336fff44336ffff5722ffff5722ff4caf50ff4caf50ffff9800ffff9800ff262335ff5c5c8aff00bcd4ff00bcd4ff00bcd4ff00bcd4ff5c5c8aff" + }, + "synthwave84/dark": { + "modes": ["light","dark"], + "hues": ["gray","red","orange","yellow","green","cyan","purple","accent","interactive","neutral"], + "hue": "ffffffffffffffffdcbcc3ff848bbdff575278ff2a2139ff1e1a29ff262335ff2e2c41fffb7c7bfffe4450ffde3441ffc02433ffa21225ff7f121eff640010ff44050bff2a0003fffbb78fffff8b39ffde7528ffbd5f15ff984e17ff7b3a03ff5b2901ff3b1a03ff200b01fffffffffffede5dffdabd45ffb69c2dff947d11ff715f0dff514303ff322902ff161100ffddfeecff72f1b8ff5ace9bff42ad7fff2a8d64ff0d6d4bff034f34ff03311fff01170cfffdfdfdff36f9f6ff0ed5d3ff23b0aeff228d8cff1a6c6bff0d4d4cff06302fff021515ffc59ffaffb084ebff9870cdff805cb0ff6a4993ff543778ff3f255dff2b1444ff19052cffc59ffaffb084ebff9870cdff805cb0ff6a4993ff543778ff3f255dff2b1444ff19052cfffdfdfdff36f9f6ff0ed5d3ff23b0aeff228d8cff1a6c6bff0d4d4cff06302fff021515ffffffffffffffffffdcbcc3ff848bbdff575278ff2a2139ff1e1a29ff262335ff2e2c41ff", + "categorical": "c59ffaffb084ebff9870cdff805cb0ff6a4993ff543778ff3f255dff2b1444ff19052cffddfeecff72f1b8ff5ace9bff42ad7fff2a8d64ff0d6d4bff034f34ff03311fff01170cfffffffffffede5dffdabd45ffb69c2dff947d11ff715f0dff514303ff322902ff161100fffdfdfdff36f9f6ff0ed5d3ff23b0aeff228d8cff1a6c6bff0d4d4cff06302fff021515fffb7c7bfffe4450ffde3441ffc02433ffa21225ff7f121eff640010ff44050bff2a0003fffbb78fffff8b39ffde7528ffbd5f15ff984e17ff7b3a03ff5b2901ff3b1a03ff200b01ff", + "base": "fe4450fffe4450fffe4450fffe4450fffe4450fffe4450ff000000000000000036f9f6ff1e1a29ff0000000000000000000000000000000000000000000000000000000000000000262335ff262335ff262335ff262335ff262335ff262335ff262335ff262335ff262335ff262335ff262335ff1e1a29ff2a2139ff575278ff495495ff1a3a2aff1e1a29ff3a1a2aff97f1d8ffff5e5bff1a3a2aff3a1a2aff959bc1ff72f1b8ff848bbdffb084ebfffe4450ff848bbdff72f1b8fffffffffffede5dffff7edbff495495ff36f9f6ffb084ebff36f9f6ffb084ebffb084ebff36f9f6ffff8b39ffffffffff36f9f6ff848bbdffff8b39ffff7edbffb084ebffff7edbfffffffffffede5dff36f9f6ffffffffff262335ff848bbdff262335ff262335ff262335ff262335ffffffffff848bbdff262335ffffffffffffffffff36f9f6ff848bbdff848bbdff848bbdffffffffff848bbdff848bbdffffffffff848bbdfffe4450fffe4450ffff8b39ffff8b39ff72f1b8ff72f1b8fffede5dfffede5dffffffffff848bbdff36f9f6ff36f9f6ff36f9f6ff36f9f6ff848bbdff" + }, + "tokyonight/light": { + "modes": ["light","dark"], + "hues": ["gray","red","yellow","green","blue","purple","accent","interactive","neutral"], + "hue": "0e49b3ff3760bfff6279b3ff8990a3ffa8acb8ffc8c9ceffd5d6dbffe1e2e7ffedeef3ffe01859fff52a65fff85979fffb778dfff996a3ffffacb6fffdc5cbfffddcdffffef1f3ff97500affb15c00ffc0702fffd0844bffdf9865ffeeac7efffdc197fffedac2fffff2eaff456321ff587539ff6b874fff7f9a66ff94ad7dffa9c094ffbed4abffd4e8c3ffebfcdcff0a6bdeff2e7de9ff478ff4ff5ea0ffff82b2f9ff9bc4feffb9d4fbffd3e5fffff0f6feff8b3ae6ff9854f1ffa66afcffb284fcffbf9bffffccb3fdffdac8ffffe8defefff6f3feff97500affb15c00ffc0702fffd0844bffdf9865ffeeac7efffdc197fffedac2fffff2eaff0a6bdeff2e7de9ff478ff4ff5ea0ffff82b2f9ff9bc4feffb9d4fbffd3e5fffff0f6feff0e49b3ff3760bfff6279b3ff8990a3ffa8acb8ffc8c9ceffd5d6dbffe1e2e7ffedeef3ff", + "categorical": "8b3ae6ff9854f1ffa66afcffb284fcffbf9bffffccb3fdffdac8ffffe8defefff6f3feff97500affb15c00ffc0702fffd0844bffdf9865ffeeac7efffdc197fffedac2fffff2eaff456321ff587539ff6b874fff7f9a66ff94ad7dffa9c094ffbed4abffd4e8c3ffebfcdcff0a6bdeff2e7de9ff478ff4ff5ea0ffff82b2f9ff9bc4feffb9d4fbffd3e5fffff0f6feffe01859fff52a65fff85979fffb778dfff996a3ffffacb6fffdc5cbfffddcdffffef1f3ff", + "base": "f52a65fff52a65fff52a65fff52a65fff52a65fff52a65ff00000000000000002e7de9ffd5d6dbff0000000000000000000000000000000000000000000000000000000000000000e1e2e7ffe1e2e7ffe1e2e7ffe1e2e7ffe1e2e7ffe1e2e7ffe1e2e7ffe1e2e7ffe1e2e7ffe1e2e7ffe1e2e7ffd5d6dbffc8c9ceffa8acb8ff737a8cffd5e5d5ffd5d6dbfff7d8dbff4db380fff52a65ffc5d5c5ffe7c8cbff59595bff1e725cff7086b5ff7086b5ffc53b53ff8c6c3eff587539ff3760bfff8c6c3eff9854f1ff8990a3ff2e7de9ff007197ff2e7de9ff007197ff007197ff2e7de9ffb15c00ff3760bfff5a607dff8990a3ff2e7de9ff9854f1ffb15c00ff007197ff3760bfff587539ff8c6c3efff52a65ffe1e2e7ff8990a3ffe1e2e7ffe1e2e7ffe1e2e7ffe1e2e7ff3760bfff8990a3ffe1e2e7ff3760bfff3760bfff2e7de9ff8990a3ff8990a3ff8990a3ff3760bfff8990a3ff8990a3ff3760bfff8990a3fff52a65fff52a65ff2e7de9ff2e7de9ff587539ff587539ffb15c00ffb15c00ff3760bfff8990a3ff2e7de9ff2e7de9ff2e7de9ff2e7de9ff8990a3ff" + }, + "tokyonight/dark": { + "modes": ["light","dark"], + "hues": ["gray","red","green","blue","purple","accent","interactive","neutral"], + "hue": "f6f9ffffc8d3f5ffa4aed6ff828bb8ff505574ff222436ff1e2030ff1a1b26ff16161cffffc1a8ffff966cffdd7e58ffbc6745ff9c5133ff7d3c21ff5f270fff431400ff230801fff4ffe6ffc3e88dffa5c674ff88a55bff6c8543ff51672dff374a16ff202f01ff0c1500ffabc6fcff82aaffff6d91deff5979beff46629fff334b80ff223664ff112248ff040f2effd4bdffffc099ffffa581deff8b6bbdff71559eff593f7fff422b62ff2c1846ff18062cffffc1a8ffff966cffdd7e58ffbc6745ff9c5133ff7d3c21ff5f270fff431400ff230801ffabc6fcff82aaffff6d91deff5979beff46629fff334b80ff223664ff112248ff040f2efff6f9ffffc8d3f5ffa4aed6ff828bb8ff505574ff222436ff1e2030ff1a1b26ff16161cff", + "categorical": "d4bdffffc099ffffa581deff8b6bbdff71559eff593f7fff422b62ff2c1846ff18062cffffc1a8ffff966cffdd7e58ffbc6745ff9c5133ff7d3c21ff5f270fff431400ff230801fff4ffe6ffc3e88dffa5c674ff88a55bff6c8543ff51672dff374a16ff202f01ff0c1500ffabc6fcff82aaffff6d91deff5979beff46629fff334b80ff223664ff112248ff040f2eff", + "base": "ff757fffff757fffff757fffff757fffff757fffff757fff000000000000000082aaffff1e2030ff00000000000000000000000000000000000000000000000000000000000000001a1b26ff1a1b26ff1a1b26ff1a1b26ff1a1b26ff1a1b26ff1a1b26ff1a1b26ff1a1b26ff1a1b26ff1a1b26ff1e2030ff222436ff505574ff737aa2ff20303bff1e2030ff37222cffb8db87ffe26a75ff1b2b34ff2d1f26ff8f909aff4fd6beff828bb8ff828bb8ffc53b53ffffc777ffc3e88dffc8d3f5ffffc777ffc099ffff828bb8ff82aaffff86e1fcff82aaffff86e1fcff86e1fcff82aaffffff966cffc8d3f5ff9099b2ff828bb8ff82aaffffc099ffffff966cff86e1fcffc8d3f5ffc3e88dffffc777ffff757fff1a1b26ff828bb8ff1a1b26ff1a1b26ff1a1b26ff1a1b26ffc8d3f5ff828bb8ff1a1b26ffc8d3f5ffc8d3f5ff82aaffff828bb8ff828bb8ff828bb8ffc8d3f5ff828bb8ff828bb8ffc8d3f5ff828bb8ffff757fffff757fff82aaffff82aaffffc3e88dffc3e88dffff966cffff966cffc8d3f5ff828bb8ff82aaffff82aaffff82aaffff82aaffff828bb8ff" + }, + "vesper/light": { + "modes": ["light","dark"], + "hues": ["gray","red","orange","green","accent","interactive","neutral"], + "hue": "000000ff101010ff525252ffa0a0a0ffc0c0c0ffe0e0e0fff0f0f0fffffffffffffffffff87173ffff8080fffe9391ffffa4a2fffbb7b4fffec5c2fffed4d2ffffe3e1fffff2f1fffdc190ffffc799fffdcea8fffcd5b5ffffdabdfffee0c9ffffe6d3fffeeddffffef3eaff90ffe2ff99ffe4ffabfde6ffb2fee9ffbafeebffc1ffedffcdfeefffd3fef1ffdcfef4fffdc190ffffc799fffdcea8fffcd5b5ffffdabdfffee0c9ffffe6d3fffeeddffffef3eafffdc190ffffc799fffdcea8fffcd5b5ffffdabdfffee0c9ffffe6d3fffeeddffffef3eaff000000ff101010ff525252ffa0a0a0ffc0c0c0ffe0e0e0fff0f0f0ffffffffffffffffff", + "categorical": "90ffe2ff99ffe4ffabfde6ffb2fee9ffbafeebffc1ffedffcdfeefffd3fef1ffdcfef4fffdc190ffffc799fffdcea8fffcd5b5ffffdabdfffee0c9ffffe6d3fffeeddffffef3eafff87173ffff8080fffe9391ffffa4a2fffbb7b4fffec5c2fffed4d2ffffe3e1fffff2f1ff", + "base": "ff8080ffff8080ffff8080ffff8080ffff8080ffff8080ff0000000000000000ffc799fff0f0f0ff0000000000000000000000000000000000000000000000000000000000000000fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0f0f0ffe0e0e0ffc0c0c0ffd0d0d0ffe8f5e8fff8f8f8fff5e8e8ff99ffe4ffff8080ffe8f5e8fff5e8e8ff6a6a6aff99ffe4ffa0a0a0ffa0a0a0ffff8080ff101010ffa0a0a0ff101010ff101010ffffc799ff65737effffc799ffa0a0a0ffffc799ffa0a0a0ff101010ff101010ff101010ff101010ffffc799ff8b8b8bffffc799ffa0a0a0ffffc799ffa0a0a0ff101010ff99ffe4ffffc799ff101010ffffffffffa0a0a0ffffffffffffffffffffffffffffffffff101010ffa0a0a0ffffffffff101010ff101010ffffc799ffa0a0a0ffa0a0a0ffa0a0a0ff101010ffa0a0a0ffa0a0a0ff101010ffa0a0a0ffff8080ffff8080ffffc799ffffc799ff99ffe4ff99ffe4ffffc799ffffc799ff101010ffa0a0a0ffffc799ffffc799ffffc799ffffc799ffa0a0a0ff" + }, + "vesper/dark": { + "modes": ["light","dark"], + "hues": ["gray","red","orange","green","accent","interactive","neutral"], + "hue": "ffffffffffffffffcececeffa0a0a0ff525252ff101010ff101010ff101010ff101010fffaafadffff8080ffde6b6bffbd5657ff9e4344ff7f2f32ff621d20ff460a10ff290104fffef2e8ffffc799ffdba97fffb88b66ff976f4eff765437ff573a21ff3a220cff1e0d01ffffffffff99ffe4ff7ddac2ff62b6a0ff479380ff2d7161ff125244ff013329ff021611fffef2e8ffffc799ffdba97fffb88b66ff976f4eff765437ff573a21ff3a220cff1e0d01fffef2e8ffffc799ffdba97fffb88b66ff976f4eff765437ff573a21ff3a220cff1e0d01ffffffffffffffffffcececeffa0a0a0ff525252ff101010ff101010ff101010ff101010ff", + "categorical": "ffffffff99ffe4ff7ddac2ff62b6a0ff479380ff2d7161ff125244ff013329ff021611fffef2e8ffffc799ffdba97fffb88b66ff976f4eff765437ff573a21ff3a220cff1e0d01fffaafadffff8080ffde6b6bffbd5657ff9e4344ff7f2f32ff621d20ff460a10ff290104ff", + "base": "ff8080ffff8080ffff8080ffff8080ffff8080ffff8080ff0000000000000000ffc799ff101010ff0000000000000000000000000000000000000000000000000000000000000000101010ff101010ff101010ff101010ff101010ff101010ff101010ff101010ff101010ff101010ff101010ff101010ff101010ff525252ff282828ff0d2818ff101010ff281a1aff99ffe4ffff8080ff0d2818ff281a1affa0a0a0ff99ffe4ffa0a0a0ffa0a0a0ffff8080ffffffffffa0a0a0ffffffffffffffffffffc799ff65737effffc799ffa0a0a0ffffc799ffa0a0a0ffffffffffffffffffffffffffffffffffffc799ff8b8b8bffffc799ffa0a0a0ffffc799ffa0a0a0ffffffffff99ffe4ffffc799ffffffffff101010ffa0a0a0ff101010ff101010ff101010ff101010ffffffffffa0a0a0ff101010ffffffffffffffffffffc799ffa0a0a0ffa0a0a0ffa0a0a0ffffffffffa0a0a0ffa0a0a0ffffffffffa0a0a0ffff8080ffff8080ffffc799ffffc799ff99ffe4ff99ffe4ffffc799ffffc799ffffffffffa0a0a0ffffc799ffffc799ffffc799ffffc799ffa0a0a0ff" + }, + "vercel/light": { + "modes": ["light","dark"], + "hues": ["gray","red","orange","green","blue","purple","accent","interactive","neutral"], + "hue": "000000ff171717ff3c3c3cff666666ffa6a6a6ffeaeaeafffafafaffffffffffffffffffc62438ffdc3545ffea5259fff76a6efffd8787fffda5a3fffcc0befffdd9d8fffef2f1ffec912fffff9500fffea54cfffdb36efffec089fffccea6fffddbbefffde7d4fffef3e9ff197e24ff388e3cff519e52ff68af68ff7ebf7eff95d094ffabe1aaffc2f2c0ffe3fee2ff0b62d0ff0070f3ff2e84feff5599ffff7aadf9ff96c0feffb6d2fcffd3e4fdfff0f6feff7e36b8ff8e4ec6ff9e64d4ffae7ae2ffbf8ff0ffd0a5feffdcc0fbffeadafdfff8f2ffff7e36b8ff8e4ec6ff9e64d4ffae7ae2ffbf8ff0ffd0a5feffdcc0fbffeadafdfff8f2ffff0b62d0ff0070f3ff2e84feff5599ffff7aadf9ff96c0feffb6d2fcffd3e4fdfff0f6feff000000ff171717ff3c3c3cff666666ffa6a6a6ffeaeaeafffafafaffffffffffffffffff", + "categorical": "0b62d0ff0070f3ff2e84feff5599ffff7aadf9ff96c0feffb6d2fcffd3e4fdfff0f6feff7e36b8ff8e4ec6ff9e64d4ffae7ae2ffbf8ff0ffd0a5feffdcc0fbffeadafdfff8f2ffff197e24ff388e3cff519e52ff68af68ff7ebf7eff95d094ffabe1aaffc2f2c0ffe3fee2ffec912fffff9500fffea54cfffdb36efffec089fffccea6fffddbbefffde7d4fffef3e9ffc62438ffdc3545ffea5259fff76a6efffd8787fffda5a3fffcc0befffdd9d8fffef2f1ff", + "base": "dc3545ffdc3545ffdc3545ffdc3545ffdc3545ffdc3545ff00000000000000000070f3fffafafaff0000000000000000000000000000000000000000000000000000000000000000fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffafafaffeaeaeaffa6a6a6ffeaeaeaffe6f9e9fffffffffffdecedff46a758ffe5484dffd6f5d6ffffe5e5ff666666ff46a758ff666666ff666666ffe5484dff666666ff46a758ff171717ffffb224ff8e4ec6ff999999ff12a594ff12a594ff0070f3ff12a594ff0070f3ff171717ffe93d82ff171717ff999999ff888888ff8e4ec6ffe93d82ffffb224ffe93d82ff171717ff46a758ff12a594ff0070f3ffffffffff666666ffffffffffffffffffffffffffffffffff171717ff666666ffffffffff171717ff171717ff0070f3ff666666ff666666ff666666ff171717ff666666ff666666ff171717ff666666ffdc3545ffdc3545ff0070f3ff0070f3ff388e3cff388e3cffff9500ffff9500ff171717ff666666ff0070f3ff0070f3ff0070f3ff0070f3ff666666ff" + }, + "vercel/dark": { + "modes": ["light","dark"], + "hues": ["gray","red","orange","green","blue","purple","accent","interactive","neutral"], + "hue": "ffffffffedededffb9b9b9ff878787ff565656ff292929ff1a1a1aff000000ff000000fff96162ffe5484dffc93a40ffad2c32ff931d26ff790f19ff5c0b12ff41050aff290103fffedaa9ffffb224ffdc9702ffb67e19ff92661aff744d01ff52380aff362201ff1a0f01ff55be68ff46a758ff389149ff297b3aff1b662cff0b511eff083c15ff03290cff021705ff3785f7ff0070f3ff1463ccff0953b2ff0e4591ff053679ff05295dff031c43ff01102dffa05bdeff8e4ec6ff7c42afff6b3598ff5a2a82ff491e6cff391357ff2a0743ff1c0030ffa05bdeff8e4ec6ff7c42afff6b3598ff5a2a82ff491e6cff391357ff2a0743ff1c0030ff3785f7ff0070f3ff1463ccff0953b2ff0e4591ff053679ff05295dff031c43ff01102dffffffffffedededffb9b9b9ff878787ff565656ff292929ff1a1a1aff000000ff000000ff", + "categorical": "3785f7ff0070f3ff1463ccff0953b2ff0e4591ff053679ff05295dff031c43ff01102dffa05bdeff8e4ec6ff7c42afff6b3598ff5a2a82ff491e6cff391357ff2a0743ff1c0030ff55be68ff46a758ff389149ff297b3aff1b662cff0b511eff083c15ff03290cff021705fffedaa9ffffb224ffdc9702ffb67e19ff92661aff744d01ff52380aff362201ff1a0f01fff96162ffe5484dffc93a40ffad2c32ff931d26ff790f19ff5c0b12ff41050aff290103ff", + "base": "e5484dffe5484dffe5484dffe5484dffe5484dffe5484dff00000000000000000070f3ff1a1a1aff0000000000000000000000000000000000000000000000000000000000000000000000ff000000ff000000ff000000ff000000ff000000ff000000ff000000ff000000ff000000ff000000ff1a1a1aff292929ff565656ff1f1f1fff0b1d0fff000000ff2a1314ff63c46dffff6166ff0f2613ff3c1618ff8a8a8aff63c46dff878787ff878787ffff6166ff878787ff63c46dffedededfff2a700ffbf7af0ff454545ff0ac7acff50e3c2ff52a8ffff0ac7acff52a8ffffedededfff75590ffedededff454545ff878787ffbf7af0fff75590fff2a700fff75590ffedededff63c46dff0ac7acff52a8ffff000000ff878787ff000000ff000000ff000000ff000000ffedededff878787ff000000ffedededffedededff0070f3ff878787ff878787ff878787ffedededff878787ff878787ffedededff878787ffe5484dffe5484dff52a8ffff52a8ffff46a758ff46a758ffffb224ffffb224ffedededff878787ff0070f3ff0070f3ff0070f3ff0070f3ff878787ff" + }, + "zenburn/light": { + "modes": ["light","dark"], + "hues": ["gray","red","yellow","green","cyan","purple","accent","interactive","neutral"], + "hue": "292929ff3f3f3fff565656ff6f6f6fffacaba3ffebebdbfff5f5e5ffffffefffffffffff7e4c4dff8f5f5fffa07272ffb18685ffc39a99ffd4aeadffe6c3c2fff8d8d7fffef2f1ff81814eff8f8f5fff9d9d70ffabac82ffbabb94ffc9c9a6ffd8d9b8ffe7e8cbfff7f7deff4d804dff5f8f5fff719e71ff84ae83ff96bd96ffa9cda9ffbdddbcffd0edcfffe4fee3ff4d6f80ff5f7f8fff718f9fff84a0aeff97b1bfffabc3cfffbed4e0ffd3e6f0ffebf7feff7f4c7fff8f5f8fffa0729fffb085b0ffc199c1ffd2add2ffe3c1e3fff5d6f4fffef0feff4d6f80ff5f7f8fff718f9fff84a0aeff97b1bfffabc3cfffbed4e0ffd3e6f0ffebf7feff4d6f80ff5f7f8fff718f9fff84a0aeff97b1bfffabc3cfffbed4e0ffd3e6f0ffebf7feff292929ff3f3f3fff565656ff6f6f6fffacaba3ffebebdbfff5f5e5ffffffefffffffffff", + "categorical": "7f4c7fff8f5f8fffa0729fffb085b0ffc199c1ffd2add2ffe3c1e3fff5d6f4fffef0feff4d6f80ff5f7f8fff718f9fff84a0aeff97b1bfffabc3cfffbed4e0ffd3e6f0ffebf7feff4d804dff5f8f5fff719e71ff84ae83ff96bd96ffa9cda9ffbdddbcffd0edcfffe4fee3ff81814eff8f8f5fff9d9d70ffabac82ffbabb94ffc9c9a6ffd8d9b8ffe7e8cbfff7f7deff7e4c4dff8f5f5fffa07272ffb18685ffc39a99ffd4aeadffe6c3c2fff8d8d7fffef2f1ff", + "base": "8f5f5fff8f5f5fff8f5f5fff8f5f5fff8f5f5fff8f5f5fff00000000000000005f7f8ffff5f5e5ff0000000000000000000000000000000000000000000000000000000000000000ffffefffffffefffffffefffffffefffffffefffffffefffffffefffffffefffffffefffffffefffffffeffff5f5e5ffebebdbffacaba3ffd0d0c0ffefffeffff5f5e5ffffefefff5f8f5fff8f5f5fffefffefffffefefff6f6f6fff5f8f5fff6f6f6fff5f8f8fff8f5f5fff6f6f6fff5f8f5fff3f3f3fff8f8f5fff8f8f5fff6f6f6fff5f7f8fff5f8f8fff5f7f8fff5f8f8fff5f8f8fff5f7f8fff8f7f5fff3f3f3fff5f7f8fff5f7f5fff5f7f8fff8f8f5fff5f8f5fff8f8f5fff3f3f3fff8f5f5fff5f8f8fff3f3f3fffffffefff6f6f6fffffffefffffffefffffffefffffffefff3f3f3fff6f6f6fffffffefff3f3f3fff3f3f3fff5f7f8fff6f6f6fff6f6f6fff6f6f6fff3f3f3fff6f6f6fff6f6f6fff3f3f3fff6f6f6fff8f5f5fff8f5f5fff8f7f5fff8f7f5fff5f8f5fff5f8f5fff8f8f5fff8f8f5fff3f3f3fff6f6f6fff5f7f8fff5f7f8fff5f7f8fff5f7f8fff6f6f6fff" + }, + "zenburn/dark": { + "modes": ["light","dark"], + "hues": ["gray","red","orange","yellow","green","cyan","purple","accent","interactive","neutral"], + "hue": "f8fde4ffdcdcccffbebdb5ff9f9f9fff7e7e7eff5f5f5fff4f4f4fff3f3f3fff303030ffe8aaa9ffcc9393ffb07d7dff966868ff7c5354ff634040ff4b2d2dff341b1cff1f0b0bffffcaa7ffdfaf8fffc09578ffa27b62ff85634cff694b37ff4e3524ff352012ff1d0d03fffffffffff0dfafffcdbe92ffab9d76ff8a7e5cff6b6042ff4d442aff312913ff171102ff92b692ff7f9f7fff6c896cff5a745aff485f48ff374b37ff273827ff172617ff091509ffa4eff2ff8cd0d3ff74b2b5ff5d9598ff47797bff325e60ff1d4446ff092c2eff021516fffaa2dfffdc8cc3ffbe76a8ffa2618eff864d74ff6b395cff512645ff38152fff21051affa4eff2ff8cd0d3ff74b2b5ff5d9598ff47797bff325e60ff1d4446ff092c2eff021516ffa4eff2ff8cd0d3ff74b2b5ff5d9598ff47797bff325e60ff1d4446ff092c2eff021516fff8fde4ffdcdcccffbebdb5ff9f9f9fff7e7e7eff5f5f5fff4f4f4fff3f3f3fff303030ff", + "categorical": "faa2dfffdc8cc3ffbe76a8ffa2618eff864d74ff6b395cff512645ff38152fff21051affa4eff2ff8cd0d3ff74b2b5ff5d9598ff47797bff325e60ff1d4446ff092c2eff021516ff92b692ff7f9f7fff6c896cff5a745aff485f48ff374b37ff273827ff172617ff091509fffffffffff0dfafffcdbe92ffab9d76ff8a7e5cff6b6042ff4d442aff312913ff171102ffe8aaa9ffcc9393ffb07d7dff966868ff7c5354ff634040ff4b2d2dff341b1cff1f0b0bffffcaa7ffdfaf8fffc09578ffa27b62ff85634cff694b37ff4e3524ff352012ff1d0d03ff", + "base": "cc9393ffcc9393ffcc9393ffcc9393ffcc9393ffcc9393ff00000000000000008cd0d3ff4f4f4fff00000000000000000000000000000000000000000000000000000000000000003f3f3fff3f3f3fff3f3f3fff3f3f3fff3f3f3fff3f3f3fff3f3f3fff3f3f3fff3f3f3fff3f3f3fff3f3f3fff4f4f4fff5f5f5fff7e7e7eff5f5f5fff4f5f4fff4f4f4fff5f4f4fff8fb28fffdca3a3ff4f5f4fff5f4f4fffd2d2d2ff7f9f7fff9f9f9fff93e0e3ffcc9393ff9f9f9fff7f9f7fffdcdcccffe0cf9ffff0dfafff9f9f9fff8cd0d3ff93e0e3ff8cd0d3ff93e0e3ff93e0e3ff8cd0d3ffdfaf8fffdcdcccff8cd0d3ff7f9f7fff8cd0d3fff0dfafff8fb28ffff0dfafffdcdcccffcc9393ff93e0e3ffdcdcccff3f3f3fff9f9f9fff3f3f3fff3f3f3fff3f3f3fff3f3f3fffdcdcccff9f9f9fff3f3f3fffdcdcccffdcdcccff8cd0d3ff9f9f9fff9f9f9fff9f9f9fffdcdcccff9f9f9fff9f9f9fffdcdcccff9f9f9fffcc9393ffcc9393ffdfaf8fffdfaf8fff7f9f7fff7f9f7ffff0dfaffff0dfafffdcdcccff9f9f9fff8cd0d3ff8cd0d3ff8cd0d3ff8cd0d3ff9f9f9fff" + }, + "carbonfox/light": { + "modes": ["light","dark"], + "hues": ["gray","red","green","cyan","blue","accent","interactive","neutral"], + "hue": "000000ff161616ff404040ff6f6f6fffafafaffff4f4f4fff4f4f4ffffffffffffffffff7f0d40ff9f1853ffb33b68ffc7577dffdb7293ffef8daafffdabc2fffcd0dbfffef1f4ff166b2eff198038ff3c924fff57a465ff71b77cff8aca93ffa3ddabffbcf0c3ffe1fee4ff056965ff007d79ff348f8bff51a19dff6cb3afff86c6c2ffa0d9d5ffb9ece9ffd7fffcff06369cff0043ceff235fdfff3f79f0ff6193f6ff82adffffa8c5fcffccdefefff0f5ffff7f0d40ff9f1853ffb33b68ffc7577dffdb7293ffef8daafffdabc2fffcd0dbfffef1f4ff06369cff0043ceff235fdfff3f79f0ff6193f6ff82adffffa8c5fcffccdefefff0f5ffff000000ff161616ff404040ff6f6f6fffafafaffff4f4f4fff4f4f4ffffffffffffffffff", + "categorical": "06369cff0043ceff235fdfff3f79f0ff6193f6ff82adffffa8c5fcffccdefefff0f5ffff7f0d40ff9f1853ffb33b68ffc7577dffdb7293ffef8daafffdabc2fffcd0dbfffef1f4ff166b2eff198038ff3c924fff57a465ff71b77cff8aca93ffa3ddabffbcf0c3ffe1fee4ff056965ff007d79ff348f8bff51a19dff6cb3afff86c6c2ffa0d9d5ffb9ece9ffd7fffcff", + "base": "9f1853ff9f1853ff9f1853ff9f1853ff9f1853ff9f1853ff00000000000000000043cefff4f4f4ff0000000000000000000000000000000000000000000000000000000000000000fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff4f4f4fff4f4f4ffafafafffdcdcdcffdefbe6fff4f4f4fffff1f1ff198038ff9f1853ffdefbe6fffff1f1ff6f6f6fff198038ff6f6f6fff0043ceff9f1853ff6f6f6fff198038ff525252ff6929c4ff0043ceffdcdcdcff0043ceff0072c3ff0043ceff0072c3ff0072c3ff0072c3ff000000ff161616ff0043ceff6f6f6fff0043ceff6929c4ff007d79ff525252ff161616ff198038ff007d79ff161616ffffffffff6f6f6fffffffffffffffffffffffffffffffffff161616ff6f6f6fffffffffff161616ff161616ff0043ceff6f6f6fff6f6f6fff6f6f6fff161616ff6f6f6fff6f6f6fff161616ff6f6f6fff9f1853ff9f1853ff0043ceff0043ceff198038ff198038ff007d79ff007d79ff161616ff6f6f6fff0043ceff0043ceff0043ceff0043ceff6f6f6fff" + }, + "carbonfox/dark": { + "modes": ["light","dark"], + "hues": ["gray","red","yellow","green","blue","accent","interactive","neutral"], + "hue": "fffffffff2f4f8ffb6bac2ff7d848fff49504dff1e1e1eff1a1a1aff161616ff121212fffcb0ceffff7eb6ffdd699cffbd5483ff9d406aff7e2d53ff611a3cff450727ff260213fffee49dfff1c21bffcca62cffac8a12ff8a6f16ff6a5511ff4d3d08ff312605ff181100ff37d97cff25be6aff0ea458ff1d894cff06713bff0a582eff064120ff012b13ff001707ff85c8faff33b1ffff2098deff087fbeff12679aff105178ff093b59ff02263dff011322fffcb0ceffff7eb6ffdd699cffbd5483ff9d406aff7e2d53ff611a3cff450727ff260213ff85c8faff33b1ffff2098deff087fbeff12679aff105178ff093b59ff02263dff011322fffffffffff2f4f8ffb6bac2ff7d848fff49504dff1e1e1eff1a1a1aff161616ff121212ff", + "categorical": "85c8faff33b1ffff2098deff087fbeff12679aff105178ff093b59ff02263dff011322fffcb0ceffff7eb6ffdd699cffbd5483ff9d406aff7e2d53ff611a3cff450727ff260213ff37d97cff25be6aff0ea458ff1d894cff06713bff0a582eff064120ff012b13ff001707fffee49dfff1c21bffcca62cffac8a12ff8a6f16ff6a5511ff4d3d08ff312605ff181100ff", + "base": "ee5396ffee5396ffee5396ffee5396ffee5396ffee5396ff000000000000000033b1ffff1a1a1aff0000000000000000000000000000000000000000000000000000000000000000161616ff161616ff161616ff161616ff161616ff161616ff161616ff161616ff161616ff161616ff161616ff1a1a1aff1e1e1eff49504dff303030ff0f2418ff161616ff2a1216ff7dffaaffff9999ff0f2418ff2a1216ff808792ff50fa7bff7d848fff78a9ffffff6b6bff7d848fff25be6affa9afbcffbe95ffff8cb6ffff303030ff78a9ffff33b1ffff78a9ffff33b1ffff33b1ffff33b1fffffffffffff2f4f8ff33b1ffff7d848fff8cb6ffffbe95ffff3ddbd9ffa9afbcffa9afbcff25be6aff08bdbaffdfdfe0ff161616ff7d848fff161616ff161616ff161616ff161616fff2f4f8ff7d848fff161616fff2f4f8fff2f4f8ff33b1ffff7d848fff7d848fff7d848ffff2f4f8ff7d848fff7d848ffff2f4f8ff7d848fffee5396ffee5396ff78a9ffff78a9ffff25be6aff25be6afff1c21bfff1c21bfff2f4f8ff7d848fff33b1ffff33b1ffff33b1ffff33b1ffff7d848fff" + }, + "system:dark/dark": { + "modes": ["light","dark"], + "hues": ["gray","red","yellow","cyan","purple","accent","interactive","neutral"], + "hue": "d2d8d7ffc5c8c6ffb8b8b7ffa9a9a9ff6a6d6cff323539ff2b2e31ff1d1f210010111200e67676ffcc6666ffb25656ff994647ff813738ff69292aff521b1dff3d0d10ff280205ffffe9c1fff0c674ffcea85effad8b48ff8e7033ff6f551eff523c07ff342504ff191000ffa1dad2ff8abeb7ff74a39dff5e8983ff4a6f6aff365753ff23403cff112a27ff021513ffcbaad5ffb294bbff997ea1ff816989ff6a5571ff54415aff3f2f43ff2a1d2eff180d1bffa1dad2ff8abeb7ff74a39dff5e8983ff4a6f6aff365753ff23403cff112a27ff021513ffa1dad2ff8abeb7ff74a39dff5e8983ff4a6f6aff365753ff23403cff112a27ff021513ffd2d8d7ffc5c8c6ffb8b8b7ffa9a9a9ff6a6d6cff323539ff2b2e31ff1d1f210010111200", + "categorical": "cbaad5ffb294bbff997ea1ff816989ff6a5571ff54415aff3f2f43ff2a1d2eff180d1bffa1dad2ff8abeb7ff74a39dff5e8983ff4a6f6aff365753ff23403cff112a27ff021513ffffe9c1fff0c674ffcea85effad8b48ff8e7033ff6f551eff523c07ff342504ff191000ffe67676ffcc6666ffb25656ff994647ff813738ff69292aff521b1dff3d0d10ff280205ff", + "base": "cc6666ffcc6666ffcc6666ffcc6666ffcc6666ffcc6666ff00000000000000008abeb7ff2b2e31ff00000000000000000000000000000000000000000000000000000000000000001d1f21001d1f21001d1f21001d1f21001d1f21001d1f21001d1f21001d1f21001d1f21001d1f21001d1f21002b2e31ff323539ff6a6d6cff4e5359ff3e4231ff2b2e31ff442f30ffb9ca4affd54e53ff494d3dff4e3a3dffa9a9a9ffb5bd68ff4e5359ff4e5359ffcc6666fff0c674ffb5bd68ffc5c8c6fff0c674ffc5c8c6ff4e5359ff81a2beff8abeb7ff81a2beff8abeb7ff8abeb7ff81a2beffc5c8c6ffc5c8c6ff555b61ffa9a9a9ff81a2beffb294bbfff0c674ff8abeb7ffc5c8c6ffb5bd68ff8abeb7ffc5c8c6ff1d1f21ffa9a9a9ff1d1f21ff1d1f21ff1d1f21ff1d1f21ffc5c8c6ffa9a9a9ff1d1f21ffc5c8c6ffc5c8c6ff8abeb7ffa9a9a9ffa9a9a9ffa9a9a9ffc5c8c6ffa9a9a9ffa9a9a9ffc5c8c6ffa9a9a9ffcc6666ffcc6666ff8abeb7ff8abeb7ffb5bd68ffb5bd68fff0c674fff0c674ffc5c8c6ffa9a9a9ff8abeb7ff8abeb7ff8abeb7ff8abeb7ffa9a9a9ff" + }, + "system:dark/light": { + "modes": ["light","dark"], + "hues": ["gray","red","yellow","cyan","purple","accent","interactive","neutral"], + "hue": "ffffffffc5c8c6ff7e7e7dff3c3c3cff2a2b2bff1a1b1dff1b1c1eff1d1f21001f222400bf5455ffcc6666ffd87877ffe48a88fff09c99fffcaeabfffbc6c4ffffdbdafffef2f1ffedc066fff0c674fff3cc81fff7d38efffad99bfffee0a7ffffe6b9ffffedcdfffef4e1ff7eb5aeff8abeb7ff96c7c0ffa3cfc9ffafd8d2ffbce1dcffc8eae5ffd5f3eeffe1fcf8ffa788b1ffb294bbffbda1c5ffc8adcfffd2badaffddc7e4ffe8d4effff4e1f9fffbf1ffff7eb5aeff8abeb7ff96c7c0ffa3cfc9ffafd8d2ffbce1dcffc8eae5ffd5f3eeffe1fcf8ff7eb5aeff8abeb7ff96c7c0ffa3cfc9ffafd8d2ffbce1dcffc8eae5ffd5f3eeffe1fcf8ffffffffffc5c8c6ff7e7e7dff3c3c3cff2a2b2bff1a1b1dff1b1c1eff1d1f21001f222400", + "categorical": "a788b1ffb294bbffbda1c5ffc8adcfffd2badaffddc7e4ffe8d4effff4e1f9fffbf1ffff7eb5aeff8abeb7ff96c7c0ffa3cfc9ffafd8d2ffbce1dcffc8eae5ffd5f3eeffe1fcf8ffedc066fff0c674fff3cc81fff7d38efffad99bfffee0a7ffffe6b9ffffedcdfffef4e1ffbf5455ffcc6666ffd87877ffe48a88fff09c99fffcaeabfffbc6c4ffffdbdafffef2f1ff", + "base": "cc6666ffcc6666ffcc6666ffcc6666ffcc6666ffcc6666ff00000000000000008abeb7ff1b1c1eff00000000000000000000000000000000000000000000000000000000000000001d1f21001d1f21001d1f21001d1f21001d1f21001d1f21001d1f21001d1f21001d1f21001d1f21001d1f21001b1c1eff1a1b1dff2a2b2bff161719ff32352bff1b1c1eff36292bffb9ca4affd54e53ff313328ff342628ff3c3c3cffb5bd68ff161719ff161719ffcc6666fff0c674ffb5bd68ffc5c8c6fff0c674ffc5c8c6ff161719ff81a2beff8abeb7ff81a2beff8abeb7ff8abeb7ff81a2beffc5c8c6ffc5c8c6ff151618ff3c3c3cff81a2beffb294bbfff0c674ff8abeb7ffc5c8c6ffb5bd68ff8abeb7ffc5c8c6ff1d1f21ff3c3c3cff1d1f21ff1d1f21ff1d1f21ff1d1f21ffc5c8c6ff3c3c3cff1d1f21ffc5c8c6ffc5c8c6ff8abeb7ff3c3c3cff3c3c3cff3c3c3cffc5c8c6ff3c3c3cff3c3c3cffc5c8c6ff3c3c3cffcc6666ffcc6666ff8abeb7ff8abeb7ffb5bd68ffb5bd68fff0c674fff0c674ffc5c8c6ff3c3c3cff8abeb7ff8abeb7ff8abeb7ff8abeb7ff3c3c3cff" + }, + "system:light/dark": { + "modes": ["light","dark"], + "hues": ["gray","red","yellow","cyan","purple","accent","interactive","neutral"], + "hue": "3c3c55ff586e75ff919a94ffc8c8c8ffe2dfd6fffdf6e3fffdf6e3fffdf6e300fdf6e300e67676ffcc6666ffb25656ff994647ff813738ff69292aff521b1dff3d0d10ff280205ffffe9c1fff0c674ffcea85effad8b48ff8e7033ff6f551eff523c07ff342504ff191000ffa1dad2ff8abeb7ff74a39dff5e8983ff4a6f6aff365753ff23403cff112a27ff021513ffcbaad5ffb294bbff997ea1ff816989ff6a5571ff54415aff3f2f43ff2a1d2eff180d1bffa1dad2ff8abeb7ff74a39dff5e8983ff4a6f6aff365753ff23403cff112a27ff021513ffa1dad2ff8abeb7ff74a39dff5e8983ff4a6f6aff365753ff23403cff112a27ff021513ff3c3c55ff586e75ff919a94ffc8c8c8ffe2dfd6fffdf6e3fffdf6e3fffdf6e300fdf6e300", + "categorical": "cbaad5ffb294bbff997ea1ff816989ff6a5571ff54415aff3f2f43ff2a1d2eff180d1bffa1dad2ff8abeb7ff74a39dff5e8983ff4a6f6aff365753ff23403cff112a27ff021513ffffe9c1fff0c674ffcea85effad8b48ff8e7033ff6f551eff523c07ff342504ff191000ffe67676ffcc6666ffb25656ff994647ff813738ff69292aff521b1dff3d0d10ff280205ff", + "base": "cc6666ffcc6666ffcc6666ffcc6666ffcc6666ffcc6666ff00000000000000008abeb7fffdf6e3ff0000000000000000000000000000000000000000000000000000000000000000fdf6e300fdf6e300fdf6e300fdf6e300fdf6e300fdf6e300fdf6e300fdf6e300fdf6e300fdf6e300fdf6e300fdf6e3fffdf6e3ffe2dfd6fffff8e4ffede9c8fffdf6e3fff2d6c8ffb9ca4affd54e53ffede9c8fff2d6c8ffc8c8c8ffb5bd68fffff8e4fffff8e4ffcc6666fff0c674ffb5bd68ff586e75fff0c674ff586e75fffff8e4ff81a2beff8abeb7ff81a2beff8abeb7ff8abeb7ff81a2beff586e75ff586e75fffff8e5ffc8c8c8ff81a2beffb294bbfff0c674ff8abeb7ff586e75ffb5bd68ff8abeb7ff586e75fffdf6e3ffc8c8c8fffdf6e3fffdf6e3fffdf6e3fffdf6e3ff586e75ffc8c8c8fffdf6e3ff586e75ff586e75ff8abeb7ffc8c8c8ffc8c8c8ffc8c8c8ff586e75ffc8c8c8ffc8c8c8ff586e75ffc8c8c8ffcc6666ffcc6666ff8abeb7ff8abeb7ffb5bd68ffb5bd68fff0c674fff0c674ff586e75ffc8c8c8ff8abeb7ff8abeb7ff8abeb7ff8abeb7ffc8c8c8ff" + }, + "system:light/light": { + "modes": ["light","dark"], + "hues": ["gray","red","yellow","cyan","purple","accent","interactive","neutral"], + "hue": "767793ff586e75ff545d57ff4b4b4bff949494ffe5e5e5ffeeeeeefffdf6e300fefefe00bf5455ffcc6666ffd87877ffe48a88fff09c99fffcaeabfffbc6c4ffffdbdafffef2f1ffedc066fff0c674fff3cc81fff7d38efffad99bfffee0a7ffffe6b9ffffedcdfffef4e1ff7eb5aeff8abeb7ff96c7c0ffa3cfc9ffafd8d2ffbce1dcffc8eae5ffd5f3eeffe1fcf8ffa788b1ffb294bbffbda1c5ffc8adcfffd2badaffddc7e4ffe8d4effff4e1f9fffbf1ffff7eb5aeff8abeb7ff96c7c0ffa3cfc9ffafd8d2ffbce1dcffc8eae5ffd5f3eeffe1fcf8ff7eb5aeff8abeb7ff96c7c0ffa3cfc9ffafd8d2ffbce1dcffc8eae5ffd5f3eeffe1fcf8ff767793ff586e75ff545d57ff4b4b4bff949494ffe5e5e5ffeeeeeefffdf6e300fefefe00", + "categorical": "a788b1ffb294bbffbda1c5ffc8adcfffd2badaffddc7e4ffe8d4effff4e1f9fffbf1ffff7eb5aeff8abeb7ff96c7c0ffa3cfc9ffafd8d2ffbce1dcffc8eae5ffd5f3eeffe1fcf8ffedc066fff0c674fff3cc81fff7d38efffad99bfffee0a7ffffe6b9ffffedcdfffef4e1ffbf5455ffcc6666ffd87877ffe48a88fff09c99fffcaeabfffbc6c4ffffdbdafffef2f1ff", + "base": "cc6666ffcc6666ffcc6666ffcc6666ffcc6666ffcc6666ff00000000000000008abeb7ffeeeeeeff0000000000000000000000000000000000000000000000000000000000000000fdf6e300fdf6e300fdf6e300fdf6e300fdf6e300fdf6e300fdf6e300fdf6e300fdf6e300fdf6e300fdf6e300eeeeeeffe5e5e5ff949494ffc3c3c3fff3eed2ffeeeeeefff6e2d2ffb9ca4affd54e53ffe6e7dbffe9dbdbff4b4b4bffb5bd68ffc3c3c3ffc3c3c3ffcc6666fff0c674ffb5bd68ff586e75fff0c674ff586e75ffc3c3c3ff81a2beff8abeb7ff81a2beff8abeb7ff8abeb7ff81a2beff586e75ff586e75ffbbbbbbff4b4b4bff81a2beffb294bbfff0c674ff8abeb7ff586e75ffb5bd68ff8abeb7ff586e75fffdf6e3ff4b4b4bfffdf6e3fffdf6e3fffdf6e3fffdf6e3ff586e75ff4b4b4bfffdf6e3ff586e75ff586e75ff8abeb7ff4b4b4bff4b4b4bff4b4b4bff586e75ff4b4b4bff4b4b4bff586e75ff4b4b4bffcc6666ffcc6666ff8abeb7ff8abeb7ffb5bd68ffb5bd68fff0c674fff0c674ff586e75ff4b4b4bff8abeb7ff8abeb7ff8abeb7ff8abeb7ff4b4b4bff" + }, + "system:black/dark": { + "modes": ["light","dark"], + "hues": ["gray","red","yellow","cyan","purple","accent","interactive","neutral"], + "hue": "ffffffffffffffffd9d9d9ffb4b4b4ff616161ff191919ff111111ff0000000000000000e67676ffcc6666ffb25656ff994647ff813738ff69292aff521b1dff3d0d10ff280205ffffe9c1fff0c674ffcea85effad8b48ff8e7033ff6f551eff523c07ff342504ff191000ffa1dad2ff8abeb7ff74a39dff5e8983ff4a6f6aff365753ff23403cff112a27ff021513ffcbaad5ffb294bbff997ea1ff816989ff6a5571ff54415aff3f2f43ff2a1d2eff180d1bffa1dad2ff8abeb7ff74a39dff5e8983ff4a6f6aff365753ff23403cff112a27ff021513ffa1dad2ff8abeb7ff74a39dff5e8983ff4a6f6aff365753ff23403cff112a27ff021513ffffffffffffffffffd9d9d9ffb4b4b4ff616161ff191919ff111111ff0000000000000000", + "categorical": "cbaad5ffb294bbff997ea1ff816989ff6a5571ff54415aff3f2f43ff2a1d2eff180d1bffa1dad2ff8abeb7ff74a39dff5e8983ff4a6f6aff365753ff23403cff112a27ff021513ffffe9c1fff0c674ffcea85effad8b48ff8e7033ff6f551eff523c07ff342504ff191000ffe67676ffcc6666ffb25656ff994647ff813738ff69292aff521b1dff3d0d10ff280205ff", + "base": "cc6666ffcc6666ffcc6666ffcc6666ffcc6666ffcc6666ff00000000000000008abeb7ff111111ff00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000111111ff191919ff616161ff3b3b3bff282a17ff111111ff2d1616ffb9ca4affd54e53ff353724ff3a2424ffb4b4b4ffb5bd68ff3b3b3bff3b3b3bffcc6666fff0c674ffb5bd68fffffffffff0c674ffffffffff3b3b3bff81a2beff8abeb7ff81a2beff8abeb7ff8abeb7ff81a2beffffffffffffffffff444444ffb4b4b4ff81a2beffb294bbfff0c674ff8abeb7ffffffffffb5bd68ff8abeb7ffffffffff000000ffb4b4b4ff000000ff000000ff000000ff000000ffffffffffb4b4b4ff000000ffffffffffffffffff8abeb7ffb4b4b4ffb4b4b4ffb4b4b4ffffffffffb4b4b4ffb4b4b4ffffffffffb4b4b4ffcc6666ffcc6666ff8abeb7ff8abeb7ffb5bd68ffb5bd68fff0c674fff0c674ffffffffffb4b4b4ff8abeb7ff8abeb7ff8abeb7ff8abeb7ffb4b4b4ff" + }, + "system:black/light": { + "modes": ["light","dark"], + "hues": ["gray","red","yellow","cyan","purple","accent","interactive","neutral"], + "hue": "ffffffffffffffff989898ff3c3c3cff111111ff000000ff000000ff0000000000000000bf5455ffcc6666ffd87877ffe48a88fff09c99fffcaeabfffbc6c4ffffdbdafffef2f1ffedc066fff0c674fff3cc81fff7d38efffad99bfffee0a7ffffe6b9ffffedcdfffef4e1ff7eb5aeff8abeb7ff96c7c0ffa3cfc9ffafd8d2ffbce1dcffc8eae5ffd5f3eeffe1fcf8ffa788b1ffb294bbffbda1c5ffc8adcfffd2badaffddc7e4ffe8d4effff4e1f9fffbf1ffff7eb5aeff8abeb7ff96c7c0ffa3cfc9ffafd8d2ffbce1dcffc8eae5ffd5f3eeffe1fcf8ff7eb5aeff8abeb7ff96c7c0ffa3cfc9ffafd8d2ffbce1dcffc8eae5ffd5f3eeffe1fcf8ffffffffffffffffff989898ff3c3c3cff111111ff000000ff000000ff0000000000000000", + "categorical": "a788b1ffb294bbffbda1c5ffc8adcfffd2badaffddc7e4ffe8d4effff4e1f9fffbf1ffff7eb5aeff8abeb7ff96c7c0ffa3cfc9ffafd8d2ffbce1dcffc8eae5ffd5f3eeffe1fcf8ffedc066fff0c674fff3cc81fff7d38efffad99bfffee0a7ffffe6b9ffffedcdfffef4e1ffbf5455ffcc6666ffd87877ffe48a88fff09c99fffcaeabfffbc6c4ffffdbdafffef2f1ff", + "base": "cc6666ffcc6666ffcc6666ffcc6666ffcc6666ffcc6666ff00000000000000008abeb7ff000000ff00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000ff000000ff111111ff000000ff191a0fff000000ff1d0e0effb9ca4affd54e53ff191a0fff1d0e0eff3c3c3cffb5bd68ff000000ff000000ffcc6666fff0c674ffb5bd68fffffffffff0c674ffffffffff000000ff81a2beff8abeb7ff81a2beff8abeb7ff8abeb7ff81a2beffffffffffffffffff000000ff3c3c3cff81a2beffb294bbfff0c674ff8abeb7ffffffffffb5bd68ff8abeb7ffffffffff000000ff3c3c3cff000000ff000000ff000000ff000000ffffffffff3c3c3cff000000ffffffffffffffffff8abeb7ff3c3c3cff3c3c3cff3c3c3cffffffffff3c3c3cff3c3c3cffffffffff3c3c3cffcc6666ffcc6666ff8abeb7ff8abeb7ffb5bd68ffb5bd68fff0c674fff0c674ffffffffff3c3c3cff8abeb7ff8abeb7ff8abeb7ff8abeb7ff3c3c3cff" + }, + "system:white/dark": { + "modes": ["light","dark"], + "hues": ["gray","red","yellow","cyan","purple","accent","interactive","neutral"], + "hue": "000000ff000000ff4c4c4cffc8c8c8ffe3e3e3ffffffffffffffffffffffff00ffffff00e67676ffcc6666ffb25656ff994647ff813738ff69292aff521b1dff3d0d10ff280205ffffe9c1fff0c674ffcea85effad8b48ff8e7033ff6f551eff523c07ff342504ff191000ffa1dad2ff8abeb7ff74a39dff5e8983ff4a6f6aff365753ff23403cff112a27ff021513ffcbaad5ffb294bbff997ea1ff816989ff6a5571ff54415aff3f2f43ff2a1d2eff180d1bffa1dad2ff8abeb7ff74a39dff5e8983ff4a6f6aff365753ff23403cff112a27ff021513ffa1dad2ff8abeb7ff74a39dff5e8983ff4a6f6aff365753ff23403cff112a27ff021513ff000000ff000000ff4c4c4cffc8c8c8ffe3e3e3ffffffffffffffffffffffff00ffffff00", + "categorical": "cbaad5ffb294bbff997ea1ff816989ff6a5571ff54415aff3f2f43ff2a1d2eff180d1bffa1dad2ff8abeb7ff74a39dff5e8983ff4a6f6aff365753ff23403cff112a27ff021513ffffe9c1fff0c674ffcea85effad8b48ff8e7033ff6f551eff523c07ff342504ff191000ffe67676ffcc6666ffb25656ff994647ff813738ff69292aff521b1dff3d0d10ff280205ff", + "base": "cc6666ffcc6666ffcc6666ffcc6666ffcc6666ffcc6666ff00000000000000008abeb7ffffffffff0000000000000000000000000000000000000000000000000000000000000000ffffff00ffffff00ffffff00ffffff00ffffff00ffffff00ffffff00ffffff00ffffff00ffffff00ffffff00ffffffffffffffffe3e3e3ffffffffffeff0defffffffffff4ddddffb9ca4affd54e53ffeff0defff4ddddffc8c8c8ffb5bd68ffffffffffffffffffcc6666fff0c674ffb5bd68ff000000fff0c674ff000000ffffffffff81a2beff8abeb7ff81a2beff8abeb7ff8abeb7ff81a2beff000000ff000000ffffffffffc8c8c8ff81a2beffb294bbfff0c674ff8abeb7ff000000ffb5bd68ff8abeb7ff000000ffffffffffc8c8c8ffffffffffffffffffffffffffffffffff000000ffc8c8c8ffffffffff000000ff000000ff8abeb7ffc8c8c8ffc8c8c8ffc8c8c8ff000000ffc8c8c8ffc8c8c8ff000000ffc8c8c8ffcc6666ffcc6666ff8abeb7ff8abeb7ffb5bd68ffb5bd68fff0c674fff0c674ff000000ffc8c8c8ff8abeb7ff8abeb7ff8abeb7ff8abeb7ffc8c8c8ff" + }, + "system:white/light": { + "modes": ["light","dark"], + "hues": ["gray","red","yellow","cyan","purple","accent","interactive","neutral"], + "hue": "000000ff000000ff171717ff4b4b4bff949494ffe5e5e5ffeeeeeeffffffff00ffffff00bf5455ffcc6666ffd87877ffe48a88fff09c99fffcaeabfffbc6c4ffffdbdafffef2f1ffedc066fff0c674fff3cc81fff7d38efffad99bfffee0a7ffffe6b9ffffedcdfffef4e1ff7eb5aeff8abeb7ff96c7c0ffa3cfc9ffafd8d2ffbce1dcffc8eae5ffd5f3eeffe1fcf8ffa788b1ffb294bbffbda1c5ffc8adcfffd2badaffddc7e4ffe8d4effff4e1f9fffbf1ffff7eb5aeff8abeb7ff96c7c0ffa3cfc9ffafd8d2ffbce1dcffc8eae5ffd5f3eeffe1fcf8ff7eb5aeff8abeb7ff96c7c0ffa3cfc9ffafd8d2ffbce1dcffc8eae5ffd5f3eeffe1fcf8ff000000ff000000ff171717ff4b4b4bff949494ffe5e5e5ffeeeeeeffffffff00ffffff00", + "categorical": "a788b1ffb294bbffbda1c5ffc8adcfffd2badaffddc7e4ffe8d4effff4e1f9fffbf1ffff7eb5aeff8abeb7ff96c7c0ffa3cfc9ffafd8d2ffbce1dcffc8eae5ffd5f3eeffe1fcf8ffedc066fff0c674fff3cc81fff7d38efffad99bfffee0a7ffffe6b9ffffedcdfffef4e1ffbf5455ffcc6666ffd87877ffe48a88fff09c99fffcaeabfffbc6c4ffffdbdafffef2f1ff", + "base": "cc6666ffcc6666ffcc6666ffcc6666ffcc6666ffcc6666ff00000000000000008abeb7ffeeeeeeff0000000000000000000000000000000000000000000000000000000000000000ffffff00ffffff00ffffff00ffffff00ffffff00ffffff00ffffff00ffffff00ffffff00ffffff00ffffff00eeeeeeffe5e5e5ff949494ffc3c3c3fff5f6eaffeeeeeefff8eaeaffb9ca4affd54e53ffe6e7dbffe9dbdbff4b4b4bffb5bd68ffc3c3c3ffc3c3c3ffcc6666fff0c674ffb5bd68ff000000fff0c674ff000000ffc3c3c3ff81a2beff8abeb7ff81a2beff8abeb7ff8abeb7ff81a2beff000000ff000000ffbbbbbbff4b4b4bff81a2beffb294bbfff0c674ff8abeb7ff000000ffb5bd68ff8abeb7ff000000ffffffffff4b4b4bffffffffffffffffffffffffffffffffff000000ff4b4b4bffffffffff000000ff000000ff8abeb7ff4b4b4bff4b4b4bff4b4b4bff000000ff4b4b4bff4b4b4bff000000ff4b4b4bffcc6666ffcc6666ff8abeb7ff8abeb7ffb5bd68ffb5bd68fff0c674fff0c674ff000000ff4b4b4bff8abeb7ff8abeb7ff8abeb7ff8abeb7ff4b4b4bff" + }, + "system:palette/dark": { + "modes": ["light","dark"], + "hues": ["gray","red","yellow","cyan","purple","accent","interactive","neutral"], + "hue": "d2d8d7ffc5c8c6ffb8b8b7ffa9a9a9ff6a6d6cff323539ff2b2e31ff1d1f210010111200e67676ffcc6666ffb25656ff994647ff813738ff69292aff521b1dff3d0d10ff280205ffffe9c1fff0c674ffcea85effad8b48ff8e7033ff6f551eff523c07ff342504ff191000ffa1dad2ff8abeb7ff74a39dff5e8983ff4a6f6aff365753ff23403cff112a27ff021513ffcbaad5ffb294bbff997ea1ff816989ff6a5571ff54415aff3f2f43ff2a1d2eff180d1bffa1dad2ff8abeb7ff74a39dff5e8983ff4a6f6aff365753ff23403cff112a27ff021513ffa1dad2ff8abeb7ff74a39dff5e8983ff4a6f6aff365753ff23403cff112a27ff021513ffd2d8d7ffc5c8c6ffb8b8b7ffa9a9a9ff6a6d6cff323539ff2b2e31ff1d1f210010111200", + "categorical": "cbaad5ffb294bbff997ea1ff816989ff6a5571ff54415aff3f2f43ff2a1d2eff180d1bffa1dad2ff8abeb7ff74a39dff5e8983ff4a6f6aff365753ff23403cff112a27ff021513ffffe9c1fff0c674ffcea85effad8b48ff8e7033ff6f551eff523c07ff342504ff191000ffe67676ffcc6666ffb25656ff994647ff813738ff69292aff521b1dff3d0d10ff280205ff", + "base": "cc6666ffcc6666ffcc6666ffcc6666ffcc6666ffcc6666ff00000000000000008abeb7ff2b2e31ff00000000000000000000000000000000000000000000000000000000000000001d1f21001d1f21001d1f21001d1f21001d1f21001d1f21001d1f21001d1f21001d1f21001d1f21001d1f21002b2e31ff323539ff6a6d6cff4e5359ff3e4231ff2b2e31ff442f30ffb9ca4affd54e53ff494d3dff4e3a3dffa9a9a9ffb5bd68ff4e5359ff4e5359ffcc6666fff0c674ffb5bd68ffc5c8c6fff0c674ffc5c8c6ff4e5359ff81a2beff8abeb7ff81a2beff8abeb7ff8abeb7ff81a2beffc5c8c6ffc5c8c6ff555b61ffa9a9a9ff81a2beffb294bbfff0c674ff8abeb7ffc5c8c6ffb5bd68ff8abeb7ffc5c8c6ff1d1f21ffa9a9a9ff1d1f21ff1d1f21ff1d1f21ff1d1f21ffc5c8c6ffa9a9a9ff1d1f21ffc5c8c6ffc5c8c6ff8abeb7ffa9a9a9ffa9a9a9ffa9a9a9ffc5c8c6ffa9a9a9ffa9a9a9ffc5c8c6ffa9a9a9ffcc6666ffcc6666ff8abeb7ff8abeb7ffb5bd68ffb5bd68fff0c674fff0c674ffc5c8c6ffa9a9a9ff8abeb7ff8abeb7ff8abeb7ff8abeb7ffa9a9a9ff" + }, + "system:palette/light": { + "modes": ["light","dark"], + "hues": ["gray","red","yellow","cyan","purple","accent","interactive","neutral"], + "hue": "ffffffffc5c8c6ff7e7e7dff3c3c3cff2a2b2bff1a1b1dff1b1c1eff1d1f21001f222400bf5455ffcc6666ffd87877ffe48a88fff09c99fffcaeabfffbc6c4ffffdbdafffef2f1ffedc066fff0c674fff3cc81fff7d38efffad99bfffee0a7ffffe6b9ffffedcdfffef4e1ff7eb5aeff8abeb7ff96c7c0ffa3cfc9ffafd8d2ffbce1dcffc8eae5ffd5f3eeffe1fcf8ffa788b1ffb294bbffbda1c5ffc8adcfffd2badaffddc7e4ffe8d4effff4e1f9fffbf1ffff7eb5aeff8abeb7ff96c7c0ffa3cfc9ffafd8d2ffbce1dcffc8eae5ffd5f3eeffe1fcf8ff7eb5aeff8abeb7ff96c7c0ffa3cfc9ffafd8d2ffbce1dcffc8eae5ffd5f3eeffe1fcf8ffffffffffc5c8c6ff7e7e7dff3c3c3cff2a2b2bff1a1b1dff1b1c1eff1d1f21001f222400", + "categorical": "a788b1ffb294bbffbda1c5ffc8adcfffd2badaffddc7e4ffe8d4effff4e1f9fffbf1ffff7eb5aeff8abeb7ff96c7c0ffa3cfc9ffafd8d2ffbce1dcffc8eae5ffd5f3eeffe1fcf8ffedc066fff0c674fff3cc81fff7d38efffad99bfffee0a7ffffe6b9ffffedcdfffef4e1ffbf5455ffcc6666ffd87877ffe48a88fff09c99fffcaeabfffbc6c4ffffdbdafffef2f1ff", + "base": "cc6666ffcc6666ffcc6666ffcc6666ffcc6666ffcc6666ff00000000000000008abeb7ff1b1c1eff00000000000000000000000000000000000000000000000000000000000000001d1f21001d1f21001d1f21001d1f21001d1f21001d1f21001d1f21001d1f21001d1f21001d1f21001d1f21001b1c1eff1a1b1dff2a2b2bff161719ff32352bff1b1c1eff36292bffb9ca4affd54e53ff313328ff342628ff3c3c3cffb5bd68ff161719ff161719ffcc6666fff0c674ffb5bd68ffc5c8c6fff0c674ffc5c8c6ff161719ff81a2beff8abeb7ff81a2beff8abeb7ff8abeb7ff81a2beffc5c8c6ffc5c8c6ff151618ff3c3c3cff81a2beffb294bbfff0c674ff8abeb7ffc5c8c6ffb5bd68ff8abeb7ffc5c8c6ff1d1f21ff3c3c3cff1d1f21ff1d1f21ff1d1f21ff1d1f21ffc5c8c6ff3c3c3cff1d1f21ffc5c8c6ffc5c8c6ff8abeb7ff3c3c3cff3c3c3cff3c3c3cffc5c8c6ff3c3c3cff3c3c3cffc5c8c6ff3c3c3cffcc6666ffcc6666ff8abeb7ff8abeb7ffb5bd68ffb5bd68fff0c674fff0c674ffc5c8c6ff3c3c3cff8abeb7ff8abeb7ff8abeb7ff8abeb7ff3c3c3cff" + }, + "system:sparse/dark": { + "modes": ["light","dark"], + "hues": ["gray","red","green","cyan","purple","accent","interactive","neutral"], + "hue": "e4e4e4ffd0d0d0ffbcbcbcffa9a9a9ff6d6d6dff363636ff2e2e2eff20202000131313008d0100ff800000ff6e0f09ff620c07ff560905ff4a0603ff3f0402ff340201ff290101ff4eb64dff40a040ff338b33ff257627ff18621aff0a4e0dff073b09ff032904ff001801ff4eb6b6ff40a0a0ff328a8aff237575ff156161ff044d4dff043939ff012727ff011516ff8e038eff800080ff6e116eff610c61ff540754ff470447ff3b013bff2d032dff220122ff4eb6b6ff40a0a0ff328a8aff237575ff156161ff044d4dff043939ff012727ff011516ff4eb6b6ff40a0a0ff328a8aff237575ff156161ff044d4dff043939ff012727ff011516ffe4e4e4ffd0d0d0ffbcbcbcffa9a9a9ff6d6d6dff363636ff2e2e2eff2020200013131300", + "categorical": "8e038eff800080ff6e116eff610c61ff540754ff470447ff3b013bff2d032dff220122ff4eb6b6ff40a0a0ff328a8aff237575ff156161ff044d4dff043939ff012727ff011516ff4eb64dff40a040ff338b33ff257627ff18621aff0a4e0dff073b09ff032904ff001801ff8d0100ff800000ff6e0f09ff620c07ff560905ff4a0603ff3f0402ff340201ff290101ff", + "base": "800000ff800000ff800000ff800000ff800000ff800000ff000000000000000040a0a0ff2e2e2eff000000000000000000000000000000000000000000000000000000000000000020202000202020002020200020202000202020002020200020202000202020002020200020202000202020002e2e2eff363636ff6d6d6dff545454ff273c27ff2e2e2eff351919ff00ff00ffff0000ff324732ff402424ffa9a9a9ff40a040ff545454ff545454ff800000ff808000ff40a040ffd0d0d0ff808000ffd0d0d0ff545454ff000080ff40a0a0ff000080ff40a0a0ff40a0a0ff000080ffd0d0d0ffd0d0d0ff5b5b5bffa9a9a9ff000080ff800080ff808000ff40a0a0ffd0d0d0ff40a040ff40a0a0ffd0d0d0ff202020ffa9a9a9ff202020ff202020ff202020ff202020ffd0d0d0ffa9a9a9ff202020ffd0d0d0ffd0d0d0ff40a0a0ffa9a9a9ffa9a9a9ffa9a9a9ffd0d0d0ffa9a9a9ffa9a9a9ffd0d0d0ffa9a9a9ff800000ff800000ff40a0a0ff40a0a0ff40a040ff40a040ff808000ff808000ffd0d0d0ffa9a9a9ff40a0a0ff40a0a0ff40a0a0ff40a0a0ffa9a9a9ff" + }, + "system:sparse/light": { + "modes": ["light","dark"], + "hues": ["gray","red","green","cyan","purple","accent","interactive","neutral"], + "hue": "ffffffffd0d0d0ff828282ff3c3c3cff2c2c2cff1c1c1cff1d1d1dff2020200023232300560905ff800000ff982e24ffb04d41ffc86b5dffe0887bfff7a699fffdccc3fffff2f0ff239227ff40a040ff58ae56ff6dbc6bff82ca7fff97d994fface7a9ffc1f6beffe3fee1ff219393ff40a0a0ff58adadff6ebbbaff83c8c8ff97d6d5ffabe3e3ffbff1f1ffd7fefeff5e065eff800080ff963095ffac4faaffc26cbfffd888d4ffeea4eafffdc7f9fffff0feff219393ff40a0a0ff58adadff6ebbbaff83c8c8ff97d6d5ffabe3e3ffbff1f1ffd7fefeff219393ff40a0a0ff58adadff6ebbbaff83c8c8ff97d6d5ffabe3e3ffbff1f1ffd7fefeffffffffffd0d0d0ff828282ff3c3c3cff2c2c2cff1c1c1cff1d1d1dff2020200023232300", + "categorical": "5e065eff800080ff963095ffac4faaffc26cbfffd888d4ffeea4eafffdc7f9fffff0feff219393ff40a0a0ff58adadff6ebbbaff83c8c8ff97d6d5ffabe3e3ffbff1f1ffd7fefeff239227ff40a040ff58ae56ff6dbc6bff82ca7fff97d994fface7a9ffc1f6beffe3fee1ff560905ff800000ff982e24ffb04d41ffc86b5dffe0887bfff7a699fffdccc3fffff2f0ff", + "base": "800000ff800000ff800000ff800000ff800000ff800000ff000000000000000040a0a0ff1d1d1dff000000000000000000000000000000000000000000000000000000000000000020202000202020002020200020202000202020002020200020202000202020002020200020202000202020001d1d1dff1c1c1cff2c2c2cff181818ff243224ff1d1d1dff2d1c1cff00ff00ffff0000ff222f22ff2b1919ff3c3c3cff40a040ff181818ff181818ff800000ff808000ff40a040ffd0d0d0ff808000ffd0d0d0ff181818ff000080ff40a0a0ff000080ff40a0a0ff40a0a0ff000080ffd0d0d0ffd0d0d0ff171717ff3c3c3cff000080ff800080ff808000ff40a0a0ffd0d0d0ff40a040ff40a0a0ffd0d0d0ff202020ff3c3c3cff202020ff202020ff202020ff202020ffd0d0d0ff3c3c3cff202020ffd0d0d0ffd0d0d0ff40a0a0ff3c3c3cff3c3c3cff3c3c3cffd0d0d0ff3c3c3cff3c3c3cffd0d0d0ff3c3c3cff800000ff800000ff40a0a0ff40a0a0ff40a040ff40a040ff808000ff808000ffd0d0d0ff3c3c3cff40a0a0ff40a0a0ff40a0a0ff40a0a0ff3c3c3cff" + } + }, + "palettes": { + "dark": { + "palette": ["#1d1f21","#cc6666","#b5bd68","#f0c674","#81a2be","#b294bb","#8abeb7","#c5c8c6","#666666","#d54e53","#b9ca4a","#e7c547","#7aa6da","#c397d8","#70c0b1","#eaeaea"], + "defaultBackground": "#1d1f21", + "defaultForeground": "#c5c8c6" + }, + "light": { + "palette": ["#1d1f21","#cc6666","#b5bd68","#f0c674","#81a2be","#b294bb","#8abeb7","#c5c8c6","#666666","#d54e53","#b9ca4a","#e7c547","#7aa6da","#c397d8","#70c0b1","#eaeaea"], + "defaultBackground": "#fdf6e3", + "defaultForeground": "#586e75" + }, + "black": { + "palette": ["#1d1f21","#cc6666","#b5bd68","#f0c674","#81a2be","#b294bb","#8abeb7","#c5c8c6","#666666","#d54e53","#b9ca4a","#e7c547","#7aa6da","#c397d8","#70c0b1","#eaeaea"], + "defaultBackground": "#000000", + "defaultForeground": "#ffffff" + }, + "white": { + "palette": ["#1d1f21","#cc6666","#b5bd68","#f0c674","#81a2be","#b294bb","#8abeb7","#c5c8c6","#666666","#d54e53","#b9ca4a","#e7c547","#7aa6da","#c397d8","#70c0b1","#eaeaea"], + "defaultBackground": "#ffffff", + "defaultForeground": "#000000" + }, + "palette": { + "palette": ["#1d1f21","#cc6666","#b5bd68","#f0c674","#81a2be","#b294bb","#8abeb7","#c5c8c6","#666666","#d54e53","#b9ca4a","#e7c547","#7aa6da","#c397d8","#70c0b1","#eaeaea"], + "defaultBackground": null, + "defaultForeground": null + }, + "sparse": { + "palette": ["#202020",null,"#40a040",null,null,null,"#40a0a0","#d0d0d0"], + "defaultBackground": "#202020" + } + }, + "errors": { + "v1-missing-reference": { + "source": {"theme":{"primary":"nope","secondary":"pink","accent":"purple","error":"red","warning":"orange","success":"cyan","info":"purple","text":"darkFg","textMuted":"darkFgMuted","background":"darkBg","backgroundPanel":"darkBgPanel","backgroundElement":"darkBgPanel","border":"darkBorder","borderActive":"darkFgMuted","borderSubtle":"darkBorder","diffAdded":"cyan","diffRemoved":"red","diffContext":"darkFgMuted","diffHunkHeader":"darkFgMuted","diffHighlightAdded":"cyan","diffHighlightRemoved":"red","diffAddedBg":"#354933","diffRemovedBg":"#3f191a","diffContextBg":"darkBgPanel","diffLineNumber":"#898989","diffAddedLineNumberBg":"#162620","diffRemovedLineNumberBg":"#26161a","markdownText":"darkFg","markdownHeading":"purple","markdownLink":"pink","markdownLinkText":"purple","markdownCode":"cyan","markdownBlockQuote":"darkFgMuted","markdownEmph":"orange","markdownStrong":"purple","markdownHorizontalRule":"darkFgMuted","markdownListItem":"purple","markdownListEnumeration":"purple","markdownImage":"pink","markdownImageText":"purple","markdownCodeBlock":"darkFg","syntaxComment":"darkFgMuted","syntaxKeyword":"pink","syntaxFunction":"purple","syntaxVariable":"purple","syntaxString":"cyan","syntaxNumber":"green","syntaxType":"purple","syntaxOperator":"pink","syntaxPunctuation":"darkFg"}}, + "message": "Color reference \"nope\" not found in defs or theme" + }, + "v1-circular": { + "source": {"defs":{"a":"b","b":"a"},"theme":{"primary":"a","secondary":"pink","accent":"purple","error":"red","warning":"orange","success":"cyan","info":"purple","text":"darkFg","textMuted":"darkFgMuted","background":"darkBg","backgroundPanel":"darkBgPanel","backgroundElement":"darkBgPanel","border":"darkBorder","borderActive":"darkFgMuted","borderSubtle":"darkBorder","diffAdded":"cyan","diffRemoved":"red","diffContext":"darkFgMuted","diffHunkHeader":"darkFgMuted","diffHighlightAdded":"cyan","diffHighlightRemoved":"red","diffAddedBg":"#354933","diffRemovedBg":"#3f191a","diffContextBg":"darkBgPanel","diffLineNumber":"#898989","diffAddedLineNumberBg":"#162620","diffRemovedLineNumberBg":"#26161a","markdownText":"darkFg","markdownHeading":"purple","markdownLink":"pink","markdownLinkText":"purple","markdownCode":"cyan","markdownBlockQuote":"darkFgMuted","markdownEmph":"orange","markdownStrong":"purple","markdownHorizontalRule":"darkFgMuted","markdownListItem":"purple","markdownListEnumeration":"purple","markdownImage":"pink","markdownImageText":"purple","markdownCodeBlock":"darkFg","syntaxComment":"darkFgMuted","syntaxKeyword":"pink","syntaxFunction":"purple","syntaxVariable":"purple","syntaxString":"cyan","syntaxNumber":"green","syntaxType":"purple","syntaxOperator":"pink","syntaxPunctuation":"darkFg"}}, + "message": "Circular color reference: a -> b -> a" + }, + "v2-bad-color": { + "source": {"$schema":"https://opencode.ai/theme.json","base":{"categorical":["blue","purple","green","orange","red"],"text":{"base":"$hue.neutral.100","muted":"$hue.neutral.300","action":{"primary":{"base":"$text.base","$focused":"$text.base","$selected":"$hue.interactive.400","$disabled":"$text.muted"},"secondary":{"base":"$text.muted","$hovered":"$text.base","$focused":"$hue.interactive.200"},"destructive":{"base":"$hue.neutral.900","$disabled":"$text.muted"}},"formfield":{"base":"$text.base","$hovered":"$hue.interactive.400","$focused":"$hue.interactive.400","$pressed":"$hue.interactive.400","$selected":"$hue.interactive.400","$disabled":"$text.muted"},"feedback":{"error":{"base":"$hue.red.400"},"warning":{"base":"#f5a742"},"success":{"base":"$hue.green.400"},"info":{"base":"$hue.blue.400"}}},"background":{"base":"$hue.neutral.900","raised":{"base":"$hue.neutral.700","high":"$hue.neutral.600","max":"$hue.neutral.500"},"action":{"primary":{"base":"transparent","$hovered":"$hue.neutral.700","$focused":"$hue.interactive.600","$selected":"transparent"},"secondary":{"base":"transparent"},"destructive":{"base":"$hue.red.400"}},"formfield":{"base":"$background.base"},"feedback":{"error":{"base":"$background.base"},"warning":{"base":"$background.base"},"success":{"base":"$background.base"},"info":{"base":"$background.base"}}},"border":{"base":"red"},"scrollbar":{"base":"#606060"},"diff":{"text":{"added":"#4fd6be","removed":"#c53b53","context":"#828bb8","hunkHeader":"#828bb8"},"background":{"added":"#20303b","removed":"#37222c","context":"$hue.neutral.700"},"highlight":{"added":"#b8db87","removed":"#e26a75"},"lineNumber":{"text":"#8f8f8f","background":{"added":"#1b2b34","removed":"#2d1f26"}}},"syntax":{"comment":"#808080","keyword":"#9d7cd8","function":"#fab283","variable":"#e06c75","string":"#7fd88f","number":"#f5a742","type":"#e5c07b","operator":"#56b6c2","punctuation":"#eeeeee"},"markdown":{"text":"#eeeeee","heading":"#9d7cd8","link":"#fab283","linkText":"#56b6c2","code":"#7fd88f","blockQuote":"#e5c07b","emphasis":"#e5c07b","strong":"#f5a742","horizontalRule":"#808080","listItem":"#fab283","listEnumeration":"#56b6c2","image":"#fab283","imageText":"#56b6c2","codeBlock":"#eeeeee"},"@dialog":{"background":{"base":"$background.raised.base","action":{"primary":{"$hovered":"$background.raised.max"},"secondary":{"$hovered":"$background.raised.max"}}},"@footer":{"text":{"muted":"$hue.neutral.200"}}}},"light":{"hue":{"gray":{"100":"#101010","200":"#505050","300":"#808080","400":"#b5b5b5","500":"#e6e6e6","600":"#eeeeee","700":"#f2f2f2","800":"#fafafa","900":"#ffffff"},"blue":{"100":"#1b1f2e","200":"#6e7380","300":"#9ba1b2","400":"#6c8ffe","500":"#b9c9f5","600":"#d3ddf8","700":"#eaf0ff","800":"#f4f7ff","900":"#fbfcff"},"orange":{"100":"#2e241b","200":"#7d7670","300":"#afa49d","400":"#c4713a","500":"#e8c7ad","600":"#f0dcce","700":"#fcf2ea","800":"#fdf8f4","900":"#fefdfb"},"purple":{"100":"#231b2e","200":"#74707c","300":"#a29dae","400":"#9d78df","500":"#cdbee7","600":"#e8e0f8","700":"#f0ebfa","800":"#f8f5fc","900":"#fcfbfe"},"red":{"100":"#2e1b1b","200":"#7e6d6d","300":"#b09999","400":"#ec6262","500":"#eab8b8","600":"#fbdada","700":"#fdeaea","800":"#fff6f6","900":"#fffbfb"},"green":{"100":"#1b2e1b","200":"#6d7e6d","300":"#99b099","400":"#62ec62","500":"#b8eab8","600":"#dafbda","700":"#eafdea","800":"#f6fff6","900":"#fbfffb"},"accent":"$hue.blue","interactive":"$hue.blue","neutral":"$hue.gray"},"text":{"feedback":{"warning":{"base":"#d68c27"}}},"border":{"base":"#b8b8b8"},"scrollbar":{"base":"#a0a0a0"},"diff":{"text":{"added":"#1e725c","removed":"#c53b53","context":"#7086b5","hunkHeader":"#7086b5"},"background":{"added":"#d5e5d5","removed":"#f7d8db","context":"$hue.neutral.700"},"highlight":{"added":"#4db380","removed":"#f52a65"},"lineNumber":{"text":"#595959","background":{"added":"#c5d5c5","removed":"#e7c8cb"}}},"syntax":{"comment":"#8a8a8a","keyword":"#d68c27","function":"#3b7dd8","variable":"#d1383d","string":"#3d9a57","number":"#d68c27","type":"#b0851f","operator":"#318795","punctuation":"#1a1a1a"},"markdown":{"text":"#1a1a1a","heading":"#d68c27","link":"#3b7dd8","linkText":"#318795","code":"#3d9a57","blockQuote":"#b0851f","emphasis":"#b0851f","strong":"#d68c27","horizontalRule":"#8a8a8a","listItem":"#3b7dd8","listEnumeration":"#318795","image":"#3b7dd8","imageText":"#318795","codeBlock":"#1a1a1a"},"@dialog":{"background":{"base":"$hue.neutral.800","raised":{"high":"$hue.neutral.700"},"action":{"primary":{"$hovered":"$hue.neutral.600"},"secondary":{"$hovered":"$hue.neutral.600"}}}}},"dark":{"hue":{"gray":{"100":"#ffffff","200":"#b0b0b0","300":"#808080","400":"#444444","500":"#303030","600":"#202020","700":"#141414","800":"#101010","900":"#080808"},"blue":{"100":"#f1f4ff","200":"#93a2b7","300":"#6d7a8d","400":"#7699fe","500":"#426097","600":"#23344b","700":"#162333","800":"#0d1621","900":"#050a12"},"orange":{"100":"#f6f0eb","200":"#b09c8d","300":"#807770","400":"#ecb081","500":"#896b50","600":"#42372c","700":"#2c241d","800":"#1b1612","900":"#0d0907"},"purple":{"100":"#f7f2ff","200":"#af9eba","300":"#7d7492","400":"#a383e2","500":"#685588","600":"#3b3347","700":"#241e2c","800":"#130f18","900":"#0c080e"},"red":{"100":"#fff2f2","200":"#b09492","300":"#90706f","400":"#ef6c6c","500":"#90494a","600":"#4a2e2e","700":"#2e1f1f","800":"#1a1313","900":"#0d0909"},"green":{"100":"#f1f1f1","200":"#c5cfc5","300":"#8f9c8f","400":"#9ee77a","500":"#499049","600":"#2c422c","700":"#1f2e1f","800":"#131a13","900":"#090d09"},"accent":"$hue.blue","interactive":"$hue.blue","neutral":"$hue.gray"}}}, + "message": "Invalid theme: v2-bad-color \"red\" is an invalid value" + }, + "v2-number-color": { + "source": {"$schema":"https://opencode.ai/theme.json","base":{"categorical":["blue","purple","green","orange","red"],"text":{"base":"$hue.neutral.100","muted":"$hue.neutral.300","action":{"primary":{"base":"$text.base","$focused":"$text.base","$selected":"$hue.interactive.400","$disabled":"$text.muted"},"secondary":{"base":"$text.muted","$hovered":"$text.base","$focused":"$hue.interactive.200"},"destructive":{"base":"$hue.neutral.900","$disabled":"$text.muted"}},"formfield":{"base":"$text.base","$hovered":"$hue.interactive.400","$focused":"$hue.interactive.400","$pressed":"$hue.interactive.400","$selected":"$hue.interactive.400","$disabled":"$text.muted"},"feedback":{"error":{"base":"$hue.red.400"},"warning":{"base":"#f5a742"},"success":{"base":"$hue.green.400"},"info":{"base":"$hue.blue.400"}}},"background":{"base":"$hue.neutral.900","raised":{"base":"$hue.neutral.700","high":"$hue.neutral.600","max":"$hue.neutral.500"},"action":{"primary":{"base":"transparent","$hovered":"$hue.neutral.700","$focused":"$hue.interactive.600","$selected":"transparent"},"secondary":{"base":"transparent"},"destructive":{"base":"$hue.red.400"}},"formfield":{"base":"$background.base"},"feedback":{"error":{"base":"$background.base"},"warning":{"base":"$background.base"},"success":{"base":"$background.base"},"info":{"base":"$background.base"}}},"border":{"base":5},"scrollbar":{"base":"#606060"},"diff":{"text":{"added":"#4fd6be","removed":"#c53b53","context":"#828bb8","hunkHeader":"#828bb8"},"background":{"added":"#20303b","removed":"#37222c","context":"$hue.neutral.700"},"highlight":{"added":"#b8db87","removed":"#e26a75"},"lineNumber":{"text":"#8f8f8f","background":{"added":"#1b2b34","removed":"#2d1f26"}}},"syntax":{"comment":"#808080","keyword":"#9d7cd8","function":"#fab283","variable":"#e06c75","string":"#7fd88f","number":"#f5a742","type":"#e5c07b","operator":"#56b6c2","punctuation":"#eeeeee"},"markdown":{"text":"#eeeeee","heading":"#9d7cd8","link":"#fab283","linkText":"#56b6c2","code":"#7fd88f","blockQuote":"#e5c07b","emphasis":"#e5c07b","strong":"#f5a742","horizontalRule":"#808080","listItem":"#fab283","listEnumeration":"#56b6c2","image":"#fab283","imageText":"#56b6c2","codeBlock":"#eeeeee"},"@dialog":{"background":{"base":"$background.raised.base","action":{"primary":{"$hovered":"$background.raised.max"},"secondary":{"$hovered":"$background.raised.max"}}},"@footer":{"text":{"muted":"$hue.neutral.200"}}}},"light":{"hue":{"gray":{"100":"#101010","200":"#505050","300":"#808080","400":"#b5b5b5","500":"#e6e6e6","600":"#eeeeee","700":"#f2f2f2","800":"#fafafa","900":"#ffffff"},"blue":{"100":"#1b1f2e","200":"#6e7380","300":"#9ba1b2","400":"#6c8ffe","500":"#b9c9f5","600":"#d3ddf8","700":"#eaf0ff","800":"#f4f7ff","900":"#fbfcff"},"orange":{"100":"#2e241b","200":"#7d7670","300":"#afa49d","400":"#c4713a","500":"#e8c7ad","600":"#f0dcce","700":"#fcf2ea","800":"#fdf8f4","900":"#fefdfb"},"purple":{"100":"#231b2e","200":"#74707c","300":"#a29dae","400":"#9d78df","500":"#cdbee7","600":"#e8e0f8","700":"#f0ebfa","800":"#f8f5fc","900":"#fcfbfe"},"red":{"100":"#2e1b1b","200":"#7e6d6d","300":"#b09999","400":"#ec6262","500":"#eab8b8","600":"#fbdada","700":"#fdeaea","800":"#fff6f6","900":"#fffbfb"},"green":{"100":"#1b2e1b","200":"#6d7e6d","300":"#99b099","400":"#62ec62","500":"#b8eab8","600":"#dafbda","700":"#eafdea","800":"#f6fff6","900":"#fbfffb"},"accent":"$hue.blue","interactive":"$hue.blue","neutral":"$hue.gray"},"text":{"feedback":{"warning":{"base":"#d68c27"}}},"border":{"base":"#b8b8b8"},"scrollbar":{"base":"#a0a0a0"},"diff":{"text":{"added":"#1e725c","removed":"#c53b53","context":"#7086b5","hunkHeader":"#7086b5"},"background":{"added":"#d5e5d5","removed":"#f7d8db","context":"$hue.neutral.700"},"highlight":{"added":"#4db380","removed":"#f52a65"},"lineNumber":{"text":"#595959","background":{"added":"#c5d5c5","removed":"#e7c8cb"}}},"syntax":{"comment":"#8a8a8a","keyword":"#d68c27","function":"#3b7dd8","variable":"#d1383d","string":"#3d9a57","number":"#d68c27","type":"#b0851f","operator":"#318795","punctuation":"#1a1a1a"},"markdown":{"text":"#1a1a1a","heading":"#d68c27","link":"#3b7dd8","linkText":"#318795","code":"#3d9a57","blockQuote":"#b0851f","emphasis":"#b0851f","strong":"#d68c27","horizontalRule":"#8a8a8a","listItem":"#3b7dd8","listEnumeration":"#318795","image":"#3b7dd8","imageText":"#318795","codeBlock":"#1a1a1a"},"@dialog":{"background":{"base":"$hue.neutral.800","raised":{"high":"$hue.neutral.700"},"action":{"primary":{"$hovered":"$hue.neutral.600"},"secondary":{"$hovered":"$hue.neutral.600"}}}}},"dark":{"hue":{"gray":{"100":"#ffffff","200":"#b0b0b0","300":"#808080","400":"#444444","500":"#303030","600":"#202020","700":"#141414","800":"#101010","900":"#080808"},"blue":{"100":"#f1f4ff","200":"#93a2b7","300":"#6d7a8d","400":"#7699fe","500":"#426097","600":"#23344b","700":"#162333","800":"#0d1621","900":"#050a12"},"orange":{"100":"#f6f0eb","200":"#b09c8d","300":"#807770","400":"#ecb081","500":"#896b50","600":"#42372c","700":"#2c241d","800":"#1b1612","900":"#0d0907"},"purple":{"100":"#f7f2ff","200":"#af9eba","300":"#7d7492","400":"#a383e2","500":"#685588","600":"#3b3347","700":"#241e2c","800":"#130f18","900":"#0c080e"},"red":{"100":"#fff2f2","200":"#b09492","300":"#90706f","400":"#ef6c6c","500":"#90494a","600":"#4a2e2e","700":"#2e1f1f","800":"#1a1313","900":"#0d0909"},"green":{"100":"#f1f1f1","200":"#c5cfc5","300":"#8f9c8f","400":"#9ee77a","500":"#499049","600":"#2c422c","700":"#1f2e1f","800":"#131a13","900":"#090d09"},"accent":"$hue.blue","interactive":"$hue.blue","neutral":"$hue.gray"}}}, + "message": "Invalid theme: v2-number-color 5 is an invalid value" + }, + "v2-object-color": { + "source": {"$schema":"https://opencode.ai/theme.json","base":{"categorical":["blue","purple","green","orange","red"],"text":{"base":"$hue.neutral.100","muted":"$hue.neutral.300","action":{"primary":{"base":"$text.base","$focused":"$text.base","$selected":"$hue.interactive.400","$disabled":"$text.muted"},"secondary":{"base":"$text.muted","$hovered":"$text.base","$focused":"$hue.interactive.200"},"destructive":{"base":"$hue.neutral.900","$disabled":"$text.muted"}},"formfield":{"base":"$text.base","$hovered":"$hue.interactive.400","$focused":"$hue.interactive.400","$pressed":"$hue.interactive.400","$selected":"$hue.interactive.400","$disabled":"$text.muted"},"feedback":{"error":{"base":"$hue.red.400"},"warning":{"base":"#f5a742"},"success":{"base":"$hue.green.400"},"info":{"base":"$hue.blue.400"}}},"background":{"base":"$hue.neutral.900","raised":{"base":"$hue.neutral.700","high":"$hue.neutral.600","max":"$hue.neutral.500"},"action":{"primary":{"base":"transparent","$hovered":"$hue.neutral.700","$focused":"$hue.interactive.600","$selected":"transparent"},"secondary":{"base":"transparent"},"destructive":{"base":"$hue.red.400"}},"formfield":{"base":"$background.base"},"feedback":{"error":{"base":"$background.base"},"warning":{"base":"$background.base"},"success":{"base":"$background.base"},"info":{"base":"$background.base"}}},"border":{"base":{"a":1}},"scrollbar":{"base":"#606060"},"diff":{"text":{"added":"#4fd6be","removed":"#c53b53","context":"#828bb8","hunkHeader":"#828bb8"},"background":{"added":"#20303b","removed":"#37222c","context":"$hue.neutral.700"},"highlight":{"added":"#b8db87","removed":"#e26a75"},"lineNumber":{"text":"#8f8f8f","background":{"added":"#1b2b34","removed":"#2d1f26"}}},"syntax":{"comment":"#808080","keyword":"#9d7cd8","function":"#fab283","variable":"#e06c75","string":"#7fd88f","number":"#f5a742","type":"#e5c07b","operator":"#56b6c2","punctuation":"#eeeeee"},"markdown":{"text":"#eeeeee","heading":"#9d7cd8","link":"#fab283","linkText":"#56b6c2","code":"#7fd88f","blockQuote":"#e5c07b","emphasis":"#e5c07b","strong":"#f5a742","horizontalRule":"#808080","listItem":"#fab283","listEnumeration":"#56b6c2","image":"#fab283","imageText":"#56b6c2","codeBlock":"#eeeeee"},"@dialog":{"background":{"base":"$background.raised.base","action":{"primary":{"$hovered":"$background.raised.max"},"secondary":{"$hovered":"$background.raised.max"}}},"@footer":{"text":{"muted":"$hue.neutral.200"}}}},"light":{"hue":{"gray":{"100":"#101010","200":"#505050","300":"#808080","400":"#b5b5b5","500":"#e6e6e6","600":"#eeeeee","700":"#f2f2f2","800":"#fafafa","900":"#ffffff"},"blue":{"100":"#1b1f2e","200":"#6e7380","300":"#9ba1b2","400":"#6c8ffe","500":"#b9c9f5","600":"#d3ddf8","700":"#eaf0ff","800":"#f4f7ff","900":"#fbfcff"},"orange":{"100":"#2e241b","200":"#7d7670","300":"#afa49d","400":"#c4713a","500":"#e8c7ad","600":"#f0dcce","700":"#fcf2ea","800":"#fdf8f4","900":"#fefdfb"},"purple":{"100":"#231b2e","200":"#74707c","300":"#a29dae","400":"#9d78df","500":"#cdbee7","600":"#e8e0f8","700":"#f0ebfa","800":"#f8f5fc","900":"#fcfbfe"},"red":{"100":"#2e1b1b","200":"#7e6d6d","300":"#b09999","400":"#ec6262","500":"#eab8b8","600":"#fbdada","700":"#fdeaea","800":"#fff6f6","900":"#fffbfb"},"green":{"100":"#1b2e1b","200":"#6d7e6d","300":"#99b099","400":"#62ec62","500":"#b8eab8","600":"#dafbda","700":"#eafdea","800":"#f6fff6","900":"#fbfffb"},"accent":"$hue.blue","interactive":"$hue.blue","neutral":"$hue.gray"},"text":{"feedback":{"warning":{"base":"#d68c27"}}},"border":{"base":"#b8b8b8"},"scrollbar":{"base":"#a0a0a0"},"diff":{"text":{"added":"#1e725c","removed":"#c53b53","context":"#7086b5","hunkHeader":"#7086b5"},"background":{"added":"#d5e5d5","removed":"#f7d8db","context":"$hue.neutral.700"},"highlight":{"added":"#4db380","removed":"#f52a65"},"lineNumber":{"text":"#595959","background":{"added":"#c5d5c5","removed":"#e7c8cb"}}},"syntax":{"comment":"#8a8a8a","keyword":"#d68c27","function":"#3b7dd8","variable":"#d1383d","string":"#3d9a57","number":"#d68c27","type":"#b0851f","operator":"#318795","punctuation":"#1a1a1a"},"markdown":{"text":"#1a1a1a","heading":"#d68c27","link":"#3b7dd8","linkText":"#318795","code":"#3d9a57","blockQuote":"#b0851f","emphasis":"#b0851f","strong":"#d68c27","horizontalRule":"#8a8a8a","listItem":"#3b7dd8","listEnumeration":"#318795","image":"#3b7dd8","imageText":"#318795","codeBlock":"#1a1a1a"},"@dialog":{"background":{"base":"$hue.neutral.800","raised":{"high":"$hue.neutral.700"},"action":{"primary":{"$hovered":"$hue.neutral.600"},"secondary":{"$hovered":"$hue.neutral.600"}}}}},"dark":{"hue":{"gray":{"100":"#ffffff","200":"#b0b0b0","300":"#808080","400":"#444444","500":"#303030","600":"#202020","700":"#141414","800":"#101010","900":"#080808"},"blue":{"100":"#f1f4ff","200":"#93a2b7","300":"#6d7a8d","400":"#7699fe","500":"#426097","600":"#23344b","700":"#162333","800":"#0d1621","900":"#050a12"},"orange":{"100":"#f6f0eb","200":"#b09c8d","300":"#807770","400":"#ecb081","500":"#896b50","600":"#42372c","700":"#2c241d","800":"#1b1612","900":"#0d0907"},"purple":{"100":"#f7f2ff","200":"#af9eba","300":"#7d7492","400":"#a383e2","500":"#685588","600":"#3b3347","700":"#241e2c","800":"#130f18","900":"#0c080e"},"red":{"100":"#fff2f2","200":"#b09492","300":"#90706f","400":"#ef6c6c","500":"#90494a","600":"#4a2e2e","700":"#2e1f1f","800":"#1a1313","900":"#0d0909"},"green":{"100":"#f1f1f1","200":"#c5cfc5","300":"#8f9c8f","400":"#9ee77a","500":"#499049","600":"#2c422c","700":"#1f2e1f","800":"#131a13","900":"#090d09"},"accent":"$hue.blue","interactive":"$hue.blue","neutral":"$hue.gray"}}}, + "message": "Invalid theme: v2-object-color {\"a\":1} is an invalid value" + }, + "v2-syntax-reference": { + "source": {"$schema":"https://opencode.ai/theme.json","base":{"categorical":["blue","purple","green","orange","red"],"text":{"base":"$hue.neutral.100","muted":"$hue.neutral.300","action":{"primary":{"base":"$text.base","$focused":"$text.base","$selected":"$hue.interactive.400","$disabled":"$text.muted"},"secondary":{"base":"$text.muted","$hovered":"$text.base","$focused":"$hue.interactive.200"},"destructive":{"base":"$hue.neutral.900","$disabled":"$text.muted"}},"formfield":{"base":"$text.base","$hovered":"$hue.interactive.400","$focused":"$hue.interactive.400","$pressed":"$hue.interactive.400","$selected":"$hue.interactive.400","$disabled":"$text.muted"},"feedback":{"error":{"base":"$hue.red.400"},"warning":{"base":"#f5a742"},"success":{"base":"$hue.green.400"},"info":{"base":"$hue.blue.400"}}},"background":{"base":"$hue.neutral.900","raised":{"base":"$hue.neutral.700","high":"$hue.neutral.600","max":"$hue.neutral.500"},"action":{"primary":{"base":"transparent","$hovered":"$hue.neutral.700","$focused":"$hue.interactive.600","$selected":"transparent"},"secondary":{"base":"transparent"},"destructive":{"base":"$hue.red.400"}},"formfield":{"base":"$background.base"},"feedback":{"error":{"base":"$background.base"},"warning":{"base":"$background.base"},"success":{"base":"$background.base"},"info":{"base":"$background.base"}}},"border":{"base":"#484848"},"scrollbar":{"base":"#606060"},"diff":{"text":{"added":"#4fd6be","removed":"#c53b53","context":"#828bb8","hunkHeader":"#828bb8"},"background":{"added":"#20303b","removed":"#37222c","context":"$hue.neutral.700"},"highlight":{"added":"#b8db87","removed":"#e26a75"},"lineNumber":{"text":"#8f8f8f","background":{"added":"#1b2b34","removed":"#2d1f26"}}},"syntax":{"comment":"$text.base","keyword":"#9d7cd8","function":"#fab283","variable":"#e06c75","string":"#7fd88f","number":"#f5a742","type":"#e5c07b","operator":"#56b6c2","punctuation":"#eeeeee"},"markdown":{"text":"#eeeeee","heading":"#9d7cd8","link":"#fab283","linkText":"#56b6c2","code":"#7fd88f","blockQuote":"#e5c07b","emphasis":"#e5c07b","strong":"#f5a742","horizontalRule":"#808080","listItem":"#fab283","listEnumeration":"#56b6c2","image":"#fab283","imageText":"#56b6c2","codeBlock":"#eeeeee"},"@dialog":{"background":{"base":"$background.raised.base","action":{"primary":{"$hovered":"$background.raised.max"},"secondary":{"$hovered":"$background.raised.max"}}},"@footer":{"text":{"muted":"$hue.neutral.200"}}}},"light":{"hue":{"gray":{"100":"#101010","200":"#505050","300":"#808080","400":"#b5b5b5","500":"#e6e6e6","600":"#eeeeee","700":"#f2f2f2","800":"#fafafa","900":"#ffffff"},"blue":{"100":"#1b1f2e","200":"#6e7380","300":"#9ba1b2","400":"#6c8ffe","500":"#b9c9f5","600":"#d3ddf8","700":"#eaf0ff","800":"#f4f7ff","900":"#fbfcff"},"orange":{"100":"#2e241b","200":"#7d7670","300":"#afa49d","400":"#c4713a","500":"#e8c7ad","600":"#f0dcce","700":"#fcf2ea","800":"#fdf8f4","900":"#fefdfb"},"purple":{"100":"#231b2e","200":"#74707c","300":"#a29dae","400":"#9d78df","500":"#cdbee7","600":"#e8e0f8","700":"#f0ebfa","800":"#f8f5fc","900":"#fcfbfe"},"red":{"100":"#2e1b1b","200":"#7e6d6d","300":"#b09999","400":"#ec6262","500":"#eab8b8","600":"#fbdada","700":"#fdeaea","800":"#fff6f6","900":"#fffbfb"},"green":{"100":"#1b2e1b","200":"#6d7e6d","300":"#99b099","400":"#62ec62","500":"#b8eab8","600":"#dafbda","700":"#eafdea","800":"#f6fff6","900":"#fbfffb"},"accent":"$hue.blue","interactive":"$hue.blue","neutral":"$hue.gray"},"text":{"feedback":{"warning":{"base":"#d68c27"}}},"border":{"base":"#b8b8b8"},"scrollbar":{"base":"#a0a0a0"},"diff":{"text":{"added":"#1e725c","removed":"#c53b53","context":"#7086b5","hunkHeader":"#7086b5"},"background":{"added":"#d5e5d5","removed":"#f7d8db","context":"$hue.neutral.700"},"highlight":{"added":"#4db380","removed":"#f52a65"},"lineNumber":{"text":"#595959","background":{"added":"#c5d5c5","removed":"#e7c8cb"}}},"syntax":{"comment":"#8a8a8a","keyword":"#d68c27","function":"#3b7dd8","variable":"#d1383d","string":"#3d9a57","number":"#d68c27","type":"#b0851f","operator":"#318795","punctuation":"#1a1a1a"},"markdown":{"text":"#1a1a1a","heading":"#d68c27","link":"#3b7dd8","linkText":"#318795","code":"#3d9a57","blockQuote":"#b0851f","emphasis":"#b0851f","strong":"#d68c27","horizontalRule":"#8a8a8a","listItem":"#3b7dd8","listEnumeration":"#318795","image":"#3b7dd8","imageText":"#318795","codeBlock":"#1a1a1a"},"@dialog":{"background":{"base":"$hue.neutral.800","raised":{"high":"$hue.neutral.700"},"action":{"primary":{"$hovered":"$hue.neutral.600"},"secondary":{"$hovered":"$hue.neutral.600"}}}}},"dark":{"hue":{"gray":{"100":"#ffffff","200":"#b0b0b0","300":"#808080","400":"#444444","500":"#303030","600":"#202020","700":"#141414","800":"#101010","900":"#080808"},"blue":{"100":"#f1f4ff","200":"#93a2b7","300":"#6d7a8d","400":"#7699fe","500":"#426097","600":"#23344b","700":"#162333","800":"#0d1621","900":"#050a12"},"orange":{"100":"#f6f0eb","200":"#b09c8d","300":"#807770","400":"#ecb081","500":"#896b50","600":"#42372c","700":"#2c241d","800":"#1b1612","900":"#0d0907"},"purple":{"100":"#f7f2ff","200":"#af9eba","300":"#7d7492","400":"#a383e2","500":"#685588","600":"#3b3347","700":"#241e2c","800":"#130f18","900":"#0c080e"},"red":{"100":"#fff2f2","200":"#b09492","300":"#90706f","400":"#ef6c6c","500":"#90494a","600":"#4a2e2e","700":"#2e1f1f","800":"#1a1313","900":"#0d0909"},"green":{"100":"#f1f1f1","200":"#c5cfc5","300":"#8f9c8f","400":"#9ee77a","500":"#499049","600":"#2c422c","700":"#1f2e1f","800":"#131a13","900":"#090d09"},"accent":"$hue.blue","interactive":"$hue.blue","neutral":"$hue.gray"}}}, + "message": "Invalid theme: v2-syntax-reference \"$text.base\" is an invalid value" + }, + "v2-bad-step": { + "source": {"$schema":"https://opencode.ai/theme.json","base":{"categorical":["blue","purple","green","orange","red"],"text":{"base":"$hue.neutral.100","muted":"$hue.neutral.300","action":{"primary":{"base":"$text.base","$focused":"$text.base","$selected":"$hue.interactive.400","$disabled":"$text.muted"},"secondary":{"base":"$text.muted","$hovered":"$text.base","$focused":"$hue.interactive.200"},"destructive":{"base":"$hue.neutral.900","$disabled":"$text.muted"}},"formfield":{"base":"$text.base","$hovered":"$hue.interactive.400","$focused":"$hue.interactive.400","$pressed":"$hue.interactive.400","$selected":"$hue.interactive.400","$disabled":"$text.muted"},"feedback":{"error":{"base":"$hue.red.400"},"warning":{"base":"#f5a742"},"success":{"base":"$hue.green.400"},"info":{"base":"$hue.blue.400"}}},"background":{"base":"$hue.neutral.900","raised":{"base":"$hue.neutral.700","high":"$hue.neutral.600","max":"$hue.neutral.500"},"action":{"primary":{"base":"transparent","$hovered":"$hue.neutral.700","$focused":"$hue.interactive.600","$selected":"transparent"},"secondary":{"base":"transparent"},"destructive":{"base":"$hue.red.400"}},"formfield":{"base":"$background.base"},"feedback":{"error":{"base":"$background.base"},"warning":{"base":"$background.base"},"success":{"base":"$background.base"},"info":{"base":"$background.base"}}},"border":{"base":"#484848"},"scrollbar":{"base":"#606060"},"diff":{"text":{"added":"#4fd6be","removed":"#c53b53","context":"#828bb8","hunkHeader":"#828bb8"},"background":{"added":"#20303b","removed":"#37222c","context":"$hue.neutral.700"},"highlight":{"added":"#b8db87","removed":"#e26a75"},"lineNumber":{"text":"#8f8f8f","background":{"added":"#1b2b34","removed":"#2d1f26"}}},"syntax":{"comment":"#808080","keyword":"#9d7cd8","function":"#fab283","variable":"#e06c75","string":"#7fd88f","number":"#f5a742","type":"#e5c07b","operator":"#56b6c2","punctuation":"#eeeeee"},"markdown":{"text":"#eeeeee","heading":"#9d7cd8","link":"#fab283","linkText":"#56b6c2","code":"#7fd88f","blockQuote":"#e5c07b","emphasis":"#e5c07b","strong":"#f5a742","horizontalRule":"#808080","listItem":"#fab283","listEnumeration":"#56b6c2","image":"#fab283","imageText":"#56b6c2","codeBlock":"#eeeeee"},"@dialog":{"background":{"base":"$background.raised.base","action":{"primary":{"$hovered":"$background.raised.max"},"secondary":{"$hovered":"$background.raised.max"}}},"@footer":{"text":{"muted":"$hue.neutral.200"}}}},"light":{"hue":{"gray":{"100":"#101010","200":"#505050","300":"#808080","400":"#b5b5b5","500":"#e6e6e6","600":"#eeeeee","700":"#f2f2f2","800":"#fafafa","900":"#ffffff"},"blue":{"100":"#1b1f2e","200":"#6e7380","300":"#9ba1b2","400":"#6c8ffe","500":"#b9c9f5","600":"#d3ddf8","700":"#eaf0ff","800":"#f4f7ff","900":"#fbfcff"},"orange":{"100":"#2e241b","200":"#7d7670","300":"#afa49d","400":"#c4713a","500":"#e8c7ad","600":"#f0dcce","700":"#fcf2ea","800":"#fdf8f4","900":"#fefdfb"},"purple":{"100":"#231b2e","200":"#74707c","300":"#a29dae","400":"#9d78df","500":"#cdbee7","600":"#e8e0f8","700":"#f0ebfa","800":"#f8f5fc","900":"#fcfbfe"},"red":{"100":"#2e1b1b","200":"#7e6d6d","300":"#b09999","400":"#ec6262","500":"#eab8b8","600":"#fbdada","700":"#fdeaea","800":"#fff6f6","900":"#fffbfb"},"green":{"100":"#1b2e1b","200":"#6d7e6d","300":"#99b099","400":"#62ec62","500":"#b8eab8","600":"#dafbda","700":"#eafdea","800":"#f6fff6","900":"#fbfffb"},"accent":"$hue.blue","interactive":"$hue.blue","neutral":"$hue.gray"},"text":{"feedback":{"warning":{"base":"#d68c27"}}},"border":{"base":"#b8b8b8"},"scrollbar":{"base":"#a0a0a0"},"diff":{"text":{"added":"#1e725c","removed":"#c53b53","context":"#7086b5","hunkHeader":"#7086b5"},"background":{"added":"#d5e5d5","removed":"#f7d8db","context":"$hue.neutral.700"},"highlight":{"added":"#4db380","removed":"#f52a65"},"lineNumber":{"text":"#595959","background":{"added":"#c5d5c5","removed":"#e7c8cb"}}},"syntax":{"comment":"#8a8a8a","keyword":"#d68c27","function":"#3b7dd8","variable":"#d1383d","string":"#3d9a57","number":"#d68c27","type":"#b0851f","operator":"#318795","punctuation":"#1a1a1a"},"markdown":{"text":"#1a1a1a","heading":"#d68c27","link":"#3b7dd8","linkText":"#318795","code":"#3d9a57","blockQuote":"#b0851f","emphasis":"#b0851f","strong":"#d68c27","horizontalRule":"#8a8a8a","listItem":"#3b7dd8","listEnumeration":"#318795","image":"#3b7dd8","imageText":"#318795","codeBlock":"#1a1a1a"},"@dialog":{"background":{"base":"$hue.neutral.800","raised":{"high":"$hue.neutral.700"},"action":{"primary":{"$hovered":"$hue.neutral.600"},"secondary":{"$hovered":"$hue.neutral.600"}}}}},"dark":{"hue":{"accent":"$hue.gray","interactive":"$hue.gray","neutral":{"150":"#000"}}}}, + "message": "Invalid theme: v2-bad-step value is an invalid value" + }, + "v2-missing-border": { + "source": {"$schema":"https://opencode.ai/theme.json","base":{"categorical":["blue","purple","green","orange","red"],"text":{"base":"$hue.neutral.100","muted":"$hue.neutral.300","action":{"primary":{"base":"$text.base","$focused":"$text.base","$selected":"$hue.interactive.400","$disabled":"$text.muted"},"secondary":{"base":"$text.muted","$hovered":"$text.base","$focused":"$hue.interactive.200"},"destructive":{"base":"$hue.neutral.900","$disabled":"$text.muted"}},"formfield":{"base":"$text.base","$hovered":"$hue.interactive.400","$focused":"$hue.interactive.400","$pressed":"$hue.interactive.400","$selected":"$hue.interactive.400","$disabled":"$text.muted"},"feedback":{"error":{"base":"$hue.red.400"},"warning":{"base":"#f5a742"},"success":{"base":"$hue.green.400"},"info":{"base":"$hue.blue.400"}}},"background":{"base":"$hue.neutral.900","raised":{"base":"$hue.neutral.700","high":"$hue.neutral.600","max":"$hue.neutral.500"},"action":{"primary":{"base":"transparent","$hovered":"$hue.neutral.700","$focused":"$hue.interactive.600","$selected":"transparent"},"secondary":{"base":"transparent"},"destructive":{"base":"$hue.red.400"}},"formfield":{"base":"$background.base"},"feedback":{"error":{"base":"$background.base"},"warning":{"base":"$background.base"},"success":{"base":"$background.base"},"info":{"base":"$background.base"}}},"scrollbar":{"base":"#606060"},"diff":{"text":{"added":"#4fd6be","removed":"#c53b53","context":"#828bb8","hunkHeader":"#828bb8"},"background":{"added":"#20303b","removed":"#37222c","context":"$hue.neutral.700"},"highlight":{"added":"#b8db87","removed":"#e26a75"},"lineNumber":{"text":"#8f8f8f","background":{"added":"#1b2b34","removed":"#2d1f26"}}},"syntax":{"comment":"#808080","keyword":"#9d7cd8","function":"#fab283","variable":"#e06c75","string":"#7fd88f","number":"#f5a742","type":"#e5c07b","operator":"#56b6c2","punctuation":"#eeeeee"},"markdown":{"text":"#eeeeee","heading":"#9d7cd8","link":"#fab283","linkText":"#56b6c2","code":"#7fd88f","blockQuote":"#e5c07b","emphasis":"#e5c07b","strong":"#f5a742","horizontalRule":"#808080","listItem":"#fab283","listEnumeration":"#56b6c2","image":"#fab283","imageText":"#56b6c2","codeBlock":"#eeeeee"},"@dialog":{"background":{"base":"$background.raised.base","action":{"primary":{"$hovered":"$background.raised.max"},"secondary":{"$hovered":"$background.raised.max"}}},"@footer":{"text":{"muted":"$hue.neutral.200"}}}},"light":{"hue":{"gray":{"100":"#101010","200":"#505050","300":"#808080","400":"#b5b5b5","500":"#e6e6e6","600":"#eeeeee","700":"#f2f2f2","800":"#fafafa","900":"#ffffff"},"blue":{"100":"#1b1f2e","200":"#6e7380","300":"#9ba1b2","400":"#6c8ffe","500":"#b9c9f5","600":"#d3ddf8","700":"#eaf0ff","800":"#f4f7ff","900":"#fbfcff"},"orange":{"100":"#2e241b","200":"#7d7670","300":"#afa49d","400":"#c4713a","500":"#e8c7ad","600":"#f0dcce","700":"#fcf2ea","800":"#fdf8f4","900":"#fefdfb"},"purple":{"100":"#231b2e","200":"#74707c","300":"#a29dae","400":"#9d78df","500":"#cdbee7","600":"#e8e0f8","700":"#f0ebfa","800":"#f8f5fc","900":"#fcfbfe"},"red":{"100":"#2e1b1b","200":"#7e6d6d","300":"#b09999","400":"#ec6262","500":"#eab8b8","600":"#fbdada","700":"#fdeaea","800":"#fff6f6","900":"#fffbfb"},"green":{"100":"#1b2e1b","200":"#6d7e6d","300":"#99b099","400":"#62ec62","500":"#b8eab8","600":"#dafbda","700":"#eafdea","800":"#f6fff6","900":"#fbfffb"},"accent":"$hue.blue","interactive":"$hue.blue","neutral":"$hue.gray"},"text":{"feedback":{"warning":{"base":"#d68c27"}}},"border":{"base":"#b8b8b8"},"scrollbar":{"base":"#a0a0a0"},"diff":{"text":{"added":"#1e725c","removed":"#c53b53","context":"#7086b5","hunkHeader":"#7086b5"},"background":{"added":"#d5e5d5","removed":"#f7d8db","context":"$hue.neutral.700"},"highlight":{"added":"#4db380","removed":"#f52a65"},"lineNumber":{"text":"#595959","background":{"added":"#c5d5c5","removed":"#e7c8cb"}}},"syntax":{"comment":"#8a8a8a","keyword":"#d68c27","function":"#3b7dd8","variable":"#d1383d","string":"#3d9a57","number":"#d68c27","type":"#b0851f","operator":"#318795","punctuation":"#1a1a1a"},"markdown":{"text":"#1a1a1a","heading":"#d68c27","link":"#3b7dd8","linkText":"#318795","code":"#3d9a57","blockQuote":"#b0851f","emphasis":"#b0851f","strong":"#d68c27","horizontalRule":"#8a8a8a","listItem":"#3b7dd8","listEnumeration":"#318795","image":"#3b7dd8","imageText":"#318795","codeBlock":"#1a1a1a"},"@dialog":{"background":{"base":"$hue.neutral.800","raised":{"high":"$hue.neutral.700"},"action":{"primary":{"$hovered":"$hue.neutral.600"},"secondary":{"$hovered":"$hue.neutral.600"}}}}},"dark":{"hue":{"gray":{"100":"#ffffff","200":"#b0b0b0","300":"#808080","400":"#444444","500":"#303030","600":"#202020","700":"#141414","800":"#101010","900":"#080808"},"blue":{"100":"#f1f4ff","200":"#93a2b7","300":"#6d7a8d","400":"#7699fe","500":"#426097","600":"#23344b","700":"#162333","800":"#0d1621","900":"#050a12"},"orange":{"100":"#f6f0eb","200":"#b09c8d","300":"#807770","400":"#ecb081","500":"#896b50","600":"#42372c","700":"#2c241d","800":"#1b1612","900":"#0d0907"},"purple":{"100":"#f7f2ff","200":"#af9eba","300":"#7d7492","400":"#a383e2","500":"#685588","600":"#3b3347","700":"#241e2c","800":"#130f18","900":"#0c080e"},"red":{"100":"#fff2f2","200":"#b09492","300":"#90706f","400":"#ef6c6c","500":"#90494a","600":"#4a2e2e","700":"#2e1f1f","800":"#1a1313","900":"#0d0909"},"green":{"100":"#f1f1f1","200":"#c5cfc5","300":"#8f9c8f","400":"#9ee77a","500":"#499049","600":"#2c422c","700":"#1f2e1f","800":"#131a13","900":"#090d09"},"accent":"$hue.blue","interactive":"$hue.blue","neutral":"$hue.gray"}}}, + "message": "Invalid theme: v2-missing-border undefined is an invalid value" + }, + "v2-empty-categorical": { + "source": {"$schema":"https://opencode.ai/theme.json","base":{"categorical":[],"text":{"base":"$hue.neutral.100","muted":"$hue.neutral.300","action":{"primary":{"base":"$text.base","$focused":"$text.base","$selected":"$hue.interactive.400","$disabled":"$text.muted"},"secondary":{"base":"$text.muted","$hovered":"$text.base","$focused":"$hue.interactive.200"},"destructive":{"base":"$hue.neutral.900","$disabled":"$text.muted"}},"formfield":{"base":"$text.base","$hovered":"$hue.interactive.400","$focused":"$hue.interactive.400","$pressed":"$hue.interactive.400","$selected":"$hue.interactive.400","$disabled":"$text.muted"},"feedback":{"error":{"base":"$hue.red.400"},"warning":{"base":"#f5a742"},"success":{"base":"$hue.green.400"},"info":{"base":"$hue.blue.400"}}},"background":{"base":"$hue.neutral.900","raised":{"base":"$hue.neutral.700","high":"$hue.neutral.600","max":"$hue.neutral.500"},"action":{"primary":{"base":"transparent","$hovered":"$hue.neutral.700","$focused":"$hue.interactive.600","$selected":"transparent"},"secondary":{"base":"transparent"},"destructive":{"base":"$hue.red.400"}},"formfield":{"base":"$background.base"},"feedback":{"error":{"base":"$background.base"},"warning":{"base":"$background.base"},"success":{"base":"$background.base"},"info":{"base":"$background.base"}}},"border":{"base":"#484848"},"scrollbar":{"base":"#606060"},"diff":{"text":{"added":"#4fd6be","removed":"#c53b53","context":"#828bb8","hunkHeader":"#828bb8"},"background":{"added":"#20303b","removed":"#37222c","context":"$hue.neutral.700"},"highlight":{"added":"#b8db87","removed":"#e26a75"},"lineNumber":{"text":"#8f8f8f","background":{"added":"#1b2b34","removed":"#2d1f26"}}},"syntax":{"comment":"#808080","keyword":"#9d7cd8","function":"#fab283","variable":"#e06c75","string":"#7fd88f","number":"#f5a742","type":"#e5c07b","operator":"#56b6c2","punctuation":"#eeeeee"},"markdown":{"text":"#eeeeee","heading":"#9d7cd8","link":"#fab283","linkText":"#56b6c2","code":"#7fd88f","blockQuote":"#e5c07b","emphasis":"#e5c07b","strong":"#f5a742","horizontalRule":"#808080","listItem":"#fab283","listEnumeration":"#56b6c2","image":"#fab283","imageText":"#56b6c2","codeBlock":"#eeeeee"},"@dialog":{"background":{"base":"$background.raised.base","action":{"primary":{"$hovered":"$background.raised.max"},"secondary":{"$hovered":"$background.raised.max"}}},"@footer":{"text":{"muted":"$hue.neutral.200"}}}},"light":{"hue":{"gray":{"100":"#101010","200":"#505050","300":"#808080","400":"#b5b5b5","500":"#e6e6e6","600":"#eeeeee","700":"#f2f2f2","800":"#fafafa","900":"#ffffff"},"blue":{"100":"#1b1f2e","200":"#6e7380","300":"#9ba1b2","400":"#6c8ffe","500":"#b9c9f5","600":"#d3ddf8","700":"#eaf0ff","800":"#f4f7ff","900":"#fbfcff"},"orange":{"100":"#2e241b","200":"#7d7670","300":"#afa49d","400":"#c4713a","500":"#e8c7ad","600":"#f0dcce","700":"#fcf2ea","800":"#fdf8f4","900":"#fefdfb"},"purple":{"100":"#231b2e","200":"#74707c","300":"#a29dae","400":"#9d78df","500":"#cdbee7","600":"#e8e0f8","700":"#f0ebfa","800":"#f8f5fc","900":"#fcfbfe"},"red":{"100":"#2e1b1b","200":"#7e6d6d","300":"#b09999","400":"#ec6262","500":"#eab8b8","600":"#fbdada","700":"#fdeaea","800":"#fff6f6","900":"#fffbfb"},"green":{"100":"#1b2e1b","200":"#6d7e6d","300":"#99b099","400":"#62ec62","500":"#b8eab8","600":"#dafbda","700":"#eafdea","800":"#f6fff6","900":"#fbfffb"},"accent":"$hue.blue","interactive":"$hue.blue","neutral":"$hue.gray"},"text":{"feedback":{"warning":{"base":"#d68c27"}}},"border":{"base":"#b8b8b8"},"scrollbar":{"base":"#a0a0a0"},"diff":{"text":{"added":"#1e725c","removed":"#c53b53","context":"#7086b5","hunkHeader":"#7086b5"},"background":{"added":"#d5e5d5","removed":"#f7d8db","context":"$hue.neutral.700"},"highlight":{"added":"#4db380","removed":"#f52a65"},"lineNumber":{"text":"#595959","background":{"added":"#c5d5c5","removed":"#e7c8cb"}}},"syntax":{"comment":"#8a8a8a","keyword":"#d68c27","function":"#3b7dd8","variable":"#d1383d","string":"#3d9a57","number":"#d68c27","type":"#b0851f","operator":"#318795","punctuation":"#1a1a1a"},"markdown":{"text":"#1a1a1a","heading":"#d68c27","link":"#3b7dd8","linkText":"#318795","code":"#3d9a57","blockQuote":"#b0851f","emphasis":"#b0851f","strong":"#d68c27","horizontalRule":"#8a8a8a","listItem":"#3b7dd8","listEnumeration":"#318795","image":"#3b7dd8","imageText":"#318795","codeBlock":"#1a1a1a"},"@dialog":{"background":{"base":"$hue.neutral.800","raised":{"high":"$hue.neutral.700"},"action":{"primary":{"$hovered":"$hue.neutral.600"},"secondary":{"$hovered":"$hue.neutral.600"}}}}},"dark":{"hue":{"gray":{"100":"#ffffff","200":"#b0b0b0","300":"#808080","400":"#444444","500":"#303030","600":"#202020","700":"#141414","800":"#101010","900":"#080808"},"blue":{"100":"#f1f4ff","200":"#93a2b7","300":"#6d7a8d","400":"#7699fe","500":"#426097","600":"#23344b","700":"#162333","800":"#0d1621","900":"#050a12"},"orange":{"100":"#f6f0eb","200":"#b09c8d","300":"#807770","400":"#ecb081","500":"#896b50","600":"#42372c","700":"#2c241d","800":"#1b1612","900":"#0d0907"},"purple":{"100":"#f7f2ff","200":"#af9eba","300":"#7d7492","400":"#a383e2","500":"#685588","600":"#3b3347","700":"#241e2c","800":"#130f18","900":"#0c080e"},"red":{"100":"#fff2f2","200":"#b09492","300":"#90706f","400":"#ef6c6c","500":"#90494a","600":"#4a2e2e","700":"#2e1f1f","800":"#1a1313","900":"#0d0909"},"green":{"100":"#f1f1f1","200":"#c5cfc5","300":"#8f9c8f","400":"#9ee77a","500":"#499049","600":"#2c422c","700":"#1f2e1f","800":"#131a13","900":"#090d09"},"accent":"$hue.blue","interactive":"$hue.blue","neutral":"$hue.gray"}}}, + "message": "Invalid theme: v2-empty-categorical [] is an invalid value" + }, + "v2-unknown-categorical": { + "source": {"$schema":"https://opencode.ai/theme.json","base":{"categorical":["nope"],"text":{"base":"$hue.neutral.100","muted":"$hue.neutral.300","action":{"primary":{"base":"$text.base","$focused":"$text.base","$selected":"$hue.interactive.400","$disabled":"$text.muted"},"secondary":{"base":"$text.muted","$hovered":"$text.base","$focused":"$hue.interactive.200"},"destructive":{"base":"$hue.neutral.900","$disabled":"$text.muted"}},"formfield":{"base":"$text.base","$hovered":"$hue.interactive.400","$focused":"$hue.interactive.400","$pressed":"$hue.interactive.400","$selected":"$hue.interactive.400","$disabled":"$text.muted"},"feedback":{"error":{"base":"$hue.red.400"},"warning":{"base":"#f5a742"},"success":{"base":"$hue.green.400"},"info":{"base":"$hue.blue.400"}}},"background":{"base":"$hue.neutral.900","raised":{"base":"$hue.neutral.700","high":"$hue.neutral.600","max":"$hue.neutral.500"},"action":{"primary":{"base":"transparent","$hovered":"$hue.neutral.700","$focused":"$hue.interactive.600","$selected":"transparent"},"secondary":{"base":"transparent"},"destructive":{"base":"$hue.red.400"}},"formfield":{"base":"$background.base"},"feedback":{"error":{"base":"$background.base"},"warning":{"base":"$background.base"},"success":{"base":"$background.base"},"info":{"base":"$background.base"}}},"border":{"base":"#484848"},"scrollbar":{"base":"#606060"},"diff":{"text":{"added":"#4fd6be","removed":"#c53b53","context":"#828bb8","hunkHeader":"#828bb8"},"background":{"added":"#20303b","removed":"#37222c","context":"$hue.neutral.700"},"highlight":{"added":"#b8db87","removed":"#e26a75"},"lineNumber":{"text":"#8f8f8f","background":{"added":"#1b2b34","removed":"#2d1f26"}}},"syntax":{"comment":"#808080","keyword":"#9d7cd8","function":"#fab283","variable":"#e06c75","string":"#7fd88f","number":"#f5a742","type":"#e5c07b","operator":"#56b6c2","punctuation":"#eeeeee"},"markdown":{"text":"#eeeeee","heading":"#9d7cd8","link":"#fab283","linkText":"#56b6c2","code":"#7fd88f","blockQuote":"#e5c07b","emphasis":"#e5c07b","strong":"#f5a742","horizontalRule":"#808080","listItem":"#fab283","listEnumeration":"#56b6c2","image":"#fab283","imageText":"#56b6c2","codeBlock":"#eeeeee"},"@dialog":{"background":{"base":"$background.raised.base","action":{"primary":{"$hovered":"$background.raised.max"},"secondary":{"$hovered":"$background.raised.max"}}},"@footer":{"text":{"muted":"$hue.neutral.200"}}}},"light":{"hue":{"gray":{"100":"#101010","200":"#505050","300":"#808080","400":"#b5b5b5","500":"#e6e6e6","600":"#eeeeee","700":"#f2f2f2","800":"#fafafa","900":"#ffffff"},"blue":{"100":"#1b1f2e","200":"#6e7380","300":"#9ba1b2","400":"#6c8ffe","500":"#b9c9f5","600":"#d3ddf8","700":"#eaf0ff","800":"#f4f7ff","900":"#fbfcff"},"orange":{"100":"#2e241b","200":"#7d7670","300":"#afa49d","400":"#c4713a","500":"#e8c7ad","600":"#f0dcce","700":"#fcf2ea","800":"#fdf8f4","900":"#fefdfb"},"purple":{"100":"#231b2e","200":"#74707c","300":"#a29dae","400":"#9d78df","500":"#cdbee7","600":"#e8e0f8","700":"#f0ebfa","800":"#f8f5fc","900":"#fcfbfe"},"red":{"100":"#2e1b1b","200":"#7e6d6d","300":"#b09999","400":"#ec6262","500":"#eab8b8","600":"#fbdada","700":"#fdeaea","800":"#fff6f6","900":"#fffbfb"},"green":{"100":"#1b2e1b","200":"#6d7e6d","300":"#99b099","400":"#62ec62","500":"#b8eab8","600":"#dafbda","700":"#eafdea","800":"#f6fff6","900":"#fbfffb"},"accent":"$hue.blue","interactive":"$hue.blue","neutral":"$hue.gray"},"text":{"feedback":{"warning":{"base":"#d68c27"}}},"border":{"base":"#b8b8b8"},"scrollbar":{"base":"#a0a0a0"},"diff":{"text":{"added":"#1e725c","removed":"#c53b53","context":"#7086b5","hunkHeader":"#7086b5"},"background":{"added":"#d5e5d5","removed":"#f7d8db","context":"$hue.neutral.700"},"highlight":{"added":"#4db380","removed":"#f52a65"},"lineNumber":{"text":"#595959","background":{"added":"#c5d5c5","removed":"#e7c8cb"}}},"syntax":{"comment":"#8a8a8a","keyword":"#d68c27","function":"#3b7dd8","variable":"#d1383d","string":"#3d9a57","number":"#d68c27","type":"#b0851f","operator":"#318795","punctuation":"#1a1a1a"},"markdown":{"text":"#1a1a1a","heading":"#d68c27","link":"#3b7dd8","linkText":"#318795","code":"#3d9a57","blockQuote":"#b0851f","emphasis":"#b0851f","strong":"#d68c27","horizontalRule":"#8a8a8a","listItem":"#3b7dd8","listEnumeration":"#318795","image":"#3b7dd8","imageText":"#318795","codeBlock":"#1a1a1a"},"@dialog":{"background":{"base":"$hue.neutral.800","raised":{"high":"$hue.neutral.700"},"action":{"primary":{"$hovered":"$hue.neutral.600"},"secondary":{"$hovered":"$hue.neutral.600"}}}}},"dark":{"hue":{"gray":{"100":"#ffffff","200":"#b0b0b0","300":"#808080","400":"#444444","500":"#303030","600":"#202020","700":"#141414","800":"#101010","900":"#080808"},"blue":{"100":"#f1f4ff","200":"#93a2b7","300":"#6d7a8d","400":"#7699fe","500":"#426097","600":"#23344b","700":"#162333","800":"#0d1621","900":"#050a12"},"orange":{"100":"#f6f0eb","200":"#b09c8d","300":"#807770","400":"#ecb081","500":"#896b50","600":"#42372c","700":"#2c241d","800":"#1b1612","900":"#0d0907"},"purple":{"100":"#f7f2ff","200":"#af9eba","300":"#7d7492","400":"#a383e2","500":"#685588","600":"#3b3347","700":"#241e2c","800":"#130f18","900":"#0c080e"},"red":{"100":"#fff2f2","200":"#b09492","300":"#90706f","400":"#ef6c6c","500":"#90494a","600":"#4a2e2e","700":"#2e1f1f","800":"#1a1313","900":"#0d0909"},"green":{"100":"#f1f1f1","200":"#c5cfc5","300":"#8f9c8f","400":"#9ee77a","500":"#499049","600":"#2c422c","700":"#1f2e1f","800":"#131a13","900":"#090d09"},"accent":"$hue.blue","interactive":"$hue.blue","neutral":"$hue.gray"}}}, + "message": "Invalid theme: v2-unknown-categorical value is an invalid value" + }, + "v2-circular": { + "source": {"$schema":"https://opencode.ai/theme.json","base":{"categorical":["blue","purple","green","orange","red"],"text":{"base":"$hue.neutral.100","muted":"$hue.neutral.300","action":{"primary":{"base":"$text.base","$focused":"$text.base","$selected":"$hue.interactive.400","$disabled":"$text.muted"},"secondary":{"base":"$text.muted","$hovered":"$text.base","$focused":"$hue.interactive.200"},"destructive":{"base":"$hue.neutral.900","$disabled":"$text.muted"}},"formfield":{"base":"$text.base","$hovered":"$hue.interactive.400","$focused":"$hue.interactive.400","$pressed":"$hue.interactive.400","$selected":"$hue.interactive.400","$disabled":"$text.muted"},"feedback":{"error":{"base":"$hue.red.400"},"warning":{"base":"#f5a742"},"success":{"base":"$hue.green.400"},"info":{"base":"$hue.blue.400"}}},"background":{"base":"$hue.neutral.900","raised":{"base":"$hue.neutral.700","high":"$hue.neutral.600","max":"$hue.neutral.500"},"action":{"primary":{"base":"transparent","$hovered":"$hue.neutral.700","$focused":"$hue.interactive.600","$selected":"transparent"},"secondary":{"base":"transparent"},"destructive":{"base":"$hue.red.400"}},"formfield":{"base":"$background.base"},"feedback":{"error":{"base":"$background.base"},"warning":{"base":"$background.base"},"success":{"base":"$background.base"},"info":{"base":"$background.base"}}},"border":{"base":"$scrollbar.base"},"scrollbar":{"base":"$border.base"},"diff":{"text":{"added":"#4fd6be","removed":"#c53b53","context":"#828bb8","hunkHeader":"#828bb8"},"background":{"added":"#20303b","removed":"#37222c","context":"$hue.neutral.700"},"highlight":{"added":"#b8db87","removed":"#e26a75"},"lineNumber":{"text":"#8f8f8f","background":{"added":"#1b2b34","removed":"#2d1f26"}}},"syntax":{"comment":"#808080","keyword":"#9d7cd8","function":"#fab283","variable":"#e06c75","string":"#7fd88f","number":"#f5a742","type":"#e5c07b","operator":"#56b6c2","punctuation":"#eeeeee"},"markdown":{"text":"#eeeeee","heading":"#9d7cd8","link":"#fab283","linkText":"#56b6c2","code":"#7fd88f","blockQuote":"#e5c07b","emphasis":"#e5c07b","strong":"#f5a742","horizontalRule":"#808080","listItem":"#fab283","listEnumeration":"#56b6c2","image":"#fab283","imageText":"#56b6c2","codeBlock":"#eeeeee"},"@dialog":{"background":{"base":"$background.raised.base","action":{"primary":{"$hovered":"$background.raised.max"},"secondary":{"$hovered":"$background.raised.max"}}},"@footer":{"text":{"muted":"$hue.neutral.200"}}}},"light":{"hue":{"gray":{"100":"#101010","200":"#505050","300":"#808080","400":"#b5b5b5","500":"#e6e6e6","600":"#eeeeee","700":"#f2f2f2","800":"#fafafa","900":"#ffffff"},"blue":{"100":"#1b1f2e","200":"#6e7380","300":"#9ba1b2","400":"#6c8ffe","500":"#b9c9f5","600":"#d3ddf8","700":"#eaf0ff","800":"#f4f7ff","900":"#fbfcff"},"orange":{"100":"#2e241b","200":"#7d7670","300":"#afa49d","400":"#c4713a","500":"#e8c7ad","600":"#f0dcce","700":"#fcf2ea","800":"#fdf8f4","900":"#fefdfb"},"purple":{"100":"#231b2e","200":"#74707c","300":"#a29dae","400":"#9d78df","500":"#cdbee7","600":"#e8e0f8","700":"#f0ebfa","800":"#f8f5fc","900":"#fcfbfe"},"red":{"100":"#2e1b1b","200":"#7e6d6d","300":"#b09999","400":"#ec6262","500":"#eab8b8","600":"#fbdada","700":"#fdeaea","800":"#fff6f6","900":"#fffbfb"},"green":{"100":"#1b2e1b","200":"#6d7e6d","300":"#99b099","400":"#62ec62","500":"#b8eab8","600":"#dafbda","700":"#eafdea","800":"#f6fff6","900":"#fbfffb"},"accent":"$hue.blue","interactive":"$hue.blue","neutral":"$hue.gray"},"text":{"feedback":{"warning":{"base":"#d68c27"}}},"border":{"base":"#b8b8b8"},"scrollbar":{"base":"#a0a0a0"},"diff":{"text":{"added":"#1e725c","removed":"#c53b53","context":"#7086b5","hunkHeader":"#7086b5"},"background":{"added":"#d5e5d5","removed":"#f7d8db","context":"$hue.neutral.700"},"highlight":{"added":"#4db380","removed":"#f52a65"},"lineNumber":{"text":"#595959","background":{"added":"#c5d5c5","removed":"#e7c8cb"}}},"syntax":{"comment":"#8a8a8a","keyword":"#d68c27","function":"#3b7dd8","variable":"#d1383d","string":"#3d9a57","number":"#d68c27","type":"#b0851f","operator":"#318795","punctuation":"#1a1a1a"},"markdown":{"text":"#1a1a1a","heading":"#d68c27","link":"#3b7dd8","linkText":"#318795","code":"#3d9a57","blockQuote":"#b0851f","emphasis":"#b0851f","strong":"#d68c27","horizontalRule":"#8a8a8a","listItem":"#3b7dd8","listEnumeration":"#318795","image":"#3b7dd8","imageText":"#318795","codeBlock":"#1a1a1a"},"@dialog":{"background":{"base":"$hue.neutral.800","raised":{"high":"$hue.neutral.700"},"action":{"primary":{"$hovered":"$hue.neutral.600"},"secondary":{"$hovered":"$hue.neutral.600"}}}}},"dark":{"hue":{"gray":{"100":"#ffffff","200":"#b0b0b0","300":"#808080","400":"#444444","500":"#303030","600":"#202020","700":"#141414","800":"#101010","900":"#080808"},"blue":{"100":"#f1f4ff","200":"#93a2b7","300":"#6d7a8d","400":"#7699fe","500":"#426097","600":"#23344b","700":"#162333","800":"#0d1621","900":"#050a12"},"orange":{"100":"#f6f0eb","200":"#b09c8d","300":"#807770","400":"#ecb081","500":"#896b50","600":"#42372c","700":"#2c241d","800":"#1b1612","900":"#0d0907"},"purple":{"100":"#f7f2ff","200":"#af9eba","300":"#7d7492","400":"#a383e2","500":"#685588","600":"#3b3347","700":"#241e2c","800":"#130f18","900":"#0c080e"},"red":{"100":"#fff2f2","200":"#b09492","300":"#90706f","400":"#ef6c6c","500":"#90494a","600":"#4a2e2e","700":"#2e1f1f","800":"#1a1313","900":"#0d0909"},"green":{"100":"#f1f1f1","200":"#c5cfc5","300":"#8f9c8f","400":"#9ee77a","500":"#499049","600":"#2c422c","700":"#1f2e1f","800":"#131a13","900":"#090d09"},"accent":"$hue.blue","interactive":"$hue.blue","neutral":"$hue.gray"}}}, + "message": "Invalid theme: v2-circular value is an invalid value" + }, + "v2-extra-key": { + "source": {"$schema":"https://opencode.ai/theme.json","base":{"categorical":["blue","purple","green","orange","red"],"text":{"base":"$hue.neutral.100","muted":"$hue.neutral.300","action":{"primary":{"base":"$text.base","$focused":"$text.base","$selected":"$hue.interactive.400","$disabled":"$text.muted"},"secondary":{"base":"$text.muted","$hovered":"$text.base","$focused":"$hue.interactive.200"},"destructive":{"base":"$hue.neutral.900","$disabled":"$text.muted"}},"formfield":{"base":"$text.base","$hovered":"$hue.interactive.400","$focused":"$hue.interactive.400","$pressed":"$hue.interactive.400","$selected":"$hue.interactive.400","$disabled":"$text.muted"},"feedback":{"error":{"base":"$hue.red.400"},"warning":{"base":"#f5a742"},"success":{"base":"$hue.green.400"},"info":{"base":"$hue.blue.400"}},"extra":"#ffffff"},"background":{"base":"$hue.neutral.900","raised":{"base":"$hue.neutral.700","high":"$hue.neutral.600","max":"$hue.neutral.500"},"action":{"primary":{"base":"transparent","$hovered":"$hue.neutral.700","$focused":"$hue.interactive.600","$selected":"transparent"},"secondary":{"base":"transparent"},"destructive":{"base":"$hue.red.400"}},"formfield":{"base":"$background.base"},"feedback":{"error":{"base":"$background.base"},"warning":{"base":"$background.base"},"success":{"base":"$background.base"},"info":{"base":"$background.base"}}},"border":{"base":"$text.extra"},"scrollbar":{"base":"#606060"},"diff":{"text":{"added":"#4fd6be","removed":"#c53b53","context":"#828bb8","hunkHeader":"#828bb8"},"background":{"added":"#20303b","removed":"#37222c","context":"$hue.neutral.700"},"highlight":{"added":"#b8db87","removed":"#e26a75"},"lineNumber":{"text":"#8f8f8f","background":{"added":"#1b2b34","removed":"#2d1f26"}}},"syntax":{"comment":"#808080","keyword":"#9d7cd8","function":"#fab283","variable":"#e06c75","string":"#7fd88f","number":"#f5a742","type":"#e5c07b","operator":"#56b6c2","punctuation":"#eeeeee"},"markdown":{"text":"#eeeeee","heading":"#9d7cd8","link":"#fab283","linkText":"#56b6c2","code":"#7fd88f","blockQuote":"#e5c07b","emphasis":"#e5c07b","strong":"#f5a742","horizontalRule":"#808080","listItem":"#fab283","listEnumeration":"#56b6c2","image":"#fab283","imageText":"#56b6c2","codeBlock":"#eeeeee"},"@dialog":{"background":{"base":"$background.raised.base","action":{"primary":{"$hovered":"$background.raised.max"},"secondary":{"$hovered":"$background.raised.max"}}},"@footer":{"text":{"muted":"$hue.neutral.200"}}}},"light":{"hue":{"gray":{"100":"#101010","200":"#505050","300":"#808080","400":"#b5b5b5","500":"#e6e6e6","600":"#eeeeee","700":"#f2f2f2","800":"#fafafa","900":"#ffffff"},"blue":{"100":"#1b1f2e","200":"#6e7380","300":"#9ba1b2","400":"#6c8ffe","500":"#b9c9f5","600":"#d3ddf8","700":"#eaf0ff","800":"#f4f7ff","900":"#fbfcff"},"orange":{"100":"#2e241b","200":"#7d7670","300":"#afa49d","400":"#c4713a","500":"#e8c7ad","600":"#f0dcce","700":"#fcf2ea","800":"#fdf8f4","900":"#fefdfb"},"purple":{"100":"#231b2e","200":"#74707c","300":"#a29dae","400":"#9d78df","500":"#cdbee7","600":"#e8e0f8","700":"#f0ebfa","800":"#f8f5fc","900":"#fcfbfe"},"red":{"100":"#2e1b1b","200":"#7e6d6d","300":"#b09999","400":"#ec6262","500":"#eab8b8","600":"#fbdada","700":"#fdeaea","800":"#fff6f6","900":"#fffbfb"},"green":{"100":"#1b2e1b","200":"#6d7e6d","300":"#99b099","400":"#62ec62","500":"#b8eab8","600":"#dafbda","700":"#eafdea","800":"#f6fff6","900":"#fbfffb"},"accent":"$hue.blue","interactive":"$hue.blue","neutral":"$hue.gray"},"text":{"feedback":{"warning":{"base":"#d68c27"}}},"border":{"base":"#b8b8b8"},"scrollbar":{"base":"#a0a0a0"},"diff":{"text":{"added":"#1e725c","removed":"#c53b53","context":"#7086b5","hunkHeader":"#7086b5"},"background":{"added":"#d5e5d5","removed":"#f7d8db","context":"$hue.neutral.700"},"highlight":{"added":"#4db380","removed":"#f52a65"},"lineNumber":{"text":"#595959","background":{"added":"#c5d5c5","removed":"#e7c8cb"}}},"syntax":{"comment":"#8a8a8a","keyword":"#d68c27","function":"#3b7dd8","variable":"#d1383d","string":"#3d9a57","number":"#d68c27","type":"#b0851f","operator":"#318795","punctuation":"#1a1a1a"},"markdown":{"text":"#1a1a1a","heading":"#d68c27","link":"#3b7dd8","linkText":"#318795","code":"#3d9a57","blockQuote":"#b0851f","emphasis":"#b0851f","strong":"#d68c27","horizontalRule":"#8a8a8a","listItem":"#3b7dd8","listEnumeration":"#318795","image":"#3b7dd8","imageText":"#318795","codeBlock":"#1a1a1a"},"@dialog":{"background":{"base":"$hue.neutral.800","raised":{"high":"$hue.neutral.700"},"action":{"primary":{"$hovered":"$hue.neutral.600"},"secondary":{"$hovered":"$hue.neutral.600"}}}}},"dark":{"hue":{"gray":{"100":"#ffffff","200":"#b0b0b0","300":"#808080","400":"#444444","500":"#303030","600":"#202020","700":"#141414","800":"#101010","900":"#080808"},"blue":{"100":"#f1f4ff","200":"#93a2b7","300":"#6d7a8d","400":"#7699fe","500":"#426097","600":"#23344b","700":"#162333","800":"#0d1621","900":"#050a12"},"orange":{"100":"#f6f0eb","200":"#b09c8d","300":"#807770","400":"#ecb081","500":"#896b50","600":"#42372c","700":"#2c241d","800":"#1b1612","900":"#0d0907"},"purple":{"100":"#f7f2ff","200":"#af9eba","300":"#7d7492","400":"#a383e2","500":"#685588","600":"#3b3347","700":"#241e2c","800":"#130f18","900":"#0c080e"},"red":{"100":"#fff2f2","200":"#b09492","300":"#90706f","400":"#ef6c6c","500":"#90494a","600":"#4a2e2e","700":"#2e1f1f","800":"#1a1313","900":"#0d0909"},"green":{"100":"#f1f1f1","200":"#c5cfc5","300":"#8f9c8f","400":"#9ee77a","500":"#499049","600":"#2c422c","700":"#1f2e1f","800":"#131a13","900":"#090d09"},"accent":"$hue.blue","interactive":"$hue.blue","neutral":"$hue.gray"}}}, + "message": "Invalid theme: v2-extra-key value is an invalid value" + }, + "v2-missing-reference": { + "source": {"$schema":"https://opencode.ai/theme.json","base":{"categorical":["blue","purple","green","orange","red"],"text":{"base":"$hue.neutral.100","muted":"$hue.neutral.300","action":{"primary":{"base":"$text.base","$focused":"$text.base","$selected":"$hue.interactive.400","$disabled":"$text.muted"},"secondary":{"base":"$text.muted","$hovered":"$text.base","$focused":"$hue.interactive.200"},"destructive":{"base":"$hue.neutral.900","$disabled":"$text.muted"}},"formfield":{"base":"$text.base","$hovered":"$hue.interactive.400","$focused":"$hue.interactive.400","$pressed":"$hue.interactive.400","$selected":"$hue.interactive.400","$disabled":"$text.muted"},"feedback":{"error":{"base":"$hue.red.400"},"warning":{"base":"#f5a742"},"success":{"base":"$hue.green.400"},"info":{"base":"$hue.blue.400"}}},"background":{"base":"$hue.neutral.900","raised":{"base":"$hue.neutral.700","high":"$hue.neutral.600","max":"$hue.neutral.500"},"action":{"primary":{"base":"transparent","$hovered":"$hue.neutral.700","$focused":"$hue.interactive.600","$selected":"transparent"},"secondary":{"base":"transparent"},"destructive":{"base":"$hue.red.400"}},"formfield":{"base":"$background.base"},"feedback":{"error":{"base":"$background.base"},"warning":{"base":"$background.base"},"success":{"base":"$background.base"},"info":{"base":"$background.base"}}},"border":{"base":"$text.nope"},"scrollbar":{"base":"#606060"},"diff":{"text":{"added":"#4fd6be","removed":"#c53b53","context":"#828bb8","hunkHeader":"#828bb8"},"background":{"added":"#20303b","removed":"#37222c","context":"$hue.neutral.700"},"highlight":{"added":"#b8db87","removed":"#e26a75"},"lineNumber":{"text":"#8f8f8f","background":{"added":"#1b2b34","removed":"#2d1f26"}}},"syntax":{"comment":"#808080","keyword":"#9d7cd8","function":"#fab283","variable":"#e06c75","string":"#7fd88f","number":"#f5a742","type":"#e5c07b","operator":"#56b6c2","punctuation":"#eeeeee"},"markdown":{"text":"#eeeeee","heading":"#9d7cd8","link":"#fab283","linkText":"#56b6c2","code":"#7fd88f","blockQuote":"#e5c07b","emphasis":"#e5c07b","strong":"#f5a742","horizontalRule":"#808080","listItem":"#fab283","listEnumeration":"#56b6c2","image":"#fab283","imageText":"#56b6c2","codeBlock":"#eeeeee"},"@dialog":{"background":{"base":"$background.raised.base","action":{"primary":{"$hovered":"$background.raised.max"},"secondary":{"$hovered":"$background.raised.max"}}},"@footer":{"text":{"muted":"$hue.neutral.200"}}}},"light":{"hue":{"gray":{"100":"#101010","200":"#505050","300":"#808080","400":"#b5b5b5","500":"#e6e6e6","600":"#eeeeee","700":"#f2f2f2","800":"#fafafa","900":"#ffffff"},"blue":{"100":"#1b1f2e","200":"#6e7380","300":"#9ba1b2","400":"#6c8ffe","500":"#b9c9f5","600":"#d3ddf8","700":"#eaf0ff","800":"#f4f7ff","900":"#fbfcff"},"orange":{"100":"#2e241b","200":"#7d7670","300":"#afa49d","400":"#c4713a","500":"#e8c7ad","600":"#f0dcce","700":"#fcf2ea","800":"#fdf8f4","900":"#fefdfb"},"purple":{"100":"#231b2e","200":"#74707c","300":"#a29dae","400":"#9d78df","500":"#cdbee7","600":"#e8e0f8","700":"#f0ebfa","800":"#f8f5fc","900":"#fcfbfe"},"red":{"100":"#2e1b1b","200":"#7e6d6d","300":"#b09999","400":"#ec6262","500":"#eab8b8","600":"#fbdada","700":"#fdeaea","800":"#fff6f6","900":"#fffbfb"},"green":{"100":"#1b2e1b","200":"#6d7e6d","300":"#99b099","400":"#62ec62","500":"#b8eab8","600":"#dafbda","700":"#eafdea","800":"#f6fff6","900":"#fbfffb"},"accent":"$hue.blue","interactive":"$hue.blue","neutral":"$hue.gray"},"text":{"feedback":{"warning":{"base":"#d68c27"}}},"border":{"base":"#b8b8b8"},"scrollbar":{"base":"#a0a0a0"},"diff":{"text":{"added":"#1e725c","removed":"#c53b53","context":"#7086b5","hunkHeader":"#7086b5"},"background":{"added":"#d5e5d5","removed":"#f7d8db","context":"$hue.neutral.700"},"highlight":{"added":"#4db380","removed":"#f52a65"},"lineNumber":{"text":"#595959","background":{"added":"#c5d5c5","removed":"#e7c8cb"}}},"syntax":{"comment":"#8a8a8a","keyword":"#d68c27","function":"#3b7dd8","variable":"#d1383d","string":"#3d9a57","number":"#d68c27","type":"#b0851f","operator":"#318795","punctuation":"#1a1a1a"},"markdown":{"text":"#1a1a1a","heading":"#d68c27","link":"#3b7dd8","linkText":"#318795","code":"#3d9a57","blockQuote":"#b0851f","emphasis":"#b0851f","strong":"#d68c27","horizontalRule":"#8a8a8a","listItem":"#3b7dd8","listEnumeration":"#318795","image":"#3b7dd8","imageText":"#318795","codeBlock":"#1a1a1a"},"@dialog":{"background":{"base":"$hue.neutral.800","raised":{"high":"$hue.neutral.700"},"action":{"primary":{"$hovered":"$hue.neutral.600"},"secondary":{"$hovered":"$hue.neutral.600"}}}}},"dark":{"hue":{"gray":{"100":"#ffffff","200":"#b0b0b0","300":"#808080","400":"#444444","500":"#303030","600":"#202020","700":"#141414","800":"#101010","900":"#080808"},"blue":{"100":"#f1f4ff","200":"#93a2b7","300":"#6d7a8d","400":"#7699fe","500":"#426097","600":"#23344b","700":"#162333","800":"#0d1621","900":"#050a12"},"orange":{"100":"#f6f0eb","200":"#b09c8d","300":"#807770","400":"#ecb081","500":"#896b50","600":"#42372c","700":"#2c241d","800":"#1b1612","900":"#0d0907"},"purple":{"100":"#f7f2ff","200":"#af9eba","300":"#7d7492","400":"#a383e2","500":"#685588","600":"#3b3347","700":"#241e2c","800":"#130f18","900":"#0c080e"},"red":{"100":"#fff2f2","200":"#b09492","300":"#90706f","400":"#ef6c6c","500":"#90494a","600":"#4a2e2e","700":"#2e1f1f","800":"#1a1313","900":"#0d0909"},"green":{"100":"#f1f1f1","200":"#c5cfc5","300":"#8f9c8f","400":"#9ee77a","500":"#499049","600":"#2c422c","700":"#1f2e1f","800":"#131a13","900":"#090d09"},"accent":"$hue.blue","interactive":"$hue.blue","neutral":"$hue.gray"}}}, + "message": "Invalid theme: v2-missing-reference value is an invalid value" + }, + "v2-no-modes": { + "source": {"base":{"categorical":["blue","purple","green","orange","red"],"text":{"base":"$hue.neutral.100","muted":"$hue.neutral.300","action":{"primary":{"base":"$text.base","$focused":"$text.base","$selected":"$hue.interactive.400","$disabled":"$text.muted"},"secondary":{"base":"$text.muted","$hovered":"$text.base","$focused":"$hue.interactive.200"},"destructive":{"base":"$hue.neutral.900","$disabled":"$text.muted"}},"formfield":{"base":"$text.base","$hovered":"$hue.interactive.400","$focused":"$hue.interactive.400","$pressed":"$hue.interactive.400","$selected":"$hue.interactive.400","$disabled":"$text.muted"},"feedback":{"error":{"base":"$hue.red.400"},"warning":{"base":"#f5a742"},"success":{"base":"$hue.green.400"},"info":{"base":"$hue.blue.400"}}},"background":{"base":"$hue.neutral.900","raised":{"base":"$hue.neutral.700","high":"$hue.neutral.600","max":"$hue.neutral.500"},"action":{"primary":{"base":"transparent","$hovered":"$hue.neutral.700","$focused":"$hue.interactive.600","$selected":"transparent"},"secondary":{"base":"transparent"},"destructive":{"base":"$hue.red.400"}},"formfield":{"base":"$background.base"},"feedback":{"error":{"base":"$background.base"},"warning":{"base":"$background.base"},"success":{"base":"$background.base"},"info":{"base":"$background.base"}}},"border":{"base":"#484848"},"scrollbar":{"base":"#606060"},"diff":{"text":{"added":"#4fd6be","removed":"#c53b53","context":"#828bb8","hunkHeader":"#828bb8"},"background":{"added":"#20303b","removed":"#37222c","context":"$hue.neutral.700"},"highlight":{"added":"#b8db87","removed":"#e26a75"},"lineNumber":{"text":"#8f8f8f","background":{"added":"#1b2b34","removed":"#2d1f26"}}},"syntax":{"comment":"#808080","keyword":"#9d7cd8","function":"#fab283","variable":"#e06c75","string":"#7fd88f","number":"#f5a742","type":"#e5c07b","operator":"#56b6c2","punctuation":"#eeeeee"},"markdown":{"text":"#eeeeee","heading":"#9d7cd8","link":"#fab283","linkText":"#56b6c2","code":"#7fd88f","blockQuote":"#e5c07b","emphasis":"#e5c07b","strong":"#f5a742","horizontalRule":"#808080","listItem":"#fab283","listEnumeration":"#56b6c2","image":"#fab283","imageText":"#56b6c2","codeBlock":"#eeeeee"},"@dialog":{"background":{"base":"$background.raised.base","action":{"primary":{"$hovered":"$background.raised.max"},"secondary":{"$hovered":"$background.raised.max"}}},"@footer":{"text":{"muted":"$hue.neutral.200"}}}}}, + "message": "Invalid theme: v2-no-modes value is an invalid value" + }, + "v2-missing-hue": { + "source": {"$schema":"https://opencode.ai/theme.json","base":{"categorical":["blue","purple","green","orange","red"],"text":{"base":"$hue.neutral.100","muted":"$hue.neutral.300","action":{"primary":{"base":"$text.base","$focused":"$text.base","$selected":"$hue.interactive.400","$disabled":"$text.muted"},"secondary":{"base":"$text.muted","$hovered":"$text.base","$focused":"$hue.interactive.200"},"destructive":{"base":"$hue.neutral.900","$disabled":"$text.muted"}},"formfield":{"base":"$text.base","$hovered":"$hue.interactive.400","$focused":"$hue.interactive.400","$pressed":"$hue.interactive.400","$selected":"$hue.interactive.400","$disabled":"$text.muted"},"feedback":{"error":{"base":"$hue.red.400"},"warning":{"base":"#f5a742"},"success":{"base":"$hue.green.400"},"info":{"base":"$hue.blue.400"}}},"background":{"base":"$hue.neutral.900","raised":{"base":"$hue.neutral.700","high":"$hue.neutral.600","max":"$hue.neutral.500"},"action":{"primary":{"base":"transparent","$hovered":"$hue.neutral.700","$focused":"$hue.interactive.600","$selected":"transparent"},"secondary":{"base":"transparent"},"destructive":{"base":"$hue.red.400"}},"formfield":{"base":"$background.base"},"feedback":{"error":{"base":"$background.base"},"warning":{"base":"$background.base"},"success":{"base":"$background.base"},"info":{"base":"$background.base"}}},"border":{"base":"#484848"},"scrollbar":{"base":"#606060"},"diff":{"text":{"added":"#4fd6be","removed":"#c53b53","context":"#828bb8","hunkHeader":"#828bb8"},"background":{"added":"#20303b","removed":"#37222c","context":"$hue.neutral.700"},"highlight":{"added":"#b8db87","removed":"#e26a75"},"lineNumber":{"text":"#8f8f8f","background":{"added":"#1b2b34","removed":"#2d1f26"}}},"syntax":{"comment":"#808080","keyword":"#9d7cd8","function":"#fab283","variable":"#e06c75","string":"#7fd88f","number":"#f5a742","type":"#e5c07b","operator":"#56b6c2","punctuation":"#eeeeee"},"markdown":{"text":"#eeeeee","heading":"#9d7cd8","link":"#fab283","linkText":"#56b6c2","code":"#7fd88f","blockQuote":"#e5c07b","emphasis":"#e5c07b","strong":"#f5a742","horizontalRule":"#808080","listItem":"#fab283","listEnumeration":"#56b6c2","image":"#fab283","imageText":"#56b6c2","codeBlock":"#eeeeee"},"@dialog":{"background":{"base":"$background.raised.base","action":{"primary":{"$hovered":"$background.raised.max"},"secondary":{"$hovered":"$background.raised.max"}}},"@footer":{"text":{"muted":"$hue.neutral.200"}}}},"light":{"hue":{"gray":{"100":"#101010","200":"#505050","300":"#808080","400":"#b5b5b5","500":"#e6e6e6","600":"#eeeeee","700":"#f2f2f2","800":"#fafafa","900":"#ffffff"},"blue":{"100":"#1b1f2e","200":"#6e7380","300":"#9ba1b2","400":"#6c8ffe","500":"#b9c9f5","600":"#d3ddf8","700":"#eaf0ff","800":"#f4f7ff","900":"#fbfcff"},"orange":{"100":"#2e241b","200":"#7d7670","300":"#afa49d","400":"#c4713a","500":"#e8c7ad","600":"#f0dcce","700":"#fcf2ea","800":"#fdf8f4","900":"#fefdfb"},"purple":{"100":"#231b2e","200":"#74707c","300":"#a29dae","400":"#9d78df","500":"#cdbee7","600":"#e8e0f8","700":"#f0ebfa","800":"#f8f5fc","900":"#fcfbfe"},"red":{"100":"#2e1b1b","200":"#7e6d6d","300":"#b09999","400":"#ec6262","500":"#eab8b8","600":"#fbdada","700":"#fdeaea","800":"#fff6f6","900":"#fffbfb"},"green":{"100":"#1b2e1b","200":"#6d7e6d","300":"#99b099","400":"#62ec62","500":"#b8eab8","600":"#dafbda","700":"#eafdea","800":"#f6fff6","900":"#fbfffb"},"accent":"$hue.blue","interactive":"$hue.blue","neutral":"$hue.gray"},"text":{"feedback":{"warning":{"base":"#d68c27"}}},"border":{"base":"#b8b8b8"},"scrollbar":{"base":"#a0a0a0"},"diff":{"text":{"added":"#1e725c","removed":"#c53b53","context":"#7086b5","hunkHeader":"#7086b5"},"background":{"added":"#d5e5d5","removed":"#f7d8db","context":"$hue.neutral.700"},"highlight":{"added":"#4db380","removed":"#f52a65"},"lineNumber":{"text":"#595959","background":{"added":"#c5d5c5","removed":"#e7c8cb"}}},"syntax":{"comment":"#8a8a8a","keyword":"#d68c27","function":"#3b7dd8","variable":"#d1383d","string":"#3d9a57","number":"#d68c27","type":"#b0851f","operator":"#318795","punctuation":"#1a1a1a"},"markdown":{"text":"#1a1a1a","heading":"#d68c27","link":"#3b7dd8","linkText":"#318795","code":"#3d9a57","blockQuote":"#b0851f","emphasis":"#b0851f","strong":"#d68c27","horizontalRule":"#8a8a8a","listItem":"#3b7dd8","listEnumeration":"#318795","image":"#3b7dd8","imageText":"#318795","codeBlock":"#1a1a1a"},"@dialog":{"background":{"base":"$hue.neutral.800","raised":{"high":"$hue.neutral.700"},"action":{"primary":{"$hovered":"$hue.neutral.600"},"secondary":{"$hovered":"$hue.neutral.600"}}}}},"dark":{"hue":{"accent":"$hue.gray","interactive":"$hue.gray"}}}, + "message": "Invalid theme: v2-missing-hue value is an invalid value" + } + } +} diff --git a/packages/cli-rs/parity/fixtures/U.2/keymap.json b/packages/cli-rs/parity/fixtures/U.2/keymap.json new file mode 100644 index 000000000000..c72b3c31082e --- /dev/null +++ b/packages/cli-rs/parity/fixtures/U.2/keymap.json @@ -0,0 +1,2042 @@ +{ + "scenarios": [ + { + "name": "defaults isolated", + "keybinds": {}, + "terminalSuspend": true, + "layout": "isolated", + "textarea": false, + "cases": [ + {"command":"app.exit","keys":["\u001b[99;5u"],"commands":["app.exit"]}, + {"command":"app.exit","keys":["\u0003"],"commands":["app.exit"]}, + {"command":"app.exit","keys":["\u001b[100;5u"],"commands":["app.exit"]}, + {"command":"app.exit","keys":["\u0004"],"commands":["app.exit"]}, + {"command":"app.exit","keys":["\u001b[120;5u","q"],"commands":["app.exit"]}, + {"command":"app.exit","keys":["\u0018","q"],"commands":["app.exit"]}, + {"command":"app.clear","keys":["\u001b[108;5u"],"commands":["app.clear"]}, + {"command":"app.clear","keys":["\f"],"commands":["app.clear"]}, + {"command":"command.palette.show","keys":["\u001b[112;5u"],"commands":["command.palette.show"]}, + {"command":"command.palette.show","keys":["\u0010"],"commands":["command.palette.show"]}, + {"command":"diff.close","keys":["\u001b[27u"],"commands":["diff.close"]}, + {"command":"diff.close","keys":["q"],"commands":["diff.close"]}, + {"command":"diff.down","keys":["j"],"commands":["diff.down"]}, + {"command":"diff.down","keys":["\u001b[B"],"commands":["diff.down"]}, + {"command":"diff.up","keys":["k"],"commands":["diff.up"]}, + {"command":"diff.up","keys":["\u001b[A"],"commands":["diff.up"]}, + {"command":"diff.page.down","keys":["\u001b[6~"],"commands":["diff.page.down"]}, + {"command":"diff.page.down","keys":["\u001b[102;5u"],"commands":["diff.page.down"]}, + {"command":"diff.page.down","keys":["\u0006"],"commands":["diff.page.down"]}, + {"command":"diff.page.up","keys":["\u001b[5~"],"commands":["diff.page.up"]}, + {"command":"diff.page.up","keys":["\u001b[98;5u"],"commands":["diff.page.up"]}, + {"command":"diff.page.up","keys":["\u0002"],"commands":["diff.page.up"]}, + {"command":"diff.half_page.down","keys":["\u001b[100;5u"],"commands":["diff.half_page.down"]}, + {"command":"diff.half_page.down","keys":["\u0004"],"commands":["diff.half_page.down"]}, + {"command":"diff.half_page.up","keys":["\u001b[117;5u"],"commands":["diff.half_page.up"]}, + {"command":"diff.half_page.up","keys":["\u0015"],"commands":["diff.half_page.up"]}, + {"command":"diff.first","keys":["g","g"],"commands":["diff.first"]}, + {"command":"diff.first","keys":["\u001b[H"],"commands":["diff.first"]}, + {"command":"diff.last","keys":["\u001b[103;2u"],"commands":["diff.last"]}, + {"command":"diff.last","keys":["G"],"commands":["diff.last"]}, + {"command":"diff.last","keys":["\u001b[F"],"commands":["diff.last"]}, + {"command":"diff.next_hunk","keys":["]"],"commands":["diff.next_hunk"]}, + {"command":"diff.previous_hunk","keys":["["],"commands":["diff.previous_hunk"]}, + {"command":"diff.next_file","keys":["n"],"commands":["diff.next_file"]}, + {"command":"diff.next_file","keys":["\u001b[1;3B"],"commands":["diff.next_file"]}, + {"command":"diff.previous_file","keys":["p"],"commands":["diff.previous_file"]}, + {"command":"diff.previous_file","keys":["\u001b[1;3A"],"commands":["diff.previous_file"]}, + {"command":"diff.toggle_file_tree","keys":["b"],"commands":["diff.toggle_file_tree"]}, + {"command":"diff.single_patch","keys":["s"],"commands":["diff.single_patch"]}, + {"command":"diff.switch_source","keys":["d"],"commands":["diff.switch_source"]}, + {"command":"diff.toggle_view","keys":["v"],"commands":["diff.toggle_view"]}, + {"command":"diff.toggle_fullscreen","keys":["f"],"commands":["diff.toggle_fullscreen"]}, + {"command":"diff.mark_reviewed","keys":["m"],"commands":["diff.mark_reviewed"]}, + {"command":"diff.help","keys":["?"],"commands":["diff.help"]}, + {"command":"diff.help","keys":["\u001b[63;2u"],"commands":["diff.help"]}, + {"command":"diff.help","keys":["\u001b[47;2u"],"commands":["diff.help"]}, + {"command":"prompt.editor","keys":["\u001b[120;5u","e"],"commands":["prompt.editor"]}, + {"command":"prompt.editor","keys":["\u0018","e"],"commands":["prompt.editor"]}, + {"command":"session.sidebar.toggle","keys":["\u001b[120;5u","b"],"commands":["session.sidebar.toggle"]}, + {"command":"session.sidebar.toggle","keys":["\u0018","b"],"commands":["session.sidebar.toggle"]}, + {"command":"pane.focus.left","keys":["\u001b[120;5u","\u001b[D"],"commands":["pane.focus.left"]}, + {"command":"pane.focus.left","keys":["\u0018","\u001b[D"],"commands":["pane.focus.left"]}, + {"command":"pane.focus.right","keys":["\u001b[120;5u","\u001b[C"],"commands":["pane.focus.right"]}, + {"command":"pane.focus.right","keys":["\u0018","\u001b[C"],"commands":["pane.focus.right"]}, + {"command":"terminal.select","keys":["\u001b[120;5u","\u001b[B"],"commands":["terminal.select"]}, + {"command":"terminal.select","keys":["\u0018","\u001b[B"],"commands":["terminal.select"]}, + {"command":"terminal.toggle","keys":["\u001b[120;5u","t"],"commands":["terminal.toggle"]}, + {"command":"terminal.toggle","keys":["\u0018","t"],"commands":["terminal.toggle"]}, + {"command":"terminal.close","keys":["\u001b[120;5u","\u001b[A"],"commands":["terminal.close"]}, + {"command":"terminal.close","keys":["\u0018","\u001b[A"],"commands":["terminal.close"]}, + {"command":"opencode.status","keys":["\u001b[120;5u","s"],"commands":["opencode.status"]}, + {"command":"opencode.status","keys":["\u0018","s"],"commands":["opencode.status"]}, + {"command":"session.export","keys":["\u001b[120;5u","x"],"commands":["session.export"]}, + {"command":"session.export","keys":["\u0018","x"],"commands":["session.export"]}, + {"command":"session.new","keys":["\u001b[120;5u","n"],"commands":["session.new"]}, + {"command":"session.new","keys":["\u0018","n"],"commands":["session.new"]}, + {"command":"session.list","keys":["\u001b[120;5u","l"],"commands":["session.list"]}, + {"command":"session.list","keys":["\u0018","l"],"commands":["session.list"]}, + {"command":"open.menu","keys":["\u001b[111;5u"],"commands":["open.menu"]}, + {"command":"open.menu","keys":["\u000f"],"commands":["open.menu"]}, + {"command":"session.tab.next","keys":["\u001b[9;5u"],"commands":["session.tab.next"]}, + {"command":"session.tab.next","keys":["\u001b[1;3B"],"commands":["session.tab.next"]}, + {"command":"session.tab.previous","keys":["\u001b[9;6u"],"commands":["session.tab.previous"]}, + {"command":"session.tab.previous","keys":["\u001b[1;3A"],"commands":["session.tab.previous"]}, + {"command":"session.tab.history.forward","keys":["\u001b[105;5u"],"commands":["session.tab.history.forward"]}, + {"command":"session.tab.history.forward","keys":["\t"],"commands":[]}, + {"command":"session.tab.next_unread","keys":["\u001b[1;4B"],"commands":["session.tab.next_unread"]}, + {"command":"session.tab.previous_unread","keys":["\u001b[1;4A"],"commands":["session.tab.previous_unread"]}, + {"command":"session.tab.close","keys":["\u001b[120;5u","w"],"commands":["session.tab.close"]}, + {"command":"session.tab.close","keys":["\u0018","w"],"commands":["session.tab.close"]}, + {"command":"session.tab.reopen","keys":["\u001b[116;6u"],"commands":["session.tab.reopen"]}, + {"command":"session.timeline","keys":["\u001b[120;5u","g"],"commands":["session.timeline"]}, + {"command":"session.timeline","keys":["\u0018","g"],"commands":["session.timeline"]}, + {"command":"session.rename","keys":["\u001b[114;5u"],"commands":["session.rename"]}, + {"command":"session.rename","keys":["\u0012"],"commands":["session.rename"]}, + {"command":"session.delete","keys":["\u001b[100;5u"],"commands":["session.delete"]}, + {"command":"session.delete","keys":["\u0004"],"commands":["session.delete"]}, + {"command":"session.interrupt","keys":["\u001b[27u"],"commands":["session.interrupt"]}, + {"command":"session.background","keys":["\u001b[98;5u"],"commands":["session.background"]}, + {"command":"session.background","keys":["\u0002"],"commands":["session.background"]}, + {"command":"session.compact","keys":["\u001b[120;5u","c"],"commands":["session.compact"]}, + {"command":"session.compact","keys":["\u0018","c"],"commands":["session.compact"]}, + {"command":"session.queued_prompts","keys":["\u001b[120;5u","q"],"commands":["session.queued_prompts"]}, + {"command":"session.queued_prompts","keys":["\u0018","q"],"commands":["session.queued_prompts"]}, + {"command":"queued_prompt.undo","keys":["\u001b[117;5u"],"commands":["queued_prompt.undo"]}, + {"command":"queued_prompt.undo","keys":["\u0015"],"commands":["queued_prompt.undo"]}, + {"command":"queued_prompt.delete","keys":["\u001b[100;5u"],"commands":["queued_prompt.delete"]}, + {"command":"queued_prompt.delete","keys":["\u0004"],"commands":["queued_prompt.delete"]}, + {"command":"session.child.first","keys":["\u001b[B"],"commands":["session.child.first"]}, + {"command":"session.child.next","keys":["\u001b[C"],"commands":["session.child.next"]}, + {"command":"session.child.previous","keys":["\u001b[D"],"commands":["session.child.previous"]}, + {"command":"session.parent","keys":["\u001b[A"],"commands":["session.parent"]}, + {"command":"session.pin.toggle","keys":["\u001b[102;5u"],"commands":["session.pin.toggle"]}, + {"command":"session.pin.toggle","keys":["\u0006"],"commands":["session.pin.toggle"]}, + {"command":"session.quick_switch.1","keys":["\u001b[120;5u","1"],"commands":["session.quick_switch.1"]}, + {"command":"session.quick_switch.1","keys":["\u0018","1"],"commands":["session.quick_switch.1"]}, + {"command":"session.quick_switch.2","keys":["\u001b[120;5u","2"],"commands":["session.quick_switch.2"]}, + {"command":"session.quick_switch.2","keys":["\u0018","2"],"commands":["session.quick_switch.2"]}, + {"command":"session.quick_switch.3","keys":["\u001b[120;5u","3"],"commands":["session.quick_switch.3"]}, + {"command":"session.quick_switch.3","keys":["\u0018","3"],"commands":["session.quick_switch.3"]}, + {"command":"session.quick_switch.4","keys":["\u001b[120;5u","4"],"commands":["session.quick_switch.4"]}, + {"command":"session.quick_switch.4","keys":["\u0018","4"],"commands":["session.quick_switch.4"]}, + {"command":"session.quick_switch.5","keys":["\u001b[120;5u","5"],"commands":["session.quick_switch.5"]}, + {"command":"session.quick_switch.5","keys":["\u0018","5"],"commands":["session.quick_switch.5"]}, + {"command":"session.quick_switch.6","keys":["\u001b[120;5u","6"],"commands":["session.quick_switch.6"]}, + {"command":"session.quick_switch.6","keys":["\u0018","6"],"commands":["session.quick_switch.6"]}, + {"command":"session.quick_switch.7","keys":["\u001b[120;5u","7"],"commands":["session.quick_switch.7"]}, + {"command":"session.quick_switch.7","keys":["\u0018","7"],"commands":["session.quick_switch.7"]}, + {"command":"session.quick_switch.8","keys":["\u001b[120;5u","8"],"commands":["session.quick_switch.8"]}, + {"command":"session.quick_switch.8","keys":["\u0018","8"],"commands":["session.quick_switch.8"]}, + {"command":"session.quick_switch.9","keys":["\u001b[120;5u","9"],"commands":["session.quick_switch.9"]}, + {"command":"session.quick_switch.9","keys":["\u0018","9"],"commands":["session.quick_switch.9"]}, + {"command":"session.tab.select.1","keys":["\u001b[120;5u","1"],"commands":["session.tab.select.1"]}, + {"command":"session.tab.select.1","keys":["\u0018","1"],"commands":["session.tab.select.1"]}, + {"command":"session.tab.select.1","keys":["\u001b[49;5u"],"commands":["session.tab.select.1"]}, + {"command":"session.tab.select.2","keys":["\u001b[120;5u","2"],"commands":["session.tab.select.2"]}, + {"command":"session.tab.select.2","keys":["\u0018","2"],"commands":["session.tab.select.2"]}, + {"command":"session.tab.select.2","keys":["\u001b[50;5u"],"commands":["session.tab.select.2"]}, + {"command":"session.tab.select.3","keys":["\u001b[120;5u","3"],"commands":["session.tab.select.3"]}, + {"command":"session.tab.select.3","keys":["\u0018","3"],"commands":["session.tab.select.3"]}, + {"command":"session.tab.select.3","keys":["\u001b[51;5u"],"commands":["session.tab.select.3"]}, + {"command":"session.tab.select.4","keys":["\u001b[120;5u","4"],"commands":["session.tab.select.4"]}, + {"command":"session.tab.select.4","keys":["\u0018","4"],"commands":["session.tab.select.4"]}, + {"command":"session.tab.select.4","keys":["\u001b[52;5u"],"commands":["session.tab.select.4"]}, + {"command":"session.tab.select.5","keys":["\u001b[120;5u","5"],"commands":["session.tab.select.5"]}, + {"command":"session.tab.select.5","keys":["\u0018","5"],"commands":["session.tab.select.5"]}, + {"command":"session.tab.select.5","keys":["\u001b[53;5u"],"commands":["session.tab.select.5"]}, + {"command":"session.tab.select.6","keys":["\u001b[120;5u","6"],"commands":["session.tab.select.6"]}, + {"command":"session.tab.select.6","keys":["\u0018","6"],"commands":["session.tab.select.6"]}, + {"command":"session.tab.select.6","keys":["\u001b[54;5u"],"commands":["session.tab.select.6"]}, + {"command":"session.tab.select.7","keys":["\u001b[120;5u","7"],"commands":["session.tab.select.7"]}, + {"command":"session.tab.select.7","keys":["\u0018","7"],"commands":["session.tab.select.7"]}, + {"command":"session.tab.select.7","keys":["\u001b[55;5u"],"commands":["session.tab.select.7"]}, + {"command":"session.tab.select.8","keys":["\u001b[120;5u","8"],"commands":["session.tab.select.8"]}, + {"command":"session.tab.select.8","keys":["\u0018","8"],"commands":["session.tab.select.8"]}, + {"command":"session.tab.select.8","keys":["\u001b[56;5u"],"commands":["session.tab.select.8"]}, + {"command":"session.tab.select.9","keys":["\u001b[120;5u","9"],"commands":["session.tab.select.9"]}, + {"command":"session.tab.select.9","keys":["\u0018","9"],"commands":["session.tab.select.9"]}, + {"command":"session.tab.select.9","keys":["\u001b[57;5u"],"commands":["session.tab.select.9"]}, + {"command":"session.tab.select.10","keys":["\u001b[120;5u","0"],"commands":["session.tab.select.10"]}, + {"command":"session.tab.select.10","keys":["\u0018","0"],"commands":["session.tab.select.10"]}, + {"command":"session.tab.select.10","keys":["\u001b[48;5u"],"commands":["session.tab.select.10"]}, + {"command":"stash.delete","keys":["\u001b[100;5u"],"commands":["stash.delete"]}, + {"command":"stash.delete","keys":["\u0004"],"commands":["stash.delete"]}, + {"command":"model.dialog.provider","keys":["\u001b[97;5u"],"commands":["model.dialog.provider"]}, + {"command":"model.dialog.provider","keys":["\u0001"],"commands":["model.dialog.provider"]}, + {"command":"model.dialog.favorite","keys":["\u001b[102;5u"],"commands":["model.dialog.favorite"]}, + {"command":"model.dialog.favorite","keys":["\u0006"],"commands":["model.dialog.favorite"]}, + {"command":"model.dialog.usage","keys":["\u001b[117;5u"],"commands":["model.dialog.usage"]}, + {"command":"model.dialog.usage","keys":["\u0015"],"commands":["model.dialog.usage"]}, + {"command":"model.list","keys":["\u001b[120;5u","m"],"commands":["model.list"]}, + {"command":"model.list","keys":["\u0018","m"],"commands":["model.list"]}, + {"command":"model.cycle_recent","keys":["\u001bOQ"],"commands":["model.cycle_recent"]}, + {"command":"model.cycle_recent_reverse","keys":["\u001b[1;2Q"],"commands":["model.cycle_recent_reverse"]}, + {"command":"agent.list","keys":["\u001b[120;5u","a"],"commands":["agent.list"]}, + {"command":"agent.list","keys":["\u0018","a"],"commands":["agent.list"]}, + {"command":"agent.cycle","keys":["\u001b[9;2u"],"commands":["agent.cycle"]}, + {"command":"agent.cycle","keys":["\u001b[Z"],"commands":["agent.cycle"]}, + {"command":"variant.cycle","keys":["\u001b[116;5u"],"commands":["variant.cycle"]}, + {"command":"variant.cycle","keys":["\u0014"],"commands":["variant.cycle"]}, + {"command":"session.page.up","keys":["\u001b[5~"],"commands":["session.page.up"]}, + {"command":"session.page.up","keys":["\u001b[98;7u"],"commands":["session.page.up"]}, + {"command":"session.page.up","keys":["\u001b\u0002"],"commands":["session.page.up"]}, + {"command":"session.page.down","keys":["\u001b[6~"],"commands":["session.page.down"]}, + {"command":"session.page.down","keys":["\u001b[102;7u"],"commands":["session.page.down"]}, + {"command":"session.page.down","keys":["\u001b\u0006"],"commands":["session.page.down"]}, + {"command":"session.line.up","keys":["\u001b[121;7u"],"commands":["session.line.up"]}, + {"command":"session.line.up","keys":["\u001b\u0019"],"commands":["session.line.up"]}, + {"command":"session.line.down","keys":["\u001b[101;7u"],"commands":["session.line.down"]}, + {"command":"session.line.down","keys":["\u001b\u0005"],"commands":["session.line.down"]}, + {"command":"session.half.page.up","keys":["\u001b[117;7u"],"commands":["session.half.page.up"]}, + {"command":"session.half.page.up","keys":["\u001b\u0015"],"commands":["session.half.page.up"]}, + {"command":"session.half.page.down","keys":["\u001b[100;7u"],"commands":["session.half.page.down"]}, + {"command":"session.half.page.down","keys":["\u001b\u0004"],"commands":["session.half.page.down"]}, + {"command":"session.first","keys":["\u001b[103;5u"],"commands":["session.first"]}, + {"command":"session.first","keys":["\u0007"],"commands":["session.first"]}, + {"command":"session.first","keys":["\u001b[H"],"commands":["session.first"]}, + {"command":"session.first","keys":["\u001b[1;3H"],"commands":["session.first"]}, + {"command":"session.last","keys":["\u001b[103;7u"],"commands":["session.last"]}, + {"command":"session.last","keys":["\u001b\u0007"],"commands":["session.last"]}, + {"command":"session.last","keys":["\u001b[F"],"commands":["session.last"]}, + {"command":"session.messages_last_user","keys":["\u001b[1;3F"],"commands":["session.messages_last_user"]}, + {"command":"messages.copy","keys":["\u001b[120;5u","y"],"commands":["messages.copy"]}, + {"command":"messages.copy","keys":["\u0018","y"],"commands":["messages.copy"]}, + {"command":"session.undo","keys":["\u001b[120;5u","u"],"commands":["session.undo"]}, + {"command":"session.undo","keys":["\u0018","u"],"commands":["session.undo"]}, + {"command":"session.redo","keys":["\u001b[120;5u","r"],"commands":["session.redo"]}, + {"command":"session.redo","keys":["\u0018","r"],"commands":["session.redo"]}, + {"command":"prompt.queue","keys":["\u001b[120;5u","\u001b[13u"],"commands":["prompt.queue"]}, + {"command":"prompt.queue","keys":["\u0018","\r"],"commands":["prompt.queue"]}, + {"command":"prompt.images.view","keys":["\u001b[120;5u","i"],"commands":["prompt.images.view"]}, + {"command":"prompt.images.view","keys":["\u0018","i"],"commands":["prompt.images.view"]}, + {"command":"prompt.clear","keys":["\u001b[99;5u"],"commands":["prompt.clear"]}, + {"command":"prompt.clear","keys":["\u0003"],"commands":["prompt.clear"]}, + {"command":"prompt.paste","keys":["\u001b[118;5u"],"commands":["prompt.paste"]}, + {"command":"prompt.paste","keys":["\u0016"],"commands":["prompt.paste"]}, + {"command":"input.submit","keys":["\u001b[13u"],"commands":["input.submit"]}, + {"command":"input.submit","keys":["\r"],"commands":["input.submit"]}, + {"command":"input.submit","keys":["\u001b[13;3u"],"commands":[]}, + {"command":"input.submit","keys":["\u001b\r"],"commands":[]}, + {"command":"input.submit","keys":["\u001b[57414;3u"],"commands":[]}, + {"command":"input.newline","keys":["\u001b[13;2u"],"commands":["input.newline"]}, + {"command":"input.newline","keys":["\u001b[13;5u"],"commands":["input.newline"]}, + {"command":"input.newline","keys":["\u001b[13;3u"],"commands":["input.newline"]}, + {"command":"input.newline","keys":["\u001b\r"],"commands":["input.newline"]}, + {"command":"input.newline","keys":["\u001b[106;5u"],"commands":["input.newline"]}, + {"command":"input.newline","keys":["\n"],"commands":[]}, + {"command":"input.newline","keys":["\u001b[13u"],"commands":[]}, + {"command":"input.newline","keys":["\r"],"commands":[]}, + {"command":"input.newline","keys":["\u001b[57414u"],"commands":[]}, + {"command":"input.move.left","keys":["\u001b[D"],"commands":["input.move.left"]}, + {"command":"input.move.left","keys":["\u001b[98;5u"],"commands":["input.move.left"]}, + {"command":"input.move.left","keys":["\u0002"],"commands":["input.move.left"]}, + {"command":"input.move.right","keys":["\u001b[C"],"commands":["input.move.right"]}, + {"command":"input.move.right","keys":["\u001b[102;5u"],"commands":["input.move.right"]}, + {"command":"input.move.right","keys":["\u0006"],"commands":["input.move.right"]}, + {"command":"input.move.up","keys":["\u001b[A"],"commands":["input.move.up"]}, + {"command":"input.move.down","keys":["\u001b[B"],"commands":["input.move.down"]}, + {"command":"input.select.left","keys":["\u001b[1;2D"],"commands":["input.select.left"]}, + {"command":"input.select.right","keys":["\u001b[1;2C"],"commands":["input.select.right"]}, + {"command":"input.select.up","keys":["\u001b[1;2A"],"commands":["input.select.up"]}, + {"command":"input.select.down","keys":["\u001b[1;2B"],"commands":["input.select.down"]}, + {"command":"input.line.home","keys":["\u001b[97;5u"],"commands":["input.line.home"]}, + {"command":"input.line.home","keys":["\u0001"],"commands":["input.line.home"]}, + {"command":"input.line.end","keys":["\u001b[101;5u"],"commands":["input.line.end"]}, + {"command":"input.line.end","keys":["\u0005"],"commands":["input.line.end"]}, + {"command":"input.select.line.home","keys":["\u001b[97;6u"],"commands":["input.select.line.home"]}, + {"command":"input.select.line.end","keys":["\u001b[101;6u"],"commands":["input.select.line.end"]}, + {"command":"input.visual.line.home","keys":["\u001b[97;3u"],"commands":["input.visual.line.home"]}, + {"command":"input.visual.line.home","keys":["\u001ba"],"commands":["input.visual.line.home"]}, + {"command":"input.visual.line.home","keys":["\u001b[1;9D"],"commands":[]}, + {"command":"input.visual.line.end","keys":["\u001b[101;3u"],"commands":["input.visual.line.end"]}, + {"command":"input.visual.line.end","keys":["\u001be"],"commands":["input.visual.line.end"]}, + {"command":"input.visual.line.end","keys":["\u001b[1;9C"],"commands":[]}, + {"command":"input.select.visual.line.home","keys":["\u001b[97;4u"],"commands":["input.select.visual.line.home"]}, + {"command":"input.select.visual.line.home","keys":["\u001bA"],"commands":["input.select.visual.line.home"]}, + {"command":"input.select.visual.line.home","keys":["\u001b[1;10D"],"commands":[]}, + {"command":"input.select.visual.line.end","keys":["\u001b[101;4u"],"commands":["input.select.visual.line.end"]}, + {"command":"input.select.visual.line.end","keys":["\u001bE"],"commands":["input.select.visual.line.end"]}, + {"command":"input.select.visual.line.end","keys":["\u001b[1;10C"],"commands":[]}, + {"command":"input.buffer.home","keys":["\u001b[H"],"commands":[]}, + {"command":"input.buffer.home","keys":["\u001b[1;9A"],"commands":[]}, + {"command":"input.buffer.end","keys":["\u001b[F"],"commands":[]}, + {"command":"input.buffer.end","keys":["\u001b[1;9B"],"commands":[]}, + {"command":"input.select.buffer.home","keys":["\u001b[1;2H"],"commands":["input.select.buffer.home"]}, + {"command":"input.select.buffer.home","keys":["\u001b[1;10A"],"commands":[]}, + {"command":"input.select.buffer.end","keys":["\u001b[1;2F"],"commands":["input.select.buffer.end"]}, + {"command":"input.select.buffer.end","keys":["\u001b[1;10B"],"commands":[]}, + {"command":"input.delete.line","keys":["\u001b[100;6u"],"commands":["input.delete.line"]}, + {"command":"input.delete.to.line.end","keys":["\u001b[107;5u"],"commands":["input.delete.to.line.end"]}, + {"command":"input.delete.to.line.end","keys":["\u000b"],"commands":["input.delete.to.line.end"]}, + {"command":"input.delete.to.line.start","keys":["\u001b[117;5u"],"commands":["input.delete.to.line.start"]}, + {"command":"input.delete.to.line.start","keys":["\u0015"],"commands":["input.delete.to.line.start"]}, + {"command":"input.delete.to.line.start","keys":["\u001b[127;9u"],"commands":[]}, + {"command":"input.backspace","keys":["\u001b[127u"],"commands":["input.backspace"]}, + {"command":"input.backspace","keys":[""],"commands":["input.backspace"]}, + {"command":"input.backspace","keys":["\u001b[127;2u"],"commands":["input.backspace"]}, + {"command":"input.delete","keys":["\u001b[100;5u"],"commands":["input.delete"]}, + {"command":"input.delete","keys":["\u0004"],"commands":["input.delete"]}, + {"command":"input.delete","keys":["\u001b[3~"],"commands":["input.delete"]}, + {"command":"input.delete","keys":["\u001b[3;2~"],"commands":["input.delete"]}, + {"command":"input.undo","keys":["\u001b[45;5u"],"commands":["input.undo"]}, + {"command":"input.undo","keys":["\u001b[122;9u"],"commands":["input.undo"]}, + {"command":"input.redo","keys":["\u001b[46;5u"],"commands":["input.redo"]}, + {"command":"input.redo","keys":["\u001b[122;10u"],"commands":["input.redo"]}, + {"command":"input.word.forward","keys":["\u001b[102;3u"],"commands":["input.word.forward"]}, + {"command":"input.word.forward","keys":["\u001bf"],"commands":["input.word.forward"]}, + {"command":"input.word.forward","keys":["\u001b[1;3C"],"commands":["input.word.forward"]}, + {"command":"input.word.forward","keys":["\u001b[1;5C"],"commands":["input.word.forward"]}, + {"command":"input.word.backward","keys":["\u001b[98;3u"],"commands":["input.word.backward"]}, + {"command":"input.word.backward","keys":["\u001bb"],"commands":["input.word.backward"]}, + {"command":"input.word.backward","keys":["\u001b[1;3D"],"commands":["input.word.backward"]}, + {"command":"input.word.backward","keys":["\u001b[1;5D"],"commands":["input.word.backward"]}, + {"command":"input.select.word.forward","keys":["\u001b[102;4u"],"commands":["input.select.word.forward"]}, + {"command":"input.select.word.forward","keys":["\u001bF"],"commands":[]}, + {"command":"input.select.word.forward","keys":["\u001b[1;4C"],"commands":["input.select.word.forward"]}, + {"command":"input.select.word.backward","keys":["\u001b[98;4u"],"commands":["input.select.word.backward"]}, + {"command":"input.select.word.backward","keys":["\u001bB"],"commands":[]}, + {"command":"input.select.word.backward","keys":["\u001b[1;4D"],"commands":["input.select.word.backward"]}, + {"command":"input.delete.word.forward","keys":["\u001b[100;3u"],"commands":["input.delete.word.forward"]}, + {"command":"input.delete.word.forward","keys":["\u001bd"],"commands":["input.delete.word.forward"]}, + {"command":"input.delete.word.forward","keys":["\u001b[3;3~"],"commands":["input.delete.word.forward"]}, + {"command":"input.delete.word.forward","keys":["\u001b[3;5~"],"commands":["input.delete.word.forward"]}, + {"command":"input.delete.word.backward","keys":["\u001b[119;5u"],"commands":["input.delete.word.backward"]}, + {"command":"input.delete.word.backward","keys":["\u0017"],"commands":["input.delete.word.backward"]}, + {"command":"input.delete.word.backward","keys":["\u001b[127;5u"],"commands":["input.delete.word.backward"]}, + {"command":"input.delete.word.backward","keys":["\u001b[127;3u"],"commands":["input.delete.word.backward"]}, + {"command":"input.delete.word.backward","keys":["\u001b"],"commands":["input.delete.word.backward"]}, + {"command":"input.select.all","keys":["\u001b[97;9u"],"commands":["input.select.all"]}, + {"command":"prompt.history.previous","keys":["\u001b[A"],"commands":["prompt.history.previous"]}, + {"command":"prompt.history.next","keys":["\u001b[B"],"commands":["prompt.history.next"]}, + {"command":"composer.subagent.up","keys":["\u001b[A"],"commands":["composer.subagent.up"]}, + {"command":"composer.subagent.down","keys":["\u001b[B"],"commands":["composer.subagent.down"]}, + {"command":"composer.subagent.select","keys":["\u001b[13u"],"commands":["composer.subagent.select"]}, + {"command":"composer.subagent.select","keys":["\r"],"commands":["composer.subagent.select"]}, + {"command":"composer.subagent.interrupt","keys":["\u001b[100;5u"],"commands":["composer.subagent.interrupt"]}, + {"command":"composer.subagent.interrupt","keys":["\u0004"],"commands":["composer.subagent.interrupt"]}, + {"command":"composer.shell.up","keys":["\u001b[A"],"commands":["composer.shell.up"]}, + {"command":"composer.shell.down","keys":["\u001b[B"],"commands":["composer.shell.down"]}, + {"command":"composer.shell.select","keys":["\u001b[13u"],"commands":["composer.shell.select"]}, + {"command":"composer.shell.select","keys":["\r"],"commands":["composer.shell.select"]}, + {"command":"composer.shell.kill","keys":["\u001b[100;5u"],"commands":["composer.shell.kill"]}, + {"command":"composer.shell.kill","keys":["\u0004"],"commands":["composer.shell.kill"]}, + {"command":"composer.script.up","keys":["\u001b[A"],"commands":["composer.script.up"]}, + {"command":"composer.script.down","keys":["\u001b[B"],"commands":["composer.script.down"]}, + {"command":"composer.script.cancel","keys":["\u001b[100;5u"],"commands":["composer.script.cancel"]}, + {"command":"composer.script.cancel","keys":["\u0004"],"commands":["composer.script.cancel"]}, + {"command":"composer.terminal.up","keys":["\u001b[A"],"commands":["composer.terminal.up"]}, + {"command":"composer.terminal.up","keys":["k"],"commands":["composer.terminal.up"]}, + {"command":"composer.terminal.down","keys":["\u001b[B"],"commands":["composer.terminal.down"]}, + {"command":"composer.terminal.down","keys":["j"],"commands":["composer.terminal.down"]}, + {"command":"composer.terminal.select","keys":["\u001b[13u"],"commands":["composer.terminal.select"]}, + {"command":"composer.terminal.select","keys":["\r"],"commands":["composer.terminal.select"]}, + {"command":"dialog.select.prev","keys":["\u001b[A"],"commands":["dialog.select.prev"]}, + {"command":"dialog.select.prev","keys":["\u001b[112;5u"],"commands":["dialog.select.prev"]}, + {"command":"dialog.select.prev","keys":["\u0010"],"commands":["dialog.select.prev"]}, + {"command":"dialog.select.next","keys":["\u001b[B"],"commands":["dialog.select.next"]}, + {"command":"dialog.select.next","keys":["\u001b[110;5u"],"commands":["dialog.select.next"]}, + {"command":"dialog.select.next","keys":["\u000e"],"commands":["dialog.select.next"]}, + {"command":"dialog.select.page_up","keys":["\u001b[5~"],"commands":["dialog.select.page_up"]}, + {"command":"dialog.select.page_down","keys":["\u001b[6~"],"commands":["dialog.select.page_down"]}, + {"command":"dialog.select.home","keys":["\u001b[H"],"commands":["dialog.select.home"]}, + {"command":"dialog.select.end","keys":["\u001b[F"],"commands":["dialog.select.end"]}, + {"command":"dialog.select.submit","keys":["\u001b[13u"],"commands":["dialog.select.submit"]}, + {"command":"dialog.select.submit","keys":["\r"],"commands":["dialog.select.submit"]}, + {"command":"dialog.prompt.submit","keys":["\u001b[13u"],"commands":["dialog.prompt.submit"]}, + {"command":"dialog.prompt.submit","keys":["\r"],"commands":["dialog.prompt.submit"]}, + {"command":"dialog.integration.rename","keys":["\u001b[114;5u"],"commands":["dialog.integration.rename"]}, + {"command":"dialog.integration.rename","keys":["\u0012"],"commands":["dialog.integration.rename"]}, + {"command":"dialog.integration.delete","keys":["\u001b[100;5u"],"commands":["dialog.integration.delete"]}, + {"command":"dialog.integration.delete","keys":["\u0004"],"commands":["dialog.integration.delete"]}, + {"command":"dialog.integration.copy","keys":["\u001b[9u"],"commands":["dialog.integration.copy"]}, + {"command":"dialog.integration.copy","keys":["\t"],"commands":["dialog.integration.copy"]}, + {"command":"dialog.worktree.generate","keys":["\u001b[9u"],"commands":["dialog.worktree.generate"]}, + {"command":"dialog.worktree.generate","keys":["\t"],"commands":["dialog.worktree.generate"]}, + {"command":"dialog.move_session.new","keys":["\u001b[97;5u"],"commands":["dialog.move_session.new"]}, + {"command":"dialog.move_session.new","keys":["\u0001"],"commands":["dialog.move_session.new"]}, + {"command":"dialog.move_session.move","keys":["\u001b[109;5u"],"commands":["dialog.move_session.move"]}, + {"command":"dialog.move_session.move","keys":["\r"],"commands":[]}, + {"command":"dialog.move_session.delete","keys":["\u001b[100;5u"],"commands":["dialog.move_session.delete"]}, + {"command":"dialog.move_session.delete","keys":["\u0004"],"commands":["dialog.move_session.delete"]}, + {"command":"dialog.move_session.refresh","keys":["\u001b[114;5u"],"commands":["dialog.move_session.refresh"]}, + {"command":"dialog.move_session.refresh","keys":["\u0012"],"commands":["dialog.move_session.refresh"]}, + {"command":"prompt.autocomplete.prev","keys":["\u001b[A"],"commands":["prompt.autocomplete.prev"]}, + {"command":"prompt.autocomplete.prev","keys":["\u001b[112;5u"],"commands":["prompt.autocomplete.prev"]}, + {"command":"prompt.autocomplete.prev","keys":["\u0010"],"commands":["prompt.autocomplete.prev"]}, + {"command":"prompt.autocomplete.next","keys":["\u001b[B"],"commands":["prompt.autocomplete.next"]}, + {"command":"prompt.autocomplete.next","keys":["\u001b[110;5u"],"commands":["prompt.autocomplete.next"]}, + {"command":"prompt.autocomplete.next","keys":["\u000e"],"commands":["prompt.autocomplete.next"]}, + {"command":"prompt.autocomplete.hide","keys":["\u001b[27u"],"commands":["prompt.autocomplete.hide"]}, + {"command":"prompt.autocomplete.select","keys":["\u001b[13u"],"commands":["prompt.autocomplete.select"]}, + {"command":"prompt.autocomplete.select","keys":["\r"],"commands":["prompt.autocomplete.select"]}, + {"command":"prompt.autocomplete.complete","keys":["\u001b[9u"],"commands":["prompt.autocomplete.complete"]}, + {"command":"prompt.autocomplete.complete","keys":["\t"],"commands":["prompt.autocomplete.complete"]}, + {"command":"permission.prompt.fullscreen","keys":["\u001b[102;5u"],"commands":["permission.prompt.fullscreen"]}, + {"command":"permission.prompt.fullscreen","keys":["\u0006"],"commands":["permission.prompt.fullscreen"]}, + {"command":"plugins.toggle","keys":["\u001b[13u"],"commands":["plugins.toggle"]}, + {"command":"plugins.toggle","keys":["\r"],"commands":["plugins.toggle"]}, + {"command":"dialog.mcp.toggle","keys":[" "],"commands":["dialog.mcp.toggle"]}, + {"command":"dialog.plugins.error","keys":[" "],"commands":["dialog.plugins.error"]}, + {"command":"dialog.plugins.update","keys":["\u001b[117;5u"],"commands":["dialog.plugins.update"]}, + {"command":"dialog.plugins.update","keys":["\u0015"],"commands":["dialog.plugins.update"]}, + {"command":"dialog.plugins.check","keys":["\u001b[114;5u"],"commands":["dialog.plugins.check"]}, + {"command":"dialog.plugins.check","keys":["\u0012"],"commands":["dialog.plugins.check"]}, + {"command":"terminal.suspend","keys":["\u001b[122;5u"],"commands":["terminal.suspend"]}, + {"command":"terminal.suspend","keys":["\u001a"],"commands":["terminal.suspend"]}, + {"command":"which-key.toggle","keys":["\u001b[107;7u"],"commands":["which-key.toggle"]}, + {"command":"which-key.toggle","keys":["\u001b\u000b"],"commands":["which-key.toggle"]}, + {"command":"which-key.layout.toggle","keys":["\u001b[107;8u"],"commands":["which-key.layout.toggle"]}, + {"command":"which-key.pending.toggle","keys":["\u001b[112;8u"],"commands":["which-key.pending.toggle"]}, + {"command":"which-key.group.previous","keys":["\u001b[1;7D"],"commands":["which-key.group.previous"]}, + {"command":"which-key.group.previous","keys":["\u001b[91;7u"],"commands":["which-key.group.previous"]}, + {"command":"which-key.group.next","keys":["\u001b[1;7C"],"commands":["which-key.group.next"]}, + {"command":"which-key.group.next","keys":["\u001b[93;7u"],"commands":["which-key.group.next"]}, + {"command":"which-key.scroll.up","keys":["\u001b[1;7A"],"commands":["which-key.scroll.up"]}, + {"command":"which-key.scroll.up","keys":["\u001b[112;7u"],"commands":["which-key.scroll.up"]}, + {"command":"which-key.scroll.up","keys":["\u001b\u0010"],"commands":["which-key.scroll.up"]}, + {"command":"which-key.scroll.down","keys":["\u001b[1;7B"],"commands":["which-key.scroll.down"]}, + {"command":"which-key.scroll.down","keys":["\u001b[110;7u"],"commands":["which-key.scroll.down"]}, + {"command":"which-key.scroll.down","keys":["\u001b\u000e"],"commands":["which-key.scroll.down"]}, + {"command":"which-key.page.up","keys":["\u001b[5;7~"],"commands":["which-key.page.up"]}, + {"command":"which-key.page.down","keys":["\u001b[6;7~"],"commands":["which-key.page.down"]}, + {"command":"which-key.home","keys":["\u001b[1;7H"],"commands":["which-key.home"]}, + {"command":"which-key.end","keys":["\u001b[1;7F"],"commands":["which-key.end"]} + ] + }, + { + "name": "defaults all", + "keybinds": {}, + "terminalSuspend": true, + "layout": "all", + "textarea": false, + "extra": [["\u0018","n"],["\u0018","\u001b[27u","n"],["\u0018","\u001b[127u","n"],["\u0018","\u001b[127u","\u0018","n"],["\u0018","z"],["\u0018","z","n"],["g","g"],["g","x"],["g","\u001b[27u","g","g"]], + "cases": [ + {"keys":["\u001b[99;5u"],"commands":["app.exit"]}, + {"keys":["\u0003"],"commands":["app.exit"]}, + {"keys":["\u001b[100;5u"],"commands":["app.exit"]}, + {"keys":["\u0004"],"commands":["app.exit"]}, + {"keys":["\u001b[120;5u","q"],"commands":["app.exit"]}, + {"keys":["\u0018","q"],"commands":["app.exit"]}, + {"keys":["\u001b[108;5u"],"commands":["app.clear"]}, + {"keys":["\f"],"commands":["app.clear"]}, + {"keys":["\u001b[112;5u"],"commands":["command.palette.show"]}, + {"keys":["\u0010"],"commands":["command.palette.show"]}, + {"keys":["\u001b[27u"],"commands":["diff.close"]}, + {"keys":["q"],"commands":["diff.close"]}, + {"keys":["j"],"commands":["diff.down"]}, + {"keys":["\u001b[B"],"commands":["diff.down"]}, + {"keys":["k"],"commands":["diff.up"]}, + {"keys":["\u001b[A"],"commands":["diff.up"]}, + {"keys":["\u001b[6~"],"commands":["diff.page.down"]}, + {"keys":["\u001b[102;5u"],"commands":["diff.page.down"]}, + {"keys":["\u0006"],"commands":["diff.page.down"]}, + {"keys":["\u001b[5~"],"commands":["diff.page.up"]}, + {"keys":["\u001b[98;5u"],"commands":["diff.page.up"]}, + {"keys":["\u0002"],"commands":["diff.page.up"]}, + {"keys":["\u001b[117;5u"],"commands":["diff.half_page.up"]}, + {"keys":["\u0015"],"commands":["diff.half_page.up"]}, + {"keys":["g","g"],"commands":["diff.first"]}, + {"keys":["\u001b[H"],"commands":["diff.first"]}, + {"keys":["\u001b[103;2u"],"commands":["diff.last"]}, + {"keys":["G"],"commands":["diff.last"]}, + {"keys":["\u001b[F"],"commands":["diff.last"]}, + {"keys":["]"],"commands":["diff.next_hunk"]}, + {"keys":["["],"commands":["diff.previous_hunk"]}, + {"keys":["n"],"commands":["diff.next_file"]}, + {"keys":["\u001b[1;3B"],"commands":["diff.next_file"]}, + {"keys":["p"],"commands":["diff.previous_file"]}, + {"keys":["\u001b[1;3A"],"commands":["diff.previous_file"]}, + {"keys":["b"],"commands":["diff.toggle_file_tree"]}, + {"keys":["s"],"commands":["diff.single_patch"]}, + {"keys":["d"],"commands":["diff.switch_source"]}, + {"keys":["v"],"commands":["diff.toggle_view"]}, + {"keys":["f"],"commands":["diff.toggle_fullscreen"]}, + {"keys":["m"],"commands":["diff.mark_reviewed"]}, + {"keys":["?"],"commands":["diff.help"]}, + {"keys":["\u001b[63;2u"],"commands":["diff.help"]}, + {"keys":["\u001b[47;2u"],"commands":["diff.help"]}, + {"keys":["\u001b[120;5u","e"],"commands":["prompt.editor"]}, + {"keys":["\u0018","e"],"commands":["prompt.editor"]}, + {"keys":["\u001b[120;5u","b"],"commands":["session.sidebar.toggle"]}, + {"keys":["\u0018","b"],"commands":["session.sidebar.toggle"]}, + {"keys":["\u001b[120;5u","\u001b[D"],"commands":["pane.focus.left"]}, + {"keys":["\u0018","\u001b[D"],"commands":["pane.focus.left"]}, + {"keys":["\u001b[120;5u","\u001b[C"],"commands":["pane.focus.right"]}, + {"keys":["\u0018","\u001b[C"],"commands":["pane.focus.right"]}, + {"keys":["\u001b[120;5u","\u001b[B"],"commands":["terminal.select"]}, + {"keys":["\u0018","\u001b[B"],"commands":["terminal.select"]}, + {"keys":["\u001b[120;5u","t"],"commands":["terminal.toggle"]}, + {"keys":["\u0018","t"],"commands":["terminal.toggle"]}, + {"keys":["\u001b[120;5u","\u001b[A"],"commands":["terminal.close"]}, + {"keys":["\u0018","\u001b[A"],"commands":["terminal.close"]}, + {"keys":["\u001b[120;5u","s"],"commands":["opencode.status"]}, + {"keys":["\u0018","s"],"commands":["opencode.status"]}, + {"keys":["\u001b[120;5u","x"],"commands":["session.export"]}, + {"keys":["\u0018","x"],"commands":["session.export"]}, + {"keys":["\u001b[120;5u","n"],"commands":["session.new"]}, + {"keys":["\u0018","n"],"commands":["session.new"]}, + {"keys":["\u001b[120;5u","l"],"commands":["session.list"]}, + {"keys":["\u0018","l"],"commands":["session.list"]}, + {"keys":["\u001b[111;5u"],"commands":["open.menu"]}, + {"keys":["\u000f"],"commands":["open.menu"]}, + {"keys":["\u001b[9;5u"],"commands":["session.tab.next"]}, + {"keys":["\u001b[9;6u"],"commands":["session.tab.previous"]}, + {"keys":["\u001b[105;5u"],"commands":["session.tab.history.forward"]}, + {"keys":["\t"],"commands":["dialog.integration.copy"]}, + {"keys":["\u001b[1;4B"],"commands":["session.tab.next_unread"]}, + {"keys":["\u001b[1;4A"],"commands":["session.tab.previous_unread"]}, + {"keys":["\u001b[120;5u","w"],"commands":["session.tab.close"]}, + {"keys":["\u0018","w"],"commands":["session.tab.close"]}, + {"keys":["\u001b[116;6u"],"commands":["session.tab.reopen"]}, + {"keys":["\u001b[120;5u","g"],"commands":["session.timeline"]}, + {"keys":["\u0018","g"],"commands":["session.timeline"]}, + {"keys":["\u001b[114;5u"],"commands":["session.rename"]}, + {"keys":["\u0012"],"commands":["session.rename"]}, + {"keys":["\u001b[120;5u","c"],"commands":["session.compact"]}, + {"keys":["\u0018","c"],"commands":["session.compact"]}, + {"keys":["\u001b[C"],"commands":["session.child.next"]}, + {"keys":["\u001b[D"],"commands":["session.child.previous"]}, + {"keys":["\u001b[120;5u","1"],"commands":["session.quick_switch.1"]}, + {"keys":["\u0018","1"],"commands":["session.quick_switch.1"]}, + {"keys":["\u001b[120;5u","2"],"commands":["session.quick_switch.2"]}, + {"keys":["\u0018","2"],"commands":["session.quick_switch.2"]}, + {"keys":["\u001b[120;5u","3"],"commands":["session.quick_switch.3"]}, + {"keys":["\u0018","3"],"commands":["session.quick_switch.3"]}, + {"keys":["\u001b[120;5u","4"],"commands":["session.quick_switch.4"]}, + {"keys":["\u0018","4"],"commands":["session.quick_switch.4"]}, + {"keys":["\u001b[120;5u","5"],"commands":["session.quick_switch.5"]}, + {"keys":["\u0018","5"],"commands":["session.quick_switch.5"]}, + {"keys":["\u001b[120;5u","6"],"commands":["session.quick_switch.6"]}, + {"keys":["\u0018","6"],"commands":["session.quick_switch.6"]}, + {"keys":["\u001b[120;5u","7"],"commands":["session.quick_switch.7"]}, + {"keys":["\u0018","7"],"commands":["session.quick_switch.7"]}, + {"keys":["\u001b[120;5u","8"],"commands":["session.quick_switch.8"]}, + {"keys":["\u0018","8"],"commands":["session.quick_switch.8"]}, + {"keys":["\u001b[120;5u","9"],"commands":["session.quick_switch.9"]}, + {"keys":["\u0018","9"],"commands":["session.quick_switch.9"]}, + {"keys":["\u001b[49;5u"],"commands":["session.tab.select.1"]}, + {"keys":["\u001b[50;5u"],"commands":["session.tab.select.2"]}, + {"keys":["\u001b[51;5u"],"commands":["session.tab.select.3"]}, + {"keys":["\u001b[52;5u"],"commands":["session.tab.select.4"]}, + {"keys":["\u001b[53;5u"],"commands":["session.tab.select.5"]}, + {"keys":["\u001b[54;5u"],"commands":["session.tab.select.6"]}, + {"keys":["\u001b[55;5u"],"commands":["session.tab.select.7"]}, + {"keys":["\u001b[56;5u"],"commands":["session.tab.select.8"]}, + {"keys":["\u001b[57;5u"],"commands":["session.tab.select.9"]}, + {"keys":["\u001b[120;5u","0"],"commands":["session.tab.select.10"]}, + {"keys":["\u0018","0"],"commands":["session.tab.select.10"]}, + {"keys":["\u001b[48;5u"],"commands":["session.tab.select.10"]}, + {"keys":["\u001b[97;5u"],"commands":["model.dialog.provider"]}, + {"keys":["\u0001"],"commands":["model.dialog.provider"]}, + {"keys":["\u001b[120;5u","m"],"commands":["model.list"]}, + {"keys":["\u0018","m"],"commands":["model.list"]}, + {"keys":["\u001bOQ"],"commands":["model.cycle_recent"]}, + {"keys":["\u001b[1;2Q"],"commands":["model.cycle_recent_reverse"]}, + {"keys":["\u001b[120;5u","a"],"commands":["agent.list"]}, + {"keys":["\u0018","a"],"commands":["agent.list"]}, + {"keys":["\u001b[9;2u"],"commands":["agent.cycle"]}, + {"keys":["\u001b[Z"],"commands":["agent.cycle"]}, + {"keys":["\u001b[116;5u"],"commands":["variant.cycle"]}, + {"keys":["\u0014"],"commands":["variant.cycle"]}, + {"keys":["\u001b[98;7u"],"commands":["session.page.up"]}, + {"keys":["\u001b\u0002"],"commands":["session.page.up"]}, + {"keys":["\u001b[102;7u"],"commands":["session.page.down"]}, + {"keys":["\u001b\u0006"],"commands":["session.page.down"]}, + {"keys":["\u001b[121;7u"],"commands":["session.line.up"]}, + {"keys":["\u001b\u0019"],"commands":["session.line.up"]}, + {"keys":["\u001b[101;7u"],"commands":["session.line.down"]}, + {"keys":["\u001b\u0005"],"commands":["session.line.down"]}, + {"keys":["\u001b[117;7u"],"commands":["session.half.page.up"]}, + {"keys":["\u001b\u0015"],"commands":["session.half.page.up"]}, + {"keys":["\u001b[100;7u"],"commands":["session.half.page.down"]}, + {"keys":["\u001b\u0004"],"commands":["session.half.page.down"]}, + {"keys":["\u001b[103;5u"],"commands":["session.first"]}, + {"keys":["\u0007"],"commands":["session.first"]}, + {"keys":["\u001b[1;3H"],"commands":["session.first"]}, + {"keys":["\u001b[103;7u"],"commands":["session.last"]}, + {"keys":["\u001b\u0007"],"commands":["session.last"]}, + {"keys":["\u001b[1;3F"],"commands":["session.messages_last_user"]}, + {"keys":["\u001b[120;5u","y"],"commands":["messages.copy"]}, + {"keys":["\u0018","y"],"commands":["messages.copy"]}, + {"keys":["\u001b[120;5u","u"],"commands":["session.undo"]}, + {"keys":["\u0018","u"],"commands":["session.undo"]}, + {"keys":["\u001b[120;5u","r"],"commands":["session.redo"]}, + {"keys":["\u0018","r"],"commands":["session.redo"]}, + {"keys":["\u001b[120;5u","\u001b[13u"],"commands":["prompt.queue"]}, + {"keys":["\u0018","\r"],"commands":["prompt.queue"]}, + {"keys":["\u001b[120;5u","i"],"commands":["prompt.images.view"]}, + {"keys":["\u0018","i"],"commands":["prompt.images.view"]}, + {"keys":["\u001b[118;5u"],"commands":["prompt.paste"]}, + {"keys":["\u0016"],"commands":["prompt.paste"]}, + {"keys":["\u001b[13u"],"commands":["input.submit"]}, + {"keys":["\r"],"commands":["input.submit"]}, + {"keys":["\u001b[13;3u"],"commands":["input.newline"]}, + {"keys":["\u001b\r"],"commands":["input.newline"]}, + {"keys":["\u001b[57414;3u"],"commands":[]}, + {"keys":["\u001b[13;2u"],"commands":["input.newline"]}, + {"keys":["\u001b[13;5u"],"commands":["input.newline"]}, + {"keys":["\u001b[106;5u"],"commands":["input.newline"]}, + {"keys":["\n"],"commands":[]}, + {"keys":["\u001b[57414u"],"commands":[]}, + {"keys":["\u001b[1;2D"],"commands":["input.select.left"]}, + {"keys":["\u001b[1;2C"],"commands":["input.select.right"]}, + {"keys":["\u001b[1;2A"],"commands":["input.select.up"]}, + {"keys":["\u001b[1;2B"],"commands":["input.select.down"]}, + {"keys":["\u001b[101;5u"],"commands":["input.line.end"]}, + {"keys":["\u0005"],"commands":["input.line.end"]}, + {"keys":["\u001b[97;6u"],"commands":["input.select.line.home"]}, + {"keys":["\u001b[101;6u"],"commands":["input.select.line.end"]}, + {"keys":["\u001b[97;3u"],"commands":["input.visual.line.home"]}, + {"keys":["\u001ba"],"commands":["input.visual.line.home"]}, + {"keys":["\u001b[1;9D"],"commands":[]}, + {"keys":["\u001b[101;3u"],"commands":["input.visual.line.end"]}, + {"keys":["\u001be"],"commands":["input.visual.line.end"]}, + {"keys":["\u001b[1;9C"],"commands":[]}, + {"keys":["\u001b[97;4u"],"commands":["input.select.visual.line.home"]}, + {"keys":["\u001bA"],"commands":["input.select.visual.line.home"]}, + {"keys":["\u001b[1;10D"],"commands":[]}, + {"keys":["\u001b[101;4u"],"commands":["input.select.visual.line.end"]}, + {"keys":["\u001bE"],"commands":["input.select.visual.line.end"]}, + {"keys":["\u001b[1;10C"],"commands":[]}, + {"keys":["\u001b[1;9A"],"commands":[]}, + {"keys":["\u001b[1;9B"],"commands":[]}, + {"keys":["\u001b[1;2H"],"commands":["input.select.buffer.home"]}, + {"keys":["\u001b[1;10A"],"commands":[]}, + {"keys":["\u001b[1;2F"],"commands":["input.select.buffer.end"]}, + {"keys":["\u001b[1;10B"],"commands":[]}, + {"keys":["\u001b[100;6u"],"commands":["input.delete.line"]}, + {"keys":["\u001b[107;5u"],"commands":["input.delete.to.line.end"]}, + {"keys":["\u000b"],"commands":["input.delete.to.line.end"]}, + {"keys":["\u001b[127;9u"],"commands":[]}, + {"keys":["\u001b[127u"],"commands":["input.backspace"]}, + {"keys":[""],"commands":["input.backspace"]}, + {"keys":["\u001b[127;2u"],"commands":["input.backspace"]}, + {"keys":["\u001b[3~"],"commands":["input.delete"]}, + {"keys":["\u001b[3;2~"],"commands":["input.delete"]}, + {"keys":["\u001b[45;5u"],"commands":["input.undo"]}, + {"keys":["\u001b[122;9u"],"commands":["input.undo"]}, + {"keys":["\u001b[46;5u"],"commands":["input.redo"]}, + {"keys":["\u001b[122;10u"],"commands":["input.redo"]}, + {"keys":["\u001b[102;3u"],"commands":["input.word.forward"]}, + {"keys":["\u001bf"],"commands":["input.word.forward"]}, + {"keys":["\u001b[1;3C"],"commands":["input.word.forward"]}, + {"keys":["\u001b[1;5C"],"commands":["input.word.forward"]}, + {"keys":["\u001b[98;3u"],"commands":["input.word.backward"]}, + {"keys":["\u001bb"],"commands":["input.word.backward"]}, + {"keys":["\u001b[1;3D"],"commands":["input.word.backward"]}, + {"keys":["\u001b[1;5D"],"commands":["input.word.backward"]}, + {"keys":["\u001b[102;4u"],"commands":["input.select.word.forward"]}, + {"keys":["\u001bF"],"commands":["input.word.forward"]}, + {"keys":["\u001b[1;4C"],"commands":["input.select.word.forward"]}, + {"keys":["\u001b[98;4u"],"commands":["input.select.word.backward"]}, + {"keys":["\u001bB"],"commands":["input.word.backward"]}, + {"keys":["\u001b[1;4D"],"commands":["input.select.word.backward"]}, + {"keys":["\u001b[100;3u"],"commands":["input.delete.word.forward"]}, + {"keys":["\u001bd"],"commands":["input.delete.word.forward"]}, + {"keys":["\u001b[3;3~"],"commands":["input.delete.word.forward"]}, + {"keys":["\u001b[3;5~"],"commands":["input.delete.word.forward"]}, + {"keys":["\u001b[119;5u"],"commands":["input.delete.word.backward"]}, + {"keys":["\u0017"],"commands":["input.delete.word.backward"]}, + {"keys":["\u001b[127;5u"],"commands":["input.delete.word.backward"]}, + {"keys":["\u001b[127;3u"],"commands":["input.delete.word.backward"]}, + {"keys":["\u001b"],"commands":["input.delete.word.backward"]}, + {"keys":["\u001b[97;9u"],"commands":["input.select.all"]}, + {"keys":["\u001b[110;5u"],"commands":["dialog.select.next"]}, + {"keys":["\u000e"],"commands":["dialog.select.next"]}, + {"keys":["\u001b[9u"],"commands":["dialog.integration.copy"]}, + {"keys":["\u001b[109;5u"],"commands":["dialog.move_session.move"]}, + {"keys":[" "],"commands":["dialog.mcp.toggle"]}, + {"keys":["\u001b[122;5u"],"commands":["terminal.suspend"]}, + {"keys":["\u001a"],"commands":["terminal.suspend"]}, + {"keys":["\u001b[107;7u"],"commands":["which-key.toggle"]}, + {"keys":["\u001b\u000b"],"commands":["which-key.toggle"]}, + {"keys":["\u001b[107;8u"],"commands":["which-key.layout.toggle"]}, + {"keys":["\u001b[112;8u"],"commands":["which-key.pending.toggle"]}, + {"keys":["\u001b[1;7D"],"commands":["which-key.group.previous"]}, + {"keys":["\u001b[91;7u"],"commands":["which-key.group.previous"]}, + {"keys":["\u001b[1;7C"],"commands":["which-key.group.next"]}, + {"keys":["\u001b[93;7u"],"commands":["which-key.group.next"]}, + {"keys":["\u001b[1;7A"],"commands":["which-key.scroll.up"]}, + {"keys":["\u001b[112;7u"],"commands":["which-key.scroll.up"]}, + {"keys":["\u001b\u0010"],"commands":["which-key.scroll.up"]}, + {"keys":["\u001b[1;7B"],"commands":["which-key.scroll.down"]}, + {"keys":["\u001b[110;7u"],"commands":["which-key.scroll.down"]}, + {"keys":["\u001b\u000e"],"commands":["which-key.scroll.down"]}, + {"keys":["\u001b[5;7~"],"commands":["which-key.page.up"]}, + {"keys":["\u001b[6;7~"],"commands":["which-key.page.down"]}, + {"keys":["\u001b[1;7H"],"commands":["which-key.home"]}, + {"keys":["\u001b[1;7F"],"commands":["which-key.end"]}, + {"keys":["\u0018","\u001b[27u","n"],"commands":["diff.next_file"]}, + {"keys":["\u0018","\u001b[127u","n"],"commands":["diff.next_file"]}, + {"keys":["\u0018","\u001b[127u","\u0018","n"],"commands":["session.new"]}, + {"keys":["\u0018","z"],"commands":[]}, + {"keys":["\u0018","z","n"],"commands":["diff.next_file"]}, + {"keys":["g","x"],"commands":[]}, + {"keys":["g","\u001b[27u","g","g"],"commands":["diff.first"]} + ] + }, + { + "name": "defaults all with a focused textarea", + "keybinds": {}, + "terminalSuspend": true, + "layout": "all", + "textarea": true, + "extra": [["\u0018","n"],["\u0018","\u001b[27u","n"],["\u0018","\u001b[127u","n"],["\u0018","\u001b[127u","\u0018","n"],["\u0018","z"],["\u0018","z","n"],["g","g"],["g","x"],["g","\u001b[27u","g","g"],["\n"],["\u001b[57414u"],["a","\u001b[13;3u"]], + "cases": [ + {"keys":["\u001b[99;5u"],"commands":["app.exit"]}, + {"keys":["\u0003"],"commands":["app.exit"]}, + {"keys":["\u001b[100;5u"],"commands":["app.exit"]}, + {"keys":["\u0004"],"commands":["app.exit"]}, + {"keys":["\u001b[120;5u","q"],"commands":["app.exit"]}, + {"keys":["\u0018","q"],"commands":["app.exit"]}, + {"keys":["\u001b[108;5u"],"commands":["app.clear"]}, + {"keys":["\f"],"commands":["app.clear"]}, + {"keys":["\u001b[112;5u"],"commands":["command.palette.show"]}, + {"keys":["\u0010"],"commands":["command.palette.show"]}, + {"keys":["\u001b[27u"],"commands":["diff.close"]}, + {"keys":["q"],"commands":["diff.close"]}, + {"keys":["j"],"commands":["diff.down"]}, + {"keys":["\u001b[B"],"commands":["diff.down"]}, + {"keys":["k"],"commands":["diff.up"]}, + {"keys":["\u001b[A"],"commands":["diff.up"]}, + {"keys":["\u001b[6~"],"commands":["diff.page.down"]}, + {"keys":["\u001b[102;5u"],"commands":["diff.page.down"]}, + {"keys":["\u0006"],"commands":["diff.page.down"]}, + {"keys":["\u001b[5~"],"commands":["diff.page.up"]}, + {"keys":["\u001b[98;5u"],"commands":["diff.page.up"]}, + {"keys":["\u0002"],"commands":["diff.page.up"]}, + {"keys":["\u001b[117;5u"],"commands":["diff.half_page.up"]}, + {"keys":["\u0015"],"commands":["diff.half_page.up"]}, + {"keys":["g","g"],"commands":["diff.first"]}, + {"keys":["\u001b[H"],"commands":["diff.first"]}, + {"keys":["\u001b[103;2u"],"commands":["diff.last"]}, + {"keys":["G"],"commands":["diff.last"]}, + {"keys":["\u001b[F"],"commands":["diff.last"]}, + {"keys":["]"],"commands":["diff.next_hunk"]}, + {"keys":["["],"commands":["diff.previous_hunk"]}, + {"keys":["n"],"commands":["diff.next_file"]}, + {"keys":["\u001b[1;3B"],"commands":["diff.next_file"]}, + {"keys":["p"],"commands":["diff.previous_file"]}, + {"keys":["\u001b[1;3A"],"commands":["diff.previous_file"]}, + {"keys":["b"],"commands":["diff.toggle_file_tree"]}, + {"keys":["s"],"commands":["diff.single_patch"]}, + {"keys":["d"],"commands":["diff.switch_source"]}, + {"keys":["v"],"commands":["diff.toggle_view"]}, + {"keys":["f"],"commands":["diff.toggle_fullscreen"]}, + {"keys":["m"],"commands":["diff.mark_reviewed"]}, + {"keys":["?"],"commands":["diff.help"]}, + {"keys":["\u001b[63;2u"],"commands":["diff.help"]}, + {"keys":["\u001b[47;2u"],"commands":["diff.help"]}, + {"keys":["\u001b[120;5u","e"],"commands":["prompt.editor"]}, + {"keys":["\u0018","e"],"commands":["prompt.editor"]}, + {"keys":["\u001b[120;5u","b"],"commands":["session.sidebar.toggle"]}, + {"keys":["\u0018","b"],"commands":["session.sidebar.toggle"]}, + {"keys":["\u001b[120;5u","\u001b[D"],"commands":["pane.focus.left"]}, + {"keys":["\u0018","\u001b[D"],"commands":["pane.focus.left"]}, + {"keys":["\u001b[120;5u","\u001b[C"],"commands":["pane.focus.right"]}, + {"keys":["\u0018","\u001b[C"],"commands":["pane.focus.right"]}, + {"keys":["\u001b[120;5u","\u001b[B"],"commands":["terminal.select"]}, + {"keys":["\u0018","\u001b[B"],"commands":["terminal.select"]}, + {"keys":["\u001b[120;5u","t"],"commands":["terminal.toggle"]}, + {"keys":["\u0018","t"],"commands":["terminal.toggle"]}, + {"keys":["\u001b[120;5u","\u001b[A"],"commands":["terminal.close"]}, + {"keys":["\u0018","\u001b[A"],"commands":["terminal.close"]}, + {"keys":["\u001b[120;5u","s"],"commands":["opencode.status"]}, + {"keys":["\u0018","s"],"commands":["opencode.status"]}, + {"keys":["\u001b[120;5u","x"],"commands":["session.export"]}, + {"keys":["\u0018","x"],"commands":["session.export"]}, + {"keys":["\u001b[120;5u","n"],"commands":["session.new"]}, + {"keys":["\u0018","n"],"commands":["session.new"]}, + {"keys":["\u001b[120;5u","l"],"commands":["session.list"]}, + {"keys":["\u0018","l"],"commands":["session.list"]}, + {"keys":["\u001b[111;5u"],"commands":["open.menu"]}, + {"keys":["\u000f"],"commands":["open.menu"]}, + {"keys":["\u001b[9;5u"],"commands":["session.tab.next"]}, + {"keys":["\u001b[9;6u"],"commands":["session.tab.previous"]}, + {"keys":["\u001b[105;5u"],"commands":["session.tab.history.forward"]}, + {"keys":["\t"],"commands":["dialog.integration.copy"]}, + {"keys":["\u001b[1;4B"],"commands":["session.tab.next_unread"]}, + {"keys":["\u001b[1;4A"],"commands":["session.tab.previous_unread"]}, + {"keys":["\u001b[120;5u","w"],"commands":["session.tab.close"]}, + {"keys":["\u0018","w"],"commands":["session.tab.close"]}, + {"keys":["\u001b[116;6u"],"commands":["session.tab.reopen"]}, + {"keys":["\u001b[120;5u","g"],"commands":["session.timeline"]}, + {"keys":["\u0018","g"],"commands":["session.timeline"]}, + {"keys":["\u001b[114;5u"],"commands":["session.rename"]}, + {"keys":["\u0012"],"commands":["session.rename"]}, + {"keys":["\u001b[120;5u","c"],"commands":["session.compact"]}, + {"keys":["\u0018","c"],"commands":["session.compact"]}, + {"keys":["\u001b[C"],"commands":["session.child.next"]}, + {"keys":["\u001b[D"],"commands":["session.child.previous"]}, + {"keys":["\u001b[120;5u","1"],"commands":["session.quick_switch.1"]}, + {"keys":["\u0018","1"],"commands":["session.quick_switch.1"]}, + {"keys":["\u001b[120;5u","2"],"commands":["session.quick_switch.2"]}, + {"keys":["\u0018","2"],"commands":["session.quick_switch.2"]}, + {"keys":["\u001b[120;5u","3"],"commands":["session.quick_switch.3"]}, + {"keys":["\u0018","3"],"commands":["session.quick_switch.3"]}, + {"keys":["\u001b[120;5u","4"],"commands":["session.quick_switch.4"]}, + {"keys":["\u0018","4"],"commands":["session.quick_switch.4"]}, + {"keys":["\u001b[120;5u","5"],"commands":["session.quick_switch.5"]}, + {"keys":["\u0018","5"],"commands":["session.quick_switch.5"]}, + {"keys":["\u001b[120;5u","6"],"commands":["session.quick_switch.6"]}, + {"keys":["\u0018","6"],"commands":["session.quick_switch.6"]}, + {"keys":["\u001b[120;5u","7"],"commands":["session.quick_switch.7"]}, + {"keys":["\u0018","7"],"commands":["session.quick_switch.7"]}, + {"keys":["\u001b[120;5u","8"],"commands":["session.quick_switch.8"]}, + {"keys":["\u0018","8"],"commands":["session.quick_switch.8"]}, + {"keys":["\u001b[120;5u","9"],"commands":["session.quick_switch.9"]}, + {"keys":["\u0018","9"],"commands":["session.quick_switch.9"]}, + {"keys":["\u001b[49;5u"],"commands":["session.tab.select.1"]}, + {"keys":["\u001b[50;5u"],"commands":["session.tab.select.2"]}, + {"keys":["\u001b[51;5u"],"commands":["session.tab.select.3"]}, + {"keys":["\u001b[52;5u"],"commands":["session.tab.select.4"]}, + {"keys":["\u001b[53;5u"],"commands":["session.tab.select.5"]}, + {"keys":["\u001b[54;5u"],"commands":["session.tab.select.6"]}, + {"keys":["\u001b[55;5u"],"commands":["session.tab.select.7"]}, + {"keys":["\u001b[56;5u"],"commands":["session.tab.select.8"]}, + {"keys":["\u001b[57;5u"],"commands":["session.tab.select.9"]}, + {"keys":["\u001b[120;5u","0"],"commands":["session.tab.select.10"]}, + {"keys":["\u0018","0"],"commands":["session.tab.select.10"]}, + {"keys":["\u001b[48;5u"],"commands":["session.tab.select.10"]}, + {"keys":["\u001b[97;5u"],"commands":["model.dialog.provider"]}, + {"keys":["\u0001"],"commands":["model.dialog.provider"]}, + {"keys":["\u001b[120;5u","m"],"commands":["model.list"]}, + {"keys":["\u0018","m"],"commands":["model.list"]}, + {"keys":["\u001bOQ"],"commands":["model.cycle_recent"]}, + {"keys":["\u001b[1;2Q"],"commands":["model.cycle_recent_reverse"]}, + {"keys":["\u001b[120;5u","a"],"commands":["agent.list"]}, + {"keys":["\u0018","a"],"commands":["agent.list"]}, + {"keys":["\u001b[9;2u"],"commands":["agent.cycle"]}, + {"keys":["\u001b[Z"],"commands":["agent.cycle"]}, + {"keys":["\u001b[116;5u"],"commands":["variant.cycle"]}, + {"keys":["\u0014"],"commands":["variant.cycle"]}, + {"keys":["\u001b[98;7u"],"commands":["session.page.up"]}, + {"keys":["\u001b\u0002"],"commands":["session.page.up"]}, + {"keys":["\u001b[102;7u"],"commands":["session.page.down"]}, + {"keys":["\u001b\u0006"],"commands":["session.page.down"]}, + {"keys":["\u001b[121;7u"],"commands":["session.line.up"]}, + {"keys":["\u001b\u0019"],"commands":["session.line.up"]}, + {"keys":["\u001b[101;7u"],"commands":["session.line.down"]}, + {"keys":["\u001b\u0005"],"commands":["session.line.down"]}, + {"keys":["\u001b[117;7u"],"commands":["session.half.page.up"]}, + {"keys":["\u001b\u0015"],"commands":["session.half.page.up"]}, + {"keys":["\u001b[100;7u"],"commands":["session.half.page.down"]}, + {"keys":["\u001b\u0004"],"commands":["session.half.page.down"]}, + {"keys":["\u001b[103;5u"],"commands":["session.first"]}, + {"keys":["\u0007"],"commands":["session.first"]}, + {"keys":["\u001b[1;3H"],"commands":["session.first"]}, + {"keys":["\u001b[103;7u"],"commands":["session.last"]}, + {"keys":["\u001b\u0007"],"commands":["session.last"]}, + {"keys":["\u001b[1;3F"],"commands":["session.messages_last_user"]}, + {"keys":["\u001b[120;5u","y"],"commands":["messages.copy"]}, + {"keys":["\u0018","y"],"commands":["messages.copy"]}, + {"keys":["\u001b[120;5u","u"],"commands":["session.undo"]}, + {"keys":["\u0018","u"],"commands":["session.undo"]}, + {"keys":["\u001b[120;5u","r"],"commands":["session.redo"]}, + {"keys":["\u0018","r"],"commands":["session.redo"]}, + {"keys":["\u001b[120;5u","\u001b[13u"],"commands":["prompt.queue"]}, + {"keys":["\u0018","\r"],"commands":["prompt.queue"]}, + {"keys":["\u001b[120;5u","i"],"commands":["prompt.images.view"]}, + {"keys":["\u0018","i"],"commands":["prompt.images.view"]}, + {"keys":["\u001b[118;5u"],"commands":["prompt.paste"]}, + {"keys":["\u0016"],"commands":["prompt.paste"]}, + {"keys":["\u001b[13u"],"commands":["input.submit"]}, + {"keys":["\r"],"commands":["input.submit"]}, + {"keys":["\u001b[13;3u"],"commands":["input.newline"]}, + {"keys":["\u001b\r"],"commands":["input.newline"]}, + {"keys":["\u001b[57414;3u"],"commands":["input.submit"]}, + {"keys":["\u001b[13;2u"],"commands":["input.newline"]}, + {"keys":["\u001b[13;5u"],"commands":["input.newline"]}, + {"keys":["\u001b[106;5u"],"commands":["input.newline"]}, + {"keys":["\n"],"commands":["input.newline"]}, + {"keys":["\u001b[57414u"],"commands":["input.newline"]}, + {"keys":["\u001b[1;2D"],"commands":["input.select.left"]}, + {"keys":["\u001b[1;2C"],"commands":["input.select.right"]}, + {"keys":["\u001b[1;2A"],"commands":["input.select.up"]}, + {"keys":["\u001b[1;2B"],"commands":["input.select.down"]}, + {"keys":["\u001b[101;5u"],"commands":["input.line.end"]}, + {"keys":["\u0005"],"commands":["input.line.end"]}, + {"keys":["\u001b[97;6u"],"commands":["input.select.line.home"]}, + {"keys":["\u001b[101;6u"],"commands":["input.select.line.end"]}, + {"keys":["\u001b[97;3u"],"commands":["input.visual.line.home"]}, + {"keys":["\u001ba"],"commands":["input.visual.line.home"]}, + {"keys":["\u001b[1;9D"],"commands":["input.visual.line.home"]}, + {"keys":["\u001b[101;3u"],"commands":["input.visual.line.end"]}, + {"keys":["\u001be"],"commands":["input.visual.line.end"]}, + {"keys":["\u001b[1;9C"],"commands":["input.visual.line.end"]}, + {"keys":["\u001b[97;4u"],"commands":["input.select.visual.line.home"]}, + {"keys":["\u001bA"],"commands":["input.select.visual.line.home"]}, + {"keys":["\u001b[1;10D"],"commands":["input.select.visual.line.home"]}, + {"keys":["\u001b[101;4u"],"commands":["input.select.visual.line.end"]}, + {"keys":["\u001bE"],"commands":["input.select.visual.line.end"]}, + {"keys":["\u001b[1;10C"],"commands":["input.select.visual.line.end"]}, + {"keys":["\u001b[1;9A"],"commands":["input.buffer.home"]}, + {"keys":["\u001b[1;9B"],"commands":["input.buffer.end"]}, + {"keys":["\u001b[1;2H"],"commands":["input.select.buffer.home"]}, + {"keys":["\u001b[1;10A"],"commands":["input.select.buffer.home"]}, + {"keys":["\u001b[1;2F"],"commands":["input.select.buffer.end"]}, + {"keys":["\u001b[1;10B"],"commands":["input.select.buffer.end"]}, + {"keys":["\u001b[100;6u"],"commands":["input.delete.line"]}, + {"keys":["\u001b[107;5u"],"commands":["input.delete.to.line.end"]}, + {"keys":["\u000b"],"commands":["input.delete.to.line.end"]}, + {"keys":["\u001b[127;9u"],"commands":["input.delete.to.line.start"]}, + {"keys":["\u001b[127u"],"commands":["input.backspace"]}, + {"keys":[""],"commands":["input.backspace"]}, + {"keys":["\u001b[127;2u"],"commands":["input.backspace"]}, + {"keys":["\u001b[3~"],"commands":["input.delete"]}, + {"keys":["\u001b[3;2~"],"commands":["input.delete"]}, + {"keys":["\u001b[45;5u"],"commands":["input.undo"]}, + {"keys":["\u001b[122;9u"],"commands":["input.undo"]}, + {"keys":["\u001b[46;5u"],"commands":["input.redo"]}, + {"keys":["\u001b[122;10u"],"commands":["input.redo"]}, + {"keys":["\u001b[102;3u"],"commands":["input.word.forward"]}, + {"keys":["\u001bf"],"commands":["input.word.forward"]}, + {"keys":["\u001b[1;3C"],"commands":["input.word.forward"]}, + {"keys":["\u001b[1;5C"],"commands":["input.word.forward"]}, + {"keys":["\u001b[98;3u"],"commands":["input.word.backward"]}, + {"keys":["\u001bb"],"commands":["input.word.backward"]}, + {"keys":["\u001b[1;3D"],"commands":["input.word.backward"]}, + {"keys":["\u001b[1;5D"],"commands":["input.word.backward"]}, + {"keys":["\u001b[102;4u"],"commands":["input.select.word.forward"]}, + {"keys":["\u001bF"],"commands":["input.word.forward"]}, + {"keys":["\u001b[1;4C"],"commands":["input.select.word.forward"]}, + {"keys":["\u001b[98;4u"],"commands":["input.select.word.backward"]}, + {"keys":["\u001bB"],"commands":["input.word.backward"]}, + {"keys":["\u001b[1;4D"],"commands":["input.select.word.backward"]}, + {"keys":["\u001b[100;3u"],"commands":["input.delete.word.forward"]}, + {"keys":["\u001bd"],"commands":["input.delete.word.forward"]}, + {"keys":["\u001b[3;3~"],"commands":["input.delete.word.forward"]}, + {"keys":["\u001b[3;5~"],"commands":["input.delete.word.forward"]}, + {"keys":["\u001b[119;5u"],"commands":["input.delete.word.backward"]}, + {"keys":["\u0017"],"commands":["input.delete.word.backward"]}, + {"keys":["\u001b[127;5u"],"commands":["input.delete.word.backward"]}, + {"keys":["\u001b[127;3u"],"commands":["input.delete.word.backward"]}, + {"keys":["\u001b"],"commands":["input.delete.word.backward"]}, + {"keys":["\u001b[97;9u"],"commands":["input.select.all"]}, + {"keys":["\u001b[110;5u"],"commands":["dialog.select.next"]}, + {"keys":["\u000e"],"commands":["dialog.select.next"]}, + {"keys":["\u001b[9u"],"commands":["dialog.integration.copy"]}, + {"keys":["\u001b[109;5u"],"commands":["dialog.move_session.move"]}, + {"keys":[" "],"commands":["dialog.mcp.toggle"]}, + {"keys":["\u001b[122;5u"],"commands":["terminal.suspend"]}, + {"keys":["\u001a"],"commands":["terminal.suspend"]}, + {"keys":["\u001b[107;7u"],"commands":["which-key.toggle"]}, + {"keys":["\u001b\u000b"],"commands":["which-key.toggle"]}, + {"keys":["\u001b[107;8u"],"commands":["which-key.layout.toggle"]}, + {"keys":["\u001b[112;8u"],"commands":["which-key.pending.toggle"]}, + {"keys":["\u001b[1;7D"],"commands":["which-key.group.previous"]}, + {"keys":["\u001b[91;7u"],"commands":["which-key.group.previous"]}, + {"keys":["\u001b[1;7C"],"commands":["which-key.group.next"]}, + {"keys":["\u001b[93;7u"],"commands":["which-key.group.next"]}, + {"keys":["\u001b[1;7A"],"commands":["which-key.scroll.up"]}, + {"keys":["\u001b[112;7u"],"commands":["which-key.scroll.up"]}, + {"keys":["\u001b\u0010"],"commands":["which-key.scroll.up"]}, + {"keys":["\u001b[1;7B"],"commands":["which-key.scroll.down"]}, + {"keys":["\u001b[110;7u"],"commands":["which-key.scroll.down"]}, + {"keys":["\u001b\u000e"],"commands":["which-key.scroll.down"]}, + {"keys":["\u001b[5;7~"],"commands":["which-key.page.up"]}, + {"keys":["\u001b[6;7~"],"commands":["which-key.page.down"]}, + {"keys":["\u001b[1;7H"],"commands":["which-key.home"]}, + {"keys":["\u001b[1;7F"],"commands":["which-key.end"]}, + {"keys":["\u0018","\u001b[27u","n"],"commands":["diff.next_file"]}, + {"keys":["\u0018","\u001b[127u","n"],"commands":["diff.next_file"]}, + {"keys":["\u0018","\u001b[127u","\u0018","n"],"commands":["session.new"]}, + {"keys":["\u0018","z"],"commands":[]}, + {"keys":["\u0018","z","n"],"commands":["diff.next_file"]}, + {"keys":["g","x"],"commands":[]}, + {"keys":["g","\u001b[27u","g","g"],"commands":["diff.first"]}, + {"keys":["a","\u001b[13;3u"],"commands":["input.newline"]} + ] + }, + { + "name": "value forms", + "keybinds": {"session.new":"ctrl+n","session.list":["ctrl+k","<leader>shift+l"],"model.list":{"name":"m","ctrl":true,"meta":true},"agent.list":{"key":"alt+a","preventDefault":false},"agent.cycle":{"key":{"name":"tab","ctrl":true}},"session.compact":false,"session.export":"none","session.timeline":[],"help.show":"f1","docs.open":"ctrl+shift+h","theme.switch":"enter","theme.switch_mode":"esc","diff.page.down":"pgdown","diff.page.up":"PGUP","mcp.list":"<leader>esc","variant.list":"zz","session.fork":{"key":"ctrl+y","event":"release"},"usage.show":["f5",{"key":"f6","fallthrough":true}],"input.submit":"ctrl+s","input.newline":"return"}, + "terminalSuspend": true, + "layout": "all", + "textarea": false, + "extra": [["\u0018","\u001b[76;2u"],["\u0018","\u001b[27u"],["z","z"],["\u0018","n"],["\u0018","c"],["\u0018","x"]], + "cases": [ + {"keys":["\u001b[99;5u"],"commands":["app.exit"]}, + {"keys":["\u0003"],"commands":["app.exit"]}, + {"keys":["\u001b[100;5u"],"commands":["app.exit"]}, + {"keys":["\u0004"],"commands":["app.exit"]}, + {"keys":["\u001b[120;5u","q"],"commands":["app.exit"]}, + {"keys":["\u0018","q"],"commands":["app.exit"]}, + {"keys":["\u001b[108;5u"],"commands":["app.clear"]}, + {"keys":["\f"],"commands":["app.clear"]}, + {"keys":["\u001b[112;5u"],"commands":["command.palette.show"]}, + {"keys":["\u0010"],"commands":["command.palette.show"]}, + {"keys":["\u001bOP"],"commands":["help.show"]}, + {"keys":["\u001b[104;6u"],"commands":["docs.open"]}, + {"keys":["\u001b[27u"],"commands":["diff.close"]}, + {"keys":["q"],"commands":["diff.close"]}, + {"keys":["j"],"commands":["diff.down"]}, + {"keys":["\u001b[B"],"commands":["diff.down"]}, + {"keys":["k"],"commands":["diff.up"]}, + {"keys":["\u001b[A"],"commands":["diff.up"]}, + {"keys":["\u001b[6~"],"commands":["diff.page.down"]}, + {"keys":["\u001b[5~"],"commands":["diff.page.up"]}, + {"keys":["\u001b[117;5u"],"commands":["diff.half_page.up"]}, + {"keys":["\u0015"],"commands":["diff.half_page.up"]}, + {"keys":["g","g"],"commands":["diff.first"]}, + {"keys":["\u001b[H"],"commands":["diff.first"]}, + {"keys":["\u001b[103;2u"],"commands":["diff.last"]}, + {"keys":["G"],"commands":["diff.last"]}, + {"keys":["\u001b[F"],"commands":["diff.last"]}, + {"keys":["]"],"commands":["diff.next_hunk"]}, + {"keys":["["],"commands":["diff.previous_hunk"]}, + {"keys":["n"],"commands":["diff.next_file"]}, + {"keys":["\u001b[1;3B"],"commands":["diff.next_file"]}, + {"keys":["p"],"commands":["diff.previous_file"]}, + {"keys":["\u001b[1;3A"],"commands":["diff.previous_file"]}, + {"keys":["b"],"commands":["diff.toggle_file_tree"]}, + {"keys":["s"],"commands":["diff.single_patch"]}, + {"keys":["d"],"commands":["diff.switch_source"]}, + {"keys":["v"],"commands":["diff.toggle_view"]}, + {"keys":["f"],"commands":["diff.toggle_fullscreen"]}, + {"keys":["m"],"commands":["diff.mark_reviewed"]}, + {"keys":["?"],"commands":["diff.help"]}, + {"keys":["\u001b[63;2u"],"commands":["diff.help"]}, + {"keys":["\u001b[47;2u"],"commands":["diff.help"]}, + {"keys":["\u001b[120;5u","e"],"commands":["prompt.editor"]}, + {"keys":["\u0018","e"],"commands":["prompt.editor"]}, + {"keys":["\u001b[13u"],"commands":["theme.switch"]}, + {"keys":["\r"],"commands":["theme.switch"]}, + {"keys":["\u001b[120;5u","b"],"commands":["session.sidebar.toggle"]}, + {"keys":["\u0018","b"],"commands":["session.sidebar.toggle"]}, + {"keys":["\u001b[120;5u","\u001b[D"],"commands":["pane.focus.left"]}, + {"keys":["\u0018","\u001b[D"],"commands":["pane.focus.left"]}, + {"keys":["\u001b[120;5u","\u001b[C"],"commands":["pane.focus.right"]}, + {"keys":["\u0018","\u001b[C"],"commands":["pane.focus.right"]}, + {"keys":["\u001b[120;5u","\u001b[B"],"commands":["terminal.select"]}, + {"keys":["\u0018","\u001b[B"],"commands":["terminal.select"]}, + {"keys":["\u001b[120;5u","t"],"commands":["terminal.toggle"]}, + {"keys":["\u0018","t"],"commands":["terminal.toggle"]}, + {"keys":["\u001b[120;5u","\u001b[A"],"commands":["terminal.close"]}, + {"keys":["\u0018","\u001b[A"],"commands":["terminal.close"]}, + {"keys":["\u001b[120;5u","s"],"commands":["opencode.status"]}, + {"keys":["\u0018","s"],"commands":["opencode.status"]}, + {"keys":["\u001b[110;5u"],"commands":["session.new"]}, + {"keys":["\u000e"],"commands":["session.new"]}, + {"keys":["\u001b[107;5u"],"commands":["session.list"]}, + {"keys":["\u000b"],"commands":["session.list"]}, + {"keys":["\u001b[120;5u","\u001b[108;2u"],"commands":["session.list"]}, + {"keys":["\u0018","L"],"commands":["session.list"]}, + {"keys":["\u001b[111;5u"],"commands":["open.menu"]}, + {"keys":["\u000f"],"commands":["open.menu"]}, + {"keys":["\u001b[9;5u"],"commands":["session.tab.next"]}, + {"keys":["\u001b[9;6u"],"commands":["session.tab.previous"]}, + {"keys":["\u001b[105;5u"],"commands":["session.tab.history.forward"]}, + {"keys":["\t"],"commands":["dialog.integration.copy"]}, + {"keys":["\u001b[1;4B"],"commands":["session.tab.next_unread"]}, + {"keys":["\u001b[1;4A"],"commands":["session.tab.previous_unread"]}, + {"keys":["\u001b[120;5u","w"],"commands":["session.tab.close"]}, + {"keys":["\u0018","w"],"commands":["session.tab.close"]}, + {"keys":["\u001b[116;6u"],"commands":["session.tab.reopen"]}, + {"keys":["\u001b[121;5u"],"commands":[]}, + {"keys":["\u0019"],"commands":[]}, + {"keys":["\u001b[114;5u"],"commands":["session.rename"]}, + {"keys":["\u0012"],"commands":["session.rename"]}, + {"keys":["\u001b[98;5u"],"commands":["session.background"]}, + {"keys":["\u0002"],"commands":["session.background"]}, + {"keys":["\u001b[C"],"commands":["session.child.next"]}, + {"keys":["\u001b[D"],"commands":["session.child.previous"]}, + {"keys":["\u001b[102;5u"],"commands":["session.pin.toggle"]}, + {"keys":["\u0006"],"commands":["session.pin.toggle"]}, + {"keys":["\u001b[120;5u","1"],"commands":["session.quick_switch.1"]}, + {"keys":["\u0018","1"],"commands":["session.quick_switch.1"]}, + {"keys":["\u001b[120;5u","2"],"commands":["session.quick_switch.2"]}, + {"keys":["\u0018","2"],"commands":["session.quick_switch.2"]}, + {"keys":["\u001b[120;5u","3"],"commands":["session.quick_switch.3"]}, + {"keys":["\u0018","3"],"commands":["session.quick_switch.3"]}, + {"keys":["\u001b[120;5u","4"],"commands":["session.quick_switch.4"]}, + {"keys":["\u0018","4"],"commands":["session.quick_switch.4"]}, + {"keys":["\u001b[120;5u","5"],"commands":["session.quick_switch.5"]}, + {"keys":["\u0018","5"],"commands":["session.quick_switch.5"]}, + {"keys":["\u001b[120;5u","6"],"commands":["session.quick_switch.6"]}, + {"keys":["\u0018","6"],"commands":["session.quick_switch.6"]}, + {"keys":["\u001b[120;5u","7"],"commands":["session.quick_switch.7"]}, + {"keys":["\u0018","7"],"commands":["session.quick_switch.7"]}, + {"keys":["\u001b[120;5u","8"],"commands":["session.quick_switch.8"]}, + {"keys":["\u0018","8"],"commands":["session.quick_switch.8"]}, + {"keys":["\u001b[120;5u","9"],"commands":["session.quick_switch.9"]}, + {"keys":["\u0018","9"],"commands":["session.quick_switch.9"]}, + {"keys":["\u001b[49;5u"],"commands":["session.tab.select.1"]}, + {"keys":["\u001b[50;5u"],"commands":["session.tab.select.2"]}, + {"keys":["\u001b[51;5u"],"commands":["session.tab.select.3"]}, + {"keys":["\u001b[52;5u"],"commands":["session.tab.select.4"]}, + {"keys":["\u001b[53;5u"],"commands":["session.tab.select.5"]}, + {"keys":["\u001b[54;5u"],"commands":["session.tab.select.6"]}, + {"keys":["\u001b[55;5u"],"commands":["session.tab.select.7"]}, + {"keys":["\u001b[56;5u"],"commands":["session.tab.select.8"]}, + {"keys":["\u001b[57;5u"],"commands":["session.tab.select.9"]}, + {"keys":["\u001b[120;5u","0"],"commands":["session.tab.select.10"]}, + {"keys":["\u0018","0"],"commands":["session.tab.select.10"]}, + {"keys":["\u001b[48;5u"],"commands":["session.tab.select.10"]}, + {"keys":["\u001b[97;5u"],"commands":["model.dialog.provider"]}, + {"keys":["\u0001"],"commands":["model.dialog.provider"]}, + {"keys":["\u001b[109;7u"],"commands":["model.list"]}, + {"keys":["\u001b\r"],"commands":[]}, + {"keys":["\u001bOQ"],"commands":["model.cycle_recent"]}, + {"keys":["\u001b[1;2Q"],"commands":["model.cycle_recent_reverse"]}, + {"keys":["\u001b[120;5u","\u001b[27u"],"commands":[]}, + {"keys":["\u001b[15~"],"commands":["usage.show"]}, + {"keys":["\u001b[17~"],"commands":["usage.show"]}, + {"keys":["\u001b[97;3u"],"commands":["agent.list"]}, + {"keys":["\u001ba"],"commands":["agent.list"]}, + {"keys":["\u001b[116;5u"],"commands":["variant.cycle"]}, + {"keys":["\u0014"],"commands":["variant.cycle"]}, + {"keys":["z","z"],"commands":["variant.list"]}, + {"keys":["\u001b[98;7u"],"commands":["session.page.up"]}, + {"keys":["\u001b\u0002"],"commands":["session.page.up"]}, + {"keys":["\u001b[102;7u"],"commands":["session.page.down"]}, + {"keys":["\u001b\u0006"],"commands":["session.page.down"]}, + {"keys":["\u001b[121;7u"],"commands":["session.line.up"]}, + {"keys":["\u001b\u0019"],"commands":["session.line.up"]}, + {"keys":["\u001b[101;7u"],"commands":["session.line.down"]}, + {"keys":["\u001b\u0005"],"commands":["session.line.down"]}, + {"keys":["\u001b[117;7u"],"commands":["session.half.page.up"]}, + {"keys":["\u001b\u0015"],"commands":["session.half.page.up"]}, + {"keys":["\u001b[100;7u"],"commands":["session.half.page.down"]}, + {"keys":["\u001b\u0004"],"commands":["session.half.page.down"]}, + {"keys":["\u001b[103;5u"],"commands":["session.first"]}, + {"keys":["\u0007"],"commands":["session.first"]}, + {"keys":["\u001b[1;3H"],"commands":["session.first"]}, + {"keys":["\u001b[103;7u"],"commands":["session.last"]}, + {"keys":["\u001b\u0007"],"commands":["session.last"]}, + {"keys":["\u001b[1;3F"],"commands":["session.messages_last_user"]}, + {"keys":["\u001b[120;5u","y"],"commands":["messages.copy"]}, + {"keys":["\u0018","y"],"commands":["messages.copy"]}, + {"keys":["\u001b[120;5u","u"],"commands":["session.undo"]}, + {"keys":["\u0018","u"],"commands":["session.undo"]}, + {"keys":["\u001b[120;5u","r"],"commands":["session.redo"]}, + {"keys":["\u0018","r"],"commands":["session.redo"]}, + {"keys":["\u001b[120;5u","\u001b[13u"],"commands":["prompt.queue"]}, + {"keys":["\u0018","\r"],"commands":["prompt.queue"]}, + {"keys":["\u001b[120;5u","i"],"commands":["prompt.images.view"]}, + {"keys":["\u0018","i"],"commands":["prompt.images.view"]}, + {"keys":["\u001b[118;5u"],"commands":["prompt.paste"]}, + {"keys":["\u0016"],"commands":["prompt.paste"]}, + {"keys":["\u001b[115;5u"],"commands":["input.submit"]}, + {"keys":["\u0013"],"commands":["input.submit"]}, + {"keys":["\u001b[13;3u"],"commands":[]}, + {"keys":["\u001b[57414;3u"],"commands":[]}, + {"keys":["\u001b[57414u"],"commands":[]}, + {"keys":["\n"],"commands":[]}, + {"keys":["\u001b[1;2D"],"commands":["input.select.left"]}, + {"keys":["\u001b[1;2C"],"commands":["input.select.right"]}, + {"keys":["\u001b[1;2A"],"commands":["input.select.up"]}, + {"keys":["\u001b[1;2B"],"commands":["input.select.down"]}, + {"keys":["\u001b[101;5u"],"commands":["input.line.end"]}, + {"keys":["\u0005"],"commands":["input.line.end"]}, + {"keys":["\u001b[97;6u"],"commands":["input.select.line.home"]}, + {"keys":["\u001b[101;6u"],"commands":["input.select.line.end"]}, + {"keys":["\u001b[1;9D"],"commands":[]}, + {"keys":["\u001b[101;3u"],"commands":["input.visual.line.end"]}, + {"keys":["\u001be"],"commands":["input.visual.line.end"]}, + {"keys":["\u001b[1;9C"],"commands":[]}, + {"keys":["\u001b[97;4u"],"commands":["input.select.visual.line.home"]}, + {"keys":["\u001bA"],"commands":["input.select.visual.line.home"]}, + {"keys":["\u001b[1;10D"],"commands":[]}, + {"keys":["\u001b[101;4u"],"commands":["input.select.visual.line.end"]}, + {"keys":["\u001bE"],"commands":["input.select.visual.line.end"]}, + {"keys":["\u001b[1;10C"],"commands":[]}, + {"keys":["\u001b[1;9A"],"commands":[]}, + {"keys":["\u001b[1;9B"],"commands":[]}, + {"keys":["\u001b[1;2H"],"commands":["input.select.buffer.home"]}, + {"keys":["\u001b[1;10A"],"commands":[]}, + {"keys":["\u001b[1;2F"],"commands":["input.select.buffer.end"]}, + {"keys":["\u001b[1;10B"],"commands":[]}, + {"keys":["\u001b[100;6u"],"commands":["input.delete.line"]}, + {"keys":["\u001b[127;9u"],"commands":[]}, + {"keys":["\u001b[127u"],"commands":["input.backspace"]}, + {"keys":[""],"commands":["input.backspace"]}, + {"keys":["\u001b[127;2u"],"commands":["input.backspace"]}, + {"keys":["\u001b[3~"],"commands":["input.delete"]}, + {"keys":["\u001b[3;2~"],"commands":["input.delete"]}, + {"keys":["\u001b[45;5u"],"commands":["input.undo"]}, + {"keys":["\u001b[122;9u"],"commands":["input.undo"]}, + {"keys":["\u001b[46;5u"],"commands":["input.redo"]}, + {"keys":["\u001b[122;10u"],"commands":["input.redo"]}, + {"keys":["\u001b[102;3u"],"commands":["input.word.forward"]}, + {"keys":["\u001bf"],"commands":["input.word.forward"]}, + {"keys":["\u001b[1;3C"],"commands":["input.word.forward"]}, + {"keys":["\u001b[1;5C"],"commands":["input.word.forward"]}, + {"keys":["\u001b[98;3u"],"commands":["input.word.backward"]}, + {"keys":["\u001bb"],"commands":["input.word.backward"]}, + {"keys":["\u001b[1;3D"],"commands":["input.word.backward"]}, + {"keys":["\u001b[1;5D"],"commands":["input.word.backward"]}, + {"keys":["\u001b[102;4u"],"commands":["input.select.word.forward"]}, + {"keys":["\u001bF"],"commands":["input.word.forward"]}, + {"keys":["\u001b[1;4C"],"commands":["input.select.word.forward"]}, + {"keys":["\u001b[98;4u"],"commands":["input.select.word.backward"]}, + {"keys":["\u001bB"],"commands":["input.word.backward"]}, + {"keys":["\u001b[1;4D"],"commands":["input.select.word.backward"]}, + {"keys":["\u001b[100;3u"],"commands":["input.delete.word.forward"]}, + {"keys":["\u001bd"],"commands":["input.delete.word.forward"]}, + {"keys":["\u001b[3;3~"],"commands":["input.delete.word.forward"]}, + {"keys":["\u001b[3;5~"],"commands":["input.delete.word.forward"]}, + {"keys":["\u001b[119;5u"],"commands":["input.delete.word.backward"]}, + {"keys":["\u0017"],"commands":["input.delete.word.backward"]}, + {"keys":["\u001b[127;5u"],"commands":["input.delete.word.backward"]}, + {"keys":["\u001b[127;3u"],"commands":["input.delete.word.backward"]}, + {"keys":["\u001b"],"commands":["input.delete.word.backward"]}, + {"keys":["\u001b[97;9u"],"commands":["input.select.all"]}, + {"keys":["\u001b[9u"],"commands":["dialog.integration.copy"]}, + {"keys":["\u001b[109;5u"],"commands":["dialog.move_session.move"]}, + {"keys":[" "],"commands":["dialog.mcp.toggle"]}, + {"keys":["\u001b[122;5u"],"commands":["terminal.suspend"]}, + {"keys":["\u001a"],"commands":["terminal.suspend"]}, + {"keys":["\u001b[107;7u"],"commands":["which-key.toggle"]}, + {"keys":["\u001b\u000b"],"commands":["which-key.toggle"]}, + {"keys":["\u001b[107;8u"],"commands":["which-key.layout.toggle"]}, + {"keys":["\u001b[112;8u"],"commands":["which-key.pending.toggle"]}, + {"keys":["\u001b[1;7D"],"commands":["which-key.group.previous"]}, + {"keys":["\u001b[91;7u"],"commands":["which-key.group.previous"]}, + {"keys":["\u001b[1;7C"],"commands":["which-key.group.next"]}, + {"keys":["\u001b[93;7u"],"commands":["which-key.group.next"]}, + {"keys":["\u001b[1;7A"],"commands":["which-key.scroll.up"]}, + {"keys":["\u001b[112;7u"],"commands":["which-key.scroll.up"]}, + {"keys":["\u001b\u0010"],"commands":["which-key.scroll.up"]}, + {"keys":["\u001b[1;7B"],"commands":["which-key.scroll.down"]}, + {"keys":["\u001b[110;7u"],"commands":["which-key.scroll.down"]}, + {"keys":["\u001b\u000e"],"commands":["which-key.scroll.down"]}, + {"keys":["\u001b[5;7~"],"commands":["which-key.page.up"]}, + {"keys":["\u001b[6;7~"],"commands":["which-key.page.down"]}, + {"keys":["\u001b[1;7H"],"commands":["which-key.home"]}, + {"keys":["\u001b[1;7F"],"commands":["which-key.end"]}, + {"keys":["\u0018","\u001b[76;2u"],"commands":["session.list"]}, + {"keys":["\u0018","\u001b[27u"],"commands":[]}, + {"keys":["\u0018","n"],"commands":[]}, + {"keys":["\u0018","c"],"commands":[]}, + {"keys":["\u0018","x"],"commands":[]} + ] + }, + { + "name": "value forms with a focused textarea", + "keybinds": {"session.new":"ctrl+n","session.list":["ctrl+k","<leader>shift+l"],"model.list":{"name":"m","ctrl":true,"meta":true},"agent.list":{"key":"alt+a","preventDefault":false},"agent.cycle":{"key":{"name":"tab","ctrl":true}},"session.compact":false,"session.export":"none","session.timeline":[],"help.show":"f1","docs.open":"ctrl+shift+h","theme.switch":"enter","theme.switch_mode":"esc","diff.page.down":"pgdown","diff.page.up":"PGUP","mcp.list":"<leader>esc","variant.list":"zz","session.fork":{"key":"ctrl+y","event":"release"},"usage.show":["f5",{"key":"f6","fallthrough":true}],"input.submit":"ctrl+s","input.newline":"return"}, + "terminalSuspend": true, + "layout": "all", + "textarea": true, + "extra": [["\u0018","\u001b[76;2u"],["\u0018","\u001b[27u"],["z","z"],["\u0018","n"],["\u0018","c"],["\u0018","x"]], + "cases": [ + {"keys":["\u001b[99;5u"],"commands":["app.exit"]}, + {"keys":["\u0003"],"commands":["app.exit"]}, + {"keys":["\u001b[100;5u"],"commands":["app.exit"]}, + {"keys":["\u0004"],"commands":["app.exit"]}, + {"keys":["\u001b[120;5u","q"],"commands":["app.exit"]}, + {"keys":["\u0018","q"],"commands":["app.exit"]}, + {"keys":["\u001b[108;5u"],"commands":["app.clear"]}, + {"keys":["\f"],"commands":["app.clear"]}, + {"keys":["\u001b[112;5u"],"commands":["command.palette.show"]}, + {"keys":["\u0010"],"commands":["command.palette.show"]}, + {"keys":["\u001bOP"],"commands":["help.show"]}, + {"keys":["\u001b[104;6u"],"commands":["docs.open"]}, + {"keys":["\u001b[27u"],"commands":["diff.close"]}, + {"keys":["q"],"commands":["diff.close"]}, + {"keys":["j"],"commands":["diff.down"]}, + {"keys":["\u001b[B"],"commands":["diff.down"]}, + {"keys":["k"],"commands":["diff.up"]}, + {"keys":["\u001b[A"],"commands":["diff.up"]}, + {"keys":["\u001b[6~"],"commands":["diff.page.down"]}, + {"keys":["\u001b[5~"],"commands":["diff.page.up"]}, + {"keys":["\u001b[117;5u"],"commands":["diff.half_page.up"]}, + {"keys":["\u0015"],"commands":["diff.half_page.up"]}, + {"keys":["g","g"],"commands":["diff.first"]}, + {"keys":["\u001b[H"],"commands":["diff.first"]}, + {"keys":["\u001b[103;2u"],"commands":["diff.last"]}, + {"keys":["G"],"commands":["diff.last"]}, + {"keys":["\u001b[F"],"commands":["diff.last"]}, + {"keys":["]"],"commands":["diff.next_hunk"]}, + {"keys":["["],"commands":["diff.previous_hunk"]}, + {"keys":["n"],"commands":["diff.next_file"]}, + {"keys":["\u001b[1;3B"],"commands":["diff.next_file"]}, + {"keys":["p"],"commands":["diff.previous_file"]}, + {"keys":["\u001b[1;3A"],"commands":["diff.previous_file"]}, + {"keys":["b"],"commands":["diff.toggle_file_tree"]}, + {"keys":["s"],"commands":["diff.single_patch"]}, + {"keys":["d"],"commands":["diff.switch_source"]}, + {"keys":["v"],"commands":["diff.toggle_view"]}, + {"keys":["f"],"commands":["diff.toggle_fullscreen"]}, + {"keys":["m"],"commands":["diff.mark_reviewed"]}, + {"keys":["?"],"commands":["diff.help"]}, + {"keys":["\u001b[63;2u"],"commands":["diff.help"]}, + {"keys":["\u001b[47;2u"],"commands":["diff.help"]}, + {"keys":["\u001b[120;5u","e"],"commands":["prompt.editor"]}, + {"keys":["\u0018","e"],"commands":["prompt.editor"]}, + {"keys":["\u001b[13u"],"commands":["theme.switch"]}, + {"keys":["\r"],"commands":["theme.switch"]}, + {"keys":["\u001b[120;5u","b"],"commands":["session.sidebar.toggle"]}, + {"keys":["\u0018","b"],"commands":["session.sidebar.toggle"]}, + {"keys":["\u001b[120;5u","\u001b[D"],"commands":["pane.focus.left"]}, + {"keys":["\u0018","\u001b[D"],"commands":["pane.focus.left"]}, + {"keys":["\u001b[120;5u","\u001b[C"],"commands":["pane.focus.right"]}, + {"keys":["\u0018","\u001b[C"],"commands":["pane.focus.right"]}, + {"keys":["\u001b[120;5u","\u001b[B"],"commands":["terminal.select"]}, + {"keys":["\u0018","\u001b[B"],"commands":["terminal.select"]}, + {"keys":["\u001b[120;5u","t"],"commands":["terminal.toggle"]}, + {"keys":["\u0018","t"],"commands":["terminal.toggle"]}, + {"keys":["\u001b[120;5u","\u001b[A"],"commands":["terminal.close"]}, + {"keys":["\u0018","\u001b[A"],"commands":["terminal.close"]}, + {"keys":["\u001b[120;5u","s"],"commands":["opencode.status"]}, + {"keys":["\u0018","s"],"commands":["opencode.status"]}, + {"keys":["\u001b[110;5u"],"commands":["session.new"]}, + {"keys":["\u000e"],"commands":["session.new"]}, + {"keys":["\u001b[107;5u"],"commands":["session.list"]}, + {"keys":["\u000b"],"commands":["session.list"]}, + {"keys":["\u001b[120;5u","\u001b[108;2u"],"commands":["session.list"]}, + {"keys":["\u0018","L"],"commands":["session.list"]}, + {"keys":["\u001b[111;5u"],"commands":["open.menu"]}, + {"keys":["\u000f"],"commands":["open.menu"]}, + {"keys":["\u001b[9;5u"],"commands":["session.tab.next"]}, + {"keys":["\u001b[9;6u"],"commands":["session.tab.previous"]}, + {"keys":["\u001b[105;5u"],"commands":["session.tab.history.forward"]}, + {"keys":["\t"],"commands":["dialog.integration.copy"]}, + {"keys":["\u001b[1;4B"],"commands":["session.tab.next_unread"]}, + {"keys":["\u001b[1;4A"],"commands":["session.tab.previous_unread"]}, + {"keys":["\u001b[120;5u","w"],"commands":["session.tab.close"]}, + {"keys":["\u0018","w"],"commands":["session.tab.close"]}, + {"keys":["\u001b[116;6u"],"commands":["session.tab.reopen"]}, + {"keys":["\u001b[121;5u"],"commands":[]}, + {"keys":["\u0019"],"commands":[]}, + {"keys":["\u001b[114;5u"],"commands":["session.rename"]}, + {"keys":["\u0012"],"commands":["session.rename"]}, + {"keys":["\u001b[98;5u"],"commands":["session.background"]}, + {"keys":["\u0002"],"commands":["session.background"]}, + {"keys":["\u001b[C"],"commands":["session.child.next"]}, + {"keys":["\u001b[D"],"commands":["session.child.previous"]}, + {"keys":["\u001b[102;5u"],"commands":["session.pin.toggle"]}, + {"keys":["\u0006"],"commands":["session.pin.toggle"]}, + {"keys":["\u001b[120;5u","1"],"commands":["session.quick_switch.1"]}, + {"keys":["\u0018","1"],"commands":["session.quick_switch.1"]}, + {"keys":["\u001b[120;5u","2"],"commands":["session.quick_switch.2"]}, + {"keys":["\u0018","2"],"commands":["session.quick_switch.2"]}, + {"keys":["\u001b[120;5u","3"],"commands":["session.quick_switch.3"]}, + {"keys":["\u0018","3"],"commands":["session.quick_switch.3"]}, + {"keys":["\u001b[120;5u","4"],"commands":["session.quick_switch.4"]}, + {"keys":["\u0018","4"],"commands":["session.quick_switch.4"]}, + {"keys":["\u001b[120;5u","5"],"commands":["session.quick_switch.5"]}, + {"keys":["\u0018","5"],"commands":["session.quick_switch.5"]}, + {"keys":["\u001b[120;5u","6"],"commands":["session.quick_switch.6"]}, + {"keys":["\u0018","6"],"commands":["session.quick_switch.6"]}, + {"keys":["\u001b[120;5u","7"],"commands":["session.quick_switch.7"]}, + {"keys":["\u0018","7"],"commands":["session.quick_switch.7"]}, + {"keys":["\u001b[120;5u","8"],"commands":["session.quick_switch.8"]}, + {"keys":["\u0018","8"],"commands":["session.quick_switch.8"]}, + {"keys":["\u001b[120;5u","9"],"commands":["session.quick_switch.9"]}, + {"keys":["\u0018","9"],"commands":["session.quick_switch.9"]}, + {"keys":["\u001b[49;5u"],"commands":["session.tab.select.1"]}, + {"keys":["\u001b[50;5u"],"commands":["session.tab.select.2"]}, + {"keys":["\u001b[51;5u"],"commands":["session.tab.select.3"]}, + {"keys":["\u001b[52;5u"],"commands":["session.tab.select.4"]}, + {"keys":["\u001b[53;5u"],"commands":["session.tab.select.5"]}, + {"keys":["\u001b[54;5u"],"commands":["session.tab.select.6"]}, + {"keys":["\u001b[55;5u"],"commands":["session.tab.select.7"]}, + {"keys":["\u001b[56;5u"],"commands":["session.tab.select.8"]}, + {"keys":["\u001b[57;5u"],"commands":["session.tab.select.9"]}, + {"keys":["\u001b[120;5u","0"],"commands":["session.tab.select.10"]}, + {"keys":["\u0018","0"],"commands":["session.tab.select.10"]}, + {"keys":["\u001b[48;5u"],"commands":["session.tab.select.10"]}, + {"keys":["\u001b[97;5u"],"commands":["model.dialog.provider"]}, + {"keys":["\u0001"],"commands":["model.dialog.provider"]}, + {"keys":["\u001b[109;7u"],"commands":["model.list"]}, + {"keys":["\u001b\r"],"commands":["input.submit"]}, + {"keys":["\u001bOQ"],"commands":["model.cycle_recent"]}, + {"keys":["\u001b[1;2Q"],"commands":["model.cycle_recent_reverse"]}, + {"keys":["\u001b[120;5u","\u001b[27u"],"commands":[]}, + {"keys":["\u001b[15~"],"commands":["usage.show"]}, + {"keys":["\u001b[17~"],"commands":["usage.show"]}, + {"keys":["\u001b[97;3u"],"commands":["agent.list"]}, + {"keys":["\u001ba"],"commands":["agent.list"]}, + {"keys":["\u001b[116;5u"],"commands":["variant.cycle"]}, + {"keys":["\u0014"],"commands":["variant.cycle"]}, + {"keys":["z","z"],"commands":["variant.list"]}, + {"keys":["\u001b[98;7u"],"commands":["session.page.up"]}, + {"keys":["\u001b\u0002"],"commands":["session.page.up"]}, + {"keys":["\u001b[102;7u"],"commands":["session.page.down"]}, + {"keys":["\u001b\u0006"],"commands":["session.page.down"]}, + {"keys":["\u001b[121;7u"],"commands":["session.line.up"]}, + {"keys":["\u001b\u0019"],"commands":["session.line.up"]}, + {"keys":["\u001b[101;7u"],"commands":["session.line.down"]}, + {"keys":["\u001b\u0005"],"commands":["session.line.down"]}, + {"keys":["\u001b[117;7u"],"commands":["session.half.page.up"]}, + {"keys":["\u001b\u0015"],"commands":["session.half.page.up"]}, + {"keys":["\u001b[100;7u"],"commands":["session.half.page.down"]}, + {"keys":["\u001b\u0004"],"commands":["session.half.page.down"]}, + {"keys":["\u001b[103;5u"],"commands":["session.first"]}, + {"keys":["\u0007"],"commands":["session.first"]}, + {"keys":["\u001b[1;3H"],"commands":["session.first"]}, + {"keys":["\u001b[103;7u"],"commands":["session.last"]}, + {"keys":["\u001b\u0007"],"commands":["session.last"]}, + {"keys":["\u001b[1;3F"],"commands":["session.messages_last_user"]}, + {"keys":["\u001b[120;5u","y"],"commands":["messages.copy"]}, + {"keys":["\u0018","y"],"commands":["messages.copy"]}, + {"keys":["\u001b[120;5u","u"],"commands":["session.undo"]}, + {"keys":["\u0018","u"],"commands":["session.undo"]}, + {"keys":["\u001b[120;5u","r"],"commands":["session.redo"]}, + {"keys":["\u0018","r"],"commands":["session.redo"]}, + {"keys":["\u001b[120;5u","\u001b[13u"],"commands":["prompt.queue"]}, + {"keys":["\u0018","\r"],"commands":["prompt.queue"]}, + {"keys":["\u001b[120;5u","i"],"commands":["prompt.images.view"]}, + {"keys":["\u0018","i"],"commands":["prompt.images.view"]}, + {"keys":["\u001b[118;5u"],"commands":["prompt.paste"]}, + {"keys":["\u0016"],"commands":["prompt.paste"]}, + {"keys":["\u001b[115;5u"],"commands":["input.submit"]}, + {"keys":["\u0013"],"commands":["input.submit"]}, + {"keys":["\u001b[13;3u"],"commands":["input.submit"]}, + {"keys":["\u001b[57414;3u"],"commands":["input.submit"]}, + {"keys":["\u001b[57414u"],"commands":["input.newline"]}, + {"keys":["\n"],"commands":["input.newline"]}, + {"keys":["\u001b[1;2D"],"commands":["input.select.left"]}, + {"keys":["\u001b[1;2C"],"commands":["input.select.right"]}, + {"keys":["\u001b[1;2A"],"commands":["input.select.up"]}, + {"keys":["\u001b[1;2B"],"commands":["input.select.down"]}, + {"keys":["\u001b[101;5u"],"commands":["input.line.end"]}, + {"keys":["\u0005"],"commands":["input.line.end"]}, + {"keys":["\u001b[97;6u"],"commands":["input.select.line.home"]}, + {"keys":["\u001b[101;6u"],"commands":["input.select.line.end"]}, + {"keys":["\u001b[1;9D"],"commands":["input.visual.line.home"]}, + {"keys":["\u001b[101;3u"],"commands":["input.visual.line.end"]}, + {"keys":["\u001be"],"commands":["input.visual.line.end"]}, + {"keys":["\u001b[1;9C"],"commands":["input.visual.line.end"]}, + {"keys":["\u001b[97;4u"],"commands":["input.select.visual.line.home"]}, + {"keys":["\u001bA"],"commands":["input.select.visual.line.home"]}, + {"keys":["\u001b[1;10D"],"commands":["input.select.visual.line.home"]}, + {"keys":["\u001b[101;4u"],"commands":["input.select.visual.line.end"]}, + {"keys":["\u001bE"],"commands":["input.select.visual.line.end"]}, + {"keys":["\u001b[1;10C"],"commands":["input.select.visual.line.end"]}, + {"keys":["\u001b[1;9A"],"commands":["input.buffer.home"]}, + {"keys":["\u001b[1;9B"],"commands":["input.buffer.end"]}, + {"keys":["\u001b[1;2H"],"commands":["input.select.buffer.home"]}, + {"keys":["\u001b[1;10A"],"commands":["input.select.buffer.home"]}, + {"keys":["\u001b[1;2F"],"commands":["input.select.buffer.end"]}, + {"keys":["\u001b[1;10B"],"commands":["input.select.buffer.end"]}, + {"keys":["\u001b[100;6u"],"commands":["input.delete.line"]}, + {"keys":["\u001b[127;9u"],"commands":["input.delete.to.line.start"]}, + {"keys":["\u001b[127u"],"commands":["input.backspace"]}, + {"keys":[""],"commands":["input.backspace"]}, + {"keys":["\u001b[127;2u"],"commands":["input.backspace"]}, + {"keys":["\u001b[3~"],"commands":["input.delete"]}, + {"keys":["\u001b[3;2~"],"commands":["input.delete"]}, + {"keys":["\u001b[45;5u"],"commands":["input.undo"]}, + {"keys":["\u001b[122;9u"],"commands":["input.undo"]}, + {"keys":["\u001b[46;5u"],"commands":["input.redo"]}, + {"keys":["\u001b[122;10u"],"commands":["input.redo"]}, + {"keys":["\u001b[102;3u"],"commands":["input.word.forward"]}, + {"keys":["\u001bf"],"commands":["input.word.forward"]}, + {"keys":["\u001b[1;3C"],"commands":["input.word.forward"]}, + {"keys":["\u001b[1;5C"],"commands":["input.word.forward"]}, + {"keys":["\u001b[98;3u"],"commands":["input.word.backward"]}, + {"keys":["\u001bb"],"commands":["input.word.backward"]}, + {"keys":["\u001b[1;3D"],"commands":["input.word.backward"]}, + {"keys":["\u001b[1;5D"],"commands":["input.word.backward"]}, + {"keys":["\u001b[102;4u"],"commands":["input.select.word.forward"]}, + {"keys":["\u001bF"],"commands":["input.word.forward"]}, + {"keys":["\u001b[1;4C"],"commands":["input.select.word.forward"]}, + {"keys":["\u001b[98;4u"],"commands":["input.select.word.backward"]}, + {"keys":["\u001bB"],"commands":["input.word.backward"]}, + {"keys":["\u001b[1;4D"],"commands":["input.select.word.backward"]}, + {"keys":["\u001b[100;3u"],"commands":["input.delete.word.forward"]}, + {"keys":["\u001bd"],"commands":["input.delete.word.forward"]}, + {"keys":["\u001b[3;3~"],"commands":["input.delete.word.forward"]}, + {"keys":["\u001b[3;5~"],"commands":["input.delete.word.forward"]}, + {"keys":["\u001b[119;5u"],"commands":["input.delete.word.backward"]}, + {"keys":["\u0017"],"commands":["input.delete.word.backward"]}, + {"keys":["\u001b[127;5u"],"commands":["input.delete.word.backward"]}, + {"keys":["\u001b[127;3u"],"commands":["input.delete.word.backward"]}, + {"keys":["\u001b"],"commands":["input.delete.word.backward"]}, + {"keys":["\u001b[97;9u"],"commands":["input.select.all"]}, + {"keys":["\u001b[9u"],"commands":["dialog.integration.copy"]}, + {"keys":["\u001b[109;5u"],"commands":["dialog.move_session.move"]}, + {"keys":[" "],"commands":["dialog.mcp.toggle"]}, + {"keys":["\u001b[122;5u"],"commands":["terminal.suspend"]}, + {"keys":["\u001a"],"commands":["terminal.suspend"]}, + {"keys":["\u001b[107;7u"],"commands":["which-key.toggle"]}, + {"keys":["\u001b\u000b"],"commands":["which-key.toggle"]}, + {"keys":["\u001b[107;8u"],"commands":["which-key.layout.toggle"]}, + {"keys":["\u001b[112;8u"],"commands":["which-key.pending.toggle"]}, + {"keys":["\u001b[1;7D"],"commands":["which-key.group.previous"]}, + {"keys":["\u001b[91;7u"],"commands":["which-key.group.previous"]}, + {"keys":["\u001b[1;7C"],"commands":["which-key.group.next"]}, + {"keys":["\u001b[93;7u"],"commands":["which-key.group.next"]}, + {"keys":["\u001b[1;7A"],"commands":["which-key.scroll.up"]}, + {"keys":["\u001b[112;7u"],"commands":["which-key.scroll.up"]}, + {"keys":["\u001b\u0010"],"commands":["which-key.scroll.up"]}, + {"keys":["\u001b[1;7B"],"commands":["which-key.scroll.down"]}, + {"keys":["\u001b[110;7u"],"commands":["which-key.scroll.down"]}, + {"keys":["\u001b\u000e"],"commands":["which-key.scroll.down"]}, + {"keys":["\u001b[5;7~"],"commands":["which-key.page.up"]}, + {"keys":["\u001b[6;7~"],"commands":["which-key.page.down"]}, + {"keys":["\u001b[1;7H"],"commands":["which-key.home"]}, + {"keys":["\u001b[1;7F"],"commands":["which-key.end"]}, + {"keys":["\u0018","\u001b[76;2u"],"commands":["session.list"]}, + {"keys":["\u0018","\u001b[27u"],"commands":[]}, + {"keys":["\u0018","n"],"commands":[]}, + {"keys":["\u0018","c"],"commands":[]}, + {"keys":["\u0018","x"],"commands":[]} + ] + }, + { + "name": "user cli.json", + "keybinds": {"leader":"ctrl+\\","session.tab.next":"tab","session.tab.previous":"shift+tab","session.tab.close":"ctrl+w","session.new":"ctrl+n","agent.cycle":"none","input.delete.word.backward":"ctrl+backspace,alt+backspace"}, + "terminalSuspend": true, + "layout": "all", + "textarea": false, + "extra": [["\u001c","l"],["\u001c","m"],["\u001c","1"],["\u001c","w"],["\u001c","n"],["\u001c","\u001b[27u","l"],["\u0018","l"],["a","\u001c","l"],["\t"],["\u001b[Z"],["\u0017"],["\u000e"]], + "cases": [ + {"keys":["\u001b[99;5u"],"commands":["app.exit"]}, + {"keys":["\u0003"],"commands":["app.exit"]}, + {"keys":["\u001b[100;5u"],"commands":["app.exit"]}, + {"keys":["\u0004"],"commands":["app.exit"]}, + {"keys":["\u001b[92;5u","q"],"commands":["app.exit"]}, + {"keys":["\u001b[108;5u"],"commands":["app.clear"]}, + {"keys":["\f"],"commands":["app.clear"]}, + {"keys":["\u001b[112;5u"],"commands":["command.palette.show"]}, + {"keys":["\u0010"],"commands":["command.palette.show"]}, + {"keys":["\u001b[27u"],"commands":["diff.close"]}, + {"keys":["q"],"commands":["diff.close"]}, + {"keys":["j"],"commands":["diff.down"]}, + {"keys":["\u001b[B"],"commands":["diff.down"]}, + {"keys":["k"],"commands":["diff.up"]}, + {"keys":["\u001b[A"],"commands":["diff.up"]}, + {"keys":["\u001b[6~"],"commands":["diff.page.down"]}, + {"keys":["\u001b[102;5u"],"commands":["diff.page.down"]}, + {"keys":["\u0006"],"commands":["diff.page.down"]}, + {"keys":["\u001b[5~"],"commands":["diff.page.up"]}, + {"keys":["\u001b[98;5u"],"commands":["diff.page.up"]}, + {"keys":["\u0002"],"commands":["diff.page.up"]}, + {"keys":["\u001b[117;5u"],"commands":["diff.half_page.up"]}, + {"keys":["\u0015"],"commands":["diff.half_page.up"]}, + {"keys":["g","g"],"commands":["diff.first"]}, + {"keys":["\u001b[H"],"commands":["diff.first"]}, + {"keys":["\u001b[103;2u"],"commands":["diff.last"]}, + {"keys":["G"],"commands":["diff.last"]}, + {"keys":["\u001b[F"],"commands":["diff.last"]}, + {"keys":["]"],"commands":["diff.next_hunk"]}, + {"keys":["["],"commands":["diff.previous_hunk"]}, + {"keys":["n"],"commands":["diff.next_file"]}, + {"keys":["\u001b[1;3B"],"commands":["diff.next_file"]}, + {"keys":["p"],"commands":["diff.previous_file"]}, + {"keys":["\u001b[1;3A"],"commands":["diff.previous_file"]}, + {"keys":["b"],"commands":["diff.toggle_file_tree"]}, + {"keys":["s"],"commands":["diff.single_patch"]}, + {"keys":["d"],"commands":["diff.switch_source"]}, + {"keys":["v"],"commands":["diff.toggle_view"]}, + {"keys":["f"],"commands":["diff.toggle_fullscreen"]}, + {"keys":["m"],"commands":["diff.mark_reviewed"]}, + {"keys":["?"],"commands":["diff.help"]}, + {"keys":["\u001b[63;2u"],"commands":["diff.help"]}, + {"keys":["\u001b[47;2u"],"commands":["diff.help"]}, + {"keys":["\u001b[92;5u","e"],"commands":["prompt.editor"]}, + {"keys":["\u001b[92;5u","b"],"commands":["session.sidebar.toggle"]}, + {"keys":["\u001b[92;5u","\u001b[D"],"commands":["pane.focus.left"]}, + {"keys":["\u001b[92;5u","\u001b[C"],"commands":["pane.focus.right"]}, + {"keys":["\u001b[92;5u","\u001b[B"],"commands":["terminal.select"]}, + {"keys":["\u001b[92;5u","t"],"commands":["terminal.toggle"]}, + {"keys":["\u001b[92;5u","\u001b[A"],"commands":["terminal.close"]}, + {"keys":["\u001b[92;5u","s"],"commands":["opencode.status"]}, + {"keys":["\u001b[92;5u","x"],"commands":["session.export"]}, + {"keys":["\u001b[110;5u"],"commands":["session.new"]}, + {"keys":["\u000e"],"commands":["session.new"]}, + {"keys":["\u001b[92;5u","l"],"commands":["session.list"]}, + {"keys":["\u001b[111;5u"],"commands":["open.menu"]}, + {"keys":["\u000f"],"commands":["open.menu"]}, + {"keys":["\u001b[9u"],"commands":["session.tab.next"]}, + {"keys":["\t"],"commands":["session.tab.next"]}, + {"keys":["\u001b[9;2u"],"commands":["session.tab.previous"]}, + {"keys":["\u001b[Z"],"commands":["session.tab.previous"]}, + {"keys":["\u001b[105;5u"],"commands":["session.tab.history.forward"]}, + {"keys":["\u001b[1;4B"],"commands":["session.tab.next_unread"]}, + {"keys":["\u001b[1;4A"],"commands":["session.tab.previous_unread"]}, + {"keys":["\u001b[119;5u"],"commands":["session.tab.close"]}, + {"keys":["\u0017"],"commands":["session.tab.close"]}, + {"keys":["\u001b[116;6u"],"commands":["session.tab.reopen"]}, + {"keys":["\u001b[92;5u","g"],"commands":["session.timeline"]}, + {"keys":["\u001b[114;5u"],"commands":["session.rename"]}, + {"keys":["\u0012"],"commands":["session.rename"]}, + {"keys":["\u001b[92;5u","c"],"commands":["session.compact"]}, + {"keys":["\u001b[C"],"commands":["session.child.next"]}, + {"keys":["\u001b[D"],"commands":["session.child.previous"]}, + {"keys":["\u001b[92;5u","1"],"commands":["session.quick_switch.1"]}, + {"keys":["\u001b[92;5u","2"],"commands":["session.quick_switch.2"]}, + {"keys":["\u001b[92;5u","3"],"commands":["session.quick_switch.3"]}, + {"keys":["\u001b[92;5u","4"],"commands":["session.quick_switch.4"]}, + {"keys":["\u001b[92;5u","5"],"commands":["session.quick_switch.5"]}, + {"keys":["\u001b[92;5u","6"],"commands":["session.quick_switch.6"]}, + {"keys":["\u001b[92;5u","7"],"commands":["session.quick_switch.7"]}, + {"keys":["\u001b[92;5u","8"],"commands":["session.quick_switch.8"]}, + {"keys":["\u001b[92;5u","9"],"commands":["session.quick_switch.9"]}, + {"keys":["\u001b[49;5u"],"commands":["session.tab.select.1"]}, + {"keys":["\u001b[50;5u"],"commands":["session.tab.select.2"]}, + {"keys":["\u001b[51;5u"],"commands":["session.tab.select.3"]}, + {"keys":["\u001b[52;5u"],"commands":["session.tab.select.4"]}, + {"keys":["\u001b[53;5u"],"commands":["session.tab.select.5"]}, + {"keys":["\u001b[54;5u"],"commands":["session.tab.select.6"]}, + {"keys":["\u001b[55;5u"],"commands":["session.tab.select.7"]}, + {"keys":["\u001b[56;5u"],"commands":["session.tab.select.8"]}, + {"keys":["\u001b[57;5u"],"commands":["session.tab.select.9"]}, + {"keys":["\u001b[92;5u","0"],"commands":["session.tab.select.10"]}, + {"keys":["\u001b[48;5u"],"commands":["session.tab.select.10"]}, + {"keys":["\u001b[97;5u"],"commands":["model.dialog.provider"]}, + {"keys":["\u0001"],"commands":["model.dialog.provider"]}, + {"keys":["\u001b[92;5u","m"],"commands":["model.list"]}, + {"keys":["\u001bOQ"],"commands":["model.cycle_recent"]}, + {"keys":["\u001b[1;2Q"],"commands":["model.cycle_recent_reverse"]}, + {"keys":["\u001b[92;5u","a"],"commands":["agent.list"]}, + {"keys":["\u001b[116;5u"],"commands":["variant.cycle"]}, + {"keys":["\u0014"],"commands":["variant.cycle"]}, + {"keys":["\u001b[98;7u"],"commands":["session.page.up"]}, + {"keys":["\u001b\u0002"],"commands":["session.page.up"]}, + {"keys":["\u001b[102;7u"],"commands":["session.page.down"]}, + {"keys":["\u001b\u0006"],"commands":["session.page.down"]}, + {"keys":["\u001b[121;7u"],"commands":["session.line.up"]}, + {"keys":["\u001b\u0019"],"commands":["session.line.up"]}, + {"keys":["\u001b[101;7u"],"commands":["session.line.down"]}, + {"keys":["\u001b\u0005"],"commands":["session.line.down"]}, + {"keys":["\u001b[117;7u"],"commands":["session.half.page.up"]}, + {"keys":["\u001b\u0015"],"commands":["session.half.page.up"]}, + {"keys":["\u001b[100;7u"],"commands":["session.half.page.down"]}, + {"keys":["\u001b\u0004"],"commands":["session.half.page.down"]}, + {"keys":["\u001b[103;5u"],"commands":["session.first"]}, + {"keys":["\u0007"],"commands":["session.first"]}, + {"keys":["\u001b[1;3H"],"commands":["session.first"]}, + {"keys":["\u001b[103;7u"],"commands":["session.last"]}, + {"keys":["\u001b\u0007"],"commands":["session.last"]}, + {"keys":["\u001b[1;3F"],"commands":["session.messages_last_user"]}, + {"keys":["\u001b[92;5u","y"],"commands":["messages.copy"]}, + {"keys":["\u001b[92;5u","u"],"commands":["session.undo"]}, + {"keys":["\u001b[92;5u","r"],"commands":["session.redo"]}, + {"keys":["\u001b[92;5u","\u001b[13u"],"commands":["prompt.queue"]}, + {"keys":["\u001b[92;5u","i"],"commands":["prompt.images.view"]}, + {"keys":["\u001b[118;5u"],"commands":["prompt.paste"]}, + {"keys":["\u0016"],"commands":["prompt.paste"]}, + {"keys":["\u001b[13u"],"commands":["input.submit"]}, + {"keys":["\r"],"commands":["input.submit"]}, + {"keys":["\u001b[13;3u"],"commands":["input.newline"]}, + {"keys":["\u001b\r"],"commands":["input.newline"]}, + {"keys":["\u001b[57414;3u"],"commands":[]}, + {"keys":["\u001b[13;2u"],"commands":["input.newline"]}, + {"keys":["\u001b[13;5u"],"commands":["input.newline"]}, + {"keys":["\u001b[106;5u"],"commands":["input.newline"]}, + {"keys":["\n"],"commands":[]}, + {"keys":["\u001b[57414u"],"commands":[]}, + {"keys":["\u001b[1;2D"],"commands":["input.select.left"]}, + {"keys":["\u001b[1;2C"],"commands":["input.select.right"]}, + {"keys":["\u001b[1;2A"],"commands":["input.select.up"]}, + {"keys":["\u001b[1;2B"],"commands":["input.select.down"]}, + {"keys":["\u001b[101;5u"],"commands":["input.line.end"]}, + {"keys":["\u0005"],"commands":["input.line.end"]}, + {"keys":["\u001b[97;6u"],"commands":["input.select.line.home"]}, + {"keys":["\u001b[101;6u"],"commands":["input.select.line.end"]}, + {"keys":["\u001b[97;3u"],"commands":["input.visual.line.home"]}, + {"keys":["\u001ba"],"commands":["input.visual.line.home"]}, + {"keys":["\u001b[1;9D"],"commands":[]}, + {"keys":["\u001b[101;3u"],"commands":["input.visual.line.end"]}, + {"keys":["\u001be"],"commands":["input.visual.line.end"]}, + {"keys":["\u001b[1;9C"],"commands":[]}, + {"keys":["\u001b[97;4u"],"commands":["input.select.visual.line.home"]}, + {"keys":["\u001bA"],"commands":["input.select.visual.line.home"]}, + {"keys":["\u001b[1;10D"],"commands":[]}, + {"keys":["\u001b[101;4u"],"commands":["input.select.visual.line.end"]}, + {"keys":["\u001bE"],"commands":["input.select.visual.line.end"]}, + {"keys":["\u001b[1;10C"],"commands":[]}, + {"keys":["\u001b[1;9A"],"commands":[]}, + {"keys":["\u001b[1;9B"],"commands":[]}, + {"keys":["\u001b[1;2H"],"commands":["input.select.buffer.home"]}, + {"keys":["\u001b[1;10A"],"commands":[]}, + {"keys":["\u001b[1;2F"],"commands":["input.select.buffer.end"]}, + {"keys":["\u001b[1;10B"],"commands":[]}, + {"keys":["\u001b[100;6u"],"commands":["input.delete.line"]}, + {"keys":["\u001b[107;5u"],"commands":["input.delete.to.line.end"]}, + {"keys":["\u000b"],"commands":["input.delete.to.line.end"]}, + {"keys":["\u001b[127;9u"],"commands":[]}, + {"keys":["\u001b[127u"],"commands":["input.backspace"]}, + {"keys":[""],"commands":["input.backspace"]}, + {"keys":["\u001b[127;2u"],"commands":["input.backspace"]}, + {"keys":["\u001b[3~"],"commands":["input.delete"]}, + {"keys":["\u001b[3;2~"],"commands":["input.delete"]}, + {"keys":["\u001b[45;5u"],"commands":["input.undo"]}, + {"keys":["\u001b[122;9u"],"commands":["input.undo"]}, + {"keys":["\u001b[46;5u"],"commands":["input.redo"]}, + {"keys":["\u001b[122;10u"],"commands":["input.redo"]}, + {"keys":["\u001b[102;3u"],"commands":["input.word.forward"]}, + {"keys":["\u001bf"],"commands":["input.word.forward"]}, + {"keys":["\u001b[1;3C"],"commands":["input.word.forward"]}, + {"keys":["\u001b[1;5C"],"commands":["input.word.forward"]}, + {"keys":["\u001b[98;3u"],"commands":["input.word.backward"]}, + {"keys":["\u001bb"],"commands":["input.word.backward"]}, + {"keys":["\u001b[1;3D"],"commands":["input.word.backward"]}, + {"keys":["\u001b[1;5D"],"commands":["input.word.backward"]}, + {"keys":["\u001b[102;4u"],"commands":["input.select.word.forward"]}, + {"keys":["\u001bF"],"commands":["input.word.forward"]}, + {"keys":["\u001b[1;4C"],"commands":["input.select.word.forward"]}, + {"keys":["\u001b[98;4u"],"commands":["input.select.word.backward"]}, + {"keys":["\u001bB"],"commands":["input.word.backward"]}, + {"keys":["\u001b[1;4D"],"commands":["input.select.word.backward"]}, + {"keys":["\u001b[100;3u"],"commands":["input.delete.word.forward"]}, + {"keys":["\u001bd"],"commands":["input.delete.word.forward"]}, + {"keys":["\u001b[3;3~"],"commands":["input.delete.word.forward"]}, + {"keys":["\u001b[3;5~"],"commands":["input.delete.word.forward"]}, + {"keys":["\u001b[127;5u"],"commands":["input.delete.word.backward"]}, + {"keys":["\u001b[127;3u"],"commands":["input.delete.word.backward"]}, + {"keys":["\u001b"],"commands":["input.delete.word.backward"]}, + {"keys":["\u001b[97;9u"],"commands":["input.select.all"]}, + {"keys":["\u001b[109;5u"],"commands":["dialog.move_session.move"]}, + {"keys":[" "],"commands":["dialog.mcp.toggle"]}, + {"keys":["\u001b[122;5u"],"commands":["terminal.suspend"]}, + {"keys":["\u001a"],"commands":["terminal.suspend"]}, + {"keys":["\u001b[107;7u"],"commands":["which-key.toggle"]}, + {"keys":["\u001b\u000b"],"commands":["which-key.toggle"]}, + {"keys":["\u001b[107;8u"],"commands":["which-key.layout.toggle"]}, + {"keys":["\u001b[112;8u"],"commands":["which-key.pending.toggle"]}, + {"keys":["\u001b[1;7D"],"commands":["which-key.group.previous"]}, + {"keys":["\u001b[91;7u"],"commands":["which-key.group.previous"]}, + {"keys":["\u001b[1;7C"],"commands":["which-key.group.next"]}, + {"keys":["\u001b[93;7u"],"commands":["which-key.group.next"]}, + {"keys":["\u001b[1;7A"],"commands":["which-key.scroll.up"]}, + {"keys":["\u001b[112;7u"],"commands":["which-key.scroll.up"]}, + {"keys":["\u001b\u0010"],"commands":["which-key.scroll.up"]}, + {"keys":["\u001b[1;7B"],"commands":["which-key.scroll.down"]}, + {"keys":["\u001b[110;7u"],"commands":["which-key.scroll.down"]}, + {"keys":["\u001b\u000e"],"commands":["which-key.scroll.down"]}, + {"keys":["\u001b[5;7~"],"commands":["which-key.page.up"]}, + {"keys":["\u001b[6;7~"],"commands":["which-key.page.down"]}, + {"keys":["\u001b[1;7H"],"commands":["which-key.home"]}, + {"keys":["\u001b[1;7F"],"commands":["which-key.end"]}, + {"keys":["\u001c","l"],"commands":["session.list"]}, + {"keys":["\u001c","m"],"commands":["model.list"]}, + {"keys":["\u001c","1"],"commands":["session.quick_switch.1"]}, + {"keys":["\u001c","w"],"commands":[]}, + {"keys":["\u001c","n"],"commands":[]}, + {"keys":["\u001c","\u001b[27u","l"],"commands":[]}, + {"keys":["\u0018","l"],"commands":[]}, + {"keys":["a","\u001c","l"],"commands":["session.list"]} + ] + }, + { + "name": "user cli.json with a focused textarea", + "keybinds": {"leader":"ctrl+\\","session.tab.next":"tab","session.tab.previous":"shift+tab","session.tab.close":"ctrl+w","session.new":"ctrl+n","agent.cycle":"none","input.delete.word.backward":"ctrl+backspace,alt+backspace"}, + "terminalSuspend": true, + "layout": "all", + "textarea": true, + "extra": [["\u001c","l"],["\u001c","m"],["\u001c","1"],["\u001c","w"],["\u001c","n"],["\u001c","\u001b[27u","l"],["\u0018","l"],["a","\u001c","l"],["\t"],["\u001b[Z"],["\u0017"],["\u000e"]], + "cases": [ + {"keys":["\u001b[99;5u"],"commands":["app.exit"]}, + {"keys":["\u0003"],"commands":["app.exit"]}, + {"keys":["\u001b[100;5u"],"commands":["app.exit"]}, + {"keys":["\u0004"],"commands":["app.exit"]}, + {"keys":["\u001b[92;5u","q"],"commands":["app.exit"]}, + {"keys":["\u001b[108;5u"],"commands":["app.clear"]}, + {"keys":["\f"],"commands":["app.clear"]}, + {"keys":["\u001b[112;5u"],"commands":["command.palette.show"]}, + {"keys":["\u0010"],"commands":["command.palette.show"]}, + {"keys":["\u001b[27u"],"commands":["diff.close"]}, + {"keys":["q"],"commands":["diff.close"]}, + {"keys":["j"],"commands":["diff.down"]}, + {"keys":["\u001b[B"],"commands":["diff.down"]}, + {"keys":["k"],"commands":["diff.up"]}, + {"keys":["\u001b[A"],"commands":["diff.up"]}, + {"keys":["\u001b[6~"],"commands":["diff.page.down"]}, + {"keys":["\u001b[102;5u"],"commands":["diff.page.down"]}, + {"keys":["\u0006"],"commands":["diff.page.down"]}, + {"keys":["\u001b[5~"],"commands":["diff.page.up"]}, + {"keys":["\u001b[98;5u"],"commands":["diff.page.up"]}, + {"keys":["\u0002"],"commands":["diff.page.up"]}, + {"keys":["\u001b[117;5u"],"commands":["diff.half_page.up"]}, + {"keys":["\u0015"],"commands":["diff.half_page.up"]}, + {"keys":["g","g"],"commands":["diff.first"]}, + {"keys":["\u001b[H"],"commands":["diff.first"]}, + {"keys":["\u001b[103;2u"],"commands":["diff.last"]}, + {"keys":["G"],"commands":["diff.last"]}, + {"keys":["\u001b[F"],"commands":["diff.last"]}, + {"keys":["]"],"commands":["diff.next_hunk"]}, + {"keys":["["],"commands":["diff.previous_hunk"]}, + {"keys":["n"],"commands":["diff.next_file"]}, + {"keys":["\u001b[1;3B"],"commands":["diff.next_file"]}, + {"keys":["p"],"commands":["diff.previous_file"]}, + {"keys":["\u001b[1;3A"],"commands":["diff.previous_file"]}, + {"keys":["b"],"commands":["diff.toggle_file_tree"]}, + {"keys":["s"],"commands":["diff.single_patch"]}, + {"keys":["d"],"commands":["diff.switch_source"]}, + {"keys":["v"],"commands":["diff.toggle_view"]}, + {"keys":["f"],"commands":["diff.toggle_fullscreen"]}, + {"keys":["m"],"commands":["diff.mark_reviewed"]}, + {"keys":["?"],"commands":["diff.help"]}, + {"keys":["\u001b[63;2u"],"commands":["diff.help"]}, + {"keys":["\u001b[47;2u"],"commands":["diff.help"]}, + {"keys":["\u001b[92;5u","e"],"commands":["prompt.editor"]}, + {"keys":["\u001b[92;5u","b"],"commands":["session.sidebar.toggle"]}, + {"keys":["\u001b[92;5u","\u001b[D"],"commands":["pane.focus.left"]}, + {"keys":["\u001b[92;5u","\u001b[C"],"commands":["pane.focus.right"]}, + {"keys":["\u001b[92;5u","\u001b[B"],"commands":["terminal.select"]}, + {"keys":["\u001b[92;5u","t"],"commands":["terminal.toggle"]}, + {"keys":["\u001b[92;5u","\u001b[A"],"commands":["terminal.close"]}, + {"keys":["\u001b[92;5u","s"],"commands":["opencode.status"]}, + {"keys":["\u001b[92;5u","x"],"commands":["session.export"]}, + {"keys":["\u001b[110;5u"],"commands":["session.new"]}, + {"keys":["\u000e"],"commands":["session.new"]}, + {"keys":["\u001b[92;5u","l"],"commands":["session.list"]}, + {"keys":["\u001b[111;5u"],"commands":["open.menu"]}, + {"keys":["\u000f"],"commands":["open.menu"]}, + {"keys":["\u001b[9u"],"commands":["session.tab.next"]}, + {"keys":["\t"],"commands":["session.tab.next"]}, + {"keys":["\u001b[9;2u"],"commands":["session.tab.previous"]}, + {"keys":["\u001b[Z"],"commands":["session.tab.previous"]}, + {"keys":["\u001b[105;5u"],"commands":["session.tab.history.forward"]}, + {"keys":["\u001b[1;4B"],"commands":["session.tab.next_unread"]}, + {"keys":["\u001b[1;4A"],"commands":["session.tab.previous_unread"]}, + {"keys":["\u001b[119;5u"],"commands":["session.tab.close"]}, + {"keys":["\u0017"],"commands":["session.tab.close"]}, + {"keys":["\u001b[116;6u"],"commands":["session.tab.reopen"]}, + {"keys":["\u001b[92;5u","g"],"commands":["session.timeline"]}, + {"keys":["\u001b[114;5u"],"commands":["session.rename"]}, + {"keys":["\u0012"],"commands":["session.rename"]}, + {"keys":["\u001b[92;5u","c"],"commands":["session.compact"]}, + {"keys":["\u001b[C"],"commands":["session.child.next"]}, + {"keys":["\u001b[D"],"commands":["session.child.previous"]}, + {"keys":["\u001b[92;5u","1"],"commands":["session.quick_switch.1"]}, + {"keys":["\u001b[92;5u","2"],"commands":["session.quick_switch.2"]}, + {"keys":["\u001b[92;5u","3"],"commands":["session.quick_switch.3"]}, + {"keys":["\u001b[92;5u","4"],"commands":["session.quick_switch.4"]}, + {"keys":["\u001b[92;5u","5"],"commands":["session.quick_switch.5"]}, + {"keys":["\u001b[92;5u","6"],"commands":["session.quick_switch.6"]}, + {"keys":["\u001b[92;5u","7"],"commands":["session.quick_switch.7"]}, + {"keys":["\u001b[92;5u","8"],"commands":["session.quick_switch.8"]}, + {"keys":["\u001b[92;5u","9"],"commands":["session.quick_switch.9"]}, + {"keys":["\u001b[49;5u"],"commands":["session.tab.select.1"]}, + {"keys":["\u001b[50;5u"],"commands":["session.tab.select.2"]}, + {"keys":["\u001b[51;5u"],"commands":["session.tab.select.3"]}, + {"keys":["\u001b[52;5u"],"commands":["session.tab.select.4"]}, + {"keys":["\u001b[53;5u"],"commands":["session.tab.select.5"]}, + {"keys":["\u001b[54;5u"],"commands":["session.tab.select.6"]}, + {"keys":["\u001b[55;5u"],"commands":["session.tab.select.7"]}, + {"keys":["\u001b[56;5u"],"commands":["session.tab.select.8"]}, + {"keys":["\u001b[57;5u"],"commands":["session.tab.select.9"]}, + {"keys":["\u001b[92;5u","0"],"commands":["session.tab.select.10"]}, + {"keys":["\u001b[48;5u"],"commands":["session.tab.select.10"]}, + {"keys":["\u001b[97;5u"],"commands":["model.dialog.provider"]}, + {"keys":["\u0001"],"commands":["model.dialog.provider"]}, + {"keys":["\u001b[92;5u","m"],"commands":["model.list"]}, + {"keys":["\u001bOQ"],"commands":["model.cycle_recent"]}, + {"keys":["\u001b[1;2Q"],"commands":["model.cycle_recent_reverse"]}, + {"keys":["\u001b[92;5u","a"],"commands":["agent.list"]}, + {"keys":["\u001b[116;5u"],"commands":["variant.cycle"]}, + {"keys":["\u0014"],"commands":["variant.cycle"]}, + {"keys":["\u001b[98;7u"],"commands":["session.page.up"]}, + {"keys":["\u001b\u0002"],"commands":["session.page.up"]}, + {"keys":["\u001b[102;7u"],"commands":["session.page.down"]}, + {"keys":["\u001b\u0006"],"commands":["session.page.down"]}, + {"keys":["\u001b[121;7u"],"commands":["session.line.up"]}, + {"keys":["\u001b\u0019"],"commands":["session.line.up"]}, + {"keys":["\u001b[101;7u"],"commands":["session.line.down"]}, + {"keys":["\u001b\u0005"],"commands":["session.line.down"]}, + {"keys":["\u001b[117;7u"],"commands":["session.half.page.up"]}, + {"keys":["\u001b\u0015"],"commands":["session.half.page.up"]}, + {"keys":["\u001b[100;7u"],"commands":["session.half.page.down"]}, + {"keys":["\u001b\u0004"],"commands":["session.half.page.down"]}, + {"keys":["\u001b[103;5u"],"commands":["session.first"]}, + {"keys":["\u0007"],"commands":["session.first"]}, + {"keys":["\u001b[1;3H"],"commands":["session.first"]}, + {"keys":["\u001b[103;7u"],"commands":["session.last"]}, + {"keys":["\u001b\u0007"],"commands":["session.last"]}, + {"keys":["\u001b[1;3F"],"commands":["session.messages_last_user"]}, + {"keys":["\u001b[92;5u","y"],"commands":["messages.copy"]}, + {"keys":["\u001b[92;5u","u"],"commands":["session.undo"]}, + {"keys":["\u001b[92;5u","r"],"commands":["session.redo"]}, + {"keys":["\u001b[92;5u","\u001b[13u"],"commands":["prompt.queue"]}, + {"keys":["\u001b[92;5u","i"],"commands":["prompt.images.view"]}, + {"keys":["\u001b[118;5u"],"commands":["prompt.paste"]}, + {"keys":["\u0016"],"commands":["prompt.paste"]}, + {"keys":["\u001b[13u"],"commands":["input.submit"]}, + {"keys":["\r"],"commands":["input.submit"]}, + {"keys":["\u001b[13;3u"],"commands":["input.newline"]}, + {"keys":["\u001b\r"],"commands":["input.newline"]}, + {"keys":["\u001b[57414;3u"],"commands":["input.submit"]}, + {"keys":["\u001b[13;2u"],"commands":["input.newline"]}, + {"keys":["\u001b[13;5u"],"commands":["input.newline"]}, + {"keys":["\u001b[106;5u"],"commands":["input.newline"]}, + {"keys":["\n"],"commands":["input.newline"]}, + {"keys":["\u001b[57414u"],"commands":["input.newline"]}, + {"keys":["\u001b[1;2D"],"commands":["input.select.left"]}, + {"keys":["\u001b[1;2C"],"commands":["input.select.right"]}, + {"keys":["\u001b[1;2A"],"commands":["input.select.up"]}, + {"keys":["\u001b[1;2B"],"commands":["input.select.down"]}, + {"keys":["\u001b[101;5u"],"commands":["input.line.end"]}, + {"keys":["\u0005"],"commands":["input.line.end"]}, + {"keys":["\u001b[97;6u"],"commands":["input.select.line.home"]}, + {"keys":["\u001b[101;6u"],"commands":["input.select.line.end"]}, + {"keys":["\u001b[97;3u"],"commands":["input.visual.line.home"]}, + {"keys":["\u001ba"],"commands":["input.visual.line.home"]}, + {"keys":["\u001b[1;9D"],"commands":["input.visual.line.home"]}, + {"keys":["\u001b[101;3u"],"commands":["input.visual.line.end"]}, + {"keys":["\u001be"],"commands":["input.visual.line.end"]}, + {"keys":["\u001b[1;9C"],"commands":["input.visual.line.end"]}, + {"keys":["\u001b[97;4u"],"commands":["input.select.visual.line.home"]}, + {"keys":["\u001bA"],"commands":["input.select.visual.line.home"]}, + {"keys":["\u001b[1;10D"],"commands":["input.select.visual.line.home"]}, + {"keys":["\u001b[101;4u"],"commands":["input.select.visual.line.end"]}, + {"keys":["\u001bE"],"commands":["input.select.visual.line.end"]}, + {"keys":["\u001b[1;10C"],"commands":["input.select.visual.line.end"]}, + {"keys":["\u001b[1;9A"],"commands":["input.buffer.home"]}, + {"keys":["\u001b[1;9B"],"commands":["input.buffer.end"]}, + {"keys":["\u001b[1;2H"],"commands":["input.select.buffer.home"]}, + {"keys":["\u001b[1;10A"],"commands":["input.select.buffer.home"]}, + {"keys":["\u001b[1;2F"],"commands":["input.select.buffer.end"]}, + {"keys":["\u001b[1;10B"],"commands":["input.select.buffer.end"]}, + {"keys":["\u001b[100;6u"],"commands":["input.delete.line"]}, + {"keys":["\u001b[107;5u"],"commands":["input.delete.to.line.end"]}, + {"keys":["\u000b"],"commands":["input.delete.to.line.end"]}, + {"keys":["\u001b[127;9u"],"commands":["input.delete.to.line.start"]}, + {"keys":["\u001b[127u"],"commands":["input.backspace"]}, + {"keys":[""],"commands":["input.backspace"]}, + {"keys":["\u001b[127;2u"],"commands":["input.backspace"]}, + {"keys":["\u001b[3~"],"commands":["input.delete"]}, + {"keys":["\u001b[3;2~"],"commands":["input.delete"]}, + {"keys":["\u001b[45;5u"],"commands":["input.undo"]}, + {"keys":["\u001b[122;9u"],"commands":["input.undo"]}, + {"keys":["\u001b[46;5u"],"commands":["input.redo"]}, + {"keys":["\u001b[122;10u"],"commands":["input.redo"]}, + {"keys":["\u001b[102;3u"],"commands":["input.word.forward"]}, + {"keys":["\u001bf"],"commands":["input.word.forward"]}, + {"keys":["\u001b[1;3C"],"commands":["input.word.forward"]}, + {"keys":["\u001b[1;5C"],"commands":["input.word.forward"]}, + {"keys":["\u001b[98;3u"],"commands":["input.word.backward"]}, + {"keys":["\u001bb"],"commands":["input.word.backward"]}, + {"keys":["\u001b[1;3D"],"commands":["input.word.backward"]}, + {"keys":["\u001b[1;5D"],"commands":["input.word.backward"]}, + {"keys":["\u001b[102;4u"],"commands":["input.select.word.forward"]}, + {"keys":["\u001bF"],"commands":["input.word.forward"]}, + {"keys":["\u001b[1;4C"],"commands":["input.select.word.forward"]}, + {"keys":["\u001b[98;4u"],"commands":["input.select.word.backward"]}, + {"keys":["\u001bB"],"commands":["input.word.backward"]}, + {"keys":["\u001b[1;4D"],"commands":["input.select.word.backward"]}, + {"keys":["\u001b[100;3u"],"commands":["input.delete.word.forward"]}, + {"keys":["\u001bd"],"commands":["input.delete.word.forward"]}, + {"keys":["\u001b[3;3~"],"commands":["input.delete.word.forward"]}, + {"keys":["\u001b[3;5~"],"commands":["input.delete.word.forward"]}, + {"keys":["\u001b[127;5u"],"commands":["input.delete.word.backward"]}, + {"keys":["\u001b[127;3u"],"commands":["input.delete.word.backward"]}, + {"keys":["\u001b"],"commands":["input.delete.word.backward"]}, + {"keys":["\u001b[97;9u"],"commands":["input.select.all"]}, + {"keys":["\u001b[109;5u"],"commands":["dialog.move_session.move"]}, + {"keys":[" "],"commands":["dialog.mcp.toggle"]}, + {"keys":["\u001b[122;5u"],"commands":["terminal.suspend"]}, + {"keys":["\u001a"],"commands":["terminal.suspend"]}, + {"keys":["\u001b[107;7u"],"commands":["which-key.toggle"]}, + {"keys":["\u001b\u000b"],"commands":["which-key.toggle"]}, + {"keys":["\u001b[107;8u"],"commands":["which-key.layout.toggle"]}, + {"keys":["\u001b[112;8u"],"commands":["which-key.pending.toggle"]}, + {"keys":["\u001b[1;7D"],"commands":["which-key.group.previous"]}, + {"keys":["\u001b[91;7u"],"commands":["which-key.group.previous"]}, + {"keys":["\u001b[1;7C"],"commands":["which-key.group.next"]}, + {"keys":["\u001b[93;7u"],"commands":["which-key.group.next"]}, + {"keys":["\u001b[1;7A"],"commands":["which-key.scroll.up"]}, + {"keys":["\u001b[112;7u"],"commands":["which-key.scroll.up"]}, + {"keys":["\u001b\u0010"],"commands":["which-key.scroll.up"]}, + {"keys":["\u001b[1;7B"],"commands":["which-key.scroll.down"]}, + {"keys":["\u001b[110;7u"],"commands":["which-key.scroll.down"]}, + {"keys":["\u001b\u000e"],"commands":["which-key.scroll.down"]}, + {"keys":["\u001b[5;7~"],"commands":["which-key.page.up"]}, + {"keys":["\u001b[6;7~"],"commands":["which-key.page.down"]}, + {"keys":["\u001b[1;7H"],"commands":["which-key.home"]}, + {"keys":["\u001b[1;7F"],"commands":["which-key.end"]}, + {"keys":["\u001c","l"],"commands":["session.list"]}, + {"keys":["\u001c","m"],"commands":["model.list"]}, + {"keys":["\u001c","1"],"commands":["session.quick_switch.1"]}, + {"keys":["\u001c","w"],"commands":[]}, + {"keys":["\u001c","n"],"commands":[]}, + {"keys":["\u001c","\u001b[27u","l"],"commands":[]}, + {"keys":["\u0018","l"],"commands":[]}, + {"keys":["a","\u001c","l"],"commands":["session.list"]} + ] + }, + { + "name": "custom leader", + "keybinds": {"leader":"alt+x"}, + "terminalSuspend": true, + "leaderTimeout": 50, + "layout": "all", + "textarea": false, + "names": ["session.new","app.exit","session.list","session.tab.select.1","prompt.queue"], + "extra": [["\u001bx","n"],["\u001bx",100,"n"],["\u001bx",10,"n"],["\u0018","n"]], + "cases": [ + {"keys":["\u001b[120;3u","n"],"commands":["session.new"]}, + {"keys":["\u001bx","n"],"commands":["session.new"]}, + {"keys":["\u001b[99;5u"],"commands":["app.exit"]}, + {"keys":["\u0003"],"commands":["app.exit"]}, + {"keys":["\u001b[100;5u"],"commands":["app.exit"]}, + {"keys":["\u0004"],"commands":["app.exit"]}, + {"keys":["\u001b[120;3u","q"],"commands":["app.exit"]}, + {"keys":["\u001bx","q"],"commands":["app.exit"]}, + {"keys":["\u001b[120;3u","l"],"commands":["session.list"]}, + {"keys":["\u001bx","l"],"commands":["session.list"]}, + {"keys":["\u001b[120;3u","1"],"commands":["session.quick_switch.1"]}, + {"keys":["\u001bx","1"],"commands":["session.quick_switch.1"]}, + {"keys":["\u001b[49;5u"],"commands":["session.tab.select.1"]}, + {"keys":["\u001b[120;3u","\u001b[13u"],"commands":["prompt.queue"]}, + {"keys":["\u001bx","\r"],"commands":["prompt.queue"]}, + {"keys":["\u001bx",100,"n"],"commands":["diff.next_file"]}, + {"keys":["\u001bx",10,"n"],"commands":["session.new"]}, + {"keys":["\u0018","n"],"commands":["diff.next_file"]} + ] + }, + { + "name": "leader none", + "keybinds": {"leader":"none"}, + "terminalSuspend": true, + "layout": "all", + "textarea": false, + "names": ["session.new","app.exit","session.list"], + "extra": [["\u0018","n"],["\u0018","q"]], + "cases": [ + {"keys":["\u001b[99;5u"],"commands":["app.exit"]}, + {"keys":["\u0003"],"commands":["app.exit"]}, + {"keys":["\u001b[100;5u"],"commands":["app.exit"]}, + {"keys":["\u0004"],"commands":["app.exit"]}, + {"keys":["\u0018","n"],"commands":["diff.next_file"]}, + {"keys":["\u0018","q"],"commands":["diff.close"]} + ] + }, + { + "name": "no terminal suspend", + "keybinds": {}, + "terminalSuspend": false, + "layout": "all", + "textarea": true, + "names": ["terminal.suspend","input.undo","input.redo"], + "extra": [["\u001a"],["\u001b[122;5u"]], + "cases": [ + {"keys":["\u001b[122;5u"],"commands":["input.undo"]}, + {"keys":["\u001a"],"commands":["input.undo"]}, + {"keys":["\u001b[45;5u"],"commands":["input.undo"]}, + {"keys":["\u001b[122;9u"],"commands":["input.undo"]}, + {"keys":["\u001b[46;5u"],"commands":["input.redo"]}, + {"keys":["\u001b[122;10u"],"commands":["input.redo"]} + ] + }, + { + "name": "no terminal suspend with input.undo set", + "keybinds": {"input.undo":"ctrl+y","terminal.suspend":"ctrl+t"}, + "terminalSuspend": false, + "layout": "all", + "textarea": true, + "names": ["terminal.suspend","input.undo"], + "extra": [["\u001a"],["\u001b[122;5u"],["\u001b[121;5u"]], + "cases": [ + {"keys":["\u001b[121;5u"],"commands":["input.undo"]}, + {"keys":["\u0019"],"commands":["input.undo"]}, + {"keys":["\u001b[45;5u"],"commands":["input.undo"]}, + {"keys":["\u001b[122;9u"],"commands":["input.undo"]}, + {"keys":["\u001a"],"commands":[]}, + {"keys":["\u001b[122;5u"],"commands":[]} + ] + } + ], + "errors": [ + {"keybinds":{"nope":"x"},"error":"Unrecognized keybind: nope"}, + {"keybinds":{"a.b":"x","session.new":"ctrl+n","c":"y"},"error":"Unrecognized keybinds: a.b, c"}, + {"keybinds":{"session.new":3},"error":"Expected TuiKeybind.BindingValue"}, + {"keybinds":{"session.new":[false]},"error":"Expected string | object\n at [0]"}, + {"keybinds":{"session.new":{"ctrl":true}},"error":"Missing key\n at [\"name\"]\nMissing key\n at [\"key\"]"} + ] +} diff --git a/packages/cli-rs/parity/fixtures/U.3/alert.json b/packages/cli-rs/parity/fixtures/U.3/alert.json new file mode 100644 index 000000000000..eba46aae805b --- /dev/null +++ b/packages/cli-rs/parity/fixtures/U.3/alert.json @@ -0,0 +1,14 @@ +{"width":60,"height":12,"styles":["#ffffffff #030303ff 0","#ffffffff #141414ff 0","#808080ff #141414ff 0","#ffffffff #202020ff 0","#808080ff #202020ff 0"],"lines":[ +[" ",[[0,60]]], +[" ",[[0,60]]], +[" ",[[0,60]]], +[" ",[[0,1],[1,58],[0,1]]], +[" Heads up esc ",[[0,1],[1,52],[2,3],[1,3],[0,1]]], +[" ",[[0,1],[1,58],[0,1]]], +[" The session was compacted. ",[[0,1],[1,3],[2,26],[1,29],[0,1]]], +[" ",[[0,1],[1,58],[0,1]]], +[" ",[[0,1],[3,58],[0,1]]], +[" ok enter ",[[0,1],[3,49],[4,6],[3,3],[0,1]]], +[" ",[[0,1],[3,58],[0,1]]], +[" ",[[0,60]]] +]} diff --git a/packages/cli-rs/parity/fixtures/U.3/confirm-left.json b/packages/cli-rs/parity/fixtures/U.3/confirm-left.json new file mode 100644 index 000000000000..43ff057a6a09 --- /dev/null +++ b/packages/cli-rs/parity/fixtures/U.3/confirm-left.json @@ -0,0 +1,18 @@ +{"width":70,"height":16,"styles":["#ffffffff #030303ff 0","#ffffffff #141414ff 0","#808080ff #141414ff 0","#ffffffff #23344bff 0"],"lines":[ +[" ",[[0,70]]], +[" ",[[0,70]]], +[" ",[[0,70]]], +[" ",[[0,70]]], +[" ",[[0,5],[1,60],[0,5]]], +[" Delete session esc ",[[0,5],[1,54],[2,3],[1,3],[0,5]]], +[" ",[[0,5],[1,60],[0,5]]], +[" This permanently deletes the session. ",[[0,5],[1,3],[2,37],[1,20],[0,5]]], +[" ",[[0,5],[1,60],[0,5]]], +[" Cancel Delete ",[[0,5],[1,41],[3,8],[1,1],[2,6],[1,4],[0,5]]], +[" ",[[0,5],[1,60],[0,5]]], +[" ",[[0,70]]], +[" ",[[0,70]]], +[" ",[[0,70]]], +[" ",[[0,70]]], +[" ",[[0,70]]] +]} diff --git a/packages/cli-rs/parity/fixtures/U.3/confirm.json b/packages/cli-rs/parity/fixtures/U.3/confirm.json new file mode 100644 index 000000000000..b84e9fcb9e78 --- /dev/null +++ b/packages/cli-rs/parity/fixtures/U.3/confirm.json @@ -0,0 +1,18 @@ +{"width":70,"height":16,"styles":["#ffffffff #030303ff 0","#ffffffff #141414ff 0","#808080ff #141414ff 0","#ffffffff #23344bff 0"],"lines":[ +[" ",[[0,70]]], +[" ",[[0,70]]], +[" ",[[0,70]]], +[" ",[[0,70]]], +[" ",[[0,5],[1,60],[0,5]]], +[" Delete session esc ",[[0,5],[1,54],[2,3],[1,3],[0,5]]], +[" ",[[0,5],[1,60],[0,5]]], +[" This permanently deletes the session. ",[[0,5],[1,3],[2,37],[1,20],[0,5]]], +[" ",[[0,5],[1,60],[0,5]]], +[" Cancel Delete ",[[0,5],[1,42],[2,6],[1,1],[3,8],[1,3],[0,5]]], +[" ",[[0,5],[1,60],[0,5]]], +[" ",[[0,70]]], +[" ",[[0,70]]], +[" ",[[0,70]]], +[" ",[[0,70]]], +[" ",[[0,70]]] +]} diff --git a/packages/cli-rs/parity/fixtures/U.3/fuzzy.json b/packages/cli-rs/parity/fixtures/U.3/fuzzy.json new file mode 100644 index 000000000000..b64db5cd5533 --- /dev/null +++ b/packages/cli-rs/parity/fixtures/U.3/fuzzy.json @@ -0,0 +1,302 @@ +{ + "options": [ + {"title":"Leader key for keybind combinations","category":"leader","searchText":"leader"}, + {"title":"Exit the application","category":"app","searchText":"app.exit"}, + {"title":"Clear the screen in mini","category":"app","searchText":"app.clear"}, + {"title":"Toggle debug panel","category":"app","searchText":"app.debug"}, + {"title":"Toggle console","category":"app","searchText":"app.console"}, + {"title":"Open scrap screen","category":"app","searchText":"app.scrap"}, + {"title":"Toggle animations","category":"app","searchText":"app.toggle.animations"}, + {"title":"Toggle file context","category":"app","searchText":"app.toggle.file_context"}, + {"title":"Toggle diff wrapping","category":"app","searchText":"app.toggle.diffwrap"}, + {"title":"Toggle paste summary","category":"app","searchText":"app.toggle.paste_summary"}, + {"title":"List available commands","category":"command","searchText":"command.palette.show"}, + {"title":"Open help dialog","category":"help","searchText":"help.show"}, + {"title":"Open documentation","category":"docs","searchText":"docs.open"}, + {"title":"Open settings","category":"opencode","searchText":"opencode.settings"}, + {"title":"Pair device","category":"server","searchText":"server.pair"}, + {"title":"Restart service","category":"service","searchText":"service.restart"}, + {"title":"Reload configuration","category":"location","searchText":"location.reload"}, + {"title":"Open diff viewer","category":"diff","searchText":"diff.open"}, + {"title":"Close diff viewer","category":"diff","searchText":"diff.close"}, + {"title":"Move diff viewer down","category":"diff","searchText":"diff.down"}, + {"title":"Move diff viewer up","category":"diff","searchText":"diff.up"}, + {"title":"Page diff viewer down","category":"diff","searchText":"diff.page.down"}, + {"title":"Page diff viewer up","category":"diff","searchText":"diff.page.up"}, + {"title":"Scroll diff viewer down half a page","category":"diff","searchText":"diff.half_page.down"}, + {"title":"Scroll diff viewer up half a page","category":"diff","searchText":"diff.half_page.up"}, + {"title":"Go to the start of the diff","category":"diff","searchText":"diff.first"}, + {"title":"Go to the end of the diff","category":"diff","searchText":"diff.last"}, + {"title":"Deprecated: file tree is mouse-controlled","category":"diff","searchText":"diff.toggle"}, + {"title":"Deprecated: file tree is mouse-controlled","category":"diff","searchText":"diff.expand"}, + {"title":"Deprecated: file tree is mouse-controlled","category":"diff","searchText":"diff.expand_all"}, + {"title":"Deprecated: file tree is mouse-controlled","category":"diff","searchText":"diff.collapse"}, + {"title":"Deprecated: keyboard navigation always controls the diff","category":"diff","searchText":"diff.switch_focus"}, + {"title":"Jump to next diff hunk","category":"diff","searchText":"diff.next_hunk"}, + {"title":"Jump to previous diff hunk","category":"diff","searchText":"diff.previous_hunk"}, + {"title":"Jump to next diff file","category":"diff","searchText":"diff.next_file"}, + {"title":"Jump to previous diff file","category":"diff","searchText":"diff.previous_file"}, + {"title":"Toggle diff viewer file tree","category":"diff","searchText":"diff.toggle_file_tree"}, + {"title":"Toggle single patch view","category":"diff","searchText":"diff.single_patch"}, + {"title":"Switch diff viewer source","category":"diff","searchText":"diff.switch_source"}, + {"title":"Toggle diff viewer split or unified view","category":"diff","searchText":"diff.toggle_view"}, + {"title":"Toggle diff viewer full screen","category":"diff","searchText":"diff.toggle_fullscreen"}, + {"title":"Toggle selected diff file reviewed","category":"diff","searchText":"diff.mark_reviewed"}, + {"title":"Show more diff viewer shortcuts","category":"diff","searchText":"diff.help"}, + {"title":"Open external editor","category":"prompt","searchText":"prompt.editor"}, + {"title":"List available themes","category":"theme","searchText":"theme.switch"}, + {"title":"Switch between light and dark theme mode","category":"theme","searchText":"theme.switch_mode"}, + {"title":"Lock or unlock theme mode","category":"theme","searchText":"theme.mode.lock"}, + {"title":"Toggle sidebar","category":"session","searchText":"session.sidebar.toggle"}, + {"title":"Focus session pane","category":"pane","searchText":"pane.focus.left"}, + {"title":"Focus right pane","category":"pane","searchText":"pane.focus.right"}, + {"title":"Select terminal","category":"terminal","searchText":"terminal.select"}, + {"title":"Toggle terminal pane","category":"terminal","searchText":"terminal.toggle"}, + {"title":"Close terminal pane","category":"terminal","searchText":"terminal.close"}, + {"title":"Toggle session scrollbar","category":"session","searchText":"session.toggle.scrollbar"}, + {"title":"View status","category":"opencode","searchText":"opencode.status"}, + {"title":"View debug info","category":"opencode","searchText":"opencode.debug"}, + {"title":"Export session to editor","category":"session","searchText":"session.export"}, + {"title":"Copy session transcript","category":"session","searchText":"session.copy"}, + {"title":"Copy session ID","category":"session","searchText":"session.copy.id"}, + {"title":"Manage workspaces","category":"session","searchText":"session.move"}, + {"title":"Create a new session","category":"session","searchText":"session.new"}, + {"title":"List all sessions","category":"session","searchText":"session.list"}, + {"title":"Open recent sessions and projects","category":"open","searchText":"open.menu"}, + {"title":"Switch to next open session tab","category":"session","searchText":"session.tab.next"}, + {"title":"Switch to previous open session tab","category":"session","searchText":"session.tab.previous"}, + {"title":"Go back in session tab history","category":"session","searchText":"session.tab.history.back"}, + {"title":"Go forward in session tab history","category":"session","searchText":"session.tab.history.forward"}, + {"title":"Switch to next unread session tab","category":"session","searchText":"session.tab.next_unread"}, + {"title":"Switch to previous unread session tab","category":"session","searchText":"session.tab.previous_unread"}, + {"title":"Close current session tab","category":"session","searchText":"session.tab.close"}, + {"title":"Reopen last closed session tab","category":"session","searchText":"session.tab.reopen"}, + {"title":"Show session timeline","category":"session","searchText":"session.timeline"}, + {"title":"Fork session from message","category":"session","searchText":"session.fork"}, + {"title":"Rename session","category":"session","searchText":"session.rename"}, + {"title":"Delete session","category":"session","searchText":"session.delete"}, + {"title":"Deprecated: session sharing was removed","category":"session","searchText":"session.share"}, + {"title":"Deprecated: session sharing was removed","category":"session","searchText":"session.unshare"}, + {"title":"Interrupt current session","category":"session","searchText":"session.interrupt"}, + {"title":"Background blocking session tools","category":"session","searchText":"session.background"}, + {"title":"Compact the session","category":"session","searchText":"session.compact"}, + {"title":"Ask a side question","category":"session","searchText":"session.aside"}, + {"title":"Change working directory","category":"session","searchText":"session.cd"}, + {"title":"Manage queued prompts","category":"session","searchText":"session.queued_prompts"}, + {"title":"Undo queued prompt","category":"queued_prompt","searchText":"queued_prompt.undo"}, + {"title":"Delete queued prompt","category":"queued_prompt","searchText":"queued_prompt.delete"}, + {"title":"Toggle related tool call grouping","category":"session","searchText":"session.toggle.exploration_grouping"}, + {"title":"Cycle transcript verbosity","category":"session","searchText":"session.verbosity.cycle"}, + {"title":"Toggle subagent picker","category":"session","searchText":"session.child.first"}, + {"title":"Go to next child session","category":"session","searchText":"session.child.next"}, + {"title":"Go to previous child session","category":"session","searchText":"session.child.previous"}, + {"title":"Go to parent session","category":"session","searchText":"session.parent"}, + {"title":"Pin or unpin session in the session list","category":"session","searchText":"session.pin.toggle"}, + {"title":"Switch to session in quick slot 1","category":"session","searchText":"session.quick_switch.1"}, + {"title":"Switch to session in quick slot 2","category":"session","searchText":"session.quick_switch.2"}, + {"title":"Switch to session in quick slot 3","category":"session","searchText":"session.quick_switch.3"}, + {"title":"Switch to session in quick slot 4","category":"session","searchText":"session.quick_switch.4"}, + {"title":"Switch to session in quick slot 5","category":"session","searchText":"session.quick_switch.5"}, + {"title":"Switch to session in quick slot 6","category":"session","searchText":"session.quick_switch.6"}, + {"title":"Switch to session in quick slot 7","category":"session","searchText":"session.quick_switch.7"}, + {"title":"Switch to session in quick slot 8","category":"session","searchText":"session.quick_switch.8"}, + {"title":"Switch to session in quick slot 9","category":"session","searchText":"session.quick_switch.9"}, + {"title":"Switch to session tab 1","category":"session","searchText":"session.tab.select.1"}, + {"title":"Switch to session tab 2","category":"session","searchText":"session.tab.select.2"}, + {"title":"Switch to session tab 3","category":"session","searchText":"session.tab.select.3"}, + {"title":"Switch to session tab 4","category":"session","searchText":"session.tab.select.4"}, + {"title":"Switch to session tab 5","category":"session","searchText":"session.tab.select.5"}, + {"title":"Switch to session tab 6","category":"session","searchText":"session.tab.select.6"}, + {"title":"Switch to session tab 7","category":"session","searchText":"session.tab.select.7"}, + {"title":"Switch to session tab 8","category":"session","searchText":"session.tab.select.8"}, + {"title":"Switch to session tab 9","category":"session","searchText":"session.tab.select.9"}, + {"title":"Switch to session tab 10","category":"session","searchText":"session.tab.select.10"}, + {"title":"Delete stash entry","category":"stash","searchText":"stash.delete"}, + {"title":"Open provider list from model dialog","category":"model","searchText":"model.dialog.provider"}, + {"title":"Toggle model favorite status","category":"model","searchText":"model.dialog.favorite"}, + {"title":"Open usage limits from model dialog","category":"model","searchText":"model.dialog.usage"}, + {"title":"List available models","category":"model","searchText":"model.list"}, + {"title":"Next recently used model","category":"model","searchText":"model.cycle_recent"}, + {"title":"Previous recently used model","category":"model","searchText":"model.cycle_recent_reverse"}, + {"title":"Next favorite model","category":"model","searchText":"model.cycle_favorite"}, + {"title":"Previous favorite model","category":"model","searchText":"model.cycle_favorite_reverse"}, + {"title":"List MCP servers","category":"mcp","searchText":"mcp.list"}, + {"title":"View usage limits","category":"usage","searchText":"usage.show"}, + {"title":"Connect integration","category":"provider","searchText":"provider.connect"}, + {"title":"List agents","category":"agent","searchText":"agent.list"}, + {"title":"Next agent","category":"agent","searchText":"agent.cycle"}, + {"title":"Previous agent","category":"agent","searchText":"agent.cycle.reverse"}, + {"title":"Cycle model variants","category":"variant","searchText":"variant.cycle"}, + {"title":"List model variants","category":"variant","searchText":"variant.list"}, + {"title":"Scroll messages up by one page","category":"session","searchText":"session.page.up"}, + {"title":"Scroll messages down by one page","category":"session","searchText":"session.page.down"}, + {"title":"Scroll messages up by one line","category":"session","searchText":"session.line.up"}, + {"title":"Scroll messages down by one line","category":"session","searchText":"session.line.down"}, + {"title":"Scroll messages up by half page","category":"session","searchText":"session.half.page.up"}, + {"title":"Scroll messages down by half page","category":"session","searchText":"session.half.page.down"}, + {"title":"Navigate to first message","category":"session","searchText":"session.first"}, + {"title":"Navigate to last message","category":"session","searchText":"session.last"}, + {"title":"Navigate to next message","category":"session","searchText":"session.message.next"}, + {"title":"Navigate to previous message","category":"session","searchText":"session.message.previous"}, + {"title":"Navigate to next user message","category":"session","searchText":"session.message.user.next"}, + {"title":"Navigate to previous user message","category":"session","searchText":"session.message.user.previous"}, + {"title":"Navigate to last user message","category":"session","searchText":"session.messages_last_user"}, + {"title":"Copy message","category":"messages","searchText":"messages.copy"}, + {"title":"Undo message","category":"session","searchText":"session.undo"}, + {"title":"Redo message","category":"session","searchText":"session.redo"}, + {"title":"Toggle thinking blocks visibility","category":"session","searchText":"session.toggle.thinking"}, + {"title":"Submit prompt","category":"prompt","searchText":"prompt.submit"}, + {"title":"Queue prompt","category":"prompt","searchText":"prompt.queue"}, + {"title":"Clear editor context","category":"prompt","searchText":"prompt.editor_context.clear"}, + {"title":"View image attachments","category":"prompt","searchText":"prompt.images.view"}, + {"title":"Open skill selector","category":"prompt","searchText":"prompt.skills"}, + {"title":"Stash prompt","category":"prompt","searchText":"prompt.stash"}, + {"title":"Pop stashed prompt","category":"prompt","searchText":"prompt.stash.pop"}, + {"title":"List stashed prompts","category":"prompt","searchText":"prompt.stash.list"}, + {"title":"Clear input field","category":"prompt","searchText":"prompt.clear"}, + {"title":"Paste from clipboard","category":"prompt","searchText":"prompt.paste"}, + {"title":"Submit input","category":"input","searchText":"input.submit"}, + {"title":"Insert newline in input","category":"input","searchText":"input.newline"}, + {"title":"Move cursor left in input","category":"input","searchText":"input.move.left"}, + {"title":"Move cursor right in input","category":"input","searchText":"input.move.right"}, + {"title":"Move cursor up in input","category":"input","searchText":"input.move.up"}, + {"title":"Move cursor down in input","category":"input","searchText":"input.move.down"}, + {"title":"Select left in input","category":"input","searchText":"input.select.left"}, + {"title":"Select right in input","category":"input","searchText":"input.select.right"}, + {"title":"Select up in input","category":"input","searchText":"input.select.up"}, + {"title":"Select down in input","category":"input","searchText":"input.select.down"}, + {"title":"Move to start of line in input","category":"input","searchText":"input.line.home"}, + {"title":"Move to end of line in input","category":"input","searchText":"input.line.end"}, + {"title":"Select to start of line in input","category":"input","searchText":"input.select.line.home"}, + {"title":"Select to end of line in input","category":"input","searchText":"input.select.line.end"}, + {"title":"Move to start of visual line in input","category":"input","searchText":"input.visual.line.home"}, + {"title":"Move to end of visual line in input","category":"input","searchText":"input.visual.line.end"}, + {"title":"Select to start of visual line in input","category":"input","searchText":"input.select.visual.line.home"}, + {"title":"Select to end of visual line in input","category":"input","searchText":"input.select.visual.line.end"}, + {"title":"Move to start of buffer in input","category":"input","searchText":"input.buffer.home"}, + {"title":"Move to end of buffer in input","category":"input","searchText":"input.buffer.end"}, + {"title":"Select to start of buffer in input","category":"input","searchText":"input.select.buffer.home"}, + {"title":"Select to end of buffer in input","category":"input","searchText":"input.select.buffer.end"}, + {"title":"Delete line in input","category":"input","searchText":"input.delete.line"}, + {"title":"Delete to end of line in input","category":"input","searchText":"input.delete.to.line.end"}, + {"title":"Delete to start of line in input","category":"input","searchText":"input.delete.to.line.start"}, + {"title":"Backspace in input","category":"input","searchText":"input.backspace"}, + {"title":"Delete character in input","category":"input","searchText":"input.delete"}, + {"title":"Undo in input","category":"input","searchText":"input.undo"}, + {"title":"Redo in input","category":"input","searchText":"input.redo"}, + {"title":"Move word forward in input","category":"input","searchText":"input.word.forward"}, + {"title":"Move word backward in input","category":"input","searchText":"input.word.backward"}, + {"title":"Select word forward in input","category":"input","searchText":"input.select.word.forward"}, + {"title":"Select word backward in input","category":"input","searchText":"input.select.word.backward"}, + {"title":"Delete word forward in input","category":"input","searchText":"input.delete.word.forward"}, + {"title":"Delete word backward in input","category":"input","searchText":"input.delete.word.backward"}, + {"title":"Select all in input","category":"input","searchText":"input.select.all"}, + {"title":"Previous history item","category":"prompt","searchText":"prompt.history.previous"}, + {"title":"Next history item","category":"prompt","searchText":"prompt.history.next"}, + {"title":"Previous subagent","category":"composer","searchText":"composer.subagent.up"}, + {"title":"Next subagent","category":"composer","searchText":"composer.subagent.down"}, + {"title":"Navigate to subagent","category":"composer","searchText":"composer.subagent.select"}, + {"title":"Interrupt subagent","category":"composer","searchText":"composer.subagent.interrupt"}, + {"title":"Previous shell","category":"composer","searchText":"composer.shell.up"}, + {"title":"Next shell","category":"composer","searchText":"composer.shell.down"}, + {"title":"View shell output","category":"composer","searchText":"composer.shell.select"}, + {"title":"Kill shell command","category":"composer","searchText":"composer.shell.kill"}, + {"title":"Previous script","category":"composer","searchText":"composer.script.up"}, + {"title":"Next script","category":"composer","searchText":"composer.script.down"}, + {"title":"Cancel script","category":"composer","searchText":"composer.script.cancel"}, + {"title":"Previous terminal","category":"composer","searchText":"composer.terminal.up"}, + {"title":"Next terminal","category":"composer","searchText":"composer.terminal.down"}, + {"title":"Select terminal","category":"composer","searchText":"composer.terminal.select"}, + {"title":"Move to previous dialog item","category":"dialog","searchText":"dialog.select.prev"}, + {"title":"Move to next dialog item","category":"dialog","searchText":"dialog.select.next"}, + {"title":"Move up one page in dialog","category":"dialog","searchText":"dialog.select.page_up"}, + {"title":"Move down one page in dialog","category":"dialog","searchText":"dialog.select.page_down"}, + {"title":"Move to first dialog item","category":"dialog","searchText":"dialog.select.home"}, + {"title":"Move to last dialog item","category":"dialog","searchText":"dialog.select.end"}, + {"title":"Submit selected dialog item","category":"dialog","searchText":"dialog.select.submit"}, + {"title":"Submit dialog prompt","category":"dialog","searchText":"dialog.prompt.submit"}, + {"title":"Rename integration account","category":"dialog","searchText":"dialog.integration.rename"}, + {"title":"Delete integration account","category":"dialog","searchText":"dialog.integration.delete"}, + {"title":"Copy authorization link","category":"dialog","searchText":"dialog.integration.copy"}, + {"title":"Generate worktree name","category":"dialog","searchText":"dialog.worktree.generate"}, + {"title":"New worktree","category":"dialog","searchText":"dialog.move_session.new"}, + {"title":"Move session to worktree","category":"dialog","searchText":"dialog.move_session.move"}, + {"title":"Delete worktree","category":"dialog","searchText":"dialog.move_session.delete"}, + {"title":"Refresh worktrees","category":"dialog","searchText":"dialog.move_session.refresh"}, + {"title":"Move to previous autocomplete item","category":"prompt","searchText":"prompt.autocomplete.prev"}, + {"title":"Move to next autocomplete item","category":"prompt","searchText":"prompt.autocomplete.next"}, + {"title":"Hide autocomplete","category":"prompt","searchText":"prompt.autocomplete.hide"}, + {"title":"Select autocomplete item","category":"prompt","searchText":"prompt.autocomplete.select"}, + {"title":"Complete autocomplete item","category":"prompt","searchText":"prompt.autocomplete.complete"}, + {"title":"Toggle permission prompt fullscreen","category":"permission","searchText":"permission.prompt.fullscreen"}, + {"title":"Toggle plugin","category":"plugins","searchText":"plugins.toggle"}, + {"title":"Toggle MCP server","category":"dialog","searchText":"dialog.mcp.toggle"}, + {"title":"View plugin error","category":"dialog","searchText":"dialog.plugins.error"}, + {"title":"Update plugin from plugin dialog","category":"dialog","searchText":"dialog.plugins.update"}, + {"title":"Check for plugin updates from plugin dialog","category":"dialog","searchText":"dialog.plugins.check"}, + {"title":"Suspend terminal","category":"terminal","searchText":"terminal.suspend"}, + {"title":"Toggle terminal title","category":"terminal","searchText":"terminal.title.toggle"}, + {"title":"Open plugin manager dialog","category":"plugins","searchText":"plugins.list"}, + {"title":"Toggle which-key panel","category":"which-key","searchText":"which-key.toggle"}, + {"title":"Switch which-key layout","category":"which-key","searchText":"which-key.layout.toggle"}, + {"title":"Toggle which-key pending preview","category":"which-key","searchText":"which-key.pending.toggle"}, + {"title":"Previous which-key group","category":"which-key","searchText":"which-key.group.previous"}, + {"title":"Next which-key group","category":"which-key","searchText":"which-key.group.next"}, + {"title":"Scroll which-key up","category":"which-key","searchText":"which-key.scroll.up"}, + {"title":"Scroll which-key down","category":"which-key","searchText":"which-key.scroll.down"}, + {"title":"Page which-key up","category":"which-key","searchText":"which-key.page.up"}, + {"title":"Page which-key down","category":"which-key","searchText":"which-key.page.down"}, + {"title":"Jump to first which-key binding","category":"which-key","searchText":"which-key.home"}, + {"title":"Jump to last which-key binding","category":"which-key","searchText":"which-key.end"} + ], + "cases": [ + {"query":"s","threshold":0,"results":[58,111,71,73,74,80,57,108,104,103,106,105,107,102,109,101,72,15,110,47,61,130,128,63,56,129,131,87,132,92,94,96,133,98,100,97,93,95,99,64,67,53,60,79,68,90,75,76,69,65,91,88,77,66,70,78,89,198,202,194,199,200,206,203,197,201,193,196,195,143,142,155,150,145,59,5,50,163,86,54,234,190,135,164,161,13,162,151,134,149,242,38,152,243,140,213,214,37,186,168,187,167,136,176,138,175,137,82,45,121,220,144,139,172,171,226,9,179,120,48,44,141,25,169,10,14,81,204,85,40,222,238,228,42,24,23,212,230,211,165,41,2,173,123,115,154,127,62,207,18,39,52,113,31,49,180,192,191,114,4,125,240,117,156,119,170,35,33,12,6,148,30,233,205,236,229,11,208,159,160,157,158,209,210,219,247,221,246,116,223,112,126,29,28,27,0,26,231,232]}, + {"query":"se","threshold":0,"results":[74,73,58,15,61,60,57,79,90,71,72,56,104,101,106,103,105,107,108,109,102,69,110,88,53,77,75,63,70,65,76,95,99,94,96,98,92,97,93,100,89,78,91,66,67,64,68,206,13,50,163,190,161,164,162,138,140,80,130,128,143,142,131,129,220,213,139,132,226,168,133,186,187,167,59,176,87,47,175,135,134,172,171,86,136,137,199,48,195,14,81,111,82,144,198,200,85,194,204,120,197,230,193,149,196,18,41,62,52,222,212,211,207,121,141,156,30,117,154,125,234,201,202,205,203,45,180,37,119,114,38,4,192,9,191,169,170,35,228,208,40,209,210,219,221,116,123,127,42,151,152,28,27,29,44,115,10,5,242,243,238,24,23,49,157,240,2,165,173,247,25,179,246,223,112,39,31,12,229,148,231,233,232]}, + {"query":"session","threshold":0,"results":[74,73,58,61,60,79,90,57,72,71,56,88,69,77,109,108,104,102,101,105,107,103,106,110,53,63,70,75,89,78,76,65,97,100,99,98,96,95,94,93,92,64,67,91,66,68,220,81,59,143,142,135,134,80,130,128,131,129,87,132,136,133,82,47,144,86,137,138,140,139,85,48,62,219,221,222]}, + {"query":"ses new","threshold":0,"results":[60,219,81,59,131,129,133,10]}, + {"query":"new ses","threshold":0,"results":[60,81,219,59,131,129,133,10]}, + {"query":"model","threshold":0,"results":[115,118,116,119,113,117,114,112,127,126,46,221,210]}, + {"query":"mod fav","threshold":0,"results":[113,118,119]}, + {"query":"toggle side","threshold":0,"results":[47,39]}, + {"query":"sidebar","threshold":0,"results":[47]}, + {"query":"x","threshold":0,"results":[1,56,192,241,34,32,88,124,198,202,205,194,118,116,208,63,67,224,136,138,7,147,43,28,29,85]}, + {"query":"dialog sel","threshold":0,"results":[212,208,211,207,209,210,213,114,112,221]}, + {"query":"pr","threshold":0,"results":[146,150,145,151,152,191,83,84,223,228,154,43,214,33,35,82,240,207,149,89,197,137,201,64,112,204,193,68,139,153,148,192,122,225,224,226,147,227,125,119,117,239,62,76,75,30,29,28,27,31,14,5,56,90,231,9,49,91,200,198,202,199,205,203,194,206,195,196,234,217,246,120,57,77,17,232,22,21,230,236,114,233,86,87,39,183,184,185,2,174,158,173,162,188,186,189,187,8,176,175,179,85]}, + {"query":"ul","threshold":0,"results":[121,114,91,130,40,228,157,225,236,226,227,35,224,170,172,223,169,171,247,232,213,214,46,197,78,234,117,204,153,34,217,3,119,209,89,207,116,233,132,24,100,99,98,97,96,95,94,92,93,30,29,28,27,166,165,181,163,190,177,164,161,162,168,167,176,178,175,188,186,189,187,179,156,229,48,84,195,238]}, + {"query":"SESS","threshold":0,"results":[74,73,58,61,60,79,90,57,71,72,56,88,108,104,106,101,109,102,107,103,105,69,77,110,53,63,70,89,75,78,65,76,96,99,98,97,95,94,93,100,92,64,67,91,66,68,130,128,131,129,220,132,133,135,134,137,138,140,139,81,143,142,59,80,87,136,82,47,144,86,85,48,62,219,221,222,171,42,199,195]}, + {"query":" tab ","threshold":0,"results":[101,109,106,103,107,108,104,102,105,69,110,63,70,65,64,67,66,68,115,44,10,173,86,175,247]}, + {"query":"input.","threshold":0,"results":[183,182,181,155,159,156,166,160,180,163,165,157,158,174,190,177,164,173,161,184,162,185,168,170,169,167,176,178,175,188,186,179,189,187,172,171]}, + {"query":"cmd","threshold":0,"results":[10,45,126,131,129,133,200,116,46,117,233,28,30,29,27,75,76,198,202,205,194,225]}, + {"query":"zzz","threshold":0,"results":[]}, + {"query":"copy last","threshold":0,"results":[]}, + {"query":"a b c","threshold":0,"results":[194,195,193,196,0,10,180,247,78,213,87,45,65,128,132,129,133,44,185,175,154,31,189,187,69,86,109,108,107,106,105,104,103,102,101,110,63,70,64,67,68,53,130,131]}, + {"query":"exit app","threshold":0,"results":[1]}, + {"query":"undo","threshold":0,"results":[182,142,83,78,67,236,209,117,233,232,68,194]}, + {"query":"page down","threshold":0,"results":[21,245,210,129,23,133,31,194]}, + {"query":"dg","threshold":0,"results":[232,216,214,210,212,208,211,213,207,209,233,218,55,3,24,23,112,239,114,230,231,219,217,220,215,221,222,143,142,16,11,8,78,31,76,75,85,129,133,236,247,246,27,22,21,39,36,40,37,113,13,47]}, + {"query":"s","threshold":0.7,"results":[58,111,71,74,73,80,57,101,108,107,102,104,105,109,103,106,72,15,110,47,61,128,130,63,56,131,129,87,132,92,96,100,133,94,98,99,97,93,95,64,67,53,60,79,68,90,75,76,69,65,91,88,77,66,70,78,89,198,202,194,199,200,206,203,197,201,193,196,195,143,142,155,150,145,59,5,50,163,86,54,234,190,135,164,161,13,162,151,134,149,242,38,152,243,140,213,214,37,186,168,187,167,136,176,138,175,137,82,45,121,220,144,139,172,171,226,9,179,120,48,44,141,25,169,10,14,81,204,85,40,222,238,228,42,24,23,212,230,211,165,41,2,173,123,115,154,127,62,207,18,39,52,113,31,49,180,192,191,114,4,125,240,117,156,119,170,35,33,12,6,148,30,233,205,236,229,11,208,159,157,160,158,209,210]}, + {"query":"se","threshold":0.7,"results":[73,74,58,15,61,60,57,79,90,71,72,56,103,107,109,106,101,102,104,105,108,69,110,88,53,77,75,63,70,65,76,93,98,92,99,97,94,100,96,95,89,78,91,66,67,64,68,206,13,50,163,190,164,161,162,138,140,80,130,128,143,142,129,131,220,213,139,132,226,168,133,186,187,167,59,176,87,47,175,135,134,172,171,86,136,137,199,48,195,14,81,111,82,144,198,200,85,194,204,120,197,230,193,149,196,18,41,62,52,222,212,211,207,121,141,156,30,117,154,125,234,201,202,205,203,45,180,37,119,114,38,4,192,9,191,169,170,35,228,208,40,209,210,219,221,116]}, + {"query":"session","threshold":0.7,"results":[74,73,58,61,60,79,90,57,72,71,56,88,69,77,109,108,104,102,101,105,107,103,106,110,53,63,70,75,89,78,76,65,97,100,99,98,96,95,94,93,92,64,67,91,66,68,220,81,59,143,142,135,134,80,130,128,131,129,87,132,136,133,82,47,144,86,137,138,140,139,85,48,62,219,221,222]}, + {"query":"ses new","threshold":0.7,"results":[60,219,81,59,131,129,133,10]}, + {"query":"new ses","threshold":0.7,"results":[60,81,219,59,131,129,133,10]}, + {"query":"model","threshold":0.7,"results":[115,118,116,119,113,117,114,112,127,126,46]}, + {"query":"mod fav","threshold":0.7,"results":[113,118,119]}, + {"query":"toggle side","threshold":0.7,"results":[47,39]}, + {"query":"sidebar","threshold":0.7,"results":[47]}, + {"query":"x","threshold":0.7,"results":[1,56,192,241,32,34,88,124,198,202,205,194,118,116,208,63,67,224,136,138,7,147,43]}, + {"query":"dialog sel","threshold":0.7,"results":[212,208,211,207,209,210,213,114,112,221]}, + {"query":"pr","threshold":0.7,"results":[150,146,145,151,152,191,83,84,223,228,154,43,214,35,33,82,240,207,149,89,197,137,201,64,112,204,193,68,139,153,148,192,122,225,224,226,147,227,125,119,117,239,62,76,75,30,29,28,27,31,14,5,56,90,231,9]}, + {"query":"ul","threshold":0.7,"results":[121,114,91,130,40,228,157,225,236,226,227,35,224,170,172,223,169,171]}, + {"query":"SESS","threshold":0.7,"results":[74,73,58,61,60,79,90,57,71,72,56,88,107,104,105,108,102,101,103,109,106,69,77,110,53,63,70,89,75,78,65,76,97,100,99,98,96,95,94,93,92,64,67,91,66,68,130,128,131,129,220,132,133,135,134,137,138,140,139,81,59,143,142,80,87,136,82,47,144,86,85,48,62,219,221,222]}, + {"query":" tab ","threshold":0.7,"results":[104,102,103,106,107,109,101,105,108,69,110,63,70,65,64,67,66,68]}, + {"query":"input.","threshold":0.7,"results":[183,182,181,155,159,156,166,160,180,163,165,157,158,174,190,177,164,173,161,184,162,185,168,170,169,167,176,178,175,188,186,179,189,187,172,171]}, + {"query":"cmd","threshold":0.7,"results":[10,45]}, + {"query":"zzz","threshold":0.7,"results":[]}, + {"query":"copy last","threshold":0.7,"results":[]}, + {"query":"a b c","threshold":0.7,"results":[194,195,193,196,0,10,180,247,78,213,87,45,65,128,132,129,133,44,185,175,154,31,189,187,69,86,109,108,107,106,105,104,103,102,101,110,63,70,64,67,68,53,130,131]}, + {"query":"exit app","threshold":0.7,"results":[1]}, + {"query":"undo","threshold":0.7,"results":[182,142,83]}, + {"query":"page down","threshold":0.7,"results":[21,245,210,129,23,133]}, + {"query":"dg","threshold":0.7,"results":[232,216,214,210,212,208,211,213,207,209,233,218,55,3,24,23,112,239,114]} + ] +} diff --git a/packages/cli-rs/parity/fixtures/U.3/help.json b/packages/cli-rs/parity/fixtures/U.3/help.json new file mode 100644 index 000000000000..55395215cb74 --- /dev/null +++ b/packages/cli-rs/parity/fixtures/U.3/help.json @@ -0,0 +1,16 @@ +{"width":80,"height":14,"styles":["#ffffffff #030303ff 0","#ffffffff #141414ff 0","#808080ff #141414ff 0","#ffffffff #202020ff 0","#808080ff #202020ff 0"],"lines":[ +[" ",[[0,80]]], +[" ",[[0,80]]], +[" ",[[0,80]]], +[" ",[[0,80]]], +[" ",[[0,10],[1,60],[0,10]]], +[" Help esc/enter ",[[0,10],[1,48],[2,9],[1,3],[0,10]]], +[" ",[[0,10],[1,60],[0,10]]], +[" Press ctrl+p to see all available actions and commands ",[[0,10],[1,3],[2,54],[1,3],[0,10]]], +[" in any context. ",[[0,10],[1,3],[2,15],[1,42],[0,10]]], +[" ",[[0,10],[1,60],[0,10]]], +[" ",[[0,10],[3,60],[0,10]]], +[" ok enter ",[[0,10],[3,51],[4,6],[3,3],[0,10]]], +[" ",[[0,10],[3,60],[0,10]]], +[" ",[[0,80]]] +]} diff --git a/packages/cli-rs/parity/fixtures/U.3/palette-20-end.json b/packages/cli-rs/parity/fixtures/U.3/palette-20-end.json new file mode 100644 index 000000000000..d83467b1a70f --- /dev/null +++ b/packages/cli-rs/parity/fixtures/U.3/palette-20-end.json @@ -0,0 +1,22 @@ +{"width":80,"height":20,"styles":["#ffffffff #030303ff 0","#ffffffff #141414ff 0","#808080ff #141414ff 0","#808080ff #141414ff 1","#7699feff #141414ff 0","#ffffffff #23344bff 0","#93a2b7ff #23344bff 0"],"lines":[ +[" ",[[0,80]]], +[" ",[[0,80]]], +[" ",[[0,80]]], +[" ",[[0,80]]], +[" ",[[0,80]]], +[" ",[[0,10],[1,60],[0,10]]], +[" Search commands esc ",[[0,10],[1,4],[2,15],[1,34],[2,3],[1,4],[0,10]]], +[" ",[[0,10],[1,60],[0,10]]], +[" ",[[0,10],[1,60],[0,10]]], +[" System ",[[0,10],[1,4],[3,6],[1,50],[0,10]]], +[" Switch theme ",[[0,10],[4,1],[1,59],[0,10]]], +[" ┃ Exit the app ctrl+c, ctrl+d, ctrl+x q ",[[0,10],[4,1],[5,31],[6,24],[5,4],[0,10]]], +[" ",[[0,10],[1,60],[0,10]]], +[" ",[[0,80]]], +[" ",[[0,80]]], +[" ",[[0,80]]], +[" ",[[0,80]]], +[" ",[[0,80]]], +[" ",[[0,80]]], +[" ",[[0,80]]] +]} diff --git a/packages/cli-rs/parity/fixtures/U.3/palette-20.json b/packages/cli-rs/parity/fixtures/U.3/palette-20.json new file mode 100644 index 000000000000..5b42560597c8 --- /dev/null +++ b/packages/cli-rs/parity/fixtures/U.3/palette-20.json @@ -0,0 +1,22 @@ +{"width":80,"height":20,"styles":["#ffffffff #030303ff 0","#ffffffff #141414ff 0","#808080ff #141414ff 0","#808080ff #141414ff 1","#7699feff #141414ff 0","#ffffffff #23344bff 0","#93a2b7ff #23344bff 0"],"lines":[ +[" ",[[0,80]]], +[" ",[[0,80]]], +[" ",[[0,80]]], +[" ",[[0,80]]], +[" ",[[0,80]]], +[" ",[[0,10],[1,60],[0,10]]], +[" Search commands esc ",[[0,10],[1,4],[2,15],[1,34],[2,3],[1,4],[0,10]]], +[" ",[[0,10],[1,60],[0,10]]], +[" Suggested ",[[0,10],[1,4],[3,9],[1,47],[0,10]]], +[" ┃ New session ctrl+x n ",[[0,10],[4,1],[5,47],[6,8],[5,4],[0,10]]], +[" ",[[0,10],[1,60],[0,10]]], +[" Session ",[[0,10],[1,4],[3,7],[1,49],[0,10]]], +[" ",[[0,10],[1,60],[0,10]]], +[" ",[[0,80]]], +[" ",[[0,80]]], +[" ",[[0,80]]], +[" ",[[0,80]]], +[" ",[[0,80]]], +[" ",[[0,80]]], +[" ",[[0,80]]] +]} diff --git a/packages/cli-rs/parity/fixtures/U.3/palette.json b/packages/cli-rs/parity/fixtures/U.3/palette.json new file mode 100644 index 000000000000..5ec12fc3bd1d --- /dev/null +++ b/packages/cli-rs/parity/fixtures/U.3/palette.json @@ -0,0 +1,38 @@ +{"width":80,"height":36,"styles":["#ffffffff #030303ff 0","#ffffffff #141414ff 0","#808080ff #141414ff 0","#808080ff #141414ff 1","#7699feff #141414ff 0","#ffffffff #23344bff 0","#93a2b7ff #23344bff 0"],"lines":[ +[" ",[[0,80]]], +[" ",[[0,80]]], +[" ",[[0,80]]], +[" ",[[0,80]]], +[" ",[[0,80]]], +[" ",[[0,80]]], +[" ",[[0,80]]], +[" ",[[0,80]]], +[" ",[[0,80]]], +[" ",[[0,10],[1,60],[0,10]]], +[" Search commands esc ",[[0,10],[1,4],[2,15],[1,34],[2,3],[1,4],[0,10]]], +[" ",[[0,10],[1,60],[0,10]]], +[" Suggested ",[[0,10],[1,4],[3,9],[1,47],[0,10]]], +[" ┃ New session ctrl+x n ",[[0,10],[4,1],[5,47],[6,8],[5,4],[0,10]]], +[" ",[[0,10],[1,60],[0,10]]], +[" Session ",[[0,10],[1,4],[3,7],[1,49],[0,10]]], +[" New session ctrl+x n ",[[0,10],[4,1],[1,47],[2,8],[1,4],[0,10]]], +[" Switch session ctrl+x l ",[[0,10],[4,1],[1,47],[2,8],[1,4],[0,10]]], +[" Rename session Give the session a name ctrl+r ",[[0,10],[4,1],[1,17],[2,24],[1,8],[2,6],[1,4],[0,10]]], +[" ",[[0,10],[1,60],[0,10]]], +[" System ",[[0,10],[1,4],[3,6],[1,50],[0,10]]], +[" Switch theme ",[[0,10],[4,1],[1,59],[0,10]]], +[" Exit the app ctrl+c, ctrl+d, ctrl+x q ",[[0,10],[4,1],[1,31],[2,24],[1,4],[0,10]]], +[" ",[[0,10],[1,60],[0,10]]], +[" ",[[0,80]]], +[" ",[[0,80]]], +[" ",[[0,80]]], +[" ",[[0,80]]], +[" ",[[0,80]]], +[" ",[[0,80]]], +[" ",[[0,80]]], +[" ",[[0,80]]], +[" ",[[0,80]]], +[" ",[[0,80]]], +[" ",[[0,80]]], +[" ",[[0,80]]] +]} diff --git a/packages/cli-rs/parity/fixtures/U.3/path.json b/packages/cli-rs/parity/fixtures/U.3/path.json new file mode 100644 index 000000000000..6414f9dfabb0 --- /dev/null +++ b/packages/cli-rs/parity/fixtures/U.3/path.json @@ -0,0 +1,506 @@ +[ + {"input":"","base":"/home/ada/src/app","home":"/home/ada","forwardSlashes":false,"format":"","abbreviate":""}, + {"input":"","base":"/home/ada/src/app","home":"/home/ada","forwardSlashes":true,"format":"","abbreviate":""}, + {"input":"/home/ada/src/app","base":"/home/ada/src/app","home":"/home/ada","forwardSlashes":false,"format":".","abbreviate":"~/src/app"}, + {"input":"/home/ada/src/app","base":"/home/ada/src/app","home":"/home/ada","forwardSlashes":true,"format":".","abbreviate":"~/src/app"}, + {"input":"/home/ada/src/app/lib/main.rs","base":"/home/ada/src/app","home":"/home/ada","forwardSlashes":false,"format":"lib/main.rs","abbreviate":"~/src/app/lib/main.rs"}, + {"input":"/home/ada/src/app/lib/main.rs","base":"/home/ada/src/app","home":"/home/ada","forwardSlashes":true,"format":"lib/main.rs","abbreviate":"~/src/app/lib/main.rs"}, + {"input":"lib/main.rs","base":"/home/ada/src/app","home":"/home/ada","forwardSlashes":false,"format":"lib/main.rs","abbreviate":"lib/main.rs"}, + {"input":"lib/main.rs","base":"/home/ada/src/app","home":"/home/ada","forwardSlashes":true,"format":"lib/main.rs","abbreviate":"lib/main.rs"}, + {"input":"./lib/../lib/./main.rs","base":"/home/ada/src/app","home":"/home/ada","forwardSlashes":false,"format":"lib/main.rs","abbreviate":"./lib/../lib/./main.rs"}, + {"input":"./lib/../lib/./main.rs","base":"/home/ada/src/app","home":"/home/ada","forwardSlashes":true,"format":"lib/main.rs","abbreviate":"./lib/../lib/./main.rs"}, + {"input":"../other/file","base":"/home/ada/src/app","home":"/home/ada","forwardSlashes":false,"format":"~/src/other/file","abbreviate":"../other/file"}, + {"input":"../other/file","base":"/home/ada/src/app","home":"/home/ada","forwardSlashes":true,"format":"~/src/other/file","abbreviate":"../other/file"}, + {"input":"/home/ada/notes.md","base":"/home/ada/src/app","home":"/home/ada","forwardSlashes":false,"format":"~/notes.md","abbreviate":"~/notes.md"}, + {"input":"/home/ada/notes.md","base":"/home/ada/src/app","home":"/home/ada","forwardSlashes":true,"format":"~/notes.md","abbreviate":"~/notes.md"}, + {"input":"/home/ada","base":"/home/ada/src/app","home":"/home/ada","forwardSlashes":false,"format":"~","abbreviate":"~"}, + {"input":"/home/ada","base":"/home/ada/src/app","home":"/home/ada","forwardSlashes":true,"format":"~","abbreviate":"~"}, + {"input":"/home/adam/file","base":"/home/ada/src/app","home":"/home/ada","forwardSlashes":false,"format":"/home/adam/file","abbreviate":"/home/adam/file"}, + {"input":"/home/adam/file","base":"/home/ada/src/app","home":"/home/ada","forwardSlashes":true,"format":"/home/adam/file","abbreviate":"/home/adam/file"}, + {"input":"/etc/hosts","base":"/home/ada/src/app","home":"/home/ada","forwardSlashes":false,"format":"/etc/hosts","abbreviate":"/etc/hosts"}, + {"input":"/etc/hosts","base":"/home/ada/src/app","home":"/home/ada","forwardSlashes":true,"format":"/etc/hosts","abbreviate":"/etc/hosts"}, + {"input":"/","base":"/home/ada/src/app","home":"/home/ada","forwardSlashes":false,"format":"/","abbreviate":"/"}, + {"input":"/","base":"/home/ada/src/app","home":"/home/ada","forwardSlashes":true,"format":"/","abbreviate":"/"}, + {"input":"//double//slash/","base":"/home/ada/src/app","home":"/home/ada","forwardSlashes":false,"format":"//double//slash/","abbreviate":"//double//slash/"}, + {"input":"//double//slash/","base":"/home/ada/src/app","home":"/home/ada","forwardSlashes":true,"format":"//double//slash/","abbreviate":"//double//slash/"}, + {"input":"..","base":"/home/ada/src/app","home":"/home/ada","forwardSlashes":false,"format":"~/src","abbreviate":".."}, + {"input":"..","base":"/home/ada/src/app","home":"/home/ada","forwardSlashes":true,"format":"~/src","abbreviate":".."}, + {"input":"~/literal","base":"/home/ada/src/app","home":"/home/ada","forwardSlashes":false,"format":"~/literal","abbreviate":"~/literal"}, + {"input":"~/literal","base":"/home/ada/src/app","home":"/home/ada","forwardSlashes":true,"format":"~/literal","abbreviate":"~/literal"}, + {"input":"C:\\Users\\ada\\file.txt","base":"/home/ada/src/app","home":"/home/ada","forwardSlashes":false,"format":"C:\\Users\\ada\\file.txt","abbreviate":"C:\\Users\\ada\\file.txt"}, + {"input":"C:\\Users\\ada\\file.txt","base":"/home/ada/src/app","home":"/home/ada","forwardSlashes":true,"format":"C:/Users/ada/file.txt","abbreviate":"C:\\Users\\ada\\file.txt"}, + {"input":"\\\\server\\share\\file","base":"/home/ada/src/app","home":"/home/ada","forwardSlashes":false,"format":"\\\\server\\share\\file","abbreviate":"\\\\server\\share\\file"}, + {"input":"\\\\server\\share\\file","base":"/home/ada/src/app","home":"/home/ada","forwardSlashes":true,"format":"//server/share/file","abbreviate":"\\\\server\\share\\file"}, + {"input":"","base":"/home/ada/src/app","home":"","forwardSlashes":false,"format":"","abbreviate":""}, + {"input":"","base":"/home/ada/src/app","home":"","forwardSlashes":true,"format":"","abbreviate":""}, + {"input":"/home/ada/src/app","base":"/home/ada/src/app","home":"","forwardSlashes":false,"format":".","abbreviate":"/home/ada/src/app"}, + {"input":"/home/ada/src/app","base":"/home/ada/src/app","home":"","forwardSlashes":true,"format":".","abbreviate":"/home/ada/src/app"}, + {"input":"/home/ada/src/app/lib/main.rs","base":"/home/ada/src/app","home":"","forwardSlashes":false,"format":"lib/main.rs","abbreviate":"/home/ada/src/app/lib/main.rs"}, + {"input":"/home/ada/src/app/lib/main.rs","base":"/home/ada/src/app","home":"","forwardSlashes":true,"format":"lib/main.rs","abbreviate":"/home/ada/src/app/lib/main.rs"}, + {"input":"lib/main.rs","base":"/home/ada/src/app","home":"","forwardSlashes":false,"format":"lib/main.rs","abbreviate":"lib/main.rs"}, + {"input":"lib/main.rs","base":"/home/ada/src/app","home":"","forwardSlashes":true,"format":"lib/main.rs","abbreviate":"lib/main.rs"}, + {"input":"./lib/../lib/./main.rs","base":"/home/ada/src/app","home":"","forwardSlashes":false,"format":"lib/main.rs","abbreviate":"./lib/../lib/./main.rs"}, + {"input":"./lib/../lib/./main.rs","base":"/home/ada/src/app","home":"","forwardSlashes":true,"format":"lib/main.rs","abbreviate":"./lib/../lib/./main.rs"}, + {"input":"../other/file","base":"/home/ada/src/app","home":"","forwardSlashes":false,"format":"/home/ada/src/other/file","abbreviate":"../other/file"}, + {"input":"../other/file","base":"/home/ada/src/app","home":"","forwardSlashes":true,"format":"/home/ada/src/other/file","abbreviate":"../other/file"}, + {"input":"/home/ada/notes.md","base":"/home/ada/src/app","home":"","forwardSlashes":false,"format":"/home/ada/notes.md","abbreviate":"/home/ada/notes.md"}, + {"input":"/home/ada/notes.md","base":"/home/ada/src/app","home":"","forwardSlashes":true,"format":"/home/ada/notes.md","abbreviate":"/home/ada/notes.md"}, + {"input":"/home/ada","base":"/home/ada/src/app","home":"","forwardSlashes":false,"format":"/home/ada","abbreviate":"/home/ada"}, + {"input":"/home/ada","base":"/home/ada/src/app","home":"","forwardSlashes":true,"format":"/home/ada","abbreviate":"/home/ada"}, + {"input":"/home/adam/file","base":"/home/ada/src/app","home":"","forwardSlashes":false,"format":"/home/adam/file","abbreviate":"/home/adam/file"}, + {"input":"/home/adam/file","base":"/home/ada/src/app","home":"","forwardSlashes":true,"format":"/home/adam/file","abbreviate":"/home/adam/file"}, + {"input":"/etc/hosts","base":"/home/ada/src/app","home":"","forwardSlashes":false,"format":"/etc/hosts","abbreviate":"/etc/hosts"}, + {"input":"/etc/hosts","base":"/home/ada/src/app","home":"","forwardSlashes":true,"format":"/etc/hosts","abbreviate":"/etc/hosts"}, + {"input":"/","base":"/home/ada/src/app","home":"","forwardSlashes":false,"format":"/","abbreviate":"/"}, + {"input":"/","base":"/home/ada/src/app","home":"","forwardSlashes":true,"format":"/","abbreviate":"/"}, + {"input":"//double//slash/","base":"/home/ada/src/app","home":"","forwardSlashes":false,"format":"//double//slash/","abbreviate":"//double//slash/"}, + {"input":"//double//slash/","base":"/home/ada/src/app","home":"","forwardSlashes":true,"format":"//double//slash/","abbreviate":"//double//slash/"}, + {"input":"..","base":"/home/ada/src/app","home":"","forwardSlashes":false,"format":"/home/ada/src","abbreviate":".."}, + {"input":"..","base":"/home/ada/src/app","home":"","forwardSlashes":true,"format":"/home/ada/src","abbreviate":".."}, + {"input":"~/literal","base":"/home/ada/src/app","home":"","forwardSlashes":false,"format":"~/literal","abbreviate":"~/literal"}, + {"input":"~/literal","base":"/home/ada/src/app","home":"","forwardSlashes":true,"format":"~/literal","abbreviate":"~/literal"}, + {"input":"C:\\Users\\ada\\file.txt","base":"/home/ada/src/app","home":"","forwardSlashes":false,"format":"C:\\Users\\ada\\file.txt","abbreviate":"C:\\Users\\ada\\file.txt"}, + {"input":"C:\\Users\\ada\\file.txt","base":"/home/ada/src/app","home":"","forwardSlashes":true,"format":"C:/Users/ada/file.txt","abbreviate":"C:\\Users\\ada\\file.txt"}, + {"input":"\\\\server\\share\\file","base":"/home/ada/src/app","home":"","forwardSlashes":false,"format":"\\\\server\\share\\file","abbreviate":"\\\\server\\share\\file"}, + {"input":"\\\\server\\share\\file","base":"/home/ada/src/app","home":"","forwardSlashes":true,"format":"//server/share/file","abbreviate":"\\\\server\\share\\file"}, + {"input":"","base":"/home/ada/src/app","home":"/home/ada/","forwardSlashes":false,"format":"","abbreviate":""}, + {"input":"","base":"/home/ada/src/app","home":"/home/ada/","forwardSlashes":true,"format":"","abbreviate":""}, + {"input":"/home/ada/src/app","base":"/home/ada/src/app","home":"/home/ada/","forwardSlashes":false,"format":".","abbreviate":"~/src/app"}, + {"input":"/home/ada/src/app","base":"/home/ada/src/app","home":"/home/ada/","forwardSlashes":true,"format":".","abbreviate":"~/src/app"}, + {"input":"/home/ada/src/app/lib/main.rs","base":"/home/ada/src/app","home":"/home/ada/","forwardSlashes":false,"format":"lib/main.rs","abbreviate":"~/src/app/lib/main.rs"}, + {"input":"/home/ada/src/app/lib/main.rs","base":"/home/ada/src/app","home":"/home/ada/","forwardSlashes":true,"format":"lib/main.rs","abbreviate":"~/src/app/lib/main.rs"}, + {"input":"lib/main.rs","base":"/home/ada/src/app","home":"/home/ada/","forwardSlashes":false,"format":"lib/main.rs","abbreviate":"lib/main.rs"}, + {"input":"lib/main.rs","base":"/home/ada/src/app","home":"/home/ada/","forwardSlashes":true,"format":"lib/main.rs","abbreviate":"lib/main.rs"}, + {"input":"./lib/../lib/./main.rs","base":"/home/ada/src/app","home":"/home/ada/","forwardSlashes":false,"format":"lib/main.rs","abbreviate":"./lib/../lib/./main.rs"}, + {"input":"./lib/../lib/./main.rs","base":"/home/ada/src/app","home":"/home/ada/","forwardSlashes":true,"format":"lib/main.rs","abbreviate":"./lib/../lib/./main.rs"}, + {"input":"../other/file","base":"/home/ada/src/app","home":"/home/ada/","forwardSlashes":false,"format":"~/src/other/file","abbreviate":"../other/file"}, + {"input":"../other/file","base":"/home/ada/src/app","home":"/home/ada/","forwardSlashes":true,"format":"~/src/other/file","abbreviate":"../other/file"}, + {"input":"/home/ada/notes.md","base":"/home/ada/src/app","home":"/home/ada/","forwardSlashes":false,"format":"~/notes.md","abbreviate":"~/notes.md"}, + {"input":"/home/ada/notes.md","base":"/home/ada/src/app","home":"/home/ada/","forwardSlashes":true,"format":"~/notes.md","abbreviate":"~/notes.md"}, + {"input":"/home/ada","base":"/home/ada/src/app","home":"/home/ada/","forwardSlashes":false,"format":"~","abbreviate":"~"}, + {"input":"/home/ada","base":"/home/ada/src/app","home":"/home/ada/","forwardSlashes":true,"format":"~","abbreviate":"~"}, + {"input":"/home/adam/file","base":"/home/ada/src/app","home":"/home/ada/","forwardSlashes":false,"format":"/home/adam/file","abbreviate":"/home/adam/file"}, + {"input":"/home/adam/file","base":"/home/ada/src/app","home":"/home/ada/","forwardSlashes":true,"format":"/home/adam/file","abbreviate":"/home/adam/file"}, + {"input":"/etc/hosts","base":"/home/ada/src/app","home":"/home/ada/","forwardSlashes":false,"format":"/etc/hosts","abbreviate":"/etc/hosts"}, + {"input":"/etc/hosts","base":"/home/ada/src/app","home":"/home/ada/","forwardSlashes":true,"format":"/etc/hosts","abbreviate":"/etc/hosts"}, + {"input":"/","base":"/home/ada/src/app","home":"/home/ada/","forwardSlashes":false,"format":"/","abbreviate":"/"}, + {"input":"/","base":"/home/ada/src/app","home":"/home/ada/","forwardSlashes":true,"format":"/","abbreviate":"/"}, + {"input":"//double//slash/","base":"/home/ada/src/app","home":"/home/ada/","forwardSlashes":false,"format":"//double//slash/","abbreviate":"//double//slash/"}, + {"input":"//double//slash/","base":"/home/ada/src/app","home":"/home/ada/","forwardSlashes":true,"format":"//double//slash/","abbreviate":"//double//slash/"}, + {"input":"..","base":"/home/ada/src/app","home":"/home/ada/","forwardSlashes":false,"format":"~/src","abbreviate":".."}, + {"input":"..","base":"/home/ada/src/app","home":"/home/ada/","forwardSlashes":true,"format":"~/src","abbreviate":".."}, + {"input":"~/literal","base":"/home/ada/src/app","home":"/home/ada/","forwardSlashes":false,"format":"~/literal","abbreviate":"~/literal"}, + {"input":"~/literal","base":"/home/ada/src/app","home":"/home/ada/","forwardSlashes":true,"format":"~/literal","abbreviate":"~/literal"}, + {"input":"C:\\Users\\ada\\file.txt","base":"/home/ada/src/app","home":"/home/ada/","forwardSlashes":false,"format":"C:\\Users\\ada\\file.txt","abbreviate":"C:\\Users\\ada\\file.txt"}, + {"input":"C:\\Users\\ada\\file.txt","base":"/home/ada/src/app","home":"/home/ada/","forwardSlashes":true,"format":"C:/Users/ada/file.txt","abbreviate":"C:\\Users\\ada\\file.txt"}, + {"input":"\\\\server\\share\\file","base":"/home/ada/src/app","home":"/home/ada/","forwardSlashes":false,"format":"\\\\server\\share\\file","abbreviate":"\\\\server\\share\\file"}, + {"input":"\\\\server\\share\\file","base":"/home/ada/src/app","home":"/home/ada/","forwardSlashes":true,"format":"//server/share/file","abbreviate":"\\\\server\\share\\file"}, + {"input":"","base":"/","home":"/home/ada","forwardSlashes":false,"format":"","abbreviate":""}, + {"input":"","base":"/","home":"/home/ada","forwardSlashes":true,"format":"","abbreviate":""}, + {"input":"/home/ada/src/app","base":"/","home":"/home/ada","forwardSlashes":false,"format":"home/ada/src/app","abbreviate":"~/src/app"}, + {"input":"/home/ada/src/app","base":"/","home":"/home/ada","forwardSlashes":true,"format":"home/ada/src/app","abbreviate":"~/src/app"}, + {"input":"/home/ada/src/app/lib/main.rs","base":"/","home":"/home/ada","forwardSlashes":false,"format":"home/ada/src/app/lib/main.rs","abbreviate":"~/src/app/lib/main.rs"}, + {"input":"/home/ada/src/app/lib/main.rs","base":"/","home":"/home/ada","forwardSlashes":true,"format":"home/ada/src/app/lib/main.rs","abbreviate":"~/src/app/lib/main.rs"}, + {"input":"lib/main.rs","base":"/","home":"/home/ada","forwardSlashes":false,"format":"lib/main.rs","abbreviate":"lib/main.rs"}, + {"input":"lib/main.rs","base":"/","home":"/home/ada","forwardSlashes":true,"format":"lib/main.rs","abbreviate":"lib/main.rs"}, + {"input":"./lib/../lib/./main.rs","base":"/","home":"/home/ada","forwardSlashes":false,"format":"lib/main.rs","abbreviate":"./lib/../lib/./main.rs"}, + {"input":"./lib/../lib/./main.rs","base":"/","home":"/home/ada","forwardSlashes":true,"format":"lib/main.rs","abbreviate":"./lib/../lib/./main.rs"}, + {"input":"../other/file","base":"/","home":"/home/ada","forwardSlashes":false,"format":"other/file","abbreviate":"../other/file"}, + {"input":"../other/file","base":"/","home":"/home/ada","forwardSlashes":true,"format":"other/file","abbreviate":"../other/file"}, + {"input":"/home/ada/notes.md","base":"/","home":"/home/ada","forwardSlashes":false,"format":"home/ada/notes.md","abbreviate":"~/notes.md"}, + {"input":"/home/ada/notes.md","base":"/","home":"/home/ada","forwardSlashes":true,"format":"home/ada/notes.md","abbreviate":"~/notes.md"}, + {"input":"/home/ada","base":"/","home":"/home/ada","forwardSlashes":false,"format":"home/ada","abbreviate":"~"}, + {"input":"/home/ada","base":"/","home":"/home/ada","forwardSlashes":true,"format":"home/ada","abbreviate":"~"}, + {"input":"/home/adam/file","base":"/","home":"/home/ada","forwardSlashes":false,"format":"home/adam/file","abbreviate":"/home/adam/file"}, + {"input":"/home/adam/file","base":"/","home":"/home/ada","forwardSlashes":true,"format":"home/adam/file","abbreviate":"/home/adam/file"}, + {"input":"/etc/hosts","base":"/","home":"/home/ada","forwardSlashes":false,"format":"etc/hosts","abbreviate":"/etc/hosts"}, + {"input":"/etc/hosts","base":"/","home":"/home/ada","forwardSlashes":true,"format":"etc/hosts","abbreviate":"/etc/hosts"}, + {"input":"/","base":"/","home":"/home/ada","forwardSlashes":false,"format":".","abbreviate":"/"}, + {"input":"/","base":"/","home":"/home/ada","forwardSlashes":true,"format":".","abbreviate":"/"}, + {"input":"//double//slash/","base":"/","home":"/home/ada","forwardSlashes":false,"format":"double/slash","abbreviate":"//double//slash/"}, + {"input":"//double//slash/","base":"/","home":"/home/ada","forwardSlashes":true,"format":"double/slash","abbreviate":"//double//slash/"}, + {"input":"..","base":"/","home":"/home/ada","forwardSlashes":false,"format":".","abbreviate":".."}, + {"input":"..","base":"/","home":"/home/ada","forwardSlashes":true,"format":".","abbreviate":".."}, + {"input":"~/literal","base":"/","home":"/home/ada","forwardSlashes":false,"format":"~/literal","abbreviate":"~/literal"}, + {"input":"~/literal","base":"/","home":"/home/ada","forwardSlashes":true,"format":"~/literal","abbreviate":"~/literal"}, + {"input":"C:\\Users\\ada\\file.txt","base":"/","home":"/home/ada","forwardSlashes":false,"format":"C:\\Users\\ada\\file.txt","abbreviate":"C:\\Users\\ada\\file.txt"}, + {"input":"C:\\Users\\ada\\file.txt","base":"/","home":"/home/ada","forwardSlashes":true,"format":"C:/Users/ada/file.txt","abbreviate":"C:\\Users\\ada\\file.txt"}, + {"input":"\\\\server\\share\\file","base":"/","home":"/home/ada","forwardSlashes":false,"format":"\\\\server\\share\\file","abbreviate":"\\\\server\\share\\file"}, + {"input":"\\\\server\\share\\file","base":"/","home":"/home/ada","forwardSlashes":true,"format":"//server/share/file","abbreviate":"\\\\server\\share\\file"}, + {"input":"","base":"/","home":"","forwardSlashes":false,"format":"","abbreviate":""}, + {"input":"","base":"/","home":"","forwardSlashes":true,"format":"","abbreviate":""}, + {"input":"/home/ada/src/app","base":"/","home":"","forwardSlashes":false,"format":"home/ada/src/app","abbreviate":"/home/ada/src/app"}, + {"input":"/home/ada/src/app","base":"/","home":"","forwardSlashes":true,"format":"home/ada/src/app","abbreviate":"/home/ada/src/app"}, + {"input":"/home/ada/src/app/lib/main.rs","base":"/","home":"","forwardSlashes":false,"format":"home/ada/src/app/lib/main.rs","abbreviate":"/home/ada/src/app/lib/main.rs"}, + {"input":"/home/ada/src/app/lib/main.rs","base":"/","home":"","forwardSlashes":true,"format":"home/ada/src/app/lib/main.rs","abbreviate":"/home/ada/src/app/lib/main.rs"}, + {"input":"lib/main.rs","base":"/","home":"","forwardSlashes":false,"format":"lib/main.rs","abbreviate":"lib/main.rs"}, + {"input":"lib/main.rs","base":"/","home":"","forwardSlashes":true,"format":"lib/main.rs","abbreviate":"lib/main.rs"}, + {"input":"./lib/../lib/./main.rs","base":"/","home":"","forwardSlashes":false,"format":"lib/main.rs","abbreviate":"./lib/../lib/./main.rs"}, + {"input":"./lib/../lib/./main.rs","base":"/","home":"","forwardSlashes":true,"format":"lib/main.rs","abbreviate":"./lib/../lib/./main.rs"}, + {"input":"../other/file","base":"/","home":"","forwardSlashes":false,"format":"other/file","abbreviate":"../other/file"}, + {"input":"../other/file","base":"/","home":"","forwardSlashes":true,"format":"other/file","abbreviate":"../other/file"}, + {"input":"/home/ada/notes.md","base":"/","home":"","forwardSlashes":false,"format":"home/ada/notes.md","abbreviate":"/home/ada/notes.md"}, + {"input":"/home/ada/notes.md","base":"/","home":"","forwardSlashes":true,"format":"home/ada/notes.md","abbreviate":"/home/ada/notes.md"}, + {"input":"/home/ada","base":"/","home":"","forwardSlashes":false,"format":"home/ada","abbreviate":"/home/ada"}, + {"input":"/home/ada","base":"/","home":"","forwardSlashes":true,"format":"home/ada","abbreviate":"/home/ada"}, + {"input":"/home/adam/file","base":"/","home":"","forwardSlashes":false,"format":"home/adam/file","abbreviate":"/home/adam/file"}, + {"input":"/home/adam/file","base":"/","home":"","forwardSlashes":true,"format":"home/adam/file","abbreviate":"/home/adam/file"}, + {"input":"/etc/hosts","base":"/","home":"","forwardSlashes":false,"format":"etc/hosts","abbreviate":"/etc/hosts"}, + {"input":"/etc/hosts","base":"/","home":"","forwardSlashes":true,"format":"etc/hosts","abbreviate":"/etc/hosts"}, + {"input":"/","base":"/","home":"","forwardSlashes":false,"format":".","abbreviate":"/"}, + {"input":"/","base":"/","home":"","forwardSlashes":true,"format":".","abbreviate":"/"}, + {"input":"//double//slash/","base":"/","home":"","forwardSlashes":false,"format":"double/slash","abbreviate":"//double//slash/"}, + {"input":"//double//slash/","base":"/","home":"","forwardSlashes":true,"format":"double/slash","abbreviate":"//double//slash/"}, + {"input":"..","base":"/","home":"","forwardSlashes":false,"format":".","abbreviate":".."}, + {"input":"..","base":"/","home":"","forwardSlashes":true,"format":".","abbreviate":".."}, + {"input":"~/literal","base":"/","home":"","forwardSlashes":false,"format":"~/literal","abbreviate":"~/literal"}, + {"input":"~/literal","base":"/","home":"","forwardSlashes":true,"format":"~/literal","abbreviate":"~/literal"}, + {"input":"C:\\Users\\ada\\file.txt","base":"/","home":"","forwardSlashes":false,"format":"C:\\Users\\ada\\file.txt","abbreviate":"C:\\Users\\ada\\file.txt"}, + {"input":"C:\\Users\\ada\\file.txt","base":"/","home":"","forwardSlashes":true,"format":"C:/Users/ada/file.txt","abbreviate":"C:\\Users\\ada\\file.txt"}, + {"input":"\\\\server\\share\\file","base":"/","home":"","forwardSlashes":false,"format":"\\\\server\\share\\file","abbreviate":"\\\\server\\share\\file"}, + {"input":"\\\\server\\share\\file","base":"/","home":"","forwardSlashes":true,"format":"//server/share/file","abbreviate":"\\\\server\\share\\file"}, + {"input":"","base":"/","home":"/home/ada/","forwardSlashes":false,"format":"","abbreviate":""}, + {"input":"","base":"/","home":"/home/ada/","forwardSlashes":true,"format":"","abbreviate":""}, + {"input":"/home/ada/src/app","base":"/","home":"/home/ada/","forwardSlashes":false,"format":"home/ada/src/app","abbreviate":"~/src/app"}, + {"input":"/home/ada/src/app","base":"/","home":"/home/ada/","forwardSlashes":true,"format":"home/ada/src/app","abbreviate":"~/src/app"}, + {"input":"/home/ada/src/app/lib/main.rs","base":"/","home":"/home/ada/","forwardSlashes":false,"format":"home/ada/src/app/lib/main.rs","abbreviate":"~/src/app/lib/main.rs"}, + {"input":"/home/ada/src/app/lib/main.rs","base":"/","home":"/home/ada/","forwardSlashes":true,"format":"home/ada/src/app/lib/main.rs","abbreviate":"~/src/app/lib/main.rs"}, + {"input":"lib/main.rs","base":"/","home":"/home/ada/","forwardSlashes":false,"format":"lib/main.rs","abbreviate":"lib/main.rs"}, + {"input":"lib/main.rs","base":"/","home":"/home/ada/","forwardSlashes":true,"format":"lib/main.rs","abbreviate":"lib/main.rs"}, + {"input":"./lib/../lib/./main.rs","base":"/","home":"/home/ada/","forwardSlashes":false,"format":"lib/main.rs","abbreviate":"./lib/../lib/./main.rs"}, + {"input":"./lib/../lib/./main.rs","base":"/","home":"/home/ada/","forwardSlashes":true,"format":"lib/main.rs","abbreviate":"./lib/../lib/./main.rs"}, + {"input":"../other/file","base":"/","home":"/home/ada/","forwardSlashes":false,"format":"other/file","abbreviate":"../other/file"}, + {"input":"../other/file","base":"/","home":"/home/ada/","forwardSlashes":true,"format":"other/file","abbreviate":"../other/file"}, + {"input":"/home/ada/notes.md","base":"/","home":"/home/ada/","forwardSlashes":false,"format":"home/ada/notes.md","abbreviate":"~/notes.md"}, + {"input":"/home/ada/notes.md","base":"/","home":"/home/ada/","forwardSlashes":true,"format":"home/ada/notes.md","abbreviate":"~/notes.md"}, + {"input":"/home/ada","base":"/","home":"/home/ada/","forwardSlashes":false,"format":"home/ada","abbreviate":"~"}, + {"input":"/home/ada","base":"/","home":"/home/ada/","forwardSlashes":true,"format":"home/ada","abbreviate":"~"}, + {"input":"/home/adam/file","base":"/","home":"/home/ada/","forwardSlashes":false,"format":"home/adam/file","abbreviate":"/home/adam/file"}, + {"input":"/home/adam/file","base":"/","home":"/home/ada/","forwardSlashes":true,"format":"home/adam/file","abbreviate":"/home/adam/file"}, + {"input":"/etc/hosts","base":"/","home":"/home/ada/","forwardSlashes":false,"format":"etc/hosts","abbreviate":"/etc/hosts"}, + {"input":"/etc/hosts","base":"/","home":"/home/ada/","forwardSlashes":true,"format":"etc/hosts","abbreviate":"/etc/hosts"}, + {"input":"/","base":"/","home":"/home/ada/","forwardSlashes":false,"format":".","abbreviate":"/"}, + {"input":"/","base":"/","home":"/home/ada/","forwardSlashes":true,"format":".","abbreviate":"/"}, + {"input":"//double//slash/","base":"/","home":"/home/ada/","forwardSlashes":false,"format":"double/slash","abbreviate":"//double//slash/"}, + {"input":"//double//slash/","base":"/","home":"/home/ada/","forwardSlashes":true,"format":"double/slash","abbreviate":"//double//slash/"}, + {"input":"..","base":"/","home":"/home/ada/","forwardSlashes":false,"format":".","abbreviate":".."}, + {"input":"..","base":"/","home":"/home/ada/","forwardSlashes":true,"format":".","abbreviate":".."}, + {"input":"~/literal","base":"/","home":"/home/ada/","forwardSlashes":false,"format":"~/literal","abbreviate":"~/literal"}, + {"input":"~/literal","base":"/","home":"/home/ada/","forwardSlashes":true,"format":"~/literal","abbreviate":"~/literal"}, + {"input":"C:\\Users\\ada\\file.txt","base":"/","home":"/home/ada/","forwardSlashes":false,"format":"C:\\Users\\ada\\file.txt","abbreviate":"C:\\Users\\ada\\file.txt"}, + {"input":"C:\\Users\\ada\\file.txt","base":"/","home":"/home/ada/","forwardSlashes":true,"format":"C:/Users/ada/file.txt","abbreviate":"C:\\Users\\ada\\file.txt"}, + {"input":"\\\\server\\share\\file","base":"/","home":"/home/ada/","forwardSlashes":false,"format":"\\\\server\\share\\file","abbreviate":"\\\\server\\share\\file"}, + {"input":"\\\\server\\share\\file","base":"/","home":"/home/ada/","forwardSlashes":true,"format":"//server/share/file","abbreviate":"\\\\server\\share\\file"}, + {"input":"","base":"/home/ada","home":"/home/ada","forwardSlashes":false,"format":"","abbreviate":""}, + {"input":"","base":"/home/ada","home":"/home/ada","forwardSlashes":true,"format":"","abbreviate":""}, + {"input":"/home/ada/src/app","base":"/home/ada","home":"/home/ada","forwardSlashes":false,"format":"src/app","abbreviate":"~/src/app"}, + {"input":"/home/ada/src/app","base":"/home/ada","home":"/home/ada","forwardSlashes":true,"format":"src/app","abbreviate":"~/src/app"}, + {"input":"/home/ada/src/app/lib/main.rs","base":"/home/ada","home":"/home/ada","forwardSlashes":false,"format":"src/app/lib/main.rs","abbreviate":"~/src/app/lib/main.rs"}, + {"input":"/home/ada/src/app/lib/main.rs","base":"/home/ada","home":"/home/ada","forwardSlashes":true,"format":"src/app/lib/main.rs","abbreviate":"~/src/app/lib/main.rs"}, + {"input":"lib/main.rs","base":"/home/ada","home":"/home/ada","forwardSlashes":false,"format":"lib/main.rs","abbreviate":"lib/main.rs"}, + {"input":"lib/main.rs","base":"/home/ada","home":"/home/ada","forwardSlashes":true,"format":"lib/main.rs","abbreviate":"lib/main.rs"}, + {"input":"./lib/../lib/./main.rs","base":"/home/ada","home":"/home/ada","forwardSlashes":false,"format":"lib/main.rs","abbreviate":"./lib/../lib/./main.rs"}, + {"input":"./lib/../lib/./main.rs","base":"/home/ada","home":"/home/ada","forwardSlashes":true,"format":"lib/main.rs","abbreviate":"./lib/../lib/./main.rs"}, + {"input":"../other/file","base":"/home/ada","home":"/home/ada","forwardSlashes":false,"format":"/home/other/file","abbreviate":"../other/file"}, + {"input":"../other/file","base":"/home/ada","home":"/home/ada","forwardSlashes":true,"format":"/home/other/file","abbreviate":"../other/file"}, + {"input":"/home/ada/notes.md","base":"/home/ada","home":"/home/ada","forwardSlashes":false,"format":"notes.md","abbreviate":"~/notes.md"}, + {"input":"/home/ada/notes.md","base":"/home/ada","home":"/home/ada","forwardSlashes":true,"format":"notes.md","abbreviate":"~/notes.md"}, + {"input":"/home/ada","base":"/home/ada","home":"/home/ada","forwardSlashes":false,"format":".","abbreviate":"~"}, + {"input":"/home/ada","base":"/home/ada","home":"/home/ada","forwardSlashes":true,"format":".","abbreviate":"~"}, + {"input":"/home/adam/file","base":"/home/ada","home":"/home/ada","forwardSlashes":false,"format":"/home/adam/file","abbreviate":"/home/adam/file"}, + {"input":"/home/adam/file","base":"/home/ada","home":"/home/ada","forwardSlashes":true,"format":"/home/adam/file","abbreviate":"/home/adam/file"}, + {"input":"/etc/hosts","base":"/home/ada","home":"/home/ada","forwardSlashes":false,"format":"/etc/hosts","abbreviate":"/etc/hosts"}, + {"input":"/etc/hosts","base":"/home/ada","home":"/home/ada","forwardSlashes":true,"format":"/etc/hosts","abbreviate":"/etc/hosts"}, + {"input":"/","base":"/home/ada","home":"/home/ada","forwardSlashes":false,"format":"/","abbreviate":"/"}, + {"input":"/","base":"/home/ada","home":"/home/ada","forwardSlashes":true,"format":"/","abbreviate":"/"}, + {"input":"//double//slash/","base":"/home/ada","home":"/home/ada","forwardSlashes":false,"format":"//double//slash/","abbreviate":"//double//slash/"}, + {"input":"//double//slash/","base":"/home/ada","home":"/home/ada","forwardSlashes":true,"format":"//double//slash/","abbreviate":"//double//slash/"}, + {"input":"..","base":"/home/ada","home":"/home/ada","forwardSlashes":false,"format":"/home","abbreviate":".."}, + {"input":"..","base":"/home/ada","home":"/home/ada","forwardSlashes":true,"format":"/home","abbreviate":".."}, + {"input":"~/literal","base":"/home/ada","home":"/home/ada","forwardSlashes":false,"format":"~/literal","abbreviate":"~/literal"}, + {"input":"~/literal","base":"/home/ada","home":"/home/ada","forwardSlashes":true,"format":"~/literal","abbreviate":"~/literal"}, + {"input":"C:\\Users\\ada\\file.txt","base":"/home/ada","home":"/home/ada","forwardSlashes":false,"format":"C:\\Users\\ada\\file.txt","abbreviate":"C:\\Users\\ada\\file.txt"}, + {"input":"C:\\Users\\ada\\file.txt","base":"/home/ada","home":"/home/ada","forwardSlashes":true,"format":"C:/Users/ada/file.txt","abbreviate":"C:\\Users\\ada\\file.txt"}, + {"input":"\\\\server\\share\\file","base":"/home/ada","home":"/home/ada","forwardSlashes":false,"format":"\\\\server\\share\\file","abbreviate":"\\\\server\\share\\file"}, + {"input":"\\\\server\\share\\file","base":"/home/ada","home":"/home/ada","forwardSlashes":true,"format":"//server/share/file","abbreviate":"\\\\server\\share\\file"}, + {"input":"","base":"/home/ada","home":"","forwardSlashes":false,"format":"","abbreviate":""}, + {"input":"","base":"/home/ada","home":"","forwardSlashes":true,"format":"","abbreviate":""}, + {"input":"/home/ada/src/app","base":"/home/ada","home":"","forwardSlashes":false,"format":"src/app","abbreviate":"/home/ada/src/app"}, + {"input":"/home/ada/src/app","base":"/home/ada","home":"","forwardSlashes":true,"format":"src/app","abbreviate":"/home/ada/src/app"}, + {"input":"/home/ada/src/app/lib/main.rs","base":"/home/ada","home":"","forwardSlashes":false,"format":"src/app/lib/main.rs","abbreviate":"/home/ada/src/app/lib/main.rs"}, + {"input":"/home/ada/src/app/lib/main.rs","base":"/home/ada","home":"","forwardSlashes":true,"format":"src/app/lib/main.rs","abbreviate":"/home/ada/src/app/lib/main.rs"}, + {"input":"lib/main.rs","base":"/home/ada","home":"","forwardSlashes":false,"format":"lib/main.rs","abbreviate":"lib/main.rs"}, + {"input":"lib/main.rs","base":"/home/ada","home":"","forwardSlashes":true,"format":"lib/main.rs","abbreviate":"lib/main.rs"}, + {"input":"./lib/../lib/./main.rs","base":"/home/ada","home":"","forwardSlashes":false,"format":"lib/main.rs","abbreviate":"./lib/../lib/./main.rs"}, + {"input":"./lib/../lib/./main.rs","base":"/home/ada","home":"","forwardSlashes":true,"format":"lib/main.rs","abbreviate":"./lib/../lib/./main.rs"}, + {"input":"../other/file","base":"/home/ada","home":"","forwardSlashes":false,"format":"/home/other/file","abbreviate":"../other/file"}, + {"input":"../other/file","base":"/home/ada","home":"","forwardSlashes":true,"format":"/home/other/file","abbreviate":"../other/file"}, + {"input":"/home/ada/notes.md","base":"/home/ada","home":"","forwardSlashes":false,"format":"notes.md","abbreviate":"/home/ada/notes.md"}, + {"input":"/home/ada/notes.md","base":"/home/ada","home":"","forwardSlashes":true,"format":"notes.md","abbreviate":"/home/ada/notes.md"}, + {"input":"/home/ada","base":"/home/ada","home":"","forwardSlashes":false,"format":".","abbreviate":"/home/ada"}, + {"input":"/home/ada","base":"/home/ada","home":"","forwardSlashes":true,"format":".","abbreviate":"/home/ada"}, + {"input":"/home/adam/file","base":"/home/ada","home":"","forwardSlashes":false,"format":"/home/adam/file","abbreviate":"/home/adam/file"}, + {"input":"/home/adam/file","base":"/home/ada","home":"","forwardSlashes":true,"format":"/home/adam/file","abbreviate":"/home/adam/file"}, + {"input":"/etc/hosts","base":"/home/ada","home":"","forwardSlashes":false,"format":"/etc/hosts","abbreviate":"/etc/hosts"}, + {"input":"/etc/hosts","base":"/home/ada","home":"","forwardSlashes":true,"format":"/etc/hosts","abbreviate":"/etc/hosts"}, + {"input":"/","base":"/home/ada","home":"","forwardSlashes":false,"format":"/","abbreviate":"/"}, + {"input":"/","base":"/home/ada","home":"","forwardSlashes":true,"format":"/","abbreviate":"/"}, + {"input":"//double//slash/","base":"/home/ada","home":"","forwardSlashes":false,"format":"//double//slash/","abbreviate":"//double//slash/"}, + {"input":"//double//slash/","base":"/home/ada","home":"","forwardSlashes":true,"format":"//double//slash/","abbreviate":"//double//slash/"}, + {"input":"..","base":"/home/ada","home":"","forwardSlashes":false,"format":"/home","abbreviate":".."}, + {"input":"..","base":"/home/ada","home":"","forwardSlashes":true,"format":"/home","abbreviate":".."}, + {"input":"~/literal","base":"/home/ada","home":"","forwardSlashes":false,"format":"~/literal","abbreviate":"~/literal"}, + {"input":"~/literal","base":"/home/ada","home":"","forwardSlashes":true,"format":"~/literal","abbreviate":"~/literal"}, + {"input":"C:\\Users\\ada\\file.txt","base":"/home/ada","home":"","forwardSlashes":false,"format":"C:\\Users\\ada\\file.txt","abbreviate":"C:\\Users\\ada\\file.txt"}, + {"input":"C:\\Users\\ada\\file.txt","base":"/home/ada","home":"","forwardSlashes":true,"format":"C:/Users/ada/file.txt","abbreviate":"C:\\Users\\ada\\file.txt"}, + {"input":"\\\\server\\share\\file","base":"/home/ada","home":"","forwardSlashes":false,"format":"\\\\server\\share\\file","abbreviate":"\\\\server\\share\\file"}, + {"input":"\\\\server\\share\\file","base":"/home/ada","home":"","forwardSlashes":true,"format":"//server/share/file","abbreviate":"\\\\server\\share\\file"}, + {"input":"","base":"/home/ada","home":"/home/ada/","forwardSlashes":false,"format":"","abbreviate":""}, + {"input":"","base":"/home/ada","home":"/home/ada/","forwardSlashes":true,"format":"","abbreviate":""}, + {"input":"/home/ada/src/app","base":"/home/ada","home":"/home/ada/","forwardSlashes":false,"format":"src/app","abbreviate":"~/src/app"}, + {"input":"/home/ada/src/app","base":"/home/ada","home":"/home/ada/","forwardSlashes":true,"format":"src/app","abbreviate":"~/src/app"}, + {"input":"/home/ada/src/app/lib/main.rs","base":"/home/ada","home":"/home/ada/","forwardSlashes":false,"format":"src/app/lib/main.rs","abbreviate":"~/src/app/lib/main.rs"}, + {"input":"/home/ada/src/app/lib/main.rs","base":"/home/ada","home":"/home/ada/","forwardSlashes":true,"format":"src/app/lib/main.rs","abbreviate":"~/src/app/lib/main.rs"}, + {"input":"lib/main.rs","base":"/home/ada","home":"/home/ada/","forwardSlashes":false,"format":"lib/main.rs","abbreviate":"lib/main.rs"}, + {"input":"lib/main.rs","base":"/home/ada","home":"/home/ada/","forwardSlashes":true,"format":"lib/main.rs","abbreviate":"lib/main.rs"}, + {"input":"./lib/../lib/./main.rs","base":"/home/ada","home":"/home/ada/","forwardSlashes":false,"format":"lib/main.rs","abbreviate":"./lib/../lib/./main.rs"}, + {"input":"./lib/../lib/./main.rs","base":"/home/ada","home":"/home/ada/","forwardSlashes":true,"format":"lib/main.rs","abbreviate":"./lib/../lib/./main.rs"}, + {"input":"../other/file","base":"/home/ada","home":"/home/ada/","forwardSlashes":false,"format":"/home/other/file","abbreviate":"../other/file"}, + {"input":"../other/file","base":"/home/ada","home":"/home/ada/","forwardSlashes":true,"format":"/home/other/file","abbreviate":"../other/file"}, + {"input":"/home/ada/notes.md","base":"/home/ada","home":"/home/ada/","forwardSlashes":false,"format":"notes.md","abbreviate":"~/notes.md"}, + {"input":"/home/ada/notes.md","base":"/home/ada","home":"/home/ada/","forwardSlashes":true,"format":"notes.md","abbreviate":"~/notes.md"}, + {"input":"/home/ada","base":"/home/ada","home":"/home/ada/","forwardSlashes":false,"format":".","abbreviate":"~"}, + {"input":"/home/ada","base":"/home/ada","home":"/home/ada/","forwardSlashes":true,"format":".","abbreviate":"~"}, + {"input":"/home/adam/file","base":"/home/ada","home":"/home/ada/","forwardSlashes":false,"format":"/home/adam/file","abbreviate":"/home/adam/file"}, + {"input":"/home/adam/file","base":"/home/ada","home":"/home/ada/","forwardSlashes":true,"format":"/home/adam/file","abbreviate":"/home/adam/file"}, + {"input":"/etc/hosts","base":"/home/ada","home":"/home/ada/","forwardSlashes":false,"format":"/etc/hosts","abbreviate":"/etc/hosts"}, + {"input":"/etc/hosts","base":"/home/ada","home":"/home/ada/","forwardSlashes":true,"format":"/etc/hosts","abbreviate":"/etc/hosts"}, + {"input":"/","base":"/home/ada","home":"/home/ada/","forwardSlashes":false,"format":"/","abbreviate":"/"}, + {"input":"/","base":"/home/ada","home":"/home/ada/","forwardSlashes":true,"format":"/","abbreviate":"/"}, + {"input":"//double//slash/","base":"/home/ada","home":"/home/ada/","forwardSlashes":false,"format":"//double//slash/","abbreviate":"//double//slash/"}, + {"input":"//double//slash/","base":"/home/ada","home":"/home/ada/","forwardSlashes":true,"format":"//double//slash/","abbreviate":"//double//slash/"}, + {"input":"..","base":"/home/ada","home":"/home/ada/","forwardSlashes":false,"format":"/home","abbreviate":".."}, + {"input":"..","base":"/home/ada","home":"/home/ada/","forwardSlashes":true,"format":"/home","abbreviate":".."}, + {"input":"~/literal","base":"/home/ada","home":"/home/ada/","forwardSlashes":false,"format":"~/literal","abbreviate":"~/literal"}, + {"input":"~/literal","base":"/home/ada","home":"/home/ada/","forwardSlashes":true,"format":"~/literal","abbreviate":"~/literal"}, + {"input":"C:\\Users\\ada\\file.txt","base":"/home/ada","home":"/home/ada/","forwardSlashes":false,"format":"C:\\Users\\ada\\file.txt","abbreviate":"C:\\Users\\ada\\file.txt"}, + {"input":"C:\\Users\\ada\\file.txt","base":"/home/ada","home":"/home/ada/","forwardSlashes":true,"format":"C:/Users/ada/file.txt","abbreviate":"C:\\Users\\ada\\file.txt"}, + {"input":"\\\\server\\share\\file","base":"/home/ada","home":"/home/ada/","forwardSlashes":false,"format":"\\\\server\\share\\file","abbreviate":"\\\\server\\share\\file"}, + {"input":"\\\\server\\share\\file","base":"/home/ada","home":"/home/ada/","forwardSlashes":true,"format":"//server/share/file","abbreviate":"\\\\server\\share\\file"}, + {"input":"","base":"/tmp/x/","home":"/home/ada","forwardSlashes":false,"format":"","abbreviate":""}, + {"input":"","base":"/tmp/x/","home":"/home/ada","forwardSlashes":true,"format":"","abbreviate":""}, + {"input":"/home/ada/src/app","base":"/tmp/x/","home":"/home/ada","forwardSlashes":false,"format":"~/src/app","abbreviate":"~/src/app"}, + {"input":"/home/ada/src/app","base":"/tmp/x/","home":"/home/ada","forwardSlashes":true,"format":"~/src/app","abbreviate":"~/src/app"}, + {"input":"/home/ada/src/app/lib/main.rs","base":"/tmp/x/","home":"/home/ada","forwardSlashes":false,"format":"~/src/app/lib/main.rs","abbreviate":"~/src/app/lib/main.rs"}, + {"input":"/home/ada/src/app/lib/main.rs","base":"/tmp/x/","home":"/home/ada","forwardSlashes":true,"format":"~/src/app/lib/main.rs","abbreviate":"~/src/app/lib/main.rs"}, + {"input":"lib/main.rs","base":"/tmp/x/","home":"/home/ada","forwardSlashes":false,"format":"lib/main.rs","abbreviate":"lib/main.rs"}, + {"input":"lib/main.rs","base":"/tmp/x/","home":"/home/ada","forwardSlashes":true,"format":"lib/main.rs","abbreviate":"lib/main.rs"}, + {"input":"./lib/../lib/./main.rs","base":"/tmp/x/","home":"/home/ada","forwardSlashes":false,"format":"lib/main.rs","abbreviate":"./lib/../lib/./main.rs"}, + {"input":"./lib/../lib/./main.rs","base":"/tmp/x/","home":"/home/ada","forwardSlashes":true,"format":"lib/main.rs","abbreviate":"./lib/../lib/./main.rs"}, + {"input":"../other/file","base":"/tmp/x/","home":"/home/ada","forwardSlashes":false,"format":"/tmp/other/file","abbreviate":"../other/file"}, + {"input":"../other/file","base":"/tmp/x/","home":"/home/ada","forwardSlashes":true,"format":"/tmp/other/file","abbreviate":"../other/file"}, + {"input":"/home/ada/notes.md","base":"/tmp/x/","home":"/home/ada","forwardSlashes":false,"format":"~/notes.md","abbreviate":"~/notes.md"}, + {"input":"/home/ada/notes.md","base":"/tmp/x/","home":"/home/ada","forwardSlashes":true,"format":"~/notes.md","abbreviate":"~/notes.md"}, + {"input":"/home/ada","base":"/tmp/x/","home":"/home/ada","forwardSlashes":false,"format":"~","abbreviate":"~"}, + {"input":"/home/ada","base":"/tmp/x/","home":"/home/ada","forwardSlashes":true,"format":"~","abbreviate":"~"}, + {"input":"/home/adam/file","base":"/tmp/x/","home":"/home/ada","forwardSlashes":false,"format":"/home/adam/file","abbreviate":"/home/adam/file"}, + {"input":"/home/adam/file","base":"/tmp/x/","home":"/home/ada","forwardSlashes":true,"format":"/home/adam/file","abbreviate":"/home/adam/file"}, + {"input":"/etc/hosts","base":"/tmp/x/","home":"/home/ada","forwardSlashes":false,"format":"/etc/hosts","abbreviate":"/etc/hosts"}, + {"input":"/etc/hosts","base":"/tmp/x/","home":"/home/ada","forwardSlashes":true,"format":"/etc/hosts","abbreviate":"/etc/hosts"}, + {"input":"/","base":"/tmp/x/","home":"/home/ada","forwardSlashes":false,"format":"/","abbreviate":"/"}, + {"input":"/","base":"/tmp/x/","home":"/home/ada","forwardSlashes":true,"format":"/","abbreviate":"/"}, + {"input":"//double//slash/","base":"/tmp/x/","home":"/home/ada","forwardSlashes":false,"format":"//double//slash/","abbreviate":"//double//slash/"}, + {"input":"//double//slash/","base":"/tmp/x/","home":"/home/ada","forwardSlashes":true,"format":"//double//slash/","abbreviate":"//double//slash/"}, + {"input":"..","base":"/tmp/x/","home":"/home/ada","forwardSlashes":false,"format":"/tmp","abbreviate":".."}, + {"input":"..","base":"/tmp/x/","home":"/home/ada","forwardSlashes":true,"format":"/tmp","abbreviate":".."}, + {"input":"~/literal","base":"/tmp/x/","home":"/home/ada","forwardSlashes":false,"format":"~/literal","abbreviate":"~/literal"}, + {"input":"~/literal","base":"/tmp/x/","home":"/home/ada","forwardSlashes":true,"format":"~/literal","abbreviate":"~/literal"}, + {"input":"C:\\Users\\ada\\file.txt","base":"/tmp/x/","home":"/home/ada","forwardSlashes":false,"format":"C:\\Users\\ada\\file.txt","abbreviate":"C:\\Users\\ada\\file.txt"}, + {"input":"C:\\Users\\ada\\file.txt","base":"/tmp/x/","home":"/home/ada","forwardSlashes":true,"format":"C:/Users/ada/file.txt","abbreviate":"C:\\Users\\ada\\file.txt"}, + {"input":"\\\\server\\share\\file","base":"/tmp/x/","home":"/home/ada","forwardSlashes":false,"format":"\\\\server\\share\\file","abbreviate":"\\\\server\\share\\file"}, + {"input":"\\\\server\\share\\file","base":"/tmp/x/","home":"/home/ada","forwardSlashes":true,"format":"//server/share/file","abbreviate":"\\\\server\\share\\file"}, + {"input":"","base":"/tmp/x/","home":"","forwardSlashes":false,"format":"","abbreviate":""}, + {"input":"","base":"/tmp/x/","home":"","forwardSlashes":true,"format":"","abbreviate":""}, + {"input":"/home/ada/src/app","base":"/tmp/x/","home":"","forwardSlashes":false,"format":"/home/ada/src/app","abbreviate":"/home/ada/src/app"}, + {"input":"/home/ada/src/app","base":"/tmp/x/","home":"","forwardSlashes":true,"format":"/home/ada/src/app","abbreviate":"/home/ada/src/app"}, + {"input":"/home/ada/src/app/lib/main.rs","base":"/tmp/x/","home":"","forwardSlashes":false,"format":"/home/ada/src/app/lib/main.rs","abbreviate":"/home/ada/src/app/lib/main.rs"}, + {"input":"/home/ada/src/app/lib/main.rs","base":"/tmp/x/","home":"","forwardSlashes":true,"format":"/home/ada/src/app/lib/main.rs","abbreviate":"/home/ada/src/app/lib/main.rs"}, + {"input":"lib/main.rs","base":"/tmp/x/","home":"","forwardSlashes":false,"format":"lib/main.rs","abbreviate":"lib/main.rs"}, + {"input":"lib/main.rs","base":"/tmp/x/","home":"","forwardSlashes":true,"format":"lib/main.rs","abbreviate":"lib/main.rs"}, + {"input":"./lib/../lib/./main.rs","base":"/tmp/x/","home":"","forwardSlashes":false,"format":"lib/main.rs","abbreviate":"./lib/../lib/./main.rs"}, + {"input":"./lib/../lib/./main.rs","base":"/tmp/x/","home":"","forwardSlashes":true,"format":"lib/main.rs","abbreviate":"./lib/../lib/./main.rs"}, + {"input":"../other/file","base":"/tmp/x/","home":"","forwardSlashes":false,"format":"/tmp/other/file","abbreviate":"../other/file"}, + {"input":"../other/file","base":"/tmp/x/","home":"","forwardSlashes":true,"format":"/tmp/other/file","abbreviate":"../other/file"}, + {"input":"/home/ada/notes.md","base":"/tmp/x/","home":"","forwardSlashes":false,"format":"/home/ada/notes.md","abbreviate":"/home/ada/notes.md"}, + {"input":"/home/ada/notes.md","base":"/tmp/x/","home":"","forwardSlashes":true,"format":"/home/ada/notes.md","abbreviate":"/home/ada/notes.md"}, + {"input":"/home/ada","base":"/tmp/x/","home":"","forwardSlashes":false,"format":"/home/ada","abbreviate":"/home/ada"}, + {"input":"/home/ada","base":"/tmp/x/","home":"","forwardSlashes":true,"format":"/home/ada","abbreviate":"/home/ada"}, + {"input":"/home/adam/file","base":"/tmp/x/","home":"","forwardSlashes":false,"format":"/home/adam/file","abbreviate":"/home/adam/file"}, + {"input":"/home/adam/file","base":"/tmp/x/","home":"","forwardSlashes":true,"format":"/home/adam/file","abbreviate":"/home/adam/file"}, + {"input":"/etc/hosts","base":"/tmp/x/","home":"","forwardSlashes":false,"format":"/etc/hosts","abbreviate":"/etc/hosts"}, + {"input":"/etc/hosts","base":"/tmp/x/","home":"","forwardSlashes":true,"format":"/etc/hosts","abbreviate":"/etc/hosts"}, + {"input":"/","base":"/tmp/x/","home":"","forwardSlashes":false,"format":"/","abbreviate":"/"}, + {"input":"/","base":"/tmp/x/","home":"","forwardSlashes":true,"format":"/","abbreviate":"/"}, + {"input":"//double//slash/","base":"/tmp/x/","home":"","forwardSlashes":false,"format":"//double//slash/","abbreviate":"//double//slash/"}, + {"input":"//double//slash/","base":"/tmp/x/","home":"","forwardSlashes":true,"format":"//double//slash/","abbreviate":"//double//slash/"}, + {"input":"..","base":"/tmp/x/","home":"","forwardSlashes":false,"format":"/tmp","abbreviate":".."}, + {"input":"..","base":"/tmp/x/","home":"","forwardSlashes":true,"format":"/tmp","abbreviate":".."}, + {"input":"~/literal","base":"/tmp/x/","home":"","forwardSlashes":false,"format":"~/literal","abbreviate":"~/literal"}, + {"input":"~/literal","base":"/tmp/x/","home":"","forwardSlashes":true,"format":"~/literal","abbreviate":"~/literal"}, + {"input":"C:\\Users\\ada\\file.txt","base":"/tmp/x/","home":"","forwardSlashes":false,"format":"C:\\Users\\ada\\file.txt","abbreviate":"C:\\Users\\ada\\file.txt"}, + {"input":"C:\\Users\\ada\\file.txt","base":"/tmp/x/","home":"","forwardSlashes":true,"format":"C:/Users/ada/file.txt","abbreviate":"C:\\Users\\ada\\file.txt"}, + {"input":"\\\\server\\share\\file","base":"/tmp/x/","home":"","forwardSlashes":false,"format":"\\\\server\\share\\file","abbreviate":"\\\\server\\share\\file"}, + {"input":"\\\\server\\share\\file","base":"/tmp/x/","home":"","forwardSlashes":true,"format":"//server/share/file","abbreviate":"\\\\server\\share\\file"}, + {"input":"","base":"/tmp/x/","home":"/home/ada/","forwardSlashes":false,"format":"","abbreviate":""}, + {"input":"","base":"/tmp/x/","home":"/home/ada/","forwardSlashes":true,"format":"","abbreviate":""}, + {"input":"/home/ada/src/app","base":"/tmp/x/","home":"/home/ada/","forwardSlashes":false,"format":"~/src/app","abbreviate":"~/src/app"}, + {"input":"/home/ada/src/app","base":"/tmp/x/","home":"/home/ada/","forwardSlashes":true,"format":"~/src/app","abbreviate":"~/src/app"}, + {"input":"/home/ada/src/app/lib/main.rs","base":"/tmp/x/","home":"/home/ada/","forwardSlashes":false,"format":"~/src/app/lib/main.rs","abbreviate":"~/src/app/lib/main.rs"}, + {"input":"/home/ada/src/app/lib/main.rs","base":"/tmp/x/","home":"/home/ada/","forwardSlashes":true,"format":"~/src/app/lib/main.rs","abbreviate":"~/src/app/lib/main.rs"}, + {"input":"lib/main.rs","base":"/tmp/x/","home":"/home/ada/","forwardSlashes":false,"format":"lib/main.rs","abbreviate":"lib/main.rs"}, + {"input":"lib/main.rs","base":"/tmp/x/","home":"/home/ada/","forwardSlashes":true,"format":"lib/main.rs","abbreviate":"lib/main.rs"}, + {"input":"./lib/../lib/./main.rs","base":"/tmp/x/","home":"/home/ada/","forwardSlashes":false,"format":"lib/main.rs","abbreviate":"./lib/../lib/./main.rs"}, + {"input":"./lib/../lib/./main.rs","base":"/tmp/x/","home":"/home/ada/","forwardSlashes":true,"format":"lib/main.rs","abbreviate":"./lib/../lib/./main.rs"}, + {"input":"../other/file","base":"/tmp/x/","home":"/home/ada/","forwardSlashes":false,"format":"/tmp/other/file","abbreviate":"../other/file"}, + {"input":"../other/file","base":"/tmp/x/","home":"/home/ada/","forwardSlashes":true,"format":"/tmp/other/file","abbreviate":"../other/file"}, + {"input":"/home/ada/notes.md","base":"/tmp/x/","home":"/home/ada/","forwardSlashes":false,"format":"~/notes.md","abbreviate":"~/notes.md"}, + {"input":"/home/ada/notes.md","base":"/tmp/x/","home":"/home/ada/","forwardSlashes":true,"format":"~/notes.md","abbreviate":"~/notes.md"}, + {"input":"/home/ada","base":"/tmp/x/","home":"/home/ada/","forwardSlashes":false,"format":"~","abbreviate":"~"}, + {"input":"/home/ada","base":"/tmp/x/","home":"/home/ada/","forwardSlashes":true,"format":"~","abbreviate":"~"}, + {"input":"/home/adam/file","base":"/tmp/x/","home":"/home/ada/","forwardSlashes":false,"format":"/home/adam/file","abbreviate":"/home/adam/file"}, + {"input":"/home/adam/file","base":"/tmp/x/","home":"/home/ada/","forwardSlashes":true,"format":"/home/adam/file","abbreviate":"/home/adam/file"}, + {"input":"/etc/hosts","base":"/tmp/x/","home":"/home/ada/","forwardSlashes":false,"format":"/etc/hosts","abbreviate":"/etc/hosts"}, + {"input":"/etc/hosts","base":"/tmp/x/","home":"/home/ada/","forwardSlashes":true,"format":"/etc/hosts","abbreviate":"/etc/hosts"}, + {"input":"/","base":"/tmp/x/","home":"/home/ada/","forwardSlashes":false,"format":"/","abbreviate":"/"}, + {"input":"/","base":"/tmp/x/","home":"/home/ada/","forwardSlashes":true,"format":"/","abbreviate":"/"}, + {"input":"//double//slash/","base":"/tmp/x/","home":"/home/ada/","forwardSlashes":false,"format":"//double//slash/","abbreviate":"//double//slash/"}, + {"input":"//double//slash/","base":"/tmp/x/","home":"/home/ada/","forwardSlashes":true,"format":"//double//slash/","abbreviate":"//double//slash/"}, + {"input":"..","base":"/tmp/x/","home":"/home/ada/","forwardSlashes":false,"format":"/tmp","abbreviate":".."}, + {"input":"..","base":"/tmp/x/","home":"/home/ada/","forwardSlashes":true,"format":"/tmp","abbreviate":".."}, + {"input":"~/literal","base":"/tmp/x/","home":"/home/ada/","forwardSlashes":false,"format":"~/literal","abbreviate":"~/literal"}, + {"input":"~/literal","base":"/tmp/x/","home":"/home/ada/","forwardSlashes":true,"format":"~/literal","abbreviate":"~/literal"}, + {"input":"C:\\Users\\ada\\file.txt","base":"/tmp/x/","home":"/home/ada/","forwardSlashes":false,"format":"C:\\Users\\ada\\file.txt","abbreviate":"C:\\Users\\ada\\file.txt"}, + {"input":"C:\\Users\\ada\\file.txt","base":"/tmp/x/","home":"/home/ada/","forwardSlashes":true,"format":"C:/Users/ada/file.txt","abbreviate":"C:\\Users\\ada\\file.txt"}, + {"input":"\\\\server\\share\\file","base":"/tmp/x/","home":"/home/ada/","forwardSlashes":false,"format":"\\\\server\\share\\file","abbreviate":"\\\\server\\share\\file"}, + {"input":"\\\\server\\share\\file","base":"/tmp/x/","home":"/home/ada/","forwardSlashes":true,"format":"//server/share/file","abbreviate":"\\\\server\\share\\file"}, + {"input":"C:\\Users\\ada\\src\\app\\lib\\main.rs","base":"C:\\Users\\ada\\src\\app","home":"C:\\Users\\ada","forwardSlashes":false,"format":"lib\\main.rs","abbreviate":"~/src/app/lib/main.rs"}, + {"input":"C:\\Users\\ada\\src\\app\\lib\\main.rs","base":"C:\\Users\\ada\\src\\app","home":"C:\\Users\\ada","forwardSlashes":true,"format":"lib/main.rs","abbreviate":"~/src/app/lib/main.rs"}, + {"input":"c:\\users\\ada\\src\\app\\x","base":"C:\\Users\\ada\\src\\app","home":"C:\\Users\\ada","forwardSlashes":false,"format":"x","abbreviate":"~/src/app/x"}, + {"input":"c:\\users\\ada\\src\\app\\x","base":"C:\\Users\\ada\\src\\app","home":"C:\\Users\\ada","forwardSlashes":true,"format":"x","abbreviate":"~/src/app/x"}, + {"input":"lib\\main.rs","base":"C:\\Users\\ada\\src\\app","home":"C:\\Users\\ada","forwardSlashes":false,"format":"lib\\main.rs","abbreviate":"lib\\main.rs"}, + {"input":"lib\\main.rs","base":"C:\\Users\\ada\\src\\app","home":"C:\\Users\\ada","forwardSlashes":true,"format":"lib/main.rs","abbreviate":"lib\\main.rs"}, + {"input":"lib/main.rs","base":"C:\\Users\\ada\\src\\app","home":"C:\\Users\\ada","forwardSlashes":false,"format":"lib\\main.rs","abbreviate":"lib/main.rs"}, + {"input":"lib/main.rs","base":"C:\\Users\\ada\\src\\app","home":"C:\\Users\\ada","forwardSlashes":true,"format":"lib/main.rs","abbreviate":"lib/main.rs"}, + {"input":"..\\other","base":"C:\\Users\\ada\\src\\app","home":"C:\\Users\\ada","forwardSlashes":false,"format":"~/src/other","abbreviate":"..\\other"}, + {"input":"..\\other","base":"C:\\Users\\ada\\src\\app","home":"C:\\Users\\ada","forwardSlashes":true,"format":"~/src/other","abbreviate":"..\\other"}, + {"input":"C:\\Users\\ada\\notes.md","base":"C:\\Users\\ada\\src\\app","home":"C:\\Users\\ada","forwardSlashes":false,"format":"~/notes.md","abbreviate":"~/notes.md"}, + {"input":"C:\\Users\\ada\\notes.md","base":"C:\\Users\\ada\\src\\app","home":"C:\\Users\\ada","forwardSlashes":true,"format":"~/notes.md","abbreviate":"~/notes.md"}, + {"input":"D:\\data\\file","base":"C:\\Users\\ada\\src\\app","home":"C:\\Users\\ada","forwardSlashes":false,"format":"D:\\data\\file","abbreviate":"D:\\data\\file"}, + {"input":"D:\\data\\file","base":"C:\\Users\\ada\\src\\app","home":"C:\\Users\\ada","forwardSlashes":true,"format":"D:/data/file","abbreviate":"D:\\data\\file"}, + {"input":"C:\\","base":"C:\\Users\\ada\\src\\app","home":"C:\\Users\\ada","forwardSlashes":false,"format":"C:\\","abbreviate":"C:\\"}, + {"input":"C:\\","base":"C:\\Users\\ada\\src\\app","home":"C:\\Users\\ada","forwardSlashes":true,"format":"C:/","abbreviate":"C:\\"}, + {"input":"\\\\server\\share\\dir\\file","base":"C:\\Users\\ada\\src\\app","home":"C:\\Users\\ada","forwardSlashes":false,"format":"\\\\server\\share\\dir\\file","abbreviate":"\\\\server\\share\\dir\\file"}, + {"input":"\\\\server\\share\\dir\\file","base":"C:\\Users\\ada\\src\\app","home":"C:\\Users\\ada","forwardSlashes":true,"format":"//server/share/dir/file","abbreviate":"\\\\server\\share\\dir\\file"}, + {"input":"/home/ada/file","base":"C:\\Users\\ada\\src\\app","home":"C:\\Users\\ada","forwardSlashes":false,"format":"/home/ada/file","abbreviate":"/home/ada/file"}, + {"input":"/home/ada/file","base":"C:\\Users\\ada\\src\\app","home":"C:\\Users\\ada","forwardSlashes":true,"format":"/home/ada/file","abbreviate":"/home/ada/file"}, + {"input":"C:\\Users\\ada\\src\\app\\lib\\main.rs","base":"C:\\Users\\ada\\src\\app","home":"","forwardSlashes":false,"format":"lib\\main.rs","abbreviate":"C:\\Users\\ada\\src\\app\\lib\\main.rs"}, + {"input":"C:\\Users\\ada\\src\\app\\lib\\main.rs","base":"C:\\Users\\ada\\src\\app","home":"","forwardSlashes":true,"format":"lib/main.rs","abbreviate":"C:\\Users\\ada\\src\\app\\lib\\main.rs"}, + {"input":"c:\\users\\ada\\src\\app\\x","base":"C:\\Users\\ada\\src\\app","home":"","forwardSlashes":false,"format":"x","abbreviate":"c:\\users\\ada\\src\\app\\x"}, + {"input":"c:\\users\\ada\\src\\app\\x","base":"C:\\Users\\ada\\src\\app","home":"","forwardSlashes":true,"format":"x","abbreviate":"c:\\users\\ada\\src\\app\\x"}, + {"input":"lib\\main.rs","base":"C:\\Users\\ada\\src\\app","home":"","forwardSlashes":false,"format":"lib\\main.rs","abbreviate":"lib\\main.rs"}, + {"input":"lib\\main.rs","base":"C:\\Users\\ada\\src\\app","home":"","forwardSlashes":true,"format":"lib/main.rs","abbreviate":"lib\\main.rs"}, + {"input":"lib/main.rs","base":"C:\\Users\\ada\\src\\app","home":"","forwardSlashes":false,"format":"lib\\main.rs","abbreviate":"lib/main.rs"}, + {"input":"lib/main.rs","base":"C:\\Users\\ada\\src\\app","home":"","forwardSlashes":true,"format":"lib/main.rs","abbreviate":"lib/main.rs"}, + {"input":"..\\other","base":"C:\\Users\\ada\\src\\app","home":"","forwardSlashes":false,"format":"C:\\Users\\ada\\src\\other","abbreviate":"..\\other"}, + {"input":"..\\other","base":"C:\\Users\\ada\\src\\app","home":"","forwardSlashes":true,"format":"C:/Users/ada/src/other","abbreviate":"..\\other"}, + {"input":"C:\\Users\\ada\\notes.md","base":"C:\\Users\\ada\\src\\app","home":"","forwardSlashes":false,"format":"C:\\Users\\ada\\notes.md","abbreviate":"C:\\Users\\ada\\notes.md"}, + {"input":"C:\\Users\\ada\\notes.md","base":"C:\\Users\\ada\\src\\app","home":"","forwardSlashes":true,"format":"C:/Users/ada/notes.md","abbreviate":"C:\\Users\\ada\\notes.md"}, + {"input":"D:\\data\\file","base":"C:\\Users\\ada\\src\\app","home":"","forwardSlashes":false,"format":"D:\\data\\file","abbreviate":"D:\\data\\file"}, + {"input":"D:\\data\\file","base":"C:\\Users\\ada\\src\\app","home":"","forwardSlashes":true,"format":"D:/data/file","abbreviate":"D:\\data\\file"}, + {"input":"C:\\","base":"C:\\Users\\ada\\src\\app","home":"","forwardSlashes":false,"format":"C:\\","abbreviate":"C:\\"}, + {"input":"C:\\","base":"C:\\Users\\ada\\src\\app","home":"","forwardSlashes":true,"format":"C:/","abbreviate":"C:\\"}, + {"input":"\\\\server\\share\\dir\\file","base":"C:\\Users\\ada\\src\\app","home":"","forwardSlashes":false,"format":"\\\\server\\share\\dir\\file","abbreviate":"\\\\server\\share\\dir\\file"}, + {"input":"\\\\server\\share\\dir\\file","base":"C:\\Users\\ada\\src\\app","home":"","forwardSlashes":true,"format":"//server/share/dir/file","abbreviate":"\\\\server\\share\\dir\\file"}, + {"input":"/home/ada/file","base":"C:\\Users\\ada\\src\\app","home":"","forwardSlashes":false,"format":"/home/ada/file","abbreviate":"/home/ada/file"}, + {"input":"/home/ada/file","base":"C:\\Users\\ada\\src\\app","home":"","forwardSlashes":true,"format":"/home/ada/file","abbreviate":"/home/ada/file"}, + {"input":"C:\\Users\\ada\\src\\app\\lib\\main.rs","base":"c:/Users/ada","home":"C:\\Users\\ada","forwardSlashes":false,"format":"src\\app\\lib\\main.rs","abbreviate":"~/src/app/lib/main.rs"}, + {"input":"C:\\Users\\ada\\src\\app\\lib\\main.rs","base":"c:/Users/ada","home":"C:\\Users\\ada","forwardSlashes":true,"format":"src/app/lib/main.rs","abbreviate":"~/src/app/lib/main.rs"}, + {"input":"c:\\users\\ada\\src\\app\\x","base":"c:/Users/ada","home":"C:\\Users\\ada","forwardSlashes":false,"format":"src\\app\\x","abbreviate":"~/src/app/x"}, + {"input":"c:\\users\\ada\\src\\app\\x","base":"c:/Users/ada","home":"C:\\Users\\ada","forwardSlashes":true,"format":"src/app/x","abbreviate":"~/src/app/x"}, + {"input":"lib\\main.rs","base":"c:/Users/ada","home":"C:\\Users\\ada","forwardSlashes":false,"format":"lib\\main.rs","abbreviate":"lib\\main.rs"}, + {"input":"lib\\main.rs","base":"c:/Users/ada","home":"C:\\Users\\ada","forwardSlashes":true,"format":"lib/main.rs","abbreviate":"lib\\main.rs"}, + {"input":"lib/main.rs","base":"c:/Users/ada","home":"C:\\Users\\ada","forwardSlashes":false,"format":"lib\\main.rs","abbreviate":"lib/main.rs"}, + {"input":"lib/main.rs","base":"c:/Users/ada","home":"C:\\Users\\ada","forwardSlashes":true,"format":"lib/main.rs","abbreviate":"lib/main.rs"}, + {"input":"..\\other","base":"c:/Users/ada","home":"C:\\Users\\ada","forwardSlashes":false,"format":"c:\\Users\\other","abbreviate":"..\\other"}, + {"input":"..\\other","base":"c:/Users/ada","home":"C:\\Users\\ada","forwardSlashes":true,"format":"c:/Users/other","abbreviate":"..\\other"}, + {"input":"C:\\Users\\ada\\notes.md","base":"c:/Users/ada","home":"C:\\Users\\ada","forwardSlashes":false,"format":"notes.md","abbreviate":"~/notes.md"}, + {"input":"C:\\Users\\ada\\notes.md","base":"c:/Users/ada","home":"C:\\Users\\ada","forwardSlashes":true,"format":"notes.md","abbreviate":"~/notes.md"}, + {"input":"D:\\data\\file","base":"c:/Users/ada","home":"C:\\Users\\ada","forwardSlashes":false,"format":"D:\\data\\file","abbreviate":"D:\\data\\file"}, + {"input":"D:\\data\\file","base":"c:/Users/ada","home":"C:\\Users\\ada","forwardSlashes":true,"format":"D:/data/file","abbreviate":"D:\\data\\file"}, + {"input":"C:\\","base":"c:/Users/ada","home":"C:\\Users\\ada","forwardSlashes":false,"format":"C:\\","abbreviate":"C:\\"}, + {"input":"C:\\","base":"c:/Users/ada","home":"C:\\Users\\ada","forwardSlashes":true,"format":"C:/","abbreviate":"C:\\"}, + {"input":"\\\\server\\share\\dir\\file","base":"c:/Users/ada","home":"C:\\Users\\ada","forwardSlashes":false,"format":"\\\\server\\share\\dir\\file","abbreviate":"\\\\server\\share\\dir\\file"}, + {"input":"\\\\server\\share\\dir\\file","base":"c:/Users/ada","home":"C:\\Users\\ada","forwardSlashes":true,"format":"//server/share/dir/file","abbreviate":"\\\\server\\share\\dir\\file"}, + {"input":"/home/ada/file","base":"c:/Users/ada","home":"C:\\Users\\ada","forwardSlashes":false,"format":"/home/ada/file","abbreviate":"/home/ada/file"}, + {"input":"/home/ada/file","base":"c:/Users/ada","home":"C:\\Users\\ada","forwardSlashes":true,"format":"/home/ada/file","abbreviate":"/home/ada/file"}, + {"input":"C:\\Users\\ada\\src\\app\\lib\\main.rs","base":"c:/Users/ada","home":"","forwardSlashes":false,"format":"src\\app\\lib\\main.rs","abbreviate":"C:\\Users\\ada\\src\\app\\lib\\main.rs"}, + {"input":"C:\\Users\\ada\\src\\app\\lib\\main.rs","base":"c:/Users/ada","home":"","forwardSlashes":true,"format":"src/app/lib/main.rs","abbreviate":"C:\\Users\\ada\\src\\app\\lib\\main.rs"}, + {"input":"c:\\users\\ada\\src\\app\\x","base":"c:/Users/ada","home":"","forwardSlashes":false,"format":"src\\app\\x","abbreviate":"c:\\users\\ada\\src\\app\\x"}, + {"input":"c:\\users\\ada\\src\\app\\x","base":"c:/Users/ada","home":"","forwardSlashes":true,"format":"src/app/x","abbreviate":"c:\\users\\ada\\src\\app\\x"}, + {"input":"lib\\main.rs","base":"c:/Users/ada","home":"","forwardSlashes":false,"format":"lib\\main.rs","abbreviate":"lib\\main.rs"}, + {"input":"lib\\main.rs","base":"c:/Users/ada","home":"","forwardSlashes":true,"format":"lib/main.rs","abbreviate":"lib\\main.rs"}, + {"input":"lib/main.rs","base":"c:/Users/ada","home":"","forwardSlashes":false,"format":"lib\\main.rs","abbreviate":"lib/main.rs"}, + {"input":"lib/main.rs","base":"c:/Users/ada","home":"","forwardSlashes":true,"format":"lib/main.rs","abbreviate":"lib/main.rs"}, + {"input":"..\\other","base":"c:/Users/ada","home":"","forwardSlashes":false,"format":"c:\\Users\\other","abbreviate":"..\\other"}, + {"input":"..\\other","base":"c:/Users/ada","home":"","forwardSlashes":true,"format":"c:/Users/other","abbreviate":"..\\other"}, + {"input":"C:\\Users\\ada\\notes.md","base":"c:/Users/ada","home":"","forwardSlashes":false,"format":"notes.md","abbreviate":"C:\\Users\\ada\\notes.md"}, + {"input":"C:\\Users\\ada\\notes.md","base":"c:/Users/ada","home":"","forwardSlashes":true,"format":"notes.md","abbreviate":"C:\\Users\\ada\\notes.md"}, + {"input":"D:\\data\\file","base":"c:/Users/ada","home":"","forwardSlashes":false,"format":"D:\\data\\file","abbreviate":"D:\\data\\file"}, + {"input":"D:\\data\\file","base":"c:/Users/ada","home":"","forwardSlashes":true,"format":"D:/data/file","abbreviate":"D:\\data\\file"}, + {"input":"C:\\","base":"c:/Users/ada","home":"","forwardSlashes":false,"format":"C:\\","abbreviate":"C:\\"}, + {"input":"C:\\","base":"c:/Users/ada","home":"","forwardSlashes":true,"format":"C:/","abbreviate":"C:\\"}, + {"input":"\\\\server\\share\\dir\\file","base":"c:/Users/ada","home":"","forwardSlashes":false,"format":"\\\\server\\share\\dir\\file","abbreviate":"\\\\server\\share\\dir\\file"}, + {"input":"\\\\server\\share\\dir\\file","base":"c:/Users/ada","home":"","forwardSlashes":true,"format":"//server/share/dir/file","abbreviate":"\\\\server\\share\\dir\\file"}, + {"input":"/home/ada/file","base":"c:/Users/ada","home":"","forwardSlashes":false,"format":"/home/ada/file","abbreviate":"/home/ada/file"}, + {"input":"/home/ada/file","base":"c:/Users/ada","home":"","forwardSlashes":true,"format":"/home/ada/file","abbreviate":"/home/ada/file"}, + {"input":"C:\\Users\\ada\\src\\app\\lib\\main.rs","base":"\\\\server\\share\\dir","home":"C:\\Users\\ada","forwardSlashes":false,"format":"~/src/app/lib/main.rs","abbreviate":"~/src/app/lib/main.rs"}, + {"input":"C:\\Users\\ada\\src\\app\\lib\\main.rs","base":"\\\\server\\share\\dir","home":"C:\\Users\\ada","forwardSlashes":true,"format":"~/src/app/lib/main.rs","abbreviate":"~/src/app/lib/main.rs"}, + {"input":"c:\\users\\ada\\src\\app\\x","base":"\\\\server\\share\\dir","home":"C:\\Users\\ada","forwardSlashes":false,"format":"~/src/app/x","abbreviate":"~/src/app/x"}, + {"input":"c:\\users\\ada\\src\\app\\x","base":"\\\\server\\share\\dir","home":"C:\\Users\\ada","forwardSlashes":true,"format":"~/src/app/x","abbreviate":"~/src/app/x"}, + {"input":"lib\\main.rs","base":"\\\\server\\share\\dir","home":"C:\\Users\\ada","forwardSlashes":false,"format":"lib\\main.rs","abbreviate":"lib\\main.rs"}, + {"input":"lib\\main.rs","base":"\\\\server\\share\\dir","home":"C:\\Users\\ada","forwardSlashes":true,"format":"lib/main.rs","abbreviate":"lib\\main.rs"}, + {"input":"lib/main.rs","base":"\\\\server\\share\\dir","home":"C:\\Users\\ada","forwardSlashes":false,"format":"lib\\main.rs","abbreviate":"lib/main.rs"}, + {"input":"lib/main.rs","base":"\\\\server\\share\\dir","home":"C:\\Users\\ada","forwardSlashes":true,"format":"lib/main.rs","abbreviate":"lib/main.rs"}, + {"input":"..\\other","base":"\\\\server\\share\\dir","home":"C:\\Users\\ada","forwardSlashes":false,"format":"\\\\server\\share\\other","abbreviate":"..\\other"}, + {"input":"..\\other","base":"\\\\server\\share\\dir","home":"C:\\Users\\ada","forwardSlashes":true,"format":"//server/share/other","abbreviate":"..\\other"}, + {"input":"C:\\Users\\ada\\notes.md","base":"\\\\server\\share\\dir","home":"C:\\Users\\ada","forwardSlashes":false,"format":"~/notes.md","abbreviate":"~/notes.md"}, + {"input":"C:\\Users\\ada\\notes.md","base":"\\\\server\\share\\dir","home":"C:\\Users\\ada","forwardSlashes":true,"format":"~/notes.md","abbreviate":"~/notes.md"}, + {"input":"D:\\data\\file","base":"\\\\server\\share\\dir","home":"C:\\Users\\ada","forwardSlashes":false,"format":"D:\\data\\file","abbreviate":"D:\\data\\file"}, + {"input":"D:\\data\\file","base":"\\\\server\\share\\dir","home":"C:\\Users\\ada","forwardSlashes":true,"format":"D:/data/file","abbreviate":"D:\\data\\file"}, + {"input":"C:\\","base":"\\\\server\\share\\dir","home":"C:\\Users\\ada","forwardSlashes":false,"format":"C:\\","abbreviate":"C:\\"}, + {"input":"C:\\","base":"\\\\server\\share\\dir","home":"C:\\Users\\ada","forwardSlashes":true,"format":"C:/","abbreviate":"C:\\"}, + {"input":"\\\\server\\share\\dir\\file","base":"\\\\server\\share\\dir","home":"C:\\Users\\ada","forwardSlashes":false,"format":"file","abbreviate":"\\\\server\\share\\dir\\file"}, + {"input":"\\\\server\\share\\dir\\file","base":"\\\\server\\share\\dir","home":"C:\\Users\\ada","forwardSlashes":true,"format":"file","abbreviate":"\\\\server\\share\\dir\\file"}, + {"input":"/home/ada/file","base":"\\\\server\\share\\dir","home":"C:\\Users\\ada","forwardSlashes":false,"format":"/home/ada/file","abbreviate":"/home/ada/file"}, + {"input":"/home/ada/file","base":"\\\\server\\share\\dir","home":"C:\\Users\\ada","forwardSlashes":true,"format":"/home/ada/file","abbreviate":"/home/ada/file"}, + {"input":"C:\\Users\\ada\\src\\app\\lib\\main.rs","base":"\\\\server\\share\\dir","home":"","forwardSlashes":false,"format":"C:\\Users\\ada\\src\\app\\lib\\main.rs","abbreviate":"C:\\Users\\ada\\src\\app\\lib\\main.rs"}, + {"input":"C:\\Users\\ada\\src\\app\\lib\\main.rs","base":"\\\\server\\share\\dir","home":"","forwardSlashes":true,"format":"C:/Users/ada/src/app/lib/main.rs","abbreviate":"C:\\Users\\ada\\src\\app\\lib\\main.rs"}, + {"input":"c:\\users\\ada\\src\\app\\x","base":"\\\\server\\share\\dir","home":"","forwardSlashes":false,"format":"c:\\users\\ada\\src\\app\\x","abbreviate":"c:\\users\\ada\\src\\app\\x"}, + {"input":"c:\\users\\ada\\src\\app\\x","base":"\\\\server\\share\\dir","home":"","forwardSlashes":true,"format":"c:/users/ada/src/app/x","abbreviate":"c:\\users\\ada\\src\\app\\x"}, + {"input":"lib\\main.rs","base":"\\\\server\\share\\dir","home":"","forwardSlashes":false,"format":"lib\\main.rs","abbreviate":"lib\\main.rs"}, + {"input":"lib\\main.rs","base":"\\\\server\\share\\dir","home":"","forwardSlashes":true,"format":"lib/main.rs","abbreviate":"lib\\main.rs"}, + {"input":"lib/main.rs","base":"\\\\server\\share\\dir","home":"","forwardSlashes":false,"format":"lib\\main.rs","abbreviate":"lib/main.rs"}, + {"input":"lib/main.rs","base":"\\\\server\\share\\dir","home":"","forwardSlashes":true,"format":"lib/main.rs","abbreviate":"lib/main.rs"}, + {"input":"..\\other","base":"\\\\server\\share\\dir","home":"","forwardSlashes":false,"format":"\\\\server\\share\\other","abbreviate":"..\\other"}, + {"input":"..\\other","base":"\\\\server\\share\\dir","home":"","forwardSlashes":true,"format":"//server/share/other","abbreviate":"..\\other"}, + {"input":"C:\\Users\\ada\\notes.md","base":"\\\\server\\share\\dir","home":"","forwardSlashes":false,"format":"C:\\Users\\ada\\notes.md","abbreviate":"C:\\Users\\ada\\notes.md"}, + {"input":"C:\\Users\\ada\\notes.md","base":"\\\\server\\share\\dir","home":"","forwardSlashes":true,"format":"C:/Users/ada/notes.md","abbreviate":"C:\\Users\\ada\\notes.md"}, + {"input":"D:\\data\\file","base":"\\\\server\\share\\dir","home":"","forwardSlashes":false,"format":"D:\\data\\file","abbreviate":"D:\\data\\file"}, + {"input":"D:\\data\\file","base":"\\\\server\\share\\dir","home":"","forwardSlashes":true,"format":"D:/data/file","abbreviate":"D:\\data\\file"}, + {"input":"C:\\","base":"\\\\server\\share\\dir","home":"","forwardSlashes":false,"format":"C:\\","abbreviate":"C:\\"}, + {"input":"C:\\","base":"\\\\server\\share\\dir","home":"","forwardSlashes":true,"format":"C:/","abbreviate":"C:\\"}, + {"input":"\\\\server\\share\\dir\\file","base":"\\\\server\\share\\dir","home":"","forwardSlashes":false,"format":"file","abbreviate":"\\\\server\\share\\dir\\file"}, + {"input":"\\\\server\\share\\dir\\file","base":"\\\\server\\share\\dir","home":"","forwardSlashes":true,"format":"file","abbreviate":"\\\\server\\share\\dir\\file"}, + {"input":"/home/ada/file","base":"\\\\server\\share\\dir","home":"","forwardSlashes":false,"format":"/home/ada/file","abbreviate":"/home/ada/file"}, + {"input":"/home/ada/file","base":"\\\\server\\share\\dir","home":"","forwardSlashes":true,"format":"/home/ada/file","abbreviate":"/home/ada/file"} +] diff --git a/packages/cli-rs/parity/fixtures/U.3/prompt-busy.json b/packages/cli-rs/parity/fixtures/U.3/prompt-busy.json new file mode 100644 index 000000000000..1fef04c5d166 --- /dev/null +++ b/packages/cli-rs/parity/fixtures/U.3/prompt-busy.json @@ -0,0 +1,18 @@ +{"width":70,"height":16,"styles":["#ffffffff #030303ff 0","#ffffffff #141414ff 0","#808080ff #141414ff 0","#ffffffff #23344bff 0"],"lines":[ +[" ",[[0,70]]], +[" ",[[0,70]]], +[" ",[[0,70]]], +[" ",[[0,70]]], +[" ",[[0,5],[1,60],[0,5]]], +[" Connecting esc ",[[0,5],[1,54],[2,3],[1,3],[0,5]]], +[" ",[[0,5],[1,60],[0,5]]], +[" token ",[[0,5],[1,3],[2,5],[1,52],[0,5]]], +[" ",[[0,5],[1,60],[0,5]]], +[" ⋯ Checking… ",[[0,5],[1,3],[2,11],[1,46],[0,5]]], +[" ",[[0,5],[1,60],[0,5]]], +[" Submit ",[[0,5],[1,49],[3,8],[1,3],[0,5]]], +[" ",[[0,5],[1,60],[0,5]]], +[" ",[[0,70]]], +[" ",[[0,70]]], +[" ",[[0,70]]] +]} diff --git a/packages/cli-rs/parity/fixtures/U.3/prompt-empty.json b/packages/cli-rs/parity/fixtures/U.3/prompt-empty.json new file mode 100644 index 000000000000..adbc800ebaef --- /dev/null +++ b/packages/cli-rs/parity/fixtures/U.3/prompt-empty.json @@ -0,0 +1,18 @@ +{"width":70,"height":16,"styles":["#ffffffff #030303ff 0","#ffffffff #141414ff 0","#808080ff #141414ff 0","#ffffffff #23344bff 0"],"lines":[ +[" ",[[0,70]]], +[" ",[[0,70]]], +[" ",[[0,70]]], +[" ",[[0,70]]], +[" ",[[0,5],[1,60],[0,5]]], +[" Worktree name esc ",[[0,5],[1,54],[2,3],[1,3],[0,5]]], +[" ",[[0,5],[1,60],[0,5]]], +[" feature-branch ",[[0,5],[1,3],[2,14],[1,43],[0,5]]], +[" ",[[0,5],[1,60],[0,5]]], +[" Submit ",[[0,5],[1,49],[3,8],[1,3],[0,5]]], +[" ",[[0,5],[1,60],[0,5]]], +[" ",[[0,70]]], +[" ",[[0,70]]], +[" ",[[0,70]]], +[" ",[[0,70]]], +[" ",[[0,70]]] +]} diff --git a/packages/cli-rs/parity/fixtures/U.3/prompt.json b/packages/cli-rs/parity/fixtures/U.3/prompt.json new file mode 100644 index 000000000000..4c1ac3335937 --- /dev/null +++ b/packages/cli-rs/parity/fixtures/U.3/prompt.json @@ -0,0 +1,18 @@ +{"width":70,"height":16,"styles":["#ffffffff #030303ff 0","#ffffffff #141414ff 0","#808080ff #141414ff 0","#ffffffff #23344bff 0"],"lines":[ +[" ",[[0,70]]], +[" ",[[0,70]]], +[" ",[[0,70]]], +[" ",[[0,70]]], +[" ",[[0,5],[1,60],[0,5]]], +[" Rename session esc ",[[0,5],[1,54],[2,3],[1,3],[0,5]]], +[" ",[[0,5],[1,60],[0,5]]], +[" My session ",[[0,5],[1,60],[0,5]]], +[" ",[[0,5],[1,60],[0,5]]], +[" generate tab Submit ",[[0,5],[1,11],[2,4],[1,34],[3,8],[1,3],[0,5]]], +[" ",[[0,5],[1,60],[0,5]]], +[" ",[[0,70]]], +[" ",[[0,70]]], +[" ",[[0,70]]], +[" ",[[0,70]]], +[" ",[[0,70]]] +]} diff --git a/packages/cli-rs/parity/fixtures/U.3/select-down.json b/packages/cli-rs/parity/fixtures/U.3/select-down.json new file mode 100644 index 000000000000..2ba59c15a5c1 --- /dev/null +++ b/packages/cli-rs/parity/fixtures/U.3/select-down.json @@ -0,0 +1,32 @@ +{"width":72,"height":30,"styles":["#ffffffff #030303ff 0","#ffffffff #141414ff 0","#808080ff #141414ff 0","#7699feff #141414ff 0","#808080ff #141414ff 1","#ffffffff #23344bff 0","#93a2b7ff #23344bff 0","#ffffffff #202020ff 0","#808080ff #202020ff 0"],"lines":[ +[" ",[[0,72]]], +[" ",[[0,72]]], +[" ",[[0,72]]], +[" ",[[0,72]]], +[" ",[[0,72]]], +[" ",[[0,72]]], +[" ",[[0,72]]], +[" ",[[0,72]]], +[" ",[[0,6],[1,60],[0,6]]], +[" Select model esc ",[[0,6],[1,53],[2,3],[1,4],[0,6]]], +[" ",[[0,6],[1,60],[0,6]]], +[" Search ",[[0,6],[1,4],[2,6],[1,50],[0,6]]], +[" ",[[0,6],[1,60],[0,6]]], +[" Claude Opus best ",[[0,6],[3,1],[1,14],[2,5],[1,40],[0,6]]], +[" ▪ Claude Haiku ",[[0,6],[3,1],[1,1],[3,1],[1,57],[0,6]]], +[" ",[[0,6],[1,60],[0,6]]], +[" OpenAI ",[[0,6],[1,4],[4,6],[1,50],[0,6]]], +[" GPT-5 ",[[0,6],[3,1],[1,59],[0,6]]], +[" /a/very/long/path/that/g…n/the/middle/model.json ",[[0,6],[1,4],[2,48],[1,8],[0,6]]], +[" ┃ GPT-5 mini $0.25 ",[[0,6],[3,1],[5,50],[6,5],[5,4],[0,6]]], +[" o4 ",[[0,6],[3,1],[1,59],[0,6]]], +[" Codex ",[[0,6],[3,1],[1,59],[0,6]]], +[" ",[[0,6],[1,60],[0,6]]], +[" ",[[0,6],[7,60],[0,6]]], +[" favorite ctrl+f ",[[0,6],[7,49],[8,7],[7,4],[0,6]]], +[" ",[[0,6],[7,60],[0,6]]], +[" ",[[0,72]]], +[" ",[[0,72]]], +[" ",[[0,72]]], +[" ",[[0,72]]] +]} diff --git a/packages/cli-rs/parity/fixtures/U.3/select-empty.json b/packages/cli-rs/parity/fixtures/U.3/select-empty.json new file mode 100644 index 000000000000..c377edabdeaf --- /dev/null +++ b/packages/cli-rs/parity/fixtures/U.3/select-empty.json @@ -0,0 +1,32 @@ +{"width":72,"height":30,"styles":["#ffffffff #030303ff 0","#ffffffff #141414ff 0","#808080ff #141414ff 0","#ffffffff #202020ff 0","#808080ff #202020ff 0"],"lines":[ +[" ",[[0,72]]], +[" ",[[0,72]]], +[" ",[[0,72]]], +[" ",[[0,72]]], +[" ",[[0,72]]], +[" ",[[0,72]]], +[" ",[[0,72]]], +[" ",[[0,72]]], +[" ",[[0,6],[1,60],[0,6]]], +[" Select model esc ",[[0,6],[1,53],[2,3],[1,4],[0,6]]], +[" ",[[0,6],[1,60],[0,6]]], +[" zzz ",[[0,6],[1,60],[0,6]]], +[" ",[[0,6],[1,60],[0,6]]], +[" No results found ",[[0,6],[1,4],[2,16],[1,40],[0,6]]], +[" ",[[0,6],[1,60],[0,6]]], +[" ",[[0,6],[3,60],[0,6]]], +[" favorite ctrl+f ",[[0,6],[3,41],[4,15],[3,4],[0,6]]], +[" ",[[0,6],[3,60],[0,6]]], +[" ",[[0,72]]], +[" ",[[0,72]]], +[" ",[[0,72]]], +[" ",[[0,72]]], +[" ",[[0,72]]], +[" ",[[0,72]]], +[" ",[[0,72]]], +[" ",[[0,72]]], +[" ",[[0,72]]], +[" ",[[0,72]]], +[" ",[[0,72]]], +[" ",[[0,72]]] +]} diff --git a/packages/cli-rs/parity/fixtures/U.3/select-filter.json b/packages/cli-rs/parity/fixtures/U.3/select-filter.json new file mode 100644 index 000000000000..9e0da96e831d --- /dev/null +++ b/packages/cli-rs/parity/fixtures/U.3/select-filter.json @@ -0,0 +1,32 @@ +{"width":72,"height":30,"styles":["#ffffffff #030303ff 0","#ffffffff #141414ff 0","#808080ff #141414ff 0","#808080ff #141414ff 1","#7699feff #141414ff 0","#ffffffff #23344bff 0","#ffffffff #202020ff 0","#808080ff #202020ff 0"],"lines":[ +[" ",[[0,72]]], +[" ",[[0,72]]], +[" ",[[0,72]]], +[" ",[[0,72]]], +[" ",[[0,72]]], +[" ",[[0,72]]], +[" ",[[0,72]]], +[" ",[[0,72]]], +[" ",[[0,6],[1,60],[0,6]]], +[" Select model esc ",[[0,6],[1,53],[2,3],[1,4],[0,6]]], +[" ",[[0,6],[1,60],[0,6]]], +[" gpt ",[[0,6],[1,60],[0,6]]], +[" ",[[0,6],[1,60],[0,6]]], +[" OpenAI ",[[0,6],[1,4],[3,6],[1,50],[0,6]]], +[" ┃ GPT-5 ",[[0,6],[4,1],[5,59],[0,6]]], +[" /a/very/long/path/that/g…n/the/middle/model.json ",[[0,6],[1,4],[2,48],[1,8],[0,6]]], +[" GPT-5 mini $0.25 ",[[0,6],[4,1],[1,50],[2,5],[1,4],[0,6]]], +[" ",[[0,6],[1,60],[0,6]]], +[" ",[[0,6],[6,60],[0,6]]], +[" favorite ctrl+f ",[[0,6],[6,49],[7,7],[6,4],[0,6]]], +[" ",[[0,6],[6,60],[0,6]]], +[" ",[[0,72]]], +[" ",[[0,72]]], +[" ",[[0,72]]], +[" ",[[0,72]]], +[" ",[[0,72]]], +[" ",[[0,72]]], +[" ",[[0,72]]], +[" ",[[0,72]]], +[" ",[[0,72]]] +]} diff --git a/packages/cli-rs/parity/fixtures/U.3/select-scroll-10-frames.json b/packages/cli-rs/parity/fixtures/U.3/select-scroll-10-frames.json new file mode 100644 index 000000000000..e344397a0600 --- /dev/null +++ b/packages/cli-rs/parity/fixtures/U.3/select-scroll-10-frames.json @@ -0,0 +1,32 @@ +{"width":72,"height":30,"styles":["#ffffffff #030303ff 0","#ffffffff #141414ff 0","#808080ff #141414ff 0","#7699feff #141414ff 0","#808080ff #141414ff 1","#ffffffff #23344bff 0"],"lines":[ +[" ",[[0,72]]], +[" ",[[0,72]]], +[" ",[[0,72]]], +[" ",[[0,72]]], +[" ",[[0,72]]], +[" ",[[0,72]]], +[" ",[[0,72]]], +[" ",[[0,72]]], +[" ",[[0,6],[1,60],[0,6]]], +[" Long list esc ",[[0,6],[1,53],[2,3],[1,4],[0,6]]], +[" ",[[0,6],[1,60],[0,6]]], +[" Search ",[[0,6],[1,4],[2,6],[1,50],[0,6]]], +[" ",[[0,6],[1,60],[0,6]]], +[" Alpha 9 ",[[0,6],[3,1],[1,59],[0,6]]], +[" Alpha 10 ",[[0,6],[3,1],[1,59],[0,6]]], +[" ",[[0,6],[1,60],[0,6]]], +[" Beta ",[[0,6],[1,4],[4,4],[1,52],[0,6]]], +[" ┃ Beta 1 ",[[0,6],[3,1],[5,59],[0,6]]], +[" Beta 2 ",[[0,6],[3,1],[1,59],[0,6]]], +[" Beta 3 ",[[0,6],[3,1],[1,59],[0,6]]], +[" Beta 4 ",[[0,6],[3,1],[1,59],[0,6]]], +[" /a/detail/row ",[[0,6],[1,4],[2,13],[1,43],[0,6]]], +[" ",[[0,6],[1,60],[0,6]]], +[" ",[[0,72]]], +[" ",[[0,72]]], +[" ",[[0,72]]], +[" ",[[0,72]]], +[" ",[[0,72]]], +[" ",[[0,72]]], +[" ",[[0,72]]] +]} diff --git a/packages/cli-rs/parity/fixtures/U.3/select-scroll-10.json b/packages/cli-rs/parity/fixtures/U.3/select-scroll-10.json new file mode 100644 index 000000000000..e344397a0600 --- /dev/null +++ b/packages/cli-rs/parity/fixtures/U.3/select-scroll-10.json @@ -0,0 +1,32 @@ +{"width":72,"height":30,"styles":["#ffffffff #030303ff 0","#ffffffff #141414ff 0","#808080ff #141414ff 0","#7699feff #141414ff 0","#808080ff #141414ff 1","#ffffffff #23344bff 0"],"lines":[ +[" ",[[0,72]]], +[" ",[[0,72]]], +[" ",[[0,72]]], +[" ",[[0,72]]], +[" ",[[0,72]]], +[" ",[[0,72]]], +[" ",[[0,72]]], +[" ",[[0,72]]], +[" ",[[0,6],[1,60],[0,6]]], +[" Long list esc ",[[0,6],[1,53],[2,3],[1,4],[0,6]]], +[" ",[[0,6],[1,60],[0,6]]], +[" Search ",[[0,6],[1,4],[2,6],[1,50],[0,6]]], +[" ",[[0,6],[1,60],[0,6]]], +[" Alpha 9 ",[[0,6],[3,1],[1,59],[0,6]]], +[" Alpha 10 ",[[0,6],[3,1],[1,59],[0,6]]], +[" ",[[0,6],[1,60],[0,6]]], +[" Beta ",[[0,6],[1,4],[4,4],[1,52],[0,6]]], +[" ┃ Beta 1 ",[[0,6],[3,1],[5,59],[0,6]]], +[" Beta 2 ",[[0,6],[3,1],[1,59],[0,6]]], +[" Beta 3 ",[[0,6],[3,1],[1,59],[0,6]]], +[" Beta 4 ",[[0,6],[3,1],[1,59],[0,6]]], +[" /a/detail/row ",[[0,6],[1,4],[2,13],[1,43],[0,6]]], +[" ",[[0,6],[1,60],[0,6]]], +[" ",[[0,72]]], +[" ",[[0,72]]], +[" ",[[0,72]]], +[" ",[[0,72]]], +[" ",[[0,72]]], +[" ",[[0,72]]], +[" ",[[0,72]]] +]} diff --git a/packages/cli-rs/parity/fixtures/U.3/select-scroll-20-frames.json b/packages/cli-rs/parity/fixtures/U.3/select-scroll-20-frames.json new file mode 100644 index 000000000000..12eb44f2ba50 --- /dev/null +++ b/packages/cli-rs/parity/fixtures/U.3/select-scroll-20-frames.json @@ -0,0 +1,32 @@ +{"width":72,"height":30,"styles":["#ffffffff #030303ff 0","#ffffffff #141414ff 0","#808080ff #141414ff 0","#7699feff #141414ff 0","#808080ff #141414ff 1","#ffffffff #23344bff 0"],"lines":[ +[" ",[[0,72]]], +[" ",[[0,72]]], +[" ",[[0,72]]], +[" ",[[0,72]]], +[" ",[[0,72]]], +[" ",[[0,72]]], +[" ",[[0,72]]], +[" ",[[0,72]]], +[" ",[[0,6],[1,60],[0,6]]], +[" Long list esc ",[[0,6],[1,53],[2,3],[1,4],[0,6]]], +[" ",[[0,6],[1,60],[0,6]]], +[" Search ",[[0,6],[1,4],[2,6],[1,50],[0,6]]], +[" ",[[0,6],[1,60],[0,6]]], +[" Beta 9 ",[[0,6],[3,1],[1,59],[0,6]]], +[" Beta 10 ",[[0,6],[3,1],[1,59],[0,6]]], +[" ",[[0,6],[1,60],[0,6]]], +[" Gamma ",[[0,6],[1,4],[4,5],[1,51],[0,6]]], +[" ┃ Gamma 1 ",[[0,6],[3,1],[5,59],[0,6]]], +[" Gamma 2 ",[[0,6],[3,1],[1,59],[0,6]]], +[" Gamma 3 ",[[0,6],[3,1],[1,59],[0,6]]], +[" Gamma 4 ",[[0,6],[3,1],[1,59],[0,6]]], +[" Gamma 5 ",[[0,6],[3,1],[1,59],[0,6]]], +[" ",[[0,6],[1,60],[0,6]]], +[" ",[[0,72]]], +[" ",[[0,72]]], +[" ",[[0,72]]], +[" ",[[0,72]]], +[" ",[[0,72]]], +[" ",[[0,72]]], +[" ",[[0,72]]] +]} diff --git a/packages/cli-rs/parity/fixtures/U.3/select-scroll-20.json b/packages/cli-rs/parity/fixtures/U.3/select-scroll-20.json new file mode 100644 index 000000000000..12eb44f2ba50 --- /dev/null +++ b/packages/cli-rs/parity/fixtures/U.3/select-scroll-20.json @@ -0,0 +1,32 @@ +{"width":72,"height":30,"styles":["#ffffffff #030303ff 0","#ffffffff #141414ff 0","#808080ff #141414ff 0","#7699feff #141414ff 0","#808080ff #141414ff 1","#ffffffff #23344bff 0"],"lines":[ +[" ",[[0,72]]], +[" ",[[0,72]]], +[" ",[[0,72]]], +[" ",[[0,72]]], +[" ",[[0,72]]], +[" ",[[0,72]]], +[" ",[[0,72]]], +[" ",[[0,72]]], +[" ",[[0,6],[1,60],[0,6]]], +[" Long list esc ",[[0,6],[1,53],[2,3],[1,4],[0,6]]], +[" ",[[0,6],[1,60],[0,6]]], +[" Search ",[[0,6],[1,4],[2,6],[1,50],[0,6]]], +[" ",[[0,6],[1,60],[0,6]]], +[" Beta 9 ",[[0,6],[3,1],[1,59],[0,6]]], +[" Beta 10 ",[[0,6],[3,1],[1,59],[0,6]]], +[" ",[[0,6],[1,60],[0,6]]], +[" Gamma ",[[0,6],[1,4],[4,5],[1,51],[0,6]]], +[" ┃ Gamma 1 ",[[0,6],[3,1],[5,59],[0,6]]], +[" Gamma 2 ",[[0,6],[3,1],[1,59],[0,6]]], +[" Gamma 3 ",[[0,6],[3,1],[1,59],[0,6]]], +[" Gamma 4 ",[[0,6],[3,1],[1,59],[0,6]]], +[" Gamma 5 ",[[0,6],[3,1],[1,59],[0,6]]], +[" ",[[0,6],[1,60],[0,6]]], +[" ",[[0,72]]], +[" ",[[0,72]]], +[" ",[[0,72]]], +[" ",[[0,72]]], +[" ",[[0,72]]], +[" ",[[0,72]]], +[" ",[[0,72]]] +]} diff --git a/packages/cli-rs/parity/fixtures/U.3/select-scroll-5-frames.json b/packages/cli-rs/parity/fixtures/U.3/select-scroll-5-frames.json new file mode 100644 index 000000000000..1765f7b85605 --- /dev/null +++ b/packages/cli-rs/parity/fixtures/U.3/select-scroll-5-frames.json @@ -0,0 +1,32 @@ +{"width":72,"height":30,"styles":["#ffffffff #030303ff 0","#ffffffff #141414ff 0","#808080ff #141414ff 0","#7699feff #141414ff 0","#ffffffff #23344bff 0"],"lines":[ +[" ",[[0,72]]], +[" ",[[0,72]]], +[" ",[[0,72]]], +[" ",[[0,72]]], +[" ",[[0,72]]], +[" ",[[0,72]]], +[" ",[[0,72]]], +[" ",[[0,72]]], +[" ",[[0,6],[1,60],[0,6]]], +[" Long list esc ",[[0,6],[1,53],[2,3],[1,4],[0,6]]], +[" ",[[0,6],[1,60],[0,6]]], +[" Search ",[[0,6],[1,4],[2,6],[1,50],[0,6]]], +[" ",[[0,6],[1,60],[0,6]]], +[" Alpha 2 ",[[0,6],[3,1],[1,59],[0,6]]], +[" Alpha 3 ",[[0,6],[3,1],[1,59],[0,6]]], +[" Alpha 4 ",[[0,6],[3,1],[1,59],[0,6]]], +[" Alpha 5 ",[[0,6],[3,1],[1,59],[0,6]]], +[" ┃ Alpha 6 ",[[0,6],[3,1],[4,59],[0,6]]], +[" Alpha 7 ",[[0,6],[3,1],[1,59],[0,6]]], +[" Alpha 8 ",[[0,6],[3,1],[1,59],[0,6]]], +[" Alpha 9 ",[[0,6],[3,1],[1,59],[0,6]]], +[" Alpha 10 ",[[0,6],[3,1],[1,59],[0,6]]], +[" ",[[0,6],[1,60],[0,6]]], +[" ",[[0,72]]], +[" ",[[0,72]]], +[" ",[[0,72]]], +[" ",[[0,72]]], +[" ",[[0,72]]], +[" ",[[0,72]]], +[" ",[[0,72]]] +]} diff --git a/packages/cli-rs/parity/fixtures/U.3/select-scroll-5.json b/packages/cli-rs/parity/fixtures/U.3/select-scroll-5.json new file mode 100644 index 000000000000..b2959735dbca --- /dev/null +++ b/packages/cli-rs/parity/fixtures/U.3/select-scroll-5.json @@ -0,0 +1,32 @@ +{"width":72,"height":30,"styles":["#ffffffff #030303ff 0","#ffffffff #141414ff 0","#808080ff #141414ff 0","#808080ff #141414ff 1","#7699feff #141414ff 0","#ffffffff #23344bff 0"],"lines":[ +[" ",[[0,72]]], +[" ",[[0,72]]], +[" ",[[0,72]]], +[" ",[[0,72]]], +[" ",[[0,72]]], +[" ",[[0,72]]], +[" ",[[0,72]]], +[" ",[[0,72]]], +[" ",[[0,6],[1,60],[0,6]]], +[" Long list esc ",[[0,6],[1,53],[2,3],[1,4],[0,6]]], +[" ",[[0,6],[1,60],[0,6]]], +[" Search ",[[0,6],[1,4],[2,6],[1,50],[0,6]]], +[" ",[[0,6],[1,60],[0,6]]], +[" Alpha ",[[0,6],[1,4],[3,5],[1,51],[0,6]]], +[" Alpha 1 ",[[0,6],[4,1],[1,59],[0,6]]], +[" Alpha 2 ",[[0,6],[4,1],[1,59],[0,6]]], +[" Alpha 3 ",[[0,6],[4,1],[1,59],[0,6]]], +[" Alpha 4 ",[[0,6],[4,1],[1,59],[0,6]]], +[" Alpha 5 ",[[0,6],[4,1],[1,59],[0,6]]], +[" ┃ Alpha 6 ",[[0,6],[4,1],[5,59],[0,6]]], +[" Alpha 7 ",[[0,6],[4,1],[1,59],[0,6]]], +[" Alpha 8 ",[[0,6],[4,1],[1,59],[0,6]]], +[" ",[[0,6],[1,60],[0,6]]], +[" ",[[0,72]]], +[" ",[[0,72]]], +[" ",[[0,72]]], +[" ",[[0,72]]], +[" ",[[0,72]]], +[" ",[[0,72]]], +[" ",[[0,72]]] +]} diff --git a/packages/cli-rs/parity/fixtures/U.3/select-scroll-up-frames.json b/packages/cli-rs/parity/fixtures/U.3/select-scroll-up-frames.json new file mode 100644 index 000000000000..f57b5896bbec --- /dev/null +++ b/packages/cli-rs/parity/fixtures/U.3/select-scroll-up-frames.json @@ -0,0 +1,32 @@ +{"width":72,"height":30,"styles":["#ffffffff #030303ff 0","#ffffffff #141414ff 0","#808080ff #141414ff 0","#808080ff #141414ff 1","#7699feff #141414ff 0","#ffffffff #23344bff 0"],"lines":[ +[" ",[[0,72]]], +[" ",[[0,72]]], +[" ",[[0,72]]], +[" ",[[0,72]]], +[" ",[[0,72]]], +[" ",[[0,72]]], +[" ",[[0,72]]], +[" ",[[0,72]]], +[" ",[[0,6],[1,60],[0,6]]], +[" Long list esc ",[[0,6],[1,53],[2,3],[1,4],[0,6]]], +[" ",[[0,6],[1,60],[0,6]]], +[" Search ",[[0,6],[1,4],[2,6],[1,50],[0,6]]], +[" ",[[0,6],[1,60],[0,6]]], +[" ",[[0,6],[1,60],[0,6]]], +[" Beta ",[[0,6],[1,4],[3,4],[1,52],[0,6]]], +[" Beta 1 ",[[0,6],[4,1],[1,59],[0,6]]], +[" Beta 2 ",[[0,6],[4,1],[1,59],[0,6]]], +[" ┃ Beta 3 ",[[0,6],[4,1],[5,59],[0,6]]], +[" Beta 4 ",[[0,6],[4,1],[1,59],[0,6]]], +[" /a/detail/row ",[[0,6],[1,4],[2,13],[1,43],[0,6]]], +[" Beta 5 ",[[0,6],[4,1],[1,59],[0,6]]], +[" Beta 6 ",[[0,6],[4,1],[1,59],[0,6]]], +[" ",[[0,6],[1,60],[0,6]]], +[" ",[[0,72]]], +[" ",[[0,72]]], +[" ",[[0,72]]], +[" ",[[0,72]]], +[" ",[[0,72]]], +[" ",[[0,72]]], +[" ",[[0,72]]] +]} diff --git a/packages/cli-rs/parity/fixtures/U.3/select-scroll-up.json b/packages/cli-rs/parity/fixtures/U.3/select-scroll-up.json new file mode 100644 index 000000000000..f57b5896bbec --- /dev/null +++ b/packages/cli-rs/parity/fixtures/U.3/select-scroll-up.json @@ -0,0 +1,32 @@ +{"width":72,"height":30,"styles":["#ffffffff #030303ff 0","#ffffffff #141414ff 0","#808080ff #141414ff 0","#808080ff #141414ff 1","#7699feff #141414ff 0","#ffffffff #23344bff 0"],"lines":[ +[" ",[[0,72]]], +[" ",[[0,72]]], +[" ",[[0,72]]], +[" ",[[0,72]]], +[" ",[[0,72]]], +[" ",[[0,72]]], +[" ",[[0,72]]], +[" ",[[0,72]]], +[" ",[[0,6],[1,60],[0,6]]], +[" Long list esc ",[[0,6],[1,53],[2,3],[1,4],[0,6]]], +[" ",[[0,6],[1,60],[0,6]]], +[" Search ",[[0,6],[1,4],[2,6],[1,50],[0,6]]], +[" ",[[0,6],[1,60],[0,6]]], +[" ",[[0,6],[1,60],[0,6]]], +[" Beta ",[[0,6],[1,4],[3,4],[1,52],[0,6]]], +[" Beta 1 ",[[0,6],[4,1],[1,59],[0,6]]], +[" Beta 2 ",[[0,6],[4,1],[1,59],[0,6]]], +[" ┃ Beta 3 ",[[0,6],[4,1],[5,59],[0,6]]], +[" Beta 4 ",[[0,6],[4,1],[1,59],[0,6]]], +[" /a/detail/row ",[[0,6],[1,4],[2,13],[1,43],[0,6]]], +[" Beta 5 ",[[0,6],[4,1],[1,59],[0,6]]], +[" Beta 6 ",[[0,6],[4,1],[1,59],[0,6]]], +[" ",[[0,6],[1,60],[0,6]]], +[" ",[[0,72]]], +[" ",[[0,72]]], +[" ",[[0,72]]], +[" ",[[0,72]]], +[" ",[[0,72]]], +[" ",[[0,72]]], +[" ",[[0,72]]] +]} diff --git a/packages/cli-rs/parity/fixtures/U.3/select.json b/packages/cli-rs/parity/fixtures/U.3/select.json new file mode 100644 index 000000000000..96e5ac5e2479 --- /dev/null +++ b/packages/cli-rs/parity/fixtures/U.3/select.json @@ -0,0 +1,32 @@ +{"width":72,"height":30,"styles":["#ffffffff #030303ff 0","#ffffffff #141414ff 0","#808080ff #141414ff 0","#808080ff #141414ff 1","#7699feff #141414ff 0","#ffffffff #23344bff 0","#7699feff #23344bff 0","#ffffffff #202020ff 0","#808080ff #202020ff 0"],"lines":[ +[" ",[[0,72]]], +[" ",[[0,72]]], +[" ",[[0,72]]], +[" ",[[0,72]]], +[" ",[[0,72]]], +[" ",[[0,72]]], +[" ",[[0,72]]], +[" ",[[0,72]]], +[" ",[[0,6],[1,60],[0,6]]], +[" Select model esc ",[[0,6],[1,53],[2,3],[1,4],[0,6]]], +[" ",[[0,6],[1,60],[0,6]]], +[" Search ",[[0,6],[1,4],[2,6],[1,50],[0,6]]], +[" ",[[0,6],[1,60],[0,6]]], +[" Anthropic ",[[0,6],[1,4],[3,9],[1,47],[0,6]]], +[" Claude Sonnet Free ",[[0,6],[4,1],[1,51],[2,4],[1,4],[0,6]]], +[" Claude Opus best ",[[0,6],[4,1],[1,14],[2,5],[1,40],[0,6]]], +[" ┃ ▪ Claude Haiku ",[[0,6],[4,1],[5,1],[6,1],[5,57],[0,6]]], +[" ",[[0,6],[1,60],[0,6]]], +[" OpenAI ",[[0,6],[1,4],[3,6],[1,50],[0,6]]], +[" GPT-5 ",[[0,6],[4,1],[1,59],[0,6]]], +[" /a/very/long/path/that/g…n/the/middle/model.json ",[[0,6],[1,4],[2,48],[1,8],[0,6]]], +[" GPT-5 mini $0.25 ",[[0,6],[4,1],[1,50],[2,5],[1,4],[0,6]]], +[" ",[[0,6],[1,60],[0,6]]], +[" ",[[0,6],[7,60],[0,6]]], +[" favorite ctrl+f ",[[0,6],[7,49],[8,7],[7,4],[0,6]]], +[" ",[[0,6],[7,60],[0,6]]], +[" ",[[0,72]]], +[" ",[[0,72]]], +[" ",[[0,72]]], +[" ",[[0,72]]] +]} diff --git a/packages/cli-rs/parity/fixtures/U.3/toast-theme.json b/packages/cli-rs/parity/fixtures/U.3/toast-theme.json new file mode 100644 index 000000000000..0dafecceb16e --- /dev/null +++ b/packages/cli-rs/parity/fixtures/U.3/toast-theme.json @@ -0,0 +1,14 @@ +{"width":70,"height":12,"styles":["#ffffffff #080808ff 0","#ef6c6cff #080808ff 0","#ffffffff #202020ff 0","#ffffffff #202020ff 1","#808080ff #202020ff 0"],"lines":[ +[" ",[[0,70]]], +[" ┃ ┃ ",[[0,10],[1,1],[2,56],[1,1],[0,2]]], +[" ┃ Failed to load theme: mine x ┃ ",[[0,10],[1,1],[2,2],[3,26],[2,25],[4,1],[2,2],[1,1],[0,2]]], +[" ┃ ┃ ",[[0,10],[1,1],[2,56],[1,1],[0,2]]], +[" ┃ Color reference \"missing\" not found in defs or theme ┃ ",[[0,10],[1,1],[2,56],[1,1],[0,2]]], +[" ┃ ┃ ",[[0,10],[1,1],[2,56],[1,1],[0,2]]], +[" ",[[0,70]]], +[" ",[[0,70]]], +[" ",[[0,70]]], +[" ",[[0,70]]], +[" ",[[0,70]]], +[" ",[[0,70]]] +]} diff --git a/packages/cli-rs/parity/fixtures/U.3/toast.json b/packages/cli-rs/parity/fixtures/U.3/toast.json new file mode 100644 index 000000000000..3615da771a91 --- /dev/null +++ b/packages/cli-rs/parity/fixtures/U.3/toast.json @@ -0,0 +1,12 @@ +{"width":50,"height":10,"styles":["#ffffffff #080808ff 0","#9ee77aff #080808ff 0","#ffffffff #202020ff 0","#808080ff #202020ff 0"],"lines":[ +[" ",[[0,50]]], +[" ┃ ┃ ",[[0,8],[1,1],[2,38],[1,1],[0,2]]], +[" ┃ Copied the session link to the x ┃ ",[[0,8],[1,1],[2,35],[3,1],[2,2],[1,1],[0,2]]], +[" ┃ clipboard so you can share it ┃ ",[[0,8],[1,1],[2,38],[1,1],[0,2]]], +[" ┃ ┃ ",[[0,8],[1,1],[2,38],[1,1],[0,2]]], +[" ",[[0,50]]], +[" ",[[0,50]]], +[" ",[[0,50]]], +[" ",[[0,50]]], +[" ",[[0,50]]] +]} diff --git a/packages/cli-rs/parity/fixtures/U.4a/code.json b/packages/cli-rs/parity/fixtures/U.4a/code.json new file mode 100644 index 000000000000..1b2c382df9c3 --- /dev/null +++ b/packages/cli-rs/parity/fixtures/U.4a/code.json @@ -0,0 +1,12 @@ +{"width":60,"height":10,"styles":["#ffffffff #080808ff 0","#808080ff #080808ff 0","#9d7cd8ff #080808ff 0","#eeeeeeff #080808ff 0","#e5c07bff #080808ff 0","#7fd88fff #080808ff 0","#ffffffff #080808ff 4","#9d7cd8ff #080808ff 4","#fab283ff #080808ff 0","#e06c75ff #080808ff 0","#56b6c2ff #080808ff 0","#ef6c6cff #080808ff 0","#f5a742ff #080808ff 0"],"lines":[ +[" 1 import { Session } from \"./session\" ",[[0,1],[1,1],[0,1],[2,6],[0,1],[3,1],[0,1],[4,7],[0,1],[3,1],[0,1],[2,4],[0,1],[5,11],[0,22]]], +[" 2 ",[[0,1],[1,1],[0,58]]], +[" 3 // Starts one step. ",[[0,1],[1,1],[0,1],[6,19],[0,38]]], +[" 4 export async function run(id: string) { ",[[0,1],[1,1],[0,1],[2,6],[0,1],[7,5],[0,1],[8,8],[0,1],[8,3],[3,1],[9,2],[10,1],[0,1],[11,6],[3,1],[0,1],[3,1],[0,18]]], +[" 5 const session = await Session.get(id) ",[[0,1],[1,1],[0,3],[7,5],[0,1],[9,7],[0,1],[10,1],[0,1],[7,5],[0,1],[4,7],[10,1],[9,3],[3,1],[9,2],[3,1],[0,18]]], +[" 6 return session.steps.length > 0 ",[[0,1],[1,1],[0,3],[7,6],[0,1],[9,7],[10,1],[8,5],[10,1],[8,6],[0,1],[10,1],[0,1],[12,1],[0,24]]], +[" 7 } ",[[0,1],[1,1],[0,1],[3,1],[0,56]]], +[" 8 ",[[0,1],[1,1],[0,58]]], +[" ",[[0,60]]], +[" ",[[0,60]]] +]} diff --git a/packages/cli-rs/parity/fixtures/U.4a/corpus.json b/packages/cli-rs/parity/fixtures/U.4a/corpus.json new file mode 100644 index 000000000000..171fd1746980 --- /dev/null +++ b/packages/cli-rs/parity/fixtures/U.4a/corpus.json @@ -0,0 +1,6 @@ +{ + "prose": "# Session notes\n\nThe **runner** keeps *one* step per call. See [the plan](https://opencode.ai/docs) and `Session.prompt`.\n\n## Steps\n\n- Read the inbox\n- Stream the reply\n - nested detail\n- Finish\n\n1. First\n2. Second\n\n### Done\n\nPlain closing line.\n", + "fences": "Two fences:\n\n```ts\nconst answer: number = 42\nexport function greet(name: string) {\n return `hi ${name}`\n}\n```\n\n```js\n// a comment\nlet items = [1, 2, 3].map((x) => x * 2)\n```\n\nAfter the code.\n", + "code": "import { Session } from \"./session\"\n\n// Starts one step.\nexport async function run(id: string) {\n const session = await Session.get(id)\n return session.steps.length > 0\n}\n", + "diff": "Index: src/math.ts\n===================================================================\n--- src/math.ts\n+++ src/math.ts\n@@ -1,4 +1,4 @@\n export function add(a: number, b: number) {\n- return a - b\n+ return a + b\n }\n \n@@ -10,3 +10,4 @@\n export function half(x: number) {\n return x / 2\n+ // unreachable\n }\n" +} diff --git a/packages/cli-rs/parity/fixtures/U.4a/diff.json b/packages/cli-rs/parity/fixtures/U.4a/diff.json new file mode 100644 index 000000000000..7504427df4cf --- /dev/null +++ b/packages/cli-rs/parity/fixtures/U.4a/diff.json @@ -0,0 +1,16 @@ +{"width":60,"height":14,"styles":["#ffffffff #080808ff 0","#ffffffff #141414ff 0","#8f8f8fff #141414ff 0","#9d7cd8ff #141414ff 0","#fab283ff #141414ff 0","#eeeeeeff #141414ff 0","#e06c75ff #141414ff 0","#56b6c2ff #141414ff 0","#ef6c6cff #141414ff 0","#ffffffff #2d1f26ff 0","#8f8f8fff #2d1f26ff 0","#e26a75ff #2d1f26ff 0","#ffffffff #37222cff 0","#9d7cd8ff #37222cff 4","#e06c75ff #37222cff 0","#56b6c2ff #37222cff 0","#ffffffff #1b2b34ff 0","#8f8f8fff #1b2b34ff 0","#b8db87ff #1b2b34ff 0","#ffffffff #20303bff 0","#9d7cd8ff #20303bff 4","#e06c75ff #20303bff 0","#56b6c2ff #20303bff 0","#828bb8ff #141414ff 0","#9d7cd8ff #141414ff 4","#f5a742ff #141414ff 0","#ffffffff #20303bff 4"],"lines":[ +[" 1 export function add(a: number, b: number) { ",[[0,1],[1,2],[2,1],[1,3],[3,6],[1,1],[4,8],[1,1],[4,3],[5,1],[6,1],[7,1],[1,1],[8,6],[7,1],[1,1],[6,1],[7,1],[1,1],[8,6],[5,1],[1,1],[5,1],[1,7],[0,3]]], +[" 2 - return a - b ",[[0,1],[9,2],[10,1],[11,2],[9,1],[12,2],[13,6],[12,1],[14,1],[12,1],[15,1],[12,1],[14,1],[12,36],[0,3]]], +[" 2 + return a + b ",[[0,1],[16,2],[17,1],[18,2],[16,1],[19,2],[20,6],[19,1],[21,1],[19,1],[22,1],[19,1],[21,1],[19,36],[0,3]]], +[" 3 } ",[[0,1],[1,2],[2,1],[1,3],[5,1],[1,49],[0,3]]], +[" 4 ",[[0,1],[1,2],[2,1],[1,53],[0,3]]], +[" @@ -10,3 +10,4 @@ ",[[0,1],[23,18],[1,38],[0,3]]], +[" 10 export function half(x: number) { ",[[0,1],[1,1],[2,2],[1,3],[3,6],[1,1],[4,8],[1,1],[4,4],[5,1],[6,1],[7,1],[1,1],[8,6],[5,1],[1,1],[5,1],[1,17],[0,3]]], +[" 11 return x / 2 ",[[0,1],[1,1],[2,2],[1,5],[24,6],[1,1],[6,1],[1,1],[7,1],[1,1],[25,1],[1,36],[0,3]]], +[" 12 + // unreachable ",[[0,1],[16,1],[17,2],[18,2],[16,1],[19,2],[26,14],[19,34],[0,3]]], +[" 13 } ",[[0,1],[1,1],[2,2],[1,3],[5,1],[1,49],[0,3]]], +[" ",[[0,60]]], +[" ",[[0,60]]], +[" ",[[0,60]]], +[" ",[[0,60]]] +]} diff --git a/packages/cli-rs/parity/fixtures/U.4a/markdown-fences.json b/packages/cli-rs/parity/fixtures/U.4a/markdown-fences.json new file mode 100644 index 000000000000..803948958358 --- /dev/null +++ b/packages/cli-rs/parity/fixtures/U.4a/markdown-fences.json @@ -0,0 +1,26 @@ +{"width":60,"height":24,"styles":["#ffffffff #080808ff 0","#eeeeeeff #080808ff 0","#9d7cd8ff #080808ff 4","#e06c75ff #080808ff 0","#56b6c2ff #080808ff 0","#ef6c6cff #080808ff 0","#f5a742ff #080808ff 0","#9d7cd8ff #080808ff 0","#fab283ff #080808ff 0","#7fd88fff #080808ff 0","#808080ff #080808ff 4"],"lines":[ +[" Two fences: ",[[0,3],[1,11],[0,46]]], +[" ",[[0,60]]], +[" const answer: number = 42 ",[[0,3],[2,5],[0,1],[3,6],[4,1],[0,1],[5,6],[0,1],[4,1],[0,1],[6,2],[0,32]]], +[" export function greet(name: string) { ",[[0,3],[7,6],[0,1],[8,8],[0,1],[8,5],[1,1],[3,4],[4,1],[0,1],[5,6],[1,1],[0,1],[1,1],[0,20]]], +[" return `hi ${name}` ",[[0,5],[2,6],[0,1],[9,4],[4,2],[3,4],[4,1],[9,1],[0,36]]], +[" } ",[[0,3],[1,1],[0,56]]], +[" ",[[0,60]]], +[" // a comment ",[[0,3],[10,12],[0,45]]], +[" let items = [1, 2, 3].map((x) => x * 2) ",[[0,3],[2,3],[0,1],[3,5],[0,1],[4,1],[0,1],[1,1],[6,1],[4,1],[0,1],[6,1],[4,1],[0,1],[6,1],[1,1],[4,1],[8,3],[1,2],[3,1],[1,1],[0,1],[4,2],[0,1],[3,1],[0,1],[4,1],[0,1],[6,1],[1,1],[0,18]]], +[" ",[[0,60]]], +[" After the code. ",[[0,3],[1,15],[0,42]]], +[" ",[[0,60]]], +[" ",[[0,60]]], +[" ",[[0,60]]], +[" ",[[0,60]]], +[" ",[[0,60]]], +[" ",[[0,60]]], +[" ",[[0,60]]], +[" ",[[0,60]]], +[" ",[[0,60]]], +[" ",[[0,60]]], +[" ",[[0,60]]], +[" ",[[0,60]]], +[" ",[[0,60]]] +]} diff --git a/packages/cli-rs/parity/fixtures/U.4a/markdown-prose.json b/packages/cli-rs/parity/fixtures/U.4a/markdown-prose.json new file mode 100644 index 000000000000..7c91128ebb0b --- /dev/null +++ b/packages/cli-rs/parity/fixtures/U.4a/markdown-prose.json @@ -0,0 +1,26 @@ +{"width":60,"height":24,"styles":["#ffffffff #080808ff 0","#9d7cd8ff #080808ff 9","#eeeeeeff #080808ff 0","#f5a742ff #080808ff 1","#e5c07bff #080808ff 4","#56b6c2ff #080808ff 8","#fab283ff #080808ff 8","#7fd88fff #080808ff 0","#9d7cd8ff #080808ff 1","#fab283ff #080808ff 0"],"lines":[ +[" Session notes ",[[0,3],[1,13],[0,44]]], +[" ",[[0,60]]], +[" The runner keeps one step per call. See the plan (https:/",[[0,3],[2,4],[3,6],[2,7],[4,3],[2,20],[5,8],[2,1],[6,8]]], +[" /opencode.ai/docs) and Session.prompt. ",[[0,3],[6,18],[2,5],[7,14],[2,1],[0,19]]], +[" ",[[0,60]]], +[" Steps ",[[0,3],[8,5],[0,52]]], +[" ",[[0,60]]], +[" - Read the inbox ",[[0,3],[9,2],[2,14],[0,41]]], +[" - Stream the reply ",[[0,3],[9,2],[2,16],[0,39]]], +[" - nested detail ",[[0,5],[9,2],[2,13],[0,40]]], +[" - Finish ",[[0,3],[9,2],[2,6],[0,49]]], +[" ",[[0,60]]], +[" 1. First ",[[0,3],[9,3],[2,5],[0,49]]], +[" 2. Second ",[[0,3],[9,3],[2,6],[0,48]]], +[" ",[[0,60]]], +[" Done ",[[0,3],[8,4],[0,53]]], +[" ",[[0,60]]], +[" Plain closing line. ",[[0,3],[2,19],[0,38]]], +[" ",[[0,60]]], +[" ",[[0,60]]], +[" ",[[0,60]]], +[" ",[[0,60]]], +[" ",[[0,60]]], +[" ",[[0,60]]] +]} diff --git a/packages/cli-rs/parity/fixtures/U.4a/syntax.json b/packages/cli-rs/parity/fixtures/U.4a/syntax.json new file mode 100644 index 000000000000..c60ccdff4366 --- /dev/null +++ b/packages/cli-rs/parity/fixtures/U.4a/syntax.json @@ -0,0 +1,418 @@ +[ +{"name":"opencode","mode":"dark","styles":{ + "default":["ffffffff",null,false,false,false], + "prompt":["93a2b7ff",null,false,false,false], + "extmark.file":["f5a742ff",null,true,false,false], + "extmark.agent":["93a2b7ff",null,true,false,false], + "extmark.skill":["af9ebaff",null,true,false,false], + "extmark.paste":["080808ff","f5a742ff",true,false,false], + "comment":["808080ff",null,false,true,false], + "comment.documentation":["808080ff",null,false,true,false], + "string":["7fd88fff",null,false,false,false], + "symbol":["7fd88fff",null,false,false,false], + "character.special":["7fd88fff",null,false,false,false], + "character":["7fd88fff",null,false,false,false], + "number":["f5a742ff",null,false,false,false], + "boolean":["f5a742ff",null,false,false,false], + "constant":["f5a742ff",null,false,false,false], + "float":["f5a742ff",null,false,false,false], + "keyword.return":["9d7cd8ff",null,false,true,false], + "keyword.conditional":["9d7cd8ff",null,false,true,false], + "keyword.repeat":["9d7cd8ff",null,false,true,false], + "keyword.coroutine":["9d7cd8ff",null,false,true,false], + "keyword.type":["e5c07bff",null,true,true,false], + "keyword.function":["fab283ff",null,false,false,false], + "function.method":["fab283ff",null,false,false,false], + "keyword":["9d7cd8ff",null,false,true,false], + "keyword.import":["9d7cd8ff",null,false,false,false], + "string.escape":["9d7cd8ff",null,false,false,false], + "string.regexp":["9d7cd8ff",null,false,false,false], + "tag.attribute":["9d7cd8ff",null,false,false,false], + "keyword.export":["9d7cd8ff",null,false,false,false], + "operator":["56b6c2ff",null,false,false,false], + "keyword.operator":["56b6c2ff",null,false,false,false], + "punctuation.delimiter":["56b6c2ff",null,false,false,false], + "keyword.conditional.ternary":["56b6c2ff",null,false,false,false], + "variable":["e06c75ff",null,false,false,false], + "variable.parameter":["e06c75ff",null,false,false,false], + "function.method.call":["e06c75ff",null,false,false,false], + "function.call":["e06c75ff",null,false,false,false], + "property":["e06c75ff",null,false,false,false], + "parameter":["e06c75ff",null,false,false,false], + "field":["e06c75ff",null,false,false,false], + "variable.member":["fab283ff",null,false,false,false], + "function":["fab283ff",null,false,false,false], + "constructor":["fab283ff",null,false,false,false], + "type":["e5c07bff",null,false,false,false], + "module":["e5c07bff",null,false,false,false], + "class":["e5c07bff",null,false,false,false], + "namespace":["e5c07bff",null,false,false,false], + "type.definition":["e5c07bff",null,true,false,false], + "punctuation":["eeeeeeff",null,false,false,false], + "punctuation.bracket":["eeeeeeff",null,false,false,false], + "variable.builtin":["ef6c6cff",null,false,false,false], + "type.builtin":["ef6c6cff",null,false,false,false], + "function.builtin":["ef6c6cff",null,false,false,false], + "module.builtin":["ef6c6cff",null,false,false,false], + "constant.builtin":["ef6c6cff",null,false,false,false], + "variable.super":["ef6c6cff",null,false,false,false], + "keyword.directive":["9d7cd8ff",null,false,true,false], + "keyword.modifier":["9d7cd8ff",null,false,true,false], + "keyword.exception":["9d7cd8ff",null,false,true,false], + "punctuation.special":["56b6c2ff",null,false,false,false], + "tag.delimiter":["56b6c2ff",null,false,false,false], + "markup.heading":["9d7cd8ff",null,true,false,false], + "markup.heading.2":["9d7cd8ff",null,true,false,false], + "markup.heading.3":["9d7cd8ff",null,true,false,false], + "markup.heading.4":["9d7cd8ff",null,true,false,false], + "markup.heading.5":["9d7cd8ff",null,true,false,false], + "markup.heading.6":["9d7cd8ff",null,true,false,false], + "markup.heading.1":["9d7cd8ff",null,true,false,true], + "markup.bold":["f5a742ff",null,true,false,false], + "markup.strong":["f5a742ff",null,true,false,false], + "markup.italic":["e5c07bff",null,false,true,false], + "markup.list":["fab283ff",null,false,false,false], + "markup.quote":["e5c07bff",null,false,true,false], + "markup.raw":["7fd88fff",null,false,false,false], + "markup.raw.block":["7fd88fff",null,false,false,false], + "markup.raw.inline":["7fd88fff","080808ff",false,false,false], + "markup.link":["fab283ff",null,false,false,true], + "markup.link.url":["fab283ff",null,false,false,true], + "string.special":["fab283ff",null,false,false,true], + "string.special.url":["fab283ff",null,false,false,true], + "markup.link.label":["56b6c2ff",null,false,false,true], + "label":["56b6c2ff",null,false,false,false], + "spell":["ffffffff",null,false,false,false], + "nospell":["ffffffff",null,false,false,false], + "markup.underline":["ffffffff",null,false,false,true], + "comment.error":["ef6c6cff",null,true,true,false], + "comment.warning":["f5a742ff",null,true,true,false], + "comment.todo":["7699feff",null,true,true,false], + "comment.note":["7699feff",null,true,true,false], + "attribute":["f5a742ff",null,false,false,false], + "annotation":["f5a742ff",null,false,false,false], + "tag":["ef6c6cff",null,false,false,false], + "markup.strikethrough":["808080ff",null,false,false,false], + "markup.list.unchecked":["808080ff",null,false,false,false], + "debug":["808080ff",null,false,false,false], + "markup.list.checked":["9ee77aff",null,false,false,false], + "diff.plus":["4fd6beff","20303bff",false,false,false], + "diff.minus":["c53b53ff","37222cff",false,false,false], + "diff.delta":["828bb8ff","141414ff",false,false,false], + "error":["ef6c6cff",null,true,false,false], + "warning":["f5a742ff",null,true,false,false], + "info":["7699feff",null,false,false,false] +}}, +{"name":"opencode","mode":"light","styles":{ + "default":["101010ff",null,false,false,false], + "prompt":["6e7380ff",null,false,false,false], + "extmark.file":["d68c27ff",null,true,false,false], + "extmark.agent":["6e7380ff",null,true,false,false], + "extmark.skill":["74707cff",null,true,false,false], + "extmark.paste":["ffffffff","d68c27ff",true,false,false], + "comment":["8a8a8aff",null,false,true,false], + "comment.documentation":["8a8a8aff",null,false,true,false], + "string":["3d9a57ff",null,false,false,false], + "symbol":["3d9a57ff",null,false,false,false], + "character.special":["3d9a57ff",null,false,false,false], + "character":["3d9a57ff",null,false,false,false], + "number":["d68c27ff",null,false,false,false], + "boolean":["d68c27ff",null,false,false,false], + "constant":["d68c27ff",null,false,false,false], + "float":["d68c27ff",null,false,false,false], + "keyword.return":["d68c27ff",null,false,true,false], + "keyword.conditional":["d68c27ff",null,false,true,false], + "keyword.repeat":["d68c27ff",null,false,true,false], + "keyword.coroutine":["d68c27ff",null,false,true,false], + "keyword.type":["b0851fff",null,true,true,false], + "keyword.function":["3b7dd8ff",null,false,false,false], + "function.method":["3b7dd8ff",null,false,false,false], + "keyword":["d68c27ff",null,false,true,false], + "keyword.import":["d68c27ff",null,false,false,false], + "string.escape":["d68c27ff",null,false,false,false], + "string.regexp":["d68c27ff",null,false,false,false], + "tag.attribute":["d68c27ff",null,false,false,false], + "keyword.export":["d68c27ff",null,false,false,false], + "operator":["318795ff",null,false,false,false], + "keyword.operator":["318795ff",null,false,false,false], + "punctuation.delimiter":["318795ff",null,false,false,false], + "keyword.conditional.ternary":["318795ff",null,false,false,false], + "variable":["d1383dff",null,false,false,false], + "variable.parameter":["d1383dff",null,false,false,false], + "function.method.call":["d1383dff",null,false,false,false], + "function.call":["d1383dff",null,false,false,false], + "property":["d1383dff",null,false,false,false], + "parameter":["d1383dff",null,false,false,false], + "field":["d1383dff",null,false,false,false], + "variable.member":["3b7dd8ff",null,false,false,false], + "function":["3b7dd8ff",null,false,false,false], + "constructor":["3b7dd8ff",null,false,false,false], + "type":["b0851fff",null,false,false,false], + "module":["b0851fff",null,false,false,false], + "class":["b0851fff",null,false,false,false], + "namespace":["b0851fff",null,false,false,false], + "type.definition":["b0851fff",null,true,false,false], + "punctuation":["1a1a1aff",null,false,false,false], + "punctuation.bracket":["1a1a1aff",null,false,false,false], + "variable.builtin":["ec6262ff",null,false,false,false], + "type.builtin":["ec6262ff",null,false,false,false], + "function.builtin":["ec6262ff",null,false,false,false], + "module.builtin":["ec6262ff",null,false,false,false], + "constant.builtin":["ec6262ff",null,false,false,false], + "variable.super":["ec6262ff",null,false,false,false], + "keyword.directive":["d68c27ff",null,false,true,false], + "keyword.modifier":["d68c27ff",null,false,true,false], + "keyword.exception":["d68c27ff",null,false,true,false], + "punctuation.special":["318795ff",null,false,false,false], + "tag.delimiter":["318795ff",null,false,false,false], + "markup.heading":["d68c27ff",null,true,false,false], + "markup.heading.2":["d68c27ff",null,true,false,false], + "markup.heading.3":["d68c27ff",null,true,false,false], + "markup.heading.4":["d68c27ff",null,true,false,false], + "markup.heading.5":["d68c27ff",null,true,false,false], + "markup.heading.6":["d68c27ff",null,true,false,false], + "markup.heading.1":["d68c27ff",null,true,false,true], + "markup.bold":["d68c27ff",null,true,false,false], + "markup.strong":["d68c27ff",null,true,false,false], + "markup.italic":["b0851fff",null,false,true,false], + "markup.list":["3b7dd8ff",null,false,false,false], + "markup.quote":["b0851fff",null,false,true,false], + "markup.raw":["3d9a57ff",null,false,false,false], + "markup.raw.block":["3d9a57ff",null,false,false,false], + "markup.raw.inline":["3d9a57ff","ffffffff",false,false,false], + "markup.link":["3b7dd8ff",null,false,false,true], + "markup.link.url":["3b7dd8ff",null,false,false,true], + "string.special":["3b7dd8ff",null,false,false,true], + "string.special.url":["3b7dd8ff",null,false,false,true], + "markup.link.label":["318795ff",null,false,false,true], + "label":["318795ff",null,false,false,false], + "spell":["101010ff",null,false,false,false], + "nospell":["101010ff",null,false,false,false], + "markup.underline":["101010ff",null,false,false,true], + "comment.error":["ec6262ff",null,true,true,false], + "comment.warning":["d68c27ff",null,true,true,false], + "comment.todo":["6c8ffeff",null,true,true,false], + "comment.note":["6c8ffeff",null,true,true,false], + "attribute":["d68c27ff",null,false,false,false], + "annotation":["d68c27ff",null,false,false,false], + "tag":["ec6262ff",null,false,false,false], + "markup.strikethrough":["808080ff",null,false,false,false], + "markup.list.unchecked":["808080ff",null,false,false,false], + "debug":["808080ff",null,false,false,false], + "markup.list.checked":["62ec62ff",null,false,false,false], + "diff.plus":["1e725cff","d5e5d5ff",false,false,false], + "diff.minus":["c53b53ff","f7d8dbff",false,false,false], + "diff.delta":["7086b5ff","f2f2f2ff",false,false,false], + "error":["ec6262ff",null,true,false,false], + "warning":["d68c27ff",null,true,false,false], + "info":["6c8ffeff",null,false,false,false] +}}, +{"name":"tokyonight","mode":"dark","styles":{ + "default":["c8d3f5ff",null,false,false,false], + "prompt":["998178ff",null,false,false,false], + "extmark.file":["ff966cff",null,true,false,false], + "extmark.agent":["8a839aff",null,true,false,false], + "extmark.skill":["998178ff",null,true,false,false], + "extmark.paste":["1a1b26ff","ff966cff",true,false,false], + "comment":["828bb8ff",null,false,true,false], + "comment.documentation":["828bb8ff",null,false,true,false], + "string":["c3e88dff",null,false,false,false], + "symbol":["c3e88dff",null,false,false,false], + "character.special":["c3e88dff",null,false,false,false], + "character":["c3e88dff",null,false,false,false], + "number":["ff966cff",null,false,false,false], + "boolean":["ff966cff",null,false,false,false], + "constant":["ff966cff",null,false,false,false], + "float":["ff966cff",null,false,false,false], + "keyword.return":["c099ffff",null,false,true,false], + "keyword.conditional":["c099ffff",null,false,true,false], + "keyword.repeat":["c099ffff",null,false,true,false], + "keyword.coroutine":["c099ffff",null,false,true,false], + "keyword.type":["ffc777ff",null,true,true,false], + "keyword.function":["82aaffff",null,false,false,false], + "function.method":["82aaffff",null,false,false,false], + "keyword":["c099ffff",null,false,true,false], + "keyword.import":["c099ffff",null,false,false,false], + "string.escape":["c099ffff",null,false,false,false], + "string.regexp":["c099ffff",null,false,false,false], + "tag.attribute":["c099ffff",null,false,false,false], + "keyword.export":["c099ffff",null,false,false,false], + "operator":["86e1fcff",null,false,false,false], + "keyword.operator":["86e1fcff",null,false,false,false], + "punctuation.delimiter":["86e1fcff",null,false,false,false], + "keyword.conditional.ternary":["86e1fcff",null,false,false,false], + "variable":["ff757fff",null,false,false,false], + "variable.parameter":["ff757fff",null,false,false,false], + "function.method.call":["ff757fff",null,false,false,false], + "function.call":["ff757fff",null,false,false,false], + "property":["ff757fff",null,false,false,false], + "parameter":["ff757fff",null,false,false,false], + "field":["ff757fff",null,false,false,false], + "variable.member":["82aaffff",null,false,false,false], + "function":["82aaffff",null,false,false,false], + "constructor":["82aaffff",null,false,false,false], + "type":["ffc777ff",null,false,false,false], + "module":["ffc777ff",null,false,false,false], + "class":["ffc777ff",null,false,false,false], + "namespace":["ffc777ff",null,false,false,false], + "type.definition":["ffc777ff",null,true,false,false], + "punctuation":["c8d3f5ff",null,false,false,false], + "punctuation.bracket":["c8d3f5ff",null,false,false,false], + "variable.builtin":["ff757fff",null,false,false,false], + "type.builtin":["ff757fff",null,false,false,false], + "function.builtin":["ff757fff",null,false,false,false], + "module.builtin":["ff757fff",null,false,false,false], + "constant.builtin":["ff757fff",null,false,false,false], + "variable.super":["ff757fff",null,false,false,false], + "keyword.directive":["c099ffff",null,false,true,false], + "keyword.modifier":["c099ffff",null,false,true,false], + "keyword.exception":["c099ffff",null,false,true,false], + "punctuation.special":["86e1fcff",null,false,false,false], + "tag.delimiter":["86e1fcff",null,false,false,false], + "markup.heading":["c099ffff",null,true,false,false], + "markup.heading.2":["c099ffff",null,true,false,false], + "markup.heading.3":["c099ffff",null,true,false,false], + "markup.heading.4":["c099ffff",null,true,false,false], + "markup.heading.5":["c099ffff",null,true,false,false], + "markup.heading.6":["c099ffff",null,true,false,false], + "markup.heading.1":["c099ffff",null,true,false,true], + "markup.bold":["ff966cff",null,true,false,false], + "markup.strong":["ff966cff",null,true,false,false], + "markup.italic":["ffc777ff",null,false,true,false], + "markup.list":["82aaffff",null,false,false,false], + "markup.quote":["ffc777ff",null,false,true,false], + "markup.raw":["c3e88dff",null,false,false,false], + "markup.raw.block":["c3e88dff",null,false,false,false], + "markup.raw.inline":["c3e88dff","1a1b26ff",false,false,false], + "markup.link":["82aaffff",null,false,false,true], + "markup.link.url":["82aaffff",null,false,false,true], + "string.special":["82aaffff",null,false,false,true], + "string.special.url":["82aaffff",null,false,false,true], + "markup.link.label":["86e1fcff",null,false,false,true], + "label":["86e1fcff",null,false,false,false], + "spell":["c8d3f5ff",null,false,false,false], + "nospell":["c8d3f5ff",null,false,false,false], + "markup.underline":["c8d3f5ff",null,false,false,true], + "comment.error":["ff757fff",null,true,true,false], + "comment.warning":["ff966cff",null,true,true,false], + "comment.todo":["82aaffff",null,true,true,false], + "comment.note":["82aaffff",null,true,true,false], + "attribute":["ff966cff",null,false,false,false], + "annotation":["ff966cff",null,false,false,false], + "tag":["ff757fff",null,false,false,false], + "markup.strikethrough":["828bb8ff",null,false,false,false], + "markup.list.unchecked":["828bb8ff",null,false,false,false], + "debug":["828bb8ff",null,false,false,false], + "markup.list.checked":["c3e88dff",null,false,false,false], + "diff.plus":["4fd6beff","20303bff",false,false,false], + "diff.minus":["c53b53ff","37222cff",false,false,false], + "diff.delta":["828bb8ff","1e2030ff",false,false,false], + "error":["ff757fff",null,true,false,false], + "warning":["ff966cff",null,true,false,false], + "info":["82aaffff",null,false,false,false] +}}, +{"name":"github","mode":"light","styles":{ + "default":["24292fff",null,false,false,false], + "prompt":["7e8687ff",null,false,false,false], + "extmark.file":["9a6700ff",null,true,false,false], + "extmark.agent":["858292ff",null,true,false,false], + "extmark.skill":["7e8687ff",null,true,false,false], + "extmark.paste":["ffffffff","9a6700ff",true,false,false], + "comment":["57606aff",null,false,true,false], + "comment.documentation":["57606aff",null,false,true,false], + "string":["0969daff",null,false,false,false], + "symbol":["0969daff",null,false,false,false], + "character.special":["0969daff",null,false,false,false], + "character":["0969daff",null,false,false,false], + "number":["1b7c83ff",null,false,false,false], + "boolean":["1b7c83ff",null,false,false,false], + "constant":["1b7c83ff",null,false,false,false], + "float":["1b7c83ff",null,false,false,false], + "keyword.return":["cf222eff",null,false,true,false], + "keyword.conditional":["cf222eff",null,false,true,false], + "keyword.repeat":["cf222eff",null,false,true,false], + "keyword.coroutine":["cf222eff",null,false,true,false], + "keyword.type":["bc4c00ff",null,true,true,false], + "keyword.function":["8250dfff",null,false,false,false], + "function.method":["8250dfff",null,false,false,false], + "keyword":["cf222eff",null,false,true,false], + "keyword.import":["cf222eff",null,false,false,false], + "string.escape":["cf222eff",null,false,false,false], + "string.regexp":["cf222eff",null,false,false,false], + "tag.attribute":["cf222eff",null,false,false,false], + "keyword.export":["cf222eff",null,false,false,false], + "operator":["cf222eff",null,false,false,false], + "keyword.operator":["cf222eff",null,false,false,false], + "punctuation.delimiter":["cf222eff",null,false,false,false], + "keyword.conditional.ternary":["cf222eff",null,false,false,false], + "variable":["bc4c00ff",null,false,false,false], + "variable.parameter":["bc4c00ff",null,false,false,false], + "function.method.call":["bc4c00ff",null,false,false,false], + "function.call":["bc4c00ff",null,false,false,false], + "property":["bc4c00ff",null,false,false,false], + "parameter":["bc4c00ff",null,false,false,false], + "field":["bc4c00ff",null,false,false,false], + "variable.member":["8250dfff",null,false,false,false], + "function":["8250dfff",null,false,false,false], + "constructor":["8250dfff",null,false,false,false], + "type":["bc4c00ff",null,false,false,false], + "module":["bc4c00ff",null,false,false,false], + "class":["bc4c00ff",null,false,false,false], + "namespace":["bc4c00ff",null,false,false,false], + "type.definition":["bc4c00ff",null,true,false,false], + "punctuation":["24292fff",null,false,false,false], + "punctuation.bracket":["24292fff",null,false,false,false], + "variable.builtin":["cf222eff",null,false,false,false], + "type.builtin":["cf222eff",null,false,false,false], + "function.builtin":["cf222eff",null,false,false,false], + "module.builtin":["cf222eff",null,false,false,false], + "constant.builtin":["cf222eff",null,false,false,false], + "variable.super":["cf222eff",null,false,false,false], + "keyword.directive":["cf222eff",null,false,true,false], + "keyword.modifier":["cf222eff",null,false,true,false], + "keyword.exception":["cf222eff",null,false,true,false], + "punctuation.special":["cf222eff",null,false,false,false], + "tag.delimiter":["cf222eff",null,false,false,false], + "markup.heading":["0969daff",null,true,false,false], + "markup.heading.2":["0969daff",null,true,false,false], + "markup.heading.3":["0969daff",null,true,false,false], + "markup.heading.4":["0969daff",null,true,false,false], + "markup.heading.5":["0969daff",null,true,false,false], + "markup.heading.6":["0969daff",null,true,false,false], + "markup.heading.1":["0969daff",null,true,false,true], + "markup.bold":["bc4c00ff",null,true,false,false], + "markup.strong":["bc4c00ff",null,true,false,false], + "markup.italic":["9a6700ff",null,false,true,false], + "markup.list":["0969daff",null,false,false,false], + "markup.quote":["57606aff",null,false,true,false], + "markup.raw":["bf3989ff",null,false,false,false], + "markup.raw.block":["bf3989ff",null,false,false,false], + "markup.raw.inline":["bf3989ff","ffffffff",false,false,false], + "markup.link":["0969daff",null,false,false,true], + "markup.link.url":["0969daff",null,false,false,true], + "string.special":["0969daff",null,false,false,true], + "string.special.url":["0969daff",null,false,false,true], + "markup.link.label":["1b7c83ff",null,false,false,true], + "label":["1b7c83ff",null,false,false,false], + "spell":["24292fff",null,false,false,false], + "nospell":["24292fff",null,false,false,false], + "markup.underline":["24292fff",null,false,false,true], + "comment.error":["cf222eff",null,true,true,false], + "comment.warning":["9a6700ff",null,true,true,false], + "comment.todo":["bc4c00ff",null,true,true,false], + "comment.note":["bc4c00ff",null,true,true,false], + "attribute":["9a6700ff",null,false,false,false], + "annotation":["9a6700ff",null,false,false,false], + "tag":["cf222eff",null,false,false,false], + "markup.strikethrough":["57606aff",null,false,false,false], + "markup.list.unchecked":["57606aff",null,false,false,false], + "debug":["57606aff",null,false,false,false], + "markup.list.checked":["1a7f37ff",null,false,false,false], + "diff.plus":["1a7f37ff","dafbe1ff",false,false,false], + "diff.minus":["cf222eff","ffebe9ff",false,false,false], + "diff.delta":["57606aff","f6f8faff",false,false,false], + "error":["cf222eff",null,true,false,false], + "warning":["9a6700ff",null,true,false,false], + "info":["bc4c00ff",null,false,false,false] +}} +] diff --git a/packages/cli-rs/parity/fixtures/U.4b/agda.json b/packages/cli-rs/parity/fixtures/U.4b/agda.json new file mode 100644 index 000000000000..02a01a71e8d5 --- /dev/null +++ b/packages/cli-rs/parity/fixtures/U.4b/agda.json @@ -0,0 +1,14 @@ +{"width":60,"height":12,"styles":["#9d7cd8ff #080808ff 4","#ffffffff #080808ff 0","#e5c07bff #080808ff 0","#ffffffff #080808ff 4","#fab283ff #080808ff 0","#ef6c6cff #080808ff 0","#56b6c2ff #080808ff 0","#eeeeeeff #080808ff 0"],"lines":[ +["module Nat where ",[[0,6],[1,1],[2,3],[1,1],[0,5],[1,44]]], +[" ",[[1,60]]], +["-- Natural numbers. ",[[3,19],[1,41]]], +["data Nat : Set where ",[[0,4],[1,1],[4,3],[1,3],[5,3],[1,1],[0,5],[1,40]]], +[" zero : Nat ",[[1,2],[4,4],[1,3],[4,3],[1,48]]], +[" suc : Nat -> Nat ",[[1,2],[4,3],[1,4],[4,3],[1,4],[4,3],[1,41]]], +[" ",[[1,60]]], +["_+_ : Nat -> Nat -> Nat ",[[4,3],[1,3],[4,3],[1,4],[4,3],[1,4],[4,3],[1,37]]], +["zero + m = m ",[[1,10],[6,1],[1,1],[4,1],[1,47]]], +["suc n + m = suc (n + m) ",[[1,10],[6,1],[1,1],[4,3],[1,1],[7,1],[4,1],[1,4],[7,1],[1,37]]], +[" ",[[1,60]]], +[" ",[[1,60]]] +]} diff --git a/packages/cli-rs/parity/fixtures/U.4b/bash.json b/packages/cli-rs/parity/fixtures/U.4b/bash.json new file mode 100644 index 000000000000..70ed6f64c3b0 --- /dev/null +++ b/packages/cli-rs/parity/fixtures/U.4b/bash.json @@ -0,0 +1,14 @@ +{"width":60,"height":12,"styles":["#9d7cd8ff #080808ff 4","#ffffffff #080808ff 0","#ef6c6cff #080808ff 0","#e06c75ff #080808ff 0","#ffffffff #080808ff 4","#56b6c2ff #080808ff 0","#eeeeeeff #080808ff 0","#7fd88fff #080808ff 0","#9d7cd8ff #080808ff 0","#f5a742ff #080808ff 0"],"lines":[ +["#!/usr/bin/env bash ",[[0,19],[1,41]]], +["set -euo pipefail ",[[2,3],[1,1],[3,4],[1,1],[3,8],[1,43]]], +["# Build each package. ",[[4,21],[1,39]]], +["for dir in packages/*; do ",[[0,3],[1,1],[3,3],[1,1],[0,2],[1,11],[5,1],[1,1],[0,2],[1,35]]], +[" if [ -f \"$dir/package.json\" ]; then ",[[1,2],[0,2],[1,1],[6,1],[1,1],[5,2],[1,1],[7,1],[5,1],[3,3],[7,14],[1,1],[6,1],[5,1],[1,1],[0,4],[1,23]]], +[" echo \"build ${dir}\" && bun run --cwd \"$dir\" build ",[[1,4],[2,4],[1,1],[7,7],[5,2],[3,3],[5,1],[7,1],[1,1],[5,2],[1,1],[3,3],[1,1],[3,3],[1,1],[3,5],[1,1],[7,1],[5,1],[3,3],[7,1],[1,1],[3,5],[1,7]]], +[" fi ",[[1,2],[0,2],[1,56]]], +["done ",[[0,4],[1,56]]], +["export COUNT=$((1 + 2)) ",[[8,6],[1,1],[9,5],[5,4],[9,1],[1,1],[5,1],[1,1],[9,1],[5,2],[1,37]]], +[" ",[[1,60]]], +[" ",[[1,60]]], +[" ",[[1,60]]] +]} diff --git a/packages/cli-rs/parity/fixtures/U.4b/c.json b/packages/cli-rs/parity/fixtures/U.4b/c.json new file mode 100644 index 000000000000..5facbc22a33d --- /dev/null +++ b/packages/cli-rs/parity/fixtures/U.4b/c.json @@ -0,0 +1,14 @@ +{"width":60,"height":12,"styles":["#9d7cd8ff #080808ff 0","#ffffffff #080808ff 0","#7fd88fff #080808ff 0","#ffffffff #080808ff 4","#9d7cd8ff #080808ff 4","#ef6c6cff #080808ff 0","#fab283ff #080808ff 0","#eeeeeeff #080808ff 0","#e06c75ff #080808ff 0","#56b6c2ff #080808ff 0","#f5a742ff #080808ff 0"],"lines":[ +["#include <stdio.h> ",[[0,8],[1,1],[2,9],[1,42]]], +[" ",[[1,60]]], +["/* Count to n. */ ",[[3,17],[1,43]]], +["static int count(const char *s, int n) { ",[[4,6],[1,1],[5,3],[1,1],[6,5],[7,1],[4,5],[1,1],[5,4],[1,1],[8,2],[9,1],[1,1],[5,3],[1,1],[8,1],[7,1],[1,1],[7,1],[1,20]]], +[" for (int i = 0; i < n; i++) printf(\"%d\\n\", i); ",[[1,2],[4,3],[1,1],[7,1],[5,3],[1,1],[8,1],[1,1],[9,1],[1,1],[10,1],[9,1],[1,1],[8,1],[1,1],[9,1],[1,1],[8,1],[9,1],[1,1],[8,1],[9,2],[7,1],[1,1],[8,6],[7,1],[2,3],[0,2],[2,1],[9,1],[1,1],[8,1],[7,1],[9,1],[1,12]]], +[" return s == NULL ? -1 : 0; ",[[1,2],[4,6],[1,1],[8,1],[1,1],[9,2],[1,1],[5,4],[1,1],[9,1],[1,1],[10,2],[1,1],[9,1],[1,1],[10,1],[9,1],[1,32]]], +["} ",[[7,1],[1,59]]], +[" ",[[1,60]]], +[" ",[[1,60]]], +[" ",[[1,60]]], +[" ",[[1,60]]], +[" ",[[1,60]]] +]} diff --git a/packages/cli-rs/parity/fixtures/U.4b/clojure.json b/packages/cli-rs/parity/fixtures/U.4b/clojure.json new file mode 100644 index 000000000000..e2f07f3d8e7f --- /dev/null +++ b/packages/cli-rs/parity/fixtures/U.4b/clojure.json @@ -0,0 +1,14 @@ +{"width":60,"height":12,"styles":["#eeeeeeff #080808ff 0","#9d7cd8ff #080808ff 0","#ffffffff #080808ff 0","#fab283ff #080808ff 0","#7fd88fff #080808ff 0","#ef6c6cff #080808ff 0","#ffffffff #080808ff 4","#f5a742ff #080808ff 0","#fab283ff #080808ff 4","#56b6c2ff #080808ff 0"],"lines":[ +["(ns app.core ",[[0,1],[1,2],[2,1],[3,8],[2,48]]], +[" (:require [clojure.string :as str])) ",[[2,2],[0,1],[4,8],[2,1],[0,1],[3,14],[2,1],[4,3],[2,1],[5,3],[0,3],[2,22]]], +[" ",[[2,60]]], +[";; Shout a name. ",[[6,16],[2,44]]], +["(defn shout [name & {:keys [n] :or {n 1}}] ",[[0,1],[3,4],[2,1],[3,5],[2,1],[0,1],[5,4],[2,1],[3,1],[2,1],[0,1],[4,5],[2,1],[0,1],[3,1],[0,1],[2,1],[4,3],[2,1],[0,1],[3,1],[2,1],[7,1],[0,3],[2,18]]], +[" (str/upper-case (str name \"!\" n nil true))) ",[[2,2],[0,1],[3,14],[2,1],[0,1],[5,3],[2,1],[5,4],[2,1],[4,3],[2,1],[3,1],[2,1],[5,3],[2,1],[7,4],[0,3],[2,15]]], +[" ",[[2,60]]], +["(def ^:private max-size 10) ",[[0,1],[8,3],[2,1],[9,1],[4,8],[3,9],[2,1],[7,2],[0,1],[2,33]]], +[" ",[[2,60]]], +[" ",[[2,60]]], +[" ",[[2,60]]], +[" ",[[2,60]]] +]} diff --git a/packages/cli-rs/parity/fixtures/U.4b/corpus.json b/packages/cli-rs/parity/fixtures/U.4b/corpus.json new file mode 100644 index 000000000000..b1dedbcaccac --- /dev/null +++ b/packages/cli-rs/parity/fixtures/U.4b/corpus.json @@ -0,0 +1,36 @@ +{ + "javascript": "// Sum the values.\nexport const sum = (xs) => xs.reduce((a, b) => a + b, 0)\nclass Queue extends Array {\n push(item) { return super.push(item) }\n}\nconst re = /ab+c/g, s = `n=${sum([1, 2])}`\nif (re.test(s)) console.log(null, true, MAX_SIZE)\n", + "typescriptreact": "import { Box } from \"./box\"\n\ntype Props = { title: string; width?: number }\n\nexport function View(props: Props) {\n return <Box title={props.title} width={10}>hi</Box>\n}\n", + "rust": "use std::fmt;\n\n/// A point.\n#[derive(Debug)]\npub struct Point { x: i32, y: Option<u8> }\n\nimpl fmt::Display for Point {\n fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {\n write!(f, \"{} {}\", self.x, 'c')\n }\n}\n", + "python": "import os\nfrom typing import List\n\n# Count the files.\n@cache\ndef count(paths: List[str]) -> int:\n return len([p for p in paths if os.path.isfile(p)])\n\nclass Box:\n size = 3 if True else None\n", + "go": "package main\n\nimport \"fmt\"\n\n// Greet prints a name.\nfunc Greet(name string) error {\n for i := 0; i < 2; i++ {\n fmt.Println(\"hi\", name, i, 4.5)\n }\n return nil\n}\n", + "bash": "#!/usr/bin/env bash\nset -euo pipefail\n# Build each package.\nfor dir in packages/*; do\n if [ -f \"$dir/package.json\" ]; then\n echo \"build ${dir}\" && bun run --cwd \"$dir\" build\n fi\ndone\nexport COUNT=$((1 + 2))\n", + "json": "{\n \"name\": \"opencode\",\n \"version\": 2.5,\n \"private\": true,\n \"tags\": [\"cli\", null],\n \"nested\": { \"escape\": \"a\\nb\" }\n}\n", + "yaml": "# CI\nname: test\non: [push]\njobs:\n unit:\n runs-on: ubuntu-latest\n timeout: 10\n enabled: true\n steps:\n - run: bun test --timeout 5000\n env: { CI: \"1\" }\n", + "markdown": "# Title\n\nSome **bold**, *italic* and `code`, a [link](https://x.y).\n\n```ts\nconst a: number = 1\n```\n\n- item\n> quote\n", + "diff": "diff --git a/src/a.ts b/src/a.ts\nindex 1234567..89abcde 100644\n--- a/src/a.ts\n+++ b/src/a.ts\n@@ -1,3 +1,3 @@\n const a = 1\n-const b = 2\n+const b = 3\n", + "html": "<!doctype html>\n<html lang=\"en\">\n <!-- page -->\n <body class=\"app\">\n <a href=\"/docs\">Docs & more</a>\n <input disabled>\n </body>\n</html>\n", + "css": "/* Layout */\n.app > main, #root {\n display: flex;\n margin: 0 auto;\n color: #ff0000 !important;\n}\n@media (max-width: 600px) {\n .app:hover { padding: 4px; }\n}\n", + "zig": "const std = @import(\"std\");\n\n// Entry.\npub fn main() !void {\n const x: u32 = 42;\n if (x > 1) std.debug.print(\"{d}\\n\", .{x});\n}\n", + "c": "#include <stdio.h>\n\n/* Count to n. */\nstatic int count(const char *s, int n) {\n for (int i = 0; i < n; i++) printf(\"%d\\n\", i);\n return s == NULL ? -1 : 0;\n}\n", + "cpp": "#include <vector>\n\nnamespace app {\n// A box.\ntemplate <typename T> class Box {\npublic:\n explicit Box(T v) : value(v) {}\n auto get() const -> T { return value; }\n T value;\n};\n}\n", + "csharp": "using System;\n\nnamespace App;\n\n// A point.\npublic record Point(int X, int Y) {\n public override string ToString() => $\"{X} {Y}\";\n public static bool Ok = true;\n}\n", + "java": "package app;\n\nimport java.util.List;\n\n/** A list. */\n@Deprecated\npublic final class Names {\n private static final int MAX = 10;\n public int size(List<String> xs) { return xs.size(); }\n}\n", + "ruby": "require \"json\"\n\n# A greeter.\nclass Greeter < Base\n attr_reader :name\n def greet(times = 2)\n times.times { |i| puts \"hi #{@name} #{i}\" }\n nil\n end\nend\n", + "php": "<?php\nnamespace App;\n\n// A user.\nclass User extends Model {\n public function name(int $n = 1): ?string {\n $x = [\"a\" => true, \"b\" => null];\n return \"user {$this->id}\";\n }\n}\n", + "scala": "package app\n\n// A shape.\nsealed trait Shape\ncase class Circle(r: Double) extends Shape\n\nobject Main {\n def area(s: Shape): Double = s match {\n case Circle(r) => 3.14 * r * r\n }\n}\n", + "vue": "<template>\n <!-- counter -->\n <button :class=\"{ on }\" @click=\"n++\">{{ n }}</button>\n</template>\n<script setup>\nconst n = ref(0)\n</script>\n<style>\nbutton { color: red; }\n</style>\n", + "hcl": "# Main bucket.\nresource \"aws_s3_bucket\" \"main\" {\n bucket = \"app-${var.env}\"\n count = 2\n tags = {\n enabled = true\n }\n}\n\nvariable \"env\" { default = null }\n", + "haskell": "module Main where\n\nimport Data.List (sort)\n\n-- | Sum the list.\ntotal :: [Int] -> Int\ntotal xs = foldr (+) 0 xs\n\nmain :: IO ()\nmain = print (total [1, 2, 3]) >> putStrLn \"ok\"\n", + "julia": "module App\n\n# Square each value.\nfunction squares(xs::Vector{Int})::Vector{Int}\n return [x^2 for x in xs if x > 0]\nend\n\nconst MAX = 10\nprintln(\"n = $(MAX)\", true, nothing)\nend\n", + "lua": "local M = {}\n\n-- Greet a name.\nfunction M.greet(name, times)\n for i = 1, times or 2 do\n print(\"hi \" .. name, i, nil, true)\n end\n return #name\nend\n\nreturn M\n", + "clojure": "(ns app.core\n (:require [clojure.string :as str]))\n\n;; Shout a name.\n(defn shout [name & {:keys [n] :or {n 1}}]\n (str/upper-case (str name \"!\" n nil true)))\n\n(def ^:private max-size 10)\n", + "toml": "# Package.\n[package]\nname = \"opencode\"\nversion = \"0.1.0\"\nedition = 2024\npublish = false\n\n[dependencies]\nserde = { version = \"1\", features = [\"derive\"] }\n", + "nix": "{ pkgs ? import <nixpkgs> { } }:\n\n# The shell.\nlet\n name = \"app\";\nin\npkgs.mkShell {\n inherit name;\n packages = with pkgs; [ bun zig ];\n shellHook = ''echo ${name}'';\n}\n", + "elixir": "defmodule App.Greeter do\n @moduledoc \"Greets.\"\n\n # Greet a name.\n def greet(name, opts \\\\ []) when is_binary(name) do\n times = Keyword.get(opts, :times, 2)\n IO.puts(\"hi #{name} #{times}\")\n {:ok, nil}\n end\nend\n", + "r": "library(stats)\n\n# Scale a vector.\nscale_to <- function(x, to = 1L, na.rm = TRUE) {\n if (is.null(x)) return(NA)\n m <- max(x, na.rm = na.rm)\n x / m * to\n}\nprint(scale_to(c(1, 2.5, 4)))\n", + "make": "# Build.\nCC ?= cc\nSRC := $(wildcard src/*.c)\n.PHONY: all clean\nall: app\n\napp: $(SRC)\n\t$(CC) -o $@ $^\n\nclean:\n\trm -f app\n", + "vim": "\" Settings.\nset number tabstop=4\nlet g:app_name = 'app'\n\nfunction! Greet(name) abort\n if a:name ==# ''\n return 0\n endif\n echo 'hi ' . a:name\nendfunction\n", + "xml": "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<!-- config -->\n<project name=\"app\" default=\"build\">\n <property name=\"src\" value=\"src\"/>\n <target name=\"build\">\n <echo>Build & test</echo>\n <![CDATA[ raw <text> ]]>\n </target>\n</project>\n", + "agda": "module Nat where\n\n-- Natural numbers.\ndata Nat : Set where\n zero : Nat\n suc : Nat -> Nat\n\n_+_ : Nat -> Nat -> Nat\nzero + m = m\nsuc n + m = suc (n + m)\n" +} diff --git a/packages/cli-rs/parity/fixtures/U.4b/cpp.json b/packages/cli-rs/parity/fixtures/U.4b/cpp.json new file mode 100644 index 000000000000..e7a6a08a9d31 --- /dev/null +++ b/packages/cli-rs/parity/fixtures/U.4b/cpp.json @@ -0,0 +1,14 @@ +{"width":60,"height":12,"styles":["#ffffffff #080808ff 0","#e5c07bff #080808ff 5","#e5c07bff #080808ff 0","#eeeeeeff #080808ff 0","#9d7cd8ff #080808ff 4","#fab283ff #080808ff 0","#ef6c6cff #080808ff 0"],"lines":[ +["#include <vector> ",[[0,60]]], +[" ",[[0,60]]], +["namespace app { ",[[1,9],[0,1],[2,3],[0,47]]], +["// A box. ",[[0,60]]], +["template <typename T> class Box { ",[[1,8],[0,1],[3,1],[1,8],[0,2],[3,1],[0,1],[1,5],[0,33]]], +["public: ",[[4,6],[0,54]]], +[" explicit Box(T v) : value(v) {} ",[[0,2],[4,8],[0,12],[5,5],[0,33]]], +[" auto get() const -> T { return value; } ",[[0,2],[6,4],[0,1],[5,3],[0,50]]], +[" T value; ",[[0,4],[5,5],[0,51]]], +["}; ",[[0,60]]], +["} ",[[0,60]]], +[" ",[[0,60]]] +]} diff --git a/packages/cli-rs/parity/fixtures/U.4b/csharp.json b/packages/cli-rs/parity/fixtures/U.4b/csharp.json new file mode 100644 index 000000000000..a9f9146fed64 --- /dev/null +++ b/packages/cli-rs/parity/fixtures/U.4b/csharp.json @@ -0,0 +1,14 @@ +{"width":60,"height":12,"styles":["#9d7cd8ff #080808ff 0","#ffffffff #080808ff 0","#e5c07bff #080808ff 0","#56b6c2ff #080808ff 0","#e5c07bff #080808ff 5","#808080ff #080808ff 4","#9d7cd8ff #080808ff 4","#eeeeeeff #080808ff 0","#ef6c6cff #080808ff 0","#e06c75ff #080808ff 0","#fab283ff #080808ff 0","#7fd88fff #080808ff 0","#f5a742ff #080808ff 0"],"lines":[ +["using System; ",[[0,5],[1,1],[2,6],[3,1],[1,47]]], +[" ",[[1,60]]], +["namespace App; ",[[4,9],[1,1],[2,3],[3,1],[1,46]]], +[" ",[[1,60]]], +["// A point. ",[[5,11],[1,49]]], +["public record Point(int X, int Y) { ",[[6,6],[1,1],[4,6],[1,1],[2,5],[7,1],[8,3],[1,1],[9,1],[3,1],[1,1],[8,3],[1,1],[9,1],[7,1],[1,1],[7,1],[1,25]]], +[" public override string ToString() => $\"{X} {Y}\"; ",[[1,4],[6,6],[1,1],[6,8],[1,1],[8,6],[1,1],[10,8],[7,2],[1,1],[3,2],[1,1],[11,2],[3,1],[9,1],[3,1],[11,1],[3,1],[9,1],[3,1],[11,1],[3,1],[1,8]]], +[" public static bool Ok = true; ",[[1,4],[6,6],[1,1],[6,6],[1,1],[8,4],[1,1],[10,2],[1,1],[3,1],[1,1],[12,4],[3,1],[1,27]]], +["} ",[[7,1],[1,59]]], +[" ",[[1,60]]], +[" ",[[1,60]]], +[" ",[[1,60]]] +]} diff --git a/packages/cli-rs/parity/fixtures/U.4b/css.json b/packages/cli-rs/parity/fixtures/U.4b/css.json new file mode 100644 index 000000000000..d597f1bc1a25 --- /dev/null +++ b/packages/cli-rs/parity/fixtures/U.4b/css.json @@ -0,0 +1,14 @@ +{"width":60,"height":12,"styles":["#ffffffff #080808ff 4","#ffffffff #080808ff 0","#56b6c2ff #080808ff 0","#e5c07bff #080808ff 0","#ef6c6cff #080808ff 0","#f5a742ff #080808ff 0","#eeeeeeff #080808ff 0","#e06c75ff #080808ff 0","#7fd88fff #080808ff 0","#9d7cd8ff #080808ff 4"],"lines":[ +["/* Layout */ ",[[0,12],[1,48]]], +[".app > main, #root { ",[[2,1],[3,3],[1,1],[2,1],[1,1],[4,4],[2,1],[1,1],[2,1],[5,4],[1,1],[6,1],[1,40]]], +[" display: flex; ",[[1,2],[7,7],[2,1],[1,5],[2,1],[1,44]]], +[" margin: 0 auto; ",[[1,2],[7,6],[2,1],[1,1],[5,1],[1,5],[2,1],[1,43]]], +[" color: #ff0000 !important; ",[[1,2],[7,5],[2,1],[1,1],[2,1],[8,6],[1,1],[9,10],[2,1],[1,32]]], +["} ",[[6,1],[1,59]]], +["@media (max-width: 600px) { ",[[9,6],[1,1],[6,1],[7,9],[2,1],[1,1],[5,3],[8,2],[6,1],[1,1],[6,1],[1,33]]], +[" .app:hover { padding: 4px; } ",[[1,2],[2,1],[3,3],[2,1],[5,5],[1,1],[6,1],[1,1],[7,7],[2,1],[1,1],[5,1],[8,2],[2,1],[1,1],[6,1],[1,30]]], +["} ",[[6,1],[1,59]]], +[" ",[[1,60]]], +[" ",[[1,60]]], +[" ",[[1,60]]] +]} diff --git a/packages/cli-rs/parity/fixtures/U.4b/diff.json b/packages/cli-rs/parity/fixtures/U.4b/diff.json new file mode 100644 index 000000000000..b963dbb149a3 --- /dev/null +++ b/packages/cli-rs/parity/fixtures/U.4b/diff.json @@ -0,0 +1,14 @@ +{"width":60,"height":12,"styles":["#fab283ff #080808ff 0","#ffffffff #080808ff 0","#e06c75ff #080808ff 0","#7fd88fff #080808ff 0","#9d7cd8ff #080808ff 4","#f5a742ff #080808ff 0","#56b6c2ff #080808ff 0","#56b6c2ff #37222cff 0","#c53b53ff #37222cff 0","#7fd88fff #37222cff 0","#56b6c2ff #20303bff 0","#4fd6beff #20303bff 0","#7fd88fff #20303bff 0"],"lines":[ +["diff --git a/src/a.ts b/src/a.ts ",[[0,4],[1,1],[2,5],[1,1],[3,21],[1,28]]], +["index 1234567..89abcde 100644 ",[[4,5],[1,1],[5,7],[6,2],[5,7],[1,1],[5,6],[1,31]]], +["--- a/src/a.ts ",[[7,3],[8,1],[9,10],[1,46]]], +["+++ b/src/a.ts ",[[10,3],[11,1],[12,10],[1,46]]], +["@@ -1,3 +1,3 @@ ",[[5,15],[1,45]]], +[" const a = 1 ",[[1,60]]], +["-const b = 2 ",[[7,1],[8,11],[1,48]]], +["+const b = 3 ",[[10,1],[11,11],[1,48]]], +[" ",[[1,60]]], +[" ",[[1,60]]], +[" ",[[1,60]]], +[" ",[[1,60]]] +]} diff --git a/packages/cli-rs/parity/fixtures/U.4b/elixir.json b/packages/cli-rs/parity/fixtures/U.4b/elixir.json new file mode 100644 index 000000000000..5e470848beba --- /dev/null +++ b/packages/cli-rs/parity/fixtures/U.4b/elixir.json @@ -0,0 +1,14 @@ +{"width":60,"height":12,"styles":["#fab283ff #080808ff 0","#ffffffff #080808ff 0","#e5c07bff #080808ff 0","#9d7cd8ff #080808ff 4","#808080ff #080808ff 4","#ffffffff #080808ff 4","#e06c75ff #080808ff 0","#eeeeeeff #080808ff 0","#56b6c2ff #080808ff 0","#7fd88fff #080808ff 0","#f5a742ff #080808ff 0","#fab283ff #080808ff 8","#ef6c6cff #080808ff 0"],"lines":[ +["defmodule App.Greeter do ",[[0,9],[1,1],[2,11],[1,1],[3,2],[1,36]]], +[" @moduledoc \"Greets.\" ",[[1,2],[4,20],[1,38]]], +[" ",[[1,60]]], +[" # Greet a name. ",[[1,2],[5,15],[1,43]]], +[" def greet(name, opts \\\\ []) when is_binary(name) do ",[[1,2],[0,3],[1,1],[6,5],[7,1],[6,4],[8,1],[1,1],[6,4],[1,1],[8,2],[1,1],[7,3],[1,1],[3,4],[1,1],[6,9],[7,1],[6,4],[7,1],[1,1],[3,2],[1,7]]], +[" times = Keyword.get(opts, :times, 2) ",[[1,4],[6,5],[1,1],[8,1],[1,1],[2,7],[8,1],[6,3],[7,1],[6,4],[8,1],[1,1],[9,6],[8,1],[1,1],[10,1],[7,1],[1,20]]], +[" IO.puts(\"hi #{name} #{times}\") ",[[1,4],[2,2],[8,1],[6,4],[7,1],[9,4],[11,2],[6,4],[11,1],[9,1],[11,2],[6,5],[11,1],[9,1],[7,1],[1,26]]], +[" {:ok, nil} ",[[1,4],[7,1],[9,3],[8,1],[1,1],[12,3],[7,1],[1,46]]], +[" end ",[[1,2],[3,3],[1,55]]], +["end ",[[3,3],[1,57]]], +[" ",[[1,60]]], +[" ",[[1,60]]] +]} diff --git a/packages/cli-rs/parity/fixtures/U.4b/go.json b/packages/cli-rs/parity/fixtures/U.4b/go.json new file mode 100644 index 000000000000..13af35b932fb --- /dev/null +++ b/packages/cli-rs/parity/fixtures/U.4b/go.json @@ -0,0 +1,14 @@ +{"width":60,"height":12,"styles":["#9d7cd8ff #080808ff 0","#ffffffff #080808ff 0","#e5c07bff #080808ff 0","#808080ff #080808ff 4","#fab283ff #080808ff 0","#eeeeeeff #080808ff 0","#e06c75ff #080808ff 0","#ef6c6cff #080808ff 0","#9d7cd8ff #080808ff 4","#56b6c2ff #080808ff 0","#f5a742ff #080808ff 0"],"lines":[ +["package main ",[[0,7],[1,1],[2,4],[1,48]]], +[" ",[[1,60]]], +["import \"fmt\" ",[[0,6],[1,54]]], +[" ",[[1,60]]], +["// Greet prints a name. ",[[3,23],[1,37]]], +["func Greet(name string) error { ",[[4,4],[1,1],[4,5],[5,1],[6,4],[1,1],[7,6],[5,1],[1,1],[7,5],[1,1],[5,1],[1,29]]], +[" for i := 0; i < 2; i++ { ",[[1,4],[8,3],[1,1],[6,1],[1,1],[9,2],[1,1],[10,1],[9,1],[1,1],[6,1],[1,1],[9,1],[1,1],[10,1],[9,1],[1,1],[6,1],[9,2],[1,1],[5,1],[1,32]]], +[" fmt.Println(\"hi\", name, i, 4.5) ",[[1,8],[6,3],[9,1],[6,7],[5,1],[1,4],[9,1],[1,1],[6,4],[9,1],[1,1],[6,1],[9,1],[1,1],[10,3],[5,1],[1,21]]], +[" } ",[[1,4],[5,1],[1,55]]], +[" return nil ",[[1,4],[8,6],[1,1],[7,3],[1,46]]], +["} ",[[5,1],[1,59]]], +[" ",[[1,60]]] +]} diff --git a/packages/cli-rs/parity/fixtures/U.4b/haskell.json b/packages/cli-rs/parity/fixtures/U.4b/haskell.json new file mode 100644 index 000000000000..52d023c106dc --- /dev/null +++ b/packages/cli-rs/parity/fixtures/U.4b/haskell.json @@ -0,0 +1,14 @@ +{"width":60,"height":12,"styles":["#9d7cd8ff #080808ff 0","#ffffffff #080808ff 0","#e5c07bff #080808ff 0","#9d7cd8ff #080808ff 4","#56b6c2ff #080808ff 0","#eeeeeeff #080808ff 0","#e06c75ff #080808ff 0","#808080ff #080808ff 4","#fab283ff #080808ff 0","#f5a742ff #080808ff 0","#7fd88fff #080808ff 0"],"lines":[ +["module Main where ",[[0,6],[1,1],[2,4],[1,1],[3,5],[1,43]]], +[" ",[[1,60]]], +["import Data.List (sort) ",[[0,6],[1,1],[2,4],[4,1],[2,4],[1,1],[5,1],[6,4],[5,1],[1,37]]], +[" ",[[1,60]]], +["-- | Sum the list. ",[[7,18],[1,42]]], +["total :: [Int] -> Int ",[[8,6],[4,2],[8,1],[5,1],[2,3],[5,1],[8,1],[4,2],[8,1],[2,3],[1,39]]], +["total xs = foldr (+) 0 xs ",[[8,5],[1,1],[6,2],[1,1],[4,1],[1,1],[6,5],[1,1],[5,1],[4,1],[5,1],[1,1],[9,1],[1,1],[6,2],[1,35]]], +[" ",[[1,60]]], +["main :: IO () ",[[8,4],[1,1],[4,2],[1,1],[2,2],[1,1],[5,2],[1,47]]], +["main = print (total [1, 2, 3]) >> putStrLn \"ok\" ",[[8,4],[1,1],[4,1],[1,1],[6,5],[1,1],[5,1],[6,5],[1,1],[5,1],[9,1],[4,1],[1,1],[9,1],[4,1],[1,1],[9,1],[5,2],[1,1],[4,2],[1,1],[6,8],[1,1],[10,4],[1,13]]], +[" ",[[1,60]]], +[" ",[[1,60]]] +]} diff --git a/packages/cli-rs/parity/fixtures/U.4b/hcl.json b/packages/cli-rs/parity/fixtures/U.4b/hcl.json new file mode 100644 index 000000000000..0b5e7d3e5c50 --- /dev/null +++ b/packages/cli-rs/parity/fixtures/U.4b/hcl.json @@ -0,0 +1,14 @@ +{"width":60,"height":12,"styles":["#ffffffff #080808ff 4","#ffffffff #080808ff 0","#9d7cd8ff #080808ff 4","#7fd88fff #080808ff 0","#eeeeeeff #080808ff 0","#fab283ff #080808ff 0","#56b6c2ff #080808ff 0","#ef6c6cff #080808ff 0","#f5a742ff #080808ff 0"],"lines":[ +["# Main bucket. ",[[0,14],[1,46]]], +["resource \"aws_s3_bucket\" \"main\" { ",[[2,8],[1,1],[3,15],[1,1],[3,6],[1,1],[4,1],[1,27]]], +[" bucket = \"app-${var.env}\" ",[[1,2],[5,6],[1,3],[3,5],[6,2],[7,3],[6,1],[5,3],[6,1],[3,1],[1,33]]], +[" count = 2 ",[[1,2],[5,5],[1,4],[8,1],[1,48]]], +[" tags = { ",[[1,2],[5,4],[1,3],[4,1],[1,50]]], +[" enabled = true ",[[1,4],[5,7],[1,3],[8,4],[1,42]]], +[" } ",[[1,2],[4,1],[1,57]]], +["} ",[[4,1],[1,59]]], +[" ",[[1,60]]], +["variable \"env\" { default = null } ",[[2,8],[1,1],[3,5],[1,1],[4,1],[1,1],[5,7],[1,3],[8,4],[1,1],[4,1],[1,27]]], +[" ",[[1,60]]], +[" ",[[1,60]]] +]} diff --git a/packages/cli-rs/parity/fixtures/U.4b/html.json b/packages/cli-rs/parity/fixtures/U.4b/html.json new file mode 100644 index 000000000000..0cde05d9244e --- /dev/null +++ b/packages/cli-rs/parity/fixtures/U.4b/html.json @@ -0,0 +1,14 @@ +{"width":60,"height":12,"styles":["#f5a742ff #080808ff 0","#eeeeeeff #080808ff 0","#ffffffff #080808ff 0","#ef6c6cff #080808ff 0","#7fd88fff #080808ff 0","#808080ff #080808ff 4"],"lines":[ +["<!doctype html> ",[[0,14],[1,1],[2,45]]], +["<html lang=\"en\"> ",[[1,1],[3,4],[2,1],[0,4],[2,2],[4,2],[2,1],[1,1],[2,44]]], +[" <!-- page --> ",[[2,2],[5,13],[2,45]]], +[" <body class=\"app\"> ",[[2,2],[1,1],[3,4],[2,1],[0,5],[2,2],[4,3],[2,1],[1,1],[2,40]]], +[" <a href=\"/docs\">Docs & more</a> ",[[2,4],[1,1],[3,1],[2,1],[0,4],[2,2],[4,5],[2,1],[1,1],[2,15],[1,2],[3,1],[1,1],[2,21]]], +[" <input disabled> ",[[2,4],[1,1],[3,5],[2,1],[0,8],[1,1],[2,40]]], +[" </body> ",[[2,2],[1,2],[3,4],[1,1],[2,51]]], +["</html> ",[[1,2],[3,4],[1,1],[2,53]]], +[" ",[[2,60]]], +[" ",[[2,60]]], +[" ",[[2,60]]], +[" ",[[2,60]]] +]} diff --git a/packages/cli-rs/parity/fixtures/U.4b/java.json b/packages/cli-rs/parity/fixtures/U.4b/java.json new file mode 100644 index 000000000000..9237fa51025a --- /dev/null +++ b/packages/cli-rs/parity/fixtures/U.4b/java.json @@ -0,0 +1,14 @@ +{"width":60,"height":12,"styles":["#9d7cd8ff #080808ff 0","#ffffffff #080808ff 0","#e06c75ff #080808ff 0","#56b6c2ff #080808ff 0","#e5c07bff #080808ff 0","#808080ff #080808ff 4","#f5a742ff #080808ff 0","#9d7cd8ff #080808ff 4","#e5c07bff #080808ff 5","#eeeeeeff #080808ff 0","#ef6c6cff #080808ff 0","#fab283ff #080808ff 0"],"lines":[ +["package app; ",[[0,7],[1,1],[2,3],[3,1],[1,48]]], +[" ",[[1,60]]], +["import java.util.List; ",[[0,6],[1,1],[2,4],[3,1],[2,4],[3,1],[4,4],[3,1],[1,38]]], +[" ",[[1,60]]], +["/** A list. */ ",[[5,14],[1,46]]], +["@Deprecated ",[[6,11],[1,49]]], +["public final class Names { ",[[7,6],[1,1],[7,5],[1,1],[8,5],[1,1],[4,5],[1,1],[9,1],[1,34]]], +[" private static final int MAX = 10; ",[[1,2],[7,7],[1,1],[7,6],[1,1],[7,5],[1,1],[10,3],[1,1],[11,3],[1,1],[3,1],[1,1],[6,2],[3,1],[1,24]]], +[" public int size(List<String> xs) { return xs.size(); } ",[[1,2],[7,6],[1,1],[10,3],[1,1],[11,4],[9,1],[4,4],[9,1],[4,6],[9,1],[1,1],[2,2],[9,1],[1,1],[9,1],[1,1],[7,6],[1,1],[2,2],[3,1],[2,4],[9,2],[3,1],[1,1],[9,1],[1,4]]], +["} ",[[9,1],[1,59]]], +[" ",[[1,60]]], +[" ",[[1,60]]] +]} diff --git a/packages/cli-rs/parity/fixtures/U.4b/javascript.json b/packages/cli-rs/parity/fixtures/U.4b/javascript.json new file mode 100644 index 000000000000..79cad9ca687b --- /dev/null +++ b/packages/cli-rs/parity/fixtures/U.4b/javascript.json @@ -0,0 +1,14 @@ +{"width":60,"height":12,"styles":["#808080ff #080808ff 4","#ffffffff #080808ff 0","#9d7cd8ff #080808ff 4","#fab283ff #080808ff 0","#56b6c2ff #080808ff 0","#eeeeeeff #080808ff 0","#e06c75ff #080808ff 0","#f5a742ff #080808ff 0","#ef6c6cff #080808ff 0","#fab283ff #080808ff 8","#7fd88fff #080808ff 0"],"lines":[ +["// Sum the values. ",[[0,18],[1,42]]], +["export const sum = (xs) => xs.reduce((a, b) => a + b, 0) ",[[2,6],[1,1],[2,5],[1,1],[3,3],[1,1],[4,1],[1,1],[5,1],[6,2],[5,1],[1,1],[4,2],[1,1],[6,2],[4,1],[3,6],[5,2],[6,1],[4,1],[1,1],[6,1],[5,1],[1,1],[4,2],[1,1],[6,1],[1,1],[4,1],[1,1],[6,1],[4,1],[1,1],[7,1],[5,1],[1,4]]], +["class Queue extends Array { ",[[2,5],[1,1],[3,5],[1,1],[2,7],[1,1],[3,5],[1,1],[5,1],[1,33]]], +[" push(item) { return super.push(item) } ",[[1,2],[3,4],[5,1],[6,4],[5,1],[1,1],[5,1],[1,1],[2,6],[1,1],[8,5],[4,1],[3,4],[5,1],[6,4],[5,1],[1,1],[5,1],[1,20]]], +["} ",[[5,1],[1,59]]], +["const re = /ab+c/g, s = `n=${sum([1, 2])}` ",[[2,5],[1,1],[6,2],[1,1],[4,1],[1,1],[9,7],[4,1],[1,1],[6,1],[1,1],[4,1],[1,1],[10,3],[4,2],[3,3],[5,2],[7,1],[4,1],[10,1],[7,1],[5,2],[4,1],[10,1],[1,18]]], +["if (re.test(s)) console.log(null, true, MAX_SIZE) ",[[2,2],[1,1],[5,1],[6,2],[4,1],[3,4],[5,1],[6,1],[5,2],[1,1],[8,7],[4,1],[3,3],[5,1],[8,4],[4,1],[1,1],[8,4],[4,1],[1,1],[7,8],[5,1],[1,11]]], +[" ",[[1,60]]], +[" ",[[1,60]]], +[" ",[[1,60]]], +[" ",[[1,60]]], +[" ",[[1,60]]] +]} diff --git a/packages/cli-rs/parity/fixtures/U.4b/json.json b/packages/cli-rs/parity/fixtures/U.4b/json.json new file mode 100644 index 000000000000..e30af801a776 --- /dev/null +++ b/packages/cli-rs/parity/fixtures/U.4b/json.json @@ -0,0 +1,14 @@ +{"width":60,"height":12,"styles":["#eeeeeeff #080808ff 0","#ffffffff #080808ff 0","#e06c75ff #080808ff 0","#56b6c2ff #080808ff 0","#7fd88fff #080808ff 0","#f5a742ff #080808ff 0","#ef6c6cff #080808ff 0","#9d7cd8ff #080808ff 0"],"lines":[ +["{ ",[[0,1],[1,59]]], +[" \"name\": \"opencode\", ",[[1,2],[2,6],[3,1],[1,1],[4,10],[3,1],[1,39]]], +[" \"version\": 2.5, ",[[1,2],[2,9],[3,1],[1,1],[5,3],[3,1],[1,43]]], +[" \"private\": true, ",[[1,2],[2,9],[3,1],[1,1],[5,4],[3,1],[1,42]]], +[" \"tags\": [\"cli\", null], ",[[1,2],[2,6],[3,1],[1,1],[0,1],[4,5],[3,1],[1,1],[6,4],[0,1],[3,1],[1,36]]], +[" \"nested\": { \"escape\": \"a\\nb\" } ",[[1,2],[2,8],[3,1],[1,1],[0,1],[1,1],[2,8],[3,1],[1,1],[4,2],[7,2],[4,2],[1,1],[0,1],[1,28]]], +["} ",[[0,1],[1,59]]], +[" ",[[1,60]]], +[" ",[[1,60]]], +[" ",[[1,60]]], +[" ",[[1,60]]], +[" ",[[1,60]]] +]} diff --git a/packages/cli-rs/parity/fixtures/U.4b/julia.json b/packages/cli-rs/parity/fixtures/U.4b/julia.json new file mode 100644 index 000000000000..af83090da874 --- /dev/null +++ b/packages/cli-rs/parity/fixtures/U.4b/julia.json @@ -0,0 +1,14 @@ +{"width":60,"height":12,"styles":["#9d7cd8ff #080808ff 0","#ffffffff #080808ff 0","#e06c75ff #080808ff 0","#ffffffff #080808ff 4","#fab283ff #080808ff 0","#eeeeeeff #080808ff 0","#56b6c2ff #080808ff 0","#e5c07bff #080808ff 0","#ef6c6cff #080808ff 0","#9d7cd8ff #080808ff 4","#f5a742ff #080808ff 0","#7fd88fff #080808ff 0"],"lines":[ +["module App ",[[0,6],[1,1],[2,3],[1,50]]], +[" ",[[1,60]]], +["# Square each value. ",[[3,20],[1,40]]], +["function squares(xs::Vector{Int})::Vector{Int} ",[[4,8],[1,1],[2,7],[5,1],[2,2],[6,2],[7,6],[5,1],[8,3],[5,2],[6,2],[7,6],[5,1],[8,3],[5,1],[1,14]]], +[" return [x^2 for x in xs if x > 0] ",[[1,4],[9,6],[1,1],[5,1],[2,1],[6,1],[10,1],[1,1],[9,3],[1,1],[2,1],[1,1],[6,2],[1,1],[2,2],[1,1],[9,2],[1,1],[2,1],[1,1],[6,1],[1,1],[10,1],[5,1],[1,23]]], +["end ",[[4,3],[1,57]]], +[" ",[[1,60]]], +["const MAX = 10 ",[[9,5],[1,1],[2,3],[1,1],[6,1],[1,1],[10,2],[1,46]]], +["println(\"n = $(MAX)\", true, nothing) ",[[2,7],[5,1],[11,5],[6,1],[5,1],[2,3],[5,1],[11,1],[6,1],[1,1],[10,4],[6,1],[1,1],[8,7],[5,1],[1,24]]], +["end ",[[0,3],[1,57]]], +[" ",[[1,60]]], +[" ",[[1,60]]] +]} diff --git a/packages/cli-rs/parity/fixtures/U.4b/lua.json b/packages/cli-rs/parity/fixtures/U.4b/lua.json new file mode 100644 index 000000000000..d42e80f628fb --- /dev/null +++ b/packages/cli-rs/parity/fixtures/U.4b/lua.json @@ -0,0 +1,14 @@ +{"width":60,"height":12,"styles":["#9d7cd8ff #080808ff 4","#ffffffff #080808ff 0","#f5a742ff #080808ff 0","#56b6c2ff #080808ff 0","#eeeeeeff #080808ff 0","#808080ff #080808ff 4","#fab283ff #080808ff 0","#e06c75ff #080808ff 0","#ef6c6cff #080808ff 0","#7fd88fff #080808ff 0"],"lines":[ +["local M = {} ",[[0,5],[1,1],[2,1],[1,1],[3,1],[1,1],[4,2],[1,48]]], +[" ",[[1,60]]], +["-- Greet a name. ",[[5,16],[1,44]]], +["function M.greet(name, times) ",[[6,8],[1,1],[2,1],[3,1],[6,5],[4,1],[7,4],[3,1],[1,1],[7,5],[4,1],[1,31]]], +[" for i = 1, times or 2 do ",[[1,6],[7,1],[1,1],[3,1],[1,1],[2,1],[3,1],[1,1],[7,5],[1,1],[3,2],[1,1],[2,1],[1,37]]], +[" print(\"hi \" .. name, i, nil, true) ",[[1,4],[8,5],[4,1],[9,5],[1,1],[3,2],[1,1],[7,4],[3,1],[1,1],[7,1],[3,1],[1,1],[8,3],[3,1],[1,1],[2,4],[4,1],[1,22]]], +[" end ",[[1,60]]], +[" return #name ",[[1,2],[0,6],[1,1],[3,1],[7,4],[1,46]]], +["end ",[[6,3],[1,57]]], +[" ",[[1,60]]], +["return M ",[[0,6],[1,1],[2,1],[1,52]]], +[" ",[[1,60]]] +]} diff --git a/packages/cli-rs/parity/fixtures/U.4b/make.json b/packages/cli-rs/parity/fixtures/U.4b/make.json new file mode 100644 index 000000000000..0dd02d5f9393 --- /dev/null +++ b/packages/cli-rs/parity/fixtures/U.4b/make.json @@ -0,0 +1,14 @@ +{"width":60,"height":12,"styles":["#ffffffff #080808ff 4","#ffffffff #080808ff 0","#7fd88fff #080808ff 0","#56b6c2ff #080808ff 0","#ef6c6cff #080808ff 0","#fab283ff #080808ff 0"],"lines":[ +["# Build. ",[[0,8],[1,52]]], +["CC ?= cc ",[[2,2],[1,1],[3,2],[1,55]]], +["SRC := $(wildcard src/*.c) ",[[2,3],[1,1],[3,2],[1,1],[3,2],[4,8],[1,8],[3,1],[1,34]]], +[".PHONY: all clean ",[[4,6],[3,1],[1,1],[5,3],[1,1],[5,5],[1,43]]], +["all: app ",[[5,3],[3,1],[1,56]]], +[" ",[[1,60]]], +["app: $(SRC) ",[[5,3],[3,1],[1,1],[3,2],[2,3],[3,1],[1,49]]], +[" $(CC) -o $@ $^ ",[[1,2],[3,2],[2,2],[3,1],[1,4],[3,1],[2,1],[1,1],[3,1],[2,1],[1,44]]], +[" ",[[1,60]]], +["clean: ",[[5,5],[3,1],[1,54]]], +[" rm -f app ",[[1,60]]], +[" ",[[1,60]]] +]} diff --git a/packages/cli-rs/parity/fixtures/U.4b/markdown.json b/packages/cli-rs/parity/fixtures/U.4b/markdown.json new file mode 100644 index 000000000000..c94de06e3c22 --- /dev/null +++ b/packages/cli-rs/parity/fixtures/U.4b/markdown.json @@ -0,0 +1,14 @@ +{"width":60,"height":12,"styles":["#9d7cd8ff #080808ff 9","#ffffffff #080808ff 0","#f5a742ff #080808ff 1","#e5c07bff #080808ff 4","#7fd88fff #080808ff 0","#fab283ff #080808ff 8","#56b6c2ff #080808ff 8","#56b6c2ff #080808ff 0","#9d7cd8ff #080808ff 4","#e06c75ff #080808ff 0","#ef6c6cff #080808ff 0","#f5a742ff #080808ff 0","#fab283ff #080808ff 0","#56b6c2ff #080808ff 4"],"lines":[ +["# Title ",[[0,7],[1,53]]], +[" ",[[1,60]]], +["Some **bold**, *italic* and `code`, a [link](https://x.y). ",[[1,5],[2,8],[1,2],[3,8],[1,5],[4,6],[1,4],[5,1],[6,4],[1,1],[5,13],[1,3]]], +[" ",[[1,60]]], +["```ts ",[[1,3],[7,2],[1,55]]], +["const a: number = 1 ",[[8,5],[1,1],[9,1],[7,1],[1,1],[10,6],[1,1],[7,1],[1,1],[11,1],[1,41]]], +["``` ",[[1,60]]], +[" ",[[1,60]]], +["- item ",[[12,2],[1,58]]], +["> quote ",[[13,2],[3,5],[1,53]]], +[" ",[[1,60]]], +[" ",[[1,60]]] +]} diff --git a/packages/cli-rs/parity/fixtures/U.4b/nix.json b/packages/cli-rs/parity/fixtures/U.4b/nix.json new file mode 100644 index 000000000000..10996d72c654 --- /dev/null +++ b/packages/cli-rs/parity/fixtures/U.4b/nix.json @@ -0,0 +1,14 @@ +{"width":60,"height":12,"styles":["#eeeeeeff #080808ff 0","#ffffffff #080808ff 0","#e06c75ff #080808ff 0","#56b6c2ff #080808ff 0","#9d7cd8ff #080808ff 0","#7fd88fff #080808ff 0","#ffffffff #080808ff 4","#9d7cd8ff #080808ff 4","#fab283ff #080808ff 0"],"lines":[ +["{ pkgs ? import <nixpkgs> { } }: ",[[0,1],[1,1],[2,4],[1,1],[3,1],[1,1],[4,6],[1,1],[5,9],[1,1],[0,1],[1,1],[0,1],[1,1],[0,1],[3,1],[1,28]]], +[" ",[[1,60]]], +["# The shell. ",[[6,12],[1,48]]], +["let ",[[7,3],[1,57]]], +[" name = \"app\"; ",[[1,7],[3,1],[1,1],[5,5],[3,1],[1,45]]], +["in ",[[7,2],[1,58]]], +["pkgs.mkShell { ",[[2,4],[3,1],[2,7],[1,1],[0,1],[1,46]]], +[" inherit name; ",[[1,2],[7,7],[1,5],[3,1],[1,45]]], +[" packages = with pkgs; [ bun zig ]; ",[[1,2],[8,8],[1,1],[3,1],[1,1],[7,4],[1,1],[2,4],[3,1],[1,1],[0,1],[1,1],[2,3],[1,1],[2,3],[1,1],[0,1],[3,1],[1,24]]], +[" shellHook = ''echo ${name}''; ",[[1,2],[8,9],[1,1],[3,1],[1,1],[5,7],[3,2],[2,4],[3,1],[5,2],[3,1],[1,29]]], +["} ",[[0,1],[1,59]]], +[" ",[[1,60]]] +]} diff --git a/packages/cli-rs/parity/fixtures/U.4b/php.json b/packages/cli-rs/parity/fixtures/U.4b/php.json new file mode 100644 index 000000000000..3c68a278df08 --- /dev/null +++ b/packages/cli-rs/parity/fixtures/U.4b/php.json @@ -0,0 +1,14 @@ +{"width":60,"height":12,"styles":["#ef6c6cff #080808ff 0","#ffffffff #080808ff 0","#9d7cd8ff #080808ff 4","#e5c07bff #080808ff 0","#808080ff #080808ff 4","#fab283ff #080808ff 0","#56b6c2ff #080808ff 0","#e06c75ff #080808ff 0","#f5a742ff #080808ff 0","#7fd88fff #080808ff 0"],"lines":[ +["<?php ",[[0,5],[1,55]]], +["namespace App; ",[[2,9],[1,1],[3,3],[1,47]]], +[" ",[[1,60]]], +["// A user. ",[[4,10],[1,50]]], +["class User extends Model { ",[[2,5],[1,6],[2,7],[1,42]]], +[" public function name(int $n = 1): ?string { ",[[1,4],[2,6],[1,1],[2,8],[1,1],[5,4],[1,1],[0,3],[1,1],[6,1],[7,1],[1,3],[8,1],[1,4],[0,6],[1,15]]], +[" $x = [\"a\" => true, \"b\" => null]; ",[[1,8],[6,1],[7,1],[1,4],[9,3],[1,4],[0,4],[1,2],[9,3],[1,4],[0,4],[1,22]]], +[" return \"user {$this->id}\"; ",[[1,8],[2,6],[1,1],[9,7],[6,1],[0,4],[9,2],[7,2],[9,2],[1,27]]], +[" } ",[[1,60]]], +["} ",[[1,60]]], +[" ",[[1,60]]], +[" ",[[1,60]]] +]} diff --git a/packages/cli-rs/parity/fixtures/U.4b/python.json b/packages/cli-rs/parity/fixtures/U.4b/python.json new file mode 100644 index 000000000000..3b24511244e8 --- /dev/null +++ b/packages/cli-rs/parity/fixtures/U.4b/python.json @@ -0,0 +1,14 @@ +{"width":60,"height":12,"styles":["#9d7cd8ff #080808ff 4","#ffffffff #080808ff 0","#e06c75ff #080808ff 0","#fab283ff #080808ff 0","#808080ff #080808ff 4","#e5c07bff #080808ff 0","#56b6c2ff #080808ff 0","#ef6c6cff #080808ff 0","#f5a742ff #080808ff 0"],"lines":[ +["import os ",[[0,6],[1,1],[2,2],[1,51]]], +["from typing import List ",[[0,4],[1,1],[2,6],[1,1],[0,6],[1,1],[3,4],[1,37]]], +[" ",[[1,60]]], +["# Count the files. ",[[4,18],[1,42]]], +["@cache ",[[3,6],[1,54]]], +["def count(paths: List[str]) -> int: ",[[0,3],[1,1],[3,5],[1,1],[2,5],[1,2],[3,4],[1,1],[5,3],[1,3],[6,2],[1,1],[5,3],[1,26]]], +[" return len([p for p in paths if os.path.isfile(p)]) ",[[1,4],[0,6],[1,1],[7,3],[1,2],[2,1],[1,1],[0,3],[1,1],[2,1],[1,1],[6,2],[1,1],[2,5],[1,1],[0,2],[1,1],[2,2],[1,1],[2,4],[1,1],[3,6],[1,1],[2,1],[1,8]]], +[" ",[[1,60]]], +["class Box: ",[[0,5],[1,1],[3,3],[1,51]]], +[" size = 3 if True else None ",[[1,4],[2,4],[1,1],[6,1],[1,1],[8,1],[1,1],[0,2],[1,1],[7,4],[1,1],[0,4],[1,1],[7,4],[1,30]]], +[" ",[[1,60]]], +[" ",[[1,60]]] +]} diff --git a/packages/cli-rs/parity/fixtures/U.4b/r.json b/packages/cli-rs/parity/fixtures/U.4b/r.json new file mode 100644 index 000000000000..00826fcb5334 --- /dev/null +++ b/packages/cli-rs/parity/fixtures/U.4b/r.json @@ -0,0 +1,14 @@ +{"width":60,"height":12,"styles":["#e06c75ff #080808ff 0","#eeeeeeff #080808ff 0","#ffffffff #080808ff 0","#ffffffff #080808ff 4","#fab283ff #080808ff 0","#56b6c2ff #080808ff 0","#f5a742ff #080808ff 0","#9d7cd8ff #080808ff 4","#ef6c6cff #080808ff 0"],"lines":[ +["library(stats) ",[[0,7],[1,1],[0,5],[1,1],[2,46]]], +[" ",[[2,60]]], +["# Scale a vector. ",[[3,17],[2,43]]], +["scale_to <- function(x, to = 1L, na.rm = TRUE) { ",[[4,8],[2,1],[5,2],[2,1],[4,8],[1,1],[0,1],[5,1],[2,1],[0,2],[2,1],[5,1],[2,1],[6,2],[5,1],[2,1],[0,5],[2,1],[5,1],[2,1],[6,4],[1,1],[2,1],[1,1],[2,12]]], +[" if (is.null(x)) return(NA) ",[[2,2],[7,2],[2,1],[1,1],[0,7],[1,1],[0,1],[1,2],[2,1],[7,6],[1,1],[8,2],[1,1],[2,32]]], +[" m <- max(x, na.rm = na.rm) ",[[2,2],[0,1],[2,1],[5,2],[2,1],[0,3],[1,1],[0,1],[5,1],[2,1],[0,5],[2,1],[5,1],[2,1],[0,5],[1,1],[2,32]]], +[" x / m * to ",[[2,2],[0,1],[2,1],[5,1],[2,1],[0,1],[2,1],[5,1],[2,1],[0,2],[2,48]]], +["} ",[[1,1],[2,59]]], +["print(scale_to(c(1, 2.5, 4))) ",[[0,5],[1,1],[0,8],[1,1],[0,1],[1,1],[6,1],[5,1],[2,1],[6,3],[5,1],[2,1],[6,1],[1,3],[2,31]]], +[" ",[[2,60]]], +[" ",[[2,60]]], +[" ",[[2,60]]] +]} diff --git a/packages/cli-rs/parity/fixtures/U.4b/ruby.json b/packages/cli-rs/parity/fixtures/U.4b/ruby.json new file mode 100644 index 000000000000..10e6b82c7ccb --- /dev/null +++ b/packages/cli-rs/parity/fixtures/U.4b/ruby.json @@ -0,0 +1,14 @@ +{"width":60,"height":12,"styles":["#9d7cd8ff #080808ff 0","#ffffffff #080808ff 0","#7fd88fff #080808ff 0","#808080ff #080808ff 4","#e5c07bff #080808ff 5","#e5c07bff #080808ff 0","#56b6c2ff #080808ff 0","#ef6c6cff #080808ff 0","#fab283ff #080808ff 0","#eeeeeeff #080808ff 0","#e06c75ff #080808ff 0","#f5a742ff #080808ff 0","#fab283ff #080808ff 4","#9d7cd8ff #080808ff 4"],"lines":[ +["require \"json\" ",[[0,7],[1,1],[2,6],[1,46]]], +[" ",[[1,60]]], +["# A greeter. ",[[3,12],[1,48]]], +["class Greeter < Base ",[[4,5],[1,1],[5,7],[1,1],[6,1],[1,1],[5,4],[1,40]]], +[" attr_reader :name ",[[1,2],[7,11],[1,1],[2,5],[1,41]]], +[" def greet(times = 2) ",[[1,2],[8,3],[1,1],[8,5],[9,1],[10,5],[1,1],[6,1],[1,1],[11,1],[9,1],[1,38]]], +[" times.times { |i| puts \"hi #{@name} #{i}\" } ",[[1,4],[10,5],[6,1],[10,5],[1,1],[9,1],[1,1],[9,1],[10,1],[9,1],[1,1],[10,4],[1,1],[2,4],[6,2],[8,5],[6,1],[2,1],[6,2],[10,1],[6,1],[2,1],[1,1],[9,1],[1,13]]], +[" nil ",[[1,4],[7,3],[1,53]]], +[" end ",[[1,2],[12,3],[1,55]]], +["end ",[[13,3],[1,57]]], +[" ",[[1,60]]], +[" ",[[1,60]]] +]} diff --git a/packages/cli-rs/parity/fixtures/U.4b/rust.json b/packages/cli-rs/parity/fixtures/U.4b/rust.json new file mode 100644 index 000000000000..0f6d95481546 --- /dev/null +++ b/packages/cli-rs/parity/fixtures/U.4b/rust.json @@ -0,0 +1,14 @@ +{"width":60,"height":12,"styles":["#9d7cd8ff #080808ff 0","#ffffffff #080808ff 0","#e5c07bff #080808ff 0","#56b6c2ff #080808ff 0","#e06c75ff #080808ff 0","#808080ff #080808ff 4","#eeeeeeff #080808ff 0","#fab283ff #080808ff 0","#9d7cd8ff #080808ff 4","#e5c07bff #080808ff 5","#ef6c6cff #080808ff 0","#7fd88fff #080808ff 0"],"lines":[ +["use std::fmt; ",[[0,3],[1,1],[2,3],[3,2],[4,3],[3,1],[1,47]]], +[" ",[[1,60]]], +["/// A point. ",[[5,12],[1,48]]], +["#[derive(Debug)] ",[[3,1],[6,1],[7,6],[6,1],[2,5],[6,2],[1,44]]], +["pub struct Point { x: i32, y: Option<u8> } ",[[8,3],[1,1],[9,6],[1,1],[2,5],[1,1],[6,1],[1,1],[7,1],[3,1],[1,1],[10,3],[3,1],[1,1],[7,1],[3,1],[1,1],[2,6],[6,1],[10,2],[6,1],[1,1],[6,1],[1,18]]], +[" ",[[1,60]]], +["impl fmt::Display for Point { ",[[8,4],[1,1],[2,3],[3,2],[2,7],[1,1],[8,3],[1,1],[2,5],[1,1],[6,1],[1,31]]], +[" fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result { ",[[1,4],[7,2],[1,1],[7,3],[6,1],[3,1],[10,4],[3,1],[1,1],[4,1],[3,1],[1,1],[3,1],[8,3],[1,1],[2,3],[3,2],[2,9],[6,1],[1,1],[3,2],[1,1],[2,3],[3,2],[2,6],[1,1],[6,1],[1,2]]], +[" write!(f, \"{} {}\", self.x, 'c') ",[[1,8],[8,6],[6,1],[4,1],[3,1],[1,1],[11,7],[3,1],[1,1],[10,4],[3,1],[4,1],[3,1],[1,1],[11,3],[6,1],[1,21]]], +[" } ",[[1,4],[6,1],[1,55]]], +["} ",[[6,1],[1,59]]], +[" ",[[1,60]]] +]} diff --git a/packages/cli-rs/parity/fixtures/U.4b/scala.json b/packages/cli-rs/parity/fixtures/U.4b/scala.json new file mode 100644 index 000000000000..0e7a185d6ce4 --- /dev/null +++ b/packages/cli-rs/parity/fixtures/U.4b/scala.json @@ -0,0 +1,14 @@ +{"width":60,"height":12,"styles":["#9d7cd8ff #080808ff 0","#ffffffff #080808ff 0","#ffffffff #080808ff 4","#9d7cd8ff #080808ff 4","#e5c07bff #080808ff 5","#e5c07bff #080808ff 0","#eeeeeeff #080808ff 0","#e06c75ff #080808ff 0","#56b6c2ff #080808ff 0","#fab283ff #080808ff 0","#f5a742ff #080808ff 0"],"lines":[ +["package app ",[[0,7],[1,53]]], +[" ",[[1,60]]], +["// A shape. ",[[2,11],[1,49]]], +["sealed trait Shape ",[[3,6],[1,1],[4,5],[1,1],[5,5],[1,42]]], +["case class Circle(r: Double) extends Shape ",[[3,4],[1,1],[4,5],[1,1],[5,6],[6,1],[7,1],[8,1],[1,1],[5,6],[6,1],[1,1],[3,7],[1,1],[5,5],[1,18]]], +[" ",[[1,60]]], +["object Main { ",[[3,6],[1,1],[5,4],[1,1],[6,1],[1,47]]], +[" def area(s: Shape): Double = s match { ",[[1,2],[9,3],[1,1],[9,4],[6,1],[7,1],[8,1],[1,1],[5,5],[6,1],[8,1],[1,1],[5,6],[1,1],[8,1],[1,3],[3,5],[1,1],[6,1],[1,20]]], +[" case Circle(r) => 3.14 * r * r ",[[1,4],[3,4],[1,1],[5,6],[6,1],[1,1],[6,1],[1,1],[8,2],[1,1],[10,4],[1,1],[8,1],[1,3],[8,1],[1,28]]], +[" } ",[[1,2],[6,1],[1,57]]], +["} ",[[6,1],[1,59]]], +[" ",[[1,60]]] +]} diff --git a/packages/cli-rs/parity/fixtures/U.4b/toml.json b/packages/cli-rs/parity/fixtures/U.4b/toml.json new file mode 100644 index 000000000000..f4251713c174 --- /dev/null +++ b/packages/cli-rs/parity/fixtures/U.4b/toml.json @@ -0,0 +1,14 @@ +{"width":60,"height":12,"styles":["#ffffffff #080808ff 4","#ffffffff #080808ff 0","#eeeeeeff #080808ff 0","#e06c75ff #080808ff 0","#56b6c2ff #080808ff 0","#7fd88fff #080808ff 0","#f5a742ff #080808ff 0"],"lines":[ +["# Package. ",[[0,10],[1,50]]], +["[package] ",[[2,1],[3,7],[2,1],[1,51]]], +["name = \"opencode\" ",[[3,4],[1,1],[4,1],[1,1],[5,10],[1,43]]], +["version = \"0.1.0\" ",[[3,7],[1,1],[4,1],[1,1],[5,7],[1,43]]], +["edition = 2024 ",[[3,7],[1,1],[4,1],[1,1],[6,4],[1,46]]], +["publish = false ",[[3,7],[1,1],[4,1],[1,1],[6,5],[1,45]]], +[" ",[[1,60]]], +["[dependencies] ",[[2,1],[3,12],[2,1],[1,46]]], +["serde = { version = \"1\", features = [\"derive\"] } ",[[3,5],[1,1],[4,1],[1,1],[2,1],[1,1],[3,7],[1,1],[4,1],[1,1],[5,3],[4,1],[1,1],[3,8],[1,1],[4,1],[1,1],[2,1],[5,8],[2,1],[1,1],[2,1],[1,12]]], +[" ",[[1,60]]], +[" ",[[1,60]]], +[" ",[[1,60]]] +]} diff --git a/packages/cli-rs/parity/fixtures/U.4b/typescriptreact.json b/packages/cli-rs/parity/fixtures/U.4b/typescriptreact.json new file mode 100644 index 000000000000..660d98e948f2 --- /dev/null +++ b/packages/cli-rs/parity/fixtures/U.4b/typescriptreact.json @@ -0,0 +1,14 @@ +{"width":60,"height":12,"styles":["#9d7cd8ff #080808ff 0","#ffffffff #080808ff 0","#eeeeeeff #080808ff 0","#e5c07bff #080808ff 0","#7fd88fff #080808ff 0","#9d7cd8ff #080808ff 4","#56b6c2ff #080808ff 0","#fab283ff #080808ff 0","#ef6c6cff #080808ff 0","#e06c75ff #080808ff 0","#f5a742ff #080808ff 0"],"lines":[ +["import { Box } from \"./box\" ",[[0,6],[1,1],[2,1],[1,1],[3,3],[1,1],[2,1],[1,1],[0,4],[1,1],[4,7],[1,33]]], +[" ",[[1,60]]], +["type Props = { title: string; width?: number } ",[[5,4],[1,1],[3,5],[1,1],[6,1],[1,1],[2,1],[1,1],[7,5],[6,1],[1,1],[8,6],[6,1],[1,1],[7,5],[6,2],[1,1],[8,6],[1,1],[2,1],[1,14]]], +[" ",[[1,60]]], +["export function View(props: Props) { ",[[0,6],[1,1],[7,8],[1,1],[7,4],[2,1],[9,5],[6,1],[1,1],[3,5],[2,1],[1,1],[2,1],[1,24]]], +[" return <Box title={props.title} width={10}>hi</Box> ",[[1,2],[5,6],[1,1],[6,1],[8,3],[1,1],[0,5],[6,1],[2,1],[9,5],[6,1],[7,5],[2,1],[1,1],[0,5],[6,1],[2,1],[10,2],[2,1],[6,1],[1,2],[6,2],[8,3],[6,1],[1,7]]], +["} ",[[2,1],[1,59]]], +[" ",[[1,60]]], +[" ",[[1,60]]], +[" ",[[1,60]]], +[" ",[[1,60]]], +[" ",[[1,60]]] +]} diff --git a/packages/cli-rs/parity/fixtures/U.4b/vim.json b/packages/cli-rs/parity/fixtures/U.4b/vim.json new file mode 100644 index 000000000000..599e95117910 --- /dev/null +++ b/packages/cli-rs/parity/fixtures/U.4b/vim.json @@ -0,0 +1,14 @@ +{"width":60,"height":12,"styles":["#ffffffff #080808ff 4","#ffffffff #080808ff 0","#9d7cd8ff #080808ff 4","#ef6c6cff #080808ff 0","#56b6c2ff #080808ff 0","#f5a742ff #080808ff 0","#e5c07bff #080808ff 0","#e06c75ff #080808ff 0","#7fd88fff #080808ff 0","#fab283ff #080808ff 0","#eeeeeeff #080808ff 0"],"lines":[ +["\" Settings. ",[[0,11],[1,49]]], +["set number tabstop=4 ",[[2,3],[1,1],[3,6],[1,1],[3,7],[4,1],[5,1],[1,40]]], +["let g:app_name = 'app' ",[[2,3],[1,1],[6,2],[7,8],[1,1],[4,1],[1,1],[8,5],[1,38]]], +[" ",[[1,60]]], +["function! Greet(name) abort ",[[9,8],[4,1],[1,1],[9,5],[10,1],[7,4],[10,1],[1,1],[2,5],[1,33]]], +[" if a:name ==# '' ",[[1,2],[2,2],[1,1],[6,2],[7,4],[1,1],[4,3],[1,1],[8,2],[1,42]]], +[" return 0 ",[[1,4],[2,6],[1,1],[5,1],[1,48]]], +[" endif ",[[1,2],[2,5],[1,53]]], +[" echo 'hi ' . a:name ",[[1,2],[2,4],[1,1],[8,5],[1,1],[4,1],[1,1],[6,2],[7,4],[1,39]]], +["endfunction ",[[9,11],[1,49]]], +[" ",[[1,60]]], +[" ",[[1,60]]] +]} diff --git a/packages/cli-rs/parity/fixtures/U.4b/vue.json b/packages/cli-rs/parity/fixtures/U.4b/vue.json new file mode 100644 index 000000000000..021101b5a713 --- /dev/null +++ b/packages/cli-rs/parity/fixtures/U.4b/vue.json @@ -0,0 +1,14 @@ +{"width":60,"height":12,"styles":["#56b6c2ff #080808ff 0","#ffffffff #080808ff 0","#ffffffff #080808ff 4","#7fd88fff #080808ff 0","#fab283ff #080808ff 0","#9d7cd8ff #080808ff 0"],"lines":[ +["<template> ",[[0,1],[1,8],[0,1],[1,50]]], +[" <!-- counter --> ",[[1,2],[2,16],[1,42]]], +[" <button :class=\"{ on }\" @click=\"n++\">{{ n }}</button> ",[[1,2],[0,1],[1,7],[3,1],[4,5],[0,9],[1,1],[0,1],[4,5],[0,16],[1,6],[0,1],[1,5]]], +["</template> ",[[0,2],[1,8],[0,1],[1,49]]], +["<script setup> ",[[0,1],[1,7],[5,5],[0,1],[1,46]]], +["const n = ref(0) ",[[1,60]]], +["</script> ",[[0,2],[1,6],[0,1],[1,51]]], +["<style> ",[[0,1],[1,5],[0,1],[1,53]]], +["button { color: red; } ",[[1,60]]], +["</style> ",[[0,2],[1,5],[0,1],[1,52]]], +[" ",[[1,60]]], +[" ",[[1,60]]] +]} diff --git a/packages/cli-rs/parity/fixtures/U.4b/xml.json b/packages/cli-rs/parity/fixtures/U.4b/xml.json new file mode 100644 index 000000000000..3b1b9bd2a8b1 --- /dev/null +++ b/packages/cli-rs/parity/fixtures/U.4b/xml.json @@ -0,0 +1,14 @@ +{"width":60,"height":12,"styles":["#56b6c2ff #080808ff 0","#9d7cd8ff #080808ff 4","#ffffffff #080808ff 0","#9d7cd8ff #080808ff 0","#f5a742ff #080808ff 0","#fab283ff #080808ff 8","#ffffffff #080808ff 4","#ef6c6cff #080808ff 0","#7fd88fff #080808ff 0","#e5c07bff #080808ff 0","#eeeeeeff #080808ff 0"],"lines":[ +["<?xml version=\"1.0\" encoding=\"UTF-8\"?> ",[[0,2],[1,3],[2,1],[3,7],[0,2],[4,3],[0,1],[2,1],[3,8],[0,2],[5,5],[0,3],[2,22]]], +["<!-- config --> ",[[6,15],[2,45]]], +["<project name=\"app\" default=\"build\"> ",[[0,1],[7,7],[2,1],[3,4],[0,2],[8,3],[0,1],[2,1],[3,7],[0,2],[8,5],[0,2],[2,24]]], +[" <property name=\"src\" value=\"src\"/> ",[[2,2],[0,1],[7,8],[2,1],[3,4],[0,2],[8,3],[0,1],[2,1],[3,5],[0,2],[8,3],[0,3],[2,24]]], +[" <target name=\"build\"> ",[[2,2],[0,1],[7,6],[2,1],[3,4],[0,2],[8,5],[0,2],[2,37]]], +[" <echo>Build & test</echo> ",[[2,4],[0,1],[7,4],[0,1],[2,6],[7,5],[2,5],[0,2],[7,4],[0,1],[2,27]]], +[" <![CDATA[ raw <text> ]]> ",[[2,4],[9,8],[10,1],[8,12],[0,3],[2,32]]], +[" </target> ",[[2,2],[0,2],[7,6],[0,1],[2,49]]], +["</project> ",[[0,2],[7,7],[0,1],[2,50]]], +[" ",[[2,60]]], +[" ",[[2,60]]], +[" ",[[2,60]]] +]} diff --git a/packages/cli-rs/parity/fixtures/U.4b/yaml.json b/packages/cli-rs/parity/fixtures/U.4b/yaml.json new file mode 100644 index 000000000000..3b13106a1b30 --- /dev/null +++ b/packages/cli-rs/parity/fixtures/U.4b/yaml.json @@ -0,0 +1,14 @@ +{"width":60,"height":12,"styles":["#ffffffff #080808ff 4","#ffffffff #080808ff 0","#e06c75ff #080808ff 0","#56b6c2ff #080808ff 0","#7fd88fff #080808ff 0","#eeeeeeff #080808ff 0","#f5a742ff #080808ff 0"],"lines":[ +["# CI ",[[0,4],[1,56]]], +["name: test ",[[2,4],[3,1],[1,1],[4,4],[1,50]]], +["on: [push] ",[[2,2],[3,1],[1,1],[5,1],[4,4],[5,1],[1,50]]], +["jobs: ",[[2,4],[3,1],[1,55]]], +[" unit: ",[[1,2],[2,4],[3,1],[1,53]]], +[" runs-on: ubuntu-latest ",[[1,4],[2,7],[3,1],[1,1],[4,13],[1,34]]], +[" timeout: 10 ",[[1,4],[2,7],[3,1],[1,1],[6,2],[1,45]]], +[" enabled: true ",[[1,4],[2,7],[3,1],[1,1],[6,4],[1,43]]], +[" steps: ",[[1,4],[2,5],[3,1],[1,50]]], +[" - run: bun test --timeout 5000 ",[[1,6],[3,1],[1,1],[2,3],[3,1],[1,1],[4,23],[1,24]]], +[" env: { CI: \"1\" } ",[[1,8],[2,3],[3,1],[1,1],[5,1],[1,1],[2,2],[3,1],[1,1],[4,3],[1,1],[5,1],[1,36]]], +[" ",[[1,60]]] +]} diff --git a/packages/cli-rs/parity/fixtures/U.4b/zig.json b/packages/cli-rs/parity/fixtures/U.4b/zig.json new file mode 100644 index 000000000000..5c027c0f4502 --- /dev/null +++ b/packages/cli-rs/parity/fixtures/U.4b/zig.json @@ -0,0 +1,14 @@ +{"width":60,"height":12,"styles":["#9d7cd8ff #080808ff 4","#ffffffff #080808ff 0","#e5c07bff #080808ff 0","#56b6c2ff #080808ff 0","#9d7cd8ff #080808ff 0","#eeeeeeff #080808ff 0","#7fd88fff #080808ff 0","#ffffffff #080808ff 4","#fab283ff #080808ff 0","#ef6c6cff #080808ff 0","#e06c75ff #080808ff 0","#f5a742ff #080808ff 0"],"lines":[ +["const std = @import(\"std\"); ",[[0,5],[1,1],[2,3],[1,1],[3,1],[1,1],[4,7],[5,1],[6,5],[5,1],[3,1],[1,33]]], +[" ",[[1,60]]], +["// Entry. ",[[7,9],[1,51]]], +["pub fn main() !void { ",[[0,3],[1,1],[8,2],[1,1],[8,4],[5,2],[1,1],[3,1],[9,4],[1,1],[5,1],[1,39]]], +[" const x: u32 = 42; ",[[1,4],[0,5],[1,1],[10,1],[3,1],[1,1],[9,3],[1,1],[3,1],[1,1],[11,2],[3,1],[1,38]]], +[" if (x > 1) std.debug.print(\"{d}\\n\", .{x}); ",[[1,4],[0,2],[1,1],[5,1],[10,1],[1,1],[3,1],[1,1],[11,1],[5,1],[1,1],[10,3],[3,1],[8,5],[3,1],[10,5],[5,1],[6,4],[4,2],[6,1],[3,1],[1,1],[3,1],[5,1],[10,1],[5,2],[3,1],[1,14]]], +["} ",[[5,1],[1,59]]], +[" ",[[1,60]]], +[" ",[[1,60]]], +[" ",[[1,60]]], +[" ",[[1,60]]], +[" ",[[1,60]]] +]} diff --git a/packages/cli-rs/parity/fixtures/U.4c/corpus.json b/packages/cli-rs/parity/fixtures/U.4c/corpus.json new file mode 100644 index 000000000000..e7131fdca2ee --- /dev/null +++ b/packages/cli-rs/parity/fixtures/U.4c/corpus.json @@ -0,0 +1,3 @@ +{ + "table": "Sizes:\n\n| Name | Size | Note |\n| --- | ---: | --- |\n| alpha | 1 | first row |\n| beta | 22 | `code` cell |\n\nAfter the table.\n" +} diff --git a/packages/cli-rs/parity/fixtures/U.4c/markdown-raw.json b/packages/cli-rs/parity/fixtures/U.4c/markdown-raw.json new file mode 100644 index 000000000000..e847731806d1 --- /dev/null +++ b/packages/cli-rs/parity/fixtures/U.4c/markdown-raw.json @@ -0,0 +1,26 @@ +{"width":60,"height":24,"styles":["#ffffffff #080808ff 0","#9d7cd8ff #080808ff 9","#eeeeeeff #080808ff 0","#f5a742ff #080808ff 1","#e5c07bff #080808ff 4","#fab283ff #080808ff 8","#56b6c2ff #080808ff 8","#7fd88fff #080808ff 0","#9d7cd8ff #080808ff 1","#fab283ff #080808ff 0"],"lines":[ +[" # Session notes ",[[0,3],[1,15],[0,42]]], +[" ",[[0,60]]], +[" The **runner** keeps *one* step per call. See [the plan](",[[0,3],[2,4],[3,10],[2,7],[4,5],[2,20],[5,1],[6,8],[2,1],[5,1]]], +[" https://opencode.ai/docs) and `Session.prompt`. ",[[0,3],[5,25],[2,5],[7,16],[2,1],[0,10]]], +[" ",[[0,60]]], +[" ## Steps ",[[0,3],[8,8],[0,49]]], +[" ",[[0,60]]], +[" - Read the inbox ",[[0,3],[9,2],[2,14],[0,41]]], +[" - Stream the reply ",[[0,3],[9,2],[2,16],[0,39]]], +[" - nested detail ",[[0,5],[9,2],[2,13],[0,40]]], +[" - Finish ",[[0,3],[9,2],[2,6],[0,49]]], +[" ",[[0,60]]], +[" 1. First ",[[0,3],[9,3],[2,5],[0,49]]], +[" 2. Second ",[[0,3],[9,3],[2,6],[0,48]]], +[" ",[[0,60]]], +[" ### Done ",[[0,3],[8,8],[0,49]]], +[" ",[[0,60]]], +[" Plain closing line. ",[[0,3],[2,19],[0,38]]], +[" ",[[0,60]]], +[" ",[[0,60]]], +[" ",[[0,60]]], +[" ",[[0,60]]], +[" ",[[0,60]]], +[" ",[[0,60]]] +]} diff --git a/packages/cli-rs/parity/fixtures/U.4c/markdown-rules.json b/packages/cli-rs/parity/fixtures/U.4c/markdown-rules.json new file mode 100644 index 000000000000..51b3154c9ddc --- /dev/null +++ b/packages/cli-rs/parity/fixtures/U.4c/markdown-rules.json @@ -0,0 +1,26 @@ +{"width":60,"height":24,"styles":["#ffffffff #080808ff 0","#eeeeeeff #080808ff 0"],"lines":[ +[" Before the rules. ",[[0,3],[1,17],[0,40]]], +[" ",[[0,60]]], +[" ─────────────────────────────────────────────────────────",[[0,3],[1,57]]], +[" ",[[0,60]]], +[" Between them. ",[[0,3],[1,13],[0,44]]], +[" ",[[0,60]]], +[" ─────────────────────────────────────────────────────────",[[0,3],[1,57]]], +[" ",[[0,60]]], +[" After the rules. ",[[0,3],[1,16],[0,41]]], +[" ",[[0,60]]], +[" ",[[0,60]]], +[" ",[[0,60]]], +[" ",[[0,60]]], +[" ",[[0,60]]], +[" ",[[0,60]]], +[" ",[[0,60]]], +[" ",[[0,60]]], +[" ",[[0,60]]], +[" ",[[0,60]]], +[" ",[[0,60]]], +[" ",[[0,60]]], +[" ",[[0,60]]], +[" ",[[0,60]]], +[" ",[[0,60]]] +]} diff --git a/packages/cli-rs/parity/fixtures/U.4c/markdown-table.json b/packages/cli-rs/parity/fixtures/U.4c/markdown-table.json new file mode 100644 index 000000000000..58ddd7800ef7 --- /dev/null +++ b/packages/cli-rs/parity/fixtures/U.4c/markdown-table.json @@ -0,0 +1,26 @@ +{"width":60,"height":24,"styles":["#ffffffff #080808ff 0","#eeeeeeff #080808ff 0","#888888ff #080808ff 0","#9d7cd8ff #080808ff 1","#7fd88fff #080808ff 0"],"lines":[ +[" Sizes: ",[[0,3],[1,6],[0,51]]], +[" ",[[0,60]]], +[" ┌─────────────────┬────────────────┬────────────────────┐",[[0,3],[2,57]]], +[" │ Name │ Size │ Note │",[[0,3],[2,1],[0,1],[3,4],[0,12],[2,1],[0,11],[3,4],[0,1],[2,1],[0,1],[3,4],[0,15],[2,1]]], +[" ├─────────────────┼────────────────┼────────────────────┤",[[0,3],[2,57]]], +[" │ alpha │ 1 │ first row │",[[0,3],[2,1],[0,1],[1,5],[0,11],[2,1],[0,14],[1,1],[0,1],[2,1],[0,1],[1,9],[0,10],[2,1]]], +[" ├─────────────────┼────────────────┼────────────────────┤",[[0,3],[2,57]]], +[" │ beta │ 22 │ code cell │",[[0,3],[2,1],[0,1],[1,4],[0,12],[2,1],[0,13],[1,2],[0,1],[2,1],[0,1],[4,4],[1,5],[0,10],[2,1]]], +[" └─────────────────┴────────────────┴────────────────────┘",[[0,3],[2,57]]], +[" ",[[0,60]]], +[" After the table. ",[[0,3],[1,16],[0,41]]], +[" ",[[0,60]]], +[" ",[[0,60]]], +[" ",[[0,60]]], +[" ",[[0,60]]], +[" ",[[0,60]]], +[" ",[[0,60]]], +[" ",[[0,60]]], +[" ",[[0,60]]], +[" ",[[0,60]]], +[" ",[[0,60]]], +[" ",[[0,60]]], +[" ",[[0,60]]], +[" ",[[0,60]]] +]} diff --git a/packages/cli-rs/parity/fixtures/U.5/tool-info.json b/packages/cli-rs/parity/fixtures/U.5/tool-info.json new file mode 100644 index 000000000000..e5de0e72041c --- /dev/null +++ b/packages/cli-rs/parity/fixtures/U.5/tool-info.json @@ -0,0 +1,114 @@ +{ + "parts": [ + {"label":"shell completed","part":{"type":"tool","id":"shell-1","name":"shell","state":{"status":"completed","input":{"command":"ls -la","description":"List"},"metadata":{"exit":0},"content":[{"type":"text","text":"a\nb\n"},{"type":"text","text":"Command exited with code 0."}]},"time":{"created":1,"ran":1,"completed":2}},"directory":"/work/project","expected":{"icon":"$","title":"ls -la","mode":"block","body":"a\nb"}}, + {"label":"shell running","part":{"type":"tool","id":"shell-1","name":"shell","state":{"status":"running","input":{"command":"sleep 1"},"metadata":{}},"time":{"created":1,"ran":1}},"directory":"/work/project","expected":{"icon":"$","title":"sleep 1","mode":"block"}}, + {"label":"shell error","part":{"type":"tool","id":"shell-1","name":"shell","state":{"status":"error","input":{"command":"false"},"error":{"type":"unknown","message":"boom"},"metadata":{}},"time":{"created":1,"ran":1,"completed":2}},"directory":"/work/project","expected":{"icon":"$","title":"false","mode":"block"}}, + {"label":"shell streaming","part":{"type":"tool","id":"shell-1","name":"shell","state":{"status":"streaming","input":"{\"command\":\"l"},"time":{"created":1}},"directory":"/work/project","expected":{"icon":"$","title":"","mode":"block"}}, + {"label":"shell legacy bash","part":{"type":"tool","id":"bash-1","name":"bash","state":{"status":"completed","input":{"command":"pwd"},"metadata":{},"content":[{"type":"text","text":" /work/project \n"}]},"time":{"created":1,"ran":1,"completed":2}},"directory":"/work/project","expected":{"icon":"$","title":"pwd","mode":"block","body":"/work/project"}}, + {"label":"shell no command","part":{"type":"tool","id":"shell-1","name":"shell","state":{"status":"completed","input":{},"metadata":{},"content":[{"type":"text","text":""}]},"time":{"created":1,"ran":1,"completed":2}},"directory":"/work/project","expected":{"icon":"$","title":"","mode":"block","body":""}}, + {"label":"shell unknown status","part":{"type":"tool","id":"shell-1","name":"shell","state":{"status":"paused","input":{"command":"ls"},"metadata":{}},"time":{"created":1,"ran":1}},"directory":"/work/project","expected":{"icon":"$","title":"ls","mode":"block"}}, + {"label":"write inside","part":{"type":"tool","id":"write-1","name":"write","state":{"status":"completed","input":{"filePath":"/work/project/src/a.ts","content":"x"},"metadata":{},"content":[{"type":"text","text":"Wrote file"}]},"time":{"created":1,"ran":1,"completed":2}},"directory":"/work/project","expected":{"icon":"←","title":"Write src/a.ts","mode":"block","body":"Wrote file"}}, + {"label":"write outside","part":{"type":"tool","id":"write-1","name":"write","state":{"status":"completed","input":{"filePath":"/etc/hosts","content":"x"},"metadata":{},"content":[{"type":"text","text":""}]},"time":{"created":1,"ran":1,"completed":2}},"directory":"/work/project","expected":{"icon":"←","title":"Write /etc/hosts","mode":"block","body":""}}, + {"label":"write relative","part":{"type":"tool","id":"write-1","name":"write","state":{"status":"running","input":{"path":"src/../b.ts","content":"x"},"metadata":{}},"time":{"created":1,"ran":1}},"directory":"/work/project","expected":{"icon":"←","title":"Write b.ts","mode":"block"}}, + {"label":"edit with files","part":{"type":"tool","id":"edit-1","name":"edit","state":{"status":"completed","input":{"filePath":"/work/project/a.ts"},"metadata":{"files":[{"type":"update","filePath":"/work/project/a.ts","relativePath":"a.ts","patch":"@@ -1 +1 @@\n-a\n+b"}]},"content":[{"type":"text","text":""}]},"time":{"created":1,"ran":1,"completed":2}},"directory":"/work/project","expected":{"icon":"←","title":"Edit a.ts","mode":"block","body":"@@ -1 +1 @@\n-a\n+b"}}, + {"label":"edit with diff","part":{"type":"tool","id":"edit-1","name":"edit","state":{"status":"completed","input":{"filePath":"/work/project/a.ts"},"metadata":{"diff":"--- a\n+++ b"},"content":[{"type":"text","text":""}]},"time":{"created":1,"ran":1,"completed":2}},"directory":"/work/project","expected":{"icon":"←","title":"Edit a.ts","mode":"block","body":"--- a\n+++ b"}}, + {"label":"edit running","part":{"type":"tool","id":"edit-1","name":"edit","state":{"status":"running","input":{"filePath":"/work/project/a.ts","oldString":"a","newString":"b"},"metadata":{}},"time":{"created":1,"ran":1}},"directory":"/work/project","expected":{"icon":"←","title":"Edit a.ts","mode":"block"}}, + {"label":"patch two files","part":{"type":"tool","id":"apply_patch-1","name":"apply_patch","state":{"status":"completed","input":{"patchText":"*** Begin Patch"},"metadata":{"files":[{"type":"add","relativePath":"a.ts"},{"type":"move","filePath":"/x/b.ts","relativePath":"c.ts"}]},"content":[{"type":"text","text":""}]},"time":{"created":1,"ran":1,"completed":2}},"directory":"/work/project","expected":{"icon":"%","title":"Patch 2 files"}}, + {"label":"patch one file","part":{"type":"tool","id":"patch-1","name":"patch","state":{"status":"completed","input":{},"metadata":{"files":[{"file":"a.ts","status":"modified"}]},"content":[{"type":"text","text":""}]},"time":{"created":1,"ran":1,"completed":2}},"directory":"/work/project","expected":{"icon":"%","title":"Patch 1 file"}}, + {"label":"patch nameless files","part":{"type":"tool","id":"patch-1","name":"patch","state":{"status":"completed","input":{},"metadata":{"files":[{"patch":"x"}]},"content":[{"type":"text","text":""}]},"time":{"created":1,"ran":1,"completed":2}},"directory":"/work/project","expected":{"icon":"%","title":"Patch"}}, + {"label":"patch no files","part":{"type":"tool","id":"patch-1","name":"patch","state":{"status":"running","input":{"patchText":"*** Begin Patch"},"metadata":{}},"time":{"created":1,"ran":1}},"directory":"/work/project","expected":{"icon":"%","title":"Patch"}}, + {"label":"patch error","part":{"type":"tool","id":"patch-1","name":"patch","state":{"status":"error","input":{"patchText":"x"},"error":{"type":"unknown","message":"bad patch"},"metadata":{}},"time":{"created":1,"ran":1,"completed":2}},"directory":"/work/project","expected":{"icon":"%","title":"Patch"}}, + {"label":"batch two","part":{"type":"tool","id":"batch-1","name":"batch","state":{"status":"completed","input":{"tool_calls":[{},{}]},"metadata":{},"content":[{"type":"text","text":"done"}]},"time":{"created":1,"ran":1,"completed":2}},"directory":"/work/project","expected":{"icon":"#","title":"Batch 2 tools","mode":"block","body":"done"}}, + {"label":"batch one","part":{"type":"tool","id":"batch-1","name":"batch","state":{"status":"running","input":{"tool_calls":[{}]},"metadata":{}},"time":{"created":1,"ran":1}},"directory":"/work/project","expected":{"icon":"#","title":"Batch 1 tool","mode":"block"}}, + {"label":"batch none","part":{"type":"tool","id":"batch-1","name":"batch","state":{"status":"running","input":{},"metadata":{}},"time":{"created":1,"ran":1}},"directory":"/work/project","expected":{"icon":"#","title":"Batch","mode":"block"}}, + {"label":"subagent completed","part":{"type":"tool","id":"task-1","name":"task","state":{"status":"completed","input":{"subagent_type":"explore","description":"Inspect the repo"},"metadata":{},"content":[{"type":"text","text":""}]},"time":{"created":1,"ran":1,"completed":2}},"directory":"/work/project","expected":{"icon":"✓","title":"Inspect the repo","description":"Explore Agent"}}, + {"label":"subagent running","part":{"type":"tool","id":"subagent-1","name":"subagent","state":{"status":"running","input":{"agent":"general","description":"Work"},"metadata":{}},"time":{"created":1,"ran":1}},"directory":"/work/project","expected":{"icon":"•","title":"Work","description":"General Agent"}}, + {"label":"subagent error","part":{"type":"tool","id":"subagent-1","name":"subagent","state":{"status":"error","input":{"agent":"code-review"},"error":{"type":"unknown","message":"boom"},"metadata":{}},"time":{"created":1,"ran":1,"completed":2}},"directory":"/work/project","expected":{"icon":"✗","title":"Code-Review Subagent"}}, + {"label":"subagent no agent","part":{"type":"tool","id":"subagent-1","name":"subagent","state":{"status":"running","input":{},"metadata":{}},"time":{"created":1,"ran":1}},"directory":"/work/project","expected":{"icon":"•","title":"Unknown Subagent"}}, + {"label":"subagent agent not a string","part":{"type":"tool","id":"subagent-1","name":"subagent","state":{"status":"running","input":{"agent":7},"metadata":{}},"time":{"created":1,"ran":1}},"directory":"/work/project","expected":{"icon":"⚙","title":"subagent {\"agent\":7}"}}, + {"label":"todowrite","part":{"type":"tool","id":"todowrite-1","name":"todowrite","state":{"status":"completed","input":{"todos":[{"content":"one","status":"completed"},{"content":"two","status":"in_progress"},{"content":"three","status":"cancelled"},{"content":"four","status":"weird"},{"content":"","status":"pending"},"bad"]},"metadata":{},"content":[{"type":"text","text":""}]},"time":{"created":1,"ran":1,"completed":2}},"directory":"/work/project","expected":{"icon":"#","title":"Todos","mode":"block","body":"[✓] one\n[•] two\n[-] three\n[ ] four"}}, + {"label":"todowrite empty","part":{"type":"tool","id":"todowrite-1","name":"todowrite","state":{"status":"running","input":{},"metadata":{}},"time":{"created":1,"ran":1}},"directory":"/work/project","expected":{"icon":"#","title":"Todos","mode":"block","body":""}}, + {"label":"question one","part":{"type":"tool","id":"question-1","name":"question","state":{"status":"completed","input":{"questions":[{"question":"Why?"}]},"metadata":{"answers":[["Because"]]},"content":[{"type":"text","text":""}]},"time":{"created":1,"ran":1,"completed":2}},"directory":"/work/project","expected":{"icon":"→","title":"Asked 1 question"}}, + {"label":"question three","part":{"type":"tool","id":"question-1","name":"question","state":{"status":"running","input":{"questions":[{},{},{}]},"metadata":{}},"time":{"created":1,"ran":1}},"directory":"/work/project","expected":{"icon":"→","title":"Asked 3 questions"}}, + {"label":"question none","part":{"type":"tool","id":"question-1","name":"question","state":{"status":"running","input":{},"metadata":{}},"time":{"created":1,"ran":1}},"directory":"/work/project","expected":{"icon":"→","title":"Asked 0 questions"}}, + {"label":"read with range","part":{"type":"tool","id":"read-1","name":"read","state":{"status":"completed","input":{"filePath":"/work/project/src/a.ts","offset":10,"limit":20},"metadata":{},"content":[{"type":"text","text":"{\"type\":\"text-page\",\"content\":\"hello\"}"}]},"time":{"created":1,"ran":1,"completed":2}},"directory":"/work/project","expected":{"icon":"→","title":"Read src/a.ts","description":"[filePath=/work/project/src/a.ts, offset=10, limit=20]"}}, + {"label":"read outside","part":{"type":"tool","id":"read-1","name":"read","state":{"status":"completed","input":{"filePath":"/tmp/x.txt"},"metadata":{},"content":[{"type":"text","text":""}]},"time":{"created":1,"ran":1,"completed":2}},"directory":"/work/project","expected":{"icon":"→","title":"Read /tmp/x.txt","description":"[filePath=/tmp/x.txt]"}}, + {"label":"read flags","part":{"type":"tool","id":"read-1","name":"read","state":{"status":"running","input":{"path":"a.ts","raw":true,"encoding":"utf8"},"metadata":{}},"time":{"created":1,"ran":1}},"directory":"/work/project","expected":{"icon":"→","title":"Read a.ts","description":"[raw=true, encoding=utf8]"}}, + {"label":"read no path","part":{"type":"tool","id":"read-1","name":"read","state":{"status":"running","input":{},"metadata":{}},"time":{"created":1,"ran":1}},"directory":"/work/project","expected":{"icon":"→","title":"Read "}}, + {"label":"glob full","part":{"type":"tool","id":"glob-1","name":"glob","state":{"status":"completed","input":{"pattern":"*.ts","path":"/work/project/src"},"metadata":{"count":3},"content":[{"type":"text","text":""}]},"time":{"created":1,"ran":1,"completed":2}},"directory":"/work/project","expected":{"icon":"✱","title":"Glob \"*.ts\"","description":"in src · 3 matches"}}, + {"label":"glob one match","part":{"type":"tool","id":"glob-1","name":"glob","state":{"status":"completed","input":{"pattern":"*.md"},"metadata":{"count":1},"content":[{"type":"text","text":""}]},"time":{"created":1,"ran":1,"completed":2}},"directory":"/work/project","expected":{"icon":"✱","title":"Glob \"*.md\"","description":"1 match"}}, + {"label":"glob no count","part":{"type":"tool","id":"glob-1","name":"glob","state":{"status":"running","input":{"pattern":"**/*"},"metadata":{}},"time":{"created":1,"ran":1}},"directory":"/work/project","expected":{"icon":"✱","title":"Glob \"**/*\""}}, + {"label":"glob null count","part":{"type":"tool","id":"glob-1","name":"glob","state":{"status":"completed","input":{"pattern":"x","path":"/elsewhere"},"metadata":{"count":null},"content":[{"type":"text","text":""}]},"time":{"created":1,"ran":1,"completed":2}},"directory":"/work/project","expected":{"icon":"✱","title":"Glob \"x\"","description":"in /elsewhere · null matches"}}, + {"label":"glob bad path","part":{"type":"tool","id":"glob-1","name":"glob","state":{"status":"running","input":{"pattern":"x","path":5},"metadata":{}},"time":{"created":1,"ran":1}},"directory":"/work/project","expected":{"icon":"⚙","title":"glob {\"pattern\":\"x\",\"path\":5}"}}, + {"label":"grep full","part":{"type":"tool","id":"grep-1","name":"grep","state":{"status":"completed","input":{"pattern":"needle","path":"src"},"metadata":{"matches":0},"content":[{"type":"text","text":""}]},"time":{"created":1,"ran":1,"completed":2}},"directory":"/work/project","expected":{"icon":"✱","title":"Grep \"needle\"","description":"in src · 0 matches"}}, + {"label":"grep one","part":{"type":"tool","id":"grep-1","name":"grep","state":{"status":"completed","input":{"pattern":"needle"},"metadata":{"matches":1},"content":[{"type":"text","text":""}]},"time":{"created":1,"ran":1,"completed":2}},"directory":"/work/project","expected":{"icon":"✱","title":"Grep \"needle\"","description":"1 match"}}, + {"label":"list path","part":{"type":"tool","id":"list-1","name":"list","state":{"status":"completed","input":{"path":"/work/project/src"},"metadata":{},"content":[{"type":"text","text":""}]},"time":{"created":1,"ran":1,"completed":2}},"directory":"/work/project","expected":{"icon":"→","title":"List src"}}, + {"label":"list none","part":{"type":"tool","id":"list-1","name":"list","state":{"status":"running","input":{},"metadata":{}},"time":{"created":1,"ran":1}},"directory":"/work/project","expected":{"icon":"→","title":"List"}}, + {"label":"lsp full","part":{"type":"tool","id":"lsp-1","name":"lsp","state":{"status":"completed","input":{"operation":"hover","filePath":"/work/project/a.ts","line":3,"character":7},"metadata":{},"content":[{"type":"text","text":""}]},"time":{"created":1,"ran":1,"completed":2}},"directory":"/work/project","expected":{"icon":"→","title":"LSP hover a.ts:3:7"}}, + {"label":"lsp no position","part":{"type":"tool","id":"lsp-1","name":"lsp","state":{"status":"running","input":{"operation":"definition","filePath":"b.ts","line":3},"metadata":{}},"time":{"created":1,"ran":1}},"directory":"/work/project","expected":{"icon":"→","title":"LSP definition b.ts"}}, + {"label":"lsp no file","part":{"type":"tool","id":"lsp-1","name":"lsp","state":{"status":"running","input":{},"metadata":{}},"time":{"created":1,"ran":1}},"directory":"/work/project","expected":{"icon":"→","title":"LSP request"}}, + {"label":"webfetch","part":{"type":"tool","id":"webfetch-1","name":"webfetch","state":{"status":"completed","input":{"url":"https://example.com","format":"markdown"},"metadata":{},"content":[{"type":"text","text":""}]},"time":{"created":1,"ran":1,"completed":2}},"directory":"/work/project","expected":{"icon":"%","title":"WebFetch https://example.com"}}, + {"label":"webfetch none","part":{"type":"tool","id":"webfetch-1","name":"webfetch","state":{"status":"running","input":{},"metadata":{}},"time":{"created":1,"ran":1}},"directory":"/work/project","expected":{"icon":"%","title":"WebFetch"}}, + {"label":"websearch exa","part":{"type":"tool","id":"websearch-1","name":"websearch","state":{"status":"completed","input":{"query":"rust serde"},"metadata":{"provider":"exa"},"content":[{"type":"text","text":""}]},"time":{"created":1,"ran":1,"completed":2}},"directory":"/work/project","expected":{"icon":"◈","title":"Web Search via Exa \"rust serde\""}}, + {"label":"websearch opencode","part":{"type":"tool","id":"websearch-1","name":"websearch","state":{"status":"completed","input":{"query":"x"},"metadata":{"provider":"opencode"},"content":[{"type":"text","text":""}]},"time":{"created":1,"ran":1,"completed":2}},"directory":"/work/project","expected":{"icon":"◈","title":"Web Search via OpenCode \"x\""}}, + {"label":"websearch none","part":{"type":"tool","id":"websearch-1","name":"websearch","state":{"status":"running","input":{},"metadata":{}},"time":{"created":1,"ran":1}},"directory":"/work/project","expected":{"icon":"◈","title":"Web Search"}}, + {"label":"skill metadata","part":{"type":"tool","id":"skill-1","name":"skill","state":{"status":"completed","input":{"id":"tigerstyle"},"metadata":{"name":"effect"},"content":[{"type":"text","text":""}]},"time":{"created":1,"ran":1,"completed":2}},"directory":"/work/project","expected":{"icon":"→","title":"Skill \"effect\""}}, + {"label":"skill input","part":{"type":"tool","id":"skill-1","name":"skill","state":{"status":"completed","input":{"id":"tigerstyle"},"metadata":{},"content":[{"type":"text","text":""}]},"time":{"created":1,"ran":1,"completed":2}},"directory":"/work/project","expected":{"icon":"→","title":"Skill \"tigerstyle\""}}, + {"label":"skill none","part":{"type":"tool","id":"skill-1","name":"skill","state":{"status":"running","input":{},"metadata":{}},"time":{"created":1,"ran":1}},"directory":"/work/project","expected":{"icon":"→","title":"Skill \"\""}}, + {"label":"invalid","part":{"type":"tool","id":"invalid-1","name":"invalid","state":{"status":"completed","input":{"tool":"nope"},"metadata":{},"content":[{"type":"text","text":"Invalid tool nope"}]},"time":{"created":1,"ran":1,"completed":2}},"directory":"/work/project","expected":{"icon":"✗","title":"Invalid Tool","mode":"block","body":"Invalid tool nope"}}, + {"label":"unknown tool","part":{"type":"tool","id":"mcp_search-1","name":"mcp_search","state":{"status":"completed","input":{"query":"x","limit":5,"nested":{"a":[1,2]}},"metadata":{},"content":[{"type":"text","text":""}]},"time":{"created":1,"ran":1,"completed":2}},"directory":"/work/project","expected":{"icon":"⚙","title":"mcp_search {\"query\":\"x\",\"limit\":5,\"nested\":{\"a\":[1,2]}}"}}, + {"label":"unknown tool empty","part":{"type":"tool","id":"mcp_search-1","name":"mcp_search","state":{"status":"running","input":{},"metadata":{}},"time":{"created":1,"ran":1}},"directory":"/work/project","expected":{"icon":"⚙","title":"mcp_search Unknown"}}, + {"label":"unknown tool streaming","part":{"type":"tool","id":"mcp_search-1","name":"mcp_search","state":{"status":"streaming","input":"{"},"time":{"created":1}},"directory":"/work/project","expected":{"icon":"⚙","title":"mcp_search Unknown"}}, + {"label":"no directory","part":{"type":"tool","id":"webfetch-1","name":"webfetch","state":{"status":"completed","input":{"url":"https://a.b"},"metadata":{},"content":[{"type":"text","text":""}]},"time":{"created":1,"ran":1,"completed":2}},"expected":{"icon":"%","title":"WebFetch https://a.b"}} + ], + "helpers": { + "toolOutputText": [ + {"name":"shell","content":[{"type":"text","text":"out\n"},{"type":"text","text":"Command exited with code 0."}],"expected":"out\n"}, + {"name":"bash","content":[{"type":"image"},{"type":"text","text":""}],"expected":""}, + {"name":"grep","content":[{"type":"text","text":"a"},{"type":"text","text":""},{"type":"file"},{"type":"text","text":"b"}],"expected":"a\nb"}, + {"name":"read","content":[{"type":"text","text":"{\"type\":\"text-page\",\"content\":\"page\"}"}],"expected":"page"}, + {"name":"read","content":[{"type":"text","text":"{\"encoding\":\"utf8\",\"content\":\"utf\"}"}],"expected":"utf"}, + {"name":"read","content":[{"type":"text","text":"{\"entries\":[\"a\",{\"path\":\"b\"},{\"x\":1},3]}"}],"expected":"a\nb"}, + {"name":"read","content":[{"type":"text","text":"{not json"}],"expected":"{not json"}, + {"name":"read","content":[{"type":"text","text":"plain"}],"expected":"plain"} + ], + "readDisplayText": [ + {"input":"{\"content\":\"x\"}","expected":null}, + {"input":"{\"type\":\"text-page\",\"content\":\"y\"}","expected":"y"}, + {"input":"[]","expected":null}, + {"input":"{}","expected":null}, + {"input":"{\"entries\":[]}","expected":""} + ], + "toolPath": [ + {"input":"src/a.ts","directory":"/work/project","home":null,"expected":"src/a.ts"}, + {"input":"/work/project/src/a.ts","directory":"/work/project","home":null,"expected":"src/a.ts"}, + {"input":"/work/project","directory":"/work/project","home":null,"expected":"."}, + {"input":"../shared/x","directory":"/work/project","home":null,"expected":"/work/shared/x"}, + {"input":"..cache/x","directory":"/work/project","home":null,"expected":"..cache/x"}, + {"input":"/work/./project/../other//x","directory":"/work/project","home":null,"expected":"/work/./project/../other//x"}, + {"input":"C:\\Users\\x","directory":"/work/project","home":null,"expected":"C:/Users/x"}, + {"input":"\\\\server\\share","directory":"/work/project","home":null,"expected":"//server/share"}, + {"input":"/home/user/notes.md","directory":"/work/project","home":"/home/user","expected":"~/notes.md"}, + {"input":"/home/user","directory":"/work/project","home":"/home/user","expected":"~"}, + {"input":"/home/username/x","directory":"/work/project","home":"/home/user","expected":"/home/username/x"}, + {"input":"","directory":"/work/project","home":null,"expected":""} + ], + "primitiveInputSummary": [ + {"input":{"b":1,"a":"x y","c":true,"d":null,"e":[1],"f":{"g":1},"h":1.5},"omit":[],"expected":"[b=1, a=x y, c=true, h=1.5]"}, + {"input":{"path":"a","offset":1},"omit":["path"],"expected":"[offset=1]"}, + {"input":{},"omit":[],"expected":""} + ], + "executeCalls": [ + {"input":[{"tool":"read","status":"completed","input":{"path":"a b\n c"}},{"tool":"x","status":"weird"},"bad",{"tool":"glob","status":"running"}],"expected":["read [path=a b c]","glob"]}, + {"input":"not an array","expected":[]} + ], + "webSearchProviderLabel": [ + {"provider":"exa","expected":"Web Search via Exa"}, + {"provider":"opencode","expected":"Web Search via OpenCode"}, + {"provider":"","expected":"Web Search"}, + {"provider":null,"expected":"Web Search"}, + {"provider":3,"expected":"Web Search"}, + {"provider":"ñandu","expected":"Web Search via Ñandu"} + ] + } +} diff --git a/packages/cli-rs/parity/fixtures/U.6/fade.json b/packages/cli-rs/parity/fixtures/U.6/fade.json new file mode 100644 index 000000000000..14e9bb1dae94 --- /dev/null +++ b/packages/cli-rs/parity/fixtures/U.6/fade.json @@ -0,0 +1,15 @@ +{"width":16,"height":13,"styles":["#0a0a0aff #0a0a0aff 0","#1f1f1fff #0a0a0aff 0","#101010ff #0a0a0aff 0","#747474ff #0a0a0aff 0","#606060ff #0a0a0aff 0","#454545ff #0a0a0aff 0","#2a2a2aff #0a0a0aff 0","#161616ff #0a0a0aff 0","#0c0c0cff #0a0a0aff 0","#808080ff #0a0a0aff 0","#7a7a7aff #0a0a0aff 0","#6b6b6bff #0a0a0aff 0","#535353ff #0a0a0aff 0","#373737ff #0a0a0aff 0","#7e7e7eff #0a0a0aff 0","#0e0e0eff #0a0a0aff 0","#a1a1a1ff #0a0a0aff 0","#686868ff #0a0a0aff 0","#363636ff #0a0a0aff 0","#fcfcfcff #0a0a0aff 0","#eaeaeaff #0a0a0aff 0","#c2c2c2ff #0a0a0aff 0","#8c8c8cff #0a0a0aff 0","#ffffffff #0a0a0aff 0"],"lines":[ +["Welcome back ",[[0,16]]], +["Welcome back ",[[0,16]]], +["Welcome back ",[[0,16]]], +["Welcome back ",[[0,16]]], +["Welcome back ",[[1,1],[2,1],[0,14]]], +["Welcome back ",[[3,1],[4,1],[5,1],[6,1],[7,1],[8,1],[0,10]]], +["Welcome back ",[[9,3],[10,1],[11,1],[12,1],[13,1],[1,1],[2,1],[0,7]]], +["Welcome back ",[[9,6],[14,1],[3,1],[4,1],[5,1],[6,1],[7,1],[15,1],[0,3]]], +["Welcome back ",[[9,10],[10,1],[11,1],[16,1],[17,1],[18,1],[7,1]]], +["Welcome back ",[[9,12],[19,1],[20,1],[21,1],[22,1]]], +["Welcome back ",[[9,12],[23,4]]], +["Welcome back ",[[9,12],[23,4]]], +["Welcome back ",[[9,12],[23,4]]] +]} diff --git a/packages/cli-rs/parity/fixtures/U.6/functions.json b/packages/cli-rs/parity/fixtures/U.6/functions.json new file mode 100644 index 000000000000..48eedb0e1b9a --- /dev/null +++ b/packages/cli-rs/parity/fixtures/U.6/functions.json @@ -0,0 +1 @@ +{"instants":[0,13,26,39,52,65,78,91,104,117,130,143,156,169,182,195,208,221,234,247,260,273,286,299,312,325,338,351,364,377,390,403,416,429,442,455,468,481,494,507,520,533,546,559,572,585,598,611,624,637,650,663,676,689,702,715,728,741,754,767,780,793,806,819,832,845,858,871,884,897,910,923,936,949,962,975,988,1001,1014,1027,1040,1053,1066,1079,1092,1105,1118,1131,1144,1157,1170,1183,1196,1209,1222,1235,1248,1261,1274,1287,1300,1313,1326,1339,1352,1365,1378,1391,1404,1417,1430,1443,1456,1469,1482,1495,1508,1521,1534,1547,1560,1573,1586,1599,1612,1625,1638,1651,1664,1677,1690,1703,1716,1729,1742,1755,1768,1781,1794,1807,1820,1833,1846,1859,1872,1885,1898,1911,1924,1937,1950,1963,1976,1989,2002,2015,2028,2041,2054,2067,2080,2093,2106,2119,2132,2145,2158,2171,2184,2197,2210,2223,2236,2249,2262,2275,2288,2301,2314,2327,2340,2353,2366,2379,2392,2405,2418,2431,2444,2457,2470,2483,2496,2509,2522,2535,2548,2561,2574,2587,2600,2613,2626,2639,2652,2665,2678,2691,2704,2717,2730,2743,2756,2769,2782,2795,2808,2821,2834,2847,2860,2873,2886,2899,2912,2925,2938,2951,2964,2977,2990,3003,3016,3029,3042,3055,3068,3081,3094,3107,3120,3133,3146,3159,3172,3185,3198,3211,3224,3237,3250,3263,3276,3289,3302,3315,3328,3341,3354,3367,3380,3393,3406,3419,3432,3445,3458,3471,3484,3497,3510,3523,3536,3549,3562,3575,3588,3601,3614,3627,3640,3653,3666,3679,3692,3705,3718,3731,3744,3757,3770,3783,3796,3809,3822,3835,3848,3861,3874,3887,3900,3913,3926,3939,3952,3965,3978,3991,4004,4017,4030,4043,4056,4069,4082,4095,4108,4121,4134,4147,4160,4173,4186,4199,4212,4225,4238,4251,4264,4277,4290,4303,4316,4329,4342,4355,4368,4381,4394,4407,4420,4433,4446,4459,4472,4485,4498,4511,4524,4537,4550,4563,4576,4589,4602,4615,4628,4641,4654,4667,4680,4693,4706,4719,4732,4745,4758,4771,4784,4797,4810,4823,4836,4849,4862,4875,4888,4901,4914,4927,4940,4953,4966,4979,4992,5005,5018,5031,5044,5057,5070,5083,5096,5109,5122,5135,5148,5161,5174,5187,28000,28250,28500,28750,29000,29250,29500,29750,30000,30250,30500,30750,31000,31250,31500,31750,32000,32250,32500,32750,33000,33250,33500,33750,34000,34250,34500,34750,35000,35250,35500,35750,36000,36250,36500,36750,37000,37250,37500,37750,38000,38250,38500,38750,39000,39250,39500,39750,40000,40250,40500,40750,41000,41250,41500,41750,42000,42250,42500,42750,43000,43250,43500,43750,44000,44250,44500,44750,45000,45250,45500,45750,46000,46250,46500,46750,47000,47250,47500,47750,48000,48250,48500,48750,49000,49250,49500,49750,50000,50250,50500,50750,51000,51250,51500,51750,52000,52250,52500,52750,53000,53250,53500,53750,54000,54250,54500,54750,55000,55250,55500,55750,56000,56250,56500,56750,57000,57250,57500,57750,58000,58250,58500,58750,59000,59250,59500,59750,60000,60250,60500,60750,61000,61250,61500,61750,62000,62250,62500,62750,0.5,39.999,40,3199.9,3200,1000000],"motions":{"block-soft-slide":[["🯦","0.55",false],["🯦","0.55",false],["🯦","0.55",false],["🯦","0.55",false],["🯦","0.55",false],["🯦","0.55",false],["🯦","0.55",false],["🯦","0.55",false],["🯦","0.85",false],["🯦","0.85",false],["🯦","0.85",false],["🯦","0.85",false],["🯦","0.85",false],["🯦","0.85",false],["🯦","0.85",false],["🯦","0.85",false],["🯦","1",false],["🯦","1",false],["🯦","1",false],["🯦","1",false],["🯦","1",false],["🯦","1",false],["🯦","1",false],["🯦","1",false],["🯦","0.85",false],["🯦","0.85",false],["🯦","0.85",false],["🯦","0.85",false],["🯦","0.85",false],["🯦","0.85",false],["🯦","0.85",false],["🯦","0.55",false],["🯦","0.55",false],["🯦","0.55",false],["🯦","0.55",false],["🯦","0.55",false],["🯦","0.55",false],["🯦","0.55",false],["🯦","0.55",false],["🯧","0.55",false],["🯧","0.55",false],["🯧","0.55",false],["🯧","0.55",false],["🯧","0.55",false],["🯧","0.55",false],["🯧","0.55",false],["🯧","0.55",false],["🯧","0.85",false],["🯧","0.85",false],["🯧","0.85",false],["🯧","0.85",false],["🯧","0.85",false],["🯧","0.85",false],["🯧","0.85",false],["🯧","1",false],["🯧","1",false],["🯧","1",false],["🯧","1",false],["🯧","1",false],["🯧","1",false],["🯧","1",false],["🯧","1",false],["🯧","0.85",false],["🯧","0.85",false],["🯧","0.85",false],["🯧","0.85",false],["🯧","0.85",false],["🯧","0.85",false],["🯧","0.85",false],["🯧","0.85",false],["🯧","0.55",false],["🯧","0.55",false],["🯧","0.55",false],["🯧","0.55",false],["🯧","0.55",false],["🯧","0.55",false],["🯧","0.55",false],["🯦","0.55",false],["🯦","0.55",false],["🯦","0.55",false],["🯦","0.55",false],["🯦","0.55",false],["🯦","0.55",false],["🯦","0.55",false],["🯦","0.55",false],["🯦","0.85",false],["🯦","0.85",false],["🯦","0.85",false],["🯦","0.85",false],["🯦","0.85",false],["🯦","0.85",false],["🯦","0.85",false],["🯦","0.85",false],["🯦","1",false],["🯦","1",false],["🯦","1",false],["🯦","1",false],["🯦","1",false],["🯦","1",false],["🯦","1",false],["🯦","0.85",false],["🯦","0.85",false],["🯦","0.85",false],["🯦","0.85",false],["🯦","0.85",false],["🯦","0.85",false],["🯦","0.85",false],["🯦","0.85",false],["🯦","0.55",false],["🯦","0.55",false],["🯦","0.55",false],["🯦","0.55",false],["🯦","0.55",false],["🯦","0.55",false],["🯦","0.55",false],["🯦","0.55",false],["🯧","0.55",false],["🯧","0.55",false],["🯧","0.55",false],["🯧","0.55",false],["🯧","0.55",false],["🯧","0.55",false],["🯧","0.55",false],["🯧","0.55",false],["🯧","0.85",false],["🯧","0.85",false],["🯧","0.85",false],["🯧","0.85",false],["🯧","0.85",false],["🯧","0.85",false],["🯧","0.85",false],["🯧","1",false],["🯧","1",false],["🯧","1",false],["🯧","1",false],["🯧","1",false],["🯧","1",false],["🯧","1",false],["🯧","1",false],["🯧","0.85",false],["🯧","0.85",false],["🯧","0.85",false],["🯧","0.85",false],["🯧","0.85",false],["🯧","0.85",false],["🯧","0.85",false],["🯧","0.85",false],["🯧","0.55",false],["🯧","0.55",false],["🯧","0.55",false],["🯧","0.55",false],["🯧","0.55",false],["🯧","0.55",false],["🯧","0.55",false],["🯦","0.55",false],["🯦","0.55",false],["🯦","0.55",false],["🯦","0.55",false],["🯦","0.55",false],["🯦","0.55",false],["🯦","0.55",false],["🯦","0.55",false],["🯦","0.85",false],["🯦","0.85",false],["🯦","0.85",false],["🯦","0.85",false],["🯦","0.85",false],["🯦","0.85",false],["🯦","0.85",false],["🯦","0.85",false],["🯦","1",false],["🯦","1",false],["🯦","1",false],["🯦","1",false],["🯦","1",false],["🯦","1",false],["🯦","1",false],["🯦","0.85",false],["🯦","0.85",false],["🯦","0.85",false],["🯦","0.85",false],["🯦","0.85",false],["🯦","0.85",false],["🯦","0.85",false],["🯦","0.85",false],["🯦","0.55",false],["🯦","0.55",false],["🯦","0.55",false],["🯦","0.55",false],["🯦","0.55",false],["🯦","0.55",false],["🯦","0.55",false],["🯦","0.55",false],["🯧","0.55",false],["🯧","0.55",false],["🯧","0.55",false],["🯧","0.55",false],["🯧","0.55",false],["🯧","0.55",false],["🯧","0.55",false],["🯧","0.85",false],["🯧","0.85",false],["🯧","0.85",false],["🯧","0.85",false],["🯧","0.85",false],["🯧","0.85",false],["🯧","0.85",false],["🯧","0.85",false],["🯧","1",false],["🯧","1",false],["🯧","1",false],["🯧","1",false],["🯧","1",false],["🯧","1",false],["🯧","1",false],["🯧","1",false],["🯧","0.85",false],["🯧","0.85",false],["🯧","0.85",false],["🯧","0.85",false],["🯧","0.85",false],["🯧","0.85",false],["🯧","0.85",false],["🯧","0.85",false],["🯧","0.55",false],["🯧","0.55",false],["🯧","0.55",false],["🯧","0.55",false],["🯧","0.55",false],["🯧","0.55",false],["🯧","0.55",false],["🯦","0.55",false],["🯦","0.55",false],["🯦","0.55",false],["🯦","0.55",false],["🯦","0.55",false],["🯦","0.55",false],["🯦","0.55",false],["🯦","0.55",false],["🯦","0.85",false],["🯦","0.85",false],["🯦","0.85",false],["🯦","0.85",false],["🯦","0.85",false],["🯦","0.85",false],["🯦","0.85",false],["🯦","0.85",false],["🯦","1",false],["🯦","1",false],["🯦","1",false],["🯦","1",false],["🯦","1",false],["🯦","1",false],["🯦","1",false],["🯦","0.85",false],["🯦","0.85",false],["🯦","0.85",false],["🯦","0.85",false],["🯦","0.85",false],["🯦","0.85",false],["🯦","0.85",false],["🯦","0.85",false],["🯦","0.55",false],["🯦","0.55",false],["🯦","0.55",false],["🯦","0.55",false],["🯦","0.55",false],["🯦","0.55",false],["🯦","0.55",false],["🯦","0.55",false],["🯧","0.55",false],["🯧","0.55",false],["🯧","0.55",false],["🯧","0.55",false],["🯧","0.55",false],["🯧","0.55",false],["🯧","0.55",false],["🯧","0.85",false],["🯧","0.85",false],["🯧","0.85",false],["🯧","0.85",false],["🯧","0.85",false],["🯧","0.85",false],["🯧","0.85",false],["🯧","0.85",false],["🯧","1",false],["🯧","1",false],["🯧","1",false],["🯧","1",false],["🯧","1",false],["🯧","1",false],["🯧","1",false],["🯧","1",false],["🯧","0.85",false],["🯧","0.85",false],["🯧","0.85",false],["🯧","0.85",false],["🯧","0.85",false],["🯧","0.85",false],["🯧","0.85",false],["🯧","0.55",false],["🯧","0.55",false],["🯧","0.55",false],["🯧","0.55",false],["🯧","0.55",false],["🯧","0.55",false],["🯧","0.55",false],["🯧","0.55",false],["🯦","0.55",false],["🯦","0.55",false],["🯦","0.55",false],["🯦","0.55",false],["🯦","0.55",false],["🯦","0.55",false],["🯦","0.55",false],["🯦","0.55",false],["🯦","0.85",false],["🯦","0.85",false],["🯦","0.85",false],["🯦","0.85",false],["🯦","0.85",false],["🯦","0.85",false],["🯦","0.85",false],["🯦","0.85",false],["🯦","1",false],["🯦","1",false],["🯦","1",false],["🯦","1",false],["🯦","1",false],["🯦","1",false],["🯦","1",false],["🯦","0.85",false],["🯦","0.85",false],["🯦","0.85",false],["🯦","0.85",false],["🯦","0.85",false],["🯦","0.85",false],["🯦","0.85",false],["🯦","0.85",false],["🯦","0.55",false],["🯦","0.55",false],["🯦","0.55",false],["🯦","0.55",false],["🯦","0.55",false],["🯦","0.55",false],["🯦","0.55",false],["🯦","0.55",false],["🯧","0.55",false],["🯧","0.55",false],["🯧","0.55",false],["🯧","0.55",false],["🯧","0.55",false],["🯧","0.55",false],["🯧","0.55",false],["🯧","0.85",false],["🯧","0.85",false],["🯧","0.85",false],["🯧","0.85",false],["🯧","0.85",false],["🯧","0.85",false],["🯧","0.85",false],["🯧","0.85",false],["🯧","1",false],["🯧","1",false],["🯧","1",false],["🯧","1",false],["🯧","1",false],["🯧","1",false],["🯧","1",false],["🯧","1",false],["🯧","0.85",false],["🯧","0.85",false],["🯧","0.85",false],["🯧","0.85",false],["🯧","0.85",false],["🯧","0.85",false],["🯧","0.85",false],["🯧","0.55",false],["🯧","0.55",false],["🯧","0.55",false],["🯧","0.55",false],["🯧","0.55",false],["🯧","0.55",false],["🯧","0.55",false],["🯧","0.55",false],["🯦","0.55",false],["🯦","0.55",false],["🯦","0.55",false],["🯦","0.55",false],["🯦","0.55",false],["🯦","0.55",false],["🯦","0.55",false],["🯦","0.55",false],["🯦","0.85",false],["🯦","0.85",false],["🯦","0.85",false],["🯦","0.85",false],["🯦","0.85",false],["🯦","0.85",false],["🯦","0.85",false],["🯦","0.55",false],["🯦","1",false],["🯧","0.55",false],["🯧","1",false],["🯦","0.55",false],["🯦","1",false],["🯧","0.55",false],["🯧","1",false],["🯦","0.55",false],["🯦","1",false],["🯧","0.55",false],["🯧","1",false],["🯦","0.55",false],["🯦","1",false],["🯧","0.55",false],["🯧","1",false],["🯦","0.55",false],["🯦","1",false],["🯧","0.55",false],["🯧","1",false],["🯦","0.55",false],["🯦","1",false],["🯧","0.55",false],["🯧","1",false],["🯦","0.55",false],["🯦","1",false],["🯧","0.55",false],["🯧","1",false],["🯦","0.55",false],["🯦","1",false],["🯧","0.55",false],["🯧","1",false],["🯦","0.55",false],["🯦","1",false],["🯧","0.55",false],["🯧","1",false],["🯦","0.55",false],["🯦","1",false],["🯧","0.55",false],["🯧","1",false],["🯦","0.55",false],["🯦","1",false],["🯧","0.55",false],["🯧","1",false],["🯦","0.55",false],["🯦","1",false],["🯧","0.55",false],["🯧","1",false],["🯦","0.55",false],["🯦","1",false],["🯧","0.55",false],["🯧","1",false],["🯦","0.55",false],["🯦","1",false],["🯧","0.55",false],["🯧","1",false],["🯦","0.55",false],["🯦","1",false],["🯧","0.55",false],["🯧","1",false],["🯦","0.55",false],["🯦","1",false],["🯧","0.55",false],["🯧","1",false],["🯦","0.55",false],["🯦","1",false],["🯧","0.55",false],["🯧","1",false],["🯦","0.55",false],["🯦","1",false],["🯧","0.55",false],["🯧","1",false],["🯦","0.55",false],["🯦","1",false],["🯧","0.55",false],["🯧","1",false],["🯦","0.55",false],["🯦","1",false],["🯧","0.55",false],["🯧","1",false],["🯦","0.55",false],["🯦","1",false],["🯧","0.55",false],["🯧","1",false],["🯦","0.55",false],["🯦","1",false],["🯧","0.55",false],["🯧","1",false],["🯦","0.55",false],["🯦","1",false],["🯧","0.55",false],["🯧","1",false],["🯦","0.55",false],["🯦","1",false],["🯧","0.55",false],["🯧","1",false],["🯦","0.55",false],["🯦","1",false],["🯧","0.55",false],["🯧","1",false],["🯦","0.55",false],["🯦","1",false],["🯧","0.55",false],["🯧","1",false],["🯦","0.55",false],["🯦","1",false],["🯧","0.55",false],["🯧","1",false],["🯦","0.55",false],["🯦","1",false],["🯧","0.55",false],["🯧","1",false],["🯦","0.55",false],["🯦","1",false],["🯧","0.55",false],["🯧","1",false],["🯦","0.55",false],["🯦","1",false],["🯧","0.55",false],["🯧","1",false],["🯦","0.55",false],["🯦","1",false],["🯧","0.55",false],["🯧","1",false],["🯦","0.55",false],["🯦","1",false],["🯧","0.55",false],["🯧","1",false],["🯦","0.55",false],["🯦","1",false],["🯧","0.55",false],["🯧","1",false],["🯦","0.55",false],["🯦","1",false],["🯧","0.55",false],["🯧","1",false],["🯦","0.55",false],["🯦","1",false],["🯧","0.55",false],["🯧","1",false],["🯦","0.55",false],["🯦","0.55",false],["🯦","0.55",false],["🯦","0.85",false],["🯦","1",false],["🯦","0.55",false]],"block-soft-sweep":[["🯦","1",false],["🯦","1",false],["🯦","1",false],["🯦","1",false],["🯦","1",false],["🯦","1",false],["🯦","1",false],["🯦","1",false],["🯦","1",false],["🯦","1",false],["🯦","1",false],["🯦","1",false],["🯦","1",false],["🯦","1",false],["🯦","1",false],["🯦","1",false],["🯦","1",false],["🯦","1",false],["🯦","1",false],["🯦","1",false],["𜴔","1",false],["𜴔","1",false],["𜴔","1",false],["𜴔","1",false],["𜴔","1",false],["𜴔","1",false],["𜴳","1",false],["𜴳","1",false],["𜴳","1",false],["𜴳","1",false],["𜴳","1",false],["𜴳","1",false],["𜴳","1",false],["𜴯","1",false],["𜴯","1",false],["𜴯","1",false],["𜴯","1",false],["𜴯","1",false],["𜴯","1",false],["🯧","1",false],["🯧","1",false],["🯧","1",false],["🯧","1",false],["🯧","1",false],["🯧","1",false],["🯧","1",false],["🯧","1",false],["🯧","1",false],["🯧","1",false],["🯧","1",false],["🯧","1",false],["🯧","1",false],["🯧","1",false],["🯧","1",false],["🯧","1",false],["🯧","1",false],["🯧","1",false],["🯧","1",false],["𜴯","1",false],["𜴯","1",false],["𜴯","1",false],["𜴯","1",false],["𜴯","1",false],["𜴯","1",false],["𜴯","1",false],["𜴳","1",false],["𜴳","1",false],["𜴳","1",false],["𜴳","1",false],["𜴳","1",false],["𜴳","1",false],["𜴔","1",false],["𜴔","1",false],["𜴔","1",false],["𜴔","1",false],["𜴔","1",false],["𜴔","1",false],["🯦","1",false],["🯦","1",false],["🯦","1",false],["🯦","1",false],["🯦","1",false],["🯦","1",false],["🯦","1",false],["🯦","1",false],["🯦","1",false],["🯦","1",false],["🯦","1",false],["🯦","1",false],["🯦","1",false],["🯦","1",false],["🯦","1",false],["🯦","1",false],["🯦","1",false],["🯦","1",false],["🯦","1",false],["🯦","1",false],["𜴔","1",false],["𜴔","1",false],["𜴔","1",false],["𜴔","1",false],["𜴔","1",false],["𜴔","1",false],["𜴳","1",false],["𜴳","1",false],["𜴳","1",false],["𜴳","1",false],["𜴳","1",false],["𜴳","1",false],["𜴯","1",false],["𜴯","1",false],["𜴯","1",false],["𜴯","1",false],["𜴯","1",false],["𜴯","1",false],["𜴯","1",false],["🯧","1",false],["🯧","1",false],["🯧","1",false],["🯧","1",false],["🯧","1",false],["🯧","1",false],["🯧","1",false],["🯧","1",false],["🯧","1",false],["🯧","1",false],["🯧","1",false],["🯧","1",false],["🯧","1",false],["🯧","1",false],["🯧","1",false],["🯧","1",false],["🯧","1",false],["🯧","1",false],["🯧","1",false],["𜴯","1",false],["𜴯","1",false],["𜴯","1",false],["𜴯","1",false],["𜴯","1",false],["𜴯","1",false],["𜴯","1",false],["𜴳","1",false],["𜴳","1",false],["𜴳","1",false],["𜴳","1",false],["𜴳","1",false],["𜴳","1",false],["𜴔","1",false],["𜴔","1",false],["𜴔","1",false],["𜴔","1",false],["𜴔","1",false],["𜴔","1",false],["🯦","1",false],["🯦","1",false],["🯦","1",false],["🯦","1",false],["🯦","1",false],["🯦","1",false],["🯦","1",false],["🯦","1",false],["🯦","1",false],["🯦","1",false],["🯦","1",false],["🯦","1",false],["🯦","1",false],["🯦","1",false],["🯦","1",false],["🯦","1",false],["🯦","1",false],["🯦","1",false],["🯦","1",false],["🯦","1",false],["𜴔","1",false],["𜴔","1",false],["𜴔","1",false],["𜴔","1",false],["𜴔","1",false],["𜴔","1",false],["𜴳","1",false],["𜴳","1",false],["𜴳","1",false],["𜴳","1",false],["𜴳","1",false],["𜴳","1",false],["𜴯","1",false],["𜴯","1",false],["𜴯","1",false],["𜴯","1",false],["𜴯","1",false],["𜴯","1",false],["𜴯","1",false],["🯧","1",false],["🯧","1",false],["🯧","1",false],["🯧","1",false],["🯧","1",false],["🯧","1",false],["🯧","1",false],["🯧","1",false],["🯧","1",false],["🯧","1",false],["🯧","1",false],["🯧","1",false],["🯧","1",false],["🯧","1",false],["🯧","1",false],["🯧","1",false],["🯧","1",false],["🯧","1",false],["🯧","1",false],["𜴯","1",false],["𜴯","1",false],["𜴯","1",false],["𜴯","1",false],["𜴯","1",false],["𜴯","1",false],["𜴳","1",false],["𜴳","1",false],["𜴳","1",false],["𜴳","1",false],["𜴳","1",false],["𜴳","1",false],["𜴳","1",false],["𜴔","1",false],["𜴔","1",false],["𜴔","1",false],["𜴔","1",false],["𜴔","1",false],["𜴔","1",false],["🯦","1",false],["🯦","1",false],["🯦","1",false],["🯦","1",false],["🯦","1",false],["🯦","1",false],["🯦","1",false],["🯦","1",false],["🯦","1",false],["🯦","1",false],["🯦","1",false],["🯦","1",false],["🯦","1",false],["🯦","1",false],["🯦","1",false],["🯦","1",false],["🯦","1",false],["🯦","1",false],["🯦","1",false],["𜴔","1",false],["𜴔","1",false],["𜴔","1",false],["𜴔","1",false],["𜴔","1",false],["𜴔","1",false],["𜴔","1",false],["𜴳","1",false],["𜴳","1",false],["𜴳","1",false],["𜴳","1",false],["𜴳","1",false],["𜴳","1",false],["𜴯","1",false],["𜴯","1",false],["𜴯","1",false],["𜴯","1",false],["𜴯","1",false],["𜴯","1",false],["𜴯","1",false],["🯧","1",false],["🯧","1",false],["🯧","1",false],["🯧","1",false],["🯧","1",false],["🯧","1",false],["🯧","1",false],["🯧","1",false],["🯧","1",false],["🯧","1",false],["🯧","1",false],["🯧","1",false],["🯧","1",false],["🯧","1",false],["🯧","1",false],["🯧","1",false],["🯧","1",false],["🯧","1",false],["🯧","1",false],["𜴯","1",false],["𜴯","1",false],["𜴯","1",false],["𜴯","1",false],["𜴯","1",false],["𜴯","1",false],["𜴳","1",false],["𜴳","1",false],["𜴳","1",false],["𜴳","1",false],["𜴳","1",false],["𜴳","1",false],["𜴳","1",false],["𜴔","1",false],["𜴔","1",false],["𜴔","1",false],["𜴔","1",false],["𜴔","1",false],["𜴔","1",false],["🯦","1",false],["🯦","1",false],["🯦","1",false],["🯦","1",false],["🯦","1",false],["🯦","1",false],["🯦","1",false],["🯦","1",false],["🯦","1",false],["🯦","1",false],["🯦","1",false],["🯦","1",false],["🯦","1",false],["🯦","1",false],["🯦","1",false],["🯦","1",false],["🯦","1",false],["🯦","1",false],["🯦","1",false],["𜴔","1",false],["𜴔","1",false],["𜴔","1",false],["𜴔","1",false],["𜴔","1",false],["𜴔","1",false],["𜴔","1",false],["𜴳","1",false],["𜴳","1",false],["𜴳","1",false],["𜴳","1",false],["𜴳","1",false],["𜴳","1",false],["𜴯","1",false],["𜴯","1",false],["𜴯","1",false],["𜴯","1",false],["𜴯","1",false],["𜴯","1",false],["𜴯","1",false],["🯧","1",false],["🯧","1",false],["🯧","1",false],["🯧","1",false],["🯧","1",false],["🯧","1",false],["🯧","1",false],["🯧","1",false],["🯧","1",false],["🯧","1",false],["🯧","1",false],["🯧","1",false],["🯧","1",false],["🯧","1",false],["🯧","1",false],["🯧","1",false],["🯧","1",false],["🯧","1",false],["🯧","1",false],["𜴯","1",false],["𜴯","1",false],["𜴯","1",false],["𜴯","1",false],["𜴯","1",false],["𜴯","1",false],["𜴳","1",false],["𜴳","1",false],["𜴳","1",false],["𜴳","1",false],["𜴳","1",false],["𜴳","1",false],["𜴳","1",false],["𜴔","1",false],["𜴔","1",false],["𜴔","1",false],["𜴔","1",false],["𜴔","1",false],["𜴔","1",false],["🯦","1",false],["🯦","1",false],["🯦","1",false],["🯦","1",false],["🯦","1",false],["🯦","1",false],["🯦","1",false],["🯦","1",false],["🯦","1",false],["🯦","1",false],["🯦","1",false],["🯦","1",false],["🯦","1",false],["🯦","1",false],["🯦","1",false],["🯦","1",false],["𜴔","1",false],["🯧","1",false],["𜴯","1",false],["🯦","1",false],["𜴔","1",false],["🯧","1",false],["𜴯","1",false],["🯦","1",false],["🯦","1",false],["𜴯","1",false],["🯧","1",false],["𜴔","1",false],["🯦","1",false],["𜴯","1",false],["🯧","1",false],["𜴔","1",false],["🯦","1",false],["𜴯","1",false],["🯧","1",false],["𜴔","1",false],["🯦","1",false],["𜴯","1",false],["🯧","1",false],["𜴔","1",false],["🯦","1",false],["𜴯","1",false],["🯧","1",false],["𜴔","1",false],["🯦","1",false],["𜴯","1",false],["🯧","1",false],["𜴔","1",false],["🯦","1",false],["𜴯","1",false],["🯧","1",false],["𜴔","1",false],["🯦","1",false],["𜴯","1",false],["🯧","1",false],["𜴳","1",false],["🯦","1",false],["𜴳","1",false],["🯧","1",false],["𜴳","1",false],["🯦","1",false],["𜴳","1",false],["🯧","1",false],["𜴯","1",false],["🯦","1",false],["𜴔","1",false],["🯧","1",false],["𜴯","1",false],["𜴔","1",false],["🯦","1",false],["𜴯","1",false],["🯧","1",false],["𜴔","1",false],["🯦","1",false],["𜴳","1",false],["🯧","1",false],["𜴳","1",false],["🯦","1",false],["𜴔","1",false],["🯧","1",false],["𜴯","1",false],["𜴔","1",false],["🯦","1",false],["𜴯","1",false],["🯧","1",false],["𜴳","1",false],["🯦","1",false],["𜴔","1",false],["🯧","1",false],["𜴯","1",false],["𜴔","1",false],["🯦","1",false],["𜴯","1",false],["🯧","1",false],["𜴳","1",false],["🯦","1",false],["𜴔","1",false],["🯧","1",false],["🯧","1",false],["𜴔","1",false],["🯦","1",false],["𜴳","1",false],["🯧","1",false],["𜴯","1",false],["🯦","1",false],["🯦","1",false],["𜴯","1",false],["🯧","1",false],["𜴳","1",false],["🯦","1",false],["𜴔","1",false],["🯧","1",false],["🯧","1",false],["𜴔","1",false],["🯦","1",false],["𜴔","1",false],["🯧","1",false],["🯧","1",false],["𜴔","1",false],["🯦","1",false],["𜴳","1",false],["🯧","1",false],["𜴯","1",false],["𜴔","1",false],["🯦","1",false],["𜴳","1",false],["🯧","1",false],["𜴯","1",false],["𜴔","1",false],["🯦","1",false],["𜴳","1",false],["🯧","1",false],["𜴯","1",false],["𜴔","1",false],["🯦","1",false],["𜴳","1",false],["🯧","1",false],["𜴯","1",false],["𜴔","1",false],["🯦","1",false],["𜴳","1",false],["🯧","1",false],["𜴯","1",false],["🯦","1",false],["🯦","1",false],["𜴳","1",false],["🯧","1",false],["𜴯","1",false],["🯦","1",false],["🯦","1",false],["𜴳","1",false],["🯧","1",false],["𜴯","1",false],["🯦","1",false],["🯦","1",false],["🯦","1",false],["🯦","1",false],["🯦","1",false],["🯦","1",false],["🯦","1",false],["🯦","1",false]],"block-low-comet":[["𜵈","1",false],["𜵈","1",false],["𜵈","1",false],["𜵈","1",false],["𜵈","1",false],["𜵈","1",false],["𜵈","1",false],["𜵈","1",false],["🯦","1",false],["🯦","1",false],["🯦","1",false],["🯦","1",false],["🯦","1",false],["𜴔","1",false],["𜴔","1",false],["𜴔","1",false],["𜴔","1",false],["𜴔","1",false],["𜴔","1",false],["𜴔","1",false],["𜴔","1",false],["𜴆","1",false],["𜴆","1",false],["𜴆","1",false],["𜴆","1",false],["𜴆","1",false],["𜴣","1",false],["𜴣","1",false],["𜴣","1",false],["𜴣","1",false],["𜴣","1",false],["𜴣","1",false],["𜴣","1",false],["𜴣","1",false],["🯧","1",false],["🯧","1",false],["🯧","1",false],["🯧","1",false],["🯧","1",false],["𜶖","1",false],["𜶖","1",false],["𜶖","1",false],["𜶖","1",false],["𜶖","1",false],["𜶖","1",false],["𜶖","1",false],["𜶖","1",false],["▗","1",false],["▗","1",false],["▗","1",false],["▗","1",false],["▗","1",false],["𜷋","1",false],["𜷋","1",false],["𜷋","1",false],["𜷋","1",false],["𜷋","1",false],["𜷋","1",false],["𜷋","1",false],["▂","1",false],["▂","1",false],["▂","1",false],["▂","1",false],["▂","1",false],["▂","1",false],["𜶻","1",false],["𜶻","1",false],["𜶻","1",false],["𜶻","1",false],["𜶻","1",false],["𜶻","1",false],["𜶻","1",false],["▖","1",false],["▖","1",false],["▖","1",false],["▖","1",false],["▖","1",false],["𜵈","1",false],["𜵈","1",false],["𜵈","1",false],["𜵈","1",false],["𜵈","1",false],["𜵈","1",false],["𜵈","1",false],["𜵈","1",false],["🯦","1",false],["🯦","1",false],["🯦","1",false],["🯦","1",false],["🯦","1",false],["𜴔","1",false],["𜴔","1",false],["𜴔","1",false],["𜴔","1",false],["𜴔","1",false],["𜴔","1",false],["𜴔","1",false],["𜴔","1",false],["𜴆","1",false],["𜴆","1",false],["𜴆","1",false],["𜴆","1",false],["𜴆","1",false],["𜴣","1",false],["𜴣","1",false],["𜴣","1",false],["𜴣","1",false],["𜴣","1",false],["𜴣","1",false],["𜴣","1",false],["𜴣","1",false],["🯧","1",false],["🯧","1",false],["🯧","1",false],["🯧","1",false],["🯧","1",false],["𜶖","1",false],["𜶖","1",false],["𜶖","1",false],["𜶖","1",false],["𜶖","1",false],["𜶖","1",false],["𜶖","1",false],["𜶖","1",false],["▗","1",false],["▗","1",false],["▗","1",false],["▗","1",false],["▗","1",false],["𜷋","1",false],["𜷋","1",false],["𜷋","1",false],["𜷋","1",false],["𜷋","1",false],["𜷋","1",false],["𜷋","1",false],["▂","1",false],["▂","1",false],["▂","1",false],["▂","1",false],["▂","1",false],["▂","1",false],["𜶻","1",false],["𜶻","1",false],["𜶻","1",false],["𜶻","1",false],["𜶻","1",false],["𜶻","1",false],["𜶻","1",false],["▖","1",false],["▖","1",false],["▖","1",false],["▖","1",false],["▖","1",false],["𜵈","1",false],["𜵈","1",false],["𜵈","1",false],["𜵈","1",false],["𜵈","1",false],["𜵈","1",false],["𜵈","1",false],["𜵈","1",false],["🯦","1",false],["🯦","1",false],["🯦","1",false],["🯦","1",false],["🯦","1",false],["𜴔","1",false],["𜴔","1",false],["𜴔","1",false],["𜴔","1",false],["𜴔","1",false],["𜴔","1",false],["𜴔","1",false],["𜴔","1",false],["𜴆","1",false],["𜴆","1",false],["𜴆","1",false],["𜴆","1",false],["𜴆","1",false],["𜴣","1",false],["𜴣","1",false],["𜴣","1",false],["𜴣","1",false],["𜴣","1",false],["𜴣","1",false],["𜴣","1",false],["𜴣","1",false],["🯧","1",false],["🯧","1",false],["🯧","1",false],["🯧","1",false],["🯧","1",false],["𜶖","1",false],["𜶖","1",false],["𜶖","1",false],["𜶖","1",false],["𜶖","1",false],["𜶖","1",false],["𜶖","1",false],["▗","1",false],["▗","1",false],["▗","1",false],["▗","1",false],["▗","1",false],["▗","1",false],["𜷋","1",false],["𜷋","1",false],["𜷋","1",false],["𜷋","1",false],["𜷋","1",false],["𜷋","1",false],["𜷋","1",false],["▂","1",false],["▂","1",false],["▂","1",false],["▂","1",false],["▂","1",false],["𜶻","1",false],["𜶻","1",false],["𜶻","1",false],["𜶻","1",false],["𜶻","1",false],["𜶻","1",false],["𜶻","1",false],["𜶻","1",false],["▖","1",false],["▖","1",false],["▖","1",false],["▖","1",false],["▖","1",false],["𜵈","1",false],["𜵈","1",false],["𜵈","1",false],["𜵈","1",false],["𜵈","1",false],["𜵈","1",false],["𜵈","1",false],["𜵈","1",false],["🯦","1",false],["🯦","1",false],["🯦","1",false],["🯦","1",false],["🯦","1",false],["𜴔","1",false],["𜴔","1",false],["𜴔","1",false],["𜴔","1",false],["𜴔","1",false],["𜴔","1",false],["𜴔","1",false],["𜴔","1",false],["𜴆","1",false],["𜴆","1",false],["𜴆","1",false],["𜴆","1",false],["𜴆","1",false],["𜴣","1",false],["𜴣","1",false],["𜴣","1",false],["𜴣","1",false],["𜴣","1",false],["𜴣","1",false],["𜴣","1",false],["𜴣","1",false],["🯧","1",false],["🯧","1",false],["🯧","1",false],["🯧","1",false],["🯧","1",false],["𜶖","1",false],["𜶖","1",false],["𜶖","1",false],["𜶖","1",false],["𜶖","1",false],["𜶖","1",false],["𜶖","1",false],["▗","1",false],["▗","1",false],["▗","1",false],["▗","1",false],["▗","1",false],["▗","1",false],["𜷋","1",false],["𜷋","1",false],["𜷋","1",false],["𜷋","1",false],["𜷋","1",false],["𜷋","1",false],["𜷋","1",false],["▂","1",false],["▂","1",false],["▂","1",false],["▂","1",false],["▂","1",false],["𜶻","1",false],["𜶻","1",false],["𜶻","1",false],["𜶻","1",false],["𜶻","1",false],["𜶻","1",false],["𜶻","1",false],["𜶻","1",false],["▖","1",false],["▖","1",false],["▖","1",false],["▖","1",false],["▖","1",false],["𜵈","1",false],["𜵈","1",false],["𜵈","1",false],["𜵈","1",false],["𜵈","1",false],["𜵈","1",false],["𜵈","1",false],["𜵈","1",false],["🯦","1",false],["🯦","1",false],["🯦","1",false],["🯦","1",false],["🯦","1",false],["𜴔","1",false],["𜴔","1",false],["𜴔","1",false],["𜴔","1",false],["𜴔","1",false],["𜴔","1",false],["𜴔","1",false],["𜴔","1",false],["𜴆","1",false],["𜴆","1",false],["𜴆","1",false],["𜴆","1",false],["𜴆","1",false],["𜴣","1",false],["𜴣","1",false],["𜴣","1",false],["𜴣","1",false],["𜴣","1",false],["𜴣","1",false],["𜴣","1",false],["𜴣","1",false],["🯧","1",false],["🯧","1",false],["🯧","1",false],["🯧","1",false],["🯧","1",false],["𜶖","1",false],["𜶖","1",false],["𜶖","1",false],["𜶖","1",false],["𜶖","1",false],["𜶖","1",false],["𜶖","1",false],["▗","1",false],["▗","1",false],["▗","1",false],["▗","1",false],["▗","1",false],["𜷋","1",false],["𜷋","1",false],["𜷋","1",false],["𜷋","1",false],["𜷋","1",false],["𜷋","1",false],["𜷋","1",false],["𜷋","1",false],["▂","1",false],["▂","1",false],["▂","1",false],["▂","1",false],["▂","1",false],["𜶻","1",false],["𜶻","1",false],["𜶻","1",false],["𜶻","1",false],["𜶻","1",false],["𜶻","1",false],["𜶻","1",false],["𜶻","1",false],["▖","1",false],["▖","1",false],["▖","1",false],["▖","1",false],["▖","1",false],["𜵈","1",false],["𜵈","1",false],["𜵈","1",false],["𜵈","1",false],["𜵈","1",false],["𜵈","1",false],["𜵈","1",false],["𜵈","1",false],["🯦","1",false],["🯦","1",false],["🯦","1",false],["🯦","1",false],["🯦","1",false],["𜴔","1",false],["𜴔","1",false],["𜵈","1",false],["𜴔","1",false],["𜶖","1",false],["𜷋","1",false],["𜵈","1",false],["𜴔","1",false],["𜶖","1",false],["𜷋","1",false],["𜵈","1",false],["𜴔","1",false],["🯧","1",false],["𜷋","1",false],["▖","1",false],["𜴔","1",false],["🯧","1",false],["𜷋","1",false],["▖","1",false],["𜴔","1",false],["🯧","1",false],["𜷋","1",false],["▖","1",false],["𜴔","1",false],["🯧","1",false],["𜷋","1",false],["▖","1",false],["𜴔","1",false],["🯧","1",false],["𜷋","1",false],["▖","1",false],["𜴔","1",false],["🯧","1",false],["𜷋","1",false],["▖","1",false],["𜴔","1",false],["🯧","1",false],["𜷋","1",false],["𜶻","1",false],["𜴔","1",false],["𜴣","1",false],["▗","1",false],["𜶻","1",false],["🯦","1",false],["𜴣","1",false],["▗","1",false],["𜶻","1",false],["🯦","1",false],["𜴣","1",false],["𜶖","1",false],["▂","1",false],["𜵈","1",false],["𜴆","1",false],["𜶖","1",false],["𜷋","1",false],["▖","1",false],["𜴔","1",false],["🯧","1",false],["𜷋","1",false],["𜶻","1",false],["🯦","1",false],["𜴣","1",false],["▗","1",false],["𜶻","1",false],["𜵈","1",false],["𜴆","1",false],["𜶖","1",false],["𜷋","1",false],["▖","1",false],["𜴔","1",false],["🯧","1",false],["▗","1",false],["𜶻","1",false],["🯦","1",false],["𜴆","1",false],["𜶖","1",false],["▂","1",false],["▖","1",false],["𜴔","1",false],["🯧","1",false],["▗","1",false],["𜶻","1",false],["𜵈","1",false],["𜴆","1",false],["𜶖","1",false],["𜷋","1",false],["▖","1",false],["𜴔","1",false],["𜴣","1",false],["▗","1",false],["▂","1",false],["𜵈","1",false],["𜴔","1",false],["🯧","1",false],["▗","1",false],["𜶻","1",false],["𜵈","1",false],["𜴆","1",false],["𜶖","1",false],["𜷋","1",false],["𜶻","1",false],["🯦","1",false],["𜴆","1",false],["𜶖","1",false],["𜷋","1",false],["▖","1",false],["🯦","1",false],["𜴣","1",false],["𜶖","1",false],["▂","1",false],["▖","1",false],["𜴔","1",false],["𜴣","1",false],["𜶖","1",false],["▂","1",false],["▖","1",false],["𜴔","1",false],["𜴣","1",false],["𜶖","1",false],["▂","1",false],["▖","1",false],["𜴔","1",false],["𜴣","1",false],["𜶖","1",false],["▂","1",false],["▖","1",false],["𜴔","1",false],["𜴣","1",false],["𜶖","1",false],["▂","1",false],["𜵈","1",false],["𜴔","1",false],["𜴣","1",false],["▗","1",false],["▂","1",false],["𜵈","1",false],["𜴔","1",false],["𜴣","1",false],["▗","1",false],["▂","1",false],["𜵈","1",false],["𜴔","1",false],["𜵈","1",false],["𜵈","1",false],["𜵈","1",false],["𜴔","1",false],["𜴔","1",false],["𜵈","1",false]],"block-low-duet":[["𜶠","1",false],["𜶠","1",false],["𜶠","1",false],["𜶠","1",false],["𜶠","1",false],["𜶠","1",false],["𜶠","1",false],["𜶠","1",false],["𜶠","1",false],["𜶠","1",false],["𜶠","1",false],["𜶠","1",false],["𜶠","1",false],["𜶠","1",false],["𜵴","1",false],["𜵴","1",false],["𜵴","1",false],["𜵴","1",false],["𜵴","1",false],["𜶷","1",false],["𜶷","1",false],["𜶷","1",false],["𜶷","1",false],["𜶷","1",false],["𜶷","1",false],["𜶷","1",false],["𜶷","1",false],["𜶷","1",false],["𜶷","1",false],["𜶷","1",false],["𜶷","1",false],["𜶷","1",false],["𜶷","1",false],["𜴽","1",false],["𜴽","1",false],["𜴽","1",false],["𜴽","1",false],["𜵩","1",false],["𜵩","1",false],["𜵩","1",false],["𜵩","1",false],["𜵩","1",false],["𜵩","1",false],["𜵩","1",false],["𜵩","1",false],["𜵩","1",false],["𜵩","1",false],["𜵩","1",false],["𜵩","1",false],["𜵩","1",false],["𜵩","1",false],["𜴧","1",false],["𜴧","1",false],["𜴧","1",false],["𜴧","1",false],["𜴧","1",false],["𜶠","1",false],["𜶠","1",false],["𜶠","1",false],["𜶠","1",false],["𜶠","1",false],["𜶠","1",false],["𜶠","1",false],["𜶠","1",false],["𜶠","1",false],["𜶠","1",false],["𜶠","1",false],["𜶠","1",false],["𜶠","1",false],["𜶠","1",false],["𜵴","1",false],["𜵴","1",false],["𜵴","1",false],["𜵴","1",false],["𜶷","1",false],["𜶷","1",false],["𜶷","1",false],["𜶷","1",false],["𜶷","1",false],["𜶷","1",false],["𜶷","1",false],["𜶷","1",false],["𜶷","1",false],["𜶷","1",false],["𜶷","1",false],["𜶷","1",false],["𜶷","1",false],["𜶷","1",false],["𜴽","1",false],["𜴽","1",false],["𜴽","1",false],["𜴽","1",false],["𜴽","1",false],["𜵩","1",false],["𜵩","1",false],["𜵩","1",false],["𜵩","1",false],["𜵩","1",false],["𜵩","1",false],["𜵩","1",false],["𜵩","1",false],["𜵩","1",false],["𜵩","1",false],["𜵩","1",false],["𜵩","1",false],["𜵩","1",false],["𜵩","1",false],["𜴧","1",false],["𜴧","1",false],["𜴧","1",false],["𜴧","1",false],["𜶠","1",false],["𜶠","1",false],["𜶠","1",false],["𜶠","1",false],["𜶠","1",false],["𜶠","1",false],["𜶠","1",false],["𜶠","1",false],["𜶠","1",false],["𜶠","1",false],["𜶠","1",false],["𜶠","1",false],["𜶠","1",false],["𜶠","1",false],["𜵴","1",false],["𜵴","1",false],["𜵴","1",false],["𜵴","1",false],["𜵴","1",false],["𜶷","1",false],["𜶷","1",false],["𜶷","1",false],["𜶷","1",false],["𜶷","1",false],["𜶷","1",false],["𜶷","1",false],["𜶷","1",false],["𜶷","1",false],["𜶷","1",false],["𜶷","1",false],["𜶷","1",false],["𜶷","1",false],["𜶷","1",false],["𜴽","1",false],["𜴽","1",false],["𜴽","1",false],["𜴽","1",false],["𜵩","1",false],["𜵩","1",false],["𜵩","1",false],["𜵩","1",false],["𜵩","1",false],["𜵩","1",false],["𜵩","1",false],["𜵩","1",false],["𜵩","1",false],["𜵩","1",false],["𜵩","1",false],["𜵩","1",false],["𜵩","1",false],["𜵩","1",false],["𜴧","1",false],["𜴧","1",false],["𜴧","1",false],["𜴧","1",false],["𜴧","1",false],["𜶠","1",false],["𜶠","1",false],["𜶠","1",false],["𜶠","1",false],["𜶠","1",false],["𜶠","1",false],["𜶠","1",false],["𜶠","1",false],["𜶠","1",false],["𜶠","1",false],["𜶠","1",false],["𜶠","1",false],["𜶠","1",false],["𜵴","1",false],["𜵴","1",false],["𜵴","1",false],["𜵴","1",false],["𜵴","1",false],["𜶷","1",false],["𜶷","1",false],["𜶷","1",false],["𜶷","1",false],["𜶷","1",false],["𜶷","1",false],["𜶷","1",false],["𜶷","1",false],["𜶷","1",false],["𜶷","1",false],["𜶷","1",false],["𜶷","1",false],["𜶷","1",false],["𜶷","1",false],["𜴽","1",false],["𜴽","1",false],["𜴽","1",false],["𜴽","1",false],["𜴽","1",false],["𜵩","1",false],["𜵩","1",false],["𜵩","1",false],["𜵩","1",false],["𜵩","1",false],["𜵩","1",false],["𜵩","1",false],["𜵩","1",false],["𜵩","1",false],["𜵩","1",false],["𜵩","1",false],["𜵩","1",false],["𜵩","1",false],["𜴧","1",false],["𜴧","1",false],["𜴧","1",false],["𜴧","1",false],["𜴧","1",false],["𜶠","1",false],["𜶠","1",false],["𜶠","1",false],["𜶠","1",false],["𜶠","1",false],["𜶠","1",false],["𜶠","1",false],["𜶠","1",false],["𜶠","1",false],["𜶠","1",false],["𜶠","1",false],["𜶠","1",false],["𜶠","1",false],["𜶠","1",false],["𜵴","1",false],["𜵴","1",false],["𜵴","1",false],["𜵴","1",false],["𜶷","1",false],["𜶷","1",false],["𜶷","1",false],["𜶷","1",false],["𜶷","1",false],["𜶷","1",false],["𜶷","1",false],["𜶷","1",false],["𜶷","1",false],["𜶷","1",false],["𜶷","1",false],["𜶷","1",false],["𜶷","1",false],["𜶷","1",false],["𜴽","1",false],["𜴽","1",false],["𜴽","1",false],["𜴽","1",false],["𜴽","1",false],["𜵩","1",false],["𜵩","1",false],["𜵩","1",false],["𜵩","1",false],["𜵩","1",false],["𜵩","1",false],["𜵩","1",false],["𜵩","1",false],["𜵩","1",false],["𜵩","1",false],["𜵩","1",false],["𜵩","1",false],["𜵩","1",false],["𜵩","1",false],["𜴧","1",false],["𜴧","1",false],["𜴧","1",false],["𜴧","1",false],["𜶠","1",false],["𜶠","1",false],["𜶠","1",false],["𜶠","1",false],["𜶠","1",false],["𜶠","1",false],["𜶠","1",false],["𜶠","1",false],["𜶠","1",false],["𜶠","1",false],["𜶠","1",false],["𜶠","1",false],["𜶠","1",false],["𜶠","1",false],["𜵴","1",false],["𜵴","1",false],["𜵴","1",false],["𜵴","1",false],["𜵴","1",false],["𜶷","1",false],["𜶷","1",false],["𜶷","1",false],["𜶷","1",false],["𜶷","1",false],["𜶷","1",false],["𜶷","1",false],["𜶷","1",false],["𜶷","1",false],["𜶷","1",false],["𜶷","1",false],["𜶷","1",false],["𜶷","1",false],["𜶷","1",false],["𜴽","1",false],["𜴽","1",false],["𜴽","1",false],["𜴽","1",false],["𜵩","1",false],["𜵩","1",false],["𜵩","1",false],["𜵩","1",false],["𜵩","1",false],["𜵩","1",false],["𜵩","1",false],["𜵩","1",false],["𜵩","1",false],["𜵩","1",false],["𜵩","1",false],["𜵩","1",false],["𜵩","1",false],["𜵩","1",false],["𜴧","1",false],["𜴧","1",false],["𜴧","1",false],["𜴧","1",false],["𜴧","1",false],["𜶠","1",false],["𜶠","1",false],["𜶠","1",false],["𜶠","1",false],["𜶠","1",false],["𜶠","1",false],["𜶠","1",false],["𜶠","1",false],["𜶠","1",false],["𜶠","1",false],["𜶠","1",false],["𜶠","1",false],["𜶠","1",false],["𜶠","1",false],["𜵴","1",false],["𜵴","1",false],["𜵴","1",false],["𜵴","1",false],["𜶷","1",false],["𜶷","1",false],["𜶷","1",false],["𜶷","1",false],["𜶷","1",false],["𜶷","1",false],["𜶷","1",false],["𜶷","1",false],["𜶷","1",false],["𜶷","1",false],["𜶷","1",false],["𜶷","1",false],["𜶷","1",false],["𜶷","1",false],["𜴽","1",false],["𜴽","1",false],["𜴽","1",false],["𜴽","1",false],["𜴽","1",false],["𜵩","1",false],["𜵩","1",false],["𜵩","1",false],["𜵩","1",false],["𜵩","1",false],["𜵩","1",false],["𜵩","1",false],["𜵩","1",false],["𜵩","1",false],["𜵩","1",false],["𜵩","1",false],["𜵩","1",false],["𜵩","1",false],["𜵩","1",false],["𜴧","1",false],["𜴧","1",false],["𜴧","1",false],["𜴧","1",false],["𜶠","1",false],["𜶠","1",false],["𜶠","1",false],["𜶠","1",false],["𜶠","1",false],["𜶠","1",false],["𜶠","1",false],["𜶠","1",false],["𜶠","1",false],["𜶠","1",false],["𜶠","1",false],["𜶠","1",false],["𜵩","1",false],["𜶠","1",false],["𜴽","1",false],["𜴧","1",false],["𜵴","1",false],["𜴽","1",false],["𜴧","1",false],["𜵴","1",false],["𜵩","1",false],["𜶠","1",false],["𜶷","1",false],["𜵩","1",false],["𜶠","1",false],["𜶷","1",false],["𜵩","1",false],["𜶠","1",false],["𜶷","1",false],["𜵩","1",false],["𜶠","1",false],["𜶷","1",false],["𜵩","1",false],["𜶠","1",false],["𜶷","1",false],["𜵩","1",false],["𜶠","1",false],["𜶷","1",false],["𜴧","1",false],["𜵴","1",false],["𜴽","1",false],["𜴧","1",false],["𜵴","1",false],["𜴽","1",false],["𜶠","1",false],["𜶷","1",false],["𜵩","1",false],["𜶠","1",false],["𜶷","1",false],["𜵩","1",false],["𜶠","1",false],["𜶷","1",false],["𜵩","1",false],["𜶠","1",false],["𜶷","1",false],["𜵩","1",false],["𜶠","1",false],["𜶷","1",false],["𜵩","1",false],["𜶠","1",false],["𜶷","1",false],["𜵩","1",false],["𜵴","1",false],["𜴽","1",false],["𜴧","1",false],["𜵴","1",false],["𜴽","1",false],["𜴧","1",false],["𜶷","1",false],["𜵩","1",false],["𜶠","1",false],["𜶷","1",false],["𜵩","1",false],["𜶠","1",false],["𜶷","1",false],["𜵩","1",false],["𜶠","1",false],["𜶷","1",false],["𜵩","1",false],["𜶠","1",false],["𜶷","1",false],["𜵩","1",false],["𜶠","1",false],["𜶷","1",false],["𜵩","1",false],["𜶠","1",false],["𜴽","1",false],["𜴧","1",false],["𜵴","1",false],["𜴽","1",false],["𜴧","1",false],["𜵴","1",false],["𜵩","1",false],["𜶠","1",false],["𜶷","1",false],["𜵩","1",false],["𜶠","1",false],["𜶷","1",false],["𜵩","1",false],["𜶠","1",false],["𜶷","1",false],["𜵩","1",false],["𜶠","1",false],["𜶷","1",false],["𜵩","1",false],["𜶠","1",false],["𜶷","1",false],["𜵩","1",false],["𜶠","1",false],["𜶷","1",false],["𜴧","1",false],["𜵴","1",false],["𜴽","1",false],["𜴧","1",false],["𜵴","1",false],["𜴽","1",false],["𜶠","1",false],["𜶷","1",false],["𜵩","1",false],["𜶠","1",false],["𜶷","1",false],["𜵩","1",false],["𜶠","1",false],["𜶷","1",false],["𜵩","1",false],["𜶠","1",false],["𜶷","1",false],["𜵩","1",false],["𜶠","1",false],["𜶷","1",false],["𜵩","1",false],["𜶠","1",false],["𜶷","1",false],["𜵩","1",false],["𜵴","1",false],["𜴽","1",false],["𜴧","1",false],["𜵴","1",false],["𜴽","1",false],["𜴧","1",false],["𜶷","1",false],["𜵩","1",false],["𜶠","1",false],["𜶷","1",false],["𜵩","1",false],["𜶠","1",false],["𜶷","1",false],["𜵩","1",false],["𜶠","1",false],["𜶷","1",false],["𜵩","1",false],["𜶠","1",false],["𜶠","1",false],["𜶠","1",false],["𜶠","1",false],["𜶷","1",false],["𜶷","1",false],["𜵩","1",false]],"block-shuttle":[["🯦","1",false],["🯦","1",false],["🯦","1",false],["🯦","1",false],["🯦","1",false],["🯦","1",false],["🯦","1",false],["🯦","1",false],["🯦","1",false],["🯦","1",false],["🯦","1",false],["🯦","1",false],["🯦","1",false],["🯦","1",false],["🯦","1",false],["🯦","1",false],["🯦","1",false],["🯦","1",false],["🯦","1",false],["🯦","1",false],["🯦","1",false],["🯦","1",false],["🯦","1",false],["🯦","1",false],["🯦","1",false],["🯦","1",false],["🯦","1",false],["🯦","1",false],["🯦","1",false],["🯦","1",false],["🯦","1",false],["🯦","1",false],["🯦","1",false],["🯦","1",false],["🯦","1",false],["🯦","1",false],["🯦","1",false],["🯦","1",false],["🯦","1",false],["🯧","1",false],["🯧","1",false],["🯧","1",false],["🯧","1",false],["🯧","1",false],["🯧","1",false],["🯧","1",false],["🯧","1",false],["🯧","1",false],["🯧","1",false],["🯧","1",false],["🯧","1",false],["🯧","1",false],["🯧","1",false],["🯧","1",false],["🯧","1",false],["🯧","1",false],["🯧","1",false],["🯧","1",false],["🯧","1",false],["🯧","1",false],["🯧","1",false],["🯧","1",false],["🯧","1",false],["🯧","1",false],["🯧","1",false],["🯧","1",false],["🯧","1",false],["🯧","1",false],["🯧","1",false],["🯧","1",false],["🯧","1",false],["🯧","1",false],["🯧","1",false],["🯧","1",false],["🯧","1",false],["🯧","1",false],["🯧","1",false],["🯦","1",false],["🯦","1",false],["🯦","1",false],["🯦","1",false],["🯦","1",false],["🯦","1",false],["🯦","1",false],["🯦","1",false],["🯦","1",false],["🯦","1",false],["🯦","1",false],["🯦","1",false],["🯦","1",false],["🯦","1",false],["🯦","1",false],["🯦","1",false],["🯦","1",false],["🯦","1",false],["🯦","1",false],["🯦","1",false],["🯦","1",false],["🯦","1",false],["🯦","1",false],["🯦","1",false],["🯦","1",false],["🯦","1",false],["🯦","1",false],["🯦","1",false],["🯦","1",false],["🯦","1",false],["🯦","1",false],["🯦","1",false],["🯦","1",false],["🯦","1",false],["🯦","1",false],["🯦","1",false],["🯦","1",false],["🯦","1",false],["🯦","1",false],["🯧","1",false],["🯧","1",false],["🯧","1",false],["🯧","1",false],["🯧","1",false],["🯧","1",false],["🯧","1",false],["🯧","1",false],["🯧","1",false],["🯧","1",false],["🯧","1",false],["🯧","1",false],["🯧","1",false],["🯧","1",false],["🯧","1",false],["🯧","1",false],["🯧","1",false],["🯧","1",false],["🯧","1",false],["🯧","1",false],["🯧","1",false],["🯧","1",false],["🯧","1",false],["🯧","1",false],["🯧","1",false],["🯧","1",false],["🯧","1",false],["🯧","1",false],["🯧","1",false],["🯧","1",false],["🯧","1",false],["🯧","1",false],["🯧","1",false],["🯧","1",false],["🯧","1",false],["🯧","1",false],["🯧","1",false],["🯧","1",false],["🯦","1",false],["🯦","1",false],["🯦","1",false],["🯦","1",false],["🯦","1",false],["🯦","1",false],["🯦","1",false],["🯦","1",false],["🯦","1",false],["🯦","1",false],["🯦","1",false],["🯦","1",false],["🯦","1",false],["🯦","1",false],["🯦","1",false],["🯦","1",false],["🯦","1",false],["🯦","1",false],["🯦","1",false],["🯦","1",false],["🯦","1",false],["🯦","1",false],["🯦","1",false],["🯦","1",false],["🯦","1",false],["🯦","1",false],["🯦","1",false],["🯦","1",false],["🯦","1",false],["🯦","1",false],["🯦","1",false],["🯦","1",false],["🯦","1",false],["🯦","1",false],["🯦","1",false],["🯦","1",false],["🯦","1",false],["🯦","1",false],["🯦","1",false],["🯧","1",false],["🯧","1",false],["🯧","1",false],["🯧","1",false],["🯧","1",false],["🯧","1",false],["🯧","1",false],["🯧","1",false],["🯧","1",false],["🯧","1",false],["🯧","1",false],["🯧","1",false],["🯧","1",false],["🯧","1",false],["🯧","1",false],["🯧","1",false],["🯧","1",false],["🯧","1",false],["🯧","1",false],["🯧","1",false],["🯧","1",false],["🯧","1",false],["🯧","1",false],["🯧","1",false],["🯧","1",false],["🯧","1",false],["🯧","1",false],["🯧","1",false],["🯧","1",false],["🯧","1",false],["🯧","1",false],["🯧","1",false],["🯧","1",false],["🯧","1",false],["🯧","1",false],["🯧","1",false],["🯧","1",false],["🯧","1",false],["🯦","1",false],["🯦","1",false],["🯦","1",false],["🯦","1",false],["🯦","1",false],["🯦","1",false],["🯦","1",false],["🯦","1",false],["🯦","1",false],["🯦","1",false],["🯦","1",false],["🯦","1",false],["🯦","1",false],["🯦","1",false],["🯦","1",false],["🯦","1",false],["🯦","1",false],["🯦","1",false],["🯦","1",false],["🯦","1",false],["🯦","1",false],["🯦","1",false],["🯦","1",false],["🯦","1",false],["🯦","1",false],["🯦","1",false],["🯦","1",false],["🯦","1",false],["🯦","1",false],["🯦","1",false],["🯦","1",false],["🯦","1",false],["🯦","1",false],["🯦","1",false],["🯦","1",false],["🯦","1",false],["🯦","1",false],["🯦","1",false],["🯦","1",false],["🯧","1",false],["🯧","1",false],["🯧","1",false],["🯧","1",false],["🯧","1",false],["🯧","1",false],["🯧","1",false],["🯧","1",false],["🯧","1",false],["🯧","1",false],["🯧","1",false],["🯧","1",false],["🯧","1",false],["🯧","1",false],["🯧","1",false],["🯧","1",false],["🯧","1",false],["🯧","1",false],["🯧","1",false],["🯧","1",false],["🯧","1",false],["🯧","1",false],["🯧","1",false],["🯧","1",false],["🯧","1",false],["🯧","1",false],["🯧","1",false],["🯧","1",false],["🯧","1",false],["🯧","1",false],["🯧","1",false],["🯧","1",false],["🯧","1",false],["🯧","1",false],["🯧","1",false],["🯧","1",false],["🯧","1",false],["🯧","1",false],["🯦","1",false],["🯦","1",false],["🯦","1",false],["🯦","1",false],["🯦","1",false],["🯦","1",false],["🯦","1",false],["🯦","1",false],["🯦","1",false],["🯦","1",false],["🯦","1",false],["🯦","1",false],["🯦","1",false],["🯦","1",false],["🯦","1",false],["🯦","1",false],["🯦","1",false],["🯦","1",false],["🯦","1",false],["🯦","1",false],["🯦","1",false],["🯦","1",false],["🯦","1",false],["🯦","1",false],["🯦","1",false],["🯦","1",false],["🯦","1",false],["🯦","1",false],["🯦","1",false],["🯦","1",false],["🯦","1",false],["🯦","1",false],["🯦","1",false],["🯦","1",false],["🯦","1",false],["🯦","1",false],["🯦","1",false],["🯦","1",false],["🯦","1",false],["🯧","1",false],["🯧","1",false],["🯧","1",false],["🯧","1",false],["🯧","1",false],["🯧","1",false],["🯧","1",false],["🯧","1",false],["🯧","1",false],["🯧","1",false],["🯧","1",false],["🯧","1",false],["🯧","1",false],["🯧","1",false],["🯧","1",false],["🯧","1",false],["🯧","1",false],["🯧","1",false],["🯧","1",false],["🯧","1",false],["🯧","1",false],["🯧","1",false],["🯧","1",false],["🯧","1",false],["🯧","1",false],["🯧","1",false],["🯧","1",false],["🯧","1",false],["🯧","1",false],["🯧","1",false],["🯧","1",false],["🯧","1",false],["🯧","1",false],["🯧","1",false],["🯧","1",false],["🯧","1",false],["🯧","1",false],["🯧","1",false],["🯦","1",false],["🯦","1",false],["🯦","1",false],["🯦","1",false],["🯦","1",false],["🯦","1",false],["🯦","1",false],["🯦","1",false],["🯦","1",false],["🯦","1",false],["🯦","1",false],["🯦","1",false],["🯦","1",false],["🯦","1",false],["🯦","1",false],["🯦","1",false],["🯦","1",false],["🯧","1",false],["🯧","1",false],["🯦","1",false],["🯦","1",false],["🯧","1",false],["🯧","1",false],["🯦","1",false],["🯦","1",false],["🯧","1",false],["🯧","1",false],["🯦","1",false],["🯦","1",false],["🯧","1",false],["🯧","1",false],["🯦","1",false],["🯦","1",false],["🯧","1",false],["🯧","1",false],["🯦","1",false],["🯦","1",false],["🯧","1",false],["🯧","1",false],["🯦","1",false],["🯦","1",false],["🯧","1",false],["🯧","1",false],["🯦","1",false],["🯦","1",false],["🯧","1",false],["🯧","1",false],["🯦","1",false],["🯦","1",false],["🯧","1",false],["🯧","1",false],["🯦","1",false],["🯦","1",false],["🯧","1",false],["🯧","1",false],["🯦","1",false],["🯦","1",false],["🯧","1",false],["🯧","1",false],["🯦","1",false],["🯦","1",false],["🯧","1",false],["🯧","1",false],["🯦","1",false],["🯦","1",false],["🯧","1",false],["🯧","1",false],["🯦","1",false],["🯦","1",false],["🯧","1",false],["🯧","1",false],["🯦","1",false],["🯦","1",false],["🯧","1",false],["🯧","1",false],["🯦","1",false],["🯦","1",false],["🯧","1",false],["🯧","1",false],["🯦","1",false],["🯦","1",false],["🯧","1",false],["🯧","1",false],["🯦","1",false],["🯦","1",false],["🯧","1",false],["🯧","1",false],["🯦","1",false],["🯦","1",false],["🯧","1",false],["🯧","1",false],["🯦","1",false],["🯦","1",false],["🯧","1",false],["🯧","1",false],["🯦","1",false],["🯦","1",false],["🯧","1",false],["🯧","1",false],["🯦","1",false],["🯦","1",false],["🯧","1",false],["🯧","1",false],["🯦","1",false],["🯦","1",false],["🯧","1",false],["🯧","1",false],["🯦","1",false],["🯦","1",false],["🯧","1",false],["🯧","1",false],["🯦","1",false],["🯦","1",false],["🯧","1",false],["🯧","1",false],["🯦","1",false],["🯦","1",false],["🯧","1",false],["🯧","1",false],["🯦","1",false],["🯦","1",false],["🯧","1",false],["🯧","1",false],["🯦","1",false],["🯦","1",false],["🯧","1",false],["🯧","1",false],["🯦","1",false],["🯦","1",false],["🯧","1",false],["🯧","1",false],["🯦","1",false],["🯦","1",false],["🯧","1",false],["🯧","1",false],["🯦","1",false],["🯦","1",false],["🯧","1",false],["🯧","1",false],["🯦","1",false],["🯦","1",false],["🯧","1",false],["🯧","1",false],["🯦","1",false],["🯦","1",false],["🯧","1",false],["🯧","1",false],["🯦","1",false],["🯦","1",false],["🯧","1",false],["🯧","1",false],["🯦","1",false],["🯦","1",false],["🯧","1",false],["🯧","1",false],["🯦","1",false],["🯦","1",false],["🯦","1",false],["🯦","1",false],["🯦","1",false],["🯦","1",false]],"block-bridge":[["🯦","1",false],["🯦","1",false],["🯦","1",false],["🯦","1",false],["🯦","1",false],["🯦","1",false],["🯦","1",false],["🯦","1",false],["🯦","1",false],["🯦","1",false],["🯦","1",false],["🯦","1",false],["🯦","1",false],["🯦","1",false],["🯦","1",false],["🯦","1",false],["🯦","1",false],["🯦","1",false],["🯦","1",false],["🯦","1",false],["🯦","1",false],["🯦","1",false],["🯦","1",false],["🯦","1",false],["🯦","1",false],["🯦","1",false],["🯦","1",false],["🯦","1",false],["𜴳","1",false],["𜴳","1",false],["𜴳","1",false],["𜴳","1",false],["𜴳","1",false],["𜴳","1",false],["𜴳","1",false],["𜴳","1",false],["𜴳","1",false],["🯧","1",false],["🯧","1",false],["🯧","1",false],["🯧","1",false],["🯧","1",false],["🯧","1",false],["🯧","1",false],["🯧","1",false],["🯧","1",false],["🯧","1",false],["🯧","1",false],["🯧","1",false],["🯧","1",false],["🯧","1",false],["🯧","1",false],["🯧","1",false],["🯧","1",false],["🯧","1",false],["🯧","1",false],["🯧","1",false],["🯧","1",false],["🯧","1",false],["🯧","1",false],["🯧","1",false],["🯧","1",false],["🯧","1",false],["🯧","1",false],["🯧","1",false],["𜴳","1",false],["𜴳","1",false],["𜴳","1",false],["𜴳","1",false],["𜴳","1",false],["𜴳","1",false],["𜴳","1",false],["𜴳","1",false],["𜴳","1",false],["🯦","1",false],["🯦","1",false],["🯦","1",false],["🯦","1",false],["🯦","1",false],["🯦","1",false],["🯦","1",false],["🯦","1",false],["🯦","1",false],["🯦","1",false],["🯦","1",false],["🯦","1",false],["🯦","1",false],["🯦","1",false],["🯦","1",false],["🯦","1",false],["🯦","1",false],["🯦","1",false],["🯦","1",false],["🯦","1",false],["🯦","1",false],["🯦","1",false],["🯦","1",false],["🯦","1",false],["🯦","1",false],["🯦","1",false],["🯦","1",false],["🯦","1",false],["𜴳","1",false],["𜴳","1",false],["𜴳","1",false],["𜴳","1",false],["𜴳","1",false],["𜴳","1",false],["𜴳","1",false],["𜴳","1",false],["𜴳","1",false],["🯧","1",false],["🯧","1",false],["🯧","1",false],["🯧","1",false],["🯧","1",false],["🯧","1",false],["🯧","1",false],["🯧","1",false],["🯧","1",false],["🯧","1",false],["🯧","1",false],["🯧","1",false],["🯧","1",false],["🯧","1",false],["🯧","1",false],["🯧","1",false],["🯧","1",false],["🯧","1",false],["🯧","1",false],["🯧","1",false],["🯧","1",false],["🯧","1",false],["🯧","1",false],["🯧","1",false],["🯧","1",false],["🯧","1",false],["🯧","1",false],["🯧","1",false],["𜴳","1",false],["𜴳","1",false],["𜴳","1",false],["𜴳","1",false],["𜴳","1",false],["𜴳","1",false],["𜴳","1",false],["𜴳","1",false],["𜴳","1",false],["🯦","1",false],["🯦","1",false],["🯦","1",false],["🯦","1",false],["🯦","1",false],["🯦","1",false],["🯦","1",false],["🯦","1",false],["🯦","1",false],["🯦","1",false],["🯦","1",false],["🯦","1",false],["🯦","1",false],["🯦","1",false],["🯦","1",false],["🯦","1",false],["🯦","1",false],["🯦","1",false],["🯦","1",false],["🯦","1",false],["🯦","1",false],["🯦","1",false],["🯦","1",false],["🯦","1",false],["🯦","1",false],["🯦","1",false],["🯦","1",false],["🯦","1",false],["𜴳","1",false],["𜴳","1",false],["𜴳","1",false],["𜴳","1",false],["𜴳","1",false],["𜴳","1",false],["𜴳","1",false],["𜴳","1",false],["𜴳","1",false],["🯧","1",false],["🯧","1",false],["🯧","1",false],["🯧","1",false],["🯧","1",false],["🯧","1",false],["🯧","1",false],["🯧","1",false],["🯧","1",false],["🯧","1",false],["🯧","1",false],["🯧","1",false],["🯧","1",false],["🯧","1",false],["🯧","1",false],["🯧","1",false],["🯧","1",false],["🯧","1",false],["🯧","1",false],["🯧","1",false],["🯧","1",false],["🯧","1",false],["🯧","1",false],["🯧","1",false],["🯧","1",false],["🯧","1",false],["🯧","1",false],["🯧","1",false],["𜴳","1",false],["𜴳","1",false],["𜴳","1",false],["𜴳","1",false],["𜴳","1",false],["𜴳","1",false],["𜴳","1",false],["𜴳","1",false],["𜴳","1",false],["🯦","1",false],["🯦","1",false],["🯦","1",false],["🯦","1",false],["🯦","1",false],["🯦","1",false],["🯦","1",false],["🯦","1",false],["🯦","1",false],["🯦","1",false],["🯦","1",false],["🯦","1",false],["🯦","1",false],["🯦","1",false],["🯦","1",false],["🯦","1",false],["🯦","1",false],["🯦","1",false],["🯦","1",false],["🯦","1",false],["🯦","1",false],["🯦","1",false],["🯦","1",false],["🯦","1",false],["🯦","1",false],["🯦","1",false],["🯦","1",false],["🯦","1",false],["𜴳","1",false],["𜴳","1",false],["𜴳","1",false],["𜴳","1",false],["𜴳","1",false],["𜴳","1",false],["𜴳","1",false],["𜴳","1",false],["𜴳","1",false],["🯧","1",false],["🯧","1",false],["🯧","1",false],["🯧","1",false],["🯧","1",false],["🯧","1",false],["🯧","1",false],["🯧","1",false],["🯧","1",false],["🯧","1",false],["🯧","1",false],["🯧","1",false],["🯧","1",false],["🯧","1",false],["🯧","1",false],["🯧","1",false],["🯧","1",false],["🯧","1",false],["🯧","1",false],["🯧","1",false],["🯧","1",false],["🯧","1",false],["🯧","1",false],["🯧","1",false],["🯧","1",false],["🯧","1",false],["🯧","1",false],["🯧","1",false],["𜴳","1",false],["𜴳","1",false],["𜴳","1",false],["𜴳","1",false],["𜴳","1",false],["𜴳","1",false],["𜴳","1",false],["𜴳","1",false],["𜴳","1",false],["🯦","1",false],["🯦","1",false],["🯦","1",false],["🯦","1",false],["🯦","1",false],["🯦","1",false],["🯦","1",false],["🯦","1",false],["🯦","1",false],["🯦","1",false],["🯦","1",false],["🯦","1",false],["🯦","1",false],["🯦","1",false],["🯦","1",false],["🯦","1",false],["🯦","1",false],["🯦","1",false],["🯦","1",false],["🯦","1",false],["🯦","1",false],["🯦","1",false],["🯦","1",false],["🯦","1",false],["🯦","1",false],["🯦","1",false],["🯦","1",false],["🯦","1",false],["𜴳","1",false],["𜴳","1",false],["𜴳","1",false],["𜴳","1",false],["𜴳","1",false],["𜴳","1",false],["𜴳","1",false],["𜴳","1",false],["𜴳","1",false],["🯧","1",false],["🯧","1",false],["🯧","1",false],["🯧","1",false],["🯧","1",false],["🯧","1",false],["🯧","1",false],["🯧","1",false],["🯧","1",false],["🯧","1",false],["🯧","1",false],["🯧","1",false],["🯧","1",false],["🯧","1",false],["🯧","1",false],["🯧","1",false],["🯧","1",false],["🯧","1",false],["🯧","1",false],["🯧","1",false],["🯧","1",false],["🯧","1",false],["🯧","1",false],["🯧","1",false],["🯧","1",false],["🯧","1",false],["🯧","1",false],["𜴳","1",false],["𜴳","1",false],["𜴳","1",false],["𜴳","1",false],["𜴳","1",false],["𜴳","1",false],["𜴳","1",false],["𜴳","1",false],["𜴳","1",false],["𜴳","1",false],["🯦","1",false],["🯦","1",false],["🯦","1",false],["🯦","1",false],["🯦","1",false],["🯦","1",false],["🯦","1",false],["🯦","1",false],["🯦","1",false],["🯦","1",false],["🯦","1",false],["🯦","1",false],["🯦","1",false],["🯦","1",false],["🯦","1",false],["🯦","1",false],["🯦","1",false],["🯦","1",false],["🯦","1",false],["🯦","1",false],["🯦","1",false],["🯦","1",false],["🯦","1",false],["🯦","1",false],["🯦","1",false],["🯦","1",false],["🯦","1",false],["𜴳","1",false],["𜴳","1",false],["𜴳","1",false],["🯦","1",false],["𜴳","1",false],["🯧","1",false],["𜴳","1",false],["🯦","1",false],["𜴳","1",false],["🯧","1",false],["𜴳","1",false],["🯦","1",false],["🯧","1",false],["🯧","1",false],["🯦","1",false],["🯦","1",false],["🯧","1",false],["🯧","1",false],["🯦","1",false],["🯦","1",false],["🯧","1",false],["🯧","1",false],["🯦","1",false],["𜴳","1",false],["🯧","1",false],["𜴳","1",false],["🯦","1",false],["𜴳","1",false],["🯧","1",false],["𜴳","1",false],["🯦","1",false],["𜴳","1",false],["🯧","1",false],["𜴳","1",false],["🯦","1",false],["🯧","1",false],["🯧","1",false],["🯦","1",false],["🯦","1",false],["🯧","1",false],["🯧","1",false],["🯦","1",false],["🯦","1",false],["🯧","1",false],["🯧","1",false],["🯦","1",false],["🯦","1",false],["🯧","1",false],["𜴳","1",false],["🯦","1",false],["𜴳","1",false],["🯧","1",false],["𜴳","1",false],["🯦","1",false],["𜴳","1",false],["🯧","1",false],["𜴳","1",false],["🯦","1",false],["𜴳","1",false],["🯧","1",false],["🯦","1",false],["🯦","1",false],["🯧","1",false],["🯧","1",false],["🯦","1",false],["🯦","1",false],["🯧","1",false],["🯧","1",false],["🯦","1",false],["🯦","1",false],["🯧","1",false],["𜴳","1",false],["🯦","1",false],["𜴳","1",false],["🯧","1",false],["𜴳","1",false],["🯦","1",false],["𜴳","1",false],["🯧","1",false],["𜴳","1",false],["🯦","1",false],["𜴳","1",false],["🯧","1",false],["🯦","1",false],["🯦","1",false],["🯧","1",false],["🯧","1",false],["🯦","1",false],["🯦","1",false],["🯧","1",false],["🯧","1",false],["🯦","1",false],["🯦","1",false],["🯧","1",false],["🯧","1",false],["🯦","1",false],["𜴳","1",false],["🯧","1",false],["𜴳","1",false],["🯦","1",false],["𜴳","1",false],["🯧","1",false],["𜴳","1",false],["🯦","1",false],["𜴳","1",false],["🯧","1",false],["𜴳","1",false],["🯦","1",false],["🯧","1",false],["🯧","1",false],["🯦","1",false],["🯦","1",false],["🯧","1",false],["🯧","1",false],["🯦","1",false],["🯦","1",false],["🯧","1",false],["🯧","1",false],["🯦","1",false],["𜴳","1",false],["🯧","1",false],["𜴳","1",false],["🯦","1",false],["𜴳","1",false],["🯧","1",false],["𜴳","1",false],["🯦","1",false],["𜴳","1",false],["🯧","1",false],["𜴳","1",false],["🯦","1",false],["🯧","1",false],["🯧","1",false],["🯦","1",false],["🯦","1",false],["🯧","1",false],["🯧","1",false],["🯦","1",false],["🯦","1",false],["🯧","1",false],["🯧","1",false],["🯦","1",false],["🯦","1",false],["🯦","1",false],["🯦","1",false],["🯦","1",false],["🯦","1",false],["🯦","1",false],["🯧","1",false]],"block-squeeze":[["🯦","1",false],["🯦","1",false],["🯦","1",false],["🯦","1",false],["🯦","1",false],["🯦","1",false],["🯦","1",false],["🯦","1",false],["🯦","1",false],["🯦","1",false],["🯦","1",false],["🯦","1",false],["🯦","1",false],["🯦","1",false],["🯦","1",false],["🯦","1",false],["🯦","1",false],["🯦","1",false],["🯦","1",false],["🯦","1",false],["🯦","1",false],["🯦","1",false],["🯦","1",false],["🯦","1",false],["𜴉","1",false],["𜴉","1",false],["𜴉","1",false],["𜴉","1",false],["𜴉","1",false],["𜴉","1",false],["𜴉","1",false],["𜴘","1",false],["𜴘","1",false],["𜴘","1",false],["𜴘","1",false],["𜴘","1",false],["𜴘","1",false],["𜴘","1",false],["𜴘","1",false],["🯧","1",false],["🯧","1",false],["🯧","1",false],["🯧","1",false],["🯧","1",false],["🯧","1",false],["🯧","1",false],["🯧","1",false],["🯧","1",false],["🯧","1",false],["🯧","1",false],["🯧","1",false],["🯧","1",false],["🯧","1",false],["🯧","1",false],["🯧","1",false],["🯧","1",false],["🯧","1",false],["🯧","1",false],["🯧","1",false],["🯧","1",false],["🯧","1",false],["🯧","1",false],["𜴘","1",false],["𜴘","1",false],["𜴘","1",false],["𜴘","1",false],["𜴘","1",false],["𜴘","1",false],["𜴘","1",false],["𜴘","1",false],["𜴉","1",false],["𜴉","1",false],["𜴉","1",false],["𜴉","1",false],["𜴉","1",false],["𜴉","1",false],["𜴉","1",false],["🯦","1",false],["🯦","1",false],["🯦","1",false],["🯦","1",false],["🯦","1",false],["🯦","1",false],["🯦","1",false],["🯦","1",false],["🯦","1",false],["🯦","1",false],["🯦","1",false],["🯦","1",false],["🯦","1",false],["🯦","1",false],["🯦","1",false],["🯦","1",false],["🯦","1",false],["🯦","1",false],["🯦","1",false],["🯦","1",false],["🯦","1",false],["🯦","1",false],["🯦","1",false],["𜴉","1",false],["𜴉","1",false],["𜴉","1",false],["𜴉","1",false],["𜴉","1",false],["𜴉","1",false],["𜴉","1",false],["𜴉","1",false],["𜴘","1",false],["𜴘","1",false],["𜴘","1",false],["𜴘","1",false],["𜴘","1",false],["𜴘","1",false],["𜴘","1",false],["𜴘","1",false],["🯧","1",false],["🯧","1",false],["🯧","1",false],["🯧","1",false],["🯧","1",false],["🯧","1",false],["🯧","1",false],["🯧","1",false],["🯧","1",false],["🯧","1",false],["🯧","1",false],["🯧","1",false],["🯧","1",false],["🯧","1",false],["🯧","1",false],["🯧","1",false],["🯧","1",false],["🯧","1",false],["🯧","1",false],["🯧","1",false],["🯧","1",false],["🯧","1",false],["🯧","1",false],["𜴘","1",false],["𜴘","1",false],["𜴘","1",false],["𜴘","1",false],["𜴘","1",false],["𜴘","1",false],["𜴘","1",false],["𜴘","1",false],["𜴉","1",false],["𜴉","1",false],["𜴉","1",false],["𜴉","1",false],["𜴉","1",false],["𜴉","1",false],["𜴉","1",false],["🯦","1",false],["🯦","1",false],["🯦","1",false],["🯦","1",false],["🯦","1",false],["🯦","1",false],["🯦","1",false],["🯦","1",false],["🯦","1",false],["🯦","1",false],["🯦","1",false],["🯦","1",false],["🯦","1",false],["🯦","1",false],["🯦","1",false],["🯦","1",false],["🯦","1",false],["🯦","1",false],["🯦","1",false],["🯦","1",false],["🯦","1",false],["🯦","1",false],["🯦","1",false],["𜴉","1",false],["𜴉","1",false],["𜴉","1",false],["𜴉","1",false],["𜴉","1",false],["𜴉","1",false],["𜴉","1",false],["𜴉","1",false],["𜴘","1",false],["𜴘","1",false],["𜴘","1",false],["𜴘","1",false],["𜴘","1",false],["𜴘","1",false],["𜴘","1",false],["𜴘","1",false],["🯧","1",false],["🯧","1",false],["🯧","1",false],["🯧","1",false],["🯧","1",false],["🯧","1",false],["🯧","1",false],["🯧","1",false],["🯧","1",false],["🯧","1",false],["🯧","1",false],["🯧","1",false],["🯧","1",false],["🯧","1",false],["🯧","1",false],["🯧","1",false],["🯧","1",false],["🯧","1",false],["🯧","1",false],["🯧","1",false],["🯧","1",false],["🯧","1",false],["🯧","1",false],["𜴘","1",false],["𜴘","1",false],["𜴘","1",false],["𜴘","1",false],["𜴘","1",false],["𜴘","1",false],["𜴘","1",false],["𜴘","1",false],["𜴉","1",false],["𜴉","1",false],["𜴉","1",false],["𜴉","1",false],["𜴉","1",false],["𜴉","1",false],["𜴉","1",false],["🯦","1",false],["🯦","1",false],["🯦","1",false],["🯦","1",false],["🯦","1",false],["🯦","1",false],["🯦","1",false],["🯦","1",false],["🯦","1",false],["🯦","1",false],["🯦","1",false],["🯦","1",false],["🯦","1",false],["🯦","1",false],["🯦","1",false],["🯦","1",false],["🯦","1",false],["🯦","1",false],["🯦","1",false],["🯦","1",false],["🯦","1",false],["🯦","1",false],["🯦","1",false],["𜴉","1",false],["𜴉","1",false],["𜴉","1",false],["𜴉","1",false],["𜴉","1",false],["𜴉","1",false],["𜴉","1",false],["𜴉","1",false],["𜴘","1",false],["𜴘","1",false],["𜴘","1",false],["𜴘","1",false],["𜴘","1",false],["𜴘","1",false],["𜴘","1",false],["𜴘","1",false],["🯧","1",false],["🯧","1",false],["🯧","1",false],["🯧","1",false],["🯧","1",false],["🯧","1",false],["🯧","1",false],["🯧","1",false],["🯧","1",false],["🯧","1",false],["🯧","1",false],["🯧","1",false],["🯧","1",false],["🯧","1",false],["🯧","1",false],["🯧","1",false],["🯧","1",false],["🯧","1",false],["🯧","1",false],["🯧","1",false],["🯧","1",false],["🯧","1",false],["🯧","1",false],["𜴘","1",false],["𜴘","1",false],["𜴘","1",false],["𜴘","1",false],["𜴘","1",false],["𜴘","1",false],["𜴘","1",false],["𜴉","1",false],["𜴉","1",false],["𜴉","1",false],["𜴉","1",false],["𜴉","1",false],["𜴉","1",false],["𜴉","1",false],["𜴉","1",false],["🯦","1",false],["🯦","1",false],["🯦","1",false],["🯦","1",false],["🯦","1",false],["🯦","1",false],["🯦","1",false],["🯦","1",false],["🯦","1",false],["🯦","1",false],["🯦","1",false],["🯦","1",false],["🯦","1",false],["🯦","1",false],["🯦","1",false],["🯦","1",false],["🯦","1",false],["🯦","1",false],["🯦","1",false],["🯦","1",false],["🯦","1",false],["🯦","1",false],["🯦","1",false],["𜴉","1",false],["𜴉","1",false],["𜴉","1",false],["𜴉","1",false],["𜴉","1",false],["𜴉","1",false],["𜴉","1",false],["𜴉","1",false],["𜴘","1",false],["𜴘","1",false],["𜴘","1",false],["𜴘","1",false],["𜴘","1",false],["𜴘","1",false],["𜴘","1",false],["𜴘","1",false],["🯧","1",false],["🯧","1",false],["🯧","1",false],["🯧","1",false],["🯧","1",false],["🯧","1",false],["🯧","1",false],["🯧","1",false],["🯧","1",false],["🯧","1",false],["🯧","1",false],["🯧","1",false],["🯧","1",false],["🯧","1",false],["🯧","1",false],["🯧","1",false],["🯧","1",false],["🯧","1",false],["🯧","1",false],["🯧","1",false],["🯧","1",false],["🯧","1",false],["🯧","1",false],["𜴘","1",false],["𜴘","1",false],["𜴘","1",false],["𜴘","1",false],["𜴘","1",false],["𜴘","1",false],["𜴘","1",false],["𜴉","1",false],["𜴉","1",false],["𜴉","1",false],["𜴉","1",false],["𜴉","1",false],["𜴉","1",false],["𜴉","1",false],["𜴉","1",false],["🯦","1",false],["🯦","1",false],["🯦","1",false],["🯦","1",false],["🯦","1",false],["🯦","1",false],["🯦","1",false],["🯦","1",false],["🯦","1",false],["🯦","1",false],["🯦","1",false],["🯦","1",false],["🯦","1",false],["🯦","1",false],["🯦","1",false],["🯦","1",false],["🯦","1",false],["🯧","1",false],["🯧","1",false],["🯦","1",false],["🯦","1",false],["🯧","1",false],["🯧","1",false],["🯦","1",false],["🯦","1",false],["🯧","1",false],["🯧","1",false],["🯦","1",false],["🯦","1",false],["🯧","1",false],["🯧","1",false],["🯦","1",false],["🯦","1",false],["🯧","1",false],["🯧","1",false],["🯦","1",false],["🯦","1",false],["🯧","1",false],["🯧","1",false],["🯦","1",false],["🯦","1",false],["🯧","1",false],["🯧","1",false],["🯦","1",false],["🯦","1",false],["🯧","1",false],["🯧","1",false],["🯦","1",false],["🯦","1",false],["🯧","1",false],["🯧","1",false],["🯦","1",false],["🯦","1",false],["🯧","1",false],["🯧","1",false],["🯦","1",false],["🯦","1",false],["🯧","1",false],["🯧","1",false],["🯦","1",false],["🯦","1",false],["🯧","1",false],["🯧","1",false],["🯦","1",false],["🯦","1",false],["🯧","1",false],["🯧","1",false],["🯦","1",false],["🯦","1",false],["🯧","1",false],["🯧","1",false],["🯦","1",false],["🯦","1",false],["🯧","1",false],["🯧","1",false],["🯦","1",false],["🯦","1",false],["🯧","1",false],["🯧","1",false],["🯦","1",false],["🯦","1",false],["🯧","1",false],["🯧","1",false],["🯦","1",false],["🯦","1",false],["🯧","1",false],["🯧","1",false],["🯦","1",false],["🯦","1",false],["🯧","1",false],["🯧","1",false],["🯦","1",false],["🯦","1",false],["🯧","1",false],["🯧","1",false],["🯦","1",false],["🯦","1",false],["🯧","1",false],["🯧","1",false],["🯦","1",false],["🯦","1",false],["🯧","1",false],["🯧","1",false],["🯦","1",false],["🯦","1",false],["🯧","1",false],["🯧","1",false],["🯦","1",false],["🯦","1",false],["🯧","1",false],["🯧","1",false],["🯦","1",false],["🯦","1",false],["🯧","1",false],["🯧","1",false],["🯦","1",false],["🯦","1",false],["🯧","1",false],["🯧","1",false],["🯦","1",false],["🯦","1",false],["🯧","1",false],["🯧","1",false],["🯦","1",false],["🯦","1",false],["🯧","1",false],["🯧","1",false],["🯦","1",false],["🯦","1",false],["🯧","1",false],["🯧","1",false],["🯦","1",false],["🯦","1",false],["🯧","1",false],["🯧","1",false],["🯦","1",false],["🯦","1",false],["🯧","1",false],["🯧","1",false],["🯦","1",false],["🯦","1",false],["🯧","1",false],["🯧","1",false],["🯦","1",false],["🯦","1",false],["🯧","1",false],["🯧","1",false],["🯦","1",false],["🯦","1",false],["🯧","1",false],["🯧","1",false],["🯦","1",false],["🯦","1",false],["🯧","1",false],["🯧","1",false],["🯦","1",false],["🯦","1",false],["🯦","1",false],["🯦","1",false],["🯦","1",false],["🯦","1",false]],"small-toggle":[["▫","1",false],["▫","1",false],["▫","1",false],["▫","1",false],["▫","1",false],["▫","1",false],["▫","1",false],["▫","1",false],["▫","1",false],["▫","1",false],["▫","1",false],["▫","1",false],["▫","1",false],["▫","1",false],["▫","1",false],["▫","1",false],["▫","1",false],["▫","1",false],["▫","1",false],["▫","1",false],["▫","1",false],["▫","1",false],["▫","1",false],["▫","1",false],["▫","1",false],["▪","1",false],["▪","1",false],["▪","1",false],["▪","1",false],["▪","1",false],["▪","1",false],["▪","1",false],["▪","1",false],["▪","1",false],["▪","1",false],["▪","1",false],["▪","1",false],["▪","1",false],["▪","1",false],["▪","1",false],["▪","1",false],["▪","1",false],["▪","1",false],["▪","1",false],["▪","1",false],["▪","1",false],["▪","1",false],["▪","1",false],["▪","1",false],["▪","1",false],["▫","1",false],["▫","1",false],["▫","1",false],["▫","1",false],["▫","1",false],["▫","1",false],["▫","1",false],["▫","1",false],["▫","1",false],["▫","1",false],["▫","1",false],["▫","1",false],["▫","1",false],["▫","1",false],["▫","1",false],["▫","1",false],["▫","1",false],["▫","1",false],["▫","1",false],["▫","1",false],["▫","1",false],["▫","1",false],["▫","1",false],["▫","1",false],["▪","1",false],["▪","1",false],["▪","1",false],["▪","1",false],["▪","1",false],["▪","1",false],["▪","1",false],["▪","1",false],["▪","1",false],["▪","1",false],["▪","1",false],["▪","1",false],["▪","1",false],["▪","1",false],["▪","1",false],["▪","1",false],["▪","1",false],["▪","1",false],["▪","1",false],["▪","1",false],["▪","1",false],["▪","1",false],["▪","1",false],["▪","1",false],["▪","1",false],["▫","1",false],["▫","1",false],["▫","1",false],["▫","1",false],["▫","1",false],["▫","1",false],["▫","1",false],["▫","1",false],["▫","1",false],["▫","1",false],["▫","1",false],["▫","1",false],["▫","1",false],["▫","1",false],["▫","1",false],["▫","1",false],["▫","1",false],["▫","1",false],["▫","1",false],["▫","1",false],["▫","1",false],["▫","1",false],["▫","1",false],["▫","1",false],["▫","1",false],["▪","1",false],["▪","1",false],["▪","1",false],["▪","1",false],["▪","1",false],["▪","1",false],["▪","1",false],["▪","1",false],["▪","1",false],["▪","1",false],["▪","1",false],["▪","1",false],["▪","1",false],["▪","1",false],["▪","1",false],["▪","1",false],["▪","1",false],["▪","1",false],["▪","1",false],["▪","1",false],["▪","1",false],["▪","1",false],["▪","1",false],["▪","1",false],["▫","1",false],["▫","1",false],["▫","1",false],["▫","1",false],["▫","1",false],["▫","1",false],["▫","1",false],["▫","1",false],["▫","1",false],["▫","1",false],["▫","1",false],["▫","1",false],["▫","1",false],["▫","1",false],["▫","1",false],["▫","1",false],["▫","1",false],["▫","1",false],["▫","1",false],["▫","1",false],["▫","1",false],["▫","1",false],["▫","1",false],["▫","1",false],["▫","1",false],["▪","1",false],["▪","1",false],["▪","1",false],["▪","1",false],["▪","1",false],["▪","1",false],["▪","1",false],["▪","1",false],["▪","1",false],["▪","1",false],["▪","1",false],["▪","1",false],["▪","1",false],["▪","1",false],["▪","1",false],["▪","1",false],["▪","1",false],["▪","1",false],["▪","1",false],["▪","1",false],["▪","1",false],["▪","1",false],["▪","1",false],["▪","1",false],["▫","1",false],["▫","1",false],["▫","1",false],["▫","1",false],["▫","1",false],["▫","1",false],["▫","1",false],["▫","1",false],["▫","1",false],["▫","1",false],["▫","1",false],["▫","1",false],["▫","1",false],["▫","1",false],["▫","1",false],["▫","1",false],["▫","1",false],["▫","1",false],["▫","1",false],["▫","1",false],["▫","1",false],["▫","1",false],["▫","1",false],["▫","1",false],["▫","1",false],["▪","1",false],["▪","1",false],["▪","1",false],["▪","1",false],["▪","1",false],["▪","1",false],["▪","1",false],["▪","1",false],["▪","1",false],["▪","1",false],["▪","1",false],["▪","1",false],["▪","1",false],["▪","1",false],["▪","1",false],["▪","1",false],["▪","1",false],["▪","1",false],["▪","1",false],["▪","1",false],["▪","1",false],["▪","1",false],["▪","1",false],["▪","1",false],["▪","1",false],["▫","1",false],["▫","1",false],["▫","1",false],["▫","1",false],["▫","1",false],["▫","1",false],["▫","1",false],["▫","1",false],["▫","1",false],["▫","1",false],["▫","1",false],["▫","1",false],["▫","1",false],["▫","1",false],["▫","1",false],["▫","1",false],["▫","1",false],["▫","1",false],["▫","1",false],["▫","1",false],["▫","1",false],["▫","1",false],["▫","1",false],["▫","1",false],["▪","1",false],["▪","1",false],["▪","1",false],["▪","1",false],["▪","1",false],["▪","1",false],["▪","1",false],["▪","1",false],["▪","1",false],["▪","1",false],["▪","1",false],["▪","1",false],["▪","1",false],["▪","1",false],["▪","1",false],["▪","1",false],["▪","1",false],["▪","1",false],["▪","1",false],["▪","1",false],["▪","1",false],["▪","1",false],["▪","1",false],["▪","1",false],["▪","1",false],["▫","1",false],["▫","1",false],["▫","1",false],["▫","1",false],["▫","1",false],["▫","1",false],["▫","1",false],["▫","1",false],["▫","1",false],["▫","1",false],["▫","1",false],["▫","1",false],["▫","1",false],["▫","1",false],["▫","1",false],["▫","1",false],["▫","1",false],["▫","1",false],["▫","1",false],["▫","1",false],["▫","1",false],["▫","1",false],["▫","1",false],["▫","1",false],["▪","1",false],["▪","1",false],["▪","1",false],["▪","1",false],["▪","1",false],["▪","1",false],["▪","1",false],["▪","1",false],["▪","1",false],["▪","1",false],["▪","1",false],["▪","1",false],["▪","1",false],["▪","1",false],["▪","1",false],["▪","1",false],["▪","1",false],["▪","1",false],["▪","1",false],["▪","1",false],["▪","1",false],["▪","1",false],["▪","1",false],["▪","1",false],["▪","1",false],["▫","1",false],["▫","1",false],["▫","1",false],["▫","1",false],["▫","1",false],["▫","1",false],["▫","1",false],["▫","1",false],["▫","1",false],["▫","1",false],["▫","1",false],["▫","1",false],["▫","1",false],["▫","1",false],["▫","1",false],["▫","1",false],["▫","1",false],["▫","1",false],["▫","1",false],["▫","1",false],["▫","1",false],["▫","1",false],["▫","1",false],["▫","1",false],["▫","1",false],["▪","1",false],["▪","1",false],["▪","1",false],["▪","1",false],["▪","1",false],["▪","1",false],["▪","1",false],["▪","1",false],["▪","1",false],["▪","1",false],["▪","1",false],["▪","1",false],["▪","1",false],["▪","1",false],["▪","1",false],["▪","1",false],["▪","1",false],["▪","1",false],["▪","1",false],["▪","1",false],["▪","1",false],["▪","1",false],["▪","1",false],["▪","1",false],["▫","1",false],["▫","1",false],["▫","1",false],["▫","1",false],["▫","1",false],["▫","1",false],["▪","1",false],["▫","1",false],["▪","1",false],["▪","1",false],["▫","1",false],["▪","1",false],["▫","1",false],["▫","1",false],["▪","1",false],["▫","1",false],["▪","1",false],["▫","1",false],["▫","1",false],["▪","1",false],["▫","1",false],["▪","1",false],["▫","1",false],["▫","1",false],["▪","1",false],["▫","1",false],["▪","1",false],["▪","1",false],["▫","1",false],["▪","1",false],["▫","1",false],["▪","1",false],["▪","1",false],["▫","1",false],["▪","1",false],["▫","1",false],["▫","1",false],["▪","1",false],["▫","1",false],["▪","1",false],["▫","1",false],["▫","1",false],["▪","1",false],["▫","1",false],["▪","1",false],["▪","1",false],["▫","1",false],["▪","1",false],["▫","1",false],["▪","1",false],["▪","1",false],["▫","1",false],["▪","1",false],["▫","1",false],["▪","1",false],["▪","1",false],["▫","1",false],["▪","1",false],["▫","1",false],["▫","1",false],["▪","1",false],["▫","1",false],["▪","1",false],["▫","1",false],["▫","1",false],["▪","1",false],["▫","1",false],["▪","1",false],["▪","1",false],["▫","1",false],["▪","1",false],["▫","1",false],["▪","1",false],["▪","1",false],["▫","1",false],["▪","1",false],["▫","1",false],["▫","1",false],["▪","1",false],["▫","1",false],["▪","1",false],["▫","1",false],["▫","1",false],["▪","1",false],["▫","1",false],["▪","1",false],["▫","1",false],["▫","1",false],["▪","1",false],["▫","1",false],["▪","1",false],["▪","1",false],["▫","1",false],["▪","1",false],["▫","1",false],["▪","1",false],["▪","1",false],["▫","1",false],["▪","1",false],["▫","1",false],["▫","1",false],["▪","1",false],["▫","1",false],["▪","1",false],["▫","1",false],["▫","1",false],["▪","1",false],["▫","1",false],["▪","1",false],["▪","1",false],["▫","1",false],["▪","1",false],["▫","1",false],["▪","1",false],["▪","1",false],["▫","1",false],["▪","1",false],["▫","1",false],["▪","1",false],["▪","1",false],["▫","1",false],["▪","1",false],["▫","1",false],["▫","1",false],["▪","1",false],["▫","1",false],["▪","1",false],["▫","1",false],["▫","1",false],["▪","1",false],["▫","1",false],["▪","1",false],["▪","1",false],["▫","1",false],["▪","1",false],["▫","1",false],["▪","1",false],["▪","1",false],["▫","1",false],["▪","1",false],["▫","1",false],["▫","1",false],["▪","1",false],["▫","1",false],["▪","1",false],["▫","1",false],["▫","1",false],["▫","1",false],["▫","1",false],["▪","1",false],["▫","1",false],["▪","1",false]],"square-toggle":[["□","1",false],["□","1",false],["□","1",false],["□","1",false],["□","1",false],["□","1",false],["□","1",false],["□","1",false],["□","1",false],["□","1",false],["□","1",false],["□","1",false],["□","1",false],["□","1",false],["□","1",false],["□","1",false],["□","1",false],["□","1",false],["□","1",false],["□","1",false],["□","1",false],["□","1",false],["□","1",false],["□","1",false],["□","1",false],["□","1",false],["□","1",false],["□","1",false],["□","1",false],["□","1",false],["□","1",false],["□","1",false],["□","1",false],["□","1",false],["□","1",false],["□","1",false],["□","1",false],["□","1",false],["□","1",false],["■","1",false],["■","1",false],["■","1",false],["■","1",false],["■","1",false],["■","1",false],["■","1",false],["■","1",false],["■","1",false],["■","1",false],["■","1",false],["■","1",false],["■","1",false],["■","1",false],["■","1",false],["■","1",false],["■","1",false],["■","1",false],["■","1",false],["■","1",false],["■","1",false],["■","1",false],["■","1",false],["■","1",false],["■","1",false],["■","1",false],["■","1",false],["■","1",false],["■","1",false],["■","1",false],["■","1",false],["■","1",false],["■","1",false],["■","1",false],["■","1",false],["■","1",false],["■","1",false],["■","1",false],["□","1",false],["□","1",false],["□","1",false],["□","1",false],["□","1",false],["□","1",false],["□","1",false],["□","1",false],["□","1",false],["□","1",false],["□","1",false],["□","1",false],["□","1",false],["□","1",false],["□","1",false],["□","1",false],["□","1",false],["□","1",false],["□","1",false],["□","1",false],["□","1",false],["□","1",false],["□","1",false],["□","1",false],["□","1",false],["□","1",false],["□","1",false],["□","1",false],["□","1",false],["□","1",false],["□","1",false],["□","1",false],["□","1",false],["□","1",false],["□","1",false],["□","1",false],["□","1",false],["□","1",false],["□","1",false],["■","1",false],["■","1",false],["■","1",false],["■","1",false],["■","1",false],["■","1",false],["■","1",false],["■","1",false],["■","1",false],["■","1",false],["■","1",false],["■","1",false],["■","1",false],["■","1",false],["■","1",false],["■","1",false],["■","1",false],["■","1",false],["■","1",false],["■","1",false],["■","1",false],["■","1",false],["■","1",false],["■","1",false],["■","1",false],["■","1",false],["■","1",false],["■","1",false],["■","1",false],["■","1",false],["■","1",false],["■","1",false],["■","1",false],["■","1",false],["■","1",false],["■","1",false],["■","1",false],["■","1",false],["□","1",false],["□","1",false],["□","1",false],["□","1",false],["□","1",false],["□","1",false],["□","1",false],["□","1",false],["□","1",false],["□","1",false],["□","1",false],["□","1",false],["□","1",false],["□","1",false],["□","1",false],["□","1",false],["□","1",false],["□","1",false],["□","1",false],["□","1",false],["□","1",false],["□","1",false],["□","1",false],["□","1",false],["□","1",false],["□","1",false],["□","1",false],["□","1",false],["□","1",false],["□","1",false],["□","1",false],["□","1",false],["□","1",false],["□","1",false],["□","1",false],["□","1",false],["□","1",false],["□","1",false],["□","1",false],["■","1",false],["■","1",false],["■","1",false],["■","1",false],["■","1",false],["■","1",false],["■","1",false],["■","1",false],["■","1",false],["■","1",false],["■","1",false],["■","1",false],["■","1",false],["■","1",false],["■","1",false],["■","1",false],["■","1",false],["■","1",false],["■","1",false],["■","1",false],["■","1",false],["■","1",false],["■","1",false],["■","1",false],["■","1",false],["■","1",false],["■","1",false],["■","1",false],["■","1",false],["■","1",false],["■","1",false],["■","1",false],["■","1",false],["■","1",false],["■","1",false],["■","1",false],["■","1",false],["■","1",false],["□","1",false],["□","1",false],["□","1",false],["□","1",false],["□","1",false],["□","1",false],["□","1",false],["□","1",false],["□","1",false],["□","1",false],["□","1",false],["□","1",false],["□","1",false],["□","1",false],["□","1",false],["□","1",false],["□","1",false],["□","1",false],["□","1",false],["□","1",false],["□","1",false],["□","1",false],["□","1",false],["□","1",false],["□","1",false],["□","1",false],["□","1",false],["□","1",false],["□","1",false],["□","1",false],["□","1",false],["□","1",false],["□","1",false],["□","1",false],["□","1",false],["□","1",false],["□","1",false],["□","1",false],["□","1",false],["■","1",false],["■","1",false],["■","1",false],["■","1",false],["■","1",false],["■","1",false],["■","1",false],["■","1",false],["■","1",false],["■","1",false],["■","1",false],["■","1",false],["■","1",false],["■","1",false],["■","1",false],["■","1",false],["■","1",false],["■","1",false],["■","1",false],["■","1",false],["■","1",false],["■","1",false],["■","1",false],["■","1",false],["■","1",false],["■","1",false],["■","1",false],["■","1",false],["■","1",false],["■","1",false],["■","1",false],["■","1",false],["■","1",false],["■","1",false],["■","1",false],["■","1",false],["■","1",false],["■","1",false],["□","1",false],["□","1",false],["□","1",false],["□","1",false],["□","1",false],["□","1",false],["□","1",false],["□","1",false],["□","1",false],["□","1",false],["□","1",false],["□","1",false],["□","1",false],["□","1",false],["□","1",false],["□","1",false],["□","1",false],["□","1",false],["□","1",false],["□","1",false],["□","1",false],["□","1",false],["□","1",false],["□","1",false],["□","1",false],["□","1",false],["□","1",false],["□","1",false],["□","1",false],["□","1",false],["□","1",false],["□","1",false],["□","1",false],["□","1",false],["□","1",false],["□","1",false],["□","1",false],["□","1",false],["□","1",false],["■","1",false],["■","1",false],["■","1",false],["■","1",false],["■","1",false],["■","1",false],["■","1",false],["■","1",false],["■","1",false],["■","1",false],["■","1",false],["■","1",false],["■","1",false],["■","1",false],["■","1",false],["■","1",false],["■","1",false],["■","1",false],["■","1",false],["■","1",false],["■","1",false],["■","1",false],["■","1",false],["■","1",false],["■","1",false],["■","1",false],["■","1",false],["■","1",false],["■","1",false],["■","1",false],["■","1",false],["■","1",false],["■","1",false],["■","1",false],["■","1",false],["■","1",false],["■","1",false],["■","1",false],["□","1",false],["□","1",false],["□","1",false],["□","1",false],["□","1",false],["□","1",false],["□","1",false],["□","1",false],["□","1",false],["□","1",false],["□","1",false],["□","1",false],["□","1",false],["□","1",false],["□","1",false],["□","1",false],["□","1",false],["■","1",false],["■","1",false],["□","1",false],["□","1",false],["■","1",false],["■","1",false],["□","1",false],["□","1",false],["■","1",false],["■","1",false],["□","1",false],["□","1",false],["■","1",false],["■","1",false],["□","1",false],["□","1",false],["■","1",false],["■","1",false],["□","1",false],["□","1",false],["■","1",false],["■","1",false],["□","1",false],["□","1",false],["■","1",false],["■","1",false],["□","1",false],["□","1",false],["■","1",false],["■","1",false],["□","1",false],["□","1",false],["■","1",false],["■","1",false],["□","1",false],["□","1",false],["■","1",false],["■","1",false],["□","1",false],["□","1",false],["■","1",false],["■","1",false],["□","1",false],["□","1",false],["■","1",false],["■","1",false],["□","1",false],["□","1",false],["■","1",false],["■","1",false],["□","1",false],["□","1",false],["■","1",false],["■","1",false],["□","1",false],["□","1",false],["■","1",false],["■","1",false],["□","1",false],["□","1",false],["■","1",false],["■","1",false],["□","1",false],["□","1",false],["■","1",false],["■","1",false],["□","1",false],["□","1",false],["■","1",false],["■","1",false],["□","1",false],["□","1",false],["■","1",false],["■","1",false],["□","1",false],["□","1",false],["■","1",false],["■","1",false],["□","1",false],["□","1",false],["■","1",false],["■","1",false],["□","1",false],["□","1",false],["■","1",false],["■","1",false],["□","1",false],["□","1",false],["■","1",false],["■","1",false],["□","1",false],["□","1",false],["■","1",false],["■","1",false],["□","1",false],["□","1",false],["■","1",false],["■","1",false],["□","1",false],["□","1",false],["■","1",false],["■","1",false],["□","1",false],["□","1",false],["■","1",false],["■","1",false],["□","1",false],["□","1",false],["■","1",false],["■","1",false],["□","1",false],["□","1",false],["■","1",false],["■","1",false],["□","1",false],["□","1",false],["■","1",false],["■","1",false],["□","1",false],["□","1",false],["■","1",false],["■","1",false],["□","1",false],["□","1",false],["■","1",false],["■","1",false],["□","1",false],["□","1",false],["■","1",false],["■","1",false],["□","1",false],["□","1",false],["■","1",false],["■","1",false],["□","1",false],["□","1",false],["■","1",false],["■","1",false],["□","1",false],["□","1",false],["□","1",false],["□","1",false],["□","1",false],["□","1",false]],"grow-shrink":[["▫","1",false],["▫","1",false],["▫","1",false],["▫","1",false],["▫","1",false],["▫","1",false],["▫","1",false],["▫","1",false],["▫","1",false],["▫","1",false],["▫","1",false],["▫","1",false],["▫","1",false],["▫","1",false],["▫","1",false],["▫","1",false],["▫","1",false],["▫","1",false],["▫","1",false],["▫","1",false],["▫","1",false],["▫","1",false],["▫","1",false],["▫","1",false],["▫","1",false],["▫","1",false],["▫","1",false],["▫","1",false],["▪","1",false],["▪","1",false],["▪","1",false],["▪","1",false],["▪","1",false],["▪","1",false],["▪","1",false],["▪","1",false],["▪","1",false],["▪","1",false],["▪","1",false],["▪","1",false],["▪","1",false],["▪","1",false],["■","1",false],["■","1",false],["■","1",false],["■","1",false],["■","1",false],["■","1",false],["■","1",false],["■","1",false],["■","1",false],["■","1",false],["■","1",false],["■","1",false],["■","1",false],["■","1",false],["▪","1",false],["▪","1",false],["▪","1",false],["▪","1",false],["▪","1",false],["▪","1",false],["▪","1",false],["▪","1",false],["▪","1",false],["▪","1",false],["▪","1",false],["▪","1",false],["▪","1",false],["▪","1",false],["▫","1",false],["▫","1",false],["▫","1",false],["▫","1",false],["▫","1",false],["▫","1",false],["▫","1",false],["▫","1",false],["▫","1",false],["▫","1",false],["▫","1",false],["▫","1",false],["▫","1",false],["▫","1",false],["▫","1",false],["▫","1",false],["▫","1",false],["▫","1",false],["▫","1",false],["▫","1",false],["▫","1",false],["▫","1",false],["▫","1",false],["▫","1",false],["▫","1",false],["▫","1",false],["▫","1",false],["▪","1",false],["▪","1",false],["▪","1",false],["▪","1",false],["▪","1",false],["▪","1",false],["▪","1",false],["▪","1",false],["▪","1",false],["▪","1",false],["▪","1",false],["▪","1",false],["▪","1",false],["▪","1",false],["■","1",false],["■","1",false],["■","1",false],["■","1",false],["■","1",false],["■","1",false],["■","1",false],["■","1",false],["■","1",false],["■","1",false],["■","1",false],["■","1",false],["■","1",false],["■","1",false],["▪","1",false],["▪","1",false],["▪","1",false],["▪","1",false],["▪","1",false],["▪","1",false],["▪","1",false],["▪","1",false],["▪","1",false],["▪","1",false],["▪","1",false],["▪","1",false],["▪","1",false],["▪","1",false],["▫","1",false],["▫","1",false],["▫","1",false],["▫","1",false],["▫","1",false],["▫","1",false],["▫","1",false],["▫","1",false],["▫","1",false],["▫","1",false],["▫","1",false],["▫","1",false],["▫","1",false],["▫","1",false],["▫","1",false],["▫","1",false],["▫","1",false],["▫","1",false],["▫","1",false],["▫","1",false],["▫","1",false],["▫","1",false],["▫","1",false],["▫","1",false],["▫","1",false],["▫","1",false],["▫","1",false],["▫","1",false],["▪","1",false],["▪","1",false],["▪","1",false],["▪","1",false],["▪","1",false],["▪","1",false],["▪","1",false],["▪","1",false],["▪","1",false],["▪","1",false],["▪","1",false],["▪","1",false],["▪","1",false],["■","1",false],["■","1",false],["■","1",false],["■","1",false],["■","1",false],["■","1",false],["■","1",false],["■","1",false],["■","1",false],["■","1",false],["■","1",false],["■","1",false],["■","1",false],["■","1",false],["▪","1",false],["▪","1",false],["▪","1",false],["▪","1",false],["▪","1",false],["▪","1",false],["▪","1",false],["▪","1",false],["▪","1",false],["▪","1",false],["▪","1",false],["▪","1",false],["▪","1",false],["▪","1",false],["▫","1",false],["▫","1",false],["▫","1",false],["▫","1",false],["▫","1",false],["▫","1",false],["▫","1",false],["▫","1",false],["▫","1",false],["▫","1",false],["▫","1",false],["▫","1",false],["▫","1",false],["▫","1",false],["▫","1",false],["▫","1",false],["▫","1",false],["▫","1",false],["▫","1",false],["▫","1",false],["▫","1",false],["▫","1",false],["▫","1",false],["▫","1",false],["▫","1",false],["▫","1",false],["▫","1",false],["▫","1",false],["▪","1",false],["▪","1",false],["▪","1",false],["▪","1",false],["▪","1",false],["▪","1",false],["▪","1",false],["▪","1",false],["▪","1",false],["▪","1",false],["▪","1",false],["▪","1",false],["▪","1",false],["▪","1",false],["■","1",false],["■","1",false],["■","1",false],["■","1",false],["■","1",false],["■","1",false],["■","1",false],["■","1",false],["■","1",false],["■","1",false],["■","1",false],["■","1",false],["■","1",false],["■","1",false],["▪","1",false],["▪","1",false],["▪","1",false],["▪","1",false],["▪","1",false],["▪","1",false],["▪","1",false],["▪","1",false],["▪","1",false],["▪","1",false],["▪","1",false],["▪","1",false],["▪","1",false],["▫","1",false],["▫","1",false],["▫","1",false],["▫","1",false],["▫","1",false],["▫","1",false],["▫","1",false],["▫","1",false],["▫","1",false],["▫","1",false],["▫","1",false],["▫","1",false],["▫","1",false],["▫","1",false],["▫","1",false],["▫","1",false],["▫","1",false],["▫","1",false],["▫","1",false],["▫","1",false],["▫","1",false],["▫","1",false],["▫","1",false],["▫","1",false],["▫","1",false],["▫","1",false],["▫","1",false],["▫","1",false],["▪","1",false],["▪","1",false],["▪","1",false],["▪","1",false],["▪","1",false],["▪","1",false],["▪","1",false],["▪","1",false],["▪","1",false],["▪","1",false],["▪","1",false],["▪","1",false],["▪","1",false],["▪","1",false],["■","1",false],["■","1",false],["■","1",false],["■","1",false],["■","1",false],["■","1",false],["■","1",false],["■","1",false],["■","1",false],["■","1",false],["■","1",false],["■","1",false],["■","1",false],["■","1",false],["▪","1",false],["▪","1",false],["▪","1",false],["▪","1",false],["▪","1",false],["▪","1",false],["▪","1",false],["▪","1",false],["▪","1",false],["▪","1",false],["▪","1",false],["▪","1",false],["▪","1",false],["▪","1",false],["▫","1",false],["▫","1",false],["▫","1",false],["▫","1",false],["▫","1",false],["▫","1",false],["▫","1",false],["▫","1",false],["▫","1",false],["▫","1",false],["▫","1",false],["▫","1",false],["▫","1",false],["▫","1",false],["▫","1",false],["▫","1",false],["▫","1",false],["▫","1",false],["▫","1",false],["▫","1",false],["▫","1",false],["▫","1",false],["▫","1",false],["▫","1",false],["▫","1",false],["▫","1",false],["▫","1",false],["▪","1",false],["▪","1",false],["▪","1",false],["▪","1",false],["▪","1",false],["▪","1",false],["▪","1",false],["▪","1",false],["▪","1",false],["▪","1",false],["▪","1",false],["▪","1",false],["▪","1",false],["▪","1",false],["■","1",false],["■","1",false],["■","1",false],["■","1",false],["■","1",false],["■","1",false],["■","1",false],["■","1",false],["■","1",false],["■","1",false],["■","1",false],["■","1",false],["▫","1",false],["▫","1",false],["■","1",false],["▪","1",false],["▫","1",false],["▪","1",false],["■","1",false],["▫","1",false],["▫","1",false],["■","1",false],["▪","1",false],["▫","1",false],["▪","1",false],["■","1",false],["▫","1",false],["▫","1",false],["▪","1",false],["▪","1",false],["▫","1",false],["▫","1",false],["■","1",false],["▪","1",false],["▫","1",false],["▪","1",false],["■","1",false],["▫","1",false],["▫","1",false],["■","1",false],["▪","1",false],["▫","1",false],["▪","1",false],["■","1",false],["▫","1",false],["▫","1",false],["▪","1",false],["▪","1",false],["▫","1",false],["▫","1",false],["■","1",false],["▪","1",false],["▫","1",false],["▪","1",false],["■","1",false],["▫","1",false],["▫","1",false],["■","1",false],["▪","1",false],["▫","1",false],["▪","1",false],["■","1",false],["▫","1",false],["▫","1",false],["▪","1",false],["▪","1",false],["▫","1",false],["▫","1",false],["■","1",false],["▪","1",false],["▫","1",false],["▪","1",false],["■","1",false],["▫","1",false],["▫","1",false],["■","1",false],["▪","1",false],["▫","1",false],["▪","1",false],["■","1",false],["▫","1",false],["▫","1",false],["▪","1",false],["▪","1",false],["▫","1",false],["▫","1",false],["■","1",false],["▪","1",false],["▫","1",false],["▪","1",false],["■","1",false],["▫","1",false],["▫","1",false],["■","1",false],["▪","1",false],["▫","1",false],["▪","1",false],["■","1",false],["▫","1",false],["▫","1",false],["▪","1",false],["▪","1",false],["▫","1",false],["▫","1",false],["■","1",false],["▪","1",false],["▫","1",false],["▪","1",false],["■","1",false],["▫","1",false],["▫","1",false],["■","1",false],["▪","1",false],["▫","1",false],["▪","1",false],["■","1",false],["▫","1",false],["▫","1",false],["▪","1",false],["▪","1",false],["▫","1",false],["▫","1",false],["■","1",false],["▪","1",false],["▫","1",false],["▪","1",false],["■","1",false],["▫","1",false],["▫","1",false],["■","1",false],["▪","1",false],["▫","1",false],["▪","1",false],["■","1",false],["▫","1",false],["▫","1",false],["▪","1",false],["▪","1",false],["▫","1",false],["▫","1",false],["■","1",false],["▪","1",false],["▫","1",false],["▪","1",false],["■","1",false],["▫","1",false],["▫","1",false],["■","1",false],["▪","1",false],["▫","1",false],["▪","1",false],["■","1",false],["▫","1",false],["▫","1",false],["▫","1",false],["▪","1",false],["▪","1",false],["▫","1",false]],"quadrant-orbit":[["▘","1",false],["▘","1",false],["▘","1",false],["▘","1",false],["▘","1",false],["▘","1",false],["▘","1",false],["▘","1",false],["▘","1",false],["▘","1",false],["▘","1",false],["▘","1",false],["▘","1",false],["▝","1",false],["▝","1",false],["▝","1",false],["▝","1",false],["▝","1",false],["▝","1",false],["▝","1",false],["▝","1",false],["▝","1",false],["▝","1",false],["▝","1",false],["▝","1",false],["▗","1",false],["▗","1",false],["▗","1",false],["▗","1",false],["▗","1",false],["▗","1",false],["▗","1",false],["▗","1",false],["▗","1",false],["▗","1",false],["▗","1",false],["▗","1",false],["▖","1",false],["▖","1",false],["▖","1",false],["▖","1",false],["▖","1",false],["▖","1",false],["▖","1",false],["▖","1",false],["▖","1",false],["▖","1",false],["▖","1",false],["▖","1",false],["▖","1",false],["▘","1",false],["▘","1",false],["▘","1",false],["▘","1",false],["▘","1",false],["▘","1",false],["▘","1",false],["▘","1",false],["▘","1",false],["▘","1",false],["▘","1",false],["▘","1",false],["▝","1",false],["▝","1",false],["▝","1",false],["▝","1",false],["▝","1",false],["▝","1",false],["▝","1",false],["▝","1",false],["▝","1",false],["▝","1",false],["▝","1",false],["▝","1",false],["▗","1",false],["▗","1",false],["▗","1",false],["▗","1",false],["▗","1",false],["▗","1",false],["▗","1",false],["▗","1",false],["▗","1",false],["▗","1",false],["▗","1",false],["▗","1",false],["▗","1",false],["▖","1",false],["▖","1",false],["▖","1",false],["▖","1",false],["▖","1",false],["▖","1",false],["▖","1",false],["▖","1",false],["▖","1",false],["▖","1",false],["▖","1",false],["▖","1",false],["▘","1",false],["▘","1",false],["▘","1",false],["▘","1",false],["▘","1",false],["▘","1",false],["▘","1",false],["▘","1",false],["▘","1",false],["▘","1",false],["▘","1",false],["▘","1",false],["▝","1",false],["▝","1",false],["▝","1",false],["▝","1",false],["▝","1",false],["▝","1",false],["▝","1",false],["▝","1",false],["▝","1",false],["▝","1",false],["▝","1",false],["▝","1",false],["▝","1",false],["▗","1",false],["▗","1",false],["▗","1",false],["▗","1",false],["▗","1",false],["▗","1",false],["▗","1",false],["▗","1",false],["▗","1",false],["▗","1",false],["▗","1",false],["▗","1",false],["▖","1",false],["▖","1",false],["▖","1",false],["▖","1",false],["▖","1",false],["▖","1",false],["▖","1",false],["▖","1",false],["▖","1",false],["▖","1",false],["▖","1",false],["▖","1",false],["▘","1",false],["▘","1",false],["▘","1",false],["▘","1",false],["▘","1",false],["▘","1",false],["▘","1",false],["▘","1",false],["▘","1",false],["▘","1",false],["▘","1",false],["▘","1",false],["▝","1",false],["▝","1",false],["▝","1",false],["▝","1",false],["▝","1",false],["▝","1",false],["▝","1",false],["▝","1",false],["▝","1",false],["▝","1",false],["▝","1",false],["▝","1",false],["▝","1",false],["▗","1",false],["▗","1",false],["▗","1",false],["▗","1",false],["▗","1",false],["▗","1",false],["▗","1",false],["▗","1",false],["▗","1",false],["▗","1",false],["▗","1",false],["▗","1",false],["▖","1",false],["▖","1",false],["▖","1",false],["▖","1",false],["▖","1",false],["▖","1",false],["▖","1",false],["▖","1",false],["▖","1",false],["▖","1",false],["▖","1",false],["▖","1",false],["▘","1",false],["▘","1",false],["▘","1",false],["▘","1",false],["▘","1",false],["▘","1",false],["▘","1",false],["▘","1",false],["▘","1",false],["▘","1",false],["▘","1",false],["▘","1",false],["▘","1",false],["▝","1",false],["▝","1",false],["▝","1",false],["▝","1",false],["▝","1",false],["▝","1",false],["▝","1",false],["▝","1",false],["▝","1",false],["▝","1",false],["▝","1",false],["▝","1",false],["▗","1",false],["▗","1",false],["▗","1",false],["▗","1",false],["▗","1",false],["▗","1",false],["▗","1",false],["▗","1",false],["▗","1",false],["▗","1",false],["▗","1",false],["▗","1",false],["▖","1",false],["▖","1",false],["▖","1",false],["▖","1",false],["▖","1",false],["▖","1",false],["▖","1",false],["▖","1",false],["▖","1",false],["▖","1",false],["▖","1",false],["▖","1",false],["▖","1",false],["▘","1",false],["▘","1",false],["▘","1",false],["▘","1",false],["▘","1",false],["▘","1",false],["▘","1",false],["▘","1",false],["▘","1",false],["▘","1",false],["▘","1",false],["▘","1",false],["▝","1",false],["▝","1",false],["▝","1",false],["▝","1",false],["▝","1",false],["▝","1",false],["▝","1",false],["▝","1",false],["▝","1",false],["▝","1",false],["▝","1",false],["▝","1",false],["▗","1",false],["▗","1",false],["▗","1",false],["▗","1",false],["▗","1",false],["▗","1",false],["▗","1",false],["▗","1",false],["▗","1",false],["▗","1",false],["▗","1",false],["▗","1",false],["▗","1",false],["▖","1",false],["▖","1",false],["▖","1",false],["▖","1",false],["▖","1",false],["▖","1",false],["▖","1",false],["▖","1",false],["▖","1",false],["▖","1",false],["▖","1",false],["▖","1",false],["▘","1",false],["▘","1",false],["▘","1",false],["▘","1",false],["▘","1",false],["▘","1",false],["▘","1",false],["▘","1",false],["▘","1",false],["▘","1",false],["▘","1",false],["▘","1",false],["▝","1",false],["▝","1",false],["▝","1",false],["▝","1",false],["▝","1",false],["▝","1",false],["▝","1",false],["▝","1",false],["▝","1",false],["▝","1",false],["▝","1",false],["▝","1",false],["▗","1",false],["▗","1",false],["▗","1",false],["▗","1",false],["▗","1",false],["▗","1",false],["▗","1",false],["▗","1",false],["▗","1",false],["▗","1",false],["▗","1",false],["▗","1",false],["▗","1",false],["▖","1",false],["▖","1",false],["▖","1",false],["▖","1",false],["▖","1",false],["▖","1",false],["▖","1",false],["▖","1",false],["▖","1",false],["▖","1",false],["▖","1",false],["▖","1",false],["▘","1",false],["▘","1",false],["▘","1",false],["▘","1",false],["▘","1",false],["▘","1",false],["▘","1",false],["▘","1",false],["▘","1",false],["▘","1",false],["▘","1",false],["▘","1",false],["▝","1",false],["▝","1",false],["▝","1",false],["▝","1",false],["▝","1",false],["▝","1",false],["▝","1",false],["▝","1",false],["▝","1",false],["▝","1",false],["▝","1",false],["▝","1",false],["▝","1",false],["▗","1",false],["▗","1",false],["▗","1",false],["▗","1",false],["▗","1",false],["▗","1",false],["▗","1",false],["▗","1",false],["▗","1",false],["▗","1",false],["▗","1",false],["▗","1",false],["▖","1",false],["▖","1",false],["▖","1",false],["▖","1",false],["▖","1",false],["▖","1",false],["▖","1",false],["▖","1",false],["▖","1",false],["▖","1",false],["▖","1",false],["▖","1",false],["▘","1",false],["▘","1",false],["▘","1",false],["▘","1",false],["▘","1",false],["▘","1",false],["▖","1",false],["▘","1",false],["▗","1",false],["▖","1",false],["▝","1",false],["▗","1",false],["▘","1",false],["▝","1",false],["▖","1",false],["▝","1",false],["▗","1",false],["▘","1",false],["▝","1",false],["▖","1",false],["▘","1",false],["▗","1",false],["▘","1",false],["▝","1",false],["▖","1",false],["▘","1",false],["▗","1",false],["▖","1",false],["▝","1",false],["▗","1",false],["▘","1",false],["▗","1",false],["▖","1",false],["▝","1",false],["▗","1",false],["▘","1",false],["▝","1",false],["▖","1",false],["▝","1",false],["▗","1",false],["▘","1",false],["▝","1",false],["▖","1",false],["▘","1",false],["▗","1",false],["▖","1",false],["▝","1",false],["▖","1",false],["▘","1",false],["▗","1",false],["▖","1",false],["▝","1",false],["▗","1",false],["▘","1",false],["▗","1",false],["▖","1",false],["▝","1",false],["▗","1",false],["▘","1",false],["▝","1",false],["▖","1",false],["▘","1",false],["▗","1",false],["▘","1",false],["▝","1",false],["▖","1",false],["▘","1",false],["▗","1",false],["▖","1",false],["▝","1",false],["▖","1",false],["▘","1",false],["▗","1",false],["▖","1",false],["▝","1",false],["▗","1",false],["▘","1",false],["▝","1",false],["▖","1",false],["▝","1",false],["▗","1",false],["▘","1",false],["▝","1",false],["▖","1",false],["▘","1",false],["▗","1",false],["▘","1",false],["▝","1",false],["▖","1",false],["▘","1",false],["▗","1",false],["▖","1",false],["▝","1",false],["▗","1",false],["▘","1",false],["▗","1",false],["▖","1",false],["▝","1",false],["▗","1",false],["▘","1",false],["▝","1",false],["▖","1",false],["▝","1",false],["▗","1",false],["▘","1",false],["▝","1",false],["▖","1",false],["▘","1",false],["▗","1",false],["▖","1",false],["▝","1",false],["▖","1",false],["▘","1",false],["▗","1",false],["▖","1",false],["▝","1",false],["▗","1",false],["▘","1",false],["▗","1",false],["▖","1",false],["▝","1",false],["▗","1",false],["▘","1",false],["▝","1",false],["▖","1",false],["▘","1",false],["▗","1",false],["▘","1",false],["▝","1",false],["▖","1",false],["▘","1",false],["▗","1",false],["▖","1",false],["▝","1",false],["▖","1",false],["▘","1",false],["▗","1",false],["▖","1",false],["▝","1",false],["▗","1",false],["▘","1",false],["▝","1",false],["▖","1",false],["▝","1",false],["▗","1",false],["▘","1",false],["▘","1",false],["▘","1",false],["▘","1",false],["▖","1",false],["▘","1",false],["▗","1",false]],"crosshatch":[["▧","1",false],["▧","1",false],["▧","1",false],["▧","1",false],["▧","1",false],["▧","1",false],["▧","1",false],["▧","1",false],["▧","1",false],["▧","1",false],["▧","1",false],["▧","1",false],["▧","1",false],["▧","1",false],["▧","1",false],["▧","1",false],["▧","1",false],["▧","1",false],["▧","1",false],["▩","1",false],["▩","1",false],["▩","1",false],["▩","1",false],["▩","1",false],["▩","1",false],["▩","1",false],["▩","1",false],["▩","1",false],["▩","1",false],["▩","1",false],["▩","1",false],["▩","1",false],["▩","1",false],["▩","1",false],["▩","1",false],["▩","1",false],["▩","1",false],["▨","1",false],["▨","1",false],["▨","1",false],["▨","1",false],["▨","1",false],["▨","1",false],["▨","1",false],["▨","1",false],["▨","1",false],["▨","1",false],["▨","1",false],["▨","1",false],["▨","1",false],["▨","1",false],["▨","1",false],["▨","1",false],["▨","1",false],["▨","1",false],["▨","1",false],["▩","1",false],["▩","1",false],["▩","1",false],["▩","1",false],["▩","1",false],["▩","1",false],["▩","1",false],["▩","1",false],["▩","1",false],["▩","1",false],["▩","1",false],["▩","1",false],["▩","1",false],["▩","1",false],["▩","1",false],["▩","1",false],["▩","1",false],["▩","1",false],["▧","1",false],["▧","1",false],["▧","1",false],["▧","1",false],["▧","1",false],["▧","1",false],["▧","1",false],["▧","1",false],["▧","1",false],["▧","1",false],["▧","1",false],["▧","1",false],["▧","1",false],["▧","1",false],["▧","1",false],["▧","1",false],["▧","1",false],["▧","1",false],["▧","1",false],["▩","1",false],["▩","1",false],["▩","1",false],["▩","1",false],["▩","1",false],["▩","1",false],["▩","1",false],["▩","1",false],["▩","1",false],["▩","1",false],["▩","1",false],["▩","1",false],["▩","1",false],["▩","1",false],["▩","1",false],["▩","1",false],["▩","1",false],["▩","1",false],["▨","1",false],["▨","1",false],["▨","1",false],["▨","1",false],["▨","1",false],["▨","1",false],["▨","1",false],["▨","1",false],["▨","1",false],["▨","1",false],["▨","1",false],["▨","1",false],["▨","1",false],["▨","1",false],["▨","1",false],["▨","1",false],["▨","1",false],["▨","1",false],["▨","1",false],["▩","1",false],["▩","1",false],["▩","1",false],["▩","1",false],["▩","1",false],["▩","1",false],["▩","1",false],["▩","1",false],["▩","1",false],["▩","1",false],["▩","1",false],["▩","1",false],["▩","1",false],["▩","1",false],["▩","1",false],["▩","1",false],["▩","1",false],["▩","1",false],["▧","1",false],["▧","1",false],["▧","1",false],["▧","1",false],["▧","1",false],["▧","1",false],["▧","1",false],["▧","1",false],["▧","1",false],["▧","1",false],["▧","1",false],["▧","1",false],["▧","1",false],["▧","1",false],["▧","1",false],["▧","1",false],["▧","1",false],["▧","1",false],["▧","1",false],["▩","1",false],["▩","1",false],["▩","1",false],["▩","1",false],["▩","1",false],["▩","1",false],["▩","1",false],["▩","1",false],["▩","1",false],["▩","1",false],["▩","1",false],["▩","1",false],["▩","1",false],["▩","1",false],["▩","1",false],["▩","1",false],["▩","1",false],["▩","1",false],["▨","1",false],["▨","1",false],["▨","1",false],["▨","1",false],["▨","1",false],["▨","1",false],["▨","1",false],["▨","1",false],["▨","1",false],["▨","1",false],["▨","1",false],["▨","1",false],["▨","1",false],["▨","1",false],["▨","1",false],["▨","1",false],["▨","1",false],["▨","1",false],["▨","1",false],["▩","1",false],["▩","1",false],["▩","1",false],["▩","1",false],["▩","1",false],["▩","1",false],["▩","1",false],["▩","1",false],["▩","1",false],["▩","1",false],["▩","1",false],["▩","1",false],["▩","1",false],["▩","1",false],["▩","1",false],["▩","1",false],["▩","1",false],["▩","1",false],["▧","1",false],["▧","1",false],["▧","1",false],["▧","1",false],["▧","1",false],["▧","1",false],["▧","1",false],["▧","1",false],["▧","1",false],["▧","1",false],["▧","1",false],["▧","1",false],["▧","1",false],["▧","1",false],["▧","1",false],["▧","1",false],["▧","1",false],["▧","1",false],["▩","1",false],["▩","1",false],["▩","1",false],["▩","1",false],["▩","1",false],["▩","1",false],["▩","1",false],["▩","1",false],["▩","1",false],["▩","1",false],["▩","1",false],["▩","1",false],["▩","1",false],["▩","1",false],["▩","1",false],["▩","1",false],["▩","1",false],["▩","1",false],["▩","1",false],["▨","1",false],["▨","1",false],["▨","1",false],["▨","1",false],["▨","1",false],["▨","1",false],["▨","1",false],["▨","1",false],["▨","1",false],["▨","1",false],["▨","1",false],["▨","1",false],["▨","1",false],["▨","1",false],["▨","1",false],["▨","1",false],["▨","1",false],["▨","1",false],["▩","1",false],["▩","1",false],["▩","1",false],["▩","1",false],["▩","1",false],["▩","1",false],["▩","1",false],["▩","1",false],["▩","1",false],["▩","1",false],["▩","1",false],["▩","1",false],["▩","1",false],["▩","1",false],["▩","1",false],["▩","1",false],["▩","1",false],["▩","1",false],["▩","1",false],["▧","1",false],["▧","1",false],["▧","1",false],["▧","1",false],["▧","1",false],["▧","1",false],["▧","1",false],["▧","1",false],["▧","1",false],["▧","1",false],["▧","1",false],["▧","1",false],["▧","1",false],["▧","1",false],["▧","1",false],["▧","1",false],["▧","1",false],["▧","1",false],["▩","1",false],["▩","1",false],["▩","1",false],["▩","1",false],["▩","1",false],["▩","1",false],["▩","1",false],["▩","1",false],["▩","1",false],["▩","1",false],["▩","1",false],["▩","1",false],["▩","1",false],["▩","1",false],["▩","1",false],["▩","1",false],["▩","1",false],["▩","1",false],["▩","1",false],["▨","1",false],["▨","1",false],["▨","1",false],["▨","1",false],["▨","1",false],["▨","1",false],["▨","1",false],["▨","1",false],["▨","1",false],["▨","1",false],["▨","1",false],["▨","1",false],["▨","1",false],["▨","1",false],["▨","1",false],["▨","1",false],["▨","1",false],["▨","1",false],["▩","1",false],["▩","1",false],["▩","1",false],["▩","1",false],["▩","1",false],["▩","1",false],["▩","1",false],["▩","1",false],["▩","1",false],["▩","1",false],["▩","1",false],["▩","1",false],["▩","1",false],["▩","1",false],["▩","1",false],["▩","1",false],["▩","1",false],["▩","1",false],["▩","1",false],["▧","1",false],["▧","1",false],["▧","1",false],["▧","1",false],["▧","1",false],["▧","1",false],["▧","1",false],["▧","1",false],["▧","1",false],["▧","1",false],["▧","1",false],["▧","1",false],["▧","1",false],["▧","1",false],["▧","1",false],["▧","1",false],["▧","1",false],["▧","1",false],["▩","1",false],["▩","1",false],["▩","1",false],["▩","1",false],["▩","1",false],["▩","1",false],["▩","1",false],["▩","1",false],["▩","1",false],["▩","1",false],["▩","1",false],["▩","1",false],["▧","1",false],["▩","1",false],["▨","1",false],["▩","1",false],["▧","1",false],["▩","1",false],["▨","1",false],["▩","1",false],["▩","1",false],["▨","1",false],["▩","1",false],["▧","1",false],["▩","1",false],["▨","1",false],["▩","1",false],["▧","1",false],["▩","1",false],["▨","1",false],["▩","1",false],["▧","1",false],["▩","1",false],["▨","1",false],["▩","1",false],["▧","1",false],["▩","1",false],["▨","1",false],["▩","1",false],["▧","1",false],["▩","1",false],["▨","1",false],["▩","1",false],["▧","1",false],["▨","1",false],["▩","1",false],["▧","1",false],["▩","1",false],["▨","1",false],["▩","1",false],["▧","1",false],["▩","1",false],["▨","1",false],["▩","1",false],["▧","1",false],["▩","1",false],["▨","1",false],["▩","1",false],["▧","1",false],["▩","1",false],["▨","1",false],["▩","1",false],["▧","1",false],["▩","1",false],["▨","1",false],["▩","1",false],["▧","1",false],["▩","1",false],["▩","1",false],["▧","1",false],["▩","1",false],["▨","1",false],["▩","1",false],["▧","1",false],["▩","1",false],["▨","1",false],["▩","1",false],["▧","1",false],["▩","1",false],["▨","1",false],["▩","1",false],["▧","1",false],["▩","1",false],["▨","1",false],["▩","1",false],["▧","1",false],["▩","1",false],["▨","1",false],["▩","1",false],["▧","1",false],["▩","1",false],["▨","1",false],["▧","1",false],["▩","1",false],["▨","1",false],["▩","1",false],["▧","1",false],["▩","1",false],["▨","1",false],["▩","1",false],["▧","1",false],["▩","1",false],["▨","1",false],["▩","1",false],["▧","1",false],["▩","1",false],["▨","1",false],["▩","1",false],["▧","1",false],["▩","1",false],["▨","1",false],["▩","1",false],["▧","1",false],["▩","1",false],["▨","1",false],["▩","1",false],["▩","1",false],["▨","1",false],["▩","1",false],["▧","1",false],["▩","1",false],["▨","1",false],["▩","1",false],["▧","1",false],["▩","1",false],["▨","1",false],["▩","1",false],["▧","1",false],["▩","1",false],["▨","1",false],["▩","1",false],["▧","1",false],["▩","1",false],["▨","1",false],["▩","1",false],["▧","1",false],["▩","1",false],["▨","1",false],["▩","1",false],["▧","1",false],["▨","1",false],["▩","1",false],["▧","1",false],["▩","1",false],["▨","1",false],["▩","1",false],["▧","1",false],["▩","1",false],["▨","1",false],["▩","1",false],["▧","1",false],["▩","1",false],["▧","1",false],["▧","1",false],["▧","1",false],["▩","1",false],["▩","1",false],["▨","1",false]],"density-wave":[["░","1",false],["░","1",false],["░","1",false],["░","1",false],["░","1",false],["░","1",false],["░","1",false],["░","1",false],["░","1",false],["░","1",false],["░","1",false],["░","1",false],["░","1",false],["░","1",false],["░","1",false],["░","1",false],["░","1",false],["░","1",false],["░","1",false],["░","1",false],["░","1",false],["░","1",false],["░","1",false],["░","1",false],["░","1",false],["░","1",false],["░","1",false],["░","1",false],["░","1",false],["░","1",false],["░","1",false],["░","1",false],["░","1",false],["░","1",false],["░","1",false],["░","1",false],["░","1",false],["▒","1",false],["▒","1",false],["▒","1",false],["▒","1",false],["▒","1",false],["▒","1",false],["▒","1",false],["▒","1",false],["▒","1",false],["▒","1",false],["▒","1",false],["▒","1",false],["▒","1",false],["▓","1",false],["▓","1",false],["▓","1",false],["▓","1",false],["▓","1",false],["▓","1",false],["▓","1",false],["▓","1",false],["▓","1",false],["▓","1",false],["▓","1",false],["▓","1",false],["█","1",false],["█","1",false],["█","1",false],["█","1",false],["█","1",false],["█","1",false],["█","1",false],["█","1",false],["█","1",false],["█","1",false],["█","1",false],["█","1",false],["▓","1",false],["▓","1",false],["▓","1",false],["▓","1",false],["▓","1",false],["▓","1",false],["▓","1",false],["▓","1",false],["▓","1",false],["▓","1",false],["▓","1",false],["▓","1",false],["▓","1",false],["▒","1",false],["▒","1",false],["▒","1",false],["▒","1",false],["▒","1",false],["▒","1",false],["▒","1",false],["▒","1",false],["▒","1",false],["▒","1",false],["▒","1",false],["▒","1",false],["░","1",false],["░","1",false],["░","1",false],["░","1",false],["░","1",false],["░","1",false],["░","1",false],["░","1",false],["░","1",false],["░","1",false],["░","1",false],["░","1",false],["░","1",false],["░","1",false],["░","1",false],["░","1",false],["░","1",false],["░","1",false],["░","1",false],["░","1",false],["░","1",false],["░","1",false],["░","1",false],["░","1",false],["░","1",false],["░","1",false],["░","1",false],["░","1",false],["░","1",false],["░","1",false],["░","1",false],["░","1",false],["░","1",false],["░","1",false],["░","1",false],["░","1",false],["░","1",false],["▒","1",false],["▒","1",false],["▒","1",false],["▒","1",false],["▒","1",false],["▒","1",false],["▒","1",false],["▒","1",false],["▒","1",false],["▒","1",false],["▒","1",false],["▒","1",false],["▓","1",false],["▓","1",false],["▓","1",false],["▓","1",false],["▓","1",false],["▓","1",false],["▓","1",false],["▓","1",false],["▓","1",false],["▓","1",false],["▓","1",false],["▓","1",false],["█","1",false],["█","1",false],["█","1",false],["█","1",false],["█","1",false],["█","1",false],["█","1",false],["█","1",false],["█","1",false],["█","1",false],["█","1",false],["█","1",false],["█","1",false],["▓","1",false],["▓","1",false],["▓","1",false],["▓","1",false],["▓","1",false],["▓","1",false],["▓","1",false],["▓","1",false],["▓","1",false],["▓","1",false],["▓","1",false],["▓","1",false],["▒","1",false],["▒","1",false],["▒","1",false],["▒","1",false],["▒","1",false],["▒","1",false],["▒","1",false],["▒","1",false],["▒","1",false],["▒","1",false],["▒","1",false],["▒","1",false],["░","1",false],["░","1",false],["░","1",false],["░","1",false],["░","1",false],["░","1",false],["░","1",false],["░","1",false],["░","1",false],["░","1",false],["░","1",false],["░","1",false],["░","1",false],["░","1",false],["░","1",false],["░","1",false],["░","1",false],["░","1",false],["░","1",false],["░","1",false],["░","1",false],["░","1",false],["░","1",false],["░","1",false],["░","1",false],["░","1",false],["░","1",false],["░","1",false],["░","1",false],["░","1",false],["░","1",false],["░","1",false],["░","1",false],["░","1",false],["░","1",false],["░","1",false],["░","1",false],["▒","1",false],["▒","1",false],["▒","1",false],["▒","1",false],["▒","1",false],["▒","1",false],["▒","1",false],["▒","1",false],["▒","1",false],["▒","1",false],["▒","1",false],["▒","1",false],["▒","1",false],["▓","1",false],["▓","1",false],["▓","1",false],["▓","1",false],["▓","1",false],["▓","1",false],["▓","1",false],["▓","1",false],["▓","1",false],["▓","1",false],["▓","1",false],["▓","1",false],["█","1",false],["█","1",false],["█","1",false],["█","1",false],["█","1",false],["█","1",false],["█","1",false],["█","1",false],["█","1",false],["█","1",false],["█","1",false],["█","1",false],["▓","1",false],["▓","1",false],["▓","1",false],["▓","1",false],["▓","1",false],["▓","1",false],["▓","1",false],["▓","1",false],["▓","1",false],["▓","1",false],["▓","1",false],["▓","1",false],["▓","1",false],["▒","1",false],["▒","1",false],["▒","1",false],["▒","1",false],["▒","1",false],["▒","1",false],["▒","1",false],["▒","1",false],["▒","1",false],["▒","1",false],["▒","1",false],["▒","1",false],["░","1",false],["░","1",false],["░","1",false],["░","1",false],["░","1",false],["░","1",false],["░","1",false],["░","1",false],["░","1",false],["░","1",false],["░","1",false],["░","1",false],["░","1",false],["░","1",false],["░","1",false],["░","1",false],["░","1",false],["░","1",false],["░","1",false],["░","1",false],["░","1",false],["░","1",false],["░","1",false],["░","1",false],["░","1",false],["░","1",false],["░","1",false],["░","1",false],["░","1",false],["░","1",false],["░","1",false],["░","1",false],["░","1",false],["░","1",false],["░","1",false],["░","1",false],["░","1",false],["▒","1",false],["▒","1",false],["▒","1",false],["▒","1",false],["▒","1",false],["▒","1",false],["▒","1",false],["▒","1",false],["▒","1",false],["▒","1",false],["▒","1",false],["▒","1",false],["▓","1",false],["▓","1",false],["▓","1",false],["▓","1",false],["▓","1",false],["▓","1",false],["▓","1",false],["▓","1",false],["▓","1",false],["▓","1",false],["▓","1",false],["▓","1",false],["█","1",false],["█","1",false],["█","1",false],["█","1",false],["█","1",false],["█","1",false],["█","1",false],["█","1",false],["█","1",false],["█","1",false],["█","1",false],["█","1",false],["█","1",false],["▓","1",false],["▓","1",false],["▓","1",false],["▓","1",false],["▓","1",false],["▓","1",false],["▓","1",false],["▓","1",false],["▓","1",false],["▓","1",false],["▓","1",false],["▓","1",false],["▒","1",false],["▒","1",false],["▒","1",false],["▒","1",false],["▒","1",false],["▒","1",false],["▒","1",false],["▒","1",false],["▒","1",false],["▒","1",false],["▒","1",false],["▒","1",false],["░","1",false],["░","1",false],["░","1",false],["░","1",false],["░","1",false],["░","1",false],["▒","1",false],["░","1",false],["░","1",false],["▒","1",false],["█","1",false],["▓","1",false],["░","1",false],["░","1",false],["▒","1",false],["█","1",false],["▓","1",false],["░","1",false],["░","1",false],["▒","1",false],["▓","1",false],["▓","1",false],["░","1",false],["░","1",false],["▒","1",false],["▓","1",false],["▓","1",false],["▒","1",false],["░","1",false],["░","1",false],["▓","1",false],["▓","1",false],["▒","1",false],["░","1",false],["░","1",false],["▓","1",false],["█","1",false],["▒","1",false],["░","1",false],["░","1",false],["▓","1",false],["█","1",false],["▒","1",false],["░","1",false],["░","1",false],["▒","1",false],["█","1",false],["▒","1",false],["░","1",false],["░","1",false],["▒","1",false],["█","1",false],["▓","1",false],["░","1",false],["░","1",false],["▒","1",false],["█","1",false],["▓","1",false],["░","1",false],["░","1",false],["▒","1",false],["▓","1",false],["▓","1",false],["░","1",false],["░","1",false],["▒","1",false],["▓","1",false],["▓","1",false],["▒","1",false],["░","1",false],["▒","1",false],["▓","1",false],["▓","1",false],["▒","1",false],["░","1",false],["░","1",false],["▓","1",false],["█","1",false],["▒","1",false],["░","1",false],["░","1",false],["▓","1",false],["█","1",false],["▒","1",false],["░","1",false],["░","1",false],["▓","1",false],["█","1",false],["▒","1",false],["░","1",false],["░","1",false],["▒","1",false],["█","1",false],["▓","1",false],["░","1",false],["░","1",false],["▒","1",false],["█","1",false],["▓","1",false],["░","1",false],["░","1",false],["▒","1",false],["█","1",false],["▓","1",false],["░","1",false],["░","1",false],["▒","1",false],["▓","1",false],["▓","1",false],["▒","1",false],["░","1",false],["▒","1",false],["▓","1",false],["▓","1",false],["▒","1",false],["░","1",false],["░","1",false],["▓","1",false],["▓","1",false],["▒","1",false],["░","1",false],["░","1",false],["▓","1",false],["█","1",false],["▒","1",false],["░","1",false],["░","1",false],["▓","1",false],["█","1",false],["▒","1",false],["░","1",false],["░","1",false],["▒","1",false],["█","1",false],["▒","1",false],["░","1",false],["░","1",false],["▒","1",false],["█","1",false],["▓","1",false],["░","1",false],["░","1",false],["▒","1",false],["█","1",false],["▓","1",false],["░","1",false],["░","1",false],["░","1",false],["░","1",false],["▒","1",false],["▓","1",false],["░","1",false]],"seed":[["▪","0.3",false],["▪","0.3",false],["▪","0.3",false],["▪","0.3",false],["▪","0.37",false],["▪","0.37",false],["▪","0.37",false],["▪","0.43999999999999995",false],["▪","0.43999999999999995",false],["▪","0.43999999999999995",false],["▪","0.51",false],["▪","0.51",false],["▪","0.51",false],["▪","0.58",false],["▪","0.58",false],["▪","0.58",false],["▪","0.6499999999999999",false],["▪","0.6499999999999999",false],["▪","0.6499999999999999",false],["▪","0.72",false],["▪","0.72",false],["▪","0.72",false],["▪","0.7899999999999999",false],["▪","0.7899999999999999",false],["▪","0.7899999999999999",false],["▪","0.8599999999999999",false],["▪","0.8599999999999999",false],["▪","0.8599999999999999",false],["▪","0.9299999999999999",false],["▪","0.9299999999999999",false],["▪","0.9299999999999999",false],["▪","1",false],["▪","1",false],["▪","1",false],["▪","1",false],["▪","1",false],["▪","1",false],["▪","1",false],["▪","1",false],["▪","1",false],["▪","1",false],["▪","1",false],["▪","1",false],["▪","1",false],["▪","1",false],["▪","1",false],["▪","1",false],["▪","1",false],["▪","1",false],["▪","1",false],["▪","1",false],["▪","1",false],["▪","1",false],["▪","1",false],["▪","1",false],["▪","1",false],["▪","1",false],["▪","1",false],["▪","1",false],["▪","1",false],["▪","1",false],["▪","1",false],["▪","1",false],["▪","1",false],["▪","1",false],["▪","1",false],["▪","1",false],["▪","1",false],["▪","1",false],["▪","1",false],["▪","1",false],["▪","1",false],["▪","1",false],["▪","1",false],["▪","1",false],["▪","1",false],["▪","1",false],["▪","1",false],["▪","1",false],["▪","1",false],["▪","1",false],["▪","1",false],["▪","1",false],["▪","1",false],["▪","1",false],["▪","1",false],["▪","1",false],["▪","1",false],["▪","1",false],["▪","1",false],["▪","1",false],["▪","1",false],["▪","1",false],["▪","1",false],["▪","1",false],["▪","1",false],["▪","0.9588344000000002",false],["▪","0.9588344000000002",false],["▪","0.9588344000000002",false],["▪","0.9193152",false],["▪","0.9193152",false],["▪","0.9193152",false],["▪","0.8814088",false],["▪","0.8814088",false],["▪","0.8814088",false],["▪","0.8450815999999999",false],["▪","0.8450815999999999",false],["▪","0.8450815999999999",false],["▪","0.8103",false],["▪","0.8103",false],["▪","0.8103",false],["▪","0.7770304000000001",false],["▪","0.7770304000000001",false],["▪","0.7770304000000001",false],["▪","0.7452391999999999",false],["▪","0.7452391999999999",false],["▪","0.7452391999999999",false],["▪","0.7148928000000001",false],["▪","0.7148928000000001",false],["▪","0.7148928000000001",false],["▪","0.6859575999999998",false],["▪","0.6859575999999998",false],["▪","0.6859575999999998",false],["▪","0.6859575999999998",false],["▪","0.6584000000000001",false],["▪","0.6584000000000001",false],["▪","0.6584000000000001",false],["▪","0.6321863999999999",false],["▪","0.6321863999999999",false],["▪","0.6321863999999999",false],["▪","0.6072831999999999",false],["▪","0.6072831999999999",false],["▪","0.6072831999999999",false],["▪","0.5836568",false],["▪","0.5836568",false],["▪","0.5836568",false],["▪","0.5612735999999999",false],["▪","0.5612735999999999",false],["▪","0.5612735999999999",false],["▪","0.5400999999999999",false],["▪","0.5400999999999999",false],["▪","0.5400999999999999",false],["▪","0.5201024000000001",false],["▪","0.5201024000000001",false],["▪","0.5201024000000001",false],["▪","0.5012471999999999",false],["▪","0.5012471999999999",false],["▪","0.5012471999999999",false],["▪","0.4835008",false],["▪","0.4835008",false],["▪","0.4835008",false],["▪","0.4668295999999999",false],["▪","0.4668295999999999",false],["▪","0.4668295999999999",false],["▪","0.4512",false],["▪","0.4512",false],["▪","0.4512",false],["▪","0.43657840000000003",false],["▪","0.43657840000000003",false],["▪","0.43657840000000003",false],["▪","0.42293119999999995",false],["▪","0.42293119999999995",false],["▪","0.42293119999999995",false],["▪","0.42293119999999995",false],["▪","0.4102248",false],["▪","0.4102248",false],["▪","0.4102248",false],["▪","0.39842559999999994",false],["▪","0.39842559999999994",false],["▪","0.39842559999999994",false],["▪","0.38749999999999996",false],["▪","0.38749999999999996",false],["▪","0.38749999999999996",false],["▪","0.37741440000000004",false],["▪","0.37741440000000004",false],["▪","0.37741440000000004",false],["▪","0.3681352",false],["▪","0.3681352",false],["▪","0.3681352",false],["▪","0.3596288",false],["▪","0.3596288",false],["▪","0.3596288",false],["▪","0.35186159999999994",false],["▪","0.35186159999999994",false],["▪","0.35186159999999994",false],["▪","0.3448",false],["▪","0.3448",false],["▪","0.3448",false],["▪","0.3384104",false],["▪","0.3384104",false],["▪","0.3384104",false],["▪","0.3326592",false],["▪","0.3326592",false],["▪","0.3326592",false],["▪","0.3275128",false],["▪","0.3275128",false],["▪","0.3275128",false],["▪","0.3229376",false],["▪","0.3229376",false],["▪","0.3229376",false],["▪","0.31889999999999996",false],["▪","0.31889999999999996",false],["▪","0.31889999999999996",false],["▪","0.31889999999999996",false],["▪","0.3153664",false],["▪","0.3153664",false],["▪","0.3153664",false],["▪","0.3123032",false],["▪","0.3123032",false],["▪","0.3123032",false],["▪","0.3096768",false],["▪","0.3096768",false],["▪","0.3096768",false],["▪","0.3074536",false],["▪","0.3074536",false],["▪","0.3074536",false],["▪","0.3056",false],["▪","0.3056",false],["▪","0.3056",false],["▪","0.3040824",false],["▪","0.3040824",false],["▪","0.3040824",false],["▪","0.3028672",false],["▪","0.3028672",false],["▪","0.3028672",false],["▪","0.3019208",false],["▪","0.3019208",false],["▪","0.3019208",false],["▪","0.30120959999999997",false],["▪","0.30120959999999997",false],["▪","0.30120959999999997",false],["▪","0.30069999999999997",false],["▪","0.30069999999999997",false],["▪","0.30069999999999997",false],["▪","0.30035839999999997",false],["▪","0.30035839999999997",false],["▪","0.30035839999999997",false],["▪","0.3001512",false],["▪","0.3001512",false],["▪","0.3001512",false],["▪","0.3000448",false],["▪","0.3000448",false],["▪","0.3000448",false],["▪","0.3000448",false],["▪","0.3000056",false],["▪","0.3000056",false],["▪","0.3000056",false],["▪","0.3",false],["▪","0.3",false],["▪","0.30430908079170177",false],["▪","0.30430908079170177",false],["▪","0.30430908079170177",false],["▪","0.31713021929669627",false],["▪","0.31713021929669627",false],["▪","0.3381477165340712",false],["▪","0.3381477165340712",false],["▪","0.36684405196876835",false],["▪","0.36684405196876835",false],["▪","0.36684405196876835",false],["▪","0.4025126265847083",false],["▪","0.4025126265847083",false],["▪","0.44427516169763437",false],["▪","0.44427516169763437",false],["▪","0.44427516169763437",false],["▪","0.4911033250911586",false],["▪","0.4911033250911586",false],["▪","0.5418440519687684",false],["▪","0.5418440519687684",false],["▪","0.5418440519687684",false],["▪","0.5952479372359192",false],["▪","0.5952479372359192",false],["▪","0.6499999999999999",false],["▪","0.6499999999999999",false],["▪","0.6499999999999999",false],["▪","0.7047520627640809",false],["▪","0.7047520627640809",false],["▪","0.7581559480312315",false],["▪","0.7581559480312315",false],["▪","0.7581559480312315",false],["▪","0.8088966749088413",false],["▪","0.8088966749088413",false],["▪","0.8557248383023655",false],["▪","0.8557248383023655",false],["▪","0.8557248383023655",false],["▪","0.8974873734152915",false],["▪","0.8974873734152915",false],["▪","0.9331559480312315",false],["▪","0.9331559480312315",false],["▪","0.9618522834659287",false],["▪","0.9618522834659287",false],["▪","0.9618522834659287",false],["▪","0.9828697807033038",false],["▪","0.9828697807033038",false],["▪","0.9956909192082981",false],["▪","0.9956909192082981",false],["▪","0.9956909192082981",false],["▪","1",false],["▪","1",false],["▪","0.9956909192082981",false],["▪","0.9956909192082981",false],["▪","0.9956909192082981",false],["▪","0.9828697807033038",false],["▪","0.9828697807033038",false],["▪","0.9618522834659289",false],["▪","0.9618522834659289",false],["▪","0.9618522834659289",false],["▪","0.9331559480312315",false],["▪","0.9331559480312315",false],["▪","0.8974873734152917",false],["▪","0.8974873734152917",false],["▪","0.8974873734152917",false],["▪","0.8557248383023657",false],["▪","0.8557248383023657",false],["▪","0.8088966749088413",false],["▪","0.8088966749088413",false],["▪","0.8088966749088413",false],["▪","0.7581559480312315",false],["▪","0.7581559480312315",false],["▪","0.7047520627640809",false],["▪","0.7047520627640809",false],["▪","0.65",false],["▪","0.65",false],["▪","0.65",false],["▪","0.5952479372359192",false],["▪","0.5952479372359192",false],["▪","0.5418440519687684",false],["▪","0.5418440519687684",false],["▪","0.5418440519687684",false],["▪","0.4911033250911586",false],["▪","0.4911033250911586",false],["▪","0.4442751616976345",false],["▪","0.4442751616976345",false],["▪","0.4442751616976345",false],["▪","0.40251262658470843",false],["▪","0.40251262658470843",false],["▪","0.3668440519687684",false],["▪","0.3668440519687684",false],["▪","0.3668440519687684",false],["▪","0.3381477165340713",false],["▪","0.3381477165340713",false],["▪","0.31713021929669627",false],["▪","0.31713021929669627",false],["▪","0.31713021929669627",false],["▪","0.3043090807917018",false],["▪","0.3043090807917018",false],["▪","0.3",false],["▪","0.3",false],["▪","0.3",false],["▪","0.30430908079170177",false],["▪","0.30430908079170177",false],["▪","0.31713021929669627",false],["▪","0.31713021929669627",false],["▪","0.3381477165340712",false],["▪","0.3381477165340712",false],["▪","0.3381477165340712",false],["▪","0.36684405196876835",false],["▪","0.36684405196876835",false],["▪","0.4025126265847083",false],["▪","0.4025126265847083",false],["▪","0.4025126265847083",false],["▪","0.44427516169763437",false],["▪","0.44427516169763437",false],["▪","0.4911033250911586",false],["▪","0.4911033250911586",false],["▪","0.4911033250911586",false],["▪","0.5418440519687684",false],["▪","0.5418440519687684",false],["▪","0.5952479372359192",false],["▪","0.5952479372359192",false],["▪","0.5952479372359192",false],["▪","0.6499999999999999",false],["▪","0.6499999999999999",false],["▪","0.7047520627640809",false],["▪","0.7047520627640809",false],["▪","0.7047520627640809",false],["▪","0.7581559480312315",false],["▪","0.7581559480312315",false],["▪","0.8088966749088413",false],["▪","0.8088966749088413",false],["▪","0.8088966749088413",false],["▪","0.8557248383023655",false],["▪","0.8557248383023655",false],["▪","0.8974873734152915",false],["▪","0.8974873734152915",false],["▪","0.9331559480312315",false],["▪","0.9331559480312315",false],["▪","0.9331559480312315",false],["▪","0.9618522834659287",false],["▪","0.9618522834659287",false],["▪","0.9828697807033038",false],["▪","0.9828697807033038",false],["▪","0.9828697807033038",false],["▪","0.9956909192082981",false],["▪","0.9956909192082981",false],["▪","1",false],["▪","1",false],["▪","1",false],["▪","0.9956909192082981",false],["▪","0.9956909192082981",false],["▪","0.9828697807033038",false],["▪","0.8974873734152915",false],["▪","0.9828697807033038",false],["▪","0.65",false],["▪","0.31713021929669627",false],["▪","0.44427516169763437",false],["▪","0.8557248383023655",false],["▪","0.9956909192082981",false],["▪","0.7047520627640809",false],["▪","0.3381477165340713",false],["▪","0.4025126265847083",false],["▪","0.8088966749088413",false],["▪","1",false],["▪","0.7581559480312315",false],["▪","0.3668440519687684",false],["▪","0.36684405196876835",false],["▪","0.7581559480312315",false],["▪","0.9956909192082981",false],["▪","0.8088966749088413",false],["▪","0.40251262658470843",false],["▪","0.3381477165340712",false],["▪","0.6499999999999999",false],["▪","0.9828697807033038",false],["▪","0.8557248383023657",false],["▪","0.4911033250911586",false],["▪","0.30430908079170177",false],["▪","0.5418440519687684",false],["▪","0.9331559480312315",false],["▪","0.9618522834659289",false],["▪","0.5952479372359192",false],["▪","0.31713021929669627",false],["▪","0.44427516169763437",false],["▪","0.8088966749088413",false],["▪","1",false],["▪","0.7581559480312315",false],["▪","0.40251262658470843",false],["▪","0.31713021929669627",false],["▪","0.5952479372359192",false],["▪","0.9618522834659287",false],["▪","0.9331559480312315",false],["▪","0.5952479372359192",false],["▪","0.31713021929669627",false],["▪","0.4025126265847083",false],["▪","0.7581559480312315",false],["▪","0.9956909192082981",false],["▪","0.8974873734152917",false],["▪","0.5418440519687684",false],["▪","0.3043090807917018",false],["▪","0.44427516169763437",false],["▪","0.7581559480312315",false],["▪","0.9956909192082981",false],["▪","0.8974873734152917",false],["▪","0.5418440519687684",false],["▪","0.31713021929669627",false],["▪","0.36684405196876835",false],["▪","0.7047520627640809",false],["▪","0.9618522834659287",false],["▪","0.9618522834659289",false],["▪","0.7047520627640809",false],["▪","0.40251262658470843",false],["▪","0.30430908079170177",false],["▪","0.4911033250911586",false],["▪","0.8088966749088413",false],["▪","0.9956909192082981",false],["▪","0.8974873734152917",false],["▪","0.5952479372359192",false],["▪","0.3668440519687684",false],["▪","0.31713021929669627",false],["▪","0.5418440519687684",false],["▪","0.8088966749088413",false],["▪","0.9828697807033038",false],["▪","0.9331559480312315",false],["▪","0.7047520627640809",false],["▪","0.4442751616976345",false],["▪","0.3",false],["▪","0.4025126265847083",false],["▪","0.6499999999999999",false],["▪","0.8974873734152915",false],["▪","1",false],["▪","0.8974873734152917",false],["▪","0.65",false],["▪","0.4442751616976345",false],["▪","0.3043090807917018",false],["▪","0.36684405196876835",false],["▪","0.5952479372359192",false],["▪","0.8088966749088413",false],["▪","0.9828697807033038",false],["▪","0.9828697807033038",false],["▪","0.8088966749088413",false],["▪","0.5952479372359192",false],["▪","0.40251262658470843",false],["▪","0.3043090807917018",false],["▪","0.36684405196876835",false],["▪","0.5418440519687684",false],["▪","0.7581559480312315",false],["▪","0.9331559480312315",false],["▪","1",false],["▪","0.9331559480312315",false],["▪","0.7581559480312315",false],["▪","0.5418440519687684",false],["▪","0.3668440519687684",false],["▪","0.3043090807917018",false],["▪","0.3381477165340712",false],["▪","0.4911033250911586",false],["▪","0.7047520627640809",false],["▪","0.8557248383023655",false],["▪","0.9828697807033038",false],["▪","0.9956909192082981",false],["▪","0.8974873734152917",false],["▪","0.7581559480312315",false],["▪","0.5418440519687684",false],["▪","0.40251262658470843",false],["▪","0.3043090807917018",false],["▪","0.31713021929669627",false],["▪","0.4025126265847083",false],["▪","0.5952479372359192",false],["▪","0.7581559480312315",false],["▪","0.8974873734152915",false],["▪","0.9828697807033038",false],["▪","0.9828697807033038",false],["▪","0.8974873734152917",false],["▪","0.7581559480312315",false],["▪","0.5952479372359192",false],["▪","0.4442751616976345",false],["▪","0.31713021929669627",false],["▪","0.30430908079170177",false],["▪","0.36684405196876835",false],["▪","0.4911033250911586",false],["▪","0.6499999999999999",false],["▪","0.8088966749088413",false],["▪","0.9331559480312315",false],["▪","1",false],["▪","0.9618522834659289",false],["▪","0.8557248383023657",false],["▪","0.7047520627640809",false],["▪","0.5418440519687684",false],["▪","0.40251262658470843",false],["▪","0.31713021929669627",false],["▪","0.30430908079170177",false],["▪","0.4025126265847083",false],["▪","0.5418440519687684",false],["▪","0.3",false],["▪","0.3",false],["▪","0.37",false],["▪","0.3000056",false],["▪","0.3",false],["▪","0.3381477165340712",false]],"seed-launch":[["▫","0.3",false],["▫","0.3",false],["▫","0.3",false],["▫","0.3",false],["▫","0.30430908079170177",false],["▫","0.30430908079170177",false],["▫","0.30430908079170177",false],["▫","0.31713021929669627",false],["▫","0.31713021929669627",false],["▫","0.31713021929669627",false],["▫","0.3381477165340712",false],["▫","0.3381477165340712",false],["▫","0.3381477165340712",false],["▫","0.36684405196876835",false],["▫","0.36684405196876835",false],["▫","0.36684405196876835",false],["▫","0.4025126265847083",false],["▫","0.4025126265847083",false],["▫","0.4025126265847083",false],["▫","0.44427516169763437",false],["▫","0.44427516169763437",false],["▫","0.44427516169763437",false],["▫","0.4911033250911586",false],["▫","0.4911033250911586",false],["▫","0.4911033250911586",false],["▫","0.5418440519687684",false],["▫","0.5418440519687684",false],["▫","0.5418440519687684",false],["▫","0.5952479372359192",false],["▫","0.5952479372359192",false],["▫","0.5952479372359192",false],["▪","0.6499999999999999",false],["▪","0.6499999999999999",false],["▪","0.6499999999999999",false],["▪","0.7047520627640809",false],["▪","0.7047520627640809",false],["▪","0.7047520627640809",false],["▪","0.7581559480312315",false],["▪","0.7581559480312315",false],["▪","0.7581559480312315",false],["▪","0.8088966749088413",false],["▪","0.8088966749088413",false],["▪","0.8088966749088413",false],["▪","0.8088966749088413",false],["▪","0.8557248383023655",false],["▪","0.8557248383023655",false],["▪","0.8557248383023655",false],["▪","0.8974873734152915",false],["▪","0.8974873734152915",false],["▪","0.8974873734152915",false],["▪","0.9331559480312315",false],["▪","0.9331559480312315",false],["▪","0.9331559480312315",false],["▪","0.9618522834659287",false],["▪","0.9618522834659287",false],["▪","0.9618522834659287",false],["▪","0.9828697807033038",false],["▪","0.9828697807033038",false],["▪","0.9828697807033038",false],["▪","0.9956909192082981",false],["▪","0.9956909192082981",false],["▪","0.9956909192082981",false],["▪","1",true],["▪","1",true],["▪","1",true],["▪","1",true],["▪","1",true],["▪","1",true],["▪","1",true],["▪","1",true],["▪","1",true],["▪","1",true],["▪","1",true],["▪","1",true],["▪","1",true],["▪","1",true],["▪","1",true],["▪","1",true],["▪","1",true],["▪","1",true],["▪","1",true],["▪","1",true],["▪","1",true],["▪","1",true],["▪","1",true],["▪","1",true],["▪","1",true],["▪","1",true],["▪","1",true],["▪","1",true],["▪","1",true],["▪","1",true],["▪","1",true],["▪","1",true],["▪","1",true],["▪","1",true],["▪","1",true],["▪","1",true],["▪","1",true],["▪","1",true],["▪","1",true],["▪","1",true],["▪","1",true],["▪","1",true],["▪","1",true],["▪","1",true],["▪","1",true],["▪","1",true],["▪","1",true],["▪","1",true],["▪","1",true],["▪","1",true],["▪","1",true],["▪","1",true],["▪","1",true],["▪","1",true],["▪","1",true],["▪","1",true],["▪","1",true],["▪","1",true],["▪","1",true],["▪","1",true],["▪","1",true],["▪","1",true],["▪","1",true],["▪","1",true],["▪","1",true],["▪","1",true],["▪","1",true],["▪","1",true],["▪","1",true],["▪","1",true],["▪","1",true],["▪","1",true],["▪","1",true],["▪","1",true],["▪","1",true],["▪","1",true],["▪","1",true],["▪","1",true],["▪","1",true],["▪","1",true],["▪","1",true],["▪","1",true],["▪","1",true],["▪","1",true],["▪","1",true],["▪","1",true],["▪","1",true],["▪","1",true],["▪","1",true],["▪","1",true],["▪","1",true],["▪","1",true],["▪","1",true],["▪","1",true],["▪","1",true],["▪","1",true],["▪","1",true],["▪","1",true],["▪","1",true],["▪","1",true],["▪","1",true],["▪","1",true],["▪","1",true],["▪","1",true],["▪","1",true],["▪","1",true],["▪","1",true],["▪","1",true],["▪","1",true],["▪","1",true],["▪","1",true],["▪","1",true],["▪","1",true],["▪","1",true],["▪","1",true],["▪","1",true],["▪","1",true],["▪","1",true],["▪","1",true],["▪","1",true],["▪","1",true],["▪","1",true],["▪","1",true],["▪","1",true],["▪","1",true],["▪","1",true],["▪","1",true],["▪","1",true],["▪","1",true],["▪","1",true],["▪","1",true],["▪","1",true],["▪","1",true],["▪","1",true],["▪","1",true],["▪","1",true],["▪","1",true],["▪","1",true],["▪","1",true],["▪","1",true],["▪","1",true],["▪","1",true],["▪","1",true],["▪","1",true],["▪","1",true],["▪","1",true],["▪","1",true],["▪","1",true],["▪","1",true],["▪","1",true],["▪","1",true],["▪","1",true],["▪","1",true],["▪","1",true],["▪","1",true],["▪","1",true],["▪","1",true],["▪","1",true],["▪","1",true],["▪","1",true],["▪","1",true],["▪","1",true],["▪","1",true],["▪","1",true],["▪","1",true],["▪","1",true],["▪","1",true],["▪","1",true],["▪","1",true],["▪","1",true],["▪","1",true],["▪","1",true],["▪","1",true],["▪","1",true],["▪","1",true],["▪","1",true],["▪","1",true],["▪","1",true],["▪","1",true],["▪","1",true],["▪","1",true],["▪","1",true],["▪","1",true],["▪","1",true],["▪","1",true],["▪","1",true],["▪","1",true],["▪","1",true],["▪","1",true],["▪","1",true],["▪","1",true],["▪","1",true],["▪","1",true],["▪","1",true],["▪","1",true],["▪","1",true],["▪","1",true],["▪","1",true],["▪","1",true],["▪","1",true],["▪","1",true],["▪","1",true],["▪","1",true],["▪","1",true],["▪","1",true],["▪","1",true],["▪","1",true],["▪","1",true],["▪","1",true],["▪","1",true],["▪","1",true],["▪","1",true],["▪","1",true],["▪","1",true],["▪","1",true],["▪","1",true],["▪","1",true],["▪","1",true],["▪","1",true],["▪","1",true],["▪","1",true],["▪","1",true],["▪","1",true],["▪","1",true],["▪","1",true],["▪","1",true],["▪","1",true],["▪","1",true],["▪","1",true],["▪","1",true],["▪","1",true],["▪","1",true],["▪","1",true],["▪","1",true],["▪","1",true],["▪","1",true],["▪","1",true],["▪","1",true],["▪","1",true],["▪","1",true],["▪","1",true],["▪","1",true],["▪","1",true],["▪","1",true],["▪","1",true],["▪","1",true],["▪","1",true],["▪","1",true],["▪","1",true],["▪","1",true],["▪","1",true],["▪","1",true],["▪","1",true],["▪","1",true],["▪","1",true],["▪","1",true],["▪","1",true],["▪","1",true],["▪","1",true],["▪","1",true],["▪","1",true],["▪","1",true],["▪","1",true],["▪","1",true],["▪","1",true],["▪","1",true],["▪","1",true],["▪","1",true],["▪","1",true],["▪","1",true],["▪","1",true],["▪","1",true],["▪","1",true],["▪","1",true],["▪","1",true],["▪","1",true],["▪","1",true],["▪","1",true],["▪","1",true],["▪","1",true],["▪","1",true],["▪","1",true],["▪","1",true],["▪","1",true],["▪","1",true],["▪","1",true],["▪","1",true],["▪","1",true],["▪","1",true],["▪","1",true],["▪","1",true],["▪","1",true],["▪","1",true],["▪","1",true],["▪","1",true],["▪","1",true],["▪","1",true],["▪","1",true],["▪","1",true],["▪","1",true],["▪","1",true],["▪","1",true],["▪","1",true],["▪","1",true],["▪","1",true],["▪","1",true],["▪","1",true],["▪","1",true],["▪","1",true],["▪","1",true],["▪","1",true],["▪","1",true],["▪","1",true],["▪","1",true],["▪","1",true],["▪","1",true],["▪","1",true],["▪","1",true],["▪","1",true],["▪","1",true],["▪","1",true],["▪","1",true],["▪","1",true],["▪","1",true],["▪","1",true],["▪","1",true],["▪","1",true],["▪","1",true],["▪","1",true],["▪","1",true],["▪","1",true],["▪","1",true],["▪","1",true],["▪","1",true],["▪","1",true],["▪","1",true],["▪","1",true],["▪","1",true],["▪","1",true],["▪","1",true],["▪","1",true],["▪","1",true],["▪","1",true],["▪","1",true],["▪","1",true],["▪","1",true],["▪","1",true],["▪","1",true],["▪","1",true],["▪","1",true],["▪","1",true],["▪","1",true],["▪","1",true],["▪","1",true],["▪","1",true],["▪","1",true],["▪","1",true],["▪","1",true],["▪","1",true],["▪","1",true],["▪","1",true],["▪","1",true],["▪","1",true],["▪","1",true],["▪","1",true],["▪","1",true],["▪","1",true],["▪","1",true],["▪","1",true],["▪","1",true],["▪","1",true],["▪","1",true],["▪","1",true],["▪","1",true],["▪","1",true],["▪","1",true],["▪","1",true],["▪","1",true],["▪","1",true],["▪","1",true],["▪","1",true],["▪","1",true],["▪","1",true],["▪","1",true],["▪","1",true],["▪","1",true],["▪","1",true],["▪","1",true],["▪","1",true],["▪","1",true],["▪","1",true],["▪","1",true],["▪","1",true],["▪","1",true],["▪","1",true],["▪","1",true],["▪","1",true],["▪","1",true],["▪","1",true],["▪","1",true],["▪","1",true],["▪","1",true],["▪","1",true],["▪","1",true],["▪","1",true],["▪","1",true],["▪","1",true],["▪","1",true],["▪","1",true],["▪","1",true],["▪","1",true],["▪","1",true],["▪","1",true],["▪","1",true],["▪","1",true],["▪","1",true],["▪","1",true],["▪","1",true],["▪","1",true],["▪","1",true],["▪","1",true],["▪","1",true],["▪","1",true],["▪","1",true],["▪","1",true],["▪","1",true],["▪","1",true],["▪","1",true],["▪","1",true],["▪","1",true],["▪","1",true],["▪","1",true],["▪","1",true],["▪","1",true],["▪","1",true],["▪","1",true],["▪","1",true],["▪","1",true],["▪","1",true],["▪","1",true],["▪","1",true],["▪","1",true],["▪","1",true],["▪","1",true],["▪","1",true],["▪","1",true],["▪","1",true],["▪","1",true],["▪","1",true],["▪","1",true],["▪","1",true],["▪","1",true],["▪","1",true],["▪","1",true],["▪","1",true],["▪","1",true],["▪","1",true],["▪","1",true],["▪","1",true],["▪","1",true],["▪","1",true],["▪","1",true],["▪","1",true],["▪","1",true],["▪","1",true],["▪","1",true],["▪","1",true],["▪","1",true],["▪","1",true],["▪","1",true],["▪","1",true],["▪","1",true],["▪","1",true],["▪","1",true],["▪","1",true],["▪","1",true],["▪","1",true],["▪","1",true],["▫","0.3",false],["▫","0.3",false],["▫","0.30430908079170177",false],["▪","1",true],["▪","1",true],["▪","1",true]],"seed-mono":[["-","1",false],["-","1",false],["-","1",false],["-","1",false],["-","1",false],["-","1",false],["-","1",false],["-","1",false],["-","1",false],["-","1",false],["\\","1",false],["\\","1",false],["\\","1",false],["\\","1",false],["\\","1",false],["\\","1",false],["\\","1",false],["\\","1",false],["\\","1",false],["|","1",false],["|","1",false],["|","1",false],["|","1",false],["|","1",false],["|","1",false],["|","1",false],["|","1",false],["|","1",false],["/","1",false],["/","1",false],["/","1",false],["/","1",false],["/","1",false],["/","1",false],["/","1",false],["/","1",false],["/","1",false],["-","1",false],["-","1",false],["-","1",false],["-","1",false],["-","1",false],["-","1",false],["-","1",false],["-","1",false],["-","1",false],["-","1",false],["\\","1",false],["\\","1",false],["\\","1",false],["\\","1",false],["\\","1",false],["\\","1",false],["\\","1",false],["\\","1",false],["\\","1",false],["|","1",false],["|","1",false],["|","1",false],["|","1",false],["|","1",false],["|","1",false],["|","1",false],["|","1",false],["|","1",false],["/","1",false],["/","1",false],["/","1",false],["/","1",false],["/","1",false],["/","1",false],["/","1",false],["/","1",false],["/","1",false],["-","1",false],["-","1",false],["-","1",false],["-","1",false],["-","1",false],["-","1",false],["-","1",false],["-","1",false],["-","1",false],["-","1",false],["\\","1",false],["\\","1",false],["\\","1",false],["\\","1",false],["\\","1",false],["\\","1",false],["\\","1",false],["\\","1",false],["\\","1",false],["|","1",false],["|","1",false],["|","1",false],["|","1",false],["|","1",false],["|","1",false],["|","1",false],["|","1",false],["|","1",false],["/","1",false],["/","1",false],["/","1",false],["/","1",false],["/","1",false],["/","1",false],["/","1",false],["/","1",false],["/","1",false],["-","1",false],["-","1",false],["-","1",false],["-","1",false],["-","1",false],["-","1",false],["-","1",false],["-","1",false],["-","1",false],["\\","1",false],["\\","1",false],["\\","1",false],["\\","1",false],["\\","1",false],["\\","1",false],["\\","1",false],["\\","1",false],["\\","1",false],["\\","1",false],["|","1",false],["|","1",false],["|","1",false],["|","1",false],["|","1",false],["|","1",false],["|","1",false],["|","1",false],["|","1",false],["/","1",false],["/","1",false],["/","1",false],["/","1",false],["/","1",false],["/","1",false],["/","1",false],["/","1",false],["/","1",false],["-","1",false],["-","1",false],["-","1",false],["-","1",false],["-","1",false],["-","1",false],["-","1",false],["-","1",false],["-","1",false],["\\","1",false],["\\","1",false],["\\","1",false],["\\","1",false],["\\","1",false],["\\","1",false],["\\","1",false],["\\","1",false],["\\","1",false],["\\","1",false],["|","1",false],["|","1",false],["|","1",false],["|","1",false],["|","1",false],["|","1",false],["|","1",false],["|","1",false],["|","1",false],["/","1",false],["/","1",false],["/","1",false],["/","1",false],["/","1",false],["/","1",false],["/","1",false],["/","1",false],["/","1",false],["-","1",false],["-","1",false],["-","1",false],["-","1",false],["-","1",false],["-","1",false],["-","1",false],["-","1",false],["-","1",false],["\\","1",false],["\\","1",false],["\\","1",false],["\\","1",false],["\\","1",false],["\\","1",false],["\\","1",false],["\\","1",false],["\\","1",false],["\\","1",false],["|","1",false],["|","1",false],["|","1",false],["|","1",false],["|","1",false],["|","1",false],["|","1",false],["|","1",false],["|","1",false],["/","1",false],["/","1",false],["/","1",false],["/","1",false],["/","1",false],["/","1",false],["/","1",false],["/","1",false],["/","1",false],["-","1",false],["-","1",false],["-","1",false],["-","1",false],["-","1",false],["-","1",false],["-","1",false],["-","1",false],["-","1",false],["\\","1",false],["\\","1",false],["\\","1",false],["\\","1",false],["\\","1",false],["\\","1",false],["\\","1",false],["\\","1",false],["\\","1",false],["|","1",false],["|","1",false],["|","1",false],["|","1",false],["|","1",false],["|","1",false],["|","1",false],["|","1",false],["|","1",false],["|","1",false],["/","1",false],["/","1",false],["/","1",false],["/","1",false],["/","1",false],["/","1",false],["/","1",false],["/","1",false],["/","1",false],["-","1",false],["-","1",false],["-","1",false],["-","1",false],["-","1",false],["-","1",false],["-","1",false],["-","1",false],["-","1",false],["\\","1",false],["\\","1",false],["\\","1",false],["\\","1",false],["\\","1",false],["\\","1",false],["\\","1",false],["\\","1",false],["\\","1",false],["|","1",false],["|","1",false],["|","1",false],["|","1",false],["|","1",false],["|","1",false],["|","1",false],["|","1",false],["|","1",false],["|","1",false],["/","1",false],["/","1",false],["/","1",false],["/","1",false],["/","1",false],["/","1",false],["/","1",false],["/","1",false],["/","1",false],["-","1",false],["-","1",false],["-","1",false],["-","1",false],["-","1",false],["-","1",false],["-","1",false],["-","1",false],["-","1",false],["\\","1",false],["\\","1",false],["\\","1",false],["\\","1",false],["\\","1",false],["\\","1",false],["\\","1",false],["\\","1",false],["\\","1",false],["|","1",false],["|","1",false],["|","1",false],["|","1",false],["|","1",false],["|","1",false],["|","1",false],["|","1",false],["|","1",false],["|","1",false],["/","1",false],["/","1",false],["/","1",false],["/","1",false],["/","1",false],["/","1",false],["/","1",false],["/","1",false],["/","1",false],["-","1",false],["-","1",false],["-","1",false],["-","1",false],["-","1",false],["-","1",false],["-","1",false],["-","1",false],["-","1",false],["\\","1",false],["\\","1",false],["\\","1",false],["\\","1",false],["\\","1",false],["\\","1",false],["\\","1",false],["\\","1",false],["\\","1",false],["|","1",false],["|","1",false],["|","1",false],["|","1",false],["|","1",false],["|","1",false],["|","1",false],["|","1",false],["|","1",false],["/","1",false],["/","1",false],["/","1",false],["/","1",false],["/","1",false],["/","1",false],["/","1",false],["/","1",false],["/","1",false],["/","1",false],["-","1",false],["-","1",false],["-","1",false],["-","1",false],["-","1",false],["-","1",false],["-","1",false],["-","1",false],["-","1",false],["\\","1",false],["\\","1",false],["\\","1",false],["\\","1",false],["\\","1",false],["\\","1",false],["\\","1",false],["\\","1",false],["\\","1",false],["|","1",false],["|","1",false],["|","1",false],["|","1",false],["|","1",false],["|","1",false],["|","1",false],["|","1",false],["|","1",false],["/","1",false],["/","1",false],["/","1",false],["\\","1",false],["/","1",false],["\\","1",false],["/","1",false],["\\","1",false],["/","1",false],["\\","1",false],["/","1",false],["|","1",false],["-","1",false],["|","1",false],["-","1",false],["|","1",false],["-","1",false],["|","1",false],["-","1",false],["|","1",false],["-","1",false],["|","1",false],["-","1",false],["/","1",false],["\\","1",false],["/","1",false],["\\","1",false],["/","1",false],["\\","1",false],["/","1",false],["\\","1",false],["/","1",false],["\\","1",false],["/","1",false],["\\","1",false],["-","1",false],["|","1",false],["-","1",false],["|","1",false],["-","1",false],["|","1",false],["-","1",false],["|","1",false],["-","1",false],["|","1",false],["-","1",false],["|","1",false],["\\","1",false],["/","1",false],["\\","1",false],["/","1",false],["\\","1",false],["/","1",false],["\\","1",false],["/","1",false],["\\","1",false],["/","1",false],["\\","1",false],["/","1",false],["|","1",false],["-","1",false],["|","1",false],["-","1",false],["|","1",false],["-","1",false],["|","1",false],["-","1",false],["|","1",false],["-","1",false],["|","1",false],["-","1",false],["/","1",false],["\\","1",false],["/","1",false],["\\","1",false],["/","1",false],["\\","1",false],["/","1",false],["\\","1",false],["/","1",false],["\\","1",false],["/","1",false],["\\","1",false],["-","1",false],["|","1",false],["-","1",false],["|","1",false],["-","1",false],["|","1",false],["-","1",false],["|","1",false],["-","1",false],["|","1",false],["-","1",false],["|","1",false],["\\","1",false],["/","1",false],["\\","1",false],["/","1",false],["\\","1",false],["/","1",false],["\\","1",false],["/","1",false],["\\","1",false],["/","1",false],["\\","1",false],["/","1",false],["|","1",false],["-","1",false],["|","1",false],["-","1",false],["|","1",false],["-","1",false],["|","1",false],["-","1",false],["|","1",false],["-","1",false],["|","1",false],["-","1",false],["/","1",false],["\\","1",false],["/","1",false],["\\","1",false],["/","1",false],["\\","1",false],["/","1",false],["\\","1",false],["/","1",false],["\\","1",false],["/","1",false],["\\","1",false],["-","1",false],["|","1",false],["-","1",false],["|","1",false],["-","1",false],["|","1",false],["-","1",false],["|","1",false],["-","1",false],["|","1",false],["-","1",false],["|","1",false],["-","1",false],["-","1",false],["-","1",false],["|","1",false],["|","1",false],["\\","1",false]]},"octants":[" ","𜺨","𜺫","🮂","𜴀","▘","𜴁","𜴂","𜴃","𜴄","▝","𜴅","𜴆","𜴇","𜴈","▀","𜴉","𜴊","𜴋","𜴌","🯦","𜴍","𜴎","𜴏","𜴐","𜴑","𜴒","𜴓","𜴔","𜴕","𜴖","𜴗","𜴘","𜴙","𜴚","𜴛","𜴜","𜴝","𜴞","𜴟","🯧","𜴠","𜴡","𜴢","𜴣","𜴤","𜴥","𜴦","𜴧","𜴨","𜴩","𜴪","𜴫","𜴬","𜴭","𜴮","𜴯","𜴰","𜴱","𜴲","𜴳","𜴴","𜴵","🮅","𜺣","𜴶","𜴷","𜴸","𜴹","𜴺","𜴻","𜴼","𜴽","𜴾","𜴿","𜵀","𜵁","𜵂","𜵃","𜵄","▖","𜵅","𜵆","𜵇","𜵈","▌","𜵉","𜵊","𜵋","𜵌","▞","𜵍","𜵎","𜵏","𜵐","▛","𜵑","𜵒","𜵓","𜵔","𜵕","𜵖","𜵗","𜵘","𜵙","𜵚","𜵛","𜵜","𜵝","𜵞","𜵟","𜵠","𜵡","𜵢","𜵣","𜵤","𜵥","𜵦","𜵧","𜵨","𜵩","𜵪","𜵫","𜵬","𜵭","𜵮","𜵯","𜵰","𜺠","𜵱","𜵲","𜵳","𜵴","𜵵","𜵶","𜵷","𜵸","𜵹","𜵺","𜵻","𜵼","𜵽","𜵾","𜵿","𜶀","𜶁","𜶂","𜶃","𜶄","𜶅","𜶆","𜶇","𜶈","𜶉","𜶊","𜶋","𜶌","𜶍","𜶎","𜶏","▗","𜶐","𜶑","𜶒","𜶓","▚","𜶔","𜶕","𜶖","𜶗","▐","𜶘","𜶙","𜶚","𜶛","▜","𜶜","𜶝","𜶞","𜶟","𜶠","𜶡","𜶢","𜶣","𜶤","𜶥","𜶦","𜶧","𜶨","𜶩","𜶪","𜶫","▂","𜶬","𜶭","𜶮","𜶯","𜶰","𜶱","𜶲","𜶳","𜶴","𜶵","𜶶","𜶷","𜶸","𜶹","𜶺","𜶻","𜶼","𜶽","𜶾","𜶿","𜷀","𜷁","𜷂","𜷃","𜷄","𜷅","𜷆","𜷇","𜷈","𜷉","𜷊","𜷋","𜷌","𜷍","𜷎","𜷏","𜷐","𜷑","𜷒","𜷓","𜷔","𜷕","𜷖","𜷗","𜷘","𜷙","𜷚","▄","𜷛","𜷜","𜷝","𜷞","▙","𜷟","𜷠","𜷡","𜷢","▟","𜷣","▆","𜷤","𜷥","█"],"scanner":{"diamonds":["⬥·······","◆⬥······","⬩◆⬥·····","⬪⬩◆⬥····","⬪⬪⬩◆⬥···","⬪⬪⬪⬩◆⬥··","·⬪⬪⬪⬩◆⬥·","··⬪⬪⬪⬩◆⬥","··⬪⬪⬪⬩◆⬥","···⬪⬪⬪⬩◆","····⬪⬪⬪⬩","·····⬪⬪⬪","······⬪⬪","·······⬪","········","········","········","······⬥◆","·····⬥◆⬩","····⬥◆⬩⬪","···⬥◆⬩⬪⬪","··⬥◆⬩⬪⬪⬪","·⬥◆⬩⬪⬪⬪·","⬥◆⬩⬪⬪⬪··","⬥◆⬩⬪⬪⬪··","◆⬩⬪⬪⬪···","⬩⬪⬪⬪····","⬪⬪⬪·····","⬪⬪······","⬪·······","········","········","········","········","········","········","········","········","········","········","········","········","········","········","········","········","········","········","········","········","········","········","········","········"],"blocks":["■⬝⬝⬝⬝⬝⬝⬝","■■⬝⬝⬝⬝⬝⬝","■■■⬝⬝⬝⬝⬝","■■■■⬝⬝⬝⬝","■■■■■⬝⬝⬝","■■■■■■⬝⬝","⬝■■■■■■⬝","⬝⬝■■■■■■","⬝⬝■■■■■■","⬝⬝⬝■■■■■","⬝⬝⬝⬝■■■■","⬝⬝⬝⬝⬝■■■","⬝⬝⬝⬝⬝⬝■■","⬝⬝⬝⬝⬝⬝⬝■","⬝⬝⬝⬝⬝⬝⬝⬝","⬝⬝⬝⬝⬝⬝⬝⬝","⬝⬝⬝⬝⬝⬝⬝⬝","⬝⬝⬝⬝⬝⬝■■","⬝⬝⬝⬝⬝■■■","⬝⬝⬝⬝■■■■","⬝⬝⬝■■■■■","⬝⬝■■■■■■","⬝■■■■■■⬝","■■■■■■⬝⬝","■■■■■■⬝⬝","■■■■■⬝⬝⬝","■■■■⬝⬝⬝⬝","■■■⬝⬝⬝⬝⬝","■■⬝⬝⬝⬝⬝⬝","■⬝⬝⬝⬝⬝⬝⬝","⬝⬝⬝⬝⬝⬝⬝⬝","⬝⬝⬝⬝⬝⬝⬝⬝","⬝⬝⬝⬝⬝⬝⬝⬝","⬝⬝⬝⬝⬝⬝⬝⬝","⬝⬝⬝⬝⬝⬝⬝⬝","⬝⬝⬝⬝⬝⬝⬝⬝","⬝⬝⬝⬝⬝⬝⬝⬝","⬝⬝⬝⬝⬝⬝⬝⬝","⬝⬝⬝⬝⬝⬝⬝⬝","⬝⬝⬝⬝⬝⬝⬝⬝","⬝⬝⬝⬝⬝⬝⬝⬝","⬝⬝⬝⬝⬝⬝⬝⬝","⬝⬝⬝⬝⬝⬝⬝⬝","⬝⬝⬝⬝⬝⬝⬝⬝","⬝⬝⬝⬝⬝⬝⬝⬝","⬝⬝⬝⬝⬝⬝⬝⬝","⬝⬝⬝⬝⬝⬝⬝⬝","⬝⬝⬝⬝⬝⬝⬝⬝","⬝⬝⬝⬝⬝⬝⬝⬝","⬝⬝⬝⬝⬝⬝⬝⬝","⬝⬝⬝⬝⬝⬝⬝⬝","⬝⬝⬝⬝⬝⬝⬝⬝","⬝⬝⬝⬝⬝⬝⬝⬝","⬝⬝⬝⬝⬝⬝⬝⬝"]}} diff --git a/packages/cli-rs/parity/fixtures/U.6/instants.json b/packages/cli-rs/parity/fixtures/U.6/instants.json new file mode 100644 index 000000000000..2293648196cf --- /dev/null +++ b/packages/cli-rs/parity/fixtures/U.6/instants.json @@ -0,0 +1,197 @@ +{ + "spinner": [ + 0, + 80, + 160, + 240, + 320, + 400, + 480, + 560, + 640, + 720, + 800, + 880 + ], + "scanner": [ + 0, + 40, + 80, + 120, + 160, + 200, + 240, + 280, + 320, + 360, + 400, + 440, + 480, + 520, + 560, + 600, + 640, + 680, + 720, + 760, + 800, + 840, + 880, + 920, + 960, + 1000, + 1040, + 1080, + 1120, + 1160, + 1200, + 1240, + 1280, + 1320, + 1360, + 1400, + 1440, + 1480, + 1520, + 1560, + 1600, + 1640, + 1680, + 1720, + 1760, + 1800, + 1840, + 1880, + 1920, + 1960, + 2000, + 2040, + 2080, + 2120, + 2160, + 2200, + 2240 + ], + "scanner-page": [ + 0, + 40, + 80, + 120, + 160, + 200, + 240, + 280, + 320, + 360, + 400, + 440, + 480, + 520, + 560, + 600, + 640, + 680, + 720, + 760, + 800, + 840, + 880, + 920, + 960, + 1000, + 1040, + 1080, + 1120, + 1160, + 1200, + 1240, + 1280, + 1320, + 1360, + 1400, + 1440, + 1480, + 1520, + 1560, + 1600, + 1640, + 1680, + 1720, + 1760, + 1800, + 1840, + 1880, + 1920, + 1960, + 2000, + 2040, + 2080, + 2120, + 2160, + 2200, + 2240 + ], + "spinner-page": [ + 0, + 80, + 160 + ], + "soft-slide": [ + 0, + 100, + 200, + 300, + 400, + 500, + 600, + 700, + 800, + 900, + 1000, + 1100 + ], + "shimmer": [ + 0, + 50, + 100, + 150, + 200, + 250, + 300, + 350, + 400, + 450, + 500, + 550, + 600, + 650, + 700, + 750, + 800, + 850, + 900, + 950, + 1000, + 1050, + 1100, + 1150, + 1200, + 1250, + 1300 + ], + "fade": [ + 0, + 20, + 40, + 60, + 80, + 100, + 120, + 140, + 160, + 180, + 200, + 220, + 240 + ] +} diff --git a/packages/cli-rs/parity/fixtures/U.6/scanner-page.json b/packages/cli-rs/parity/fixtures/U.6/scanner-page.json new file mode 100644 index 000000000000..6763ebe7790e --- /dev/null +++ b/packages/cli-rs/parity/fixtures/U.6/scanner-page.json @@ -0,0 +1,59 @@ +{"width":8,"height":57,"styles":["#fab283ff #1a1b26ff 0","#423637ff #1a1b26ff 0","#e9bc8cff #1a1b26ff 0","#503f3cff #1a1b26ff 0","#ac7d63ff #1a1b26ff 0","#5e4942ff #1a1b26ff 0","#795b4dff #1a1b26ff 0","#6b5148ff #1a1b26ff 0","#574440ff #1a1b26ff 0","#785a4dff #1a1b26ff 0","#856352ff #1a1b26ff 0","#936d58ff #1a1b26ff 0","#a0765eff #1a1b26ff 0","#966e59ff #1a1b26ff 0","#8b6755ff #1a1b26ff 0","#816051ff #1a1b26ff 0","#76594cff #1a1b26ff 0","#6d5348ff #1a1b26ff 0","#624c44ff #1a1b26ff 0","#4d3d3bff #1a1b26ff 0","#52413dff #1a1b26ff 0","#71564aff #1a1b26ff 0","#916b57ff #1a1b26ff 0","#9d735cff #1a1b26ff 0","#9a715bff #1a1b26ff 0","#976f5aff #1a1b26ff 0","#946d59ff #1a1b26ff 0","#8e6956ff #1a1b26ff 0","#8a6755ff #1a1b26ff 0","#876453ff #1a1b26ff 0","#846352ff #1a1b26ff 0","#7e5f50ff #1a1b26ff 0","#7b5c4eff #1a1b26ff 0","#74584cff #1a1b26ff 0","#6e5449ff #1a1b26ff 0","#685046ff #1a1b26ff 0","#654d45ff #1a1b26ff 0","#5f4942ff #1a1b26ff 0","#5b4741ff #1a1b26ff 0","#584540ff #1a1b26ff 0","#55433eff #1a1b26ff 0","#4f3f3cff #1a1b26ff 0","#4c3d3bff #1a1b26ff 0","#493a39ff #1a1b26ff 0","#453838ff #1a1b26ff 0"],"lines":[ +["■⬝⬝⬝⬝⬝⬝⬝",[[0,1],[1,7]]], +["■■⬝⬝⬝⬝⬝⬝",[[2,1],[0,1],[3,6]]], +["■■■⬝⬝⬝⬝⬝",[[4,1],[2,1],[0,1],[5,5]]], +["■■■■⬝⬝⬝⬝",[[6,1],[4,1],[2,1],[0,1],[7,4]]], +["■■■■■⬝⬝⬝",[[8,1],[6,1],[4,1],[2,1],[0,1],[9,3]]], +["■■■■■■⬝⬝",[[1,1],[8,1],[6,1],[4,1],[2,1],[0,1],[10,2]]], +["⬝■■■■■■⬝",[[11,1],[1,1],[8,1],[6,1],[4,1],[2,1],[0,1],[11,1]]], +["⬝⬝■■■■■■",[[12,2],[1,1],[8,1],[6,1],[4,1],[2,1],[0,1]]], +["⬝⬝■■■■■■",[[12,2],[1,1],[8,1],[6,1],[4,1],[2,1],[0,1]]], +["⬝⬝⬝■■■■■",[[13,3],[1,1],[8,1],[6,1],[4,1],[2,1]]], +["⬝⬝⬝⬝■■■■",[[14,4],[1,1],[8,1],[6,1],[4,1]]], +["⬝⬝⬝⬝⬝■■■",[[15,5],[1,1],[8,1],[6,1]]], +["⬝⬝⬝⬝⬝⬝■■",[[16,6],[1,1],[8,1]]], +["⬝⬝⬝⬝⬝⬝⬝■",[[17,7],[1,1]]], +["⬝⬝⬝⬝⬝⬝⬝⬝",[[18,8]]], +["⬝⬝⬝⬝⬝⬝⬝⬝",[[8,8]]], +["⬝⬝⬝⬝⬝⬝⬝⬝",[[19,8]]], +["⬝⬝⬝⬝⬝⬝■■",[[1,6],[0,1],[2,1]]], +["⬝⬝⬝⬝⬝■■■",[[20,5],[0,1],[2,1],[4,1]]], +["⬝⬝⬝⬝■■■■",[[18,4],[0,1],[2,1],[4,1],[6,1]]], +["⬝⬝⬝■■■■■",[[21,3],[0,1],[2,1],[4,1],[6,1],[8,1]]], +["⬝⬝■■■■■■",[[15,2],[0,1],[2,1],[4,1],[6,1],[8,1],[1,1]]], +["⬝■■■■■■⬝",[[22,1],[0,1],[2,1],[4,1],[6,1],[8,1],[1,1],[22,1]]], +["■■■■■■⬝⬝",[[0,1],[2,1],[4,1],[6,1],[8,1],[1,1],[12,2]]], +["■■■■■■⬝⬝",[[0,1],[2,1],[4,1],[6,1],[8,1],[1,1],[12,2]]], +["■■■■■⬝⬝⬝",[[2,1],[4,1],[6,1],[8,1],[1,1],[23,3]]], +["■■■■⬝⬝⬝⬝",[[4,1],[6,1],[8,1],[1,1],[24,4]]], +["■■■⬝⬝⬝⬝⬝",[[6,1],[8,1],[1,1],[25,5]]], +["■■⬝⬝⬝⬝⬝⬝",[[8,1],[1,1],[26,6]]], +["■⬝⬝⬝⬝⬝⬝⬝",[[1,1],[22,7]]], +["⬝⬝⬝⬝⬝⬝⬝⬝",[[27,8]]], +["⬝⬝⬝⬝⬝⬝⬝⬝",[[28,8]]], +["⬝⬝⬝⬝⬝⬝⬝⬝",[[29,8]]], +["⬝⬝⬝⬝⬝⬝⬝⬝",[[30,8]]], +["⬝⬝⬝⬝⬝⬝⬝⬝",[[15,8]]], +["⬝⬝⬝⬝⬝⬝⬝⬝",[[31,8]]], +["⬝⬝⬝⬝⬝⬝⬝⬝",[[32,8]]], +["⬝⬝⬝⬝⬝⬝⬝⬝",[[9,8]]], +["⬝⬝⬝⬝⬝⬝⬝⬝",[[33,8]]], +["⬝⬝⬝⬝⬝⬝⬝⬝",[[21,8]]], +["⬝⬝⬝⬝⬝⬝⬝⬝",[[34,8]]], +["⬝⬝⬝⬝⬝⬝⬝⬝",[[7,8]]], +["⬝⬝⬝⬝⬝⬝⬝⬝",[[35,8]]], +["⬝⬝⬝⬝⬝⬝⬝⬝",[[36,8]]], +["⬝⬝⬝⬝⬝⬝⬝⬝",[[18,8]]], +["⬝⬝⬝⬝⬝⬝⬝⬝",[[37,8]]], +["⬝⬝⬝⬝⬝⬝⬝⬝",[[38,8]]], +["⬝⬝⬝⬝⬝⬝⬝⬝",[[39,8]]], +["⬝⬝⬝⬝⬝⬝⬝⬝",[[40,8]]], +["⬝⬝⬝⬝⬝⬝⬝⬝",[[20,8]]], +["⬝⬝⬝⬝⬝⬝⬝⬝",[[41,8]]], +["⬝⬝⬝⬝⬝⬝⬝⬝",[[42,8]]], +["⬝⬝⬝⬝⬝⬝⬝⬝",[[43,8]]], +["⬝⬝⬝⬝⬝⬝⬝⬝",[[44,8]]], +["■⬝⬝⬝⬝⬝⬝⬝",[[0,1],[1,7]]], +["■■⬝⬝⬝⬝⬝⬝",[[2,1],[0,1],[3,6]]], +["■■■⬝⬝⬝⬝⬝",[[4,1],[2,1],[0,1],[5,5]]] +]} diff --git a/packages/cli-rs/parity/fixtures/U.6/scanner.json b/packages/cli-rs/parity/fixtures/U.6/scanner.json new file mode 100644 index 000000000000..a5bdf0c2b292 --- /dev/null +++ b/packages/cli-rs/parity/fixtures/U.6/scanner.json @@ -0,0 +1,59 @@ +{"width":8,"height":57,"styles":["#fab283ff #00000000 0","#2d2018ff #00000000 0","#e6b988ff #00000000 0","#3c2b1fff #00000000 0","#a37455ff #00000000 0","#4b3628ff #00000000 0","#6a4b37ff #00000000 0","#5a402fff #00000000 0","#453124ff #00000000 0","#694b37ff #00000000 0","#78553fff #00000000 0","#876047ff #00000000 0","#966b4fff #00000000 0","#8a6248ff #00000000 0","#7e5a42ff #00000000 0","#73523cff #00000000 0","#674936ff #00000000 0","#5c4230ff #00000000 0","#50392aff #00000000 0","#39281eff #00000000 0","#3f2d21ff #00000000 0","#614533ff #00000000 0","#845e45ff #00000000 0","#92684dff #00000000 0","#8f664bff #00000000 0","#8b6349ff #00000000 0","#886147ff #00000000 0","#815c44ff #00000000 0","#7d5942ff #00000000 0","#7a5740ff #00000000 0","#77543eff #00000000 0","#70503bff #00000000 0","#6c4d39ff #00000000 0","#654835ff #00000000 0","#5e4331ff #00000000 0","#573e2eff #00000000 0","#533b2cff #00000000 0","#4c3628ff #00000000 0","#493426ff #00000000 0","#463224ff #00000000 0","#422f22ff #00000000 0","#3b2a1fff #00000000 0","#38281dff #00000000 0","#34251bff #00000000 0","#302219ff #00000000 0"],"lines":[ +["■⬝⬝⬝⬝⬝⬝⬝",[[0,1],[1,7]]], +["■■⬝⬝⬝⬝⬝⬝",[[2,1],[0,1],[3,6]]], +["■■■⬝⬝⬝⬝⬝",[[4,1],[2,1],[0,1],[5,5]]], +["■■■■⬝⬝⬝⬝",[[6,1],[4,1],[2,1],[0,1],[7,4]]], +["■■■■■⬝⬝⬝",[[8,1],[6,1],[4,1],[2,1],[0,1],[9,3]]], +["■■■■■■⬝⬝",[[1,1],[8,1],[6,1],[4,1],[2,1],[0,1],[10,2]]], +["⬝■■■■■■⬝",[[11,1],[1,1],[8,1],[6,1],[4,1],[2,1],[0,1],[11,1]]], +["⬝⬝■■■■■■",[[12,2],[1,1],[8,1],[6,1],[4,1],[2,1],[0,1]]], +["⬝⬝■■■■■■",[[12,2],[1,1],[8,1],[6,1],[4,1],[2,1],[0,1]]], +["⬝⬝⬝■■■■■",[[13,3],[1,1],[8,1],[6,1],[4,1],[2,1]]], +["⬝⬝⬝⬝■■■■",[[14,4],[1,1],[8,1],[6,1],[4,1]]], +["⬝⬝⬝⬝⬝■■■",[[15,5],[1,1],[8,1],[6,1]]], +["⬝⬝⬝⬝⬝⬝■■",[[16,6],[1,1],[8,1]]], +["⬝⬝⬝⬝⬝⬝⬝■",[[17,7],[1,1]]], +["⬝⬝⬝⬝⬝⬝⬝⬝",[[18,8]]], +["⬝⬝⬝⬝⬝⬝⬝⬝",[[8,8]]], +["⬝⬝⬝⬝⬝⬝⬝⬝",[[19,8]]], +["⬝⬝⬝⬝⬝⬝■■",[[1,6],[0,1],[2,1]]], +["⬝⬝⬝⬝⬝■■■",[[20,5],[0,1],[2,1],[4,1]]], +["⬝⬝⬝⬝■■■■",[[18,4],[0,1],[2,1],[4,1],[6,1]]], +["⬝⬝⬝■■■■■",[[21,3],[0,1],[2,1],[4,1],[6,1],[8,1]]], +["⬝⬝■■■■■■",[[15,2],[0,1],[2,1],[4,1],[6,1],[8,1],[1,1]]], +["⬝■■■■■■⬝",[[22,1],[0,1],[2,1],[4,1],[6,1],[8,1],[1,1],[22,1]]], +["■■■■■■⬝⬝",[[0,1],[2,1],[4,1],[6,1],[8,1],[1,1],[12,2]]], +["■■■■■■⬝⬝",[[0,1],[2,1],[4,1],[6,1],[8,1],[1,1],[12,2]]], +["■■■■■⬝⬝⬝",[[2,1],[4,1],[6,1],[8,1],[1,1],[23,3]]], +["■■■■⬝⬝⬝⬝",[[4,1],[6,1],[8,1],[1,1],[24,4]]], +["■■■⬝⬝⬝⬝⬝",[[6,1],[8,1],[1,1],[25,5]]], +["■■⬝⬝⬝⬝⬝⬝",[[8,1],[1,1],[26,6]]], +["■⬝⬝⬝⬝⬝⬝⬝",[[1,1],[22,7]]], +["⬝⬝⬝⬝⬝⬝⬝⬝",[[27,8]]], +["⬝⬝⬝⬝⬝⬝⬝⬝",[[28,8]]], +["⬝⬝⬝⬝⬝⬝⬝⬝",[[29,8]]], +["⬝⬝⬝⬝⬝⬝⬝⬝",[[30,8]]], +["⬝⬝⬝⬝⬝⬝⬝⬝",[[15,8]]], +["⬝⬝⬝⬝⬝⬝⬝⬝",[[31,8]]], +["⬝⬝⬝⬝⬝⬝⬝⬝",[[32,8]]], +["⬝⬝⬝⬝⬝⬝⬝⬝",[[9,8]]], +["⬝⬝⬝⬝⬝⬝⬝⬝",[[33,8]]], +["⬝⬝⬝⬝⬝⬝⬝⬝",[[21,8]]], +["⬝⬝⬝⬝⬝⬝⬝⬝",[[34,8]]], +["⬝⬝⬝⬝⬝⬝⬝⬝",[[7,8]]], +["⬝⬝⬝⬝⬝⬝⬝⬝",[[35,8]]], +["⬝⬝⬝⬝⬝⬝⬝⬝",[[36,8]]], +["⬝⬝⬝⬝⬝⬝⬝⬝",[[18,8]]], +["⬝⬝⬝⬝⬝⬝⬝⬝",[[37,8]]], +["⬝⬝⬝⬝⬝⬝⬝⬝",[[38,8]]], +["⬝⬝⬝⬝⬝⬝⬝⬝",[[39,8]]], +["⬝⬝⬝⬝⬝⬝⬝⬝",[[40,8]]], +["⬝⬝⬝⬝⬝⬝⬝⬝",[[20,8]]], +["⬝⬝⬝⬝⬝⬝⬝⬝",[[41,8]]], +["⬝⬝⬝⬝⬝⬝⬝⬝",[[42,8]]], +["⬝⬝⬝⬝⬝⬝⬝⬝",[[43,8]]], +["⬝⬝⬝⬝⬝⬝⬝⬝",[[44,8]]], +["■⬝⬝⬝⬝⬝⬝⬝",[[0,1],[1,7]]], +["■■⬝⬝⬝⬝⬝⬝",[[2,1],[0,1],[3,6]]], +["■■■⬝⬝⬝⬝⬝",[[4,1],[2,1],[0,1],[5,5]]] +]} diff --git a/packages/cli-rs/parity/fixtures/U.6/shimmer.json b/packages/cli-rs/parity/fixtures/U.6/shimmer.json new file mode 100644 index 000000000000..0f057ea445a6 --- /dev/null +++ b/packages/cli-rs/parity/fixtures/U.6/shimmer.json @@ -0,0 +1,29 @@ +{"width":24,"height":27,"styles":["#808080ff #00000000 0","#ffffffff #00000000 0","#8a8a8aff #00000000 0","#bcbcbcff #00000000 0","#8e8e8eff #00000000 0","#eeeeeeff #00000000 0","#dadadaff #00000000 0","#a9a9a9ff #00000000 0","#858585ff #00000000 0","#edededff #00000000 0","#ddddddff #00000000 0","#aeaeaeff #00000000 0","#878787ff #00000000 0","#e5e5e5ff #00000000 0","#eaeaeaff #00000000 0","#e4e4e4ff #00000000 0","#bababaff #00000000 0","#8d8d8dff #00000000 0","#d4d4d4ff #00000000 0","#e9e9e9ff #00000000 0","#ecececff #00000000 0","#c6c6c6ff #00000000 0","#969696ff #00000000 0","#c7c7c7ff #00000000 0","#d2d2d2ff #00000000 0","#dbdbdbff #00000000 0","#e2e2e2ff #00000000 0","#e8e8e8ff #00000000 0","#a0a0a0ff #00000000 0","#828282ff #00000000 0","#a3a3a3ff #00000000 0","#c5c5c5ff #00000000 0","#cfcfcfff #00000000 0","#d9d9d9ff #00000000 0","#e1e1e1ff #00000000 0","#e7e7e7ff #00000000 0","#ebebebff #00000000 0","#acacacff #00000000 0","#868686ff #00000000 0","#8f8f8fff #00000000 0","#979797ff #00000000 0","#a1a1a1ff #00000000 0","#abababff #00000000 0","#b7b7b7ff #00000000 0","#c2c2c2ff #00000000 0","#cdcdcdff #00000000 0","#d7d7d7ff #00000000 0","#dfdfdfff #00000000 0","#e3e3e3ff #00000000 0","#b8b8b8ff #00000000 0","#8c8c8cff #00000000 0","#838383ff #00000000 0","#959595ff #00000000 0","#9e9e9eff #00000000 0","#b4b4b4ff #00000000 0","#bfbfbfff #00000000 0","#cacacaff #00000000 0","#d5d5d5ff #00000000 0","#c4c4c4ff #00000000 0","#949494ff #00000000 0","#818181ff #00000000 0","#8b8b8bff #00000000 0","#939393ff #00000000 0","#9c9c9cff #00000000 0","#a6a6a6ff #00000000 0","#b1b1b1ff #00000000 0","#bdbdbdff #00000000 0","#c8c8c8ff #00000000 0","#d0d0d0ff #00000000 0","#919191ff #00000000 0","#999999ff #00000000 0","#a4a4a4ff #00000000 0","#afafafff #00000000 0","#f1f1f1ff #00000000 0","#f9f9f9ff #00000000 0","#fefefeff #00000000 0","#848484ff #00000000 0","#898989ff #00000000 0","#c3c3c3ff #00000000 0","#e6e6e6ff #00000000 0","#f0f0f0ff #00000000 0","#9f9f9fff #00000000 0","#c0c0c0ff #00000000 0","#cbcbcbff #00000000 0","#efefefff #00000000 0","#a7a7a7ff #00000000 0","#b2b2b2ff #00000000 0","#d3d3d3ff #00000000 0","#9a9a9aff #00000000 0","#f4f4f4ff #00000000 0","#f3f3f3ff #00000000 0","#989898ff #00000000 0","#f8f8f8ff #00000000 0","#f6f6f6ff #00000000 0","#f5f5f5ff #00000000 0","#fcfcfcff #00000000 0","#fafafaff #00000000 0","#fdfdfdff #00000000 0"],"lines":[ +["Checking for updates… ",[[0,21],[1,3]]], +["Checking for updates… ",[[0,21],[1,3]]], +["Checking for updates… ",[[2,1],[0,20],[1,3]]], +["Checking for updates… ",[[3,1],[4,1],[0,19],[1,3]]], +["Checking for updates… ",[[5,1],[6,1],[7,1],[8,1],[0,17],[1,3]]], +["Checking for updates… ",[[9,1],[5,2],[10,1],[11,1],[12,1],[0,15],[1,3]]], +["Checking for updates… ",[[13,1],[14,1],[9,1],[5,2],[15,1],[16,1],[17,1],[0,13],[1,3]]], +["Checking for updates… ",[[18,1],[10,1],[15,1],[19,1],[20,1],[5,2],[14,1],[21,1],[22,1],[0,11],[1,3]]], +["Checking for updates… ",[[3,1],[23,1],[24,1],[25,1],[26,1],[27,1],[20,1],[9,1],[5,1],[9,1],[24,1],[28,1],[29,1],[0,8],[1,3]]], +["Checking for updates… ",[[30,1],[11,1],[16,1],[31,1],[32,1],[33,1],[34,1],[35,1],[36,1],[9,1],[5,2],[25,1],[37,1],[38,1],[0,6],[1,3]]], +["Checking for updates… ",[[39,1],[40,1],[41,1],[42,1],[43,1],[44,1],[45,1],[46,1],[47,1],[13,1],[14,1],[9,1],[5,2],[48,1],[49,1],[50,1],[0,4],[1,3]]], +["Checking for updates… ",[[51,1],[12,1],[17,1],[52,1],[53,1],[7,1],[54,1],[55,1],[56,1],[57,1],[10,1],[15,1],[19,1],[20,1],[5,2],[19,1],[58,1],[59,1],[0,2],[1,3]]], +["Checking for updates… ",[[0,1],[60,1],[29,1],[38,1],[61,1],[62,1],[63,1],[64,1],[65,1],[66,1],[67,1],[24,1],[25,1],[48,1],[27,1],[20,1],[9,1],[5,1],[20,1],[68,1],[53,1],[1,3]]], +["Checking for updates… ",[[0,4],[29,1],[8,1],[2,1],[69,1],[70,1],[71,1],[72,1],[16,1],[31,1],[68,1],[33,1],[34,1],[35,1],[36,1],[9,1],[5,2],[73,1],[74,1],[75,1]]], +["Checking for updates… ",[[0,6],[60,1],[76,1],[77,1],[39,1],[40,1],[41,1],[37,1],[43,1],[78,1],[45,1],[46,1],[47,1],[79,1],[14,1],[9,1],[5,2],[80,1]]], +["Checking for updates… ",[[0,8],[60,1],[51,1],[12,1],[17,1],[52,1],[81,1],[7,1],[54,1],[82,1],[83,1],[57,1],[10,1],[15,1],[84,1],[5,2]]], +["Checking for updates… ",[[0,10],[60,1],[29,1],[38,1],[50,1],[62,1],[63,1],[85,1],[86,1],[66,1],[67,1],[87,1],[73,1],[80,1],[84,1]]], +["Checking for updates… ",[[0,13],[29,1],[8,1],[2,1],[69,1],[88,1],[71,1],[72,1],[16,1],[89,1],[90,1],[73,1]]], +["Checking for updates… ",[[0,15],[60,1],[76,1],[77,1],[39,1],[91,1],[41,1],[92,1],[93,1],[94,1]]], +["Checking for updates… ",[[0,17],[60,1],[51,1],[12,1],[4,1],[95,1],[96,1],[74,1]]], +["Checking for updates… ",[[0,19],[60,1],[51,1],[75,1],[97,1],[95,1]]], +["Checking for updates… ",[[0,21],[1,1],[75,2]]], +["Checking for updates… ",[[0,21],[1,2],[75,1]]], +["Checking for updates… ",[[0,21],[1,3]]], +["Checking for updates… ",[[0,21],[1,3]]], +["Checking for updates… ",[[0,21],[1,3]]], +["Checking for updates… ",[[2,1],[0,20],[1,3]]] +]} diff --git a/packages/cli-rs/parity/fixtures/U.6/soft-slide.json b/packages/cli-rs/parity/fixtures/U.6/soft-slide.json new file mode 100644 index 000000000000..823f84ae2e17 --- /dev/null +++ b/packages/cli-rs/parity/fixtures/U.6/soft-slide.json @@ -0,0 +1,14 @@ +{"width":1,"height":12,"styles":["#896248ff #00000000 0","#d5976fff #00000000 0","#fab283ff #00000000 0"],"lines":[ +["🯦",[[0,1]]], +["🯦",[[1,1]]], +["🯦",[[2,1]]], +["🯦",[[1,1]]], +["🯦",[[0,1]]], +["🯧",[[0,1]]], +["🯧",[[1,1]]], +["🯧",[[2,1]]], +["🯧",[[1,1]]], +["🯧",[[0,1]]], +["🯦",[[0,1]]], +["🯦",[[1,1]]] +]} diff --git a/packages/cli-rs/parity/fixtures/U.6/spinner-page.json b/packages/cli-rs/parity/fixtures/U.6/spinner-page.json new file mode 100644 index 000000000000..7ea4100e84bb --- /dev/null +++ b/packages/cli-rs/parity/fixtures/U.6/spinner-page.json @@ -0,0 +1,5 @@ +{"width":12,"height":3,"styles":["#64656cff #1a1b26ff 0","#ffffffff #1a1b26ff 0"],"lines":[ +["⠋ Working ",[[0,1],[1,1],[0,7],[1,3]]], +["⠙ Working ",[[0,1],[1,1],[0,7],[1,3]]], +["⠹ Working ",[[0,1],[1,1],[0,7],[1,3]]] +]} diff --git a/packages/cli-rs/parity/fixtures/U.6/spinner.json b/packages/cli-rs/parity/fixtures/U.6/spinner.json new file mode 100644 index 000000000000..c73035880a17 --- /dev/null +++ b/packages/cli-rs/parity/fixtures/U.6/spinner.json @@ -0,0 +1,14 @@ +{"width":12,"height":12,"styles":["#808080ff #00000000 0","#ffffffff #00000000 0"],"lines":[ +["⠋ Working ",[[0,1],[1,1],[0,7],[1,3]]], +["⠙ Working ",[[0,1],[1,1],[0,7],[1,3]]], +["⠹ Working ",[[0,1],[1,1],[0,7],[1,3]]], +["⠸ Working ",[[0,1],[1,1],[0,7],[1,3]]], +["⠼ Working ",[[0,1],[1,1],[0,7],[1,3]]], +["⠴ Working ",[[0,1],[1,1],[0,7],[1,3]]], +["⠦ Working ",[[0,1],[1,1],[0,7],[1,3]]], +["⠧ Working ",[[0,1],[1,1],[0,7],[1,3]]], +["⠇ Working ",[[0,1],[1,1],[0,7],[1,3]]], +["⠏ Working ",[[0,1],[1,1],[0,7],[1,3]]], +["⠋ Working ",[[0,1],[1,1],[0,7],[1,3]]], +["⠙ Working ",[[0,1],[1,1],[0,7],[1,3]]] +]} diff --git a/packages/cli-rs/parity/fixtures/rs-theme-colors/cursor-dark-events.app.json b/packages/cli-rs/parity/fixtures/rs-theme-colors/cursor-dark-events.app.json new file mode 100644 index 000000000000..3aaa26873962 --- /dev/null +++ b/packages/cli-rs/parity/fixtures/rs-theme-colors/cursor-dark-events.app.json @@ -0,0 +1,64 @@ +{ + "scenario": "rs-theme-colors/cursor-dark-events", + "width": 100, + "height": 30, + "directory": "/tmp/opencode/packages/tui", + "config": { + "tabs": {"mode":"off"}, + "theme": {"name":"cursor","mode":"dark"}, + "animations": false, + "experimental": {"new-designs":true} + }, + "args": {}, + "routes": [ + {"path":"/api/session/ses_b","json":{"data":{"id":"ses_b","title":"Fix the parser","projectID":"proj_test","cost":0,"tokens":{"input":0,"output":0,"reasoning":0,"cache":{"read":0,"write":0}},"time":{"created":2,"updated":2},"location":{"directory":"/tmp/opencode/packages/tui"}}}}, + {"path":"/api/session/ses_b/message","json":{"data":[{"id":"msg_2","type":"assistant","agent":"build","model":{"providerID":"provider","id":"model"},"content":[{"type":"text","text":"The parser drops the last token."}],"finish":"stop","time":{"created":2,"completed":3}},{"id":"msg_1","type":"user","text":"Why?","time":{"created":1}}],"cursor":{}}}, + {"path":"/api/session/ses_b/inbox","json":{"data":[]}} + ], + "steps": [ + {"checkpoint":"home","until":"Ask anything","masks":[{"x":16,"y":16,"width":84,"height":1,"reason":"the placeholder example: random in TS and Rust"}],"fixture":"rs-theme-colors/cursor-dark-events/home"}, + {"event":{"id":"evt_1","created":3,"type":"tui.toast.show","location":{"directory":"/somewhere/else"},"data":{"title":"Elsewhere","message":"Not for this location","variant":"error"}}}, + {"event":{"id":"evt_2","created":3,"type":"tui.toast.show","location":{"directory":"/tmp/opencode/packages/tui"},"data":{"message":"Deployed to staging","variant":"success"}}}, + {"checkpoint":"toast","until":"Deployed to staging","masks":[{"x":16,"y":16,"width":84,"height":1,"reason":"the placeholder example: random in TS and Rust"}],"fixture":"rs-theme-colors/cursor-dark-events/toast"}, + {"event":{"id":"evt_3","created":3,"type":"tui.session.select","location":{"directory":"/tmp/opencode/packages/tui"},"data":{"sessionID":"ses_b"}}}, + {"checkpoint":"selected","until":"The parser drops the last token.","fixture":"rs-theme-colors/cursor-dark-events/selected"}, + {"event":{"id":"evt_4","created":4,"type":"session.deleted","durable":{"aggregateID":"ses_b","seq":1,"version":1},"location":{"directory":"/tmp/opencode/packages/tui"},"data":{"sessionID":"ses_b"}}}, + {"checkpoint":"deleted","until":"was deleted","masks":[{"x":16,"y":16,"width":84,"height":1,"reason":"the placeholder example: random in TS and Rust"}],"fixture":"rs-theme-colors/cursor-dark-events/deleted"}, + {"event":{"id":"evt_5","created":3,"type":"tui.command.execute","location":{"directory":"/tmp/opencode/packages/tui"},"data":{"command":"help.show"}}}, + {"checkpoint":"command","until":"Help","masks":[{"x":16,"y":16,"width":3,"height":1,"reason":"the placeholder example: random in TS and Rust"}],"fixture":"rs-theme-colors/cursor-dark-events/command"} + ], + "requests": { + "writes": [], + "reads": [ + {"method":"GET","path":"/api/agent","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":[]}}, + {"method":"GET","path":"/api/command","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":[]}}, + {"method":"GET","path":"/api/config","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":[]}, + {"method":"GET","path":"/api/experimental/job","query":{"descendants":["true"],"sessionID":["ses_b"],"status":["running"]},"status":200,"json":{"data":[]}}, + {"method":"GET","path":"/api/experimental/migration/v1","query":{},"status":200,"json":{"status":"completed"}}, + {"method":"GET","path":"/api/experimental/session/ses_b/terminal","query":{},"status":200,"json":{"data":[]}}, + {"method":"GET","path":"/api/form","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode"}},"data":[]}}, + {"method":"GET","path":"/api/fs/list","query":{"location[directory]":["<cwd>"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":[]}}, + {"method":"GET","path":"/api/info","query":{},"status":200,"json":{"version":"test","pid":0,"urls":[],"paths":{"tmp":"/tmp"},"capabilities":{"persistentPty":true}}}, + {"method":"GET","path":"/api/integration","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":[]}}, + {"method":"GET","path":"/api/location","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}}}, + {"method":"GET","path":"/api/mcp","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":[]}}, + {"method":"GET","path":"/api/mcp/resource","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":{"resources":[],"templates":[]}}}, + {"method":"GET","path":"/api/model","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":[]}}, + {"method":"GET","path":"/api/plugin","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":[]}}, + {"method":"GET","path":"/api/project","query":{},"status":200,"json":[]}, + {"method":"GET","path":"/api/provider","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":[]}}, + {"method":"GET","path":"/api/reference","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode/packages/tui","canonical":"/tmp/opencode/packages/tui"}},"data":[]}}, + {"method":"GET","path":"/api/session","query":{"limit":["200"],"order":["desc"],"parentID":["ses_b"]},"status":200,"json":{"data":[],"cursor":{}}}, + {"method":"GET","path":"/api/session/active","query":{},"status":200,"json":{"data":{}}}, + {"method":"GET","path":"/api/session/ses_b","query":{},"status":200,"json":{"data":{"id":"ses_b","title":"Fix the parser","projectID":"proj_test","cost":0,"tokens":{"input":0,"output":0,"reasoning":0,"cache":{"read":0,"write":0}},"time":{"created":2,"updated":2},"location":{"directory":"/tmp/opencode/packages/tui"}}}}, + {"method":"GET","path":"/api/session/ses_b/form","query":{},"status":200,"json":{"data":[]}}, + {"method":"GET","path":"/api/session/ses_b/inbox","query":{},"status":200,"json":{"data":[]}}, + {"method":"GET","path":"/api/session/ses_b/message","query":{"limit":["20"],"order":["desc"]},"status":200,"json":{"data":[{"id":"msg_2","type":"assistant","agent":"build","model":{"providerID":"provider","id":"model"},"content":[{"type":"text","text":"The parser drops the last token."}],"finish":"stop","time":{"created":2,"completed":3}},{"id":"msg_1","type":"user","text":"Why?","time":{"created":1}}],"cursor":{}}}, + {"method":"GET","path":"/api/session/ses_b/permission","query":{},"status":200,"json":{"data":[]}}, + {"method":"GET","path":"/api/shell","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":[]}}, + {"method":"GET","path":"/api/skill","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":[]}}, + {"method":"GET","path":"/api/vcs","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":{"branch":{"current":"main","default":"main"}}}}, + {"method":"POST","path":"/api/rpc/opencode.goal/get","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"body":{"input":{"sessionID":"ses_b"}},"status":200,"json":{"output":null}} + ] + } +} diff --git a/packages/cli-rs/parity/fixtures/rs-theme-colors/cursor-dark-events/command.json b/packages/cli-rs/parity/fixtures/rs-theme-colors/cursor-dark-events/command.json new file mode 100644 index 000000000000..67e83779be36 --- /dev/null +++ b/packages/cli-rs/parity/fixtures/rs-theme-colors/cursor-dark-events/command.json @@ -0,0 +1,32 @@ +{"width":100,"height":30,"styles":["#ffffffff #0a0a0aff 0","#35424fff #0a0a0aff 0","#ffffffff #111111ff 0","#5e5e5eff #111111ff 0","#2d2d2dff #111111ff 0","#ffffffff #1f1f1fff 0","#e4e4e4ff #1f1f1fff 0","#686868ff #1f1f1fff 0","#ffffffff #292929ff 0","#5e5e5eff #0a0a0aff 0","#e4e4e4ff #292929ff 0","#6e6e6eff #292929ff 0","#00000000 #00000000 0","#111111ff #0a0a0aff 0","#292929ff #0a0a0aff 0"],"lines":[ +[" ",[[0,100]]], +[" ┃ ┃ ",[[0,53],[1,1],[2,43],[1,1],[0,2]]], +[" ┃ Session \"Fix the parser\" was deleted x ┃ ",[[0,53],[1,1],[2,2],[3,7],[2,1],[3,4],[2,1],[3,3],[2,1],[3,7],[2,1],[3,3],[2,1],[3,7],[2,2],[4,1],[2,2],[1,1],[0,2]]], +[" ┃ ┃ ",[[0,53],[1,1],[2,43],[1,1],[0,2]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,20],[5,60],[0,20]]], +[" Help esc/enter ",[[0,20],[5,3],[6,4],[5,41],[7,9],[5,3],[0,20]]], +[" ",[[0,20],[5,60],[0,20]]], +[" Press ctrl+p to see all available actions and commands ",[[0,20],[5,3],[7,54],[5,3],[0,20]]], +[" in any context. ",[[0,20],[5,3],[7,15],[5,42],[0,20]]], +[" ",[[0,20],[5,60],[0,20]]], +[" ",[[0,20],[8,60],[0,20]]], +[" ┃ ok enter ",[[0,13],[9,1],[2,6],[8,49],[10,2],[11,6],[8,3],[2,8],[0,12]]], +[" ┃ ",[[0,13],[9,1],[2,2],[12,3],[2,1],[8,60],[2,8],[0,12]]], +[" ┃ ",[[0,13],[9,1],[2,74],[0,12]]], +[" ┃ ",[[0,13],[9,1],[2,74],[0,12]]], +[" ╹▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀ ",[[0,13],[9,1],[13,74],[0,12]]], +[" /tmp/opencode/packages/tui:main shift+tab agents ctrl+p commands ",[[0,13],[14,31],[0,11],[9,9],[0,1],[14,6],[0,2],[9,6],[0,1],[14,8],[0,12]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" test ",[[0,94],[14,4],[0,2]]], +[" ",[[0,100]]] +]} diff --git a/packages/cli-rs/parity/fixtures/rs-theme-colors/cursor-dark-events/deleted.json b/packages/cli-rs/parity/fixtures/rs-theme-colors/cursor-dark-events/deleted.json new file mode 100644 index 000000000000..c53eb8173787 --- /dev/null +++ b/packages/cli-rs/parity/fixtures/rs-theme-colors/cursor-dark-events/deleted.json @@ -0,0 +1,32 @@ +{"width":100,"height":30,"styles":["#ffffffff #181818ff 0","#81a1c1ff #181818ff 0","#ffffffff #292929ff 0","#e4e4e4ff #292929ff 0","#6e6e6eff #292929ff 0","#636363ff #181818ff 0","#e4e4e4ff #181818ff 1","#838383ff #4b4b4bff 0","#e4e4e4ff #4b4b4bff 1","#4b4b4bff #181818ff 0","#e4e4e4ff #181818ff 0","#00000000 #00000000 0","#292929ff #181818ff 0"],"lines":[ +[" ",[[0,100]]], +[" ┃ ┃ ",[[0,53],[1,1],[2,43],[1,1],[0,2]]], +[" ┃ Session \"Fix the parser\" was deleted x ┃ ",[[0,53],[1,1],[2,2],[3,36],[2,2],[4,1],[2,2],[1,1],[0,2]]], +[" ┃ ┃ ",[[0,53],[1,1],[2,43],[1,1],[0,2]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ▄ ",[[0,31],[5,19],[0,1],[6,19],[0,30]]], +[" █▀▀█ █▀▀█ █▀▀█ █▀▀▄ █▀▀▀ █▀▀█ █▀▀█ █▀▀█ ",[[0,31],[5,19],[0,1],[6,19],[0,30]]], +[" █ █ █ █ █▀▀▀ █ █ █ █ █ █ █ █▀▀▀ ",[[0,31],[5,1],[7,2],[5,3],[7,2],[5,3],[7,3],[5,2],[7,2],[5,1],[0,1],[6,1],[8,3],[6,2],[8,2],[6,3],[8,2],[6,3],[8,3],[0,30]]], +[" ▀▀▀▀ █▀▀▀ ▀▀▀▀ ▀▀▀▀ ▀▀▀▀ ▀▀▀▀ ▀▀▀▀ ▀▀▀▀ ",[[0,31],[5,16],[9,2],[5,1],[0,1],[6,19],[0,30]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ┃ ",[[0,13],[10,1],[2,74],[0,12]]], +[" ┃ ",[[0,13],[10,1],[2,2],[11,84]]], +[" ┃ ",[[0,13],[10,1],[2,74],[0,12]]], +[" ┃ ",[[0,13],[10,1],[2,74],[0,12]]], +[" ╹▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀ ",[[0,13],[10,1],[12,74],[0,12]]], +[" /tmp/opencode/packages/tui:main shift+tab agents ctrl+p commands ",[[0,13],[5,31],[0,11],[10,10],[5,6],[0,2],[10,7],[5,8],[0,12]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" test ",[[0,94],[5,4],[0,2]]], +[" ",[[0,100]]] +]} diff --git a/packages/cli-rs/parity/fixtures/rs-theme-colors/cursor-dark-events/home.json b/packages/cli-rs/parity/fixtures/rs-theme-colors/cursor-dark-events/home.json new file mode 100644 index 000000000000..b36a3e93a664 --- /dev/null +++ b/packages/cli-rs/parity/fixtures/rs-theme-colors/cursor-dark-events/home.json @@ -0,0 +1,32 @@ +{"width":100,"height":30,"styles":["#ffffffff #181818ff 0","#636363ff #181818ff 0","#e4e4e4ff #181818ff 1","#838383ff #4b4b4bff 0","#e4e4e4ff #4b4b4bff 1","#4b4b4bff #181818ff 0","#e4e4e4ff #181818ff 0","#ffffffff #292929ff 0","#00000000 #00000000 0","#292929ff #181818ff 0"],"lines":[ +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ▄ ",[[0,31],[1,19],[0,1],[2,19],[0,30]]], +[" █▀▀█ █▀▀█ █▀▀█ █▀▀▄ █▀▀▀ █▀▀█ █▀▀█ █▀▀█ ",[[0,31],[1,19],[0,1],[2,19],[0,30]]], +[" █ █ █ █ █▀▀▀ █ █ █ █ █ █ █ █▀▀▀ ",[[0,31],[1,1],[3,2],[1,3],[3,2],[1,3],[3,3],[1,2],[3,2],[1,1],[0,1],[2,1],[4,3],[2,2],[4,2],[2,3],[4,2],[2,3],[4,3],[0,30]]], +[" ▀▀▀▀ █▀▀▀ ▀▀▀▀ ▀▀▀▀ ▀▀▀▀ ▀▀▀▀ ▀▀▀▀ ▀▀▀▀ ",[[0,31],[1,16],[5,2],[1,1],[0,1],[2,19],[0,30]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ┃ ",[[0,13],[6,1],[7,74],[0,12]]], +[" ┃ ",[[0,13],[6,1],[7,2],[8,84]]], +[" ┃ ",[[0,13],[6,1],[7,74],[0,12]]], +[" ┃ ",[[0,13],[6,1],[7,74],[0,12]]], +[" ╹▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀ ",[[0,13],[6,1],[9,74],[0,12]]], +[" /tmp/opencode/packages/tui:main shift+tab agents ctrl+p commands ",[[0,13],[1,31],[0,11],[6,10],[1,6],[0,2],[6,7],[1,8],[0,12]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" test ",[[0,94],[1,4],[0,2]]], +[" ",[[0,100]]] +]} diff --git a/packages/cli-rs/parity/fixtures/rs-theme-colors/cursor-dark-events/selected.json b/packages/cli-rs/parity/fixtures/rs-theme-colors/cursor-dark-events/selected.json new file mode 100644 index 000000000000..4f6b3b07e359 --- /dev/null +++ b/packages/cli-rs/parity/fixtures/rs-theme-colors/cursor-dark-events/selected.json @@ -0,0 +1,32 @@ +{"width":100,"height":30,"styles":["#ffffffff #181818ff 0","#81a1c1ff #1f1f1fff 0","#ffffffff #1f1f1fff 0","#3fa266ff #1f1f1fff 0","#ffffffff #292929ff 0","#e4e4e4ff #1f1f1fff 0","#e4e4e4ff #292929ff 0","#6e6e6eff #292929ff 0","#e4e4e4ff #181818ff 0","#81a1c1ff #181818ff 0","#636363ff #181818ff 0","#292929ff #181818ff 0"],"lines":[ +[" ",[[0,100]]], +[" ┃ ┃ ┃ ",[[0,2],[1,1],[2,67],[3,1],[4,26],[3,1],[0,2]]], +[" ┃ Why? ┃ Deployed to staging x ┃ ",[[0,2],[1,1],[2,2],[5,4],[2,61],[3,1],[4,2],[6,19],[4,2],[7,1],[4,2],[3,1],[0,2]]], +[" ┃ ┃ ┃ ",[[0,2],[1,1],[2,67],[3,1],[4,26],[3,1],[0,2]]], +[" ",[[0,100]]], +[" The parser drops the last token. ",[[0,5],[8,32],[0,63]]], +[" ",[[0,100]]], +[" Build · provider/model · 2ms ",[[0,5],[9,5],[10,23],[0,67]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ┃ ",[[0,2],[8,1],[4,95],[0,2]]], +[" ┃ ",[[0,2],[8,1],[4,95],[0,2]]], +[" ┃ ",[[0,2],[8,1],[4,95],[0,2]]], +[" ┃ ",[[0,2],[8,1],[4,95],[0,2]]], +[" ╹▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀ ",[[0,2],[8,1],[11,95],[0,2]]], +[" /tmp/opencode/packages/tui:main shift+tab agents ctrl+p commands ",[[0,2],[10,31],[0,32],[8,10],[10,6],[0,2],[8,7],[10,8],[0,2]]], +[" ",[[0,100]]] +]} diff --git a/packages/cli-rs/parity/fixtures/rs-theme-colors/cursor-dark-events/toast.json b/packages/cli-rs/parity/fixtures/rs-theme-colors/cursor-dark-events/toast.json new file mode 100644 index 000000000000..6835e4782275 --- /dev/null +++ b/packages/cli-rs/parity/fixtures/rs-theme-colors/cursor-dark-events/toast.json @@ -0,0 +1,32 @@ +{"width":100,"height":30,"styles":["#ffffffff #181818ff 0","#3fa266ff #181818ff 0","#ffffffff #292929ff 0","#e4e4e4ff #292929ff 0","#6e6e6eff #292929ff 0","#636363ff #181818ff 0","#e4e4e4ff #181818ff 1","#838383ff #4b4b4bff 0","#e4e4e4ff #4b4b4bff 1","#4b4b4bff #181818ff 0","#e4e4e4ff #181818ff 0","#00000000 #00000000 0","#292929ff #181818ff 0"],"lines":[ +[" ",[[0,100]]], +[" ┃ ┃ ",[[0,70],[1,1],[2,26],[1,1],[0,2]]], +[" ┃ Deployed to staging x ┃ ",[[0,70],[1,1],[2,2],[3,19],[2,2],[4,1],[2,2],[1,1],[0,2]]], +[" ┃ ┃ ",[[0,70],[1,1],[2,26],[1,1],[0,2]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ▄ ",[[0,31],[5,19],[0,1],[6,19],[0,30]]], +[" █▀▀█ █▀▀█ █▀▀█ █▀▀▄ █▀▀▀ █▀▀█ █▀▀█ █▀▀█ ",[[0,31],[5,19],[0,1],[6,19],[0,30]]], +[" █ █ █ █ █▀▀▀ █ █ █ █ █ █ █ █▀▀▀ ",[[0,31],[5,1],[7,2],[5,3],[7,2],[5,3],[7,3],[5,2],[7,2],[5,1],[0,1],[6,1],[8,3],[6,2],[8,2],[6,3],[8,2],[6,3],[8,3],[0,30]]], +[" ▀▀▀▀ █▀▀▀ ▀▀▀▀ ▀▀▀▀ ▀▀▀▀ ▀▀▀▀ ▀▀▀▀ ▀▀▀▀ ",[[0,31],[5,16],[9,2],[5,1],[0,1],[6,19],[0,30]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ┃ ",[[0,13],[10,1],[2,74],[0,12]]], +[" ┃ ",[[0,13],[10,1],[2,2],[11,84]]], +[" ┃ ",[[0,13],[10,1],[2,74],[0,12]]], +[" ┃ ",[[0,13],[10,1],[2,74],[0,12]]], +[" ╹▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀ ",[[0,13],[10,1],[12,74],[0,12]]], +[" /tmp/opencode/packages/tui:main shift+tab agents ctrl+p commands ",[[0,13],[5,31],[0,11],[10,10],[5,6],[0,2],[10,7],[5,8],[0,12]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" test ",[[0,94],[5,4],[0,2]]], +[" ",[[0,100]]] +]} diff --git a/packages/cli-rs/parity/fixtures/rs-theme-colors/cursor-dark-tools.app.json b/packages/cli-rs/parity/fixtures/rs-theme-colors/cursor-dark-tools.app.json new file mode 100644 index 000000000000..f42198749456 --- /dev/null +++ b/packages/cli-rs/parity/fixtures/rs-theme-colors/cursor-dark-tools.app.json @@ -0,0 +1,57 @@ +{ + "scenario": "rs-theme-colors/cursor-dark-tools", + "width": 100, + "height": 40, + "directory": "/tmp/opencode/packages/tui", + "config": { + "session": {"grouping":"none","verbosity":"medium"}, + "theme": {"name":"cursor","mode":"dark"}, + "animations": false, + "experimental": {"new-designs":true} + }, + "args": { + "sessionID": "ses_tools" + }, + "routes": [ + {"path":"/api/session/ses_tools","json":{"data":{"id":"ses_tools","title":"Fix the parser","projectID":"proj_test","cost":0,"tokens":{"input":0,"output":0,"reasoning":0,"cache":{"read":0,"write":0}},"time":{"created":2,"updated":2},"location":{"directory":"/tmp/opencode/packages/tui"}}}}, + {"path":"/api/session/ses_tools/message","json":{"data":[{"id":"msg_2","type":"assistant","agent":"build","model":{"providerID":"provider","id":"model"},"content":[{"type":"tool","id":"call_1","name":"shell","state":{"status":"completed","input":{"command":"cargo test parser","workdir":"/tmp/opencode/packages/tui"},"content":[{"type":"text","text":"running 2 tests\ntest next_stops_early ... FAILED\ntest next_reads ... ok"}],"metadata":{"exit":101}},"time":{"created":1600,"completed":1700}},{"type":"tool","id":"call_2","name":"read","state":{"status":"completed","input":{"path":"/tmp/opencode/packages/tui/src/parser.rs","offset":1,"limit":40},"content":[{"type":"text","text":"fn next() {}"}],"metadata":{}},"time":{"created":1600,"completed":1700}},{"type":"tool","id":"call_3","name":"edit","state":{"status":"completed","input":{"path":"/tmp/opencode/packages/tui/src/parser.rs"},"content":[{"type":"text","text":"Edited src/parser.rs"}],"metadata":{"files":[{"file":"src/parser.rs","filePath":"/tmp/opencode/packages/tui/src/parser.rs","type":"update","patch":"Index: src/parser.rs\n===================================================================\n--- src/parser.rs\n+++ src/parser.rs\n@@ -1,4 +1,4 @@\n fn next(tokens: &[Token], index: usize) -> Option<&Token> {\n- if index + 1 < tokens.len() {\n+ if index < tokens.len() {\n return tokens.get(index);\n }\n","additions":1,"deletions":1}],"diagnostics":{"/tmp/opencode/packages/tui/src/parser.rs":[{"severity":1,"message":"unused variable: `index`","range":{"start":{"line":0,"character":26}}}]}}},"time":{"created":1600,"completed":1700}}],"finish":"tool-calls","time":{"created":1500,"completed":1800}},{"id":"msg_1","type":"user","text":"Fix the off-by-one in the parser","time":{"created":1000}}],"cursor":{}}}, + {"path":"/api/session/ses_tools/inbox","json":{"data":[]}} + ], + "steps": [ + {"checkpoint":"open","until":"unused variable","fixture":"rs-theme-colors/cursor-dark-tools/open"} + ], + "requests": { + "writes": [], + "reads": [ + {"method":"GET","path":"/api/agent","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":[]}}, + {"method":"GET","path":"/api/command","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":[]}}, + {"method":"GET","path":"/api/config","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":[]}, + {"method":"GET","path":"/api/experimental/job","query":{"descendants":["true"],"sessionID":["ses_tools"],"status":["running"]},"status":200,"json":{"data":[]}}, + {"method":"GET","path":"/api/experimental/migration/v1","query":{},"status":200,"json":{"status":"completed"}}, + {"method":"GET","path":"/api/experimental/session/ses_tools/terminal","query":{},"status":200,"json":{"data":[]}}, + {"method":"GET","path":"/api/form","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode"}},"data":[]}}, + {"method":"GET","path":"/api/fs/list","query":{"location[directory]":["<cwd>"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":[]}}, + {"method":"GET","path":"/api/info","query":{},"status":200,"json":{"version":"test","pid":0,"urls":[],"paths":{"tmp":"/tmp"},"capabilities":{"persistentPty":true}}}, + {"method":"GET","path":"/api/integration","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":[]}}, + {"method":"GET","path":"/api/location","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}}}, + {"method":"GET","path":"/api/mcp","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":[]}}, + {"method":"GET","path":"/api/mcp/resource","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":{"resources":[],"templates":[]}}}, + {"method":"GET","path":"/api/model","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":[]}}, + {"method":"GET","path":"/api/plugin","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":[]}}, + {"method":"GET","path":"/api/project","query":{},"status":200,"json":[]}, + {"method":"GET","path":"/api/provider","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":[]}}, + {"method":"GET","path":"/api/reference","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode/packages/tui","canonical":"/tmp/opencode/packages/tui"}},"data":[]}}, + {"method":"GET","path":"/api/session","query":{"limit":["200"],"order":["desc"],"parentID":["ses_tools"]},"status":200,"json":{"data":[],"cursor":{}}}, + {"method":"GET","path":"/api/session/active","query":{},"status":200,"json":{"data":{}}}, + {"method":"GET","path":"/api/session/ses_tools","query":{},"status":200,"json":{"data":{"id":"ses_tools","title":"Fix the parser","projectID":"proj_test","cost":0,"tokens":{"input":0,"output":0,"reasoning":0,"cache":{"read":0,"write":0}},"time":{"created":2,"updated":2},"location":{"directory":"/tmp/opencode/packages/tui"}}}}, + {"method":"GET","path":"/api/session/ses_tools/form","query":{},"status":200,"json":{"data":[]}}, + {"method":"GET","path":"/api/session/ses_tools/inbox","query":{},"status":200,"json":{"data":[]}}, + {"method":"GET","path":"/api/session/ses_tools/message","query":{"limit":["20"],"order":["desc"]},"status":200,"json":{"data":[{"id":"msg_2","type":"assistant","agent":"build","model":{"providerID":"provider","id":"model"},"content":[{"type":"tool","id":"call_1","name":"shell","state":{"status":"completed","input":{"command":"cargo test parser","workdir":"/tmp/opencode/packages/tui"},"content":[{"type":"text","text":"running 2 tests\ntest next_stops_early ... FAILED\ntest next_reads ... ok"}],"metadata":{"exit":101}},"time":{"created":1600,"completed":1700}},{"type":"tool","id":"call_2","name":"read","state":{"status":"completed","input":{"path":"/tmp/opencode/packages/tui/src/parser.rs","offset":1,"limit":40},"content":[{"type":"text","text":"fn next() {}"}],"metadata":{}},"time":{"created":1600,"completed":1700}},{"type":"tool","id":"call_3","name":"edit","state":{"status":"completed","input":{"path":"/tmp/opencode/packages/tui/src/parser.rs"},"content":[{"type":"text","text":"Edited src/parser.rs"}],"metadata":{"files":[{"file":"src/parser.rs","filePath":"/tmp/opencode/packages/tui/src/parser.rs","type":"update","patch":"Index: src/parser.rs\n===================================================================\n--- src/parser.rs\n+++ src/parser.rs\n@@ -1,4 +1,4 @@\n fn next(tokens: &[Token], index: usize) -> Option<&Token> {\n- if index + 1 < tokens.len() {\n+ if index < tokens.len() {\n return tokens.get(index);\n }\n","additions":1,"deletions":1}],"diagnostics":{"/tmp/opencode/packages/tui/src/parser.rs":[{"severity":1,"message":"unused variable: `index`","range":{"start":{"line":0,"character":26}}}]}}},"time":{"created":1600,"completed":1700}}],"finish":"tool-calls","time":{"created":1500,"completed":1800}},{"id":"msg_1","type":"user","text":"Fix the off-by-one in the parser","time":{"created":1000}}],"cursor":{}}}, + {"method":"GET","path":"/api/session/ses_tools/permission","query":{},"status":200,"json":{"data":[]}}, + {"method":"GET","path":"/api/shell","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":[]}}, + {"method":"GET","path":"/api/skill","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":[]}}, + {"method":"GET","path":"/api/vcs","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":{"branch":{"current":"main","default":"main"}}}}, + {"method":"POST","path":"/api/rpc/opencode.goal/get","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"body":{"input":{"sessionID":"ses_tools"}},"status":200,"json":{"output":null}} + ] + } +} diff --git a/packages/cli-rs/parity/fixtures/rs-theme-colors/cursor-dark-tools/open.json b/packages/cli-rs/parity/fixtures/rs-theme-colors/cursor-dark-tools/open.json new file mode 100644 index 000000000000..b6094434d472 --- /dev/null +++ b/packages/cli-rs/parity/fixtures/rs-theme-colors/cursor-dark-tools/open.json @@ -0,0 +1,42 @@ +{"width":100,"height":40,"styles":["#ffffffff #292929ff 0","#e4e4e4ff #292929ff 1","#636363ff #181818ff 0","#ffffffff #181818ff 0","#81a1c1ff #1f1f1fff 0","#ffffffff #1f1f1fff 0","#e4e4e4ff #1f1f1fff 0","#181818ff #1f1f1fff 0","#686868ff #1f1f1fff 0","#ffffffff #141414ff 0","#878787ff #141414ff 0","#efb080ff #141414ff 0","#e4e4e4ff #141414ff 0","#e34671ff #141414ff 0","#ffffffff #35101fff 0","#97868dff #35101fff 0","#fc6b83ff #35101fff 0","#e4e4e4ff #3e1927ff 0","#82d2ceff #3e1927ff 4","#f8c762ff #3e1927ff 0","#ffffffff #3e1927ff 0","#ffffffff #1d3024ff 0","#8c958fff #1d3024ff 0","#70b489ff #1d3024ff 0","#e4e4e4ff #25392dff 0","#82d2ceff #25392dff 4","#ffffffff #25392dff 0","#82d2ceff #141414ff 4","#e34671ff #1f1f1fff 0","#e4e4e4ff #181818ff 0","#292929ff #181818ff 0"],"lines":[ +[" Fix the parser + ",[[0,3],[1,14],[0,15],[2,3],[3,65]]], +[" ",[[3,100]]], +[" ┃ ",[[3,2],[4,1],[5,95],[3,2]]], +[" ┃ Fix the off-by-one in the parser ",[[3,2],[4,1],[5,2],[6,32],[5,61],[3,2]]], +[" ┃ ",[[3,2],[4,1],[5,95],[3,2]]], +[" ",[[3,100]]], +[" ┃ ",[[3,2],[7,1],[5,95],[3,2]]], +[" ┃ $ cargo test parser ",[[3,2],[7,1],[5,2],[6,19],[5,74],[3,2]]], +[" ┃ ",[[3,2],[7,1],[5,95],[3,2]]], +[" ┃ running 2 tests ",[[3,2],[7,1],[5,2],[8,15],[5,78],[3,2]]], +[" ┃ test next_stops_early ... FAILED ",[[3,2],[7,1],[5,2],[8,32],[5,61],[3,2]]], +[" ┃ test next_reads ... ok ",[[3,2],[7,1],[5,2],[8,22],[5,71],[3,2]]], +[" ┃ ",[[3,2],[7,1],[5,95],[3,2]]], +[" ",[[3,100]]], +[" → Read src/parser.rs:1-40 ",[[3,5],[2,1],[3,1],[2,23],[3,70]]], +[" ",[[3,100]]], +[" ┃ ",[[3,2],[7,1],[5,95],[3,2]]], +[" ┃ ← Edit src/parser.rs ",[[3,2],[7,1],[5,2],[8,6],[5,1],[8,13],[5,73],[3,2]]], +[" ┃ ",[[3,2],[7,1],[5,95],[3,2]]], +[" ┃ 1 fn next(tokens: &[Token], index: usize) -> Option<&Token> { ",[[3,2],[7,1],[5,3],[9,1],[10,1],[9,3],[11,2],[12,16],[11,5],[12,10],[13,5],[12,5],[11,6],[12,2],[11,5],[12,3],[9,25],[5,3],[3,2]]], +[" ┃ 2 - if index + 1 < tokens.len() { ",[[3,2],[7,1],[5,3],[14,1],[15,1],[16,2],[14,1],[17,4],[18,2],[17,9],[19,1],[17,17],[20,51],[5,3],[3,2]]], +[" ┃ 2 + if index < tokens.len() { ",[[3,2],[7,1],[5,3],[21,1],[22,1],[23,2],[21,1],[24,4],[25,2],[24,23],[26,55],[5,3],[3,2]]], +[" ┃ 3 return tokens.get(index); ",[[3,2],[7,1],[5,3],[9,1],[10,1],[9,3],[12,8],[27,6],[12,19],[9,51],[5,3],[3,2]]], +[" ┃ 4 } ",[[3,2],[7,1],[5,3],[9,1],[10,1],[9,3],[12,5],[9,79],[5,3],[3,2]]], +[" ┃ ",[[3,2],[7,1],[5,95],[3,2]]], +[" ┃ Error [1:27] unused variable: `index` ",[[3,2],[7,1],[5,2],[28,37],[5,56],[3,2]]], +[" ┃ ",[[3,2],[7,1],[5,95],[3,2]]], +[" ",[[3,100]]], +[" ",[[3,100]]], +[" ",[[3,100]]], +[" ",[[3,100]]], +[" ",[[3,100]]], +[" ",[[3,100]]], +[" ┃ ",[[3,2],[29,1],[0,95],[3,2]]], +[" ┃ ",[[3,2],[29,1],[0,95],[3,2]]], +[" ┃ ",[[3,2],[29,1],[0,95],[3,2]]], +[" ┃ ",[[3,2],[29,1],[0,95],[3,2]]], +[" ╹▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀ ",[[3,2],[29,1],[30,95],[3,2]]], +[" /tmp/opencode/packages/tui:main shift+tab agents ctrl+p commands ",[[3,2],[2,31],[3,32],[29,10],[2,6],[3,2],[29,7],[2,8],[3,2]]], +[" ",[[3,100]]] +]} diff --git a/packages/cli-rs/parity/fixtures/rs-theme-colors/tokyonight-light-events.app.json b/packages/cli-rs/parity/fixtures/rs-theme-colors/tokyonight-light-events.app.json new file mode 100644 index 000000000000..2cf04c69c4ae --- /dev/null +++ b/packages/cli-rs/parity/fixtures/rs-theme-colors/tokyonight-light-events.app.json @@ -0,0 +1,64 @@ +{ + "scenario": "rs-theme-colors/tokyonight-light-events", + "width": 100, + "height": 30, + "directory": "/tmp/opencode/packages/tui", + "config": { + "tabs": {"mode":"off"}, + "theme": {"name":"tokyonight","mode":"light"}, + "animations": false, + "experimental": {"new-designs":true} + }, + "args": {}, + "routes": [ + {"path":"/api/session/ses_b","json":{"data":{"id":"ses_b","title":"Fix the parser","projectID":"proj_test","cost":0,"tokens":{"input":0,"output":0,"reasoning":0,"cache":{"read":0,"write":0}},"time":{"created":2,"updated":2},"location":{"directory":"/tmp/opencode/packages/tui"}}}}, + {"path":"/api/session/ses_b/message","json":{"data":[{"id":"msg_2","type":"assistant","agent":"build","model":{"providerID":"provider","id":"model"},"content":[{"type":"text","text":"The parser drops the last token."}],"finish":"stop","time":{"created":2,"completed":3}},{"id":"msg_1","type":"user","text":"Why?","time":{"created":1}}],"cursor":{}}}, + {"path":"/api/session/ses_b/inbox","json":{"data":[]}} + ], + "steps": [ + {"checkpoint":"home","until":"Ask anything","masks":[{"x":16,"y":16,"width":84,"height":1,"reason":"the placeholder example: random in TS and Rust"}],"fixture":"rs-theme-colors/tokyonight-light-events/home"}, + {"event":{"id":"evt_1","created":3,"type":"tui.toast.show","location":{"directory":"/somewhere/else"},"data":{"title":"Elsewhere","message":"Not for this location","variant":"error"}}}, + {"event":{"id":"evt_2","created":3,"type":"tui.toast.show","location":{"directory":"/tmp/opencode/packages/tui"},"data":{"message":"Deployed to staging","variant":"success"}}}, + {"checkpoint":"toast","until":"Deployed to staging","masks":[{"x":16,"y":16,"width":84,"height":1,"reason":"the placeholder example: random in TS and Rust"}],"fixture":"rs-theme-colors/tokyonight-light-events/toast"}, + {"event":{"id":"evt_3","created":3,"type":"tui.session.select","location":{"directory":"/tmp/opencode/packages/tui"},"data":{"sessionID":"ses_b"}}}, + {"checkpoint":"selected","until":"The parser drops the last token.","fixture":"rs-theme-colors/tokyonight-light-events/selected"}, + {"event":{"id":"evt_4","created":4,"type":"session.deleted","durable":{"aggregateID":"ses_b","seq":1,"version":1},"location":{"directory":"/tmp/opencode/packages/tui"},"data":{"sessionID":"ses_b"}}}, + {"checkpoint":"deleted","until":"was deleted","masks":[{"x":16,"y":16,"width":84,"height":1,"reason":"the placeholder example: random in TS and Rust"}],"fixture":"rs-theme-colors/tokyonight-light-events/deleted"}, + {"event":{"id":"evt_5","created":3,"type":"tui.command.execute","location":{"directory":"/tmp/opencode/packages/tui"},"data":{"command":"help.show"}}}, + {"checkpoint":"command","until":"Help","masks":[{"x":16,"y":16,"width":3,"height":1,"reason":"the placeholder example: random in TS and Rust"}],"fixture":"rs-theme-colors/tokyonight-light-events/command"} + ], + "requests": { + "writes": [], + "reads": [ + {"method":"GET","path":"/api/agent","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":[]}}, + {"method":"GET","path":"/api/command","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":[]}}, + {"method":"GET","path":"/api/config","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":[]}, + {"method":"GET","path":"/api/experimental/job","query":{"descendants":["true"],"sessionID":["ses_b"],"status":["running"]},"status":200,"json":{"data":[]}}, + {"method":"GET","path":"/api/experimental/migration/v1","query":{},"status":200,"json":{"status":"completed"}}, + {"method":"GET","path":"/api/experimental/session/ses_b/terminal","query":{},"status":200,"json":{"data":[]}}, + {"method":"GET","path":"/api/form","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode"}},"data":[]}}, + {"method":"GET","path":"/api/fs/list","query":{"location[directory]":["<cwd>"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":[]}}, + {"method":"GET","path":"/api/info","query":{},"status":200,"json":{"version":"test","pid":0,"urls":[],"paths":{"tmp":"/tmp"},"capabilities":{"persistentPty":true}}}, + {"method":"GET","path":"/api/integration","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":[]}}, + {"method":"GET","path":"/api/location","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}}}, + {"method":"GET","path":"/api/mcp","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":[]}}, + {"method":"GET","path":"/api/mcp/resource","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":{"resources":[],"templates":[]}}}, + {"method":"GET","path":"/api/model","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":[]}}, + {"method":"GET","path":"/api/plugin","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":[]}}, + {"method":"GET","path":"/api/project","query":{},"status":200,"json":[]}, + {"method":"GET","path":"/api/provider","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":[]}}, + {"method":"GET","path":"/api/reference","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode/packages/tui","canonical":"/tmp/opencode/packages/tui"}},"data":[]}}, + {"method":"GET","path":"/api/session","query":{"limit":["200"],"order":["desc"],"parentID":["ses_b"]},"status":200,"json":{"data":[],"cursor":{}}}, + {"method":"GET","path":"/api/session/active","query":{},"status":200,"json":{"data":{}}}, + {"method":"GET","path":"/api/session/ses_b","query":{},"status":200,"json":{"data":{"id":"ses_b","title":"Fix the parser","projectID":"proj_test","cost":0,"tokens":{"input":0,"output":0,"reasoning":0,"cache":{"read":0,"write":0}},"time":{"created":2,"updated":2},"location":{"directory":"/tmp/opencode/packages/tui"}}}}, + {"method":"GET","path":"/api/session/ses_b/form","query":{},"status":200,"json":{"data":[]}}, + {"method":"GET","path":"/api/session/ses_b/inbox","query":{},"status":200,"json":{"data":[]}}, + {"method":"GET","path":"/api/session/ses_b/message","query":{"limit":["20"],"order":["desc"]},"status":200,"json":{"data":[{"id":"msg_2","type":"assistant","agent":"build","model":{"providerID":"provider","id":"model"},"content":[{"type":"text","text":"The parser drops the last token."}],"finish":"stop","time":{"created":2,"completed":3}},{"id":"msg_1","type":"user","text":"Why?","time":{"created":1}}],"cursor":{}}}, + {"method":"GET","path":"/api/session/ses_b/permission","query":{},"status":200,"json":{"data":[]}}, + {"method":"GET","path":"/api/shell","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":[]}}, + {"method":"GET","path":"/api/skill","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":[]}}, + {"method":"GET","path":"/api/vcs","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":{"branch":{"current":"main","default":"main"}}}}, + {"method":"POST","path":"/api/rpc/opencode.goal/get","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"body":{"input":{"sessionID":"ses_b"}},"status":200,"json":{"output":null}} + ] + } +} diff --git a/packages/cli-rs/parity/fixtures/rs-theme-colors/tokyonight-light-events/command.json b/packages/cli-rs/parity/fixtures/rs-theme-colors/tokyonight-light-events/command.json new file mode 100644 index 000000000000..e3d22a0eb639 --- /dev/null +++ b/packages/cli-rs/parity/fixtures/rs-theme-colors/tokyonight-light-events/command.json @@ -0,0 +1,32 @@ +{"width":100,"height":30,"styles":["#ffffffff #5d5d5fff 0","#133360ff #5d5d5fff 0","#ffffffff #57585aff 0","#17284fff #57585aff 0","#383b43ff #57585aff 0","#ffffffff #dcdee3ff 0","#3760bfff #dcdee3ff 0","#8990a3ff #dcdee3ff 0","#ffffffff #dcdde1ff 0","#2f323aff #5d5d5fff 0","#3760bfff #dcdde1ff 0","#8990a3ff #dcdde1ff 0","#00000000 #00000000 0","#57585aff #5d5d5fff 0","#383b43ff #5d5d5fff 0","#17284fff #5d5d5fff 0"],"lines":[ +[" ",[[0,100]]], +[" ┃ ┃ ",[[0,53],[1,1],[2,43],[1,1],[0,2]]], +[" ┃ Session \"Fix the parser\" was deleted x ┃ ",[[0,53],[1,1],[2,2],[3,7],[2,1],[3,4],[2,1],[3,3],[2,1],[3,7],[2,1],[3,3],[2,1],[3,7],[2,2],[4,1],[2,2],[1,1],[0,2]]], +[" ┃ ┃ ",[[0,53],[1,1],[2,43],[1,1],[0,2]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,20],[5,60],[0,20]]], +[" Help esc/enter ",[[0,20],[5,3],[6,4],[5,41],[7,9],[5,3],[0,20]]], +[" ",[[0,20],[5,60],[0,20]]], +[" Press ctrl+p to see all available actions and commands ",[[0,20],[5,3],[7,54],[5,3],[0,20]]], +[" in any context. ",[[0,20],[5,3],[7,15],[5,42],[0,20]]], +[" ",[[0,20],[5,60],[0,20]]], +[" ",[[0,20],[8,60],[0,20]]], +[" ┃ ok enter ",[[0,13],[9,1],[2,6],[8,49],[10,2],[11,6],[8,3],[2,8],[0,12]]], +[" ┃ ",[[0,13],[9,1],[2,2],[12,3],[2,1],[8,60],[2,8],[0,12]]], +[" ┃ ",[[0,13],[9,1],[2,74],[0,12]]], +[" ┃ ",[[0,13],[9,1],[2,74],[0,12]]], +[" ╹▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀ ",[[0,13],[9,1],[13,74],[0,12]]], +[" /tmp/opencode/packages/tui:main shift+tab agents ctrl+p commands ",[[0,13],[14,31],[0,11],[15,9],[0,1],[14,6],[0,2],[15,6],[0,1],[14,8],[0,12]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" test ",[[0,94],[14,4],[0,2]]], +[" ",[[0,100]]] +]} diff --git a/packages/cli-rs/parity/fixtures/rs-theme-colors/tokyonight-light-events/deleted.json b/packages/cli-rs/parity/fixtures/rs-theme-colors/tokyonight-light-events/deleted.json new file mode 100644 index 000000000000..a2106071ecd4 --- /dev/null +++ b/packages/cli-rs/parity/fixtures/rs-theme-colors/tokyonight-light-events/deleted.json @@ -0,0 +1,32 @@ +{"width":100,"height":30,"styles":["#ffffffff #e1e2e7ff 0","#2e7de9ff #e1e2e7ff 0","#ffffffff #d4d5daff 0","#3760bfff #d4d5daff 0","#8990a3ff #d4d5daff 0","#8990a3ff #e1e2e7ff 0","#3760bfff #e1e2e7ff 1","#8990a3ff #cbced6ff 0","#3760bfff #b7c2ddff 1","#cbced6ff #e1e2e7ff 0","#737a8cff #e1e2e7ff 0","#00000000 #00000000 0","#d4d5daff #e1e2e7ff 0","#3760bfff #e1e2e7ff 0"],"lines":[ +[" ",[[0,100]]], +[" ┃ ┃ ",[[0,53],[1,1],[2,43],[1,1],[0,2]]], +[" ┃ Session \"Fix the parser\" was deleted x ┃ ",[[0,53],[1,1],[2,2],[3,36],[2,2],[4,1],[2,2],[1,1],[0,2]]], +[" ┃ ┃ ",[[0,53],[1,1],[2,43],[1,1],[0,2]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ▄ ",[[0,31],[5,19],[0,1],[6,19],[0,30]]], +[" █▀▀█ █▀▀█ █▀▀█ █▀▀▄ █▀▀▀ █▀▀█ █▀▀█ █▀▀█ ",[[0,31],[5,19],[0,1],[6,19],[0,30]]], +[" █ █ █ █ █▀▀▀ █ █ █ █ █ █ █ █▀▀▀ ",[[0,31],[5,1],[7,2],[5,3],[7,2],[5,3],[7,3],[5,2],[7,2],[5,1],[0,1],[6,1],[8,3],[6,2],[8,2],[6,3],[8,2],[6,3],[8,3],[0,30]]], +[" ▀▀▀▀ █▀▀▀ ▀▀▀▀ ▀▀▀▀ ▀▀▀▀ ▀▀▀▀ ▀▀▀▀ ▀▀▀▀ ",[[0,31],[5,16],[9,2],[5,1],[0,1],[6,19],[0,30]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ┃ ",[[0,13],[10,1],[2,74],[0,12]]], +[" ┃ ",[[0,13],[10,1],[2,2],[11,84]]], +[" ┃ ",[[0,13],[10,1],[2,74],[0,12]]], +[" ┃ ",[[0,13],[10,1],[2,74],[0,12]]], +[" ╹▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀ ",[[0,13],[10,1],[12,74],[0,12]]], +[" /tmp/opencode/packages/tui:main shift+tab agents ctrl+p commands ",[[0,13],[5,31],[0,11],[13,10],[5,6],[0,2],[13,7],[5,8],[0,12]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" test ",[[0,94],[5,4],[0,2]]], +[" ",[[0,100]]] +]} diff --git a/packages/cli-rs/parity/fixtures/rs-theme-colors/tokyonight-light-events/home.json b/packages/cli-rs/parity/fixtures/rs-theme-colors/tokyonight-light-events/home.json new file mode 100644 index 000000000000..7a6c7e862236 --- /dev/null +++ b/packages/cli-rs/parity/fixtures/rs-theme-colors/tokyonight-light-events/home.json @@ -0,0 +1,32 @@ +{"width":100,"height":30,"styles":["#ffffffff #e1e2e7ff 0","#8990a3ff #e1e2e7ff 0","#3760bfff #e1e2e7ff 1","#8990a3ff #cbced6ff 0","#3760bfff #b7c2ddff 1","#cbced6ff #e1e2e7ff 0","#737a8cff #e1e2e7ff 0","#ffffffff #d4d5daff 0","#00000000 #00000000 0","#d4d5daff #e1e2e7ff 0","#3760bfff #e1e2e7ff 0"],"lines":[ +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ▄ ",[[0,31],[1,19],[0,1],[2,19],[0,30]]], +[" █▀▀█ █▀▀█ █▀▀█ █▀▀▄ █▀▀▀ █▀▀█ █▀▀█ █▀▀█ ",[[0,31],[1,19],[0,1],[2,19],[0,30]]], +[" █ █ █ █ █▀▀▀ █ █ █ █ █ █ █ █▀▀▀ ",[[0,31],[1,1],[3,2],[1,3],[3,2],[1,3],[3,3],[1,2],[3,2],[1,1],[0,1],[2,1],[4,3],[2,2],[4,2],[2,3],[4,2],[2,3],[4,3],[0,30]]], +[" ▀▀▀▀ █▀▀▀ ▀▀▀▀ ▀▀▀▀ ▀▀▀▀ ▀▀▀▀ ▀▀▀▀ ▀▀▀▀ ",[[0,31],[1,16],[5,2],[1,1],[0,1],[2,19],[0,30]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ┃ ",[[0,13],[6,1],[7,74],[0,12]]], +[" ┃ ",[[0,13],[6,1],[7,2],[8,84]]], +[" ┃ ",[[0,13],[6,1],[7,74],[0,12]]], +[" ┃ ",[[0,13],[6,1],[7,74],[0,12]]], +[" ╹▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀ ",[[0,13],[6,1],[9,74],[0,12]]], +[" /tmp/opencode/packages/tui:main shift+tab agents ctrl+p commands ",[[0,13],[1,31],[0,11],[10,10],[1,6],[0,2],[10,7],[1,8],[0,12]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" test ",[[0,94],[1,4],[0,2]]], +[" ",[[0,100]]] +]} diff --git a/packages/cli-rs/parity/fixtures/rs-theme-colors/tokyonight-light-events/selected.json b/packages/cli-rs/parity/fixtures/rs-theme-colors/tokyonight-light-events/selected.json new file mode 100644 index 000000000000..7e9a6c9874be --- /dev/null +++ b/packages/cli-rs/parity/fixtures/rs-theme-colors/tokyonight-light-events/selected.json @@ -0,0 +1,32 @@ +{"width":100,"height":30,"styles":["#ffffffff #e1e2e7ff 0","#9854f1ff #dcdde1ff 0","#ffffffff #dcdde1ff 0","#587539ff #dcdde1ff 0","#ffffffff #d4d5daff 0","#3760bfff #dcdde1ff 0","#3760bfff #d4d5daff 0","#8990a3ff #d4d5daff 0","#3760bfff #e1e2e7ff 0","#9854f1ff #e1e2e7ff 0","#8990a3ff #e1e2e7ff 0","#737a8cff #e1e2e7ff 0","#d4d5daff #e1e2e7ff 0"],"lines":[ +[" ",[[0,100]]], +[" ┃ ┃ ┃ ",[[0,2],[1,1],[2,67],[3,1],[4,26],[3,1],[0,2]]], +[" ┃ Why? ┃ Deployed to staging x ┃ ",[[0,2],[1,1],[2,2],[5,4],[2,61],[3,1],[4,2],[6,19],[4,2],[7,1],[4,2],[3,1],[0,2]]], +[" ┃ ┃ ┃ ",[[0,2],[1,1],[2,67],[3,1],[4,26],[3,1],[0,2]]], +[" ",[[0,100]]], +[" The parser drops the last token. ",[[0,5],[8,32],[0,63]]], +[" ",[[0,100]]], +[" Build · provider/model · 2ms ",[[0,5],[9,5],[10,23],[0,67]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ┃ ",[[0,2],[11,1],[4,95],[0,2]]], +[" ┃ ",[[0,2],[11,1],[4,95],[0,2]]], +[" ┃ ",[[0,2],[11,1],[4,95],[0,2]]], +[" ┃ ",[[0,2],[11,1],[4,95],[0,2]]], +[" ╹▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀ ",[[0,2],[11,1],[12,95],[0,2]]], +[" /tmp/opencode/packages/tui:main shift+tab agents ctrl+p commands ",[[0,2],[10,31],[0,32],[8,10],[10,6],[0,2],[8,7],[10,8],[0,2]]], +[" ",[[0,100]]] +]} diff --git a/packages/cli-rs/parity/fixtures/rs-theme-colors/tokyonight-light-events/toast.json b/packages/cli-rs/parity/fixtures/rs-theme-colors/tokyonight-light-events/toast.json new file mode 100644 index 000000000000..4fd11a562694 --- /dev/null +++ b/packages/cli-rs/parity/fixtures/rs-theme-colors/tokyonight-light-events/toast.json @@ -0,0 +1,32 @@ +{"width":100,"height":30,"styles":["#ffffffff #e1e2e7ff 0","#587539ff #e1e2e7ff 0","#ffffffff #d4d5daff 0","#3760bfff #d4d5daff 0","#8990a3ff #d4d5daff 0","#8990a3ff #e1e2e7ff 0","#3760bfff #e1e2e7ff 1","#8990a3ff #cbced6ff 0","#3760bfff #b7c2ddff 1","#cbced6ff #e1e2e7ff 0","#737a8cff #e1e2e7ff 0","#00000000 #00000000 0","#d4d5daff #e1e2e7ff 0","#3760bfff #e1e2e7ff 0"],"lines":[ +[" ",[[0,100]]], +[" ┃ ┃ ",[[0,70],[1,1],[2,26],[1,1],[0,2]]], +[" ┃ Deployed to staging x ┃ ",[[0,70],[1,1],[2,2],[3,19],[2,2],[4,1],[2,2],[1,1],[0,2]]], +[" ┃ ┃ ",[[0,70],[1,1],[2,26],[1,1],[0,2]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ▄ ",[[0,31],[5,19],[0,1],[6,19],[0,30]]], +[" █▀▀█ █▀▀█ █▀▀█ █▀▀▄ █▀▀▀ █▀▀█ █▀▀█ █▀▀█ ",[[0,31],[5,19],[0,1],[6,19],[0,30]]], +[" █ █ █ █ █▀▀▀ █ █ █ █ █ █ █ █▀▀▀ ",[[0,31],[5,1],[7,2],[5,3],[7,2],[5,3],[7,3],[5,2],[7,2],[5,1],[0,1],[6,1],[8,3],[6,2],[8,2],[6,3],[8,2],[6,3],[8,3],[0,30]]], +[" ▀▀▀▀ █▀▀▀ ▀▀▀▀ ▀▀▀▀ ▀▀▀▀ ▀▀▀▀ ▀▀▀▀ ▀▀▀▀ ",[[0,31],[5,16],[9,2],[5,1],[0,1],[6,19],[0,30]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ┃ ",[[0,13],[10,1],[2,74],[0,12]]], +[" ┃ ",[[0,13],[10,1],[2,2],[11,84]]], +[" ┃ ",[[0,13],[10,1],[2,74],[0,12]]], +[" ┃ ",[[0,13],[10,1],[2,74],[0,12]]], +[" ╹▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀ ",[[0,13],[10,1],[12,74],[0,12]]], +[" /tmp/opencode/packages/tui:main shift+tab agents ctrl+p commands ",[[0,13],[5,31],[0,11],[13,10],[5,6],[0,2],[13,7],[5,8],[0,12]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" ",[[0,100]]], +[" test ",[[0,94],[5,4],[0,2]]], +[" ",[[0,100]]] +]} diff --git a/packages/cli-rs/parity/fixtures/rs-theme-colors/tokyonight-light-sidebar.app.json b/packages/cli-rs/parity/fixtures/rs-theme-colors/tokyonight-light-sidebar.app.json new file mode 100644 index 000000000000..1241b5a3e022 --- /dev/null +++ b/packages/cli-rs/parity/fixtures/rs-theme-colors/tokyonight-light-sidebar.app.json @@ -0,0 +1,65 @@ +{ + "scenario": "rs-theme-colors/tokyonight-light-sidebar", + "width": 140, + "height": 34, + "directory": "/tmp/opencode/packages/tui", + "config": { + "experimental": {"new-designs":true}, + "theme": {"name":"tokyonight","mode":"light"}, + "animations": false + }, + "args": { + "sessionID": "ses_s" + }, + "routes": [ + {"path":"/api/session/ses_s","json":{"data":{"id":"ses_s","title":"Plan the release","projectID":"proj_test","cost":0.42,"tokens":{"input":0,"output":0,"reasoning":0,"cache":{"read":0,"write":0}},"time":{"created":2,"updated":2},"location":{"directory":"/tmp/opencode/packages/tui"}}}}, + {"path":"/api/session/ses_s/message","json":{"data":[{"id":"msg_2","type":"assistant","agent":"build","model":{"providerID":"provider","id":"model"},"content":[{"type":"text","text":"The release plan is ready."},{"type":"tool","id":"call_1","name":"todowrite","state":{"status":"completed","input":{"todos":[{"content":"Write the changelog","status":"completed"},{"content":"Tag the release","status":"in_progress"},{"content":"Announce it","status":"pending"}]},"content":[]},"time":{"created":2,"ran":2,"completed":3}}],"finish":"stop","time":{"created":2,"completed":3},"cost":0.42,"tokens":{"input":20000,"output":500,"reasoning":0,"cache":{"read":4500,"write":0}}},{"id":"msg_1","type":"user","text":"Plan it","time":{"created":1}}],"cursor":{}}}, + {"path":"/api/session/ses_s/inbox","json":{"data":[]}}, + {"path":"/api/model","json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":[{"id":"model","modelID":"model","providerID":"provider","name":"Model","capabilities":{"tools":true,"input":["text"],"output":["text"]},"variants":[],"time":{"released":0},"cost":[{"input":3,"output":15,"cache":{"read":0.3,"write":3.75}}],"status":"active","enabled":true,"limit":{"context":200000,"output":32000}}]}}, + {"path":"/api/integration","json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":[{"id":"anthropic","name":"Anthropic","methods":[],"connections":[]}]}}, + {"path":"/api/mcp","json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":[{"name":"github","status":{"status":"connected"}},{"name":"linear","status":{"status":"failed","error":"spawn ENOENT"}},{"name":"figma","status":{"status":"needs_auth","error":"sign in"}}]}} + ], + "steps": [ + {"checkpoint":"docked","until":"The release plan is ready.","fixture":"rs-theme-colors/tokyonight-light-sidebar/docked"}, + {"click":[100,9]}, + {"checkpoint":"folded","until":"(1 active, 2 errors)","fixture":"rs-theme-colors/tokyonight-light-sidebar/folded"}, + {"keys":["ctrl+x","b"]}, + {"checkpoint":"hidden","fixture":"rs-theme-colors/tokyonight-light-sidebar/hidden"}, + {"keys":["ctrl+x","b"]}, + {"checkpoint":"shown","until":"Getting started","fixture":"rs-theme-colors/tokyonight-light-sidebar/shown"} + ], + "requests": { + "writes": [], + "reads": [ + {"method":"GET","path":"/api/agent","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":[]}}, + {"method":"GET","path":"/api/command","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":[]}}, + {"method":"GET","path":"/api/config","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":[]}, + {"method":"GET","path":"/api/experimental/job","query":{"descendants":["true"],"sessionID":["ses_s"],"status":["running"]},"status":200,"json":{"data":[]}}, + {"method":"GET","path":"/api/experimental/migration/v1","query":{},"status":200,"json":{"status":"completed"}}, + {"method":"GET","path":"/api/experimental/session/ses_s/terminal","query":{},"status":200,"json":{"data":[]}}, + {"method":"GET","path":"/api/form","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode"}},"data":[]}}, + {"method":"GET","path":"/api/fs/list","query":{"location[directory]":["<cwd>"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":[]}}, + {"method":"GET","path":"/api/info","query":{},"status":200,"json":{"version":"test","pid":0,"urls":[],"paths":{"tmp":"/tmp"},"capabilities":{"persistentPty":true}}}, + {"method":"GET","path":"/api/integration","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":[{"id":"anthropic","name":"Anthropic","methods":[],"connections":[]}]}}, + {"method":"GET","path":"/api/location","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}}}, + {"method":"GET","path":"/api/mcp","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":[{"name":"github","status":{"status":"connected"}},{"name":"linear","status":{"status":"failed","error":"spawn ENOENT"}},{"name":"figma","status":{"status":"needs_auth","error":"sign in"}}]}}, + {"method":"GET","path":"/api/mcp/resource","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":{"resources":[],"templates":[]}}}, + {"method":"GET","path":"/api/model","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":[{"id":"model","modelID":"model","providerID":"provider","name":"Model","capabilities":{"tools":true,"input":["text"],"output":["text"]},"variants":[],"time":{"released":0},"cost":[{"input":3,"output":15,"cache":{"read":0.3,"write":3.75}}],"status":"active","enabled":true,"limit":{"context":200000,"output":32000}}]}}, + {"method":"GET","path":"/api/plugin","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":[]}}, + {"method":"GET","path":"/api/project","query":{},"status":200,"json":[]}, + {"method":"GET","path":"/api/provider","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":[]}}, + {"method":"GET","path":"/api/reference","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode/packages/tui","canonical":"/tmp/opencode/packages/tui"}},"data":[]}}, + {"method":"GET","path":"/api/session","query":{"limit":["200"],"order":["desc"],"parentID":["ses_s"]},"status":200,"json":{"data":[],"cursor":{}}}, + {"method":"GET","path":"/api/session/active","query":{},"status":200,"json":{"data":{}}}, + {"method":"GET","path":"/api/session/ses_s","query":{},"status":200,"json":{"data":{"id":"ses_s","title":"Plan the release","projectID":"proj_test","cost":0.42,"tokens":{"input":0,"output":0,"reasoning":0,"cache":{"read":0,"write":0}},"time":{"created":2,"updated":2},"location":{"directory":"/tmp/opencode/packages/tui"}}}}, + {"method":"GET","path":"/api/session/ses_s/form","query":{},"status":200,"json":{"data":[]}}, + {"method":"GET","path":"/api/session/ses_s/inbox","query":{},"status":200,"json":{"data":[]}}, + {"method":"GET","path":"/api/session/ses_s/message","query":{"limit":["20"],"order":["desc"]},"status":200,"json":{"data":[{"id":"msg_2","type":"assistant","agent":"build","model":{"providerID":"provider","id":"model"},"content":[{"type":"text","text":"The release plan is ready."},{"type":"tool","id":"call_1","name":"todowrite","state":{"status":"completed","input":{"todos":[{"content":"Write the changelog","status":"completed"},{"content":"Tag the release","status":"in_progress"},{"content":"Announce it","status":"pending"}]},"content":[]},"time":{"created":2,"ran":2,"completed":3}}],"finish":"stop","time":{"created":2,"completed":3},"cost":0.42,"tokens":{"input":20000,"output":500,"reasoning":0,"cache":{"read":4500,"write":0}}},{"id":"msg_1","type":"user","text":"Plan it","time":{"created":1}}],"cursor":{}}}, + {"method":"GET","path":"/api/session/ses_s/permission","query":{},"status":200,"json":{"data":[]}}, + {"method":"GET","path":"/api/shell","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":[]}}, + {"method":"GET","path":"/api/skill","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":[]}}, + {"method":"GET","path":"/api/vcs","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":{"branch":{"current":"main","default":"main"}}}}, + {"method":"POST","path":"/api/rpc/opencode.goal/get","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"body":{"input":{"sessionID":"ses_s"}},"status":200,"json":{"output":null}} + ] + } +} diff --git a/packages/cli-rs/parity/fixtures/rs-theme-colors/tokyonight-light-sidebar/docked.json b/packages/cli-rs/parity/fixtures/rs-theme-colors/tokyonight-light-sidebar/docked.json new file mode 100644 index 000000000000..bf1a30c7b723 --- /dev/null +++ b/packages/cli-rs/parity/fixtures/rs-theme-colors/tokyonight-light-sidebar/docked.json @@ -0,0 +1,36 @@ +{"width":140,"height":34,"styles":["#ffffffff #d4d5daff 0","#3760bfff #d4d5daff 1","#8990a3ff #e1e2e7ff 0","#ffffffff #e1e2e7ff 0","#b15c00ff #e1e2e7ff 0","#b15c00ff #dcdde1ff 0","#ffffffff #dcdde1ff 0","#9854f1ff #dcdde1ff 0","#8990a3ff #d4d5daff 0","#3760bfff #dcdde1ff 0","#3760bfff #d4d5daff 0","#3760bfff #e1e2e7ff 0","#8990a3ff #dcdde1ff 0","#3760bfff #dcdde1ff 1","#9854f1ff #e1e2e7ff 0","#587539ff #dcdde1ff 0","#f52a65ff #dcdde1ff 0","#737a8cff #e1e2e7ff 0","#d4d5daff #e1e2e7ff 0"],"lines":[ +[" Plan the release + ",[[0,3],[1,16],[0,13],[2,3],[3,105]]], +[" ┃ ┃ ",[[3,81],[4,1],[0,55],[5,1],[6,2]]], +[" ┃ ┃ MCP server needs authentication › Open MCP servers ┃ ",[[3,2],[7,1],[6,78],[5,1],[0,2],[1,31],[0,2],[8,18],[0,2],[5,1],[6,2]]], +[" ┃ Plan it ┃ ┃ ",[[3,2],[7,1],[6,2],[9,7],[6,69],[5,1],[0,55],[5,1],[6,2]]], +[" ┃ ┃ Connect \"figma\" to use its tools. ┃ ",[[3,2],[7,1],[6,78],[5,1],[0,2],[10,33],[0,20],[5,1],[6,2]]], +[" ┃ ┃ ",[[3,81],[4,1],[0,55],[5,1],[6,2]]], +[" The release plan is ready. 13% used ",[[3,5],[11,26],[3,67],[6,2],[12,8],[6,32]]], +[" $0.42 spent ",[[3,98],[6,2],[12,11],[6,29]]], +[" + 1 tool ",[[3,5],[2,1],[3,1],[2,6],[3,85],[6,42]]], +[" ▼ MCP ",[[3,98],[6,2],[9,1],[6,1],[13,3],[6,35]]], +[" Build · Model · 2ms • github Connected ",[[3,5],[14,5],[2,14],[3,74],[6,2],[15,1],[6,1],[13,6],[6,20],[12,9],[6,3]]], +[" • linear Error ",[[3,98],[6,2],[16,1],[6,1],[13,6],[6,24],[16,5],[6,3]]], +[" • figma Sign in ",[[3,98],[6,2],[5,1],[6,1],[13,5],[6,23],[12,7],[6,3]]], +[" ",[[3,98],[6,42]]], +[" ▼ Todo ",[[3,98],[6,2],[9,1],[6,1],[13,4],[6,34]]], +[" [✓] Write the changelog ",[[3,98],[6,2],[12,23],[6,17]]], +[" [•] Tag the release ",[[3,98],[6,2],[5,19],[6,21]]], +[" [ ] Announce it ",[[3,98],[6,2],[12,15],[6,25]]], +[" ",[[3,98],[6,42]]], +[" ",[[3,98],[6,2],[0,38],[6,2]]], +[" ⬖ Getting started ✕ ",[[3,98],[6,2],[0,2],[10,1],[0,1],[1,15],[0,16],[8,1],[0,2],[6,2]]], +[" ",[[3,98],[6,2],[0,38],[6,2]]], +[" OpenCode includes free models so ",[[3,98],[6,2],[0,4],[8,32],[0,2],[6,2]]], +[" you can start immediately. ",[[3,98],[6,2],[0,4],[8,26],[0,8],[6,2]]], +[" ",[[3,98],[6,2],[0,38],[6,2]]], +[" Connect from 75+ providers to ",[[3,98],[6,2],[0,4],[8,30],[0,4],[6,2]]], +[" use other models, including ",[[3,98],[6,2],[0,4],[8,28],[0,6],[6,2]]], +[" ┃ Claude, GPT, Gemini etc ",[[3,2],[17,1],[0,93],[3,2],[6,2],[0,4],[8,23],[0,11],[6,2]]], +[" ┃ ",[[3,2],[17,1],[0,93],[3,2],[6,2],[0,38],[6,2]]], +[" ┃ Connect provider /connect ",[[3,2],[17,1],[0,93],[3,2],[6,2],[0,4],[10,16],[0,8],[8,8],[0,2],[6,2]]], +[" ┃ ",[[3,2],[17,1],[0,93],[3,2],[6,2],[0,38],[6,2]]], +[" ╹▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀ ",[[3,2],[17,1],[18,93],[3,2],[6,42]]], +[" /tmp/opencode/packages/tui:main 25.0K (13%) · $0.42 ctrl+p commands /tmp/opencode/packages/tui:main ",[[3,2],[2,31],[3,27],[2,19],[3,2],[11,7],[2,8],[3,2],[6,2],[12,31],[6,9]]], +[" ",[[3,98],[6,42]]] +]} diff --git a/packages/cli-rs/parity/fixtures/rs-theme-colors/tokyonight-light-sidebar/folded.json b/packages/cli-rs/parity/fixtures/rs-theme-colors/tokyonight-light-sidebar/folded.json new file mode 100644 index 000000000000..64ac6b9e30f3 --- /dev/null +++ b/packages/cli-rs/parity/fixtures/rs-theme-colors/tokyonight-light-sidebar/folded.json @@ -0,0 +1,36 @@ +{"width":140,"height":34,"styles":["#ffffffff #d4d5daff 0","#3760bfff #d4d5daff 1","#8990a3ff #e1e2e7ff 0","#ffffffff #e1e2e7ff 0","#b15c00ff #e1e2e7ff 0","#b15c00ff #dcdde1ff 0","#ffffffff #dcdde1ff 0","#9854f1ff #dcdde1ff 0","#8990a3ff #d4d5daff 0","#3760bfff #dcdde1ff 0","#3760bfff #d4d5daff 0","#3760bfff #e1e2e7ff 0","#8990a3ff #dcdde1ff 0","#3760bfff #dcdde1ff 1","#9854f1ff #e1e2e7ff 0","#737a8cff #e1e2e7ff 0","#d4d5daff #e1e2e7ff 0"],"lines":[ +[" Plan the release + ",[[0,3],[1,16],[0,13],[2,3],[3,105]]], +[" ┃ ┃ ",[[3,81],[4,1],[0,55],[5,1],[6,2]]], +[" ┃ ┃ MCP server needs authentication › Open MCP servers ┃ ",[[3,2],[7,1],[6,78],[5,1],[0,2],[1,31],[0,2],[8,18],[0,2],[5,1],[6,2]]], +[" ┃ Plan it ┃ ┃ ",[[3,2],[7,1],[6,2],[9,7],[6,69],[5,1],[0,55],[5,1],[6,2]]], +[" ┃ ┃ Connect \"figma\" to use its tools. ┃ ",[[3,2],[7,1],[6,78],[5,1],[0,2],[10,33],[0,20],[5,1],[6,2]]], +[" ┃ ┃ ",[[3,81],[4,1],[0,55],[5,1],[6,2]]], +[" The release plan is ready. 13% used ",[[3,5],[11,26],[3,67],[6,2],[12,8],[6,32]]], +[" $0.42 spent ",[[3,98],[6,2],[12,11],[6,29]]], +[" + 1 tool ",[[3,5],[2,1],[3,1],[2,6],[3,85],[6,42]]], +[" ▶ MCP (1 active, 2 errors) ",[[3,98],[6,2],[9,1],[6,1],[13,3],[12,21],[6,14]]], +[" Build · Model · 2ms ",[[3,5],[14,5],[2,14],[3,74],[6,42]]], +[" ▼ Todo ",[[3,98],[6,2],[9,1],[6,1],[13,4],[6,34]]], +[" [✓] Write the changelog ",[[3,98],[6,2],[12,23],[6,17]]], +[" [•] Tag the release ",[[3,98],[6,2],[5,19],[6,21]]], +[" [ ] Announce it ",[[3,98],[6,2],[12,15],[6,25]]], +[" ",[[3,98],[6,42]]], +[" ",[[3,98],[6,42]]], +[" ",[[3,98],[6,42]]], +[" ",[[3,98],[6,42]]], +[" ",[[3,98],[6,2],[0,38],[6,2]]], +[" ⬖ Getting started ✕ ",[[3,98],[6,2],[0,2],[10,1],[0,1],[1,15],[0,16],[8,1],[0,2],[6,2]]], +[" ",[[3,98],[6,2],[0,38],[6,2]]], +[" OpenCode includes free models so ",[[3,98],[6,2],[0,4],[8,32],[0,2],[6,2]]], +[" you can start immediately. ",[[3,98],[6,2],[0,4],[8,26],[0,8],[6,2]]], +[" ",[[3,98],[6,2],[0,38],[6,2]]], +[" Connect from 75+ providers to ",[[3,98],[6,2],[0,4],[8,30],[0,4],[6,2]]], +[" use other models, including ",[[3,98],[6,2],[0,4],[8,28],[0,6],[6,2]]], +[" ┃ Claude, GPT, Gemini etc ",[[3,2],[15,1],[0,93],[3,2],[6,2],[0,4],[8,23],[0,11],[6,2]]], +[" ┃ ",[[3,2],[15,1],[0,93],[3,2],[6,2],[0,38],[6,2]]], +[" ┃ Connect provider /connect ",[[3,2],[15,1],[0,93],[3,2],[6,2],[0,4],[10,16],[0,8],[8,8],[0,2],[6,2]]], +[" ┃ ",[[3,2],[15,1],[0,93],[3,2],[6,2],[0,38],[6,2]]], +[" ╹▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀ ",[[3,2],[15,1],[16,93],[3,2],[6,42]]], +[" /tmp/opencode/packages/tui:main 25.0K (13%) · $0.42 ctrl+p commands /tmp/opencode/packages/tui:main ",[[3,2],[2,31],[3,27],[2,19],[3,2],[11,7],[2,8],[3,2],[6,2],[12,31],[6,9]]], +[" ",[[3,98],[6,42]]] +]} diff --git a/packages/cli-rs/parity/fixtures/rs-theme-colors/tokyonight-light-sidebar/hidden.json b/packages/cli-rs/parity/fixtures/rs-theme-colors/tokyonight-light-sidebar/hidden.json new file mode 100644 index 000000000000..8326cbfdb7bc --- /dev/null +++ b/packages/cli-rs/parity/fixtures/rs-theme-colors/tokyonight-light-sidebar/hidden.json @@ -0,0 +1,36 @@ +{"width":140,"height":34,"styles":["#ffffffff #d4d5daff 0","#3760bfff #d4d5daff 1","#8990a3ff #e1e2e7ff 0","#ffffffff #e1e2e7ff 0","#b15c00ff #e1e2e7ff 0","#9854f1ff #dcdde1ff 0","#ffffffff #dcdde1ff 0","#b15c00ff #dcdde1ff 0","#8990a3ff #d4d5daff 0","#3760bfff #dcdde1ff 0","#3760bfff #d4d5daff 0","#3760bfff #e1e2e7ff 0","#9854f1ff #e1e2e7ff 0","#737a8cff #e1e2e7ff 0","#d4d5daff #e1e2e7ff 0"],"lines":[ +[" Plan the release + ",[[0,3],[1,16],[0,13],[2,3],[3,105]]], +[" ┃ ┃ ",[[3,81],[4,1],[0,55],[4,1],[3,2]]], +[" ┃ ┃ MCP server needs authentication › Open MCP servers ┃ ",[[3,2],[5,1],[6,78],[7,1],[0,2],[1,31],[0,2],[8,18],[0,2],[7,1],[3,2]]], +[" ┃ Plan it ┃ ┃ ",[[3,2],[5,1],[6,2],[9,7],[6,69],[7,1],[0,55],[7,1],[3,2]]], +[" ┃ ┃ Connect \"figma\" to use its tools. ┃ ",[[3,2],[5,1],[6,78],[7,1],[0,2],[10,33],[0,20],[7,1],[3,2]]], +[" ┃ ┃ ",[[3,81],[4,1],[0,55],[4,1],[3,2]]], +[" The release plan is ready. ",[[3,5],[11,26],[3,109]]], +[" ",[[3,140]]], +[" + 1 tool ",[[3,5],[2,1],[3,1],[2,6],[3,127]]], +[" ",[[3,140]]], +[" Build · Model · 2ms ",[[3,5],[12,5],[2,14],[3,116]]], +[" ",[[3,140]]], +[" ",[[3,140]]], +[" ",[[3,140]]], +[" ",[[3,140]]], +[" ",[[3,140]]], +[" ",[[3,140]]], +[" ",[[3,140]]], +[" ",[[3,140]]], +[" ",[[3,140]]], +[" ",[[3,140]]], +[" ",[[3,140]]], +[" ",[[3,140]]], +[" ",[[3,140]]], +[" ",[[3,140]]], +[" ",[[3,140]]], +[" ",[[3,140]]], +[" ┃ ",[[3,2],[13,1],[0,135],[3,2]]], +[" ┃ ",[[3,2],[13,1],[0,135],[3,2]]], +[" ┃ ",[[3,2],[13,1],[0,135],[3,2]]], +[" ┃ ",[[3,2],[13,1],[0,135],[3,2]]], +[" ╹▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀ ",[[3,2],[13,1],[14,135],[3,2]]], +[" /tmp/opencode/packages/tui:main 25.0K (13%) · $0.42 ctrl+p commands ",[[3,2],[2,31],[3,69],[2,19],[3,2],[11,7],[2,8],[3,2]]], +[" ",[[3,140]]] +]} diff --git a/packages/cli-rs/parity/fixtures/rs-theme-colors/tokyonight-light-sidebar/shown.json b/packages/cli-rs/parity/fixtures/rs-theme-colors/tokyonight-light-sidebar/shown.json new file mode 100644 index 000000000000..64ac6b9e30f3 --- /dev/null +++ b/packages/cli-rs/parity/fixtures/rs-theme-colors/tokyonight-light-sidebar/shown.json @@ -0,0 +1,36 @@ +{"width":140,"height":34,"styles":["#ffffffff #d4d5daff 0","#3760bfff #d4d5daff 1","#8990a3ff #e1e2e7ff 0","#ffffffff #e1e2e7ff 0","#b15c00ff #e1e2e7ff 0","#b15c00ff #dcdde1ff 0","#ffffffff #dcdde1ff 0","#9854f1ff #dcdde1ff 0","#8990a3ff #d4d5daff 0","#3760bfff #dcdde1ff 0","#3760bfff #d4d5daff 0","#3760bfff #e1e2e7ff 0","#8990a3ff #dcdde1ff 0","#3760bfff #dcdde1ff 1","#9854f1ff #e1e2e7ff 0","#737a8cff #e1e2e7ff 0","#d4d5daff #e1e2e7ff 0"],"lines":[ +[" Plan the release + ",[[0,3],[1,16],[0,13],[2,3],[3,105]]], +[" ┃ ┃ ",[[3,81],[4,1],[0,55],[5,1],[6,2]]], +[" ┃ ┃ MCP server needs authentication › Open MCP servers ┃ ",[[3,2],[7,1],[6,78],[5,1],[0,2],[1,31],[0,2],[8,18],[0,2],[5,1],[6,2]]], +[" ┃ Plan it ┃ ┃ ",[[3,2],[7,1],[6,2],[9,7],[6,69],[5,1],[0,55],[5,1],[6,2]]], +[" ┃ ┃ Connect \"figma\" to use its tools. ┃ ",[[3,2],[7,1],[6,78],[5,1],[0,2],[10,33],[0,20],[5,1],[6,2]]], +[" ┃ ┃ ",[[3,81],[4,1],[0,55],[5,1],[6,2]]], +[" The release plan is ready. 13% used ",[[3,5],[11,26],[3,67],[6,2],[12,8],[6,32]]], +[" $0.42 spent ",[[3,98],[6,2],[12,11],[6,29]]], +[" + 1 tool ",[[3,5],[2,1],[3,1],[2,6],[3,85],[6,42]]], +[" ▶ MCP (1 active, 2 errors) ",[[3,98],[6,2],[9,1],[6,1],[13,3],[12,21],[6,14]]], +[" Build · Model · 2ms ",[[3,5],[14,5],[2,14],[3,74],[6,42]]], +[" ▼ Todo ",[[3,98],[6,2],[9,1],[6,1],[13,4],[6,34]]], +[" [✓] Write the changelog ",[[3,98],[6,2],[12,23],[6,17]]], +[" [•] Tag the release ",[[3,98],[6,2],[5,19],[6,21]]], +[" [ ] Announce it ",[[3,98],[6,2],[12,15],[6,25]]], +[" ",[[3,98],[6,42]]], +[" ",[[3,98],[6,42]]], +[" ",[[3,98],[6,42]]], +[" ",[[3,98],[6,42]]], +[" ",[[3,98],[6,2],[0,38],[6,2]]], +[" ⬖ Getting started ✕ ",[[3,98],[6,2],[0,2],[10,1],[0,1],[1,15],[0,16],[8,1],[0,2],[6,2]]], +[" ",[[3,98],[6,2],[0,38],[6,2]]], +[" OpenCode includes free models so ",[[3,98],[6,2],[0,4],[8,32],[0,2],[6,2]]], +[" you can start immediately. ",[[3,98],[6,2],[0,4],[8,26],[0,8],[6,2]]], +[" ",[[3,98],[6,2],[0,38],[6,2]]], +[" Connect from 75+ providers to ",[[3,98],[6,2],[0,4],[8,30],[0,4],[6,2]]], +[" use other models, including ",[[3,98],[6,2],[0,4],[8,28],[0,6],[6,2]]], +[" ┃ Claude, GPT, Gemini etc ",[[3,2],[15,1],[0,93],[3,2],[6,2],[0,4],[8,23],[0,11],[6,2]]], +[" ┃ ",[[3,2],[15,1],[0,93],[3,2],[6,2],[0,38],[6,2]]], +[" ┃ Connect provider /connect ",[[3,2],[15,1],[0,93],[3,2],[6,2],[0,4],[10,16],[0,8],[8,8],[0,2],[6,2]]], +[" ┃ ",[[3,2],[15,1],[0,93],[3,2],[6,2],[0,38],[6,2]]], +[" ╹▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀ ",[[3,2],[15,1],[16,93],[3,2],[6,42]]], +[" /tmp/opencode/packages/tui:main 25.0K (13%) · $0.42 ctrl+p commands /tmp/opencode/packages/tui:main ",[[3,2],[2,31],[3,27],[2,19],[3,2],[11,7],[2,8],[3,2],[6,2],[12,31],[6,9]]], +[" ",[[3,98],[6,42]]] +]} diff --git a/packages/cli-rs/parity/fixtures/rs-theme-colors/tokyonight-light-tools.app.json b/packages/cli-rs/parity/fixtures/rs-theme-colors/tokyonight-light-tools.app.json new file mode 100644 index 000000000000..72f86de99732 --- /dev/null +++ b/packages/cli-rs/parity/fixtures/rs-theme-colors/tokyonight-light-tools.app.json @@ -0,0 +1,57 @@ +{ + "scenario": "rs-theme-colors/tokyonight-light-tools", + "width": 100, + "height": 40, + "directory": "/tmp/opencode/packages/tui", + "config": { + "session": {"grouping":"none","verbosity":"medium"}, + "theme": {"name":"tokyonight","mode":"light"}, + "animations": false, + "experimental": {"new-designs":true} + }, + "args": { + "sessionID": "ses_tools" + }, + "routes": [ + {"path":"/api/session/ses_tools","json":{"data":{"id":"ses_tools","title":"Fix the parser","projectID":"proj_test","cost":0,"tokens":{"input":0,"output":0,"reasoning":0,"cache":{"read":0,"write":0}},"time":{"created":2,"updated":2},"location":{"directory":"/tmp/opencode/packages/tui"}}}}, + {"path":"/api/session/ses_tools/message","json":{"data":[{"id":"msg_2","type":"assistant","agent":"build","model":{"providerID":"provider","id":"model"},"content":[{"type":"tool","id":"call_1","name":"shell","state":{"status":"completed","input":{"command":"cargo test parser","workdir":"/tmp/opencode/packages/tui"},"content":[{"type":"text","text":"running 2 tests\ntest next_stops_early ... FAILED\ntest next_reads ... ok"}],"metadata":{"exit":101}},"time":{"created":1600,"completed":1700}},{"type":"tool","id":"call_2","name":"read","state":{"status":"completed","input":{"path":"/tmp/opencode/packages/tui/src/parser.rs","offset":1,"limit":40},"content":[{"type":"text","text":"fn next() {}"}],"metadata":{}},"time":{"created":1600,"completed":1700}},{"type":"tool","id":"call_3","name":"edit","state":{"status":"completed","input":{"path":"/tmp/opencode/packages/tui/src/parser.rs"},"content":[{"type":"text","text":"Edited src/parser.rs"}],"metadata":{"files":[{"file":"src/parser.rs","filePath":"/tmp/opencode/packages/tui/src/parser.rs","type":"update","patch":"Index: src/parser.rs\n===================================================================\n--- src/parser.rs\n+++ src/parser.rs\n@@ -1,4 +1,4 @@\n fn next(tokens: &[Token], index: usize) -> Option<&Token> {\n- if index + 1 < tokens.len() {\n+ if index < tokens.len() {\n return tokens.get(index);\n }\n","additions":1,"deletions":1}],"diagnostics":{"/tmp/opencode/packages/tui/src/parser.rs":[{"severity":1,"message":"unused variable: `index`","range":{"start":{"line":0,"character":26}}}]}}},"time":{"created":1600,"completed":1700}}],"finish":"tool-calls","time":{"created":1500,"completed":1800}},{"id":"msg_1","type":"user","text":"Fix the off-by-one in the parser","time":{"created":1000}}],"cursor":{}}}, + {"path":"/api/session/ses_tools/inbox","json":{"data":[]}} + ], + "steps": [ + {"checkpoint":"open","until":"unused variable","fixture":"rs-theme-colors/tokyonight-light-tools/open"} + ], + "requests": { + "writes": [], + "reads": [ + {"method":"GET","path":"/api/agent","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":[]}}, + {"method":"GET","path":"/api/command","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":[]}}, + {"method":"GET","path":"/api/config","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":[]}, + {"method":"GET","path":"/api/experimental/job","query":{"descendants":["true"],"sessionID":["ses_tools"],"status":["running"]},"status":200,"json":{"data":[]}}, + {"method":"GET","path":"/api/experimental/migration/v1","query":{},"status":200,"json":{"status":"completed"}}, + {"method":"GET","path":"/api/experimental/session/ses_tools/terminal","query":{},"status":200,"json":{"data":[]}}, + {"method":"GET","path":"/api/form","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode"}},"data":[]}}, + {"method":"GET","path":"/api/fs/list","query":{"location[directory]":["<cwd>"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":[]}}, + {"method":"GET","path":"/api/info","query":{},"status":200,"json":{"version":"test","pid":0,"urls":[],"paths":{"tmp":"/tmp"},"capabilities":{"persistentPty":true}}}, + {"method":"GET","path":"/api/integration","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":[]}}, + {"method":"GET","path":"/api/location","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}}}, + {"method":"GET","path":"/api/mcp","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":[]}}, + {"method":"GET","path":"/api/mcp/resource","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":{"resources":[],"templates":[]}}}, + {"method":"GET","path":"/api/model","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":[]}}, + {"method":"GET","path":"/api/plugin","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":[]}}, + {"method":"GET","path":"/api/project","query":{},"status":200,"json":[]}, + {"method":"GET","path":"/api/provider","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":[]}}, + {"method":"GET","path":"/api/reference","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode/packages/tui","canonical":"/tmp/opencode/packages/tui"}},"data":[]}}, + {"method":"GET","path":"/api/session","query":{"limit":["200"],"order":["desc"],"parentID":["ses_tools"]},"status":200,"json":{"data":[],"cursor":{}}}, + {"method":"GET","path":"/api/session/active","query":{},"status":200,"json":{"data":{}}}, + {"method":"GET","path":"/api/session/ses_tools","query":{},"status":200,"json":{"data":{"id":"ses_tools","title":"Fix the parser","projectID":"proj_test","cost":0,"tokens":{"input":0,"output":0,"reasoning":0,"cache":{"read":0,"write":0}},"time":{"created":2,"updated":2},"location":{"directory":"/tmp/opencode/packages/tui"}}}}, + {"method":"GET","path":"/api/session/ses_tools/form","query":{},"status":200,"json":{"data":[]}}, + {"method":"GET","path":"/api/session/ses_tools/inbox","query":{},"status":200,"json":{"data":[]}}, + {"method":"GET","path":"/api/session/ses_tools/message","query":{"limit":["20"],"order":["desc"]},"status":200,"json":{"data":[{"id":"msg_2","type":"assistant","agent":"build","model":{"providerID":"provider","id":"model"},"content":[{"type":"tool","id":"call_1","name":"shell","state":{"status":"completed","input":{"command":"cargo test parser","workdir":"/tmp/opencode/packages/tui"},"content":[{"type":"text","text":"running 2 tests\ntest next_stops_early ... FAILED\ntest next_reads ... ok"}],"metadata":{"exit":101}},"time":{"created":1600,"completed":1700}},{"type":"tool","id":"call_2","name":"read","state":{"status":"completed","input":{"path":"/tmp/opencode/packages/tui/src/parser.rs","offset":1,"limit":40},"content":[{"type":"text","text":"fn next() {}"}],"metadata":{}},"time":{"created":1600,"completed":1700}},{"type":"tool","id":"call_3","name":"edit","state":{"status":"completed","input":{"path":"/tmp/opencode/packages/tui/src/parser.rs"},"content":[{"type":"text","text":"Edited src/parser.rs"}],"metadata":{"files":[{"file":"src/parser.rs","filePath":"/tmp/opencode/packages/tui/src/parser.rs","type":"update","patch":"Index: src/parser.rs\n===================================================================\n--- src/parser.rs\n+++ src/parser.rs\n@@ -1,4 +1,4 @@\n fn next(tokens: &[Token], index: usize) -> Option<&Token> {\n- if index + 1 < tokens.len() {\n+ if index < tokens.len() {\n return tokens.get(index);\n }\n","additions":1,"deletions":1}],"diagnostics":{"/tmp/opencode/packages/tui/src/parser.rs":[{"severity":1,"message":"unused variable: `index`","range":{"start":{"line":0,"character":26}}}]}}},"time":{"created":1600,"completed":1700}}],"finish":"tool-calls","time":{"created":1500,"completed":1800}},{"id":"msg_1","type":"user","text":"Fix the off-by-one in the parser","time":{"created":1000}}],"cursor":{}}}, + {"method":"GET","path":"/api/session/ses_tools/permission","query":{},"status":200,"json":{"data":[]}}, + {"method":"GET","path":"/api/shell","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":[]}}, + {"method":"GET","path":"/api/skill","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":[]}}, + {"method":"GET","path":"/api/vcs","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"status":200,"json":{"location":{"directory":"/tmp/opencode/packages/tui","project":{"id":"proj_test","directory":"/tmp/opencode","canonical":"/tmp/opencode"}},"data":{"branch":{"current":"main","default":"main"}}}}, + {"method":"POST","path":"/api/rpc/opencode.goal/get","query":{"location[directory]":["/tmp/opencode/packages/tui"]},"body":{"input":{"sessionID":"ses_tools"}},"status":200,"json":{"output":null}} + ] + } +} diff --git a/packages/cli-rs/parity/fixtures/rs-theme-colors/tokyonight-light-tools/open.json b/packages/cli-rs/parity/fixtures/rs-theme-colors/tokyonight-light-tools/open.json new file mode 100644 index 000000000000..e8ed824257ee --- /dev/null +++ b/packages/cli-rs/parity/fixtures/rs-theme-colors/tokyonight-light-tools/open.json @@ -0,0 +1,42 @@ +{"width":100,"height":40,"styles":["#ffffffff #d4d5daff 0","#3760bfff #d4d5daff 1","#8990a3ff #e1e2e7ff 0","#ffffffff #e1e2e7ff 0","#9854f1ff #dcdde1ff 0","#ffffffff #dcdde1ff 0","#3760bfff #dcdde1ff 0","#e1e2e7ff #dcdde1ff 0","#8990a3ff #dcdde1ff 0","#ffffffff #d5d6dbff 0","#59595bff #d5d6dbff 0","#2e7de9ff #d5d6dbff 0","#3760bfff #d5d6dbff 0","#f52a65ff #d5d6dbff 0","#007197ff #d5d6dbff 0","#8c6c3eff #d5d6dbff 0","#ffffffff #e7c8cbff 0","#59595bff #e7c8cbff 0","#f52a65ff #e7c8cbff 0","#3760bfff #f7d8dbff 0","#9854f1ff #f7d8dbff 4","#f52a65ff #f7d8dbff 0","#007197ff #f7d8dbff 0","#b15c00ff #f7d8dbff 0","#ffffffff #f7d8dbff 0","#ffffffff #c5d5c5ff 0","#59595bff #c5d5c5ff 0","#4db380ff #c5d5c5ff 0","#3760bfff #d5e5d5ff 0","#9854f1ff #d5e5d5ff 4","#f52a65ff #d5e5d5ff 0","#007197ff #d5e5d5ff 0","#ffffffff #d5e5d5ff 0","#9854f1ff #d5d6dbff 4","#f52a65ff #dcdde1ff 0","#737a8cff #e1e2e7ff 0","#d4d5daff #e1e2e7ff 0","#3760bfff #e1e2e7ff 0"],"lines":[ +[" Fix the parser + ",[[0,3],[1,14],[0,15],[2,3],[3,65]]], +[" ",[[3,100]]], +[" ┃ ",[[3,2],[4,1],[5,95],[3,2]]], +[" ┃ Fix the off-by-one in the parser ",[[3,2],[4,1],[5,2],[6,32],[5,61],[3,2]]], +[" ┃ ",[[3,2],[4,1],[5,95],[3,2]]], +[" ",[[3,100]]], +[" ┃ ",[[3,2],[7,1],[5,95],[3,2]]], +[" ┃ $ cargo test parser ",[[3,2],[7,1],[5,2],[6,19],[5,74],[3,2]]], +[" ┃ ",[[3,2],[7,1],[5,95],[3,2]]], +[" ┃ running 2 tests ",[[3,2],[7,1],[5,2],[8,15],[5,78],[3,2]]], +[" ┃ test next_stops_early ... FAILED ",[[3,2],[7,1],[5,2],[8,32],[5,61],[3,2]]], +[" ┃ test next_reads ... ok ",[[3,2],[7,1],[5,2],[8,22],[5,71],[3,2]]], +[" ┃ ",[[3,2],[7,1],[5,95],[3,2]]], +[" ",[[3,100]]], +[" → Read src/parser.rs:1-40 ",[[3,5],[2,1],[3,1],[2,23],[3,70]]], +[" ",[[3,100]]], +[" ┃ ",[[3,2],[7,1],[5,95],[3,2]]], +[" ┃ ← Edit src/parser.rs ",[[3,2],[7,1],[5,2],[8,6],[5,1],[8,13],[5,73],[3,2]]], +[" ┃ ",[[3,2],[7,1],[5,95],[3,2]]], +[" ┃ 1 fn next(tokens: &[Token], index: usize) -> Option<&Token> { ",[[3,2],[7,1],[5,3],[9,1],[10,1],[9,3],[11,2],[12,1],[13,4],[12,1],[13,6],[14,1],[12,1],[14,1],[12,1],[15,5],[12,1],[14,1],[12,1],[13,5],[14,1],[12,1],[13,5],[12,2],[14,2],[12,1],[15,6],[12,1],[14,1],[15,5],[12,3],[9,25],[5,3],[3,2]]], +[" ┃ 2 - if index + 1 < tokens.len() { ",[[3,2],[7,1],[5,3],[16,1],[17,1],[18,2],[16,1],[19,4],[20,2],[19,1],[21,5],[19,1],[22,1],[19,1],[23,1],[19,1],[22,1],[19,1],[21,6],[22,1],[21,3],[19,4],[24,51],[5,3],[3,2]]], +[" ┃ 2 + if index < tokens.len() { ",[[3,2],[7,1],[5,3],[25,1],[26,1],[27,2],[25,1],[28,4],[29,2],[28,1],[30,5],[28,1],[31,1],[28,1],[30,6],[31,1],[30,3],[28,4],[32,55],[5,3],[3,2]]], +[" ┃ 3 return tokens.get(index); ",[[3,2],[7,1],[5,3],[9,1],[10,1],[9,3],[12,8],[33,6],[12,1],[13,6],[14,1],[13,3],[12,1],[13,5],[12,1],[14,1],[9,51],[5,3],[3,2]]], +[" ┃ 4 } ",[[3,2],[7,1],[5,3],[9,1],[10,1],[9,3],[12,5],[9,79],[5,3],[3,2]]], +[" ┃ ",[[3,2],[7,1],[5,95],[3,2]]], +[" ┃ Error [1:27] unused variable: `index` ",[[3,2],[7,1],[5,2],[34,37],[5,56],[3,2]]], +[" ┃ ",[[3,2],[7,1],[5,95],[3,2]]], +[" ",[[3,100]]], +[" ",[[3,100]]], +[" ",[[3,100]]], +[" ",[[3,100]]], +[" ",[[3,100]]], +[" ",[[3,100]]], +[" ┃ ",[[3,2],[35,1],[0,95],[3,2]]], +[" ┃ ",[[3,2],[35,1],[0,95],[3,2]]], +[" ┃ ",[[3,2],[35,1],[0,95],[3,2]]], +[" ┃ ",[[3,2],[35,1],[0,95],[3,2]]], +[" ╹▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀ ",[[3,2],[35,1],[36,95],[3,2]]], +[" /tmp/opencode/packages/tui:main shift+tab agents ctrl+p commands ",[[3,2],[2,31],[3,32],[37,10],[2,6],[3,2],[37,7],[2,8],[3,2]]], +[" ",[[3,100]]] +]} diff --git a/packages/cli-rs/parity/lib/app.ts b/packages/cli-rs/parity/lib/app.ts new file mode 100644 index 000000000000..b3d04cfa48eb --- /dev/null +++ b/packages/cli-rs/parity/lib/app.ts @@ -0,0 +1,233 @@ +// P-APP scenarios (docs/testing.md): one file per scenario, `parity/scenarios/<step>/<name>.app.ts`, with +// `export default defineApp({...})`. parity/app/scenarios.test.tsx records each one through the TS TUI; +// crates/tui/tests/all/app.rs replays the recording through the Rust TUI. +import type { Fixture } from "./cells" +import type { Route } from "./fake-server" +import type { PtyScript, PtyStep } from "./pty-socket" +import { records } from "./records" + +export type { Route } + +export type Mask = ({ x: number; y: number; width: number; height: number } | { line: string }) & { + reason: string +} + +// The location the TS TUI runs in, as the fake server's location answers name it. +export const location = { + directory: "/tmp/opencode/packages/tui", + project: { id: "proj_test", directory: "/tmp/opencode", canonical: "/tmp/opencode" }, +} + +// A connected model with a price and a context limit, for a catalog's `model` answer. +export const model = { + id: "model", + modelID: "model", + providerID: "provider", + name: "Model", + capabilities: { tools: true, input: ["text"], output: ["text"] }, + variants: [], + time: { released: 0 }, + cost: [{ input: 3, output: 15, cache: { read: 0.3, write: 3.75 } }], + status: "active", + enabled: true, + limit: { context: 200000, output: 32000 }, +} + +// The home prompt's placeholder at the default 100 columns, to the end of the row. +export const HOME_PLACEHOLDER = { + x: 16, + y: 16, + width: 84, + height: 1, + reason: "the placeholder example: random in TS and Rust", +} + +// A `parity/deviations/<file>.md` that allows a checkpoint at most `cells` differing cells. With `styleOnly`, only +// cells whose symbols match: their colors or attributes differ. A checkpoint's deviations add up. +export type Deviation = { file: string; cells: number; styleOnly?: boolean } + +export type Step = + // Shortcuts in opentui-rust's syntax: "enter", "ctrl+x", "a". + | { keys: string[] } + // Text, one key press per character. + | { type: string } + // A bracketed paste of the text (E.4). + | { paste: string } + // A left press and release at a cell, `[x, y]`. + | { click: [number, number] } + // A right press and release at a cell, `[x, y]`. + | { rightClick: [number, number] } + // One `/api/event` event. + | { event: Record<string, unknown> } + // A left-button drag from one cell to another, `[[x, y], [x, y]]`; TS moves in five steps, Rust one cell at a + // time, and both end with the release on the target cell. + | { drag: [[number, number], [number, number]] } + // A notification from the fake IDE MCP server (`ide: true`), `{ method, params }`, sent once a client finished + // the MCP handshake. + | { ide: { method: string; params?: unknown } } + // Output from, or the close of, the fake persistent PTY socket (parity/lib/pty-socket.ts). + | { pty: PtyStep } + // Answers the requests a `hold` route of this path keeps waiting, and the ones that come after. + | { release: string } + // Lets this many milliseconds pass with no input, so a later checkpoint sees what follows on its own. + | { wait: number } + | { + checkpoint: string + // Text the TS frame contains once it is ready. + until?: string + masks?: Mask[] + deviation?: Deviation[] + } + +export type AppScenario = { + width?: number + height?: number + // cli.json `Info`; both sides add `animations: false`. + config?: Record<string, unknown> + args?: { + sessionID?: string + continue?: boolean + fork?: boolean + prompt?: string + model?: string + agent?: string + newSessionID?: string + auto?: boolean + } + // Environment variables the TUI reads at startup, such as `OPENCODE_ROUTE`. + env?: Record<string, string> + // js-npm: packages installed in TS's npm cache, by spec, each the pinned tarball `plugins/npm/<name>.tgz` of its + // name. Both clients resolve plugins named by npm package there (`Npm.resolve`), and install nothing. + cache?: Record<string, string> + routes?: Route[] + // Runs a fake IDE MCP server at OPENCODE_EDITOR_SSE_PORT (E.5); the recording keeps what the TUI sent it. + ide?: boolean + // A Zed database built from this SQL in a temporary directory, with ZED_TERM=true and a temporary HOME (E.5). + zed?: { sql: string } + // Serves persistent PTY sockets with the fake shell. + pty?: PtyScript + steps: Step[] + // A deviation that allows the request comparison (P-REQ) to differ. + requests?: { deviation: string } +} + +export function defineApp(scenario: AppScenario) { + // A plugin's commands register after the screen settles, and an Enter on a completion that has not listed the typed + // command yet does nothing, in TS as in Rust (file-browser-flake). With a plugin loaded, a typed `/command` waits + // for its row in the completion (a checkpoint) before Enter. + if (scenario.env?.OPENCODE_PARITY_PLUGIN) + scenario.steps.forEach((step, index) => { + const next = scenario.steps[index + 1] + if ("type" in step && step.type.startsWith("/") && next && "keys" in next && next.keys[0] === "enter") + throw new Error(`step ${index}: wait for the completion to list ${step.type} before Enter (a checkpoint)`) + }) + return scenario +} + +// The Rust client implements the TUI with the `new-designs` experiment on, and only that, so every recording +// turns it on. TS's test fixtures (`createAppFixture`, `createTuiResolvedConfig`) default to new designs off and the +// `opencode-classic` theme since #64988, so recordings also name a theme: the product's default, `opencode`, unless +// the caller names another. A config that sets the experiment or a theme itself keeps its value. +export function withNewDesigns(config: Record<string, unknown>) { + const experimental = (config.experimental ?? {}) as Record<string, unknown> + const theme = (config.theme ?? {}) as Record<string, unknown> + return { ...config, experimental: { "new-designs": true, ...experimental }, theme: { name: "opencode", ...theme } } +} + +// Wire objects with fixed times, as the server sends them. + +export function session(id: string, title: string, input: { updated?: number; directory?: string } = {}) { + const updated = input.updated ?? 1 + return { + id, + title, + projectID: "proj_test", + cost: 0, + tokens: { input: 0, output: 0, reasoning: 0, cache: { read: 0, write: 0 } }, + time: { created: updated, updated }, + location: { directory: input.directory ?? "/tmp/opencode/packages/tui" }, + } +} + +export function user(id: string, text: string, created = 1) { + return { id, type: "user", text, time: { created } } +} + +export function assistant(id: string, content: unknown[] | string, created = 2) { + return { + id, + type: "assistant", + agent: "build", + model: { providerID: "provider", id: "model" }, + content: typeof content === "string" ? [{ type: "text", text: content }] : content, + finish: "stop", + time: { created, completed: created + 1 }, + } +} + +// The style of a masked cell, on both sides. +export const MASKED_STYLE = "#00000000 #00000000 0" + +// Blanks the masked cells of a fixture. crates/parity/src/app.rs does the same to the Rust capture. +export function applyMasks(fixture: Fixture, masks: Mask[]): Fixture { + if (masks.length === 0) return fixture + const symbols = fixture.rows.map((row) => (typeof row === "string" ? [...row] : [...row])) + const styles = fixture.runs.map((runs) => + runs.flatMap(([style, count]) => Array<string>(count).fill(fixture.styles[style])), + ) + const blank = (x: number, y: number) => { + if (y < 0 || y >= fixture.height || x < 0 || x >= fixture.width) return + symbols[y][x] = " " + styles[y][x] = MASKED_STYLE + } + for (const mask of masks) { + if ("line" in mask) { + symbols.forEach((row, y) => { + // The UTF-16 offset where each cell starts, so a match maps back to cells. + const starts = row.reduce<number[]>( + (all, symbol, x) => [...all, x === 0 ? 0 : all[x - 1] + row[x - 1].length], + [], + ) + for (const match of row.join("").matchAll(new RegExp(mask.line, "g"))) { + const end = match.index + match[0].length + starts.forEach((start, x) => start >= match.index && start < end && blank(x, y)) + } + }) + continue + } + for (let y = mask.y; y < mask.y + mask.height; y++) for (let x = mask.x; x < mask.x + mask.width; x++) blank(x, y) + } + const palette = new Map<string, number>() + return { + width: fixture.width, + height: fixture.height, + rows: symbols.map((row) => (row.every((symbol) => [...symbol].length === 1) ? row.join("") : row)), + runs: styles.map((row) => + row.reduce<[number, number][]>((runs, key) => { + const style = palette.get(key) ?? palette.set(key, palette.size).get(key)! + const last = runs.at(-1) + if (last && last[0] === style) last[1]++ + else runs.push([style, 1]) + return runs + }, []), + ), + styles: [...palette.keys()], + } +} + +// The text of a `<name>.app.json` recording: one config key, route, step, socket message, write and read per line. +export function recordingText(recording: unknown) { + return records(recording, [ + "config.*", + "args.*", + "env.*", + "routes[]", + "ide[]", + "zed.*", + "steps[]", + "sockets[].sent[]", + "sockets[].received[]", + "requests.writes[]", + "requests.reads[]", + ]) +} diff --git a/packages/cli-rs/parity/lib/cells.ts b/packages/cli-rs/parity/lib/cells.ts new file mode 100644 index 000000000000..d063c009bfaf --- /dev/null +++ b/packages/cli-rs/parity/lib/cells.ts @@ -0,0 +1,86 @@ +// The P-COMP cell fixture format, shared with crates/parity/src/fixture.rs. A fixture is JSON with one +// line per row: +// +// {"width":40,"height":8,"styles":["#eeeeeeff #0a0a0aff 1",…],"lines":[ +// ["╭──…",[[0,12],[3,28]]], +// [["a","界","","b",…],[[1,40]]], +// … +// ]} +// +// `styles` lists each distinct "fg bg attributes" once. Each entry of `lines` is one row: its text, then +// the [style index, cell count] runs covering the row. The text is a string when every cell holds exactly +// one code point, else an array with one symbol per cell (the trailing cells of a wide grapheme are ""). +// A color is `#rrggbbaa`, followed by `@<slot>` for a palette color or `@default` for the terminal +// default; the RGBA part is the fallback snapshot native code keeps for those. +import type { OptimizedBuffer } from "@opentui/core" + +export type Fixture = { + width: number + height: number + rows: (string | string[])[] + styles: string[] + runs: [number, number][][] +} + +type Planes = { width: number; height: number; fg: Uint16Array; bg: Uint16Array; attributes: Uint32Array } + +// The native color word layout (opentui.h): RGBA bytes in the low bytes, the palette slot in the high byte +// of word 0, and the intent (0 RGB, 1 indexed, 2 default) in the high byte of word 1. +const META_SHIFT = 8 + +// Reads the cells of a buffer with the same native calls opentui-rust's Capture uses +// (ot_buffer_lease_write_resolved_chars with per-cell lengths). OpenTUI keeps this reader private; its +// public getSpanLines merges cells into spans, which loses wide-grapheme cell boundaries. +export function readCells(buffer: OptimizedBuffer): Fixture { + const reader = buffer as unknown as { + withResolvedChars<T>( + options: { addLineBreaks: boolean; cellLengths: boolean }, + callback: (bytes: Uint8Array, cells: Planes, lengths: Uint8Array) => T, + ): T + } + return reader.withResolvedChars({ addLineBreaks: false, cellLengths: true }, (bytes, cells, lengths) => { + const decoder = new TextDecoder("utf-8", { ignoreBOM: true }) + const styles = new Map<string, number>() + const rows: Fixture["rows"] = [] + const runs: Fixture["runs"] = [] + let offset = 0 + for (let y = 0; y < cells.height; y++) { + const symbols: string[] = [] + const row: [number, number][] = [] + for (let x = 0; x < cells.width; x++) { + const index = y * cells.width + x + const end = offset + lengths[index] + symbols.push(decoder.decode(bytes.subarray(offset, end))) + offset = end + const key = `${color(cells.fg, index)} ${color(cells.bg, index)} ${cells.attributes[index] & 0xff}` + const style = styles.get(key) ?? styles.set(key, styles.size).get(key)! + const last = row.at(-1) + if (last && last[0] === style) last[1]++ + else row.push([style, 1]) + } + rows.push(symbols.every((symbol) => [...symbol].length === 1) ? symbols.join("") : symbols) + runs.push(row) + } + return { width: cells.width, height: cells.height, rows, styles: [...styles.keys()], runs } + }) +} + +export async function writeFixture(path: string, fixture: Fixture) { + // One row per line, text and runs together, keeps fixture diffs readable. + const text = [ + `{"width":${fixture.width},"height":${fixture.height},"styles":${JSON.stringify(fixture.styles)},"lines":[`, + fixture.rows.map((row, y) => JSON.stringify([row, fixture.runs[y]])).join(",\n"), + "]}", + "", + ].join("\n") + await Bun.write(path, text) +} + +function color(plane: Uint16Array, index: number) { + const words = plane.subarray(index * 4, index * 4 + 4) + const rgba = Array.from(words, (word) => (word & 0xff).toString(16).padStart(2, "0")).join("") + const intent = words[1] >> META_SHIFT + if (intent === 1) return `#${rgba}@${words[0] >> META_SHIFT}` + if (intent === 2) return `#${rgba}@default` + return `#${rgba}` +} diff --git a/packages/cli-rs/parity/lib/component.tsx b/packages/cli-rs/parity/lib/component.tsx new file mode 100644 index 000000000000..0fb6713cefc7 --- /dev/null +++ b/packages/cli-rs/parity/lib/component.tsx @@ -0,0 +1,124 @@ +/** @jsxImportSource @opentui/solid */ +// P-COMP, TypeScript side: renders one TUI component in createTestRenderer at a fixed size and theme and +// writes its cells to parity/fixtures/<fixture>.json (format in cells.ts). Run each component script +// from parity/ so bun picks up parity/bunfig.toml, for example `bun run component/H.1-alert.tsx`. +// The Rust side compares a TestApp capture with the file through opencode_parity::assert_fixture. +import { testRender } from "@opentui/solid" +import { onMount, type JSX } from "solid-js" +import { ConfigProvider } from "../../../tui/src/config" +import { ClientProvider } from "../../../tui/src/context/client" +import { DataProvider } from "../../../tui/src/context/data" +import { Keymap } from "../../../tui/src/context/keymap" +import { LocationProvider } from "../../../tui/src/context/location" +import { RouteProvider } from "../../../tui/src/context/route" +import { ThemeProvider } from "../../../tui/src/context/theme" +import { DialogProvider, useDialog } from "../../../tui/src/ui/dialog" +import { ToastProvider } from "../../../tui/src/ui/toast" +import { emptyThemeSource } from "../../../tui/test/fixture/fixture" +import { createApi, createEventStream, createFetch } from "../../../tui/test/fixture/tui-client" +import { TestTuiContexts } from "../../../tui/test/fixture/tui-environment" +import { createTuiResolvedConfig } from "../../../tui/test/fixture/tui-runtime" +import { withNewDesigns } from "./app" +import { readCells, writeFixture } from "./cells" + +type Setup = Awaited<ReturnType<typeof testRender>> + +export type ComponentOptions = { + // Path under parity/fixtures without ".json", for example "U.3/alert". + fixture: string + width: number + height: number + // More `cli.json` fields for the resolved config, merged over the theme and `animations: false`. + config?: Record<string, unknown> + // A built-in theme name; default "opencode". + theme?: string + mode?: "dark" | "light" + // Opened with useDialog().replace once mounted. Use for dialog kinds. + dialog?: () => JSX.Element + // Rendered inside the TUI providers (theme, keymap, dialog, toast, data, route). + element?: () => JSX.Element + // Rendered with no providers at all, for plain OpenTUI elements. + bare?: () => JSX.Element + // The frame text the capture waits for; default any non-blank frame. + ready?: (frame: string) => boolean + // Runs after the first ready frame, for example to send keys; the capture waits for the frame to settle again. + act?: (setup: Setup) => Promise<void> | void +} + +export async function renderComponent(options: ComponentOptions) { + const setup = await testRender(options.bare ?? (() => <Providers {...options} />), { + width: options.width, + height: options.height, + kittyKeyboard: true, + }) + try { + const ready = options.ready ?? ((frame: string) => frame.trim().length > 0) + await settle(setup, ready) + if (options.act) { + await options.act(setup) + await settle(setup, ready) + } + const fixture = readCells(setup.renderer.currentRenderBuffer) + const path = new URL(`../fixtures/${options.fixture}.json`, import.meta.url).pathname + await writeFixture(path, fixture) + console.log(`component: ${options.fixture} ${fixture.width}x${fixture.height}`) + return fixture + } finally { + setup.renderer.destroy() + } +} + +function Providers(props: ComponentOptions) { + const api = createApi(createFetch(undefined, createEventStream()).fetch) + const config = createTuiResolvedConfig( + withNewDesigns({ + theme: { name: props.theme ?? "opencode", mode: props.mode ?? "dark" }, + animations: false, + ...props.config, + }), + ) + return ( + <TestTuiContexts> + <ConfigProvider config={config}> + <RouteProvider initialRoute={{ type: "home" }}> + <ClientProvider api={api}> + <DataProvider directory="/tmp/opencode"> + <LocationProvider> + <ThemeProvider mode={props.mode ?? "dark"} source={emptyThemeSource}> + <Keymap.Provider> + <ToastProvider> + <DialogProvider> + {props.dialog ? <OpenDialog dialog={props.dialog} /> : props.element?.()} + </DialogProvider> + </ToastProvider> + </Keymap.Provider> + </ThemeProvider> + </LocationProvider> + </DataProvider> + </ClientProvider> + </RouteProvider> + </ConfigProvider> + </TestTuiContexts> + ) +} + +function OpenDialog(props: { dialog: () => JSX.Element }) { + const dialog = useDialog() + onMount(() => dialog.replace(props.dialog)) + return null +} + +// The renderer is not started, so frames come only from renderOnce. Poll with a wall-clock deadline until +// the frame is ready and two frames in a row are equal (theme discovery and dialog focus resolve on timers). +async function settle(setup: Setup, ready: (frame: string) => boolean) { + const deadline = Date.now() + 3_000 + let previous: string | undefined + while (Date.now() < deadline) { + await setup.renderOnce() + const frame = setup.captureCharFrame() + if (ready(frame) && frame === previous) return + previous = frame + await Bun.sleep(10) + } + throw new Error(`component: no settled ready frame within 3s; last frame:\n${previous}`) +} diff --git a/packages/cli-rs/parity/lib/fake-server.ts b/packages/cli-rs/parity/lib/fake-server.ts new file mode 100644 index 000000000000..ba07decaf1b4 --- /dev/null +++ b/packages/cli-rs/parity/lib/fake-server.ts @@ -0,0 +1,205 @@ +// A fake OpenCode server for P-CLI and P-PTY: it serves a scenario's route table and logs every +// request, so both clients can run with `--server <url>` and never touch the user's service. + +import { createEventStream, createFetch } from "../../../tui/test/fixture/tui-client" + +export type Route = { + method?: string + // An exact path, or a pattern where `:name` matches one segment (`/api/session/:id`). + path: string + // Answers only a request with exactly this query. + query?: Record<string, string[]> + status?: number + // Sent as `application/json`. A function computes it from the request and the log so far, for replies + // that echo what a client generated (the prompt ID of `run`). + json?: unknown | ((entry: Logged, requests: Logged[]) => unknown) + // Sent as is, with `headers` (default `text/plain`). + body?: string + // Binary bytes, sent as `application/octet-stream` unless `headers` says otherwise. + base64?: string + headers?: Record<string, string> + // An event stream: each event is one `data:` frame. The stream stays open until the server stops. + events?: unknown[] + // Events pushed to every open `events` stream once this request is answered. + then?: (entry: Logged, requests: Logged[]) => unknown[] + // Waits this long (ms) before answering; a function computes it from the request and the log so far. + delay?: number | ((entry: Logged, requests: Logged[]) => number) + // Waits this long (ms) after answering before pushing `then`'s events. + thenDelay?: number + // Answers only once a `release` step names this route's path (P-APP's `{ release: path }`, P-PTY's + // `release: path`), so a scenario orders the answer after a state it observed. + hold?: boolean +} + +// A `then` event that closes the open `events` streams instead, so the clients reconnect. +export const DROP = Symbol("drop") + +export type Logged = { + method: string + path: string + query: Record<string, string[]> + body?: unknown + authorization?: string + // No route and no fallback answered; the server replied 404. + unmatched?: true +} + +export type Options = { + routes?: Route[] + // `/api/info` for a server with this version. `false` leaves `/api/info` to the routes. + version?: string | false + // `tui` answers the startup reads of the TUI with the defaults of `packages/tui/test/fixture/tui-client.ts`, + // including the event stream, after the routes. + fallback?: "tui" +} + +export type FakeServer = Awaited<ReturnType<typeof startFakeServer>> + +export async function startFakeServer(options: Options = {}) { + const requests: Logged[] = [] + const routes = [...(options.routes ?? []), ...infoRoute(options.version ?? "local")] + const events = options.fallback === "tui" ? createEventStream() : undefined + const fallback = events ? createFetch(undefined, events).fetch : undefined + const streams = new Set<ReadableStreamDefaultController<Uint8Array>>() + const released = new Set<string>() + const waiting: { path: string; go: () => void }[] = [] + const release = (path: string) => { + released.add(path) + waiting.filter((held) => held.path === path).forEach((held) => held.go()) + } + const push = (events: unknown[]) => + events.forEach((event) => { + if (event !== DROP) return streams.forEach((controller) => controller.enqueue(encode(event))) + streams.forEach((controller) => controller.close()) + streams.clear() + }) + const server = Bun.serve({ + hostname: "127.0.0.1", + port: 0, + idleTimeout: 0, + async fetch(request) { + const url = new URL(request.url) + const entry = await logEntry(request, url) + requests.push(entry) + const route = routes.find( + (route) => + matches(route, request.method, url.pathname) && + (route.query === undefined || Bun.deepEquals(route.query, entry.query)), + ) + if (route) { + if (route.hold && !released.has(route.path)) + await new Promise<void>((go) => waiting.push({ path: route.path, go })) + const delay = typeof route.delay === "function" ? route.delay(entry, requests) : route.delay + if (delay) await Bun.sleep(delay) + const response = respond(route, streams, entry, requests) + if (route.then) { + const events = route.then(entry, requests) + setTimeout(() => push(events), route.thenDelay ?? 0) + } + return response + } + const fallen = await Promise.resolve(fallback?.(url, request)).catch(() => undefined) + if (fallen) return fallen + entry.unmatched = true + return Response.json( + { _tag: "NotFound", message: `fake server: no route for ${request.method} ${url.pathname}` }, + { status: 404 }, + ) + }, + }) + return { + url: `http://127.0.0.1:${server.port}`, + requests, + // Pushes events to every open `events` stream, as a route's `then` does. + push, + // Answers the held requests of the `hold` route with this path, and later ones at once. + release, + // Pushes an event to the open `fallback: "tui"` stream. + emit: (event: Parameters<NonNullable<typeof events>["emit"]>[0]) => events?.emit(event), + async stop() { + waiting.forEach((held) => held.go()) + events?.disconnect() + for (const controller of streams) controller.close() + await server.stop(true) + }, + } +} + +function infoRoute(version: string | false): Route[] { + if (version === false) return [] + return [ + { + method: "GET", + path: "/api/info", + json: { version, pid: 0, urls: [], paths: { tmp: "/tmp" }, capabilities: { persistentPty: true } }, + }, + ] +} + +function matches(route: Route, method: string, path: string) { + if ((route.method ?? "GET").toUpperCase() !== method) return false + const want = route.path.split("/") + const have = path.split("/") + return want.length === have.length && want.every((part, index) => part.startsWith(":") || part === have[index]) +} + +function encode(event: unknown) { + return new TextEncoder().encode(`data: ${JSON.stringify(event)}\n\n`) +} + +function respond( + route: Route, + streams: Set<ReadableStreamDefaultController<Uint8Array>>, + entry: Logged, + requests: Logged[], +) { + const status = route.status ?? 200 + if (route.events) { + const frames = route.events.map(encode) + let current: ReadableStreamDefaultController<Uint8Array> | undefined + const stream = new ReadableStream<Uint8Array>({ + start(controller) { + current = controller + streams.add(controller) + frames.forEach((frame) => controller.enqueue(frame)) + }, + cancel() { + if (current) streams.delete(current) + }, + }) + return new Response(stream, { status, headers: { "content-type": "text/event-stream", ...route.headers } }) + } + const json = typeof route.json === "function" ? route.json(entry, requests) : route.json + if (json !== undefined) return Response.json(json, { status, headers: route.headers }) + if (route.body !== undefined) + return new Response(route.body, { status, headers: { "content-type": "text/plain", ...route.headers } }) + if (route.base64 !== undefined) + return new Response(Buffer.from(route.base64, "base64"), { + status, + headers: { "content-type": "application/octet-stream", ...route.headers }, + }) + return new Response(null, { status: route.status ?? 204, headers: route.headers }) +} + +async function logEntry(request: Request, url: URL): Promise<Logged> { + const query = [...url.searchParams.keys()] + .toSorted() + .reduce<Record<string, string[]>>((all, key) => ({ ...all, [key]: url.searchParams.getAll(key) }), {}) + // A clone, so the fallback can still read the body. + const text = request.body ? await request.clone().text() : "" + return { + method: request.method, + path: url.pathname, + query, + ...(text ? { body: parseBody(text) } : {}), + ...(request.headers.get("authorization") ? { authorization: request.headers.get("authorization")! } : {}), + } +} + +function parseBody(text: string): unknown { + try { + return JSON.parse(text) + } catch { + return text + } +} diff --git a/packages/cli-rs/parity/lib/port.ts b/packages/cli-rs/parity/lib/port.ts new file mode 100644 index 000000000000..ac6c0f602181 --- /dev/null +++ b/packages/cli-rs/parity/lib/port.ts @@ -0,0 +1,24 @@ +// A free port on 127.0.0.1 for a child to listen on later. The kernel hands out ports of its ephemeral range on its +// own, to every port-0 listener and outgoing connection on the machine, so a port picked there can be taken before +// the child binds it, and the child then fails to start ("Is port N in use?"). A port below that range is never +// handed out: only a process that names it takes it. +const range = await Bun.file("/proc/sys/net/ipv4/ip_local_port_range") + .text() + .then((text) => Number(text.trim().split(/\s+/)[0])) + .catch(() => 0) +// Linux's default start where the kernel does not say; well-known services sit below 10000. +const below = Number.isInteger(range) && range > 10_000 ? range : 32_768 +// Ports this process gave out: its children may not have bound them yet. +const given = new Set<number>() + +export function freePort(): number { + for (;;) { + const port = 10_000 + Math.floor(Math.random() * (below - 10_000)) + if (given.has(port)) continue + try { + Bun.listen({ hostname: "127.0.0.1", port, socket: { data() {} } }).stop(true) + given.add(port) + return port + } catch {} + } +} diff --git a/packages/cli-rs/parity/lib/provider.ts b/packages/cli-rs/parity/lib/provider.ts new file mode 100644 index 000000000000..908605bd8bb0 --- /dev/null +++ b/packages/cli-rs/parity/lib/provider.ts @@ -0,0 +1,67 @@ +// What the P-FILE helpers for the prompt's state files share (oracle/E.2-history.ts, E.3-frecency.ts, +// E.4-stash.ts): they mount one real provider on a state directory and watch its unawaited writes. Run from +// <ts-root>/packages/tui with OpenTUI's Solid preload; Solid and OpenTUI resolve as packages/tui resolves them, so +// the helper and the TUI sources share one Solid instance (no JSX here for that reason). + +import { mock } from "bun:test" +import fs from "node:fs/promises" + +// The provider's writes of `names` are not awaited, so their calls are counted where they run. Call it before the +// TUI modules load. +export function countWrites(names: ("writeFile" | "appendFile")[]) { + const writes = { started: 0, pending: 0 } + const counted = + <A extends unknown[]>(write: (...args: A) => Promise<void>) => + (...args: A) => { + writes.started++ + writes.pending++ + return write(...args).finally(() => writes.pending--) + } + mock.module("node:fs/promises", () => ({ + ...fs, + ...Object.fromEntries(names.map((name) => [name, counted(fs[name] as (...args: unknown[]) => Promise<void>)])), + })) + return writes +} + +// Renders the provider `provider` of the TUI module `module` under `TuiPathsProvider`, and returns what its hook +// `hook` gives inside it. +export async function mount<T>( + root: string, + module: string, + provider: string, + hook: string, + paths: { cwd: string; home: string; state: string; worktree: string }, +) { + const load = (spec: string) => import(Bun.resolveSync(spec, `${root}/packages/tui/src`)) + const tui = `${root}/packages/tui` + const { testRender } = await import(Bun.resolveSync("@opentui/solid", tui)) + const { createComponent } = await import(Bun.resolveSync("solid-js", tui)) + const { TuiPathsProvider } = await load("./context/runtime") + const loaded = await load(module) + let value: T | undefined + const app = await testRender(() => + createComponent(TuiPathsProvider, { + value: paths, + get children() { + return createComponent(loaded[provider], { + get children() { + value = loaded[hook]() + return undefined + }, + }) + }, + }), + ) + await app.renderOnce() + return { app, value: value as T } +} + +// Waits for a condition, up to 30 s: a loaded machine can take seconds to read or write the file. +export async function until(what: string, done: () => Promise<boolean> | boolean) { + const deadline = Date.now() + 30_000 + while (!(await done())) { + if (Date.now() >= deadline) return console.error(`timed out waiting for ${what}`) + await Bun.sleep(5) + } +} diff --git a/packages/cli-rs/parity/lib/pty-socket.ts b/packages/cli-rs/parity/lib/pty-socket.ts new file mode 100644 index 000000000000..3783de740fb9 --- /dev/null +++ b/packages/cli-rs/parity/lib/pty-socket.ts @@ -0,0 +1,136 @@ +// A fake persistent PTY socket for P-APP (E.13a). The TS TUI opens `new WebSocket(url)` with no way to pass a +// socket in (src/context/client.tsx builds the PTY client from the URL alone), and the fixture's server cannot +// upgrade, so scenarios.test.tsx swaps the global WebSocket for persistent PTY URLs while a scenario with `pty` runs. +// +// The fake is a tiny shell: it attaches as controller at the snapshot's size, replays `replay`, echoes input (a +// carriage return becomes a line break), and answers a size change with `resized` and a checkpoint of everything it +// printed. It records the URL, the frames it got, and every message it sent with the step and frame count it was +// sent at, so crates/tui/tests/all/app.rs can replay the same exchange to the Rust TUI. + +export type PtyScript = { + // The snapshot's size, which the server attaches at. + size: { cols: number; rows: number } + // The snapshot's checkpoint text; the fake's screen starts with it. + checkpoint: string + // Output replayed after attaching, before `replay_complete`. + replay: string +} + +export type PtyStep = { output: string } | { close: true } + +export type SocketRecording = { + path: string + query: Record<string, string> + // Each frame the client sent, with the step it arrived in. + sent: { step: number; frame: number[] }[] + // Each message the fake sent: after `after` client frames, in step `step`. + received: ({ step: number; after: number } & ({ text: string } | { binary: string } | { close: true }))[] +} + +const PTY_PATH = /\/api\/experimental\/persistent-pty\/[^/]+\/connect$/ + +export function installFakePty(script: PtyScript, currentStep: () => number) { + const original = globalThis.WebSocket + const sockets: FakeSocket[] = [] + const recordings: SocketRecording[] = [] + + class FakeSocket extends EventTarget { + static readonly CONNECTING = 0 + static readonly OPEN = 1 + static readonly CLOSING = 2 + static readonly CLOSED = 3 + readyState = 1 + binaryType = "arraybuffer" + size = script.size + screen = script.checkpoint + recording: SocketRecording + + constructor(url: URL) { + super() + this.recording = { + path: url.pathname, + // The attachment ID is random on both sides. + query: Object.fromEntries( + [...url.searchParams].map(([key, value]) => [key, key === "attachment_id" ? "<attachment>" : value]), + ), + sent: [], + received: [], + } + recordings.push(this.recording) + sockets.push(this) + setTimeout(() => { + this.text({ type: "attached", inputProtocol: 1, info: { size: this.size }, role: "controller" }) + this.print(script.replay) + this.text({ type: "replay_complete" }) + }, 0) + } + + send(data: ArrayBuffer | Uint8Array) { + const frame = new Uint8Array(data instanceof ArrayBuffer ? data : data.buffer.slice(data.byteOffset)) + this.recording.sent.push({ step: currentStep(), frame: [...frame] }) + const view = new DataView(frame.buffer, frame.byteOffset, frame.byteLength) + const size = { cols: view.getUint16(1), rows: view.getUint16(3) } + setTimeout(() => { + if (this.readyState !== 1) return + if (size.cols !== this.size.cols || size.rows !== this.size.rows) { + this.size = size + this.text({ type: "resized", cols: size.cols, rows: size.rows, checkpoint: Buffer.from(this.screen).toString("base64") }) + } + if (frame[0] === 1 && frame.length > 5) + this.print(new TextDecoder().decode(frame.slice(5)).replaceAll("\r", "\r\n")) + }, 0) + } + + close() { + this.readyState = 3 + } + + step(step: PtyStep) { + if ("output" in step) return this.print(step.output) + this.log({ close: true }) + this.readyState = 3 + this.dispatchEvent(new Event("close")) + } + + print(text: string) { + if (!text) return + this.screen += text + this.log({ binary: Buffer.from(text).toString("base64") }) + this.dispatch(new TextEncoder().encode(text).buffer) + } + + text(message: object) { + const text = JSON.stringify(message) + this.log({ text }) + this.dispatch(text) + } + + log(message: { text: string } | { binary: string } | { close: true }) { + this.recording.received.push({ step: currentStep(), after: this.recording.sent.length, ...message }) + } + + dispatch(data: string | ArrayBuffer) { + if (this.readyState !== 1) return + this.dispatchEvent(new MessageEvent("message", { data })) + } + } + + globalThis.WebSocket = new Proxy(original, { + construct(target, args) { + const url = new URL(String(args[0])) + if (PTY_PATH.test(url.pathname)) return new FakeSocket(url) + return Reflect.construct(target, args) + }, + }) as typeof WebSocket + + return { + recordings, + // A scenario step for the newest socket. + step(step: PtyStep) { + sockets.at(-1)?.step(step) + }, + restore() { + globalThis.WebSocket = original + }, + } +} diff --git a/packages/cli-rs/parity/lib/records.ts b/packages/cli-rs/parity/lib/records.ts new file mode 100644 index 000000000000..1409d003ec13 --- /dev/null +++ b/packages/cli-rs/parity/lib/records.ts @@ -0,0 +1,62 @@ +// The record-per-line JSON layout of the oracle fixtures. `records(value, paths)` returns the same JSON value +// as `JSON.stringify(value)`, with the same key order, but laid out so that each record (one test case) sits +// on one compact line. A re-record then diffs one line per changed case, and readers keep parsing it with +// `serde_json::from_str` or `JSON.parse`. +// +// A path names the records, segment by segment: a key, `*` for any object key, `[]` for any array element, +// and `**` for any number of segments. `cases[]` makes each element of `cases` a record, `routes.*` each +// value of `routes`, `scenarios[].cases[]` each case of each scenario, `**.flags[]` each flag at any depth. +// A container that holds a record is expanded with one key or element per line; everything else is written +// compact on the line of its key. +type Json = null | boolean | number | string | Json[] | { [key: string]: Json } +type Step = string | number + +export function records(value: unknown, paths: string[]) { + const patterns = paths.map((path) => path.split(".").flatMap(segments)) + return render(JSON.parse(JSON.stringify(value)) as Json, [], patterns, "") + "\n" +} + +function segments(segment: string) { + const name = segment.replace(/(\[\])+$/, "") + const arrays = Array.from({ length: (segment.length - name.length) / 2 }, () => "[]") + return name === "" ? arrays : [name, ...arrays] +} + +function render(value: Json, path: Step[], patterns: string[][], indent: string): string { + if (value === null || typeof value !== "object" || !holds(value, path, patterns)) return JSON.stringify(value) + const inner = indent + " " + const entries = Array.isArray(value) + ? value.map((item, index) => inner + render(item, [...path, index], patterns, inner)) + : Object.entries(value).map( + ([key, item]) => `${inner}${JSON.stringify(key)}: ${render(item, [...path, key], patterns, inner)}`, + ) + const [open, close] = Array.isArray(value) ? ["[", "]"] : ["{", "}"] + return entries.length === 0 ? open + close : `${open}\n${entries.join(",\n")}\n${indent}${close}` +} + +// Whether a record lies strictly below this container. +function holds(value: Json[] | { [key: string]: Json }, path: Step[], patterns: string[][]): boolean { + return Object.entries(value).some(([key, item]) => { + const child = [...path, Array.isArray(value) ? Number(key) : key] + const found = patterns.map((pattern) => match(pattern, child)) + if (found.includes("record")) return true + return found.includes("prefix") && item !== null && typeof item === "object" && holds(item, child, patterns) + }) +} + +function match(pattern: string[], path: Step[]): "record" | "prefix" | undefined { + if (path.length === 0) return pattern.every((segment) => segment === "**") ? "record" : "prefix" + if (pattern.length === 0) return undefined + if (pattern[0] === "**") { + const here = match(pattern.slice(1), path) + return here === "record" ? here : (match(pattern, path.slice(1)) ?? here) + } + if (!fits(pattern[0], path[0])) return undefined + return match(pattern.slice(1), path.slice(1)) +} + +function fits(segment: string, step: Step) { + if (segment === "[]") return typeof step === "number" + if (segment === "*") return typeof step === "string" + return segment === step +} diff --git a/packages/cli-rs/parity/machines/plugins.json b/packages/cli-rs/parity/machines/plugins.json new file mode 100644 index 000000000000..760d702a87f3 --- /dev/null +++ b/packages/cli-rs/parity/machines/plugins.json @@ -0,0 +1,188 @@ +{ + "about": "The life of a plugin as the user sees it (rich-plugins 4.14, O-124), written by hand and never captured. The plugin is parity/plugins/life: tui.tsx for TS, and its Luau twin init.luau for Rust, which crates/tui/tests/all/plugin_machines.rs loads. An observation is line/palette/row/dialog: the plugin's line in home.footer (A, B or -), whether the palette finds its commands (yes or no), its row in the plugin manager (on, off, failed, pending or declined), and which of its dialogs shows (prompt, confirm, alert or -). While a dialog shows, the readers open neither the palette nor the manager, which would replace it, so the first three are ?. Actions: toggle is enter on its row in the plugin manager; flip, throw, stall, arm, dialog, confirm and alert run its palette commands Life flip, Life throw, Life stall (a call of 150 ms: over Rust's budget of one call, which TS does not have), Life arm (the next setup throws), Life dialog (opens its prompt), Life confirm (asks whether to flip the line) and Life alert (flips the line once it closes); leader presses the leader key (ctrl+x), which starts a key sequence: the plugin reads the pending keys (Luau read:keymapPending, TS keymap.pending) and its line shows them, so the observation is the line and its keys, as A+ctrl+x/?/?/-, the rest not read while a key would continue the sequence; enter answers the confirm yes; escape closes a dialog, which answers the confirm no, or ends a pending key sequence; reload puts a new build of the plugin in place. TS is the specification: an enable whose setup throws shows the error in a toast and leaves the row as it was, and a plugin's dialog stays open when it reloads; answered after the reload, it reaches nothing the user sees. A row in xfail is a known difference, [client, deviation file or finding:<name>, 'state action observation'].", + "depth": 4, + "seeds": 8, + "steps": 12, + "machines": { + "life": { + "initial": "onA", + "states": { + "onA": [ + "A/yes/on/-", + { + "toggle": "off", + "flip": "onB", + "throw": "onA", + "stall": "onA", + "arm": "armedA", + "dialog": "dialogA", + "confirm": "confirmA", + "alert": "alertA", + "leader": "leaderA" + } + ], + "onB": [ + "B/yes/on/-", + { + "toggle": "off", + "flip": "onA", + "stall": "onB", + "arm": "armedB", + "dialog": "dialogB", + "confirm": "confirmB", + "alert": "alertB", + "reload": "onA", + "leader": "leaderB" + } + ], + "armedA": ["A/yes/on/-", { "toggle": "offArmed", "flip": "armedB" }], + "armedB": ["B/yes/on/-", { "toggle": "offArmed", "flip": "armedA" }], + "off": ["-/no/off/-", { "toggle": "onA" }], + "offArmed": ["-/no/off/-", { "toggle": "off" }], + "dialogA": ["?/?/?/prompt", { "escape": "onA", "reload": "dialogReloaded" }], + "dialogB": ["?/?/?/prompt", { "escape": "onB", "reload": "dialogReloaded" }], + "dialogReloaded": ["?/?/?/prompt", { "escape": "onA" }], + "confirmA": ["?/?/?/confirm", { "enter": "onB", "escape": "onA", "reload": "confirmReloaded" }], + "confirmB": ["?/?/?/confirm", { "enter": "onA", "escape": "onB", "reload": "confirmReloaded" }], + "confirmReloaded": ["?/?/?/confirm", { "enter": "onA" }], + "alertA": ["?/?/?/alert", { "escape": "onB", "reload": "alertReloaded" }], + "alertB": ["?/?/?/alert", { "escape": "onA", "reload": "alertReloaded" }], + "alertReloaded": ["?/?/?/alert", { "escape": "onA" }], + "leaderA": ["A+ctrl+x/?/?/-", { "escape": "onA" }], + "leaderB": ["B+ctrl+x/?/?/-", { "escape": "onB" }] + }, + "xfail": [ + ["rust", "F16-plugin-budget-and-restart", "onA stall -/no/failed/-"], + ["rust", "F16-plugin-budget-and-restart", "onB stall -/no/failed/-"], + ["rust", "F16-plugin-panic-no-effects", "onA throw -/no/failed/-"], + ["rust", "F16-plugin-dialog-ends-with-activation", "dialogA reload A/yes/on/-"], + ["rust", "F16-plugin-dialog-ends-with-activation", "dialogB reload A/yes/on/-"], + ["rust", "F16-plugin-dialog-ends-with-activation", "confirmA reload A/yes/on/-"], + ["rust", "F16-plugin-dialog-ends-with-activation", "confirmB reload A/yes/on/-"], + ["rust", "F16-plugin-dialog-ends-with-activation", "alertA reload A/yes/on/-"], + ["rust", "F16-plugin-dialog-ends-with-activation", "alertB reload A/yes/on/-"] + ] + }, + "project": { + "about": "The same plugin found in the project's .opencode/plugins instead of the config: the client starts in the project, and nothing names the plugin in its config. approve and decline answer the plugin manager's question about it (Enter on its row, then Approve or Decline); TS has no such question, so for TS they do nothing. TS loads the plugin at once. Rust lists it pending until it is approved, and declined once it is declined (rich-plugins 3.9; deviation F16-project-plugin-approval); approved, it is the plugin TS shows. The xfail rows are those observations, and since Rust then follows TS again, a known row here does not end the path (continue).", + "initial": "found", + "continue": true, + "states": { + "found": ["A/yes/on/-", { "approve": "approved", "decline": "declined" }], + "declined": ["A/yes/on/-", { "approve": "approved" }], + "approved": ["A/yes/on/-", { "toggle": "off", "flip": "approvedB" }], + "approvedB": ["B/yes/on/-", { "toggle": "off", "flip": "approved" }], + "off": ["-/no/off/-", { "toggle": "approved" }] + }, + "xfail": [ + ["rust", "F16-project-plugin-approval", "found mount -/no/pending/-"], + ["rust", "F16-project-plugin-approval", "found decline -/no/declined/-"] + ] + }, + "manager": { + "about": "The plugin manager's keys as the user presses them (phase P2), with the life plugin loaded: open is /plugins, escape closes it, internal is ctrl+a, which shows or hides the built-in rows, and toggle is enter on the life row, which the manager selects as it opens with the built-ins hidden. An observation is dialog/internal/life: list or - for the manager on screen or not; show or hide as its footer offers (? while it is closed); and the life plugin on or off, from its row while the manager is open and from its line in home.footer while it is closed; while the built-in rows show, the life row may be below the screen, so it is ?. Every action of every state has an outcome: an edge, which a self-loop makes 'sent, and nothing changes' (escape, ctrl+a and enter in the empty home composer), or a place in unspecified, which a reader does not send and must not meet otherwise: open in a list types /plugins into its filter, and toggle with the built-in rows showing would toggle a built-in plugin.", + "unspecified": { + "listOn": ["open"], + "listOff": ["open"], + "internalOn": ["open", "toggle"], + "internalOff": ["open", "toggle"] + }, + "initial": "closedOn", + "states": { + "closedOn": [ + "-/?/on", + { "open": "listOn", "escape": "closedOn", "internal": "closedOn", "toggle": "closedOn" } + ], + "listOn": ["list/show/on", { "escape": "closedOn", "internal": "internalOn", "toggle": "listOff" }], + "internalOn": ["list/hide/?", { "escape": "closedOn", "internal": "listOn" }], + "listOff": ["list/show/off", { "escape": "closedOff", "internal": "internalOff", "toggle": "listOn" }], + "internalOff": ["list/hide/?", { "escape": "closedOff", "internal": "listOff" }], + "closedOff": [ + "-/?/off", + { "open": "listOff", "escape": "closedOff", "internal": "closedOff", "toggle": "closedOff" } + ] + }, + "xfail": [] + }, + "views": { + "about": "The plugin manager's views (phase P6b, synthesis 4.14 item 2; review bigboi-7), with two plugins whose setups fail as they first load, each with its own cause: life (option fail in TS, the armed twin in Rust; cause 'life setup ...') and its distractor other (parity/plugins/other; cause 'other setup ...'). Both are listed failed, life first. open is /plugins; filter types parity.other into the list's filter (other alone would also match the letters of life's temporary path, which TS's filter searches); down moves the selection to the next row; details asks for the selected row's error with the key the footer offers for view error; escape closes the list, or goes back from the details to the list. An observation is dialog/a/b. For the list: the query as its field shows it (- while it shows its placeholder, Search) and the TUI plugin rows on screen in order, each name:status (failed, off or on), joined by +. For the details: the plugin whose source they show (its directory, parity.<name>) and the plugin whose cause they show. - for no manager. Every action of every state has an outcome or a place in unspecified, which a reader does not send: filter, down and details while the manager is closed would type into the home composer, open in a list or the details types /plugins, filter twice is not a view of its own, down past the last row wraps, and which row is selected after Back is left open.", + "unspecified": { + "closed": ["filter", "down", "details"], + "list": ["open"], + "listOther": ["open", "down"], + "filtered": ["open", "filter", "down"], + "errorLife": ["open", "filter", "down", "details"], + "errorOther": ["open", "filter", "down", "details"], + "back": ["open", "down", "details"] + }, + "initial": "closed", + "states": { + "closed": ["-/?/?", { "open": "list", "escape": "closed" }], + "list": ["list/-/life:failed+other:failed", { "escape": "closed", "filter": "filtered", "down": "listOther", "details": "errorLife" }], + "listOther": ["list/-/life:failed+other:failed", { "escape": "closed", "filter": "filtered", "details": "errorOther" }], + "filtered": ["list/parity.other/other:failed", { "escape": "closed", "details": "errorOther" }], + "errorLife": ["error/life/life", { "escape": "back" }], + "errorOther": ["error/other/other", { "escape": "back" }], + "back": ["list/-/life:failed+other:failed", { "escape": "closed", "filter": "filtered" }] + }, + "xfail": [] + }, + "viewer": { + "about": "The diff viewer's full-screen route (phase P6c, synthesis 4.9), opened from home at 120 by 30 cells with the source Uncommitted over two files, a.ts and b.ts, that fit on one screen, so the card at the top of the list of all files is always a.ts. open is /diff and enter on home, close is q, review is m (diff.mark_reviewed) and single is s (diff.single_patch). An observation is screen/reviewed/shown: diff while the viewer shows, else -; the files the tree marks reviewed (a, b, ab or -); and the cards shown, ab for the list of all files, else the one file's. While it is closed the last two are ?. The single view is a setting, so it outlives the viewer; the reviewed marks start over with each open. Review in the list of all files toggles the selected file, else the one at the top; in the single view it marks the file and moves on to the next, and at the last it stays there until single or close. Every action of every state has an outcome or a place in unspecified, which a reader does not send: closed, q, m and s would type into the home composer, and open while the viewer shows would type into it.", + "unspecified": { + "closedAll": ["close", "review", "single"], + "closedOne": ["close", "review", "single"], + "all": ["open"], + "allA": ["open"], + "one": ["open"], + "oneAa": ["open"], + "oneAb": ["open"], + "oneABdone": ["open"], + "allAb": ["open"], + "allABb": ["open"], + "oneABa": ["open"], + "oneBa": ["open"], + "allABa": ["open"], + "oneABb": ["open"], + "allBa": ["open"] + }, + "initial": "closedAll", + "states": { + "closedAll": ["-/?/?", { "open": "all" }], + "closedOne": ["-/?/?", { "open": "one" }], + "all": ["diff/-/ab", { "close": "closedAll", "review": "allA", "single": "one" }], + "allA": ["diff/a/ab", { "close": "closedAll", "review": "all", "single": "oneAa" }], + "one": ["diff/-/a", { "close": "closedOne", "review": "oneAb", "single": "all" }], + "oneAa": ["diff/a/a", { "close": "closedOne", "review": "one", "single": "allA" }], + "oneAb": ["diff/a/b", { "close": "closedOne", "review": "oneABdone", "single": "allAb" }], + "oneABdone": ["diff/ab/b", { "close": "closedOne", "review": "oneABdone", "single": "allABb" }], + "allAb": ["diff/a/ab", { "close": "closedAll", "review": "allABb", "single": "oneAa" }], + "allABb": ["diff/ab/ab", { "close": "closedAll", "review": "allAb", "single": "oneABa" }], + "oneABa": ["diff/ab/a", { "close": "closedOne", "review": "oneBa", "single": "allABa" }], + "oneBa": ["diff/b/a", { "close": "closedOne", "review": "oneABb", "single": "allBa" }], + "allABa": ["diff/ab/ab", { "close": "closedAll", "review": "allBa", "single": "oneABa" }], + "oneABb": ["diff/ab/b", { "close": "closedOne", "review": "oneAb", "single": "allABb" }], + "allBa": ["diff/b/ab", { "close": "closedAll", "review": "allABa", "single": "oneBa" }] + }, + "xfail": [] + } + }, + "faults": { + "life": { + "cycles": ["toggle toggle", "flip flip", "arm toggle toggle toggle"], + "xfail": [] + }, + "manager": { + "cycles": ["open escape", "open toggle toggle escape", "open internal internal escape"], + "xfail": [] + }, + "views": { + "cycles": ["open escape", "open filter escape", "open details escape escape", "open down details escape escape", "open filter details escape escape"], + "xfail": [] + }, + "viewer": { + "cycles": ["open close", "open review review close", "open single single close"], + "xfail": [] + } + } +} diff --git a/packages/cli-rs/parity/machines/plugins.test.tsx b/packages/cli-rs/parity/machines/plugins.test.tsx new file mode 100644 index 000000000000..1092d2549b06 --- /dev/null +++ b/packages/cli-rs/parity/machines/plugins.test.tsx @@ -0,0 +1,633 @@ +// The shared fixture of the plugin work (rich-plugins 4.14, O-124), TypeScript reader: the TS TUI is driven through +// the life, project, manager and viewer machines of plugins.json, with parity/plugins/life loaded as a local plugin or found in a +// project, each path on a fresh app, +// observing after every action. The Rust reader is crates/tui/tests/all/plugin_machines.rs; both read the file and +// neither reads the other. `bun run test` in packages/cli-rs, which CI runs, covers each edge once and the seeded walks; +// `bun run parity:machines` adds every path to the file's depth and the fault trials, which take a few minutes. Both +// run with parity/ as the working directory, whose bunfig.toml loads the TUI's preloads. +import { InputRenderable } from "@opentui/core" +import { expect, test } from "bun:test" +import { existsSync } from "node:fs" +import { mkdir, symlink } from "node:fs/promises" +import path from "node:path" +import { createAppFixture } from "../../../tui/test/fixture/app" +import { tmpdir } from "../../../tui/test/fixture/fixture" +import { directory, json, worktree } from "../../../tui/test/fixture/tui-client" +import machines from "./plugins.json" + +type Fixture = Awaited<ReturnType<typeof createAppFixture>> +type Machine = { + initial: string + states: Record<string, [string, Record<string, string>]> + xfail: string[][] + // A known row does not end the path: this client follows the machine on. + continue?: boolean + // The actions of a state that a reader does not send: the machine leaves their outcome open. + unspecified?: Record<string, string[]> +} + +// The full sweep: every path to the file's depth, and the fault trials. +const deep = process.env.PARITY_DEEP === "1" +// The app, and the copy of the plugin a reload rewrites. +type App = { setup: Fixture; entry: string; builds: number } + +const plugin = path.join(import.meta.dir, "../plugins/life/tui.tsx") +// The views machine's distractor, beside life, whose setup fails with its own cause. +const distractor = path.join(import.meta.dir, "../plugins/other/tui.tsx") +// JSON gives each state as a mixed array; the file's shape is checked once here. +function parse(source: (typeof machines.machines)[keyof typeof machines.machines]): Machine { + return { + ...source, + states: Object.fromEntries( + Object.entries(source.states).map(([state, [observation, edges]]) => { + if (typeof observation !== "string" || typeof edges !== "object") throw new Error(`state ${state} is malformed`) + return [state, [observation, edges as Record<string, string>]] + }), + ), + } +} +const machine = parse(machines.machines.life) +// The same plugin found in the project's plugins directory, with nothing in the config naming it. +const project = parse(machines.machines.project) +// The plugin manager's keys (phase P2); every action of a state has an edge, or is one it leaves unspecified. +const managerKeys = parse(machines.machines.manager) +// The plugin manager's views (phase P6b), with the plugin failing as it loads; as the keys, every action has an outcome. +const managerViews = parse(machines.machines.views) +// The diff viewer's route (phase P6c); as the manager's keys, every action has an outcome. +const viewer = parse(machines.machines.viewer) +let runs = 0 + +// A fresh app with a copy of the plugin, which resolves packages/tui's dependencies (as `copyPlugin` does). In the +// config, or with `inProject` in the `.opencode/plugins` of a project the app starts in; with `fail`, its setup throws, +// and so does the distractor's beside it. +async function open(inProject = false, fail = false) { + const root = await tmpdir() + const repo = path.join(root.path, "repo") + const directory = inProject ? path.join(repo, ".opencode", "plugins", "life") : path.join(root.path, "parity.life") + const entry = path.join(directory, "tui.tsx") + // A copy that resolves packages/tui's dependencies; a junction on Windows, which needs no privilege (as + // `plugin-source.test.ts` links). + const copy = async (directory: string, source: string) => { + await mkdir(directory, { recursive: true }) + await symlink( + path.join(import.meta.dir, "../../../tui/node_modules"), + path.join(directory, "node_modules"), + process.platform === "win32" ? "junction" : "dir", + ) + await Bun.write(path.join(directory, "tui.tsx"), Bun.file(source)) + } + if (inProject) await mkdir(path.join(repo, ".git"), { recursive: true }) + await copy(directory, plugin) + const other = path.join(root.path, "parity.other") + if (fail) await copy(other, distractor) + const plugins = inProject + ? [] + : [ + { package: directory, options: { run: ++runs, fail } }, + ...(fail ? [{ package: other, options: { fail } }] : []), + ] + // The app reads its plugins directories from the working directory once it runs, after the fixture returns. + const cwd = process.cwd() + if (inProject) process.chdir(repo) + const setup = await (async () => { + const setup = await createAppFixture({ width: 80, height: 24, config: { animations: false, plugins } }) + await setup.ready + // A plugin whose setup throws draws no line: its failure shows instead. + if (fail) await poll(setup, (frame) => frame.includes("plugins failed") || frame.includes("parity.other"), 5000) + else await setup.waitForFrame((frame) => frame.includes("life plugin:")) + return setup + })().finally(() => process.chdir(cwd)) + return { + setup, + entry, + builds: 1, + async [Symbol.asyncDispose]() { + await setup[Symbol.asyncDispose]() + await root[Symbol.asyncDispose]() + }, + } +} + +// A wall-clock wait on the frame, as `command-selection.test.tsx` polls: the plugin manager and the palette load +// and filter on their own timers. Undefined once `ms` passed. +async function poll(setup: Fixture, matches: (frame: string) => boolean, ms: number) { + const deadline = Date.now() + ms + while (Date.now() < deadline) { + await setup.renderOnce() + if (matches(setup.captureCharFrame())) return setup.captureCharFrame() + await Bun.sleep(10) + } + return undefined +} + +async function until(setup: Fixture, matches: (frame: string) => boolean, what: string) { + const frame = await poll(setup, matches, 5000) + if (frame === undefined) throw new Error(`${what} never showed:\n${setup.captureCharFrame()}`) + return frame +} + +async function focusedInput(setup: Fixture) { + await setup.waitFor(() => setup.renderer.currentFocusedEditor instanceof InputRenderable) +} + +// Searches the palette for `title`, runs it if `run` asks and it is listed, and returns whether it is. +async function palette(setup: Fixture, title: string, run: boolean) { + setup.mockInput.pressKey("p", { ctrl: true }) + await until(setup, (frame) => frame.includes("Commands"), "the palette") + await focusedInput(setup) + await setup.mockInput.typeText(title) + // The filter shows the title too, so a listed command shows it twice. + const frame = await until( + setup, + (frame) => frame.split(title).length - 1 >= 2 || frame.includes("No results found"), + `the palette's search for ${title}`, + ) + const listed = frame.split(title).length - 1 >= 2 + if (listed && run) setup.mockInput.pressEnter() + else setup.mockInput.pressEscape() + await until(setup, (frame) => !frame.includes("Commands"), "the palette closing") + return listed +} + +function row(frame: string) { + return frame.split("\n").find((line) => line.includes("parity.life") && !line.includes("Plugin failed")) +} + +// Opens the plugin manager filtered to the life plugin; returns its row. +async function manager(setup: Fixture) { + await setup.mockInput.typeText("/plugins") + await until(setup, (frame) => frame.includes("/plugins"), "/plugins in the prompt") + setup.mockInput.pressEnter() + await until(setup, (frame) => row(frame) !== undefined, "the life plugin's row") + await focusedInput(setup) + await setup.mockInput.typeText("life") + return row(await until(setup, (frame) => row(frame) !== undefined, "the filtered row"))! +} + +async function closeManager(setup: Fixture) { + setup.mockInput.pressEscape() + await until(setup, (frame) => row(frame) === undefined, "the plugin manager closing") +} + +async function act(app: App, action: string) { + const setup = app.setup + if (action === "toggle") { + const before = await manager(setup) + setup.mockInput.pressEnter() + // An enable whose setup throws leaves the row as it was and shows the error in a toast; one or the other shows. + await until(setup, (frame) => row(frame) !== before || frame.includes("armed to throw"), "the toggle's outcome") + await closeManager(setup) + return + } + if (action === "escape" || action === "enter") { + if (action === "escape") setup.mockInput.pressEscape() + else setup.mockInput.pressEnter() + await until(setup, (frame) => dialog(frame) === undefined, "the dialog closing") + // The answer's promise flips the line after the close. + await setup.renderOnce() + return + } + // TS has no question about a project's plugin (deviation F16-project-plugin-approval): it runs at once. + if (action === "approve" || action === "decline") return + if (action === "leader") { + // The leader starts a key sequence, which the line shows while it is pending. + setup.mockInput.pressKey("x", { ctrl: true }) + await until(setup, (frame) => keys(frame) !== undefined, "the pending keys") + return + } + if (action === "reload") { + // A new build in place; the watcher reconciles. The line names the build, also under a dialog. + const source = await Bun.file(app.entry).text() + await Bun.write(app.entry, source.replace(/const build = \d+/, `const build = ${++app.builds}`)) + await until(setup, (frame) => frame.includes(`build ${app.builds}`), `build ${app.builds}`) + return + } + await palette(setup, `Life ${action}`, true) + await setup.renderOnce() +} + +// The plugin's dialog on screen, by its title. +function dialog(frame: string) { + const dialogs = [ + ["Life prompt", "prompt"], + ["Life asks", "confirm"], + ["Life says", "alert"], + ] + return dialogs.find(([title]) => frame.includes(title))?.[1] +} + +// The keys the plugin's line shows as pending, if any. +function keys(frame: string) { + return frame.match(/life plugin: [AB][^\n]* keys (\S+)/)?.[1] +} + +// line/palette/row/dialog. While its dialog shows, the palette and the manager would replace it, so the first three +// are not read; while a key sequence is pending, a key would continue it, so the line is read with its keys alone. +async function observe(setup: Fixture) { + const frame = setup.captureCharFrame() + const shown = dialog(frame) + if (shown) return `?/?/?/${shown}` + const line = ["A", "B"].find((side) => frame.includes(`life plugin: ${side}`)) ?? "-" + const pending = keys(frame) + if (pending) return `${line}+${pending}/?/?/-` + const listed = (await palette(setup, "Life flip", false)) ? "yes" : "no" + const found = await manager(setup) + await closeManager(setup) + const status = + ["failed", "pending", "declined"].find((status) => found.includes(status)) ?? + (found.includes("inactive") ? "off" : "on") + return `${line}/${listed}/${status}/-` +} + +// The manager's footer offers to show or hide the built-in rows; undefined while it is closed. +function internal(frame: string) { + return ["show", "hide"].find((word) => frame.includes(`${word} internal`)) +} + +// An action of the manager machine: /plugins, escape, ctrl+a, or enter on the selected row. +async function actManager(app: App, action: string) { + const setup = app.setup + const frame = setup.captureCharFrame() + if (action === "open") { + await setup.mockInput.typeText("/plugins") + await until(setup, (frame) => frame.includes("/plugins"), "/plugins in the prompt") + setup.mockInput.pressEnter() + await until(setup, (frame) => internal(frame) !== undefined && row(frame) !== undefined, "the plugin manager") + return + } + // With the manager closed the key goes to the empty home composer, where nothing shows a change: it is sent, and the + // frame is read once it has settled. + if (internal(frame) === undefined) { + if (action === "escape") setup.mockInput.pressEscape() + if (action === "internal") setup.mockInput.pressKey("a", { ctrl: true }) + if (action === "toggle") setup.mockInput.pressEnter() + await poll(setup, () => false, 100) + return + } + if (action === "escape") { + setup.mockInput.pressEscape() + await until(setup, (frame) => internal(frame) === undefined, "the plugin manager closing") + return + } + if (action === "internal") { + const before = internal(frame) + setup.mockInput.pressKey("a", { ctrl: true }) + await until(setup, (frame) => internal(frame) !== before, "the internal rows") + return + } + const before = row(frame) + setup.mockInput.pressEnter() + await until(setup, (frame) => row(frame) !== before, "the toggle's outcome") +} + +// An action of the views machine: /plugins, life typed into the filter, the key the footer offers for view error, or +// escape. +async function actViews(app: App, action: string) { + const setup = app.setup + const frame = setup.captureCharFrame() + if (action === "open") { + await setup.mockInput.typeText("/plugins") + await until(setup, (frame) => frame.includes("/plugins"), "/plugins in the prompt") + setup.mockInput.pressEnter() + await until(setup, (frame) => internal(frame) !== undefined, "the plugin manager") + await focusedInput(setup) + return + } + if (action === "filter") { + await setup.mockInput.typeText("parity.other") + await until(setup, (frame) => !frame.includes("Search"), "the filter") + return + } + if (action === "down") { + setup.mockInput.pressArrow("down") + await setup.renderOnce() + return + } + if (action === "details") { + if (frame.includes("view error space")) setup.mockInput.pressKey(" ") + else setup.mockInput.pressEnter() + await until(setup, (frame) => frame.includes("TUI plugin error"), "the details") + return + } + setup.mockInput.pressEscape() + if (frame.includes("TUI plugin error")) { + await until(setup, (frame) => internal(frame) !== undefined, "the list again") + await focusedInput(setup) + return + } + // With the manager closed the key goes to the empty home composer, where nothing shows a change. + if (internal(frame) === undefined) return void (await poll(setup, () => false, 100)) + await until(setup, (frame) => internal(frame) === undefined, "the plugin manager closing") +} + +// dialog/a/b, as plugins.json writes them for the views machine: the query and the rows of the list, or the plugin +// whose source and the plugin whose cause the details show. +function observeViews(setup: Fixture) { + const frame = setup.captureCharFrame() + const lines = frame.split("\n") + if (frame.includes("TUI plugin error")) { + // The source, on the row under the title: the plugin's directory. A toast may name other plugins. + const title = lines.findIndex((line) => line.includes("TUI plugin error")) + const plugin = (lines[title + 1] ?? "").match(/parity\.([a-z]+)/)?.[1] ?? "?" + const [life, other] = [frame.includes("life setup"), frame.includes("other setup")] + return `error/${plugin}/${life && !other ? "life" : other && !life ? "other" : "?"}` + } + if (internal(frame) === undefined) return "-/?/?" + // The filter's field is two rows under the title's. + const title = lines.findIndex((line) => line.includes("Plugins") && line.includes("esc")) + const query = title < 0 ? "?" : (lines[title + 2] ?? "").trim() + const rows = lines + .filter((line) => line.includes("parity.") && line.includes("local")) + .map((line) => { + const name = line.match(/parity\.([a-z]+)/)?.[1] ?? "?" + const status = line.includes("failed") ? "failed" : line.includes("inactive") ? "off" : "on" + return `${name}:${status}` + }) + return `list/${query === "Search" ? "-" : query}/${rows.join("+")}` +} + +// dialog/internal/life, as plugins.json writes them for the manager machine. +function observeManager(setup: Fixture) { + const frame = setup.captureCharFrame() + const shown = internal(frame) + if (!shown) return `-/?/${frame.includes("life plugin:") ? "on" : "off"}` + // The built-in rows may push the life row below the screen. + if (shown === "hide") return "list/hide/?" + const found = row(frame) + return `list/${shown}/${found === undefined ? "none" : found.includes("inactive") ? "off" : "on"}` +} + +// The diff viewer's files: a.ts and b.ts, one changed line each, which fit on one screen. +function diffFile(name: string) { + return { + file: `${name}.ts`, + patch: `@@ -1 +1 @@\n-old ${name}\n+new ${name}\n`, + additions: 1, + deletions: 1, + status: "modified", + } +} + +// A fresh app on home at 120 by 30 cells whose server lists the two files' diff. +async function openViewer() { + const location = { directory, project: { id: "proj_test", directory: worktree, canonical: worktree } } + const setup = await createAppFixture({ + width: 120, + height: 30, + config: { animations: false, diffs: { source: "working" } }, + fetch: (url) => + url.pathname === "/api/vcs/diff" ? json({ location, data: [diffFile("a"), diffFile("b")] }) : undefined, + }) + await setup.ready + await until(setup, (frame) => frame.includes("Ask anything"), "home") + return { setup, [Symbol.asyncDispose]: () => setup[Symbol.asyncDispose]() } +} + +// Draws until three frames in a row are the same. +async function settled(setup: Fixture) { + let [last, same] = ["", 0] + for (let tries = 0; tries < 200 && same < 3; tries++) { + await setup.renderOnce() + const frame = setup.captureCharFrame() + same = frame === last ? same + 1 : 0 + last = frame + await Bun.sleep(10) + } +} + +// An action of the viewer machine: /diff and enter, q, m or s. +async function actViewer(setup: Fixture, action: string) { + if (action === "open") { + await setup.mockInput.typeText("/diff") + await until(setup, (frame) => frame.includes("/diff"), "/diff in the prompt") + setup.mockInput.pressEnter() + await until(setup, (frame) => frame.includes("≡ a.ts"), "the diff viewer") + } else setup.mockInput.pressKey({ close: "q", review: "m", single: "s" }[action]!) + await settled(setup) +} + +// screen/reviewed/shown, as plugins.json writes them for the viewer machine: the tree is the first 30 columns. +function observeViewer(setup: Fixture) { + const frame = setup.captureCharFrame() + if (!frame.includes("≡ a.ts")) return "-/?/?" + let [reviewed, shown] = ["", ""] + for (const line of frame.split("\n")) { + const cells = Array.from(line) + const [tree, pane] = [cells.slice(0, 30).join(""), cells.slice(30).join("")] + for (const name of ["a", "b"]) { + if (tree.includes(`≡ ${name}.ts`) && tree.trimEnd().endsWith("✓")) reviewed += name + if (pane.includes(`${name}.ts`)) shown += name + } + } + return `diff/${reviewed || "-"}/${shown}` +} + +// Replays `path` of the viewer machine on a fresh app, sending every action but those a state leaves unspecified. +async function replayViewer(path: string[], known: Set<string>, seen: Set<string>) { + await using app = await openViewer() + let state = viewer.initial + for (const [index, action] of ["mount", ...path].entries()) { + const edge = viewer.states[state][1][action] + const next = index === 0 ? state : (edge ?? state) + if (index > 0 && edge !== undefined) await actViewer(app.setup, action) + if (index > 0 && edge === undefined && !viewer.unspecified?.[state]?.includes(action)) + throw new Error(`the viewer machine names no outcome of ${action} in ${state}`) + const [expected, actual] = [viewer.states[next][0], observeViewer(app.setup)] + if (actual !== expected) { + const key = `${state} ${action} ${actual}` + if (known.has(key)) return void seen.add(key) + return `${path.slice(0, index).join(" ")}: ${state} + ${action}: expected ${expected}, got ${actual}` + } + state = next + } + return undefined +} + +// Replays `path` of `machine` on a fresh app. An action a state has no edge for does nothing; the manager machine names +// an outcome for each, and its reader sends every action but those it lists as unspecified. The first difference that +// is not a known row, or undefined; a known row ends the path, unless the machine says to follow it on. +async function replay(machine: Machine, path: string[], known: Set<string>, seen: Set<string>) { + if (machine === viewer) return replayViewer(path, known, seen) + await using app = await open(machine === project, machine === managerViews) + const views = machine === managerViews + const keyed = machine === managerKeys || views + let state = machine.initial + for (const [index, action] of ["mount", ...path].entries()) { + const edge = machine.states[state][1][action] + const next = index === 0 ? state : (edge ?? state) + if (index > 0 && !keyed) await act(app, action) + if (index > 0 && views && edge !== undefined) await actViews(app, action) + if (index > 0 && keyed && !views && edge !== undefined) await actManager(app, action) + if (index > 0 && keyed && edge === undefined && !machine.unspecified?.[state]?.includes(action)) + throw new Error(`the manager machine names no outcome of ${action} in ${state}`) + const observed = views ? observeViews(app.setup) : keyed ? observeManager(app.setup) : await observe(app.setup) + const [expected, actual] = [machine.states[next][0], observed] + if (actual !== expected) { + const key = `${state} ${action} ${actual}` + if (known.has(key)) { + seen.add(key) + if (!machine.continue) return undefined + state = next + continue + } + return `${[...path.slice(0, index)].join(" ")}: ${state} + ${action}: expected ${expected}, got ${actual}` + } + state = next + } + return undefined +} + +// This client's known differences among `rows`, each naming a deviation file or an open finding. +function known(...rows: string[][][]) { + const ours = rows.flat().filter((row) => row[0] === "ts") + for (const [, file] of ours) + if (!file.startsWith("finding:") && !existsSync(path.join(import.meta.dir, `../deviations/${file}.md`))) + throw new Error(`xfail row names no deviation file: ${file}`) + return new Set(ours.map((row) => row[2])) +} + +// Each edge of `machine` once: the shortest path to its state, then its action. +function cover(machine: Machine) { + const reach = new Map<string, string[]>([[machine.initial, []]]) + const queue = [machine.initial] + for (const state of queue) + for (const [action, next] of Object.entries(machine.states[state][1])) + if (!reach.has(next)) { + reach.set(next, [...reach.get(state)!, action]) + queue.push(next) + } + return [...reach].flatMap(([state, path]) => Object.keys(machine.states[state][1]).map((action) => [...path, action])) +} + +// Every path of `machine` from its initial state to the file's depth. +function paths(machine: Machine, state = machine.initial, path: string[] = []): string[][] { + const edges = Object.entries(machine.states[state][1]) + if (path.length === machines.depth || edges.length === 0) return [path] + return edges.flatMap(([action, next]) => paths(machine, next, [...path, action])) +} + +// The file's seeded walks, as OpenTUI's reader makes them. +function walks(machine: Machine) { + const out: string[][] = [] + for (let seed = 0; seed < machines.seeds; seed++) { + let [state, n, walk] = [machine.initial, seed, [] as string[]] + for (let step = 0; step < machines.steps; step++) { + const keys = Object.keys(machine.states[state][1]).sort() + n = (Math.imul(n, 1664525) + 1013904223) >>> 0 + const action = keys[(n >>> 16) % keys.length] + walk.push(action) + state = machine.states[state][1][action] + } + out.push(walk) + } + return out +} + +// Two normal cycles, each with one action dropped, repeated, or swapped with the next. +function faulted(name: "life" | "manager" | "views" | "viewer") { + const cycles = machines.faults[name].cycles.map((cycle) => cycle.split(" ")) + const out = new Map<string, string[]>() + for (const a of cycles) + for (const b of cycles) { + const normal = [...a, ...b] + for (let i = 0; i < normal.length; i++) { + const variants = [normal.toSpliced(i, 1), normal.toSpliced(i, 0, normal[i])] + if (i + 1 < normal.length) variants.push(normal.toSpliced(i, 2, normal[i + 1], normal[i])) + for (const variant of variants) out.set(variant.join(" "), variant) + } + } + return [...out.values()] +} + +async function check(paths: string[][], rows: Set<string>, from = machine) { + const seen = new Set<string>() + const failures: string[] = [] + for (const path of paths) { + const failure = await replay(from, path, rows, seen) + if (failure) failures.push(failure) + } + expect(failures).toEqual([]) + return seen +} + +// The budgets name the work, each path on a fresh app: 37 edges or 323 paths of up to 4 actions, 8 walks of 12, and +// the fault trials. Every edge is on some path, so either set meets every known row. +test("the plugin life follows the shared fixture", async () => { + const rows = known(machine.xfail) + const seen = await check(deep ? paths(machine) : cover(machine), rows) + expect([...rows].filter((row) => !seen.has(row))).toEqual([]) +}, 600_000) + +// A plugin in the project's plugins directory: TS loads it at once and has no question about it, as the file says +// (Rust lists it pending, then declined or approved: deviation F16-project-plugin-approval). +test("a project plugin follows the shared fixture", async () => { + const rows = known(project.xfail) + const seen = await check(deep ? paths(project) : cover(project), rows, project) + expect([...rows].filter((row) => !seen.has(row))).toEqual([]) +}, 600_000) + +test("the plugin life follows the shared fixture on walks", async () => { + await check(walks(machine), known(machine.xfail)) +}, 600_000) + +test.if(deep)( + "the plugin life recovers from a dropped, repeated or swapped action", + async () => { + await check(faulted("life"), known(machine.xfail, machines.faults.life.xfail)) + }, + 600_000, +) + +test("the plugin manager's keys follow the shared fixture", async () => { + const rows = known(managerKeys.xfail) + const seen = await check(deep ? paths(managerKeys) : cover(managerKeys), rows, managerKeys) + expect([...rows].filter((row) => !seen.has(row))).toEqual([]) +}, 600_000) + +test("the plugin manager's keys follow the shared fixture on walks", async () => { + await check(walks(managerKeys), known(managerKeys.xfail), managerKeys) +}, 600_000) + +test.if(deep)( + "the plugin manager's keys recover from a dropped, repeated or swapped action", + async () => { + await check(faulted("manager"), known(managerKeys.xfail, machines.faults.manager.xfail), managerKeys) + }, + 600_000, +) + +test("the plugin manager's views follow the shared fixture", async () => { + const rows = known(managerViews.xfail) + const seen = await check(deep ? paths(managerViews) : cover(managerViews), rows, managerViews) + expect([...rows].filter((row) => !seen.has(row))).toEqual([]) +}, 600_000) + +test("the plugin manager's views follow the shared fixture on walks", async () => { + await check(walks(managerViews), known(managerViews.xfail), managerViews) +}, 600_000) + +test.if(deep)( + "the plugin manager's views recover from a dropped, repeated or swapped action", + async () => { + await check(faulted("views"), known(managerViews.xfail, machines.faults.views.xfail), managerViews) + }, + 600_000, +) + +test("the diff viewer follows the shared fixture", async () => { + const rows = known(viewer.xfail) + const seen = await check(deep ? paths(viewer) : cover(viewer), rows, viewer) + expect([...rows].filter((row) => !seen.has(row))).toEqual([]) +}, 600_000) + +test("the diff viewer follows the shared fixture on walks", async () => { + await check(walks(viewer), known(viewer.xfail), viewer) +}, 600_000) + +test.if(deep)( + "the diff viewer recovers from a dropped, repeated or swapped action", + async () => { + await check(faulted("viewer"), known(viewer.xfail, machines.faults.viewer.xfail), viewer) + }, + 600_000, +) diff --git a/packages/cli-rs/parity/oracle/C.3-stats.ts b/packages/cli-rs/parity/oracle/C.3-stats.ts new file mode 100644 index 000000000000..861a9acbd73f --- /dev/null +++ b/packages/cli-rs/parity/oracle/C.3-stats.ts @@ -0,0 +1,288 @@ +// P-ORACLE for C.3: `activityCalendar` and the `stats` command's `renderStats` over fixed inputs. Writes +// parity/fixtures/C.3/stats.json; the tests in crates/cli/src/commands/stats.rs evaluate the Rust ports +// on the same inputs and compare. +// +// Both read process state: `activityCalendar` takes local dates (TZ), and the stats palette comes from +// COLORFGBG when the module loads. So each time zone and each COLORFGBG runs in a child process. The +// time zones have fixed offsets, which the Rust test can rebuild with `FixedOffset`. +import type { SessionStatsInfo } from "@opencode/client" +import { activityCalendar } from "../../../util/src/activity-calendar" + +type Child = { kind: "calendar"; tz: string } | { kind: "render"; colorfgbg?: string } + +if (process.env.C3_ORACLE_CHILD) { + const child = JSON.parse(process.env.C3_ORACLE_CHILD) as Child + console.log(JSON.stringify(child.kind === "calendar" ? calendarCases() : await renderCases())) + process.exit(0) +} + +// `Etc/GMT-9` is UTC+9 (POSIX signs are inverted). +const zones = [ + { tz: "UTC", offset: 0 }, + { tz: "Etc/GMT-9", offset: 9 * 3600 }, + { tz: "Etc/GMT+5", offset: -5 * 3600 }, +] +const palettes = [undefined, "15;0", "0;15", "0;7", "15;6", "15;default"] + +const calendar = zones.flatMap((zone) => + run({ kind: "calendar", tz: zone.tz }, { TZ: zone.tz }).map((item: object) => ({ ...zone, ...item })), +) +const renders = palettes.map((colorfgbg) => ({ + colorfgbg: colorfgbg ?? null, + ...run({ kind: "render", colorfgbg }, { TZ: "UTC", ...(colorfgbg === undefined ? {} : { COLORFGBG: colorfgbg }) }), +})) +// Without color the palette does not matter, so only the first palette keeps those cases. +const render = renders.map((item, index) => ({ + colorfgbg: item.colorfgbg, + cases: item.cases.filter((entry: { options: { color: boolean } }) => index === 0 || entry.options.color), +})) + +const file = new URL("../fixtures/C.3/stats.json", import.meta.url).pathname +// One case per line: the calendars and the colored renders are too long to indent. +const lines = (items: unknown[]) => `[\n${items.map((item) => JSON.stringify(item)).join(",\n")}\n]` +await Bun.write( + file, + `{\n"calendar": ${lines(calendar)},\n"stats": ${JSON.stringify(renders[0].stats)},\n"render": [\n${render + .map((item) => `{"colorfgbg": ${JSON.stringify(item.colorfgbg)}, "cases": ${lines(item.cases)}}`) + .join(",\n")}\n]\n}\n`, +) +const count = render.reduce((sum, item) => sum + item.cases.length, 0) +console.log(`stats: ${calendar.length} calendar cases, ${count} renders over ${render.length} palettes`) + +function run(child: Child, env: Record<string, string>) { + const base = Object.fromEntries(Object.entries(process.env).filter(([key]) => key !== "COLORFGBG")) + const proc = Bun.spawnSync(["bun", "run", import.meta.path], { + env: { ...base, ...env, C3_ORACLE_CHILD: JSON.stringify(child) }, + stderr: "inherit", + }) + if (proc.exitCode !== 0) throw new Error(`oracle child ${JSON.stringify(child)} failed`) + return JSON.parse(proc.stdout.toString()) +} + +function calendarCases() { + const at = (year: number, month: number, day: number, hour = 0) => new Date(year, month, day, hour).getTime() + const days = (from: string, count: number, steps: (index: number) => number) => + Array.from({ length: count }, (_, index) => { + const date = new Date(`${from}T00:00:00Z`) + date.setUTCDate(date.getUTCDate() + index) + return { date: date.toISOString().slice(0, 10), steps: steps(index) } + }) + const short = [ + { date: "2026-01-01", steps: 1 }, + { date: "2026-01-02", steps: 50 }, + ] + const inputs = [ + { name: "two weeks", activity: short, from: at(2026, 0, 1), to: at(2026, 0, 8), maxWeeks: 53 }, + { name: "clipped to one week", activity: [], from: at(2026, 0, 1), to: at(2026, 0, 8), maxWeeks: 1 }, + { name: "capped at 53 weeks", activity: short, from: at(2020, 0, 1), to: at(2026, 0, 8), maxWeeks: 200 }, + { name: "partial months", activity: short, from: at(2026, 3, 29), to: at(2026, 4, 20), maxWeeks: 53 }, + { name: "one day", activity: short, from: at(2026, 3, 1), to: at(2026, 3, 2), maxWeeks: 53 }, + { name: "year boundary", activity: short, from: at(2025, 11, 22), to: at(2026, 0, 12), maxWeeks: 53 }, + { + name: "leap day", + activity: [ + { date: "2024-02-29", steps: 1 }, + { date: "2024-03-10", steps: 1 }, + ], + from: at(2024, 1, 26), + to: at(2024, 2, 12), + maxWeeks: 53, + }, + { + name: "one distinct count", + activity: short.map((day) => ({ ...day, steps: 10 })), + from: at(2026, 0, 1), + to: at(2026, 0, 8), + maxWeeks: 53, + }, + { + name: "eight levels", + activity: days("2026-01-01", 8, (index) => index + 1), + from: at(2026, 0, 1), + to: at(2026, 0, 10), + maxWeeks: 53, + }, + { + name: "clipped keeps range levels", + activity: [ + { date: "2026-01-01", steps: 50 }, + { date: "2026-01-05", steps: 1 }, + ], + from: at(2026, 0, 1), + to: at(2026, 0, 8), + maxWeeks: 1, + }, + { name: "empty range", activity: [], from: at(2026, 0, 1), to: at(2026, 0, 1), maxWeeks: 53 }, + { name: "reversed range", activity: [], from: at(2026, 0, 8), to: at(2026, 0, 1), maxWeeks: 53 }, + { + name: "a year so far, mid-day end", + activity: days("2026-01-01", 300, (index) => (index * 37) % 23), + from: at(2026, 0, 1), + to: at(2026, 9, 27, 15) + 1, + maxWeeks: 76, + }, + { + name: "a past year, narrow", + activity: days("2025-03-01", 40, (index) => (index % 5) * 3), + from: at(2025, 0, 1), + to: at(2026, 0, 1), + maxWeeks: 16.7, + }, + { name: "negative width", activity: short, from: at(2026, 0, 1), to: at(2026, 0, 20), maxWeeks: -3 }, + { + name: "duplicate dates and outside activity", + activity: [ + { date: "2026-01-03", steps: 4 }, + { date: "2026-01-03", steps: 9 }, + { date: "2025-06-01", steps: 100 }, + { date: "2026-01-04", steps: 0 }, + ], + from: at(2026, 0, 1), + to: at(2026, 0, 8), + maxWeeks: 53, + }, + { name: "UTC-midnight edges", activity: short, from: Date.UTC(2026, 0, 1), to: Date.UTC(2026, 1, 1), maxWeeks: 53 }, + ] + return inputs.map((input) => ({ input, output: activityCalendar(input) })) +} + +async function renderCases() { + const { renderStats } = await import("../../../cli/src/commands/handlers/stats") + const day = 86_400_000 + const from = Date.UTC(2026, 10, 4) - 364 * day + const to = Date.UTC(2026, 10, 4, 15, 30) + 1 + const activity = Array.from({ length: 365 }, (_, index) => ({ + date: new Date(from + index * day).toISOString().slice(0, 10), + steps: index % 3 === 0 ? 0 : ((index * 7919) % 97) + 1, + })) + const tokens = (input: number, output: number, reasoning: number, read: number, write: number) => ({ + input, + output, + reasoning, + cache: { read, write }, + }) + const tool = (name: string, calls: number, succeeded: number, failed: number, durationP50?: number) => ({ + name, + calls, + succeeded, + failed, + unfinished: calls - succeeded - failed, + ...(durationP50 === undefined ? {} : { durationP50 }), + }) + const full: SessionStatsInfo = { + range: { from, to }, + sessions: 1234, + subagents: 56, + prompts: 9_876, + steps: 54_321, + tokens: tokens(12_345_678, 2_345_678, 345_678, 987_654_321, 12_345_678), + cost: 1234.565, + tools: { + mode: "detail", + totals: { calls: 5000, succeeded: 4900, failed: 75, unfinished: 25 }, + usage: [ + tool("read", 2000, 1990, 10, 12.4), + tool("bash", 1500, 1400, 75, 1534), + tool("edit", 800, 800, 0, 999.5), + tool("a-very-long-tool-name-from-some-mcp-server_with_suffix", 400, 399, 1, 120_000), + tool("pending", 300, 0, 0), + tool("webfetch", 5, 4, 1, 0.4), + ], + }, + activeDays: 243, + streak: 17, + activity, + models: [ + { + model: { providerID: "anthropic", id: "claude-opus-5-5" }, + steps: 40_000, + tokens: tokens(9_000_000, 1_000_000, 0, 500_000_000, 5_000_000), + cost: 900.125, + }, + { + model: { providerID: "openai", id: "gpt-5", variant: "high" }, + steps: 10_000, + tokens: tokens(999, 1, 0, 0, 0), + cost: 0.005, + }, + { + model: { providerID: "openrouter", id: "some/really-long-model-identifier-that-overflows" }, + steps: 999, + tokens: tokens(1_999_999_999, 0, 0, 0, 0), + cost: 334.435, + }, + { model: { providerID: "local", id: "tiny" }, steps: 1, tokens: tokens(0, 0, 0, 0, 0), cost: 0 }, + ], + } + const singular: SessionStatsInfo = { + ...full, + sessions: 1, + subagents: 0, + prompts: 1, + steps: 1, + tokens: tokens(1, 0, 0, 0, 0), + tools: { mode: "summary", totals: { calls: 3, succeeded: 3, failed: 0, unfinished: 0 } }, + activeDays: 1, + streak: 1, + range: { from: Date.UTC(2026, 10, 4), to: Date.UTC(2026, 10, 4, 9) + 1 }, + activity: [{ date: "2026-11-04", steps: 1 }], + models: [], + } + const noTools: SessionStatsInfo = { + ...singular, + sessions: 2, + tools: { mode: "summary", totals: { calls: 2, succeeded: 0, failed: 0, unfinished: 2 } }, + } + const noToolStats: SessionStatsInfo = { ...singular, sessions: 3, tools: { mode: "none" } } + const noDetails: SessionStatsInfo = { + ...singular, + tools: { mode: "detail", totals: { calls: 0, succeeded: 0, failed: 0, unfinished: 0 }, usage: [] }, + } + const empty: SessionStatsInfo = { + ...singular, + sessions: 0, + prompts: 0, + steps: 0, + tokens: tokens(0, 0, 0, 0, 0), + cost: 0, + activeDays: 0, + streak: 0, + activity: [], + } + const base = { label: "last 365 days", scope: "all projects", models: false, tools: false, cost: false, limit: 5 } + const options = [ + { name: "summary", width: 80 }, + { name: "summary wide", width: 120 }, + { name: "summary narrow", width: 40 }, + { name: "summary tiny", width: 3 }, + { name: "models", width: 80, models: true }, + { name: "models narrow", width: 60, models: true, limit: 2 }, + { name: "tools", width: 68, tools: true, limit: 3 }, + { name: "tools narrow", width: 67, tools: true }, + { name: "tools one more", width: 30, tools: true, limit: 5 }, + { name: "cost", width: 80, cost: true }, + { name: "full", width: 100, models: true, tools: true, cost: true, label: "2026 so far", scope: "current project" }, + { name: "full narrow", width: 50, models: true, tools: true, cost: true, limit: 1 }, + ] + const inputs = [ + { stats: "full", value: full }, + { stats: "singular", value: singular }, + { stats: "no tool calls", value: noTools }, + { stats: "no tool stats", value: noToolStats }, + { stats: "no details", value: noDetails }, + { stats: "empty", value: empty }, + ] + // Every layout for the full stats; the summary and the detail sections for the others. + const cases = inputs.flatMap((input) => + options + .filter((option) => input.stats === "full" || ["summary", "full", "full narrow"].includes(option.name)) + .flatMap((option) => + [false, true].map((color) => { + const { name, ...rest } = option + const resolved = { ...base, ...rest, color } + return { stats: input.stats, name, options: resolved, output: renderStats(input.value, resolved) } + }), + ), + ) + return { stats: Object.fromEntries(inputs.map((input) => [input.stats, input.value])), cases } +} diff --git a/packages/cli-rs/parity/oracle/C.p-prompts.ts b/packages/cli-rs/parity/oracle/C.p-prompts.ts new file mode 100644 index 000000000000..00211b67f94b --- /dev/null +++ b/packages/cli-rs/parity/oracle/C.p-prompts.ts @@ -0,0 +1,111 @@ +// C.p helper: runs one named prompt script with the `@clack/prompts` that `packages/cli` uses. +// `crates/cli/src/prompt/demo.rs` (the `opencode-prompt-demo` binary) runs the same scripts with the +// Rust prompt kit, so P-PTY and P-CLI can compare the two screen for screen. +// +// bun run parity/oracle/C.p-prompts.ts <case> + +import path from "node:path" + +const cli = path.resolve(import.meta.dir, "../../../cli") +const clack: typeof import("@clack/prompts") = await import(Bun.resolveSync("@clack/prompts", cli)) + +// Ends the script the way `packages/cli/src/ui/prompt.ts` `handlePromptErrors` does on a cancel. +function check<T>(value: T | symbol): T { + if (!clack.isCancel(value)) return value + clack.cancel("Cancelled") + process.exit(130) +} + +function show(value: unknown) { + clack.log.step(`value: ${Array.isArray(value) ? value.join(",") : String(value)}`) +} + +const providers = [ + { value: "anthropic", label: "Anthropic", hint: "recommended" }, + { value: "openai", label: "OpenAI" }, + { value: "google", label: "Google", hint: "Gemini" }, + { value: "local" }, +] +const many = Array.from({ length: 20 }, (_, index) => ({ value: `item-${index + 1}`, label: `Item ${index + 1}` })) + +const cases: Record<string, () => Promise<void>> = { + async text() { + clack.intro("Text") + show(check(await clack.text({ message: "Your name", placeholder: "Ada Lovelace" }))) + clack.outro("Done") + }, + async "text-validate"() { + show( + check( + await clack.text({ + message: "Port", + initialValue: "80", + defaultValue: "8080", + validate: (value) => (!value ? undefined : /^\d+$/.test(value) ? undefined : "Expected a number"), + }), + ), + ) + show(check(await clack.text({ message: "Required", validate: (value) => (value ? undefined : "Required") }))) + }, + async password() { + show(check(await clack.password({ message: "API key", validate: (value) => (value ? undefined : "Required") }))) + }, + async confirm() { + show(check(await clack.confirm({ message: "Continue?" }))) + show(check(await clack.confirm({ message: "Delete it?", initialValue: false, active: "Delete", inactive: "Keep" }))) + }, + async select() { + show(check(await clack.select({ message: "Provider", options: providers, initialValue: "openai" }))) + }, + async "select-long"() { + show(check(await clack.select({ message: "Pick one", options: many, maxItems: 7 }))) + }, + async multiselect() { + show(check(await clack.multiselect({ message: "Providers", options: providers, initialValues: ["google"] }))) + show(check(await clack.multiselect({ message: "Optional", options: providers.slice(0, 2), required: false }))) + }, + async autocomplete() { + show(check(await clack.autocomplete({ message: "Search", options: [...providers, ...many], maxItems: 6 }))) + }, + async spinner() { + clack.intro("Spinner") + const progress = clack.spinner() + progress.start("Installing...") + await Bun.sleep(300) + progress.message("Linking") + await Bun.sleep(300) + progress.stop("Installed") + const failing = clack.spinner() + failing.start("Connecting") + await Bun.sleep(200) + failing.stop("Connection failed", 1) + clack.outro("Done") + }, + async "spinner-wait"() { + const progress = clack.spinner() + progress.start("Waiting") + await Bun.sleep(20_000) + progress.stop("Finished") + }, + async messages() { + clack.intro("Messages") + clack.log.message("Plain message\nsecond line\n\nafter a blank") + clack.log.info("Info") + clack.log.success("Success") + clack.log.step("Step") + clack.log.warn("Warning") + clack.log.error("Error") + clack.note("First line of the note\nsecond", "A title") + clack.note("Short", "A much longer title than the body") + clack.outro("Bye") + clack.cancel("Cancelled") + }, +} + +const name = Bun.argv[2] ?? "" +const run = cases[name] +if (!run) { + console.error(`unknown case: ${name}`) + process.exit(2) +} +await run() diff --git a/packages/cli-rs/parity/oracle/E.12-tabs.ts b/packages/cli-rs/parity/oracle/E.12-tabs.ts new file mode 100644 index 000000000000..33554503ed43 --- /dev/null +++ b/packages/cli-rs/parity/oracle/E.12-tabs.ts @@ -0,0 +1,32 @@ +// P-FILE for the `tabs` and `layout` storage keys (E.12): crates/tui/tests/all/tabs.rs runs this against the state +// directory the Rust TUI writes, through the TS storage (`context/storage.tsx`, the same lock and atomic write) and +// the TS tab model. +// +// load <state> <channel> prints {tabs, layout} as the TS TUI reads them +// move <state> <channel> <cwd> <session> <index> moves a tab in the cwd scope, as a drag in the strip does +// width <state> <channel> <width> stores verticalTabsWidth, as the rail's resize handle does +import { createStorage } from "../../../tui/src/context/storage" +import { moveSessionTab, type SessionTab } from "../../../tui/src/context/session-tabs-model" + +type Scope = { tabs: SessionTab[]; unread: Record<string, unknown> } +type Tabs = { global: Scope; cwd: Record<string, Scope> } + +const [command, state, channel, ...rest] = process.argv.slice(2) +// `bun run parity/fixtures.ts` runs every oracle without arguments; this one writes no fixture. +if (command && state && channel) { + const { storage, close } = createStorage(state, channel) + const [tabs, updateTabs] = storage.store<Tabs>("tabs", { initial: { global: { tabs: [], unread: {} }, cwd: {} } }) + const [layout, updateLayout] = storage.store<{ verticalTabsWidth?: number; paneWidth?: number }>("layout", { + initial: {}, + }) + if (command === "move") { + const [cwd, session, index] = rest + await updateTabs((draft) => { + const scope = (draft.cwd[cwd!] ??= { tabs: [], unread: {} }) + scope.tabs = moveSessionTab(scope.tabs, session!, Number(index)) + }) + } + if (command === "width") await updateLayout((draft) => void (draft.verticalTabsWidth = Number(rest[0]))) + console.log(JSON.stringify({ tabs: JSON.parse(JSON.stringify(tabs)), layout: JSON.parse(JSON.stringify(layout)) })) + close() +} diff --git a/packages/cli-rs/parity/oracle/E.16-model-json.ts b/packages/cli-rs/parity/oracle/E.16-model-json.ts new file mode 100644 index 000000000000..16bfebdaa940 --- /dev/null +++ b/packages/cli-rs/parity/oracle/E.16-model-json.ts @@ -0,0 +1,13 @@ +// P-FILE for model.json (E.16): crates/tui/tests/all/models.rs runs this against the state directory the Rust TUI +// writes. `load <state>` prints what the TypeScript client reads; `recent <state> <provider> <model>` adds a +// recent model the way the TypeScript model dialog does, under the same lock. +import path from "node:path" +import { createModelPreferenceRepository } from "../../../tui/src/model-preference" + +const [command, state, providerID, modelID] = process.argv.slice(2) +// `bun run parity/fixtures.ts` runs every oracle without arguments; this one writes no fixture. +if (command && state) { + const repository = createModelPreferenceRepository(path.join(state, "model.json")) + if (command === "recent") await repository.addRecent({ providerID: providerID!, modelID: modelID! }) + console.log(JSON.stringify(await repository.load())) +} diff --git a/packages/cli-rs/parity/oracle/E.18a-settings.ts b/packages/cli-rs/parity/oracle/E.18a-settings.ts new file mode 100644 index 000000000000..50cc3c7df62b --- /dev/null +++ b/packages/cli-rs/parity/oracle/E.18a-settings.ts @@ -0,0 +1,30 @@ +// E.18a helper, driven by crates/tui/tests/all/settings.rs: prints the TS `settings` table of +// packages/tui/src/component/dialog-config.tsx as JSON, every field the Rust `SETTINGS` copies. `format` becomes +// its output at min, min + step, the default, and max. Run it from parity/ so the TUI preloads apply. +const { settings } = await import("../../../tui/src/component/dialog-config.tsx") + +console.log( + JSON.stringify( + settings.map((setting: Record<string, any>) => ({ + title: setting.title, + category: setting.category, + path: setting.path, + description: setting.description, + default: setting.default, + values: setting.values ?? [], + labels: setting.labels ?? [], + range: + setting.step === undefined + ? null + : { + step: setting.step, + min: setting.min, + max: setting.max, + formatted: [setting.min, setting.min + setting.step, setting.default, setting.max].map( + (value: number) => [value, setting.format?.(value) ?? String(value)], + ), + }, + keywords: setting.keywords ?? [], + })), + ), +) diff --git a/packages/cli-rs/parity/oracle/E.2-history.ts b/packages/cli-rs/parity/oracle/E.2-history.ts new file mode 100644 index 000000000000..2cc0ca4d6a81 --- /dev/null +++ b/packages/cli-rs/parity/oracle/E.2-history.ts @@ -0,0 +1,63 @@ +// P-FILE helper for E.2, driven by crates/tui/tests/all/prompt_history.rs. Run it from +// <ts-root>/packages/tui with OpenTUI's Solid preload, as parity/lib/provider.ts says. +// +// bun E.2-history.ts <ts-root> <state> stdin: [op]; the real PromptHistoryProvider on <state> +// +// An op is {move: [direction, input]}, which prints the entry's text or null, or {append: entry}. +// The provider loads <state>/prompt-history.jsonl first, which rewrites the file as TypeScript +// serializes it. Prints one JSON array of results. + +import { existsSync, readFileSync } from "node:fs" +import { countWrites, mount, until } from "../lib/provider" + +const [root, state] = process.argv.slice(2) +if (!root || !state) throw new Error("usage: E.2-history.ts <ts-root> <state>") + +// The load's rewrite (`writeText`, a `writeFile`) is not awaited, and an append that lands before it ends is +// lost. Neither the file's time nor its text tells when it ended: a rewrite of the same entries writes the same +// bytes and then truncates. So the writes are counted. +const writes = countWrites(["writeFile"]) +const ops = await Bun.stdin.json() + +// What the provider reads on mount, read before its rewrite can change the file. +const before = existsSync(`${state}/prompt-history.jsonl`) ? readFileSync(`${state}/prompt-history.jsonl`, "utf8") : "" +const { app, value: history } = await mount<{ + move(direction: 1 | -1, input: string): { text: string } | undefined + append(item: unknown): void +}>(root, "./prompt/history", "PromptHistoryProvider", "usePromptHistory", { + cwd: state, + home: state, + state, + worktree: state, +}) +// The provider reads the file on mount; wait until an existing file's entries are in. +const file = Bun.file(`${state}/prompt-history.jsonl`) +if (before.trim()) { + let newest = history.move(-1, "") + await until("the load", () => { + newest ??= history.move(-1, "") + return newest !== undefined + }) + // Back to the end, where the ops start. + if (newest) history.move(1, newest.text) + // A file with entries is rewritten on load: wait until that write has ended. + await until("the load's rewrite", () => writes.started > 0 && writes.pending === 0) +} + +const output: unknown[] = [] +for (const op of ops) { + if (op.move) output.push(history.move(op.move[0], op.move[1])?.text ?? null) + if (op.append) history.append(op.append) +} +// Appends write asynchronously: wait until the file ends with them. +const appended: string[] = ops.flatMap((op: { append?: { text: string } }) => (op.append ? [op.append.text] : [])) +if (appended.length > 0) { + await until("the appends", async () => { + // A fresh handle: a `BunFile` can keep the size it first saw. + const lines = (await Bun.file(file.name!).text()).split("\n").filter(Boolean) + const last = lines.slice(-appended.length).map((line) => JSON.parse(line).text) + return last.length === appended.length && last.every((text, index) => text === appended[index]) + }) +} +app.renderer.destroy() +console.log(JSON.stringify(output)) diff --git a/packages/cli-rs/parity/oracle/E.3-frecency.ts b/packages/cli-rs/parity/oracle/E.3-frecency.ts new file mode 100644 index 000000000000..7a498662773c --- /dev/null +++ b/packages/cli-rs/parity/oracle/E.3-frecency.ts @@ -0,0 +1,45 @@ +// P-FILE helper for E.3, driven by crates/tui/tests/all/complete.rs. Run it from <ts-root>/packages/tui with +// OpenTUI's Solid preload, as parity/lib/provider.ts says. +// +// bun E.3-frecency.ts <ts-root> <state> <cwd> stdin: [path]; the real FrecencyProvider on <state> +// +// The provider loads <state>/frecency.jsonl on mount, which rewrites it as TypeScript keeps it. Each path is +// then opened once (`updateFrecency`). Prints the frequencies by absolute path, after the updates. + +import { resolve } from "node:path" +import { countWrites, mount, until } from "../lib/provider" + +const [root, state, cwd] = process.argv.slice(2) +if (!root || !state || !cwd) throw new Error("usage: E.3-frecency.ts <ts-root> <state> <cwd>") + +// The load's rewrite (`writeText`, a `writeFile`) is not awaited, and an append that lands before it ends is lost. +// The file's time changes while the rewrite still runs, so the writes are counted, as E.2 does. +const writes = countWrites(["writeFile"]) +const paths: string[] = await Bun.stdin.json() + +const { app, value: frecency } = await mount<{ + updateFrecency(path: string): void + data(): Record<string, { frequency: number }> +}>(root, "./prompt/frecency", "FrecencyProvider", "useFrecency", { cwd, home: state, state, worktree: cwd }) +// The provider reads the file on mount; wait until an existing file's entries are in. +const file = Bun.file(`${state}/frecency.jsonl`) +if ((await file.exists()) && (await file.text()).trim()) { + await until("the load", () => Object.keys(frecency.data()).length > 0) + // A file with entries is rewritten on load: wait until that write has ended. + await until("the load's rewrite", () => writes.started > 0 && writes.pending === 0) +} +const loaded = Object.keys(frecency.data()).length +for (const path of paths) frecency.updateFrecency(path) +// Appends write asynchronously, in any order: wait until the load's one line per path is followed by one line +// per update. +const updated = JSON.stringify(paths.map((path) => resolve(cwd, path)).sort()) +await until("the appends", async () => { + // A fresh handle: a `BunFile` can keep the size it first saw. + const lines = (await Bun.file(file.name!).text()).split("\n").filter(Boolean) + const appended = lines.slice(loaded).map((line) => JSON.parse(line).path) + return lines.length === loaded + paths.length && JSON.stringify(appended.sort()) === updated +}) +app.renderer.destroy() +console.log( + JSON.stringify(Object.fromEntries(Object.entries(frecency.data()).map(([path, entry]) => [path, entry.frequency]))), +) diff --git a/packages/cli-rs/parity/oracle/E.3-fuzzy.ts b/packages/cli-rs/parity/oracle/E.3-fuzzy.ts new file mode 100644 index 000000000000..2e0512159a79 --- /dev/null +++ b/packages/cli-rs/parity/oracle/E.3-fuzzy.ts @@ -0,0 +1,46 @@ +// P-ORACLE for the autocomplete's ranking (`rank` in crates/tui/src/prompt/autocomplete/mod.rs): runs fuzzysort.go +// exactly as the `options` memo calls it (packages/tui/src/component/prompt/autocomplete.tsx:569-590), with its keys, +// scoreFn, threshold, and limit, over a corpus of the 244 keybind definitions as `/` commands and `@` mentions. +// Descriptions repeat in the corpus, so ties are covered. Writes parity/fixtures/E.3/fuzzy.json; the Rust test +// expects the same order. +import fuzzysort from "../../../tui/node_modules/fuzzysort" +import { Definitions } from "../../../tui/src/config/keybind" +import { stripFileLineRange } from "../../../tui/src/prompt/parse" +import { records } from "../lib/records" + +type Option = { display: string; description?: string } +const names = Object.entries(Definitions) +const corpus = { + command: names.map(([name, definition]): Option => ({ display: `/${name}`, description: definition.description })), + reference: names.map(([name, definition]): Option => ({ display: `@${name}`, description: definition.description })), +} +const queries = ["s", "se", "ses", "session", "model", "mod fav", "prompt", "pr", "app", "x", "undo", "tab", "q", "zzz"] + +function go(mode: "command" | "reference", search: string) { + const options = corpus[mode] + return fuzzysort + .go(stripFileLineRange(search), options, { + keys: [ + (obj) => stripFileLineRange(obj.display.trimEnd()), + ...(mode === "command" ? ["description" as const] : []), + () => "", + ], + threshold: mode === "reference" ? 0.5 : 0, + limit: 10, + scoreFn: (objResults) => { + const displayResult = objResults[0] + let score = objResults.score + const prefix = mode === "reference" ? "@" : "/" + if (displayResult && displayResult.target.startsWith(prefix + search)) score *= 2 + return score + }, + }) + .map((result) => options.indexOf(result.obj)) +} + +const cases = (["command", "reference"] as const).flatMap((mode) => + queries.map((query) => ({ mode, query, results: go(mode, query) })), +) +const path = new URL("../fixtures/E.3/fuzzy.json", import.meta.url).pathname +await Bun.write(path, records({ corpus, cases }, ["corpus.*[]", "cases[]"])) +console.log(`oracle: E.3/fuzzy ${cases.length} cases`) diff --git a/packages/cli-rs/parity/oracle/E.4-stash.ts b/packages/cli-rs/parity/oracle/E.4-stash.ts new file mode 100644 index 000000000000..94d638f49783 --- /dev/null +++ b/packages/cli-rs/parity/oracle/E.4-stash.ts @@ -0,0 +1,54 @@ +// P-FILE helper for E.4, driven by crates/tui/tests/all/attach.rs. Run it from <ts-root>/packages/tui with +// OpenTUI's Solid preload, as parity/lib/provider.ts says. +// +// bun E.4-stash.ts <ts-root> <state> stdin: [op]; the real PromptStashProvider on <state> +// +// An op is {list: true}, which prints the entries' texts, {push: prompt}, {pop: true}, which prints the +// popped text or null, or {remove: index}. The provider loads <state>/prompt-stash.jsonl first, which +// rewrites the file as TypeScript serializes it. Prints one JSON array of results. + +import { countWrites, mount, until } from "../lib/provider" + +const [root, state] = process.argv.slice(2) +if (!root || !state) throw new Error("usage: E.4-stash.ts <ts-root> <state>") + +// The provider's writes (`writeFile`, `appendFile`) are not awaited, and one that starts while another runs can +// lose the other's lines. So the writes are counted, as E.2 does. +const writes = countWrites(["writeFile", "appendFile"]) +const ops = await Bun.stdin.json() + +type Entry = { prompt: { text: string }; timestamp: number } +const { app, value: stash } = await mount<{ + list(): Entry[] + push(entry: { prompt: unknown }): void + pop(): Entry | undefined + remove(index: number): void +}>(root, "./prompt/stash", "PromptStashProvider", "usePromptStash", { + cwd: state, + home: state, + state, + worktree: state, +}) +// Waits until a write started after `started` writes, and none is pending. +const written = (what: string, started: number) => + until(what, () => writes.started > started && writes.pending === 0) +// The provider reads the file on mount, and rewrites a file with entries: wait until that write has ended. +const file = Bun.file(`${state}/prompt-stash.jsonl`) +if ((await file.exists()) && (await file.text()).trim()) { + await until("the load", () => stash.list().length > 0) + await written("the load's rewrite", 0) +} + +const output: unknown[] = [] +for (const op of ops) { + const started = writes.started + const entries = stash.list().length + if (op.list) output.push(stash.list().map((entry) => entry.prompt.text)) + if (op.push) stash.push({ prompt: op.push }) + if (op.pop) output.push(stash.pop()?.prompt.text ?? null) + if (op.remove !== undefined) stash.remove(op.remove) + // A push, and a pop or remove that took an entry, write: let it end before the next op writes again. + if (op.push || stash.list().length < entries) await written("the write", started) +} +app.renderer.destroy() +console.log(JSON.stringify(output)) diff --git a/packages/cli-rs/parity/oracle/F.2-requests.ts b/packages/cli-rs/parity/oracle/F.2-requests.ts new file mode 100644 index 000000000000..bffaccff7895 --- /dev/null +++ b/packages/cli-rs/parity/oracle/F.2-requests.ts @@ -0,0 +1,115 @@ +// P-ORACLE for F.2: records the requests the TypeScript Promise client builds, for +// crates/api/tests/all/oracle.rs to compare with the generated Rust client. Writes parity/fixtures/F.2/requests.json. +// The raw generated client: the exported `OpenCode.make` wraps it (one shared event subscription without +// input), and the Rust generated client corresponds to the raw one. The package exports do not expose it. +import { make } from "../../../client/src/promise/generated/client.ts" +import { records } from "../lib/records" + +type Recorded = { + name: string + method: string + url: string + headers: Record<string, string> + body?: string + bodyBase64?: string +} + +const recorded: Array<Recorded> = [] +let current = "" +const client = make({ + baseUrl: "http://127.0.0.1:4096/prefix", + headers: { authorization: "Basic b3BlbmNvZGU6c2VjcmV0" }, + fetch: Object.assign( + async (url: RequestInfo | URL, init: RequestInit = {}): Promise<Response> => { + const headers = Object.fromEntries(new Headers(init.headers)) + const body = init.body + recorded.push({ + name: current, + method: init.method ?? "GET", + url: String(url), + headers, + ...(typeof body === "string" ? { body } : {}), + ...(body instanceof Uint8Array ? { bodyBase64: Buffer.from(body).toString("base64") } : {}), + }) + throw new Error("recorded") + }, + { preconnect: fetch.preconnect }, + ), +}) + +const call = async (name: string, run: () => Promise<unknown> | AsyncIterable<unknown>) => { + current = name + const result = run() + try { + if (Symbol.asyncIterator in result) for await (const _ of result) break + else await result + } catch {} +} + +// Typed calls; crates/api/tests/all/oracle.rs makes the same calls with the same values. +await call("config.get", () => client.config.get({ location: { directory: "/tmp/a b&c=d" } })) +await call("session.list", () => + client.session.list({ limit: 5, order: "desc", search: "héllo wörld+?", parentID: null, archived: false }), +) +await call("session.get", () => + client.session.get({ sessionID: "ses_1 /?#%" }, { headers: { "X-Opencode-Directory": "/override" } }), +) +await call("file.read", () => client.file.read({ path: "dir/a b/c#?.txt", location: { directory: "/w" } })) +await call("session.prompt", () => + client.session.prompt({ sessionID: "ses_1", text: "hi", resume: null, metadata: { k: 1 } }), +) +await call("experimental.file.write", () => + client.experimental.file.write({ path: "a.txt", payload: new Uint8Array([1, 2, 255]) }), +) +await call("event.subscribe", () => client.event.subscribe({ types: ["session.created", "rpc.x"] })) +await call("session.remove", () => client.session.remove({ sessionID: "ses_2" })) +// Numbers the schema leaves as plain numbers: whole values go out as `0` and `3`, fractions as they are. +await call("session.prompt numbers", () => + client.session.prompt({ + sessionID: "ses_1", + text: "@build x", + agents: [ + { name: "build", mention: { start: 0, end: 6, text: "@build" } }, + { name: "plan", mention: { start: 1.5, end: -0, text: "@plan" } }, + ], + }), +) +await call("session.form.reply numbers", () => + client.session.form.reply({ + sessionID: "ses_1", + formID: "frm_1", + answer: { count: 3, ratio: 2.5, big: 123456789012, tiny: 0.25, name: "x" }, + }), +) + +const requests = recorded.slice() + +// appendQuery over values the types do not limit; the Rust side feeds them to query::append. +const values: Array<unknown> = [ + { directory: "a" }, + { a: { b: { c: "d" } } }, + ["x", "y"], + null, + 1, + 1.5, + 1e21, + 1e-7, + 0.000001, + -0, + 123456789012, + true, + false, + "ü ✓ & = + % # / ? ~*'()!", + { list: [1, { x: 2 }], empty: [] }, + "", +] +const query = values.map((value) => { + recorded.length = 0 + void client.config.get({ location: value } as never).catch(() => {}) + return { value, search: new URL(recorded[0].url).search.slice(1) } +}) + +await Bun.write( + new URL("../fixtures/F.2/requests.json", import.meta.url), + records({ requests, query }, ["requests[]", "query[]"]), +) diff --git a/packages/cli-rs/parity/oracle/F.3-identifier.ts b/packages/cli-rs/parity/oracle/F.3-identifier.ts new file mode 100644 index 000000000000..9ea85fb1320d --- /dev/null +++ b/packages/cli-rs/parity/oracle/F.3-identifier.ts @@ -0,0 +1,27 @@ +// P-ORACLE for crates/api/src/id.rs: the time prefix TypeScript's Identifier.create mints for a fixed call +// sequence, counter restarts and overflow past 0xfff included. Each case calls create `repeat` times and +// records the last prefix. Writes parity/fixtures/F.3/identifier.json. +import { Identifier } from "../../../schema/src/identifier" + +const sequence = [ + { descending: false, timestamp: 1_717_171_717_000, repeat: 1 }, + { descending: false, timestamp: 1_717_171_717_000, repeat: 1 }, + { descending: true, timestamp: 1_717_171_717_000, repeat: 1 }, + { descending: true, timestamp: 1_717_171_717_001, repeat: 1 }, + { descending: false, timestamp: 1_717_171_717_000, repeat: 1 }, + { descending: false, timestamp: 0, repeat: 1 }, + { descending: true, timestamp: 0, repeat: 1 }, + { descending: false, timestamp: 1_800_000_000_123, repeat: 4_096 }, + { descending: false, timestamp: 1_800_000_000_123, repeat: 1 }, + { descending: true, timestamp: 1_800_000_000_123, repeat: 3 }, + { descending: false, timestamp: 68_719_476_735, repeat: 1 }, +] + +const cases = sequence.map((item) => { + const ids = Array.from({ length: item.repeat }, () => Identifier.create(item.descending, item.timestamp)) + return { ...item, prefix: ids.at(-1)!.slice(0, 12) } +}) + +const file = new URL("../fixtures/F.3/identifier.json", import.meta.url).pathname +await Bun.write(file, JSON.stringify(cases, null, 2) + "\n") +console.log(`identifier: ${cases.length} cases`) diff --git a/packages/cli-rs/parity/oracle/F.4-local.ts b/packages/cli-rs/parity/oracle/F.4-local.ts new file mode 100644 index 000000000000..5f02b2adb943 --- /dev/null +++ b/packages/cli-rs/parity/oracle/F.4-local.ts @@ -0,0 +1,110 @@ +// P-FILE and P-ORACLE helper for F.4, driven by crates/local/tests/all/interop.rs. +// +// bun F.4-local.ts <ts-root> lock-hold <dir> <key> <staleMs> acquire, print "acquired", release on a stdin line +// bun F.4-local.ts <ts-root> lock-try <dir> <key> <timeoutMs> <staleMs> print "acquired" or "timeout" +// bun F.4-local.ts <ts-root> oracle channel and registration functions as JSON +// bun F.4-local.ts <ts-root> config <get|set|unset> [args...] `opencode service` config operations +// +// <ts-root> is a checkout of this repository. The lock commands import only Node built-ins; oracle +// and config need its node_modules. config uses the XDG variables of its environment, so callers +// point them at a temporary directory. + +const [root, command, ...args] = process.argv.slice(2) +if (!root || !command) throw new Error("usage: F.4-local.ts <ts-root> <command> [args...]") + +const load = (spec: string) => import(Bun.resolveSync(spec, `${root}/packages/cli/src`)) + +if (command === "lock-hold") { + const { Flock } = await import(`${root}/packages/util/src/flock.ts`) + const lease = await Flock.acquire(args[1], { dir: args[0], staleMs: Number(args[2]) }) + console.log("acquired") + for await (const _ of console) break + await lease.release() + console.log("released") +} + +if (command === "lock-try") { + const { Flock } = await import(`${root}/packages/util/src/flock.ts`) + const result = await Flock.acquire(args[1], { + dir: args[0], + timeoutMs: Number(args[2]), + staleMs: Number(args[3]), + baseDelayMs: 10, + maxDelayMs: 50, + }).then( + async (lease: { release: () => Promise<void> }) => { + await lease.release() + return "acquired" + }, + (error: Error) => (error.message.startsWith("Timed out") ? "timeout" : `error: ${error.message}`), + ) + console.log(result) +} + +if (command === "oracle") { + const { ServiceConfig } = await load("./services/service-config") + const { Service } = await load("@opencode/client/effect/service") + const { Schema, Option } = await load("effect") + const decode = Schema.decodeUnknownOption(Schema.fromJsonString(Service.Info)) + const channels = ["latest", "dev", "beta", "next", "local", "oc-opentui-next", "feat/a b", "x", "ünï"] + const versions = [ + "1.2.3", + "0.0.0-oc-x-1", + "0.0.0-oc-x-1.2", + "0.0.0-oc-x-1.", + "0.0.0-oc-x-", + "0.0.0-oc-y-1", + "0.0.0-oc-x-١", + ] + const registrations = [ + '{"id":"a","version":"1","url":"http://x","pid":3,"password":"p","extra":1}', + '{"url":"http://x","pid":3.0}', + '{"url":"http://x","pid":0}', + '{"url":"http://x","pid":1.5}', + '{"url":"http://x","pid":"1"}', + '{"url":"http://x","pid":1,"password":null}', + '{"url":1,"pid":1}', + '{"pid":1}', + "[]", + "{", + "", + ] + console.log( + JSON.stringify({ + channels: channels.map((channel) => ({ + channel, + filename: ServiceConfig.filename(channel), + legacy: ServiceConfig.legacyFilename(channel) ?? null, + port: ServiceConfig.defaultPort(channel, "linux"), + windows: ServiceConfig.defaultPort(channel, "win32"), + })), + versions: versions.map((version) => ({ + version, + belongs: ServiceConfig.versionBelongsToChannel(version, "oc-x", "1.2.3"), + })), + registrations: registrations.map((text) => ({ text, decoded: Option.getOrNull(decode(text)) })), + }), + ) +} + +if (command === "config") { + const { ServiceConfig } = await load("./services/service-config") + const { Global } = await load("@opencode/util/global") + const { Effect } = await load("effect") + const { NodeServices } = await load("@effect/platform-node") + const [op, ...rest] = args + const program = + op === "get" + ? ServiceConfig.get(rest[0], rest[1]) + : op === "set" + ? ServiceConfig.set(rest[0], rest[1], rest[2]) + : ServiceConfig.unset(rest[0], rest[1]) + // Validation errors are thrown inside the generators, so they arrive as defects. + const result = await Effect.runPromise( + program.pipe(Effect.provide(Global.layerWith({})), Effect.provide(NodeServices.layer)), + ).then( + (ok: unknown) => ({ ok: ok ?? null }), + (error: Error) => ({ error: error.message }), + ) + console.log(JSON.stringify(result)) +} diff --git a/packages/cli-rs/parity/oracle/F.5-config.ts b/packages/cli-rs/parity/oracle/F.5-config.ts new file mode 100644 index 000000000000..1a1c1478459f --- /dev/null +++ b/packages/cli-rs/parity/oracle/F.5-config.ts @@ -0,0 +1,204 @@ +// P-ORACLE and P-FILE helper for F.5, driven by crates/local/tests/all/config_interop.rs. Run it from +// <ts-root>/packages/cli (`bun --cwd`), so the TUI sources it imports get their JSX settings. +// +// bun F.5-config.ts <ts-root> jsonc stdin: [{text, path, value?}]; modify + applyEdits, or parse when no path +// bun F.5-config.ts <ts-root> decode stdin: [value]; Config.Info decode, null when it fails +// bun F.5-config.ts <ts-root> resolve stdin: [info]; Config.resolve without keybinds +// bun F.5-config.ts <ts-root> keys stdin: null; every Config.Info key path and literal +// bun F.5-config.ts <ts-root> migrate-v1 stdin: [{legacy, kv}]; migrateV1(decodeV1(legacy), kv) +// bun F.5-config.ts <ts-root> config stdin: [op]; Config get and update, XDG from the environment +// bun F.5-config.ts <ts-root> model <file> stdin: [op]; the model.json repository +// bun F.5-config.ts <ts-root> storage <state> <channel> stdin: [op]; TUI storage +// bun F.5-config.ts <ts-root> jsonl stdin: {history, stash, frecency}; the three parsers +// +// A config op is {get: true} or {update: [[path, value | null]]}, where null deletes. Every command +// prints one JSON array of results. + +const [root, command, ...args] = process.argv.slice(2) +if (!root || !command) throw new Error("usage: F.5-config.ts <ts-root> <command> [args...]") + +const load = (spec: string, from = "packages/cli/src") => import(Bun.resolveSync(spec, `${root}/${from}`)) +const input = await Bun.stdin.json() +const output: unknown[] = [] +const capture = async (run: () => unknown) => { + try { + return { ok: (await run()) ?? null } + } catch (error) { + return { error: String((error as Error)?.message ?? error) } + } +} + +if (command === "jsonc") { + const { applyEdits, modify, parse } = await load("jsonc-parser") + for (const item of input) { + if (item.path === undefined) { + const errors: unknown[] = [] + const value = parse(item.text, errors, { allowTrailingComma: true }) + output.push(errors.length ? null : value) + continue + } + output.push( + await capture(() => + applyEdits( + item.text, + modify(item.text, item.path, "value" in item ? item.value : undefined, { + formattingOptions: { tabSize: 2, insertSpaces: true }, + }), + ), + ), + ) + } +} + +if (command === "decode" || command === "resolve") { + const { Config } = await load("./config/config") + const { Config: Tui } = await load("./config/index.tsx", "packages/tui/src") + const { Schema, Option } = await load("effect") + const decode = Schema.decodeUnknownOption(Config.Info) + for (const value of input) { + if (command === "decode") { + output.push(Option.getOrNull(decode(value))) + continue + } + const resolved = Tui.resolve(Option.getOrThrow(decode(value)), { terminalSuspend: true, environment: {} }) + delete resolved.keybinds + output.push(resolved) + } +} + +// Every leaf key path of Config.Info, read from its JSON Schema, with the first sample value TypeScript decodes +// there. `keybinds` is one leaf: its names are generated (script/gen/config.ts). Prints +// [{paths, value, decoded, literals}]: value sets every leaf at once, and literals holds one config for each +// literal a leaf accepts, such as each `mini.work_spinner` name. +if (command === "keys") { + const { Config } = await load("./config/config") + const { Schema, Option } = await load("effect") + type Node = { [key: string]: unknown } + const decode = Schema.decodeUnknownOption(Config.Info) + const document = Schema.toJsonSchemaDocument(Config.Info) + const resolve = (node: Node): Node => + typeof node.$ref === "string" ? resolve(document.definitions[node.$ref.split("/").at(-1)!]) : node + const literals = (node: unknown): unknown[] => { + if (Array.isArray(node)) return node.flatMap(literals) + if (typeof node !== "object" || node === null) return [] + const own = resolve(node as Node) + return [ + ...(Array.isArray(own.enum) ? own.enum : []), + ...("const" in own ? [own.const] : []), + ...Object.values(own).flatMap(literals), + ] + } + const nest = (path: string[], value: unknown): unknown => + path.reduceRight<unknown>((inner, key) => ({ [key]: inner }), value) + const leaves: { path: string[]; value: unknown }[] = [] + const accepted: unknown[] = [] + const walk = (node: Node, path: string[]) => { + const own = resolve(node) + const struct = [own, ...((own.anyOf as Node[] | undefined) ?? []).map(resolve)].find((item) => item.properties) + if (struct && path.at(-1) !== "keybinds") { + for (const [key, child] of Object.entries(struct.properties as Record<string, Node>)) walk(child, [...path, key]) + return + } + const samples = [...literals(own), true, 1, "x", [], {}].filter((sample) => Option.isSome(decode(nest(path, sample)))) + if (samples.length === 0) throw new Error(`keys: no sample decodes at ${path.join(".")}`) + leaves.push({ path, value: samples[0] }) + if (path.at(-1) !== "keybinds") + accepted.push(...[...new Set(literals(own))].filter((sample) => samples.includes(sample)).map((sample) => nest(path, sample))) + } + walk(document.schema, []) + const value: Record<string, unknown> = {} + for (const leaf of leaves) { + const parent = leaf.path + .slice(0, -1) + .reduce<Record<string, unknown>>((node, key) => (node[key] ??= {}) as Record<string, unknown>, value) + parent[leaf.path.at(-1)!] = leaf.value + } + output.push({ + paths: leaves.map((leaf) => leaf.path.join(".")), + value, + decoded: Option.getOrNull(decode(value)), + literals: accepted, + }) +} + +if (command === "migrate-v1") { + const { ConfigMigration } = await load("./config/migrate") + const { TuiConfigV1 } = await load("./config/v1/index.tsx", "packages/tui/src") + const { Schema, Option } = await load("effect") + const decode = Schema.decodeUnknownOption(TuiConfigV1.Info) + for (const item of input) + output.push(ConfigMigration.migrateV1(Option.getOrUndefined(decode(item.legacy)), item.kv ?? {})) +} + +if (command === "config") { + const { Config } = await load("./config/config") + const { Global } = await load("@opencode/util/global") + const { Effect } = await load("effect") + const { NodeServices } = await load("@effect/platform-node") + const set = (draft: Record<string, unknown>, path: string[], value: unknown) => { + const parent = path + .slice(0, -1) + .reduce<Record<string, unknown>>((node, key) => (node[key] ??= {}) as Record<string, unknown>, draft) + if (value === null) delete parent[path.at(-1)!] + else parent[path.at(-1)!] = value + } + for (const op of input) { + const program = Effect.gen(function* () { + const config = yield* Config.Service + if (op.get) return yield* config.get() + return yield* config.update((draft: Record<string, unknown>) => { + for (const [path, value] of op.update) set(draft, path, value) + }) + }) + output.push( + await capture(() => + Effect.runPromise( + program.pipe( + Effect.provide(Config.layer), + Effect.provide(Global.layerWith({})), + Effect.provide(NodeServices.layer), + ), + ), + ), + ) + } +} + +if (command === "model") { + const { createModelPreferenceRepository } = await load("./model-preference.ts", "packages/tui/src") + const repository = createModelPreferenceRepository(args[0]) + for (const op of input) { + output.push( + await capture(async () => { + if (op.recent) return repository.addRecent(op.recent) + if (op.favorite) return repository.setFavorite(op.favorite, op.enabled) + if (op.variant) return repository.saveVariant(op.variant, op.value ?? undefined) + return repository.load() + }), + ) + } +} + +if (command === "storage") { + const { createStorage } = await load("./context/storage.tsx", "packages/tui/src") + const result = createStorage(args[0], args[1]) + for (const op of input) { + const [store, update] = result.storage.store(op.key, { initial: op.initial }) + output.push( + await capture(async () => { + if (op.set) await update((draft: Record<string, unknown>) => Object.assign(draft, op.set)) + return JSON.parse(JSON.stringify(store)) + }), + ) + } + result.close() +} + +if (command === "jsonl") { + const { parsePromptHistory } = await load("./prompt/history.tsx", "packages/tui/src") + const { parsePromptStash } = await load("./prompt/stash.tsx", "packages/tui/src") + const { parseFrecency } = await load("./prompt/frecency.tsx", "packages/tui/src") + output.push(parsePromptHistory(input.history), parsePromptStash(input.stash), parseFrecency(input.frecency)) +} + +console.log(JSON.stringify(output)) diff --git a/packages/cli-rs/parity/oracle/F.7-folds.ts b/packages/cli-rs/parity/oracle/F.7-folds.ts new file mode 100644 index 000000000000..afc1cb47c53b --- /dev/null +++ b/packages/cli-rs/parity/oracle/F.7-folds.ts @@ -0,0 +1,462 @@ +// P-ORACLE for the event fold of crates/store (models step 7, O-91, O-92 Q6 (a)): runs every V2Event variant +// through TypeScript's createData, once on an empty store and once on a loaded one, and records what the store holds +// afterwards and which reads the event started. Writes parity/fixtures/F.7/folds.json; crates/store/tests/ +// fold_oracle.rs folds the same events with `Data::apply` against the same routes and compares field by field. +// +// Each event is sampled from its schema in packages/protocol/openapi.json, so a new variant is covered when the +// fixture is regenerated, then given the IDs of the loaded state. A difference that is a recorded deviation is +// listed in `allow` below with its deviation file; any other difference fails the Rust test. +// +// The TUI uses Solid's browser build, whose effects and stores react; the script runs itself again under +// `bun --conditions=browser` when started without it. +import type { CreateDataInput } from "@opencode/client/solid" +import type { OpenCodeEvent, SessionMessageInfo } from "@opencode/client/promise" +import { records } from "../lib/records" + +if (process.env.F7_BROWSER !== "1") { + const proc = Bun.spawnSync(["bun", "--conditions=browser", "run", import.meta.path], { + env: { ...process.env, F7_BROWSER: "1" }, + stdout: "inherit", + stderr: "inherit", + }) + process.exit(proc.exitCode ?? 1) +} + +const { createRoot } = await import("solid-js") +const { createData } = await import("@opencode/client/solid") +const { OpenCode } = await import("@opencode/client/promise") + +type Schema = Record<string, unknown> & { + $ref?: string + const?: unknown + enum?: unknown[] + anyOf?: Schema[] + oneOf?: Schema[] + allOf?: Schema[] + type?: string + properties?: Record<string, Schema> + required?: string[] + prefixItems?: Schema[] + items?: Schema + minItems?: number + minimum?: number + pattern?: string + not?: Schema +} + +// Differences that are recorded deviations: `case` is `<event>@<state>`, `field` a top-level observation field +// with its first key (`messages.ses_a`). +const allow: { case: string; field: string; deviation: string }[] = [ + { case: "server.connected@loaded", field: "requests", deviation: "D01a-store-core.md" }, + { + case: "session.model.selected#no-previous@loaded", + field: "messages.ses_a", + deviation: "O89-model-switch-previous.md", + }, + // The loaded message already holds text and reasoning part 0, so the minimal start (ordinal 0) is a replay. + { case: "session.text.started@loaded", field: "messages.ses_a", deviation: "O5-text-started-replay.md" }, + { case: "session.reasoning.started@loaded", field: "messages.ses_a", deviation: "O5-text-started-replay.md" }, +] + +const SESSIONS = ["ses_a", "ses_b"] +const DIRECTORY = "/project" +const location = { directory: DIRECTORY } + +const openapi = await Bun.file(new URL("../../../protocol/openapi.json", import.meta.url)).json() +const schemas = openapi.components.schemas as Record<string, Schema> + +// A minimal value of `schema`: required properties only, the first enum value and union branch. +function sample(schema: Schema): unknown { + if (schema.$ref) return sample(schemas[schema.$ref.slice("#/components/schemas/".length)]!) + if ("const" in schema) return schema.const + if (schema.enum) return schema.enum[0] + const union = schema.anyOf ?? schema.oneOf + if (union) return sample(union.find((branch) => branch.type !== "null") ?? union[0]!) + if (schema.allOf) return Object.assign({}, ...schema.allOf.map(sample)) + if (schema.not) return {} + if (schema.type === "object" || schema.properties) + return Object.fromEntries((schema.required ?? []).map((key) => [key, sample(schema.properties![key]!)])) + if (schema.type === "array") { + if (!schema.minItems) return [] + return Array.from({ length: schema.minItems }, (_, index) => sample(schema.prefixItems?.[index] ?? schema.items!)) + } + if (schema.type === "string") return text(schema.pattern) + if (schema.type === "number" || schema.type === "integer") return schema.minimum ?? 0 + if (schema.type === "boolean") return false + return {} +} + +function text(pattern?: string) { + if (!pattern) return "x" + if (pattern.startsWith("^rpc")) return "rpc.x" + const prefix = pattern.match(/^\^([a-z]+_?)(?:$|[^a-z_{[(])/) + if (prefix) return prefix[1]!.endsWith("_") ? `${prefix[1]}x` : `${prefix[1]}_x` + if (pattern.startsWith("^#")) return "#000000" + if (pattern.includes("%")) return "50%" + if (pattern.includes("\\d{4}")) return "2026-01" + if (pattern.includes("{64}")) return "0".repeat(64) + if (pattern.includes("(?:ms|s|m|h|d)")) return "1s" + if (pattern.includes("[Ee]") && pattern.includes(":")) return "0:0" + if (pattern.includes("[Ee]")) return "0" + if (pattern.includes("\\/")) return "a/b" + if (pattern.includes("[A-Za-z0-9+/]")) return "" + return "a" +} + +type Json = null | boolean | number | string | Json[] | { [key: string]: Json } + +// Objects merge, everything else replaces, and so does an object of another union branch (`type`). +function merge(base: unknown, patch: unknown): unknown { + if (!isObject(base) || !isObject(patch)) return patch + if ("type" in patch && patch.type !== base.type) return patch + const next: Record<string, unknown> = { ...base } + for (const [key, value] of Object.entries(patch)) next[key] = key in base ? merge(base[key], value) : value + return next +} + +function isObject(value: unknown): value is Record<string, unknown> { + return typeof value === "object" && value !== null && !Array.isArray(value) +} + +// The loaded state, as the scripted server answers it. +const tokens = { input: 1, output: 1, reasoning: 0, cache: { read: 0, write: 0 } } +const sessionInfo = (id: string, extra: Record<string, unknown> = {}) => ({ + id, + projectID: "project", + agent: "build", + model: { providerID: "p", id: "m" }, + title: `Title ${id}`, + cost: 0.5, + tokens, + time: { created: 1, updated: 2 }, + location, + ...extra, +}) +const messages: SessionMessageInfo[] = [ + { id: "msg_0001", type: "user", text: "hello", time: { created: 10 } }, + { + id: "msg_0002", + type: "assistant", + agent: "build", + model: { providerID: "p", id: "m" }, + content: [{ type: "text", text: "done" }], + time: { created: 11, completed: 12 }, + }, + { id: "msg_0003", type: "shell", shellID: "sh_1", command: "ls", status: "running", time: { created: 13 } }, + { id: "msg_0004", type: "compaction", status: "running", reason: "auto", summary: "sum", time: { created: 14 } }, + { + id: "msg_0005", + type: "assistant", + agent: "build", + model: { providerID: "p", id: "m" }, + content: [ + { type: "text", text: "hel" }, + { type: "reasoning", text: "th", time: { created: 15 } }, + { type: "tool", id: "call_1", name: "bash", state: { status: "streaming", input: "{" }, time: { created: 16 } }, + { + type: "tool", + id: "call_2", + name: "read", + state: { status: "running", input: { path: "a" }, metadata: {} }, + time: { created: 17, ran: 17 }, + }, + ], + time: { created: 15 }, + }, +] +const shell = { + id: "sh_1", + status: "running", + command: "ls", + cwd: DIRECTORY, + shell: "bash", + file: "/tmp/sh_1", + metadata: { sessionID: "ses_a" }, + time: { started: 13 }, +} +const credential = (id: string) => ({ type: "credential", id, label: id, method: "key" }) +const listed = (data: unknown) => ({ status: 200, body: { location, data } }) +const routes: Record<string, { status: number; body: unknown }> = { + "/api/session/active": { status: 200, body: { data: {} } }, + "/api/location": { status: 200, body: { directory: DIRECTORY, project: { id: "project", directory: DIRECTORY, canonical: DIRECTORY } } }, + "/api/project": { + status: 200, + body: [{ id: "project", canonical: DIRECTORY, time: { created: 1, updated: 1, active: 1 }, sandboxes: [] }], + }, + "/api/vcs": listed({ branch: { current: "main", default: "main" } }), + "/api/session/ses_a": { status: 200, body: { data: sessionInfo("ses_a") } }, + "/api/session/ses_b": { status: 200, body: { data: sessionInfo("ses_b", { parentID: "ses_a" }) } }, + "/api/session/ses_a/message": { + status: 200, + body: { data: messages.toReversed(), cursor: { next: "msg_0001" } }, + }, + "/api/session/ses_a/permission": { + status: 200, + body: { data: [{ id: "per_1", sessionID: "ses_a", action: "bash", resources: [] }] }, + }, + "/api/session/ses_a/form": { + status: 200, + body: { data: [{ id: "frm_1", sessionID: "ses_a", title: "Ask", fields: [sample({ $ref: "#/components/schemas/Form.Field" })] }] }, + }, + "/api/session/ses_a/inbox": { + status: 200, + body: { + data: [ + { + id: "msg_0006", + sessionID: "ses_a", + time: { created: 18 }, + type: "user", + delivery: "steer", + payload: { text: "next" }, + }, + ], + }, + }, + "/api/agent": listed([]), + "/api/command": listed([]), + "/api/config": { status: 200, body: [] }, + "/api/integration": listed([ + { id: "openai", name: "OpenAI", methods: [], connections: [credential("crd_1"), credential("crd_2")] }, + ]), + "/api/mcp": listed([]), + "/api/mcp/resource": { status: 200, body: { location, data: { resources: [], templates: [] } } }, + "/api/model": listed([]), + "/api/provider": listed([]), + "/api/reference": listed([]), + "/api/skill": listed([]), + "/api/shell": listed([shell]), + "/api/form": listed([]), + "/api/websearch/provider": listed([]), + "/api/experimental/usage/limits": listed(null), +} + +// Per event type: the IDs of the loaded state, and fields the minimal sample leaves out. +const overrides: Record<string, unknown> = { + "credential.switched": { data: { integrationID: "openai", credentialID: "crd_2" } }, + "session.created": { data: { sessionID: "ses_b", info: sessionInfo("ses_b", { parentID: "ses_a" }) } }, + "session.agent.selected": { data: { agent: "plan", previous: "build" } }, + "session.model.selected": { data: { model: { providerID: "p", id: "n" }, previous: { providerID: "p", id: "m" } } }, + "session.moved": { data: { location: { directory: "/other" }, projectID: "other", subpath: "sub" } }, + "session.renamed": { data: { title: "Renamed" } }, + "session.metadata.updated": { data: { metadata: { key: "value" } } }, + "session.usage.updated": { data: { cost: 2, tokens: { ...tokens, input: 9 } } }, + "session.inbox.delivered": { data: { inboxID: "msg_0006" } }, + "session.inbox.enqueued": { + data: { inboxID: "msg_0007", item: { type: "user", delivery: "queue", payload: { text: "queued" } } }, + }, + "session.inbox.cancelled": { data: { inboxID: "msg_0006" } }, + "session.inbox.delivery.changed": { data: { inboxID: "msg_0006", delivery: "queue" } }, + "session.instructions.updated": { data: { text: "Use tabs", delta: { "AGENTS.md": "Use tabs" } } }, + "session.synthetic": { data: { text: "note", description: "Note" } }, + "session.shell.started": { data: { shell: { ...shell, id: "sh_2", metadata: { sessionID: "ses_a" } } } }, + "session.shell.ended": { + data: { shell: { ...shell, status: "exited", exit: 0 }, output: { output: "out", cursor: 3, size: 3, truncated: false } }, + }, + "session.step.started": { data: { assistantMessageID: "msg_0008", agent: "build", model: { providerID: "p", id: "m" }, started: 30 } }, + "session.step.ended": { data: { finish: "stop", cost: 1, tokens } }, + "session.step.failed": { data: { error: { type: "provider.error", message: "boom" } } }, + "session.text.delta": { data: { delta: "lo" } }, + "session.text.ended": { data: { text: "hello" } }, + "session.reasoning.delta": { data: { delta: "ink" } }, + "session.reasoning.ended": { data: { text: "think" } }, + "session.tool.input.started": { data: { id: "call_3", name: "edit" } }, + "session.tool.input.delta": { data: { id: "call_1", delta: "}" } }, + "session.tool.input.ended": { data: { id: "call_1", text: "{}" } }, + "session.tool.called": { data: { id: "call_1", input: { command: "ls" } } }, + "session.tool.progress": { data: { id: "call_2", metadata: { lines: 3 } } }, + "session.tool.success": { data: { id: "call_2", content: [{ type: "text", text: "ok" }], executed: true } }, + "session.tool.failed": { data: { id: "call_1", error: { type: "tool.error", message: "no" }, executed: false } }, + "session.retry.scheduled": { data: { attempt: 2, at: 99, error: { type: "provider.error", message: "busy" } } }, + "session.compaction.started": { data: { inputID: "msg_0009", reason: "manual" } }, + "session.compaction.delta": { data: { text: "mary" } }, + "session.compaction.ended": { data: { text: "summary", reason: "auto", cost: 1, tokens } }, + "session.compaction.failed": { data: { error: { type: "compaction.error", message: "no" }, reason: "auto" } }, + "session.revert.staged": { data: { revert: { messageID: "msg_0004" } } }, + "session.revert.committed": { data: { to: "msg_0004" } }, + "permission.asked": { data: { id: "per_2", action: "edit", resources: ["a"] } }, + "permission.replied": { data: { requestID: "per_1", reply: "once" } }, + "project.updated": { data: { id: "project", name: "Renamed", canonical: DIRECTORY } }, + "worktree.resolved": { data: { adopted: ["project"] } }, + "shell.created": { data: { info: { ...shell, id: "sh_3" } } }, + "shell.exited": { data: { id: "sh_1" } }, + "shell.deleted": { data: { id: "sh_1" } }, + "form.created": { data: { form: { id: "frm_2", sessionID: "ses_a", title: "Pick" } } }, + "form.replied": { data: { id: "frm_1" } }, + "form.cancelled": { data: { id: "frm_1" } }, +} + +// More cases for arms that branch on the event: name suffix, type, and the patch used instead of `overrides`. +const extra: [string, string, unknown][] = [ + ["shutdown", "session.execution.interrupted", { data: { reason: "shutdown" } }], + ["budget", "session.step.failed", { data: { error: { type: "provider.budget-limit", message: "budget" } } }], + ["existing", "session.step.started", { data: { assistantMessageID: "msg_0005", started: 31 } }], + ["baseline", "session.instructions.updated", {}], + // The server always names the previous model; an event without it reads the store's. + ["no-previous", "session.model.selected", { data: { model: { providerID: "p", id: "n" } } }], + ["compaction", "session.inbox.enqueued", { data: { inboxID: "msg_0010", item: { type: "compaction", delivery: "steer", payload: {} } } }], + ["global", "form.created", { data: { form: { id: "frm_3", sessionID: "global", title: "Elicit" } } }], +] + +// The variants in V2Event's order, each with its type name. +const variants = (schemas.V2Event!.anyOf ?? []).map((branch) => { + const schema = schemas[branch.$ref!.slice("#/components/schemas/".length)]! + const type = schema.properties!.type! + return { type: type.enum ? String(type.enum[0]) : String(sample(type)), schema } +}) + +let serial = 0 +function eventOf(variant: { type: string; schema: Schema }, patch: unknown) { + serial++ + const base = sample(variant.schema) as Record<string, unknown> + const data = isObject(base.data) ? base.data : {} + const ids: Record<string, unknown> = {} + if ("sessionID" in data) ids.sessionID = "ses_a" + if ("assistantMessageID" in data) ids.assistantMessageID = "msg_0005" + const common = { + id: `evt_${String(9000 + serial)}`, + created: 1000 + serial, + ...(variant.schema.properties?.location ? { location } : {}), + data: ids, + } + return merge(merge(base, common), patch) as OpenCodeEvent +} + +const cases = [ + ...variants.map((variant) => ({ name: variant.type, event: eventOf(variant, overrides[variant.type] ?? {}) })), + ...extra.map(([suffix, type, patch]) => ({ + name: `${type}#${suffix}`, + event: eventOf(variants.find((variant) => variant.type === type)!, patch), + })), +] + +async function run(event: OpenCodeEvent, loaded: boolean) { + const requests: string[] = [] + const api = OpenCode.make({ + baseUrl: "http://opencode.local", + fetch: async (input, init) => { + const request = input instanceof Request ? input : new Request(input, init) + const url = new URL(request.url) + const query = [...url.searchParams.entries()] + .toSorted() + .map(([key, value]) => `${key}=${value}`) + .join("&") + requests.push(`${request.method} ${url.pathname}${query ? `?${query}` : ""}`) + const route = request.method === "GET" ? routes[url.pathname] : undefined + if (!route) return new Response(`no route for ${request.method} ${url.pathname}`, { status: 599 }) + return Response.json(route.body, { status: route.status }) + }, + }) + const listeners = new Set<Parameters<CreateDataInput["event"]["listen"]>[0]>() + const setup = createRoot((dispose) => ({ + data: createData({ + api: () => api, + directory: DIRECTORY, + onError: () => {}, + event: { + on: () => () => {}, + listen(handler) { + listeners.add(handler) + return () => listeners.delete(handler) + }, + }, + }), + dispose, + })) + const data = setup.data + const apply = (event: OpenCodeEvent) => listeners.forEach((listener) => listener({ name: event.type, details: event })) + const quiet = (promise: Promise<unknown>) => void promise.catch(() => {}) + const strip = (value: unknown) => JSON.parse(JSON.stringify(value ?? null)) as Json + + const observe = () => { + const each = (read: (id: string) => unknown) => + Object.fromEntries(SESSIONS.flatMap((id) => (read(id) === undefined ? [] : [[id, read(id)]]))) + return strip({ + sessions: Object.fromEntries(data.session.list().map((info) => [info.id, info])), + missing: SESSIONS.filter((id) => data.session.missing(id)), + family: each((id) => data.session.family(id)), + status: each((id) => data.session.status(id)), + messages: each((id) => data.session.message.list(id)), + more: each((id) => data.session.message.more(id)), + pending: each((id) => data.session.pending.list(id)), + permissions: each((id) => data.session.permission.list(id)), + forms: { ...each((id) => data.session.form.list(id)), global: data.session.form.list("global", location) }, + projects: Object.fromEntries(data.project.list().map((project) => [project.id, project])), + location: { + info: data.location.info(location), + vcs: data.location.vcs.info(location), + agent: data.location.agent.list(location), + command: data.location.command.list(location), + config: data.location.config.list(location), + integration: data.location.integration.list(location), + mcpServer: data.location.mcp.server.list(location), + mcpResource: data.location.mcp.resource.list(location), + model: data.location.model.list(location), + provider: data.location.provider.list(location), + reference: data.location.reference.list(location), + skill: data.location.skill.list(location), + websearch: data.location.websearch.list(location), + usageLimits: data.location.usage.limits(location), + shell: data.shell.list(location), + }, + }) + } + // A fixed point: no request and no visible change for eight turns of the event loop. + const settle = async () => { + let last = "" + let quietTurns = 0 + for (let i = 0; i < 10_000; i++) { + await new Promise((resolve) => setImmediate(resolve)) + const key = JSON.stringify([requests.length, observe()]) + if (key === last) { + if (++quietTurns === 8) return + continue + } + quietTurns = 0 + last = key + } + throw new Error("no fixed point") + } + + if (loaded) { + apply({ id: "evt_connected", type: "server.connected", data: {} } as unknown as OpenCodeEvent) + await settle() + quiet(data.session.sync("ses_a")) + quiet(data.session.message.sync("ses_a")) + quiet(data.session.permission.sync("ses_a")) + quiet(data.session.form.sync("ses_a")) + quiet(data.session.pending.sync("ses_a")) + quiet(data.location.sync()) + quiet(data.location.config.sync()) + quiet(data.location.usage.sync()) + quiet(data.location.websearch.refresh()) + await settle() + } + const before = requests.length + apply(event) + await settle() + // `mcp.status.changed` reads once its burst has been quiet for `settleMs`. + if (event.type === "mcp.status.changed") { + await Bun.sleep(200) + await settle() + } + const observed = { ...(observe() as Record<string, Json>), requests: requests.slice(before).toSorted() } + setup.dispose() + return observed +} + +const results = [] +for (const item of cases) + for (const state of ["empty", "loaded"] as const) + results.push({ name: item.name, state, event: item.event, expected: await run(item.event, state === "loaded") }) + +const file = new URL("../fixtures/F.7/folds.json", import.meta.url).pathname +await Bun.write( + file, + records({ variants: variants.map((variant) => variant.type), routes, allow, cases: results }, [ + "routes.*", + "allow[]", + "cases[]", + ]), +) +console.log(`folds: ${variants.length} variants, ${results.length} cases`) diff --git a/packages/cli-rs/parity/oracle/F.8-session-target.ts b/packages/cli-rs/parity/oracle/F.8-session-target.ts new file mode 100644 index 000000000000..3a4211f6a1d7 --- /dev/null +++ b/packages/cli-rs/parity/oracle/F.8-session-target.ts @@ -0,0 +1,363 @@ +// P-ORACLE for crates/store/src/target.rs: runs TypeScript's resolveSessionTarget, createWorktreeLocation, and +// parseSessionTargetModel over the cases of packages/cli/test/session-target.test.ts and a few more, against a +// scripted server. Each case records the requests the client sent, what `prepare` saw, and the result or error. +// Writes parity/fixtures/F.8/session-target.json; crates/store/tests/all/target_oracle.rs serves the same routes to the +// Rust port and compares. +import { OpenCode } from "@opencode/client/promise" +import { records } from "../lib/records" +import { + createWorktreeLocation, + parseSessionTargetModel, + resolveSessionTarget, + SessionTargetMutationError, +} from "../../../cli/src/session-target.ts" + +type Reply = { status: number; body?: unknown } +// A route answers requests with its method and path, and with every listed query value. Replies are used in order; +// the last one repeats. +type Route = { method: string; path: string; query?: Record<string, string>; replies: Reply[] } +type Recorded = { method: string; path: string; query: [string, string][]; body: unknown } + +function location(directory: string, project = directory) { + return { directory, project: { id: "project", directory: project, canonical: project } } +} + +function session(id: string, directory: string, extra: Record<string, unknown> = {}) { + return { + id, + projectID: "project", + title: id, + location: { directory }, + cost: 0, + tokens: { input: 0, output: 0, reasoning: 0, cache: { read: 0, write: 0 } }, + time: { created: 1, updated: 1 }, + ...extra, + } +} + +const notFound = (id: string): Reply => ({ + status: 404, + body: { _tag: "SessionNotFoundError", sessionID: id, message: `Session not found: ${id}` }, +}) +const ok = (body: unknown): Reply => ({ status: 200, body }) +const getLocation = (directory: string, query?: Record<string, string>): Route => ({ + method: "GET", + path: "/api/location", + query, + replies: [ok(location(directory))], +}) + +type TargetCase = { + name: string + input: { + directory?: string + continue?: boolean + session?: string + fork?: boolean + model?: { providerID: string; id: string; variant?: string } + agent?: string + environment?: Record<string, string> + } + // `prepare` keeps the model and returns this agent, or the one it was given. + prepare?: { agent?: string } + routes: Route[] +} + +const targets: TargetCase[] = [ + { + name: "adopts an explicit Session location and model", + input: { session: "ses_resume" }, + routes: [ + { + method: "GET", + path: "/api/session/ses_resume", + replies: [ok({ data: session("ses_resume", "/session", { model: { providerID: "openai", id: "gpt-5" } }) })], + }, + getLocation("/session"), + ], + }, + { + name: "creates a missing explicit Session with its ID", + input: { session: "ses_chosen" }, + routes: [ + { method: "GET", path: "/api/session/ses_chosen", replies: [notFound("ses_chosen")] }, + getLocation("/project"), + { method: "POST", path: "/api/session", replies: [ok({ data: session("ses_chosen", "/project") })] }, + ], + }, + { + name: "does not create a missing explicit Session to fork", + input: { session: "ses_chosen", fork: true }, + routes: [{ method: "GET", path: "/api/session/ses_chosen", replies: [notFound("ses_chosen")] }], + }, + { + name: "forks an explicit Session", + input: { session: "ses_resume", fork: true, agent: "plan" }, + routes: [ + { method: "GET", path: "/api/session/ses_resume", replies: [ok({ data: session("ses_resume", "/session") })] }, + { + method: "POST", + path: "/api/session/ses_resume/fork", + replies: [ok({ data: session("ses_fork", "/session", { agent: "build" }) })], + }, + getLocation("/session"), + ], + }, + { + name: "paginates to continue the exact directory", + input: { directory: "/project", continue: true }, + routes: [ + getLocation("/project"), + { + method: "GET", + path: "/api/session", + replies: [ + ok({ + data: Array.from({ length: 50 }, (_, index) => session(`ses_${index}`, `/other/${index}`)), + cursor: { next: "page_2" }, + }), + ok({ data: [session("ses_implicit", "/project")], cursor: {} }), + ], + }, + ], + }, + { + name: "continues and forks the latest Session", + input: { directory: "/project", continue: true, fork: true }, + routes: [ + getLocation("/project"), + { method: "GET", path: "/api/session", replies: [ok({ data: [session("ses_latest", "/project")], cursor: {} })] }, + { method: "POST", path: "/api/session/ses_latest/fork", replies: [ok({ data: session("ses_fork", "/project") })] }, + getLocation("/project", { "location[directory]": "/project" }), + ], + }, + { + name: "creates a Session when there is none to continue", + input: { directory: "/empty", continue: true, model: { providerID: "openai", id: "gpt-5", variant: "high" } }, + routes: [ + getLocation("/empty"), + { method: "GET", path: "/api/session", replies: [ok({ data: [], cursor: { next: "more" } })] }, + { method: "POST", path: "/api/session", replies: [ok({ data: session("ses_new", "/empty") })] }, + ], + }, + { + name: "attaches the terminal environment to the resolved local Session", + input: { session: "ses_resume", environment: { PATH: "/terminal/bin" } }, + routes: [ + { method: "GET", path: "/api/session/ses_resume", replies: [ok({ data: session("ses_resume", "/session") })] }, + getLocation("/session"), + { method: "PUT", path: "/api/session/ses_resume/environment", replies: [{ status: 204 }] }, + ], + }, + { + name: "prepares a fresh Session at the server Location before creation", + input: { agent: "requested" }, + prepare: { agent: "prepared" }, + routes: [ + getLocation("/server"), + { method: "POST", path: "/api/session", replies: [ok({ data: session("ses_fresh", "/server") })] }, + ], + }, + { + name: "uses the agent resolved by the server for a fresh Session", + input: {}, + routes: [ + getLocation("/project"), + { + method: "POST", + path: "/api/session", + replies: [ok({ data: session("ses_fresh", "/project", { agent: "review" }) })], + }, + ], + }, + { + name: "does not retry an ambiguous Session creation", + input: {}, + routes: [ + getLocation("/project"), + { method: "POST", path: "/api/session", replies: [{ status: 502, body: "connection closed after create" }] }, + ], + }, + { + name: "reports a failed environment upload as a mutation", + input: { environment: { TERM: "xterm" } }, + routes: [ + getLocation("/project"), + { method: "POST", path: "/api/session", replies: [ok({ data: session("ses_fresh", "/project") })] }, + { method: "PUT", path: "/api/session/ses_fresh/environment", replies: [{ status: 502, body: "down" }] }, + ], + }, + { + name: "reports a failed Session read", + input: { session: "ses_broken" }, + routes: [{ method: "GET", path: "/api/session/ses_broken", replies: [{ status: 502, body: "down" }] }], + }, +] + +type WorktreeCase = { name: string; input: { directory?: string; name?: string }; routes: Route[] } + +const worktrees: WorktreeCase[] = [ + { + name: "creates a worktree from the caller's checkout", + input: { directory: "/project", name: "pr-12" }, + routes: [ + getLocation("/project"), + { method: "POST", path: "/api/worktree", replies: [ok({ directory: "/worktrees/pr-12" })] }, + ], + }, + { + name: "keeps the caller's subfolder in the new worktree", + input: { directory: "/project/packages/cli" }, + routes: [ + { + method: "GET", + path: "/api/location", + query: { "location[directory]": "/project/packages/cli" }, + replies: [ok(location("/project/packages/cli", "/project"))], + }, + { + method: "GET", + path: "/api/location", + query: { "location[directory]": "/worktrees/pr-12/packages/cli" }, + replies: [ok(location("/worktrees/pr-12/packages/cli", "/worktrees/pr-12"))], + }, + { method: "POST", path: "/api/worktree", replies: [ok({ directory: "/worktrees/pr-12" })] }, + ], + }, + { + name: "uses the worktree root when the subfolder is not in the worktree", + input: { directory: "/project/scratch" }, + routes: [ + { + method: "GET", + path: "/api/location", + query: { "location[directory]": "/project/scratch" }, + replies: [ok(location("/project/scratch", "/project"))], + }, + { + method: "GET", + path: "/api/location", + query: { "location[directory]": "/worktrees/pr-12/scratch" }, + replies: [{ status: 502, body: "Location folder is missing" }], + }, + { method: "POST", path: "/api/worktree", replies: [ok({ directory: "/worktrees/pr-12" })] }, + ], + }, + { + name: "reports a failed worktree creation as a mutation", + input: {}, + routes: [getLocation("/project"), { method: "POST", path: "/api/worktree", replies: [{ status: 502, body: "x" }] }], + }, +] + +const models = ["openai/gpt-5", "openai/gpt-5#high", "", "gpt-5", "/gpt-5", "openai/", "openai/gpt-5#", "a#b/c", "a/b#c#d", "a/b/c"] + +function serve(routes: Route[], recorded: Recorded[]) { + const used = new Map<Route, number>() + return OpenCode.make({ + baseUrl: "http://opencode.local", + fetch: async (input, init) => { + const request = input instanceof Request ? input : new Request(input, init) + const url = new URL(request.url) + const text = await request.text() + recorded.push({ + method: request.method, + path: url.pathname, + query: [...url.searchParams.entries()].toSorted(), + body: text ? JSON.parse(text) : null, + }) + const route = routes.find( + (item) => + item.method === request.method && + item.path === url.pathname && + Object.entries(item.query ?? {}).every(([key, value]) => url.searchParams.get(key) === value), + ) + if (!route) return new Response(`no route for ${request.method} ${url.pathname}`, { status: 599 }) + const index = used.get(route) ?? 0 + used.set(route, index + 1) + const reply = route.replies[Math.min(index, route.replies.length - 1)]! + if (reply.body === undefined) return new Response(null, { status: reply.status }) + if (typeof reply.body === "string") return new Response(reply.body, { status: reply.status }) + return Response.json(reply.body, { status: reply.status }) + }, + }) +} + +function failure(error: unknown) { + if (error instanceof SessionTargetMutationError) return { kind: "mutation" } + if (error instanceof Error && error.message === "Session not found") return { kind: "not-found" } + return { kind: "request" } +} + +const targetResults = [] +for (const item of targets) { + const requests: Recorded[] = [] + const client = serve(item.routes, requests) + let prepared: unknown = null + const outcome = await resolveSessionTarget({ + client, + location: item.input.directory === undefined ? undefined : { directory: item.input.directory }, + continue: item.input.continue, + session: item.input.session, + fork: item.input.fork, + model: item.input.model, + agent: item.input.agent, + environment: item.input.environment, + prepare: async (input) => { + prepared = { + location: input.location.directory, + session: input.session?.id ?? null, + model: input.model ?? null, + agent: input.agent ?? null, + } + return { model: input.model, agent: item.prepare?.agent ?? input.agent } + }, + }).then( + (target) => ({ + ok: { + session: target.session.id, + location: target.location.directory, + model: target.model ?? null, + agent: target.agent ?? null, + resume: target.resume, + }, + }), + (error) => ({ error: failure(error) }), + ) + targetResults.push({ ...item, expected: { requests, prepared, outcome } }) +} + +const worktreeResults = [] +for (const item of worktrees) { + const requests: Recorded[] = [] + const client = serve(item.routes, requests) + const outcome = await createWorktreeLocation({ + client, + location: item.input.directory === undefined ? undefined : { directory: item.input.directory }, + name: item.input.name, + }).then( + (result) => ({ ok: result }), + (error) => ({ error: failure(error) }), + ) + worktreeResults.push({ ...item, expected: { requests, outcome } }) +} + +const modelResults = models.map((value) => { + try { + return { value, ok: parseSessionTargetModel(value) ?? null } + } catch (error) { + return { value, error: error instanceof Error ? error.message : String(error) } + } +}) + +const file = new URL("../fixtures/F.8/session-target.json", import.meta.url).pathname +await Bun.write( + file, + records({ targets: targetResults, worktrees: worktreeResults, models: modelResults }, [ + "targets[]", + "targets[].routes[]", + "worktrees[]", + "models[]", + ]), +) +console.log(`session-target: ${targetResults.length} targets, ${worktreeResults.length} worktrees, ${models.length} models`) diff --git a/packages/cli-rs/parity/oracle/MS1-files.ts b/packages/cli-rs/parity/oracle/MS1-files.ts new file mode 100644 index 000000000000..87bcdbd6dfb5 --- /dev/null +++ b/packages/cli-rs/parity/oracle/MS1-files.ts @@ -0,0 +1,82 @@ +// P-FILE for the shared state files of the MS1 review (carbon-7) and the MS3/MS4 review (carbon-3), driven by +// crates/local/tests/all/shared_files.rs. Run it from <ts-root>/packages/tui with OpenTUI's Solid preload, as +// E.2-history.ts runs. Each writing command prints `ready` and waits for one line on stdin, so the Rust +// side can start writing at the same moment, then writes the way the TypeScript TUI does, with its own +// `util/persistence` functions: +// +// bun MS1-files.ts <ts-root> pins <state> <prefix> <count> session.json: `togglePin` of <prefix>-<i>, +// the list read once and saved whole with +// writeJsonAtomic +// bun MS1-files.ts <ts-root> history <state> <prefix> <count> prompt-history.jsonl: `append` below the +// limit, one appendText per entry +// bun MS1-files.ts <ts-root> frecency <state> <prefix> <count> frecency.jsonl: `updateFrecency` of a new +// path /w/<prefix>-<i>, one appendText each +// bun MS1-files.ts <ts-root> stash <state> <prefix> <count> prompt-stash.jsonl: `push` below the limit, +// one appendText per entry +// bun MS1-files.ts <ts-root> read <state> what the TypeScript TUI reads of them all +// +// Prints one JSON value: `{pinned, history, frecency, stash}` as `readJson`, `parsePromptHistory`, +// `parseFrecency` (paths and frequencies) and `parsePromptStash` (texts) read them. +import path from "node:path" + +const [root, command, state, prefix, count] = process.argv.slice(2) +// `bun run parity/fixtures.ts` runs every oracle without arguments; this one writes no fixture. +if (root && command && state) { + const load = (spec: string) => import(Bun.resolveSync(spec, `${root}/packages/tui/src`)) + const { appendText, readJson, readText, writeJsonAtomic } = await load("./util/persistence") + const { parsePromptHistory } = await load("./prompt/history") + const { parseFrecency } = await load("./prompt/frecency") + const { parsePromptStash } = await load("./prompt/stash") + const pins = path.join(state, "session.json") + const history = path.join(state, "prompt-history.jsonl") + const frecency = path.join(state, "frecency.jsonl") + const stash = path.join(state, "prompt-stash.jsonl") + const read = async () => ({ + pinned: await readJson(pins) + .then((value: { pinned: string[] }) => value.pinned) + .catch(() => null), + history: parsePromptHistory(await readText(history).catch(() => "")).map((entry: { text: string }) => entry.text), + frecency: Object.fromEntries( + parseFrecency(await readText(frecency).catch(() => "")).map((entry: { path: string; frequency: number }) => [ + entry.path, + entry.frequency, + ]), + ), + stash: parsePromptStash(await readText(stash).catch(() => "")).map( + (entry: { prompt: { text: string } }) => entry.prompt.text, + ), + }) + if (command !== "read") { + console.log("ready") + for await (const _ of console) break + } + if (command === "pins") { + const pinned = (await read()).pinned ?? [] + for (let i = 0; i < Number(count); i++) { + pinned.push(`${prefix}-${i}`) + await writeJsonAtomic(pins, { pinned }) + await Bun.sleep(1) + } + } + if (command === "history") { + for (let i = 0; i < Number(count); i++) { + await appendText(history, JSON.stringify({ text: `${prefix}-${i}`, pasted: [] }) + "\n") + await Bun.sleep(1) + } + } + if (command === "frecency") { + for (let i = 0; i < Number(count); i++) { + const entry = { path: `/w/${prefix}-${i}`, frequency: 1, lastOpen: Date.now() } + await appendText(frecency, JSON.stringify(entry) + "\n") + await Bun.sleep(1) + } + } + if (command === "stash") { + for (let i = 0; i < Number(count); i++) { + const prompt = { text: `${prefix}-${i}`, files: [], agents: [], skills: [], pasted: [] } + await appendText(stash, JSON.stringify({ prompt, timestamp: Date.now() }) + "\n") + await Bun.sleep(1) + } + } + console.log(JSON.stringify(await read())) +} diff --git a/packages/cli-rs/parity/oracle/P.2-latex.ts b/packages/cli-rs/parity/oracle/P.2-latex.ts new file mode 100644 index 000000000000..e711788c922e --- /dev/null +++ b/packages/cli-rs/parity/oracle/P.2-latex.ts @@ -0,0 +1,559 @@ +// P-ORACLE for crates/latex: the TypeScript renderLatex (packages/latex/src/render.ts) in strict mode, as the +// plugin calls it, over every source in packages/latex/src/*.test.ts, common textbook formulas, and the rows the Rust +// tests once asserted by hand; a few rows run with `strict: false`. Writes parity/fixtures/P.2/layouts.json; +// crates/latex/src/tests.rs expects the same text, geometry, cell styles, and parse failures. +import { renderLatex } from "../../../latex/src/render" +import { LatexParseError, type RenderLatexOptions } from "../../../latex/src/types" +import { records } from "../lib/records" + +const tests = [ + // render.test.ts + String.raw`\frac{x+1}{y-1}`, + String.raw`E = mc^2`, + String.raw`a_n`, + String.raw`x_i^2`, + String.raw`x^{}`, + String.raw`x_{}`, + String.raw`x^{}_{}`, + String.raw`x^m_1`, + String.raw`x^2_q`, + String.raw`x^{\frac{1}{2}}_1`, + String.raw`\sum_1^n`, + String.raw`P = \binom{n}{k}`, + String.raw`\sqrt{x^2+y^2}`, + String.raw`\begin{pmatrix}a & b \\ c & d\end{pmatrix}`, + String.raw`\sum_{i=1}^{n} i^2`, + String.raw`\frac{1}{2}`, + String.raw`\mathbb{R} \to \mathcal{C} \times \mathfrak{g}`, + String.raw`\mathbf{\mathsf{\textcolor{red}{\mathit{x}}}}`, + String.raw`\frac{1}{1+\frac{1}{x}}`, + String.raw`\left[\frac{-b \pm \sqrt{b^2-4ac}}{2a}\right]`, + String.raw`\not\rightarrow`, + String.raw`x\in[0,1]`, + String.raw`[-1,1]`, + // layout.test.ts + ...[String.raw`\sqrt{x}`, String.raw`\begin{pmatrix}a&b\\c&d\end{pmatrix}`, String.raw`\underbrace{abcd}`, String.raw`\overbrace{abcd}`, String.raw`\sum`].flatMap( + (source) => [source, ...["^{}", "_{}", "^{}_{}"].map((scripts) => source + scripts)], + ), + String.raw`\overbrace{abcd}^{n}`, + String.raw`\underbrace{abcd}_{n}`, + String.raw`\begin{pmatrix}a&b\\c&d\end{pmatrix}^2`, + String.raw`\begin{cases}x & x>0\\x^2+1 & x\le0\end{cases}`, + String.raw`\begin{array}{l|r}\text{a}&\text{wide}\\\text{long}&\text{b}\end{array}`, + String.raw`\begin{array}{|l||r|}\text{a}&\text{b}\\\text{long}&\text{c}\end{array}`, + String.raw`\cfrac[l]{\text{1}}{\text{12345}}`, + String.raw`\cfrac[r]{\text{1}}{\text{12345}}`, + String.raw`\overbrace{a + b + c}^{n}`, + String.raw`\underbrace{a + b + c}_{n}`, + // root.test.ts + ...[ + ["x", String.raw`\frac{1}{2}`], + ["x", String.raw`\sqrt{n}`], + ["x", "123456789"], + ["x", String.raw`\frac{123456789}{\frac{n}{m}}`], + [String.raw`\frac{a}{b}`, "3"], + [String.raw`\sqrt{\frac{a}{b}}`, String.raw`\sqrt{\frac{n}{m}}`], + [String.raw`\text{界}`, String.raw`\text{次}`], + ["", String.raw`\frac{1}{2}`], + ].map(([body, index]) => String.raw`\sqrt[\textcolor{blue}{${index}}]{\textcolor{red}{${body}}}`), + String.raw`\sqrt{\sqrt{\sqrt{x}}}`, + String.raw`\sqrt{\frac{a}{b}}`, + String.raw`\sqrt[3]{x}`, + String.raw`\sqrt[\frac{1}{2}]{x}`, + String.raw`\sqrt[\sqrt{n}]{x}`, + // parser-render.test.ts + String.raw`\|v\|`, + String.raw`\left\|v\right\|`, + String.raw`\left|v\right|`, + String.raw`\left(A\rightarrow B\right)`, + String.raw`\left\lbrace x\right\rbrace`, + String.raw`\operatorname{arg\,max} x`, + String.raw`\textrm{if }x`, + String.raw`\displaylines{x=1\\y=2}`, + String.raw`\begin{aligned}&=x\\&=y\end{aligned}`, + String.raw`\begin{aligned}{}&=x\\{}&=y\end{aligned}`, + // parser.test.ts + String.raw`\frac{x^2+1}{y_0}`, + String.raw`\begin{array}{cc}a & b \\ c & d\end{array}`, + String.raw`\begin{align*}a &= b \\ c &= d\end{align*}`, + String.raw`\left(\left[A\right]\rightharpoonup B\right)`, + String.raw`\left(A\rightarrow B`, + String.raw`\left(A\rightward B\right)`, + String.raw`\begin{matrix}a&&\\&b&\end{matrix}`, + String.raw`\begin{matrix}a\\\end{matrix}`, + String.raw`\begin{matrix}\\\end{matrix}`, + String.raw`\displaylines{\frac{1}{2}\\{y}}+z`, + String.raw`\displaylines[l]{x\\y}`, + String.raw`\displaylines{x\\y`, + ...["", "[]", "[l]", "[r]", "[c]", "[lr]", "[left]", "[l"].map((option) => String.raw`\cfrac${option}{1}{23}`), + String.raw`\begin{array}{ | l || c r | }a&b&c\end{array}`, + ...["", "||", "p{2cm}", "*{2}{c}", "c@{}c", "lXr"].map((columns) => String.raw`\begin{array}{${columns}}a\end{array}`), + String.raw`\begin{array}a&b\end{array}`, + String.raw`\overbrace{a+b}^{n}`, + String.raw`\underbrace{x}_{k}`, + String.raw`\lbrace x\rbrace`, + String.raw`\left\unknown x\right)`, + String.raw`\left(x\right\unknown`, + String.raw`\big\unknown`, + String.raw`\left(x\middle\unknown y\right)`, + String.raw`\definitelyUnknown{x}`, + String.raw`\text{left \{ only}`, + String.raw`\text{right \} only}`, + String.raw`\operatorname*{arg\,max}_{x}`, + String.raw`\int\limits_0^1`, + String.raw`\sum\nolimits_{i=1}`, + String.raw`\operatorname{arg\,max}`, + String.raw`\textrm{ if }`, + String.raw`\begin{matrix}]`, + String.raw`\begin{matrix}x}`, + String.raw`\begin{matrix}&}`, + "{".repeat(300) + "x" + "}".repeat(300), + // markdown.test.ts + String.raw`\frac{1}{`, + String.raw`\unsupported{x}`, + String.raw`\cfrac[x]{1}{2}`, + String.raw`\begin{array}{p{2cm}}x\end{array}`, + String.raw`\documentclass{article} +\begin{document} +Hello +\end{document}`, + String.raw`\cfrac[l]{1}{12345}`, + String.raw`\underbrace{a+b+c}_{n}`, + String.raw`\begin{array}{l|r}a&wide\\long&b\end{array}`, + String.raw`\begin{aligned}a&=b+c\\&=d\end{aligned}`, + String.raw`\frac{a_1+b_1}{c_1+d_1}`, + String.raw`\frac{a_1+b_1}{c_1+d_1}+\frac{a_`, + String.raw`\frac{a_1+b_1}{c_1+d_1}+\frac{a_2+b_2}{c_2+d_2}`, + String.raw`x^2 + \frac{1}{`, + String.raw`x^2 + \unsupported{x}`, + String.raw`\text{Start a very long formula with enough content to overflow Finish}`, + String.raw`x=\sqrt{\frac{1}{2}}`, + String.raw`\text{中文}=x`, + String.raw`\frac{\text{中文}}{abcd}=x`, +] + +const textbook = [ + String.raw`e^{i\pi} + 1 = 0`, + String.raw`\int_0^\infty e^{-x^2}\,dx = \frac{\sqrt{\pi}}{2}`, + String.raw`\lim_{x \to 0} \frac{\sin x}{x} = 1`, + String.raw`f(x) = \sum_{n=0}^{\infty} \frac{f^{(n)}(a)}{n!}(x-a)^n`, + String.raw`\nabla \times \vec{E} = -\frac{\partial \vec{B}}{\partial t}`, + String.raw`\hat{x} + \bar{y} + \tilde{z} + \dot{a} + \ddot{b} + \widehat{abc} + \overline{xy} + \underline{uv}`, + String.raw`\overset{\text{def}}{=} \underset{n}{\max} \stackrel{?}{=}`, + String.raw`\begin{bmatrix}1 & 0 \\ 0 & 1\end{bmatrix} \begin{Bmatrix}a\end{Bmatrix} \begin{vmatrix}a & b \\ c & d\end{vmatrix} \begin{Vmatrix}x\end{Vmatrix}`, + String.raw`\begin{gather}a = b \\ c = d\end{gather} \begin{smallmatrix}1&2\end{smallmatrix}`, + String.raw`\left\langle u, v \right\rangle \left\lfloor x \right\rfloor \left\lceil y \right\rceil`, + String.raw`\left( \frac{a}{b} \right) \left\{ \frac{a}{b} \right\} \left. \frac{a}{b} \right|`, + String.raw`\alpha\beta\gamma\Gamma\epsilon\varepsilon\phi\varphi \infty \partial \forall \exists \emptyset`, + String.raw`a \le b \ge c \ne d \approx e \equiv f \sim g \subset h \subseteq i \in j \notin k`, + String.raw`\not= \not\in \not\equiv \not<`, + String.raw`A \cup B \cap C \setminus D \oplus E \otimes F \cdot G \times H \div I \pm J \mp K`, + String.raw`\Rightarrow \Leftarrow \Leftrightarrow \mapsto \to \gets \longrightarrow`, + String.raw`\cdots \ldots \vdots \ddots , ; :`, + String.raw`\sin x + \cos y + \tan z + \log w + \ln v + \exp u + \det A + \gcd(a,b)`, + String.raw`\max_{x} f(x) \min_{y} g(y) \sup_n a_n \inf_n b_n \limsup_{n\to\infty} c_n`, + String.raw`\prod_{i=1}^n x_i \coprod \iint \iiint \oint \bigcup_i A_i \bigcap_j B_j`, + String.raw`\mathrm{d}x \mathbf{v} \mathit{w} \mathsf{S} \mathtt{code1} \mathbb{N}\mathbb{Z}\mathbb{Q}\mathbb{C} \mathcal{L} \mathfrak{H}`, + String.raw`a\quad b\qquad c\,d\;e\:f\!g~h\enspace i`, + String.raw`\text{if } x > 0 \text{ and } y \mbox{ or } z`, + String.raw`\color{red} x + y`, + String.raw`\textcolor{blue}{\frac{1}{2}}`, + String.raw`\displaystyle \frac{a}{b} \textstyle c \scriptstyle d`, + String.raw`\bigl( x \bigr) \Big[ y \Big] \bigg\{ z \bigg\} \Bigg| w \Bigg|`, + String.raw`\pmod{7} a \bmod b a \mod c`, + String.raw`\dfrac{1}{2} \tfrac{3}{4} \dbinom{n}{2} \tbinom{m}{3}`, + String.raw`\# \$ \% \& \_ \{ \} \backslash`, + String.raw`x^{2^{3}} x_{i_{j}} x^{-1} x^{n+1} x_{ij} x^{(n)}`, + String.raw`f'(x) f''(x) x^\prime`, + String.raw`% comment +x + y % trailing += z`, + String.raw`\begin{cases} 0 & \text{if } x < 0 \\ \frac{x}{2} & \text{otherwise} \end{cases}`, + String.raw`\begin{pmatrix} \frac{1}{2} & 0 \\ 0 & \sqrt{2} \end{pmatrix}`, + String.raw`\begin{aligned} f(x) &= (x+1)^2 \\ &= x^2 + 2x + 1 \end{aligned}`, + String.raw`\begin{align} a &= b & c &= d \end{align}`, + String.raw`\sqrt[n]{x^n + y^n}`, + String.raw`\frac{\partial^2 u}{\partial t^2} = c^2 \nabla^2 u`, + String.raw`\begin{unknownenv}x\end{unknownenv}`, + String.raw`\begin{equation}x\end{equation}`, + String.raw`x^`, + String.raw`x_`, + String.raw`\frac{1}`, + String.raw`\sqrt[3`, + String.raw`{x`, + String.raw`x}`, + String.raw`\right)`, + String.raw`\text{unterminated`, + String.raw`\not`, + String.raw`\left`, + String.raw`- a`, + String.raw`a -`, + String.raw`(-a) + [-b] - \{-c\}`, + String.raw`a = -b`, + String.raw`\vec{v} \cdot \vec{w}`, + String.raw`\overbrace{x+y}^{\text{sum}} + \underbrace{a \cdot b}_{\text{product}}`, + String.raw`\binom{n}{k} = \frac{n!}{k!(n-k)!}`, + String.raw`\left( \sum_{k=1}^n a_k b_k \right)^2 \le \left( \sum_{k=1}^n a_k^2 \right) \left( \sum_{k=1}^n b_k^2 \right)`, + "", + " ", + "x\n\ny", +] + +// Rows crates/latex once asserted by hand, so TS decides them here instead. +const rust = [ + // comments end at any line break + "x% ignored }\\unknown\ny", + "x% ignored\ry", + "x% ignored at EOF", + "\\frac% ignored\n{x}{y}", + "\\begin{array}{l% ignored }\ncr}x&y&z\\end{array}", + "\\textcolor{re% ignored\r\nd}{x}", + "\\textcolor{re% ignored\rd}{x}", + "\\begin{array}{l% ignored }\rcr}x&y&z\\end{array}", + "x % comment\n+y", + // matrices keep empty cells + "\\begin{matrix}a&&\\\\&b&\\end{matrix}", + "\\begin{matrix}&=x\\\\&=y\\end{matrix}", + "\\begin{matrix}&&\\end{matrix}", + "\\begin{matrix}a\\\\\\end{matrix}", + "\\begin{matrix}\\\\\\end{matrix}", + "\\begin{matrix}\\end{matrix}", + "\\begin{aligned}a&&\\\\&b&\\end{aligned}", + "\\begin{aligned}&=x\\\\&=y\\end{aligned}", + "\\begin{aligned}&&\\end{aligned}", + "\\begin{aligned}a\\\\\\end{aligned}", + "\\begin{aligned}\\\\\\end{aligned}", + "\\begin{aligned}\\end{aligned}", + "\\begin{align*}a&&\\\\&b&\\end{align*}", + "\\begin{align*}&=x\\\\&=y\\end{align*}", + "\\begin{align*}&&\\end{align*}", + "\\begin{align*}a\\\\\\end{align*}", + "\\begin{align*}\\\\\\end{align*}", + "\\begin{align*}\\end{align*}", + "\\begin{aligned}&\\begin{matrix}a&&b\\end{matrix}\\\\c&\\end{aligned}", + "\\displaylines{a&\\\\&b}", + // variants, text and operators + "\\mathrm{x}", + "\\textrm{x}", + "\\mathnormal{x}", + "\\mathbf{x}", + "\\boldsymbol{x}", + "\\bm{x}", + "\\mathit{x}", + "\\mathsf{x}", + "\\mathtt{x}", + "\\mathbb{x}", + "\\mathcal{x}", + "\\mathscr{x}", + "\\mathfrak{x}", + "\\text{left \\{ right \\} \\% \\# \\$ \\& \\_ \\ }", + "\\text{a\\,b\\:c\\;d\\!e~f\\textbackslash!}", + "\\mbox{\\quad!\\qquad!\\enspace!\\thinspace!}", + "\\text{100% raw\ntext}", + "\\text{\\unknown}", + "a \\mod b", + "a \\bmod b", + "\\arccos_n", + "\\arcsin_n", + "\\arctan_n", + "\\arg_n", + "\\cosh_n", + "\\cot_n", + "\\coth_n", + "\\csc_n", + "\\deg_n", + "\\dim_n", + "\\hom_n", + "\\lg_n", + "\\Pr_n", + "\\sec_n", + "\\sinh_n", + "\\tanh_n", + "\\liminf_n", + "\\limsup_n", + "\\bigoplus_1^2", + "\\bigotimes_1^2", + "\\bigodot_1^2", + // symbols + "\\imath \\jmath \\beth \\daleth \\measuredangle \\lozenge \\nexists \\clubsuit \\uplus \\sqcup", + "\\wr \\triangleleft \\equals \\asymp \\preceq \\sqsubseteq \\owns \\mid \\dashv \\smile", + "\\hookrightarrow \\rightharpoonup \\rightleftharpoons \\Longrightarrow \\longmapsto \\Updownarrow \\nwarrow \\epsilon \\varepsilon \\degree", + "\\not =", + "\\not <", + "\\not >", + "\\not \\leq", + "\\not \\geq", + "\\not \\in", + "\\not \\ni", + "\\not \\subset", + "\\not \\supset", + "\\not \\equiv", + "\\not \\approx", + "\\not \\sim", + "\\not \\subseteq", + "\\not \\supseteq", + "\\not \\mid", + "\\not \\parallel", + "\\not x", + "\\left\\lvert x\\right\\rvert", + "\\left\\lVert x\\right\\rVert", + "\\lvert x \\rvert \\lVert y \\rVert", + "\\epsilon\\varepsilon\\phi\\varphi", + // colors end at their argument or cell + "\\textcolor{red}{x}+y", + "{\\color{red}xy}z", + "\\begin{matrix}\\color{red}x&y\\\\z\\end{matrix}", + "\\left(\\color{red}x\\right)", + "\\sqrt[\\color{red}3]{x}", + "x^{\\textcolor{blue}{q}}", + // directives make no atom + "x^\\displaystyle2", + "\\sum\\displaystyle_1^2", + "x^\\textstyle2", + "\\sum\\textstyle_1^2", + "x^\\scriptstyle2", + "\\sum\\scriptstyle_1^2", + "x^\\scriptscriptstyle2", + "\\sum\\scriptscriptstyle_1^2", + // styled atoms keep their meaning + "a\\not\\mathbf{=}b", + "x\\not\\mathrm{\\in}S", + "\\not\\textcolor{red}{\\mathit{\\subseteq}}", + "\\mathbf{x}̅", + "\\mathrm{x}⃗", + "\\textcolor{red}{\\mathit{x}}̅", + "\\mathbb{R}+\\mathcal{F}", + "\\arctan x", + "x\\pmod{n}", + "\\mathrm{d}\\mathbf{x}+\\alpha", + "\\hat{x}+\\overline{yz}", + "\\mathbf{x+\\mathit{y}}+\\textcolor{red}{z}", + "\\mathsf{\\mathrm{x}}", + "\\textcolor{red}{\\mathbf{a\\mathit{b}\\textcolor{blue}{c}}}d\\textcolor{red}{e}", + "\\mathbb{\\text{CHNPQRZaz09α+}}", + "\\mathcal{\\text{BEFHILMRegoAz9α+}}", + "\\mathfrak{\\text{CHIRZaz9α+}}", + "\\mathsf{\\text{AZaz09α+}}", + "\\mathtt{\\text{AZaz09α+}}", + "\\mathrm{\\text{AZaz09α+}}", + "\\frac{1}{2}", + "\\textcolor{red}{\\mathbf{\\frac{1}{2}}}", + "\\sqrt[3]{\\frac{1}{2}}", + "\\textcolor{red}{\\mathbf{\\sqrt[3]{\\frac{1}{2}}}}", + "\\left[̅\\frac{1}{2}\\right]̅", + "\\textcolor{red}{\\mathbf{\\left[̅\\frac{1}{2}\\right]̅}}", + "\\begin{array}{|l||r|}x&\\frac{1}{2}\\end{array}", + "\\textcolor{red}{\\mathbf{\\begin{array}{|l||r|}x&\\frac{1}{2}\\end{array}}}", + "\\begin{cases}x\\\\y\\end{cases}", + "\\textcolor{red}{\\mathbf{\\begin{cases}x\\\\y\\end{cases}}}", + "\\overbrace{abcd}", + "\\textcolor{red}{\\mathbf{\\overbrace{abcd}}}", + "\\hat{x}", + "\\textcolor{red}{\\mathbf{\\hat{x}}}", + "\\underline{x}", + "\\textcolor{red}{\\mathbf{\\underline{x}}}", + "x^2_i", + "\\textcolor{red}{\\mathbf{x^2_i}}", + "\\frac{1}{2}^q", + "\\textcolor{red}{\\mathbf{\\frac{1}{2}^q}}", + "\\overset{n}{\\underset{m}{x}}", + "\\textcolor{red}{\\mathbf{\\overset{n}{\\underset{m}{x}}}}", + // graphemes and combining marks stay whole + "؀{x}", + "؀ {x}", + "؀^2", + "؀ ^2", + "؀_2", + "؀ _2", + "؀\\alpha", + "؀ \\alpha", + "؀~x", + "؀ ~x", + "؀% ignored\nx", + "؀ % ignored\nx", + "\\begin{matrix}؀&&x\\end{matrix}", + "a≠b", + "x̅+y", + "x̅^2", + "\\frac x̅y", + "👩‍🔬^2+🇩🇰", + "[̅x]̅", + "\\big[̅x\\big]̅", + "\\left[̅x\\right]̅", + "\\left\\langle̅x\\right\\rangle̅", + "\\%̅x", + "\\{̅x\\}̅", + "\\alpha̅́\\beta", + "\\alpha𝅧^2", + "\\#️⃣^2", + "{\\alpha̅}^2_1", + "\\frac\\alpha̅x", + "x^\\alpha̅y", + "\\sum̅\\limits_1^2", + "\\left.̅x\\right.̅", + "\\left\\{̅\\frac{1}{2}\\right\\}̅", + "\\|x\\|", + "|x|", + "\\left.x\\right\\|", + "\\left\\.x\\right\\.", + "x\\.", + // malformed input fails + "\\unknown", + "\\constructor", + "\\toString", + "a}b", + "\\frac}", + "\\not}", + "\\end{matrix}", + "\\begin{unknown}x", + "\\begin{matrix}1\\end{pmatrix}", + "\\begin{array}x", + "\\begin{array}{}x", + "\\begin{array}{||}x", + "\\begin{array}{p{2cm}}x", + "\\begin{array}{*{2}{c}}x", + "\\begin{array}{c@{}c}x", + "\\begin{array}{lXr}x", + "\\cfrac[c]12", + "\\cfrac[lr]12", + "\\cfrac[l{1}{2}", + "\\cfrac[l\n", + "\\begin{array}{% comment\n}", + "\\displaylines[l]{x}", + "\\left(x\\right}", + "\\frac", + "x^\\displaystyle", + "\\left(x", + "\\left(x\\right", + "\\left(x\\rightfoo", + "\\overbrace{", + "\\mathbb", + "\\textcolor{red}{", + "\\displaylines{a\\\\b", + "\\begin{matrix}1&&", + "\\cfrac[", + "{ab", + "\\left[̅x", + "\\sqrt[\\frac{1}{2}", + // fractions, braces, matrices and tall scripts + "\\frac{1}{12345}", + "\\underbrace{x}", + "\\overbrace{x}", + "\\begin{array}{ | l || r | }a&b\\\\\\frac{1}{2}&cc\\end{array}", + "\\begin{array}{lcr}a&b&c\\\\long&wide&last\\end{array}", + "\\frac{1}{2}^2_1", + "\\begin{aligned}x &= 1 \\\\ yy &= 2\\end{aligned}", + "\\cfrac[r]{1}{12345}", + "\\begin{pmatrix}a & b \\\\ cc & d\\end{pmatrix}", + "\\begin{cases}x & x \\ge 0 \\\\ -x & x < 0\\end{cases}", + "\\begin{aligned}A &= \\begin{pmatrix}a & b \\\\ c & d\\end{pmatrix} \\\\ z &= 1\\end{aligned}", + // limits in three ways + "\\sum\\limits_1^2", + "\\sum\\nolimits_1^2", + "\\int\\limits_1^2", + "\\sum^2\\nolimits_1", + "\\sum\\limits\\nolimits_1^2", + "\\sum\\nolimits\\limits_1^2", + "\\mathbf{\\sum}\\limits_1^2", + "\\textcolor{red}{\\sum}\\nolimits_1^2", + "\\mathbf{\\sin}x", + "\\mathbf{\\underbrace{abcd}}_{n}", + "\\mathbf{\\sum_1^2}\\nolimits", + "\\textcolor{red}{\\mathbf{\\sum_1^2}}\\limits", + "\\mathbf{\\sum_1}\\limits^2", + "\\mathbf{\\sum^2}\\limits_1", + "\\textcolor{red}{\\sum_1}\\limits^2", + "x^\\displaystyle2", + "\\mathbf{\\sum}_1^2", + "\\sum_1^2", + "\\int_1^2", + "\\operatorname{arg\\,max}_x", + "\\operatorname*{arg\\,max}_x", +] + +// Rust's limits and radicals in inline (text) style. +const textStyle = [ + "\\sum\\limits_1^2", + "\\sum\\nolimits_1^2", + "\\int\\limits_1^2", + "\\sum^2\\nolimits_1", + "\\sum\\limits\\nolimits_1^2", + "\\sum\\nolimits\\limits_1^2", + "\\mathbf{\\sum}\\limits_1^2", + "\\textcolor{red}{\\sum}\\nolimits_1^2", + "\\mathbf{\\sin}x", + "\\mathbf{\\underbrace{abcd}}_{n}", + "\\mathbf{\\sum_1^2}\\nolimits", + "\\textcolor{red}{\\mathbf{\\sum_1^2}}\\limits", + "\\mathbf{\\sum_1}\\limits^2", + "\\mathbf{\\sum^2}\\limits_1", + "\\textcolor{red}{\\sum_1}\\limits^2", + "x^\\displaystyle2", + "\\mathbf{\\sum}_1^2", + "\\sum_1^2", + "\\int_1^2", + "\\operatorname{arg\\,max}_x", + "\\operatorname*{arg\\,max}_x", + "\\sqrt{x^2+y^2}", + "\\sqrt[3]{x}", + "\\sqrt[\\frac{1}{2}]{x}", + "\\sqrt[a_b]{x}", + "\\sqrt[界]{x}", + "\\sqrt[\\frac{1}{2}]{\\frac{x}{y}}", +] + +// `strict: false` keeps unsupported commands as text. +const permissive = [ + "\\unknown", + "\\constructor", + "\\toString", + "\\left\\unknown x\\right)", + "\\left(x\\right\\unknown", + "\\big\\unknown", + "\\left(x\\middle\\unknown y\\right)", + "\\left ax\\right)", + "\\unknown{x}", + "\\left🐱x\\right🐶", + "\\left#️⃣\\frac{1}{2}\\right#️⃣", + "\\left(x\\rightfoo", +] + +const cases: { source: string; options?: RenderLatexOptions }[] = [ + ...[...new Set([...tests, ...textbook, ...rust])].map((source) => ({ source })), + { source: String.raw`x_i^2`, options: { compactScripts: false } }, + { source: String.raw`\sum_1^n`, options: { displayMode: false } }, + { source: String.raw`\sum_1^n`, options: { compactScripts: false } }, + { source: String.raw`\lim_{x\to0} f`, options: { displayMode: false } }, + ...textStyle.map((source) => ({ source, options: { displayMode: false } })), + ...permissive.map((source) => ({ source, options: { strict: false } })), +] + +const layouts = cases.map((item) => { + const options = { ...item.options, strict: item.options?.strict ?? true, displayMode: item.options?.displayMode ?? true } + try { + const layout = renderLatex(item.source, options) + const styled = layout.cells.flatMap((row, y) => + row.flatMap((cell, x) => { + const style = cell?.style + if (!style || !(style.bold || style.italic || style.dim || style.color)) return [] + const flags = `${style.bold ? "b" : ""}${style.italic ? "i" : ""}${style.dim ? "d" : ""}` + return [`${x},${y} ${flags} ${style.color ?? ""}`.trimEnd()] + }), + ) + return { + ...item, + text: layout.toString(), + width: layout.width, + height: layout.height, + baseline: layout.baseline, + styled, + } + } catch (error) { + if (!(error instanceof LatexParseError || error instanceof RangeError)) throw error + return { ...item, error: true } + } +}) + +const path = new URL("../fixtures/P.2/layouts.json", import.meta.url).pathname +await Bun.write(path, records(layouts, ["[]"])) +console.log(`P.2: ${layouts.length} layouts`) diff --git a/packages/cli-rs/parity/oracle/P.3-mermaid.ts b/packages/cli-rs/parity/oracle/P.3-mermaid.ts new file mode 100644 index 000000000000..2fcc358b0cfa --- /dev/null +++ b/packages/cli-rs/parity/oracle/P.3-mermaid.ts @@ -0,0 +1,92 @@ +// P-ORACLE for P.3: every Mermaid source in the merman tests, rendered by the TypeScript plugin's own code-block +// renderer (`createMermaidCodeBlockRenderer`, as `plugin.ts` registers it) with the `opencode` dark palette at a +// few terminal widths. Writes parity/fixtures/P.3/corpus.json; crates/mermaid/tests/all/oracle.rs renders the same +// sources in Rust and compares the styled lines. +// +// The corpus is each template literal in packages/merman/src/**/*.test.ts and the layout-audit fixtures whose +// first meaningful line names a diagram kind; literals with `${` interpolations are skipped. A case renders as +// `null` when TS keeps the fence as code. Lines are strings; `runs` holds per line [code points, style index] +// pairs into `styles`, each "fg bg attributes" with colors as rrggbbaa or "-" when unset. +import { createTestRenderer } from "@opentui/core/testing" +import type { TextRenderable } from "@opentui/core" +import { resolveThemeDocument } from "../../../theme/src/tui/index.ts" +import { allThemes, parseTheme } from "../../../tui/src/theme/index.ts" +import { createMermaidCodeBlockRenderer } from "../../../merman/src/markdown.ts" +import { resolveOpenCodeDiagramPalette } from "../../../merman/src/palette.ts" +import { detectMermaidDiagram } from "../../../merman/src/detect.ts" + +const WIDTHS = [120, 60] +const root = new URL("../../../merman/src/", import.meta.url).pathname +const output = new URL("../fixtures/P.3/corpus.json", import.meta.url).pathname + +const files = [ + ...Array.from(new Bun.Glob("**/*.test.ts").scanSync({ cwd: root })), + "test/layout-audit/fixtures.ts", +].sort() +const sources = new Set<string>() +for (const file of files) { + const text = await Bun.file(`${root}${file}`).text() + for (const match of text.matchAll(/`((?:[^`\\]|\\.)*)`/g)) { + const body = match[1]! + if (body.includes("${")) continue + // Template literals keep escapes such as \` and \\ as written. + const source = body.replace(/\\([`\\$])/g, "$1") + if (detectMermaidDiagram(source)) sources.add(source) + } +} +// What crates/mermaid's parser test once asserted by hand: dotted operators and the `-.` lookahead. +sources.add("flowchart LR\n A -.-> B\n C -.->D.- E\n F -. note .-> G\n H -.-> I -. x .- J") + +const theme = resolveThemeDocument(parseTheme(allThemes().opencode, "opencode"), "dark") +const colors = resolveOpenCodeDiagramPalette(theme, "dark") +const styles = new Map<string, number>() +const hex = (color: { toInts(): number[] } | undefined) => + color + ? color + .toInts() + .map((value) => value.toString(16).padStart(2, "0")) + .join("") + : "-" + +const cases: unknown[] = [] +for (const width of WIDTHS) { + const setup = await createTestRenderer({ width, height: 10 }) + const render = createMermaidCodeBlockRenderer(setup.renderer, () => ({ colors })) + for (const source of sources) { + const context = { defaultRender: () => undefined } as unknown as Parameters<typeof render>[1] + const diagram = render({ text: source } as Parameters<typeof render>[0], context) as TextRenderable | undefined + if (!diagram) { + cases.push({ width, source, lines: null }) + continue + } + const lines: string[] = [""] + const runs: [number, number][][] = [[]] + for (const chunk of diagram.content.chunks) { + const parts = chunk.text.split("\n") + parts.forEach((part, index) => { + if (index > 0) { + lines.push("") + runs.push([]) + } + if (!part) return + const key = `${hex(chunk.fg)} ${hex(chunk.bg)} ${chunk.attributes ?? 0}` + const style = styles.get(key) ?? styles.set(key, styles.size).get(key)! + lines[lines.length - 1] += part + runs[runs.length - 1]!.push([[...part].length, style]) + }) + } + cases.push({ width, source, height: diagram.height, lines, runs }) + diagram.destroy() + } + setup.renderer.destroy() +} + +const text = [ + "{", + ` "styles": ${JSON.stringify([...styles.keys()])},`, + ` "cases": [\n${cases.map((item) => ` ${JSON.stringify(item)}`).join(",\n")}\n ]`, + "}", + "", +].join("\n") +await Bun.write(output, text) +console.log(`oracle: P.3 ${cases.length} cases from ${sources.size} sources`) diff --git a/packages/cli-rs/parity/oracle/U.1-themes.ts b/packages/cli-rs/parity/oracle/U.1-themes.ts new file mode 100644 index 000000000000..0bf701d8d61c --- /dev/null +++ b/packages/cli-rs/parity/oracle/U.1-themes.ts @@ -0,0 +1,176 @@ +// P-ORACLE for U.1: resolves every built-in theme in every mode it supports, the generated `system` theme over a few +// terminal palettes, the V1 built-ins and the `system` theme again as mini parses them, and a few broken custom themes, +// through the TypeScript TUI's own functions. Writes parity/fixtures/U.1/tokens.json; +// crates/ui/tests/all/theme_oracle.rs resolves the same inputs in Rust and compares. +// +// Colors are packed as 8 hex digits (rrggbbaa) in the order of `paths` (tokens) and `hues` (one 9-step scale per +// named hue), so the fixture stays small. The Rust test unpacks them and reports mismatches by path. +import { resolveThemeDocument, themeModes, type ResolvedTheme } from "../../../theme/src/tui/index.ts" +import { allThemes, parseTheme, type ThemeDocumentSource } from "../../../tui/src/theme/index.ts" +import { generateSystem, terminalMode } from "../../../tui/src/theme/system.ts" +import { records } from "../lib/records" + +const output = new URL("../fixtures/U.1/tokens.json", import.meta.url).pathname +const sections = ["text", "background", "border", "scrollbar", "diff", "syntax", "markdown"] as const + +type Color = { toInts(): [number, number, number, number] } +type TerminalColors = Parameters<typeof generateSystem>[0] + +const pack = (color: Color) => + color + .toInts() + .map((value) => value.toString(16).padStart(2, "0")) + .join("") + +function flatten(value: unknown, prefix: string): [string, Color][] { + if (isColor(value)) return [[prefix, value]] + if (typeof value !== "object" || value === null) return [] + return Object.entries(value).flatMap(([key, item]) => flatten(item, `${prefix}.${key}`)) +} + +function isColor(value: unknown): value is Color { + return typeof value === "object" && value !== null && typeof (value as Color).toInts === "function" +} + +// Key order differs between documents, so tokens are listed by sorted path. +const paths = sections + .flatMap((section) => + flatten(resolveThemeDocument(parseTheme(allThemes().opencode, "opencode"), "dark")[section], section), + ) + .map(([path]) => path) + .sort() + +function tokens(theme: ResolvedTheme): [string, Color][] { + const found = new Map(sections.flatMap((section) => flatten(theme[section], section))) + if (found.size !== paths.length) throw new Error(`theme has ${found.size} tokens, expected ${paths.length}`) + return paths.map((path) => { + const color = found.get(path) + if (!color) throw new Error(`theme is missing token ${path}`) + return [path, color] + }) +} + +function entry(theme: ResolvedTheme, modes: readonly string[]) { + const packed = (view: ResolvedTheme) => + tokens(view) + .map(([, color]) => pack(color)) + .join("") + return { + modes, + hues: Object.keys(theme.hue), + hue: Object.values(theme.hue) + .flatMap((scale) => Object.values(scale).map(pack)) + .join(""), + categorical: theme.categorical.flatMap((scale) => Object.values(scale).map(pack)).join(""), + base: packed(theme), + dialog: packed(theme.surface("dialog")), + footer: packed(theme.surface("dialog.footer")), + // Results of decrease() and increase() for each token, the hue-step shifts components use. + decrease: tokens(theme) + .map(([, color]) => pack(theme.decrease(color as never))) + .join(""), + increase: tokens(theme) + .map(([, color]) => pack(theme.increase(color as never, 2))) + .join(""), + } +} + +// The Rust client implements the TUI under the `new-designs` experiment only, so every theme parses that way. +const parse = (source: ThemeDocumentSource, name: string) => parseTheme(source, name, { newDesigns: true }) + +function load(source: ThemeDocumentSource, name: string, mode: "dark" | "light") { + const document = parse(source, name) + const modes = themeModes(document) + return entry(resolveThemeDocument(document, mode), modes) +} + +const builtins: Record<string, ReturnType<typeof entry>> = {} +const sources = Object.entries(allThemes()).filter(([name]) => name !== "system") +for (const [name, source] of sources) { + for (const mode of themeModes(parse(source, name))) builtins[`${name}/${mode}`] = load(source, name, mode) +} + +// Palettes for the generated system theme: dark and light defaults, pure black and white (the gray-scale special +// cases), a palette without default colors, and one with missing entries that fall back to ANSI colors. +const ansi = ["#1d1f21", "#cc6666", "#b5bd68", "#f0c674", "#81a2be", "#b294bb", "#8abeb7", "#c5c8c6"] +const bright = ["#666666", "#d54e53", "#b9ca4a", "#e7c547", "#7aa6da", "#c397d8", "#70c0b1", "#eaeaea"] +const palettes: Record<string, Partial<TerminalColors> & { palette: (string | null)[] }> = { + dark: { palette: [...ansi, ...bright], defaultBackground: "#1d1f21", defaultForeground: "#c5c8c6" }, + light: { palette: [...ansi, ...bright], defaultBackground: "#fdf6e3", defaultForeground: "#586e75" }, + black: { palette: [...ansi, ...bright], defaultBackground: "#000000", defaultForeground: "#ffffff" }, + white: { palette: [...ansi, ...bright], defaultBackground: "#ffffff", defaultForeground: "#000000" }, + palette: { palette: [...ansi, ...bright], defaultBackground: null, defaultForeground: null }, + sparse: { palette: ["#202020", null, "#40a040", null, null, null, "#40a0a0", "#d0d0d0"], defaultBackground: "#202020" }, +} +const system: Record<string, ReturnType<typeof entry> & { terminal: string | null }> = {} +for (const [name, palette] of Object.entries(palettes)) { + const colors = palette as TerminalColors + for (const mode of ["dark", "light"] as const) { + system[`${name}/${mode}`] = { ...load(generateSystem(colors, mode), "system", mode), terminal: terminalMode(colors) ?? null } + } +} + +// Mini parses without the experiment (`resolveRunTheme` in packages/tui/src/mini/theme.ts), so V1 themes take +// migrateV1. Its views keep the tokens mini reads: the hues and the base surface. +const mini: Record<string, Pick<ReturnType<typeof entry>, "modes" | "hues" | "hue" | "categorical" | "base">> = {} +const miniView = (source: ThemeDocumentSource, name: string, mode: "dark" | "light") => { + const document = parseTheme(source, name) + const view = entry(resolveThemeDocument(document, mode), themeModes(document)) + return { modes: view.modes, hues: view.hues, hue: view.hue, categorical: view.categorical, base: view.base } +} +for (const [name, source] of Object.entries(allThemes()).filter(([, source]) => "theme" in source)) { + for (const mode of themeModes(parseTheme(source, name))) mini[`${name}/${mode}`] = miniView(source, name, mode) +} +for (const [name, palette] of Object.entries(palettes)) { + for (const mode of ["dark", "light"] as const) + mini[`system:${name}/${mode}`] = miniView(generateSystem(palette as TerminalColors, mode), "system", mode) +} + +// Custom themes that fail to load, with the message the theme-error toast shows. +const valid = allThemes().opencode as Record<string, unknown> +const broken: Record<string, unknown> = { + "v1-missing-reference": { theme: { ...(allThemes().aura as { theme: object }).theme, primary: "nope" } }, + "v1-circular": { defs: { a: "b", b: "a" }, theme: { ...(allThemes().aura as { theme: object }).theme, primary: "a" } }, + "v2-bad-color": { ...valid, base: { ...(valid.base as object), border: { base: "red" } } }, + "v2-number-color": { ...valid, base: { ...(valid.base as object), border: { base: 5 } } }, + "v2-object-color": { ...valid, base: { ...(valid.base as object), border: { base: { a: 1 } } } }, + "v2-syntax-reference": { + ...valid, + base: { ...(valid.base as object), syntax: { ...(valid.base as { syntax: object }).syntax, comment: "$text.base" } }, + }, + "v2-bad-step": { ...valid, dark: { hue: { accent: "$hue.gray", interactive: "$hue.gray", neutral: { 150: "#000" } } } }, + "v2-missing-border": { ...valid, base: { ...(valid.base as object), border: undefined } }, + "v2-empty-categorical": { ...valid, base: { ...(valid.base as object), categorical: [] } }, + "v2-unknown-categorical": { ...valid, base: { ...(valid.base as object), categorical: ["nope"] } }, + "v2-circular": { ...valid, base: { ...(valid.base as object), border: { base: "$scrollbar.base" }, scrollbar: { base: "$border.base" } } }, + "v2-extra-key": { ...valid, base: { ...(valid.base as object), border: { base: "$text.extra" }, text: { ...(valid.base as { text: object }).text, extra: "#ffffff" } } }, + "v2-missing-reference": { ...valid, base: { ...(valid.base as object), border: { base: "$text.nope" } } }, + "v2-no-modes": { base: valid.base }, + "v2-missing-hue": { ...valid, dark: { hue: { accent: "$hue.gray", interactive: "$hue.gray" } } }, +} +const errors = Object.fromEntries( + Object.entries(broken).map(([name, source]) => { + try { + const document = parse(source as ThemeDocumentSource, name) + themeModes(document).forEach((mode) => resolveThemeDocument(document, mode)) + return [name, { source, message: null }] + } catch (error) { + return [name, { source, message: error instanceof Error ? error.message : String(error) }] + } + }), +) + +await Bun.write( + output, + records({ paths, builtins, system, mini, palettes, errors }, [ + "paths[]", + "builtins.*.*", + "system.*.*", + "mini.*.*", + "palettes.*.*", + "errors.*.*", + ]), +) +console.log( + `oracle U.1: ${Object.keys(builtins).length} built-in views, ${Object.keys(system).length} system views, ${Object.keys(mini).length} mini views`, +) diff --git a/packages/cli-rs/parity/oracle/U.2-keymap.ts b/packages/cli-rs/parity/oracle/U.2-keymap.ts new file mode 100644 index 000000000000..47dcf55aa13d --- /dev/null +++ b/packages/cli-rs/parity/oracle/U.2-keymap.ts @@ -0,0 +1,11 @@ +// P-ORACLE for crates/ui/src/keymap: key sequences to commands through the TypeScript TUI's keymap, for every +// default binding and an override corpus. The harness needs OpenTUI's Solid preload, which resolves from +// packages/tui, so it runs from there. Writes parity/fixtures/U.2/keymap.json. +const tui = new URL("../../../tui", import.meta.url).pathname +const harness = new URL("./U.2-keymap/harness.ts", import.meta.url).pathname +const proc = Bun.spawnSync(["bun", "run", "--preload", "@opentui/solid/preload", harness], { + cwd: tui, + stdout: "inherit", + stderr: "inherit", +}) +if (proc.exitCode !== 0) process.exit(proc.exitCode ?? 1) diff --git a/packages/cli-rs/parity/oracle/U.2-keymap/harness.ts b/packages/cli-rs/parity/oracle/U.2-keymap/harness.ts new file mode 100644 index 000000000000..ff7dcad98b7f --- /dev/null +++ b/packages/cli-rs/parity/oracle/U.2-keymap/harness.ts @@ -0,0 +1,332 @@ +// Runs key sequences through the TypeScript TUI's real Keymap.Provider and records the commands they run. +// U.2-keymap.ts runs this with OpenTUI's Solid preload from packages/tui. OpenTUI and Solid resolve as packages/tui +// resolves them, so that this file and the TUI sources share one Solid instance. Writes +// parity/fixtures/U.2/keymap.json. +import type { useKeymap } from "@opentui/keymap/solid" +import { resolve } from "../../../../tui/src/config" +import { TuiKeybind } from "../../../../tui/src/config/keybind" +import { Keymap } from "../../../../tui/src/context/keymap" +import { records } from "../../lib/records" + +type Stroke = { name: string; ctrl: boolean; shift: boolean; meta: boolean; super: boolean; hyper: boolean } +type Step = string | number +type Case = { command?: string; keys: Step[]; commands: string[] } +type Scenario = { + name: string + keybinds: Record<string, unknown> + terminalSuspend: boolean + leaderTimeout?: number + layout: "isolated" | "all" + textarea: boolean + // Names whose sequences the cases press; every name when absent. + names?: string[] + extra?: Step[][] +} + +const tui = new URL("../../../../tui/", import.meta.url).pathname +const { TextareaRenderable } = await import(Bun.resolveSync("@opentui/core", tui)) +const keymapSolid = await import(Bun.resolveSync("@opentui/keymap/solid", tui)) +const { testRender } = await import(Bun.resolveSync("@opentui/solid", tui)) +const { createComponent, createSignal } = await import(Bun.resolveSync("solid-js", tui)) + +const names = Object.keys(TuiKeybind.Definitions).filter((name) => name !== "leader") +const escape = "\x1b[27u" +const backspace = "\x1b[127u" + +const leaderCases: Step[][] = [ + ["\x18", "n"], + ["\x18", escape, "n"], + ["\x18", backspace, "n"], + ["\x18", backspace, "\x18", "n"], + ["\x18", "z"], + ["\x18", "z", "n"], + ["g", "g"], + ["g", "x"], + ["g", escape, "g", "g"], +] + +const scenarios: Scenario[] = [ + { name: "defaults isolated", keybinds: {}, terminalSuspend: true, layout: "isolated", textarea: false }, + { + name: "defaults all", + keybinds: {}, + terminalSuspend: true, + layout: "all", + textarea: false, + extra: leaderCases, + }, + { + name: "defaults all with a focused textarea", + keybinds: {}, + terminalSuspend: true, + layout: "all", + textarea: true, + extra: [...leaderCases, ["\n"], ["\x1b[57414u"], ["a", "\x1b[13;3u"]], + }, + ...[false, true].map((textarea) => ({ + name: `value forms${textarea ? " with a focused textarea" : ""}`, + keybinds: { + "session.new": "ctrl+n", + "session.list": ["ctrl+k", "<leader>shift+l"], + "model.list": { name: "m", ctrl: true, meta: true }, + "agent.list": { key: "alt+a", preventDefault: false }, + "agent.cycle": { key: { name: "tab", ctrl: true } }, + "session.compact": false, + "session.export": "none", + "session.timeline": [], + "help.show": "f1", + "docs.open": "ctrl+shift+h", + "theme.switch": "enter", + "theme.switch_mode": "esc", + "diff.page.down": "pgdown", + "diff.page.up": "PGUP", + "mcp.list": "<leader>esc", + "variant.list": "zz", + "session.fork": { key: "ctrl+y", event: "release" }, + "usage.show": ["f5", { key: "f6", fallthrough: true }], + "input.submit": "ctrl+s", + "input.newline": "return", + }, + terminalSuspend: true, + layout: "all" as const, + textarea, + extra: [ + ["\x18", "\x1b[76;2u"], + ["\x18", escape], + ["z", "z"], + ["\x18", "n"], + ["\x18", "c"], + ["\x18", "x"], + ], + })), + // The keybinds of the user's cli.json in rs-user-keys, with the legacy Ctrl+\ (0x1c) the encoder skips. + ...[false, true].map((textarea) => ({ + name: `user cli.json${textarea ? " with a focused textarea" : ""}`, + keybinds: { + leader: "ctrl+\\", + "session.tab.next": "tab", + "session.tab.previous": "shift+tab", + "session.tab.close": "ctrl+w", + "session.new": "ctrl+n", + "agent.cycle": "none", + "input.delete.word.backward": "ctrl+backspace,alt+backspace", + }, + terminalSuspend: true, + layout: "all" as const, + textarea, + extra: [ + ["\x1c", "l"], + ["\x1c", "m"], + ["\x1c", "1"], + ["\x1c", "w"], + ["\x1c", "n"], + ["\x1c", escape, "l"], + ["\x18", "l"], + ["a", "\x1c", "l"], + ["\t"], + ["\x1b[Z"], + ["\x17"], + ["\x0e"], + ], + })), + { + name: "custom leader", + keybinds: { leader: "alt+x" }, + terminalSuspend: true, + leaderTimeout: 50, + layout: "all", + textarea: false, + names: ["session.new", "app.exit", "session.list", "session.tab.select.1", "prompt.queue"], + extra: [ + ["\x1bx", "n"], + ["\x1bx", 100, "n"], + ["\x1bx", 10, "n"], + ["\x18", "n"], + ], + }, + { + name: "leader none", + keybinds: { leader: "none" }, + terminalSuspend: true, + layout: "all", + textarea: false, + names: ["session.new", "app.exit", "session.list"], + extra: [ + ["\x18", "n"], + ["\x18", "q"], + ], + }, + { + name: "no terminal suspend", + keybinds: {}, + terminalSuspend: false, + layout: "all", + textarea: true, + names: ["terminal.suspend", "input.undo", "input.redo"], + extra: [["\x1a"], ["\x1b[122;5u"]], + }, + { + name: "no terminal suspend with input.undo set", + keybinds: { "input.undo": "ctrl+y", "terminal.suspend": "ctrl+t" }, + terminalSuspend: false, + layout: "all", + textarea: true, + names: ["terminal.suspend", "input.undo"], + extra: [["\x1a"], ["\x1b[122;5u"], ["\x1b[121;5u"]], + }, +] + +const errors = [ + { nope: "x" }, + { "a.b": "x", "session.new": "ctrl+n", c: "y" }, + { "session.new": 3 }, + { "session.new": [false] }, + { "session.new": { ctrl: true } }, +].map((keybinds) => ({ keybinds, error: errorOf(keybinds) })) + +const results = [] +for (const scenario of scenarios) results.push({ ...scenario, cases: await run(scenario) }) + +const file = new URL("../../fixtures/U.2/keymap.json", import.meta.url).pathname +await Bun.write(file, records({ scenarios: results, errors }, ["scenarios[].cases[]", "errors[]"])) +console.log( + `keymap: ${results.reduce((total, scenario) => total + scenario.cases.length, 0)} cases, ${errors.length} errors`, +) +process.exit(0) + +async function run(scenario: Scenario): Promise<Case[]> { + const config = resolve( + { keybinds: scenario.keybinds as TuiKeybind.KeybindOverrides, leader: { timeout: scenario.leaderTimeout } }, + { terminalSuspend: scenario.terminalSuspend, environment: {} }, + ) + const calls: string[] = [] + const [registered, setRegistered] = createSignal<string[]>(scenario.layout === "all" ? names : []) + let raw!: ReturnType<typeof useKeymap> + function Harness() { + raw = keymapSolid.useKeymap() + Keymap.createLayer(() => ({ + commands: registered().map((id) => ({ id, run: () => void calls.push(id) })), + })) + return null + } + const app = await testRender( + () => + createComponent(Keymap.Provider, { + config, + get children() { + return createComponent(Harness, {}) + }, + }), + { kittyKeyboard: true }, + ) + try { + if (scenario.textarea) { + const textarea = new TextareaRenderable(app.renderer, { id: "textarea" }) + app.renderer.root.add(textarea) + textarea.focus() + } + // The sequences every configured binding has, from the "all" layer's registration. + setRegistered(names) + const bindings = raw.getCommandBindings({ visibility: "registered", commands: names }) + const pressed = scenario.names ?? names + const sequences = pressed.flatMap((command) => + (bindings.get(command) ?? []).map((binding) => ({ + command, + strokes: binding.sequence.map((part) => part.stroke as Stroke), + })), + ) + const cases: Case[] = [] + const seen = new Set<string>() + const press = async (keys: Step[], command?: string) => { + const id = JSON.stringify([command, keys]) + if (seen.has(id)) return + seen.add(id) + raw.clearPendingSequence() + calls.length = 0 + for (const key of keys) { + if (typeof key === "number") await Bun.sleep(key) + else app.renderer.stdin.emit("data", Buffer.from(key)) + } + cases.push({ ...(command ? { command } : {}), keys, commands: [...calls] }) + } + for (const sequence of sequences) { + if (scenario.layout === "isolated") setRegistered([sequence.command]) + for (const csi of [true, false]) { + const keys = sequence.strokes.map((stroke) => encode(stroke, csi)) + if (keys.every((key) => key !== undefined)) await press(keys, scenario.layout === "isolated" ? sequence.command : undefined) + } + } + if (scenario.layout === "all") for (const keys of scenario.extra ?? []) await press(keys) + return cases + } finally { + app.renderer.destroy() + } +} + +function errorOf(keybinds: Record<string, unknown>) { + try { + resolve({ keybinds: keybinds as TuiKeybind.KeybindOverrides }, { terminalSuspend: true, environment: {} }) + return undefined + } catch (error) { + return error instanceof Error ? error.message : String(error) + } +} + +// Terminal bytes for a stroke: Kitty CSI-u, or the legacy encoding when one exists without loss. +function encode(stroke: Stroke, csi: boolean): string | undefined { + const modifier = + 1 + + (stroke.shift ? 1 : 0) + + (stroke.meta ? 2 : 0) + + (stroke.ctrl ? 4 : 0) + + (stroke.super ? 8 : 0) + + (stroke.hyper ? 16 : 0) + const plain = modifier === 1 + const arrow = { up: "A", down: "B", right: "C", left: "D", home: "H", end: "F", f1: "P", f2: "Q", f3: "R", f4: "S" }[ + stroke.name + ] + const tilde = { + insert: 2, + delete: 3, + pageup: 5, + pagedown: 6, + f5: 15, + f6: 17, + f7: 18, + f8: 19, + f9: 20, + f10: 21, + f11: 23, + f12: 24, + }[stroke.name] + const code = + { return: 13, tab: 9, escape: 27, backspace: 127, space: 32, kpenter: 57414 }[stroke.name] ?? + ([...stroke.name].length === 1 ? stroke.name.codePointAt(0) : undefined) + if (arrow) { + if (plain) return stroke.name.startsWith("f") ? `\x1bO${arrow}` : `\x1b[${arrow}` + return `\x1b[1;${modifier}${arrow}` + } + if (tilde) return plain ? `\x1b[${tilde}~` : `\x1b[${tilde};${modifier}~` + if (stroke.name === "linefeed") return csi || !plain ? undefined : "\n" + if (code === undefined) return undefined + if (csi) { + if (plain && code !== 27 && code !== 57414 && code !== 127 && code !== 13 && code !== 9) + return String.fromCodePoint(code) + return plain ? `\x1b[${code}u` : `\x1b[${code};${modifier}u` + } + if (stroke.super || stroke.hyper || code === 27 || code === 57414) return undefined + const named = { 13: "\r", 9: "\t", 127: "\x7f", 32: " " }[code] + if (named) { + if (stroke.ctrl) return undefined + if (stroke.shift) return code === 9 && !stroke.meta ? "\x1b[Z" : undefined + return (stroke.meta ? "\x1b" : "") + named + } + const character = String.fromCodePoint(code) + if (stroke.ctrl) { + if (stroke.shift || !/^[a-z]$/.test(character)) return undefined + return (stroke.meta ? "\x1b" : "") + String.fromCharCode(code - 96) + } + const typed = stroke.shift ? (/^[a-z]$/.test(character) ? character.toUpperCase() : undefined) : character + if (typed === undefined) return undefined + return (stroke.meta ? "\x1b" : "") + typed +} diff --git a/packages/cli-rs/parity/oracle/U.3-fuzzy.ts b/packages/cli-rs/parity/oracle/U.3-fuzzy.ts new file mode 100644 index 000000000000..af162bd14b1b --- /dev/null +++ b/packages/cli-rs/parity/oracle/U.3-fuzzy.ts @@ -0,0 +1,57 @@ +// P-ORACLE for crates/ui/src/select.rs `fuzzy`: runs fuzzysort.go exactly as DialogSelect calls it +// (packages/tui/src/ui/dialog-select.tsx:214-229) over a corpus built from the 244 keybind definitions, for a list of +// queries and both thresholds the TUI uses. Writes parity/fixtures/U.3/fuzzy.json; crates/ui/tests/all/dialogs.rs +// expects the same order. +import fuzzysort from "../../../tui/node_modules/fuzzysort" +import { Definitions } from "../../../tui/src/config/keybind" +import { records } from "../lib/records" + +const options = Object.entries(Definitions).map(([name, definition]) => ({ + title: definition.description, + category: name.split(".")[0], + searchText: name, +})) +const queries = [ + "s", + "se", + "session", + "ses new", + "new ses", + "model", + "mod fav", + "toggle side", + "sidebar", + "x", + "dialog sel", + "pr", + "ul", + "SESS", + " tab ", + "input.", + "cmd", + "zzz", + "copy last", + "a b c", + "exit app", + "undo", + "page down", + "dg", +] + +const cases = [0, 0.7].flatMap((threshold) => + queries.map((query) => ({ + query, + threshold, + results: fuzzysort + .go(query.toLowerCase(), options, { + keys: ["title", "category", "searchText"], + scoreFn: (r) => r[0].score * 2 + r[1].score + r[2].score, + threshold, + }) + .map((x) => options.indexOf(x.obj)), + })), +) + +const path = new URL("../fixtures/U.3/fuzzy.json", import.meta.url).pathname +await Bun.write(path, records({ options, cases }, ["options[]", "cases[]"])) +console.log(`oracle: U.3/fuzzy ${cases.length} cases`) diff --git a/packages/cli-rs/parity/oracle/U.3-path.ts b/packages/cli-rs/parity/oracle/U.3-path.ts new file mode 100644 index 000000000000..f2686bb8cb48 --- /dev/null +++ b/packages/cli-rs/parity/oracle/U.3-path.ts @@ -0,0 +1,65 @@ +// P-ORACLE for crates/ui/src/path.rs: the TUI's formatPath and abbreviateHome (packages/tui/src/util/path-format.ts) +// over POSIX and Windows paths. Writes parity/fixtures/U.3/path.json; crates/ui/tests/all/dialogs.rs expects the same +// strings. +import { abbreviateHome, formatPath } from "../../../tui/src/util/path-format" +import { records } from "../lib/records" + +const posix = { + base: ["/home/ada/src/app", "/", "/home/ada", "/tmp/x/"], + home: ["/home/ada", "", "/home/ada/"], + input: [ + "", + "/home/ada/src/app", + "/home/ada/src/app/lib/main.rs", + "lib/main.rs", + "./lib/../lib/./main.rs", + "../other/file", + "/home/ada/notes.md", + "/home/ada", + "/home/adam/file", + "/etc/hosts", + "/", + "//double//slash/", + "..", + "~/literal", + "C:\\Users\\ada\\file.txt", + "\\\\server\\share\\file", + ], +} +const windows = { + base: ["C:\\Users\\ada\\src\\app", "c:/Users/ada", "\\\\server\\share\\dir"], + home: ["C:\\Users\\ada", ""], + input: [ + "C:\\Users\\ada\\src\\app\\lib\\main.rs", + "c:\\users\\ada\\src\\app\\x", + "lib\\main.rs", + "lib/main.rs", + "..\\other", + "C:\\Users\\ada\\notes.md", + "D:\\data\\file", + "C:\\", + "\\\\server\\share\\dir\\file", + "/home/ada/file", + ], +} + +const cases = [posix, windows].flatMap((set) => + set.base.flatMap((base) => + set.home.flatMap((home) => + set.input.flatMap((input) => + [false, true].map((forwardSlashes) => ({ + input, + base, + home, + forwardSlashes, + format: formatPath(input, { base, home: home || undefined, forwardSlashes }), + abbreviate: abbreviateHome(input, home), + })), + ), + ), + ), +) + +const path = new URL("../fixtures/U.3/path.json", import.meta.url).pathname +await Bun.write(path, records(cases, ["[]"])) +console.log(`oracle: U.3/path ${cases.length} cases`) diff --git a/packages/cli-rs/parity/oracle/U.4a-syntax.ts b/packages/cli-rs/parity/oracle/U.4a-syntax.ts new file mode 100644 index 000000000000..efb8a6918a48 --- /dev/null +++ b/packages/cli-rs/parity/oracle/U.4a-syntax.ts @@ -0,0 +1,47 @@ +// P-ORACLE for U.4a: the syntax style the TUI derives from a theme (`generateSyntax`, packages/theme/src/tui/syntax.ts) +// for a few built-in themes and modes. Writes parity/fixtures/U.4a/syntax.json; crates/ui/tests/all/content.rs builds +// opencode_ui::code::syntax_theme for the same themes and compares every scope. +import { ResourceContext } from "@opentui/core" +import { generateSyntax, resolveThemeDocument } from "../../../theme/src/tui/index.ts" +import { allThemes, parseTheme } from "../../../tui/src/theme/index.ts" + +const output = new URL("../fixtures/U.4a/syntax.json", import.meta.url).pathname +const views = [ + ["opencode", "dark"], + ["opencode", "light"], + ["tokyonight", "dark"], + ["github", "light"], +] as const + +type Color = { toInts(): [number, number, number, number] } +const pack = (color: Color | undefined) => + color + ?.toInts() + .map((value) => value.toString(16).padStart(2, "0")) + .join("") + +const owner = new ResourceContext({ objectCapacity: 1, renderCellsMax: 1 }) +const result = views.map(([name, mode]) => { + const syntax = generateSyntax(resolveThemeDocument(parseTheme(allThemes()[name], name, { newDesigns: true }), mode), owner) + const styles = Object.fromEntries( + [...syntax.getAllStyles()].map(([scope, style]) => [ + scope, + [pack(style.fg), pack(style.bg), style.bold ?? false, style.italic ?? false, style.underline ?? false], + ]), + ) + syntax.destroy() + return { name, mode, styles } +}) +owner.destroy() + +// One scope per line, so a diff of the fixture names the scopes that changed. +const lines = result.map( + (view) => + `{"name":${JSON.stringify(view.name)},"mode":${JSON.stringify(view.mode)},"styles":{\n` + + Object.entries(view.styles) + .map(([scope, style]) => ` ${JSON.stringify(scope)}:${JSON.stringify(style)}`) + .join(",\n") + + "\n}}", +) +await Bun.write(output, `[\n${lines.join(",\n")}\n]\n`) +console.log(`oracle: U.4a/syntax ${result.length} views`) diff --git a/packages/cli-rs/parity/oracle/U.5-tool-info.ts b/packages/cli-rs/parity/oracle/U.5-tool-info.ts new file mode 100644 index 000000000000..684c1d7359cd --- /dev/null +++ b/packages/cli-rs/parity/oracle/U.5-tool-info.ts @@ -0,0 +1,222 @@ +// P-ORACLE for U.5: runs a corpus of tool parts, built with the TUI's own `canonicalToolPart` fixture, through +// `toolInlineInfo`, and the tool display helpers over a few inputs each. Writes parity/fixtures/U.5/tool-info.json; +// crates/ui/tests/all/tool_info_oracle.rs feeds the same parts to the Rust port and compares. +import { readDisplayText, toolInlineInfo, toolOutputText } from "../../../tui/src/mini/tool.ts" +import { formatPath } from "../../../tui/src/util/path-format.ts" +import { + executeCallSummary, + executeCalls, + primitiveInputSummary, + webSearchProviderLabel, +} from "../../../tui/src/util/tool-display.ts" +import { canonicalToolPart } from "../../../tui/test/mini/fixture/tool-part.ts" +import { records } from "../lib/records" + +type State = Parameters<typeof canonicalToolPart>[1] + +const output = new URL("../fixtures/U.5/tool-info.json", import.meta.url).pathname +const directory = "/work/project" +const text = (value: string) => [{ type: "text" as const, text: value }] +const completed = (input: Record<string, unknown>, metadata: Record<string, unknown> = {}, content = text("")) => ({ + status: "completed", + input, + metadata, + content, +}) +const running = (input: Record<string, unknown>, metadata: Record<string, unknown> = {}) => ({ + status: "running", + input, + metadata, +}) +const failed = (input: Record<string, unknown>, message = "boom") => ({ + status: "error", + input, + error: { type: "unknown", message }, + metadata: {}, +}) +const streaming = (input: string) => ({ status: "streaming", input }) + +const cases: Array<[string, string, unknown, string?]> = [ + [ + "shell completed", + "shell", + completed({ command: "ls -la", description: "List" }, { exit: 0 }, [ + ...text("a\nb\n"), + ...text("Command exited with code 0."), + ]), + ], + ["shell running", "shell", running({ command: "sleep 1" })], + ["shell error", "shell", failed({ command: "false" })], + ["shell streaming", "shell", streaming('{"command":"l')], + ["shell legacy bash", "bash", completed({ command: "pwd" }, {}, text(" /work/project \n"))], + ["shell no command", "shell", completed({})], + ["shell unknown status", "shell", { status: "paused", input: { command: "ls" }, metadata: {} }], + ["write inside", "write", completed({ filePath: "/work/project/src/a.ts", content: "x" }, {}, text("Wrote file"))], + ["write outside", "write", completed({ filePath: "/etc/hosts", content: "x" })], + ["write relative", "write", running({ path: "src/../b.ts", content: "x" })], + [ + "edit with files", + "edit", + completed( + { filePath: "/work/project/a.ts" }, + { + files: [{ type: "update", filePath: "/work/project/a.ts", relativePath: "a.ts", patch: "@@ -1 +1 @@\n-a\n+b" }], + }, + ), + ], + ["edit with diff", "edit", completed({ filePath: "/work/project/a.ts" }, { diff: "--- a\n+++ b" })], + ["edit running", "edit", running({ filePath: "/work/project/a.ts", oldString: "a", newString: "b" })], + [ + "patch two files", + "apply_patch", + completed( + { patchText: "*** Begin Patch" }, + { + files: [ + { type: "add", relativePath: "a.ts" }, + { type: "move", filePath: "/x/b.ts", relativePath: "c.ts" }, + ], + }, + ), + ], + ["patch one file", "patch", completed({}, { files: [{ file: "a.ts", status: "modified" }] })], + ["patch nameless files", "patch", completed({}, { files: [{ patch: "x" }] })], + ["patch no files", "patch", running({ patchText: "*** Begin Patch" })], + ["patch error", "patch", failed({ patchText: "x" }, "bad patch")], + ["batch two", "batch", completed({ tool_calls: [{}, {}] }, {}, text("done"))], + ["batch one", "batch", running({ tool_calls: [{}] })], + ["batch none", "batch", running({})], + ["subagent completed", "task", completed({ subagent_type: "explore", description: "Inspect the repo" })], + ["subagent running", "subagent", running({ agent: "general", description: "Work" })], + ["subagent error", "subagent", failed({ agent: "code-review" })], + ["subagent no agent", "subagent", running({})], + ["subagent agent not a string", "subagent", running({ agent: 7 })], + [ + "todowrite", + "todowrite", + completed({ + todos: [ + { content: "one", status: "completed" }, + { content: "two", status: "in_progress" }, + { content: "three", status: "cancelled" }, + { content: "four", status: "weird" }, + { content: "", status: "pending" }, + "bad", + ], + }), + ], + ["todowrite empty", "todowrite", running({})], + ["question one", "question", completed({ questions: [{ question: "Why?" }] }, { answers: [["Because"]] })], + ["question three", "question", running({ questions: [{}, {}, {}] })], + ["question none", "question", running({})], + [ + "read with range", + "read", + completed( + { filePath: "/work/project/src/a.ts", offset: 10, limit: 20 }, + {}, + text('{"type":"text-page","content":"hello"}'), + ), + ], + ["read outside", "read", completed({ filePath: "/tmp/x.txt" })], + ["read flags", "read", running({ path: "a.ts", raw: true, encoding: "utf8" })], + ["read no path", "read", running({})], + ["glob full", "glob", completed({ pattern: "*.ts", path: "/work/project/src" }, { count: 3 })], + ["glob one match", "glob", completed({ pattern: "*.md" }, { count: 1 })], + ["glob no count", "glob", running({ pattern: "**/*" })], + ["glob null count", "glob", completed({ pattern: "x", path: "/elsewhere" }, { count: null })], + ["glob bad path", "glob", running({ pattern: "x", path: 5 })], + ["grep full", "grep", completed({ pattern: "needle", path: "src" }, { matches: 0 })], + ["grep one", "grep", completed({ pattern: "needle" }, { matches: 1 })], + ["list path", "list", completed({ path: "/work/project/src" })], + ["list none", "list", running({})], + ["lsp full", "lsp", completed({ operation: "hover", filePath: "/work/project/a.ts", line: 3, character: 7 })], + ["lsp no position", "lsp", running({ operation: "definition", filePath: "b.ts", line: 3 })], + ["lsp no file", "lsp", running({})], + ["webfetch", "webfetch", completed({ url: "https://example.com", format: "markdown" })], + ["webfetch none", "webfetch", running({})], + ["websearch exa", "websearch", completed({ query: "rust serde" }, { provider: "exa" })], + ["websearch opencode", "websearch", completed({ query: "x" }, { provider: "opencode" })], + ["websearch none", "websearch", running({})], + ["skill metadata", "skill", completed({ id: "tigerstyle" }, { name: "effect" })], + ["skill input", "skill", completed({ id: "tigerstyle" })], + ["skill none", "skill", running({})], + ["invalid", "invalid", completed({ tool: "nope" }, {}, text("Invalid tool nope"))], + ["unknown tool", "mcp_search", completed({ query: "x", limit: 5, nested: { a: [1, 2] } })], + ["unknown tool empty", "mcp_search", running({})], + ["unknown tool streaming", "mcp_search", streaming("{")], + ["no directory", "webfetch", completed({ url: "https://a.b" }), "none"], +] + +const parts = cases.map(([label, name, state, dir]) => { + const part = canonicalToolPart(name, state as State) + const where = dir === "none" ? undefined : directory + return { label, part, directory: where, expected: toolInlineInfo(part, where) } +}) + +const content = [ + ["shell", [...text("out\n"), ...text("Command exited with code 0.")]], + ["bash", [{ type: "image" }, ...text("")]], + ["grep", [...text("a"), ...text(""), { type: "file" }, ...text("b")]], + ["read", text('{"type":"text-page","content":"page"}')], + ["read", text('{"encoding":"utf8","content":"utf"}')], + ["read", text('{"entries":["a",{"path":"b"},{"x":1},3]}')], + ["read", text("{not json")], + ["read", text("plain")], +] as const + +const helpers = { + toolOutputText: content.map(([name, items]) => ({ name, content: items, expected: toolOutputText(name, items) })), + readDisplayText: ['{"content":"x"}', '{"type":"text-page","content":"y"}', "[]", "{}", '{"entries":[]}'].map( + (input) => ({ input, expected: readDisplayText(input) ?? null }), + ), + toolPath: [ + ["src/a.ts", "/work/project", false], + ["/work/project/src/a.ts", "/work/project", false], + ["/work/project", "/work/project", false], + ["../shared/x", "/work/project", false], + ["..cache/x", "/work/project", false], + ["/work/./project/../other//x", "/work/project", false], + ["C:\\Users\\x", "/work/project", false], + ["\\\\server\\share", "/work/project", false], + ["/home/user/notes.md", "/work/project", true], + ["/home/user", "/work/project", true], + ["/home/username/x", "/work/project", true], + ["", "/work/project", false], + ].map(([input, dir, home]) => ({ + input, + directory: dir, + home: home ? "/home/user" : null, + // `toolPath` with a fixed home instead of `os.homedir()`, so the fixture is the same on every machine. + expected: formatPath(input as string, { + base: dir as string, + home: home ? "/home/user" : undefined, + forwardSlashes: true, + }), + })), + primitiveInputSummary: [ + [{ b: 1, a: "x y", c: true, d: null, e: [1], f: { g: 1 }, h: 1.5 }, []], + [{ path: "a", offset: 1 }, ["path"]], + [{}, []], + ].map(([input, omit]) => ({ + input, + omit, + expected: primitiveInputSummary(input as Record<string, unknown>, omit as string[]), + })), + executeCalls: [ + [ + { tool: "read", status: "completed", input: { path: "a b\n c" } }, + { tool: "x", status: "weird" }, + "bad", + { tool: "glob", status: "running" }, + ], + "not an array", + ].map((input) => ({ input, expected: executeCalls(input).map(executeCallSummary) })), + webSearchProviderLabel: ["exa", "opencode", "", null, 3, "ñandu"].map((provider) => ({ + provider, + expected: webSearchProviderLabel(provider), + })), +} + +await Bun.write(output, records({ parts, helpers }, ["parts[]", "helpers.*[]"])) +console.log(`U.5: wrote ${parts.length} parts to ${output}`) diff --git a/packages/cli-rs/parity/oracle/U.6-motion.ts b/packages/cli-rs/parity/oracle/U.6-motion.ts new file mode 100644 index 000000000000..a36132b30488 --- /dev/null +++ b/packages/cli-rs/parity/oracle/U.6-motion.ts @@ -0,0 +1,51 @@ +// P-ORACLE for U.6: the TUI's pure motion functions over fixed inputs. Writes parity/fixtures/U.6/functions.json; +// crates/ui/tests/all/motion_oracle.rs evaluates the Rust ports on the same inputs and compares. +// +// - `oneCellFrame` of every work spinner, the seed launch, and the mono spinner at fixed instants, including the +// seed's intro and the paced slowdown between 30 s and 60 s. +// - `octantGlyph` for every mask. +// - `createFrames` for the default (diamond) scanner and the prompt's block scanner. +import { octantGlyph } from "../../../tui/src/ui/subcell.ts" +import { + oneCellFrame, + SEED_LAUNCH, + SEED_MONO, + WORK_SPINNERS, + type OneCellMotion, +} from "../../../tui/src/ui/one-cell-motion.ts" +import { createFrames } from "../../../tui/src/ui/spinner.ts" + +const output = new URL("../fixtures/U.6/functions.json", import.meta.url).pathname +const instants = [ + ...Array.from({ length: 400 }, (_, index) => index * 13), + ...Array.from({ length: 140 }, (_, index) => 28_000 + index * 250), + ...[0.5, 39.999, 40, 3199.9, 3200, 1e6], +] + +const motions: [string, OneCellMotion][] = [ + ...Object.entries(WORK_SPINNERS), + ["seed-launch", SEED_LAUNCH], + ["seed-mono", SEED_MONO], +] + +const fixture = { + instants, + motions: Object.fromEntries( + motions.map(([name, motion]) => [ + name, + instants.map((instant) => { + const frame = oneCellFrame(motion, instant) + // As a string: serde_json does not always round decimal floats correctly; Rust parses this exactly. + return [frame.glyph, String(frame.level), frame.complete] + }), + ]), + ), + octants: Array.from({ length: 256 }, (_, mask) => octantGlyph(mask)), + scanner: { + diamonds: createFrames({ color: "#fab283" }), + blocks: createFrames({ color: "#fab283", style: "blocks", inactiveFactor: 0.6, minAlpha: 0.3 }), + }, +} + +await Bun.write(output, JSON.stringify(fixture) + "\n") +console.log(`oracle: U.6 ${motions.length} motions x ${instants.length} instants`) diff --git a/packages/cli-rs/parity/plugins/.luaurc b/packages/cli-rs/parity/plugins/.luaurc new file mode 100644 index 000000000000..747373a8a9b3 --- /dev/null +++ b/packages/cli-rs/parity/plugins/.luaurc @@ -0,0 +1,6 @@ +{ + "languageMode": "strict", + "aliases": { + "opencode": "../../crates/plugin/src/luau/opencode" + } +} diff --git a/packages/cli-rs/parity/plugins/app/tui.tsx b/packages/cli-rs/parity/plugins/app/tui.tsx new file mode 100644 index 000000000000..f07dd51dc114 --- /dev/null +++ b/packages/cli-rs/parity/plugins/app/tui.tsx @@ -0,0 +1,18 @@ +// The P.1 `app` test plugin, TypeScript side: one line appended to the `app` slot, under the routes. +// parity/scenarios/P.1/app-home.app.ts and app-session.app.ts load this directory through the cli.json `plugins` +// entry; the Rust TUI skips that entry and registers its Rust twin (`app_plugin` in crates/tui/tests/all/app.rs). +import type { Context } from "../../../../plugin/src/tui/plugin" + +export default { + id: "parity.app", + setup(context: Context) { + context.ui.slot({ + append: "app", + render: () => ( + <box paddingLeft={2}> + <text fg={context.theme.text.muted}>app plugin: app</text> + </box> + ), + }) + }, +} diff --git a/packages/cli-rs/parity/plugins/fence-margin/tui.tsx b/packages/cli-rs/parity/plugins/fence-margin/tui.tsx new file mode 100644 index 000000000000..f6763f309b1e --- /dev/null +++ b/packages/cli-rs/parity/plugins/fence-margin/tui.tsx @@ -0,0 +1,16 @@ +// The fence-margin test plugin, TypeScript side: a code-block renderer for `parity` fences that draws `fence: <code>` +// and sets no margin of its own, as a plugin that does not know Core's top-level Markdown keeps none for it. +// parity/scenarios/P.2/plugin-fence-margin.app.ts loads this directory through the cli.json `plugins` entry; the +// Rust TUI skips that entry and registers its Rust twin (`fence_margin_plugin` in crates/tui/tests/all/app.rs). +import { TextRenderable } from "@opentui/core" +import type { Context } from "../../../../plugin/src/tui/plugin" + +export default { + id: "parity.fence-margin", + setup(context: Context) { + context.markdown.registerCodeBlockRenderer( + "parity", + (token) => new TextRenderable(context.renderer, { content: `fence: ${token.text}` }), + ) + }, +} diff --git a/packages/cli-rs/parity/plugins/fence/tui.tsx b/packages/cli-rs/parity/plugins/fence/tui.tsx new file mode 100644 index 000000000000..a37f095cbc08 --- /dev/null +++ b/packages/cli-rs/parity/plugins/fence/tui.tsx @@ -0,0 +1,20 @@ +// The Pr `fence` test plugin, TypeScript side: a Markdown code-block renderer for `parity` fences that draws each +// line of the fence after a label. parity/scenarios/Pr/fence.app.ts loads this directory through the cli.json +// `plugins` entry; the Rust TUI skips that entry and registers its Rust twin, a renderer claim of the fence +// (`fence_plugin` in crates/tui/tests/all/app.rs). +import { TextRenderable } from "@opentui/core" +import type { Context } from "../../../../plugin/src/tui/plugin" + +export default { + id: "parity.fence", + setup(context: Context) { + context.markdown.registerCodeBlockRenderer("parity", (token) => { + const lines = token.text.split("\n").filter((line) => line.length > 0) + return new TextRenderable(context.renderer, { + content: lines.map((line) => `fence plugin: ${line}`).join("\n"), + fg: context.theme.text.muted, + height: lines.length, + }) + }) + }, +} diff --git a/packages/cli-rs/parity/plugins/life/init.luau b/packages/cli-rs/parity/plugins/life/init.luau new file mode 100644 index 000000000000..c5ae6866a1ab --- /dev/null +++ b/packages/cli-rs/parity/plugins/life/init.luau @@ -0,0 +1,65 @@ +--!strict +-- The plugin of the life machine (parity/machines/plugins.json), opencode-native side: `tui.tsx` in Luau, checked +-- against the file, not against `tui.tsx`. A line in home.footer shows A or B, its build, then the pending keys while a +-- sequence is pending. Life flip flips the line, Life throw throws, Life stall spins for 150 ms of CPU time (past the +-- Luau budget), Life arm makes the next setup throw, Life dialog opens a prompt, Life confirm asks whether to flip the +-- line, and Life alert flips it once it closes. With the option fail its setup throws, for the views machine. +-- crates/tui/tests/all/plugin_machines.rs copies this directory and rewrites `BUILD` to reload it. +local plugin = require("@opencode/plugin") + +local BUILD = 1 + +return plugin.define(function(setup) + -- The views machine: the setup fails as the plugin first loads, so its row is failed with an error. + if setup.options and setup.options.fail then + error("life setup fails as it loads") + end + -- Storage outlives an activation, so an armed setup throws on the next enable, once. + setup:storageKey("armed") + local armed = setup.host:storageGet("armed") + if armed and armed.on then + setup.host:storageSet("armed", { on = false }) + error("life setup armed to throw") + end + local side = "A" + local function flip() + side = if side == "A" then "B" else "A" + end + local function command(name: string, title: string): plugin.CommandSpec + return { name = name, title = title, palette = true } + end + setup:command(command("life.flip", "Life flip"), function() + flip() + end) + setup:command(command("life.throw", "Life throw"), function() + error("life command throws") + end) + setup:command(command("life.stall", "Life stall"), function() + local start = os.clock() + while os.clock() - start < 0.15 do + end + end) + setup:command(command("life.arm", "Life arm"), function(host) + host:storageSet("armed", { on = true }) + end) + setup:command(command("life.dialog", "Life dialog"), function(host) + host:prompt({ title = "Life prompt" }) + end) + setup:command(command("life.confirm", "Life confirm"), function(host) + if host:confirm({ title = "Life asks", message = "Flip the line?" }) then + flip() + end + end) + setup:command(command("life.alert", "Life alert"), function(host) + host:alert({ title = "Life says", message = "The line flips as this closes." }) + flip() + end) + setup:slot({ path = "home.footer" }, function(read) + local pending = {} + for _, part in read:keymapPending() do + table.insert(pending, part.key) + end + local keys = if #pending > 0 then " keys " .. table.concat(pending, " ") else "" + return plugin.show(plugin.text(`life plugin: {side} build {BUILD}{keys}`)) + end) +end) diff --git a/packages/cli-rs/parity/plugins/life/plugin.toml b/packages/cli-rs/parity/plugins/life/plugin.toml new file mode 100644 index 000000000000..81db4a68ff8e --- /dev/null +++ b/packages/cli-rs/parity/plugins/life/plugin.toml @@ -0,0 +1,6 @@ +# The life machine's plugin for opencode-native (`init.luau`), beside its TypeScript side (`tui.tsx`). +id = "parity.life" +name = "Life" +version = "0.1.0" +contract = "2.0" +description = "The plugin of the life, project, manager and views machines of parity/machines/plugins.json" diff --git a/packages/cli-rs/parity/plugins/life/tui.tsx b/packages/cli-rs/parity/plugins/life/tui.tsx new file mode 100644 index 000000000000..61c9e0b89d15 --- /dev/null +++ b/packages/cli-rs/parity/plugins/life/tui.tsx @@ -0,0 +1,106 @@ +// The plugin of the life machine (parity/machines/plugins.json), TypeScript side: a line in home.footer that shows A +// or B, then the pending keys while a sequence is pending, and seven palette commands. Life flip flips the line, Life throw throws, Life stall takes 150 ms, Life arm makes the next setup throw, +// Life dialog opens a prompt, Life confirm asks whether to flip the line, and Life alert flips it once it closes. With +// the option fail its setup throws, for the views machine. The TS reader copies this file and rewrites `build` to reload it. Its opencode-native twin is +// `init.luau` beside it; each is checked against the file, not against the other. +import type { Context } from "../../../../plugin/src/tui/plugin" +import { createSignal } from "solid-js" + +const build = 1 + +// Module state outlives an activation, so an armed setup throws on the next enable. It is kept by the `run` option, +// as one process can run several apps. +const armed = new Set<unknown>() + +export default { + id: "parity.life", + setup(context: Context) { + const run = context.options?.run + // The views machine: the setup fails as the plugin first loads, so its row is failed with an error. + if (context.options?.fail) throw new Error("life setup fails as it loads") + if (armed.delete(run)) throw new Error("life setup armed to throw") + const [side, setSide] = createSignal("A") + const flip = () => setSide(side() === "A" ? "B" : "A") + // The pending key sequence (Rust ABI 1.6 `keymap_pending`), after the line while one is pending. + const keys = () => { + const pending = context.keymap + .pending() + .map((part) => part.key) + .join(" ") + return pending ? ` keys ${pending}` : "" + } + context.keymap.layer(() => ({ + mode: "global", + commands: [ + { + id: "life.flip", + title: "Life flip", + palette: true, + run: flip, + }, + { + id: "life.throw", + title: "Life throw", + palette: true, + run: () => { + throw new Error("life command throws") + }, + }, + { + id: "life.stall", + title: "Life stall", + palette: true, + run: () => { + const end = performance.now() + 150 + while (performance.now() < end) {} + }, + }, + { + id: "life.arm", + title: "Life arm", + palette: true, + run: () => { + armed.add(run) + }, + }, + { + id: "life.dialog", + title: "Life dialog", + palette: true, + run: () => { + void context.ui.dialog.prompt({ title: "Life prompt" }) + }, + }, + { + id: "life.confirm", + title: "Life confirm", + palette: true, + run: () => { + void context.ui.dialog.confirm({ title: "Life asks", message: "Flip the line?" }).then((yes) => { + if (yes) flip() + }) + }, + }, + { + id: "life.alert", + title: "Life alert", + palette: true, + run: () => { + void context.ui.dialog.alert({ title: "Life says", message: "The line flips as this closes." }).then(flip) + }, + }, + ], + })) + context.ui.slot({ + append: "home.footer", + render: () => ( + <box paddingLeft={2}> + <text fg={context.theme.text.muted}> + life plugin: {side()} build {build} + {keys()} + </text> + </box> + ), + }) + }, +} diff --git a/packages/cli-rs/parity/plugins/luau-hello/tui.tsx b/packages/cli-rs/parity/plugins/luau-hello/tui.tsx new file mode 100644 index 000000000000..56058e7f677d --- /dev/null +++ b/packages/cli-rs/parity/plugins/luau-hello/tui.tsx @@ -0,0 +1,27 @@ +// The Luau quick start's TypeScript twin (spike `luau-spike`): `/hello` shows a toast, and a muted line closes the home +// footer. parity/scenarios/P.luau/hello.pty.ts installs this file beside the Luau plugin +// (`crates/plugin/examples/luau/hello`) in one `plugins` directory: TS loads `tui.tsx`, Rust with +// `OPENCODE_PLUGIN_LUAU=1` loads `plugin.toml` and `init.luau`. +import type { Context } from "../../../../plugin/src/tui/plugin" + +export default { + id: "example.luau-hello", + setup(context: Context) { + context.keymap.layer(() => ({ + mode: "global", + commands: [ + { + id: "hello.greet", + title: "Say hello", + palette: true, + slash: { name: "hello" }, + run: () => context.ui.toast.show({ variant: "success", message: "Hello from a plugin" }), + }, + ], + })) + context.ui.slot({ + append: "home.footer", + render: () => <text fg={context.theme.text.muted}>hello</text>, + }) + }, +} diff --git a/packages/cli-rs/parity/plugins/npm/@0xuwui__opencode-session-manager.tgz b/packages/cli-rs/parity/plugins/npm/@0xuwui__opencode-session-manager.tgz new file mode 100644 index 000000000000..5372b5221fc4 Binary files /dev/null and b/packages/cli-rs/parity/plugins/npm/@0xuwui__opencode-session-manager.tgz differ diff --git a/packages/cli-rs/parity/plugins/npm/@bybrawe__opencode-queue-manager.tgz b/packages/cli-rs/parity/plugins/npm/@bybrawe__opencode-queue-manager.tgz new file mode 100644 index 000000000000..b91a443bdcb0 Binary files /dev/null and b/packages/cli-rs/parity/plugins/npm/@bybrawe__opencode-queue-manager.tgz differ diff --git a/packages/cli-rs/parity/plugins/npm/@cleocode__goal.tgz b/packages/cli-rs/parity/plugins/npm/@cleocode__goal.tgz new file mode 100644 index 000000000000..341444904f91 Binary files /dev/null and b/packages/cli-rs/parity/plugins/npm/@cleocode__goal.tgz differ diff --git a/packages/cli-rs/parity/plugins/npm/@jasonencode__opencode-context.tgz b/packages/cli-rs/parity/plugins/npm/@jasonencode__opencode-context.tgz new file mode 100644 index 000000000000..6447293883e2 Binary files /dev/null and b/packages/cli-rs/parity/plugins/npm/@jasonencode__opencode-context.tgz differ diff --git a/packages/cli-rs/parity/plugins/npm/@joe-broadhead__opencode-linear.tgz b/packages/cli-rs/parity/plugins/npm/@joe-broadhead__opencode-linear.tgz new file mode 100644 index 000000000000..4f064af23076 Binary files /dev/null and b/packages/cli-rs/parity/plugins/npm/@joe-broadhead__opencode-linear.tgz differ diff --git a/packages/cli-rs/parity/plugins/npm/@joe-broadhead__opencode-tavily.tgz b/packages/cli-rs/parity/plugins/npm/@joe-broadhead__opencode-tavily.tgz new file mode 100644 index 000000000000..134bb87023fd Binary files /dev/null and b/packages/cli-rs/parity/plugins/npm/@joe-broadhead__opencode-tavily.tgz differ diff --git a/packages/cli-rs/parity/plugins/npm/@juliuskb__opencode-voice.tgz b/packages/cli-rs/parity/plugins/npm/@juliuskb__opencode-voice.tgz new file mode 100644 index 000000000000..e12812669437 Binary files /dev/null and b/packages/cli-rs/parity/plugins/npm/@juliuskb__opencode-voice.tgz differ diff --git a/packages/cli-rs/parity/plugins/npm/@khaosoigai__oc-context-grid.tgz b/packages/cli-rs/parity/plugins/npm/@khaosoigai__oc-context-grid.tgz new file mode 100644 index 000000000000..7285ba2747ca Binary files /dev/null and b/packages/cli-rs/parity/plugins/npm/@khaosoigai__oc-context-grid.tgz differ diff --git a/packages/cli-rs/parity/plugins/npm/@kud__opencode-shell-highlighting.tgz b/packages/cli-rs/parity/plugins/npm/@kud__opencode-shell-highlighting.tgz new file mode 100644 index 000000000000..9f63e4722074 Binary files /dev/null and b/packages/cli-rs/parity/plugins/npm/@kud__opencode-shell-highlighting.tgz differ diff --git a/packages/cli-rs/parity/plugins/npm/@max10240__opencode-plugin-sensitive-encrypt.tgz b/packages/cli-rs/parity/plugins/npm/@max10240__opencode-plugin-sensitive-encrypt.tgz new file mode 100644 index 000000000000..3970c1249adb Binary files /dev/null and b/packages/cli-rs/parity/plugins/npm/@max10240__opencode-plugin-sensitive-encrypt.tgz differ diff --git a/packages/cli-rs/parity/plugins/npm/@mynameistito__opencode-force-input.tgz b/packages/cli-rs/parity/plugins/npm/@mynameistito__opencode-force-input.tgz new file mode 100644 index 000000000000..470cbbda3bb2 Binary files /dev/null and b/packages/cli-rs/parity/plugins/npm/@mynameistito__opencode-force-input.tgz differ diff --git a/packages/cli-rs/parity/plugins/npm/@prevalentware__opencode-goal-plugin.tgz b/packages/cli-rs/parity/plugins/npm/@prevalentware__opencode-goal-plugin.tgz new file mode 100644 index 000000000000..31a2ed6b8cd8 Binary files /dev/null and b/packages/cli-rs/parity/plugins/npm/@prevalentware__opencode-goal-plugin.tgz differ diff --git a/packages/cli-rs/parity/plugins/npm/README.md b/packages/cli-rs/parity/plugins/npm/README.md new file mode 100644 index 000000000000..d27f0c83e422 --- /dev/null +++ b/packages/cli-rs/parity/plugins/npm/README.md @@ -0,0 +1,49 @@ +# Published V2 TUI plugins, as npm ships them (P8) + +The tarballs of the npm packages below, byte for byte as the registry serves them (MIT or 0BSD, each with its license +inside). The P8 scenarios load them unmodified in both clients: TS through its plugin loader, the Rust client on the JS +host through the V2 compatibility layer. Before a scenario runs, each side unpacks the tarball a `plugins` entry +`./out/npm/node_modules/<name>` names into that directory (`parity/out` is ignored), so the package sits under +`node_modules` as an install puts it, and TS compiles it as it compiles an installed package. + +| Tarball | Package | `dist.integrity`, equal to the registry's | +| --- | --- | --- | +| `opencode-subagents-sidebar.tgz` | `opencode-subagents-sidebar@0.1.6` | `sha512-Six0zMfLg3zSwkC5Wrflxj+/KtSv7D/iTfZH8xE1znZ7xvcmj30+oxY0hnfYxMfz8lkveYjiuqQrXT3BClq69A==` | +| `@mynameistito__opencode-force-input.tgz` | `@mynameistito/opencode-force-input@1.1.20` | `sha512-DcFpUaOYtdQzk+xDix+VxP2cFWVoGv7idT0/l6Hguh+LDRVwqGySZLyS2v5Y+E/VlAnvrtjIJEo5Ysy8ie1Pow==` | +| `opencode-session-usage.tgz` | `opencode-session-usage@0.1.8` | `sha512-x8nNJJpMaYNSaAIVcLXl+RXItK5MuVVOB8t99nsYuZXAsAw4GtwufQLzoxDRaedVIIHYWw54Bxdrg+pEbmiTow==` | +| `opencode-sidebar-prompt.tgz` | `opencode-sidebar-prompt@0.1.6` | `sha512-QgSndS0jbpI7ZC9qf59XqzX5xcaSyA8xTyBwSV2XUJAELRA0tsLlg9ILYSvIimAgmn7PFOVJgWCiHqux98gUiA==` | +| `opencode-model-quick-switch.tgz` | `opencode-model-quick-switch@0.1.0` (field test FT-6) | `sha512-AHOLNV5oO/FozOWgUOnu7GaZhzFUn69WUSNhQ+NtLbZV+z0psbJ5MVhclAYA1Cr4YLDag/1hgPRSO6glIxIdqg==` | +| `opencode-sidebar-tokens.tgz` | `opencode-sidebar-tokens@0.1.3` (field test FT-7) | `sha512-tx/FBEbZJJ1mwdYMg3rKvUdthtkETLHYqeg26cM3f1Z1a0yzlM1kCG2ymp1GbjevLrNUWqUEparQJFG6CfeLzQ==` | +| `opencode-plugin-context.tgz` | `opencode-plugin-context@2.0.2` (catalog CT-9) | `sha512-6rDmEGNqO+7ozS0lYoa1Hw6srd3hFLy8IXexd8xugmvsTw43wnUB5C3tj/30FjlCCfsUpp+R3HdgfvSelxyhSA==` | +| `opencode-file-browser.tgz` | `opencode-file-browser@1.0.4` (catalog CT-11) | `sha512-gnpKQHYyjlqEDZcTtH8V4IiuhNSML9IOp9AyJLFDMxqr5R3A8gc3ZQhWq8TR2ewwox4K7iU5gOshfXYx5EBB+g==` | +| `mighty-reviewer.tgz` | `mighty-reviewer@0.14.0` (catalog CT-18) | `sha512-2v8eUKRogeXXPyJ6d5G7APEFKDpl25JJCZiHgSqNd8MlITS4T1jJ1WrpaZxbfrqXDzOdrzk+Tit7dUMpPQsYBw==` | +| `@kud__opencode-shell-highlighting.tgz` | `@kud/opencode-shell-highlighting@0.1.0` (catalog CT-16) | `sha512-K87SETtIvua6nXSromnNYFPrSSX5xopEwZ426cg0MjkSqQJ7zccnNMwkkgq1b5oW8Tq7oL4x0mKbW++ZFDgifQ==` | +| `opencode-rundev.tgz` | `opencode-rundev@0.1.5` (catalog CT-19) | `sha512-fHiuKD7BhD8CC6Xh1sZLjTxPJYDIJSDHFiIRpPPn9576m+FngIt+fx4OWP0dHpL889+ONwIRccJuapIoXRpkxw==` | +| `@joe-broadhead__opencode-tavily.tgz` | `@joe-broadhead/opencode-tavily@0.0.7` (catalog CT-22) | `sha512-+KmDCMP9j085+FRX7gYbGIRe474M2hDU9YUT/8E2roHg2yELugsMNR1Ta/1rc2eeJ9yn+vcheJnnq7sPntj8Xw==` | +| `@jasonencode__opencode-context.tgz` | `@jasonencode/opencode-context@1.0.0` (catalog CT-24) | `sha512-NJ4x4ca7HxncU3OmagqVm0O9okkC2eykd/6IkYHnBEdx7hgZIcFThWg1z1S3OEWBgVtba//IRqoaum9QAFkwHw==` | +| `opencode-skills-tui.tgz` | `opencode-skills-tui@1.2.3` (F16 data collections) | `sha512-RQ2Zt0fc8Ipsi0pQ643TJLxQpiakZ+PP1tMIZyGvakfPBxuTFz9StLn+C1eqjjgGfRfeQWKwJ+UpbGJLDncIeQ==` | +| `@juliuskb__opencode-voice.tgz` | `@juliuskb/opencode-voice@0.0.9` (catalog CT-26) | `sha512-1d6/b2/mJ/ZndXqUWy2I/xDCGAEZUsoXn7jiyReFPT33esRGGVNtwG7XySZiwgeTvB2cCHGNJokB7H5Okli7dQ==` | +| `opencode-tui-context.tgz` | `opencode-tui-context@2.1.1` (catalog CT-28) | `sha512-Tmxdrsq+k0us0dN+YlumpLyf/7W4alm2ffnRGC8DCKMO9XR8Zzww49ofRr0B++qb2QGhd0w8RnLJw8+l3JwBmg==` | +| `opencode-tokscope.tgz` | `opencode-tokscope@0.4.0` (contract 2.x, addition 1) | `sha512-smvfguaJ4N6uAuiwVtOYfGjZOkJL/Vm4D7bzAUg9abgWUVjrxeeiBGvT5/V0kAsmOmA8XhfND118JnLlvPL68w==` | +| `opencode-usage-report.tgz` | `opencode-usage-report@0.6.4` (catalog CT-31) | `sha512-FYQFABgV0eF6t9aYMSPVruPIdSDDdKxS8PPBhq338N8Yp5dCeaUfkeVfjWpsVOjiKM1BnOEeiVGw5u1sORvIEA==` | +| `@cleocode__goal.tgz` | `@cleocode/goal@0.13.0` (catalog CT-14) | `sha512-6IojHCDI9N+iWncfvFXT8BXUL+M6zWIzgh55Kkxgu2v1N0GSMtiadUS3leF4pBC43gFecdcPoNL8ZmVIqjeGQQ==` | +| `opencode-navigator.tgz` | `opencode-navigator@0.27.7` (catalog CT-21) | `sha512-Rt5p1v24ssRdG4u2JBseomSmxcQ2c4YBfRwwebsWLNThCQNZogojd3oo8W7ZvTT/es9DeT9JLD0sLX23IVtREA==` | +| `@joe-broadhead__opencode-linear.tgz` | `@joe-broadhead/opencode-linear@0.0.9` (catalog CT-8) | `sha512-JKi7qnHOXusxcPFb8jcrsKj/6zVMsWSLv0P3PWVTFOb+aGf3yaHUwR+8RL7wny8Unfbo6HzdqojEbT2L44K10g==` | +| `opencode-command-hotkeys.tgz` | `opencode-command-hotkeys@0.1.1` (ports-trio) | `sha512-n5BMlNWD3/8bNtP2HeQjq8uyQX6ypROO+Vh3xUqbSl5wkVobHWQIriAp9WQkL3JMxwMHWvOJi6dMfCGNq/YXUA==` | +| `@khaosoigai__oc-context-grid.tgz` | `@khaosoigai/oc-context-grid@0.3.2` (ports-trio) | `sha512-gKUXa1JTMIYjiY/1tHLv+HIEMa2jqOLcn5zS45CXgK6PooDjjvDRxx2IkSMbY8da8spj4NYRAFYOwFmw7nrutw==` | +| `@0xuwui__opencode-session-manager.tgz` | `@0xuwui/opencode-session-manager@0.1.2` (ports-trio) | `sha512-04lz0UKrAtU7eA4WrjZAhQD3qhDH0QbJzHDTGhkCTQvOcs91U4niovOeTxkMf2RFjBeo2mdDJbm8vQi5THiiZg==` | +| `@bybrawe__opencode-queue-manager.tgz` | `@bybrawe/opencode-queue-manager@0.3.5` (ports-trio) | `sha512-rrRhrULk2R35EU4hpklzLfXxC0TA6SPPWGVfmDAcftjVF2TIsqpEswgEaW051+Z3X0n+9zzUYWsATbT6Lijj4w==` | +| `@prevalentware__opencode-goal-plugin.tgz` | `@prevalentware/opencode-goal-plugin@0.1.98` (ports-trio) | `sha512-XjpdkZYOo4RHYgLOC6OW6mod4j5BtO6I0YATgpwDJATx+p9+Dvj/Mam6/DS/X1SjNPYt8Sk5/9lQG/EFCHmFgQ==` | +| `opencode-session-time.tgz` | `opencode-session-time@0.4.0` (contract 2.x, addition 4) | `sha512-3dqk6Ok8TkvyMkN1qh8MMsw47v+XsNv20cdbaMtzc1OMZHKi5sMHp5NQuAGRviKU5pULEKz3iqCYXYX5U8bP2w==` | +| `opencode-good-fences.tgz` | `opencode-good-fences@0.1.0` (contract 2.x, addition 3) | `sha512-JgzWS0Fsx3WeFvQQC8v7ohjvkgB0T2U35yx96HoihfECEozv79ROjPZdhSWzWC5qaqoplXk5/lI1/kIsLQDvZA==` | +| `@max10240__opencode-plugin-sensitive-encrypt.tgz` | `@max10240/opencode-plugin-sensitive-encrypt@1.0.31` (catalog CT-37) | `sha512-mPYwVvaZ7aBpzjkcr4BZ9KNCcLJr6gkB267UOUqtDZNaPSKtjLQKmC9UGfp9Lvq8/kGebcmolE+xow1SbF8WWA==` | + +`integrity.json` pins the same digests; TS's recorder (`parity/app/scenarios.test.tsx`) and the Rust rows +(`crates/tui/tests/all/{app,plugin_published}.rs`) refuse a tarball whose SHA-512 is not its pin before they unpack it. + +A scope's `/` is `__` in the file name. Check one against the registry: + +```sh +openssl dgst -sha512 -binary opencode-session-usage.tgz | base64 -w0 +curl -s https://registry.npmjs.org/opencode-session-usage/0.1.8 | jq -r .dist.integrity +``` diff --git a/packages/cli-rs/parity/plugins/npm/integrity.json b/packages/cli-rs/parity/plugins/npm/integrity.json new file mode 100644 index 000000000000..ab18a10a855c --- /dev/null +++ b/packages/cli-rs/parity/plugins/npm/integrity.json @@ -0,0 +1,31 @@ +{ + "@mynameistito__opencode-force-input.tgz": "sha512-DcFpUaOYtdQzk+xDix+VxP2cFWVoGv7idT0/l6Hguh+LDRVwqGySZLyS2v5Y+E/VlAnvrtjIJEo5Ysy8ie1Pow==", + "opencode-model-quick-switch.tgz": "sha512-AHOLNV5oO/FozOWgUOnu7GaZhzFUn69WUSNhQ+NtLbZV+z0psbJ5MVhclAYA1Cr4YLDag/1hgPRSO6glIxIdqg==", + "opencode-session-usage.tgz": "sha512-x8nNJJpMaYNSaAIVcLXl+RXItK5MuVVOB8t99nsYuZXAsAw4GtwufQLzoxDRaedVIIHYWw54Bxdrg+pEbmiTow==", + "opencode-sidebar-tokens.tgz": "sha512-tx/FBEbZJJ1mwdYMg3rKvUdthtkETLHYqeg26cM3f1Z1a0yzlM1kCG2ymp1GbjevLrNUWqUEparQJFG6CfeLzQ==", + "opencode-sidebar-prompt.tgz": "sha512-QgSndS0jbpI7ZC9qf59XqzX5xcaSyA8xTyBwSV2XUJAELRA0tsLlg9ILYSvIimAgmn7PFOVJgWCiHqux98gUiA==", + "opencode-subagents-sidebar.tgz": "sha512-Six0zMfLg3zSwkC5Wrflxj+/KtSv7D/iTfZH8xE1znZ7xvcmj30+oxY0hnfYxMfz8lkveYjiuqQrXT3BClq69A==", + "opencode-plugin-context.tgz": "sha512-6rDmEGNqO+7ozS0lYoa1Hw6srd3hFLy8IXexd8xugmvsTw43wnUB5C3tj/30FjlCCfsUpp+R3HdgfvSelxyhSA==", + "opencode-file-browser.tgz": "sha512-gnpKQHYyjlqEDZcTtH8V4IiuhNSML9IOp9AyJLFDMxqr5R3A8gc3ZQhWq8TR2ewwox4K7iU5gOshfXYx5EBB+g==", + "mighty-reviewer.tgz": "sha512-2v8eUKRogeXXPyJ6d5G7APEFKDpl25JJCZiHgSqNd8MlITS4T1jJ1WrpaZxbfrqXDzOdrzk+Tit7dUMpPQsYBw==", + "@kud__opencode-shell-highlighting.tgz": "sha512-K87SETtIvua6nXSromnNYFPrSSX5xopEwZ426cg0MjkSqQJ7zccnNMwkkgq1b5oW8Tq7oL4x0mKbW++ZFDgifQ==", + "opencode-rundev.tgz": "sha512-fHiuKD7BhD8CC6Xh1sZLjTxPJYDIJSDHFiIRpPPn9576m+FngIt+fx4OWP0dHpL889+ONwIRccJuapIoXRpkxw==", + "@joe-broadhead__opencode-linear.tgz": "sha512-JKi7qnHOXusxcPFb8jcrsKj/6zVMsWSLv0P3PWVTFOb+aGf3yaHUwR+8RL7wny8Unfbo6HzdqojEbT2L44K10g==", + "opencode-navigator.tgz": "sha512-Rt5p1v24ssRdG4u2JBseomSmxcQ2c4YBfRwwebsWLNThCQNZogojd3oo8W7ZvTT/es9DeT9JLD0sLX23IVtREA==", + "@joe-broadhead__opencode-tavily.tgz": "sha512-+KmDCMP9j085+FRX7gYbGIRe474M2hDU9YUT/8E2roHg2yELugsMNR1Ta/1rc2eeJ9yn+vcheJnnq7sPntj8Xw==", + "@jasonencode__opencode-context.tgz": "sha512-NJ4x4ca7HxncU3OmagqVm0O9okkC2eykd/6IkYHnBEdx7hgZIcFThWg1z1S3OEWBgVtba//IRqoaum9QAFkwHw==", + "opencode-skills-tui.tgz": "sha512-RQ2Zt0fc8Ipsi0pQ643TJLxQpiakZ+PP1tMIZyGvakfPBxuTFz9StLn+C1eqjjgGfRfeQWKwJ+UpbGJLDncIeQ==", + "@juliuskb__opencode-voice.tgz": "sha512-1d6/b2/mJ/ZndXqUWy2I/xDCGAEZUsoXn7jiyReFPT33esRGGVNtwG7XySZiwgeTvB2cCHGNJokB7H5Okli7dQ==", + "opencode-tui-context.tgz": "sha512-Tmxdrsq+k0us0dN+YlumpLyf/7W4alm2ffnRGC8DCKMO9XR8Zzww49ofRr0B++qb2QGhd0w8RnLJw8+l3JwBmg==", + "opencode-tokscope.tgz": "sha512-smvfguaJ4N6uAuiwVtOYfGjZOkJL/Vm4D7bzAUg9abgWUVjrxeeiBGvT5/V0kAsmOmA8XhfND118JnLlvPL68w==", + "opencode-usage-report.tgz": "sha512-FYQFABgV0eF6t9aYMSPVruPIdSDDdKxS8PPBhq338N8Yp5dCeaUfkeVfjWpsVOjiKM1BnOEeiVGw5u1sORvIEA==", + "@cleocode__goal.tgz": "sha512-6IojHCDI9N+iWncfvFXT8BXUL+M6zWIzgh55Kkxgu2v1N0GSMtiadUS3leF4pBC43gFecdcPoNL8ZmVIqjeGQQ==", + "opencode-command-hotkeys.tgz": "sha512-n5BMlNWD3/8bNtP2HeQjq8uyQX6ypROO+Vh3xUqbSl5wkVobHWQIriAp9WQkL3JMxwMHWvOJi6dMfCGNq/YXUA==", + "@khaosoigai__oc-context-grid.tgz": "sha512-gKUXa1JTMIYjiY/1tHLv+HIEMa2jqOLcn5zS45CXgK6PooDjjvDRxx2IkSMbY8da8spj4NYRAFYOwFmw7nrutw==", + "@0xuwui__opencode-session-manager.tgz": "sha512-04lz0UKrAtU7eA4WrjZAhQD3qhDH0QbJzHDTGhkCTQvOcs91U4niovOeTxkMf2RFjBeo2mdDJbm8vQi5THiiZg==", + "@bybrawe__opencode-queue-manager.tgz": "sha512-rrRhrULk2R35EU4hpklzLfXxC0TA6SPPWGVfmDAcftjVF2TIsqpEswgEaW051+Z3X0n+9zzUYWsATbT6Lijj4w==", + "@prevalentware__opencode-goal-plugin.tgz": "sha512-XjpdkZYOo4RHYgLOC6OW6mod4j5BtO6I0YATgpwDJATx+p9+Dvj/Mam6/DS/X1SjNPYt8Sk5/9lQG/EFCHmFgQ==", + "opencode-session-time.tgz": "sha512-3dqk6Ok8TkvyMkN1qh8MMsw47v+XsNv20cdbaMtzc1OMZHKi5sMHp5NQuAGRviKU5pULEKz3iqCYXYX5U8bP2w==", + "opencode-good-fences.tgz": "sha512-JgzWS0Fsx3WeFvQQC8v7ohjvkgB0T2U35yx96HoihfECEozv79ROjPZdhSWzWC5qaqoplXk5/lI1/kIsLQDvZA==", + "@max10240__opencode-plugin-sensitive-encrypt.tgz": "sha512-mPYwVvaZ7aBpzjkcr4BZ9KNCcLJr6gkB267UOUqtDZNaPSKtjLQKmC9UGfp9Lvq8/kGebcmolE+xow1SbF8WWA==" +} diff --git a/packages/cli-rs/parity/plugins/npm/mighty-reviewer.tgz b/packages/cli-rs/parity/plugins/npm/mighty-reviewer.tgz new file mode 100644 index 000000000000..5c5cad44a95f Binary files /dev/null and b/packages/cli-rs/parity/plugins/npm/mighty-reviewer.tgz differ diff --git a/packages/cli-rs/parity/plugins/npm/opencode-command-hotkeys.tgz b/packages/cli-rs/parity/plugins/npm/opencode-command-hotkeys.tgz new file mode 100644 index 000000000000..8c198efcb811 Binary files /dev/null and b/packages/cli-rs/parity/plugins/npm/opencode-command-hotkeys.tgz differ diff --git a/packages/cli-rs/parity/plugins/npm/opencode-file-browser.tgz b/packages/cli-rs/parity/plugins/npm/opencode-file-browser.tgz new file mode 100644 index 000000000000..2f48f0bbd32a Binary files /dev/null and b/packages/cli-rs/parity/plugins/npm/opencode-file-browser.tgz differ diff --git a/packages/cli-rs/parity/plugins/npm/opencode-good-fences.tgz b/packages/cli-rs/parity/plugins/npm/opencode-good-fences.tgz new file mode 100644 index 000000000000..291dd543d957 Binary files /dev/null and b/packages/cli-rs/parity/plugins/npm/opencode-good-fences.tgz differ diff --git a/packages/cli-rs/parity/plugins/npm/opencode-model-quick-switch.tgz b/packages/cli-rs/parity/plugins/npm/opencode-model-quick-switch.tgz new file mode 100644 index 000000000000..58b6e2925072 Binary files /dev/null and b/packages/cli-rs/parity/plugins/npm/opencode-model-quick-switch.tgz differ diff --git a/packages/cli-rs/parity/plugins/npm/opencode-navigator.tgz b/packages/cli-rs/parity/plugins/npm/opencode-navigator.tgz new file mode 100644 index 000000000000..c04de348db75 Binary files /dev/null and b/packages/cli-rs/parity/plugins/npm/opencode-navigator.tgz differ diff --git a/packages/cli-rs/parity/plugins/npm/opencode-plugin-context.tgz b/packages/cli-rs/parity/plugins/npm/opencode-plugin-context.tgz new file mode 100644 index 000000000000..a3df1b8eba84 Binary files /dev/null and b/packages/cli-rs/parity/plugins/npm/opencode-plugin-context.tgz differ diff --git a/packages/cli-rs/parity/plugins/npm/opencode-rundev.tgz b/packages/cli-rs/parity/plugins/npm/opencode-rundev.tgz new file mode 100644 index 000000000000..3fcb443c78ee Binary files /dev/null and b/packages/cli-rs/parity/plugins/npm/opencode-rundev.tgz differ diff --git a/packages/cli-rs/parity/plugins/npm/opencode-session-time.tgz b/packages/cli-rs/parity/plugins/npm/opencode-session-time.tgz new file mode 100644 index 000000000000..aa436a8d40ae Binary files /dev/null and b/packages/cli-rs/parity/plugins/npm/opencode-session-time.tgz differ diff --git a/packages/cli-rs/parity/plugins/npm/opencode-session-usage.tgz b/packages/cli-rs/parity/plugins/npm/opencode-session-usage.tgz new file mode 100644 index 000000000000..a2473d495875 Binary files /dev/null and b/packages/cli-rs/parity/plugins/npm/opencode-session-usage.tgz differ diff --git a/packages/cli-rs/parity/plugins/npm/opencode-sidebar-prompt.tgz b/packages/cli-rs/parity/plugins/npm/opencode-sidebar-prompt.tgz new file mode 100644 index 000000000000..beef883abc7e Binary files /dev/null and b/packages/cli-rs/parity/plugins/npm/opencode-sidebar-prompt.tgz differ diff --git a/packages/cli-rs/parity/plugins/npm/opencode-sidebar-tokens.tgz b/packages/cli-rs/parity/plugins/npm/opencode-sidebar-tokens.tgz new file mode 100644 index 000000000000..9c6308ba256b Binary files /dev/null and b/packages/cli-rs/parity/plugins/npm/opencode-sidebar-tokens.tgz differ diff --git a/packages/cli-rs/parity/plugins/npm/opencode-skills-tui.tgz b/packages/cli-rs/parity/plugins/npm/opencode-skills-tui.tgz new file mode 100644 index 000000000000..858c998ba8f0 Binary files /dev/null and b/packages/cli-rs/parity/plugins/npm/opencode-skills-tui.tgz differ diff --git a/packages/cli-rs/parity/plugins/npm/opencode-subagents-sidebar.tgz b/packages/cli-rs/parity/plugins/npm/opencode-subagents-sidebar.tgz new file mode 100644 index 000000000000..ef5cd8a040b2 Binary files /dev/null and b/packages/cli-rs/parity/plugins/npm/opencode-subagents-sidebar.tgz differ diff --git a/packages/cli-rs/parity/plugins/npm/opencode-tokscope.tgz b/packages/cli-rs/parity/plugins/npm/opencode-tokscope.tgz new file mode 100644 index 000000000000..0a3af7622c09 Binary files /dev/null and b/packages/cli-rs/parity/plugins/npm/opencode-tokscope.tgz differ diff --git a/packages/cli-rs/parity/plugins/npm/opencode-tui-context.tgz b/packages/cli-rs/parity/plugins/npm/opencode-tui-context.tgz new file mode 100644 index 000000000000..0bafd54652e1 Binary files /dev/null and b/packages/cli-rs/parity/plugins/npm/opencode-tui-context.tgz differ diff --git a/packages/cli-rs/parity/plugins/npm/opencode-usage-report.tgz b/packages/cli-rs/parity/plugins/npm/opencode-usage-report.tgz new file mode 100644 index 000000000000..afa8f9ae65ed Binary files /dev/null and b/packages/cli-rs/parity/plugins/npm/opencode-usage-report.tgz differ diff --git a/packages/cli-rs/parity/plugins/other/init.luau b/packages/cli-rs/parity/plugins/other/init.luau new file mode 100644 index 000000000000..bf3cd8fd231e --- /dev/null +++ b/packages/cli-rs/parity/plugins/other/init.luau @@ -0,0 +1,10 @@ +--!strict +-- The distractor of the views machine (parity/machines/plugins.json), opencode-native side: `tui.tsx` in Luau, whose +-- setup throws, with its own cause, under the option fail. +local plugin = require("@opencode/plugin") + +return plugin.define(function(setup) + if setup.options and setup.options.fail then + error("other setup fails as it loads") + end +end) diff --git a/packages/cli-rs/parity/plugins/other/plugin.toml b/packages/cli-rs/parity/plugins/other/plugin.toml new file mode 100644 index 000000000000..c3165f068a84 --- /dev/null +++ b/packages/cli-rs/parity/plugins/other/plugin.toml @@ -0,0 +1,6 @@ +# The views machine's distractor for opencode-native (`init.luau`), beside its TypeScript side (`tui.tsx`). +id = "parity.other" +name = "Other" +version = "0.1.0" +contract = "2.0" +description = "The distractor of the views machine of parity/machines/plugins.json" diff --git a/packages/cli-rs/parity/plugins/other/tui.tsx b/packages/cli-rs/parity/plugins/other/tui.tsx new file mode 100644 index 000000000000..06089bd45320 --- /dev/null +++ b/packages/cli-rs/parity/plugins/other/tui.tsx @@ -0,0 +1,10 @@ +// The distractor of the views machine (parity/machines/plugins.json): a second plugin beside life whose setup throws, +// with its own cause, under the option fail. Its opencode-native twin is init.luau beside it. +import type { Context } from "../../../../plugin/src/tui/plugin" + +export default { + id: "parity.other", + setup(context: Context) { + if (context.options?.fail) throw new Error("other setup fails as it loads") + }, +} diff --git a/packages/cli-rs/parity/plugins/p0a/tui.tsx b/packages/cli-rs/parity/plugins/p0a/tui.tsx new file mode 100644 index 000000000000..f3676a009f86 --- /dev/null +++ b/packages/cli-rs/parity/plugins/p0a/tui.tsx @@ -0,0 +1,85 @@ +// The P0a test plugin, TypeScript side (rich plugins, ABI 1.5): F6 asks `dialog.confirm` and toasts the answer, F7 +// shows `dialog.alert` and toasts once it closes, F8 inserts text into the focused composer and F9 sets it, as npm +// plugins do through `renderer.currentFocusedEditor`, and a styled box is appended to home.footer. parity/scenarios/P.1/p0a-*.app.ts load +// this directory through the cli.json `plugins` entry; the Rust TUI skips that entry and registers its Rust twin +// (`p0a_plugin` in crates/tui/tests/all/app.rs). +import type { Context } from "../../../../plugin/src/tui/plugin" + +export default { + id: "parity.p0a", + setup(context: Context) { + const theme = context.theme + const toast = (message: string) => context.ui.toast.show({ message }) + context.keymap.layer(() => ({ + commands: [ + { + bind: "f6", + title: "Parity confirm", + run: async () => { + const answer = await context.ui.dialog.confirm({ + title: "Delete the draft?", + message: "It cannot be undone.", + label: { confirm: "delete", cancel: "keep" }, + }) + if (answer !== undefined) toast(`answered ${answer}`) + }, + }, + { + bind: "f7", + title: "Parity alert", + run: async () => { + await context.ui.dialog.alert({ title: "Heads up", message: "The plugin says hello." }) + toast("alert closed") + }, + }, + { + bind: "f8", + title: "Parity insert", + run: () => { + context.renderer.currentFocusedEditor?.insertText("inserted") + }, + }, + { + // As the composer's `ref.set` does: the text, then the cursor to the end. + bind: "f9", + title: "Parity set", + run: () => { + const editor = context.renderer.currentFocusedEditor + editor?.setText("set by the plugin") + editor?.gotoBufferEnd() + }, + }, + ], + })) + context.ui.slot({ + append: "home.footer", + render: () => ( + <box + border + borderStyle="rounded" + borderColor={theme.border.base} + title="p0a" + titleAlignment="center" + paddingLeft={2} + paddingRight={1} + overflow="hidden" + width={24} + height={5} + minHeight={3} + maxHeight={5} + marginLeft={2} + > + <box flexDirection="row" border={["left"]} borderStyle="heavy" borderColor={theme.text.muted} paddingLeft={1}> + <text fg={theme.text.base}>ruled</text> + </box> + <box flexDirection="row" gap={1} flexWrap="wrap"> + <text fg={theme.text.base}>alpha</text> + <text fg={theme.text.base}>beta</text> + <text fg={theme.text.base}>gamma</text> + <text fg={theme.text.base}>delta</text> + </box> + </box> + ), + }) + }, +} diff --git a/packages/cli-rs/parity/plugins/p0b/tui.tsx b/packages/cli-rs/parity/plugins/p0b/tui.tsx new file mode 100644 index 000000000000..dacbc5fc0407 --- /dev/null +++ b/packages/cli-rs/parity/plugins/p0b/tui.tsx @@ -0,0 +1,36 @@ +// The P0b test plugin, TypeScript side: one line appended to the `app` slot that shows what the small reads of ABI +// 1.6 answer: the claim's own width (`onSizeChange`), the session tabs, a command's keys, the model's variants and the +// pending keys. parity/scenarios/P.0b/reads.app.ts loads this directory through the cli.json `plugins` entry; the +// Rust TUI skips that entry and registers its Rust twin (`p0b_plugin` in crates/tui/tests/all/app.rs). +import { createSignal } from "solid-js" +import type { Context } from "../../../../plugin/src/tui/plugin" + +export default { + id: "parity.p0b", + setup(context: Context) { + context.ui.slot({ + append: "app", + render: () => { + const [width, setWidth] = createSignal(0) + const line = () => + [ + `p0b: w${width()}`, + `tabs ${context.ui.tabs.enabled()} ${context.ui.tabs.list().length}`, + `keys ${context.keymap.shortcuts("command.palette.show").join(",")}`, + `variants ${context.ui.model.variant.list().length}`, + `pending ${context.keymap.pending().length}`, + ].join(" ") + return ( + <box + paddingLeft={2} + onSizeChange={function () { + setWidth(this.width) + }} + > + <text fg={context.theme.text.muted}>{line()}</text> + </box> + ) + }, + }) + }, +} diff --git a/packages/cli-rs/parity/plugins/slot/tui.tsx b/packages/cli-rs/parity/plugins/slot/tui.tsx new file mode 100644 index 000000000000..98f68658c612 --- /dev/null +++ b/packages/cli-rs/parity/plugins/slot/tui.tsx @@ -0,0 +1,27 @@ +// The P.1 test plugin, TypeScript side: one line appended to the home.footer slot, after the footer built-in, and +// one in session.composer.top, above the composer. parity/scenarios/P.1/slot.app.ts and composer-top.app.ts load +// this directory through the cli.json `plugins` entry; the Rust TUI skips that entry and registers its Rust twin +// (`slot_plugin` in crates/tui/tests/all/app.rs). +import type { Context } from "../../../../plugin/src/tui/plugin" + +export default { + id: "parity.slot", + setup(context: Context) { + context.ui.slot({ + append: "home.footer", + render: () => ( + <box paddingLeft={2}> + <text fg={context.theme.text.muted}>slot plugin: home.footer</text> + </box> + ), + }) + context.ui.slot({ + append: "session.composer.top", + render: () => ( + <box paddingLeft={2}> + <text fg={context.theme.text.muted}>slot plugin: session.composer.top</text> + </box> + ), + }) + }, +} diff --git a/packages/cli-rs/parity/plugins/title/init.luau b/packages/cli-rs/parity/plugins/title/init.luau new file mode 100644 index 000000000000..02089df5f7c8 --- /dev/null +++ b/packages/cli-rs/parity/plugins/title/init.luau @@ -0,0 +1,38 @@ +--!strict +-- The P0b title plugin for opencode-native: `/p0btitle` and `/p0blong` set the terminal title, and `/p0brun` and +-- `/p0btwice` run their input with `sh -c`, once or twice at once. How each program ended becomes the title, which a +-- terminal's title log keeps where a later toast replaces an earlier one, and a toast. +local plugin = require("@opencode/plugin") + +return plugin.define(function(setup) + local function command(name: string, title: string, slash: string, arguments: boolean?): plugin.CommandSpec + return { name = name, title = title, group = "Sample", slash = slash, palette = true, arguments = arguments } + end + local function report(host: plugin.Host, text: string) + host:setTitle(text) + host:toast({ variant = "info", message = text }) + end + setup:command(command("p0b.title", "Set the title", "p0btitle"), function(host) + host:setTitle("p0b title") + end) + setup:command(command("p0b.long", "Set a long title", "p0blong"), function(host) + host:setTitle("p0b long " .. string.rep("é", 3000)) + end) + -- Each run is a task of its own, so the second of `/p0btwice` asks while the first program runs. + local function run(name: string, times: number) + setup:command(command("p0b." .. name, "Run a program", name, true), function(host, input) + for _ = 1, times do + plugin.spawn(function() + local ended, err = host:foreground({ command = "sh", args = { "-c", input or "" } }) + if ended then + report(host, "p0b exit " .. plugin.json.encode(ended)) + else + report(host, "p0b error " .. (err or "no reason")) + end + end) + end + end) + end + run("p0brun", 1) + run("p0btwice", 2) +end) diff --git a/packages/cli-rs/parity/plugins/title/plugin.toml b/packages/cli-rs/parity/plugins/title/plugin.toml new file mode 100644 index 000000000000..5f15badce071 --- /dev/null +++ b/packages/cli-rs/parity/plugins/title/plugin.toml @@ -0,0 +1,7 @@ +# The P0b title plugin's opencode-native side, which parity/scenarios/P.0b/fixture.ts installs beside `tui.ts`: the TS +# client loads `tui.ts`, opencode-native this Luau plugin. +id = "parity.title" +name = "P0b title" +version = "0.1.0" +contract = "2.0" +description = "Sets the terminal title, and runs programs in the foreground" diff --git a/packages/cli-rs/parity/plugins/title/tui.ts b/packages/cli-rs/parity/plugins/title/tui.ts new file mode 100644 index 000000000000..8268697c664d --- /dev/null +++ b/packages/cli-rs/parity/plugins/title/tui.ts @@ -0,0 +1,23 @@ +// The P0b title plugin, TypeScript side: `/p0btitle` sets the terminal title, as an npm plugin does with +// `renderer.setTerminalTitle`. parity/scenarios/P.0b/fixture.ts installs this file and its opencode-native twin, the +// Luau plugin beside it (`Host:setTitle`), in one `plugins` directory: TS loads `tui.ts`, Rust loads `init.luau`. +import type { Context } from "../../../../plugin/src/tui/plugin" + +export default { + id: "parity.title", + setup(context: Context) { + // Global, as the TS built-ins' commands are and as Rust registers a plugin's commands. + context.keymap.layer(() => ({ + mode: "global", + commands: [ + { + id: "p0b.title", + title: "Set the title", + palette: true, + slash: { name: "p0btitle" }, + run: () => context.renderer.setTerminalTitle("p0b title"), + }, + ], + })) + }, +} diff --git a/packages/cli-rs/parity/plugins/v2search/tui.ts b/packages/cli-rs/parity/plugins/v2search/tui.ts new file mode 100644 index 000000000000..fb0433885cd7 --- /dev/null +++ b/packages/cli-rs/parity/plugins/v2search/tui.ts @@ -0,0 +1,50 @@ +// A V2 `{ id, setup }` plugin (FT-12): `/find` opens a select whose own search matches the options' descriptions, as +// opencode-session-time's `/time` does. TS loads it as a local plugin; the Rust client runs it unmodified on the JS host +// through the V2 compatibility layer. A picked row's value shows as a toast; a line in the home footer says it loaded. +import { createElement, insert, setProp } from "@opentui/solid" + +const turns = [ + { title: "10:00 · build · first", value: "t1", description: "one fish", category: "Morning" }, + { title: "10:05 · plan · second", value: "t2", description: "two fish", category: "Morning" }, + { title: "10:10 · build · third", value: "t3", description: "red fish" }, + { title: "10:15 · build · fourth", value: "t4", description: "someone else", category: "Noon" }, +] + +export default { + id: "parity.v2search", + setup(context: any) { + context.ui.slot({ + append: "home.footer", + render: () => { + const line = createElement("text") + setProp(line, "fg", context.theme.text.muted) + insert(line, "v2search loaded") + return line + }, + }) + context.keymap.layer(() => ({ + mode: "global", + commands: [ + { + id: "parity.v2search.find", + title: "Find a turn", + slash: { name: "find" }, + async run() { + const selection = context.ui.dialog.select({ + title: "Find a turn", + options: turns, + search: (query: string, options: typeof turns) => + options.filter((option) => + `${option.title} ${option.description}`.toLowerCase().includes(query.toLowerCase()), + ), + }) + // As session-time's `/time`: the select is sized right after it opens. + context.ui.dialog.set({ size: "xlarge" }) + const picked = await selection + context.ui.toast.show({ message: `picked ${picked}` }) + }, + }, + ], + })) + }, +} diff --git a/packages/cli-rs/parity/pty/run.ts b/packages/cli-rs/parity/pty/run.ts new file mode 100644 index 000000000000..96c449a7575d --- /dev/null +++ b/packages/cli-rs/parity/pty/run.ts @@ -0,0 +1,536 @@ +// P-PTY (plan 7.1): runs one command with the TS CLI and with `opencode-native` under a fixed-size +// pseudo-terminal, renders the output through OpenTUI's embedded terminal (which also answers the +// program's terminal queries), and compares the OSC log, the screens at checkpoints, and the exit. +// +// bun run parity/pty/run.ts [--sides ts,rs] [scenario.pty.ts ...] +// +// Without files it runs every `parity/scenarios/**/*.pty.ts`. Sides run one after the other. Each +// side's record goes to `$TMPDIR/opencode-parity/pty/<name>.<n>-<side>.json`. + +import { parseArgs } from "node:util" +import { Glob } from "bun" +import path from "node:path" +import { tmpdir } from "node:os" +import { rm } from "node:fs/promises" +import { existsSync } from "node:fs" +import { EmbeddedTerminalRenderable, TextAttributes, type CapturedLine } from "@opentui/core" +import { createTestRenderer } from "@opentui/core/testing" +import { startFakeServer, type FakeServer, type Logged, type Options } from "../lib/fake-server" +import { + buildRust, + command, + nameOf, + normalize, + parityRoot, + parseSides, + sandbox, + withServer, + type Side, +} from "../cli/client" +import { requestLog } from "../cli/run" +import { diffRecords } from "../cli/diff" + +export type OscKind = "title" | "progress" | "status" | "clipboard" | "notify" | "other" + +export type PtyStep = { + // Written to the terminal as is, for example "\x03" for Ctrl+C, or "\x1b[O" to report a focus loss. + keys?: string + // Pushed to the `fallback: "tui"` event stream after the keys. + emit?: Parameters<FakeServer["emit"]>[0][] + // Waits until an OSC sequence or the screen matches (a string matches as a substring). + // `oscCount` waits until that many OSC sequences contain the string. `gone` waits until the screen no longer + // contains the string, and `exit` until the program exited: a key whose effect is a closed view or an exit, such + // as Escape or Ctrl+C, waits for it before the next keys go out, since a still screen cannot tell a slow program + // from one that is done (a lone ESC the program has not yet timed out joins the next key as Alt+key). + until?: { + osc?: string | RegExp + screen?: string | RegExp + oscCount?: [string, number] + gone?: string + exit?: boolean + } + // Once `until` holds and the screen settled: the screen must not contain this. + absent?: string + // Once `until` holds: the fake server answers the requests of its `hold` route with this path. + release?: string + // Waits until the screen has not changed for this long. + settle?: number + // Records the screen under this name. + checkpoint?: string + // With `checkpoint`: a `parity/deviations/<file>.md` that lets the checkpoint and its `:cursor`, `:keyboard` and + // `:scrollback` records differ between the sides in at most `lines` lines. + deviation?: { file: string; lines: number } + // Records each row's background runs under this name (see `backgrounds`). + backgrounds?: string + // Records each row's foreground runs under this name, as `backgrounds` does the backgrounds. + foregrounds?: string + // With `checkpoint`, also records each row's text attribute runs as `<name>:attributes` (see `attributes`). + attributes?: boolean + // With `checkpoint`, also records this many scrollback rows above the screen as `<name>:scrollback`. + scrollback?: number + // Resizes the pseudo-terminal and the emulator before the keys. + resize?: { cols: number; rows: number } + // Sent to the program the harness started, after the keys. + signal?: NodeJS.Signals + timeout?: number +} + +export type PtyCase = { + args: string[] + // Runs this program on each side instead of the CLI (`args` is then unused); `server` is the fake server's URL. + command?: (side: Side, server: string | undefined) => string[] + server?: Options + env?: Record<string, string> + cols?: number + rows?: number + // The terminal's colors, as `#rrggbb`: the harness answers OSC 10, 11 and 4 queries with them instead of the + // emulator, whose answers are fixed. `colors` are slots 0-15; the others answer xterm's. Without `foreground` or + // `background` that query gets no reply, as from a terminal that reports its palette but not its default colors. + palette?: { foreground?: string; background?: string; colors: string[] } + steps: PtyStep[] + // The OSC kinds the comparison keeps. Terminal queries (colors, pointer shape) are `other`. + osc?: OscKind[] + // Compare the OSC log one kind at a time, in the order of `osc`, when the order between kinds is not fixed. + oscByKind?: boolean + // Wait for the program to exit after the last step and record the code; otherwise it is killed. + exits?: boolean + // Plan 7.5: line masks for checkpoints. Each match becomes `<masked>`; say why in `reason`. + masks?: { pattern: RegExp; reason: string }[] + // Compare the Kitty keyboard sequences the program writes too (`keyboardLog`): all of them, and those written + // up to each checkpoint as `<name>:keyboard`. + keyboard?: boolean + // A `parity/deviations/<file>.md` that lets the whole run's keyboard log differ between the sides in at most + // `lines` entries; a checkpoint's own `:keyboard` record follows that checkpoint's `deviation`. + keyboardDeviation?: { file: string; lines: number } + // Record the terminal cursor at each checkpoint too, as `<name>:cursor` (`x,y`, 0-based, or `hidden`). + cursor?: boolean + // Written to the emulator before the program starts, as a shell's earlier output. + preface?: string + // The emulator stands in for kitty 0.40: it draws OSC 66 text-sizing sequences at their size, which moves the + // cursor as kitty does, and names itself `kitty(0.40.1)` in its XTVERSION reply. + terminal?: "kitty" + // The terminal shows Kitty graphics: the harness answers the graphics query, and the window's size in pixels for + // cells `cell` pixels wide and twice as high. The emulator ignores the images themselves. + graphics?: { cell: number } + // Compare the request log too; `"writes"` leaves the reads out, for screens whose reads belong to later steps. + requests?: boolean | "writes" + // Runs only with `--sides rs,rs`: Rust behavior the TS client does not share, compared between two Rust runs. + rsOnly?: boolean + // As in P-CLI: writes files into the sandbox before the command runs. + setup?: (root: string, server: string | undefined) => Promise<void> + // Checks a side's run once the steps are done (and the program exited, with `exits`): returns what is wrong. For + // what both sides must do, which a comparison of two sides that share a defect cannot catch. + verify?: (run: { requests: Logged[]; exit: number | undefined; screen: string[] }) => string[] +} + +export function definePty(value: PtyCase) { + return value +} + +export async function runPty(side: Side, value: PtyCase) { + const cols = value.cols ?? 100 + const rows = value.rows ?? 30 + const box = await sandbox({ TERM: "xterm-256color", COLORTERM: "truecolor", ...value.env }) + const server = value.server ? await startFakeServer(value.server) : undefined + await value.setup?.(box.root, server?.url) + // Large enough for any `resize` step. + const setup = await createTestRenderer({ width: 300, height: 120 }) + const decoder = new TextDecoder() + const output = { text: "" } + const terminal = new EmbeddedTerminalRenderable(setup.renderer, { + cols, + rows, + onData: (data) => proc.terminal?.write(value.terminal === "kitty" ? kittyReplies(data) : data), + }) + setup.renderer.root.add(terminal) + // The emulator draws palette slots in the terminal's colors; its default background stays its own, so + // `backgrounds` can tell it from an explicit color. + if (value.palette) terminal.write(value.palette.colors.map((color, index) => `\x1b]4;${index};${color}\x07`).join("")) + if (value.preface) terminal.write(value.preface) + const closed = Promise.withResolvers<void>() + // The end of the output that may be the start of an OSC sequence, held for the next read: a read can split one, and + // the patterns below match only whole ones (kitty's OSC 66 would reach an emulator that drops its text). + let held = "" + const proc = Bun.spawn(value.command?.(side, server?.url) ?? command(side, withServer(value.args, server?.url)), { + cwd: box.cwd, + env: box.env, + terminal: { + cols, + rows, + data(_terminal, data) { + const text = decoder.decode(data, { stream: true }) + output.text += text + // Ahead of the emulator's own replies, such as the DA1 that follows the graphics query. + const reply = value.graphics && graphicsReplies(text, value.graphics.cell, cols, rows) + if (reply) proc.terminal?.write(reply) + if (!value.palette && !value.terminal) return terminal.write(data) + const pending = held + text + const end = wholeOsc(pending) + held = pending.slice(end) + const drawn = value.terminal === "kitty" ? drawTextSizing(pending.slice(0, end)) : pending.slice(0, end) + if (!value.palette) return terminal.write(drawn) + const palette = value.palette + terminal.write( + drawn.replace(/\x1b\]((?:10|11|4);[^\x07\x1b]*\?)(\x07|\x1b\\)/g, (_match, query: string, end: string) => { + proc.terminal?.write(colorReplies(query, palette, end)) + return "" + }), + ) + }, + exit: () => closed.resolve(), + }, + }) + // The program's last writes can still sit in the pseudo-terminal when it exits; it has exited for the + // steps once they are read too, when the stream ends. + const exited = Promise.all([proc.exited, closed.promise]).then(([code]) => ({ code })) + const screen = async () => { + await setup.renderOnce() + return terminal.screen().lines + } + // The emulator's scrollback: scroll up, read the screen, scroll back down. `screen()` shows only the viewport, + // and the scroll command is not in the renderable's public API. + const native = terminal as unknown as { + lib: { contextEmbeddedTerminalScroll(context: unknown, handle: unknown, delta: number): void } + handle: { context: unknown } + } + const back = async (count: number) => { + native.lib.contextEmbeddedTerminalScroll(native.handle.context, native.handle, -count) + terminal.invalidate() + const lines = await screen() + native.lib.contextEmbeddedTerminalScroll(native.handle.context, native.handle, count) + terminal.invalidate() + await screen() + return lines + } + const checkpoints: Record<string, string[]> = {} + const failures: string[] = [] + for (const step of value.steps) { + if (step.resize) { + proc.terminal?.resize(step.resize.cols, step.resize.rows) + terminal.width = step.resize.cols + terminal.height = step.resize.rows + } + if (step.keys !== undefined) proc.terminal?.write(step.keys) + if (step.signal) proc.kill(step.signal) + step.emit?.forEach((event) => server?.emit(event)) + const failure = await waitFor(step, { screen, osc: () => oscLog(output.text), exited }) + if (failure) { + failures.push(failure) + break + } + if (step.release) server?.release(step.release) + if (step.checkpoint) checkpoints[step.checkpoint] = await screen() + if (step.checkpoint && value.keyboard) checkpoints[`${step.checkpoint}:keyboard`] = keyboardLog(output.text) + if (step.checkpoint && value.cursor) { + const cursor = terminal.screen().cursor + checkpoints[`${step.checkpoint}:cursor`] = [cursor.visible ? `${cursor.x},${cursor.y}` : "hidden"] + } + if (step.checkpoint && step.attributes) { + await setup.renderOnce() + checkpoints[`${step.checkpoint}:attributes`] = attributes(setup.captureSpans().lines.slice(0, terminal.height)) + } + if (step.backgrounds) { + await setup.renderOnce() + checkpoints[step.backgrounds] = backgrounds(setup.captureSpans().lines.slice(0, terminal.height), terminal.width) + } + if (step.foregrounds) { + await setup.renderOnce() + const lines = setup.captureSpans().lines.slice(0, terminal.height) + checkpoints[step.foregrounds] = backgrounds(lines, terminal.width, "fg") + } + if (step.checkpoint && step.scrollback) checkpoints[`${step.checkpoint}:scrollback`] = await back(step.scrollback) + } + const exit = + value.exits && !failures.length ? await Promise.race([exited, Bun.sleep(10_000).then(() => undefined)]) : undefined + if (value.verify && !failures.length) + failures.push(...value.verify({ requests: server?.requests ?? [], exit: exit?.code, screen: await screen() })) + if (exit === undefined) proc.kill("SIGKILL") + await proc.exited + proc.terminal?.close() + setup.renderer.destroy() + await server?.stop() + await rm(box.root, { recursive: true, force: true }) + const context = { server: server?.url, root: box.root } + const kinds = value.osc ?? ["title", "progress", "clipboard", "notify"] + return { + ...(failures.length ? { failures } : {}), + exit: value.exits ? (exit?.code ?? "timeout") : "killed", + osc: oscLog(output.text) + .filter((entry) => kinds.includes(entry.kind)) + .toSorted((a, b) => (value.oscByKind ? kinds.indexOf(a.kind) - kinds.indexOf(b.kind) : 0)) + .map((entry) => normalize(`${entry.kind} ${entry.data}`, context)), + checkpoints: Object.fromEntries( + Object.entries(checkpoints).map(([name, lines]) => [ + name, + lines.map((line) => + (value.masks ?? []).reduce( + (current, mask) => current.replace(mask.pattern, "<masked>"), + normalize(line, context), + ), + ), + ]), + ), + ...(value.keyboard ? { keyboard: keyboardLog(output.text) } : {}), + ...(value.requests === "writes" + ? { requests: { writes: requestLog(server?.requests ?? [], context).writes } } + : value.requests + ? { requests: requestLog(server?.requests ?? [], context) } + : {}), + } +} + +// The right record with each checkpoint a deviation allows taken from the left one, and a note per deviation. A +// deviation whose file is missing, or whose checkpoint differs in more lines than it allows, is left to fail. +function allowDeviations(value: PtyCase, left: Record<string, unknown>, right: Record<string, unknown>) { + const notes: string[] = [] + const ours = left.checkpoints as Record<string, string[]> + const theirs = { ...(right.checkpoints as Record<string, string[]>) } + for (const step of value.steps) { + if (!step.checkpoint || !step.deviation) continue + const keys = Object.keys(ours).filter((key) => key === step.checkpoint || key.startsWith(`${step.checkpoint}:`)) + const differing = keys.reduce((count, key) => { + const a = ours[key] ?? [] + const b = theirs[key] ?? [] + return ( + count + + Array.from({ length: Math.max(a.length, b.length) }, (_, index) => a[index] !== b[index]).filter(Boolean).length + ) + }, 0) + const file = step.deviation.file + if (!existsSync(path.join(parityRoot, "deviations", `${file}.md`))) { + notes.push(`${step.checkpoint}: deviation file ${file}.md is missing`) + continue + } + if (differing === 0) { + notes.push(`${step.checkpoint}: equal; remove the deviation ${file}`) + continue + } + if (differing > step.deviation.lines) { + notes.push(`${step.checkpoint}: ${differing} lines differ, beyond the ${step.deviation.lines} ${file} allows`) + continue + } + notes.push(`${step.checkpoint}: ${differing} lines differ, allowed by ${file}`) + keys.forEach((key) => (theirs[key] = ours[key])) + } + const keyboard = value.keyboardDeviation + if (!keyboard || !existsSync(path.join(parityRoot, "deviations", `${keyboard.file}.md`))) + return [{ ...right, checkpoints: theirs }, notes] as const + const a = (left.keyboard ?? []) as string[] + const b = (right.keyboard ?? []) as string[] + const differing = Array.from({ length: Math.max(a.length, b.length) }, (_, index) => a[index] !== b[index]).filter( + Boolean, + ).length + if (differing === 0) notes.push(`keyboard: equal; remove the deviation ${keyboard.file}`) + else if (differing > keyboard.lines) + notes.push(`keyboard: ${differing} entries differ, beyond the ${keyboard.lines} ${keyboard.file} allows`) + else notes.push(`keyboard: ${differing} entries differ, allowed by ${keyboard.file}`) + const allowed = differing > 0 && differing <= keyboard.lines + return [{ ...right, checkpoints: theirs, ...(allowed ? { keyboard: a } : {}) }, notes] as const +} + +// OSC sequences in the order the program wrote them: ESC ] … terminated by BEL or ESC \. +export function oscLog(text: string) { + return [...text.matchAll(/\x1b\]([^\x07\x1b]*)(?:\x07|\x1b\\)/g)].map((match) => ({ + kind: oscKind(match[1]), + data: match[1], + })) +} + +// The Kitty keyboard protocol sequences in the order the program wrote them: a query (`CSI ? u`), a push +// (`CSI > flags u`), a pop (`CSI < count u`) or a set (`CSI = flags ; mode u`). +export function keyboardLog(text: string) { + return [...text.matchAll(/\x1b\[([?<>=][\d;]*)u/g)].map((match) => match[1]) +} + +function oscKind(data: string): OscKind { + const code = data.split(";")[0] + if (["0", "1", "2"].includes(code)) return "title" + if (data.startsWith("9;4;")) return "progress" + // `7501;?` asks whether the terminal has the program status protocol. + if (code === "7501") return data === "7501;?" ? "other" : "status" + if (code === "52") return "clipboard" + // `99;…:p=?;` asks the terminal which kitty notification features it has. + if (code === "99" && /[:;]p=\?/.test(data)) return "other" + if (["9", "99", "777"].includes(code)) return "notify" + return "other" +} + +// The replies to one OSC 10, 11 or 4 query; OSC 4 may ask for several slots. +function colorReplies(query: string, palette: NonNullable<PtyCase["palette"]>, end: string) { + const rgb = (hex: string) => { + const [r, g, b] = [1, 3, 5].map((at) => hex.slice(at, at + 2).repeat(2)) + return `rgb:${r}/${g}/${b}` + } + const [code, ...rest] = query.split(";") + if (code === "10") return palette.foreground ? `\x1b]10;${rgb(palette.foreground)}${end}` : "" + if (code === "11") return palette.background ? `\x1b]11;${rgb(palette.background)}${end}` : "" + return rest + .flatMap((part, index) => (index % 2 === 0 && rest[index + 1] === "?" ? [Number(part)] : [])) + .map((slot) => `\x1b]4;${slot};${rgb(palette.colors[slot] ?? xterm(slot))}${end}`) + .join("") +} + +// xterm's color for a slot above 15. +function xterm(slot: number) { + const hex = (value: number) => value.toString(16).padStart(2, "0") + if (slot >= 232) return `#${hex(8 + (slot - 232) * 10).repeat(3)}` + const cube = [0, 95, 135, 175, 215, 255] + const index = slot - 16 + return `#${[Math.floor(index / 36), Math.floor(index / 6) % 6, index % 6].map((step) => hex(cube[step])).join("")}` +} + +// Each row's background runs (or with `fg` its foreground runs) as `<from>-<to> <color>`, columns end-exclusive. The +// emulator's default background (black) reads `default`; a color the program wrote reads `#rrggbb`. +function backgrounds(lines: CapturedLine[], width: number, channel: "bg" | "fg" = "bg") { + return lines.map((line) => { + const runs = line.spans.reduce<{ from: number; to: number; color: string }[]>((all, span) => { + const [r, g, b] = span[channel].toInts() + const color = + r + g + b === 0 ? "default" : `#${[r, g, b].map((value) => value.toString(16).padStart(2, "0")).join("")}` + const from = all.at(-1)?.to ?? 0 + const to = Math.min(width, from + span.width) + if (from >= width) return all + if (all.at(-1)?.color === color) return all.with(-1, { ...all.at(-1)!, to }) + return [...all, { from, to, color }] + }, []) + return runs.map((run) => `${run.from}-${run.to} ${run.color}`).join(", ") + }) +} + +// Each row's runs of text attributes as `<from>-<to> <names>`, columns end-exclusive; plain text has no run. +function attributes(lines: CapturedLine[]) { + const names = Object.entries(TextAttributes).filter(([, bit]) => bit !== 0) + const named = (value: number) => names.flatMap(([name, bit]) => (value & bit ? [name.toLowerCase()] : [])).join("+") + return lines.map((line) => + line.spans + .reduce<{ from: number; to: number; value: number }[]>((all, span) => { + const from = all.at(-1)?.to ?? 0 + return [...all, { from, to: from + span.width, value: span.attributes }] + }, []) + .filter((run) => run.value !== 0) + .map((run) => `${run.from}-${run.to} ${named(run.value)}`) + .join(", "), + ) +} + +// Where `text` stops being whole: at an OSC sequence that has not ended, or a last ESC that may start one. +function wholeOsc(text: string) { + const start = text.lastIndexOf("\x1b]") + if (start !== -1 && !/\x07|\x1b\\/.test(text.slice(start + 2))) return start + return text.endsWith("\x1b") ? text.length - 1 : text.length +} + +// kitty draws an OSC 66 text-sizing sequence (`ESC ] 66 ; w=N:s=N ; text ST`): `s` cells high and `w` (else the +// text's own width) times `s` wide, with the cursor after its top row. The emulator would ignore it. +function drawTextSizing(text: string) { + const sized = /\x1b\]66;([^;\x07\x1b]*);([^\x07\x1b]*)(?:\x07|\x1b\\)/g + return text.replace(sized, (_match, params: string, body: string) => { + const options = new URLSearchParams(params.replaceAll(":", "&")) + const scale = Math.max(1, Number(options.get("s") ?? 1)) + const cells = (Number(options.get("w") ?? 0) || body.length) * scale + const below = Array.from({ length: scale - 1 }, () => `\x1b[B\x1b[${cells}D${" ".repeat(cells)}`).join("") + return body.padEnd(cells) + below + (scale > 1 ? `\x1b[${scale - 1}A` : "") + }) +} + +// What a terminal with Kitty graphics answers: `OK` to the graphics query (`ESC _ G i=N,…,a=q;… ST`), and the window's +// size in pixels to `CSI 14 t`. +function graphicsReplies(text: string, cell: number, cols: number, rows: number) { + const query = /\x1b_Gi=(\d+)[^;\x1b]*a=q[^\x1b]*\x1b\\/.exec(text) + const size = text.includes("\x1b[14t") ? `\x1b[4;${rows * cell * 2};${cols * cell}t` : "" + return (query ? `\x1b_Gi=${query[1]};OK\x1b\\` : "") + size +} + +function kittyReplies(data: Uint8Array) { + const text = new TextDecoder().decode(data) + return text.replace(/\x1bP>\|[^\x1b]*\x1b\\/g, "\x1bP>|kitty(0.40.1)\x1b\\") +} + +type Probe = { + screen: () => Promise<string[]> + osc: () => ReturnType<typeof oscLog> + exited: Promise<{ code: number }> +} + +async function waitFor(step: PtyStep, probe: Probe) { + const deadline = Date.now() + (step.timeout ?? 15_000) + const done = { exited: false } + probe.exited.then(() => (done.exited = true)) + const state = { last: "", since: Date.now() } + while (Date.now() < deadline) { + // Read before the render: output that arrives while a frame renders shows only in the next one, so a + // screen is final only when the program had exited before its frame began. + const exited = done.exited + const lines = await probe.screen() + const text = lines.join("\n") + if (text !== state.last) Object.assign(state, { last: text, since: Date.now() }) + const osc = step.until?.osc + const oscOk = + osc === undefined || + probe.osc().some((entry) => (typeof osc === "string" ? entry.data.includes(osc) : osc.test(entry.data))) + const want = step.until?.screen + const counted = step.until?.oscCount + const countOk = + counted === undefined || probe.osc().filter((entry) => entry.data.includes(counted[0])).length >= counted[1] + const screenOk = + countOk && + (want === undefined || (typeof want === "string" ? text.includes(want) : want.test(text))) && + (step.until?.gone === undefined || !text.includes(step.until.gone)) && + (!step.until?.exit || exited) + const settled = step.settle === undefined || Date.now() - state.since >= step.settle + if (oscOk && screenOk && settled) { + if (step.absent !== undefined && text.includes(step.absent)) + return `found ${JSON.stringify(step.absent)}\n${text}` + return + } + if (exited && !(oscOk && screenOk)) return `exited while waiting for ${describe(step)}\n${text}` + await Bun.sleep(25) + } + return `timed out waiting for ${describe(step)}\n${state.last}` +} + +function describe(step: PtyStep) { + return JSON.stringify({ ...step.until, settle: step.settle }, (_key, value) => + value instanceof RegExp ? String(value) : value, + ) +} + +if (import.meta.main) { + const parsed = parseArgs({ args: Bun.argv.slice(2), options: { sides: { type: "string" } }, allowPositionals: true }) + const sides = parseSides(parsed.values.sides) + const files = parsed.positionals.length + ? parsed.positionals.map((file) => path.resolve(file)) + : [...new Glob("scenarios/**/*.pty.ts").scanSync({ cwd: parityRoot, absolute: true })].toSorted() + await buildRust(sides) + const failed = { any: false } + for (const file of files) { + const value: PtyCase = (await import(file)).default + const name = nameOf(file) + if (value.rsOnly && sides.includes("ts")) { + console.log(`skip ${name} (rsOnly: run it with --sides rs,rs)`) + continue + } + const records = [] + for (const side of sides) records.push(await runPty(side, value)) + await Promise.all( + records.map((record, index) => + Bun.write( + path.join(tmpdir(), "opencode-parity/pty", `${name}.${index}-${sides[index]}.json`), + JSON.stringify(record, null, 2) + "\n", + ), + ), + ) + const [allowed, notes] = allowDeviations(value, records[0], records[1]) + notes.forEach((note) => console.log(` ${name}: ${note}`)) + const report = diffRecords(records[0], allowed, sides) + const broken = records.some((record) => record.failures) + if (report || broken) failed.any = true + console.log( + report || broken + ? `FAIL ${name}\n${report || records.flatMap((record) => record.failures ?? []).join("\n")}` + : `ok ${name}`, + ) + } + // The renderers keep timers; exit explicitly. + process.exit(failed.any ? 1 : 0) +} diff --git a/packages/cli-rs/parity/scenarios/C.0/completions-bash.cli.ts b/packages/cli-rs/parity/scenarios/C.0/completions-bash.cli.ts new file mode 100644 index 000000000000..14e4c3488bde --- /dev/null +++ b/packages/cli-rs/parity/scenarios/C.0/completions-bash.cli.ts @@ -0,0 +1,4 @@ +import { defineCli } from "../../cli/run" +import { ownFlags } from "./own-flags" + +export default defineCli({ args: ["--completions", "bash"], masks: ownFlags }) diff --git a/packages/cli-rs/parity/scenarios/C.0/completions-fish.cli.ts b/packages/cli-rs/parity/scenarios/C.0/completions-fish.cli.ts new file mode 100644 index 000000000000..f8fbb0775766 --- /dev/null +++ b/packages/cli-rs/parity/scenarios/C.0/completions-fish.cli.ts @@ -0,0 +1,4 @@ +import { defineCli } from "../../cli/run" +import { ownFlags } from "./own-flags" + +export default defineCli({ args: ["--completions", "fish"], masks: ownFlags }) diff --git a/packages/cli-rs/parity/scenarios/C.0/completions-powershell.cli.ts b/packages/cli-rs/parity/scenarios/C.0/completions-powershell.cli.ts new file mode 100644 index 000000000000..f142413dc488 --- /dev/null +++ b/packages/cli-rs/parity/scenarios/C.0/completions-powershell.cli.ts @@ -0,0 +1,4 @@ +import { defineCli } from "../../cli/run" +import { ownFlags } from "./own-flags" + +export default defineCli({ args: ["--completions", "powershell"], masks: ownFlags }) diff --git a/packages/cli-rs/parity/scenarios/C.0/completions-zsh.cli.ts b/packages/cli-rs/parity/scenarios/C.0/completions-zsh.cli.ts new file mode 100644 index 000000000000..394199616787 --- /dev/null +++ b/packages/cli-rs/parity/scenarios/C.0/completions-zsh.cli.ts @@ -0,0 +1,4 @@ +import { defineCli } from "../../cli/run" +import { ownFlags } from "./own-flags" + +export default defineCli({ args: ["--completions", "zsh"], masks: ownFlags }) diff --git a/packages/cli-rs/parity/scenarios/C.0/own-flags.ts b/packages/cli-rs/parity/scenarios/C.0/own-flags.ts new file mode 100644 index 000000000000..117387a7158a --- /dev/null +++ b/packages/cli-rs/parity/scenarios/C.0/own-flags.ts @@ -0,0 +1,9 @@ +// opencode-native's own root flag, `--no-plugins`, which the TypeScript CLI does not have +// (`parity/deviations/D01-no-plugins.md`): each shell's script names it on lines of its own, which the first mask +// takes out of both sides before they are compared. Bash also declares a "used" variable for each root flag, and the +// flag is the root's seventh: the second mask drops `_used_6` where it ends a declaration, on both sides alike. Every +// other line keeps its place and numbering. +export const ownFlags = [ + { pattern: /^.*\bno-plugins\b.*\n/gm, replacement: "" }, + { pattern: / _used_6=""$/gm, replacement: "" }, +] diff --git a/packages/cli-rs/parity/scenarios/C.1/debug-agents.cli.ts b/packages/cli-rs/parity/scenarios/C.1/debug-agents.cli.ts new file mode 100644 index 000000000000..37d31f1a76dc --- /dev/null +++ b/packages/cli-rs/parity/scenarios/C.1/debug-agents.cli.ts @@ -0,0 +1,22 @@ +// `debug agents`: the agents as the server sent them, unknown fields and key order kept, sorted by id. +import { defineCli } from "../../cli/run" + +export default defineCli({ + args: ["debug", "agents"], + server: { + routes: [ + { + path: "/api/agent", + json: { + location: { directory: "/work" }, + data: [ + { id: "plan", name: "Plan", mode: "primary", extra: { nested: [1, 2.5, null, true] } }, + { id: "build", name: "Build", mode: "primary", unicode: "héllo ✓ \u0001" }, + { id: "Explore", name: "Explore", mode: "subagent", permission: [] }, + { id: "general", mode: "subagent", description: 'A "quoted" description' }, + ], + }, + }, + ], + }, +}) diff --git a/packages/cli-rs/parity/scenarios/C.1/debug-config.cli.ts b/packages/cli-rs/parity/scenarios/C.1/debug-config.cli.ts new file mode 100644 index 000000000000..385e65267092 --- /dev/null +++ b/packages/cli-rs/parity/scenarios/C.1/debug-config.cli.ts @@ -0,0 +1,43 @@ +// `debug config`: the entries in server order with secrets, header values, and credential URLs +// redacted (`debug/redact.ts`). +import { defineCli } from "../../cli/run" + +export default defineCli({ + args: ["debug", "config"], + server: { + routes: [ + { + path: "/api/config", + json: [ + { + type: "document", + path: "/work/opencode.json", + info: { + permissions: [ + { action: "shell", resource: "*", effect: "ask" }, + { action: "shell", resource: "git status", effect: "allow" }, + ], + providers: { + example: { + settings: { apiKey: "sk-example", timeout: 1200, baseURL: "https://api.example.com/v1" }, + headers: { Authorization: "Bearer example", "X-Custom": "opaque" }, + }, + }, + mcp: { + remote: { + url: "https://user:pass@example.com/mcp", + oauth: { client_secret: "s", client_id: "public" }, + }, + query: { url: "https://example.com/mcp?access_token=1" }, + broken: { url: "https://[bad" }, + local: { environment: { SERVICE_TOKEN: "token-value", PATH: "/usr/bin" } }, + }, + max_tokens: 100, + }, + }, + { type: "default", info: {} }, + ], + }, + ], + }, +}) diff --git a/packages/cli-rs/parity/scenarios/C.1/debug-heap-dump-unauthorized.cli.ts b/packages/cli-rs/parity/scenarios/C.1/debug-heap-dump-unauthorized.cli.ts new file mode 100644 index 000000000000..709535f51816 --- /dev/null +++ b/packages/cli-rs/parity/scenarios/C.1/debug-heap-dump-unauthorized.cli.ts @@ -0,0 +1,17 @@ +// `debug heap-dump` answered by a declared error (401): stderr has its message without the tag, as +// `errorMessage` prints it, and the exit is 1. +import { defineCli } from "../../cli/run" + +export default defineCli({ + args: ["debug", "heap-dump"], + server: { + routes: [ + { + method: "POST", + path: "/api/debug/heap-dump", + status: 401, + json: { _tag: "UnauthorizedError", message: "Authentication required" }, + }, + ], + }, +}) diff --git a/packages/cli-rs/parity/scenarios/C.1/debug-heap-dump-unsupported.cli.ts b/packages/cli-rs/parity/scenarios/C.1/debug-heap-dump-unsupported.cli.ts new file mode 100644 index 000000000000..6af439d0afdf --- /dev/null +++ b/packages/cli-rs/parity/scenarios/C.1/debug-heap-dump-unsupported.cli.ts @@ -0,0 +1,7 @@ +// `debug heap-dump` against a server without the route (404): the update hint on stderr, exit 1. +import { defineCli } from "../../cli/run" + +export default defineCli({ + args: ["debug", "heap-dump"], + server: { routes: [] }, +}) diff --git a/packages/cli-rs/parity/scenarios/C.1/debug-heap-dump.cli.ts b/packages/cli-rs/parity/scenarios/C.1/debug-heap-dump.cli.ts new file mode 100644 index 000000000000..22b6773e47e7 --- /dev/null +++ b/packages/cli-rs/parity/scenarios/C.1/debug-heap-dump.cli.ts @@ -0,0 +1,20 @@ +// `debug heap-dump --directory snaps/../out/`: the relative directory resolves against the working +// directory, and a server that wrote elsewhere (one released before `directory`) gets the warning. +import { defineCli } from "../../cli/run" + +export default defineCli({ + args: ["debug", "heap-dump", "--directory", "snaps/../out/"], + server: { + routes: [ + { + method: "POST", + path: "/api/debug/heap-dump", + json: { + path: "/var/log/opencode/heap-1.heapsnapshot", + pid: 42, + memory: { rss: 1, heapTotal: 2, heapUsed: 3, external: 4, arrayBuffers: 5 }, + }, + }, + ], + }, +}) diff --git a/packages/cli-rs/parity/scenarios/C.1/debug-paths-db.cli.ts b/packages/cli-rs/parity/scenarios/C.1/debug-paths-db.cli.ts new file mode 100644 index 000000000000..8516a7993f05 --- /dev/null +++ b/packages/cli-rs/parity/scenarios/C.1/debug-paths-db.cli.ts @@ -0,0 +1,7 @@ +// `debug paths db` with a relative `OPENCODE_DB`, which resolves against the data directory. +import { defineCli } from "../../cli/run" + +export default defineCli({ + args: ["debug", "paths", "db"], + env: { OPENCODE_DB: "../custom/./my.db" }, +}) diff --git a/packages/cli-rs/parity/scenarios/C.1/debug-paths.cli.ts b/packages/cli-rs/parity/scenarios/C.1/debug-paths.cli.ts new file mode 100644 index 000000000000..d21338424f28 --- /dev/null +++ b/packages/cli-rs/parity/scenarios/C.1/debug-paths.cli.ts @@ -0,0 +1,9 @@ +// `debug paths`: every global path from the sandbox's XDG roots. The database name depends on the +// channel, which TS embeds at build time (`local` from source) and Rust reads at run time; turning +// channel databases off makes both `opencode.db` (deviation C09-db-channel). +import { defineCli } from "../../cli/run" + +export default defineCli({ + args: ["debug", "paths"], + env: { OPENCODE_DISABLE_CHANNEL_DB: "1" }, +}) diff --git a/packages/cli-rs/parity/scenarios/C.1/models-empty.cli.ts b/packages/cli-rs/parity/scenarios/C.1/models-empty.cli.ts new file mode 100644 index 000000000000..73a0017760f4 --- /dev/null +++ b/packages/cli-rs/parity/scenarios/C.1/models-empty.cli.ts @@ -0,0 +1,7 @@ +// `models` with no models prints nothing, not an empty line. +import { defineCli } from "../../cli/run" + +export default defineCli({ + args: ["models"], + server: { routes: [{ path: "/api/model", json: { location: { directory: "/work" }, data: [] } }] }, +}) diff --git a/packages/cli-rs/parity/scenarios/C.1/models.cli.ts b/packages/cli-rs/parity/scenarios/C.1/models.cli.ts new file mode 100644 index 000000000000..9d2e4f143c9c --- /dev/null +++ b/packages/cli-rs/parity/scenarios/C.1/models.cli.ts @@ -0,0 +1,28 @@ +// `models`: `provider/model` lines in `localeCompare` order (case and punctuation included), for the +// working directory. Fields the client does not read stay out of the fixture: it must not decode them. +import { defineCli } from "../../cli/run" + +const location = { directory: "/work", project: { id: "proj_test", directory: "/work", canonical: "/work" } } + +export default defineCli({ + args: ["models"], + server: { + routes: [ + { + path: "/api/model", + json: { + location, + data: [ + { providerID: "openai", id: "gpt-5" }, + { providerID: "OpenAI", id: "b" }, + { providerID: "openai-x", id: "a" }, + { providerID: "anthropic", id: "claude-sonnet-5-5" }, + { providerID: "anthropic", id: "claude-opus-5-5" }, + { providerID: "anthropic", id: "Claude_10" }, + { providerID: "anthropic", id: "claude.9" }, + ], + }, + }, + ], + }, +}) diff --git a/packages/cli-rs/parity/scenarios/C.1/reload.cli.ts b/packages/cli-rs/parity/scenarios/C.1/reload.cli.ts new file mode 100644 index 000000000000..ec8cfc4abe6a --- /dev/null +++ b/packages/cli-rs/parity/scenarios/C.1/reload.cli.ts @@ -0,0 +1,7 @@ +// `reload`: one POST without a location, then "Configuration reloaded". Only the fake server sees it. +import { defineCli } from "../../cli/run" + +export default defineCli({ + args: ["reload"], + server: { routes: [{ method: "POST", path: "/api/location/reload", status: 204 }] }, +}) diff --git a/packages/cli-rs/parity/scenarios/C.10/agent-declared-json.cli.ts b/packages/cli-rs/parity/scenarios/C.10/agent-declared-json.cli.ts new file mode 100644 index 000000000000..119f9ab8efbd --- /dev/null +++ b/packages/cli-rs/parity/scenarios/C.10/agent-declared-json.cli.ts @@ -0,0 +1,19 @@ +// `run --format json --agent nope`: the agent switch gets a declared error (400). The JSON error event has +// its message without the tag, as `errorMessage` gives it. +import { defineCli } from "../../cli/run" +import { nowMask, server } from "./fixture" + +export default defineCli({ + args: ["run", "--format", "json", "--agent", "nope", "hello"], + server: server({ + routes: [ + { + method: "POST", + path: "/api/session/ses_run/agent", + status: 400, + json: { _tag: "InvalidRequestError", message: "Unknown agent: nope" }, + }, + ], + }), + masks: [nowMask], +}) diff --git a/packages/cli-rs/parity/scenarios/C.10/agent-declared.cli.ts b/packages/cli-rs/parity/scenarios/C.10/agent-declared.cli.ts new file mode 100644 index 000000000000..3c39be45bdee --- /dev/null +++ b/packages/cli-rs/parity/scenarios/C.10/agent-declared.cli.ts @@ -0,0 +1,18 @@ +// `run --agent nope`: the agent switch gets a declared error (400). stderr has its message without the +// tag, as `errorMessage` gives it. +import { defineCli } from "../../cli/run" +import { server } from "./fixture" + +export default defineCli({ + args: ["run", "--agent", "nope", "hello"], + server: server({ + routes: [ + { + method: "POST", + path: "/api/session/ses_run/agent", + status: 400, + json: { _tag: "InvalidRequestError", message: "Unknown agent: nope" }, + }, + ], + }), +}) diff --git a/packages/cli-rs/parity/scenarios/C.10/background-json.cli.ts b/packages/cli-rs/parity/scenarios/C.10/background-json.cli.ts new file mode 100644 index 000000000000..7f226bddbc3c --- /dev/null +++ b/packages/cli-rs/parity/scenarios/C.10/background-json.cli.ts @@ -0,0 +1,14 @@ +// `background` with `--format json`: a `background_wait` event lists the jobs. +import { defineCli } from "../../cli/run" +import { nowMask, server, textStep } from "./fixture" +import { job, jobs, old, waitingJson, woken } from "./background.cli" + +export default defineCli({ + args: ["run", "--format", "json", "hello"], + server: server({ + events: () => textStep("Started the job."), + routes: [jobs((count) => (count === 1 ? [old, job] : [old]))], + }), + late: { after: waitingJson, events: woken }, + masks: [nowMask], +}) diff --git a/packages/cli-rs/parity/scenarios/C.10/background-subagent.cli.ts b/packages/cli-rs/parity/scenarios/C.10/background-subagent.cli.ts new file mode 100644 index 000000000000..3d41b4bdd116 --- /dev/null +++ b/packages/cli-rs/parity/scenarios/C.10/background-subagent.cli.ts @@ -0,0 +1,38 @@ +// A subagent always runs in the background (#63382): its job holds the run open, and its report wakes the +// parent. The turn the report triggers streams, and its failure decides the exit code, even though the first +// turn succeeded (`noninteractive.test.ts`, "waits for a subagent's report and the parent turn it triggers"). +import { defineCli } from "../../cli/run" +import { event, nowMask, server, textStep } from "./fixture" +import { jobs, waitingJson } from "./background.cli" + +const child = { + kind: "subagent", + id: "ses_child", + sessionID: "ses_run", + status: "running", + childSessionID: "ses_child", + agent: "explore", + description: "scan repo", + time: { started: 3 }, +} + +export default defineCli({ + args: ["run", "--format", "json", "hello"], + server: server({ + events: () => textStep("Started the subagent."), + // The wait reads the child's inbox too. + routes: [ + jobs((count) => (count === 1 ? [child] : [])), + { path: "/api/session/ses_child/inbox", json: { data: [] } }, + ], + }), + late: { + after: waitingJson, + events: [ + event("session.text.started", { assistantMessageID: "msg_b", ordinal: 0 }, 30), + event("session.text.ended", { assistantMessageID: "msg_b", ordinal: 0, text: "Report handled." }, 31), + event("session.execution.failed", { error: { type: "unknown", message: "report turn failed" } }, 32), + ], + }, + masks: [nowMask], +}) diff --git a/packages/cli-rs/parity/scenarios/C.10/background.cli.ts b/packages/cli-rs/parity/scenarios/C.10/background.cli.ts new file mode 100644 index 000000000000..78c450a49009 --- /dev/null +++ b/packages/cli-rs/parity/scenarios/C.10/background.cli.ts @@ -0,0 +1,44 @@ +// A background job this prompt started holds the run open: "waiting for 1 background job", then the reply +// it wakes streams before the run ends with exit 0. +import { defineCli } from "../../cli/run" +import { event, server, succeeded, textStep } from "./fixture" + +export const job = { + kind: "shell", + id: "sh_1", + sessionID: "ses_run", + status: "running", + shellID: "sh_1", + command: "sleep 5", + title: "sleep 5", + time: { started: 3 }, +} + +// A job started before this prompt (a dev server from an earlier turn) is not waited for. +export const old = { ...job, id: "sh_0", shellID: "sh_0", command: "bun dev", title: "bun dev", time: { started: 1 } } + +export const jobs = (list: (count: number) => unknown[]) => ({ + path: "/api/experimental/job", + json: (_entry: unknown, requests: { path: string }[]) => ({ + data: list(requests.filter((entry) => entry.path === "/api/experimental/job").length), + }), +}) + +export const woken = [ + event("session.text.started", { assistantMessageID: "msg_b", ordinal: 0 }, 30), + event("session.text.ended", { assistantMessageID: "msg_b", ordinal: 0, text: "Job finished." }, 31), + succeeded(), +] + +// The wake arrives once the run has said it waits, so the wait notice comes first on both sides. Timed from +// the wait's answer instead, a client slow to list the jobs under load printed the woken reply first. +export const waitingJson = '"type":"background_wait"' + +export default defineCli({ + args: ["run", "hello"], + server: server({ + events: () => textStep("Started the job."), + routes: [jobs((count) => (count === 1 ? [old, job] : [old]))], + }), + late: { after: "waiting for 1 background job", events: woken }, +}) diff --git a/packages/cli-rs/parity/scenarios/C.10/bad-model.cli.ts b/packages/cli-rs/parity/scenarios/C.10/bad-model.cli.ts new file mode 100644 index 000000000000..01e990fded9a --- /dev/null +++ b/packages/cli-rs/parity/scenarios/C.10/bad-model.cli.ts @@ -0,0 +1,5 @@ +// An invalid `-m` fails before anything is created. +import { defineCli } from "../../cli/run" +import { server } from "./fixture" + +export default defineCli({ args: ["run", "-m", "nomodel", "hi"], server: server() }) diff --git a/packages/cli-rs/parity/scenarios/C.10/continue.cli.ts b/packages/cli-rs/parity/scenarios/C.10/continue.cli.ts new file mode 100644 index 000000000000..1c79a31e990a --- /dev/null +++ b/packages/cli-rs/parity/scenarios/C.10/continue.cli.ts @@ -0,0 +1,26 @@ +// `-c -m demo/other#high --agent plan --title kept --archived`: the latest session of the directory is +// resumed, so neither the title nor the archive flag is applied; the agent and model are switched. +import { defineCli } from "../../cli/run" +import { server, session, textStep } from "./fixture" + +export default defineCli({ + args: ["run", "-c", "-m", "demo/other#high", "--agent", "plan", "--title", "kept", "--archived", "again"], + server: server({ + sessionID: "ses_old", + events: () => textStep("ok"), + routes: [ + { + path: "/api/session", + json: { + data: [ + session("ses_child", { location: { directory: "/tmp/run/sub" } }), + session("ses_old", { agent: "build" }), + ], + cursor: {}, + }, + }, + { method: "POST", path: "/api/session/ses_old/agent", status: 204 }, + { method: "POST", path: "/api/session/ses_old/model", status: 204 }, + ], + }), +}) diff --git a/packages/cli-rs/parity/scenarios/C.10/dashdash.cli.ts b/packages/cli-rs/parity/scenarios/C.10/dashdash.cli.ts new file mode 100644 index 000000000000..1cf71e1ce124 --- /dev/null +++ b/packages/cli-rs/parity/scenarios/C.10/dashdash.cli.ts @@ -0,0 +1,8 @@ +// Words after `--` are message words, not flags. +import { defineCli } from "../../cli/run" +import { server, textStep } from "./fixture" + +export default defineCli({ + args: ["run", "a", "--server", "$SERVER", "--", "--model", "x", "-c"], + server: server({ events: () => textStep("ok") }), +}) diff --git a/packages/cli-rs/parity/scenarios/C.10/file-directory.cli.ts b/packages/cli-rs/parity/scenarios/C.10/file-directory.cli.ts new file mode 100644 index 000000000000..e47524e59a3f --- /dev/null +++ b/packages/cli-rs/parity/scenarios/C.10/file-directory.cli.ts @@ -0,0 +1,9 @@ +// A directory cannot be attached. +import { defineCli } from "../../cli/run" +import { server } from "./fixture" + +export default defineCli({ + args: ["run", "hi", "-f", "sub"], + files: { "sub/x": "x" }, + server: server(), +}) diff --git a/packages/cli-rs/parity/scenarios/C.10/file-large.cli.ts b/packages/cli-rs/parity/scenarios/C.10/file-large.cli.ts new file mode 100644 index 000000000000..569b5c69b2bc --- /dev/null +++ b/packages/cli-rs/parity/scenarios/C.10/file-large.cli.ts @@ -0,0 +1,9 @@ +// A file over 10 MiB cannot be attached. +import { defineCli } from "../../cli/run" +import { server } from "./fixture" + +export default defineCli({ + args: ["run", "hi", "-f", "big.txt"], + files: { "big.txt": "x".repeat(10 * 1024 * 1024 + 1) }, + server: server(), +}) diff --git a/packages/cli-rs/parity/scenarios/C.10/file-missing.cli.ts b/packages/cli-rs/parity/scenarios/C.10/file-missing.cli.ts new file mode 100644 index 000000000000..4db417aa7e16 --- /dev/null +++ b/packages/cli-rs/parity/scenarios/C.10/file-missing.cli.ts @@ -0,0 +1,9 @@ +// A missing file fails before anything is created, as a JSON error envelope with no session. +import { defineCli } from "../../cli/run" +import { nowMask, server } from "./fixture" + +export default defineCli({ + args: ["run", "--format", "json", "hi", "-f", "nope.txt"], + server: server(), + masks: [nowMask], +}) diff --git a/packages/cli-rs/parity/scenarios/C.10/files.cli.ts b/packages/cli-rs/parity/scenarios/C.10/files.cli.ts new file mode 100644 index 000000000000..88ee8c1bf0df --- /dev/null +++ b/packages/cli-rs/parity/scenarios/C.10/files.cli.ts @@ -0,0 +1,16 @@ +// `-f`: text files go inline in the prompt text, an image and a binary file as data URLs; one file +// is in a subdirectory. +import { defineCli } from "../../cli/run" +import { server, textStep } from "./fixture" + +export default defineCli({ + args: ["run", "look", "-f", "notes.md", "-f", "pic.png", "--file", "sub/../data.bin", "-f", "latin.txt"], + files: { + "notes.md": "# Notes\nline two\n", + "pic.png": new Uint8Array([0x89, 0x50, 0x4e, 0x47, 0x0d, 0x0a, 0x1a, 0x0a]), + "data.bin": new Uint8Array([0, 1, 2, 3, 250]), + "latin.txt": new Uint8Array([0x68, 0xe9, 0x6c, 0x6c, 0x6f]), + "sub/keep": "", + }, + server: server({ events: () => textStep("Seen.") }), +}) diff --git a/packages/cli-rs/parity/scenarios/C.10/fixture.ts b/packages/cli-rs/parity/scenarios/C.10/fixture.ts new file mode 100644 index 000000000000..f0749d7fb0e8 --- /dev/null +++ b/packages/cli-rs/parity/scenarios/C.10/fixture.ts @@ -0,0 +1,171 @@ +// A fake server for `run`: one session `ses_run`, an event stream, and a prompt route that pushes the events a +// scenario scripts. The prompt ID is random on both sides, so events and the message list read it from the +// logged prompt request. +import type { Logged, Options, Route } from "../../lib/fake-server" + +export const directory = "/tmp/run" +export const location = { directory, project: { id: "proj_test", directory, canonical: directory } } +export const session = (id = "ses_run", extra: Record<string, unknown> = {}) => ({ + id, + title: "", + projectID: "proj_test", + cost: 0, + tokens: { input: 0, output: 0, reasoning: 0, cache: { read: 0, write: 0 } }, + time: { created: 1, updated: 1 }, + location: { directory }, + ...extra, +}) + +let counter = 0 +export const event = (type: string, data: Record<string, unknown>, created = 10) => ({ + id: `evt_${type.replace(/\W/g, "")}${String(++counter).padStart(8, "0")}`, + created, + type, + durable: { aggregateID: "ses_run", seq: counter }, + data: { sessionID: "ses_run", ...data }, +}) + +export function promptID(requests: Logged[]) { + const prompt = requests.findLast((entry) => entry.method === "POST" && entry.path.endsWith("/prompt")) + return (prompt?.body as { id?: string } | undefined)?.id ?? "msg_missing" +} + +export const delivered = (id: string) => event("session.inbox.delivered", { inboxID: id }, 5) +export const succeeded = () => event("session.execution.succeeded", {}, 90) + +// A text step of assistant message `msg_a`. +export function textStep(text: string, extra: unknown[] = []) { + return [ + event( + "session.step.started", + { + assistantMessageID: "msg_a", + agent: "build", + model: { id: "model", providerID: "demo" }, + snapshot: "snap_1", + started: 11, + }, + 11, + ), + event("session.text.started", { assistantMessageID: "msg_a", ordinal: 0 }, 12), + event("session.text.ended", { assistantMessageID: "msg_a", ordinal: 0, text }, 13), + ...extra, + event( + "session.step.ended", + { + assistantMessageID: "msg_a", + finish: "stop", + cost: 0.0012, + tokens: { input: 5, output: 7, reasoning: 0, cache: { read: 0, write: 0 } }, + snapshot: "snap_2", + }, + 20, + ), + ] +} + +export function assistant(content: unknown[], extra: Record<string, unknown> = {}) { + return { + id: "msg_a", + type: "assistant", + sessionID: "ses_run", + agent: "build", + model: { providerID: "demo", id: "model" }, + content, + finish: "stop", + cost: 0.0012, + tokens: { input: 5, output: 7, reasoning: 0, cache: { read: 0, write: 0 } }, + time: { created: 11, completed: 20 }, + ...extra, + } +} + +type Script = { + // Events after the prompt, given its ID. + events?: (id: string) => unknown[] + // Messages after the prompt, oldest first. + messages?: unknown[] + routes?: Route[] + sessionID?: string + // The prompt is promoted (`session.inbox.delivered`) unless false. + delivered?: boolean + // The prompt is in the message list unless false. + listed?: boolean + // The last event, `session.execution.succeeded` by default; `null` for none. + end?: unknown +} + +// The scripted events carry `ses_run`; a script for another session gets its ID. +function retarget(events: unknown[], id: string) { + return events.map((item) => { + const value = item as { data?: { sessionID?: string } } + if (value.data?.sessionID !== "ses_run") return item + return { ...value, data: { ...value.data, sessionID: id } } + }) +} + +// The routes of a run that creates `ses_run` and prompts it. The wait answers late, so the live events are +// read before the run reconciles with the message list. +export function server(script: Script = {}): Options { + const id = script.sessionID ?? "ses_run" + return { + routes: [ + ...(script.routes ?? []), + { path: "/api/location", json: location }, + { method: "POST", path: "/api/session", json: { data: session(id) } }, + { path: "/api/event", events: [{ id: "evt_connected0000", type: "server.connected", data: {} }] }, + { + method: "POST", + path: `/api/session/${id}/prompt`, + json: (entry: Logged) => ({ + data: { + id: (entry.body as { id: string }).id, + sessionID: id, + time: { created: 3 }, + type: "user", + payload: { text: "x" }, + delivery: "steer", + }, + }), + then: (entry: Logged) => { + const prompt = (entry.body as { id: string }).id + return retarget( + [ + ...(script.delivered === false ? [] : [delivered(prompt)]), + ...(script.events?.(prompt) ?? []), + ...(script.end === null ? [] : [script.end ?? succeeded()]), + ], + id, + ) + }, + }, + // Late enough that a reply to a live ask is sent before the wait, on both sides. + { path: `/api/session/${id}/permission`, json: { data: [] }, delay: 150 }, + { path: `/api/session/${id}/form`, json: { data: [] }, delay: 150 }, + { + method: "POST", + path: `/api/experimental/session/${id}/wait`, + status: 204, + delay: 400, + }, + { path: "/api/experimental/job", json: { data: [] } }, + { path: "/api/session/active", json: { data: {} } }, + { path: `/api/session/${id}/inbox`, json: { data: [] } }, + { + path: `/api/session/${id}/message`, + json: (_entry: Logged, requests: Logged[]) => ({ + data: [ + ...(script.messages ?? []).toReversed(), + ...(script.listed === false + ? [] + : [{ id: promptID(requests), type: "user", sessionID: id, text: "x", time: { created: 3 } }]), + ], + cursor: {}, + }), + }, + ], + } +} + +// `reportRunError` and the "not promoted" error stamp `Date.now()`. +export const nowMask = { pattern: /"timestamp":\d{13}/g, replacement: '"timestamp":<now>' } diff --git a/packages/cli-rs/parity/scenarios/C.10/fork-alone.cli.ts b/packages/cli-rs/parity/scenarios/C.10/fork-alone.cli.ts new file mode 100644 index 000000000000..0bab5447c864 --- /dev/null +++ b/packages/cli-rs/parity/scenarios/C.10/fork-alone.cli.ts @@ -0,0 +1,5 @@ +// `--fork` needs `--continue` or `--session`. +import { defineCli } from "../../cli/run" +import { nowMask, server } from "./fixture" + +export default defineCli({ args: ["run", "--fork", "--format", "json", "hi"], server: server(), masks: [nowMask] }) diff --git a/packages/cli-rs/parity/scenarios/C.10/fork.cli.ts b/packages/cli-rs/parity/scenarios/C.10/fork.cli.ts new file mode 100644 index 000000000000..0f820673368e --- /dev/null +++ b/packages/cli-rs/parity/scenarios/C.10/fork.cli.ts @@ -0,0 +1,25 @@ +// `-s ses_old --fork --archived --format json`: the session is forked, and the fork archived. +import { defineCli } from "../../cli/run" +import { server, session, textStep } from "./fixture" + +export default defineCli({ + args: ["run", "-s", "ses_old", "--fork", "--archived", "--format", "json", "again"], + server: server({ + sessionID: "ses_fork", + events: () => textStep("ok"), + routes: [ + { + path: "/api/session/ses_old", + json: { data: session("ses_old", { agent: "build", model: { providerID: "demo", id: "model" } }) }, + }, + { + method: "POST", + path: "/api/session/ses_old/fork", + json: { data: session("ses_fork", { agent: "build", model: { providerID: "demo", id: "model" } }) }, + }, + { method: "POST", path: "/api/session/ses_fork/agent", status: 204 }, + { method: "POST", path: "/api/session/ses_fork/model", status: 204 }, + { method: "PATCH", path: "/api/session/ses_fork", status: 204 }, + ], + }), +}) diff --git a/packages/cli-rs/parity/scenarios/C.10/form.cli.ts b/packages/cli-rs/parity/scenarios/C.10/form.cli.ts new file mode 100644 index 000000000000..90824d72a9e9 --- /dev/null +++ b/packages/cli-rs/parity/scenarios/C.10/form.cli.ts @@ -0,0 +1,21 @@ +// Any other form is cancelled and ends the run with exit code 1; the server says it is already settled. +import { defineCli } from "../../cli/run" +import { event, server, textStep } from "./fixture" + +export default defineCli({ + args: ["run", "hello"], + server: server({ + events: () => [ + event("form.created", { form: { id: "frm_2", sessionID: "ses_run", metadata: { kind: "mcp" }, fields: [] } }, 12), + ...textStep("Stopped."), + ], + routes: [ + { + method: "DELETE", + path: "/api/session/ses_run/form/frm_2", + status: 409, + json: { _tag: "FormAlreadySettledError", message: "settled" }, + }, + ], + }), +}) diff --git a/packages/cli-rs/parity/scenarios/C.10/interrupted.cli.ts b/packages/cli-rs/parity/scenarios/C.10/interrupted.cli.ts new file mode 100644 index 000000000000..cebfbae3199e --- /dev/null +++ b/packages/cli-rs/parity/scenarios/C.10/interrupted.cli.ts @@ -0,0 +1,13 @@ +// An interruption the user did not ask for is an error. +import { defineCli } from "../../cli/run" +import { event, nowMask, server, textStep } from "./fixture" + +export default defineCli({ + args: ["run", "--format", "json", "hello"], + server: server({ + events: () => textStep("partial"), + end: event("session.execution.interrupted", { reason: "shutdown" }, 30), + }), + // The final error is stamped with `Date.now()`. + masks: [nowMask], +}) diff --git a/packages/cli-rs/parity/scenarios/C.10/json.cli.ts b/packages/cli-rs/parity/scenarios/C.10/json.cli.ts new file mode 100644 index 000000000000..9f9a653f215a --- /dev/null +++ b/packages/cli-rs/parity/scenarios/C.10/json.cli.ts @@ -0,0 +1,18 @@ +// `run --format json --thinking`: text, reasoning, a read tool and the step, as JSON lines on stdout. +import { defineCli } from "../../cli/run" +import { event, server, textStep } from "./fixture" +import { read } from "./text.cli" + +const reasoning = [ + event("session.reasoning.started", { assistantMessageID: "msg_a", ordinal: 0 }, 12), + event( + "session.reasoning.ended", + { assistantMessageID: "msg_a", ordinal: 0, text: "Let me look.", native: { sig: "x" } }, + 12, + ), +] + +export default defineCli({ + args: ["run", "--format", "json", "--thinking", "hello"], + server: server({ events: () => textStep("Hello there.", [...reasoning, ...read]) }), +}) diff --git a/packages/cli-rs/parity/scenarios/C.10/no-message.cli.ts b/packages/cli-rs/parity/scenarios/C.10/no-message.cli.ts new file mode 100644 index 000000000000..772f145cb1e5 --- /dev/null +++ b/packages/cli-rs/parity/scenarios/C.10/no-message.cli.ts @@ -0,0 +1,5 @@ +// Only white space, a BOM included, and empty stdin: an error, exit 1, nothing created. +import { defineCli } from "../../cli/run" +import { server } from "./fixture" + +export default defineCli({ args: ["run", " \uFEFF\u3000 "], server: server() }) diff --git a/packages/cli-rs/parity/scenarios/C.10/not-promoted.cli.ts b/packages/cli-rs/parity/scenarios/C.10/not-promoted.cli.ts new file mode 100644 index 000000000000..fc3adfac69cb --- /dev/null +++ b/packages/cli-rs/parity/scenarios/C.10/not-promoted.cli.ts @@ -0,0 +1,8 @@ +// The execution ends but the prompt never reaches the message list: "Prompt was not promoted", exit 1. +import { defineCli } from "../../cli/run" +import { server } from "./fixture" + +export default defineCli({ + args: ["run", "hello"], + server: server({ listed: false }), +}) diff --git a/packages/cli-rs/parity/scenarios/C.10/permission-auto.cli.ts b/packages/cli-rs/parity/scenarios/C.10/permission-auto.cli.ts new file mode 100644 index 000000000000..063155be0eff --- /dev/null +++ b/packages/cli-rs/parity/scenarios/C.10/permission-auto.cli.ts @@ -0,0 +1,12 @@ +// `--auto` approves the request once, without a warning line. +import { defineCli } from "../../cli/run" +import { server, textStep } from "./fixture" +import { ask } from "./permission.cli" + +export default defineCli({ + args: ["run", "--auto", "hello"], + server: server({ + events: () => [ask, ...textStep("Edited.")], + routes: [{ method: "POST", path: "/api/session/ses_run/permission/per_1/reply", status: 204 }], + }), +}) diff --git a/packages/cli-rs/parity/scenarios/C.10/permission-pending.cli.ts b/packages/cli-rs/parity/scenarios/C.10/permission-pending.cli.ts new file mode 100644 index 000000000000..b277fee678d1 --- /dev/null +++ b/packages/cli-rs/parity/scenarios/C.10/permission-pending.cli.ts @@ -0,0 +1,18 @@ +// A request already pending when the prompt is admitted (the list after the prompt) is rejected too; +// `--yolo` is the hidden spelling of `--auto`. +import { defineCli } from "../../cli/run" +import { server, textStep } from "./fixture" + +export default defineCli({ + args: ["run", "--yolo", "hello"], + server: server({ + events: () => textStep("ok"), + routes: [ + { + path: "/api/session/ses_run/permission", + json: { data: [{ id: "per_2", sessionID: "ses_run", action: "bash", resources: ["ls"] }] }, + }, + { method: "POST", path: "/api/session/ses_run/permission/per_2/reply", status: 204 }, + ], + }), +}) diff --git a/packages/cli-rs/parity/scenarios/C.10/permission.cli.ts b/packages/cli-rs/parity/scenarios/C.10/permission.cli.ts new file mode 100644 index 000000000000..eb895d7f0e7e --- /dev/null +++ b/packages/cli-rs/parity/scenarios/C.10/permission.cli.ts @@ -0,0 +1,13 @@ +// A permission request for this session is rejected with feedback, and the run goes on. +import { defineCli } from "../../cli/run" +import { event, server, textStep } from "./fixture" + +export const ask = event("permission.asked", { id: "per_1", action: "edit", resources: ["src/a.ts", "src/b.ts"] }, 12) + +export default defineCli({ + args: ["run", "hello"], + server: server({ + events: () => [ask, ...textStep("Skipped the edit.")], + routes: [{ method: "POST", path: "/api/session/ses_run/permission/per_1/reply", status: 204 }], + }), +}) diff --git a/packages/cli-rs/parity/scenarios/C.10/pre-promotion-error.cli.ts b/packages/cli-rs/parity/scenarios/C.10/pre-promotion-error.cli.ts new file mode 100644 index 000000000000..1bebf3fa9274 --- /dev/null +++ b/packages/cli-rs/parity/scenarios/C.10/pre-promotion-error.cli.ts @@ -0,0 +1,13 @@ +// The execution fails before the prompt is promoted: that error is reported instead. +import { defineCli } from "../../cli/run" +import { event, nowMask, server } from "./fixture" + +export default defineCli({ + args: ["run", "--format", "json", "hello"], + server: server({ + delivered: false, + listed: false, + end: event("session.execution.failed", { error: { type: "unknown", message: "no provider" } }, 7), + }), + masks: [nowMask], +}) diff --git a/packages/cli-rs/parity/scenarios/C.10/question.cli.ts b/packages/cli-rs/parity/scenarios/C.10/question.cli.ts new file mode 100644 index 000000000000..a8adcc99b1da --- /dev/null +++ b/packages/cli-rs/parity/scenarios/C.10/question.cli.ts @@ -0,0 +1,18 @@ +// A question form is cancelled with a message, so the model continues; the run succeeds. +import { defineCli } from "../../cli/run" +import { event, server, textStep } from "./fixture" + +export default defineCli({ + args: ["run", "hello"], + server: server({ + events: () => [ + event( + "form.created", + { form: { id: "frm_1", sessionID: "ses_run", metadata: { kind: "question" }, fields: [] } }, + 12, + ), + ...textStep("Assumed yes."), + ], + routes: [{ method: "DELETE", path: "/api/session/ses_run/form/frm_1", status: 204 }], + }), +}) diff --git a/packages/cli-rs/parity/scenarios/C.10/reconcile-json.cli.ts b/packages/cli-rs/parity/scenarios/C.10/reconcile-json.cli.ts new file mode 100644 index 000000000000..765448862bcb --- /dev/null +++ b/packages/cli-rs/parity/scenarios/C.10/reconcile-json.cli.ts @@ -0,0 +1,9 @@ +// As `reconcile`, in JSON: step_start, text, tool_use and step_finish built from the projected message. +import { defineCli } from "../../cli/run" +import { assistant, server } from "./fixture" +import { content } from "./reconcile.cli" + +export default defineCli({ + args: ["run", "--format", "json", "--thinking", "hello"], + server: server({ messages: [assistant(content, { snapshot: { start: "s1", end: "s2" } })] }), +}) diff --git a/packages/cli-rs/parity/scenarios/C.10/reconcile.cli.ts b/packages/cli-rs/parity/scenarios/C.10/reconcile.cli.ts new file mode 100644 index 000000000000..e709c4f61123 --- /dev/null +++ b/packages/cli-rs/parity/scenarios/C.10/reconcile.cli.ts @@ -0,0 +1,26 @@ +// The live stream carries only the promotion: text, reasoning (hidden without --thinking), a tool and the +// step come from the message list after the wait. +import { defineCli } from "../../cli/run" +import { assistant, server } from "./fixture" + +export const content = [ + { type: "reasoning", text: "hmm" }, + { type: "text", text: "From the list." }, + { + type: "tool", + id: "call_9", + name: "glob", + state: { + status: "completed", + input: { pattern: "*.ts" }, + metadata: { count: 2 }, + content: [{ type: "text", text: "a.ts\nb.ts" }], + }, + time: { created: 14, ran: 15, completed: 16 }, + }, +] + +export default defineCli({ + args: ["run", "hello"], + server: server({ messages: [assistant(content)] }), +}) diff --git a/packages/cli-rs/parity/scenarios/C.10/retry-json.cli.ts b/packages/cli-rs/parity/scenarios/C.10/retry-json.cli.ts new file mode 100644 index 000000000000..804bd9b4fb24 --- /dev/null +++ b/packages/cli-rs/parity/scenarios/C.10/retry-json.cli.ts @@ -0,0 +1,9 @@ +// `retry` with `--format json`: a `retry` event, and one `step_start`. +import { defineCli } from "../../cli/run" +import { server, textStep } from "./fixture" +import { retry } from "./retry.cli" + +export default defineCli({ + args: ["run", "--format", "json", "hello"], + server: server({ events: () => [textStep("ignored")[0], retry, ...textStep("Recovered.")] }), +}) diff --git a/packages/cli-rs/parity/scenarios/C.10/retry.cli.ts b/packages/cli-rs/parity/scenarios/C.10/retry.cli.ts new file mode 100644 index 000000000000..f7d1c68b0b43 --- /dev/null +++ b/packages/cli-rs/parity/scenarios/C.10/retry.cli.ts @@ -0,0 +1,19 @@ +// A scheduled retry prints a warning line, and the retried step starts once. +import { defineCli } from "../../cli/run" +import { event, server, textStep } from "./fixture" + +export const retry = event( + "session.retry.scheduled", + { + assistantMessageID: "msg_a", + attempt: 1, + at: 2003, + error: { type: "provider.transport", message: "Recovered transport error" }, + }, + 11, +) + +export default defineCli({ + args: ["run", "hello"], + server: server({ events: () => [textStep("ignored")[0], retry, ...textStep("Recovered.")] }), +}) diff --git a/packages/cli-rs/parity/scenarios/C.10/server-down.cli.ts b/packages/cli-rs/parity/scenarios/C.10/server-down.cli.ts new file mode 100644 index 000000000000..83c3edc99b67 --- /dev/null +++ b/packages/cli-rs/parity/scenarios/C.10/server-down.cli.ts @@ -0,0 +1,10 @@ +// The server cannot be reached: the connection error as a JSON envelope, exit 1. +import { defineCli } from "../../cli/run" +import { nowMask } from "./fixture" + +export default defineCli({ + args: ["run", "--format", "json", "hello", "--server", "http://127.0.0.1:9"], + // The cause after the address is the HTTP stack's own text (Bun's fetch, reqwest). + masks: [nowMask, { pattern: /(Could not reach server at [^ ]+:) .*?"\}/, replacement: '$1 <cause>"}' }], + stderrLines: 0, +}) diff --git a/packages/cli-rs/parity/scenarios/C.10/session-new.cli.ts b/packages/cli-rs/parity/scenarios/C.10/session-new.cli.ts new file mode 100644 index 000000000000..071df90fb227 --- /dev/null +++ b/packages/cli-rs/parity/scenarios/C.10/session-new.cli.ts @@ -0,0 +1,12 @@ +// `-s ses_named` that the server does not know: the session is created with that ID. +import { defineCli } from "../../cli/run" +import { server, textStep } from "./fixture" + +export default defineCli({ + args: ["run", "-s", "ses_named", "hi"], + server: server({ + sessionID: "ses_named", + events: () => textStep("ok"), + routes: [{ path: "/api/session/ses_named", status: 404, json: { _tag: "SessionNotFoundError", message: "nope" } }], + }), +}) diff --git a/packages/cli-rs/parity/scenarios/C.10/sigint-background.cli.ts b/packages/cli-rs/parity/scenarios/C.10/sigint-background.cli.ts new file mode 100644 index 000000000000..13ba07068058 --- /dev/null +++ b/packages/cli-rs/parity/scenarios/C.10/sigint-background.cli.ts @@ -0,0 +1,25 @@ +// SIGINT while waiting on a background job: the run interrupts the session, removes the shell job this +// prompt started (not the older one), waits until the tree is quiet, and exits with 130. +import { defineCli } from "../../cli/run" +import { server, textStep } from "./fixture" +import { job, old } from "./background.cli" + +export default defineCli({ + args: ["run", "hello"], + server: server({ + events: () => textStep("Started the job."), + routes: [ + { + path: "/api/experimental/job", + json: (_entry: unknown, requests: { method: string; path: string }[]) => ({ + data: requests.some((entry) => entry.method === "DELETE" && entry.path === "/api/shell/sh_1") + ? [old] + : [old, job], + }), + }, + { method: "DELETE", path: "/api/shell/sh_1", status: 204 }, + { method: "POST", path: "/api/session/ses_run/interrupt", json: { interrupted: true } }, + ], + }), + signal: { after: "/api/experimental/job", name: "SIGINT" }, +}) diff --git a/packages/cli-rs/parity/scenarios/C.10/sigint-video.cli.ts b/packages/cli-rs/parity/scenarios/C.10/sigint-video.cli.ts new file mode 100644 index 000000000000..e815db88968c --- /dev/null +++ b/packages/cli-rs/parity/scenarios/C.10/sigint-video.cli.ts @@ -0,0 +1,26 @@ +// SIGINT while a video job runs (#63666): the API can't cancel a video job, so the run interrupts the session +// and exits with 130 instead of waiting for the job, as it does for image and Code Mode jobs. +import { defineCli } from "../../cli/run" +import { server, textStep } from "./fixture" + +const video = { + kind: "video", + id: "vid_1", + sessionID: "ses_run", + status: "running", + title: "a cat surfing", + path: "videos/cat", + time: { started: 3 }, +} + +export default defineCli({ + args: ["run", "hello"], + server: server({ + events: () => textStep("Started the video."), + routes: [ + { path: "/api/experimental/job", json: { data: [video] } }, + { method: "POST", path: "/api/session/ses_run/interrupt", json: { interrupted: true } }, + ], + }), + signal: { after: "/api/experimental/job", name: "SIGINT" }, +}) diff --git a/packages/cli-rs/parity/scenarios/C.10/sigint.cli.ts b/packages/cli-rs/parity/scenarios/C.10/sigint.cli.ts new file mode 100644 index 000000000000..190f6d2ffec4 --- /dev/null +++ b/packages/cli-rs/parity/scenarios/C.10/sigint.cli.ts @@ -0,0 +1,25 @@ +// SIGINT while the session is still working: the run interrupts the session, waits for it to go idle, +// then exits with 130. +import { defineCli } from "../../cli/run" +import { server } from "./fixture" + +const waits = (requests: { path: string }[]) => + requests.filter((entry) => entry.path === "/api/experimental/session/ses_run/wait").length + +export default defineCli({ + args: ["run", "hello"], + server: server({ + end: null, + routes: [ + // The first wait never answers in time; the one after the interrupt does. + { + method: "POST", + path: "/api/experimental/session/ses_run/wait", + status: 204, + delay: (_entry, requests) => (waits(requests) > 1 ? 0 : 20_000), + }, + { method: "POST", path: "/api/session/ses_run/interrupt", json: { interrupted: true } }, + ], + }), + signal: { after: "/api/experimental/session/ses_run/wait", name: "SIGINT" }, +}) diff --git a/packages/cli-rs/parity/scenarios/C.10/sigterm.cli.ts b/packages/cli-rs/parity/scenarios/C.10/sigterm.cli.ts new file mode 100644 index 000000000000..60ff9485f35a --- /dev/null +++ b/packages/cli-rs/parity/scenarios/C.10/sigterm.cli.ts @@ -0,0 +1,10 @@ +// An open, silent stdin (spawn's default stdio) does not hold the run once a message is given, and SIGTERM +// interrupts the session and exits with 143. +import { defineCli } from "../../cli/run" +import sigint from "./sigint.cli" + +export default defineCli({ + ...sigint, + stdinOpen: true, + signal: { after: "/api/experimental/session/ses_run/wait", name: "SIGTERM" }, +}) diff --git a/packages/cli-rs/parity/scenarios/C.10/stdin-only.cli.ts b/packages/cli-rs/parity/scenarios/C.10/stdin-only.cli.ts new file mode 100644 index 000000000000..b99927e752b8 --- /dev/null +++ b/packages/cli-rs/parity/scenarios/C.10/stdin-only.cli.ts @@ -0,0 +1,9 @@ +// With no words, stdin alone is the message. +import { defineCli } from "../../cli/run" +import { server, textStep } from "./fixture" + +export default defineCli({ + args: ["run"], + stdin: "only stdin", + server: server({ events: () => textStep("ok") }), +}) diff --git a/packages/cli-rs/parity/scenarios/C.10/stdin.cli.ts b/packages/cli-rs/parity/scenarios/C.10/stdin.cli.ts new file mode 100644 index 000000000000..01da3ae4d114 --- /dev/null +++ b/packages/cli-rs/parity/scenarios/C.10/stdin.cli.ts @@ -0,0 +1,9 @@ +// Piped stdin follows the message words after a newline. +import { defineCli } from "../../cli/run" +import { server, textStep } from "./fixture" + +export default defineCli({ + args: ["run", "summarize", "this file"], + stdin: "line one\nline two\n", + server: server({ events: () => textStep("Summary.") }), +}) diff --git a/packages/cli-rs/parity/scenarios/C.10/step-failed-json.cli.ts b/packages/cli-rs/parity/scenarios/C.10/step-failed-json.cli.ts new file mode 100644 index 000000000000..1c26219556eb --- /dev/null +++ b/packages/cli-rs/parity/scenarios/C.10/step-failed-json.cli.ts @@ -0,0 +1,14 @@ +// As `step-failed`, in JSON. +import { defineCli } from "../../cli/run" +import { event, nowMask, server } from "./fixture" +import { failed } from "./step-failed.cli" + +export default defineCli({ + args: ["run", "--format", "json", "hello"], + server: server({ + events: () => failed, + end: event("session.execution.failed", { error: { type: "provider", message: "rate limited" } }, 13), + }), + // The final error is stamped with `Date.now()`. + masks: [nowMask], +}) diff --git a/packages/cli-rs/parity/scenarios/C.10/step-failed.cli.ts b/packages/cli-rs/parity/scenarios/C.10/step-failed.cli.ts new file mode 100644 index 000000000000..7eeafd64f25a --- /dev/null +++ b/packages/cli-rs/parity/scenarios/C.10/step-failed.cli.ts @@ -0,0 +1,24 @@ +// A failed step prints the error and exits 1. +import { defineCli } from "../../cli/run" +import { event, server } from "./fixture" + +export const failed = [ + event( + "session.step.started", + { assistantMessageID: "msg_a", agent: "build", model: { id: "model", providerID: "demo" }, started: 11 }, + 11, + ), + event( + "session.step.failed", + { assistantMessageID: "msg_a", error: { type: "provider", message: "Error: rate limited" } }, + 12, + ), +] + +export default defineCli({ + args: ["run", "hello"], + server: server({ + events: () => failed, + end: event("session.execution.failed", { error: { type: "provider", message: "rate limited" } }, 13), + }), +}) diff --git a/packages/cli-rs/parity/scenarios/C.10/text.cli.ts b/packages/cli-rs/parity/scenarios/C.10/text.cli.ts new file mode 100644 index 000000000000..b16541e4e406 --- /dev/null +++ b/packages/cli-rs/parity/scenarios/C.10/text.cli.ts @@ -0,0 +1,34 @@ +// `run hello`: a step with text and a read tool, printed as text (stdout is a pipe, so the text goes there +// and the step and tool lines go to stderr). +import { defineCli } from "../../cli/run" +import { event, server, textStep } from "./fixture" + +export const read = [ + event("session.tool.input.started", { assistantMessageID: "msg_a", id: "call_1", name: "read" }, 14), + event( + "session.tool.called", + { + assistantMessageID: "msg_a", + id: "call_1", + input: { filePath: "/tmp/run/src/a.ts", offset: 1, limit: 20 }, + executed: false, + }, + 15, + ), + event( + "session.tool.success", + { + assistantMessageID: "msg_a", + id: "call_1", + content: [{ type: "text", text: "1: const a = 1" }], + metadata: {}, + executed: false, + }, + 16, + ), +] + +export default defineCli({ + args: ["run", "hello", "world"], + server: server({ events: () => textStep("Hello there.", read) }), +}) diff --git a/packages/cli-rs/parity/scenarios/C.10/thinking-text.cli.ts b/packages/cli-rs/parity/scenarios/C.10/thinking-text.cli.ts new file mode 100644 index 000000000000..469912a86409 --- /dev/null +++ b/packages/cli-rs/parity/scenarios/C.10/thinking-text.cli.ts @@ -0,0 +1,13 @@ +// `run --thinking`: reasoning prints as a `Thinking:` line on stdout when it is a pipe. +import { defineCli } from "../../cli/run" +import { event, server, textStep } from "./fixture" + +const reasoning = [ + event("session.reasoning.started", { assistantMessageID: "msg_a", ordinal: 0 }, 12), + event("session.reasoning.ended", { assistantMessageID: "msg_a", ordinal: 0, text: " Let me look. " }, 12), +] + +export default defineCli({ + args: ["run", "--thinking", "hello"], + server: server({ events: () => textStep("Done.", reasoning) }), +}) diff --git a/packages/cli-rs/parity/scenarios/C.10/tool-failed.cli.ts b/packages/cli-rs/parity/scenarios/C.10/tool-failed.cli.ts new file mode 100644 index 000000000000..ae0e0157cb0c --- /dev/null +++ b/packages/cli-rs/parity/scenarios/C.10/tool-failed.cli.ts @@ -0,0 +1,35 @@ +// A failed shell tool with output: the output as a block, the failure line, then the error. +import { defineCli } from "../../cli/run" +import { event, server, textStep } from "./fixture" + +export default defineCli({ + args: ["run", "hello"], + server: server({ + events: () => + textStep("Tried.", [ + event("session.tool.input.started", { assistantMessageID: "msg_a", id: "call_2", name: "bash" }, 14), + event("session.tool.input.delta", { assistantMessageID: "msg_a", id: "call_2", delta: '{"command":' }, 14), + event( + "session.tool.called", + { + assistantMessageID: "msg_a", + id: "call_2", + input: { command: "make test", description: "Run tests" }, + executed: false, + }, + 15, + ), + event( + "session.tool.failed", + { + assistantMessageID: "msg_a", + id: "call_2", + error: { type: "tool", message: "exit status 2" }, + content: [{ type: "text", text: "FAIL a_test\n" }], + executed: false, + }, + 16, + ), + ]), + }), +}) diff --git a/packages/cli-rs/parity/scenarios/C.10/worktree-continue.cli.ts b/packages/cli-rs/parity/scenarios/C.10/worktree-continue.cli.ts new file mode 100644 index 000000000000..cc8a392d5257 --- /dev/null +++ b/packages/cli-rs/parity/scenarios/C.10/worktree-continue.cli.ts @@ -0,0 +1,5 @@ +// `-w` starts a new session, so it cannot be combined with `-c`. +import { defineCli } from "../../cli/run" +import { server } from "./fixture" + +export default defineCli({ args: ["run", "-w", "-c", "hi"], server: server() }) diff --git a/packages/cli-rs/parity/scenarios/C.10/worktree.cli.ts b/packages/cli-rs/parity/scenarios/C.10/worktree.cli.ts new file mode 100644 index 000000000000..7598c9699108 --- /dev/null +++ b/packages/cli-rs/parity/scenarios/C.10/worktree.cli.ts @@ -0,0 +1,22 @@ +// `-w=feature --title "" --archived`: a worktree of the project, a new session in it titled after the +// message, archived before the prompt. +import { defineCli } from "../../cli/run" +import { server, textStep } from "./fixture" + +export default defineCli({ + args: [ + "run", + "-w=feature", + "--title", + "", + "--archived", + "a message that is longer than fifty characters in total, surely", + ], + server: server({ + events: () => textStep("ok"), + routes: [ + { method: "POST", path: "/api/worktree", json: { directory: "/tmp/wt/feature" } }, + { method: "PATCH", path: "/api/session/ses_run", status: 204 }, + ], + }), +}) diff --git a/packages/cli-rs/parity/scenarios/C.12/login.pty.ts b/packages/cli-rs/parity/scenarios/C.12/login.pty.ts new file mode 100644 index 000000000000..d35f5f1b95c8 --- /dev/null +++ b/packages/cli-rs/parity/scenarios/C.12/login.pty.ts @@ -0,0 +1,38 @@ +// `acp --login` (AC02): runs `auth login` with no target. The command finds the registered fake service +// (C.8's sandbox registration, so no real service or account is touched), opens the integration picker, +// and connects Acme through its external method with the form answers. URL opens go to C.5's sink. +import { definePty } from "../../pty/run" +import { integrationRoutes, sink } from "../C.5/fixture" +import { down, enter, first, press } from "../C.5/keys" +import { env, info, only, register } from "../C.8/fixture" + +export default definePty({ + args: [], + command: only(["acp", "--login"]), + cols: 100, + rows: 40, + env: { ...env, ...sink }, + setup: register, + server: { + version: false, + routes: [ + info([]), + ...integrationRoutes(), + { method: "POST", path: "/api/integration/acme/connect/external", status: 204 }, + ], + }, + steps: [ + first("Select integration", "picker"), + press("acme", "filtered"), + press(enter, "region", "Region"), + press(down + enter, "team", "Team"), + press("core" + enter, "seats", "Seats"), + press("3" + enter, "beta", "Beta features"), + press(enter, "scopes", "Scopes"), + press(enter, "residency", "Data residency"), + press("yes" + enter, "done", "Done"), + ], + osc: [], + exits: true, + requests: true, +}) diff --git a/packages/cli-rs/parity/scenarios/C.13/auto.app.ts b/packages/cli-rs/parity/scenarios/C.13/auto.app.ts new file mode 100644 index 000000000000..4a47e6028e90 --- /dev/null +++ b/packages/cli-rs/parity/scenarios/C.13/auto.app.ts @@ -0,0 +1,15 @@ +// `--auto` (C01): the home prompt's metadata row says `auto` after the agent. +import { defineApp, HOME_PLACEHOLDER } from "../../lib/app" +import { catalog } from "./catalog" + +export default defineApp({ + args: { auto: true }, + routes: catalog, + steps: [ + { + checkpoint: "home", + until: "Demo Model", + masks: [HOME_PLACEHOLDER], + }, + ], +}) diff --git a/packages/cli-rs/parity/scenarios/C.13/bin/opencode b/packages/cli-rs/parity/scenarios/C.13/bin/opencode new file mode 100755 index 000000000000..71f57f8954e2 --- /dev/null +++ b/packages/cli-rs/parity/scenarios/C.13/bin/opencode @@ -0,0 +1,4 @@ +#!/bin/sh +# A TypeScript `opencode` that cannot serve: `serve --service` fails at once. +echo "serve failed" >&2 +exit 1 diff --git a/packages/cli-rs/parity/scenarios/C.13/catalog.ts b/packages/cli-rs/parity/scenarios/C.13/catalog.ts new file mode 100644 index 000000000000..e08255f24138 --- /dev/null +++ b/packages/cli-rs/parity/scenarios/C.13/catalog.ts @@ -0,0 +1,46 @@ +// The catalogs a prompt needs before it can submit: one agent, one provider, one model, as full wire objects. +import { location } from "../../lib/app" +import type { Route } from "../../lib/app" + +const agent = { + id: "build", + name: "build", + mode: "primary", + hidden: false, + permissions: [], + request: { settings: {}, headers: {}, body: {} }, +} + +const provider = { id: "demo", name: "Demo", activation: "auto", package: "demo" } + +const model = { + id: "model", + modelID: "model", + providerID: "demo", + name: "Demo Model", + capabilities: { tools: true, input: ["text"], output: ["text"] }, + variants: [], + time: { released: 0 }, + cost: [], + status: "active", + enabled: true, + limit: { context: 1000, output: 100 }, +} + +export const catalog: Route[] = [ + { path: "/api/agent", json: { location, data: [agent] } }, + { path: "/api/provider", json: { location, data: [provider] } }, + { path: "/api/model", json: { location, data: [model] } }, +] + +// What `POST /api/session/:id/prompt` answers: the admitted inbox item. +export function inbox(sessionID: string) { + return { + id: "msg_p", + sessionID, + time: { created: 3 }, + type: "user", + payload: { text: "hello" }, + delivery: "steer", + } +} diff --git a/packages/cli-rs/parity/scenarios/C.13/command-defect.app.ts b/packages/cli-rs/parity/scenarios/C.13/command-defect.app.ts new file mode 100644 index 000000000000..c11e1c72ba49 --- /dev/null +++ b/packages/cli-rs/parity/scenarios/C.13/command-defect.app.ts @@ -0,0 +1,34 @@ +// A command the server fails with a handler defect (#64022): `session.command` declares the 500, whose body is the +// protocol's `UnknownError`, a message and a log ref. The toast shows the message alone, without the tag or the ref. +import { defineApp, session, user } from "../../lib/app" +import { catalog } from "./catalog" + +const location = { directory: "/tmp/opencode/packages/tui" } + +export default defineApp({ + args: { sessionID: "ses_d" }, + routes: [ + ...catalog, + { path: "/api/command", json: { location, data: [{ name: "review", description: "Review the working tree" }] } }, + { path: "/api/session/ses_d", json: { data: session("ses_d", "Fix the parser", { updated: 2 }) } }, + { path: "/api/session/ses_d/message", json: { data: [user("msg_1", "Why?")], cursor: {} } }, + { path: "/api/session/ses_d/inbox", json: { data: [] } }, + { method: "POST", path: "/api/session/ses_d/agent" }, + { + method: "POST", + path: "/api/session/ses_d/command", + status: 500, + json: { + _tag: "UnknownError", + message: "Server failed to handle the request. Check server logs for details.", + ref: "err_1234abcd", + }, + }, + ], + steps: [ + { checkpoint: "session", until: "Demo Model" }, + { type: "/review now" }, + { keys: ["enter"] }, + { checkpoint: "failed", until: "Check server logs" }, + ], +}) diff --git a/packages/cli-rs/parity/scenarios/C.13/old-service.ts b/packages/cli-rs/parity/scenarios/C.13/old-service.ts new file mode 100644 index 000000000000..d9dda39015aa --- /dev/null +++ b/packages/cli-rs/parity/scenarios/C.13/old-service.ts @@ -0,0 +1,30 @@ +// A background service of version 0.0.1 in its own process, registered for the channel `local` in the registration +// file named by argv[2]: ready on `/api/info`, with no terminals to hand over. The client that restarts it signals +// this process, never the runner. It ends itself after a minute in case no client did. +import { writeFile } from "node:fs/promises" + +const file = process.argv[2] +if (!file) throw new Error("usage: bun old-service.ts <registration>") +const server = Bun.serve({ + port: 0, + hostname: "127.0.0.1", + fetch(request) { + const { origin, pathname } = new URL(request.url) + if (pathname === "/api/info") + return Response.json({ + version: "0.0.1", + pid: process.pid, + urls: [`${origin}/`], + paths: { tmp: "/tmp" }, + capabilities: { persistentPty: true }, + }) + if (pathname === "/api/experimental/persistent-pty/handoff") return Response.json({ handoff: null }) + return new Response("not found", { status: 404 }) + }, +}) +await writeFile( + file, + JSON.stringify({ id: "old", version: "0.0.1", url: server.url.toString(), pid: process.pid, password: "private" }), + { mode: 0o600 }, +) +setTimeout(() => process.exit(0), 60_000) diff --git a/packages/cli-rs/parity/scenarios/C.13/prompt-continue.app.ts b/packages/cli-rs/parity/scenarios/C.13/prompt-continue.app.ts new file mode 100644 index 000000000000..2b5b9e9aa59d --- /dev/null +++ b/packages/cli-rs/parity/scenarios/C.13/prompt-continue.app.ts @@ -0,0 +1,21 @@ +// `--continue --prompt hello` (C01): the prompt goes to the continued session, not to a new one. +import { defineApp, session, user } from "../../lib/app" +import { catalog, inbox } from "./catalog" + +export default defineApp({ + args: { continue: true, prompt: "hello" }, + routes: [ + ...catalog, + { path: "/api/session", json: { data: [session("ses_b", "Fix the parser", { updated: 2 })], cursor: {} } }, + { path: "/api/session/ses_b", json: { data: session("ses_b", "Fix the parser", { updated: 2 }) } }, + { path: "/api/session/ses_b/message", json: { data: [user("msg_1", "Why?")], cursor: {} } }, + { path: "/api/session/ses_b/inbox", json: { data: [] } }, + { method: "POST", path: "/api/session/ses_b/agent" }, + { method: "POST", path: "/api/session/ses_b/prompt", json: { data: inbox("ses_b") } }, + // TS opens a placeholder session route ("dummy") until the list answers; the Rust TUI stays on home. + { path: "/api/session/dummy", json: { data: session("dummy", "") } }, + { path: "/api/session/dummy/message", json: { data: [], cursor: {} } }, + { path: "/api/session/dummy/inbox", json: { data: [] } }, + ], + steps: [{ checkpoint: "sent", until: "Fix the parser" }], +}) diff --git a/packages/cli-rs/parity/scenarios/C.13/prompt-new.app.ts b/packages/cli-rs/parity/scenarios/C.13/prompt-new.app.ts new file mode 100644 index 000000000000..e244897af5cc --- /dev/null +++ b/packages/cli-rs/parity/scenarios/C.13/prompt-new.app.ts @@ -0,0 +1,17 @@ +// `--prompt hello --session ses_new` where the server has no `ses_new` (C01): the home prompt shows the text, +// submits it once the catalogs load, and the session it creates takes the ID `ses_new`. +import { defineApp, session } from "../../lib/app" +import { catalog, inbox } from "./catalog" + +export default defineApp({ + args: { prompt: "hello", newSessionID: "ses_new" }, + routes: [ + ...catalog, + { method: "POST", path: "/api/session", json: { data: session("ses_new", "") } }, + { path: "/api/session/ses_new", json: { data: session("ses_new", "") } }, + { path: "/api/session/ses_new/message", json: { data: [], cursor: {} } }, + { path: "/api/session/ses_new/inbox", json: { data: [] } }, + { method: "POST", path: "/api/session/ses_new/prompt", json: { data: inbox("ses_new") } }, + ], + steps: [{ checkpoint: "sent", until: "Demo Model" }], +}) diff --git a/packages/cli-rs/parity/scenarios/C.13/prompt-session.app.ts b/packages/cli-rs/parity/scenarios/C.13/prompt-session.app.ts new file mode 100644 index 000000000000..fffcd6b741bc --- /dev/null +++ b/packages/cli-rs/parity/scenarios/C.13/prompt-session.app.ts @@ -0,0 +1,16 @@ +// `--session ses_b --prompt hello` (C01): the session opens with the text in its prompt and sends it. +import { defineApp, session, user } from "../../lib/app" +import { catalog, inbox } from "./catalog" + +export default defineApp({ + args: { sessionID: "ses_b", prompt: "hello" }, + routes: [ + ...catalog, + { path: "/api/session/ses_b", json: { data: session("ses_b", "Fix the parser", { updated: 2 }) } }, + { path: "/api/session/ses_b/message", json: { data: [user("msg_1", "Why?")], cursor: {} } }, + { path: "/api/session/ses_b/inbox", json: { data: [] } }, + { method: "POST", path: "/api/session/ses_b/agent" }, + { method: "POST", path: "/api/session/ses_b/prompt", json: { data: inbox("ses_b") } }, + ], + steps: [{ checkpoint: "sent", until: "Demo Model" }], +}) diff --git a/packages/cli-rs/parity/scenarios/C.13/service-restart.cli.ts b/packages/cli-rs/parity/scenarios/C.13/service-restart.cli.ts new file mode 100644 index 000000000000..5ee8ccb1b9e0 --- /dev/null +++ b/packages/cli-rs/parity/scenarios/C.13/service-restart.cli.ts @@ -0,0 +1,28 @@ +// The root command with a background service of another version registered in its channel (O-167): "Restarting +// background server (version mismatch)..." on stderr, the old service stopped, then the replacement started, which +// fails as in `service-start.cli.ts`, and exit 1. Only the first stderr line is compared: what follows is the failed +// child's error, which differs as `service-start.cli.ts` says. Both sides run as channel `local`, the TS CLI from +// source's, and the old service is its own process, so stopping it signals no runner. +import { mkdir } from "node:fs/promises" +import path from "node:path" +import { defineCli } from "../../cli/run" + +export default defineCli({ + args: [], + env: { + PATH: `${path.join(import.meta.dir, "bin")}:${process.env.PATH ?? "/usr/bin:/bin"}`, + OPENCODE_CHANNEL: "local", + }, + timeout: 30_000, + stderrLines: 1, + setup: async (root) => { + const state = path.join(root, "home/.local/state/opencode") + await mkdir(state, { recursive: true }) + const file = path.join(state, "service-local.json") + Bun.spawn(["bun", path.join(import.meta.dir, "old-service.ts"), file], { stdio: ["ignore", "ignore", "inherit"] }) + for (let tries = 0; !(await Bun.file(file).exists()); tries++) { + if (tries > 500) throw new Error("the old service did not register") + await Bun.sleep(10) + } + }, +}) diff --git a/packages/cli-rs/parity/scenarios/C.13/service-start.cli.ts b/packages/cli-rs/parity/scenarios/C.13/service-start.cli.ts new file mode 100644 index 000000000000..9e73c00b7b50 --- /dev/null +++ b/packages/cli-rs/parity/scenarios/C.13/service-start.cli.ts @@ -0,0 +1,13 @@ +// The root command with no background service (G06): "Starting background server..." on stderr, then the +// error of the `serve --service` child that fails, and exit 1. Only the first two stderr lines are compared: +// the TS CLI from source spawns itself and adds a JS stack trace (C40-handler-errors), while Rust spawns the +// `opencode` on PATH, here `bin/opencode`, and prints that child's stderr tail. +import path from "node:path" +import { defineCli } from "../../cli/run" + +export default defineCli({ + args: [], + env: { PATH: `${path.join(import.meta.dir, "bin")}:${process.env.PATH ?? "/usr/bin:/bin"}` }, + timeout: 20_000, + stderrLines: 2, +}) diff --git a/packages/cli-rs/parity/scenarios/C.13/session-invalid-id.cli.ts b/packages/cli-rs/parity/scenarios/C.13/session-invalid-id.cli.ts new file mode 100644 index 000000000000..6319230047c9 --- /dev/null +++ b/packages/cli-rs/parity/scenarios/C.13/session-invalid-id.cli.ts @@ -0,0 +1,16 @@ +// `-s bad_id`: the session lookup gets a declared error (400); the command fails with its message +// without the tag, as `errorMessage` prints it. +import { defineCli } from "../../cli/run" + +export default defineCli({ + args: ["-s", "bad_id"], + server: { + routes: [ + { + path: "/api/session/bad_id", + status: 400, + json: { _tag: "InvalidRequestError", message: "Invalid session ID: bad_id" }, + }, + ], + }, +}) diff --git a/packages/cli-rs/parity/scenarios/C.13/session-lookup-fails.cli.ts b/packages/cli-rs/parity/scenarios/C.13/session-lookup-fails.cli.ts new file mode 100644 index 000000000000..68111bdd0abf --- /dev/null +++ b/packages/cli-rs/parity/scenarios/C.13/session-lookup-fails.cli.ts @@ -0,0 +1,8 @@ +// `--session ses_x --server <url>` (C01): the root command looks the session up before the TUI starts; a +// failing lookup ends the command with the error and exit 1. +import { defineCli } from "../../cli/run" + +export default defineCli({ + args: ["--session", "ses_x"], + server: { routes: [{ path: "/api/session/ses_x", status: 500, json: { message: "boom" } }] }, +}) diff --git a/packages/cli-rs/parity/scenarios/C.15/api.pty.ts b/packages/cli-rs/parity/scenarios/C.15/api.pty.ts new file mode 100644 index 000000000000..5a8be9b92351 --- /dev/null +++ b/packages/cli-rs/parity/scenarios/C.15/api.pty.ts @@ -0,0 +1,26 @@ +// `api --wizard`: a text flag, a repeatable flag (a count, then each value), a skipped key=value flag, and the +// variadic positional (a count, then each word). Runs the request against the fake server. +import { definePty } from "../../pty/run" +import { enter, first, press } from "../C.5/keys" + +export default definePty({ + args: ["api", "--wizard"], + server: { routes: [{ method: "POST", path: "/api/thing", status: 201, body: "created" }] }, + steps: [ + first("Set Request body (--data)?", "data"), + press("y", "data-text", "Request body (--data) ›"), + press(`{"name":"it's"}`, "data-typed"), + press(enter, "header-count", "Header (--header) count"), + press("k", "header-count-up"), + press(enter, "header", "(--header) ›"), + press("X-Test: one" + enter, "param", "(--param)?"), + press("n", "request-count", "Operation | method path count"), + press("\x152", "request-count-typed"), + press(enter, "request", "Operation | method path ›"), + press("POST" + enter, "request-path"), + press("/api/thing" + enter, "ready", "Run this command?"), + press(enter, "ran", "created"), + ], + exits: true, + requests: true, +}) diff --git a/packages/cli-rs/parity/scenarios/C.15/cancel.pty.ts b/packages/cli-rs/parity/scenarios/C.15/cancel.pty.ts new file mode 100644 index 000000000000..c4bafa67c84a --- /dev/null +++ b/packages/cli-rs/parity/scenarios/C.15/cancel.pty.ts @@ -0,0 +1,16 @@ +// Ctrl+C in a text prompt of `session import --wizard`: "Wizard cancelled.", exit 0, nothing imported. +import { definePty } from "../../pty/run" +import { enter, first, press } from "../C.5/keys" + +export default definePty({ + args: ["session", "import", "--wizard"], + server: { routes: [] }, + steps: [ + first("(--directory)?", "directory"), + press(enter, "file", "File ›"), + press("notes.json", "file-typed"), + press("\x03", "cancelled", "Wizard cancelled."), + ], + exits: true, + requests: true, +}) diff --git a/packages/cli-rs/parity/scenarios/C.15/decline.pty.ts b/packages/cli-rs/parity/scenarios/C.15/decline.pty.ts new file mode 100644 index 000000000000..28e649745264 --- /dev/null +++ b/packages/cli-rs/parity/scenarios/C.15/decline.pty.ts @@ -0,0 +1,27 @@ +// `mcp add --wizard`: optional flags left out, a repeatable key=value flag (a count below its minimum is an +// error), a boolean, the arguments, and No at the confirmation, so nothing is written. +import { definePty } from "../../pty/run" +import { enter, first, press, right } from "../C.5/keys" + +export default definePty({ + args: ["mcp", "add", "--wizard"], + steps: [ + first("(--url)?", "url"), + press(enter, "header", "(--header)?"), + press("n", "env", "(--env)?"), + press("y", "env-count", "count"), + press("j", "env-count-down"), + press(enter, "env-count-error", "must be greater than or equal to 1"), + press("kk", "env-count-up"), + press(enter, "env-first", "(--env) ›"), + press("A=1" + enter, "env-second"), + press("B=two words" + enter, "global", "(--global)?"), + press("y", "global-value", "(t/F)"), + press("t", "name", "Name ›"), + press("docs" + enter, "command-count", "Command count"), + press(enter, "ready", "Run this command?"), + press(right, "no"), + press(enter, "declined"), + ], + exits: true, +}) diff --git a/packages/cli-rs/parity/scenarios/C.15/enum.pty.ts b/packages/cli-rs/parity/scenarios/C.15/enum.pty.ts new file mode 100644 index 000000000000..0b5d0b71aa18 --- /dev/null +++ b/packages/cli-rs/parity/scenarios/C.15/enum.pty.ts @@ -0,0 +1,21 @@ +// `session list --wizard`: an integer flag (a non-number beeps, a number is kept) and a choice flag. +import { definePty } from "../../pty/run" +import { list, location, sessions } from "../C.2/fixture" +import { down, enter, first, press } from "../C.5/keys" + +export default definePty({ + args: ["session", "list", "--wizard"], + server: { routes: [location, list(sessions)] }, + steps: [ + first("(--max-count)?", "max-count"), + press("y", "max-count-empty", "(--max-count) ›"), + press("x2", "max-count-typed"), + press(enter, "format", "Set Output format (--format)?"), + press("y", "format-choices", "table"), + press(down, "format-json"), + press(enter, "ready", "Run this command?"), + press(enter, "ran", "ses_"), + ], + exits: true, + requests: true, +}) diff --git a/packages/cli-rs/parity/scenarios/C.15/escape.pty.ts b/packages/cli-rs/parity/scenarios/C.15/escape.pty.ts new file mode 100644 index 000000000000..6eb8bf0937b0 --- /dev/null +++ b/packages/cli-rs/parity/scenarios/C.15/escape.pty.ts @@ -0,0 +1,15 @@ +// `--wizard` at the root: the subcommand list pages ten at a time and wraps around; Escape cancels. +import { definePty } from "../../pty/run" +import { down, escape, first, press } from "../C.5/keys" + +export default definePty({ + args: ["--wizard"], + steps: [ + first("Command", "root"), + press("k", "wrapped", "serve"), + press("j", "back"), + press(down.repeat(6), "middle"), + press(escape, "cancelled", "Wizard cancelled."), + ], + exits: true, +}) diff --git a/packages/cli-rs/parity/scenarios/C.15/group.pty.ts b/packages/cli-rs/parity/scenarios/C.15/group.pty.ts new file mode 100644 index 000000000000..9ca6b006a01b --- /dev/null +++ b/packages/cli-rs/parity/scenarios/C.15/group.pty.ts @@ -0,0 +1,17 @@ +// `debug --wizard`: picks a subcommand, then sets its optional choice argument, and runs the command. +import { definePty } from "../../pty/run" +import { down, enter, first, press } from "../C.5/keys" + +export default definePty({ + args: ["debug", "--wizard"], + steps: [ + first("Command", "command"), + press(down + down + down, "paths"), + press(enter, "set-name", "Set Name?"), + press("y", "name", "db"), + press(down, "name-home"), + press(enter, "ready", "Run this command?"), + press(enter, "ran", "home"), + ], + exits: true, +}) diff --git a/packages/cli-rs/parity/scenarios/C.15/invalid.pty.ts b/packages/cli-rs/parity/scenarios/C.15/invalid.pty.ts new file mode 100644 index 000000000000..31a3b5a59484 --- /dev/null +++ b/packages/cli-rs/parity/scenarios/C.15/invalid.pty.ts @@ -0,0 +1,20 @@ +// `session list --wizard` with `--max-count 0`: the value fails the flag's schema after its prompt, and the +// wizard fails with exit 1 before anything runs. TS prints the error with a JavaScript stack trace, Rust +// prints `Error: Invalid value for flag --max-count: "0". ...` (deviation C40-handler-errors), so the screen +// after the error is not compared. +import { definePty } from "../../pty/run" +import { list, location, sessions } from "../C.2/fixture" +import { enter, first, press } from "../C.5/keys" + +export default definePty({ + args: ["session", "list", "--wizard"], + server: { routes: [location, list(sessions)] }, + steps: [ + first("(--max-count)?", "max-count"), + press("y", "max-count-empty", "(--max-count) ›"), + press("0", "max-count-typed"), + { keys: enter, until: { screen: 'Invalid value for flag --max-count: "0"' }, settle: 300 }, + ], + exits: true, + requests: true, +}) diff --git a/packages/cli-rs/parity/scenarios/C.15/piped-empty.cli.ts b/packages/cli-rs/parity/scenarios/C.15/piped-empty.cli.ts new file mode 100644 index 000000000000..994d95564352 --- /dev/null +++ b/packages/cli-rs/parity/scenarios/C.15/piped-empty.cli.ts @@ -0,0 +1,5 @@ +// `debug --wizard` with nothing on stdin: the subcommand select meets the end of input, so the wizard is +// cancelled with exit 0 and nothing runs. +import { defineCli } from "../../cli/run" + +export default defineCli({ args: ["debug", "--wizard"], stdin: "" }) diff --git a/packages/cli-rs/parity/scenarios/C.15/piped.cli.ts b/packages/cli-rs/parity/scenarios/C.15/piped.cli.ts new file mode 100644 index 000000000000..fef250767bc4 --- /dev/null +++ b/packages/cli-rs/parity/scenarios/C.15/piped.cli.ts @@ -0,0 +1,6 @@ +// `debug paths --wizard` with keys from a pipe: the first prompt takes "y" and loses the rest of the chunk, as +// each Effect prompt reads from a queue of its own; the next prompt meets the end of input and the wizard is +// cancelled with exit 0. stdout keeps every cursor movement and erase, without colors. +import { defineCli } from "../../cli/run" + +export default defineCli({ args: ["debug", "paths", "--wizard"], stdin: "y\x1b[B\r" }) diff --git a/packages/cli-rs/parity/scenarios/C.2/delete-missing.cli.ts b/packages/cli-rs/parity/scenarios/C.2/delete-missing.cli.ts new file mode 100644 index 000000000000..79593a1dcb86 --- /dev/null +++ b/packages/cli-rs/parity/scenarios/C.2/delete-missing.cli.ts @@ -0,0 +1,16 @@ +// Deleting an unknown session: the declared error's message, exit 1. +import { defineCli } from "../../cli/run" + +export default defineCli({ + args: ["session", "delete", "ses_zzzzzzzz9999"], + server: { + routes: [ + { + method: "DELETE", + path: "/api/session/:id", + status: 404, + json: { _tag: "SessionNotFoundError", message: "Session not found: ses_zzzzzzzz9999" }, + }, + ], + }, +}) diff --git a/packages/cli-rs/parity/scenarios/C.2/delete.cli.ts b/packages/cli-rs/parity/scenarios/C.2/delete.cli.ts new file mode 100644 index 000000000000..d74e508bda7d --- /dev/null +++ b/packages/cli-rs/parity/scenarios/C.2/delete.cli.ts @@ -0,0 +1,7 @@ +// `session delete <id>`: one DELETE, then the confirmation. +import { defineCli } from "../../cli/run" + +export default defineCli({ + args: ["session", "delete", "ses_aaaaaaaa0001"], + server: { routes: [{ method: "DELETE", path: "/api/session/:id", status: 204 }] }, +}) diff --git a/packages/cli-rs/parity/scenarios/C.2/export-cancel.pty.ts b/packages/cli-rs/parity/scenarios/C.2/export-cancel.pty.ts new file mode 100644 index 000000000000..e75f66ca5ca9 --- /dev/null +++ b/packages/cli-rs/parity/scenarios/C.2/export-cancel.pty.ts @@ -0,0 +1,17 @@ +// Escape in the export picker: "Cancelled", exit 130, and no export request. +import { definePty } from "../../pty/run" +import { exportRoute, list, location, sessions } from "./fixture" + +export default definePty({ + args: ["session", "export"], + cols: 90, + rows: 20, + server: { routes: [location, list(sessions), exportRoute()] }, + steps: [ + { until: { screen: "Select session to export" }, settle: 300, timeout: 30_000 }, + { keys: "\x1b", until: { screen: "Cancelled" }, settle: 300, checkpoint: "cancelled" }, + ], + osc: [], + exits: true, + requests: true, +}) diff --git a/packages/cli-rs/parity/scenarios/C.2/export-empty.pty.ts b/packages/cli-rs/parity/scenarios/C.2/export-empty.pty.ts new file mode 100644 index 000000000000..afb2f00e4e7c --- /dev/null +++ b/packages/cli-rs/parity/scenarios/C.2/export-empty.pty.ts @@ -0,0 +1,14 @@ +// The export picker with no sessions: "No sessions found", "Done", exit 0. +import { definePty } from "../../pty/run" +import { exportRoute, list, location } from "./fixture" + +export default definePty({ + args: ["session", "export"], + cols: 90, + rows: 20, + server: { routes: [location, list([]), exportRoute()] }, + steps: [{ until: { screen: "Done" }, settle: 300, checkpoint: "empty", timeout: 30_000 }], + osc: [], + exits: true, + requests: true, +}) diff --git a/packages/cli-rs/parity/scenarios/C.2/export-no-tty.cli.ts b/packages/cli-rs/parity/scenarios/C.2/export-no-tty.cli.ts new file mode 100644 index 000000000000..f606c99dae5e --- /dev/null +++ b/packages/cli-rs/parity/scenarios/C.2/export-no-tty.cli.ts @@ -0,0 +1,5 @@ +// `session export` without an ID and without a terminal fails before it connects. +import { defineCli } from "../../cli/run" +import { exportRoute } from "./fixture" + +export default defineCli({ args: ["session", "export"], server: { routes: [exportRoute()] } }) diff --git a/packages/cli-rs/parity/scenarios/C.2/export-picker.pty.ts b/packages/cli-rs/parity/scenarios/C.2/export-picker.pty.ts new file mode 100644 index 000000000000..3cbc937eea8a --- /dev/null +++ b/packages/cli-rs/parity/scenarios/C.2/export-picker.pty.ts @@ -0,0 +1,20 @@ +// `session export` without an ID on a terminal: the picker (on stderr) lists the sessions with their +// time and short ID, typing filters, Enter exports the focused one. +import { definePty } from "../../pty/run" +import { exportRoute, list, location, sessions } from "./fixture" + +export default definePty({ + args: ["session", "export"], + cols: 90, + rows: 30, + server: { routes: [location, list(sessions), exportRoute()] }, + steps: [ + { until: { screen: "Select session to export" }, settle: 300, checkpoint: "picker", timeout: 30_000 }, + { keys: "\x1b[B", settle: 250, checkpoint: "moved" }, + { keys: "parser", settle: 250, checkpoint: "filtered" }, + { keys: "\r", until: { screen: "messages" }, settle: 300, checkpoint: "exported" }, + ], + osc: [], + exits: true, + requests: true, +}) diff --git a/packages/cli-rs/parity/scenarios/C.2/export-redirect-term.pty.ts b/packages/cli-rs/parity/scenarios/C.2/export-redirect-term.pty.ts new file mode 100644 index 000000000000..ffdfca1b09a4 --- /dev/null +++ b/packages/cli-rs/parity/scenarios/C.2/export-redirect-term.pty.ts @@ -0,0 +1,31 @@ +// `session export > out.json` and SIGTERM while the picker (on stderr) is open: the shutdown leaves the +// redirected stdout empty. The cursor the picker hid is shown again on stderr, the terminal it hid it on. +// A shell runs the CLI with stdout redirected and sends the signal once the picker has the terminal in +// raw mode, then prints what reached the file. +import { definePty } from "../../pty/run" +import { command, withServer } from "../../cli/client" +import { list, location, sessions } from "./fixture" + +const script = [ + `(until stty -a </dev/tty | grep -q -- -icanon; do sleep 0.05; done; sleep 0.5; kill -TERM "$(cat pid)") &`, + `sh -c 'echo $$ > pid; exec "$@"' sh "$@" > out.json`, + `wait`, + `echo "stdout bytes: $(wc -c < out.json)"`, +].join("\n") + +export default definePty({ + args: [], + command: (side, server) => [ + "bash", + "-c", + script, + "bash", + ...command(side, withServer(["session", "export"], server)), + ], + cols: 90, + rows: 30, + server: { routes: [location, list(sessions)] }, + steps: [{ until: { screen: "stdout bytes:" }, settle: 300, checkpoint: "after", timeout: 30_000 }], + osc: [], + exits: true, +}) diff --git a/packages/cli-rs/parity/scenarios/C.2/export-unsanitized.cli.ts b/packages/cli-rs/parity/scenarios/C.2/export-unsanitized.cli.ts new file mode 100644 index 000000000000..a4a40236926d --- /dev/null +++ b/packages/cli-rs/parity/scenarios/C.2/export-unsanitized.cli.ts @@ -0,0 +1,5 @@ +// Without `--sanitize`, the query still says `sanitize=false`. +import { defineCli } from "../../cli/run" +import { exportRoute } from "./fixture" + +export default defineCli({ args: ["session", "export", "ses_aaaaaaaa0001"], server: { routes: [exportRoute()] } }) diff --git a/packages/cli-rs/parity/scenarios/C.2/export.cli.ts b/packages/cli-rs/parity/scenarios/C.2/export.cli.ts new file mode 100644 index 000000000000..534452ab02ba --- /dev/null +++ b/packages/cli-rs/parity/scenarios/C.2/export.cli.ts @@ -0,0 +1,8 @@ +// `session export <id> --sanitize`: the transfer data, pretty-printed. +import { defineCli } from "../../cli/run" +import { exportRoute } from "./fixture" + +export default defineCli({ + args: ["session", "export", "ses_aaaaaaaa0001", "--sanitize"], + server: { routes: [exportRoute()] }, +}) diff --git a/packages/cli-rs/parity/scenarios/C.2/fixture.ts b/packages/cli-rs/parity/scenarios/C.2/fixture.ts new file mode 100644 index 000000000000..792a73d275a0 --- /dev/null +++ b/packages/cli-rs/parity/scenarios/C.2/fixture.ts @@ -0,0 +1,45 @@ +// Sessions and routes the C.2 (`session`) scenarios share. Times are fixed epoch milliseconds; both +// clients format them in the machine's time zone. +import path from "node:path" +import type { Route } from "../../lib/fake-server" + +export const directory = "/srv/project/app" + +export function session(id: string, title: string | null | undefined, updated: number) { + return { + id, + ...(title === undefined ? {} : { title }), + projectID: "proj_test", + cost: 0, + tokens: { input: 0, output: 0, reasoning: 0, cache: { read: 0, write: 0 } }, + time: { created: updated - 60_000, updated }, + location: { directory }, + } +} + +export const sessions = [ + session("ses_aaaaaaaa0001", "Fix the parser", 1_762_268_645_123), + session("ses_bbbbbbbb0002", "Tabs\tand\nnewlines", 1_762_230_000_000), + session("ses_cccccccc0003", undefined, 1_700_000_000_000), +] + +export const location: Route = { + path: "/api/location", + json: { directory, project: { id: "proj_test", directory: "/srv/project", canonical: "/srv/project" } }, +} + +export function list(data: unknown[]): Route { + return { path: "/api/session", json: { location: location.json, data, cursor: {} } } +} + +export const exported = { + info: sessions[0], + messages: [{ id: "msg_aaaaaaaa0001", role: "user", text: "hello" }], +} + +export function exportRoute(): Route { + return { path: "/api/experimental/session/:id/export", json: { data: exported } } +} + +// A transcript file for `session import`, with a `location` the command replaces in place. +export const importFile = path.join(import.meta.dir, "import.json") diff --git a/packages/cli-rs/parity/scenarios/C.2/import-declared.cli.ts b/packages/cli-rs/parity/scenarios/C.2/import-declared.cli.ts new file mode 100644 index 000000000000..972fc75014c5 --- /dev/null +++ b/packages/cli-rs/parity/scenarios/C.2/import-declared.cli.ts @@ -0,0 +1,20 @@ +// A declared error from the import (400 with a message): TS reads the raw response, so it fails with the status +// text, not the message. Only the first stderr line is compared; the rest is a JavaScript stack trace. +import { defineCli } from "../../cli/run" +import { importFile, location } from "./fixture" + +export default defineCli({ + args: ["session", "import", importFile], + server: { + routes: [ + location, + { + method: "POST", + path: "/api/experimental/session/import", + status: 400, + json: { _tag: "BadRequest", message: "Invalid session data" }, + }, + ], + }, + stderrLines: 1, +}) diff --git a/packages/cli-rs/parity/scenarios/C.2/import-exists.cli.ts b/packages/cli-rs/parity/scenarios/C.2/import-exists.cli.ts new file mode 100644 index 000000000000..30220330eaa4 --- /dev/null +++ b/packages/cli-rs/parity/scenarios/C.2/import-exists.cli.ts @@ -0,0 +1,13 @@ +// A 409 from the import: "Session already exists" on stderr, exit 0. +import { defineCli } from "../../cli/run" +import { importFile, location } from "./fixture" + +export default defineCli({ + args: ["session", "import", importFile], + server: { + routes: [ + location, + { method: "POST", path: "/api/experimental/session/import", status: 409, json: { _tag: "Conflict" } }, + ], + }, +}) diff --git a/packages/cli-rs/parity/scenarios/C.2/import-failed.cli.ts b/packages/cli-rs/parity/scenarios/C.2/import-failed.cli.ts new file mode 100644 index 000000000000..715c1623c552 --- /dev/null +++ b/packages/cli-rs/parity/scenarios/C.2/import-failed.cli.ts @@ -0,0 +1,12 @@ +// A failed import: the error escapes the TS handler (C40-handler-errors), so only its first stderr line, +// which carries the message, is compared; the rest is a JavaScript stack trace. +import { defineCli } from "../../cli/run" +import { importFile, location } from "./fixture" + +export default defineCli({ + args: ["session", "import", importFile], + server: { + routes: [location, { method: "POST", path: "/api/experimental/session/import", status: 500, json: {} }], + }, + stderrLines: 1, +}) diff --git a/packages/cli-rs/parity/scenarios/C.2/import-missing.cli.ts b/packages/cli-rs/parity/scenarios/C.2/import-missing.cli.ts new file mode 100644 index 000000000000..741e752faf11 --- /dev/null +++ b/packages/cli-rs/parity/scenarios/C.2/import-missing.cli.ts @@ -0,0 +1,10 @@ +// A file that does not exist: the read fails before the command connects. The error escapes the TS +// handler (C40-handler-errors); only the first stderr line is compared. +import { defineCli } from "../../cli/run" +import { location } from "./fixture" + +export default defineCli({ + args: ["session", "import", "missing.json"], + server: { routes: [location] }, + stderrLines: 1, +}) diff --git a/packages/cli-rs/parity/scenarios/C.2/import.cli.ts b/packages/cli-rs/parity/scenarios/C.2/import.cli.ts new file mode 100644 index 000000000000..ee063e8f3059 --- /dev/null +++ b/packages/cli-rs/parity/scenarios/C.2/import.cli.ts @@ -0,0 +1,18 @@ +// `session import <file> --directory sub/..`: the file's `location` is replaced in place by the +// resolved location, and the server's session ID is printed. +import { defineCli } from "../../cli/run" +import { importFile, location, session } from "./fixture" + +export default defineCli({ + args: ["session", "import", importFile, "--directory", "sub/.."], + server: { + routes: [ + location, + { + method: "POST", + path: "/api/experimental/session/import", + json: { data: session("ses_eeeeeeee0005", "Imported", 2) }, + }, + ], + }, +}) diff --git a/packages/cli-rs/parity/scenarios/C.2/import.json b/packages/cli-rs/parity/scenarios/C.2/import.json new file mode 100644 index 000000000000..aa32ed0dc6f1 --- /dev/null +++ b/packages/cli-rs/parity/scenarios/C.2/import.json @@ -0,0 +1,13 @@ +{ + "info": { + "id": "ses_dddddddd0004", + "title": "Imported", + "projectID": "proj_other", + "cost": 0, + "tokens": { "input": 0, "output": 0, "reasoning": 0, "cache": { "read": 0, "write": 0 } }, + "time": { "created": 1, "updated": 2 }, + "location": { "directory": "/elsewhere" } + }, + "location": { "directory": "/elsewhere" }, + "messages": [] +} diff --git a/packages/cli-rs/parity/scenarios/C.2/list-empty-json.cli.ts b/packages/cli-rs/parity/scenarios/C.2/list-empty-json.cli.ts new file mode 100644 index 000000000000..cfe4eee1e241 --- /dev/null +++ b/packages/cli-rs/parity/scenarios/C.2/list-empty-json.cli.ts @@ -0,0 +1,5 @@ +// `session list --format json` with no sessions prints `[]`. +import { defineCli } from "../../cli/run" +import { list, location } from "./fixture" + +export default defineCli({ args: ["session", "list", "--format", "json"], server: { routes: [location, list([])] } }) diff --git a/packages/cli-rs/parity/scenarios/C.2/list-empty.cli.ts b/packages/cli-rs/parity/scenarios/C.2/list-empty.cli.ts new file mode 100644 index 000000000000..9182e4367a99 --- /dev/null +++ b/packages/cli-rs/parity/scenarios/C.2/list-empty.cli.ts @@ -0,0 +1,5 @@ +// `session list` with no sessions prints nothing; `--format json` prints `[]`. +import { defineCli } from "../../cli/run" +import { list, location } from "./fixture" + +export default defineCli({ args: ["session", "list"], server: { routes: [location, list([])] } }) diff --git a/packages/cli-rs/parity/scenarios/C.2/list-error.cli.ts b/packages/cli-rs/parity/scenarios/C.2/list-error.cli.ts new file mode 100644 index 000000000000..3adf6b9ccdc7 --- /dev/null +++ b/packages/cli-rs/parity/scenarios/C.2/list-error.cli.ts @@ -0,0 +1,10 @@ +// A declared error from the list: its bare message on stderr, exit 1. +import { defineCli } from "../../cli/run" +import { location } from "./fixture" + +export default defineCli({ + args: ["session", "list"], + server: { + routes: [location, { path: "/api/session", status: 400, json: { _tag: "BadRequest", message: "Invalid cursor" } }], + }, +}) diff --git a/packages/cli-rs/parity/scenarios/C.2/list-json.cli.ts b/packages/cli-rs/parity/scenarios/C.2/list-json.cli.ts new file mode 100644 index 000000000000..b27767c3c0b1 --- /dev/null +++ b/packages/cli-rs/parity/scenarios/C.2/list-json.cli.ts @@ -0,0 +1,8 @@ +// `session list -n 2 --format json`: the summary fields, a missing title left out. +import { defineCli } from "../../cli/run" +import { list, location, sessions } from "./fixture" + +export default defineCli({ + args: ["session", "list", "-n", "2", "--format", "json"], + server: { routes: [location, list(sessions)] }, +}) diff --git a/packages/cli-rs/parity/scenarios/C.2/list-pager-interrupt.pty.ts b/packages/cli-rs/parity/scenarios/C.2/list-pager-interrupt.pty.ts new file mode 100644 index 000000000000..7465e990c1ea --- /dev/null +++ b/packages/cli-rs/parity/scenarios/C.2/list-pager-interrupt.pty.ts @@ -0,0 +1,29 @@ +// Ctrl+C in the `session list` pager stops `less` and waits for it before the CLI exits 130, so the +// terminal leaves the alternate screen and no `less` is left behind (TS: the scoped `AppProcess`). +// A non-interactive shell runs the CLI and keeps the terminal afterwards, as an interactive shell would, +// so the screen and the `less` processes of the session can be checked once the CLI is gone. +import { definePty } from "../../pty/run" +import { command, withServer } from "../../cli/client" +import { list, location, sessions } from "./fixture" + +const script = [ + `"$@"`, + `code=$?`, + `sleep 0.5`, + `if pgrep -s 0 -x less >/dev/null; then echo "less left"; else echo "no less"; fi`, + `echo "exit $code"`, +].join("\n") + +export default definePty({ + args: [], + command: (side, server) => ["bash", "-c", script, "bash", ...command(side, withServer(["session", "list"], server))], + cols: 60, + rows: 10, + server: { routes: [location, list(sessions)] }, + steps: [ + { until: { screen: "Fix the parser" }, settle: 300, timeout: 30_000 }, + { keys: "\x03", until: { screen: /exit \d+/ }, settle: 300, checkpoint: "after", timeout: 15_000 }, + ], + osc: [], + exits: true, +}) diff --git a/packages/cli-rs/parity/scenarios/C.2/list-pager.pty.ts b/packages/cli-rs/parity/scenarios/C.2/list-pager.pty.ts new file mode 100644 index 000000000000..70d33f45edb8 --- /dev/null +++ b/packages/cli-rs/parity/scenarios/C.2/list-pager.pty.ts @@ -0,0 +1,26 @@ +// `session list` on a terminal pages through `less -R -S`: long lines are cut, not wrapped, and `q` +// quits with exit 0. +import { definePty } from "../../pty/run" +import { list, location, session, sessions } from "./fixture" + +export default definePty({ + args: ["session", "list"], + cols: 60, + rows: 10, + server: { + routes: [ + location, + list([ + ...sessions, + session("ses_ffffffff0006", "A title that is far too long to fit in sixty columns", 1_600_000_000_000), + ]), + ], + }, + steps: [ + { until: { screen: "Fix the parser" }, settle: 300, checkpoint: "paged", timeout: 30_000 }, + { keys: "q", settle: 300 }, + ], + osc: [], + exits: true, + requests: true, +}) diff --git a/packages/cli-rs/parity/scenarios/C.2/list.cli.ts b/packages/cli-rs/parity/scenarios/C.2/list.cli.ts new file mode 100644 index 000000000000..6ec91b45f4fa --- /dev/null +++ b/packages/cli-rs/parity/scenarios/C.2/list.cli.ts @@ -0,0 +1,6 @@ +// `session list` with stdout piped: no pager; tabs and newlines in titles become spaces, a missing +// title is "Untitled session", and the project comes from the location of the working directory. +import { defineCli } from "../../cli/run" +import { list, location, sessions } from "./fixture" + +export default defineCli({ args: ["session", "list"], server: { routes: [location, list(sessions)] } }) diff --git a/packages/cli-rs/parity/scenarios/C.3/combined.cli.ts b/packages/cli-rs/parity/scenarios/C.3/combined.cli.ts new file mode 100644 index 000000000000..afab56df441b --- /dev/null +++ b/packages/cli-rs/parity/scenarios/C.3/combined.cli.ts @@ -0,0 +1,7 @@ +// `stats --days 3 --all`: rejected before any request, with the bare message and exit 1. +import { defineCli } from "../../cli/run" + +export default defineCli({ + args: ["stats", "--days", "3", "--all"], + server: { routes: [] }, +}) diff --git a/packages/cli-rs/parity/scenarios/C.3/days.cli.ts b/packages/cli-rs/parity/scenarios/C.3/days.cli.ts new file mode 100644 index 000000000000..6660bcee9291 --- /dev/null +++ b/packages/cli-rs/parity/scenarios/C.3/days.cli.ts @@ -0,0 +1,16 @@ +// `stats --days 7`: the label, and a range from local midnight six days ago to now. Both ends move with +// the clock, so they are masked; the Rust unit test `ranges_follow_stats_range` checks the values. +import { defineCli } from "../../cli/run" +import { statsRoute, year2020 } from "./fixture" + +export default defineCli({ + args: ["stats", "--days", "7"], + env: { TZ: "UTC" }, + masks: [ + // Local midnight six days ago. + { pattern: /from=\d+/, replacement: "from=<masked>" }, + // The range ends at the current time. + { pattern: /to=\d+/, replacement: "to=<masked>" }, + ], + server: { routes: [statsRoute(year2020)] }, +}) diff --git a/packages/cli-rs/parity/scenarios/C.3/declared-error.cli.ts b/packages/cli-rs/parity/scenarios/C.3/declared-error.cli.ts new file mode 100644 index 000000000000..d4186b862931 --- /dev/null +++ b/packages/cli-rs/parity/scenarios/C.3/declared-error.cli.ts @@ -0,0 +1,11 @@ +// A declared 400 from the stats endpoint: the bare message, exit 1. +import { defineCli } from "../../cli/run" +import { statsRoute } from "./fixture" + +export default defineCli({ + args: ["stats", "--year", "2020"], + env: { TZ: "UTC" }, + server: { + routes: [statsRoute({ _tag: "InvalidRequestError", message: "Stats range must end after it starts" }, 400)], + }, +}) diff --git a/packages/cli-rs/parity/scenarios/C.3/dst.cli.ts b/packages/cli-rs/parity/scenarios/C.3/dst.cli.ts new file mode 100644 index 000000000000..2aea1acf8def --- /dev/null +++ b/packages/cli-rs/parity/scenarios/C.3/dst.cli.ts @@ -0,0 +1,13 @@ +// `stats --year 2024` in America/New_York: local midnights on both ends, the zone name in the query, and a +// calendar whose days do not drift across the DST changes. +import { defineCli } from "../../cli/run" +import { stats, statsRoute } from "./fixture" + +const from = new Date("2024-01-01T05:00:00Z").getTime() +const to = new Date("2025-01-01T05:00:00Z").getTime() + +export default defineCli({ + args: ["stats", "--year", "2024"], + env: { TZ: "America/New_York" }, + server: { routes: [statsRoute(stats(from, to, "summary"))] }, +}) diff --git a/packages/cli-rs/parity/scenarios/C.3/empty.cli.ts b/packages/cli-rs/parity/scenarios/C.3/empty.cli.ts new file mode 100644 index 000000000000..bb8140fc5114 --- /dev/null +++ b/packages/cli-rs/parity/scenarios/C.3/empty.cli.ts @@ -0,0 +1,28 @@ +// `stats --all`: no activity in the range gives the short card. The range ends now, so `to` is masked. +import { defineCli } from "../../cli/run" +import { statsRoute } from "./fixture" + +export default defineCli({ + args: ["stats", "--all"], + env: { TZ: "UTC" }, + // The range ends at the current time. + masks: [{ pattern: /to=\d+/, replacement: "to=<masked>" }], + server: { + routes: [ + statsRoute({ + range: { from: 0, to: Date.UTC(2026, 10, 4) }, + sessions: 0, + subagents: 0, + prompts: 0, + steps: 0, + tokens: { input: 0, output: 0, reasoning: 0, cache: { read: 0, write: 0 } }, + cost: 0, + tools: { mode: "summary", totals: { calls: 0, succeeded: 0, failed: 0, unfinished: 0 } }, + activeDays: 0, + streak: 0, + activity: [], + models: [], + }), + ], + }, +}) diff --git a/packages/cli-rs/parity/scenarios/C.3/fixture.ts b/packages/cli-rs/parity/scenarios/C.3/fixture.ts new file mode 100644 index 000000000000..3346d7f77bf1 --- /dev/null +++ b/packages/cli-rs/parity/scenarios/C.3/fixture.ts @@ -0,0 +1,67 @@ +// Shared routes for the C.3 `stats` cases. The fake server answers with fixed statistics whatever the +// query says; the request log shows the query each client sent. +import type { Route } from "../../lib/fake-server" + +export const location: Route = { + path: "/api/location", + json: { directory: "/work", project: { id: "proj_current", directory: "/work", canonical: "/work" } }, +} + +const day = 86_400_000 + +// A year of activity between `from` and `to` (local midnights in the scenario's TZ), every third day idle. +export function stats(from: number, to: number, tools: "none" | "summary" | "detail" = "detail") { + const days = Math.round((to - from) / day) + const totals = { calls: 412, succeeded: 400, failed: 7, unfinished: 5 } + return { + range: { from, to }, + sessions: 321, + subagents: 12, + prompts: 1_234, + steps: 9_876, + tokens: { input: 1_234_567, output: 234_567, reasoning: 34_567, cache: { read: 98_765_432, write: 1_234_567 } }, + cost: 123.455, + tools: + tools === "none" + ? { mode: "none" } + : tools === "summary" + ? { mode: "summary", totals } + : { + mode: "detail", + totals, + usage: [ + { name: "read", calls: 200, succeeded: 199, failed: 1, unfinished: 0, durationP50: 8.5 }, + { name: "bash", calls: 150, succeeded: 140, failed: 6, unfinished: 4, durationP50: 2_345 }, + { name: "edit", calls: 60, succeeded: 60, failed: 0, unfinished: 0, durationP50: 41 }, + { name: "question", calls: 2, succeeded: 1, failed: 0, unfinished: 1 }, + ], + }, + activeDays: 180, + streak: 9, + activity: Array.from({ length: days }, (_, index) => ({ + date: new Date(from + index * day + day / 2).toISOString().slice(0, 10), + steps: index % 3 === 2 ? 0 : ((index * 31) % 40) + 1, + })), + models: [ + { + model: { providerID: "anthropic", id: "claude-opus-5-5" }, + steps: 7_000, + tokens: { input: 1_000_000, output: 200_000, reasoning: 30_000, cache: { read: 90_000_000, write: 1_000_000 } }, + cost: 100.125, + }, + { + model: { providerID: "openai", id: "gpt-5", variant: "high" }, + steps: 2_876, + tokens: { input: 234_567, output: 34_567, reasoning: 4_567, cache: { read: 8_765_432, write: 234_567 } }, + cost: 23.33, + }, + ], + } +} + +export function statsRoute(body: unknown, status = 200): Route { + return { path: "/api/experimental/session/stats", status, json: status === 200 ? { data: body } : body } +} + +// 2020 in UTC: both ends are fixed, so the request log compares exactly. +export const year2020 = stats(Date.UTC(2020, 0, 1), Date.UTC(2021, 0, 1)) diff --git a/packages/cli-rs/parity/scenarios/C.3/full-current-project.cli.ts b/packages/cli-rs/parity/scenarios/C.3/full-current-project.cli.ts new file mode 100644 index 000000000000..23f7080cd731 --- /dev/null +++ b/packages/cli-rs/parity/scenarios/C.3/full-current-project.cli.ts @@ -0,0 +1,10 @@ +// `stats --year 2020 --project . --full`: the project of the working directory, then every detail +// section (cost, models, tools) without the card. +import { defineCli } from "../../cli/run" +import { location, statsRoute, year2020 } from "./fixture" + +export default defineCli({ + args: ["stats", "--year", "2020", "--project", ".", "--full"], + env: { TZ: "UTC" }, + server: { routes: [location, statsRoute(year2020)] }, +}) diff --git a/packages/cli-rs/parity/scenarios/C.3/json.cli.ts b/packages/cli-rs/parity/scenarios/C.3/json.cli.ts new file mode 100644 index 000000000000..f075eb7b767d --- /dev/null +++ b/packages/cli-rs/parity/scenarios/C.3/json.cli.ts @@ -0,0 +1,9 @@ +// `stats --year 2020 --json`: the server's statistics as they came, two-space indented, with tool details. +import { defineCli } from "../../cli/run" +import { statsRoute, year2020 } from "./fixture" + +export default defineCli({ + args: ["stats", "--year", "2020", "--json"], + env: { TZ: "UTC" }, + server: { routes: [statsRoute(year2020)] }, +}) diff --git a/packages/cli-rs/parity/scenarios/C.3/models-cost.cli.ts b/packages/cli-rs/parity/scenarios/C.3/models-cost.cli.ts new file mode 100644 index 000000000000..2d84a38847b9 --- /dev/null +++ b/packages/cli-rs/parity/scenarios/C.3/models-cost.cli.ts @@ -0,0 +1,10 @@ +// `stats --year 2020 --project <id> --models --cost --limit 1`: a selected project, no tool data asked +// for (`tools=none`), and a "+1 more model" line. +import { defineCli } from "../../cli/run" +import { stats, statsRoute } from "./fixture" + +export default defineCli({ + args: ["stats", "--year", "2020", "--project", "proj_selected", "--models", "--cost", "--limit", "1"], + env: { TZ: "UTC" }, + server: { routes: [statsRoute(stats(Date.UTC(2020, 0, 1), Date.UTC(2021, 0, 1), "none"))] }, +}) diff --git a/packages/cli-rs/parity/scenarios/C.3/narrow-full.pty.ts b/packages/cli-rs/parity/scenarios/C.3/narrow-full.pty.ts new file mode 100644 index 000000000000..59c637ceb7e8 --- /dev/null +++ b/packages/cli-rs/parity/scenarios/C.3/narrow-full.pty.ts @@ -0,0 +1,16 @@ +// `stats --year 2020 --full --limit 2` on a 60-column terminal: the compact detail layouts and the +// "+N more" lines. +import { definePty } from "../../pty/run" +import { statsRoute, year2020 } from "./fixture" + +export default definePty({ + args: ["stats", "--year", "2020", "--full", "--limit", "2"], + cols: 60, + rows: 40, + env: { TZ: "UTC" }, + server: { routes: [statsRoute(year2020)] }, + steps: [{ until: { screen: "more tools" }, settle: 300, checkpoint: "details", timeout: 30_000 }], + osc: [], + exits: true, + requests: true, +}) diff --git a/packages/cli-rs/parity/scenarios/C.3/narrow.pty.ts b/packages/cli-rs/parity/scenarios/C.3/narrow.pty.ts new file mode 100644 index 000000000000..df9afedf4a1f --- /dev/null +++ b/packages/cli-rs/parity/scenarios/C.3/narrow.pty.ts @@ -0,0 +1,16 @@ +// `stats --year 2020` on a 50-column terminal with a dark COLORFGBG: the calendar clips to the latest 46 +// weeks. Colors do not show in the screen text; the C.3 oracle compares the escapes. +import { definePty } from "../../pty/run" +import { statsRoute, year2020 } from "./fixture" + +export default definePty({ + args: ["stats", "--year", "2020"], + cols: 50, + rows: 30, + env: { TZ: "UTC", COLORFGBG: "15;0" }, + server: { routes: [statsRoute(year2020)] }, + steps: [{ until: { screen: "opencode.ai" }, settle: 300, checkpoint: "card", timeout: 30_000 }], + osc: [], + exits: true, + requests: true, +}) diff --git a/packages/cli-rs/parity/scenarios/C.3/tools-unavailable.cli.ts b/packages/cli-rs/parity/scenarios/C.3/tools-unavailable.cli.ts new file mode 100644 index 000000000000..c38387758f4c --- /dev/null +++ b/packages/cli-rs/parity/scenarios/C.3/tools-unavailable.cli.ts @@ -0,0 +1,9 @@ +// `stats --year 2020 --tools` against a server that sent no tool details: the section says so. +import { defineCli } from "../../cli/run" +import { stats, statsRoute } from "./fixture" + +export default defineCli({ + args: ["stats", "--year", "2020", "--tools"], + env: { TZ: "UTC" }, + server: { routes: [statsRoute(stats(Date.UTC(2020, 0, 1), Date.UTC(2021, 0, 1), "summary"))] }, +}) diff --git a/packages/cli-rs/parity/scenarios/C.3/unexpected-status.cli.ts b/packages/cli-rs/parity/scenarios/C.3/unexpected-status.cli.ts new file mode 100644 index 000000000000..823505075c94 --- /dev/null +++ b/packages/cli-rs/parity/scenarios/C.3/unexpected-status.cli.ts @@ -0,0 +1,9 @@ +// An undeclared 500 from the stats endpoint: the client error's message, exit 1. +import { defineCli } from "../../cli/run" +import { statsRoute } from "./fixture" + +export default defineCli({ + args: ["stats", "--year", "2020"], + env: { TZ: "UTC" }, + server: { routes: [statsRoute({ message: "boom" }, 500)] }, +}) diff --git a/packages/cli-rs/parity/scenarios/C.3/wide-full.pty.ts b/packages/cli-rs/parity/scenarios/C.3/wide-full.pty.ts new file mode 100644 index 000000000000..c0b3f25bc44b --- /dev/null +++ b/packages/cli-rs/parity/scenarios/C.3/wide-full.pty.ts @@ -0,0 +1,15 @@ +// `stats --year 2020 --full` on a 120-column terminal with NO_COLOR: the table layouts of the detail sections. +import { definePty } from "../../pty/run" +import { statsRoute, year2020 } from "./fixture" + +export default definePty({ + args: ["stats", "--year", "2020", "--full"], + cols: 120, + rows: 40, + env: { TZ: "UTC", NO_COLOR: "1", COLORFGBG: "0;15" }, + server: { routes: [statsRoute(year2020)] }, + steps: [{ until: { screen: "unfinished" }, settle: 300, checkpoint: "details", timeout: 30_000 }], + osc: [], + exits: true, + requests: true, +}) diff --git a/packages/cli-rs/parity/scenarios/C.3/year.cli.ts b/packages/cli-rs/parity/scenarios/C.3/year.cli.ts new file mode 100644 index 000000000000..3eb081360fcb --- /dev/null +++ b/packages/cli-rs/parity/scenarios/C.3/year.cli.ts @@ -0,0 +1,10 @@ +// `stats --year 2020`: a past calendar year, so the range is fixed (TZ=UTC). Not a terminal: no color and +// the 80-column default. The summary asks for tool totals only. +import { defineCli } from "../../cli/run" +import { statsRoute, year2020 } from "./fixture" + +export default defineCli({ + args: ["stats", "--year", "2020"], + env: { TZ: "UTC", COLORFGBG: "15;0" }, + server: { routes: [statsRoute(year2020)] }, +}) diff --git a/packages/cli-rs/parity/scenarios/C.4/bad-header.cli.ts b/packages/cli-rs/parity/scenarios/C.4/bad-header.cli.ts new file mode 100644 index 000000000000..dbe98eef6096 --- /dev/null +++ b/packages/cli-rs/parity/scenarios/C.4/bad-header.cli.ts @@ -0,0 +1,8 @@ +// A header without `name:` fails before the request. First stderr line only (C40-handler-errors). +import { defineCli } from "../../cli/run" + +export default defineCli({ + args: ["api", "get", "/api/session", "-H", ":value"], + server: { routes: [] }, + stderrLines: 1, +}) diff --git a/packages/cli-rs/parity/scenarios/C.4/delete.cli.ts b/packages/cli-rs/parity/scenarios/C.4/delete.cli.ts new file mode 100644 index 000000000000..7dc2643550a5 --- /dev/null +++ b/packages/cli-rs/parity/scenarios/C.4/delete.cli.ts @@ -0,0 +1,8 @@ +// `api session.remove --param sessionID=...`: a DELETE answered with 204 prints nothing, exit 0. +import { defineCli } from "../../cli/run" +import { openapi } from "./fixture" + +export default defineCli({ + args: ["api", "session.remove", "--param", "sessionID=ses_abcdef"], + server: { routes: [openapi, { method: "DELETE", path: "/api/session/:id", status: 204 }] }, +}) diff --git a/packages/cli-rs/parity/scenarios/C.4/fixture.ts b/packages/cli-rs/parity/scenarios/C.4/fixture.ts new file mode 100644 index 000000000000..534388bda944 --- /dev/null +++ b/packages/cli-rs/parity/scenarios/C.4/fixture.ts @@ -0,0 +1,15 @@ +// Shared routes for the C.4 `api` cases. +import type { Route } from "../../lib/fake-server" + +export const openapi: Route = { + path: "/openapi.json", + json: { + paths: { + "/api/session": { parameters: [], get: { operationId: "session.list" } }, + "/api/session/{sessionID}": { + get: { operationId: "session.get" }, + delete: { operationId: "session.remove" }, + }, + }, + }, +} diff --git a/packages/cli-rs/parity/scenarios/C.4/http-error.cli.ts b/packages/cli-rs/parity/scenarios/C.4/http-error.cli.ts new file mode 100644 index 000000000000..4bbd7537cbae --- /dev/null +++ b/packages/cli-rs/parity/scenarios/C.4/http-error.cli.ts @@ -0,0 +1,7 @@ +// `api get /api/missing`: the error body on stdout, `HTTP 404 Not Found` on stderr, exit 1. +import { defineCli } from "../../cli/run" + +export default defineCli({ + args: ["api", "get", "/api/missing"], + server: { routes: [] }, +}) diff --git a/packages/cli-rs/parity/scenarios/C.4/missing-param.cli.ts b/packages/cli-rs/parity/scenarios/C.4/missing-param.cli.ts new file mode 100644 index 000000000000..3dd4f1eb5206 --- /dev/null +++ b/packages/cli-rs/parity/scenarios/C.4/missing-param.cli.ts @@ -0,0 +1,10 @@ +// `api session.get` without `sessionID`: no request beyond the document. The message differs on purpose +// (C40-handler-errors); only the exit and the requests are compared. +import { defineCli } from "../../cli/run" +import { openapi } from "./fixture" + +export default defineCli({ + args: ["api", "session.get"], + server: { routes: [openapi] }, + stderrLines: 0, +}) diff --git a/packages/cli-rs/parity/scenarios/C.4/not-found.cli.ts b/packages/cli-rs/parity/scenarios/C.4/not-found.cli.ts new file mode 100644 index 000000000000..0f822a2554e7 --- /dev/null +++ b/packages/cli-rs/parity/scenarios/C.4/not-found.cli.ts @@ -0,0 +1,10 @@ +// An operation the document does not have. TS hides the message in the cause of an `UnknownError` and a +// stack trace; Rust prints it (C40-handler-errors). Only the exit and the requests are compared. +import { defineCli } from "../../cli/run" +import { openapi } from "./fixture" + +export default defineCli({ + args: ["api", "session.nope"], + server: { routes: [openapi] }, + stderrLines: 0, +}) diff --git a/packages/cli-rs/parity/scenarios/C.4/openapi-error.cli.ts b/packages/cli-rs/parity/scenarios/C.4/openapi-error.cli.ts new file mode 100644 index 000000000000..2fcbf50c7daf --- /dev/null +++ b/packages/cli-rs/parity/scenarios/C.4/openapi-error.cli.ts @@ -0,0 +1,9 @@ +// The document fails to load. The message differs on purpose (C40-handler-errors); only the exit and the +// requests are compared. +import { defineCli } from "../../cli/run" + +export default defineCli({ + args: ["api", "session.list"], + server: { routes: [{ path: "/openapi.json", status: 500, json: { message: "no" } }] }, + stderrLines: 0, +}) diff --git a/packages/cli-rs/parity/scenarios/C.4/operation.cli.ts b/packages/cli-rs/parity/scenarios/C.4/operation.cli.ts new file mode 100644 index 000000000000..2b946deb6cfd --- /dev/null +++ b/packages/cli-rs/parity/scenarios/C.4/operation.cli.ts @@ -0,0 +1,21 @@ +// `api session.get --param ...`: the operation from `/openapi.json`, the path parameter encoded with +// `encodeURIComponent`, the other parameters as the query in the record's key order (integer-like keys +// first, a repeated key keeps its first place and its last value). +import { defineCli } from "../../cli/run" +import { openapi } from "./fixture" + +export default defineCli({ + args: [ + "api", + "session.get", + "--param", + "sessionID=ses_abcdef/1 2", + "--param", + "workspace=a b&c", + "--param", + "10=x", + "--param", + "workspace=w", + ], + server: { routes: [openapi, { path: "/api/session/:id", json: { id: "ses_abcdef", title: "Fix" } }] }, +}) diff --git a/packages/cli-rs/parity/scenarios/C.4/raw-post.cli.ts b/packages/cli-rs/parity/scenarios/C.4/raw-post.cli.ts new file mode 100644 index 000000000000..afaa593f1e11 --- /dev/null +++ b/packages/cli-rs/parity/scenarios/C.4/raw-post.cli.ts @@ -0,0 +1,8 @@ +// `api post /api/thing?x=1 -d ... -H ...`: a raw method and path, the body sent as given, JSON by default, +// and a text reply without a final newline gets one. +import { defineCli } from "../../cli/run" + +export default defineCli({ + args: ["api", "POST", "/api/thing?x=1", "-d", '{"name":"value"}', "-H", " X-Test : one "], + server: { routes: [{ method: "POST", path: "/api/thing", status: 201, body: "created" }] }, +}) diff --git a/packages/cli-rs/parity/scenarios/C.4/raw-text-body.cli.ts b/packages/cli-rs/parity/scenarios/C.4/raw-text-body.cli.ts new file mode 100644 index 000000000000..4234ac3d6c48 --- /dev/null +++ b/packages/cli-rs/parity/scenarios/C.4/raw-text-body.cli.ts @@ -0,0 +1,8 @@ +// `api put /api/thing -d text -H content-type:text/plain`: the caller's content type stays, and a reply that +// ends with a newline is printed as it is. +import { defineCli } from "../../cli/run" + +export default defineCli({ + args: ["api", "put", "/api/thing", "-d", "plain text", "-H", "Content-Type: text/plain"], + server: { routes: [{ method: "PUT", path: "/api/thing", body: "ok\n" }] }, +}) diff --git a/packages/cli-rs/parity/scenarios/C.4/two-words.cli.ts b/packages/cli-rs/parity/scenarios/C.4/two-words.cli.ts new file mode 100644 index 000000000000..58a62ecf24ef --- /dev/null +++ b/packages/cli-rs/parity/scenarios/C.4/two-words.cli.ts @@ -0,0 +1,8 @@ +// Two arguments that are not a method and a path. First stderr line only (C40-handler-errors). +import { defineCli } from "../../cli/run" + +export default defineCli({ + args: ["api", "fetch", "/api/session"], + server: { routes: [] }, + stderrLines: 1, +}) diff --git a/packages/cli-rs/parity/scenarios/C.5/credentials.json b/packages/cli-rs/parity/scenarios/C.5/credentials.json new file mode 100644 index 000000000000..64c075b1a30b --- /dev/null +++ b/packages/cli-rs/parity/scenarios/C.5/credentials.json @@ -0,0 +1,29 @@ +[ + { + "id": "cred_aaaaaaaa0001", + "integrationID": "openai", + "label": "Work", + "active": true, + "value": { "type": "oauth", "methodID": "chatgpt", "refresh": "r-1", "access": "a-1", "expires": 1762269245123 } + }, + { + "label": "Legacy", + "integrationID": "openai", + "id": "cred_dddddddd0004", + "active": true, + "extra": "dropped", + "value": { + "key": "sk-legacy", + "type": "key", + "metadata": { "org": "a", "region": "x" }, + "configuration": { "region": "eu" } + } + }, + { + "id": "cred_eeeeeeee0005", + "integrationID": "acme", + "label": "Acme", + "active": true, + "value": { "type": "external", "methodID": "token" } + } +] diff --git a/packages/cli-rs/parity/scenarios/C.5/export-target.cli.ts b/packages/cli-rs/parity/scenarios/C.5/export-target.cli.ts new file mode 100644 index 000000000000..beafc046d1b1 --- /dev/null +++ b/packages/cli-rs/parity/scenarios/C.5/export-target.cli.ts @@ -0,0 +1,9 @@ +import { defineCli } from "../../cli/run" +import { credentialRoute, integrationRoutes, sink } from "./fixture" + +// `auth export <integration>`: only that integration's credentials. +export default defineCli({ + args: ["auth", "export", "openai"], + env: sink, + server: { routes: [...integrationRoutes(), credentialRoute()] }, +}) diff --git a/packages/cli-rs/parity/scenarios/C.5/export-unknown.cli.ts b/packages/cli-rs/parity/scenarios/C.5/export-unknown.cli.ts new file mode 100644 index 000000000000..0bc2d2e58ae9 --- /dev/null +++ b/packages/cli-rs/parity/scenarios/C.5/export-unknown.cli.ts @@ -0,0 +1,9 @@ +import { defineCli } from "../../cli/run" +import { credentialRoute, integrationRoutes, sink } from "./fixture" + +// `auth export` of an unknown integration. +export default defineCli({ + args: ["auth", "export", "nope"], + env: sink, + server: { routes: [...integrationRoutes(), credentialRoute()] }, +}) diff --git a/packages/cli-rs/parity/scenarios/C.5/export.cli.ts b/packages/cli-rs/parity/scenarios/C.5/export.cli.ts new file mode 100644 index 000000000000..c3255fc3d0b2 --- /dev/null +++ b/packages/cli-rs/parity/scenarios/C.5/export.cli.ts @@ -0,0 +1,9 @@ +import { defineCli } from "../../cli/run" +import { credentialRoute, sink } from "./fixture" + +// `auth export`: every credential, as the server sent it. No warning without a terminal. +export default defineCli({ + args: ["auth", "export"], + env: sink, + server: { routes: [credentialRoute()] }, +}) diff --git a/packages/cli-rs/parity/scenarios/C.5/fixture.ts b/packages/cli-rs/parity/scenarios/C.5/fixture.ts new file mode 100644 index 000000000000..8ff2b2827451 --- /dev/null +++ b/packages/cli-rs/parity/scenarios/C.5/fixture.ts @@ -0,0 +1,190 @@ +// Integrations, credentials, and routes the C.5 (`auth`) and C.6 (`mcp`) scenarios share. Nothing here +// is a real account: the fake server answers every request, and URL opens go to a sink (`sink`). +import path from "node:path" +import type { Route } from "../../lib/fake-server" + +export const location = { directory: "/srv/project/app" } + +const time = { created: 1_762_268_645_123, expires: 1_762_269_245_123 } + +export const integrations = [ + { + id: "openai", + name: "OpenAI", + methods: [ + { id: "chatgpt", type: "oauth", label: "ChatGPT Pro/Plus" }, + { type: "key", label: "Manually enter API Key" }, + { type: "env", names: ["OPENAI_API_KEY"] }, + ], + connections: [ + { type: "credential", id: "cred_aaaaaaaa0001", label: "Work", method: "oauth" }, + { type: "credential", id: "cred_bbbbbbbb0002", label: "Personal", method: "key" }, + { type: "env", name: "OPENAI_API_KEY" }, + ], + }, + { + id: "anthropic", + name: "Anthropic", + methods: [{ type: "key" }, { type: "env", names: ["ANTHROPIC_API_KEY"] }], + connections: [{ type: "env", name: "ANTHROPIC_API_KEY" }], + }, + { + id: "opencode-go", + name: "OpenCode Go", + methods: [{ type: "key", label: "OpenCode Go key" }], + connections: [], + }, + { + id: "acme", + name: "Acme Search", + methods: [ + { + id: "token", + type: "external", + label: "Acme token", + form: [ + { + key: "region", + type: "string", + title: "Region", + options: [ + { value: "us", label: "United States" }, + { value: "eu", label: "Europe", description: "Frankfurt" }, + ], + required: true, + }, + { key: "team", type: "string", title: "Team", placeholder: "my-team", minLength: 3 }, + { key: "seats", type: "integer", title: "Seats", minimum: 1, maximum: 50 }, + { key: "beta", type: "boolean", title: "Beta features" }, + { + key: "scopes", + type: "multiselect", + title: "Scopes", + options: [ + { value: "read", label: "Read" }, + { value: "write", label: "Write" }, + ], + default: ["read"], + }, + { key: "plan", type: "string", hidden: true, default: "pro" }, + { key: "eu-only", type: "string", title: "Data residency", when: [{ key: "region", op: "eq", value: "eu" }] }, + ], + }, + ], + connections: [], + }, + { + id: "mcp-github", + name: "github", + metadata: { source: "mcp" }, + methods: [{ id: "oauth", type: "oauth", label: "OAuth" }], + connections: [{ type: "credential", id: "cred_cccccccc0003", label: "octocat", method: "oauth" }], + }, + { + id: "mcp-linear", + name: "linear", + metadata: { source: "mcp" }, + methods: [{ id: "oauth", type: "oauth", label: "OAuth" }], + connections: [], + }, + { + id: "zed", + name: "Zed Cloud", + methods: [{ id: "cli", type: "command", label: "Zed CLI", command: ["zed", "auth"] }], + connections: [], + }, +] + +export const credentials = [ + { + id: "cred_aaaaaaaa0001", + integrationID: "openai", + label: "Work", + active: true, + value: { type: "oauth", methodID: "chatgpt", refresh: "r-1", access: "a-1", expires: 1_762_269_245_123 }, + }, + { + id: "cred_bbbbbbbb0002", + integrationID: "openai", + label: "Personal", + active: false, + value: { type: "key", key: "sk-test-personal" }, + }, + { + id: "cred_cccccccc0003", + integrationID: "mcp-github", + label: "octocat", + active: true, + value: { type: "oauth", methodID: "oauth", refresh: "r-3", access: "a-3", expires: 0, metadata: { scope: "repo" } }, + }, +] + +export function integrationRoutes(data: unknown[] = integrations): Route[] { + return [ + // `loadIntegrations` waits for the default model first. + { path: "/api/model/default", json: { location, data: null } }, + { path: "/api/integration", json: { location, data } }, + ] +} + +// An OAuth integration whose form has one field of a type neither client knows (a newer server's). +export function futureRoutes(field: Record<string, unknown>): Route[] { + const form = [{ key: "region", type: "future-choice", ...field }] + const methods = [{ id: "oauth", type: "oauth", label: "OAuth", form }] + return [...integrationRoutes([{ id: "future", name: "Future", methods, connections: [] }]), ...oauthRoutes("future")] +} + +export function credentialRoute(data: unknown[] = credentials): Route { + return { path: "/api/credential", json: { data } } +} + +export const oauthRoutes = (integrationID: string, mode: "auto" | "code" = "auto"): Route[] => [ + { + method: "POST", + path: `/api/integration/${integrationID}/connect/oauth`, + json: { + location, + data: { + attemptID: "att_test0001", + url: "https://auth.example.test/authorize?client=opencode", + instructions: "Sign in with your browser", + mode, + time, + }, + }, + }, + { + path: `/api/integration/${integrationID}/connect/oauth/att_test0001`, + json: { location, data: { status: "complete", time } }, + }, + { method: "POST", path: `/api/integration/${integrationID}/connect/oauth/att_test0001/complete`, status: 204 }, + { method: "DELETE", path: `/api/integration/${integrationID}/connect/oauth/att_test0001`, status: 204 }, +] + +export const commandRoutes = (integrationID: string): Route[] => [ + { + method: "POST", + path: `/api/integration/${integrationID}/connect/command`, + json: { location, data: { attemptID: "att_test0002", time } }, + }, + { + path: `/api/integration/${integrationID}/connect/command/att_test0002`, + json: { location, data: { status: "complete", time } }, + }, + { method: "DELETE", path: `/api/integration/${integrationID}/connect/command/att_test0002`, status: 204 }, +] + +export const credentialWrites: Route[] = [ + { method: "DELETE", path: "/api/credential/:id", status: 204 }, + { method: "POST", path: "/api/credential/:id/activate", status: 204 }, +] + +// The URL-opener sink: `xdg-open` for Rust and `BROWSER` for the TS `open` package's bundled `xdg-open`. +// Neither client reaches a real browser. +const sinkDir = path.join(import.meta.dir, "sink") +export const sink = { + PATH: `${sinkDir}:${process.env.PATH ?? "/usr/bin:/bin"}`, + BROWSER: path.join(sinkDir, "browser"), +} + +export const exportFile = path.join(import.meta.dir, "credentials.json") diff --git a/packages/cli-rs/parity/scenarios/C.5/import-conflict.cli.ts b/packages/cli-rs/parity/scenarios/C.5/import-conflict.cli.ts new file mode 100644 index 000000000000..6593847459f2 --- /dev/null +++ b/packages/cli-rs/parity/scenarios/C.5/import-conflict.cli.ts @@ -0,0 +1,19 @@ +import { defineCli } from "../../cli/run" +import { credentialRoute, exportFile, sink } from "./fixture" + +// `auth import` when the server already has every credential (409). +export default defineCli({ + args: ["auth", "import", exportFile], + env: sink, + server: { + routes: [ + credentialRoute([]), + { + method: "POST", + path: "/api/credential", + status: 409, + json: { _tag: "ConflictError", message: "Credential already exists" }, + }, + ], + }, +}) diff --git a/packages/cli-rs/parity/scenarios/C.5/import-invalid.cli.ts b/packages/cli-rs/parity/scenarios/C.5/import-invalid.cli.ts new file mode 100644 index 000000000000..b651807ec9fb --- /dev/null +++ b/packages/cli-rs/parity/scenarios/C.5/import-invalid.cli.ts @@ -0,0 +1,11 @@ +import { defineCli } from "../../cli/run" +import { credentialRoute } from "./fixture" + +// An export that does not decode fails before the command connects. +export default defineCli({ + args: ["auth", "import"], + stdin: JSON.stringify([ + { id: "cred_ffffffff0006", integrationID: "acme", label: "Bad", active: "yes", value: { type: "key" } }, + ]), + server: { routes: [credentialRoute([])] }, +}) diff --git a/packages/cli-rs/parity/scenarios/C.5/import-missing.cli.ts b/packages/cli-rs/parity/scenarios/C.5/import-missing.cli.ts new file mode 100644 index 000000000000..2541bf8162cd --- /dev/null +++ b/packages/cli-rs/parity/scenarios/C.5/import-missing.cli.ts @@ -0,0 +1,9 @@ +import { defineCli } from "../../cli/run" +import { credentialRoute, sink } from "./fixture" + +// `auth import` of a missing file. +export default defineCli({ + args: ["auth", "import", "missing.json"], + env: sink, + server: { routes: [credentialRoute()] }, +}) diff --git a/packages/cli-rs/parity/scenarios/C.5/import-stdin.cli.ts b/packages/cli-rs/parity/scenarios/C.5/import-stdin.cli.ts new file mode 100644 index 000000000000..804bdd21ed95 --- /dev/null +++ b/packages/cli-rs/parity/scenarios/C.5/import-stdin.cli.ts @@ -0,0 +1,11 @@ +import { defineCli } from "../../cli/run" +import { credentialRoute } from "./fixture" + +// `auth import` without a file reads the export from stdin. +export default defineCli({ + args: ["auth", "import"], + stdin: JSON.stringify([ + { id: "cred_ffffffff0006", integrationID: "acme", label: "Piped", active: false, value: { type: "key", key: "k" } }, + ]), + server: { routes: [credentialRoute([]), { method: "POST", path: "/api/credential", json: { data: {} } }] }, +}) diff --git a/packages/cli-rs/parity/scenarios/C.5/import.cli.ts b/packages/cli-rs/parity/scenarios/C.5/import.cli.ts new file mode 100644 index 000000000000..faa1dfa19907 --- /dev/null +++ b/packages/cli-rs/parity/scenarios/C.5/import.cli.ts @@ -0,0 +1,14 @@ +import { defineCli } from "../../cli/run" +import { credentialRoute, credentials, exportFile, sink } from "./fixture" + +// `auth import <file>`: skips known IDs, merges a legacy key's `configuration`, activates only new integrations. +export default defineCli({ + args: ["auth", "import", exportFile], + env: sink, + server: { + routes: [ + credentialRoute(credentials.slice(0, 1)), + { method: "POST", path: "/api/credential", json: { data: credentials[1] } }, + ], + }, +}) diff --git a/packages/cli-rs/parity/scenarios/C.5/keys.ts b/packages/cli-rs/parity/scenarios/C.5/keys.ts new file mode 100644 index 000000000000..59886020b57f --- /dev/null +++ b/packages/cli-rs/parity/scenarios/C.5/keys.ts @@ -0,0 +1,18 @@ +// Keys and a step helper for the C.5 and C.6 P-PTY scenarios. +import type { PtyStep } from "../../pty/run" + +export const down = "\x1b[B" +export const right = "\x1b[C" +export const enter = "\r" +export const escape = "\x1b" +export const space = " " + +// Keys, then a checkpoint once the screen shows `until` (when given) and has settled. +export function press(keys: string, checkpoint: string, until?: string): PtyStep { + return { keys, until: until === undefined ? undefined : { screen: until }, settle: 300, checkpoint } +} + +// The first frame: the command starts, connects, and draws its first prompt. +export function first(until: string, checkpoint: string): PtyStep { + return { until: { screen: until }, settle: 300, checkpoint, timeout: 30_000 } +} diff --git a/packages/cli-rs/parity/scenarios/C.5/list-empty.cli.ts b/packages/cli-rs/parity/scenarios/C.5/list-empty.cli.ts new file mode 100644 index 000000000000..97fa4bfa6371 --- /dev/null +++ b/packages/cli-rs/parity/scenarios/C.5/list-empty.cli.ts @@ -0,0 +1,9 @@ +import { defineCli } from "../../cli/run" +import { integrationRoutes, integrations, sink } from "./fixture" + +// `auth list` when nothing is connected. +export default defineCli({ + args: ["auth", "list"], + env: sink, + server: { routes: [...integrationRoutes(integrations.map((item) => ({ ...item, connections: [] })))] }, +}) diff --git a/packages/cli-rs/parity/scenarios/C.5/list-error.cli.ts b/packages/cli-rs/parity/scenarios/C.5/list-error.cli.ts new file mode 100644 index 000000000000..0835adaa367b --- /dev/null +++ b/packages/cli-rs/parity/scenarios/C.5/list-error.cli.ts @@ -0,0 +1,17 @@ +import { defineCli } from "../../cli/run" +import { sink } from "./fixture" + +// `auth list` when the server fails: the bare message, exit 1. +export default defineCli({ + args: ["auth", "list"], + env: sink, + server: { + routes: [ + { + path: "/api/model/default", + status: 503, + json: { _tag: "ServiceUnavailableError", message: "The location is restarting" }, + }, + ], + }, +}) diff --git a/packages/cli-rs/parity/scenarios/C.5/list-json.cli.ts b/packages/cli-rs/parity/scenarios/C.5/list-json.cli.ts new file mode 100644 index 000000000000..7fc5a66fd947 --- /dev/null +++ b/packages/cli-rs/parity/scenarios/C.5/list-json.cli.ts @@ -0,0 +1,9 @@ +import { defineCli } from "../../cli/run" +import { integrationRoutes, sink } from "./fixture" + +// `auth list --format json`: the integrations that have connections. +export default defineCli({ + args: ["auth", "list", "--format", "json"], + env: sink, + server: { routes: [...integrationRoutes()] }, +}) diff --git a/packages/cli-rs/parity/scenarios/C.5/list.cli.ts b/packages/cli-rs/parity/scenarios/C.5/list.cli.ts new file mode 100644 index 000000000000..5e56db8aa4cf --- /dev/null +++ b/packages/cli-rs/parity/scenarios/C.5/list.cli.ts @@ -0,0 +1,9 @@ +import { defineCli } from "../../cli/run" +import { integrationRoutes, sink } from "./fixture" + +// `auth list`: one row per connection, stored credentials and environment variables. +export default defineCli({ + args: ["auth", "list"], + env: sink, + server: { routes: [...integrationRoutes()] }, +}) diff --git a/packages/cli-rs/parity/scenarios/C.5/login-answer-format.cli.ts b/packages/cli-rs/parity/scenarios/C.5/login-answer-format.cli.ts new file mode 100644 index 000000000000..43e47c2ff740 --- /dev/null +++ b/packages/cli-rs/parity/scenarios/C.5/login-answer-format.cli.ts @@ -0,0 +1,9 @@ +import { defineCli } from "../../cli/run" +import { integrationRoutes, sink } from "./fixture" + +// `auth login --answer` without a key. +export default defineCli({ + args: ["auth", "login", "acme", "--answer", "=1"], + env: sink, + server: { routes: [...integrationRoutes()] }, +}) diff --git a/packages/cli-rs/parity/scenarios/C.5/login-answer-future-type-text.cli.ts b/packages/cli-rs/parity/scenarios/C.5/login-answer-future-type-text.cli.ts new file mode 100644 index 000000000000..b5485038f3cd --- /dev/null +++ b/packages/cli-rs/parity/scenarios/C.5/login-answer-future-type-text.cli.ts @@ -0,0 +1,10 @@ +import { defineCli } from "../../cli/run" +import { futureRoutes, sink } from "./fixture" + +// `auth login --answer` for a field of a type this client does not know, answered with JSON that is not a +// selection: rejected before any write. +export default defineCli({ + args: ["auth", "login", "future", "--answer", 'region="west"'], + env: sink, + server: { routes: futureRoutes({}) }, +}) diff --git a/packages/cli-rs/parity/scenarios/C.5/login-answer-future-type.cli.ts b/packages/cli-rs/parity/scenarios/C.5/login-answer-future-type.cli.ts new file mode 100644 index 000000000000..695edc9d0458 --- /dev/null +++ b/packages/cli-rs/parity/scenarios/C.5/login-answer-future-type.cli.ts @@ -0,0 +1,11 @@ +import { defineCli } from "../../cli/run" +import { futureRoutes, sink } from "./fixture" + +// `auth login --answer` for a field of a type this client does not know (a newer server's): the answer is +// decoded as JSON, checked as a selection, and sent with the OAuth start. (TS throws a TypeError for a +// non-empty selection, so only an empty one compares.) +export default defineCli({ + args: ["auth", "login", "future", "--answer", "region=[]"], + env: sink, + server: { routes: futureRoutes({}) }, +}) diff --git a/packages/cli-rs/parity/scenarios/C.5/login-answer-inactive.cli.ts b/packages/cli-rs/parity/scenarios/C.5/login-answer-inactive.cli.ts new file mode 100644 index 000000000000..ee0391cbb516 --- /dev/null +++ b/packages/cli-rs/parity/scenarios/C.5/login-answer-inactive.cli.ts @@ -0,0 +1,9 @@ +import { defineCli } from "../../cli/run" +import { integrationRoutes, sink } from "./fixture" + +// `auth login` stops at the first unanswered field before it reaches an inactive one. +export default defineCli({ + args: ["auth", "login", "acme", "--answer", "region=us", "--answer", "eu-only=yes"], + env: sink, + server: { routes: [...integrationRoutes()] }, +}) diff --git a/packages/cli-rs/parity/scenarios/C.5/login-answer-invalid.cli.ts b/packages/cli-rs/parity/scenarios/C.5/login-answer-invalid.cli.ts new file mode 100644 index 000000000000..0e3250df754a --- /dev/null +++ b/packages/cli-rs/parity/scenarios/C.5/login-answer-invalid.cli.ts @@ -0,0 +1,23 @@ +import { defineCli } from "../../cli/run" +import { integrationRoutes, sink } from "./fixture" + +// `auth login --answer` with a value outside the field's options. +export default defineCli({ + args: [ + "auth", + "login", + "acme", + "--answer", + "region=mars", + "--answer", + "team=core", + "--answer", + "seats=3", + "--answer", + "beta=true", + "--answer", + "scopes=[]", + ], + env: sink, + server: { routes: [...integrationRoutes()] }, +}) diff --git a/packages/cli-rs/parity/scenarios/C.5/login-answer-json.cli.ts b/packages/cli-rs/parity/scenarios/C.5/login-answer-json.cli.ts new file mode 100644 index 000000000000..405f5bcff201 --- /dev/null +++ b/packages/cli-rs/parity/scenarios/C.5/login-answer-json.cli.ts @@ -0,0 +1,9 @@ +import { defineCli } from "../../cli/run" +import { integrationRoutes, sink } from "./fixture" + +// `auth login` stops at the first unanswered field before it parses a later answer. +export default defineCli({ + args: ["auth", "login", "acme", "--answer", "region=us", "--answer", "seats=three"], + env: sink, + server: { routes: [...integrationRoutes()] }, +}) diff --git a/packages/cli-rs/parity/scenarios/C.5/login-answer-unknown.cli.ts b/packages/cli-rs/parity/scenarios/C.5/login-answer-unknown.cli.ts new file mode 100644 index 000000000000..a8af1ddb6b79 --- /dev/null +++ b/packages/cli-rs/parity/scenarios/C.5/login-answer-unknown.cli.ts @@ -0,0 +1,9 @@ +import { defineCli } from "../../cli/run" +import { integrationRoutes, sink } from "./fixture" + +// `auth login --answer` for a field the form does not have. +export default defineCli({ + args: ["auth", "login", "acme", "--answer", "nope=1"], + env: sink, + server: { routes: [...integrationRoutes()] }, +}) diff --git a/packages/cli-rs/parity/scenarios/C.5/login-code.pty.ts b/packages/cli-rs/parity/scenarios/C.5/login-code.pty.ts new file mode 100644 index 000000000000..f343d6a3b446 --- /dev/null +++ b/packages/cli-rs/parity/scenarios/C.5/login-code.pty.ts @@ -0,0 +1,14 @@ +// OAuth that needs a pasted code: the URL goes to the opener sink, then the code completes the attempt. +import { definePty } from "../../pty/run" +import { integrationRoutes, oauthRoutes, sink } from "./fixture" +import { enter, first, press } from "./keys" + +export default definePty({ + args: ["auth", "login", "openai", "--method", "chatgpt"], + env: sink, + server: { routes: [...integrationRoutes(), ...oauthRoutes("openai", "code")] }, + steps: [first("Paste the authorization code", "code"), press("abc-123" + enter, "done", "Done")], + osc: [], + exits: true, + requests: true, +}) diff --git a/packages/cli-rs/parity/scenarios/C.5/login-command.cli.ts b/packages/cli-rs/parity/scenarios/C.5/login-command.cli.ts new file mode 100644 index 000000000000..cd86b5841cd5 --- /dev/null +++ b/packages/cli-rs/parity/scenarios/C.5/login-command.cli.ts @@ -0,0 +1,9 @@ +import { defineCli } from "../../cli/run" +import { commandRoutes, integrationRoutes, sink } from "./fixture" + +// `auth login` with a command method: the command completes, then the attempt is released. +export default defineCli({ + args: ["auth", "login", "zed"], + env: sink, + server: { routes: [...integrationRoutes(), ...commandRoutes("zed")] }, +}) diff --git a/packages/cli-rs/parity/scenarios/C.5/login-external-missing.cli.ts b/packages/cli-rs/parity/scenarios/C.5/login-external-missing.cli.ts new file mode 100644 index 000000000000..20f926ee892e --- /dev/null +++ b/packages/cli-rs/parity/scenarios/C.5/login-external-missing.cli.ts @@ -0,0 +1,9 @@ +import { defineCli } from "../../cli/run" +import { integrationRoutes, sink } from "./fixture" + +// `auth login` with a form field left unanswered needs a terminal. +export default defineCli({ + args: ["auth", "login", "acme", "--answer", "region=us"], + env: sink, + server: { routes: [...integrationRoutes()] }, +}) diff --git a/packages/cli-rs/parity/scenarios/C.5/login-external.cli.ts b/packages/cli-rs/parity/scenarios/C.5/login-external.cli.ts new file mode 100644 index 000000000000..d754ae5c0499 --- /dev/null +++ b/packages/cli-rs/parity/scenarios/C.5/login-external.cli.ts @@ -0,0 +1,27 @@ +import { defineCli } from "../../cli/run" +import { integrationRoutes, sink } from "./fixture" + +// `auth login` with every form answer given as `--answer`: JSON values, a hidden default, a `when` field. +export default defineCli({ + args: [ + "auth", + "login", + "acme", + "--answer", + "region=eu", + "--answer", + "team=core", + "--answer", + "seats=3", + "--answer", + "beta=true", + "--answer", + 'scopes=["read","write"]', + "--answer", + "eu-only=yes", + ], + env: sink, + server: { + routes: [...integrationRoutes(), { method: "POST", path: "/api/integration/acme/connect/external", status: 204 }], + }, +}) diff --git a/packages/cli-rs/parity/scenarios/C.5/login-future-type-hidden-text.cli.ts b/packages/cli-rs/parity/scenarios/C.5/login-future-type-hidden-text.cli.ts new file mode 100644 index 000000000000..4e58e36e16e0 --- /dev/null +++ b/packages/cli-rs/parity/scenarios/C.5/login-future-type-hidden-text.cli.ts @@ -0,0 +1,10 @@ +import { defineCli } from "../../cli/run" +import { futureRoutes, sink } from "./fixture" + +// A hidden field of a type this client does not know whose default is not a selection: rejected before any +// write. +export default defineCli({ + args: ["auth", "login", "future"], + env: sink, + server: { routes: futureRoutes({ hidden: true, default: "west" }) }, +}) diff --git a/packages/cli-rs/parity/scenarios/C.5/login-future-type-hidden.cli.ts b/packages/cli-rs/parity/scenarios/C.5/login-future-type-hidden.cli.ts new file mode 100644 index 000000000000..98c35a3427b2 --- /dev/null +++ b/packages/cli-rs/parity/scenarios/C.5/login-future-type-hidden.cli.ts @@ -0,0 +1,9 @@ +import { defineCli } from "../../cli/run" +import { futureRoutes, sink } from "./fixture" + +// A hidden field of a type this client does not know sends its default, a selection, with the OAuth start. +export default defineCli({ + args: ["auth", "login", "future"], + env: sink, + server: { routes: futureRoutes({ hidden: true, custom: true, default: ["west"] }) }, +}) diff --git a/packages/cli-rs/parity/scenarios/C.5/login-future-type-no-tty.cli.ts b/packages/cli-rs/parity/scenarios/C.5/login-future-type-no-tty.cli.ts new file mode 100644 index 000000000000..657a5c407faf --- /dev/null +++ b/packages/cli-rs/parity/scenarios/C.5/login-future-type-no-tty.cli.ts @@ -0,0 +1,10 @@ +import { defineCli } from "../../cli/run" +import { futureRoutes, sink } from "./fixture" + +// `auth login` without `--answer` for a field of a type this client does not know: it is prompted for like any +// field, which needs a terminal. +export default defineCli({ + args: ["auth", "login", "future"], + env: sink, + server: { routes: futureRoutes({ title: "Region" }) }, +}) diff --git a/packages/cli-rs/parity/scenarios/C.5/login-future-type-required.pty.ts b/packages/cli-rs/parity/scenarios/C.5/login-future-type-required.pty.ts new file mode 100644 index 000000000000..67215b679c52 --- /dev/null +++ b/packages/cli-rs/parity/scenarios/C.5/login-future-type-required.pty.ts @@ -0,0 +1,15 @@ +// `auth login` for a required form field of a type this client does not know: the text prompt refuses an +// empty answer, then Escape cancels. +import { definePty } from "../../pty/run" +import { futureRoutes, sink } from "./fixture" +import { enter, escape, first, press } from "./keys" + +export default definePty({ + args: ["auth", "login", "future"], + env: sink, + server: { routes: futureRoutes({ title: "Region", required: true }) }, + steps: [first("Region", "prompt"), press(enter, "required", "Required"), press(escape, "cancelled", "Cancelled")], + osc: [], + exits: true, + requests: true, +}) diff --git a/packages/cli-rs/parity/scenarios/C.5/login-future-type.pty.ts b/packages/cli-rs/parity/scenarios/C.5/login-future-type.pty.ts new file mode 100644 index 000000000000..01a63338257f --- /dev/null +++ b/packages/cli-rs/parity/scenarios/C.5/login-future-type.pty.ts @@ -0,0 +1,15 @@ +// `auth login` for a form field of a type this client does not know: a text prompt with its title and +// description; an empty answer to an optional one skips it, and the OAuth start goes out without it. +import { definePty } from "../../pty/run" +import { futureRoutes, sink } from "./fixture" +import { enter, first, press } from "./keys" + +export default definePty({ + args: ["auth", "login", "future"], + env: sink, + server: { routes: futureRoutes({ title: "Region", description: "Where the data lives" }) }, + steps: [first("Region", "prompt"), press(enter, "done", "Done")], + osc: [], + exits: true, + requests: true, +}) diff --git a/packages/cli-rs/parity/scenarios/C.5/login-interrupt.pty.ts b/packages/cli-rs/parity/scenarios/C.5/login-interrupt.pty.ts new file mode 100644 index 000000000000..1937e54ae1f9 --- /dev/null +++ b/packages/cli-rs/parity/scenarios/C.5/login-interrupt.pty.ts @@ -0,0 +1,20 @@ +// Ctrl+C while waiting for the browser: the attempt is cancelled on the server and the command ends. +import { definePty } from "../../pty/run" +import { integrationRoutes, location, oauthRoutes, sink } from "./fixture" +import { first, press } from "./keys" + +const [connect, , , cancel] = oauthRoutes("openai") +const pending = { + path: "/api/integration/openai/connect/oauth/att_test0001", + json: { location, data: { status: "pending", time: { created: 0, expires: 0 } } }, +} + +export default definePty({ + args: ["auth", "login", "openai", "--method", "chatgpt"], + env: sink, + server: { routes: [...integrationRoutes(), connect, pending, cancel] }, + steps: [first("Waiting for authorization", "waiting"), press("\x03", "interrupted", "Cancelled")], + osc: [], + exits: true, + requests: true, +}) diff --git a/packages/cli-rs/parity/scenarios/C.5/login-key-no-tty.cli.ts b/packages/cli-rs/parity/scenarios/C.5/login-key-no-tty.cli.ts new file mode 100644 index 000000000000..96d21bc30f29 --- /dev/null +++ b/packages/cli-rs/parity/scenarios/C.5/login-key-no-tty.cli.ts @@ -0,0 +1,9 @@ +import { defineCli } from "../../cli/run" +import { integrationRoutes, sink } from "./fixture" + +// `auth login` with an API key needs a terminal for the key. +export default defineCli({ + args: ["auth", "login", "opencode-go"], + env: sink, + server: { routes: [...integrationRoutes()] }, +}) diff --git a/packages/cli-rs/parity/scenarios/C.5/login-key.pty.ts b/packages/cli-rs/parity/scenarios/C.5/login-key.pty.ts new file mode 100644 index 000000000000..aa4f0392be67 --- /dev/null +++ b/packages/cli-rs/parity/scenarios/C.5/login-key.pty.ts @@ -0,0 +1,21 @@ +// `auth login <integration>` with an API key: a masked prompt, then the key connect. +import { definePty } from "../../pty/run" +import { integrationRoutes, sink } from "./fixture" +import { enter, first, press } from "./keys" + +export default definePty({ + args: ["auth", "login", "opencode-go"], + env: sink, + server: { + routes: [...integrationRoutes(), { method: "POST", path: "/api/integration/opencode-go/connect/key", status: 204 }], + }, + steps: [ + first("OpenCode Go key", "key"), + press(enter, "required", "Required"), + press("sk-test", "typed"), + press(enter, "done", "Done"), + ], + osc: [], + exits: true, + requests: true, +}) diff --git a/packages/cli-rs/parity/scenarios/C.5/login-method-missing.cli.ts b/packages/cli-rs/parity/scenarios/C.5/login-method-missing.cli.ts new file mode 100644 index 000000000000..483ff0231087 --- /dev/null +++ b/packages/cli-rs/parity/scenarios/C.5/login-method-missing.cli.ts @@ -0,0 +1,9 @@ +import { defineCli } from "../../cli/run" +import { integrationRoutes, sink } from "./fixture" + +// `auth login --method` with an unknown method lists the available ones. +export default defineCli({ + args: ["auth", "login", "openai", "--method", "nope"], + env: sink, + server: { routes: [...integrationRoutes()] }, +}) diff --git a/packages/cli-rs/parity/scenarios/C.5/login-method-no-tty.cli.ts b/packages/cli-rs/parity/scenarios/C.5/login-method-no-tty.cli.ts new file mode 100644 index 000000000000..316f304fc818 --- /dev/null +++ b/packages/cli-rs/parity/scenarios/C.5/login-method-no-tty.cli.ts @@ -0,0 +1,9 @@ +import { defineCli } from "../../cli/run" +import { integrationRoutes, sink } from "./fixture" + +// `auth login` of an integration with several methods needs `--method` without a terminal. +export default defineCli({ + args: ["auth", "login", "openai"], + env: sink, + server: { routes: [...integrationRoutes()] }, +}) diff --git a/packages/cli-rs/parity/scenarios/C.5/login-method.pty.ts b/packages/cli-rs/parity/scenarios/C.5/login-method.pty.ts new file mode 100644 index 000000000000..3bfa212962c6 --- /dev/null +++ b/packages/cli-rs/parity/scenarios/C.5/login-method.pty.ts @@ -0,0 +1,19 @@ +// `auth login <integration>` with several methods: the method select, then Escape at the key prompt. +import { definePty } from "../../pty/run" +import { integrationRoutes, sink } from "./fixture" +import { down, enter, escape, first, press } from "./keys" + +export default definePty({ + args: ["auth", "login", "OpenAI"], + env: sink, + server: { routes: [...integrationRoutes()] }, + steps: [ + first("Select login method", "methods"), + press(down, "moved"), + press(enter, "key", "Manually enter API Key"), + press(escape, "cancelled", "Cancelled"), + ], + osc: [], + exits: true, + requests: true, +}) diff --git a/packages/cli-rs/parity/scenarios/C.5/login-no-methods.cli.ts b/packages/cli-rs/parity/scenarios/C.5/login-no-methods.cli.ts new file mode 100644 index 000000000000..085f52fa8639 --- /dev/null +++ b/packages/cli-rs/parity/scenarios/C.5/login-no-methods.cli.ts @@ -0,0 +1,16 @@ +import { defineCli } from "../../cli/run" +import { integrationRoutes, integrations, sink } from "./fixture" + +// `auth login` of an integration that only reads environment variables. +export default defineCli({ + args: ["auth", "login", "anthropic-env"], + env: sink, + server: { + routes: [ + ...integrationRoutes([ + ...integrations, + { id: "anthropic-env", name: "Env only", methods: [{ type: "env", names: ["X"] }], connections: [] }, + ]), + ], + }, +}) diff --git a/packages/cli-rs/parity/scenarios/C.5/login-no-tty.cli.ts b/packages/cli-rs/parity/scenarios/C.5/login-no-tty.cli.ts new file mode 100644 index 000000000000..455b86fdd8f5 --- /dev/null +++ b/packages/cli-rs/parity/scenarios/C.5/login-no-tty.cli.ts @@ -0,0 +1,9 @@ +import { defineCli } from "../../cli/run" +import { integrationRoutes, sink } from "./fixture" + +// `auth login` without a target needs a terminal. +export default defineCli({ + args: ["auth", "login"], + env: sink, + server: { routes: [...integrationRoutes()] }, +}) diff --git a/packages/cli-rs/parity/scenarios/C.5/login-oauth-code.cli.ts b/packages/cli-rs/parity/scenarios/C.5/login-oauth-code.cli.ts new file mode 100644 index 000000000000..46fc62e650fc --- /dev/null +++ b/packages/cli-rs/parity/scenarios/C.5/login-oauth-code.cli.ts @@ -0,0 +1,9 @@ +import { defineCli } from "../../cli/run" +import { integrationRoutes, oauthRoutes, sink } from "./fixture" + +// `auth login --method <label>`: an OAuth attempt that needs a pasted code fails without a terminal. +export default defineCli({ + args: ["auth", "login", "openai", "--method", "ChatGPT Pro/Plus"], + env: sink, + server: { routes: [...integrationRoutes(), ...oauthRoutes("openai", "code")] }, +}) diff --git a/packages/cli-rs/parity/scenarios/C.5/login-oauth.cli.ts b/packages/cli-rs/parity/scenarios/C.5/login-oauth.cli.ts new file mode 100644 index 000000000000..ff7d42a258c1 --- /dev/null +++ b/packages/cli-rs/parity/scenarios/C.5/login-oauth.cli.ts @@ -0,0 +1,9 @@ +import { defineCli } from "../../cli/run" +import { integrationRoutes, oauthRoutes, sink } from "./fixture" + +// `auth login --method <id>`: OAuth without a terminal, so no browser; the attempt completes, then is released. +export default defineCli({ + args: ["auth", "login", "openai", "--method", "chatgpt"], + env: sink, + server: { routes: [...integrationRoutes(), ...oauthRoutes("openai")] }, +}) diff --git a/packages/cli-rs/parity/scenarios/C.5/login-paste.pty.ts b/packages/cli-rs/parity/scenarios/C.5/login-paste.pty.ts new file mode 100644 index 000000000000..479c3131912f --- /dev/null +++ b/packages/cli-rs/parity/scenarios/C.5/login-paste.pty.ts @@ -0,0 +1,42 @@ +// OAuth that also takes the redirect URL (`paste`, #61706): while the browser flow waits, a prompt asks for the URL +// the browser was redirected to. The pasted URL completes the attempt, whose status then settles the login. +import type { Logged } from "../../lib/fake-server" +import { definePty } from "../../pty/run" +import { integrationRoutes, location, oauthRoutes, sink } from "./fixture" +import { enter, first, press } from "./keys" + +const time = { created: 1_762_268_645_123, expires: 1_762_269_245_123 } +const status = "/api/integration/openai/connect/oauth/att_test0001" +const [connect, , complete, cancel] = oauthRoutes("openai") + +export default definePty({ + args: ["auth", "login", "openai", "--method", "chatgpt"], + env: sink, + server: { + routes: [ + ...integrationRoutes(), + { ...connect, json: { location, data: { ...(connect.json as { data: object }).data, paste: true } } }, + { + path: status, + json: (_entry: Logged, requests: Logged[]) => ({ + location, + data: { + status: requests.some((request) => request.method === "POST" && request.path === `${status}/complete`) + ? "complete" + : "pending", + time, + }, + }), + }, + complete, + cancel, + ], + }, + steps: [ + first("paste the URL it was redirected to", "prompt"), + press("http://localhost:1455/auth/callback?code=abc" + enter, "done", "Done"), + ], + osc: [], + exits: true, + requests: true, +}) diff --git a/packages/cli-rs/parity/scenarios/C.5/login-picker-narrow.pty.ts b/packages/cli-rs/parity/scenarios/C.5/login-picker-narrow.pty.ts new file mode 100644 index 000000000000..f295ac959e2d --- /dev/null +++ b/packages/cli-rs/parity/scenarios/C.5/login-picker-narrow.pty.ts @@ -0,0 +1,23 @@ +// The integration picker on a small terminal: compact headings, the short footer, a search without +// matches, Enter asking again, then Escape. +import { definePty } from "../../pty/run" +import { integrationRoutes, sink } from "./fixture" +import { enter, escape, first, press } from "./keys" + +export default definePty({ + args: ["auth", "login"], + cols: 45, + rows: 17, + env: sink, + server: { routes: [...integrationRoutes()] }, + steps: [ + first("Select integration", "picker"), + press("zzz", "empty", "No integrations found"), + // The error line shows only with matches; the title turns to the error symbol. + press(enter, "error", "▲ Select integration"), + press(escape, "cancelled", "Cancelled"), + ], + osc: [], + exits: true, + requests: true, +}) diff --git a/packages/cli-rs/parity/scenarios/C.5/login-picker.pty.ts b/packages/cli-rs/parity/scenarios/C.5/login-picker.pty.ts new file mode 100644 index 000000000000..d2b48674d756 --- /dev/null +++ b/packages/cli-rs/parity/scenarios/C.5/login-picker.pty.ts @@ -0,0 +1,32 @@ +// `auth login` on a terminal: the integration picker (categories, connected marks), typing filters, then +// the Acme form one prompt per field, and the external connect with the answers. +import { definePty } from "../../pty/run" +import { integrationRoutes, sink } from "./fixture" +import { down, enter, first, press } from "./keys" + +export default definePty({ + args: ["auth", "login"], + cols: 100, + rows: 40, + env: sink, + server: { + routes: [...integrationRoutes(), { method: "POST", path: "/api/integration/acme/connect/external", status: 204 }], + }, + steps: [ + first("Select integration", "picker"), + press(down + down, "moved"), + press("acme", "filtered"), + press(enter, "region", "Region"), + press(down + enter, "team", "Team"), + press("co" + enter, "team-short", "Must be at least"), + press("re" + enter, "seats", "Seats"), + press("80" + enter, "seats-high", "Must be at most"), + press("\x7f\x7f3" + enter, "beta", "Beta features"), + press(enter, "scopes", "Scopes"), + press(enter, "residency", "Data residency"), + press("yes" + enter, "done", "Done"), + ], + osc: [], + exits: true, + requests: true, +}) diff --git a/packages/cli-rs/parity/scenarios/C.5/login-shortcut-help.cli.ts b/packages/cli-rs/parity/scenarios/C.5/login-shortcut-help.cli.ts new file mode 100644 index 000000000000..46299923e5f8 --- /dev/null +++ b/packages/cli-rs/parity/scenarios/C.5/login-shortcut-help.cli.ts @@ -0,0 +1,4 @@ +import { defineCli } from "../../cli/run" + +// The hidden `login` shortcut has its own help, with `auth login`'s arguments and flags. +export default defineCli({ args: ["login", "--help"] }) diff --git a/packages/cli-rs/parity/scenarios/C.5/login-shortcut.cli.ts b/packages/cli-rs/parity/scenarios/C.5/login-shortcut.cli.ts new file mode 100644 index 000000000000..f8cc41648fd0 --- /dev/null +++ b/packages/cli-rs/parity/scenarios/C.5/login-shortcut.cli.ts @@ -0,0 +1,9 @@ +import { defineCli } from "../../cli/run" +import { commandRoutes, integrationRoutes, sink } from "./fixture" + +// The hidden `login` shortcut runs `auth login`: the same command method as login-command, by the short name. +export default defineCli({ + args: ["login", "zed"], + env: sink, + server: { routes: [...integrationRoutes(), ...commandRoutes("zed")] }, +}) diff --git a/packages/cli-rs/parity/scenarios/C.5/login-wellknown-failed.cli.ts b/packages/cli-rs/parity/scenarios/C.5/login-wellknown-failed.cli.ts new file mode 100644 index 000000000000..7e4946a8fb59 --- /dev/null +++ b/packages/cli-rs/parity/scenarios/C.5/login-wellknown-failed.cli.ts @@ -0,0 +1,19 @@ +import { defineCli } from "../../cli/run" +import { integrationRoutes, sink } from "./fixture" + +// `auth login <url>` when discovery fails. +export default defineCli({ + args: ["auth", "login", "https://mcp.example.test"], + env: sink, + server: { + routes: [ + ...integrationRoutes(), + { + method: "POST", + path: "/api/experimental/integration/wellknown", + status: 400, + json: { _tag: "BadRequest", message: "No well-known metadata" }, + }, + ], + }, +}) diff --git a/packages/cli-rs/parity/scenarios/C.5/login-wellknown.cli.ts b/packages/cli-rs/parity/scenarios/C.5/login-wellknown.cli.ts new file mode 100644 index 000000000000..fc353efe0cb2 --- /dev/null +++ b/packages/cli-rs/parity/scenarios/C.5/login-wellknown.cli.ts @@ -0,0 +1,23 @@ +import { defineCli } from "../../cli/run" +import { integrationRoutes, integrations, oauthRoutes, sink } from "./fixture" + +// `auth login <url>`: discovers the provider, then logs in to the integration it adds. +export default defineCli({ + args: ["auth", "login", "https://mcp.example.test/"], + env: sink, + server: { + routes: [ + ...integrationRoutes([ + ...integrations, + { + id: "https://mcp.example.test", + name: "Example MCP", + methods: [{ id: "oauth", type: "oauth", label: "OAuth" }], + connections: [], + }, + ]), + { method: "POST", path: "/api/experimental/integration/wellknown", status: 204 }, + ...oauthRoutes("https%3A%2F%2Fmcp.example.test"), + ], + }, +}) diff --git a/packages/cli-rs/parity/scenarios/C.5/logout-env.cli.ts b/packages/cli-rs/parity/scenarios/C.5/logout-env.cli.ts new file mode 100644 index 000000000000..e5295cfc1550 --- /dev/null +++ b/packages/cli-rs/parity/scenarios/C.5/logout-env.cli.ts @@ -0,0 +1,9 @@ +import { defineCli } from "../../cli/run" +import { credentialWrites, integrationRoutes, sink } from "./fixture" + +// `auth logout` of an integration connected through an environment variable. +export default defineCli({ + args: ["auth", "logout", "anthropic", "x"], + env: sink, + server: { routes: [...integrationRoutes(), ...credentialWrites] }, +}) diff --git a/packages/cli-rs/parity/scenarios/C.5/logout-failed.cli.ts b/packages/cli-rs/parity/scenarios/C.5/logout-failed.cli.ts new file mode 100644 index 000000000000..1a8589399cda --- /dev/null +++ b/packages/cli-rs/parity/scenarios/C.5/logout-failed.cli.ts @@ -0,0 +1,19 @@ +import { defineCli } from "../../cli/run" +import { integrationRoutes, sink } from "./fixture" + +// `auth logout` when the server refuses: the spinner fails, then the message. +export default defineCli({ + args: ["auth", "logout", "openai", "cred_aaaaaaaa0001"], + env: sink, + server: { + routes: [ + ...integrationRoutes(), + { + method: "DELETE", + path: "/api/credential/:id", + status: 400, + json: { _tag: "BadRequest", message: "Credential is locked" }, + }, + ], + }, +}) diff --git a/packages/cli-rs/parity/scenarios/C.5/logout-no-credential-tty.cli.ts b/packages/cli-rs/parity/scenarios/C.5/logout-no-credential-tty.cli.ts new file mode 100644 index 000000000000..02a37256d504 --- /dev/null +++ b/packages/cli-rs/parity/scenarios/C.5/logout-no-credential-tty.cli.ts @@ -0,0 +1,9 @@ +import { defineCli } from "../../cli/run" +import { integrationRoutes, sink } from "./fixture" + +// `auth logout <integration>` without a credential needs a terminal. +export default defineCli({ + args: ["auth", "logout", "openai"], + env: sink, + server: { routes: [...integrationRoutes()] }, +}) diff --git a/packages/cli-rs/parity/scenarios/C.5/logout-no-tty.cli.ts b/packages/cli-rs/parity/scenarios/C.5/logout-no-tty.cli.ts new file mode 100644 index 000000000000..f93ccd286894 --- /dev/null +++ b/packages/cli-rs/parity/scenarios/C.5/logout-no-tty.cli.ts @@ -0,0 +1,9 @@ +import { defineCli } from "../../cli/run" +import { integrationRoutes, sink } from "./fixture" + +// `auth logout` without a target needs a terminal. +export default defineCli({ + args: ["auth", "logout"], + env: sink, + server: { routes: [...integrationRoutes()] }, +}) diff --git a/packages/cli-rs/parity/scenarios/C.5/logout-picker.pty.ts b/packages/cli-rs/parity/scenarios/C.5/logout-picker.pty.ts new file mode 100644 index 000000000000..925c11e0c991 --- /dev/null +++ b/packages/cli-rs/parity/scenarios/C.5/logout-picker.pty.ts @@ -0,0 +1,19 @@ +// `auth logout` on a terminal: the integrations with stored credentials, then the account picker. +import { definePty } from "../../pty/run" +import { credentialWrites, integrationRoutes, sink } from "./fixture" +import { down, enter, first, press } from "./keys" + +export default definePty({ + args: ["auth", "logout"], + env: sink, + server: { routes: [...integrationRoutes(), ...credentialWrites] }, + steps: [ + first("Select integration", "integrations"), + press(enter, "accounts", "Select OpenAI account to log out"), + press(down, "moved"), + press(enter, "done", "Done"), + ], + osc: [], + exits: true, + requests: true, +}) diff --git a/packages/cli-rs/parity/scenarios/C.5/logout-unknown.cli.ts b/packages/cli-rs/parity/scenarios/C.5/logout-unknown.cli.ts new file mode 100644 index 000000000000..393e1f840bae --- /dev/null +++ b/packages/cli-rs/parity/scenarios/C.5/logout-unknown.cli.ts @@ -0,0 +1,9 @@ +import { defineCli } from "../../cli/run" +import { credentialWrites, integrationRoutes, sink } from "./fixture" + +// `auth logout` of an unknown integration. +export default defineCli({ + args: ["auth", "logout", "nope", "x"], + env: sink, + server: { routes: [...integrationRoutes(), ...credentialWrites] }, +}) diff --git a/packages/cli-rs/parity/scenarios/C.5/logout.cli.ts b/packages/cli-rs/parity/scenarios/C.5/logout.cli.ts new file mode 100644 index 000000000000..1cdf4939563e --- /dev/null +++ b/packages/cli-rs/parity/scenarios/C.5/logout.cli.ts @@ -0,0 +1,9 @@ +import { defineCli } from "../../cli/run" +import { credentialWrites, integrationRoutes, sink } from "./fixture" + +// `auth logout <integration> <label>`: the label matches without regard to case. +export default defineCli({ + args: ["auth", "logout", "openai", "personal"], + env: sink, + server: { routes: [...integrationRoutes(), ...credentialWrites] }, +}) diff --git a/packages/cli-rs/parity/scenarios/C.5/sink/browser b/packages/cli-rs/parity/scenarios/C.5/sink/browser new file mode 100755 index 000000000000..df30ed2e8c49 --- /dev/null +++ b/packages/cli-rs/parity/scenarios/C.5/sink/browser @@ -0,0 +1,3 @@ +#!/bin/sh +# URL-opener sink for the C.5 and C.6 scenarios: opens nothing. +exit 0 diff --git a/packages/cli-rs/parity/scenarios/C.5/sink/xdg-open b/packages/cli-rs/parity/scenarios/C.5/sink/xdg-open new file mode 100755 index 000000000000..df30ed2e8c49 --- /dev/null +++ b/packages/cli-rs/parity/scenarios/C.5/sink/xdg-open @@ -0,0 +1,3 @@ +#!/bin/sh +# URL-opener sink for the C.5 and C.6 scenarios: opens nothing. +exit 0 diff --git a/packages/cli-rs/parity/scenarios/C.5/switch-missing.cli.ts b/packages/cli-rs/parity/scenarios/C.5/switch-missing.cli.ts new file mode 100644 index 000000000000..fb806983a9ef --- /dev/null +++ b/packages/cli-rs/parity/scenarios/C.5/switch-missing.cli.ts @@ -0,0 +1,9 @@ +import { defineCli } from "../../cli/run" +import { credentialWrites, integrationRoutes, sink } from "./fixture" + +// `auth switch` to an unknown credential. +export default defineCli({ + args: ["auth", "switch", "openai", "nobody"], + env: sink, + server: { routes: [...integrationRoutes(), ...credentialWrites] }, +}) diff --git a/packages/cli-rs/parity/scenarios/C.5/switch-none.cli.ts b/packages/cli-rs/parity/scenarios/C.5/switch-none.cli.ts new file mode 100644 index 000000000000..acc3ad58b6b6 --- /dev/null +++ b/packages/cli-rs/parity/scenarios/C.5/switch-none.cli.ts @@ -0,0 +1,9 @@ +import { defineCli } from "../../cli/run" +import { credentialWrites, integrationRoutes, sink } from "./fixture" + +// `auth switch` for an integration without stored credentials. +export default defineCli({ + args: ["auth", "switch", "opencode-go", "x"], + env: sink, + server: { routes: [...integrationRoutes(), ...credentialWrites] }, +}) diff --git a/packages/cli-rs/parity/scenarios/C.5/switch-picker.pty.ts b/packages/cli-rs/parity/scenarios/C.5/switch-picker.pty.ts new file mode 100644 index 000000000000..b751604b2b37 --- /dev/null +++ b/packages/cli-rs/parity/scenarios/C.5/switch-picker.pty.ts @@ -0,0 +1,19 @@ +// `auth switch` on a terminal: typing filters the integrations, then the only account is chosen. +import { definePty } from "../../pty/run" +import { credentialWrites, integrationRoutes, sink } from "./fixture" +import { enter, first, press } from "./keys" + +export default definePty({ + args: ["auth", "switch"], + env: sink, + server: { routes: [...integrationRoutes(), ...credentialWrites] }, + steps: [ + first("Select integration", "integrations"), + press("git", "filtered"), + press(enter, "accounts", "Select github account to switch to"), + press(enter, "done", "Done"), + ], + osc: [], + exits: true, + requests: true, +}) diff --git a/packages/cli-rs/parity/scenarios/C.5/switch.cli.ts b/packages/cli-rs/parity/scenarios/C.5/switch.cli.ts new file mode 100644 index 000000000000..ad44a4b8c7ee --- /dev/null +++ b/packages/cli-rs/parity/scenarios/C.5/switch.cli.ts @@ -0,0 +1,9 @@ +import { defineCli } from "../../cli/run" +import { credentialWrites, integrationRoutes, sink } from "./fixture" + +// `auth switch <name> <id>`: the integration matches by name, the credential by ID. +export default defineCli({ + args: ["auth", "switch", "OpenAI", "cred_bbbbbbbb0002"], + env: sink, + server: { routes: [...integrationRoutes(), ...credentialWrites] }, +}) diff --git a/packages/cli-rs/parity/scenarios/C.6/add-bad-url.cli.ts b/packages/cli-rs/parity/scenarios/C.6/add-bad-url.cli.ts new file mode 100644 index 000000000000..36e4953e7b6a --- /dev/null +++ b/packages/cli-rs/parity/scenarios/C.6/add-bad-url.cli.ts @@ -0,0 +1,9 @@ +import { defineCli } from "../../cli/run" + +// `mcp add` with a URL that does not parse fails. +// The TS error escapes with a stack trace; only its first line is compared (C40-handler-errors). +export default defineCli({ + stderrLines: 1, + args: ["mcp", "add", "x", "--url", "not a url"], + collect: ["work/opencode.json"], +}) diff --git a/packages/cli-rs/parity/scenarios/C.6/add-both.cli.ts b/packages/cli-rs/parity/scenarios/C.6/add-both.cli.ts new file mode 100644 index 000000000000..49d6fc501513 --- /dev/null +++ b/packages/cli-rs/parity/scenarios/C.6/add-both.cli.ts @@ -0,0 +1,9 @@ +import { defineCli } from "../../cli/run" + +// `mcp add` with both a URL and a command fails. +// The TS error escapes with a stack trace; only its first line is compared (C40-handler-errors). +export default defineCli({ + stderrLines: 1, + args: ["mcp", "add", "x", "--url", "https://a.test", "--", "node"], + collect: ["work/opencode.json"], +}) diff --git a/packages/cli-rs/parity/scenarios/C.6/add-env-remote.cli.ts b/packages/cli-rs/parity/scenarios/C.6/add-env-remote.cli.ts new file mode 100644 index 000000000000..418e578e5cd0 --- /dev/null +++ b/packages/cli-rs/parity/scenarios/C.6/add-env-remote.cli.ts @@ -0,0 +1,8 @@ +import { defineCli } from "../../cli/run" + +// `--env` belongs to local servers. +// The TS error escapes with a stack trace; only its first line is compared (C40-handler-errors). +export default defineCli({ + stderrLines: 1, + args: ["mcp", "add", "x", "--url", "https://a.test", "--env", "A=1"], +}) diff --git a/packages/cli-rs/parity/scenarios/C.6/add-global-clean.cli.ts b/packages/cli-rs/parity/scenarios/C.6/add-global-clean.cli.ts new file mode 100644 index 000000000000..17d0900fcc3d --- /dev/null +++ b/packages/cli-rs/parity/scenarios/C.6/add-global-clean.cli.ts @@ -0,0 +1,8 @@ +import { defineCli } from "../../cli/run" + +// `mcp add --global` in a home without `~/.config/opencode`: the directory is created, as TS's +// `Global.Service` does, and the server goes into a new `opencode.json`. +export default defineCli({ + args: ["mcp", "add", "remote", "--global", "--url", "https://mcp.example.test/mcp"], + collect: ["home/.config/opencode/opencode.json", "work/opencode.json"], +}) diff --git a/packages/cli-rs/parity/scenarios/C.6/add-global.cli.ts b/packages/cli-rs/parity/scenarios/C.6/add-global.cli.ts new file mode 100644 index 000000000000..ac25f768ee0a --- /dev/null +++ b/packages/cli-rs/parity/scenarios/C.6/add-global.cli.ts @@ -0,0 +1,8 @@ +import { defineCli } from "../../cli/run" + +// `mcp add --global` writes the global config, not the project's. +export default defineCli({ + args: ["mcp", "add", "remote", "--global", "--url", "https://mcp.example.test/mcp"], + files: { "../home/.config/opencode/opencode.jsonc": "{}\n" }, + collect: ["home/.config/opencode/opencode.jsonc", "work/opencode.json"], +}) diff --git a/packages/cli-rs/parity/scenarios/C.6/add-header-local.cli.ts b/packages/cli-rs/parity/scenarios/C.6/add-header-local.cli.ts new file mode 100644 index 000000000000..06fd35390cbf --- /dev/null +++ b/packages/cli-rs/parity/scenarios/C.6/add-header-local.cli.ts @@ -0,0 +1,8 @@ +import { defineCli } from "../../cli/run" + +// `--header` belongs to remote servers. +// The TS error escapes with a stack trace; only its first line is compared (C40-handler-errors). +export default defineCli({ + stderrLines: 1, + args: ["mcp", "add", "x", "--header", "A=1", "--", "node"], +}) diff --git a/packages/cli-rs/parity/scenarios/C.6/add-local.cli.ts b/packages/cli-rs/parity/scenarios/C.6/add-local.cli.ts new file mode 100644 index 000000000000..cd4646621a51 --- /dev/null +++ b/packages/cli-rs/parity/scenarios/C.6/add-local.cli.ts @@ -0,0 +1,21 @@ +import { defineCli } from "../../cli/run" + +// `mcp add` with a command after `--` writes a local server into a new `opencode.json`. +export default defineCli({ + args: [ + "mcp", + "add", + "files", + "--env", + "ROOT=/srv", + "--env", + "MODE=ro", + "--", + "npx", + "-y", + "@acme/files", + "--root", + ".", + ], + collect: ["work/opencode.json"], +}) diff --git a/packages/cli-rs/parity/scenarios/C.6/add-neither.cli.ts b/packages/cli-rs/parity/scenarios/C.6/add-neither.cli.ts new file mode 100644 index 000000000000..3526bdc7515c --- /dev/null +++ b/packages/cli-rs/parity/scenarios/C.6/add-neither.cli.ts @@ -0,0 +1,9 @@ +import { defineCli } from "../../cli/run" + +// `mcp add` with neither a URL nor a command fails. +// The TS error escapes with a stack trace; only its first line is compared (C40-handler-errors). +export default defineCli({ + stderrLines: 1, + args: ["mcp", "add", "x"], + collect: ["work/opencode.json"], +}) diff --git a/packages/cli-rs/parity/scenarios/C.6/add-remote.cli.ts b/packages/cli-rs/parity/scenarios/C.6/add-remote.cli.ts new file mode 100644 index 000000000000..01d8c7802e23 --- /dev/null +++ b/packages/cli-rs/parity/scenarios/C.6/add-remote.cli.ts @@ -0,0 +1,19 @@ +import { defineCli } from "../../cli/run" +import { commented } from "./fixture" + +// `mcp add --url` with headers edits the existing commented `.opencode/opencode.jsonc` and keeps its comments. +export default defineCli({ + args: [ + "mcp", + "add", + "docs", + "--url", + "https://mcp.example.test/mcp", + "--header", + "Authorization=Bearer x", + "--header", + "X-Team=core", + ], + files: { ".opencode/opencode.jsonc": commented }, + collect: ["work/.opencode/opencode.jsonc", "work/opencode.json"], +}) diff --git a/packages/cli-rs/parity/scenarios/C.6/add-replace.cli.ts b/packages/cli-rs/parity/scenarios/C.6/add-replace.cli.ts new file mode 100644 index 000000000000..fb38af47ea33 --- /dev/null +++ b/packages/cli-rs/parity/scenarios/C.6/add-replace.cli.ts @@ -0,0 +1,9 @@ +import { defineCli } from "../../cli/run" +import { commented } from "./fixture" + +// `mcp add` over an existing name replaces that server in place. +export default defineCli({ + args: ["mcp", "add", "existing", "--url", "https://mcp.example.test/"], + files: { "opencode.json": commented }, + collect: ["work/opencode.json"], +}) diff --git a/packages/cli-rs/parity/scenarios/C.6/auth-decline.pty.ts b/packages/cli-rs/parity/scenarios/C.6/auth-decline.pty.ts new file mode 100644 index 000000000000..b0e3b61a0fb9 --- /dev/null +++ b/packages/cli-rs/parity/scenarios/C.6/auth-decline.pty.ts @@ -0,0 +1,15 @@ +// `mcp auth <connected server>` on a terminal asks before re-authenticating; No ends with "Cancelled". +import { definePty } from "../../pty/run" +import { integrationRoutes, sink } from "../C.5/fixture" +import { enter, first, press, right } from "../C.5/keys" +import { mcpRoute } from "./fixture" + +export default definePty({ + args: ["mcp", "auth", "github"], + env: sink, + server: { routes: [mcpRoute(), ...integrationRoutes()] }, + steps: [first("Re-authenticate?", "confirm"), press(right, "no"), press(enter, "cancelled", "Cancelled")], + osc: [], + exits: true, + requests: true, +}) diff --git a/packages/cli-rs/parity/scenarios/C.6/auth-no-tty.cli.ts b/packages/cli-rs/parity/scenarios/C.6/auth-no-tty.cli.ts new file mode 100644 index 000000000000..6df5b52b1bd5 --- /dev/null +++ b/packages/cli-rs/parity/scenarios/C.6/auth-no-tty.cli.ts @@ -0,0 +1,9 @@ +import { defineCli } from "../../cli/run" +import { integrationRoutes } from "../C.5/fixture" +import { mcpRoute } from "./fixture" + +// `mcp auth` without a name needs a terminal. +export default defineCli({ + args: ["mcp", "auth"], + server: { routes: [mcpRoute(), ...integrationRoutes()] }, +}) diff --git a/packages/cli-rs/parity/scenarios/C.6/auth-none.pty.ts b/packages/cli-rs/parity/scenarios/C.6/auth-none.pty.ts new file mode 100644 index 000000000000..b57d50b74913 --- /dev/null +++ b/packages/cli-rs/parity/scenarios/C.6/auth-none.pty.ts @@ -0,0 +1,15 @@ +// `mcp auth` without OAuth-capable servers explains how to add one. +import { definePty } from "../../pty/run" +import { integrationRoutes, sink } from "../C.5/fixture" +import { first } from "../C.5/keys" +import { mcpRoute, servers } from "./fixture" + +export default definePty({ + args: ["mcp", "auth"], + env: sink, + server: { routes: [mcpRoute(servers.slice(2)), ...integrationRoutes()] }, + steps: [first("Done", "done")], + osc: [], + exits: true, + requests: true, +}) diff --git a/packages/cli-rs/parity/scenarios/C.6/auth-not-oauth.cli.ts b/packages/cli-rs/parity/scenarios/C.6/auth-not-oauth.cli.ts new file mode 100644 index 000000000000..a7e63e6eae58 --- /dev/null +++ b/packages/cli-rs/parity/scenarios/C.6/auth-not-oauth.cli.ts @@ -0,0 +1,9 @@ +import { defineCli } from "../../cli/run" +import { integrationRoutes } from "../C.5/fixture" +import { mcpRoute } from "./fixture" + +// `mcp auth` of a server without OAuth. +export default defineCli({ + args: ["mcp", "auth", "filesystem"], + server: { routes: [mcpRoute(), ...integrationRoutes()] }, +}) diff --git a/packages/cli-rs/parity/scenarios/C.6/auth-picker.pty.ts b/packages/cli-rs/parity/scenarios/C.6/auth-picker.pty.ts new file mode 100644 index 000000000000..cebe431b1f3d --- /dev/null +++ b/packages/cli-rs/parity/scenarios/C.6/auth-picker.pty.ts @@ -0,0 +1,15 @@ +// `mcp auth` on a terminal: the MCP server picker with status hints, then OAuth with the browser sink. +import { definePty } from "../../pty/run" +import { credentialWrites, integrationRoutes, oauthRoutes, sink } from "../C.5/fixture" +import { down, enter, first, press } from "../C.5/keys" +import { mcpRoute } from "./fixture" + +export default definePty({ + args: ["mcp", "auth"], + env: sink, + server: { routes: [mcpRoute(), ...integrationRoutes(), ...oauthRoutes("mcp-linear"), ...credentialWrites] }, + steps: [first("Select MCP server", "picker"), press(down, "moved"), press(enter, "done", "Done")], + osc: [], + exits: true, + requests: true, +}) diff --git a/packages/cli-rs/parity/scenarios/C.6/auth-reauth.cli.ts b/packages/cli-rs/parity/scenarios/C.6/auth-reauth.cli.ts new file mode 100644 index 000000000000..433144071f54 --- /dev/null +++ b/packages/cli-rs/parity/scenarios/C.6/auth-reauth.cli.ts @@ -0,0 +1,10 @@ +import { defineCli } from "../../cli/run" +import { credentialWrites, integrationRoutes, oauthRoutes, sink } from "../C.5/fixture" +import { mcpRoute } from "./fixture" + +// `mcp auth` of a connected server without a terminal re-authenticates without asking and keeps the label. +export default defineCli({ + args: ["mcp", "auth", "github"], + env: sink, + server: { routes: [mcpRoute(), ...integrationRoutes(), ...oauthRoutes("mcp-github"), ...credentialWrites] }, +}) diff --git a/packages/cli-rs/parity/scenarios/C.6/auth-unknown.cli.ts b/packages/cli-rs/parity/scenarios/C.6/auth-unknown.cli.ts new file mode 100644 index 000000000000..4906e0f33250 --- /dev/null +++ b/packages/cli-rs/parity/scenarios/C.6/auth-unknown.cli.ts @@ -0,0 +1,9 @@ +import { defineCli } from "../../cli/run" +import { integrationRoutes } from "../C.5/fixture" +import { mcpRoute } from "./fixture" + +// `mcp auth` of an unknown server. +export default defineCli({ + args: ["mcp", "auth", "nope"], + server: { routes: [mcpRoute(), ...integrationRoutes()] }, +}) diff --git a/packages/cli-rs/parity/scenarios/C.6/auth.cli.ts b/packages/cli-rs/parity/scenarios/C.6/auth.cli.ts new file mode 100644 index 000000000000..c699793dbea0 --- /dev/null +++ b/packages/cli-rs/parity/scenarios/C.6/auth.cli.ts @@ -0,0 +1,10 @@ +import { defineCli } from "../../cli/run" +import { credentialWrites, integrationRoutes, oauthRoutes, sink } from "../C.5/fixture" +import { mcpRoute } from "./fixture" + +// `mcp auth <name>` without a terminal: OAuth with the browser step skipped, then the old credentials go. +export default defineCli({ + args: ["mcp", "auth", "linear"], + env: sink, + server: { routes: [mcpRoute(), ...integrationRoutes(), ...oauthRoutes("mcp-linear"), ...credentialWrites] }, +}) diff --git a/packages/cli-rs/parity/scenarios/C.6/fixture.ts b/packages/cli-rs/parity/scenarios/C.6/fixture.ts new file mode 100644 index 000000000000..c8a9db301654 --- /dev/null +++ b/packages/cli-rs/parity/scenarios/C.6/fixture.ts @@ -0,0 +1,30 @@ +// MCP servers and routes the C.6 (`mcp`) scenarios share; the integrations are C.5's. +import type { Route } from "../../lib/fake-server" +import { location } from "../C.5/fixture" + +export const servers = [ + { name: "linear", status: { status: "needs_auth", error: "Unauthorized" }, integrationID: "mcp-linear" }, + { name: "github", status: { status: "connected" }, integrationID: "mcp-github" }, + { name: "filesystem", status: { status: "connected" } }, + { name: "broken", status: { status: "failed", error: "spawn ENOENT" } }, + { name: "Sentry", status: { status: "disabled" } }, + { name: "slow", status: { status: "pending" } }, +] + +export function mcpRoute(data: unknown[] = servers): Route { + return { path: "/api/mcp", json: { location, data } } +} + +// A project config with comments and a server already in place, as people write them. +export const commented = `{ + // Project config + "$schema": "https://opencode.ai/config.json", + "mcp": { + "servers": { + /* keep me */ + "existing": { "type": "local", "command": ["node", "server.js"] } + } + }, + "theme": "dark", // trailing comment +} +` diff --git a/packages/cli-rs/parity/scenarios/C.6/list-empty.cli.ts b/packages/cli-rs/parity/scenarios/C.6/list-empty.cli.ts new file mode 100644 index 000000000000..4594fdca27b9 --- /dev/null +++ b/packages/cli-rs/parity/scenarios/C.6/list-empty.cli.ts @@ -0,0 +1,8 @@ +import { defineCli } from "../../cli/run" +import { mcpRoute } from "./fixture" + +// `mcp list` without servers. +export default defineCli({ + args: ["mcp", "list"], + server: { routes: [mcpRoute([])] }, +}) diff --git a/packages/cli-rs/parity/scenarios/C.6/list.cli.ts b/packages/cli-rs/parity/scenarios/C.6/list.cli.ts new file mode 100644 index 000000000000..d79275526ddc --- /dev/null +++ b/packages/cli-rs/parity/scenarios/C.6/list.cli.ts @@ -0,0 +1,8 @@ +import { defineCli } from "../../cli/run" +import { mcpRoute } from "./fixture" + +// `mcp list`: servers by name with a status icon and description. +export default defineCli({ + args: ["mcp", "list"], + server: { routes: [mcpRoute()] }, +}) diff --git a/packages/cli-rs/parity/scenarios/C.6/logout-no-credentials.cli.ts b/packages/cli-rs/parity/scenarios/C.6/logout-no-credentials.cli.ts new file mode 100644 index 000000000000..0ecf63bb2cd6 --- /dev/null +++ b/packages/cli-rs/parity/scenarios/C.6/logout-no-credentials.cli.ts @@ -0,0 +1,9 @@ +import { defineCli } from "../../cli/run" +import { integrations, location } from "../C.5/fixture" +import { mcpRoute } from "./fixture" + +// `mcp logout` of an integration without stored credentials. +export default defineCli({ + args: ["mcp", "logout", "linear"], + server: { routes: [mcpRoute(), { path: "/api/integration/mcp-linear", json: { location, data: integrations[5] } }] }, +}) diff --git a/packages/cli-rs/parity/scenarios/C.6/logout-none.cli.ts b/packages/cli-rs/parity/scenarios/C.6/logout-none.cli.ts new file mode 100644 index 000000000000..cfe895a27ec4 --- /dev/null +++ b/packages/cli-rs/parity/scenarios/C.6/logout-none.cli.ts @@ -0,0 +1,8 @@ +import { defineCli } from "../../cli/run" +import { mcpRoute } from "./fixture" + +// `mcp logout` of a server without an integration. +export default defineCli({ + args: ["mcp", "logout", "filesystem"], + server: { routes: [mcpRoute()] }, +}) diff --git a/packages/cli-rs/parity/scenarios/C.6/logout-unknown.cli.ts b/packages/cli-rs/parity/scenarios/C.6/logout-unknown.cli.ts new file mode 100644 index 000000000000..85e0e3d155a5 --- /dev/null +++ b/packages/cli-rs/parity/scenarios/C.6/logout-unknown.cli.ts @@ -0,0 +1,10 @@ +import { defineCli } from "../../cli/run" +import { mcpRoute } from "./fixture" + +// `mcp logout` of an unknown server. +// The TS error escapes with a stack trace; only its first line is compared (C40-handler-errors). +export default defineCli({ + stderrLines: 1, + args: ["mcp", "logout", "nope"], + server: { routes: [mcpRoute()] }, +}) diff --git a/packages/cli-rs/parity/scenarios/C.6/logout.cli.ts b/packages/cli-rs/parity/scenarios/C.6/logout.cli.ts new file mode 100644 index 000000000000..5ec1cc47554d --- /dev/null +++ b/packages/cli-rs/parity/scenarios/C.6/logout.cli.ts @@ -0,0 +1,15 @@ +import { defineCli } from "../../cli/run" +import { credentialWrites, integrations, location } from "../C.5/fixture" +import { mcpRoute } from "./fixture" + +// `mcp logout` removes every stored credential of the server's integration. +export default defineCli({ + args: ["mcp", "logout", "github"], + server: { + routes: [ + mcpRoute(), + { path: "/api/integration/mcp-github", json: { location, data: integrations[4] } }, + ...credentialWrites, + ], + }, +}) diff --git a/packages/cli-rs/parity/scenarios/C.8/fixture.ts b/packages/cli-rs/parity/scenarios/C.8/fixture.ts new file mode 100644 index 000000000000..f2c6826d131c --- /dev/null +++ b/packages/cli-rs/parity/scenarios/C.8/fixture.ts @@ -0,0 +1,83 @@ +// What the C.8 (`service`) and C.9 (`pair`) scenarios share. Both clients run in the sandbox as channel +// `local`, the channel of the TS CLI from source: config and registration are `service-local.json` under the +// sandbox's XDG roots. A registered service is the fake server, under this runner's pid, so discovery accepts +// it; no scenario stops a registered service, which would signal the runner. `opencode-native` gets a TS binary that +// does not exist, so it can never start a real service. +import { mkdir, writeFile } from "node:fs/promises" +import path from "node:path" +import { command, type Side } from "../../cli/client" +import type { Route } from "../../lib/fake-server" + +export const env = { OPENCODE_CHANNEL: "local", OPENCODE_TS_BIN: "/nonexistent/opencode-ts" } + +export const configFile = "home/.config/opencode/service-local.json" + +export async function writeConfig(root: string, config: unknown) { + await mkdir(path.join(root, "home/.config/opencode"), { recursive: true }) + await writeFile(path.join(root, configFile), JSON.stringify(config, null, 2) + "\n", { mode: 0o600 }) +} + +export async function register(root: string, server: string | undefined) { + if (server === undefined) throw new Error("register needs a fake server") + await mkdir(path.join(root, "home/.local/state/opencode"), { recursive: true }) + await writeFile( + path.join(root, "home/.local/state/opencode/service-local.json"), + JSON.stringify({ id: "fake", version: "local", url: server, pid: process.pid, password: "private" }), + { mode: 0o600 }, + ) +} + +// `/api/info` of the registered fake service: the runner's pid, as in the registration. +export function info(urls: string[]): Route { + return { + path: "/api/info", + json: { version: "local", pid: process.pid, urls, paths: { tmp: "/tmp" }, capabilities: { persistentPty: true } }, + } +} + +export const pairRoute: Route = { method: "POST", path: "/api/pair", json: { code: "PAIRCODE42", expires_in: 600 } } + +// Several commands in one shell, each followed by its exit code, then the config file, so a case compares what the +// edits wrote. +export function script(steps: string[][], options: { cat?: boolean } = {}) { + return (side: Side) => { + // TS from source prints a stack trace under an error; it names TS internals, so it is dropped. + const lines = steps.map( + (args) => + `${command(side, args).map(quote).join(" ")} 2>"$TMPDIR/stderr"; code=$?; grep -v '^ at ' "$TMPDIR/stderr" >&2; echo "exit $code"`, + ) + if (options.cat) lines.push(`cat ${quote(path.join("..", configFile))}`) + return ["sh", "-c", lines.join("\n")] + } +} + +export function quote(arg: string) { + return `'${arg.replaceAll("'", `'\\''`)}'` +} + +// One command, without the `--server` flag P-CLI otherwise appends: these commands find the service themselves. +export function only(args: string[]) { + return (side: Side) => command(side, args) +} + +// `only`, with the port numbers on stderr masked: `pair`'s SSH hint names the fake server's port, which differs +// between the sides. +export function masked(args: string[]) { + return (side: Side) => [ + "sh", + "-c", + `${command(side, args).map(quote).join(" ")} 2>"$TMPDIR/stderr"; code=$?; sed -E 's/\\b[0-9]{4,5}\\b/<port>/g' "$TMPDIR/stderr" >&2; exit $code`, + ] +} + +// An OpenTunnel identity in the sandbox's XDG data directory, as the SDK stores it once the certificate is ready. +export async function tunnel(root: string, hostname: string) { + const dir = path.join(root, "home/.local/share/opentunnel/default") + await mkdir(dir, { recursive: true }) + await writeFile( + path.join(dir, "tunnel.json"), + JSON.stringify({ id: "tun_test", hostname, certificateExpiry: "2099-01-01T00:00:00.000Z" }), + ) + for (const name of ["token", "private-key.pem", "certificate.pem", "chain.pem"]) + await writeFile(path.join(dir, name), name === "chain.pem" ? "" : "x") +} diff --git a/packages/cli-rs/parity/scenarios/C.8/get-all.cli.ts b/packages/cli-rs/parity/scenarios/C.8/get-all.cli.ts new file mode 100644 index 000000000000..40e7d1a3ff78 --- /dev/null +++ b/packages/cli-rs/parity/scenarios/C.8/get-all.cli.ts @@ -0,0 +1,20 @@ +// `service get` without a key: the config as JSON, without the password and with the route hidden. +import { defineCli } from "../../cli/run" +import { env, only, writeConfig } from "./fixture" + +export default defineCli({ + args: [], + command: only(["service", "get"]), + env, + setup: (root) => + writeConfig(root, { + disabled: false, + remote: { route: "0123456789abcdef" }, + remoteAccepted: true, + hostname: "0.0.0.0", + port: 5000, + password: "secret", + cors: ["https://app.example"], + env: { HTTPS_PROXY: "http://proxy:8080", A: "b" }, + }), +}) diff --git a/packages/cli-rs/parity/scenarios/C.8/get-keys.cli.ts b/packages/cli-rs/parity/scenarios/C.8/get-keys.cli.ts new file mode 100644 index 000000000000..bd20bb5b5e9d --- /dev/null +++ b/packages/cli-rs/parity/scenarios/C.8/get-keys.cli.ts @@ -0,0 +1,23 @@ +// `service get <key> [name]` for every key, an unknown key, a name after a key that takes none, and the +// password. +import { defineCli } from "../../cli/run" +import { env, script, writeConfig } from "./fixture" + +export default defineCli({ + args: [], + command: script([ + ["service", "get", "disabled"], + ["service", "get", "remote"], + ["service", "get", "hostname"], + ["service", "get", "port"], + ["service", "get", "cors"], + ["service", "get", "env"], + ["service", "get", "env", "A"], + ["service", "get", "env", "MISSING"], + ["service", "get", "nope"], + ["service", "get", "port", "extra"], + ["service", "get", "password"], + ]), + env, + setup: (root) => writeConfig(root, { port: 5000, password: "secret", cors: ["https://a.example"], env: { A: "b" } }), +}) diff --git a/packages/cli-rs/parity/scenarios/C.8/get-password-new.cli.ts b/packages/cli-rs/parity/scenarios/C.8/get-password-new.cli.ts new file mode 100644 index 000000000000..4a6db4d977f0 --- /dev/null +++ b/packages/cli-rs/parity/scenarios/C.8/get-password-new.cli.ts @@ -0,0 +1,14 @@ +// `service get password` with no config creates a private 43-character credential and keeps it. +import { defineCli } from "../../cli/run" +import { command } from "../../cli/client" +import { env, quote } from "./fixture" + +export default defineCli({ + args: [], + command: (side) => { + const get = command(side, ["service", "get", "password"]).map(quote).join(" ") + // The password is random: compare its shape, and that the second read returns the same one. + return ["sh", "-c", `{ ${get}; ${get}; } | uniq -c | sed -E 's/^ +//; s/ [A-Za-z0-9_-]{43}$/ <password>/'`] + }, + env, +}) diff --git a/packages/cli-rs/parity/scenarios/C.8/set-invalid.cli.ts b/packages/cli-rs/parity/scenarios/C.8/set-invalid.cli.ts new file mode 100644 index 000000000000..2f05a8210b2e --- /dev/null +++ b/packages/cli-rs/parity/scenarios/C.8/set-invalid.cli.ts @@ -0,0 +1,25 @@ +// Validation and usage errors of `set` and `unset`; none of them changes the file. +import { defineCli } from "../../cli/run" +import { env, script, writeConfig } from "./fixture" + +export default defineCli({ + args: [], + command: script( + [ + ["service", "set", "port", "abc"], + ["service", "set", "port", "65536"], + ["service", "set", "port", "1", "2"], + ["service", "set", "disabled", "yes"], + ["service", "set", "remote", "maybe"], + ["service", "set", "cors", "http://a.test/"], + ["service", "set", "env", "A"], + ["service", "set", "nope", "1"], + ["service", "unset", "env"], + ["service", "unset", "port", "x"], + ["service", "unset", "nope"], + ], + { cat: true }, + ), + env, + setup: (root) => writeConfig(root, { port: 5000 }), +}) diff --git a/packages/cli-rs/parity/scenarios/C.8/set-unset.cli.ts b/packages/cli-rs/parity/scenarios/C.8/set-unset.cli.ts new file mode 100644 index 000000000000..6f4074922c47 --- /dev/null +++ b/packages/cli-rs/parity/scenarios/C.8/set-unset.cli.ts @@ -0,0 +1,27 @@ +// Edits with no service running (nothing to stop), then the file both clients wrote, key order included. +import { defineCli } from "../../cli/run" +import { env, script, writeConfig } from "./fixture" + +export default defineCli({ + args: [], + command: script( + [ + ["service", "set", "port", "0x1388"], + ["service", "set", "hostname", "0.0.0.0"], + ["service", "set", "env", "B", "1"], + ["service", "set", "env", "A", "2"], + ["service", "set", "cors", "http://a.test, https://b.test:8443"], + ["service", "set", "password", "pw"], + ["service", "set", "disabled", "true"], + ["service", "set", "disabled", "false"], + ["service", "set", "remote", "false"], + ["service", "unset", "env", "B"], + ["service", "unset", "hostname"], + ["service", "unset", "disabled"], + ["service", "get"], + ], + { cat: true }, + ), + env, + setup: (root) => writeConfig(root, { remote: { route: "0123456789abcdef" }, port: 1 }), +}) diff --git a/packages/cli-rs/parity/scenarios/C.8/start-running.cli.ts b/packages/cli-rs/parity/scenarios/C.8/start-running.cli.ts new file mode 100644 index 000000000000..570fbe66a2c8 --- /dev/null +++ b/packages/cli-rs/parity/scenarios/C.8/start-running.cli.ts @@ -0,0 +1,11 @@ +// `service start` with a ready service registered: it is reused, and its URL printed. +import { defineCli } from "../../cli/run" +import { env, info, only, register } from "./fixture" + +export default defineCli({ + args: [], + command: only(["service", "start"]), + env, + server: { version: false, routes: [info([])] }, + setup: register, +}) diff --git a/packages/cli-rs/parity/scenarios/C.8/status-running.cli.ts b/packages/cli-rs/parity/scenarios/C.8/status-running.cli.ts new file mode 100644 index 000000000000..98ca2632c001 --- /dev/null +++ b/packages/cli-rs/parity/scenarios/C.8/status-running.cli.ts @@ -0,0 +1,11 @@ +// `service status` of a registered service that answers: its URL. +import { defineCli } from "../../cli/run" +import { env, info, only, register } from "./fixture" + +export default defineCli({ + args: [], + command: only(["service", "status"]), + env, + server: { version: false, routes: [info([])] }, + setup: register, +}) diff --git a/packages/cli-rs/parity/scenarios/C.8/status-stopped.cli.ts b/packages/cli-rs/parity/scenarios/C.8/status-stopped.cli.ts new file mode 100644 index 000000000000..8d8b1f0eb116 --- /dev/null +++ b/packages/cli-rs/parity/scenarios/C.8/status-stopped.cli.ts @@ -0,0 +1,9 @@ +// `service status` and `service stop` with nothing registered. +import { defineCli } from "../../cli/run" +import { env, script } from "./fixture" + +export default defineCli({ + args: [], + command: script([["service", "status"], ["service", "stop"], ["service", "status"]]), + env, +}) diff --git a/packages/cli-rs/parity/scenarios/C.9/consent-cancel.pty.ts b/packages/cli-rs/parity/scenarios/C.9/consent-cancel.pty.ts new file mode 100644 index 000000000000..6975c29d18dd --- /dev/null +++ b/packages/cli-rs/parity/scenarios/C.9/consent-cancel.pty.ts @@ -0,0 +1,25 @@ +// Escape at the consent prompt: the red cancel line, exit 130, nothing written. +import { definePty } from "../../pty/run" +import { command } from "../../cli/client" +import { configFile, env, quote } from "../C.8/fixture" + +// The command, its exit code, and then the config file: a refusal writes nothing. +const run = (side: "ts" | "rs") => [ + "sh", + "-c", + `${command(side, ["pair", "--remote"]).map(quote).join(" ")}; echo "exit $?"; cat ${quote("../" + configFile)} 2>&1 | sed 's/^cat: .*: /cat: /'`, +] + +export default definePty({ + args: [], + command: run, + env, + cols: 100, + rows: 20, + steps: [ + { until: { screen: "Expose your server to the internet?" }, settle: 300, timeout: 30_000 }, + { keys: "\x1b", until: { screen: "exit " }, settle: 300, checkpoint: "cancelled" }, + ], + osc: [], + exits: true, +}) diff --git a/packages/cli-rs/parity/scenarios/C.9/consent-decline.pty.ts b/packages/cli-rs/parity/scenarios/C.9/consent-decline.pty.ts new file mode 100644 index 000000000000..2dce213e9555 --- /dev/null +++ b/packages/cli-rs/parity/scenarios/C.9/consent-decline.pty.ts @@ -0,0 +1,26 @@ +// `pair --remote` for the first time on a terminal: the warning and the consent prompt; N declines, says how to +// pair locally, and exits 0 without enabling remote access or recording consent. +import { definePty } from "../../pty/run" +import { command } from "../../cli/client" +import { configFile, env, quote } from "../C.8/fixture" + +// The command, its exit code, and then the config file: a refusal writes nothing. +const run = (side: "ts" | "rs") => [ + "sh", + "-c", + `${command(side, ["pair", "--remote"]).map(quote).join(" ")}; echo "exit $?"; cat ${quote("../" + configFile)} 2>&1 | sed 's/^cat: .*: /cat: /'`, +] + +export default definePty({ + args: [], + command: run, + env, + cols: 100, + rows: 20, + steps: [ + { until: { screen: "Expose your server to the internet?" }, settle: 300, checkpoint: "prompt", timeout: 30_000 }, + { keys: "n", until: { screen: "exit " }, settle: 300, checkpoint: "declined" }, + ], + osc: [], + exits: true, +}) diff --git a/packages/cli-rs/parity/scenarios/C.9/machine-disabled.cli.ts b/packages/cli-rs/parity/scenarios/C.9/machine-disabled.cli.ts new file mode 100644 index 000000000000..0023b92520ff --- /dev/null +++ b/packages/cli-rs/parity/scenarios/C.9/machine-disabled.cli.ts @@ -0,0 +1,13 @@ +// `machine` needs the background service: with it disabled, each subcommand says so before connecting. +import { defineCli } from "../../cli/run" +import { env, script, writeConfig } from "../C.8/fixture" + +export default defineCli({ + args: [], + command: script([ + ["machine", "list"], + ["machine", "remove", "gpu"], + ]), + env, + setup: (root) => writeConfig(root, { disabled: true }), +}) diff --git a/packages/cli-rs/parity/scenarios/C.9/machine-empty.cli.ts b/packages/cli-rs/parity/scenarios/C.9/machine-empty.cli.ts new file mode 100644 index 000000000000..6513ee087d47 --- /dev/null +++ b/packages/cli-rs/parity/scenarios/C.9/machine-empty.cli.ts @@ -0,0 +1,26 @@ +// `machine list` with no machines, and `machine remove` of a name the server does not know. +import { defineCli } from "../../cli/run" +import { env, info, register, script } from "../C.8/fixture" + +export default defineCli({ + args: [], + command: script([ + ["machine", "list"], + ["machine", "remove", "x"], + ]), + env, + server: { + version: false, + routes: [ + info(["http://127.0.0.1:4096"]), + { path: "/api/experimental/machine", json: { data: [] } }, + { + method: "DELETE", + path: "/api/experimental/machine/x", + status: 404, + json: { _tag: "MachineNotFoundError", machine: "x", message: 'No machine named "x".' }, + }, + ], + }, + setup: register, +}) diff --git a/packages/cli-rs/parity/scenarios/C.9/machine-invalid.cli.ts b/packages/cli-rs/parity/scenarios/C.9/machine-invalid.cli.ts new file mode 100644 index 000000000000..7123532d3a45 --- /dev/null +++ b/packages/cli-rs/parity/scenarios/C.9/machine-invalid.cli.ts @@ -0,0 +1,29 @@ +// `machine add` with a name the server rejects (400 `invalid_name`), and another 400 that keeps the server's message. +import { defineCli } from "../../cli/run" +import type { Logged } from "../../lib/fake-server" +import { env, info, register, script } from "../C.8/fixture" + +export default defineCli({ + args: [], + command: script([ + ["machine", "add", "Bad"], + ["machine", "add", "other"], + ]), + env, + server: { + version: false, + routes: [ + info(["http://127.0.0.1:4096"]), + { + method: "POST", + path: "/api/experimental/machine", + status: 400, + json: (entry: Logged) => + (entry.body as { name: string }).name === "Bad" + ? { _tag: "InvalidRequestError", kind: "invalid_name", message: "invalid machine name" } + : { _tag: "InvalidRequestError", message: "reach is empty" }, + }, + ], + }, + setup: register, +}) diff --git a/packages/cli-rs/parity/scenarios/C.9/machine-refused.cli.ts b/packages/cli-rs/parity/scenarios/C.9/machine-refused.cli.ts new file mode 100644 index 000000000000..5c8981ae3901 --- /dev/null +++ b/packages/cli-rs/parity/scenarios/C.9/machine-refused.cli.ts @@ -0,0 +1,30 @@ +// The server's refusals, each with what to do: machines turned off (403) and a machine that is already paired (409). +import { defineCli } from "../../cli/run" +import { env, info, register, script } from "../C.8/fixture" + +export default defineCli({ + args: [], + command: script([ + ["machine", "list"], + ["machine", "add", "gpu"], + ]), + env, + server: { + version: false, + routes: [ + info([]), + { + path: "/api/experimental/machine", + status: 403, + json: { _tag: "ForbiddenError", message: "Machines are disabled" }, + }, + { + method: "POST", + path: "/api/experimental/machine", + status: 409, + json: { _tag: "ConflictError", resource: "gpu", message: "Machine gpu is already paired" }, + }, + ], + }, + setup: register, +}) diff --git a/packages/cli-rs/parity/scenarios/C.9/machine.cli.ts b/packages/cli-rs/parity/scenarios/C.9/machine.cli.ts new file mode 100644 index 000000000000..8903a2a48b4d --- /dev/null +++ b/packages/cli-rs/parity/scenarios/C.9/machine.cli.ts @@ -0,0 +1,43 @@ +// `machine` against the registered service: `add` prints only the join string off a terminal and sends the server's +// URLs as link addresses, reachable ones first (or the `--url` given alone); `list` aligns its columns; `remove` +// confirms; the bare group prints its help. +import { defineCli } from "../../cli/run" +import type { Logged } from "../../lib/fake-server" +import { env, info, register, script } from "../C.8/fixture" + +export default defineCli({ + args: [], + command: script([ + ["machine", "add", "gpu"], + ["machine", "add", "gpu", "--replace", "--url", "https://override.example.com:8443/"], + ["machine", "list"], + ["machine", "remove", "gpu"], + ["machine"], + ]), + env, + server: { + version: false, + routes: [ + info(["http://127.0.0.1:4096", "http://192.168.1.20:4096", "https://example.com"]), + { + method: "POST", + path: "/api/experimental/machine", + json: (entry: Logged) => ({ + data: { name: (entry.body as { name: string }).name, join: "ocjoin_example", expires: 1767268800000 }, + }), + }, + { + path: "/api/experimental/machine", + json: { + data: [ + { id: "gpu", paired: true, online: true, os: "linux", arch: "x64" }, + { id: "laptop", paired: true, online: false }, + { id: "worker", paired: false, online: false, os: "darwin" }, + ], + }, + }, + { method: "DELETE", path: "/api/experimental/machine/:name", status: 204 }, + ], + }, + setup: register, +}) diff --git a/packages/cli-rs/parity/scenarios/C.9/pair-errors.cli.ts b/packages/cli-rs/parity/scenarios/C.9/pair-errors.cli.ts new file mode 100644 index 000000000000..024477eb70bd --- /dev/null +++ b/packages/cli-rs/parity/scenarios/C.9/pair-errors.cli.ts @@ -0,0 +1,14 @@ +// The errors before anything connects: --remote with --url, and the disabled service. (An invalid --url is a +// usage error, which the Rust parser reports in its own format; see the C.8 report.) +import { defineCli } from "../../cli/run" +import { env, script, writeConfig } from "../C.8/fixture" + +export default defineCli({ + args: [], + command: script([ + ["pair", "--remote", "--url", "https://example.com"], + ["pair"], + ]), + env, + setup: (root) => writeConfig(root, { disabled: true }), +}) diff --git a/packages/cli-rs/parity/scenarios/C.9/pair-loopback.cli.ts b/packages/cli-rs/parity/scenarios/C.9/pair-loopback.cli.ts new file mode 100644 index 000000000000..e46ac29dec75 --- /dev/null +++ b/packages/cli-rs/parity/scenarios/C.9/pair-loopback.cli.ts @@ -0,0 +1,17 @@ +// `pair` when every URL is a loopback address: no QR code. The expiry rounds to whole minutes. +import { defineCli } from "../../cli/run" +import { env, info, masked, register } from "../C.8/fixture" + +export default defineCli({ + args: [], + command: masked(["pair"]), + env, + server: { + version: false, + routes: [ + info(["http://localhost:4096", "http://[::1]:4096"]), + { method: "POST", path: "/api/pair", json: { code: "PAIRCODE42", expires_in: 150 } }, + ], + }, + setup: register, +}) diff --git a/packages/cli-rs/parity/scenarios/C.9/pair-remote-no-tty.cli.ts b/packages/cli-rs/parity/scenarios/C.9/pair-remote-no-tty.cli.ts new file mode 100644 index 000000000000..2299d3668302 --- /dev/null +++ b/packages/cli-rs/parity/scenarios/C.9/pair-remote-no-tty.cli.ts @@ -0,0 +1,10 @@ +// `pair --remote` for the first time without a terminal and without --yes: the warning, and exit 1. Nothing is +// written and no tunnel is created. +import { defineCli } from "../../cli/run" +import { env, script } from "../C.8/fixture" + +export default defineCli({ + args: [], + command: script([["pair", "--remote"]], { cat: true }), + env, +}) diff --git a/packages/cli-rs/parity/scenarios/C.9/pair-remote.cli.ts b/packages/cli-rs/parity/scenarios/C.9/pair-remote.cli.ts new file mode 100644 index 000000000000..f4fd7c20b0c5 --- /dev/null +++ b/packages/cli-rs/parity/scenarios/C.9/pair-remote.cli.ts @@ -0,0 +1,19 @@ +// `pair --remote` with remote access already on: no consent and no tunnel setup; the link is the tunnel URL from +// `/api/info` whose host is `<route>.<tunnel hostname>`, with its QR code and no SSH hint. +import { defineCli } from "../../cli/run" +import { env, info, only, pairRoute, register, tunnel, writeConfig } from "../C.8/fixture" + +export default defineCli({ + args: [], + command: only(["pair", "--remote"]), + env, + server: { + version: false, + routes: [info(["http://127.0.0.1:4096", "https://0123456789abcdef.t1.opentunnel.test"]), pairRoute], + }, + setup: async (root, server) => { + await writeConfig(root, { remote: { route: "0123456789abcdef" } }) + await tunnel(root, "t1.opentunnel.test") + await register(root, server) + }, +}) diff --git a/packages/cli-rs/parity/scenarios/C.9/pair-url.cli.ts b/packages/cli-rs/parity/scenarios/C.9/pair-url.cli.ts new file mode 100644 index 000000000000..4645e9f2c620 --- /dev/null +++ b/packages/cli-rs/parity/scenarios/C.9/pair-url.cli.ts @@ -0,0 +1,11 @@ +// `pair --url`: the given external URL replaces the server's, and there is no SSH hint. +import { defineCli } from "../../cli/run" +import { env, info, only, pairRoute, register } from "../C.8/fixture" + +export default defineCli({ + args: [], + command: only(["pair", "--url", "https://opencode.example/base/"]), + env, + server: { version: false, routes: [info(["http://127.0.0.1:4096"]), pairRoute] }, + setup: register, +}) diff --git a/packages/cli-rs/parity/scenarios/C.9/pair.cli.ts b/packages/cli-rs/parity/scenarios/C.9/pair.cli.ts new file mode 100644 index 000000000000..dfdc693862ef --- /dev/null +++ b/packages/cli-rs/parity/scenarios/C.9/pair.cli.ts @@ -0,0 +1,12 @@ +// `pair` against the registered service: links for every server URL, a QR code of the reachable ones, and the +// SSH hint on stderr because the service listens on a loopback address. +import { defineCli } from "../../cli/run" +import { env, info, masked, pairRoute, register } from "../C.8/fixture" + +export default defineCli({ + args: [], + command: masked(["pair"]), + env, + server: { version: false, routes: [info(["http://127.0.0.1:4096", "http://192.168.1.20:4096"]), pairRoute] }, + setup: register, +}) diff --git a/packages/cli-rs/parity/scenarios/C.p/autocomplete-empty.pty.ts b/packages/cli-rs/parity/scenarios/C.p/autocomplete-empty.pty.ts new file mode 100644 index 000000000000..18367ad3e365 --- /dev/null +++ b/packages/cli-rs/parity/scenarios/C.p/autocomplete-empty.pty.ts @@ -0,0 +1,16 @@ +// No match: Enter submits nothing (`undefined`); Escape on another run cancels. +import { definePty } from "../../pty/run" +import { demo, press } from "./demo" + +export default definePty({ + args: [], + command: demo("autocomplete"), + cols: 60, + rows: 20, + steps: [ + { until: { screen: "Search" }, settle: 250 }, + press("zzz", "no matches", "No matches"), + press("\r", "submitted", "value:"), + ], + exits: true, +}) diff --git a/packages/cli-rs/parity/scenarios/C.p/autocomplete-piped.cli.ts b/packages/cli-rs/parity/scenarios/C.p/autocomplete-piped.cli.ts new file mode 100644 index 000000000000..2461803d3726 --- /dev/null +++ b/packages/cli-rs/parity/scenarios/C.p/autocomplete-piped.cli.ts @@ -0,0 +1,4 @@ +import { defineCli } from "../../cli/run" +import { demo } from "./demo" + +export default defineCli({ args: [], command: demo("autocomplete"), stdin: "item 2\x1b[B\r" }) diff --git a/packages/cli-rs/parity/scenarios/C.p/autocomplete.pty.ts b/packages/cli-rs/parity/scenarios/C.p/autocomplete.pty.ts new file mode 100644 index 000000000000..28f956bfe0d8 --- /dev/null +++ b/packages/cli-rs/parity/scenarios/C.p/autocomplete.pty.ts @@ -0,0 +1,19 @@ +// Typing filters with a match count, arrows navigate (and then typing shows dim), no matches, submit. +import { definePty } from "../../pty/run" +import { demo, press } from "./demo" + +export default definePty({ + args: [], + command: demo("autocomplete"), + cols: 70, + rows: 24, + steps: [ + { until: { screen: "Search" }, settle: 250, checkpoint: "initial" }, + press("go", "filtered"), + press("\x7f\x7fitem 1", "item 1"), + press("\x1b[B\x1b[B", "navigated"), + press("x", "typed while navigating"), + press("\x7f\r", "submitted", "value:"), + ], + exits: true, +}) diff --git a/packages/cli-rs/parity/scenarios/C.p/confirm-escape.pty.ts b/packages/cli-rs/parity/scenarios/C.p/confirm-escape.pty.ts new file mode 100644 index 000000000000..7d65fd010570 --- /dev/null +++ b/packages/cli-rs/parity/scenarios/C.p/confirm-escape.pty.ts @@ -0,0 +1,12 @@ +// Escape cancels; Clack's alias also flips the answer that the cancelled frame shows. +import { definePty } from "../../pty/run" +import { demo, press } from "./demo" + +export default definePty({ + args: [], + command: demo("confirm"), + cols: 50, + rows: 10, + steps: [{ until: { screen: "Continue?" }, settle: 250 }, press("\x1b", "cancelled", "Cancelled")], + exits: true, +}) diff --git a/packages/cli-rs/parity/scenarios/C.p/confirm.pty.ts b/packages/cli-rs/parity/scenarios/C.p/confirm.pty.ts new file mode 100644 index 000000000000..352b715f6c0d --- /dev/null +++ b/packages/cli-rs/parity/scenarios/C.p/confirm.pty.ts @@ -0,0 +1,18 @@ +// Arrows flip the answer, Enter submits; Y answers the second prompt at once. +import { definePty } from "../../pty/run" +import { demo, press } from "./demo" + +export default definePty({ + args: [], + command: demo("confirm"), + cols: 50, + rows: 14, + steps: [ + { until: { screen: "Continue?" }, settle: 250, checkpoint: "initial" }, + press("\x1b[C", "flipped"), + press("l", "flipped back"), + press("\r", "second", "Delete it?"), + press("y", "answered", "value: true\n"), + ], + exits: true, +}) diff --git a/packages/cli-rs/parity/scenarios/C.p/demo.ts b/packages/cli-rs/parity/scenarios/C.p/demo.ts new file mode 100644 index 000000000000..2cfcb1c2c64c --- /dev/null +++ b/packages/cli-rs/parity/scenarios/C.p/demo.ts @@ -0,0 +1,19 @@ +// The C.p scenarios run one prompt script on each side: `parity/oracle/C.p-prompts.ts` with +// `@clack/prompts`, and the same script in `opencode-prompt-demo` with the Rust kit. +import path from "node:path" +import type { Side } from "../../cli/client" +import type { PtyStep } from "../../pty/run" + +const rs = path.resolve(import.meta.dir, "../../..") + +export function demo(name: string) { + return (side: Side) => + side === "ts" + ? ["bun", path.join(rs, "parity/oracle/C.p-prompts.ts"), name] + : [path.join(rs, "target/debug/opencode-prompt-demo"), name] +} + +// One key (or chunk of typed text), then a checkpoint once the screen has settled. +export function press(keys: string, checkpoint: string, until?: string): PtyStep { + return { keys, until: until === undefined ? undefined : { screen: until }, settle: 250, checkpoint } +} diff --git a/packages/cli-rs/parity/scenarios/C.p/messages.cli.ts b/packages/cli-rs/parity/scenarios/C.p/messages.cli.ts new file mode 100644 index 000000000000..4cd72aceb605 --- /dev/null +++ b/packages/cli-rs/parity/scenarios/C.p/messages.cli.ts @@ -0,0 +1,5 @@ +// Without a terminal: the same lines, no colors. +import { defineCli } from "../../cli/run" +import { demo } from "./demo" + +export default defineCli({ args: [], command: demo("messages") }) diff --git a/packages/cli-rs/parity/scenarios/C.p/messages.pty.ts b/packages/cli-rs/parity/scenarios/C.p/messages.pty.ts new file mode 100644 index 000000000000..ce4db83509ad --- /dev/null +++ b/packages/cli-rs/parity/scenarios/C.p/messages.pty.ts @@ -0,0 +1,12 @@ +// intro, every log level, notes (one with a title longer than its body), outro, and cancel. +import { definePty } from "../../pty/run" +import { demo } from "./demo" + +export default definePty({ + args: [], + command: demo("messages"), + cols: 60, + rows: 40, + steps: [{ until: { screen: "Cancelled" }, settle: 250, checkpoint: "messages" }], + exits: true, +}) diff --git a/packages/cli-rs/parity/scenarios/C.p/multiselect.pty.ts b/packages/cli-rs/parity/scenarios/C.p/multiselect.pty.ts new file mode 100644 index 000000000000..31d53a5cdd70 --- /dev/null +++ b/packages/cli-rs/parity/scenarios/C.p/multiselect.pty.ts @@ -0,0 +1,24 @@ +// Space toggles, A toggles all; a required list without a selection shows the error; an optional one +// submits "none". +import { definePty } from "../../pty/run" +import { demo, press } from "./demo" + +export default definePty({ + args: [], + command: demo("multiselect"), + cols: 70, + rows: 24, + steps: [ + { until: { screen: "Providers" }, settle: 250, checkpoint: "initial" }, + press(" ", "toggled first"), + press("\x1b[B\x1b[B ", "untoggled google"), + press(" ", "toggled google"), + press("a", "all"), + press("a", "none"), + press("\r", "required", "Please select"), + press("\x1b[B ", "fixed"), + press("\r", "second", "Optional"), + press("\r", "submitted", "none"), + ], + exits: true, +}) diff --git a/packages/cli-rs/parity/scenarios/C.p/password-piped.cli.ts b/packages/cli-rs/parity/scenarios/C.p/password-piped.cli.ts new file mode 100644 index 000000000000..2d209aefc32a --- /dev/null +++ b/packages/cli-rs/parity/scenarios/C.p/password-piped.cli.ts @@ -0,0 +1,4 @@ +import { defineCli } from "../../cli/run" +import { demo } from "./demo" + +export default defineCli({ args: [], command: demo("password"), stdin: "\rkey\r" }) diff --git a/packages/cli-rs/parity/scenarios/C.p/password.pty.ts b/packages/cli-rs/parity/scenarios/C.p/password.pty.ts new file mode 100644 index 000000000000..98d7943ba678 --- /dev/null +++ b/packages/cli-rs/parity/scenarios/C.p/password.pty.ts @@ -0,0 +1,18 @@ +// Masked input with the cursor moved left, a required error, then submit. +import { definePty } from "../../pty/run" +import { demo, press } from "./demo" + +export default definePty({ + args: [], + command: demo("password"), + cols: 50, + rows: 10, + steps: [ + { until: { screen: "API key" }, settle: 250 }, + press("\r", "required", "Required"), + press("s3cret", "typed"), + press("\x1b[D\x1b[D", "cursor"), + press("\r", "submitted", "value:"), + ], + exits: true, +}) diff --git a/packages/cli-rs/parity/scenarios/C.p/select-long.pty.ts b/packages/cli-rs/parity/scenarios/C.p/select-long.pty.ts new file mode 100644 index 000000000000..0814c9a05979 --- /dev/null +++ b/packages/cli-rs/parity/scenarios/C.p/select-long.pty.ts @@ -0,0 +1,17 @@ +// A list longer than `maxItems`: the window follows the cursor with "..." rows, and wraps around. +import { definePty } from "../../pty/run" +import { demo, press } from "./demo" + +export default definePty({ + args: [], + command: demo("select-long"), + cols: 40, + rows: 20, + steps: [ + { until: { screen: "Pick one" }, settle: 250, checkpoint: "top" }, + press("jjjjjj", "middle"), + press("\x1b[A".repeat(8), "wrapped to the end"), + press("\r", "submitted", "value:"), + ], + exits: true, +}) diff --git a/packages/cli-rs/parity/scenarios/C.p/select-narrow.pty.ts b/packages/cli-rs/parity/scenarios/C.p/select-narrow.pty.ts new file mode 100644 index 000000000000..124b9e1e8c76 --- /dev/null +++ b/packages/cli-rs/parity/scenarios/C.p/select-narrow.pty.ts @@ -0,0 +1,17 @@ +// A terminal narrower than the rows: frames wrap and redraw from the first changed line. +import { definePty } from "../../pty/run" +import { demo, press } from "./demo" + +export default definePty({ + args: [], + command: demo("select"), + cols: 18, + rows: 14, + steps: [ + { until: { screen: "Provider" }, settle: 250, checkpoint: "initial" }, + press("\x1b[A", "up"), + press("\x1b[A", "first"), + press("\r", "submitted", "value:"), + ], + exits: true, +}) diff --git a/packages/cli-rs/parity/scenarios/C.p/select-piped.cli.ts b/packages/cli-rs/parity/scenarios/C.p/select-piped.cli.ts new file mode 100644 index 000000000000..b910dad542d0 --- /dev/null +++ b/packages/cli-rs/parity/scenarios/C.p/select-piped.cli.ts @@ -0,0 +1,4 @@ +import { defineCli } from "../../cli/run" +import { demo } from "./demo" + +export default defineCli({ args: [], command: demo("select"), stdin: "jj\r" }) diff --git a/packages/cli-rs/parity/scenarios/C.p/select-short.pty.ts b/packages/cli-rs/parity/scenarios/C.p/select-short.pty.ts new file mode 100644 index 000000000000..f947c5618f02 --- /dev/null +++ b/packages/cli-rs/parity/scenarios/C.p/select-short.pty.ts @@ -0,0 +1,16 @@ +// A terminal shorter than the list limits the window to its rows minus four. +import { definePty } from "../../pty/run" +import { demo, press } from "./demo" + +export default definePty({ + args: [], + command: demo("select-long"), + cols: 40, + rows: 9, + steps: [ + { until: { screen: "Pick one" }, settle: 250, checkpoint: "top" }, + press("kk", "end"), + press("\x03", "cancelled", "Cancelled"), + ], + exits: true, +}) diff --git a/packages/cli-rs/parity/scenarios/C.p/select.pty.ts b/packages/cli-rs/parity/scenarios/C.p/select.pty.ts new file mode 100644 index 000000000000..28455584cb0d --- /dev/null +++ b/packages/cli-rs/parity/scenarios/C.p/select.pty.ts @@ -0,0 +1,18 @@ +// The initial value, hints on the focused option, wrap-around with arrows and J and K. +import { definePty } from "../../pty/run" +import { demo, press } from "./demo" + +export default definePty({ + args: [], + command: demo("select"), + cols: 60, + rows: 14, + steps: [ + { until: { screen: "Provider" }, settle: 250, checkpoint: "initial" }, + press("\x1b[B", "down"), + press("jj", "wrapped"), + press("\x1b[A", "up"), + press("\r", "submitted", "value:"), + ], + exits: true, +}) diff --git a/packages/cli-rs/parity/scenarios/C.p/spinner-cancel.pty.ts b/packages/cli-rs/parity/scenarios/C.p/spinner-cancel.pty.ts new file mode 100644 index 000000000000..42339e3fd586 --- /dev/null +++ b/packages/cli-rs/parity/scenarios/C.p/spinner-cancel.pty.ts @@ -0,0 +1,15 @@ +// Ctrl+C while a spinner runs: Clack prints its cancel message as a success line and exits with 0. +import { definePty } from "../../pty/run" +import { demo } from "./demo" + +export default definePty({ + args: [], + command: demo("spinner-wait"), + cols: 50, + rows: 8, + steps: [ + { until: { screen: "Waiting" } }, + { keys: "\x03", until: { screen: "Canceled" }, settle: 300, checkpoint: "cancelled" }, + ], + exits: true, +}) diff --git a/packages/cli-rs/parity/scenarios/C.p/spinner.pty.ts b/packages/cli-rs/parity/scenarios/C.p/spinner.pty.ts new file mode 100644 index 000000000000..5a32bcaa2373 --- /dev/null +++ b/packages/cli-rs/parity/scenarios/C.p/spinner.pty.ts @@ -0,0 +1,12 @@ +// The spinner's final lines: success and cancel codes, between intro and outro. +import { definePty } from "../../pty/run" +import { demo } from "./demo" + +export default definePty({ + args: [], + command: demo("spinner"), + cols: 50, + rows: 12, + steps: [{ until: { screen: "Done" }, settle: 300, checkpoint: "done" }], + exits: true, +}) diff --git a/packages/cli-rs/parity/scenarios/C.p/text-cancel.pty.ts b/packages/cli-rs/parity/scenarios/C.p/text-cancel.pty.ts new file mode 100644 index 000000000000..b17939854866 --- /dev/null +++ b/packages/cli-rs/parity/scenarios/C.p/text-cancel.pty.ts @@ -0,0 +1,16 @@ +// Ctrl+C cancels: the struck-through input, then `cancel("Cancelled")` and exit 130. +import { definePty } from "../../pty/run" +import { demo, press } from "./demo" + +export default definePty({ + args: [], + command: demo("text"), + cols: 60, + rows: 12, + steps: [ + { until: { screen: "Your name" }, settle: 250 }, + press("abc", "typed"), + press("\x03", "cancelled", "Cancelled"), + ], + exits: true, +}) diff --git a/packages/cli-rs/parity/scenarios/C.p/text-piped.cli.ts b/packages/cli-rs/parity/scenarios/C.p/text-piped.cli.ts new file mode 100644 index 000000000000..5a70044f0e82 --- /dev/null +++ b/packages/cli-rs/parity/scenarios/C.p/text-piped.cli.ts @@ -0,0 +1,6 @@ +// Keys from a pipe drive the prompt as typed keys do; the frames keep their cursor movements and +// carry no colors. `\r` submits (a piped `\n` would only end readline's line, as in Clack). +import { defineCli } from "../../cli/run" +import { demo } from "./demo" + +export default defineCli({ args: [], command: demo("text"), stdin: "Ad\x7fda\r" }) diff --git a/packages/cli-rs/parity/scenarios/C.p/text-validate.pty.ts b/packages/cli-rs/parity/scenarios/C.p/text-validate.pty.ts new file mode 100644 index 000000000000..cb7400811847 --- /dev/null +++ b/packages/cli-rs/parity/scenarios/C.p/text-validate.pty.ts @@ -0,0 +1,20 @@ +// An initial value, a validation error that clears on the next key, the default value for an empty +// answer, and a required field, cancelled with a lone Escape. +import { definePty } from "../../pty/run" +import { demo, press } from "./demo" + +export default definePty({ + args: [], + command: demo("text-validate"), + cols: 60, + rows: 16, + steps: [ + { until: { screen: "Port" }, settle: 250, checkpoint: "initial" }, + press("x\r", "invalid", "Expected a number"), + press("\x7f", "fixed"), + press("\x15\r", "default", "Required"), + press("\r", "required"), + press("\x1b", "escape", "Cancelled"), + ], + exits: true, +}) diff --git a/packages/cli-rs/parity/scenarios/C.p/text.pty.ts b/packages/cli-rs/parity/scenarios/C.p/text.pty.ts new file mode 100644 index 000000000000..ddde44c997c7 --- /dev/null +++ b/packages/cli-rs/parity/scenarios/C.p/text.pty.ts @@ -0,0 +1,19 @@ +// Typing, line editing (Backspace, Left, Ctrl+A, Ctrl+K), and submit, between intro and outro. +import { definePty } from "../../pty/run" +import { demo, press } from "./demo" + +export default definePty({ + args: [], + command: demo("text"), + cols: 60, + rows: 16, + steps: [ + { until: { screen: "Ada Lovelace" }, settle: 250, checkpoint: "placeholder" }, + press("Grace", "typed"), + press("\x7f\x7fx", "backspace"), + press("\x1b[D\x1b[Dz", "cursor in the middle"), + press("\x01\x0bHopper", "ctrl-a ctrl-k"), + press("\r", "submitted", "Done"), + ], + exits: true, +}) diff --git a/packages/cli-rs/parity/scenarios/D.1/bin/opencode b/packages/cli-rs/parity/scenarios/D.1/bin/opencode new file mode 100755 index 000000000000..2040367c3051 --- /dev/null +++ b/packages/cli-rs/parity/scenarios/D.1/bin/opencode @@ -0,0 +1,4 @@ +#!/bin/sh +# The TypeScript CLI from source, run the way P-CLI's TS side runs it (`parity/cli/client.ts`), as the +# `OPENCODE_TS_BIN` that `opencode-native` delegates to. +exec bun --no-install --preload="$D1_PRELOAD" "$D1_CLI/src/index.ts" "$@" diff --git a/packages/cli-rs/parity/scenarios/D.1/plugin-list.cli.ts b/packages/cli-rs/parity/scenarios/D.1/plugin-list.cli.ts new file mode 100644 index 000000000000..a4a171e6d748 --- /dev/null +++ b/packages/cli-rs/parity/scenarios/D.1/plugin-list.cli.ts @@ -0,0 +1,28 @@ +// `plugin list --builtin` against a fake server: the server's plugins as a table, read by the delegated TS CLI +// through the `--server` argument it was given. +import { defineCli } from "../../cli/run" +import { env } from "./ts" + +const location = { directory: "/work", project: { id: "proj_test", directory: "/work", canonical: "/work" } } +const features = { server: true } +const state = { status: "active" } + +export default defineCli({ + args: ["plugin", "list", "--builtin"], + env, + server: { + routes: [ + { + path: "/api/plugin", + json: { + location, + data: [ + { id: "opencode.core", source: { type: "builtin" }, features, state }, + { id: "acme", source: { type: "package", target: "acme-plugin", version: "1.2.0" }, features, state }, + { id: "mine", source: { type: "local", path: "/work/plugins/mine" }, features, state }, + ], + }, + }, + ], + }, +}) diff --git a/packages/cli-rs/parity/scenarios/D.1/plugin-remove-missing.cli.ts b/packages/cli-rs/parity/scenarios/D.1/plugin-remove-missing.cli.ts new file mode 100644 index 000000000000..3dcd2a37d267 --- /dev/null +++ b/packages/cli-rs/parity/scenarios/D.1/plugin-remove-missing.cli.ts @@ -0,0 +1,5 @@ +// `plugin remove` of a package that no config lists: nothing is written. +import { defineCli } from "../../cli/run" +import { env } from "./ts" + +export default defineCli({ args: ["plugin", "remove", "not-configured"], env }) diff --git a/packages/cli-rs/parity/scenarios/D.1/serve-conflict.cli.ts b/packages/cli-rs/parity/scenarios/D.1/serve-conflict.cli.ts new file mode 100644 index 000000000000..9e2aba0308fb --- /dev/null +++ b/packages/cli-rs/parity/scenarios/D.1/serve-conflict.cli.ts @@ -0,0 +1,5 @@ +// `serve --service --stdio` fails before it starts anything ("--service and --stdio cannot be combined"). +import { defineCli } from "../../cli/run" +import { env } from "./ts" + +export default defineCli({ args: ["serve", "--service", "--stdio"], env }) diff --git a/packages/cli-rs/parity/scenarios/D.1/ts.ts b/packages/cli-rs/parity/scenarios/D.1/ts.ts new file mode 100644 index 000000000000..d3641a8df3ba --- /dev/null +++ b/packages/cli-rs/parity/scenarios/D.1/ts.ts @@ -0,0 +1,11 @@ +// The environment of the D.1 scenarios: `opencode-native` delegates to the TS CLI from source (`bin/opencode`), +// so both sides run the same TypeScript and must print the same thing. The TS side ignores these variables. +import path from "node:path" + +const cli = path.resolve(import.meta.dir, "../../../../cli") + +export const env = { + OPENCODE_TS_BIN: path.join(import.meta.dir, "bin/opencode"), + D1_CLI: cli, + D1_PRELOAD: Bun.resolveSync("@opentui/solid/preload", cli), +} diff --git a/packages/cli-rs/parity/scenarios/D.1/uninstall-dry-run.cli.ts b/packages/cli-rs/parity/scenarios/D.1/uninstall-dry-run.cli.ts new file mode 100644 index 000000000000..8a0be2e978f9 --- /dev/null +++ b/packages/cli-rs/parity/scenarios/D.1/uninstall-dry-run.cli.ts @@ -0,0 +1,5 @@ +// `uninstall --dry-run` lists what it would remove from the sandbox's roots and changes nothing. +import { defineCli } from "../../cli/run" +import { env } from "./ts" + +export default defineCli({ args: ["uninstall", "--dry-run"], env }) diff --git a/packages/cli-rs/parity/scenarios/D.1/upgrade-bad-method.cli.ts b/packages/cli-rs/parity/scenarios/D.1/upgrade-bad-method.cli.ts new file mode 100644 index 000000000000..118061548029 --- /dev/null +++ b/packages/cli-rs/parity/scenarios/D.1/upgrade-bad-method.cli.ts @@ -0,0 +1,6 @@ +// `upgrade --method apt`: a choice the flag does not take is a usage error before anything runs, as in TS. Past its +// parsing, `opencode-native upgrade` upgrades nothing and says how it is updated (deviation D01-upgrade), so this is +// what P-CLI can compare of it. +import { defineCli } from "../../cli/run" + +export default defineCli({ args: ["upgrade", "--method", "apt"] }) diff --git a/packages/cli-rs/parity/scenarios/D131/designs.pty.ts b/packages/cli-rs/parity/scenarios/D131/designs.pty.ts new file mode 100644 index 000000000000..fddf2264fb64 --- /dev/null +++ b/packages/cli-rs/parity/scenarios/D131/designs.pty.ts @@ -0,0 +1,38 @@ +// D131: with the config a release starts with. Since #64988 TS draws the new designs there too, the only ones Rust +// draws (X02): the palette searches in its title row ("Search commands") and `/debug` copies with `c` in both. +import { definePty } from "../../pty/run" + +export default definePty({ + args: [], + cols: 100, + rows: 30, + env: { OPENCODE_CLI_CONFIG_CONTENT: JSON.stringify({ debug: { devtools: false } }) }, + server: { fallback: "tui" }, + steps: [ + { until: { screen: "█▀▀█" }, settle: 500, timeout: 30_000 }, + { + keys: "\x10", + until: { screen: "esc" }, + settle: 300, + checkpoint: "palette", + }, + // Each Escape waits for its dialog to close: a lone ESC not yet read would join the next key. + { keys: "\x1b", until: { gone: "Suggested" }, settle: 300 }, + { keys: "/debug", until: { screen: "/debug" }, settle: 300 }, + { + keys: "\r", + until: { screen: "Share this when reporting an issue" }, + settle: 300, + checkpoint: "debug", + }, + { keys: "\x1b", until: { gone: "Share this when reporting an issue" }, settle: 300 }, + // Ctrl+C on the empty prompt exits; a second press could land once the terminal is restored, as a SIGINT. + { keys: "\x03", until: { exit: true } }, + ], + masks: [ + { pattern: /Date\s+\S+/, reason: "the time the dialog opened" }, + { pattern: /Version\s+.*$/, reason: "each CLI's version and channel" }, + { pattern: /Terminal\s+.*$/, reason: "the terminal each side detects" }, + ], + exits: true, +}) diff --git a/packages/cli-rs/parity/scenarios/D131/early-typing.pty.ts b/packages/cli-rs/parity/scenarios/D131/early-typing.pty.ts new file mode 100644 index 000000000000..29d300b0e466 --- /dev/null +++ b/packages/cli-rs/parity/scenarios/D131/early-typing.pty.ts @@ -0,0 +1,27 @@ +// D131: keys typed at once on start, while the model list is still loading (the server answers it after 4 s), reach +// the prompt without waiting for it. The Windows run saw typing stall for 20 s and 28 s before the model showed. +import { definePty } from "../../pty/run" +import { catalog } from "../C.13/catalog" + +const config = JSON.stringify({ experimental: { "new-designs": true }, animations: false, debug: { devtools: false } }) + +export default definePty({ + args: [], + cols: 100, + rows: 30, + env: { OPENCODE_CLI_CONFIG_CONTENT: config }, + server: { + fallback: "tui", + routes: catalog.map((route) => (route.path === "/api/model" ? { ...route, delay: 4000 } : route)), + }, + steps: [ + { until: { screen: "█▀▀█" }, timeout: 30_000 }, + // Well inside the model list's delay, with no settle: the keys show while it loads. + { keys: "typed early", until: { screen: "typed early" }, timeout: 1500, absent: "Demo Model" }, + { until: { screen: "Demo Model" }, settle: 300, checkpoint: "loaded", timeout: 10_000 }, + { keys: "\x15", until: { gone: "typed early" }, settle: 300 }, + // Ctrl+C on the empty prompt exits; a second press could land once the terminal is restored, as a SIGINT. + { keys: "\x03", until: { exit: true } }, + ], + exits: true, +}) diff --git a/packages/cli-rs/parity/scenarios/D131/palette.pty.ts b/packages/cli-rs/parity/scenarios/D131/palette.pty.ts new file mode 100644 index 000000000000..15a024cf7578 --- /dev/null +++ b/packages/cli-rs/parity/scenarios/D131/palette.pty.ts @@ -0,0 +1,38 @@ +// D131: the command palette at first run. Its suggested commands and groups come in the order of TS's layers: +// `app.tsx`'s commands last in their order, the home prompt's before them, and the built-in plugins' first, as TS +// loads those once the first route has mounted. Up from the top shows the end of the list. +import { definePty } from "../../pty/run" + +export default definePty({ + args: [], + cols: 100, + rows: 30, + env: { OPENCODE_CLI_CONFIG_CONTENT: JSON.stringify({ experimental: { "new-designs": true }, debug: { devtools: false } }) }, + server: { fallback: "tui" }, + steps: [ + { until: { screen: "█▀▀█" }, settle: 500, timeout: 30_000 }, + { keys: "\x10", until: { screen: "Search commands" }, settle: 300, checkpoint: "palette" }, + { keys: "\x1b[A", settle: 300, checkpoint: "tail" }, + { + keys: "update", + until: { screen: "update" }, + settle: 300, + checkpoint: "update", + deviation: { file: "D131-update-command", lines: 2 }, + }, + // Each Escape waits for its dialog to close: a lone ESC not yet read would join the next key. + { keys: "\x1b", until: { gone: "update" }, settle: 300 }, + // `/debug` copies with `c` under the new designs, as the footer says. + { keys: "/debug", until: { screen: "/debug" }, settle: 300 }, + { keys: "\r", until: { screen: "copy c" }, settle: 300, checkpoint: "debug" }, + { keys: "\x1b", until: { gone: "copy c" }, settle: 300 }, + // Ctrl+C on the empty prompt exits; a second press could land once the terminal is restored, as a SIGINT. + { keys: "\x03", until: { exit: true } }, + ], + masks: [ + { pattern: /Date\s+\S+/, reason: "the time the dialog opened" }, + { pattern: /Version\s+.*$/, reason: "each CLI's version and channel" }, + { pattern: /Terminal\s+.*$/, reason: "the terminal each side detects" }, + ], + exits: true, +}) diff --git a/packages/cli-rs/parity/scenarios/D131/plugins.pty.ts b/packages/cli-rs/parity/scenarios/D131/plugins.pty.ts new file mode 100644 index 000000000000..2f0bc98e4323 --- /dev/null +++ b/packages/cli-rs/parity/scenarios/D131/plugins.pty.ts @@ -0,0 +1,6 @@ +// `/plugins` under the new designs, the only ones Rust draws (X02): the list fills `floor(rows / 2) - 6` rows and +// an overflowing list cuts off (#64934). A release starts with these designs (#64988; `designs.pty.ts`). +import { definePty } from "../../pty/run" +import { plugins } from "./plugins" + +export default definePty(plugins({ experimental: { "new-designs": true } })) diff --git a/packages/cli-rs/parity/scenarios/D131/plugins.ts b/packages/cli-rs/parity/scenarios/D131/plugins.ts new file mode 100644 index 000000000000..aa45f9f60ade --- /dev/null +++ b/packages/cli-rs/parity/scenarios/D131/plugins.ts @@ -0,0 +1,42 @@ +// `/plugins` with more server plugins than the list has rows for (`plugins.pty.ts`). +import type { PtyCase } from "../../pty/run" + +const location = { directory: "/work", project: { id: "proj_test", directory: "/work", canonical: "/work" } } +const names = "alpha beta gamma delta epsilon zeta eta theta iota kappa lambda mu nu xi omicron pi rho sigma".split(" ") + +export function plugins(config: object): PtyCase { + return { + args: [], + cols: 120, + rows: 44, + env: { OPENCODE_CLI_CONFIG_CONTENT: JSON.stringify({ ...config, debug: { devtools: false } }) }, + server: { + fallback: "tui", + routes: [ + { + path: "/api/plugin", + json: { + location, + data: names.map((name, index) => ({ + id: name, + source: { type: "package", target: `${name}-plugin`, version: `1.0.${index}` }, + features: { server: true }, + state: { status: "active" }, + })), + }, + }, + ], + }, + steps: [ + { until: { screen: "█▀▀█" }, settle: 500, timeout: 30_000 }, + { keys: "/plugins", until: { screen: "/plugins" }, settle: 300 }, + { keys: "\r", until: { screen: "alpha" }, settle: 500, checkpoint: "plugins" }, + // Up from the top shows the end of the list. + { keys: "\x1b[A", settle: 300, checkpoint: "end" }, + // Escape waits for the list to close, and the one Ctrl+C on the empty prompt for the exit. + { keys: "\x1b", until: { gone: "check for updates" }, settle: 300 }, + { keys: "\x03", until: { exit: true } }, + ], + exits: true, + } +} diff --git a/packages/cli-rs/parity/scenarios/D131/session.ts b/packages/cli-rs/parity/scenarios/D131/session.ts new file mode 100644 index 000000000000..c5a559fd4ff4 --- /dev/null +++ b/packages/cli-rs/parity/scenarios/D131/session.ts @@ -0,0 +1,65 @@ +// A session the home prompt creates (D131): the fake server echoes the ID the client minted, answers the session's +// reads, and admits the prompt; nothing replies. Without `session.renamed` the session stays untitled, as when the +// server generates no title. +import type { Logged, Options } from "../../lib/fake-server" +import { catalog, inbox } from "../C.13/catalog" + +const location = { directory: "/tmp/opencode/packages/tui" } + +function info(id: string) { + return { + id, + projectID: "proj_test", + agent: "build", + model: { providerID: "demo", id: "model" }, + cost: 0, + tokens: { input: 0, output: 0, reasoning: 0, cache: { read: 0, write: 0 } }, + time: { created: 1_700_000_000_000, updated: 1_700_000_000_000 }, + location, + } +} + +const id = (entry: Logged) => entry.path.split("/")[3] + +// With `title`, the server publishes `session.renamed` once it has admitted the prompt, as after generating a title. +export function server(title?: string): Options { + return { + fallback: "tui", + routes: [ + // In place of the fallback's stream, which `then` does not reach. + { path: "/api/event", events: [{ id: "evt_connected", type: "server.connected", data: {} }] }, + ...catalog, + { method: "POST", path: "/api/session", json: (entry: Logged) => ({ data: info((entry.body as { id: string }).id) }) }, + { path: "/api/session/:id", json: (entry: Logged) => ({ data: info(id(entry)) }) }, + { path: "/api/session/:id/message", json: { data: [], cursor: {} } }, + { path: "/api/session/:id/inbox", json: { data: [] } }, + { + method: "POST", + path: "/api/session/:id/prompt", + json: (entry: Logged) => ({ data: inbox(id(entry)) }), + then: (entry) => (title ? [renamed(id(entry), title)] : []), + thenDelay: 500, + }, + ], + } +} + +function renamed(sessionID: string, title: string) { + return { + id: "evt_renamed", + created: 3, + type: "session.renamed", + location, + durable: { aggregateID: sessionID, seq: 1, version: 1 }, + data: { sessionID, title }, + } +} + +// Without animations the running session's spinner holds still, so the screen settles. +export const config = JSON.stringify({ + experimental: { "new-designs": true }, + animations: false, + debug: { devtools: false }, +}) + +export const masks = [{ pattern: /ses_[0-9A-Za-z]+/g, reason: "the session ID the client mints" }] diff --git a/packages/cli-rs/parity/scenarios/D131/title-long.pty.ts b/packages/cli-rs/parity/scenarios/D131/title-long.pty.ts new file mode 100644 index 000000000000..930764a512ef --- /dev/null +++ b/packages/cli-rs/parity/scenarios/D131/title-long.pty.ts @@ -0,0 +1,19 @@ +// D131: a generated title longer than 40 characters reaches the terminal title cut to 37 and an ellipsis. +import { definePty } from "../../pty/run" +import { config, masks, server } from "./session" + +export default definePty({ + args: [], + cols: 120, + rows: 30, + env: { OPENCODE_CLI_CONFIG_CONTENT: config }, + server: server("Investigate the flaky reconnect test on Windows runners"), + steps: [ + { until: { screen: "Demo Model" }, settle: 500, timeout: 30_000 }, + { keys: "hello", until: { screen: "hello" }, settle: 200 }, + { keys: "\r", until: { osc: "OC | Investigate the flaky reconnect test …" }, settle: 500 }, + ], + // As in title-renamed, TS sends the same title again on each change and Rust only a change: the logs differ. + osc: [], + masks, +}) diff --git a/packages/cli-rs/parity/scenarios/D131/title-renamed.pty.ts b/packages/cli-rs/parity/scenarios/D131/title-renamed.pty.ts new file mode 100644 index 000000000000..d24caced3886 --- /dev/null +++ b/packages/cli-rs/parity/scenarios/D131/title-renamed.pty.ts @@ -0,0 +1,24 @@ +// D131: a session the home prompt creates takes the title the server generates. The tab, the sidebar and the +// terminal title follow `session.renamed`, and the exit summary names the session by it. +import { definePty } from "../../pty/run" +import { config, masks, server } from "./session" + +export default definePty({ + args: [], + cols: 120, + rows: 30, + env: { OPENCODE_CLI_CONFIG_CONTENT: config }, + server: server("README.md onboarding token"), + steps: [ + { until: { screen: "Demo Model" }, settle: 500, timeout: 30_000 }, + { keys: "hello", until: { screen: "hello" }, settle: 200 }, + { keys: "\r", until: { osc: "OC | README.md onboarding token" }, settle: 500, checkpoint: "renamed" }, + // One Ctrl+C on the empty prompt exits, as in title-untitled. + { keys: "\x03", until: { screen: "Continue" }, settle: 300, checkpoint: "epilogue", timeout: 10_000 }, + ], + // The `renamed` step waits for both to set the generated title. TS sets a title again on every change to the + // session, the same one too; Rust sends only a change, so the logs are not compared. + osc: [], + masks, + exits: true, +}) diff --git a/packages/cli-rs/parity/scenarios/D131/title-untitled.pty.ts b/packages/cli-rs/parity/scenarios/D131/title-untitled.pty.ts new file mode 100644 index 000000000000..1d2981dcb1dd --- /dev/null +++ b/packages/cli-rs/parity/scenarios/D131/title-untitled.pty.ts @@ -0,0 +1,33 @@ +// D131: a session the home prompt creates and the server never titles. The tab shows the fallback title, as in TS; +// the exit summary names it "New session" where TS prints an +// empty title (D131-epilogue-untitled). +import { definePty } from "../../pty/run" +import { config, masks, server } from "./session" + +export default definePty({ + args: [], + cols: 120, + rows: 30, + env: { OPENCODE_CLI_CONFIG_CONTENT: config }, + server: server(), + steps: [ + { until: { screen: "Demo Model" }, settle: 500, timeout: 30_000 }, + { keys: "hello", until: { screen: "hello" }, settle: 200 }, + // The tab reads "New session", the new tab's title, before the timestamped default. + { keys: "\r", until: { screen: /New session +\+/ }, settle: 500, checkpoint: "untitled" }, + // Ctrl+C on the empty prompt exits. A second press is not needed: a screen that holds still cannot tell it from an + // exit that has not drawn yet, and once the terminal is restored the press is a SIGINT. + { + keys: "\x03", + until: { screen: "Continue" }, + settle: 300, + checkpoint: "epilogue", + deviation: { file: "D131-epilogue-untitled", lines: 1 }, + timeout: 10_000, + }, + ], + // TS sets "OpenCode" again as the session opens; Rust sends only a change (title-renamed). + osc: [], + masks, + exits: true, +}) diff --git a/packages/cli-rs/parity/scenarios/E.1/cold.app.ts b/packages/cli-rs/parity/scenarios/E.1/cold.app.ts new file mode 100644 index 000000000000..514df77c898b --- /dev/null +++ b/packages/cli-rs/parity/scenarios/E.1/cold.app.ts @@ -0,0 +1,16 @@ +// A cold Location (AGENTS.md "Plugin Loading"): the catalogs answer before the plugins load, so agents, models, +// providers, and commands are empty. The home shows no agent or model line, and the model picker opens empty. +import { defineApp, HOME_PLACEHOLDER } from "../../lib/app" + +const empty = { json: { location: { directory: "/tmp/opencode/packages/tui" }, data: [] } } +// The home prompt's placeholder row: its example is random. +const prompt = [HOME_PLACEHOLDER] + +export default defineApp({ + routes: ["/api/agent", "/api/model", "/api/provider", "/api/command"].map((path) => ({ path, ...empty })), + steps: [ + { checkpoint: "home", until: "Ask anything", masks: prompt }, + { keys: ["ctrl+x", "m"] }, + { checkpoint: "models", until: "Free models" }, + ], +}) diff --git a/packages/cli-rs/parity/scenarios/E.1/continue.app.ts b/packages/cli-rs/parity/scenarios/E.1/continue.app.ts new file mode 100644 index 000000000000..b6766813413b --- /dev/null +++ b/packages/cli-rs/parity/scenarios/E.1/continue.app.ts @@ -0,0 +1,25 @@ +// `--continue` (T02): the newest root session of the default location opens. +import { assistant, defineApp, session, user } from "../../lib/app" + +export default defineApp({ + args: { continue: true }, + routes: [ + { path: "/api/session", json: { data: [session("ses_b", "Fix the parser", { updated: 2 })], cursor: {} } }, + { path: "/api/session/ses_b", json: { data: session("ses_b", "Fix the parser", { updated: 2 }) } }, + { + path: "/api/session/ses_b/message", + json: { data: [assistant("msg_2", "The parser drops the last token."), user("msg_1", "Why?")], cursor: {} }, + }, + { path: "/api/session/ses_b/inbox", json: { data: [] } }, + // TS opens a placeholder session route ("dummy") until the list answers; the Rust TUI stays on home. + { path: "/api/session/dummy", json: { data: session("dummy", "") } }, + { path: "/api/session/dummy/message", json: { data: [], cursor: {} } }, + { path: "/api/session/dummy/inbox", json: { data: [] } }, + ], + steps: [ + { + checkpoint: "continued", + until: "The parser drops the last token.", + }, + ], +}) diff --git a/packages/cli-rs/parity/scenarios/E.1/epilogue.pty.ts b/packages/cli-rs/parity/scenarios/E.1/epilogue.pty.ts new file mode 100644 index 000000000000..652571d0fedb --- /dev/null +++ b/packages/cli-rs/parity/scenarios/E.1/epilogue.pty.ts @@ -0,0 +1,35 @@ +// The exit epilogue (G14): `-s ses_b` opens the session, Ctrl+C quits, and the terminal shows the wordmark, the +// session title, and the command that continues it (`util/presentation.ts`). Both sides name themselves +// "opencode" (OPENCODE_CLI_NAME). +import { definePty } from "../../pty/run" + +const session = { + id: "ses_b", + title: "Fix the parser", + projectID: "proj_test", + cost: 0, + tokens: { input: 0, output: 0, reasoning: 0, cache: { read: 0, write: 0 } }, + time: { created: 1, updated: 2 }, + location: { directory: "/tmp/opencode/packages/tui" }, +} + +export default definePty({ + args: ["-s", "ses_b"], + cols: 100, + rows: 30, + server: { + fallback: "tui", + routes: [ + { path: "/api/session/ses_b", json: { data: session } }, + { path: "/api/session/ses_b/message", json: { data: [], cursor: {} } }, + { path: "/api/session/ses_b/inbox", json: { data: [] } }, + ], + }, + steps: [ + { until: { screen: "Fix the parser" }, settle: 500, timeout: 30_000 }, + // One Ctrl+C on the empty prompt exits; a second press could land once the terminal is restored, as a SIGINT. + { keys: "\x03", until: { screen: "opencode -s ses_b" }, settle: 300, checkpoint: "epilogue", timeout: 10_000 }, + ], + osc: [], + exits: true, +}) diff --git a/packages/cli-rs/parity/scenarios/E.1/events.app.ts b/packages/cli-rs/parity/scenarios/E.1/events.app.ts new file mode 100644 index 000000000000..461112970b0c --- /dev/null +++ b/packages/cli-rs/parity/scenarios/E.1/events.app.ts @@ -0,0 +1,62 @@ +// Server-driven events (T10, T11): `tui.toast.show` and `tui.command.execute` for the current location, one +// for another location that is ignored, `tui.session.select` opens a session, and `session.deleted` of the open +// session goes home with a toast. +import { assistant, defineApp, HOME_PLACEHOLDER, session, user } from "../../lib/app" + +const here = { directory: "/tmp/opencode/packages/tui" } +const event = (id: string, type: string, data: unknown, location: unknown = here) => ({ + event: { id, created: 3, type, location, data }, +}) +// The home prompt's placeholder row: its example is random. +const prompt = [HOME_PLACEHOLDER] + +export default defineApp({ + // With tabs on, the tab strip (E.12) handles `session.deleted` first and goes home without the toast. + config: { tabs: { mode: "off" } }, + routes: [ + { path: "/api/session/ses_b", json: { data: session("ses_b", "Fix the parser", { updated: 2 }) } }, + { + path: "/api/session/ses_b/message", + json: { data: [assistant("msg_2", "The parser drops the last token."), user("msg_1", "Why?")], cursor: {} }, + }, + { path: "/api/session/ses_b/inbox", json: { data: [] } }, + ], + steps: [ + { checkpoint: "home", until: "Ask anything", masks: prompt }, + event( + "evt_1", + "tui.toast.show", + { title: "Elsewhere", message: "Not for this location", variant: "error" }, + { + directory: "/somewhere/else", + }, + ), + // No title: TS merges a replacing toast into the old one (T21-toast-replace-merge), and the deleted toast + // below has none either. + event("evt_2", "tui.toast.show", { message: "Deployed to staging", variant: "success" }), + { checkpoint: "toast", until: "Deployed to staging", masks: prompt }, + event("evt_3", "tui.session.select", { sessionID: "ses_b" }), + { + checkpoint: "selected", + until: "The parser drops the last token.", + }, + { + event: { + id: "evt_4", + created: 4, + type: "session.deleted", + durable: { aggregateID: "ses_b", seq: 1, version: 1 }, + location: here, + data: { sessionID: "ses_b" }, + }, + }, + { checkpoint: "deleted", until: "was deleted", masks: prompt }, + event("evt_5", "tui.command.execute", { command: "help.show" }), + { + checkpoint: "command", + until: "Help", + // Beside the dialog, the placeholder shows its first word. + masks: [{ ...prompt[0], width: 3 }], + }, + ], +}) diff --git a/packages/cli-rs/parity/scenarios/E.1/home-narrow.app.ts b/packages/cli-rs/parity/scenarios/E.1/home-narrow.app.ts new file mode 100644 index 000000000000..480b5c443bca --- /dev/null +++ b/packages/cli-rs/parity/scenarios/E.1/home-narrow.app.ts @@ -0,0 +1,22 @@ +// The home below 44 columns (T17): the two words stacked, one column of side padding, and no footer. +import { defineApp } from "../../lib/app" + +export default defineApp({ + width: 40, + height: 24, + steps: [ + { + checkpoint: "narrow", + until: "Ask", + masks: [ + { + x: 2, + y: 16, + width: 38, + height: 1, + reason: "the placeholder example: random in TS and Rust", + }, + ], + }, + ], +}) diff --git a/packages/cli-rs/parity/scenarios/E.1/home.app.ts b/packages/cli-rs/parity/scenarios/E.1/home.app.ts new file mode 100644 index 000000000000..72226230c94f --- /dev/null +++ b/packages/cli-rs/parity/scenarios/E.1/home.app.ts @@ -0,0 +1,12 @@ +// The home (T17): the logo with both words side by side, the prompt slot, and the version in the footer. +import { defineApp, HOME_PLACEHOLDER } from "../../lib/app" + +export default defineApp({ + steps: [ + { + checkpoint: "wide", + until: "Ask anything", + masks: [HOME_PLACEHOLDER], + }, + ], +}) diff --git a/packages/cli-rs/parity/scenarios/E.1/mcp-toast.app.ts b/packages/cli-rs/parity/scenarios/E.1/mcp-toast.app.ts new file mode 100644 index 000000000000..d9fa805af3ba --- /dev/null +++ b/packages/cli-rs/parity/scenarios/E.1/mcp-toast.app.ts @@ -0,0 +1,15 @@ +// An MCP server of the default location that failed shows a toast once (T12). +import { defineApp, HOME_PLACEHOLDER, location } from "../../lib/app" + +// The home prompt's placeholder row: its example is random. +const prompt = [HOME_PLACEHOLDER] + +export default defineApp({ + routes: [ + { + path: "/api/mcp", + json: { location, data: [{ name: "github", status: { status: "failed", error: "spawn ENOENT" } }] }, + }, + ], + steps: [{ checkpoint: "failed", until: "MCP server failed: github", masks: prompt }], +}) diff --git a/packages/cli-rs/parity/scenarios/E.1/model-invalid.app.ts b/packages/cli-rs/parity/scenarios/E.1/model-invalid.app.ts new file mode 100644 index 000000000000..a929118ac0d5 --- /dev/null +++ b/packages/cli-rs/parity/scenarios/E.1/model-invalid.app.ts @@ -0,0 +1,10 @@ +// `--model` without a provider (T27): a warning toast on the home. +import { defineApp, HOME_PLACEHOLDER } from "../../lib/app" + +// The home prompt's placeholder row: its example is random. +const prompt = [HOME_PLACEHOLDER] + +export default defineApp({ + args: { model: "gpt-5" }, + steps: [{ checkpoint: "toast", until: "Invalid model format: gpt-5", masks: prompt }], +}) diff --git a/packages/cli-rs/parity/scenarios/E.1/route-missing.app.ts b/packages/cli-rs/parity/scenarios/E.1/route-missing.app.ts new file mode 100644 index 000000000000..2d6a1f1314ee --- /dev/null +++ b/packages/cli-rs/parity/scenarios/E.1/route-missing.app.ts @@ -0,0 +1,15 @@ +// `OPENCODE_ROUTE` names a plugin route no plugin registers (T14b, T26): the missing route screen, centered. +import { defineApp, location } from "../../lib/app" + +// Rust reads the default location's catalogs at startup on every route (the prompt and model state); TS +// reads none on a plugin route. Answering them keeps P-REQ to the reads both sides send. +const catalog = (path: string) => ({ path, json: { location, data: [] } }) + +export default defineApp({ + routes: [ + ...["/api/model", "/api/provider", "/api/agent", "/api/integration"].map(catalog), + { path: "/api/config", json: [] }, + ], + env: { OPENCODE_ROUTE: JSON.stringify({ type: "plugin", id: "acme.tools", name: "board" }) }, + steps: [{ checkpoint: "missing", until: "go home" }], +}) diff --git a/packages/cli-rs/parity/scenarios/E.1/startup.app.ts b/packages/cli-rs/parity/scenarios/E.1/startup.app.ts new file mode 100644 index 000000000000..353ca58141c5 --- /dev/null +++ b/packages/cli-rs/parity/scenarios/E.1/startup.app.ts @@ -0,0 +1,25 @@ +// `--session ses_b --fork` (T02): the session is forked, and the fork opens instead of the session. +import { assistant, defineApp, session, user } from "../../lib/app" + +export default defineApp({ + args: { sessionID: "ses_b", fork: true }, + routes: [ + { + method: "POST", + path: "/api/session/ses_b/fork", + json: { data: session("ses_f", "Fix the parser (fork)", { updated: 3 }) }, + }, + { path: "/api/session/ses_f", json: { data: session("ses_f", "Fix the parser (fork)", { updated: 3 }) } }, + { + path: "/api/session/ses_f/message", + json: { data: [assistant("msg_2", "The parser drops the last token."), user("msg_1", "Why?")], cursor: {} }, + }, + { path: "/api/session/ses_f/inbox", json: { data: [] } }, + ], + steps: [ + { + checkpoint: "forked", + until: "The parser drops the last token.", + }, + ], +}) diff --git a/packages/cli-rs/parity/scenarios/E.10a/export-location.app.ts b/packages/cli-rs/parity/scenarios/E.10a/export-location.app.ts new file mode 100644 index 000000000000..44e5195210df --- /dev/null +++ b/packages/cli-rs/parity/scenarios/E.10a/export-location.app.ts @@ -0,0 +1,34 @@ +// The export options' Location row (DLG31, #62490): under Format, `project` by default; Down selects it and Space +// switches it to `temp`, which stays when Right turns the format to JSON. Escape closes without saving: the saved +// path depends on the machine's temporary directory and wraps in the result dialog, so +// crates/tui/tests/all/actions.rs checks where the file goes. +import { assistant, defineApp, session, user } from "../../lib/app" + +const id = "ses_x" + +export default defineApp({ + height: 30, + config: { experimental: { "new-designs": true } }, + args: { sessionID: id }, + routes: [ + { path: `/api/session/${id}`, json: { data: session(id, "Fix the parser", { updated: 2 }) } }, + { + path: `/api/session/${id}/message`, + json: { data: [assistant("msg_2", "Fixed it.", 2000), user("msg_1", "Read the parser", 1000)], cursor: {} }, + }, + { path: `/api/session/${id}/inbox`, json: { data: [] } }, + ], + steps: [ + { checkpoint: "session", until: "Fixed it." }, + { keys: ["ctrl+x", "x"] }, + { checkpoint: "options", until: "Export session" }, + { keys: ["down"] }, + { checkpoint: "location", until: "‹ project ›" }, + { keys: ["space"] }, + { checkpoint: "temp", until: "‹ temp ›" }, + { keys: ["up", "right"] }, + { checkpoint: "json", until: "Sanitize" }, + { keys: ["escape"] }, + { checkpoint: "closed" }, + ], +}) diff --git a/packages/cli-rs/parity/scenarios/E.10b/queue.sim.ts b/packages/cli-rs/parity/scenarios/E.10b/queue.sim.ts new file mode 100644 index 000000000000..757ea0aaabf1 --- /dev/null +++ b/packages/cli-rs/parity/scenarios/E.10b/queue.sim.ts @@ -0,0 +1,68 @@ +// Queued and steered prompts against the real inbox (V14, DLG38, DLG40, +// DLG41). While the first step waits, one prompt steers and two queue (`<leader>enter`); the dock above the prompt +// shows them, `<leader>q` opens its dialog, and Enter steers the second queued prompt. A click on the dock opens the +// dialog; a click on that pending steer and "Move to queue" queues it again; a click on a delivered prompt opens +// the message actions. Once the step ends, the server delivers the steer, then each queued prompt in its own turn. +import { defineSim } from "../../sim/scenario" + +const duration = { line: "· \\d.*", reason: "the turn duration depends on timing, also in length; the row ends there" } +const leader = { press: "x", modifiers: { ctrl: true } } as const +const click = (x: number, y: number) => + (["down", "up"] as const).map((action) => ({ mouse: { action, x, y, button: "left" as const } })) + +export default defineSim({ + model: [ + { items: [{ type: "textDelta", text: "Reading the parser." }, { hold: "busy" }] }, + { items: [{ type: "textDelta", text: "Answered the steer." }] }, + { items: [{ type: "textDelta", text: "Answered the first queued prompt." }] }, + { items: [{ type: "textDelta", text: "Answered the second queued prompt." }] }, + ], + steps: [ + { until: "Simulated Model" }, + { type: "Read the parser" }, + { until: "Read the parser" }, + { enter: true }, + { until: "Reading the parser." }, + { type: "Steer this" }, + { until: "Steer this" }, + { enter: true }, + // TS submits asynchronously and keeps text typed before the prompt clears, and the prompt shows the same text, + // so there is nothing to wait for. + { sleep: 1000 }, + { checkpoint: "steer" }, + { type: "First queued" }, + { until: "First queued" }, + leader, + { enter: true }, + { until: "1 queued · First queued" }, + { type: "Second queued" }, + { until: "Second queued" }, + leader, + { enter: true }, + { checkpoint: "dock", until: "2 queued" }, + leader, + { press: "q" }, + { checkpoint: "queued", until: "Search queued prompts" }, + { arrow: "down" }, + { checkpoint: "second", until: "2 of 2" }, + { enter: true }, + { checkpoint: "steered", until: "1 queued" }, + // The dock. + ...click(5, 20), + { checkpoint: "dock-click", until: "Search queued prompts" }, + { press: "escape" }, + { checkpoint: "dock-closed", until: "1 queued · First queued" }, + // The pending steer of "Second queued", then "Move to queue". + ...click(5, 13), + { checkpoint: "pending-steer", until: "Pending steer" }, + { enter: true }, + { checkpoint: "moved", until: "2 queued" }, + // A delivered prompt opens the message actions. + ...click(5, 3), + { checkpoint: "message", until: "Message Actions" }, + { press: "escape" }, + { checkpoint: "closed", until: "2 queued" }, + { release: "busy" }, + { checkpoint: "drained", until: "Answered the second queued prompt.", masks: [duration] }, + ], +}) diff --git a/packages/cli-rs/parity/scenarios/E.11a/session-list-current.app.ts b/packages/cli-rs/parity/scenarios/E.11a/session-list-current.app.ts new file mode 100644 index 000000000000..69bdc35e8b36 --- /dev/null +++ b/packages/cli-rs/parity/scenarios/E.11a/session-list-current.app.ts @@ -0,0 +1,34 @@ +// The session list opened from a session that is not the newest (DLG16): the selection starts on the first row, not +// on the current session (`focusCurrent={false}`). +import { assistant, defineApp, HOME_PLACEHOLDER, session, user } from "../../lib/app" + +export default defineApp({ + routes: [ + { + path: "/api/session", + json: { + data: [session("ses_b", "Fix the parser", { updated: 2 }), session("ses_a", "Write docs", { updated: 1 })], + cursor: {}, + }, + }, + { path: "/api/session/ses_a", json: { data: session("ses_a", "Write docs", { updated: 1 }) } }, + { + path: "/api/session/ses_a/message", + json: { + data: [assistant("msg_2", "The docs cover the parser."), user("msg_1", "Write the parser docs")], + cursor: {}, + }, + }, + { path: "/api/session/ses_a/inbox", json: { data: [] } }, + ], + steps: [ + { checkpoint: "home", until: "Ask anything", masks: [HOME_PLACEHOLDER] }, + { keys: ["ctrl+x", "l"] }, + { checkpoint: "list", until: "Write docs" }, + { keys: ["down"] }, + { keys: ["enter"] }, + { checkpoint: "session", until: "The docs cover the parser." }, + { keys: ["ctrl+x", "l"] }, + { checkpoint: "reopened", until: "Fix the parser" }, + ], +}) diff --git a/packages/cli-rs/parity/scenarios/E.11a/session-list.sim.ts b/packages/cli-rs/parity/scenarios/E.11a/session-list.sim.ts new file mode 100644 index 000000000000..3f3f3ee23a3e --- /dev/null +++ b/packages/cli-rs/parity/scenarios/E.11a/session-list.sim.ts @@ -0,0 +1,26 @@ +// Two sessions created on the server, then listed over the home +// (DLG16): opened with <leader>l, the first delete press marks the row, the second deletes the session on the +// server. The whole screen is compared except the home's placeholder row. +import { HOME_PLACEHOLDER } from "../../lib/app" +import { defineSim } from "../../sim/scenario" + +const leader = { press: "x", modifiers: { ctrl: true } } as const +const remove = { press: "d", modifiers: { ctrl: true } } as const + +export default defineSim({ + sessions: [ + { title: "Write docs", prompts: [] }, + { title: "Fix the parser", prompts: [] }, + ], + model: [], + steps: [ + { checkpoint: "home", until: "Simulated Model", masks: [HOME_PLACEHOLDER] }, + leader, + { press: "l" }, + { checkpoint: "list", until: "Write docs" }, + remove, + { checkpoint: "marked", until: "again to confirm" }, + remove, + { checkpoint: "deleted", until: "delete ctrl+d" }, + ], +}) diff --git a/packages/cli-rs/parity/scenarios/E.11b/worktree-delete.app.ts b/packages/cli-rs/parity/scenarios/E.11b/worktree-delete.app.ts new file mode 100644 index 000000000000..b62b1a42f54f --- /dev/null +++ b/packages/cli-rs/parity/scenarios/E.11b/worktree-delete.app.ts @@ -0,0 +1,48 @@ +// Deleting a worktree with file changes (DLG25, DLG26): the server refuses the plain delete with +// `forceRequired`, so the TUI lists the changes and asks again; `d` deletes with `force`. The fake server +// refuses that too, which shows the failure toast and the list again. +import { defineApp } from "../../lib/app" + +// The home placeholder picks a random example. +const placeholder = [{ x: 16, y: 16, width: 74, height: 1, reason: "random placeholder example" }] + +const refused = { + _tag: "WorktreeError", + name: "WorktreeError", + data: { message: "worktree contains modified or untracked files", forceRequired: true }, +} + +export default defineApp({ + routes: [ + { + path: "/api/worktree", + json: [{ directory: "/tmp/opencode" }, { directory: "/tmp/opencode-spike", strategy: "git" }], + }, + { method: "POST", path: "/api/worktree/refresh", status: 204 }, + { method: "DELETE", path: "/api/worktree", status: 400, json: refused }, + { + path: "/api/vcs/status", + json: { + location: { directory: "/tmp/opencode-spike" }, + data: [ + { file: "src/parser.ts", additions: 12, deletions: 3, status: "modified" }, + { file: "notes.md", additions: 4, deletions: 0, status: "added" }, + { file: "old.txt", additions: 0, deletions: 9, status: "deleted" }, + ], + }, + }, + ], + steps: [ + // Typing waits for the home prompt. + { checkpoint: "home", until: "Ask anything", masks: placeholder }, + { type: "/worktrees" }, + // Enter waits for the popup. + { checkpoint: "slash", until: "Manage workspaces" }, + { keys: ["enter"] }, + { checkpoint: "list", until: "opencode-spike" }, + { keys: ["down", "ctrl+d", "ctrl+d"] }, + { checkpoint: "changes", until: "old.txt" }, + { keys: ["d"] }, + { checkpoint: "failed", until: "Failed to delete worktree" }, + ], +}) diff --git a/packages/cli-rs/parity/scenarios/E.11b/worktrees.app.ts b/packages/cli-rs/parity/scenarios/E.11b/worktrees.app.ts new file mode 100644 index 000000000000..6c57e2b9c9e0 --- /dev/null +++ b/packages/cli-rs/parity/scenarios/E.11b/worktrees.app.ts @@ -0,0 +1,34 @@ +// `/worktrees` on home (P16, P17, DLG26, DLG27): the worktrees dialog lists the project's checkouts, the first +// delete press marks a worktree and a move clears the mark, `ctrl+a` names a new worktree, and Enter stages it +// for the first submit, which the footer shows as "(new worktree)". +import { defineApp } from "../../lib/app" + +// The home placeholder picks a random example. +const placeholder = [{ x: 16, y: 16, width: 74, height: 1, reason: "random placeholder example" }] + +export default defineApp({ + routes: [ + { + path: "/api/worktree", + json: [{ directory: "/tmp/opencode" }, { directory: "/tmp/opencode-spike", strategy: "git" }], + }, + { method: "POST", path: "/api/worktree/refresh", status: 204 }, + ], + steps: [ + // Typing waits for the home prompt. + { checkpoint: "home", until: "Ask anything", masks: placeholder }, + { type: "/worktrees" }, + // Enter waits for the popup. + { checkpoint: "slash", until: "Manage workspaces" }, + { keys: ["enter"] }, + { checkpoint: "list", until: "opencode-spike" }, + { keys: ["down", "ctrl+d"] }, + { checkpoint: "marked", until: "again to confirm" }, + { keys: ["down", "ctrl+a"] }, + // The name prompt has one-row gaps since #64944, so the home placeholder shows below it. + { checkpoint: "name", until: "Name worktree", masks: placeholder }, + { type: "My Spike" }, + { keys: ["enter"] }, + { checkpoint: "staged", until: "(new worktree)", masks: placeholder }, + ], +}) diff --git a/packages/cli-rs/parity/scenarios/E.12/compact-spinner.pty.ts b/packages/cli-rs/parity/scenarios/E.12/compact-spinner.pty.ts new file mode 100644 index 000000000000..20ad183e528f --- /dev/null +++ b/packages/cli-rs/parity/scenarios/E.12/compact-spinner.pty.ts @@ -0,0 +1,93 @@ +// A busy tab's spinner in the compact rail steps on its own (W04, `TabIndicator` in `session-tabs.tsx:190-198`): +// `-s ses_a` opens a session, a select opens `ses_b` beside it, a drag of the rail's handle (SGR reports, 1-based +// cells) makes the rail compact, and `ses_a` starts working in the background. With no input and no more events, the +// screen shows every spinner frame in turn. Rust stalled here: nothing else asked for a frame, so the spinner +// stepped only on input. Only the steps are compared: the rail's cells are P-APP's (`E.12/rail-resize`), and the +// window titles of a tab switch are H.3's. +import { definePty } from "../../pty/run" + +const config = JSON.stringify({ + experimental: { "new-designs": true }, + debug: { devtools: false }, + tabs: { layout: "vertical" }, +}) +const here = { directory: "/tmp/opencode/packages/tui" } + +const session = (id: string, title: string) => ({ + id, + title, + projectID: "proj_test", + cost: 0, + tokens: { input: 0, output: 0, reasoning: 0, cache: { read: 0, write: 0 } }, + time: { created: 1, updated: 2 }, + location: here, +}) +const reply = (text: string) => ({ + data: [ + { id: "msg_1", type: "user", text: "Why?", time: { created: 1 } }, + { + id: "msg_2", + type: "assistant", + agent: "build", + model: { providerID: "provider", id: "model" }, + content: [{ type: "text", text }], + finish: "stop", + time: { created: 2, completed: 3 }, + }, + ], + cursor: {}, +}) +const routes = (id: string, title: string, text: string) => [ + { path: `/api/session/${id}`, json: { data: session(id, title) } }, + { path: `/api/session/${id}/message`, json: reply(text) }, + { path: `/api/session/${id}/inbox`, json: { data: [] } }, +] +// From the handle (column 41) to column 8, one move per cell. +const drag = [ + "\x1b[<0;42;11M", + ...Array.from({ length: 33 }, (_, step) => `\x1b[<32;${41 - step};11M`), + "\x1b[<0;9;11m", +].join("") + +export default definePty({ + args: ["-s", "ses_a"], + cols: 120, + rows: 30, + env: { OPENCODE_CLI_CONFIG_CONTENT: config }, + server: { + fallback: "tui", + routes: [ + ...routes("ses_a", "Fix the parser", "The parser drops the last token."), + ...routes("ses_b", "Write the docs", "The docs are written."), + { method: "POST", path: "/api/session/:sessionID/view", json: {} }, + ], + }, + steps: [ + { until: { screen: "The parser drops the last token." }, settle: 500, timeout: 30_000 }, + { + emit: [{ id: "evt_1", created: 3, type: "tui.session.select", location: here, data: { sessionID: "ses_b" } }], + until: { screen: "The docs are written." }, + settle: 300, + }, + { keys: drag, until: { screen: "⌕" }, settle: 300 }, + { + emit: [ + { + id: "evt_2", + created: 4, + type: "session.execution.started", + durable: { aggregateID: "ses_a", seq: 1, version: 1 }, + data: { sessionID: "ses_a" }, + } as never, + ], + until: { screen: /[⠋⠙⠹⠸⠼⠴⠦⠧⠇⠏]/ }, + }, + // A full turn of the spinner, 80 ms a frame. A frame missed between two reads of the screen comes round again + // within the timeout. + ...["⠋", "⠙", "⠹", "⠸", "⠼", "⠴", "⠦", "⠧", "⠇", "⠏"].map((frame) => ({ + until: { screen: frame }, + timeout: 2_000, + })), + ], + osc: [], +}) diff --git a/packages/cli-rs/parity/scenarios/E.12/rail-resize.app.ts b/packages/cli-rs/parity/scenarios/E.12/rail-resize.app.ts new file mode 100644 index 000000000000..204153ce4187 --- /dev/null +++ b/packages/cli-rs/parity/scenarios/E.12/rail-resize.app.ts @@ -0,0 +1,38 @@ +// The vertical tab rail and its resize handle (W01, W04): two tabs in the rail at 120 columns, a drag of the +// handle from column 41 to 30 narrows the rail to 31, and a drag to column 8 makes it compact. +import { assistant, defineApp, session, user } from "../../lib/app" + +const here = { directory: "/tmp/opencode/packages/tui" } +const messages = (text: string) => ({ + json: { data: [assistant("msg_2", text), user("msg_1", "Why?")], cursor: {} }, +}) + +export default defineApp({ + width: 120, + config: { experimental: { "new-designs": true }, tabs: { layout: "vertical" } }, + args: { sessionID: "ses_a" }, + routes: [ + { path: "/api/session/ses_a", json: { data: session("ses_a", "Fix the parser", { updated: 2 }) } }, + { path: "/api/session/ses_a/message", ...messages("The parser drops the last token.") }, + { path: "/api/session/ses_a/inbox", json: { data: [] } }, + { path: "/api/session/ses_b", json: { data: session("ses_b", "Write the release notes for the next version") } }, + { path: "/api/session/ses_b/message", ...messages("The notes are written.") }, + { path: "/api/session/ses_b/inbox", json: { data: [] } }, + ], + steps: [ + // The first session's terminals are read only if its frame mounts before the select lands. In TS the frame + // waits for plugins, so that raced; showing the first session before the select makes both clients read them. + { checkpoint: "first", until: "The parser drops the last token." }, + { event: { id: "evt_1", created: 3, type: "tui.session.select", location: here, data: { sessionID: "ses_b" } } }, + { checkpoint: "rail", until: "The notes are written." }, + { drag: [[41, 10], [30, 10]] }, + { checkpoint: "resized", until: "The notes are written." }, + { drag: [[30, 10], [8, 10]] }, + // The blank row under the search icon: its spaces' foreground, which does not show (OT094). + { + checkpoint: "compact", + until: "The notes are written.", + deviation: [{ file: "OT094-blank-row-fg", cells: 8 }], + }, + ], +}) diff --git a/packages/cli-rs/parity/scenarios/E.12/tab-marquee.pty.ts b/packages/cli-rs/parity/scenarios/E.12/tab-marquee.pty.ts new file mode 100644 index 000000000000..a01cc70a3fce --- /dev/null +++ b/packages/cli-rs/parity/scenarios/E.12/tab-marquee.pty.ts @@ -0,0 +1,55 @@ +// A hovered vertical tab scrolls its overflowing title (`createMarquee` in `session-tabs.tsx`): after 600 ms it steps +// a cell every 80 ms through the title and a ` · ` separator, so the title's start comes round after the dot. Leaving +// the tab puts the title back at its start. Mouse reports are SGR motion with no button (`35`), 1-based cells. Only +// the steps are compared: the screens move with the clock. +import { definePty } from "../../pty/run" + +const config = JSON.stringify({ + experimental: { "new-designs": true }, + debug: { devtools: false }, + tabs: { layout: "vertical" }, + session: { sidebar: "hide" }, +}) +const here = { directory: "/tmp/opencode/packages/tui" } +const title = "Trace the flaky marquee across every terminal we ship" + +export default definePty({ + args: ["-s", "ses_m"], + cols: 120, + rows: 30, + env: { OPENCODE_CLI_CONFIG_CONTENT: config }, + // The window titles of opening a session are H.3's. + osc: [], + server: { + fallback: "tui", + routes: [ + { + path: "/api/session/ses_m", + json: { + data: { + id: "ses_m", + title, + projectID: "proj_test", + cost: 0, + tokens: { input: 0, output: 0, reasoning: 0, cache: { read: 0, write: 0 } }, + time: { created: 1, updated: 2 }, + location: here, + }, + }, + }, + { + path: "/api/session/ses_m/message", + json: { data: [{ id: "msg_1", type: "user", text: "Why so slow?", time: { created: 1 } }], cursor: {} }, + }, + { path: "/api/session/ses_m/inbox", json: { data: [] } }, + { method: "POST", path: "/api/session/:sessionID/view", json: {} }, + ], + }, + steps: [ + { until: { screen: "Why so slow?" }, settle: 500, timeout: 30_000 }, + // Over the tab's title row. + { keys: "\x1b[<35;8;2M", until: { screen: "· Trace" }, timeout: 10_000 }, + // Over the transcript: the title is back at its start, and stays there. + { keys: "\x1b[<35;80;15M", until: { gone: "· Trace" }, settle: 1000, absent: "· Trace" }, + ], +}) diff --git a/packages/cli-rs/parity/scenarios/E.12/tab-strip.app.ts b/packages/cli-rs/parity/scenarios/E.12/tab-strip.app.ts new file mode 100644 index 000000000000..4683fca76449 --- /dev/null +++ b/packages/cli-rs/parity/scenarios/E.12/tab-strip.app.ts @@ -0,0 +1,46 @@ +// The horizontal tab strip (W01, W02, W08): a session opens as a tab, a second joins it, `<leader>1` selects the +// first and leaves the unread second one glowing, `<leader>w` closes a tab and goes back in the history (which +// acknowledges the unread session, `session.view`), `ctrl+shift+t` reopens it, and `<leader>n` shows the +// new-session tab on home. +import { assistant, defineApp, session, user } from "../../lib/app" + +const here = { directory: "/tmp/opencode/packages/tui" } +const select = (id: string, sessionID: string) => ({ + event: { id, created: 3, type: "tui.session.select", location: here, data: { sessionID } }, +}) +const messages = (text: string) => ({ + json: { data: [assistant("msg_2", text), user("msg_1", "Why?")], cursor: {} }, +}) +// The home placeholder's example is random. +const home = [ + { x: 16, y: 17, width: 72, height: 1, reason: "the home placeholder example: random in TS and Rust" }, +] +// Read by the prompt as soon as the session is the open one: idle at 5, never viewed. +const unread = { ...session("ses_b", "Write the docs", { updated: 2 }), time: { created: 2, updated: 5, idle: 5 } } + +export default defineApp({ + config: { experimental: { "new-designs": true } }, + args: { sessionID: "ses_a" }, + routes: [ + { path: "/api/session/ses_a", json: { data: session("ses_a", "Fix the parser", { updated: 2 }) } }, + { path: "/api/session/ses_a/message", ...messages("The parser drops the last token.") }, + { path: "/api/session/ses_a/inbox", json: { data: [] } }, + { path: "/api/session/ses_b", json: { data: unread } }, + { path: "/api/session/ses_b/message", ...messages("The docs are written.") }, + { path: "/api/session/ses_b/inbox", json: { data: [] } }, + { method: "POST", path: "/api/session/:sessionID/view" }, + ], + steps: [ + { checkpoint: "one", until: "The parser drops the last token." }, + select("evt_1", "ses_b"), + { checkpoint: "two", until: "The docs are written." }, + { keys: ["ctrl+x", "1"] }, + { checkpoint: "unread", until: "The parser drops the last token." }, + { keys: ["ctrl+x", "w"] }, + { checkpoint: "closed", until: "The docs are written." }, + { keys: ["ctrl+shift+t"] }, + { checkpoint: "reopened", until: "The parser drops the last token." }, + { keys: ["ctrl+x", "n"] }, + { checkpoint: "new", until: "New session", masks: home }, + ], +}) diff --git a/packages/cli-rs/parity/scenarios/E.13a/terminal.app.ts b/packages/cli-rs/parity/scenarios/E.13a/terminal.app.ts new file mode 100644 index 000000000000..c941ae02ca25 --- /dev/null +++ b/packages/cli-rs/parity/scenarios/E.13a/terminal.app.ts @@ -0,0 +1,65 @@ +// The terminal pane on a fake persistent PTY socket (W06, A04): `<leader>t` shows the session's terminal, which +// replays its snapshot and output, claims control at the pane's size, and echoes typed input; `<leader>up` closes the +// pane, `<leader>t` opens it again on a new socket, and a closed socket shows "Terminal disconnected". +import { defineApp, session, user } from "../../lib/app" + +const terminal = { + id: "pty_1", + title: "Terminal", + command: "/bin/sh", + args: [], + cwd: "/tmp/opencode/packages/tui", + status: "running", + pid: 42, + sessionID: "ses_t", + foregroundProcess: null, + size: { cols: 80, rows: 24 }, + output: { head: 0, tail: 27 }, +} + +const checkpoint = "Welcome to the fake shell\r\n" + +export default defineApp({ + config: { experimental: { "new-designs": true } }, + args: { sessionID: "ses_t" }, + routes: [ + { path: "/api/session/ses_t", json: { data: session("ses_t", "Run the tests", { updated: 2 }) } }, + { path: "/api/session/ses_t/message", json: { data: [user("msg_1", "Open a terminal", 1000)], cursor: {} } }, + { path: "/api/session/ses_t/inbox", json: { data: [] } }, + { path: "/api/experimental/session/ses_t/terminal", json: { data: [terminal] } }, + { + path: "/api/experimental/persistent-pty/pty_1/snapshot", + json: { + data: { + info: terminal, + text: "Welcome to the fake shell", + checkpoint: Buffer.from(checkpoint).toString("base64"), + cursor: { x: 0, y: 1 }, + }, + }, + }, + { + method: "POST", + path: "/api/experimental/persistent-pty/pty_1/connect-token", + json: { data: { ticket: "ticket_1", expires_in: 30 } }, + }, + ], + pty: { size: { cols: 80, rows: 24 }, checkpoint, replay: "$ " }, + steps: [ + { checkpoint: "session", until: "Open a terminal" }, + { keys: ["ctrl+x", "t"] }, + { checkpoint: "shown", until: "fake shell" }, + { type: "echo hi" }, + { keys: ["enter"] }, + { checkpoint: "typed", until: "echo hi" }, + // Normal red, blue, and magenta, and bright green, which the palette maps to theme colors. + { pty: { output: "hi\r\n\x1b[31mred \x1b[34mblue \x1b[35mmagenta \x1b[92mgreen\x1b[0m\r\n$ " } }, + { checkpoint: "output" }, + { keys: ["ctrl+x", "up"] }, + { checkpoint: "closed" }, + { keys: ["ctrl+x", "t"] }, + { checkpoint: "reopened", until: "fake shell" }, + { pty: { close: true } }, + { checkpoint: "disconnected", until: "Terminal disconnected" }, + ], +}) diff --git a/packages/cli-rs/parity/scenarios/E.13b/child-permission.app.ts b/packages/cli-rs/parity/scenarios/E.13b/child-permission.app.ts new file mode 100644 index 000000000000..9abec028b189 --- /dev/null +++ b/packages/cli-rs/parity/scenarios/E.13b/child-permission.app.ts @@ -0,0 +1,34 @@ +// A child session prompts for its own permission request, and the prompt hides the composer the child shows in place +// of a prompt (`composerVisible`, #64343). Enter allows it once; the composer comes back. +import { assistant, defineApp, session, user } from "../../lib/app" + +const parent = session("ses_p", "Plan the release", { updated: 10 }) +const child = { ...session("ses_c", "Find the parser (@explore subagent)", { updated: 9 }), parentID: "ses_p" } + +export default defineApp({ + height: 30, + config: { experimental: { "new-designs": true } }, + args: { sessionID: "ses_c" }, + routes: [ + { path: "/api/session/ses_p", json: { data: parent } }, + { path: "/api/session/ses_c", json: { data: child } }, + { path: "/api/session", json: { data: [parent, child], cursor: {} } }, + { + path: "/api/session/ses_c/message", + json: { data: [assistant("msg_c_2", "Done.", 2000), user("msg_c_1", "Look for the parser", 1000)], cursor: {} }, + }, + { path: "/api/session/ses_c/inbox", json: { data: [] } }, + { + path: "/api/session/ses_c/permission", + json: { data: [{ id: "per_1", sessionID: "ses_c", action: "shell", resources: ["rg parser"], save: [] }] }, + }, + { method: "POST", path: "/api/session/ses_c/permission/per_1/reply", status: 204 }, + // The Rust prompt under the child's composer mounts its footer, which reads the goal; TS mounts no prompt here. + { method: "POST", path: "/api/rpc/opencode.goal/get", json: { output: null } }, + ], + steps: [ + { checkpoint: "prompted", until: "Permission required" }, + { keys: ["enter"] }, + { checkpoint: "composer", until: "Subagents" }, + ], +}) diff --git a/packages/cli-rs/parity/scenarios/E.13b/composer.app.ts b/packages/cli-rs/parity/scenarios/E.13b/composer.app.ts new file mode 100644 index 000000000000..97e43d47ac75 --- /dev/null +++ b/packages/cli-rs/parity/scenarios/E.13b/composer.app.ts @@ -0,0 +1,88 @@ +// The composer (V20, DLG18): Down on the empty prompt opens the Subagents tab with the running subagents of the +// session's family; Down moves, Ctrl+A shows the inactive ones, Enter opens a subagent, whose session shows the +// composer instead of a prompt, and Escape goes back to the parent. Right goes to the Shell tab, Enter opens the shell +// output dialog, Ctrl+D kills the shell, the Terminals tab offers a new terminal, and Escape gives the prompt back. +import { assistant, defineApp, location, session, user } from "../../lib/app" + +const directory = "/tmp/opencode/packages/tui" + +const child = (id: string, parentID: string, title: string, updated: number, agent?: string) => ({ + ...session(id, title, { updated }), + parentID, + ...(agent ? { agent } : {}), +}) + +const sessions = [ + session("ses_p", "Plan the release", { updated: 10 }), + child("ses_c1", "ses_p", "Find the parser (@explore subagent)", 9), + child("ses_c2", "ses_p", "Review the docs", 8, "general"), + child("ses_c3", "ses_c1", "Check the tests (@general subagent)", 7), +] + +const shell = { + id: "sh_1", + status: "running", + command: "bun run build --watch\nbun test", + cwd: directory, + shell: "/bin/sh", + file: "/tmp/sh_1.log", + pid: 7, + metadata: { sessionID: "ses_p" }, + time: { started: 1000 }, +} + +const transcript = (id: string, text: string) => [ + { + path: `/api/session/${id}/message`, + json: { data: [assistant(`msg_${id}_2`, "Done.", 2000), user(`msg_${id}_1`, text, 1000)], cursor: {} }, + }, + { path: `/api/session/${id}/inbox`, json: { data: [] } }, +] + +export default defineApp({ + height: 30, + config: { experimental: { "new-designs": true } }, + args: { sessionID: "ses_p" }, + routes: [ + { path: "/api/session/ses_p", json: { data: sessions[0] } }, + { path: "/api/session/ses_c1", json: { data: sessions[1] } }, + { path: "/api/session", json: { data: sessions, cursor: {} } }, + { path: "/api/session/active", json: { data: { ses_c1: { type: "running" }, ses_c3: { type: "running" } } } }, + ...transcript("ses_p", "Ship it"), + ...transcript("ses_c1", "Look for the parser"), + { path: "/api/shell", json: { location, data: [shell] } }, + // An exited shell with nothing captured, so the dialog stays the same while it polls. + { path: "/api/shell/sh_1", json: { location, data: { ...shell, status: "exited", exit: 0 } } }, + { path: "/api/shell/sh_1/output", json: { location, data: { output: "", cursor: 0, size: 0, truncated: false } } }, + { method: "DELETE", path: "/api/shell/sh_1", status: 204 }, + ], + steps: [ + { checkpoint: "session", until: "Ship it" }, + { keys: ["down"] }, + { checkpoint: "subagents", until: "Subagents" }, + { keys: ["down"] }, + { checkpoint: "next", until: "Check the tests" }, + { keys: ["ctrl+a"] }, + { checkpoint: "inactive", until: "show active" }, + { keys: ["ctrl+a"] }, + { checkpoint: "active", until: "show inactive" }, + { keys: ["enter"] }, + { checkpoint: "child", until: "Look for the parser" }, + { keys: ["escape"] }, + { checkpoint: "parent", until: "Ship it" }, + { keys: ["down"] }, + { keys: ["right"] }, + { checkpoint: "shell", until: "bun run build" }, + { keys: ["enter"] }, + { checkpoint: "output", until: "No captured output" }, + { keys: ["escape"] }, + { checkpoint: "output-closed" }, + { keys: ["ctrl+d"] }, + { keys: ["right"] }, + { checkpoint: "terminals", until: "New terminal" }, + { keys: ["escape"] }, + { checkpoint: "closed" }, + { type: "ok" }, + { checkpoint: "typed" }, + ], +}) diff --git a/packages/cli-rs/parity/scenarios/E.13b/scripts.app.ts b/packages/cli-rs/parity/scenarios/E.13b/scripts.app.ts new file mode 100644 index 000000000000..e24b656e20a2 --- /dev/null +++ b/packages/cli-rs/parity/scenarios/E.13b/scripts.app.ts @@ -0,0 +1,80 @@ +// Running work (#64956, #64790): the prompt footer counts the session's background Code Mode scripts and the +// subagents that own running jobs ("2 scripts · 1 subagent"), and Down opens the picker on its first busy tab, +// Scripts. A script is named by the first line of its `execute` code, else its title. Down moves, Ctrl+D cancels a +// script, and a cancelled job leaves the tab. Left twice reaches Subagents, where an idle subagent with a running job +// is active, and Ctrl+D cancels its job. +import { assistant, defineApp, session, user } from "../../lib/app" + +const here = { directory: "/tmp/opencode/packages/tui" } + +const sessions = [ + session("ses_p", "Plan the release", { updated: 10 }), + { ...session("ses_c", "Scan the logs (@explore subagent)", { updated: 9 }), parentID: "ses_p" }, +] + +// 2100-01-01: an elapsed time measured from the real clock would change the label's width over the hours. +const STARTED = 4_102_444_800_000 + +const script = (id: string, sessionID: string, title?: string) => ({ + kind: "codemode", + id, + sessionID, + status: "running", + ...(title ? { title } : {}), + // In the future, so both clients clamp the elapsed time to "0s" whatever the clock says. + time: { started: STARTED }, +}) + +const jobs = [script("cm_1", "ses_p"), script("cm_2", "ses_p", "Watch the logs"), script("cm_3", "ses_c")] + +const run = { + type: "tool", + id: "prt_execute", + name: "execute", + state: { + status: "completed", + input: { code: "\n // Build both packages\nawait Promise.all([build('a'), build('b')])" }, + content: [{ type: "text", text: "Moved to the background as cm_1." }], + metadata: { jobID: "cm_1" }, + }, + time: { created: 1500, completed: 1600 }, +} + + +export default defineApp({ + height: 30, + args: { sessionID: "ses_p" }, + routes: [ + { path: "/api/session/ses_p", json: { data: sessions[0] } }, + { path: "/api/session", json: { data: sessions, cursor: {} } }, + { + path: "/api/session/ses_p/message", + json: { data: [assistant("msg_2", [run], 2000), user("msg_1", "Build it", 1000)], cursor: {} }, + }, + { path: "/api/session/ses_p/inbox", json: { data: [] } }, + { path: "/api/experimental/job", json: { data: jobs } }, + { method: "POST", path: "/api/experimental/job/:id/cancel", status: 204 }, + ], + steps: [ + { checkpoint: "session", until: "2 scripts · 1 subagent" }, + { keys: ["down"] }, + { checkpoint: "scripts", until: "Watch the logs" }, + { keys: ["down"] }, + { checkpoint: "moved" }, + { keys: ["ctrl+d"] }, + { + event: { + id: "evt_cancelled", + created: 3, + type: "experimental.job.updated", + location: here, + data: { info: { ...jobs[1], status: "cancelled", time: { started: STARTED, completed: STARTED + 2000 } } }, + }, + }, + { checkpoint: "cancelled", until: "Build both packages" }, + { keys: ["left", "left"] }, + { checkpoint: "subagents", until: "interrupt" }, + { keys: ["ctrl+d"] }, + { checkpoint: "interrupted" }, + ], +}) diff --git a/packages/cli-rs/parity/scenarios/E.13b/shell-cut.app.ts b/packages/cli-rs/parity/scenarios/E.13b/shell-cut.app.ts new file mode 100644 index 000000000000..17f18e42a339 --- /dev/null +++ b/packages/cli-rs/parity/scenarios/E.13b/shell-cut.app.ts @@ -0,0 +1,50 @@ +// The shell output dialog keeps the newest 64 KiB, counted in UTF-16 code units, and starts it on a whole character +// (#63967): the output is an emoji and then 65,535 units, so the 65,536-unit tail would start on the emoji's second +// half. Every read answers the whole output, so each poll appends it again and the tail stays the same text; Home +// shows its first line, which starts with `x` and not with the emoji or half of it. +import { assistant, defineApp, location, session, user } from "../../lib/app" + +const directory = "/tmp/opencode/packages/tui" +const rest = `${"x".repeat(1023)}\n`.repeat(63) + "x".repeat(1023) +const output = `😀${rest}` +const size = Buffer.byteLength(output) + +const shell = { + id: "sh_1", + status: "running", + command: "render-frames", + cwd: directory, + shell: "/bin/sh", + file: "/tmp/sh_1.log", + pid: 7, + metadata: { sessionID: "ses_p" }, + time: { started: 1000 }, +} + +export default defineApp({ + height: 30, + config: { experimental: { "new-designs": true } }, + args: { sessionID: "ses_p" }, + routes: [ + { path: "/api/session/ses_p", json: { data: session("ses_p", "Render", { updated: 10 }) } }, + { path: "/api/session", json: { data: [session("ses_p", "Render", { updated: 10 })], cursor: {} } }, + { + path: "/api/session/ses_p/message", + json: { data: [assistant("msg_p_2", "Started it.", 2000), user("msg_p_1", "Run it", 1000)], cursor: {} }, + }, + { path: "/api/session/ses_p/inbox", json: { data: [] } }, + { path: "/api/shell", json: { location, data: [shell] } }, + { path: "/api/shell/sh_1", json: { location, data: { ...shell, status: "exited", exit: 0 } } }, + { path: "/api/shell/sh_1/output", json: { location, data: { output, cursor: size, size, truncated: false } } }, + ], + steps: [ + { checkpoint: "session", until: "Run it" }, + // The picker opens on the first busy tab, Shell (#64972). + { keys: ["down"] }, + { checkpoint: "shell", until: "render-frames" }, + { keys: ["enter"] }, + { checkpoint: "output", until: "Earlier output omitted" }, + { keys: ["home"] }, + { checkpoint: "first-line" }, + ], +}) diff --git a/packages/cli-rs/parity/scenarios/E.13b/shell-pages.app.ts b/packages/cli-rs/parity/scenarios/E.13b/shell-pages.app.ts new file mode 100644 index 000000000000..00916e5dcb5f --- /dev/null +++ b/packages/cli-rs/parity/scenarios/E.13b/shell-pages.app.ts @@ -0,0 +1,63 @@ +// The server pages shell output at UTF-8 boundaries (#63984). The running shell wrote 65,535 bytes of ASCII, then +// `😀 end` and two of the three bytes of `€`. The first page stops before the emoji rather than cut it at 65,536 +// bytes, the second starts with it, and the third answers nothing and keeps its cursor before `€`: the dialog waits +// for the next poll instead of asking again at once. The joined text is 65,541 code units, so the dialog keeps the +// newest 65,536 and notes the earlier output. The view follows the end, where the last line shows the emoji whole. +import { assistant, defineApp, location, session, user } from "../../lib/app" + +const directory = "/tmp/opencode/packages/tui" +const first = `${"x".repeat(1023)}\n`.repeat(63) + `${"x".repeat(1017)}\ntail ` +const second = "😀 end" +const size = Buffer.byteLength(first + second) + 2 + +const shell = { + id: "sh_1", + status: "running", + command: "render-frames", + cwd: directory, + shell: "/bin/sh", + file: "/tmp/sh_1.log", + pid: 7, + metadata: { sessionID: "ses_p" }, + time: { started: 1000 }, +} + +const page = (cursor: number, data: { output: string; cursor: number; size: number }, limit = true) => ({ + path: "/api/shell/sh_1/output", + query: { + cursor: [String(cursor)], + ...(limit ? { limit: ["65536"] } : {}), + "location[directory]": [directory], + }, + json: { location, data: { ...data, truncated: false } }, +}) + +export default defineApp({ + height: 30, + config: { experimental: { "new-designs": true } }, + args: { sessionID: "ses_p" }, + routes: [ + { path: "/api/session/ses_p", json: { data: session("ses_p", "Render", { updated: 10 }) } }, + { path: "/api/session", json: { data: [session("ses_p", "Render", { updated: 10 })], cursor: {} } }, + { + path: "/api/session/ses_p/message", + json: { data: [assistant("msg_p_2", "Started it.", 2000), user("msg_p_1", "Run it", 1000)], cursor: {} }, + }, + { path: "/api/session/ses_p/inbox", json: { data: [] } }, + { path: "/api/shell", json: { location, data: [shell] } }, + { path: "/api/shell/sh_1", json: { location, data: shell } }, + // When the dialog opened, the file held 65,536 bytes, so it reads from the start. + page(Number.MAX_SAFE_INTEGER, { output: "", cursor: 65536, size: 65536 }, false), + page(0, { output: first, cursor: first.length, size }), + page(first.length, { output: second, cursor: size - 2, size }), + page(size - 2, { output: "", cursor: size - 2, size }), + ], + steps: [ + { checkpoint: "session", until: "Run it" }, + // The picker opens on the first busy tab, Shell (#64972). + { keys: ["down"] }, + { checkpoint: "shell", until: "render-frames" }, + { keys: ["enter"] }, + { checkpoint: "output", until: "Earlier output omitted" }, + ], +}) diff --git a/packages/cli-rs/parity/scenarios/E.13b/tab-click.app.ts b/packages/cli-rs/parity/scenarios/E.13b/tab-click.app.ts new file mode 100644 index 000000000000..d8773990ce6e --- /dev/null +++ b/packages/cli-rs/parity/scenarios/E.13b/tab-click.app.ts @@ -0,0 +1,41 @@ +// Clicks in the composer (#60168): with a running shell and no running subagent, a click on the footer's +// "1 shell" opens the composer on the Shell tab, and a click on a tab label switches to it. +import { assistant, defineApp, location, session, user } from "../../lib/app" + +const directory = "/tmp/opencode/packages/tui" + +const shell = { + id: "sh_1", + status: "running", + command: "bun run build --watch", + cwd: directory, + shell: "/bin/sh", + file: "/tmp/sh_1.log", + pid: 7, + metadata: { sessionID: "ses_p" }, + time: { started: 1000 }, +} + +export default defineApp({ + height: 30, + config: { experimental: { "new-designs": true } }, + args: { sessionID: "ses_p" }, + routes: [ + { path: "/api/session/ses_p", json: { data: session("ses_p", "Plan the release", { updated: 10 }) } }, + { + path: "/api/session/ses_p/message", + json: { data: [assistant("msg_2", "Done.", 2000), user("msg_1", "Ship it", 1000)], cursor: {} }, + }, + { path: "/api/session/ses_p/inbox", json: { data: [] } }, + { path: "/api/shell", json: { location, data: [shell] } }, + ], + steps: [ + { checkpoint: "session", until: "1 shell" }, + { click: [73, 28] }, + { checkpoint: "shell", until: "bun run build" }, + { click: [8, 19] }, + { checkpoint: "subagents", until: "show inactive" }, + { click: [17, 19] }, + { checkpoint: "shell-again", until: "bun run build" }, + ], +}) diff --git a/packages/cli-rs/parity/scenarios/E.14/btw.app.ts b/packages/cli-rs/parity/scenarios/E.14/btw.app.ts new file mode 100644 index 000000000000..3e233189f9d4 --- /dev/null +++ b/packages/cli-rs/parity/scenarios/E.14/btw.app.ts @@ -0,0 +1,39 @@ +// `/btw` (F03): the side question goes to `session.generate` with the instructions, and the answer opens in a +// large dialog as Markdown. The answer is held until the pending checkpoint has seen the `/btw` spinner under the +// prompt; once the dialog closes, the spinner is gone. +import { assistant, defineApp, session, user } from "../../lib/app" + +export default defineApp({ + config: { experimental: { "new-designs": true } }, + args: { sessionID: "ses_b" }, + routes: [ + { path: "/api/session/ses_b", json: { data: session("ses_b", "Side questions", { updated: 2 }) } }, + { + path: "/api/session/ses_b/message", + json: { data: [assistant("msg_2", "The parser is fixed."), user("msg_1", "Fix the parser")], cursor: {} }, + }, + { path: "/api/session/ses_b/inbox", json: { data: [] } }, + { + method: "POST", + path: "/api/session/:sessionID/generate", + hold: true, + json: { + data: { + text: "It was an **off-by-one** in the tokenizer.\n\n- one\n- two\n", + tokens: { input: 120, output: 14, reasoning: 0, cache: { read: 0, write: 0 } }, + cost: 0.0004, + }, + }, + }, + ], + steps: [ + { checkpoint: "open", until: "The parser is fixed." }, + { type: "/btw what was the bug?" }, + { keys: ["enter"] }, + { checkpoint: "pending", until: "⋯ /btw" }, + { release: "/api/session/:sessionID/generate" }, + { checkpoint: "answer", until: "off-by-one" }, + { keys: ["escape"] }, + { checkpoint: "closed", until: "The parser is fixed." }, + ], +}) diff --git a/packages/cli-rs/parity/scenarios/E.14/goal.sim.ts b/packages/cli-rs/parity/scenarios/E.14/goal.sim.ts new file mode 100644 index 000000000000..5c5d3431bf36 --- /dev/null +++ b/packages/cli-rs/parity/scenarios/E.14/goal.sim.ts @@ -0,0 +1,32 @@ +// The goal under the prompt (F02, DLG45) from the server's goal plugin. `/goal` +// arms the goal and starts its first round, which waits; `◎ goal` shows under the prompt; a click opens the goal +// dialog with the objective, and `p` pauses it through `/goal pause`. The plugin's `changed` event shows the paused +// goal in the dialog and the footer. The round ends after the pause, so the reviewer never runs. +import { defineSim } from "../../sim/scenario" + +const duration = { line: "· \\d.*", reason: "the turn duration depends on timing, also in length; the row ends there" } +const click = (x: number, y: number) => + (["down", "up"] as const).map((action) => ({ mouse: { action, x, y, button: "left" as const } })) + +export default defineSim({ + model: [{ items: [{ type: "textDelta", text: "Working on it." }, { hold: "round" }] }], + steps: [ + { until: "Simulated Model" }, + { type: "/goal Ship the sidebar with every built-in section" }, + { until: "built-in section" }, + { enter: true }, + { until: "◎ goal" }, + // When its plugins take over 500 ms to load, TS shows a startup notice for 3 s on the footer's row, whose box + // spans the row and takes the click. `◎ goal` is a plugin's, so they have loaded and the notice does not return. + { gone: "Finishing startup" }, + { checkpoint: "status", until: "◎ goal" }, + ...click(75, 28), + { checkpoint: "dialog", until: "pause p" }, + { press: "p" }, + { checkpoint: "paused", until: "Paused by the user" }, + { press: "escape" }, + { checkpoint: "footer", until: "goal paused" }, + { release: "round" }, + { checkpoint: "ended", until: "Build · Simulated Model ·", masks: [duration] }, + ], +}) diff --git a/packages/cli-rs/parity/scenarios/E.14/home-footer.app.ts b/packages/cli-rs/parity/scenarios/E.14/home-footer.app.ts new file mode 100644 index 000000000000..7881f91134ec --- /dev/null +++ b/packages/cli-rs/parity/scenarios/E.14/home-footer.app.ts @@ -0,0 +1,20 @@ +// The home footer (F01): the connected MCP servers of the default location with `/mcps`, then the version. +import { defineApp, HOME_PLACEHOLDER, location } from "../../lib/app" + +export default defineApp({ + config: { experimental: { "new-designs": true } }, + routes: [ + { + path: "/api/mcp", + json: { + location, + data: [ + { name: "github", status: { status: "connected" } }, + { name: "linear", status: { status: "connected" } }, + { name: "figma", status: { status: "disabled" } }, + ], + }, + }, + ], + steps: [{ checkpoint: "counts", until: "2 MCP", masks: [HOME_PLACEHOLDER] }], +}) diff --git a/packages/cli-rs/parity/scenarios/E.14/overlay.app.ts b/packages/cli-rs/parity/scenarios/E.14/overlay.app.ts new file mode 100644 index 000000000000..9c808a0bbed0 --- /dev/null +++ b/packages/cli-rs/parity/scenarios/E.14/overlay.app.ts @@ -0,0 +1,23 @@ +// The sidebar below 120 columns (V19): hidden by default, `<leader>b` shows it over the dimmed session on the +// right, and Escape closes it. +import { assistant, defineApp, session, user } from "../../lib/app" + +export default defineApp({ + config: { experimental: { "new-designs": true } }, + args: { sessionID: "ses_o" }, + routes: [ + { path: "/api/session/ses_o", json: { data: session("ses_o", "Narrow sidebar", { updated: 2 }) } }, + { + path: "/api/session/ses_o/message", + json: { data: [assistant("msg_2", "Shown over the session."), user("msg_1", "Where is it?")], cursor: {} }, + }, + { path: "/api/session/ses_o/inbox", json: { data: [] } }, + ], + steps: [ + { checkpoint: "closed", until: "Shown over the session." }, + { keys: ["ctrl+x", "b"] }, + { checkpoint: "overlay", until: "Narrow sidebar" }, + { keys: ["escape"] }, + { checkpoint: "escaped" }, + ], +}) diff --git a/packages/cli-rs/parity/scenarios/E.14/sidebar.app.ts b/packages/cli-rs/parity/scenarios/E.14/sidebar.app.ts new file mode 100644 index 000000000000..d951833c89d0 --- /dev/null +++ b/packages/cli-rs/parity/scenarios/E.14/sidebar.app.ts @@ -0,0 +1,65 @@ +// The session sidebar (V19, F04, F06 to F08) at 140 columns, docked on the right: the title, the context use +// and cost (Context), the MCP servers folded above two with their statuses, the todo list, the getting started +// card (no provider connected), and the location. `<leader>b` hides it and writes `session.sidebar: "hide"`, +// and shows it again; a click on the MCP header folds the list. +import { assistant, defineApp, location, model, session, user } from "../../lib/app" + +const todos = [ + { content: "Write the changelog", status: "completed" }, + { content: "Tag the release", status: "in_progress" }, + { content: "Announce it", status: "pending" }, +] +const reply = { + ...assistant("msg_2", [ + { type: "text", text: "The release plan is ready." }, + { + type: "tool", + id: "call_1", + name: "todowrite", + state: { status: "completed", input: { todos }, content: [] }, + time: { created: 2, ran: 2, completed: 3 }, + }, + ]), + cost: 0.42, + tokens: { input: 20000, output: 500, reasoning: 0, cache: { read: 4500, write: 0 } }, +} + +export default defineApp({ + width: 140, + height: 34, + config: { experimental: { "new-designs": true } }, + args: { sessionID: "ses_s" }, + routes: [ + { + path: "/api/session/ses_s", + json: { data: { ...session("ses_s", "Plan the release", { updated: 2 }), cost: 0.42 } }, + }, + { path: "/api/session/ses_s/message", json: { data: [reply, user("msg_1", "Plan it")], cursor: {} } }, + { path: "/api/session/ses_s/inbox", json: { data: [] } }, + { path: "/api/model", json: { location, data: [model] } }, + { + path: "/api/integration", + json: { location, data: [{ id: "anthropic", name: "Anthropic", methods: [], connections: [] }] }, + }, + { + path: "/api/mcp", + json: { + location, + data: [ + { name: "github", status: { status: "connected" } }, + { name: "linear", status: { status: "failed", error: "spawn ENOENT" } }, + { name: "figma", status: { status: "needs_auth", error: "sign in" } }, + ], + }, + }, + ], + steps: [ + { checkpoint: "docked", until: "Getting started" }, + { click: [100, 9] }, + { checkpoint: "folded", until: "(1 active, 2 errors)" }, + { keys: ["ctrl+x", "b"] }, + { checkpoint: "hidden" }, + { keys: ["ctrl+x", "b"] }, + { checkpoint: "shown", until: "Getting started" }, + ], +}) diff --git a/packages/cli-rs/parity/scenarios/E.14/stats.app.ts b/packages/cli-rs/parity/scenarios/E.14/stats.app.ts new file mode 100644 index 000000000000..b5823a8531f1 --- /dev/null +++ b/packages/cli-rs/parity/scenarios/E.14/stats.app.ts @@ -0,0 +1,50 @@ +// `/stats` (F11): the stats route over a recorded `GET /api/experimental/session/stats` (never the live +// service, whose stats endpoint crashes it): the range, the token total in large digits, the activity calendar, +// and the streak, active days, and sessions. Escape goes back home. The range runs from noon to noon UTC, so +// its local dates are the same in UTC and in Central European time. +import { defineApp, HOME_PLACEHOLDER } from "../../lib/app" + +const day = 86_400_000 +const from = Date.UTC(2026, 0, 1, 12) +const to = from + 27 * day + +export default defineApp({ + config: { experimental: { "new-designs": true } }, + routes: [ + { + path: "/api/experimental/session/stats", + json: { + data: { + range: { from, to }, + sessions: 42, + subagents: 3, + prompts: 120, + steps: 300, + tokens: { input: 1_000_000, output: 200_000, reasoning: 34_000, cache: { read: 0, write: 0 } }, + cost: 12.5, + tools: { mode: "none" }, + activeDays: 9, + streak: 4, + activity: [ + { date: "2026-01-02", steps: 3 }, + { date: "2026-01-05", steps: 12 }, + { date: "2026-01-06", steps: 7 }, + { date: "2026-01-12", steps: 30 }, + { date: "2026-01-20", steps: 1 }, + ], + models: [], + }, + }, + }, + ], + steps: [ + { + checkpoint: "home", + until: "/tmp/opencode/packages/tui:main", + masks: [HOME_PLACEHOLDER], + }, + { type: "/stats" }, + { keys: ["enter"] }, + { checkpoint: "poster", until: "opencode / stats" }, + ], +}) diff --git a/packages/cli-rs/parity/scenarios/E.14/stats.sim.ts b/packages/cli-rs/parity/scenarios/E.14/stats.sim.ts new file mode 100644 index 000000000000..d4b58c7f1b60 --- /dev/null +++ b/packages/cli-rs/parity/scenarios/E.14/stats.sim.ts @@ -0,0 +1,26 @@ +// P-TUI version of `E.14/stats.app.ts`: `/stats` (F11) over the simulated server's own +// `GET /api/experimental/session/stats` (never the user's service, whose stats endpoint crashes it), after one +// session with two turns ran on it. The range and the activity calendar end today, so the server and both clients +// run on a clock that starts at a fixed noon (UTC), and the captures stay the same from day to day. +import { HOME_PLACEHOLDER } from "../../lib/app" +import { defineSim } from "../../sim/scenario" + +export default defineSim({ + now: Date.UTC(2026, 5, 17, 12), + sessions: [{ title: "Count the tokens", prompts: ["Count the tokens", "Count them again"] }], + model: [ + { items: [{ type: "textDelta", text: "Counted." }] }, + { items: [{ type: "textDelta", text: "Counted again." }] }, + ], + steps: [ + { + checkpoint: "home", + until: "Simulated Model", + masks: [HOME_PLACEHOLDER], + }, + { type: "/stats" }, + { until: "/stats" }, + { enter: true }, + { checkpoint: "poster", until: "opencode / stats" }, + ], +}) diff --git a/packages/cli-rs/parity/scenarios/E.15a/committed.app.ts b/packages/cli-rs/parity/scenarios/E.15a/committed.app.ts new file mode 100644 index 000000000000..1818ec542cfa --- /dev/null +++ b/packages/cli-rs/parity/scenarios/E.15a/committed.app.ts @@ -0,0 +1,19 @@ +// The committed source without base metadata (F15): the server reports no base, so the viewer asks for one instead +// of requesting a diff, at the full-screen route's size of 100 columns with no file tree to show. +import { defineApp, HOME_PLACEHOLDER, location } from "../../lib/app" + +export default defineApp({ + config: { experimental: { "new-designs": true }, diffs: { source: "committed" } }, + routes: [{ path: "/api/vcs/base", json: { location, data: null } }], + steps: [ + // Typing before the prompt is mounted loses the keys. + { + checkpoint: "home", + until: "Ask anything", + masks: [HOME_PLACEHOLDER], + }, + { type: "/diff" }, + { keys: ["enter"] }, + { checkpoint: "unavailable", until: "Committed comparison unavailable" }, + ], +}) diff --git a/packages/cli-rs/parity/scenarios/E.15a/ctrl-c.pty.ts b/packages/cli-rs/parity/scenarios/E.15a/ctrl-c.pty.ts new file mode 100644 index 000000000000..52d76ac3d8e4 --- /dev/null +++ b/packages/cli-rs/parity/scenarios/E.15a/ctrl-c.pty.ts @@ -0,0 +1,48 @@ +// Ctrl+C in the diff viewer (F15, big-boi's review of P6c): TS binds `app.exit` to close the viewer, so the chord in +// the full-screen route goes back home and the app keeps running; a second one on home, with an empty prompt, exits. +// Rust's host takes the reserved chord, which no plugin sees, to leave a plugin's route. +import { location } from "../../lib/app" +import { definePty } from "../../pty/run" +import { home, homeMasks } from "../OT/home" + +const config = JSON.stringify({ + experimental: { "new-designs": true }, + debug: { devtools: false }, + diffs: { source: "working" }, +}) + +export default definePty({ + args: [], + cols: 120, + rows: 30, + env: { ...home.env, OPENCODE_CLI_CONFIG_CONTENT: config }, + server: { + ...home.server, + routes: [ + { + path: "/api/vcs/diff", + json: { + location, + data: [ + { + file: "src/lexer.ts", + patch: "@@ -1 +1 @@\n-old\n+new\n", + additions: 1, + deletions: 1, + status: "modified", + }, + ], + }, + }, + ], + }, + steps: [ + { until: { screen: "█▀▀█" }, settle: 500, timeout: 30_000 }, + { keys: "/diff", until: { screen: "/diff" }, settle: 300 }, + { keys: "\r", until: { screen: "≡ lexer.ts" }, settle: 500, checkpoint: "open" }, + { keys: "\x03", until: { screen: "█▀▀█" }, settle: 1000, checkpoint: "home" }, + { keys: "\x03", until: { exit: true } }, + ], + masks: homeMasks, + exits: true, +}) diff --git a/packages/cli-rs/parity/scenarios/E.15a/failed.app.ts b/packages/cli-rs/parity/scenarios/E.15a/failed.app.ts new file mode 100644 index 000000000000..f9be0170c1c5 --- /dev/null +++ b/packages/cli-rs/parity/scenarios/E.15a/failed.app.ts @@ -0,0 +1,28 @@ +// The diff viewer's narrow and failed states (F15): at 80 columns the panel cannot split, so `/diff` shows it full +// screen in the compact layout with its close footer; `diffs.source` "working" skips the base lookup, and a failed +// diff says so. `escape` closes it. +import { assistant, defineApp, session, user } from "../../lib/app" + +export default defineApp({ + width: 80, + height: 24, + config: { experimental: { "new-designs": true }, diffs: { source: "working" } }, + args: { sessionID: "ses_f" }, + routes: [ + { path: "/api/session/ses_f", json: { data: session("ses_f", "Check the diff", { updated: 2 }) } }, + { + path: "/api/session/ses_f/message", + json: { data: [assistant("msg_2", "Nothing changed yet."), user("msg_1", "Any changes?")], cursor: {} }, + }, + { path: "/api/session/ses_f/inbox", json: { data: [] } }, + { path: "/api/vcs/diff", status: 500, json: { _tag: "UnknownError", message: "git failed" } }, + ], + steps: [ + { checkpoint: "session", until: "Nothing changed yet." }, + { type: "/diff" }, + { keys: ["enter"] }, + { checkpoint: "failed", until: "Could not load diff" }, + { keys: ["escape"] }, + { checkpoint: "closed", until: "Nothing changed yet." }, + ], +}) diff --git a/packages/cli-rs/parity/scenarios/E.15a/image.app.ts b/packages/cli-rs/parity/scenarios/E.15a/image.app.ts new file mode 100644 index 000000000000..ed20a748a617 --- /dev/null +++ b/packages/cli-rs/parity/scenarios/E.15a/image.app.ts @@ -0,0 +1,46 @@ +// An image card in the diff viewer (F15, `DiffViewerImage`): the full-screen route reads the working-tree image +// with `file.read`, shows it with its size and "Click to enlarge", and a click opens it in the image preview dialog +// (DLG09) under the file's name. Escape closes the dialog. +import { defineApp, location } from "../../lib/app" + +// An 8 x 4 PNG, red on the left and blue on the right. +const png = "iVBORw0KGgoAAAANSUhEUgAAAAgAAAAECAIAAAA8r+mnAAAAFUlEQVR42mO4Y2MDRzZRd+CIgXoSAKBcLGFZ7ECVAAAAAElFTkSuQmCC" + +export default defineApp({ + width: 100, + height: 30, + config: { experimental: { "new-designs": true } }, + routes: [ + { path: "/api/vcs/base", json: { location, data: { name: "main", ref: "main", source: "default" } } }, + { + path: "/api/vcs/diff", + json: { + location, + data: [{ file: "assets/logo.png", patch: "", additions: 0, deletions: 0, status: "added" }], + }, + }, + { path: "/api/fs/read/assets/logo.png", base64: png, headers: { "content-type": "image/png" } }, + ], + steps: [ + { + checkpoint: "home", + until: "Ask anything", + masks: [ + { + x: 14, + y: 16, + width: 86, + height: 1, + reason: "the placeholder example: random in TS and Rust", + }, + ], + }, + { type: "/diff" }, + { keys: ["enter"] }, + { checkpoint: "open", until: "Click to enlarge" }, + { click: [85, 13] }, + { checkpoint: "preview", until: "Image 1 of 1" }, + { keys: ["escape"] }, + { checkpoint: "closed", until: "Click to enlarge" }, + ], +}) diff --git a/packages/cli-rs/parity/scenarios/E.15a/repo.ts b/packages/cli-rs/parity/scenarios/E.15a/repo.ts new file mode 100644 index 000000000000..2365348b5d0a --- /dev/null +++ b/packages/cli-rs/parity/scenarios/E.15a/repo.ts @@ -0,0 +1,80 @@ +// Repository fixtures for the diff viewer (E.15a): a temporary git repository with a base commit and working-tree +// changes, read back as the server's `FileDiffInfo` list. The patches are real `git diff` output, one chunk per file, +// as `/api/vcs/diff` returns them. +import { mkdtemp, rm, mkdir } from "node:fs/promises" +import { tmpdir } from "node:os" +import path from "node:path" + +export type RepoFiles = Record<string, string | null> + +// `base` is committed; `changes` writes, or with `null` deletes, files on top of it. +export async function repoDiff(base: RepoFiles, changes: RepoFiles, context = 12) { + return (await repoFixture(base, changes, { context })).files +} + +// The diff and the repository's branches as `/api/vcs/branch` lists them (E.15b): `main` and each of `branches`, +// created at the base commit, sorted by name. +export async function repoFixture( + base: RepoFiles, + changes: RepoFiles, + options: { context?: number; branches?: string[] } = {}, +) { + const context = options.context ?? 12 + const root = await mkdtemp(path.join(tmpdir(), "opencode-parity-repo-")) + try { + const git = (...args: string[]) => { + const result = Bun.spawnSync( + ["git", "-c", "user.name=parity", "-c", "user.email=parity@example.com", "-c", "core.autocrlf=false", ...args], + { cwd: root, stdout: "pipe", stderr: "pipe" }, + ) + if (result.exitCode !== 0) throw new Error(`git ${args.join(" ")}: ${result.stderr.toString()}`) + return result.stdout.toString() + } + const write = async (files: RepoFiles) => { + for (const [file, content] of Object.entries(files)) { + const target = path.join(root, file) + if (content === null) { + await rm(target) + continue + } + await mkdir(path.dirname(target), { recursive: true }) + await Bun.write(target, content) + } + } + git("init", "-q", "-b", "main") + await write(base) + git("add", "-A") + git("commit", "-q", "-m", "base") + for (const branch of options.branches ?? []) git("branch", branch) + const branches = git("branch", "--format=%(refname:short)").split("\n").filter(Boolean).toSorted() + await write(changes) + git("add", "-A") + const output = git( + "diff", + "--cached", + "--no-color", + "--no-renames", + "--src-prefix=a/", + "--dst-prefix=b/", + `-U${context}`, + "main", + ) + const files = output + .split(/^(?=diff --git )/m) + .filter(Boolean) + .map((patch) => { + const file = /^\+\+\+ b\/(.+)$/m.exec(patch)?.[1] ?? /^--- a\/(.+)$/m.exec(patch)![1]! + const lines = patch.split("\n") + return { + file, + patch, + additions: lines.filter((line) => line.startsWith("+") && !line.startsWith("+++")).length, + deletions: lines.filter((line) => line.startsWith("-") && !line.startsWith("---")).length, + status: /^new file mode/m.test(patch) ? "added" : /^deleted file mode/m.test(patch) ? "deleted" : "modified", + } + }) + return { files, branches } + } finally { + await rm(root, { recursive: true, force: true }) + } +} diff --git a/packages/cli-rs/parity/scenarios/E.15a/route.app.ts b/packages/cli-rs/parity/scenarios/E.15a/route.app.ts new file mode 100644 index 000000000000..7aaf42c271d8 --- /dev/null +++ b/packages/cli-rs/parity/scenarios/E.15a/route.app.ts @@ -0,0 +1,81 @@ +// The diff viewer as a full-screen route (F15): `/diff` on home opens it with the file tree and unified hunks (the +// patches are too narrow to split at 120 columns). `]` and `[` step through hunks across files, `s` and `m` review +// the single file and move on, and `q` goes back home. +import { defineApp, location } from "../../lib/app" +import { repoDiff } from "./repo" + +const lines = (count: number, line: (index: number) => string) => + Array.from({ length: count }, (_, index) => line(index + 1)).join("\n") + "\n" +const config = lines(60, (index) => `key${index}: value${index}`) + +const files = await repoDiff( + { + "config/app.yaml": config, + "src/main.rs": 'fn main() {\n println!("hello");\n}\n', + }, + { + "config/app.yaml": config + .replace("key5: value5\n", "key5: changed\n") + .replace("key40: value40\n", "key40: changed\nkey40b: added\n"), + "src/main.rs": 'fn main() {\n println!("hello, world");\n}\n', + "src/util/mod.rs": "pub mod text;\n", + }, +) + +export default defineApp({ + width: 120, + height: 30, + config: { experimental: { "new-designs": true } }, + routes: [ + { + path: "/api/vcs/base", + json: { location, data: { name: "origin/main", ref: "origin/main", source: "reflog" } }, + }, + { path: "/api/vcs/diff", json: { location, data: files } }, + ], + steps: [ + // Typing before the prompt is mounted loses the keys. + { + checkpoint: "ready", + until: "Ask anything", + masks: [ + { + x: 26, + y: 16, + width: 94, + height: 1, + reason: "the placeholder example: random in TS and Rust", + }, + ], + }, + { type: "/diff" }, + { keys: ["enter"] }, + { checkpoint: "open", until: "vs origin/main" }, + { keys: ["]"] }, + { checkpoint: "hunk-1" }, + { keys: ["]"] }, + { checkpoint: "hunk-2" }, + { keys: ["["] }, + { checkpoint: "hunk-back" }, + { keys: ["s"] }, + { checkpoint: "single" }, + { keys: ["m"] }, + { checkpoint: "single-reviewed" }, + { keys: ["s"] }, + { checkpoint: "all" }, + { keys: ["q"] }, + { + checkpoint: "home", + until: "Ask anything", + masks: [ + { + x: 26, + y: 16, + width: 94, + height: 1, + reason: "the placeholder example: random in TS and Rust", + }, + ], + }, + ], +}) diff --git a/packages/cli-rs/parity/scenarios/E.15a/route.pty.ts b/packages/cli-rs/parity/scenarios/E.15a/route.pty.ts new file mode 100644 index 000000000000..f34ba58aa8e7 --- /dev/null +++ b/packages/cli-rs/parity/scenarios/E.15a/route.pty.ts @@ -0,0 +1,53 @@ +// The diff viewer in a real terminal (F15, phase P6c): on home, `/diff` opens the full-screen route with the file tree, +// `]` steps to a hunk, a wheel step scrolls the cards, a right press on a tree row opens the file menu, enter marks the +// file complete, and `q` goes back home. The source is Uncommitted, so no base is read. +import { location } from "../../lib/app" +import { definePty } from "../../pty/run" +import { home, homeMasks, press, release } from "../OT/home" + +const lines = (count: number, line: (index: number) => string) => + Array.from({ length: count }, (_, index) => line(index + 1)).join("\n") +const file = (name: string, changed: number) => ({ + file: name, + patch: `@@ -1,20 +1,20 @@\n${lines(20, (index) => (index === changed ? `-old ${index}\n+new ${index}` : ` line ${index}`))}\n`, + additions: 1, + deletions: 1, + status: "modified", +}) +const config = JSON.stringify({ + experimental: { "new-designs": true }, + debug: { devtools: false }, + diffs: { source: "working" }, +}) +const wheelDown = (x: number, y: number) => `\x1b[<65;${x};${y}M` + +export default definePty({ + args: [], + cols: 120, + rows: 30, + env: { ...home.env, OPENCODE_CLI_CONFIG_CONTENT: config }, + server: { + ...home.server, + routes: [ + { + path: "/api/vcs/diff", + json: { location, data: [file("src/lexer.ts", 4), file("src/parser.ts", 15)] }, + }, + ], + }, + steps: [ + { until: { screen: "█▀▀█" }, settle: 500, timeout: 30_000 }, + { keys: "/diff", until: { screen: "/diff" }, settle: 300 }, + { keys: "\r", until: { screen: "≡ parser.ts" }, settle: 500, checkpoint: "open" }, + { keys: "]", settle: 500, checkpoint: "hunk" }, + { keys: wheelDown(80, 15), settle: 500, checkpoint: "wheel" }, + { keys: press(10, 5).replace("<0;", "<2;"), until: { screen: "Mark complete" }, settle: 300 }, + { keys: release(10, 5).replace("<0;", "<2;"), settle: 300, checkpoint: "menu" }, + { keys: "\r", until: { screen: "1/2" }, settle: 500, checkpoint: "complete" }, + { keys: "q", until: { screen: "█▀▀█" }, settle: 500, checkpoint: "home" }, + // Ctrl+C on the empty prompt exits; a second press could land once the terminal is restored, as a SIGINT. + { keys: "\x03", until: { exit: true } }, + ], + masks: homeMasks, + exits: true, +}) diff --git a/packages/cli-rs/parity/scenarios/E.15a/viewer.app.ts b/packages/cli-rs/parity/scenarios/E.15a/viewer.app.ts new file mode 100644 index 000000000000..7862d5f88a12 --- /dev/null +++ b/packages/cli-rs/parity/scenarios/E.15a/viewer.app.ts @@ -0,0 +1,67 @@ +// The diff viewer (F15) over a repository fixture: `/diff` docks the viewer beside the session (compact, unified), +// `]` jumps to a hunk, `n` to the next file, `m` marks it reviewed, `f` goes full screen with the file tree and the +// split view, `v` switches to unified, `s` shows one file, `b` hides the tree, and `q` closes the viewer. +import { assistant, defineApp, location, session, user } from "../../lib/app" +import { repoDiff } from "./repo" + +const lines = (count: number, line: (index: number) => string) => + Array.from({ length: count }, (_, index) => line(index + 1)).join("\n") + "\n" +const parser = lines(40, (index) => `export const rule${index} = ${index}`) + +const files = await repoDiff( + { + "README.md": "# Parser\n\nParses the token stream.\n", + "docs/old.md": "Old notes\nabout the lexer\nand more\n", + "src/parser.ts": parser, + }, + { + "README.md": "# Parser\n\nParses the token stream into a tree.\n", + "docs/old.md": null, + "src/lexer/token.ts": "export type Token = {\n kind: string\n text: string\n}\n", + "src/parser.ts": parser + .replace("rule3 = 3", "rule3 = 3 * 2") + .replace("export const rule35 = 35\n", "export const rule35 = 35\nexport const extra = true\n"), + }, +) + +export default defineApp({ + width: 140, + height: 40, + config: { experimental: { "new-designs": true } }, + args: { sessionID: "ses_d" }, + routes: [ + { path: "/api/session/ses_d", json: { data: session("ses_d", "Review the parser", { updated: 2 }) } }, + { + path: "/api/session/ses_d/message", + json: { + data: [assistant("msg_2", "The parser changes are ready."), user("msg_1", "Show me the diff")], + cursor: {}, + }, + }, + { path: "/api/session/ses_d/inbox", json: { data: [] } }, + { path: "/api/vcs/base", json: { location, data: { name: "main", ref: "main", source: "default" } } }, + { path: "/api/vcs/diff", json: { location, data: files } }, + ], + steps: [ + { checkpoint: "session", until: "The parser changes are ready." }, + { type: "/diff" }, + { keys: ["enter"] }, + { checkpoint: "panel", until: "vs main" }, + { keys: ["]"] }, + { checkpoint: "hunk" }, + { keys: ["n"] }, + { checkpoint: "file" }, + { keys: ["m"] }, + { checkpoint: "reviewed" }, + { keys: ["f"] }, + { checkpoint: "full", until: "▾ src" }, + { keys: ["v"] }, + { checkpoint: "unified" }, + { keys: ["s"] }, + { checkpoint: "single" }, + { keys: ["b"] }, + { checkpoint: "no-tree" }, + { keys: ["q"] }, + { checkpoint: "closed", until: "The parser changes are ready." }, + ], +}) diff --git a/packages/cli-rs/parity/scenarios/E.15b/base.app.ts b/packages/cli-rs/parity/scenarios/E.15b/base.app.ts new file mode 100644 index 000000000000..71c4815491c2 --- /dev/null +++ b/packages/cli-rs/parity/scenarios/E.15b/base.app.ts @@ -0,0 +1,51 @@ +// The base branch dialog (F15, DLG46 and DLG47) on the full-screen route: `d` opens the diff source dialog, whose +// "Base" row names the reported base; it opens the branch picker over the repository's branches, with the reported +// base marked. Choosing a branch loads the diff against it, and the source dialog then names the chosen base. +import { defineApp, location } from "../../lib/app" +import { repoFixture } from "../E.15a/repo" + +const repo = await repoFixture( + { "README.md": "# Parser\n\nParses the token stream.\n" }, + { + "README.md": "# Parser\n\nParses the token stream into a tree.\n", + "src/lexer.ts": "export const lex = (text: string) => [...text]\n", + }, + { branches: ["feature/lexer", "release"] }, +) + +export default defineApp({ + width: 80, + height: 30, + config: { experimental: { "new-designs": true } }, + routes: [ + { path: "/api/vcs/base", json: { location, data: { name: "main", ref: "main", source: "default" } } }, + { path: "/api/vcs/diff", json: { location, data: repo.files } }, + { path: "/api/vcs/branch", json: { location, data: repo.branches } }, + ], + steps: [ + { + checkpoint: "home", + until: "Ask anything", + masks: [ + { + x: 6, + y: 16, + width: 74, + height: 1, + reason: "the placeholder example: random in TS and Rust", + }, + ], + }, + { type: "/diff" }, + { keys: ["enter"] }, + { checkpoint: "open", until: "vs main" }, + { keys: ["d"] }, + { checkpoint: "sources", until: "Diff source" }, + { keys: ["down", "down", "down", "enter"] }, + { checkpoint: "branches", until: "release" }, + { keys: ["down", "enter"] }, + { checkpoint: "chosen", until: "vs release" }, + { keys: ["d"] }, + { checkpoint: "remembered", until: "Diff source" }, + ], +}) diff --git a/packages/cli-rs/parity/scenarios/E.15b/menu.app.ts b/packages/cli-rs/parity/scenarios/E.15b/menu.app.ts new file mode 100644 index 000000000000..69490b32df60 --- /dev/null +++ b/packages/cli-rs/parity/scenarios/E.15b/menu.app.ts @@ -0,0 +1,62 @@ +// The shortcuts dialog and the file menu (F15, DLG48 and DLG49) on the full-screen route with the file tree: `?` +// shows the shortcuts as bound, a right-click on a tree row opens the file menu, Enter marks the file complete, and +// the menu opened again offers to mark it incomplete until Escape closes it. +import { defineApp, location } from "../../lib/app" +import { repoFixture } from "../E.15a/repo" + +const repo = await repoFixture( + { "README.md": "# Parser\n\nParses the token stream.\n" }, + { + "README.md": "# Parser\n\nParses the token stream into a tree.\n", + "src/lexer.ts": "export const lex = (text: string) => [...text]\n", + }, +) + +export default defineApp({ + width: 120, + height: 30, + config: { experimental: { "new-designs": true } }, + routes: [ + { path: "/api/vcs/base", json: { location, data: { name: "main", ref: "main", source: "default" } } }, + { path: "/api/vcs/diff", json: { location, data: repo.files } }, + ], + steps: [ + { + checkpoint: "home", + until: "Ask anything", + masks: [ + { + x: 26, + y: 16, + width: 94, + height: 1, + reason: "the placeholder example: random in TS and Rust", + }, + ], + }, + { type: "/diff" }, + { keys: ["enter"] }, + { + checkpoint: "open", + until: "vs main", + // TS settles this first frame before its asynchronous highlighting lands; `help-closed` compares the same + // rows highlighted. + masks: [ + { x: 33, y: 3, width: 87, height: 1, reason: "code row, highlighted later in TS" }, + { x: 33, y: 7, width: 87, height: 1, reason: "code row, highlighted later in TS" }, + ], + }, + { keys: ["?"] }, + { checkpoint: "help", until: "Diff shortcuts" }, + { keys: ["escape"] }, + { checkpoint: "help-closed", until: "≡ lexer.ts" }, + { rightClick: [8, 4] }, + { checkpoint: "menu", until: "Mark complete" }, + { keys: ["enter"] }, + { checkpoint: "complete", until: "1/2" }, + { rightClick: [8, 4] }, + { checkpoint: "menu-again", until: "Mark incomplete" }, + { keys: ["escape"] }, + { checkpoint: "menu-closed", until: "1/2" }, + ], +}) diff --git a/packages/cli-rs/parity/scenarios/E.15b/turn.app.ts b/packages/cli-rs/parity/scenarios/E.15b/turn.app.ts new file mode 100644 index 000000000000..92e98c4bbf98 --- /dev/null +++ b/packages/cli-rs/parity/scenarios/E.15b/turn.app.ts @@ -0,0 +1,68 @@ +// The last turn's diff (F15, DLG47): in a session, `d` opens the diff source dialog with "Last turn" offered, +// selecting it loads `/api/session/:id/diff`, `m` marks a file reviewed, and a turn that runs and ends loads the +// diff again, which starts the reviewed marks over. +import { assistant, defineApp, location, session, user } from "../../lib/app" +import { repoFixture } from "../E.15a/repo" + +const base = { + "README.md": "# Parser\n\nParses the token stream.\n", + "src/parser.ts": "export const parse = (text: string) => text.split(' ')\n", +} +const branch = await repoFixture(base, { + "README.md": "# Parser\n\nParses the token stream into a tree.\n", + "src/lexer.ts": "export const lex = (text: string) => [...text]\n", +}) +const turn = await repoFixture(base, { + "src/parser.ts": "export const parse = (text: string) => text.trim().split(' ')\n", + "src/tree.ts": "export type Tree = { children: Tree[] }\n", +}) + +const id = "ses_d" +let seq = 0 +const execution = (type: string) => ({ + event: { + id: `evt_${++seq}`, + created: 3000 + seq, + type, + durable: { aggregateID: id, seq, version: 1 }, + data: { sessionID: id }, + }, +}) + +export default defineApp({ + width: 140, + height: 40, + config: { experimental: { "new-designs": true } }, + args: { sessionID: id }, + routes: [ + { path: `/api/session/${id}`, json: { data: session(id, "Review the parser", { updated: 2 }) } }, + { + path: `/api/session/${id}/message`, + json: { + data: [assistant("msg_2", "The parser changes are ready."), user("msg_1", "Show me the diff")], + cursor: {}, + }, + }, + { path: `/api/session/${id}/inbox`, json: { data: [] } }, + { path: `/api/session/${id}/diff`, json: { data: turn.files } }, + { path: "/api/vcs/base", json: { location, data: { name: "main", ref: "main", source: "default" } } }, + { path: "/api/vcs/diff", json: { location, data: branch.files } }, + ], + steps: [ + { checkpoint: "session", until: "The parser changes are ready." }, + { type: "/diff" }, + { keys: ["enter"] }, + { checkpoint: "panel", until: "vs main" }, + { keys: ["d"] }, + { checkpoint: "sources", until: "Latest session turn" }, + { keys: ["down", "down", "down", "enter"] }, + { checkpoint: "turn", until: "src/tree.ts" }, + { keys: ["m"] }, + { checkpoint: "reviewed", until: "1/2" }, + execution("session.execution.started"), + // The viewer must see the session running before it sees it idle again. + { checkpoint: "running", until: "1/2" }, + execution("session.execution.succeeded"), + { checkpoint: "refetched", until: "0/2" }, + ], +}) diff --git a/packages/cli-rs/parity/scenarios/E.18a/channel-local.pty.ts b/packages/cli-rs/parity/scenarios/E.18a/channel-local.pty.ts new file mode 100644 index 000000000000..fc7aad4db1ac --- /dev/null +++ b/packages/cli-rs/parity/scenarios/E.18a/channel-local.pty.ts @@ -0,0 +1,11 @@ +// T08: Rust on the `local` channel draws the DevTools bar the TS CLI from source draws (see `channel.pty.ts`). +import { definePty } from "../../pty/run" +import { home } from "./channel.pty" + +export default definePty({ + ...home, + env: { + OPENCODE_CLI_CONFIG_CONTENT: JSON.stringify({ experimental: { "new-designs": true } }), + OPENCODE_CHANNEL: "local", + }, +}) diff --git a/packages/cli-rs/parity/scenarios/E.18a/channel.pty.ts b/packages/cli-rs/parity/scenarios/E.18a/channel.pty.ts new file mode 100644 index 000000000000..048b74898bc4 --- /dev/null +++ b/packages/cli-rs/parity/scenarios/E.18a/channel.pty.ts @@ -0,0 +1,27 @@ +// T08: without `debug.devtools`, the DevTools bar shows on the `local` channel only. The TS CLI run from source has +// no embedded channel, so it is `local` and draws the bar; Rust reads its channel at run time, `latest` without +// `OPENCODE_CHANNEL`, and draws none (parity/deviations/T08-devtools-channel.md). `channel-local.pty.ts` gives Rust +// the `local` channel, and both draw the same bar. +import { definePty } from "../../pty/run" + +export const home = { + args: [], + cols: 100, + rows: 30, + server: { fallback: "tui" as const }, + steps: [ + { until: { screen: "█▀▀█" }, settle: 800, timeout: 30_000, checkpoint: "home" }, + // Ctrl+C on the empty prompt exits; a second press could land once the terminal is restored, as a SIGINT. + { keys: "\x03", until: { exit: true } }, + ], + exits: true, + masks: [{ pattern: /Ask anything… .*$/, reason: "the placeholder is picked at random" }], +} + +export default definePty({ + ...home, + env: { OPENCODE_CLI_CONFIG_CONTENT: JSON.stringify({ experimental: { "new-designs": true } }) }, + steps: home.steps.map((step) => + step.checkpoint ? { ...step, deviation: { file: "T08-devtools-channel", lines: 3 } } : step, + ), +}) diff --git a/packages/cli-rs/parity/scenarios/E.19a/attention.pty.ts b/packages/cli-rs/parity/scenarios/E.19a/attention.pty.ts new file mode 100644 index 000000000000..6ba735340c72 --- /dev/null +++ b/packages/cli-rs/parity/scenarios/E.19a/attention.pty.ts @@ -0,0 +1,90 @@ +// Attention (N01, N03, N04, F09): `-s ses_b` opens a session with `attention.notifications` on. The steps report a +// focus loss, then the session works, asks for a permission, gets the reply and is done; then focus returns and the +// session fails. Compared: the OSC 7501 program status records (`context/program-status.ts`) and the notifications +// (`attention.ts`), which go out only while the terminal is blurred. Quitting clears the root record. +import { definePty } from "../../pty/run" + +const config = JSON.stringify({ + experimental: { "new-designs": true }, + debug: { devtools: false }, + animations: false, + attention: { notifications: true }, +}) + +const session = { + id: "ses_b", + title: "Fix the parser", + projectID: "proj_test", + cost: 0, + tokens: { input: 0, output: 0, reasoning: 0, cache: { read: 0, write: 0 } }, + time: { created: 1, updated: 2 }, + location: { directory: "/tmp/opencode/packages/tui" }, +} + +const durable = (seq: number) => ({ aggregateID: "ses_b", seq, version: 1 }) +const execution = (kind: string, seq: number, data: Record<string, unknown> = {}) => + ({ + id: `evt_${kind}_${seq}`, + created: seq, + type: `session.execution.${kind}`, + durable: durable(seq), + data: { sessionID: "ses_b", ...data }, + }) as never + +export default definePty({ + args: ["-s", "ses_b"], + cols: 100, + rows: 30, + env: { OPENCODE_CLI_CONFIG_CONTENT: config }, + server: { + fallback: "tui", + routes: [ + { path: "/api/session/ses_b", json: { data: session } }, + { path: "/api/session/ses_b/message", json: { data: [], cursor: {} } }, + { path: "/api/session/ses_b/inbox", json: { data: [] } }, + ], + }, + steps: [ + { until: { screen: "Fix the parser" }, settle: 500, timeout: 30_000 }, + // Focus out. + { keys: "\x1b[O", settle: 200 }, + { emit: [execution("started", 1)], until: { osc: "state=working" }, settle: 300 }, + { + emit: [ + { + id: "evt_asked", + created: 2, + type: "permission.asked", + data: { id: "per_1", sessionID: "ses_b", action: "edit", resources: [], metadata: {}, save: [] }, + } as never, + ], + until: { osc: "state=blocked" }, + settle: 300, + }, + { + emit: [ + { + id: "evt_replied", + created: 3, + type: "permission.replied", + data: { sessionID: "ses_b", requestID: "per_1", reply: "once" }, + } as never, + ], + settle: 300, + }, + { emit: [execution("succeeded", 4)], until: { osc: "state=idle" }, settle: 300 }, + // Focus in: the failure toasts but does not notify. + { keys: "\x1b[I", settle: 200 }, + { + emit: [execution("started", 5), execution("failed", 6, { error: { type: "unknown", message: "boom" } })], + until: { screen: "Session failed" }, + settle: 300, + }, + // Ctrl+C on the empty prompt exits; a second press could land once the terminal is restored, as a SIGINT. + { keys: "\x03", until: { exit: true } }, + ], + osc: ["status", "notify"], + // Deviation N03-status-order: the order between a notification and a status record is not fixed in Rust. + oscByKind: true, + exits: true, +}) diff --git a/packages/cli-rs/parity/scenarios/E.19a/failed-toast-other.app.ts b/packages/cli-rs/parity/scenarios/E.19a/failed-toast-other.app.ts new file mode 100644 index 000000000000..d3daf5bb69e2 --- /dev/null +++ b/packages/cli-rs/parity/scenarios/E.19a/failed-toast-other.app.ts @@ -0,0 +1,23 @@ +// A failed execution of a session that is not open shows the error toast with an "Open" action (F09, the plugin +// toast's `sessionID`), here on home. +import { defineApp, HOME_PLACEHOLDER } from "../../lib/app" + +// As in `E.1/mcp-toast.app.ts`: the home prompt and footer rows other steps own. +const masks = [HOME_PLACEHOLDER] + +export default defineApp({ + config: { experimental: { "new-designs": true } }, + steps: [ + { checkpoint: "home", until: "Ask anything", masks }, + { + event: { + id: "evt_failed", + created: 1, + type: "session.execution.failed", + durable: { aggregateID: "ses_c", seq: 1, version: 1 }, + data: { sessionID: "ses_c", error: { type: "unknown", message: "Plugin failed during skill.transform." } }, + }, + }, + { checkpoint: "failed", until: "Session failed", masks }, + ], +}) diff --git a/packages/cli-rs/parity/scenarios/E.19a/failed-toast.app.ts b/packages/cli-rs/parity/scenarios/E.19a/failed-toast.app.ts new file mode 100644 index 000000000000..024db79c2416 --- /dev/null +++ b/packages/cli-rs/parity/scenarios/E.19a/failed-toast.app.ts @@ -0,0 +1,27 @@ +// A failed execution of the open session shows the notifications plugin's error toast (F09): "Session failed" and +// the error message, without an action, since the session is already open. +import { defineApp, session } from "../../lib/app" + +const execution = (kind: string, seq: number, data: Record<string, unknown> = {}) => ({ + id: `evt_${kind}_${seq}`, + created: seq, + type: `session.execution.${kind}`, + durable: { aggregateID: "ses_b", seq, version: 1 }, + data: { sessionID: "ses_b", ...data }, +}) + +export default defineApp({ + config: { experimental: { "new-designs": true } }, + args: { sessionID: "ses_b" }, + routes: [ + { path: "/api/session/ses_b", json: { data: session("ses_b", "Fix the parser") } }, + { path: "/api/session/ses_b/message", json: { data: [], cursor: {} } }, + { path: "/api/session/ses_b/inbox", json: { data: [] } }, + ], + steps: [ + { checkpoint: "open", until: "Fix the parser" }, + { event: execution("started", 1) }, + { event: execution("failed", 2, { error: { type: "unknown", message: "The provider returned an error." } }) }, + { checkpoint: "failed", until: "Session failed" }, + ], +}) diff --git a/packages/cli-rs/parity/scenarios/E.2/prompt-typing.app.ts b/packages/cli-rs/parity/scenarios/E.2/prompt-typing.app.ts new file mode 100644 index 000000000000..d71ad1201eb8 --- /dev/null +++ b/packages/cli-rs/parity/scenarios/E.2/prompt-typing.app.ts @@ -0,0 +1,33 @@ +// The session prompt (P01, P15): its border and metadata row, then a two-line prompt typed through the +// input.* layer (Shift+Enter inserts the newline). +import { assistant, defineApp, session, user } from "../../lib/app" + +export default defineApp({ + args: { sessionID: "ses_b" }, + routes: [ + { path: "/api/session/ses_b", json: { data: session("ses_b", "Fix the parser", { updated: 2 }) } }, + { + path: "/api/session/ses_b/message", + json: { + data: [assistant("msg_2", "The parser drops the last token."), user("msg_1", "Why does the parser fail?")], + cursor: {}, + }, + }, + { path: "/api/session/ses_b/inbox", json: { data: [] } }, + ], + steps: [ + { + checkpoint: "open", + until: "The parser drops the last token.", + }, + { type: "hello wrld" }, + { keys: ["left", "left", "left"] }, + { type: "o" }, + { keys: ["ctrl+e", "shift+enter"] }, + { type: "second line" }, + { + checkpoint: "typed", + until: "second line", + }, + ], +}) diff --git a/packages/cli-rs/parity/scenarios/E.2/running-reply-low.app.ts b/packages/cli-rs/parity/scenarios/E.2/running-reply-low.app.ts new file mode 100644 index 000000000000..a52932a93f81 --- /dev/null +++ b/packages/cli-rs/parity/scenarios/E.2/running-reply-low.app.ts @@ -0,0 +1,11 @@ +// `running-reply.app.ts` at the default transcript verbosity (low, #63207): the streaming reasoning and the +// running shell call fold into one status row. +import base from "./running-reply.app" + +export default { + ...base, + config: { experimental: { "new-designs": true } }, + steps: base.steps.map((step) => + "checkpoint" in step && step.checkpoint !== "waiting" ? { ...step, until: "esc interrupt" } : step, + ), +} diff --git a/packages/cli-rs/parity/scenarios/E.2/running-reply.app.ts b/packages/cli-rs/parity/scenarios/E.2/running-reply.app.ts new file mode 100644 index 000000000000..c648fb442c87 --- /dev/null +++ b/packages/cli-rs/parity/scenarios/E.2/running-reply.app.ts @@ -0,0 +1,58 @@ +// A reply while it runs (rs-ms1-accept problems 4 and 5): the step has started and nothing streamed yet, then +// reasoning streams in, then the reasoning ends and a shell call runs. The session is running throughout. +import { defineApp, session, user } from "../../lib/app" + +const id = "ses_run" +const message = { sessionID: id, assistantMessageID: "msg_2" } +let seq = 0 +const event = (type: string, data: Record<string, unknown>, durable = true) => ({ + event: { + id: `evt_${++seq}`, + created: 2000 + seq, + type, + ...(durable ? { durable: { aggregateID: id, seq, version: 1 } } : {}), + data: { ...message, ...data }, + }, +}) + +export default defineApp({ + height: 30, + config: { experimental: { "new-designs": true }, session: { verbosity: "medium" } }, + args: { sessionID: id }, + routes: [ + { path: `/api/session/${id}`, json: { data: session(id, "Run echo", { updated: 2 }) } }, + { + path: `/api/session/${id}/message`, + json: { + data: [ + { + id: "msg_2", + type: "assistant", + agent: "build", + model: { providerID: "provider", id: "model" }, + content: [], + time: { created: 1500 }, + }, + user("msg_1", "Run the shell command `echo hello` and then reply done", 1000), + ], + cursor: {}, + }, + }, + { path: `/api/session/${id}/inbox`, json: { data: [] } }, + { path: "/api/session/active", json: { data: { [id]: { type: "running" } } } }, + ], + steps: [ + { checkpoint: "waiting", until: "echo hello" }, + event("session.reasoning.started", { ordinal: 0 }), + event("session.reasoning.delta", { ordinal: 0, delta: "**Planning the command**\n\nI will run echo." }, false), + { checkpoint: "thinking", until: "Thinking: Planning the command" }, + event("session.reasoning.ended", { + ordinal: 0, + text: "**Planning the command**\n\nI will run echo.", + }), + event("session.tool.input.started", { id: "call_1", name: "shell" }), + event("session.tool.input.ended", { id: "call_1", text: '{"command":"echo hello"}' }), + event("session.tool.called", { id: "call_1", input: { command: "echo hello" }, executed: true }), + { checkpoint: "shell", until: "⋯ echo hello" }, + ], +}) diff --git a/packages/cli-rs/parity/scenarios/E.2/running-reply.sim.ts b/packages/cli-rs/parity/scenarios/E.2/running-reply.sim.ts new file mode 100644 index 000000000000..f1d5475fc94f --- /dev/null +++ b/packages/cli-rs/parity/scenarios/E.2/running-reply.sim.ts @@ -0,0 +1,46 @@ +// P-TUI version of `E.2/running-reply.app.ts`: a reply while it runs. The step has started and nothing streamed +// yet, then reasoning streams in, then the reasoning ends and a shell call runs; the session is running +// throughout. The shell runs past the background hint's delay (3 s) until the step after its checkpoint writes `go`, +// so the running state lasts until it is captured however long a screen read takes (a TS `ui.matches` that goes +// unanswered is sent again after 2 s). It gives up after 30 s, so the side never leaves a command behind. +import { defineSim } from "../../sim/scenario" + +const duration = { line: "· \\d.*", reason: "the turn duration depends on timing, also in length; the row ends there" } + +export default defineSim({ + config: { session: { verbosity: "medium" } }, + model: [ + { + items: [ + { hold: "waiting" }, + { type: "reasoningDelta", text: "**Planning the command**\n\nI will run echo." }, + { hold: "thinking" }, + { + type: "toolCall", + index: 0, + id: "call_1", + name: "shell", + input: { + command: "for i in $(seq 300); do [ -e go ] && break; sleep 0.1; done; echo hello", + description: "Print a greeting", + }, + }, + ], + finish: "tool-calls", + }, + { items: [{ type: "textDelta", text: "All done." }] }, + ], + steps: [ + { until: "Simulated Model" }, + { type: "Run the shell command `echo hello` and then reply done" }, + { until: "reply done" }, + { enter: true }, + { checkpoint: "waiting", until: "esc interrupt" }, + { release: "waiting" }, + { checkpoint: "thinking", until: "Planning the command" }, + { release: "thinking" }, + { checkpoint: "shell", until: "to move running work", masks: [duration] }, + { touch: "go" }, + { checkpoint: "done", until: "All done.", masks: [duration] }, + ], +}) diff --git a/packages/cli-rs/parity/scenarios/E.20/copy.pty.ts b/packages/cli-rs/parity/scenarios/E.20/copy.pty.ts new file mode 100644 index 000000000000..16d6f131ab55 --- /dev/null +++ b/packages/cli-rs/parity/scenarios/E.20/copy.pty.ts @@ -0,0 +1,43 @@ +// Copy-on-select (T13, CB01): a mouse drag over text typed into the home prompt copies it, and the terminal +// receives the text as OSC 52 (`clipboard.ts:53-61`). The sandbox has no display, so the host clipboard is +// unavailable on both sides and OSC 52 is the only destination; the real clipboard is never written. The mouse +// keys are SGR reports (1-based cells): press, drag, and release on row 17, columns 17 to 25, "copy this". +// +// Other targets meet differences outside E.20 (see the E.20 report): the prompt footer's location (the Rust +// home shows the launch directory, TS the server's default location), a dialog (a drag closes a Rust dialog), +// and a toast (a release runs a Rust toast's action). +import { definePty } from "../../pty/run" + +const config = JSON.stringify({ experimental: { "new-designs": true }, debug: { devtools: false } }) + +export default definePty({ + args: [], + cols: 100, + rows: 30, + env: { OPENCODE_CLI_CONFIG_CONTENT: config }, + server: { fallback: "tui" }, + steps: [ + { until: { screen: "█▀▀█" }, settle: 500, timeout: 30_000 }, + { keys: "copy this text", until: { screen: "copy this text" }, settle: 200 }, + { keys: "\x1b[<0;17;17M", settle: 50 }, + { keys: "\x1b[<32;21;17M\x1b[<32;25;17M", settle: 50 }, + { keys: "\x1b[<0;25;17m" }, + { until: { osc: "52;" }, settle: 300, timeout: 10_000, checkpoint: "copied" }, + // Escape, then Ctrl+U empties the prompt. Escape shows no text to wait for, so it goes as the Kitty keyboard sends + // it (the TUI turned it on): a lone ESC the program had not yet timed out would join Ctrl+U. The mouse selection + // stays on both sides, so the first Ctrl+C ends it (copy on select) and the second exits. + { keys: "\x1b[27u", settle: 300 }, + { keys: "\x15", until: { gone: "copy this text" }, settle: 300 }, + { keys: "\x03", settle: 300 }, + { keys: "\x03", until: { exit: true } }, + ], + osc: ["clipboard"], + masks: [ + { + pattern: /(<root>|\/)\S*(\s+shift\+tab agents.*)?$/, + reason: + "the prompt footer: the location (the server's default in TS, the launch directory in Rust) and E.14's hints", + }, + ], + exits: true, +}) diff --git a/packages/cli-rs/parity/scenarios/E.20/reload.app.ts b/packages/cli-rs/parity/scenarios/E.20/reload.app.ts new file mode 100644 index 000000000000..db7255be6df9 --- /dev/null +++ b/packages/cli-rs/parity/scenarios/E.20/reload.app.ts @@ -0,0 +1,22 @@ +// `location.reload` (T19), bound to F5 here (TS and Rust list it in the palette too, but the two palettes do +// not list the same commands yet): it posts `/api/location/reload`, then the "Configuration reloaded" toast +// replaces "Reloading configuration…" (`app.tsx:1104-1119`). +import { defineApp, HOME_PLACEHOLDER } from "../../lib/app" + +export default defineApp({ + config: { experimental: { "new-designs": true }, keybinds: { "location.reload": "f5" } }, + routes: [{ method: "POST", path: "/api/location/reload" }], + steps: [ + { + checkpoint: "home", + until: "Ask anything", + masks: [HOME_PLACEHOLDER], + }, + { keys: ["f5"] }, + { + checkpoint: "reloaded", + until: "Configuration reloaded", + masks: [HOME_PLACEHOLDER], + }, + ], +}) diff --git a/packages/cli-rs/parity/scenarios/E.20/toggles.app.ts b/packages/cli-rs/parity/scenarios/E.20/toggles.app.ts new file mode 100644 index 000000000000..a25e4a7796c9 --- /dev/null +++ b/packages/cli-rs/parity/scenarios/E.20/toggles.app.ts @@ -0,0 +1,46 @@ +// The config toggles (T19): `app.toggle.animations`, `app.toggle.diffwrap`, `app.toggle.file_context`, +// `app.toggle.paste_summary`, and `terminal.title.toggle`, bound to F5 to F9 here (all are `none` by default and +// not in the palette). Each writes `cli.json`; the settings dialog then shows the new values, one filtered row +// per checkpoint. P-FILE in `crates/tui/tests/all/system_commands.rs` checks the file bytes against TS. The dialog +// leaves the home prompt's random placeholder in view (#64983 dropped its empty footer row), so every checkpoint +// masks it. +import { defineApp, HOME_PLACEHOLDER } from "../../lib/app" + +const clear = (text: string) => ({ keys: Array.from(text, () => "backspace") }) + +export default defineApp({ + config: { + experimental: { "new-designs": true }, + keybinds: { + "app.toggle.animations": "f5", + "app.toggle.diffwrap": "f6", + "app.toggle.file_context": "f7", + "app.toggle.paste_summary": "f8", + "terminal.title.toggle": "f9", + "opencode.settings": "f10", + }, + }, + steps: [ + { + checkpoint: "home", + until: "Ask anything", + masks: [HOME_PLACEHOLDER], + }, + { keys: ["f5", "f6", "f7", "f8", "f9", "f10"] }, + { checkpoint: "settings", until: "Search settings", masks: [HOME_PLACEHOLDER] }, + { type: "animations" }, + { checkpoint: "animations", until: "Animations", masks: [HOME_PLACEHOLDER] }, + clear("animations"), + { type: "diff wrap" }, + { checkpoint: "wrapping", until: "Wrapping", masks: [HOME_PLACEHOLDER] }, + clear("diff wrap"), + { type: "editor context" }, + { checkpoint: "editor", until: "Editor context", masks: [HOME_PLACEHOLDER] }, + clear("editor context"), + { type: "large pastes" }, + { checkpoint: "pastes", until: "Large pastes", masks: [HOME_PLACEHOLDER] }, + clear("large pastes"), + { type: "window title" }, + { checkpoint: "title", until: "Window title", masks: [HOME_PLACEHOLDER] }, + ], +}) diff --git a/packages/cli-rs/parity/scenarios/E.20/working-directory.app.ts b/packages/cli-rs/parity/scenarios/E.20/working-directory.app.ts new file mode 100644 index 000000000000..d46b044f9cff --- /dev/null +++ b/packages/cli-rs/parity/scenarios/E.20/working-directory.app.ts @@ -0,0 +1,23 @@ +// The working directory dialog (DLG42, T23): a click on the prompt footer's location opens "Working directory" +// with "Copy path", "Open folder", and "Workspaces" (`ui/working-directory-actions.tsx`). Escape closes it. No +// option is chosen: copying and opening reach the system, which the Rust tests cover with a sink. +import { defineApp, HOME_PLACEHOLDER } from "../../lib/app" + +export default defineApp({ + config: { experimental: { "new-designs": true } }, + steps: [ + { + checkpoint: "home", + until: "/tmp/opencode/packages/tui:main", + masks: [HOME_PLACEHOLDER], + }, + { click: [16, 20] }, + { + checkpoint: "dialog", + until: "Working directory", + masks: [HOME_PLACEHOLDER], + }, + { keys: ["escape"] }, + { checkpoint: "closed", masks: [HOME_PLACEHOLDER] }, + ], +}) diff --git a/packages/cli-rs/parity/scenarios/E.3/complete.app.ts b/packages/cli-rs/parity/scenarios/E.3/complete.app.ts new file mode 100644 index 000000000000..422a4bbeb225 --- /dev/null +++ b/packages/cli-rs/parity/scenarios/E.3/complete.app.ts @@ -0,0 +1,44 @@ +// Prompt autocomplete (P05): `/rev` lists the server's command and Enter completes it; `@gen` lists the +// subagent and a file from /api/fs/find, and Enter turns the agent into a highlighted mention. +import { defineApp, session, user } from "../../lib/app" + +const location = { directory: "/tmp/opencode/packages/tui" } + +export default defineApp({ + args: { sessionID: "ses_b" }, + routes: [ + { path: "/api/session/ses_b", json: { data: session("ses_b", "Fix the parser", { updated: 2 }) } }, + { path: "/api/session/ses_b/message", json: { data: [user("msg_1", "Why does the parser fail?")], cursor: {} } }, + { path: "/api/session/ses_b/inbox", json: { data: [] } }, + { path: "/api/command", json: { location, data: [{ name: "review", description: "Review the working tree" }] } }, + { + path: "/api/agent", + json: { + location, + data: [ + { + id: "general", + name: "general", + mode: "subagent", + hidden: false, + permissions: [], + request: { settings: {}, headers: {}, body: {} }, + }, + ], + }, + }, + { path: "/api/fs/find", json: { location, data: [{ path: "src/general.ts", type: "file" }] } }, + ], + steps: [ + { checkpoint: "open", until: "Why does the parser fail?" }, + { type: "/rev" }, + { checkpoint: "slash", until: "Review the working tree" }, + { keys: ["enter"] }, + { checkpoint: "command", until: "/review" }, + { keys: ["ctrl+c"] }, + { type: "ask @gen" }, + { checkpoint: "mention", until: "src/general.ts" }, + { keys: ["enter"] }, + { checkpoint: "picked", until: "ask @general" }, + ], +}) diff --git a/packages/cli-rs/parity/scenarios/E.3/shell-mode.app.ts b/packages/cli-rs/parity/scenarios/E.3/shell-mode.app.ts new file mode 100644 index 000000000000..8bf7996f041a --- /dev/null +++ b/packages/cli-rs/parity/scenarios/E.3/shell-mode.app.ts @@ -0,0 +1,17 @@ +// Prompt shell mode (#63605): `!` turns the prompt into shell mode, whose border and "Shell" label take the second +// categorical color under the new designs instead of the interactive color the first agent shares. +import { defineApp, session, user } from "../../lib/app" + +export default defineApp({ + args: { sessionID: "ses_b" }, + routes: [ + { path: "/api/session/ses_b", json: { data: session("ses_b", "Fix the parser", { updated: 2 }) } }, + { path: "/api/session/ses_b/message", json: { data: [user("msg_1", "Why does the parser fail?")], cursor: {} } }, + { path: "/api/session/ses_b/inbox", json: { data: [] } }, + ], + steps: [ + { checkpoint: "open", until: "Why does the parser fail?" }, + { type: "!" }, + { checkpoint: "shell", until: "exit shell mode" }, + ], +}) diff --git a/packages/cli-rs/parity/scenarios/E.4/paste-click.pty.ts b/packages/cli-rs/parity/scenarios/E.4/paste-click.pty.ts new file mode 100644 index 000000000000..25041691f02e --- /dev/null +++ b/packages/cli-rs/parity/scenarios/E.4/paste-click.pty.ts @@ -0,0 +1,24 @@ +// A click on a `[Pasted ~5 lines]` label expands it in place and selects nothing (`expandPastedText`, whose +// mouse-down handler prevents the default). The release lands on the expanded text and copies nothing, and the next +// key types at the cursor, after the pasted text. +import { definePty } from "../../pty/run" +import { home, homeMasks, paste, press, release } from "../OT/home" + +export default definePty({ + args: [], + cols: 100, + rows: 30, + ...home, + steps: [ + { until: { screen: "█▀▀█" }, settle: 500, timeout: 30_000 }, + { keys: "a", settle: 300 }, + { keys: paste("one\ntwo\nthree\nfour\nfive"), until: { screen: "Pasted" }, settle: 500 }, + { keys: "b", settle: 300, checkpoint: "label" }, + { keys: press(27, 17), settle: 300, checkpoint: "pressed" }, + { keys: release(27, 17), settle: 500, checkpoint: "clicked" }, + { keys: "X", settle: 500, checkpoint: "typed" }, + ], + cursor: true, + osc: ["clipboard"], + masks: homeMasks, +}) diff --git a/packages/cli-rs/parity/scenarios/E.4/paste.app.ts b/packages/cli-rs/parity/scenarios/E.4/paste.app.ts new file mode 100644 index 000000000000..8145cab9e1c8 --- /dev/null +++ b/packages/cli-rs/parity/scenarios/E.4/paste.app.ts @@ -0,0 +1,25 @@ +// Pastes (P06): a three-line paste collapses into a `[Pasted ~3 lines]` part in the `extmark.paste` style, the +// same text pasted again right after it expands in place, and a short paste goes in as it is, ANSI stripped. +import { defineApp, session, user } from "../../lib/app" + +const pasted = "first line\nsecond line\nthird line" + +export default defineApp({ + args: { sessionID: "ses_b" }, + routes: [ + { path: "/api/session/ses_b", json: { data: session("ses_b", "Fix the parser", { updated: 2 }) } }, + { path: "/api/session/ses_b/message", json: { data: [user("msg_1", "Why does the parser fail?")], cursor: {} } }, + { path: "/api/session/ses_b/inbox", json: { data: [] } }, + ], + steps: [ + { checkpoint: "open", until: "Why does the parser fail?" }, + { type: "see " }, + { paste: pasted }, + { checkpoint: "compact", until: "[Pasted ~3 lines]" }, + { paste: pasted }, + { checkpoint: "expanded", until: "third line" }, + { keys: ["ctrl+c"] }, + { paste: "short \u001b[31mred\u001b[0m paste" }, + { checkpoint: "short", until: "short red paste" }, + ], +}) diff --git a/packages/cli-rs/parity/scenarios/E.5/editor.pty.ts b/packages/cli-rs/parity/scenarios/E.5/editor.pty.ts new file mode 100644 index 000000000000..b453ed01a874 --- /dev/null +++ b/packages/cli-rs/parity/scenarios/E.5/editor.pty.ts @@ -0,0 +1,36 @@ +// External editor (P09): `prompt.editor` (<leader>e) writes the prompt to a temporary file, hands the terminal to +// $EDITOR, and reads the file back into the prompt. $EDITOR is fake-editor.sh beside this file, which rewrites the +// file and records whether it had the terminal; no real editor runs. The temporary file goes to the sandbox's +// TMPDIR. +import path from "node:path" +import { definePty } from "../../pty/run" + +const config = JSON.stringify({ experimental: { "new-designs": true }, debug: { devtools: false } }) + +export default definePty({ + args: [], + cols: 100, + rows: 30, + env: { + OPENCODE_CLI_CONFIG_CONTENT: config, + EDITOR: path.join(import.meta.dir, "fake-editor.sh"), + }, + server: { fallback: "tui" }, + steps: [ + { until: { screen: "█▀▀█" }, settle: 500, timeout: 30_000 }, + { keys: "hello", until: { screen: "hello" }, settle: 200 }, + { keys: "\x18e", until: { screen: "second line" }, settle: 300, timeout: 10_000, checkpoint: "edited" }, + // Ctrl+C clears the prompt, then exits. + { keys: "\x03", until: { gone: "second line" }, settle: 300 }, + { keys: "\x03", until: { exit: true } }, + ], + osc: [], + masks: [ + { + pattern: /(<root>|\/)\S*(\s+shift\+tab agents.*)?$/, + reason: + "the prompt footer: the location (the server's default in TS, the launch directory in Rust) and E.14's hints", + }, + ], + exits: true, +}) diff --git a/packages/cli-rs/parity/scenarios/E.5/fake-editor.sh b/packages/cli-rs/parity/scenarios/E.5/fake-editor.sh new file mode 100755 index 000000000000..e176f3c5bdff --- /dev/null +++ b/packages/cli-rs/parity/scenarios/E.5/fake-editor.sh @@ -0,0 +1,10 @@ +#!/bin/sh +# A stand-in for $EDITOR in E.5/editor.pty.ts: it edits the file it is given as an editor would on save, and +# notes whether it got the terminal. No real editor runs. +if [ -t 0 ] && [ -t 1 ]; then terminal=tty; else terminal=notty; fi +{ + printf 'edited: ' + cat "$1" + printf ' (%s)\nsecond line\n' "$terminal" +} > "$1.tmp" +mv "$1.tmp" "$1" diff --git a/packages/cli-rs/parity/scenarios/E.5/ide.app.ts b/packages/cli-rs/parity/scenarios/E.5/ide.app.ts new file mode 100644 index 000000000000..0d123d3308aa --- /dev/null +++ b/packages/cli-rs/parity/scenarios/E.5/ide.app.ts @@ -0,0 +1,33 @@ +// IDE editor context (P08) from a fake IDE MCP server: after the MCP handshake, `selection_changed` puts the file and +// lines in the prompt footer, highlighted until they are sent, and `at_mentioned` inserts a file mention with its +// lines at the cursor. The recording also keeps what the TUI sent the server. +import { defineApp, session, user } from "../../lib/app" + +const file = "/tmp/opencode/packages/tui/src/parser.ts" + +export default defineApp({ + args: { sessionID: "ses_b" }, + ide: true, + routes: [ + { path: "/api/session/ses_b", json: { data: session("ses_b", "Fix the parser", { updated: 2 }) } }, + { path: "/api/session/ses_b/message", json: { data: [user("msg_1", "Why does the parser fail?")], cursor: {} } }, + { path: "/api/session/ses_b/inbox", json: { data: [] } }, + ], + steps: [ + { checkpoint: "open", until: "Why does the parser fail?" }, + { + ide: { + method: "selection_changed", + params: { + text: "if (token) {\n return\n}", + filePath: file, + selection: { start: { line: 3, character: 1 }, end: { line: 5, character: 2 } }, + }, + }, + }, + { checkpoint: "selected", until: "parser.ts#3-5" }, + { type: "see " }, + { ide: { method: "at_mentioned", params: { filePath: file, lineStart: 3, lineEnd: 5 } } }, + { checkpoint: "mentioned", until: "see @src/parser.ts#3-5" }, + ], +}) diff --git a/packages/cli-rs/parity/scenarios/E.5/leader-timeout-config.pty.ts b/packages/cli-rs/parity/scenarios/E.5/leader-timeout-config.pty.ts new file mode 100644 index 000000000000..12e9536d74df --- /dev/null +++ b/packages/cli-rs/parity/scenarios/E.5/leader-timeout-config.pty.ts @@ -0,0 +1,35 @@ +// A configured `leader.timeout` of 1,000 ms (`keymap.tsx:143`): 200 ms after Ctrl+X, `l` still completes +// `session.list` (<leader>l); 1,600 ms after it, under the 2,000 ms default, `l` is typed into the prompt. +import { definePty } from "../../pty/run" + +const config = JSON.stringify({ + experimental: { "new-designs": true }, + debug: { devtools: false }, + leader: { timeout: 1000 }, +}) + +export default definePty({ + args: [], + cols: 100, + rows: 30, + env: { OPENCODE_CLI_CONFIG_CONTENT: config }, + server: { fallback: "tui" }, + steps: [ + { until: { screen: "█▀▀█" }, settle: 500, timeout: 30_000 }, + { keys: "\x18", settle: 200 }, + { keys: "l", until: { screen: "Search sessions" }, settle: 300, checkpoint: "completed" }, + // Escape waits for the list to close: a lone ESC not yet read would join the leader key. + { keys: "\x1b", until: { gone: "Search sessions" }, settle: 300 }, + { keys: "\x18", settle: 1600 }, + { keys: "l", settle: 300, absent: "Search sessions", checkpoint: "expired" }, + ], + osc: [], + masks: [ + { pattern: /Ask anything… .*$/, reason: "the placeholder example: random in TS and Rust" }, + { + pattern: /(<root>|\/)\S*(\s+shift\+tab agents.*)?$/, + reason: + "the prompt footer: the location (the server's default in TS, the launch directory in Rust) and E.14's hints", + }, + ], +}) diff --git a/packages/cli-rs/parity/scenarios/E.5/leader-timeout.pty.ts b/packages/cli-rs/parity/scenarios/E.5/leader-timeout.pty.ts new file mode 100644 index 000000000000..361c05712911 --- /dev/null +++ b/packages/cli-rs/parity/scenarios/E.5/leader-timeout.pty.ts @@ -0,0 +1,32 @@ +// The leader sequence expires `leader.timeout` (2,000 ms by default) after the leader key (`keymap.tsx:137-146`). +// One second after Ctrl+X, `l` still completes `session.list` (<leader>l); past the timeout, `l` is typed into the +// prompt. `settle` waits at least that long, so the first wait stays under the timeout and the second goes past it. +import { definePty } from "../../pty/run" + +const config = JSON.stringify({ experimental: { "new-designs": true }, debug: { devtools: false } }) + +export default definePty({ + args: [], + cols: 100, + rows: 30, + env: { OPENCODE_CLI_CONFIG_CONTENT: config }, + server: { fallback: "tui" }, + steps: [ + { until: { screen: "█▀▀█" }, settle: 500, timeout: 30_000 }, + { keys: "\x18", settle: 1000 }, + { keys: "l", until: { screen: "Search sessions" }, settle: 300, checkpoint: "completed" }, + // Escape waits for the list to close: a lone ESC not yet read would join the leader key. + { keys: "\x1b", until: { gone: "Search sessions" }, settle: 300 }, + { keys: "\x18", settle: 2600 }, + { keys: "l", settle: 300, absent: "Search sessions", checkpoint: "expired" }, + ], + osc: [], + masks: [ + { pattern: /Ask anything… .*$/, reason: "the placeholder example: random in TS and Rust" }, + { + pattern: /(<root>|\/)\S*(\s+shift\+tab agents.*)?$/, + reason: + "the prompt footer: the location (the server's default in TS, the launch directory in Rust) and E.14's hints", + }, + ], +}) diff --git a/packages/cli-rs/parity/scenarios/E.5/zed.app.ts b/packages/cli-rs/parity/scenarios/E.5/zed.app.ts new file mode 100644 index 000000000000..5ff5a132ed84 --- /dev/null +++ b/packages/cli-rs/parity/scenarios/E.5/zed.app.ts @@ -0,0 +1,28 @@ +// Zed editor context (P08): in a Zed terminal with no IDE server, the TUI reads the active editor and its selections +// from Zed's database, here a temporary one whose only workspace is `/`. The byte range 18..29 runs from line 2 into +// line 3, and an `index.*` file shows with its directory. +import { defineApp, session, user } from "../../lib/app" + +const contents = "const a = 1\nconst b = 2\nconst c = 3\n" + +export default defineApp({ + args: { sessionID: "ses_b" }, + zed: { + sql: `create table workspaces (workspace_id integer, paths text, timestamp text); +create table panes (pane_id integer, workspace_id integer, active integer); +create table items (item_id integer, workspace_id integer, pane_id integer, kind text, active integer); +create table editors (item_id integer, workspace_id integer, buffer_path text, contents text); +create table editor_selections (editor_id integer, workspace_id integer, start integer, end integer); +insert into workspaces values (1, '["/"]', '2026-11-04 10:00:00'); +insert into panes values (1, 1, 1); +insert into items values (7, 1, 1, 'Editor', 1); +insert into editors values (7, 1, '/tmp/opencode/packages/tui/src/index.ts', '${contents}'); +insert into editor_selections values (7, 1, 18, 29);`, + }, + routes: [ + { path: "/api/session/ses_b", json: { data: session("ses_b", "Fix the parser", { updated: 2 }) } }, + { path: "/api/session/ses_b/message", json: { data: [user("msg_1", "Why does the parser fail?")], cursor: {} } }, + { path: "/api/session/ses_b/inbox", json: { data: [] } }, + ], + steps: [{ checkpoint: "selected", until: "src/index.ts#2-3" }], +}) diff --git a/packages/cli-rs/parity/scenarios/E.6a/history-failed.app.ts b/packages/cli-rs/parity/scenarios/E.6a/history-failed.app.ts new file mode 100644 index 000000000000..0250c8d914ca --- /dev/null +++ b/packages/cli-rs/parity/scenarios/E.6a/history-failed.app.ts @@ -0,0 +1,30 @@ +// The session's first transcript read fails with a handler defect. TS's data layer drops the error, so the session +// opens with an empty transcript and no sign of the failure. Rust shows the same transcript and adds a toast with the +// error's message alone (O89-transcript-read-toast). The wait outlasts the read, so the toast is up at the checkpoint. +import { defineApp, session } from "../../lib/app" + +export default defineApp({ + args: { sessionID: "ses_h" }, + routes: [ + { path: "/api/session/ses_h", json: { data: session("ses_h", "Fix the parser", { updated: 2 }) } }, + { + path: "/api/session/ses_h/message", + status: 500, + json: { + _tag: "UnknownError", + message: "Server failed to handle the request. Check server logs for details.", + ref: "err_1234abcd", + }, + }, + { path: "/api/session/ses_h/inbox", json: { data: [] } }, + ], + steps: [ + { wait: 500 }, + { + checkpoint: "opened", + until: "Fix the parser", + // The toast's box, and nothing outside it. + deviation: [{ file: "O89-transcript-read-toast", cells: 240 }], + }, + ], +}) diff --git a/packages/cli-rs/parity/scenarios/E.6a/reasoning-open.app.ts b/packages/cli-rs/parity/scenarios/E.6a/reasoning-open.app.ts new file mode 100644 index 000000000000..c0510af06f65 --- /dev/null +++ b/packages/cli-rs/parity/scenarios/E.6a/reasoning-open.app.ts @@ -0,0 +1,47 @@ +// An opened reasoning block whose text is Markdown: TS draws it in rendered mode with Core's Markdown, as an answer is +// drawn, in the reasoning colors (#63989's `ReasoningBody`); Rust draws it with its Markdown widget (V04). +import { defineApp, session } from "../../lib/app" + +const reasoning = [ + "**Reading the parser**", + "The loop stops *one* token early, in `next()`:", + "- the bound is `len - 1`\n- the last token is dropped", + "| case | tokens |\n| --- | --- |\n| empty | 0 |\n| one | 1 |", +].join("\n\n") + +export default defineApp({ + args: { sessionID: "ses_r" }, + routes: [ + { path: "/api/session/ses_r", json: { data: session("ses_r", "Fix the parser", { updated: 2 }) } }, + { + path: "/api/session/ses_r/message", + json: { + data: [ + { + id: "msg_2", + type: "assistant", + agent: "build", + model: { providerID: "provider", id: "model" }, + content: [ + { type: "reasoning", text: reasoning, time: { created: 1500, completed: 3000 } }, + { type: "text", text: "The parser drops the last token." }, + ], + finish: "stop", + tokens: { input: 1200, output: 50, reasoning: 0, cache: { read: 3000, write: 0 } }, + time: { created: 1500, completed: 4000 }, + }, + { id: "msg_1", type: "user", text: "Why does the parser fail?", time: { created: 1000 } }, + ], + cursor: {}, + }, + }, + { path: "/api/session/ses_r/inbox", json: { data: [] } }, + ], + steps: [ + { checkpoint: "collapsed", until: "drops the last token" }, + { click: [7, 6] }, + { checkpoint: "group", until: "Thought: Reading" }, + { click: [7, 8] }, + { checkpoint: "open", until: "empty" }, + ], +}) diff --git a/packages/cli-rs/parity/scenarios/E.6a/session-links.app.ts b/packages/cli-rs/parity/scenarios/E.6a/session-links.app.ts new file mode 100644 index 000000000000..4d7d40d887fe --- /dev/null +++ b/packages/cli-rs/parity/scenarios/E.6a/session-links.app.ts @@ -0,0 +1,65 @@ +// Session IDs in a reply link to their sessions (#63224, #63247): a loaded session shows as `@<title>`, the current, +// an archived and an unknown session stay IDs, and so does a code span that is more than the ID. A rename draws the +// new title, and a click on the link opens that session. +import { assistant, defineApp, session, user } from "../../lib/app" + +const id = (name: string) => `ses_${name.padEnd(26, "0")}` +const current = id("current") +const known = id("known") +const archived = id("archived") +const unknown = id("unknown") + +export default defineApp({ + args: { sessionID: current }, + routes: [ + { path: `/api/session/${current}`, json: { data: session(current, "Fix the parser", { updated: 2 }) } }, + { + path: `/api/session/${current}/message`, + json: { + data: [ + assistant( + "msg_2", + [ + `This continues ${known}, not ${current}.`, + "", + `- archived ${archived}`, + `- unknown @session:${unknown}`, + "", + `Run \`opencode --session ${known}\` or open \`${known}\`.`, + ].join("\n"), + ), + user("msg_1", "Which sessions touched the parser?"), + ], + cursor: {}, + }, + }, + { path: `/api/session/${current}/inbox`, json: { data: [] } }, + { path: `/api/session/${known}`, json: { data: session(known, "Fix the flaky reconnect test", { updated: 1 }) } }, + { path: `/api/session/${known}/message`, json: { data: [user("msg_k", "Why is reconnect flaky?")], cursor: {} } }, + { path: `/api/session/${known}/inbox`, json: { data: [] } }, + { + path: `/api/session/${archived}`, + json: { data: { ...session(archived, "Old work"), time: { created: 1, updated: 1, archived: 1 } } }, + }, + { + path: `/api/session/${unknown}`, + status: 404, + json: { _tag: "SessionNotFoundError", sessionID: unknown, message: `Session not found: ${unknown}` }, + }, + ], + steps: [ + { checkpoint: "labels", until: "@Fix the flaky reconnect test" }, + { + event: { + id: "evt_1", + created: 3, + type: "session.renamed", + durable: { aggregateID: known, seq: 1, version: 1 }, + data: { sessionID: known, title: "Reconnect retries" }, + }, + }, + { checkpoint: "renamed", until: "@Reconnect retries" }, + { click: [24, 6] }, + { checkpoint: "opened", until: "Why is reconnect flaky?" }, + ], +}) diff --git a/packages/cli-rs/parity/scenarios/E.6a/transcript.app.ts b/packages/cli-rs/parity/scenarios/E.6a/transcript.app.ts new file mode 100644 index 000000000000..4b64b59231e3 --- /dev/null +++ b/packages/cli-rs/parity/scenarios/E.6a/transcript.app.ts @@ -0,0 +1,54 @@ +// A finished turn: a user message with chips, collapsed reasoning, Markdown text, the footer with tokens per +// second counted from the first token and no time to it (#63759), and the turn's token usage (V01 to V04, V12). +import { defineApp, session } from "../../lib/app" + +export default defineApp({ + config: { debug: { turn_tokens: true } }, + args: { sessionID: "ses_e" }, + routes: [ + { path: "/api/session/ses_e", json: { data: session("ses_e", "Fix the parser", { updated: 2 }) } }, + { + path: "/api/session/ses_e/message", + json: { + data: [ + { + id: "msg_2", + type: "assistant", + agent: "build", + model: { providerID: "provider", id: "model" }, + content: [ + { + type: "reasoning", + text: "**Reading the parser**\n\nThe loop stops one token early.", + time: { created: 1500, completed: 3000 }, + }, + { + type: "text", + text: "The parser drops the **last** token in `next()`.\n\n- check the bound\n- add a test", + }, + ], + finish: "stop", + tokens: { input: 1200, output: 50, reasoning: 0, cache: { read: 3000, write: 0 } }, + time: { created: 1500, firstToken: 2000, streamed: 3000, completed: 4000 }, + }, + { + id: "msg_1", + type: "user", + text: "Why does the parser fail?", + time: { created: 1000 }, + files: [{ data: "", mime: "text/plain", name: "parser.rs", source: { type: "inline" } }], + skills: [{ id: "skl_1", name: "rust" }], + }, + ], + cursor: {}, + }, + }, + { path: "/api/session/ses_e/inbox", json: { data: [] } }, + ], + steps: [ + { + checkpoint: "open", + until: "Tokens", + }, + ], +}) diff --git a/packages/cli-rs/parity/scenarios/E.6b/fence-wrap.sim.ts b/packages/cli-rs/parity/scenarios/E.6b/fence-wrap.sim.ts new file mode 100644 index 000000000000..5eca2cb3bbb9 --- /dev/null +++ b/packages/cli-rs/parity/scenarios/E.6b/fence-wrap.sim.ts @@ -0,0 +1,27 @@ +// A reply with a fence that holds one shell line wider than the transcript, at the top level and in a list item. +// Both clients wrap the line by word inside the fence (Core's default `wrapMode: "word"`, OpenTUI #2089 in Rust). +import { defineSim } from "../../sim/scenario" + +const duration = { line: "· \\d.*", reason: "the turn duration depends on timing, also in length; the row ends there" } +const command = + "OPENCODE_STORY_MEDIA=/home/user/src/opencode/packages/tui/fixtures/story-media.json OPENCODE_STORY=transcript-fences bun run dev:live /home/user/src/project" + +export default defineSim({ + height: 40, + model: [ + { + items: [ + { type: "textDelta", text: "Run the story:\n\n```sh\n" }, + { type: "textDelta", text: `${command}\n\`\`\`\n\n` }, + { type: "textDelta", text: `1. Then in a list:\n\n \`\`\`sh\n ${command}\n \`\`\`\n\nDone.` }, + ], + }, + ], + steps: [ + { until: "Simulated Model" }, + { type: "Show the story command" }, + { until: "story command" }, + { enter: true }, + { checkpoint: "done", until: "Done.", masks: [duration] }, + ], +}) diff --git a/packages/cli-rs/parity/scenarios/E.6b/messages.app.ts b/packages/cli-rs/parity/scenarios/E.6b/messages.app.ts new file mode 100644 index 000000000000..050b7b2a1c6b --- /dev/null +++ b/packages/cli-rs/parity/scenarios/E.6b/messages.app.ts @@ -0,0 +1,68 @@ +// A compaction, a failed step, a step waiting to retry, and the revert banner after an undo (V08, V10, V11). +import { defineApp, session, user } from "../../lib/app" + +const model = { providerID: "provider", id: "model" } + +export default defineApp({ + height: 40, + args: { sessionID: "ses_b" }, + routes: [ + { + path: "/api/session/ses_b", + json: { + data: { + ...session("ses_b", "Fix the parser", { updated: 2 }), + revert: { + messageID: "msg_6", + files: [{ file: "src/parser.rs", patch: "", additions: 4, deletions: 2, status: "modified" }], + }, + }, + }, + }, + { + path: "/api/session/ses_b/message", + json: { + data: [ + user("msg_6", "Rewrite the lexer", 9000), + { + id: "msg_5", + type: "assistant", + agent: "build", + model, + content: [], + retry: { attempt: 2, at: 1000, error: { type: "provider", message: "Provider is overloaded" } }, + time: { created: 8000 }, + }, + user("msg_4", "Try again", 7000), + { + id: "msg_3", + type: "assistant", + agent: "build", + model, + content: [{ type: "text", text: "Reading the parser." }], + error: { type: "provider", message: "Request too large" }, + time: { created: 5000, completed: 6000 }, + }, + { + id: "msg_2", + type: "compaction", + status: "completed", + reason: "manual", + summary: "The user is fixing the **parser**.", + tokens: { input: 1200, output: 300, reasoning: 0, cache: { read: 0, write: 0 } }, + time: { created: 3000 }, + }, + user("msg_1", "Why does the parser fail?", 1000), + ], + cursor: {}, + }, + }, + { path: "/api/session/ses_b/inbox", json: { data: [] } }, + ], + steps: [ + { + checkpoint: "open", + until: "message reverted", + }, + ], +}) diff --git a/packages/cli-rs/parity/scenarios/E.6b/messages.sim.ts b/packages/cli-rs/parity/scenarios/E.6b/messages.sim.ts new file mode 100644 index 000000000000..412b8ec73963 --- /dev/null +++ b/packages/cli-rs/parity/scenarios/E.6b/messages.sim.ts @@ -0,0 +1,40 @@ +// P-TUI version of `E.6b/messages.app.ts`: message kinds built by real turns (V08, V10, V11). A session opens with +// one finished turn; `/compact` runs a real compaction (its summary must use the template's headings); a prompt +// whose step fails with a provider error, with its toast; another prompt, then `/undo` shows the revert banner. The +// step waiting to retry is left out: a retry waits for its backoff in real time. +import { defineSim } from "../../sim/scenario" + +const duration = { line: "· \\d.*", reason: "the turn duration depends on timing, also in length; the row ends there" } + +export default defineSim({ + height: 40, + sessions: [{ title: "Fix the parser", prompts: ["Why does the parser fail?"] }], + args: ["--session", "$session:0"], + model: [ + { items: [{ type: "textDelta", text: "Reading the parser." }] }, + { items: [{ type: "textDelta", text: "## Objective\n- Fix the **parser**." }] }, + { items: [{ type: "raw", chunk: { error: { message: "Request too large" } } }], finish: false }, + { items: [{ type: "textDelta", text: "Rewrote the lexer." }] }, + ], + steps: [ + // The TS footer shows "Finishing startup…" until startup ends, then the working directory. + { until: "/work " }, + { until: "Simulated Model" }, + { type: "/compact" }, + { until: "/compact" }, + { enter: true }, + { checkpoint: "compacted", until: "Fix the parser.", masks: [duration] }, + { type: "Try again" }, + { until: "Try again" }, + { enter: true }, + { checkpoint: "failed", until: "Request too large", masks: [duration] }, + { type: "Rewrite the lexer" }, + { until: "Rewrite the lexer" }, + { enter: true }, + { until: "Rewrote the lexer." }, + { type: "/undo" }, + { until: "/undo" }, + { enter: true }, + { checkpoint: "reverted", until: "reverted", masks: [duration] }, + ], +}) diff --git a/packages/cli-rs/parity/scenarios/E.6b/right-padding.app.ts b/packages/cli-rs/parity/scenarios/E.6b/right-padding.app.ts new file mode 100644 index 000000000000..2b5ea7454463 --- /dev/null +++ b/packages/cli-rs/parity/scenarios/E.6b/right-padding.app.ts @@ -0,0 +1,84 @@ +// Messages and tool blocks keep two columns free on the right (#62104): a user message long enough to wrap, a +// write whose path is cut to fit, an apply_patch with a deleted file whose path is cut, and the revert banner +// with a long file path, at a narrow width. +import { defineApp, session, user } from "../../lib/app" + +const directory = "/tmp/opencode/packages/tui" +const long = "src/components/navigation/sidebar/sections/project-tree/expanded-folder-row.tsx" + +const tool = (id: string, name: string, state: Record<string, unknown>) => ({ + type: "tool", + id, + name, + state, + time: { created: 1600, completed: 1700 }, +}) + +export default defineApp({ + width: 60, + height: 50, + args: { sessionID: "ses_pad" }, + config: { session: { grouping: "none" } }, + routes: [ + { + path: "/api/session/ses_pad", + json: { + data: { + ...session("ses_pad", "Pad the blocks", { updated: 2, directory }), + revert: { + messageID: "msg_3", + files: [{ file: long, patch: "", additions: 12, deletions: 3, status: "modified" }], + }, + }, + }, + }, + { + path: "/api/session/ses_pad/message", + json: { + data: [ + user("msg_3", "Undo this one", 3000), + { + id: "msg_2", + type: "assistant", + agent: "build", + model: { providerID: "provider", id: "model" }, + content: [ + tool("call_1", "write", { + status: "completed", + input: { filePath: `${directory}/${long}`, content: "export {}\n" }, + content: [{ type: "text", text: "Wrote" }], + metadata: {}, + }), + tool("call_2", "apply_patch", { + status: "completed", + input: { patchText: "*** Begin Patch" }, + content: [{ type: "text", text: "Applied" }], + metadata: { + files: [ + { + file: long, + filePath: `${directory}/${long}`, + type: "delete", + patch: "", + additions: 0, + deletions: 12, + }, + ], + }, + }), + ], + time: { created: 2000, completed: 2500 }, + }, + user( + "msg_1", + "Rename every expanded folder row in the project tree so that the sidebar and the file picker share one component", + 1000, + ), + ], + cursor: {}, + }, + }, + { path: "/api/session/ses_pad/inbox", json: { data: [] } }, + ], + steps: [{ checkpoint: "open", until: "message reverted" }], +}) diff --git a/packages/cli-rs/parity/scenarios/E.6b/theme-switch.sim.ts b/packages/cli-rs/parity/scenarios/E.6b/theme-switch.sim.ts new file mode 100644 index 000000000000..d8efc68e2b99 --- /dev/null +++ b/packages/cli-rs/parity/scenarios/E.6b/theme-switch.sim.ts @@ -0,0 +1,46 @@ +// A reply streams a Rust fence, holds inside it, and the theme changes through `/themes` while the fence streams and +// again after the reply completes. TS restyles in place; Rust remounts the route, and OpenTUI #2091 restyles a kept +// code view's highlight without parsing again. Both show the fence and the table in each new theme. +import { defineSim } from "../../sim/scenario" + +const duration = { line: "· \\d.*", reason: "the turn duration depends on timing, also in length; the row ends there" } + +const theme = (name: string) => [ + { type: "/themes" }, + { until: "/themes" }, + { enter: true as const }, + { until: "Search themes" }, + { type: name }, + { until: name }, + // The first match previews after the filter lands. + { sleep: 500 }, + { enter: true as const }, + // The dialog closes and the route repaints in the theme; no text marks the frame. + { sleep: 1000 }, +] + +export default defineSim({ + height: 30, + model: [ + { + items: [ + { type: "textDelta", text: 'Code:\n\n```rust\nfn main() {\n let x = "s"; // note\n' }, + { hold: "fence" }, + { type: "textDelta", text: ' println!("{x}");\n}\n```\n\n| a | b |\n|---|---|\n| 1 | 2 |\n\nDone.' }, + ], + }, + ], + steps: [ + { until: "Simulated Model" }, + { type: "Show a fence" }, + { until: "Show a fence" }, + { enter: true }, + { checkpoint: "streaming", until: "// note" }, + ...theme("tokyonight"), + { checkpoint: "switched-streaming", until: "// note" }, + { release: "fence" }, + { checkpoint: "done", until: "Done.", masks: [duration] }, + ...theme("github"), + { checkpoint: "switched-done", until: "Done.", masks: [duration] }, + ], +}) diff --git a/packages/cli-rs/parity/scenarios/E.7a/shell-stopped.app.ts b/packages/cli-rs/parity/scenarios/E.7a/shell-stopped.app.ts new file mode 100644 index 000000000000..bc5f922e1c2d --- /dev/null +++ b/packages/cli-rs/parity/scenarios/E.7a/shell-stopped.app.ts @@ -0,0 +1,51 @@ +// A shell call the user stopped (#62977): it fails with its output followed by the notice its metadata names. The +// output shows clipped like the finished call's above it, and only the notice shows as the error. +import { defineApp, session } from "../../lib/app" + +const steps = Array.from({ length: 15 }, (_, index) => `step ${index + 1}`).join("\n") +const notice = "[full output saved to /tmp/sh_stopped.out]\n\nCommand interrupted by the user (shell ID: sh_stopped)." + +const shell = (id: string, command: string, state: Record<string, unknown>) => ({ + type: "tool", + id, + name: "shell", + time: { created: 1600, completed: 1700 }, + state: { input: { command }, ...state }, +}) + +const messages = [ + { id: "msg_1", type: "user", text: "Run them", time: { created: 1000 } }, + { + id: "msg_2", + type: "assistant", + agent: "build", + model: { providerID: "provider", id: "model" }, + content: [ + shell("call_1", "seq-completed", { + status: "completed", + content: [{ type: "text", text: steps }], + metadata: { exit: 0, truncated: false }, + }), + shell("call_2", "seq-stopped", { + status: "error", + error: { type: "tool.execution", message: `${steps}\n\n${notice}` }, + metadata: { interrupted: true, truncated: false, shellID: "sh_stopped", notice }, + }), + { type: "text", text: "Both ran" }, + ], + finish: "stop", + time: { created: 1500, completed: 1800 }, + }, +] + +export default defineApp({ + height: 50, + config: { session: { grouping: "none", verbosity: "medium" } }, + args: { sessionID: "ses_stopped" }, + routes: [ + { path: "/api/session/ses_stopped", json: { data: session("ses_stopped", "Stopped shell", { updated: 2 }) } }, + { path: "/api/session/ses_stopped/message", json: { data: messages.toReversed(), cursor: {} } }, + { path: "/api/session/ses_stopped/inbox", json: { data: [] } }, + ], + steps: [{ checkpoint: "open", until: "Both ran" }], +}) diff --git a/packages/cli-rs/parity/scenarios/E.7a/tools-low.app.ts b/packages/cli-rs/parity/scenarios/E.7a/tools-low.app.ts new file mode 100644 index 000000000000..c26ed4f1da31 --- /dev/null +++ b/packages/cli-rs/parity/scenarios/E.7a/tools-low.app.ts @@ -0,0 +1,9 @@ +// `tools.app.ts` at the default transcript verbosity (low, #63207): the finished tool calls fold into one +// summary row, even with `session.grouping: none`. +import base from "./tools.app" + +export default { + ...base, + config: { session: { grouping: "none" } }, + steps: [{ checkpoint: "open", until: "1 command, 1 edit, 1 read" }], +} diff --git a/packages/cli-rs/parity/scenarios/E.7a/tools.app.ts b/packages/cli-rs/parity/scenarios/E.7a/tools.app.ts new file mode 100644 index 000000000000..8ef09b3ffedc --- /dev/null +++ b/packages/cli-rs/parity/scenarios/E.7a/tools.app.ts @@ -0,0 +1,86 @@ +// Core tool rows (V05a): a finished shell with its output, an edit with a unified diff and an LSP error, and a +// read of a line range, each call in its own row (`session.grouping: none`). +import { defineApp, session } from "../../lib/app" + +const directory = "/tmp/opencode/packages/tui" +const patch = [ + "Index: src/parser.rs", + "===================================================================", + "--- src/parser.rs", + "+++ src/parser.rs", + "@@ -1,4 +1,4 @@", + " fn next(tokens: &[Token], index: usize) -> Option<&Token> {", + "- if index + 1 < tokens.len() {", + "+ if index < tokens.len() {", + " return tokens.get(index);", + " }", + "", +].join("\n") + +const tool = (id: string, name: string, state: Record<string, unknown>) => ({ + type: "tool", + id, + name, + state, + time: { created: 1600, completed: 1700 }, +}) + +const messages = [ + { id: "msg_1", type: "user", text: "Fix the off-by-one in the parser", time: { created: 1000 } }, + { + id: "msg_2", + type: "assistant", + agent: "build", + model: { providerID: "provider", id: "model" }, + content: [ + tool("call_1", "shell", { + status: "completed", + input: { command: "cargo test parser", workdir: directory }, + content: [{ type: "text", text: "running 2 tests\ntest next_stops_early ... FAILED\ntest next_reads ... ok" }], + metadata: { exit: 101 }, + }), + tool("call_2", "read", { + status: "completed", + input: { path: `${directory}/src/parser.rs`, offset: 1, limit: 40 }, + content: [{ type: "text", text: "fn next() {}" }], + metadata: {}, + }), + tool("call_3", "edit", { + status: "completed", + input: { path: `${directory}/src/parser.rs` }, + content: [{ type: "text", text: "Edited src/parser.rs" }], + metadata: { + files: [ + { + file: "src/parser.rs", + filePath: `${directory}/src/parser.rs`, + type: "update", + patch, + additions: 1, + deletions: 1, + }, + ], + diagnostics: { + [`${directory}/src/parser.rs`]: [ + { severity: 1, message: "unused variable: `index`", range: { start: { line: 0, character: 26 } } }, + ], + }, + }, + }), + ], + finish: "tool-calls", + time: { created: 1500, completed: 1800 }, + }, +] + +export default defineApp({ + height: 40, + config: { session: { grouping: "none", verbosity: "medium" } }, + args: { sessionID: "ses_tools" }, + routes: [ + { path: "/api/session/ses_tools", json: { data: session("ses_tools", "Fix the parser", { updated: 2 }) } }, + { path: "/api/session/ses_tools/message", json: { data: messages.toReversed(), cursor: {} } }, + { path: "/api/session/ses_tools/inbox", json: { data: [] } }, + ], + steps: [{ checkpoint: "open", until: "unused variable" }], +}) diff --git a/packages/cli-rs/parity/scenarios/E.7a/tools.sim.ts b/packages/cli-rs/parity/scenarios/E.7a/tools.sim.ts new file mode 100644 index 000000000000..19aacc7927db --- /dev/null +++ b/packages/cli-rs/parity/scenarios/E.7a/tools.sim.ts @@ -0,0 +1,72 @@ +// P-TUI version of `E.7a/tools.app.ts`: core tool rows (V05a) from the real tool runtime: a shell that fails with +// its output, a read of a line range, and a `patch` with a unified diff, each call in its own row +// (`session.grouping: none`). The server has no LSP here, so there is no diagnostic. +import { defineSim } from "../../sim/scenario" + +const duration = { line: "· \\d.*", reason: "the turn duration depends on timing, also in length; the row ends there" } +const parser = [ + "fn next(tokens: &[Token], index: usize) -> Option<&Token> {", + " if index + 1 < tokens.len() {", + " return tokens.get(index);", + " }", + " None", + "}", + "", +].join("\n") + +export default defineSim({ + height: 40, + config: { session: { grouping: "none", verbosity: "medium" } }, + files: { "src/parser.rs": parser }, + model: [ + { + items: [ + { + type: "toolCall", + index: 0, + id: "call_1", + name: "shell", + input: { + command: + "printf 'running 2 tests\\ntest next_stops_early ... FAILED\\ntest next_reads ... ok\\n'; exit 101", + description: "Run the parser tests", + }, + }, + { + type: "toolCall", + index: 1, + id: "call_2", + name: "read", + input: { path: "src/parser.rs", offset: 1, limit: 4 }, + }, + { + type: "toolCall", + index: 2, + id: "call_3", + name: "patch", + input: { + patchText: [ + "*** Begin Patch", + "*** Update File: src/parser.rs", + "@@", + " fn next(tokens: &[Token], index: usize) -> Option<&Token> {", + "- if index + 1 < tokens.len() {", + "+ if index < tokens.len() {", + " return tokens.get(index);", + "*** End Patch", + ].join("\n"), + }, + }, + ], + finish: "tool-calls", + }, + { items: [{ type: "textDelta", text: "Fixed the bound." }] }, + ], + steps: [ + { until: "Simulated Model" }, + { type: "Fix the off-by-one in the parser" }, + { until: "in the parser" }, + { enter: true }, + { checkpoint: "open", until: "Fixed the bound.", masks: [duration] }, + ], +}) diff --git a/packages/cli-rs/parity/scenarios/E.7b/blocks.app.ts b/packages/cli-rs/parity/scenarios/E.7b/blocks.app.ts new file mode 100644 index 000000000000..ebddb6c13d14 --- /dev/null +++ b/packages/cli-rs/parity/scenarios/E.7b/blocks.app.ts @@ -0,0 +1,118 @@ +// The block tool rows (V05b, V23): a todo list, answered questions, an apply_patch with an updated and a deleted +// file, one with only applied resources, one still patching and one that failed, and an execute run that failed +// with its error output, each call in its own row (`session.grouping: none`). +import { defineApp, session } from "../../lib/app" + +const directory = "/tmp/opencode/packages/tui" +const patch = [ + "Index: src/lexer.rs", + "===================================================================", + "--- src/lexer.rs", + "+++ src/lexer.rs", + "@@ -1,3 +1,3 @@", + " fn peek(&self) -> Option<char> {", + "- self.chars.get(self.pos + 1)", + "+ self.chars.get(self.pos)", + " }", + "", +].join("\n") + +const tool = (id: string, name: string, state: Record<string, unknown>) => ({ + type: "tool", + id, + name, + state, + time: { created: 1600, completed: 1700 }, +}) + +const messages = [ + { id: "msg_1", type: "user", text: "Fix the lexer and track it", time: { created: 1000 } }, + { + id: "msg_2", + type: "assistant", + agent: "build", + model: { providerID: "provider", id: "model" }, + content: [ + tool("call_1", "todowrite", { + status: "completed", + input: { + todos: [ + { content: "Read the lexer", status: "completed" }, + { content: "Fix peek", status: "in_progress" }, + { content: "Rewrite the parser", status: "cancelled" }, + { content: "Run the tests", status: "pending" }, + ], + }, + content: [{ type: "text", text: "4 todos" }], + metadata: {}, + }), + tool("call_2", "question", { + status: "completed", + input: { questions: [{ question: "Keep the old API?" }, { question: "Add a test?" }] }, + content: [{ type: "text", text: "answered" }], + metadata: { answers: [["Yes", "for now"], []] }, + }), + tool("call_3", "apply_patch", { + status: "completed", + input: { patchText: "*** Begin Patch" }, + content: [{ type: "text", text: "Applied" }], + metadata: { + files: [ + { + file: "src/lexer.rs", + filePath: `${directory}/src/lexer.rs`, + type: "update", + patch, + additions: 1, + deletions: 1, + }, + { + file: "src/old.rs", + filePath: `${directory}/src/old.rs`, + type: "delete", + patch: "", + additions: 0, + deletions: 12, + }, + ], + }, + }), + tool("call_4", "apply_patch", { + status: "completed", + input: { patchText: "*** Begin Patch" }, + content: [{ type: "text", text: "Applied" }], + metadata: { applied: [{ type: "add", resource: "docs/lexer.md" }] }, + }), + tool("call_5", "apply_patch", { + status: "running", + input: { patchText: "*** Begin Patch\n*** Add File: src/token.rs\n+pub struct Token;" }, + metadata: {}, + }), + tool("call_6", "apply_patch", { + status: "error", + input: { patchText: "*** Update File: src/a.rs\n*** Update File: src/b.rs" }, + error: { type: "unknown", message: "context mismatch in src/a.rs" }, + }), + tool("call_7", "execute", { + status: "completed", + input: { code: "throw new Error('boom')" }, + content: [{ type: "text", text: "Error: boom\n at main (code.ts:1:7)" }], + metadata: { error: true, toolCalls: [] }, + }), + ], + finish: "tool-calls", + time: { created: 1500, completed: 1800 }, + }, +] + +export default defineApp({ + height: 70, + config: { session: { grouping: "none", verbosity: "medium" } }, + args: { sessionID: "ses_blocks" }, + routes: [ + { path: "/api/session/ses_blocks", json: { data: session("ses_blocks", "Fix the lexer", { updated: 2 }) } }, + { path: "/api/session/ses_blocks/message", json: { data: messages.toReversed(), cursor: {} } }, + { path: "/api/session/ses_blocks/inbox", json: { data: [] } }, + ], + steps: [{ checkpoint: "open", until: "at main" }], +}) diff --git a/packages/cli-rs/parity/scenarios/E.7b/blocks.sim.ts b/packages/cli-rs/parity/scenarios/E.7b/blocks.sim.ts new file mode 100644 index 000000000000..81ed90bb6ef8 --- /dev/null +++ b/packages/cli-rs/parity/scenarios/E.7b/blocks.sim.ts @@ -0,0 +1,53 @@ +// P-TUI version of `E.7b/blocks.app.ts`: block tool rows (V05b, V23) from the real tool runtime: a `patch` that +// updates one file and deletes another, one that adds a file, one that fails on a context mismatch, an `execute` +// run that throws, and a glob and a grep, each call in its own row (`session.grouping: none`). The server offers no +// `todowrite`, and a `question` needs its own dock, so neither is here. +import { defineSim } from "../../sim/scenario" + +const duration = { line: "· \\d.*", reason: "the turn duration depends on timing, also in length; the row ends there" } +const patch = (index: number, id: string, lines: string[]) => ({ + type: "toolCall" as const, + index, + id, + name: "patch", + input: { patchText: ["*** Begin Patch", ...lines, "*** End Patch"].join("\n") }, +}) + +export default defineSim({ + height: 60, + config: { session: { grouping: "none", verbosity: "medium" } }, + files: { + "src/lexer.rs": "fn peek(&self) -> Option<char> {\n self.chars.get(self.pos + 1)\n}\n", + "src/old.rs": "pub fn old() {}\n", + "src/a.rs": "fn a() {}\n", + }, + model: [ + { + items: [ + patch(0, "call_1", [ + "*** Update File: src/lexer.rs", + "@@", + " fn peek(&self) -> Option<char> {", + "- self.chars.get(self.pos + 1)", + "+ self.chars.get(self.pos)", + " }", + "*** Delete File: src/old.rs", + ]), + patch(1, "call_2", ["*** Add File: docs/lexer.md", "+# Lexer"]), + patch(2, "call_3", ["*** Update File: src/a.rs", "@@", "-fn missing() {}", "+fn found() {}"]), + { type: "toolCall", index: 3, id: "call_4", name: "execute", input: { code: "throw new Error('boom')" } }, + { type: "toolCall", index: 4, id: "call_5", name: "glob", input: { pattern: "src/*.rs" } }, + { type: "toolCall", index: 5, id: "call_6", name: "grep", input: { pattern: "fn peek" } }, + ], + finish: "tool-calls", + }, + { items: [{ type: "textDelta", text: "Fixed the lexer." }] }, + ], + steps: [ + { until: "Simulated Model" }, + { type: "Fix the lexer and track it" }, + { until: "track it" }, + { enter: true }, + { checkpoint: "open", until: "Fixed the lexer.", masks: [duration] }, + ], +}) diff --git a/packages/cli-rs/parity/scenarios/E.7b/inline.app.ts b/packages/cli-rs/parity/scenarios/E.7b/inline.app.ts new file mode 100644 index 000000000000..dafa2fec713e --- /dev/null +++ b/packages/cli-rs/parity/scenarios/E.7b/inline.app.ts @@ -0,0 +1,97 @@ +// The one-line tool rows (V05b, V23): webfetch, websearch, skill, question, todowrite, subagent, and execute, +// each running and finished, in their own rows (`session.grouping: none`). Then a click on the finished execute +// row opens its dialog (DLG36). +import { defineApp, session } from "../../lib/app" + +const tool = (id: string, name: string, state: Record<string, unknown>) => ({ + type: "tool", + id, + name, + state, + time: { created: 1600, ran: 1600, completed: 2850 }, +}) + +const running = (input: Record<string, unknown>, metadata: Record<string, unknown> = {}) => ({ + status: "running", + input, + metadata, +}) + +const completed = (input: Record<string, unknown>, text: string, metadata: Record<string, unknown> = {}) => ({ + status: "completed", + input, + content: [{ type: "text", text }], + metadata, +}) + +const messages = [ + { id: "msg_1", type: "user", text: "Look around before the change", time: { created: 1000 } }, + { + id: "msg_2", + type: "assistant", + agent: "build", + model: { providerID: "provider", id: "model" }, + content: [ + tool("call_1", "webfetch", running({ url: "https://example.com/spec" })), + tool("call_2", "webfetch", completed({ url: "https://opencode.ai/docs" }, "# Docs")), + tool("call_3", "websearch", running({})), + tool("call_4", "websearch", completed({ query: "opentui rust" }, "results", { provider: "exa" })), + tool("call_5", "skill", running({})), + tool("call_6", "skill", completed({ id: "writing" }, "loaded", { name: "writing-doc" })), + tool("call_7", "question", running({ questions: [{ question: "Which design?" }] })), + tool("call_8", "todowrite", running({ todos: [] })), + tool("call_9", "todowrite", completed({ todos: [] }, "")), + tool( + "call_10", + "task", + running( + { description: "Survey the views", subagent_type: "explore", model: "provider/unknown#high" }, + { sessionID: "ses_child" }, + ), + ), + tool( + "call_11", + "task", + completed({ description: "Check the docs", agent: "general" }, "done", { + sessionID: "ses_child", + status: "running", + }), + ), + tool( + "call_12", + "execute", + running( + { code: "await tools.read()" }, + { + toolCalls: [ + { tool: "read", status: "completed", input: { path: "src/a.rs" } }, + { tool: "grep", status: "error", input: { pattern: "TODO" } }, + { tool: "glob", status: "running" }, + ], + }, + ), + ), + tool( + "call_13", + "execute", + completed({ code: "const files = await tools.glob()\nreturn files" }, '{"files":2}\n\nLogs:\nscanned', { + toolCalls: [], + }), + ), + ], + finish: "tool-calls", + time: { created: 1500, completed: 3000 }, + }, +] + +export default defineApp({ + height: 40, + config: { session: { grouping: "none", verbosity: "medium" } }, + args: { sessionID: "ses_tools" }, + routes: [ + { path: "/api/session/ses_tools", json: { data: session("ses_tools", "Look around", { updated: 2 }) } }, + { path: "/api/session/ses_tools/message", json: { data: messages.toReversed(), cursor: {} } }, + { path: "/api/session/ses_tools/inbox", json: { data: [] } }, + ], + steps: [{ checkpoint: "open", until: "glob" }, { click: [6, 30] }, { checkpoint: "dialog", until: "Completed" }], +}) diff --git a/packages/cli-rs/parity/scenarios/E.7b/notices.app.ts b/packages/cli-rs/parity/scenarios/E.7b/notices.app.ts new file mode 100644 index 000000000000..5eba364905f8 --- /dev/null +++ b/packages/cli-rs/parity/scenarios/E.7b/notices.app.ts @@ -0,0 +1,36 @@ +// The completion notices of background work: a shell, a subagent, and Code Mode scripts (#64741) drawn like +// background shells, "↳ Script finished · <job id>", with "failed" and "cancelled" in their feedback colors. +import { defineApp, session } from "../../lib/app" + +const notice = (id: string, created: number, description: string, metadata: Record<string, unknown>) => ({ + id, + type: "synthetic", + text: "", + description, + metadata, + time: { created }, +}) + +const messages = [ + { id: "msg_1", type: "user", text: "Run the checks in the background", time: { created: 1000 } }, + notice("msg_2", 1100, "bun test\n--watch", { source: "shell", state: "completed" }), + notice("msg_3", 1200, "Survey the views", { + source: "subagent", + state: "completed", + agent: "explore", + childID: "ses_child", + }), + notice("msg_4", 1300, "Script", { source: "codemode", jobID: "job_done", state: "completed" }), + notice("msg_5", 1400, "Script", { source: "codemode", jobID: "job_failed", state: "error" }), + notice("msg_6", 1500, "Script", { source: "codemode", jobID: "job_stopped", state: "cancelled" }), +] + +export default defineApp({ + args: { sessionID: "ses_notices" }, + routes: [ + { path: "/api/session/ses_notices", json: { data: session("ses_notices", "Background work", { updated: 2 }) } }, + { path: "/api/session/ses_notices/message", json: { data: messages.toReversed(), cursor: {} } }, + { path: "/api/session/ses_notices/inbox", json: { data: [] } }, + ], + steps: [{ checkpoint: "open", until: "job_stopped" }], +}) diff --git a/packages/cli-rs/parity/scenarios/E.8/navigate.sim.ts b/packages/cli-rs/parity/scenarios/E.8/navigate.sim.ts new file mode 100644 index 000000000000..a7232ae8ce15 --- /dev/null +++ b/packages/cli-rs/parity/scenarios/E.8/navigate.sim.ts @@ -0,0 +1,43 @@ +// Scrolling and navigation over eight turns the server ran (V06). Page up +// shows "Jump to latest", session.first goes to the first message, session.last back to the bottom, and +// session.messages_last_user aligns the last question with the top. Each reply groups its two reads under +// "Explored". +import { defineSim } from "../../sim/scenario" + +const turns = Array.from({ length: 8 }, (_, index) => index + 1) +const read = (index: number, path: string) => ({ + type: "toolCall" as const, + index, + id: `call_${index}`, + name: "read", + input: { path }, +}) +const duration = { line: "· \\d.*", reason: "the turn duration depends on timing, also in length; the row ends there" } + +export default defineSim({ + files: { "src/a.rs": "fn a() {}\n", "src/b.rs": "fn b() {}\n" }, + sessions: [{ title: "Navigate", prompts: turns.map((turn) => `Question ${turn}`) }], + args: ["--session", "$session:0"], + model: turns.flatMap((turn) => [ + { items: [read(0, "src/a.rs"), read(1, "src/b.rs")], finish: "tool-calls" as const }, + { + items: [ + { type: "textDelta" as const, text: `Answer ${turn} one.\n\nAnswer ${turn} two.\n\nAnswer ${turn} three.` }, + ], + }, + ]), + steps: [ + // The TS footer shows "Finishing startup…" until startup ends, then the working directory. + { until: "/work " }, + { checkpoint: "open", until: "Answer 8 three.", masks: [duration] }, + // The drive protocol names no Page Up key, so the legacy sequence goes through as is on both sides. + { press: "\x1b[5~" }, + { checkpoint: "page-up", until: "Jump to latest", masks: [duration] }, + { press: "g", modifiers: { ctrl: true } }, + { checkpoint: "first", until: "Question 1", masks: [duration] }, + { press: "end" }, + { checkpoint: "last", until: "Answer 8 three.", masks: [duration] }, + { press: "end", modifiers: { meta: true } }, + { checkpoint: "last-user", until: "Jump to latest", masks: [duration] }, + ], +}) diff --git a/packages/cli-rs/parity/scenarios/E.8/tab-anchor.app.ts b/packages/cli-rs/parity/scenarios/E.8/tab-anchor.app.ts new file mode 100644 index 000000000000..faa2ad2ec398 --- /dev/null +++ b/packages/cli-rs/parity/scenarios/E.8/tab-anchor.app.ts @@ -0,0 +1,47 @@ +// A tab keeps its scroll anchor (V15, `sessionTabs.setScrollAnchor`): a page up in the first session, a second +// session opened as a tab, and `<leader>1` back to the first, which shows the rows the reader left. +import { assistant, defineApp, session, user } from "../../lib/app" + +const here = { directory: "/tmp/opencode/packages/tui" } +const turns = Array.from({ length: 8 }, (_, index) => index + 1) + +const messages = turns.flatMap((turn) => { + const created = turn * 10_000 + return [ + { id: `msg_${turn}a`, type: "user", text: `Question ${turn}`, time: { created } }, + { + id: `msg_${turn}b`, + type: "assistant", + agent: "build", + model: { providerID: "provider", id: "model" }, + content: [{ type: "text", text: `Answer ${turn} one.\n\nAnswer ${turn} two.\n\nAnswer ${turn} three.` }], + finish: "stop", + time: { created: created + 1000, completed: created + 3000 }, + }, + ] +}) + +export default defineApp({ + args: { sessionID: "ses_n" }, + routes: [ + { path: "/api/session/ses_n", json: { data: session("ses_n", "Navigate", { updated: 2 }) } }, + { path: "/api/session/ses_n/message", json: { data: messages.toReversed(), cursor: {} } }, + { path: "/api/session/ses_n/inbox", json: { data: [] } }, + { path: "/api/session/ses_b", json: { data: session("ses_b", "Write the docs", { updated: 2 }) } }, + { + path: "/api/session/ses_b/message", + json: { data: [assistant("msg_2", "The docs are written."), user("msg_1", "Why?")], cursor: {} }, + }, + { path: "/api/session/ses_b/inbox", json: { data: [] } }, + { method: "POST", path: "/api/session/:sessionID/view" }, + ], + steps: [ + { checkpoint: "open", until: "Answer 8 three." }, + { keys: ["pageup"] }, + { checkpoint: "away", until: "Jump to latest" }, + { event: { id: "evt_1", created: 3, type: "tui.session.select", location: here, data: { sessionID: "ses_b" } } }, + { checkpoint: "other", until: "The docs are written." }, + { keys: ["ctrl+x", "1"] }, + { checkpoint: "back", until: "Jump to latest" }, + ], +}) diff --git a/packages/cli-rs/parity/scenarios/F16/ts-plugin-loads.pty.ts b/packages/cli-rs/parity/scenarios/F16/ts-plugin-loads.pty.ts new file mode 100644 index 000000000000..93863f2068bb --- /dev/null +++ b/packages/cli-rs/parity/scenarios/F16/ts-plugin-loads.pty.ts @@ -0,0 +1,41 @@ +// O-166: the JS host is on by default. A TypeScript TUI plugin in the global `plugins` directory, with no variable set, +// loads in both clients: TS runs it in its own process, opencode-native on the JS host (Bun on the path), and +// `/plugins` lists `parity.energy` active, with no notice (`F16-typescript-plugins-skipped`). +import { mkdir, writeFile } from "node:fs/promises" +import path from "node:path" +import { definePty } from "../../pty/run" + +const plugin = `export default { + id: "parity.energy", + setup(context) { + context.keymap.layer(() => ({ + mode: "global", + commands: [{ id: "energy.show", title: "Energy: Show emissions", palette: true, run() {} }], + })) + }, +} +` + +export default definePty({ + args: [], + cols: 120, + rows: 30, + server: { fallback: "tui", routes: [] }, + setup: async (root) => { + const config = path.join(root, "home/.config/opencode") + await mkdir(path.join(config, "plugins/energy"), { recursive: true }) + await writeFile(path.join(config, "plugins/energy/tui.ts"), plugin) + const cli = { experimental: { "new-designs": true }, animations: false, debug: { devtools: false } } + await writeFile(path.join(config, "cli.json"), JSON.stringify(cli)) + }, + steps: [ + // TS shows "⋯ Finishing startup…" while it loads the plugin, longer under load: the home is compared after it. + { until: { screen: /^(?![\s\S]*Finishing startup)[\s\S]*█▀▀█/ }, settle: 1_000, timeout: 30_000 }, + { checkpoint: "home" }, + { keys: "/plugins", until: { screen: "/plugins" }, settle: 300 }, + { keys: "\r", until: { screen: "parity.energy" }, settle: 1_000, timeout: 15_000 }, + { checkpoint: "plugins" }, + ], + masks: [{ pattern: /Ask anything… .*$/, reason: "the placeholder example: random in TS and Rust" }], + osc: [], +}) diff --git a/packages/cli-rs/parity/scenarios/F16/ts-plugins-skipped.pty.ts b/packages/cli-rs/parity/scenarios/F16/ts-plugins-skipped.pty.ts new file mode 100644 index 000000000000..6f0801fb125c --- /dev/null +++ b/packages/cli-rs/parity/scenarios/F16/ts-plugins-skipped.pty.ts @@ -0,0 +1,68 @@ +// FT-10: a server plugin with a TUI part. TS loads that part from the server's list (`serverTuiPlugins`, here the +// directory `energy` beside `cli.json`, whose command shows in `/plugins` as an active TUI plugin). The JS host is on by +// default (O-166); here `OPENCODE_PLUGIN_JS=0` turns it off, so opencode-native does not load TypeScript TUI plugins, +// says so once in a notice with how to turn it back on, and lists the part as skipped (`F16-typescript-plugins-skipped`). +// `ts-plugin-loads` is the default. +import { mkdir, writeFile } from "node:fs/promises" +import path from "node:path" +import { definePty } from "../../pty/run" + +const directory = "/tmp/opencode/packages/tui" +const location = { directory, project: { id: "proj_test", directory, canonical: directory } } + +const plugin = `export default { + id: "parity.energy", + setup(context) { + context.keymap.layer(() => ({ + mode: "global", + commands: [{ id: "energy.show", title: "Energy: Show emissions", palette: true, run() {} }], + })) + }, +} +` + +export default definePty({ + args: [], + env: { OPENCODE_PLUGIN_JS: "0" }, + cols: 120, + rows: 30, + server: { + fallback: "tui", + routes: [ + { + path: "/api/plugin", + json: { + location, + data: [ + { + id: "energy", + source: { type: "local", path: "./energy" }, + features: { server: true, tui: true }, + state: { status: "active" }, + }, + ], + }, + }, + ], + }, + setup: async (root) => { + const config = path.join(root, "home/.config/opencode") + await mkdir(path.join(config, "energy"), { recursive: true }) + await writeFile(path.join(config, "energy/tui.ts"), plugin) + const cli = { experimental: { "new-designs": true }, animations: false, debug: { devtools: false } } + await writeFile(path.join(config, "cli.json"), JSON.stringify(cli)) + }, + steps: [ + // TS shows "⋯ Finishing startup…" in its footer while it loads the part, longer under load: an extra line the + // checkpoints are compared after (f16-flake), as in `ts-plugin-loads`. + { until: { screen: /^(?![\s\S]*Finishing startup)[\s\S]*█▀▀█/ }, settle: 1_000, timeout: 30_000 }, + // The notice, over the home's top rows. + { checkpoint: "home", deviation: { file: "F16-typescript-plugins-skipped", lines: 8 } }, + { keys: "/plugins", until: { screen: "/plugins" }, settle: 300 }, + { keys: "\r", until: { screen: /^(?![\s\S]*Finishing startup)[\s\S]*Server/ }, settle: 1_000, timeout: 10_000 }, + // The notice, and the TUI row: `parity.energy` active in TS, `./energy` skipped with its error to view in Rust. + { checkpoint: "plugins", deviation: { file: "F16-typescript-plugins-skipped", lines: 10 } }, + ], + masks: [{ pattern: /Ask anything… .*$/, reason: "the placeholder example: random in TS and Rust" }], + osc: [], +}) diff --git a/packages/cli-rs/parity/scenarios/H.2/home-sessions.app.ts b/packages/cli-rs/parity/scenarios/H.2/home-sessions.app.ts new file mode 100644 index 000000000000..0c2d820eeae9 --- /dev/null +++ b/packages/cli-rs/parity/scenarios/H.2/home-sessions.app.ts @@ -0,0 +1,40 @@ +// Home with two sessions, the session list, and opening the newest session from it (T01, DLG14). +import { assistant, defineApp, HOME_PLACEHOLDER, session, user } from "../../lib/app" + +export default defineApp({ + routes: [ + { + path: "/api/session", + json: { + data: [session("ses_b", "Fix the parser", { updated: 2 }), session("ses_a", "Write docs", { updated: 1 })], + cursor: {}, + }, + }, + { path: "/api/session/ses_b", json: { data: session("ses_b", "Fix the parser", { updated: 2 }) } }, + { + path: "/api/session/ses_b/message", + json: { + data: [assistant("msg_2", "The parser drops the last token."), user("msg_1", "Why does the parser fail?")], + cursor: {}, + }, + }, + { path: "/api/session/ses_b/inbox", json: { data: [] } }, + ], + steps: [ + { + checkpoint: "home", + until: "Ask anything", + masks: [HOME_PLACEHOLDER], + }, + { keys: ["ctrl+x", "l"] }, + { + checkpoint: "list", + until: "Write docs", + }, + { keys: ["enter"] }, + { + checkpoint: "session", + until: "The parser drops the last token.", + }, + ], +}) diff --git a/packages/cli-rs/parity/scenarios/H.2/session-open.app.ts b/packages/cli-rs/parity/scenarios/H.2/session-open.app.ts new file mode 100644 index 000000000000..86f52178c307 --- /dev/null +++ b/packages/cli-rs/parity/scenarios/H.2/session-open.app.ts @@ -0,0 +1,36 @@ +// `-s ses_b` opens the session, and a streamed text delta extends the assistant reply (T01, V01, V03). +import { assistant, defineApp, session, user } from "../../lib/app" + +export default defineApp({ + args: { sessionID: "ses_b" }, + routes: [ + { path: "/api/session/ses_b", json: { data: session("ses_b", "Fix the parser", { updated: 2 }) } }, + { + path: "/api/session/ses_b/message", + json: { + data: [assistant("msg_2", "The parser drops the last token."), user("msg_1", "Why does the parser fail?")], + cursor: {}, + }, + }, + { path: "/api/session/ses_b/inbox", json: { data: [] } }, + ], + steps: [ + { + checkpoint: "open", + until: "The parser drops the last token.", + }, + { + event: { + id: "evt_1", + created: 3, + type: "session.text.delta", + durable: { aggregateID: "ses_b", seq: 1, version: 1 }, + data: { sessionID: "ses_b", assistantMessageID: "msg_2", ordinal: 0, delta: " Fixed." }, + }, + }, + { + checkpoint: "streamed", + until: "Fixed.", + }, + ], +}) diff --git a/packages/cli-rs/parity/scenarios/H.2/session-open.sim.ts b/packages/cli-rs/parity/scenarios/H.2/session-open.sim.ts new file mode 100644 index 000000000000..a8048e15dea0 --- /dev/null +++ b/packages/cli-rs/parity/scenarios/H.2/session-open.sim.ts @@ -0,0 +1,33 @@ +// P-TUI version of `H.2/session-open.app.ts`: `-s <id>` opens a session whose first turn ran on the server, then +// a second prompt streams its reply through the real event stream: the first part while the step runs, the rest +// after it. +import { defineSim } from "../../sim/scenario" + +const duration = { line: "· \\d.*", reason: "the turn duration depends on timing, also in length; the row ends there" } + +export default defineSim({ + sessions: [{ title: "Fix the parser", prompts: ["Why does the parser fail?"] }], + args: ["--session", "$session:0"], + model: [ + { items: [{ type: "textDelta", text: "The parser drops the last token." }] }, + { + items: [ + { type: "textDelta", text: "Moving the bound." }, + { hold: "stream" }, + { type: "textDelta", text: " Fixed." }, + ], + }, + ], + steps: [ + // The TS footer shows "Finishing startup…" until startup ends, then the working directory. + { until: "/work " }, + { checkpoint: "open", until: "The parser drops the last token.", masks: [duration] }, + { until: "Simulated Model" }, + { type: "Fix it" }, + { until: "Fix it" }, + { enter: true }, + { checkpoint: "streaming", until: "Moving the bound.", masks: [duration] }, + { release: "stream" }, + { checkpoint: "streamed", until: "Fixed.", masks: [duration] }, + ], +}) diff --git a/packages/cli-rs/parity/scenarios/H.3/title.pty.ts b/packages/cli-rs/parity/scenarios/H.3/title.pty.ts new file mode 100644 index 000000000000..e5e01ca21e8b --- /dev/null +++ b/packages/cli-rs/parity/scenarios/H.3/title.pty.ts @@ -0,0 +1,19 @@ +// The TUI on home against an empty server sets the title to "OpenCode" (`packages/tui/src/app.tsx:644`) +// and resets it when it exits. The server answers the TUI's startup reads with the TUI test defaults. +// Both sides run (E.1 sets the title in Rust). Only the OSC log is compared: the home's cells are P-APP's +// (`E.1/home`), and here the TS screen adds the DevTools bar of the local channel. +import { definePty } from "../../pty/run" + +export default definePty({ + args: [], + cols: 100, + rows: 30, + server: { fallback: "tui" }, + steps: [ + // The title can come before the first paint, so wait for the logo as well. + { until: { osc: "OpenCode", screen: "█▀▀█" }, settle: 500, timeout: 30_000 }, + // Ctrl+C on the empty prompt exits; a second press could land once the terminal is restored, as a SIGINT. + { keys: "\x03", until: { exit: true } }, + ], + exits: true, +}) diff --git a/packages/cli-rs/parity/scenarios/H.3/version.cli.ts b/packages/cli-rs/parity/scenarios/H.3/version.cli.ts new file mode 100644 index 000000000000..a2495b220183 --- /dev/null +++ b/packages/cli-rs/parity/scenarios/H.3/version.cli.ts @@ -0,0 +1,5 @@ +// `--version` prints `<name> v<version>` and needs no server. Both sides run from source, so both +// report `local`. +import { defineCli } from "../../cli/run" + +export default defineCli({ args: ["--version"] }) diff --git a/packages/cli-rs/parity/scenarios/H.3/version.pty.ts b/packages/cli-rs/parity/scenarios/H.3/version.pty.ts new file mode 100644 index 000000000000..2a84f2b841de --- /dev/null +++ b/packages/cli-rs/parity/scenarios/H.3/version.pty.ts @@ -0,0 +1,10 @@ +// `--version` under a terminal: the same line on screen, no OSC sequences, exit 0. +import { definePty } from "../../pty/run" + +export default definePty({ + args: ["--version"], + cols: 40, + rows: 4, + steps: [{ until: { screen: "opencode v" }, checkpoint: "version" }], + exits: true, +}) diff --git a/packages/cli-rs/parity/scenarios/H.4/drive.ts b/packages/cli-rs/parity/scenarios/H.4/drive.ts new file mode 100644 index 000000000000..7d5759cee136 --- /dev/null +++ b/packages/cli-rs/parity/scenarios/H.4/drive.ts @@ -0,0 +1,238 @@ +// H.4 proof: sends the same simulation UI requests to the TS and the Rust `OPENCODE_DRIVE` endpoints, checks +// every response against the protocol schema (`packages/protocol/src/simulation.ts`), and compares the captures. +// +// bun run parity/scenarios/H.4/drive.ts +// +// One TS server runs in simulation mode (`OPENCODE_SIMULATE=1`) in a fresh sandbox home, never the user's service. +// Each client runs headless against it with its own drive manifest. Captures go to `parity/out/H.4/` (ignored by git). +// Build the Rust binary first (`cargo build -p opencode-cli --bin opencode-native`) or set OPENCODE_RS_BIN. + +import { mkdir, writeFile } from "node:fs/promises" +import path from "node:path" +import { Schema } from "effect" +import { Frontend, Handshake } from "@opencode/protocol/simulation" +import { buildRust, command, parityRoot, sandbox, type Side } from "../../cli/client" +import { freePort } from "../../lib/port" +import { connectDrive } from "../../sim/drive" + +const viewport = { cols: 100, rows: 30 } +const password = "drive-parity" + +// Each step: the request, the schema its result must decode with (none: an error is expected), the capture name to +// keep, and whether to repeat a `ui.matches` until it is true. +type Step = { + method: string + params?: unknown + result?: Schema.ConstraintDecoder<unknown> + capture?: string + until?: boolean +} +const steps: Step[] = [ + { + method: "simulation.handshake", + params: { + client: { name: "drive-parity", version: "1" }, + expectedRole: "ui", + offeredVersions: [1], + requiredCapabilities: ["ui.type", "ui.capture"], + optionalCapabilities: [], + }, + result: Handshake.Response, + }, + { method: "ui.matches", params: { text: "ctrl+p commands" }, result: Frontend.Matches, until: true }, + { method: "ui.capture", result: Frontend.CapturedFrame, capture: "home" }, + { method: "ui.type", params: { text: "hello drive" }, result: Frontend.State }, + { method: "ui.matches", params: { text: "hello drive" }, result: Frontend.Matches }, + { method: "ui.capture", result: Frontend.CapturedFrame, capture: "typed" }, + // The simulated server has no provider, so both clients answer a submit with the integration dialog. + { method: "ui.enter", result: Frontend.State }, + { method: "ui.matches", params: { text: "Popular" }, result: Frontend.Matches, until: true }, + { method: "ui.capture", result: Frontend.CapturedFrame, capture: "submitted" }, + { method: "ui.press", params: { key: "escape" }, result: Frontend.State }, + { method: "ui.press", params: { key: "backspace" }, result: Frontend.State }, + { method: "ui.press", params: { key: "a", modifiers: { ctrl: true } }, result: Frontend.State }, + { method: "ui.arrow", params: { direction: "right" }, result: Frontend.State }, + { method: "ui.mouse", params: { action: "move", x: 10, y: 5 }, result: Frontend.State }, + { method: "ui.mouse", params: { action: "scroll", x: 10, y: 5, direction: "down" }, result: Frontend.State }, + { method: "ui.mouse", params: { action: "move", x: 100, y: 5 } }, + { method: "ui.resize", params: { cols: 90, rows: 28 }, result: Frontend.State }, + { method: "ui.capture", result: Frontend.CapturedFrame, capture: "edited-resized" }, + // TS lists its renderables; the Rust TUI has no renderable numbers and answers with an error (plan 7.3). + { method: "ui.state", result: Frontend.State }, +] + +const box = await sandbox({ OPENCODE_PASSWORD: password }) +await mkdir(path.join(box.env.XDG_CONFIG_HOME, "opencode"), { recursive: true }) +await writeFile( + path.join(box.env.XDG_CONFIG_HOME, "opencode", "cli.json"), + // The TS CLI from source is the `local` channel, which shows the DevTools bar by default. + JSON.stringify({ experimental: { "new-designs": true }, animations: false, debug: { devtools: false } }), +) +await buildRust(["rs"]) +const ports = Array.from({ length: 3 }, freePort) +const server = `http://127.0.0.1:${ports[0]}` +const serve = Bun.spawn(command("ts", ["serve", "--port", String(ports[0])]), { + cwd: box.cwd, + env: { ...box.env, OPENCODE_SIMULATE: "1" }, + stdout: "ignore", + stderr: Bun.file(path.join(box.root, "server.log")), +}) +const children: { kill(): void }[] = [serve] +process.on("exit", () => children.forEach((child) => child.kill())) + +const report: Record<string, unknown> = {} +try { + await waitForServer(server) + const results = {} as Record<Side, Awaited<ReturnType<typeof drive>>> + for (const [index, side] of (["ts", "rs"] as const).entries()) results[side] = await drive(side, ports[index + 1]) + const out = path.join(parityRoot, "out", "H.4") + await mkdir(out, { recursive: true }) + for (const side of ["ts", "rs"] as const) + for (const [name, frame] of Object.entries(results[side].captures)) + await writeFile(path.join(out, `${name}.${side}.txt`), text(frame) + "\n") + for (const name of Object.keys(results.ts.captures)) { + const ts = results.ts.captures[name] + const rs = results.rs.captures[name] + report[name] = compare(ts, rs) + } + report.responses = steps.map((step, index) => ({ + method: step.method, + ts: results.ts.outcomes[index], + rs: results.rs.outcomes[index], + })) + await writeFile(path.join(out, "report.json"), JSON.stringify(report, null, 2) + "\n") + console.log(JSON.stringify(report, null, 2)) +} finally { + children.forEach((child) => child.kill()) +} + +async function drive(side: Side, port: number) { + const registry = path.join(box.root, `drive-${side}`) + await mkdir(registry, { recursive: true }) + await writeFile( + path.join(registry, "parity.json"), + JSON.stringify({ + endpoints: { ui: `ws://127.0.0.1:${port}`, backend: `ws://127.0.0.1:${port + 1000}` }, + viewport, + }), + ) + const client = Bun.spawn(command(side, ["--server", server]), { + cwd: box.cwd, + env: { + ...box.env, + OPENCODE_DRIVE: "parity", + DRIVE_REGISTRY_DIR: registry, + OPENCODE_DRIVE_RENDERER: "headless", + TERM: "xterm-256color", + }, + stdin: "ignore", + stdout: Bun.file(path.join(box.root, `${side}.stdout`)), + stderr: Bun.file(path.join(box.root, `${side}.stderr`)), + }) + children.push(client) + await waitForLine(path.join(box.root, `${side}.stderr`), "opencode drive ui websocket:") + const drive = await connectDrive(`ws://127.0.0.1:${port}`, side) + const call = drive.call + const captures: Record<string, Frontend.CapturedFrame> = {} + const outcomes: unknown[] = [] + for (const step of steps) { + console.error(`${side} ${step.method} ${JSON.stringify(step.params ?? {})}`) + const deadline = Date.now() + 30_000 + let response = await call(step.method, step.params) + while (step.until && response.result !== true && Date.now() < deadline) { + await Bun.sleep(50) + response = await call(step.method, step.params) + } + if (response.error) { + outcomes.push({ error: response.error.message }) + continue + } + if (!step.result) throw new Error(`${side} ${step.method}: expected an error, got a result`) + const decoded = Schema.decodeUnknownSync(step.result)(response.result) + if (step.capture) captures[step.capture] = decoded as Frontend.CapturedFrame + outcomes.push(summary(step.method, decoded)) + } + drive.close() + client.kill() + await client.exited + return { captures, outcomes } +} + +// What the report keeps of a decoded result: TS states list hundreds of renderables, so only their count stays. +function summary(method: string, decoded: unknown) { + if (method === "simulation.handshake") return { capabilities: (decoded as Handshake.Response).capabilities } + if (method === "ui.capture") { + const frame = decoded as Frontend.CapturedFrame + return { cols: frame.cols, rows: frame.rows, cursor: frame.cursor } + } + if (method === "ui.matches") return decoded + const state = decoded as Frontend.State + return { editor: state.focused.editor, elements: state.elements.length } +} + +function text(frame: Frontend.CapturedFrame) { + return frame.lines + .map((line) => + line.spans + .map((span) => span.text) + .join("") + .trimEnd(), + ) + .join("\n") +} + +// Cells that differ in text, colors, or attributes, and the rows with a text difference. +function compare(ts: Frontend.CapturedFrame, rs: Frontend.CapturedFrame) { + const cells = (frame: Frontend.CapturedFrame) => + frame.lines.map((line) => + line.spans.flatMap((span) => { + const chars = [...span.text] + return Array.from({ length: span.width }, (_, index) => ({ + char: chars[index] ?? "", + style: JSON.stringify([span.fg, span.bg, span.attributes]), + })) + }), + ) + const a = cells(ts) + const b = cells(rs) + let textCells = 0 + const styles: { x: number; y: number; char: string; ts: string; rs?: string }[] = [] + a.forEach((row, y) => + row.forEach((cell, x) => { + const other = b[y]?.[x] + if (other?.char !== cell.char) textCells++ + if (other?.style !== cell.style) styles.push({ x, y, char: cell.char, ts: cell.style, rs: other?.style }) + }), + ) + const styleCells = styles.length + const tsRows = text(ts).split("\n") + const rsRows = text(rs).split("\n") + const rows = tsRows.flatMap((row, y) => (row === rsRows[y] ? [] : [{ y, ts: row, rs: rsRows[y] }])) + // The first few style differences, enough to tell a cursor cell from a theme difference. + return { size: [ts.cols, ts.rows, rs.cols, rs.rows], textCells, styleCells, rows, styles: styles.slice(0, 5) } +} + +async function waitForServer(url: string) { + const deadline = Date.now() + 60_000 + while (Date.now() < deadline) { + const ok = await fetch(`${url}/api/health`).then( + () => true, + () => false, + ) + if (ok) return + await Bun.sleep(200) + } + throw new Error("the simulated server did not start") +} + +async function waitForLine(file: string, prefix: string) { + const deadline = Date.now() + 60_000 + while (Date.now() < deadline) { + const text = await Bun.file(file) + .text() + .catch(() => "") + if (text.includes(prefix)) return + await Bun.sleep(100) + } + throw new Error(`no ${prefix} line in ${file}`) +} diff --git a/packages/cli-rs/parity/scenarios/H.5/permission-reply.sim.ts b/packages/cli-rs/parity/scenarios/H.5/permission-reply.sim.ts new file mode 100644 index 000000000000..1e72a4ba7f06 --- /dev/null +++ b/packages/cli-rs/parity/scenarios/H.5/permission-reply.sim.ts @@ -0,0 +1,50 @@ +// MS1 end to end: a new session from home, one prompt, a streamed reply with one shell call that asks for +// permission, the permission allowed with a click, and the final reply. +import { HOME_PLACEHOLDER } from "../../lib/app" +import { defineSim } from "../../sim/scenario" + +export default defineSim({ + permissions: [{ action: "shell", resource: "*", effect: "ask" }], + model: [ + { + items: [ + { type: "textDelta", text: "I will print the greeting first." }, + { + type: "toolCall", + index: 0, + id: "call_1", + name: "shell", + input: { command: "echo hello", description: "Print a greeting" }, + }, + ], + finish: "tool-calls", + }, + { items: [{ type: "textDelta", text: "The command printed hello." }] }, + ], + steps: [ + // The model line shows once the catalogs have loaded. The TS TUI drops an Enter before that; Rust holds it + // (P02-early-enter), so the wait keeps both sides comparable. + { + checkpoint: "home", + until: "Simulated Model", + masks: [HOME_PLACEHOLDER], + }, + { type: "Say hello" }, + { until: "Say hello" }, + { enter: true }, + { checkpoint: "permission", until: "Permission required" }, + // "Allow once" in the permission dock. + { mouse: { action: "down", x: 6, y: 27, button: "left" } }, + { mouse: { action: "up", x: 6, y: 27, button: "left" } }, + { + checkpoint: "replied", + until: "The command printed hello.", + masks: [ + { + line: "· \\d.*", + reason: "the turn duration depends on timing, also in length (980ms, 1.0s); the row ends there", + }, + ], + }, + ], +}) diff --git a/packages/cli-rs/parity/scenarios/M.1/fence-wrap.pty.ts b/packages/cli-rs/parity/scenarios/M.1/fence-wrap.pty.ts new file mode 100644 index 000000000000..d7f246a7ff06 --- /dev/null +++ b/packages/cli-rs/parity/scenarios/M.1/fence-wrap.pty.ts @@ -0,0 +1,38 @@ +// Mini replays an answer with a fence that holds one shell line wider than the terminal, at the top level and in a +// list item. Both clients wrap the line by word inside the fence (Core's default `wrapMode: "word"`, OpenTUI #2089 +// in Rust). +import { definePty } from "../../pty/run" +import { assistant, config, server, statusMask, user } from "./fixture" + +const command = + "OPENCODE_STORY_MEDIA=/home/user/src/opencode/packages/tui/fixtures/story-media.json OPENCODE_STORY=transcript-fences bun run dev:live" +const text = `Run the story:\n\n\`\`\`sh\n${command}\n\`\`\`\n\n1. Then in a list:\n\n \`\`\`sh\n ${command}\n \`\`\`\n\nDone.` + +const rest = String.raw`\n\s*\S*json OPENCODE_STORY=transcript-fences bun run dev:live\s*\n` +const wrapped = new RegExp(String.raw`${rest}[\s\S]*${rest}[\s\S]*Done\.`) + +// The reply is cut where Core 0.8.4 cuts it; TS loses the blank row there, before `Done.`, and Rust keeps it. + +const messages = [user("msg_u1", "show the story command", 10), assistant("msg_a1", [{ type: "text", text }], 11)] + +export default definePty({ + args: ["mini", "-s", "ses_mini"], + cols: 80, + rows: 30, + server: server({ messages }), + setup: (root) => config(root), + steps: [ + // Each fence's second row starts with the wrapped rest of the line, so a cut-off line times out. + { + until: { screen: wrapped }, + settle: 800, + timeout: 30_000, + checkpoint: "replayed", + scrollback: 30, + }, + { keys: "\x03", settle: 200 }, + { keys: "\x03", settle: 400, checkpoint: "exited" }, + ], + exits: true, + masks: [statusMask], +}) diff --git a/packages/cli-rs/parity/scenarios/M.1/fixture.ts b/packages/cli-rs/parity/scenarios/M.1/fixture.ts new file mode 100644 index 000000000000..e2dcdce96363 --- /dev/null +++ b/packages/cli-rs/parity/scenarios/M.1/fixture.ts @@ -0,0 +1,174 @@ +// A fake server for `mini`: one session `ses_mini` with a short history, an event stream that stays open, and +// the reads the split-footer transport makes when it hydrates. The splash is off in every case: it is M.4's. +import type { Logged, Options, Route } from "../../lib/fake-server" + +export const directory = "/tmp/mini" +export const location = { directory, project: { id: "proj_test", directory, canonical: directory } } +export const session = (id = "ses_mini", extra: Record<string, unknown> = {}) => ({ + id, + title: "Mini history", + projectID: "proj_test", + cost: 0, + tokens: { input: 0, output: 0, reasoning: 0, cache: { read: 0, write: 0 } }, + time: { created: 1, updated: 1 }, + location: { directory }, + agent: "build", + model: { providerID: "demo", id: "model" }, + ...extra, +}) + +export const user = (id: string, text: string, created: number) => ({ + id, + type: "user", + sessionID: "ses_mini", + text, + time: { created }, +}) + +export const assistant = (id: string, content: unknown[], created: number) => ({ + id, + type: "assistant", + sessionID: "ses_mini", + agent: "build", + model: { providerID: "demo", id: "model" }, + content, + finish: "stop", + cost: 0, + tokens: { input: 5, output: 7, reasoning: 0, cache: { read: 0, write: 0 } }, + time: { created, completed: created + 1 }, +}) + +// Oldest first: three turns, the second with reasoning and a list. The list follows its paragraph without a blank +// line, so the reply is two of marked's tokens and mini commits it in one part; `M.1/table-gap` covers replies cut in +// parts. +export const history = [ + user("msg_u1", "first question", 10), + assistant("msg_a1", [{ type: "text", text: "First answer." }], 11), + user("msg_u2", "second question", 20), + assistant( + "msg_a2", + [ + { type: "reasoning", text: "Weighing the options." }, + { type: "text", text: "Second answer:\n- one\n- two" }, + ], + 21, + ), + user("msg_u3", "third question", 30), + assistant("msg_a3", [{ type: "text", text: "Third answer, the last one." }], 31), +] + +let counter = 0 +export const event = (type: string, data: Record<string, unknown>, created = 100) => ({ + id: `evt_${type.replace(/\W/g, "")}${String(++counter).padStart(8, "0")}`, + created, + type, + durable: { aggregateID: "ses_mini", seq: counter, version: 1 }, + data: { sessionID: "ses_mini", ...data }, +}) + +export function promptID(requests: Logged[]) { + const prompt = requests.findLast((entry) => entry.method === "POST" && entry.path.endsWith("/prompt")) + return (prompt?.body as { id?: string } | undefined)?.id ?? "msg_missing" +} + +// The message list honours `limit` and `order=desc` as the server does, so `--replay-limit` shows. +function listed(entry: Logged, requests: Logged[], base: unknown[], extra: (requests: Logged[]) => unknown[]) { + const all = [...base, ...extra(requests)] + const limit = Number(entry.query.limit?.[0] ?? all.length) + const desc = entry.query.order?.[0] === "desc" + const ordered = desc ? all.toReversed() : all + return { data: ordered.slice(0, limit), cursor: {} } +} + +// Plain-text entries only: prompts and errors. Core's Markdown wraps assistant text at the wrong column after a +// resize (see `parity/deviations/M01-mini-shell.md`), so the resize case leaves Markdown out. +export const plain = [ + user("msg_u1", "first question about a rather long topic", 10), + { + ...assistant("msg_a1", [], 11), + error: { type: "provider", message: "The provider refused the first request" }, + }, + user("msg_u2", "second question", 20), + { ...assistant("msg_a2", [], 21), error: { type: "provider", message: "Rate limited" } }, +] + +type Script = { + routes?: Route[] + // The session's history, oldest first; `history` by default. + messages?: unknown[] + // Messages after the history once a prompt was sent, given its ID. + after?: (id: string) => unknown[] + // Events pushed after the prompt, given its ID. + events?: (id: string) => unknown[] +} + +export function server(script: Script = {}): Options { + const after = (requests: Logged[]) => + requests.some((entry) => entry.method === "POST" && entry.path.endsWith("/prompt")) + ? (script.after?.(promptID(requests)) ?? []) + : [] + return { + routes: [ + ...(script.routes ?? []), + { path: "/api/location", json: location }, + { path: "/api/session/ses_mini", json: { data: session() } }, + { method: "POST", path: "/api/session", json: { data: session("ses_new", { title: "" }) } }, + { path: "/api/event", events: [{ id: "evt_connected0000", type: "server.connected", data: {} }] }, + { + method: "POST", + path: "/api/session/ses_mini/prompt", + json: (entry: Logged) => ({ + data: { + id: (entry.body as { id: string }).id, + sessionID: "ses_mini", + time: { created: 3 }, + type: "user", + payload: { text: (entry.body as { text: string }).text }, + delivery: "steer", + }, + }), + // As the server does, and as M.2's fixture does, the stream announces the admission before the events that follow + // it: the answer and the stream race, and a client that reads the delivery first knows the prompt only from this + // event. Without it, mini printed the reply above the prompt when the stream won (flakes-10, `stdin`). + then: (entry: Logged) => { + const body = entry.body as { id: string; text: string } + const events = script.events?.(body.id) ?? [] + if (!events.length) return [] + const item = { type: "user", payload: { text: body.text }, delivery: "steer" } + return [event("session.inbox.enqueued", { inboxID: body.id, item }), ...events] + }, + }, + { method: "POST", path: "/api/session/ses_mini/agent", status: 204 }, + { method: "POST", path: "/api/session/ses_mini/model", status: 204 }, + { method: "POST", path: "/api/experimental/session/ses_mini/wait", status: 204, delay: 200 }, + { path: "/api/session/ses_mini/permission", json: { data: [] } }, + { path: "/api/session/ses_mini/form", json: { data: [] } }, + { path: "/api/form", json: { location, data: [] } }, + { path: "/api/session/active", json: { data: {} } }, + { path: "/api/session/ses_mini/inbox", json: { data: [] } }, + { + path: "/api/session/ses_mini/message", + json: (entry: Logged, requests: Logged[]) => listed(entry, requests, script.messages ?? history, after), + }, + { path: "/api/model/default", json: { data: { providerID: "demo", id: "model" } } }, + // A new session (`mini` without `-s`): empty. + { path: "/api/session/ses_new/message", json: { data: [], cursor: {} } }, + { path: "/api/session/ses_new/inbox", json: { data: [] } }, + { path: "/api/session/ses_new/permission", json: { data: [] } }, + { path: "/api/session/ses_new/form", json: { data: [] } }, + ], + fallback: "tui", + } +} + +// `cli.json` for both sides: no splash (M.4), so the scrollback holds only the transcript. +export async function config(root: string, extra: Record<string, unknown> = {}) { + const file = `${root}/home/.config/opencode/cli.json` + await Bun.write(file, JSON.stringify({ mini: { splash: "hide", ...extra } })) +} + +// The footer's status row ends with the command menu's hint in TS; the menu is M.3's. +export const statusMask = { + pattern: /^Build · model · demo( · ctrl\+p menu)?$/, + reason: "the ctrl+p menu hint is M.3's", +} diff --git a/packages/cli-rs/parity/scenarios/M.1/flags.pty.ts b/packages/cli-rs/parity/scenarios/M.1/flags.pty.ts new file mode 100644 index 000000000000..99c944dea8ac --- /dev/null +++ b/packages/cli-rs/parity/scenarios/M.1/flags.pty.ts @@ -0,0 +1,11 @@ +// Flag errors under a terminal: `--fork` without a session to fork. +import { definePty } from "../../pty/run" + +export default definePty({ + args: ["mini", "--fork"], + cols: 80, + rows: 6, + server: { routes: [] }, + steps: [{ until: { screen: "Error" }, settle: 300, checkpoint: "error" }], + exits: true, +}) diff --git a/packages/cli-rs/parity/scenarios/M.1/mono.pty.ts b/packages/cli-rs/parity/scenarios/M.1/mono.pty.ts new file mode 100644 index 000000000000..fa29e8edc803 --- /dev/null +++ b/packages/cli-rs/parity/scenarios/M.1/mono.pty.ts @@ -0,0 +1,18 @@ +// `mini.mono = true`: the replayed transcript in ASCII (`>` prompts, `[O]` header, ` - ` separators). +import { definePty } from "../../pty/run" +import { config, server } from "./fixture" + +export default definePty({ + args: ["mini", "-s", "ses_mini"], + cols: 60, + rows: 16, + server: server(), + setup: (root) => config(root, { mono: true }), + steps: [ + { until: { screen: "Third answer" }, settle: 600, timeout: 30_000, checkpoint: "mono", scrollback: 16 }, + { keys: "\x03", settle: 200 }, + { keys: "\x03", settle: 400 }, + ], + exits: true, + masks: [{ pattern: /^Build - model - demo( - ctrl\+p menu)?$/, reason: "the ctrl+p menu hint is M.3's" }], +}) diff --git a/packages/cli-rs/parity/scenarios/M.1/no-replay.pty.ts b/packages/cli-rs/parity/scenarios/M.1/no-replay.pty.ts new file mode 100644 index 000000000000..b5a66769a82e --- /dev/null +++ b/packages/cli-rs/parity/scenarios/M.1/no-replay.pty.ts @@ -0,0 +1,19 @@ +// `mini -s ses_mini --no-replay`: the terminal is still cleared for the resumed session, but its history is not +// written again. +import { definePty } from "../../pty/run" +import { config, server, statusMask } from "./fixture" + +export default definePty({ + args: ["mini", "-s", "ses_mini", "--no-replay"], + cols: 60, + rows: 16, + server: server(), + setup: (root) => config(root), + steps: [ + { until: { screen: "oc mini" }, settle: 800, timeout: 30_000, checkpoint: "cleared" }, + { keys: "\x03", settle: 200 }, + { keys: "\x03", settle: 400 }, + ], + exits: true, + masks: [statusMask], +}) diff --git a/packages/cli-rs/parity/scenarios/M.1/no-tty.cli.ts b/packages/cli-rs/parity/scenarios/M.1/no-tty.cli.ts new file mode 100644 index 000000000000..e16de7ee7a22 --- /dev/null +++ b/packages/cli-rs/parity/scenarios/M.1/no-tty.cli.ts @@ -0,0 +1,7 @@ +// `mini` with stdout on a pipe fails before it connects. +import { defineCli } from "../../cli/run" + +export default defineCli({ + args: ["mini"], + server: { routes: [] }, +}) diff --git a/packages/cli-rs/parity/scenarios/M.1/replay-limit-zero.pty.ts b/packages/cli-rs/parity/scenarios/M.1/replay-limit-zero.pty.ts new file mode 100644 index 000000000000..662dc43f71e1 --- /dev/null +++ b/packages/cli-rs/parity/scenarios/M.1/replay-limit-zero.pty.ts @@ -0,0 +1,11 @@ +// `--replay-limit 0` is rejected before anything is drawn. +import { definePty } from "../../pty/run" + +export default definePty({ + args: ["mini", "--replay-limit", "0"], + cols: 80, + rows: 6, + server: { routes: [] }, + steps: [{ until: { screen: "Error" }, settle: 300, checkpoint: "error" }], + exits: true, +}) diff --git a/packages/cli-rs/parity/scenarios/M.1/replay-limit.pty.ts b/packages/cli-rs/parity/scenarios/M.1/replay-limit.pty.ts new file mode 100644 index 000000000000..36ba12717bcb --- /dev/null +++ b/packages/cli-rs/parity/scenarios/M.1/replay-limit.pty.ts @@ -0,0 +1,18 @@ +// `mini -s ses_mini --replay-limit 2`: only the newest two messages are listed and replayed, below the header. +import { definePty } from "../../pty/run" +import { config, server, statusMask } from "./fixture" + +export default definePty({ + args: ["mini", "-s", "ses_mini", "--replay-limit", "2"], + cols: 60, + rows: 16, + server: server(), + setup: (root) => config(root), + steps: [ + { until: { screen: "Third answer" }, settle: 600, timeout: 30_000, checkpoint: "replayed", scrollback: 8 }, + { keys: "\x03", settle: 200 }, + { keys: "\x03", settle: 400 }, + ], + exits: true, + masks: [statusMask], +}) diff --git a/packages/cli-rs/parity/scenarios/M.1/resize.pty.ts b/packages/cli-rs/parity/scenarios/M.1/resize.pty.ts new file mode 100644 index 000000000000..7c92277516c6 --- /dev/null +++ b/packages/cli-rs/parity/scenarios/M.1/resize.pty.ts @@ -0,0 +1,20 @@ +// A resize replays the transcript at the new width: the terminal is cleared, the messages are listed again, and the +// header and the wrapped rows follow the new width. The history is plain text (prompts and errors). +import { definePty } from "../../pty/run" +import { config, plain, server, statusMask } from "./fixture" + +export default definePty({ + args: ["mini", "-s", "ses_mini"], + cols: 60, + rows: 16, + server: server({ messages: plain }), + setup: (root) => config(root), + steps: [ + { until: { screen: "Rate limited" }, settle: 600, timeout: 30_000 }, + { resize: { cols: 24, rows: 16 }, settle: 1500, checkpoint: "narrow", scrollback: 24 }, + { keys: "\x03", settle: 200 }, + { keys: "\x03", settle: 400 }, + ], + exits: true, + masks: [statusMask], +}) diff --git a/packages/cli-rs/parity/scenarios/M.1/resume.pty.ts b/packages/cli-rs/parity/scenarios/M.1/resume.pty.ts new file mode 100644 index 000000000000..cd4e4835f1db --- /dev/null +++ b/packages/cli-rs/parity/scenarios/M.1/resume.pty.ts @@ -0,0 +1,19 @@ +// `mini -s ses_mini`: the session's history is replayed into the scrollback above the footer, then Ctrl+C twice +// leaves split mode. The footer itself is M.2's and M.3's, so the rows below the transcript are masked. +import { definePty } from "../../pty/run" +import { config, server, statusMask } from "./fixture" + +export default definePty({ + args: ["mini", "-s", "ses_mini"], + cols: 60, + rows: 16, + server: server(), + setup: (root) => config(root), + steps: [ + { until: { screen: "Third answer" }, settle: 600, timeout: 30_000, checkpoint: "resume", scrollback: 16 }, + { keys: "\x03", settle: 200 }, + { keys: "\x03", settle: 400, checkpoint: "exit" }, + ], + exits: true, + masks: [statusMask], +}) diff --git a/packages/cli-rs/parity/scenarios/M.1/stdin.pty.ts b/packages/cli-rs/parity/scenarios/M.1/stdin.pty.ts new file mode 100644 index 000000000000..1b6cdb72c36e --- /dev/null +++ b/packages/cli-rs/parity/scenarios/M.1/stdin.pty.ts @@ -0,0 +1,50 @@ +// `printf 'piped text' | mini -s ses_mini --prompt 'from flag'`: the pipe and the flag become the first prompt, and +// keys still come from the terminal (Ctrl+C twice leaves). +import { definePty } from "../../pty/run" +import { command, withServer } from "../../cli/client" +import { config, event, server, statusMask, user, assistant } from "./fixture" + +const state = { server: "" } +const args = ["mini", "-s", "ses_mini", "--prompt", "from flag"] + +export default definePty({ + args, + command: (side) => { + const argv = command(side, withServer(args, state.server)).map((arg) => `'${arg.replaceAll("'", "'\\''")}'`) + return ["sh", "-c", `printf 'piped text' | ${argv.join(" ")}`] + }, + cols: 60, + rows: 20, + server: server({ + events: (id) => [ + event("session.inbox.delivered", { inboxID: id }), + event("session.execution.started", {}), + event("session.step.started", { + assistantMessageID: "msg_a4", + agent: "build", + model: { id: "model", providerID: "demo" }, + snapshot: "snap_1", + started: 101, + }), + event("session.text.delta", { assistantMessageID: "msg_a4", ordinal: 0, delta: "Got the " }), + event("session.text.delta", { assistantMessageID: "msg_a4", ordinal: 0, delta: "pipe." }), + event("session.text.ended", { assistantMessageID: "msg_a4", ordinal: 0, text: "Got the pipe." }), + event("session.execution.succeeded", {}), + ], + after: (id) => [ + user(id, "piped text\nfrom flag", 100), + assistant("msg_a4", [{ type: "text", text: "Got the pipe." }], 101), + ], + }), + setup: async (root, url) => { + state.server = url ?? "" + await config(root) + }, + steps: [ + { until: { screen: "Got the pipe." }, settle: 800, timeout: 30_000, checkpoint: "answered", scrollback: 6 }, + { keys: "\x03", settle: 200 }, + { keys: "\x03", settle: 400 }, + ], + exits: true, + masks: [statusMask], +}) diff --git a/packages/cli-rs/parity/scenarios/M.1/table-gap.pty.ts b/packages/cli-rs/parity/scenarios/M.1/table-gap.pty.ts new file mode 100644 index 000000000000..2aaeba9c13fe --- /dev/null +++ b/packages/cli-rs/parity/scenarios/M.1/table-gap.pty.ts @@ -0,0 +1,34 @@ +// Mini replays two replies of three blocks each, a paragraph, a left-aligned table and a paragraph, then three +// paragraphs. Both clients commit a reply's leading blocks first and the rest at the end, and both keep the blank row +// at that cut (before the table, before `Three.`), as the replies rendered whole show. TS lost it before #63989. +import { definePty } from "../../pty/run" +import { assistant, config, server, statusMask, user } from "./fixture" + +const table = ["Packing list:", "", "| Item | Qty |", "| --- | --- |", "| Tent | 1 |", "| Stove | 2 |", "", "Done."] + +const messages = [ + user("msg_u1", "pack", 10), + assistant("msg_a1", [{ type: "text", text: table.join("\n") }], 11), + user("msg_u2", "count", 12), + assistant("msg_a2", [{ type: "text", text: "One.\n\nTwo.\n\nThree." }], 13), +] + +export default definePty({ + args: ["mini", "-s", "ses_mini"], + cols: 60, + rows: 24, + server: server({ messages }), + setup: (root) => config(root), + steps: [ + { + until: { screen: "Three." }, + settle: 800, + timeout: 30_000, + checkpoint: "replayed", + }, + { keys: "\x03", settle: 200 }, + { keys: "\x03", settle: 400 }, + ], + exits: true, + masks: [statusMask], +}) diff --git a/packages/cli-rs/parity/scenarios/M.1/ttfd.pty.ts b/packages/cli-rs/parity/scenarios/M.1/ttfd.pty.ts new file mode 100644 index 000000000000..128d02ba48bb --- /dev/null +++ b/packages/cli-rs/parity/scenarios/M.1/ttfd.pty.ts @@ -0,0 +1,19 @@ +// `OPENCODE_SHOW_TTFD=1` on a new session: the time to the first frame is the first row of the transcript. +import { definePty } from "../../pty/run" +import { config, server, statusMask } from "./fixture" + +export default definePty({ + args: ["mini"], + cols: 60, + rows: 10, + env: { OPENCODE_SHOW_TTFD: "1" }, + server: server(), + setup: (root) => config(root), + steps: [ + { until: { screen: /startup \d+ms/ }, settle: 600, timeout: 30_000, checkpoint: "startup" }, + { keys: "\x03", settle: 200 }, + { keys: "\x03", settle: 400 }, + ], + exits: true, + masks: [statusMask, { pattern: /startup \d+ms/, reason: "the time differs per run" }], +}) diff --git a/packages/cli-rs/parity/scenarios/M.2/attach.pty.ts b/packages/cli-rs/parity/scenarios/M.2/attach.pty.ts new file mode 100644 index 000000000000..fddf5d858488 --- /dev/null +++ b/packages/cli-rs/parity/scenarios/M.2/attach.pty.ts @@ -0,0 +1,34 @@ +// A pasted image path becomes an atomic `[Image 1]` part; Enter sends it as a file of the prompt. +import { definePty } from "../../pty/run" +import { config, leave, opened, server, statusMask } from "./fixture" + +// A 1x1 PNG. +const png = "iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAYAAAAfFcSJAAAADUlEQVR42mP8z8BQDwAEhQGAhKmMIQAAAABJRU5ErkJggg==" + +export default definePty({ + args: ["mini", "-s", "ses_mini"], + cols: 60, + rows: 20, + server: server(), + setup: async (root) => { + await config(root) + await Bun.write(`${root}/work/img.png`, Buffer.from(png, "base64")) + }, + // A paste resolves its file off the input path and draws nothing until then, so each step waits for what it + // checks; a quiet screen alone can come before a slow paste lands. + steps: [ + opened, + { keys: "look at ", until: { screen: "┃ look at" }, settle: 200 }, + { keys: "\x1b[200~img.png\x1b[201~", until: { screen: "[Image 1]" }, settle: 600, checkpoint: "attached" }, + // Backspace removes the space, then the whole mark. + { keys: "\x7f\x7f", until: { screen: /┃ look at\s*$/m }, settle: 300, checkpoint: "removed" }, + { keys: "\x1b[200~img.png\x1b[201~", until: { screen: "[Image 1]" }, settle: 600 }, + // The turn's summary row (`build · model · 0.2s`, not the status row's `… · demo`) ends the turn, so the + // Ctrl+C that follows exits instead of interrupting. + { keys: "\r", until: { screen: /^build · model · (?!demo)/m }, settle: 800, checkpoint: "sent" }, + ...leave, + ], + exits: true, + masks: [statusMask], + requests: "writes", +}) diff --git a/packages/cli-rs/parity/scenarios/M.2/editor.pty.ts b/packages/cli-rs/parity/scenarios/M.2/editor.pty.ts new file mode 100644 index 000000000000..9dcf23570c99 --- /dev/null +++ b/packages/cli-rs/parity/scenarios/M.2/editor.pty.ts @@ -0,0 +1,39 @@ +// `/editor` and `prompt.editor` (Ctrl+X E) compose in `$EDITOR`; what it saves replaces the draft. `/editor` +// hands the editor the text after the command. +import { chmod } from "node:fs/promises" +import { tmpdir } from "node:os" +import path from "node:path" +import { definePty } from "../../pty/run" +import { config, leave, server, statusMask } from "./fixture" + +// Wraps the draft it is given, so the scenario sees both the handoff and the result. One per runner process, so +// runs from other worktrees do not rewrite it while it runs. +const editor = path.join(tmpdir(), `opencode-parity-m2-editor-${process.pid}.sh`) + +export default definePty({ + args: ["mini", "-s", "ses_mini", "--no-replay"], + cols: 60, + rows: 20, + env: { EDITOR: editor, VISUAL: "" }, + server: server(), + setup: async (root) => { + await config(root) + await Bun.write(editor, `#!/bin/sh\nprintf 'edited <%s>' "$(cat "$1")" > "$1"\n`) + await chmod(editor, 0o755) + }, + // The terminal is in cooked mode while the editor runs, where a Ctrl+C is SIGINT: each handoff waits for the + // edited draft, which shows only after the client took the terminal back. + steps: [ + { until: { screen: "┃" }, settle: 600, timeout: 30_000 }, + { keys: "/edit", settle: 300 }, + { keys: "\r", until: { screen: "edited </edit>" }, settle: 800, checkpoint: "slash" }, + { keys: "\x03", settle: 300 }, + { keys: "draft", settle: 200 }, + { keys: "\x18e", until: { screen: "edited <draft>" }, settle: 800, checkpoint: "keys" }, + { keys: "\x03", settle: 300 }, + ...leave, + ], + exits: true, + masks: [statusMask], + requests: "writes", +}) diff --git a/packages/cli-rs/parity/scenarios/M.2/failed.pty.ts b/packages/cli-rs/parity/scenarios/M.2/failed.pty.ts new file mode 100644 index 000000000000..81ea346eabdb --- /dev/null +++ b/packages/cli-rs/parity/scenarios/M.2/failed.pty.ts @@ -0,0 +1,38 @@ +// A turn that fails before its first step (`session.execution.failed` with no step error) prints the error once +// the session settles, above the turn summary; so does an interruption the user did not ask for. +import { definePty } from "../../pty/run" +import { config, event, leave, opened, server, statusMask } from "./fixture" + +export default definePty({ + args: ["mini", "-s", "ses_mini"], + cols: 60, + rows: 20, + server: server({ + events: (id, requests) => + requests.filter((entry) => entry.path.endsWith("/prompt")).length === 1 + ? [ + event("session.inbox.delivered", { inboxID: id }), + event("session.execution.started", {}), + event("session.execution.failed", { + error: { type: "provider", message: "API key is missing for provider demo" }, + }), + ] + : [ + event("session.inbox.delivered", { inboxID: id }), + event("session.execution.started", {}), + event("session.execution.interrupted", { reason: "shutdown" }), + ], + }), + setup: (root) => config(root), + steps: [ + opened, + { keys: "hello", settle: 200 }, + { keys: "\r", until: { screen: "API key is missing" }, settle: 800, checkpoint: "failed" }, + { keys: "again", settle: 200 }, + { keys: "\r", until: { screen: "Session interrupted: shutdown" }, settle: 800, checkpoint: "interrupted" }, + ...leave, + ], + exits: true, + masks: [statusMask], + requests: "writes", +}) diff --git a/packages/cli-rs/parity/scenarios/M.2/fixture.ts b/packages/cli-rs/parity/scenarios/M.2/fixture.ts new file mode 100644 index 000000000000..e3a4845ae7bc --- /dev/null +++ b/packages/cli-rs/parity/scenarios/M.2/fixture.ts @@ -0,0 +1,114 @@ +// M.1's `ses_mini` server with what the footer prompt needs: the catalogs it completes from (agents, commands, +// references, a file search) and the writes it makes (commands, shells, compaction, inbox changes). +import type { Logged, Options, Route } from "../../lib/fake-server" +import { location, server as base } from "../M.1/fixture" + +import { event } from "../M.1/fixture" + +export { config, event, history, user, assistant } from "../M.1/fixture" + +const listed = (data: unknown[]) => ({ location, data }) + +export const agents = [ + { id: "build", name: "build", description: "Default agent", mode: "primary", hidden: false }, + { id: "plan", name: "plan", description: "Planning agent", mode: "primary", hidden: false }, + { id: "general", name: "general", description: "General purpose subagent", mode: "subagent", hidden: false }, + { id: "explore", name: "explore", description: "Explores the code", mode: "subagent", hidden: false }, +] + +export const commands = [ + { name: "review", description: "Review the working tree", source: "command" }, + { name: "init", description: "Create AGENTS.md", source: "command" }, +] + +export const files = ["src/main.ts", "src/general.ts", "src/", "README.md"] + +// The status row's hints open M.3's views: the command menu (`ctrl+p menu`) and the pending prompts +// (`ctrl+x q 1 pending`). +export const statusMask = { + pattern: /^(ctrl\+x q \d+ pending · )?build · model · demo( · ctrl\+p menu)?$/, + reason: "the ctrl+p menu and pending-prompt hints open M.3's views", +} + +type Script = Omit<NonNullable<Parameters<typeof base>[0]>, "events"> & { + // How long `session.wait` holds a turn open, in ms. + wait?: number + // Events pushed after a prompt, given its ID and the request log (the prompt is its last entry). + events?: (id: string, requests: Logged[]) => unknown[] +} + +const inboxItem = (entry: Logged) => { + const body = entry.body as { id: string; text: string; delivery?: string } + return { + id: body.id, + sessionID: "ses_mini", + time: { created: 3 }, + type: "user", + payload: { text: body.text }, + delivery: body.delivery ?? "steer", + } +} + +export function server(script: Script = {}): Options { + const options = base({ ...script, events: undefined }) + const routes: Route[] = [ + { path: "/api/agent", json: listed(agents) }, + { path: "/api/command", json: listed(commands) }, + { path: "/api/reference", json: listed([]) }, + { + path: "/api/fs/find", + json: (entry: Logged) => { + const query = entry.query.query?.[0] ?? "" + return listed(files.filter((file) => file.includes(query)).map((path) => ({ path }))) + }, + }, + { method: "POST", path: "/api/session/ses_mini/command", status: 204 }, + { method: "POST", path: "/api/session/ses_mini/shell", status: 204 }, + { method: "PATCH", path: "/api/session/ses_mini/inbox/:id", status: 204 }, + { method: "DELETE", path: "/api/session/ses_mini/inbox/:id", status: 204 }, + ...(script.wait === undefined + ? [] + : [{ method: "POST", path: "/api/experimental/session/ses_mini/wait", status: 204, delay: script.wait }]), + // Admitted prompts echo their delivery, so a queued prompt reads back as queued. As the server does, the + // stream announces the admission before the events that follow it: the answer and the stream race, and a + // client that reads the delivery first knows the prompt only from this event. + { + method: "POST", + path: "/api/session/ses_mini/prompt", + json: (entry: Logged) => ({ data: inboxItem(entry) }), + then: (entry: Logged, requests: Logged[]) => { + const item = inboxItem(entry) + const events = script.events?.(item.id, requests) ?? [] + if (!events.length) return [] + const admitted = { type: "user", payload: item.payload, delivery: item.delivery } + return [event("session.inbox.enqueued", { inboxID: item.id, item: admitted }), ...events] + }, + }, + ] + return { ...options, routes: [...routes, ...(options.routes ?? [])] } +} + +// The events of a prompt the server delivers and answers at once. +export const answer = (id: string, reply: string, message = "msg_a4") => [ + event("session.inbox.delivered", { inboxID: id }), + event("session.execution.started", {}), + event("session.step.started", { + assistantMessageID: message, + agent: "build", + model: { id: "model", providerID: "demo" }, + snapshot: "snap_1", + started: 101, + }), + event("session.text.delta", { assistantMessageID: message, ordinal: 0, delta: reply }), + event("session.text.ended", { assistantMessageID: message, ordinal: 0, text: reply }), + event("session.execution.succeeded", {}), +] + +// Every scenario: `mini -s ses_mini` at 60x20, Ctrl+C twice to leave. +export const leave = [ + { keys: "\x03", settle: 200 }, + { keys: "\x03", settle: 400 }, +] + +// Waits for the replayed transcript. +export const opened = { until: { screen: "Third answer" }, settle: 600, timeout: 30_000 } diff --git a/packages/cli-rs/parity/scenarios/M.2/history.pty.ts b/packages/cli-rs/parity/scenarios/M.2/history.pty.ts new file mode 100644 index 000000000000..35a93538c79b --- /dev/null +++ b/packages/cli-rs/parity/scenarios/M.2/history.pty.ts @@ -0,0 +1,25 @@ +// Up at the start steps back through the session's prompts, Down at the end steps forward and restores the draft. +import { definePty } from "../../pty/run" +import { config, leave, opened, server, statusMask } from "./fixture" + +export default definePty({ + args: ["mini", "-s", "ses_mini"], + cols: 60, + rows: 20, + server: server(), + setup: (root) => config(root), + steps: [ + opened, + { keys: "draft", settle: 200 }, + { keys: "\x1b[A", settle: 300, checkpoint: "start" }, + { keys: "\x1b[A", settle: 300, checkpoint: "third" }, + { keys: "\x1b[A", settle: 300, checkpoint: "second" }, + { keys: "\x1b[B", settle: 300 }, + { keys: "\x1b[B", settle: 300, checkpoint: "third-end" }, + { keys: "\x1b[B", settle: 300, checkpoint: "draft" }, + ...leave, + ], + exits: true, + masks: [statusMask], + requests: "writes", +}) diff --git a/packages/cli-rs/parity/scenarios/M.2/interrupt.pty.ts b/packages/cli-rs/parity/scenarios/M.2/interrupt.pty.ts new file mode 100644 index 000000000000..0d8abfc76ddb --- /dev/null +++ b/packages/cli-rs/parity/scenarios/M.2/interrupt.pty.ts @@ -0,0 +1,40 @@ +// Esc twice while a turn runs interrupts it with `session.interrupt`, `resume` as a query value, so steered input +// parked behind the turn resumes; the server's 200 is the ack. +import { definePty } from "../../pty/run" +import { event, leave, opened, server } from "./fixture" + +const base = server({ + wait: 6000, + events: (id) => [event("session.inbox.delivered", { inboxID: id }), event("session.execution.started", {})], +}) + +export default definePty({ + args: ["mini", "-s", "ses_mini"], + cols: 60, + rows: 20, + server: { + ...base, + routes: [ + { method: "POST", path: "/api/session/ses_mini/interrupt", json: { interrupted: true } }, + ...(base.routes ?? []), + ], + }, + setup: async (root) => { + await Bun.write( + `${root}/home/.config/opencode/cli.json`, + JSON.stringify({ animations: false, mini: { splash: "hide" } }), + ) + }, + steps: [ + opened, + { keys: "first", settle: 200 }, + { keys: "\r", settle: 600 }, + // The interrupt's first Escape shows no text to wait for, so each goes as the Kitty keyboard sends it (Mini turned it + // on): a lone ESC the program had not yet timed out would join the next key. + { keys: "\x1b[27u", settle: 200 }, + { keys: "\x1b[27u", settle: 600 }, + ...leave, + ], + exits: true, + requests: "writes", +}) diff --git a/packages/cli-rs/parity/scenarios/M.2/mention.pty.ts b/packages/cli-rs/parity/scenarios/M.2/mention.pty.ts new file mode 100644 index 000000000000..701aac619079 --- /dev/null +++ b/packages/cli-rs/parity/scenarios/M.2/mention.pty.ts @@ -0,0 +1,27 @@ +// `@` lists subagents, then the file search's results; Tab picks one as a mention part, and Enter sends it in the +// prompt's `agents` and `files`. +import { definePty } from "../../pty/run" +import { config, leave, opened, server, statusMask } from "./fixture" + +export default definePty({ + args: ["mini", "-s", "ses_mini"], + cols: 60, + rows: 20, + server: server(), + setup: (root) => config(root), + steps: [ + opened, + { keys: "ask @gen", settle: 600, checkpoint: "listed" }, + { keys: "\t", settle: 300, checkpoint: "agent" }, + { keys: "and @main", settle: 600, checkpoint: "file" }, + { keys: "\r", settle: 300, checkpoint: "picked" }, + { keys: "\x7f\x7f", settle: 300, checkpoint: "atomic" }, + { keys: "@main", settle: 600 }, + { keys: "\r", settle: 300 }, + { keys: "\r", settle: 1000, checkpoint: "sent" }, + ...leave, + ], + exits: true, + masks: [statusMask], + requests: "writes", +}) diff --git a/packages/cli-rs/parity/scenarios/M.2/preview.pty.ts b/packages/cli-rs/parity/scenarios/M.2/preview.pty.ts new file mode 100644 index 000000000000..21ff6b9a5d7b --- /dev/null +++ b/packages/cli-rs/parity/scenarios/M.2/preview.pty.ts @@ -0,0 +1,31 @@ +// With `prompt.image_preview`, a pasted image shows a preview above the composer, which grows by its rows. +import { definePty } from "../../pty/run" +import { leave, opened, server, statusMask } from "./fixture" + +// A 1x1 PNG. +const png = "iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAYAAAAfFcSJAAAADUlEQVR42mP8z8BQDwAEhQGAhKmMIQAAAABJRU5ErkJggg==" + +export default definePty({ + args: ["mini", "-s", "ses_mini"], + cols: 60, + rows: 20, + server: server(), + setup: async (root) => { + await Bun.write( + `${root}/home/.config/opencode/cli.json`, + JSON.stringify({ prompt: { image_preview: true }, mini: { splash: "hide" } }), + ) + await Bun.write(`${root}/work/img.png`, Buffer.from(png, "base64")) + }, + // A paste resolves its file off the input path and draws nothing until then, so each step waits for what it + // checks; a quiet screen alone can come before a slow paste lands (as attach.pty.ts does). + steps: [ + opened, + { keys: "look at ", until: { screen: "┃ look at" }, settle: 200 }, + { keys: "\x1b[200~img.png\x1b[201~", until: { screen: "[Image 1]" }, settle: 600, checkpoint: "previewed" }, + { keys: "\x03", until: { gone: "look at" }, settle: 300, checkpoint: "cleared" }, + ...leave, + ], + exits: true, + masks: [statusMask], +}) diff --git a/packages/cli-rs/parity/scenarios/M.2/queue.pty.ts b/packages/cli-rs/parity/scenarios/M.2/queue.pty.ts new file mode 100644 index 000000000000..ca695a0fa368 --- /dev/null +++ b/packages/cli-rs/parity/scenarios/M.2/queue.pty.ts @@ -0,0 +1,49 @@ +// While a turn runs, Enter steers the next prompt into the inbox and `prompt.queue` (Ctrl+X Enter) queues one; +// an empty Enter steers the queued one; a shell command cannot be queued; Ctrl+L clears the screen. +import { definePty } from "../../pty/run" +import { event, leave, opened, server } from "./fixture" + +export default definePty({ + args: ["mini", "-s", "ses_mini"], + cols: 60, + rows: 20, + server: server({ + wait: 6000, + // The first prompt starts a turn that stays open while `session.wait` holds. + events: (id, requests) => + requests.filter((entry) => entry.path.endsWith("/prompt")).length === 1 + ? [event("session.inbox.delivered", { inboxID: id }), event("session.execution.started", {})] + : [], + }), + // A still spinner, so the screen settles while the turn runs. + setup: async (root) => { + await Bun.write( + `${root}/home/.config/opencode/cli.json`, + JSON.stringify({ animations: false, mini: { splash: "hide" } }), + ) + }, + steps: [ + opened, + { keys: "first", settle: 200 }, + { keys: "\r", settle: 600, checkpoint: "running" }, + { keys: "steer this", settle: 200 }, + { keys: "\r", settle: 600 }, + { keys: "queue this", settle: 200 }, + { keys: "\x18\r", settle: 600, checkpoint: "queued" }, + // Enter on an empty composer steers the first queued prompt. + { keys: "\r", settle: 600 }, + { keys: "!", settle: 100 }, + { keys: "ls", settle: 100 }, + { keys: "\x18\r", settle: 400, checkpoint: "refused" }, + // Escape shows no text to wait for, so it goes as the Kitty keyboard sends it (Mini turned it on): a lone ESC the + // program had not yet timed out would join Ctrl+L. + { keys: "\x1b[27u", settle: 100 }, + { keys: "\x0c", settle: 600, checkpoint: "cleared" }, + // The first Ctrl+C clears the draft. + { keys: "\x03", settle: 200 }, + ...leave, + ], + exits: true, + + requests: "writes", +}) diff --git a/packages/cli-rs/parity/scenarios/M.2/shell-interrupt.pty.ts b/packages/cli-rs/parity/scenarios/M.2/shell-interrupt.pty.ts new file mode 100644 index 000000000000..b8227e316469 --- /dev/null +++ b/packages/cli-rs/parity/scenarios/M.2/shell-interrupt.pty.ts @@ -0,0 +1,37 @@ +// A `!` shell turn holds no server drain, so Esc twice aborts its `session.shell` request instead of sending +// `session.interrupt`, and the composer is idle at once. +import { definePty } from "../../pty/run" +import { leave, opened, server } from "./fixture" + +const base = server() + +export default definePty({ + args: ["mini", "-s", "ses_mini"], + cols: 60, + rows: 20, + server: { + ...base, + routes: [ + { method: "POST", path: "/api/session/ses_mini/shell", status: 204, delay: 4000 }, + ...(base.routes ?? []), + ], + }, + setup: async (root) => { + await Bun.write( + `${root}/home/.config/opencode/cli.json`, + JSON.stringify({ animations: false, mini: { splash: "hide" } }), + ) + }, + steps: [ + opened, + { keys: "!sleep 5", settle: 300 }, + { keys: "\r", settle: 500, checkpoint: "running" }, + // The interrupt's first Escape shows no text to wait for, so each goes as the Kitty keyboard sends it (Mini turned it + // on): a lone ESC the program had not yet timed out would join the next key. + { keys: "\x1b[27u", settle: 200 }, + { keys: "\x1b[27u", until: { gone: "esc interrupt" }, settle: 600, checkpoint: "interrupted" }, + ...leave, + ], + exits: true, + requests: "writes", +}) diff --git a/packages/cli-rs/parity/scenarios/M.2/shell-output.pty.ts b/packages/cli-rs/parity/scenarios/M.2/shell-output.pty.ts new file mode 100644 index 000000000000..ba4da7396464 --- /dev/null +++ b/packages/cli-rs/parity/scenarios/M.2/shell-output.pty.ts @@ -0,0 +1,78 @@ +// `session.shell` answers before its `session.shell.ended` event arrives: the shell turn stays running for up to +// 1.5 s until the event ends it, then goes idle. +import type { Logged } from "../../lib/fake-server" +import { definePty } from "../../pty/run" +import { leave, opened, server } from "./fixture" + +const base = server() + +const shell = (entry: Logged, status: string) => { + const body = entry.body as { id: string; command: string } + return { + id: "sh_mini1", + status, + command: body.command, + cwd: "/tmp/mini", + shell: "/bin/sh", + file: "/tmp/sh_mini1", + metadata: {}, + time: { started: 100, ...(status === "running" ? {} : { completed: 101 }) }, + ...(status === "running" ? {} : { exit: 0 }), + } +} + +const durable = (seq: number) => ({ aggregateID: "ses_mini", seq, version: 1 }) + +export default definePty({ + args: ["mini", "-s", "ses_mini"], + cols: 60, + rows: 20, + server: { + ...base, + routes: [ + { + method: "POST", + path: "/api/session/ses_mini/shell", + status: 204, + thenDelay: 900, + then: (entry: Logged) => [ + { + id: (entry.body as { id: string }).id.replace(/^msg_/, "evt_"), + created: 100, + type: "session.shell.started", + durable: durable(90), + data: { sessionID: "ses_mini", shell: shell(entry, "running") }, + }, + { + id: "evt_shellended0001", + created: 101, + type: "session.shell.ended", + durable: durable(91), + data: { + sessionID: "ses_mini", + shell: shell(entry, "exited"), + output: { output: "hello from the shell\n", cursor: 21, size: 21, truncated: false }, + }, + }, + ], + }, + ...(base.routes ?? []), + ], + }, + setup: async (root) => { + await Bun.write( + `${root}/home/.config/opencode/cli.json`, + // TS hides `!` shell turns while `tools` is `hide`, the default (`M07-mini-shell-tools.md`). + JSON.stringify({ animations: false, mini: { splash: "hide", tools: "show" } }), + ) + }, + steps: [ + opened, + { keys: "!echo hello", settle: 300 }, + { keys: "\r", settle: 400, checkpoint: "waiting" }, + { until: { screen: /^build · model · demo/m }, settle: 400, checkpoint: "output", scrollback: 4 }, + ...leave, + ], + exits: true, + requests: "writes", +}) diff --git a/packages/cli-rs/parity/scenarios/M.2/shell.pty.ts b/packages/cli-rs/parity/scenarios/M.2/shell.pty.ts new file mode 100644 index 000000000000..d0e47abec793 --- /dev/null +++ b/packages/cli-rs/parity/scenarios/M.2/shell.pty.ts @@ -0,0 +1,26 @@ +// `!` at the start enters shell mode, Escape leaves it, Backspace at the start leaves it; Enter runs the command +// with `session.shell` and the composer returns to normal mode. +import { definePty } from "../../pty/run" +import { config, leave, opened, server, statusMask } from "./fixture" + +export default definePty({ + args: ["mini", "-s", "ses_mini"], + cols: 60, + rows: 20, + server: server(), + setup: (root) => config(root), + steps: [ + opened, + { keys: "!", settle: 300, checkpoint: "shell" }, + // Escape waits for shell mode to end: a lone ESC not yet read would join the next key. + { keys: "\x1b", until: { gone: "Shell ·" }, settle: 300, checkpoint: "normal" }, + { keys: "!", settle: 200 }, + { keys: "\x7f", settle: 300, checkpoint: "backspace" }, + { keys: "!ls -la", settle: 300, checkpoint: "typed" }, + { keys: "\r", settle: 800, checkpoint: "ran" }, + ...leave, + ], + exits: true, + masks: [statusMask], + requests: "writes", +}) diff --git a/packages/cli-rs/parity/scenarios/M.2/slash.pty.ts b/packages/cli-rs/parity/scenarios/M.2/slash.pty.ts new file mode 100644 index 000000000000..e7db5c67583a --- /dev/null +++ b/packages/cli-rs/parity/scenarios/M.2/slash.pty.ts @@ -0,0 +1,30 @@ +// `/` lists mini's built-ins and the server's commands; a query filters them; Escape removes the typed trigger; +// Enter on a command sends it with `session.command`; `/compact` cannot be queued. +import { definePty } from "../../pty/run" +import { config, leave, opened, server, statusMask } from "./fixture" + +export default definePty({ + args: ["mini", "-s", "ses_mini"], + cols: 60, + rows: 20, + server: server(), + setup: (root) => config(root), + steps: [ + opened, + { keys: "/", settle: 400, checkpoint: "slash" }, + { keys: "\x1b[B\x1b[B", settle: 300, checkpoint: "moved" }, + { keys: "re", settle: 400, checkpoint: "filtered" }, + // Escape waits for the list to close: a lone ESC not yet read would join the next key. + { keys: "\x1b", until: { gone: "Review the working tree" }, settle: 300, checkpoint: "hidden" }, + { keys: "/rev", settle: 300 }, + { keys: "\r", settle: 800, checkpoint: "sent" }, + { keys: "/compact ", settle: 300 }, + { keys: "\x18\r", settle: 300, checkpoint: "not-queued" }, + // The first Ctrl+C clears the draft. + { keys: "\x03", settle: 200 }, + ...leave, + ], + exits: true, + masks: [statusMask], + requests: "writes", +}) diff --git a/packages/cli-rs/parity/scenarios/M.2/system-theme-no-defaults.pty.ts b/packages/cli-rs/parity/scenarios/M.2/system-theme-no-defaults.pty.ts new file mode 100644 index 000000000000..03a9a0d83bf4 --- /dev/null +++ b/packages/cli-rs/parity/scenarios/M.2/system-theme-no-defaults.pty.ts @@ -0,0 +1,32 @@ +// The `system` theme under a terminal that reports its palette (Tokyo Night's slots) but not its default colors (no +// OSC 10 or 11 reply): the theme comes from slots 0 and 7. The text colors show the accents mini derives from the +// slots, such as the composer's rail in the agent's color (slot 5). Rust once drew that rail in a muted purple: mini +// took the TUI's new-designs V1 migration, where TS mini takes `migrateV1`. +import { definePty } from "../../pty/run" +import { opened, server, statusMask, leave } from "./fixture" +import { tokyonight } from "./system-theme.pty" + +export default definePty({ + args: ["mini", "-s", "ses_mini"], + cols: 60, + palette: { colors: tokyonight.colors }, + server: server(), + setup: async (root) => { + await Bun.write( + `${root}/home/.config/opencode/cli.json`, + JSON.stringify({ theme: { name: "system", mode: "system" }, mini: { splash: "hide" } }), + ) + }, + steps: [ + { + ...opened, + checkpoint: "idle", + foregrounds: "idle:foregrounds", + // The reasoning row: Rust draws it in the reasoning color. + deviation: { file: "M01-mini-shell", lines: 1 }, + }, + ...leave, + ], + exits: true, + masks: [statusMask], +}) diff --git a/packages/cli-rs/parity/scenarios/M.2/system-theme.pty.ts b/packages/cli-rs/parity/scenarios/M.2/system-theme.pty.ts new file mode 100644 index 000000000000..b6508dfeb9f7 --- /dev/null +++ b/packages/cli-rs/parity/scenarios/M.2/system-theme.pty.ts @@ -0,0 +1,57 @@ +// The `system` theme under a terminal that reports Tokyo Night's colors: the backgrounds of the footer's rows, +// idle and after a reply. The footer keeps the terminal's background: Rust once painted OpenTUI's dark app +// background behind it, a darker panel around the composer. +import { definePty } from "../../pty/run" +import { answer, assistant, leave, opened, server, statusMask, user } from "./fixture" + +export const tokyonight = { + foreground: "#a9b1d6", + background: "#1a1b26", + colors: [ + "#1a1b26", + "#f7768e", + "#9ece6a", + "#e0af68", + "#7aa2f7", + "#ad8ee6", + "#449dab", + "#a9b1d6", + "#414868", + "#ff7a93", + "#b9f27c", + "#ff9e64", + "#7da6ff", + "#bb9af7", + "#0db9d7", + "#c0caf5", + ], +} + +export default definePty({ + args: ["mini", "-s", "ses_mini"], + cols: 60, + palette: tokyonight, + server: server({ + events: (id) => answer(id, "Read it."), + after: (id) => [user(id, "hello", 100), assistant("msg_a4", [{ type: "text", text: "Read it." }], 101)], + }), + setup: async (root) => { + await Bun.write( + `${root}/home/.config/opencode/cli.json`, + JSON.stringify({ theme: { name: "system", mode: "system" }, mini: { splash: "hide" } }), + ) + }, + steps: [ + { ...opened, checkpoint: "idle", backgrounds: "idle:backgrounds" }, + { + keys: "hello\r", + until: { screen: "Read it." }, + settle: 800, + checkpoint: "replied", + backgrounds: "replied:backgrounds", + }, + ...leave, + ], + exits: true, + masks: [statusMask], +}) diff --git a/packages/cli-rs/parity/scenarios/M.2/typing.pty.ts b/packages/cli-rs/parity/scenarios/M.2/typing.pty.ts new file mode 100644 index 000000000000..2ed4810c9f85 --- /dev/null +++ b/packages/cli-rs/parity/scenarios/M.2/typing.pty.ts @@ -0,0 +1,30 @@ +// Typing grows the footer one row per line (Shift+Enter), up to six; Enter sends the prompt with `steer` and the +// footer shrinks back. +import { definePty } from "../../pty/run" +import { answer, assistant, config, leave, opened, server, statusMask, user } from "./fixture" + +export default definePty({ + args: ["mini", "-s", "ses_mini"], + cols: 60, + rows: 20, + server: server({ + events: (id) => answer(id, "Three lines read."), + after: (id) => [ + user(id, "one\ntwo\nthree", 100), + assistant("msg_a4", [{ type: "text", text: "Three lines read." }], 101), + ], + }), + setup: (root) => config(root), + steps: [ + { ...opened, checkpoint: "open" }, + { keys: "one\x1b[13;2utwo\x1b[13;2uthree", settle: 400, checkpoint: "grown" }, + { keys: "\x1b[13;2u4\x1b[13;2u5\x1b[13;2u6\x1b[13;2u7", settle: 400, checkpoint: "capped" }, + { keys: "\x03", settle: 300 }, + { keys: "one\x1b[13;2utwo\x1b[13;2uthree", settle: 300 }, + { keys: "\r", until: { screen: "Three lines read." }, settle: 800, checkpoint: "sent", scrollback: 8 }, + ...leave, + ], + exits: true, + masks: [statusMask], + requests: "writes", +}) diff --git a/packages/cli-rs/parity/scenarios/M.3/compact.pty.ts b/packages/cli-rs/parity/scenarios/M.3/compact.pty.ts new file mode 100644 index 000000000000..06ab90e9e31a --- /dev/null +++ b/packages/cli-rs/parity/scenarios/M.3/compact.pty.ts @@ -0,0 +1,26 @@ +// The permission and form footers in a short, narrow, monochrome terminal: the compact layouts, without padding +// and scrollbars, and ASCII glyphs. +import { definePty } from "../../pty/run" +import { config, deployForm, leave, opened, server, shellPermission } from "./fixture" + +export default definePty({ + args: ["mini", "-s", "ses_mini"], + cols: 50, + rows: 14, + server: server({ permissions: [shellPermission], forms: [deployForm] }), + setup: (root) => config(root, { mono: true }), + steps: [ + { ...opened, until: { screen: "Permission" }, checkpoint: "permission" }, + // Each Esc waits for the stage it opens: a lone ESC is a key only once the program's timer expires, and before + // that the next step's arrow would join it as Alt+Left. + { keys: "\x1b", until: { screen: "Reject permission" }, settle: 300, checkpoint: "reject" }, + { keys: "\x1b", until: { screen: "Allow once" }, settle: 300 }, + { keys: "\x1b[D", settle: 200 }, + { keys: "\x1b[D", settle: 200 }, + { keys: "\r", until: { screen: "Deploy the build" }, settle: 400, checkpoint: "form" }, + { keys: "2", settle: 300, checkpoint: "picked" }, + ...leave, + ], + exits: true, + requests: "writes", +}) diff --git a/packages/cli-rs/parity/scenarios/M.3/fixture.ts b/packages/cli-rs/parity/scenarios/M.3/fixture.ts new file mode 100644 index 000000000000..23fd47dcd0ac --- /dev/null +++ b/packages/cli-rs/parity/scenarios/M.3/fixture.ts @@ -0,0 +1,131 @@ +// M.2's `ses_mini` server with the requests M.3's footer views answer: pending permissions and forms listed when +// mini opens the session, the replies they send, and the inbox changes the pending-prompt panel makes. Each write +// pushes the event the real server sends once it took effect. +import type { Logged, Options, Route } from "../../lib/fake-server" +import { event, server as base } from "../M.2/fixture" + +export { config, event, leave, opened } from "../M.2/fixture" + +// A shell call waiting for permission; its tool input lives in message `msg_tool`. +export const shellPermission = { + id: "per_shell", + sessionID: "ses_mini", + action: "shell", + resources: ["ls -la"], + save: ["ls *"], + source: { type: "tool", messageID: "msg_tool", id: "tool_1" }, +} + +// A request that saves nothing, so it offers no "Always allow". +export const fetchPermission = { + id: "per_fetch", + sessionID: "ses_mini", + action: "webfetch", + resources: ["https://example.com"], + metadata: { url: "https://example.com" }, +} + +export const deployForm = { + id: "frm_deploy", + sessionID: "ses_mini", + title: "Deploy the build", + metadata: { message: "Pick where the build goes." }, + fields: [ + { type: "boolean", key: "confirm", title: "Run the deploy?", required: true }, + { + type: "string", + key: "target", + title: "Target", + options: [ + { value: "staging", label: "Staging", description: "the test cluster" }, + { value: "prod", label: "Production" }, + ], + }, + ], +} + +export const nameForm = { + id: "frm_name", + sessionID: "ses_mini", + title: "Name the release", + fields: [{ type: "string", key: "name", title: "Release name", required: true }], +} + +const toolMessage = { + id: "msg_tool", + type: "assistant", + sessionID: "ses_mini", + agent: "build", + model: { providerID: "demo", id: "model" }, + content: [ + { + type: "tool", + id: "tool_1", + name: "shell", + state: { status: "running", input: { command: "ls -la", description: "List files" }, metadata: {} }, + time: { created: 40 }, + }, + ], + cost: 0, + tokens: { input: 0, output: 0, reasoning: 0, cache: { read: 0, write: 0 } }, + time: { created: 40 }, +} + +type Script = Parameters<typeof base>[0] & { + permissions?: unknown[] + forms?: unknown[] +} + +const last = (entry: Logged) => entry.path.split("/").at(-1) ?? "" + +export function server(script: Script = {}): Options { + const options = base(script) + const routes: Route[] = [ + { path: "/api/session/ses_mini/permission", json: { data: script.permissions ?? [] } }, + { path: "/api/session/ses_mini/form", json: { data: script.forms ?? [] } }, + { path: "/api/session/ses_mini/message/msg_tool", json: { data: toolMessage } }, + { + method: "POST", + path: "/api/session/ses_mini/permission/:id/reply", + status: 204, + then: (entry: Logged) => [ + event("permission.replied", { + requestID: entry.path.split("/").at(-2), + reply: (entry.body as { decision: string }).decision, + }), + ], + }, + { + method: "POST", + path: "/api/session/ses_mini/form/:id/reply", + status: 204, + then: (entry: Logged) => [ + event("form.replied", { id: entry.path.split("/").at(-2), answer: (entry.body as { answer: unknown }).answer }), + ], + }, + { + method: "DELETE", + path: "/api/session/ses_mini/form/:id", + status: 204, + then: (entry: Logged) => [event("form.cancelled", { id: last(entry) })], + }, + { + method: "PATCH", + path: "/api/session/ses_mini/inbox/:id", + status: 204, + then: (entry: Logged) => [ + event("session.inbox.delivery.changed", { + inboxID: last(entry), + delivery: (entry.body as { delivery: string }).delivery, + }), + ], + }, + { + method: "DELETE", + path: "/api/session/ses_mini/inbox/:id", + status: 204, + then: (entry: Logged) => [event("session.inbox.cancelled", { inboxID: last(entry) })], + }, + ] + return { ...options, routes: [...routes, ...(options.routes ?? [])] } +} diff --git a/packages/cli-rs/parity/scenarios/M.3/form.pty.ts b/packages/cli-rs/parity/scenarios/M.3/form.pty.ts new file mode 100644 index 000000000000..286af87df6a0 --- /dev/null +++ b/packages/cli-rs/parity/scenarios/M.3/form.pty.ts @@ -0,0 +1,27 @@ +// Two forms wait when mini opens the session. The first takes Yes, then the second option, and its review submits +// the answers; Escape dismisses the second. Both answer 204, and the server's `form.replied` and `form.cancelled` +// take the forms away. +import { definePty } from "../../pty/run" +import { config, deployForm, leave, nameForm, opened, server } from "./fixture" + +export default definePty({ + args: ["mini", "-s", "ses_mini"], + cols: 80, + rows: 24, + server: server({ forms: [deployForm, nameForm] }), + setup: (root) => config(root), + steps: [ + { ...opened, until: { screen: "Deploy the build" }, checkpoint: "asked" }, + { keys: "\x1b[B", settle: 300, checkpoint: "moved" }, + { keys: "\x1b[A", settle: 200 }, + { keys: "\r", settle: 300, checkpoint: "second" }, + { keys: "\x1b[B", settle: 200 }, + { keys: "\r", settle: 300, checkpoint: "review" }, + { keys: "\r", until: { screen: "Name the release" }, settle: 400, checkpoint: "next" }, + { keys: "v1", settle: 300, checkpoint: "typed" }, + { keys: "\x1b", until: { screen: "ctrl+p menu" }, settle: 600, checkpoint: "dismissed" }, + ...leave, + ], + exits: true, + requests: "writes", +}) diff --git a/packages/cli-rs/parity/scenarios/M.3/menu-backgrounds.pty.ts b/packages/cli-rs/parity/scenarios/M.3/menu-backgrounds.pty.ts new file mode 100644 index 000000000000..d78c256c2b4a --- /dev/null +++ b/packages/cli-rs/parity/scenarios/M.3/menu-backgrounds.pty.ts @@ -0,0 +1,25 @@ +// The command menu's backgrounds under the `system` theme, in a terminal that reports Tokyo Night's colors: the +// panel's shade, the focused search field, the highlighted row and the half-block edge below the panel. +import { definePty } from "../../pty/run" +import { tokyonight } from "../M.2/system-theme.pty" +import { leave, opened, server } from "./fixture" + +export default definePty({ + args: ["mini", "-s", "ses_mini"], + cols: 80, + rows: 30, + palette: tokyonight, + server: server(), + setup: async (root) => { + await Bun.write( + `${root}/home/.config/opencode/cli.json`, + JSON.stringify({ theme: { name: "system", mode: "system" }, mini: { splash: "hide" } }), + ) + }, + steps: [ + { ...opened, until: { screen: "ctrl+p menu" } }, + { keys: "\x10", until: { screen: "Commands" }, settle: 400, checkpoint: "menu", backgrounds: "menu:backgrounds" }, + ...leave, + ], + exits: true, +}) diff --git a/packages/cli-rs/parity/scenarios/M.3/menu.pty.ts b/packages/cli-rs/parity/scenarios/M.3/menu.pty.ts new file mode 100644 index 000000000000..eda24253977f --- /dev/null +++ b/packages/cli-rs/parity/scenarios/M.3/menu.pty.ts @@ -0,0 +1,34 @@ +// `command.palette.show` (Ctrl+P) opens the command menu. A search narrows it to "Switch agent", which opens the +// agent panel; picking plan switches the agent the next prompt uses. "Show status" puts the footer's status in +// the status row, and Escape closes a panel. +import { definePty } from "../../pty/run" +import { config, leave, opened, server } from "./fixture" + +export default definePty({ + args: ["mini", "-s", "ses_mini"], + cols: 80, + rows: 30, + server: server(), + setup: (root) => config(root), + steps: [ + { ...opened, until: { screen: "ctrl+p menu" } }, + { keys: "\x10", until: { screen: "Commands" }, settle: 400, checkpoint: "menu" }, + { keys: "\x1b[B", settle: 200 }, + { keys: "\x1b[B", settle: 300, checkpoint: "moved" }, + { keys: "switch agent", settle: 400, checkpoint: "search" }, + { keys: "\r", until: { screen: "Select agent" }, settle: 400, checkpoint: "agents" }, + { keys: "\x1b[B", settle: 200 }, + { keys: "\r", until: { screen: "ctrl+p menu" }, settle: 400, checkpoint: "switched" }, + // The next prompt goes out with the new agent. + { keys: "hello", settle: 200 }, + { keys: "\r", settle: 800 }, + { keys: "\x10", until: { screen: "Commands" }, settle: 300 }, + { keys: "status", settle: 300 }, + { keys: "\r", until: { screen: "idle" }, settle: 400, checkpoint: "status" }, + { keys: "\x10", until: { screen: "Commands" }, settle: 300 }, + { keys: "\x1b", until: { screen: "ctrl+p menu" }, settle: 400, checkpoint: "closed" }, + ...leave, + ], + exits: true, + requests: "writes", +}) diff --git a/packages/cli-rs/parity/scenarios/M.3/palette-caret.pty.ts b/packages/cli-rs/parity/scenarios/M.3/palette-caret.pty.ts new file mode 100644 index 000000000000..fe347c5275db --- /dev/null +++ b/packages/cli-rs/parity/scenarios/M.3/palette-caret.pty.ts @@ -0,0 +1,23 @@ +// Closing the command palette keeps the draft's caret where it was: a key typed after Escape lands mid-draft, +// not at the end. +import { definePty } from "../../pty/run" +import { config, leave, opened, server } from "./fixture" + +export default definePty({ + args: ["mini", "-s", "ses_mini"], + cols: 80, + rows: 30, + server: server(), + setup: (root) => config(root), + steps: [ + { ...opened, until: { screen: "ctrl+p menu" } }, + { keys: "hello world", until: { screen: "hello world" }, settle: 200 }, + { keys: "\x1b[D\x1b[D\x1b[D\x1b[D\x1b[D", settle: 200 }, + { keys: "\x10", until: { screen: "Commands" }, settle: 400 }, + { keys: "\x1b", until: { screen: "ctrl+p menu" }, settle: 400 }, + { keys: "X", until: { screen: "hello Xworld" }, settle: 300, checkpoint: "typed" }, + ...leave, + ], + exits: true, + requests: "writes", +}) diff --git a/packages/cli-rs/parity/scenarios/M.3/pending.pty.ts b/packages/cli-rs/parity/scenarios/M.3/pending.pty.ts new file mode 100644 index 000000000000..0d7d69b001ea --- /dev/null +++ b/packages/cli-rs/parity/scenarios/M.3/pending.pty.ts @@ -0,0 +1,44 @@ +// The pending-prompts panel (`session.queued_prompts`, Ctrl+X Q) while a turn runs: `queued_prompt.delete` +// (Ctrl+D) cancels the highlighted prompt, `queued_prompt.undo` (Ctrl+U) cancels it and puts it back in the +// composer, and Enter steers a queued one. Each write answers 204 and the server's inbox event follows. +import { definePty } from "../../pty/run" +import { event, leave, opened, server } from "./fixture" + +export default definePty({ + args: ["mini", "-s", "ses_mini"], + cols: 70, + rows: 30, + server: server({ + wait: 30000, + // The first prompt starts a turn that stays open while `session.wait` holds. + events: (id, requests) => + requests.filter((entry) => entry.path.endsWith("/prompt")).length === 1 + ? [event("session.inbox.delivered", { inboxID: id }), event("session.execution.started", {})] + : [], + }), + // A still spinner, so the screen settles while the turn runs. + setup: async (root) => { + await Bun.write( + `${root}/home/.config/opencode/cli.json`, + JSON.stringify({ animations: false, mini: { splash: "hide" } }), + ) + }, + steps: [ + { ...opened, until: { screen: "ctrl+p menu" } }, + { keys: "first", settle: 200 }, + { keys: "\r", settle: 600 }, + { keys: "fix the tests", settle: 200 }, + { keys: "\x18\r", settle: 500 }, + { keys: "then the docs", settle: 200 }, + { keys: "\x18\r", until: { screen: "2 pending" }, settle: 500, checkpoint: "queued" }, + { keys: "\x18q", until: { screen: "Pending prompts" }, settle: 400, checkpoint: "panel" }, + { keys: "\x04", until: { screen: "Pending prompts 1" }, settle: 400, checkpoint: "deleted" }, + { keys: "\x15", until: { screen: "then the docs" }, settle: 600, checkpoint: "undone" }, + { keys: "\x18\r", until: { screen: "1 pending" }, settle: 500 }, + { keys: "\x18q", until: { screen: "Pending prompts" }, settle: 400 }, + { keys: "\r", settle: 800, checkpoint: "steered" }, + ...leave, + ], + exits: true, + requests: "writes", +}) diff --git a/packages/cli-rs/parity/scenarios/M.3/permission.pty.ts b/packages/cli-rs/parity/scenarios/M.3/permission.pty.ts new file mode 100644 index 000000000000..b7c881d9b7d1 --- /dev/null +++ b/packages/cli-rs/parity/scenarios/M.3/permission.pty.ts @@ -0,0 +1,28 @@ +// Two permissions wait when mini opens the session. The shell call's footer moves to "Always allow" and back, +// then allows once; the next request, which saves nothing, is rejected with a message. Each reply answers 204 +// and the server's `permission.replied` takes the request away. +import { definePty } from "../../pty/run" +import { config, fetchPermission, leave, opened, server, shellPermission } from "./fixture" + +export default definePty({ + args: ["mini", "-s", "ses_mini"], + cols: 80, + rows: 24, + server: server({ permissions: [shellPermission, fetchPermission] }), + setup: (root) => config(root), + steps: [ + { ...opened, until: { screen: "Permission required" }, checkpoint: "asked" }, + { keys: "\x1b[C", settle: 300, checkpoint: "moved" }, + { keys: "\r", settle: 300, checkpoint: "always" }, + // Each Escape waits for the stage it opens: a lone ESC not yet read would join the next key as Alt+key. + { keys: "\x1b", until: { gone: "This will always allow" }, settle: 300 }, + { keys: "\x1b[D", settle: 300 }, + { keys: "\r", until: { screen: "WebFetch" }, settle: 400, checkpoint: "next" }, + { keys: "\x1b", until: { screen: "Reject permission" }, settle: 300, checkpoint: "reject" }, + { keys: "use the cache", settle: 300 }, + { keys: "\r", until: { screen: "ctrl+p menu" }, settle: 600, checkpoint: "replied" }, + ...leave, + ], + exits: true, + requests: "writes", +}) diff --git a/packages/cli-rs/parity/scenarios/M.3/prequeued.pty.ts b/packages/cli-rs/parity/scenarios/M.3/prequeued.pty.ts new file mode 100644 index 000000000000..acb05b985b53 --- /dev/null +++ b/packages/cli-rs/parity/scenarios/M.3/prequeued.pty.ts @@ -0,0 +1,46 @@ +// A prompt waits in the inbox when mini attaches. Once the server delivers it, the transcript prints it above the +// answer, as a prompt this client sent. +import type { Logged } from "../../lib/fake-server" +import { definePty } from "../../pty/run" +import { answer } from "../M.2/fixture" +import { config, leave, opened, server } from "./fixture" + +const item = { + id: "msg_prequeued", + sessionID: "ses_mini", + time: { created: 40 }, + type: "user", + payload: { text: "queued before attach" }, + delivery: "queue", +} +const lists = (requests: Logged[]) => requests.filter((entry) => entry.path === "/api/session/ses_mini/inbox") +const base = server() + +export default definePty({ + args: ["mini", "-s", "ses_mini"], + cols: 60, + rows: 20, + server: { + ...base, + routes: [ + { + path: "/api/session/ses_mini/inbox", + json: { data: [item] }, + thenDelay: 1500, + then: (_entry: Logged, requests: Logged[]) => + lists(requests).length === 1 ? answer(item.id, "Answered prequeued.") : [], + }, + ...(base.routes ?? []), + ], + }, + setup: (root) => config(root), + steps: [opened, { until: { screen: "Answered prequeued." }, settle: 800, checkpoint: "delivered" }, ...leave], + exits: true, + masks: [ + { + pattern: /^(ctrl\+x q \d+ pending · )?build · model · demo( · ctrl\+p menu)?$/, + reason: "the ctrl+p menu and pending-prompt hints open M.3's views", + }, + ], + requests: "writes", +}) diff --git a/packages/cli-rs/parity/scenarios/M.3/reconnect.pty.ts b/packages/cli-rs/parity/scenarios/M.3/reconnect.pty.ts new file mode 100644 index 000000000000..3bc03a8572b1 --- /dev/null +++ b/packages/cli-rs/parity/scenarios/M.3/reconnect.pty.ts @@ -0,0 +1,34 @@ +// A permission waits when mini opens the session. The event stream drops while another client answers it, so +// no `permission.replied` arrives: the reconnect lists the requests again and the composer comes back. +import { DROP, type Logged } from "../../lib/fake-server" +import { definePty } from "../../pty/run" +import { config, leave, opened, server, shellPermission } from "./fixture" + +const lists = (requests: Logged[]) => requests.filter((entry) => entry.path === "/api/session/ses_mini/permission") +const base = server() + +export default definePty({ + args: ["mini", "-s", "ses_mini"], + cols: 80, + rows: 24, + server: { + ...base, + routes: [ + { + path: "/api/session/ses_mini/permission", + json: (_entry: Logged, requests: Logged[]) => ({ data: lists(requests).length === 1 ? [shellPermission] : [] }), + thenDelay: 1500, + then: (_entry: Logged, requests: Logged[]) => (lists(requests).length === 1 ? [DROP] : []), + }, + ...(base.routes ?? []), + ], + }, + setup: (root) => config(root), + steps: [ + { ...opened, until: { screen: "Permission required" }, checkpoint: "asked" }, + { until: { screen: "ctrl+p menu" }, settle: 800, checkpoint: "reconnected" }, + ...leave, + ], + exits: true, + requests: "writes", +}) diff --git a/packages/cli-rs/parity/scenarios/M.4/cold-catalog.pty.ts b/packages/cli-rs/parity/scenarios/M.4/cold-catalog.pty.ts new file mode 100644 index 000000000000..aa6274d72024 --- /dev/null +++ b/packages/cli-rs/parity/scenarios/M.4/cold-catalog.pty.ts @@ -0,0 +1,65 @@ +// A cold Location (AGENTS.md "Plugin Loading"): the catalogs answer empty until the plugins load, here once a +// prompt was sent. The `*.updated` events that follow fill in the status row's model and provider names and the +// server's `/` commands, without a restart. +import type { Logged, Route } from "../../lib/fake-server" +import { definePty } from "../../pty/run" +import { config, leave } from "./fixture" +import { catalog } from "./fixture" +import { answer, commands, agents } from "../M.2/fixture" +import { directory, location, server } from "../M.1/fixture" + +const warm = (requests: Logged[]) => + requests.some((entry) => entry.method === "POST" && entry.path.endsWith("/prompt")) + +const cold = (route: Route, data: unknown): Route => ({ + path: route.path, + json: (entry: Logged, requests: Logged[]) => (warm(requests) ? data : { location, data: [] }), +}) + +const listed = (data: unknown[]) => ({ location, data }) + +const updated = (type: string) => ({ + id: `evt_${type.replace(/\W/g, "")}`, + created: 100, + type, + location: { directory }, + data: {}, +}) + +export default definePty({ + args: ["mini", "-s", "ses_mini"], + cols: 70, + rows: 20, + server: server({ + routes: [ + ...catalog.map((route) => cold(route, route.json)), + cold({ path: "/api/agent" }, listed(agents)), + cold({ path: "/api/command" }, listed(commands)), + { path: "/api/reference", json: listed([]) }, + ], + events: (id) => [ + ...answer(id, "Warm now."), + ...["provider.updated", "model.updated", "agent.updated", "command.updated"].map(updated), + ], + }), + setup: (root) => config(root), + steps: [ + { until: { screen: "Third answer" }, settle: 800, timeout: 30_000, checkpoint: "cold" }, + { keys: "/rev", settle: 400, checkpoint: "cold-slash" }, + // Each Escape waits for the list to close: a lone ESC not yet read would join the next key. + { keys: "\x1b", until: { gone: "No matching items" }, settle: 300 }, + { keys: "hello\r", until: { screen: "Demo Model" }, settle: 800, checkpoint: "warm" }, + { keys: "/rev", settle: 400, checkpoint: "warm-slash" }, + { keys: "\x1b", until: { gone: "Review the working tree" }, settle: 300 }, + ...leave, + ], + exits: true, + masks: [ + { + pattern: /^[Bb]uild · Demo Model · <duration>$/, + reason: + "the turn's agent label is read when its line is written: TS writes it on the turn's end, before the " + + "catalog refresh lands; Rust after `session.wait`, after it", + }, + ], +}) diff --git a/packages/cli-rs/parity/scenarios/M.4/default-variant.pty.ts b/packages/cli-rs/parity/scenarios/M.4/default-variant.pty.ts new file mode 100644 index 000000000000..fa7c0bcf018c --- /dev/null +++ b/packages/cli-rs/parity/scenarios/M.4/default-variant.pty.ts @@ -0,0 +1,29 @@ +// A session without a model uses the location's default model, and the variant cycle steps through that model's +// variants however the default model and the provider catalog race. +import { definePty } from "../../pty/run" +import { catalog, config, leave } from "./fixture" +import { server } from "../M.2/fixture" +import { session } from "../M.1/fixture" + +export default definePty({ + args: ["mini", "-s", "ses_mini"], + cols: 70, + rows: 30, + server: server({ + routes: [ + { path: "/api/session/ses_mini", json: { data: session("ses_mini", { model: undefined }) } }, + { path: "/api/model/default", json: { data: { providerID: "demo", id: "other" } }, delay: 300 }, + ...catalog, + ], + }), + setup: (root) => config(root), + steps: [ + { until: { screen: "Other Model" }, settle: 800, timeout: 30_000, checkpoint: "named" }, + { keys: "\x10", settle: 400 }, + { keys: "variant cycle", settle: 300 }, + { keys: "\r", settle: 500, checkpoint: "variant" }, + ...leave, + ], + exits: true, + requests: "writes", +}) diff --git a/packages/cli-rs/parity/scenarios/M.4/fixture.ts b/packages/cli-rs/parity/scenarios/M.4/fixture.ts new file mode 100644 index 000000000000..4f75d2b0bfde --- /dev/null +++ b/packages/cli-rs/parity/scenarios/M.4/fixture.ts @@ -0,0 +1,138 @@ +// M.2's `ses_mini` server with tool calls: a history whose assistant messages call tools, and the events of a live +// turn that runs a shell command and edits a file. +import { assistant, event, server as base, user } from "../M.2/fixture" + +export { config, event, leave } from "../M.2/fixture" + +const tool = (id: string, name: string, state: Record<string, unknown>) => ({ + type: "tool", + id, + name, + state, + time: { created: 10, ran: 10, completed: 1_210 }, +}) + +const done = (input: Record<string, unknown>, text = "", metadata: Record<string, unknown> = {}) => ({ + status: "completed", + input, + content: text ? [{ type: "text", text }] : [], + metadata, +}) + +export const patch = "@@ -1,2 +1,2 @@\n-const a = 1\n+const a = 2\n const b = 3\n" + +// Read, glob, a todo list, and a failed command, then the answer. +export const history = [ + user("msg_u1", "look around", 10), + assistant( + "msg_a1", + [ + tool("call_read", "read", done({ filePath: "/tmp/mini/src/main.ts" }, "one\ntwo")), + tool("call_glob", "glob", done({ pattern: "**/*.ts", path: "/tmp/mini/src" }, "src/main.ts", { count: 1 })), + tool( + "call_todo", + "todowrite", + done({ + todos: [ + { content: "Read the code", status: "completed" }, + { content: "Fix the bug", status: "in_progress" }, + { content: "Skip this", status: "cancelled" }, + ], + }), + ), + tool("call_fail", "bash", { + status: "error", + input: { command: "false" }, + metadata: {}, + error: { type: "tool", message: "exit 1" }, + }), + { type: "text", text: "Looked around." }, + ], + 11, + ), +] + +// A live turn: a shell call with output, an edit with a diff, then the answer. +export const turn = (id: string) => { + const call = (type: string, callID: string, data: Record<string, unknown>, created = 101) => + event(type, { assistantMessageID: "msg_a2", id: callID, ...data }, created) + return [ + event("session.inbox.delivered", { inboxID: id }), + event("session.execution.started", {}), + event("session.step.started", { + assistantMessageID: "msg_a2", + agent: "build", + model: { id: "model", providerID: "demo" }, + started: 101, + }), + call("session.tool.input.started", "call_sh", { name: "bash" }), + call("session.tool.called", "call_sh", { input: { command: "ls src" }, executed: true }), + call( + "session.tool.success", + "call_sh", + { content: [{ type: "text", text: "main.ts\nutil.ts\n" }], metadata: { exit: 0 }, executed: true }, + 2_101, + ), + call("session.tool.input.started", "call_edit", { name: "edit" }), + call("session.tool.called", "call_edit", { input: { filePath: "/tmp/mini/src/main.ts" }, executed: true }), + call( + "session.tool.success", + "call_edit", + { + content: [{ type: "text", text: "Edited." }], + metadata: { files: [{ relativePath: "src/main.ts", type: "update", patch }] }, + executed: true, + }, + 2_301, + ), + event("session.text.delta", { assistantMessageID: "msg_a2", ordinal: 0, delta: "Bumped a." }), + event("session.text.ended", { assistantMessageID: "msg_a2", ordinal: 0, text: "Bumped a." }), + event("session.execution.succeeded", {}), + ] +} + +export const server = () => + base({ + messages: history, + events: (id) => turn(id), + after: (id) => [user(id, "bump a", 100)], + }) + +const listed = (data: unknown[]) => ({ location: { directory: "/tmp/mini" }, data }) + +const model = (providerID: string, id: string, name: string, extra: Record<string, unknown> = {}) => ({ + id, + modelID: id, + providerID, + name, + capabilities: { tools: true, input: ["text"], output: ["text"] }, + variants: [], + time: { released: 0 }, + cost: [], + status: "active", + enabled: true, + limit: { context: 1000, output: 100 }, + ...extra, +}) + +const free = [{ input: 0, output: 0, cache: { read: 0, write: 0 } }] + +// Two providers: the session's `demo/model` and another model with variants, and opencode's free model. +export const catalog = [ + { + path: "/api/provider", + json: listed([ + { id: "demo", name: "Demo", activation: "auto", package: "demo" }, + { id: "opencode", name: "OpenCode Zen", activation: "auto", package: "opencode" }, + ]), + }, + { + path: "/api/model", + json: listed([ + model("demo", "model", "Demo Model"), + model("demo", "other", "Other Model", { variants: [{ id: "high" }, { id: "max" }] }), + model("demo", "old", "Old Model", { status: "deprecated" }), + model("opencode", "zen", "Zen", { cost: free }), + ]), + }, +] diff --git a/packages/cli-rs/parity/scenarios/M.4/images.pty.ts b/packages/cli-rs/parity/scenarios/M.4/images.pty.ts new file mode 100644 index 000000000000..d6c0dba924c5 --- /dev/null +++ b/packages/cli-rs/parity/scenarios/M.4/images.pty.ts @@ -0,0 +1,34 @@ +// A listed prompt with a pasted image prints its caption under the prompt; the same image named twice prints once. +// `session.image_preview` is off, so no picture draws. +import { definePty } from "../../pty/run" +import { config, leave } from "./fixture" +import { assistant, server, user } from "../M.2/fixture" + +const png = "iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAYAAAAfFcSJAAAADUlEQVR42mP8z8BQDwAEhQGAhKmMIQAAAABJRU5ErkJggg==" +const image = (text: string) => ({ + data: png, + mime: "image/png", + source: { type: "inline" }, + mention: { start: 8, end: 8 + text.length, text }, +}) + +const history = [ + { ...user("msg_u1", "look at [Image 1] and [Image 1]", 10), files: [image("[Image 1]"), image("[Image 1]")] }, + assistant("msg_a1", [{ type: "text", text: "A single pixel." }], 11), +] + +export default definePty({ + args: ["mini", "-s", "ses_mini"], + cols: 60, + rows: 16, + server: server({ messages: history }), + setup: (root) => config(root), + steps: [{ until: { screen: "A single pixel." }, settle: 800, timeout: 30_000, checkpoint: "caption" }, ...leave], + exits: true, + masks: [ + { + pattern: /^(ctrl\+x q \d+ pending · )?build · model · demo( · ctrl\+p menu)?$/, + reason: "the status row is not under test", + }, + ], +}) diff --git a/packages/cli-rs/parity/scenarios/M.4/models.pty.ts b/packages/cli-rs/parity/scenarios/M.4/models.pty.ts new file mode 100644 index 000000000000..68e3e0fe15e3 --- /dev/null +++ b/packages/cli-rs/parity/scenarios/M.4/models.pty.ts @@ -0,0 +1,32 @@ +// The status row names the model and provider from the catalog. The command menu's "Switch model" lists the +// catalog (opencode first, deprecated models left out); a pick names the new model, and the variant cycle steps +// through its variants. `/settings` lists mini's settings, and right on Verbosity saves the next preset. +import { definePty } from "../../pty/run" +import { catalog, config, leave } from "./fixture" +import { server } from "../M.2/fixture" + +export default definePty({ + args: ["mini", "-s", "ses_mini"], + cols: 70, + rows: 30, + server: server({ routes: catalog }), + setup: (root) => config(root), + steps: [ + { until: { screen: "Demo Model" }, settle: 800, timeout: 30_000, checkpoint: "named" }, + { keys: "\x10", settle: 400 }, + { keys: "switch model", settle: 300 }, + { keys: "\r", until: { screen: "Select model" }, settle: 500, checkpoint: "models" }, + { keys: "other", settle: 300, checkpoint: "search" }, + { keys: "\r", settle: 500, checkpoint: "picked" }, + { keys: "\x10", settle: 400 }, + { keys: "variant cycle", settle: 300 }, + { keys: "\r", settle: 500, checkpoint: "variant" }, + { keys: "/settings", settle: 300 }, + { keys: "\r", until: { screen: "Settings" }, settle: 500, checkpoint: "settings" }, + { keys: "\x1b[C", settle: 800, checkpoint: "everything" }, + // Escape waits for the settings to close: a lone ESC not yet read would join the next key. + { keys: "\x1b", until: { gone: "left/right change" }, settle: 400 }, + ...leave, + ], + exits: true, +}) diff --git a/packages/cli-rs/parity/scenarios/M.4/mono-keyboard.pty.ts b/packages/cli-rs/parity/scenarios/M.4/mono-keyboard.pty.ts new file mode 100644 index 000000000000..da8c375981da --- /dev/null +++ b/packages/cli-rs/parity/scenarios/M.4/mono-keyboard.pty.ts @@ -0,0 +1,40 @@ +// `/settings` switches Mono on at runtime: mono turns the Kitty keyboard off (`onMonoChange`), as the keyboard +// sequences show. Core 0.9.4 queries the flags once more after it pushes them (parity/deviations/OT094-kitty-requery.md). +import { definePty } from "../../pty/run" +import { config, leave, opened, server } from "../M.2/fixture" + +export default definePty({ + args: ["mini", "-s", "ses_mini"], + cols: 70, + rows: 30, + server: server(), + setup: (root) => config(root), + steps: [ + opened, + { keys: "/settings", settle: 300 }, + { + keys: "\r", + until: { screen: "Settings" }, + settle: 500, + checkpoint: "settings", + deviation: { file: "OT094-kitty-requery", lines: 2 }, + }, + ...Array.from({ length: 7 }, () => ({ keys: "\x1b[B", settle: 150 })), + // TS's open panel animates its spinner preview once mono is on, so the screen does not settle. + { keys: "\x1b[C", until: { screen: /Monochrome UI +on/ } }, + // Escape waits for the settings to close: with mono the Kitty keyboard is off, and a lone ESC not yet read would + // join the next key. + { + keys: "\x1b", + until: { gone: "Monochrome UI" }, + settle: 600, + checkpoint: "mono", + deviation: { file: "OT094-kitty-requery", lines: 2 }, + }, + ...leave, + ], + exits: true, + keyboard: true, + keyboardDeviation: { file: "OT094-kitty-requery", lines: 2 }, + masks: [{ pattern: /^[|┃]$/, reason: "the prompt keeps its border glyph until restart (deviation M06-mini-output)" }], +}) diff --git a/packages/cli-rs/parity/scenarios/M.4/permission-diff.pty.ts b/packages/cli-rs/parity/scenarios/M.4/permission-diff.pty.ts new file mode 100644 index 000000000000..3c2d67d3661c --- /dev/null +++ b/packages/cli-rs/parity/scenarios/M.4/permission-diff.pty.ts @@ -0,0 +1,27 @@ +// An edit waits for permission with its diff: the footer draws it with line numbers and signs, as the scrollback +// draws an edit. +import { definePty } from "../../pty/run" +import { config, leave, opened, server } from "../M.3/fixture" +import { patch } from "./fixture" + +const editPermission = { + id: "per_edit", + sessionID: "ses_mini", + action: "edit", + resources: ["src/main.ts"], + metadata: { filePath: "/tmp/mini/src/main.ts", diff: patch }, +} + +export default definePty({ + args: ["mini", "-s", "ses_mini"], + cols: 80, + rows: 24, + server: server({ permissions: [editPermission] }), + setup: (root) => config(root), + steps: [ + { ...opened, until: { screen: "Permission required" }, checkpoint: "diff" }, + { keys: "\x03", settle: 200 }, + ...leave, + ], + exits: true, +}) diff --git a/packages/cli-rs/parity/scenarios/M.4/splash.pty.ts b/packages/cli-rs/parity/scenarios/M.4/splash.pty.ts new file mode 100644 index 000000000000..7534895b6f56 --- /dev/null +++ b/packages/cli-rs/parity/scenarios/M.4/splash.pty.ts @@ -0,0 +1,25 @@ +// `mini.splash: show`: the transcript starts under the entry header, and leaving writes the exit banner with the +// session's title and the command that resumes it. +import { definePty } from "../../pty/run" +import { config } from "./fixture" +import { server } from "../M.2/fixture" + +export default definePty({ + args: ["mini", "-s", "ses_mini"], + cols: 70, + rows: 24, + server: server(), + setup: (root) => config(root, { splash: "show" }), + steps: [ + { until: { screen: "Third answer" }, settle: 1_200, timeout: 30_000, checkpoint: "entry", scrollback: 4 }, + { keys: "\x03", settle: 200 }, + { keys: "\x03", settle: 800, checkpoint: "exit" }, + ], + exits: true, + masks: [ + { + pattern: /^(ctrl\+x q \d+ pending · )?build · model · demo( · ctrl\+p menu)?$/, + reason: "the status row is not under test", + }, + ], +}) diff --git a/packages/cli-rs/parity/scenarios/M.4/tools.pty.ts b/packages/cli-rs/parity/scenarios/M.4/tools.pty.ts new file mode 100644 index 000000000000..a93de4fe30ac --- /dev/null +++ b/packages/cli-rs/parity/scenarios/M.4/tools.pty.ts @@ -0,0 +1,40 @@ +// `mini.tools: show` with shell output: the replayed history draws its tool calls (read, glob, todos, a failed +// command), and a live turn streams a shell call's output and an edit's diff. +import { definePty } from "../../pty/run" +import { config, leave, server } from "./fixture" + +export default definePty({ + args: ["mini", "-s", "ses_mini"], + cols: 70, + rows: 30, + server: server(), + setup: (root) => config(root, { tools: "show", shell_output: "show" }), + // The idle status row starts with the agent. The busy one starts with a static `▪`, and the turn ends after + // the session wait answers, so the screen can rest on a busy row longer than a settle under load: wait for the + // turn summary and the idle row. + steps: [ + { + until: { screen: /Looked around\.[\s\S]*^build · model · demo/m }, + settle: 800, + timeout: 30_000, + checkpoint: "history", + scrollback: 10, + }, + { keys: "bump a", settle: 300 }, + { + keys: "\r", + until: { screen: /Bumped a\.\s*build · model · \d[\s\S]*^build · model · demo/m }, + settle: 1_000, + checkpoint: "turn", + scrollback: 20, + }, + ...leave, + ], + exits: true, + masks: [ + { + pattern: /^(ctrl\+x q \d+ pending · )?build · model · demo( · ctrl\+p menu)?$/, + reason: "the status row is not under test", + }, + ], +}) diff --git a/packages/cli-rs/parity/scenarios/M.5/fixture.ts b/packages/cli-rs/parity/scenarios/M.5/fixture.ts new file mode 100644 index 000000000000..c6afdd08feb2 --- /dev/null +++ b/packages/cli-rs/parity/scenarios/M.5/fixture.ts @@ -0,0 +1,118 @@ +// M.3's `ses_mini` server with two child sessions its subagent calls started: `ses_run` still runs, and `ses_done` +// finished. The children's reads (messages, inbox, permissions, forms), the family index, and the write the +// subagent views make (interrupt) are routed here. +import type { Logged, Options, Route } from "../../lib/fake-server" +import { assistant, directory, history, user } from "../M.1/fixture" +import { server as base } from "../M.3/fixture" + +export { config, event, leave } from "../M.3/fixture" + +const subagent = (id: string, child: string, running: boolean, agent: string, description: string) => ({ + type: "tool", + id, + name: "subagent", + state: running + ? { status: "running", input: { agent, description }, metadata: { sessionID: child, status: "running" } } + : { + status: "completed", + input: { agent, description }, + content: [{ type: "text", text: "Read them." }], + metadata: { sessionID: child, status: "completed" }, + }, + time: running ? { created: 40, ran: 40 } : { created: 40, ran: 40, completed: 41 }, +}) + +// The history, then a turn that started both children. +export const messages = [ + ...history, + user("msg_u4", "check the tests", 40), + assistant( + "msg_a4", + [ + subagent("call_done", "ses_done", false, "general", "Read the docs"), + subagent("call_run", "ses_run", true, "explore", "Find the tests"), + ], + 41, + ), +] + +const child = (session: string) => [ + { ...user("msg_c1", "Read the docs and sum them up", 50), sessionID: session }, + { + ...assistant("msg_c2", [{ type: "text", text: "The docs cover setup and testing." }], 51), + sessionID: session, + }, +] + +type Script = Parameters<typeof base>[0] & { + // Requests the children wait on when mini opens the session. + childPermissions?: unknown[] + // Holds the child's permission list until a `release` step names its path (`CHILD_PERMISSIONS`). + holdChildPermissions?: boolean + globalForms?: unknown[] +} + +const listed = (entry: Logged, all: unknown[]) => + entry.query.order?.[0] === "desc" ? { data: all.toReversed(), cursor: {} } : { data: all, cursor: {} } + +const location = { directory } + +export const CHILD_PERMISSIONS = "/api/session/ses_run/permission" + +export function server(script: Script = {}): Options { + const options = base({ messages, ...script }) + const reads = (session: string, permissions: unknown[] = [], hold?: boolean): Route[] => [ + { path: `/api/session/${session}/message`, json: (entry: Logged) => listed(entry, child(session)) }, + { path: `/api/session/${session}/inbox`, json: { data: [] } }, + { path: `/api/session/${session}/permission`, json: { data: permissions }, hold }, + { path: `/api/session/${session}/form`, json: { data: [] } }, + ] + const routes: Route[] = [ + { path: "/api/session/active", json: { data: { ses_run: { type: "busy" } } } }, + { path: "/api/session", json: { data: [], cursor: {} } }, + { path: "/api/form", json: { location, data: script.globalForms ?? [] } }, + ...reads("ses_run", script.childPermissions, script.holdChildPermissions), + ...reads("ses_done"), + { method: "POST", path: "/api/session/ses_run/interrupt", json: { interrupted: true } }, + { + method: "POST", + path: "/api/session/ses_run/permission/:id/reply", + status: 204, + then: (entry: Logged) => [ + { + id: "evt_childreplied0001", + created: 120, + type: "permission.replied", + durable: { aggregateID: "ses_run", seq: 1, version: 1 }, + data: { + sessionID: "ses_run", + requestID: entry.path.split("/").at(-2), + reply: (entry.body as { decision: string }).decision, + }, + }, + ], + }, + { + method: "POST", + path: "/api/session/global/form/:id/reply", + status: 204, + then: (entry: Logged) => [ + { + id: "evt_globalreplied0001", + created: 121, + type: "form.replied", + location, + data: { + sessionID: "global", + id: entry.path.split("/").at(-2), + answer: (entry.body as { answer: unknown }).answer, + }, + }, + ], + }, + ] + return { ...options, routes: [...routes, ...(options.routes ?? [])] } +} + +// The children's tabs are in: the status row counts the running one. +export const opened = { until: { screen: "1 sub" }, settle: 800, timeout: 30_000 } diff --git a/packages/cli-rs/parity/scenarios/M.5/report.pty.ts b/packages/cli-rs/parity/scenarios/M.5/report.pty.ts new file mode 100644 index 000000000000..5191aa30ad8c --- /dev/null +++ b/packages/cli-rs/parity/scenarios/M.5/report.pty.ts @@ -0,0 +1,62 @@ +// Subagents always run in the background (#63382), and each time a child goes idle its report wakes the parent +// (#63209). With `mini.tools: show`, a prompt's turn launches a subagent: the launch completes while the child +// still runs, so the scrollback shows the subagent card, not the launch instructions (#63389). Then the child goes +// idle, its report is delivered to the parent, and the parent turn the report starts streams with no prompt from +// the user. +import { definePty } from "../../pty/run" +import { history } from "../M.1/fixture" +import { answer } from "../M.2/fixture" +import { config, event, leave, server } from "./fixture" + +const launch = (id: string) => { + const call = (type: string, data: Record<string, unknown>) => + event(type, { assistantMessageID: "msg_a5", id: "call_run", ...data }, 101) + return [ + event("session.inbox.delivered", { inboxID: id }), + event("session.execution.started", {}), + event("session.step.started", { + assistantMessageID: "msg_a5", + agent: "build", + model: { id: "model", providerID: "demo" }, + started: 101, + }), + call("session.tool.input.started", { name: "subagent" }), + call("session.tool.called", { input: { agent: "explore", description: "Find the tests" }, executed: true }), + call("session.tool.success", { + content: [ + { + type: "text", + text: "The subagent is working in the background (sessionID: ses_run). You will receive a <subagent> message when it goes idle, and again after each later round of work.", + }, + ], + metadata: { sessionID: "ses_run", status: "running" }, + executed: true, + }), + event("session.text.delta", { assistantMessageID: "msg_a5", ordinal: 0, delta: "Launched a subagent." }), + event("session.text.ended", { assistantMessageID: "msg_a5", ordinal: 0, text: "Launched a subagent." }), + event("session.execution.succeeded", {}), + ] +} + +export default definePty({ + args: ["mini", "-s", "ses_mini"], + cols: 80, + rows: 30, + server: server({ + messages: history, + events: (id) => [ + ...launch(id), + event("session.execution.succeeded", { sessionID: "ses_run" }, 110), + ...answer("msg_report", "The tests pass; the report is in.", "msg_a6"), + ], + }), + setup: (root) => config(root, { tools: "show" }), + steps: [ + { until: { screen: "Third answer" }, settle: 800, timeout: 30_000 }, + { keys: "check the tests", settle: 300 }, + { keys: "\r", until: { screen: "the report is in" }, settle: 800, checkpoint: "reaction", scrollback: 20 }, + ...leave, + ], + exits: true, + requests: "writes", +}) diff --git a/packages/cli-rs/parity/scenarios/M.5/requests.pty.ts b/packages/cli-rs/parity/scenarios/M.5/requests.pty.ts new file mode 100644 index 000000000000..d5eb6d355abe --- /dev/null +++ b/packages/cli-rs/parity/scenarios/M.5/requests.pty.ts @@ -0,0 +1,55 @@ +// A running child waits on a permission and a form of no session waits at the session's location when mini opens. +// The child's permission takes over; Allow once answers it under the child's session. The global form follows; +// its answer goes to `session/global` with the location in a header, and the server's events take both away. +// +// The child's permission list is held until each side has drawn the global form, so both show the form first (17 +// rows) and then shrink to the permission (15). A split footer that shrinks keeps its top row and clears the freed rows below (Core 0.9.4 and +// OpenTUI's Rust crates). Without the hold, which comes first raced: a client that learned of the permission before +// it drew the form never shrank, and its panel sat two rows lower. +import { definePty } from "../../pty/run" +import { CHILD_PERMISSIONS, config, leave, server } from "./fixture" + +const childPermission = { + id: "per_child", + sessionID: "ses_run", + action: "webfetch", + resources: ["https://example.com/tests"], + metadata: { url: "https://example.com/tests" }, +} + +const globalForm = { + id: "frm_global", + sessionID: "global", + title: "Connect the tracker", + fields: [{ type: "boolean", key: "connect", title: "Connect now?", required: true }], +} + +export default definePty({ + args: ["mini", "-s", "ses_mini"], + cols: 80, + rows: 24, + server: server({ childPermissions: [childPermission], holdChildPermissions: true, globalForms: [globalForm] }), + setup: (root) => config(root), + steps: [ + // The global form is drawn under the replayed transcript; then the child's permission list is answered. + { + until: { screen: /› check the tests[\s\S]*Connect the tracker/ }, + settle: 800, + timeout: 30_000, + release: CHILD_PERMISSIONS, + }, + // The footer can show the permission before the replayed transcript is written, so wait for the transcript's + // last row and the footer's. + { + until: { screen: /› check the tests[\s\S]*Permission required[\s\S]*Allow once/ }, + settle: 800, + timeout: 30_000, + checkpoint: "permission", + }, + { keys: "\r", until: { screen: "Connect the tracker" }, settle: 500, checkpoint: "form" }, + { keys: "1", until: { screen: "1 sub" }, settle: 600, checkpoint: "answered" }, + ...leave, + ], + exits: true, + requests: "writes", +}) diff --git a/packages/cli-rs/parity/scenarios/M.5/subagents.pty.ts b/packages/cli-rs/parity/scenarios/M.5/subagents.pty.ts new file mode 100644 index 000000000000..d6beb6f11824 --- /dev/null +++ b/packages/cli-rs/parity/scenarios/M.5/subagents.pty.ts @@ -0,0 +1,32 @@ +// Two child sessions from the history's subagent calls: the status row counts the running one; subagents always +// run in the background, so it offers no `session.background` key. The command menu lists them; Down on the empty +// prompt opens the subagent panel with the running child, Tab shows the finished one, and Enter inspects its +// transcript. Escape goes back, and the running child's inspector's Ctrl+D interrupts it. +import { definePty } from "../../pty/run" +import { config, leave, opened, server } from "./fixture" + +export default definePty({ + args: ["mini", "-s", "ses_mini"], + cols: 80, + rows: 30, + server: server(), + setup: (root) => config(root), + steps: [ + { ...opened, checkpoint: "hints" }, + { keys: "\x10", until: { screen: "View subagents" }, settle: 400, checkpoint: "menu" }, + // Escape waits for the menu to close: a lone ESC not yet read would join the arrow as Alt+Down. + { keys: "\x1b", until: { gone: "View subagents" }, settle: 300 }, + { keys: "\x1b[B", until: { screen: "Select subagent" }, settle: 400, checkpoint: "panel" }, + { keys: "\t", settle: 300, checkpoint: "inactive" }, + { keys: "\r", until: { screen: "The docs cover" }, settle: 500, checkpoint: "inspector" }, + { keys: "\x1b", until: { screen: "1 sub" }, settle: 400 }, + { keys: "\x1b[B", until: { screen: "Select subagent" }, settle: 300 }, + // The running child's spinner turns, so the screen never settles. + { keys: "\r", until: { screen: "ctrl+d interrupt" } }, + { keys: "\x04", until: { screen: "ctrl+d interrupt" } }, + { keys: "\x1b", until: { screen: "1 sub" }, settle: 400, checkpoint: "back" }, + ...leave, + ], + exits: true, + requests: "writes", +}) diff --git a/packages/cli-rs/parity/scenarios/OT/brackets-escapes.sim.ts b/packages/cli-rs/parity/scenarios/OT/brackets-escapes.sim.ts new file mode 100644 index 000000000000..8a6b5f9fc553 --- /dev/null +++ b/packages/cli-rs/parity/scenarios/OT/brackets-escapes.sim.ts @@ -0,0 +1,25 @@ +// A reply with a bracketed label that is not a link and a backslash escape: the brackets show and the backslash +// goes, as CommonMark says (OpenTUI #2049, on both sides since 0.9.4). +import { defineSim } from "../../sim/scenario" + +const duration = { line: "· \\d.*", reason: "the turn duration depends on timing, also in length; the row ends there" } + +export default defineSim({ + model: [ + { + items: [ + { + type: "textDelta", + text: ["[shell] hello-again", "", 'Invalid arguments for tool \\"prune\\".'].join("\n"), + }, + ], + }, + ], + steps: [ + { until: "Simulated Model" }, + { type: "Show the labels" }, + { until: "Show the labels" }, + { enter: true }, + { checkpoint: "done", until: "prune", masks: [duration] }, + ], +}) diff --git a/packages/cli-rs/parity/scenarios/OT/extmark-chips.pty.ts b/packages/cli-rs/parity/scenarios/OT/extmark-chips.pty.ts new file mode 100644 index 000000000000..74227e6d339e --- /dev/null +++ b/packages/cli-rs/parity/scenarios/OT/extmark-chips.pty.ts @@ -0,0 +1,45 @@ +// Two `[Image 1]` labels with the space between them deleted. From the end of the second, Left skips only the second +// label; from the line start, two Rights skip only the first (OpenTUI #2104, on both sides since 0.9.4). A typed key +// shows where the cursor is. +import { definePty } from "../../pty/run" +import { home, homeMasks, paste } from "./home" + +// A 1x1 PNG. +const png = "iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAYAAAAfFcSJAAAADUlEQVR42mP8z8BQDwAEhQGAhKmMIQAAAABJRU5ErkJggg==" + +export default definePty({ + args: [], + cols: 100, + rows: 30, + ...home, + setup: async (root) => { + await Bun.write(`${root}/work/img.png`, Buffer.from(png, "base64")) + }, + steps: [ + { until: { screen: "█▀▀█" }, settle: 500, timeout: 30_000 }, + { keys: "a ", settle: 300 }, + { keys: paste("img.png"), until: { screen: "[Image 1]" }, settle: 600 }, + // The same image again: both clients label it `[Image 1]` again. + { keys: paste("img.png"), until: { screen: "] [Image 1]" }, settle: 600 }, + // Left over the space after the second label, Left before it, Delete the space between the labels. + { keys: "\x1b[D", settle: 300 }, + { keys: "\x1b[D", settle: 300 }, + { keys: "\x1b[3~", settle: 400, checkpoint: "joined" }, + // Between the labels, Delete and Backspace each delete one label, and undo (Ctrl+-) brings it back: equal. + { keys: "\x1b[3~", settle: 400, checkpoint: "deleted" }, + { keys: "\x1b[45;5u", settle: 400, checkpoint: "delete-undone" }, + { keys: "\x7f", settle: 400, checkpoint: "backspaced" }, + { keys: "\x1b[45;5u", settle: 400, checkpoint: "backspace-undone" }, + { keys: "\x1b[C", settle: 300, checkpoint: "right-from-joint" }, + { keys: "\x1b[D", settle: 300, checkpoint: "left-pair" }, + { keys: "X", settle: 400, checkpoint: "left-typed" }, + { keys: "\x7f", settle: 300 }, + { keys: "\x1b[H", settle: 300 }, + { keys: "\x1b[C", settle: 300 }, + { keys: "\x1b[C", settle: 300, checkpoint: "right-pair" }, + { keys: "Y", settle: 400, checkpoint: "right-typed" }, + ], + cursor: true, + osc: [], + masks: homeMasks, +}) diff --git a/packages/cli-rs/parity/scenarios/OT/extmark-mouse.pty.ts b/packages/cli-rs/parity/scenarios/OT/extmark-mouse.pty.ts new file mode 100644 index 000000000000..9b25b10186d7 --- /dev/null +++ b/packages/cli-rs/parity/scenarios/OT/extmark-mouse.pty.ts @@ -0,0 +1,45 @@ +// The mouse ends inside an `[Image 1]` label. Both clients move the cursor to the label's nearer edge (a click, a +// drag) or to its end (a double-click, then Right), TS since #63989 (Core with #2064). On the press itself, Core moves +// the cursor already and Rust only at the release (parity/deviations/OT2064-extmark-mouse.md). +import { definePty } from "../../pty/run" +import { home, homeMasks, move, paste, press, release } from "./home" + +// A 1x1 PNG. +const png = "iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAYAAAAfFcSJAAAADUlEQVR42mP8z8BQDwAEhQGAhKmMIQAAAABJRU5ErkJggg==" + +export default definePty({ + args: [], + cols: 100, + rows: 30, + ...home, + setup: async (root) => { + await Bun.write(`${root}/work/img.png`, Buffer.from(png, "base64")) + }, + steps: [ + { until: { screen: "█▀▀█" }, settle: 500, timeout: 30_000 }, + { keys: "a ", settle: 300 }, + { keys: paste("img.png"), until: { screen: "[Image 1]" }, settle: 600 }, + { keys: "b", settle: 300, checkpoint: "label" }, + // Row 17, columns 19 to 27 hold the label. + { + keys: press(22, 17), + settle: 200, + checkpoint: "pressed", + deviation: { file: "OT2064-extmark-mouse", lines: 1 }, + }, + { keys: release(22, 17), settle: 400, checkpoint: "clicked" }, + { keys: "X", settle: 400, checkpoint: "click-typed" }, + { keys: "\x7f", settle: 300 }, + { keys: press(16, 17), settle: 100 }, + { keys: move(19, 17) + move(22, 17), settle: 100 }, + { keys: release(22, 17), settle: 400, checkpoint: "dragged" }, + { keys: "\x1b[C", settle: 200 }, + { keys: press(25, 17) + release(25, 17), settle: 200 }, + { keys: press(25, 17) + release(25, 17), settle: 400, checkpoint: "double" }, + { keys: "\x1b[C", settle: 300 }, + { keys: "Y", settle: 400, checkpoint: "double-typed" }, + ], + cursor: true, + osc: [], + masks: homeMasks, +}) diff --git a/packages/cli-rs/parity/scenarios/OT/extmark-step.pty.ts b/packages/cli-rs/parity/scenarios/OT/extmark-step.pty.ts new file mode 100644 index 000000000000..0043c5a8b80a --- /dev/null +++ b/packages/cli-rs/parity/scenarios/OT/extmark-step.pty.ts @@ -0,0 +1,22 @@ +// Left from the end of a paste label after a CJK character puts the cursor on the character's first cell (column 17; +// OpenTUI #2050, on both sides since 0.9.4). The next key goes in front of the character. +import { definePty } from "../../pty/run" +import { home, homeMasks, paste } from "./home" + +export default definePty({ + args: [], + cols: 100, + rows: 30, + ...home, + steps: [ + { until: { screen: "█▀▀█" }, settle: 500, timeout: 30_000 }, + { keys: "a界", settle: 300 }, + { keys: paste("one\ntwo\nthree\nfour\nfive"), until: { screen: "Pasted" }, settle: 500, checkpoint: "pasted" }, + // The first Left crosses the space the paste adds after its label. + { keys: "\x1b[D", settle: 300 }, + { keys: "\x1b[D", settle: 300, checkpoint: "left" }, + { keys: "X", settle: 500, checkpoint: "typed" }, + ], + cursor: true, + masks: homeMasks, +}) diff --git a/packages/cli-rs/parity/scenarios/OT/extmark-wheel.pty.ts b/packages/cli-rs/parity/scenarios/OT/extmark-wheel.pty.ts new file mode 100644 index 000000000000..f5dc045593ea --- /dev/null +++ b/packages/cli-rs/parity/scenarios/OT/extmark-wheel.pty.ts @@ -0,0 +1,32 @@ +// Wheel steps up a prompt of short lines that do not wrap, with the cursor at column 8 of each line, until the cursor +// reaches the line whose `[Image 1]` label spans that column. Both clients move it to the label's start, TS since +// #63989 (Core with #2064, parity/deviations/OT2064-extmark-mouse.md). +import { definePty } from "../../pty/run" +import { home, homeMasks, paste, wheelUp } from "./home" + +const png = "iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAYAAAAfFcSJAAAADUlEQVR42mP8z8BQDwAEhQGAhKmMIQAAAABJRU5ErkJggg==" +const lines = (from: number) => + Array.from({ length: 12 }, (_, index) => `\nline ${String(from + index).padStart(2, "0")}x`).join("") + +export default definePty({ + args: [], + cols: 100, + rows: 30, + ...home, + setup: async (root) => { + await Bun.write(`${root}/work/img.png`, Buffer.from(png, "base64")) + }, + steps: [ + { until: { screen: "█▀▀█" }, settle: 500, timeout: 30_000 }, + { keys: "line 00x" + lines(1) + "\ntop ", until: { screen: "top" }, settle: 300 }, + { keys: paste("img.png"), until: { screen: "[Image 1]" }, settle: 600 }, + { keys: " end", settle: 300 }, + { keys: lines(13), until: { screen: "line 24x" }, settle: 500, checkpoint: "typed" }, + ...Array.from({ length: 9 }, () => ({ keys: wheelUp(40, 20), settle: 200 })), + { keys: "", settle: 200, checkpoint: "above" }, + { keys: wheelUp(40, 20), settle: 400, checkpoint: "on-label" }, + { keys: "X", settle: 400, checkpoint: "label-typed" }, + ], + cursor: true, + masks: homeMasks, +}) diff --git a/packages/cli-rs/parity/scenarios/OT/extmark-wrapped-up.pty.ts b/packages/cli-rs/parity/scenarios/OT/extmark-wrapped-up.pty.ts new file mode 100644 index 000000000000..6e3490baa353 --- /dev/null +++ b/packages/cli-rs/parity/scenarios/OT/extmark-wrapped-up.pty.ts @@ -0,0 +1,29 @@ +// A file mention long enough to wrap over three rows. Up from its end moves before the mention (OpenTUI #2104, on +// both sides since 0.9.4). A typed key shows where the cursor is. +import { definePty } from "../../pty/run" +import { home, homeMasks } from "./home" + +// No `/`: `homeMasks` masks a line from its first `/`. +const file = "long_".repeat(32) + "file.ts" + +export default definePty({ + args: [], + cols: 100, + rows: 30, + ...home, + server: { + ...home.server, + routes: [{ path: "/api/fs/find", json: { location: { directory: "/tmp" }, data: [{ path: file, type: "file" }] } }], + }, + steps: [ + { until: { screen: "█▀▀█" }, settle: 500, timeout: 30_000 }, + { keys: "@file", until: { screen: "file.ts" }, settle: 600, checkpoint: "listed" }, + { keys: "\r", settle: 400, checkpoint: "picked" }, + // Left over the space after the mention. + { keys: "\x1b[D", settle: 300 }, + { keys: "\x1b[A", settle: 300, checkpoint: "up" }, + { keys: "X", settle: 400, checkpoint: "up-typed" }, + ], + cursor: true, + masks: homeMasks, +}) diff --git a/packages/cli-rs/parity/scenarios/OT/held-fence.sim.ts b/packages/cli-rs/parity/scenarios/OT/held-fence.sim.ts new file mode 100644 index 000000000000..7b395ac7c85c --- /dev/null +++ b/packages/cli-rs/parity/scenarios/OT/held-fence.sim.ts @@ -0,0 +1,35 @@ +// A reply streams a LaTeX fence whose first line renders, then math that does not and the closing fence without its +// line ending, and pauses there. Both clients hold the closer's line, so the fence still streams and keeps the formula +// (TS since #63989, on Core's engine; `parity/deviations/OT2049-markdown-engine.md` has the history). Once more text +// comes, both show the source. TS draws the formula a row lower (`parity/deviations/F16-plugin-fence-margin.md`). +import { defineSim } from "../../sim/scenario" + +const duration = { line: "· \\d.*", reason: "the turn duration depends on timing, also in length; the row ends there" } + +export default defineSim({ + model: [ + { + items: [ + { type: "textDelta", text: "Math:\n\n```latex\nx^2" }, + { hold: "formula" }, + { type: "textDelta", text: " + \\unsupported{x}\n```" }, + { hold: "closed" }, + { type: "textDelta", text: "\n\nDone." }, + ], + }, + ], + steps: [ + { until: "Simulated Model" }, + { type: "Show the formula" }, + { until: "Show the formula" }, + { enter: true }, + { checkpoint: "formula", until: "x²", deviation: [{ file: "F16-plugin-fence-margin", cells: 4 }] }, + { release: "formula" }, + // The closer has arrived without its line ending: both keep the formula they rendered last, so no text marks the + // frame. + { sleep: 1500 }, + { checkpoint: "closed", deviation: [{ file: "F16-plugin-fence-margin", cells: 4 }] }, + { release: "closed" }, + { checkpoint: "done", until: "Done.", masks: [duration] }, + ], +}) diff --git a/packages/cli-rs/parity/scenarios/OT/home.ts b/packages/cli-rs/parity/scenarios/OT/home.ts new file mode 100644 index 000000000000..46f98b0c3c68 --- /dev/null +++ b/packages/cli-rs/parity/scenarios/OT/home.ts @@ -0,0 +1,23 @@ +// The TUI home against the fake server, as E.20/copy runs it, for the OpenTUI deviation scenarios. +const config = JSON.stringify({ experimental: { "new-designs": true }, debug: { devtools: false } }) + +export const home = { + env: { OPENCODE_CLI_CONFIG_CONTENT: config }, + server: { fallback: "tui" as const }, +} + +export const homeMasks = [ + { + pattern: /(<root>|\/)\S*(\s+shift\+tab agents.*)?$/, + reason: "the prompt footer: the location (the server's default in TS, the launch directory in Rust) and E.14's hints", + }, + { pattern: /Ask anything… ".*"$/, reason: "the placeholder example: random in TS and Rust" }, +] + +export const paste = (text: string) => `\x1b[200~${text}\x1b[201~` + +// SGR mouse reports, 1-based cells. +export const press = (x: number, y: number) => `\x1b[<0;${x};${y}M` +export const release = (x: number, y: number) => `\x1b[<0;${x};${y}m` +export const move = (x: number, y: number) => `\x1b[<32;${x};${y}M` +export const wheelUp = (x: number, y: number) => `\x1b[<64;${x};${y}M` diff --git a/packages/cli-rs/parity/scenarios/OT/kitty-preview.pty.ts b/packages/cli-rs/parity/scenarios/OT/kitty-preview.pty.ts new file mode 100644 index 000000000000..23664c6f9291 --- /dev/null +++ b/packages/cli-rs/parity/scenarios/OT/kitty-preview.pty.ts @@ -0,0 +1,81 @@ +// The image preview over the prompt's Kitty thumbnail, on a terminal that shows Kitty graphics with 20x40-pixel cells. +// In the preview a 1600x1200 noise image is no smaller than its source, so its upload is larger than one frame's +// output. TS sends it with Kitty across frames; Rust, since anomalyco/opentui#2135, sends one copy that fits a frame. +// Both show it with Kitty, so the open preview compares, and closing it leaves no block glyph over the thumbnail +// (anomalyco/opentui#2130, which cleared the half blocks Rust drew there before #2135). +import { tmpdir } from "node:os" +import path from "node:path" +import { deflateSync } from "node:zlib" +import { definePty } from "../../pty/run" +import { homeMasks, paste, press, release } from "./home" + +const png = path.join(tmpdir(), "opencode-parity-kitty-preview.png") +const config = { experimental: { "new-designs": true }, debug: { devtools: false }, prompt: { image_preview: true } } +// Block glyphs other than the logo's (`█▀▄`). +const quadrants = /[▖▗▘▙▚▛▜▝▞▟▌▐]/ + +export default definePty({ + args: [], + cols: 120, + rows: 40, + env: { OPENCODE_CLI_CONFIG_CONTENT: JSON.stringify(config) }, + server: { fallback: "tui" }, + graphics: { cell: 20 }, + setup: async () => { + await Bun.write(png, noise(1600, 1200)) + }, + steps: [ + { until: { screen: "█▀▀█" }, settle: 500, timeout: 30_000 }, + { keys: paste(png), until: { screen: "[Image 1]" }, settle: 1500, checkpoint: "thumbnail" }, + // The thumbnail sits above `[Image 1]`, at the prompt's left. + { + keys: press(30, 22) + release(30, 22), + until: { screen: "Image 1 of 1" }, + settle: 1500, + timeout: 20_000, + checkpoint: "preview", + }, + { keys: "\x1b", until: { screen: "[Image 1]" }, settle: 1500, absent: "Image 1 of 1", checkpoint: "closed" }, + ], + masks: homeMasks, + // The thumbnail is Kitty's, so the prompt's rows above `[Image 1]` hold no block glyph. + verify: ({ screen }) => { + const label = screen.findIndex((line) => line.includes("[Image 1]")) + const left = screen + .slice(0, label) + .flatMap((line, row) => (line.trimStart().startsWith("┃") && quadrants.test(line) ? [`${row}: ${line}`] : [])) + return left.length ? [`block glyphs left over the thumbnail:\n${left.join("\n")}`] : [] + }, +}) + +// An RGB PNG of seeded noise, which no compression shrinks. +function noise(width: number, height: number) { + const raw = new Uint8Array((width * 3 + 1) * height) + // xorshift32: a linear congruential generator's bytes compress. + let state = 2463534242 + for (let at = 0; at < raw.length; at++) { + state ^= state << 13 + state ^= state >>> 17 + state ^= state << 5 + raw[at] = at % (width * 3 + 1) === 0 ? 0 : state & 255 + } + const chunk = (kind: string, data: Uint8Array) => { + const out = new Uint8Array(data.length + 12) + const view = new DataView(out.buffer) + view.setUint32(0, data.length) + out.set(new TextEncoder().encode(kind), 4) + out.set(data, 8) + view.setUint32(data.length + 8, Bun.hash.crc32(out.subarray(4, data.length + 8))) + return out + } + const header = new DataView(new ArrayBuffer(13)) + header.setUint32(0, width) + header.setUint32(4, height) + new Uint8Array(header.buffer).set([8, 2, 0, 0, 0], 8) + return Buffer.concat([ + new Uint8Array([0x89, 0x50, 0x4e, 0x47, 0x0d, 0x0a, 0x1a, 0x0a]), + chunk("IHDR", new Uint8Array(header.buffer)), + chunk("IDAT", deflateSync(raw, { level: 1 })), + chunk("IEND", new Uint8Array()), + ]) +} diff --git a/packages/cli-rs/parity/scenarios/OT/late-width.pty.ts b/packages/cli-rs/parity/scenarios/OT/late-width.pty.ts new file mode 100644 index 000000000000..40328b481e05 --- /dev/null +++ b/packages/cli-rs/parity/scenarios/OT/late-width.pty.ts @@ -0,0 +1,32 @@ +// A width-method change after startup (record 692). The terminal's DECRPM 2027 reply arrives once the home screen and +// its prompt exist. It says the terminal does not cluster graphemes (mode 0), so text is measured by code point from +// then on (wcwidth). `👍🏽` (a thumb and a skin tone) is then 4 cells, not 2. The prompt's textarea was created before +// the reply; the cursor after the typed `👍🏽` shows that it measures with the new method (OpenTUI #2148, on both +// sides since 0.9.4). +import { definePty } from "../../pty/run" + +const config = JSON.stringify({ experimental: { "new-designs": true }, debug: { devtools: false } }) + +export default definePty({ + args: [], + cols: 100, + rows: 30, + env: { OPENCODE_CLI_CONFIG_CONTENT: config }, + server: { fallback: "tui" }, + cursor: true, + steps: [ + { until: { screen: "█▀▀█" }, settle: 500, timeout: 30_000 }, + // The late reply, as the terminal would send it, after setup's wait has ended. + { keys: "\x1b[?2027;0$y", settle: 500 }, + { keys: "👍🏽", settle: 500, checkpoint: "typed" }, + ], + osc: [], + masks: [ + { pattern: /Ask anything… .*$/, reason: "the placeholder example: random in TS and Rust" }, + { + pattern: /(<root>|\/)\S*(\s+shift\+tab agents.*)?$/, + reason: + "the prompt footer: the location (the server's default in TS, the launch directory in Rust) and E.14's hints", + }, + ], +}) diff --git a/packages/cli-rs/parity/scenarios/OT/line-end.pty.ts b/packages/cli-rs/parity/scenarios/OT/line-end.pty.ts new file mode 100644 index 000000000000..82d4a284cf5c --- /dev/null +++ b/packages/cli-rs/parity/scenarios/OT/line-end.pty.ts @@ -0,0 +1,20 @@ +// The command palette's search field holds more text than it shows. After Ctrl+A, `input.visual.line.end` (Alt+E) +// moves to the end of the text, so `X` goes there (OpenTUI #2053, on both sides since 0.9.4). +import { definePty } from "../../pty/run" +import { home, homeMasks } from "./home" + +export default definePty({ + args: [], + cols: 100, + rows: 30, + ...home, + steps: [ + { until: { screen: "█▀▀█" }, settle: 500, timeout: 30_000 }, + { keys: "\x10", until: { screen: "Search commands" }, settle: 500 }, + { keys: "abcdefghij".repeat(9), settle: 500, checkpoint: "typed" }, + { keys: "\x01", settle: 300, checkpoint: "start" }, + { keys: "\x1be", settle: 300 }, + { keys: "X", settle: 500, checkpoint: "end" }, + ], + masks: homeMasks, +}) diff --git a/packages/cli-rs/parity/scenarios/OT/link-definitions.sim.ts b/packages/cli-rs/parity/scenarios/OT/link-definitions.sim.ts new file mode 100644 index 000000000000..e12546be6e8e --- /dev/null +++ b/packages/cli-rs/parity/scenarios/OT/link-definitions.sim.ts @@ -0,0 +1,37 @@ +// A reply with reference links, a table, and the link reference definitions at its end: the definitions hide and +// every link resolves, as CommonMark says (OpenTUI #2049, on both sides since 0.9.4). +import { defineSim } from "../../sim/scenario" + +const duration = { line: "· \\d.*", reason: "the turn duration depends on timing, also in length; the row ends there" } + +export default defineSim({ + model: [ + { + items: [ + { + type: "textDelta", + text: [ + "Two spots by the lake:", + "", + "| Spot | Why |", + "| --- | --- |", + "| Harbor | [nearby café][cafes] |", + "| Pier | [forecast][weather] |", + "", + "Try the [nearby café][cafes] first.", + "", + "[cafes]: https://example.com/cafes", + "[weather]: https://example.com/weather", + ].join("\n"), + }, + ], + }, + ], + steps: [ + { until: "Simulated Model" }, + { type: "Link the cafes" }, + { until: "Link the cafes" }, + { enter: true }, + { checkpoint: "done", until: "first.", masks: [duration] }, + ], +}) diff --git a/packages/cli-rs/parity/scenarios/OT/lost-release.pty.ts b/packages/cli-rs/parity/scenarios/OT/lost-release.pty.ts new file mode 100644 index 000000000000..47914acfad4f --- /dev/null +++ b/packages/cli-rs/parity/scenarios/OT/lost-release.pty.ts @@ -0,0 +1,25 @@ +// A drag over the prompt text whose release never comes, then a new press, drag and release over "text". The press +// ends the old drag, the new gesture selects and copies "text", and `Z` replaces it (OpenTUI #2065, on both sides +// since 0.9.4). +import { definePty } from "../../pty/run" +import { home, homeMasks, move, press, release } from "./home" + +export default definePty({ + args: [], + cols: 100, + rows: 30, + ...home, + steps: [ + { until: { screen: "█▀▀█" }, settle: 500, timeout: 30_000 }, + { keys: "copy this text now", until: { screen: "copy this text now" }, settle: 200 }, + { keys: press(17, 17), settle: 50 }, + { keys: move(19, 17) + move(21, 17), settle: 300, checkpoint: "held" }, + { keys: press(27, 17), settle: 50 }, + { keys: move(29, 17) + move(30, 17), settle: 50 }, + { keys: release(30, 17), settle: 500, checkpoint: "released" }, + { keys: "Z", settle: 400, checkpoint: "typed" }, + ], + cursor: true, + osc: [], + masks: homeMasks, +}) diff --git a/packages/cli-rs/parity/scenarios/OT/shift-f3.pty.ts b/packages/cli-rs/parity/scenarios/OT/shift-f3.pty.ts new file mode 100644 index 000000000000..9df4e1e32c98 --- /dev/null +++ b/packages/cli-rs/parity/scenarios/OT/shift-f3.pty.ts @@ -0,0 +1,31 @@ +// anomalyco/opentui#2056 tells a text-sizing probe reply (row 2) from a modified F3 key (`CSI 1;m R`). The settings +// dialog is bound to Shift+F3. After startup the terminal sends the legacy form `CSI 1;2R`, which TS opens the dialog +// on since Core 0.9.4 and Rust reads as a reply under the Kitty protocol (parity/deviations/OT094-legacy-shift-f3.md), +// then the Kitty form `CSI 13;2~`, which both open it on. +import { definePty } from "../../pty/run" +import { home, homeMasks } from "./home" + +const config = JSON.stringify({ + experimental: { "new-designs": true }, + debug: { devtools: false }, + keybinds: { "opencode.settings": "shift+f3" }, +}) + +export default definePty({ + args: [], + cols: 100, + rows: 30, + ...home, + env: { OPENCODE_CLI_CONFIG_CONTENT: config }, + steps: [ + { until: { screen: "█▀▀█" }, settle: 500, timeout: 30_000 }, + { + keys: "\x1b[1;2R", + settle: 800, + checkpoint: "shift-f3", + deviation: { file: "OT094-legacy-shift-f3", lines: 12 }, + }, + { keys: "\x1b[13;2~", settle: 800, checkpoint: "kitty-shift-f3" }, + ], + masks: homeMasks, +}) diff --git a/packages/cli-rs/parity/scenarios/OT/split-paste.pty.ts b/packages/cli-rs/parity/scenarios/OT/split-paste.pty.ts new file mode 100644 index 000000000000..52b85e295df5 --- /dev/null +++ b/packages/cli-rs/parity/scenarios/OT/split-paste.pty.ts @@ -0,0 +1,19 @@ +// A bracketed paste whose start marker arrives in two reads, 300 ms apart. The client waits for the rest of the +// marker and inserts the paste whole, on two rows, so the prompt grows by one (OpenTUI #2046, on both sides since +// 0.9.4). +import { definePty } from "../../pty/run" +import { home, homeMasks } from "./home" + +export default definePty({ + args: [], + cols: 100, + rows: 30, + ...home, + steps: [ + { until: { screen: "█▀▀█" }, settle: 500, timeout: 30_000 }, + { keys: "hi ", until: { screen: "hi" }, settle: 200, checkpoint: "typed" }, + { keys: "\x1b[20", settle: 300 }, + { keys: "0~one\rtwo\x1b[201~", settle: 800, checkpoint: "pasted" }, + ], + masks: homeMasks, +}) diff --git a/packages/cli-rs/parity/scenarios/OT/strikethrough-mini.pty.ts b/packages/cli-rs/parity/scenarios/OT/strikethrough-mini.pty.ts new file mode 100644 index 000000000000..738c9a6b6fe5 --- /dev/null +++ b/packages/cli-rs/parity/scenarios/OT/strikethrough-mini.pty.ts @@ -0,0 +1,37 @@ +// Mini replays an answer and its reasoning that both contain `~~gone~~`: the tildes hide and the text is struck +// through (OpenTUI #2079, on both sides since 0.9.4). +import { definePty } from "../../pty/run" +import { assistant, config, server, statusMask, user } from "../M.1/fixture" + +const messages = [ + user("msg_u1", "strike it", 10), + assistant( + "msg_a1", + [ + { type: "reasoning", text: "Thinking a ~~gone~~ thought." }, + { type: "text", text: "Answer a ~~gone~~ b." }, + ], + 11, + ), +] + +export default definePty({ + args: ["mini", "-s", "ses_mini"], + cols: 60, + rows: 16, + server: server({ messages }), + setup: (root) => config(root), + steps: [ + { + until: { screen: "Answer a" }, + settle: 800, + timeout: 30_000, + checkpoint: "replayed", + attributes: true, + }, + { keys: "\x03", settle: 200 }, + { keys: "\x03", settle: 400 }, + ], + exits: true, + masks: [statusMask], +}) diff --git a/packages/cli-rs/parity/scenarios/OT/strikethrough.sim.ts b/packages/cli-rs/parity/scenarios/OT/strikethrough.sim.ts new file mode 100644 index 000000000000..61e778070e04 --- /dev/null +++ b/packages/cli-rs/parity/scenarios/OT/strikethrough.sim.ts @@ -0,0 +1,16 @@ +// A reply that contains `~~gone~~`: the tildes hide and the text is muted and struck through (OpenTUI #2079, on both +// sides since 0.9.4). +import { defineSim } from "../../sim/scenario" + +const duration = { line: "· \\d.*", reason: "the turn duration depends on timing, also in length; the row ends there" } + +export default defineSim({ + model: [{ items: [{ type: "textDelta", text: "Answer a ~~gone~~ b." }] }], + steps: [ + { until: "Simulated Model" }, + { type: "Strike it" }, + { until: "Strike it" }, + { enter: true }, + { checkpoint: "done", until: "Answer a", masks: [duration] }, + ], +}) diff --git a/packages/cli-rs/parity/scenarios/OT/tab-end.pty.ts b/packages/cli-rs/parity/scenarios/OT/tab-end.pty.ts new file mode 100644 index 000000000000..33fee225cf97 --- /dev/null +++ b/packages/cli-rs/parity/scenarios/OT/tab-end.pty.ts @@ -0,0 +1,19 @@ +// gh-triage-2012: a tab is two cells in the editor. On `ab\tcd`, Left then Down moves the cursor to the end of the +// text, so `X` goes after `d`. A client that measures the end with its own width count stops before `d`. +import { definePty } from "../../pty/run" +import { home, homeMasks, paste } from "./home" + +export default definePty({ + args: [], + cols: 100, + rows: 30, + ...home, + steps: [ + { until: { screen: "█▀▀█" }, settle: 500, timeout: 30_000 }, + { keys: paste("ab\tcd"), settle: 500, checkpoint: "pasted" }, + { keys: "\x1b[D", settle: 300 }, + { keys: "\x1b[B", settle: 300 }, + { keys: "X", settle: 500, checkpoint: "typed" }, + ], + masks: homeMasks, +}) diff --git a/packages/cli-rs/parity/scenarios/OT/table-align-mini.pty.ts b/packages/cli-rs/parity/scenarios/OT/table-align-mini.pty.ts new file mode 100644 index 000000000000..41d0d849691f --- /dev/null +++ b/packages/cli-rs/parity/scenarios/OT/table-align-mini.pty.ts @@ -0,0 +1,29 @@ +// Mini replays the packing list of `table-align.sim.ts`, alone, as borderless columns: `Qty` right-aligned, `Weight` +// and `Packed` centred (OpenTUI #2112, on both sides since 0.9.4). `M.1/table-gap` checks the rows around a table. +import { definePty } from "../../pty/run" +import { assistant, config, server, statusMask, user } from "../M.1/fixture" + +const reply = [ + "| Item | Qty | Weight | Packed |", + "| :--- | ---: | :---: | :---: |", + "| Tent | 1 | 2.4 kg | yes |", + "| Sleeping bag | 2 | 1.1 kg | no |", + "| Headlamp | 12 | 90 g | yes |", +].join("\n") + +const messages = [user("msg_u1", "pack", 10), assistant("msg_a1", [{ type: "text", text: reply }], 11)] + +export default definePty({ + args: ["mini", "-s", "ses_mini"], + cols: 60, + rows: 20, + server: server({ messages }), + setup: (root) => config(root), + steps: [ + { until: { screen: "Headlamp" }, settle: 800, timeout: 30_000, checkpoint: "replayed" }, + { keys: "\x03", settle: 200 }, + { keys: "\x03", settle: 400 }, + ], + exits: true, + masks: [statusMask], +}) diff --git a/packages/cli-rs/parity/scenarios/OT/table-align.sim.ts b/packages/cli-rs/parity/scenarios/OT/table-align.sim.ts new file mode 100644 index 000000000000..6c2612430fa0 --- /dev/null +++ b/packages/cli-rs/parity/scenarios/OT/table-align.sim.ts @@ -0,0 +1,28 @@ +// A reply with a packing list whose `Qty` column is right-aligned (`---:`) and whose `Weight` and `Packed` columns are +// centred (`:---:`): each column aligns as the delimiter row says (OpenTUI #2112, on both sides since 0.9.4). +import { defineSim } from "../../sim/scenario" + +const duration = { line: "· \\d.*", reason: "the turn duration depends on timing, also in length; the row ends there" } + +const reply = [ + "Packing list:", + "", + "| Item | Qty | Weight | Packed |", + "| :--- | ---: | :---: | :---: |", + "| Tent | 1 | 2.4 kg | yes |", + "| Sleeping bag | 2 | 1.1 kg | no |", + "| Headlamp | 12 | 90 g | yes |", + "", + "Done.", +].join("\n") + +export default defineSim({ + model: [{ items: [{ type: "textDelta", text: reply }] }], + steps: [ + { until: "Simulated Model" }, + { type: "Pack" }, + { until: "Pack" }, + { enter: true }, + { checkpoint: "done", until: "Done.", masks: [duration] }, + ], +}) diff --git a/packages/cli-rs/parity/scenarios/OT/text-sizing-mini.pty.ts b/packages/cli-rs/parity/scenarios/OT/text-sizing-mini.pty.ts new file mode 100644 index 000000000000..026d5712a6a8 --- /dev/null +++ b/packages/cli-rs/parity/scenarios/OT/text-sizing-mini.pty.ts @@ -0,0 +1,21 @@ +// Mini starts under a shell's output in a terminal that draws OSC 66 as kitty does. The client takes kitty's text +// sizing from its XTVERSION reply and draws no probe over the shell rows (OpenTUI #2056, on both sides since 0.9.4). +import { definePty } from "../../pty/run" +import { config, server, statusMask } from "../M.1/fixture" + +export default definePty({ + args: ["mini"], + cols: 60, + rows: 16, + server: server(), + setup: (root) => config(root), + preface: "$ ls\r\nalpha beta gamma\r\n$ opencode mini\r\n", + terminal: "kitty", + steps: [ + { until: { screen: "Ask anything" }, settle: 800, timeout: 30_000, checkpoint: "started" }, + { keys: "\x03", settle: 200 }, + { keys: "\x03", settle: 400, checkpoint: "exit" }, + ], + exits: true, + masks: [statusMask], +}) diff --git a/packages/cli-rs/parity/scenarios/OT/text-sizing-tui.pty.ts b/packages/cli-rs/parity/scenarios/OT/text-sizing-tui.pty.ts new file mode 100644 index 000000000000..8b1943420a6b --- /dev/null +++ b/packages/cli-rs/parity/scenarios/OT/text-sizing-tui.pty.ts @@ -0,0 +1,20 @@ +// The TUI starts under a shell's output in a terminal that draws OSC 66 as kitty does. After exit the shell rows come +// back whole: no text sizing probe overwrites them (OpenTUI #2056, on both sides since 0.9.4). +import { definePty } from "../../pty/run" +import { home, homeMasks } from "./home" + +export default definePty({ + args: [], + cols: 100, + rows: 30, + ...home, + preface: "$ ls\r\nalpha beta gamma\r\n$ opencode\r\n", + terminal: "kitty", + steps: [ + { until: { screen: "█▀▀█" }, settle: 500, timeout: 30_000, checkpoint: "home" }, + // One Ctrl+C on the empty prompt exits; a second press could land once the terminal is restored, as a SIGINT. + { keys: "\x03", until: { exit: true }, settle: 800, checkpoint: "exit" }, + ], + exits: true, + masks: homeMasks, +}) diff --git a/packages/cli-rs/parity/scenarios/OT/wheel-wrapped.pty.ts b/packages/cli-rs/parity/scenarios/OT/wheel-wrapped.pty.ts new file mode 100644 index 000000000000..271ee0be3ccc --- /dev/null +++ b/packages/cli-rs/parity/scenarios/OT/wheel-wrapped.pty.ts @@ -0,0 +1,23 @@ +// One long paragraph wraps past the prompt's height, and the wheel steps up over it. The view scrolls through the +// rows and the cursor moves up with them, so `Q` lands mid-paragraph (OpenTUI #2076, on both sides since 0.9.4). +import { definePty } from "../../pty/run" +import { home, homeMasks, wheelUp } from "./home" + +const words = Array.from({ length: 160 }, (_, index) => `w${String(index).padStart(3, "0")}`).join(" ") + +export default definePty({ + args: [], + cols: 100, + rows: 30, + ...home, + steps: [ + { until: { screen: "█▀▀█" }, settle: 500, timeout: 30_000 }, + { keys: words, until: { screen: "w159" }, settle: 500, checkpoint: "typed" }, + { keys: wheelUp(40, 20), settle: 400, checkpoint: "wheel" }, + { keys: wheelUp(40, 20), settle: 400 }, + { keys: wheelUp(40, 20), settle: 400 }, + { keys: "Q", settle: 400, checkpoint: "typed-after" }, + ], + cursor: true, + masks: homeMasks, +}) diff --git a/packages/cli-rs/parity/scenarios/P.0b/fixture.ts b/packages/cli-rs/parity/scenarios/P.0b/fixture.ts new file mode 100644 index 000000000000..18135e35fe03 --- /dev/null +++ b/packages/cli-rs/parity/scenarios/P.0b/fixture.ts @@ -0,0 +1,38 @@ +// The P-PTY fixture of P0b's plugin verbs that need a real terminal: one directory under the sandbox's global +// `plugins` directory holds the TS plugin (`parity/plugins/title/tui.ts`) and its opencode-native twin, a Luau plugin +// (`plugin.toml` and `init.luau`). TS loads the first, Rust the second; each client ignores the other's files. +import { copyFile, mkdir, writeFile } from "node:fs/promises" +import path from "node:path" +import type { PtyStep } from "../../pty/run" +import { parityRoot } from "../../cli/client" + +// Installs the plugin, and writes `cli.json` when `config` is given. +export async function install(root: string, config?: object) { + const directory = path.join(root, "home/.config/opencode/plugins/title") + await mkdir(directory, { recursive: true }) + for (const file of ["tui.ts", "plugin.toml", "init.luau"]) { + await copyFile(path.join(parityRoot, "plugins/title", file), path.join(directory, file)) + } + const configured = { ...config, plugins: ["./plugins/title"] } + await writeFile(path.join(root, "home/.config/opencode/cli.json"), JSON.stringify(configured)) +} + +// The home screen, once the Rust plugin's commands are listed. +export const home: PtyStep[] = [ + { until: { screen: "█▀▀█" }, settle: 500, timeout: 30_000 }, + { keys: "/p0brun", until: { screen: "Run a program" }, settle: 200, timeout: 30_000 }, + { keys: "\x1b", until: { gone: "Run a program" }, settle: 200 }, + { keys: "\x15", until: { gone: "/p0brun" }, settle: 200 }, +] + +// Runs `command` through `/p0brun`, which first prints `ready-<n + 1>`, and waits for that: text the command itself +// does not contain, so the composer that shows the command does not match. +export function run(command: string, n: number): PtyStep[] { + return [ + { keys: `/p0brun echo ready-$((${n}+1)); ${command}`, settle: 300 }, + { keys: "\r", until: { screen: `ready-${n + 1}` }, timeout: 15_000 }, + ] +} + +// Ctrl+C on the empty prompt: the TUI exits. A second press could land once the terminal is restored, as a SIGINT. +export const leave: PtyStep[] = [{ keys: "\x03", until: { exit: true } }] diff --git a/packages/cli-rs/parity/scenarios/P.0b/foreground-signals.pty.ts b/packages/cli-rs/parity/scenarios/P.0b/foreground-signals.pty.ts new file mode 100644 index 000000000000..d0fb607ab2b9 --- /dev/null +++ b/packages/cli-rs/parity/scenarios/P.0b/foreground-signals.pty.ts @@ -0,0 +1,30 @@ +// A plugin's program in the foreground gets the signals of the terminal's keys, and the TUI does not (reviews +// bigboi-1, carbon-1): Ctrl+C and Ctrl+\ end the program alone, Ctrl+Z neither stops the TUI nor strands it (the +// program is continued), and afterwards a key reaches the same TUI. The TUI works in the fake server's directory, +// which does not exist here, so the program runs in the TUI's own (carbon-1). The sample sets each reply as the +// title, so the title log has them. Rust only: the TS client shares the process group. +import { definePty } from "../../pty/run" +import { home, install, leave, run } from "./fixture" + +export default definePty({ + args: [], + cols: 100, + rows: 30, + server: { fallback: "tui" }, + setup: (root) => install(root), + steps: [ + ...home, + ...run("sleep 30", 1), + { keys: "\x03", until: { osc: '"signal":2' }, settle: 300 }, + ...run("sleep 30", 2), + { keys: "\x1c", until: { osc: '"signal":3' }, settle: 300 }, + ...run("sleep 1; exit 4", 3), + { keys: "\x1a", until: { osc: 'p0b exit {"code":4}' }, settle: 300, timeout: 15_000 }, + { keys: "still here", until: { screen: "still here" }, settle: 300 }, + { keys: "\x15", until: { gone: "still here" }, settle: 200 }, + ...leave, + ], + osc: ["title"], + exits: true, + rsOnly: true, +}) diff --git a/packages/cli-rs/parity/scenarios/P.0b/foreground-streams.pty.ts b/packages/cli-rs/parity/scenarios/P.0b/foreground-streams.pty.ts new file mode 100644 index 000000000000..2175d17bdfd5 --- /dev/null +++ b/packages/cli-rs/parity/scenarios/P.0b/foreground-streams.pty.ts @@ -0,0 +1,25 @@ +// A plugin's program in the foreground has the terminal on all three standard streams, so its stderr shows and a +// program that asks `isatty` takes the interactive path (reviews bigboi-5, carbon-1); input it leaves unread is +// dropped and does not reach the composer once the TUI is back (bigboi-5). Rust only. +import { definePty } from "../../pty/run" +import { home, install, leave, run } from "./fixture" + +export default definePty({ + args: [], + cols: 100, + rows: 30, + server: { fallback: "tui" }, + setup: (root) => install(root), + steps: [ + ...home, + ...run("[ -t 0 ] && [ -t 1 ] && [ -t 2 ] && echo tty-$((3*3)) >&2; sleep 1", 1), + { until: { screen: "tty-9" } }, + { until: { screen: 'p0b exit {"code":0}' }, settle: 300 }, + ...run("head -n 1 >/dev/null; exit 7", 2), + { keys: "first line\rsecond line\r", until: { screen: 'p0b exit {"code":7}' }, settle: 800, absent: "second" }, + ...leave, + ], + osc: ["title"], + exits: true, + rsOnly: true, +}) diff --git a/packages/cli-rs/parity/scenarios/P.0b/foreground-title.pty.ts b/packages/cli-rs/parity/scenarios/P.0b/foreground-title.pty.ts new file mode 100644 index 000000000000..42a82a0f9ee9 --- /dev/null +++ b/packages/cli-rs/parity/scenarios/P.0b/foreground-title.pty.ts @@ -0,0 +1,24 @@ +// The title after a program in the foreground (reviews carbon-3, bigboi): suspending the terminal clears it, and the +// TUI sends its last title again once it is back, also one a plugin set. Rust only. +import { definePty } from "../../pty/run" +import { home, install, leave, run } from "./fixture" + +export default definePty({ + args: [], + cols: 100, + rows: 30, + server: { fallback: "tui" }, + setup: (root) => install(root), + steps: [ + ...home, + { keys: "/p0btitle", until: { screen: "Set the title" }, settle: 300 }, + { keys: "\r", until: { osc: "p0b title" }, settle: 300 }, + ...run("printf '\\033]0;child title\\007'; sleep 1", 1), + // The reply sets its own title after: the TUI's title came back before it. + { until: { osc: "child title", oscCount: ["p0b title", 2] }, settle: 300 }, + ...leave, + ], + osc: ["title"], + exits: true, + rsOnly: true, +}) diff --git a/packages/cli-rs/parity/scenarios/P.0b/foreground-twice.pty.ts b/packages/cli-rs/parity/scenarios/P.0b/foreground-twice.pty.ts new file mode 100644 index 000000000000..d7b791e5392a --- /dev/null +++ b/packages/cli-rs/parity/scenarios/P.0b/foreground-twice.pty.ts @@ -0,0 +1,24 @@ +// Two programs asked for in one call (reviews bigboi-4, carbon-1): the terminal goes to the first, and the second is +// refused at once with its own reply, instead of replacing the first unseen. Rust only. +import { definePty } from "../../pty/run" +import { home, install, leave } from "./fixture" + +export default definePty({ + args: [], + cols: 100, + rows: 30, + server: { fallback: "tui" }, + setup: (root) => install(root), + steps: [ + ...home, + { keys: "/p0btwice echo ready-$((1+1)); sleep 1", settle: 300 }, + { keys: "\r", until: { screen: "ready-2" }, timeout: 15_000 }, + // The sample sets each reply as the title too, so the title log has both. + { until: { osc: "p0b error another program is in the foreground" } }, + { until: { osc: 'p0b exit {"code":0}' }, settle: 300 }, + ...leave, + ], + osc: ["title"], + exits: true, + rsOnly: true, +}) diff --git a/packages/cli-rs/parity/scenarios/P.0b/reads.app.ts b/packages/cli-rs/parity/scenarios/P.0b/reads.app.ts new file mode 100644 index 000000000000..9bbf66f2f296 --- /dev/null +++ b/packages/cli-rs/parity/scenarios/P.0b/reads.app.ts @@ -0,0 +1,16 @@ +// The small reads of ABI 1.6 (P0b): the test plugin's line in the `app` slot shows its own width, the session tabs, +// the palette's keys, the model's variants and the pending keys, as each client answers them. TS loads the plugin from +// parity/plugins/p0b as a local plugin; Rust registers its twin when OPENCODE_PARITY_PLUGIN is `p0b`. +import { defineApp, HOME_PLACEHOLDER } from "../../lib/app" + +export default defineApp({ + config: { plugins: ["./plugins/p0b"] }, + env: { OPENCODE_PARITY_PLUGIN: "p0b" }, + steps: [ + { + checkpoint: "home", + until: "pending 0", + masks: [HOME_PLACEHOLDER], + }, + ], +}) diff --git a/packages/cli-rs/parity/scenarios/P.0b/title-long.pty.ts b/packages/cli-rs/parity/scenarios/P.0b/title-long.pty.ts new file mode 100644 index 000000000000..633dfad54b67 --- /dev/null +++ b/packages/cli-rs/parity/scenarios/P.0b/title-long.pty.ts @@ -0,0 +1,23 @@ +// A plugin's title longer than the 4091 bytes OpenTUI takes (reviews bigboi-2, carbon-3): the TUI sends it cut on a +// character boundary and keeps running, instead of failing its terminal session and exiting. Rust only. +import { definePty } from "../../pty/run" +import { home, install, leave } from "./fixture" + +export default definePty({ + args: [], + cols: 100, + rows: 30, + server: { fallback: "tui" }, + setup: (root) => install(root), + steps: [ + ...home, + { keys: "/p0blong", until: { screen: "Set a long title" }, settle: 300 }, + { keys: "\r", until: { osc: "p0b long éé" }, settle: 300 }, + { keys: "still here", until: { screen: "still here" }, settle: 300 }, + { keys: "\x15", until: { gone: "still here" }, settle: 200 }, + ...leave, + ], + osc: ["title"], + exits: true, + rsOnly: true, +}) diff --git a/packages/cli-rs/parity/scenarios/P.0b/title-off-exit.pty.ts b/packages/cli-rs/parity/scenarios/P.0b/title-off-exit.pty.ts new file mode 100644 index 000000000000..7c789f5b7291 --- /dev/null +++ b/packages/cli-rs/parity/scenarios/P.0b/title-off-exit.pty.ts @@ -0,0 +1,22 @@ +// With `terminal.title` off and no plugin title, the TUI sets no title, and exiting still clears it, as TS's +// `destroyRenderer` clears the title whatever the setting. The counterpart of a plugin title with the setting off. +// Only the title OSC log is compared. +import { mkdir, writeFile } from "node:fs/promises" +import path from "node:path" +import { definePty } from "../../pty/run" +import { leave } from "./fixture" + +export default definePty({ + args: [], + cols: 100, + rows: 30, + server: { fallback: "tui" }, + setup: async (root) => { + const config = path.join(root, "home/.config/opencode") + await mkdir(config, { recursive: true }) + await writeFile(path.join(config, "cli.json"), JSON.stringify({ terminal: { title: false } })) + }, + steps: [{ until: { screen: "█▀▀█" }, settle: 500, timeout: 30_000 }, ...leave], + osc: ["title"], + exits: true, +}) diff --git a/packages/cli-rs/parity/scenarios/P.1/app-home.app.ts b/packages/cli-rs/parity/scenarios/P.1/app-home.app.ts new file mode 100644 index 000000000000..0ce6c7d690db --- /dev/null +++ b/packages/cli-rs/parity/scenarios/P.1/app-home.app.ts @@ -0,0 +1,15 @@ +// The app slot (P.1) on home: the test plugin's line shows under the route, below the home footer. TS loads the +// plugin from parity/plugins/app as a local plugin; Rust registers its twin when OPENCODE_PARITY_PLUGIN is `app`. +import { defineApp, HOME_PLACEHOLDER } from "../../lib/app" + +export default defineApp({ + config: { plugins: ["./plugins/app"] }, + env: { OPENCODE_PARITY_PLUGIN: "app" }, + steps: [ + { + checkpoint: "home", + until: "app plugin: app", + masks: [HOME_PLACEHOLDER], + }, + ], +}) diff --git a/packages/cli-rs/parity/scenarios/P.1/app-session.app.ts b/packages/cli-rs/parity/scenarios/P.1/app-session.app.ts new file mode 100644 index 000000000000..68428c755209 --- /dev/null +++ b/packages/cli-rs/parity/scenarios/P.1/app-session.app.ts @@ -0,0 +1,22 @@ +// The app slot (P.1) in a session: the test plugin's line shows under the session route, below the prompt. TS +// loads the plugin from parity/plugins/app as a local plugin; Rust registers its twin when OPENCODE_PARITY_PLUGIN +// is `app`. +import { assistant, defineApp, session, user } from "../../lib/app" + +const id = "ses_a" + +export default defineApp({ + config: { plugins: ["./plugins/app"] }, + env: { OPENCODE_PARITY_PLUGIN: "app" }, + args: { sessionID: id }, + routes: [ + { path: `/api/session/${id}`, json: { data: session(id, "Plan the release", { updated: 2 }) } }, + { path: "/api/session", json: { data: [session(id, "Plan the release", { updated: 2 })], cursor: {} } }, + { + path: `/api/session/${id}/message`, + json: { data: [assistant("msg_2", "Done.", 2000), user("msg_1", "Ship it", 1000)], cursor: {} }, + }, + { path: `/api/session/${id}/inbox`, json: { data: [] } }, + ], + steps: [{ checkpoint: "session", until: "Done." }], +}) diff --git a/packages/cli-rs/parity/scenarios/P.1/composer-top.app.ts b/packages/cli-rs/parity/scenarios/P.1/composer-top.app.ts new file mode 100644 index 000000000000..23854e55b1ea --- /dev/null +++ b/packages/cli-rs/parity/scenarios/P.1/composer-top.app.ts @@ -0,0 +1,44 @@ +// The session.composer.top slot (P.1, E.13b): the test plugin's line shows under the queued dock and above the +// prompt, and stays above the composer when Down opens it and the dock hides. TS loads the plugin from +// parity/plugins/slot as a local plugin; Rust registers its twin when OPENCODE_PARITY_PLUGIN is `slot`. +import { assistant, defineApp, session, user } from "../../lib/app" + +const id = "ses_s" +// TS shows "Finishing startup…" for three seconds once loading the local TSX plugin took over half a second +// (`component/startup-loading.tsx`); Rust loads no TS plugin (F16). +const startup = { x: 39, y: 28, width: 22, height: 1, reason: "TS plugin loading notice (F16)" } + +export default defineApp({ + height: 30, + config: { experimental: { "new-designs": true }, plugins: ["./plugins/slot"] }, + env: { OPENCODE_PARITY_PLUGIN: "slot" }, + args: { sessionID: id }, + routes: [ + { path: `/api/session/${id}`, json: { data: session(id, "Plan the release", { updated: 2 }) } }, + { path: "/api/session", json: { data: [session(id, "Plan the release", { updated: 2 })], cursor: {} } }, + { + path: `/api/session/${id}/message`, + json: { data: [assistant("msg_2", "Done.", 2000), user("msg_1", "Ship it", 1000)], cursor: {} }, + }, + { + path: `/api/session/${id}/inbox`, + json: { + data: [ + { + id: "msg_5", + sessionID: id, + type: "user", + payload: { text: "Then tag it" }, + delivery: "queue", + time: { created: 3000 }, + }, + ], + }, + }, + ], + steps: [ + { checkpoint: "session", until: "Done.", masks: [startup] }, + { keys: ["down"] }, + { checkpoint: "composer", until: "Subagents", masks: [startup] }, + ], +}) diff --git a/packages/cli-rs/parity/scenarios/P.1/p0a-composer.app.ts b/packages/cli-rs/parity/scenarios/P.1/p0a-composer.app.ts new file mode 100644 index 000000000000..585e1a618bc3 --- /dev/null +++ b/packages/cli-rs/parity/scenarios/P.1/p0a-composer.app.ts @@ -0,0 +1,24 @@ +// A plugin's composer edits (rich plugins P0a, ABI 1.5): F8 inserts text at the cursor, in the middle of typed text, +// and typing goes on after it; F9 sets the text and puts the cursor at its end. TS's plugin inserts through `renderer.currentFocusedEditor`, as npm plugins do; Rust's twin +// through `edit_composer`. TS loads the plugin from parity/plugins/p0a as a local plugin; Rust registers its twin when +// OPENCODE_PARITY_PLUGIN is `p0a`. +import { defineApp } from "../../lib/app" + +// TS shows "Finishing startup…" for three seconds once loading the local TSX plugin took over half a second +// (`component/startup-loading.tsx`); Rust loads no TS plugin (F16). +const startup = { x: 39, y: 28, width: 22, height: 1, reason: "TS plugin loading notice (F16)" } + +export default defineApp({ + config: { plugins: ["./plugins/p0a"] }, + env: { OPENCODE_PARITY_PLUGIN: "p0a" }, + steps: [ + { type: "hello world" }, + { keys: ["left", "left", "left", "left", "left"] }, + { keys: ["f8"] }, + { type: "!" }, + { checkpoint: "inserted", until: "hello inserted!world", masks: [startup] }, + { keys: ["f9"] }, + { type: "?" }, + { checkpoint: "set", until: "set by the plugin?", masks: [startup] }, + ], +}) diff --git a/packages/cli-rs/parity/scenarios/P.1/p0a-dialogs.app.ts b/packages/cli-rs/parity/scenarios/P.1/p0a-dialogs.app.ts new file mode 100644 index 000000000000..140f4529b125 --- /dev/null +++ b/packages/cli-rs/parity/scenarios/P.1/p0a-dialogs.app.ts @@ -0,0 +1,30 @@ +// A plugin's confirm and alert, and its styled box (rich plugins P0a, ABI 1.5): the box sits in home.footer, F6 asks +// a confirm whose answer toasts, enter confirming and escape cancelling, and F7 shows an alert that toasts once escape +// closes it. TS loads the plugin from +// parity/plugins/p0a as a local plugin; Rust registers its twin when OPENCODE_PARITY_PLUGIN is `p0a`. +import { defineApp } from "../../lib/app" + +// The composer's placeholder example is random in TS and Rust. A dialog covers it but for "Ask". +const placeholder = { x: 16, y: 14, width: 84, height: 1, reason: "the placeholder example: random in TS and Rust" } +// TS shows "Finishing startup…" for three seconds once loading the local TSX plugin took over half a second +// (`component/startup-loading.tsx`); Rust loads no TS plugin (F16). +const startup = { x: 39, y: 28, width: 22, height: 1, reason: "TS plugin loading notice (F16)" } + +export default defineApp({ + config: { plugins: ["./plugins/p0a"] }, + env: { OPENCODE_PARITY_PLUGIN: "p0a" }, + steps: [ + { checkpoint: "home", until: "p0a", masks: [placeholder, startup] }, + { keys: ["f6"] }, + { checkpoint: "confirm", until: "Delete the draft?", masks: [startup] }, + { keys: ["return"] }, + { checkpoint: "confirmed", until: "answered true", masks: [placeholder, startup] }, + { keys: ["f7"] }, + { checkpoint: "alert", until: "Heads up", masks: [startup] }, + { keys: ["escape"] }, + { checkpoint: "alerted", until: "alert closed", masks: [placeholder, startup] }, + { keys: ["f6"] }, + { keys: ["escape"] }, + { checkpoint: "cancelled", until: "answered false", masks: [placeholder, startup] }, + ], +}) diff --git a/packages/cli-rs/parity/scenarios/P.1/slot.app.ts b/packages/cli-rs/parity/scenarios/P.1/slot.app.ts new file mode 100644 index 000000000000..d7bd1a6265e8 --- /dev/null +++ b/packages/cli-rs/parity/scenarios/P.1/slot.app.ts @@ -0,0 +1,15 @@ +// A plugin in a slot (P.1): a test plugin appends a line to home.footer, under the footer built-in. TS loads it +// from parity/plugins/slot as a local plugin; Rust registers its twin when OPENCODE_PARITY_PLUGIN is `slot`. +import { defineApp, HOME_PLACEHOLDER } from "../../lib/app" + +export default defineApp({ + config: { plugins: ["./plugins/slot"] }, + env: { OPENCODE_PARITY_PLUGIN: "slot" }, + steps: [ + { + checkpoint: "home", + until: "slot plugin: home.footer", + masks: [HOME_PLACEHOLDER], + }, + ], +}) diff --git a/packages/cli-rs/parity/scenarios/P.2/fence-margin.app.ts b/packages/cli-rs/parity/scenarios/P.2/fence-margin.app.ts new file mode 100644 index 000000000000..1c5d93a50692 --- /dev/null +++ b/packages/cli-rs/parity/scenarios/P.2/fence-margin.app.ts @@ -0,0 +1,39 @@ +// The rows around the built-in LaTeX and Mermaid fences in the transcript: a paragraph then a formula, a formula then +// a paragraph, two formulas in a row, a list then a diagram, and a diagram that ends the text. TS's renderers set one +// row of top margin on top of Core 0.9.4's row between blocks, so TS has two blank rows above each fence that follows +// a block and Rust one (`parity/deviations/F16-plugin-fence-margin.md`). A fence that opens a message differs (`parity/deviations/F13-latex-leading-row.md`), so none does here. +import { assistant, defineApp, session, user } from "../../lib/app" + +const text = [ + "The area is:", + "```latex\nx^2\n```", + "and the root:", + "```latex\n\\sqrt{x}\n```", + "```latex\na+b\n```", + "- parse\n- render", + "```mermaid\nflowchart LR\n A --> B\n```", +].join("\n\n") + +export default defineApp({ + height: 40, + args: { sessionID: "ses_m" }, + routes: [ + { path: "/api/session/ses_m", json: { data: session("ses_m", "Draw the math", { updated: 2 }) } }, + { + path: "/api/session/ses_m/message", + json: { data: [assistant("msg_2", text, 2000), user("msg_1", "Show the formulas", 1000)], cursor: {} }, + }, + { path: "/api/session/ses_m/inbox", json: { data: [] } }, + ], + steps: [ + { + checkpoint: "open", + until: "render", + // opentui-tex's radical: `√ x` where TS draws `╰╯x`. TS's second blank row above each of the five fences. + deviation: [ + { file: "P2-latex-opentui-tex", cells: 2 }, + { file: "F16-plugin-fence-margin", cells: 175 }, + ], + }, + ], +}) diff --git a/packages/cli-rs/parity/scenarios/P.2/inline-math.app.ts b/packages/cli-rs/parity/scenarios/P.2/inline-math.app.ts new file mode 100644 index 000000000000..1cd2758074fc --- /dev/null +++ b/packages/cli-rs/parity/scenarios/P.2/inline-math.app.ts @@ -0,0 +1,35 @@ +// Markdown math in an assistant message: inline `$…$` and `\(…\)`, display `$$…$$` and `\[…\]`, a `latex` fence, +// and dollars that are not math. TS draws only the fence as math and the rest as text; Rust draws the math too +// (`parity/deviations/P2-latex-inline.md`). The fence and the dollars that are not math are equal. +import { assistant, defineApp, session, user } from "../../lib/app" + +const text = [ + "Energy is $E=mc^2$ and \\(\\alpha \\le \\frac{1}{2}\\) holds.", + "$$\n\\frac{a+b}{2}\n$$", + "\\[\nx_i^2\n\\]", + "```latex\n\\sqrt{x}\n```", + "It costs $5 and $10; run echo $HOME.", +].join("\n\n") + +export default defineApp({ + args: { sessionID: "ses_im" }, + routes: [ + { path: "/api/session/ses_im", json: { data: session("ses_im", "Mixed math", { updated: 2 }) } }, + { + path: "/api/session/ses_im/message", + json: { data: [assistant("msg_2", text, 2000), user("msg_1", "Show the math", 1000)], cursor: {} }, + }, + { path: "/api/session/ses_im/inbox", json: { data: [] } }, + ], + steps: [ + { + checkpoint: "open", + until: "run echo $HOME.", + // TS's second blank row above the fence scrolls the transcript up a row (F16). + deviation: [ + { file: "P2-latex-inline", cells: 191 }, + { file: "F16-plugin-fence-margin", cells: 262 }, + ], + }, + ], +}) diff --git a/packages/cli-rs/parity/scenarios/P.2/latex-opens.app.ts b/packages/cli-rs/parity/scenarios/P.2/latex-opens.app.ts new file mode 100644 index 000000000000..1a3e19d6c5d7 --- /dev/null +++ b/packages/cli-rs/parity/scenarios/P.2/latex-opens.app.ts @@ -0,0 +1,26 @@ +// A formula that opens the text: TS keeps its renderer's row of top margin above it, the Rust Markdown puts no row +// before the first block (`parity/deviations/F13-latex-leading-row.md`). +import { assistant, defineApp, session, user } from "../../lib/app" + +export default defineApp({ + args: { sessionID: "ses_l" }, + routes: [ + { path: "/api/session/ses_l", json: { data: session("ses_l", "Draw the math", { updated: 2 }) } }, + { + path: "/api/session/ses_l/message", + json: { + data: [assistant("msg_2", "```latex\nx^2\n```\n\nThat is the area.", 2000), user("msg_1", "Area?", 1000)], + cursor: {}, + }, + }, + { path: "/api/session/ses_l/inbox", json: { data: [] } }, + ], + steps: [ + { + checkpoint: "open", + until: "That is the area.", + // Without TS's row above the formula, rows 0 to 10 are equal cell for cell. + deviation: [{ file: "F13-latex-leading-row", cells: 96 }], + }, + ], +}) diff --git a/packages/cli-rs/parity/scenarios/P.2/mermaid-opens.app.ts b/packages/cli-rs/parity/scenarios/P.2/mermaid-opens.app.ts new file mode 100644 index 000000000000..deac16f979e2 --- /dev/null +++ b/packages/cli-rs/parity/scenarios/P.2/mermaid-opens.app.ts @@ -0,0 +1,29 @@ +// A diagram that opens the text: TS keeps its renderer's row of top margin above it, the Rust Markdown puts no row +// before the first block (`parity/deviations/F12-mermaid-leading-row.md`). +import { assistant, defineApp, session, user } from "../../lib/app" + +export default defineApp({ + args: { sessionID: "ses_d" }, + routes: [ + { path: "/api/session/ses_d", json: { data: session("ses_d", "Draw the flow", { updated: 2 }) } }, + { + path: "/api/session/ses_d/message", + json: { + data: [ + assistant("msg_2", "```mermaid\nflowchart LR\n A --> B\n```\n\nThat is the flow.", 2000), + user("msg_1", "Flow?", 1000), + ], + cursor: {}, + }, + }, + { path: "/api/session/ses_d/inbox", json: { data: [] } }, + ], + steps: [ + { + checkpoint: "open", + until: "That is the flow.", + // Without TS's row above the diagram, rows 0 to 12 are equal cell for cell. + deviation: [{ file: "F12-mermaid-leading-row", cells: 140 }], + }, + ], +}) diff --git a/packages/cli-rs/parity/scenarios/P.2/plugin-fence-margin.app.ts b/packages/cli-rs/parity/scenarios/P.2/plugin-fence-margin.app.ts new file mode 100644 index 000000000000..5e71b6880f90 --- /dev/null +++ b/packages/cli-rs/parity/scenarios/P.2/plugin-fence-margin.app.ts @@ -0,0 +1,32 @@ +// A plugin's fences with no margin of their own (parity/plugins/fence-margin): after a paragraph, after another fence +// and after a list. Both clients put one blank row before each, as between any two blocks (Core 0.9.4's Markdown gap; +// `parity/deviations/F16-plugin-fence-margin.md` has the history). +import { assistant, defineApp, session, user } from "../../lib/app" + +const text = [ + "Before the fence.", + "```parity\none\n```", + "After it.", + "```parity\ntwo\n```", + "```parity\nthree\n```", + "- a list", + "```parity\nfour\n```", +].join("\n\n") + +export default defineApp({ + height: 32, + config: { plugins: ["./plugins/fence-margin"] }, + env: { OPENCODE_PARITY_PLUGIN: "fence-margin" }, + args: { sessionID: "ses_f" }, + routes: [ + { path: "/api/session/ses_f", json: { data: session("ses_f", "Show the fences", { updated: 2 }) } }, + { + path: "/api/session/ses_f/message", + json: { data: [assistant("msg_2", text, 2000), user("msg_1", "Draw the fences", 1000)], cursor: {} }, + }, + { path: "/api/session/ses_f/inbox", json: { data: [] } }, + ], + steps: [ + { checkpoint: "open", until: "fence: four" }, + ], +}) diff --git a/packages/cli-rs/parity/scenarios/P.8/cache-cli.app.ts b/packages/cli-rs/parity/scenarios/P.8/cache-cli.app.ts new file mode 100644 index 000000000000..22baf2f875e2 --- /dev/null +++ b/packages/cli-rs/parity/scenarios/P.8/cache-cli.app.ts @@ -0,0 +1,41 @@ +// js-npm: `opencode-sidebar-tokens@0.1.3` named in `cli.json` by its spec, as `opencode plugin add` leaves it, and +// installed in the npm cache (`cache`): both clients resolve it there (`Npm.resolve`, TS `Npm.add` of an installed +// package) and load its TUI entry, the same files as sidebar-tokens; the Rust client installs nothing. +import { assistant, defineApp, session, user } from "../../lib/app" + +const id = "ses_t" +const tokens = { input: 22870, output: 100, reasoning: 0, cache: { read: 0, write: 0 } } + +export default defineApp({ + width: 140, + height: 34, + config: { + experimental: { "new-designs": true }, + plugins: ["opencode-sidebar-tokens@0.1.3"], + }, + env: { OPENCODE_PARITY_PLUGIN: "npm" }, + cache: { "opencode-sidebar-tokens@0.1.3": "opencode-sidebar-tokens" }, + args: { sessionID: id }, + routes: [ + { path: `/api/session/${id}`, json: { data: session(id, "Count the tokens", { updated: 2 }) } }, + { path: "/api/session", json: { data: [session(id, "Count the tokens", { updated: 2 })], cursor: {} } }, + { + path: `/api/session/${id}/message`, + json: { data: [assistant("msg_2", "Counted.", 2000), user("msg_1", "Count them", 1000)], cursor: {} }, + }, + { path: `/api/session/${id}/inbox`, json: { data: [] } }, + ], + steps: [ + { checkpoint: "empty", until: "Cache write" }, + { + event: { + id: "evt_usage", + created: 3, + type: "session.usage.updated", + location: { directory: "/tmp/opencode/packages/tui" }, + data: { sessionID: id, cost: 0.08, tokens }, + }, + }, + { checkpoint: "totals", until: "22,870" }, + ], +}) diff --git a/packages/cli-rs/parity/scenarios/P.8/cache-server.app.ts b/packages/cli-rs/parity/scenarios/P.8/cache-server.app.ts new file mode 100644 index 000000000000..b463e4a4afb3 --- /dev/null +++ b/packages/cli-rs/parity/scenarios/P.8/cache-server.app.ts @@ -0,0 +1,57 @@ +// js-npm: `opencode-sidebar-prompt@0.1.6` as the TUI part of a server plugin: the server lists it (`/api/plugin`, active, +// with a TUI feature) by its package spec, and both clients resolve that in the npm cache (`cache`) without installing +// (`context.tsx:301-305`, `Npm.resolve`), then load its TUI entry, the same files as sidebar-prompt. `cli.json` names +// no plugin. The Rust replay's global opencode config names the spec, as Rust loads a server part with no approval only +// then (O-162). +import { assistant, defineApp, session, user } from "../../lib/app" + +const id = "ses_l" +const prompt = + "Write the release notes for 2.3: the new sidebar, the plugin host, and the fixes to the theme picker. Keep each " + + "line short, link every pull request, and leave the upgrade steps for last." + +export default defineApp({ + width: 140, + height: 34, + config: { + experimental: { "new-designs": true }, + }, + env: { OPENCODE_PARITY_PLUGIN: "npm" }, + cache: { "opencode-sidebar-prompt@0.1.6": "opencode-sidebar-prompt" }, + args: { sessionID: id }, + routes: [ + { + path: "/api/plugin", + json: { + location: { + directory: "/tmp/opencode/packages/tui", + project: { id: "proj_test", directory: "/tmp/opencode", canonical: "/tmp/opencode" }, + }, + data: [ + { + id: "sidebar-prompt", + source: { type: "package", target: "opencode-sidebar-prompt@0.1.6" }, + features: { server: true, tui: true }, + state: { status: "active" }, + }, + ], + }, + }, + { path: `/api/session/${id}`, json: { data: session(id, "Release notes", { updated: 2 }) } }, + { path: "/api/session", json: { data: [session(id, "Release notes", { updated: 2 })], cursor: {} } }, + { + path: `/api/session/${id}/message`, + json: { data: [assistant("msg_2", "Drafted.", 2000), user("msg_1", prompt, 1000)], cursor: {} }, + }, + { path: `/api/session/${id}/inbox`, json: { data: [] } }, + ], + steps: [ + { checkpoint: "sidebar", until: "Open full prompt" }, + { type: "/lastprompt" }, + // The completion lists the plugin's command before Enter: the plugin loads after the home screen settles, and an + // Enter on a list that has not matched its command yet does nothing (file-browser-flake). + { checkpoint: "slash", until: "Show full last prompt" }, + { keys: ["enter"] }, + { checkpoint: "dialog", until: "Esc · Close" }, + ], +}) diff --git a/packages/cli-rs/parity/scenarios/P.8/command-hotkeys.app.ts b/packages/cli-rs/parity/scenarios/P.8/command-hotkeys.app.ts new file mode 100644 index 000000000000..9f08cb1ada2a --- /dev/null +++ b/packages/cli-rs/parity/scenarios/P.8/command-hotkeys.app.ts @@ -0,0 +1,54 @@ +// Ports trio: `opencode-command-hotkeys@0.1.1`, unmodified from npm, with two bindings in its options: the palette's +// "Run the review" runs the server's `review` command with `--all` in the session in view, and alt+r runs it again. +// TS loads the package from node_modules; the Rust client runs the same files on the JS host through the V2 +// compatibility layer, and its Luau port in its place (`app::ports_replay`). +import { assistant, defineApp, session, user } from "../../lib/app" + +const id = "ses_h" + +export default defineApp({ + width: 140, + height: 34, + config: { + experimental: { "new-designs": true }, + plugins: [ + { + package: "./out/npm/node_modules/opencode-command-hotkeys", + options: { + bindings: [ + { id: "review", key: "alt+r", title: "Run the review", command: "review", text: "--all" }, + { id: "goal", key: "alt+o", title: "Toggle the goal", action: "goal-toggle" }, + ], + }, + }, + ], + }, + env: { OPENCODE_PARITY_PLUGIN: "npm" }, + args: { sessionID: id }, + routes: [ + { path: `/api/session/${id}`, json: { data: session(id, "Review it", { updated: 2 }) } }, + { path: "/api/session", json: { data: [session(id, "Review it", { updated: 2 })], cursor: {} } }, + { path: `/api/session/${id}/message`, json: { data: [assistant("msg_2", "Ready.", 2000), user("msg_1", "Review it", 1000)], cursor: {} } }, + { path: `/api/session/${id}/inbox`, json: { data: [] } }, + { method: "POST", path: `/api/session/${id}/command`, status: 204 }, + ], + steps: [ + { checkpoint: "ready", until: "Review it" }, + // The palette runs it first: its search finding the plugin's command shows the plugin has registered its + // commands, alt+r among them, which it does after the session settles (file-browser-flake). + { keys: ["ctrl+p"] }, + // Waited for before the search is typed. The palette's own list is not the plugin's to compare: its search is. + { + checkpoint: "palette", + until: "Search commands", + masks: [{ x: 40, y: 9, width: 62, height: 24, reason: "the host's palette list, which the plugin does not draw" }], + }, + { type: "Run the review" }, + { checkpoint: "found", until: "Run the review" }, + { keys: ["enter"] }, + { wait: 300 }, + { keys: ["alt+r"] }, + { wait: 300 }, + { checkpoint: "ran" }, + ], +}) diff --git a/packages/cli-rs/parity/scenarios/P.8/context-gauge.app.ts b/packages/cli-rs/parity/scenarios/P.8/context-gauge.app.ts new file mode 100644 index 000000000000..8f5cf78dec97 --- /dev/null +++ b/packages/cli-rs/parity/scenarios/P.8/context-gauge.app.ts @@ -0,0 +1,38 @@ +// CT-28: `opencode-tui-context@2.1.1`, unmodified from npm: its sidebar panel sizes its context gauges and picks its +// legend's layout by the panel's width, which it reads in `onSizeChange`. The layer gave no width, so the gauges drew +// narrower and the legend's values wrapped under their labels. TS loads the package from node_modules; the Rust client +// runs the same files on the JS host through the V2 compatibility layer. +import { assistant, defineApp, location, model, session, user } from "../../lib/app" + +const id = "ses_c" +const reply = { + ...assistant("msg_2", "Measured.", 2000), + cost: 0.04, + tokens: { input: 13060, output: 20, reasoning: 0, cache: { read: 0, write: 0 } }, +} + +export default defineApp({ + width: 140, + height: 34, + config: { + experimental: { "new-designs": true }, + plugins: ["./out/npm/node_modules/opencode-tui-context"], + }, + env: { OPENCODE_PARITY_PLUGIN: "npm" }, + args: { sessionID: id }, + routes: [ + { path: `/api/session/${id}`, json: { data: { ...session(id, "Measure it", { updated: 2 }), cost: 0.04 } } }, + { path: "/api/session", json: { data: [session(id, "Measure it", { updated: 2 })], cursor: {} } }, + { path: `/api/session/${id}/message`, json: { data: [reply, user("msg_1", "Measure", 1000)], cursor: {} } }, + { path: `/api/session/${id}/inbox`, json: { data: [] } }, + { path: "/api/model", json: { location, data: [model] } }, + ], + steps: [ + { + checkpoint: "panel", + until: "used", + // TS's sidebar draws its scrollbar beside the panel, where the host's draws none. + deviation: [{ file: "F16-v2-compat-layer", cells: 13 }], + }, + ], +}) diff --git a/packages/cli-rs/parity/scenarios/P.8/context-grid.app.ts b/packages/cli-rs/parity/scenarios/P.8/context-grid.app.ts new file mode 100644 index 000000000000..9e08009942d2 --- /dev/null +++ b/packages/cli-rs/parity/scenarios/P.8/context-grid.app.ts @@ -0,0 +1,61 @@ +// Ports trio: `@khaosoigai/oc-context-grid@0.3.2`, unmodified from npm: the session's context window as a grid of +// squares in the sidebar, and its `/contextgrid` page (a route of the plugin's own, with its keyboard mode), which +// escape leaves for the session. TS loads the package from node_modules; the Rust client runs the same files on the JS +// host through the V2 compatibility layer, and its Luau port in its place (`app::ports_replay`). +import { assistant, defineApp, location, model, session, user } from "../../lib/app" + +const id = "ses_g" +const reply = { + ...assistant("msg_2", [ + { type: "text", text: "The file says what the release holds; the notes follow it." }, + { + type: "tool", + id: "call_1", + name: "read", + state: { + status: "completed", + input: { path: "CHANGELOG.md" }, + content: [{ type: "text", text: "x".repeat(40000) }], + }, + time: { created: 2, ran: 2, completed: 3 }, + }, + ]), + cost: 0.08, + tokens: { input: 30000, output: 500, reasoning: 0, cache: { read: 5000, write: 0 } }, +} + +export default defineApp({ + width: 140, + height: 34, + config: { + experimental: { "new-designs": true }, + plugins: ["./out/npm/node_modules/@khaosoigai/oc-context-grid"], + }, + env: { OPENCODE_PARITY_PLUGIN: "npm" }, + args: { sessionID: id }, + routes: [ + { path: `/api/session/${id}`, json: { data: { ...session(id, "Draft the notes", { updated: 2 }), cost: 0.08 } } }, + { path: "/api/session", json: { data: [session(id, "Draft the notes", { updated: 2 })], cursor: {} } }, + { + path: `/api/session/${id}/message`, + json: { data: [reply, user("msg_1", "Read the changelog and draft the notes for 2.3.")], cursor: {} }, + }, + { path: `/api/session/${id}/inbox`, json: { data: [] } }, + { path: "/api/model", json: { location, data: [model] } }, + ], + steps: [ + { checkpoint: "sidebar", until: "tokens (18%)" }, + { type: "/contextgrid" }, + // The completion lists the plugin's command before Enter: the plugin loads after the screen settles, and an + // Enter on a list that has not matched its command yet does nothing (file-browser-flake). + { + checkpoint: "slash", + until: "Show context usage as a grid", + // The list shows the plugin's slash alias `/ctx` too, on each carrier, as TS's does (contract ergonomics 2.6). + }, + { keys: ["enter"] }, + { checkpoint: "page", until: "Estimated usage by category" }, + { keys: ["escape"] }, + { checkpoint: "back", until: "tokens (18%)" }, + ], +}) diff --git a/packages/cli-rs/parity/scenarios/P.8/context-hue.app.ts b/packages/cli-rs/parity/scenarios/P.8/context-hue.app.ts new file mode 100644 index 000000000000..adefbfc40171 --- /dev/null +++ b/packages/cli-rs/parity/scenarios/P.8/context-hue.app.ts @@ -0,0 +1,34 @@ +// CT-9: `opencode-plugin-context@2.0.2`, unmodified from npm: the session's context use as a segmented bar in the +// sidebar, its prompt and tool segments in `theme.hue.accent[500]`. The JS host's theme had no `hue`, so the slot +// crashed ("undefined is not an object (evaluating 'theme.hue.accent')") and drew nothing. TS loads the package from +// node_modules; the Rust client runs the same files on the JS host through the V2 compatibility layer. +import { assistant, defineApp, location, model, session, user } from "../../lib/app" + +const id = "ses_h" +const reply = { + ...assistant("msg_2", "Measured.", 2000), + cost: 0.42, + tokens: { input: 120000, output: 500, reasoning: 2000, cache: { read: 30000, write: 0 } }, +} + +export default defineApp({ + width: 140, + height: 34, + config: { + experimental: { "new-designs": true }, + plugins: ["./out/npm/node_modules/opencode-plugin-context"], + }, + env: { OPENCODE_PARITY_PLUGIN: "npm" }, + args: { sessionID: id }, + routes: [ + { + path: `/api/session/${id}`, + json: { data: { ...session(id, "Measure the context", { updated: 2 }), cost: 0.42 } }, + }, + { path: "/api/session", json: { data: [session(id, "Measure the context", { updated: 2 })], cursor: {} } }, + { path: `/api/session/${id}/message`, json: { data: [reply, user("msg_1", "Measure it", 1000)], cursor: {} } }, + { path: `/api/session/${id}/inbox`, json: { data: [] } }, + { path: "/api/model", json: { location, data: [model] } }, + ], + steps: [{ checkpoint: "bar", until: "200,000 tokens" }], +}) diff --git a/packages/cli-rs/parity/scenarios/P.8/file-browser.app.ts b/packages/cli-rs/parity/scenarios/P.8/file-browser.app.ts new file mode 100644 index 000000000000..85923d5945ec --- /dev/null +++ b/packages/cli-rs/parity/scenarios/P.8/file-browser.app.ts @@ -0,0 +1,80 @@ +// CT-11: `opencode-file-browser@1.0.4`, unmodified from npm: `/files` on the home screen opens its browser route over +// `client.file.list`. Its keys are commands of layers it registers in setup, each enabled while its search field is not +// focused; once `/` focused the field, the field hears its text by `onInput` (the search) and its arrows by +// `onKeyDown`, which the layer did not map, so the search never ran. Since contract 2.x step B the field also takes the +// host's focus, so what the user types after `ctrl+f` is its text. TS loads the package from node_modules; the Rust +// client runs the same files on the JS host through the V2 compatibility layer. +import { defineApp } from "../../lib/app" + +const location = { directory: "/tmp/opencode/packages/tui" } +const entries = [ + { path: "src", type: "directory" }, + { path: "test", type: "directory" }, + { path: "README.md", type: "file" }, + { path: "package.json", type: "file" }, + { path: "tsconfig.json", type: "file" }, +] +// TS's `<scrollbox>` draws its scrollbar beside the list (28 cells) and its field's placeholder in OpenTUI's color (12), +// where the contract's scroll and field draw the host's. +const deviation = [{ file: "F16-v2-compat-layer", cells: 40 }] + +export default defineApp({ + width: 140, + height: 34, + config: { + experimental: { "new-designs": true }, + plugins: ["./out/npm/node_modules/opencode-file-browser"], + }, + env: { OPENCODE_PARITY_PLUGIN: "npm" }, + routes: [ + { path: "/api/fs/list", json: { location, data: entries } }, + { + path: "/api/fs/find", + json: { location, data: [{ path: "src/package.ts", type: "file" }, { path: "package.json", type: "file" }] }, + }, + ], + steps: [ + { + checkpoint: "home", + until: "ctrl+p commands", + masks: [{ x: 36, y: 18, width: 70, height: 1, reason: "the placeholder example: random in TS and Rust" }], + }, + { type: "/files" }, + // The completion lists the plugin's command before Enter: the plugin loads after the home screen settles, and an + // Enter on a list that has not matched its command yet does nothing (file-browser-flake). + { + checkpoint: "slash", + until: "Browse, preview, edit", + // The list shows the plugin's slash aliases (`/update-files`) too, as TS's does (contract ergonomics 2.6). + }, + { keys: ["enter"] }, + { checkpoint: "browser", until: "tsconfig.json", deviation }, + { keys: ["down"] }, + { keys: ["j"] }, + { checkpoint: "moved", deviation }, + // Its search field takes the plugin's focus, which disables its commands; its `onKeyDown` moves the selection and + // takes `down` with `preventDefault`, so the host's field never has it (contract gaps 2). + { keys: ["ctrl+f"] }, + { keys: ["down"] }, + { checkpoint: "searching", deviation }, + // The field has the host's focus too (contract 2.x, `focus-input`): what the user types is its text, and its search. + { type: "src" }, + { checkpoint: "typed", until: "2 matches", deviation }, + // Escape leaves the field and clears its search: its commands, disabled while it had the focus, are enabled again, + // so `q` closes the browser (carbon ce-2: read where the layer did not follow it, the field's focus left them + // disabled for good). + { keys: ["escape"] }, + // The user types once the field let the focus go: on the JS host it lets go as its `onKeyDown` runs, after the key, + // and a key typed before that is still the field's. + { checkpoint: "left", until: "tsconfig.json", deviation }, + // Not a key that moves the selection: escape also starts the plugin's 220 ms debounced search of "", which sets + // the selection back to the first row when it runs, on Bun's clock in both clients. A `j` before it was undone + // once the replay's checkpoint came after it (fb-flake). + { keys: ["q"] }, + { + checkpoint: "closed", + until: "ctrl+p commands", + masks: [{ x: 36, y: 18, width: 70, height: 1, reason: "the placeholder example: random in TS and Rust" }], + }, + ], +}) diff --git a/packages/cli-rs/parity/scenarios/P.8/force-input.app.ts b/packages/cli-rs/parity/scenarios/P.8/force-input.app.ts new file mode 100644 index 000000000000..45d475204b68 --- /dev/null +++ b/packages/cli-rs/parity/scenarios/P.8/force-input.app.ts @@ -0,0 +1,29 @@ +// P8: `@mynameistito/opencode-force-input@1.1.20`, unmodified from npm: its hint, an absolute box claimed in +// `prompt.footer.status` and lifted two rows into the composer's info row, and its `ctrl+enter`, which dispatches +// `session.interrupt` three times and then `prompt.submit`. TS loads the package from node_modules; the Rust client runs +// the same files on the JS host through the V2 compatibility layer. +import { assistant, defineApp, session, user } from "../../lib/app" + +const id = "ses_f" + +export default defineApp({ + config: { plugins: ["./out/npm/node_modules/@mynameistito/opencode-force-input"] }, + env: { OPENCODE_PARITY_PLUGIN: "npm" }, + args: { sessionID: id }, + routes: [ + { path: `/api/session/${id}`, json: { data: session(id, "Ship it", { updated: 2 }) } }, + { path: "/api/session", json: { data: [session(id, "Ship it", { updated: 2 })], cursor: {} } }, + { + path: `/api/session/${id}/message`, + json: { data: [assistant("msg_2", "Done.", 2000), user("msg_1", "Ship it", 1000)], cursor: {} }, + }, + { path: `/api/session/${id}/inbox`, json: { data: [] } }, + { method: "POST", path: `/api/session/${id}/prompt`, json: { data: { id: "inb_1" } } }, + ], + steps: [ + { checkpoint: "hint", until: "send" }, + { type: "now" }, + { keys: ["ctrl+enter"] }, + { checkpoint: "forced" }, + ], +}) diff --git a/packages/cli-rs/parity/scenarios/P.8/goal-plugin.app.ts b/packages/cli-rs/parity/scenarios/P.8/goal-plugin.app.ts new file mode 100644 index 000000000000..db04bcc9d90d --- /dev/null +++ b/packages/cli-rs/parity/scenarios/P.8/goal-plugin.app.ts @@ -0,0 +1,86 @@ +// Ports trio (complex): `@prevalentware/opencode-goal-plugin@0.1.98`, unmodified from npm: its sidebar block shows the +// session's goal, read from the newest goal tool result among the session's messages (a paused goal with a budget, +// limits, a checkpoint and a stop reason), and its palette command `Goal` opens a large select whose filter's +// placeholder is the goal's summary, one line a field; picking Resume sends the plugin's resume prompt to the session. +// TS loads the package from node_modules; the Rust client runs the same files on the JS host through the V2 +// compatibility layer, and its Luau port in its place (`app::ports_replay`). +import { assistant, defineApp, session, user } from "../../lib/app" + +const id = "ses_g" +const goal = { + sessionID: id, + objective: "Ship the parser rewrite", + status: "paused", + tokenBudget: 50000, + tokensUsed: 1200, + timeUsedSeconds: 725, + createdAt: 1700000000, + updatedAt: 1700000600, + completionEvidence: null, + blocker: null, + closedAt: null, + continuationFailures: 0, + lastStatus: "Goal paused.", + maxAutoTurns: 10, + maxDurationSeconds: 3600, + noProgressTokenThreshold: null, + maxNoProgressTurns: null, + noProgressTurns: 1, + budgetWrapupSent: false, + stopReason: "paused", + history: [{ type: "created", detail: "Goal set.", timestamp: 1700000000 }], + checkpoints: [{ summary: "Lexer done", timestamp: 1700000300 }], + lastCheckpoint: { summary: "Lexer done", timestamp: 1700000300 }, + lastAssistantText: "", + lastAssistantMessageID: "", + autoTurns: 3, + lastContinuationAt: null, + remainingTokens: 48800, +} +const tool = (call: string, name: string, text: string, at: number) => ({ + type: "tool", + id: call, + name, + state: { status: "completed", input: {}, content: [{ type: "text", text }] }, + time: { created: at, ran: at + 1, completed: at + 2 }, +}) + +export default defineApp({ + width: 150, + height: 40, + config: { plugins: ["./out/npm/node_modules/@prevalentware/opencode-goal-plugin"] }, + env: { OPENCODE_PARITY_PLUGIN: "npm", OPENCODE_GOAL_STATE_PATH: "/nonexistent/opencode-goal-plugin/goals.json" }, + args: { sessionID: id }, + routes: [ + { path: `/api/session/${id}`, json: { data: session(id, "Rewrite the parser", { updated: 2 }) } }, + { path: "/api/session", json: { data: [session(id, "Rewrite the parser", { updated: 2 })], cursor: {} } }, + { + path: `/api/session/${id}/message`, + json: { + data: [ + assistant("msg_3", [tool("call_2", "get_goal", JSON.stringify({ goal }), 30), { type: "text", text: "Paused." }], 30), + assistant("msg_2", [tool("call_1", "create_goal", "not json", 20)], 20), + user("msg_1", "Rewrite the parser", 10), + ], + cursor: {}, + }, + }, + { path: `/api/session/${id}/inbox`, json: { data: [] } }, + { method: "POST", path: `/api/session/${id}/prompt`, json: { data: { id: "inb_1" } } }, + ], + steps: [ + { checkpoint: "sidebar", until: "Ship the parser rewrite" }, + { keys: ["ctrl+p"] }, + { + checkpoint: "commands", + until: "Search commands", + masks: [{ x: 41, y: 13, width: 62, height: 14, reason: "the host's palette list, which the plugin does not draw" }], + }, + { type: "goal" }, + { checkpoint: "palette", until: "View, pause, resume" }, + { keys: ["enter"] }, + { checkpoint: "summary", until: "Refresh" }, + { keys: ["down", "down", "enter"] }, + { checkpoint: "sent", until: "Paused." }, + ], +}) diff --git a/packages/cli-rs/parity/scenarios/P.8/goal-select.app.ts b/packages/cli-rs/parity/scenarios/P.8/goal-select.app.ts new file mode 100644 index 000000000000..b39e6581942b --- /dev/null +++ b/packages/cli-rs/parity/scenarios/P.8/goal-select.app.ts @@ -0,0 +1,31 @@ +// CT-14: `@cleocode/goal@0.13.0`, unmodified from npm: its sidebar section is a one-row OpenTUI `<select>` that opens +// its goals manager. The layer had no `<select>`, so the slot crashed and the section was missing. Now a select draws +// as OpenTUI's renderable draws it: a row of each option that fits, the selected one with `▶ ` on its background. TS +// loads the package from node_modules; the Rust client runs the same files on the JS host through the V2 +// compatibility layer. +import { assistant, defineApp, session, user } from "../../lib/app" + +const id = "ses_o" + +export default defineApp({ + width: 140, + height: 34, + config: { + experimental: { "new-designs": true }, + plugins: ["./out/npm/node_modules/@cleocode/goal"], + }, + env: { OPENCODE_PARITY_PLUGIN: "npm" }, + args: { sessionID: id }, + routes: [ + { path: `/api/session/${id}`, json: { data: session(id, "Set a goal", { updated: 2 }) } }, + { path: "/api/session", json: { data: [session(id, "Set a goal", { updated: 2 })], cursor: {} } }, + { + path: `/api/session/${id}/message`, + json: { data: [assistant("msg_2", "Goal set.", 2000), user("msg_1", "Set it", 1000)], cursor: {} }, + }, + { path: `/api/session/${id}/inbox`, json: { data: [] } }, + { method: "POST", path: "/api/rpc/open-goal/:method", status: 404, json: { _tag: "NotFound", message: "no such RPC" } }, + ], + // Its goals load from its server part, which is not running here: the select offers to retry, in both clients. + steps: [{ checkpoint: "sidebar", until: "F9 manager" }], +}) diff --git a/packages/cli-rs/parity/scenarios/P.8/good-fences.app.ts b/packages/cli-rs/parity/scenarios/P.8/good-fences.app.ts new file mode 100644 index 000000000000..12220c630010 --- /dev/null +++ b/packages/cli-rs/parity/scenarios/P.8/good-fences.app.ts @@ -0,0 +1,84 @@ +// Contract 2.x, addition 3 (step D): `opencode-good-fences@0.1.0`, unmodified from npm. For every filetype OpenTUI's +// maps name it registers a code-block renderer that wraps the host's own code view (`defaultRender()`) in a raised box +// with the fence's language as a muted label. The answer holds a `ts` fence, a fence with no language (no filetype, so +// no renderer: the host's own view), and a `latex` fence, which good-fences takes from the built-in LaTeX as the last +// to register, as in TS. A fence then streams, and the theme changes. TS loads the package from node_modules; the Rust +// client runs the same files on the JS host through the V2 compatibility layer, where a renderer answers after the +// frame: the host's code view shows first, and the box once the JS host answered. +import { assistant, defineApp, session, user } from "../../lib/app" + +const id = "ses_g" +const answer = [ + "Here is the code:", + "", + "```ts", + "const answer = 42", + "console.log(answer)", + "```", + "", + "A plain fence:", + "", + "```", + "no language here", + "```", + "", + "And the math:", + "", + "```latex", + "E = mc^2", + "```", + "", +].join("\n") + +// TS 0.9.4's default code view paints its glyphs on the page color inside the plugin's box; Rust keeps the box's +// background (`parity/deviations/F16-plugin-fence-margin.md`). Color only. +const margin = (cells: number) => [{ file: "F16-plugin-fence-margin", cells }] + +const delta = (seq: number, text: string) => ({ + event: { + id: `evt_${seq}`, + created: 10 + seq, + type: "session.text.delta", + durable: { aggregateID: id, seq, version: 1 }, + data: { sessionID: id, assistantMessageID: "msg_2", ordinal: 0, delta: text }, + }, +}) + +export default defineApp({ + width: 120, + height: 40, + config: { + experimental: { "new-designs": true }, + plugins: ["./out/npm/node_modules/opencode-good-fences"], + }, + env: { OPENCODE_PARITY_PLUGIN: "npm" }, + args: { sessionID: id }, + routes: [ + { path: `/api/session/${id}`, json: { data: session(id, "Show the fences", { updated: 2 }) } }, + { path: "/api/session", json: { data: [session(id, "Show the fences", { updated: 2 })], cursor: {} } }, + { + path: `/api/session/${id}/message`, + json: { data: [assistant("msg_2", answer, 2000), user("msg_1", "Show me the fences", 1000)], cursor: {} }, + }, + { path: `/api/session/${id}/inbox`, json: { data: [] } }, + ], + steps: [ + { checkpoint: "settled", until: "E = mc^2", deviation: margin(44) }, + // A fence that streams: its code follows in the frame; its box comes with the JS host's answer. + delta(1, "\nOne more:\n\n```py\nprint('streaming')\n"), + { checkpoint: "streaming", until: "print('streaming')", deviation: margin(44) }, + delta(2, "print('done')\n```\n\nThat is all.\n"), + { checkpoint: "streamed", until: "That is all.", deviation: margin(44) }, + // The theme changes: Markdown builds each fence again, which the plugin draws in the new theme. + { type: "/themes" }, + // defineApp wants the completion to list a typed command before Enter in a scenario that loads a plugin. + { checkpoint: "slash", until: "Switch theme", deviation: margin(44) }, + { keys: ["enter"] }, + { wait: 500 }, + { type: "tokyonight" }, + { wait: 500 }, + { keys: ["enter"] }, + { wait: 1000 }, + { checkpoint: "themed", until: "That is all.", deviation: margin(75) }, + ], +}) diff --git a/packages/cli-rs/parity/scenarios/P.8/host-keys.app.ts b/packages/cli-rs/parity/scenarios/P.8/host-keys.app.ts new file mode 100644 index 000000000000..66c295a670ad --- /dev/null +++ b/packages/cli-rs/parity/scenarios/P.8/host-keys.app.ts @@ -0,0 +1,7 @@ +// CT-8, CT-19: with no plugin, the host's own keys as before the change that routes a JS plugin's declined key on: the +// composer types `r` and a space, and Enter sends the prompt. The same keys as `P.8/rundev-keys` and +// `P.8/linear-keys`, which run with a plugin that binds them. +import { defineApp } from "../../lib/app" +import { keysApp } from "./keys" + +export default defineApp(keysApp) diff --git a/packages/cli-rs/parity/scenarios/P.8/keys.ts b/packages/cli-rs/parity/scenarios/P.8/keys.ts new file mode 100644 index 000000000000..aeb963c04d33 --- /dev/null +++ b/packages/cli-rs/parity/scenarios/P.8/keys.ts @@ -0,0 +1,70 @@ +// What the key rows of P.8 share (`host-keys`, `linear-keys`, `rundev-keys`): a session whose prompt can be sent, as a +// primary agent and a model are loaded, and the keys that type into it and send it. +import { assistant, session, user } from "../../lib/app" + +const id = "ses_d" +const location = { directory: "/tmp/opencode/packages/tui" } + +export const keysApp = { + args: { sessionID: id }, + routes: [ + { path: `/api/session/${id}`, json: { data: session(id, "Run it", { updated: 2 }) } }, + { path: "/api/session", json: { data: [session(id, "Run it", { updated: 2 })], cursor: {} } }, + { + path: `/api/session/${id}/message`, + json: { data: [assistant("msg_2", "Ran.", 2000), user("msg_1", "Run it", 1000)], cursor: {} }, + }, + { path: `/api/session/${id}/inbox`, json: { data: [] } }, + { method: "POST", path: `/api/session/${id}/prompt`, json: { data: { id: "inb_1" } } }, + { method: "POST", path: `/api/session/${id}/agent`, status: 204 }, + { method: "POST", path: `/api/session/${id}/model`, status: 204 }, + { + path: "/api/agent", + json: { + location, + data: [ + { + id: "build", + name: "build", + mode: "primary", + hidden: false, + permissions: [], + request: { settings: {}, headers: {}, body: {} }, + }, + ], + }, + }, + { + path: "/api/model", + json: { + location, + data: [ + { + id: "model", + modelID: "model", + providerID: "provider", + name: "Model", + capabilities: { tools: true, input: ["text"], output: ["text"] }, + variants: [], + time: { released: 0 }, + cost: [{ input: 3, output: 15, cache: { read: 0.3, write: 3.75 } }], + status: "active", + enabled: true, + limit: { context: 200000, output: 32000 }, + }, + ], + }, + }, + ], + // `r` and a space typed, then Enter, which sends the prompt: the requests compared hold its POST with the text. No + // checkpoint follows it, as the host shows a prompt being sent differently from TS with no plugin at all (TS clears + // the composer and shows the message at once; the Rust client keeps the text until the server answers). + steps: [ + { checkpoint: "session", until: "Ran." }, + { type: "refresh" }, + { keys: ["space"] }, + { type: "rr" }, + { checkpoint: "typed", until: "refresh rr" }, + { keys: ["enter"] }, + ], +} diff --git a/packages/cli-rs/parity/scenarios/P.8/linear-keys.app.ts b/packages/cli-rs/parity/scenarios/P.8/linear-keys.app.ts new file mode 100644 index 000000000000..86418591d43b --- /dev/null +++ b/packages/cli-rs/parity/scenarios/P.8/linear-keys.app.ts @@ -0,0 +1,12 @@ +// CT-8: `@joe-broadhead/opencode-linear@0.0.9`, unmodified from npm. It binds `r` to "refresh" with `enabled: shown`, +// so it applies only while its status dialog shows; TS binds no disabled command. The host took every `r` anyway, so +// the composer lost them. Now a disabled command declines its key, which goes on to the composer. TS loads the package +// from node_modules; the Rust client runs the same files on the JS host through the V2 compatibility layer. +import { defineApp } from "../../lib/app" +import { keysApp } from "./keys" + +export default defineApp({ + ...keysApp, + config: { plugins: ["./out/npm/node_modules/@joe-broadhead/opencode-linear"] }, + env: { OPENCODE_PARITY_PLUGIN: "npm" }, +}) diff --git a/packages/cli-rs/parity/scenarios/P.8/navigator.app.ts b/packages/cli-rs/parity/scenarios/P.8/navigator.app.ts new file mode 100644 index 000000000000..3539c6c6c690 --- /dev/null +++ b/packages/cli-rs/parity/scenarios/P.8/navigator.app.ts @@ -0,0 +1,39 @@ +// CT-21: `opencode-navigator@0.27.7`, unmodified from npm, in a session: its LIMITS and TODO sidebar and its footer. +// Its keymap layers name each binding by a count that grows with every registration (`v2-binding.<n>.<i>`). A change +// of a plugin's registrations reloads them, and the reload mounted its components again, which registered new names: +// it reloaded without end and failed at the 64-changes bound. Now a mount the reload begins again adopts the one it +// ended, as TS takes a registration without a remount, and the registrations settle. TS loads the package from +// node_modules; the Rust client runs the same files on the JS host through the V2 compatibility layer. +import { assistant, defineApp, session, user } from "../../lib/app" + +const id = "ses_n" + +export default defineApp({ + width: 140, + height: 34, + config: { + experimental: { "new-designs": true }, + plugins: ["./out/npm/node_modules/opencode-navigator"], + }, + env: { OPENCODE_PARITY_PLUGIN: "npm" }, + args: { sessionID: id }, + routes: [ + { path: `/api/session/${id}`, json: { data: session(id, "Navigate", { updated: 2 }) } }, + { path: "/api/session", json: { data: [session(id, "Navigate", { updated: 2 })], cursor: {} } }, + { + path: `/api/session/${id}/message`, + json: { data: [assistant("msg_2", "Navigated.", 2000), user("msg_1", "Navigate", 1000)], cursor: {} }, + }, + { path: `/api/session/${id}/inbox`, json: { data: [] } }, + // Its project settings, empty. + { path: "/api/fs/read/.opencode/:file", base64: Buffer.from("{}").toString("base64") }, + ], + steps: [ + { + checkpoint: "session", + until: "Navigator 0.27.7", + // TS's `<scrollbox>` draws its scrollbar beside the LIMITS section, where the contract's scroll draws none. + deviation: [{ file: "F16-v2-compat-layer", cells: 5 }], + }, + ], +}) diff --git a/packages/cli-rs/parity/scenarios/P.8/queue-manager.app.ts b/packages/cli-rs/parity/scenarios/P.8/queue-manager.app.ts new file mode 100644 index 000000000000..0f4b2651f66b --- /dev/null +++ b/packages/cli-rs/parity/scenarios/P.8/queue-manager.app.ts @@ -0,0 +1,92 @@ +// Ports trio (complex): `@bybrawe/opencode-queue-manager@0.3.5`, unmodified from npm: `/qm` opens its menu, a select +// that comes back after each task. It adds a draft through a prompt, stages ten copies of a preset message after a +// confirm, moves a draft to the top of the stored list, publishes the eleven drafts to the session's queue one by one, +// and cancels a pending item of the session's inbox. TS loads the package from node_modules; the Rust client runs the +// same files on the JS host through the V2 compatibility layer, and its Luau port in its place +// (`app::ports_replay`). +import { assistant, defineApp, session, user } from "../../lib/app" + +const id = "ses_q" +const pending = [ + { + id: "msg_p1", + sessionID: id, + time: { created: 3000 }, + type: "user", + payload: { text: "Write the tests" }, + delivery: "queue", + }, + { + id: "msg_p2", + sessionID: id, + time: { created: 3001 }, + type: "synthetic", + payload: { text: "Continue if you have next steps" }, + delivery: "queue", + }, +] + +export default defineApp({ + width: 120, + height: 34, + config: { plugins: ["./out/npm/node_modules/@bybrawe/opencode-queue-manager"] }, + env: { OPENCODE_PARITY_PLUGIN: "npm" }, + args: { sessionID: id }, + routes: [ + { path: `/api/session/${id}`, json: { data: session(id, "Queue the work", { updated: 2 }) } }, + { path: "/api/session", json: { data: [session(id, "Queue the work", { updated: 2 })], cursor: {} } }, + { + path: `/api/session/${id}/message`, + json: { data: [assistant("msg_2", "Ready.", 2000), user("msg_1", "Queue the work", 1000)], cursor: {} }, + }, + { path: `/api/session/${id}/inbox`, json: { data: pending } }, + { method: "POST", path: `/api/session/${id}/prompt`, json: { data: pending[0] } }, + { method: "DELETE", path: `/api/session/${id}/inbox/msg_p1`, status: 204 }, + ], + steps: [ + { checkpoint: "session", until: "Ready." }, + { type: "/qm" }, + // The completion lists the plugin's command before Enter: the plugin loads after the screen settles, and an + // Enter on a list that has not matched its command yet does nothing (file-browser-flake). + { checkpoint: "slash", until: "Queue Manager" }, + { keys: ["enter"] }, + { checkpoint: "menu", until: "native pending" }, + { keys: ["down", "enter"] }, + { checkpoint: "add", until: "Your prompt" }, + { type: "Review the diff" }, + { keys: ["enter"] }, + { checkpoint: "added", until: "1 drafts" }, + { keys: ["enter"] }, + { checkpoint: "count", until: "Custom (1-500)" }, + { keys: ["enter"] }, + { checkpoint: "message", until: "Custom message" }, + { keys: ["down", "enter"] }, + { checkpoint: "stage", until: "Stage 10 copies" }, + { keys: ["enter"] }, + { checkpoint: "staged", until: "11 drafts" }, + { keys: ["down", "down", "down", "enter"] }, + { checkpoint: "drafts", until: "choose one" }, + { keys: ["down", "enter"] }, + { checkpoint: "actions", until: "Move to bottom" }, + { keys: ["down", "down", "down", "enter"] }, + { checkpoint: "moved", until: "001. continue" }, + { keys: ["escape"] }, + { checkpoint: "back", until: "11 drafts" }, + { keys: ["down", "down", "down", "down", "down", "enter"] }, + { checkpoint: "publish", until: "Send 11 messages" }, + { keys: ["enter"] }, + { checkpoint: "published", until: "0 drafts" }, + { keys: ["down", "down", "down", "down", "down", "down", "enter"] }, + { checkpoint: "inbox", until: "native inbox (2)" }, + { keys: ["enter"] }, + { checkpoint: "item", until: "Cancel this pending item" }, + { keys: ["enter"] }, + { checkpoint: "cancel", until: "only still-pending" }, + { keys: ["enter"] }, + { checkpoint: "cancelled", until: "native inbox (2)" }, + { keys: ["escape"] }, + { checkpoint: "again", until: "0 drafts" }, + { keys: ["escape"] }, + { checkpoint: "closed", until: "Ready." }, + ], +}) diff --git a/packages/cli-rs/parity/scenarios/P.8/quick-switch.app.ts b/packages/cli-rs/parity/scenarios/P.8/quick-switch.app.ts new file mode 100644 index 000000000000..c05053b19f39 --- /dev/null +++ b/packages/cli-rs/parity/scenarios/P.8/quick-switch.app.ts @@ -0,0 +1,37 @@ +// FT-6: `opencode-model-quick-switch@0.1.0`, unmodified from npm. Its setup calls `renderer.prependInputHandler`, which +// the layer does not implement: it warns in the client's log and does nothing, and the setup goes on to draw the sidebar's "Recent models" +// block, as TS draws it (here "Requires OpenCode 2.2.5", as the fixture's version is not the one it checks for). TS +// loads the package from node_modules; the Rust client runs the same files on the JS host. +import { assistant, defineApp, session, user } from "../../lib/app" + +const id = "ses_q" +// TS shows "Finishing startup…" for three seconds once loading a plugin took over half a second +// (`component/startup-loading.tsx`). +const startup = { x: 59, y: 32, width: 22, height: 1, reason: "TS plugin loading notice" } + +export default defineApp({ + width: 140, + height: 34, + config: { + experimental: { "new-designs": true }, + plugins: ["./out/npm/node_modules/opencode-model-quick-switch"], + }, + env: { OPENCODE_PARITY_PLUGIN: "npm" }, + args: { sessionID: id }, + routes: [ + { path: `/api/session/${id}`, json: { data: session(id, "Switch models", { updated: 2 }) } }, + { path: "/api/session", json: { data: [session(id, "Switch models", { updated: 2 })], cursor: {} } }, + { + path: `/api/session/${id}/message`, + json: { data: [assistant("msg_2", "Switched.", 2000), user("msg_1", "Switch it", 1000)], cursor: {} }, + }, + { path: `/api/session/${id}/inbox`, json: { data: [] } }, + ], + steps: [ + { + checkpoint: "sidebar", + until: "Requires OpenCode 2.2.5", + masks: [startup], + }, + ], +}) diff --git a/packages/cli-rs/parity/scenarios/P.8/reviewer-border.app.ts b/packages/cli-rs/parity/scenarios/P.8/reviewer-border.app.ts new file mode 100644 index 000000000000..cb2ae62a1f8b --- /dev/null +++ b/packages/cli-rs/parity/scenarios/P.8/reviewer-border.app.ts @@ -0,0 +1,28 @@ +// CT-18: `mighty-reviewer@0.14.0`, unmodified from npm: its sidebar panel is a box with `border: { type: "single" }` and a +// border color. OpenTUI draws a border only for `true` or an array of sides, so TS draws the panel without one; the +// layer drew all four sides for any truthy `border`. TS loads the package from node_modules; the Rust client runs the +// same files on the JS host through the V2 compatibility layer. +import { assistant, defineApp, session, user } from "../../lib/app" + +const id = "ses_r" + +export default defineApp({ + width: 140, + height: 34, + config: { + experimental: { "new-designs": true }, + plugins: ["./out/npm/node_modules/mighty-reviewer"], + }, + env: { OPENCODE_PARITY_PLUGIN: "npm" }, + args: { sessionID: id }, + routes: [ + { path: `/api/session/${id}`, json: { data: session(id, "Review it", { updated: 2 }) } }, + { path: "/api/session", json: { data: [session(id, "Review it", { updated: 2 })], cursor: {} } }, + { + path: `/api/session/${id}/message`, + json: { data: [assistant("msg_2", "Reviewed.", 2000), user("msg_1", "Review it", 1000)], cursor: {} }, + }, + { path: `/api/session/${id}/inbox`, json: { data: [] } }, + ], + steps: [{ checkpoint: "sidebar", until: "Reviewed." }], +}) diff --git a/packages/cli-rs/parity/scenarios/P.8/rundev-keys.app.ts b/packages/cli-rs/parity/scenarios/P.8/rundev-keys.app.ts new file mode 100644 index 000000000000..6b4cb8dd30f7 --- /dev/null +++ b/packages/cli-rs/parity/scenarios/P.8/rundev-keys.app.ts @@ -0,0 +1,13 @@ +// CT-19: `opencode-rundev@0.1.5`, unmodified from npm. A global layer of its binds `up`, `down`, `space`, `return` and +// `escape` for its service picker, and each returns `false` while the picker is closed, which in TS lets the key fall +// through. The host took the key anyway, so space typed nothing and Enter never sent the prompt. Now a declined key +// goes on to the host: the composer types the space, and Enter sends. TS loads the package from node_modules; the Rust +// client runs the same files on the JS host through the V2 compatibility layer. +import { defineApp } from "../../lib/app" +import { keysApp } from "./keys" + +export default defineApp({ + ...keysApp, + config: { plugins: ["./out/npm/node_modules/opencode-rundev"] }, + env: { OPENCODE_PARITY_PLUGIN: "npm" }, +}) diff --git a/packages/cli-rs/parity/scenarios/P.8/select-search.app.ts b/packages/cli-rs/parity/scenarios/P.8/select-search.app.ts new file mode 100644 index 000000000000..9d6a0a1361ee --- /dev/null +++ b/packages/cli-rs/parity/scenarios/P.8/select-search.app.ts @@ -0,0 +1,33 @@ +// FT-12: a V2 plugin's `ui.dialog.select` with its own `search` (parity/plugins/v2search, as opencode-session-time's +// `/time`): the rows are the search's for each query, flat and in its order, so a query that only a description +// holds ("one") lists the rows the search keeps; Enter picks the first. TS loads the plugin as a local one; the Rust +// client runs the same file on the JS host through the V2 compatibility layer. +import { defineApp } from "../../lib/app" + +export default defineApp({ + width: 120, + height: 30, + config: { experimental: { "new-designs": true }, plugins: ["./plugins/v2search"] }, + env: { OPENCODE_PARITY_PLUGIN: "npm" }, + steps: [ + // Typed at once, so the plugin loads while the list is open, and its command joins the open list. The Rust client + // remounts the route as a plugin loads, which closed the list (js-followups); TS keeps it open. + { type: "/find" }, + { checkpoint: "slash", until: "Find a turn" }, + { keys: ["enter"] }, + { checkpoint: "listed", until: "red fish" }, + { type: "one" }, + { + checkpoint: "searched", + until: "someone else", + // The list's dialog leaves the placeholder in view since #64983 dropped its empty footer row. + masks: [{ x: 26, y: 16, width: 90, height: 1, reason: "the placeholder example: random in TS and Rust" }], + }, + { keys: ["enter"] }, + { + checkpoint: "picked", + until: "picked t1", + masks: [{ x: 26, y: 16, width: 90, height: 1, reason: "the placeholder example: random in TS and Rust" }], + }, + ], +}) diff --git a/packages/cli-rs/parity/scenarios/P.8/sensitive-encrypt.app.ts b/packages/cli-rs/parity/scenarios/P.8/sensitive-encrypt.app.ts new file mode 100644 index 000000000000..aaf98ae712a2 --- /dev/null +++ b/packages/cli-rs/parity/scenarios/P.8/sensitive-encrypt.app.ts @@ -0,0 +1,52 @@ +// CT-37: `@max10240/opencode-plugin-sensitive-encrypt@1.0.31`, unmodified from npm: `/encrypt-sensitive` asks its +// server part for the keys, then shows a panel of its own (`ui.dialog.show`) whose text field takes the focus, so what +// the user types is the field's. The field was in no mount, so it took no focus and the typing was lost; the dialog's +// body is now a mount (contract ergonomics 2.7). TS loads the package from node_modules; the Rust client runs the +// same files on the JS host through the V2 compatibility layer. Its server part is not running: the scenario answers +// its `keys`. +import { assistant, defineApp, session, user } from "../../lib/app" + +const id = "ses_e" +const colors = [{ file: "F16-v2-compat-layer", cells: 900, styleOnly: true }] + +export default defineApp({ + width: 140, + height: 34, + config: { + experimental: { "new-designs": true }, + plugins: ["./out/npm/node_modules/@max10240/opencode-plugin-sensitive-encrypt"], + }, + env: { OPENCODE_PARITY_PLUGIN: "npm" }, + args: { sessionID: id }, + routes: [ + { path: `/api/session/${id}`, json: { data: session(id, "Secrets", { updated: 2 }) } }, + { path: "/api/session", json: { data: [session(id, "Secrets", { updated: 2 })], cursor: {} } }, + { + path: `/api/session/${id}/message`, + json: { data: [assistant("msg_2", "Done.", 2000), user("msg_1", "Hide it", 1000)], cursor: {} }, + }, + { path: `/api/session/${id}/inbox`, json: { data: [] } }, + { + method: "POST", + path: "/api/rpc/max10240.sensitive-encrypt/keys", + json: { output: { keys: [{ role: "encrypt", keyID: "key-0001" }], defaultRole: "encrypt" } }, + }, + ], + // The context's location sends its directory alone in the RPC's query (F16-v2-compat-layer). + requests: { deviation: "F16-v2-compat-layer" }, + steps: [ + { checkpoint: "session", until: "Hide it" }, + { type: "/encrypt-sensitive" }, + // The completion lists the plugin's command before Enter (file-browser-flake). + { checkpoint: "slash", until: "configured public key" }, + { keys: ["enter"] }, + // The plugin's text without a color, and its fields, draw in the host's colors (F16-v2-compat-layer). + { checkpoint: "panel", until: "ctrl+t switch", deviation: colors }, + // The field takes the focus a moment after the panel mounts (the plugin's own 50 ms timer). + { wait: 300 }, + { type: "hunter2" }, + { checkpoint: "typed", until: "hunter2", deviation: colors }, + { keys: ["escape"] }, + { checkpoint: "closed", until: "Hide it" }, + ], +}) diff --git a/packages/cli-rs/parity/scenarios/P.8/session-manager.app.ts b/packages/cli-rs/parity/scenarios/P.8/session-manager.app.ts new file mode 100644 index 000000000000..caee341a3165 --- /dev/null +++ b/packages/cli-rs/parity/scenarios/P.8/session-manager.app.ts @@ -0,0 +1,97 @@ +// Ports trio (complex): `@0xuwui/opencode-session-manager@0.1.2`, unmodified from npm: `/session-manager` opens its +// page (a route of its own) with the sessions grouped by directory, `j` moves the selection and PageUp and PageDown a +// page of it, Tab groups by project, +// `/` searches in a field that takes the focus, `r` asks for a new title in a prompt, `d` asks before it deletes. TS +// loads the package from node_modules; the Rust client runs the same files on the JS host through the V2 +// compatibility layer, and its Luau port in its place (`app::ports_replay`). +import { defineApp } from "../../lib/app" + +const at = (id: string, title: string, directory: string, created: number, updated: number) => ({ + id, + title, + projectID: "proj_test", + cost: 0, + tokens: { input: 0, output: 0, reasoning: 0, cache: { read: 0, write: 0 } }, + time: { created, updated }, + location: { directory }, +}) +const sessions = [ + at("ses_n", "Fix the theme picker", "/tmp/opencode/packages/app", 1700100000000, 1700200000000), + at("ses_m", "Plan the release", "/tmp/opencode/packages/tui", 1700000000000, 1700150000000), + at("ses_o", "Draft the notes", "/tmp/opencode/packages/tui", 1699000000000, 1699500000000), +] + +export default defineApp({ + width: 140, + height: 34, + config: { + experimental: { "new-designs": true }, + plugins: ["./out/npm/node_modules/@0xuwui/opencode-session-manager"], + }, + env: { OPENCODE_PARITY_PLUGIN: "npm" }, + args: { sessionID: "ses_m" }, + routes: [ + { path: "/api/session/ses_m", json: { data: sessions[1] } }, + { path: "/api/session", json: { data: sessions, cursor: {} } }, + { path: "/api/session/ses_m/message", json: { data: [], cursor: {} } }, + { path: "/api/session/ses_m/inbox", json: { data: [] } }, + { method: "DELETE", path: "/api/session/ses_n", status: 204 }, + ], + steps: [ + { checkpoint: "session", until: "Plan the release" }, + { type: "/session-manager" }, + // The completion lists the plugin's command before Enter: the plugin loads after the screen settles, and an + // Enter on a list that has not matched its command yet does nothing (file-browser-flake). + { checkpoint: "slash", until: "Browse, rename and delete" }, + { keys: ["enter"] }, + { checkpoint: "page", until: "Draft the notes" }, + { keys: ["k"] }, + { checkpoint: "moved", until: "Draft the notes" }, + { keys: ["tab"] }, + { checkpoint: "project", until: "[Project]" }, + { keys: ["shift+tab"] }, + { keys: ["/"] }, + // The user types once the field shows, and a moment after: on the JS host the view that shows it comes after the + // frame, and its keybinds reload the plugin's registrations, which mount the page again; keys typed before the + // field has the focus again go to the page. + // Its placeholder is in the host's field color, TS's in OpenTUI's input's (F16-plugin-contract-gaps). + { + checkpoint: "searching", + until: "Search titles", + deviation: [{ file: "F16-plugin-contract-gaps", cells: 29, styleOnly: true }], + }, + { wait: 300 }, + { type: "theme" }, + // The field the same key shows takes the focus once its view is adopted, so the typing is its search. Its text is + // in the host's field color, TS's in OpenTUI's input's (F16-plugin-contract-gaps). + { + checkpoint: "search", + until: "1 match", + deviation: [{ file: "F16-plugin-contract-gaps", cells: 5, styleOnly: true }], + }, + { keys: ["escape"] }, + { checkpoint: "cleared", until: "Draft the notes" }, + { keys: ["k"] }, + { keys: ["r"] }, + // The prompt is filled with the title, under the session's directory (contract ergonomics 2.6), which is in the + // host's description color, TS's in OpenTUI's default text color (CF3-plugin-prompt). + { + checkpoint: "rename", + until: "Rename session", + deviation: [{ file: "CF3-plugin-prompt", cells: 26, styleOnly: true }], + }, + { keys: ["escape"] }, + { checkpoint: "renamed", until: "Esc back" }, + { keys: ["d"] }, + { checkpoint: "delete", until: "This cannot be undone." }, + { keys: ["enter"] }, + { checkpoint: "deleted", until: "Deleted 1 session" }, + // Its listing layer and its searching layer each bind `pageup` and `pagedown`, the same commands, one enabled while + // the other is not: listing, they move the selection a page (carbon ce-1: the searching layer's disabled state + // disabled them). + { keys: ["pagedown"] }, + { checkpoint: "paged-down", until: "Plan the release" }, + { keys: ["pageup"] }, + { checkpoint: "paged-up", until: "Plan the release" }, + ], +}) diff --git a/packages/cli-rs/parity/scenarios/P.8/session-time.app.ts b/packages/cli-rs/parity/scenarios/P.8/session-time.app.ts new file mode 100644 index 000000000000..e96dc399cef5 --- /dev/null +++ b/packages/cli-rs/parity/scenarios/P.8/session-time.app.ts @@ -0,0 +1,51 @@ +// Contract 2.x, addition 4: `opencode-session-time@0.4.0`, unmodified from npm. Its `/time` opens a select of the +// session's assistant turns, newest first, then `dialog.set({ size: "xlarge", centered: true })`; picking a turn opens +// an alert of its details, set the same way. Both dialogs are extra large and centered, as in TS. TS loads the package +// from node_modules; the Rust client runs the same files on the JS host through the V2 compatibility layer. +import { assistant, defineApp, session, user } from "../../lib/app" + +const id = "ses_t" +// Three turns, on 1 January 1970: the plugin writes a time of another day with its date, so it reads the same any day. +const turn = (n: number, text: string) => [ + user(`msg_u${n}`, `Question ${n}`, n * 60_000), + { + ...assistant(`msg_a${n}`, text, n * 60_000 + 1_000), + time: { created: n * 60_000 + 1_000, completed: n * 60_000 + 4_500 }, + }, +] +const messages = [...turn(1, "First answer."), ...turn(2, "Second answer."), ...turn(3, "Third answer.")].reverse() +// The plugin's live timings, its sidebar block and its footer clock, recompute on its one-second timer in TS, whose +// recorder's clock does not advance, so they read none of the turns; the layer's reads of the session's messages are +// watched, so in Rust they read them as soon as they come. The dialogs are what this scenario compares. +const live = "the plugin's live timings: TS recomputes them on a timer its recorder never fires" +const masks = [ + { x: 100, y: 4, width: 38, height: 7, reason: live }, + { x: 50, y: 32, width: 13, height: 1, reason: live }, +] + +export default defineApp({ + width: 140, + height: 34, + config: { + experimental: { "new-designs": true }, + plugins: ["./out/npm/node_modules/opencode-session-time"], + }, + env: { OPENCODE_PARITY_PLUGIN: "npm" }, + args: { sessionID: id }, + routes: [ + { path: `/api/session/${id}`, json: { data: session(id, "Time the turns", { updated: 200_000 }) } }, + { path: "/api/session", json: { data: [session(id, "Time the turns", { updated: 200_000 })], cursor: {} } }, + { path: `/api/session/${id}/message`, json: { data: messages, cursor: {} } }, + { path: `/api/session/${id}/inbox`, json: { data: [] } }, + ], + steps: [ + { checkpoint: "session", until: "Third answer.", masks }, + { type: "/time" }, + { checkpoint: "slash", until: "Time: session timeline", masks }, + { keys: ["enter"] }, + // The select draws the plugin's `Close ctrl+a` action under its rows, as TS's (contract gaps 2). + { checkpoint: "timeline", until: "3 turns", masks }, + { keys: ["enter"] }, + { checkpoint: "details", until: "Turn details", masks }, + ], +}) diff --git a/packages/cli-rs/parity/scenarios/P.8/session-usage.app.ts b/packages/cli-rs/parity/scenarios/P.8/session-usage.app.ts new file mode 100644 index 000000000000..dd16b5fd6343 --- /dev/null +++ b/packages/cli-rs/parity/scenarios/P.8/session-usage.app.ts @@ -0,0 +1,32 @@ +// P8: `opencode-session-usage@0.1.8`, unmodified from npm, in the session sidebar in place of the built-in Limit (it +// takes its ID): the session's reported cost and the Go meters, laid out as absolute labels over bars. Its async setup +// fetches the usage limits and the session's messages through `client`; the meters reset at the epoch, so their +// countdown reads the same whenever it runs. TS loads the package from node_modules; the Rust client runs the same files +// on the JS host through the V2 compatibility layer. +import { assistant, defineApp, session, user } from "../../lib/app" + +const id = "ses_u" +const meter = (percent: number) => ({ percent, limited: false, resetsAt: 0 }) +const reply = { ...assistant("msg_2", "Done.", 2000), cost: 0.42 } + +export default defineApp({ + width: 140, + height: 34, + config: { + experimental: { "new-designs": true }, + plugins: ["./out/npm/node_modules/opencode-session-usage"], + }, + env: { OPENCODE_PARITY_PLUGIN: "npm" }, + args: { sessionID: id }, + routes: [ + { path: `/api/session/${id}`, json: { data: { ...session(id, "Count the cost", { updated: 2 }), cost: 0.42 } } }, + { path: "/api/session", json: { data: [session(id, "Count the cost", { updated: 2 })], cursor: {} } }, + { path: `/api/session/${id}/message`, json: { data: [reply, user("msg_1", "Count it", 1000)], cursor: {} } }, + { path: `/api/session/${id}/inbox`, json: { data: [] } }, + { + path: "/api/experimental/usage/limits", + json: { data: { go: { rolling: meter(12), weekly: meter(75), monthly: meter(95) } } }, + }, + ], + steps: [{ checkpoint: "meters", until: "Monthly" }], +}) diff --git a/packages/cli-rs/parity/scenarios/P.8/sessionwatch-width.app.ts b/packages/cli-rs/parity/scenarios/P.8/sessionwatch-width.app.ts new file mode 100644 index 000000000000..47a78b9e7b84 --- /dev/null +++ b/packages/cli-rs/parity/scenarios/P.8/sessionwatch-width.app.ts @@ -0,0 +1,47 @@ +// CT-24: `@jasonencode/opencode-context@1.0.0`, unmodified from npm: its SessionWatch panel in the sidebar sizes its +// dividers and gauges by its box's `width`, which it reads in `onSizeChange`. The layer's `width` was the prop, and no +// size change came, so the panel kept its default width and drew one cell wider. Now `width` is the host's layout of +// the box (`Read::rect`) and `onSizeChange` runs as it comes. TS loads the package from node_modules; the Rust client +// runs the same files on the JS host through the V2 compatibility layer. +import { assistant, defineApp, location, model, session, user } from "../../lib/app" + +const id = "ses_w" +const reply = { + ...assistant("msg_2", "Watched.", 2000), + cost: 0.02, + tokens: { input: 6900, output: 20, reasoning: 0, cache: { read: 0, write: 0 } }, +} + +export default defineApp({ + width: 140, + height: 34, + config: { + experimental: { "new-designs": true }, + plugins: ["./out/npm/node_modules/@jasonencode/opencode-context"], + }, + env: { OPENCODE_PARITY_PLUGIN: "npm" }, + args: { sessionID: id }, + routes: [ + { path: `/api/session/${id}`, json: { data: { ...session(id, "Watch the session", { updated: 2 }), cost: 0.02 } } }, + { path: "/api/session", json: { data: [session(id, "Watch the session", { updated: 2 })], cursor: {} } }, + { path: `/api/session/${id}/message`, json: { data: [reply, user("msg_1", "Watch it", 1000)], cursor: {} } }, + { path: `/api/session/${id}/inbox`, json: { data: [] } }, + { path: "/api/model", json: { location, data: [model] } }, + ], + steps: [ + { + checkpoint: "panel", + until: "SessionWatch", + // Its counts: TS's panel counts the session's requests as their events come, none here, where the layer renders + // again once the session's messages came (F16's snapshot reads) and counts the one reply. The dividers and the + // context gauge, which its width sizes, are compared. + masks: [ + { x: 100, y: 5, width: 37, height: 1, reason: "the hit rate: counted from events in TS, none here" }, + { x: 100, y: 11, width: 37, height: 1, reason: "the request counts: counted from events in TS, none here" }, + { x: 0, y: 14, width: 140, height: 20, reason: "what follows the counts, and the footer's context use" }, + ], + // TS's sidebar draws its scrollbar beside the panel, where the host's draws none. + deviation: [{ file: "F16-v2-compat-layer", cells: 10 }], + }, + ], +}) diff --git a/packages/cli-rs/parity/scenarios/P.8/shell-highlighting.app.ts b/packages/cli-rs/parity/scenarios/P.8/shell-highlighting.app.ts new file mode 100644 index 000000000000..db00dd06417b --- /dev/null +++ b/packages/cli-rs/parity/scenarios/P.8/shell-highlighting.app.ts @@ -0,0 +1,38 @@ +// CT-16: `@kud/opencode-shell-highlighting@0.1.0`, unmodified from npm. Its setup registers a bash grammar with +// OpenTUI's tree-sitter client, `getTreeSitterClient().initialize().then(…)`. The layer's inert client answered +// `initialize()` with no promise, so the setup threw and the plugin failed with a toast; now it loads and its grammar +// does nothing, as the host highlights with its own (F16). TS loads the package from node_modules; the Rust client runs +// the same files on the JS host through the V2 compatibility layer. +import { assistant, defineApp, session, user } from "../../lib/app" + +const id = "ses_k" + +export default defineApp({ + width: 140, + height: 34, + config: { + experimental: { "new-designs": true }, + plugins: ["./out/npm/node_modules/@kud/opencode-shell-highlighting"], + }, + env: { OPENCODE_PARITY_PLUGIN: "npm" }, + args: { sessionID: id }, + routes: [ + { path: `/api/session/${id}`, json: { data: session(id, "Highlight", { updated: 2 }) } }, + { path: "/api/session", json: { data: [session(id, "Highlight", { updated: 2 })], cursor: {} } }, + { + path: `/api/session/${id}/message`, + json: { data: [assistant("msg_2", "Highlighted.", 2000), user("msg_1", "Highlight it", 1000)], cursor: {} }, + }, + { path: `/api/session/${id}/inbox`, json: { data: [] } }, + ], + steps: [ + { checkpoint: "session", until: "Highlighted." }, + // `/plugins` lists it as active, where it failed. + { type: "/plugins" }, + // The completion lists the plugin's command before Enter: the plugin loads after the screen settles, and an + // Enter on a list that has not matched its command yet does nothing (file-browser-flake). + { checkpoint: "slash", until: "Plugins" }, + { keys: ["enter"] }, + { checkpoint: "plugins", until: "shell-highlighting" }, + ], +}) diff --git a/packages/cli-rs/parity/scenarios/P.8/sidebar-prompt.app.ts b/packages/cli-rs/parity/scenarios/P.8/sidebar-prompt.app.ts new file mode 100644 index 000000000000..8415c402f2bc --- /dev/null +++ b/packages/cli-rs/parity/scenarios/P.8/sidebar-prompt.app.ts @@ -0,0 +1,53 @@ +// P8: `opencode-sidebar-prompt@0.1.6`, unmodified from npm: the session's last prompt in the sidebar, and its +// `/lastprompt`, which shows the whole prompt in a dialog of its own (`ui.dialog.show`, large and centered) with a +// header, a scroll and a hint. TS loads the package from node_modules; the Rust client runs the same files on the JS +// host through the V2 compatibility layer, the dialog as the body of the host's dialog (contract ergonomics 2.7). The +// prompt is longer than the dialog: its focused scroll box scrolls on the arrows, as TS's does. +import { assistant, defineApp, session, user } from "../../lib/app" + +const id = "ses_l" +const prompt = [ + "Write the release notes for 2.3: the new sidebar, the plugin host, and the fixes to the theme picker. Keep each " + + "line short, link every pull request, and leave the upgrade steps for last.", + ...Array.from({ length: 40 }, (_, index) => `Step ${index + 1}: check the notes of change ${index + 1} by hand.`), + "Last line of the prompt.", +].join("\n") + +export default defineApp({ + width: 140, + height: 34, + config: { + experimental: { "new-designs": true }, + plugins: ["./out/npm/node_modules/opencode-sidebar-prompt"], + }, + env: { OPENCODE_PARITY_PLUGIN: "npm" }, + args: { sessionID: id }, + routes: [ + { path: `/api/session/${id}`, json: { data: session(id, "Release notes", { updated: 2 }) } }, + { path: "/api/session", json: { data: [session(id, "Release notes", { updated: 2 })], cursor: {} } }, + { + path: `/api/session/${id}/message`, + json: { data: [assistant("msg_2", "Drafted.", 2000), user("msg_1", prompt, 1000)], cursor: {} }, + }, + { path: `/api/session/${id}/inbox`, json: { data: [] } }, + ], + steps: [ + { checkpoint: "sidebar", until: "Open full prompt" }, + { type: "/lastprompt" }, + // The completion lists the plugin's command before Enter: the plugin loads after the home screen settles, and an + // Enter on a list that has not matched its command yet does nothing (file-browser-flake). + { checkpoint: "slash", until: "Show full last prompt" }, + { keys: ["enter"] }, + { checkpoint: "dialog", until: "Esc · Close" }, + // FT-4: the dialog stays once the plugin's registrations settled; a reload of them closed it in Rust. + { wait: 800 }, + { checkpoint: "kept", until: "Esc · Close" }, + // The long prompt scrolls: three rows down, then one up. + { keys: ["down", "down", "down"] }, + { checkpoint: "scrolled", until: "Step 36: check the notes" }, + { keys: ["up"] }, + { checkpoint: "back", until: "Step 8: check the notes" }, + { keys: ["escape"] }, + { checkpoint: "closed", until: "Open full prompt" }, + ], +}) diff --git a/packages/cli-rs/parity/scenarios/P.8/sidebar-tokens.app.ts b/packages/cli-rs/parity/scenarios/P.8/sidebar-tokens.app.ts new file mode 100644 index 000000000000..6ddc2ad53c3e --- /dev/null +++ b/packages/cli-rs/parity/scenarios/P.8/sidebar-tokens.app.ts @@ -0,0 +1,40 @@ +// FT-7: `opencode-sidebar-tokens@0.1.3`, unmodified from npm: the session's token totals in the sidebar, from +// `data.session.get(id).tokens`, which follow a `session.usage.updated` without any other change on screen. TS loads +// the package from node_modules; the Rust client runs the same files on the JS host through the V2 compatibility layer. +import { assistant, defineApp, session, user } from "../../lib/app" + +const id = "ses_t" +const tokens = { input: 22870, output: 100, reasoning: 0, cache: { read: 0, write: 0 } } + +export default defineApp({ + width: 140, + height: 34, + config: { + experimental: { "new-designs": true }, + plugins: ["./out/npm/node_modules/opencode-sidebar-tokens"], + }, + env: { OPENCODE_PARITY_PLUGIN: "npm" }, + args: { sessionID: id }, + routes: [ + { path: `/api/session/${id}`, json: { data: session(id, "Count the tokens", { updated: 2 }) } }, + { path: "/api/session", json: { data: [session(id, "Count the tokens", { updated: 2 })], cursor: {} } }, + { + path: `/api/session/${id}/message`, + json: { data: [assistant("msg_2", "Counted.", 2000), user("msg_1", "Count them", 1000)], cursor: {} }, + }, + { path: `/api/session/${id}/inbox`, json: { data: [] } }, + ], + steps: [ + { checkpoint: "empty", until: "Cache write" }, + { + event: { + id: "evt_usage", + created: 3, + type: "session.usage.updated", + location: { directory: "/tmp/opencode/packages/tui" }, + data: { sessionID: id, cost: 0.08, tokens }, + }, + }, + { checkpoint: "totals", until: "22,870" }, + ], +}) diff --git a/packages/cli-rs/parity/scenarios/P.8/skills-data.app.ts b/packages/cli-rs/parity/scenarios/P.8/skills-data.app.ts new file mode 100644 index 000000000000..aaa11fffd7cd --- /dev/null +++ b/packages/cli-rs/parity/scenarios/P.8/skills-data.app.ts @@ -0,0 +1,59 @@ +// F16's data collections: `opencode-skills-tui@1.2.3`, unmodified from npm, lists the location's skills in the sidebar +// from `data.location.skill` and `data.location.agent`. The layer answered both with an empty list and a warning +// toast, so the section listed none; now they load through the plugin's `client`. TS loads the package from +// node_modules; the Rust client runs the same files on the JS host through the V2 compatibility layer. +import { assistant, defineApp, session, user } from "../../lib/app" + +const id = "ses_k" +const location = { directory: "/tmp/opencode/packages/tui" } +const skill = (name: string, description: string) => ({ + id: name, + name, + description, + path: `/tmp/opencode/.opencode/skill/${name}/SKILL.md`, + location: "project", +}) + +export default defineApp({ + width: 140, + height: 34, + config: { + experimental: { "new-designs": true }, + plugins: ["./out/npm/node_modules/opencode-skills-tui"], + }, + env: { OPENCODE_PARITY_PLUGIN: "npm" }, + args: { sessionID: id }, + routes: [ + { path: `/api/session/${id}`, json: { data: session(id, "Use the skills", { updated: 2 }) } }, + { path: "/api/session", json: { data: [session(id, "Use the skills", { updated: 2 })], cursor: {} } }, + { + path: `/api/session/${id}/message`, + json: { data: [assistant("msg_2", "Used.", 2000), user("msg_1", "Use them", 1000)], cursor: {} }, + }, + { path: `/api/session/${id}/inbox`, json: { data: [] } }, + { + path: "/api/agent", + json: { + location, + data: [ + { + id: "build", + name: "build", + mode: "primary", + hidden: false, + permissions: [], + request: { settings: {}, headers: {}, body: {} }, + }, + ], + }, + }, + { + path: "/api/skill", + json: { + location, + data: [skill("release-notes", "Write the release notes"), skill("triage", "Triage the issue queue")], + }, + }, + ], + steps: [{ checkpoint: "skills", until: "triage" }], +}) diff --git a/packages/cli-rs/parity/scenarios/P.8/subagents.app.ts b/packages/cli-rs/parity/scenarios/P.8/subagents.app.ts new file mode 100644 index 000000000000..a781c76b660b --- /dev/null +++ b/packages/cli-rs/parity/scenarios/P.8/subagents.app.ts @@ -0,0 +1,31 @@ +// P8: `opencode-subagents-sidebar@0.1.6`, unmodified from npm, in the session sidebar: the session's two subagent +// sessions under a "Subagents" header, newest first, the running one's dot green. TS loads the package from +// node_modules; the Rust client runs the same files on the JS host through the V2 compatibility layer. +import { defineApp, session, user } from "../../lib/app" + +const parent = { ...session("ses_s", "Plan the release", { updated: 5 }) } +const child = (id: string, title: string, updated: number) => ({ ...session(id, title, { updated }), parentID: "ses_s" }) + +export default defineApp({ + width: 140, + height: 34, + config: { + experimental: { "new-designs": true }, + plugins: ["./out/npm/node_modules/opencode-subagents-sidebar"], + }, + env: { OPENCODE_PARITY_PLUGIN: "npm" }, + args: { sessionID: "ses_s" }, + routes: [ + { path: "/api/session/ses_s", json: { data: parent } }, + { + path: "/api/session", + json: { + data: [parent, child("ses_c1", "Write the changelog", 4), child("ses_c2", "Tag the release", 3)], + cursor: {}, + }, + }, + { path: "/api/session/ses_s/message", json: { data: [user("msg_1", "Plan it")], cursor: {} } }, + { path: "/api/session/ses_s/inbox", json: { data: [] } }, + ], + steps: [{ checkpoint: "listed", until: "Subagents" }], +}) diff --git a/packages/cli-rs/parity/scenarios/P.8/tavily-surface.app.ts b/packages/cli-rs/parity/scenarios/P.8/tavily-surface.app.ts new file mode 100644 index 000000000000..a7d1351524b7 --- /dev/null +++ b/packages/cli-rs/parity/scenarios/P.8/tavily-surface.app.ts @@ -0,0 +1,38 @@ +// CT-22: `@joe-broadhead/opencode-tavily@0.0.7`, unmodified from npm: `/tavily` opens its status dialog, colored from +// `theme.surface("dialog")`. The layer answered the page theme with a warning toast, which covered the dialog; now it +// answers the dialog surface's colors, as the host resolves them. Its server part is not running here, so its status +// RPC fails and the dialog shows that, in both clients. TS loads the package from node_modules; the Rust client runs the +// same files on the JS host through the V2 compatibility layer. +import { assistant, defineApp, session, user } from "../../lib/app" + +const id = "ses_t" + +export default defineApp({ + width: 140, + height: 34, + config: { plugins: ["./out/npm/node_modules/@joe-broadhead/opencode-tavily"] }, + env: { OPENCODE_PARITY_PLUGIN: "npm" }, + args: { sessionID: id }, + routes: [ + { path: `/api/session/${id}`, json: { data: session(id, "Search the web", { updated: 2 }) } }, + { path: "/api/session", json: { data: [session(id, "Search the web", { updated: 2 })], cursor: {} } }, + { + path: `/api/session/${id}/message`, + json: { data: [assistant("msg_2", "Searched.", 2000), user("msg_1", "Search it", 1000)], cursor: {} }, + }, + { path: `/api/session/${id}/inbox`, json: { data: [] } }, + { method: "POST", path: "/api/rpc/tavily.web/status", status: 404, json: { _tag: "NotFound", message: "no such RPC" } }, + // A location without a project: TS's `context.location` is the whole location read, which its RPC call sends, + // and the host's is the directory alone (F16). + { path: "/api/location", json: { directory: "/tmp/opencode/packages/tui" } }, + ], + steps: [ + { checkpoint: "session", until: "Searched." }, + { type: "/tavily" }, + // The completion lists the plugin's command before Enter: the plugin loads after the home screen settles, and an + // Enter on a list that has not matched its command yet does nothing (file-browser-flake). + { checkpoint: "slash", until: "Show Tavily" }, + { keys: ["enter"] }, + { checkpoint: "status", until: "no such RPC" }, + ], +}) diff --git a/packages/cli-rs/parity/scenarios/P.8/tokscope-sidebar.app.ts b/packages/cli-rs/parity/scenarios/P.8/tokscope-sidebar.app.ts new file mode 100644 index 000000000000..8099833bbca7 --- /dev/null +++ b/packages/cli-rs/parity/scenarios/P.8/tokscope-sidebar.app.ts @@ -0,0 +1,30 @@ +// Layout reads (contract proposal, addition 1): `opencode-tokscope@0.4.0`, unmodified from npm. Its sidebar takes a ref +// to its root box (`width: "100%"`) and reads `getLayout().width` in a zero-delay timer, at most 10 times, and draws +// nothing until a width came; it measures again only when the terminal's size changes. The host's layout reaches the +// JS host a frame late, so the sidebar stayed empty. Now a mount's root answers its room's width from the mount's first +// input, which carries the size the host laid the mount out at. TS loads the package from node_modules; the Rust +// client runs the same files on the JS host through the V2 compatibility layer. +import { assistant, defineApp, session, user } from "../../lib/app" + +const id = "ses_s" + +export default defineApp({ + width: 140, + height: 34, + config: { + experimental: { "new-designs": true }, + plugins: ["./out/npm/node_modules/opencode-tokscope"], + }, + env: { OPENCODE_PARITY_PLUGIN: "npm" }, + args: { sessionID: id }, + routes: [ + { path: `/api/session/${id}`, json: { data: session(id, "Scope the tokens", { updated: 2 }) } }, + { path: "/api/session", json: { data: [session(id, "Scope the tokens", { updated: 2 })], cursor: {} } }, + { + path: `/api/session/${id}/message`, + json: { data: [assistant("msg_2", "Scoped.", 2000), user("msg_1", "Scope it", 1000)], cursor: {} }, + }, + { path: `/api/session/${id}/inbox`, json: { data: [] } }, + ], + steps: [{ checkpoint: "sidebar", until: "TokScope" }], +}) diff --git a/packages/cli-rs/parity/scenarios/P.8/usage-report-keys.app.ts b/packages/cli-rs/parity/scenarios/P.8/usage-report-keys.app.ts new file mode 100644 index 000000000000..b4adcdcf011c --- /dev/null +++ b/packages/cli-rs/parity/scenarios/P.8/usage-report-keys.app.ts @@ -0,0 +1,14 @@ +// CT-31: `opencode-usage-report@0.6.4`, unmodified from npm. Its dialog's keys (`r`, `tab`, `j`) are a layer of +// `mode: "modal"`, a mode TS's keymap is in only while it says so, so they apply in no other. The layer kept every mode +// but `global` to the base mode, so the host took every `r` typed into the composer. Now such a layer's commands +// decline while the input mode is another, and the key goes on: the composer types `r` and a space, and Enter sends. +// TS loads the package from node_modules; the Rust client runs the same files on the JS host through the V2 +// compatibility layer. +import { defineApp } from "../../lib/app" +import { keysApp } from "./keys" + +export default defineApp({ + ...keysApp, + config: { plugins: ["./out/npm/node_modules/opencode-usage-report"] }, + env: { OPENCODE_PARITY_PLUGIN: "npm" }, +}) diff --git a/packages/cli-rs/parity/scenarios/P.8/voice-title.app.ts b/packages/cli-rs/parity/scenarios/P.8/voice-title.app.ts new file mode 100644 index 000000000000..b2f6095fb968 --- /dev/null +++ b/packages/cli-rs/parity/scenarios/P.8/voice-title.app.ts @@ -0,0 +1,43 @@ +// CT-26: `@juliuskb/opencode-voice@0.0.9`, unmodified from npm: its sidebar panel's border title spreads "Voice v0.0.9" +// and "Menu:<key>" across the panel's width, which it reads as `r.width` in an `onSizeChange` it sets on the box by its +// ref. The layer called only an `onSizeChange` prop, so the width stayed unknown and the two parts ran together. TS +// loads the package from node_modules; the Rust client runs the same files on the JS host through the V2 +// compatibility layer. +import { assistant, defineApp, session, user } from "../../lib/app" + +const id = "ses_v" + +export default defineApp({ + width: 140, + height: 34, + config: { + experimental: { "new-designs": true }, + plugins: ["./out/npm/node_modules/@juliuskb/opencode-voice"], + }, + env: { OPENCODE_PARITY_PLUGIN: "npm" }, + args: { sessionID: id }, + routes: [ + { path: `/api/session/${id}`, json: { data: session(id, "Speak", { updated: 2 }) } }, + { path: "/api/session", json: { data: [session(id, "Speak", { updated: 2 })], cursor: {} } }, + { + path: `/api/session/${id}/message`, + json: { data: [assistant("msg_2", "Spoken.", 2000), user("msg_1", "Speak it", 1000)], cursor: {} }, + }, + { path: `/api/session/${id}/inbox`, json: { data: [] } }, + // Its server part, as the fake server answers it: no model installed, and default settings. + { + method: "POST", + path: "/api/rpc/voice/status", + json: { output: { recording: false, engineLoaded: false, modelInstalled: false, rssMb: 0, cpuPct: 0 } }, + }, + { method: "POST", path: "/api/rpc/voice/settingsGet", json: { output: { json: "{}" } } }, + { method: "POST", path: "/api/rpc/voice/:method", status: 404, json: { _tag: "NotFound", message: "no such RPC" } }, + ], + steps: [ + // Its bottom title (CPU and memory) is the contract border's (CT-26). + { checkpoint: "panel", until: "Menu:" }, + ], + // It polls its status on a timer, which runs in real time on the JS host: the replay sends more polls, in another + // order with its settings read. + requests: { deviation: "F16-v2-compat-layer" }, +}) diff --git a/packages/cli-rs/parity/scenarios/P.luau/hello.luau-pty.ts b/packages/cli-rs/parity/scenarios/P.luau/hello.luau-pty.ts new file mode 100644 index 000000000000..b5c0863b0f8a --- /dev/null +++ b/packages/cli-rs/parity/scenarios/P.luau/hello.luau-pty.ts @@ -0,0 +1,37 @@ +// A Luau plugin under a real terminal (spike `luau-spike`): the quick start in Luau on the Rust side +// (`crates/plugin/examples/luau/hello`; Luau plugins are on by default, O-178) against its TypeScript twin +// (`parity/plugins/luau-hello/tui.tsx`), in one `plugins` directory: its line closes the home footer, and `/hello` shows +// its toast. The suite's `*.pty.ts` glob still leaves this file out, from when a default build had no Luau; run it by +// path: +// bun run parity:pty parity/scenarios/P.luau/hello.luau-pty.ts +import { copyFile, mkdir, readdir } from "node:fs/promises" +import path from "node:path" +import { parityRoot } from "../../cli/client" +import { definePty } from "../../pty/run" + +const example = path.resolve(parityRoot, "../crates/plugin/examples/luau/hello") + +export default definePty({ + args: [], + cols: 100, + rows: 30, + server: { fallback: "tui" }, + // The TS client run from source is on the `local` channel, which shows its devtools bar: off, as Rust has none. + env: { OPENCODE_CLI_CONFIG_CONTENT: JSON.stringify({ debug: { devtools: false } }) }, + setup: async (root) => { + const directory = path.join(root, "home/.config/opencode/plugins/hello") + await mkdir(directory, { recursive: true }) + for (const file of await readdir(example)) await copyFile(path.join(example, file), path.join(directory, file)) + await copyFile(path.join(parityRoot, "plugins/luau-hello/tui.tsx"), path.join(directory, "tui.tsx")) + }, + steps: [ + { until: { screen: "█▀▀█" }, settle: 500, timeout: 30_000 }, + { until: { screen: /hello\s*$/m }, settle: 300, timeout: 30_000, checkpoint: "home" }, + { keys: "/hello", until: { screen: "Say hello" }, settle: 300 }, + { keys: "\r", until: { screen: "Hello from a plugin" }, settle: 300, checkpoint: "toast" }, + // Ctrl+C on the empty prompt exits; a second press could land once the terminal is restored, as a SIGINT. + { keys: "\x03", until: { exit: true } }, + ], + masks: [{ pattern: /Ask anything… .*$/, reason: "the placeholder is picked at random" }], + exits: true, +}) diff --git a/packages/cli-rs/parity/scenarios/Pr/fence.app.ts b/packages/cli-rs/parity/scenarios/Pr/fence.app.ts new file mode 100644 index 000000000000..1242b89cd775 --- /dev/null +++ b/packages/cli-rs/parity/scenarios/Pr/fence.app.ts @@ -0,0 +1,27 @@ +// A fence drawn by a plugin (Pr): the test plugin draws the `parity` fence of an answer in the transcript. TS loads +// it from parity/plugins/fence as a local plugin, a Markdown code-block renderer; Rust registers its twin, a renderer +// claim of the fence, when OPENCODE_PARITY_PLUGIN is `fence`. The fence opens the answer: after a paragraph, Rust's +// Markdown puts a blank row before any plugin's fence and TS puts none, for a 1.x fence renderer as for a claim. +import { assistant, defineApp, session, user } from "../../lib/app" + +const id = "ses_a" +// TS shows "Finishing startup…" for three seconds once loading the local TSX plugin took over half a second +// (`component/startup-loading.tsx`); Rust loads no TS plugin (F16). +const startup = { x: 39, y: 28, width: 22, height: 1, reason: "TS plugin loading notice (F16)" } +const answer = "```parity\nalpha\nbeta\n```\n\nDone." + +export default defineApp({ + config: { plugins: ["./plugins/fence"] }, + env: { OPENCODE_PARITY_PLUGIN: "fence" }, + args: { sessionID: id }, + routes: [ + { path: `/api/session/${id}`, json: { data: session(id, "Fence plugin", { updated: 2 }) } }, + { path: "/api/session", json: { data: [session(id, "Fence plugin", { updated: 2 })], cursor: {} } }, + { + path: `/api/session/${id}/message`, + json: { data: [assistant("msg_2", answer, 2000), user("msg_1", "Show the fence", 1000)], cursor: {} }, + }, + { path: `/api/session/${id}/inbox`, json: { data: [] } }, + ], + steps: [{ checkpoint: "session", until: "fence plugin: beta", masks: [startup] }], +}) diff --git a/packages/cli-rs/parity/scenarios/layout-parity-2/permission-edit.sim.ts b/packages/cli-rs/parity/scenarios/layout-parity-2/permission-edit.sim.ts new file mode 100644 index 000000000000..dfa7e9f47e57 --- /dev/null +++ b/packages/cli-rs/parity/scenarios/layout-parity-2/permission-edit.sim.ts @@ -0,0 +1,47 @@ +// A real `patch` call asks for the edit permission +// (V11, E.9a), and the dock shows the server's diff, whose added line wraps: the diff's scroll box is as tall as the +// wrapped rows inline, and fills the prompt in full screen. +import { defineSim } from "../../sim/scenario" + +// Plain text, so neither client highlights it (TS downloads grammars at runtime, H06). The added line wraps. +const long = + "The parser keeps every value, trims the spaces around it, and skips the empty values and the lines that start with #." + +export default defineSim({ + permissions: [{ action: "edit", resource: "*", effect: "ask" }], + files: { "notes.txt": "Parser notes\nThe parser keeps every value.\nSee the tests.\n" }, + model: [ + { + items: [ + { + type: "toolCall", + index: 0, + id: "call_1", + name: "patch", + input: { + patchText: [ + "*** Begin Patch", + "*** Update File: notes.txt", + "@@", + " Parser notes", + "-The parser keeps every value.", + `+${long}`, + " See the tests.", + "*** End Patch", + ].join("\n"), + }, + }, + ], + finish: "tool-calls", + }, + ], + steps: [ + { until: "Simulated Model" }, + { type: "Fix the parser" }, + { until: "Fix the parser" }, + { enter: true }, + { checkpoint: "inline", until: "Permission required" }, + { press: "f", modifiers: { ctrl: true } }, + { checkpoint: "fullscreen", until: "ctrl+f minimize" }, + ], +}) diff --git a/packages/cli-rs/parity/scenarios/rs-theme-colors/cursor-dark-events.app.ts b/packages/cli-rs/parity/scenarios/rs-theme-colors/cursor-dark-events.app.ts new file mode 100644 index 000000000000..4adcd1cf00df --- /dev/null +++ b/packages/cli-rs/parity/scenarios/rs-theme-colors/cursor-dark-events.app.ts @@ -0,0 +1,4 @@ +import base from "../E.1/events.app" +import { themed } from "./themed" + +export default themed(base, "cursor", "dark") diff --git a/packages/cli-rs/parity/scenarios/rs-theme-colors/cursor-dark-tools.app.ts b/packages/cli-rs/parity/scenarios/rs-theme-colors/cursor-dark-tools.app.ts new file mode 100644 index 000000000000..82369d25671a --- /dev/null +++ b/packages/cli-rs/parity/scenarios/rs-theme-colors/cursor-dark-tools.app.ts @@ -0,0 +1,4 @@ +import base from "../E.7a/tools.app" +import { themed } from "./themed" + +export default themed(base, "cursor", "dark") diff --git a/packages/cli-rs/parity/scenarios/rs-theme-colors/themed.ts b/packages/cli-rs/parity/scenarios/rs-theme-colors/themed.ts new file mode 100644 index 000000000000..8e38eb5998da --- /dev/null +++ b/packages/cli-rs/parity/scenarios/rs-theme-colors/themed.ts @@ -0,0 +1,11 @@ +// Reruns another step's scenario in a pinned theme, so P-APP compares the colors of every surface it shows in +// themes other than the default. `deviation` replaces the deviations of every checkpoint. +import type { AppScenario, Deviation } from "../../lib/app" + +export function themed(base: AppScenario, name: string, mode: "dark" | "light", deviation?: Deviation[]) { + return { + ...base, + config: { ...base.config, theme: { name, mode } }, + steps: deviation ? base.steps.map((step) => ("checkpoint" in step ? { ...step, deviation } : step)) : base.steps, + } +} diff --git a/packages/cli-rs/parity/scenarios/rs-theme-colors/tokyonight-light-events.app.ts b/packages/cli-rs/parity/scenarios/rs-theme-colors/tokyonight-light-events.app.ts new file mode 100644 index 000000000000..5a31c3cded82 --- /dev/null +++ b/packages/cli-rs/parity/scenarios/rs-theme-colors/tokyonight-light-events.app.ts @@ -0,0 +1,4 @@ +import base from "../E.1/events.app" +import { themed } from "./themed" + +export default themed(base, "tokyonight", "light") diff --git a/packages/cli-rs/parity/scenarios/rs-theme-colors/tokyonight-light-sidebar.app.ts b/packages/cli-rs/parity/scenarios/rs-theme-colors/tokyonight-light-sidebar.app.ts new file mode 100644 index 000000000000..5a6aa6f5a8b6 --- /dev/null +++ b/packages/cli-rs/parity/scenarios/rs-theme-colors/tokyonight-light-sidebar.app.ts @@ -0,0 +1,11 @@ +import base from "../E.14/sidebar.app" +import { themed } from "./themed" + +// The reply can land after the sidebar card, so the first checkpoint waits for the reply. +const scenario = themed(base, "tokyonight", "light") +export default { + ...scenario, + steps: scenario.steps.map((step) => + "checkpoint" in step && step.checkpoint === "docked" ? { ...step, until: "The release plan is ready." } : step, + ), +} diff --git a/packages/cli-rs/parity/scenarios/rs-theme-colors/tokyonight-light-tools.app.ts b/packages/cli-rs/parity/scenarios/rs-theme-colors/tokyonight-light-tools.app.ts new file mode 100644 index 000000000000..8c79c7f0f2ff --- /dev/null +++ b/packages/cli-rs/parity/scenarios/rs-theme-colors/tokyonight-light-tools.app.ts @@ -0,0 +1,4 @@ +import base from "../E.7a/tools.app" +import { themed } from "./themed" + +export default themed(base, "tokyonight", "light") diff --git a/packages/cli-rs/parity/sim/backend.ts b/packages/cli-rs/parity/sim/backend.ts new file mode 100644 index 000000000000..b3a0ab43b5d7 --- /dev/null +++ b/packages/cli-rs/parity/sim/backend.ts @@ -0,0 +1,76 @@ +// The backend driver: answers the simulated provider's model calls (`llm.request`) over the server's drive backend +// endpoint (packages/simulation/src/backend/simulated-provider.ts). +import { Schema } from "effect" +import { Backend, JsonRpc } from "@opencode/protocol/simulation" + +// The items stream in order. At `{ hold: name }` the reply waits, its step still running, until the scenario's +// `{ release: name }` step; the items before it are sent first. `finish: false` sends no `llm.finish`, for a reply +// whose items already end the call (a provider error). +export type Reply = { items: (Backend.Item | { hold: string })[]; finish?: Backend.FinishReason | false } + +export type Invocation = { id: string; url: string; body: unknown } + +// `answer` returns the reply for each invocation, in the order they arrive. +export async function startBackend(url: string, answer: (invocation: Invocation) => Reply) { + const socket = new WebSocket(url) + await new Promise((resolve, reject) => { + socket.onopen = resolve + socket.onerror = reject + }) + const pending = new Map<number, (value: JsonRpc.Response) => void>() + const invocations: Invocation[] = [] + const failures: string[] = [] + const holds = new Map<string, PromiseWithResolvers<void>>() + const hold = (name: string) => holds.get(name) ?? holds.set(name, Promise.withResolvers()).get(name)! + let id = 0 + const call = (method: string, params?: unknown) => + new Promise<unknown>((resolve, reject) => { + const current = ++id + const timer = setTimeout(() => reject(new Error(`backend ${method}: no response`)), 30_000) + pending.set(current, (response) => { + clearTimeout(timer) + pending.delete(current) + if (response.error) reject(new Error(`backend ${method}: ${response.error.message}`)) + else resolve(response.result) + }) + socket.send(JSON.stringify({ jsonrpc: "2.0", id: current, method, ...(params === undefined ? {} : { params }) })) + }) + const stream = async (invocation: Invocation, reply: Reply) => { + const batch: Backend.Item[] = [] + const flush = async () => { + if (batch.length) await call("llm.chunk", { id: invocation.id, items: batch.splice(0) }) + } + for (const item of reply.items) { + if (!("hold" in item)) { + batch.push(item) + continue + } + await flush() + await hold(item.hold).promise + } + await flush() + if (reply.finish === false) return + await call("llm.finish", { id: invocation.id, reason: reply.finish ?? "stop" }) + } + socket.onmessage = (event) => { + const message = JSON.parse(String(event.data)) + if (message.id !== undefined && message.id !== null) { + pending.get(Number(message.id))?.(Schema.decodeUnknownSync(JsonRpc.Response)(message)) + return + } + const notification = Schema.decodeUnknownSync(Backend.Notification)(message) + if (notification.method !== "llm.request") return + const invocation = notification.params + invocations.push(invocation) + stream(invocation, answer(invocation)).catch((error: Error) => failures.push(error.message)) + } + await call("simulation.handshake", { + client: { name: "opencode-parity", version: "1" }, + expectedRole: "backend", + offeredVersions: [1], + requiredCapabilities: ["llm.attach", "llm.chunk", "llm.finish"], + optionalCapabilities: [], + }) + await call("llm.attach") + return { invocations, failures, release: (name: string) => hold(name).resolve(), close: () => socket.close() } +} diff --git a/packages/cli-rs/parity/sim/clock.ts b/packages/cli-rs/parity/sim/clock.ts new file mode 100644 index 000000000000..03123b643fa6 --- /dev/null +++ b/packages/cli-rs/parity/sim/clock.ts @@ -0,0 +1,14 @@ +// P-TUI fixed clock, preloaded into the TS server and client of a scenario that sets `now`: with +// OPENCODE_DRIVE_NOW (milliseconds since the epoch), `Date` starts at that instant and runs on, so dates the screen +// shows do not follow the day of the run. The Rust client reads the same variable in `opencode_util::time::now_ms`. +const start = Number(process.env.OPENCODE_DRIVE_NOW) +if (start) { + const real = Date + const offset = start - real.now() + const now = () => real.now() + offset + globalThis.Date = new Proxy(real, { + construct: (target, args, newTarget) => Reflect.construct(target, args.length ? args : [now()], newTarget), + apply: () => new real(now()).toString(), + get: (target, key, receiver) => (key === "now" ? now : Reflect.get(target, key, receiver)), + }) +} diff --git a/packages/cli-rs/parity/sim/compare.ts b/packages/cli-rs/parity/sim/compare.ts new file mode 100644 index 000000000000..db084e4fc23f --- /dev/null +++ b/packages/cli-rs/parity/sim/compare.ts @@ -0,0 +1,210 @@ +// P-TUI comparison (docs/testing.md): captures become H.1 cell fixtures, masked with H.2's `applyMasks`, and compared +// cell by cell as `opencode_parity::compare` does. Requests follow H.2's P-REQ rule. +import type { Frontend } from "@opencode/protocol/simulation" +import type { Deviation } from "../lib/app" +import type { Fixture } from "../lib/cells" +import { normalize } from "../cli/client" +import type { Logged } from "./proxy" + +// The cells listed in a report before it summarizes the rest, as in crates/parity. +const REPORT_CELLS = 40 + +const segmenter = new Intl.Segmenter() + +// One symbol per cell, the trailing cells of a wide grapheme "", as the H.1 format keeps them. Captures carry no +// palette intent, so a color is plain `#rrggbbaa`. +export function toFixture(frame: Frontend.CapturedFrame): Fixture { + const color = (rgba: Frontend.Color) => "#" + rgba.map((part) => part.toString(16).padStart(2, "0")).join("") + const styles = new Map<string, number>() + const rows = frame.lines.map((line) => { + const cells = line.spans.flatMap((span) => { + const style = `${color(span.fg)} ${color(span.bg)} ${span.attributes & 0xff}` + const symbols = [...segmenter.segment(span.text)].flatMap(({ segment }) => [ + segment, + ...Array<string>(Math.max(0, Bun.stringWidth(segment) - 1)).fill(""), + ]) + return Array.from({ length: span.width }, (_, index) => ({ symbol: symbols[index] ?? " ", style })) + }) + return Array.from({ length: frame.cols }, (_, x) => cells[x] ?? { symbol: " ", style: "" }) + }) + return { + width: frame.cols, + height: frame.rows, + rows: rows.map((row) => { + const symbols = row.map((cell) => cell.symbol) + return symbols.every((symbol) => [...symbol].length === 1) ? symbols.join("") : symbols + }), + runs: rows.map((row) => + row.reduce<[number, number][]>((runs, cell) => { + const style = styles.get(cell.style) ?? styles.set(cell.style, styles.size).get(cell.style)! + const last = runs.at(-1) + if (last && last[0] === style) last[1]++ + else runs.push([style, 1]) + return runs + }, []), + ), + styles: [...styles.keys()], + } +} + +export function text(fixture: Fixture) { + return cells(fixture) + .map((row) => + row + .map((cell) => cell.symbol) + .join("") + .trimEnd(), + ) + .join("\n") +} + +// `text`: the differing cells whose symbols differ. +export type Comparison = { equal: boolean; differences: number; text: number; colorOnly: number; report: string } + +// Cells differ when their symbol, colors, or attributes differ. The report has the shape of crates/parity's: +// each differing row from both sides with markers, then the first differing cells. +export function compareFixtures(expected: Fixture, actual: Fixture): Comparison { + if (expected.width !== actual.width || expected.height !== actual.height) + return { + equal: false, + differences: expected.width * expected.height, + text: expected.width * expected.height, + colorOnly: 0, + report: `size ${expected.width}x${expected.height} expected, ${actual.width}x${actual.height} actual`, + } + const a = cells(expected) + const b = cells(actual) + const differences = a.flatMap((row, y) => + row.flatMap((cell, x) => + cell.symbol === b[y][x].symbol && cell.style === b[y][x].style ? [] : [{ x, y, want: cell, got: b[y][x] }], + ), + ) + if (differences.length === 0) + return { + equal: true, + differences: 0, + text: 0, + colorOnly: 0, + report: `all ${expected.width * expected.height} cells equal`, + } + // The cells whose text matches and whose colors do not, as crates/parity's summary counts them: a background, or + // a foreground behind a visible symbol. + const colorOnly = differences.filter(({ want, got }) => { + if (want.symbol !== got.symbol) return false + const [wantFg, wantBg] = want.style.split(" ") + const [gotFg, gotBg] = got.style.split(" ") + return wantBg !== gotBg || (want.symbol !== " " && wantFg !== gotFg) + }).length + const rows = [...new Set(differences.map((cell) => cell.y))] + const lines = [ + `${differences.length} of ${expected.width * expected.height} cells differ (${expected.width}x${expected.height})` + + (colorOnly > 0 ? `, ${colorOnly} in color only` : ""), + ...rows.flatMap((y) => { + const marker = Array.from({ length: expected.width }, (_, x) => + differences.some((cell) => cell.x === x && cell.y === y) ? "^" : " ", + ) + return [ + `row ${y}`, + ` expected |${a[y].map((cell) => cell.symbol).join("")}|`, + ` actual |${b[y].map((cell) => cell.symbol).join("")}|`, + ` ${marker.join("").trimEnd()}`, + ] + }), + ...differences.slice(0, REPORT_CELLS).map(({ x, y, want, got }) => { + const fields = [ + ...(want.symbol === got.symbol + ? [] + : [`symbol ${JSON.stringify(want.symbol)} -> ${JSON.stringify(got.symbol)}`]), + ...(want.style === got.style ? [] : [`style ${want.style} -> ${got.style}`]), + ] + return `(${x},${y}) ${fields.join(", ")}` + }), + ...(differences.length > REPORT_CELLS ? [`... and ${differences.length - REPORT_CELLS} more cells`] : []), + ] + return { + equal: false, + differences: differences.length, + text: differences.filter(({ want, got }) => want.symbol !== got.symbol).length, + colorOnly, + report: lines.join("\n"), + } +} + +// Whether `deviation` allows `comparison`: at most the cells its entries add up to, and cells whose symbols differ +// only within the entries that are not `styleOnly`. +export function allows(deviation: Deviation[], comparison: Comparison) { + const sum = (entries: Deviation[]) => entries.reduce((total, entry) => total + entry.cells, 0) + return ( + comparison.differences <= sum(deviation) && comparison.text <= sum(deviation.filter((entry) => !entry.styleOnly)) + ) +} + +function cells(fixture: Fixture) { + return fixture.rows.map((row, y) => { + const symbols = typeof row === "string" ? [...row] : row + const styles = fixture.runs[y].flatMap(([style, count]) => Array<string>(count).fill(fixture.styles[style])) + return symbols.map((symbol, x) => ({ symbol, style: styles[x] })) + }) +} + +// Any other server-minted ID, such as `sh_1abfe888b001Ly5UDI8NNG6vOi` (crates/parity `minted`: a lowercase prefix +// and at least 20 letters and digits). +const minted = /\b([a-z]+)_[A-Za-z0-9]{20,}\b/g + +// H.2's `isRead`: a GET, or a plugin RPC named `get`. +export function isRead(method: string, path: string) { + return method === "GET" || /^\/api\/rpc\/[^/]+\/get$/.test(path) +} + +export type RequestComparison = { + equal: boolean + writes: { a: string[]; b: string[] } + onlyA: string[] + onlyB: string[] +} + +// Writes must match in order after the normalizers, with their sorted query and any status other than 2xx; reads +// one side sent and the other did not are listed only. +export function compareRequests(a: Logged[], b: Logged[], root: string): RequestComparison { + // A live server stamps real times, so epoch milliseconds are normalized too (plan 7.5, timestamps). + // Bodies are compared as JSON values, so key order does not count. + const line = (entry: Logged) => { + const query = new URLSearchParams( + Object.keys(entry.query) + .toSorted() + .flatMap((key) => entry.query[key].map((value) => [key, value])), + ).toString() + const status = + entry.status === undefined || (entry.status >= 200 && entry.status < 300) ? "" : ` -> ${entry.status}` + const body = entry.body === undefined ? "" : " " + JSON.stringify(sorted(entry.body)) + return normalize(`${entry.method} ${entry.path}${query ? "?" + query : ""}${body}${status}`, { root }) + .replace(minted, "<$1>") + .replace(/\b1\d{12}\b/g, "<epoch>") + } + const writes = (log: Logged[]) => log.filter((entry) => !isRead(entry.method, entry.path)).map(line) + const reads = (log: Logged[]) => [ + ...new Set( + log + .filter((entry) => isRead(entry.method, entry.path)) + .map((entry) => normalize(`${entry.method} ${entry.path}`, { root }).replace(minted, "<$1>")), + ), + ] + const readsA = reads(a) + const readsB = reads(b) + const result = { + writes: { a: writes(a), b: writes(b) }, + onlyA: readsA.filter((read) => !readsB.includes(read)), + onlyB: readsB.filter((read) => !readsA.includes(read)), + } + return { equal: JSON.stringify(result.writes.a) === JSON.stringify(result.writes.b), ...result } +} + +function sorted(value: unknown): unknown { + if (Array.isArray(value)) return value.map(sorted) + if (typeof value !== "object" || value === null) return value + return Object.fromEntries( + Object.entries(value) + .toSorted(([a], [b]) => a.localeCompare(b)) + .map(([key, item]) => [key, sorted(item)]), + ) +} diff --git a/packages/cli-rs/parity/sim/drive.ts b/packages/cli-rs/parity/sim/drive.ts new file mode 100644 index 000000000000..a362d5757995 --- /dev/null +++ b/packages/cli-rs/parity/sim/drive.ts @@ -0,0 +1,48 @@ +// A JSON-RPC client for an `OPENCODE_DRIVE` UI endpoint (packages/protocol/src/simulation.ts), shared by P-TUI +// (parity/sim/run.ts) and the H.4 proof. +import { Schema } from "effect" +import { JsonRpc } from "@opencode/protocol/simulation" + +export type DriveClient = Awaited<ReturnType<typeof connectDrive>> + +export async function connectDrive(url: string, label: string) { + const socket = new WebSocket(url) + await new Promise((resolve, reject) => { + socket.onopen = resolve + socket.onerror = reject + }) + const pending = new Map<number, (value: JsonRpc.Response) => void>() + socket.onmessage = (event) => { + const response = Schema.decodeUnknownSync(JsonRpc.Response)(JSON.parse(String(event.data))) + pending.get(Number(response.id))?.(response) + } + let id = 0 + const send = (method: string, params: unknown, ms: number) => + new Promise<JsonRpc.Response | undefined>((resolve) => { + const current = ++id + const timer = setTimeout(() => { + pending.delete(current) + resolve(undefined) + }, ms) + pending.set(current, (response) => { + clearTimeout(timer) + pending.delete(current) + resolve(response) + }) + socket.send(JSON.stringify({ jsonrpc: "2.0", id: current, method, ...(params === undefined ? {} : { params }) })) + }) + // The TS endpoint never answers a `ui.matches` whose screen read meets a frame in flight (`OutputBusy` is a defect + // its control server only logs), so a screen read that goes unanswered is sent again. Reads change nothing, so a + // resend is safe. This is the only place that works around it. + const call = async (method: string, params?: unknown) => { + const read = method === "ui.matches" || method === "ui.capture" + for (let attempt = 0; attempt < 10; attempt++) { + const response = await send(method, params, method === "ui.matches" ? 2_000 : read ? 5_000 : 30_000) + if (response) return response + if (!read) break + console.error(`${label} ${method}: no response, sending it again`) + } + throw new Error(`${label} ${method}: no response`) + } + return { call, close: () => socket.close() } +} diff --git a/packages/cli-rs/parity/sim/proxy.ts b/packages/cli-rs/parity/sim/proxy.ts new file mode 100644 index 000000000000..baad9e5f50cc --- /dev/null +++ b/packages/cli-rs/parity/sim/proxy.ts @@ -0,0 +1,50 @@ +// The recording proxy: forwards a client's HTTP requests to the simulated server, streams the responses (the event +// stream included), and logs every request for P-REQ. +import { Option, Schema } from "effect" + +export type Logged = { method: string; path: string; query: Record<string, string[]>; body?: unknown; status?: number } + +export function startProxy(upstream: string) { + const log: Logged[] = [] + const server = Bun.serve({ + hostname: "127.0.0.1", + port: 0, + idleTimeout: 0, + async fetch(request) { + const url = new URL(request.url) + const text = request.method === "GET" || request.method === "HEAD" ? "" : await request.text() + const entry: Logged = { method: request.method, path: url.pathname, query: query(url), body: parse(text) } + log.push(entry) + if (request.headers.get("upgrade")) { + entry.status = 501 + return new Response("the parity proxy does not forward WebSockets", { status: 501 }) + } + const headers = new Headers(request.headers) + headers.delete("host") + const response = await fetch(upstream + url.pathname + url.search, { + method: request.method, + headers, + body: text === "" ? undefined : text, + redirect: "manual", + decompress: true, + }) + entry.status = response.status + const out = new Headers(response.headers) + out.delete("content-encoding") + out.delete("content-length") + return new Response(response.body, { status: response.status, headers: out }) + }, + }) + return { url: `http://127.0.0.1:${server.port}`, log, stop: () => server.stop(true) } +} + +function query(url: URL) { + return [...url.searchParams.keys()] + .toSorted() + .reduce<Record<string, string[]>>((all, key) => ({ ...all, [key]: url.searchParams.getAll(key) }), {}) +} + +function parse(text: string): unknown { + if (text === "") return undefined + return Option.getOrElse(Schema.decodeUnknownOption(Schema.fromJsonString(Schema.Unknown))(text), () => text) +} diff --git a/packages/cli-rs/parity/sim/run.ts b/packages/cli-rs/parity/sim/run.ts new file mode 100644 index 000000000000..700d4c71f981 --- /dev/null +++ b/packages/cli-rs/parity/sim/run.ts @@ -0,0 +1,485 @@ +// P-TUI runner (docs/testing.md): +// +// bun run --cwd packages/cli-rs parity:sim [--sides ts,rs] [parity/scenarios/<step>/<name>.sim.ts ...] +// +// Each side runs alone against its own simulated TS server, backend driver, and recording proxy, in a sandbox that +// never touches the user's config, state, or service. Every process a side starts is killed when the side ends, +// when the run fails, and when the runner exits. +import { cp, mkdir, rm, stat, writeFile } from "node:fs/promises" +import { homedir } from "node:os" +import path from "node:path" +import { Schema } from "effect" +import { Frontend, Handshake } from "@opencode/protocol/simulation" +import { applyMasks } from "../lib/app" +import { writeFixture, type Fixture } from "../lib/cells" +import { freePort } from "../lib/port" +import { buildRust, command, parseSides, parityRoot, sandbox, type Sandbox, type Side } from "../cli/client" +import { startBackend, type Invocation, type Reply } from "./backend" +import { allows, compareFixtures, compareRequests, text, toFixture } from "./compare" +import { connectDrive } from "./drive" +import { startProxy, type Logged } from "./proxy" +import type { SimScenario, Step } from "./scenario" + +// The whole run, after which the runner stops every process and fails. The caller's `timeout -s KILL` should be +// longer, so this cleanup runs first. +const RUN_DEADLINE = Number(process.env.PARITY_SIM_DEADLINE ?? 240_000) +const WAIT = 30_000 +const password = "sim-parity" +const CLOCK = path.join(import.meta.dir, "clock.ts") +// Both sides of a run share the sandbox path, so it never differs between them; masking its random name keeps the +// committed captures the same from run to run. +// Read only: each side gets a copy. +const GRAMMAR_CACHE = + process.env.PARITY_GRAMMAR_CACHE ?? + path.join(process.env.XDG_DATA_HOME ?? path.join(homedir(), ".local/share"), "opentui", "tree-sitter") +const SANDBOX_MASK = { line: "opencode-parity-[A-Za-z0-9]{6}", reason: "the sandbox name is random" } + +const children = new Set<{ kill(signal?: number): void }>() +const stopAll = () => children.forEach((child) => child.kill(9)) +process.on("exit", stopAll) +for (const signal of ["SIGINT", "SIGTERM", "SIGHUP"] as const) + process.on(signal, () => { + stopAll() + process.exit(130) + }) +setTimeout(() => { + console.error(`parity:sim: the run took longer than ${RUN_DEADLINE} ms; stopping`) + stopAll() + process.exit(124) +}, RUN_DEADLINE).unref() + +const argv = process.argv.slice(2) +const sidesFlag = argv.indexOf("--sides") +const sides = parseSides(sidesFlag === -1 ? undefined : argv[sidesFlag + 1]) +const files = argv.filter((arg, index) => !arg.startsWith("--") && (sidesFlag === -1 || index !== sidesFlag + 1)) +const scenarios = files.length + ? files.map((file) => path.resolve(file)) + : [...new Bun.Glob("scenarios/*/*.sim.ts").scanSync({ cwd: parityRoot, absolute: true })].toSorted() + +await buildRust(sides) +let failed = false +for (const file of scenarios) { + const name = path.relative(path.join(parityRoot, "scenarios"), file).replace(/\.sim\.ts$/, "") + const scenario: SimScenario = (await import(file)).default + const ok = await runScenario(name, scenario).catch((error: Error) => { + console.log(`FAIL ${name}\n ${error.stack ?? error.message}`) + return false + }) + failed ||= !ok +} +stopAll() +process.exit(failed ? 1 : 0) + +async function runScenario(name: string, scenario: SimScenario) { + const box = await sandbox({ OPENCODE_PASSWORD: password }) + const labels = sides[0] === sides[1] ? [sides[0], `${sides[1]}2`] : sides + const results = [] + for (const [index, side] of sides.entries()) results.push(await runSide(box, side, labels[index], scenario)) + // Run outputs, ignored by git: nothing reads them, they are for a person to look at after a run. + const out = path.join(parityRoot, "out", name.replace(/\//g, path.sep) + ".sim") + await rm(out, { recursive: true, force: true }) + await mkdir(out, { recursive: true }) + const checkpoints = scenario.steps.filter((step) => "checkpoint" in step) + const lines: string[] = [] + const report: Record<string, unknown> = { scenario: name, sides: labels } + let ok = true + for (const checkpoint of checkpoints) { + const [a, b] = results.map((result) => result.captures[checkpoint.checkpoint]) + for (const [index, fixture] of [a, b].entries()) { + await writeFixture(path.join(out, `${checkpoint.checkpoint}.${labels[index]}.json`), fixture) + await writeFile(path.join(out, `${checkpoint.checkpoint}.${labels[index]}.txt`), text(fixture) + "\n") + } + const comparison = compareFixtures(a, b) + const deviation = checkpoint.deviation ?? [] + const missing = deviation.map((entry) => entry.file).filter((file) => !deviationExists(file)) + const allowed = allows(deviation, comparison) + const pass = missing.length === 0 && allowed + ok &&= pass + const named = JSON.stringify(deviation) + const verdict = + deviation.length === 0 + ? "differs" + : comparison.equal + ? `remove the deviations ${named}` + : allowed + ? `differs, allowed by ${named}` + : `differs beyond ${named}` + const summary = + comparison.equal && deviation.length === 0 ? comparison.report : `${comparison.report.split("\n")[0]}; ${verdict}` + lines.push(` checkpoint ${checkpoint.checkpoint}: ${summary}`) + if (missing.length) lines.push(` deviation files missing: ${JSON.stringify(missing)}`) + if (!pass || process.env.PARITY_VERBOSE) lines.push(indent(comparison.report, 4)) + report[checkpoint.checkpoint] = { + equal: comparison.equal, + differences: comparison.differences, + colorOnly: comparison.colorOnly, + deviation, + } + } + const requests = compareRequests(results[0].requests, results[1].requests, box.root) + const requestsMissing = scenario.requests !== undefined && !deviationExists(scenario.requests.deviation) + const requestsPass = !requestsMissing && (requests.equal || scenario.requests !== undefined) + ok &&= requestsPass + lines.push( + ` requests: ${requests.equal ? "writes equal" : requestsPass ? "writes differ, allowed" : "writes differ"}`, + ) + if (requestsMissing) lines.push(` deviation file missing: ${JSON.stringify(scenario.requests?.deviation)}`) + if (!requests.equal) { + lines.push(...requests.writes.a.map((write) => ` - ${labels[0]} | ${write}`)) + lines.push(...requests.writes.b.map((write) => ` + ${labels[1]} | ${write}`)) + } + if (requests.onlyA.length) + lines.push(` reads only ${labels[0]} sent (${requests.onlyA.length}): ${requests.onlyA.join(", ")}`) + if (requests.onlyB.length) + lines.push(` reads only ${labels[1]} sent (${requests.onlyB.length}): ${requests.onlyB.join(", ")}`) + report.requests = requests + report.model = results.map((result) => result.model) + await writeFile(path.join(out, "report.json"), JSON.stringify(report, null, 2) + "\n") + console.log(`${ok ? "ok " : "FAIL"} ${name}\n${lines.join("\n")}`) + await rm(box.root, { recursive: true, force: true }) + return ok +} + +async function runSide(box: Sandbox, side: Side, label: string, scenario: SimScenario) { + // A fresh home for each side; `work` keeps its path so paths on screen match. + await Promise.all( + ["home", "tmp", "drive", "opencode-config"].map((dir) => + rm(path.join(box.root, dir), { recursive: true, force: true }), + ), + ) + await Promise.all( + [ + box.env.XDG_CONFIG_HOME, + box.env.XDG_DATA_HOME, + box.env.XDG_STATE_HOME, + box.env.XDG_CACHE_HOME, + box.env.TMPDIR, + ].map((dir) => mkdir(dir, { recursive: true })), + ) + await rm(box.cwd, { recursive: true, force: true }) + await mkdir(box.cwd, { recursive: true }) + // Core downloads tree-sitter grammars on first use and caches them; a fresh home has none, so TS would show code + // unhighlighted (or highlight it once a download lands). A copy of the user's cache matches how the TS TUI runs + // for them, and what Rust links statically (H06-highlight-queries). + if ( + await stat(GRAMMAR_CACHE).then( + (info) => info.isDirectory(), + () => false, + ) + ) + await cp(GRAMMAR_CACHE, path.join(box.env.XDG_DATA_HOME, "opentui", "tree-sitter"), { recursive: true }) + for (const [file, contents] of Object.entries(scenario.files ?? {})) + await Bun.write(path.join(box.cwd, file), contents) + await Bun.write( + path.join(box.env.XDG_CONFIG_HOME, "opencode", "cli.json"), + // The TS CLI from source is the `local` channel, which shows the DevTools bar by default. + JSON.stringify({ + experimental: { "new-designs": true }, + animations: false, + debug: { devtools: false }, + ...scenario.config, + }), + ) + const configDir = path.join(box.root, "opencode-config") + await Bun.write(path.join(configDir, "opencode.jsonc"), JSON.stringify(serverConfig(scenario), null, 2)) + const registry = path.join(box.root, "drive") + // A scenario's fixed clock: Rust reads the variable itself, and each TS process gets the preload that reads it. + const clock: Record<string, string> = scenario.now === undefined ? {} : { OPENCODE_DRIVE_NOW: String(scenario.now) } + const start = (side: Side, args: string[]) => { + const cmd = command(side, args) + return side === "ts" && scenario.now !== undefined ? [cmd[0]!, `--preload=${CLOCK}`, ...cmd.slice(1)] : cmd + } + const [serverPort, backendPort, serverUiPort, uiPort] = Array.from({ length: 4 }, freePort) + const backendUrl = `ws://127.0.0.1:${backendPort}` + const viewport = { cols: scenario.width ?? 100, rows: scenario.height ?? 30 } + await Bun.write( + path.join(registry, "server.json"), + JSON.stringify({ endpoints: { ui: `ws://127.0.0.1:${serverUiPort}`, backend: backendUrl } }), + ) + await Bun.write( + path.join(registry, `${side}.json`), + JSON.stringify({ endpoints: { ui: `ws://127.0.0.1:${uiPort}`, backend: backendUrl }, viewport }), + ) + const log = (file: string) => path.join(box.root, `${label}.${file}`) + const stopped: (() => void)[] = [] + const debug: { screen?: () => Promise<Fixture>; model?: unknown; requests?: Logged[] } = {} + try { + const server = spawn(start("ts", ["serve", "--port", String(serverPort)]), box, log("server.stderr"), { + ...clock, + OPENCODE_SIMULATE: "1", + OPENCODE_DRIVE: "server", + DRIVE_REGISTRY_DIR: registry, + OPENCODE_DB: ":memory:", + OPENCODE_CONFIG_DIR: configDir, + }) + stopped.push(() => server.kill(9)) + const serverUrl = `http://127.0.0.1:${serverPort}` + await waitFor( + `${label} server`, + () => + fetch(`${serverUrl}/api/health`).then( + () => true, + () => false, + ), + 60_000, + ) + await waitFor( + `${label} backend endpoint`, + async () => (await readText(log("server.stderr"))).includes("opencode drive backend websocket:"), + 60_000, + ) + const model: { url: string; kind: string; reply: number | null; tools?: string[] }[] = [] + let turn = 0 + const backend = await startBackend(backendUrl, (invocation) => { + if (isTitleRequest(invocation)) { + model.push({ url: invocation.url, kind: "title", reply: null }) + return { items: [{ type: "textDelta", text: "Simulated session" }] } + } + const reply: Reply = scenario.model[turn] ?? { items: [{ type: "textDelta", text: "(no scripted reply)" }] } + model.push({ url: invocation.url, kind: "turn", reply: turn, tools: toolNames(invocation) }) + turn++ + return reply + }) + stopped.push(backend.close) + debug.model = model + const sessions = await createSessions(serverUrl, box.cwd, scenario.sessions ?? []) + const proxy = startProxy(serverUrl) + stopped.push(proxy.stop) + const args = (scenario.args ?? []).map((arg) => + arg.startsWith("$session:") ? sessions[Number(arg.slice("$session:".length))] : arg, + ) + const client = spawn(start(side, [...args, "--server", proxy.url]), box, log("client.stderr"), { + ...clock, + OPENCODE_DRIVE: side, + DRIVE_REGISTRY_DIR: registry, + OPENCODE_DRIVE_RENDERER: "headless", + TERM: "xterm-256color", + }) + stopped.push(() => client.kill(9)) + await waitFor( + `${label} drive endpoint`, + async () => (await readText(log("client.stderr"))).includes("opencode drive ui websocket:"), + 60_000, + ) + const drive = await connectDrive(`ws://127.0.0.1:${uiPort}`, label) + stopped.push(drive.close) + const result = async (method: string, params?: unknown) => { + const response = await drive.call(method, params) + if (response.error) + throw new Error(`${label} ${method} ${JSON.stringify(params ?? {})}: ${response.error.message}`) + return response.result + } + Schema.decodeUnknownSync(Handshake.Response)( + await result("simulation.handshake", { + client: { name: "opencode-parity", version: "1" }, + expectedRole: "ui", + offeredVersions: [1], + requiredCapabilities: ["ui.type", "ui.press", "ui.enter", "ui.mouse", "ui.matches", "ui.capture"], + optionalCapabilities: [], + }), + ) + const until = (needle: string) => + waitFor( + `${label} screen to show ${JSON.stringify(needle)}`, + async () => (await result("ui.matches", { text: needle })) === true, + WAIT, + ) + const gone = (needle: string) => + waitFor( + `${label} screen to stop showing ${JSON.stringify(needle)}`, + async () => (await result("ui.matches", { text: needle })) === false, + WAIT, + ) + const capture = async () => toFixture(Schema.decodeUnknownSync(Frontend.CapturedFrame)(await result("ui.capture"))) + const captures: Record<string, Fixture> = {} + debug.screen = capture + debug.model = model + debug.requests = proxy.log + for (const step of scenario.steps) { + console.error(`${label} ${JSON.stringify(step)}`) + await runStep(step, { result, until, gone, capture, captures, release: backend.release, cwd: box.cwd }) + } + if (backend.failures.length) throw new Error(`${label} backend: ${backend.failures.join("; ")}`) + return { captures, requests: proxy.log as Logged[], model } + } catch (error) { + console.error(`${label}: failed; logs in ${box.root} until the run ends:`) + for (const file of ["server.stderr", "client.stderr"]) + console.error(`--- ${file}\n${(await readText(log(file))).slice(-3000)}`) + console.error(`--- model calls\n${JSON.stringify(debug.model)}`) + const requests = (debug.requests ?? []).map((entry) => `${entry.status ?? "..."} ${entry.method} ${entry.path}`) + console.error(`--- requests\n${requests.join("\n")}`) + const screen = await debug.screen?.().catch(() => undefined) + if (screen) console.error(`--- screen\n${text(screen)}`) + throw error + } finally { + stopped.toReversed().forEach((stop) => stop()) + } +} + +async function runStep( + step: Step, + io: { + result: (method: string, params?: unknown) => Promise<unknown> + until: (needle: string) => Promise<void> + gone: (needle: string) => Promise<void> + capture: () => Promise<Fixture> + captures: Record<string, Fixture> + release: (name: string) => void + cwd: string + }, +) { + if ("release" in step) return io.release(step.release) + if ("touch" in step) return writeFile(path.join(io.cwd, step.touch), "") + if ("sleep" in step) return Bun.sleep(step.sleep) + if ("type" in step) return io.result("ui.type", { text: step.type }) + if ("press" in step) + return io.result("ui.press", { key: step.press, ...(step.modifiers ? { modifiers: step.modifiers } : {}) }) + if ("enter" in step) return io.result("ui.enter") + if ("arrow" in step) return io.result("ui.arrow", { direction: step.arrow }) + if ("mouse" in step) return io.result("ui.mouse", step.mouse) + if ("resize" in step) return io.result("ui.resize", { cols: step.resize[0], rows: step.resize[1] }) + if ("until" in step && !("checkpoint" in step)) return io.until(step.until) + if ("gone" in step) return io.gone(step.gone) + if (!("checkpoint" in step)) return + if (step.until) await io.until(step.until) + // Three captures in a row with the same cells, as H.2's runner waits for a stable frame. + const deadline = Date.now() + WAIT + let last = await io.capture() + let same = 1 + while (same < 3) { + if (Date.now() > deadline) throw new Error(`checkpoint ${step.checkpoint}: the screen did not settle`) + await Bun.sleep(150) + const next = await io.capture() + same = JSON.stringify(next) === JSON.stringify(last) ? same + 1 : 1 + last = next + } + io.captures[step.checkpoint] = applyMasks(last, [...(step.masks ?? []), SANDBOX_MASK]) +} + +// Creates the scenario's sessions straight on the server and runs each prompt to the end, so the client opens +// a history built by real turns. Returns the session IDs in order. +async function createSessions(server: string, directory: string, sessions: NonNullable<SimScenario["sessions"]>) { + const headers = { + authorization: `Basic ${Buffer.from(`opencode:${password}`).toString("base64")}`, + "content-type": "application/json", + } + const api = async (method: string, route: string, body?: unknown) => { + const response = await fetch(server + route, { + method, + headers, + ...(body === undefined ? {} : { body: JSON.stringify(body) }), + }) + if (!response.ok) throw new Error(`setup ${method} ${route}: ${response.status} ${await response.text()}`) + return response.status === 204 ? undefined : ((await response.json()) as { data: unknown }) + } + const ids: string[] = [] + for (const session of sessions) { + const created = await api("POST", "/api/session", { + ...(session.title === undefined ? {} : { title: session.title }), + agent: "build", + location: { directory }, + model: { id: "gpt-sim-model", providerID: "simulation" }, + }) + const id = (created?.data as { id: string }).id + ids.push(id) + for (const [index, text] of session.prompts.entries()) { + await api("POST", `/api/session/${id}/prompt`, { text }) + await waitFor( + `setup session ${id} prompt ${index} to finish`, + async () => { + const active = (await api("GET", "/api/session/active"))?.data as Record<string, unknown> + if (id in active) return false + // Newest first; a finished turn ends with an `idle` message. + const messages = (await api("GET", `/api/session/${id}/message`))?.data as { type: string }[] + return ( + messages.filter((message) => message.type === "user").length === index + 1 && messages[0]?.type === "idle" + ) + }, + WAIT, + ).catch(async (error: Error) => { + const messages = await api("GET", `/api/session/${id}/message`) + throw new Error(`${error.message}; messages: ${JSON.stringify(messages).slice(0, 2000)}`) + }) + } + } + return ids +} + +// The simulation provider of `opencode-drive`'s default config: an OpenAI-compatible provider at the default +// OpenAI URL, which the simulated network routes to the backend driver. +function serverConfig(scenario: SimScenario) { + return { + model: "simulation/gpt-sim-model", + snapshots: false, + // `full_codemode` defaults to on in the local channel (#64761), and with it a GPT model gets only `execute` + // (#64515). The scenarios script direct `shell`, `read` and `patch` calls, so keep those tools direct. + experimental: { full_codemode: false }, + permissions: [{ action: "*", resource: "*", effect: "allow" }, ...(scenario.permissions ?? [])], + providers: { + simulation: { + name: "Simulation", + package: "aisdk:@ai-sdk/openai-compatible", + settings: { baseURL: "https://api.openai.com/v1" }, + request: { body: { apiKey: "sim-key" } }, + models: { + "gpt-sim-model": { + name: "Simulated Model", + capabilities: { tools: true, input: ["text"], output: ["text"] }, + limit: { context: 128000, output: 16000 }, + }, + }, + }, + }, + } +} + +// The title agent's call carries no tools; the session's turns always offer them. +function isTitleRequest(invocation: Invocation) { + const body = invocation.body as { tools?: unknown[] } | null + return !body?.tools?.length +} + +// The tool names a turn offers, for the report: they tell a scenario which `toolCall` names exist. +function toolNames(invocation: Invocation) { + const body = invocation.body as { tools?: { function?: { name?: string } }[] } | null + return (body?.tools ?? []).flatMap((tool) => (tool.function?.name ? [tool.function.name] : [])) +} + +function spawn(cmd: string[], box: Sandbox, stderr: string, env: Record<string, string>) { + const child = Bun.spawn(cmd, { + cwd: box.cwd, + env: { ...box.env, ...env }, + stdin: "ignore", + stdout: "ignore", + stderr: Bun.file(stderr), + }) + children.add(child) + child.exited.then(() => children.delete(child)) + return child +} + +async function waitFor(what: string, check: () => Promise<boolean>, ms: number) { + const deadline = Date.now() + ms + while (Date.now() < deadline) { + if (await check()) return + await Bun.sleep(100) + } + throw new Error(`timed out waiting for ${what}`) +} + +function readText(file: string) { + return Bun.file(file) + .text() + .catch(() => "") +} + +function deviationExists(file: string) { + return Bun.file(path.join(parityRoot, "deviations", `${file}.md`)).size > 0 +} + +function indent(value: string, spaces: number) { + return value + .split("\n") + .map((line) => " ".repeat(spaces) + line) + .join("\n") +} diff --git a/packages/cli-rs/parity/sim/scenario.ts b/packages/cli-rs/parity/sim/scenario.ts new file mode 100644 index 000000000000..88d468d9a3c1 --- /dev/null +++ b/packages/cli-rs/parity/sim/scenario.ts @@ -0,0 +1,63 @@ +// P-TUI scenarios (docs/testing.md): one file per scenario, `parity/scenarios/<step>/<name>.sim.ts`, with +// `export default defineSim({...})`. parity/sim/run.ts runs each one through both clients against the simulated +// server. +import type { Frontend } from "@opencode/protocol/simulation" +import type { Deviation, Mask } from "../lib/app" +import type { Reply } from "./backend" + +export type { Deviation, Mask, Reply } + +export type Step = + | { type: string } + | { press: string; modifiers?: Frontend.KeyModifiers } + | { enter: true } + | { arrow: "up" | "down" | "left" | "right" } + // The `ui.mouse` parameters: Rust offers no `ui.click` or `ui.focus` (T14a), so the screen is addressed by cells. + | { mouse: Frontend.MouseParams } + | { resize: [number, number] } + // Waits until the screen shows the text. + | { until: string } + // Waits until the screen no longer shows the text. + | { gone: string } + // Lets the model reply waiting at `{ hold: name }` stream on (scenario.ts `Reply`). + | { release: string } + // Writes an empty file under the working directory, for a shell command that waits for it to end. + | { touch: string } + // Waits for a time, for state that has no text to wait for. The scenario says why. + | { sleep: number } + | { + checkpoint: string + // Text the screen shows once it is ready. + until?: string + masks?: Mask[] + deviation?: Deviation[] + } + +export type SimScenario = { + width?: number + height?: number + // Merged into the client's cli.json, after the runner's defaults. + config?: Record<string, unknown> + // Client arguments before `--server`; `$session:<n>` becomes the ID of `sessions[n]`. + args?: string[] + // Sessions the runner creates and prompts on the server directly (not through the recording proxy) before the + // client starts, in order, each prompt waited on until the session is idle. Their turns take the first model + // replies. A session with a title gets no title call. + sessions?: { title?: string; prompts: string[] }[] + // Rules after the allow-all rule; the last matching rule wins. + permissions?: { action: string; resource: string; effect: "allow" | "deny" | "ask" }[] + // The instant, in milliseconds since the epoch, at which the server's and both clients' clocks start + // (`sim/clock.ts`), for screens that show today's date. + now?: number + // Files under the working directory, written before the server starts. + files?: Record<string, string> + // The replies to the session's model calls, in order. Title requests get a fixed title. + model: Reply[] + steps: Step[] + // A deviation that allows the request comparison (P-REQ) to differ. + requests?: { deviation: string } +} + +export function defineSim(scenario: SimScenario) { + return scenario +} diff --git a/packages/cli-rs/rust-toolchain.toml b/packages/cli-rs/rust-toolchain.toml new file mode 100644 index 000000000000..eb15082fa631 --- /dev/null +++ b/packages/cli-rs/rust-toolchain.toml @@ -0,0 +1,7 @@ +# The toolchain the client builds and is checked with: OpenTUI's (packages/rust/rust-toolchain.toml) and the preview +# CI's. rustup installs it on first use; a toolchain without rustup ignores this file, so keep it at this version, as a +# newer clippy can fail on one side only. rust-src is what script/check-target.sh builds the other targets' std from. +[toolchain] +channel = "1.99.1" +profile = "minimal" +components = ["rustfmt", "clippy", "rust-src"] diff --git a/packages/cli-rs/rustfmt.toml b/packages/cli-rs/rustfmt.toml new file mode 100644 index 000000000000..c775577eef48 --- /dev/null +++ b/packages/cli-rs/rustfmt.toml @@ -0,0 +1,2 @@ +max_width = 120 +use_small_heuristics = "Max" diff --git a/packages/cli-rs/script/check-luau-types.ts b/packages/cli-rs/script/check-luau-types.ts new file mode 100644 index 000000000000..47d939afd07f --- /dev/null +++ b/packages/cli-rs/script/check-luau-types.ts @@ -0,0 +1,165 @@ +// Type-checks every Luau plugin in packages/cli-rs (a directory with a plugin.toml and .luau files) with +// `luau-analyze` at the runtime's Luau release, the new solver, and `--formatter=gnu` (`plain` always exits 0). Each +// plugin is one run over its files by absolute path: a module given by a relative path and also required is checked +// twice. Each plugin's nearest `.luaurc` must say `"languageMode": "strict"` and alias `opencode` to the generated stub +// (crates/plugin/src/luau/opencode), which types `require("@opencode/plugin")`. +// +// The release is the one the runtime vendors, read from Cargo.lock (`luau0-src 0.22.0+luau740` is 0.740, and the +// fork's `0.24.1+luau747.sk.aa9d8201` is 0.747, whose analyzer it does not change), so the analyzer moves with a Luau +// bump. It comes from Luau's release zip, checked against the sha256 in `releases` below, +// as opentui-native.ts checks OpenTUI's: a release binary rather than a build, one download and no C++ build. A +// release with no row fails; add its rows from `gh release view <release> -R luau-lang/luau --json assets`. Zips are +// kept in `$XDG_CACHE_HOME/opencode/luau`. +// +// Usage: bun run script/check-luau-types.ts +import { createHash } from "node:crypto" +import { chmod, mkdir, rename } from "node:fs/promises" +import { homedir } from "node:os" +import path from "node:path" +import { unzip } from "./zip" + +// The sha256 of each Luau release's zips. Luau ships none for Linux arm64 or Windows arm64. +const releases: Record<string, Record<"ubuntu" | "macos" | "windows", string>> = { + "0.740": { + ubuntu: "7d4035db01816f977f6e4c42e3d5e8ef4235d95e9afe63a3c38905b42dde60f2", + macos: "8414763743116cbc2533ee7c932d41ba66bd25ea7c2353bc7eed2934b60b6715", + windows: "be676d9a1092b3d5ee36be5f5f11e2af1976911c32f5644a052548dc7c66bb9c", + }, + "0.747": { + ubuntu: "6a740240248e872815865a2cb03b0c327f24939478f1d0081a0540cdfd77fdaa", + macos: "5e140ae70f14509504ce015e33894dfd56872c9170040c68373cbe1d85fa7877", + windows: "16bbd26575e9a6a3ecd2bd5fc772a81f3232520b56a40a86f2b47fec576d7cc7", + }, +} +// The zip each platform runs, and the analyzer in it. +const platforms: Record<string, { zip: "ubuntu" | "macos" | "windows"; binary: string }> = { + "linux-x64": { zip: "ubuntu", binary: "luau-analyze" }, + "darwin-x64": { zip: "macos", binary: "luau-analyze" }, + "darwin-arm64": { zip: "macos", binary: "luau-analyze" }, + "win32-x64": { zip: "windows", binary: "luau-analyze.exe" }, +} + +const root = path.resolve(import.meta.dir, "..") +const stub = path.join(root, "crates", "plugin", "src", "luau", "opencode") +const vendored = (await Bun.file(path.join(root, "Cargo.lock")).text()).match( + /^name = "luau0-src"\nversion = "[^"+]*\+luau(\d+)[."]/m, +)?.[1] +const release = `0.${vendored ?? fail("Cargo.lock has no luau0-src <version>+luau<release>")}` +const platform = `${process.platform}-${process.arch}` +const kind = platforms[platform] ?? fail(`Luau ships no luau-analyze for ${platform}`) +const sha256 = + releases[release]?.[kind.zip] ?? fail(`no sha256 for Luau ${release}; add its rows to ${import.meta.file}`) +const spec = { zip: `luau-${kind.zip}.zip`, sha256, binary: kind.binary } +const cache = path.join(process.env.XDG_CACHE_HOME || path.join(homedir(), ".cache"), "opencode", "luau") +const analyzer = await install() + +const plugins = Array.from(new Bun.Glob("**/plugin.toml").scanSync({ cwd: root })) + .filter((file) => !/^(target|node_modules|\.opentui)\//.test(file) && !file.includes("/node_modules/")) + .map((file) => path.join(root, path.dirname(file))) + .sort() +const results = await Promise.all(plugins.map(check)) +const errors = results.reduce((sum, count) => sum + count, 0) +const checked = results.filter((count) => count >= 0).length +const expected = Array.from(new Bun.Glob("script/luau-expect/*.luau").scanSync({ cwd: root })) + .sort() + .map((file) => path.join(root, file)) +const unmet = (await Promise.all(expected.map(refused))).filter((met) => !met).length +console.log( + `check-luau-types: ${checked} plugin(s), luau-analyze ${release}, ${errors} error(s); ${expected.length - unmet} of ${expected.length} expected refusal(s)`, +) +if (errors > 0 || unmet > 0) process.exit(1) + +/** Whether the analyzer refuses `file` with the error its first line names (`-- expect: <text>`): proof that the + * check catches what it should, such as a misspelled field of a server type. */ +async function refused(file: string) { + const want = (await Bun.file(file).text()).match(/^-- expect: (.+)$/m)?.[1] + if (!want) fail(`${path.relative(root, file)} names no error on a first line "-- expect: <text>"`) + const config = await luaurc(path.dirname(file)) + if (config.problem) fail(`${path.relative(root, file)}: ${config.problem}`) + const proc = Bun.spawnSync([analyzer, "--formatter=gnu", "--solver=new", file], { stdout: "pipe", stderr: "pipe" }) + const output = proc.stdout.toString() + proc.stderr.toString() + const met = proc.exitCode !== 0 && output.includes(want) + if (!met) console.error(`${path.relative(root, file)}: expected an error with "${want}", got:\n${output.trimEnd()}`) + return met +} + +/** Analyzes one plugin directory and returns its error count; -1 when it has no .luau files. */ +async function check(dir: string) { + const files = Array.from(new Bun.Glob("**/*.luau").scanSync({ cwd: dir })) + .map((file) => path.join(dir, file)) + .sort() + if (files.length === 0) return -1 + const config = await luaurc(dir) + if (config.problem) { + console.error(`${path.relative(root, dir)}: ${config.problem}`) + return 1 + } + const proc = Bun.spawnSync([analyzer, "--formatter=gnu", "--solver=new", ...files], { + stdout: "pipe", + stderr: "pipe", + }) + const output = proc.stdout.toString() + proc.stderr.toString() + if (output.trim()) console.error(output.trimEnd()) + const count = output.split("\n").filter((line) => /^\S.*:\d+\.\d+-\d+\.\d+: /.test(line)).length + // Exits non-zero with errors; a crash or an unparsable report still counts as one. + return proc.exitCode === 0 ? count : Math.max(count, 1) +} + +/** What is wrong with the nearest `.luaurc` above `dir` (inside packages/cli-rs), if anything. */ +async function luaurc(dir: string): Promise<{ problem?: string }> { + for (let at = dir; at.startsWith(root); at = path.dirname(at)) { + const file = Bun.file(path.join(at, ".luaurc")) + if (!(await file.exists())) continue + const config = await file.json() + const name = path.relative(root, file.name!) + if (config.languageMode !== "strict") return { problem: `${name} does not say "languageMode": "strict"` } + const alias = config.aliases?.opencode + if (typeof alias !== "string" || path.resolve(at, alias) !== stub) + return { problem: `${name} does not alias opencode to ${path.relative(at, stub)}` } + return {} + } + return { problem: `no .luaurc above it aliases opencode to ${path.relative(root, stub)}` } +} + +/** The analyzer, extracted from the release zip once. */ +async function install() { + const dir = path.join(cache, `${release}-${platform}`) + const binary = path.join(dir, spec.binary) + if (await Bun.file(binary).exists()) return binary + const files = unzip(await download(), spec.zip, fail) + const bytes = files.get(spec.binary) ?? fail(`${spec.zip} has no ${spec.binary}`) + await mkdir(dir, { recursive: true }) + const partial = `${binary}.${process.pid}.tmp` + await Bun.write(partial, bytes) + await chmod(partial, 0o755) + await rename(partial, binary) + console.error(`check-luau-types: installed luau-analyze ${release} into ${dir}`) + return binary +} + +/** The release zip, from the cache or GitHub, checked against the table. */ +async function download() { + const cached = Bun.file(path.join(cache, `${release}-${spec.zip}`)) + if ((await cached.exists()) && digest(await cached.bytes()) === spec.sha256) return cached.bytes() + const url = `https://github.com/luau-lang/luau/releases/download/${release}/${spec.zip}` + console.error(`check-luau-types: downloading ${url}`) + const response = await fetch(url) + if (!response.ok) fail(`${url}: ${response.status} ${response.statusText}`) + const bytes = new Uint8Array(await response.arrayBuffer()) + const got = digest(bytes) + if (got !== spec.sha256) fail(`${spec.zip} has sha256 ${got}, not ${spec.sha256}`) + await mkdir(cache, { recursive: true }) + const partial = `${cached.name}.${process.pid}.tmp` + await Bun.write(partial, bytes) + await rename(partial, cached.name!) + return bytes +} + +function digest(bytes: Uint8Array) { + return createHash("sha256").update(bytes).digest("hex") +} + +function fail(message: string): never { + console.error(`check-luau-types: ${message}`) + process.exit(1) +} diff --git a/packages/cli-rs/script/check-target.sh b/packages/cli-rs/script/check-target.sh new file mode 100644 index 000000000000..335faf51bfa1 --- /dev/null +++ b/packages/cli-rs/script/check-target.sh @@ -0,0 +1,104 @@ +#!/bin/sh +# Compile-checks the workspace for another target on Linux: clippy with every target and -D warnings. Nothing is +# linked or run; only the preview repository's runners do that. +# +# This is OpenTUI's packages/rust/scripts/check-targets.sh recipe for one target, with no installs: the standard +# library builds from rust-src (RUSTC_BOOTSTRAP stays in this local script and is never used in CI), Zig compiles +# the C code of ring, the grammars and opentui-sys against its own headers (MinGW's for Windows, its Darwin libc for +# macOS), and opentui-sys gets stub artifacts with the real opentui.h, because its build.rs only checks that they exist +# and that the header matches the bindings. +# +# Usage: sh script/check-target.sh <target> [extra cargo clippy arguments...] +# Targets: x86_64-pc-windows-msvc, aarch64-pc-windows-msvc, aarch64-unknown-linux-gnu, x86_64-unknown-linux-musl, +# aarch64-unknown-linux-musl, x86_64-apple-darwin, aarch64-apple-darwin. +# Set ZIG to the Zig command. The default is `zig`, or `zig 0.17.1` (OpenTUI's version) when `zig` is anyzig, which +# needs a version outside a Zig project. +set -eu + +target=${1:?usage: check-target.sh <target> [cargo clippy arguments...]} +shift +case $target in + x86_64-pc-windows-msvc) name=windows zig_target=x86_64-windows-gnu stubs=opentui-static.lib ;; + aarch64-pc-windows-msvc) name=windows-arm64 zig_target=aarch64-windows-gnu stubs=opentui-static.lib ;; + aarch64-unknown-linux-gnu) name=linux-arm64 zig_target=aarch64-linux-gnu.2.17 stubs=libopentui.a ;; + x86_64-unknown-linux-musl) name=linux-x64-musl zig_target=x86_64-linux-musl stubs=libopentui.a ;; + aarch64-unknown-linux-musl) name=linux-arm64-musl zig_target=aarch64-linux-musl stubs=libopentui.a ;; + x86_64-apple-darwin) name=macos-x64 zig_target=x86_64-macos.13.0 stubs=libopentui.a ;; + aarch64-apple-darwin) name=macos-arm64 zig_target=aarch64-macos.13.0 stubs=libopentui.a ;; + *) + printf 'check-target.sh: no recipe for %s\n' "$target" >&2 + exit 2 + ;; +esac + +here=$(CDPATH='' cd -- "$(dirname -- "$0")/.." && pwd) +cd -- "$here" +if [ -n "${ZIG:-}" ]; then + zig=$ZIG +elif zig version > /dev/null 2>&1; then + zig=zig +else + zig='zig 0.17.1' +fi +# Without Zig the check fails deep in a build script, as cc-rs's "exec: zig: not found". +if ! $zig version > /dev/null 2>&1; then + printf 'check-target.sh: %s does not run: put Zig on PATH, or set ZIG to its command\n' "$zig" >&2 + exit 2 +fi +# The header of the pin's library: from the shell's OPENTUI_LIB_DIR; for a release pin, from the directory +# script/opentui-native.ts fills (the one .cargo/config.toml names, relative to this package); for a `git` pin, from +# the directory .cargo/config.toml names. +if [ -n "${OPENTUI_LIB_DIR:-}" ]; then + header=$OPENTUI_LIB_DIR/opentui.h +elif ! grep -q '^opentui = {.*\b\(git\|path\) = ' Cargo.toml; then + header=$(bun run script/opentui-native.ts)/opentui.h +else + header=$(sed -n 's/^OPENTUI_LIB_DIR = { value = "\([^"]*\)".*/\1/p' .cargo/config.toml)/opentui.h +fi + +export CARGO_TARGET_DIR="$here/target/check-$name" +tools=$CARGO_TARGET_DIR/tools +mkdir -p "$tools/lib" +cp "$header" "$tools/lib/opentui.h" +# The static archive opentui-sys links with its default static feature: libopentui.a, or opentui-static.lib on MSVC. +# rustc reads a static library it is told to link even in a check, so the stub is an empty archive (COFF archives +# share ar's format), not an empty file. +for stub in $stubs; do + printf '!<arch>\n' > "$tools/lib/$stub" +done +# cc-rs gives MSVC targets lib.exe's options and the others ar's. +case $target in + *-windows-msvc) printf '#!/bin/sh\nexec %s lib "$@"\n' "$zig" > "$tools/ar" ;; + *) printf '#!/bin/sh\nexec %s ar "$@"\n' "$zig" > "$tools/ar" ;; +esac +# The objects are never linked. zig cc takes the target from -target, so the wrapper drops cc-rs's --target, and the +# -arch pair Apple's clang takes. C++ (Luau's, with the luau feature) goes through zig c++ the same way: without it +# cc-rs falls back to the host's GNU c++, which makes ELF objects for Windows and refuses Apple's flags. +for tool in cc c++; do + cat > "$tools/$tool" <<EOF +#!/bin/sh +skip= +for arg do + shift + if [ -n "\$skip" ]; then + skip= + continue + fi + case \$arg in + --target=*) continue ;; + -arch) skip=1; continue ;; + esac + set -- "\$@" "\$arg" +done +exec $zig $tool -target $zig_target "\$@" +EOF +done +chmod +x "$tools/ar" "$tools/cc" "$tools/c++" + +variable=$(printf '%s' "$target" | tr - _) +export OPENTUI_LIB_DIR="$tools/lib" +export RUSTC_BOOTSTRAP=1 CARGO_UNSTABLE_BUILD_STD=std +export "CC_$variable=$tools/cc" "CXX_$variable=$tools/c++" "AR_$variable=$tools/ar" +cargo=${CARGO:-cargo} +"$cargo" clippy --locked --target "$target" --workspace --all-targets "$@" -- -D warnings < /dev/null +printf 'PASS: compile checks (%s)\n' "$target" diff --git a/packages/cli-rs/script/check-windows.sh b/packages/cli-rs/script/check-windows.sh new file mode 100644 index 000000000000..9c7c028f1168 --- /dev/null +++ b/packages/cli-rs/script/check-windows.sh @@ -0,0 +1,17 @@ +#!/bin/sh +# Compile-checks the workspace for Windows on Linux (script/check-target.sh): x64 by default, or arm64. First it runs +# script/lint-windows.sh, which finds code that is right on Unix and wrong on Windows. +# +# Usage: sh script/check-windows.sh [x64|arm64] [extra cargo clippy arguments...] +set -eu + +target=x86_64-pc-windows-msvc +case ${1:-} in + x64) shift ;; + arm64) + target=aarch64-pc-windows-msvc + shift + ;; +esac +sh "$(dirname -- "$0")/lint-windows.sh" +exec sh "$(dirname -- "$0")/check-target.sh" "$target" "$@" diff --git a/packages/cli-rs/script/drift.ts b/packages/cli-rs/script/drift.ts new file mode 100644 index 000000000000..7f6c98e4aa21 --- /dev/null +++ b/packages/cli-rs/script/drift.ts @@ -0,0 +1,85 @@ +// Fails when a generated file or a committed parity fixture no longer matches the TypeScript it came from. +// Runs every generator in script/gen and every fixture-writing P-ORACLE in parity/oracle, then lists each file +// under packages/cli-rs whose content changed. Needs `bun install`. +// +// Left out by default, because their output is not a function of this checkout alone: +// - script/gen/grammars.ts downloads grammars from the network; +// - script/gen/time.ts depends on the ICU data of the running Bun; +// - the P-COMP (parity/component) and P-APP (parity/scenarios) recordings are slow and some are noisy. +// `--all` adds the two generators, `--recordings` adds the P-COMP and P-APP recordings. +// +// Run it on a clean tree. Files already dirty before the run count only if the run changes them again. +const root = new URL("..", import.meta.url).pathname +const parity = `${root}parity/` +const all = process.argv.includes("--all") +const recordings = process.argv.includes("--recordings") +const slow = new Set(["script/gen/grammars.ts", "script/gen/time.ts"]) + +const before = await snapshot() +const started = performance.now() + +for (const script of Array.from(new Bun.Glob("script/gen/*.ts").scanSync({ cwd: root })) + .sort() + .filter((script) => all || !slow.has(script))) + run(["bun", "run", script], root) + +// The same oracle selection as parity/fixtures.ts: a first line that says "helper" writes no fixture. +const oracles = await Promise.all( + Array.from(new Bun.Glob("oracle/*.ts").scanSync({ cwd: parity })) + .sort() + .map(async (script) => ({ + script, + helper: /\bhelper\b/.test((await Bun.file(`${parity}${script}`).text()).split("\n", 1)[0]), + })), +) +for (const oracle of oracles.filter((oracle) => !oracle.helper)) run(["bun", "run", oracle.script], parity) + +if (recordings) { + for (const script of Array.from(new Bun.Glob("component/*.tsx").scanSync({ cwd: parity })).sort()) + run(["bun", "run", script], parity) + for (const scenario of Array.from(new Bun.Glob("scenarios/*/*.app.ts").scanSync({ cwd: parity })) + .sort() + .map((file) => file.slice("scenarios/".length, -".app.ts".length))) + run(["bun", "test", "./app/scenarios.test.tsx"], parity, { PARITY_SCENARIO: scenario }) +} + +const after = await snapshot() +const changed = Array.from(new Set([...before.keys(), ...after.keys()])) + .filter((file) => before.get(file) !== after.get(file)) + .sort() +const seconds = ((performance.now() - started) / 1000).toFixed(1) +if (changed.length === 0) { + console.log(`drift: no generated file or fixture changed (${seconds} s)`) + process.exit(0) +} +console.error(`drift: ${changed.length} file(s) no longer match TypeScript (${seconds} s):`) +for (const file of changed) console.error(` ${file}`) +console.error("drift: commit the regenerated files, or fix the Rust side if the TypeScript change was intended.") +process.exit(1) + +function run(command: string[], cwd: string, env: Record<string, string> = {}) { + console.log(`drift: ${Object.entries(env).map(([key, value]) => `${key}=${value} `).join("")}${command.join(" ")}`) + const proc = Bun.spawnSync(command, { cwd, env: { ...process.env, ...env }, stdout: "inherit", stderr: "inherit" }) + if (proc.exitCode !== 0) process.exit(proc.exitCode ?? 1) +} + +// Maps every changed or untracked path under packages/cli-rs to a hash of its content. Porcelain paths are +// relative to the repository root. +async function snapshot() { + const top = Bun.spawnSync(["git", "rev-parse", "--show-toplevel"], { cwd: root }).stdout.toString().trim() + const proc = Bun.spawnSync(["git", "status", "--porcelain", "-z", "--untracked-files=all", "--", "."], { cwd: root }) + const files = proc.stdout + .toString() + .split("\0") + .filter((entry) => entry.length > 3) + .map((entry) => entry.slice(3)) + return new Map( + await Promise.all( + files.map(async (file) => { + const handle = Bun.file(`${top}/${file}`) + const hash = (await handle.exists()) ? Bun.hash(await handle.arrayBuffer()).toString() : "deleted" + return [file, hash] as const + }), + ), + ) +} diff --git a/packages/cli-rs/script/gen/accents.ts b/packages/cli-rs/script/gen/accents.ts new file mode 100644 index 000000000000..34de87023162 --- /dev/null +++ b/packages/cli-rs/script/gen/accents.ts @@ -0,0 +1,27 @@ +// Writes crates/ui/src/fuzzy/accents.rs: what fuzzysort's `remove_accents` makes of each character it changes, from +// this runtime's Unicode data. It decomposes Latin letters (NFD) and drops the marks U+0300 to U+036F. Marks are not +// Latin, so a run of Latin letters decomposes letter by letter. Sorted by character for a binary search. +const removeAccents = (text: string) => + text.replace(/\p{Script=Latin}+/gu, (match) => match.normalize("NFD")).replace(/[\u0300-\u036f]/g, "") + +const entries = Array.from({ length: 0x110000 }, (_, code) => code) + .filter((code) => code < 0xd800 || code > 0xdfff) + .map((code) => [String.fromCodePoint(code), removeAccents(String.fromCodePoint(code))] as const) + .filter(([char, folded]) => char !== folded) +const escape = (text: string) => + Array.from(text, (char) => + /[ -~]/.test(char) && !`'"\\`.includes(char) ? char : `\\u{${char.codePointAt(0)!.toString(16)}}`, + ).join("") +const lines = [ + "// Generated by script/gen/accents.ts from fuzzysort's `remove_accents`. Do not edit.", + "", + "/// `(character, folded)`, sorted by character.", + "pub const FOLD: &[(char, &str)] = &[", + ...entries.map(([char, folded]) => ` ('${escape(char)}', "${escape(folded)}"),`), + "];", + "", +] + +const file = new URL("../../crates/ui/src/fuzzy/accents.rs", import.meta.url).pathname +await Bun.write(file, lines.join("\n")) +console.log(`accents: ${entries.length} characters`) diff --git a/packages/cli-rs/script/gen/api.ts b/packages/cli-rs/script/gen/api.ts new file mode 100644 index 000000000000..54326cc03986 --- /dev/null +++ b/packages/cli-rs/script/gen/api.ts @@ -0,0 +1,268 @@ +// Generates Rust API types and endpoints from ClientApi. +import { compile, type Endpoint } from "@opencode/httpapi-codegen" +import { ClientApi, clientNamespace, groupNames, promiseOmitEndpoints } from "@opencode/protocol/client" +import { Schema, SchemaAST, SchemaRepresentation } from "effect" +import { HttpApiSchema } from "effect/http-api" +import { emitMethod, type Field, type Method } from "../rust/methods.ts" +import { pascal, Types } from "../rust/types.ts" + +const root = new URL("..", import.meta.url).pathname.replace(/script\/$/, "") +const directory = `${root}crates/api/src/generated` +const typesFile = `${root}crates/api-types/src/types.rs` +const clientFile = `${root}crates/api-types/src/client.rs` +const operationsFile = `${root}crates/plugin/src/luau/operations.json` +const samplesFile = `${root}crates/plugin/src/luau/client-samples.json` +const resolveEncoding = SchemaAST.resolveAt<{ readonly _tag: string }>("~httpApiEncoding") +// As `resolveHttpApiStatus` in httpapi-codegen: a no-content success (204) keeps its status on the +// context annotations. +const resolveStatus = (ast: SchemaAST.AST) => + SchemaAST.resolveAt<number>("httpApiStatus")(ast) ?? + (ast.checks === undefined ? (ast.context?.annotations?.httpApiStatus as number | undefined) : undefined) + +const contract = compile(ClientApi, { groupNames, omitEndpoints: promiseOmitEndpoints, namespace: clientNamespace }) + +type Root = { readonly ast: SchemaAST.AST } +const roots: Array<Root> = [] +const add = (ast: SchemaAST.AST) => { + const item = { ast } + roots.push(item) + return item +} + +const plans = contract.groups.flatMap((group) => + group.endpoints.map((endpoint) => { + const opaque = endpoint.payloads[0] !== undefined && !flattenable(endpoint.payloads[0]) + const binaryBody = + endpoint.payloads[0] !== undefined && resolveEncoding(endpoint.payloads[0].ast)?._tag === "Uint8Array" + const sources = { + params: endpoint.params, + query: endpoint.query, + headers: endpoint.headers, + payload: endpoint.payloads[0], + } + const fields = endpoint.input.map((field) => { + const schema = sources[field.source]! + if (opaque && field.source === "payload") + return { ...field, root: binaryBody ? undefined : add(Schema.toEncoded(schema).ast) } + const ast = (field.source === "query" ? Schema.toType(schema) : Schema.toEncoded(schema)).ast + if (!SchemaAST.isObjects(ast)) throw new Error(`Input schema must be a struct: ${endpoint.operation.name}`) + const property = ast.propertySignatures.find((item) => item.name === field.name)! + return { ...field, root: add(property.type) } + }) + const wildcard = endpoint.endpoint.path.endsWith("*") + ? [ + { + name: endpoint.input.some((field) => field.name === "path") ? "wildcard" : "path", + source: "wildcard" as const, + optional: false, + root: undefined, + }, + ] + : [] + const success = endpoint.successes[0] + const kind = streamKind(success) + const output = (() => { + if (kind === "sse") return add(sseData(success)) + if (HttpApiSchema.isNoContent(success.ast) || resolveEncoding(success.ast)?._tag === "Uint8Array") + return undefined + const ast = Schema.toEncoded(success).ast + if (!endpoint.unwrapData) return add(ast) + if (!SchemaAST.isObjects(ast)) throw new Error(`Invalid data envelope: ${endpoint.operation.name}`) + return add(ast.propertySignatures.find((item) => item.name === "data")!.type) + })() + for (const error of endpoint.errors) add(Schema.toEncoded(error.schema).ast) + const successKind: Method["success"] = + kind === "sse" + ? "sse" + : HttpApiSchema.isNoContent(success.ast) + ? "empty" + : resolveEncoding(success.ast)?._tag === "Uint8Array" + ? "binary" + : endpoint.unwrapData + ? "data" + : "json" + return { group, endpoint, opaque, binaryBody, fields: [...fields, ...wildcard], output, success: successKind } + }), +) + +const document = SchemaRepresentation.toRepresentations( + normalize(roots.map((item) => item.ast)) as [SchemaAST.AST, ...Array<SchemaAST.AST>], +) +const representation = new Map(roots.map((item, index) => [item, document.representations[index]])) +const types = new Types(document.references) +for (const name of ["Client", "Call", "Error", "SseResponse", "Reply", "Sse"]) types.name(name) + +const methods = plans.map((plan) => + emitMethod(types, { + group: plan.group, + endpoint: plan.endpoint, + prefix: `${pascal(plan.group.identifier)}${plan.endpoint.clientPath.map(pascal).join("")}`, + opaque: plan.opaque, + binaryBody: plan.binaryBody, + fields: plan.fields.map( + (field): Field => ({ + name: field.name, + source: field.source, + optional: field.optional, + representation: field.root === undefined ? undefined : representation.get(field.root), + }), + ), + success: plan.success, + output: plan.output === undefined ? undefined : representation.get(plan.output), + successStatus: resolveStatus(plan.endpoint.successes[0].ast) ?? 200, + }), +) +// Declared error bodies get types too, for `DeclaredError::decode`, which checks their tag. +const tagged = new Set<string>() +for (const ref of Object.keys(document.references)) { + if (!/Error$/.test(ref)) continue + const name = types.type({ _tag: "Reference", $ref: ref }, ref) + const body = types.deref(document.references[ref]) + if (body._tag !== "Objects" || tagged.has(name) || !/^[A-Z][A-Za-z0-9]*$/.test(name)) continue + const tag = ["_tag", "name"] + .map((key) => body.propertySignatures.find((property) => property.name === key)) + .map((property) => (property === undefined ? undefined : types.deref(property.type))) + .find((type) => type?._tag === "Literal" && typeof type.literal === "string") + if (tag?._tag !== "Literal") continue + tagged.add(name) + types.items.push( + `impl crate::TaggedError for ${name} {\n const TAG: &'static str = ${JSON.stringify(tag.literal)};\n}`, + ) +} + +const header = "// Generated by script/gen/api.ts from ClientApi. Do not edit.\n" +await Bun.write( + typesFile, + `${header}#![allow(clippy::all, clippy::pedantic, non_camel_case_types)]\n\nuse indexmap::IndexMap;\n\nuse serde::{Deserialize, Serialize};\n\n${types.items.join("\n\n")}\n`, +) +await Bun.write( + `${directory}/methods.rs`, + `${header}#![allow(clippy::all, clippy::pedantic)]\n\nuse super::types::*;\nuse crate::client::{Call, Client};\nuse crate::error::Error;\nuse crate::transport::SseResponse;\nuse opencode_api_types::client; + +macro_rules! endpoint { + ($doc:literal, $name:ident, $builder:ident, $send:ident, $output:ty $(, $arg:ident: $input:ty)?) => { + #[doc = $doc] + pub async fn $name(&self $(, $arg: &$input)?) -> Result<$output, Error> { + self.$send(Self::$builder($($arg)?)?).await + } + pub fn $builder($($arg: &$input)?) -> Result<Call, Error> { + client::$name($($arg)?).try_into() + } + }; +} + +impl Client {\n${methods.map((method) => method.method).join("\n")}\n}\n`, +) +await Bun.write( + clientFile, + `${header}//! Typed request builders. The API client sends requests with its credentials; plugins send them through their host. +#![allow(clippy::all, clippy::pedantic)] + +use crate::call::{Call, Reply, Sse, path_wildcard}; +use crate::types::*; + +${methods.map((method) => method.builder).join("\n\n")} + +/// Builds a request from its operation name and JSON input, or returns \`None\` for an unknown operation. +#[cfg(feature = "probe")] +pub fn probe(name: &str, input: &serde_json::Value) -> Option<Result<Call<serde_json::Value>, String>> { + fn field<T: serde::de::DeserializeOwned>(input: &serde_json::Value, name: &str) -> Result<T, String> { + serde_json::from_value(input.get(name).cloned().unwrap_or_default()).map_err(|error| format!("{name}: {error}")) + } + match name { +${methods.map((method) => ` ${method.probe}`).join("\n")} + _ => None, + } +} +`, +) +// The operations table, by name, for the Luau prelude's `plugin.client` and the Luau stub's types. +const operations = Object.fromEntries(methods.map((method) => [method.name, method.operation])) +if (Object.keys(operations).length !== methods.length) throw new Error("two endpoints have one client name") +// One operation a line: diffs stay readable, and the carrier embeds no indentation. +const lines = (rows: Array<[string, unknown]>) => + `{\n${rows.map(([name, row]) => `${JSON.stringify(name)}:${JSON.stringify(row)}`).join(",\n")}\n}\n` +await Bun.write(operationsFile, lines(Object.entries(operations))) +await Bun.write(samplesFile, lines(methods.map((method) => [method.name, method.sample]))) +await Bun.write( + `${directory}/mod.rs`, + `${header}//! HTTP API types and endpoint methods.\n\nmod methods;\n\npub use opencode_api_types::types;\npub use types::*;\n\n/// Endpoints in the generated client.\npub const ENDPOINTS: usize = ${plans.length};\n`, +) +const format = Bun.spawnSync(["rustfmt", "--edition", "2024", `${directory}/mod.rs`, typesFile, clientFile], { + stdout: "inherit", + stderr: "inherit", +}) +if (format.exitCode !== 0) process.exit(format.exitCode ?? 1) +console.log(`api: ${plans.length} endpoints, ${types.items.length} items`) + +function flattenable(schema: Schema.Top) { + const ast = Schema.toType(schema).ast + return SchemaAST.isObjects(ast) && ast.indexSignatures.length === 0 +} + +function streamKind(schema: Schema.Top) { + if (!("_tag" in schema)) return undefined + if (schema._tag === "StreamSse") return "sse" + if (schema._tag === "StreamUint8Array") throw new Error("Byte streams are not supported") + return undefined +} + +// The encoded data schema of an SSE endpoint, as `streamEncodedDataSchema` in httpapi-codegen. +function sseData(schema: Endpoint["successes"][number]) { + const events = (schema as unknown as { readonly events: Schema.Top }).events.ast + if (!SchemaAST.isObjects(events)) throw new Error("Invalid SSE data schema") + const data = events.propertySignatures.find((field) => field.name === "data")!.type + // oxlint-disable-next-line no-restricted-globals -- Effect exposes this runtime helper without a public type. + const replaceEncoding = Reflect.get(SchemaAST, "replaceEncoding") as ( + ast: SchemaAST.AST, + encoding: undefined, + ) => SchemaAST.AST + return Schema.toEncoded(Schema.make<Schema.Top>(replaceEncoding(data, undefined))).ast +} + +// Declarations become their fields or JSON, as `codegenAsts` in httpapi-codegen, and equal named +// schemas share one reference. +function normalize(input: ReadonlyArray<SchemaAST.AST>) { + const cache = new WeakMap<SchemaAST.AST, SchemaAST.AST>() + const references = new Map<string, SchemaAST.AST>() + const recur = (ast: SchemaAST.AST): SchemaAST.AST => { + const cached = cache.get(ast) + if (cached !== undefined) return cached + const identifier = SchemaAST.resolveIdentifier(ast) + const output = step(ast) + const key = + identifier === undefined + ? undefined + : `${identifier}\0${ast.context?.isOptional === true}\0${JSON.stringify(SchemaRepresentation.toJson(SchemaRepresentation.toRepresentation(output)))}` + const reference = key === undefined ? undefined : references.get(key) + if (reference !== undefined) { + cache.set(ast, reference) + return reference + } + cache.set(ast, output) + if (key !== undefined) references.set(key, output) + return output + } + const step = (ast: SchemaAST.AST): SchemaAST.AST => { + if (SchemaAST.isDeclaration(ast) && ast.annotations?.toCode === undefined) { + const representation = ast.annotations?.representation + if ( + typeof representation === "object" && + representation !== null && + "id" in representation && + representation.id === "effect/schema/Json" + ) { + return Schema.Json.ast + } + if (ast.annotations?.["~constructor"] !== undefined && ast.typeParameters[0] !== undefined) { + const identifier = SchemaAST.resolveIdentifier(ast) + const fields = recur(ast.typeParameters[0]) + if (identifier === undefined) return fields + return Schema.make<Schema.Top>(fields).annotate({ identifier }).ast + } + } + if (!("recur" in ast) || typeof ast.recur !== "function") return ast + return ast.recur(recur) + } + return input.map(recur) +} diff --git a/packages/cli-rs/script/gen/cli-output.ts b/packages/cli-rs/script/gen/cli-output.ts new file mode 100644 index 000000000000..79d0cff1a7bb --- /dev/null +++ b/packages/cli-rs/script/gen/cli-output.ts @@ -0,0 +1,151 @@ +// Records what the TypeScript CLI prints for help and usage errors, with colors (FORCE_COLOR=1), +// into crates/cli/tests/fixtures/cli. Each usage error records the environment it ran in. The Rust tests in +// crates/cli/src/tests/output.rs compare their own output with these files byte for byte, and with the colors +// stripped for a run without a terminal. +import path from "node:path" +import { mkdir, rm } from "node:fs/promises" +import { Commands } from "../../../cli/src/commands/commands" +import { command, sandbox } from "../../parity/cli/client" +import { records } from "../../parity/lib/records" + +type Node = { readonly name: string; readonly commands: Record<string, Node> } + +// Usage errors: each line is the argument list after the program name. +const errors: string[][] = [ + ["upgrade", "--method", "apt"], + ["upgrade", "-m"], + ["debug", "nope"], + ["auth", "logn"], + ["debug", "paths", "nope"], + ["stats", "--days", "-1"], + ["stats", "--days", "1.5"], + ["stats", "--days", "abc"], + ["stats", "--year", "1969"], + ["stats", "--limit", "0"], + ["session", "delete"], + ["session", "list", "-n"], + ["session", "list", "--format", "xml"], + ["service", "set", "key"], + ["mcp", "logout"], + ["plugin", "add"], + ["api"], + ["api", "a", "b", "c"], + ["api", "a", "b", "c", "d"], + ["api", "op", "--param", "novalue"], + ["api", "op", "--param", "=1"], + ["mcp", "add", "x", "--header", "k="], + ["run", "--modle", "x"], + ["run", "-x", "hi"], + ["run", "-cx", "hi"], + ["run", "--bogus", "--worse"], + ["run", "--no-continu"], + ["run", "--yol"], + ["run", "-1x"], + ["run", "-=v"], + ["run", "-s", "a", "-s", "b"], + ["run", "-c", "--continue"], + ["run", "--auto=maybe"], + ["run", "-w=a", "--worktree=b"], + ["mini", "--replay-limit", "abc"], + ["mini", "--replay-limit", "1.5"], + ["mini", "--no-replay=true"], + ["mini", "--no-replay", "true"], + ["mini", "--replay", "--no-replay"], + ["uninstall", "--dry-run", "--dry-run"], + ["pair", "--url", "ftp://example.com"], + ["pair", "--url", "https://user:secret@example.com"], + ["pair", "--url", "not a url"], + ["serve", "--cors", ""], + ["serve", "--port", "x"], + ["-c", "upgrade"], + ["--prompt", "hi", "run"], + ["--auto", "--continue", "session", "list"], + ["--server"], + ["upgrade", "--server", "http://a"], + ["--server", "http://a", "upgrade"], + ["--standalone", "debug", "heap-dump"], + ["--server", "a", "session", "list", "--server", "b"], + ["--standalone", "auth", "list", "--standalone"], + ["--log-level", "bogus"], + ["--log-level"], + ["--completions", "bogus"], + ["--help", "--help"], + ["--print-logs=maybe"], + ["session", "--bogus", "list"], + ["auth", "list", "extra"], + ["service", "status", "extra", "more"], + ["-x"], + ["run", "--bogus", "-s", "--also-bogus"], + ["run", "--unknown", "--model", "--another"], + ["debug", "--bogus", "nope", "--also-bogus"], +] + +// Usage errors in another environment than FORCE_COLOR=1, recorded with it. +const environments: { args: string[]; env: Record<string, string> }[] = [ + { args: ["run", "--bogus"], env: { FORCE_COLOR: "false" } }, + { args: ["run", "--bogus"], env: { FORCE_COLOR: "FALSE" } }, + { args: ["run", "--bogus"], env: { FORCE_COLOR: "0" } }, + { args: ["run", "--bogus", "--worse"], env: { FORCE_COLOR: "1", NO_COLOR: "1" } }, +] + +const root = Commands as unknown as Node +const paths: string[][] = [] +const visit = (node: Node, prefix: string[]) => { + paths.push(prefix) + for (const child of Object.values(node.commands)) visit(child, [...prefix, child.name]) +} +visit(root, []) + +const out = path.resolve(import.meta.dir, "../../crates/cli/tests/fixtures/cli") +await rm(out, { recursive: true, force: true }) +await mkdir(path.join(out, "help"), { recursive: true }) + +const run = async (args: string[], env: Record<string, string> = { FORCE_COLOR: "1" }) => { + const box = await sandbox(env) + const proc = Bun.spawn(command("ts", args), { + cwd: box.cwd, + env: box.env, + stdin: "ignore", + stdout: "pipe", + stderr: "pipe", + }) + const [stdout, stderr, exit] = await Promise.all([ + new Response(proc.stdout).text(), + new Response(proc.stderr).text(), + proc.exited, + ]) + await rm(box.root, { recursive: true, force: true }) + return { args, env, exit, stdout, stderr } +} + +// A few processes at a time: each one starts the whole TypeScript CLI. +async function pool<T, R>(items: T[], size: number, work: (item: T) => Promise<R>) { + const results: R[] = new Array(items.length) + let next = 0 + await Promise.all( + Array.from({ length: size }, async () => { + while (next < items.length) { + const index = next++ + results[index] = await work(items[index]) + } + }), + ) + return results +} + +const expectClean = (record: Awaited<ReturnType<typeof run>>) => { + if (record.exit !== 0 || record.stderr !== "") + throw new Error(`${record.args.join(" ")}: exit ${record.exit}\n${record.stderr}`) + return record.stdout +} + +await pool(paths, 6, async (prefix) => { + const stdout = expectClean(await run([...prefix, "--help"])) + await Bun.write(path.join(out, "help", `${["opencode", ...prefix].join(" ")}.txt`), stdout) +}) +const failures = [ + ...(await pool(errors, 6, (args) => run(args))), + ...(await pool(environments, 4, (item) => run(item.args, item.env))), +] +await Bun.write(path.join(out, "errors.json"), records(failures, ["[]"])) +console.log(`cli-output: wrote ${paths.length} help pages and ${failures.length} errors to ${out}`) diff --git a/packages/cli-rs/script/gen/commands.ts b/packages/cli-rs/script/gen/commands.ts new file mode 100644 index 000000000000..61671ccfc4e4 --- /dev/null +++ b/packages/cli-rs/script/gen/commands.ts @@ -0,0 +1,118 @@ +// Records the CLI command tree, including metadata not visible in help output. +import { Effect, Exit, Option } from "effect" +import { GlobalFlag } from "effect/cli" +import { Commands, PrintLogs } from "../../../cli/src/commands/commands" +import { records } from "../../parity/lib/records" + +type Param = { + readonly _tag: "Single" | "Map" | "Transform" | "Optional" | "Variadic" + readonly kind: "flag" | "argument" + readonly param: Param + readonly name: string + readonly description: Option.Option<string> + readonly aliases: ReadonlyArray<string> + readonly primitiveType: { readonly _tag: string; readonly choiceKeys?: ReadonlyArray<string> } + readonly typeName?: string + readonly hidden: boolean + readonly optionalValue?: string + readonly min: Option.Option<number> + readonly max: Option.Option<number> + readonly parse: (args: { flags: Record<string, string[]>; arguments: string[] }) => Effect.Effect<unknown, unknown> +} + +type Spec = { + readonly description?: string + readonly unlisted: boolean + readonly config: { readonly flags: ReadonlyArray<Param>; readonly arguments: ReadonlyArray<Param> } + readonly globalFlags: ReadonlyArray<{ readonly flag: Param }> +} + +type Node = { + readonly name: string + readonly spec: Spec + readonly commands: Record<string, Node> + readonly aliases: ReadonlyArray<Node> +} + +function walk(param: Param, state = { optional: false, min: undefined as number | undefined, max: undefined as number | undefined, repeated: false }): { single: Param; optional: boolean; repeated: boolean; min?: number; max?: number } { + if (param._tag === "Single") return { single: param, ...state } + if (param._tag === "Optional") return walk(param.param, { ...state, optional: true }) + if (param._tag === "Variadic") + return walk(param.param, { + ...state, + repeated: true, + min: Option.getOrUndefined(param.min), + max: Option.getOrUndefined(param.max), + }) + return walk(param.param, state) +} + +// withDefault wraps the parser, so the default is what the param parses to with no input. +function fallback(param: Param) { + const exit = Effect.runSyncExit(param.parse({ flags: {}, arguments: [] }) as Effect.Effect<readonly [unknown, unknown]>) + if (!Exit.isSuccess(exit)) return undefined + const value = exit.value[1] + if (Option.isOption(value)) return undefined + return value +} + +function flag(param: Param) { + const info = walk(param) + const value = fallback(param) + return { + name: info.single.name, + aliases: info.single.aliases, + type: info.single.typeName ?? info.single.primitiveType._tag, + choices: info.single.primitiveType.choiceKeys ?? [], + description: Option.getOrElse(info.single.description, () => ""), + hidden: info.single.hidden, + optional: info.optional || value !== undefined, + repeated: info.repeated, + min: info.min, + max: info.max, + optionalValue: info.single.optionalValue !== undefined, + default: Array.isArray(value) && value.length === 0 ? undefined : value, + } +} + +function argument(param: Param) { + const info = walk(param) + return { + name: info.single.name, + type: info.single.typeName ?? info.single.primitiveType._tag, + choices: info.single.primitiveType.choiceKeys ?? [], + description: Option.getOrElse(info.single.description, () => ""), + optional: info.optional, + variadic: info.repeated, + min: info.min, + max: info.max, + } +} + +function node(input: Node, aliases: ReadonlyArray<string>): unknown { + const spec = input.spec as Spec & { readonly alias?: string } + return { + name: input.name, + aliases: [spec.alias, ...aliases].filter((alias) => alias !== undefined), + description: spec.description ?? "", + // Only unlisted commands carry the key, so the rest of the recording stays as it was. + ...(spec.unlisted ? { hidden: true } : {}), + globalFlags: spec.globalFlags.map((global) => walk(global.flag).single.name), + arguments: spec.config.arguments.map(argument), + flags: spec.config.flags.map(flag), + commands: Object.values(input.commands).map((child) => + node( + child, + child.aliases.map((alias) => alias.name), + ), + ), + } +} + +const root = node(Commands as unknown as Node, []) +const builtins = [...GlobalFlag.BuiltIns, PrintLogs].map((global) => flag(global.flag as unknown as Param)) +const tree = { builtins, root } + +const output = new URL("../../crates/cli/tests/fixtures/commands.json", import.meta.url).pathname +await Bun.write(output, records(tree, ["builtins[]", "**.commands[]"])) +console.log(`commands: wrote ${output}`) diff --git a/packages/cli-rs/script/gen/config.ts b/packages/cli-rs/script/gen/config.ts new file mode 100644 index 000000000000..f751e3d8e003 --- /dev/null +++ b/packages/cli-rs/script/gen/config.ts @@ -0,0 +1,34 @@ +// Writes crates/local/src/generated/config.rs: the keybind names `cli.json` accepts, in definition order (the +// order Effect Schema decodes them in), and the V1 names and command map the V1 migration reads. +import { Definitions } from "../../../tui/src/config/keybind" +import { TuiKeybind } from "../../../tui/src/config/v1/keybind" + +const list = (name: string, doc: string, values: string[]) => [ + `/// ${doc}`, + `pub const ${name}: &[&str] = &[`, + ...values.map((value) => ` ${JSON.stringify(value)},`), + "];", + "", +] +const commands = Object.entries(TuiKeybind.CommandMap) +const lines = [ + "// Generated by script/gen/config.ts from packages/tui/src/config/keybind.ts and v1/keybind.ts. Do not edit.", + "", + ...list("KEYBIND_NAMES", "Keybind names of `cli.json`, in definition order.", Object.keys(Definitions)), + ...list( + "V1_KEYBIND_NAMES", + "Keybind names of the V1 `tui.json`, in definition order.", + Object.keys(TuiKeybind.Definitions), + ), + "/// The V1 `CommandMap`: legacy keybind name to the current name.", + "pub const V1_COMMAND_MAP: &[(&str, &str)] = &[", + ...commands.map(([from, to]) => ` (${JSON.stringify(from)}, ${JSON.stringify(to)}),`), + "];", + "", +] + +const file = new URL("../../crates/local/src/generated/config.rs", import.meta.url).pathname +await Bun.write(file, lines.join("\n")) +console.log( + `config: ${Object.keys(Definitions).length} keybinds, ${Object.keys(TuiKeybind.Definitions).length} V1 keybinds, ${commands.length} V1 commands`, +) diff --git a/packages/cli-rs/script/gen/entities.ts b/packages/cli-rs/script/gen/entities.ts new file mode 100644 index 000000000000..bc2936c249a7 --- /dev/null +++ b/packages/cli-rs/script/gen/entities.ts @@ -0,0 +1,104 @@ +// Generates strict HTML named references from the packed trie in `entities`, checking each name against its decoder. +import { createRequire } from "node:module" + +const require = createRequire(new URL("../../../merman/package.json", import.meta.url).pathname) +const entities: { + htmlDecodeTree: Uint16Array + decodeHTMLStrict: (value: string) => string +} = require("entities/decode") +const tree = entities.htmlDecodeTree +// `BinTrieFlags` of the package. +const VALUE_LENGTH = 0b1100_0000_0000_0000 +const FLAG13 = 0b0010_0000_0000_0000 +const BRANCH_LENGTH = 0b0001_1111_1000_0000 +const JUMP_TABLE = 0b0000_0000_0111_1111 + +const found = new Map<string, string>() +const walk = (start: number, prefix: string) => { + let index = start + let name = prefix + let current = tree[index]! + // A compact run (no value, flag 13): its characters, the first inline and the rest packed two per word. + while ((current & VALUE_LENGTH) === 0 && (current & FLAG13) !== 0) { + const length = (current & BRANCH_LENGTH) >> 7 + name += String.fromCharCode(current & JUMP_TABLE) + for (let k = 0; k < length - 1; k++) { + const word = tree[index + 1 + (k >> 1)]! + name += String.fromCharCode(k % 2 === 0 ? word & 0xff : (word >> 8) & 0xff) + } + index += 1 + (length >> 1) + current = tree[index]! + } + const reference = `&${name};` + const value = entities.decodeHTMLStrict(reference) + if (value !== reference) found.set(name, value) + const valueLength = (current & VALUE_LENGTH) >> 14 + // A one-word value is stored in the node's own branch bits: a leaf. + if (valueLength === 1) return + const node = index + Math.max(1, valueLength) + const count = (current & BRANCH_LENGTH) >> 7 + const jump = current & JUMP_TABLE + const branches: [number, number][] = + count === 0 + ? jump === 0 + ? [] + : [[jump, node]] + : jump !== 0 + ? Array.from({ length: count }, (_, k): [number, number] => [jump + k, tree[node + k]! - 1]) + : Array.from({ length: count }, (_, k): [number, number] => [ + (tree[node + (k >> 1)]! >> ((k & 1) * 8)) & 0xff, + tree[node + ((count + 1) >> 1) + k]!, + ]) + for (const [char, target] of branches) { + // `;` ends a name; the name itself was checked above. + if (target >= 0 && char !== 59) walk(target, name + String.fromCharCode(char)) + } +} +walk(0, "") + +const cases = [ + "&<>"' ", + "& < no semicolon &", + "∉ ¬ ∉ ¬hing;", + "ABCC", + "� € Ÿ � � �", + "&#; &#x; A A &#xG;", + "&unknown; & ; && &amp;", + "⪢̸ =⃥ fj", + "trailing &", + "trailing A", + "trailing &", + "😀 😀", + "a&b<c>d", +] + +const literal = (value: string) => + `"${[...value] + .map((char) => { + if (char === '"' || char === "\\") return `\\${char}` + if (char === "\n") return "\\n" + if (char === "\t") return "\\t" + // Controls, format characters and spaces other than U+0020 are invisible in source. + return char !== " " && /[\p{Cc}\p{Cf}\p{Z}\p{M}]/u.test(char) ? `\\u{${char.codePointAt(0)!.toString(16)}}` : char + }) + .join("")}"` +const names = [...found.keys()].toSorted((a, b) => (a < b ? -1 : a > b ? 1 : 0)) +const lines = [ + "// Generated by script/gen/entities.ts from the `entities` package. Do not edit.", + "", + "/// `(name, value)` of every `&name;` that `decodeHTMLStrict` decodes, sorted by name.", + "pub const ENTITIES: &[(&str, &str)] = &[", + ...names.map((name) => ` (${literal(name)}, ${literal(found.get(name)!)}),`), + "];", + "", + "/// `(input, decodeHTMLStrict(input))`.", + "#[cfg(test)]", + "pub const CASES: &[(&str, &str)] = &[", + ...cases.map((input) => ` (${literal(input)}, ${literal(entities.decodeHTMLStrict(input))}),`), + "];", + "", +] + +const file = new URL("../../crates/mermaid/src/core/entities.rs", import.meta.url).pathname +await Bun.write(file, lines.join("\n")) +console.log(`entities: ${names.length} names`) diff --git a/packages/cli-rs/script/gen/grammars.ts b/packages/cli-rs/script/gen/grammars.ts new file mode 100644 index 000000000000..07177f91d41e --- /dev/null +++ b/packages/cli-rs/script/gen/grammars.ts @@ -0,0 +1,75 @@ +// Writes assets/queries/<filetype>/highlights.scm: the highlight queries the TypeScript TUI uses, so the linked +// grammars capture the same names. The TUI's 34 grammars take theirs from packages/tui/src/parsers-config.ts, +// downloaded and joined as Core's DownloadUtils.fetchHighlightQueries does. Core's own grammars (JavaScript, +// TypeScript, TSX, Markdown, Markdown inline, Zig) take the queries bundled in @opentui/core. Every query then gets +// Core's #lua-match? rewrite, so the files hold what Core compiles. The manifest lists +// each linked filetype with its aliases and sources (parity/deviations/H06-highlight-queries.md). +import parsers from "../../../tui/src/parsers-config" + +const root = new URL("../../assets/queries/", import.meta.url).pathname +const core = Bun.resolveSync("@opentui/core/package.json", import.meta.dir).replace(/package\.json$/, "") +// Core's query cache: getDataPaths().globalDataPath, then tree-sitter/queries. +const cache = `${process.env.XDG_DATA_HOME || `${process.env.HOME}/.local/share`}/opentui/tree-sitter/queries` +const bundled = ["javascript", "typescript", "typescriptreact", "markdown", "markdown_inline", "zig"] +const coreVersion = (await Bun.file(`${core}package.json`).json()).version + +const linked = parsers.parsers.filter((parser) => !["ocaml", "fsharp", "kotlin", "swift"].includes(parser.filetype)) +const tui = await Promise.all( + linked.map(async (parser) => ({ + filetype: parser.filetype, + aliases: "aliases" in parser ? parser.aliases : [], + sources: parser.queries.highlights, + query: (await Promise.all(parser.queries.highlights.map((url) => load(url, parser.filetype)))) + .filter((query) => query.trim().length > 0) + .join("\n"), + })), +) +const own = await Promise.all( + bundled.map(async (filetype) => ({ + filetype, + aliases: filetype === "javascript" ? ["javascriptreact"] : [], + sources: [`@opentui/core@${coreVersion}/assets/${filetype}/highlights.scm`], + query: await Bun.file(`${core}assets/${filetype}/highlights.scm`).text(), + })), +) +const entries = [...own, ...tui] +// A grammar dropped from the table must not leave a stale generated query in git. +for (const file of new Bun.Glob("*/highlights.scm").scanSync(root)) + if (!entries.some((entry) => file === `${entry.filetype}/highlights.scm`)) await Bun.file(root + file).delete() +for (const entry of entries) await Bun.write(`${root}${entry.filetype}/highlights.scm`, translateLuaMatch(entry.query)) +const manifest = entries.map((entry) => ({ filetype: entry.filetype, aliases: entry.aliases, sources: entry.sources })) +await Bun.write(`${root}manifest.json`, JSON.stringify(manifest, null, 2) + "\n") +console.log(`grammars: ${tui.length} TUI and ${own.length} Core highlight queries`) + +// Core's cache first, as DownloadUtils.downloadOrLoad reads it: some sources follow a moving branch, and the cached +// copy is what TUI users highlight with. +async function load(url: string, filetype: string) { + const cached = Bun.file(`${cache}/${filetype}-${hashUrl(url)}.scm`) + if ((await cached.exists()) && cached.size > 0) return cached.text() + const response = await fetch(url) + if (!response.ok) throw new Error(`grammars: ${url}: ${response.status} ${response.statusText}`) + return response.text() +} + +// Convert only Lua patterns with an equivalent regex; keep unsupported predicates intact. +function translateLuaMatch(query: string) { + return query.replace( + /#(not-)?(any-)?lua-match\?(\s+@[\w.-]+\s+)"(\^?(?:(?:[\w/!:#.]|\[\^?(?:[\w*-]|%d)+\])[*+]?)*\$?)"/g, + (predicate, not = "", any = "", capture: string, pattern: string) => { + const digits = pattern.replaceAll("%d", "0-9") + try { + new RegExp(digits.replaceAll(".", "[^]")) + } catch { + return predicate + } + return `#${any}${not}match?${capture}"${digits.replaceAll(".", "(?s:.)")}"` + }, + ) +} + +// DownloadUtils.hashUrl. +function hashUrl(url: string) { + let hash = 0 + for (let i = 0; i < url.length; i++) hash = ((hash << 5) - hash + url.charCodeAt(i)) | 0 + return Math.abs(hash).toString(16) +} diff --git a/packages/cli-rs/script/gen/js-host.ts b/packages/cli-rs/script/gen/js-host.ts new file mode 100644 index 000000000000..890f8fd56c37 --- /dev/null +++ b/packages/cli-rs/script/gen/js-host.ts @@ -0,0 +1,115 @@ +// Bundles the JS plugin compatibility layer and the client-side Solid runtime it serves. +import path from "node:path" + +const root = new URL("../..", import.meta.url).pathname +const compat = path.join(root, "crates/plugin/src/pipe/compat") +await Bun.write(path.join(compat, "opentui.gen.ts"), await opentui()) +await Bun.write(path.join(compat, "events.gen.ts"), await events()) +const solid = path.dirname(Bun.resolveSync("solid-js/package.json", compat)) +// Solid's client build, not the server one the `bun` condition picks: plugins render with it. +const builds: Record<string, string> = { + "solid-js": path.join(solid, "dist/solid.js"), + "solid-js/store": path.join(solid, "store/dist/store.js"), + "solid-js/universal": path.join(solid, "universal/dist/universal.js"), +} +const result = await Bun.build({ + entrypoints: [path.join(compat, "index.ts")], + target: "bun", + format: "esm", + minify: true, + plugins: [ + { + name: "solid-client", + setup(build) { + build.onResolve({ filter: /^solid-js(\/store|\/universal)?$/ }, (args) => ({ path: builds[args.path]! })) + }, + }, + ], +}) +if (!result.success) { + for (const log of result.logs) console.error(log) + process.exit(1) +} +const text = await result.outputs[0]!.text() +const file = path.join(root, "crates/plugin/src/pipe/compat.js") +await Bun.write(file, `// Generated by script/gen/js-host.ts from crates/plugin/src/pipe/compat; do not edit.\n${text}`) +console.log(`js-host: compat.js ${(text.length / 1024).toFixed(0)} KiB`) + +async function opentui() { + const listed = async (name: string) => { + const module = await import(Bun.resolveSync(name, compat)) + const names = Object.keys(module).sort() + // A value crosses as data when it is plain (JSON with nothing dropped) and small; the others are names. + const values = Object.fromEntries( + names.flatMap((key) => { + const value = module[key] + if (typeof value === "function" || value === undefined) return [] + // Some exports are proxies that throw on a key they do not know (`env`): they are names. + const json = (() => { + try { + return plain(value) ? JSON.stringify(value) : undefined + } catch { + return undefined + } + })() + if (json === undefined || json.length > 2048) return [] + return [[key, value]] + }), + ) + return { names: names.filter((key) => !(key in values)), values } + } + const core = await listed("@opentui/core") + const module = await import(Bun.resolveSync("@opentui/core", compat)) + const filetypes = { extensions: [...module.extensionToFiletype], basenames: [...module.basenameToFiletype] } + const solid = await listed("@opentui/solid") + const { CliRenderer } = await import(Bun.resolveSync("@opentui/core", compat)) + const methods = new Set<string>() + for (let at = CliRenderer.prototype; at && at !== Object.prototype; at = Object.getPrototypeOf(at)) { + for (const key of Object.getOwnPropertyNames(at)) { + const descriptor = Object.getOwnPropertyDescriptor(at, key)! + if (key !== "constructor" && typeof descriptor.value === "function") methods.add(key) + } + } + // The methods its declarations say return a promise, which a stand-in answers with a resolved one. + const declared = await Bun.file(path.join(path.dirname(Bun.resolveSync("@opentui/core", compat)), "renderer.d.ts")).text() + const promised = [...declared.matchAll(/^\s+(\w+)\(.*\): Promise</gm)].map((match) => match[1]!) + // Inert implementations of async methods must still return a promise. + const root = path.dirname(Bun.resolveSync("@opentui/core", compat)) + const promises = new Set<string>() + for await (const file of new Bun.Glob("**/*.d.ts").scan({ cwd: root })) + for (const match of (await Bun.file(path.join(root, file)).text()).matchAll(/^\s+(\w+)\(.*\): Promise</gm)) + promises.add(match[1]!) + const header = + "// Generated by script/gen/js-host.ts from the installed @opentui/core and @opentui/solid; do not edit.\n" + const line = (name: string, value: unknown) => `export const ${name} = ${JSON.stringify(value)}\n` + return ( + header + + line("core", core) + + line("solid", solid) + + line("rendererMethods", [...methods].sort()) + + line("rendererPromises", promised.filter((name) => methods.has(name)).sort()) + + line("promises", [...promises].sort()) + + line("filetypes", filetypes) + ) +} + +// The event types a client may subscribe to (`EventSubscribeInput.types` of the generated client), which `data.listen` +// hears all of. +async function events() { + const types = await Bun.file(path.join(root, "../client/src/promise/generated/types.ts")).text() + const start = types.indexOf("export type EventSubscribeInput") + const union = types.slice(start, types.indexOf("export type", start + 1)) + const names = [...union.matchAll(/\| "([a-z0-9.-]+)"/g)].map((match) => match[1]!) + if (!names.length) throw new Error("no event types in EventSubscribeInput") + return ( + "// Generated by script/gen/js-host.ts from the generated client's EventSubscribeInput; do not edit.\n" + + `export const eventTypes = ${JSON.stringify(names)}\n` + ) +} + +function plain(value: unknown): boolean { + if (value === null || ["string", "number", "boolean"].includes(typeof value)) return true + if (Array.isArray(value)) return value.every(plain) + if (typeof value !== "object" || Object.getPrototypeOf(value) !== Object.prototype) return false + return Object.values(value as object).every(plain) +} diff --git a/packages/cli-rs/script/gen/keybinds.ts b/packages/cli-rs/script/gen/keybinds.ts new file mode 100644 index 000000000000..c358a65873d3 --- /dev/null +++ b/packages/cli-rs/script/gen/keybinds.ts @@ -0,0 +1,29 @@ +// Writes crates/ui/src/keymap/generated.rs from the TUI's keybind definitions: every name in definition order, +// its default as JSON text, and its description. +import { TuiKeybind } from "../../../tui/src/config/keybind" + +const entries = Object.entries(TuiKeybind.Definitions) +const lines = [ + "// Generated by script/gen/keybinds.ts from packages/tui/src/config/keybind.ts. Do not edit.", + "", + "/// A configurable keybind name: its default value as JSON text and its description.", + "pub struct Definition {", + " pub name: &'static str,", + " pub default: &'static str,", + " pub description: &'static str,", + "}", + "", + `pub const LEADER_DEFAULT: &str = ${JSON.stringify(TuiKeybind.LeaderDefault)};`, + "", + "pub const DEFINITIONS: &[Definition] = &[", + ...entries.map( + ([name, item]) => + ` Definition { name: ${JSON.stringify(name)}, default: ${JSON.stringify(JSON.stringify(item.default))}, description: ${JSON.stringify(item.description)} },`, + ), + "];", + "", +] + +const file = new URL("../../crates/ui/src/keymap/generated.rs", import.meta.url).pathname +await Bun.write(file, lines.join("\n")) +console.log(`keybinds: ${entries.length} definitions`) diff --git a/packages/cli-rs/script/gen/mime.ts b/packages/cli-rs/script/gen/mime.ts new file mode 100644 index 000000000000..852545f85655 --- /dev/null +++ b/packages/cli-rs/script/gen/mime.ts @@ -0,0 +1,19 @@ +// Generates the extension-to-MIME table used for `run -f` attachments. +import { createRequire } from "node:module" + +const require = createRequire(new URL("../../../util/package.json", import.meta.url).pathname) +const types: Record<string, string> = require("mime-types").types +const entries = Object.entries(types).toSorted(([a], [b]) => (a < b ? -1 : a > b ? 1 : 0)) +const lines = [ + "// Generated by script/gen/mime.ts from the `mime-types` package. Do not edit.", + "", + "/// `(extension, type)`, sorted by extension.", + "pub const TYPES: &[(&str, &str)] = &[", + ...entries.map(([extension, type]) => ` (${JSON.stringify(extension)}, ${JSON.stringify(type)}),`), + "];", + "", +] + +const file = new URL("../../crates/cli/src/run/mime.rs", import.meta.url).pathname +await Bun.write(file, lines.join("\n")) +console.log(`mime: ${entries.length} extensions`) diff --git a/packages/cli-rs/script/gen/plugin-schema.ts b/packages/cli-rs/script/gen/plugin-schema.ts new file mode 100644 index 000000000000..022ed1f81f58 --- /dev/null +++ b/packages/cli-rs/script/gen/plugin-schema.ts @@ -0,0 +1,13 @@ +// Generates the plugin contract schema from its Rust types. +import { format, resolveConfig } from "prettier" + +const root = new URL("../..", import.meta.url).pathname +const proc = Bun.spawnSync( + ["cargo", "run", "-q", "-p", "opencode-plugin-abi", "--example", "schema"], + { cwd: root, stdout: "pipe", stderr: "inherit" }, +) +if (proc.exitCode !== 0) process.exit(proc.exitCode ?? 1) +const file = new URL("../../crates/plugin-abi/schema/v2.json", import.meta.url).pathname +const text = proc.stdout.toString() +await Bun.write(file, await format(text, { ...(await resolveConfig(file)), parser: "json" })) +console.log(`plugin-schema: ${Object.keys(JSON.parse(text).$defs).length} definitions`) diff --git a/packages/cli-rs/script/gen/plugin-types-luau.ts b/packages/cli-rs/script/gen/plugin-types-luau.ts new file mode 100644 index 000000000000..5b426711ab82 --- /dev/null +++ b/packages/cli-rs/script/gen/plugin-types-luau.ts @@ -0,0 +1,587 @@ +// Writes crates/plugin/src/luau/opencode/plugin.luau: the types of a Luau plugin, as a stub of the module +// `@opencode/plugin` that luau-analyze and luau-lsp resolve through a `.luaurc` alias (a definitions file cannot type a +// `require`). Every definition of contract 2.0's schema (crates/plugin-abi/schema/v2.json, which plugin-schema.ts +// writes first) becomes an `export type`, so a Luau plugin's tables are the contract's own shapes; the module and the +// `setup`, `read`, `host` and `view` objects are written here by hand, as crates/plugin/src/luau/bind.rs binds them. +type Schema = { + $ref?: string + type?: string | string[] + enum?: (string | number | boolean | null)[] + const?: string | number | boolean + description?: string + properties?: Record<string, Schema> + required?: string[] + additionalProperties?: boolean | Schema + items?: Schema + prefixItems?: Schema[] + oneOf?: Schema[] + anyOf?: Schema[] + not?: Schema + allOf?: Schema[] +} + +const root = new URL("../..", import.meta.url).pathname +const schema = (await Bun.file(`${root}crates/plugin-abi/schema/v2.json`).json()) as { + $defs: Record<string, Schema> + "x-abi": { major: number; minor: number } +} +// The HTTP API's document, which the schema's references into `openapi.json` name (messages, sessions, models, events). +type Route = { + operationId: string + parameters?: Array<{ name: string; in: string; schema: Schema; required?: boolean }> + requestBody?: { content: Record<string, { schema: Schema }> } + responses: Record<string, { content?: Record<string, { schema: Schema }> }> +} +const openapi = (await Bun.file(`${root}../protocol/openapi.json`).json()) as { + components: { schemas: Record<string, Schema> } + paths: Record<string, Record<string, Route>> +} +const components = openapi.components.schemas + +// The operations `plugin.client` sends, as script/gen/api.ts writes them from the generated client: each input field's +// name, where it goes, whether it may be left out, and the Luau type of a field that is not the body's. +type Operation = { + method: string + path: string + fields: Array<[string, "params" | "query" | "headers" | "payload" | "wildcard", boolean, string | null]> + body: "object" | "json" | "bytes" | null + reply: "json" | "data" | "empty" | "binary" | "sse" +} +const operations = (await Bun.file(`${root}crates/plugin/src/luau/operations.json`).json()) as Record<string, Operation> + +// The HTTP API's schemas the stub writes, by the Luau name of each: what the contract's schema and the reads reach. +const reached = new Map<string, string>() + +// The Luau name of the API's schema `name` (`Session.Message.Info` is `SessionMessageInfo`), which the stub then +// writes, with everything it reaches. +function server(name: string) { + if (!components[name]) throw new Error(`plugin-types-luau: openapi.json has no schema ${name}`) + const joined = name + .split(/[^A-Za-z0-9]+/) + .filter(Boolean) + .map((part) => part[0].toUpperCase() + part.slice(1)) + .join("") + // The contract's own type keeps the plain name (`LocationRef`); the API's of that name is `ApiLocationRef`. + const luauName = schema.$defs[joined] ? `Api${joined}` : joined + const known = reached.get(luauName) + if (known !== undefined && known !== name) + throw new Error(`plugin-types-luau: ${known} and ${name} are both ${luauName}`) + reached.set(luauName, name) + return luauName +} + +// A reference into the API's document: a schema by name, or a part of one (`Tool/properties/id`), written in place. +function reference(fragment: string, indent: string): string { + const [name, ...rest] = fragment.replace(/^\/components\/schemas\//, "").split("/") + if (rest.length === 0) return server(name) + const part = rest.reduce<any>((at, step) => at?.[step.replace(/~1/g, "/").replace(/~0/g, "~")], components[name]) + if (!part) throw new Error(`plugin-types-luau: openapi.json has no ${fragment}`) + return luau(part, indent) +} + +// `{ not: {} }` holds no value: an alternative that never matches. +function never(schema: Schema) { + return schema.not !== undefined && Object.keys(schema.not).length === 0 +} + +// A schema with its reference into the API's document followed, to read its properties. +function resolved(schema: Schema): Schema { + const fragment = schema.$ref?.split("#")[1] + if (!fragment?.startsWith("/components/schemas/")) return schema + return resolved(components[fragment.slice("/components/schemas/".length)]) +} + +// `plugin.client`'s type: a table of namespaces by the operations' names (`session.inbox.list`), each operation a +// function of its input that returns its output or `nil` and the error. The input's path, query and header fields have +// the generated client's types (the OpenAPI document has their encoded forms); its body and the output have the +// document's, which are what goes over the wire. +function client(indent: string): string { + type Tree = { operation?: string; children: Map<string, Tree> } + const top: Tree = { children: new Map() } + for (const name of Object.keys(operations).toSorted()) { + const node = name.split(".").reduce((at, part) => { + if (!at.children.has(part)) at.children.set(part, { children: new Map() }) + return at.children.get(part)! + }, top) + node.operation = name + } + const write = (tree: Tree, at: string): string => { + const inner = `${at} ` + const lines = [...tree.children].map(([name, child]) => { + const type = child.children.size === 0 ? callable(child.operation!, inner) : write(child, inner) + return `${inner}${key(name)}: ${type},` + }) + const table = `{\n${lines.join("\n")}\n${at}}` + return tree.operation === undefined ? table : `(${callable(tree.operation, at)}) & ${table}` + } + return write(top, indent) +} + +// The function type of operation `name`. +function callable(name: string, indent: string): string { + const operation = operations[name] + const route = + openapi.paths[operation.path.replace(/:([A-Za-z_][A-Za-z0-9_]*)/g, "{$1}")]?.[operation.method.toLowerCase()] + // By method and path: a few groups are named otherwise in the document (the client's `file` is its `fs`). + if (!route) throw new Error(`plugin-types-luau: openapi.json has no ${operation.method} ${operation.path} (${name})`) + const body = route.requestBody?.content["application/json"]?.schema + const inner = `${indent} ` + const fields = operation.fields.map(([field, source, optional, type]) => { + const written = + source !== "payload" + ? type! + : operation.body === "bytes" + ? "string" + : operation.body === "json" + ? luau(body!, inner) + : luau(resolved(body!).properties![field], inner) + const bare = written.replace(/\?+$/, "") + return `${inner}${key(field)}: ${bare}${optional || bare !== written ? "?" : ""},` + }) + const input = fields.length === 0 ? "{}" : `{\n${fields.join("\n")}\n${indent}}` + const blank = operation.fields.every(([, , optional]) => optional) + const out = output(operation, route, indent) + return `(input: ${input}${blank ? "?" : ""}) -> (${out === "nil" ? out : `${out}?`}, string?)` +} + +// The output type of an operation: its reply's, or the reply's `data`. +function output(operation: Operation, route: Route, indent: string): string { + if (operation.reply === "empty" || operation.reply === "sse") return "nil" + if (operation.reply === "binary") return "string" + const status = Object.keys(route.responses).find((code) => code.startsWith("2"))! + const reply = route.responses[status].content?.["application/json"]?.schema + if (!reply) return "any" + const data = operation.reply === "data" ? resolved(reply).properties?.data : reply + if (!data) throw new Error(`plugin-types-luau: ${route.operationId} answers in data, which its reply lacks`) + const type = luau(data, indent) + return type.endsWith("?") + ? `(${type.slice(0, -1)})` + : type.includes("|") && !type.startsWith("(") + ? `(${type})` + : type +} + +// Luau's reserved words, which a table type names in brackets. +const reserved = new Set( + "and break do else elseif end false for function if in local nil not or repeat return then true until while".split( + " ", + ), +) + +function key(name: string) { + return /^[A-Za-z_][A-Za-z0-9_]*$/.test(name) && !reserved.has(name) ? name : `[${JSON.stringify(name)}]` +} + +function literal(value: string | number | boolean | null) { + if (value === null) return "nil" + return typeof value === "string" ? JSON.stringify(value) : typeof value === "boolean" ? String(value) : "number" +} + +function nullable(schema: Schema) { + return schema.type === "null" +} + +function union(types: string[]) { + const unique = [...new Set(types)] + return unique.length === 1 ? unique[0] : `(${unique.join(" | ")})` +} + +// The Luau type of `schema`, indented by `indent` for its nested table types. +function luau(schema: Schema, indent: string): string { + if (schema.$ref) { + if (schema.$ref.startsWith("#/$defs/")) return schema.$ref.slice("#/$defs/".length) + // `#/components/...` inside the API's document, `…/openapi.json#/components/...` from the contract's schema. + const fragment = schema.$ref.split("#")[1] + if (fragment?.startsWith("/components/schemas/")) return reference(fragment, indent) + throw new Error(`plugin-types-luau: a reference this writer does not follow: ${schema.$ref}`) + } + if (schema.const !== undefined) return literal(schema.const) + if (schema.enum) return union(schema.enum.map(literal)) + const alternatives = schema.oneOf ?? schema.anyOf + if (alternatives) { + const present = alternatives.filter((alternative) => !nullable(alternative) && !never(alternative)) + const type = union(present.map((alternative) => luau(alternative, indent))) + // `any` holds `nil` already, and `any?` as a read-write field is invariant: a table built in a local fails it. + return present.length < alternatives.length && type !== "any" ? `${type}?` : type + } + // Parenthesized, because Luau refuses `A & B` beside `|` in one type. + if (schema.allOf) { + const parts = schema.allOf.map((part) => luau(part, indent)) + return parts.length === 1 ? parts[0] : `(${parts.join(" & ")})` + } + const type = Array.isArray(schema.type) ? schema.type[0] : schema.type + switch (type) { + case "string": + return "string" + case "integer": + case "number": + return "number" + case "boolean": + return "boolean" + case "null": + return "nil" + case "array": { + const items = schema.items ?? (schema.prefixItems ? { anyOf: schema.prefixItems } : {}) + return `{ ${luau(items, indent)} }` + } + case "object": + case undefined: { + if (!schema.properties) { + if (typeof schema.additionalProperties === "object") + return `{ [string]: ${luau(schema.additionalProperties, indent)} }` + return type === "object" ? "{ [string]: any }" : "any" + } + return fields(schema.properties, new Set(schema.required ?? []), indent) + } + } + return "any" +} + +// A table type of `properties`, each optional unless `required` names it. +function fields( + properties: Record<string, Schema>, + required: Set<string>, + indent: string, + params?: Record<string, string>, +) { + const inner = indent + " " + const lines = Object.entries(properties).map(([name, field]) => { + const type = params?.[name] ?? luau(field, inner) + const optional = required.has(name) || type.endsWith("?") || type === "any" ? "" : "?" + return `${inner}${key(name)}: ${type}${optional},` + }) + return `{\n${lines.join("\n")}\n${indent}}` +} + +// What a helper's `props` may set: the fields of `schema` (or of its `oneOf` variant whose `type` is `kind`) but +// `omit`, all optional. +function props(schema: Schema, omit: string[], kind?: string) { + const variant = kind ? schema.oneOf?.find((variant) => variant.properties?.type?.const === kind) : schema + if (!variant?.properties) throw new Error(`plugin-types-luau: no ${kind ?? "object"} in the schema for the helpers`) + return fields( + Object.fromEntries(Object.entries(variant.properties).filter(([name]) => !omit.includes(name))), + new Set(), + "", + ) +} + +// The fields of `schema` (or of its `oneOf` variant whose `type` is `kind`) but `omit`, required as the schema says. +function shape(schema: Schema, omit: string[], kind?: string) { + const variant = kind ? schema.oneOf?.find((variant) => variant.properties?.type?.const === kind) : schema + if (!variant?.properties) throw new Error(`plugin-types-luau: no ${kind ?? "object"} in the schema for a dialog`) + return fields( + Object.fromEntries(Object.entries(variant.properties).filter(([name]) => !omit.includes(name))), + new Set(variant.required ?? []), + "", + ) +} + +function comment(text: string | undefined, indent = "") { + if (!text) return [] + return text.split("\n").map((line) => `${indent}--- ${line}`) +} + +const generated = Object.keys(schema.$defs) + .toSorted() + .flatMap((name) => [ + ...comment(schema.$defs[name].description), + `export type ${name} = ${luau(schema.$defs[name], "")}`, + "", + ]) + +// The reads, as `Read` and `Host` both carry them. `Host` repeats them with `self: Read` instead of being `Read & {…}`: +// one table type is a subtype of `Read` by width, where an intersection of method tables trips the solver. +const reads = ` themeMode: (self: Read) -> "dark" | "light", + color: (self: Read, token: string) -> Rgba?, + storageGet: (self: Read, key: string) -> any, + session: (self: Read, id: string) -> Session?, + sessions: (self: Read) -> { Session }, + family: (self: Read, id: string) -> Family, + messages: (self: Read, id: string) -> { ${server("Session.Message.Info")} }, + --- The inbox items of session \`id\` the server has not delivered yet, oldest first; empty while its inbox is not loaded. + pending: (self: Read, id: string) -> { ${server("Session.Inbox.Info")} }, + --- The models of \`location\`, or where the TUI works; \`nil\` while they are not loaded. + models: (self: Read, location: LocationRef?) -> { ${server("Model.Info")} }?, + --- The providers where the TUI works; \`nil\` while they are not loaded. + providers: (self: Read) -> { ${server("Provider.Info")} }?, + --- The OpenCode Console workspace's usage limits; \`nil\` while they are not loaded. + limits: (self: Read) -> ${server("UsageLimits.Info")}?, + model: (self: Read) -> ${server("Model.Ref")}?, + info: (self: Read) -> Info, + route: (self: Read) -> Route, + interactive: (self: Read) -> boolean, + shortcut: (self: Read, name: string) -> string?, + dialogOpen: (self: Read, key: string) -> boolean, + --- The pending key sequence, one entry a stroke; empty when none is pending. + keymapPending: (self: Read) -> { KeymapPending }, + composer: (self: Read) -> Composer?, + tabs: (self: Read) -> { Tab }, + --- Whether session tabs are on in this TUI. + tabsEnabled: (self: Read) -> boolean, + theme: (self: Read) -> string?, + themes: (self: Read) -> { string }, + selection: (self: Read) -> string?, + rect: (self: Read, id: string) -> NodeRect?, + focused: (self: Read) -> Focused, + mode: (self: Read) -> string?, + mount: (self: Read) -> MountId?, + setting: (self: Read, name: string) -> any, + plugins: (self: Read) -> { PluginEntry }, + --- The host's version and its optional features. + abi: (self: Read) -> Abi, + --- Whether the host has optional feature \`name\` (\`plugin.FOCUS_INPUT\`, \`plugin.FENCE_NODE\`). + hasFeature: (self: Read, name: string) -> boolean, + --- The seconds local time is east of UTC at \`at\`, in milliseconds since the epoch: it depends on the date. + utcOffset: (self: Read, at: number) -> number, + --- The cells \`text\` takes in a row and its graphemes, as the host draws it: pad and cut columns by it. + measure: (self: Read, text: string) -> Measure, +` + +// The module and the objects a plugin's calls are handed, as bind.rs binds them. +const api = `-- The plugin's objects ------------------------------------------------------------------------------------------- + +--- What a render or a view reads; every read of one call sees one store snapshot. +export type Read = { +${reads}} + +--- The version a host serves the plugin: its major, its minor of that major, and its optional features. +export type Abi = { major: number, minor: number, features: { string } } + +--- What a handler acts with: the reads, and effects, which wait until the outermost call returns. A render or a view +--- that calls an effect fails. The waiting calls (\`fetch\`, \`foreground\`, \`select\`, \`prompt\`, \`confirm\`, \`alert\`) park +--- the task that calls them and return its answer. +export type Host = { +${reads} storageSet: (self: Host, key: string, value: { [any]: any }) -> (), + storageMerge: (self: Host, key: string, fields: { [string]: any }) -> (), + dispatch: (self: Host, name: string, input: string?) -> (), + --- Enables or disables the plugin's own command \`name\`, once the call returns: a disabled command binds no key and + --- is in neither the palette nor the slash list. + setEnabled: (self: Host, name: string, enabled: boolean) -> (), + toast: (self: Host, toast: Toast) -> (), + attention: (self: Host, attention: Attention) -> (), + openRoute: (self: Host, name: string) -> (), + navigate: (self: Host, route: Route) -> (), + dialog: (self: Host, dialog: Dialog) -> (), + copy: (self: Host, text: string, thenAction: Action?) -> (), + editComposer: (self: Host, edit: ComposerEdit) -> (), + setTitle: (self: Host, title: string) -> (), + setVariant: (self: Host, variant: string?) -> boolean, + setModel: (self: Host, provider: string, model: string) -> (), + editTab: (self: Host, edit: TabEdit) -> boolean, + clearSelection: (self: Host) -> (), + setTheme: (self: Host, name: string) -> boolean, + setSetting: (self: Host, name: string, value: any) -> (), + scroll: (self: Host, target: Target, verb: Scroll) -> (), + openPanel: (self: Host, open: OpenPanel) -> (), + closePanel: (self: Host, surface: string) -> (), + overlay: (self: Host, overlay: Overlay) -> (), + closeOverlay: (self: Host, surface: string) -> (), + focus: (self: Host, id: string) -> (), + blur: (self: Host) -> (), + setMode: (self: Host, mode: string?) -> (), + releaseKeys: (self: Host) -> (), + --- Waits for the reply: its body (\`nil\` without one), or \`nil\` and the error, also when the host did not take + --- the request. Only a task waits (\`plugin.spawn\`). + fetch: (self: Host, fetch: Fetch) -> (any, string?), + --- Waits until the program exits: its exit code (\`nil\` when a signal ended it, which \`signal\` names), or \`nil\` + --- and why it did not start. + foreground: (self: Host, program: Foreground) -> ({ code: number?, signal: string? }?, string?), + --- Shows a select and waits: the value of the option picked, or \`nil\` when it closed without one. + select: (self: Host, select: SelectSpec) -> string?, + --- Shows a one-line prompt and waits: the text entered, or \`nil\` when it closed without one. + prompt: (self: Host, prompt: PromptSpec) -> string?, + --- Shows a confirm and waits: \`true\` or \`false\`, or \`nil\` when it closed without an answer. + confirm: (self: Host, confirm: ConfirmSpec) -> boolean?, + --- Shows an alert and waits until it closed. + alert: (self: Host, alert: AlertSpec) -> (), +} + +--- A select as \`host:select\` shows it: the contract's \`Select\` without its \`action\`. +export type SelectSpec = ${shape(schema.$defs.Select, ["action"])} + +--- A prompt as \`host:prompt\` shows it. +export type PromptSpec = ${shape(schema.$defs.Dialog, ["type", "action"], "prompt")} + +--- A confirm as \`host:confirm\` shows it: the contract's \`Confirm\` without its \`action\`. +export type ConfirmSpec = ${shape(schema.$defs.Confirm, ["action"])} + +--- An alert as \`host:alert\` shows it. +export type AlertSpec = ${shape(schema.$defs.Alert, ["action"])} + +--- A surface's view: what it reads, its input, and a memo that keeps a subtree while its value stays. +export type View = { + read: Read, + input: SurfaceInput, + memo: (self: View, key: string, value: any, build: (view: View) -> Node) -> Node, +} + +--- Where a slot claim goes; \`kind\` is \`append\` when left out. +export type At = { path: string, kind: SlotKind? } + +--- A command; only \`name\` is needed, the rest are the contract's defaults. +export type CommandSpec = { name: string, title: string?, palette: boolean?, group: string?, slash: string?, keybind: string?, description: string?, arguments: boolean?, scope: Scope?, enabled: boolean? } + +--- A surface as \`setup:surface\` takes it. +export type SurfaceSpec = { name: string, place: SurfacePlace, layers: { Layer }?, mounts: boolean?, palette: boolean? } + +--- What setup registers on; each method holds only while setup runs. A handler given a \`host\` (a command's, an +--- event's, a mount's, a layer's or a surface's) runs as a task, so it may wait; a key handler that waits has taken its +--- key. A command that returns \`"pass"\` declines the key that ran it, which goes on to whatever else takes it. +--- Renders, views, code blocks and \`onDispose\` read only and cannot wait. +export type Setup = { + id: string, + --- The \`options\` of the plugin's \`plugins\` entry, decoded. + options: any, + host: Host, + storageKey: (self: Setup, key: string) -> (), + command: (self: Setup, command: CommandSpec, run: (host: Host, input: string?) -> ...("pass")) -> (), + slot: (self: Setup, at: At, render: (read: Read, input: SlotInput, changed: Changed) -> Render?) -> (), + --- Calls \`run\` as the host mounts the claim registered last at \`at\` (\`true\`, before it first renders) and as it + --- unmounts it (\`false\`). + onMount: (self: Setup, at: At, run: (host: Host, input: SlotInput, mounted: boolean) -> ()) -> (), + route: (self: Setup, name: string, render: (read: Read, changed: Changed) -> Render?) -> (), + onRouteMount: (self: Setup, name: string, run: (host: Host, mounted: boolean) -> ()) -> (), + codeBlock: (self: Setup, language: string, render: (read: Read, fence: Fence) -> Fenced?) -> (), + --- \`event\` is one of the API's events, a union tagged by \`type\`: \`if event.type == "…" then\` narrows it. + onEvent: (self: Setup, types: { string }, run: (host: Host, event: ${server("V2Event")}) -> ()) -> (), + onDispose: (self: Setup, run: (host: Host) -> ()) -> (), + layer: (self: Setup, layer: Layer, handler: (host: Host, event: InputEvent) -> Handled?) -> (), + surface: (self: Setup, surface: SurfaceSpec, view: (view: View) -> Node, handler: ((host: Host, event: InputEvent) -> Handled?)?) -> (), +} + +--- The style \`plugin.span\` adds to a span's text. +export type SpanStyle = ${props(schema.$defs.Span, ["text"])} + +--- The fields \`plugin.text\` adds to a text node. +export type TextProps = ${props(schema.$defs.Node, ["type", "spans"], "text")} + +--- The fields \`plugin.column\` and \`plugin.row\` add to a box. +export type BoxProps = ${props(schema.$defs.Node, ["type", "row", "children"], "box")} + +--- The API's operations, by the generated client's names: \`plugin.client.session.inbox.list({ sessionID = id })\` waits, +--- as \`host:fetch\` does, and returns the operation's output (the reply's \`data\` where it answers in \`data\`) or \`nil\` +--- and the error. Only a task can call one. +export type Client = ${client("")} + +--- \`require("@opencode/plugin")\`. +export type Plugin = { + contract: string, + client: Client, + IMAGE_BOUNDS: string, + FOCUS_INPUT: string, + FENCE_NODE: string, + KEEP: Render, + HIDE: Render, + define: (setup: (setup: Setup) -> ()) -> any, + span: (text: string, style: SpanStyle?) -> Span, + text: (content: string | { Span }, props: TextProps?) -> Node, + column: (children: { Node }, props: BoxProps?) -> Node, + row: (children: { Node }, props: BoxProps?) -> Node, + --- A slot or route render of \`node\`; the host draws it with the node kinds a render takes (box, text, slot, + --- markdown and spinner). + show: (node: Node) -> Render, + command: (name: string, input: string?) -> Action, + click: (name: string, input: string?) -> Click, + --- Starts \`f(...)\` as a task of its own, from a handler, a task or setup; it runs until it ends or waits. + spawn: (f: (...any) -> ...any, ...any) -> (), + --- Runs each function as a task and waits until all ended: their values in order, or \`nil\` and the error of the + --- first that returned one. Only a task waits. + all: (fns: { () -> (any, any) }) -> ({ any }?, any), + --- JSON with the host's reader and writer, under the bounds of any value a plugin hands the host. + json: Json, + --- Sorts \`list\` in place by \`less\` (\`a < b\` when left out) and returns it; equal items keep their order. + sort: <T>(list: { T }, less: ((T, T) -> boolean)?) -> { T }, + --- Waits \`ms\` milliseconds on the host's clock, at least 20 and a part of one kept (\`math.huge\` waits for ever): + --- \`true\`, or \`nil\` and why the host took no timer (32 of the plugin wait) or cancelled it (\`"cancelled"\`). Only + --- a task waits. + sleep: (ms: number) -> (boolean?, string?), + --- Runs \`f(host)\` every \`ms\` milliseconds in a task of its own, until \`f\` returns \`false\` or a sleep fails. + --- Started from a mount's handler, it is that mount's and ends when the mount closes. + every: (ms: number, f: (host: Host) -> boolean?) -> (), +} + +--- \`plugin.json\`. A table is a JSON array when its keys are \`1..n\` (an empty table is one), an object otherwise, and a +--- table with the object marker is an object whatever its keys; a table the host builds from JSON carries its marker. +export type Json = { + --- JSON's \`null\` where a table must hold it: what \`decode\` gives with \`{ null = true }\`. + null: any, + --- \`text\` as a value and \`nil\`, or \`nil\` and why. A \`null\` field is left out and a \`null\` item is \`null\`; with + --- \`{ null = true }\` every \`null\` is \`null\`. + decode: (text: string, options: { null: boolean? }?) -> (any, string?), + --- The JSON text of \`value\`: an object's keys in byte order (a number key as its text), an array's items in order, + --- the same in every VM. \`pairs\` walks a table in no set order, which differs from VM to VM. + encode: (value: any) -> string, + --- Whether table \`t\` goes to JSON as an array. + isArray: (t: { [any]: any }) -> boolean, + --- Marks \`t\` an array, and returns it: an empty one goes as \`[]\`. + array: <T>(t: T) -> T, + --- Marks \`t\` an object, and returns it: an empty one goes as \`{}\`. + object: <T>(t: T) -> T, +} +` + +const header = `--!strict +-- OpenCode plugin contract ${schema["x-abi"].major}.${schema["x-abi"].minor}: the types of a Luau plugin, as the module \`@opencode/plugin\`. +-- Generated from crates/plugin-abi/schema/v2.json by \`bun run generate\` (script/gen/plugin-types-luau.ts). Do not edit. +-- +-- The host registers the real module; this file only types it for luau-analyze and luau-lsp. Point the alias +-- \`opencode\` at this directory in a \`.luaurc\` beside your plugin or above it: +-- { "languageMode": "strict", "aliases": { "opencode": "<path to crates/plugin/src/luau/opencode>" } } +-- then \`luau-analyze --formatter=gnu <your .luau files>\` or open the plugin in luau-lsp. At run time the host keeps +-- \`@opencode\` its own whatever a \`.luaurc\` says, and reads no \`.luaurc\` outside the plugin. Require your own modules +-- by Luau's rules: \`@self/x\` in \`init.luau\`, \`./x\` in the other modules. +-- +-- A handler that acts is a task: \`local ok = host:confirm({ ... })\` and \`local body, err = host:fetch({ ... })\` wait in +-- a straight line, and the plugin goes on with other calls meanwhile. A fetch its mount asked for, when that mount +-- closes before the reply, returns \`nil, "cancelled"\` once: the host cancelled the request. A task keeps the owner of +-- the handler that started it: what it asks for after a wait is still that mount's, or the activation's. +-- \`plugin.sleep\` and \`plugin.every\` keep time on the host's clock, with no thread. + +-- The contract's definitions ---------------------------------------------------------------------------------------- +` + +const footer = ` +local plugin: Plugin = nil :: any +return plugin +` + +// The API's schemas the contract and the reads reached, and what those reach in turn, by Luau name. +const envelopes = new Map<string, string>() +function apiType(source: Schema) { + const props = source.properties + if (props?.id?.$ref !== "#/components/schemas/Event.ID" || !props.type?.enum || !props.data) return luau(source, "") + const required = new Set(source.required) + if (!required.has("type") || !required.has("data")) return luau(source, "") + // Match the whole table, not just its field names: durable versions and optional fields differ. + const shape = fields(props, required, "", { type: "Kind", data: "Payload" }) + const name = envelopes.get(shape) ?? `_Event${envelopes.size + 1}` + envelopes.set(shape, name) + return `${name}<${luau(props.type, "")}, ${luau(props.data, "")}>` +} + +const written = new Map<string, string>() +for ( + let pending = [...reached.keys()]; + pending.length > 0; + pending = [...reached.keys()].filter((name) => !written.has(name)) +) + for (const name of pending) { + const source = reached.get(name)! + written.set( + name, + [...comment(components[source].description), `export type ${name} = ${apiType(components[source])}`, ""].join( + "\n", + ), + ) + } +const served = [ + ...[...envelopes].map(([shape, name]) => `type ${name}<Kind, Payload> = ${shape}\n`), + ...[...written.keys()].toSorted().map((name) => written.get(name)!), +] + +const file = `${root}crates/plugin/src/luau/opencode/plugin.luau` +await Bun.write( + file, + `${header}\n${generated.join("\n")}\n-- The HTTP API's types (packages/protocol/openapi.json) ${"-".repeat(57)}\n\n${served.join("\n")}\n${api}${footer}`, +) +console.log(`plugin-types-luau: ${Object.keys(schema.$defs).length} definitions, ${written.size} of the API's schemas`) diff --git a/packages/cli-rs/script/gen/structured-patch.ts b/packages/cli-rs/script/gen/structured-patch.ts new file mode 100644 index 000000000000..19bfce4dfe5e --- /dev/null +++ b/packages/cli-rs/script/gen/structured-patch.ts @@ -0,0 +1,83 @@ +// Records jsdiff's structured patch hunk ranges for the ACP diff tests. +import { createRequire } from "node:module" + +const require = createRequire(new URL("../../../cli/package.json", import.meta.url).pathname) +const jsdiff: { + structuredPatch: ( + oldName: string, + newName: string, + old: string, + next: string, + ) => { hunks: { oldStart: number; oldLines: number; newStart: number; newLines: number }[] } +} = require("diff") + +const numbered = (count: number, change: (n: number) => string | undefined = () => undefined) => + Array.from({ length: count }, (_, k) => change(k + 1) ?? `${k + 1}\n`).join("") + +const table: [string, string][] = [ + ["", ""], + ["", "a\n"], + ["a\n", ""], + ["a\n", "a\n"], + ["a", "a\n"], + ["a\n", "a"], + ["a\nb", "a\nc"], + ["a\r\nb\r\n", "a\nb\n"], + ["a\r\nb\r\n", "a\r\nc\r\n"], + ["a\rb\n", "a\rc\n"], + ["\n\n\n", "\n\n"], + ["a\nb\nc\n", "a\nB\nc\n"], + ["a\nb\nc\n", "c\nb\na\n"], + ["a\nb\na\nb\n", "b\na\nb\na\n"], + ["x\nx\nx\n", "x\nx\n"], + ["a\nx\nb\n", "a\nb\nx\n"], + [numbered(20), numbered(20, (n) => (n === 2 ? "two\n" : n === 19 ? "nineteen\n" : undefined))], + [numbered(30), numbered(30, (n) => (n === 5 || n === 14 ? `${n}!\n` : undefined))], + [numbered(30), numbered(30, (n) => (n === 5 || n === 13 ? `${n}!\n` : undefined))], + [numbered(30), numbered(30, (n) => (n === 5 || n === 15 ? `${n}!\n` : undefined))], + [numbered(12), numbered(12, (n) => (n === 1 || n === 12 ? "" : undefined))], + [numbered(12), "0\n" + numbered(12) + "13\n"], + [numbered(9), numbered(9, (n) => (n === 5 ? "" : undefined))], +] + +// mulberry32 +let seed = 0x5eed +const random = () => { + seed = (seed + 0x6d2b79f5) | 0 + let t = Math.imul(seed ^ (seed >>> 15), 1 | seed) + t = (t + Math.imul(t ^ (t >>> 7), 61 | t)) ^ t + return ((t ^ (t >>> 14)) >>> 0) / 4294967296 +} +const pick = <T>(items: T[]) => items[Math.floor(random() * items.length)]! +const words = ["a", "b", "c", "d", "", " x", "long line"] +const text = (lines: string[]) => { + const ending = random() < 0.15 ? "\r\n" : "\n" + const joined = lines.join(ending) + return lines.length > 0 && random() < 0.8 ? joined + ending : joined +} +const randomCases = Array.from({ length: 400 }, (): [string, string] => { + const old = Array.from({ length: Math.floor(random() * 30) }, () => pick(words)) + // Mostly edits of the old text, so hunks have context; sometimes an unrelated text. + const next = + random() < 0.2 + ? Array.from({ length: Math.floor(random() * 30) }, () => pick(words)) + : old.flatMap((line) => { + const roll = random() + if (roll < 0.08) return [] + if (roll < 0.16) return [pick(words)] + if (roll < 0.22) return [line, pick(words)] + return [line] + }) + return [text(old), text(next)] +}) + +const ranges = (old: string, next: string) => + jsdiff + .structuredPatch("a", "a", old, next) + .hunks.map((hunk) => `${hunk.oldStart},${hunk.oldLines},${hunk.newStart},${hunk.newLines}`) + .join(" ") +const cases = [...table, ...randomCases].map(([old, next]) => [old, next, ranges(old, next)]) + +const file = new URL("../../crates/acp/src/permission/structured_patch.json", import.meta.url).pathname +await Bun.write(file, JSON.stringify(cases, null, 0).replaceAll("],[", "],\n[") + "\n") +console.log(`structured-patch: ${cases.length} cases`) diff --git a/packages/cli-rs/script/gen/themes.ts b/packages/cli-rs/script/gen/themes.ts new file mode 100644 index 000000000000..b10aa003c6fe --- /dev/null +++ b/packages/cli-rs/script/gen/themes.ts @@ -0,0 +1,22 @@ +// Writes crates/ui/src/theme/generated/themes.json: every built-in theme as the V2 document the TypeScript TUI +// resolves under the `new-designs` experiment, so the Rust resolver starts from the same documents. V1 themes are +// migrated here, once per migration: `mini` is the `migrateV1` document, as mini parses without the experiment. +import { DEFAULT_THEMES, getOpenCodeClassicTheme, getOpenCodeTheme, parseTheme } from "../../../tui/src/theme/index.ts" + +const output = new URL("../../crates/ui/src/theme/generated/themes.json", import.meta.url).pathname + +// The order of the theme context's list (`allThemes`): the V1 defaults, opencode, then opencode-classic. +const themes = [ + ...Object.entries(DEFAULT_THEMES).map(([name, source]) => ({ + name, + document: parseTheme(source, name, { newDesigns: true }), + mini: parseTheme(source, name), + })), + { name: "opencode", document: getOpenCodeTheme() }, + { name: "opencode-classic", document: getOpenCodeClassicTheme() }, +] + +// One theme per line keeps the committed file small and its diffs readable. +const lines = themes.map((theme) => JSON.stringify(theme)).join(",\n") +await Bun.write(output, `{"themes":[\n${lines}\n]}\n`) +console.log(`themes: wrote ${themes.length} themes to ${output}`) diff --git a/packages/cli-rs/script/gen/time.ts b/packages/cli-rs/script/gen/time.ts new file mode 100644 index 000000000000..cda38f082e7d --- /dev/null +++ b/packages/cli-rs/script/gen/time.ts @@ -0,0 +1,244 @@ +// Writes crates/util/fixtures/time.tsv: what the TypeScript client's `Date` and `Intl` calls give under Bun, in five +// time zones, for the known-answer tests of opencode-util's `time` module. Each zone runs in a child process with `TZ` +// set, as the client reads it. Rows are `kind input output...`, tab-separated. The `parse` rows come first, then a +// `zone` line starts each zone's other rows: +// +// - `parse text`: `Date.parse(text)` (`refusalReset`, the date-time form check) in each zone, in the order of +// `zones`, `NaN` if rejected, and the date form check `validDate` (1 or 0), which reads no zone. +// - `at ms`: `toLocaleString()` (session list and export), `toDateString()` (session list, free limit), +// `toLocaleDateString()` and `toLocaleTimeString(undefined, { timeStyle: "short" })` (`Locale.datetime`, +// `Locale.time`), `formatReset`'s time and day (usage-limits.ts), `getHours()`, `getMinutes()`, `getDay()`, and the +// local day number activity-calendar.ts takes; `invalid` for an Invalid Date. +// - `iso ms`: `toISOString()`, or `invalid` where it throws. +// - `days n`: the UTC year, month, day and weekday of `n * 86_400_000`. +// - `wall y m d h:mm=ms...`: `new Date(y, m - 1, d, h, mm).getTime()` for each time of one date, as stats takes +// local midnights. +const zones = ["UTC", "America/New_York", "Australia/Lord_Howe", "Asia/Kathmandu", "America/Havana"] + +if (process.argv[2] === "--zone") { + process.stdout.write(rows(process.argv[3]).join("\n") + "\n") + process.exit(0) +} + +const file = new URL("../../crates/util/fixtures/time.tsv", import.meta.url).pathname +const sections = zones.map((zone) => { + const proc = Bun.spawnSync(["bun", "run", import.meta.path, "--zone", zone], { + env: { ...process.env, TZ: zone }, + stderr: "inherit", + }) + if (proc.exitCode !== 0) process.exit(proc.exitCode ?? 1) + return proc.stdout.toString().trimEnd().split("\n") +}) +// Each zone writes `parse text ms valid`; join them into one row per text. +const parses = sections.map((rows) => rows.filter((row) => row.startsWith("parse\t")).map((row) => row.split("\t"))) +const lines = [ + "# Generated by script/gen/time.ts under Bun " + Bun.version + ". Do not edit.", + ...parses[0].map((row, at) => { + const same = parses.every((rows) => rows[at][1] === row[1] && rows[at][3] === row[3]) + if (!same) throw new Error(`parse rows differ between zones at ${row[1]}`) + return ["parse", row[1], ...parses.map((rows) => rows[at][2]), row[3]].join("\t") + }), + ...zones.flatMap((zone, at) => [`zone\t${zone}`, ...sections[at].filter((row) => !row.startsWith("parse\t"))]), +] +await Bun.write(file, lines.join("\n") + "\n") +console.log(`time: ${lines.join("\n").split("\n").length - 1} lines`) + +function rows(zone: string) { + const out: string[] = [] + const row = (...fields: (string | number)[]) => out.push(fields.join("\t")) + + const day = 86_400_000 + // Kathmandu's 1986 midnight gap, both sides of the US rule change in 2007, + // and current gaps and folds (including Lord Howe's half hour). + const transitions = [ + ...changes(Date.UTC(1985, 6), Date.UTC(1986, 6)), + ...changes(Date.UTC(2006, 0), Date.UTC(2008, 0)), + ...changes(Date.UTC(2025, 0), Date.UTC(2027, 0)), + ] + const instants = new Set<number>([ + ...range(Date.UTC(1900, 0, 1), Date.UTC(2100, 0, 1), 40 * (151 * day + 3_600_123)), + ...range(Date.UTC(2025, 0, 1), Date.UTC(2026, 0, 1), 12 * (day + 7 * 3_600_000 + 61_007)), + ...transitions.flatMap((at) => [at - 1, at, at + 1_800_000]), + ...[0, -1, 1, 999, -999, -1000, -1001, 1_762_268_645_123], + ...[253_402_300_799_999, 253_402_300_800_000, -62_167_219_200_000, -62_167_219_200_001, -62_198_755_200_000], + ...[8.64e15, -8.64e15, 8.64e15 + 1, -8.64e15 - 1], + ]) + for (const ms of [...instants].sort((a, b) => a - b)) { + const date = new Date(ms) + if (Number.isNaN(date.getTime())) { + row("at", ms, "invalid") + continue + } + row( + "at", + ms, + date.toLocaleString(), + date.toDateString(), + date.toLocaleDateString(), + date.toLocaleTimeString(undefined, { timeStyle: "short" }), + date.toLocaleTimeString("en-US", { hour: "numeric", minute: "2-digit" }).replace(/\u202f/g, " "), + date.toLocaleDateString("en-US", { month: "short", day: "numeric" }), + date.getHours(), + date.getMinutes(), + date.getDay(), + Date.UTC(date.getFullYear(), date.getMonth(), date.getDate()) / day, + ) + } + + if (zone === "UTC") { + for (const ms of instants) { + const date = new Date(ms) + row("iso", ms, Number.isNaN(date.getTime()) ? "invalid" : date.toISOString()) + } + for (const n of [...range(-100_000_000, 100_000_001, 50 * 199_999), -1, 0, 1, 59, 60, 11_016, -719_468, -719_469]) { + const date = new Date(n * day) + row("days", n, date.getUTCFullYear(), date.getUTCMonth() + 1, date.getUTCDate(), date.getUTCDay()) + } + } + + // Ordinary midnights and the dates on either side of each transition. On current transition days and in + // Kathmandu's 15-minute gap, check the whole wall clock, including its missing or ambiguous readings. + const walls = new Map<string, Set<number>>() + const wall = (year: number, month: number, dom: number, minutes: number) => { + const key = `${year}\t${month}\t${dom}` + walls.set(key, (walls.get(key) ?? new Set()).add(minutes)) + } + for (const year of [1900, 1970, 2000, 2038, 2100]) wall(year, 1, 1, 0) + for (let month = 1; month <= 12; month++) wall(2025, month, 1, 0) + for (const at of transitions) { + for (const shift of [-day, 0, day]) { + const date = new Date(at + shift) + const [year, month, dom] = [date.getFullYear(), date.getMonth() + 1, date.getDate()] + wall(year, month, dom, 0) + if (shift !== 0 || (year !== 2025 && year !== 2026 && zone !== "Asia/Kathmandu")) continue + for (let minutes = 0; minutes < 1440; minutes += 5) wall(year, month, dom, minutes) + } + } + for (const [date, minutes] of walls) { + const [year, month, dom] = date.split("\t").map(Number) + const times = [...minutes] + .sort((a, b) => a - b) + .map((at) => { + const [hour, minute] = [Math.floor(at / 60), at % 60] + return `${hour}:${String(minute).padStart(2, "0")}=${new Date(year, month - 1, dom, hour, minute).getTime()}` + }) + row("wall", date, ...times) + } + + for (const text of texts()) { + const at = Date.parse(text) + row("parse", JSON.stringify(text), Number.isNaN(at) ? "NaN" : at, validDate(text) ? 1 : 0) + } + return out +} + +// The first instant of each change of offset between `from` and `to`. +function changes(from: number, to: number) { + const offset = (ms: number) => new Date(ms).getTimezoneOffset() + const found: number[] = [] + for (let at = from; at < to; at += 3_600_000) { + if (offset(at) === offset(at + 3_600_000)) continue + let [low, high] = [at, at + 3_600_000] + while (high - low > 1) { + const middle = Math.floor((low + high) / 2) + if (offset(middle) === offset(low)) low = middle + else high = middle + } + found.push(high) + } + return found +} + +function range(from: number, to: number, step: number) { + return Array.from({ length: Math.ceil((to - from) / step) }, (_, index) => from + index * step) +} + +function validDate(value: string) { + if (!/^\d{4}-\d{2}-\d{2}$/.test(value)) return false + const date = new Date(`${value}T00:00:00.000Z`) + return !Number.isNaN(date.getTime()) && date.toISOString().slice(0, 10) === value +} + +function texts() { + const fixed = [ + "2026-11-04T15:30:00Z", + "2026-11-04t15:30:00z", + "2026-11-04 15:30:00+05:45", + "2026-11-04T15:30:00\u221203:30", + "2026-11-04T15:30:00-23:59", + "2026-11-04T15:30:00+24:00", + "2026-11-04T15:30:00+05:60", + "2026-11-04T15:30:00+0545", + "2026-11-04T15:30:00+05", + "2026-11-04T15:30:00+05:45 ", + "2026-11-04T15:30:00", + "2026-11-04T15:30:00.Z", + "2026-11-04T15:30:00.5Z", + "2026-11-04T15:30:00.123456789123Z", + "2026-11-04T15:30:00.999999999+01:00", + "2016-12-31T23:59:60Z", + "2016-12-31T23:59:60.5Z", + "2016-12-31T23:59:61Z", + "2026-02-29T00:00:00Z", + "2024-02-29T00:00:00Z", + "0000-01-01T00:00:00Z", + "9999-12-31T23:59:59.999Z", + "2026-11-04T24:00:00Z", + "2026-11-04T23:60:00Z", + "2026-11-04X15:30:00Z", + "2026/11/04T15:30:00Z", + "+2026-11-04T15:30:00Z", + " 2026-11-04T15:30:00Z", + "2026-1-04T15:30:00Z", + "2026-11-04T15:30Z", + "2026-11-04", + "2026-11-04T15:30", + "2026-11-04T15:30:00.123", + "2026-11-04T15:30:00.1234567890", + "2026-11-04T15:30:00.", + "2026-11-04 15:30:00", + "2026-11-04 15:30:00", + "2026-11-04\t15:30:00", + "2026-11-04\u300015:30:00", + "2026-11-04T1:2", + "2026-11-04T 1: 2", + "2026-11-04T15:30:60", + "2026-11-04T15:30:60.25", + "2026-11-04t15:30", + "2026-2-3", + " 2026-02-03", + "2026-02-03 ", + "2026- 2- 3", + "+2026-02-03", + "-0001-02-03", + "12026-01-01", + "+12026-01-01", + "-262144-01-01", + "+99999999999999999999-01-01", + "2023-02-29", + "2024-02-29", + "0000-01-01", + "", + "2026", + "2026-11-04T15:30:00Zjunk", + "2026-11-04T15:30:00.12Z\u00e9", + "2026-11-04T15:30:0\u00e9Z", + "2025-03-09T02:30:00", + "2025-11-02T01:30:00", + ] + const generated = range(Date.UTC(1900, 0, 1), Date.UTC(2100, 0, 1), 2_011 * 86_400_000 + 3_723_456) + .concat([0, -1, 1_735_689_600_000]) + .flatMap((ms) => { + const iso = new Date(ms).toISOString() + return [ + iso, + iso.replace("T", " ").replace("Z", "+05:45"), + iso.replace(".", ".5").replace("Z", "-03:30"), + iso.replace(/Z$/, ""), + iso.slice(0, 16), + iso.slice(0, 19).replace("T", " "), + iso.slice(0, 10), + ] + }) + return [...fixed, ...generated] +} diff --git a/packages/cli-rs/script/generate.ts b/packages/cli-rs/script/generate.ts new file mode 100644 index 000000000000..41407522cb6f --- /dev/null +++ b/packages/cli-rs/script/generate.ts @@ -0,0 +1,10 @@ +// Runs every generator in script/gen in name order. Each writes its own output under crates/. +const root = new URL("..", import.meta.url).pathname +const scripts = Array.from(new Bun.Glob("script/gen/*.ts").scanSync({ cwd: root })).sort() + +for (const script of scripts) { + console.log(`generate: ${script}`) + const proc = Bun.spawnSync(["bun", "run", script], { cwd: root, stdout: "inherit", stderr: "inherit" }) + if (proc.exitCode !== 0) process.exit(proc.exitCode ?? 1) +} +if (scripts.length === 0) console.log("generate: no generators in script/gen") diff --git a/packages/cli-rs/script/lint-windows.sh b/packages/cli-rs/script/lint-windows.sh new file mode 100644 index 000000000000..46d02873d420 --- /dev/null +++ b/packages/cli-rs/script/lint-windows.sh @@ -0,0 +1,89 @@ +#!/bin/sh +# Finds code that is right on Unix and wrong on Windows, before the preview's Windows runner does. Each rule is a +# pattern that failed there: on Windows the paths the client finds use `\`, and `/x` has no drive. +# +# join-text `.join("a/b")` turned into text in the same expression: `to_string_lossy()`, `to_str()`, or +# `display()` on a line that builds a string with `format!` (a message to a person is no comparison). +# join-let `let x = ….join("a/b")…;` and, later in the same function, `x` (or `x.join(…)`) turned into text so. +# unix-abs an `OPENCODE_*` variable set to a literal Unix absolute path (`.env`, `set_var`, `"OPENCODE_X" =>`). +# +# A deliberate exception carries `// windows-lint: allow <reason>` on the line or the line above it. A file that is +# `#![cfg(unix)]` as a whole is not read, and neither is a function gated to Unix (`#[cfg(unix)]`, +# `#[cfg(target_os = "linux")]` and the like). Usage: sh script/lint-windows.sh [path...] (default: crates). +set -eu + +here=$(CDPATH='' cd -- "$(dirname -- "$0")/.." && pwd) +cd -- "$here" +[ $# -gt 0 ] || set -- crates + +# A string argument with a `/`: a literal, or a format! whose template has one. +slash='(?:"[^"]*/[^"]*"|format!\("[^"]*/[^"]*"(?:[^()]|\([^()]*\))*\))' +join_text="\\.join\\($slash\\)(?:\\.join\\((?:[^()]|\\([^()]*\\))*\\))*\\.(?:to_string_lossy|to_str|display)\\(\\)" +join_let="^\\s*let (?:mut )?([a-z_][a-z0-9_]*) = [^;]*\\.join\\($slash\\)" +unix_abs='(?:\.env|set_var)\("OPENCODE_[A-Z0-9_]+",\s*"/|"OPENCODE_[A-Z0-9_]+"\s*=>\s*Some\("/' + +report=$( + rg -lP --type rust "$join_text|$join_let|$unix_abs" "$@" | sort | while read -r file; do + head -n 5 "$file" | grep -q '^#!\[cfg(unix)\]' && continue + # rg finds the lines of each rule; awk applies the binding's scope and the allows. + { + rg -nP --no-heading "$join_text" "$file" | sed 's/^\([0-9]*\):.*/join-text \1 -/' || true + rg -nP --no-heading "$unix_abs" "$file" | sed 's/^\([0-9]*\):.*/unix-abs \1 -/' || true + rg -nP --no-heading -o -r '$1' "$join_let" "$file" | sed 's/^\([0-9]*\):\(.*\)/join-let \1 \2/' || true + } | awk -v file="$file" ' + BEGIN { while ((getline line < file) > 0) source[++lines] = line } + function allowed(at) { + return source[at] ~ /windows-lint: allow/ || (at > 1 && source[at - 1] ~ /windows-lint: allow/) + } + function is_fn(line) { return line ~ /^[ \t]*(pub(\([a-z]+\))? )?(async )?(unsafe )?fn / } + # Whether the function around line `at` is gated to Unix by an attribute above it. + function unix_only(at, i) { + for (i = at; i > 0 && !is_fn(source[i]); i--) {} + for (i--; i > 0 && source[i] ~ /^[ \t]*(#\[|\/\/)/; i--) { + if (source[i] ~ /#\[cfg\((unix|not\(windows\)|target_os = "(linux|macos)"|any\(target_os = "(linux|macos)")/) return 1 + } + return 0 + } + # Whether line `at` turns `value` into text that is compared, not shown: `display()` counts only in a format!. + function compared(at, value) { + if (source[at] ~ (value "\\.(to_string_lossy|to_str)\\(\\)")) return 1 + return source[at] ~ (value "\\.display\\(\\)") && source[at] ~ /format!\(/ + } + # The line where binding `name`, made at line `at`, is turned into text before the next `fn` item; 0 if none. + function as_text(name, at, i, value) { + value = "(^|[^A-Za-z0-9_.])" name "(\\.join\\([^;]*\\))?" + for (i = at + 1; i <= lines; i++) { + if (is_fn(source[i])) return 0 + if (compared(i, value)) return i + } + return 0 + } + { + rule = $1; at = $2 + 0; name = $3 + if (allowed(at) || unix_only(at)) next + if (rule == "join-text" && !compared(at, "")) next + if (rule == "join-text") { + printf "%s:%d: join-text: a path joined with a `/` in one argument is turned into text\n", file, at + } else if (rule == "unix-abs") { + printf "%s:%d: unix-abs: an OPENCODE_* variable is set to a Unix absolute path\n", file, at + } else if ((used = as_text(name, at)) && !allowed(used)) { + printf "%s:%d: join-let: `%s` is joined with a `/` in one argument and turned into text at line %d\n", file, at, name, used + } + } + ' + done +) +if [ -n "$report" ]; then + printf '%s\n' "$report" >&2 + cat >&2 <<'EOF' + +On Windows the paths the client finds use `\`, so a path joined as "a/b" and compared as text never matches them, +and "/x" is not absolute (it has no drive). The Windows-safe forms: + join-text, join-let join one component at a time, .join("a").join("b"), or compare Paths, not text; + for text on screen, std::path::MAIN_SEPARATOR. + unix-abs an absolute path of the platform: if cfg!(windows) { r"C:\x" } else { "/x" }. +A deliberate exception: `// windows-lint: allow <reason>` on the line or the line above. +EOF + exit 1 +fi +printf 'PASS: Windows lint\n' diff --git a/packages/cli-rs/script/live.sh b/packages/cli-rs/script/live.sh new file mode 100755 index 000000000000..15f4176069be --- /dev/null +++ b/packages/cli-rs/script/live.sh @@ -0,0 +1,15 @@ +#!/bin/sh +# Runs opencode-native against the elected opencode background service, as the root `dev:live` does for the +# TypeScript TUI: the dev storage channel, the service's URL, and its private password. +# +# Usage: script/live.sh [opencode-native arguments...] +set -eu + +rs=$(cd "$(dirname "$0")/.." && pwd) +server=$(opencode service status) +OPENCODE_PASSWORD=$(opencode service get password) +OPENCODE_TUI_CHANNEL=dev +export OPENCODE_PASSWORD OPENCODE_TUI_CHANNEL +# Builds from the workspace so cargo reads .cargo/config.toml, then runs in the caller's directory. +(cd "$rs" && cargo build --quiet --bin opencode-native) +exec "$rs/target/debug/opencode-native" "$@" --server "$server" diff --git a/packages/cli-rs/script/luau-expect/.luaurc b/packages/cli-rs/script/luau-expect/.luaurc new file mode 100644 index 000000000000..747373a8a9b3 --- /dev/null +++ b/packages/cli-rs/script/luau-expect/.luaurc @@ -0,0 +1,6 @@ +{ + "languageMode": "strict", + "aliases": { + "opencode": "../../crates/plugin/src/luau/opencode" + } +} diff --git a/packages/cli-rs/script/luau-expect/client-typo.luau b/packages/cli-rs/script/luau-expect/client-typo.luau new file mode 100644 index 000000000000..5a47734142e6 --- /dev/null +++ b/packages/cli-rs/script/luau-expect/client-typo.luau @@ -0,0 +1,10 @@ +-- expect: sesionID +--!strict +-- A misspelled field in a typed call: `plugin.client` types each operation's input with the generated client's +-- fields, so the checker refuses `sesionID` in `session.inbox.list`'s input. +local plugin = require("@opencode/plugin") + +return function(id: string): number + local items = plugin.client.session.inbox.list({ sesionID = id }) + return if items then #items else 0 +end diff --git a/packages/cli-rs/script/luau-expect/message-typo.luau b/packages/cli-rs/script/luau-expect/message-typo.luau new file mode 100644 index 000000000000..80c85511b870 --- /dev/null +++ b/packages/cli-rs/script/luau-expect/message-typo.luau @@ -0,0 +1,15 @@ +-- expect: Key 'contnet' not found +--!strict +-- A misspelled field of a server type: `read:messages` returns the HTTP API's `SessionMessageInfo`, so the checker +-- refuses `message.contnet`, which was `any` before the stub carried the API's types. +local plugin = require("@opencode/plugin") + +return function(read: plugin.Read, id: string): number + local parts = 0 + for _, message in read:messages(id) do + if message.type == "assistant" then + parts += #message.contnet + end + end + return parts +end diff --git a/packages/cli-rs/script/opentui-native.ts b/packages/cli-rs/script/opentui-native.ts new file mode 100644 index 000000000000..e62110a08400 --- /dev/null +++ b/packages/cli-rs/script/opentui-native.ts @@ -0,0 +1,174 @@ +// Installs OpenTUI's native library for the client's pin from the OpenTUI release zip: the header, the static archive +// opentui-sys links, and every licence and source-notice file of the zip (under `licenses/`). The zip is checked +// against the sha256 in `releases` below and its `opentui.h` against the release's header hash, which opentui-sys's +// build script checks again against its bindings. The release zips carry no GitHub attestation, so this table is the +// control: a re-pin adds the release's rows from `gh release view <tag> -R anomalyco/opentui --json assets`. +// +// Usage: bun run script/opentui-native.ts [--target <rust-target>] [--dest <dir>] [--quiet] +// The tag is `v` and the exact crates.io version of the `opentui` dependency in Cargo.toml +// (`version = "=X.Y.Z"`). Without `--target` it installs the +// host's library into the directory `.cargo/config.toml` names (`.opentui/<tag>/host`); with `--target` into +// `.opentui/<tag>/<target>`, unless `--dest` names another. It prints the directory, for `OPENTUI_LIB_DIR`. +// Downloaded zips are kept in `$XDG_CACHE_HOME/opencode/opentui-native`, so a new worktree needs no network. +// `--quiet` is the check `bun run cargo` runs first: silent when the directory is current, when `OPENTUI_LIB_DIR` +// is set in the shell, or when the pin is no release (a `git` or `path` spec, which brings its own directory). +// +// Needs only Bun: the zip is read here, so it runs the same on Linux, macOS and Windows. +import { createHash } from "node:crypto" +import { mkdir, rename, rm } from "node:fs/promises" +import { homedir } from "node:os" +import path from "node:path" +import { unzip } from "./zip" + +// The OpenTUI releases the client can pin: the commit the tag names, the FNV-1a 64 of its `opentui.h`, and the sha256 +// of `opentui-native-<tag>-<platform>.zip` for each platform. +const releases: Record<string, { commit: string; header: string; zips: Record<string, string> }> = { + "v0.9.7": { + commit: "4ea9c4035286e6d6eb75784ed21c52a9375c7035", + header: "0x99dd2d0018a6caa3", + zips: { + "darwin-arm64": "eb51edc31358c0118dd4c1f4d80958bc1b5b1a2ff320fa777a5e23f2c839b179", + "darwin-x64": "a0d583d076084719654778bffa87dfda1f19475708d04a6184524c94b19e12c2", + "linux-arm64": "6f498859c1d349d0c838796049495f94bfd820c018fe55a0f2f70d2feb085906", + "linux-arm64-musl": "07b2ddc19f26b65223375cc8d2a656cf3bcc1c7736890b7b1900038e44cb9d8b", + "linux-x64": "5d8a54be271dc53ee7adf602a6b283adcb1315c747502a54bc903472889edb5c", + "linux-x64-musl": "209c17b44ea969d2be5f7aaedbb5272c137bd6565b14a7ccd95a6bd2fd34188c", + "windows-arm64": "617b690cce3253f2c86c7677cbe07a88dce66de053ba6d83f9e40e339f9b9983", + "windows-x64": "5c8a2cbc2a754837ce6d5048d36c74bbe6ae96ce4d90319ce1f5d5445a09d16b", + }, + }, +} + +// Each Rust target, its zip's platform, and the static archive opentui-sys links with its default `static` feature. +const targets: Record<string, { platform: string; archive: string }> = { + "x86_64-unknown-linux-gnu": { platform: "linux-x64", archive: "libopentui.a" }, + "aarch64-unknown-linux-gnu": { platform: "linux-arm64", archive: "libopentui.a" }, + "x86_64-unknown-linux-musl": { platform: "linux-x64-musl", archive: "libopentui.a" }, + "aarch64-unknown-linux-musl": { platform: "linux-arm64-musl", archive: "libopentui.a" }, + "x86_64-apple-darwin": { platform: "darwin-x64", archive: "libopentui.a" }, + "aarch64-apple-darwin": { platform: "darwin-arm64", archive: "libopentui.a" }, + "x86_64-pc-windows-msvc": { platform: "windows-x64", archive: "opentui-static.lib" }, + "aarch64-pc-windows-msvc": { platform: "windows-arm64", archive: "opentui-static.lib" }, +} + +const root = path.resolve(import.meta.dir, "..") +const args = process.argv.slice(2) +const quiet = args.includes("--quiet") +const option = (name: string) => (args.includes(name) ? args[args.indexOf(name) + 1] : undefined) + +if (quiet && process.env.OPENTUI_LIB_DIR) process.exit(0) +const dependency = (await Bun.file(path.join(root, "Cargo.toml")).text()).match(/^opentui = \{[^}]*\}/m)?.[0] ?? "" +const version = /\b(git|path) = /.test(dependency) ? undefined : dependency.match(/\bversion = "=([^"]+)"/)?.[1] +if (!version && quiet) process.exit(0) +const tag = `v${must( + version, + "the opentui dependency in Cargo.toml pins no crates.io release (`version = \"=X.Y.Z\"`); build the library for its rev or path", +)}` +const release = must(releases[tag], `no sha256 table for ${tag}; add its rows to script/opentui-native.ts`) +const target = option("--target") ?? host() +const spec = must(targets[target], `no OpenTUI release zip for ${target}; it has ${Object.keys(targets).join(", ")}`) +const dest = path.resolve( + option("--dest") ?? (option("--target") ? path.join(root, ".opentui", tag, target) : await configured()), +) +const zip = `opentui-native-${tag}-${spec.platform}.zip` +const sha256 = release.zips[spec.platform] + +if (!(await current())) await install() +if (!quiet) console.log(dest) + +/** Whether `dest` holds this release's files for the target: its STAMP names them and the header still hashes right. */ +async function current() { + const stamp = Bun.file(path.join(dest, "STAMP.json")) + if (!(await stamp.exists())) return false + const known = await stamp.json() + if (known.tag !== tag || known.target !== target || known.sha256 !== sha256) return false + if (!(await Bun.file(path.join(dest, spec.archive)).exists())) return false + return fnv1a64(await Bun.file(path.join(dest, "opentui.h")).bytes()) === release.header +} + +async function install() { + const bytes = await download() + const files = unzip(bytes, zip, fail) + const header = files.get("opentui.h") + if (!header || fnv1a64(header) !== release.header) fail(`${zip}'s opentui.h does not hash to ${release.header}`) + if (!files.has(spec.archive)) fail(`${zip} has no ${spec.archive}`) + const notices = [...files.keys()].filter((name) => + /^(LICENSE|COPYING|NOTICE|AUTHORS|PATENTS)|-SOURCE\.md$/.test(name), + ) + if (!notices.includes("LICENSE")) fail(`${zip} has no LICENSE (OpenTUI's own)`) + // Written beside `dest` and renamed into place, so a build never sees half a directory. + const staged = `${dest}.${process.pid}.tmp` + await rm(staged, { recursive: true, force: true }) + await mkdir(path.join(staged, "licenses"), { recursive: true }) + for (const name of ["opentui.h", spec.archive]) await Bun.write(path.join(staged, name), files.get(name)!) + for (const name of notices) await Bun.write(path.join(staged, "licenses", name), files.get(name)!) + await Bun.write( + path.join(staged, "STAMP.json"), + JSON.stringify({ tag, commit: release.commit, target, zip, sha256 }, null, 2) + "\n", + ) + await rm(dest, { recursive: true, force: true }) + await rename(staged, dest).catch(async (error) => { + // Another build installed the same files meanwhile. + await rm(staged, { recursive: true, force: true }) + if (!(await current())) throw error + }) + console.error(`opentui-native: installed ${zip} (${target}) into ${path.relative(process.cwd(), dest) || "."}`) +} + +/** The zip, from the cache or the release, checked against the table. */ +async function download() { + const cache = path.join(process.env.XDG_CACHE_HOME || path.join(homedir(), ".cache"), "opencode", "opentui-native") + const cached = Bun.file(path.join(cache, zip)) + if ((await cached.exists()) && digest(await cached.bytes()) === sha256) return cached.bytes() + const url = `https://github.com/anomalyco/opentui/releases/download/${tag}/${zip}` + console.error(`opentui-native: downloading ${url}`) + const response = await fetch(url) + if (!response.ok) fail(`${url}: ${response.status} ${response.statusText}`) + const bytes = new Uint8Array(await response.arrayBuffer()) + const got = digest(bytes) + if (got !== sha256) fail(`${zip} has sha256 ${got}, not ${sha256}`) + await mkdir(cache, { recursive: true }) + const partial = path.join(cache, `${zip}.${process.pid}.tmp`) + await Bun.write(partial, bytes) + await rename(partial, cached.name!) + return bytes +} + +/** The directory `.cargo/config.toml` names for the host's library, which must be this tag's. */ +async function configured() { + const config = await Bun.file(path.join(root, ".cargo", "config.toml")).text() + const value = config.match(/^OPENTUI_LIB_DIR = \{ value = "([^"]+)", relative = true/m)?.[1] + if (!value) fail(".cargo/config.toml names no relative OPENTUI_LIB_DIR") + if (!value.split("/").includes(tag)) fail(`.cargo/config.toml names ${value}, but Cargo.toml pins ${tag}`) + return path.join(root, value) +} + +function host() { + const output = Bun.spawnSync([process.env.RUSTC ?? "rustc", "-vV"]).stdout.toString() + const found = output.match(/^host: (\S+)/m)?.[1] + if (!found) fail("cannot tell the host target from `rustc -vV`; pass --target") + return found +} + +function digest(bytes: Uint8Array) { + return createHash("sha256").update(bytes).digest("hex") +} + +// Must match fnv1a64 in OpenTUI's packages/core/scripts/native-abi-rust.ts, which writes the bindings' hash. +function fnv1a64(bytes: Uint8Array) { + const hash = bytes.reduce( + (hash, byte) => BigInt.asUintN(64, (hash ^ BigInt(byte)) * 0x100000001b3n), + 0xcbf29ce484222325n, + ) + return `0x${hash.toString(16).padStart(16, "0")}` +} + +function must<T>(value: T | undefined, message: string): T { + if (value === undefined) fail(message) + return value +} + +function fail(message: string): never { + console.error(`opentui-native: ${message}`) + process.exit(1) +} diff --git a/packages/cli-rs/script/rust/example.ts b/packages/cli-rs/script/rust/example.ts new file mode 100644 index 000000000000..0f8ea4381752 --- /dev/null +++ b/packages/cli-rs/script/rust/example.ts @@ -0,0 +1,120 @@ +// A sample value of a schema representation, for the operations' table-driven test (`typed-client`): every field set +// where the depth allows, so a request built from it exercises the path, the query's brackets and the body, and the +// first member of a union. Not a fuzzer: one value per type, the same on every run. +import type { SchemaRepresentation } from "effect" +import type { Types } from "./types.ts" + +type R = SchemaRepresentation.Representation + +/** Below this depth an object sets its optional fields too, unless it would otherwise be empty. */ +const OPTIONAL_DEPTH = 4 +/** Past this depth a value is `undefined`, which leaves an optional field out, so a recursive type ends. */ +const MAX_DEPTH = 8 + +export function example(types: Types, r: R, depth = 0): unknown { + if (depth > MAX_DEPTH) return undefined + const resolved = types.deref(r) + switch (resolved._tag) { + case "String": + case "TemplateLiteral": + return `s${depth}` + case "Enum": + return resolved.enums[0]?.[1] + case "Number": + return integer(resolved) ? 2 : 1.5 + case "Boolean": + return true + case "Literal": + return resolved.literal + case "Null": + return null + case "Undefined": + case "Void": + case "Never": + return undefined + case "Arrays": { + const elements = resolved.elements.map((element) => example(types, element.type, depth + 1)) + const rest = resolved.rest[0] === undefined ? [] : [example(types, resolved.rest[0], depth + 1)] + return [...elements, ...rest].filter((value) => value !== undefined) + } + case "Union": { + const members = resolved.types.filter((member) => !["Null", "Undefined"].includes(types.deref(member)._tag)) + for (const member of members) { + const value = example(types, member, depth + 1) + if (value !== undefined) return value + } + return null + } + case "Objects": { + const fields: Record<string, unknown> = {} + const required = resolved.propertySignatures.filter((property) => !property.isOptional) + const wanted = depth < OPTIONAL_DEPTH || required.length === 0 ? resolved.propertySignatures : required + for (const property of wanted) { + const value = example(types, property.type, depth + 1) + if (value !== undefined && typeof property.name === "string") fields[property.name] = value + } + if (Object.keys(fields).length === 0 && resolved.indexSignatures[0] !== undefined) { + const value = example(types, resolved.indexSignatures[0].type, depth + 1) + if (value !== undefined) fields.key = value + } + return fields + } + } + return "any" +} + +/** + * The Luau type of a path, query or header field, written in place (the Luau stub types bodies and replies from the + * OpenAPI document, which has the encoded forms of these fields: a query's number is a string there). + */ +export function luauType(types: Types, r: R, depth = 0): string { + if (depth > 4) return "any" + const resolved = types.deref(r) + switch (resolved._tag) { + case "String": + case "TemplateLiteral": + return "string" + case "Number": + return "number" + case "Boolean": + return "boolean" + case "Literal": + return typeof resolved.literal === "string" ? JSON.stringify(resolved.literal) : typeof resolved.literal + case "Enum": + return union(resolved.enums.map(([, value]) => (typeof value === "string" ? JSON.stringify(value) : "number"))) + case "Arrays": { + const items = [...resolved.elements.map((element) => element.type), ...resolved.rest] + return `{ ${union(items.map((item) => luauType(types, item, depth + 1)))} }` + } + case "Union": { + const present = resolved.types.filter((member) => !["Null", "Undefined"].includes(types.deref(member)._tag)) + const type = union(present.map((member) => luauType(types, member, depth + 1))) + return present.length < resolved.types.length && type !== "any" && !type.endsWith("?") ? `${type}?` : type + } + case "Objects": { + if (resolved.propertySignatures.length === 0) return "{ [string]: any }" + const fields = resolved.propertySignatures.map((property) => { + const type = luauType(types, property.type, depth + 1) + const optional = property.isOptional && !type.endsWith("?") && type !== "any" ? "?" : "" + const name = String(property.name) + return `${/^[A-Za-z_][A-Za-z0-9_]*$/.test(name) ? name : `[${JSON.stringify(name)}]`}: ${type}${optional}` + }) + return `{ ${fields.join(", ")} }` + } + } + return "any" +} + +function union(types: Array<string>) { + const unique = [...new Set(types)] + if (unique.includes("any")) return "any" + return unique.length === 1 ? unique[0] : `(${unique.join(" | ")})` +} + +function integer(r: SchemaRepresentation.Number) { + const visit = (checks: ReadonlyArray<SchemaRepresentation.Check>): boolean => + checks.some((check) => + check._tag === "Filter" ? check.representation?.id === "effect/schema/isInt" : visit(check.checks), + ) + return visit(r.checks) +} diff --git a/packages/cli-rs/script/rust/methods.ts b/packages/cli-rs/script/rust/methods.ts new file mode 100644 index 000000000000..e0d43350cb4f --- /dev/null +++ b/packages/cli-rs/script/rust/methods.ts @@ -0,0 +1,197 @@ +// Emits, per endpoint: the request builder in `opencode-api-types` (`client::<name>`, typed by +// its output, with no transport), the `Client` method that sends it, the endpoint's row of the operations table the +// Luau prelude's `plugin.client` builds requests from, and a probe that builds the request from JSON, for the table +// test (`typed-client`). +import type { Endpoint, Group } from "@opencode/httpapi-codegen" +import type { SchemaRepresentation } from "effect" +import { example, luauType } from "./example.ts" +import { pascal, snake, type Types } from "./types.ts" + +export type Field = { + readonly name: string + readonly source: "params" | "query" | "headers" | "payload" | "wildcard" + readonly optional: boolean + /** Undefined for the wildcard, which is always a string. */ + readonly representation: SchemaRepresentation.Representation | undefined +} + +export type Method = { + readonly group: Group + readonly endpoint: Endpoint + readonly prefix: string + readonly fields: ReadonlyArray<Field> + readonly opaque: boolean + readonly binaryBody: boolean + readonly success: "json" | "data" | "empty" | "binary" | "sse" + readonly output: SchemaRepresentation.Representation | undefined + readonly successStatus: number +} + +/** A row of the operations table: what the Luau prelude needs to build the request (`crates/plugin/src/luau`). */ +export type Operation = { + readonly method: string + readonly path: string + /** + * Each input field: its name, where it goes, whether it may be left out, and the Luau type of a path, query or header + * field (`null` for a payload field, which the Luau stub types from the OpenAPI document). + */ + readonly fields: ReadonlyArray<readonly [string, Field["source"], boolean, string | null]> + /** `object`: the payload fields make an object; `json`: the payload field is the body; `bytes`: a byte body. */ + readonly body: "object" | "json" | "bytes" | null + readonly reply: Method["success"] +} + +export function emitMethod(types: Types, method: Method) { + const name = snake( + [...method.group.path, ...method.endpoint.clientPath].map((part) => snake(part).replace(/^r#/, "")).join("_"), + ) + const idents = new Map<Field, string>() + for (const field of method.fields) { + let ident = snake(field.name) + for (let i = 2; [...idents.values()].includes(ident); i++) ident = `${snake(field.name)}_${i}` + idents.set(field, ident) + } + const input = method.fields.length === 0 ? undefined : types.name(`${method.prefix}Input`) + if (input !== undefined) { + const lines = method.fields.map((field) => { + // Every endpoint shares the `location` query shape; name it for what it is, not for the first endpoint. + const hint = + field.source === "query" && field.name === "location" + ? "LocationQueryInput" + : `${method.prefix}Input${pascal(field.name)}` + const type = + method.binaryBody && field.source === "payload" + ? "bytes::Bytes" + : field.representation === undefined + ? "String" + : (types.field(field.representation, field.optional, hint)?.type ?? "()") + return { line: ` pub ${idents.get(field)}: ${type},`, type } + }) + const defaults = lines.every((line) => types.isDefault(line.type) || line.type === "bytes::Bytes") + types.items.push( + `/// Input of \`Client::${name.replace(/^r#/, "")}\`.\n#[derive(Debug, Clone, PartialEq${defaults ? ", Default" : ""})]\npub struct ${input} {\n${lines.map((line) => line.line).join("\n")}\n}`, + ) + } + const outputName = types.name(`${method.prefix}Output`) + const output = (() => { + if (method.success === "empty") return "()" + if (method.success === "binary") return "bytes::Bytes" + const representation = method.output! + if (representation._tag === "Objects" && representation.propertySignatures.length > 0) { + return types.objects(representation, outputName, outputName) + } + const type = types.type(representation, outputName) + types.items.push(`/// Output of \`Client::${name.replace(/^r#/, "")}\`.\npub type ${outputName} = ${type};`) + return outputName + })() + + const path = pathTemplate(method, idents) + const access = (field: Field) => `input.${idents.get(field)}` + const statements = method.fields.flatMap((field) => { + const call = + field.source === "query" + ? `call.query(${JSON.stringify(field.name)}, VALUE);` + : field.source === "headers" + ? `call.header(${JSON.stringify(field.name)}, VALUE);` + : field.source === "payload" + ? method.binaryBody + ? `call.bytes(${access(field)}.clone());` + : method.opaque + ? "call.json(VALUE);" + : `call.field(${JSON.stringify(field.name)}, VALUE);` + : undefined + if (call === undefined) return [] + if (field.optional) + return [`if let Some(value) = &${access(field)} {\n ${call.replace("VALUE", "value")}\n }`] + return [call.replace("VALUE", `&${access(field)}`)] + }) + if (method.endpoint.payloads.length > 0 && !method.binaryBody && !method.opaque) statements.unshift("call.object();") + const declared = [...new Set(method.endpoint.errors.map((error) => error.status))] + const reply = { json: "Json", data: "Data", empty: "Empty", binary: "Binary", sse: "Sse" }[method.success] + const typed = method.success === "sse" ? `Sse<${output}>` : output + const parameter = input === undefined ? "" : `input: &${input}` + const builder = `${name.replace(/^r#/, "")}_call` + const start = `Call::new(${JSON.stringify(method.endpoint.endpoint.method)}, ${path.literal ?? "String::new()"}, Reply::${reply}, ${method.successStatus}, &[${declared.join(", ")}])` + const lines = [...(path.literal === undefined ? [`call.path = ${path.format};`] : []), ...statements] + const body = + lines.length === 0 + ? ` ${start}` + : [`let mut call = ${start};`, ...lines, "call"].map((line) => ` ${line}`).join("\n") + const returns = method.success === "sse" ? `SseResponse<${output}>` : output + const doc = `/// \`${method.endpoint.endpoint.method} ${method.endpoint.endpoint.path}\` (\`${method.endpoint.operation.name}\`)` + const operation = [...method.group.path, ...method.endpoint.clientPath].join(".") + + // The probe reads each field from JSON by its wire name; a byte body has no JSON form. + const probe = method.binaryBody + ? `${JSON.stringify(operation)} => Some(Err("a byte body".to_owned())),` + : `${JSON.stringify(operation)} => Some((|| Ok(${name}(${ + input === undefined + ? "" + : `&${input} { ${method.fields.map((field) => `${idents.get(field)}: field(input, ${JSON.stringify(field.name)})?`).join(", ")} }` + }).cast()))()),` + return { + /** The `Client` method and its untyped builder, which delegates to the typed one. */ + method: ` endpoint!(${JSON.stringify(doc.slice(3))}, ${name}, ${builder}, ${method.success}, ${returns}${input === undefined ? "" : `, input: ${input}`});`, + builder: `${doc}\npub fn ${name}(${parameter}) -> Call<${typed}> {\n${body}\n}`, + probe, + name: operation, + operation: { + method: method.endpoint.endpoint.method, + path: method.endpoint.endpoint.path, + fields: method.fields.map( + (field) => + [ + field.name, + field.source, + field.optional, + field.source === "payload" + ? null + : field.representation === undefined + ? "string" + : luauType(types, field.representation), + ] as const, + ), + body: method.binaryBody + ? "bytes" + : method.opaque + ? "json" + : method.endpoint.payloads.length > 0 + ? "object" + : null, + reply: method.success, + } satisfies Operation, + sample: Object.fromEntries( + method.fields.flatMap((field) => { + if (field.source === "wildcard") return [[field.name, "a/b c"]] + if (method.binaryBody && field.source === "payload") return [] + const value = field.representation === undefined ? "s" : example(types, field.representation) + return value === undefined ? [] : [[field.name, value]] + }), + ), + } +} + +/** The path with its parameters: a literal when it has none, else the `format!` that fills them. */ +function pathTemplate(method: Method, idents: Map<Field, string>) { + const params = new Map(method.fields.filter((field) => field.source === "params").map((field) => [field.name, field])) + const wildcard = method.fields.find((field) => field.source === "wildcard") + const source = wildcard === undefined ? method.endpoint.endpoint.path : method.endpoint.endpoint.path.slice(0, -1) + const args: Array<string> = [] + const template = source + .split(/(:[A-Za-z_][A-Za-z0-9_]*)/g) + .filter(Boolean) + .map((segment) => { + if (!segment.startsWith(":")) return segment.replaceAll("{", "{{").replaceAll("}", "}}") + const field = params.get(segment.slice(1)) + if (field === undefined) throw new Error(`Missing path parameter: ${segment}`) + args.push(`call.param(&input.${idents.get(field)})`) + return "{}" + }) + .join("") + if (wildcard !== undefined) args.push(`path_wildcard(&input.${idents.get(wildcard)})`) + if (args.length === 0) return { literal: `${JSON.stringify(template)}.to_owned()`, format: undefined } + return { + literal: undefined, + format: `format!(${JSON.stringify(template + (wildcard === undefined ? "" : "{}"))}, ${args.join(", ")})`, + } +} diff --git a/packages/cli-rs/script/rust/types.ts b/packages/cli-rs/script/rust/types.ts new file mode 100644 index 000000000000..025861eb3dae --- /dev/null +++ b/packages/cli-rs/script/rust/types.ts @@ -0,0 +1,763 @@ +// Emits Rust types from Effect schema representations. +import type { SchemaRepresentation } from "effect" + +type R = SchemaRepresentation.Representation +type Objects = SchemaRepresentation.Objects +/** A generated common-field method: the JSON path it reads, the field's Rust type, and what it returns. */ +type Accessor = { keys: Array<string>; field: string; ret: string; parent?: string } + +const keywords = new Set( + "as async await break const continue crate dyn else enum extern false fn for gen if impl in let loop match mod move mut pub ref return self Self static struct super trait true type unsafe use where while abstract become box do final macro override priv try typeof unsized virtual yield".split( + " ", + ), +) + +export function pascal(value: string) { + const name = value + .split(/[^A-Za-z0-9]+/) + .filter(Boolean) + .map((part) => `${part[0].toUpperCase()}${part.slice(1)}`) + .join("") + return /^[A-Za-z]/.test(name) ? name : `V${name}` +} + +export function snake(value: string) { + const name = value + .replace(/([a-z0-9])([A-Z])/g, "$1_$2") + .replace(/([A-Z]+)([A-Z][a-z])/g, "$1_$2") + .split(/[^A-Za-z0-9]+/) + .filter(Boolean) + .join("_") + .toLowerCase() + const safe = /^[a-z_]/.test(name) ? name : `v${name}` + if (safe === "self" || safe === "super" || safe === "crate" || safe === "_") return `${safe}_` + return keywords.has(safe) ? `r#${safe}` : safe +} + +/** Turns representations into Rust items. `type(r, hint)` returns a Rust type expression and emits what it names. */ +export class Types { + readonly items: Array<string> = [] + private readonly names = new Set<string>() + private readonly referenced = new Map<string, string>() + private readonly defaultable = new Set<string>() + // `f64` and its aliases (`MoneyUSD`), whose fields serialize whole values as integers. + private readonly floats = new Set<string>(["f64"]) + private readonly visiting = new Set<string>() + // Anonymous objects and unions by shape, so equal shapes (such as every `location` query) share one type. + private readonly shapes = new Map<string, string>() + // The tag key of every generated tagged enum, so an outer union can delegate `tag()` to an inner one. + private readonly taggedKeys = new Map<string, string>() + // The fields of every generated struct, the target of every `pub type` alias, the string newtypes, and + // `Copy` scalars with their aliases (`EventSeq`), so a tagged enum can read the fields its members share. + private readonly structs = new Map<string, Array<{ key: string; ident: string; type: string }>>() + private readonly aliases = new Map<string, string>() + private readonly strings = new Set<string>() + private readonly scalars = new Map<string, string>([ + ["f64", "f64"], + ["i64", "i64"], + ["bool", "bool"], + ]) + // The common-field accessors of every generated tagged enum, so an outer enum can delegate to an inner one. + private readonly accessors = new Map<string, Map<string, Accessor>>() + + constructor(private readonly references: SchemaRepresentation.References) {} + + /** Reserves a unique type name based on `seed`. */ + name(seed: string) { + const base = pascal(seed) + let name = base + for (let index = 2; this.names.has(name); index++) name = `${base}${index}` + this.names.add(name) + return name + } + + deref(r: R): R { + if (r._tag === "Reference") return this.deref(this.references[r.$ref]) + if (r._tag === "Suspend") return this.deref(r.thunk) + return r + } + + isDefault(type: string) { + return ( + /^(Option|Vec|IndexMap)</.test(type) || + ["String", "bool", "i64", "f64", "serde_json::Value", "()"].includes(type) || + this.defaultable.has(type) + ) + } + + type(r: R, hint: string): string { + switch (r._tag) { + case "Reference": + return this.reference(r.$ref) + case "Suspend": + return this.type(r.thunk, hint) + case "String": + case "TemplateLiteral": + case "Enum": + return "String" + case "Number": + return integer(r) ? "i64" : "f64" + case "Boolean": + return "bool" + case "Literal": + return literalType(r.literal) + case "Null": + case "Undefined": + case "Void": + case "Never": + return "()" + case "Objects": + // An empty struct schema accepts any value but `null` and keeps it as it is, extra keys included. + // It says nothing about its role, so it keeps its own name instead of sharing one. + if (r.propertySignatures.length === 0 && r.indexSignatures.length === 0) { + const name = this.name(hint) + this.defaultable.add(name) + this.items.push(`/// Any value but \`null\`.\npub type ${name} = crate::de::NotNull;`) + return name + } + return this.shaped(r, () => this.objects(r, this.name(hint), hint)) + case "Arrays": + return this.arrays(r, hint) + case "Union": + return this.shaped(r, () => this.union(r, hint, undefined)) + default: + return "serde_json::Value" + } + } + + private shaped(r: R, make: () => string) { + const key = JSON.stringify(r, (_, value) => (typeof value === "bigint" ? `${value}n` : value)) + const existing = this.shapes.get(key) + if (existing !== undefined) return existing + const type = make() + this.shapes.set(key, type) + return type + } + + private reference(ref: string): string { + const existing = this.referenced.get(ref) + if (existing !== undefined) return existing + // The same schema reached through SSE and REST can come out as `Ref` and `Ref_1`, differing only in + // what Rust does not see (JSON vs unknown, finiteness checks). Such twins share one type, as + // httpapi-codegen collapses them (`packages/httpapi-codegen/src/index.ts:1436-1449`). + const base = ref.replace(/_\d+$/, "") + if ( + base !== ref && + this.references[base] !== undefined && + this.sameRust(this.references[ref], this.references[base]) + ) { + const type = this.reference(base) + this.referenced.set(ref, type) + return type + } + if (this.visiting.has(ref)) throw new Error(`Recursive schema reference is not supported: ${ref}`) + this.visiting.add(ref) + const target = this.references[ref] + const resolved = this.deref(target) + const result = (() => { + if (resolved._tag === "Objects" && resolved.propertySignatures.length > 0) { + const name = this.name(ref) + this.referenced.set(ref, name) + return this.objects(resolved, name, name) + } + if (resolved._tag === "Union") { + const shape = this.union(resolved, ref, ref) + return shape + } + if (resolved._tag === "String" || resolved._tag === "TemplateLiteral") { + const name = this.name(ref) + this.defaultable.add(name) + this.strings.add(name) + this.items.push(newtype(name, ref)) + return name + } + const type = this.type(target, ref) + if (/^[A-Z][A-Za-z0-9]*$/.test(type) && !["String"].includes(type)) return type + const name = this.name(ref) + if (this.isDefault(type)) this.defaultable.add(name) + if (this.floats.has(type)) this.floats.add(name) + this.aliases.set(name, type) + const scalar = this.scalars.get(type) + if (scalar !== undefined) this.scalars.set(name, scalar) + this.items.push(`/// \`${ref}\`\npub type ${name} = ${type};`) + return name + })() + this.visiting.delete(ref) + this.referenced.set(ref, result) + return result + } + + private arrays(r: SchemaRepresentation.Arrays, hint: string): string { + if (r.elements.length === 0 && r.rest.length === 1) return `Vec<${this.type(r.rest[0], `${hint}Item`)}>` + // `Schema.NonEmptyArray(T)` is `[T, ...T[]]`: leading elements of the rest type are still a list of T. + if ( + r.rest.length === 1 && + r.elements.every((element) => !element.isOptional && this.sameRust(element.type, r.rest[0])) + ) { + return `Vec<${this.type(r.rest[0], `${hint}Item`)}>` + } + if (r.rest.length === 0 && r.elements.every((element) => !element.isOptional)) { + return `(${r.elements.map((element, index) => `${this.type(element.type, `${hint}${index}`)},`).join(" ")})` + } + return "Vec<serde_json::Value>" + } + + /** A struct, or a map for an object with only index signatures. */ + objects(r: Objects, name: string, hint: string): string { + const index = r.indexSignatures[0] + const value = index === undefined ? undefined : this.type(index.type, `${hint}Value`) + if (r.propertySignatures.length === 0 && value !== undefined) { + this.names.delete(name) + return `IndexMap<String, ${value}>` + } + const used = new Set<string>() + const record: Array<{ key: string; ident: string; type: string }> = [] + const fields = r.propertySignatures.flatMap((property) => { + const key = String(property.name) + const field = this.field(property.type, property.isOptional, `${hint}${pascal(key)}`) + if (field === undefined) return [] + let ident = snake(key) + for (let i = 2; used.has(ident); i++) ident = `${snake(key)}_${i}` + used.add(ident) + record.push({ key, ident, type: field.type }) + const plain = ident.replace(/^r#/, "") + const attrs = [plain === key ? undefined : `rename = ${JSON.stringify(key)}`, ...field.attrs].filter(Boolean) + const doc = docOf(property.annotations) + return [ + `${doc}${attrs.length ? ` #[serde(${attrs.join(", ")})]\n` : ""} pub ${ident}: ${field.type},`, + field.type, + ] + }) + const lines = fields.filter((_, i) => i % 2 === 0) + const types = fields.filter((_, i) => i % 2 === 1) + if (value !== undefined) { + lines.push(` #[serde(flatten)]\n pub extra: IndexMap<String, ${value}>,`) + types.push("IndexMap") + } + const defaults = types.every((type) => this.isDefault(type) || type === "IndexMap") + if (defaults) this.defaultable.add(name) + this.structs.set(name, record) + this.items.push( + `#[derive(Debug, Clone, PartialEq, Serialize, Deserialize${defaults ? ", Default" : ""})]\npub struct ${name} {\n${lines.join("\n")}\n}`, + ) + return name + } + + /** A field type with its serde attributes, or undefined for a field that can only be absent. */ + field(r: R, optional: boolean, hint: string) { + const members = r._tag === "Union" ? flatten(r.types) : [r] + const present = members.filter((member) => !["Undefined", "Never", "Void"].includes(this.deref(member)._tag)) + if (present.length === 0) return undefined + const nullable = present.some((member) => this.deref(member)._tag === "Null") + const rest = present.filter((member) => this.deref(member)._tag !== "Null") + const inner = + rest.length === 0 + ? "()" + : rest.length === 1 + ? this.type(rest[0], hint) + : this.type({ ...(r as SchemaRepresentation.Union), types: rest }, hint) + // JSON.stringify writes a whole number as `3`; serde writes an `f64` as `3.0`. + const float = this.floats.has(inner) + if (float && optional && nullable) throw new Error(`An optional and nullable number is not supported: ${hint}`) + if (float && (optional || nullable)) + return { + type: `Option<${inner}>`, + attrs: [ + "default", + 'serialize_with = "crate::ser::option_number"', + ...(optional ? ['skip_serializing_if = "Option::is_none"'] : []), + ], + } + if (float) return { type: inner, attrs: ['serialize_with = "crate::ser::number"'] } + if (optional && nullable) { + return { + type: `Option<Option<${inner}>>`, + attrs: ["default", 'deserialize_with = "crate::de::double_option"', 'skip_serializing_if = "Option::is_none"'], + } + } + if (optional) return { type: `Option<${inner}>`, attrs: ["default", 'skip_serializing_if = "Option::is_none"'] } + if (nullable) return { type: `Option<${inner}>`, attrs: ["default"] } + return { type: inner, attrs: [] as Array<string> } + } + + /** + * Whether two representations produce the same Rust type: it ignores annotations and checks other + * than `isInt`, treats unknown, any, and declarations alike, and follows references with equal base names. + * It also ignores what the JSON transport adds on the REST side (see `wire`). + */ + sameRust(left: R, right: R, seen = new Set<string>()): boolean { + const a = wire(left) + const b = wire(right) + if (a._tag === "Suspend") return this.sameRust(a.thunk, b, seen) + if (b._tag === "Suspend") return this.sameRust(a, b.thunk, seen) + if (a._tag === "Reference" || b._tag === "Reference") { + if (a._tag !== "Reference" || b._tag !== "Reference") return false + if (a.$ref.replace(/_\d+$/, "") !== b.$ref.replace(/_\d+$/, "")) return false + const pair = `${a.$ref}\0${b.$ref}` + if (a.$ref === b.$ref || seen.has(pair)) return true + seen.add(pair) + return this.sameRust(this.references[a.$ref], this.references[b.$ref], seen) + } + // `type()` maps all three to `serde_json::Value`. + const value = (r: R) => ["Unknown", "Any", "Declaration"].includes(r._tag) + if (value(a) || value(b)) return value(a) && value(b) + if (a._tag !== b._tag) return false + switch (a._tag) { + case "Number": + return integer(a) === integer(b as SchemaRepresentation.Number) + case "Literal": + return a.literal === (b as SchemaRepresentation.Literal).literal + case "Arrays": { + const other = b as SchemaRepresentation.Arrays + return ( + a.elements.length === other.elements.length && + a.rest.length === other.rest.length && + a.elements.every( + (element, index) => + element.isOptional === other.elements[index].isOptional && + this.sameRust(element.type, other.elements[index].type, seen), + ) && + a.rest.every((item, index) => this.sameRust(item, other.rest[index], seen)) + ) + } + case "Objects": { + const other = b as Objects + return ( + a.propertySignatures.length === other.propertySignatures.length && + a.indexSignatures.length === other.indexSignatures.length && + a.propertySignatures.every((property, index) => { + const peer = other.propertySignatures[index] + return ( + property.name === peer.name && + property.isOptional === peer.isOptional && + this.sameRust(property.type, peer.type, seen) + ) + }) && + a.indexSignatures.every((index, i) => this.sameRust(index.type, other.indexSignatures[i].type, seen)) + ) + } + case "Union": { + const other = b as SchemaRepresentation.Union + return ( + a.types.length === other.types.length && + a.types.every((type, index) => this.sameRust(type, other.types[index], seen)) + ) + } + case "TemplateLiteral": { + const other = b as SchemaRepresentation.TemplateLiteral + return ( + a.parts.length === other.parts.length && + a.parts.every((part, index) => this.sameRust(part, other.parts[index], seen)) + ) + } + default: + return true + } + } + + /** A union. `ref` names the reference it defines, if any. */ + union(r: SchemaRepresentation.Union, hint: string, ref: string | undefined): string { + const members = flatten(r.types).filter( + (member) => !["Undefined", "Never", "Void"].includes(this.deref(member)._tag), + ) + const nullable = members.some((member) => this.deref(member)._tag === "Null") + const rest = members.filter((member) => this.deref(member)._tag !== "Null") + const wrap = (type: string) => (nullable ? `Option<${type}>` : type) + if (rest.length === 0) return "()" + if (rest.length === 1) return wrap(this.type(rest[0], hint)) + const resolved = rest.map((member) => this.deref(member)) + if (resolved.every((member) => member._tag === "Literal")) { + const values = resolved.map((member) => (member as SchemaRepresentation.Literal).literal) + if (values.every((value) => typeof value === "string")) { + return wrap(this.literals(values as Array<string>, ref ?? hint, ref)) + } + if (values.every((value) => typeof value === "boolean")) return wrap("bool") + if (values.every((value) => typeof value === "number")) + return wrap(values.every(Number.isInteger) ? "i64" : "f64") + return wrap("serde_json::Value") + } + if (resolved.every((member) => ["Literal", "String", "TemplateLiteral"].includes(member._tag))) + return wrap("String") + // A member may itself be a union of objects (`Session.Message.Compaction`, tagged by `status`), + // as long as all of its objects carry the outer tag. + const shapes = resolved.map((member) => this.objectsOf(member)) + if (shapes.every((shape) => shape !== undefined)) { + const tagged = this.discriminator(shapes as Array<Array<Objects>>) + if (tagged !== undefined) return wrap(this.tagged(rest, tagged, ref ?? hint, ref)) + } + return wrap(this.untagged(rest, ref ?? hint, ref)) + } + + private literals(values: Array<string>, seed: string, ref: string | undefined) { + const name = this.name(seed) + const variants = uniqueVariants(values.map((value) => pascal(value))) + const doc = ref === undefined ? "" : `/// \`${ref}\`\n` + const pairs = variants.map((variant, i) => ` ${variant} => ${JSON.stringify(values[i])},`) + this.items.push(`literal_enum! {\n${doc}${name} {\n${pairs.join("\n")}\n}\n}`) + return name + } + + /** The objects a union member stands for: itself, or every object of a nested union. */ + private objectsOf(member: R): Array<Objects> | undefined { + if (member._tag === "Objects") return [member] + if (member._tag !== "Union") return undefined + const parts = flatten(member.types).map((part) => this.deref(part)) + if (!parts.every((part) => part._tag === "Objects")) return undefined + return parts as Array<Objects> + } + + /** The discriminator of an object union: a required field whose literal values tell every member apart. */ + private discriminator(members: Array<Array<Objects>>) { + const one = (member: Objects, key: string) => { + const property = member.propertySignatures.find((p) => p.name === key) + if (property === undefined || property.isOptional) return undefined + return this.tagValues(property.type) + } + const tags = (member: Array<Objects>, key: string) => { + const parts = member.map((objects) => one(objects, key)) + if (parts.some((part) => part === undefined)) return undefined + if (member.length === 1) return parts[0] + // A nested union contributes every tag of its objects. With one shared tag (`Session.Message.Compaction`) + // `tag()` returns it; with several (`Session.Event.Durable` in `SessionLogItem`) the inner enum must be + // tagged by the same key, and `tag()` delegates to it. + return { + exact: [...new Set(parts.flatMap((part) => part!.exact))], + prefixes: [...new Set(parts.flatMap((part) => part!.prefixes))], + } + } + const keys = members[0][0].propertySignatures.map((p) => String(p.name)) + const ordered = [ + ...keys.filter((key) => key === "type" || key === "_tag"), + ...keys.filter((key) => key !== "type" && key !== "_tag"), + ] + for (const key of ordered) { + const values = members.map((member) => tags(member, key)) + if (values.some((value) => value === undefined)) continue + const exact = values.flatMap((value) => value!.exact.map((item) => JSON.stringify(item))) + if (new Set(exact).size !== exact.length) continue + const kinds = new Set(values.flatMap((value) => value!.exact.map((item) => typeof item))) + if (kinds.size > 1 || (kinds.size === 1 && !kinds.has("string") && !kinds.has("boolean"))) continue + if (kinds.has("boolean") && values.some((value) => value!.prefixes.length > 0)) continue + return { key, values: values as Array<{ exact: Array<string | boolean>; prefixes: Array<string> }> } + } + return undefined + } + + private tagValues(r: R): { exact: Array<string | boolean>; prefixes: Array<string> } | undefined { + const resolved = this.deref(r) + if (resolved._tag === "Literal") { + if (typeof resolved.literal !== "string" && typeof resolved.literal !== "boolean") return undefined + return { exact: [resolved.literal], prefixes: [] } + } + if (resolved._tag === "TemplateLiteral") { + const [head, ...tail] = resolved.parts + if (head?._tag !== "Literal" || typeof head.literal !== "string") return undefined + if (tail.length !== 1 || this.deref(tail[0])._tag !== "String") return undefined + return { exact: [], prefixes: [head.literal] } + } + if (resolved._tag === "Union") { + const parts = flatten(resolved.types).map((member) => this.tagValues(member)) + if (parts.some((part) => part === undefined)) return undefined + return { exact: parts.flatMap((part) => part!.exact), prefixes: parts.flatMap((part) => part!.prefixes) } + } + return undefined + } + + private tagged( + members: Array<R>, + tag: { key: string; values: Array<{ exact: Array<string | boolean>; prefixes: Array<string> }> }, + seed: string, + ref: string | undefined, + ) { + const name = this.name(seed) + const variants = uniqueVariants( + tag.values.map((value, index) => { + if (value.exact.length === 1) return pascal(String(value.exact[0])) + if (value.prefixes.length > 0 && value.exact.length === 0) return pascal(value.prefixes[0]) + const member = members[index] + return member._tag === "Reference" ? pascal(member.$ref.split(".").at(-1)!) : `Variant${index + 1}` + }), + ) + const types = members.map((member, index) => { + const resolved = this.deref(member) + if (member._tag === "Reference") return this.type(member, `${name}${variants[index]}`) + return this.objects(resolved as Objects, this.name(`${name}${variants[index]}`), `${name}${variants[index]}`) + }) + const kind = typeof tag.values.find((value) => value.exact.length > 0)?.exact[0] + const access = kind === "boolean" ? "as_bool" : "as_str" + const arms = tag.values.flatMap((value, index) => [ + ...(value.exact.length === 0 + ? [] + : [ + ` ${value.exact.map((item) => `Some(${JSON.stringify(item)})`).join(" | ")} => raw.variant().map(Self::${variants[index]}),`, + ]), + ...value.prefixes.map( + (prefix) => + ` Some(tag) if tag.starts_with(${JSON.stringify(prefix)}) => raw.variant().map(Self::${variants[index]}),`, + ), + ]) + const ordered = [ + ...arms.filter((arm) => !arm.includes("starts_with")), + ...arms.filter((arm) => arm.includes("starts_with")), + ] + const arm = (variant: string, index: number) => { + if (this.deref(members[index])._tag !== "Union") + return ` Self::${variant}(value) => value.${snake(tag.key)}.as_str(),` + const value = tag.values[index] + if (value.exact.length === 1 && value.prefixes.length === 0) { + return ` Self::${variant}(_) => ${JSON.stringify(value.exact[0])},` + } + if (this.taggedKeys.get(types[index]) !== tag.key) { + throw new Error(`${name}::${variant} has several \`${tag.key}\` tags, but ${types[index]} is not tagged by it`) + } + return ` Self::${variant}(value) => value.tag(),` + } + this.taggedKeys.set(name, tag.key) + const methods = [ + ...(kind === "boolean" + ? [] + : [ + ` /// The \`${tag.key}\` tag, also of an unknown member.\n pub fn tag(&self) -> &str {\n match self {\n${variants.map(arm).join("\n")}\n Self::Unknown(value) => value.get(${JSON.stringify(tag.key)}).and_then(serde_json::Value::as_str).unwrap_or_default(),\n }\n }`, + ]), + ...this.shared(name, variants, types, tag.key), + ] + const tagMethod = methods.length === 0 ? "" : `\n\nimpl ${name} {\n${methods.join("\n\n")}\n}` + const doc = ref === undefined ? "" : `/// \`${ref}\`, tagged by \`${tag.key}\`.\n` + this.items.push( + `${doc}#[derive(Debug, Clone, PartialEq, Serialize)]\n#[serde(untagged)]\npub enum ${name} {\n${variants.map((variant, index) => ` ${variant}(${types[index]}),`).join("\n")}\n /// A member this client does not know, kept as it arrived.\n Unknown(serde_json::Value),\n}\n\nimpl<'de> Deserialize<'de> for ${name} {\n fn deserialize<D: serde::Deserializer<'de>>(deserializer: D) -> Result<Self, D::Error> {\n crate::de::union(deserializer, Self::from_raw)\n }\n}\n\nimpl ${name} {\n fn from_raw(raw: &crate::de::Raw) -> Result<Self, serde_json::Error> {\n match raw.field(${JSON.stringify(tag.key)}).${access}() {\n${ordered.join("\n")}\n _ => raw.unknown().map(Self::Unknown),\n }\n }\n}${tagMethod}`, + ) + return name + } + + /** + * A method for every field that at least two members share with one Rust type, and for every field one level + * down that all members with its parent share (`time_created` for `time.created`). It returns the value itself when + * every member has it and an unknown member can supply it from JSON (a string or a scalar), else an `Option` + * that is `None` for the members without it. + */ + private shared(name: string, variants: Array<string>, types: Array<string>, tagKey: string) { + const resolve = (type: string): string => { + const target = this.aliases.get(type) + return target === undefined ? type : resolve(target) + } + const bare = (ident: string) => ident.replace(/^r#/, "") + type Entry = { name: string; keys: Array<string>; field: string; parent?: string } & ( + | { access: string } + | Pick<Accessor, "ret"> + ) + const entries = types.map((type): Array<Entry> => { + const inner = this.accessors.get(resolve(type)) + if (inner !== undefined) return [...inner].map(([method, accessor]) => ({ name: method, ...accessor })) + return (this.structs.get(resolve(type)) ?? []).flatMap( + (field): Array<Entry> => [ + { name: field.ident, keys: [field.key], field: field.type, access: field.ident }, + ...(this.structs.get(resolve(field.type)) ?? []).map((leaf) => ({ + name: `${bare(field.ident)}_${bare(leaf.ident)}`, + keys: [field.key, leaf.key], + field: leaf.type, + parent: field.ident, + access: `${field.ident}.${leaf.ident}`, + })), + ], + ) + }) + const names = [...new Set(entries.flat().map((entry) => entry.name))].filter( + (method) => method !== "tag" && method !== snake(tagKey), + ) + const candidates = names.flatMap((method) => { + const slots = entries.map((member) => member.find((entry) => entry.name === method)) + const present = slots.filter((slot) => slot !== undefined) + const first = present[0] + if (present.length < 2) return [] + if (present.some((slot) => slot.field !== first.field || slot.keys.join("/") !== first.keys.join("/"))) return [] + // A nested field must be in every member that has its parent: `durable.seq`, not `data.inboxID`. + const parent = present.find((slot) => slot.parent !== undefined)?.parent + const parents = entries.filter((member) => + member.some((entry) => entry.name === parent || entry.parent === parent), + ) + if (parent !== undefined && parents.length !== present.length) return [] + return [{ method, slots, first, parent }] + }) + const table = new Map<string, Accessor>() + const methods = candidates.flatMap((item) => { + const optional = /^Option<(.*)>$/.exec(item.first.field) + if (optional !== null && optional[1].startsWith("Option<")) return [] + const base = optional === null ? item.first.field : optional[1] + const scalar = this.scalars.get(base) + const element = /^Vec<(.*)>$/.exec(base)?.[1] + const kind = + base === "String" || this.strings.has(base) + ? "str" + : scalar !== undefined + ? "scalar" + : element !== undefined + ? "slice" + : "ref" + const every = item.slots.every((slot) => slot !== undefined && !("ret" in slot && slot.ret.startsWith("Option<"))) + const plain = every && optional === null && (kind === "str" || kind === "scalar") + const value = { str: "&str", scalar: base, slice: `&[${element}]`, ref: `&${base}` }[kind] + const ret = plain ? value : `Option<${value}>` + const read = (slot: Entry) => { + if ("ret" in slot) return slot.ret === ret ? `value.${item.method}()` : `Some(value.${item.method}())` + const field = `value.${slot.access}` + if (plain) return kind === "str" ? `${field}.as_str()` : field + if (optional === null) + return `Some(${{ str: `${field}.as_str()`, scalar: field, slice: `${field}.as_slice()`, ref: `&${field}` }[kind]})` + if (kind === "str") return base === "String" ? `${field}.as_deref()` : `${field}.as_ref().map(${base}::as_str)` + return { scalar: field, slice: `${field}.as_deref()`, ref: `${field}.as_ref()` }[kind] + } + const arms = item.slots.flatMap((slot, index) => + slot === undefined ? [] : [` Self::${variants[index]}(value) => ${read(slot)},`], + ) + const absent = [ + ...item.slots.flatMap((slot, index) => (slot === undefined ? [`Self::${variants[index]}(_)`] : [])), + "Self::Unknown(_)", + ] + const json = + item.first.keys.length === 1 + ? `.get(${JSON.stringify(item.first.keys[0])})` + : `.pointer(${JSON.stringify(`/${item.first.keys.join("/")}`)})` + const unknown = plain + ? ` Self::Unknown(value) => value${json}.and_then(serde_json::Value::as_${kind === "str" ? "str" : scalar}).unwrap_or_default(),` + : ` ${absent.join(" | ")} => None,` + table.set(item.method, { keys: item.first.keys, field: item.first.field, ret, parent: item.parent }) + const doc = plain ? "also of an unknown member" : "of the members that have it" + return [ + ` /// The \`${item.first.keys.join(".")}\` field, ${doc}.\n pub fn ${item.method}(&self) -> ${ret} {\n match self {\n${arms.join("\n")}\n${unknown}\n }\n }`, + ] + }) + this.accessors.set(name, table) + return methods + } + + private untagged(members: Array<R>, seed: string, ref: string | undefined) { + const name = this.name(seed) + const seen = new Map<string, string>() + const guards = new Map<string, Array<[string, string | boolean]>>() + for (const member of members) { + const resolved = this.deref(member) + const variant = + member._tag === "Reference" && resolved._tag !== "String" + ? pascal(member.$ref.split(".").at(-1)!) + : resolved._tag === "Literal" + ? typeof resolved.literal === "string" + ? "String" + : typeof resolved.literal === "boolean" + ? "Bool" + : "Number" + : (( + { + String: "String", + TemplateLiteral: "String", + Boolean: "Bool", + Number: "Number", + Arrays: "Array", + Objects: "Object", + } as Record<string, string> + )[resolved._tag] ?? "Value") + const type = + resolved._tag === "Literal" + ? typeof resolved.literal === "string" + ? "String" + : typeof resolved.literal === "boolean" + ? "bool" + : "f64" + : this.type(member, `${name}${variant}`) + if ([...seen.values()].includes(type)) continue + let unique = variant + for (let index = 2; seen.has(unique); index++) unique = `${variant}${index}` + seen.set(unique, type) + guards.set(unique, resolved._tag === "Objects" ? this.literalFields(resolved) : []) + } + // Members are tried in schema order, as serde's untagged enums and Effect's unions do. A member whose + // required literal field (`disabled: true`) holds another value is skipped, since the Rust field is a + // plain `bool` or `String`; otherwise `{ command, disabled: false }` would decode as `{ disabled }`. + const attempts = [...seen.keys()].map((variant) => { + const checks = guards + .get(variant)! + .map( + ([key, literal]) => + `raw.field(${JSON.stringify(key)}).${typeof literal === "boolean" ? "as_bool" : "as_str"}() == Some(${JSON.stringify(literal)})`, + ) + const attempt = `if let Ok(member) = raw.decode() {\n return Ok(Self::${variant}(member));\n }` + return checks.length === 0 + ? ` ${attempt}` + : ` if ${checks.join(" && ")} {\n ${attempt.replaceAll("\n", "\n ")}\n }` + }) + const doc = ref === undefined ? "" : `/// \`${ref}\`\n` + this.items.push( + `${doc}#[derive(Debug, Clone, PartialEq, Serialize)]\n#[serde(untagged)]\npub enum ${name} {\n${[...seen].map(([variant, type]) => ` ${variant}(${this.floats.has(type) ? '#[serde(serialize_with = "crate::ser::number")] ' : ""}${type}),`).join("\n")}\n /// A shape this client does not know, kept as it arrived.\n Unknown(serde_json::Value),\n}\n\nimpl<'de> Deserialize<'de> for ${name} {\n fn deserialize<D: serde::Deserializer<'de>>(deserializer: D) -> Result<Self, D::Error> {\n crate::de::union(deserializer, Self::from_raw)\n }\n}\n\nimpl ${name} {\n fn from_raw(raw: &crate::de::Raw) -> Result<Self, serde_json::Error> {\n${attempts.join("\n")}\n raw.unknown().map(Self::Unknown)\n }\n}`, + ) + return name + } + + /** The required fields of an object whose schema is one string or boolean literal. */ + private literalFields(r: Objects): Array<[string, string | boolean]> { + return r.propertySignatures.flatMap((property): Array<[string, string | boolean]> => { + if (property.isOptional) return [] + const type = this.deref(property.type) + if (type._tag !== "Literal" || (typeof type.literal !== "string" && typeof type.literal !== "boolean")) return [] + return [[String(property.name), type.literal]] + }) + } +} + +/** + * A union as Rust decodes it. `null` and `undefined` members are alike (`Option` accepts both), and the + * JSON transport's non-finite number literals beside a number are dropped, so `Number` on the SSE side + * equals `Number | "Infinity" | "-Infinity" | "NaN"` on the REST side. + */ +function wire(r: R): R { + if (r._tag !== "Union") return r + const members = flatten(r.types) + const number = members.some((member) => member._tag === "Number") + const kept = members.flatMap((member): Array<R> => { + if (member._tag === "Null") return [{ ...member, _tag: "Undefined" } as R] + if (number && member._tag === "Literal" && ["Infinity", "-Infinity", "NaN"].includes(String(member.literal))) + return [] + return [member] + }) + return kept.length === 1 ? kept[0] : { ...r, types: kept } +} + +function flatten(types: ReadonlyArray<R>): Array<R> { + return types.flatMap((type) => (type._tag === "Union" ? flatten(type.types) : [type])) +} + +function integer(r: SchemaRepresentation.Number) { + const visit = (checks: ReadonlyArray<SchemaRepresentation.Check>): boolean => + checks.some((check) => + check._tag === "Filter" ? check.representation?.id === "effect/schema/isInt" : visit(check.checks), + ) + return visit(r.checks) +} + +function literalType(literal: unknown) { + if (typeof literal === "string") return "String" + if (typeof literal === "boolean") return "bool" + if (typeof literal === "number") return Number.isInteger(literal) ? "i64" : "f64" + return "serde_json::Value" +} + +function newtype(name: string, ref: string) { + return `string_type!(${name}, ${JSON.stringify("`" + ref + "`")});` +} + +function uniqueVariants(names: Array<string>) { + const seen = new Set<string>(["Unknown"]) + return names.map((name) => { + let unique = name + for (let index = 2; seen.has(unique); index++) unique = `${name}${index}` + seen.add(unique) + return unique + }) +} + +function docOf(annotations: { readonly [key: string]: unknown } | undefined) { + const description = annotations?.description + if (typeof description !== "string" || description === "") return "" + return description + .split("\n") + .map((line) => ` /// ${line}`.trimEnd() + "\n") + .join("") +} diff --git a/packages/cli-rs/script/zip.ts b/packages/cli-rs/script/zip.ts new file mode 100644 index 000000000000..b08b1213f818 --- /dev/null +++ b/packages/cli-rs/script/zip.ts @@ -0,0 +1,30 @@ +import { inflateRawSync } from "node:zlib" + +/** The files of a flat zip (stored or deflated), by name, read from its central directory; `fail` gets what is wrong. */ +export function unzip(bytes: Uint8Array, zip: string, fail: (message: string) => never) { + const view = new DataView(bytes.buffer, bytes.byteOffset, bytes.byteLength) + const end = Array.from({ length: Math.min(bytes.length - 21, 65_558) }, (_, back) => bytes.length - 22 - back).find( + (at) => at >= 0 && view.getUint32(at, true) === 0x06054b50, + ) + if (end === undefined) fail(`${zip} is not a zip`) + const count = view.getUint16(end + 10, true) + const files = new Map<string, Uint8Array>() + let entry = view.getUint32(end + 16, true) + for (let index = 0; index < count; index++) { + if (view.getUint32(entry, true) !== 0x02014b50) fail(`${zip}: a broken central directory`) + const method = view.getUint16(entry + 10, true) + const size = view.getUint32(entry + 20, true) + const length = view.getUint32(entry + 24, true) + const name = new TextDecoder().decode(bytes.subarray(entry + 46, entry + 46 + view.getUint16(entry + 28, true))) + const local = view.getUint32(entry + 42, true) + entry += 46 + view.getUint16(entry + 28, true) + view.getUint16(entry + 30, true) + view.getUint16(entry + 32, true) + if (name.endsWith("/")) continue + if (/[\\/]|^\.\.?$/.test(name)) fail(`${zip}: an entry outside the directory: ${name}`) + const start = local + 30 + view.getUint16(local + 26, true) + view.getUint16(local + 28, true) + const data = bytes.subarray(start, start + size) + const content = method === 0 ? data : method === 8 ? new Uint8Array(inflateRawSync(data)) : undefined + if (!content || content.length !== length) fail(`${zip}: cannot read ${name} (method ${method})`) + files.set(name, content) + } + return files +} diff --git a/packages/cli-rs/tsconfig.json b/packages/cli-rs/tsconfig.json new file mode 100644 index 000000000000..7a7b204b9984 --- /dev/null +++ b/packages/cli-rs/tsconfig.json @@ -0,0 +1,15 @@ +{ + "$schema": "https://json.schemastore.org/tsconfig", + "extends": "@tsconfig/bun/tsconfig.json", + "compilerOptions": { + "types": ["bun"], + "jsx": "preserve", + "jsxImportSource": "@opentui/solid", + "noUnusedLocals": true, + "lib": ["ESNext", "DOM", "DOM.Iterable"], + "noUncheckedIndexedAccess": false + }, + "include": ["script", "parity"], + // Oracle harnesses that import TUI sources need the TUI's Solid JSX settings; they run from packages/tui. + "exclude": ["parity/oracle/*/"] +} diff --git a/packages/cli/test/acp/subprocess.ts b/packages/cli/test/acp/subprocess.ts index 4ff7ddb5989f..c1c0735f57e4 100644 --- a/packages/cli/test/acp/subprocess.ts +++ b/packages/cli/test/acp/subprocess.ts @@ -36,7 +36,7 @@ type Waiter = { type AcpProcess = { readonly pid: number readonly exited: Promise<number> - readonly request: <T>(method: string, params?: unknown) => Promise<JsonRpcResponse<T>> + readonly request: <T>(method: string, params?: unknown, timeoutMs?: number) => Promise<JsonRpcResponse<T>> readonly waitForMessage: (predicate: Waiter["predicate"], description: string) => Promise<JsonRpcMessage> readonly close: () => Promise<number> readonly stderr: () => string @@ -122,12 +122,19 @@ async function removeRoot(root: string, deadline = Date.now() + 15_000): Promise } export function initialize(acp: AcpProcess) { + // A cold agent starts its own server and loads its plugins before it can answer; on the merge lane's loaded box + // that has taken over 20 s (both sides failed their first request in suites-20261118-210025). The suites' own + // budget is 60 s, so the first request waits most of it rather than failing while the agent is still starting. return acp - .request<InitializeResponse>("initialize", { - protocolVersion: 1, - clientCapabilities: { _meta: { "terminal-auth": true } }, - clientInfo: { name: "opencode-local-acp", version: "0.1.0" }, - }) + .request<InitializeResponse>( + "initialize", + { + protocolVersion: 1, + clientCapabilities: { _meta: { "terminal-auth": true } }, + clientInfo: { name: "opencode-local-acp", version: "0.1.0" }, + }, + 50_000, + ) .then(expectOk) } @@ -200,7 +207,9 @@ function verifierConfig(llmUrl: string) { } function spawnAcp(input: { readonly env: Record<string, string | undefined> }): AcpProcess { - const child = Bun.spawn([process.execPath, "run", "src/index.ts", "acp"], { + // OPENCODE_ACP_TEST_BIN runs the suites against another ACP binary, such as the Rust client. + const override = process.env.OPENCODE_ACP_TEST_BIN + const child = Bun.spawn(override ? [override, "acp"] : [process.execPath, "run", "src/index.ts", "acp"], { cwd: path.join(import.meta.dir, "../.."), env: input.env, stdin: "pipe", @@ -293,12 +302,16 @@ function spawnAcp(input: { readonly env: Record<string, string | undefined> }): await child.stdin.flush() } - const request = <T>(method: string, params?: unknown) => { + const request = <T>(method: string, params?: unknown, timeoutMs = 20_000) => { const id = nextID++ const message: JsonRpcRequest = params === undefined ? { jsonrpc: "2.0", id, method } : { jsonrpc: "2.0", id, method, params } return write(message).then(async () => { - const response = await take((message) => isResponse(message) && message.id === id, 20_000, `${method} response`) + const response = await take( + (message) => isResponse(message) && message.id === id, + timeoutMs, + `${method} response`, + ) if (!isResponse<T>(response)) throw new Error(`Invalid ACP response: ${JSON.stringify(response)}`) return response }) diff --git a/packages/tui/test/fixture/app.ts b/packages/tui/test/fixture/app.ts index f8dd14b58eb0..29c3b14568f4 100644 --- a/packages/tui/test/fixture/app.ts +++ b/packages/tui/test/fixture/app.ts @@ -17,6 +17,8 @@ export async function createAppFixture( fetch?: FetchHandler // A renderer whose owner already set up its terminal, such as the simulation renderer. setup?: TestRendererSetup + // Where plugins named by npm package come from; by default none resolves. + packages?: TuiInput["packages"] } = {}, ) { const { run } = await import("../../src/app") @@ -56,7 +58,7 @@ export async function createAppFixture( return next }, }, - packages: { prepare: async () => ({ directory: "" }) }, + packages: input.packages ?? { prepare: async () => ({ directory: "" }) }, terminalHandoff: async () => ({ renderer: setup.renderer, mode: "dark", complete: ready.resolve }), args: input.args ?? {}, log: () => {},