@cliphijack/santaclaude 1.0.2 → 1.0.3
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/package.json +1 -1
- package/santaclaude.js +2 -1
package/package.json
CHANGED
package/santaclaude.js
CHANGED
|
@@ -270,7 +270,7 @@ async function run(conf) {
|
|
|
270
270
|
process.on('SIGINT', () => { clearInterval(hbIv); clearInterval(scrIv); clearInterval(scanIv); try { ws && ws.close(); } catch (e) {} console.log('\n🛷 커넥터 종료. 너의 루돌프들은 자러 간다.'); process.exit(0); });
|
|
271
271
|
} else {
|
|
272
272
|
console.log(` ℹ️ 이 node는 WebSocket(21+) 미지원 — 폴링 모드로 동작 (DO 백엔드라 KV write 0 동일, 발사 ±${Math.round(every / 1000)}초). node 21+ 쓰면 자동 WebSocket.`);
|
|
273
|
-
await pollTick(); const pollIv = setInterval(pollTick, every);
|
|
273
|
+
await pollTick(); const pollIv = setInterval(pollTick, Math.max(every, 60000)); // 폴백은 최소 60초(서버 부담↓, 비실시간 유저라 OK)
|
|
274
274
|
process.on('SIGINT', () => { clearInterval(pollIv); clearInterval(scanIv); console.log('\n🛷 커넥터 종료. 너의 루돌프들은 자러 간다.'); process.exit(0); });
|
|
275
275
|
}
|
|
276
276
|
}
|
|
@@ -285,6 +285,7 @@ async function main() {
|
|
|
285
285
|
const conf = { token, pane, api: a.api || DEFAULT_API, every: a.every ? Number(a.every) : 20 };
|
|
286
286
|
if (a['no-spawn']) conf.spawn = false;
|
|
287
287
|
if (a['claude-cmd']) conf.claudeCmd = a['claude-cmd'];
|
|
288
|
+
if (a.publisher) conf.publisher = String(a.publisher).replace(/[^a-zA-Z0-9-]/g, '').toLowerCase(); // 마켓 publisher
|
|
288
289
|
saveConf(conf);
|
|
289
290
|
console.log(`✅ 페어링 저장 → ${CONF}`);
|
|
290
291
|
return run(conf);
|