@dmsdc-ai/aigentry-telepty 0.1.34 → 0.1.36

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/daemon.js +7 -1
  2. package/package.json +1 -1
package/daemon.js CHANGED
@@ -461,10 +461,12 @@ function sendViaKitty(sessionId, text) {
461
461
  if (textOnly.length > 0) {
462
462
  const escaped = textOnly.replace(/\\/g, '\\\\').replace(/'/g, "'\\''");
463
463
  execSync(`kitty @ --to unix:${socket} send-text --match id:${windowId} '${escaped}'`, {
464
- timeout: 3000, stdio: ['pipe', 'pipe', 'pipe']
464
+ timeout: 5000, stdio: ['pipe', 'pipe', 'pipe']
465
465
  });
466
466
  }
467
467
  if (hasCr) {
468
+ // Delay before sending Return — CLI needs time to process text input
469
+ execSync('sleep 0.5', { timeout: 2000 });
468
470
  execSync(`kitty @ --to unix:${socket} send-key --match id:${windowId} Return`, {
469
471
  timeout: 3000, stdio: ['pipe', 'pipe', 'pipe']
470
472
  });
@@ -608,6 +610,10 @@ app.post('/api/sessions/:id/inject', (req, res) => {
608
610
  if (from && !prompt.startsWith('[from:')) {
609
611
  finalPrompt = `[from: ${from}] [reply-to: ${reply_to}] ${prompt}`;
610
612
  }
613
+ // Append reply guide when reply_to is set (self-contained reply instructions)
614
+ if (reply_to && reply_to !== id) {
615
+ finalPrompt += `\n\n---\n[reply-to: ${reply_to}] 위 세션에 회신이 필요합니다. 답변 시 아래 명령을 실행하세요:\ntelepty inject --from ${id} ${reply_to} "답변 내용"\n---`;
616
+ }
611
617
  const inject_id = crypto.randomUUID();
612
618
  try {
613
619
  // Always inject text WITHOUT \r first, then send \r separately after delay
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dmsdc-ai/aigentry-telepty",
3
- "version": "0.1.34",
3
+ "version": "0.1.36",
4
4
  "main": "daemon.js",
5
5
  "bin": {
6
6
  "aigentry-telepty": "install.js",