@isoplan/protocol 0.4.0 → 0.6.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +2 -1
- package/dist/facts.d.ts +122 -1
- package/dist/facts.js +57 -1
- package/dist/facts.js.map +1 -1
- package/dist/messages.d.ts +811 -1
- package/dist/messages.js +286 -4
- package/dist/messages.js.map +1 -1
- package/package.json +1 -1
package/dist/messages.d.ts
CHANGED
|
@@ -37,6 +37,47 @@ export declare const HandoffSchema: z.ZodObject<{
|
|
|
37
37
|
commit: z.ZodString;
|
|
38
38
|
}, z.core.$strip>>;
|
|
39
39
|
}, z.core.$strip>;
|
|
40
|
+
/** The longest instruction a person may send a driven session, a start's first one included. */
|
|
41
|
+
export declare const MAX_INSTRUCTION_LENGTH = 20000;
|
|
42
|
+
/** The longest agent reply a `driven` reply carries; a longer one is cut to fit and marked `cut`. */
|
|
43
|
+
export declare const MAX_REPLY_LENGTH = 20000;
|
|
44
|
+
/** The longest full output a `driven` output carries; a longer one is cut to fit and marked `cut`. */
|
|
45
|
+
export declare const MAX_OUTPUT_LENGTH = 200000;
|
|
46
|
+
/** The longest summary of what a tool use was for. */
|
|
47
|
+
export declare const MAX_SUMMARY_LENGTH = 500;
|
|
48
|
+
/** The longest description of what a permission prompt asks to do. */
|
|
49
|
+
export declare const MAX_PROMPT_LENGTH = 2000;
|
|
50
|
+
/** The longest error text or refusal detail. */
|
|
51
|
+
export declare const MAX_DETAIL_LENGTH = 1000;
|
|
52
|
+
/** The longest id of a drive request, an instruction, a prompt or a withheld text. */
|
|
53
|
+
export declare const MAX_DRIVE_ID_LENGTH = 100;
|
|
54
|
+
/** The longest driven session id. */
|
|
55
|
+
export declare const MAX_DRIVEN_SESSION_ID_LENGTH = 200;
|
|
56
|
+
/** The longest room id. */
|
|
57
|
+
export declare const MAX_ROOM_ID_LENGTH = 200;
|
|
58
|
+
/** The longest tool name, as Claude Code or an MCP server names it (`mcp__<server>__<tool>`). */
|
|
59
|
+
export declare const MAX_TOOL_NAME_LENGTH = 100;
|
|
60
|
+
/** The longest command a `handed-back` gives to continue the session in a terminal. */
|
|
61
|
+
export declare const MAX_COMMAND_LENGTH = 500;
|
|
62
|
+
/** The longest folder a `handed-back`, a `folders` or a start names. */
|
|
63
|
+
export declare const MAX_FOLDER_LENGTH = 4096;
|
|
64
|
+
/** The most folders a `folders` message lists for one repo. */
|
|
65
|
+
export declare const MAX_REPO_FOLDERS = 5;
|
|
66
|
+
/** The most repos a `folders` message lists. */
|
|
67
|
+
export declare const MAX_FOLDER_REPOS = 100;
|
|
68
|
+
/** The most room sessions a start names. */
|
|
69
|
+
export declare const MAX_ROOM_SESSIONS = 20;
|
|
70
|
+
/** The most driven sessions a `holding` message lists. */
|
|
71
|
+
export declare const MAX_HOLDING = 200;
|
|
72
|
+
/**
|
|
73
|
+
* The permission mode a driven session runs in: Claude Code's `auto`, the default, or
|
|
74
|
+
* `bypassPermissions`, which skips its permission prompts, for a person who opted in, and only in a
|
|
75
|
+
* project whose office allows it (`drive-policy`).
|
|
76
|
+
*/
|
|
77
|
+
export declare const DrivePermissionsSchema: z.ZodEnum<{
|
|
78
|
+
auto: "auto";
|
|
79
|
+
bypassPermissions: "bypassPermissions";
|
|
80
|
+
}>;
|
|
40
81
|
/** The first message on a connection: who is reporting, from where, about which session. */
|
|
41
82
|
export declare const HelloMessageSchema: z.ZodObject<{
|
|
42
83
|
type: z.ZodLiteral<"hello">;
|
|
@@ -63,6 +104,10 @@ export declare const HelloMessageSchema: z.ZodObject<{
|
|
|
63
104
|
* `orca`: Orca's CLI is on this machine, so a handoff can be taken into Orca (mode `orca`).
|
|
64
105
|
* `desktop` (protocol 0.4.0): Claude Code for the terminal, new enough to hand a session to the Claude
|
|
65
106
|
* app, is on this machine, a Mac or Windows x64, so a handoff can be opened in the Claude app (mode `desktop`).
|
|
107
|
+
* `drive` (protocol 0.5.0): this runner drives sessions from the floor: it takes `drive` requests and
|
|
108
|
+
* `drive-policy`, sends `driven` messages, and takes a handoff as a driven session (mode `driven`). The
|
|
109
|
+
* server sends none of these to a runner that didn't say it. A machine with no claude binary still says
|
|
110
|
+
* it, and refuses each start `no-claude`.
|
|
66
111
|
*/
|
|
67
112
|
export declare const RunnerHelloMessageSchema: z.ZodObject<{
|
|
68
113
|
type: z.ZodLiteral<"runner">;
|
|
@@ -77,6 +122,7 @@ export declare const RunnerHelloMessageSchema: z.ZodObject<{
|
|
|
77
122
|
token: z.ZodOptional<z.ZodString>;
|
|
78
123
|
orca: z.ZodOptional<z.ZodBoolean>;
|
|
79
124
|
desktop: z.ZodOptional<z.ZodBoolean>;
|
|
125
|
+
drive: z.ZodOptional<z.ZodBoolean>;
|
|
80
126
|
}, z.core.$strip>;
|
|
81
127
|
/** All of the session's facts. Sent on connect and on repair. */
|
|
82
128
|
export declare const FullMessageSchema: z.ZodObject<{
|
|
@@ -106,6 +152,7 @@ export declare const FullMessageSchema: z.ZodObject<{
|
|
|
106
152
|
off: "off";
|
|
107
153
|
on: "on";
|
|
108
154
|
}>;
|
|
155
|
+
contextWindow: z.ZodOptional<z.ZodNumber>;
|
|
109
156
|
extra: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
110
157
|
}, z.core.$strip>;
|
|
111
158
|
agents: z.ZodArray<z.ZodObject<{
|
|
@@ -170,6 +217,11 @@ export declare const FullMessageSchema: z.ZodObject<{
|
|
|
170
217
|
}>;
|
|
171
218
|
since: z.ZodISODateTime;
|
|
172
219
|
}, z.core.$strip>>>;
|
|
220
|
+
workflow: z.ZodOptional<z.ZodObject<{
|
|
221
|
+
id: z.ZodString;
|
|
222
|
+
phase: z.ZodString;
|
|
223
|
+
label: z.ZodString;
|
|
224
|
+
}, z.core.$strip>>;
|
|
173
225
|
extra: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
174
226
|
}, z.core.$strip>>;
|
|
175
227
|
edits: z.ZodArray<z.ZodObject<{
|
|
@@ -226,6 +278,32 @@ export declare const FullMessageSchema: z.ZodObject<{
|
|
|
226
278
|
withheld: z.ZodOptional<z.ZodLiteral<true>>;
|
|
227
279
|
extra: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
228
280
|
}, z.core.$strip>>>;
|
|
281
|
+
workflows: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
282
|
+
id: z.ZodString;
|
|
283
|
+
session: z.ZodString;
|
|
284
|
+
startedBy: z.ZodString;
|
|
285
|
+
name: z.ZodString;
|
|
286
|
+
description: z.ZodOptional<z.ZodString>;
|
|
287
|
+
phases: z.ZodArray<z.ZodObject<{
|
|
288
|
+
title: z.ZodString;
|
|
289
|
+
detail: z.ZodOptional<z.ZodString>;
|
|
290
|
+
}, z.core.$strip>>;
|
|
291
|
+
status: z.ZodEnum<{
|
|
292
|
+
done: "done";
|
|
293
|
+
failed: "failed";
|
|
294
|
+
idle: "idle";
|
|
295
|
+
running: "running";
|
|
296
|
+
stalled: "stalled";
|
|
297
|
+
stopped: "stopped";
|
|
298
|
+
}>;
|
|
299
|
+
startedAt: z.ZodISODateTime;
|
|
300
|
+
endedAt: z.ZodOptional<z.ZodISODateTime>;
|
|
301
|
+
usage: z.ZodOptional<z.ZodObject<{
|
|
302
|
+
tokens: z.ZodNumber;
|
|
303
|
+
}, z.core.$strip>>;
|
|
304
|
+
moreAgents: z.ZodOptional<z.ZodNumber>;
|
|
305
|
+
extra: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
306
|
+
}, z.core.$strip>>>;
|
|
229
307
|
}, z.core.$strip>;
|
|
230
308
|
}, z.core.$strip>;
|
|
231
309
|
/** What changed since the last message. `seq` goes up by one per message, so a gap shows. */
|
|
@@ -256,6 +334,7 @@ export declare const ChangesMessageSchema: z.ZodObject<{
|
|
|
256
334
|
off: "off";
|
|
257
335
|
on: "on";
|
|
258
336
|
}>;
|
|
337
|
+
contextWindow: z.ZodOptional<z.ZodNumber>;
|
|
259
338
|
extra: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
260
339
|
}, z.core.$strip>>;
|
|
261
340
|
agents: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
@@ -320,6 +399,11 @@ export declare const ChangesMessageSchema: z.ZodObject<{
|
|
|
320
399
|
}>;
|
|
321
400
|
since: z.ZodISODateTime;
|
|
322
401
|
}, z.core.$strip>>>;
|
|
402
|
+
workflow: z.ZodOptional<z.ZodObject<{
|
|
403
|
+
id: z.ZodString;
|
|
404
|
+
phase: z.ZodString;
|
|
405
|
+
label: z.ZodString;
|
|
406
|
+
}, z.core.$strip>>;
|
|
323
407
|
extra: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
324
408
|
}, z.core.$strip>>>;
|
|
325
409
|
edits: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
@@ -376,6 +460,32 @@ export declare const ChangesMessageSchema: z.ZodObject<{
|
|
|
376
460
|
withheld: z.ZodOptional<z.ZodLiteral<true>>;
|
|
377
461
|
extra: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
378
462
|
}, z.core.$strip>>>;
|
|
463
|
+
workflows: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
464
|
+
id: z.ZodString;
|
|
465
|
+
session: z.ZodString;
|
|
466
|
+
startedBy: z.ZodString;
|
|
467
|
+
name: z.ZodString;
|
|
468
|
+
description: z.ZodOptional<z.ZodString>;
|
|
469
|
+
phases: z.ZodArray<z.ZodObject<{
|
|
470
|
+
title: z.ZodString;
|
|
471
|
+
detail: z.ZodOptional<z.ZodString>;
|
|
472
|
+
}, z.core.$strip>>;
|
|
473
|
+
status: z.ZodEnum<{
|
|
474
|
+
done: "done";
|
|
475
|
+
failed: "failed";
|
|
476
|
+
idle: "idle";
|
|
477
|
+
running: "running";
|
|
478
|
+
stalled: "stalled";
|
|
479
|
+
stopped: "stopped";
|
|
480
|
+
}>;
|
|
481
|
+
startedAt: z.ZodISODateTime;
|
|
482
|
+
endedAt: z.ZodOptional<z.ZodISODateTime>;
|
|
483
|
+
usage: z.ZodOptional<z.ZodObject<{
|
|
484
|
+
tokens: z.ZodNumber;
|
|
485
|
+
}, z.core.$strip>>;
|
|
486
|
+
moreAgents: z.ZodOptional<z.ZodNumber>;
|
|
487
|
+
extra: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
488
|
+
}, z.core.$strip>>>;
|
|
379
489
|
}, z.core.$strip>;
|
|
380
490
|
remove: z.ZodObject<{
|
|
381
491
|
agents: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
@@ -405,6 +515,7 @@ export declare const ChangesMessageSchema: z.ZodObject<{
|
|
|
405
515
|
abandoned: "abandoned";
|
|
406
516
|
answered: "answered";
|
|
407
517
|
}>>>;
|
|
518
|
+
workflows: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
408
519
|
}, z.core.$strip>;
|
|
409
520
|
}, z.core.$strip>;
|
|
410
521
|
/** A cap on the answers a machine gives: a room's per hour, the owner's per day, or the owner's tokens per day. */
|
|
@@ -574,6 +685,213 @@ export declare const AskedAckMessageSchema: z.ZodObject<{
|
|
|
574
685
|
v: z.ZodLiteral<1>;
|
|
575
686
|
question: z.ZodString;
|
|
576
687
|
}, z.core.$strip>;
|
|
688
|
+
/**
|
|
689
|
+
* What a runner says of the driven sessions it holds (protocol 0.5.0), sent only by a runner that said
|
|
690
|
+
* `drive`. `started`, `output` (for an output request or a release) and `handed-back` answer a `drive`
|
|
691
|
+
* request by its `id`, and `refused` is sent in place of any answer; the rest are the sessions' own
|
|
692
|
+
* events, in the order they happened. A turn is named by the instruction that started it (`turn`): a
|
|
693
|
+
* start's first instruction by the start's `id`, and a driven take's first turn by the handoff
|
|
694
|
+
* message's `session`, the bare uuid. A driven take is answered by `taken`, as every take is (its
|
|
695
|
+
* failures say why no session opened), and then by `held` with why `started`. A turn that ends with no
|
|
696
|
+
* reply text sends no `reply`.
|
|
697
|
+
*
|
|
698
|
+
* Every `driven` message is live-only: it goes only while the runner's link is up and never waits in
|
|
699
|
+
* the link's reply outbox, so a long turn can't push the replies to the server's requests out of it,
|
|
700
|
+
* and a prompt that has timed out isn't shown again. The runner sends none on a connection until the
|
|
701
|
+
* server's first `drive-policy` on it has come, so a server from before driven sessions, which sends
|
|
702
|
+
* no drive-policy, is never sent one. With that first drive-policy, `holding` says where each session
|
|
703
|
+
* stands, and right after it the runner sends `prompt` again for each prompt still waiting, with the
|
|
704
|
+
* same `prompt` id and `expires`, so one raised while the link was down, or before the server
|
|
705
|
+
* restarted, can still be answered. A later drive-policy on the same connection sends neither again.
|
|
706
|
+
*
|
|
707
|
+
* The runner keeps every field within its limit (the MAX_* constants), cutting what it doesn't pick
|
|
708
|
+
* itself, such as a tool name, to fit: the server refuses a message over any limit and closes the
|
|
709
|
+
* runner's link.
|
|
710
|
+
*
|
|
711
|
+
* Nothing from a session leaves the machine without the runner's secret scan. A reply or output it
|
|
712
|
+
* matched has a `text` that only says so, and `withheld.id` for the owner to release it (drive
|
|
713
|
+
* `release`); a tool summary it matched isn't sent, and a prompt description it matched only says so,
|
|
714
|
+
* both marked `withheld`.
|
|
715
|
+
*/
|
|
716
|
+
export declare const DrivenMessageSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
717
|
+
type: z.ZodLiteral<"driven">;
|
|
718
|
+
v: z.ZodLiteral<1>;
|
|
719
|
+
kind: z.ZodLiteral<"started">;
|
|
720
|
+
id: z.ZodString;
|
|
721
|
+
session: z.ZodString;
|
|
722
|
+
room: z.ZodString;
|
|
723
|
+
permissions: z.ZodEnum<{
|
|
724
|
+
auto: "auto";
|
|
725
|
+
bypassPermissions: "bypassPermissions";
|
|
726
|
+
}>;
|
|
727
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
728
|
+
type: z.ZodLiteral<"driven">;
|
|
729
|
+
v: z.ZodLiteral<1>;
|
|
730
|
+
kind: z.ZodLiteral<"turn-started">;
|
|
731
|
+
session: z.ZodString;
|
|
732
|
+
turn: z.ZodString;
|
|
733
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
734
|
+
type: z.ZodLiteral<"driven">;
|
|
735
|
+
v: z.ZodLiteral<1>;
|
|
736
|
+
kind: z.ZodLiteral<"tool">;
|
|
737
|
+
session: z.ZodString;
|
|
738
|
+
turn: z.ZodString;
|
|
739
|
+
tool: z.ZodString;
|
|
740
|
+
summary: z.ZodOptional<z.ZodString>;
|
|
741
|
+
withheld: z.ZodOptional<z.ZodLiteral<true>>;
|
|
742
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
743
|
+
type: z.ZodLiteral<"driven">;
|
|
744
|
+
v: z.ZodLiteral<1>;
|
|
745
|
+
kind: z.ZodLiteral<"reply">;
|
|
746
|
+
session: z.ZodString;
|
|
747
|
+
turn: z.ZodString;
|
|
748
|
+
text: z.ZodString;
|
|
749
|
+
cut: z.ZodOptional<z.ZodLiteral<true>>;
|
|
750
|
+
withheld: z.ZodOptional<z.ZodObject<{
|
|
751
|
+
id: z.ZodString;
|
|
752
|
+
}, z.core.$strip>>;
|
|
753
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
754
|
+
type: z.ZodLiteral<"driven">;
|
|
755
|
+
v: z.ZodLiteral<1>;
|
|
756
|
+
kind: z.ZodLiteral<"turn-ended">;
|
|
757
|
+
session: z.ZodString;
|
|
758
|
+
turn: z.ZodString;
|
|
759
|
+
outcome: z.ZodEnum<{
|
|
760
|
+
done: "done";
|
|
761
|
+
failed: "failed";
|
|
762
|
+
stopped: "stopped";
|
|
763
|
+
}>;
|
|
764
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
765
|
+
type: z.ZodLiteral<"driven">;
|
|
766
|
+
v: z.ZodLiteral<1>;
|
|
767
|
+
kind: z.ZodLiteral<"error">;
|
|
768
|
+
session: z.ZodString;
|
|
769
|
+
turn: z.ZodOptional<z.ZodString>;
|
|
770
|
+
text: z.ZodString;
|
|
771
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
772
|
+
type: z.ZodLiteral<"driven">;
|
|
773
|
+
v: z.ZodLiteral<1>;
|
|
774
|
+
kind: z.ZodLiteral<"output">;
|
|
775
|
+
id: z.ZodString;
|
|
776
|
+
session: z.ZodString;
|
|
777
|
+
turn: z.ZodOptional<z.ZodString>;
|
|
778
|
+
text: z.ZodString;
|
|
779
|
+
cut: z.ZodOptional<z.ZodLiteral<true>>;
|
|
780
|
+
withheld: z.ZodOptional<z.ZodObject<{
|
|
781
|
+
id: z.ZodString;
|
|
782
|
+
}, z.core.$strip>>;
|
|
783
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
784
|
+
type: z.ZodLiteral<"driven">;
|
|
785
|
+
v: z.ZodLiteral<1>;
|
|
786
|
+
kind: z.ZodLiteral<"prompt">;
|
|
787
|
+
session: z.ZodString;
|
|
788
|
+
turn: z.ZodOptional<z.ZodString>;
|
|
789
|
+
prompt: z.ZodString;
|
|
790
|
+
tool: z.ZodString;
|
|
791
|
+
description: z.ZodString;
|
|
792
|
+
withheld: z.ZodOptional<z.ZodLiteral<true>>;
|
|
793
|
+
expires: z.ZodISODateTime;
|
|
794
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
795
|
+
type: z.ZodLiteral<"driven">;
|
|
796
|
+
v: z.ZodLiteral<1>;
|
|
797
|
+
kind: z.ZodLiteral<"prompt-ended">;
|
|
798
|
+
session: z.ZodString;
|
|
799
|
+
prompt: z.ZodString;
|
|
800
|
+
outcome: z.ZodEnum<{
|
|
801
|
+
allowed: "allowed";
|
|
802
|
+
cancelled: "cancelled";
|
|
803
|
+
denied: "denied";
|
|
804
|
+
"timed-out": "timed-out";
|
|
805
|
+
}>;
|
|
806
|
+
id: z.ZodOptional<z.ZodString>;
|
|
807
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
808
|
+
type: z.ZodLiteral<"driven">;
|
|
809
|
+
v: z.ZodLiteral<1>;
|
|
810
|
+
kind: z.ZodLiteral<"held">;
|
|
811
|
+
session: z.ZodString;
|
|
812
|
+
room: z.ZodString;
|
|
813
|
+
why: z.ZodEnum<{
|
|
814
|
+
reopened: "reopened";
|
|
815
|
+
restored: "restored";
|
|
816
|
+
started: "started";
|
|
817
|
+
}>;
|
|
818
|
+
permissions: z.ZodEnum<{
|
|
819
|
+
auto: "auto";
|
|
820
|
+
bypassPermissions: "bypassPermissions";
|
|
821
|
+
}>;
|
|
822
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
823
|
+
type: z.ZodLiteral<"driven">;
|
|
824
|
+
v: z.ZodLiteral<1>;
|
|
825
|
+
kind: z.ZodLiteral<"released">;
|
|
826
|
+
session: z.ZodString;
|
|
827
|
+
why: z.ZodEnum<{
|
|
828
|
+
crashed: "crashed";
|
|
829
|
+
"handed-back": "handed-back";
|
|
830
|
+
"idle-closed": "idle-closed";
|
|
831
|
+
stopped: "stopped";
|
|
832
|
+
}>;
|
|
833
|
+
id: z.ZodOptional<z.ZodString>;
|
|
834
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
835
|
+
type: z.ZodLiteral<"driven">;
|
|
836
|
+
v: z.ZodLiteral<1>;
|
|
837
|
+
kind: z.ZodLiteral<"handed-back">;
|
|
838
|
+
id: z.ZodString;
|
|
839
|
+
session: z.ZodString;
|
|
840
|
+
command: z.ZodString;
|
|
841
|
+
folder: z.ZodString;
|
|
842
|
+
}, z.core.$strip>, z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
843
|
+
type: z.ZodLiteral<"driven">;
|
|
844
|
+
v: z.ZodLiteral<1>;
|
|
845
|
+
kind: z.ZodLiteral<"refused">;
|
|
846
|
+
id: z.ZodString;
|
|
847
|
+
reason: z.ZodEnum<{
|
|
848
|
+
busy: "busy";
|
|
849
|
+
"bypass-off": "bypass-off";
|
|
850
|
+
"no-claude": "no-claude";
|
|
851
|
+
"no-folder": "no-folder";
|
|
852
|
+
"no-prompt": "no-prompt";
|
|
853
|
+
"not-found": "not-found";
|
|
854
|
+
"not-owner": "not-owner";
|
|
855
|
+
}>;
|
|
856
|
+
detail: z.ZodOptional<z.ZodString>;
|
|
857
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
858
|
+
type: z.ZodLiteral<"driven">;
|
|
859
|
+
v: z.ZodLiteral<1>;
|
|
860
|
+
kind: z.ZodLiteral<"refused">;
|
|
861
|
+
id: z.ZodString;
|
|
862
|
+
reason: z.ZodLiteral<"cap-reached">;
|
|
863
|
+
limit: z.ZodNumber;
|
|
864
|
+
detail: z.ZodOptional<z.ZodString>;
|
|
865
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
866
|
+
type: z.ZodLiteral<"driven">;
|
|
867
|
+
v: z.ZodLiteral<1>;
|
|
868
|
+
kind: z.ZodLiteral<"refused">;
|
|
869
|
+
id: z.ZodString;
|
|
870
|
+
reason: z.ZodLiteral<"unavailable">;
|
|
871
|
+
detail: z.ZodString;
|
|
872
|
+
}, z.core.$strip>], "reason">, z.ZodObject<{
|
|
873
|
+
type: z.ZodLiteral<"driven">;
|
|
874
|
+
v: z.ZodLiteral<1>;
|
|
875
|
+
kind: z.ZodLiteral<"holding">;
|
|
876
|
+
sessions: z.ZodArray<z.ZodObject<{
|
|
877
|
+
session: z.ZodString;
|
|
878
|
+
room: z.ZodString;
|
|
879
|
+
held: z.ZodBoolean;
|
|
880
|
+
permissions: z.ZodEnum<{
|
|
881
|
+
auto: "auto";
|
|
882
|
+
bypassPermissions: "bypassPermissions";
|
|
883
|
+
}>;
|
|
884
|
+
turn: z.ZodOptional<z.ZodString>;
|
|
885
|
+
}, z.core.$strip>>;
|
|
886
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
887
|
+
type: z.ZodLiteral<"driven">;
|
|
888
|
+
v: z.ZodLiteral<1>;
|
|
889
|
+
kind: z.ZodLiteral<"folders">;
|
|
890
|
+
repos: z.ZodArray<z.ZodObject<{
|
|
891
|
+
project: z.ZodString;
|
|
892
|
+
folders: z.ZodArray<z.ZodString>;
|
|
893
|
+
}, z.core.$strip>>;
|
|
894
|
+
}, z.core.$strip>], "kind">;
|
|
577
895
|
export declare const DataLayerMessageSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
578
896
|
type: z.ZodLiteral<"hello">;
|
|
579
897
|
v: z.ZodLiteral<1>;
|
|
@@ -606,6 +924,7 @@ export declare const DataLayerMessageSchema: z.ZodDiscriminatedUnion<[z.ZodObjec
|
|
|
606
924
|
token: z.ZodOptional<z.ZodString>;
|
|
607
925
|
orca: z.ZodOptional<z.ZodBoolean>;
|
|
608
926
|
desktop: z.ZodOptional<z.ZodBoolean>;
|
|
927
|
+
drive: z.ZodOptional<z.ZodBoolean>;
|
|
609
928
|
}, z.core.$strip>, z.ZodObject<{
|
|
610
929
|
type: z.ZodLiteral<"full">;
|
|
611
930
|
v: z.ZodLiteral<1>;
|
|
@@ -633,6 +952,7 @@ export declare const DataLayerMessageSchema: z.ZodDiscriminatedUnion<[z.ZodObjec
|
|
|
633
952
|
off: "off";
|
|
634
953
|
on: "on";
|
|
635
954
|
}>;
|
|
955
|
+
contextWindow: z.ZodOptional<z.ZodNumber>;
|
|
636
956
|
extra: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
637
957
|
}, z.core.$strip>;
|
|
638
958
|
agents: z.ZodArray<z.ZodObject<{
|
|
@@ -697,6 +1017,11 @@ export declare const DataLayerMessageSchema: z.ZodDiscriminatedUnion<[z.ZodObjec
|
|
|
697
1017
|
}>;
|
|
698
1018
|
since: z.ZodISODateTime;
|
|
699
1019
|
}, z.core.$strip>>>;
|
|
1020
|
+
workflow: z.ZodOptional<z.ZodObject<{
|
|
1021
|
+
id: z.ZodString;
|
|
1022
|
+
phase: z.ZodString;
|
|
1023
|
+
label: z.ZodString;
|
|
1024
|
+
}, z.core.$strip>>;
|
|
700
1025
|
extra: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
701
1026
|
}, z.core.$strip>>;
|
|
702
1027
|
edits: z.ZodArray<z.ZodObject<{
|
|
@@ -753,6 +1078,32 @@ export declare const DataLayerMessageSchema: z.ZodDiscriminatedUnion<[z.ZodObjec
|
|
|
753
1078
|
withheld: z.ZodOptional<z.ZodLiteral<true>>;
|
|
754
1079
|
extra: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
755
1080
|
}, z.core.$strip>>>;
|
|
1081
|
+
workflows: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
1082
|
+
id: z.ZodString;
|
|
1083
|
+
session: z.ZodString;
|
|
1084
|
+
startedBy: z.ZodString;
|
|
1085
|
+
name: z.ZodString;
|
|
1086
|
+
description: z.ZodOptional<z.ZodString>;
|
|
1087
|
+
phases: z.ZodArray<z.ZodObject<{
|
|
1088
|
+
title: z.ZodString;
|
|
1089
|
+
detail: z.ZodOptional<z.ZodString>;
|
|
1090
|
+
}, z.core.$strip>>;
|
|
1091
|
+
status: z.ZodEnum<{
|
|
1092
|
+
done: "done";
|
|
1093
|
+
failed: "failed";
|
|
1094
|
+
idle: "idle";
|
|
1095
|
+
running: "running";
|
|
1096
|
+
stalled: "stalled";
|
|
1097
|
+
stopped: "stopped";
|
|
1098
|
+
}>;
|
|
1099
|
+
startedAt: z.ZodISODateTime;
|
|
1100
|
+
endedAt: z.ZodOptional<z.ZodISODateTime>;
|
|
1101
|
+
usage: z.ZodOptional<z.ZodObject<{
|
|
1102
|
+
tokens: z.ZodNumber;
|
|
1103
|
+
}, z.core.$strip>>;
|
|
1104
|
+
moreAgents: z.ZodOptional<z.ZodNumber>;
|
|
1105
|
+
extra: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
1106
|
+
}, z.core.$strip>>>;
|
|
756
1107
|
}, z.core.$strip>;
|
|
757
1108
|
}, z.core.$strip>, z.ZodObject<{
|
|
758
1109
|
type: z.ZodLiteral<"changes">;
|
|
@@ -781,6 +1132,7 @@ export declare const DataLayerMessageSchema: z.ZodDiscriminatedUnion<[z.ZodObjec
|
|
|
781
1132
|
off: "off";
|
|
782
1133
|
on: "on";
|
|
783
1134
|
}>;
|
|
1135
|
+
contextWindow: z.ZodOptional<z.ZodNumber>;
|
|
784
1136
|
extra: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
785
1137
|
}, z.core.$strip>>;
|
|
786
1138
|
agents: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
@@ -845,6 +1197,11 @@ export declare const DataLayerMessageSchema: z.ZodDiscriminatedUnion<[z.ZodObjec
|
|
|
845
1197
|
}>;
|
|
846
1198
|
since: z.ZodISODateTime;
|
|
847
1199
|
}, z.core.$strip>>>;
|
|
1200
|
+
workflow: z.ZodOptional<z.ZodObject<{
|
|
1201
|
+
id: z.ZodString;
|
|
1202
|
+
phase: z.ZodString;
|
|
1203
|
+
label: z.ZodString;
|
|
1204
|
+
}, z.core.$strip>>;
|
|
848
1205
|
extra: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
849
1206
|
}, z.core.$strip>>>;
|
|
850
1207
|
edits: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
@@ -901,6 +1258,32 @@ export declare const DataLayerMessageSchema: z.ZodDiscriminatedUnion<[z.ZodObjec
|
|
|
901
1258
|
withheld: z.ZodOptional<z.ZodLiteral<true>>;
|
|
902
1259
|
extra: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
903
1260
|
}, z.core.$strip>>>;
|
|
1261
|
+
workflows: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
1262
|
+
id: z.ZodString;
|
|
1263
|
+
session: z.ZodString;
|
|
1264
|
+
startedBy: z.ZodString;
|
|
1265
|
+
name: z.ZodString;
|
|
1266
|
+
description: z.ZodOptional<z.ZodString>;
|
|
1267
|
+
phases: z.ZodArray<z.ZodObject<{
|
|
1268
|
+
title: z.ZodString;
|
|
1269
|
+
detail: z.ZodOptional<z.ZodString>;
|
|
1270
|
+
}, z.core.$strip>>;
|
|
1271
|
+
status: z.ZodEnum<{
|
|
1272
|
+
done: "done";
|
|
1273
|
+
failed: "failed";
|
|
1274
|
+
idle: "idle";
|
|
1275
|
+
running: "running";
|
|
1276
|
+
stalled: "stalled";
|
|
1277
|
+
stopped: "stopped";
|
|
1278
|
+
}>;
|
|
1279
|
+
startedAt: z.ZodISODateTime;
|
|
1280
|
+
endedAt: z.ZodOptional<z.ZodISODateTime>;
|
|
1281
|
+
usage: z.ZodOptional<z.ZodObject<{
|
|
1282
|
+
tokens: z.ZodNumber;
|
|
1283
|
+
}, z.core.$strip>>;
|
|
1284
|
+
moreAgents: z.ZodOptional<z.ZodNumber>;
|
|
1285
|
+
extra: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
1286
|
+
}, z.core.$strip>>>;
|
|
904
1287
|
}, z.core.$strip>;
|
|
905
1288
|
remove: z.ZodObject<{
|
|
906
1289
|
agents: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
@@ -930,6 +1313,7 @@ export declare const DataLayerMessageSchema: z.ZodDiscriminatedUnion<[z.ZodObjec
|
|
|
930
1313
|
abandoned: "abandoned";
|
|
931
1314
|
answered: "answered";
|
|
932
1315
|
}>>>;
|
|
1316
|
+
workflows: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
933
1317
|
}, z.core.$strip>;
|
|
934
1318
|
}, z.core.$strip>, z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
935
1319
|
type: z.ZodLiteral<"reply">;
|
|
@@ -1047,7 +1431,185 @@ export declare const DataLayerMessageSchema: z.ZodDiscriminatedUnion<[z.ZodObjec
|
|
|
1047
1431
|
type: z.ZodLiteral<"asked-ack">;
|
|
1048
1432
|
v: z.ZodLiteral<1>;
|
|
1049
1433
|
question: z.ZodString;
|
|
1050
|
-
}, z.core.$strip
|
|
1434
|
+
}, z.core.$strip>, z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
1435
|
+
type: z.ZodLiteral<"driven">;
|
|
1436
|
+
v: z.ZodLiteral<1>;
|
|
1437
|
+
kind: z.ZodLiteral<"started">;
|
|
1438
|
+
id: z.ZodString;
|
|
1439
|
+
session: z.ZodString;
|
|
1440
|
+
room: z.ZodString;
|
|
1441
|
+
permissions: z.ZodEnum<{
|
|
1442
|
+
auto: "auto";
|
|
1443
|
+
bypassPermissions: "bypassPermissions";
|
|
1444
|
+
}>;
|
|
1445
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
1446
|
+
type: z.ZodLiteral<"driven">;
|
|
1447
|
+
v: z.ZodLiteral<1>;
|
|
1448
|
+
kind: z.ZodLiteral<"turn-started">;
|
|
1449
|
+
session: z.ZodString;
|
|
1450
|
+
turn: z.ZodString;
|
|
1451
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
1452
|
+
type: z.ZodLiteral<"driven">;
|
|
1453
|
+
v: z.ZodLiteral<1>;
|
|
1454
|
+
kind: z.ZodLiteral<"tool">;
|
|
1455
|
+
session: z.ZodString;
|
|
1456
|
+
turn: z.ZodString;
|
|
1457
|
+
tool: z.ZodString;
|
|
1458
|
+
summary: z.ZodOptional<z.ZodString>;
|
|
1459
|
+
withheld: z.ZodOptional<z.ZodLiteral<true>>;
|
|
1460
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
1461
|
+
type: z.ZodLiteral<"driven">;
|
|
1462
|
+
v: z.ZodLiteral<1>;
|
|
1463
|
+
kind: z.ZodLiteral<"reply">;
|
|
1464
|
+
session: z.ZodString;
|
|
1465
|
+
turn: z.ZodString;
|
|
1466
|
+
text: z.ZodString;
|
|
1467
|
+
cut: z.ZodOptional<z.ZodLiteral<true>>;
|
|
1468
|
+
withheld: z.ZodOptional<z.ZodObject<{
|
|
1469
|
+
id: z.ZodString;
|
|
1470
|
+
}, z.core.$strip>>;
|
|
1471
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
1472
|
+
type: z.ZodLiteral<"driven">;
|
|
1473
|
+
v: z.ZodLiteral<1>;
|
|
1474
|
+
kind: z.ZodLiteral<"turn-ended">;
|
|
1475
|
+
session: z.ZodString;
|
|
1476
|
+
turn: z.ZodString;
|
|
1477
|
+
outcome: z.ZodEnum<{
|
|
1478
|
+
done: "done";
|
|
1479
|
+
failed: "failed";
|
|
1480
|
+
stopped: "stopped";
|
|
1481
|
+
}>;
|
|
1482
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
1483
|
+
type: z.ZodLiteral<"driven">;
|
|
1484
|
+
v: z.ZodLiteral<1>;
|
|
1485
|
+
kind: z.ZodLiteral<"error">;
|
|
1486
|
+
session: z.ZodString;
|
|
1487
|
+
turn: z.ZodOptional<z.ZodString>;
|
|
1488
|
+
text: z.ZodString;
|
|
1489
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
1490
|
+
type: z.ZodLiteral<"driven">;
|
|
1491
|
+
v: z.ZodLiteral<1>;
|
|
1492
|
+
kind: z.ZodLiteral<"output">;
|
|
1493
|
+
id: z.ZodString;
|
|
1494
|
+
session: z.ZodString;
|
|
1495
|
+
turn: z.ZodOptional<z.ZodString>;
|
|
1496
|
+
text: z.ZodString;
|
|
1497
|
+
cut: z.ZodOptional<z.ZodLiteral<true>>;
|
|
1498
|
+
withheld: z.ZodOptional<z.ZodObject<{
|
|
1499
|
+
id: z.ZodString;
|
|
1500
|
+
}, z.core.$strip>>;
|
|
1501
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
1502
|
+
type: z.ZodLiteral<"driven">;
|
|
1503
|
+
v: z.ZodLiteral<1>;
|
|
1504
|
+
kind: z.ZodLiteral<"prompt">;
|
|
1505
|
+
session: z.ZodString;
|
|
1506
|
+
turn: z.ZodOptional<z.ZodString>;
|
|
1507
|
+
prompt: z.ZodString;
|
|
1508
|
+
tool: z.ZodString;
|
|
1509
|
+
description: z.ZodString;
|
|
1510
|
+
withheld: z.ZodOptional<z.ZodLiteral<true>>;
|
|
1511
|
+
expires: z.ZodISODateTime;
|
|
1512
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
1513
|
+
type: z.ZodLiteral<"driven">;
|
|
1514
|
+
v: z.ZodLiteral<1>;
|
|
1515
|
+
kind: z.ZodLiteral<"prompt-ended">;
|
|
1516
|
+
session: z.ZodString;
|
|
1517
|
+
prompt: z.ZodString;
|
|
1518
|
+
outcome: z.ZodEnum<{
|
|
1519
|
+
allowed: "allowed";
|
|
1520
|
+
cancelled: "cancelled";
|
|
1521
|
+
denied: "denied";
|
|
1522
|
+
"timed-out": "timed-out";
|
|
1523
|
+
}>;
|
|
1524
|
+
id: z.ZodOptional<z.ZodString>;
|
|
1525
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
1526
|
+
type: z.ZodLiteral<"driven">;
|
|
1527
|
+
v: z.ZodLiteral<1>;
|
|
1528
|
+
kind: z.ZodLiteral<"held">;
|
|
1529
|
+
session: z.ZodString;
|
|
1530
|
+
room: z.ZodString;
|
|
1531
|
+
why: z.ZodEnum<{
|
|
1532
|
+
reopened: "reopened";
|
|
1533
|
+
restored: "restored";
|
|
1534
|
+
started: "started";
|
|
1535
|
+
}>;
|
|
1536
|
+
permissions: z.ZodEnum<{
|
|
1537
|
+
auto: "auto";
|
|
1538
|
+
bypassPermissions: "bypassPermissions";
|
|
1539
|
+
}>;
|
|
1540
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
1541
|
+
type: z.ZodLiteral<"driven">;
|
|
1542
|
+
v: z.ZodLiteral<1>;
|
|
1543
|
+
kind: z.ZodLiteral<"released">;
|
|
1544
|
+
session: z.ZodString;
|
|
1545
|
+
why: z.ZodEnum<{
|
|
1546
|
+
crashed: "crashed";
|
|
1547
|
+
"handed-back": "handed-back";
|
|
1548
|
+
"idle-closed": "idle-closed";
|
|
1549
|
+
stopped: "stopped";
|
|
1550
|
+
}>;
|
|
1551
|
+
id: z.ZodOptional<z.ZodString>;
|
|
1552
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
1553
|
+
type: z.ZodLiteral<"driven">;
|
|
1554
|
+
v: z.ZodLiteral<1>;
|
|
1555
|
+
kind: z.ZodLiteral<"handed-back">;
|
|
1556
|
+
id: z.ZodString;
|
|
1557
|
+
session: z.ZodString;
|
|
1558
|
+
command: z.ZodString;
|
|
1559
|
+
folder: z.ZodString;
|
|
1560
|
+
}, z.core.$strip>, z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
1561
|
+
type: z.ZodLiteral<"driven">;
|
|
1562
|
+
v: z.ZodLiteral<1>;
|
|
1563
|
+
kind: z.ZodLiteral<"refused">;
|
|
1564
|
+
id: z.ZodString;
|
|
1565
|
+
reason: z.ZodEnum<{
|
|
1566
|
+
busy: "busy";
|
|
1567
|
+
"bypass-off": "bypass-off";
|
|
1568
|
+
"no-claude": "no-claude";
|
|
1569
|
+
"no-folder": "no-folder";
|
|
1570
|
+
"no-prompt": "no-prompt";
|
|
1571
|
+
"not-found": "not-found";
|
|
1572
|
+
"not-owner": "not-owner";
|
|
1573
|
+
}>;
|
|
1574
|
+
detail: z.ZodOptional<z.ZodString>;
|
|
1575
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
1576
|
+
type: z.ZodLiteral<"driven">;
|
|
1577
|
+
v: z.ZodLiteral<1>;
|
|
1578
|
+
kind: z.ZodLiteral<"refused">;
|
|
1579
|
+
id: z.ZodString;
|
|
1580
|
+
reason: z.ZodLiteral<"cap-reached">;
|
|
1581
|
+
limit: z.ZodNumber;
|
|
1582
|
+
detail: z.ZodOptional<z.ZodString>;
|
|
1583
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
1584
|
+
type: z.ZodLiteral<"driven">;
|
|
1585
|
+
v: z.ZodLiteral<1>;
|
|
1586
|
+
kind: z.ZodLiteral<"refused">;
|
|
1587
|
+
id: z.ZodString;
|
|
1588
|
+
reason: z.ZodLiteral<"unavailable">;
|
|
1589
|
+
detail: z.ZodString;
|
|
1590
|
+
}, z.core.$strip>], "reason">, z.ZodObject<{
|
|
1591
|
+
type: z.ZodLiteral<"driven">;
|
|
1592
|
+
v: z.ZodLiteral<1>;
|
|
1593
|
+
kind: z.ZodLiteral<"holding">;
|
|
1594
|
+
sessions: z.ZodArray<z.ZodObject<{
|
|
1595
|
+
session: z.ZodString;
|
|
1596
|
+
room: z.ZodString;
|
|
1597
|
+
held: z.ZodBoolean;
|
|
1598
|
+
permissions: z.ZodEnum<{
|
|
1599
|
+
auto: "auto";
|
|
1600
|
+
bypassPermissions: "bypassPermissions";
|
|
1601
|
+
}>;
|
|
1602
|
+
turn: z.ZodOptional<z.ZodString>;
|
|
1603
|
+
}, z.core.$strip>>;
|
|
1604
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
1605
|
+
type: z.ZodLiteral<"driven">;
|
|
1606
|
+
v: z.ZodLiteral<1>;
|
|
1607
|
+
kind: z.ZodLiteral<"folders">;
|
|
1608
|
+
repos: z.ZodArray<z.ZodObject<{
|
|
1609
|
+
project: z.ZodString;
|
|
1610
|
+
folders: z.ZodArray<z.ZodString>;
|
|
1611
|
+
}, z.core.$strip>>;
|
|
1612
|
+
}, z.core.$strip>], "kind">], "type">;
|
|
1051
1613
|
/** Asks the data layer to send its facts in full. */
|
|
1052
1614
|
export declare const RepairMessageSchema: z.ZodObject<{
|
|
1053
1615
|
type: z.ZodLiteral<"repair">;
|
|
@@ -1166,11 +1728,21 @@ export declare const HandoffMessageSchema: z.ZodObject<{
|
|
|
1166
1728
|
}, z.core.$strip>;
|
|
1167
1729
|
mode: z.ZodOptional<z.ZodEnum<{
|
|
1168
1730
|
desktop: "desktop";
|
|
1731
|
+
driven: "driven";
|
|
1169
1732
|
headless: "headless";
|
|
1170
1733
|
orca: "orca";
|
|
1171
1734
|
terminal: "terminal";
|
|
1172
1735
|
}>>;
|
|
1173
1736
|
session: z.ZodOptional<z.ZodString>;
|
|
1737
|
+
by: z.ZodOptional<z.ZodObject<{
|
|
1738
|
+
id: z.ZodString;
|
|
1739
|
+
name: z.ZodString;
|
|
1740
|
+
}, z.core.$strip>>;
|
|
1741
|
+
room: z.ZodOptional<z.ZodString>;
|
|
1742
|
+
permissions: z.ZodOptional<z.ZodEnum<{
|
|
1743
|
+
auto: "auto";
|
|
1744
|
+
bypassPermissions: "bypassPermissions";
|
|
1745
|
+
}>>;
|
|
1174
1746
|
}, z.core.$strip>;
|
|
1175
1747
|
/** A hand-over-check passed: `to` is the receiver the server found for the name given. */
|
|
1176
1748
|
export declare const HandOverReadyMessageSchema: z.ZodObject<{
|
|
@@ -1236,6 +1808,126 @@ export declare const AskRightsMessageSchema: z.ZodObject<{
|
|
|
1236
1808
|
}, z.core.$strip>;
|
|
1237
1809
|
granted: z.ZodBoolean;
|
|
1238
1810
|
}, z.core.$strip>;
|
|
1811
|
+
/**
|
|
1812
|
+
* A person acting on a driven session from the floor (protocol 0.5.0), sent only to a runner that said
|
|
1813
|
+
* `drive`, and only to the owner's own runner. `by` is the person acting, whom the runner checks is its
|
|
1814
|
+
* own person, and refuses `not-owner` otherwise. The runner answers by `id` (see `driven`). Nothing is
|
|
1815
|
+
* queued: the server refuses a request for a runner that isn't linked at once (`offline`, see
|
|
1816
|
+
* FloorDriveRefusalReason).
|
|
1817
|
+
*/
|
|
1818
|
+
export declare const DriveMessageSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
1819
|
+
type: z.ZodLiteral<"drive">;
|
|
1820
|
+
v: z.ZodLiteral<1>;
|
|
1821
|
+
id: z.ZodString;
|
|
1822
|
+
by: z.ZodObject<{
|
|
1823
|
+
id: z.ZodString;
|
|
1824
|
+
name: z.ZodString;
|
|
1825
|
+
}, z.core.$strip>;
|
|
1826
|
+
kind: z.ZodLiteral<"start">;
|
|
1827
|
+
room: z.ZodOptional<z.ZodString>;
|
|
1828
|
+
folder: z.ZodOptional<z.ZodString>;
|
|
1829
|
+
project: z.ZodObject<{
|
|
1830
|
+
id: z.ZodString;
|
|
1831
|
+
name: z.ZodString;
|
|
1832
|
+
}, z.core.$strip>;
|
|
1833
|
+
roomSessions: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
1834
|
+
instruction: z.ZodOptional<z.ZodString>;
|
|
1835
|
+
permissions: z.ZodEnum<{
|
|
1836
|
+
auto: "auto";
|
|
1837
|
+
bypassPermissions: "bypassPermissions";
|
|
1838
|
+
}>;
|
|
1839
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
1840
|
+
type: z.ZodLiteral<"drive">;
|
|
1841
|
+
v: z.ZodLiteral<1>;
|
|
1842
|
+
id: z.ZodString;
|
|
1843
|
+
by: z.ZodObject<{
|
|
1844
|
+
id: z.ZodString;
|
|
1845
|
+
name: z.ZodString;
|
|
1846
|
+
}, z.core.$strip>;
|
|
1847
|
+
kind: z.ZodLiteral<"instruct">;
|
|
1848
|
+
session: z.ZodString;
|
|
1849
|
+
text: z.ZodString;
|
|
1850
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
1851
|
+
type: z.ZodLiteral<"drive">;
|
|
1852
|
+
v: z.ZodLiteral<1>;
|
|
1853
|
+
id: z.ZodString;
|
|
1854
|
+
by: z.ZodObject<{
|
|
1855
|
+
id: z.ZodString;
|
|
1856
|
+
name: z.ZodString;
|
|
1857
|
+
}, z.core.$strip>;
|
|
1858
|
+
kind: z.ZodLiteral<"stop">;
|
|
1859
|
+
session: z.ZodString;
|
|
1860
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
1861
|
+
type: z.ZodLiteral<"drive">;
|
|
1862
|
+
v: z.ZodLiteral<1>;
|
|
1863
|
+
id: z.ZodString;
|
|
1864
|
+
by: z.ZodObject<{
|
|
1865
|
+
id: z.ZodString;
|
|
1866
|
+
name: z.ZodString;
|
|
1867
|
+
}, z.core.$strip>;
|
|
1868
|
+
kind: z.ZodLiteral<"hand-back">;
|
|
1869
|
+
session: z.ZodString;
|
|
1870
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
1871
|
+
type: z.ZodLiteral<"drive">;
|
|
1872
|
+
v: z.ZodLiteral<1>;
|
|
1873
|
+
id: z.ZodString;
|
|
1874
|
+
by: z.ZodObject<{
|
|
1875
|
+
id: z.ZodString;
|
|
1876
|
+
name: z.ZodString;
|
|
1877
|
+
}, z.core.$strip>;
|
|
1878
|
+
kind: z.ZodLiteral<"output">;
|
|
1879
|
+
session: z.ZodString;
|
|
1880
|
+
turn: z.ZodOptional<z.ZodString>;
|
|
1881
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
1882
|
+
type: z.ZodLiteral<"drive">;
|
|
1883
|
+
v: z.ZodLiteral<1>;
|
|
1884
|
+
id: z.ZodString;
|
|
1885
|
+
by: z.ZodObject<{
|
|
1886
|
+
id: z.ZodString;
|
|
1887
|
+
name: z.ZodString;
|
|
1888
|
+
}, z.core.$strip>;
|
|
1889
|
+
kind: z.ZodLiteral<"answer">;
|
|
1890
|
+
session: z.ZodString;
|
|
1891
|
+
prompt: z.ZodString;
|
|
1892
|
+
answer: z.ZodEnum<{
|
|
1893
|
+
allow: "allow";
|
|
1894
|
+
deny: "deny";
|
|
1895
|
+
}>;
|
|
1896
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
1897
|
+
type: z.ZodLiteral<"drive">;
|
|
1898
|
+
v: z.ZodLiteral<1>;
|
|
1899
|
+
id: z.ZodString;
|
|
1900
|
+
by: z.ZodObject<{
|
|
1901
|
+
id: z.ZodString;
|
|
1902
|
+
name: z.ZodString;
|
|
1903
|
+
}, z.core.$strip>;
|
|
1904
|
+
kind: z.ZodLiteral<"release">;
|
|
1905
|
+
session: z.ZodString;
|
|
1906
|
+
withheld: z.ZodString;
|
|
1907
|
+
}, z.core.$strip>], "kind">;
|
|
1908
|
+
/**
|
|
1909
|
+
* Where people may skip permission prompts in driven sessions (protocol 0.5.0): `bypassAllowed` lists
|
|
1910
|
+
* the projects, lower-cased, whose office allows `bypassPermissions`; an admin can turn it off for the
|
|
1911
|
+
* whole office. A project id here is as long as it comes, as everywhere in the protocol, so any
|
|
1912
|
+
* project the server holds can be listed. Sent to a runner that said `drive` once its hello is let in,
|
|
1913
|
+
* before any drive request, and again whenever an admin changes it. The runner sends no `driven`
|
|
1914
|
+
* message on a connection before the first one has come on it. Until one arrives on a connection,
|
|
1915
|
+
* and in any project it doesn't list, the runner opens no session's process with `bypassPermissions`:
|
|
1916
|
+
* not to start, reopen or restore one. What a session already running does when its project leaves
|
|
1917
|
+
* the list is the runner's to decide (#42).
|
|
1918
|
+
*
|
|
1919
|
+
* It is a message of its own, not a field of each start, because the runner enforces it as a standing
|
|
1920
|
+
* rule: a change has to reach the runner while its sessions run, and a session the runner restores
|
|
1921
|
+
* after its own restart comes with no start. Kept apart from a start's `permissions`, which is the
|
|
1922
|
+
* person's own choice, a mistake in the server's start path alone can't skip prompts in a project
|
|
1923
|
+
* whose office hasn't allowed it. It is by project because one server can host several offices, and a
|
|
1924
|
+
* runner's link serves all of them.
|
|
1925
|
+
*/
|
|
1926
|
+
export declare const DrivePolicyMessageSchema: z.ZodObject<{
|
|
1927
|
+
type: z.ZodLiteral<"drive-policy">;
|
|
1928
|
+
v: z.ZodLiteral<1>;
|
|
1929
|
+
bypassAllowed: z.ZodArray<z.ZodString>;
|
|
1930
|
+
}, z.core.$strip>;
|
|
1239
1931
|
export declare const OfficeServerMessageSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
1240
1932
|
type: z.ZodLiteral<"repair">;
|
|
1241
1933
|
v: z.ZodLiteral<1>;
|
|
@@ -1312,11 +2004,21 @@ export declare const OfficeServerMessageSchema: z.ZodDiscriminatedUnion<[z.ZodOb
|
|
|
1312
2004
|
}, z.core.$strip>;
|
|
1313
2005
|
mode: z.ZodOptional<z.ZodEnum<{
|
|
1314
2006
|
desktop: "desktop";
|
|
2007
|
+
driven: "driven";
|
|
1315
2008
|
headless: "headless";
|
|
1316
2009
|
orca: "orca";
|
|
1317
2010
|
terminal: "terminal";
|
|
1318
2011
|
}>>;
|
|
1319
2012
|
session: z.ZodOptional<z.ZodString>;
|
|
2013
|
+
by: z.ZodOptional<z.ZodObject<{
|
|
2014
|
+
id: z.ZodString;
|
|
2015
|
+
name: z.ZodString;
|
|
2016
|
+
}, z.core.$strip>>;
|
|
2017
|
+
room: z.ZodOptional<z.ZodString>;
|
|
2018
|
+
permissions: z.ZodOptional<z.ZodEnum<{
|
|
2019
|
+
auto: "auto";
|
|
2020
|
+
bypassPermissions: "bypassPermissions";
|
|
2021
|
+
}>>;
|
|
1320
2022
|
}, z.core.$strip>, z.ZodObject<{
|
|
1321
2023
|
type: z.ZodLiteral<"handed-over">;
|
|
1322
2024
|
v: z.ZodLiteral<1>;
|
|
@@ -1362,6 +2064,99 @@ export declare const OfficeServerMessageSchema: z.ZodDiscriminatedUnion<[z.ZodOb
|
|
|
1362
2064
|
name: z.ZodString;
|
|
1363
2065
|
}, z.core.$strip>;
|
|
1364
2066
|
granted: z.ZodBoolean;
|
|
2067
|
+
}, z.core.$strip>, z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
2068
|
+
type: z.ZodLiteral<"drive">;
|
|
2069
|
+
v: z.ZodLiteral<1>;
|
|
2070
|
+
id: z.ZodString;
|
|
2071
|
+
by: z.ZodObject<{
|
|
2072
|
+
id: z.ZodString;
|
|
2073
|
+
name: z.ZodString;
|
|
2074
|
+
}, z.core.$strip>;
|
|
2075
|
+
kind: z.ZodLiteral<"start">;
|
|
2076
|
+
room: z.ZodOptional<z.ZodString>;
|
|
2077
|
+
folder: z.ZodOptional<z.ZodString>;
|
|
2078
|
+
project: z.ZodObject<{
|
|
2079
|
+
id: z.ZodString;
|
|
2080
|
+
name: z.ZodString;
|
|
2081
|
+
}, z.core.$strip>;
|
|
2082
|
+
roomSessions: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
2083
|
+
instruction: z.ZodOptional<z.ZodString>;
|
|
2084
|
+
permissions: z.ZodEnum<{
|
|
2085
|
+
auto: "auto";
|
|
2086
|
+
bypassPermissions: "bypassPermissions";
|
|
2087
|
+
}>;
|
|
2088
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
2089
|
+
type: z.ZodLiteral<"drive">;
|
|
2090
|
+
v: z.ZodLiteral<1>;
|
|
2091
|
+
id: z.ZodString;
|
|
2092
|
+
by: z.ZodObject<{
|
|
2093
|
+
id: z.ZodString;
|
|
2094
|
+
name: z.ZodString;
|
|
2095
|
+
}, z.core.$strip>;
|
|
2096
|
+
kind: z.ZodLiteral<"instruct">;
|
|
2097
|
+
session: z.ZodString;
|
|
2098
|
+
text: z.ZodString;
|
|
2099
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
2100
|
+
type: z.ZodLiteral<"drive">;
|
|
2101
|
+
v: z.ZodLiteral<1>;
|
|
2102
|
+
id: z.ZodString;
|
|
2103
|
+
by: z.ZodObject<{
|
|
2104
|
+
id: z.ZodString;
|
|
2105
|
+
name: z.ZodString;
|
|
2106
|
+
}, z.core.$strip>;
|
|
2107
|
+
kind: z.ZodLiteral<"stop">;
|
|
2108
|
+
session: z.ZodString;
|
|
2109
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
2110
|
+
type: z.ZodLiteral<"drive">;
|
|
2111
|
+
v: z.ZodLiteral<1>;
|
|
2112
|
+
id: z.ZodString;
|
|
2113
|
+
by: z.ZodObject<{
|
|
2114
|
+
id: z.ZodString;
|
|
2115
|
+
name: z.ZodString;
|
|
2116
|
+
}, z.core.$strip>;
|
|
2117
|
+
kind: z.ZodLiteral<"hand-back">;
|
|
2118
|
+
session: z.ZodString;
|
|
2119
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
2120
|
+
type: z.ZodLiteral<"drive">;
|
|
2121
|
+
v: z.ZodLiteral<1>;
|
|
2122
|
+
id: z.ZodString;
|
|
2123
|
+
by: z.ZodObject<{
|
|
2124
|
+
id: z.ZodString;
|
|
2125
|
+
name: z.ZodString;
|
|
2126
|
+
}, z.core.$strip>;
|
|
2127
|
+
kind: z.ZodLiteral<"output">;
|
|
2128
|
+
session: z.ZodString;
|
|
2129
|
+
turn: z.ZodOptional<z.ZodString>;
|
|
2130
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
2131
|
+
type: z.ZodLiteral<"drive">;
|
|
2132
|
+
v: z.ZodLiteral<1>;
|
|
2133
|
+
id: z.ZodString;
|
|
2134
|
+
by: z.ZodObject<{
|
|
2135
|
+
id: z.ZodString;
|
|
2136
|
+
name: z.ZodString;
|
|
2137
|
+
}, z.core.$strip>;
|
|
2138
|
+
kind: z.ZodLiteral<"answer">;
|
|
2139
|
+
session: z.ZodString;
|
|
2140
|
+
prompt: z.ZodString;
|
|
2141
|
+
answer: z.ZodEnum<{
|
|
2142
|
+
allow: "allow";
|
|
2143
|
+
deny: "deny";
|
|
2144
|
+
}>;
|
|
2145
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
2146
|
+
type: z.ZodLiteral<"drive">;
|
|
2147
|
+
v: z.ZodLiteral<1>;
|
|
2148
|
+
id: z.ZodString;
|
|
2149
|
+
by: z.ZodObject<{
|
|
2150
|
+
id: z.ZodString;
|
|
2151
|
+
name: z.ZodString;
|
|
2152
|
+
}, z.core.$strip>;
|
|
2153
|
+
kind: z.ZodLiteral<"release">;
|
|
2154
|
+
session: z.ZodString;
|
|
2155
|
+
withheld: z.ZodString;
|
|
2156
|
+
}, z.core.$strip>], "kind">, z.ZodObject<{
|
|
2157
|
+
type: z.ZodLiteral<"drive-policy">;
|
|
2158
|
+
v: z.ZodLiteral<1>;
|
|
2159
|
+
bypassAllowed: z.ZodArray<z.ZodString>;
|
|
1365
2160
|
}, z.core.$strip>], "type">;
|
|
1366
2161
|
export type HandoffRepo = z.infer<typeof HandoffRepoSchema>;
|
|
1367
2162
|
export type Handoff = z.infer<typeof HandoffSchema>;
|
|
@@ -1393,6 +2188,21 @@ export type AskedAckMessage = z.infer<typeof AskedAckMessageSchema>;
|
|
|
1393
2188
|
export type AskRightsMessage = z.infer<typeof AskRightsMessageSchema>;
|
|
1394
2189
|
export type OfficeServerMessage = z.infer<typeof OfficeServerMessageSchema>;
|
|
1395
2190
|
export type WelcomeMessage = z.infer<typeof WelcomeMessageSchema>;
|
|
2191
|
+
export type DrivePermissions = z.infer<typeof DrivePermissionsSchema>;
|
|
2192
|
+
export type DriveMessage = z.infer<typeof DriveMessageSchema>;
|
|
2193
|
+
export type DriveKind = DriveMessage["kind"];
|
|
2194
|
+
export type DrivePolicyMessage = z.infer<typeof DrivePolicyMessageSchema>;
|
|
2195
|
+
export type DrivenMessage = z.infer<typeof DrivenMessageSchema>;
|
|
2196
|
+
export type DrivenKind = DrivenMessage["kind"];
|
|
2197
|
+
export type DriveRefusal = Extract<DrivenMessage, {
|
|
2198
|
+
kind: "refused";
|
|
2199
|
+
}>;
|
|
2200
|
+
export type DriveRefusalReason = DriveRefusal["reason"];
|
|
2201
|
+
/**
|
|
2202
|
+
* The reasons the floor shows for a refused drive request: a runner's, and `offline`, the server's
|
|
2203
|
+
* own, for a request it refused at once because the owner's runner isn't linked (nothing is queued).
|
|
2204
|
+
*/
|
|
2205
|
+
export type FloorDriveRefusalReason = DriveRefusalReason | "offline";
|
|
1396
2206
|
/**
|
|
1397
2207
|
* A parsed message, or why it was refused: `unsupported-version` when it carries a protocol
|
|
1398
2208
|
* version this side doesn't speak, `invalid` for anything else wrong with it.
|