@dmsdc-ai/aigentry-telepty 0.1.55 → 0.1.56

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 +4 -4
  2. package/package.json +1 -1
package/daemon.js CHANGED
@@ -589,7 +589,7 @@ function sendViaKitty(sessionId, text) {
589
589
  }
590
590
 
591
591
  try {
592
- // Split text and CR — send-text for content, send-key for Enter
592
+ // Split text and CR — send-text for both (send-key corrupts keyboard protocol)
593
593
  const hasCr = text.endsWith('\r') || text.endsWith('\n');
594
594
  const textOnly = hasCr ? text.slice(0, -1) : text;
595
595
  if (textOnly.length > 0) {
@@ -601,7 +601,7 @@ function sendViaKitty(sessionId, text) {
601
601
  if (hasCr) {
602
602
  // Delay before sending Return — CLI needs time to process text input
603
603
  execSync('sleep 0.5', { timeout: 2000 });
604
- execSync(`kitty @ --to unix:${socket} send-key --match id:${windowId} Return`, {
604
+ execSync(`kitty @ --to unix:${socket} send-text --match id:${windowId} $'\\r'`, {
605
605
  timeout: 3000, stdio: ['pipe', 'pipe', 'pipe']
606
606
  });
607
607
  }
@@ -797,7 +797,7 @@ app.post('/api/sessions/:id/inject', (req, res) => {
797
797
  setTimeout(() => {
798
798
  if (wid && sock) {
799
799
  try {
800
- require('child_process').execSync(`kitty @ --to unix:${sock} send-key --match id:${wid} Return`, {
800
+ require('child_process').execSync(`kitty @ --to unix:${sock} send-text --match id:${wid} $'\\r'`, {
801
801
  timeout: 3000, stdio: ['pipe', 'pipe', 'pipe']
802
802
  });
803
803
  require('child_process').execSync(`kitty @ --to unix:${sock} set-tab-title --match id:${wid} '⚡ telepty :: ${id}'`, {
@@ -970,7 +970,7 @@ function busAutoRoute(msg) {
970
970
  });
971
971
  setTimeout(() => {
972
972
  try {
973
- require('child_process').execSync(`kitty @ --to unix:${sock} send-key --match id:${wid} Return`, {
973
+ require('child_process').execSync(`kitty @ --to unix:${sock} send-text --match id:${wid} $'\\r'`, {
974
974
  timeout: 3000, stdio: ['pipe', 'pipe', 'pipe']
975
975
  });
976
976
  } catch {}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dmsdc-ai/aigentry-telepty",
3
- "version": "0.1.55",
3
+ "version": "0.1.56",
4
4
  "main": "daemon.js",
5
5
  "bin": {
6
6
  "aigentry-telepty": "install.js",