@spencerboucher/switchyard-client 0.0.0-stage → 0.16.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/LICENSE +21 -0
- package/README.md +24 -2
- package/dist/index.js +4007 -0
- package/dist/types/api.d.ts +28 -0
- package/dist/types/client.d.ts +56 -0
- package/dist/types/connection.d.ts +66 -0
- package/dist/types/index.d.ts +7 -0
- package/dist/types/protocol/adapter-preview.d.ts +455 -0
- package/dist/types/protocol/adapters.d.ts +113 -0
- package/dist/types/protocol/agent-wire.d.ts +269 -0
- package/dist/types/protocol/api.d.ts +1501 -0
- package/dist/types/protocol/backoff.d.ts +5 -0
- package/dist/types/protocol/client-wire.d.ts +1806 -0
- package/dist/types/protocol/contributions.d.ts +62 -0
- package/dist/types/protocol/entities.d.ts +1389 -0
- package/dist/types/protocol/errors.d.ts +115 -0
- package/dist/types/protocol/events.d.ts +1136 -0
- package/dist/types/protocol/github.d.ts +510 -0
- package/dist/types/protocol/host-wire.d.ts +1517 -0
- package/dist/types/protocol/ids.d.ts +7 -0
- package/dist/types/protocol/index.d.ts +29 -0
- package/dist/types/protocol/policies.d.ts +576 -0
- package/dist/types/protocol/terminal-wire.d.ts +45 -0
- package/dist/types/protocol/titles.d.ts +9 -0
- package/dist/types/protocol/trackers.d.ts +244 -0
- package/dist/types/protocol/ui.d.ts +164 -0
- package/dist/types/protocol/views.d.ts +14 -0
- package/dist/types/protocol/web-bridge.d.ts +30 -0
- package/dist/types/store.d.ts +59 -0
- package/dist/types/wait.d.ts +20 -0
- package/package.json +32 -4
|
@@ -0,0 +1,1806 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
export declare const SyncState: z.ZodObject<{
|
|
3
|
+
hosts: z.ZodArray<z.ZodObject<{
|
|
4
|
+
id: z.ZodString;
|
|
5
|
+
name: z.ZodString;
|
|
6
|
+
platform: z.ZodEnum<{
|
|
7
|
+
darwin: "darwin";
|
|
8
|
+
linux: "linux";
|
|
9
|
+
}>;
|
|
10
|
+
agentVersion: z.ZodString;
|
|
11
|
+
piVersion: z.ZodNullable<z.ZodString>;
|
|
12
|
+
piCompatible: z.ZodBoolean;
|
|
13
|
+
capabilities: z.ZodNullable<z.ZodObject<{
|
|
14
|
+
prompt: z.ZodBoolean;
|
|
15
|
+
steer: z.ZodBoolean;
|
|
16
|
+
followUp: z.ZodBoolean;
|
|
17
|
+
abort: z.ZodBoolean;
|
|
18
|
+
resume: z.ZodBoolean;
|
|
19
|
+
rename: z.ZodBoolean;
|
|
20
|
+
importInactive: z.ZodBoolean;
|
|
21
|
+
extensionDialogs: z.ZodBoolean;
|
|
22
|
+
customUi: z.ZodBoolean;
|
|
23
|
+
widgetsText: z.ZodBoolean;
|
|
24
|
+
widgetsComponent: z.ZodBoolean;
|
|
25
|
+
tokenAccounting: z.ZodBoolean;
|
|
26
|
+
costAccounting: z.ZodBoolean;
|
|
27
|
+
terminal: z.ZodOptional<z.ZodBoolean>;
|
|
28
|
+
sessionControls: z.ZodOptional<z.ZodBoolean>;
|
|
29
|
+
treeNavigation: z.ZodOptional<z.ZodBoolean>;
|
|
30
|
+
agentRequests: z.ZodOptional<z.ZodBoolean>;
|
|
31
|
+
messageDelivery: z.ZodOptional<z.ZodBoolean>;
|
|
32
|
+
policies: z.ZodOptional<z.ZodBoolean>;
|
|
33
|
+
adapterDevelopment: z.ZodOptional<z.ZodBoolean>;
|
|
34
|
+
unsupported: z.ZodArray<z.ZodObject<{
|
|
35
|
+
capability: z.ZodString;
|
|
36
|
+
reason: z.ZodString;
|
|
37
|
+
}, z.core.$strip>>;
|
|
38
|
+
}, z.core.$strip>>;
|
|
39
|
+
connectivity: z.ZodEnum<{
|
|
40
|
+
connected: "connected";
|
|
41
|
+
reconnecting: "reconnecting";
|
|
42
|
+
unreachable: "unreachable";
|
|
43
|
+
}>;
|
|
44
|
+
lastSeenAt: z.ZodNullable<z.ZodString>;
|
|
45
|
+
revokedAt: z.ZodNullable<z.ZodString>;
|
|
46
|
+
createdAt: z.ZodString;
|
|
47
|
+
projectFolders: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
48
|
+
projectScan: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
49
|
+
state: z.ZodEnum<{
|
|
50
|
+
done: "done";
|
|
51
|
+
failed: "failed";
|
|
52
|
+
running: "running";
|
|
53
|
+
}>;
|
|
54
|
+
startedAt: z.ZodString;
|
|
55
|
+
finishedAt: z.ZodNullable<z.ZodString>;
|
|
56
|
+
repositories: z.ZodNumber;
|
|
57
|
+
projectsCreated: z.ZodNumber;
|
|
58
|
+
checkoutsAdded: z.ZodNumber;
|
|
59
|
+
errors: z.ZodArray<z.ZodString>;
|
|
60
|
+
}, z.core.$strip>>>;
|
|
61
|
+
usage: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
62
|
+
provider: z.ZodEnum<{
|
|
63
|
+
anthropic: "anthropic";
|
|
64
|
+
"openai-codex": "openai-codex";
|
|
65
|
+
}>;
|
|
66
|
+
status: z.ZodEnum<{
|
|
67
|
+
available: "available";
|
|
68
|
+
error: "error";
|
|
69
|
+
expired: "expired";
|
|
70
|
+
rejected: "rejected";
|
|
71
|
+
}>;
|
|
72
|
+
message: z.ZodNullable<z.ZodString>;
|
|
73
|
+
windows: z.ZodArray<z.ZodObject<{
|
|
74
|
+
id: z.ZodEnum<{
|
|
75
|
+
five_hour: "five_hour";
|
|
76
|
+
weekly: "weekly";
|
|
77
|
+
}>;
|
|
78
|
+
usedPct: z.ZodNumber;
|
|
79
|
+
resetsAt: z.ZodNullable<z.ZodString>;
|
|
80
|
+
}, z.core.$strip>>;
|
|
81
|
+
fetchedAt: z.ZodString;
|
|
82
|
+
}, z.core.$strip>>>;
|
|
83
|
+
github: z.ZodOptional<z.ZodObject<{
|
|
84
|
+
available: z.ZodBoolean;
|
|
85
|
+
reason: z.ZodNullable<z.ZodString>;
|
|
86
|
+
}, z.core.$strict>>;
|
|
87
|
+
}, z.core.$strip>>;
|
|
88
|
+
projects: z.ZodArray<z.ZodObject<{
|
|
89
|
+
id: z.ZodString;
|
|
90
|
+
name: z.ZodString;
|
|
91
|
+
repoIdentity: z.ZodString;
|
|
92
|
+
defaultProfileId: z.ZodNullable<z.ZodString>;
|
|
93
|
+
defaultHostId: z.ZodNullable<z.ZodString>;
|
|
94
|
+
maxConcurrentRuns: z.ZodNumber;
|
|
95
|
+
automationEnabled: z.ZodBoolean;
|
|
96
|
+
setupCommand: z.ZodNullable<z.ZodString>;
|
|
97
|
+
checks: z.ZodArray<z.ZodString>;
|
|
98
|
+
workspaceSharing: z.ZodEnum<{
|
|
99
|
+
shared: "shared";
|
|
100
|
+
single_writer: "single_writer";
|
|
101
|
+
}>;
|
|
102
|
+
worktreeDir: z.ZodDefault<z.ZodString>;
|
|
103
|
+
ensureSessions: z.ZodDefault<z.ZodBoolean>;
|
|
104
|
+
removeLanded: z.ZodDefault<z.ZodBoolean>;
|
|
105
|
+
createdAt: z.ZodString;
|
|
106
|
+
updatedAt: z.ZodString;
|
|
107
|
+
}, z.core.$strip>>;
|
|
108
|
+
checkouts: z.ZodArray<z.ZodObject<{
|
|
109
|
+
id: z.ZodString;
|
|
110
|
+
projectId: z.ZodString;
|
|
111
|
+
hostId: z.ZodString;
|
|
112
|
+
path: z.ZodString;
|
|
113
|
+
commonDir: z.ZodString;
|
|
114
|
+
defaultBranch: z.ZodString;
|
|
115
|
+
createdAt: z.ZodString;
|
|
116
|
+
}, z.core.$strip>>;
|
|
117
|
+
workspaces: z.ZodArray<z.ZodObject<{
|
|
118
|
+
id: z.ZodString;
|
|
119
|
+
checkoutId: z.ZodString;
|
|
120
|
+
projectId: z.ZodString;
|
|
121
|
+
hostId: z.ZodString;
|
|
122
|
+
path: z.ZodString;
|
|
123
|
+
branch: z.ZodNullable<z.ZodString>;
|
|
124
|
+
baseBranch: z.ZodNullable<z.ZodString>;
|
|
125
|
+
provenance: z.ZodEnum<{
|
|
126
|
+
discovered: "discovered";
|
|
127
|
+
main: "main";
|
|
128
|
+
managed: "managed";
|
|
129
|
+
}>;
|
|
130
|
+
git: z.ZodObject<{
|
|
131
|
+
dirty: z.ZodBoolean;
|
|
132
|
+
changedFiles: z.ZodNumber;
|
|
133
|
+
ahead: z.ZodNumber;
|
|
134
|
+
behind: z.ZodNumber;
|
|
135
|
+
unmerged: z.ZodBoolean;
|
|
136
|
+
head: z.ZodOptional<z.ZodString>;
|
|
137
|
+
}, z.core.$strip>;
|
|
138
|
+
setup: z.ZodObject<{
|
|
139
|
+
state: z.ZodEnum<{
|
|
140
|
+
failed: "failed";
|
|
141
|
+
none: "none";
|
|
142
|
+
running: "running";
|
|
143
|
+
succeeded: "succeeded";
|
|
144
|
+
}>;
|
|
145
|
+
log: z.ZodString;
|
|
146
|
+
}, z.core.$strip>;
|
|
147
|
+
archivedAt: z.ZodNullable<z.ZodString>;
|
|
148
|
+
updatedAt: z.ZodString;
|
|
149
|
+
github: z.ZodOptional<z.ZodObject<{
|
|
150
|
+
repository: z.ZodNullable<z.ZodString>;
|
|
151
|
+
headRepository: z.ZodNullable<z.ZodString>;
|
|
152
|
+
branch: z.ZodNullable<z.ZodString>;
|
|
153
|
+
fetchedAt: z.ZodNullable<z.ZodString>;
|
|
154
|
+
attemptedAt: z.ZodString;
|
|
155
|
+
status: z.ZodEnum<{
|
|
156
|
+
ambiguous: "ambiguous";
|
|
157
|
+
error: "error";
|
|
158
|
+
ready: "ready";
|
|
159
|
+
unavailable: "unavailable";
|
|
160
|
+
}>;
|
|
161
|
+
reason: z.ZodNullable<z.ZodString>;
|
|
162
|
+
pullRequest: z.ZodNullable<z.ZodObject<{
|
|
163
|
+
nodeId: z.ZodOptional<z.ZodString>;
|
|
164
|
+
number: z.ZodNumber;
|
|
165
|
+
url: z.ZodString;
|
|
166
|
+
title: z.ZodString;
|
|
167
|
+
state: z.ZodEnum<{
|
|
168
|
+
CLOSED: "CLOSED";
|
|
169
|
+
MERGED: "MERGED";
|
|
170
|
+
OPEN: "OPEN";
|
|
171
|
+
}>;
|
|
172
|
+
isDraft: z.ZodBoolean;
|
|
173
|
+
headRefName: z.ZodString;
|
|
174
|
+
headRefOid: z.ZodString;
|
|
175
|
+
headRepository: z.ZodNullable<z.ZodString>;
|
|
176
|
+
baseRefName: z.ZodString;
|
|
177
|
+
mergeable: z.ZodString;
|
|
178
|
+
mergeStateStatus: z.ZodString;
|
|
179
|
+
reviewDecision: z.ZodNullable<z.ZodEnum<{
|
|
180
|
+
APPROVED: "APPROVED";
|
|
181
|
+
CHANGES_REQUESTED: "CHANGES_REQUESTED";
|
|
182
|
+
REVIEW_REQUIRED: "REVIEW_REQUIRED";
|
|
183
|
+
}>>;
|
|
184
|
+
mergeQueueEnabled: z.ZodBoolean;
|
|
185
|
+
inMergeQueue: z.ZodBoolean;
|
|
186
|
+
autoMergeEnabled: z.ZodBoolean;
|
|
187
|
+
squashMergeAllowed: z.ZodBoolean;
|
|
188
|
+
}, z.core.$strict>>;
|
|
189
|
+
checks: z.ZodArray<z.ZodObject<{
|
|
190
|
+
id: z.ZodString;
|
|
191
|
+
name: z.ZodString;
|
|
192
|
+
state: z.ZodString;
|
|
193
|
+
bucket: z.ZodEnum<{
|
|
194
|
+
cancel: "cancel";
|
|
195
|
+
fail: "fail";
|
|
196
|
+
pass: "pass";
|
|
197
|
+
pending: "pending";
|
|
198
|
+
skipping: "skipping";
|
|
199
|
+
unknown: "unknown";
|
|
200
|
+
}>;
|
|
201
|
+
link: z.ZodNullable<z.ZodString>;
|
|
202
|
+
workflow: z.ZodNullable<z.ZodString>;
|
|
203
|
+
event: z.ZodNullable<z.ZodString>;
|
|
204
|
+
startedAt: z.ZodNullable<z.ZodString>;
|
|
205
|
+
completedAt: z.ZodNullable<z.ZodString>;
|
|
206
|
+
description: z.ZodNullable<z.ZodString>;
|
|
207
|
+
actionsJob: z.ZodNullable<z.ZodObject<{
|
|
208
|
+
runId: z.ZodString;
|
|
209
|
+
jobId: z.ZodString;
|
|
210
|
+
attempt: z.ZodNumber;
|
|
211
|
+
}, z.core.$strict>>;
|
|
212
|
+
}, z.core.$strict>>;
|
|
213
|
+
checksComplete: z.ZodBoolean;
|
|
214
|
+
threads: z.ZodArray<z.ZodObject<{
|
|
215
|
+
id: z.ZodString;
|
|
216
|
+
isResolved: z.ZodLiteral<false>;
|
|
217
|
+
isOutdated: z.ZodBoolean;
|
|
218
|
+
path: z.ZodNullable<z.ZodString>;
|
|
219
|
+
line: z.ZodNullable<z.ZodNumber>;
|
|
220
|
+
startLine: z.ZodNullable<z.ZodNumber>;
|
|
221
|
+
side: z.ZodNullable<z.ZodEnum<{
|
|
222
|
+
LEFT: "LEFT";
|
|
223
|
+
RIGHT: "RIGHT";
|
|
224
|
+
}>>;
|
|
225
|
+
comments: z.ZodArray<z.ZodObject<{
|
|
226
|
+
id: z.ZodString;
|
|
227
|
+
author: z.ZodNullable<z.ZodString>;
|
|
228
|
+
body: z.ZodString;
|
|
229
|
+
bodyTruncated: z.ZodBoolean;
|
|
230
|
+
url: z.ZodString;
|
|
231
|
+
createdAt: z.ZodNullable<z.ZodString>;
|
|
232
|
+
}, z.core.$strict>>;
|
|
233
|
+
commentsComplete: z.ZodBoolean;
|
|
234
|
+
}, z.core.$strict>>;
|
|
235
|
+
threadsComplete: z.ZodBoolean;
|
|
236
|
+
truncated: z.ZodBoolean;
|
|
237
|
+
}, z.core.$strict>>;
|
|
238
|
+
}, z.core.$strip>>;
|
|
239
|
+
profiles: z.ZodArray<z.ZodObject<{
|
|
240
|
+
id: z.ZodString;
|
|
241
|
+
name: z.ZodString;
|
|
242
|
+
provider: z.ZodNullable<z.ZodString>;
|
|
243
|
+
model: z.ZodNullable<z.ZodString>;
|
|
244
|
+
thinking: z.ZodNullable<z.ZodEnum<{
|
|
245
|
+
high: "high";
|
|
246
|
+
low: "low";
|
|
247
|
+
max: "max";
|
|
248
|
+
medium: "medium";
|
|
249
|
+
minimal: "minimal";
|
|
250
|
+
off: "off";
|
|
251
|
+
xhigh: "xhigh";
|
|
252
|
+
}>>;
|
|
253
|
+
projectTrust: z.ZodEnum<{
|
|
254
|
+
approve: "approve";
|
|
255
|
+
ask: "ask";
|
|
256
|
+
ignore: "ignore";
|
|
257
|
+
}>;
|
|
258
|
+
extraArgs: z.ZodArray<z.ZodString>;
|
|
259
|
+
resources: z.ZodOptional<z.ZodEnum<{
|
|
260
|
+
all: "all";
|
|
261
|
+
vanilla: "vanilla";
|
|
262
|
+
}>>;
|
|
263
|
+
}, z.core.$strip>>;
|
|
264
|
+
views: z.ZodArray<z.ZodObject<{
|
|
265
|
+
id: z.ZodString;
|
|
266
|
+
name: z.ZodString;
|
|
267
|
+
mode: z.ZodEnum<{
|
|
268
|
+
all: "all";
|
|
269
|
+
pinned: "pinned";
|
|
270
|
+
}>;
|
|
271
|
+
projectIds: z.ZodNullable<z.ZodArray<z.ZodString>>;
|
|
272
|
+
hostIds: z.ZodNullable<z.ZodArray<z.ZodString>>;
|
|
273
|
+
sessionIds: z.ZodArray<z.ZodString>;
|
|
274
|
+
clients: z.ZodArray<z.ZodObject<{
|
|
275
|
+
id: z.ZodString;
|
|
276
|
+
kind: z.ZodEnum<{
|
|
277
|
+
herdr: "herdr";
|
|
278
|
+
tmux: "tmux";
|
|
279
|
+
}>;
|
|
280
|
+
name: z.ZodString;
|
|
281
|
+
machine: z.ZodString;
|
|
282
|
+
lastSeenAt: z.ZodString;
|
|
283
|
+
}, z.core.$strip>>;
|
|
284
|
+
trackerId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
285
|
+
clientId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
286
|
+
createdAt: z.ZodString;
|
|
287
|
+
updatedAt: z.ZodString;
|
|
288
|
+
}, z.core.$strip>>;
|
|
289
|
+
sessions: z.ZodArray<z.ZodObject<{
|
|
290
|
+
id: z.ZodString;
|
|
291
|
+
title: z.ZodString;
|
|
292
|
+
subtitle: z.ZodNullable<z.ZodString>;
|
|
293
|
+
hostId: z.ZodString;
|
|
294
|
+
workspaceId: z.ZodNullable<z.ZodString>;
|
|
295
|
+
projectId: z.ZodNullable<z.ZodString>;
|
|
296
|
+
cwd: z.ZodString;
|
|
297
|
+
nativeHandle: z.ZodNullable<z.ZodObject<{
|
|
298
|
+
sessionId: z.ZodString;
|
|
299
|
+
sessionFile: z.ZodString;
|
|
300
|
+
}, z.core.$strip>>;
|
|
301
|
+
profileSnapshot: z.ZodObject<{
|
|
302
|
+
id: z.ZodString;
|
|
303
|
+
name: z.ZodString;
|
|
304
|
+
provider: z.ZodNullable<z.ZodString>;
|
|
305
|
+
model: z.ZodNullable<z.ZodString>;
|
|
306
|
+
thinking: z.ZodNullable<z.ZodEnum<{
|
|
307
|
+
high: "high";
|
|
308
|
+
low: "low";
|
|
309
|
+
max: "max";
|
|
310
|
+
medium: "medium";
|
|
311
|
+
minimal: "minimal";
|
|
312
|
+
off: "off";
|
|
313
|
+
xhigh: "xhigh";
|
|
314
|
+
}>>;
|
|
315
|
+
projectTrust: z.ZodEnum<{
|
|
316
|
+
approve: "approve";
|
|
317
|
+
ask: "ask";
|
|
318
|
+
ignore: "ignore";
|
|
319
|
+
}>;
|
|
320
|
+
extraArgs: z.ZodArray<z.ZodString>;
|
|
321
|
+
resources: z.ZodOptional<z.ZodEnum<{
|
|
322
|
+
all: "all";
|
|
323
|
+
vanilla: "vanilla";
|
|
324
|
+
}>>;
|
|
325
|
+
}, z.core.$strip>;
|
|
326
|
+
runtime: z.ZodEnum<{
|
|
327
|
+
failed: "failed";
|
|
328
|
+
idle: "idle";
|
|
329
|
+
interrupted: "interrupted";
|
|
330
|
+
running: "running";
|
|
331
|
+
starting: "starting";
|
|
332
|
+
stopped: "stopped";
|
|
333
|
+
waiting_input: "waiting_input";
|
|
334
|
+
}>;
|
|
335
|
+
runtimeDetail: z.ZodNullable<z.ZodString>;
|
|
336
|
+
connectivity: z.ZodEnum<{
|
|
337
|
+
connected: "connected";
|
|
338
|
+
reconnecting: "reconnecting";
|
|
339
|
+
unreachable: "unreachable";
|
|
340
|
+
}>;
|
|
341
|
+
runId: z.ZodNullable<z.ZodString>;
|
|
342
|
+
taskId: z.ZodNullable<z.ZodString>;
|
|
343
|
+
provenance: z.ZodEnum<{
|
|
344
|
+
created: "created";
|
|
345
|
+
imported: "imported";
|
|
346
|
+
subagent: "subagent";
|
|
347
|
+
}>;
|
|
348
|
+
readOnly: z.ZodBoolean;
|
|
349
|
+
lastActivityAt: z.ZodString;
|
|
350
|
+
archivedAt: z.ZodNullable<z.ZodString>;
|
|
351
|
+
queue: z.ZodObject<{
|
|
352
|
+
steering: z.ZodArray<z.ZodString>;
|
|
353
|
+
followUp: z.ZodArray<z.ZodString>;
|
|
354
|
+
}, z.core.$strip>;
|
|
355
|
+
stats: z.ZodNullable<z.ZodObject<{
|
|
356
|
+
tokens: z.ZodNullable<z.ZodNumber>;
|
|
357
|
+
costUsd: z.ZodNullable<z.ZodNumber>;
|
|
358
|
+
watermark: z.ZodOptional<z.ZodObject<{
|
|
359
|
+
runtimeId: z.ZodString;
|
|
360
|
+
settleSeq: z.ZodNumber;
|
|
361
|
+
}, z.core.$strict>>;
|
|
362
|
+
context: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
363
|
+
tokens: z.ZodNullable<z.ZodNumber>;
|
|
364
|
+
window: z.ZodNumber;
|
|
365
|
+
percent: z.ZodNullable<z.ZodNumber>;
|
|
366
|
+
}, z.core.$strip>>>;
|
|
367
|
+
}, z.core.$strip>>;
|
|
368
|
+
model: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
369
|
+
provider: z.ZodString;
|
|
370
|
+
id: z.ZodString;
|
|
371
|
+
name: z.ZodNullable<z.ZodString>;
|
|
372
|
+
contextWindow: z.ZodNullable<z.ZodNumber>;
|
|
373
|
+
reasoning: z.ZodBoolean;
|
|
374
|
+
scoped: z.ZodOptional<z.ZodBoolean>;
|
|
375
|
+
thinkingLevels: z.ZodArray<z.ZodEnum<{
|
|
376
|
+
high: "high";
|
|
377
|
+
low: "low";
|
|
378
|
+
max: "max";
|
|
379
|
+
medium: "medium";
|
|
380
|
+
minimal: "minimal";
|
|
381
|
+
off: "off";
|
|
382
|
+
xhigh: "xhigh";
|
|
383
|
+
}>>;
|
|
384
|
+
promptCache: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
385
|
+
short: z.ZodOptional<z.ZodNumber>;
|
|
386
|
+
long: z.ZodOptional<z.ZodNumber>;
|
|
387
|
+
}, z.core.$strip>>>;
|
|
388
|
+
}, z.core.$strip>>>;
|
|
389
|
+
thinking: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
|
|
390
|
+
high: "high";
|
|
391
|
+
low: "low";
|
|
392
|
+
max: "max";
|
|
393
|
+
medium: "medium";
|
|
394
|
+
minimal: "minimal";
|
|
395
|
+
off: "off";
|
|
396
|
+
xhigh: "xhigh";
|
|
397
|
+
}>>>;
|
|
398
|
+
compacting: z.ZodOptional<z.ZodBoolean>;
|
|
399
|
+
lastAssistantText: z.ZodNullable<z.ZodString>;
|
|
400
|
+
createdAt: z.ZodString;
|
|
401
|
+
terminal: z.ZodOptional<z.ZodBoolean>;
|
|
402
|
+
external: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
403
|
+
client: z.ZodNullable<z.ZodString>;
|
|
404
|
+
}, z.core.$strip>>>;
|
|
405
|
+
unreadSince: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
406
|
+
adapterGeneration: z.ZodOptional<z.ZodString>;
|
|
407
|
+
transcriptEpoch: z.ZodOptional<z.ZodNumber>;
|
|
408
|
+
bridge: z.ZodOptional<z.ZodObject<{
|
|
409
|
+
version: z.ZodLiteral<1>;
|
|
410
|
+
runtimeId: z.ZodString;
|
|
411
|
+
nativeSessionId: z.ZodString;
|
|
412
|
+
controllerEpoch: z.ZodOptional<z.ZodString>;
|
|
413
|
+
agentTools: z.ZodBoolean;
|
|
414
|
+
messageDelivery: z.ZodBoolean;
|
|
415
|
+
policyState: z.ZodEnum<{
|
|
416
|
+
active: "active";
|
|
417
|
+
initializing: "initializing";
|
|
418
|
+
lost: "lost";
|
|
419
|
+
unsupported: "unsupported";
|
|
420
|
+
}>;
|
|
421
|
+
policyPhases: z.ZodArray<z.ZodEnum<{
|
|
422
|
+
request: "request";
|
|
423
|
+
tool_call: "tool_call";
|
|
424
|
+
}>>;
|
|
425
|
+
}, z.core.$strip>>;
|
|
426
|
+
promptCache: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
427
|
+
at: z.ZodString;
|
|
428
|
+
provider: z.ZodString;
|
|
429
|
+
model: z.ZodString;
|
|
430
|
+
cacheRead: z.ZodNumber;
|
|
431
|
+
cacheWrite: z.ZodNumber;
|
|
432
|
+
cacheWrite1h: z.ZodNumber;
|
|
433
|
+
}, z.core.$strip>>>;
|
|
434
|
+
cacheAlert: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
435
|
+
ttlSec: z.ZodNullable<z.ZodNumber>;
|
|
436
|
+
warnedFor: z.ZodNullable<z.ZodString>;
|
|
437
|
+
}, z.core.$strip>>>;
|
|
438
|
+
}, z.core.$strip>>;
|
|
439
|
+
tasks: z.ZodArray<z.ZodObject<{
|
|
440
|
+
id: z.ZodString;
|
|
441
|
+
projectId: z.ZodString;
|
|
442
|
+
title: z.ZodString;
|
|
443
|
+
objective: z.ZodString;
|
|
444
|
+
acceptanceCriteria: z.ZodArray<z.ZodString>;
|
|
445
|
+
dependencies: z.ZodArray<z.ZodString>;
|
|
446
|
+
priority: z.ZodUnion<readonly [z.ZodLiteral<0>, z.ZodLiteral<1>, z.ZodLiteral<2>, z.ZodLiteral<3>]>;
|
|
447
|
+
position: z.ZodNumber;
|
|
448
|
+
state: z.ZodEnum<{
|
|
449
|
+
backlog: "backlog";
|
|
450
|
+
canceled: "canceled";
|
|
451
|
+
done: "done";
|
|
452
|
+
in_progress: "in_progress";
|
|
453
|
+
ready: "ready";
|
|
454
|
+
review: "review";
|
|
455
|
+
}>;
|
|
456
|
+
blocked: z.ZodNullable<z.ZodObject<{
|
|
457
|
+
reason: z.ZodString;
|
|
458
|
+
}, z.core.$strip>>;
|
|
459
|
+
notBefore: z.ZodNullable<z.ZodString>;
|
|
460
|
+
policy: z.ZodObject<{
|
|
461
|
+
hostId: z.ZodNullable<z.ZodString>;
|
|
462
|
+
profileId: z.ZodNullable<z.ZodString>;
|
|
463
|
+
workspace: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
464
|
+
mode: z.ZodLiteral<"new_worktree">;
|
|
465
|
+
branch: z.ZodNullable<z.ZodString>;
|
|
466
|
+
base: z.ZodNullable<z.ZodString>;
|
|
467
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
468
|
+
mode: z.ZodLiteral<"existing">;
|
|
469
|
+
workspaceId: z.ZodString;
|
|
470
|
+
}, z.core.$strip>], "mode">;
|
|
471
|
+
continuation: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
472
|
+
enabled: z.ZodLiteral<false>;
|
|
473
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
474
|
+
enabled: z.ZodLiteral<true>;
|
|
475
|
+
objective: z.ZodString;
|
|
476
|
+
maxContinuations: z.ZodNumber;
|
|
477
|
+
maxElapsedMinutes: z.ZodNumber;
|
|
478
|
+
maxTokens: z.ZodNullable<z.ZodNumber>;
|
|
479
|
+
maxCostUsd: z.ZodNullable<z.ZodNumber>;
|
|
480
|
+
}, z.core.$strip>], "enabled">;
|
|
481
|
+
completion: z.ZodObject<{
|
|
482
|
+
checks: z.ZodNullable<z.ZodArray<z.ZodString>>;
|
|
483
|
+
requireHumanReview: z.ZodBoolean;
|
|
484
|
+
}, z.core.$strip>;
|
|
485
|
+
}, z.core.$strip>;
|
|
486
|
+
origin: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
487
|
+
kind: z.ZodLiteral<"manual">;
|
|
488
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
489
|
+
kind: z.ZodLiteral<"automation">;
|
|
490
|
+
automationId: z.ZodString;
|
|
491
|
+
occurrenceId: z.ZodString;
|
|
492
|
+
routine: z.ZodBoolean;
|
|
493
|
+
}, z.core.$strip>], "kind">;
|
|
494
|
+
groupingKey: z.ZodNullable<z.ZodString>;
|
|
495
|
+
parentTaskId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
496
|
+
agentOrigin: z.ZodOptional<z.ZodObject<{
|
|
497
|
+
sessionId: z.ZodString;
|
|
498
|
+
toolCallId: z.ZodString;
|
|
499
|
+
}, z.core.$strip>>;
|
|
500
|
+
githubIssue: z.ZodOptional<z.ZodObject<{
|
|
501
|
+
repository: z.ZodString;
|
|
502
|
+
number: z.ZodNumber;
|
|
503
|
+
url: z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>;
|
|
504
|
+
launchPrompt: z.ZodString;
|
|
505
|
+
}, 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
|
+
currentRunId: z.ZodNullable<z.ZodString>;
|
|
537
|
+
sessionId: z.ZodNullable<z.ZodString>;
|
|
538
|
+
review: z.ZodObject<{
|
|
539
|
+
feedback: z.ZodArray<z.ZodString>;
|
|
540
|
+
changesRequested: z.ZodBoolean;
|
|
541
|
+
}, z.core.$strip>;
|
|
542
|
+
hiddenFromBoard: z.ZodBoolean;
|
|
543
|
+
lastActivityAt: z.ZodString;
|
|
544
|
+
createdAt: z.ZodString;
|
|
545
|
+
updatedAt: z.ZodString;
|
|
546
|
+
}, z.core.$strip>>;
|
|
547
|
+
runs: z.ZodArray<z.ZodObject<{
|
|
548
|
+
id: z.ZodString;
|
|
549
|
+
taskId: z.ZodString;
|
|
550
|
+
sessionId: z.ZodNullable<z.ZodString>;
|
|
551
|
+
hostId: z.ZodNullable<z.ZodString>;
|
|
552
|
+
dispatchKey: z.ZodString;
|
|
553
|
+
attempt: z.ZodNumber;
|
|
554
|
+
state: z.ZodEnum<{
|
|
555
|
+
canceled: "canceled";
|
|
556
|
+
checking: "checking";
|
|
557
|
+
dispatching: "dispatching";
|
|
558
|
+
failed: "failed";
|
|
559
|
+
interrupted: "interrupted";
|
|
560
|
+
queued: "queued";
|
|
561
|
+
running: "running";
|
|
562
|
+
succeeded: "succeeded";
|
|
563
|
+
uncertain: "uncertain";
|
|
564
|
+
waiting_input: "waiting_input";
|
|
565
|
+
}>;
|
|
566
|
+
controlMode: z.ZodEnum<{
|
|
567
|
+
automation: "automation";
|
|
568
|
+
human: "human";
|
|
569
|
+
}>;
|
|
570
|
+
controlRevision: z.ZodNumber;
|
|
571
|
+
continuationsUsed: z.ZodNumber;
|
|
572
|
+
infraRetries: z.ZodNumber;
|
|
573
|
+
nextAttemptAt: z.ZodNullable<z.ZodString>;
|
|
574
|
+
startedAt: z.ZodNullable<z.ZodString>;
|
|
575
|
+
endedAt: z.ZodNullable<z.ZodString>;
|
|
576
|
+
outcome: z.ZodNullable<z.ZodObject<{
|
|
577
|
+
kind: z.ZodEnum<{
|
|
578
|
+
blocked: "blocked";
|
|
579
|
+
canceled: "canceled";
|
|
580
|
+
failed: "failed";
|
|
581
|
+
no_change: "no_change";
|
|
582
|
+
review: "review";
|
|
583
|
+
}>;
|
|
584
|
+
summary: z.ZodString;
|
|
585
|
+
}, z.core.$strip>>;
|
|
586
|
+
limits: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
587
|
+
enabled: z.ZodLiteral<false>;
|
|
588
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
589
|
+
enabled: z.ZodLiteral<true>;
|
|
590
|
+
objective: z.ZodString;
|
|
591
|
+
maxContinuations: z.ZodNumber;
|
|
592
|
+
maxElapsedMinutes: z.ZodNumber;
|
|
593
|
+
maxTokens: z.ZodNullable<z.ZodNumber>;
|
|
594
|
+
maxCostUsd: z.ZodNullable<z.ZodNumber>;
|
|
595
|
+
}, z.core.$strip>], "enabled">;
|
|
596
|
+
usage: z.ZodObject<{
|
|
597
|
+
tokens: z.ZodNullable<z.ZodNumber>;
|
|
598
|
+
costUsd: z.ZodNullable<z.ZodNumber>;
|
|
599
|
+
accounting: z.ZodEnum<{
|
|
600
|
+
available: "available";
|
|
601
|
+
unavailable: "unavailable";
|
|
602
|
+
}>;
|
|
603
|
+
note: z.ZodNullable<z.ZodString>;
|
|
604
|
+
}, z.core.$strip>;
|
|
605
|
+
checks: z.ZodArray<z.ZodObject<{
|
|
606
|
+
command: z.ZodString;
|
|
607
|
+
exitCode: z.ZodNullable<z.ZodNumber>;
|
|
608
|
+
outputTail: z.ZodString;
|
|
609
|
+
}, z.core.$strip>>;
|
|
610
|
+
createdAt: z.ZodString;
|
|
611
|
+
updatedAt: z.ZodString;
|
|
612
|
+
}, z.core.$strip>>;
|
|
613
|
+
automations: z.ZodArray<z.ZodObject<{
|
|
614
|
+
id: z.ZodString;
|
|
615
|
+
name: z.ZodString;
|
|
616
|
+
enabled: z.ZodBoolean;
|
|
617
|
+
projectId: z.ZodString;
|
|
618
|
+
trigger: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
619
|
+
kind: z.ZodLiteral<"manual">;
|
|
620
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
621
|
+
kind: z.ZodLiteral<"once">;
|
|
622
|
+
at: z.ZodString;
|
|
623
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
624
|
+
kind: z.ZodLiteral<"cron">;
|
|
625
|
+
expr: z.ZodString;
|
|
626
|
+
timezone: z.ZodString;
|
|
627
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
628
|
+
kind: z.ZodLiteral<"webhook">;
|
|
629
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
630
|
+
kind: z.ZodLiteral<"dependency">;
|
|
631
|
+
taskId: z.ZodString;
|
|
632
|
+
}, z.core.$strip>], "kind">;
|
|
633
|
+
filters: z.ZodArray<z.ZodObject<{
|
|
634
|
+
path: z.ZodString;
|
|
635
|
+
equals: z.ZodString;
|
|
636
|
+
}, z.core.$strip>>;
|
|
637
|
+
template: z.ZodObject<{
|
|
638
|
+
title: z.ZodString;
|
|
639
|
+
objective: z.ZodString;
|
|
640
|
+
acceptanceCriteria: z.ZodArray<z.ZodString>;
|
|
641
|
+
priority: z.ZodUnion<readonly [z.ZodLiteral<0>, z.ZodLiteral<1>, z.ZodLiteral<2>, z.ZodLiteral<3>]>;
|
|
642
|
+
}, z.core.$strip>;
|
|
643
|
+
hostId: z.ZodNullable<z.ZodString>;
|
|
644
|
+
profileId: z.ZodNullable<z.ZodString>;
|
|
645
|
+
mode: z.ZodEnum<{
|
|
646
|
+
continue: "continue";
|
|
647
|
+
fresh: "fresh";
|
|
648
|
+
watch: "watch";
|
|
649
|
+
}>;
|
|
650
|
+
groupingKey: z.ZodNullable<z.ZodString>;
|
|
651
|
+
overlap: z.ZodEnum<{
|
|
652
|
+
append: "append";
|
|
653
|
+
queue_one: "queue_one";
|
|
654
|
+
skip: "skip";
|
|
655
|
+
}>;
|
|
656
|
+
missed: z.ZodEnum<{
|
|
657
|
+
run_once: "run_once";
|
|
658
|
+
skip: "skip";
|
|
659
|
+
}>;
|
|
660
|
+
continuation: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
661
|
+
enabled: z.ZodLiteral<false>;
|
|
662
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
663
|
+
enabled: z.ZodLiteral<true>;
|
|
664
|
+
objective: z.ZodString;
|
|
665
|
+
maxContinuations: z.ZodNumber;
|
|
666
|
+
maxElapsedMinutes: z.ZodNumber;
|
|
667
|
+
maxTokens: z.ZodNullable<z.ZodNumber>;
|
|
668
|
+
maxCostUsd: z.ZodNullable<z.ZodNumber>;
|
|
669
|
+
}, z.core.$strip>], "enabled">;
|
|
670
|
+
completion: z.ZodObject<{
|
|
671
|
+
checks: z.ZodNullable<z.ZodArray<z.ZodString>>;
|
|
672
|
+
requireHumanReview: z.ZodBoolean;
|
|
673
|
+
}, z.core.$strip>;
|
|
674
|
+
nextAt: z.ZodNullable<z.ZodString>;
|
|
675
|
+
lastEvaluatedAt: z.ZodNullable<z.ZodString>;
|
|
676
|
+
lastOutcome: z.ZodNullable<z.ZodString>;
|
|
677
|
+
failureCount: z.ZodNumber;
|
|
678
|
+
webhookTokenSet: z.ZodBoolean;
|
|
679
|
+
createdAt: z.ZodString;
|
|
680
|
+
updatedAt: z.ZodString;
|
|
681
|
+
}, z.core.$strip>>;
|
|
682
|
+
attention: z.ZodArray<z.ZodObject<{
|
|
683
|
+
id: z.ZodString;
|
|
684
|
+
sessionId: z.ZodNullable<z.ZodString>;
|
|
685
|
+
taskId: z.ZodNullable<z.ZodString>;
|
|
686
|
+
projectId: z.ZodNullable<z.ZodString>;
|
|
687
|
+
reason: z.ZodEnum<{
|
|
688
|
+
cache_expiring: "cache_expiring";
|
|
689
|
+
failed: "failed";
|
|
690
|
+
host_unreachable: "host_unreachable";
|
|
691
|
+
needs_input: "needs_input";
|
|
692
|
+
ready_for_review: "ready_for_review";
|
|
693
|
+
unsupported_interaction: "unsupported_interaction";
|
|
694
|
+
}>;
|
|
695
|
+
severity: z.ZodEnum<{
|
|
696
|
+
critical: "critical";
|
|
697
|
+
info: "info";
|
|
698
|
+
warning: "warning";
|
|
699
|
+
}>;
|
|
700
|
+
summary: z.ZodString;
|
|
701
|
+
interactionId: z.ZodNullable<z.ZodString>;
|
|
702
|
+
deepLink: z.ZodString;
|
|
703
|
+
acknowledgedAt: z.ZodNullable<z.ZodString>;
|
|
704
|
+
resolvedAt: z.ZodNullable<z.ZodString>;
|
|
705
|
+
createdAt: z.ZodString;
|
|
706
|
+
}, z.core.$strip>>;
|
|
707
|
+
interactions: z.ZodArray<z.ZodObject<{
|
|
708
|
+
id: z.ZodString;
|
|
709
|
+
sessionId: z.ZodString;
|
|
710
|
+
revision: z.ZodNumber;
|
|
711
|
+
source: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
712
|
+
kind: z.ZodLiteral<"extension_ui">;
|
|
713
|
+
method: z.ZodEnum<{
|
|
714
|
+
confirm: "confirm";
|
|
715
|
+
editor: "editor";
|
|
716
|
+
input: "input";
|
|
717
|
+
select: "select";
|
|
718
|
+
}>;
|
|
719
|
+
piRequestIds: z.ZodArray<z.ZodString>;
|
|
720
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
721
|
+
kind: z.ZodLiteral<"unsupported_custom">;
|
|
722
|
+
title: z.ZodNullable<z.ZodString>;
|
|
723
|
+
}, z.core.$strip>], "kind">;
|
|
724
|
+
adapterId: z.ZodNullable<z.ZodString>;
|
|
725
|
+
permission: z.ZodOptional<z.ZodObject<{
|
|
726
|
+
kind: z.ZodLiteral<"policy">;
|
|
727
|
+
decisionId: z.ZodString;
|
|
728
|
+
rootTaskId: z.ZodNullable<z.ZodString>;
|
|
729
|
+
ruleId: z.ZodString;
|
|
730
|
+
ruleRevision: z.ZodNumber;
|
|
731
|
+
fingerprint: z.ZodString;
|
|
732
|
+
}, z.core.$strict>>;
|
|
733
|
+
title: z.ZodString;
|
|
734
|
+
presentation: z.ZodType<import("./ui.js").UINode, unknown, z.core.$ZodTypeInternals<import("./ui.js").UINode, unknown>>;
|
|
735
|
+
state: z.ZodPreprocess<z.ZodEnum<{
|
|
736
|
+
canceled: "canceled";
|
|
737
|
+
expired: "expired";
|
|
738
|
+
pending: "pending";
|
|
739
|
+
resolved: "resolved";
|
|
740
|
+
unsupported: "unsupported";
|
|
741
|
+
}>, unknown>;
|
|
742
|
+
resolution: z.ZodNullable<z.ZodObject<{
|
|
743
|
+
by: z.ZodString;
|
|
744
|
+
summary: z.ZodString;
|
|
745
|
+
at: z.ZodString;
|
|
746
|
+
}, z.core.$strip>>;
|
|
747
|
+
createdAt: z.ZodString;
|
|
748
|
+
}, z.core.$strip>>;
|
|
749
|
+
panels: z.ZodArray<z.ZodObject<{
|
|
750
|
+
sessionId: z.ZodString;
|
|
751
|
+
adapterId: z.ZodString;
|
|
752
|
+
slot: z.ZodString;
|
|
753
|
+
title: z.ZodString;
|
|
754
|
+
node: z.ZodNullable<z.ZodType<import("./ui.js").UINode, unknown, z.core.$ZodTypeInternals<import("./ui.js").UINode, unknown>>>;
|
|
755
|
+
webRenderer: z.ZodBoolean;
|
|
756
|
+
mobileFallback: z.ZodNullable<z.ZodString>;
|
|
757
|
+
contribution: z.ZodOptional<z.ZodObject<{
|
|
758
|
+
placement: z.ZodEnum<{
|
|
759
|
+
"composer.pill": "composer.pill";
|
|
760
|
+
"palette.item": "palette.item";
|
|
761
|
+
"session.panel": "session.panel";
|
|
762
|
+
"sidebar.footer": "sidebar.footer";
|
|
763
|
+
"sidebar.header": "sidebar.header";
|
|
764
|
+
"slash.command": "slash.command";
|
|
765
|
+
}>;
|
|
766
|
+
order: z.ZodOptional<z.ZodNumber>;
|
|
767
|
+
actionId: z.ZodOptional<z.ZodString>;
|
|
768
|
+
id: z.ZodString;
|
|
769
|
+
name: z.ZodOptional<z.ZodString>;
|
|
770
|
+
keywords: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
771
|
+
}, z.core.$strict>>;
|
|
772
|
+
state: z.ZodOptional<z.ZodUnknown>;
|
|
773
|
+
adapterGeneration: z.ZodOptional<z.ZodString>;
|
|
774
|
+
updatedAt: z.ZodString;
|
|
775
|
+
}, z.core.$strip>>;
|
|
776
|
+
devices: z.ZodArray<z.ZodObject<{
|
|
777
|
+
id: z.ZodString;
|
|
778
|
+
name: z.ZodString;
|
|
779
|
+
kind: z.ZodEnum<{
|
|
780
|
+
browser: "browser";
|
|
781
|
+
cli: "cli";
|
|
782
|
+
pwa: "pwa";
|
|
783
|
+
terminal: "terminal";
|
|
784
|
+
}>;
|
|
785
|
+
createdAt: z.ZodString;
|
|
786
|
+
lastSeenAt: z.ZodNullable<z.ZodString>;
|
|
787
|
+
revokedAt: z.ZodNullable<z.ZodString>;
|
|
788
|
+
push: z.ZodObject<{
|
|
789
|
+
subscribed: z.ZodBoolean;
|
|
790
|
+
permission: z.ZodEnum<{
|
|
791
|
+
default: "default";
|
|
792
|
+
denied: "denied";
|
|
793
|
+
granted: "granted";
|
|
794
|
+
unknown: "unknown";
|
|
795
|
+
}>;
|
|
796
|
+
}, z.core.$strip>;
|
|
797
|
+
preferredMobile: z.ZodBoolean;
|
|
798
|
+
enrolledVia: z.ZodDefault<z.ZodEnum<{
|
|
799
|
+
admin: "admin";
|
|
800
|
+
approval: "approval";
|
|
801
|
+
enrollment: "enrollment";
|
|
802
|
+
oidc: "oidc";
|
|
803
|
+
passkey: "passkey";
|
|
804
|
+
}>>;
|
|
805
|
+
}, z.core.$strip>>;
|
|
806
|
+
adapters: z.ZodRecord<z.ZodString, z.ZodArray<z.ZodObject<{
|
|
807
|
+
id: z.ZodString;
|
|
808
|
+
version: z.ZodString;
|
|
809
|
+
tier: z.ZodEnum<{
|
|
810
|
+
bundled: "bundled";
|
|
811
|
+
owner: "owner";
|
|
812
|
+
plugin: "plugin";
|
|
813
|
+
project: "project";
|
|
814
|
+
}>;
|
|
815
|
+
target: z.ZodObject<{
|
|
816
|
+
extension: z.ZodString;
|
|
817
|
+
versionRange: z.ZodString;
|
|
818
|
+
testedVersions: z.ZodArray<z.ZodString>;
|
|
819
|
+
}, z.core.$strip>;
|
|
820
|
+
capabilities: z.ZodArray<z.ZodString>;
|
|
821
|
+
webRenderer: z.ZodBoolean;
|
|
822
|
+
status: z.ZodEnum<{
|
|
823
|
+
active: "active";
|
|
824
|
+
disabled: "disabled";
|
|
825
|
+
error: "error";
|
|
826
|
+
}>;
|
|
827
|
+
detail: z.ZodNullable<z.ZodString>;
|
|
828
|
+
}, z.core.$strip>>>;
|
|
829
|
+
dispatchPaused: z.ZodBoolean;
|
|
830
|
+
}, z.core.$strip>;
|
|
831
|
+
export type SyncState = z.infer<typeof SyncState>;
|
|
832
|
+
export declare const Presence: z.ZodObject<{
|
|
833
|
+
foreground: z.ZodBoolean;
|
|
834
|
+
interactedAt: z.ZodNullable<z.ZodString>;
|
|
835
|
+
viewing: z.ZodNullable<z.ZodObject<{
|
|
836
|
+
sessionId: z.ZodString;
|
|
837
|
+
}, z.core.$strip>>;
|
|
838
|
+
}, z.core.$strip>;
|
|
839
|
+
export type Presence = z.infer<typeof Presence>;
|
|
840
|
+
export declare const CLIENT_CAPABILITIES: readonly ["adapter.slots.v1", "timeline.cards.v1"];
|
|
841
|
+
export type ClientCapability = (typeof CLIENT_CAPABILITIES)[number];
|
|
842
|
+
export declare const ClientToServer: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
843
|
+
type: z.ZodLiteral<"hello">;
|
|
844
|
+
cursor: z.ZodNullable<z.ZodNumber>;
|
|
845
|
+
capabilities: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
846
|
+
projectionId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
847
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
848
|
+
type: z.ZodLiteral<"presence">;
|
|
849
|
+
presence: z.ZodObject<{
|
|
850
|
+
foreground: z.ZodBoolean;
|
|
851
|
+
interactedAt: z.ZodNullable<z.ZodString>;
|
|
852
|
+
viewing: z.ZodNullable<z.ZodObject<{
|
|
853
|
+
sessionId: z.ZodString;
|
|
854
|
+
}, z.core.$strip>>;
|
|
855
|
+
}, z.core.$strip>;
|
|
856
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
857
|
+
type: z.ZodLiteral<"ping">;
|
|
858
|
+
}, z.core.$strip>], "type">;
|
|
859
|
+
export type ClientToServer = z.infer<typeof ClientToServer>;
|
|
860
|
+
export declare const ServerToClient: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
861
|
+
type: z.ZodLiteral<"replay">;
|
|
862
|
+
seq: z.ZodNumber;
|
|
863
|
+
events: z.ZodArray<z.ZodObject<{
|
|
864
|
+
hostId: z.ZodOptional<z.ZodString>;
|
|
865
|
+
sessionId: z.ZodOptional<z.ZodString>;
|
|
866
|
+
taskId: z.ZodOptional<z.ZodString>;
|
|
867
|
+
projectId: z.ZodOptional<z.ZodString>;
|
|
868
|
+
seq: z.ZodNumber;
|
|
869
|
+
id: z.ZodString;
|
|
870
|
+
type: z.ZodPreprocess<z.ZodEnum<{
|
|
871
|
+
"adapters.updated": "adapters.updated";
|
|
872
|
+
"attention.updated": "attention.updated";
|
|
873
|
+
"automation.deleted": "automation.deleted";
|
|
874
|
+
"automation.updated": "automation.updated";
|
|
875
|
+
"checkout.updated": "checkout.updated";
|
|
876
|
+
"device.updated": "device.updated";
|
|
877
|
+
diagnostic: "diagnostic";
|
|
878
|
+
"host.updated": "host.updated";
|
|
879
|
+
"interaction.updated": "interaction.updated";
|
|
880
|
+
"occurrence.created": "occurrence.created";
|
|
881
|
+
"occurrence.updated": "occurrence.updated";
|
|
882
|
+
"panel.updated": "panel.updated";
|
|
883
|
+
"profile.deleted": "profile.deleted";
|
|
884
|
+
"profile.updated": "profile.updated";
|
|
885
|
+
"project.deleted": "project.deleted";
|
|
886
|
+
"project.updated": "project.updated";
|
|
887
|
+
"run.updated": "run.updated";
|
|
888
|
+
"session.updated": "session.updated";
|
|
889
|
+
"settings.updated": "settings.updated";
|
|
890
|
+
"task.deleted": "task.deleted";
|
|
891
|
+
"task.updated": "task.updated";
|
|
892
|
+
"transcript.item": "transcript.item";
|
|
893
|
+
"transcript.reset": "transcript.reset";
|
|
894
|
+
"view.deleted": "view.deleted";
|
|
895
|
+
"view.updated": "view.updated";
|
|
896
|
+
"workspace.deleted": "workspace.deleted";
|
|
897
|
+
"workspace.updated": "workspace.updated";
|
|
898
|
+
}>, unknown>;
|
|
899
|
+
at: z.ZodString;
|
|
900
|
+
data: z.ZodUnknown;
|
|
901
|
+
}, z.core.$strip>>;
|
|
902
|
+
capabilities: z.ZodOptional<z.ZodArray<z.ZodEnum<{
|
|
903
|
+
"adapter.slots.v1": "adapter.slots.v1";
|
|
904
|
+
"timeline.cards.v1": "timeline.cards.v1";
|
|
905
|
+
}>>>;
|
|
906
|
+
projectionId: z.ZodOptional<z.ZodString>;
|
|
907
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
908
|
+
type: z.ZodLiteral<"snapshot">;
|
|
909
|
+
seq: z.ZodNumber;
|
|
910
|
+
state: z.ZodObject<{
|
|
911
|
+
hosts: z.ZodArray<z.ZodObject<{
|
|
912
|
+
id: z.ZodString;
|
|
913
|
+
name: z.ZodString;
|
|
914
|
+
platform: z.ZodEnum<{
|
|
915
|
+
darwin: "darwin";
|
|
916
|
+
linux: "linux";
|
|
917
|
+
}>;
|
|
918
|
+
agentVersion: z.ZodString;
|
|
919
|
+
piVersion: z.ZodNullable<z.ZodString>;
|
|
920
|
+
piCompatible: z.ZodBoolean;
|
|
921
|
+
capabilities: z.ZodNullable<z.ZodObject<{
|
|
922
|
+
prompt: z.ZodBoolean;
|
|
923
|
+
steer: z.ZodBoolean;
|
|
924
|
+
followUp: z.ZodBoolean;
|
|
925
|
+
abort: z.ZodBoolean;
|
|
926
|
+
resume: z.ZodBoolean;
|
|
927
|
+
rename: z.ZodBoolean;
|
|
928
|
+
importInactive: z.ZodBoolean;
|
|
929
|
+
extensionDialogs: z.ZodBoolean;
|
|
930
|
+
customUi: z.ZodBoolean;
|
|
931
|
+
widgetsText: z.ZodBoolean;
|
|
932
|
+
widgetsComponent: z.ZodBoolean;
|
|
933
|
+
tokenAccounting: z.ZodBoolean;
|
|
934
|
+
costAccounting: z.ZodBoolean;
|
|
935
|
+
terminal: z.ZodOptional<z.ZodBoolean>;
|
|
936
|
+
sessionControls: z.ZodOptional<z.ZodBoolean>;
|
|
937
|
+
treeNavigation: z.ZodOptional<z.ZodBoolean>;
|
|
938
|
+
agentRequests: z.ZodOptional<z.ZodBoolean>;
|
|
939
|
+
messageDelivery: z.ZodOptional<z.ZodBoolean>;
|
|
940
|
+
policies: z.ZodOptional<z.ZodBoolean>;
|
|
941
|
+
adapterDevelopment: z.ZodOptional<z.ZodBoolean>;
|
|
942
|
+
unsupported: z.ZodArray<z.ZodObject<{
|
|
943
|
+
capability: z.ZodString;
|
|
944
|
+
reason: z.ZodString;
|
|
945
|
+
}, z.core.$strip>>;
|
|
946
|
+
}, z.core.$strip>>;
|
|
947
|
+
connectivity: z.ZodEnum<{
|
|
948
|
+
connected: "connected";
|
|
949
|
+
reconnecting: "reconnecting";
|
|
950
|
+
unreachable: "unreachable";
|
|
951
|
+
}>;
|
|
952
|
+
lastSeenAt: z.ZodNullable<z.ZodString>;
|
|
953
|
+
revokedAt: z.ZodNullable<z.ZodString>;
|
|
954
|
+
createdAt: z.ZodString;
|
|
955
|
+
projectFolders: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
956
|
+
projectScan: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
957
|
+
state: z.ZodEnum<{
|
|
958
|
+
done: "done";
|
|
959
|
+
failed: "failed";
|
|
960
|
+
running: "running";
|
|
961
|
+
}>;
|
|
962
|
+
startedAt: z.ZodString;
|
|
963
|
+
finishedAt: z.ZodNullable<z.ZodString>;
|
|
964
|
+
repositories: z.ZodNumber;
|
|
965
|
+
projectsCreated: z.ZodNumber;
|
|
966
|
+
checkoutsAdded: z.ZodNumber;
|
|
967
|
+
errors: z.ZodArray<z.ZodString>;
|
|
968
|
+
}, z.core.$strip>>>;
|
|
969
|
+
usage: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
970
|
+
provider: z.ZodEnum<{
|
|
971
|
+
anthropic: "anthropic";
|
|
972
|
+
"openai-codex": "openai-codex";
|
|
973
|
+
}>;
|
|
974
|
+
status: z.ZodEnum<{
|
|
975
|
+
available: "available";
|
|
976
|
+
error: "error";
|
|
977
|
+
expired: "expired";
|
|
978
|
+
rejected: "rejected";
|
|
979
|
+
}>;
|
|
980
|
+
message: z.ZodNullable<z.ZodString>;
|
|
981
|
+
windows: z.ZodArray<z.ZodObject<{
|
|
982
|
+
id: z.ZodEnum<{
|
|
983
|
+
five_hour: "five_hour";
|
|
984
|
+
weekly: "weekly";
|
|
985
|
+
}>;
|
|
986
|
+
usedPct: z.ZodNumber;
|
|
987
|
+
resetsAt: z.ZodNullable<z.ZodString>;
|
|
988
|
+
}, z.core.$strip>>;
|
|
989
|
+
fetchedAt: z.ZodString;
|
|
990
|
+
}, z.core.$strip>>>;
|
|
991
|
+
github: z.ZodOptional<z.ZodObject<{
|
|
992
|
+
available: z.ZodBoolean;
|
|
993
|
+
reason: z.ZodNullable<z.ZodString>;
|
|
994
|
+
}, z.core.$strict>>;
|
|
995
|
+
}, z.core.$strip>>;
|
|
996
|
+
projects: z.ZodArray<z.ZodObject<{
|
|
997
|
+
id: z.ZodString;
|
|
998
|
+
name: z.ZodString;
|
|
999
|
+
repoIdentity: z.ZodString;
|
|
1000
|
+
defaultProfileId: z.ZodNullable<z.ZodString>;
|
|
1001
|
+
defaultHostId: z.ZodNullable<z.ZodString>;
|
|
1002
|
+
maxConcurrentRuns: z.ZodNumber;
|
|
1003
|
+
automationEnabled: z.ZodBoolean;
|
|
1004
|
+
setupCommand: z.ZodNullable<z.ZodString>;
|
|
1005
|
+
checks: z.ZodArray<z.ZodString>;
|
|
1006
|
+
workspaceSharing: z.ZodEnum<{
|
|
1007
|
+
shared: "shared";
|
|
1008
|
+
single_writer: "single_writer";
|
|
1009
|
+
}>;
|
|
1010
|
+
worktreeDir: z.ZodDefault<z.ZodString>;
|
|
1011
|
+
ensureSessions: z.ZodDefault<z.ZodBoolean>;
|
|
1012
|
+
removeLanded: z.ZodDefault<z.ZodBoolean>;
|
|
1013
|
+
createdAt: z.ZodString;
|
|
1014
|
+
updatedAt: z.ZodString;
|
|
1015
|
+
}, z.core.$strip>>;
|
|
1016
|
+
checkouts: z.ZodArray<z.ZodObject<{
|
|
1017
|
+
id: z.ZodString;
|
|
1018
|
+
projectId: z.ZodString;
|
|
1019
|
+
hostId: z.ZodString;
|
|
1020
|
+
path: z.ZodString;
|
|
1021
|
+
commonDir: z.ZodString;
|
|
1022
|
+
defaultBranch: z.ZodString;
|
|
1023
|
+
createdAt: z.ZodString;
|
|
1024
|
+
}, z.core.$strip>>;
|
|
1025
|
+
workspaces: z.ZodArray<z.ZodObject<{
|
|
1026
|
+
id: z.ZodString;
|
|
1027
|
+
checkoutId: z.ZodString;
|
|
1028
|
+
projectId: z.ZodString;
|
|
1029
|
+
hostId: z.ZodString;
|
|
1030
|
+
path: z.ZodString;
|
|
1031
|
+
branch: z.ZodNullable<z.ZodString>;
|
|
1032
|
+
baseBranch: z.ZodNullable<z.ZodString>;
|
|
1033
|
+
provenance: z.ZodEnum<{
|
|
1034
|
+
discovered: "discovered";
|
|
1035
|
+
main: "main";
|
|
1036
|
+
managed: "managed";
|
|
1037
|
+
}>;
|
|
1038
|
+
git: z.ZodObject<{
|
|
1039
|
+
dirty: z.ZodBoolean;
|
|
1040
|
+
changedFiles: z.ZodNumber;
|
|
1041
|
+
ahead: z.ZodNumber;
|
|
1042
|
+
behind: z.ZodNumber;
|
|
1043
|
+
unmerged: z.ZodBoolean;
|
|
1044
|
+
head: z.ZodOptional<z.ZodString>;
|
|
1045
|
+
}, z.core.$strip>;
|
|
1046
|
+
setup: z.ZodObject<{
|
|
1047
|
+
state: z.ZodEnum<{
|
|
1048
|
+
failed: "failed";
|
|
1049
|
+
none: "none";
|
|
1050
|
+
running: "running";
|
|
1051
|
+
succeeded: "succeeded";
|
|
1052
|
+
}>;
|
|
1053
|
+
log: z.ZodString;
|
|
1054
|
+
}, z.core.$strip>;
|
|
1055
|
+
archivedAt: z.ZodNullable<z.ZodString>;
|
|
1056
|
+
updatedAt: z.ZodString;
|
|
1057
|
+
github: z.ZodOptional<z.ZodObject<{
|
|
1058
|
+
repository: z.ZodNullable<z.ZodString>;
|
|
1059
|
+
headRepository: z.ZodNullable<z.ZodString>;
|
|
1060
|
+
branch: z.ZodNullable<z.ZodString>;
|
|
1061
|
+
fetchedAt: z.ZodNullable<z.ZodString>;
|
|
1062
|
+
attemptedAt: z.ZodString;
|
|
1063
|
+
status: z.ZodEnum<{
|
|
1064
|
+
ambiguous: "ambiguous";
|
|
1065
|
+
error: "error";
|
|
1066
|
+
ready: "ready";
|
|
1067
|
+
unavailable: "unavailable";
|
|
1068
|
+
}>;
|
|
1069
|
+
reason: z.ZodNullable<z.ZodString>;
|
|
1070
|
+
pullRequest: z.ZodNullable<z.ZodObject<{
|
|
1071
|
+
nodeId: z.ZodOptional<z.ZodString>;
|
|
1072
|
+
number: z.ZodNumber;
|
|
1073
|
+
url: z.ZodString;
|
|
1074
|
+
title: z.ZodString;
|
|
1075
|
+
state: z.ZodEnum<{
|
|
1076
|
+
CLOSED: "CLOSED";
|
|
1077
|
+
MERGED: "MERGED";
|
|
1078
|
+
OPEN: "OPEN";
|
|
1079
|
+
}>;
|
|
1080
|
+
isDraft: z.ZodBoolean;
|
|
1081
|
+
headRefName: z.ZodString;
|
|
1082
|
+
headRefOid: z.ZodString;
|
|
1083
|
+
headRepository: z.ZodNullable<z.ZodString>;
|
|
1084
|
+
baseRefName: z.ZodString;
|
|
1085
|
+
mergeable: z.ZodString;
|
|
1086
|
+
mergeStateStatus: z.ZodString;
|
|
1087
|
+
reviewDecision: z.ZodNullable<z.ZodEnum<{
|
|
1088
|
+
APPROVED: "APPROVED";
|
|
1089
|
+
CHANGES_REQUESTED: "CHANGES_REQUESTED";
|
|
1090
|
+
REVIEW_REQUIRED: "REVIEW_REQUIRED";
|
|
1091
|
+
}>>;
|
|
1092
|
+
mergeQueueEnabled: z.ZodBoolean;
|
|
1093
|
+
inMergeQueue: z.ZodBoolean;
|
|
1094
|
+
autoMergeEnabled: z.ZodBoolean;
|
|
1095
|
+
squashMergeAllowed: z.ZodBoolean;
|
|
1096
|
+
}, z.core.$strict>>;
|
|
1097
|
+
checks: z.ZodArray<z.ZodObject<{
|
|
1098
|
+
id: z.ZodString;
|
|
1099
|
+
name: z.ZodString;
|
|
1100
|
+
state: z.ZodString;
|
|
1101
|
+
bucket: z.ZodEnum<{
|
|
1102
|
+
cancel: "cancel";
|
|
1103
|
+
fail: "fail";
|
|
1104
|
+
pass: "pass";
|
|
1105
|
+
pending: "pending";
|
|
1106
|
+
skipping: "skipping";
|
|
1107
|
+
unknown: "unknown";
|
|
1108
|
+
}>;
|
|
1109
|
+
link: z.ZodNullable<z.ZodString>;
|
|
1110
|
+
workflow: z.ZodNullable<z.ZodString>;
|
|
1111
|
+
event: z.ZodNullable<z.ZodString>;
|
|
1112
|
+
startedAt: z.ZodNullable<z.ZodString>;
|
|
1113
|
+
completedAt: z.ZodNullable<z.ZodString>;
|
|
1114
|
+
description: z.ZodNullable<z.ZodString>;
|
|
1115
|
+
actionsJob: z.ZodNullable<z.ZodObject<{
|
|
1116
|
+
runId: z.ZodString;
|
|
1117
|
+
jobId: z.ZodString;
|
|
1118
|
+
attempt: z.ZodNumber;
|
|
1119
|
+
}, z.core.$strict>>;
|
|
1120
|
+
}, z.core.$strict>>;
|
|
1121
|
+
checksComplete: z.ZodBoolean;
|
|
1122
|
+
threads: z.ZodArray<z.ZodObject<{
|
|
1123
|
+
id: z.ZodString;
|
|
1124
|
+
isResolved: z.ZodLiteral<false>;
|
|
1125
|
+
isOutdated: z.ZodBoolean;
|
|
1126
|
+
path: z.ZodNullable<z.ZodString>;
|
|
1127
|
+
line: z.ZodNullable<z.ZodNumber>;
|
|
1128
|
+
startLine: z.ZodNullable<z.ZodNumber>;
|
|
1129
|
+
side: z.ZodNullable<z.ZodEnum<{
|
|
1130
|
+
LEFT: "LEFT";
|
|
1131
|
+
RIGHT: "RIGHT";
|
|
1132
|
+
}>>;
|
|
1133
|
+
comments: z.ZodArray<z.ZodObject<{
|
|
1134
|
+
id: z.ZodString;
|
|
1135
|
+
author: z.ZodNullable<z.ZodString>;
|
|
1136
|
+
body: z.ZodString;
|
|
1137
|
+
bodyTruncated: z.ZodBoolean;
|
|
1138
|
+
url: z.ZodString;
|
|
1139
|
+
createdAt: z.ZodNullable<z.ZodString>;
|
|
1140
|
+
}, z.core.$strict>>;
|
|
1141
|
+
commentsComplete: z.ZodBoolean;
|
|
1142
|
+
}, z.core.$strict>>;
|
|
1143
|
+
threadsComplete: z.ZodBoolean;
|
|
1144
|
+
truncated: z.ZodBoolean;
|
|
1145
|
+
}, z.core.$strict>>;
|
|
1146
|
+
}, z.core.$strip>>;
|
|
1147
|
+
profiles: z.ZodArray<z.ZodObject<{
|
|
1148
|
+
id: z.ZodString;
|
|
1149
|
+
name: z.ZodString;
|
|
1150
|
+
provider: z.ZodNullable<z.ZodString>;
|
|
1151
|
+
model: z.ZodNullable<z.ZodString>;
|
|
1152
|
+
thinking: z.ZodNullable<z.ZodEnum<{
|
|
1153
|
+
high: "high";
|
|
1154
|
+
low: "low";
|
|
1155
|
+
max: "max";
|
|
1156
|
+
medium: "medium";
|
|
1157
|
+
minimal: "minimal";
|
|
1158
|
+
off: "off";
|
|
1159
|
+
xhigh: "xhigh";
|
|
1160
|
+
}>>;
|
|
1161
|
+
projectTrust: z.ZodEnum<{
|
|
1162
|
+
approve: "approve";
|
|
1163
|
+
ask: "ask";
|
|
1164
|
+
ignore: "ignore";
|
|
1165
|
+
}>;
|
|
1166
|
+
extraArgs: z.ZodArray<z.ZodString>;
|
|
1167
|
+
resources: z.ZodOptional<z.ZodEnum<{
|
|
1168
|
+
all: "all";
|
|
1169
|
+
vanilla: "vanilla";
|
|
1170
|
+
}>>;
|
|
1171
|
+
}, z.core.$strip>>;
|
|
1172
|
+
views: z.ZodArray<z.ZodObject<{
|
|
1173
|
+
id: z.ZodString;
|
|
1174
|
+
name: z.ZodString;
|
|
1175
|
+
mode: z.ZodEnum<{
|
|
1176
|
+
all: "all";
|
|
1177
|
+
pinned: "pinned";
|
|
1178
|
+
}>;
|
|
1179
|
+
projectIds: z.ZodNullable<z.ZodArray<z.ZodString>>;
|
|
1180
|
+
hostIds: z.ZodNullable<z.ZodArray<z.ZodString>>;
|
|
1181
|
+
sessionIds: z.ZodArray<z.ZodString>;
|
|
1182
|
+
clients: z.ZodArray<z.ZodObject<{
|
|
1183
|
+
id: z.ZodString;
|
|
1184
|
+
kind: z.ZodEnum<{
|
|
1185
|
+
herdr: "herdr";
|
|
1186
|
+
tmux: "tmux";
|
|
1187
|
+
}>;
|
|
1188
|
+
name: z.ZodString;
|
|
1189
|
+
machine: z.ZodString;
|
|
1190
|
+
lastSeenAt: z.ZodString;
|
|
1191
|
+
}, z.core.$strip>>;
|
|
1192
|
+
trackerId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1193
|
+
clientId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1194
|
+
createdAt: z.ZodString;
|
|
1195
|
+
updatedAt: z.ZodString;
|
|
1196
|
+
}, z.core.$strip>>;
|
|
1197
|
+
sessions: z.ZodArray<z.ZodObject<{
|
|
1198
|
+
id: z.ZodString;
|
|
1199
|
+
title: z.ZodString;
|
|
1200
|
+
subtitle: z.ZodNullable<z.ZodString>;
|
|
1201
|
+
hostId: z.ZodString;
|
|
1202
|
+
workspaceId: z.ZodNullable<z.ZodString>;
|
|
1203
|
+
projectId: z.ZodNullable<z.ZodString>;
|
|
1204
|
+
cwd: z.ZodString;
|
|
1205
|
+
nativeHandle: z.ZodNullable<z.ZodObject<{
|
|
1206
|
+
sessionId: z.ZodString;
|
|
1207
|
+
sessionFile: z.ZodString;
|
|
1208
|
+
}, z.core.$strip>>;
|
|
1209
|
+
profileSnapshot: z.ZodObject<{
|
|
1210
|
+
id: z.ZodString;
|
|
1211
|
+
name: z.ZodString;
|
|
1212
|
+
provider: z.ZodNullable<z.ZodString>;
|
|
1213
|
+
model: z.ZodNullable<z.ZodString>;
|
|
1214
|
+
thinking: z.ZodNullable<z.ZodEnum<{
|
|
1215
|
+
high: "high";
|
|
1216
|
+
low: "low";
|
|
1217
|
+
max: "max";
|
|
1218
|
+
medium: "medium";
|
|
1219
|
+
minimal: "minimal";
|
|
1220
|
+
off: "off";
|
|
1221
|
+
xhigh: "xhigh";
|
|
1222
|
+
}>>;
|
|
1223
|
+
projectTrust: z.ZodEnum<{
|
|
1224
|
+
approve: "approve";
|
|
1225
|
+
ask: "ask";
|
|
1226
|
+
ignore: "ignore";
|
|
1227
|
+
}>;
|
|
1228
|
+
extraArgs: z.ZodArray<z.ZodString>;
|
|
1229
|
+
resources: z.ZodOptional<z.ZodEnum<{
|
|
1230
|
+
all: "all";
|
|
1231
|
+
vanilla: "vanilla";
|
|
1232
|
+
}>>;
|
|
1233
|
+
}, z.core.$strip>;
|
|
1234
|
+
runtime: z.ZodEnum<{
|
|
1235
|
+
failed: "failed";
|
|
1236
|
+
idle: "idle";
|
|
1237
|
+
interrupted: "interrupted";
|
|
1238
|
+
running: "running";
|
|
1239
|
+
starting: "starting";
|
|
1240
|
+
stopped: "stopped";
|
|
1241
|
+
waiting_input: "waiting_input";
|
|
1242
|
+
}>;
|
|
1243
|
+
runtimeDetail: z.ZodNullable<z.ZodString>;
|
|
1244
|
+
connectivity: z.ZodEnum<{
|
|
1245
|
+
connected: "connected";
|
|
1246
|
+
reconnecting: "reconnecting";
|
|
1247
|
+
unreachable: "unreachable";
|
|
1248
|
+
}>;
|
|
1249
|
+
runId: z.ZodNullable<z.ZodString>;
|
|
1250
|
+
taskId: z.ZodNullable<z.ZodString>;
|
|
1251
|
+
provenance: z.ZodEnum<{
|
|
1252
|
+
created: "created";
|
|
1253
|
+
imported: "imported";
|
|
1254
|
+
subagent: "subagent";
|
|
1255
|
+
}>;
|
|
1256
|
+
readOnly: z.ZodBoolean;
|
|
1257
|
+
lastActivityAt: z.ZodString;
|
|
1258
|
+
archivedAt: z.ZodNullable<z.ZodString>;
|
|
1259
|
+
queue: z.ZodObject<{
|
|
1260
|
+
steering: z.ZodArray<z.ZodString>;
|
|
1261
|
+
followUp: z.ZodArray<z.ZodString>;
|
|
1262
|
+
}, z.core.$strip>;
|
|
1263
|
+
stats: z.ZodNullable<z.ZodObject<{
|
|
1264
|
+
tokens: z.ZodNullable<z.ZodNumber>;
|
|
1265
|
+
costUsd: z.ZodNullable<z.ZodNumber>;
|
|
1266
|
+
watermark: z.ZodOptional<z.ZodObject<{
|
|
1267
|
+
runtimeId: z.ZodString;
|
|
1268
|
+
settleSeq: z.ZodNumber;
|
|
1269
|
+
}, z.core.$strict>>;
|
|
1270
|
+
context: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
1271
|
+
tokens: z.ZodNullable<z.ZodNumber>;
|
|
1272
|
+
window: z.ZodNumber;
|
|
1273
|
+
percent: z.ZodNullable<z.ZodNumber>;
|
|
1274
|
+
}, z.core.$strip>>>;
|
|
1275
|
+
}, z.core.$strip>>;
|
|
1276
|
+
model: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
1277
|
+
provider: z.ZodString;
|
|
1278
|
+
id: z.ZodString;
|
|
1279
|
+
name: z.ZodNullable<z.ZodString>;
|
|
1280
|
+
contextWindow: z.ZodNullable<z.ZodNumber>;
|
|
1281
|
+
reasoning: z.ZodBoolean;
|
|
1282
|
+
scoped: z.ZodOptional<z.ZodBoolean>;
|
|
1283
|
+
thinkingLevels: z.ZodArray<z.ZodEnum<{
|
|
1284
|
+
high: "high";
|
|
1285
|
+
low: "low";
|
|
1286
|
+
max: "max";
|
|
1287
|
+
medium: "medium";
|
|
1288
|
+
minimal: "minimal";
|
|
1289
|
+
off: "off";
|
|
1290
|
+
xhigh: "xhigh";
|
|
1291
|
+
}>>;
|
|
1292
|
+
promptCache: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
1293
|
+
short: z.ZodOptional<z.ZodNumber>;
|
|
1294
|
+
long: z.ZodOptional<z.ZodNumber>;
|
|
1295
|
+
}, z.core.$strip>>>;
|
|
1296
|
+
}, z.core.$strip>>>;
|
|
1297
|
+
thinking: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
|
|
1298
|
+
high: "high";
|
|
1299
|
+
low: "low";
|
|
1300
|
+
max: "max";
|
|
1301
|
+
medium: "medium";
|
|
1302
|
+
minimal: "minimal";
|
|
1303
|
+
off: "off";
|
|
1304
|
+
xhigh: "xhigh";
|
|
1305
|
+
}>>>;
|
|
1306
|
+
compacting: z.ZodOptional<z.ZodBoolean>;
|
|
1307
|
+
lastAssistantText: z.ZodNullable<z.ZodString>;
|
|
1308
|
+
createdAt: z.ZodString;
|
|
1309
|
+
terminal: z.ZodOptional<z.ZodBoolean>;
|
|
1310
|
+
external: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
1311
|
+
client: z.ZodNullable<z.ZodString>;
|
|
1312
|
+
}, z.core.$strip>>>;
|
|
1313
|
+
unreadSince: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1314
|
+
adapterGeneration: z.ZodOptional<z.ZodString>;
|
|
1315
|
+
transcriptEpoch: z.ZodOptional<z.ZodNumber>;
|
|
1316
|
+
bridge: z.ZodOptional<z.ZodObject<{
|
|
1317
|
+
version: z.ZodLiteral<1>;
|
|
1318
|
+
runtimeId: z.ZodString;
|
|
1319
|
+
nativeSessionId: z.ZodString;
|
|
1320
|
+
controllerEpoch: z.ZodOptional<z.ZodString>;
|
|
1321
|
+
agentTools: z.ZodBoolean;
|
|
1322
|
+
messageDelivery: z.ZodBoolean;
|
|
1323
|
+
policyState: z.ZodEnum<{
|
|
1324
|
+
active: "active";
|
|
1325
|
+
initializing: "initializing";
|
|
1326
|
+
lost: "lost";
|
|
1327
|
+
unsupported: "unsupported";
|
|
1328
|
+
}>;
|
|
1329
|
+
policyPhases: z.ZodArray<z.ZodEnum<{
|
|
1330
|
+
request: "request";
|
|
1331
|
+
tool_call: "tool_call";
|
|
1332
|
+
}>>;
|
|
1333
|
+
}, z.core.$strip>>;
|
|
1334
|
+
promptCache: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
1335
|
+
at: z.ZodString;
|
|
1336
|
+
provider: z.ZodString;
|
|
1337
|
+
model: z.ZodString;
|
|
1338
|
+
cacheRead: z.ZodNumber;
|
|
1339
|
+
cacheWrite: z.ZodNumber;
|
|
1340
|
+
cacheWrite1h: z.ZodNumber;
|
|
1341
|
+
}, z.core.$strip>>>;
|
|
1342
|
+
cacheAlert: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
1343
|
+
ttlSec: z.ZodNullable<z.ZodNumber>;
|
|
1344
|
+
warnedFor: z.ZodNullable<z.ZodString>;
|
|
1345
|
+
}, z.core.$strip>>>;
|
|
1346
|
+
}, z.core.$strip>>;
|
|
1347
|
+
tasks: z.ZodArray<z.ZodObject<{
|
|
1348
|
+
id: z.ZodString;
|
|
1349
|
+
projectId: z.ZodString;
|
|
1350
|
+
title: z.ZodString;
|
|
1351
|
+
objective: z.ZodString;
|
|
1352
|
+
acceptanceCriteria: z.ZodArray<z.ZodString>;
|
|
1353
|
+
dependencies: z.ZodArray<z.ZodString>;
|
|
1354
|
+
priority: z.ZodUnion<readonly [z.ZodLiteral<0>, z.ZodLiteral<1>, z.ZodLiteral<2>, z.ZodLiteral<3>]>;
|
|
1355
|
+
position: z.ZodNumber;
|
|
1356
|
+
state: z.ZodEnum<{
|
|
1357
|
+
backlog: "backlog";
|
|
1358
|
+
canceled: "canceled";
|
|
1359
|
+
done: "done";
|
|
1360
|
+
in_progress: "in_progress";
|
|
1361
|
+
ready: "ready";
|
|
1362
|
+
review: "review";
|
|
1363
|
+
}>;
|
|
1364
|
+
blocked: z.ZodNullable<z.ZodObject<{
|
|
1365
|
+
reason: z.ZodString;
|
|
1366
|
+
}, z.core.$strip>>;
|
|
1367
|
+
notBefore: z.ZodNullable<z.ZodString>;
|
|
1368
|
+
policy: z.ZodObject<{
|
|
1369
|
+
hostId: z.ZodNullable<z.ZodString>;
|
|
1370
|
+
profileId: z.ZodNullable<z.ZodString>;
|
|
1371
|
+
workspace: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
1372
|
+
mode: z.ZodLiteral<"new_worktree">;
|
|
1373
|
+
branch: z.ZodNullable<z.ZodString>;
|
|
1374
|
+
base: z.ZodNullable<z.ZodString>;
|
|
1375
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
1376
|
+
mode: z.ZodLiteral<"existing">;
|
|
1377
|
+
workspaceId: z.ZodString;
|
|
1378
|
+
}, z.core.$strip>], "mode">;
|
|
1379
|
+
continuation: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
1380
|
+
enabled: z.ZodLiteral<false>;
|
|
1381
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
1382
|
+
enabled: z.ZodLiteral<true>;
|
|
1383
|
+
objective: z.ZodString;
|
|
1384
|
+
maxContinuations: z.ZodNumber;
|
|
1385
|
+
maxElapsedMinutes: z.ZodNumber;
|
|
1386
|
+
maxTokens: z.ZodNullable<z.ZodNumber>;
|
|
1387
|
+
maxCostUsd: z.ZodNullable<z.ZodNumber>;
|
|
1388
|
+
}, z.core.$strip>], "enabled">;
|
|
1389
|
+
completion: z.ZodObject<{
|
|
1390
|
+
checks: z.ZodNullable<z.ZodArray<z.ZodString>>;
|
|
1391
|
+
requireHumanReview: z.ZodBoolean;
|
|
1392
|
+
}, z.core.$strip>;
|
|
1393
|
+
}, z.core.$strip>;
|
|
1394
|
+
origin: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
1395
|
+
kind: z.ZodLiteral<"manual">;
|
|
1396
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
1397
|
+
kind: z.ZodLiteral<"automation">;
|
|
1398
|
+
automationId: z.ZodString;
|
|
1399
|
+
occurrenceId: z.ZodString;
|
|
1400
|
+
routine: z.ZodBoolean;
|
|
1401
|
+
}, z.core.$strip>], "kind">;
|
|
1402
|
+
groupingKey: z.ZodNullable<z.ZodString>;
|
|
1403
|
+
parentTaskId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1404
|
+
agentOrigin: z.ZodOptional<z.ZodObject<{
|
|
1405
|
+
sessionId: z.ZodString;
|
|
1406
|
+
toolCallId: z.ZodString;
|
|
1407
|
+
}, z.core.$strip>>;
|
|
1408
|
+
githubIssue: z.ZodOptional<z.ZodObject<{
|
|
1409
|
+
repository: z.ZodString;
|
|
1410
|
+
number: z.ZodNumber;
|
|
1411
|
+
url: z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>;
|
|
1412
|
+
launchPrompt: z.ZodString;
|
|
1413
|
+
}, 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
|
+
currentRunId: z.ZodNullable<z.ZodString>;
|
|
1445
|
+
sessionId: z.ZodNullable<z.ZodString>;
|
|
1446
|
+
review: z.ZodObject<{
|
|
1447
|
+
feedback: z.ZodArray<z.ZodString>;
|
|
1448
|
+
changesRequested: z.ZodBoolean;
|
|
1449
|
+
}, z.core.$strip>;
|
|
1450
|
+
hiddenFromBoard: z.ZodBoolean;
|
|
1451
|
+
lastActivityAt: z.ZodString;
|
|
1452
|
+
createdAt: z.ZodString;
|
|
1453
|
+
updatedAt: z.ZodString;
|
|
1454
|
+
}, z.core.$strip>>;
|
|
1455
|
+
runs: z.ZodArray<z.ZodObject<{
|
|
1456
|
+
id: z.ZodString;
|
|
1457
|
+
taskId: z.ZodString;
|
|
1458
|
+
sessionId: z.ZodNullable<z.ZodString>;
|
|
1459
|
+
hostId: z.ZodNullable<z.ZodString>;
|
|
1460
|
+
dispatchKey: z.ZodString;
|
|
1461
|
+
attempt: z.ZodNumber;
|
|
1462
|
+
state: z.ZodEnum<{
|
|
1463
|
+
canceled: "canceled";
|
|
1464
|
+
checking: "checking";
|
|
1465
|
+
dispatching: "dispatching";
|
|
1466
|
+
failed: "failed";
|
|
1467
|
+
interrupted: "interrupted";
|
|
1468
|
+
queued: "queued";
|
|
1469
|
+
running: "running";
|
|
1470
|
+
succeeded: "succeeded";
|
|
1471
|
+
uncertain: "uncertain";
|
|
1472
|
+
waiting_input: "waiting_input";
|
|
1473
|
+
}>;
|
|
1474
|
+
controlMode: z.ZodEnum<{
|
|
1475
|
+
automation: "automation";
|
|
1476
|
+
human: "human";
|
|
1477
|
+
}>;
|
|
1478
|
+
controlRevision: z.ZodNumber;
|
|
1479
|
+
continuationsUsed: z.ZodNumber;
|
|
1480
|
+
infraRetries: z.ZodNumber;
|
|
1481
|
+
nextAttemptAt: z.ZodNullable<z.ZodString>;
|
|
1482
|
+
startedAt: z.ZodNullable<z.ZodString>;
|
|
1483
|
+
endedAt: z.ZodNullable<z.ZodString>;
|
|
1484
|
+
outcome: z.ZodNullable<z.ZodObject<{
|
|
1485
|
+
kind: z.ZodEnum<{
|
|
1486
|
+
blocked: "blocked";
|
|
1487
|
+
canceled: "canceled";
|
|
1488
|
+
failed: "failed";
|
|
1489
|
+
no_change: "no_change";
|
|
1490
|
+
review: "review";
|
|
1491
|
+
}>;
|
|
1492
|
+
summary: z.ZodString;
|
|
1493
|
+
}, z.core.$strip>>;
|
|
1494
|
+
limits: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
1495
|
+
enabled: z.ZodLiteral<false>;
|
|
1496
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
1497
|
+
enabled: z.ZodLiteral<true>;
|
|
1498
|
+
objective: z.ZodString;
|
|
1499
|
+
maxContinuations: z.ZodNumber;
|
|
1500
|
+
maxElapsedMinutes: z.ZodNumber;
|
|
1501
|
+
maxTokens: z.ZodNullable<z.ZodNumber>;
|
|
1502
|
+
maxCostUsd: z.ZodNullable<z.ZodNumber>;
|
|
1503
|
+
}, z.core.$strip>], "enabled">;
|
|
1504
|
+
usage: z.ZodObject<{
|
|
1505
|
+
tokens: z.ZodNullable<z.ZodNumber>;
|
|
1506
|
+
costUsd: z.ZodNullable<z.ZodNumber>;
|
|
1507
|
+
accounting: z.ZodEnum<{
|
|
1508
|
+
available: "available";
|
|
1509
|
+
unavailable: "unavailable";
|
|
1510
|
+
}>;
|
|
1511
|
+
note: z.ZodNullable<z.ZodString>;
|
|
1512
|
+
}, z.core.$strip>;
|
|
1513
|
+
checks: z.ZodArray<z.ZodObject<{
|
|
1514
|
+
command: z.ZodString;
|
|
1515
|
+
exitCode: z.ZodNullable<z.ZodNumber>;
|
|
1516
|
+
outputTail: z.ZodString;
|
|
1517
|
+
}, z.core.$strip>>;
|
|
1518
|
+
createdAt: z.ZodString;
|
|
1519
|
+
updatedAt: z.ZodString;
|
|
1520
|
+
}, z.core.$strip>>;
|
|
1521
|
+
automations: z.ZodArray<z.ZodObject<{
|
|
1522
|
+
id: z.ZodString;
|
|
1523
|
+
name: z.ZodString;
|
|
1524
|
+
enabled: z.ZodBoolean;
|
|
1525
|
+
projectId: z.ZodString;
|
|
1526
|
+
trigger: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
1527
|
+
kind: z.ZodLiteral<"manual">;
|
|
1528
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
1529
|
+
kind: z.ZodLiteral<"once">;
|
|
1530
|
+
at: z.ZodString;
|
|
1531
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
1532
|
+
kind: z.ZodLiteral<"cron">;
|
|
1533
|
+
expr: z.ZodString;
|
|
1534
|
+
timezone: z.ZodString;
|
|
1535
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
1536
|
+
kind: z.ZodLiteral<"webhook">;
|
|
1537
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
1538
|
+
kind: z.ZodLiteral<"dependency">;
|
|
1539
|
+
taskId: z.ZodString;
|
|
1540
|
+
}, z.core.$strip>], "kind">;
|
|
1541
|
+
filters: z.ZodArray<z.ZodObject<{
|
|
1542
|
+
path: z.ZodString;
|
|
1543
|
+
equals: z.ZodString;
|
|
1544
|
+
}, z.core.$strip>>;
|
|
1545
|
+
template: z.ZodObject<{
|
|
1546
|
+
title: z.ZodString;
|
|
1547
|
+
objective: z.ZodString;
|
|
1548
|
+
acceptanceCriteria: z.ZodArray<z.ZodString>;
|
|
1549
|
+
priority: z.ZodUnion<readonly [z.ZodLiteral<0>, z.ZodLiteral<1>, z.ZodLiteral<2>, z.ZodLiteral<3>]>;
|
|
1550
|
+
}, z.core.$strip>;
|
|
1551
|
+
hostId: z.ZodNullable<z.ZodString>;
|
|
1552
|
+
profileId: z.ZodNullable<z.ZodString>;
|
|
1553
|
+
mode: z.ZodEnum<{
|
|
1554
|
+
continue: "continue";
|
|
1555
|
+
fresh: "fresh";
|
|
1556
|
+
watch: "watch";
|
|
1557
|
+
}>;
|
|
1558
|
+
groupingKey: z.ZodNullable<z.ZodString>;
|
|
1559
|
+
overlap: z.ZodEnum<{
|
|
1560
|
+
append: "append";
|
|
1561
|
+
queue_one: "queue_one";
|
|
1562
|
+
skip: "skip";
|
|
1563
|
+
}>;
|
|
1564
|
+
missed: z.ZodEnum<{
|
|
1565
|
+
run_once: "run_once";
|
|
1566
|
+
skip: "skip";
|
|
1567
|
+
}>;
|
|
1568
|
+
continuation: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
1569
|
+
enabled: z.ZodLiteral<false>;
|
|
1570
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
1571
|
+
enabled: z.ZodLiteral<true>;
|
|
1572
|
+
objective: z.ZodString;
|
|
1573
|
+
maxContinuations: z.ZodNumber;
|
|
1574
|
+
maxElapsedMinutes: z.ZodNumber;
|
|
1575
|
+
maxTokens: z.ZodNullable<z.ZodNumber>;
|
|
1576
|
+
maxCostUsd: z.ZodNullable<z.ZodNumber>;
|
|
1577
|
+
}, z.core.$strip>], "enabled">;
|
|
1578
|
+
completion: z.ZodObject<{
|
|
1579
|
+
checks: z.ZodNullable<z.ZodArray<z.ZodString>>;
|
|
1580
|
+
requireHumanReview: z.ZodBoolean;
|
|
1581
|
+
}, z.core.$strip>;
|
|
1582
|
+
nextAt: z.ZodNullable<z.ZodString>;
|
|
1583
|
+
lastEvaluatedAt: z.ZodNullable<z.ZodString>;
|
|
1584
|
+
lastOutcome: z.ZodNullable<z.ZodString>;
|
|
1585
|
+
failureCount: z.ZodNumber;
|
|
1586
|
+
webhookTokenSet: z.ZodBoolean;
|
|
1587
|
+
createdAt: z.ZodString;
|
|
1588
|
+
updatedAt: z.ZodString;
|
|
1589
|
+
}, z.core.$strip>>;
|
|
1590
|
+
attention: z.ZodArray<z.ZodObject<{
|
|
1591
|
+
id: z.ZodString;
|
|
1592
|
+
sessionId: z.ZodNullable<z.ZodString>;
|
|
1593
|
+
taskId: z.ZodNullable<z.ZodString>;
|
|
1594
|
+
projectId: z.ZodNullable<z.ZodString>;
|
|
1595
|
+
reason: z.ZodEnum<{
|
|
1596
|
+
cache_expiring: "cache_expiring";
|
|
1597
|
+
failed: "failed";
|
|
1598
|
+
host_unreachable: "host_unreachable";
|
|
1599
|
+
needs_input: "needs_input";
|
|
1600
|
+
ready_for_review: "ready_for_review";
|
|
1601
|
+
unsupported_interaction: "unsupported_interaction";
|
|
1602
|
+
}>;
|
|
1603
|
+
severity: z.ZodEnum<{
|
|
1604
|
+
critical: "critical";
|
|
1605
|
+
info: "info";
|
|
1606
|
+
warning: "warning";
|
|
1607
|
+
}>;
|
|
1608
|
+
summary: z.ZodString;
|
|
1609
|
+
interactionId: z.ZodNullable<z.ZodString>;
|
|
1610
|
+
deepLink: z.ZodString;
|
|
1611
|
+
acknowledgedAt: z.ZodNullable<z.ZodString>;
|
|
1612
|
+
resolvedAt: z.ZodNullable<z.ZodString>;
|
|
1613
|
+
createdAt: z.ZodString;
|
|
1614
|
+
}, z.core.$strip>>;
|
|
1615
|
+
interactions: z.ZodArray<z.ZodObject<{
|
|
1616
|
+
id: z.ZodString;
|
|
1617
|
+
sessionId: z.ZodString;
|
|
1618
|
+
revision: z.ZodNumber;
|
|
1619
|
+
source: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
1620
|
+
kind: z.ZodLiteral<"extension_ui">;
|
|
1621
|
+
method: z.ZodEnum<{
|
|
1622
|
+
confirm: "confirm";
|
|
1623
|
+
editor: "editor";
|
|
1624
|
+
input: "input";
|
|
1625
|
+
select: "select";
|
|
1626
|
+
}>;
|
|
1627
|
+
piRequestIds: z.ZodArray<z.ZodString>;
|
|
1628
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
1629
|
+
kind: z.ZodLiteral<"unsupported_custom">;
|
|
1630
|
+
title: z.ZodNullable<z.ZodString>;
|
|
1631
|
+
}, z.core.$strip>], "kind">;
|
|
1632
|
+
adapterId: z.ZodNullable<z.ZodString>;
|
|
1633
|
+
permission: z.ZodOptional<z.ZodObject<{
|
|
1634
|
+
kind: z.ZodLiteral<"policy">;
|
|
1635
|
+
decisionId: z.ZodString;
|
|
1636
|
+
rootTaskId: z.ZodNullable<z.ZodString>;
|
|
1637
|
+
ruleId: z.ZodString;
|
|
1638
|
+
ruleRevision: z.ZodNumber;
|
|
1639
|
+
fingerprint: z.ZodString;
|
|
1640
|
+
}, z.core.$strict>>;
|
|
1641
|
+
title: z.ZodString;
|
|
1642
|
+
presentation: z.ZodType<import("./ui.js").UINode, unknown, z.core.$ZodTypeInternals<import("./ui.js").UINode, unknown>>;
|
|
1643
|
+
state: z.ZodPreprocess<z.ZodEnum<{
|
|
1644
|
+
canceled: "canceled";
|
|
1645
|
+
expired: "expired";
|
|
1646
|
+
pending: "pending";
|
|
1647
|
+
resolved: "resolved";
|
|
1648
|
+
unsupported: "unsupported";
|
|
1649
|
+
}>, unknown>;
|
|
1650
|
+
resolution: z.ZodNullable<z.ZodObject<{
|
|
1651
|
+
by: z.ZodString;
|
|
1652
|
+
summary: z.ZodString;
|
|
1653
|
+
at: z.ZodString;
|
|
1654
|
+
}, z.core.$strip>>;
|
|
1655
|
+
createdAt: z.ZodString;
|
|
1656
|
+
}, z.core.$strip>>;
|
|
1657
|
+
panels: z.ZodArray<z.ZodObject<{
|
|
1658
|
+
sessionId: z.ZodString;
|
|
1659
|
+
adapterId: z.ZodString;
|
|
1660
|
+
slot: z.ZodString;
|
|
1661
|
+
title: z.ZodString;
|
|
1662
|
+
node: z.ZodNullable<z.ZodType<import("./ui.js").UINode, unknown, z.core.$ZodTypeInternals<import("./ui.js").UINode, unknown>>>;
|
|
1663
|
+
webRenderer: z.ZodBoolean;
|
|
1664
|
+
mobileFallback: z.ZodNullable<z.ZodString>;
|
|
1665
|
+
contribution: z.ZodOptional<z.ZodObject<{
|
|
1666
|
+
placement: z.ZodEnum<{
|
|
1667
|
+
"composer.pill": "composer.pill";
|
|
1668
|
+
"palette.item": "palette.item";
|
|
1669
|
+
"session.panel": "session.panel";
|
|
1670
|
+
"sidebar.footer": "sidebar.footer";
|
|
1671
|
+
"sidebar.header": "sidebar.header";
|
|
1672
|
+
"slash.command": "slash.command";
|
|
1673
|
+
}>;
|
|
1674
|
+
order: z.ZodOptional<z.ZodNumber>;
|
|
1675
|
+
actionId: z.ZodOptional<z.ZodString>;
|
|
1676
|
+
id: z.ZodString;
|
|
1677
|
+
name: z.ZodOptional<z.ZodString>;
|
|
1678
|
+
keywords: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
1679
|
+
}, z.core.$strict>>;
|
|
1680
|
+
state: z.ZodOptional<z.ZodUnknown>;
|
|
1681
|
+
adapterGeneration: z.ZodOptional<z.ZodString>;
|
|
1682
|
+
updatedAt: z.ZodString;
|
|
1683
|
+
}, z.core.$strip>>;
|
|
1684
|
+
devices: z.ZodArray<z.ZodObject<{
|
|
1685
|
+
id: z.ZodString;
|
|
1686
|
+
name: z.ZodString;
|
|
1687
|
+
kind: z.ZodEnum<{
|
|
1688
|
+
browser: "browser";
|
|
1689
|
+
cli: "cli";
|
|
1690
|
+
pwa: "pwa";
|
|
1691
|
+
terminal: "terminal";
|
|
1692
|
+
}>;
|
|
1693
|
+
createdAt: z.ZodString;
|
|
1694
|
+
lastSeenAt: z.ZodNullable<z.ZodString>;
|
|
1695
|
+
revokedAt: z.ZodNullable<z.ZodString>;
|
|
1696
|
+
push: z.ZodObject<{
|
|
1697
|
+
subscribed: z.ZodBoolean;
|
|
1698
|
+
permission: z.ZodEnum<{
|
|
1699
|
+
default: "default";
|
|
1700
|
+
denied: "denied";
|
|
1701
|
+
granted: "granted";
|
|
1702
|
+
unknown: "unknown";
|
|
1703
|
+
}>;
|
|
1704
|
+
}, z.core.$strip>;
|
|
1705
|
+
preferredMobile: z.ZodBoolean;
|
|
1706
|
+
enrolledVia: z.ZodDefault<z.ZodEnum<{
|
|
1707
|
+
admin: "admin";
|
|
1708
|
+
approval: "approval";
|
|
1709
|
+
enrollment: "enrollment";
|
|
1710
|
+
oidc: "oidc";
|
|
1711
|
+
passkey: "passkey";
|
|
1712
|
+
}>>;
|
|
1713
|
+
}, z.core.$strip>>;
|
|
1714
|
+
adapters: z.ZodRecord<z.ZodString, z.ZodArray<z.ZodObject<{
|
|
1715
|
+
id: z.ZodString;
|
|
1716
|
+
version: z.ZodString;
|
|
1717
|
+
tier: z.ZodEnum<{
|
|
1718
|
+
bundled: "bundled";
|
|
1719
|
+
owner: "owner";
|
|
1720
|
+
plugin: "plugin";
|
|
1721
|
+
project: "project";
|
|
1722
|
+
}>;
|
|
1723
|
+
target: z.ZodObject<{
|
|
1724
|
+
extension: z.ZodString;
|
|
1725
|
+
versionRange: z.ZodString;
|
|
1726
|
+
testedVersions: z.ZodArray<z.ZodString>;
|
|
1727
|
+
}, z.core.$strip>;
|
|
1728
|
+
capabilities: z.ZodArray<z.ZodString>;
|
|
1729
|
+
webRenderer: z.ZodBoolean;
|
|
1730
|
+
status: z.ZodEnum<{
|
|
1731
|
+
active: "active";
|
|
1732
|
+
disabled: "disabled";
|
|
1733
|
+
error: "error";
|
|
1734
|
+
}>;
|
|
1735
|
+
detail: z.ZodNullable<z.ZodString>;
|
|
1736
|
+
}, z.core.$strip>>>;
|
|
1737
|
+
dispatchPaused: z.ZodBoolean;
|
|
1738
|
+
}, z.core.$strip>;
|
|
1739
|
+
capabilities: z.ZodOptional<z.ZodArray<z.ZodEnum<{
|
|
1740
|
+
"adapter.slots.v1": "adapter.slots.v1";
|
|
1741
|
+
"timeline.cards.v1": "timeline.cards.v1";
|
|
1742
|
+
}>>>;
|
|
1743
|
+
projectionId: z.ZodOptional<z.ZodString>;
|
|
1744
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
1745
|
+
type: z.ZodLiteral<"event">;
|
|
1746
|
+
event: z.ZodObject<{
|
|
1747
|
+
hostId: z.ZodOptional<z.ZodString>;
|
|
1748
|
+
sessionId: z.ZodOptional<z.ZodString>;
|
|
1749
|
+
taskId: z.ZodOptional<z.ZodString>;
|
|
1750
|
+
projectId: z.ZodOptional<z.ZodString>;
|
|
1751
|
+
seq: z.ZodNumber;
|
|
1752
|
+
id: z.ZodString;
|
|
1753
|
+
type: z.ZodPreprocess<z.ZodEnum<{
|
|
1754
|
+
"adapters.updated": "adapters.updated";
|
|
1755
|
+
"attention.updated": "attention.updated";
|
|
1756
|
+
"automation.deleted": "automation.deleted";
|
|
1757
|
+
"automation.updated": "automation.updated";
|
|
1758
|
+
"checkout.updated": "checkout.updated";
|
|
1759
|
+
"device.updated": "device.updated";
|
|
1760
|
+
diagnostic: "diagnostic";
|
|
1761
|
+
"host.updated": "host.updated";
|
|
1762
|
+
"interaction.updated": "interaction.updated";
|
|
1763
|
+
"occurrence.created": "occurrence.created";
|
|
1764
|
+
"occurrence.updated": "occurrence.updated";
|
|
1765
|
+
"panel.updated": "panel.updated";
|
|
1766
|
+
"profile.deleted": "profile.deleted";
|
|
1767
|
+
"profile.updated": "profile.updated";
|
|
1768
|
+
"project.deleted": "project.deleted";
|
|
1769
|
+
"project.updated": "project.updated";
|
|
1770
|
+
"run.updated": "run.updated";
|
|
1771
|
+
"session.updated": "session.updated";
|
|
1772
|
+
"settings.updated": "settings.updated";
|
|
1773
|
+
"task.deleted": "task.deleted";
|
|
1774
|
+
"task.updated": "task.updated";
|
|
1775
|
+
"transcript.item": "transcript.item";
|
|
1776
|
+
"transcript.reset": "transcript.reset";
|
|
1777
|
+
"view.deleted": "view.deleted";
|
|
1778
|
+
"view.updated": "view.updated";
|
|
1779
|
+
"workspace.deleted": "workspace.deleted";
|
|
1780
|
+
"workspace.updated": "workspace.updated";
|
|
1781
|
+
}>, unknown>;
|
|
1782
|
+
at: z.ZodString;
|
|
1783
|
+
data: z.ZodUnknown;
|
|
1784
|
+
}, z.core.$strip>;
|
|
1785
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
1786
|
+
type: z.ZodLiteral<"stream">;
|
|
1787
|
+
delta: z.ZodObject<{
|
|
1788
|
+
sessionId: z.ZodString;
|
|
1789
|
+
itemId: z.ZodString;
|
|
1790
|
+
kind: z.ZodEnum<{
|
|
1791
|
+
text: "text";
|
|
1792
|
+
thinking: "thinking";
|
|
1793
|
+
tool_args: "tool_args";
|
|
1794
|
+
tool_output: "tool_output";
|
|
1795
|
+
}>;
|
|
1796
|
+
delta: z.ZodString;
|
|
1797
|
+
order: z.ZodOptional<z.ZodNumber>;
|
|
1798
|
+
}, z.core.$strip>;
|
|
1799
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
1800
|
+
type: z.ZodLiteral<"pong">;
|
|
1801
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
1802
|
+
type: z.ZodLiteral<"force_logout">;
|
|
1803
|
+
reason: z.ZodString;
|
|
1804
|
+
}, z.core.$strip>], "type">;
|
|
1805
|
+
export type ServerToClient = z.infer<typeof ServerToClient>;
|
|
1806
|
+
//# sourceMappingURL=client-wire.d.ts.map
|