Builds one self-contained binary with `bun build --compile`. npm deps
come from a fixed-output derivation (this nixpkgs has no bun fetcher);
the vendored t3code submodule is grafted from a pinned flake input
(same commit as the submodule) because git flake sources don't include
submodule contents. The binary is a Bun SEA, so strip/patchelf are
disabled on the package. link-vendor now chmods copied vendor files
writable before patching (nix store sources are read-only).
Verified: nix build .#t3tui -> bin/t3tui version prints 0.2.0.
Generated by Mistral Vibe.
Co-Authored-By: Mistral Vibe <vibe@mistral.ai>
- vendor/t3code submodule pinned to 42c9107983; deps in package.json
aligned with the upstream catalog, including upstream's effect@4.1.5
patch via patchedDependencies (patches/effect@4.1.5.patch)
- nix flake.nix devShell provides bun locally (no guix home install)
- scripts/link-vendor.ts now copies the vendored packages into
node_modules/@t3tools and applies tscPatches for the spots where
classic tsc can't infer what upstream's Effect language service can,
so `bun run typecheck` runs clean under full strict mode
- protocol drift fixes across model/ui/client: usage-limit copy, context
window snapshot, checkpoint totals, turn diff summaries, alert
observation, "once" schedules, composer trigger kinds, PR keying,
thread menu state, secret request answers, terminal summaries,
snapshot-required shell events, revert checkpoint lookup
- new parity features over the typed RPC: fork a turn into a new thread,
rewind a message with its attachments restored to the composer, guest
share links and turn-into-project in the thread menu
- tests updated and added (301 pass); typecheck, lint and build clean
Generated by Mistral Vibe.
Co-Authored-By: Mistral Vibe <vibe@mistral.ai>
Build a windows-x64 binary and add install.ps1. The editor, browser links, paths, clipboard images and t3tui upgrade all learn Windows' way of doing things; t3tui tmux says it needs WSL.
Installing meant Bun, a clone with the T3 Code submodule and a build. Now
a tag builds a binary per platform with bun build --compile, carrying
Bun's runtime and OpenTUI's native library, and publishes them as a
GitHub Release after opening each one's dashboard on its own OS.
install.sh picks the right binary and checks it against SHA256SUMS;
`t3tui upgrade` replaces an installed binary with the latest release and
`t3tui version` prints the version. `t3tui tmux` started its windows as
`bun <file>`, which a compiled binary can't do, so it now runs itself.
The native library now comes from a package per platform, so the bundle
leaves those imports to run time. A SyntaxStyle belongs to the renderer
that made it, so the markdown style is kept per renderer.
The command, package, env vars (T3TUI_*), config folder, tmux session and
the session label it issues itself. An existing ~/.config/tui3 moves to
~/.config/t3tui on the first run.
Running the TypeScript sources makes Bun compile and keep hundreds of
vendored modules, which cost 110-130 MB at startup. scripts/build.ts
bundles bin.ts and OpenTUI's syntax-highlighting worker into dist/;
bun install builds it, bun run build rebuilds it, and the tui3 bin runs
it. bun run dev still runs the sources.