@cplieger/web-terminal-engine 5.1.1 → 5.2.0

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": "5.1.1",
3
+ "version": "5.2.0",
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": "5.1.1",
3
+ "version": "5.2.0",
4
4
  "type": "module",
5
5
  "scripts": {
6
6
  "typecheck": "tsc -p tsconfig.json",
@@ -74,6 +74,21 @@ export interface SessionInfo {
74
74
  * only when this is set; a program that emits no OSC 9 signal (a plain shell)
75
75
  * keeps its tab dot hidden. */
76
76
  readonly reportsActivity?: boolean;
77
+ /** the session's SECONDARY activity: a host-reported background activity that
78
+ * OUTLIVES the turn, carried beside `status` and never merged into it. The
79
+ * closed set is `"working"` (a background task is running), `"waiting"`
80
+ * (stopped and resumable, nobody is being asked) and `"input"` (a background
81
+ * task is blocked on the user); absent or an empty string means no secondary
82
+ * activity, and a consumer must tolerate an UNKNOWN value from a newer server
83
+ * by rendering nothing for it.
84
+ *
85
+ * Typed `string`, deliberately NOT a union like `status`: that union's own doc
86
+ * already admits it must tolerate values outside itself, which forces a cast at
87
+ * every forward-compatible site. Absent from a server that reports none. */
88
+ readonly activity?: string;
89
+ /** how many sources produced `activity`: >= 1 whenever `activity` is non-empty,
90
+ * 0 when it is empty or the host does not count them. */
91
+ readonly activityCount?: number;
77
92
  }
78
93
 
79
94
  /** SessionStatus is one session's current status as carried on the status