@dmsdc-ai/aigentry-telepty 0.1.77 → 0.1.78

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 (3) hide show
  1. package/cli.js +1 -1
  2. package/daemon.js +3 -15
  3. package/package.json +1 -1
package/cli.js CHANGED
@@ -1521,7 +1521,7 @@ async function main() {
1521
1521
  const submitRes = await fetchWithAuth(`http://${target.host}:${PORT}/api/sessions/${encodeURIComponent(target.id)}/submit`, {
1522
1522
  method: 'POST',
1523
1523
  headers: { 'Content-Type': 'application/json' },
1524
- body: JSON.stringify({ pre_delay_ms: 200, retries: 2, retry_delay_ms: 500 })
1524
+ body: JSON.stringify({ pre_delay_ms: 600, retries: 2, retry_delay_ms: 500 })
1525
1525
  });
1526
1526
  const submitData = await submitRes.json();
1527
1527
  if (submitRes.ok) {
package/daemon.js CHANGED
@@ -1175,28 +1175,16 @@ app.post('/api/sessions/:id/submit', async (req, res) => {
1175
1175
  const retryDelayMs = Math.min(Math.max(Number(req.body?.retry_delay_ms) || 500, 100), 2000);
1176
1176
  const preDelayMs = Math.min(Math.max(Number(req.body?.pre_delay_ms) || 0, 0), 1000);
1177
1177
 
1178
- const strategy = getSubmitStrategy(session.command);
1178
+ const strategy = 'pty_cr';
1179
1179
  console.log(`[SUBMIT] Session ${id} (${session.command}) strategy: ${strategy}${retries > 0 ? `, retries: ${retries}, pre_delay: ${preDelayMs}ms` : ''}`);
1180
1180
 
1181
- // Pre-delay: wait for paste processing to complete before sending CR
1181
+ // Pre-delay: wait for paste rendering to complete before sending CR
1182
1182
  if (preDelayMs > 0) {
1183
1183
  await new Promise(resolve => setTimeout(resolve, preDelayMs));
1184
1184
  }
1185
1185
 
1186
1186
  function executeSubmit() {
1187
- // cmux per-session backend
1188
- if (session.backend === 'cmux') {
1189
- if (terminalBackend.cmuxSendEnter(id)) return true;
1190
- }
1191
- if (session.backend === 'cmux' && session.cmuxWorkspaceId) {
1192
- if (submitViaCmux(id)) return true;
1193
- }
1194
- if (strategy === 'pty_cr') {
1195
- return submitViaPty(session);
1196
- } else if (strategy === 'osascript_cmd_enter') {
1197
- return submitViaOsascript(id, 'cmd_enter');
1198
- }
1199
- return submitViaPty(session); // fallback
1187
+ return submitViaPty(session);
1200
1188
  }
1201
1189
 
1202
1190
  let success = executeSubmit();
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dmsdc-ai/aigentry-telepty",
3
- "version": "0.1.77",
3
+ "version": "0.1.78",
4
4
  "main": "daemon.js",
5
5
  "bin": {
6
6
  "aigentry-telepty": "install.js",