@cplieger/web-terminal-engine 6.2.0-dev.3 → 6.2.0-dev.5

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 CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cplieger/web-terminal-engine",
3
- "version": "6.2.0-dev.3",
3
+ "version": "6.2.0-dev.5",
4
4
  "license": "MPL-2.0",
5
5
  "exports": {
6
6
  ".": "./src/index.ts"
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cplieger/web-terminal-engine",
3
- "version": "6.2.0-dev.3",
3
+ "version": "6.2.0-dev.5",
4
4
  "type": "module",
5
5
  "scripts": {
6
6
  "typecheck": "tsc -p tsconfig.json",
@@ -27,12 +27,12 @@
27
27
  "esbuild": "0.28.2",
28
28
  "eslint": "10.12.0",
29
29
  "fast-check": "4.10.2",
30
- "knip": "6.39.0",
30
+ "knip": "6.40.0",
31
31
  "playwright": "1.63.0",
32
32
  "pngjs": "7.0.0",
33
33
  "prettier": "3.9.9",
34
34
  "typescript": "npm:@typescript/typescript6@6.0.2",
35
- "typescript-eslint": "8.71.0",
35
+ "typescript-eslint": "8.71.1",
36
36
  "vitest": "5.0.3"
37
37
  },
38
38
  "overrides": {
@@ -8,15 +8,12 @@
8
8
  import { nextBackoffDelay } from "./reconnect.js";
9
9
 
10
10
  /** SessionInfo is one session's wire shape: the JSON object the session REST
11
- * API (GET/POST /api/sessions) returns per session. Mirrors the Go
12
- * terminal.SessionInfo — the two are kept in lockstep by hand (single 8-field
13
- * type; flip to wiregen if this surface grows).
11
+ * API (GET/POST /api/sessions) returns per session, kept in lockstep with the Go
12
+ * terminal.SessionInfo by hand.
14
13
  *
15
- * Three of the fields are title-shaped and they are not interchangeable:
16
- * `title` is the RESOLVED display title, `pinnedTitle` is the USER's name (set
17
- * and cleared only by a human action, outranking everything else), and
18
- * `clientTitle` is a CLIENT-DERIVED automatic title a client asked the server to
19
- * remember. */
14
+ * `title` is the RESOLVED display title, `pinnedTitle` the USER's name (set and
15
+ * cleared only by a human action, outranking everything else), and `clientTitle`
16
+ * a CLIENT-DERIVED automatic title a client asked the server to remember. */
20
17
  export interface SessionInfo {
21
18
  readonly id: string;
22
19
  /** the session's current status. "working"/"idle"/"exited"/"crashed" are
@@ -35,6 +32,13 @@ export interface SessionInfo {
35
32
  readonly status:
36
33
  "working" | "idle" | "input" | "done" | "exited" | "crashed" | "failed" | "warning";
37
34
  readonly title: string;
35
+ /** the session's short public name, safe to put in a URL: 1 to 64 characters
36
+ * of `[A-Za-z0-9_-]`, unique among live sessions, and NOT a capability
37
+ * (nothing attaches with it; only `id` does). The server mints a random one
38
+ * and a host may replace it (web-terminal-kiro sets the kiro-cli thread id).
39
+ * Absent from a server before 6.2 and from a status event carrying
40
+ * `removed`. Untrusted wire text: validate it before use. */
41
+ readonly alias?: string;
38
42
  /** the raw client-derived automatic title (before the precedence baked into
39
43
  * `title`); a consumer that treats the program's OSC window title as
40
44
  * unreliable reads this instead of `title`. */