claude-tmux 1.0.7 → 1.0.8

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.
Files changed (2) hide show
  1. package/dist/index.js +4 -6
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -53,17 +53,16 @@ async function waitForIdle(session) {
53
53
  const timeout = 600000; // 10 minutes
54
54
  const lines = 100; // Capture more lines to catch done signal
55
55
  const startTime = Date.now();
56
- let lastOutput = "";
57
56
  let idleCount = 0;
57
+ let output = "";
58
58
  // Initial delay to let Claude start working
59
59
  await sleep(5000);
60
60
  while (Date.now() - startTime < timeout) {
61
61
  await sleep(2000);
62
62
  try {
63
- const output = runTmux(`capture-pane -t "${session}" -p -S -${lines}`);
63
+ output = runTmux(`capture-pane -t "${session}" -p -S -${lines}`);
64
64
  // If busy, reset idle count and continue polling
65
65
  if (isBusy(output)) {
66
- lastOutput = output;
67
66
  idleCount = 0;
68
67
  continue;
69
68
  }
@@ -77,17 +76,16 @@ async function waitForIdle(session) {
77
76
  if (idleCount >= 2) {
78
77
  return filterUIChrome(output);
79
78
  }
80
- lastOutput = output;
81
79
  }
82
80
  catch (e) {
83
81
  return `Error: ${e.message}`;
84
82
  }
85
83
  }
86
- return `Timeout after 10 minutes. Session still running.\n\n${filterUIChrome(lastOutput)}`;
84
+ return `Timeout after 10 minutes. Session still running.\n\n${filterUIChrome(output)}`;
87
85
  }
88
86
  const server = new McpServer({
89
87
  name: "claude-tmux",
90
- version: "1.0.7",
88
+ version: "1.0.8",
91
89
  }, {
92
90
  instructions: `# claude-tmux: Autonomous Claude Agents
93
91
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "claude-tmux",
3
- "version": "1.0.7",
3
+ "version": "1.0.8",
4
4
  "description": "MCP server for orchestrating multiple Claude Code instances via tmux",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",