@fitchmultz/pi-subagents 0.52.3 → 0.52.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
|
@@ -2,6 +2,12 @@
|
|
|
2
2
|
|
|
3
3
|
## [Unreleased]
|
|
4
4
|
|
|
5
|
+
## [0.52.4] - 2026-10-29
|
|
6
|
+
|
|
7
|
+
### Fixed
|
|
8
|
+
|
|
9
|
+
- Classify a certificate-selected bridge session deadline as `certificate_expired`, rather than idle-lease expiry, if the timer fires just before the wall-clock deadline. The timer rechecks without renewing the idle lease; depending on the connection-expiry race, a client can still see a connection reset.
|
|
10
|
+
|
|
5
11
|
## [0.52.3] - 2026-10-29
|
|
6
12
|
|
|
7
13
|
### Fixed
|
package/dist/build-info.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export const EXTENSION_BUILD = Object.freeze({"version":"0.52.
|
|
1
|
+
export const EXTENSION_BUILD = Object.freeze({"version":"0.52.4","sha256":"d8c708fa06701cc0d5f8770cc729ba6fa204bdc8f76c5f06f5aa9cc3e37b3cc9"});
|
|
@@ -63,9 +63,22 @@ export class Session {
|
|
|
63
63
|
}
|
|
64
64
|
touch() {
|
|
65
65
|
clearTimeout(this.lease);
|
|
66
|
-
this.
|
|
67
|
-
|
|
68
|
-
|
|
66
|
+
this.armLease(IDLE_TIMEOUT);
|
|
67
|
+
}
|
|
68
|
+
armLease(idle) {
|
|
69
|
+
const due = Math.max(1, Math.min(idle, this.expires - Date.now()));
|
|
70
|
+
this.lease = setTimeout(() => {
|
|
71
|
+
if (this.expires <= Date.now()) {
|
|
72
|
+
this.close(new Fault(403, "certificate_expired", "Client certificate expired."));
|
|
73
|
+
}
|
|
74
|
+
else if (due < idle) {
|
|
75
|
+
// Node can fire before Date.now() reaches the certificate deadline; keep the idle budget.
|
|
76
|
+
this.armLease(idle - due);
|
|
77
|
+
}
|
|
78
|
+
else {
|
|
79
|
+
this.close(new Fault(410, "lease_expired", "Bridge session idle lease expired."));
|
|
80
|
+
}
|
|
81
|
+
}, due);
|
|
69
82
|
}
|
|
70
83
|
begin() {
|
|
71
84
|
this.guard();
|
package/package.json
CHANGED
|
@@ -87,15 +87,20 @@ export class Session {
|
|
|
87
87
|
}
|
|
88
88
|
private touch(): void {
|
|
89
89
|
clearTimeout(this.lease);
|
|
90
|
-
this.
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
)
|
|
97
|
-
|
|
98
|
-
|
|
90
|
+
this.armLease(IDLE_TIMEOUT);
|
|
91
|
+
}
|
|
92
|
+
private armLease(idle: number): void {
|
|
93
|
+
const due = Math.max(1, Math.min(idle, this.expires - Date.now()));
|
|
94
|
+
this.lease = setTimeout(() => {
|
|
95
|
+
if (this.expires <= Date.now()) {
|
|
96
|
+
this.close(new Fault(403, "certificate_expired", "Client certificate expired."));
|
|
97
|
+
} else if (due < idle) {
|
|
98
|
+
// Node can fire before Date.now() reaches the certificate deadline; keep the idle budget.
|
|
99
|
+
this.armLease(idle - due);
|
|
100
|
+
} else {
|
|
101
|
+
this.close(new Fault(410, "lease_expired", "Bridge session idle lease expired."));
|
|
102
|
+
}
|
|
103
|
+
}, due);
|
|
99
104
|
}
|
|
100
105
|
begin(): AbortController {
|
|
101
106
|
this.guard();
|