pty-manager 1.2.9 → 1.2.10

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.
@@ -1245,12 +1245,7 @@ async function handleSpawn(id, config) {
1245
1245
  }
1246
1246
  function handleSend(id, data) {
1247
1247
  try {
1248
- const attachment = attachments.get(id);
1249
- if (!attachment) {
1250
- ack("send", id, false, `Session ${id} not found or not attached`);
1251
- return;
1252
- }
1253
- attachment.write(data);
1248
+ manager.send(id, data);
1254
1249
  ack("send", id, true);
1255
1250
  } catch (err) {
1256
1251
  ack("send", id, false, err instanceof Error ? err.message : String(err));
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "pty-manager",
3
- "version": "1.2.9",
3
+ "version": "1.2.10",
4
4
  "description": "PTY session manager with lifecycle management, pluggable adapters, and blocking prompt detection",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.mjs",