@linkshell/host 0.4.70 → 0.4.71
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/host/src/acp-settings.js +1 -1
- package/dist/host/src/acp-settings.js.map +1 -1
- package/dist/host/src/computer-preview.d.ts +1 -9
- package/dist/host/src/drivers/acp/questions.js +2 -2
- package/dist/host/src/drivers/acp/questions.js.map +1 -1
- package/dist/host/src/drivers/claude/driver.js +4 -1
- package/dist/host/src/drivers/claude/driver.js.map +1 -1
- package/dist/host/src/drivers/claude/tasks.d.ts +3 -3
- package/dist/host/src/drivers/claude/transcript.d.ts +383 -348
- package/dist/host/src/fs.d.ts +9 -9
- package/dist/host/src/hub.d.ts +85 -80
- package/dist/host/src/input.d.ts +43 -89
- package/dist/host/src/input.js +1 -1
- package/dist/host/src/input.js.map +1 -1
- package/dist/host/src/screen-session.d.ts +3 -17
- package/dist/host/src/screen-session.js +2 -2
- package/dist/host/src/screen-session.js.map +1 -1
- package/dist/host/src/terminals.d.ts +9 -9
- package/dist/host/tsconfig.tsbuildinfo +1 -1
- package/dist/wire/src/acp.d.ts +68 -430
- package/dist/wire/src/acp.js +5 -5
- package/dist/wire/src/acp.js.map +1 -1
- package/dist/wire/src/async-questions.d.ts +2 -10
- package/dist/wire/src/computer-preview.d.ts +1 -15
- package/dist/wire/src/computer-preview.js +1 -1
- package/dist/wire/src/computer-preview.js.map +1 -1
- package/dist/wire/src/content.d.ts +207 -372
- package/dist/wire/src/content.js +4 -4
- package/dist/wire/src/content.js.map +1 -1
- package/dist/wire/src/editor.d.ts +48 -592
- package/dist/wire/src/envelopes.js +13 -1
- package/dist/wire/src/envelopes.js.map +1 -1
- package/dist/wire/src/goal.d.ts +15 -48
- package/dist/wire/src/live-activity.d.ts +83 -212
- package/dist/wire/src/live-activity.js +1 -1
- package/dist/wire/src/live-activity.js.map +1 -1
- package/dist/wire/src/model.d.ts +454 -2309
- package/dist/wire/src/relay.d.ts +41 -267
- package/dist/wire/src/relay.js +1 -1
- package/dist/wire/src/relay.js.map +1 -1
- package/dist/wire/src/rpc-mcp.d.ts +21 -136
- package/dist/wire/src/rpc-mcp.js +1 -1
- package/dist/wire/src/rpc-mcp.js.map +1 -1
- package/dist/wire/src/rpc.d.ts +6829 -31501
- package/dist/wire/src/rpc.js +5 -5
- package/dist/wire/src/rpc.js.map +1 -1
- package/dist/wire/src/side.d.ts +13 -61
- package/dist/wire/src/updates.d.ts +1815 -6935
- package/dist/wire/src/usage.d.ts +17 -195
- package/dist/wire/src/watch.d.ts +223 -1141
- package/dist/wire/src/workflow.d.ts +46 -139
- package/package.json +4 -4
package/dist/wire/src/model.d.ts
CHANGED
|
@@ -9,54 +9,26 @@ import { z } from "zod";
|
|
|
9
9
|
* - remote: structured control only; the desktop uses LinkShell's own UI.
|
|
10
10
|
* - terminal: PTY only.
|
|
11
11
|
*/
|
|
12
|
-
export declare const agentTierSchema: z.ZodEnum<
|
|
12
|
+
export declare const agentTierSchema: z.ZodEnum<{
|
|
13
|
+
terminal: "terminal";
|
|
14
|
+
remote: "remote";
|
|
15
|
+
multi_client: "multi_client";
|
|
16
|
+
handoff: "handoff";
|
|
17
|
+
}>;
|
|
13
18
|
export type AgentTier = z.infer<typeof agentTierSchema>;
|
|
14
19
|
export declare const agentCapabilitiesSchema: z.ZodObject<{
|
|
15
20
|
interrupt: z.ZodBoolean;
|
|
16
|
-
/** Inject a message into a running turn instead of queueing it. */
|
|
17
21
|
steer: z.ZodBoolean;
|
|
18
22
|
permissions: z.ZodBoolean;
|
|
19
23
|
images: z.ZodBoolean;
|
|
20
24
|
audio: z.ZodOptional<z.ZodBoolean>;
|
|
21
25
|
embeddedContext: z.ZodOptional<z.ZodBoolean>;
|
|
22
|
-
/** Host-managed ACP settings and optional protocol features. */
|
|
23
26
|
acp: z.ZodOptional<z.ZodBoolean>;
|
|
24
|
-
/**
|
|
25
|
-
* The agent forks sessions itself, keeping everything it knew. Every agent's
|
|
26
|
-
* sessions can be forked: without this (or from a single reply, where the
|
|
27
|
-
* agent only forks whole sessions) LinkShell makes the fork — the new session
|
|
28
|
-
* shows the conversation and its agent is told it as text.
|
|
29
|
-
*/
|
|
30
27
|
fork: z.ZodBoolean;
|
|
31
|
-
/** The agent has a side conversation of its own (`sessions.side`). Absent from older hosts. */
|
|
32
28
|
side: z.ZodOptional<z.ZodBoolean>;
|
|
33
29
|
models: z.ZodBoolean;
|
|
34
30
|
modes: z.ZodBoolean;
|
|
35
|
-
},
|
|
36
|
-
interrupt: boolean;
|
|
37
|
-
steer: boolean;
|
|
38
|
-
permissions: boolean;
|
|
39
|
-
images: boolean;
|
|
40
|
-
fork: boolean;
|
|
41
|
-
models: boolean;
|
|
42
|
-
modes: boolean;
|
|
43
|
-
audio?: boolean | undefined;
|
|
44
|
-
embeddedContext?: boolean | undefined;
|
|
45
|
-
acp?: boolean | undefined;
|
|
46
|
-
side?: boolean | undefined;
|
|
47
|
-
}, {
|
|
48
|
-
interrupt: boolean;
|
|
49
|
-
steer: boolean;
|
|
50
|
-
permissions: boolean;
|
|
51
|
-
images: boolean;
|
|
52
|
-
fork: boolean;
|
|
53
|
-
models: boolean;
|
|
54
|
-
modes: boolean;
|
|
55
|
-
audio?: boolean | undefined;
|
|
56
|
-
embeddedContext?: boolean | undefined;
|
|
57
|
-
acp?: boolean | undefined;
|
|
58
|
-
side?: boolean | undefined;
|
|
59
|
-
}>;
|
|
31
|
+
}, z.core.$strip>;
|
|
60
32
|
export type AgentCapabilities = z.infer<typeof agentCapabilitiesSchema>;
|
|
61
33
|
/**
|
|
62
34
|
* How the agent authenticates on this machine, as the agent itself reports it
|
|
@@ -64,180 +36,115 @@ export type AgentCapabilities = z.infer<typeof agentCapabilitiesSchema>;
|
|
|
64
36
|
* the credentials; it runs agents with the user's own environment and config.
|
|
65
37
|
*/
|
|
66
38
|
export declare const agentAuthSchema: z.ZodObject<{
|
|
67
|
-
state: z.ZodEnum<
|
|
68
|
-
|
|
39
|
+
state: z.ZodEnum<{
|
|
40
|
+
unknown: "unknown";
|
|
41
|
+
ok: "ok";
|
|
42
|
+
missing: "missing";
|
|
43
|
+
}>;
|
|
69
44
|
method: z.ZodOptional<z.ZodString>;
|
|
70
|
-
/** What the user should do when state is "missing". */
|
|
71
45
|
hint: z.ZodOptional<z.ZodString>;
|
|
72
|
-
},
|
|
73
|
-
state: "unknown" | "ok" | "missing";
|
|
74
|
-
hint?: string | undefined;
|
|
75
|
-
method?: string | undefined;
|
|
76
|
-
}, {
|
|
77
|
-
state: "unknown" | "ok" | "missing";
|
|
78
|
-
hint?: string | undefined;
|
|
79
|
-
method?: string | undefined;
|
|
80
|
-
}>;
|
|
46
|
+
}, z.core.$strip>;
|
|
81
47
|
export type AgentAuth = z.infer<typeof agentAuthSchema>;
|
|
82
48
|
export declare const agentInfoSchema: z.ZodObject<{
|
|
83
49
|
id: z.ZodString;
|
|
84
50
|
label: z.ZodString;
|
|
85
|
-
tier: z.ZodEnum<
|
|
51
|
+
tier: z.ZodEnum<{
|
|
52
|
+
terminal: "terminal";
|
|
53
|
+
remote: "remote";
|
|
54
|
+
multi_client: "multi_client";
|
|
55
|
+
handoff: "handoff";
|
|
56
|
+
}>;
|
|
86
57
|
installed: z.ZodBoolean;
|
|
87
58
|
version: z.ZodOptional<z.ZodString>;
|
|
88
|
-
/** Human-readable reason when the agent is installed but unusable. */
|
|
89
59
|
problem: z.ZodOptional<z.ZodString>;
|
|
90
60
|
auth: z.ZodOptional<z.ZodObject<{
|
|
91
|
-
state: z.ZodEnum<
|
|
92
|
-
|
|
61
|
+
state: z.ZodEnum<{
|
|
62
|
+
unknown: "unknown";
|
|
63
|
+
ok: "ok";
|
|
64
|
+
missing: "missing";
|
|
65
|
+
}>;
|
|
93
66
|
method: z.ZodOptional<z.ZodString>;
|
|
94
|
-
/** What the user should do when state is "missing". */
|
|
95
67
|
hint: z.ZodOptional<z.ZodString>;
|
|
96
|
-
},
|
|
97
|
-
state: "unknown" | "ok" | "missing";
|
|
98
|
-
hint?: string | undefined;
|
|
99
|
-
method?: string | undefined;
|
|
100
|
-
}, {
|
|
101
|
-
state: "unknown" | "ok" | "missing";
|
|
102
|
-
hint?: string | undefined;
|
|
103
|
-
method?: string | undefined;
|
|
104
|
-
}>>;
|
|
68
|
+
}, z.core.$strip>>;
|
|
105
69
|
capabilities: z.ZodObject<{
|
|
106
70
|
interrupt: z.ZodBoolean;
|
|
107
|
-
/** Inject a message into a running turn instead of queueing it. */
|
|
108
71
|
steer: z.ZodBoolean;
|
|
109
72
|
permissions: z.ZodBoolean;
|
|
110
73
|
images: z.ZodBoolean;
|
|
111
74
|
audio: z.ZodOptional<z.ZodBoolean>;
|
|
112
75
|
embeddedContext: z.ZodOptional<z.ZodBoolean>;
|
|
113
|
-
/** Host-managed ACP settings and optional protocol features. */
|
|
114
76
|
acp: z.ZodOptional<z.ZodBoolean>;
|
|
115
|
-
/**
|
|
116
|
-
* The agent forks sessions itself, keeping everything it knew. Every agent's
|
|
117
|
-
* sessions can be forked: without this (or from a single reply, where the
|
|
118
|
-
* agent only forks whole sessions) LinkShell makes the fork — the new session
|
|
119
|
-
* shows the conversation and its agent is told it as text.
|
|
120
|
-
*/
|
|
121
77
|
fork: z.ZodBoolean;
|
|
122
|
-
/** The agent has a side conversation of its own (`sessions.side`). Absent from older hosts. */
|
|
123
78
|
side: z.ZodOptional<z.ZodBoolean>;
|
|
124
79
|
models: z.ZodBoolean;
|
|
125
80
|
modes: z.ZodBoolean;
|
|
126
|
-
},
|
|
127
|
-
|
|
128
|
-
steer: boolean;
|
|
129
|
-
permissions: boolean;
|
|
130
|
-
images: boolean;
|
|
131
|
-
fork: boolean;
|
|
132
|
-
models: boolean;
|
|
133
|
-
modes: boolean;
|
|
134
|
-
audio?: boolean | undefined;
|
|
135
|
-
embeddedContext?: boolean | undefined;
|
|
136
|
-
acp?: boolean | undefined;
|
|
137
|
-
side?: boolean | undefined;
|
|
138
|
-
}, {
|
|
139
|
-
interrupt: boolean;
|
|
140
|
-
steer: boolean;
|
|
141
|
-
permissions: boolean;
|
|
142
|
-
images: boolean;
|
|
143
|
-
fork: boolean;
|
|
144
|
-
models: boolean;
|
|
145
|
-
modes: boolean;
|
|
146
|
-
audio?: boolean | undefined;
|
|
147
|
-
embeddedContext?: boolean | undefined;
|
|
148
|
-
acp?: boolean | undefined;
|
|
149
|
-
side?: boolean | undefined;
|
|
150
|
-
}>;
|
|
151
|
-
}, "strip", z.ZodTypeAny, {
|
|
152
|
-
id: string;
|
|
153
|
-
label: string;
|
|
154
|
-
tier: "terminal" | "remote" | "multi_client" | "handoff";
|
|
155
|
-
installed: boolean;
|
|
156
|
-
capabilities: {
|
|
157
|
-
interrupt: boolean;
|
|
158
|
-
steer: boolean;
|
|
159
|
-
permissions: boolean;
|
|
160
|
-
images: boolean;
|
|
161
|
-
fork: boolean;
|
|
162
|
-
models: boolean;
|
|
163
|
-
modes: boolean;
|
|
164
|
-
audio?: boolean | undefined;
|
|
165
|
-
embeddedContext?: boolean | undefined;
|
|
166
|
-
acp?: boolean | undefined;
|
|
167
|
-
side?: boolean | undefined;
|
|
168
|
-
};
|
|
169
|
-
version?: string | undefined;
|
|
170
|
-
problem?: string | undefined;
|
|
171
|
-
auth?: {
|
|
172
|
-
state: "unknown" | "ok" | "missing";
|
|
173
|
-
hint?: string | undefined;
|
|
174
|
-
method?: string | undefined;
|
|
175
|
-
} | undefined;
|
|
176
|
-
}, {
|
|
177
|
-
id: string;
|
|
178
|
-
label: string;
|
|
179
|
-
tier: "terminal" | "remote" | "multi_client" | "handoff";
|
|
180
|
-
installed: boolean;
|
|
181
|
-
capabilities: {
|
|
182
|
-
interrupt: boolean;
|
|
183
|
-
steer: boolean;
|
|
184
|
-
permissions: boolean;
|
|
185
|
-
images: boolean;
|
|
186
|
-
fork: boolean;
|
|
187
|
-
models: boolean;
|
|
188
|
-
modes: boolean;
|
|
189
|
-
audio?: boolean | undefined;
|
|
190
|
-
embeddedContext?: boolean | undefined;
|
|
191
|
-
acp?: boolean | undefined;
|
|
192
|
-
side?: boolean | undefined;
|
|
193
|
-
};
|
|
194
|
-
version?: string | undefined;
|
|
195
|
-
problem?: string | undefined;
|
|
196
|
-
auth?: {
|
|
197
|
-
state: "unknown" | "ok" | "missing";
|
|
198
|
-
hint?: string | undefined;
|
|
199
|
-
method?: string | undefined;
|
|
200
|
-
} | undefined;
|
|
201
|
-
}>;
|
|
81
|
+
}, z.core.$strip>;
|
|
82
|
+
}, z.core.$strip>;
|
|
202
83
|
export type AgentInfo = z.infer<typeof agentInfoSchema>;
|
|
203
84
|
/**
|
|
204
85
|
* Who is driving a handoff session right now: the desktop's native UI, this
|
|
205
86
|
* host on behalf of a device, or nobody (either side can continue).
|
|
206
87
|
*/
|
|
207
|
-
export declare const sessionDriverSchema: z.ZodEnum<
|
|
88
|
+
export declare const sessionDriverSchema: z.ZodEnum<{
|
|
89
|
+
desktop: "desktop";
|
|
90
|
+
remote: "remote";
|
|
91
|
+
none: "none";
|
|
92
|
+
}>;
|
|
208
93
|
export type SessionDriver = z.infer<typeof sessionDriverSchema>;
|
|
209
|
-
export declare const sessionStateSchema: z.ZodEnum<
|
|
94
|
+
export declare const sessionStateSchema: z.ZodEnum<{
|
|
95
|
+
error: "error";
|
|
96
|
+
unknown: "unknown";
|
|
97
|
+
running: "running";
|
|
98
|
+
idle: "idle";
|
|
99
|
+
waiting: "waiting";
|
|
100
|
+
offline: "offline";
|
|
101
|
+
}>;
|
|
210
102
|
export type SessionState = z.infer<typeof sessionStateSchema>;
|
|
211
|
-
export declare const toolKindSchema: z.ZodEnum<
|
|
103
|
+
export declare const toolKindSchema: z.ZodEnum<{
|
|
104
|
+
search: "search";
|
|
105
|
+
delete: "delete";
|
|
106
|
+
other: "other";
|
|
107
|
+
read: "read";
|
|
108
|
+
edit: "edit";
|
|
109
|
+
move: "move";
|
|
110
|
+
execute: "execute";
|
|
111
|
+
think: "think";
|
|
112
|
+
fetch: "fetch";
|
|
113
|
+
switch_mode: "switch_mode";
|
|
114
|
+
}>;
|
|
212
115
|
export type ToolKind = z.infer<typeof toolKindSchema>;
|
|
213
116
|
export declare const permissionOptionSchema: z.ZodObject<{
|
|
214
117
|
optionId: z.ZodString;
|
|
215
118
|
name: z.ZodString;
|
|
216
|
-
kind: z.ZodEnum<
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
}
|
|
222
|
-
|
|
223
|
-
kind: "allow_once" | "allow_always" | "reject_once" | "reject_always";
|
|
224
|
-
optionId: string;
|
|
225
|
-
}>;
|
|
119
|
+
kind: z.ZodEnum<{
|
|
120
|
+
allow_once: "allow_once";
|
|
121
|
+
allow_always: "allow_always";
|
|
122
|
+
reject_once: "reject_once";
|
|
123
|
+
reject_always: "reject_always";
|
|
124
|
+
}>;
|
|
125
|
+
}, z.core.$strip>;
|
|
226
126
|
export type PermissionOption = z.infer<typeof permissionOptionSchema>;
|
|
227
127
|
/** What a running session is doing right now, for list rows. Live only. */
|
|
228
128
|
export declare const sessionActivitySchema: z.ZodObject<{
|
|
229
|
-
kind: z.ZodEnum<
|
|
129
|
+
kind: z.ZodEnum<{
|
|
130
|
+
tool: "tool";
|
|
131
|
+
thinking: "thinking";
|
|
132
|
+
responding: "responding";
|
|
133
|
+
}>;
|
|
230
134
|
title: z.ZodOptional<z.ZodString>;
|
|
231
|
-
toolKind: z.ZodOptional<z.ZodEnum<
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
135
|
+
toolKind: z.ZodOptional<z.ZodEnum<{
|
|
136
|
+
search: "search";
|
|
137
|
+
delete: "delete";
|
|
138
|
+
other: "other";
|
|
139
|
+
read: "read";
|
|
140
|
+
edit: "edit";
|
|
141
|
+
move: "move";
|
|
142
|
+
execute: "execute";
|
|
143
|
+
think: "think";
|
|
144
|
+
fetch: "fetch";
|
|
145
|
+
switch_mode: "switch_mode";
|
|
146
|
+
}>>;
|
|
147
|
+
}, z.core.$strip>;
|
|
241
148
|
export type SessionActivity = z.infer<typeof sessionActivitySchema>;
|
|
242
149
|
/** The oldest unanswered permission request, so lists can offer approval inline. Live only. */
|
|
243
150
|
/**
|
|
@@ -248,7 +155,13 @@ export type SessionActivity = z.infer<typeof sessionActivitySchema>;
|
|
|
248
155
|
export declare const questionSchema: z.ZodObject<{
|
|
249
156
|
id: z.ZodString;
|
|
250
157
|
constraints: z.ZodOptional<z.ZodObject<{
|
|
251
|
-
type: z.ZodEnum<
|
|
158
|
+
type: z.ZodEnum<{
|
|
159
|
+
string: "string";
|
|
160
|
+
number: "number";
|
|
161
|
+
boolean: "boolean";
|
|
162
|
+
array: "array";
|
|
163
|
+
integer: "integer";
|
|
164
|
+
}>;
|
|
252
165
|
minimum: z.ZodOptional<z.ZodNumber>;
|
|
253
166
|
maximum: z.ZodOptional<z.ZodNumber>;
|
|
254
167
|
minLength: z.ZodOptional<z.ZodNumber>;
|
|
@@ -257,118 +170,30 @@ export declare const questionSchema: z.ZodObject<{
|
|
|
257
170
|
maxItems: z.ZodOptional<z.ZodNumber>;
|
|
258
171
|
pattern: z.ZodOptional<z.ZodString>;
|
|
259
172
|
format: z.ZodOptional<z.ZodString>;
|
|
260
|
-
},
|
|
261
|
-
|
|
262
|
-
minimum?: number | undefined;
|
|
263
|
-
maximum?: number | undefined;
|
|
264
|
-
minLength?: number | undefined;
|
|
265
|
-
maxLength?: number | undefined;
|
|
266
|
-
minItems?: number | undefined;
|
|
267
|
-
maxItems?: number | undefined;
|
|
268
|
-
pattern?: string | undefined;
|
|
269
|
-
format?: string | undefined;
|
|
270
|
-
}, {
|
|
271
|
-
type: "string" | "number" | "boolean" | "integer" | "array";
|
|
272
|
-
minimum?: number | undefined;
|
|
273
|
-
maximum?: number | undefined;
|
|
274
|
-
minLength?: number | undefined;
|
|
275
|
-
maxLength?: number | undefined;
|
|
276
|
-
minItems?: number | undefined;
|
|
277
|
-
maxItems?: number | undefined;
|
|
278
|
-
pattern?: string | undefined;
|
|
279
|
-
format?: string | undefined;
|
|
280
|
-
}>>;
|
|
281
|
-
defaults: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
282
|
-
/** A short label for the question ("Auth method"). */
|
|
173
|
+
}, z.core.$strip>>;
|
|
174
|
+
defaults: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
283
175
|
header: z.ZodOptional<z.ZodString>;
|
|
284
176
|
text: z.ZodString;
|
|
285
|
-
|
|
286
|
-
|
|
177
|
+
kind: z.ZodEnum<{
|
|
178
|
+
text: "text";
|
|
179
|
+
choice: "choice";
|
|
180
|
+
choices: "choices";
|
|
181
|
+
}>;
|
|
287
182
|
options: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
288
183
|
value: z.ZodString;
|
|
289
184
|
label: z.ZodString;
|
|
290
185
|
description: z.ZodOptional<z.ZodString>;
|
|
291
|
-
},
|
|
292
|
-
value: string;
|
|
293
|
-
label: string;
|
|
294
|
-
description?: string | undefined;
|
|
295
|
-
}, {
|
|
296
|
-
value: string;
|
|
297
|
-
label: string;
|
|
298
|
-
description?: string | undefined;
|
|
299
|
-
}>, "many">>;
|
|
300
|
-
/** With options: an answer of the user's own can be typed instead of, or beside, a pick. */
|
|
186
|
+
}, z.core.$strip>>>;
|
|
301
187
|
other: z.ZodOptional<z.ZodBoolean>;
|
|
302
|
-
/** What is typed shouldn't be shown (a token). */
|
|
303
188
|
secret: z.ZodOptional<z.ZodBoolean>;
|
|
304
189
|
required: z.ZodOptional<z.ZodBoolean>;
|
|
305
|
-
},
|
|
306
|
-
text: string;
|
|
307
|
-
kind: "text" | "choice" | "choices";
|
|
308
|
-
id: string;
|
|
309
|
-
secret?: boolean | undefined;
|
|
310
|
-
options?: {
|
|
311
|
-
value: string;
|
|
312
|
-
label: string;
|
|
313
|
-
description?: string | undefined;
|
|
314
|
-
}[] | undefined;
|
|
315
|
-
other?: boolean | undefined;
|
|
316
|
-
constraints?: {
|
|
317
|
-
type: "string" | "number" | "boolean" | "integer" | "array";
|
|
318
|
-
minimum?: number | undefined;
|
|
319
|
-
maximum?: number | undefined;
|
|
320
|
-
minLength?: number | undefined;
|
|
321
|
-
maxLength?: number | undefined;
|
|
322
|
-
minItems?: number | undefined;
|
|
323
|
-
maxItems?: number | undefined;
|
|
324
|
-
pattern?: string | undefined;
|
|
325
|
-
format?: string | undefined;
|
|
326
|
-
} | undefined;
|
|
327
|
-
defaults?: string[] | undefined;
|
|
328
|
-
header?: string | undefined;
|
|
329
|
-
required?: boolean | undefined;
|
|
330
|
-
}, {
|
|
331
|
-
text: string;
|
|
332
|
-
kind: "text" | "choice" | "choices";
|
|
333
|
-
id: string;
|
|
334
|
-
secret?: boolean | undefined;
|
|
335
|
-
options?: {
|
|
336
|
-
value: string;
|
|
337
|
-
label: string;
|
|
338
|
-
description?: string | undefined;
|
|
339
|
-
}[] | undefined;
|
|
340
|
-
other?: boolean | undefined;
|
|
341
|
-
constraints?: {
|
|
342
|
-
type: "string" | "number" | "boolean" | "integer" | "array";
|
|
343
|
-
minimum?: number | undefined;
|
|
344
|
-
maximum?: number | undefined;
|
|
345
|
-
minLength?: number | undefined;
|
|
346
|
-
maxLength?: number | undefined;
|
|
347
|
-
minItems?: number | undefined;
|
|
348
|
-
maxItems?: number | undefined;
|
|
349
|
-
pattern?: string | undefined;
|
|
350
|
-
format?: string | undefined;
|
|
351
|
-
} | undefined;
|
|
352
|
-
defaults?: string[] | undefined;
|
|
353
|
-
header?: string | undefined;
|
|
354
|
-
required?: boolean | undefined;
|
|
355
|
-
}>;
|
|
190
|
+
}, z.core.$strip>;
|
|
356
191
|
export type Question = z.infer<typeof questionSchema>;
|
|
357
192
|
export declare const questionAnswerSchema: z.ZodObject<{
|
|
358
193
|
id: z.ZodString;
|
|
359
|
-
|
|
360
|
-
values: z.ZodArray<z.ZodString, "many">;
|
|
361
|
-
/** The user's own answer beside the options. */
|
|
194
|
+
values: z.ZodArray<z.ZodString>;
|
|
362
195
|
other: z.ZodOptional<z.ZodString>;
|
|
363
|
-
},
|
|
364
|
-
values: string[];
|
|
365
|
-
id: string;
|
|
366
|
-
other?: string | undefined;
|
|
367
|
-
}, {
|
|
368
|
-
values: string[];
|
|
369
|
-
id: string;
|
|
370
|
-
other?: string | undefined;
|
|
371
|
-
}>;
|
|
196
|
+
}, z.core.$strip>;
|
|
372
197
|
export type QuestionAnswer = z.infer<typeof questionAnswerSchema>;
|
|
373
198
|
export declare const pendingPermissionSchema: z.ZodObject<{
|
|
374
199
|
requestId: z.ZodString;
|
|
@@ -378,38 +203,52 @@ export declare const pendingPermissionSchema: z.ZodObject<{
|
|
|
378
203
|
detail: z.ZodOptional<z.ZodString>;
|
|
379
204
|
tool: z.ZodOptional<z.ZodObject<{
|
|
380
205
|
title: z.ZodOptional<z.ZodString>;
|
|
381
|
-
kind: z.ZodOptional<z.ZodEnum<
|
|
206
|
+
kind: z.ZodOptional<z.ZodEnum<{
|
|
207
|
+
search: "search";
|
|
208
|
+
delete: "delete";
|
|
209
|
+
other: "other";
|
|
210
|
+
read: "read";
|
|
211
|
+
edit: "edit";
|
|
212
|
+
move: "move";
|
|
213
|
+
execute: "execute";
|
|
214
|
+
think: "think";
|
|
215
|
+
fetch: "fetch";
|
|
216
|
+
switch_mode: "switch_mode";
|
|
217
|
+
}>>;
|
|
382
218
|
rawInput: z.ZodOptional<z.ZodUnknown>;
|
|
383
|
-
content: z.ZodOptional<z.ZodArray<z.ZodDiscriminatedUnion<
|
|
219
|
+
content: z.ZodOptional<z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
384
220
|
type: z.ZodLiteral<"content">;
|
|
385
221
|
content: z.ZodType<{
|
|
386
222
|
type: "text";
|
|
387
223
|
text: string;
|
|
388
|
-
annotations?:
|
|
389
|
-
|
|
390
|
-
|
|
391
|
-
|
|
392
|
-
|
|
224
|
+
annotations?: {
|
|
225
|
+
[x: string]: unknown;
|
|
226
|
+
audience?: ("user" | "assistant")[] | undefined;
|
|
227
|
+
priority?: number | undefined;
|
|
228
|
+
lastModified?: string | undefined;
|
|
229
|
+
} | undefined;
|
|
393
230
|
_meta?: Record<string, unknown> | undefined;
|
|
394
231
|
} | {
|
|
395
232
|
type: "image";
|
|
396
233
|
mimeType: string;
|
|
397
|
-
annotations?:
|
|
398
|
-
|
|
399
|
-
|
|
400
|
-
|
|
401
|
-
|
|
234
|
+
annotations?: {
|
|
235
|
+
[x: string]: unknown;
|
|
236
|
+
audience?: ("user" | "assistant")[] | undefined;
|
|
237
|
+
priority?: number | undefined;
|
|
238
|
+
lastModified?: string | undefined;
|
|
239
|
+
} | undefined;
|
|
402
240
|
_meta?: Record<string, unknown> | undefined;
|
|
403
241
|
data?: string | undefined;
|
|
404
242
|
uri?: string | undefined;
|
|
405
243
|
} | {
|
|
406
244
|
type: "audio";
|
|
407
245
|
mimeType: string;
|
|
408
|
-
annotations?:
|
|
409
|
-
|
|
410
|
-
|
|
411
|
-
|
|
412
|
-
|
|
246
|
+
annotations?: {
|
|
247
|
+
[x: string]: unknown;
|
|
248
|
+
audience?: ("user" | "assistant")[] | undefined;
|
|
249
|
+
priority?: number | undefined;
|
|
250
|
+
lastModified?: string | undefined;
|
|
251
|
+
} | undefined;
|
|
413
252
|
_meta?: Record<string, unknown> | undefined;
|
|
414
253
|
data?: string | undefined;
|
|
415
254
|
uri?: string | undefined;
|
|
@@ -417,64 +256,66 @@ export declare const pendingPermissionSchema: z.ZodObject<{
|
|
|
417
256
|
type: "resource";
|
|
418
257
|
resource: {
|
|
419
258
|
uri: string;
|
|
420
|
-
text?: string | undefined;
|
|
421
|
-
_meta?: Record<string, unknown> | undefined;
|
|
422
259
|
mimeType?: string | undefined;
|
|
260
|
+
text?: string | undefined;
|
|
423
261
|
blob?: string | undefined;
|
|
424
262
|
assetUri?: string | undefined;
|
|
263
|
+
_meta?: Record<string, unknown> | undefined;
|
|
425
264
|
};
|
|
426
|
-
annotations?:
|
|
427
|
-
|
|
428
|
-
|
|
429
|
-
|
|
430
|
-
|
|
265
|
+
annotations?: {
|
|
266
|
+
[x: string]: unknown;
|
|
267
|
+
audience?: ("user" | "assistant")[] | undefined;
|
|
268
|
+
priority?: number | undefined;
|
|
269
|
+
lastModified?: string | undefined;
|
|
270
|
+
} | undefined;
|
|
431
271
|
_meta?: Record<string, unknown> | undefined;
|
|
432
272
|
} | {
|
|
433
273
|
type: "resource_link";
|
|
434
274
|
uri: string;
|
|
435
275
|
name: string;
|
|
436
|
-
|
|
437
|
-
|
|
438
|
-
|
|
439
|
-
|
|
440
|
-
|
|
276
|
+
kind?: "file" | "skill" | "agent" | undefined;
|
|
277
|
+
annotations?: {
|
|
278
|
+
[x: string]: unknown;
|
|
279
|
+
audience?: ("user" | "assistant")[] | undefined;
|
|
280
|
+
priority?: number | undefined;
|
|
281
|
+
lastModified?: string | undefined;
|
|
282
|
+
} | undefined;
|
|
441
283
|
_meta?: Record<string, unknown> | undefined;
|
|
442
|
-
mimeType?: string | undefined;
|
|
443
284
|
title?: string | undefined;
|
|
444
285
|
description?: string | undefined;
|
|
286
|
+
mimeType?: string | undefined;
|
|
445
287
|
size?: number | undefined;
|
|
446
|
-
|
|
447
|
-
}, z.ZodTypeDef, unknown>;
|
|
448
|
-
}, "strip", z.ZodTypeAny, {
|
|
449
|
-
type: "content";
|
|
450
|
-
content: {
|
|
288
|
+
}, unknown, z.core.$ZodTypeInternals<{
|
|
451
289
|
type: "text";
|
|
452
290
|
text: string;
|
|
453
|
-
annotations?:
|
|
454
|
-
|
|
455
|
-
|
|
456
|
-
|
|
457
|
-
|
|
291
|
+
annotations?: {
|
|
292
|
+
[x: string]: unknown;
|
|
293
|
+
audience?: ("user" | "assistant")[] | undefined;
|
|
294
|
+
priority?: number | undefined;
|
|
295
|
+
lastModified?: string | undefined;
|
|
296
|
+
} | undefined;
|
|
458
297
|
_meta?: Record<string, unknown> | undefined;
|
|
459
298
|
} | {
|
|
460
299
|
type: "image";
|
|
461
300
|
mimeType: string;
|
|
462
|
-
annotations?:
|
|
463
|
-
|
|
464
|
-
|
|
465
|
-
|
|
466
|
-
|
|
301
|
+
annotations?: {
|
|
302
|
+
[x: string]: unknown;
|
|
303
|
+
audience?: ("user" | "assistant")[] | undefined;
|
|
304
|
+
priority?: number | undefined;
|
|
305
|
+
lastModified?: string | undefined;
|
|
306
|
+
} | undefined;
|
|
467
307
|
_meta?: Record<string, unknown> | undefined;
|
|
468
308
|
data?: string | undefined;
|
|
469
309
|
uri?: string | undefined;
|
|
470
310
|
} | {
|
|
471
311
|
type: "audio";
|
|
472
312
|
mimeType: string;
|
|
473
|
-
annotations?:
|
|
474
|
-
|
|
475
|
-
|
|
476
|
-
|
|
477
|
-
|
|
313
|
+
annotations?: {
|
|
314
|
+
[x: string]: unknown;
|
|
315
|
+
audience?: ("user" | "assistant")[] | undefined;
|
|
316
|
+
priority?: number | undefined;
|
|
317
|
+
lastModified?: string | undefined;
|
|
318
|
+
} | undefined;
|
|
478
319
|
_meta?: Record<string, unknown> | undefined;
|
|
479
320
|
data?: string | undefined;
|
|
480
321
|
uri?: string | undefined;
|
|
@@ -482,233 +323,84 @@ export declare const pendingPermissionSchema: z.ZodObject<{
|
|
|
482
323
|
type: "resource";
|
|
483
324
|
resource: {
|
|
484
325
|
uri: string;
|
|
485
|
-
text?: string | undefined;
|
|
486
|
-
_meta?: Record<string, unknown> | undefined;
|
|
487
326
|
mimeType?: string | undefined;
|
|
327
|
+
text?: string | undefined;
|
|
488
328
|
blob?: string | undefined;
|
|
489
329
|
assetUri?: string | undefined;
|
|
330
|
+
_meta?: Record<string, unknown> | undefined;
|
|
490
331
|
};
|
|
491
|
-
annotations?:
|
|
492
|
-
|
|
493
|
-
|
|
494
|
-
|
|
495
|
-
|
|
332
|
+
annotations?: {
|
|
333
|
+
[x: string]: unknown;
|
|
334
|
+
audience?: ("user" | "assistant")[] | undefined;
|
|
335
|
+
priority?: number | undefined;
|
|
336
|
+
lastModified?: string | undefined;
|
|
337
|
+
} | undefined;
|
|
496
338
|
_meta?: Record<string, unknown> | undefined;
|
|
497
339
|
} | {
|
|
498
340
|
type: "resource_link";
|
|
499
341
|
uri: string;
|
|
500
342
|
name: string;
|
|
501
|
-
|
|
502
|
-
|
|
503
|
-
|
|
504
|
-
|
|
505
|
-
|
|
343
|
+
kind?: "file" | "skill" | "agent" | undefined;
|
|
344
|
+
annotations?: {
|
|
345
|
+
[x: string]: unknown;
|
|
346
|
+
audience?: ("user" | "assistant")[] | undefined;
|
|
347
|
+
priority?: number | undefined;
|
|
348
|
+
lastModified?: string | undefined;
|
|
349
|
+
} | undefined;
|
|
506
350
|
_meta?: Record<string, unknown> | undefined;
|
|
507
|
-
mimeType?: string | undefined;
|
|
508
351
|
title?: string | undefined;
|
|
509
352
|
description?: string | undefined;
|
|
353
|
+
mimeType?: string | undefined;
|
|
510
354
|
size?: number | undefined;
|
|
511
|
-
|
|
512
|
-
|
|
513
|
-
}, {
|
|
514
|
-
type: "content";
|
|
515
|
-
content?: unknown;
|
|
516
|
-
}>, z.ZodObject<{
|
|
355
|
+
}, unknown>>;
|
|
356
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
517
357
|
type: z.ZodLiteral<"diff">;
|
|
518
358
|
path: z.ZodString;
|
|
519
359
|
oldText: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
520
360
|
newText: z.ZodString;
|
|
521
|
-
},
|
|
522
|
-
path: string;
|
|
523
|
-
type: "diff";
|
|
524
|
-
newText: string;
|
|
525
|
-
oldText?: string | null | undefined;
|
|
526
|
-
}, {
|
|
527
|
-
path: string;
|
|
528
|
-
type: "diff";
|
|
529
|
-
newText: string;
|
|
530
|
-
oldText?: string | null | undefined;
|
|
531
|
-
}>, z.ZodObject<{
|
|
361
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
532
362
|
type: z.ZodLiteral<"patch">;
|
|
533
363
|
path: z.ZodString;
|
|
534
|
-
change: z.ZodEnum<
|
|
364
|
+
change: z.ZodEnum<{
|
|
365
|
+
add: "add";
|
|
366
|
+
delete: "delete";
|
|
367
|
+
update: "update";
|
|
368
|
+
}>;
|
|
535
369
|
movePath: z.ZodOptional<z.ZodString>;
|
|
536
370
|
diff: z.ZodString;
|
|
537
|
-
},
|
|
538
|
-
path: string;
|
|
539
|
-
type: "patch";
|
|
540
|
-
diff: string;
|
|
541
|
-
change: "add" | "delete" | "update";
|
|
542
|
-
movePath?: string | undefined;
|
|
543
|
-
}, {
|
|
544
|
-
path: string;
|
|
545
|
-
type: "patch";
|
|
546
|
-
diff: string;
|
|
547
|
-
change: "add" | "delete" | "update";
|
|
548
|
-
movePath?: string | undefined;
|
|
549
|
-
}>, z.ZodObject<{
|
|
371
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
550
372
|
type: z.ZodLiteral<"terminal">;
|
|
551
373
|
terminalId: z.ZodString;
|
|
552
|
-
},
|
|
553
|
-
type: "terminal";
|
|
554
|
-
terminalId: string;
|
|
555
|
-
}, {
|
|
556
|
-
type: "terminal";
|
|
557
|
-
terminalId: string;
|
|
558
|
-
}>]>, "many">>;
|
|
374
|
+
}, z.core.$strip>], "type">>>;
|
|
559
375
|
locations: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
560
376
|
path: z.ZodString;
|
|
561
377
|
line: z.ZodOptional<z.ZodNumber>;
|
|
562
|
-
},
|
|
563
|
-
|
|
564
|
-
line?: number | undefined;
|
|
565
|
-
}, {
|
|
566
|
-
path: string;
|
|
567
|
-
line?: number | undefined;
|
|
568
|
-
}>, "many">>;
|
|
569
|
-
}, "strip", z.ZodTypeAny, {
|
|
570
|
-
title?: string | undefined;
|
|
571
|
-
kind?: "search" | "delete" | "other" | "read" | "edit" | "move" | "execute" | "think" | "fetch" | "switch_mode" | undefined;
|
|
572
|
-
content?: ({
|
|
573
|
-
type: "content";
|
|
574
|
-
content: {
|
|
575
|
-
type: "text";
|
|
576
|
-
text: string;
|
|
577
|
-
annotations?: z.objectOutputType<{
|
|
578
|
-
audience: z.ZodEffects<z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodEnum<["user", "assistant"]>, "many">>>, ("user" | "assistant")[] | undefined, ("user" | "assistant")[] | null | undefined>;
|
|
579
|
-
priority: z.ZodEffects<z.ZodOptional<z.ZodNullable<z.ZodNumber>>, number | undefined, number | null | undefined>;
|
|
580
|
-
lastModified: z.ZodEffects<z.ZodOptional<z.ZodNullable<z.ZodString>>, string | undefined, string | null | undefined>;
|
|
581
|
-
}, z.ZodTypeAny, "passthrough"> | undefined;
|
|
582
|
-
_meta?: Record<string, unknown> | undefined;
|
|
583
|
-
} | {
|
|
584
|
-
type: "image";
|
|
585
|
-
mimeType: string;
|
|
586
|
-
annotations?: z.objectOutputType<{
|
|
587
|
-
audience: z.ZodEffects<z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodEnum<["user", "assistant"]>, "many">>>, ("user" | "assistant")[] | undefined, ("user" | "assistant")[] | null | undefined>;
|
|
588
|
-
priority: z.ZodEffects<z.ZodOptional<z.ZodNullable<z.ZodNumber>>, number | undefined, number | null | undefined>;
|
|
589
|
-
lastModified: z.ZodEffects<z.ZodOptional<z.ZodNullable<z.ZodString>>, string | undefined, string | null | undefined>;
|
|
590
|
-
}, z.ZodTypeAny, "passthrough"> | undefined;
|
|
591
|
-
_meta?: Record<string, unknown> | undefined;
|
|
592
|
-
data?: string | undefined;
|
|
593
|
-
uri?: string | undefined;
|
|
594
|
-
} | {
|
|
595
|
-
type: "audio";
|
|
596
|
-
mimeType: string;
|
|
597
|
-
annotations?: z.objectOutputType<{
|
|
598
|
-
audience: z.ZodEffects<z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodEnum<["user", "assistant"]>, "many">>>, ("user" | "assistant")[] | undefined, ("user" | "assistant")[] | null | undefined>;
|
|
599
|
-
priority: z.ZodEffects<z.ZodOptional<z.ZodNullable<z.ZodNumber>>, number | undefined, number | null | undefined>;
|
|
600
|
-
lastModified: z.ZodEffects<z.ZodOptional<z.ZodNullable<z.ZodString>>, string | undefined, string | null | undefined>;
|
|
601
|
-
}, z.ZodTypeAny, "passthrough"> | undefined;
|
|
602
|
-
_meta?: Record<string, unknown> | undefined;
|
|
603
|
-
data?: string | undefined;
|
|
604
|
-
uri?: string | undefined;
|
|
605
|
-
} | {
|
|
606
|
-
type: "resource";
|
|
607
|
-
resource: {
|
|
608
|
-
uri: string;
|
|
609
|
-
text?: string | undefined;
|
|
610
|
-
_meta?: Record<string, unknown> | undefined;
|
|
611
|
-
mimeType?: string | undefined;
|
|
612
|
-
blob?: string | undefined;
|
|
613
|
-
assetUri?: string | undefined;
|
|
614
|
-
};
|
|
615
|
-
annotations?: z.objectOutputType<{
|
|
616
|
-
audience: z.ZodEffects<z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodEnum<["user", "assistant"]>, "many">>>, ("user" | "assistant")[] | undefined, ("user" | "assistant")[] | null | undefined>;
|
|
617
|
-
priority: z.ZodEffects<z.ZodOptional<z.ZodNullable<z.ZodNumber>>, number | undefined, number | null | undefined>;
|
|
618
|
-
lastModified: z.ZodEffects<z.ZodOptional<z.ZodNullable<z.ZodString>>, string | undefined, string | null | undefined>;
|
|
619
|
-
}, z.ZodTypeAny, "passthrough"> | undefined;
|
|
620
|
-
_meta?: Record<string, unknown> | undefined;
|
|
621
|
-
} | {
|
|
622
|
-
type: "resource_link";
|
|
623
|
-
uri: string;
|
|
624
|
-
name: string;
|
|
625
|
-
annotations?: z.objectOutputType<{
|
|
626
|
-
audience: z.ZodEffects<z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodEnum<["user", "assistant"]>, "many">>>, ("user" | "assistant")[] | undefined, ("user" | "assistant")[] | null | undefined>;
|
|
627
|
-
priority: z.ZodEffects<z.ZodOptional<z.ZodNullable<z.ZodNumber>>, number | undefined, number | null | undefined>;
|
|
628
|
-
lastModified: z.ZodEffects<z.ZodOptional<z.ZodNullable<z.ZodString>>, string | undefined, string | null | undefined>;
|
|
629
|
-
}, z.ZodTypeAny, "passthrough"> | undefined;
|
|
630
|
-
_meta?: Record<string, unknown> | undefined;
|
|
631
|
-
mimeType?: string | undefined;
|
|
632
|
-
title?: string | undefined;
|
|
633
|
-
description?: string | undefined;
|
|
634
|
-
size?: number | undefined;
|
|
635
|
-
kind?: "file" | "skill" | "agent" | undefined;
|
|
636
|
-
};
|
|
637
|
-
} | {
|
|
638
|
-
path: string;
|
|
639
|
-
type: "diff";
|
|
640
|
-
newText: string;
|
|
641
|
-
oldText?: string | null | undefined;
|
|
642
|
-
} | {
|
|
643
|
-
path: string;
|
|
644
|
-
type: "patch";
|
|
645
|
-
diff: string;
|
|
646
|
-
change: "add" | "delete" | "update";
|
|
647
|
-
movePath?: string | undefined;
|
|
648
|
-
} | {
|
|
649
|
-
type: "terminal";
|
|
650
|
-
terminalId: string;
|
|
651
|
-
})[] | undefined;
|
|
652
|
-
rawInput?: unknown;
|
|
653
|
-
locations?: {
|
|
654
|
-
path: string;
|
|
655
|
-
line?: number | undefined;
|
|
656
|
-
}[] | undefined;
|
|
657
|
-
}, {
|
|
658
|
-
title?: string | undefined;
|
|
659
|
-
kind?: "search" | "delete" | "other" | "read" | "edit" | "move" | "execute" | "think" | "fetch" | "switch_mode" | undefined;
|
|
660
|
-
content?: ({
|
|
661
|
-
type: "content";
|
|
662
|
-
content?: unknown;
|
|
663
|
-
} | {
|
|
664
|
-
path: string;
|
|
665
|
-
type: "diff";
|
|
666
|
-
newText: string;
|
|
667
|
-
oldText?: string | null | undefined;
|
|
668
|
-
} | {
|
|
669
|
-
path: string;
|
|
670
|
-
type: "patch";
|
|
671
|
-
diff: string;
|
|
672
|
-
change: "add" | "delete" | "update";
|
|
673
|
-
movePath?: string | undefined;
|
|
674
|
-
} | {
|
|
675
|
-
type: "terminal";
|
|
676
|
-
terminalId: string;
|
|
677
|
-
})[] | undefined;
|
|
678
|
-
rawInput?: unknown;
|
|
679
|
-
locations?: {
|
|
680
|
-
path: string;
|
|
681
|
-
line?: number | undefined;
|
|
682
|
-
}[] | undefined;
|
|
683
|
-
}>>;
|
|
378
|
+
}, z.core.$strip>>>;
|
|
379
|
+
}, z.core.$strip>>;
|
|
684
380
|
url: z.ZodOptional<z.ZodObject<{
|
|
685
381
|
url: z.ZodString;
|
|
686
382
|
elicitationId: z.ZodString;
|
|
687
|
-
},
|
|
688
|
-
url: string;
|
|
689
|
-
elicitationId: string;
|
|
690
|
-
}, {
|
|
691
|
-
url: string;
|
|
692
|
-
elicitationId: string;
|
|
693
|
-
}>>;
|
|
383
|
+
}, z.core.$strip>>;
|
|
694
384
|
options: z.ZodArray<z.ZodObject<{
|
|
695
385
|
optionId: z.ZodString;
|
|
696
386
|
name: z.ZodString;
|
|
697
|
-
kind: z.ZodEnum<
|
|
698
|
-
|
|
699
|
-
|
|
700
|
-
|
|
701
|
-
|
|
702
|
-
|
|
703
|
-
|
|
704
|
-
kind: "allow_once" | "allow_always" | "reject_once" | "reject_always";
|
|
705
|
-
optionId: string;
|
|
706
|
-
}>, "many">;
|
|
707
|
-
/** Set when this is a question to answer (`sessions.answer`) rather than a permission to give. */
|
|
387
|
+
kind: z.ZodEnum<{
|
|
388
|
+
allow_once: "allow_once";
|
|
389
|
+
allow_always: "allow_always";
|
|
390
|
+
reject_once: "reject_once";
|
|
391
|
+
reject_always: "reject_always";
|
|
392
|
+
}>;
|
|
393
|
+
}, z.core.$strip>>;
|
|
708
394
|
questions: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
709
395
|
id: z.ZodString;
|
|
710
396
|
constraints: z.ZodOptional<z.ZodObject<{
|
|
711
|
-
type: z.ZodEnum<
|
|
397
|
+
type: z.ZodEnum<{
|
|
398
|
+
string: "string";
|
|
399
|
+
number: "number";
|
|
400
|
+
boolean: "boolean";
|
|
401
|
+
array: "array";
|
|
402
|
+
integer: "integer";
|
|
403
|
+
}>;
|
|
712
404
|
minimum: z.ZodOptional<z.ZodNumber>;
|
|
713
405
|
maximum: z.ZodOptional<z.ZodNumber>;
|
|
714
406
|
minLength: z.ZodOptional<z.ZodNumber>;
|
|
@@ -717,316 +409,31 @@ export declare const pendingPermissionSchema: z.ZodObject<{
|
|
|
717
409
|
maxItems: z.ZodOptional<z.ZodNumber>;
|
|
718
410
|
pattern: z.ZodOptional<z.ZodString>;
|
|
719
411
|
format: z.ZodOptional<z.ZodString>;
|
|
720
|
-
},
|
|
721
|
-
|
|
722
|
-
minimum?: number | undefined;
|
|
723
|
-
maximum?: number | undefined;
|
|
724
|
-
minLength?: number | undefined;
|
|
725
|
-
maxLength?: number | undefined;
|
|
726
|
-
minItems?: number | undefined;
|
|
727
|
-
maxItems?: number | undefined;
|
|
728
|
-
pattern?: string | undefined;
|
|
729
|
-
format?: string | undefined;
|
|
730
|
-
}, {
|
|
731
|
-
type: "string" | "number" | "boolean" | "integer" | "array";
|
|
732
|
-
minimum?: number | undefined;
|
|
733
|
-
maximum?: number | undefined;
|
|
734
|
-
minLength?: number | undefined;
|
|
735
|
-
maxLength?: number | undefined;
|
|
736
|
-
minItems?: number | undefined;
|
|
737
|
-
maxItems?: number | undefined;
|
|
738
|
-
pattern?: string | undefined;
|
|
739
|
-
format?: string | undefined;
|
|
740
|
-
}>>;
|
|
741
|
-
defaults: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
742
|
-
/** A short label for the question ("Auth method"). */
|
|
412
|
+
}, z.core.$strip>>;
|
|
413
|
+
defaults: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
743
414
|
header: z.ZodOptional<z.ZodString>;
|
|
744
415
|
text: z.ZodString;
|
|
745
|
-
|
|
746
|
-
|
|
416
|
+
kind: z.ZodEnum<{
|
|
417
|
+
text: "text";
|
|
418
|
+
choice: "choice";
|
|
419
|
+
choices: "choices";
|
|
420
|
+
}>;
|
|
747
421
|
options: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
748
422
|
value: z.ZodString;
|
|
749
423
|
label: z.ZodString;
|
|
750
424
|
description: z.ZodOptional<z.ZodString>;
|
|
751
|
-
},
|
|
752
|
-
value: string;
|
|
753
|
-
label: string;
|
|
754
|
-
description?: string | undefined;
|
|
755
|
-
}, {
|
|
756
|
-
value: string;
|
|
757
|
-
label: string;
|
|
758
|
-
description?: string | undefined;
|
|
759
|
-
}>, "many">>;
|
|
760
|
-
/** With options: an answer of the user's own can be typed instead of, or beside, a pick. */
|
|
425
|
+
}, z.core.$strip>>>;
|
|
761
426
|
other: z.ZodOptional<z.ZodBoolean>;
|
|
762
|
-
/** What is typed shouldn't be shown (a token). */
|
|
763
427
|
secret: z.ZodOptional<z.ZodBoolean>;
|
|
764
428
|
required: z.ZodOptional<z.ZodBoolean>;
|
|
765
|
-
},
|
|
766
|
-
|
|
767
|
-
kind: "text" | "choice" | "choices";
|
|
768
|
-
id: string;
|
|
769
|
-
secret?: boolean | undefined;
|
|
770
|
-
options?: {
|
|
771
|
-
value: string;
|
|
772
|
-
label: string;
|
|
773
|
-
description?: string | undefined;
|
|
774
|
-
}[] | undefined;
|
|
775
|
-
other?: boolean | undefined;
|
|
776
|
-
constraints?: {
|
|
777
|
-
type: "string" | "number" | "boolean" | "integer" | "array";
|
|
778
|
-
minimum?: number | undefined;
|
|
779
|
-
maximum?: number | undefined;
|
|
780
|
-
minLength?: number | undefined;
|
|
781
|
-
maxLength?: number | undefined;
|
|
782
|
-
minItems?: number | undefined;
|
|
783
|
-
maxItems?: number | undefined;
|
|
784
|
-
pattern?: string | undefined;
|
|
785
|
-
format?: string | undefined;
|
|
786
|
-
} | undefined;
|
|
787
|
-
defaults?: string[] | undefined;
|
|
788
|
-
header?: string | undefined;
|
|
789
|
-
required?: boolean | undefined;
|
|
790
|
-
}, {
|
|
791
|
-
text: string;
|
|
792
|
-
kind: "text" | "choice" | "choices";
|
|
793
|
-
id: string;
|
|
794
|
-
secret?: boolean | undefined;
|
|
795
|
-
options?: {
|
|
796
|
-
value: string;
|
|
797
|
-
label: string;
|
|
798
|
-
description?: string | undefined;
|
|
799
|
-
}[] | undefined;
|
|
800
|
-
other?: boolean | undefined;
|
|
801
|
-
constraints?: {
|
|
802
|
-
type: "string" | "number" | "boolean" | "integer" | "array";
|
|
803
|
-
minimum?: number | undefined;
|
|
804
|
-
maximum?: number | undefined;
|
|
805
|
-
minLength?: number | undefined;
|
|
806
|
-
maxLength?: number | undefined;
|
|
807
|
-
minItems?: number | undefined;
|
|
808
|
-
maxItems?: number | undefined;
|
|
809
|
-
pattern?: string | undefined;
|
|
810
|
-
format?: string | undefined;
|
|
811
|
-
} | undefined;
|
|
812
|
-
defaults?: string[] | undefined;
|
|
813
|
-
header?: string | undefined;
|
|
814
|
-
required?: boolean | undefined;
|
|
815
|
-
}>, "many">>;
|
|
816
|
-
}, "strip", z.ZodTypeAny, {
|
|
817
|
-
options: {
|
|
818
|
-
name: string;
|
|
819
|
-
kind: "allow_once" | "allow_always" | "reject_once" | "reject_always";
|
|
820
|
-
optionId: string;
|
|
821
|
-
}[];
|
|
822
|
-
title: string;
|
|
823
|
-
requestId: string;
|
|
824
|
-
toolCallId?: string | undefined;
|
|
825
|
-
tool?: {
|
|
826
|
-
title?: string | undefined;
|
|
827
|
-
kind?: "search" | "delete" | "other" | "read" | "edit" | "move" | "execute" | "think" | "fetch" | "switch_mode" | undefined;
|
|
828
|
-
content?: ({
|
|
829
|
-
type: "content";
|
|
830
|
-
content: {
|
|
831
|
-
type: "text";
|
|
832
|
-
text: string;
|
|
833
|
-
annotations?: z.objectOutputType<{
|
|
834
|
-
audience: z.ZodEffects<z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodEnum<["user", "assistant"]>, "many">>>, ("user" | "assistant")[] | undefined, ("user" | "assistant")[] | null | undefined>;
|
|
835
|
-
priority: z.ZodEffects<z.ZodOptional<z.ZodNullable<z.ZodNumber>>, number | undefined, number | null | undefined>;
|
|
836
|
-
lastModified: z.ZodEffects<z.ZodOptional<z.ZodNullable<z.ZodString>>, string | undefined, string | null | undefined>;
|
|
837
|
-
}, z.ZodTypeAny, "passthrough"> | undefined;
|
|
838
|
-
_meta?: Record<string, unknown> | undefined;
|
|
839
|
-
} | {
|
|
840
|
-
type: "image";
|
|
841
|
-
mimeType: string;
|
|
842
|
-
annotations?: z.objectOutputType<{
|
|
843
|
-
audience: z.ZodEffects<z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodEnum<["user", "assistant"]>, "many">>>, ("user" | "assistant")[] | undefined, ("user" | "assistant")[] | null | undefined>;
|
|
844
|
-
priority: z.ZodEffects<z.ZodOptional<z.ZodNullable<z.ZodNumber>>, number | undefined, number | null | undefined>;
|
|
845
|
-
lastModified: z.ZodEffects<z.ZodOptional<z.ZodNullable<z.ZodString>>, string | undefined, string | null | undefined>;
|
|
846
|
-
}, z.ZodTypeAny, "passthrough"> | undefined;
|
|
847
|
-
_meta?: Record<string, unknown> | undefined;
|
|
848
|
-
data?: string | undefined;
|
|
849
|
-
uri?: string | undefined;
|
|
850
|
-
} | {
|
|
851
|
-
type: "audio";
|
|
852
|
-
mimeType: string;
|
|
853
|
-
annotations?: z.objectOutputType<{
|
|
854
|
-
audience: z.ZodEffects<z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodEnum<["user", "assistant"]>, "many">>>, ("user" | "assistant")[] | undefined, ("user" | "assistant")[] | null | undefined>;
|
|
855
|
-
priority: z.ZodEffects<z.ZodOptional<z.ZodNullable<z.ZodNumber>>, number | undefined, number | null | undefined>;
|
|
856
|
-
lastModified: z.ZodEffects<z.ZodOptional<z.ZodNullable<z.ZodString>>, string | undefined, string | null | undefined>;
|
|
857
|
-
}, z.ZodTypeAny, "passthrough"> | undefined;
|
|
858
|
-
_meta?: Record<string, unknown> | undefined;
|
|
859
|
-
data?: string | undefined;
|
|
860
|
-
uri?: string | undefined;
|
|
861
|
-
} | {
|
|
862
|
-
type: "resource";
|
|
863
|
-
resource: {
|
|
864
|
-
uri: string;
|
|
865
|
-
text?: string | undefined;
|
|
866
|
-
_meta?: Record<string, unknown> | undefined;
|
|
867
|
-
mimeType?: string | undefined;
|
|
868
|
-
blob?: string | undefined;
|
|
869
|
-
assetUri?: string | undefined;
|
|
870
|
-
};
|
|
871
|
-
annotations?: z.objectOutputType<{
|
|
872
|
-
audience: z.ZodEffects<z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodEnum<["user", "assistant"]>, "many">>>, ("user" | "assistant")[] | undefined, ("user" | "assistant")[] | null | undefined>;
|
|
873
|
-
priority: z.ZodEffects<z.ZodOptional<z.ZodNullable<z.ZodNumber>>, number | undefined, number | null | undefined>;
|
|
874
|
-
lastModified: z.ZodEffects<z.ZodOptional<z.ZodNullable<z.ZodString>>, string | undefined, string | null | undefined>;
|
|
875
|
-
}, z.ZodTypeAny, "passthrough"> | undefined;
|
|
876
|
-
_meta?: Record<string, unknown> | undefined;
|
|
877
|
-
} | {
|
|
878
|
-
type: "resource_link";
|
|
879
|
-
uri: string;
|
|
880
|
-
name: string;
|
|
881
|
-
annotations?: z.objectOutputType<{
|
|
882
|
-
audience: z.ZodEffects<z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodEnum<["user", "assistant"]>, "many">>>, ("user" | "assistant")[] | undefined, ("user" | "assistant")[] | null | undefined>;
|
|
883
|
-
priority: z.ZodEffects<z.ZodOptional<z.ZodNullable<z.ZodNumber>>, number | undefined, number | null | undefined>;
|
|
884
|
-
lastModified: z.ZodEffects<z.ZodOptional<z.ZodNullable<z.ZodString>>, string | undefined, string | null | undefined>;
|
|
885
|
-
}, z.ZodTypeAny, "passthrough"> | undefined;
|
|
886
|
-
_meta?: Record<string, unknown> | undefined;
|
|
887
|
-
mimeType?: string | undefined;
|
|
888
|
-
title?: string | undefined;
|
|
889
|
-
description?: string | undefined;
|
|
890
|
-
size?: number | undefined;
|
|
891
|
-
kind?: "file" | "skill" | "agent" | undefined;
|
|
892
|
-
};
|
|
893
|
-
} | {
|
|
894
|
-
path: string;
|
|
895
|
-
type: "diff";
|
|
896
|
-
newText: string;
|
|
897
|
-
oldText?: string | null | undefined;
|
|
898
|
-
} | {
|
|
899
|
-
path: string;
|
|
900
|
-
type: "patch";
|
|
901
|
-
diff: string;
|
|
902
|
-
change: "add" | "delete" | "update";
|
|
903
|
-
movePath?: string | undefined;
|
|
904
|
-
} | {
|
|
905
|
-
type: "terminal";
|
|
906
|
-
terminalId: string;
|
|
907
|
-
})[] | undefined;
|
|
908
|
-
rawInput?: unknown;
|
|
909
|
-
locations?: {
|
|
910
|
-
path: string;
|
|
911
|
-
line?: number | undefined;
|
|
912
|
-
}[] | undefined;
|
|
913
|
-
} | undefined;
|
|
914
|
-
detail?: string | undefined;
|
|
915
|
-
questions?: {
|
|
916
|
-
text: string;
|
|
917
|
-
kind: "text" | "choice" | "choices";
|
|
918
|
-
id: string;
|
|
919
|
-
secret?: boolean | undefined;
|
|
920
|
-
options?: {
|
|
921
|
-
value: string;
|
|
922
|
-
label: string;
|
|
923
|
-
description?: string | undefined;
|
|
924
|
-
}[] | undefined;
|
|
925
|
-
other?: boolean | undefined;
|
|
926
|
-
constraints?: {
|
|
927
|
-
type: "string" | "number" | "boolean" | "integer" | "array";
|
|
928
|
-
minimum?: number | undefined;
|
|
929
|
-
maximum?: number | undefined;
|
|
930
|
-
minLength?: number | undefined;
|
|
931
|
-
maxLength?: number | undefined;
|
|
932
|
-
minItems?: number | undefined;
|
|
933
|
-
maxItems?: number | undefined;
|
|
934
|
-
pattern?: string | undefined;
|
|
935
|
-
format?: string | undefined;
|
|
936
|
-
} | undefined;
|
|
937
|
-
defaults?: string[] | undefined;
|
|
938
|
-
header?: string | undefined;
|
|
939
|
-
required?: boolean | undefined;
|
|
940
|
-
}[] | undefined;
|
|
941
|
-
childSessionId?: string | undefined;
|
|
942
|
-
url?: {
|
|
943
|
-
url: string;
|
|
944
|
-
elicitationId: string;
|
|
945
|
-
} | undefined;
|
|
946
|
-
}, {
|
|
947
|
-
options: {
|
|
948
|
-
name: string;
|
|
949
|
-
kind: "allow_once" | "allow_always" | "reject_once" | "reject_always";
|
|
950
|
-
optionId: string;
|
|
951
|
-
}[];
|
|
952
|
-
title: string;
|
|
953
|
-
requestId: string;
|
|
954
|
-
toolCallId?: string | undefined;
|
|
955
|
-
tool?: {
|
|
956
|
-
title?: string | undefined;
|
|
957
|
-
kind?: "search" | "delete" | "other" | "read" | "edit" | "move" | "execute" | "think" | "fetch" | "switch_mode" | undefined;
|
|
958
|
-
content?: ({
|
|
959
|
-
type: "content";
|
|
960
|
-
content?: unknown;
|
|
961
|
-
} | {
|
|
962
|
-
path: string;
|
|
963
|
-
type: "diff";
|
|
964
|
-
newText: string;
|
|
965
|
-
oldText?: string | null | undefined;
|
|
966
|
-
} | {
|
|
967
|
-
path: string;
|
|
968
|
-
type: "patch";
|
|
969
|
-
diff: string;
|
|
970
|
-
change: "add" | "delete" | "update";
|
|
971
|
-
movePath?: string | undefined;
|
|
972
|
-
} | {
|
|
973
|
-
type: "terminal";
|
|
974
|
-
terminalId: string;
|
|
975
|
-
})[] | undefined;
|
|
976
|
-
rawInput?: unknown;
|
|
977
|
-
locations?: {
|
|
978
|
-
path: string;
|
|
979
|
-
line?: number | undefined;
|
|
980
|
-
}[] | undefined;
|
|
981
|
-
} | undefined;
|
|
982
|
-
detail?: string | undefined;
|
|
983
|
-
questions?: {
|
|
984
|
-
text: string;
|
|
985
|
-
kind: "text" | "choice" | "choices";
|
|
986
|
-
id: string;
|
|
987
|
-
secret?: boolean | undefined;
|
|
988
|
-
options?: {
|
|
989
|
-
value: string;
|
|
990
|
-
label: string;
|
|
991
|
-
description?: string | undefined;
|
|
992
|
-
}[] | undefined;
|
|
993
|
-
other?: boolean | undefined;
|
|
994
|
-
constraints?: {
|
|
995
|
-
type: "string" | "number" | "boolean" | "integer" | "array";
|
|
996
|
-
minimum?: number | undefined;
|
|
997
|
-
maximum?: number | undefined;
|
|
998
|
-
minLength?: number | undefined;
|
|
999
|
-
maxLength?: number | undefined;
|
|
1000
|
-
minItems?: number | undefined;
|
|
1001
|
-
maxItems?: number | undefined;
|
|
1002
|
-
pattern?: string | undefined;
|
|
1003
|
-
format?: string | undefined;
|
|
1004
|
-
} | undefined;
|
|
1005
|
-
defaults?: string[] | undefined;
|
|
1006
|
-
header?: string | undefined;
|
|
1007
|
-
required?: boolean | undefined;
|
|
1008
|
-
}[] | undefined;
|
|
1009
|
-
childSessionId?: string | undefined;
|
|
1010
|
-
url?: {
|
|
1011
|
-
url: string;
|
|
1012
|
-
elicitationId: string;
|
|
1013
|
-
} | undefined;
|
|
1014
|
-
}>;
|
|
429
|
+
}, z.core.$strip>>>;
|
|
430
|
+
}, z.core.$strip>;
|
|
1015
431
|
export type PendingPermissionSummary = z.infer<typeof pendingPermissionSchema>;
|
|
1016
432
|
export declare const queuedMessageSchema: z.ZodObject<{
|
|
1017
433
|
clientMessageId: z.ZodString;
|
|
1018
|
-
/** The message's text (images are counted, not sent). */
|
|
1019
434
|
text: z.ZodString;
|
|
1020
435
|
images: z.ZodNumber;
|
|
1021
|
-
},
|
|
1022
|
-
text: string;
|
|
1023
|
-
images: number;
|
|
1024
|
-
clientMessageId: string;
|
|
1025
|
-
}, {
|
|
1026
|
-
text: string;
|
|
1027
|
-
images: number;
|
|
1028
|
-
clientMessageId: string;
|
|
1029
|
-
}>;
|
|
436
|
+
}, z.core.$strip>;
|
|
1030
437
|
export type QueuedMessage = z.infer<typeof queuedMessageSchema>;
|
|
1031
438
|
/** A sub-agent a session started: the tool call it runs under, and how it is doing. */
|
|
1032
439
|
export declare const subagentInfoSchema: z.ZodObject<{
|
|
@@ -1034,20 +441,32 @@ export declare const subagentInfoSchema: z.ZodObject<{
|
|
|
1034
441
|
canCancel: z.ZodOptional<z.ZodBoolean>;
|
|
1035
442
|
toolCallId: z.ZodString;
|
|
1036
443
|
parentToolCallId: z.ZodOptional<z.ZodString>;
|
|
1037
|
-
/** What it was asked to do. */
|
|
1038
444
|
task: z.ZodString;
|
|
1039
|
-
/** Its role or type, e.g. "Explore". */
|
|
1040
445
|
agentType: z.ZodOptional<z.ZodString>;
|
|
1041
446
|
name: z.ZodOptional<z.ZodString>;
|
|
1042
447
|
running: z.ZodBoolean;
|
|
1043
448
|
failed: z.ZodOptional<z.ZodBoolean>;
|
|
1044
449
|
startedAt: z.ZodNumber;
|
|
1045
450
|
endedAt: z.ZodOptional<z.ZodNumber>;
|
|
1046
|
-
state: z.ZodOptional<z.ZodEnum<
|
|
451
|
+
state: z.ZodOptional<z.ZodEnum<{
|
|
452
|
+
paused: "paused";
|
|
453
|
+
unknown: "unknown";
|
|
454
|
+
pending: "pending";
|
|
455
|
+
completed: "completed";
|
|
456
|
+
failed: "failed";
|
|
457
|
+
running: "running";
|
|
458
|
+
stopped: "stopped";
|
|
459
|
+
}>>;
|
|
1047
460
|
workflow: z.ZodOptional<z.ZodObject<{
|
|
1048
461
|
runId: z.ZodOptional<z.ZodString>;
|
|
1049
462
|
name: z.ZodOptional<z.ZodString>;
|
|
1050
|
-
state: z.ZodOptional<z.ZodEnum<
|
|
463
|
+
state: z.ZodOptional<z.ZodEnum<{
|
|
464
|
+
paused: "paused";
|
|
465
|
+
completed: "completed";
|
|
466
|
+
failed: "failed";
|
|
467
|
+
running: "running";
|
|
468
|
+
stopped: "stopped";
|
|
469
|
+
}>>;
|
|
1051
470
|
started: z.ZodOptional<z.ZodNumber>;
|
|
1052
471
|
completed: z.ZodOptional<z.ZodNumber>;
|
|
1053
472
|
tokens: z.ZodOptional<z.ZodNumber>;
|
|
@@ -1058,20 +477,20 @@ export declare const subagentInfoSchema: z.ZodObject<{
|
|
|
1058
477
|
id: z.ZodString;
|
|
1059
478
|
title: z.ZodString;
|
|
1060
479
|
order: z.ZodNumber;
|
|
1061
|
-
},
|
|
1062
|
-
title: string;
|
|
1063
|
-
id: string;
|
|
1064
|
-
order: number;
|
|
1065
|
-
}, {
|
|
1066
|
-
title: string;
|
|
1067
|
-
id: string;
|
|
1068
|
-
order: number;
|
|
1069
|
-
}>, "many">>;
|
|
480
|
+
}, z.core.$strip>>>;
|
|
1070
481
|
agents: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
1071
482
|
id: z.ZodString;
|
|
1072
483
|
toolCallId: z.ZodOptional<z.ZodString>;
|
|
1073
484
|
title: z.ZodString;
|
|
1074
|
-
state: z.ZodEnum<
|
|
485
|
+
state: z.ZodEnum<{
|
|
486
|
+
paused: "paused";
|
|
487
|
+
unknown: "unknown";
|
|
488
|
+
pending: "pending";
|
|
489
|
+
completed: "completed";
|
|
490
|
+
failed: "failed";
|
|
491
|
+
running: "running";
|
|
492
|
+
stopped: "stopped";
|
|
493
|
+
}>;
|
|
1075
494
|
phaseId: z.ZodOptional<z.ZodString>;
|
|
1076
495
|
model: z.ZodOptional<z.ZodString>;
|
|
1077
496
|
tokens: z.ZodOptional<z.ZodNumber>;
|
|
@@ -1080,253 +499,69 @@ export declare const subagentInfoSchema: z.ZodObject<{
|
|
|
1080
499
|
startedAt: z.ZodOptional<z.ZodNumber>;
|
|
1081
500
|
endedAt: z.ZodOptional<z.ZodNumber>;
|
|
1082
501
|
result: z.ZodOptional<z.ZodString>;
|
|
1083
|
-
},
|
|
1084
|
-
|
|
1085
|
-
id: string;
|
|
1086
|
-
state: "unknown" | "paused" | "pending" | "completed" | "failed" | "running" | "stopped";
|
|
1087
|
-
toolCallId?: string | undefined;
|
|
1088
|
-
phaseId?: string | undefined;
|
|
1089
|
-
model?: string | undefined;
|
|
1090
|
-
tokens?: number | undefined;
|
|
1091
|
-
toolCalls?: number | undefined;
|
|
1092
|
-
durationMs?: number | undefined;
|
|
1093
|
-
startedAt?: number | undefined;
|
|
1094
|
-
endedAt?: number | undefined;
|
|
1095
|
-
result?: string | undefined;
|
|
1096
|
-
}, {
|
|
1097
|
-
title: string;
|
|
1098
|
-
id: string;
|
|
1099
|
-
state: "unknown" | "paused" | "pending" | "completed" | "failed" | "running" | "stopped";
|
|
1100
|
-
toolCallId?: string | undefined;
|
|
1101
|
-
phaseId?: string | undefined;
|
|
1102
|
-
model?: string | undefined;
|
|
1103
|
-
tokens?: number | undefined;
|
|
1104
|
-
toolCalls?: number | undefined;
|
|
1105
|
-
durationMs?: number | undefined;
|
|
1106
|
-
startedAt?: number | undefined;
|
|
1107
|
-
endedAt?: number | undefined;
|
|
1108
|
-
result?: string | undefined;
|
|
1109
|
-
}>, "many">>;
|
|
1110
|
-
}, "strip", z.ZodTypeAny, {
|
|
1111
|
-
name?: string | undefined;
|
|
1112
|
-
completed?: number | undefined;
|
|
1113
|
-
state?: "paused" | "completed" | "failed" | "running" | "stopped" | undefined;
|
|
1114
|
-
tokens?: number | undefined;
|
|
1115
|
-
durationMs?: number | undefined;
|
|
1116
|
-
startedAt?: number | undefined;
|
|
1117
|
-
endedAt?: number | undefined;
|
|
1118
|
-
runId?: string | undefined;
|
|
1119
|
-
started?: number | undefined;
|
|
1120
|
-
phases?: {
|
|
1121
|
-
title: string;
|
|
1122
|
-
id: string;
|
|
1123
|
-
order: number;
|
|
1124
|
-
}[] | undefined;
|
|
1125
|
-
agents?: {
|
|
1126
|
-
title: string;
|
|
1127
|
-
id: string;
|
|
1128
|
-
state: "unknown" | "paused" | "pending" | "completed" | "failed" | "running" | "stopped";
|
|
1129
|
-
toolCallId?: string | undefined;
|
|
1130
|
-
phaseId?: string | undefined;
|
|
1131
|
-
model?: string | undefined;
|
|
1132
|
-
tokens?: number | undefined;
|
|
1133
|
-
toolCalls?: number | undefined;
|
|
1134
|
-
durationMs?: number | undefined;
|
|
1135
|
-
startedAt?: number | undefined;
|
|
1136
|
-
endedAt?: number | undefined;
|
|
1137
|
-
result?: string | undefined;
|
|
1138
|
-
}[] | undefined;
|
|
1139
|
-
}, {
|
|
1140
|
-
name?: string | undefined;
|
|
1141
|
-
completed?: number | undefined;
|
|
1142
|
-
state?: "paused" | "completed" | "failed" | "running" | "stopped" | undefined;
|
|
1143
|
-
tokens?: number | undefined;
|
|
1144
|
-
durationMs?: number | undefined;
|
|
1145
|
-
startedAt?: number | undefined;
|
|
1146
|
-
endedAt?: number | undefined;
|
|
1147
|
-
runId?: string | undefined;
|
|
1148
|
-
started?: number | undefined;
|
|
1149
|
-
phases?: {
|
|
1150
|
-
title: string;
|
|
1151
|
-
id: string;
|
|
1152
|
-
order: number;
|
|
1153
|
-
}[] | undefined;
|
|
1154
|
-
agents?: {
|
|
1155
|
-
title: string;
|
|
1156
|
-
id: string;
|
|
1157
|
-
state: "unknown" | "paused" | "pending" | "completed" | "failed" | "running" | "stopped";
|
|
1158
|
-
toolCallId?: string | undefined;
|
|
1159
|
-
phaseId?: string | undefined;
|
|
1160
|
-
model?: string | undefined;
|
|
1161
|
-
tokens?: number | undefined;
|
|
1162
|
-
toolCalls?: number | undefined;
|
|
1163
|
-
durationMs?: number | undefined;
|
|
1164
|
-
startedAt?: number | undefined;
|
|
1165
|
-
endedAt?: number | undefined;
|
|
1166
|
-
result?: string | undefined;
|
|
1167
|
-
}[] | undefined;
|
|
1168
|
-
}>>;
|
|
1169
|
-
/** Orders list snapshots against events arriving while the request is in flight. */
|
|
502
|
+
}, z.core.$strip>>>;
|
|
503
|
+
}, z.core.$strip>>;
|
|
1170
504
|
lastSeq: z.ZodOptional<z.ZodNumber>;
|
|
1171
|
-
},
|
|
1172
|
-
running: boolean;
|
|
1173
|
-
toolCallId: string;
|
|
1174
|
-
startedAt: number;
|
|
1175
|
-
task: string;
|
|
1176
|
-
name?: string | undefined;
|
|
1177
|
-
failed?: boolean | undefined;
|
|
1178
|
-
state?: "unknown" | "paused" | "pending" | "completed" | "failed" | "running" | "stopped" | undefined;
|
|
1179
|
-
endedAt?: number | undefined;
|
|
1180
|
-
agentType?: string | undefined;
|
|
1181
|
-
nativeSessionId?: string | undefined;
|
|
1182
|
-
canCancel?: boolean | undefined;
|
|
1183
|
-
workflow?: {
|
|
1184
|
-
name?: string | undefined;
|
|
1185
|
-
completed?: number | undefined;
|
|
1186
|
-
state?: "paused" | "completed" | "failed" | "running" | "stopped" | undefined;
|
|
1187
|
-
tokens?: number | undefined;
|
|
1188
|
-
durationMs?: number | undefined;
|
|
1189
|
-
startedAt?: number | undefined;
|
|
1190
|
-
endedAt?: number | undefined;
|
|
1191
|
-
runId?: string | undefined;
|
|
1192
|
-
started?: number | undefined;
|
|
1193
|
-
phases?: {
|
|
1194
|
-
title: string;
|
|
1195
|
-
id: string;
|
|
1196
|
-
order: number;
|
|
1197
|
-
}[] | undefined;
|
|
1198
|
-
agents?: {
|
|
1199
|
-
title: string;
|
|
1200
|
-
id: string;
|
|
1201
|
-
state: "unknown" | "paused" | "pending" | "completed" | "failed" | "running" | "stopped";
|
|
1202
|
-
toolCallId?: string | undefined;
|
|
1203
|
-
phaseId?: string | undefined;
|
|
1204
|
-
model?: string | undefined;
|
|
1205
|
-
tokens?: number | undefined;
|
|
1206
|
-
toolCalls?: number | undefined;
|
|
1207
|
-
durationMs?: number | undefined;
|
|
1208
|
-
startedAt?: number | undefined;
|
|
1209
|
-
endedAt?: number | undefined;
|
|
1210
|
-
result?: string | undefined;
|
|
1211
|
-
}[] | undefined;
|
|
1212
|
-
} | undefined;
|
|
1213
|
-
parentToolCallId?: string | undefined;
|
|
1214
|
-
lastSeq?: number | undefined;
|
|
1215
|
-
}, {
|
|
1216
|
-
running: boolean;
|
|
1217
|
-
toolCallId: string;
|
|
1218
|
-
startedAt: number;
|
|
1219
|
-
task: string;
|
|
1220
|
-
name?: string | undefined;
|
|
1221
|
-
failed?: boolean | undefined;
|
|
1222
|
-
state?: "unknown" | "paused" | "pending" | "completed" | "failed" | "running" | "stopped" | undefined;
|
|
1223
|
-
endedAt?: number | undefined;
|
|
1224
|
-
agentType?: string | undefined;
|
|
1225
|
-
nativeSessionId?: string | undefined;
|
|
1226
|
-
canCancel?: boolean | undefined;
|
|
1227
|
-
workflow?: {
|
|
1228
|
-
name?: string | undefined;
|
|
1229
|
-
completed?: number | undefined;
|
|
1230
|
-
state?: "paused" | "completed" | "failed" | "running" | "stopped" | undefined;
|
|
1231
|
-
tokens?: number | undefined;
|
|
1232
|
-
durationMs?: number | undefined;
|
|
1233
|
-
startedAt?: number | undefined;
|
|
1234
|
-
endedAt?: number | undefined;
|
|
1235
|
-
runId?: string | undefined;
|
|
1236
|
-
started?: number | undefined;
|
|
1237
|
-
phases?: {
|
|
1238
|
-
title: string;
|
|
1239
|
-
id: string;
|
|
1240
|
-
order: number;
|
|
1241
|
-
}[] | undefined;
|
|
1242
|
-
agents?: {
|
|
1243
|
-
title: string;
|
|
1244
|
-
id: string;
|
|
1245
|
-
state: "unknown" | "paused" | "pending" | "completed" | "failed" | "running" | "stopped";
|
|
1246
|
-
toolCallId?: string | undefined;
|
|
1247
|
-
phaseId?: string | undefined;
|
|
1248
|
-
model?: string | undefined;
|
|
1249
|
-
tokens?: number | undefined;
|
|
1250
|
-
toolCalls?: number | undefined;
|
|
1251
|
-
durationMs?: number | undefined;
|
|
1252
|
-
startedAt?: number | undefined;
|
|
1253
|
-
endedAt?: number | undefined;
|
|
1254
|
-
result?: string | undefined;
|
|
1255
|
-
}[] | undefined;
|
|
1256
|
-
} | undefined;
|
|
1257
|
-
parentToolCallId?: string | undefined;
|
|
1258
|
-
lastSeq?: number | undefined;
|
|
1259
|
-
}>;
|
|
505
|
+
}, z.core.$strip>;
|
|
1260
506
|
export type SubagentInfo = z.infer<typeof subagentInfoSchema>;
|
|
1261
507
|
/**
|
|
1262
508
|
* A command the agent left running after its call returned (a background
|
|
1263
509
|
* shell, a dev server, a watcher). Sub-agents and workflows are not tasks:
|
|
1264
510
|
* they have their own records (`SubagentInfo`).
|
|
1265
511
|
*/
|
|
1266
|
-
export declare const backgroundTaskStateSchema: z.ZodEnum<
|
|
512
|
+
export declare const backgroundTaskStateSchema: z.ZodEnum<{
|
|
513
|
+
unknown: "unknown";
|
|
514
|
+
completed: "completed";
|
|
515
|
+
failed: "failed";
|
|
516
|
+
running: "running";
|
|
517
|
+
stopped: "stopped";
|
|
518
|
+
}>;
|
|
1267
519
|
export type BackgroundTaskState = z.infer<typeof backgroundTaskStateSchema>;
|
|
1268
520
|
export declare const backgroundTaskSchema: z.ZodObject<{
|
|
1269
|
-
/** The agent's own id for it. */
|
|
1270
521
|
id: z.ZodString;
|
|
1271
|
-
|
|
1272
|
-
|
|
1273
|
-
|
|
522
|
+
kind: z.ZodEnum<{
|
|
523
|
+
shell: "shell";
|
|
524
|
+
monitor: "monitor";
|
|
525
|
+
}>;
|
|
1274
526
|
toolCallId: z.ZodOptional<z.ZodString>;
|
|
1275
527
|
title: z.ZodString;
|
|
1276
528
|
command: z.ZodOptional<z.ZodString>;
|
|
1277
|
-
|
|
1278
|
-
|
|
529
|
+
state: z.ZodEnum<{
|
|
530
|
+
unknown: "unknown";
|
|
531
|
+
completed: "completed";
|
|
532
|
+
failed: "failed";
|
|
533
|
+
running: "running";
|
|
534
|
+
stopped: "stopped";
|
|
535
|
+
}>;
|
|
1279
536
|
startedAt: z.ZodNumber;
|
|
1280
537
|
endedAt: z.ZodOptional<z.ZodNumber>;
|
|
1281
|
-
/** How it ended, or the latest thing it reported, as the agent says it. */
|
|
1282
538
|
summary: z.ZodOptional<z.ZodString>;
|
|
1283
539
|
exitCode: z.ZodOptional<z.ZodNumber>;
|
|
1284
|
-
/** Its output can be read (`sessions.taskOutput`). */
|
|
1285
540
|
output: z.ZodOptional<z.ZodBoolean>;
|
|
1286
|
-
/** It can be stopped from here (`sessions.stopTask`). */
|
|
1287
541
|
canStop: z.ZodOptional<z.ZodBoolean>;
|
|
1288
|
-
/** Orders list snapshots against events arriving while the request is in flight. */
|
|
1289
542
|
lastSeq: z.ZodOptional<z.ZodNumber>;
|
|
1290
|
-
},
|
|
1291
|
-
title: string;
|
|
1292
|
-
kind: "shell" | "monitor";
|
|
1293
|
-
id: string;
|
|
1294
|
-
state: "unknown" | "completed" | "failed" | "running" | "stopped";
|
|
1295
|
-
startedAt: number;
|
|
1296
|
-
toolCallId?: string | undefined;
|
|
1297
|
-
endedAt?: number | undefined;
|
|
1298
|
-
command?: string | undefined;
|
|
1299
|
-
summary?: string | undefined;
|
|
1300
|
-
exitCode?: number | undefined;
|
|
1301
|
-
output?: boolean | undefined;
|
|
1302
|
-
canStop?: boolean | undefined;
|
|
1303
|
-
lastSeq?: number | undefined;
|
|
1304
|
-
}, {
|
|
1305
|
-
title: string;
|
|
1306
|
-
kind: "shell" | "monitor";
|
|
1307
|
-
id: string;
|
|
1308
|
-
state: "unknown" | "completed" | "failed" | "running" | "stopped";
|
|
1309
|
-
startedAt: number;
|
|
1310
|
-
toolCallId?: string | undefined;
|
|
1311
|
-
endedAt?: number | undefined;
|
|
1312
|
-
command?: string | undefined;
|
|
1313
|
-
summary?: string | undefined;
|
|
1314
|
-
exitCode?: number | undefined;
|
|
1315
|
-
output?: boolean | undefined;
|
|
1316
|
-
canStop?: boolean | undefined;
|
|
1317
|
-
lastSeq?: number | undefined;
|
|
1318
|
-
}>;
|
|
543
|
+
}, z.core.$strip>;
|
|
1319
544
|
export type BackgroundTask = z.infer<typeof backgroundTaskSchema>;
|
|
1320
545
|
export declare const sessionSummarySchema: z.ZodObject<{
|
|
1321
|
-
/** `${agent}:${nativeId}` — stable across daemon restarts and rediscovery. */
|
|
1322
546
|
id: z.ZodString;
|
|
1323
547
|
agent: z.ZodString;
|
|
1324
548
|
nativeId: z.ZodString;
|
|
1325
549
|
title: z.ZodOptional<z.ZodString>;
|
|
1326
550
|
preview: z.ZodOptional<z.ZodString>;
|
|
1327
551
|
cwd: z.ZodString;
|
|
1328
|
-
state: z.ZodEnum<
|
|
1329
|
-
|
|
552
|
+
state: z.ZodEnum<{
|
|
553
|
+
error: "error";
|
|
554
|
+
unknown: "unknown";
|
|
555
|
+
running: "running";
|
|
556
|
+
idle: "idle";
|
|
557
|
+
waiting: "waiting";
|
|
558
|
+
offline: "offline";
|
|
559
|
+
}>;
|
|
560
|
+
driver: z.ZodOptional<z.ZodEnum<{
|
|
561
|
+
desktop: "desktop";
|
|
562
|
+
remote: "remote";
|
|
563
|
+
none: "none";
|
|
564
|
+
}>>;
|
|
1330
565
|
pendingPermissions: z.ZodNumber;
|
|
1331
566
|
model: z.ZodOptional<z.ZodString>;
|
|
1332
567
|
createdAt: z.ZodNumber;
|
|
@@ -1334,18 +569,25 @@ export declare const sessionSummarySchema: z.ZodObject<{
|
|
|
1334
569
|
lastSeq: z.ZodNumber;
|
|
1335
570
|
archived: z.ZodBoolean;
|
|
1336
571
|
activity: z.ZodOptional<z.ZodObject<{
|
|
1337
|
-
kind: z.ZodEnum<
|
|
572
|
+
kind: z.ZodEnum<{
|
|
573
|
+
tool: "tool";
|
|
574
|
+
thinking: "thinking";
|
|
575
|
+
responding: "responding";
|
|
576
|
+
}>;
|
|
1338
577
|
title: z.ZodOptional<z.ZodString>;
|
|
1339
|
-
toolKind: z.ZodOptional<z.ZodEnum<
|
|
1340
|
-
|
|
1341
|
-
|
|
1342
|
-
|
|
1343
|
-
|
|
1344
|
-
|
|
1345
|
-
|
|
1346
|
-
|
|
1347
|
-
|
|
1348
|
-
|
|
578
|
+
toolKind: z.ZodOptional<z.ZodEnum<{
|
|
579
|
+
search: "search";
|
|
580
|
+
delete: "delete";
|
|
581
|
+
other: "other";
|
|
582
|
+
read: "read";
|
|
583
|
+
edit: "edit";
|
|
584
|
+
move: "move";
|
|
585
|
+
execute: "execute";
|
|
586
|
+
think: "think";
|
|
587
|
+
fetch: "fetch";
|
|
588
|
+
switch_mode: "switch_mode";
|
|
589
|
+
}>>;
|
|
590
|
+
}, z.core.$strip>>;
|
|
1349
591
|
permission: z.ZodOptional<z.ZodObject<{
|
|
1350
592
|
requestId: z.ZodString;
|
|
1351
593
|
childSessionId: z.ZodOptional<z.ZodString>;
|
|
@@ -1354,38 +596,52 @@ export declare const sessionSummarySchema: z.ZodObject<{
|
|
|
1354
596
|
detail: z.ZodOptional<z.ZodString>;
|
|
1355
597
|
tool: z.ZodOptional<z.ZodObject<{
|
|
1356
598
|
title: z.ZodOptional<z.ZodString>;
|
|
1357
|
-
kind: z.ZodOptional<z.ZodEnum<
|
|
599
|
+
kind: z.ZodOptional<z.ZodEnum<{
|
|
600
|
+
search: "search";
|
|
601
|
+
delete: "delete";
|
|
602
|
+
other: "other";
|
|
603
|
+
read: "read";
|
|
604
|
+
edit: "edit";
|
|
605
|
+
move: "move";
|
|
606
|
+
execute: "execute";
|
|
607
|
+
think: "think";
|
|
608
|
+
fetch: "fetch";
|
|
609
|
+
switch_mode: "switch_mode";
|
|
610
|
+
}>>;
|
|
1358
611
|
rawInput: z.ZodOptional<z.ZodUnknown>;
|
|
1359
|
-
content: z.ZodOptional<z.ZodArray<z.ZodDiscriminatedUnion<
|
|
612
|
+
content: z.ZodOptional<z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
1360
613
|
type: z.ZodLiteral<"content">;
|
|
1361
614
|
content: z.ZodType<{
|
|
1362
615
|
type: "text";
|
|
1363
616
|
text: string;
|
|
1364
|
-
annotations?:
|
|
1365
|
-
|
|
1366
|
-
|
|
1367
|
-
|
|
1368
|
-
|
|
617
|
+
annotations?: {
|
|
618
|
+
[x: string]: unknown;
|
|
619
|
+
audience?: ("user" | "assistant")[] | undefined;
|
|
620
|
+
priority?: number | undefined;
|
|
621
|
+
lastModified?: string | undefined;
|
|
622
|
+
} | undefined;
|
|
1369
623
|
_meta?: Record<string, unknown> | undefined;
|
|
1370
624
|
} | {
|
|
1371
625
|
type: "image";
|
|
1372
626
|
mimeType: string;
|
|
1373
|
-
annotations?:
|
|
1374
|
-
|
|
1375
|
-
|
|
1376
|
-
|
|
1377
|
-
|
|
627
|
+
annotations?: {
|
|
628
|
+
[x: string]: unknown;
|
|
629
|
+
audience?: ("user" | "assistant")[] | undefined;
|
|
630
|
+
priority?: number | undefined;
|
|
631
|
+
lastModified?: string | undefined;
|
|
632
|
+
} | undefined;
|
|
1378
633
|
_meta?: Record<string, unknown> | undefined;
|
|
1379
634
|
data?: string | undefined;
|
|
1380
635
|
uri?: string | undefined;
|
|
1381
636
|
} | {
|
|
1382
637
|
type: "audio";
|
|
1383
638
|
mimeType: string;
|
|
1384
|
-
annotations?:
|
|
1385
|
-
|
|
1386
|
-
|
|
1387
|
-
|
|
1388
|
-
|
|
639
|
+
annotations?: {
|
|
640
|
+
[x: string]: unknown;
|
|
641
|
+
audience?: ("user" | "assistant")[] | undefined;
|
|
642
|
+
priority?: number | undefined;
|
|
643
|
+
lastModified?: string | undefined;
|
|
644
|
+
} | undefined;
|
|
1389
645
|
_meta?: Record<string, unknown> | undefined;
|
|
1390
646
|
data?: string | undefined;
|
|
1391
647
|
uri?: string | undefined;
|
|
@@ -1393,64 +649,66 @@ export declare const sessionSummarySchema: z.ZodObject<{
|
|
|
1393
649
|
type: "resource";
|
|
1394
650
|
resource: {
|
|
1395
651
|
uri: string;
|
|
1396
|
-
text?: string | undefined;
|
|
1397
|
-
_meta?: Record<string, unknown> | undefined;
|
|
1398
652
|
mimeType?: string | undefined;
|
|
653
|
+
text?: string | undefined;
|
|
1399
654
|
blob?: string | undefined;
|
|
1400
655
|
assetUri?: string | undefined;
|
|
656
|
+
_meta?: Record<string, unknown> | undefined;
|
|
1401
657
|
};
|
|
1402
|
-
annotations?:
|
|
1403
|
-
|
|
1404
|
-
|
|
1405
|
-
|
|
1406
|
-
|
|
658
|
+
annotations?: {
|
|
659
|
+
[x: string]: unknown;
|
|
660
|
+
audience?: ("user" | "assistant")[] | undefined;
|
|
661
|
+
priority?: number | undefined;
|
|
662
|
+
lastModified?: string | undefined;
|
|
663
|
+
} | undefined;
|
|
1407
664
|
_meta?: Record<string, unknown> | undefined;
|
|
1408
665
|
} | {
|
|
1409
666
|
type: "resource_link";
|
|
1410
667
|
uri: string;
|
|
1411
668
|
name: string;
|
|
1412
|
-
|
|
1413
|
-
|
|
1414
|
-
|
|
1415
|
-
|
|
1416
|
-
|
|
669
|
+
kind?: "file" | "skill" | "agent" | undefined;
|
|
670
|
+
annotations?: {
|
|
671
|
+
[x: string]: unknown;
|
|
672
|
+
audience?: ("user" | "assistant")[] | undefined;
|
|
673
|
+
priority?: number | undefined;
|
|
674
|
+
lastModified?: string | undefined;
|
|
675
|
+
} | undefined;
|
|
1417
676
|
_meta?: Record<string, unknown> | undefined;
|
|
1418
|
-
mimeType?: string | undefined;
|
|
1419
677
|
title?: string | undefined;
|
|
1420
678
|
description?: string | undefined;
|
|
679
|
+
mimeType?: string | undefined;
|
|
1421
680
|
size?: number | undefined;
|
|
1422
|
-
|
|
1423
|
-
}, z.ZodTypeDef, unknown>;
|
|
1424
|
-
}, "strip", z.ZodTypeAny, {
|
|
1425
|
-
type: "content";
|
|
1426
|
-
content: {
|
|
681
|
+
}, unknown, z.core.$ZodTypeInternals<{
|
|
1427
682
|
type: "text";
|
|
1428
683
|
text: string;
|
|
1429
|
-
annotations?:
|
|
1430
|
-
|
|
1431
|
-
|
|
1432
|
-
|
|
1433
|
-
|
|
684
|
+
annotations?: {
|
|
685
|
+
[x: string]: unknown;
|
|
686
|
+
audience?: ("user" | "assistant")[] | undefined;
|
|
687
|
+
priority?: number | undefined;
|
|
688
|
+
lastModified?: string | undefined;
|
|
689
|
+
} | undefined;
|
|
1434
690
|
_meta?: Record<string, unknown> | undefined;
|
|
1435
691
|
} | {
|
|
1436
692
|
type: "image";
|
|
1437
693
|
mimeType: string;
|
|
1438
|
-
annotations?:
|
|
1439
|
-
|
|
1440
|
-
|
|
1441
|
-
|
|
1442
|
-
|
|
694
|
+
annotations?: {
|
|
695
|
+
[x: string]: unknown;
|
|
696
|
+
audience?: ("user" | "assistant")[] | undefined;
|
|
697
|
+
priority?: number | undefined;
|
|
698
|
+
lastModified?: string | undefined;
|
|
699
|
+
} | undefined;
|
|
1443
700
|
_meta?: Record<string, unknown> | undefined;
|
|
1444
701
|
data?: string | undefined;
|
|
1445
702
|
uri?: string | undefined;
|
|
1446
703
|
} | {
|
|
1447
704
|
type: "audio";
|
|
1448
705
|
mimeType: string;
|
|
1449
|
-
annotations?:
|
|
1450
|
-
|
|
1451
|
-
|
|
1452
|
-
|
|
1453
|
-
|
|
706
|
+
annotations?: {
|
|
707
|
+
[x: string]: unknown;
|
|
708
|
+
audience?: ("user" | "assistant")[] | undefined;
|
|
709
|
+
priority?: number | undefined;
|
|
710
|
+
lastModified?: string | undefined;
|
|
711
|
+
} | undefined;
|
|
1454
712
|
_meta?: Record<string, unknown> | undefined;
|
|
1455
713
|
data?: string | undefined;
|
|
1456
714
|
uri?: string | undefined;
|
|
@@ -1458,233 +716,84 @@ export declare const sessionSummarySchema: z.ZodObject<{
|
|
|
1458
716
|
type: "resource";
|
|
1459
717
|
resource: {
|
|
1460
718
|
uri: string;
|
|
1461
|
-
text?: string | undefined;
|
|
1462
|
-
_meta?: Record<string, unknown> | undefined;
|
|
1463
719
|
mimeType?: string | undefined;
|
|
720
|
+
text?: string | undefined;
|
|
1464
721
|
blob?: string | undefined;
|
|
1465
722
|
assetUri?: string | undefined;
|
|
723
|
+
_meta?: Record<string, unknown> | undefined;
|
|
1466
724
|
};
|
|
1467
|
-
annotations?:
|
|
1468
|
-
|
|
1469
|
-
|
|
1470
|
-
|
|
1471
|
-
|
|
725
|
+
annotations?: {
|
|
726
|
+
[x: string]: unknown;
|
|
727
|
+
audience?: ("user" | "assistant")[] | undefined;
|
|
728
|
+
priority?: number | undefined;
|
|
729
|
+
lastModified?: string | undefined;
|
|
730
|
+
} | undefined;
|
|
1472
731
|
_meta?: Record<string, unknown> | undefined;
|
|
1473
732
|
} | {
|
|
1474
733
|
type: "resource_link";
|
|
1475
734
|
uri: string;
|
|
1476
735
|
name: string;
|
|
1477
|
-
|
|
1478
|
-
|
|
1479
|
-
|
|
1480
|
-
|
|
1481
|
-
|
|
736
|
+
kind?: "file" | "skill" | "agent" | undefined;
|
|
737
|
+
annotations?: {
|
|
738
|
+
[x: string]: unknown;
|
|
739
|
+
audience?: ("user" | "assistant")[] | undefined;
|
|
740
|
+
priority?: number | undefined;
|
|
741
|
+
lastModified?: string | undefined;
|
|
742
|
+
} | undefined;
|
|
1482
743
|
_meta?: Record<string, unknown> | undefined;
|
|
1483
|
-
mimeType?: string | undefined;
|
|
1484
744
|
title?: string | undefined;
|
|
1485
745
|
description?: string | undefined;
|
|
746
|
+
mimeType?: string | undefined;
|
|
1486
747
|
size?: number | undefined;
|
|
1487
|
-
|
|
1488
|
-
|
|
1489
|
-
}, {
|
|
1490
|
-
type: "content";
|
|
1491
|
-
content?: unknown;
|
|
1492
|
-
}>, z.ZodObject<{
|
|
748
|
+
}, unknown>>;
|
|
749
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
1493
750
|
type: z.ZodLiteral<"diff">;
|
|
1494
751
|
path: z.ZodString;
|
|
1495
752
|
oldText: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1496
753
|
newText: z.ZodString;
|
|
1497
|
-
},
|
|
1498
|
-
path: string;
|
|
1499
|
-
type: "diff";
|
|
1500
|
-
newText: string;
|
|
1501
|
-
oldText?: string | null | undefined;
|
|
1502
|
-
}, {
|
|
1503
|
-
path: string;
|
|
1504
|
-
type: "diff";
|
|
1505
|
-
newText: string;
|
|
1506
|
-
oldText?: string | null | undefined;
|
|
1507
|
-
}>, z.ZodObject<{
|
|
754
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
1508
755
|
type: z.ZodLiteral<"patch">;
|
|
1509
756
|
path: z.ZodString;
|
|
1510
|
-
change: z.ZodEnum<
|
|
757
|
+
change: z.ZodEnum<{
|
|
758
|
+
add: "add";
|
|
759
|
+
delete: "delete";
|
|
760
|
+
update: "update";
|
|
761
|
+
}>;
|
|
1511
762
|
movePath: z.ZodOptional<z.ZodString>;
|
|
1512
763
|
diff: z.ZodString;
|
|
1513
|
-
},
|
|
1514
|
-
path: string;
|
|
1515
|
-
type: "patch";
|
|
1516
|
-
diff: string;
|
|
1517
|
-
change: "add" | "delete" | "update";
|
|
1518
|
-
movePath?: string | undefined;
|
|
1519
|
-
}, {
|
|
1520
|
-
path: string;
|
|
1521
|
-
type: "patch";
|
|
1522
|
-
diff: string;
|
|
1523
|
-
change: "add" | "delete" | "update";
|
|
1524
|
-
movePath?: string | undefined;
|
|
1525
|
-
}>, z.ZodObject<{
|
|
764
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
1526
765
|
type: z.ZodLiteral<"terminal">;
|
|
1527
766
|
terminalId: z.ZodString;
|
|
1528
|
-
},
|
|
1529
|
-
type: "terminal";
|
|
1530
|
-
terminalId: string;
|
|
1531
|
-
}, {
|
|
1532
|
-
type: "terminal";
|
|
1533
|
-
terminalId: string;
|
|
1534
|
-
}>]>, "many">>;
|
|
767
|
+
}, z.core.$strip>], "type">>>;
|
|
1535
768
|
locations: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
1536
769
|
path: z.ZodString;
|
|
1537
770
|
line: z.ZodOptional<z.ZodNumber>;
|
|
1538
|
-
},
|
|
1539
|
-
|
|
1540
|
-
line?: number | undefined;
|
|
1541
|
-
}, {
|
|
1542
|
-
path: string;
|
|
1543
|
-
line?: number | undefined;
|
|
1544
|
-
}>, "many">>;
|
|
1545
|
-
}, "strip", z.ZodTypeAny, {
|
|
1546
|
-
title?: string | undefined;
|
|
1547
|
-
kind?: "search" | "delete" | "other" | "read" | "edit" | "move" | "execute" | "think" | "fetch" | "switch_mode" | undefined;
|
|
1548
|
-
content?: ({
|
|
1549
|
-
type: "content";
|
|
1550
|
-
content: {
|
|
1551
|
-
type: "text";
|
|
1552
|
-
text: string;
|
|
1553
|
-
annotations?: z.objectOutputType<{
|
|
1554
|
-
audience: z.ZodEffects<z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodEnum<["user", "assistant"]>, "many">>>, ("user" | "assistant")[] | undefined, ("user" | "assistant")[] | null | undefined>;
|
|
1555
|
-
priority: z.ZodEffects<z.ZodOptional<z.ZodNullable<z.ZodNumber>>, number | undefined, number | null | undefined>;
|
|
1556
|
-
lastModified: z.ZodEffects<z.ZodOptional<z.ZodNullable<z.ZodString>>, string | undefined, string | null | undefined>;
|
|
1557
|
-
}, z.ZodTypeAny, "passthrough"> | undefined;
|
|
1558
|
-
_meta?: Record<string, unknown> | undefined;
|
|
1559
|
-
} | {
|
|
1560
|
-
type: "image";
|
|
1561
|
-
mimeType: string;
|
|
1562
|
-
annotations?: z.objectOutputType<{
|
|
1563
|
-
audience: z.ZodEffects<z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodEnum<["user", "assistant"]>, "many">>>, ("user" | "assistant")[] | undefined, ("user" | "assistant")[] | null | undefined>;
|
|
1564
|
-
priority: z.ZodEffects<z.ZodOptional<z.ZodNullable<z.ZodNumber>>, number | undefined, number | null | undefined>;
|
|
1565
|
-
lastModified: z.ZodEffects<z.ZodOptional<z.ZodNullable<z.ZodString>>, string | undefined, string | null | undefined>;
|
|
1566
|
-
}, z.ZodTypeAny, "passthrough"> | undefined;
|
|
1567
|
-
_meta?: Record<string, unknown> | undefined;
|
|
1568
|
-
data?: string | undefined;
|
|
1569
|
-
uri?: string | undefined;
|
|
1570
|
-
} | {
|
|
1571
|
-
type: "audio";
|
|
1572
|
-
mimeType: string;
|
|
1573
|
-
annotations?: z.objectOutputType<{
|
|
1574
|
-
audience: z.ZodEffects<z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodEnum<["user", "assistant"]>, "many">>>, ("user" | "assistant")[] | undefined, ("user" | "assistant")[] | null | undefined>;
|
|
1575
|
-
priority: z.ZodEffects<z.ZodOptional<z.ZodNullable<z.ZodNumber>>, number | undefined, number | null | undefined>;
|
|
1576
|
-
lastModified: z.ZodEffects<z.ZodOptional<z.ZodNullable<z.ZodString>>, string | undefined, string | null | undefined>;
|
|
1577
|
-
}, z.ZodTypeAny, "passthrough"> | undefined;
|
|
1578
|
-
_meta?: Record<string, unknown> | undefined;
|
|
1579
|
-
data?: string | undefined;
|
|
1580
|
-
uri?: string | undefined;
|
|
1581
|
-
} | {
|
|
1582
|
-
type: "resource";
|
|
1583
|
-
resource: {
|
|
1584
|
-
uri: string;
|
|
1585
|
-
text?: string | undefined;
|
|
1586
|
-
_meta?: Record<string, unknown> | undefined;
|
|
1587
|
-
mimeType?: string | undefined;
|
|
1588
|
-
blob?: string | undefined;
|
|
1589
|
-
assetUri?: string | undefined;
|
|
1590
|
-
};
|
|
1591
|
-
annotations?: z.objectOutputType<{
|
|
1592
|
-
audience: z.ZodEffects<z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodEnum<["user", "assistant"]>, "many">>>, ("user" | "assistant")[] | undefined, ("user" | "assistant")[] | null | undefined>;
|
|
1593
|
-
priority: z.ZodEffects<z.ZodOptional<z.ZodNullable<z.ZodNumber>>, number | undefined, number | null | undefined>;
|
|
1594
|
-
lastModified: z.ZodEffects<z.ZodOptional<z.ZodNullable<z.ZodString>>, string | undefined, string | null | undefined>;
|
|
1595
|
-
}, z.ZodTypeAny, "passthrough"> | undefined;
|
|
1596
|
-
_meta?: Record<string, unknown> | undefined;
|
|
1597
|
-
} | {
|
|
1598
|
-
type: "resource_link";
|
|
1599
|
-
uri: string;
|
|
1600
|
-
name: string;
|
|
1601
|
-
annotations?: z.objectOutputType<{
|
|
1602
|
-
audience: z.ZodEffects<z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodEnum<["user", "assistant"]>, "many">>>, ("user" | "assistant")[] | undefined, ("user" | "assistant")[] | null | undefined>;
|
|
1603
|
-
priority: z.ZodEffects<z.ZodOptional<z.ZodNullable<z.ZodNumber>>, number | undefined, number | null | undefined>;
|
|
1604
|
-
lastModified: z.ZodEffects<z.ZodOptional<z.ZodNullable<z.ZodString>>, string | undefined, string | null | undefined>;
|
|
1605
|
-
}, z.ZodTypeAny, "passthrough"> | undefined;
|
|
1606
|
-
_meta?: Record<string, unknown> | undefined;
|
|
1607
|
-
mimeType?: string | undefined;
|
|
1608
|
-
title?: string | undefined;
|
|
1609
|
-
description?: string | undefined;
|
|
1610
|
-
size?: number | undefined;
|
|
1611
|
-
kind?: "file" | "skill" | "agent" | undefined;
|
|
1612
|
-
};
|
|
1613
|
-
} | {
|
|
1614
|
-
path: string;
|
|
1615
|
-
type: "diff";
|
|
1616
|
-
newText: string;
|
|
1617
|
-
oldText?: string | null | undefined;
|
|
1618
|
-
} | {
|
|
1619
|
-
path: string;
|
|
1620
|
-
type: "patch";
|
|
1621
|
-
diff: string;
|
|
1622
|
-
change: "add" | "delete" | "update";
|
|
1623
|
-
movePath?: string | undefined;
|
|
1624
|
-
} | {
|
|
1625
|
-
type: "terminal";
|
|
1626
|
-
terminalId: string;
|
|
1627
|
-
})[] | undefined;
|
|
1628
|
-
rawInput?: unknown;
|
|
1629
|
-
locations?: {
|
|
1630
|
-
path: string;
|
|
1631
|
-
line?: number | undefined;
|
|
1632
|
-
}[] | undefined;
|
|
1633
|
-
}, {
|
|
1634
|
-
title?: string | undefined;
|
|
1635
|
-
kind?: "search" | "delete" | "other" | "read" | "edit" | "move" | "execute" | "think" | "fetch" | "switch_mode" | undefined;
|
|
1636
|
-
content?: ({
|
|
1637
|
-
type: "content";
|
|
1638
|
-
content?: unknown;
|
|
1639
|
-
} | {
|
|
1640
|
-
path: string;
|
|
1641
|
-
type: "diff";
|
|
1642
|
-
newText: string;
|
|
1643
|
-
oldText?: string | null | undefined;
|
|
1644
|
-
} | {
|
|
1645
|
-
path: string;
|
|
1646
|
-
type: "patch";
|
|
1647
|
-
diff: string;
|
|
1648
|
-
change: "add" | "delete" | "update";
|
|
1649
|
-
movePath?: string | undefined;
|
|
1650
|
-
} | {
|
|
1651
|
-
type: "terminal";
|
|
1652
|
-
terminalId: string;
|
|
1653
|
-
})[] | undefined;
|
|
1654
|
-
rawInput?: unknown;
|
|
1655
|
-
locations?: {
|
|
1656
|
-
path: string;
|
|
1657
|
-
line?: number | undefined;
|
|
1658
|
-
}[] | undefined;
|
|
1659
|
-
}>>;
|
|
771
|
+
}, z.core.$strip>>>;
|
|
772
|
+
}, z.core.$strip>>;
|
|
1660
773
|
url: z.ZodOptional<z.ZodObject<{
|
|
1661
774
|
url: z.ZodString;
|
|
1662
775
|
elicitationId: z.ZodString;
|
|
1663
|
-
},
|
|
1664
|
-
url: string;
|
|
1665
|
-
elicitationId: string;
|
|
1666
|
-
}, {
|
|
1667
|
-
url: string;
|
|
1668
|
-
elicitationId: string;
|
|
1669
|
-
}>>;
|
|
776
|
+
}, z.core.$strip>>;
|
|
1670
777
|
options: z.ZodArray<z.ZodObject<{
|
|
1671
778
|
optionId: z.ZodString;
|
|
1672
779
|
name: z.ZodString;
|
|
1673
|
-
kind: z.ZodEnum<
|
|
1674
|
-
|
|
1675
|
-
|
|
1676
|
-
|
|
1677
|
-
|
|
1678
|
-
|
|
1679
|
-
|
|
1680
|
-
kind: "allow_once" | "allow_always" | "reject_once" | "reject_always";
|
|
1681
|
-
optionId: string;
|
|
1682
|
-
}>, "many">;
|
|
1683
|
-
/** Set when this is a question to answer (`sessions.answer`) rather than a permission to give. */
|
|
780
|
+
kind: z.ZodEnum<{
|
|
781
|
+
allow_once: "allow_once";
|
|
782
|
+
allow_always: "allow_always";
|
|
783
|
+
reject_once: "reject_once";
|
|
784
|
+
reject_always: "reject_always";
|
|
785
|
+
}>;
|
|
786
|
+
}, z.core.$strip>>;
|
|
1684
787
|
questions: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
1685
788
|
id: z.ZodString;
|
|
1686
789
|
constraints: z.ZodOptional<z.ZodObject<{
|
|
1687
|
-
type: z.ZodEnum<
|
|
790
|
+
type: z.ZodEnum<{
|
|
791
|
+
string: "string";
|
|
792
|
+
number: "number";
|
|
793
|
+
boolean: "boolean";
|
|
794
|
+
array: "array";
|
|
795
|
+
integer: "integer";
|
|
796
|
+
}>;
|
|
1688
797
|
minimum: z.ZodOptional<z.ZodNumber>;
|
|
1689
798
|
maximum: z.ZodOptional<z.ZodNumber>;
|
|
1690
799
|
minLength: z.ZodOptional<z.ZodNumber>;
|
|
@@ -1693,681 +802,51 @@ export declare const sessionSummarySchema: z.ZodObject<{
|
|
|
1693
802
|
maxItems: z.ZodOptional<z.ZodNumber>;
|
|
1694
803
|
pattern: z.ZodOptional<z.ZodString>;
|
|
1695
804
|
format: z.ZodOptional<z.ZodString>;
|
|
1696
|
-
},
|
|
1697
|
-
|
|
1698
|
-
minimum?: number | undefined;
|
|
1699
|
-
maximum?: number | undefined;
|
|
1700
|
-
minLength?: number | undefined;
|
|
1701
|
-
maxLength?: number | undefined;
|
|
1702
|
-
minItems?: number | undefined;
|
|
1703
|
-
maxItems?: number | undefined;
|
|
1704
|
-
pattern?: string | undefined;
|
|
1705
|
-
format?: string | undefined;
|
|
1706
|
-
}, {
|
|
1707
|
-
type: "string" | "number" | "boolean" | "integer" | "array";
|
|
1708
|
-
minimum?: number | undefined;
|
|
1709
|
-
maximum?: number | undefined;
|
|
1710
|
-
minLength?: number | undefined;
|
|
1711
|
-
maxLength?: number | undefined;
|
|
1712
|
-
minItems?: number | undefined;
|
|
1713
|
-
maxItems?: number | undefined;
|
|
1714
|
-
pattern?: string | undefined;
|
|
1715
|
-
format?: string | undefined;
|
|
1716
|
-
}>>;
|
|
1717
|
-
defaults: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
1718
|
-
/** A short label for the question ("Auth method"). */
|
|
805
|
+
}, z.core.$strip>>;
|
|
806
|
+
defaults: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
1719
807
|
header: z.ZodOptional<z.ZodString>;
|
|
1720
808
|
text: z.ZodString;
|
|
1721
|
-
|
|
1722
|
-
|
|
809
|
+
kind: z.ZodEnum<{
|
|
810
|
+
text: "text";
|
|
811
|
+
choice: "choice";
|
|
812
|
+
choices: "choices";
|
|
813
|
+
}>;
|
|
1723
814
|
options: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
1724
815
|
value: z.ZodString;
|
|
1725
816
|
label: z.ZodString;
|
|
1726
817
|
description: z.ZodOptional<z.ZodString>;
|
|
1727
|
-
},
|
|
1728
|
-
value: string;
|
|
1729
|
-
label: string;
|
|
1730
|
-
description?: string | undefined;
|
|
1731
|
-
}, {
|
|
1732
|
-
value: string;
|
|
1733
|
-
label: string;
|
|
1734
|
-
description?: string | undefined;
|
|
1735
|
-
}>, "many">>;
|
|
1736
|
-
/** With options: an answer of the user's own can be typed instead of, or beside, a pick. */
|
|
818
|
+
}, z.core.$strip>>>;
|
|
1737
819
|
other: z.ZodOptional<z.ZodBoolean>;
|
|
1738
|
-
/** What is typed shouldn't be shown (a token). */
|
|
1739
820
|
secret: z.ZodOptional<z.ZodBoolean>;
|
|
1740
821
|
required: z.ZodOptional<z.ZodBoolean>;
|
|
1741
|
-
},
|
|
1742
|
-
|
|
1743
|
-
kind: "text" | "choice" | "choices";
|
|
1744
|
-
id: string;
|
|
1745
|
-
secret?: boolean | undefined;
|
|
1746
|
-
options?: {
|
|
1747
|
-
value: string;
|
|
1748
|
-
label: string;
|
|
1749
|
-
description?: string | undefined;
|
|
1750
|
-
}[] | undefined;
|
|
1751
|
-
other?: boolean | undefined;
|
|
1752
|
-
constraints?: {
|
|
1753
|
-
type: "string" | "number" | "boolean" | "integer" | "array";
|
|
1754
|
-
minimum?: number | undefined;
|
|
1755
|
-
maximum?: number | undefined;
|
|
1756
|
-
minLength?: number | undefined;
|
|
1757
|
-
maxLength?: number | undefined;
|
|
1758
|
-
minItems?: number | undefined;
|
|
1759
|
-
maxItems?: number | undefined;
|
|
1760
|
-
pattern?: string | undefined;
|
|
1761
|
-
format?: string | undefined;
|
|
1762
|
-
} | undefined;
|
|
1763
|
-
defaults?: string[] | undefined;
|
|
1764
|
-
header?: string | undefined;
|
|
1765
|
-
required?: boolean | undefined;
|
|
1766
|
-
}, {
|
|
1767
|
-
text: string;
|
|
1768
|
-
kind: "text" | "choice" | "choices";
|
|
1769
|
-
id: string;
|
|
1770
|
-
secret?: boolean | undefined;
|
|
1771
|
-
options?: {
|
|
1772
|
-
value: string;
|
|
1773
|
-
label: string;
|
|
1774
|
-
description?: string | undefined;
|
|
1775
|
-
}[] | undefined;
|
|
1776
|
-
other?: boolean | undefined;
|
|
1777
|
-
constraints?: {
|
|
1778
|
-
type: "string" | "number" | "boolean" | "integer" | "array";
|
|
1779
|
-
minimum?: number | undefined;
|
|
1780
|
-
maximum?: number | undefined;
|
|
1781
|
-
minLength?: number | undefined;
|
|
1782
|
-
maxLength?: number | undefined;
|
|
1783
|
-
minItems?: number | undefined;
|
|
1784
|
-
maxItems?: number | undefined;
|
|
1785
|
-
pattern?: string | undefined;
|
|
1786
|
-
format?: string | undefined;
|
|
1787
|
-
} | undefined;
|
|
1788
|
-
defaults?: string[] | undefined;
|
|
1789
|
-
header?: string | undefined;
|
|
1790
|
-
required?: boolean | undefined;
|
|
1791
|
-
}>, "many">>;
|
|
1792
|
-
}, "strip", z.ZodTypeAny, {
|
|
1793
|
-
options: {
|
|
1794
|
-
name: string;
|
|
1795
|
-
kind: "allow_once" | "allow_always" | "reject_once" | "reject_always";
|
|
1796
|
-
optionId: string;
|
|
1797
|
-
}[];
|
|
1798
|
-
title: string;
|
|
1799
|
-
requestId: string;
|
|
1800
|
-
toolCallId?: string | undefined;
|
|
1801
|
-
tool?: {
|
|
1802
|
-
title?: string | undefined;
|
|
1803
|
-
kind?: "search" | "delete" | "other" | "read" | "edit" | "move" | "execute" | "think" | "fetch" | "switch_mode" | undefined;
|
|
1804
|
-
content?: ({
|
|
1805
|
-
type: "content";
|
|
1806
|
-
content: {
|
|
1807
|
-
type: "text";
|
|
1808
|
-
text: string;
|
|
1809
|
-
annotations?: z.objectOutputType<{
|
|
1810
|
-
audience: z.ZodEffects<z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodEnum<["user", "assistant"]>, "many">>>, ("user" | "assistant")[] | undefined, ("user" | "assistant")[] | null | undefined>;
|
|
1811
|
-
priority: z.ZodEffects<z.ZodOptional<z.ZodNullable<z.ZodNumber>>, number | undefined, number | null | undefined>;
|
|
1812
|
-
lastModified: z.ZodEffects<z.ZodOptional<z.ZodNullable<z.ZodString>>, string | undefined, string | null | undefined>;
|
|
1813
|
-
}, z.ZodTypeAny, "passthrough"> | undefined;
|
|
1814
|
-
_meta?: Record<string, unknown> | undefined;
|
|
1815
|
-
} | {
|
|
1816
|
-
type: "image";
|
|
1817
|
-
mimeType: string;
|
|
1818
|
-
annotations?: z.objectOutputType<{
|
|
1819
|
-
audience: z.ZodEffects<z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodEnum<["user", "assistant"]>, "many">>>, ("user" | "assistant")[] | undefined, ("user" | "assistant")[] | null | undefined>;
|
|
1820
|
-
priority: z.ZodEffects<z.ZodOptional<z.ZodNullable<z.ZodNumber>>, number | undefined, number | null | undefined>;
|
|
1821
|
-
lastModified: z.ZodEffects<z.ZodOptional<z.ZodNullable<z.ZodString>>, string | undefined, string | null | undefined>;
|
|
1822
|
-
}, z.ZodTypeAny, "passthrough"> | undefined;
|
|
1823
|
-
_meta?: Record<string, unknown> | undefined;
|
|
1824
|
-
data?: string | undefined;
|
|
1825
|
-
uri?: string | undefined;
|
|
1826
|
-
} | {
|
|
1827
|
-
type: "audio";
|
|
1828
|
-
mimeType: string;
|
|
1829
|
-
annotations?: z.objectOutputType<{
|
|
1830
|
-
audience: z.ZodEffects<z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodEnum<["user", "assistant"]>, "many">>>, ("user" | "assistant")[] | undefined, ("user" | "assistant")[] | null | undefined>;
|
|
1831
|
-
priority: z.ZodEffects<z.ZodOptional<z.ZodNullable<z.ZodNumber>>, number | undefined, number | null | undefined>;
|
|
1832
|
-
lastModified: z.ZodEffects<z.ZodOptional<z.ZodNullable<z.ZodString>>, string | undefined, string | null | undefined>;
|
|
1833
|
-
}, z.ZodTypeAny, "passthrough"> | undefined;
|
|
1834
|
-
_meta?: Record<string, unknown> | undefined;
|
|
1835
|
-
data?: string | undefined;
|
|
1836
|
-
uri?: string | undefined;
|
|
1837
|
-
} | {
|
|
1838
|
-
type: "resource";
|
|
1839
|
-
resource: {
|
|
1840
|
-
uri: string;
|
|
1841
|
-
text?: string | undefined;
|
|
1842
|
-
_meta?: Record<string, unknown> | undefined;
|
|
1843
|
-
mimeType?: string | undefined;
|
|
1844
|
-
blob?: string | undefined;
|
|
1845
|
-
assetUri?: string | undefined;
|
|
1846
|
-
};
|
|
1847
|
-
annotations?: z.objectOutputType<{
|
|
1848
|
-
audience: z.ZodEffects<z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodEnum<["user", "assistant"]>, "many">>>, ("user" | "assistant")[] | undefined, ("user" | "assistant")[] | null | undefined>;
|
|
1849
|
-
priority: z.ZodEffects<z.ZodOptional<z.ZodNullable<z.ZodNumber>>, number | undefined, number | null | undefined>;
|
|
1850
|
-
lastModified: z.ZodEffects<z.ZodOptional<z.ZodNullable<z.ZodString>>, string | undefined, string | null | undefined>;
|
|
1851
|
-
}, z.ZodTypeAny, "passthrough"> | undefined;
|
|
1852
|
-
_meta?: Record<string, unknown> | undefined;
|
|
1853
|
-
} | {
|
|
1854
|
-
type: "resource_link";
|
|
1855
|
-
uri: string;
|
|
1856
|
-
name: string;
|
|
1857
|
-
annotations?: z.objectOutputType<{
|
|
1858
|
-
audience: z.ZodEffects<z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodEnum<["user", "assistant"]>, "many">>>, ("user" | "assistant")[] | undefined, ("user" | "assistant")[] | null | undefined>;
|
|
1859
|
-
priority: z.ZodEffects<z.ZodOptional<z.ZodNullable<z.ZodNumber>>, number | undefined, number | null | undefined>;
|
|
1860
|
-
lastModified: z.ZodEffects<z.ZodOptional<z.ZodNullable<z.ZodString>>, string | undefined, string | null | undefined>;
|
|
1861
|
-
}, z.ZodTypeAny, "passthrough"> | undefined;
|
|
1862
|
-
_meta?: Record<string, unknown> | undefined;
|
|
1863
|
-
mimeType?: string | undefined;
|
|
1864
|
-
title?: string | undefined;
|
|
1865
|
-
description?: string | undefined;
|
|
1866
|
-
size?: number | undefined;
|
|
1867
|
-
kind?: "file" | "skill" | "agent" | undefined;
|
|
1868
|
-
};
|
|
1869
|
-
} | {
|
|
1870
|
-
path: string;
|
|
1871
|
-
type: "diff";
|
|
1872
|
-
newText: string;
|
|
1873
|
-
oldText?: string | null | undefined;
|
|
1874
|
-
} | {
|
|
1875
|
-
path: string;
|
|
1876
|
-
type: "patch";
|
|
1877
|
-
diff: string;
|
|
1878
|
-
change: "add" | "delete" | "update";
|
|
1879
|
-
movePath?: string | undefined;
|
|
1880
|
-
} | {
|
|
1881
|
-
type: "terminal";
|
|
1882
|
-
terminalId: string;
|
|
1883
|
-
})[] | undefined;
|
|
1884
|
-
rawInput?: unknown;
|
|
1885
|
-
locations?: {
|
|
1886
|
-
path: string;
|
|
1887
|
-
line?: number | undefined;
|
|
1888
|
-
}[] | undefined;
|
|
1889
|
-
} | undefined;
|
|
1890
|
-
detail?: string | undefined;
|
|
1891
|
-
questions?: {
|
|
1892
|
-
text: string;
|
|
1893
|
-
kind: "text" | "choice" | "choices";
|
|
1894
|
-
id: string;
|
|
1895
|
-
secret?: boolean | undefined;
|
|
1896
|
-
options?: {
|
|
1897
|
-
value: string;
|
|
1898
|
-
label: string;
|
|
1899
|
-
description?: string | undefined;
|
|
1900
|
-
}[] | undefined;
|
|
1901
|
-
other?: boolean | undefined;
|
|
1902
|
-
constraints?: {
|
|
1903
|
-
type: "string" | "number" | "boolean" | "integer" | "array";
|
|
1904
|
-
minimum?: number | undefined;
|
|
1905
|
-
maximum?: number | undefined;
|
|
1906
|
-
minLength?: number | undefined;
|
|
1907
|
-
maxLength?: number | undefined;
|
|
1908
|
-
minItems?: number | undefined;
|
|
1909
|
-
maxItems?: number | undefined;
|
|
1910
|
-
pattern?: string | undefined;
|
|
1911
|
-
format?: string | undefined;
|
|
1912
|
-
} | undefined;
|
|
1913
|
-
defaults?: string[] | undefined;
|
|
1914
|
-
header?: string | undefined;
|
|
1915
|
-
required?: boolean | undefined;
|
|
1916
|
-
}[] | undefined;
|
|
1917
|
-
childSessionId?: string | undefined;
|
|
1918
|
-
url?: {
|
|
1919
|
-
url: string;
|
|
1920
|
-
elicitationId: string;
|
|
1921
|
-
} | undefined;
|
|
1922
|
-
}, {
|
|
1923
|
-
options: {
|
|
1924
|
-
name: string;
|
|
1925
|
-
kind: "allow_once" | "allow_always" | "reject_once" | "reject_always";
|
|
1926
|
-
optionId: string;
|
|
1927
|
-
}[];
|
|
1928
|
-
title: string;
|
|
1929
|
-
requestId: string;
|
|
1930
|
-
toolCallId?: string | undefined;
|
|
1931
|
-
tool?: {
|
|
1932
|
-
title?: string | undefined;
|
|
1933
|
-
kind?: "search" | "delete" | "other" | "read" | "edit" | "move" | "execute" | "think" | "fetch" | "switch_mode" | undefined;
|
|
1934
|
-
content?: ({
|
|
1935
|
-
type: "content";
|
|
1936
|
-
content?: unknown;
|
|
1937
|
-
} | {
|
|
1938
|
-
path: string;
|
|
1939
|
-
type: "diff";
|
|
1940
|
-
newText: string;
|
|
1941
|
-
oldText?: string | null | undefined;
|
|
1942
|
-
} | {
|
|
1943
|
-
path: string;
|
|
1944
|
-
type: "patch";
|
|
1945
|
-
diff: string;
|
|
1946
|
-
change: "add" | "delete" | "update";
|
|
1947
|
-
movePath?: string | undefined;
|
|
1948
|
-
} | {
|
|
1949
|
-
type: "terminal";
|
|
1950
|
-
terminalId: string;
|
|
1951
|
-
})[] | undefined;
|
|
1952
|
-
rawInput?: unknown;
|
|
1953
|
-
locations?: {
|
|
1954
|
-
path: string;
|
|
1955
|
-
line?: number | undefined;
|
|
1956
|
-
}[] | undefined;
|
|
1957
|
-
} | undefined;
|
|
1958
|
-
detail?: string | undefined;
|
|
1959
|
-
questions?: {
|
|
1960
|
-
text: string;
|
|
1961
|
-
kind: "text" | "choice" | "choices";
|
|
1962
|
-
id: string;
|
|
1963
|
-
secret?: boolean | undefined;
|
|
1964
|
-
options?: {
|
|
1965
|
-
value: string;
|
|
1966
|
-
label: string;
|
|
1967
|
-
description?: string | undefined;
|
|
1968
|
-
}[] | undefined;
|
|
1969
|
-
other?: boolean | undefined;
|
|
1970
|
-
constraints?: {
|
|
1971
|
-
type: "string" | "number" | "boolean" | "integer" | "array";
|
|
1972
|
-
minimum?: number | undefined;
|
|
1973
|
-
maximum?: number | undefined;
|
|
1974
|
-
minLength?: number | undefined;
|
|
1975
|
-
maxLength?: number | undefined;
|
|
1976
|
-
minItems?: number | undefined;
|
|
1977
|
-
maxItems?: number | undefined;
|
|
1978
|
-
pattern?: string | undefined;
|
|
1979
|
-
format?: string | undefined;
|
|
1980
|
-
} | undefined;
|
|
1981
|
-
defaults?: string[] | undefined;
|
|
1982
|
-
header?: string | undefined;
|
|
1983
|
-
required?: boolean | undefined;
|
|
1984
|
-
}[] | undefined;
|
|
1985
|
-
childSessionId?: string | undefined;
|
|
1986
|
-
url?: {
|
|
1987
|
-
url: string;
|
|
1988
|
-
elicitationId: string;
|
|
1989
|
-
} | undefined;
|
|
1990
|
-
}>>;
|
|
1991
|
-
/** Unanswered questions in the current turn, even while the agent continues working. */
|
|
822
|
+
}, z.core.$strip>>>;
|
|
823
|
+
}, z.core.$strip>>;
|
|
1992
824
|
asyncQuestions: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
1993
825
|
id: z.ZodString;
|
|
1994
826
|
title: z.ZodString;
|
|
1995
|
-
options: z.ZodArray<z.ZodString
|
|
1996
|
-
},
|
|
1997
|
-
options: string[];
|
|
1998
|
-
title: string;
|
|
1999
|
-
id: string;
|
|
2000
|
-
}, {
|
|
2001
|
-
options: string[];
|
|
2002
|
-
title: string;
|
|
2003
|
-
id: string;
|
|
2004
|
-
}>, "many">>;
|
|
2005
|
-
/**
|
|
2006
|
-
* Live only: messages waiting for the current turn to end, when the host
|
|
2007
|
-
* holds them (agents that can't take input mid-turn). Oldest first.
|
|
2008
|
-
*/
|
|
827
|
+
options: z.ZodArray<z.ZodString>;
|
|
828
|
+
}, z.core.$strip>>>;
|
|
2009
829
|
queue: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
2010
830
|
clientMessageId: z.ZodString;
|
|
2011
|
-
/** The message's text (images are counted, not sent). */
|
|
2012
831
|
text: z.ZodString;
|
|
2013
832
|
images: z.ZodNumber;
|
|
2014
|
-
},
|
|
2015
|
-
text: string;
|
|
2016
|
-
images: number;
|
|
2017
|
-
clientMessageId: string;
|
|
2018
|
-
}, {
|
|
2019
|
-
text: string;
|
|
2020
|
-
images: number;
|
|
2021
|
-
clientMessageId: string;
|
|
2022
|
-
}>, "many">>;
|
|
2023
|
-
/**
|
|
2024
|
-
* The session works in a git worktree LinkShell made for it: its own
|
|
2025
|
-
* checkout and branch, so it can't disturb the project's working directory.
|
|
2026
|
-
* `cwd` is inside the worktree; `source` is the directory it was made from
|
|
2027
|
-
* (the project the session belongs to).
|
|
2028
|
-
*/
|
|
833
|
+
}, z.core.$strip>>>;
|
|
2029
834
|
worktree: z.ZodOptional<z.ZodObject<{
|
|
2030
835
|
branch: z.ZodString;
|
|
2031
836
|
source: z.ZodString;
|
|
2032
|
-
},
|
|
2033
|
-
branch: string;
|
|
2034
|
-
source: string;
|
|
2035
|
-
}, {
|
|
2036
|
-
branch: string;
|
|
2037
|
-
source: string;
|
|
2038
|
-
}>>;
|
|
2039
|
-
/**
|
|
2040
|
-
* The LinkShell session that started this one (e.g. a Claude desktop
|
|
2041
|
-
* session's start_session or hand-off): the sidebar nests it there. Set
|
|
2042
|
-
* only when this host has that session too. Absent from older hosts.
|
|
2043
|
-
*/
|
|
837
|
+
}, z.core.$strip>>;
|
|
2044
838
|
parentId: z.ZodOptional<z.ZodString>;
|
|
2045
|
-
/**
|
|
2046
|
-
* The LinkShell session this one was forked from (made here with
|
|
2047
|
-
* `sessions.fork`, or recorded by the agent), when this host has it. Kept
|
|
2048
|
-
* apart from `parentId`: a fork is a copy, not something that session
|
|
2049
|
-
* started, so whether it nests is the list's choice.
|
|
2050
|
-
*/
|
|
2051
839
|
forkedFrom: z.ZodOptional<z.ZodString>;
|
|
2052
|
-
/**
|
|
2053
|
-
* The id an app of the agent's knows the session by (the Claude desktop
|
|
2054
|
-
* app's `local_…`): mail between its sessions names the sender by it, so a
|
|
2055
|
-
* client can open the sender. Absent from older hosts.
|
|
2056
|
-
*/
|
|
2057
840
|
appId: z.ZodOptional<z.ZodString>;
|
|
2058
|
-
/** Live only, for sessions that started sub-agents: how many, and how many are working now (`sessions.subagents` lists them). */
|
|
2059
841
|
subagents: z.ZodOptional<z.ZodObject<{
|
|
2060
842
|
total: z.ZodNumber;
|
|
2061
843
|
running: z.ZodNumber;
|
|
2062
|
-
},
|
|
2063
|
-
running: number;
|
|
2064
|
-
total: number;
|
|
2065
|
-
}, {
|
|
2066
|
-
running: number;
|
|
2067
|
-
total: number;
|
|
2068
|
-
}>>;
|
|
2069
|
-
/** Live only, for sessions that left commands running: how many, and how many still run (`sessions.tasks` lists them). */
|
|
844
|
+
}, z.core.$strip>>;
|
|
2070
845
|
tasks: z.ZodOptional<z.ZodObject<{
|
|
2071
846
|
total: z.ZodNumber;
|
|
2072
847
|
running: z.ZodNumber;
|
|
2073
|
-
},
|
|
2074
|
-
|
|
2075
|
-
total: number;
|
|
2076
|
-
}, {
|
|
2077
|
-
running: number;
|
|
2078
|
-
total: number;
|
|
2079
|
-
}>>;
|
|
2080
|
-
}, "strip", z.ZodTypeAny, {
|
|
2081
|
-
agent: string;
|
|
2082
|
-
id: string;
|
|
2083
|
-
state: "unknown" | "running" | "error" | "idle" | "waiting" | "offline";
|
|
2084
|
-
updatedAt: number;
|
|
2085
|
-
lastSeq: number;
|
|
2086
|
-
nativeId: string;
|
|
2087
|
-
cwd: string;
|
|
2088
|
-
pendingPermissions: number;
|
|
2089
|
-
createdAt: number;
|
|
2090
|
-
archived: boolean;
|
|
2091
|
-
title?: string | undefined;
|
|
2092
|
-
model?: string | undefined;
|
|
2093
|
-
driver?: "desktop" | "remote" | "none" | undefined;
|
|
2094
|
-
preview?: string | undefined;
|
|
2095
|
-
activity?: {
|
|
2096
|
-
kind: "tool" | "thinking" | "responding";
|
|
2097
|
-
title?: string | undefined;
|
|
2098
|
-
toolKind?: "search" | "delete" | "other" | "read" | "edit" | "move" | "execute" | "think" | "fetch" | "switch_mode" | undefined;
|
|
2099
|
-
} | undefined;
|
|
2100
|
-
permission?: {
|
|
2101
|
-
options: {
|
|
2102
|
-
name: string;
|
|
2103
|
-
kind: "allow_once" | "allow_always" | "reject_once" | "reject_always";
|
|
2104
|
-
optionId: string;
|
|
2105
|
-
}[];
|
|
2106
|
-
title: string;
|
|
2107
|
-
requestId: string;
|
|
2108
|
-
toolCallId?: string | undefined;
|
|
2109
|
-
tool?: {
|
|
2110
|
-
title?: string | undefined;
|
|
2111
|
-
kind?: "search" | "delete" | "other" | "read" | "edit" | "move" | "execute" | "think" | "fetch" | "switch_mode" | undefined;
|
|
2112
|
-
content?: ({
|
|
2113
|
-
type: "content";
|
|
2114
|
-
content: {
|
|
2115
|
-
type: "text";
|
|
2116
|
-
text: string;
|
|
2117
|
-
annotations?: z.objectOutputType<{
|
|
2118
|
-
audience: z.ZodEffects<z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodEnum<["user", "assistant"]>, "many">>>, ("user" | "assistant")[] | undefined, ("user" | "assistant")[] | null | undefined>;
|
|
2119
|
-
priority: z.ZodEffects<z.ZodOptional<z.ZodNullable<z.ZodNumber>>, number | undefined, number | null | undefined>;
|
|
2120
|
-
lastModified: z.ZodEffects<z.ZodOptional<z.ZodNullable<z.ZodString>>, string | undefined, string | null | undefined>;
|
|
2121
|
-
}, z.ZodTypeAny, "passthrough"> | undefined;
|
|
2122
|
-
_meta?: Record<string, unknown> | undefined;
|
|
2123
|
-
} | {
|
|
2124
|
-
type: "image";
|
|
2125
|
-
mimeType: string;
|
|
2126
|
-
annotations?: z.objectOutputType<{
|
|
2127
|
-
audience: z.ZodEffects<z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodEnum<["user", "assistant"]>, "many">>>, ("user" | "assistant")[] | undefined, ("user" | "assistant")[] | null | undefined>;
|
|
2128
|
-
priority: z.ZodEffects<z.ZodOptional<z.ZodNullable<z.ZodNumber>>, number | undefined, number | null | undefined>;
|
|
2129
|
-
lastModified: z.ZodEffects<z.ZodOptional<z.ZodNullable<z.ZodString>>, string | undefined, string | null | undefined>;
|
|
2130
|
-
}, z.ZodTypeAny, "passthrough"> | undefined;
|
|
2131
|
-
_meta?: Record<string, unknown> | undefined;
|
|
2132
|
-
data?: string | undefined;
|
|
2133
|
-
uri?: string | undefined;
|
|
2134
|
-
} | {
|
|
2135
|
-
type: "audio";
|
|
2136
|
-
mimeType: string;
|
|
2137
|
-
annotations?: z.objectOutputType<{
|
|
2138
|
-
audience: z.ZodEffects<z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodEnum<["user", "assistant"]>, "many">>>, ("user" | "assistant")[] | undefined, ("user" | "assistant")[] | null | undefined>;
|
|
2139
|
-
priority: z.ZodEffects<z.ZodOptional<z.ZodNullable<z.ZodNumber>>, number | undefined, number | null | undefined>;
|
|
2140
|
-
lastModified: z.ZodEffects<z.ZodOptional<z.ZodNullable<z.ZodString>>, string | undefined, string | null | undefined>;
|
|
2141
|
-
}, z.ZodTypeAny, "passthrough"> | undefined;
|
|
2142
|
-
_meta?: Record<string, unknown> | undefined;
|
|
2143
|
-
data?: string | undefined;
|
|
2144
|
-
uri?: string | undefined;
|
|
2145
|
-
} | {
|
|
2146
|
-
type: "resource";
|
|
2147
|
-
resource: {
|
|
2148
|
-
uri: string;
|
|
2149
|
-
text?: string | undefined;
|
|
2150
|
-
_meta?: Record<string, unknown> | undefined;
|
|
2151
|
-
mimeType?: string | undefined;
|
|
2152
|
-
blob?: string | undefined;
|
|
2153
|
-
assetUri?: string | undefined;
|
|
2154
|
-
};
|
|
2155
|
-
annotations?: z.objectOutputType<{
|
|
2156
|
-
audience: z.ZodEffects<z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodEnum<["user", "assistant"]>, "many">>>, ("user" | "assistant")[] | undefined, ("user" | "assistant")[] | null | undefined>;
|
|
2157
|
-
priority: z.ZodEffects<z.ZodOptional<z.ZodNullable<z.ZodNumber>>, number | undefined, number | null | undefined>;
|
|
2158
|
-
lastModified: z.ZodEffects<z.ZodOptional<z.ZodNullable<z.ZodString>>, string | undefined, string | null | undefined>;
|
|
2159
|
-
}, z.ZodTypeAny, "passthrough"> | undefined;
|
|
2160
|
-
_meta?: Record<string, unknown> | undefined;
|
|
2161
|
-
} | {
|
|
2162
|
-
type: "resource_link";
|
|
2163
|
-
uri: string;
|
|
2164
|
-
name: string;
|
|
2165
|
-
annotations?: z.objectOutputType<{
|
|
2166
|
-
audience: z.ZodEffects<z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodEnum<["user", "assistant"]>, "many">>>, ("user" | "assistant")[] | undefined, ("user" | "assistant")[] | null | undefined>;
|
|
2167
|
-
priority: z.ZodEffects<z.ZodOptional<z.ZodNullable<z.ZodNumber>>, number | undefined, number | null | undefined>;
|
|
2168
|
-
lastModified: z.ZodEffects<z.ZodOptional<z.ZodNullable<z.ZodString>>, string | undefined, string | null | undefined>;
|
|
2169
|
-
}, z.ZodTypeAny, "passthrough"> | undefined;
|
|
2170
|
-
_meta?: Record<string, unknown> | undefined;
|
|
2171
|
-
mimeType?: string | undefined;
|
|
2172
|
-
title?: string | undefined;
|
|
2173
|
-
description?: string | undefined;
|
|
2174
|
-
size?: number | undefined;
|
|
2175
|
-
kind?: "file" | "skill" | "agent" | undefined;
|
|
2176
|
-
};
|
|
2177
|
-
} | {
|
|
2178
|
-
path: string;
|
|
2179
|
-
type: "diff";
|
|
2180
|
-
newText: string;
|
|
2181
|
-
oldText?: string | null | undefined;
|
|
2182
|
-
} | {
|
|
2183
|
-
path: string;
|
|
2184
|
-
type: "patch";
|
|
2185
|
-
diff: string;
|
|
2186
|
-
change: "add" | "delete" | "update";
|
|
2187
|
-
movePath?: string | undefined;
|
|
2188
|
-
} | {
|
|
2189
|
-
type: "terminal";
|
|
2190
|
-
terminalId: string;
|
|
2191
|
-
})[] | undefined;
|
|
2192
|
-
rawInput?: unknown;
|
|
2193
|
-
locations?: {
|
|
2194
|
-
path: string;
|
|
2195
|
-
line?: number | undefined;
|
|
2196
|
-
}[] | undefined;
|
|
2197
|
-
} | undefined;
|
|
2198
|
-
detail?: string | undefined;
|
|
2199
|
-
questions?: {
|
|
2200
|
-
text: string;
|
|
2201
|
-
kind: "text" | "choice" | "choices";
|
|
2202
|
-
id: string;
|
|
2203
|
-
secret?: boolean | undefined;
|
|
2204
|
-
options?: {
|
|
2205
|
-
value: string;
|
|
2206
|
-
label: string;
|
|
2207
|
-
description?: string | undefined;
|
|
2208
|
-
}[] | undefined;
|
|
2209
|
-
other?: boolean | undefined;
|
|
2210
|
-
constraints?: {
|
|
2211
|
-
type: "string" | "number" | "boolean" | "integer" | "array";
|
|
2212
|
-
minimum?: number | undefined;
|
|
2213
|
-
maximum?: number | undefined;
|
|
2214
|
-
minLength?: number | undefined;
|
|
2215
|
-
maxLength?: number | undefined;
|
|
2216
|
-
minItems?: number | undefined;
|
|
2217
|
-
maxItems?: number | undefined;
|
|
2218
|
-
pattern?: string | undefined;
|
|
2219
|
-
format?: string | undefined;
|
|
2220
|
-
} | undefined;
|
|
2221
|
-
defaults?: string[] | undefined;
|
|
2222
|
-
header?: string | undefined;
|
|
2223
|
-
required?: boolean | undefined;
|
|
2224
|
-
}[] | undefined;
|
|
2225
|
-
childSessionId?: string | undefined;
|
|
2226
|
-
url?: {
|
|
2227
|
-
url: string;
|
|
2228
|
-
elicitationId: string;
|
|
2229
|
-
} | undefined;
|
|
2230
|
-
} | undefined;
|
|
2231
|
-
asyncQuestions?: {
|
|
2232
|
-
options: string[];
|
|
2233
|
-
title: string;
|
|
2234
|
-
id: string;
|
|
2235
|
-
}[] | undefined;
|
|
2236
|
-
queue?: {
|
|
2237
|
-
text: string;
|
|
2238
|
-
images: number;
|
|
2239
|
-
clientMessageId: string;
|
|
2240
|
-
}[] | undefined;
|
|
2241
|
-
worktree?: {
|
|
2242
|
-
branch: string;
|
|
2243
|
-
source: string;
|
|
2244
|
-
} | undefined;
|
|
2245
|
-
parentId?: string | undefined;
|
|
2246
|
-
forkedFrom?: string | undefined;
|
|
2247
|
-
appId?: string | undefined;
|
|
2248
|
-
subagents?: {
|
|
2249
|
-
running: number;
|
|
2250
|
-
total: number;
|
|
2251
|
-
} | undefined;
|
|
2252
|
-
tasks?: {
|
|
2253
|
-
running: number;
|
|
2254
|
-
total: number;
|
|
2255
|
-
} | undefined;
|
|
2256
|
-
}, {
|
|
2257
|
-
agent: string;
|
|
2258
|
-
id: string;
|
|
2259
|
-
state: "unknown" | "running" | "error" | "idle" | "waiting" | "offline";
|
|
2260
|
-
updatedAt: number;
|
|
2261
|
-
lastSeq: number;
|
|
2262
|
-
nativeId: string;
|
|
2263
|
-
cwd: string;
|
|
2264
|
-
pendingPermissions: number;
|
|
2265
|
-
createdAt: number;
|
|
2266
|
-
archived: boolean;
|
|
2267
|
-
title?: string | undefined;
|
|
2268
|
-
model?: string | undefined;
|
|
2269
|
-
driver?: "desktop" | "remote" | "none" | undefined;
|
|
2270
|
-
preview?: string | undefined;
|
|
2271
|
-
activity?: {
|
|
2272
|
-
kind: "tool" | "thinking" | "responding";
|
|
2273
|
-
title?: string | undefined;
|
|
2274
|
-
toolKind?: "search" | "delete" | "other" | "read" | "edit" | "move" | "execute" | "think" | "fetch" | "switch_mode" | undefined;
|
|
2275
|
-
} | undefined;
|
|
2276
|
-
permission?: {
|
|
2277
|
-
options: {
|
|
2278
|
-
name: string;
|
|
2279
|
-
kind: "allow_once" | "allow_always" | "reject_once" | "reject_always";
|
|
2280
|
-
optionId: string;
|
|
2281
|
-
}[];
|
|
2282
|
-
title: string;
|
|
2283
|
-
requestId: string;
|
|
2284
|
-
toolCallId?: string | undefined;
|
|
2285
|
-
tool?: {
|
|
2286
|
-
title?: string | undefined;
|
|
2287
|
-
kind?: "search" | "delete" | "other" | "read" | "edit" | "move" | "execute" | "think" | "fetch" | "switch_mode" | undefined;
|
|
2288
|
-
content?: ({
|
|
2289
|
-
type: "content";
|
|
2290
|
-
content?: unknown;
|
|
2291
|
-
} | {
|
|
2292
|
-
path: string;
|
|
2293
|
-
type: "diff";
|
|
2294
|
-
newText: string;
|
|
2295
|
-
oldText?: string | null | undefined;
|
|
2296
|
-
} | {
|
|
2297
|
-
path: string;
|
|
2298
|
-
type: "patch";
|
|
2299
|
-
diff: string;
|
|
2300
|
-
change: "add" | "delete" | "update";
|
|
2301
|
-
movePath?: string | undefined;
|
|
2302
|
-
} | {
|
|
2303
|
-
type: "terminal";
|
|
2304
|
-
terminalId: string;
|
|
2305
|
-
})[] | undefined;
|
|
2306
|
-
rawInput?: unknown;
|
|
2307
|
-
locations?: {
|
|
2308
|
-
path: string;
|
|
2309
|
-
line?: number | undefined;
|
|
2310
|
-
}[] | undefined;
|
|
2311
|
-
} | undefined;
|
|
2312
|
-
detail?: string | undefined;
|
|
2313
|
-
questions?: {
|
|
2314
|
-
text: string;
|
|
2315
|
-
kind: "text" | "choice" | "choices";
|
|
2316
|
-
id: string;
|
|
2317
|
-
secret?: boolean | undefined;
|
|
2318
|
-
options?: {
|
|
2319
|
-
value: string;
|
|
2320
|
-
label: string;
|
|
2321
|
-
description?: string | undefined;
|
|
2322
|
-
}[] | undefined;
|
|
2323
|
-
other?: boolean | undefined;
|
|
2324
|
-
constraints?: {
|
|
2325
|
-
type: "string" | "number" | "boolean" | "integer" | "array";
|
|
2326
|
-
minimum?: number | undefined;
|
|
2327
|
-
maximum?: number | undefined;
|
|
2328
|
-
minLength?: number | undefined;
|
|
2329
|
-
maxLength?: number | undefined;
|
|
2330
|
-
minItems?: number | undefined;
|
|
2331
|
-
maxItems?: number | undefined;
|
|
2332
|
-
pattern?: string | undefined;
|
|
2333
|
-
format?: string | undefined;
|
|
2334
|
-
} | undefined;
|
|
2335
|
-
defaults?: string[] | undefined;
|
|
2336
|
-
header?: string | undefined;
|
|
2337
|
-
required?: boolean | undefined;
|
|
2338
|
-
}[] | undefined;
|
|
2339
|
-
childSessionId?: string | undefined;
|
|
2340
|
-
url?: {
|
|
2341
|
-
url: string;
|
|
2342
|
-
elicitationId: string;
|
|
2343
|
-
} | undefined;
|
|
2344
|
-
} | undefined;
|
|
2345
|
-
asyncQuestions?: {
|
|
2346
|
-
options: string[];
|
|
2347
|
-
title: string;
|
|
2348
|
-
id: string;
|
|
2349
|
-
}[] | undefined;
|
|
2350
|
-
queue?: {
|
|
2351
|
-
text: string;
|
|
2352
|
-
images: number;
|
|
2353
|
-
clientMessageId: string;
|
|
2354
|
-
}[] | undefined;
|
|
2355
|
-
worktree?: {
|
|
2356
|
-
branch: string;
|
|
2357
|
-
source: string;
|
|
2358
|
-
} | undefined;
|
|
2359
|
-
parentId?: string | undefined;
|
|
2360
|
-
forkedFrom?: string | undefined;
|
|
2361
|
-
appId?: string | undefined;
|
|
2362
|
-
subagents?: {
|
|
2363
|
-
running: number;
|
|
2364
|
-
total: number;
|
|
2365
|
-
} | undefined;
|
|
2366
|
-
tasks?: {
|
|
2367
|
-
running: number;
|
|
2368
|
-
total: number;
|
|
2369
|
-
} | undefined;
|
|
2370
|
-
}>;
|
|
848
|
+
}, z.core.$strip>>;
|
|
849
|
+
}, z.core.$strip>;
|
|
2371
850
|
export type SessionSummary = z.infer<typeof sessionSummarySchema>;
|
|
2372
851
|
export declare function sessionIdFor(agent: string, nativeId: string): string;
|
|
2373
852
|
export declare function parseSessionId(id: string): {
|
|
@@ -2376,464 +855,130 @@ export declare function parseSessionId(id: string): {
|
|
|
2376
855
|
} | null;
|
|
2377
856
|
/** What git says about a directory, to offer starting a session in a worktree of it. */
|
|
2378
857
|
export declare const gitInfoSchema: z.ZodObject<{
|
|
2379
|
-
/** The repository's top directory. */
|
|
2380
858
|
root: z.ZodString;
|
|
2381
|
-
/** The branch checked out; absent on a detached HEAD. */
|
|
2382
859
|
branch: z.ZodOptional<z.ZodString>;
|
|
2383
|
-
/** The commit checked out, abbreviated; absent before the first commit. */
|
|
2384
860
|
head: z.ZodOptional<z.ZodString>;
|
|
2385
|
-
/** Uncommitted changes in the working directory (a new worktree starts from the last commit, without them). */
|
|
2386
861
|
dirty: z.ZodBoolean;
|
|
2387
|
-
},
|
|
2388
|
-
dirty: boolean;
|
|
2389
|
-
root: string;
|
|
2390
|
-
branch?: string | undefined;
|
|
2391
|
-
head?: string | undefined;
|
|
2392
|
-
}, {
|
|
2393
|
-
dirty: boolean;
|
|
2394
|
-
root: string;
|
|
2395
|
-
branch?: string | undefined;
|
|
2396
|
-
head?: string | undefined;
|
|
2397
|
-
}>;
|
|
862
|
+
}, z.core.$strip>;
|
|
2398
863
|
export type GitInfo = z.infer<typeof gitInfoSchema>;
|
|
2399
864
|
/** A worktree LinkShell made for sessions. */
|
|
2400
865
|
export declare const worktreeEntrySchema: z.ZodObject<{
|
|
2401
|
-
/** The worktree's top directory. */
|
|
2402
866
|
path: z.ZodString;
|
|
2403
867
|
branch: z.ZodString;
|
|
2404
|
-
/** The repository it belongs to. */
|
|
2405
868
|
source: z.ZodString;
|
|
2406
869
|
createdAt: z.ZodNumber;
|
|
2407
|
-
|
|
2408
|
-
sessions: z.ZodArray<z.ZodString, "many">;
|
|
2409
|
-
/** Uncommitted changes in it. */
|
|
870
|
+
sessions: z.ZodArray<z.ZodString>;
|
|
2410
871
|
dirty: z.ZodBoolean;
|
|
2411
|
-
/** Commits made in it since it was created. */
|
|
2412
872
|
ahead: z.ZodNumber;
|
|
2413
|
-
},
|
|
2414
|
-
dirty: boolean;
|
|
2415
|
-
path: string;
|
|
2416
|
-
createdAt: number;
|
|
2417
|
-
branch: string;
|
|
2418
|
-
source: string;
|
|
2419
|
-
sessions: string[];
|
|
2420
|
-
ahead: number;
|
|
2421
|
-
}, {
|
|
2422
|
-
dirty: boolean;
|
|
2423
|
-
path: string;
|
|
2424
|
-
createdAt: number;
|
|
2425
|
-
branch: string;
|
|
2426
|
-
source: string;
|
|
2427
|
-
sessions: string[];
|
|
2428
|
-
ahead: number;
|
|
2429
|
-
}>;
|
|
873
|
+
}, z.core.$strip>;
|
|
2430
874
|
export type WorktreeEntry = z.infer<typeof worktreeEntrySchema>;
|
|
2431
875
|
export declare const projectSummarySchema: z.ZodObject<{
|
|
2432
876
|
cwd: z.ZodString;
|
|
2433
877
|
name: z.ZodString;
|
|
2434
878
|
lastActiveAt: z.ZodNumber;
|
|
2435
879
|
sessionCount: z.ZodNumber;
|
|
2436
|
-
/** For a git repository: the branch checked out there now (or the abbreviated commit, on a detached HEAD). */
|
|
2437
880
|
branch: z.ZodOptional<z.ZodString>;
|
|
2438
|
-
},
|
|
2439
|
-
name: string;
|
|
2440
|
-
cwd: string;
|
|
2441
|
-
lastActiveAt: number;
|
|
2442
|
-
sessionCount: number;
|
|
2443
|
-
branch?: string | undefined;
|
|
2444
|
-
}, {
|
|
2445
|
-
name: string;
|
|
2446
|
-
cwd: string;
|
|
2447
|
-
lastActiveAt: number;
|
|
2448
|
-
sessionCount: number;
|
|
2449
|
-
branch?: string | undefined;
|
|
2450
|
-
}>;
|
|
881
|
+
}, z.core.$strip>;
|
|
2451
882
|
export type ProjectSummary = z.infer<typeof projectSummarySchema>;
|
|
2452
883
|
export declare const machineInfoSchema: z.ZodObject<{
|
|
2453
884
|
machineId: z.ZodString;
|
|
2454
885
|
hostname: z.ZodString;
|
|
2455
886
|
platform: z.ZodString;
|
|
2456
887
|
hostVersion: z.ZodString;
|
|
2457
|
-
/** The host's RPC revision (`HOST_PROTOCOL`); absent from hosts older than it. */
|
|
2458
888
|
protocol: z.ZodOptional<z.ZodNumber>;
|
|
2459
|
-
/** The host user's home directory, so apps can show paths as `~/…`. */
|
|
2460
889
|
home: z.ZodOptional<z.ZodString>;
|
|
2461
890
|
agents: z.ZodArray<z.ZodObject<{
|
|
2462
891
|
id: z.ZodString;
|
|
2463
892
|
label: z.ZodString;
|
|
2464
|
-
tier: z.ZodEnum<
|
|
893
|
+
tier: z.ZodEnum<{
|
|
894
|
+
terminal: "terminal";
|
|
895
|
+
remote: "remote";
|
|
896
|
+
multi_client: "multi_client";
|
|
897
|
+
handoff: "handoff";
|
|
898
|
+
}>;
|
|
2465
899
|
installed: z.ZodBoolean;
|
|
2466
900
|
version: z.ZodOptional<z.ZodString>;
|
|
2467
|
-
/** Human-readable reason when the agent is installed but unusable. */
|
|
2468
901
|
problem: z.ZodOptional<z.ZodString>;
|
|
2469
902
|
auth: z.ZodOptional<z.ZodObject<{
|
|
2470
|
-
state: z.ZodEnum<
|
|
2471
|
-
|
|
903
|
+
state: z.ZodEnum<{
|
|
904
|
+
unknown: "unknown";
|
|
905
|
+
ok: "ok";
|
|
906
|
+
missing: "missing";
|
|
907
|
+
}>;
|
|
2472
908
|
method: z.ZodOptional<z.ZodString>;
|
|
2473
|
-
/** What the user should do when state is "missing". */
|
|
2474
909
|
hint: z.ZodOptional<z.ZodString>;
|
|
2475
|
-
},
|
|
2476
|
-
state: "unknown" | "ok" | "missing";
|
|
2477
|
-
hint?: string | undefined;
|
|
2478
|
-
method?: string | undefined;
|
|
2479
|
-
}, {
|
|
2480
|
-
state: "unknown" | "ok" | "missing";
|
|
2481
|
-
hint?: string | undefined;
|
|
2482
|
-
method?: string | undefined;
|
|
2483
|
-
}>>;
|
|
910
|
+
}, z.core.$strip>>;
|
|
2484
911
|
capabilities: z.ZodObject<{
|
|
2485
912
|
interrupt: z.ZodBoolean;
|
|
2486
|
-
/** Inject a message into a running turn instead of queueing it. */
|
|
2487
913
|
steer: z.ZodBoolean;
|
|
2488
914
|
permissions: z.ZodBoolean;
|
|
2489
915
|
images: z.ZodBoolean;
|
|
2490
916
|
audio: z.ZodOptional<z.ZodBoolean>;
|
|
2491
917
|
embeddedContext: z.ZodOptional<z.ZodBoolean>;
|
|
2492
|
-
/** Host-managed ACP settings and optional protocol features. */
|
|
2493
918
|
acp: z.ZodOptional<z.ZodBoolean>;
|
|
2494
|
-
/**
|
|
2495
|
-
* The agent forks sessions itself, keeping everything it knew. Every agent's
|
|
2496
|
-
* sessions can be forked: without this (or from a single reply, where the
|
|
2497
|
-
* agent only forks whole sessions) LinkShell makes the fork — the new session
|
|
2498
|
-
* shows the conversation and its agent is told it as text.
|
|
2499
|
-
*/
|
|
2500
919
|
fork: z.ZodBoolean;
|
|
2501
|
-
/** The agent has a side conversation of its own (`sessions.side`). Absent from older hosts. */
|
|
2502
920
|
side: z.ZodOptional<z.ZodBoolean>;
|
|
2503
921
|
models: z.ZodBoolean;
|
|
2504
922
|
modes: z.ZodBoolean;
|
|
2505
|
-
},
|
|
2506
|
-
|
|
2507
|
-
steer: boolean;
|
|
2508
|
-
permissions: boolean;
|
|
2509
|
-
images: boolean;
|
|
2510
|
-
fork: boolean;
|
|
2511
|
-
models: boolean;
|
|
2512
|
-
modes: boolean;
|
|
2513
|
-
audio?: boolean | undefined;
|
|
2514
|
-
embeddedContext?: boolean | undefined;
|
|
2515
|
-
acp?: boolean | undefined;
|
|
2516
|
-
side?: boolean | undefined;
|
|
2517
|
-
}, {
|
|
2518
|
-
interrupt: boolean;
|
|
2519
|
-
steer: boolean;
|
|
2520
|
-
permissions: boolean;
|
|
2521
|
-
images: boolean;
|
|
2522
|
-
fork: boolean;
|
|
2523
|
-
models: boolean;
|
|
2524
|
-
modes: boolean;
|
|
2525
|
-
audio?: boolean | undefined;
|
|
2526
|
-
embeddedContext?: boolean | undefined;
|
|
2527
|
-
acp?: boolean | undefined;
|
|
2528
|
-
side?: boolean | undefined;
|
|
2529
|
-
}>;
|
|
2530
|
-
}, "strip", z.ZodTypeAny, {
|
|
2531
|
-
id: string;
|
|
2532
|
-
label: string;
|
|
2533
|
-
tier: "terminal" | "remote" | "multi_client" | "handoff";
|
|
2534
|
-
installed: boolean;
|
|
2535
|
-
capabilities: {
|
|
2536
|
-
interrupt: boolean;
|
|
2537
|
-
steer: boolean;
|
|
2538
|
-
permissions: boolean;
|
|
2539
|
-
images: boolean;
|
|
2540
|
-
fork: boolean;
|
|
2541
|
-
models: boolean;
|
|
2542
|
-
modes: boolean;
|
|
2543
|
-
audio?: boolean | undefined;
|
|
2544
|
-
embeddedContext?: boolean | undefined;
|
|
2545
|
-
acp?: boolean | undefined;
|
|
2546
|
-
side?: boolean | undefined;
|
|
2547
|
-
};
|
|
2548
|
-
version?: string | undefined;
|
|
2549
|
-
problem?: string | undefined;
|
|
2550
|
-
auth?: {
|
|
2551
|
-
state: "unknown" | "ok" | "missing";
|
|
2552
|
-
hint?: string | undefined;
|
|
2553
|
-
method?: string | undefined;
|
|
2554
|
-
} | undefined;
|
|
2555
|
-
}, {
|
|
2556
|
-
id: string;
|
|
2557
|
-
label: string;
|
|
2558
|
-
tier: "terminal" | "remote" | "multi_client" | "handoff";
|
|
2559
|
-
installed: boolean;
|
|
2560
|
-
capabilities: {
|
|
2561
|
-
interrupt: boolean;
|
|
2562
|
-
steer: boolean;
|
|
2563
|
-
permissions: boolean;
|
|
2564
|
-
images: boolean;
|
|
2565
|
-
fork: boolean;
|
|
2566
|
-
models: boolean;
|
|
2567
|
-
modes: boolean;
|
|
2568
|
-
audio?: boolean | undefined;
|
|
2569
|
-
embeddedContext?: boolean | undefined;
|
|
2570
|
-
acp?: boolean | undefined;
|
|
2571
|
-
side?: boolean | undefined;
|
|
2572
|
-
};
|
|
2573
|
-
version?: string | undefined;
|
|
2574
|
-
problem?: string | undefined;
|
|
2575
|
-
auth?: {
|
|
2576
|
-
state: "unknown" | "ok" | "missing";
|
|
2577
|
-
hint?: string | undefined;
|
|
2578
|
-
method?: string | undefined;
|
|
2579
|
-
} | undefined;
|
|
2580
|
-
}>, "many">;
|
|
2581
|
-
/**
|
|
2582
|
-
* The host can send bulk streams peer to peer (`direct.offer`); `iceServers`
|
|
2583
|
-
* are the STUN servers both sides use to find a path.
|
|
2584
|
-
*/
|
|
923
|
+
}, z.core.$strip>;
|
|
924
|
+
}, z.core.$strip>>;
|
|
2585
925
|
direct: z.ZodOptional<z.ZodObject<{
|
|
2586
|
-
iceServers: z.ZodArray<z.ZodString
|
|
2587
|
-
},
|
|
2588
|
-
iceServers: string[];
|
|
2589
|
-
}, {
|
|
2590
|
-
iceServers: string[];
|
|
2591
|
-
}>>;
|
|
2592
|
-
/** The computer has an access password and this connection must `access.unlock` first; until then the rest is withheld. */
|
|
926
|
+
iceServers: z.ZodArray<z.ZodString>;
|
|
927
|
+
}, z.core.$strip>>;
|
|
2593
928
|
locked: z.ZodOptional<z.ZodBoolean>;
|
|
2594
|
-
},
|
|
2595
|
-
agents: {
|
|
2596
|
-
id: string;
|
|
2597
|
-
label: string;
|
|
2598
|
-
tier: "terminal" | "remote" | "multi_client" | "handoff";
|
|
2599
|
-
installed: boolean;
|
|
2600
|
-
capabilities: {
|
|
2601
|
-
interrupt: boolean;
|
|
2602
|
-
steer: boolean;
|
|
2603
|
-
permissions: boolean;
|
|
2604
|
-
images: boolean;
|
|
2605
|
-
fork: boolean;
|
|
2606
|
-
models: boolean;
|
|
2607
|
-
modes: boolean;
|
|
2608
|
-
audio?: boolean | undefined;
|
|
2609
|
-
embeddedContext?: boolean | undefined;
|
|
2610
|
-
acp?: boolean | undefined;
|
|
2611
|
-
side?: boolean | undefined;
|
|
2612
|
-
};
|
|
2613
|
-
version?: string | undefined;
|
|
2614
|
-
problem?: string | undefined;
|
|
2615
|
-
auth?: {
|
|
2616
|
-
state: "unknown" | "ok" | "missing";
|
|
2617
|
-
hint?: string | undefined;
|
|
2618
|
-
method?: string | undefined;
|
|
2619
|
-
} | undefined;
|
|
2620
|
-
}[];
|
|
2621
|
-
machineId: string;
|
|
2622
|
-
hostname: string;
|
|
2623
|
-
platform: string;
|
|
2624
|
-
hostVersion: string;
|
|
2625
|
-
protocol?: number | undefined;
|
|
2626
|
-
home?: string | undefined;
|
|
2627
|
-
direct?: {
|
|
2628
|
-
iceServers: string[];
|
|
2629
|
-
} | undefined;
|
|
2630
|
-
locked?: boolean | undefined;
|
|
2631
|
-
}, {
|
|
2632
|
-
agents: {
|
|
2633
|
-
id: string;
|
|
2634
|
-
label: string;
|
|
2635
|
-
tier: "terminal" | "remote" | "multi_client" | "handoff";
|
|
2636
|
-
installed: boolean;
|
|
2637
|
-
capabilities: {
|
|
2638
|
-
interrupt: boolean;
|
|
2639
|
-
steer: boolean;
|
|
2640
|
-
permissions: boolean;
|
|
2641
|
-
images: boolean;
|
|
2642
|
-
fork: boolean;
|
|
2643
|
-
models: boolean;
|
|
2644
|
-
modes: boolean;
|
|
2645
|
-
audio?: boolean | undefined;
|
|
2646
|
-
embeddedContext?: boolean | undefined;
|
|
2647
|
-
acp?: boolean | undefined;
|
|
2648
|
-
side?: boolean | undefined;
|
|
2649
|
-
};
|
|
2650
|
-
version?: string | undefined;
|
|
2651
|
-
problem?: string | undefined;
|
|
2652
|
-
auth?: {
|
|
2653
|
-
state: "unknown" | "ok" | "missing";
|
|
2654
|
-
hint?: string | undefined;
|
|
2655
|
-
method?: string | undefined;
|
|
2656
|
-
} | undefined;
|
|
2657
|
-
}[];
|
|
2658
|
-
machineId: string;
|
|
2659
|
-
hostname: string;
|
|
2660
|
-
platform: string;
|
|
2661
|
-
hostVersion: string;
|
|
2662
|
-
protocol?: number | undefined;
|
|
2663
|
-
home?: string | undefined;
|
|
2664
|
-
direct?: {
|
|
2665
|
-
iceServers: string[];
|
|
2666
|
-
} | undefined;
|
|
2667
|
-
locked?: boolean | undefined;
|
|
2668
|
-
}>;
|
|
929
|
+
}, z.core.$strip>;
|
|
2669
930
|
export type MachineInfo = z.infer<typeof machineInfoSchema>;
|
|
2670
931
|
/** A server listening on the host, which a device can preview through the encrypted channel. */
|
|
2671
932
|
export declare const portInfoSchema: z.ZodObject<{
|
|
2672
933
|
port: z.ZodNumber;
|
|
2673
|
-
/** The listening process ("node", "python3.12"). */
|
|
2674
934
|
process: z.ZodString;
|
|
2675
935
|
pid: z.ZodOptional<z.ZodNumber>;
|
|
2676
|
-
/** The process's working directory: which project the server belongs to. */
|
|
2677
936
|
cwd: z.ZodOptional<z.ZodString>;
|
|
2678
|
-
/** The page title, when the port answers HTTP with an HTML page. */
|
|
2679
937
|
title: z.ZodOptional<z.ZodString>;
|
|
2680
|
-
/** Answers HTTP at all (a dev server, not a database). */
|
|
2681
938
|
http: z.ZodBoolean;
|
|
2682
|
-
},
|
|
2683
|
-
port: number;
|
|
2684
|
-
process: string;
|
|
2685
|
-
http: boolean;
|
|
2686
|
-
title?: string | undefined;
|
|
2687
|
-
cwd?: string | undefined;
|
|
2688
|
-
pid?: number | undefined;
|
|
2689
|
-
}, {
|
|
2690
|
-
port: number;
|
|
2691
|
-
process: string;
|
|
2692
|
-
http: boolean;
|
|
2693
|
-
title?: string | undefined;
|
|
2694
|
-
cwd?: string | undefined;
|
|
2695
|
-
pid?: number | undefined;
|
|
2696
|
-
}>;
|
|
939
|
+
}, z.core.$strip>;
|
|
2697
940
|
export type PortInfo = z.infer<typeof portInfoSchema>;
|
|
2698
941
|
/** A shell the host keeps open, independent of any device connection. */
|
|
2699
942
|
export declare const terminalInfoSchema: z.ZodObject<{
|
|
2700
943
|
id: z.ZodString;
|
|
2701
|
-
/** What's running in the foreground (the shell or its current command). */
|
|
2702
944
|
title: z.ZodString;
|
|
2703
945
|
cwd: z.ZodString;
|
|
2704
946
|
cols: z.ZodNumber;
|
|
2705
947
|
rows: z.ZodNumber;
|
|
2706
948
|
createdAt: z.ZodNumber;
|
|
2707
|
-
/** Last output time. */
|
|
2708
949
|
activeAt: z.ZodNumber;
|
|
2709
|
-
/** The command it was started to run, if any (else it's a plain shell). */
|
|
2710
950
|
command: z.ZodOptional<z.ZodString>;
|
|
2711
|
-
/** Set once the shell ended; the terminal and its output stay until deleted. */
|
|
2712
951
|
exitCode: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
2713
|
-
/** Ended without an exit code: the host stopped while it ran. */
|
|
2714
952
|
interrupted: z.ZodOptional<z.ZodBoolean>;
|
|
2715
|
-
/**
|
|
2716
|
-
* The session it was opened for. Such a terminal belongs to the session: it closes when its
|
|
2717
|
-
* shell exits or the session is archived or deleted, and isn't kept across a host restart.
|
|
2718
|
-
*/
|
|
2719
953
|
sessionId: z.ZodOptional<z.ZodString>;
|
|
2720
|
-
},
|
|
2721
|
-
title: string;
|
|
2722
|
-
id: string;
|
|
2723
|
-
cwd: string;
|
|
2724
|
-
createdAt: number;
|
|
2725
|
-
cols: number;
|
|
2726
|
-
rows: number;
|
|
2727
|
-
activeAt: number;
|
|
2728
|
-
command?: string | undefined;
|
|
2729
|
-
exitCode?: number | null | undefined;
|
|
2730
|
-
sessionId?: string | undefined;
|
|
2731
|
-
interrupted?: boolean | undefined;
|
|
2732
|
-
}, {
|
|
2733
|
-
title: string;
|
|
2734
|
-
id: string;
|
|
2735
|
-
cwd: string;
|
|
2736
|
-
createdAt: number;
|
|
2737
|
-
cols: number;
|
|
2738
|
-
rows: number;
|
|
2739
|
-
activeAt: number;
|
|
2740
|
-
command?: string | undefined;
|
|
2741
|
-
exitCode?: number | null | undefined;
|
|
2742
|
-
sessionId?: string | undefined;
|
|
2743
|
-
interrupted?: boolean | undefined;
|
|
2744
|
-
}>;
|
|
954
|
+
}, z.core.$strip>;
|
|
2745
955
|
export type TerminalInfo = z.infer<typeof terminalInfoSchema>;
|
|
2746
956
|
/** The host's link to a v2 gateway, for `linkshell status` and the app's computer page. */
|
|
2747
957
|
export declare const gatewayStatusSchema: z.ZodObject<{
|
|
2748
958
|
url: z.ZodOptional<z.ZodString>;
|
|
2749
|
-
status: z.ZodEnum<
|
|
959
|
+
status: z.ZodEnum<{
|
|
960
|
+
offline: "offline";
|
|
961
|
+
off: "off";
|
|
962
|
+
connecting: "connecting";
|
|
963
|
+
online: "online";
|
|
964
|
+
}>;
|
|
2750
965
|
error: z.ZodOptional<z.ZodObject<{
|
|
2751
966
|
code: z.ZodString;
|
|
2752
967
|
message: z.ZodString;
|
|
2753
|
-
},
|
|
2754
|
-
code: string;
|
|
2755
|
-
message: string;
|
|
2756
|
-
}, {
|
|
2757
|
-
code: string;
|
|
2758
|
-
message: string;
|
|
2759
|
-
}>>;
|
|
968
|
+
}, z.core.$strip>>;
|
|
2760
969
|
machine: z.ZodOptional<z.ZodObject<{
|
|
2761
970
|
id: z.ZodString;
|
|
2762
971
|
name: z.ZodString;
|
|
2763
|
-
},
|
|
2764
|
-
name: string;
|
|
2765
|
-
id: string;
|
|
2766
|
-
}, {
|
|
2767
|
-
name: string;
|
|
2768
|
-
id: string;
|
|
2769
|
-
}>>;
|
|
972
|
+
}, z.core.$strip>>;
|
|
2770
973
|
account: z.ZodOptional<z.ZodObject<{
|
|
2771
974
|
userId: z.ZodString;
|
|
2772
975
|
email: z.ZodOptional<z.ZodString>;
|
|
2773
|
-
},
|
|
2774
|
-
userId: string;
|
|
2775
|
-
email?: string | undefined;
|
|
2776
|
-
}, {
|
|
2777
|
-
userId: string;
|
|
2778
|
-
email?: string | undefined;
|
|
2779
|
-
}>>;
|
|
976
|
+
}, z.core.$strip>>;
|
|
2780
977
|
devices: z.ZodArray<z.ZodObject<{
|
|
2781
978
|
id: z.ZodString;
|
|
2782
979
|
name: z.ZodString;
|
|
2783
980
|
pairedAt: z.ZodNumber;
|
|
2784
981
|
online: z.ZodBoolean;
|
|
2785
|
-
},
|
|
2786
|
-
|
|
2787
|
-
id: string;
|
|
2788
|
-
online: boolean;
|
|
2789
|
-
pairedAt: number;
|
|
2790
|
-
}, {
|
|
2791
|
-
name: string;
|
|
2792
|
-
id: string;
|
|
2793
|
-
online: boolean;
|
|
2794
|
-
pairedAt: number;
|
|
2795
|
-
}>, "many">;
|
|
2796
|
-
}, "strip", z.ZodTypeAny, {
|
|
2797
|
-
status: "offline" | "off" | "connecting" | "online";
|
|
2798
|
-
devices: {
|
|
2799
|
-
name: string;
|
|
2800
|
-
id: string;
|
|
2801
|
-
online: boolean;
|
|
2802
|
-
pairedAt: number;
|
|
2803
|
-
}[];
|
|
2804
|
-
error?: {
|
|
2805
|
-
code: string;
|
|
2806
|
-
message: string;
|
|
2807
|
-
} | undefined;
|
|
2808
|
-
url?: string | undefined;
|
|
2809
|
-
machine?: {
|
|
2810
|
-
name: string;
|
|
2811
|
-
id: string;
|
|
2812
|
-
} | undefined;
|
|
2813
|
-
account?: {
|
|
2814
|
-
userId: string;
|
|
2815
|
-
email?: string | undefined;
|
|
2816
|
-
} | undefined;
|
|
2817
|
-
}, {
|
|
2818
|
-
status: "offline" | "off" | "connecting" | "online";
|
|
2819
|
-
devices: {
|
|
2820
|
-
name: string;
|
|
2821
|
-
id: string;
|
|
2822
|
-
online: boolean;
|
|
2823
|
-
pairedAt: number;
|
|
2824
|
-
}[];
|
|
2825
|
-
error?: {
|
|
2826
|
-
code: string;
|
|
2827
|
-
message: string;
|
|
2828
|
-
} | undefined;
|
|
2829
|
-
url?: string | undefined;
|
|
2830
|
-
machine?: {
|
|
2831
|
-
name: string;
|
|
2832
|
-
id: string;
|
|
2833
|
-
} | undefined;
|
|
2834
|
-
account?: {
|
|
2835
|
-
userId: string;
|
|
2836
|
-
email?: string | undefined;
|
|
2837
|
-
} | undefined;
|
|
2838
|
-
}>;
|
|
982
|
+
}, z.core.$strip>>;
|
|
983
|
+
}, z.core.$strip>;
|
|
2839
984
|
export type GatewayStatus = z.infer<typeof gatewayStatusSchema>;
|