pty-manager 1.9.4 → 1.9.5

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.
@@ -2042,9 +2042,10 @@ function handleResize(id, cols, rows) {
2042
2042
  ack("resize", id, false, err instanceof Error ? err.message : String(err));
2043
2043
  }
2044
2044
  }
2045
- async function handleKill(id) {
2045
+ async function handleKill(id, signal) {
2046
2046
  try {
2047
- await manager.stop(id);
2047
+ const force = signal === "SIGKILL";
2048
+ await manager.stop(id, force ? { force: true } : void 0);
2048
2049
  ack("kill", id, true);
2049
2050
  } catch (err) {
2050
2051
  ack("kill", id, false, err instanceof Error ? err.message : String(err));
@@ -2254,7 +2255,7 @@ function processCommand(line) {
2254
2255
  ack("kill", command.id, false, "Missing id");
2255
2256
  return;
2256
2257
  }
2257
- handleKill(command.id);
2258
+ handleKill(command.id, command.signal);
2258
2259
  break;
2259
2260
  case "list":
2260
2261
  handleList();
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "pty-manager",
3
- "version": "1.9.4",
3
+ "version": "1.9.5",
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",