pi-antigravity-bridge 0.1.3 → 0.1.4
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/CHANGELOG.md
CHANGED
package/package.json
CHANGED
|
@@ -23,7 +23,7 @@ import {
|
|
|
23
23
|
|
|
24
24
|
export const BRIDGE_AGENT_NAME = "pi-bridge";
|
|
25
25
|
export const CLIENT_INFO_NAME = "pi-antigravity-bridge";
|
|
26
|
-
export const CLIENT_INFO_VERSION = "0.1.
|
|
26
|
+
export const CLIENT_INFO_VERSION = "0.1.4";
|
|
27
27
|
|
|
28
28
|
export class AcpRpcError extends Error {
|
|
29
29
|
readonly code: number;
|
|
@@ -1340,6 +1340,12 @@ export class TurnCoordinator {
|
|
|
1340
1340
|
}
|
|
1341
1341
|
|
|
1342
1342
|
await this.syncSessionModelAndMode(ledger, model, options);
|
|
1343
|
+
if (options?.signal?.aborted || writer.isTerminated) {
|
|
1344
|
+
if (!writer.isTerminated) {
|
|
1345
|
+
writer.fail("aborted", "Request aborted by user");
|
|
1346
|
+
}
|
|
1347
|
+
return;
|
|
1348
|
+
}
|
|
1343
1349
|
|
|
1344
1350
|
writer.setResponseMetadata({
|
|
1345
1351
|
responseId: ledger.agySessionId,
|
|
@@ -1362,6 +1368,13 @@ export class TurnCoordinator {
|
|
|
1362
1368
|
}
|
|
1363
1369
|
}
|
|
1364
1370
|
|
|
1371
|
+
if (options?.signal?.aborted || writer.isTerminated) {
|
|
1372
|
+
if (!writer.isTerminated) {
|
|
1373
|
+
writer.fail("aborted", "Request aborted by user");
|
|
1374
|
+
}
|
|
1375
|
+
return;
|
|
1376
|
+
}
|
|
1377
|
+
|
|
1365
1378
|
const pump: ActiveTurnPump = {
|
|
1366
1379
|
queue: new AsyncEventQueue<PumpQueueItem>(),
|
|
1367
1380
|
finished: false,
|