A modern terminal with a built-in multiplexer: close it and your sessions keep running. Run shells and tons of AI agents across your machines, then pick them up from desktop, browser, TUI and more. Written in Rust with no UI framework: interface drawn straight on the GPU. No Electron, GPUI or webview.
Rust agentagent-orchestrationaiai-agentsclaude-codecodexcoding-agentlinuxmacosmultiplayermultiplexerrustterminalterminal-emulatorterminal-multiplexertmuxtuiweztermwindows
build: ship thinkterm-tailnet with the mux server
RoversX1ef9ff8aa210
diff --git a/.github/workflows/release.yml b/.github/workflows/release.ymlindex 7c563d01..67401321 100644--- a/.github/workflows/release.yml+++ b/.github/workflows/release.yml@@ -353,6 +353,7 @@ jobs:-p wezterm-gui \-p wezterm-mux-server \-p thinkterm-plugin-server \+ -p thinkterm-tailnet-node \-p strip-ansi-escapes- name: Fetch the browser bundle@@ -612,6 +613,7 @@ jobs:-p wezterm-gui \-p wezterm-mux-server \-p thinkterm-plugin-server \+ -p thinkterm-tailnet-node \-p strip-ansi-escapes- name: Fetch the browser bundlediff --git a/README.de-DE.md b/README.de-DE.mdindex 095cd9b4..0c0b0d4a 100644--- a/README.de-DE.md+++ b/README.de-DE.md@@ -133,7 +133,7 @@ Für einen Desktop-Build unter macOS oder Linux installierst du Rust und die Buigit clone --recursive https://github.com/RoversX/ThinkTerm.gitcd ThinkTerm./get-deps-cargo build --release -p wezterm -p wezterm-gui -p wezterm-mux-server -p thinkterm-plugin-server+cargo build --release -p wezterm -p wezterm-gui -p wezterm-mux-server -p thinkterm-plugin-server -p thinkterm-tailnet-node```Die ausführbaren Dateien liegen anschließend unter `target/release`. Quellcodestruktur und Entwicklungsablauf stehen im [Leitfaden für Beiträge](CONTRIBUTING.md). Das [Web-Build-Skript](ci/build-web.sh) erstellt die separaten Web-Ressourcen. Die mobilen Builds starten über [ios/build.sh](ios/build.sh) und [android/build.sh](android/build.sh).diff --git a/README.fr-FR.md b/README.fr-FR.mdindex 038f9f8f..b9539bb0 100644--- a/README.fr-FR.md+++ b/README.fr-FR.md@@ -133,7 +133,7 @@ Pour compiler l'application de bureau sur macOS ou Linux, installez Rust et lesgit clone --recursive https://github.com/RoversX/ThinkTerm.gitcd ThinkTerm./get-deps-cargo build --release -p wezterm -p wezterm-gui -p wezterm-mux-server -p thinkterm-plugin-server+cargo build --release -p wezterm -p wezterm-gui -p wezterm-mux-server -p thinkterm-plugin-server -p thinkterm-tailnet-node```Les exécutables sont créés dans `target/release`. Consultez le [guide de contribution](CONTRIBUTING.md) pour l'organisation du code et le processus de développement. Le [script de compilation web](ci/build-web.sh) produit les ressources Web séparément ; les points d'entrée mobiles sont [ios/build.sh](ios/build.sh) et [android/build.sh](android/build.sh).diff --git a/README.ja-JP.md b/README.ja-JP.mdindex 6b0eb3e5..def5d70e 100644--- a/README.ja-JP.md+++ b/README.ja-JP.md@@ -133,7 +133,7 @@ macOS または Linux でデスクトップ版をビルドするには、Rustgit clone --recursive https://github.com/RoversX/ThinkTerm.gitcd ThinkTerm./get-deps-cargo build --release -p wezterm -p wezterm-gui -p wezterm-mux-server -p thinkterm-plugin-server+cargo build --release -p wezterm -p wezterm-gui -p wezterm-mux-server -p thinkterm-plugin-server -p thinkterm-tailnet-node```実行ファイルは `target/release` に生成されます。ソース構成と開発手順は[貢献ガイド](CONTRIBUTING.md)をご覧ください。[ブラウザー用ビルドスクリプト](ci/build-web.sh)で Web リソースを別途ビルドします。モバイル版のビルドには [ios/build.sh](ios/build.sh) と [android/build.sh](android/build.sh)を使用します。diff --git a/README.md b/README.mdindex 5b1d0480..65c32da3 100644--- a/README.md+++ b/README.md@@ -135,7 +135,7 @@ For a desktop build on macOS or Linux, install Rust and your platform's build togit clone --recursive https://github.com/RoversX/ThinkTerm.gitcd ThinkTerm./get-deps-cargo build --release -p wezterm -p wezterm-gui -p wezterm-mux-server -p thinkterm-plugin-server+cargo build --release -p wezterm -p wezterm-gui -p wezterm-mux-server -p thinkterm-plugin-server -p thinkterm-tailnet-node```The binaries are written to `target/release`. See [Contributing](CONTRIBUTING.md) for the source layout and development workflow. The [browser build script](ci/build-web.sh) builds the separate Web assets; mobile build entry points are [ios/build.sh](ios/build.sh) and [android/build.sh](android/build.sh).diff --git a/README.zh-CN.md b/README.zh-CN.mdindex b0833f09..904c1cc6 100644--- a/README.zh-CN.md+++ b/README.zh-CN.md@@ -133,7 +133,7 @@ TUI 支持工作空间导航、标签页、分屏、调整大小、复制模式git clone --recursive https://github.com/RoversX/ThinkTerm.gitcd ThinkTerm./get-deps-cargo build --release -p wezterm -p wezterm-gui -p wezterm-mux-server -p thinkterm-plugin-server+cargo build --release -p wezterm -p wezterm-gui -p wezterm-mux-server -p thinkterm-plugin-server -p thinkterm-tailnet-node```生成的可执行文件位于 `target/release`。源码结构和开发流程见[贡献指南](CONTRIBUTING.md)。[浏览器构建脚本](ci/build-web.sh) 用于构建独立的 Web 资源;移动端构建入口为 [ios/build.sh](ios/build.sh) 和 [android/build.sh](android/build.sh)。diff --git a/assets/flatpak/com.roversx.thinkterm.json b/assets/flatpak/com.roversx.thinkterm.jsonindex 7c0e1ec7..465207f5 100644--- a/assets/flatpak/com.roversx.thinkterm.json+++ b/assets/flatpak/com.roversx.thinkterm.json@@ -45,6 +45,7 @@"install -Dm755 ./target/release/thinkterm-gui -t /app/bin/","install -Dm755 ./target/release/thinkterm-mux-server -t /app/bin/","install -Dm755 ./target/release/thinkterm-plugin-server -t /app/bin/",+ "install -Dm755 ./target/release/thinkterm-tailnet -t /app/bin/","install -Dm755 ./target/release/strip-ansi-escapes -t /app/bin/","install -Dm644 assets/shell-integration/* -t /app/extra/export/share/etc/profile.d","install -Dm644 assets/shell-completion/zsh /app/extra/export/share/zsh/site-functions/_thinkterm",diff --git a/assets/flatpak/com.roversx.thinkterm.template.json b/assets/flatpak/com.roversx.thinkterm.template.jsonindex 4707dade..9813fee4 100644--- a/assets/flatpak/com.roversx.thinkterm.template.json+++ b/assets/flatpak/com.roversx.thinkterm.template.json@@ -40,6 +40,7 @@"install -Dm755 ./target/release/thinkterm-gui -t /app/bin/","install -Dm755 ./target/release/thinkterm-mux-server -t /app/bin/","install -Dm755 ./target/release/thinkterm-plugin-server -t /app/bin/",+ "install -Dm755 ./target/release/thinkterm-tailnet -t /app/bin/","install -Dm755 ./target/release/strip-ansi-escapes -t /app/bin/","install -Dm644 assets/shell-integration/* -t /app/extra/export/share/etc/profile.d","install -Dm644 assets/shell-completion/zsh /app/extra/export/share/zsh/site-functions/_thinkterm",diff --git a/ci/PKGBUILD.template b/ci/PKGBUILD.templateindex 9b21ed0b..2e176442 100644--- a/ci/PKGBUILD.template+++ b/ci/PKGBUILD.template@@ -53,6 +53,7 @@ package() {install -Dm755 squashfs-root/usr/bin/thinkterm-gui -t "${pkgdir}/usr/bin/"install -Dm755 squashfs-root/usr/bin/thinkterm-mux-server -t "${pkgdir}/usr/bin/"install -Dm755 squashfs-root/usr/bin/thinkterm-plugin-server -t "${pkgdir}/usr/bin/"+ install -Dm755 squashfs-root/usr/bin/thinkterm-tailnet -t "${pkgdir}/usr/bin/"install -Dm644 squashfs-root/usr/share/doc/thinkterm/LICENSE.md \squashfs-root/usr/share/doc/thinkterm/LICENSE-MIT \squashfs-root/usr/share/doc/thinkterm/NOTICE \diff --git a/ci/appimage.sh b/ci/appimage.shindex 44124b1f..238d6e6e 100755--- a/ci/appimage.sh+++ b/ci/appimage.sh@@ -12,6 +12,7 @@ install -Dsm755 -t AppDir/usr/bin target/$PROFILE/thinkterminstall -Dsm755 -t AppDir/usr/bin target/$PROFILE/wezterminstall -Dsm755 -t AppDir/usr/bin target/$PROFILE/thinkterm-guiinstall -Dsm755 -t AppDir/usr/bin target/$PROFILE/thinkterm-plugin-server+install -Dsm755 -t AppDir/usr/bin target/$PROFILE/thinkterm-tailnetinstall -Dsm755 -t AppDir/usr/bin target/$PROFILE/strip-ansi-escapesinstall -Dm644 assets/icon/terminal.png AppDir/usr/share/icons/hicolor/128x128/apps/com.roversx.thinkterm.pnginstall -Dm644 assets/wezterm.desktop AppDir/usr/share/applications/com.roversx.thinkterm.desktopdiff --git a/ci/deploy.sh b/ci/deploy.shindex 4ef78f5d..5ff9ab43 100755--- a/ci/deploy.sh+++ b/ci/deploy.sh@@ -133,7 +133,7 @@ case $OSTYPE inesacfi- for bin in wezterm thinkterm thinkterm-mux-server thinkterm-gui thinkterm-plugin-server strip-ansi-escapes ; do+ for bin in wezterm thinkterm thinkterm-mux-server thinkterm-gui thinkterm-plugin-server thinkterm-tailnet strip-ansi-escapes ; doif [[ -n "$macos_bin_dir" ]] ; thencp $macos_bin_dir/$bin $zipdir/ThinkTerm.app/Contents/MacOS/$bin# If the user ran a simple `cargo build --release`, then we want to allow@@ -155,7 +155,7 @@ case $OSTYPE in# report's addresses can be resolved against the matching build.symdir="$zipdir-dSYM"rm -rf "$symdir" "$symdir.zip"- for bin in wezterm thinkterm thinkterm-mux-server thinkterm-gui thinkterm-plugin-server strip-ansi-escapes ; do+ for bin in wezterm thinkterm thinkterm-mux-server thinkterm-gui thinkterm-plugin-server thinkterm-tailnet strip-ansi-escapes ; dodsym="${macos_bin_dir:-$TARGET_DIR/$PROFILE}/$bin.dSYM"if [[ -d "$dsym" ]] ; thenmkdir -p "$symdir"@@ -395,7 +395,7 @@ source ~/.cargo/envcargo build --profile ${PROFILE} \-p wezterm-gui -p wezterm -p wezterm-mux-server \- -p thinkterm-plugin-server -p strip-ansi-escapes+ -p thinkterm-plugin-server -p thinkterm-tailnet-node -p strip-ansi-escapesBUILDEOFEOF)BUILD_REQUIRES=$(cat <<BREQEOF@@ -490,6 +490,7 @@ install -Dsm755 $TARGET_DIR/$PROFILE/thinkterm -t %{buildroot}/usr/bininstall -Dsm755 $TARGET_DIR/$PROFILE/wezterm -t %{buildroot}/usr/bininstall -Dsm755 $TARGET_DIR/$PROFILE/thinkterm-gui -t %{buildroot}/usr/bininstall -Dsm755 $TARGET_DIR/$PROFILE/thinkterm-plugin-server -t %{buildroot}/usr/bin+install -Dsm755 $TARGET_DIR/$PROFILE/thinkterm-tailnet -t %{buildroot}/usr/bininstall -Dsm755 $TARGET_DIR/$PROFILE/thinkterm-mux-server -t %{buildroot}/usr/bininstall -Dsm755 $TARGET_DIR/$PROFILE/strip-ansi-escapes -t %{buildroot}/usr/bininstall -Dm644 assets/shell-integration/* -t %{buildroot}/etc/profile.d@@ -517,6 +518,7 @@ ${RPM_WEB_INSTALL}/usr/bin/wezterm/usr/bin/thinkterm-gui/usr/bin/thinkterm-plugin-server+/usr/bin/thinkterm-tailnet/usr/bin/thinkterm-mux-server/usr/bin/strip-ansi-escapes/usr/bin/open-thinkterm-here@@ -538,6 +540,7 @@ ${RPM_WEB_FILES}/usr/bin/thinkterm/usr/bin/wezterm/usr/bin/thinkterm-plugin-server+/usr/bin/thinkterm-tailnet/usr/bin/thinkterm-mux-server/usr/bin/strip-ansi-escapes/usr/share/licenses/thinkterm-server/*@@ -656,6 +659,7 @@ EOFinstall -Dsm755 -t $root/usr/bin $TARGET_DIR/$PROFILE/thinkterm-mux-serverinstall -Dsm755 -t $root/usr/bin $TARGET_DIR/$PROFILE/thinkterm-plugin-server+ install -Dsm755 -t $root/usr/bin $TARGET_DIR/$PROFILE/thinkterm-tailnetinstall -Dsm755 -t $root/usr/bin $TARGET_DIR/$PROFILE/thinkterminstall -Dsm755 -t $root/usr/bin $TARGET_DIR/$PROFILE/wezterminstall -Dsm755 -t $root/usr/bin $TARGET_DIR/$PROFILE/strip-ansi-escapes@@ -758,12 +762,14 @@ EOF$TARGET_DIR/$PROFILE/thinkterm-mux-server \$TARGET_DIR/$PROFILE/thinkterm-gui \$TARGET_DIR/$PROFILE/thinkterm-plugin-server \+ $TARGET_DIR/$PROFILE/thinkterm-tailnet \$TARGET_DIR/$PROFILE/strip-ansi-escapeslinux_tarball thinkterm-server \$TARGET_DIR/$PROFILE/thinkterm \$TARGET_DIR/$PROFILE/wezterm \$TARGET_DIR/$PROFILE/thinkterm-mux-server \$TARGET_DIR/$PROFILE/thinkterm-plugin-server \+ $TARGET_DIR/$PROFILE/thinkterm-tailnet \$TARGET_DIR/$PROFILE/strip-ansi-escapes;;esac@@ -792,6 +798,7 @@ source="$TARGET_DIR/$PROFILE/thinkterm-gui$TARGET_DIR/$PROFILE/thinkterm-mux-server$TARGET_DIR/$PROFILE/thinkterm-plugin-server+ $TARGET_DIR/$PROFILE/thinkterm-tailnetassets/open-thinkterm-hereassets/open-wezterm-hereassets/wezterm.desktop@@ -817,6 +824,7 @@ package() {install -Dm755 -t "\$pkgdir"/usr/bin "\$srcdir"/thinkterm-guiinstall -Dm755 -t "\$pkgdir"/usr/bin "\$srcdir"/thinkterm-mux-serverinstall -Dm755 -t "\$pkgdir"/usr/bin "\$srcdir"/thinkterm-plugin-server+ install -Dm755 -t "\$pkgdir"/usr/bin "\$srcdir"/thinkterm-tailnetinstall -Dm644 "\$srcdir"/wezterm.desktop "\$pkgdir"/usr/share/applications/com.roversx.thinkterm.desktopinstall -Dm644 "\$srcdir"/wezterm.appdata.xml "\$pkgdir"/usr/share/metainfo/com.roversx.thinkterm.appdata.xmldiff --git a/ci/macos-package.sh b/ci/macos-package.shindex 2d75ddcc..228ccc4f 100755--- a/ci/macos-package.sh+++ b/ci/macos-package.sh@@ -347,7 +347,7 @@ EOTecho " notarization credentials: profile '$NOTARY_PROFILE' works"fi-BINARIES="wezterm thinkterm thinkterm-mux-server thinkterm-gui thinkterm-plugin-server strip-ansi-escapes"+BINARIES="wezterm thinkterm thinkterm-mux-server thinkterm-gui thinkterm-plugin-server thinkterm-tailnet strip-ansi-escapes"if [[ "$BUILD" == yes ]]; thenif ! rustup target list --installed 2>/dev/null | grep -qx "$RUST_TARGET"; then@@ -359,14 +359,15 @@ if [[ "$BUILD" == yes ]]; thenechoecho "==> Building for $ARCH ($PROFILE profile)"- # The same five packages the release workflow builds, which between them- # produce all six binaries the bundle carries. Building the whole+ # The same six packages the release workflow builds, which between them+ # produce all seven binaries the bundle carries. Building the whole# workspace instead would compile crates no package ships.cargo build --profile "$PROFILE" --target "$RUST_TARGET" \-p wezterm \-p wezterm-gui \-p wezterm-mux-server \-p thinkterm-plugin-server \+ -p thinkterm-tailnet-node \-p strip-ansi-escapesechoecho "==> Building the browser client"diff --git a/thinkterm-update/src/lib.rs b/thinkterm-update/src/lib.rsindex 05e93657..d5161102 100644--- a/thinkterm-update/src/lib.rs+++ b/thinkterm-update/src/lib.rs@@ -62,8 +62,8 @@ pub fn build_from_source_instructions(version: &str) -> String {format!("Build ThinkTerm {version} from source on that host instead:\n \{checkout}\n \- cd thinkterm && ./get-deps && cargo build --release -p wezterm -p wezterm-mux-server -p thinkterm-plugin-server\n \- install -Dm755 target/release/thinkterm target/release/wezterm target/release/thinkterm-mux-server target/release/thinkterm-plugin-server -t ~/.local/bin\n\+ cd thinkterm && ./get-deps && cargo build --release -p wezterm -p wezterm-mux-server -p thinkterm-plugin-server -p thinkterm-tailnet-node\n \+ install -Dm755 target/release/thinkterm target/release/wezterm target/release/thinkterm-mux-server target/release/thinkterm-plugin-server target/release/thinkterm-tailnet -t ~/.local/bin\n\then stop the old thinkterm-mux-server there and reconnect.")}@@ -1174,6 +1174,7 @@ mod tests {text.contains("target/release/thinkterm-plugin-server"),"{text}");+ assert!(text.contains("target/release/thinkterm-tailnet "), "{text}");}#[test]