@spencerboucher/switchyard-client 0.16.0 → 0.18.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.
@@ -153,6 +153,179 @@ export declare const CreateSessionRequest: z.ZodObject<{
153
153
  title: z.ZodOptional<z.ZodString>;
154
154
  viewId: z.ZodOptional<z.ZodString>;
155
155
  }, z.core.$strip>;
156
+ /** Open a project's branch: its primary session, else a new session (and worktree if needed). */
157
+ export declare const OpenBranchRequest: z.ZodObject<{
158
+ projectId: z.ZodString;
159
+ branch: z.ZodString;
160
+ hostId: z.ZodOptional<z.ZodString>;
161
+ base: z.ZodOptional<z.ZodNullable<z.ZodString>>;
162
+ prompt: z.ZodDefault<z.ZodString>;
163
+ profileId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
164
+ title: z.ZodOptional<z.ZodString>;
165
+ viewId: z.ZodOptional<z.ZodString>;
166
+ another: z.ZodDefault<z.ZodBoolean>;
167
+ }, z.core.$strip>;
168
+ export type OpenBranchRequest = z.input<typeof OpenBranchRequest>;
169
+ export declare const OpenBranchResult: z.ZodObject<{
170
+ session: z.ZodObject<{
171
+ id: z.ZodString;
172
+ title: z.ZodString;
173
+ subtitle: z.ZodNullable<z.ZodString>;
174
+ hostId: z.ZodString;
175
+ workspaceId: z.ZodNullable<z.ZodString>;
176
+ projectId: z.ZodNullable<z.ZodString>;
177
+ cwd: z.ZodString;
178
+ nativeHandle: z.ZodNullable<z.ZodObject<{
179
+ sessionId: z.ZodString;
180
+ sessionFile: z.ZodString;
181
+ }, z.core.$strip>>;
182
+ profileSnapshot: z.ZodObject<{
183
+ id: z.ZodString;
184
+ name: z.ZodString;
185
+ provider: z.ZodNullable<z.ZodString>;
186
+ model: z.ZodNullable<z.ZodString>;
187
+ thinking: z.ZodNullable<z.ZodEnum<{
188
+ high: "high";
189
+ low: "low";
190
+ max: "max";
191
+ medium: "medium";
192
+ minimal: "minimal";
193
+ off: "off";
194
+ xhigh: "xhigh";
195
+ }>>;
196
+ projectTrust: z.ZodEnum<{
197
+ approve: "approve";
198
+ ask: "ask";
199
+ ignore: "ignore";
200
+ }>;
201
+ extraArgs: z.ZodArray<z.ZodString>;
202
+ resources: z.ZodOptional<z.ZodEnum<{
203
+ all: "all";
204
+ vanilla: "vanilla";
205
+ }>>;
206
+ }, z.core.$strip>;
207
+ runtime: z.ZodEnum<{
208
+ failed: "failed";
209
+ idle: "idle";
210
+ interrupted: "interrupted";
211
+ running: "running";
212
+ starting: "starting";
213
+ stopped: "stopped";
214
+ waiting_input: "waiting_input";
215
+ }>;
216
+ runtimeDetail: z.ZodNullable<z.ZodString>;
217
+ connectivity: z.ZodEnum<{
218
+ connected: "connected";
219
+ reconnecting: "reconnecting";
220
+ unreachable: "unreachable";
221
+ }>;
222
+ runId: z.ZodNullable<z.ZodString>;
223
+ taskId: z.ZodNullable<z.ZodString>;
224
+ provenance: z.ZodEnum<{
225
+ created: "created";
226
+ imported: "imported";
227
+ subagent: "subagent";
228
+ }>;
229
+ readOnly: z.ZodBoolean;
230
+ lastActivityAt: z.ZodString;
231
+ archivedAt: z.ZodNullable<z.ZodString>;
232
+ queue: z.ZodObject<{
233
+ steering: z.ZodArray<z.ZodString>;
234
+ followUp: z.ZodArray<z.ZodString>;
235
+ }, z.core.$strip>;
236
+ stats: z.ZodNullable<z.ZodObject<{
237
+ tokens: z.ZodNullable<z.ZodNumber>;
238
+ costUsd: z.ZodNullable<z.ZodNumber>;
239
+ watermark: z.ZodOptional<z.ZodObject<{
240
+ runtimeId: z.ZodString;
241
+ settleSeq: z.ZodNumber;
242
+ }, z.core.$strict>>;
243
+ context: z.ZodOptional<z.ZodNullable<z.ZodObject<{
244
+ tokens: z.ZodNullable<z.ZodNumber>;
245
+ window: z.ZodNumber;
246
+ percent: z.ZodNullable<z.ZodNumber>;
247
+ }, z.core.$strip>>>;
248
+ }, z.core.$strip>>;
249
+ model: z.ZodOptional<z.ZodNullable<z.ZodObject<{
250
+ provider: z.ZodString;
251
+ id: z.ZodString;
252
+ name: z.ZodNullable<z.ZodString>;
253
+ contextWindow: z.ZodNullable<z.ZodNumber>;
254
+ reasoning: z.ZodBoolean;
255
+ scoped: z.ZodOptional<z.ZodBoolean>;
256
+ thinkingLevels: z.ZodArray<z.ZodEnum<{
257
+ high: "high";
258
+ low: "low";
259
+ max: "max";
260
+ medium: "medium";
261
+ minimal: "minimal";
262
+ off: "off";
263
+ xhigh: "xhigh";
264
+ }>>;
265
+ promptCache: z.ZodOptional<z.ZodNullable<z.ZodObject<{
266
+ short: z.ZodOptional<z.ZodNumber>;
267
+ long: z.ZodOptional<z.ZodNumber>;
268
+ }, z.core.$strip>>>;
269
+ }, z.core.$strip>>>;
270
+ thinking: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
271
+ high: "high";
272
+ low: "low";
273
+ max: "max";
274
+ medium: "medium";
275
+ minimal: "minimal";
276
+ off: "off";
277
+ xhigh: "xhigh";
278
+ }>>>;
279
+ compacting: z.ZodOptional<z.ZodBoolean>;
280
+ lastAssistantText: z.ZodNullable<z.ZodString>;
281
+ createdAt: z.ZodString;
282
+ terminal: z.ZodOptional<z.ZodBoolean>;
283
+ external: z.ZodOptional<z.ZodNullable<z.ZodObject<{
284
+ client: z.ZodNullable<z.ZodString>;
285
+ }, z.core.$strip>>>;
286
+ parentSessionId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
287
+ primary: z.ZodOptional<z.ZodBoolean>;
288
+ startedIn: z.ZodOptional<z.ZodNullable<z.ZodString>>;
289
+ unreadSince: z.ZodOptional<z.ZodNullable<z.ZodString>>;
290
+ adapterGeneration: z.ZodOptional<z.ZodString>;
291
+ transcriptEpoch: z.ZodOptional<z.ZodNumber>;
292
+ bridge: z.ZodOptional<z.ZodObject<{
293
+ version: z.ZodLiteral<1>;
294
+ runtimeId: z.ZodString;
295
+ nativeSessionId: z.ZodString;
296
+ controllerEpoch: z.ZodOptional<z.ZodString>;
297
+ agentTools: z.ZodBoolean;
298
+ messageDelivery: z.ZodBoolean;
299
+ policyState: z.ZodEnum<{
300
+ active: "active";
301
+ initializing: "initializing";
302
+ lost: "lost";
303
+ unsupported: "unsupported";
304
+ }>;
305
+ policyPhases: z.ZodArray<z.ZodEnum<{
306
+ request: "request";
307
+ tool_call: "tool_call";
308
+ }>>;
309
+ }, z.core.$strip>>;
310
+ promptCache: z.ZodOptional<z.ZodNullable<z.ZodObject<{
311
+ at: z.ZodString;
312
+ provider: z.ZodString;
313
+ model: z.ZodString;
314
+ cacheRead: z.ZodNumber;
315
+ cacheWrite: z.ZodNumber;
316
+ cacheWrite1h: z.ZodNumber;
317
+ }, z.core.$strip>>>;
318
+ cacheAlert: z.ZodOptional<z.ZodNullable<z.ZodObject<{
319
+ ttlSec: z.ZodNullable<z.ZodNumber>;
320
+ warnedFor: z.ZodNullable<z.ZodString>;
321
+ }, z.core.$strip>>>;
322
+ }, z.core.$strip>;
323
+ created: z.ZodBoolean;
324
+ }, z.core.$strip>;
325
+ export type OpenBranchResult = z.infer<typeof OpenBranchResult>;
326
+ export declare const SetPrimaryRequest: z.ZodObject<{
327
+ primary: z.ZodBoolean;
328
+ }, z.core.$strip>;
156
329
  export declare const PromptRequest: z.ZodObject<{
157
330
  text: z.ZodString;
158
331
  mode: z.ZodDefault<z.ZodEnum<{
@@ -629,6 +802,9 @@ export declare const BranchResult: z.ZodObject<{
629
802
  external: z.ZodOptional<z.ZodNullable<z.ZodObject<{
630
803
  client: z.ZodNullable<z.ZodString>;
631
804
  }, z.core.$strip>>>;
805
+ parentSessionId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
806
+ primary: z.ZodOptional<z.ZodBoolean>;
807
+ startedIn: z.ZodOptional<z.ZodNullable<z.ZodString>>;
632
808
  unreadSince: z.ZodOptional<z.ZodNullable<z.ZodString>>;
633
809
  adapterGeneration: z.ZodOptional<z.ZodString>;
634
810
  transcriptEpoch: z.ZodOptional<z.ZodNumber>;
@@ -899,7 +1075,6 @@ export declare const UpdateTaskRequest: z.ZodObject<{
899
1075
  githubIssueUrl: z.ZodOptional<z.ZodNever>;
900
1076
  githubIssue: z.ZodOptional<z.ZodNever>;
901
1077
  launchPrompt: z.ZodOptional<z.ZodNever>;
902
- tracker: z.ZodOptional<z.ZodNever>;
903
1078
  title: z.ZodOptional<z.ZodString>;
904
1079
  objective: z.ZodOptional<z.ZodString>;
905
1080
  acceptanceCriteria: z.ZodOptional<z.ZodArray<z.ZodString>>;
@@ -1018,36 +1193,6 @@ export declare const MoveTaskResult: z.ZodObject<{
1018
1193
  url: z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>;
1019
1194
  launchPrompt: z.ZodString;
1020
1195
  }, z.core.$strict>>;
1021
- tracker: z.ZodOptional<z.ZodObject<{
1022
- trackerId: z.ZodString;
1023
- itemId: z.ZodString;
1024
- repository: z.ZodString;
1025
- number: z.ZodNumber;
1026
- assignees: z.ZodArray<z.ZodString>;
1027
- branch: z.ZodNullable<z.ZodString>;
1028
- workspaceId: z.ZodNullable<z.ZodString>;
1029
- pullRequest: z.ZodNullable<z.ZodObject<{
1030
- number: z.ZodNumber;
1031
- state: z.ZodEnum<{
1032
- CLOSED: "CLOSED";
1033
- MERGED: "MERGED";
1034
- OPEN: "OPEN";
1035
- }>;
1036
- url: z.ZodString;
1037
- headRefName: z.ZodString;
1038
- }, z.core.$strip>>;
1039
- board: z.ZodNullable<z.ZodObject<{
1040
- projectId: z.ZodString;
1041
- projectItemId: z.ZodString;
1042
- fieldId: z.ZodString;
1043
- status: z.ZodNullable<z.ZodString>;
1044
- statusOptionId: z.ZodNullable<z.ZodString>;
1045
- options: z.ZodArray<z.ZodObject<{
1046
- id: z.ZodString;
1047
- name: z.ZodString;
1048
- }, z.core.$strip>>;
1049
- }, z.core.$strip>>;
1050
- }, z.core.$strip>>;
1051
1196
  currentRunId: z.ZodNullable<z.ZodString>;
1052
1197
  sessionId: z.ZodNullable<z.ZodString>;
1053
1198
  review: z.ZodObject<{
@@ -1459,6 +1604,17 @@ export declare const MeResponse: z.ZodObject<{
1459
1604
  publicUrl: z.ZodString;
1460
1605
  }, z.core.$strip>;
1461
1606
  export type MeResponse = z.infer<typeof MeResponse>;
1607
+ export declare const SurfaceReport: z.ZodObject<{
1608
+ kind: z.ZodEnum<{
1609
+ herdr: "herdr";
1610
+ tmux: "tmux";
1611
+ }>;
1612
+ name: z.ZodString;
1613
+ machine: z.ZodString;
1614
+ viewId: z.ZodNullable<z.ZodString>;
1615
+ hostId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1616
+ }, z.core.$strip>;
1617
+ export type SurfaceReport = z.infer<typeof SurfaceReport>;
1462
1618
  export declare const ViewInput: z.ZodObject<{
1463
1619
  name: z.ZodString;
1464
1620
  mode: z.ZodOptional<z.ZodEnum<{
@@ -0,0 +1,78 @@
1
+ import type { Session, View, Workspace } from "./entities.js";
2
+ import type { TrackedIssue } from "./trackers.js";
3
+ import { type TrackerScope, type WorkspaceLookup } from "./views.js";
4
+ /**
5
+ * Branches: a project on a branch, the unit of work every client lists. Derived from workspaces,
6
+ * sessions and tracked issues; never stored. See docs/model.md.
7
+ */
8
+ export type BranchStage = "not_started" | "working" | "in_review" | "merged";
9
+ export declare const BRANCH_STAGES: {
10
+ value: BranchStage;
11
+ label: string;
12
+ }[];
13
+ export interface BranchPlacement {
14
+ workspace: Workspace | null;
15
+ hostId: string;
16
+ }
17
+ export interface Branch {
18
+ key: string;
19
+ /** `scratch`: sessions outside every workspace. */
20
+ kind: "branch" | "scratch";
21
+ projectId: string | null;
22
+ /** Null for a detached worktree or scratch. */
23
+ branch: string | null;
24
+ /** Every placement is a main checkout. */
25
+ main: boolean;
26
+ placements: BranchPlacement[];
27
+ primary: Session | null;
28
+ /** Other top-level sessions, most recently active first. */
29
+ extras: Session[];
30
+ /** Most recently active first. */
31
+ subagents: Session[];
32
+ issue: TrackedIssue | null;
33
+ pullRequest: {
34
+ number: number;
35
+ url: string;
36
+ state: "OPEN" | "CLOSED" | "MERGED";
37
+ } | null;
38
+ stage: Exclude<BranchStage, "not_started">;
39
+ /** Latest of its sessions, else its workspaces' `updatedAt`. */
40
+ lastActivityAt: string;
41
+ }
42
+ /**
43
+ * The branch a session or workspace belongs to: `b:<projectId>:<branch>` for a branch,
44
+ * `w:<workspaceId>` for a detached worktree, `d:<hostId>:<cwd>` outside every workspace.
45
+ * `perHost` keeps the same branch on two hosts apart.
46
+ */
47
+ export declare function branchKeyOf(s: Pick<Session, "hostId" | "cwd" | "workspaceId">, ws: Workspace | null | undefined, perHost?: boolean): string;
48
+ /**
49
+ * The primary of a branch's top-level, non-archived sessions: the chosen one (most recently
50
+ * active if several), else the oldest live one, else the most recently active one.
51
+ */
52
+ export declare function primarySession<T extends Pick<Session, "id" | "primary" | "runtime" | "createdAt" | "lastActivityAt">>(sessions: T[]): T | null;
53
+ /** Every branch with its sessions and issue, plus the issues no branch has yet. */
54
+ export declare function buildBranches(input: {
55
+ workspaces: Workspace[];
56
+ sessions: Session[];
57
+ issues: TrackedIssue[];
58
+ }, opts?: {
59
+ perHost?: boolean;
60
+ }): {
61
+ branches: Branch[];
62
+ unstarted: TrackedIssue[];
63
+ };
64
+ /** The issue a workspace's branch is worked for: by linked worktree, else by branch name. First match wins. */
65
+ export declare function issueLookup(issues: Iterable<TrackedIssue>): (ws: Pick<Workspace, "id" | "projectId" | "branch"> | null | undefined) => TrackedIssue | null;
66
+ /** Order for issues nothing is started on: board priority (first option first, none last), then repository and number. */
67
+ export declare function compareIssues(a: TrackedIssue, b: TrackedIssue): number;
68
+ /** An issue nothing is worked on yet: no branch, no linked branches, no worktree, not merged. */
69
+ export declare function issueUnstarted(i: Pick<TrackedIssue, "branch" | "branches" | "workspaceId" | "pullRequest">): boolean;
70
+ /** Why this workspace's branch cannot be linked to this issue by hand; null when it can. */
71
+ export declare function issueLinkProblem(issue: TrackedIssue, ws: Pick<Workspace, "id" | "projectId" | "branch" | "provenance" | "archivedAt">, issues: Iterable<TrackedIssue>): string | null;
72
+ /** Why an issue's branch cannot be unlinked here; null when it can. */
73
+ export declare function issueUnlinkProblem(issue: TrackedIssue): string | null;
74
+ /** Is a branch in a view? By its sessions, else (unless pinned-only) by project and host. */
75
+ export declare function branchInView(view: View, b: Branch, workspaces: WorkspaceLookup, scope?: TrackerScope | null): boolean;
76
+ /** Is an issue in a view? A tracker's view holds its own issues; others filter by project. */
77
+ export declare function issueInView(view: View, i: Pick<TrackedIssue, "projectId" | "trackerId">): boolean;
78
+ //# sourceMappingURL=branches.d.ts.map
@@ -271,7 +271,7 @@ export declare const SyncState: z.ZodObject<{
271
271
  projectIds: z.ZodNullable<z.ZodArray<z.ZodString>>;
272
272
  hostIds: z.ZodNullable<z.ZodArray<z.ZodString>>;
273
273
  sessionIds: z.ZodArray<z.ZodString>;
274
- clients: z.ZodArray<z.ZodObject<{
274
+ clients: z.ZodDefault<z.ZodArray<z.ZodObject<{
275
275
  id: z.ZodString;
276
276
  kind: z.ZodEnum<{
277
277
  herdr: "herdr";
@@ -280,7 +280,7 @@ export declare const SyncState: z.ZodObject<{
280
280
  name: z.ZodString;
281
281
  machine: z.ZodString;
282
282
  lastSeenAt: z.ZodString;
283
- }, z.core.$strip>>;
283
+ }, z.core.$strip>>>;
284
284
  trackerId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
285
285
  clientId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
286
286
  createdAt: z.ZodString;
@@ -402,6 +402,9 @@ export declare const SyncState: z.ZodObject<{
402
402
  external: z.ZodOptional<z.ZodNullable<z.ZodObject<{
403
403
  client: z.ZodNullable<z.ZodString>;
404
404
  }, z.core.$strip>>>;
405
+ parentSessionId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
406
+ primary: z.ZodOptional<z.ZodBoolean>;
407
+ startedIn: z.ZodOptional<z.ZodNullable<z.ZodString>>;
405
408
  unreadSince: z.ZodOptional<z.ZodNullable<z.ZodString>>;
406
409
  adapterGeneration: z.ZodOptional<z.ZodString>;
407
410
  transcriptEpoch: z.ZodOptional<z.ZodNumber>;
@@ -503,36 +506,6 @@ export declare const SyncState: z.ZodObject<{
503
506
  url: z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>;
504
507
  launchPrompt: z.ZodString;
505
508
  }, z.core.$strict>>;
506
- tracker: z.ZodOptional<z.ZodObject<{
507
- trackerId: z.ZodString;
508
- itemId: z.ZodString;
509
- repository: z.ZodString;
510
- number: z.ZodNumber;
511
- assignees: z.ZodArray<z.ZodString>;
512
- branch: z.ZodNullable<z.ZodString>;
513
- workspaceId: z.ZodNullable<z.ZodString>;
514
- pullRequest: z.ZodNullable<z.ZodObject<{
515
- number: z.ZodNumber;
516
- state: z.ZodEnum<{
517
- CLOSED: "CLOSED";
518
- MERGED: "MERGED";
519
- OPEN: "OPEN";
520
- }>;
521
- url: z.ZodString;
522
- headRefName: z.ZodString;
523
- }, z.core.$strip>>;
524
- board: z.ZodNullable<z.ZodObject<{
525
- projectId: z.ZodString;
526
- projectItemId: z.ZodString;
527
- fieldId: z.ZodString;
528
- status: z.ZodNullable<z.ZodString>;
529
- statusOptionId: z.ZodNullable<z.ZodString>;
530
- options: z.ZodArray<z.ZodObject<{
531
- id: z.ZodString;
532
- name: z.ZodString;
533
- }, z.core.$strip>>;
534
- }, z.core.$strip>>;
535
- }, z.core.$strip>>;
536
509
  currentRunId: z.ZodNullable<z.ZodString>;
537
510
  sessionId: z.ZodNullable<z.ZodString>;
538
511
  review: z.ZodObject<{
@@ -803,6 +776,69 @@ export declare const SyncState: z.ZodObject<{
803
776
  passkey: "passkey";
804
777
  }>>;
805
778
  }, z.core.$strip>>;
779
+ issues: z.ZodDefault<z.ZodArray<z.ZodObject<{
780
+ id: z.ZodString;
781
+ trackerId: z.ZodString;
782
+ itemId: z.ZodString;
783
+ projectId: z.ZodString;
784
+ repository: z.ZodString;
785
+ number: z.ZodNumber;
786
+ title: z.ZodString;
787
+ url: z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>;
788
+ assignees: z.ZodArray<z.ZodString>;
789
+ branches: z.ZodArray<z.ZodString>;
790
+ branch: z.ZodNullable<z.ZodString>;
791
+ workspaceId: z.ZodNullable<z.ZodString>;
792
+ pullRequest: z.ZodNullable<z.ZodObject<{
793
+ number: z.ZodNumber;
794
+ state: z.ZodEnum<{
795
+ CLOSED: "CLOSED";
796
+ MERGED: "MERGED";
797
+ OPEN: "OPEN";
798
+ }>;
799
+ url: z.ZodString;
800
+ headRefName: z.ZodString;
801
+ }, z.core.$strip>>;
802
+ board: z.ZodNullable<z.ZodObject<{
803
+ projectId: z.ZodString;
804
+ projectItemId: z.ZodString;
805
+ fieldId: z.ZodString;
806
+ status: z.ZodNullable<z.ZodString>;
807
+ statusOptionId: z.ZodNullable<z.ZodString>;
808
+ options: z.ZodArray<z.ZodObject<{
809
+ id: z.ZodString;
810
+ name: z.ZodString;
811
+ }, z.core.$strip>>;
812
+ priority: z.ZodOptional<z.ZodNullable<z.ZodObject<{
813
+ name: z.ZodString;
814
+ rank: z.ZodNumber;
815
+ }, z.core.$strip>>>;
816
+ }, z.core.$strip>>;
817
+ parent: z.ZodOptional<z.ZodNullable<z.ZodObject<{
818
+ number: z.ZodNumber;
819
+ title: z.ZodString;
820
+ url: z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>;
821
+ }, z.core.$strip>>>;
822
+ subIssues: z.ZodOptional<z.ZodNullable<z.ZodObject<{
823
+ total: z.ZodNumber;
824
+ completed: z.ZodNumber;
825
+ }, z.core.$strip>>>;
826
+ updatedAt: z.ZodString;
827
+ }, z.core.$strip>>>;
828
+ surfaces: z.ZodDefault<z.ZodArray<z.ZodObject<{
829
+ id: z.ZodString;
830
+ kind: z.ZodEnum<{
831
+ herdr: "herdr";
832
+ tmux: "tmux";
833
+ }>;
834
+ name: z.ZodString;
835
+ machine: z.ZodString;
836
+ deviceId: z.ZodString;
837
+ hostId: z.ZodNullable<z.ZodString>;
838
+ viewId: z.ZodNullable<z.ZodString>;
839
+ lastSeenAt: z.ZodString;
840
+ createdAt: z.ZodString;
841
+ }, z.core.$strip>>>;
806
842
  adapters: z.ZodRecord<z.ZodString, z.ZodArray<z.ZodObject<{
807
843
  id: z.ZodString;
808
844
  version: z.ZodString;
@@ -877,6 +913,8 @@ export declare const ServerToClient: z.ZodDiscriminatedUnion<[z.ZodObject<{
877
913
  diagnostic: "diagnostic";
878
914
  "host.updated": "host.updated";
879
915
  "interaction.updated": "interaction.updated";
916
+ "issue.deleted": "issue.deleted";
917
+ "issue.updated": "issue.updated";
880
918
  "occurrence.created": "occurrence.created";
881
919
  "occurrence.updated": "occurrence.updated";
882
920
  "panel.updated": "panel.updated";
@@ -887,6 +925,8 @@ export declare const ServerToClient: z.ZodDiscriminatedUnion<[z.ZodObject<{
887
925
  "run.updated": "run.updated";
888
926
  "session.updated": "session.updated";
889
927
  "settings.updated": "settings.updated";
928
+ "surface.deleted": "surface.deleted";
929
+ "surface.updated": "surface.updated";
890
930
  "task.deleted": "task.deleted";
891
931
  "task.updated": "task.updated";
892
932
  "transcript.item": "transcript.item";
@@ -1179,7 +1219,7 @@ export declare const ServerToClient: z.ZodDiscriminatedUnion<[z.ZodObject<{
1179
1219
  projectIds: z.ZodNullable<z.ZodArray<z.ZodString>>;
1180
1220
  hostIds: z.ZodNullable<z.ZodArray<z.ZodString>>;
1181
1221
  sessionIds: z.ZodArray<z.ZodString>;
1182
- clients: z.ZodArray<z.ZodObject<{
1222
+ clients: z.ZodDefault<z.ZodArray<z.ZodObject<{
1183
1223
  id: z.ZodString;
1184
1224
  kind: z.ZodEnum<{
1185
1225
  herdr: "herdr";
@@ -1188,7 +1228,7 @@ export declare const ServerToClient: z.ZodDiscriminatedUnion<[z.ZodObject<{
1188
1228
  name: z.ZodString;
1189
1229
  machine: z.ZodString;
1190
1230
  lastSeenAt: z.ZodString;
1191
- }, z.core.$strip>>;
1231
+ }, z.core.$strip>>>;
1192
1232
  trackerId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1193
1233
  clientId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1194
1234
  createdAt: z.ZodString;
@@ -1310,6 +1350,9 @@ export declare const ServerToClient: z.ZodDiscriminatedUnion<[z.ZodObject<{
1310
1350
  external: z.ZodOptional<z.ZodNullable<z.ZodObject<{
1311
1351
  client: z.ZodNullable<z.ZodString>;
1312
1352
  }, z.core.$strip>>>;
1353
+ parentSessionId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1354
+ primary: z.ZodOptional<z.ZodBoolean>;
1355
+ startedIn: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1313
1356
  unreadSince: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1314
1357
  adapterGeneration: z.ZodOptional<z.ZodString>;
1315
1358
  transcriptEpoch: z.ZodOptional<z.ZodNumber>;
@@ -1411,36 +1454,6 @@ export declare const ServerToClient: z.ZodDiscriminatedUnion<[z.ZodObject<{
1411
1454
  url: z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>;
1412
1455
  launchPrompt: z.ZodString;
1413
1456
  }, z.core.$strict>>;
1414
- tracker: z.ZodOptional<z.ZodObject<{
1415
- trackerId: z.ZodString;
1416
- itemId: z.ZodString;
1417
- repository: z.ZodString;
1418
- number: z.ZodNumber;
1419
- assignees: z.ZodArray<z.ZodString>;
1420
- branch: z.ZodNullable<z.ZodString>;
1421
- workspaceId: z.ZodNullable<z.ZodString>;
1422
- pullRequest: z.ZodNullable<z.ZodObject<{
1423
- number: z.ZodNumber;
1424
- state: z.ZodEnum<{
1425
- CLOSED: "CLOSED";
1426
- MERGED: "MERGED";
1427
- OPEN: "OPEN";
1428
- }>;
1429
- url: z.ZodString;
1430
- headRefName: z.ZodString;
1431
- }, z.core.$strip>>;
1432
- board: z.ZodNullable<z.ZodObject<{
1433
- projectId: z.ZodString;
1434
- projectItemId: z.ZodString;
1435
- fieldId: z.ZodString;
1436
- status: z.ZodNullable<z.ZodString>;
1437
- statusOptionId: z.ZodNullable<z.ZodString>;
1438
- options: z.ZodArray<z.ZodObject<{
1439
- id: z.ZodString;
1440
- name: z.ZodString;
1441
- }, z.core.$strip>>;
1442
- }, z.core.$strip>>;
1443
- }, z.core.$strip>>;
1444
1457
  currentRunId: z.ZodNullable<z.ZodString>;
1445
1458
  sessionId: z.ZodNullable<z.ZodString>;
1446
1459
  review: z.ZodObject<{
@@ -1711,6 +1724,69 @@ export declare const ServerToClient: z.ZodDiscriminatedUnion<[z.ZodObject<{
1711
1724
  passkey: "passkey";
1712
1725
  }>>;
1713
1726
  }, z.core.$strip>>;
1727
+ issues: z.ZodDefault<z.ZodArray<z.ZodObject<{
1728
+ id: z.ZodString;
1729
+ trackerId: z.ZodString;
1730
+ itemId: z.ZodString;
1731
+ projectId: z.ZodString;
1732
+ repository: z.ZodString;
1733
+ number: z.ZodNumber;
1734
+ title: z.ZodString;
1735
+ url: z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>;
1736
+ assignees: z.ZodArray<z.ZodString>;
1737
+ branches: z.ZodArray<z.ZodString>;
1738
+ branch: z.ZodNullable<z.ZodString>;
1739
+ workspaceId: z.ZodNullable<z.ZodString>;
1740
+ pullRequest: z.ZodNullable<z.ZodObject<{
1741
+ number: z.ZodNumber;
1742
+ state: z.ZodEnum<{
1743
+ CLOSED: "CLOSED";
1744
+ MERGED: "MERGED";
1745
+ OPEN: "OPEN";
1746
+ }>;
1747
+ url: z.ZodString;
1748
+ headRefName: z.ZodString;
1749
+ }, z.core.$strip>>;
1750
+ board: z.ZodNullable<z.ZodObject<{
1751
+ projectId: z.ZodString;
1752
+ projectItemId: z.ZodString;
1753
+ fieldId: z.ZodString;
1754
+ status: z.ZodNullable<z.ZodString>;
1755
+ statusOptionId: z.ZodNullable<z.ZodString>;
1756
+ options: z.ZodArray<z.ZodObject<{
1757
+ id: z.ZodString;
1758
+ name: z.ZodString;
1759
+ }, z.core.$strip>>;
1760
+ priority: z.ZodOptional<z.ZodNullable<z.ZodObject<{
1761
+ name: z.ZodString;
1762
+ rank: z.ZodNumber;
1763
+ }, z.core.$strip>>>;
1764
+ }, z.core.$strip>>;
1765
+ parent: z.ZodOptional<z.ZodNullable<z.ZodObject<{
1766
+ number: z.ZodNumber;
1767
+ title: z.ZodString;
1768
+ url: z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>;
1769
+ }, z.core.$strip>>>;
1770
+ subIssues: z.ZodOptional<z.ZodNullable<z.ZodObject<{
1771
+ total: z.ZodNumber;
1772
+ completed: z.ZodNumber;
1773
+ }, z.core.$strip>>>;
1774
+ updatedAt: z.ZodString;
1775
+ }, z.core.$strip>>>;
1776
+ surfaces: z.ZodDefault<z.ZodArray<z.ZodObject<{
1777
+ id: z.ZodString;
1778
+ kind: z.ZodEnum<{
1779
+ herdr: "herdr";
1780
+ tmux: "tmux";
1781
+ }>;
1782
+ name: z.ZodString;
1783
+ machine: z.ZodString;
1784
+ deviceId: z.ZodString;
1785
+ hostId: z.ZodNullable<z.ZodString>;
1786
+ viewId: z.ZodNullable<z.ZodString>;
1787
+ lastSeenAt: z.ZodString;
1788
+ createdAt: z.ZodString;
1789
+ }, z.core.$strip>>>;
1714
1790
  adapters: z.ZodRecord<z.ZodString, z.ZodArray<z.ZodObject<{
1715
1791
  id: z.ZodString;
1716
1792
  version: z.ZodString;
@@ -1760,6 +1836,8 @@ export declare const ServerToClient: z.ZodDiscriminatedUnion<[z.ZodObject<{
1760
1836
  diagnostic: "diagnostic";
1761
1837
  "host.updated": "host.updated";
1762
1838
  "interaction.updated": "interaction.updated";
1839
+ "issue.deleted": "issue.deleted";
1840
+ "issue.updated": "issue.updated";
1763
1841
  "occurrence.created": "occurrence.created";
1764
1842
  "occurrence.updated": "occurrence.updated";
1765
1843
  "panel.updated": "panel.updated";
@@ -1770,6 +1848,8 @@ export declare const ServerToClient: z.ZodDiscriminatedUnion<[z.ZodObject<{
1770
1848
  "run.updated": "run.updated";
1771
1849
  "session.updated": "session.updated";
1772
1850
  "settings.updated": "settings.updated";
1851
+ "surface.deleted": "surface.deleted";
1852
+ "surface.updated": "surface.updated";
1773
1853
  "task.deleted": "task.deleted";
1774
1854
  "task.updated": "task.updated";
1775
1855
  "transcript.item": "transcript.item";