@opencode/protocol 0.0.0-dev-21106 → 0.0.0-dev-21107
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/groups/agent.d.ts +9 -9
- package/dist/groups/credential.d.ts +36 -36
- package/dist/groups/event.d.ts +2202 -2202
- package/dist/groups/form.d.ts +24 -24
- package/dist/groups/fs.d.ts +12 -12
- package/dist/groups/integration.d.ts +278 -278
- package/dist/groups/mcp.d.ts +22 -22
- package/dist/groups/message.d.ts +72 -72
- package/dist/groups/model.d.ts +108 -108
- package/dist/groups/permission.d.ts +16 -16
- package/dist/groups/persistent-pty.d.ts +122 -122
- package/dist/groups/plugin.d.ts +7 -7
- package/dist/groups/provider.d.ts +20 -20
- package/dist/groups/pty.d.ts +11 -11
- package/dist/groups/reference.d.ts +5 -5
- package/dist/groups/server.d.ts +6 -6
- package/dist/groups/session.d.ts +6256 -6256
- package/dist/groups/shell.d.ts +20 -20
- package/dist/groups/vcs.d.ts +30 -30
- package/dist/groups/worktree.d.ts +11 -11
- package/dist/simulation.d.ts +237 -237
- package/package.json +5 -5
package/dist/simulation.d.ts
CHANGED
|
@@ -6,10 +6,10 @@ export declare namespace JsonRpc {
|
|
|
6
6
|
id: Schema.optional<Schema.Union<readonly [Schema.String, Schema.Number, Schema.Null]>>;
|
|
7
7
|
};
|
|
8
8
|
const Request: Schema.Struct<{
|
|
9
|
-
readonly method: Schema.String;
|
|
10
|
-
readonly params: Schema.optional<Schema.Codec<Schema.Json, Schema.Json, never, never>>;
|
|
11
9
|
readonly jsonrpc: Schema.Literal<"2.0">;
|
|
12
10
|
readonly id: Schema.optional<Schema.Union<readonly [Schema.String, Schema.Number, Schema.Null]>>;
|
|
11
|
+
readonly method: Schema.String;
|
|
12
|
+
readonly params: Schema.optional<Schema.Codec<Schema.Json, Schema.Json, never, never>>;
|
|
13
13
|
}>;
|
|
14
14
|
interface Request extends Schema.Schema.Type<typeof Request> {
|
|
15
15
|
}
|
|
@@ -35,9 +35,9 @@ export declare namespace JsonRpc {
|
|
|
35
35
|
}>]>;
|
|
36
36
|
type Response = Schema.Schema.Type<typeof Response>;
|
|
37
37
|
const decodeRequest: (input: unknown, options?: import("effect/SchemaAST").ParseOptions) => {
|
|
38
|
-
readonly method: string;
|
|
39
38
|
readonly jsonrpc: "2.0";
|
|
40
39
|
readonly id?: string | number | null | undefined;
|
|
40
|
+
readonly method: string;
|
|
41
41
|
readonly params?: Schema.Json | undefined;
|
|
42
42
|
};
|
|
43
43
|
function success(id: Request["id"], result: unknown): Response | undefined;
|
|
@@ -88,6 +88,8 @@ export declare namespace Handshake {
|
|
|
88
88
|
export interface Response extends Schema.Schema.Type<typeof Response> {
|
|
89
89
|
}
|
|
90
90
|
export const Request: Schema.Struct<{
|
|
91
|
+
readonly jsonrpc: Schema.Literal<"2.0">;
|
|
92
|
+
readonly id: Schema.optional<Schema.Union<readonly [Schema.String, Schema.Number, Schema.Null]>>;
|
|
91
93
|
readonly method: Schema.Literal<"simulation.handshake">;
|
|
92
94
|
readonly params: Schema.Struct<{
|
|
93
95
|
readonly client: Schema.Struct<{
|
|
@@ -99,8 +101,6 @@ export declare namespace Handshake {
|
|
|
99
101
|
readonly requiredCapabilities: Schema.$Array<Schema.NonEmptyString>;
|
|
100
102
|
readonly optionalCapabilities: Schema.$Array<Schema.NonEmptyString>;
|
|
101
103
|
}>;
|
|
102
|
-
readonly jsonrpc: Schema.Literal<"2.0">;
|
|
103
|
-
readonly id: Schema.optional<Schema.Union<readonly [Schema.String, Schema.Number, Schema.Null]>>;
|
|
104
104
|
}>;
|
|
105
105
|
export interface Request extends Schema.Schema.Type<typeof Request> {
|
|
106
106
|
}
|
|
@@ -131,10 +131,10 @@ export declare namespace Handshake {
|
|
|
131
131
|
}
|
|
132
132
|
export function dispatch(action: DispatchAction, params: Params): Effect.Effect<{
|
|
133
133
|
protocolVersion: 1;
|
|
134
|
-
role: "
|
|
134
|
+
role: "backend" | "ui";
|
|
135
135
|
server: Identity;
|
|
136
136
|
capabilities: string[];
|
|
137
|
-
},
|
|
137
|
+
}, MissingCapabilityError | RoleMismatchError | UnsupportedProtocolError, never>;
|
|
138
138
|
export {};
|
|
139
139
|
}
|
|
140
140
|
export declare namespace Frontend {
|
|
@@ -157,7 +157,6 @@ export declare namespace Frontend {
|
|
|
157
157
|
interface SemanticClickTarget extends Schema.Schema.Type<typeof SemanticClickTarget> {
|
|
158
158
|
}
|
|
159
159
|
const MouseParams: Schema.Union<readonly [Schema.Struct<{
|
|
160
|
-
readonly action: Schema.Literal<"move">;
|
|
161
160
|
readonly x: Schema.Int;
|
|
162
161
|
readonly y: Schema.Int;
|
|
163
162
|
readonly modifiers: Schema.optionalKey<Schema.Struct<{
|
|
@@ -165,9 +164,8 @@ export declare namespace Frontend {
|
|
|
165
164
|
readonly alt: Schema.optionalKey<Schema.Boolean>;
|
|
166
165
|
readonly ctrl: Schema.optionalKey<Schema.Boolean>;
|
|
167
166
|
}>>;
|
|
167
|
+
readonly action: Schema.Literal<"move">;
|
|
168
168
|
}>, Schema.Struct<{
|
|
169
|
-
readonly action: Schema.Literals<readonly ["down", "up"]>;
|
|
170
|
-
readonly button: Schema.optionalKey<Schema.Literals<readonly ["left", "middle", "right"]>>;
|
|
171
169
|
readonly x: Schema.Int;
|
|
172
170
|
readonly y: Schema.Int;
|
|
173
171
|
readonly modifiers: Schema.optionalKey<Schema.Struct<{
|
|
@@ -175,9 +173,9 @@ export declare namespace Frontend {
|
|
|
175
173
|
readonly alt: Schema.optionalKey<Schema.Boolean>;
|
|
176
174
|
readonly ctrl: Schema.optionalKey<Schema.Boolean>;
|
|
177
175
|
}>>;
|
|
176
|
+
readonly action: Schema.Literals<readonly ["down", "up"]>;
|
|
177
|
+
readonly button: Schema.optionalKey<Schema.Literals<readonly ["left", "middle", "right"]>>;
|
|
178
178
|
}>, Schema.Struct<{
|
|
179
|
-
readonly action: Schema.Literal<"scroll">;
|
|
180
|
-
readonly direction: Schema.Literals<readonly ["up", "down", "left", "right"]>;
|
|
181
179
|
readonly x: Schema.Int;
|
|
182
180
|
readonly y: Schema.Int;
|
|
183
181
|
readonly modifiers: Schema.optionalKey<Schema.Struct<{
|
|
@@ -185,6 +183,8 @@ export declare namespace Frontend {
|
|
|
185
183
|
readonly alt: Schema.optionalKey<Schema.Boolean>;
|
|
186
184
|
readonly ctrl: Schema.optionalKey<Schema.Boolean>;
|
|
187
185
|
}>>;
|
|
186
|
+
readonly action: Schema.Literal<"scroll">;
|
|
187
|
+
readonly direction: Schema.Literals<readonly ["up", "down", "left", "right"]>;
|
|
188
188
|
}>]>;
|
|
189
189
|
type MouseParams = Schema.Schema.Type<typeof MouseParams>;
|
|
190
190
|
const Action: Schema.Union<readonly [Schema.Struct<{
|
|
@@ -211,7 +211,6 @@ export declare namespace Frontend {
|
|
|
211
211
|
}>, Schema.Struct<{
|
|
212
212
|
readonly type: Schema.Literal<"ui.mouse">;
|
|
213
213
|
readonly params: Schema.Union<readonly [Schema.Struct<{
|
|
214
|
-
readonly action: Schema.Literal<"move">;
|
|
215
214
|
readonly x: Schema.Int;
|
|
216
215
|
readonly y: Schema.Int;
|
|
217
216
|
readonly modifiers: Schema.optionalKey<Schema.Struct<{
|
|
@@ -219,9 +218,8 @@ export declare namespace Frontend {
|
|
|
219
218
|
readonly alt: Schema.optionalKey<Schema.Boolean>;
|
|
220
219
|
readonly ctrl: Schema.optionalKey<Schema.Boolean>;
|
|
221
220
|
}>>;
|
|
221
|
+
readonly action: Schema.Literal<"move">;
|
|
222
222
|
}>, Schema.Struct<{
|
|
223
|
-
readonly action: Schema.Literals<readonly ["down", "up"]>;
|
|
224
|
-
readonly button: Schema.optionalKey<Schema.Literals<readonly ["left", "middle", "right"]>>;
|
|
225
223
|
readonly x: Schema.Int;
|
|
226
224
|
readonly y: Schema.Int;
|
|
227
225
|
readonly modifiers: Schema.optionalKey<Schema.Struct<{
|
|
@@ -229,9 +227,9 @@ export declare namespace Frontend {
|
|
|
229
227
|
readonly alt: Schema.optionalKey<Schema.Boolean>;
|
|
230
228
|
readonly ctrl: Schema.optionalKey<Schema.Boolean>;
|
|
231
229
|
}>>;
|
|
230
|
+
readonly action: Schema.Literals<readonly ["down", "up"]>;
|
|
231
|
+
readonly button: Schema.optionalKey<Schema.Literals<readonly ["left", "middle", "right"]>>;
|
|
232
232
|
}>, Schema.Struct<{
|
|
233
|
-
readonly action: Schema.Literal<"scroll">;
|
|
234
|
-
readonly direction: Schema.Literals<readonly ["up", "down", "left", "right"]>;
|
|
235
233
|
readonly x: Schema.Int;
|
|
236
234
|
readonly y: Schema.Int;
|
|
237
235
|
readonly modifiers: Schema.optionalKey<Schema.Struct<{
|
|
@@ -239,6 +237,8 @@ export declare namespace Frontend {
|
|
|
239
237
|
readonly alt: Schema.optionalKey<Schema.Boolean>;
|
|
240
238
|
readonly ctrl: Schema.optionalKey<Schema.Boolean>;
|
|
241
239
|
}>>;
|
|
240
|
+
readonly action: Schema.Literal<"scroll">;
|
|
241
|
+
readonly direction: Schema.Literals<readonly ["up", "down", "left", "right"]>;
|
|
242
242
|
}>]>;
|
|
243
243
|
}>, Schema.Struct<{
|
|
244
244
|
readonly type: Schema.Literal<"ui.click">;
|
|
@@ -415,6 +415,8 @@ export declare namespace Frontend {
|
|
|
415
415
|
interface ResizeParams extends Schema.Schema.Type<typeof ResizeParams> {
|
|
416
416
|
}
|
|
417
417
|
const Request: Schema.Union<readonly [Schema.Struct<{
|
|
418
|
+
readonly jsonrpc: Schema.Literal<"2.0">;
|
|
419
|
+
readonly id: Schema.optional<Schema.Union<readonly [Schema.String, Schema.Number, Schema.Null]>>;
|
|
418
420
|
readonly method: Schema.Literal<"simulation.handshake">;
|
|
419
421
|
readonly params: Schema.Struct<{
|
|
420
422
|
readonly client: Schema.Struct<{
|
|
@@ -426,16 +428,16 @@ export declare namespace Frontend {
|
|
|
426
428
|
readonly requiredCapabilities: Schema.$Array<Schema.NonEmptyString>;
|
|
427
429
|
readonly optionalCapabilities: Schema.$Array<Schema.NonEmptyString>;
|
|
428
430
|
}>;
|
|
431
|
+
}>, Schema.Struct<{
|
|
429
432
|
readonly jsonrpc: Schema.Literal<"2.0">;
|
|
430
433
|
readonly id: Schema.optional<Schema.Union<readonly [Schema.String, Schema.Number, Schema.Null]>>;
|
|
431
|
-
}>, Schema.Struct<{
|
|
432
434
|
readonly method: Schema.Literal<"ui.type">;
|
|
433
435
|
readonly params: Schema.Struct<{
|
|
434
436
|
readonly text: Schema.String;
|
|
435
437
|
}>;
|
|
438
|
+
}>, Schema.Struct<{
|
|
436
439
|
readonly jsonrpc: Schema.Literal<"2.0">;
|
|
437
440
|
readonly id: Schema.optional<Schema.Union<readonly [Schema.String, Schema.Number, Schema.Null]>>;
|
|
438
|
-
}>, Schema.Struct<{
|
|
439
441
|
readonly method: Schema.Literal<"ui.press">;
|
|
440
442
|
readonly params: Schema.Struct<{
|
|
441
443
|
readonly key: Schema.String;
|
|
@@ -447,23 +449,23 @@ export declare namespace Frontend {
|
|
|
447
449
|
readonly hyper: Schema.optional<Schema.Boolean>;
|
|
448
450
|
}>>;
|
|
449
451
|
}>;
|
|
452
|
+
}>, Schema.Struct<{
|
|
450
453
|
readonly jsonrpc: Schema.Literal<"2.0">;
|
|
451
454
|
readonly id: Schema.optional<Schema.Union<readonly [Schema.String, Schema.Number, Schema.Null]>>;
|
|
452
|
-
}>, Schema.Struct<{
|
|
453
455
|
readonly method: Schema.Literal<"ui.arrow">;
|
|
454
456
|
readonly params: Schema.Struct<{
|
|
455
457
|
readonly direction: Schema.Literals<readonly ["up", "down", "left", "right"]>;
|
|
456
458
|
}>;
|
|
459
|
+
}>, Schema.Struct<{
|
|
457
460
|
readonly jsonrpc: Schema.Literal<"2.0">;
|
|
458
461
|
readonly id: Schema.optional<Schema.Union<readonly [Schema.String, Schema.Number, Schema.Null]>>;
|
|
459
|
-
}>, Schema.Struct<{
|
|
460
462
|
readonly method: Schema.Literal<"ui.focus">;
|
|
461
463
|
readonly params: Schema.Struct<{
|
|
462
464
|
readonly target: Schema.Number;
|
|
463
465
|
}>;
|
|
466
|
+
}>, Schema.Struct<{
|
|
464
467
|
readonly jsonrpc: Schema.Literal<"2.0">;
|
|
465
468
|
readonly id: Schema.optional<Schema.Union<readonly [Schema.String, Schema.Number, Schema.Null]>>;
|
|
466
|
-
}>, Schema.Struct<{
|
|
467
469
|
readonly method: Schema.Literal<"ui.click">;
|
|
468
470
|
readonly params: Schema.Struct<{
|
|
469
471
|
readonly target: Schema.Number;
|
|
@@ -475,12 +477,11 @@ export declare namespace Frontend {
|
|
|
475
477
|
readonly element: Schema.Number;
|
|
476
478
|
}>>;
|
|
477
479
|
}>;
|
|
480
|
+
}>, Schema.Struct<{
|
|
478
481
|
readonly jsonrpc: Schema.Literal<"2.0">;
|
|
479
482
|
readonly id: Schema.optional<Schema.Union<readonly [Schema.String, Schema.Number, Schema.Null]>>;
|
|
480
|
-
}>, Schema.Struct<{
|
|
481
483
|
readonly method: Schema.Literal<"ui.mouse">;
|
|
482
484
|
readonly params: Schema.Union<readonly [Schema.Struct<{
|
|
483
|
-
readonly action: Schema.Literal<"move">;
|
|
484
485
|
readonly x: Schema.Int;
|
|
485
486
|
readonly y: Schema.Int;
|
|
486
487
|
readonly modifiers: Schema.optionalKey<Schema.Struct<{
|
|
@@ -488,9 +489,8 @@ export declare namespace Frontend {
|
|
|
488
489
|
readonly alt: Schema.optionalKey<Schema.Boolean>;
|
|
489
490
|
readonly ctrl: Schema.optionalKey<Schema.Boolean>;
|
|
490
491
|
}>>;
|
|
492
|
+
readonly action: Schema.Literal<"move">;
|
|
491
493
|
}>, Schema.Struct<{
|
|
492
|
-
readonly action: Schema.Literals<readonly ["down", "up"]>;
|
|
493
|
-
readonly button: Schema.optionalKey<Schema.Literals<readonly ["left", "middle", "right"]>>;
|
|
494
494
|
readonly x: Schema.Int;
|
|
495
495
|
readonly y: Schema.Int;
|
|
496
496
|
readonly modifiers: Schema.optionalKey<Schema.Struct<{
|
|
@@ -498,9 +498,9 @@ export declare namespace Frontend {
|
|
|
498
498
|
readonly alt: Schema.optionalKey<Schema.Boolean>;
|
|
499
499
|
readonly ctrl: Schema.optionalKey<Schema.Boolean>;
|
|
500
500
|
}>>;
|
|
501
|
+
readonly action: Schema.Literals<readonly ["down", "up"]>;
|
|
502
|
+
readonly button: Schema.optionalKey<Schema.Literals<readonly ["left", "middle", "right"]>>;
|
|
501
503
|
}>, Schema.Struct<{
|
|
502
|
-
readonly action: Schema.Literal<"scroll">;
|
|
503
|
-
readonly direction: Schema.Literals<readonly ["up", "down", "left", "right"]>;
|
|
504
504
|
readonly x: Schema.Int;
|
|
505
505
|
readonly y: Schema.Int;
|
|
506
506
|
readonly modifiers: Schema.optionalKey<Schema.Struct<{
|
|
@@ -508,275 +508,275 @@ export declare namespace Frontend {
|
|
|
508
508
|
readonly alt: Schema.optionalKey<Schema.Boolean>;
|
|
509
509
|
readonly ctrl: Schema.optionalKey<Schema.Boolean>;
|
|
510
510
|
}>>;
|
|
511
|
+
readonly action: Schema.Literal<"scroll">;
|
|
512
|
+
readonly direction: Schema.Literals<readonly ["up", "down", "left", "right"]>;
|
|
511
513
|
}>]>;
|
|
514
|
+
}>, Schema.Struct<{
|
|
512
515
|
readonly jsonrpc: Schema.Literal<"2.0">;
|
|
513
516
|
readonly id: Schema.optional<Schema.Union<readonly [Schema.String, Schema.Number, Schema.Null]>>;
|
|
514
|
-
}>, Schema.Struct<{
|
|
515
517
|
readonly method: Schema.Literal<"ui.resize">;
|
|
516
518
|
readonly params: Schema.Struct<{
|
|
517
519
|
readonly cols: Schema.Number;
|
|
518
520
|
readonly rows: Schema.Number;
|
|
519
521
|
}>;
|
|
522
|
+
}>, Schema.Struct<{
|
|
520
523
|
readonly jsonrpc: Schema.Literal<"2.0">;
|
|
521
524
|
readonly id: Schema.optional<Schema.Union<readonly [Schema.String, Schema.Number, Schema.Null]>>;
|
|
522
|
-
}>, Schema.Struct<{
|
|
523
525
|
readonly method: Schema.Literal<"ui.matches">;
|
|
524
526
|
readonly params: Schema.Struct<{
|
|
525
527
|
readonly text: Schema.String;
|
|
526
528
|
}>;
|
|
527
|
-
readonly jsonrpc: Schema.Literal<"2.0">;
|
|
528
|
-
readonly id: Schema.optional<Schema.Union<readonly [Schema.String, Schema.Number, Schema.Null]>>;
|
|
529
529
|
}>, Schema.Struct<{
|
|
530
|
-
readonly method: Schema.Literals<readonly ["ui.enter", "ui.state", "ui.snapshot", "ui.recording.finish"]>;
|
|
531
530
|
readonly jsonrpc: Schema.Literal<"2.0">;
|
|
532
531
|
readonly id: Schema.optional<Schema.Union<readonly [Schema.String, Schema.Number, Schema.Null]>>;
|
|
532
|
+
readonly method: Schema.Literals<readonly ["ui.enter", "ui.state", "ui.snapshot", "ui.recording.finish"]>;
|
|
533
533
|
}>, Schema.Struct<{
|
|
534
|
-
readonly method: Schema.Literal<"ui.capture">;
|
|
535
534
|
readonly jsonrpc: Schema.Literal<"2.0">;
|
|
536
535
|
readonly id: Schema.optional<Schema.Union<readonly [Schema.String, Schema.Number, Schema.Null]>>;
|
|
536
|
+
readonly method: Schema.Literal<"ui.capture">;
|
|
537
537
|
}>]>;
|
|
538
538
|
type Request = Schema.Schema.Type<typeof Request>;
|
|
539
539
|
const decodeRequest: (input: unknown, options?: import("effect/SchemaAST").ParseOptions) => {
|
|
540
|
+
readonly jsonrpc: "2.0";
|
|
541
|
+
readonly id?: string | number | null | undefined;
|
|
540
542
|
readonly method: "simulation.handshake";
|
|
541
543
|
readonly params: {
|
|
542
544
|
readonly client: {
|
|
543
545
|
readonly name: string;
|
|
544
546
|
readonly version: string;
|
|
545
547
|
};
|
|
546
|
-
readonly expectedRole: "
|
|
548
|
+
readonly expectedRole: "backend" | "ui";
|
|
547
549
|
readonly offeredVersions: readonly number[];
|
|
548
550
|
readonly requiredCapabilities: readonly string[];
|
|
549
551
|
readonly optionalCapabilities: readonly string[];
|
|
550
552
|
};
|
|
553
|
+
} | {
|
|
551
554
|
readonly jsonrpc: "2.0";
|
|
552
555
|
readonly id?: string | number | null | undefined;
|
|
553
|
-
} | {
|
|
554
556
|
readonly method: "ui.type";
|
|
555
557
|
readonly params: {
|
|
556
558
|
readonly text: string;
|
|
557
559
|
};
|
|
560
|
+
} | {
|
|
558
561
|
readonly jsonrpc: "2.0";
|
|
559
562
|
readonly id?: string | number | null | undefined;
|
|
560
|
-
} | {
|
|
561
563
|
readonly method: "ui.press";
|
|
562
564
|
readonly params: {
|
|
563
565
|
readonly key: string;
|
|
564
566
|
readonly modifiers?: {
|
|
565
|
-
readonly shift?: boolean | undefined;
|
|
566
567
|
readonly ctrl?: boolean | undefined;
|
|
568
|
+
readonly shift?: boolean | undefined;
|
|
567
569
|
readonly meta?: boolean | undefined;
|
|
568
570
|
readonly super?: boolean | undefined;
|
|
569
571
|
readonly hyper?: boolean | undefined;
|
|
570
572
|
} | undefined;
|
|
571
573
|
};
|
|
574
|
+
} | {
|
|
572
575
|
readonly jsonrpc: "2.0";
|
|
573
576
|
readonly id?: string | number | null | undefined;
|
|
574
|
-
} | {
|
|
575
577
|
readonly method: "ui.arrow";
|
|
576
578
|
readonly params: {
|
|
577
|
-
readonly direction: "down" | "
|
|
579
|
+
readonly direction: "down" | "left" | "right" | "up";
|
|
578
580
|
};
|
|
581
|
+
} | {
|
|
579
582
|
readonly jsonrpc: "2.0";
|
|
580
583
|
readonly id?: string | number | null | undefined;
|
|
581
|
-
} | {
|
|
582
584
|
readonly method: "ui.focus";
|
|
583
585
|
readonly params: {
|
|
584
586
|
readonly target: number;
|
|
585
587
|
};
|
|
588
|
+
} | {
|
|
586
589
|
readonly jsonrpc: "2.0";
|
|
587
590
|
readonly id?: string | number | null | undefined;
|
|
588
|
-
} | {
|
|
589
591
|
readonly method: "ui.click";
|
|
590
592
|
readonly params: {
|
|
593
|
+
readonly target: number;
|
|
591
594
|
readonly x: number;
|
|
592
595
|
readonly y: number;
|
|
593
|
-
readonly target: number;
|
|
594
596
|
readonly semantic?: {
|
|
595
597
|
readonly id: string;
|
|
596
|
-
readonly element: number;
|
|
597
598
|
readonly instance?: string | undefined;
|
|
599
|
+
readonly element: number;
|
|
598
600
|
} | undefined;
|
|
599
601
|
};
|
|
602
|
+
} | {
|
|
600
603
|
readonly jsonrpc: "2.0";
|
|
601
604
|
readonly id?: string | number | null | undefined;
|
|
602
|
-
} | {
|
|
603
605
|
readonly method: "ui.mouse";
|
|
604
606
|
readonly params: {
|
|
605
|
-
readonly action: "move";
|
|
606
607
|
readonly x: number;
|
|
607
608
|
readonly y: number;
|
|
608
609
|
readonly modifiers?: {
|
|
609
610
|
readonly shift?: boolean | undefined;
|
|
610
|
-
readonly ctrl?: boolean | undefined;
|
|
611
611
|
readonly alt?: boolean | undefined;
|
|
612
|
+
readonly ctrl?: boolean | undefined;
|
|
612
613
|
} | undefined;
|
|
614
|
+
readonly action: "move";
|
|
613
615
|
} | {
|
|
614
|
-
readonly action: "down" | "up";
|
|
615
616
|
readonly x: number;
|
|
616
617
|
readonly y: number;
|
|
617
618
|
readonly modifiers?: {
|
|
618
619
|
readonly shift?: boolean | undefined;
|
|
619
|
-
readonly ctrl?: boolean | undefined;
|
|
620
620
|
readonly alt?: boolean | undefined;
|
|
621
|
+
readonly ctrl?: boolean | undefined;
|
|
621
622
|
} | undefined;
|
|
623
|
+
readonly action: "down" | "up";
|
|
622
624
|
readonly button?: "left" | "middle" | "right" | undefined;
|
|
623
625
|
} | {
|
|
624
|
-
readonly action: "scroll";
|
|
625
|
-
readonly direction: "down" | "up" | "left" | "right";
|
|
626
626
|
readonly x: number;
|
|
627
627
|
readonly y: number;
|
|
628
628
|
readonly modifiers?: {
|
|
629
629
|
readonly shift?: boolean | undefined;
|
|
630
|
-
readonly ctrl?: boolean | undefined;
|
|
631
630
|
readonly alt?: boolean | undefined;
|
|
631
|
+
readonly ctrl?: boolean | undefined;
|
|
632
632
|
} | undefined;
|
|
633
|
+
readonly action: "scroll";
|
|
634
|
+
readonly direction: "down" | "left" | "right" | "up";
|
|
633
635
|
};
|
|
636
|
+
} | {
|
|
634
637
|
readonly jsonrpc: "2.0";
|
|
635
638
|
readonly id?: string | number | null | undefined;
|
|
636
|
-
} | {
|
|
637
639
|
readonly method: "ui.resize";
|
|
638
640
|
readonly params: {
|
|
639
641
|
readonly cols: number;
|
|
640
642
|
readonly rows: number;
|
|
641
643
|
};
|
|
644
|
+
} | {
|
|
642
645
|
readonly jsonrpc: "2.0";
|
|
643
646
|
readonly id?: string | number | null | undefined;
|
|
644
|
-
} | {
|
|
645
647
|
readonly method: "ui.matches";
|
|
646
648
|
readonly params: {
|
|
647
649
|
readonly text: string;
|
|
648
650
|
};
|
|
649
|
-
readonly jsonrpc: "2.0";
|
|
650
|
-
readonly id?: string | number | null | undefined;
|
|
651
651
|
} | {
|
|
652
|
-
readonly method: "ui.enter" | "ui.state" | "ui.snapshot" | "ui.recording.finish";
|
|
653
652
|
readonly jsonrpc: "2.0";
|
|
654
653
|
readonly id?: string | number | null | undefined;
|
|
654
|
+
readonly method: "ui.enter" | "ui.recording.finish" | "ui.snapshot" | "ui.state";
|
|
655
655
|
} | {
|
|
656
|
-
readonly method: "ui.capture";
|
|
657
656
|
readonly jsonrpc: "2.0";
|
|
658
657
|
readonly id?: string | number | null | undefined;
|
|
658
|
+
readonly method: "ui.capture";
|
|
659
659
|
};
|
|
660
660
|
const decodeRequestEffect: (input: unknown, options?: import("effect/SchemaAST").ParseOptions) => Effect.Effect<{
|
|
661
|
+
readonly jsonrpc: "2.0";
|
|
662
|
+
readonly id?: string | number | null | undefined;
|
|
661
663
|
readonly method: "simulation.handshake";
|
|
662
664
|
readonly params: {
|
|
663
665
|
readonly client: {
|
|
664
666
|
readonly name: string;
|
|
665
667
|
readonly version: string;
|
|
666
668
|
};
|
|
667
|
-
readonly expectedRole: "
|
|
669
|
+
readonly expectedRole: "backend" | "ui";
|
|
668
670
|
readonly offeredVersions: readonly number[];
|
|
669
671
|
readonly requiredCapabilities: readonly string[];
|
|
670
672
|
readonly optionalCapabilities: readonly string[];
|
|
671
673
|
};
|
|
674
|
+
} | {
|
|
672
675
|
readonly jsonrpc: "2.0";
|
|
673
676
|
readonly id?: string | number | null | undefined;
|
|
674
|
-
} | {
|
|
675
677
|
readonly method: "ui.type";
|
|
676
678
|
readonly params: {
|
|
677
679
|
readonly text: string;
|
|
678
680
|
};
|
|
681
|
+
} | {
|
|
679
682
|
readonly jsonrpc: "2.0";
|
|
680
683
|
readonly id?: string | number | null | undefined;
|
|
681
|
-
} | {
|
|
682
684
|
readonly method: "ui.press";
|
|
683
685
|
readonly params: {
|
|
684
686
|
readonly key: string;
|
|
685
687
|
readonly modifiers?: {
|
|
686
|
-
readonly shift?: boolean | undefined;
|
|
687
688
|
readonly ctrl?: boolean | undefined;
|
|
689
|
+
readonly shift?: boolean | undefined;
|
|
688
690
|
readonly meta?: boolean | undefined;
|
|
689
691
|
readonly super?: boolean | undefined;
|
|
690
692
|
readonly hyper?: boolean | undefined;
|
|
691
693
|
} | undefined;
|
|
692
694
|
};
|
|
695
|
+
} | {
|
|
693
696
|
readonly jsonrpc: "2.0";
|
|
694
697
|
readonly id?: string | number | null | undefined;
|
|
695
|
-
} | {
|
|
696
698
|
readonly method: "ui.arrow";
|
|
697
699
|
readonly params: {
|
|
698
|
-
readonly direction: "down" | "
|
|
700
|
+
readonly direction: "down" | "left" | "right" | "up";
|
|
699
701
|
};
|
|
702
|
+
} | {
|
|
700
703
|
readonly jsonrpc: "2.0";
|
|
701
704
|
readonly id?: string | number | null | undefined;
|
|
702
|
-
} | {
|
|
703
705
|
readonly method: "ui.focus";
|
|
704
706
|
readonly params: {
|
|
705
707
|
readonly target: number;
|
|
706
708
|
};
|
|
709
|
+
} | {
|
|
707
710
|
readonly jsonrpc: "2.0";
|
|
708
711
|
readonly id?: string | number | null | undefined;
|
|
709
|
-
} | {
|
|
710
712
|
readonly method: "ui.click";
|
|
711
713
|
readonly params: {
|
|
714
|
+
readonly target: number;
|
|
712
715
|
readonly x: number;
|
|
713
716
|
readonly y: number;
|
|
714
|
-
readonly target: number;
|
|
715
717
|
readonly semantic?: {
|
|
716
718
|
readonly id: string;
|
|
717
|
-
readonly element: number;
|
|
718
719
|
readonly instance?: string | undefined;
|
|
720
|
+
readonly element: number;
|
|
719
721
|
} | undefined;
|
|
720
722
|
};
|
|
723
|
+
} | {
|
|
721
724
|
readonly jsonrpc: "2.0";
|
|
722
725
|
readonly id?: string | number | null | undefined;
|
|
723
|
-
} | {
|
|
724
726
|
readonly method: "ui.mouse";
|
|
725
727
|
readonly params: {
|
|
726
|
-
readonly action: "move";
|
|
727
728
|
readonly x: number;
|
|
728
729
|
readonly y: number;
|
|
729
730
|
readonly modifiers?: {
|
|
730
731
|
readonly shift?: boolean | undefined;
|
|
731
|
-
readonly ctrl?: boolean | undefined;
|
|
732
732
|
readonly alt?: boolean | undefined;
|
|
733
|
+
readonly ctrl?: boolean | undefined;
|
|
733
734
|
} | undefined;
|
|
735
|
+
readonly action: "move";
|
|
734
736
|
} | {
|
|
735
|
-
readonly action: "down" | "up";
|
|
736
737
|
readonly x: number;
|
|
737
738
|
readonly y: number;
|
|
738
739
|
readonly modifiers?: {
|
|
739
740
|
readonly shift?: boolean | undefined;
|
|
740
|
-
readonly ctrl?: boolean | undefined;
|
|
741
741
|
readonly alt?: boolean | undefined;
|
|
742
|
+
readonly ctrl?: boolean | undefined;
|
|
742
743
|
} | undefined;
|
|
744
|
+
readonly action: "down" | "up";
|
|
743
745
|
readonly button?: "left" | "middle" | "right" | undefined;
|
|
744
746
|
} | {
|
|
745
|
-
readonly action: "scroll";
|
|
746
|
-
readonly direction: "down" | "up" | "left" | "right";
|
|
747
747
|
readonly x: number;
|
|
748
748
|
readonly y: number;
|
|
749
749
|
readonly modifiers?: {
|
|
750
750
|
readonly shift?: boolean | undefined;
|
|
751
|
-
readonly ctrl?: boolean | undefined;
|
|
752
751
|
readonly alt?: boolean | undefined;
|
|
752
|
+
readonly ctrl?: boolean | undefined;
|
|
753
753
|
} | undefined;
|
|
754
|
+
readonly action: "scroll";
|
|
755
|
+
readonly direction: "down" | "left" | "right" | "up";
|
|
754
756
|
};
|
|
757
|
+
} | {
|
|
755
758
|
readonly jsonrpc: "2.0";
|
|
756
759
|
readonly id?: string | number | null | undefined;
|
|
757
|
-
} | {
|
|
758
760
|
readonly method: "ui.resize";
|
|
759
761
|
readonly params: {
|
|
760
762
|
readonly cols: number;
|
|
761
763
|
readonly rows: number;
|
|
762
764
|
};
|
|
765
|
+
} | {
|
|
763
766
|
readonly jsonrpc: "2.0";
|
|
764
767
|
readonly id?: string | number | null | undefined;
|
|
765
|
-
} | {
|
|
766
768
|
readonly method: "ui.matches";
|
|
767
769
|
readonly params: {
|
|
768
770
|
readonly text: string;
|
|
769
771
|
};
|
|
770
|
-
readonly jsonrpc: "2.0";
|
|
771
|
-
readonly id?: string | number | null | undefined;
|
|
772
772
|
} | {
|
|
773
|
-
readonly method: "ui.enter" | "ui.state" | "ui.snapshot" | "ui.recording.finish";
|
|
774
773
|
readonly jsonrpc: "2.0";
|
|
775
774
|
readonly id?: string | number | null | undefined;
|
|
775
|
+
readonly method: "ui.enter" | "ui.recording.finish" | "ui.snapshot" | "ui.state";
|
|
776
776
|
} | {
|
|
777
|
-
readonly method: "ui.capture";
|
|
778
777
|
readonly jsonrpc: "2.0";
|
|
779
778
|
readonly id?: string | number | null | undefined;
|
|
779
|
+
readonly method: "ui.capture";
|
|
780
780
|
}, Schema.SchemaError, never>;
|
|
781
781
|
}
|
|
782
782
|
export declare namespace Backend {
|
|
@@ -972,6 +972,8 @@ export declare namespace Backend {
|
|
|
972
972
|
interface DisconnectParams extends Schema.Schema.Type<typeof DisconnectParams> {
|
|
973
973
|
}
|
|
974
974
|
const Request: Schema.Union<readonly [Schema.Struct<{
|
|
975
|
+
readonly jsonrpc: Schema.Literal<"2.0">;
|
|
976
|
+
readonly id: Schema.optional<Schema.Union<readonly [Schema.String, Schema.Number, Schema.Null]>>;
|
|
975
977
|
readonly method: Schema.Literal<"simulation.handshake">;
|
|
976
978
|
readonly params: Schema.Struct<{
|
|
977
979
|
readonly client: Schema.Struct<{
|
|
@@ -983,9 +985,9 @@ export declare namespace Backend {
|
|
|
983
985
|
readonly requiredCapabilities: Schema.$Array<Schema.NonEmptyString>;
|
|
984
986
|
readonly optionalCapabilities: Schema.$Array<Schema.NonEmptyString>;
|
|
985
987
|
}>;
|
|
988
|
+
}>, Schema.Struct<{
|
|
986
989
|
readonly jsonrpc: Schema.Literal<"2.0">;
|
|
987
990
|
readonly id: Schema.optional<Schema.Union<readonly [Schema.String, Schema.Number, Schema.Null]>>;
|
|
988
|
-
}>, Schema.Struct<{
|
|
989
991
|
readonly method: Schema.Literal<"llm.chunk">;
|
|
990
992
|
readonly params: Schema.Struct<{
|
|
991
993
|
readonly id: Schema.String;
|
|
@@ -1015,24 +1017,24 @@ export declare namespace Backend {
|
|
|
1015
1017
|
readonly chunk: Schema.Codec<Schema.Json, Schema.Json, never, never>;
|
|
1016
1018
|
}>]>>;
|
|
1017
1019
|
}>;
|
|
1020
|
+
}>, Schema.Struct<{
|
|
1018
1021
|
readonly jsonrpc: Schema.Literal<"2.0">;
|
|
1019
1022
|
readonly id: Schema.optional<Schema.Union<readonly [Schema.String, Schema.Number, Schema.Null]>>;
|
|
1020
|
-
}>, Schema.Struct<{
|
|
1021
1023
|
readonly method: Schema.Literal<"llm.finish">;
|
|
1022
1024
|
readonly params: Schema.Struct<{
|
|
1023
1025
|
readonly id: Schema.String;
|
|
1024
1026
|
readonly reason: Schema.withDecodingDefault<Schema.Literals<readonly ["stop", "tool-calls", "length", "content-filter"]>, never>;
|
|
1025
1027
|
}>;
|
|
1028
|
+
}>, Schema.Struct<{
|
|
1026
1029
|
readonly jsonrpc: Schema.Literal<"2.0">;
|
|
1027
1030
|
readonly id: Schema.optional<Schema.Union<readonly [Schema.String, Schema.Number, Schema.Null]>>;
|
|
1028
|
-
}>, Schema.Struct<{
|
|
1029
1031
|
readonly method: Schema.Literal<"llm.disconnect">;
|
|
1030
1032
|
readonly params: Schema.Struct<{
|
|
1031
1033
|
readonly id: Schema.String;
|
|
1032
1034
|
}>;
|
|
1035
|
+
}>, Schema.Struct<{
|
|
1033
1036
|
readonly jsonrpc: Schema.Literal<"2.0">;
|
|
1034
1037
|
readonly id: Schema.optional<Schema.Union<readonly [Schema.String, Schema.Number, Schema.Null]>>;
|
|
1035
|
-
}>, Schema.Struct<{
|
|
1036
1038
|
readonly method: Schema.Literal<"tool.attach">;
|
|
1037
1039
|
readonly params: Schema.Struct<{
|
|
1038
1040
|
readonly tools: Schema.$Array<Schema.Struct<{
|
|
@@ -1047,18 +1049,18 @@ export declare namespace Backend {
|
|
|
1047
1049
|
}>>;
|
|
1048
1050
|
}>>;
|
|
1049
1051
|
}>;
|
|
1052
|
+
}>, Schema.Struct<{
|
|
1050
1053
|
readonly jsonrpc: Schema.Literal<"2.0">;
|
|
1051
1054
|
readonly id: Schema.optional<Schema.Union<readonly [Schema.String, Schema.Number, Schema.Null]>>;
|
|
1052
|
-
}>, Schema.Struct<{
|
|
1053
1055
|
readonly method: Schema.Literal<"tool.update">;
|
|
1054
1056
|
readonly params: Schema.Struct<{
|
|
1055
1057
|
readonly id: Schema.String;
|
|
1056
1058
|
readonly sequence: Schema.Int;
|
|
1057
1059
|
readonly update: Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>;
|
|
1058
1060
|
}>;
|
|
1061
|
+
}>, Schema.Struct<{
|
|
1059
1062
|
readonly jsonrpc: Schema.Literal<"2.0">;
|
|
1060
1063
|
readonly id: Schema.optional<Schema.Union<readonly [Schema.String, Schema.Number, Schema.Null]>>;
|
|
1061
|
-
}>, Schema.Struct<{
|
|
1062
1064
|
readonly method: Schema.Literal<"tool.finish">;
|
|
1063
1065
|
readonly params: Schema.Struct<{
|
|
1064
1066
|
readonly id: Schema.String;
|
|
@@ -1075,37 +1077,37 @@ export declare namespace Backend {
|
|
|
1075
1077
|
}>]>>;
|
|
1076
1078
|
}>;
|
|
1077
1079
|
}>;
|
|
1080
|
+
}>, Schema.Struct<{
|
|
1078
1081
|
readonly jsonrpc: Schema.Literal<"2.0">;
|
|
1079
1082
|
readonly id: Schema.optional<Schema.Union<readonly [Schema.String, Schema.Number, Schema.Null]>>;
|
|
1080
|
-
}>, Schema.Struct<{
|
|
1081
1083
|
readonly method: Schema.Literal<"tool.fail">;
|
|
1082
1084
|
readonly params: Schema.Struct<{
|
|
1083
1085
|
readonly id: Schema.String;
|
|
1084
1086
|
readonly message: Schema.String;
|
|
1085
1087
|
}>;
|
|
1086
|
-
readonly jsonrpc: Schema.Literal<"2.0">;
|
|
1087
|
-
readonly id: Schema.optional<Schema.Union<readonly [Schema.String, Schema.Number, Schema.Null]>>;
|
|
1088
1088
|
}>, Schema.Struct<{
|
|
1089
|
-
readonly method: Schema.Literals<readonly ["llm.attach", "llm.pending"]>;
|
|
1090
1089
|
readonly jsonrpc: Schema.Literal<"2.0">;
|
|
1091
1090
|
readonly id: Schema.optional<Schema.Union<readonly [Schema.String, Schema.Number, Schema.Null]>>;
|
|
1091
|
+
readonly method: Schema.Literals<readonly ["llm.attach", "llm.pending"]>;
|
|
1092
1092
|
}>]>;
|
|
1093
1093
|
type Request = Schema.Schema.Type<typeof Request>;
|
|
1094
1094
|
const decodeRequest: (input: unknown, options?: import("effect/SchemaAST").ParseOptions) => {
|
|
1095
|
+
readonly jsonrpc: "2.0";
|
|
1096
|
+
readonly id?: string | number | null | undefined;
|
|
1095
1097
|
readonly method: "simulation.handshake";
|
|
1096
1098
|
readonly params: {
|
|
1097
1099
|
readonly client: {
|
|
1098
1100
|
readonly name: string;
|
|
1099
1101
|
readonly version: string;
|
|
1100
1102
|
};
|
|
1101
|
-
readonly expectedRole: "
|
|
1103
|
+
readonly expectedRole: "backend" | "ui";
|
|
1102
1104
|
readonly offeredVersions: readonly number[];
|
|
1103
1105
|
readonly requiredCapabilities: readonly string[];
|
|
1104
1106
|
readonly optionalCapabilities: readonly string[];
|
|
1105
1107
|
};
|
|
1108
|
+
} | {
|
|
1106
1109
|
readonly jsonrpc: "2.0";
|
|
1107
1110
|
readonly id?: string | number | null | undefined;
|
|
1108
|
-
} | {
|
|
1109
1111
|
readonly method: "llm.chunk";
|
|
1110
1112
|
readonly params: {
|
|
1111
1113
|
readonly id: string;
|
|
@@ -1135,45 +1137,45 @@ export declare namespace Backend {
|
|
|
1135
1137
|
readonly chunk: Schema.Json;
|
|
1136
1138
|
})[];
|
|
1137
1139
|
};
|
|
1140
|
+
} | {
|
|
1138
1141
|
readonly jsonrpc: "2.0";
|
|
1139
1142
|
readonly id?: string | number | null | undefined;
|
|
1140
|
-
} | {
|
|
1141
1143
|
readonly method: "llm.finish";
|
|
1142
1144
|
readonly params: {
|
|
1143
1145
|
readonly id: string;
|
|
1144
|
-
readonly reason: "
|
|
1146
|
+
readonly reason: "content-filter" | "length" | "stop" | "tool-calls";
|
|
1145
1147
|
};
|
|
1148
|
+
} | {
|
|
1146
1149
|
readonly jsonrpc: "2.0";
|
|
1147
1150
|
readonly id?: string | number | null | undefined;
|
|
1148
|
-
} | {
|
|
1149
1151
|
readonly method: "llm.disconnect";
|
|
1150
1152
|
readonly params: {
|
|
1151
1153
|
readonly id: string;
|
|
1152
1154
|
};
|
|
1155
|
+
} | {
|
|
1153
1156
|
readonly jsonrpc: "2.0";
|
|
1154
1157
|
readonly id?: string | number | null | undefined;
|
|
1155
|
-
} | {
|
|
1156
1158
|
readonly method: "tool.attach";
|
|
1157
1159
|
readonly params: {
|
|
1158
1160
|
readonly tools: readonly {
|
|
1159
|
-
readonly description: string;
|
|
1160
1161
|
readonly name: string;
|
|
1162
|
+
readonly description: string;
|
|
1161
1163
|
readonly inputSchema: {
|
|
1162
1164
|
readonly [x: string]: Schema.Json;
|
|
1163
1165
|
};
|
|
1164
|
-
readonly options?: {
|
|
1165
|
-
readonly codemode?: boolean | undefined;
|
|
1166
|
-
readonly namespace?: string | undefined;
|
|
1167
|
-
} | undefined;
|
|
1168
|
-
readonly permission?: string | undefined;
|
|
1169
1166
|
readonly outputSchema?: {
|
|
1170
1167
|
readonly [x: string]: Schema.Json;
|
|
1171
1168
|
} | undefined;
|
|
1169
|
+
readonly permission?: string | undefined;
|
|
1170
|
+
readonly options?: {
|
|
1171
|
+
readonly namespace?: string | undefined;
|
|
1172
|
+
readonly codemode?: boolean | undefined;
|
|
1173
|
+
} | undefined;
|
|
1172
1174
|
}[];
|
|
1173
1175
|
};
|
|
1176
|
+
} | {
|
|
1174
1177
|
readonly jsonrpc: "2.0";
|
|
1175
1178
|
readonly id?: string | number | null | undefined;
|
|
1176
|
-
} | {
|
|
1177
1179
|
readonly method: "tool.update";
|
|
1178
1180
|
readonly params: {
|
|
1179
1181
|
readonly id: string;
|
|
@@ -1182,9 +1184,9 @@ export declare namespace Backend {
|
|
|
1182
1184
|
readonly [x: string]: Schema.Json;
|
|
1183
1185
|
};
|
|
1184
1186
|
};
|
|
1187
|
+
} | {
|
|
1185
1188
|
readonly jsonrpc: "2.0";
|
|
1186
1189
|
readonly id?: string | number | null | undefined;
|
|
1187
|
-
} | {
|
|
1188
1190
|
readonly method: "tool.finish";
|
|
1189
1191
|
readonly params: {
|
|
1190
1192
|
readonly id: string;
|
|
@@ -1194,43 +1196,43 @@ export declare namespace Backend {
|
|
|
1194
1196
|
readonly type: "text";
|
|
1195
1197
|
readonly text: string;
|
|
1196
1198
|
} | {
|
|
1197
|
-
readonly data: string;
|
|
1198
1199
|
readonly type: "file";
|
|
1200
|
+
readonly data: string;
|
|
1199
1201
|
readonly mime: string;
|
|
1200
1202
|
readonly name?: string | undefined;
|
|
1201
1203
|
})[];
|
|
1202
1204
|
};
|
|
1203
1205
|
};
|
|
1206
|
+
} | {
|
|
1204
1207
|
readonly jsonrpc: "2.0";
|
|
1205
1208
|
readonly id?: string | number | null | undefined;
|
|
1206
|
-
} | {
|
|
1207
1209
|
readonly method: "tool.fail";
|
|
1208
1210
|
readonly params: {
|
|
1209
1211
|
readonly id: string;
|
|
1210
1212
|
readonly message: string;
|
|
1211
1213
|
};
|
|
1212
|
-
readonly jsonrpc: "2.0";
|
|
1213
|
-
readonly id?: string | number | null | undefined;
|
|
1214
1214
|
} | {
|
|
1215
|
-
readonly method: "llm.attach" | "llm.pending";
|
|
1216
1215
|
readonly jsonrpc: "2.0";
|
|
1217
1216
|
readonly id?: string | number | null | undefined;
|
|
1217
|
+
readonly method: "llm.attach" | "llm.pending";
|
|
1218
1218
|
};
|
|
1219
1219
|
const decodeRequestEffect: (input: unknown, options?: import("effect/SchemaAST").ParseOptions) => Effect.Effect<{
|
|
1220
|
+
readonly jsonrpc: "2.0";
|
|
1221
|
+
readonly id?: string | number | null | undefined;
|
|
1220
1222
|
readonly method: "simulation.handshake";
|
|
1221
1223
|
readonly params: {
|
|
1222
1224
|
readonly client: {
|
|
1223
1225
|
readonly name: string;
|
|
1224
1226
|
readonly version: string;
|
|
1225
1227
|
};
|
|
1226
|
-
readonly expectedRole: "
|
|
1228
|
+
readonly expectedRole: "backend" | "ui";
|
|
1227
1229
|
readonly offeredVersions: readonly number[];
|
|
1228
1230
|
readonly requiredCapabilities: readonly string[];
|
|
1229
1231
|
readonly optionalCapabilities: readonly string[];
|
|
1230
1232
|
};
|
|
1233
|
+
} | {
|
|
1231
1234
|
readonly jsonrpc: "2.0";
|
|
1232
1235
|
readonly id?: string | number | null | undefined;
|
|
1233
|
-
} | {
|
|
1234
1236
|
readonly method: "llm.chunk";
|
|
1235
1237
|
readonly params: {
|
|
1236
1238
|
readonly id: string;
|
|
@@ -1260,45 +1262,45 @@ export declare namespace Backend {
|
|
|
1260
1262
|
readonly chunk: Schema.Json;
|
|
1261
1263
|
})[];
|
|
1262
1264
|
};
|
|
1265
|
+
} | {
|
|
1263
1266
|
readonly jsonrpc: "2.0";
|
|
1264
1267
|
readonly id?: string | number | null | undefined;
|
|
1265
|
-
} | {
|
|
1266
1268
|
readonly method: "llm.finish";
|
|
1267
1269
|
readonly params: {
|
|
1268
1270
|
readonly id: string;
|
|
1269
|
-
readonly reason: "
|
|
1271
|
+
readonly reason: "content-filter" | "length" | "stop" | "tool-calls";
|
|
1270
1272
|
};
|
|
1273
|
+
} | {
|
|
1271
1274
|
readonly jsonrpc: "2.0";
|
|
1272
1275
|
readonly id?: string | number | null | undefined;
|
|
1273
|
-
} | {
|
|
1274
1276
|
readonly method: "llm.disconnect";
|
|
1275
1277
|
readonly params: {
|
|
1276
1278
|
readonly id: string;
|
|
1277
1279
|
};
|
|
1280
|
+
} | {
|
|
1278
1281
|
readonly jsonrpc: "2.0";
|
|
1279
1282
|
readonly id?: string | number | null | undefined;
|
|
1280
|
-
} | {
|
|
1281
1283
|
readonly method: "tool.attach";
|
|
1282
1284
|
readonly params: {
|
|
1283
1285
|
readonly tools: readonly {
|
|
1284
|
-
readonly description: string;
|
|
1285
1286
|
readonly name: string;
|
|
1287
|
+
readonly description: string;
|
|
1286
1288
|
readonly inputSchema: {
|
|
1287
1289
|
readonly [x: string]: Schema.Json;
|
|
1288
1290
|
};
|
|
1289
|
-
readonly options?: {
|
|
1290
|
-
readonly codemode?: boolean | undefined;
|
|
1291
|
-
readonly namespace?: string | undefined;
|
|
1292
|
-
} | undefined;
|
|
1293
|
-
readonly permission?: string | undefined;
|
|
1294
1291
|
readonly outputSchema?: {
|
|
1295
1292
|
readonly [x: string]: Schema.Json;
|
|
1296
1293
|
} | undefined;
|
|
1294
|
+
readonly permission?: string | undefined;
|
|
1295
|
+
readonly options?: {
|
|
1296
|
+
readonly namespace?: string | undefined;
|
|
1297
|
+
readonly codemode?: boolean | undefined;
|
|
1298
|
+
} | undefined;
|
|
1297
1299
|
}[];
|
|
1298
1300
|
};
|
|
1301
|
+
} | {
|
|
1299
1302
|
readonly jsonrpc: "2.0";
|
|
1300
1303
|
readonly id?: string | number | null | undefined;
|
|
1301
|
-
} | {
|
|
1302
1304
|
readonly method: "tool.update";
|
|
1303
1305
|
readonly params: {
|
|
1304
1306
|
readonly id: string;
|
|
@@ -1307,9 +1309,9 @@ export declare namespace Backend {
|
|
|
1307
1309
|
readonly [x: string]: Schema.Json;
|
|
1308
1310
|
};
|
|
1309
1311
|
};
|
|
1312
|
+
} | {
|
|
1310
1313
|
readonly jsonrpc: "2.0";
|
|
1311
1314
|
readonly id?: string | number | null | undefined;
|
|
1312
|
-
} | {
|
|
1313
1315
|
readonly method: "tool.finish";
|
|
1314
1316
|
readonly params: {
|
|
1315
1317
|
readonly id: string;
|
|
@@ -1319,27 +1321,25 @@ export declare namespace Backend {
|
|
|
1319
1321
|
readonly type: "text";
|
|
1320
1322
|
readonly text: string;
|
|
1321
1323
|
} | {
|
|
1322
|
-
readonly data: string;
|
|
1323
1324
|
readonly type: "file";
|
|
1325
|
+
readonly data: string;
|
|
1324
1326
|
readonly mime: string;
|
|
1325
1327
|
readonly name?: string | undefined;
|
|
1326
1328
|
})[];
|
|
1327
1329
|
};
|
|
1328
1330
|
};
|
|
1331
|
+
} | {
|
|
1329
1332
|
readonly jsonrpc: "2.0";
|
|
1330
1333
|
readonly id?: string | number | null | undefined;
|
|
1331
|
-
} | {
|
|
1332
1334
|
readonly method: "tool.fail";
|
|
1333
1335
|
readonly params: {
|
|
1334
1336
|
readonly id: string;
|
|
1335
1337
|
readonly message: string;
|
|
1336
1338
|
};
|
|
1337
|
-
readonly jsonrpc: "2.0";
|
|
1338
|
-
readonly id?: string | number | null | undefined;
|
|
1339
1339
|
} | {
|
|
1340
|
-
readonly method: "llm.attach" | "llm.pending";
|
|
1341
1340
|
readonly jsonrpc: "2.0";
|
|
1342
1341
|
readonly id?: string | number | null | undefined;
|
|
1342
|
+
readonly method: "llm.attach" | "llm.pending";
|
|
1343
1343
|
}, Schema.SchemaError, never>;
|
|
1344
1344
|
const ProviderInvocation: Schema.Struct<{
|
|
1345
1345
|
readonly id: Schema.String;
|
|
@@ -1474,7 +1474,9 @@ export declare const UiRpcs: RpcGroup.RpcGroup<Rpc.Rpc<"simulation.handshake", S
|
|
|
1474
1474
|
readonly version: Schema.NonEmptyString;
|
|
1475
1475
|
}>;
|
|
1476
1476
|
readonly capabilities: Schema.$Array<Schema.NonEmptyString>;
|
|
1477
|
-
}>, typeof SimulationRequestError, never, never> | Rpc.Rpc<"ui.
|
|
1477
|
+
}>, typeof SimulationRequestError, never, never> | Rpc.Rpc<"ui.arrow", Schema.Struct<{
|
|
1478
|
+
readonly direction: Schema.Literals<readonly ["up", "down", "left", "right"]>;
|
|
1479
|
+
}>, Schema.Struct<{
|
|
1478
1480
|
readonly focused: Schema.Struct<{
|
|
1479
1481
|
readonly renderable: Schema.optional<Schema.Number>;
|
|
1480
1482
|
readonly editor: Schema.Boolean;
|
|
@@ -1491,20 +1493,6 @@ export declare const UiRpcs: RpcGroup.RpcGroup<Rpc.Rpc<"simulation.handshake", S
|
|
|
1491
1493
|
readonly clickable: Schema.Boolean;
|
|
1492
1494
|
readonly editor: Schema.Boolean;
|
|
1493
1495
|
}>>;
|
|
1494
|
-
}>, typeof SimulationRequestError, never, never> | Rpc.Rpc<"ui.snapshot", Schema.Void, Schema.Struct<{
|
|
1495
|
-
readonly format: Schema.Literal<"opencode-ui-snapshot-v1">;
|
|
1496
|
-
readonly nodes: Schema.$Array<Schema.Struct<{
|
|
1497
|
-
readonly id: Schema.NonEmptyString;
|
|
1498
|
-
readonly instance: Schema.optionalKey<Schema.NonEmptyString>;
|
|
1499
|
-
readonly parent: Schema.optionalKey<Schema.NonEmptyString>;
|
|
1500
|
-
readonly role: Schema.NonEmptyString;
|
|
1501
|
-
readonly label: Schema.optionalKey<Schema.NonEmptyString>;
|
|
1502
|
-
readonly element: Schema.Number;
|
|
1503
|
-
readonly focused: Schema.optionalKey<Schema.Boolean>;
|
|
1504
|
-
readonly selected: Schema.optionalKey<Schema.Boolean>;
|
|
1505
|
-
readonly expanded: Schema.optionalKey<Schema.Boolean>;
|
|
1506
|
-
readonly disabled: Schema.optionalKey<Schema.Boolean>;
|
|
1507
|
-
}>>;
|
|
1508
1496
|
}>, typeof SimulationRequestError, never, never> | Rpc.Rpc<"ui.capture", Schema.Void, Schema.Struct<{
|
|
1509
1497
|
readonly cols: Schema.Number;
|
|
1510
1498
|
readonly rows: Schema.Number;
|
|
@@ -1527,10 +1515,15 @@ export declare const UiRpcs: RpcGroup.RpcGroup<Rpc.Rpc<"simulation.handshake", S
|
|
|
1527
1515
|
readonly pixelHeight: Schema.Number;
|
|
1528
1516
|
readonly rgba: Schema.String;
|
|
1529
1517
|
}>>>;
|
|
1530
|
-
}>, typeof SimulationRequestError, never, never> | Rpc.Rpc<"ui.
|
|
1531
|
-
readonly
|
|
1532
|
-
|
|
1533
|
-
readonly
|
|
1518
|
+
}>, typeof SimulationRequestError, never, never> | Rpc.Rpc<"ui.click", Schema.Struct<{
|
|
1519
|
+
readonly target: Schema.Number;
|
|
1520
|
+
readonly x: Schema.Number;
|
|
1521
|
+
readonly y: Schema.Number;
|
|
1522
|
+
readonly semantic: Schema.optionalKey<Schema.Struct<{
|
|
1523
|
+
readonly id: Schema.NonEmptyString;
|
|
1524
|
+
readonly instance: Schema.optionalKey<Schema.NonEmptyString>;
|
|
1525
|
+
readonly element: Schema.Number;
|
|
1526
|
+
}>>;
|
|
1534
1527
|
}>, Schema.Struct<{
|
|
1535
1528
|
readonly focused: Schema.Struct<{
|
|
1536
1529
|
readonly renderable: Schema.optional<Schema.Number>;
|
|
@@ -1548,16 +1541,7 @@ export declare const UiRpcs: RpcGroup.RpcGroup<Rpc.Rpc<"simulation.handshake", S
|
|
|
1548
1541
|
readonly clickable: Schema.Boolean;
|
|
1549
1542
|
readonly editor: Schema.Boolean;
|
|
1550
1543
|
}>>;
|
|
1551
|
-
}>, typeof SimulationRequestError, never, never> | Rpc.Rpc<"ui.
|
|
1552
|
-
readonly key: Schema.String;
|
|
1553
|
-
readonly modifiers: Schema.optional<Schema.Struct<{
|
|
1554
|
-
readonly ctrl: Schema.optional<Schema.Boolean>;
|
|
1555
|
-
readonly shift: Schema.optional<Schema.Boolean>;
|
|
1556
|
-
readonly meta: Schema.optional<Schema.Boolean>;
|
|
1557
|
-
readonly super: Schema.optional<Schema.Boolean>;
|
|
1558
|
-
readonly hyper: Schema.optional<Schema.Boolean>;
|
|
1559
|
-
}>>;
|
|
1560
|
-
}>, Schema.Struct<{
|
|
1544
|
+
}>, typeof SimulationRequestError, never, never> | Rpc.Rpc<"ui.enter", Schema.Void, Schema.Struct<{
|
|
1561
1545
|
readonly focused: Schema.Struct<{
|
|
1562
1546
|
readonly renderable: Schema.optional<Schema.Number>;
|
|
1563
1547
|
readonly editor: Schema.Boolean;
|
|
@@ -1574,7 +1558,9 @@ export declare const UiRpcs: RpcGroup.RpcGroup<Rpc.Rpc<"simulation.handshake", S
|
|
|
1574
1558
|
readonly clickable: Schema.Boolean;
|
|
1575
1559
|
readonly editor: Schema.Boolean;
|
|
1576
1560
|
}>>;
|
|
1577
|
-
}>, typeof SimulationRequestError, never, never> | Rpc.Rpc<"ui.
|
|
1561
|
+
}>, typeof SimulationRequestError, never, never> | Rpc.Rpc<"ui.focus", Schema.Struct<{
|
|
1562
|
+
readonly target: Schema.Number;
|
|
1563
|
+
}>, Schema.Struct<{
|
|
1578
1564
|
readonly focused: Schema.Struct<{
|
|
1579
1565
|
readonly renderable: Schema.optional<Schema.Number>;
|
|
1580
1566
|
readonly editor: Schema.Boolean;
|
|
@@ -1591,9 +1577,38 @@ export declare const UiRpcs: RpcGroup.RpcGroup<Rpc.Rpc<"simulation.handshake", S
|
|
|
1591
1577
|
readonly clickable: Schema.Boolean;
|
|
1592
1578
|
readonly editor: Schema.Boolean;
|
|
1593
1579
|
}>>;
|
|
1594
|
-
}>, typeof SimulationRequestError, never, never> | Rpc.Rpc<"ui.
|
|
1595
|
-
readonly
|
|
1580
|
+
}>, typeof SimulationRequestError, never, never> | Rpc.Rpc<"ui.matches", Schema.Struct<{
|
|
1581
|
+
readonly text: Schema.String;
|
|
1582
|
+
}>, Schema.Boolean, typeof SimulationRequestError, never, never> | Rpc.Rpc<"ui.mouse", Schema.Union<readonly [Schema.Struct<{
|
|
1583
|
+
readonly x: Schema.Int;
|
|
1584
|
+
readonly y: Schema.Int;
|
|
1585
|
+
readonly modifiers: Schema.optionalKey<Schema.Struct<{
|
|
1586
|
+
readonly shift: Schema.optionalKey<Schema.Boolean>;
|
|
1587
|
+
readonly alt: Schema.optionalKey<Schema.Boolean>;
|
|
1588
|
+
readonly ctrl: Schema.optionalKey<Schema.Boolean>;
|
|
1589
|
+
}>>;
|
|
1590
|
+
readonly action: Schema.Literal<"move">;
|
|
1596
1591
|
}>, Schema.Struct<{
|
|
1592
|
+
readonly x: Schema.Int;
|
|
1593
|
+
readonly y: Schema.Int;
|
|
1594
|
+
readonly modifiers: Schema.optionalKey<Schema.Struct<{
|
|
1595
|
+
readonly shift: Schema.optionalKey<Schema.Boolean>;
|
|
1596
|
+
readonly alt: Schema.optionalKey<Schema.Boolean>;
|
|
1597
|
+
readonly ctrl: Schema.optionalKey<Schema.Boolean>;
|
|
1598
|
+
}>>;
|
|
1599
|
+
readonly action: Schema.Literals<readonly ["down", "up"]>;
|
|
1600
|
+
readonly button: Schema.optionalKey<Schema.Literals<readonly ["left", "middle", "right"]>>;
|
|
1601
|
+
}>, Schema.Struct<{
|
|
1602
|
+
readonly x: Schema.Int;
|
|
1603
|
+
readonly y: Schema.Int;
|
|
1604
|
+
readonly modifiers: Schema.optionalKey<Schema.Struct<{
|
|
1605
|
+
readonly shift: Schema.optionalKey<Schema.Boolean>;
|
|
1606
|
+
readonly alt: Schema.optionalKey<Schema.Boolean>;
|
|
1607
|
+
readonly ctrl: Schema.optionalKey<Schema.Boolean>;
|
|
1608
|
+
}>>;
|
|
1609
|
+
readonly action: Schema.Literal<"scroll">;
|
|
1610
|
+
readonly direction: Schema.Literals<readonly ["up", "down", "left", "right"]>;
|
|
1611
|
+
}>]>, Schema.Struct<{
|
|
1597
1612
|
readonly focused: Schema.Struct<{
|
|
1598
1613
|
readonly renderable: Schema.optional<Schema.Number>;
|
|
1599
1614
|
readonly editor: Schema.Boolean;
|
|
@@ -1610,8 +1625,15 @@ export declare const UiRpcs: RpcGroup.RpcGroup<Rpc.Rpc<"simulation.handshake", S
|
|
|
1610
1625
|
readonly clickable: Schema.Boolean;
|
|
1611
1626
|
readonly editor: Schema.Boolean;
|
|
1612
1627
|
}>>;
|
|
1613
|
-
}>, typeof SimulationRequestError, never, never> | Rpc.Rpc<"ui.
|
|
1614
|
-
readonly
|
|
1628
|
+
}>, typeof SimulationRequestError, never, never> | Rpc.Rpc<"ui.press", Schema.Struct<{
|
|
1629
|
+
readonly key: Schema.String;
|
|
1630
|
+
readonly modifiers: Schema.optional<Schema.Struct<{
|
|
1631
|
+
readonly ctrl: Schema.optional<Schema.Boolean>;
|
|
1632
|
+
readonly shift: Schema.optional<Schema.Boolean>;
|
|
1633
|
+
readonly meta: Schema.optional<Schema.Boolean>;
|
|
1634
|
+
readonly super: Schema.optional<Schema.Boolean>;
|
|
1635
|
+
readonly hyper: Schema.optional<Schema.Boolean>;
|
|
1636
|
+
}>>;
|
|
1615
1637
|
}>, Schema.Struct<{
|
|
1616
1638
|
readonly focused: Schema.Struct<{
|
|
1617
1639
|
readonly renderable: Schema.optional<Schema.Number>;
|
|
@@ -1629,15 +1651,9 @@ export declare const UiRpcs: RpcGroup.RpcGroup<Rpc.Rpc<"simulation.handshake", S
|
|
|
1629
1651
|
readonly clickable: Schema.Boolean;
|
|
1630
1652
|
readonly editor: Schema.Boolean;
|
|
1631
1653
|
}>>;
|
|
1632
|
-
}>, typeof SimulationRequestError, never, never> | Rpc.Rpc<"ui.
|
|
1633
|
-
readonly
|
|
1634
|
-
readonly
|
|
1635
|
-
readonly y: Schema.Number;
|
|
1636
|
-
readonly semantic: Schema.optionalKey<Schema.Struct<{
|
|
1637
|
-
readonly id: Schema.NonEmptyString;
|
|
1638
|
-
readonly instance: Schema.optionalKey<Schema.NonEmptyString>;
|
|
1639
|
-
readonly element: Schema.Number;
|
|
1640
|
-
}>>;
|
|
1654
|
+
}>, typeof SimulationRequestError, never, never> | Rpc.Rpc<"ui.recording.finish", Schema.Void, Schema.String, typeof SimulationRequestError, never, never> | Rpc.Rpc<"ui.resize", Schema.Struct<{
|
|
1655
|
+
readonly cols: Schema.Number;
|
|
1656
|
+
readonly rows: Schema.Number;
|
|
1641
1657
|
}>, Schema.Struct<{
|
|
1642
1658
|
readonly focused: Schema.Struct<{
|
|
1643
1659
|
readonly renderable: Schema.optional<Schema.Number>;
|
|
@@ -1655,36 +1671,21 @@ export declare const UiRpcs: RpcGroup.RpcGroup<Rpc.Rpc<"simulation.handshake", S
|
|
|
1655
1671
|
readonly clickable: Schema.Boolean;
|
|
1656
1672
|
readonly editor: Schema.Boolean;
|
|
1657
1673
|
}>>;
|
|
1658
|
-
}>, typeof SimulationRequestError, never, never> | Rpc.Rpc<"ui.
|
|
1659
|
-
readonly
|
|
1660
|
-
readonly
|
|
1661
|
-
|
|
1662
|
-
|
|
1663
|
-
readonly
|
|
1664
|
-
readonly
|
|
1665
|
-
readonly
|
|
1666
|
-
|
|
1667
|
-
|
|
1668
|
-
|
|
1669
|
-
|
|
1670
|
-
|
|
1671
|
-
readonly y: Schema.Int;
|
|
1672
|
-
readonly modifiers: Schema.optionalKey<Schema.Struct<{
|
|
1673
|
-
readonly shift: Schema.optionalKey<Schema.Boolean>;
|
|
1674
|
-
readonly alt: Schema.optionalKey<Schema.Boolean>;
|
|
1675
|
-
readonly ctrl: Schema.optionalKey<Schema.Boolean>;
|
|
1676
|
-
}>>;
|
|
1677
|
-
}>, Schema.Struct<{
|
|
1678
|
-
readonly action: Schema.Literal<"scroll">;
|
|
1679
|
-
readonly direction: Schema.Literals<readonly ["up", "down", "left", "right"]>;
|
|
1680
|
-
readonly x: Schema.Int;
|
|
1681
|
-
readonly y: Schema.Int;
|
|
1682
|
-
readonly modifiers: Schema.optionalKey<Schema.Struct<{
|
|
1683
|
-
readonly shift: Schema.optionalKey<Schema.Boolean>;
|
|
1684
|
-
readonly alt: Schema.optionalKey<Schema.Boolean>;
|
|
1685
|
-
readonly ctrl: Schema.optionalKey<Schema.Boolean>;
|
|
1674
|
+
}>, typeof SimulationRequestError, never, never> | Rpc.Rpc<"ui.snapshot", Schema.Void, Schema.Struct<{
|
|
1675
|
+
readonly format: Schema.Literal<"opencode-ui-snapshot-v1">;
|
|
1676
|
+
readonly nodes: Schema.$Array<Schema.Struct<{
|
|
1677
|
+
readonly id: Schema.NonEmptyString;
|
|
1678
|
+
readonly instance: Schema.optionalKey<Schema.NonEmptyString>;
|
|
1679
|
+
readonly parent: Schema.optionalKey<Schema.NonEmptyString>;
|
|
1680
|
+
readonly role: Schema.NonEmptyString;
|
|
1681
|
+
readonly label: Schema.optionalKey<Schema.NonEmptyString>;
|
|
1682
|
+
readonly element: Schema.Number;
|
|
1683
|
+
readonly focused: Schema.optionalKey<Schema.Boolean>;
|
|
1684
|
+
readonly selected: Schema.optionalKey<Schema.Boolean>;
|
|
1685
|
+
readonly expanded: Schema.optionalKey<Schema.Boolean>;
|
|
1686
|
+
readonly disabled: Schema.optionalKey<Schema.Boolean>;
|
|
1686
1687
|
}>>;
|
|
1687
|
-
}
|
|
1688
|
+
}>, typeof SimulationRequestError, never, never> | Rpc.Rpc<"ui.state", Schema.Void, Schema.Struct<{
|
|
1688
1689
|
readonly focused: Schema.Struct<{
|
|
1689
1690
|
readonly renderable: Schema.optional<Schema.Number>;
|
|
1690
1691
|
readonly editor: Schema.Boolean;
|
|
@@ -1701,9 +1702,8 @@ export declare const UiRpcs: RpcGroup.RpcGroup<Rpc.Rpc<"simulation.handshake", S
|
|
|
1701
1702
|
readonly clickable: Schema.Boolean;
|
|
1702
1703
|
readonly editor: Schema.Boolean;
|
|
1703
1704
|
}>>;
|
|
1704
|
-
}>, typeof SimulationRequestError, never, never> | Rpc.Rpc<"ui.
|
|
1705
|
-
readonly
|
|
1706
|
-
readonly rows: Schema.Number;
|
|
1705
|
+
}>, typeof SimulationRequestError, never, never> | Rpc.Rpc<"ui.type", Schema.Struct<{
|
|
1706
|
+
readonly text: Schema.String;
|
|
1707
1707
|
}>, Schema.Struct<{
|
|
1708
1708
|
readonly focused: Schema.Struct<{
|
|
1709
1709
|
readonly renderable: Schema.optional<Schema.Number>;
|
|
@@ -1722,31 +1722,8 @@ export declare const UiRpcs: RpcGroup.RpcGroup<Rpc.Rpc<"simulation.handshake", S
|
|
|
1722
1722
|
readonly editor: Schema.Boolean;
|
|
1723
1723
|
}>>;
|
|
1724
1724
|
}>, typeof SimulationRequestError, never, never>>;
|
|
1725
|
-
export declare const BackendRpcs: RpcGroup.RpcGroup<Rpc.Rpc<"
|
|
1726
|
-
readonly client: Schema.Struct<{
|
|
1727
|
-
readonly name: Schema.NonEmptyString;
|
|
1728
|
-
readonly version: Schema.NonEmptyString;
|
|
1729
|
-
}>;
|
|
1730
|
-
readonly expectedRole: Schema.Literals<readonly ["ui", "backend"]>;
|
|
1731
|
-
readonly offeredVersions: Schema.$Array<Schema.Int>;
|
|
1732
|
-
readonly requiredCapabilities: Schema.$Array<Schema.NonEmptyString>;
|
|
1733
|
-
readonly optionalCapabilities: Schema.$Array<Schema.NonEmptyString>;
|
|
1734
|
-
}>, Schema.Struct<{
|
|
1735
|
-
readonly protocolVersion: Schema.Literal<1>;
|
|
1736
|
-
readonly role: Schema.Literals<readonly ["ui", "backend"]>;
|
|
1737
|
-
readonly server: Schema.Struct<{
|
|
1738
|
-
readonly name: Schema.NonEmptyString;
|
|
1739
|
-
readonly version: Schema.NonEmptyString;
|
|
1740
|
-
}>;
|
|
1741
|
-
readonly capabilities: Schema.$Array<Schema.NonEmptyString>;
|
|
1742
|
-
}>, typeof SimulationRequestError, never, never> | Rpc.Rpc<"llm.attach", Schema.Void, Schema.Struct<{
|
|
1725
|
+
export declare const BackendRpcs: RpcGroup.RpcGroup<Rpc.Rpc<"llm.attach", Schema.Void, Schema.Struct<{
|
|
1743
1726
|
readonly attached: Schema.Literal<true>;
|
|
1744
|
-
}>, typeof SimulationRequestError, never, never> | Rpc.Rpc<"llm.pending", Schema.Void, Schema.Struct<{
|
|
1745
|
-
readonly invocations: Schema.$Array<Schema.Struct<{
|
|
1746
|
-
readonly id: Schema.String;
|
|
1747
|
-
readonly url: Schema.String;
|
|
1748
|
-
readonly body: Schema.Codec<Schema.Json, Schema.Json, never, never>;
|
|
1749
|
-
}>>;
|
|
1750
1727
|
}>, typeof SimulationRequestError, never, never> | Rpc.Rpc<"llm.chunk", Schema.Struct<{
|
|
1751
1728
|
readonly id: Schema.String;
|
|
1752
1729
|
readonly items: Schema.$Array<Schema.Union<readonly [Schema.Struct<{
|
|
@@ -1776,15 +1753,38 @@ export declare const BackendRpcs: RpcGroup.RpcGroup<Rpc.Rpc<"simulation.handshak
|
|
|
1776
1753
|
}>]>>;
|
|
1777
1754
|
}>, Schema.Struct<{
|
|
1778
1755
|
readonly ok: Schema.Literal<true>;
|
|
1779
|
-
}>, typeof SimulationRequestError, never, never> | Rpc.Rpc<"llm.
|
|
1756
|
+
}>, typeof SimulationRequestError, never, never> | Rpc.Rpc<"llm.disconnect", Schema.Struct<{
|
|
1780
1757
|
readonly id: Schema.String;
|
|
1781
|
-
readonly reason: Schema.optionalKey<Schema.Literals<readonly ["stop", "tool-calls", "length", "content-filter"]>>;
|
|
1782
1758
|
}>, Schema.Struct<{
|
|
1783
1759
|
readonly ok: Schema.Literal<true>;
|
|
1784
|
-
}>, typeof SimulationRequestError, never, never> | Rpc.Rpc<"llm.
|
|
1760
|
+
}>, typeof SimulationRequestError, never, never> | Rpc.Rpc<"llm.finish", Schema.Struct<{
|
|
1785
1761
|
readonly id: Schema.String;
|
|
1762
|
+
readonly reason: Schema.optionalKey<Schema.Literals<readonly ["stop", "tool-calls", "length", "content-filter"]>>;
|
|
1786
1763
|
}>, Schema.Struct<{
|
|
1787
1764
|
readonly ok: Schema.Literal<true>;
|
|
1765
|
+
}>, typeof SimulationRequestError, never, never> | Rpc.Rpc<"llm.pending", Schema.Void, Schema.Struct<{
|
|
1766
|
+
readonly invocations: Schema.$Array<Schema.Struct<{
|
|
1767
|
+
readonly id: Schema.String;
|
|
1768
|
+
readonly url: Schema.String;
|
|
1769
|
+
readonly body: Schema.Codec<Schema.Json, Schema.Json, never, never>;
|
|
1770
|
+
}>>;
|
|
1771
|
+
}>, typeof SimulationRequestError, never, never> | Rpc.Rpc<"simulation.handshake", Schema.Struct<{
|
|
1772
|
+
readonly client: Schema.Struct<{
|
|
1773
|
+
readonly name: Schema.NonEmptyString;
|
|
1774
|
+
readonly version: Schema.NonEmptyString;
|
|
1775
|
+
}>;
|
|
1776
|
+
readonly expectedRole: Schema.Literals<readonly ["ui", "backend"]>;
|
|
1777
|
+
readonly offeredVersions: Schema.$Array<Schema.Int>;
|
|
1778
|
+
readonly requiredCapabilities: Schema.$Array<Schema.NonEmptyString>;
|
|
1779
|
+
readonly optionalCapabilities: Schema.$Array<Schema.NonEmptyString>;
|
|
1780
|
+
}>, Schema.Struct<{
|
|
1781
|
+
readonly protocolVersion: Schema.Literal<1>;
|
|
1782
|
+
readonly role: Schema.Literals<readonly ["ui", "backend"]>;
|
|
1783
|
+
readonly server: Schema.Struct<{
|
|
1784
|
+
readonly name: Schema.NonEmptyString;
|
|
1785
|
+
readonly version: Schema.NonEmptyString;
|
|
1786
|
+
}>;
|
|
1787
|
+
readonly capabilities: Schema.$Array<Schema.NonEmptyString>;
|
|
1788
1788
|
}>, typeof SimulationRequestError, never, never> | Rpc.Rpc<"tool.attach", Schema.Struct<{
|
|
1789
1789
|
readonly tools: Schema.$Array<Schema.Struct<{
|
|
1790
1790
|
readonly name: Schema.NonEmptyString;
|
|
@@ -1799,10 +1799,9 @@ export declare const BackendRpcs: RpcGroup.RpcGroup<Rpc.Rpc<"simulation.handshak
|
|
|
1799
1799
|
}>>;
|
|
1800
1800
|
}>, Schema.Struct<{
|
|
1801
1801
|
readonly attached: Schema.Literal<true>;
|
|
1802
|
-
}>, typeof SimulationRequestError, never, never> | Rpc.Rpc<"tool.
|
|
1802
|
+
}>, typeof SimulationRequestError, never, never> | Rpc.Rpc<"tool.fail", Schema.Struct<{
|
|
1803
1803
|
readonly id: Schema.String;
|
|
1804
|
-
readonly
|
|
1805
|
-
readonly update: Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>;
|
|
1804
|
+
readonly message: Schema.String;
|
|
1806
1805
|
}>, Schema.Struct<{
|
|
1807
1806
|
readonly ok: Schema.Literal<true>;
|
|
1808
1807
|
}>, typeof SimulationRequestError, never, never> | Rpc.Rpc<"tool.finish", Schema.Struct<{
|
|
@@ -1821,9 +1820,10 @@ export declare const BackendRpcs: RpcGroup.RpcGroup<Rpc.Rpc<"simulation.handshak
|
|
|
1821
1820
|
}>;
|
|
1822
1821
|
}>, Schema.Struct<{
|
|
1823
1822
|
readonly ok: Schema.Literal<true>;
|
|
1824
|
-
}>, typeof SimulationRequestError, never, never> | Rpc.Rpc<"tool.
|
|
1823
|
+
}>, typeof SimulationRequestError, never, never> | Rpc.Rpc<"tool.update", Schema.Struct<{
|
|
1825
1824
|
readonly id: Schema.String;
|
|
1826
|
-
readonly
|
|
1825
|
+
readonly sequence: Schema.Int;
|
|
1826
|
+
readonly update: Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>;
|
|
1827
1827
|
}>, Schema.Struct<{
|
|
1828
1828
|
readonly ok: Schema.Literal<true>;
|
|
1829
1829
|
}>, typeof SimulationRequestError, never, never>>;
|