@arearseth/tmux-mcp 0.3.0 → 0.3.1

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/build/tmux.js +1 -10
  2. package/package.json +1 -1
package/build/tmux.js CHANGED
@@ -324,16 +324,7 @@ function buildWrappedCommand(command, shellType) {
324
324
  return `echo "${startMarkerText}"; ${command}; echo "${endMarkerText}"`;
325
325
  }
326
326
  function buildTclshCommand(command) {
327
- const escaped = escapeForTcl(command);
328
- return `::tmux_mcp::run {${escaped}}`;
329
- }
330
- function escapeForTcl(command) {
331
- return command
332
- .replace(/\\/g, '\\\\')
333
- .replace(/\r/g, '\\r')
334
- .replace(/\n/g, '\\n')
335
- .replace(/\{/g, '\\{')
336
- .replace(/\}/g, '\\}');
327
+ return `::tmux_mcp::run {${command}}`;
337
328
  }
338
329
  async function ensureTclshInitialized(paneId) {
339
330
  if (tclshInitializedPanes.has(paneId)) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@arearseth/tmux-mcp",
3
- "version": "0.3.0",
3
+ "version": "0.3.1",
4
4
  "description": "MCP Server for interfacing with tmux sessions",
5
5
  "type": "module",
6
6
  "main": "build/index.js",