@wrongstack/acp 1.0.1 → 1.0.3
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 +7 -4
- package/dist/index.js +7 -4
- package/package.json +2 -2
package/dist/client.js
CHANGED
|
@@ -620,7 +620,7 @@ async function authorizeAcpCallback(permissionPolicy, partial, callbackOptions)
|
|
|
620
620
|
title: partial.title,
|
|
621
621
|
kind: partial.kind,
|
|
622
622
|
status: "pending",
|
|
623
|
-
|
|
623
|
+
rawInput: partial.rawInput
|
|
624
624
|
},
|
|
625
625
|
options: [
|
|
626
626
|
{ optionId: "allow", name: "Allow", kind: "allow_once" },
|
|
@@ -1489,7 +1489,7 @@ var WebSocketClientTransport = class {
|
|
|
1489
1489
|
if (pending === null) return;
|
|
1490
1490
|
this.pendingStart = null;
|
|
1491
1491
|
this.closed = true;
|
|
1492
|
-
|
|
1492
|
+
this.ws = null;
|
|
1493
1493
|
this.handlers.clear();
|
|
1494
1494
|
try {
|
|
1495
1495
|
ws.close();
|
|
@@ -1513,7 +1513,7 @@ var WebSocketClientTransport = class {
|
|
|
1513
1513
|
}
|
|
1514
1514
|
this.pendingStart = null;
|
|
1515
1515
|
this.closed = true;
|
|
1516
|
-
|
|
1516
|
+
this.ws = null;
|
|
1517
1517
|
this.handlers.clear();
|
|
1518
1518
|
clearTimeout(pending.timer);
|
|
1519
1519
|
const message = ev && typeof ev === "object" && "message" in ev ? String(ev.message) : "WebSocket error";
|
|
@@ -1848,9 +1848,12 @@ var ACPSession = class _ACPSession {
|
|
|
1848
1848
|
// Session management delegation
|
|
1849
1849
|
// ──────────────────────────────────────────────────────────────────────
|
|
1850
1850
|
opContext() {
|
|
1851
|
+
const self = this;
|
|
1851
1852
|
return {
|
|
1852
1853
|
closed: this.closed,
|
|
1853
|
-
sessionId
|
|
1854
|
+
get sessionId() {
|
|
1855
|
+
return self.sessionId;
|
|
1856
|
+
},
|
|
1854
1857
|
agentCapabilities: this.agentCapabilities,
|
|
1855
1858
|
opts: this.opts,
|
|
1856
1859
|
allocId: () => this.allocId(),
|
package/dist/index.js
CHANGED
|
@@ -1937,7 +1937,7 @@ async function authorizeAcpCallback(permissionPolicy, partial, callbackOptions)
|
|
|
1937
1937
|
title: partial.title,
|
|
1938
1938
|
kind: partial.kind,
|
|
1939
1939
|
status: "pending",
|
|
1940
|
-
|
|
1940
|
+
rawInput: partial.rawInput
|
|
1941
1941
|
},
|
|
1942
1942
|
options: [
|
|
1943
1943
|
{ optionId: "allow", name: "Allow", kind: "allow_once" },
|
|
@@ -2806,7 +2806,7 @@ var WebSocketClientTransport = class {
|
|
|
2806
2806
|
if (pending === null) return;
|
|
2807
2807
|
this.pendingStart = null;
|
|
2808
2808
|
this.closed = true;
|
|
2809
|
-
|
|
2809
|
+
this.ws = null;
|
|
2810
2810
|
this.handlers.clear();
|
|
2811
2811
|
try {
|
|
2812
2812
|
ws.close();
|
|
@@ -2830,7 +2830,7 @@ var WebSocketClientTransport = class {
|
|
|
2830
2830
|
}
|
|
2831
2831
|
this.pendingStart = null;
|
|
2832
2832
|
this.closed = true;
|
|
2833
|
-
|
|
2833
|
+
this.ws = null;
|
|
2834
2834
|
this.handlers.clear();
|
|
2835
2835
|
clearTimeout(pending.timer);
|
|
2836
2836
|
const message = ev && typeof ev === "object" && "message" in ev ? String(ev.message) : "WebSocket error";
|
|
@@ -3165,9 +3165,12 @@ var ACPSession = class _ACPSession {
|
|
|
3165
3165
|
// Session management delegation
|
|
3166
3166
|
// ──────────────────────────────────────────────────────────────────────
|
|
3167
3167
|
opContext() {
|
|
3168
|
+
const self = this;
|
|
3168
3169
|
return {
|
|
3169
3170
|
closed: this.closed,
|
|
3170
|
-
sessionId
|
|
3171
|
+
get sessionId() {
|
|
3172
|
+
return self.sessionId;
|
|
3173
|
+
},
|
|
3171
3174
|
agentCapabilities: this.agentCapabilities,
|
|
3172
3175
|
opts: this.opts,
|
|
3173
3176
|
allocId: () => this.allocId(),
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@wrongstack/acp",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.3",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"description": "ACP (Agent Client Protocol) integration for WrongStack — client + agent support",
|
|
6
6
|
"keywords": [
|
|
@@ -52,7 +52,7 @@
|
|
|
52
52
|
],
|
|
53
53
|
"dependencies": {
|
|
54
54
|
"@agentclientprotocol/sdk": "^1.4.0",
|
|
55
|
-
"@wrongstack/core": "1.0.
|
|
55
|
+
"@wrongstack/core": "1.0.3"
|
|
56
56
|
},
|
|
57
57
|
"devDependencies": {
|
|
58
58
|
"@types/node": "^26.2.0",
|