linkshell-cli 0.10.75 → 0.10.76
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/cli/src/commands/desktop.d.ts +77 -72
- package/dist/cli/tsconfig.tsbuildinfo +1 -1
- 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 +2 -2
- package/dist/host/src/drivers/claude/transcript.d.ts +379 -344
- package/dist/host/src/fs.d.ts +9 -9
- package/dist/host/src/hub.d.ts +87 -82
- 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/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 +205 -370
- 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 +450 -2305
- 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 +6689 -31361
- 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 +1728 -6848
- 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/host/src/fs.d.ts
CHANGED
|
@@ -4,22 +4,22 @@ export declare function listDirectory(input: {
|
|
|
4
4
|
files?: boolean;
|
|
5
5
|
}): Promise<{
|
|
6
6
|
entries: {
|
|
7
|
-
path: string;
|
|
8
7
|
name: string;
|
|
9
|
-
|
|
10
|
-
file?: boolean | undefined;
|
|
8
|
+
path: string;
|
|
11
9
|
project?: boolean | undefined;
|
|
10
|
+
file?: boolean | undefined;
|
|
11
|
+
size?: number | undefined;
|
|
12
12
|
}[];
|
|
13
13
|
path: string;
|
|
14
14
|
parent: string | undefined;
|
|
15
15
|
home: string;
|
|
16
16
|
} | {
|
|
17
17
|
entries: {
|
|
18
|
-
path: string;
|
|
19
18
|
name: string;
|
|
20
|
-
|
|
21
|
-
file?: boolean | undefined;
|
|
19
|
+
path: string;
|
|
22
20
|
project?: boolean | undefined;
|
|
21
|
+
file?: boolean | undefined;
|
|
22
|
+
size?: number | undefined;
|
|
23
23
|
}[];
|
|
24
24
|
truncated: true | undefined;
|
|
25
25
|
path: string;
|
|
@@ -35,11 +35,11 @@ export declare function searchDirectories(input: {
|
|
|
35
35
|
limit: number;
|
|
36
36
|
}, budgetMs?: number): Promise<{
|
|
37
37
|
entries: {
|
|
38
|
-
path: string;
|
|
39
38
|
name: string;
|
|
40
|
-
|
|
41
|
-
file?: boolean | undefined;
|
|
39
|
+
path: string;
|
|
42
40
|
project?: boolean | undefined;
|
|
41
|
+
file?: boolean | undefined;
|
|
42
|
+
size?: number | undefined;
|
|
43
43
|
}[];
|
|
44
44
|
truncated: boolean;
|
|
45
45
|
}>;
|
package/dist/host/src/hub.d.ts
CHANGED
|
@@ -88,47 +88,53 @@ export declare class SessionHub {
|
|
|
88
88
|
pendingInteractions(): {
|
|
89
89
|
agent: string;
|
|
90
90
|
request: {
|
|
91
|
+
requestId: string;
|
|
92
|
+
title: string;
|
|
91
93
|
options: {
|
|
92
|
-
kind: "allow_once" | "allow_always" | "reject_once" | "reject_always";
|
|
93
|
-
name: string;
|
|
94
94
|
optionId: string;
|
|
95
|
+
name: string;
|
|
96
|
+
kind: "allow_once" | "allow_always" | "reject_once" | "reject_always";
|
|
95
97
|
}[];
|
|
96
|
-
|
|
97
|
-
requestId: string;
|
|
98
|
+
childSessionId?: string | undefined;
|
|
98
99
|
toolCallId?: string | undefined;
|
|
100
|
+
detail?: string | undefined;
|
|
99
101
|
tool?: {
|
|
100
|
-
kind?: "search" | "delete" | "other" | "read" | "edit" | "move" | "execute" | "think" | "fetch" | "switch_mode" | undefined;
|
|
101
102
|
title?: string | undefined;
|
|
103
|
+
kind?: "search" | "delete" | "other" | "read" | "edit" | "move" | "execute" | "think" | "fetch" | "switch_mode" | undefined;
|
|
104
|
+
rawInput?: unknown;
|
|
102
105
|
content?: ({
|
|
103
106
|
type: "content";
|
|
104
107
|
content: {
|
|
105
108
|
type: "text";
|
|
106
109
|
text: string;
|
|
107
|
-
annotations?:
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
110
|
+
annotations?: {
|
|
111
|
+
[x: string]: unknown;
|
|
112
|
+
audience?: ("user" | "assistant")[] | undefined;
|
|
113
|
+
priority?: number | undefined;
|
|
114
|
+
lastModified?: string | undefined;
|
|
115
|
+
} | undefined;
|
|
112
116
|
_meta?: Record<string, unknown> | undefined;
|
|
113
117
|
} | {
|
|
114
118
|
type: "image";
|
|
115
119
|
mimeType: string;
|
|
116
|
-
annotations?:
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
120
|
+
annotations?: {
|
|
121
|
+
[x: string]: unknown;
|
|
122
|
+
audience?: ("user" | "assistant")[] | undefined;
|
|
123
|
+
priority?: number | undefined;
|
|
124
|
+
lastModified?: string | undefined;
|
|
125
|
+
} | undefined;
|
|
121
126
|
_meta?: Record<string, unknown> | undefined;
|
|
122
127
|
data?: string | undefined;
|
|
123
128
|
uri?: string | undefined;
|
|
124
129
|
} | {
|
|
125
130
|
type: "audio";
|
|
126
131
|
mimeType: string;
|
|
127
|
-
annotations?:
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
+
annotations?: {
|
|
133
|
+
[x: string]: unknown;
|
|
134
|
+
audience?: ("user" | "assistant")[] | undefined;
|
|
135
|
+
priority?: number | undefined;
|
|
136
|
+
lastModified?: string | undefined;
|
|
137
|
+
} | undefined;
|
|
132
138
|
_meta?: Record<string, unknown> | undefined;
|
|
133
139
|
data?: string | undefined;
|
|
134
140
|
uri?: string | undefined;
|
|
@@ -136,68 +142,66 @@ export declare class SessionHub {
|
|
|
136
142
|
type: "resource";
|
|
137
143
|
resource: {
|
|
138
144
|
uri: string;
|
|
139
|
-
text?: string | undefined;
|
|
140
|
-
_meta?: Record<string, unknown> | undefined;
|
|
141
145
|
mimeType?: string | undefined;
|
|
146
|
+
text?: string | undefined;
|
|
142
147
|
blob?: string | undefined;
|
|
143
148
|
assetUri?: string | undefined;
|
|
149
|
+
_meta?: Record<string, unknown> | undefined;
|
|
144
150
|
};
|
|
145
|
-
annotations?:
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
151
|
+
annotations?: {
|
|
152
|
+
[x: string]: unknown;
|
|
153
|
+
audience?: ("user" | "assistant")[] | undefined;
|
|
154
|
+
priority?: number | undefined;
|
|
155
|
+
lastModified?: string | undefined;
|
|
156
|
+
} | undefined;
|
|
150
157
|
_meta?: Record<string, unknown> | undefined;
|
|
151
158
|
} | {
|
|
152
159
|
type: "resource_link";
|
|
153
160
|
uri: string;
|
|
154
161
|
name: string;
|
|
155
162
|
kind?: "file" | "skill" | "agent" | undefined;
|
|
156
|
-
annotations?:
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
163
|
+
annotations?: {
|
|
164
|
+
[x: string]: unknown;
|
|
165
|
+
audience?: ("user" | "assistant")[] | undefined;
|
|
166
|
+
priority?: number | undefined;
|
|
167
|
+
lastModified?: string | undefined;
|
|
168
|
+
} | undefined;
|
|
161
169
|
_meta?: Record<string, unknown> | undefined;
|
|
162
|
-
mimeType?: string | undefined;
|
|
163
170
|
title?: string | undefined;
|
|
164
171
|
description?: string | undefined;
|
|
172
|
+
mimeType?: string | undefined;
|
|
165
173
|
size?: number | undefined;
|
|
166
174
|
};
|
|
167
175
|
} | {
|
|
168
|
-
path: string;
|
|
169
176
|
type: "diff";
|
|
177
|
+
path: string;
|
|
170
178
|
newText: string;
|
|
171
179
|
oldText?: string | null | undefined;
|
|
172
180
|
} | {
|
|
173
|
-
path: string;
|
|
174
181
|
type: "patch";
|
|
175
|
-
|
|
182
|
+
path: string;
|
|
176
183
|
change: "add" | "delete" | "update";
|
|
184
|
+
diff: string;
|
|
177
185
|
movePath?: string | undefined;
|
|
178
186
|
} | {
|
|
179
187
|
type: "terminal";
|
|
180
188
|
terminalId: string;
|
|
181
189
|
})[] | undefined;
|
|
182
|
-
rawInput?: unknown;
|
|
183
190
|
locations?: {
|
|
184
191
|
path: string;
|
|
185
192
|
line?: number | undefined;
|
|
186
193
|
}[] | undefined;
|
|
187
194
|
} | undefined;
|
|
188
|
-
|
|
195
|
+
url?: {
|
|
196
|
+
url: string;
|
|
197
|
+
elicitationId: string;
|
|
198
|
+
} | undefined;
|
|
189
199
|
questions?: {
|
|
190
|
-
kind: "text" | "choice" | "choices";
|
|
191
|
-
text: string;
|
|
192
200
|
id: string;
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
label: string;
|
|
196
|
-
description?: string | undefined;
|
|
197
|
-
}[] | undefined;
|
|
198
|
-
other?: boolean | undefined;
|
|
201
|
+
text: string;
|
|
202
|
+
kind: "text" | "choice" | "choices";
|
|
199
203
|
constraints?: {
|
|
200
|
-
type: "string" | "number" | "boolean" | "
|
|
204
|
+
type: "string" | "number" | "boolean" | "array" | "integer";
|
|
201
205
|
minimum?: number | undefined;
|
|
202
206
|
maximum?: number | undefined;
|
|
203
207
|
minLength?: number | undefined;
|
|
@@ -209,42 +213,24 @@ export declare class SessionHub {
|
|
|
209
213
|
} | undefined;
|
|
210
214
|
defaults?: string[] | undefined;
|
|
211
215
|
header?: string | undefined;
|
|
216
|
+
options?: {
|
|
217
|
+
value: string;
|
|
218
|
+
label: string;
|
|
219
|
+
description?: string | undefined;
|
|
220
|
+
}[] | undefined;
|
|
221
|
+
other?: boolean | undefined;
|
|
212
222
|
secret?: boolean | undefined;
|
|
213
223
|
required?: boolean | undefined;
|
|
214
224
|
}[] | undefined;
|
|
215
|
-
childSessionId?: string | undefined;
|
|
216
|
-
url?: {
|
|
217
|
-
url: string;
|
|
218
|
-
elicitationId: string;
|
|
219
|
-
} | undefined;
|
|
220
225
|
};
|
|
221
226
|
}[];
|
|
222
227
|
editor(input: EditorRequest): Promise<{
|
|
228
|
+
editorId?: string | undefined;
|
|
223
229
|
path?: string | undefined;
|
|
224
230
|
text?: string | undefined;
|
|
225
231
|
version?: number | undefined;
|
|
226
|
-
preview?: {
|
|
227
|
-
kind: "edit" | "jump" | "searchAndReplace";
|
|
228
|
-
path: string;
|
|
229
|
-
id: string;
|
|
230
|
-
before: string;
|
|
231
|
-
after: string;
|
|
232
|
-
position?: {
|
|
233
|
-
line: number;
|
|
234
|
-
character: number;
|
|
235
|
-
} | undefined;
|
|
236
|
-
} | undefined;
|
|
237
|
-
position?: {
|
|
238
|
-
line: number;
|
|
239
|
-
character: number;
|
|
240
|
-
} | undefined;
|
|
241
|
-
editorId?: string | undefined;
|
|
242
232
|
suggestions?: ({
|
|
243
|
-
kind: "edit";
|
|
244
|
-
uri: string;
|
|
245
|
-
id: string;
|
|
246
233
|
edits: {
|
|
247
|
-
newText: string;
|
|
248
234
|
range: {
|
|
249
235
|
start: {
|
|
250
236
|
line: number;
|
|
@@ -255,36 +241,55 @@ export declare class SessionHub {
|
|
|
255
241
|
character: number;
|
|
256
242
|
};
|
|
257
243
|
};
|
|
244
|
+
newText: string;
|
|
258
245
|
}[];
|
|
246
|
+
id: string;
|
|
247
|
+
uri: string;
|
|
248
|
+
kind: "edit";
|
|
259
249
|
cursorPosition?: {
|
|
260
250
|
line: number;
|
|
261
251
|
character: number;
|
|
262
252
|
} | null | undefined;
|
|
263
253
|
} | {
|
|
264
|
-
kind: "jump";
|
|
265
|
-
uri: string;
|
|
266
|
-
id: string;
|
|
267
254
|
position: {
|
|
268
255
|
line: number;
|
|
269
256
|
character: number;
|
|
270
257
|
};
|
|
271
|
-
} | {
|
|
272
|
-
kind: "rename";
|
|
273
|
-
uri: string;
|
|
274
258
|
id: string;
|
|
259
|
+
uri: string;
|
|
260
|
+
kind: "jump";
|
|
261
|
+
} | {
|
|
275
262
|
position: {
|
|
276
263
|
line: number;
|
|
277
264
|
character: number;
|
|
278
265
|
};
|
|
279
266
|
newName: string;
|
|
267
|
+
id: string;
|
|
268
|
+
uri: string;
|
|
269
|
+
kind: "rename";
|
|
280
270
|
} | {
|
|
281
|
-
replace: string;
|
|
282
271
|
search: string;
|
|
283
|
-
|
|
284
|
-
uri: string;
|
|
272
|
+
replace: string;
|
|
285
273
|
id: string;
|
|
274
|
+
uri: string;
|
|
275
|
+
kind: "searchAndReplace";
|
|
286
276
|
isRegex?: boolean | null | undefined;
|
|
287
277
|
})[] | undefined;
|
|
278
|
+
preview?: {
|
|
279
|
+
id: string;
|
|
280
|
+
path: string;
|
|
281
|
+
before: string;
|
|
282
|
+
after: string;
|
|
283
|
+
kind: "edit" | "jump" | "searchAndReplace";
|
|
284
|
+
position?: {
|
|
285
|
+
line: number;
|
|
286
|
+
character: number;
|
|
287
|
+
} | undefined;
|
|
288
|
+
} | undefined;
|
|
289
|
+
position?: {
|
|
290
|
+
line: number;
|
|
291
|
+
character: number;
|
|
292
|
+
} | undefined;
|
|
288
293
|
}>;
|
|
289
294
|
configureAcp(agent: string, settings: AcpAgentSettings, sessionId?: string): Promise<void>;
|
|
290
295
|
authenticate(agent: string, methodId?: string, logout?: boolean): Promise<{
|
|
@@ -300,9 +305,9 @@ export declare class SessionHub {
|
|
|
300
305
|
baseUrl?: string;
|
|
301
306
|
headers?: Record<string, string>;
|
|
302
307
|
}): Promise<{
|
|
303
|
-
required: boolean;
|
|
304
308
|
providerId: string;
|
|
305
309
|
supported: string[];
|
|
310
|
+
required: boolean;
|
|
306
311
|
current?: {
|
|
307
312
|
apiType: string;
|
|
308
313
|
baseUrl: string;
|
package/dist/host/src/input.d.ts
CHANGED
|
@@ -1,90 +1,60 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
2
|
/** What a viewer may ask the helper to do. Positions are fractions of the display being watched. */
|
|
3
|
-
export declare const inputEvent: z.ZodDiscriminatedUnion<
|
|
3
|
+
export declare const inputEvent: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
4
4
|
t: z.ZodLiteral<"move">;
|
|
5
5
|
x: z.ZodNumber;
|
|
6
6
|
y: z.ZodNumber;
|
|
7
|
-
},
|
|
8
|
-
t: "move";
|
|
9
|
-
x: number;
|
|
10
|
-
y: number;
|
|
11
|
-
}, {
|
|
12
|
-
t: "move";
|
|
13
|
-
x: number;
|
|
14
|
-
y: number;
|
|
15
|
-
}>, z.ZodObject<{
|
|
7
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
16
8
|
t: z.ZodLiteral<"down">;
|
|
17
|
-
b: z.ZodEnum<
|
|
9
|
+
b: z.ZodEnum<{
|
|
10
|
+
left: "left";
|
|
11
|
+
right: "right";
|
|
12
|
+
}>;
|
|
18
13
|
n: z.ZodOptional<z.ZodNumber>;
|
|
19
|
-
m: z.ZodOptional<z.ZodArray<z.ZodEnum<
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
}, {
|
|
26
|
-
t: "down";
|
|
27
|
-
b: "left" | "right";
|
|
28
|
-
n?: number | undefined;
|
|
29
|
-
m?: ("shift" | "cmd" | "alt" | "ctrl")[] | undefined;
|
|
30
|
-
}>, z.ZodObject<{
|
|
14
|
+
m: z.ZodOptional<z.ZodArray<z.ZodEnum<{
|
|
15
|
+
shift: "shift";
|
|
16
|
+
cmd: "cmd";
|
|
17
|
+
alt: "alt";
|
|
18
|
+
ctrl: "ctrl";
|
|
19
|
+
}>>>;
|
|
20
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
31
21
|
t: z.ZodLiteral<"up">;
|
|
32
|
-
b: z.ZodEnum<
|
|
22
|
+
b: z.ZodEnum<{
|
|
23
|
+
left: "left";
|
|
24
|
+
right: "right";
|
|
25
|
+
}>;
|
|
33
26
|
n: z.ZodOptional<z.ZodNumber>;
|
|
34
|
-
m: z.ZodOptional<z.ZodArray<z.ZodEnum<
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
}, {
|
|
41
|
-
t: "up";
|
|
42
|
-
b: "left" | "right";
|
|
43
|
-
n?: number | undefined;
|
|
44
|
-
m?: ("shift" | "cmd" | "alt" | "ctrl")[] | undefined;
|
|
45
|
-
}>, z.ZodObject<{
|
|
27
|
+
m: z.ZodOptional<z.ZodArray<z.ZodEnum<{
|
|
28
|
+
shift: "shift";
|
|
29
|
+
cmd: "cmd";
|
|
30
|
+
alt: "alt";
|
|
31
|
+
ctrl: "ctrl";
|
|
32
|
+
}>>>;
|
|
33
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
46
34
|
t: z.ZodLiteral<"scroll">;
|
|
47
35
|
dx: z.ZodNumber;
|
|
48
36
|
dy: z.ZodNumber;
|
|
49
|
-
m: z.ZodOptional<z.ZodArray<z.ZodEnum<
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
}, {
|
|
56
|
-
t: "scroll";
|
|
57
|
-
dx: number;
|
|
58
|
-
dy: number;
|
|
59
|
-
m?: ("shift" | "cmd" | "alt" | "ctrl")[] | undefined;
|
|
60
|
-
}>, z.ZodObject<{
|
|
37
|
+
m: z.ZodOptional<z.ZodArray<z.ZodEnum<{
|
|
38
|
+
shift: "shift";
|
|
39
|
+
cmd: "cmd";
|
|
40
|
+
alt: "alt";
|
|
41
|
+
ctrl: "ctrl";
|
|
42
|
+
}>>>;
|
|
43
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
61
44
|
t: z.ZodLiteral<"key">;
|
|
62
45
|
k: z.ZodString;
|
|
63
|
-
m: z.ZodOptional<z.ZodArray<z.ZodEnum<
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
}
|
|
69
|
-
|
|
70
|
-
k: string;
|
|
71
|
-
m?: ("shift" | "cmd" | "alt" | "ctrl")[] | undefined;
|
|
72
|
-
}>, z.ZodObject<{
|
|
46
|
+
m: z.ZodOptional<z.ZodArray<z.ZodEnum<{
|
|
47
|
+
shift: "shift";
|
|
48
|
+
cmd: "cmd";
|
|
49
|
+
alt: "alt";
|
|
50
|
+
ctrl: "ctrl";
|
|
51
|
+
}>>>;
|
|
52
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
73
53
|
t: z.ZodLiteral<"text">;
|
|
74
54
|
s: z.ZodString;
|
|
75
|
-
},
|
|
76
|
-
t: "text";
|
|
77
|
-
s: string;
|
|
78
|
-
}, {
|
|
79
|
-
t: "text";
|
|
80
|
-
s: string;
|
|
81
|
-
}>, z.ZodObject<{
|
|
55
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
82
56
|
t: z.ZodLiteral<"prompt">;
|
|
83
|
-
},
|
|
84
|
-
t: "prompt";
|
|
85
|
-
}, {
|
|
86
|
-
t: "prompt";
|
|
87
|
-
}>]>;
|
|
57
|
+
}, z.core.$strip>], "t">;
|
|
88
58
|
export type InputEvent = z.infer<typeof inputEvent>;
|
|
89
59
|
/** `app` is the name the system's privacy settings list: the one to allow. */
|
|
90
60
|
export type ControlState = {
|
|
@@ -185,31 +155,15 @@ export type VideoSignal = {
|
|
|
185
155
|
sdpMid: string | null;
|
|
186
156
|
sdpMLineIndex: number | null;
|
|
187
157
|
};
|
|
188
|
-
export declare const videoSignal: z.ZodDiscriminatedUnion<
|
|
158
|
+
export declare const videoSignal: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
189
159
|
t: z.ZodLiteral<"rtc.answer">;
|
|
190
160
|
sdp: z.ZodString;
|
|
191
|
-
},
|
|
192
|
-
sdp: string;
|
|
193
|
-
t: "rtc.answer";
|
|
194
|
-
}, {
|
|
195
|
-
sdp: string;
|
|
196
|
-
t: "rtc.answer";
|
|
197
|
-
}>, z.ZodObject<{
|
|
161
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
198
162
|
t: z.ZodLiteral<"rtc.ice">;
|
|
199
163
|
candidate: z.ZodString;
|
|
200
164
|
sdpMid: z.ZodNullable<z.ZodString>;
|
|
201
165
|
sdpMLineIndex: z.ZodNullable<z.ZodNumber>;
|
|
202
|
-
},
|
|
203
|
-
t: "rtc.ice";
|
|
204
|
-
candidate: string;
|
|
205
|
-
sdpMid: string | null;
|
|
206
|
-
sdpMLineIndex: number | null;
|
|
207
|
-
}, {
|
|
208
|
-
t: "rtc.ice";
|
|
209
|
-
candidate: string;
|
|
210
|
-
sdpMid: string | null;
|
|
211
|
-
sdpMLineIndex: number | null;
|
|
212
|
-
}>]>;
|
|
166
|
+
}, z.core.$strip>], "t">;
|
|
213
167
|
/**
|
|
214
168
|
* The app out of the archive it is shipped in, unpacked under the user's own
|
|
215
169
|
* directory. An archive, because a package can carry neither the links a
|
package/dist/host/src/input.js
CHANGED
|
@@ -21,7 +21,7 @@ const unit = z.number().min(0).max(1);
|
|
|
21
21
|
const button = z.enum(["left", "right"]);
|
|
22
22
|
const modifiers = z.array(z.enum(["cmd", "shift", "alt", "ctrl"])).max(4).optional();
|
|
23
23
|
const clicks = z.number().int().min(1).max(3).optional();
|
|
24
|
-
const delta = z.number()
|
|
24
|
+
const delta = z.number();
|
|
25
25
|
/** What a viewer may ask the helper to do. Positions are fractions of the display being watched. */
|
|
26
26
|
export const inputEvent = z.discriminatedUnion("t", [
|
|
27
27
|
z.object({ t: z.literal("move"), x: unit, y: unit }),
|