Repository navigation
Added
Server()builds a server that passes tmux neither-Lnor-S, so tmux
picks the server: the one inTMUXinside tmux, and its default socket
elsewhere. It takestmuxExecutable,configurationFileandenvironment,
the last being where the two variables are read from.LIBTMUX_SOCKET_PATH
(passed as-S) orLIBTMUX_SOCKET(passed as-L) names another, the path
wins when both are set, and a variable that is empty or only whitespace counts
as unset.Server(socketPath:)andServer(socketName:)leave both
variables unread. (#93)
Changed
-
Breaking.
Endpointgained atmuxChoicecase, which is the
Server.endpointof a server that names no socket. Aswitchover
Endpointthat lists only.socketNameand.socketPathstops compiling;
add a case for it, and read a socket from an endpoint only when it has one.
(#93) -
tmux-workspacewith no-Sor-Luses the socketLIBTMUX_SOCKET_PATH
and thenLIBTMUX_SOCKETname, and with neither passes tmux no socket, where
it used to pass theTMUXsocket as-Sand, outside tmux, refused to run.
Outside tmux it now acts on tmux's default socket, which is your own server
unless the environment says otherwise; name-Lfor a server of its own. An
attachedloadinside tmux,load --appendandfreezewithout a session
name still use theTMUXsocket, andshellpasses tmuxp a socket a variable
chose, because tmuxp reads neither variable. (#93) -
Breaking.
libtmux-mcpwith neither socket variable passes tmux no
socket and serves
the server tmux picks, where it used to start a daemon of its own on the
socketlibtmux-mcp, from a bundled configuration, grant itteardownand
stop it when stdio ended. That daemon, the bundled configuration and the
defaultteardownare gone; nameteardowninLIBTMUX_TOOLSETSto grant
it. Setting both variables is no longer an error: the path wins. An empty
variable no longer fails startup, it counts as unset.tmux://capabilities
reportssocket-path,socket-nameortmux-choiceassocketProvenance,
where it saidoperator-currentordefault-dedicated, and names the
socket inattachCommandonce a server runs. (#93) -
Breaking.
ServerConfigurationno longer has an
isDefaultDedicatedMinimalproperty, and itssocketNameisnilunless
LIBTMUX_SOCKETis set, where it waslibtmux-mcp.ToolAuthorityno
longer takes or storesusedExplicitToolsets; drop the argument. (#93) -
This package's own test run must be started with
Scripts/swift-test, which
takesswift test's arguments. It removesTMUX,TMUX_PANEand every
LIBTMUX_SOCKET*variable, gives the run a privateTMUX_TMPDIRunder
/tmp/libtmux-swift-test/, and stops any tmux server the run left behind,
failing the run when it finds one. A bareswift testof this package is
refused by the first fixture it reaches. A package that depends on
TmuxFixtureis held to the same rules only when its run sets
LIBTMUX_TEST_SANDBOX, as the script does. (#92) -
tmuxExecutablePath()inTmuxFixturetakesLIBTMUX_TMUX_BIN, then the
firsttmuxonPATH, then/usr/bin/tmux,/usr/local/bin/tmuxand
/opt/homebrew/bin/tmux. It used to skipPATHand take the first of those
three, so a suite started without the variable tested/usr/bin/tmuxeven
when a newertmuxcame first onPATH, and cases that need a newer tmux
skipped. A bare name in the variable is now searched for onPATH, as
Serversearches for itstmuxExecutable. SetLIBTMUX_TMUX_BINto keep
testing one binary. (#96) -
JSON layouts (
layout-json) require tmux 3.8, the first release that
accepts one.Server.selectLayout(_:_:),Server.validateLayouts(_:)and
the MCPselect_layouttool refuse one on an older tmux before the layout
command is sent. A version probe may run first. The refusal names tmux 3.8
as the minimum; upgrade to tmux 3.8 to apply a JSON layout.A raw
select-layout, including one sent over aControlSession, now
refuses a JSON layout before it is sent on tmux below 3.8, and a malformed
{operand on tmux 3.4 through versions below 3.8; tmux used to reject
both after the send. (#82) -
CI tests tmux 3.3a and 3.8 on a push and a pull request. A tag, which is a
release, and aworkflow_dispatchwithscope: fulltest every release
from 3.3a through 3.8, the pinned master and the refusal lanes. A dispatch
also takestmux-ref(a release, tag, branch or commit),swiftand
tmate, and therequiredjob reports whether every planned job passed.
(#89)