@cplieger/web-terminal-engine 3.3.0 → 3.4.2
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/jsr.json +1 -1
- package/package.json +2 -2
- package/src/types.ts +3 -2
- package/src/wire.ts +1 -1
package/jsr.json
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@cplieger/web-terminal-engine",
|
|
3
|
-
"version": "3.
|
|
3
|
+
"version": "3.4.2",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"typecheck": "tsc -p tsconfig.json",
|
|
@@ -11,7 +11,7 @@
|
|
|
11
11
|
"devDependencies": {
|
|
12
12
|
"@cplieger/web-terminal-engine-v3": "npm:@cplieger/web-terminal-engine@2.8.0",
|
|
13
13
|
"@eslint/js": "10.0.1",
|
|
14
|
-
"@playwright/test": "1.62.
|
|
14
|
+
"@playwright/test": "1.62.1",
|
|
15
15
|
"@stryker-mutator/core": "9.6.1",
|
|
16
16
|
"@stryker-mutator/typescript-checker": "9.6.1",
|
|
17
17
|
"@stryker-mutator/vitest-runner": "9.6.1",
|
package/src/types.ts
CHANGED
|
@@ -115,7 +115,7 @@ export interface ResumeAckMessage {
|
|
|
115
115
|
* `onWireVersionMismatch` so the UI can offer a reload. Versions inside
|
|
116
116
|
* the range are normal pairings (a v3 server just means the socket stays
|
|
117
117
|
* in sentinel mode); a value >= 4 additionally triggers the typed-framing
|
|
118
|
-
* upgrade (
|
|
118
|
+
* upgrade (see WIRE_PROTOCOL_VERSION in wire-compatibility.ts).
|
|
119
119
|
*/
|
|
120
120
|
serverWireVersion?: number;
|
|
121
121
|
/**
|
|
@@ -232,7 +232,8 @@ export type ControlMessage =
|
|
|
232
232
|
}
|
|
233
233
|
| { type: "ping" }
|
|
234
234
|
/**
|
|
235
|
-
* v4 typed-framing transition (
|
|
235
|
+
* v4 typed-framing transition (see WIRE_PROTOCOL_VERSION in
|
|
236
|
+
* wire-compatibility.ts): the first
|
|
236
237
|
* TEXT message a client sends after the resumeAck proves the server speaks
|
|
237
238
|
* wire revision >= 4. Receiving it latches the server's connection to typed
|
|
238
239
|
* mode (text = control, binary = full-alphabet PTY input); otherwise a no-op.
|
package/src/wire.ts
CHANGED
|
@@ -13,7 +13,7 @@
|
|
|
13
13
|
// in v3 mode (sendInputFrames splits leading NULs into solitary frames), so
|
|
14
14
|
// in practice the reserved channel only ever carries real controls.
|
|
15
15
|
//
|
|
16
|
-
// v4 framing (
|
|
16
|
+
// v4 framing (see WIRE_PROTOCOL_VERSION in wire-compatibility.ts) retires the sentinel once a
|
|
17
17
|
// socket upgrades: control messages travel as WebSocket TEXT frames and
|
|
18
18
|
// binary frames are full-alphabet PTY input. This module's controlFrame stays
|
|
19
19
|
// the encoding for the v3 bootstrap (every socket's first resume) and for
|