@tomradex/code-sessions 0.16.2 → 0.16.3

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.
Files changed (2) hide show
  1. package/dist/protocol.d.ts +15 -2
  2. package/package.json +9 -9
@@ -1,4 +1,4 @@
1
- import type { HerdrBridge, TerminalMouse, TerminalScroll } from "@tomradex/herdr";
1
+ import type { HerdrBridge, HerdrScroll, TerminalMouse, TerminalScroll } from "@tomradex/herdr";
2
2
  /** One code session as the window lists it. */
3
3
  export interface SessionRow {
4
4
  id: string;
@@ -50,6 +50,8 @@ export interface TerminalRow {
50
50
  startedAt: number;
51
51
  /** What the agent herdr sees in it calls the conversation; null without one. */
52
52
  agentTitle: string | null;
53
+ /** How herdr reads that agent; null without one, or when herdr cannot tell. */
54
+ agentStatus: "working" | "blocked" | "idle" | "done" | null;
53
55
  /** With no agent in it: what runs in its foreground when that is not the shell, else the title its shell set. */
54
56
  running: string | null;
55
57
  /** The code session its agent claimed a ticket for: the cell shows that session, on the same pane. */
@@ -204,7 +206,13 @@ export type WindowMessage = {
204
206
  } | ({
205
207
  type: "scroll";
206
208
  cell: string;
207
- } & TerminalScroll) | ({
209
+ } & TerminalScroll)
210
+ /** Dragging the cell's scrollbar: its pane's view, this many rows above the bottom of the scrollback. */
211
+ | {
212
+ type: "scrollTo";
213
+ cell: string;
214
+ offset: number;
215
+ } | ({
208
216
  type: "mouse";
209
217
  cell: string;
210
218
  } & TerminalMouse) | {
@@ -258,6 +266,11 @@ export type WindowPost = {
258
266
  cell: string;
259
267
  reason: string | null;
260
268
  }
269
+ /** Where the cell's pane is in its scrollback, in rows, for its scrollbar. */
270
+ | ({
271
+ type: "scrolled";
272
+ cell: string;
273
+ } & HerdrScroll)
261
274
  /** herdr's server is back: attach the cell's pane again. */
262
275
  | {
263
276
  type: "reattach";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tomradex/code-sessions",
3
- "version": "0.16.2",
3
+ "version": "0.16.3",
4
4
  "type": "module",
5
5
  "author": "Haoyuan Tang",
6
6
  "engines": {
@@ -27,14 +27,14 @@
27
27
  "dist"
28
28
  ],
29
29
  "dependencies": {
30
- "@tomradex/code-link": "0.16.2",
31
- "@tomradex/contributions": "0.16.2",
32
- "@tomradex/db": "0.16.2",
33
- "@tomradex/desktop-surface": "0.16.2",
34
- "@tomradex/domain": "0.2.18",
35
- "@tomradex/herdr": "0.16.2",
36
- "@tomradex/items": "0.16.2",
37
- "@tomradex/settings": "0.16.2",
30
+ "@tomradex/code-link": "0.16.3",
31
+ "@tomradex/contributions": "0.16.3",
32
+ "@tomradex/db": "0.16.3",
33
+ "@tomradex/desktop-surface": "0.16.3",
34
+ "@tomradex/domain": "0.2.19",
35
+ "@tomradex/herdr": "0.16.3",
36
+ "@tomradex/items": "0.16.3",
37
+ "@tomradex/settings": "0.16.3",
38
38
  "cordis": "4.0.0-rc.8",
39
39
  "zod": "^4.4.3"
40
40
  }