@tomradex/code-sessions 0.16.1 → 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.
- package/dist/index.d.ts +2 -0
- package/dist/protocol.d.ts +15 -2
- package/dist/words.d.ts +1 -0
- package/package.json +9 -9
package/dist/index.d.ts
CHANGED
|
@@ -13,6 +13,8 @@ export type Config = z.infer<typeof Config>;
|
|
|
13
13
|
export declare const RECENTLY_ENDED_MS: number;
|
|
14
14
|
/** How often an open window asks herdr how it is, besides every session change. */
|
|
15
15
|
export declare const BRIDGE_POLL_MS = 10000;
|
|
16
|
+
/** The most typing a cell holds while its terminal attaches. */
|
|
17
|
+
export declare const HELD_INPUT_MAX: number;
|
|
16
18
|
/** Whether a stored value is a layout the window can draw. */
|
|
17
19
|
export declare function isLayout(value: unknown): value is Layout;
|
|
18
20
|
/**
|
package/dist/protocol.d.ts
CHANGED
|
@@ -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/dist/words.d.ts
CHANGED
|
@@ -20,5 +20,6 @@ export declare const CODE_SESSIONS_WORDS: import("@tomradex/domain").WordBook<{
|
|
|
20
20
|
readonly openedOutside: "Opened in {{app}}. An agent you start there shows up here as a session";
|
|
21
21
|
readonly outsideFailed: "Could not open a terminal: {{reason}}";
|
|
22
22
|
readonly herdrRestarting: "herdr's server stopped — starting it again, this terminal comes back on its own";
|
|
23
|
+
readonly notSent: "What you typed while the terminal was connecting was not sent";
|
|
23
24
|
}>;
|
|
24
25
|
//# sourceMappingURL=words.d.ts.map
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tomradex/code-sessions",
|
|
3
|
-
"version": "0.16.
|
|
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.
|
|
31
|
-
"@tomradex/contributions": "0.16.
|
|
32
|
-
"@tomradex/db": "0.16.
|
|
33
|
-
"@tomradex/desktop-surface": "0.16.
|
|
34
|
-
"@tomradex/domain": "0.2.
|
|
35
|
-
"@tomradex/herdr": "0.16.
|
|
36
|
-
"@tomradex/items": "0.16.
|
|
37
|
-
"@tomradex/settings": "0.16.
|
|
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
|
}
|