@isoplan/protocol 0.3.8 → 0.5.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 +3 -2
- package/dist/messages.d.ts +667 -2
- package/dist/messages.js +253 -7
- package/dist/messages.js.map +1 -1
- package/package.json +2 -2
package/README.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# @isoplan/protocol
|
|
2
2
|
|
|
3
|
-
The wire protocol between [Isoplan](https://github.com/
|
|
3
|
+
The wire protocol between [Isoplan](https://github.com/isoplan-app/isoplan-plugin)'s Claude Code plugin and an office server: the facts a session reports, the messages each side sends, and [zod](https://zod.dev) schemas that check them.
|
|
4
4
|
|
|
5
5
|
```
|
|
6
6
|
npm install @isoplan/protocol
|
|
@@ -12,6 +12,7 @@ ES module only, with TypeScript types. Depends on zod 4.
|
|
|
12
12
|
|
|
13
13
|
- **Facts** (`FactsSchema` and its parts: `SessionFactSchema`, `AgentFactSchema`, `FileFactSchema`, `WaitFactSchema`, `ReportFactSchema`, `QuestionFactSchema`): what one session reports, the shape a data layer sends and a server stores.
|
|
14
14
|
- **Messages**: `DataLayerMessageSchema` for what a data layer or runner sends (hellos, full facts, changes, replies, refusals, and the hand-over, take and taken steps of a handoff, and ask-room, ask-check and asked-ack for asking a handed-over room a question), and `OfficeServerMessageSchema` for what a server sends back (repair, conflict, error, request, release, handoff, asked, where a question stands, and ask-rights, whether a session may ask). Each message type has its own schema and type as well, such as `HelloMessage` or `RequestMessage`.
|
|
15
|
+
- **Driven sessions** (0.5.0): a session the runner runs on its person's machine, which they drive from the floor. The server sends `drive` (start, instruct, stop, hand-back, output, answer a permission prompt, release withheld text), each naming who acts, and `drive-policy`, where skipping permission prompts is allowed. The runner sends `driven` (started, turn-started, tool, reply, turn-ended, error, output, prompt, prompt-ended, held, released, handed-back, refused, and holding, its sessions after each hello), only while its link is up. A runner that drives sessions says `drive` in its hello, and can take a handoff as one (mode `driven`). Their text, ids, rooms, tool names, a start's room sessions and the `holding` list are bounded by exported `MAX_*` constants, which a runner keeps its messages within; the acting person (`by`) and project ids aren't bounded, as they aren't anywhere else in the protocol.
|
|
15
16
|
- **`PROTOCOL_VERSION`**: the version both sides speak. A message's `v` must match it.
|
|
16
17
|
- **`projectId(remoteUrl, { machine, root })`**: a repository's project id, `host/owner/repo` from its git remote whatever form the remote is written in, or `local:<machine>/<root>` without one.
|
|
17
18
|
|
|
@@ -30,4 +31,4 @@ else drop(result.error);
|
|
|
30
31
|
|
|
31
32
|
## Licence
|
|
32
33
|
|
|
33
|
-
MIT. Source: [`packages/protocol`](https://github.com/
|
|
34
|
+
MIT. Source: [`packages/protocol`](https://github.com/isoplan-app/isoplan-plugin/tree/main/packages/protocol).
|
package/dist/messages.d.ts
CHANGED
|
@@ -37,6 +37,43 @@ 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` names. */
|
|
63
|
+
export declare const MAX_FOLDER_LENGTH = 4096;
|
|
64
|
+
/** The most room sessions a start names. */
|
|
65
|
+
export declare const MAX_ROOM_SESSIONS = 20;
|
|
66
|
+
/** The most driven sessions a `holding` message lists. */
|
|
67
|
+
export declare const MAX_HOLDING = 200;
|
|
68
|
+
/**
|
|
69
|
+
* The permission mode a driven session runs in: Claude Code's `auto`, the default, or
|
|
70
|
+
* `bypassPermissions`, which skips its permission prompts, for a person who opted in, and only in a
|
|
71
|
+
* project whose office allows it (`drive-policy`).
|
|
72
|
+
*/
|
|
73
|
+
export declare const DrivePermissionsSchema: z.ZodEnum<{
|
|
74
|
+
auto: "auto";
|
|
75
|
+
bypassPermissions: "bypassPermissions";
|
|
76
|
+
}>;
|
|
40
77
|
/** The first message on a connection: who is reporting, from where, about which session. */
|
|
41
78
|
export declare const HelloMessageSchema: z.ZodObject<{
|
|
42
79
|
type: z.ZodLiteral<"hello">;
|
|
@@ -61,6 +98,12 @@ export declare const HelloMessageSchema: z.ZodObject<{
|
|
|
61
98
|
/**
|
|
62
99
|
* The first message on a runner's link: the one link per machine that answers requests for its rooms.
|
|
63
100
|
* `orca`: Orca's CLI is on this machine, so a handoff can be taken into Orca (mode `orca`).
|
|
101
|
+
* `desktop` (protocol 0.4.0): Claude Code for the terminal, new enough to hand a session to the Claude
|
|
102
|
+
* app, is on this machine, a Mac or Windows x64, so a handoff can be opened in the Claude app (mode `desktop`).
|
|
103
|
+
* `drive` (protocol 0.5.0): this runner drives sessions from the floor: it takes `drive` requests and
|
|
104
|
+
* `drive-policy`, sends `driven` messages, and takes a handoff as a driven session (mode `driven`). The
|
|
105
|
+
* server sends none of these to a runner that didn't say it. A machine with no claude binary still says
|
|
106
|
+
* it, and refuses each start `no-claude`.
|
|
64
107
|
*/
|
|
65
108
|
export declare const RunnerHelloMessageSchema: z.ZodObject<{
|
|
66
109
|
type: z.ZodLiteral<"runner">;
|
|
@@ -74,6 +117,8 @@ export declare const RunnerHelloMessageSchema: z.ZodObject<{
|
|
|
74
117
|
}, z.core.$strip>;
|
|
75
118
|
token: z.ZodOptional<z.ZodString>;
|
|
76
119
|
orca: z.ZodOptional<z.ZodBoolean>;
|
|
120
|
+
desktop: z.ZodOptional<z.ZodBoolean>;
|
|
121
|
+
drive: z.ZodOptional<z.ZodBoolean>;
|
|
77
122
|
}, z.core.$strip>;
|
|
78
123
|
/** All of the session's facts. Sent on connect and on repair. */
|
|
79
124
|
export declare const FullMessageSchema: z.ZodObject<{
|
|
@@ -438,6 +483,7 @@ export declare const ReplyMessageSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
438
483
|
"owner-tokens": "owner-tokens";
|
|
439
484
|
"room-hour": "room-hour";
|
|
440
485
|
}>>;
|
|
486
|
+
noClaude: z.ZodOptional<z.ZodLiteral<true>>;
|
|
441
487
|
}, z.core.$strip>, z.ZodObject<{
|
|
442
488
|
type: z.ZodLiteral<"reply">;
|
|
443
489
|
v: z.ZodLiteral<1>;
|
|
@@ -570,6 +616,203 @@ export declare const AskedAckMessageSchema: z.ZodObject<{
|
|
|
570
616
|
v: z.ZodLiteral<1>;
|
|
571
617
|
question: z.ZodString;
|
|
572
618
|
}, z.core.$strip>;
|
|
619
|
+
/**
|
|
620
|
+
* What a runner says of the driven sessions it holds (protocol 0.5.0), sent only by a runner that said
|
|
621
|
+
* `drive`. `started`, `output` (for an output request or a release) and `handed-back` answer a `drive`
|
|
622
|
+
* request by its `id`, and `refused` is sent in place of any answer; the rest are the sessions' own
|
|
623
|
+
* events, in the order they happened. A turn is named by the instruction that started it (`turn`): a
|
|
624
|
+
* start's first instruction by the start's `id`, and a driven take's first turn by the handoff
|
|
625
|
+
* message's `session`, the bare uuid. A driven take is answered by `taken`, as every take is (its
|
|
626
|
+
* failures say why no session opened), and then by `held` with why `started`. A turn that ends with no
|
|
627
|
+
* reply text sends no `reply`.
|
|
628
|
+
*
|
|
629
|
+
* Every `driven` message is live-only: it goes only while the runner's link is up and never waits in
|
|
630
|
+
* the link's reply outbox, so a long turn can't push the replies to the server's requests out of it,
|
|
631
|
+
* and a prompt that has timed out isn't shown again. After every hello, `holding` says where each
|
|
632
|
+
* session stands, and right after it the runner sends `prompt` again for each prompt still waiting,
|
|
633
|
+
* with the same `prompt` id and `expires`, so one raised while the link was down, or before the server
|
|
634
|
+
* restarted, can still be answered.
|
|
635
|
+
*
|
|
636
|
+
* The runner keeps every field within its limit (the MAX_* constants), cutting what it doesn't pick
|
|
637
|
+
* itself, such as a tool name, to fit: the server refuses a message over any limit and closes the
|
|
638
|
+
* runner's link.
|
|
639
|
+
*
|
|
640
|
+
* Nothing from a session leaves the machine without the runner's secret scan. A reply or output it
|
|
641
|
+
* matched has a `text` that only says so, and `withheld.id` for the owner to release it (drive
|
|
642
|
+
* `release`); a tool summary it matched isn't sent, and a prompt description it matched only says so,
|
|
643
|
+
* both marked `withheld`.
|
|
644
|
+
*/
|
|
645
|
+
export declare const DrivenMessageSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
646
|
+
type: z.ZodLiteral<"driven">;
|
|
647
|
+
v: z.ZodLiteral<1>;
|
|
648
|
+
kind: z.ZodLiteral<"started">;
|
|
649
|
+
id: z.ZodString;
|
|
650
|
+
session: z.ZodString;
|
|
651
|
+
room: z.ZodString;
|
|
652
|
+
permissions: z.ZodEnum<{
|
|
653
|
+
auto: "auto";
|
|
654
|
+
bypassPermissions: "bypassPermissions";
|
|
655
|
+
}>;
|
|
656
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
657
|
+
type: z.ZodLiteral<"driven">;
|
|
658
|
+
v: z.ZodLiteral<1>;
|
|
659
|
+
kind: z.ZodLiteral<"turn-started">;
|
|
660
|
+
session: z.ZodString;
|
|
661
|
+
turn: z.ZodString;
|
|
662
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
663
|
+
type: z.ZodLiteral<"driven">;
|
|
664
|
+
v: z.ZodLiteral<1>;
|
|
665
|
+
kind: z.ZodLiteral<"tool">;
|
|
666
|
+
session: z.ZodString;
|
|
667
|
+
turn: z.ZodString;
|
|
668
|
+
tool: z.ZodString;
|
|
669
|
+
summary: z.ZodOptional<z.ZodString>;
|
|
670
|
+
withheld: z.ZodOptional<z.ZodLiteral<true>>;
|
|
671
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
672
|
+
type: z.ZodLiteral<"driven">;
|
|
673
|
+
v: z.ZodLiteral<1>;
|
|
674
|
+
kind: z.ZodLiteral<"reply">;
|
|
675
|
+
session: z.ZodString;
|
|
676
|
+
turn: z.ZodString;
|
|
677
|
+
text: z.ZodString;
|
|
678
|
+
cut: z.ZodOptional<z.ZodLiteral<true>>;
|
|
679
|
+
withheld: z.ZodOptional<z.ZodObject<{
|
|
680
|
+
id: z.ZodString;
|
|
681
|
+
}, z.core.$strip>>;
|
|
682
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
683
|
+
type: z.ZodLiteral<"driven">;
|
|
684
|
+
v: z.ZodLiteral<1>;
|
|
685
|
+
kind: z.ZodLiteral<"turn-ended">;
|
|
686
|
+
session: z.ZodString;
|
|
687
|
+
turn: z.ZodString;
|
|
688
|
+
outcome: z.ZodEnum<{
|
|
689
|
+
done: "done";
|
|
690
|
+
failed: "failed";
|
|
691
|
+
stopped: "stopped";
|
|
692
|
+
}>;
|
|
693
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
694
|
+
type: z.ZodLiteral<"driven">;
|
|
695
|
+
v: z.ZodLiteral<1>;
|
|
696
|
+
kind: z.ZodLiteral<"error">;
|
|
697
|
+
session: z.ZodString;
|
|
698
|
+
turn: z.ZodOptional<z.ZodString>;
|
|
699
|
+
text: z.ZodString;
|
|
700
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
701
|
+
type: z.ZodLiteral<"driven">;
|
|
702
|
+
v: z.ZodLiteral<1>;
|
|
703
|
+
kind: z.ZodLiteral<"output">;
|
|
704
|
+
id: z.ZodString;
|
|
705
|
+
session: z.ZodString;
|
|
706
|
+
turn: z.ZodOptional<z.ZodString>;
|
|
707
|
+
text: z.ZodString;
|
|
708
|
+
cut: z.ZodOptional<z.ZodLiteral<true>>;
|
|
709
|
+
withheld: z.ZodOptional<z.ZodObject<{
|
|
710
|
+
id: z.ZodString;
|
|
711
|
+
}, z.core.$strip>>;
|
|
712
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
713
|
+
type: z.ZodLiteral<"driven">;
|
|
714
|
+
v: z.ZodLiteral<1>;
|
|
715
|
+
kind: z.ZodLiteral<"prompt">;
|
|
716
|
+
session: z.ZodString;
|
|
717
|
+
turn: z.ZodOptional<z.ZodString>;
|
|
718
|
+
prompt: z.ZodString;
|
|
719
|
+
tool: z.ZodString;
|
|
720
|
+
description: z.ZodString;
|
|
721
|
+
withheld: z.ZodOptional<z.ZodLiteral<true>>;
|
|
722
|
+
expires: z.ZodISODateTime;
|
|
723
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
724
|
+
type: z.ZodLiteral<"driven">;
|
|
725
|
+
v: z.ZodLiteral<1>;
|
|
726
|
+
kind: z.ZodLiteral<"prompt-ended">;
|
|
727
|
+
session: z.ZodString;
|
|
728
|
+
prompt: z.ZodString;
|
|
729
|
+
outcome: z.ZodEnum<{
|
|
730
|
+
allowed: "allowed";
|
|
731
|
+
cancelled: "cancelled";
|
|
732
|
+
denied: "denied";
|
|
733
|
+
"timed-out": "timed-out";
|
|
734
|
+
}>;
|
|
735
|
+
id: z.ZodOptional<z.ZodString>;
|
|
736
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
737
|
+
type: z.ZodLiteral<"driven">;
|
|
738
|
+
v: z.ZodLiteral<1>;
|
|
739
|
+
kind: z.ZodLiteral<"held">;
|
|
740
|
+
session: z.ZodString;
|
|
741
|
+
room: z.ZodString;
|
|
742
|
+
why: z.ZodEnum<{
|
|
743
|
+
reopened: "reopened";
|
|
744
|
+
restored: "restored";
|
|
745
|
+
started: "started";
|
|
746
|
+
}>;
|
|
747
|
+
permissions: z.ZodEnum<{
|
|
748
|
+
auto: "auto";
|
|
749
|
+
bypassPermissions: "bypassPermissions";
|
|
750
|
+
}>;
|
|
751
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
752
|
+
type: z.ZodLiteral<"driven">;
|
|
753
|
+
v: z.ZodLiteral<1>;
|
|
754
|
+
kind: z.ZodLiteral<"released">;
|
|
755
|
+
session: z.ZodString;
|
|
756
|
+
why: z.ZodEnum<{
|
|
757
|
+
crashed: "crashed";
|
|
758
|
+
"handed-back": "handed-back";
|
|
759
|
+
"idle-closed": "idle-closed";
|
|
760
|
+
stopped: "stopped";
|
|
761
|
+
}>;
|
|
762
|
+
id: z.ZodOptional<z.ZodString>;
|
|
763
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
764
|
+
type: z.ZodLiteral<"driven">;
|
|
765
|
+
v: z.ZodLiteral<1>;
|
|
766
|
+
kind: z.ZodLiteral<"handed-back">;
|
|
767
|
+
id: z.ZodString;
|
|
768
|
+
session: z.ZodString;
|
|
769
|
+
command: z.ZodString;
|
|
770
|
+
folder: z.ZodString;
|
|
771
|
+
}, z.core.$strip>, z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
772
|
+
type: z.ZodLiteral<"driven">;
|
|
773
|
+
v: z.ZodLiteral<1>;
|
|
774
|
+
kind: z.ZodLiteral<"refused">;
|
|
775
|
+
id: z.ZodString;
|
|
776
|
+
reason: z.ZodEnum<{
|
|
777
|
+
busy: "busy";
|
|
778
|
+
"bypass-off": "bypass-off";
|
|
779
|
+
"no-claude": "no-claude";
|
|
780
|
+
"no-folder": "no-folder";
|
|
781
|
+
"no-prompt": "no-prompt";
|
|
782
|
+
"not-found": "not-found";
|
|
783
|
+
"not-owner": "not-owner";
|
|
784
|
+
}>;
|
|
785
|
+
detail: z.ZodOptional<z.ZodString>;
|
|
786
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
787
|
+
type: z.ZodLiteral<"driven">;
|
|
788
|
+
v: z.ZodLiteral<1>;
|
|
789
|
+
kind: z.ZodLiteral<"refused">;
|
|
790
|
+
id: z.ZodString;
|
|
791
|
+
reason: z.ZodLiteral<"cap-reached">;
|
|
792
|
+
limit: z.ZodNumber;
|
|
793
|
+
detail: z.ZodOptional<z.ZodString>;
|
|
794
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
795
|
+
type: z.ZodLiteral<"driven">;
|
|
796
|
+
v: z.ZodLiteral<1>;
|
|
797
|
+
kind: z.ZodLiteral<"refused">;
|
|
798
|
+
id: z.ZodString;
|
|
799
|
+
reason: z.ZodLiteral<"unavailable">;
|
|
800
|
+
detail: z.ZodString;
|
|
801
|
+
}, z.core.$strip>], "reason">, z.ZodObject<{
|
|
802
|
+
type: z.ZodLiteral<"driven">;
|
|
803
|
+
v: z.ZodLiteral<1>;
|
|
804
|
+
kind: z.ZodLiteral<"holding">;
|
|
805
|
+
sessions: z.ZodArray<z.ZodObject<{
|
|
806
|
+
session: z.ZodString;
|
|
807
|
+
room: z.ZodString;
|
|
808
|
+
held: z.ZodBoolean;
|
|
809
|
+
permissions: z.ZodEnum<{
|
|
810
|
+
auto: "auto";
|
|
811
|
+
bypassPermissions: "bypassPermissions";
|
|
812
|
+
}>;
|
|
813
|
+
turn: z.ZodOptional<z.ZodString>;
|
|
814
|
+
}, z.core.$strip>>;
|
|
815
|
+
}, z.core.$strip>], "kind">;
|
|
573
816
|
export declare const DataLayerMessageSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
574
817
|
type: z.ZodLiteral<"hello">;
|
|
575
818
|
v: z.ZodLiteral<1>;
|
|
@@ -601,6 +844,8 @@ export declare const DataLayerMessageSchema: z.ZodDiscriminatedUnion<[z.ZodObjec
|
|
|
601
844
|
}, z.core.$strip>;
|
|
602
845
|
token: z.ZodOptional<z.ZodString>;
|
|
603
846
|
orca: z.ZodOptional<z.ZodBoolean>;
|
|
847
|
+
desktop: z.ZodOptional<z.ZodBoolean>;
|
|
848
|
+
drive: z.ZodOptional<z.ZodBoolean>;
|
|
604
849
|
}, z.core.$strip>, z.ZodObject<{
|
|
605
850
|
type: z.ZodLiteral<"full">;
|
|
606
851
|
v: z.ZodLiteral<1>;
|
|
@@ -953,6 +1198,7 @@ export declare const DataLayerMessageSchema: z.ZodDiscriminatedUnion<[z.ZodObjec
|
|
|
953
1198
|
"owner-tokens": "owner-tokens";
|
|
954
1199
|
"room-hour": "room-hour";
|
|
955
1200
|
}>>;
|
|
1201
|
+
noClaude: z.ZodOptional<z.ZodLiteral<true>>;
|
|
956
1202
|
}, z.core.$strip>, z.ZodObject<{
|
|
957
1203
|
type: z.ZodLiteral<"reply">;
|
|
958
1204
|
v: z.ZodLiteral<1>;
|
|
@@ -1041,7 +1287,177 @@ export declare const DataLayerMessageSchema: z.ZodDiscriminatedUnion<[z.ZodObjec
|
|
|
1041
1287
|
type: z.ZodLiteral<"asked-ack">;
|
|
1042
1288
|
v: z.ZodLiteral<1>;
|
|
1043
1289
|
question: z.ZodString;
|
|
1044
|
-
}, z.core.$strip
|
|
1290
|
+
}, z.core.$strip>, z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
1291
|
+
type: z.ZodLiteral<"driven">;
|
|
1292
|
+
v: z.ZodLiteral<1>;
|
|
1293
|
+
kind: z.ZodLiteral<"started">;
|
|
1294
|
+
id: z.ZodString;
|
|
1295
|
+
session: z.ZodString;
|
|
1296
|
+
room: z.ZodString;
|
|
1297
|
+
permissions: z.ZodEnum<{
|
|
1298
|
+
auto: "auto";
|
|
1299
|
+
bypassPermissions: "bypassPermissions";
|
|
1300
|
+
}>;
|
|
1301
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
1302
|
+
type: z.ZodLiteral<"driven">;
|
|
1303
|
+
v: z.ZodLiteral<1>;
|
|
1304
|
+
kind: z.ZodLiteral<"turn-started">;
|
|
1305
|
+
session: z.ZodString;
|
|
1306
|
+
turn: z.ZodString;
|
|
1307
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
1308
|
+
type: z.ZodLiteral<"driven">;
|
|
1309
|
+
v: z.ZodLiteral<1>;
|
|
1310
|
+
kind: z.ZodLiteral<"tool">;
|
|
1311
|
+
session: z.ZodString;
|
|
1312
|
+
turn: z.ZodString;
|
|
1313
|
+
tool: z.ZodString;
|
|
1314
|
+
summary: z.ZodOptional<z.ZodString>;
|
|
1315
|
+
withheld: z.ZodOptional<z.ZodLiteral<true>>;
|
|
1316
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
1317
|
+
type: z.ZodLiteral<"driven">;
|
|
1318
|
+
v: z.ZodLiteral<1>;
|
|
1319
|
+
kind: z.ZodLiteral<"reply">;
|
|
1320
|
+
session: z.ZodString;
|
|
1321
|
+
turn: z.ZodString;
|
|
1322
|
+
text: z.ZodString;
|
|
1323
|
+
cut: z.ZodOptional<z.ZodLiteral<true>>;
|
|
1324
|
+
withheld: z.ZodOptional<z.ZodObject<{
|
|
1325
|
+
id: z.ZodString;
|
|
1326
|
+
}, z.core.$strip>>;
|
|
1327
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
1328
|
+
type: z.ZodLiteral<"driven">;
|
|
1329
|
+
v: z.ZodLiteral<1>;
|
|
1330
|
+
kind: z.ZodLiteral<"turn-ended">;
|
|
1331
|
+
session: z.ZodString;
|
|
1332
|
+
turn: z.ZodString;
|
|
1333
|
+
outcome: z.ZodEnum<{
|
|
1334
|
+
done: "done";
|
|
1335
|
+
failed: "failed";
|
|
1336
|
+
stopped: "stopped";
|
|
1337
|
+
}>;
|
|
1338
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
1339
|
+
type: z.ZodLiteral<"driven">;
|
|
1340
|
+
v: z.ZodLiteral<1>;
|
|
1341
|
+
kind: z.ZodLiteral<"error">;
|
|
1342
|
+
session: z.ZodString;
|
|
1343
|
+
turn: z.ZodOptional<z.ZodString>;
|
|
1344
|
+
text: z.ZodString;
|
|
1345
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
1346
|
+
type: z.ZodLiteral<"driven">;
|
|
1347
|
+
v: z.ZodLiteral<1>;
|
|
1348
|
+
kind: z.ZodLiteral<"output">;
|
|
1349
|
+
id: z.ZodString;
|
|
1350
|
+
session: z.ZodString;
|
|
1351
|
+
turn: z.ZodOptional<z.ZodString>;
|
|
1352
|
+
text: z.ZodString;
|
|
1353
|
+
cut: z.ZodOptional<z.ZodLiteral<true>>;
|
|
1354
|
+
withheld: z.ZodOptional<z.ZodObject<{
|
|
1355
|
+
id: z.ZodString;
|
|
1356
|
+
}, z.core.$strip>>;
|
|
1357
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
1358
|
+
type: z.ZodLiteral<"driven">;
|
|
1359
|
+
v: z.ZodLiteral<1>;
|
|
1360
|
+
kind: z.ZodLiteral<"prompt">;
|
|
1361
|
+
session: z.ZodString;
|
|
1362
|
+
turn: z.ZodOptional<z.ZodString>;
|
|
1363
|
+
prompt: z.ZodString;
|
|
1364
|
+
tool: z.ZodString;
|
|
1365
|
+
description: z.ZodString;
|
|
1366
|
+
withheld: z.ZodOptional<z.ZodLiteral<true>>;
|
|
1367
|
+
expires: z.ZodISODateTime;
|
|
1368
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
1369
|
+
type: z.ZodLiteral<"driven">;
|
|
1370
|
+
v: z.ZodLiteral<1>;
|
|
1371
|
+
kind: z.ZodLiteral<"prompt-ended">;
|
|
1372
|
+
session: z.ZodString;
|
|
1373
|
+
prompt: z.ZodString;
|
|
1374
|
+
outcome: z.ZodEnum<{
|
|
1375
|
+
allowed: "allowed";
|
|
1376
|
+
cancelled: "cancelled";
|
|
1377
|
+
denied: "denied";
|
|
1378
|
+
"timed-out": "timed-out";
|
|
1379
|
+
}>;
|
|
1380
|
+
id: z.ZodOptional<z.ZodString>;
|
|
1381
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
1382
|
+
type: z.ZodLiteral<"driven">;
|
|
1383
|
+
v: z.ZodLiteral<1>;
|
|
1384
|
+
kind: z.ZodLiteral<"held">;
|
|
1385
|
+
session: z.ZodString;
|
|
1386
|
+
room: z.ZodString;
|
|
1387
|
+
why: z.ZodEnum<{
|
|
1388
|
+
reopened: "reopened";
|
|
1389
|
+
restored: "restored";
|
|
1390
|
+
started: "started";
|
|
1391
|
+
}>;
|
|
1392
|
+
permissions: z.ZodEnum<{
|
|
1393
|
+
auto: "auto";
|
|
1394
|
+
bypassPermissions: "bypassPermissions";
|
|
1395
|
+
}>;
|
|
1396
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
1397
|
+
type: z.ZodLiteral<"driven">;
|
|
1398
|
+
v: z.ZodLiteral<1>;
|
|
1399
|
+
kind: z.ZodLiteral<"released">;
|
|
1400
|
+
session: z.ZodString;
|
|
1401
|
+
why: z.ZodEnum<{
|
|
1402
|
+
crashed: "crashed";
|
|
1403
|
+
"handed-back": "handed-back";
|
|
1404
|
+
"idle-closed": "idle-closed";
|
|
1405
|
+
stopped: "stopped";
|
|
1406
|
+
}>;
|
|
1407
|
+
id: z.ZodOptional<z.ZodString>;
|
|
1408
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
1409
|
+
type: z.ZodLiteral<"driven">;
|
|
1410
|
+
v: z.ZodLiteral<1>;
|
|
1411
|
+
kind: z.ZodLiteral<"handed-back">;
|
|
1412
|
+
id: z.ZodString;
|
|
1413
|
+
session: z.ZodString;
|
|
1414
|
+
command: z.ZodString;
|
|
1415
|
+
folder: z.ZodString;
|
|
1416
|
+
}, z.core.$strip>, z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
1417
|
+
type: z.ZodLiteral<"driven">;
|
|
1418
|
+
v: z.ZodLiteral<1>;
|
|
1419
|
+
kind: z.ZodLiteral<"refused">;
|
|
1420
|
+
id: z.ZodString;
|
|
1421
|
+
reason: z.ZodEnum<{
|
|
1422
|
+
busy: "busy";
|
|
1423
|
+
"bypass-off": "bypass-off";
|
|
1424
|
+
"no-claude": "no-claude";
|
|
1425
|
+
"no-folder": "no-folder";
|
|
1426
|
+
"no-prompt": "no-prompt";
|
|
1427
|
+
"not-found": "not-found";
|
|
1428
|
+
"not-owner": "not-owner";
|
|
1429
|
+
}>;
|
|
1430
|
+
detail: z.ZodOptional<z.ZodString>;
|
|
1431
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
1432
|
+
type: z.ZodLiteral<"driven">;
|
|
1433
|
+
v: z.ZodLiteral<1>;
|
|
1434
|
+
kind: z.ZodLiteral<"refused">;
|
|
1435
|
+
id: z.ZodString;
|
|
1436
|
+
reason: z.ZodLiteral<"cap-reached">;
|
|
1437
|
+
limit: z.ZodNumber;
|
|
1438
|
+
detail: z.ZodOptional<z.ZodString>;
|
|
1439
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
1440
|
+
type: z.ZodLiteral<"driven">;
|
|
1441
|
+
v: z.ZodLiteral<1>;
|
|
1442
|
+
kind: z.ZodLiteral<"refused">;
|
|
1443
|
+
id: z.ZodString;
|
|
1444
|
+
reason: z.ZodLiteral<"unavailable">;
|
|
1445
|
+
detail: z.ZodString;
|
|
1446
|
+
}, z.core.$strip>], "reason">, z.ZodObject<{
|
|
1447
|
+
type: z.ZodLiteral<"driven">;
|
|
1448
|
+
v: z.ZodLiteral<1>;
|
|
1449
|
+
kind: z.ZodLiteral<"holding">;
|
|
1450
|
+
sessions: z.ZodArray<z.ZodObject<{
|
|
1451
|
+
session: z.ZodString;
|
|
1452
|
+
room: z.ZodString;
|
|
1453
|
+
held: z.ZodBoolean;
|
|
1454
|
+
permissions: z.ZodEnum<{
|
|
1455
|
+
auto: "auto";
|
|
1456
|
+
bypassPermissions: "bypassPermissions";
|
|
1457
|
+
}>;
|
|
1458
|
+
turn: z.ZodOptional<z.ZodString>;
|
|
1459
|
+
}, z.core.$strip>>;
|
|
1460
|
+
}, z.core.$strip>], "kind">], "type">;
|
|
1045
1461
|
/** Asks the data layer to send its facts in full. */
|
|
1046
1462
|
export declare const RepairMessageSchema: z.ZodObject<{
|
|
1047
1463
|
type: z.ZodLiteral<"repair">;
|
|
@@ -1122,7 +1538,9 @@ export declare const RequestMessageSchema: z.ZodDiscriminatedUnion<[z.ZodObject<
|
|
|
1122
1538
|
}, z.core.$strip>], "kind">;
|
|
1123
1539
|
/**
|
|
1124
1540
|
* The request is over (its handoff was cancelled, dismissed or replaced): the machine drops what it
|
|
1125
|
-
* holds for it, and doesn't send or push what it was still writing.
|
|
1541
|
+
* holds for it, and doesn't send or push what it was still writing. From protocol 0.4.0 `id` may be
|
|
1542
|
+
* a take's session id, to a runner taking a handoff from the floor that was cancelled or timed out:
|
|
1543
|
+
* the take opens nothing more (a take into the Claude app doesn't open the app).
|
|
1126
1544
|
*/
|
|
1127
1545
|
export declare const DropMessageSchema: z.ZodObject<{
|
|
1128
1546
|
type: z.ZodLiteral<"drop">;
|
|
@@ -1157,11 +1575,22 @@ export declare const HandoffMessageSchema: z.ZodObject<{
|
|
|
1157
1575
|
}, z.core.$strip>>;
|
|
1158
1576
|
}, z.core.$strip>;
|
|
1159
1577
|
mode: z.ZodOptional<z.ZodEnum<{
|
|
1578
|
+
desktop: "desktop";
|
|
1579
|
+
driven: "driven";
|
|
1160
1580
|
headless: "headless";
|
|
1161
1581
|
orca: "orca";
|
|
1162
1582
|
terminal: "terminal";
|
|
1163
1583
|
}>>;
|
|
1164
1584
|
session: z.ZodOptional<z.ZodString>;
|
|
1585
|
+
by: z.ZodOptional<z.ZodObject<{
|
|
1586
|
+
id: z.ZodString;
|
|
1587
|
+
name: z.ZodString;
|
|
1588
|
+
}, z.core.$strip>>;
|
|
1589
|
+
room: z.ZodOptional<z.ZodString>;
|
|
1590
|
+
permissions: z.ZodOptional<z.ZodEnum<{
|
|
1591
|
+
auto: "auto";
|
|
1592
|
+
bypassPermissions: "bypassPermissions";
|
|
1593
|
+
}>>;
|
|
1165
1594
|
}, z.core.$strip>;
|
|
1166
1595
|
/** A hand-over-check passed: `to` is the receiver the server found for the name given. */
|
|
1167
1596
|
export declare const HandOverReadyMessageSchema: z.ZodObject<{
|
|
@@ -1227,6 +1656,124 @@ export declare const AskRightsMessageSchema: z.ZodObject<{
|
|
|
1227
1656
|
}, z.core.$strip>;
|
|
1228
1657
|
granted: z.ZodBoolean;
|
|
1229
1658
|
}, z.core.$strip>;
|
|
1659
|
+
/**
|
|
1660
|
+
* A person acting on a driven session from the floor (protocol 0.5.0), sent only to a runner that said
|
|
1661
|
+
* `drive`, and only to the owner's own runner. `by` is the person acting, whom the runner checks is its
|
|
1662
|
+
* own person, and refuses `not-owner` otherwise. The runner answers by `id` (see `driven`). Nothing is
|
|
1663
|
+
* queued: the server refuses a request for a runner that isn't linked at once (`offline`, see
|
|
1664
|
+
* FloorDriveRefusalReason).
|
|
1665
|
+
*/
|
|
1666
|
+
export declare const DriveMessageSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
1667
|
+
type: z.ZodLiteral<"drive">;
|
|
1668
|
+
v: z.ZodLiteral<1>;
|
|
1669
|
+
id: z.ZodString;
|
|
1670
|
+
by: z.ZodObject<{
|
|
1671
|
+
id: z.ZodString;
|
|
1672
|
+
name: z.ZodString;
|
|
1673
|
+
}, z.core.$strip>;
|
|
1674
|
+
kind: z.ZodLiteral<"start">;
|
|
1675
|
+
room: z.ZodString;
|
|
1676
|
+
project: z.ZodObject<{
|
|
1677
|
+
id: z.ZodString;
|
|
1678
|
+
name: z.ZodString;
|
|
1679
|
+
}, z.core.$strip>;
|
|
1680
|
+
roomSessions: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
1681
|
+
instruction: z.ZodOptional<z.ZodString>;
|
|
1682
|
+
permissions: z.ZodEnum<{
|
|
1683
|
+
auto: "auto";
|
|
1684
|
+
bypassPermissions: "bypassPermissions";
|
|
1685
|
+
}>;
|
|
1686
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
1687
|
+
type: z.ZodLiteral<"drive">;
|
|
1688
|
+
v: z.ZodLiteral<1>;
|
|
1689
|
+
id: z.ZodString;
|
|
1690
|
+
by: z.ZodObject<{
|
|
1691
|
+
id: z.ZodString;
|
|
1692
|
+
name: z.ZodString;
|
|
1693
|
+
}, z.core.$strip>;
|
|
1694
|
+
kind: z.ZodLiteral<"instruct">;
|
|
1695
|
+
session: z.ZodString;
|
|
1696
|
+
text: z.ZodString;
|
|
1697
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
1698
|
+
type: z.ZodLiteral<"drive">;
|
|
1699
|
+
v: z.ZodLiteral<1>;
|
|
1700
|
+
id: z.ZodString;
|
|
1701
|
+
by: z.ZodObject<{
|
|
1702
|
+
id: z.ZodString;
|
|
1703
|
+
name: z.ZodString;
|
|
1704
|
+
}, z.core.$strip>;
|
|
1705
|
+
kind: z.ZodLiteral<"stop">;
|
|
1706
|
+
session: z.ZodString;
|
|
1707
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
1708
|
+
type: z.ZodLiteral<"drive">;
|
|
1709
|
+
v: z.ZodLiteral<1>;
|
|
1710
|
+
id: z.ZodString;
|
|
1711
|
+
by: z.ZodObject<{
|
|
1712
|
+
id: z.ZodString;
|
|
1713
|
+
name: z.ZodString;
|
|
1714
|
+
}, z.core.$strip>;
|
|
1715
|
+
kind: z.ZodLiteral<"hand-back">;
|
|
1716
|
+
session: z.ZodString;
|
|
1717
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
1718
|
+
type: z.ZodLiteral<"drive">;
|
|
1719
|
+
v: z.ZodLiteral<1>;
|
|
1720
|
+
id: z.ZodString;
|
|
1721
|
+
by: z.ZodObject<{
|
|
1722
|
+
id: z.ZodString;
|
|
1723
|
+
name: z.ZodString;
|
|
1724
|
+
}, z.core.$strip>;
|
|
1725
|
+
kind: z.ZodLiteral<"output">;
|
|
1726
|
+
session: z.ZodString;
|
|
1727
|
+
turn: z.ZodOptional<z.ZodString>;
|
|
1728
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
1729
|
+
type: z.ZodLiteral<"drive">;
|
|
1730
|
+
v: z.ZodLiteral<1>;
|
|
1731
|
+
id: z.ZodString;
|
|
1732
|
+
by: z.ZodObject<{
|
|
1733
|
+
id: z.ZodString;
|
|
1734
|
+
name: z.ZodString;
|
|
1735
|
+
}, z.core.$strip>;
|
|
1736
|
+
kind: z.ZodLiteral<"answer">;
|
|
1737
|
+
session: z.ZodString;
|
|
1738
|
+
prompt: z.ZodString;
|
|
1739
|
+
answer: z.ZodEnum<{
|
|
1740
|
+
allow: "allow";
|
|
1741
|
+
deny: "deny";
|
|
1742
|
+
}>;
|
|
1743
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
1744
|
+
type: z.ZodLiteral<"drive">;
|
|
1745
|
+
v: z.ZodLiteral<1>;
|
|
1746
|
+
id: z.ZodString;
|
|
1747
|
+
by: z.ZodObject<{
|
|
1748
|
+
id: z.ZodString;
|
|
1749
|
+
name: z.ZodString;
|
|
1750
|
+
}, z.core.$strip>;
|
|
1751
|
+
kind: z.ZodLiteral<"release">;
|
|
1752
|
+
session: z.ZodString;
|
|
1753
|
+
withheld: z.ZodString;
|
|
1754
|
+
}, z.core.$strip>], "kind">;
|
|
1755
|
+
/**
|
|
1756
|
+
* Where people may skip permission prompts in driven sessions (protocol 0.5.0): `bypassAllowed` lists
|
|
1757
|
+
* the projects, lower-cased, whose office allows `bypassPermissions`; an admin can turn it off for the
|
|
1758
|
+
* whole office. A project id here is as long as it comes, as everywhere in the protocol, so any
|
|
1759
|
+
* project the server holds can be listed. Sent to a runner that said `drive` once its hello is let in,
|
|
1760
|
+
* before any drive request, and again whenever an admin changes it. Until one arrives on a connection,
|
|
1761
|
+
* and in any project it doesn't list, the runner opens no session's process with `bypassPermissions`:
|
|
1762
|
+
* not to start, reopen or restore one. What a session already running does when its project leaves
|
|
1763
|
+
* the list is the runner's to decide (#42).
|
|
1764
|
+
*
|
|
1765
|
+
* It is a message of its own, not a field of each start, because the runner enforces it as a standing
|
|
1766
|
+
* rule: a change has to reach the runner while its sessions run, and a session the runner restores
|
|
1767
|
+
* after its own restart comes with no start. Kept apart from a start's `permissions`, which is the
|
|
1768
|
+
* person's own choice, a mistake in the server's start path alone can't skip prompts in a project
|
|
1769
|
+
* whose office hasn't allowed it. It is by project because one server can host several offices, and a
|
|
1770
|
+
* runner's link serves all of them.
|
|
1771
|
+
*/
|
|
1772
|
+
export declare const DrivePolicyMessageSchema: z.ZodObject<{
|
|
1773
|
+
type: z.ZodLiteral<"drive-policy">;
|
|
1774
|
+
v: z.ZodLiteral<1>;
|
|
1775
|
+
bypassAllowed: z.ZodArray<z.ZodString>;
|
|
1776
|
+
}, z.core.$strip>;
|
|
1230
1777
|
export declare const OfficeServerMessageSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
1231
1778
|
type: z.ZodLiteral<"repair">;
|
|
1232
1779
|
v: z.ZodLiteral<1>;
|
|
@@ -1302,11 +1849,22 @@ export declare const OfficeServerMessageSchema: z.ZodDiscriminatedUnion<[z.ZodOb
|
|
|
1302
1849
|
}, z.core.$strip>>;
|
|
1303
1850
|
}, z.core.$strip>;
|
|
1304
1851
|
mode: z.ZodOptional<z.ZodEnum<{
|
|
1852
|
+
desktop: "desktop";
|
|
1853
|
+
driven: "driven";
|
|
1305
1854
|
headless: "headless";
|
|
1306
1855
|
orca: "orca";
|
|
1307
1856
|
terminal: "terminal";
|
|
1308
1857
|
}>>;
|
|
1309
1858
|
session: z.ZodOptional<z.ZodString>;
|
|
1859
|
+
by: z.ZodOptional<z.ZodObject<{
|
|
1860
|
+
id: z.ZodString;
|
|
1861
|
+
name: z.ZodString;
|
|
1862
|
+
}, z.core.$strip>>;
|
|
1863
|
+
room: z.ZodOptional<z.ZodString>;
|
|
1864
|
+
permissions: z.ZodOptional<z.ZodEnum<{
|
|
1865
|
+
auto: "auto";
|
|
1866
|
+
bypassPermissions: "bypassPermissions";
|
|
1867
|
+
}>>;
|
|
1310
1868
|
}, z.core.$strip>, z.ZodObject<{
|
|
1311
1869
|
type: z.ZodLiteral<"handed-over">;
|
|
1312
1870
|
v: z.ZodLiteral<1>;
|
|
@@ -1352,6 +1910,98 @@ export declare const OfficeServerMessageSchema: z.ZodDiscriminatedUnion<[z.ZodOb
|
|
|
1352
1910
|
name: z.ZodString;
|
|
1353
1911
|
}, z.core.$strip>;
|
|
1354
1912
|
granted: z.ZodBoolean;
|
|
1913
|
+
}, z.core.$strip>, z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
1914
|
+
type: z.ZodLiteral<"drive">;
|
|
1915
|
+
v: z.ZodLiteral<1>;
|
|
1916
|
+
id: z.ZodString;
|
|
1917
|
+
by: z.ZodObject<{
|
|
1918
|
+
id: z.ZodString;
|
|
1919
|
+
name: z.ZodString;
|
|
1920
|
+
}, z.core.$strip>;
|
|
1921
|
+
kind: z.ZodLiteral<"start">;
|
|
1922
|
+
room: z.ZodString;
|
|
1923
|
+
project: z.ZodObject<{
|
|
1924
|
+
id: z.ZodString;
|
|
1925
|
+
name: z.ZodString;
|
|
1926
|
+
}, z.core.$strip>;
|
|
1927
|
+
roomSessions: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
1928
|
+
instruction: z.ZodOptional<z.ZodString>;
|
|
1929
|
+
permissions: z.ZodEnum<{
|
|
1930
|
+
auto: "auto";
|
|
1931
|
+
bypassPermissions: "bypassPermissions";
|
|
1932
|
+
}>;
|
|
1933
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
1934
|
+
type: z.ZodLiteral<"drive">;
|
|
1935
|
+
v: z.ZodLiteral<1>;
|
|
1936
|
+
id: z.ZodString;
|
|
1937
|
+
by: z.ZodObject<{
|
|
1938
|
+
id: z.ZodString;
|
|
1939
|
+
name: z.ZodString;
|
|
1940
|
+
}, z.core.$strip>;
|
|
1941
|
+
kind: z.ZodLiteral<"instruct">;
|
|
1942
|
+
session: z.ZodString;
|
|
1943
|
+
text: z.ZodString;
|
|
1944
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
1945
|
+
type: z.ZodLiteral<"drive">;
|
|
1946
|
+
v: z.ZodLiteral<1>;
|
|
1947
|
+
id: z.ZodString;
|
|
1948
|
+
by: z.ZodObject<{
|
|
1949
|
+
id: z.ZodString;
|
|
1950
|
+
name: z.ZodString;
|
|
1951
|
+
}, z.core.$strip>;
|
|
1952
|
+
kind: z.ZodLiteral<"stop">;
|
|
1953
|
+
session: z.ZodString;
|
|
1954
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
1955
|
+
type: z.ZodLiteral<"drive">;
|
|
1956
|
+
v: z.ZodLiteral<1>;
|
|
1957
|
+
id: z.ZodString;
|
|
1958
|
+
by: z.ZodObject<{
|
|
1959
|
+
id: z.ZodString;
|
|
1960
|
+
name: z.ZodString;
|
|
1961
|
+
}, z.core.$strip>;
|
|
1962
|
+
kind: z.ZodLiteral<"hand-back">;
|
|
1963
|
+
session: z.ZodString;
|
|
1964
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
1965
|
+
type: z.ZodLiteral<"drive">;
|
|
1966
|
+
v: z.ZodLiteral<1>;
|
|
1967
|
+
id: z.ZodString;
|
|
1968
|
+
by: z.ZodObject<{
|
|
1969
|
+
id: z.ZodString;
|
|
1970
|
+
name: z.ZodString;
|
|
1971
|
+
}, z.core.$strip>;
|
|
1972
|
+
kind: z.ZodLiteral<"output">;
|
|
1973
|
+
session: z.ZodString;
|
|
1974
|
+
turn: z.ZodOptional<z.ZodString>;
|
|
1975
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
1976
|
+
type: z.ZodLiteral<"drive">;
|
|
1977
|
+
v: z.ZodLiteral<1>;
|
|
1978
|
+
id: z.ZodString;
|
|
1979
|
+
by: z.ZodObject<{
|
|
1980
|
+
id: z.ZodString;
|
|
1981
|
+
name: z.ZodString;
|
|
1982
|
+
}, z.core.$strip>;
|
|
1983
|
+
kind: z.ZodLiteral<"answer">;
|
|
1984
|
+
session: z.ZodString;
|
|
1985
|
+
prompt: z.ZodString;
|
|
1986
|
+
answer: z.ZodEnum<{
|
|
1987
|
+
allow: "allow";
|
|
1988
|
+
deny: "deny";
|
|
1989
|
+
}>;
|
|
1990
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
1991
|
+
type: z.ZodLiteral<"drive">;
|
|
1992
|
+
v: z.ZodLiteral<1>;
|
|
1993
|
+
id: z.ZodString;
|
|
1994
|
+
by: z.ZodObject<{
|
|
1995
|
+
id: z.ZodString;
|
|
1996
|
+
name: z.ZodString;
|
|
1997
|
+
}, z.core.$strip>;
|
|
1998
|
+
kind: z.ZodLiteral<"release">;
|
|
1999
|
+
session: z.ZodString;
|
|
2000
|
+
withheld: z.ZodString;
|
|
2001
|
+
}, z.core.$strip>], "kind">, z.ZodObject<{
|
|
2002
|
+
type: z.ZodLiteral<"drive-policy">;
|
|
2003
|
+
v: z.ZodLiteral<1>;
|
|
2004
|
+
bypassAllowed: z.ZodArray<z.ZodString>;
|
|
1355
2005
|
}, z.core.$strip>], "type">;
|
|
1356
2006
|
export type HandoffRepo = z.infer<typeof HandoffRepoSchema>;
|
|
1357
2007
|
export type Handoff = z.infer<typeof HandoffSchema>;
|
|
@@ -1383,6 +2033,21 @@ export type AskedAckMessage = z.infer<typeof AskedAckMessageSchema>;
|
|
|
1383
2033
|
export type AskRightsMessage = z.infer<typeof AskRightsMessageSchema>;
|
|
1384
2034
|
export type OfficeServerMessage = z.infer<typeof OfficeServerMessageSchema>;
|
|
1385
2035
|
export type WelcomeMessage = z.infer<typeof WelcomeMessageSchema>;
|
|
2036
|
+
export type DrivePermissions = z.infer<typeof DrivePermissionsSchema>;
|
|
2037
|
+
export type DriveMessage = z.infer<typeof DriveMessageSchema>;
|
|
2038
|
+
export type DriveKind = DriveMessage["kind"];
|
|
2039
|
+
export type DrivePolicyMessage = z.infer<typeof DrivePolicyMessageSchema>;
|
|
2040
|
+
export type DrivenMessage = z.infer<typeof DrivenMessageSchema>;
|
|
2041
|
+
export type DrivenKind = DrivenMessage["kind"];
|
|
2042
|
+
export type DriveRefusal = Extract<DrivenMessage, {
|
|
2043
|
+
kind: "refused";
|
|
2044
|
+
}>;
|
|
2045
|
+
export type DriveRefusalReason = DriveRefusal["reason"];
|
|
2046
|
+
/**
|
|
2047
|
+
* The reasons the floor shows for a refused drive request: a runner's, and `offline`, the server's
|
|
2048
|
+
* own, for a request it refused at once because the owner's runner isn't linked (nothing is queued).
|
|
2049
|
+
*/
|
|
2050
|
+
export type FloorDriveRefusalReason = DriveRefusalReason | "offline";
|
|
1386
2051
|
/**
|
|
1387
2052
|
* A parsed message, or why it was refused: `unsupported-version` when it carries a protocol
|
|
1388
2053
|
* version this side doesn't speak, `invalid` for anything else wrong with it.
|
package/dist/messages.js
CHANGED
|
@@ -75,6 +75,59 @@ export const HandoffSchema = z
|
|
|
75
75
|
* machine reports as `forged-hello`. A server that signs nobody in ignores it.
|
|
76
76
|
*/
|
|
77
77
|
const Token = z.string().min(1).max(200).optional();
|
|
78
|
+
// Driven sessions (protocol 0.5.0): a Claude Code session the runner runs on its person's machine,
|
|
79
|
+
// which that person drives from the floor: starts, instructs, reads, answers its permission prompts,
|
|
80
|
+
// stops and hands back to their terminal (isoplan-app docs/designs/web-session-view.md). The server
|
|
81
|
+
// sends `drive` requests and `drive-policy`; the runner sends `driven` messages. Only the session's
|
|
82
|
+
// owner acts on it: the server checks, and every `drive` request names who is acting (`by`) so the
|
|
83
|
+
// runner checks again.
|
|
84
|
+
/** The longest instruction a person may send a driven session, a start's first one included. */
|
|
85
|
+
export const MAX_INSTRUCTION_LENGTH = 20000;
|
|
86
|
+
/** The longest agent reply a `driven` reply carries; a longer one is cut to fit and marked `cut`. */
|
|
87
|
+
export const MAX_REPLY_LENGTH = 20000;
|
|
88
|
+
/** The longest full output a `driven` output carries; a longer one is cut to fit and marked `cut`. */
|
|
89
|
+
export const MAX_OUTPUT_LENGTH = 200000;
|
|
90
|
+
/** The longest summary of what a tool use was for. */
|
|
91
|
+
export const MAX_SUMMARY_LENGTH = 500;
|
|
92
|
+
/** The longest description of what a permission prompt asks to do. */
|
|
93
|
+
export const MAX_PROMPT_LENGTH = 2000;
|
|
94
|
+
/** The longest error text or refusal detail. */
|
|
95
|
+
export const MAX_DETAIL_LENGTH = 1000;
|
|
96
|
+
/** The longest id of a drive request, an instruction, a prompt or a withheld text. */
|
|
97
|
+
export const MAX_DRIVE_ID_LENGTH = 100;
|
|
98
|
+
/** The longest driven session id. */
|
|
99
|
+
export const MAX_DRIVEN_SESSION_ID_LENGTH = 200;
|
|
100
|
+
/** The longest room id. */
|
|
101
|
+
export const MAX_ROOM_ID_LENGTH = 200;
|
|
102
|
+
/** The longest tool name, as Claude Code or an MCP server names it (`mcp__<server>__<tool>`). */
|
|
103
|
+
export const MAX_TOOL_NAME_LENGTH = 100;
|
|
104
|
+
/** The longest command a `handed-back` gives to continue the session in a terminal. */
|
|
105
|
+
export const MAX_COMMAND_LENGTH = 500;
|
|
106
|
+
/** The longest folder a `handed-back` names. */
|
|
107
|
+
export const MAX_FOLDER_LENGTH = 4096;
|
|
108
|
+
/** The most room sessions a start names. */
|
|
109
|
+
export const MAX_ROOM_SESSIONS = 20;
|
|
110
|
+
/** The most driven sessions a `holding` message lists. */
|
|
111
|
+
export const MAX_HOLDING = 200;
|
|
112
|
+
/** A drive request's, an instruction's, a prompt's or a withheld text's id. */
|
|
113
|
+
const DriveId = z.string().min(1).max(MAX_DRIVE_ID_LENGTH);
|
|
114
|
+
/** A driven session, by its id as its facts name it (`claude-code:<uuid>`). */
|
|
115
|
+
const DrivenSessionId = z.string().min(1).max(MAX_DRIVEN_SESSION_ID_LENGTH);
|
|
116
|
+
/** A room on the floor, by the server's id for it. */
|
|
117
|
+
const Room = z.string().min(1).max(MAX_ROOM_ID_LENGTH);
|
|
118
|
+
const Instruction = z.string().trim().min(1).max(MAX_INSTRUCTION_LENGTH);
|
|
119
|
+
const ToolName = z.string().min(1).max(MAX_TOOL_NAME_LENGTH);
|
|
120
|
+
const Detail = z.string().min(1).max(MAX_DETAIL_LENGTH);
|
|
121
|
+
/** The text was longer than its field's limit, so the runner cut it to fit. */
|
|
122
|
+
const Cut = z.literal(true).optional();
|
|
123
|
+
/** The secret scan matched the text: it only says so, and its owner can release it by this id (drive `release`). */
|
|
124
|
+
const Withheld = z.object({ id: DriveId }).optional();
|
|
125
|
+
/**
|
|
126
|
+
* The permission mode a driven session runs in: Claude Code's `auto`, the default, or
|
|
127
|
+
* `bypassPermissions`, which skips its permission prompts, for a person who opted in, and only in a
|
|
128
|
+
* project whose office allows it (`drive-policy`).
|
|
129
|
+
*/
|
|
130
|
+
export const DrivePermissionsSchema = z.enum(["auto", "bypassPermissions"]);
|
|
78
131
|
// Data layer → office server.
|
|
79
132
|
/** The first message on a connection: who is reporting, from where, about which session. */
|
|
80
133
|
export const HelloMessageSchema = z.object({
|
|
@@ -90,6 +143,12 @@ export const HelloMessageSchema = z.object({
|
|
|
90
143
|
/**
|
|
91
144
|
* The first message on a runner's link: the one link per machine that answers requests for its rooms.
|
|
92
145
|
* `orca`: Orca's CLI is on this machine, so a handoff can be taken into Orca (mode `orca`).
|
|
146
|
+
* `desktop` (protocol 0.4.0): Claude Code for the terminal, new enough to hand a session to the Claude
|
|
147
|
+
* app, is on this machine, a Mac or Windows x64, so a handoff can be opened in the Claude app (mode `desktop`).
|
|
148
|
+
* `drive` (protocol 0.5.0): this runner drives sessions from the floor: it takes `drive` requests and
|
|
149
|
+
* `drive-policy`, sends `driven` messages, and takes a handoff as a driven session (mode `driven`). The
|
|
150
|
+
* server sends none of these to a runner that didn't say it. A machine with no claude binary still says
|
|
151
|
+
* it, and refuses each start `no-claude`.
|
|
93
152
|
*/
|
|
94
153
|
export const RunnerHelloMessageSchema = z.object({
|
|
95
154
|
type: z.literal("runner"),
|
|
@@ -98,6 +157,8 @@ export const RunnerHelloMessageSchema = z.object({
|
|
|
98
157
|
machine: Machine,
|
|
99
158
|
token: Token,
|
|
100
159
|
orca: z.boolean().optional(),
|
|
160
|
+
desktop: z.boolean().optional(),
|
|
161
|
+
drive: z.boolean().optional(),
|
|
101
162
|
});
|
|
102
163
|
/** All of the session's facts. Sent on connect and on repair. */
|
|
103
164
|
export const FullMessageSchema = z.object({
|
|
@@ -122,7 +183,8 @@ export const ReplyMessageSchema = z.discriminatedUnion("kind", [
|
|
|
122
183
|
// `fallback`: the fork couldn't write the brief, so `brief` is only the runner's note of what was
|
|
123
184
|
// pushed, and the server writes the rest from the room's feed. The branch is pushed either way.
|
|
124
185
|
// `cap`: the cap that stopped the fork running, when that is why, named as in an over-cap refusal.
|
|
125
|
-
|
|
186
|
+
// `noClaude` (protocol 0.4.0): the fork couldn't run because the machine has no claude binary.
|
|
187
|
+
z.object({ type: z.literal("reply"), v: Version, id: RequestId, kind: z.literal("write-brief"), handoff: HandoffSchema, fallback: z.literal(true).optional(), cap: CapSchema.optional(), noClaude: z.literal(true).optional() }),
|
|
126
188
|
// The owner's answer reached the question that was waiting for it. `closed`: the session never said
|
|
127
189
|
// whether it took the answer, but the question has closed, by this answer or the terminal's. `late`:
|
|
128
190
|
// it took the answer after this request was refused for taking too long, so this reply follows that
|
|
@@ -234,6 +296,110 @@ export const AskedAckMessageSchema = z.object({
|
|
|
234
296
|
v: Version,
|
|
235
297
|
question: RequestId,
|
|
236
298
|
});
|
|
299
|
+
const driven = { type: z.literal("driven"), v: Version };
|
|
300
|
+
/**
|
|
301
|
+
* Why a runner won't do what a `drive` request asked, sent in place of its answer (protocol 0.5.0).
|
|
302
|
+
* `not-owner`: the acting person isn't the session's owner, this runner's person. `not-found`: this
|
|
303
|
+
* machine has no driven session by that id that it would act on, or, for a release, holds nothing
|
|
304
|
+
* withheld under that id (it was dropped, or the runner restarted since). `bypass-off`: the start asked for
|
|
305
|
+
* `bypassPermissions` in a project whose office doesn't allow it (`drive-policy`). `no-folder`: this
|
|
306
|
+
* machine has no folder for the room's project. `no-claude`: it has no claude binary. `busy`: the
|
|
307
|
+
* session can't take this now, such as while a turn runs. `no-prompt`: an answer names a prompt the
|
|
308
|
+
* session isn't waiting on (never raised by this runner, answered already, timed out or cancelled).
|
|
309
|
+
* `cap-reached`: the project already has `limit` driven sessions running on this machine.
|
|
310
|
+
* `unavailable` is anything else, saying what in `detail`. A runner never refuses `offline`: that is
|
|
311
|
+
* the server's own (FloorDriveRefusalReason).
|
|
312
|
+
*/
|
|
313
|
+
const DrivenRefusedSchema = z.discriminatedUnion("reason", [
|
|
314
|
+
z.object({
|
|
315
|
+
...driven,
|
|
316
|
+
kind: z.literal("refused"),
|
|
317
|
+
id: DriveId,
|
|
318
|
+
reason: z.enum(["not-owner", "not-found", "bypass-off", "no-folder", "no-claude", "busy", "no-prompt"]),
|
|
319
|
+
detail: Detail.optional(),
|
|
320
|
+
}),
|
|
321
|
+
z.object({ ...driven, kind: z.literal("refused"), id: DriveId, reason: z.literal("cap-reached"), limit: z.number().int().positive(), detail: Detail.optional() }),
|
|
322
|
+
z.object({ ...driven, kind: z.literal("refused"), id: DriveId, reason: z.literal("unavailable"), detail: Detail }),
|
|
323
|
+
]);
|
|
324
|
+
/**
|
|
325
|
+
* What a runner says of the driven sessions it holds (protocol 0.5.0), sent only by a runner that said
|
|
326
|
+
* `drive`. `started`, `output` (for an output request or a release) and `handed-back` answer a `drive`
|
|
327
|
+
* request by its `id`, and `refused` is sent in place of any answer; the rest are the sessions' own
|
|
328
|
+
* events, in the order they happened. A turn is named by the instruction that started it (`turn`): a
|
|
329
|
+
* start's first instruction by the start's `id`, and a driven take's first turn by the handoff
|
|
330
|
+
* message's `session`, the bare uuid. A driven take is answered by `taken`, as every take is (its
|
|
331
|
+
* failures say why no session opened), and then by `held` with why `started`. A turn that ends with no
|
|
332
|
+
* reply text sends no `reply`.
|
|
333
|
+
*
|
|
334
|
+
* Every `driven` message is live-only: it goes only while the runner's link is up and never waits in
|
|
335
|
+
* the link's reply outbox, so a long turn can't push the replies to the server's requests out of it,
|
|
336
|
+
* and a prompt that has timed out isn't shown again. After every hello, `holding` says where each
|
|
337
|
+
* session stands, and right after it the runner sends `prompt` again for each prompt still waiting,
|
|
338
|
+
* with the same `prompt` id and `expires`, so one raised while the link was down, or before the server
|
|
339
|
+
* restarted, can still be answered.
|
|
340
|
+
*
|
|
341
|
+
* The runner keeps every field within its limit (the MAX_* constants), cutting what it doesn't pick
|
|
342
|
+
* itself, such as a tool name, to fit: the server refuses a message over any limit and closes the
|
|
343
|
+
* runner's link.
|
|
344
|
+
*
|
|
345
|
+
* Nothing from a session leaves the machine without the runner's secret scan. A reply or output it
|
|
346
|
+
* matched has a `text` that only says so, and `withheld.id` for the owner to release it (drive
|
|
347
|
+
* `release`); a tool summary it matched isn't sent, and a prompt description it matched only says so,
|
|
348
|
+
* both marked `withheld`.
|
|
349
|
+
*/
|
|
350
|
+
export const DrivenMessageSchema = z.discriminatedUnion("kind", [
|
|
351
|
+
// The session a start asked for is running, in `room`; `permissions` is the mode it runs in.
|
|
352
|
+
z.object({ ...driven, kind: z.literal("started"), id: DriveId, session: DrivenSessionId, room: Room, permissions: DrivePermissionsSchema }),
|
|
353
|
+
// The agent took the instruction `turn`.
|
|
354
|
+
z.object({ ...driven, kind: z.literal("turn-started"), session: DrivenSessionId, turn: DriveId }),
|
|
355
|
+
// The agent used a tool in the turn: its name, and a short summary of what for, which one the scan
|
|
356
|
+
// matched (`withheld`) doesn't carry.
|
|
357
|
+
z
|
|
358
|
+
.object({ ...driven, kind: z.literal("tool"), session: DrivenSessionId, turn: DriveId, tool: ToolName, summary: z.string().min(1).max(MAX_SUMMARY_LENGTH).optional(), withheld: z.literal(true).optional() })
|
|
359
|
+
.superRefine((message, context) => {
|
|
360
|
+
if (message.withheld && message.summary !== undefined)
|
|
361
|
+
context.addIssue({ code: "custom", path: ["summary"], message: "no summary when the secret scan withheld it" });
|
|
362
|
+
}),
|
|
363
|
+
// The agent's own reply to the turn's instruction, what it said as the turn ended.
|
|
364
|
+
z.object({ ...driven, kind: z.literal("reply"), session: DrivenSessionId, turn: DriveId, text: z.string().min(1).max(MAX_REPLY_LENGTH), cut: Cut, withheld: Withheld }),
|
|
365
|
+
// The turn is over: `done`; `failed`, when Claude Code said it failed or its process ended mid-turn;
|
|
366
|
+
// or `stopped`, when the session was stopped or handed back mid-turn.
|
|
367
|
+
z.object({ ...driven, kind: z.literal("turn-ended"), session: DrivenSessionId, turn: DriveId, outcome: z.enum(["done", "failed", "stopped"]) }),
|
|
368
|
+
// Something went wrong in the session, in the runner's own words: never the model's output.
|
|
369
|
+
z.object({ ...driven, kind: z.literal("error"), session: DrivenSessionId, turn: DriveId.optional(), text: Detail }),
|
|
370
|
+
// The full output asked for, as plain text: of `turn`, or of the whole session without one; empty
|
|
371
|
+
// when there was none. In answer to a release, under the release's `id`: the released text, with
|
|
372
|
+
// `turn` for a reply.
|
|
373
|
+
z.object({ ...driven, kind: z.literal("output"), id: DriveId, session: DrivenSessionId, turn: DriveId.optional(), text: z.string().max(MAX_OUTPUT_LENGTH), cut: Cut, withheld: Withheld }),
|
|
374
|
+
// The session asks permission for a tool use (`--permission-prompts host`), under the runner's own
|
|
375
|
+
// `prompt` id, which an answer must name. With no answer by `expires` the runner denies it.
|
|
376
|
+
z.object({ ...driven, kind: z.literal("prompt"), session: DrivenSessionId, turn: DriveId.optional(), prompt: DriveId, tool: ToolName, description: z.string().min(1).max(MAX_PROMPT_LENGTH), withheld: z.literal(true).optional(), expires: z.iso.datetime({ offset: true }) }),
|
|
377
|
+
// How a prompt ended. `id`: the answer request that ended it, when one did.
|
|
378
|
+
z.object({ ...driven, kind: z.literal("prompt-ended"), session: DrivenSessionId, prompt: DriveId, outcome: z.enum(["allowed", "denied", "timed-out", "cancelled"]), id: DriveId.optional() }),
|
|
379
|
+
// A process of the runner's holds the session now, so resuming it in a terminal as well would make
|
|
380
|
+
// two writers: just `started`, `reopened` for an instruction after it was closed, or `restored`
|
|
381
|
+
// after the runner itself restarted.
|
|
382
|
+
z.object({ ...driven, kind: z.literal("held"), session: DrivenSessionId, room: Room, why: z.enum(["started", "reopened", "restored"]), permissions: DrivePermissionsSchema }),
|
|
383
|
+
// No process holds the session now: `stopped`, `handed-back`, `idle-closed` (nothing happened in it
|
|
384
|
+
// for the runner's idle time) or `crashed`. `id`: the stop or hand-back request it answers, if any.
|
|
385
|
+
z.object({ ...driven, kind: z.literal("released"), session: DrivenSessionId, why: z.enum(["stopped", "handed-back", "idle-closed", "crashed"]), id: DriveId.optional() }),
|
|
386
|
+
// The session is back in its person's hands: `command` (`claude --resume <id>`) continues it in a
|
|
387
|
+
// terminal opened in `folder`, a path on the runner's machine.
|
|
388
|
+
z.object({ ...driven, kind: z.literal("handed-back"), id: DriveId, session: DrivenSessionId, command: z.string().min(1).max(MAX_COMMAND_LENGTH), folder: z.string().min(1).max(MAX_FOLDER_LENGTH) }),
|
|
389
|
+
DrivenRefusedSchema,
|
|
390
|
+
// Sent after every hello: the driven sessions the runner holds, or would reopen for an instruction,
|
|
391
|
+
// at most MAX_HOLDING of them, held ones first, then the most recently active. `held`: a process
|
|
392
|
+
// holds it now. `turn`: the turn running now, if any. The server takes it in place of what it knew
|
|
393
|
+
// of this runner's driven sessions and forgets any it doesn't list, so the floor's held state
|
|
394
|
+
// survives a reconnect. Right after it the runner sends `prompt` again for each prompt still waiting.
|
|
395
|
+
z.object({
|
|
396
|
+
...driven,
|
|
397
|
+
kind: z.literal("holding"),
|
|
398
|
+
sessions: z
|
|
399
|
+
.array(z.object({ session: DrivenSessionId, room: Room, held: z.boolean(), permissions: DrivePermissionsSchema, turn: DriveId.optional() }))
|
|
400
|
+
.max(MAX_HOLDING),
|
|
401
|
+
}),
|
|
402
|
+
]);
|
|
237
403
|
export const DataLayerMessageSchema = z.discriminatedUnion("type", [
|
|
238
404
|
HelloMessageSchema,
|
|
239
405
|
RunnerHelloMessageSchema,
|
|
@@ -248,6 +414,7 @@ export const DataLayerMessageSchema = z.discriminatedUnion("type", [
|
|
|
248
414
|
AskRoomMessageSchema,
|
|
249
415
|
AskCheckMessageSchema,
|
|
250
416
|
AskedAckMessageSchema,
|
|
417
|
+
DrivenMessageSchema,
|
|
251
418
|
]);
|
|
252
419
|
// Office server → data layer.
|
|
253
420
|
/** Asks the data layer to send its facts in full. */
|
|
@@ -335,7 +502,9 @@ export const RequestMessageSchema = z.discriminatedUnion("kind", [
|
|
|
335
502
|
]);
|
|
336
503
|
/**
|
|
337
504
|
* The request is over (its handoff was cancelled, dismissed or replaced): the machine drops what it
|
|
338
|
-
* holds for it, and doesn't send or push what it was still writing.
|
|
505
|
+
* holds for it, and doesn't send or push what it was still writing. From protocol 0.4.0 `id` may be
|
|
506
|
+
* a take's session id, to a runner taking a handoff from the floor that was cancelled or timed out:
|
|
507
|
+
* the take opens nothing more (a take into the Claude app doesn't open the app).
|
|
339
508
|
*/
|
|
340
509
|
export const DropMessageSchema = z.object({
|
|
341
510
|
type: z.literal("drop"),
|
|
@@ -356,15 +525,30 @@ export const ReleaseMessageSchema = z.object({
|
|
|
356
525
|
* A handoff for the receiver to take: sent to their runner when they take it from the floor, or to
|
|
357
526
|
* their session in answer to a take code.
|
|
358
527
|
*/
|
|
359
|
-
export const HandoffMessageSchema = z
|
|
528
|
+
export const HandoffMessageSchema = z
|
|
529
|
+
.object({
|
|
360
530
|
type: z.literal("handoff"),
|
|
361
531
|
v: Version,
|
|
362
532
|
handoff: HandoffSchema,
|
|
363
|
-
// To a runner: how to open the session (a terminal, by default, headless, with no window,
|
|
364
|
-
//
|
|
365
|
-
//
|
|
366
|
-
|
|
533
|
+
// To a runner: how to open the session (a terminal, by default, headless, with no window, in Orca,
|
|
534
|
+
// sent only to a runner that said `orca`, in the Claude app, sent only to a runner that said
|
|
535
|
+
// `desktop`, or, from protocol 0.5.0, as a session driven from the floor, sent only to a runner that
|
|
536
|
+
// said `drive`), and the session id to open it under, which is the one the server will let join the room.
|
|
537
|
+
mode: z.enum(["terminal", "headless", "orca", "desktop", "driven"]).optional(),
|
|
367
538
|
session: z.string().uuid().optional(),
|
|
539
|
+
// With mode `driven`, and then all required: the person taking it, whom the runner checks is its
|
|
540
|
+
// own person, as for a drive request; the room it joins; and the permission mode they asked for.
|
|
541
|
+
by: Account.optional(),
|
|
542
|
+
room: Room.optional(),
|
|
543
|
+
permissions: DrivePermissionsSchema.optional(),
|
|
544
|
+
})
|
|
545
|
+
.superRefine((message, context) => {
|
|
546
|
+
if (message.mode !== "driven")
|
|
547
|
+
return;
|
|
548
|
+
for (const key of ["session", "by", "room", "permissions"]) {
|
|
549
|
+
if (message[key] === undefined)
|
|
550
|
+
context.addIssue({ code: "custom", path: [key], message: "required for a take as a driven session" });
|
|
551
|
+
}
|
|
368
552
|
});
|
|
369
553
|
/** A hand-over-check passed: `to` is the receiver the server found for the name given. */
|
|
370
554
|
export const HandOverReadyMessageSchema = z.object({
|
|
@@ -416,6 +600,66 @@ export const AskRightsMessageSchema = z.object({
|
|
|
416
600
|
owner: Account,
|
|
417
601
|
granted: z.boolean(),
|
|
418
602
|
});
|
|
603
|
+
const drive = { type: z.literal("drive"), v: Version, id: DriveId, by: Account };
|
|
604
|
+
/**
|
|
605
|
+
* A person acting on a driven session from the floor (protocol 0.5.0), sent only to a runner that said
|
|
606
|
+
* `drive`, and only to the owner's own runner. `by` is the person acting, whom the runner checks is its
|
|
607
|
+
* own person, and refuses `not-owner` otherwise. The runner answers by `id` (see `driven`). Nothing is
|
|
608
|
+
* queued: the server refuses a request for a runner that isn't linked at once (`offline`, see
|
|
609
|
+
* FloorDriveRefusalReason).
|
|
610
|
+
*/
|
|
611
|
+
export const DriveMessageSchema = z.discriminatedUnion("kind", [
|
|
612
|
+
// Start a driven session for `room`, a room of `project` that `by` is in. It opens in the folder of
|
|
613
|
+
// the first of `roomSessions` (the room's sessions on this machine, newest first) that the runner
|
|
614
|
+
// reports, by its own record of that folder, or else in a checkout of `project` it finds, as a take
|
|
615
|
+
// does. `instruction`, the first, is the turn named by this request's id. `permissions` is the mode
|
|
616
|
+
// the person asked for; the runner runs `bypassPermissions` only where `drive-policy` allows it.
|
|
617
|
+
z.object({
|
|
618
|
+
...drive,
|
|
619
|
+
kind: z.literal("start"),
|
|
620
|
+
room: Room,
|
|
621
|
+
project: ProjectSchema,
|
|
622
|
+
roomSessions: z.array(DrivenSessionId).max(MAX_ROOM_SESSIONS).optional(),
|
|
623
|
+
instruction: Instruction.optional(),
|
|
624
|
+
permissions: DrivePermissionsSchema,
|
|
625
|
+
}),
|
|
626
|
+
// The next instruction, `text`; this request's id names the turn it starts.
|
|
627
|
+
z.object({ ...drive, kind: z.literal("instruct"), session: DrivenSessionId, text: Instruction }),
|
|
628
|
+
// End the session's process, mid-turn or not.
|
|
629
|
+
z.object({ ...drive, kind: z.literal("stop"), session: DrivenSessionId }),
|
|
630
|
+
// Take it back to my terminal: end the process cleanly and answer `handed-back` with the command.
|
|
631
|
+
z.object({ ...drive, kind: z.literal("hand-back"), session: DrivenSessionId }),
|
|
632
|
+
// Send the full output of `turn`, or of the whole session without one.
|
|
633
|
+
z.object({ ...drive, kind: z.literal("output"), session: DrivenSessionId, turn: DriveId.optional() }),
|
|
634
|
+
// The owner's answer to the runner's prompt `prompt`.
|
|
635
|
+
z.object({ ...drive, kind: z.literal("answer"), session: DrivenSessionId, prompt: DriveId, answer: z.enum(["allow", "deny"]) }),
|
|
636
|
+
// The owner released the reply or output the secret scan withheld as `withheld`: the runner answers
|
|
637
|
+
// `output` under this request's id, with the released text, or `refused` `not-found` when it holds
|
|
638
|
+
// nothing withheld under that id.
|
|
639
|
+
z.object({ ...drive, kind: z.literal("release"), session: DrivenSessionId, withheld: DriveId }),
|
|
640
|
+
]);
|
|
641
|
+
/**
|
|
642
|
+
* Where people may skip permission prompts in driven sessions (protocol 0.5.0): `bypassAllowed` lists
|
|
643
|
+
* the projects, lower-cased, whose office allows `bypassPermissions`; an admin can turn it off for the
|
|
644
|
+
* whole office. A project id here is as long as it comes, as everywhere in the protocol, so any
|
|
645
|
+
* project the server holds can be listed. Sent to a runner that said `drive` once its hello is let in,
|
|
646
|
+
* before any drive request, and again whenever an admin changes it. Until one arrives on a connection,
|
|
647
|
+
* and in any project it doesn't list, the runner opens no session's process with `bypassPermissions`:
|
|
648
|
+
* not to start, reopen or restore one. What a session already running does when its project leaves
|
|
649
|
+
* the list is the runner's to decide (#42).
|
|
650
|
+
*
|
|
651
|
+
* It is a message of its own, not a field of each start, because the runner enforces it as a standing
|
|
652
|
+
* rule: a change has to reach the runner while its sessions run, and a session the runner restores
|
|
653
|
+
* after its own restart comes with no start. Kept apart from a start's `permissions`, which is the
|
|
654
|
+
* person's own choice, a mistake in the server's start path alone can't skip prompts in a project
|
|
655
|
+
* whose office hasn't allowed it. It is by project because one server can host several offices, and a
|
|
656
|
+
* runner's link serves all of them.
|
|
657
|
+
*/
|
|
658
|
+
export const DrivePolicyMessageSchema = z.object({
|
|
659
|
+
type: z.literal("drive-policy"),
|
|
660
|
+
v: Version,
|
|
661
|
+
bypassAllowed: z.array(z.string().min(1)).max(1000),
|
|
662
|
+
});
|
|
419
663
|
export const OfficeServerMessageSchema = z.discriminatedUnion("type", [
|
|
420
664
|
RepairMessageSchema,
|
|
421
665
|
WelcomeMessageSchema,
|
|
@@ -429,6 +673,8 @@ export const OfficeServerMessageSchema = z.discriminatedUnion("type", [
|
|
|
429
673
|
DropMessageSchema,
|
|
430
674
|
AskedMessageSchema,
|
|
431
675
|
AskRightsMessageSchema,
|
|
676
|
+
DriveMessageSchema,
|
|
677
|
+
DrivePolicyMessageSchema,
|
|
432
678
|
]);
|
|
433
679
|
/** Validates a message an office server received from a data layer. */
|
|
434
680
|
export function parseDataLayerMessage(value) {
|
package/dist/messages.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"messages.js","sourceRoot":"","sources":["../src/messages.ts"],"names":[],"mappings":"AAAA,OAA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H,OAAO;YACL,EAAE,EAAE,KAAK;YACT,IAAI,EAAE,qBAAqB;YAC3B,KAAK,EAAE,oBAAoB,IAAI,CAAC,SAAS,CAAC,KAAK,CAAC,CAAC,CAAC,+CAA+C,gBAAgB,EAAE;SACpH,CAAC;IACJ,CAAC;IACD,MAAM,MAAM,GAAG,MAAM,CAAC,SAAS,CAAC,KAAK,CAAC,CAAC;IACvC,IAAI,MAAM,CAAC,OAAO;QAAE,OAAO,EAAE,EAAE,EAAE,IAAI,EAAE,OAAO,EAAE,MAAM,CAAC,IAAI,EAAE,CAAC;IAC9D,OAAO,EAAE,EAAE,EAAE,KAAK,EAAE,IAAI,EAAE,SAAS,EAAE,KAAK,EAAE,CAAC,CAAC,aAAa,CAAC,MAAM,CAAC,KAAK,CAAC,EAAE,CAAC;AAC9E,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@isoplan/protocol",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.5.0",
|
|
4
4
|
"description": "The wire protocol between Isoplan's Claude Code plugin and an office server: message and fact types, with zod parsers.",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"repository": {
|
|
7
7
|
"type": "git",
|
|
8
|
-
"url": "git+https://github.com/
|
|
8
|
+
"url": "git+https://github.com/isoplan-app/isoplan-plugin.git",
|
|
9
9
|
"directory": "packages/protocol"
|
|
10
10
|
},
|
|
11
11
|
"type": "module",
|