From c326e71794b9fcd89cb4ae7c1242c6f636be3540 Mon Sep 17 00:00:00 2001 From: Tony Narlock Date: Mon, 26 Oct 2026 23:13:14 -0500 Subject: [PATCH 1/9] docs(ports[elixir]) Install libtmux from Hex with the 0.1 requirement why: The homepage example and the attaching guide told readers to install the published alpha with Mix.install([{:libtmux, "== 0.0.1-alpha.1"}]). Hex now carries libtmux 0.1.0, and the libtmux-elixir README documents the "~> 0.1" form. what: - Change the Mix.install requirement to "~> 0.1" in the homepage program and its concise, errors and cleanup views, and in connect.exs on the attaching-to-tmux guide; reword the "published alpha" sentence. - Point sourceRevision and sourceTree at release commit cac4252b and its tree; refresh the file, clipboard and excerpt hashes and the attach hash. - Record the tmux versions that ran as 3.3a and 3.8a. - Native runs with fresh MIX_HOME, HEX_HOME and MIX_INSTALL_DIR resolved libtmux 0.1.0 from Hex: all four homepage views on both tmux versions and the attach guide passed (Elixir 1.20.4, OTP 29, tmux 3.3a and 3.8a). --- .../ports/elixir/guides/attaching-to-tmux.md | 6 ++-- site/src/data/home-examples.json | 12 ++++---- site/test/fixtures/attach-examples.json | 4 +-- site/test/fixtures/home-examples.json | 30 +++++++++---------- 4 files changed, 26 insertions(+), 26 deletions(-) diff --git a/site/src/content/docs/ports/elixir/guides/attaching-to-tmux.md b/site/src/content/docs/ports/elixir/guides/attaching-to-tmux.md index 08f1d1aeb..7255b7677 100644 --- a/site/src/content/docs/ports/elixir/guides/attaching-to-tmux.md +++ b/site/src/content/docs/ports/elixir/guides/attaching-to-tmux.md @@ -23,10 +23,10 @@ covers interactive attachment and detaching. Save the complete program as `connect.exs`. The environment variable `LIBTMUX_SOCKET_PATH` selects the existing server. The launcher below sets it to a private socket for trying the example. The first line installs the -published alpha from Hex. +released 0.1 series from Hex. ```elixir title="connect.exs" -Mix.install([{:libtmux, "== 0.0.1-alpha.1"}]) +Mix.install([{:libtmux, "~> 0.1"}]) alias LibTmux.{Selection, Server, Snapshot} @@ -106,5 +106,5 @@ between those operations. Handle the creation error as well as the lookup. [Capture a pane and read it](../../examples/capture-and-read/) is a complete program that runs against an isolated server. -The [library source revision](https://github.com/libtmux/libtmux-elixir/tree/b72452c198917433229bdc266a68c163541b6127) +The [library source revision](https://github.com/libtmux/libtmux-elixir/tree/cac4252bfc52069980d47db2b7803dc9b33f36f1) records the implementation used by this example. diff --git a/site/src/data/home-examples.json b/site/src/data/home-examples.json index 24d28a1a6..e58c8fa76 100644 --- a/site/src/data/home-examples.json +++ b/site/src/data/home-examples.json @@ -581,8 +581,8 @@ "elixir": { "lang": "elixir", "sourceRepository": "libtmux/libtmux-elixir", - "sourceRevision": "6e6e88e886bdd9267fcd8be66f561dc5d5462476", - "sourceTree": "82a927e2c306379461b7cfba69cf31c9109c01f7", + "sourceRevision": "cac4252bfc52069980d47db2b7803dc9b33f36f1", + "sourceTree": "f2c639ac8c99fa284acf6d122aa7af7177e068a9", "program": "quickstart.exs", "excerpt": { "startLine": 1, @@ -594,7 +594,7 @@ { "name": "quickstart.exs", "lang": "elixir", - "code": "Mix.install([{:libtmux, \"== 0.0.1-alpha.1\"}])\n\nalias LibTmux.{Command, Selection, Server, Snapshot}\n\ntmux = System.find_executable(\"tmux\") || raise \"tmux is not on PATH\"\nid = Base.encode16(:crypto.strong_rand_bytes(8), case: :lower)\ndir = Path.join(System.tmp_dir!(), \"libtmux-\" <> id)\nsocket = Path.join(dir, \"tmux.sock\")\nFile.mkdir!(dir)\nFile.chmod!(dir, 0o700)\n\ntry do\n # libtmux works on a running server, so tmux itself starts the private one.\n create = [\"new-session\", \"-d\", \"-s\", \"demo\", \"/bin/cat\"]\n {_, 0} = System.cmd(tmux, [\"-S\", socket, \"-f\", \"/dev/null\" | create])\n\n server = Server.new(executable: tmux, socket: socket)\n split = Command.new(\"split-window\", [\"-t\", \"demo\", \"/bin/cat\"])\n logs = Command.new(\"new-window\", [\"-t\", \"demo\", \"-n\", \"logs\", \"/bin/cat\"])\n {:ok, _} = Server.run(server, split)\n {:ok, _} = Server.run(server, logs)\n\n snapshot = Server.snapshot!(server)\n session = snapshot |> Snapshot.sessions() |> Selection.one!()\n windows = snapshot |> Snapshot.windows() |> Selection.size()\n panes = snapshot |> Snapshot.panes() |> Selection.size()\n IO.puts(\"#{session.name}: #{windows} windows, #{panes} panes\")\nafter\n System.cmd(tmux, [\"-S\", socket, \"kill-server\"], stderr_to_stdout: true)\n File.rm_rf(dir)\nend\n" + "code": "Mix.install([{:libtmux, \"~> 0.1\"}])\n\nalias LibTmux.{Command, Selection, Server, Snapshot}\n\ntmux = System.find_executable(\"tmux\") || raise \"tmux is not on PATH\"\nid = Base.encode16(:crypto.strong_rand_bytes(8), case: :lower)\ndir = Path.join(System.tmp_dir!(), \"libtmux-\" <> id)\nsocket = Path.join(dir, \"tmux.sock\")\nFile.mkdir!(dir)\nFile.chmod!(dir, 0o700)\n\ntry do\n # libtmux works on a running server, so tmux itself starts the private one.\n create = [\"new-session\", \"-d\", \"-s\", \"demo\", \"/bin/cat\"]\n {_, 0} = System.cmd(tmux, [\"-S\", socket, \"-f\", \"/dev/null\" | create])\n\n server = Server.new(executable: tmux, socket: socket)\n split = Command.new(\"split-window\", [\"-t\", \"demo\", \"/bin/cat\"])\n logs = Command.new(\"new-window\", [\"-t\", \"demo\", \"-n\", \"logs\", \"/bin/cat\"])\n {:ok, _} = Server.run(server, split)\n {:ok, _} = Server.run(server, logs)\n\n snapshot = Server.snapshot!(server)\n session = snapshot |> Snapshot.sessions() |> Selection.one!()\n windows = snapshot |> Snapshot.windows() |> Selection.size()\n panes = snapshot |> Snapshot.panes() |> Selection.size()\n IO.puts(\"#{session.name}: #{windows} windows, #{panes} panes\")\nafter\n System.cmd(tmux, [\"-S\", socket, \"kill-server\"], stderr_to_stdout: true)\n File.rm_rf(dir)\nend\n" } ], "prerequisites": "POSIX shell, tmux 3.3 or newer, Elixir 1.20.4 or newer, Erlang/OTP 29.1.2 or a newer 29.x release, access to hex.pm, and a C11 compiler on Linux.", @@ -604,9 +604,9 @@ "expectedOutput": "demo: 2 windows, 3 panes\n", "withoutErrorHandling": "An unmatched result or a raised error ends the script with its message and stack trace, so there is no separate error handling to add. Every version checks required results.", "variants": { - "concise": "Mix.install([{:libtmux, \"== 0.0.1-alpha.1\"}])\n\nalias LibTmux.{Command, Selection, Server, Snapshot}\n\ntmux = System.find_executable(\"tmux\") || raise \"tmux is not on PATH\"\nid = Base.encode16(:crypto.strong_rand_bytes(8), case: :lower)\ndir = Path.join(System.tmp_dir!(), \"libtmux-\" <> id)\nsocket = Path.join(dir, \"tmux.sock\")\nFile.mkdir!(dir)\nFile.chmod!(dir, 0o700)\n\n# libtmux works on a running server, so tmux itself starts the private one.\ncreate = [\"new-session\", \"-d\", \"-s\", \"demo\", \"/bin/cat\"]\n{_, 0} = System.cmd(tmux, [\"-S\", socket, \"-f\", \"/dev/null\" | create])\n\nserver = Server.new(executable: tmux, socket: socket)\nsplit = Command.new(\"split-window\", [\"-t\", \"demo\", \"/bin/cat\"])\nlogs = Command.new(\"new-window\", [\"-t\", \"demo\", \"-n\", \"logs\", \"/bin/cat\"])\n{:ok, _} = Server.run(server, split)\n{:ok, _} = Server.run(server, logs)\n\nsnapshot = Server.snapshot!(server)\nsession = snapshot |> Snapshot.sessions() |> Selection.one!()\nwindows = snapshot |> Snapshot.windows() |> Selection.size()\npanes = snapshot |> Snapshot.panes() |> Selection.size()\nIO.puts(\"#{session.name}: #{windows} windows, #{panes} panes\")\n", - "errors": "Mix.install([{:libtmux, \"== 0.0.1-alpha.1\"}])\n\nalias LibTmux.{Command, Selection, Server, Snapshot}\n\ntmux = System.find_executable(\"tmux\") || raise \"tmux is not on PATH\"\nid = Base.encode16(:crypto.strong_rand_bytes(8), case: :lower)\ndir = Path.join(System.tmp_dir!(), \"libtmux-\" <> id)\nsocket = Path.join(dir, \"tmux.sock\")\nFile.mkdir!(dir)\nFile.chmod!(dir, 0o700)\n\n# libtmux works on a running server, so tmux itself starts the private one.\ncreate = [\"new-session\", \"-d\", \"-s\", \"demo\", \"/bin/cat\"]\n{_, 0} = System.cmd(tmux, [\"-S\", socket, \"-f\", \"/dev/null\" | create])\n\nserver = Server.new(executable: tmux, socket: socket)\nsplit = Command.new(\"split-window\", [\"-t\", \"demo\", \"/bin/cat\"])\nlogs = Command.new(\"new-window\", [\"-t\", \"demo\", \"-n\", \"logs\", \"/bin/cat\"])\n{:ok, _} = Server.run(server, split)\n{:ok, _} = Server.run(server, logs)\n\nsnapshot = Server.snapshot!(server)\nsession = snapshot |> Snapshot.sessions() |> Selection.one!()\nwindows = snapshot |> Snapshot.windows() |> Selection.size()\npanes = snapshot |> Snapshot.panes() |> Selection.size()\nIO.puts(\"#{session.name}: #{windows} windows, #{panes} panes\")\n", - "cleanup": "Mix.install([{:libtmux, \"== 0.0.1-alpha.1\"}])\n\nalias LibTmux.{Command, Selection, Server, Snapshot}\n\ntmux = System.find_executable(\"tmux\") || raise \"tmux is not on PATH\"\nid = Base.encode16(:crypto.strong_rand_bytes(8), case: :lower)\ndir = Path.join(System.tmp_dir!(), \"libtmux-\" <> id)\nsocket = Path.join(dir, \"tmux.sock\")\nFile.mkdir!(dir)\nFile.chmod!(dir, 0o700)\n\ntry do\n # libtmux works on a running server, so tmux itself starts the private one.\n create = [\"new-session\", \"-d\", \"-s\", \"demo\", \"/bin/cat\"]\n {_, 0} = System.cmd(tmux, [\"-S\", socket, \"-f\", \"/dev/null\" | create])\n\n server = Server.new(executable: tmux, socket: socket)\n split = Command.new(\"split-window\", [\"-t\", \"demo\", \"/bin/cat\"])\n logs = Command.new(\"new-window\", [\"-t\", \"demo\", \"-n\", \"logs\", \"/bin/cat\"])\n {:ok, _} = Server.run(server, split)\n {:ok, _} = Server.run(server, logs)\n\n snapshot = Server.snapshot!(server)\n session = snapshot |> Snapshot.sessions() |> Selection.one!()\n windows = snapshot |> Snapshot.windows() |> Selection.size()\n panes = snapshot |> Snapshot.panes() |> Selection.size()\n IO.puts(\"#{session.name}: #{windows} windows, #{panes} panes\")\nafter\n System.cmd(tmux, [\"-S\", socket, \"kill-server\"], stderr_to_stdout: true)\n File.rm_rf(dir)\nend\n" + "concise": "Mix.install([{:libtmux, \"~> 0.1\"}])\n\nalias LibTmux.{Command, Selection, Server, Snapshot}\n\ntmux = System.find_executable(\"tmux\") || raise \"tmux is not on PATH\"\nid = Base.encode16(:crypto.strong_rand_bytes(8), case: :lower)\ndir = Path.join(System.tmp_dir!(), \"libtmux-\" <> id)\nsocket = Path.join(dir, \"tmux.sock\")\nFile.mkdir!(dir)\nFile.chmod!(dir, 0o700)\n\n# libtmux works on a running server, so tmux itself starts the private one.\ncreate = [\"new-session\", \"-d\", \"-s\", \"demo\", \"/bin/cat\"]\n{_, 0} = System.cmd(tmux, [\"-S\", socket, \"-f\", \"/dev/null\" | create])\n\nserver = Server.new(executable: tmux, socket: socket)\nsplit = Command.new(\"split-window\", [\"-t\", \"demo\", \"/bin/cat\"])\nlogs = Command.new(\"new-window\", [\"-t\", \"demo\", \"-n\", \"logs\", \"/bin/cat\"])\n{:ok, _} = Server.run(server, split)\n{:ok, _} = Server.run(server, logs)\n\nsnapshot = Server.snapshot!(server)\nsession = snapshot |> Snapshot.sessions() |> Selection.one!()\nwindows = snapshot |> Snapshot.windows() |> Selection.size()\npanes = snapshot |> Snapshot.panes() |> Selection.size()\nIO.puts(\"#{session.name}: #{windows} windows, #{panes} panes\")\n", + "errors": "Mix.install([{:libtmux, \"~> 0.1\"}])\n\nalias LibTmux.{Command, Selection, Server, Snapshot}\n\ntmux = System.find_executable(\"tmux\") || raise \"tmux is not on PATH\"\nid = Base.encode16(:crypto.strong_rand_bytes(8), case: :lower)\ndir = Path.join(System.tmp_dir!(), \"libtmux-\" <> id)\nsocket = Path.join(dir, \"tmux.sock\")\nFile.mkdir!(dir)\nFile.chmod!(dir, 0o700)\n\n# libtmux works on a running server, so tmux itself starts the private one.\ncreate = [\"new-session\", \"-d\", \"-s\", \"demo\", \"/bin/cat\"]\n{_, 0} = System.cmd(tmux, [\"-S\", socket, \"-f\", \"/dev/null\" | create])\n\nserver = Server.new(executable: tmux, socket: socket)\nsplit = Command.new(\"split-window\", [\"-t\", \"demo\", \"/bin/cat\"])\nlogs = Command.new(\"new-window\", [\"-t\", \"demo\", \"-n\", \"logs\", \"/bin/cat\"])\n{:ok, _} = Server.run(server, split)\n{:ok, _} = Server.run(server, logs)\n\nsnapshot = Server.snapshot!(server)\nsession = snapshot |> Snapshot.sessions() |> Selection.one!()\nwindows = snapshot |> Snapshot.windows() |> Selection.size()\npanes = snapshot |> Snapshot.panes() |> Selection.size()\nIO.puts(\"#{session.name}: #{windows} windows, #{panes} panes\")\n", + "cleanup": "Mix.install([{:libtmux, \"~> 0.1\"}])\n\nalias LibTmux.{Command, Selection, Server, Snapshot}\n\ntmux = System.find_executable(\"tmux\") || raise \"tmux is not on PATH\"\nid = Base.encode16(:crypto.strong_rand_bytes(8), case: :lower)\ndir = Path.join(System.tmp_dir!(), \"libtmux-\" <> id)\nsocket = Path.join(dir, \"tmux.sock\")\nFile.mkdir!(dir)\nFile.chmod!(dir, 0o700)\n\ntry do\n # libtmux works on a running server, so tmux itself starts the private one.\n create = [\"new-session\", \"-d\", \"-s\", \"demo\", \"/bin/cat\"]\n {_, 0} = System.cmd(tmux, [\"-S\", socket, \"-f\", \"/dev/null\" | create])\n\n server = Server.new(executable: tmux, socket: socket)\n split = Command.new(\"split-window\", [\"-t\", \"demo\", \"/bin/cat\"])\n logs = Command.new(\"new-window\", [\"-t\", \"demo\", \"-n\", \"logs\", \"/bin/cat\"])\n {:ok, _} = Server.run(server, split)\n {:ok, _} = Server.run(server, logs)\n\n snapshot = Server.snapshot!(server)\n session = snapshot |> Snapshot.sessions() |> Selection.one!()\n windows = snapshot |> Snapshot.windows() |> Selection.size()\n panes = snapshot |> Snapshot.panes() |> Selection.size()\n IO.puts(\"#{session.name}: #{windows} windows, #{panes} panes\")\nafter\n System.cmd(tmux, [\"-S\", socket, \"kill-server\"], stderr_to_stdout: true)\n File.rm_rf(dir)\nend\n" } } } diff --git a/site/test/fixtures/attach-examples.json b/site/test/fixtures/attach-examples.json index a034e4533..3de57533d 100644 --- a/site/test/fixtures/attach-examples.json +++ b/site/test/fixtures/attach-examples.json @@ -495,7 +495,7 @@ { "port": "elixir", "language": "elixir", - "sourceRevision": "b72452c198917433229bdc266a68c163541b6127", + "sourceRevision": "cac4252bfc52069980d47db2b7803dc9b33f36f1", "sourceRepository": "libtmux/libtmux-elixir", "toolchain": [ "Elixir 1.20.4", @@ -513,7 +513,7 @@ "files": [ { "name": "connect.exs", - "sha256": "75ce60ad895fd506eabf88108abd51d3af2f882d62d035fbacd9ff9c90c43e62" + "sha256": "3e31d5064fb69384b1a618275ae0f027f9515c52cf1de2555c87fce022990b8e" }, { "name": "run.sh", diff --git a/site/test/fixtures/home-examples.json b/site/test/fixtures/home-examples.json index 1082359ef..2f1597742 100644 --- a/site/test/fixtures/home-examples.json +++ b/site/test/fixtures/home-examples.json @@ -1388,13 +1388,13 @@ "port": "elixir", "page": "home", "sourceRepository": "libtmux/libtmux-elixir", - "sourceRevision": "6e6e88e886bdd9267fcd8be66f561dc5d5462476", - "sourceTree": "82a927e2c306379461b7cfba69cf31c9109c01f7", + "sourceRevision": "cac4252bfc52069980d47db2b7803dc9b33f36f1", + "sourceTree": "f2c639ac8c99fa284acf6d122aa7af7177e068a9", "files": [ { "name": "quickstart.exs", - "sha256": "0f92d981ae5663a2f494391789a7c63c88a2c2dfe10092998d7ce8434fdfc0b7", - "clipboardSha256": "d01da18d1a92abb41e4c447e69bb4f07facb02fa7ecd1ff0c66a698c6591ed92" + "sha256": "9a5be3e88f6e21081b22c9b884b94d2b1225368b0e1e0656549024c14b1ed88e", + "clipboardSha256": "a0a04cbe7b9922255ba1f93d776ab775a5eab839c8479a4d25c57801b4a6769d" } ], "shellRecipe": [ @@ -1405,41 +1405,41 @@ "demo: 2 windows, 3 panes" ] ], - "excerptSha256": "d01da18d1a92abb41e4c447e69bb4f07facb02fa7ecd1ff0c66a698c6591ed92", + "excerptSha256": "a0a04cbe7b9922255ba1f93d776ab775a5eab839c8479a4d25c57801b4a6769d", "tmuxVersions": [ "3.3a", - "3.8" + "3.8a" ], "variants": { "concise": { "files": [ { "name": "quickstart.exs", - "sha256": "0b9626d99549877ee6b2cb74262a5771eac451af7c483df27f73ea22082a7fd6", - "clipboardSha256": "0c4f4204381d44729ffe6e60eddcc16c819874881374e1ceb3328c0acafc7a5f" + "sha256": "e7671613e3fb2c0bb20affb48539ebdbc6947f3620d4af6705a651e27396c3c2", + "clipboardSha256": "086dd47af5d82109690a8607f11b1f3e12b84cd6afafc8f36f2da1a54e871ad4" } ], - "excerptSha256": "0c4f4204381d44729ffe6e60eddcc16c819874881374e1ceb3328c0acafc7a5f" + "excerptSha256": "086dd47af5d82109690a8607f11b1f3e12b84cd6afafc8f36f2da1a54e871ad4" }, "errors": { "files": [ { "name": "quickstart.exs", - "sha256": "0b9626d99549877ee6b2cb74262a5771eac451af7c483df27f73ea22082a7fd6", - "clipboardSha256": "0c4f4204381d44729ffe6e60eddcc16c819874881374e1ceb3328c0acafc7a5f" + "sha256": "e7671613e3fb2c0bb20affb48539ebdbc6947f3620d4af6705a651e27396c3c2", + "clipboardSha256": "086dd47af5d82109690a8607f11b1f3e12b84cd6afafc8f36f2da1a54e871ad4" } ], - "excerptSha256": "0c4f4204381d44729ffe6e60eddcc16c819874881374e1ceb3328c0acafc7a5f" + "excerptSha256": "086dd47af5d82109690a8607f11b1f3e12b84cd6afafc8f36f2da1a54e871ad4" }, "cleanup": { "files": [ { "name": "quickstart.exs", - "sha256": "0f92d981ae5663a2f494391789a7c63c88a2c2dfe10092998d7ce8434fdfc0b7", - "clipboardSha256": "d01da18d1a92abb41e4c447e69bb4f07facb02fa7ecd1ff0c66a698c6591ed92" + "sha256": "9a5be3e88f6e21081b22c9b884b94d2b1225368b0e1e0656549024c14b1ed88e", + "clipboardSha256": "a0a04cbe7b9922255ba1f93d776ab775a5eab839c8479a4d25c57801b4a6769d" } ], - "excerptSha256": "d01da18d1a92abb41e4c447e69bb4f07facb02fa7ecd1ff0c66a698c6591ed92" + "excerptSha256": "a0a04cbe7b9922255ba1f93d776ab775a5eab839c8479a4d25c57801b4a6769d" } } } From 612d710b6f1adfc9b2ebbc5b0f9d3323851a1d22 Mon Sep 17 00:00:00 2001 From: Tony Narlock Date: Mon, 26 Oct 2026 23:22:38 -0500 Subject: [PATCH 2/9] docs(ports[ruby]) Install libtmux from RubyGems in the homepage example why: The homepage example cloned libtmux-ruby at a pinned commit and bundled it as a path gem, so its Gemfile.lock showed libtmux (0.1.0.alpha.1) from a local path. libtmux 0.1.0 is on RubyGems, so the example installs it from there with no clone. what: - Gemfile now reads gem "libtmux", "~> 0.1" from rubygems.org; drop the git init, fetch and checkout setup lines and Git from the prerequisites. - Replace Gemfile.lock with the one bundle install wrote against rubygems.org (libtmux 0.1.0 with its checksum, no PATH block). - Point sourceRevision and sourceTree at release commit c8b83959 and its tree; refresh the Gemfile and Gemfile.lock hashes in every view and the shellRecipe. - Record tmuxVersions 3.3a and 3.8a. - Native runs with a fresh GEM_HOME and BUNDLE_PATH: all four homepage views passed on tmux 3.3a and on 3.8a (Ruby 4.0.7, Bundler 4.0.20). --- site/src/data/home-examples.json | 12 ++++---- site/test/fixtures/home-examples.json | 42 +++++++++++++-------------- 2 files changed, 27 insertions(+), 27 deletions(-) diff --git a/site/src/data/home-examples.json b/site/src/data/home-examples.json index e58c8fa76..fe716f99c 100644 --- a/site/src/data/home-examples.json +++ b/site/src/data/home-examples.json @@ -33,8 +33,8 @@ "ruby": { "lang": "ruby", "sourceRepository": "libtmux/libtmux-ruby", - "sourceRevision": "9b1545562a112353c2c893a1d3e8c0d9b4b51f8d", - "sourceTree": "61f4a53afc47b42ac9dbffcca05f704599e11d35", + "sourceRevision": "c8b839595d5a30e271e3f9be0d0fe811ddb11b7e", + "sourceTree": "0cf427e8bbe586e4e86ab6fc66d325edb62e6646", "program": "quickstart.rb", "excerpt": { "startLine": 1, @@ -51,17 +51,17 @@ { "name": "Gemfile", "lang": "ruby", - "code": "source \"https://rubygems.org\"\ngem \"libtmux\", path: \"source/gems/libtmux\"\n" + "code": "source \"https://rubygems.org\"\ngem \"libtmux\", \"~> 0.1\"\n" }, { "name": "Gemfile.lock", "lang": "text", - "code": "PATH\n remote: source/gems/libtmux\n specs:\n libtmux (0.1.0.alpha.1)\n fiddle (~> 1.1)\n io-console (~> 0.8)\n json (~> 3.0.2)\n securerandom (~> 0.4)\n tmpdir (~> 0.3)\n\nGEM\n remote: https://rubygems.org/\n specs:\n fiddle (1.1.8)\n fileutils (1.8.0)\n io-console (0.9.4)\n json (3.0.2)\n securerandom (0.4.1)\n tmpdir (0.3.1)\n fileutils\n\nPLATFORMS\n ruby\n x86_64-linux\n\nDEPENDENCIES\n libtmux!\n\nCHECKSUMS\n fiddle (1.1.8) sha256=7fa8ee3627271497f3add5503acdbc3f40b32f610fc1cf49634f083ef3f32eee\n fileutils (1.8.0) sha256=8c6b1df54e2540bdb2f39258f08af78853aa70bad52b4d394bbc6424593c6e02\n io-console (0.9.4) sha256=a403304f32928ee85e56d457b4612ca43f2703b561a3258844992bd24085fbb1\n json (3.0.2) sha256=8e6d7e7b11384c21230430cef90b71f14849a34a1f4452796670f7c981bd19df\n libtmux (0.1.0.alpha.1)\n securerandom (0.4.1) sha256=cc5193d414a4341b6e225f0cb4446aceca8e50d5e1888743fac16987638ea0b1\n tmpdir (0.3.1) sha256=908e9729bb31ce104ba27fc03cfc8293a7f858a8dc9e3a1d7cfd112919a3513d\n\nBUNDLED WITH\n 4.0.20\n" + "code": "GEM\n remote: https://rubygems.org/\n specs:\n fiddle (1.1.8)\n fileutils (1.8.1)\n io-console (0.9.4)\n json (3.0.2)\n libtmux (0.1.0)\n fiddle (~> 1.1)\n io-console (~> 0.8)\n json (~> 3.0.2)\n securerandom (~> 0.4)\n tmpdir (~> 0.3)\n securerandom (0.4.1)\n tmpdir (0.3.2)\n fileutils\n\nPLATFORMS\n ruby\n x86_64-linux\n\nDEPENDENCIES\n libtmux (~> 0.1)\n\nCHECKSUMS\n fiddle (1.1.8) sha256=7fa8ee3627271497f3add5503acdbc3f40b32f610fc1cf49634f083ef3f32eee\n fileutils (1.8.1) sha256=2d541a1ee34a9ed5c4f054be8fb819a26b5d654488a31dc8806917cf448b9cc3\n io-console (0.9.4) sha256=a403304f32928ee85e56d457b4612ca43f2703b561a3258844992bd24085fbb1\n json (3.0.2) sha256=8e6d7e7b11384c21230430cef90b71f14849a34a1f4452796670f7c981bd19df\n libtmux (0.1.0) sha256=e1cc928de46d517fc9956ba6161a5b9d205ae8ed337bfd31689b1adb75f3ef00\n securerandom (0.4.1) sha256=cc5193d414a4341b6e225f0cb4446aceca8e50d5e1888743fac16987638ea0b1\n tmpdir (0.3.2) sha256=e276ef386182169f8d417d9e90f12dba82a54e81646df0caf21de4a7987a0c27\n\nBUNDLED WITH\n 4.0.20\n" } ], - "prerequisites": "POSIX shell, Git, tmux 3.3a or newer, Ruby 4.0.7, Bundler 4.0.20 and a C build toolchain for gems.", + "prerequisites": "POSIX shell, tmux 3.3a or newer, Ruby 4.0.7, Bundler 4.0.20, a C build toolchain for gems and access to rubygems.org.", "commands": [ - "git init -q source\ngit -C source fetch -q --depth=1 \\\n https://github.com/libtmux/libtmux-ruby.git \\\n 9b1545562a112353c2c893a1d3e8c0d9b4b51f8d\ngit -C source checkout -q --detach FETCH_HEAD\nbundle config set --local path vendor/bundle\nbundle install --jobs 2", + "bundle config set --local path vendor/bundle\nbundle install --jobs 2", "unset TMUX TMUX_PANE\nexport ENV=/dev/null BASH_ENV=/dev/null SHELL=/bin/sh\nbundle exec ruby quickstart.rb" ], "expectedOutput": "main: %0\nlogs: %1, %2\n", diff --git a/site/test/fixtures/home-examples.json b/site/test/fixtures/home-examples.json index 2f1597742..fce9e6dcd 100644 --- a/site/test/fixtures/home-examples.json +++ b/site/test/fixtures/home-examples.json @@ -65,8 +65,8 @@ "port": "ruby", "page": "home", "sourceRepository": "libtmux/libtmux-ruby", - "sourceRevision": "9b1545562a112353c2c893a1d3e8c0d9b4b51f8d", - "sourceTree": "61f4a53afc47b42ac9dbffcca05f704599e11d35", + "sourceRevision": "c8b839595d5a30e271e3f9be0d0fe811ddb11b7e", + "sourceTree": "0cf427e8bbe586e4e86ab6fc66d325edb62e6646", "files": [ { "name": "quickstart.rb", @@ -75,17 +75,17 @@ }, { "name": "Gemfile", - "sha256": "5d2222a5c0820dbcae11867dcd9678440e8ddfbc49eb7db9fe7bdb9366dac019", - "clipboardSha256": "0304eb8570960bb3f198032b4ef806e1cd690a72a136ec617bb7b2023d200e9e" + "sha256": "8a41c6ffc694da32d1f5d9885135e38acb7b8891e5708d223b6e1dd5f6432142", + "clipboardSha256": "822a519a27a65be3bd3feedea6ca2338b5aec03410f65959642ec352ca6bc157" }, { "name": "Gemfile.lock", - "sha256": "ae6b8472c320b8eafede9c07daa10e1f4132a501f116ccdfd694c2a95fda2c31", - "clipboardSha256": "309689fd2e789e91b0d1a25b287d3d4a65cb2d7337ceb38ef6ef0a0db9f57717" + "sha256": "8d7e466a3a679c7cddd6a2231d1b4d6f13dfc3bb2fd46683f87426c37d455b85", + "clipboardSha256": "b332eddd94d8530b773c941417ba6bbd840ca28b95f77ae9fba7ae521379d764" } ], "shellRecipe": [ - "git init -q source\ngit -C source fetch -q --depth=1 \\\n https://github.com/libtmux/libtmux-ruby.git \\\n 9b1545562a112353c2c893a1d3e8c0d9b4b51f8d\ngit -C source checkout -q --detach FETCH_HEAD\nbundle config set --local path vendor/bundle\nbundle install --jobs 2", + "bundle config set --local path vendor/bundle\nbundle install --jobs 2", "unset TMUX TMUX_PANE\nexport ENV=/dev/null BASH_ENV=/dev/null SHELL=/bin/sh\nbundle exec ruby quickstart.rb" ], "expectedOutputs": [ @@ -97,8 +97,8 @@ ], "excerptSha256": "01a8dfb7d28e85966191445cf912045fd6435ff20805845d63282bc534898e1f", "tmuxVersions": [ - "3.2a", - "3.7c" + "3.3a", + "3.8a" ], "variants": { "concise": { @@ -110,13 +110,13 @@ }, { "name": "Gemfile", - "sha256": "5d2222a5c0820dbcae11867dcd9678440e8ddfbc49eb7db9fe7bdb9366dac019", - "clipboardSha256": "0304eb8570960bb3f198032b4ef806e1cd690a72a136ec617bb7b2023d200e9e" + "sha256": "8a41c6ffc694da32d1f5d9885135e38acb7b8891e5708d223b6e1dd5f6432142", + "clipboardSha256": "822a519a27a65be3bd3feedea6ca2338b5aec03410f65959642ec352ca6bc157" }, { "name": "Gemfile.lock", - "sha256": "ae6b8472c320b8eafede9c07daa10e1f4132a501f116ccdfd694c2a95fda2c31", - "clipboardSha256": "309689fd2e789e91b0d1a25b287d3d4a65cb2d7337ceb38ef6ef0a0db9f57717" + "sha256": "8d7e466a3a679c7cddd6a2231d1b4d6f13dfc3bb2fd46683f87426c37d455b85", + "clipboardSha256": "b332eddd94d8530b773c941417ba6bbd840ca28b95f77ae9fba7ae521379d764" } ], "excerptSha256": "e9417db23319b374411d6b8089329dd0be7345a4e719ad4cf810e368a040c7da" @@ -130,13 +130,13 @@ }, { "name": "Gemfile", - "sha256": "5d2222a5c0820dbcae11867dcd9678440e8ddfbc49eb7db9fe7bdb9366dac019", - "clipboardSha256": "0304eb8570960bb3f198032b4ef806e1cd690a72a136ec617bb7b2023d200e9e" + "sha256": "8a41c6ffc694da32d1f5d9885135e38acb7b8891e5708d223b6e1dd5f6432142", + "clipboardSha256": "822a519a27a65be3bd3feedea6ca2338b5aec03410f65959642ec352ca6bc157" }, { "name": "Gemfile.lock", - "sha256": "ae6b8472c320b8eafede9c07daa10e1f4132a501f116ccdfd694c2a95fda2c31", - "clipboardSha256": "309689fd2e789e91b0d1a25b287d3d4a65cb2d7337ceb38ef6ef0a0db9f57717" + "sha256": "8d7e466a3a679c7cddd6a2231d1b4d6f13dfc3bb2fd46683f87426c37d455b85", + "clipboardSha256": "b332eddd94d8530b773c941417ba6bbd840ca28b95f77ae9fba7ae521379d764" } ], "excerptSha256": "03a72a7fb00f53f0ef023e515783172c76b5e6379270c5ff6187656c1528cf44" @@ -150,13 +150,13 @@ }, { "name": "Gemfile", - "sha256": "5d2222a5c0820dbcae11867dcd9678440e8ddfbc49eb7db9fe7bdb9366dac019", - "clipboardSha256": "0304eb8570960bb3f198032b4ef806e1cd690a72a136ec617bb7b2023d200e9e" + "sha256": "8a41c6ffc694da32d1f5d9885135e38acb7b8891e5708d223b6e1dd5f6432142", + "clipboardSha256": "822a519a27a65be3bd3feedea6ca2338b5aec03410f65959642ec352ca6bc157" }, { "name": "Gemfile.lock", - "sha256": "ae6b8472c320b8eafede9c07daa10e1f4132a501f116ccdfd694c2a95fda2c31", - "clipboardSha256": "309689fd2e789e91b0d1a25b287d3d4a65cb2d7337ceb38ef6ef0a0db9f57717" + "sha256": "8d7e466a3a679c7cddd6a2231d1b4d6f13dfc3bb2fd46683f87426c37d455b85", + "clipboardSha256": "b332eddd94d8530b773c941417ba6bbd840ca28b95f77ae9fba7ae521379d764" } ], "excerptSha256": "c4d6f09d4b055c31f4830c9c8b62751cd4efa3115a61877ae5ca41b7178d71ed" From aac2644332b31c227fdd2f3511e8b2fde5763e5b Mon Sep 17 00:00:00 2001 From: Tony Narlock Date: Mon, 26 Oct 2026 23:25:41 -0500 Subject: [PATCH 3/9] docs(ports[csharp]) Install LibTmux, LibTmux.FSharp and LibTmux.Mcp 0.1.0 from NuGet why: The C# and F# homepage examples cloned libtmux-dotnet and packed an alpha.18 package from source, and the MCP pages pinned 0.0.0-alpha.20. LibTmux, LibTmux.FSharp and LibTmux.Mcp 0.1.0 are on nuget.org, so readers can restore them directly. what: - Pin LibTmux and LibTmux.FSharp [0.1.0] in the homepage projects, drop the source clone, pack step and NuGet.config, and move global.json and FSharp.Core to the SDK 10.0.303 and 10.1.303 the 0.1.0 tag uses - Point the homepage receipts and the MCP receipts at libtmux-dotnet v0.1.0 (472c2bcf, tree 4ef96f46) and record the new recipes, hashes and toolchain - Install LibTmux.Mcp --version 0.1.0 and reference LibTmux 0.1.0 on the list-sessions and run-command examples and the connect-client guide, and move their source links to the tag - State that run_shell_command needs tmux 3.4 on the run-command example - Record tmux 3.3a and 3.7c for C# and 3.4 and 3.7c for F# (0.1.0 refuses 3.2a; F# pane runs need 3.4); the MCP examples ran on 3.3a and 3.7c (list sessions) and 3.4 and 3.7c (run command) - Ran scripts/check-example-prose.py natively on every homepage view with an empty NUGET_PACKAGES (.NET SDK 10.0.303, tmux 3.3a, 3.4 and 3.7c): all passed; ran both MCP examples and the connect-client commands by hand --- .../csharp/mcp/examples/inspect-sessions.md | 10 +- .../ports/csharp/mcp/examples/run-command.md | 8 +- .../ports/csharp/mcp/guides/connect-client.md | 12 +- site/src/data/home-examples.json | 34 ++--- site/test/fixtures/home-examples.json | 120 ++++++------------ site/test/fixtures/product-examples.json | 20 +-- site/test/tmux-minimum.test.ts | 6 + 7 files changed, 84 insertions(+), 126 deletions(-) diff --git a/site/src/content/docs/ports/csharp/mcp/examples/inspect-sessions.md b/site/src/content/docs/ports/csharp/mcp/examples/inspect-sessions.md index 100029856..bdc775187 100644 --- a/site/src/content/docs/ports/csharp/mcp/examples/inspect-sessions.md +++ b/site/src/content/docs/ports/csharp/mcp/examples/inspect-sessions.md @@ -16,8 +16,8 @@ client. The program stops its owned server when the request succeeds or fails. ## Run the example Use the .NET 10 SDK and tmux 3.3a or newer on Linux, macOS, or WSL. The project -pins the library and tool to the same published alpha release. The package -source is [libtmux-dotnet at the documented release](https://github.com/libtmux/libtmux-dotnet/tree/ec8b6ab2a4f65e23664f43fba538ba200d4ae8bc). +pins the library and tool to the same published release, 0.1.0. The package +source is [libtmux-dotnet at the documented release](https://github.com/libtmux/libtmux-dotnet/tree/472c2bcfbda6735139849324cc109ad70300001e). Create an empty directory: @@ -34,7 +34,7 @@ Install the MCP executable into that directory: ```console $ dotnet tool install \ --tool-path .tools \ - --version 0.0.0-alpha.20 \ + --version 0.1.0 \ LibTmux.Mcp ``` @@ -49,7 +49,7 @@ Save the project file: enable - + @@ -248,5 +248,5 @@ it prints the retained directory for inspection. The [connection guide](../../guides/) covers connecting to an existing server. The [tool reference](../../tools/list_sessions/) describes the session fields, -and the [owned-server implementation](https://github.com/libtmux/libtmux-dotnet/blob/ec8b6ab2a4f65e23664f43fba538ba200d4ae8bc/src/LibTmux/Server.Lifecycle.cs) +and the [owned-server implementation](https://github.com/libtmux/libtmux-dotnet/blob/472c2bcfbda6735139849324cc109ad70300001e/src/LibTmux/Server.Lifecycle.cs) defines daemon ownership and cleanup. diff --git a/site/src/content/docs/ports/csharp/mcp/examples/run-command.md b/site/src/content/docs/ports/csharp/mcp/examples/run-command.md index fc34a2e6e..2e82ec80c 100644 --- a/site/src/content/docs/ports/csharp/mcp/examples/run-command.md +++ b/site/src/content/docs/ports/csharp/mcp/examples/run-command.md @@ -20,7 +20,9 @@ sessions. ## Run the example Use the .NET 10 SDK and tmux 3.3a or newer on Linux, macOS, or WSL. The library -and tool use the same [published source revision](https://github.com/libtmux/libtmux-dotnet/tree/ec8b6ab2a4f65e23664f43fba538ba200d4ae8bc). +and tool use the same [published source revision](https://github.com/libtmux/libtmux-dotnet/tree/472c2bcfbda6735139849324cc109ad70300001e). +`run_shell_command` stages its command in a named tmux buffer, so this example +needs a server at version 3.4 or later; on 3.3a the tool refuses the request. Create an empty directory: @@ -37,7 +39,7 @@ Install the MCP executable into that directory: ```console $ dotnet tool install \ --tool-path .tools \ - --version 0.0.0-alpha.20 \ + --version 0.1.0 \ LibTmux.Mcp ``` @@ -52,7 +54,7 @@ Save the project file: enable - + diff --git a/site/src/content/docs/ports/csharp/mcp/guides/connect-client.md b/site/src/content/docs/ports/csharp/mcp/guides/connect-client.md index 6bd83a689..406e42a1f 100644 --- a/site/src/content/docs/ports/csharp/mcp/guides/connect-client.md +++ b/site/src/content/docs/ports/csharp/mcp/guides/connect-client.md @@ -13,17 +13,17 @@ Configure your MCP client to launch `libtmux-mcp`. The executable selects one tmux socket and its tools at startup, then serves MCP over stdin and stdout. Use Linux, macOS, or WSL with tmux 3.3a or newer and a compatible .NET runtime. -The examples here use the [published package](https://www.nuget.org/packages/LibTmux.Mcp/0.0.0-alpha.20) -and its [source contract](https://github.com/libtmux/libtmux-dotnet/blob/ec8b6ab2a4f65e23664f43fba538ba200d4ae8bc/src/LibTmux.Mcp/README.md). +The examples here use the [published package](https://www.nuget.org/packages/LibTmux.Mcp/0.1.0) +and its [source contract](https://github.com/libtmux/libtmux-dotnet/blob/472c2bcfbda6735139849324cc109ad70300001e/src/LibTmux.Mcp/README.md). ## Install the tool -Install the pinned alpha release with the .NET SDK: +Install the pinned release with the .NET SDK: ```console $ dotnet tool install \ --global \ - --version 0.0.0-alpha.20 \ + --version 0.1.0 \ LibTmux.Mcp ``` @@ -114,7 +114,7 @@ Restart the MCP connection after changing its environment. Changing a terminal's environment does not reconfigure a server process already running inside another client. -The [startup implementation](https://github.com/libtmux/libtmux-dotnet/blob/ec8b6ab2a4f65e23664f43fba538ba200d4ae8bc/src/LibTmux.Mcp/Policy/McpStartup.cs) +The [startup implementation](https://github.com/libtmux/libtmux-dotnet/blob/472c2bcfbda6735139849324cc109ad70300001e/src/LibTmux.Mcp/Policy/McpStartup.cs) defines socket selection and ownership. The -[tool-selection implementation](https://github.com/libtmux/libtmux-dotnet/blob/ec8b6ab2a4f65e23664f43fba538ba200d4ae8bc/src/LibTmux.Mcp/Policy/CapabilitySelection.cs) +[tool-selection implementation](https://github.com/libtmux/libtmux-dotnet/blob/472c2bcfbda6735139849324cc109ad70300001e/src/LibTmux.Mcp/Policy/CapabilitySelection.cs) defines registration and filter precedence. diff --git a/site/src/data/home-examples.json b/site/src/data/home-examples.json index fe716f99c..15d4d3a79 100644 --- a/site/src/data/home-examples.json +++ b/site/src/data/home-examples.json @@ -359,8 +359,8 @@ "csharp": { "lang": "csharp", "sourceRepository": "libtmux/libtmux-dotnet", - "sourceRevision": "4f1b997b2e4aeb604c4184707e49dcd4dea44fef", - "sourceTree": "2bed2dca445fd23ad3f627f0c8f8eba76436aeb4", + "sourceRevision": "472c2bcfbda6735139849324cc109ad70300001e", + "sourceTree": "4ef96f46e6f60db9f55e7349ed3e5ab60315af1a", "program": "app/Program.cs", "excerpt": { "startLine": 1, @@ -377,22 +377,17 @@ { "name": "app/Example.csproj", "lang": "xml", - "code": "\n \n Exe\n net8.0;net10.0\n 12.0\n enable\n disable\n false\n true\n 10-recommended\n \n \n \n \n \n\n" + "code": "\n \n Exe\n net8.0;net10.0\n 12.0\n enable\n disable\n false\n true\n 10-recommended\n \n \n \n \n \n\n" }, { "name": "app/global.json", "lang": "json", - "code": "{\n \"sdk\": {\n \"version\": \"10.0.302\",\n \"rollForward\": \"disable\",\n \"allowPrerelease\": false\n },\n \"test\": {\n \"runner\": \"Microsoft.Testing.Platform\"\n }\n}\n" - }, - { - "name": "app/NuGet.config", - "lang": "xml", - "code": "\n\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n\n" + "code": "{\n \"sdk\": {\n \"version\": \"10.0.303\",\n \"rollForward\": \"disable\",\n \"allowPrerelease\": false\n },\n \"test\": {\n \"runner\": \"Microsoft.Testing.Platform\"\n }\n}\n" } ], - "prerequisites": ".NET SDK 10.0.302, .NET 8 and 10 runtimes, tmux on Linux/macOS", + "prerequisites": ".NET SDK 10.0.303, .NET 8 and 10 runtimes, tmux on Linux/macOS", "commands": [ - "# Save the files above at their displayed relative paths.\ngit clone https://github.com/libtmux/libtmux-dotnet.git libtmux-source\ngit -C libtmux-source checkout --detach 4f1b997b2e4aeb604c4184707e49dcd4dea44fef\nexport NUGET_PACKAGES=\"$PWD/packages\"\ncd libtmux-source\ndotnet restore src/LibTmux.FSharp/LibTmux.FSharp.fsproj --locked-mode\ndotnet pack src/LibTmux/LibTmux.csproj -c Release --no-restore \\\n -p:ContinuousIntegrationBuild=true --output artifacts/api-example-packages\ncd ../app\ndotnet restore Example.csproj --configfile NuGet.config\ndotnet build Example.csproj -c Release --no-restore --warnaserror\nexport TMUX_TMPDIR=/tmp/libtmux-dotnet-dev\nmkdir -p \"$TMUX_TMPDIR\"\nunset TMUX TMUX_PANE\ndotnet bin/Release/net8.0/Example.dll\ndotnet bin/Release/net10.0/Example.dll" + "# Save the files above at their displayed relative paths.\ncd app\ndotnet restore Example.csproj\ndotnet build Example.csproj -c Release --no-restore --warnaserror\nexport TMUX_TMPDIR=/tmp/libtmux-dotnet-dev\nmkdir -p \"$TMUX_TMPDIR\"\nunset TMUX TMUX_PANE\ndotnet bin/Release/net8.0/Example.dll\ndotnet bin/Release/net10.0/Example.dll" ], "expectedOutput": "hello-from-libtmux\n", "variants": { @@ -404,8 +399,8 @@ "fsharp": { "lang": "fsharp", "sourceRepository": "libtmux/libtmux-dotnet", - "sourceRevision": "4f1b997b2e4aeb604c4184707e49dcd4dea44fef", - "sourceTree": "2bed2dca445fd23ad3f627f0c8f8eba76436aeb4", + "sourceRevision": "472c2bcfbda6735139849324cc109ad70300001e", + "sourceTree": "4ef96f46e6f60db9f55e7349ed3e5ab60315af1a", "program": "app/Program.fs", "excerpt": { "startLine": 1, @@ -422,22 +417,17 @@ { "name": "app/Example.fsproj", "lang": "xml", - "code": "\n \n Exe\n net8.0;net10.0\n 10.0\n true\n true\n true\n \n \n \n \n \n \n\n" + "code": "\n \n Exe\n net8.0;net10.0\n 10.0\n true\n true\n true\n \n \n \n \n \n \n\n" }, { "name": "app/global.json", "lang": "json", - "code": "{\n \"sdk\": {\n \"version\": \"10.0.302\",\n \"rollForward\": \"disable\",\n \"allowPrerelease\": false\n },\n \"test\": {\n \"runner\": \"Microsoft.Testing.Platform\"\n }\n}\n" - }, - { - "name": "app/NuGet.config", - "lang": "xml", - "code": "\n\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n\n" + "code": "{\n \"sdk\": {\n \"version\": \"10.0.303\",\n \"rollForward\": \"disable\",\n \"allowPrerelease\": false\n },\n \"test\": {\n \"runner\": \"Microsoft.Testing.Platform\"\n }\n}\n" } ], - "prerequisites": ".NET SDK 10.0.302, .NET 8 and 10 runtimes, tmux on Linux/macOS", + "prerequisites": ".NET SDK 10.0.303, .NET 8 and 10 runtimes, tmux 3.4 or newer on Linux/macOS", "commands": [ - "# Save the files above at their displayed relative paths.\ngit clone https://github.com/libtmux/libtmux-dotnet.git libtmux-source\ngit -C libtmux-source checkout --detach 4f1b997b2e4aeb604c4184707e49dcd4dea44fef\nexport NUGET_PACKAGES=\"$PWD/packages\"\ncd libtmux-source\ndotnet restore src/LibTmux.FSharp/LibTmux.FSharp.fsproj --locked-mode\ndotnet pack src/LibTmux/LibTmux.csproj -c Release --no-restore \\\n -p:ContinuousIntegrationBuild=true --output artifacts/api-example-packages\ndotnet pack src/LibTmux.FSharp/LibTmux.FSharp.fsproj -c Release --no-restore \\\n -p:ContinuousIntegrationBuild=true --output artifacts/api-example-packages\ncd ../app\ndotnet restore Example.fsproj --configfile NuGet.config\ndotnet build Example.fsproj -c Release --no-restore --warnaserror\nexport TMUX_TMPDIR=/tmp/libtmux-dotnet-dev\nmkdir -p \"$TMUX_TMPDIR\"\nunset TMUX TMUX_PANE\ndotnet bin/Release/net8.0/Example.dll\ndotnet bin/Release/net10.0/Example.dll" + "# Save the files above at their displayed relative paths.\ncd app\ndotnet restore Example.fsproj\ndotnet build Example.fsproj -c Release --no-restore --warnaserror\nexport TMUX_TMPDIR=/tmp/libtmux-dotnet-dev\nmkdir -p \"$TMUX_TMPDIR\"\nunset TMUX TMUX_PANE\ndotnet bin/Release/net8.0/Example.dll\ndotnet bin/Release/net10.0/Example.dll" ], "expectedOutput": "other sessions: web, worker\nwait found: true\nrun: exit 3, output [\"ok\"]\n", "variants": { diff --git a/site/test/fixtures/home-examples.json b/site/test/fixtures/home-examples.json index fce9e6dcd..e213b7a93 100644 --- a/site/test/fixtures/home-examples.json +++ b/site/test/fixtures/home-examples.json @@ -869,8 +869,8 @@ "port": "csharp", "page": "home", "sourceRepository": "libtmux/libtmux-dotnet", - "sourceRevision": "4f1b997b2e4aeb604c4184707e49dcd4dea44fef", - "sourceTree": "2bed2dca445fd23ad3f627f0c8f8eba76436aeb4", + "sourceRevision": "472c2bcfbda6735139849324cc109ad70300001e", + "sourceTree": "4ef96f46e6f60db9f55e7349ed3e5ab60315af1a", "files": [ { "name": "app/Program.cs", @@ -879,22 +879,17 @@ }, { "name": "app/Example.csproj", - "sha256": "e52631c3bc6cf7f55f79426e42f24c11b51fc1c6ada3aa5de750b260776ac75c", - "clipboardSha256": "850555a244a332adf3e845659e410ccdd90d5b9fbbe9bb29a83a74841cac74c7" + "sha256": "5f86230b0760f6cda27f409af90150803d04dcc493c24a16ab9e6ed8bedd7f4e", + "clipboardSha256": "4543e328ee0a4e45f73ebb504dd01cff171a7b3ee2ccbbfb5121fd90a8db82e6" }, { "name": "app/global.json", - "sha256": "e8c147e2003fe0af554dcd34367ae969a9150206b62c17cd86459695023c3bdf", - "clipboardSha256": "390e6dddf63a5b602271b9aee34e74676c116fb393ad0c5f36380ed4634a7ee3" - }, - { - "name": "app/NuGet.config", - "sha256": "e977519a23f7c0ea4961461102d6c78b91828cdc97e5e75d31758bd2bd440eb3", - "clipboardSha256": "8787f78945d068677587e2794dfa18753c6043ca88c900201b3a3cadb8c9ee7f" + "sha256": "c5a832e5d1033966cc9354ad344d64cd85c11c4f8165324f97322eeb46e336b9", + "clipboardSha256": "11c4f249624d34097497a6b8dbac72acadc2216d9736e033258e2397a0f945a6" } ], "shellRecipe": [ - "# Save the files above at their displayed relative paths.\ngit clone https://github.com/libtmux/libtmux-dotnet.git libtmux-source\ngit -C libtmux-source checkout --detach 4f1b997b2e4aeb604c4184707e49dcd4dea44fef\nexport NUGET_PACKAGES=\"$PWD/packages\"\ncd libtmux-source\ndotnet restore src/LibTmux.FSharp/LibTmux.FSharp.fsproj --locked-mode\ndotnet pack src/LibTmux/LibTmux.csproj -c Release --no-restore \\\n -p:ContinuousIntegrationBuild=true --output artifacts/api-example-packages\ncd ../app\ndotnet restore Example.csproj --configfile NuGet.config\ndotnet build Example.csproj -c Release --no-restore --warnaserror\nexport TMUX_TMPDIR=/tmp/libtmux-dotnet-dev\nmkdir -p \"$TMUX_TMPDIR\"\nunset TMUX TMUX_PANE\ndotnet bin/Release/net8.0/Example.dll\ndotnet bin/Release/net10.0/Example.dll" + "# Save the files above at their displayed relative paths.\ncd app\ndotnet restore Example.csproj\ndotnet build Example.csproj -c Release --no-restore --warnaserror\nexport TMUX_TMPDIR=/tmp/libtmux-dotnet-dev\nmkdir -p \"$TMUX_TMPDIR\"\nunset TMUX TMUX_PANE\ndotnet bin/Release/net8.0/Example.dll\ndotnet bin/Release/net10.0/Example.dll" ], "expectedOutputs": [ [ @@ -903,7 +898,7 @@ ], "excerptSha256": "b929ea7aef844d63bdc65d28749ad6023a7ebff4762fe4f3b95cb7e7cfde3e3b", "tmuxVersions": [ - "3.2a", + "3.3a", "3.7c" ], "variants": { @@ -916,18 +911,13 @@ }, { "name": "app/Example.csproj", - "sha256": "e52631c3bc6cf7f55f79426e42f24c11b51fc1c6ada3aa5de750b260776ac75c", - "clipboardSha256": "850555a244a332adf3e845659e410ccdd90d5b9fbbe9bb29a83a74841cac74c7" + "sha256": "5f86230b0760f6cda27f409af90150803d04dcc493c24a16ab9e6ed8bedd7f4e", + "clipboardSha256": "4543e328ee0a4e45f73ebb504dd01cff171a7b3ee2ccbbfb5121fd90a8db82e6" }, { "name": "app/global.json", - "sha256": "e8c147e2003fe0af554dcd34367ae969a9150206b62c17cd86459695023c3bdf", - "clipboardSha256": "390e6dddf63a5b602271b9aee34e74676c116fb393ad0c5f36380ed4634a7ee3" - }, - { - "name": "app/NuGet.config", - "sha256": "e977519a23f7c0ea4961461102d6c78b91828cdc97e5e75d31758bd2bd440eb3", - "clipboardSha256": "8787f78945d068677587e2794dfa18753c6043ca88c900201b3a3cadb8c9ee7f" + "sha256": "c5a832e5d1033966cc9354ad344d64cd85c11c4f8165324f97322eeb46e336b9", + "clipboardSha256": "11c4f249624d34097497a6b8dbac72acadc2216d9736e033258e2397a0f945a6" } ], "excerptSha256": "18a511f52d30e5117c9393fcf9dfd471223738f31b9cf5c5b78ce3ba54fe5488" @@ -941,18 +931,13 @@ }, { "name": "app/Example.csproj", - "sha256": "e52631c3bc6cf7f55f79426e42f24c11b51fc1c6ada3aa5de750b260776ac75c", - "clipboardSha256": "850555a244a332adf3e845659e410ccdd90d5b9fbbe9bb29a83a74841cac74c7" + "sha256": "5f86230b0760f6cda27f409af90150803d04dcc493c24a16ab9e6ed8bedd7f4e", + "clipboardSha256": "4543e328ee0a4e45f73ebb504dd01cff171a7b3ee2ccbbfb5121fd90a8db82e6" }, { "name": "app/global.json", - "sha256": "e8c147e2003fe0af554dcd34367ae969a9150206b62c17cd86459695023c3bdf", - "clipboardSha256": "390e6dddf63a5b602271b9aee34e74676c116fb393ad0c5f36380ed4634a7ee3" - }, - { - "name": "app/NuGet.config", - "sha256": "e977519a23f7c0ea4961461102d6c78b91828cdc97e5e75d31758bd2bd440eb3", - "clipboardSha256": "8787f78945d068677587e2794dfa18753c6043ca88c900201b3a3cadb8c9ee7f" + "sha256": "c5a832e5d1033966cc9354ad344d64cd85c11c4f8165324f97322eeb46e336b9", + "clipboardSha256": "11c4f249624d34097497a6b8dbac72acadc2216d9736e033258e2397a0f945a6" } ], "excerptSha256": "8700a98b89c2f6f1937bdbc0a644a81242d56b342f496b7090e58cad622c9ea4" @@ -966,18 +951,13 @@ }, { "name": "app/Example.csproj", - "sha256": "e52631c3bc6cf7f55f79426e42f24c11b51fc1c6ada3aa5de750b260776ac75c", - "clipboardSha256": "850555a244a332adf3e845659e410ccdd90d5b9fbbe9bb29a83a74841cac74c7" + "sha256": "5f86230b0760f6cda27f409af90150803d04dcc493c24a16ab9e6ed8bedd7f4e", + "clipboardSha256": "4543e328ee0a4e45f73ebb504dd01cff171a7b3ee2ccbbfb5121fd90a8db82e6" }, { "name": "app/global.json", - "sha256": "e8c147e2003fe0af554dcd34367ae969a9150206b62c17cd86459695023c3bdf", - "clipboardSha256": "390e6dddf63a5b602271b9aee34e74676c116fb393ad0c5f36380ed4634a7ee3" - }, - { - "name": "app/NuGet.config", - "sha256": "e977519a23f7c0ea4961461102d6c78b91828cdc97e5e75d31758bd2bd440eb3", - "clipboardSha256": "8787f78945d068677587e2794dfa18753c6043ca88c900201b3a3cadb8c9ee7f" + "sha256": "c5a832e5d1033966cc9354ad344d64cd85c11c4f8165324f97322eeb46e336b9", + "clipboardSha256": "11c4f249624d34097497a6b8dbac72acadc2216d9736e033258e2397a0f945a6" } ], "excerptSha256": "2803c70899673755433036a6539790ce05b25ad87a8c6c22a2c79840d711ae52" @@ -988,8 +968,8 @@ "port": "fsharp", "page": "home", "sourceRepository": "libtmux/libtmux-dotnet", - "sourceRevision": "4f1b997b2e4aeb604c4184707e49dcd4dea44fef", - "sourceTree": "2bed2dca445fd23ad3f627f0c8f8eba76436aeb4", + "sourceRevision": "472c2bcfbda6735139849324cc109ad70300001e", + "sourceTree": "4ef96f46e6f60db9f55e7349ed3e5ab60315af1a", "files": [ { "name": "app/Program.fs", @@ -998,22 +978,17 @@ }, { "name": "app/Example.fsproj", - "sha256": "4d7013dc6880249e3a34a104c27d4a85374ccbf5468165f22677fbdf1bfbbeaf", - "clipboardSha256": "7e11b837ac061657bb407a4d16a3e44f089272499af7156187d10e0384fc5d0f" + "sha256": "b52f2c94dc6349e917eba205573e2eb361c286aadcb8261557ddcf052baca861", + "clipboardSha256": "ca7c5193ba23f5fa1128a7889fc08e692f6ad3d85adb85e6ab2b7851a91a6ef7" }, { "name": "app/global.json", - "sha256": "e8c147e2003fe0af554dcd34367ae969a9150206b62c17cd86459695023c3bdf", - "clipboardSha256": "390e6dddf63a5b602271b9aee34e74676c116fb393ad0c5f36380ed4634a7ee3" - }, - { - "name": "app/NuGet.config", - "sha256": "e977519a23f7c0ea4961461102d6c78b91828cdc97e5e75d31758bd2bd440eb3", - "clipboardSha256": "8787f78945d068677587e2794dfa18753c6043ca88c900201b3a3cadb8c9ee7f" + "sha256": "c5a832e5d1033966cc9354ad344d64cd85c11c4f8165324f97322eeb46e336b9", + "clipboardSha256": "11c4f249624d34097497a6b8dbac72acadc2216d9736e033258e2397a0f945a6" } ], "shellRecipe": [ - "# Save the files above at their displayed relative paths.\ngit clone https://github.com/libtmux/libtmux-dotnet.git libtmux-source\ngit -C libtmux-source checkout --detach 4f1b997b2e4aeb604c4184707e49dcd4dea44fef\nexport NUGET_PACKAGES=\"$PWD/packages\"\ncd libtmux-source\ndotnet restore src/LibTmux.FSharp/LibTmux.FSharp.fsproj --locked-mode\ndotnet pack src/LibTmux/LibTmux.csproj -c Release --no-restore \\\n -p:ContinuousIntegrationBuild=true --output artifacts/api-example-packages\ndotnet pack src/LibTmux.FSharp/LibTmux.FSharp.fsproj -c Release --no-restore \\\n -p:ContinuousIntegrationBuild=true --output artifacts/api-example-packages\ncd ../app\ndotnet restore Example.fsproj --configfile NuGet.config\ndotnet build Example.fsproj -c Release --no-restore --warnaserror\nexport TMUX_TMPDIR=/tmp/libtmux-dotnet-dev\nmkdir -p \"$TMUX_TMPDIR\"\nunset TMUX TMUX_PANE\ndotnet bin/Release/net8.0/Example.dll\ndotnet bin/Release/net10.0/Example.dll" + "# Save the files above at their displayed relative paths.\ncd app\ndotnet restore Example.fsproj\ndotnet build Example.fsproj -c Release --no-restore --warnaserror\nexport TMUX_TMPDIR=/tmp/libtmux-dotnet-dev\nmkdir -p \"$TMUX_TMPDIR\"\nunset TMUX TMUX_PANE\ndotnet bin/Release/net8.0/Example.dll\ndotnet bin/Release/net10.0/Example.dll" ], "expectedOutputs": [ [ @@ -1024,7 +999,7 @@ ], "excerptSha256": "ad1792892d6af026eaf952694f0d5462ddd858b4dc12671773012b47320e2a97", "tmuxVersions": [ - "3.2a", + "3.4", "3.7c" ], "variants": { @@ -1037,18 +1012,13 @@ }, { "name": "app/Example.fsproj", - "sha256": "4d7013dc6880249e3a34a104c27d4a85374ccbf5468165f22677fbdf1bfbbeaf", - "clipboardSha256": "7e11b837ac061657bb407a4d16a3e44f089272499af7156187d10e0384fc5d0f" + "sha256": "b52f2c94dc6349e917eba205573e2eb361c286aadcb8261557ddcf052baca861", + "clipboardSha256": "ca7c5193ba23f5fa1128a7889fc08e692f6ad3d85adb85e6ab2b7851a91a6ef7" }, { "name": "app/global.json", - "sha256": "e8c147e2003fe0af554dcd34367ae969a9150206b62c17cd86459695023c3bdf", - "clipboardSha256": "390e6dddf63a5b602271b9aee34e74676c116fb393ad0c5f36380ed4634a7ee3" - }, - { - "name": "app/NuGet.config", - "sha256": "e977519a23f7c0ea4961461102d6c78b91828cdc97e5e75d31758bd2bd440eb3", - "clipboardSha256": "8787f78945d068677587e2794dfa18753c6043ca88c900201b3a3cadb8c9ee7f" + "sha256": "c5a832e5d1033966cc9354ad344d64cd85c11c4f8165324f97322eeb46e336b9", + "clipboardSha256": "11c4f249624d34097497a6b8dbac72acadc2216d9736e033258e2397a0f945a6" } ], "excerptSha256": "e235031ac538f209036df425383c0279b849d7f65c2eefae63dfcccfb2ec4480" @@ -1062,18 +1032,13 @@ }, { "name": "app/Example.fsproj", - "sha256": "4d7013dc6880249e3a34a104c27d4a85374ccbf5468165f22677fbdf1bfbbeaf", - "clipboardSha256": "7e11b837ac061657bb407a4d16a3e44f089272499af7156187d10e0384fc5d0f" + "sha256": "b52f2c94dc6349e917eba205573e2eb361c286aadcb8261557ddcf052baca861", + "clipboardSha256": "ca7c5193ba23f5fa1128a7889fc08e692f6ad3d85adb85e6ab2b7851a91a6ef7" }, { "name": "app/global.json", - "sha256": "e8c147e2003fe0af554dcd34367ae969a9150206b62c17cd86459695023c3bdf", - "clipboardSha256": "390e6dddf63a5b602271b9aee34e74676c116fb393ad0c5f36380ed4634a7ee3" - }, - { - "name": "app/NuGet.config", - "sha256": "e977519a23f7c0ea4961461102d6c78b91828cdc97e5e75d31758bd2bd440eb3", - "clipboardSha256": "8787f78945d068677587e2794dfa18753c6043ca88c900201b3a3cadb8c9ee7f" + "sha256": "c5a832e5d1033966cc9354ad344d64cd85c11c4f8165324f97322eeb46e336b9", + "clipboardSha256": "11c4f249624d34097497a6b8dbac72acadc2216d9736e033258e2397a0f945a6" } ], "excerptSha256": "119cb2671cababa87cb2e11875c3ef4f5232d1090755fe3c4363bb294f321715" @@ -1087,18 +1052,13 @@ }, { "name": "app/Example.fsproj", - "sha256": "4d7013dc6880249e3a34a104c27d4a85374ccbf5468165f22677fbdf1bfbbeaf", - "clipboardSha256": "7e11b837ac061657bb407a4d16a3e44f089272499af7156187d10e0384fc5d0f" + "sha256": "b52f2c94dc6349e917eba205573e2eb361c286aadcb8261557ddcf052baca861", + "clipboardSha256": "ca7c5193ba23f5fa1128a7889fc08e692f6ad3d85adb85e6ab2b7851a91a6ef7" }, { "name": "app/global.json", - "sha256": "e8c147e2003fe0af554dcd34367ae969a9150206b62c17cd86459695023c3bdf", - "clipboardSha256": "390e6dddf63a5b602271b9aee34e74676c116fb393ad0c5f36380ed4634a7ee3" - }, - { - "name": "app/NuGet.config", - "sha256": "e977519a23f7c0ea4961461102d6c78b91828cdc97e5e75d31758bd2bd440eb3", - "clipboardSha256": "8787f78945d068677587e2794dfa18753c6043ca88c900201b3a3cadb8c9ee7f" + "sha256": "c5a832e5d1033966cc9354ad344d64cd85c11c4f8165324f97322eeb46e336b9", + "clipboardSha256": "11c4f249624d34097497a6b8dbac72acadc2216d9736e033258e2397a0f945a6" } ], "excerptSha256": "89e4d781c4499d2dc8db65da4de720e6b783289e260576777e7baf98d7ace27b" diff --git a/site/test/fixtures/product-examples.json b/site/test/fixtures/product-examples.json index c52749f10..60c04812e 100644 --- a/site/test/fixtures/product-examples.json +++ b/site/test/fixtures/product-examples.json @@ -362,12 +362,12 @@ { "port": "csharp", "language": "csharp", - "sourceRevision": "ec8b6ab2a4f65e23664f43fba538ba200d4ae8bc", + "sourceRevision": "472c2bcfbda6735139849324cc109ad70300001e", "sourceRepository": "libtmux/libtmux-dotnet", "files": [ { "name": "McpExample.csproj", - "sha256": "a17e9ff530230a986888f38654225c5aaae0a6bff2ddc0c40e5ef312d3d3d370" + "sha256": "b0a6b06aa978bc41310fb31181445fdc77246efebbef414d2a9308f486f4f21c" }, { "name": "Program.cs", @@ -377,29 +377,29 @@ "toolchain": [ ".NET SDK 10.0.400; .NET 10 runtime", "ModelContextProtocol 2.2.0", - "LibTmux and LibTmux.Mcp 0.0.0-alpha.20" + "LibTmux and LibTmux.Mcp 0.1.0" ], "tmux": [ - "3.2a", + "3.3a", "3.7c" ], "page": "ports/csharp/mcp/examples/inspect-sessions", "shellRecipe": [ "mkdir inspect-mcp-sessions", "cd inspect-mcp-sessions", - "dotnet tool install \\\n --tool-path .tools \\\n --version 0.0.0-alpha.20 \\\n LibTmux.Mcp", + "dotnet tool install \\\n --tool-path .tools \\\n --version 0.1.0 \\\n LibTmux.Mcp", "dotnet run --project McpExample.csproj --no-launch-profile" ] }, { "port": "csharp", "language": "csharp", - "sourceRevision": "ec8b6ab2a4f65e23664f43fba538ba200d4ae8bc", + "sourceRevision": "472c2bcfbda6735139849324cc109ad70300001e", "sourceRepository": "libtmux/libtmux-dotnet", "files": [ { "name": "McpExample.csproj", - "sha256": "a17e9ff530230a986888f38654225c5aaae0a6bff2ddc0c40e5ef312d3d3d370" + "sha256": "b0a6b06aa978bc41310fb31181445fdc77246efebbef414d2a9308f486f4f21c" }, { "name": "Program.cs", @@ -409,17 +409,17 @@ "toolchain": [ ".NET SDK 10.0.400; .NET 10 runtime", "ModelContextProtocol 2.2.0", - "LibTmux and LibTmux.Mcp 0.0.0-alpha.20" + "LibTmux and LibTmux.Mcp 0.1.0" ], "tmux": [ - "3.2a", + "3.4", "3.7c" ], "page": "ports/csharp/mcp/examples/run-command", "shellRecipe": [ "mkdir run-mcp-command", "cd run-mcp-command", - "dotnet tool install \\\n --tool-path .tools \\\n --version 0.0.0-alpha.20 \\\n LibTmux.Mcp", + "dotnet tool install \\\n --tool-path .tools \\\n --version 0.1.0 \\\n LibTmux.Mcp", "dotnet run --project McpExample.csproj --no-launch-profile" ] }, diff --git a/site/test/tmux-minimum.test.ts b/site/test/tmux-minimum.test.ts index 85b77f9a7..e45014322 100644 --- a/site/test/tmux-minimum.test.ts +++ b/site/test/tmux-minimum.test.ts @@ -61,6 +61,12 @@ export const OTHER_FLOORS = [ near: /Elixir \d/, why: 'the Elixir quickstart prerequisites; priv/tmux/support.json declares tmux_minimum 3.3', }, + { + path: 'site/src/data/home-examples.json', + version: '3.4', + near: /tmux 3\.4 or newer on Linux\/macOS/, + why: 'the F# quickstart prerequisites; the quickstart runs a command in a pane, which LibTmux 0.1.0 refuses below tmux 3.4 because earlier releases act on the most recent buffer when the named one is missing', + }, { path: 'site/src/lib/ports.ts', version: '3.3', From f21ccf2d78ba9c73edd3ea40d0c1b4e491722856 Mon Sep 17 00:00:00 2001 From: Tony Narlock Date: Mon, 26 Oct 2026 23:25:51 -0500 Subject: [PATCH 4/9] docs(ports[powershell]) Save LibTmux 0.1.0 on the homepage without -Prerelease why: LibTmux 0.1.0 is on the PowerShell Gallery, so the homepage recipe no longer needs -Prerelease or the 0.1.0-alpha2 pin. what: - Run Save-PSResource -Version 0.1.0 without -Prerelease; the program still imports modules/LibTmux/0.1.0/LibTmux.psd1, which the save creates - Point the homepage receipt at libtmux-powershell v0.1.0 (2c30121b, tree 3752a58d) with the new recipe, and record tmux 3.8 as the version that ran - Ran scripts/check-example-prose.py natively on all four views (PowerShell 7.4.20, tmux 3.8, scratch HOME): all passed, saving LibTmux 0.1.0 from the Gallery --- site/src/data/home-examples.json | 6 +++--- site/test/fixtures/home-examples.json | 8 ++++---- 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/site/src/data/home-examples.json b/site/src/data/home-examples.json index 15d4d3a79..0a53ce357 100644 --- a/site/src/data/home-examples.json +++ b/site/src/data/home-examples.json @@ -509,8 +509,8 @@ "powershell": { "lang": "powershell", "sourceRepository": "libtmux/libtmux-powershell", - "sourceRevision": "fcd0634e9ca887b70d88915c2d8e26c5da2737e5", - "sourceTree": "e842e7d382a31131e73b2e9967d2b5d977304a0a", + "sourceRevision": "2c30121b7733bf772d17140231a49332e5a470ab", + "sourceTree": "3752a58d6d5ff6852c5446cee4f4d95ad826ef8c", "program": "quickstart.ps1", "excerpt": { "startLine": 1, @@ -527,7 +527,7 @@ ], "prerequisites": "PowerShell 7.4.20 with PSResourceGet 1.1.1, POSIX shell and tmux on Linux.", "commands": [ - "pwsh -NoLogo -NoProfile -Command '\n $ErrorActionPreference = \"Stop\"\n $null = New-Item -ItemType Directory -Path ./modules -Force\n Save-PSResource -Name LibTmux -Version 0.1.0-alpha2 `\n -Prerelease -Path ./modules -TrustRepository\n'", + "pwsh -NoLogo -NoProfile -Command '\n $ErrorActionPreference = \"Stop\"\n $null = New-Item -ItemType Directory -Path ./modules -Force\n Save-PSResource -Name LibTmux -Version 0.1.0 `\n -Path ./modules -TrustRepository\n'", "unset TMUX TMUX_PANE\nexport ENV=/dev/null BASH_ENV=/dev/null SHELL=/bin/sh\npwsh -NoLogo -NoProfile -File quickstart.ps1" ], "expectedOutput": "editor: %0, %1\nlogs: %2\n", diff --git a/site/test/fixtures/home-examples.json b/site/test/fixtures/home-examples.json index e213b7a93..900b38376 100644 --- a/site/test/fixtures/home-examples.json +++ b/site/test/fixtures/home-examples.json @@ -1227,8 +1227,8 @@ "port": "powershell", "page": "home", "sourceRepository": "libtmux/libtmux-powershell", - "sourceRevision": "fcd0634e9ca887b70d88915c2d8e26c5da2737e5", - "sourceTree": "e842e7d382a31131e73b2e9967d2b5d977304a0a", + "sourceRevision": "2c30121b7733bf772d17140231a49332e5a470ab", + "sourceTree": "3752a58d6d5ff6852c5446cee4f4d95ad826ef8c", "files": [ { "name": "quickstart.ps1", @@ -1237,7 +1237,7 @@ } ], "shellRecipe": [ - "pwsh -NoLogo -NoProfile -Command '\n $ErrorActionPreference = \"Stop\"\n $null = New-Item -ItemType Directory -Path ./modules -Force\n Save-PSResource -Name LibTmux -Version 0.1.0-alpha2 `\n -Prerelease -Path ./modules -TrustRepository\n'", + "pwsh -NoLogo -NoProfile -Command '\n $ErrorActionPreference = \"Stop\"\n $null = New-Item -ItemType Directory -Path ./modules -Force\n Save-PSResource -Name LibTmux -Version 0.1.0 `\n -Path ./modules -TrustRepository\n'", "unset TMUX TMUX_PANE\nexport ENV=/dev/null BASH_ENV=/dev/null SHELL=/bin/sh\npwsh -NoLogo -NoProfile -File quickstart.ps1" ], "expectedOutputs": [ @@ -1249,7 +1249,7 @@ ], "excerptSha256": "2e0437140b5dc07e1fc5ad142052afd74cb550a7828f41e441c958bd1423cc72", "tmuxVersions": [ - "3.7d" + "3.8" ], "variants": { "concise": { From 2b7b39cec0f22d0123ca2db2e1ad00151347e2e0 Mon Sep 17 00:00:00 2001 From: Tony Narlock Date: Tue, 27 Oct 2026 04:25:55 -0500 Subject: [PATCH 5/9] docs(ports[go]) Build the examples against libtmux-go 0.1.0 why: The Go examples still installed the v0.0.1-alpha modules and a git checkout of an unreleased revision, so readers copied pins that are no longer the published release. what: - Install libtmux-mcp v0.1.0 and require libtmux-go v0.1.0 in the MCP inspect-sessions and run-command examples; the connect-client guide now reports libtmux-mcp v0.1.0. - Resolve the workspace example from the registry (libtmux-go and libtmux-go/workspace v0.1.0) instead of a fetched checkout with replace directives. - Point source links and the receipts at c21afc69 (core) and 59aed98c (mcp, workspace); receipts record tmux 3.3a and 3.7c. - Native runs: Go 1.26.5, tmux 3.3a, 3.7c and 3.8a, all passed; tmux 3.2a is below the 0.1.0 floor and is refused by the library. --- .../ports/go/mcp/examples/inspect-sessions.md | 8 ++--- .../docs/ports/go/mcp/examples/run-command.md | 8 ++--- .../ports/go/mcp/guides/connect-client.md | 6 ++-- .../ports/go/workspace/internals/examples.md | 26 ++++----------- site/test/fixtures/product-examples.json | 33 +++++++++---------- 5 files changed, 34 insertions(+), 47 deletions(-) diff --git a/site/src/content/docs/ports/go/mcp/examples/inspect-sessions.md b/site/src/content/docs/ports/go/mcp/examples/inspect-sessions.md index 26bcb5ae4..e74417be7 100644 --- a/site/src/content/docs/ports/go/mcp/examples/inspect-sessions.md +++ b/site/src/content/docs/ports/go/mcp/examples/inspect-sessions.md @@ -16,8 +16,8 @@ ID against the session it created, then closes the client and stops its server. ## Run the example Use Go 1.26 or newer and tmux 3.3a or newer on Linux, macOS, or WSL. -The project pins the [core library](https://github.com/libtmux/libtmux-go/tree/3f6f99dd41f077aaac2fa18acf7c82d99f58c7cd) -and [MCP executable](https://github.com/libtmux/libtmux-go/tree/6e7420927f4cb717fe089a710328e44e8d551025/mcp) +The project pins the [core library](https://github.com/libtmux/libtmux-go/tree/c21afc69867e989410e15b3616a8c0f0b1073c33) +and [MCP executable](https://github.com/libtmux/libtmux-go/tree/59aed98c06984e2f8613fd1df6ec8943f5f1eed3/mcp) to their published releases. The client uses the official Go MCP SDK. Create an empty directory: @@ -36,7 +36,7 @@ Install the MCP executable inside the project: ```console $ GOBIN="$PWD/.tools" go install \ - github.com/libtmux/libtmux-go/mcp/cmd/libtmux-mcp@v0.0.1-alpha.12 + github.com/libtmux/libtmux-go/mcp/cmd/libtmux-mcp@v0.1.0 ``` Save the module file: @@ -47,7 +47,7 @@ module example.com/session-inspector go 1.26.0 require ( - github.com/libtmux/libtmux-go v0.0.1-alpha.9 + github.com/libtmux/libtmux-go v0.1.0 github.com/modelcontextprotocol/go-sdk v1.6.1 ) diff --git a/site/src/content/docs/ports/go/mcp/examples/run-command.md b/site/src/content/docs/ports/go/mcp/examples/run-command.md index 7301159d6..56cfa51ba 100644 --- a/site/src/content/docs/ports/go/mcp/examples/run-command.md +++ b/site/src/content/docs/ports/go/mcp/examples/run-command.md @@ -16,8 +16,8 @@ The client checks completion and output before reporting the result. ## Run the example Use Go 1.26 or newer and tmux 3.3a or newer on Linux, macOS, or WSL. -The project pins the [core library](https://github.com/libtmux/libtmux-go/tree/3f6f99dd41f077aaac2fa18acf7c82d99f58c7cd) -and [MCP executable](https://github.com/libtmux/libtmux-go/tree/6e7420927f4cb717fe089a710328e44e8d551025/mcp) +The project pins the [core library](https://github.com/libtmux/libtmux-go/tree/c21afc69867e989410e15b3616a8c0f0b1073c33) +and [MCP executable](https://github.com/libtmux/libtmux-go/tree/59aed98c06984e2f8613fd1df6ec8943f5f1eed3/mcp) to their published releases. The client uses the official Go MCP SDK. Create an empty directory: @@ -36,7 +36,7 @@ Install the MCP executable inside the project: ```console $ GOBIN="$PWD/.tools" go install \ - github.com/libtmux/libtmux-go/mcp/cmd/libtmux-mcp@v0.0.1-alpha.12 + github.com/libtmux/libtmux-go/mcp/cmd/libtmux-mcp@v0.1.0 ``` Save the module file: @@ -47,7 +47,7 @@ module example.com/command-runner go 1.26.0 require ( - github.com/libtmux/libtmux-go v0.0.1-alpha.9 + github.com/libtmux/libtmux-go v0.1.0 github.com/modelcontextprotocol/go-sdk v1.6.1 ) diff --git a/site/src/content/docs/ports/go/mcp/guides/connect-client.md b/site/src/content/docs/ports/go/mcp/guides/connect-client.md index 29aac3720..4fd0775d3 100644 --- a/site/src/content/docs/ports/go/mcp/guides/connect-client.md +++ b/site/src/content/docs/ports/go/mcp/guides/connect-client.md @@ -16,11 +16,11 @@ go to stderr, which the client should retain in its server log. ## Install the command Use Go 1.26 or newer and tmux 3.3a or newer on Linux, macOS, or WSL. Install the -[published MCP module](https://github.com/libtmux/libtmux-go/tree/6e7420927f4cb717fe089a710328e44e8d551025/mcp): +[published MCP module](https://github.com/libtmux/libtmux-go/tree/59aed98c06984e2f8613fd1df6ec8943f5f1eed3/mcp): ```console $ go install \ - github.com/libtmux/libtmux-go/mcp/cmd/libtmux-mcp@v0.0.1-alpha.12 + github.com/libtmux/libtmux-go/mcp/cmd/libtmux-mcp@v0.1.0 ``` Make the Go installation directory available in the MCP client's `PATH`, or @@ -32,7 +32,7 @@ Check the executable the client will launch: $ libtmux-mcp -version ``` -The installed release reports `libtmux-mcp v0.0.1-alpha.12`. The +The installed release reports `libtmux-mcp v0.1.0`. The [complete SDK example](../../examples/inspect-sessions/) installs this same release into a local `.tools` directory and supplies the client code. diff --git a/site/src/content/docs/ports/go/workspace/internals/examples.md b/site/src/content/docs/ports/go/workspace/internals/examples.md index d132e7d3a..833098819 100644 --- a/site/src/content/docs/ports/go/workspace/internals/examples.md +++ b/site/src/content/docs/ports/go/workspace/internals/examples.md @@ -17,22 +17,14 @@ application or log file. ## Prepare the project -Use Go 1.26, Git, and tmux 3.3a or newer on Unix. Create an empty project and -fetch the source revision used by this example: +Use Go 1.26 and tmux 3.3a or newer on Unix. Create an empty project: ```console $ mkdir go-workspace-example && cd go-workspace-example ``` -```console -$ git init libtmux-source && \ - git -C libtmux-source remote add origin https://github.com/libtmux/libtmux-go.git && \ - git -C libtmux-source fetch --depth=1 origin bb06e26e116e941813ca40bf45e7e3a47d38f52a && \ - git -C libtmux-source checkout --detach FETCH_HEAD -``` - -Create the module file. Both replacements select that checkout, so the core -and workspace libraries use the same source revision: +Create the module file. It requires the published core and workspace +modules at `v0.1.0`; the indirect YAML dependency is what `go mod tidy` resolves: ```go title="go.mod" module example.com/workspace @@ -40,15 +32,11 @@ module example.com/workspace go 1.26.0 require ( - github.com/libtmux/libtmux-go v0.0.1-alpha.9 - github.com/libtmux/libtmux-go/workspace v0.0.0 + github.com/libtmux/libtmux-go v0.1.0 + github.com/libtmux/libtmux-go/workspace v0.1.0 ) require go.yaml.in/yaml/v3 v3.0.5 // indirect - -replace github.com/libtmux/libtmux-go => ./libtmux-source - -replace github.com/libtmux/libtmux-go/workspace => ./libtmux-source/workspace ``` Create the workspace file in the same directory: @@ -189,5 +177,5 @@ selected server and choose when to stop it. -[Builder source](https://github.com/libtmux/libtmux-go/blob/bb06e26e116e941813ca40bf45e7e3a47d38f52a/workspace/builder.go); -[configuration source](https://github.com/libtmux/libtmux-go/blob/bb06e26e116e941813ca40bf45e7e3a47d38f52a/workspace/workspace.go). +[Builder source](https://github.com/libtmux/libtmux-go/blob/59aed98c06984e2f8613fd1df6ec8943f5f1eed3/workspace/builder.go); +[configuration source](https://github.com/libtmux/libtmux-go/blob/59aed98c06984e2f8613fd1df6ec8943f5f1eed3/workspace/workspace.go). diff --git a/site/test/fixtures/product-examples.json b/site/test/fixtures/product-examples.json index 60c04812e..90c1cb653 100644 --- a/site/test/fixtures/product-examples.json +++ b/site/test/fixtures/product-examples.json @@ -207,7 +207,7 @@ { "port": "go", "language": "go", - "sourceRevision": "bb06e26e116e941813ca40bf45e7e3a47d38f52a", + "sourceRevision": "59aed98c06984e2f8613fd1df6ec8943f5f1eed3", "sourceRepository": "libtmux/libtmux-go", "files": [ { @@ -216,7 +216,7 @@ }, { "name": "go.mod", - "sha256": "389de8aafa2051802de5153ff5020de1529ad034732da91885cff3b9265e324d" + "sha256": "6756a23475ee988412ed9249698083c7685c5658b49cc830ad4c76f81183918f" }, { "name": "workspace.yaml", @@ -224,16 +224,15 @@ } ], "toolchain": [ - "Go 1.26.8" + "Go 1.26.5" ], "tmux": [ - "3.2a", + "3.3a", "3.7c" ], "page": "ports/go/workspace/internals/examples", "shellRecipe": [ "mkdir go-workspace-example && cd go-workspace-example", - "git init libtmux-source && \\\n git -C libtmux-source remote add origin https://github.com/libtmux/libtmux-go.git && \\\n git -C libtmux-source fetch --depth=1 origin bb06e26e116e941813ca40bf45e7e3a47d38f52a && \\\n git -C libtmux-source checkout --detach FETCH_HEAD", "go mod tidy", "go run ." ] @@ -426,12 +425,12 @@ { "port": "go", "language": "go", - "sourceRevision": "6e7420927f4cb717fe089a710328e44e8d551025", + "sourceRevision": "59aed98c06984e2f8613fd1df6ec8943f5f1eed3", "sourceRepository": "libtmux/libtmux-go", "files": [ { "name": "go.mod", - "sha256": "96275c7f48d59c0b5fab40050b874c791afa26c33e91caa75c2f86d8bfe96247" + "sha256": "11837e181881db11ded5043877a62be815e4bd6828c4e39ecdbf674cde2eb3c8" }, { "name": "main.go", @@ -440,19 +439,19 @@ ], "toolchain": [ "Go 1.26.5", - "github.com/libtmux/libtmux-go v0.0.1-alpha.9", - "github.com/libtmux/libtmux-go/mcp v0.0.1-alpha.12", + "github.com/libtmux/libtmux-go v0.1.0", + "github.com/libtmux/libtmux-go/mcp v0.1.0", "github.com/modelcontextprotocol/go-sdk v1.6.1" ], "tmux": [ - "3.2a", + "3.3a", "3.7c" ], "page": "ports/go/mcp/examples/inspect-sessions", "shellRecipe": [ "mkdir inspect-mcp-sessions", "cd inspect-mcp-sessions", - "GOBIN=\"$PWD/.tools\" go install \\\n github.com/libtmux/libtmux-go/mcp/cmd/libtmux-mcp@v0.0.1-alpha.12", + "GOBIN=\"$PWD/.tools\" go install \\\n github.com/libtmux/libtmux-go/mcp/cmd/libtmux-mcp@v0.1.0", "go mod tidy", "go run ." ] @@ -460,12 +459,12 @@ { "port": "go", "language": "go", - "sourceRevision": "6e7420927f4cb717fe089a710328e44e8d551025", + "sourceRevision": "59aed98c06984e2f8613fd1df6ec8943f5f1eed3", "sourceRepository": "libtmux/libtmux-go", "files": [ { "name": "go.mod", - "sha256": "08431445630b8c2f989a6294e939a9746857bf2d88e28903cb28a72d67461fd0" + "sha256": "27926a7fbebb1ea920e7b3192c556f8b2c5e9e8b3366a4906a9b4ba4ce63d6c1" }, { "name": "main.go", @@ -474,19 +473,19 @@ ], "toolchain": [ "Go 1.26.5", - "github.com/libtmux/libtmux-go v0.0.1-alpha.9", - "github.com/libtmux/libtmux-go/mcp v0.0.1-alpha.12", + "github.com/libtmux/libtmux-go v0.1.0", + "github.com/libtmux/libtmux-go/mcp v0.1.0", "github.com/modelcontextprotocol/go-sdk v1.6.1" ], "tmux": [ - "3.2a", + "3.3a", "3.7c" ], "page": "ports/go/mcp/examples/run-command", "shellRecipe": [ "mkdir run-mcp-command", "cd run-mcp-command", - "GOBIN=\"$PWD/.tools\" go install \\\n github.com/libtmux/libtmux-go/mcp/cmd/libtmux-mcp@v0.0.1-alpha.12", + "GOBIN=\"$PWD/.tools\" go install \\\n github.com/libtmux/libtmux-go/mcp/cmd/libtmux-mcp@v0.1.0", "go mod tidy", "go run ." ] From b0aecdd790ac54367a75261e761ee2dbea8871e8 Mon Sep 17 00:00:00 2001 From: Tony Narlock Date: Tue, 27 Oct 2026 04:30:51 -0500 Subject: [PATCH 6/9] docs(ports[rs]) Build the examples against libtmux 0.1.0 from crates.io why: The homepage example built a git checkout whose Cargo.lock named libtmux 0.1.0-alpha.15, and the MCP pages installed an alpha-era git revision and printed an alpha version, so readers copied pins that are not the published release. what: - Homepage rs example depends on `libtmux = "0.1.0"`; Cargo.lock comes from a real `cargo generate-lockfile` against crates.io (libtmux 0.1.0), and the git clone step and Git prerequisite are gone. - Point sourceRevision and sourceTree at ce7610a3 / its tree and refresh the Cargo.toml and Cargo.lock hashes in every view of the receipt. - tmux-mcp connect-client installs `tmux-mcp@0.1.0` from crates.io and shows `tmux-mcp 0.1.0` (verified by installing it). - The MCP inspect-sessions example uses libtmux and tmux-mcp 0.1.0 from crates.io instead of git revisions. - Receipts record tmux 3.3a and 3.7c; 3.2a is below the 0.1.0 floor and the library refuses it. - Native runs: Rust 1.97.1, tmux 3.3a and 3.7c (homepage full, concise, errors, cleanup; inspect-sessions), all passed. --- .../ports/rs/mcp/examples/inspect-sessions.md | 10 ++--- .../ports/rs/mcp/guides/connect-client.md | 14 +++---- site/src/data/home-examples.json | 12 +++--- site/test/fixtures/home-examples.json | 40 +++++++++---------- site/test/fixtures/product-examples.json | 6 +-- 5 files changed, 39 insertions(+), 43 deletions(-) diff --git a/site/src/content/docs/ports/rs/mcp/examples/inspect-sessions.md b/site/src/content/docs/ports/rs/mcp/examples/inspect-sessions.md index b9987930d..a0bafacbe 100644 --- a/site/src/content/docs/ports/rs/mcp/examples/inspect-sessions.md +++ b/site/src/content/docs/ports/rs/mcp/examples/inspect-sessions.md @@ -19,9 +19,9 @@ that server before exiting. The socket lives in a temporary directory under ## Run the example -Use Git, Rust 1.97.1, and tmux 3.3a or newer on Linux or macOS. Both libtmux -crates below use the source revision documented by the MCP reference. -The example was run on Linux with tmux 3.2a and 3.7c. +Use Rust 1.97.1 and tmux 3.3a or newer on Linux or macOS. Both libtmux +crates below are the published [0.1.0 release](https://github.com/libtmux/libtmux-rs/tree/ce7610a3b46376c377292e5a640b3798c18708fe). +The example was run on Linux with tmux 3.3a and 3.7c. Create a directory for the program: @@ -47,8 +47,8 @@ edition = "2024" publish = false [dependencies] -libtmux = { git = "https://github.com/libtmux/libtmux-rs", rev = "a6fc2a65674177b92b17fa380757155d2ba150fd" } -tmux-mcp = { git = "https://github.com/libtmux/libtmux-rs", rev = "a6fc2a65674177b92b17fa380757155d2ba150fd" } +libtmux = "0.1.0" +tmux-mcp = "0.1.0" rmcp = { version = "=3.1.2", features = ["client", "server", "transport-io"] } serde_json = "=1.0.151" tempfile = "=3.27.0" diff --git a/site/src/content/docs/ports/rs/mcp/guides/connect-client.md b/site/src/content/docs/ports/rs/mcp/guides/connect-client.md index 01867907c..d740985f6 100644 --- a/site/src/content/docs/ports/rs/mcp/guides/connect-client.md +++ b/site/src/content/docs/ports/rs/mcp/guides/connect-client.md @@ -13,19 +13,15 @@ sidebar: the executable and exchanges JSON-RPC messages over stdin and stdout. The launcher writes diagnostics to stderr. -Use Rust 1.88 or newer, Git, and tmux 3.3a or newer on Linux or macOS. +Use Rust 1.88 or newer and tmux 3.3a or newer on Linux or macOS. The command below uses the tested Rust 1.97.1 toolchain and installs the -source revision used by this documentation's MCP reference. Cargo's -binary directory must be on the path available to your MCP client. +published `tmux-mcp` 0.1.0 crate. Cargo's binary directory must be on the +path available to your MCP client. ## Install and connect ```console -$ cargo +1.97.1 install \ - --git https://github.com/libtmux/libtmux-rs \ - --rev a6fc2a65674177b92b17fa380757155d2ba150fd \ - --locked \ - tmux-mcp +$ cargo +1.97.1 install --locked tmux-mcp@0.1.0 ``` Check that the installed command runs: @@ -37,7 +33,7 @@ $ tmux-mcp --version Expected output: ```text -tmux-mcp 0.1.0-alpha.16 +tmux-mcp 0.1.0 ``` For a client that accepts `mcpServers`, add this entry to its configuration: diff --git a/site/src/data/home-examples.json b/site/src/data/home-examples.json index 0a53ce357..410e58785 100644 --- a/site/src/data/home-examples.json +++ b/site/src/data/home-examples.json @@ -142,8 +142,8 @@ "rs": { "lang": "rust", "sourceRepository": "libtmux/libtmux-rs", - "sourceRevision": "a6fc2a65674177b92b17fa380757155d2ba150fd", - "sourceTree": "865aef72a40135bade83eb5d44c0b78ea018a270", + "sourceRevision": "ce7610a3b46376c377292e5a640b3798c18708fe", + "sourceTree": "32c8792ffcd03d4d1c58d1f25b8d29fd36fc2287", "program": "src/main.rs", "excerpt": { "startLine": 1, @@ -160,12 +160,12 @@ { "name": "Cargo.toml", "lang": "toml", - "code": "[package]\nname = \"libtmux-home-quickstart\"\nversion = \"0.0.0\"\nedition = \"2024\"\npublish = false\n\n[dependencies]\nlibtmux = { path = \"source/crates/libtmux\" }\ntempfile = \"3.20\"\ntokio = { version = \"1.40\", features = [\"macros\", \"rt\", \"time\"] }\n" + "code": "[package]\nname = \"libtmux-home-quickstart\"\nversion = \"0.0.0\"\nedition = \"2024\"\npublish = false\n\n[dependencies]\nlibtmux = \"0.1.0\"\ntempfile = \"3.20\"\ntokio = { version = \"1.40\", features = [\"macros\", \"rt\", \"time\"] }\n" }, { "name": "Cargo.lock", "lang": "toml", - "code": "# This file is automatically @generated by Cargo.\n# It is not intended for manual editing.\nversion = 4\n\n[[package]]\nname = \"aho-corasick\"\nversion = \"1.1.5\"\nsource = \"registry+https://github.com/rust-lang/crates.io-index\"\nchecksum = \"c982642fa9e8606056828ee9a8505737230110bb1099153c79efe865c59d12ba\"\ndependencies = [\n \"memchr\",\n]\n\n[[package]]\nname = \"bitflags\"\nversion = \"2.13.2\"\nsource = \"registry+https://github.com/rust-lang/crates.io-index\"\nchecksum = \"3ded4057c258ba199e2d26386d3af3780957ecaee6c4ef4041c6b4b8b97c0b06\"\n\n[[package]]\nname = \"bytes\"\nversion = \"1.12.1\"\nsource = \"registry+https://github.com/rust-lang/crates.io-index\"\nchecksum = \"fc652a48c352aef3ea3aed32080501cf3ef6ed5da78602a020c991775b0aff04\"\n\n[[package]]\nname = \"caseless\"\nversion = \"0.2.2\"\nsource = \"registry+https://github.com/rust-lang/crates.io-index\"\nchecksum = \"8b6fd507454086c8edfd769ca6ada439193cdb209c7681712ef6275cccbfe5d8\"\ndependencies = [\n \"unicode-normalization\",\n]\n\n[[package]]\nname = \"cfg-if\"\nversion = \"1.0.5\"\nsource = \"registry+https://github.com/rust-lang/crates.io-index\"\nchecksum = \"4e7648175b45a9a48536d676f68d918270699102aa8dab5496df06904c914600\"\n\n[[package]]\nname = \"errno\"\nversion = \"0.3.14\"\nsource = \"registry+https://github.com/rust-lang/crates.io-index\"\nchecksum = \"39cab71617ae0d63f51a36d69f866391735b51691dbda63cf6f96d042b63efeb\"\ndependencies = [\n \"libc\",\n \"windows-sys\",\n]\n\n[[package]]\nname = \"fastrand\"\nversion = \"2.5.0\"\nsource = \"registry+https://github.com/rust-lang/crates.io-index\"\nchecksum = \"da7c62ceae207dd37ea5b845da6a0696c799f85e97da1ab5b7910be3c1c80223\"\n\n[[package]]\nname = \"getrandom\"\nversion = \"0.4.3\"\nsource = \"registry+https://github.com/rust-lang/crates.io-index\"\nchecksum = \"300e883d756b2e4ec94e02791f39b04b522276138852cfc41d9fb7e904106099\"\ndependencies = [\n \"cfg-if\",\n \"libc\",\n \"r-efi\",\n]\n\n[[package]]\nname = \"libc\"\nversion = \"0.2.190\"\nsource = \"registry+https://github.com/rust-lang/crates.io-index\"\nchecksum = \"ce5d3ddc6d3fa000eb1536d85e147bfe31aacaba692ed6a876f95cb7c855be78\"\n\n[[package]]\nname = \"libtmux\"\nversion = \"0.1.0-alpha.15\"\ndependencies = [\n \"caseless\",\n \"regex\",\n \"rustix\",\n \"thiserror\",\n \"tokio\",\n]\n\n[[package]]\nname = \"libtmux-home-quickstart\"\nversion = \"0.0.0\"\ndependencies = [\n \"libtmux\",\n \"tempfile\",\n \"tokio\",\n]\n\n[[package]]\nname = \"linux-raw-sys\"\nversion = \"0.12.1\"\nsource = \"registry+https://github.com/rust-lang/crates.io-index\"\nchecksum = \"32a66949e030da00e8c7d4434b251670a91556f4144941d37452769c25d58a53\"\n\n[[package]]\nname = \"memchr\"\nversion = \"2.8.3\"\nsource = \"registry+https://github.com/rust-lang/crates.io-index\"\nchecksum = \"cf8baf1c55e62ffcace7a9f06f4bd9cd3f0c4beb022d3b367256b91b87513d98\"\n\n[[package]]\nname = \"mio\"\nversion = \"1.2.3\"\nsource = \"registry+https://github.com/rust-lang/crates.io-index\"\nchecksum = \"4b18443e9c262bfe8fa82f51666e2642c53393f7e5c27b3e1aeab922cff5b9d8\"\ndependencies = [\n \"libc\",\n \"wasi\",\n \"windows-sys\",\n]\n\n[[package]]\nname = \"once_cell\"\nversion = \"1.21.4\"\nsource = \"registry+https://github.com/rust-lang/crates.io-index\"\nchecksum = \"9f7c3e4beb33f85d45ae3e3a1792185706c8e16d043238c593331cc7cd313b50\"\n\n[[package]]\nname = \"pin-project-lite\"\nversion = \"0.2.17\"\nsource = \"registry+https://github.com/rust-lang/crates.io-index\"\nchecksum = \"a89322df9ebe1c1578d689c92318e070967d1042b512afbe49518723f4e6d5cd\"\n\n[[package]]\nname = \"proc-macro2\"\nversion = \"1.0.107\"\nsource = \"registry+https://github.com/rust-lang/crates.io-index\"\nchecksum = \"985e7ec9bb745e6ce6535b544d84d6cd6f7ad8bd711c398938ae983b91a766d9\"\ndependencies = [\n \"unicode-ident\",\n]\n\n[[package]]\nname = \"quote\"\nversion = \"1.0.47\"\nsource = \"registry+https://github.com/rust-lang/crates.io-index\"\nchecksum = \"1fbf4db142a473a8d80c26bbf18454ed458bf8d26c8219c331daecfdbd079001\"\ndependencies = [\n \"proc-macro2\",\n]\n\n[[package]]\nname = \"r-efi\"\nversion = \"6.0.0\"\nsource = \"registry+https://github.com/rust-lang/crates.io-index\"\nchecksum = \"f8dcc9c7d52a811697d2151c701e0d08956f92b0e24136cf4cf27b57a6a0d9bf\"\n\n[[package]]\nname = \"regex\"\nversion = \"1.13.1\"\nsource = \"registry+https://github.com/rust-lang/crates.io-index\"\nchecksum = \"f020237b6c8eed93db2e2cb53c00c60a8e1bc73da7d073199a1180401450218d\"\ndependencies = [\n \"aho-corasick\",\n \"memchr\",\n \"regex-automata\",\n \"regex-syntax\",\n]\n\n[[package]]\nname = \"regex-automata\"\nversion = \"0.4.18\"\nsource = \"registry+https://github.com/rust-lang/crates.io-index\"\nchecksum = \"ad8553b9b26413251cbf30e620595c7a41b3887f03da04579c0e6b0d6a06b4b2\"\ndependencies = [\n \"aho-corasick\",\n \"memchr\",\n \"regex-syntax\",\n]\n\n[[package]]\nname = \"regex-syntax\"\nversion = \"0.8.11\"\nsource = \"registry+https://github.com/rust-lang/crates.io-index\"\nchecksum = \"d6f6ff9a378485b298a5286656da665ba74413d36db0979633275d2e708145d4\"\n\n[[package]]\nname = \"rustix\"\nversion = \"1.1.5\"\nsource = \"registry+https://github.com/rust-lang/crates.io-index\"\nchecksum = \"891efababe418670775f199f0d233d84843c227a0949a883ce15b37c78d6629d\"\ndependencies = [\n \"bitflags\",\n \"errno\",\n \"libc\",\n \"linux-raw-sys\",\n \"windows-sys\",\n]\n\n[[package]]\nname = \"signal-hook-registry\"\nversion = \"1.4.8\"\nsource = \"registry+https://github.com/rust-lang/crates.io-index\"\nchecksum = \"c4db69cba1110affc0e9f7bcd48bbf87b3f4fc7c61fc9155afd4c469eb3d6c1b\"\ndependencies = [\n \"errno\",\n \"libc\",\n]\n\n[[package]]\nname = \"syn\"\nversion = \"3.0.6\"\nsource = \"registry+https://github.com/rust-lang/crates.io-index\"\nchecksum = \"8593e8e72159ed2257d083c7a454a85cbf854f37a0966d8d483aff8c8a3ebcee\"\ndependencies = [\n \"proc-macro2\",\n \"quote\",\n \"unicode-ident\",\n]\n\n[[package]]\nname = \"tempfile\"\nversion = \"3.27.0\"\nsource = \"registry+https://github.com/rust-lang/crates.io-index\"\nchecksum = \"32497e9a4c7b38532efcdebeef879707aa9f794296a4f0244f6f69e9bc8574bd\"\ndependencies = [\n \"fastrand\",\n \"getrandom\",\n \"once_cell\",\n \"rustix\",\n \"windows-sys\",\n]\n\n[[package]]\nname = \"thiserror\"\nversion = \"2.0.21\"\nsource = \"registry+https://github.com/rust-lang/crates.io-index\"\nchecksum = \"09e52cb86a36cede5cb101bf8908837b3e4c6e5e59fe7fd85c23fb56200d189e\"\ndependencies = [\n \"thiserror-impl\",\n]\n\n[[package]]\nname = \"thiserror-impl\"\nversion = \"2.0.21\"\nsource = \"registry+https://github.com/rust-lang/crates.io-index\"\nchecksum = \"fe5197923287db20a58125f0bc85c062f7f2c892de97b18c356f9efb14b28524\"\ndependencies = [\n \"proc-macro2\",\n \"quote\",\n \"syn\",\n]\n\n[[package]]\nname = \"tinyvec\"\nversion = \"1.13.3\"\nsource = \"registry+https://github.com/rust-lang/crates.io-index\"\nchecksum = \"fd3ca314f692efd6c868f8408f53fe444634a845f96c028b97d35f6a1f79f0ee\"\n\n[[package]]\nname = \"tokio\"\nversion = \"1.53.2\"\nsource = \"registry+https://github.com/rust-lang/crates.io-index\"\nchecksum = \"e95f91fcc7a621e8b030f6aa23c71fe9838ae2fb4d8118b75602a328f5144044\"\ndependencies = [\n \"bytes\",\n \"libc\",\n \"mio\",\n \"pin-project-lite\",\n \"signal-hook-registry\",\n \"tokio-macros\",\n \"windows-sys\",\n]\n\n[[package]]\nname = \"tokio-macros\"\nversion = \"2.7.2\"\nsource = \"registry+https://github.com/rust-lang/crates.io-index\"\nchecksum = \"78773a2a397f451582ce068015985c33193cf6dea8b74d2a639fe457b2f07b0e\"\ndependencies = [\n \"proc-macro2\",\n \"quote\",\n \"syn\",\n]\n\n[[package]]\nname = \"unicode-ident\"\nversion = \"1.0.26\"\nsource = \"registry+https://github.com/rust-lang/crates.io-index\"\nchecksum = \"d245f478577f809a851594d02313b640fb437e0bb33866753cff937863096954\"\n\n[[package]]\nname = \"unicode-normalization\"\nversion = \"0.1.25\"\nsource = \"registry+https://github.com/rust-lang/crates.io-index\"\nchecksum = \"5fd4f6878c9cb28d874b009da9e8d183b5abc80117c40bbd187a1fde336be6e8\"\ndependencies = [\n \"tinyvec\",\n]\n\n[[package]]\nname = \"wasi\"\nversion = \"0.11.1+wasi-snapshot-preview1\"\nsource = \"registry+https://github.com/rust-lang/crates.io-index\"\nchecksum = \"ccf3ec651a847eb01de73ccad15eb7d99f80485de043efb2f370cd654f4ea44b\"\n\n[[package]]\nname = \"windows-link\"\nversion = \"0.2.1\"\nsource = \"registry+https://github.com/rust-lang/crates.io-index\"\nchecksum = \"f0805222e57f7521d6a62e36fa9163bc891acd422f971defe97d64e70d0a4fe5\"\n\n[[package]]\nname = \"windows-sys\"\nversion = \"0.61.2\"\nsource = \"registry+https://github.com/rust-lang/crates.io-index\"\nchecksum = \"ae137229bcbd6cdf0f7b80a31df61766145077ddf49416a728b02cb3921ff3fc\"\ndependencies = [\n \"windows-link\",\n]\n" + "code": "# This file is automatically @generated by Cargo.\n# It is not intended for manual editing.\nversion = 4\n\n[[package]]\nname = \"aho-corasick\"\nversion = \"1.1.5\"\nsource = \"registry+https://github.com/rust-lang/crates.io-index\"\nchecksum = \"c982642fa9e8606056828ee9a8505737230110bb1099153c79efe865c59d12ba\"\ndependencies = [\n \"memchr\",\n]\n\n[[package]]\nname = \"bitflags\"\nversion = \"2.13.2\"\nsource = \"registry+https://github.com/rust-lang/crates.io-index\"\nchecksum = \"3ded4057c258ba199e2d26386d3af3780957ecaee6c4ef4041c6b4b8b97c0b06\"\n\n[[package]]\nname = \"bytes\"\nversion = \"1.12.1\"\nsource = \"registry+https://github.com/rust-lang/crates.io-index\"\nchecksum = \"fc652a48c352aef3ea3aed32080501cf3ef6ed5da78602a020c991775b0aff04\"\n\n[[package]]\nname = \"caseless\"\nversion = \"0.2.2\"\nsource = \"registry+https://github.com/rust-lang/crates.io-index\"\nchecksum = \"8b6fd507454086c8edfd769ca6ada439193cdb209c7681712ef6275cccbfe5d8\"\ndependencies = [\n \"unicode-normalization\",\n]\n\n[[package]]\nname = \"cfg-if\"\nversion = \"1.0.5\"\nsource = \"registry+https://github.com/rust-lang/crates.io-index\"\nchecksum = \"4e7648175b45a9a48536d676f68d918270699102aa8dab5496df06904c914600\"\n\n[[package]]\nname = \"errno\"\nversion = \"0.3.14\"\nsource = \"registry+https://github.com/rust-lang/crates.io-index\"\nchecksum = \"39cab71617ae0d63f51a36d69f866391735b51691dbda63cf6f96d042b63efeb\"\ndependencies = [\n \"libc\",\n \"windows-sys\",\n]\n\n[[package]]\nname = \"fastrand\"\nversion = \"2.5.0\"\nsource = \"registry+https://github.com/rust-lang/crates.io-index\"\nchecksum = \"da7c62ceae207dd37ea5b845da6a0696c799f85e97da1ab5b7910be3c1c80223\"\n\n[[package]]\nname = \"getrandom\"\nversion = \"0.4.3\"\nsource = \"registry+https://github.com/rust-lang/crates.io-index\"\nchecksum = \"300e883d756b2e4ec94e02791f39b04b522276138852cfc41d9fb7e904106099\"\ndependencies = [\n \"cfg-if\",\n \"libc\",\n \"r-efi\",\n]\n\n[[package]]\nname = \"libc\"\nversion = \"0.2.191\"\nsource = \"registry+https://github.com/rust-lang/crates.io-index\"\nchecksum = \"65cd87c9a6d60536580b316ad985726104730a5151c99845f2490428ef91240a\"\n\n[[package]]\nname = \"libtmux\"\nversion = \"0.1.0\"\nsource = \"registry+https://github.com/rust-lang/crates.io-index\"\nchecksum = \"d5a6ac3b0304461e4d8825397b931cbaab705e9cacfcc485974ff5a4252fffb6\"\ndependencies = [\n \"caseless\",\n \"regex\",\n \"rustix\",\n \"thiserror\",\n \"tokio\",\n]\n\n[[package]]\nname = \"libtmux-home-quickstart\"\nversion = \"0.0.0\"\ndependencies = [\n \"libtmux\",\n \"tempfile\",\n \"tokio\",\n]\n\n[[package]]\nname = \"linux-raw-sys\"\nversion = \"0.12.1\"\nsource = \"registry+https://github.com/rust-lang/crates.io-index\"\nchecksum = \"32a66949e030da00e8c7d4434b251670a91556f4144941d37452769c25d58a53\"\n\n[[package]]\nname = \"memchr\"\nversion = \"2.8.3\"\nsource = \"registry+https://github.com/rust-lang/crates.io-index\"\nchecksum = \"cf8baf1c55e62ffcace7a9f06f4bd9cd3f0c4beb022d3b367256b91b87513d98\"\n\n[[package]]\nname = \"mio\"\nversion = \"1.2.4\"\nsource = \"registry+https://github.com/rust-lang/crates.io-index\"\nchecksum = \"1788edb87fdc09c7e26304471e2f5be8cdefb1b6930d6e3985fc02ff53bf86ee\"\ndependencies = [\n \"libc\",\n \"wasi\",\n \"windows-sys\",\n]\n\n[[package]]\nname = \"once_cell\"\nversion = \"1.21.4\"\nsource = \"registry+https://github.com/rust-lang/crates.io-index\"\nchecksum = \"9f7c3e4beb33f85d45ae3e3a1792185706c8e16d043238c593331cc7cd313b50\"\n\n[[package]]\nname = \"pin-project-lite\"\nversion = \"0.2.17\"\nsource = \"registry+https://github.com/rust-lang/crates.io-index\"\nchecksum = \"a89322df9ebe1c1578d689c92318e070967d1042b512afbe49518723f4e6d5cd\"\n\n[[package]]\nname = \"proc-macro2\"\nversion = \"1.0.107\"\nsource = \"registry+https://github.com/rust-lang/crates.io-index\"\nchecksum = \"985e7ec9bb745e6ce6535b544d84d6cd6f7ad8bd711c398938ae983b91a766d9\"\ndependencies = [\n \"unicode-ident\",\n]\n\n[[package]]\nname = \"quote\"\nversion = \"1.0.47\"\nsource = \"registry+https://github.com/rust-lang/crates.io-index\"\nchecksum = \"1fbf4db142a473a8d80c26bbf18454ed458bf8d26c8219c331daecfdbd079001\"\ndependencies = [\n \"proc-macro2\",\n]\n\n[[package]]\nname = \"r-efi\"\nversion = \"6.0.0\"\nsource = \"registry+https://github.com/rust-lang/crates.io-index\"\nchecksum = \"f8dcc9c7d52a811697d2151c701e0d08956f92b0e24136cf4cf27b57a6a0d9bf\"\n\n[[package]]\nname = \"regex\"\nversion = \"1.13.1\"\nsource = \"registry+https://github.com/rust-lang/crates.io-index\"\nchecksum = \"f020237b6c8eed93db2e2cb53c00c60a8e1bc73da7d073199a1180401450218d\"\ndependencies = [\n \"aho-corasick\",\n \"memchr\",\n \"regex-automata\",\n \"regex-syntax\",\n]\n\n[[package]]\nname = \"regex-automata\"\nversion = \"0.4.18\"\nsource = \"registry+https://github.com/rust-lang/crates.io-index\"\nchecksum = \"ad8553b9b26413251cbf30e620595c7a41b3887f03da04579c0e6b0d6a06b4b2\"\ndependencies = [\n \"aho-corasick\",\n \"memchr\",\n \"regex-syntax\",\n]\n\n[[package]]\nname = \"regex-syntax\"\nversion = \"0.8.11\"\nsource = \"registry+https://github.com/rust-lang/crates.io-index\"\nchecksum = \"d6f6ff9a378485b298a5286656da665ba74413d36db0979633275d2e708145d4\"\n\n[[package]]\nname = \"rustix\"\nversion = \"1.1.6\"\nsource = \"registry+https://github.com/rust-lang/crates.io-index\"\nchecksum = \"e5e76742e5294153d4dde1207dbec5bdd81eef6fabdc0d2118babadabfd858aa\"\ndependencies = [\n \"bitflags\",\n \"errno\",\n \"libc\",\n \"linux-raw-sys\",\n \"windows-sys\",\n]\n\n[[package]]\nname = \"signal-hook-registry\"\nversion = \"1.4.8\"\nsource = \"registry+https://github.com/rust-lang/crates.io-index\"\nchecksum = \"c4db69cba1110affc0e9f7bcd48bbf87b3f4fc7c61fc9155afd4c469eb3d6c1b\"\ndependencies = [\n \"errno\",\n \"libc\",\n]\n\n[[package]]\nname = \"syn\"\nversion = \"3.0.9\"\nsource = \"registry+https://github.com/rust-lang/crates.io-index\"\nchecksum = \"d78c8dee4c7bf0e14673097256fed6142ce9d3b85a408189d07482442145823b\"\ndependencies = [\n \"proc-macro2\",\n \"quote\",\n \"unicode-ident\",\n]\n\n[[package]]\nname = \"tempfile\"\nversion = \"3.27.0\"\nsource = \"registry+https://github.com/rust-lang/crates.io-index\"\nchecksum = \"32497e9a4c7b38532efcdebeef879707aa9f794296a4f0244f6f69e9bc8574bd\"\ndependencies = [\n \"fastrand\",\n \"getrandom\",\n \"once_cell\",\n \"rustix\",\n \"windows-sys\",\n]\n\n[[package]]\nname = \"thiserror\"\nversion = \"2.0.21\"\nsource = \"registry+https://github.com/rust-lang/crates.io-index\"\nchecksum = \"09e52cb86a36cede5cb101bf8908837b3e4c6e5e59fe7fd85c23fb56200d189e\"\ndependencies = [\n \"thiserror-impl\",\n]\n\n[[package]]\nname = \"thiserror-impl\"\nversion = \"2.0.21\"\nsource = \"registry+https://github.com/rust-lang/crates.io-index\"\nchecksum = \"fe5197923287db20a58125f0bc85c062f7f2c892de97b18c356f9efb14b28524\"\ndependencies = [\n \"proc-macro2\",\n \"quote\",\n \"syn\",\n]\n\n[[package]]\nname = \"tinyvec\"\nversion = \"1.13.3\"\nsource = \"registry+https://github.com/rust-lang/crates.io-index\"\nchecksum = \"fd3ca314f692efd6c868f8408f53fe444634a845f96c028b97d35f6a1f79f0ee\"\n\n[[package]]\nname = \"tokio\"\nversion = \"1.54.1\"\nsource = \"registry+https://github.com/rust-lang/crates.io-index\"\nchecksum = \"b52fd3255258d26fac7264ab5a76b53c13367136dc011d3d6ad4f8ed070396a3\"\ndependencies = [\n \"bytes\",\n \"libc\",\n \"mio\",\n \"pin-project-lite\",\n \"signal-hook-registry\",\n \"tokio-macros\",\n \"windows-sys\",\n]\n\n[[package]]\nname = \"tokio-macros\"\nversion = \"2.7.2\"\nsource = \"registry+https://github.com/rust-lang/crates.io-index\"\nchecksum = \"78773a2a397f451582ce068015985c33193cf6dea8b74d2a639fe457b2f07b0e\"\ndependencies = [\n \"proc-macro2\",\n \"quote\",\n \"syn\",\n]\n\n[[package]]\nname = \"unicode-ident\"\nversion = \"1.0.27\"\nsource = \"registry+https://github.com/rust-lang/crates.io-index\"\nchecksum = \"a2c754d6c33795a1c324727428e5a7dedb5b06195f9890bdbcba760d3e246563\"\n\n[[package]]\nname = \"unicode-normalization\"\nversion = \"0.1.26\"\nsource = \"registry+https://github.com/rust-lang/crates.io-index\"\nchecksum = \"75cd3fb03d5288b3ba9a1ee103ac7e9cbb59f0b03d64f8ddfcc04dd42758a85d\"\ndependencies = [\n \"tinyvec\",\n]\n\n[[package]]\nname = \"wasi\"\nversion = \"0.11.1+wasi-snapshot-preview1\"\nsource = \"registry+https://github.com/rust-lang/crates.io-index\"\nchecksum = \"ccf3ec651a847eb01de73ccad15eb7d99f80485de043efb2f370cd654f4ea44b\"\n\n[[package]]\nname = \"windows-link\"\nversion = \"0.2.1\"\nsource = \"registry+https://github.com/rust-lang/crates.io-index\"\nchecksum = \"f0805222e57f7521d6a62e36fa9163bc891acd422f971defe97d64e70d0a4fe5\"\n\n[[package]]\nname = \"windows-sys\"\nversion = \"0.61.2\"\nsource = \"registry+https://github.com/rust-lang/crates.io-index\"\nchecksum = \"ae137229bcbd6cdf0f7b80a31df61766145077ddf49416a728b02cb3921ff3fc\"\ndependencies = [\n \"windows-link\",\n]\n" }, { "name": "rust-toolchain.toml", @@ -173,9 +173,9 @@ "code": "[toolchain]\nchannel = \"1.97.1\"\ncomponents = [\"clippy\", \"rust-src\", \"rustfmt\"]\nprofile = \"minimal\"\n" } ], - "prerequisites": "POSIX shell, Git, tmux 3.3a or newer, rustup with Rust 1.97.1 (rust-toolchain.toml), and a C linker.", + "prerequisites": "POSIX shell, tmux 3.3a or newer, rustup with Rust 1.97.1 (rust-toolchain.toml), and a C linker.", "commands": [ - "git init -q source\ngit -C source fetch -q --depth=1 \\\n https://github.com/libtmux/libtmux-rs.git \\\n a6fc2a65674177b92b17fa380757155d2ba150fd\ngit -C source checkout -q --detach FETCH_HEAD\ncargo build --locked --jobs 2", + "cargo build --locked --jobs 2", "unset TMUX TMUX_PANE\nexport ENV=/dev/null BASH_ENV=/dev/null SHELL=/bin/sh\ncargo run --quiet --locked" ], "expectedOutput": "hello\n", diff --git a/site/test/fixtures/home-examples.json b/site/test/fixtures/home-examples.json index 900b38376..39a1efd27 100644 --- a/site/test/fixtures/home-examples.json +++ b/site/test/fixtures/home-examples.json @@ -309,8 +309,8 @@ "port": "rs", "page": "home", "sourceRepository": "libtmux/libtmux-rs", - "sourceRevision": "a6fc2a65674177b92b17fa380757155d2ba150fd", - "sourceTree": "865aef72a40135bade83eb5d44c0b78ea018a270", + "sourceRevision": "ce7610a3b46376c377292e5a640b3798c18708fe", + "sourceTree": "32c8792ffcd03d4d1c58d1f25b8d29fd36fc2287", "files": [ { "name": "src/main.rs", @@ -319,13 +319,13 @@ }, { "name": "Cargo.toml", - "sha256": "25770faf80da67fd495e9e7a5d525bcdc055b94cab33549739a5159a01dd037a", - "clipboardSha256": "87a03c24caaeb6c8957f624b5465633b4794908ad16719a9d4063cca08168f11" + "sha256": "0886a13de14b8c6642db2c46926c95a5d5bc7a979e64c989ba6b91308e42f678", + "clipboardSha256": "11ed755469ef808e06d92029f18eca7fd76c6d73f8d5c7935ac25cbcc6026aa0" }, { "name": "Cargo.lock", - "sha256": "891b66eec409ff90621097ed80f476ecd0f8f6907776ce6973465f85373e5a43", - "clipboardSha256": "9df8639553925b9a72d291720bf12e747378dc75a9348811d9a47c2acabe3b3a" + "sha256": "1bd0b462408850261d8c59d3ab2884ae594607af3fdd522f2726989517674538", + "clipboardSha256": "1c0b3ecf064cad986bea6e1e904a8290469750bdaa947699847d655ab11e8e9f" }, { "name": "rust-toolchain.toml", @@ -334,7 +334,7 @@ } ], "shellRecipe": [ - "git init -q source\ngit -C source fetch -q --depth=1 \\\n https://github.com/libtmux/libtmux-rs.git \\\n a6fc2a65674177b92b17fa380757155d2ba150fd\ngit -C source checkout -q --detach FETCH_HEAD\ncargo build --locked --jobs 2", + "cargo build --locked --jobs 2", "unset TMUX TMUX_PANE\nexport ENV=/dev/null BASH_ENV=/dev/null SHELL=/bin/sh\ncargo run --quiet --locked" ], "expectedOutputs": [ @@ -345,7 +345,7 @@ ], "excerptSha256": "2322ba9f0427da9f242413dbde8fe60567d2dfa89e5d3fcf3d3a2e4608dc2dd6", "tmuxVersions": [ - "3.2a", + "3.3a", "3.7c" ], "variants": { @@ -358,13 +358,13 @@ }, { "name": "Cargo.toml", - "sha256": "25770faf80da67fd495e9e7a5d525bcdc055b94cab33549739a5159a01dd037a", - "clipboardSha256": "87a03c24caaeb6c8957f624b5465633b4794908ad16719a9d4063cca08168f11" + "sha256": "0886a13de14b8c6642db2c46926c95a5d5bc7a979e64c989ba6b91308e42f678", + "clipboardSha256": "11ed755469ef808e06d92029f18eca7fd76c6d73f8d5c7935ac25cbcc6026aa0" }, { "name": "Cargo.lock", - "sha256": "891b66eec409ff90621097ed80f476ecd0f8f6907776ce6973465f85373e5a43", - "clipboardSha256": "9df8639553925b9a72d291720bf12e747378dc75a9348811d9a47c2acabe3b3a" + "sha256": "1bd0b462408850261d8c59d3ab2884ae594607af3fdd522f2726989517674538", + "clipboardSha256": "1c0b3ecf064cad986bea6e1e904a8290469750bdaa947699847d655ab11e8e9f" }, { "name": "rust-toolchain.toml", @@ -383,13 +383,13 @@ }, { "name": "Cargo.toml", - "sha256": "25770faf80da67fd495e9e7a5d525bcdc055b94cab33549739a5159a01dd037a", - "clipboardSha256": "87a03c24caaeb6c8957f624b5465633b4794908ad16719a9d4063cca08168f11" + "sha256": "0886a13de14b8c6642db2c46926c95a5d5bc7a979e64c989ba6b91308e42f678", + "clipboardSha256": "11ed755469ef808e06d92029f18eca7fd76c6d73f8d5c7935ac25cbcc6026aa0" }, { "name": "Cargo.lock", - "sha256": "891b66eec409ff90621097ed80f476ecd0f8f6907776ce6973465f85373e5a43", - "clipboardSha256": "9df8639553925b9a72d291720bf12e747378dc75a9348811d9a47c2acabe3b3a" + "sha256": "1bd0b462408850261d8c59d3ab2884ae594607af3fdd522f2726989517674538", + "clipboardSha256": "1c0b3ecf064cad986bea6e1e904a8290469750bdaa947699847d655ab11e8e9f" }, { "name": "rust-toolchain.toml", @@ -408,13 +408,13 @@ }, { "name": "Cargo.toml", - "sha256": "25770faf80da67fd495e9e7a5d525bcdc055b94cab33549739a5159a01dd037a", - "clipboardSha256": "87a03c24caaeb6c8957f624b5465633b4794908ad16719a9d4063cca08168f11" + "sha256": "0886a13de14b8c6642db2c46926c95a5d5bc7a979e64c989ba6b91308e42f678", + "clipboardSha256": "11ed755469ef808e06d92029f18eca7fd76c6d73f8d5c7935ac25cbcc6026aa0" }, { "name": "Cargo.lock", - "sha256": "891b66eec409ff90621097ed80f476ecd0f8f6907776ce6973465f85373e5a43", - "clipboardSha256": "9df8639553925b9a72d291720bf12e747378dc75a9348811d9a47c2acabe3b3a" + "sha256": "1bd0b462408850261d8c59d3ab2884ae594607af3fdd522f2726989517674538", + "clipboardSha256": "1c0b3ecf064cad986bea6e1e904a8290469750bdaa947699847d655ab11e8e9f" }, { "name": "rust-toolchain.toml", diff --git a/site/test/fixtures/product-examples.json b/site/test/fixtures/product-examples.json index 90c1cb653..4557e38f8 100644 --- a/site/test/fixtures/product-examples.json +++ b/site/test/fixtures/product-examples.json @@ -330,12 +330,12 @@ { "port": "rs", "language": "rust", - "sourceRevision": "a6fc2a65674177b92b17fa380757155d2ba150fd", + "sourceRevision": "ce7610a3b46376c377292e5a640b3798c18708fe", "sourceRepository": "libtmux/libtmux-rs", "files": [ { "name": "Cargo.toml", - "sha256": "5ec266b05567cb1799d2df65b3dcf6f5db69cab7c8878616d43f21da192d2562" + "sha256": "ebfa2c0baa9217baa3f61ca3b00f4d485f3a0f992c31109a9441dc4a4aff22c3" }, { "name": "src/main.rs", @@ -346,7 +346,7 @@ "Rust 1.97.1" ], "tmux": [ - "3.2a", + "3.3a", "3.7c" ], "page": "ports/rs/mcp/examples/inspect-sessions", From 6e84ce471b0e6000d7beeb04dfd2fef234ab67f1 Mon Sep 17 00:00:00 2001 From: Tony Narlock Date: Tue, 27 Oct 2026 04:38:55 -0500 Subject: [PATCH 7/9] docs(ports[java]) Build the examples against libtmux 0.1.0 why: libtmux-java 0.1.0 is on Maven Central, but the Java homepage example, the MCP example and the workspace internals pages still showed an alpha or SNAPSHOT pin and included the library from a source checkout, so a reader could not build them from the registry. what: - Pin `libtmux` 0.1.0, `libtmux-mcp` 0.1.0, `libtmux-workspace` 0.1.0 and `libtmux-bom` 0.1.0, and drop `includeBuild` from the displayed settings. - Keep the clone of the v0.1.0 release commit only as the Gradle wrapper source, and say so on each page. - Point the home and product receipts at the release commit and tree, rehash the displayed files, and record tmux 3.3a and 3.7c, the 0.1.0 floor and the newest supported release (3.2a is below the 0.1.0 floor and is dropped). - Native runs: `check-example-prose.py --example home --port java` for all four views on tmux 3.3a and 3.7c, JDK 25.0.3, Gradle 9.7.0, all passed. The MCP and workspace examples have no checker; their displayed steps were run by hand in fresh directories on both tmux versions and printed the documented output, as did the workspace guide against the 0.1.0 BOM. --- .../content/docs/ports/java/mcp/examples.md | 17 ++++---- .../java/workspace/internals/examples.md | 15 +++---- .../ports/java/workspace/internals/guides.md | 2 +- site/src/data/home-examples.json | 10 ++--- site/test/fixtures/home-examples.json | 40 +++++++++---------- site/test/fixtures/product-examples.json | 12 +++--- 6 files changed, 45 insertions(+), 51 deletions(-) diff --git a/site/src/content/docs/ports/java/mcp/examples.md b/site/src/content/docs/ports/java/mcp/examples.md index c69fd5ce9..fda00c202 100644 --- a/site/src/content/docs/ports/java/mcp/examples.md +++ b/site/src/content/docs/ports/java/mcp/examples.md @@ -20,27 +20,24 @@ For a client configured to launch the server itself, use the ## Create the project Use JDK 25, Git, tmux 3.3a or newer, and a Unix host with `env -u`. Create an -empty project and fetch the source revision used by this example: +empty project and fetch the 0.1.0 release, which supplies the Gradle wrapper: ```console $ mkdir java-mcp-example && cd java-mcp-example && \ git init libtmux-source && \ git -C libtmux-source remote add origin https://github.com/libtmux/libtmux-java.git && \ - git -C libtmux-source fetch --depth=1 origin 842228310449e879ebcaa3f910597757c9dbffd6 && \ + git -C libtmux-source fetch --depth=1 origin 5c181887918351119bfdb3a046719fa792048e59 && \ git -C libtmux-source checkout --detach FETCH_HEAD && \ mkdir -p src/main/java ``` -Save the settings file. The included build supplies the MCP and core libraries -from the same selected source. Its toolchain resolver downloads the Temurin 21 -compiler for those libraries when needed. +Save the settings file: ```kotlin title="settings.gradle.kts" rootProject.name = "mcp-example" -includeBuild("libtmux-source") ``` -Save the build file. Its SDK and JSON dependencies match the selected library: +Save the build file. Gradle resolves the MCP library from Maven Central. Its SDK and JSON dependencies match that release: ```kotlin title="build.gradle.kts" plugins { @@ -52,7 +49,7 @@ repositories { } dependencies { - implementation("io.github.libtmux:libtmux-mcp:0.0.1-alpha.12-SNAPSHOT") + implementation("io.github.libtmux:libtmux-mcp:0.1.0") implementation("io.modelcontextprotocol.sdk:mcp-json-jackson2:2.0.1") implementation("com.fasterxml.jackson.core:jackson-databind:2.21.5") runtimeOnly("org.slf4j:slf4j-nop:2.0.17") @@ -184,5 +181,5 @@ to discover a pane and call `run_shell_command`. Read the typed exit status and output. Use `capture_since` for subsequent screen changes; a prompt redraw can arrive after command completion. -[Server entry points](https://github.com/libtmux/libtmux-java/blob/842228310449e879ebcaa3f910597757c9dbffd6/libtmux-mcp/src/main/java/io/github/libtmux/mcp/TmuxMcpServer.java); -[upstream MCP tests](https://github.com/libtmux/libtmux-java/tree/842228310449e879ebcaa3f910597757c9dbffd6/libtmux-mcp/src/test). +[Server entry points](https://github.com/libtmux/libtmux-java/blob/5c181887918351119bfdb3a046719fa792048e59/libtmux-mcp/src/main/java/io/github/libtmux/mcp/TmuxMcpServer.java); +[upstream MCP tests](https://github.com/libtmux/libtmux-java/tree/5c181887918351119bfdb3a046719fa792048e59/libtmux-mcp/src/test). diff --git a/site/src/content/docs/ports/java/workspace/internals/examples.md b/site/src/content/docs/ports/java/workspace/internals/examples.md index abb62ab12..495f97b2e 100644 --- a/site/src/content/docs/ports/java/workspace/internals/examples.md +++ b/site/src/content/docs/ports/java/workspace/internals/examples.md @@ -16,28 +16,25 @@ server. Use a POSIX host with tmux on `PATH` and JDK 25. ## Create the project -In a new directory, fetch the source revision used by this documentation: +In a new directory, fetch the 0.1.0 release, which supplies the Gradle wrapper: ```console $ mkdir java-workspace-example $ cd java-workspace-example $ git init -q libtmux-source $ git -C libtmux-source remote add origin https://github.com/libtmux/libtmux-java.git -$ git -C libtmux-source fetch --depth=1 origin 842228310449e879ebcaa3f910597757c9dbffd6 +$ git -C libtmux-source fetch --depth=1 origin 5c181887918351119bfdb3a046719fa792048e59 $ git -C libtmux-source checkout --detach FETCH_HEAD $ mkdir -p src/main/java ``` -Save the following settings file. The included build supplies the workspace -module and its core dependency from the selected source. Its toolchain resolver -downloads the Temurin 21 compiler for those libraries when needed. +Save the following settings file: ```kotlin title="settings.gradle.kts" rootProject.name = "workspace-example" -includeBuild("libtmux-source") ``` -Save the following build file: +Save the following build file. Gradle resolves the workspace module and its core dependency from Maven Central: ```kotlin title="build.gradle.kts" plugins { @@ -49,7 +46,7 @@ repositories { } dependencies { - implementation("io.github.libtmux:libtmux-workspace:0.0.1-alpha.12-SNAPSHOT") + implementation("io.github.libtmux:libtmux-workspace:0.1.0") } java { @@ -128,4 +125,4 @@ those programs to finish. Keep the session running instead of calling -[Workspace API source](https://github.com/libtmux/libtmux-java/tree/842228310449e879ebcaa3f910597757c9dbffd6/libtmux-workspace/src/main/java/io/github/libtmux/workspace) +[Workspace API source](https://github.com/libtmux/libtmux-java/tree/5c181887918351119bfdb3a046719fa792048e59/libtmux-workspace/src/main/java/io/github/libtmux/workspace) diff --git a/site/src/content/docs/ports/java/workspace/internals/guides.md b/site/src/content/docs/ports/java/workspace/internals/guides.md index 640123d1b..257525725 100644 --- a/site/src/content/docs/ports/java/workspace/internals/guides.md +++ b/site/src/content/docs/ports/java/workspace/internals/guides.md @@ -15,7 +15,7 @@ libtmux modules: ```kotlin title="build.gradle.kts" dependencies { - implementation(platform("io.github.libtmux:libtmux-bom:0.0.1-alpha.10")) + implementation(platform("io.github.libtmux:libtmux-bom:0.1.0")) implementation("io.github.libtmux:libtmux-workspace") } ``` diff --git a/site/src/data/home-examples.json b/site/src/data/home-examples.json index 410e58785..9da4850e0 100644 --- a/site/src/data/home-examples.json +++ b/site/src/data/home-examples.json @@ -224,8 +224,8 @@ "java": { "lang": "java", "sourceRepository": "libtmux/libtmux-java", - "sourceRevision": "a0ecbc16da00140e2520462d478a2af470878272", - "sourceTree": "342c76ca1ad7257b3655c7a47d7258b486b26975", + "sourceRevision": "5c181887918351119bfdb3a046719fa792048e59", + "sourceTree": "546ecf68a8a31e0503e18323ba82ce3a490490ab", "program": "src/main/java/Main.java", "excerpt": { "startLine": 1, @@ -237,12 +237,12 @@ { "name": "build.gradle.kts", "lang": "kotlin", - "code": "plugins {\n application\n}\n\nrepositories { mavenCentral() }\n\ndependencies {\n implementation(\"io.github.libtmux:libtmux:0.0.1-alpha.17-SNAPSHOT\")\n}\n\njava { toolchain { languageVersion.set(JavaLanguageVersion.of(25)) } }\n\napplication { mainClass.set(providers.gradleProperty(\"exampleMain\")) }\n" + "code": "plugins {\n application\n}\n\nrepositories { mavenCentral() }\n\ndependencies {\n implementation(\"io.github.libtmux:libtmux:0.1.0\")\n}\n\njava { toolchain { languageVersion.set(JavaLanguageVersion.of(25)) } }\n\napplication { mainClass.set(providers.gradleProperty(\"exampleMain\")) }\n" }, { "name": "settings.gradle.kts", "lang": "kotlin", - "code": "rootProject.name = \"api-example\"\n\nincludeBuild(\"libtmux-source\")\n" + "code": "rootProject.name = \"api-example\"\n" }, { "name": "gradle.properties", @@ -257,7 +257,7 @@ ], "prerequisites": "JDK 25 and tmux on Linux/macOS", "commands": [ - "# Save the files above at their displayed relative paths.\ngit clone https://github.com/libtmux/libtmux-java.git libtmux-source\ngit -C libtmux-source checkout --detach a0ecbc16da00140e2520462d478a2af470878272\n./libtmux-source/gradlew --project-dir . --console=plain --no-daemon --max-workers=2 \\\n installDist -PexampleMain=Main\nSHELL=/bin/sh build/install/api-example/bin/api-example" + "# Save the files above at their displayed relative paths.\ngit clone https://github.com/libtmux/libtmux-java.git libtmux-source\ngit -C libtmux-source checkout --detach 5c181887918351119bfdb3a046719fa792048e59\n./libtmux-source/gradlew --project-dir . --console=plain --no-daemon --max-workers=2 \\\n installDist -PexampleMain=Main\nSHELL=/bin/sh build/install/api-example/bin/api-example" ], "expectedOutput": "hello from libtmux\n", "variants": { diff --git a/site/test/fixtures/home-examples.json b/site/test/fixtures/home-examples.json index 39a1efd27..81e80e47f 100644 --- a/site/test/fixtures/home-examples.json +++ b/site/test/fixtures/home-examples.json @@ -511,18 +511,18 @@ "port": "java", "page": "home", "sourceRepository": "libtmux/libtmux-java", - "sourceRevision": "a0ecbc16da00140e2520462d478a2af470878272", - "sourceTree": "342c76ca1ad7257b3655c7a47d7258b486b26975", + "sourceRevision": "5c181887918351119bfdb3a046719fa792048e59", + "sourceTree": "546ecf68a8a31e0503e18323ba82ce3a490490ab", "files": [ { "name": "build.gradle.kts", - "sha256": "f3f500e407228401953bceed9654c86a9353c650991c376a7a2d8ee62e6184c7", - "clipboardSha256": "78ca5bc35da4ba7a04e60fa5b7303b4a46158c32e2c94c0133cf9e39441e1b3d" + "sha256": "bad8c79d41e933b5a92326cad82fbab9fd25d5264e77e0f0017ecd15bc335c4c", + "clipboardSha256": "60880800d5bd207f753f33e0fb20e65fc5eb6f5786146606cf3490db481795e8" }, { "name": "settings.gradle.kts", - "sha256": "86d4d5effb8203cba4aee51a2904b60e343598f4dde31b98d3f5837f99560ed2", - "clipboardSha256": "beac5d3b44bdc3bf1d83f435ca9169794dc7dc42f685d9feffb509adf7c807a7" + "sha256": "9ef47986c06cc0ec9eff93a196500d6cd2bcf3cb43878de4cef410da792667d7", + "clipboardSha256": "558639ca13041c333e86fc82975aff130cfcd0cc910a6965d02eb769c9db9e7c" }, { "name": "gradle.properties", @@ -536,7 +536,7 @@ } ], "shellRecipe": [ - "# Save the files above at their displayed relative paths.\ngit clone https://github.com/libtmux/libtmux-java.git libtmux-source\ngit -C libtmux-source checkout --detach a0ecbc16da00140e2520462d478a2af470878272\n./libtmux-source/gradlew --project-dir . --console=plain --no-daemon --max-workers=2 \\\n installDist -PexampleMain=Main\nSHELL=/bin/sh build/install/api-example/bin/api-example" + "# Save the files above at their displayed relative paths.\ngit clone https://github.com/libtmux/libtmux-java.git libtmux-source\ngit -C libtmux-source checkout --detach 5c181887918351119bfdb3a046719fa792048e59\n./libtmux-source/gradlew --project-dir . --console=plain --no-daemon --max-workers=2 \\\n installDist -PexampleMain=Main\nSHELL=/bin/sh build/install/api-example/bin/api-example" ], "expectedOutputs": [ [ @@ -545,7 +545,7 @@ ], "excerptSha256": "23fe2c99d5f57a06c2e0dfaabba35107acd0f23e250192dcf58fd6babeedfccf", "tmuxVersions": [ - "3.2a", + "3.3a", "3.7c" ], "variants": { @@ -553,13 +553,13 @@ "files": [ { "name": "build.gradle.kts", - "sha256": "f3f500e407228401953bceed9654c86a9353c650991c376a7a2d8ee62e6184c7", - "clipboardSha256": "78ca5bc35da4ba7a04e60fa5b7303b4a46158c32e2c94c0133cf9e39441e1b3d" + "sha256": "bad8c79d41e933b5a92326cad82fbab9fd25d5264e77e0f0017ecd15bc335c4c", + "clipboardSha256": "60880800d5bd207f753f33e0fb20e65fc5eb6f5786146606cf3490db481795e8" }, { "name": "settings.gradle.kts", - "sha256": "86d4d5effb8203cba4aee51a2904b60e343598f4dde31b98d3f5837f99560ed2", - "clipboardSha256": "beac5d3b44bdc3bf1d83f435ca9169794dc7dc42f685d9feffb509adf7c807a7" + "sha256": "9ef47986c06cc0ec9eff93a196500d6cd2bcf3cb43878de4cef410da792667d7", + "clipboardSha256": "558639ca13041c333e86fc82975aff130cfcd0cc910a6965d02eb769c9db9e7c" }, { "name": "gradle.properties", @@ -578,13 +578,13 @@ "files": [ { "name": "build.gradle.kts", - "sha256": "f3f500e407228401953bceed9654c86a9353c650991c376a7a2d8ee62e6184c7", - "clipboardSha256": "78ca5bc35da4ba7a04e60fa5b7303b4a46158c32e2c94c0133cf9e39441e1b3d" + "sha256": "bad8c79d41e933b5a92326cad82fbab9fd25d5264e77e0f0017ecd15bc335c4c", + "clipboardSha256": "60880800d5bd207f753f33e0fb20e65fc5eb6f5786146606cf3490db481795e8" }, { "name": "settings.gradle.kts", - "sha256": "86d4d5effb8203cba4aee51a2904b60e343598f4dde31b98d3f5837f99560ed2", - "clipboardSha256": "beac5d3b44bdc3bf1d83f435ca9169794dc7dc42f685d9feffb509adf7c807a7" + "sha256": "9ef47986c06cc0ec9eff93a196500d6cd2bcf3cb43878de4cef410da792667d7", + "clipboardSha256": "558639ca13041c333e86fc82975aff130cfcd0cc910a6965d02eb769c9db9e7c" }, { "name": "gradle.properties", @@ -603,13 +603,13 @@ "files": [ { "name": "build.gradle.kts", - "sha256": "f3f500e407228401953bceed9654c86a9353c650991c376a7a2d8ee62e6184c7", - "clipboardSha256": "78ca5bc35da4ba7a04e60fa5b7303b4a46158c32e2c94c0133cf9e39441e1b3d" + "sha256": "bad8c79d41e933b5a92326cad82fbab9fd25d5264e77e0f0017ecd15bc335c4c", + "clipboardSha256": "60880800d5bd207f753f33e0fb20e65fc5eb6f5786146606cf3490db481795e8" }, { "name": "settings.gradle.kts", - "sha256": "86d4d5effb8203cba4aee51a2904b60e343598f4dde31b98d3f5837f99560ed2", - "clipboardSha256": "beac5d3b44bdc3bf1d83f435ca9169794dc7dc42f685d9feffb509adf7c807a7" + "sha256": "9ef47986c06cc0ec9eff93a196500d6cd2bcf3cb43878de4cef410da792667d7", + "clipboardSha256": "558639ca13041c333e86fc82975aff130cfcd0cc910a6965d02eb769c9db9e7c" }, { "name": "gradle.properties", diff --git a/site/test/fixtures/product-examples.json b/site/test/fixtures/product-examples.json index 4557e38f8..efbe50950 100644 --- a/site/test/fixtures/product-examples.json +++ b/site/test/fixtures/product-examples.json @@ -147,7 +147,7 @@ { "port": "java", "language": "java", - "sourceRevision": "842228310449e879ebcaa3f910597757c9dbffd6", + "sourceRevision": "5c181887918351119bfdb3a046719fa792048e59", "sourceRepository": "libtmux/libtmux-java", "files": [ { @@ -156,24 +156,24 @@ }, { "name": "settings.gradle.kts", - "sha256": "68853d2191a6d1f8306684a898d2b079e2de868964123fc6b5121bb305a83844" + "sha256": "10d8a42b1f559a6d76d4cc0941c1b5c49f23c5256fcac25821481b39056dcf00" }, { "name": "build.gradle.kts", - "sha256": "22f664fa486cdbaa8bb473cd245986c885e87ea86b4c6931dfab2df4ca09be1a" + "sha256": "3a4a1b65c6e47f61751532440ba4909b186813771565c6c35567c8c20d1f65b5" } ], "toolchain": [ "JDK 25.0.3+9", - "Gradle wrapper at selected source" + "Gradle wrapper from the 0.1.0 release" ], "tmux": [ - "3.2a", + "3.3a", "3.7c" ], "page": "ports/java/mcp/examples", "shellRecipe": [ - "mkdir java-mcp-example && cd java-mcp-example && \\\n git init libtmux-source && \\\n git -C libtmux-source remote add origin https://github.com/libtmux/libtmux-java.git && \\\n git -C libtmux-source fetch --depth=1 origin 842228310449e879ebcaa3f910597757c9dbffd6 && \\\n git -C libtmux-source checkout --detach FETCH_HEAD && \\\n mkdir -p src/main/java", + "mkdir java-mcp-example && cd java-mcp-example && \\\n git init libtmux-source && \\\n git -C libtmux-source remote add origin https://github.com/libtmux/libtmux-java.git && \\\n git -C libtmux-source fetch --depth=1 origin 5c181887918351119bfdb3a046719fa792048e59 && \\\n git -C libtmux-source checkout --detach FETCH_HEAD && \\\n mkdir -p src/main/java", "./libtmux-source/gradlew --no-daemon --max-workers=2 -p . installDist", "./build/install/mcp-example/bin/mcp-example" ] From 1ab1ad1d6be4ad27d89163fabf0f6d9bbf02ae10 Mon Sep 17 00:00:00 2001 From: Tony Narlock Date: Tue, 27 Oct 2026 04:39:03 -0500 Subject: [PATCH 8/9] docs(ports[kotlin]) Build the examples against libtmux-kotlin 0.1.0 why: libtmux-kotlin 0.1.0 is on Maven Central, but the Kotlin homepage example and pages still pinned `0.0.1-alpha.17-SNAPSHOT` and substituted the library from a source checkout with `includeBuild`, so a reader could not build them from the registry. what: - Pin `libtmux-kotlin` 0.1.0 and drop `includeBuild` from every displayed `settings.gradle.kts`; the clone of the v0.1.0 release commit remains only as the Gradle wrapper source, and the prose says so. - Point the home, concept, capture and attach receipts at the release commit and tree, rehash the displayed files and recipes, and record tmux 3.3a and 3.7c (3.2a is below the 0.1.0 floor and is dropped). - Note on the transports page that managed control needs tmux 3.7 or newer, with a tmux-minimum exemption for that per-feature floor; its receipt lists 3.7c only, because the control program fails on 3.3a. - Native runs: `check-example-prose.py` for the home example (four views), the four concept pages, the capture example and the attach guide, on tmux 3.3a and 3.7c, JDK 25.0.3, Gradle 9.7.0, all passed except the transports control program on 3.3a, which is refused as documented. --- .../docs/ports/kotlin/concepts/queries.md | 9 ++-- .../concepts/server-session-window-pane.md | 9 ++-- .../docs/ports/kotlin/concepts/transports.md | 11 ++--- .../docs/ports/kotlin/concepts/workspaces.md | 9 ++-- .../kotlin/examples/capture-pane-output.md | 9 ++-- .../ports/kotlin/guides/attaching-to-tmux.md | 7 ++- site/src/data/home-examples.json | 10 ++-- site/test/fixtures/attach-examples.json | 10 ++-- site/test/fixtures/capture-examples.json | 18 +++---- site/test/fixtures/concept-examples.json | 47 +++++++++---------- site/test/fixtures/home-examples.json | 40 ++++++++-------- site/test/tmux-minimum.test.ts | 6 +++ 12 files changed, 92 insertions(+), 93 deletions(-) diff --git a/site/src/content/docs/ports/kotlin/concepts/queries.md b/site/src/content/docs/ports/kotlin/concepts/queries.md index f08f9de67..6f0c51a68 100644 --- a/site/src/content/docs/ports/kotlin/concepts/queries.md +++ b/site/src/content/docs/ports/kotlin/concepts/queries.md @@ -18,11 +18,10 @@ Filter captured objects in Kotlin, handle result counts explicitly, and match se Use an empty directory on Linux with Git, tmux 3.3a or newer, and JDK 25. Save the project files and launcher below, then save any complete program on this page. Each program has its own imports and entry point. -The pinned source checkout supplies the Gradle wrapper and the library dependency. +The pinned source checkout supplies the Gradle wrapper. Gradle resolves the library from Maven Central. ```kotlin title="settings.gradle.kts" rootProject.name = "connect" -includeBuild("libtmux-source") ``` ```kotlin title="build.gradle.kts" @@ -35,7 +34,7 @@ plugins { repositories { mavenCentral() } dependencies { - implementation("io.github.libtmux:libtmux-kotlin:0.0.1-alpha.17-SNAPSHOT") + implementation("io.github.libtmux:libtmux-kotlin:0.1.0") } kotlin { jvmToolchain(25) @@ -82,11 +81,11 @@ export LIBTMUX_SOCKET_PATH="$socket" TMUX_BIN="$binary" "$binary" -S "$socket" has-session -t '=work-one' ``` -Fetch the library revision used by these examples: +Fetch the Gradle wrapper from the 0.1.0 release: ```console $ git clone https://github.com/libtmux/libtmux-java libtmux-source && - git -C libtmux-source checkout be1d62fbaa1aa634c687e1c50bceeb09ef0b8a15 + git -C libtmux-source checkout 5c181887918351119bfdb3a046719fa792048e59 ``` Each run starts from the same two-session fixture. Programs do not depend on another example having run first. Their assertions fail if the observed result differs. diff --git a/site/src/content/docs/ports/kotlin/concepts/server-session-window-pane.md b/site/src/content/docs/ports/kotlin/concepts/server-session-window-pane.md index bafdad26e..d782fa2b5 100644 --- a/site/src/content/docs/ports/kotlin/concepts/server-session-window-pane.md +++ b/site/src/content/docs/ports/kotlin/concepts/server-session-window-pane.md @@ -20,11 +20,10 @@ A session holds window placements; a window holds panes. A linked window can app Use an empty directory on Linux with Git, tmux 3.3a or newer, and JDK 25. Save the project files and launcher below, then save any complete program on this page. Each program has its own imports and entry point. -The pinned source checkout supplies the Gradle wrapper and the library dependency. +The pinned source checkout supplies the Gradle wrapper. Gradle resolves the library from Maven Central. ```kotlin title="settings.gradle.kts" rootProject.name = "connect" -includeBuild("libtmux-source") ``` ```kotlin title="build.gradle.kts" @@ -37,7 +36,7 @@ plugins { repositories { mavenCentral() } dependencies { - implementation("io.github.libtmux:libtmux-kotlin:0.0.1-alpha.17-SNAPSHOT") + implementation("io.github.libtmux:libtmux-kotlin:0.1.0") } kotlin { jvmToolchain(25) @@ -84,11 +83,11 @@ export LIBTMUX_SOCKET_PATH="$socket" TMUX_BIN="$binary" "$binary" -S "$socket" has-session -t '=work-one' ``` -Fetch the library revision used by these examples: +Fetch the Gradle wrapper from the 0.1.0 release: ```console $ git clone https://github.com/libtmux/libtmux-java libtmux-source && - git -C libtmux-source checkout be1d62fbaa1aa634c687e1c50bceeb09ef0b8a15 + git -C libtmux-source checkout 5c181887918351119bfdb3a046719fa792048e59 ``` Each run starts from the same two-session fixture. Programs do not depend on another example having run first. Their assertions fail if the observed result differs. diff --git a/site/src/content/docs/ports/kotlin/concepts/transports.md b/site/src/content/docs/ports/kotlin/concepts/transports.md index 8f3cef7a3..d95c5aaed 100644 --- a/site/src/content/docs/ports/kotlin/concepts/transports.md +++ b/site/src/content/docs/ports/kotlin/concepts/transports.md @@ -18,11 +18,10 @@ Choose command calls for bounded operations and a control connection when you ne Use an empty directory on Linux with Git, tmux 3.3a or newer, and JDK 25. Save the project files and launcher below, then save any complete program on this page. Each program has its own imports and entry point. -The pinned source checkout supplies the Gradle wrapper and the library dependency. +The pinned source checkout supplies the Gradle wrapper. Gradle resolves the library from Maven Central. ```kotlin title="settings.gradle.kts" rootProject.name = "connect" -includeBuild("libtmux-source") ``` ```kotlin title="build.gradle.kts" @@ -35,7 +34,7 @@ plugins { repositories { mavenCentral() } dependencies { - implementation("io.github.libtmux:libtmux-kotlin:0.0.1-alpha.17-SNAPSHOT") + implementation("io.github.libtmux:libtmux-kotlin:0.1.0") } kotlin { jvmToolchain(25) @@ -82,11 +81,11 @@ export LIBTMUX_SOCKET_PATH="$socket" TMUX_BIN="$binary" "$binary" -S "$socket" has-session -t '=work-one' ``` -Fetch the library revision used by these examples: +Fetch the Gradle wrapper from the 0.1.0 release: ```console $ git clone https://github.com/libtmux/libtmux-java libtmux-source && - git -C libtmux-source checkout be1d62fbaa1aa634c687e1c50bceeb09ef0b8a15 + git -C libtmux-source checkout 5c181887918351119bfdb3a046719fa792048e59 ``` Each run starts from the same two-session fixture. Programs do not depend on another example having run first. Their assertions fail if the observed result differs. @@ -142,7 +141,7 @@ work-one, work-two ## Open and close a control client -Send `list-sessions` over a persistent control connection, verify the response, then close the control client. A subsequent ordinary read verifies the tmux server still has both sessions. +Send `list-sessions` over a persistent control connection, verify the response, then close the control client. A subsequent ordinary read verifies the tmux server still has both sessions. Managed control needs tmux 3.7 or newer; on an older server the library refuses it with an unsupported-feature error. ```kotlin title="Control.kt" import io.github.libtmux.ServerConfig diff --git a/site/src/content/docs/ports/kotlin/concepts/workspaces.md b/site/src/content/docs/ports/kotlin/concepts/workspaces.md index 37697a1ed..8c531ac73 100644 --- a/site/src/content/docs/ports/kotlin/concepts/workspaces.md +++ b/site/src/content/docs/ports/kotlin/concepts/workspaces.md @@ -16,11 +16,10 @@ Build a tmux layout from Kotlin by creating a window, splitting a pane and selec Use an empty directory on Linux with Git, tmux 3.3a or newer, and JDK 25. Save the project files and launcher below, then save any complete program on this page. Each program has its own imports and entry point. -The pinned source checkout supplies the Gradle wrapper and the library dependency. +The pinned source checkout supplies the Gradle wrapper. Gradle resolves the library from Maven Central. ```kotlin title="settings.gradle.kts" rootProject.name = "connect" -includeBuild("libtmux-source") ``` ```kotlin title="build.gradle.kts" @@ -33,7 +32,7 @@ plugins { repositories { mavenCentral() } dependencies { - implementation("io.github.libtmux:libtmux-kotlin:0.0.1-alpha.17-SNAPSHOT") + implementation("io.github.libtmux:libtmux-kotlin:0.1.0") } kotlin { jvmToolchain(25) @@ -80,11 +79,11 @@ export LIBTMUX_SOCKET_PATH="$socket" TMUX_BIN="$binary" "$binary" -S "$socket" has-session -t '=work-one' ``` -Fetch the library revision used by these examples: +Fetch the Gradle wrapper from the 0.1.0 release: ```console $ git clone https://github.com/libtmux/libtmux-java libtmux-source && - git -C libtmux-source checkout be1d62fbaa1aa634c687e1c50bceeb09ef0b8a15 + git -C libtmux-source checkout 5c181887918351119bfdb3a046719fa792048e59 ``` Each run starts from the same two-session fixture. Programs do not depend on another example having run first. Their assertions fail if the observed result differs. diff --git a/site/src/content/docs/ports/kotlin/examples/capture-pane-output.md b/site/src/content/docs/ports/kotlin/examples/capture-pane-output.md index 7a7b80f4f..47ebf4a7f 100644 --- a/site/src/content/docs/ports/kotlin/examples/capture-pane-output.md +++ b/site/src/content/docs/ports/kotlin/examples/capture-pane-output.md @@ -105,7 +105,6 @@ Save `settings.gradle.kts` beside `Capture.kt`. ```kotlin title="settings.gradle.kts" rootProject.name = "capture" -includeBuild("libtmux-source") ``` Save `build.gradle.kts` beside `Capture.kt`. @@ -118,7 +117,7 @@ plugins { repositories { mavenCentral() } dependencies { - implementation("io.github.libtmux:libtmux-kotlin:0.0.1-alpha.17-SNAPSHOT") + implementation("io.github.libtmux:libtmux-kotlin:0.1.0") } kotlin { jvmToolchain(25) @@ -135,11 +134,11 @@ kotlin.daemon.jvmargs=-Xmx2g org.gradle.workers.max=2 ``` -The commands pin the library revision used to run this program. +The commands fetch the Gradle wrapper from the 0.1.0 release; Gradle resolves the library from Maven Central. ```console $ git clone https://github.com/libtmux/libtmux-java libtmux-source && - git -C libtmux-source checkout 85ebf6955e56703c5be74e2afd34a18309044741 && + git -C libtmux-source checkout 5c181887918351119bfdb3a046719fa792048e59 && ./libtmux-source/gradlew --project-dir . run --console=plain --max-workers=2 ``` @@ -148,4 +147,4 @@ $ git clone https://github.com/libtmux/libtmux-java libtmux-source && ## Where this comes from The displayed files were compiled or loaded with their native tools and run -on Linux with tmux 3.2a and 3.7c. The rendering checks preserve those file bytes. +on Linux with tmux 3.3a and 3.7c. The rendering checks preserve those file bytes. diff --git a/site/src/content/docs/ports/kotlin/guides/attaching-to-tmux.md b/site/src/content/docs/ports/kotlin/guides/attaching-to-tmux.md index 2b1b0aa5f..a8c5ccb71 100644 --- a/site/src/content/docs/ports/kotlin/guides/attaching-to-tmux.md +++ b/site/src/content/docs/ports/kotlin/guides/attaching-to-tmux.md @@ -66,7 +66,7 @@ plugins { repositories { mavenCentral() } dependencies { - implementation("io.github.libtmux:libtmux-kotlin:0.0.1-alpha.17-SNAPSHOT") + implementation("io.github.libtmux:libtmux-kotlin:0.1.0") } kotlin { jvmToolchain(25) @@ -79,7 +79,6 @@ Save this file beside the program using the displayed filename. ```kotlin title="settings.gradle.kts" rootProject.name = "connect" -includeBuild("libtmux-source") ``` Save this file beside the program using the displayed filename. @@ -123,11 +122,11 @@ export LIBTMUX_SOCKET_PATH="$socket" TMUX_BIN="$binary" "$binary" -S "$socket" has-session -t '=work' ``` -Fetch the verified library revision, build, and run: +Fetch the Gradle wrapper from the 0.1.0 release, build, and run: ```console $ git clone https://github.com/libtmux/libtmux-java libtmux-source && - git -C libtmux-source checkout 85ebf6955e56703c5be74e2afd34a18309044741 && + git -C libtmux-source checkout 5c181887918351119bfdb3a046719fa792048e59 && sh run.sh ./libtmux-source/gradlew --project-dir . run --console=plain --max-workers=2 ``` diff --git a/site/src/data/home-examples.json b/site/src/data/home-examples.json index 9da4850e0..1ed8ecf0e 100644 --- a/site/src/data/home-examples.json +++ b/site/src/data/home-examples.json @@ -269,8 +269,8 @@ "kotlin": { "lang": "kotlin", "sourceRepository": "libtmux/libtmux-java", - "sourceRevision": "a0ecbc16da00140e2520462d478a2af470878272", - "sourceTree": "342c76ca1ad7257b3655c7a47d7258b486b26975", + "sourceRevision": "5c181887918351119bfdb3a046719fa792048e59", + "sourceTree": "546ecf68a8a31e0503e18323ba82ce3a490490ab", "program": "src/main/kotlin/Main.kt", "excerpt": { "startLine": 1, @@ -282,12 +282,12 @@ { "name": "build.gradle.kts", "lang": "kotlin", - "code": "plugins {\n kotlin(\"jvm\") version \"2.4.10\"\n application\n}\n\nrepositories { mavenCentral() }\n\ndependencies {\n implementation(\"io.github.libtmux:libtmux-kotlin:0.0.1-alpha.17-SNAPSHOT\")\n}\n\njava { toolchain { languageVersion.set(JavaLanguageVersion.of(25)) } }\nkotlin { jvmToolchain(25) }\n\napplication { mainClass.set(providers.gradleProperty(\"exampleMain\")) }\n" + "code": "plugins {\n kotlin(\"jvm\") version \"2.4.10\"\n application\n}\n\nrepositories { mavenCentral() }\n\ndependencies {\n implementation(\"io.github.libtmux:libtmux-kotlin:0.1.0\")\n}\n\njava { toolchain { languageVersion.set(JavaLanguageVersion.of(25)) } }\nkotlin { jvmToolchain(25) }\n\napplication { mainClass.set(providers.gradleProperty(\"exampleMain\")) }\n" }, { "name": "settings.gradle.kts", "lang": "kotlin", - "code": "rootProject.name = \"api-example\"\n\nincludeBuild(\"libtmux-source\")\n" + "code": "rootProject.name = \"api-example\"\n" }, { "name": "gradle.properties", @@ -302,7 +302,7 @@ ], "prerequisites": "JDK 25 and tmux on Linux/macOS; Gradle resolves Kotlin 2.4.10", "commands": [ - "# Save the files above at their displayed relative paths.\ngit clone https://github.com/libtmux/libtmux-java.git libtmux-source\ngit -C libtmux-source checkout --detach a0ecbc16da00140e2520462d478a2af470878272\n./libtmux-source/gradlew --project-dir . --console=plain --no-daemon --max-workers=2 \\\n installDist -PexampleMain=MainKt\nSHELL=/bin/sh build/install/api-example/bin/api-example" + "# Save the files above at their displayed relative paths.\ngit clone https://github.com/libtmux/libtmux-java.git libtmux-source\ngit -C libtmux-source checkout --detach 5c181887918351119bfdb3a046719fa792048e59\n./libtmux-source/gradlew --project-dir . --console=plain --no-daemon --max-workers=2 \\\n installDist -PexampleMain=MainKt\nSHELL=/bin/sh build/install/api-example/bin/api-example" ], "expectedOutput": "ready; exit 3\n", "variants": { diff --git a/site/test/fixtures/attach-examples.json b/site/test/fixtures/attach-examples.json index 3de57533d..1a03e19f3 100644 --- a/site/test/fixtures/attach-examples.json +++ b/site/test/fixtures/attach-examples.json @@ -257,7 +257,7 @@ { "port": "kotlin", "language": "kotlin", - "sourceRevision": "85ebf6955e56703c5be74e2afd34a18309044741", + "sourceRevision": "5c181887918351119bfdb3a046719fa792048e59", "sourceRepository": "libtmux/libtmux-java", "toolchain": [ "JDK 25.0.3", @@ -265,7 +265,7 @@ ], "page": "ports/kotlin/guides/attaching-to-tmux", "shellRecipe": [ - "git clone https://github.com/libtmux/libtmux-java libtmux-source &&\n git -C libtmux-source checkout 85ebf6955e56703c5be74e2afd34a18309044741 &&\n sh run.sh ./libtmux-source/gradlew --project-dir . run --console=plain --max-workers=2" + "git clone https://github.com/libtmux/libtmux-java libtmux-source &&\n git -C libtmux-source checkout 5c181887918351119bfdb3a046719fa792048e59 &&\n sh run.sh ./libtmux-source/gradlew --project-dir . run --console=plain --max-workers=2" ], "expectedOutput": "work", "files": [ @@ -275,11 +275,11 @@ }, { "name": "build.gradle.kts", - "sha256": "e1d0abe83d5ccb4948dc48e4c035b1f60ef45a04924f25f4711a81dded646d27" + "sha256": "6a52d9d89a28314b2f93bf6318746ce434f37e591df4de2f1017e85ab6e29a2f" }, { "name": "settings.gradle.kts", - "sha256": "b00ae8397b15423ec37743ffe34966e3123fa2a21996d36457953dff131d60bc" + "sha256": "8a9a1cef4b025e20741219b949c5a591444f9f3b850534f1cc5b2f9164b9c126" }, { "name": "gradle.properties", @@ -291,7 +291,7 @@ } ], "tmux": [ - "3.2a", + "3.3a", "3.7c" ] }, diff --git a/site/test/fixtures/capture-examples.json b/site/test/fixtures/capture-examples.json index f102bd012..0c5bbd71e 100644 --- a/site/test/fixtures/capture-examples.json +++ b/site/test/fixtures/capture-examples.json @@ -214,7 +214,7 @@ { "port": "kotlin", "language": "kotlin", - "sourceRevision": "85ebf6955e56703c5be74e2afd34a18309044741", + "sourceRevision": "5c181887918351119bfdb3a046719fa792048e59", "sourceRepository": "libtmux/libtmux-java", "files": [ { @@ -223,11 +223,11 @@ }, { "name": "build.gradle.kts", - "sha256": "a705fe6e99a1931cb90267adf81650a44a93b6580c5277f0657d468287be5068" + "sha256": "dcb4c29ed651d0f463ce0d19d4a4e85c79c59f50642f5341435f57414e7a091e" }, { "name": "settings.gradle.kts", - "sha256": "7c01a4d1d8620741df4852dad3a03e0eac7a084a2bbb20e53016064cab1f958b" + "sha256": "623c7967842d9b0330b5016fab47d4351151dc1cffcf295a9298c7378b7561aa" }, { "name": "gradle.properties", @@ -239,28 +239,28 @@ "Kotlin 2.4.10" ], "tmux": [ - "3.2a", + "3.3a", "3.7c" ], "page": "ports/kotlin/examples/capture-pane-output", "shellRecipe": [ - "git clone https://github.com/libtmux/libtmux-java libtmux-source &&\n git -C libtmux-source checkout 85ebf6955e56703c5be74e2afd34a18309044741 &&\n ./libtmux-source/gradlew --project-dir . run --console=plain --max-workers=2" + "git clone https://github.com/libtmux/libtmux-java libtmux-source &&\n git -C libtmux-source checkout 5c181887918351119bfdb3a046719fa792048e59 &&\n ./libtmux-source/gradlew --project-dir . run --console=plain --max-workers=2" ], "verification": { "platform": "Linux", "checks": [ { - "name": "positive-3.2a", - "tmux": "3.2a", + "name": "positive-3.3a", + "tmux": "3.3a", "exit": 0, - "seconds": 2.282, + "seconds": 2.924, "remainingSocketDirectories": 0 }, { "name": "positive-3.7c", "tmux": "3.7c", "exit": 0, - "seconds": 2.183, + "seconds": 11.445, "remainingSocketDirectories": 0 }, { diff --git a/site/test/fixtures/concept-examples.json b/site/test/fixtures/concept-examples.json index 4e60542ea..b97d22e98 100644 --- a/site/test/fixtures/concept-examples.json +++ b/site/test/fixtures/concept-examples.json @@ -3,20 +3,20 @@ { "port": "kotlin", "page": "ports/kotlin/concepts/server-session-window-pane", - "sourceRevision": "be1d62fbaa1aa634c687e1c50bceeb09ef0b8a15", + "sourceRevision": "5c181887918351119bfdb3a046719fa792048e59", "runtime": "Temurin JDK 25.0.3", "tmuxVersions": [ - "3.2a", + "3.3a", "3.7c" ], "files": [ { "name": "settings.gradle.kts", - "sha256": "b00ae8397b15423ec37743ffe34966e3123fa2a21996d36457953dff131d60bc" + "sha256": "8a9a1cef4b025e20741219b949c5a591444f9f3b850534f1cc5b2f9164b9c126" }, { "name": "build.gradle.kts", - "sha256": "7c086e8a937a8219dd20df5b5380048d993b0c0ed9aea65e13a017428e3b50b7" + "sha256": "8c58be9952882697a411fe07d19d7f5a4d79e4ef64bde65facc97ee7d8e5822f" }, { "name": "gradle.properties", @@ -36,7 +36,7 @@ } ], "shellRecipe": [ - "git clone https://github.com/libtmux/libtmux-java libtmux-source &&\n git -C libtmux-source checkout be1d62fbaa1aa634c687e1c50bceeb09ef0b8a15", + "git clone https://github.com/libtmux/libtmux-java libtmux-source &&\n git -C libtmux-source checkout 5c181887918351119bfdb3a046719fa792048e59", "sh run.sh ./libtmux-source/gradlew --project-dir . run \\\n -Pexample=Hierarchy --console=plain --max-workers=2", "sh run.sh ./libtmux-source/gradlew --project-dir . run \\\n -Pexample=Refresh --console=plain --max-workers=2" ], @@ -51,25 +51,25 @@ "editor -> renamed" ] ], - "verificationScope": "Each displayed program runs independently with its displayed project, launcher and pinned library. Native checks cover assertions, stdout and cleanup." + "verificationScope": "Each displayed program runs independently with its displayed project, launcher and the library from Maven Central 0.1.0. Native checks cover assertions, stdout and cleanup." }, { "port": "kotlin", "page": "ports/kotlin/concepts/queries", - "sourceRevision": "be1d62fbaa1aa634c687e1c50bceeb09ef0b8a15", + "sourceRevision": "5c181887918351119bfdb3a046719fa792048e59", "runtime": "Temurin JDK 25.0.3", "tmuxVersions": [ - "3.2a", + "3.3a", "3.7c" ], "files": [ { "name": "settings.gradle.kts", - "sha256": "b00ae8397b15423ec37743ffe34966e3123fa2a21996d36457953dff131d60bc" + "sha256": "8a9a1cef4b025e20741219b949c5a591444f9f3b850534f1cc5b2f9164b9c126" }, { "name": "build.gradle.kts", - "sha256": "7c086e8a937a8219dd20df5b5380048d993b0c0ed9aea65e13a017428e3b50b7" + "sha256": "8c58be9952882697a411fe07d19d7f5a4d79e4ef64bde65facc97ee7d8e5822f" }, { "name": "gradle.properties", @@ -93,7 +93,7 @@ } ], "shellRecipe": [ - "git clone https://github.com/libtmux/libtmux-java libtmux-source &&\n git -C libtmux-source checkout be1d62fbaa1aa634c687e1c50bceeb09ef0b8a15", + "git clone https://github.com/libtmux/libtmux-java libtmux-source &&\n git -C libtmux-source checkout 5c181887918351119bfdb3a046719fa792048e59", "sh run.sh ./libtmux-source/gradlew --project-dir . run \\\n -Pexample=Local --console=plain --max-workers=2", "sh run.sh ./libtmux-source/gradlew --project-dir . run \\\n -Pexample=Cardinality --console=plain --max-workers=2", "sh run.sh ./libtmux-source/gradlew --project-dir . run \\\n -Pexample=Relations --console=plain --max-workers=2" @@ -113,25 +113,24 @@ "no editor: work-two" ] ], - "verificationScope": "Each displayed program runs independently with its displayed project, launcher and pinned library. Native checks cover assertions, stdout and cleanup." + "verificationScope": "Each displayed program runs independently with its displayed project, launcher and the library from Maven Central 0.1.0. Native checks cover assertions, stdout and cleanup." }, { "port": "kotlin", "page": "ports/kotlin/concepts/transports", - "sourceRevision": "be1d62fbaa1aa634c687e1c50bceeb09ef0b8a15", + "sourceRevision": "5c181887918351119bfdb3a046719fa792048e59", "runtime": "Temurin JDK 25.0.3", "tmuxVersions": [ - "3.2a", "3.7c" ], "files": [ { "name": "settings.gradle.kts", - "sha256": "b00ae8397b15423ec37743ffe34966e3123fa2a21996d36457953dff131d60bc" + "sha256": "8a9a1cef4b025e20741219b949c5a591444f9f3b850534f1cc5b2f9164b9c126" }, { "name": "build.gradle.kts", - "sha256": "7c086e8a937a8219dd20df5b5380048d993b0c0ed9aea65e13a017428e3b50b7" + "sha256": "8c58be9952882697a411fe07d19d7f5a4d79e4ef64bde65facc97ee7d8e5822f" }, { "name": "gradle.properties", @@ -151,7 +150,7 @@ } ], "shellRecipe": [ - "git clone https://github.com/libtmux/libtmux-java libtmux-source &&\n git -C libtmux-source checkout be1d62fbaa1aa634c687e1c50bceeb09ef0b8a15", + "git clone https://github.com/libtmux/libtmux-java libtmux-source &&\n git -C libtmux-source checkout 5c181887918351119bfdb3a046719fa792048e59", "sh run.sh ./libtmux-source/gradlew --project-dir . run \\\n -Pexample=Local --console=plain --max-workers=2", "sh run.sh ./libtmux-source/gradlew --project-dir . run \\\n -Pexample=Control --console=plain --max-workers=2" ], @@ -165,25 +164,25 @@ "control client closed; server still running" ] ], - "verificationScope": "Each displayed program runs independently with its displayed project, launcher and pinned library. Native checks cover assertions, stdout and cleanup." + "verificationScope": "Each displayed program runs independently with its displayed project, launcher and the library from Maven Central 0.1.0. Native checks cover assertions, stdout and cleanup." }, { "port": "kotlin", "page": "ports/kotlin/concepts/workspaces", - "sourceRevision": "be1d62fbaa1aa634c687e1c50bceeb09ef0b8a15", + "sourceRevision": "5c181887918351119bfdb3a046719fa792048e59", "runtime": "Temurin JDK 25.0.3", "tmuxVersions": [ - "3.2a", + "3.3a", "3.7c" ], "files": [ { "name": "settings.gradle.kts", - "sha256": "b00ae8397b15423ec37743ffe34966e3123fa2a21996d36457953dff131d60bc" + "sha256": "8a9a1cef4b025e20741219b949c5a591444f9f3b850534f1cc5b2f9164b9c126" }, { "name": "build.gradle.kts", - "sha256": "7c086e8a937a8219dd20df5b5380048d993b0c0ed9aea65e13a017428e3b50b7" + "sha256": "8c58be9952882697a411fe07d19d7f5a4d79e4ef64bde65facc97ee7d8e5822f" }, { "name": "gradle.properties", @@ -203,7 +202,7 @@ } ], "shellRecipe": [ - "git clone https://github.com/libtmux/libtmux-java libtmux-source &&\n git -C libtmux-source checkout be1d62fbaa1aa634c687e1c50bceeb09ef0b8a15", + "git clone https://github.com/libtmux/libtmux-java libtmux-source &&\n git -C libtmux-source checkout 5c181887918351119bfdb3a046719fa792048e59", "sh run.sh ./libtmux-source/gradlew --project-dir . run \\\n -Pexample=Layout --console=plain --max-workers=2", "sh run.sh ./libtmux-source/gradlew --project-dir . run \\\n -Pexample=ReuseLayout --console=plain --max-workers=2" ], @@ -216,7 +215,7 @@ "one tools window after two calls" ] ], - "verificationScope": "Each displayed program runs independently with its displayed project, launcher and pinned library. Native checks cover assertions, stdout and cleanup." + "verificationScope": "Each displayed program runs independently with its displayed project, launcher and the library from Maven Central 0.1.0. Native checks cover assertions, stdout and cleanup." }, { "port": "scala", diff --git a/site/test/fixtures/home-examples.json b/site/test/fixtures/home-examples.json index 81e80e47f..9367adfd3 100644 --- a/site/test/fixtures/home-examples.json +++ b/site/test/fixtures/home-examples.json @@ -630,18 +630,18 @@ "port": "kotlin", "page": "home", "sourceRepository": "libtmux/libtmux-java", - "sourceRevision": "a0ecbc16da00140e2520462d478a2af470878272", - "sourceTree": "342c76ca1ad7257b3655c7a47d7258b486b26975", + "sourceRevision": "5c181887918351119bfdb3a046719fa792048e59", + "sourceTree": "546ecf68a8a31e0503e18323ba82ce3a490490ab", "files": [ { "name": "build.gradle.kts", - "sha256": "6fc1e9a705742429f068305926f9c2ecc7f8679a911df956e21a2d07cec05434", - "clipboardSha256": "cd331df371e395de0c3cebbc92b8550dc4949f7c281c3c2cedcf57bb325d25c1" + "sha256": "df1a5d328bd409d027101a3a1c30d491a790158bb51151102cd7e64b336a1089", + "clipboardSha256": "56054b0671305014d4e5b3160d2d33acabaf3f67289287a053f4e50342152141" }, { "name": "settings.gradle.kts", - "sha256": "86d4d5effb8203cba4aee51a2904b60e343598f4dde31b98d3f5837f99560ed2", - "clipboardSha256": "beac5d3b44bdc3bf1d83f435ca9169794dc7dc42f685d9feffb509adf7c807a7" + "sha256": "9ef47986c06cc0ec9eff93a196500d6cd2bcf3cb43878de4cef410da792667d7", + "clipboardSha256": "558639ca13041c333e86fc82975aff130cfcd0cc910a6965d02eb769c9db9e7c" }, { "name": "gradle.properties", @@ -655,7 +655,7 @@ } ], "shellRecipe": [ - "# Save the files above at their displayed relative paths.\ngit clone https://github.com/libtmux/libtmux-java.git libtmux-source\ngit -C libtmux-source checkout --detach a0ecbc16da00140e2520462d478a2af470878272\n./libtmux-source/gradlew --project-dir . --console=plain --no-daemon --max-workers=2 \\\n installDist -PexampleMain=MainKt\nSHELL=/bin/sh build/install/api-example/bin/api-example" + "# Save the files above at their displayed relative paths.\ngit clone https://github.com/libtmux/libtmux-java.git libtmux-source\ngit -C libtmux-source checkout --detach 5c181887918351119bfdb3a046719fa792048e59\n./libtmux-source/gradlew --project-dir . --console=plain --no-daemon --max-workers=2 \\\n installDist -PexampleMain=MainKt\nSHELL=/bin/sh build/install/api-example/bin/api-example" ], "expectedOutputs": [ [ @@ -664,7 +664,7 @@ ], "excerptSha256": "fe931c04c4b06767c5dc75322d28cc0391a6cd16ac9eb6de7444af7bc6061e7d", "tmuxVersions": [ - "3.2a", + "3.3a", "3.7c" ], "variants": { @@ -672,13 +672,13 @@ "files": [ { "name": "build.gradle.kts", - "sha256": "6fc1e9a705742429f068305926f9c2ecc7f8679a911df956e21a2d07cec05434", - "clipboardSha256": "cd331df371e395de0c3cebbc92b8550dc4949f7c281c3c2cedcf57bb325d25c1" + "sha256": "df1a5d328bd409d027101a3a1c30d491a790158bb51151102cd7e64b336a1089", + "clipboardSha256": "56054b0671305014d4e5b3160d2d33acabaf3f67289287a053f4e50342152141" }, { "name": "settings.gradle.kts", - "sha256": "86d4d5effb8203cba4aee51a2904b60e343598f4dde31b98d3f5837f99560ed2", - "clipboardSha256": "beac5d3b44bdc3bf1d83f435ca9169794dc7dc42f685d9feffb509adf7c807a7" + "sha256": "9ef47986c06cc0ec9eff93a196500d6cd2bcf3cb43878de4cef410da792667d7", + "clipboardSha256": "558639ca13041c333e86fc82975aff130cfcd0cc910a6965d02eb769c9db9e7c" }, { "name": "gradle.properties", @@ -697,13 +697,13 @@ "files": [ { "name": "build.gradle.kts", - "sha256": "6fc1e9a705742429f068305926f9c2ecc7f8679a911df956e21a2d07cec05434", - "clipboardSha256": "cd331df371e395de0c3cebbc92b8550dc4949f7c281c3c2cedcf57bb325d25c1" + "sha256": "df1a5d328bd409d027101a3a1c30d491a790158bb51151102cd7e64b336a1089", + "clipboardSha256": "56054b0671305014d4e5b3160d2d33acabaf3f67289287a053f4e50342152141" }, { "name": "settings.gradle.kts", - "sha256": "86d4d5effb8203cba4aee51a2904b60e343598f4dde31b98d3f5837f99560ed2", - "clipboardSha256": "beac5d3b44bdc3bf1d83f435ca9169794dc7dc42f685d9feffb509adf7c807a7" + "sha256": "9ef47986c06cc0ec9eff93a196500d6cd2bcf3cb43878de4cef410da792667d7", + "clipboardSha256": "558639ca13041c333e86fc82975aff130cfcd0cc910a6965d02eb769c9db9e7c" }, { "name": "gradle.properties", @@ -722,13 +722,13 @@ "files": [ { "name": "build.gradle.kts", - "sha256": "6fc1e9a705742429f068305926f9c2ecc7f8679a911df956e21a2d07cec05434", - "clipboardSha256": "cd331df371e395de0c3cebbc92b8550dc4949f7c281c3c2cedcf57bb325d25c1" + "sha256": "df1a5d328bd409d027101a3a1c30d491a790158bb51151102cd7e64b336a1089", + "clipboardSha256": "56054b0671305014d4e5b3160d2d33acabaf3f67289287a053f4e50342152141" }, { "name": "settings.gradle.kts", - "sha256": "86d4d5effb8203cba4aee51a2904b60e343598f4dde31b98d3f5837f99560ed2", - "clipboardSha256": "beac5d3b44bdc3bf1d83f435ca9169794dc7dc42f685d9feffb509adf7c807a7" + "sha256": "9ef47986c06cc0ec9eff93a196500d6cd2bcf3cb43878de4cef410da792667d7", + "clipboardSha256": "558639ca13041c333e86fc82975aff130cfcd0cc910a6965d02eb769c9db9e7c" }, { "name": "gradle.properties", diff --git a/site/test/tmux-minimum.test.ts b/site/test/tmux-minimum.test.ts index e45014322..47b3c6f8f 100644 --- a/site/test/tmux-minimum.test.ts +++ b/site/test/tmux-minimum.test.ts @@ -84,6 +84,12 @@ export const OTHER_FLOORS = [ near: /history limit/, why: 'a tmux behaviour of the history-limit option from tmux 3.7, not a library minimum', }, + { + path: 'site/src/content/docs/ports/kotlin/concepts/transports.md', + version: '3.7', + near: /Managed control/, + why: 'the managed control program; libtmux 0.1.0 refuses managed control below tmux 3.7 (ControlAcquisition.supports)', + }, ] const ROOT = join(dirname(fileURLToPath(import.meta.url)), '../..') From 54e2ada369f8e80c8e0f03d372fbecbed7096cfd Mon Sep 17 00:00:00 2001 From: Tony Narlock Date: Tue, 27 Oct 2026 04:39:20 -0500 Subject: [PATCH 9/9] docs(ports[scala]) Build the examples against libtmux-scala_3 0.1.0 why: libtmux-scala_3 0.1.0 is on Maven Central, but the Scala homepage example and pages still pinned `0.0.1-alpha.17-SNAPSHOT` and substituted the library from a source checkout with `includeBuild`, so a reader could not build them from the registry. what: - Pin `libtmux-scala_3` 0.1.0 and drop the `includeBuild` substitution block from every displayed `settings.gradle.kts`; the clone of the v0.1.0 release commit remains only as the Gradle wrapper source, and the prose says so. - Point the home, concept, capture and attach receipts at the release commit and tree, rehash the displayed files and recipes, and record tmux 3.3a and 3.7c (3.2a is below the 0.1.0 floor and is dropped). - Note on the transports page that managed control needs tmux 3.7 or newer, with a tmux-minimum exemption for that per-feature floor; its receipt lists 3.7c only, because the control program fails on 3.3a. - Native runs: `check-example-prose.py` for the home example (four views), the four concept pages, the capture example and the attach guide, on tmux 3.3a and 3.7c, JDK 25.0.3, Gradle 9.7.0, all passed except the transports control program on 3.3a, which is refused as documented. --- .../docs/ports/scala/concepts/queries.md | 14 ++---- .../concepts/server-session-window-pane.md | 14 ++---- .../docs/ports/scala/concepts/transports.md | 16 ++----- .../docs/ports/scala/concepts/workspaces.md | 14 ++---- .../scala/examples/capture-pane-output.md | 14 ++---- .../ports/scala/guides/attaching-to-tmux.md | 12 ++--- site/src/data/home-examples.json | 10 ++-- site/test/fixtures/attach-examples.json | 10 ++-- site/test/fixtures/capture-examples.json | 18 +++---- site/test/fixtures/concept-examples.json | 47 +++++++++---------- site/test/fixtures/home-examples.json | 40 ++++++++-------- site/test/tmux-minimum.test.ts | 6 +++ 12 files changed, 92 insertions(+), 123 deletions(-) diff --git a/site/src/content/docs/ports/scala/concepts/queries.md b/site/src/content/docs/ports/scala/concepts/queries.md index 595cf5ec1..5a52f7dfe 100644 --- a/site/src/content/docs/ports/scala/concepts/queries.md +++ b/site/src/content/docs/ports/scala/concepts/queries.md @@ -18,16 +18,10 @@ Filter captured objects in Scala, handle result counts explicitly, and match ses Use an empty directory on Linux with Git, tmux 3.3a or newer, and JDK 25. Save the project files and launcher below, then save any complete program on this page. Each program has its own imports and entry point. -The pinned source checkout supplies the Gradle wrapper and the library dependency. +The pinned source checkout supplies the Gradle wrapper. Gradle resolves the library from Maven Central. ```kotlin title="settings.gradle.kts" rootProject.name = "connect" -includeBuild("libtmux-source") { - dependencySubstitution { - substitute(module("io.github.libtmux:libtmux-scala_3")) - .using(project(":libtmux-scala")) - } -} ``` ```kotlin title="build.gradle.kts" @@ -41,7 +35,7 @@ plugins { repositories { mavenCentral() } dependencies { implementation("org.scala-lang:scala3-library_3:3.9.0") - implementation("io.github.libtmux:libtmux-scala_3:0.0.1-alpha.17-SNAPSHOT") + implementation("io.github.libtmux:libtmux-scala_3:0.1.0") } java { toolchain { languageVersion.set(JavaLanguageVersion.of(25)) } } sourceSets.main { scala.srcDir("."); scala.include("${example}.scala") } @@ -86,11 +80,11 @@ export LIBTMUX_SOCKET_PATH="$socket" TMUX_BIN="$binary" "$binary" -S "$socket" has-session -t '=work-one' ``` -Fetch the library revision used by these examples: +Fetch the Gradle wrapper from the 0.1.0 release: ```console $ git clone https://github.com/libtmux/libtmux-java libtmux-source && - git -C libtmux-source checkout be1d62fbaa1aa634c687e1c50bceeb09ef0b8a15 + git -C libtmux-source checkout 5c181887918351119bfdb3a046719fa792048e59 ``` Each run starts from the same two-session fixture. Programs do not depend on another example having run first. Their assertions fail if the observed result differs. diff --git a/site/src/content/docs/ports/scala/concepts/server-session-window-pane.md b/site/src/content/docs/ports/scala/concepts/server-session-window-pane.md index 508bcecea..028adc93b 100644 --- a/site/src/content/docs/ports/scala/concepts/server-session-window-pane.md +++ b/site/src/content/docs/ports/scala/concepts/server-session-window-pane.md @@ -20,16 +20,10 @@ A session holds window placements; a window holds panes. A linked window can app Use an empty directory on Linux with Git, tmux 3.3a or newer, and JDK 25. Save the project files and launcher below, then save any complete program on this page. Each program has its own imports and entry point. -The pinned source checkout supplies the Gradle wrapper and the library dependency. +The pinned source checkout supplies the Gradle wrapper. Gradle resolves the library from Maven Central. ```kotlin title="settings.gradle.kts" rootProject.name = "connect" -includeBuild("libtmux-source") { - dependencySubstitution { - substitute(module("io.github.libtmux:libtmux-scala_3")) - .using(project(":libtmux-scala")) - } -} ``` ```kotlin title="build.gradle.kts" @@ -43,7 +37,7 @@ plugins { repositories { mavenCentral() } dependencies { implementation("org.scala-lang:scala3-library_3:3.9.0") - implementation("io.github.libtmux:libtmux-scala_3:0.0.1-alpha.17-SNAPSHOT") + implementation("io.github.libtmux:libtmux-scala_3:0.1.0") } java { toolchain { languageVersion.set(JavaLanguageVersion.of(25)) } } sourceSets.main { scala.srcDir("."); scala.include("${example}.scala") } @@ -88,11 +82,11 @@ export LIBTMUX_SOCKET_PATH="$socket" TMUX_BIN="$binary" "$binary" -S "$socket" has-session -t '=work-one' ``` -Fetch the library revision used by these examples: +Fetch the Gradle wrapper from the 0.1.0 release: ```console $ git clone https://github.com/libtmux/libtmux-java libtmux-source && - git -C libtmux-source checkout be1d62fbaa1aa634c687e1c50bceeb09ef0b8a15 + git -C libtmux-source checkout 5c181887918351119bfdb3a046719fa792048e59 ``` Each run starts from the same two-session fixture. Programs do not depend on another example having run first. Their assertions fail if the observed result differs. diff --git a/site/src/content/docs/ports/scala/concepts/transports.md b/site/src/content/docs/ports/scala/concepts/transports.md index a85027ad9..2d2f2cd3c 100644 --- a/site/src/content/docs/ports/scala/concepts/transports.md +++ b/site/src/content/docs/ports/scala/concepts/transports.md @@ -18,16 +18,10 @@ The direct [`Server`](../../reference/io-github-libtmux-scaladsl-server/) API bl Use an empty directory on Linux with Git, tmux 3.3a or newer, and JDK 25. Save the project files and launcher below, then save any complete program on this page. Each program has its own imports and entry point. -The pinned source checkout supplies the Gradle wrapper and the library dependency. +The pinned source checkout supplies the Gradle wrapper. Gradle resolves the library from Maven Central. ```kotlin title="settings.gradle.kts" rootProject.name = "connect" -includeBuild("libtmux-source") { - dependencySubstitution { - substitute(module("io.github.libtmux:libtmux-scala_3")) - .using(project(":libtmux-scala")) - } -} ``` ```kotlin title="build.gradle.kts" @@ -41,7 +35,7 @@ plugins { repositories { mavenCentral() } dependencies { implementation("org.scala-lang:scala3-library_3:3.9.0") - implementation("io.github.libtmux:libtmux-scala_3:0.0.1-alpha.17-SNAPSHOT") + implementation("io.github.libtmux:libtmux-scala_3:0.1.0") } java { toolchain { languageVersion.set(JavaLanguageVersion.of(25)) } } sourceSets.main { scala.srcDir("."); scala.include("${example}.scala") } @@ -86,11 +80,11 @@ export LIBTMUX_SOCKET_PATH="$socket" TMUX_BIN="$binary" "$binary" -S "$socket" has-session -t '=work-one' ``` -Fetch the library revision used by these examples: +Fetch the Gradle wrapper from the 0.1.0 release: ```console $ git clone https://github.com/libtmux/libtmux-java libtmux-source && - git -C libtmux-source checkout be1d62fbaa1aa634c687e1c50bceeb09ef0b8a15 + git -C libtmux-source checkout 5c181887918351119bfdb3a046719fa792048e59 ``` Each run starts from the same two-session fixture. Programs do not depend on another example having run first. Their assertions fail if the observed result differs. @@ -147,7 +141,7 @@ work-one, work-two ## Open and close a control client -Send `list-sessions` over a persistent control connection, verify the response, then close the control client. A subsequent ordinary read verifies the tmux server still has both sessions. +Send `list-sessions` over a persistent control connection, verify the response, then close the control client. A subsequent ordinary read verifies the tmux server still has both sessions. Managed control needs tmux 3.7 or newer; on an older server the library refuses it with an unsupported-feature error. ```scala title="Control.scala" import io.github.libtmux.{ServerConfig, ServerEndpoint} diff --git a/site/src/content/docs/ports/scala/concepts/workspaces.md b/site/src/content/docs/ports/scala/concepts/workspaces.md index 72900c360..228390d89 100644 --- a/site/src/content/docs/ports/scala/concepts/workspaces.md +++ b/site/src/content/docs/ports/scala/concepts/workspaces.md @@ -16,16 +16,10 @@ Build a tmux layout from Scala by creating a window, splitting a pane and select Use an empty directory on Linux with Git, tmux 3.3a or newer, and JDK 25. Save the project files and launcher below, then save any complete program on this page. Each program has its own imports and entry point. -The pinned source checkout supplies the Gradle wrapper and the library dependency. +The pinned source checkout supplies the Gradle wrapper. Gradle resolves the library from Maven Central. ```kotlin title="settings.gradle.kts" rootProject.name = "connect" -includeBuild("libtmux-source") { - dependencySubstitution { - substitute(module("io.github.libtmux:libtmux-scala_3")) - .using(project(":libtmux-scala")) - } -} ``` ```kotlin title="build.gradle.kts" @@ -39,7 +33,7 @@ plugins { repositories { mavenCentral() } dependencies { implementation("org.scala-lang:scala3-library_3:3.9.0") - implementation("io.github.libtmux:libtmux-scala_3:0.0.1-alpha.17-SNAPSHOT") + implementation("io.github.libtmux:libtmux-scala_3:0.1.0") } java { toolchain { languageVersion.set(JavaLanguageVersion.of(25)) } } sourceSets.main { scala.srcDir("."); scala.include("${example}.scala") } @@ -84,11 +78,11 @@ export LIBTMUX_SOCKET_PATH="$socket" TMUX_BIN="$binary" "$binary" -S "$socket" has-session -t '=work-one' ``` -Fetch the library revision used by these examples: +Fetch the Gradle wrapper from the 0.1.0 release: ```console $ git clone https://github.com/libtmux/libtmux-java libtmux-source && - git -C libtmux-source checkout be1d62fbaa1aa634c687e1c50bceeb09ef0b8a15 + git -C libtmux-source checkout 5c181887918351119bfdb3a046719fa792048e59 ``` Each run starts from the same two-session fixture. Programs do not depend on another example having run first. Their assertions fail if the observed result differs. diff --git a/site/src/content/docs/ports/scala/examples/capture-pane-output.md b/site/src/content/docs/ports/scala/examples/capture-pane-output.md index 1f93fa9ee..3367db026 100644 --- a/site/src/content/docs/ports/scala/examples/capture-pane-output.md +++ b/site/src/content/docs/ports/scala/examples/capture-pane-output.md @@ -97,12 +97,6 @@ Save `settings.gradle.kts` beside `Capture.scala`. ```kotlin title="settings.gradle.kts" rootProject.name = "capture" -includeBuild("libtmux-source") { - dependencySubstitution { - substitute(module("io.github.libtmux:libtmux-scala_3")) - .using(project(":libtmux-scala")) - } -} ``` Save `build.gradle.kts` beside `Capture.scala`. @@ -116,7 +110,7 @@ plugins { repositories { mavenCentral() } dependencies { implementation("org.scala-lang:scala3-library_3:3.9.0") - implementation("io.github.libtmux:libtmux-scala_3:0.0.1-alpha.17-SNAPSHOT") + implementation("io.github.libtmux:libtmux-scala_3:0.1.0") } java { toolchain { languageVersion.set(JavaLanguageVersion.of(25)) } } sourceSets.main { scala.srcDir("."); scala.include("Capture.scala") } @@ -131,11 +125,11 @@ kotlin.daemon.jvmargs=-Xmx2g org.gradle.workers.max=2 ``` -The commands pin the library revision used to run this program. +The commands fetch the Gradle wrapper from the 0.1.0 release; Gradle resolves the library from Maven Central. ```console $ git clone https://github.com/libtmux/libtmux-java libtmux-source && - git -C libtmux-source checkout 85ebf6955e56703c5be74e2afd34a18309044741 && + git -C libtmux-source checkout 5c181887918351119bfdb3a046719fa792048e59 && ./libtmux-source/gradlew --project-dir . run --console=plain --max-workers=2 ``` @@ -144,4 +138,4 @@ $ git clone https://github.com/libtmux/libtmux-java libtmux-source && ## Where this comes from The displayed files were compiled or loaded with their native tools and run -on Linux with tmux 3.2a and 3.7c. The rendering checks preserve those file bytes. +on Linux with tmux 3.3a and 3.7c. The rendering checks preserve those file bytes. diff --git a/site/src/content/docs/ports/scala/guides/attaching-to-tmux.md b/site/src/content/docs/ports/scala/guides/attaching-to-tmux.md index b8403244b..ddbb2bd31 100644 --- a/site/src/content/docs/ports/scala/guides/attaching-to-tmux.md +++ b/site/src/content/docs/ports/scala/guides/attaching-to-tmux.md @@ -67,7 +67,7 @@ plugins { repositories { mavenCentral() } dependencies { implementation("org.scala-lang:scala3-library_3:3.9.0") - implementation("io.github.libtmux:libtmux-scala_3:0.0.1-alpha.17-SNAPSHOT") + implementation("io.github.libtmux:libtmux-scala_3:0.1.0") } java { toolchain { languageVersion.set(JavaLanguageVersion.of(25)) } } sourceSets.main { scala.srcDir("."); scala.include("Connect.scala") } @@ -78,12 +78,6 @@ Save this file beside the program using the displayed filename. ```kotlin title="settings.gradle.kts" rootProject.name = "connect" -includeBuild("libtmux-source") { - dependencySubstitution { - substitute(module("io.github.libtmux:libtmux-scala_3")) - .using(project(":libtmux-scala")) - } -} ``` Save this file beside the program using the displayed filename. @@ -127,11 +121,11 @@ export LIBTMUX_SOCKET_PATH="$socket" TMUX_BIN="$binary" "$binary" -S "$socket" has-session -t '=work' ``` -Fetch the verified library revision, build, and run: +Fetch the Gradle wrapper from the 0.1.0 release, build, and run: ```console $ git clone https://github.com/libtmux/libtmux-java libtmux-source && - git -C libtmux-source checkout 85ebf6955e56703c5be74e2afd34a18309044741 && + git -C libtmux-source checkout 5c181887918351119bfdb3a046719fa792048e59 && sh run.sh ./libtmux-source/gradlew --project-dir . run --console=plain --max-workers=2 ``` diff --git a/site/src/data/home-examples.json b/site/src/data/home-examples.json index 1ed8ecf0e..a9de965d5 100644 --- a/site/src/data/home-examples.json +++ b/site/src/data/home-examples.json @@ -314,8 +314,8 @@ "scala": { "lang": "scala", "sourceRepository": "libtmux/libtmux-java", - "sourceRevision": "a0ecbc16da00140e2520462d478a2af470878272", - "sourceTree": "342c76ca1ad7257b3655c7a47d7258b486b26975", + "sourceRevision": "5c181887918351119bfdb3a046719fa792048e59", + "sourceTree": "546ecf68a8a31e0503e18323ba82ce3a490490ab", "program": "src/main/scala/Main.scala", "excerpt": { "startLine": 1, @@ -327,12 +327,12 @@ { "name": "build.gradle.kts", "lang": "kotlin", - "code": "plugins {\n scala\n application\n}\n\nrepositories { mavenCentral() }\n\ndependencies {\n implementation(\"io.github.libtmux:libtmux-scala_3:0.0.1-alpha.17-SNAPSHOT\")\n implementation(\"org.scala-lang:scala3-library_3:3.9.0\")\n}\n\njava { toolchain { languageVersion.set(JavaLanguageVersion.of(25)) } }\n\napplication { mainClass.set(providers.gradleProperty(\"exampleMain\")) }\n" + "code": "plugins {\n scala\n application\n}\n\nrepositories { mavenCentral() }\n\ndependencies {\n implementation(\"io.github.libtmux:libtmux-scala_3:0.1.0\")\n implementation(\"org.scala-lang:scala3-library_3:3.9.0\")\n}\n\njava { toolchain { languageVersion.set(JavaLanguageVersion.of(25)) } }\n\napplication { mainClass.set(providers.gradleProperty(\"exampleMain\")) }\n" }, { "name": "settings.gradle.kts", "lang": "kotlin", - "code": "rootProject.name = \"api-example\"\n\nincludeBuild(\"libtmux-source\") {\n dependencySubstitution {\n substitute(module(\"io.github.libtmux:libtmux-scala_3\"))\n .using(project(\":libtmux-scala\"))\n }\n}\n" + "code": "rootProject.name = \"api-example\"\n" }, { "name": "gradle.properties", @@ -347,7 +347,7 @@ ], "prerequisites": "JDK 25 and tmux on Linux/macOS; Scala 3.9.0 Direct facade", "commands": [ - "# Save the files above at their displayed relative paths.\ngit clone https://github.com/libtmux/libtmux-java.git libtmux-source\ngit -C libtmux-source checkout --detach a0ecbc16da00140e2520462d478a2af470878272\n./libtmux-source/gradlew --project-dir . --console=plain --no-daemon --max-workers=2 \\\n installDist -PexampleMain=Main\nSHELL=/bin/sh build/install/api-example/bin/api-example" + "# Save the files above at their displayed relative paths.\ngit clone https://github.com/libtmux/libtmux-java.git libtmux-source\ngit -C libtmux-source checkout --detach 5c181887918351119bfdb3a046719fa792048e59\n./libtmux-source/gradlew --project-dir . --console=plain --no-daemon --max-workers=2 \\\n installDist -PexampleMain=Main\nSHELL=/bin/sh build/install/api-example/bin/api-example" ], "expectedOutput": "work: 2 panes\ncommands: sh\n", "variants": { diff --git a/site/test/fixtures/attach-examples.json b/site/test/fixtures/attach-examples.json index 1a03e19f3..dfee418d1 100644 --- a/site/test/fixtures/attach-examples.json +++ b/site/test/fixtures/attach-examples.json @@ -298,7 +298,7 @@ { "port": "scala", "language": "scala", - "sourceRevision": "85ebf6955e56703c5be74e2afd34a18309044741", + "sourceRevision": "5c181887918351119bfdb3a046719fa792048e59", "sourceRepository": "libtmux/libtmux-java", "toolchain": [ "JDK 25.0.3", @@ -306,7 +306,7 @@ ], "page": "ports/scala/guides/attaching-to-tmux", "shellRecipe": [ - "git clone https://github.com/libtmux/libtmux-java libtmux-source &&\n git -C libtmux-source checkout 85ebf6955e56703c5be74e2afd34a18309044741 &&\n sh run.sh ./libtmux-source/gradlew --project-dir . run --console=plain --max-workers=2" + "git clone https://github.com/libtmux/libtmux-java libtmux-source &&\n git -C libtmux-source checkout 5c181887918351119bfdb3a046719fa792048e59 &&\n sh run.sh ./libtmux-source/gradlew --project-dir . run --console=plain --max-workers=2" ], "expectedOutput": "work", "files": [ @@ -316,11 +316,11 @@ }, { "name": "build.gradle.kts", - "sha256": "745dadde4e2fff287d2bb57ee8b2679d19921af02745857b9a9a0c62c1dc04e9" + "sha256": "8b263bf130f131ebbabc1addd90642e0b5f7c83075adeadcd1038fcdde86cb05" }, { "name": "settings.gradle.kts", - "sha256": "84f6f8c1760984676ed15761a8838fba725ee18fee25a28b8cc3f94ad3e24b99" + "sha256": "8a9a1cef4b025e20741219b949c5a591444f9f3b850534f1cc5b2f9164b9c126" }, { "name": "gradle.properties", @@ -332,7 +332,7 @@ } ], "tmux": [ - "3.2a", + "3.3a", "3.7c" ] }, diff --git a/site/test/fixtures/capture-examples.json b/site/test/fixtures/capture-examples.json index 0c5bbd71e..0870ec90a 100644 --- a/site/test/fixtures/capture-examples.json +++ b/site/test/fixtures/capture-examples.json @@ -297,7 +297,7 @@ { "port": "scala", "language": "scala", - "sourceRevision": "85ebf6955e56703c5be74e2afd34a18309044741", + "sourceRevision": "5c181887918351119bfdb3a046719fa792048e59", "sourceRepository": "libtmux/libtmux-java", "files": [ { @@ -306,11 +306,11 @@ }, { "name": "build.gradle.kts", - "sha256": "a770d0b99553598b21e82030b6c7d42215769abca70789c2aae836956a70b3c5" + "sha256": "5c30b0576ad1a6c02237fcc4839dc2730568ac2282c4bebaf12e4a6f2501d458" }, { "name": "settings.gradle.kts", - "sha256": "b714b16f8397fc43c5780c8a1c330ed85dcd80c3c5c565023f7504fb8fa9b06b" + "sha256": "623c7967842d9b0330b5016fab47d4351151dc1cffcf295a9298c7378b7561aa" }, { "name": "gradle.properties", @@ -322,28 +322,28 @@ "Scala 3.9.0" ], "tmux": [ - "3.2a", + "3.3a", "3.7c" ], "page": "ports/scala/examples/capture-pane-output", "shellRecipe": [ - "git clone https://github.com/libtmux/libtmux-java libtmux-source &&\n git -C libtmux-source checkout 85ebf6955e56703c5be74e2afd34a18309044741 &&\n ./libtmux-source/gradlew --project-dir . run --console=plain --max-workers=2" + "git clone https://github.com/libtmux/libtmux-java libtmux-source &&\n git -C libtmux-source checkout 5c181887918351119bfdb3a046719fa792048e59 &&\n ./libtmux-source/gradlew --project-dir . run --console=plain --max-workers=2" ], "verification": { "platform": "Linux", "checks": [ { - "name": "positive-3.2a", - "tmux": "3.2a", + "name": "positive-3.3a", + "tmux": "3.3a", "exit": 0, - "seconds": 1.809, + "seconds": 3.829, "remainingSocketDirectories": 0 }, { "name": "positive-3.7c", "tmux": "3.7c", "exit": 0, - "seconds": 1.596, + "seconds": 6.542, "remainingSocketDirectories": 0 }, { diff --git a/site/test/fixtures/concept-examples.json b/site/test/fixtures/concept-examples.json index b97d22e98..a8e03639b 100644 --- a/site/test/fixtures/concept-examples.json +++ b/site/test/fixtures/concept-examples.json @@ -220,20 +220,20 @@ { "port": "scala", "page": "ports/scala/concepts/server-session-window-pane", - "sourceRevision": "be1d62fbaa1aa634c687e1c50bceeb09ef0b8a15", + "sourceRevision": "5c181887918351119bfdb3a046719fa792048e59", "runtime": "Temurin JDK 25.0.3", "tmuxVersions": [ - "3.2a", + "3.3a", "3.7c" ], "files": [ { "name": "settings.gradle.kts", - "sha256": "84f6f8c1760984676ed15761a8838fba725ee18fee25a28b8cc3f94ad3e24b99" + "sha256": "8a9a1cef4b025e20741219b949c5a591444f9f3b850534f1cc5b2f9164b9c126" }, { "name": "build.gradle.kts", - "sha256": "c94c54df066047a1040b70e4f69a303426174aac83683b8cd1c274d6213511e9" + "sha256": "e14d7b03051f9895e952ecaae81afbe8bd7ce2008f85cc97096fed8b9795cdaf" }, { "name": "gradle.properties", @@ -253,7 +253,7 @@ } ], "shellRecipe": [ - "git clone https://github.com/libtmux/libtmux-java libtmux-source &&\n git -C libtmux-source checkout be1d62fbaa1aa634c687e1c50bceeb09ef0b8a15", + "git clone https://github.com/libtmux/libtmux-java libtmux-source &&\n git -C libtmux-source checkout 5c181887918351119bfdb3a046719fa792048e59", "sh run.sh ./libtmux-source/gradlew --project-dir . run \\\n -Pexample=Hierarchy --console=plain --max-workers=2", "sh run.sh ./libtmux-source/gradlew --project-dir . run \\\n -Pexample=Refresh --console=plain --max-workers=2" ], @@ -268,25 +268,25 @@ "editor -> renamed" ] ], - "verificationScope": "Each displayed program runs independently with its displayed project, launcher and pinned library. Native checks cover assertions, stdout and cleanup." + "verificationScope": "Each displayed program runs independently with its displayed project, launcher and the library from Maven Central 0.1.0. Native checks cover assertions, stdout and cleanup." }, { "port": "scala", "page": "ports/scala/concepts/queries", - "sourceRevision": "be1d62fbaa1aa634c687e1c50bceeb09ef0b8a15", + "sourceRevision": "5c181887918351119bfdb3a046719fa792048e59", "runtime": "Temurin JDK 25.0.3", "tmuxVersions": [ - "3.2a", + "3.3a", "3.7c" ], "files": [ { "name": "settings.gradle.kts", - "sha256": "84f6f8c1760984676ed15761a8838fba725ee18fee25a28b8cc3f94ad3e24b99" + "sha256": "8a9a1cef4b025e20741219b949c5a591444f9f3b850534f1cc5b2f9164b9c126" }, { "name": "build.gradle.kts", - "sha256": "c94c54df066047a1040b70e4f69a303426174aac83683b8cd1c274d6213511e9" + "sha256": "e14d7b03051f9895e952ecaae81afbe8bd7ce2008f85cc97096fed8b9795cdaf" }, { "name": "gradle.properties", @@ -310,7 +310,7 @@ } ], "shellRecipe": [ - "git clone https://github.com/libtmux/libtmux-java libtmux-source &&\n git -C libtmux-source checkout be1d62fbaa1aa634c687e1c50bceeb09ef0b8a15", + "git clone https://github.com/libtmux/libtmux-java libtmux-source &&\n git -C libtmux-source checkout 5c181887918351119bfdb3a046719fa792048e59", "sh run.sh ./libtmux-source/gradlew --project-dir . run \\\n -Pexample=Local --console=plain --max-workers=2", "sh run.sh ./libtmux-source/gradlew --project-dir . run \\\n -Pexample=Cardinality --console=plain --max-workers=2", "sh run.sh ./libtmux-source/gradlew --project-dir . run \\\n -Pexample=Relations --console=plain --max-workers=2" @@ -330,25 +330,24 @@ "no editor: work-two" ] ], - "verificationScope": "Each displayed program runs independently with its displayed project, launcher and pinned library. Native checks cover assertions, stdout and cleanup." + "verificationScope": "Each displayed program runs independently with its displayed project, launcher and the library from Maven Central 0.1.0. Native checks cover assertions, stdout and cleanup." }, { "port": "scala", "page": "ports/scala/concepts/transports", - "sourceRevision": "be1d62fbaa1aa634c687e1c50bceeb09ef0b8a15", + "sourceRevision": "5c181887918351119bfdb3a046719fa792048e59", "runtime": "Temurin JDK 25.0.3", "tmuxVersions": [ - "3.2a", "3.7c" ], "files": [ { "name": "settings.gradle.kts", - "sha256": "84f6f8c1760984676ed15761a8838fba725ee18fee25a28b8cc3f94ad3e24b99" + "sha256": "8a9a1cef4b025e20741219b949c5a591444f9f3b850534f1cc5b2f9164b9c126" }, { "name": "build.gradle.kts", - "sha256": "c94c54df066047a1040b70e4f69a303426174aac83683b8cd1c274d6213511e9" + "sha256": "e14d7b03051f9895e952ecaae81afbe8bd7ce2008f85cc97096fed8b9795cdaf" }, { "name": "gradle.properties", @@ -368,7 +367,7 @@ } ], "shellRecipe": [ - "git clone https://github.com/libtmux/libtmux-java libtmux-source &&\n git -C libtmux-source checkout be1d62fbaa1aa634c687e1c50bceeb09ef0b8a15", + "git clone https://github.com/libtmux/libtmux-java libtmux-source &&\n git -C libtmux-source checkout 5c181887918351119bfdb3a046719fa792048e59", "sh run.sh ./libtmux-source/gradlew --project-dir . run \\\n -Pexample=Local --console=plain --max-workers=2", "sh run.sh ./libtmux-source/gradlew --project-dir . run \\\n -Pexample=Control --console=plain --max-workers=2" ], @@ -382,25 +381,25 @@ "control client closed; server still running" ] ], - "verificationScope": "Each displayed program runs independently with its displayed project, launcher and pinned library. Native checks cover assertions, stdout and cleanup." + "verificationScope": "Each displayed program runs independently with its displayed project, launcher and the library from Maven Central 0.1.0. Native checks cover assertions, stdout and cleanup." }, { "port": "scala", "page": "ports/scala/concepts/workspaces", - "sourceRevision": "be1d62fbaa1aa634c687e1c50bceeb09ef0b8a15", + "sourceRevision": "5c181887918351119bfdb3a046719fa792048e59", "runtime": "Temurin JDK 25.0.3", "tmuxVersions": [ - "3.2a", + "3.3a", "3.7c" ], "files": [ { "name": "settings.gradle.kts", - "sha256": "84f6f8c1760984676ed15761a8838fba725ee18fee25a28b8cc3f94ad3e24b99" + "sha256": "8a9a1cef4b025e20741219b949c5a591444f9f3b850534f1cc5b2f9164b9c126" }, { "name": "build.gradle.kts", - "sha256": "c94c54df066047a1040b70e4f69a303426174aac83683b8cd1c274d6213511e9" + "sha256": "e14d7b03051f9895e952ecaae81afbe8bd7ce2008f85cc97096fed8b9795cdaf" }, { "name": "gradle.properties", @@ -420,7 +419,7 @@ } ], "shellRecipe": [ - "git clone https://github.com/libtmux/libtmux-java libtmux-source &&\n git -C libtmux-source checkout be1d62fbaa1aa634c687e1c50bceeb09ef0b8a15", + "git clone https://github.com/libtmux/libtmux-java libtmux-source &&\n git -C libtmux-source checkout 5c181887918351119bfdb3a046719fa792048e59", "sh run.sh ./libtmux-source/gradlew --project-dir . run \\\n -Pexample=Layout --console=plain --max-workers=2", "sh run.sh ./libtmux-source/gradlew --project-dir . run \\\n -Pexample=ReuseLayout --console=plain --max-workers=2" ], @@ -433,7 +432,7 @@ "one tools window after two calls" ] ], - "verificationScope": "Each displayed program runs independently with its displayed project, launcher and pinned library. Native checks cover assertions, stdout and cleanup." + "verificationScope": "Each displayed program runs independently with its displayed project, launcher and the library from Maven Central 0.1.0. Native checks cover assertions, stdout and cleanup." }, { "port": "fsharp", diff --git a/site/test/fixtures/home-examples.json b/site/test/fixtures/home-examples.json index 9367adfd3..501f24254 100644 --- a/site/test/fixtures/home-examples.json +++ b/site/test/fixtures/home-examples.json @@ -749,18 +749,18 @@ "port": "scala", "page": "home", "sourceRepository": "libtmux/libtmux-java", - "sourceRevision": "a0ecbc16da00140e2520462d478a2af470878272", - "sourceTree": "342c76ca1ad7257b3655c7a47d7258b486b26975", + "sourceRevision": "5c181887918351119bfdb3a046719fa792048e59", + "sourceTree": "546ecf68a8a31e0503e18323ba82ce3a490490ab", "files": [ { "name": "build.gradle.kts", - "sha256": "3a40bd1fad7697618812767784a0971b03184f5b23f811cc0cd3f0c917ff27fb", - "clipboardSha256": "557ed4083bb64e48c6f88ac3f5ae819f8e422bc35b5545fb8dd5e62912641cc1" + "sha256": "25cf12ecf6b6edda898a18fe2ae7bd9341952dbcb943513582b79e5da226caf9", + "clipboardSha256": "027b815eb60ff8d6a2ff4a4e19f60a20670807cf5da6c3242645fa8855cf7745" }, { "name": "settings.gradle.kts", - "sha256": "bff153085e5944d96e7efc63bc5f8f281013c2d410c05eabb4faf09161d4d806", - "clipboardSha256": "510b2e425ae160ae4d4abd9ab911b5d8d6b0e194c518f6c5cb5dfa8501cf4a46" + "sha256": "9ef47986c06cc0ec9eff93a196500d6cd2bcf3cb43878de4cef410da792667d7", + "clipboardSha256": "558639ca13041c333e86fc82975aff130cfcd0cc910a6965d02eb769c9db9e7c" }, { "name": "gradle.properties", @@ -774,7 +774,7 @@ } ], "shellRecipe": [ - "# Save the files above at their displayed relative paths.\ngit clone https://github.com/libtmux/libtmux-java.git libtmux-source\ngit -C libtmux-source checkout --detach a0ecbc16da00140e2520462d478a2af470878272\n./libtmux-source/gradlew --project-dir . --console=plain --no-daemon --max-workers=2 \\\n installDist -PexampleMain=Main\nSHELL=/bin/sh build/install/api-example/bin/api-example" + "# Save the files above at their displayed relative paths.\ngit clone https://github.com/libtmux/libtmux-java.git libtmux-source\ngit -C libtmux-source checkout --detach 5c181887918351119bfdb3a046719fa792048e59\n./libtmux-source/gradlew --project-dir . --console=plain --no-daemon --max-workers=2 \\\n installDist -PexampleMain=Main\nSHELL=/bin/sh build/install/api-example/bin/api-example" ], "expectedOutputs": [ [ @@ -784,7 +784,7 @@ ], "excerptSha256": "0d52e72c9363570f0e992167f486298ea1312a467d4de38ecb1f54d4b0136195", "tmuxVersions": [ - "3.2a", + "3.3a", "3.7c" ], "variants": { @@ -792,13 +792,13 @@ "files": [ { "name": "build.gradle.kts", - "sha256": "3a40bd1fad7697618812767784a0971b03184f5b23f811cc0cd3f0c917ff27fb", - "clipboardSha256": "557ed4083bb64e48c6f88ac3f5ae819f8e422bc35b5545fb8dd5e62912641cc1" + "sha256": "25cf12ecf6b6edda898a18fe2ae7bd9341952dbcb943513582b79e5da226caf9", + "clipboardSha256": "027b815eb60ff8d6a2ff4a4e19f60a20670807cf5da6c3242645fa8855cf7745" }, { "name": "settings.gradle.kts", - "sha256": "bff153085e5944d96e7efc63bc5f8f281013c2d410c05eabb4faf09161d4d806", - "clipboardSha256": "510b2e425ae160ae4d4abd9ab911b5d8d6b0e194c518f6c5cb5dfa8501cf4a46" + "sha256": "9ef47986c06cc0ec9eff93a196500d6cd2bcf3cb43878de4cef410da792667d7", + "clipboardSha256": "558639ca13041c333e86fc82975aff130cfcd0cc910a6965d02eb769c9db9e7c" }, { "name": "gradle.properties", @@ -817,13 +817,13 @@ "files": [ { "name": "build.gradle.kts", - "sha256": "3a40bd1fad7697618812767784a0971b03184f5b23f811cc0cd3f0c917ff27fb", - "clipboardSha256": "557ed4083bb64e48c6f88ac3f5ae819f8e422bc35b5545fb8dd5e62912641cc1" + "sha256": "25cf12ecf6b6edda898a18fe2ae7bd9341952dbcb943513582b79e5da226caf9", + "clipboardSha256": "027b815eb60ff8d6a2ff4a4e19f60a20670807cf5da6c3242645fa8855cf7745" }, { "name": "settings.gradle.kts", - "sha256": "bff153085e5944d96e7efc63bc5f8f281013c2d410c05eabb4faf09161d4d806", - "clipboardSha256": "510b2e425ae160ae4d4abd9ab911b5d8d6b0e194c518f6c5cb5dfa8501cf4a46" + "sha256": "9ef47986c06cc0ec9eff93a196500d6cd2bcf3cb43878de4cef410da792667d7", + "clipboardSha256": "558639ca13041c333e86fc82975aff130cfcd0cc910a6965d02eb769c9db9e7c" }, { "name": "gradle.properties", @@ -842,13 +842,13 @@ "files": [ { "name": "build.gradle.kts", - "sha256": "3a40bd1fad7697618812767784a0971b03184f5b23f811cc0cd3f0c917ff27fb", - "clipboardSha256": "557ed4083bb64e48c6f88ac3f5ae819f8e422bc35b5545fb8dd5e62912641cc1" + "sha256": "25cf12ecf6b6edda898a18fe2ae7bd9341952dbcb943513582b79e5da226caf9", + "clipboardSha256": "027b815eb60ff8d6a2ff4a4e19f60a20670807cf5da6c3242645fa8855cf7745" }, { "name": "settings.gradle.kts", - "sha256": "bff153085e5944d96e7efc63bc5f8f281013c2d410c05eabb4faf09161d4d806", - "clipboardSha256": "510b2e425ae160ae4d4abd9ab911b5d8d6b0e194c518f6c5cb5dfa8501cf4a46" + "sha256": "9ef47986c06cc0ec9eff93a196500d6cd2bcf3cb43878de4cef410da792667d7", + "clipboardSha256": "558639ca13041c333e86fc82975aff130cfcd0cc910a6965d02eb769c9db9e7c" }, { "name": "gradle.properties", diff --git a/site/test/tmux-minimum.test.ts b/site/test/tmux-minimum.test.ts index 47b3c6f8f..d1ceb9d84 100644 --- a/site/test/tmux-minimum.test.ts +++ b/site/test/tmux-minimum.test.ts @@ -90,6 +90,12 @@ export const OTHER_FLOORS = [ near: /Managed control/, why: 'the managed control program; libtmux 0.1.0 refuses managed control below tmux 3.7 (ControlAcquisition.supports)', }, + { + path: 'site/src/content/docs/ports/scala/concepts/transports.md', + version: '3.7', + near: /Managed control/, + why: 'the managed control program; libtmux 0.1.0 refuses managed control below tmux 3.7 (ControlAcquisition.supports)', + }, ] const ROOT = join(dirname(fileURLToPath(import.meta.url)), '../..')