mux-sesh 1.9.8 → 1.9.9

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -20,7 +20,7 @@ Fast tmux session and Herdr workspace switching from a polished terminal UI.
20
20
  Prerequisites:
21
21
 
22
22
  - [Bun](https://bun.sh)
23
- - [tmux](https://github.com/tmux/tmux/wiki) or Herdr 0.7.5
23
+ - [tmux](https://github.com/tmux/tmux/wiki) or Herdr 0.7.5 or newer
24
24
  - [git](https://git-scm.com) for cloning GitHub repositories from the new-session flow
25
25
 
26
26
  Install globally:
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "$schema": "https://json.schemastore.org/package.json",
3
3
  "name": "mux-sesh",
4
- "version": "1.9.8",
4
+ "version": "1.9.9",
5
5
  "description": "An OpenTUI manager for tmux sessions and Herdr workspaces with fuzzy project search",
6
6
  "type": "module",
7
7
  "packageManager": "bun@1.3.14",
@@ -76,7 +76,7 @@ export interface HerdrStatus {
76
76
  protocol?: number
77
77
  }
78
78
 
79
- export const SUPPORTED_HERDR_PROTOCOL = 17
79
+ export const MIN_SUPPORTED_HERDR_PROTOCOL = 17
80
80
 
81
81
  function isRecord(value: unknown): value is Record<string, unknown> {
82
82
  return typeof value === 'object' && value !== null && !Array.isArray(value)
@@ -26,7 +26,7 @@ export async function resolveMultiplexerBackend(
26
26
  if (herdr.compatible !== true) {
27
27
  throw new MultiplexerError(
28
28
  'protocol-mismatch',
29
- 'The active Herdr client and server are not compatible with mux-sesh. Herdr 0.7.5 protocol 17 is required.'
29
+ 'The active Herdr client and server are not compatible with mux-sesh. Herdr 0.7.5 or newer with protocol 17 or newer is required.'
30
30
  )
31
31
  }
32
32
  return createHerdrBackend({ runner, insideHerdr: true })
@@ -1,6 +1,6 @@
1
1
  import { MultiplexerError, type BackendKind, type BackendPreference } from './types'
2
2
  import type { CommandRunner } from './command'
3
- import { parseHerdrStatus, SUPPORTED_HERDR_PROTOCOL } from '../herdr/protocol'
3
+ import { MIN_SUPPORTED_HERDR_PROTOCOL, parseHerdrStatus } from '../herdr/protocol'
4
4
 
5
5
  export interface BackendState {
6
6
  installed: boolean
@@ -22,7 +22,10 @@ export async function probeHerdrAvailability(runner: CommandRunner): Promise<Bac
22
22
  return {
23
23
  installed: true,
24
24
  running: status.running,
25
- compatible: status.compatible === true && status.protocol === SUPPORTED_HERDR_PROTOCOL,
25
+ compatible:
26
+ status.compatible === true &&
27
+ status.protocol !== undefined &&
28
+ status.protocol >= MIN_SUPPORTED_HERDR_PROTOCOL,
26
29
  }
27
30
  }
28
31