@wrongstack/acp 1.0.17 → 1.0.19

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.
package/dist/client.js CHANGED
@@ -1127,7 +1127,9 @@ var TerminalServer = class {
1127
1127
  this.instanceId = `term_srv_${randomBytes2(4).toString("hex")}`;
1128
1128
  this.maxTerminals = this.clampFiniteInt(opts.maxTerminals, 32);
1129
1129
  this.abortSignal = opts.signal;
1130
- if (opts.signal) {
1130
+ if (opts.signal?.aborted) {
1131
+ this.dispose();
1132
+ } else if (opts.signal) {
1131
1133
  opts.signal.addEventListener("abort", this.abortHandler, { once: true });
1132
1134
  }
1133
1135
  }
package/dist/index.js CHANGED
@@ -2536,7 +2536,9 @@ var TerminalServer = class {
2536
2536
  this.instanceId = `term_srv_${randomBytes2(4).toString("hex")}`;
2537
2537
  this.maxTerminals = this.clampFiniteInt(opts.maxTerminals, 32);
2538
2538
  this.abortSignal = opts.signal;
2539
- if (opts.signal) {
2539
+ if (opts.signal?.aborted) {
2540
+ this.dispose();
2541
+ } else if (opts.signal) {
2540
2542
  opts.signal.addEventListener("abort", this.abortHandler, { once: true });
2541
2543
  }
2542
2544
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@wrongstack/acp",
3
- "version": "1.0.17",
3
+ "version": "1.0.19",
4
4
  "license": "MIT",
5
5
  "description": "ACP (Agent Client Protocol) integration for WrongStack — client + agent support",
6
6
  "keywords": [
@@ -52,8 +52,8 @@
52
52
  ],
53
53
  "dependencies": {
54
54
  "@agentclientprotocol/sdk": "^1.4.0",
55
- "@wrongstack/core": "1.0.17",
56
- "@wrongstack/primitives": "1.0.17"
55
+ "@wrongstack/core": "1.0.19",
56
+ "@wrongstack/primitives": "1.0.19"
57
57
  },
58
58
  "devDependencies": {
59
59
  "@types/node": "^26.5.1",