@cliphijack/santaclaude 1.0.5 → 1.0.6

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/package.json +1 -1
  2. package/santaclaude.js +5 -0
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cliphijack/santaclaude",
3
- "version": "1.0.5",
3
+ "version": "1.0.6",
4
4
  "publishConfig": { "access": "public" },
5
5
  "description": "SantaClaude 커넥터 — 클라우드 예약을 내 로컬 Claude(tmux)에 발사",
6
6
  "bin": { "santaclaude": "./santaclaude.js" },
package/santaclaude.js CHANGED
@@ -277,6 +277,11 @@ async function run(conf) {
277
277
  const w = (cmd.name && windowExists(session, cmd.name)) ? (session + ':' + cmd.name) : pane;
278
278
  execFileSync('tmux', ['send-keys', '-t', w, String(cmd.key || '')]);
279
279
  console.log(` ⌨️ 키 → ${w}: ${cmd.key}`);
280
+ } else if (cmd.action === 'resize') {
281
+ // 웹 뷰어 폭에 맞춰 tmux 윈도우 리사이즈 — claude TUI가 그 폭으로 reflow(모바일 가로스크롤 해소)
282
+ const w = (cmd.name && windowExists(session, cmd.name)) ? (session + ':' + cmd.name) : pane;
283
+ const cols = Math.max(20, Math.min(400, parseInt(cmd.cols) || 0)), rows = Math.max(10, Math.min(200, parseInt(cmd.rows) || 0));
284
+ if (cols && rows) { try { execFileSync('tmux', ['resize-window', '-t', w, '-x', String(cols), '-y', String(rows)]); console.log(` 📐 리사이즈 ${w} → ${cols}x${rows}`); } catch (e) {} }
280
285
  }
281
286
  } catch (e) { console.warn(` ⚠️ 제어 실패(${cmd.action} ${cmd.name}): ${e.message}`); }
282
287
  }