@cliphijack/santaclaude 0.7.0 → 0.8.0

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 +6 -0
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cliphijack/santaclaude",
3
- "version": "0.7.0",
3
+ "version": "0.8.0",
4
4
  "publishConfig": { "access": "public" },
5
5
  "description": "SantaClaude 커넥터 — 클라우드 예약을 내 로컬 Claude(tmux)에 발사",
6
6
  "bin": { "santaclaude": "./santaclaude.js" },
package/santaclaude.js CHANGED
@@ -116,6 +116,12 @@ async function run(conf) {
116
116
  } else if (cmd.action === 'kill') {
117
117
  execFileSync('tmux', ['kill-window', '-t', session + ':' + cmd.name]);
118
118
  console.log(` 💤 루돌프 "${session}:${cmd.name}" 탭 닫음`);
119
+ } else if (cmd.action === 'input') {
120
+ // 웹에서 친 입력을 해당 탭(루돌프)에 주입 — 양방향 웹 터미널
121
+ const w = (cmd.name && windowExists(session, cmd.name)) ? (session + ':' + cmd.name) : pane;
122
+ execFileSync('tmux', ['send-keys', '-t', w, '-l', String(cmd.text || '')]);
123
+ setTimeout(() => { try { execFileSync('tmux', ['send-keys', '-t', w, 'Enter']); } catch (e) {} }, 300);
124
+ console.log(` ⌨️ 입력 → ${w}: ${String(cmd.text || '').slice(0, 50)}`);
119
125
  }
120
126
  } catch (e) { console.warn(` ⚠️ 제어 실패(${cmd.action} ${cmd.name}): ${e.message}`); }
121
127
  }