@cplieger/web-terminal-engine 6.4.0-dev.3 → 6.4.0-dev.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/jsr.json +1 -1
- package/package.json +2 -2
- package/src/status-stream.ts +9 -0
package/jsr.json
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@cplieger/web-terminal-engine",
|
|
3
|
-
"version": "6.4.0-dev.
|
|
3
|
+
"version": "6.4.0-dev.4",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"typecheck": "tsc -p tsconfig.json",
|
|
@@ -30,7 +30,7 @@
|
|
|
30
30
|
"knip": "6.41.0",
|
|
31
31
|
"playwright": "1.64.0",
|
|
32
32
|
"pngjs": "7.0.0",
|
|
33
|
-
"prettier": "3.9.
|
|
33
|
+
"prettier": "3.9.10",
|
|
34
34
|
"typescript": "npm:@typescript/typescript6@6.0.2",
|
|
35
35
|
"typescript-eslint": "8.71.1",
|
|
36
36
|
"vitest": "5.0.4"
|
package/src/status-stream.ts
CHANGED
|
@@ -93,6 +93,15 @@ export interface SessionInfo {
|
|
|
93
93
|
/** how many sources produced `activity`: >= 1 whenever `activity` is non-empty,
|
|
94
94
|
* 0 when it is empty or the host does not count them. */
|
|
95
95
|
readonly activityCount?: number;
|
|
96
|
+
/** numbers the occurrence of `status`: it rises by one each time the status
|
|
97
|
+
* changes or a fresh notification re-latches it, and never falls for one id.
|
|
98
|
+
* Absent (or 0) means nothing numbered yet, including from an older server. */
|
|
99
|
+
readonly statusSeq?: number;
|
|
100
|
+
/** the highest `statusSeq` any reader acknowledged through
|
|
101
|
+
* `PUT /api/sessions/{id}/seen`. Never falls for one id and never exceeds
|
|
102
|
+
* `statusSeq`; a status that calls for attention is unread while
|
|
103
|
+
* `statusSeq > seenSeq`. */
|
|
104
|
+
readonly seenSeq?: number;
|
|
96
105
|
}
|
|
97
106
|
|
|
98
107
|
/** SessionStatus is one session's current status as carried on the status
|