@isoplan/protocol 0.15.0 → 0.17.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/facts.d.ts +12 -0
- package/dist/facts.js +10 -0
- package/dist/facts.js.map +1 -1
- package/dist/messages.d.ts +714 -227
- package/dist/messages.js +349 -119
- package/dist/messages.js.map +1 -1
- package/package.json +1 -1
package/dist/messages.d.ts
CHANGED
|
@@ -146,8 +146,8 @@ export declare const HelloMessageSchema: z.ZodObject<{
|
|
|
146
146
|
* runner can open them, and `orca` and `desktop` only where `orca` and `desktop` are said. The server
|
|
147
147
|
* sends a start with a `mode` only to a runner that says `starts`, and only one of its places: a
|
|
148
148
|
* runner from before 0.10.0 drops the field it doesn't know and would run the session from the floor.
|
|
149
|
-
* `experts` (protocol 0.13.0
|
|
150
|
-
*
|
|
149
|
+
* `experts` (protocol 0.13.0 to 0.16.0, the relay of experts' questions through the server) is gone:
|
|
150
|
+
* a 0.17.0 runner never says it, and an older runner's hello still parses, with it dropped.
|
|
151
151
|
* `hiddenStarts` (protocol 0.14.0, isoplan-app#315): this runner can start a session from the floor
|
|
152
152
|
* hidden (a start's `hidden`), in a clone Isoplan keeps for itself. The server sends `hidden` only to
|
|
153
153
|
* a runner that says it: a runner from before 0.14.0 drops the field it doesn't know and would start
|
|
@@ -159,6 +159,10 @@ export declare const HelloMessageSchema: z.ZodObject<{
|
|
|
159
159
|
* `expert-creation-suggestion-dismissals`, `draft-office-wide-expert-creation-suggestion`,
|
|
160
160
|
* `create-expert-from-suggestion` and `expert-creation-suggestion-ended`; the server sends none of
|
|
161
161
|
* these to a runner that didn't say it.
|
|
162
|
+
* `expertInstances` (protocol 0.17.0, isoplan-app#340): this runner keeps instances of experts set
|
|
163
|
+
* up from their expert records and answers its own sessions' questions from them; it sends and
|
|
164
|
+
* takes the messages of "Expert records and instances" (see `expert-directory`). The server sends
|
|
165
|
+
* none of them to a runner that didn't say it.
|
|
162
166
|
*/
|
|
163
167
|
export declare const RunnerHelloMessageSchema: z.ZodObject<{
|
|
164
168
|
type: z.ZodLiteral<"runner">;
|
|
@@ -185,9 +189,9 @@ export declare const RunnerHelloMessageSchema: z.ZodObject<{
|
|
|
185
189
|
orca: "orca";
|
|
186
190
|
terminal: "terminal";
|
|
187
191
|
}>>>;
|
|
188
|
-
experts: z.ZodOptional<z.ZodLiteral<true>>;
|
|
189
192
|
hiddenStarts: z.ZodOptional<z.ZodLiteral<true>>;
|
|
190
193
|
canCreateExpertsFromSuggestions: z.ZodOptional<z.ZodLiteral<true>>;
|
|
194
|
+
expertInstances: z.ZodOptional<z.ZodLiteral<true>>;
|
|
191
195
|
}, z.core.$strip>;
|
|
192
196
|
/** All of the session's facts. Sent on connect and on repair. */
|
|
193
197
|
export declare const FullMessageSchema: z.ZodObject<{
|
|
@@ -324,6 +328,7 @@ export declare const FullMessageSchema: z.ZodObject<{
|
|
|
324
328
|
agent: z.ZodString;
|
|
325
329
|
at: z.ZodISODateTime;
|
|
326
330
|
text: z.ZodString;
|
|
331
|
+
cut: z.ZodOptional<z.ZodLiteral<true>>;
|
|
327
332
|
withheld: z.ZodOptional<z.ZodObject<{
|
|
328
333
|
id: z.ZodString;
|
|
329
334
|
}, z.core.$strip>>;
|
|
@@ -524,6 +529,7 @@ export declare const ChangesMessageSchema: z.ZodObject<{
|
|
|
524
529
|
agent: z.ZodString;
|
|
525
530
|
at: z.ZodISODateTime;
|
|
526
531
|
text: z.ZodString;
|
|
532
|
+
cut: z.ZodOptional<z.ZodLiteral<true>>;
|
|
527
533
|
withheld: z.ZodOptional<z.ZodObject<{
|
|
528
534
|
id: z.ZodString;
|
|
529
535
|
}, z.core.$strip>>;
|
|
@@ -637,7 +643,7 @@ export declare const OwnerMessageRefusalSchema: z.ZodEnum<{
|
|
|
637
643
|
"no-submit": "no-submit";
|
|
638
644
|
"not-owner": "not-owner";
|
|
639
645
|
}>;
|
|
640
|
-
/** The most experts a
|
|
646
|
+
/** The most experts a session is told it may ask (protocol 0.13.0). */
|
|
641
647
|
export declare const MAX_EXPERTS = 20;
|
|
642
648
|
/** The longest subject an expert lists: what to ask it about, and before which changes. */
|
|
643
649
|
export declare const MAX_EXPERT_SUBJECT_LENGTH = 1000;
|
|
@@ -648,30 +654,23 @@ export declare const MAX_EXPERT_SUBJECT_LENGTH = 1000;
|
|
|
648
654
|
export declare const MAX_EXPERT_ANSWER_LENGTH = 8000;
|
|
649
655
|
/** An expert's name, as its file is named: `~/.claude/isoplan/experts/<name>.json`. */
|
|
650
656
|
export declare const ExpertNameSchema: z.ZodString;
|
|
651
|
-
/**
|
|
657
|
+
/**
|
|
658
|
+
* Every situation ask_expert tells its agent about, by a stable code. `EXPERT_NOT_SET_UP` (protocol
|
|
659
|
+
* 0.17.0): this computer has no instance of the expert yet, so its set-up is offered. No 0.17.0 side
|
|
660
|
+
* sends `EXPERT_QUEUED` or `EXPERT_DROPPED`; an office from before 0.17.0 may still send them in a
|
|
661
|
+
* late end. `EXPERT_QUESTION_HELD` is gone (0.17.0): a runner made it, and no office ever sent it.
|
|
662
|
+
*/
|
|
652
663
|
export declare const ExpertCodeSchema: z.ZodEnum<{
|
|
653
664
|
EXPERT_CAP: "EXPERT_CAP";
|
|
654
665
|
EXPERT_DROPPED: "EXPERT_DROPPED";
|
|
655
666
|
EXPERT_FORK_FAILED: "EXPERT_FORK_FAILED";
|
|
667
|
+
EXPERT_NOT_SET_UP: "EXPERT_NOT_SET_UP";
|
|
656
668
|
EXPERT_PLUGIN_OLD: "EXPERT_PLUGIN_OLD";
|
|
657
|
-
EXPERT_QUESTION_HELD: "EXPERT_QUESTION_HELD";
|
|
658
669
|
EXPERT_QUEUED: "EXPERT_QUEUED";
|
|
659
670
|
EXPERT_RUNNER_UNREACHABLE: "EXPERT_RUNNER_UNREACHABLE";
|
|
660
671
|
EXPERT_STARTING: "EXPERT_STARTING";
|
|
661
672
|
EXPERT_UNKNOWN: "EXPERT_UNKNOWN";
|
|
662
673
|
}>;
|
|
663
|
-
/** `starting`: no generation of it has passed its proof question yet; `ready`: its junior answers; `failed`: its last grounding failed and none answers. */
|
|
664
|
-
export declare const ExpertStateSchema: z.ZodEnum<{
|
|
665
|
-
failed: "failed";
|
|
666
|
-
ready: "ready";
|
|
667
|
-
starting: "starting";
|
|
668
|
-
}>;
|
|
669
|
-
/** The host's caps, from the expert file: questions per asking session per day, open questions per asking session, the expert's daily token budget. */
|
|
670
|
-
export declare const ExpertCapSchema: z.ZodEnum<{
|
|
671
|
-
"asker-day": "asker-day";
|
|
672
|
-
"asker-open": "asker-open";
|
|
673
|
-
"expert-tokens": "expert-tokens";
|
|
674
|
-
}>;
|
|
675
674
|
/** The most folders or globs an expert's area names (protocol 0.15.0). */
|
|
676
675
|
export declare const MAX_AREA_PATHS = 20;
|
|
677
676
|
/**
|
|
@@ -680,53 +679,16 @@ export declare const MAX_AREA_PATHS = 20;
|
|
|
680
679
|
*/
|
|
681
680
|
export declare const expertDisplayName: (key: string) => string;
|
|
682
681
|
/**
|
|
683
|
-
* One expert a
|
|
684
|
-
*
|
|
685
|
-
*
|
|
686
|
-
* covers, from its file, so the office never suggests creating an expert on a folder one already covers;
|
|
687
|
-
* absent from an older runner, or when its file names none. An older server ignores both.
|
|
682
|
+
* One expert a session may ask: `repo` is its project's short name, `host` a person's name: the
|
|
683
|
+
* hosting person's until 0.17.0, and from 0.17.0 the expert's owner's, kept so an older plugin still
|
|
684
|
+
* parses it.
|
|
688
685
|
*/
|
|
689
|
-
export declare const ExpertListingSchema: z.ZodObject<{
|
|
690
|
-
name: z.ZodString;
|
|
691
|
-
project: z.ZodObject<{
|
|
692
|
-
id: z.ZodString;
|
|
693
|
-
name: z.ZodString;
|
|
694
|
-
}, z.core.$strip>;
|
|
695
|
-
subject: z.ZodString;
|
|
696
|
-
state: z.ZodEnum<{
|
|
697
|
-
failed: "failed";
|
|
698
|
-
ready: "ready";
|
|
699
|
-
starting: "starting";
|
|
700
|
-
}>;
|
|
701
|
-
senior: z.ZodOptional<z.ZodBoolean>;
|
|
702
|
-
areas: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
703
|
-
}, z.core.$strip>;
|
|
704
|
-
/** One expert a session may ask: `repo` is its project's short name, `host` the hosting person's name. */
|
|
705
686
|
export declare const ExpertRightSchema: z.ZodObject<{
|
|
706
687
|
name: z.ZodString;
|
|
707
688
|
subject: z.ZodString;
|
|
708
689
|
repo: z.ZodString;
|
|
709
690
|
host: z.ZodString;
|
|
710
691
|
}, z.core.$strip>;
|
|
711
|
-
/**
|
|
712
|
-
* Why the host's runner won't answer an expert question, beside an `unavailable` refusal's `detail`:
|
|
713
|
-
* one of the expert file's caps is reached (`frees`, when it frees), the fork couldn't answer, or this
|
|
714
|
-
* machine hosts no expert by that name now.
|
|
715
|
-
*/
|
|
716
|
-
export declare const ExpertRefusalSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
717
|
-
code: z.ZodLiteral<"EXPERT_CAP">;
|
|
718
|
-
cap: z.ZodEnum<{
|
|
719
|
-
"asker-day": "asker-day";
|
|
720
|
-
"asker-open": "asker-open";
|
|
721
|
-
"expert-tokens": "expert-tokens";
|
|
722
|
-
}>;
|
|
723
|
-
limit: z.ZodNumber;
|
|
724
|
-
frees: z.ZodOptional<z.ZodISODateTime>;
|
|
725
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
726
|
-
code: z.ZodLiteral<"EXPERT_FORK_FAILED">;
|
|
727
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
728
|
-
code: z.ZodLiteral<"EXPERT_UNKNOWN">;
|
|
729
|
-
}, z.core.$strip>], "code">;
|
|
730
692
|
/** 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. */
|
|
731
693
|
export declare const CapSchema: z.ZodEnum<{
|
|
732
694
|
"owner-day": "owner-day";
|
|
@@ -781,14 +743,6 @@ export declare const ReplyMessageSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
781
743
|
v: z.ZodLiteral<1>;
|
|
782
744
|
id: z.ZodString;
|
|
783
745
|
kind: z.ZodLiteral<"focus">;
|
|
784
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
785
|
-
type: z.ZodLiteral<"reply">;
|
|
786
|
-
v: z.ZodLiteral<1>;
|
|
787
|
-
id: z.ZodString;
|
|
788
|
-
kind: z.ZodLiteral<"answer-expert">;
|
|
789
|
-
answer: z.ZodString;
|
|
790
|
-
commit: z.ZodString;
|
|
791
|
-
branch: z.ZodString;
|
|
792
746
|
}, z.core.$strip>], "kind">;
|
|
793
747
|
/**
|
|
794
748
|
* A request the machine won't answer, sent in place of its reply. `over-cap` names the cap it would
|
|
@@ -828,20 +782,6 @@ export declare const RefusalMessageSchema: z.ZodDiscriminatedUnion<[z.ZodObject<
|
|
|
828
782
|
"no-submit": "no-submit";
|
|
829
783
|
"not-owner": "not-owner";
|
|
830
784
|
}>>;
|
|
831
|
-
expert: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
832
|
-
code: z.ZodLiteral<"EXPERT_CAP">;
|
|
833
|
-
cap: z.ZodEnum<{
|
|
834
|
-
"asker-day": "asker-day";
|
|
835
|
-
"asker-open": "asker-open";
|
|
836
|
-
"expert-tokens": "expert-tokens";
|
|
837
|
-
}>;
|
|
838
|
-
limit: z.ZodNumber;
|
|
839
|
-
frees: z.ZodOptional<z.ZodISODateTime>;
|
|
840
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
841
|
-
code: z.ZodLiteral<"EXPERT_FORK_FAILED">;
|
|
842
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
843
|
-
code: z.ZodLiteral<"EXPERT_UNKNOWN">;
|
|
844
|
-
}, z.core.$strip>], "code">>;
|
|
845
785
|
}, z.core.$strip>], "reason">;
|
|
846
786
|
/**
|
|
847
787
|
* The sender's session handed its room over with the command: its agent wrote the brief and pushed.
|
|
@@ -934,46 +874,6 @@ export declare const AskedAckMessageSchema: z.ZodObject<{
|
|
|
934
874
|
v: z.ZodLiteral<1>;
|
|
935
875
|
question: z.ZodString;
|
|
936
876
|
}, z.core.$strip>;
|
|
937
|
-
/**
|
|
938
|
-
* The experts this runner hosts (protocol 0.13.0), as it lists them to this office server, each one
|
|
939
|
-
* whose repo the server's approved list takes. Sent only by a runner that said `experts`, only while
|
|
940
|
-
* its link is up (never through the reply outbox), and never on a connection before that
|
|
941
|
-
* connection's first `hosting`. The runner works the listing out again on every `hosting`, on every
|
|
942
|
-
* change to its experts and every few minutes, and sends it when it differs from the last one it
|
|
943
|
-
* sent on the connection; the first on a connection is always sent, even an empty one. It sends none
|
|
944
|
-
* while it has no approved list. Each one replaces the last. Names are unique.
|
|
945
|
-
*/
|
|
946
|
-
export declare const ExpertsMessageSchema: z.ZodObject<{
|
|
947
|
-
type: z.ZodLiteral<"experts">;
|
|
948
|
-
v: z.ZodLiteral<1>;
|
|
949
|
-
experts: z.ZodArray<z.ZodObject<{
|
|
950
|
-
name: z.ZodString;
|
|
951
|
-
project: z.ZodObject<{
|
|
952
|
-
id: z.ZodString;
|
|
953
|
-
name: z.ZodString;
|
|
954
|
-
}, z.core.$strip>;
|
|
955
|
-
subject: z.ZodString;
|
|
956
|
-
state: z.ZodEnum<{
|
|
957
|
-
failed: "failed";
|
|
958
|
-
ready: "ready";
|
|
959
|
-
starting: "starting";
|
|
960
|
-
}>;
|
|
961
|
-
senior: z.ZodOptional<z.ZodBoolean>;
|
|
962
|
-
areas: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
963
|
-
}, z.core.$strip>>;
|
|
964
|
-
}, z.core.$strip>;
|
|
965
|
-
/**
|
|
966
|
-
* The junior answering the `answer-expert` request `id` has asked its senior (protocol 0.14.0), so
|
|
967
|
-
* the floor can show the senior joining the question's meeting. It carries no text: nothing of the
|
|
968
|
-
* question or of what the junior asked. Sent once per request, when the junior first asks, only to a
|
|
969
|
-
* server whose `hosting` says `expertSenior`, and only while the link is up (never through the reply
|
|
970
|
-
* outbox): a server from before 0.14.0, which doesn't say it, is never sent one.
|
|
971
|
-
*/
|
|
972
|
-
export declare const ExpertSeniorMessageSchema: z.ZodObject<{
|
|
973
|
-
type: z.ZodLiteral<"expert-senior">;
|
|
974
|
-
v: z.ZodLiteral<1>;
|
|
975
|
-
id: z.ZodString;
|
|
976
|
-
}, z.core.$strip>;
|
|
977
877
|
/**
|
|
978
878
|
* A session asks an expert a question (protocol 0.13.0), on its own short link with the session's
|
|
979
879
|
* hello, as ask-room is. `key` is the tool call's id: asked again under it, it is the same question.
|
|
@@ -982,6 +882,8 @@ export declare const ExpertSeniorMessageSchema: z.ZodObject<{
|
|
|
982
882
|
* pairing codes, as for ask-room). It is a message of its own, not an ask-room with an expert, so a
|
|
983
883
|
* server from before experts refuses it rather than asking a room. The session then polls it with
|
|
984
884
|
* ask-check and acks its end with asked-ack, as for a room question.
|
|
885
|
+
* From 0.17.0 a server answers it only with an error `EXPERT_PLUGIN_OLD`, and a 0.17.0 plugin never
|
|
886
|
+
* sends it: it asks its own computer's instance of the expert (see `expert-question`).
|
|
985
887
|
*/
|
|
986
888
|
export declare const AskExpertMessageSchema: z.ZodObject<{
|
|
987
889
|
type: z.ZodLiteral<"ask-expert">;
|
|
@@ -1005,10 +907,20 @@ export declare const MAX_EXPERT_CREATION_SUGGESTION_DISMISSALS = 1000;
|
|
|
1005
907
|
* and `proof`, as the runner's local model wrote them and the secret check passed them. `why`, the
|
|
1006
908
|
* signals that passed their thresholds, each other one 0: `share`, the share of the session's context
|
|
1007
909
|
* spent reading and searching the folder (0 to 1), and `tokens`, those tokens, which are one signal;
|
|
1008
|
-
* `minutes`, the time spent there; `corrections`, the person's corrections there. `
|
|
1009
|
-
*
|
|
1010
|
-
*
|
|
910
|
+
* `minutes`, the time spent there; `corrections`, the person's corrections there. `repetition`
|
|
911
|
+
* (from 0.16.0, a session's suggestion only), what was done in its area again, which suggested it:
|
|
912
|
+
* its `folder`, the file read most, was read in `readings` turns over `sessions` sessions, the
|
|
913
|
+
* area's `files` read again with it; or its folder was searched `searches` times. An older runner
|
|
914
|
+
* sends none, and an older side ignores it. `at`: when it was suggested. Of its text, only these
|
|
915
|
+
* leave the machine, under ADR 0004's case for an expert creation suggestion's draft.
|
|
1011
916
|
*/
|
|
917
|
+
export declare const ExpertCreationSuggestionRepetitionSchema: z.ZodUnion<readonly [z.ZodObject<{
|
|
918
|
+
readings: z.ZodNumber;
|
|
919
|
+
sessions: z.ZodNumber;
|
|
920
|
+
files: z.ZodNumber;
|
|
921
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
922
|
+
searches: z.ZodNumber;
|
|
923
|
+
}, z.core.$strip>]>;
|
|
1012
924
|
export declare const ExpertCreationSuggestionMessageSchema: z.ZodObject<{
|
|
1013
925
|
type: z.ZodLiteral<"expert-creation-suggestion">;
|
|
1014
926
|
v: z.ZodLiteral<1>;
|
|
@@ -1036,6 +948,13 @@ export declare const ExpertCreationSuggestionMessageSchema: z.ZodObject<{
|
|
|
1036
948
|
minutes: z.ZodNumber;
|
|
1037
949
|
corrections: z.ZodNumber;
|
|
1038
950
|
}, z.core.$strip>;
|
|
951
|
+
repetition: z.ZodOptional<z.ZodUnion<readonly [z.ZodObject<{
|
|
952
|
+
readings: z.ZodNumber;
|
|
953
|
+
sessions: z.ZodNumber;
|
|
954
|
+
files: z.ZodNumber;
|
|
955
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
956
|
+
searches: z.ZodNumber;
|
|
957
|
+
}, z.core.$strip>]>>;
|
|
1039
958
|
at: z.ZodISODateTime;
|
|
1040
959
|
}, z.core.$strip>;
|
|
1041
960
|
/**
|
|
@@ -1083,6 +1002,236 @@ export declare const ExpertCreationProgressMessageSchema: z.ZodObject<{
|
|
|
1083
1002
|
}>;
|
|
1084
1003
|
detail: z.ZodOptional<z.ZodString>;
|
|
1085
1004
|
}, z.core.$strip>;
|
|
1005
|
+
/** The most expert records an `expert-directory` or an `expert-instance-states` names. */
|
|
1006
|
+
export declare const MAX_EXPERT_RECORDS = 1000;
|
|
1007
|
+
/** The most times an `expert-questions-asked-on-your-other-computers` lists for the last day. */
|
|
1008
|
+
export declare const MAX_EXPERT_QUESTION_TIMES_IN_THE_LAST_DAY = 1000;
|
|
1009
|
+
/**
|
|
1010
|
+
* Which expert record: made by the server when the record is made, so a record made again under the
|
|
1011
|
+
* key of a deleted one is told apart from the old one.
|
|
1012
|
+
*/
|
|
1013
|
+
export declare const ExpertRecordIdSchema: z.ZodUUID;
|
|
1014
|
+
/**
|
|
1015
|
+
* What every computer's instance of an expert shares, as its owner's expert file says it: its key;
|
|
1016
|
+
* its project, one with a remote, never a folder on one computer (`local:`); its subject; the model
|
|
1017
|
+
* it grounds with; the context, in tokens, at which its junior is promoted (`promoteAtTokens`); the
|
|
1018
|
+
* folders and globs of its repo it covers (`areas`); and its proof question with the answer expected.
|
|
1019
|
+
* The rest of an expert file is that computer's own, and never leaves it.
|
|
1020
|
+
*/
|
|
1021
|
+
export declare const ExpertDefinitionSchema: z.ZodObject<{
|
|
1022
|
+
key: z.ZodString;
|
|
1023
|
+
project: z.ZodObject<{
|
|
1024
|
+
id: z.ZodString;
|
|
1025
|
+
name: z.ZodString;
|
|
1026
|
+
}, z.core.$strip>;
|
|
1027
|
+
subject: z.ZodString;
|
|
1028
|
+
model: z.ZodString;
|
|
1029
|
+
promoteAtTokens: z.ZodNumber;
|
|
1030
|
+
areas: z.ZodArray<z.ZodString>;
|
|
1031
|
+
proof: z.ZodObject<{
|
|
1032
|
+
question: z.ZodString;
|
|
1033
|
+
answer: z.ZodString;
|
|
1034
|
+
}, z.core.$strip>;
|
|
1035
|
+
}, z.core.$strip>;
|
|
1036
|
+
/**
|
|
1037
|
+
* Where this computer's instance of the expert `key` stands, set up from (or, on its owner's
|
|
1038
|
+
* computer, published as) the record `expertRecordId`: `setting-up`, with its `step` (`cloning`,
|
|
1039
|
+
* finding this computer's checkout of the project or cloning it; `grounding`; `proof`); `ready`, its
|
|
1040
|
+
* junior answers; or `failed`, with its `failure`: `clone`, the project couldn't be cloned, with
|
|
1041
|
+
* git's words in `detail`, secret-checked on this computer; `proof`, its proof question failed;
|
|
1042
|
+
* `key-used-here`, this computer has its own expert with that key, whose publish was refused
|
|
1043
|
+
* `key-taken`, so the record can't be set up here until that one is renamed; `other`, with why in
|
|
1044
|
+
* `detail`. `senior`: it has a senior generation, which its junior can ask. `groundingTokens`: its
|
|
1045
|
+
* junior's context after grounding. No definition field: the record has it.
|
|
1046
|
+
*/
|
|
1047
|
+
export declare const ExpertInstanceStateSchema: z.ZodObject<{
|
|
1048
|
+
key: z.ZodString;
|
|
1049
|
+
expertRecordId: z.ZodUUID;
|
|
1050
|
+
state: z.ZodEnum<{
|
|
1051
|
+
failed: "failed";
|
|
1052
|
+
ready: "ready";
|
|
1053
|
+
"setting-up": "setting-up";
|
|
1054
|
+
}>;
|
|
1055
|
+
step: z.ZodOptional<z.ZodEnum<{
|
|
1056
|
+
cloning: "cloning";
|
|
1057
|
+
grounding: "grounding";
|
|
1058
|
+
proof: "proof";
|
|
1059
|
+
}>>;
|
|
1060
|
+
senior: z.ZodOptional<z.ZodLiteral<true>>;
|
|
1061
|
+
groundingTokens: z.ZodOptional<z.ZodNumber>;
|
|
1062
|
+
failure: z.ZodOptional<z.ZodObject<{
|
|
1063
|
+
why: z.ZodEnum<{
|
|
1064
|
+
clone: "clone";
|
|
1065
|
+
"key-used-here": "key-used-here";
|
|
1066
|
+
other: "other";
|
|
1067
|
+
proof: "proof";
|
|
1068
|
+
}>;
|
|
1069
|
+
detail: z.ZodOptional<z.ZodString>;
|
|
1070
|
+
}, z.core.$strip>>;
|
|
1071
|
+
}, z.core.$strip>;
|
|
1072
|
+
/**
|
|
1073
|
+
* One expert record in an `expert-directory`: one whose project an office holds. `owner` is the
|
|
1074
|
+
* expert's owner, `yours` marks a record this runner's person owns, `revision` is its definition's
|
|
1075
|
+
* revision now, and `groundingTokens` a junior's context after grounding, as an instance last said.
|
|
1076
|
+
*/
|
|
1077
|
+
export declare const ExpertDirectoryEntrySchema: z.ZodObject<{
|
|
1078
|
+
key: z.ZodString;
|
|
1079
|
+
expertRecordId: z.ZodUUID;
|
|
1080
|
+
project: z.ZodObject<{
|
|
1081
|
+
id: z.ZodString;
|
|
1082
|
+
name: z.ZodString;
|
|
1083
|
+
}, z.core.$strip>;
|
|
1084
|
+
owner: z.ZodObject<{
|
|
1085
|
+
id: z.ZodString;
|
|
1086
|
+
name: z.ZodString;
|
|
1087
|
+
}, z.core.$strip>;
|
|
1088
|
+
yours: z.ZodOptional<z.ZodLiteral<true>>;
|
|
1089
|
+
revision: z.ZodNumber;
|
|
1090
|
+
groundingTokens: z.ZodOptional<z.ZodNumber>;
|
|
1091
|
+
}, z.core.$strip>;
|
|
1092
|
+
/**
|
|
1093
|
+
* The owner's runner publishes the expert's definition from the expert file (protocol 0.17.0), after
|
|
1094
|
+
* checking it for secrets on this computer (a match sends nothing). `basedOn`: the record and
|
|
1095
|
+
* revision this computer last had of it from this server; absent for a file never published there.
|
|
1096
|
+
* Sent on each new connection while the file differs from that revision, and on each change. The
|
|
1097
|
+
* server answers `expert-definition-result`; the same definition and `basedOn` again get the same
|
|
1098
|
+
* result.
|
|
1099
|
+
*/
|
|
1100
|
+
export declare const ExpertDefinitionMessageSchema: z.ZodObject<{
|
|
1101
|
+
type: z.ZodLiteral<"expert-definition">;
|
|
1102
|
+
v: z.ZodLiteral<1>;
|
|
1103
|
+
definition: z.ZodObject<{
|
|
1104
|
+
key: z.ZodString;
|
|
1105
|
+
project: z.ZodObject<{
|
|
1106
|
+
id: z.ZodString;
|
|
1107
|
+
name: z.ZodString;
|
|
1108
|
+
}, z.core.$strip>;
|
|
1109
|
+
subject: z.ZodString;
|
|
1110
|
+
model: z.ZodString;
|
|
1111
|
+
promoteAtTokens: z.ZodNumber;
|
|
1112
|
+
areas: z.ZodArray<z.ZodString>;
|
|
1113
|
+
proof: z.ZodObject<{
|
|
1114
|
+
question: z.ZodString;
|
|
1115
|
+
answer: z.ZodString;
|
|
1116
|
+
}, z.core.$strip>;
|
|
1117
|
+
}, z.core.$strip>;
|
|
1118
|
+
basedOn: z.ZodOptional<z.ZodObject<{
|
|
1119
|
+
expertRecordId: z.ZodUUID;
|
|
1120
|
+
revision: z.ZodNumber;
|
|
1121
|
+
}, z.core.$strip>>;
|
|
1122
|
+
}, z.core.$strip>;
|
|
1123
|
+
/**
|
|
1124
|
+
* Send this computer the record `expertRecordId` of the expert `key` (protocol 0.17.0), answered
|
|
1125
|
+
* with `expert-record`. Sent only once this computer has a checkout or clone of the record's
|
|
1126
|
+
* project, and again after each new connection's first `expert-directory` while it is still wanted.
|
|
1127
|
+
*/
|
|
1128
|
+
export declare const ExpertRecordWantedMessageSchema: z.ZodObject<{
|
|
1129
|
+
type: z.ZodLiteral<"expert-record-wanted">;
|
|
1130
|
+
v: z.ZodLiteral<1>;
|
|
1131
|
+
key: z.ZodString;
|
|
1132
|
+
expertRecordId: z.ZodUUID;
|
|
1133
|
+
}, z.core.$strip>;
|
|
1134
|
+
/**
|
|
1135
|
+
* Every instance on this computer of this server's expert records whose project this server takes
|
|
1136
|
+
* (protocol 0.17.0), the whole list each time: the first on each connection always, even an empty
|
|
1137
|
+
* one, then only when it differs. An instance set up from one office server is never named to
|
|
1138
|
+
* another. Each key once.
|
|
1139
|
+
*/
|
|
1140
|
+
export declare const ExpertInstanceStatesMessageSchema: z.ZodObject<{
|
|
1141
|
+
type: z.ZodLiteral<"expert-instance-states">;
|
|
1142
|
+
v: z.ZodLiteral<1>;
|
|
1143
|
+
instances: z.ZodArray<z.ZodObject<{
|
|
1144
|
+
key: z.ZodString;
|
|
1145
|
+
expertRecordId: z.ZodUUID;
|
|
1146
|
+
state: z.ZodEnum<{
|
|
1147
|
+
failed: "failed";
|
|
1148
|
+
ready: "ready";
|
|
1149
|
+
"setting-up": "setting-up";
|
|
1150
|
+
}>;
|
|
1151
|
+
step: z.ZodOptional<z.ZodEnum<{
|
|
1152
|
+
cloning: "cloning";
|
|
1153
|
+
grounding: "grounding";
|
|
1154
|
+
proof: "proof";
|
|
1155
|
+
}>>;
|
|
1156
|
+
senior: z.ZodOptional<z.ZodLiteral<true>>;
|
|
1157
|
+
groundingTokens: z.ZodOptional<z.ZodNumber>;
|
|
1158
|
+
failure: z.ZodOptional<z.ZodObject<{
|
|
1159
|
+
why: z.ZodEnum<{
|
|
1160
|
+
clone: "clone";
|
|
1161
|
+
"key-used-here": "key-used-here";
|
|
1162
|
+
other: "other";
|
|
1163
|
+
proof: "proof";
|
|
1164
|
+
}>;
|
|
1165
|
+
detail: z.ZodOptional<z.ZodString>;
|
|
1166
|
+
}, z.core.$strip>>;
|
|
1167
|
+
}, z.core.$strip>>;
|
|
1168
|
+
}, z.core.$strip>;
|
|
1169
|
+
/**
|
|
1170
|
+
* A question this computer's session asked the expert `key` (protocol 0.17.0), as a record with no
|
|
1171
|
+
* words: never the question's or the answer's text. `id` is the tool call's id, `session` the asking
|
|
1172
|
+
* session as its hello names it (`claude-code:<id>`), `blocking` whether its agent waited, `state`
|
|
1173
|
+
* where it stands (`asking`, `answered` or `dropped`, with its `code`), `senior` that its junior asked
|
|
1174
|
+
* its senior, and `askedAt` and `endedAt` when it was asked and ended. Sent at each change of state,
|
|
1175
|
+
* and again after each new connection's first `expert-directory` until its end has gone. The same
|
|
1176
|
+
* `id` and `state` again is the same record.
|
|
1177
|
+
*/
|
|
1178
|
+
export declare const ExpertQuestionMessageSchema: z.ZodObject<{
|
|
1179
|
+
type: z.ZodLiteral<"expert-question">;
|
|
1180
|
+
v: z.ZodLiteral<1>;
|
|
1181
|
+
id: z.ZodString;
|
|
1182
|
+
key: z.ZodString;
|
|
1183
|
+
expertRecordId: z.ZodUUID;
|
|
1184
|
+
session: z.ZodString;
|
|
1185
|
+
blocking: z.ZodBoolean;
|
|
1186
|
+
state: z.ZodEnum<{
|
|
1187
|
+
answered: "answered";
|
|
1188
|
+
asking: "asking";
|
|
1189
|
+
dropped: "dropped";
|
|
1190
|
+
}>;
|
|
1191
|
+
code: z.ZodOptional<z.ZodEnum<{
|
|
1192
|
+
EXPERT_CAP: "EXPERT_CAP";
|
|
1193
|
+
EXPERT_DROPPED: "EXPERT_DROPPED";
|
|
1194
|
+
EXPERT_FORK_FAILED: "EXPERT_FORK_FAILED";
|
|
1195
|
+
EXPERT_NOT_SET_UP: "EXPERT_NOT_SET_UP";
|
|
1196
|
+
EXPERT_PLUGIN_OLD: "EXPERT_PLUGIN_OLD";
|
|
1197
|
+
EXPERT_QUEUED: "EXPERT_QUEUED";
|
|
1198
|
+
EXPERT_RUNNER_UNREACHABLE: "EXPERT_RUNNER_UNREACHABLE";
|
|
1199
|
+
EXPERT_STARTING: "EXPERT_STARTING";
|
|
1200
|
+
EXPERT_UNKNOWN: "EXPERT_UNKNOWN";
|
|
1201
|
+
}>>;
|
|
1202
|
+
senior: z.ZodOptional<z.ZodLiteral<true>>;
|
|
1203
|
+
askedAt: z.ZodISODateTime;
|
|
1204
|
+
endedAt: z.ZodOptional<z.ZodISODateTime>;
|
|
1205
|
+
}, z.core.$strip>;
|
|
1206
|
+
/**
|
|
1207
|
+
* An agent on this computer asked the expert `key`, of which this computer has no instance, so its
|
|
1208
|
+
* person is offered to set it up (protocol 0.17.0, ADR 0013). Sent once per computer per record,
|
|
1209
|
+
* ever, and again after each new connection's first `expert-directory` until it has gone. A repeat
|
|
1210
|
+
* for the same record, person and computer changes nothing. No text of the question.
|
|
1211
|
+
*/
|
|
1212
|
+
export declare const ExpertSetUpOfferedMessageSchema: z.ZodObject<{
|
|
1213
|
+
type: z.ZodLiteral<"expert-set-up-offered">;
|
|
1214
|
+
v: z.ZodLiteral<1>;
|
|
1215
|
+
key: z.ZodString;
|
|
1216
|
+
expertRecordId: z.ZodUUID;
|
|
1217
|
+
}, z.core.$strip>;
|
|
1218
|
+
/**
|
|
1219
|
+
* This computer's instance of the expert `key`, whose record isn't its person's own, failed its proof
|
|
1220
|
+
* question at `revision` until its tries ran out (protocol 0.17.0), for the expert's owner to see:
|
|
1221
|
+
* `answer`, what its fork answered, secret-checked on this computer, or `answerHeld`, that it matched
|
|
1222
|
+
* a secret pattern and so isn't sent. Exactly one of the two. Sent once per revision, and again after
|
|
1223
|
+
* each new connection's first `expert-directory` until it has gone. A repeat for the same record,
|
|
1224
|
+
* computer and revision changes nothing.
|
|
1225
|
+
*/
|
|
1226
|
+
export declare const ExpertProofFailedMessageSchema: z.ZodObject<{
|
|
1227
|
+
type: z.ZodLiteral<"expert-proof-failed">;
|
|
1228
|
+
v: z.ZodLiteral<1>;
|
|
1229
|
+
key: z.ZodString;
|
|
1230
|
+
expertRecordId: z.ZodUUID;
|
|
1231
|
+
revision: z.ZodNumber;
|
|
1232
|
+
answer: z.ZodOptional<z.ZodString>;
|
|
1233
|
+
answerHeld: z.ZodOptional<z.ZodLiteral<true>>;
|
|
1234
|
+
}, z.core.$strip>;
|
|
1086
1235
|
/**
|
|
1087
1236
|
* What a runner says of the driven sessions it holds (protocol 0.5.0), sent only by a runner that said
|
|
1088
1237
|
* `drive`. `started`, `output` (for an output request or a release) and `handed-back` answer a `drive`
|
|
@@ -1367,9 +1516,9 @@ export declare const DataLayerMessageSchema: z.ZodDiscriminatedUnion<[z.ZodObjec
|
|
|
1367
1516
|
orca: "orca";
|
|
1368
1517
|
terminal: "terminal";
|
|
1369
1518
|
}>>>;
|
|
1370
|
-
experts: z.ZodOptional<z.ZodLiteral<true>>;
|
|
1371
1519
|
hiddenStarts: z.ZodOptional<z.ZodLiteral<true>>;
|
|
1372
1520
|
canCreateExpertsFromSuggestions: z.ZodOptional<z.ZodLiteral<true>>;
|
|
1521
|
+
expertInstances: z.ZodOptional<z.ZodLiteral<true>>;
|
|
1373
1522
|
}, z.core.$strip>, z.ZodObject<{
|
|
1374
1523
|
type: z.ZodLiteral<"full">;
|
|
1375
1524
|
v: z.ZodLiteral<1>;
|
|
@@ -1504,6 +1653,7 @@ export declare const DataLayerMessageSchema: z.ZodDiscriminatedUnion<[z.ZodObjec
|
|
|
1504
1653
|
agent: z.ZodString;
|
|
1505
1654
|
at: z.ZodISODateTime;
|
|
1506
1655
|
text: z.ZodString;
|
|
1656
|
+
cut: z.ZodOptional<z.ZodLiteral<true>>;
|
|
1507
1657
|
withheld: z.ZodOptional<z.ZodObject<{
|
|
1508
1658
|
id: z.ZodString;
|
|
1509
1659
|
}, z.core.$strip>>;
|
|
@@ -1702,6 +1852,7 @@ export declare const DataLayerMessageSchema: z.ZodDiscriminatedUnion<[z.ZodObjec
|
|
|
1702
1852
|
agent: z.ZodString;
|
|
1703
1853
|
at: z.ZodISODateTime;
|
|
1704
1854
|
text: z.ZodString;
|
|
1855
|
+
cut: z.ZodOptional<z.ZodLiteral<true>>;
|
|
1705
1856
|
withheld: z.ZodOptional<z.ZodObject<{
|
|
1706
1857
|
id: z.ZodString;
|
|
1707
1858
|
}, z.core.$strip>>;
|
|
@@ -1843,14 +1994,6 @@ export declare const DataLayerMessageSchema: z.ZodDiscriminatedUnion<[z.ZodObjec
|
|
|
1843
1994
|
v: z.ZodLiteral<1>;
|
|
1844
1995
|
id: z.ZodString;
|
|
1845
1996
|
kind: z.ZodLiteral<"focus">;
|
|
1846
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
1847
|
-
type: z.ZodLiteral<"reply">;
|
|
1848
|
-
v: z.ZodLiteral<1>;
|
|
1849
|
-
id: z.ZodString;
|
|
1850
|
-
kind: z.ZodLiteral<"answer-expert">;
|
|
1851
|
-
answer: z.ZodString;
|
|
1852
|
-
commit: z.ZodString;
|
|
1853
|
-
branch: z.ZodString;
|
|
1854
1997
|
}, z.core.$strip>], "kind">, z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
1855
1998
|
type: z.ZodLiteral<"refusal">;
|
|
1856
1999
|
v: z.ZodLiteral<1>;
|
|
@@ -1883,20 +2026,6 @@ export declare const DataLayerMessageSchema: z.ZodDiscriminatedUnion<[z.ZodObjec
|
|
|
1883
2026
|
"no-submit": "no-submit";
|
|
1884
2027
|
"not-owner": "not-owner";
|
|
1885
2028
|
}>>;
|
|
1886
|
-
expert: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
1887
|
-
code: z.ZodLiteral<"EXPERT_CAP">;
|
|
1888
|
-
cap: z.ZodEnum<{
|
|
1889
|
-
"asker-day": "asker-day";
|
|
1890
|
-
"asker-open": "asker-open";
|
|
1891
|
-
"expert-tokens": "expert-tokens";
|
|
1892
|
-
}>;
|
|
1893
|
-
limit: z.ZodNumber;
|
|
1894
|
-
frees: z.ZodOptional<z.ZodISODateTime>;
|
|
1895
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
1896
|
-
code: z.ZodLiteral<"EXPERT_FORK_FAILED">;
|
|
1897
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
1898
|
-
code: z.ZodLiteral<"EXPERT_UNKNOWN">;
|
|
1899
|
-
}, z.core.$strip>], "code">>;
|
|
1900
2029
|
}, z.core.$strip>], "reason">, z.ZodObject<{
|
|
1901
2030
|
type: z.ZodLiteral<"hand-over">;
|
|
1902
2031
|
v: z.ZodLiteral<1>;
|
|
@@ -2163,34 +2292,12 @@ export declare const DataLayerMessageSchema: z.ZodDiscriminatedUnion<[z.ZodObjec
|
|
|
2163
2292
|
branches: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
2164
2293
|
}, z.core.$strip>>;
|
|
2165
2294
|
}, z.core.$strip>], "kind">, z.ZodObject<{
|
|
2166
|
-
type: z.ZodLiteral<"experts">;
|
|
2167
|
-
v: z.ZodLiteral<1>;
|
|
2168
|
-
experts: z.ZodArray<z.ZodObject<{
|
|
2169
|
-
name: z.ZodString;
|
|
2170
|
-
project: z.ZodObject<{
|
|
2171
|
-
id: z.ZodString;
|
|
2172
|
-
name: z.ZodString;
|
|
2173
|
-
}, z.core.$strip>;
|
|
2174
|
-
subject: z.ZodString;
|
|
2175
|
-
state: z.ZodEnum<{
|
|
2176
|
-
failed: "failed";
|
|
2177
|
-
ready: "ready";
|
|
2178
|
-
starting: "starting";
|
|
2179
|
-
}>;
|
|
2180
|
-
senior: z.ZodOptional<z.ZodBoolean>;
|
|
2181
|
-
areas: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
2182
|
-
}, z.core.$strip>>;
|
|
2183
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
2184
2295
|
type: z.ZodLiteral<"ask-expert">;
|
|
2185
2296
|
v: z.ZodLiteral<1>;
|
|
2186
2297
|
expert: z.ZodString;
|
|
2187
2298
|
question: z.ZodString;
|
|
2188
2299
|
blocking: z.ZodBoolean;
|
|
2189
2300
|
key: z.ZodString;
|
|
2190
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
2191
|
-
type: z.ZodLiteral<"expert-senior">;
|
|
2192
|
-
v: z.ZodLiteral<1>;
|
|
2193
|
-
id: z.ZodString;
|
|
2194
2301
|
}, z.core.$strip>, z.ZodObject<{
|
|
2195
2302
|
type: z.ZodLiteral<"expert-creation-suggestion">;
|
|
2196
2303
|
v: z.ZodLiteral<1>;
|
|
@@ -2218,6 +2325,13 @@ export declare const DataLayerMessageSchema: z.ZodDiscriminatedUnion<[z.ZodObjec
|
|
|
2218
2325
|
minutes: z.ZodNumber;
|
|
2219
2326
|
corrections: z.ZodNumber;
|
|
2220
2327
|
}, z.core.$strip>;
|
|
2328
|
+
repetition: z.ZodOptional<z.ZodUnion<readonly [z.ZodObject<{
|
|
2329
|
+
readings: z.ZodNumber;
|
|
2330
|
+
sessions: z.ZodNumber;
|
|
2331
|
+
files: z.ZodNumber;
|
|
2332
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
2333
|
+
searches: z.ZodNumber;
|
|
2334
|
+
}, z.core.$strip>]>>;
|
|
2221
2335
|
at: z.ZodISODateTime;
|
|
2222
2336
|
}, z.core.$strip>, z.ZodObject<{
|
|
2223
2337
|
type: z.ZodLiteral<"expert-creation-suggestion-ended">;
|
|
@@ -2240,6 +2354,101 @@ export declare const DataLayerMessageSchema: z.ZodDiscriminatedUnion<[z.ZodObjec
|
|
|
2240
2354
|
ready: "ready";
|
|
2241
2355
|
}>;
|
|
2242
2356
|
detail: z.ZodOptional<z.ZodString>;
|
|
2357
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
2358
|
+
type: z.ZodLiteral<"expert-definition">;
|
|
2359
|
+
v: z.ZodLiteral<1>;
|
|
2360
|
+
definition: z.ZodObject<{
|
|
2361
|
+
key: z.ZodString;
|
|
2362
|
+
project: z.ZodObject<{
|
|
2363
|
+
id: z.ZodString;
|
|
2364
|
+
name: z.ZodString;
|
|
2365
|
+
}, z.core.$strip>;
|
|
2366
|
+
subject: z.ZodString;
|
|
2367
|
+
model: z.ZodString;
|
|
2368
|
+
promoteAtTokens: z.ZodNumber;
|
|
2369
|
+
areas: z.ZodArray<z.ZodString>;
|
|
2370
|
+
proof: z.ZodObject<{
|
|
2371
|
+
question: z.ZodString;
|
|
2372
|
+
answer: z.ZodString;
|
|
2373
|
+
}, z.core.$strip>;
|
|
2374
|
+
}, z.core.$strip>;
|
|
2375
|
+
basedOn: z.ZodOptional<z.ZodObject<{
|
|
2376
|
+
expertRecordId: z.ZodUUID;
|
|
2377
|
+
revision: z.ZodNumber;
|
|
2378
|
+
}, z.core.$strip>>;
|
|
2379
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
2380
|
+
type: z.ZodLiteral<"expert-record-wanted">;
|
|
2381
|
+
v: z.ZodLiteral<1>;
|
|
2382
|
+
key: z.ZodString;
|
|
2383
|
+
expertRecordId: z.ZodUUID;
|
|
2384
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
2385
|
+
type: z.ZodLiteral<"expert-instance-states">;
|
|
2386
|
+
v: z.ZodLiteral<1>;
|
|
2387
|
+
instances: z.ZodArray<z.ZodObject<{
|
|
2388
|
+
key: z.ZodString;
|
|
2389
|
+
expertRecordId: z.ZodUUID;
|
|
2390
|
+
state: z.ZodEnum<{
|
|
2391
|
+
failed: "failed";
|
|
2392
|
+
ready: "ready";
|
|
2393
|
+
"setting-up": "setting-up";
|
|
2394
|
+
}>;
|
|
2395
|
+
step: z.ZodOptional<z.ZodEnum<{
|
|
2396
|
+
cloning: "cloning";
|
|
2397
|
+
grounding: "grounding";
|
|
2398
|
+
proof: "proof";
|
|
2399
|
+
}>>;
|
|
2400
|
+
senior: z.ZodOptional<z.ZodLiteral<true>>;
|
|
2401
|
+
groundingTokens: z.ZodOptional<z.ZodNumber>;
|
|
2402
|
+
failure: z.ZodOptional<z.ZodObject<{
|
|
2403
|
+
why: z.ZodEnum<{
|
|
2404
|
+
clone: "clone";
|
|
2405
|
+
"key-used-here": "key-used-here";
|
|
2406
|
+
other: "other";
|
|
2407
|
+
proof: "proof";
|
|
2408
|
+
}>;
|
|
2409
|
+
detail: z.ZodOptional<z.ZodString>;
|
|
2410
|
+
}, z.core.$strip>>;
|
|
2411
|
+
}, z.core.$strip>>;
|
|
2412
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
2413
|
+
type: z.ZodLiteral<"expert-question">;
|
|
2414
|
+
v: z.ZodLiteral<1>;
|
|
2415
|
+
id: z.ZodString;
|
|
2416
|
+
key: z.ZodString;
|
|
2417
|
+
expertRecordId: z.ZodUUID;
|
|
2418
|
+
session: z.ZodString;
|
|
2419
|
+
blocking: z.ZodBoolean;
|
|
2420
|
+
state: z.ZodEnum<{
|
|
2421
|
+
answered: "answered";
|
|
2422
|
+
asking: "asking";
|
|
2423
|
+
dropped: "dropped";
|
|
2424
|
+
}>;
|
|
2425
|
+
code: z.ZodOptional<z.ZodEnum<{
|
|
2426
|
+
EXPERT_CAP: "EXPERT_CAP";
|
|
2427
|
+
EXPERT_DROPPED: "EXPERT_DROPPED";
|
|
2428
|
+
EXPERT_FORK_FAILED: "EXPERT_FORK_FAILED";
|
|
2429
|
+
EXPERT_NOT_SET_UP: "EXPERT_NOT_SET_UP";
|
|
2430
|
+
EXPERT_PLUGIN_OLD: "EXPERT_PLUGIN_OLD";
|
|
2431
|
+
EXPERT_QUEUED: "EXPERT_QUEUED";
|
|
2432
|
+
EXPERT_RUNNER_UNREACHABLE: "EXPERT_RUNNER_UNREACHABLE";
|
|
2433
|
+
EXPERT_STARTING: "EXPERT_STARTING";
|
|
2434
|
+
EXPERT_UNKNOWN: "EXPERT_UNKNOWN";
|
|
2435
|
+
}>>;
|
|
2436
|
+
senior: z.ZodOptional<z.ZodLiteral<true>>;
|
|
2437
|
+
askedAt: z.ZodISODateTime;
|
|
2438
|
+
endedAt: z.ZodOptional<z.ZodISODateTime>;
|
|
2439
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
2440
|
+
type: z.ZodLiteral<"expert-set-up-offered">;
|
|
2441
|
+
v: z.ZodLiteral<1>;
|
|
2442
|
+
key: z.ZodString;
|
|
2443
|
+
expertRecordId: z.ZodUUID;
|
|
2444
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
2445
|
+
type: z.ZodLiteral<"expert-proof-failed">;
|
|
2446
|
+
v: z.ZodLiteral<1>;
|
|
2447
|
+
key: z.ZodString;
|
|
2448
|
+
expertRecordId: z.ZodUUID;
|
|
2449
|
+
revision: z.ZodNumber;
|
|
2450
|
+
answer: z.ZodOptional<z.ZodString>;
|
|
2451
|
+
answerHeld: z.ZodOptional<z.ZodLiteral<true>>;
|
|
2243
2452
|
}, z.core.$strip>], "type">;
|
|
2244
2453
|
/** Asks the data layer to send its facts in full. */
|
|
2245
2454
|
export declare const RepairMessageSchema: z.ZodObject<{
|
|
@@ -2335,20 +2544,6 @@ export declare const RequestMessageSchema: z.ZodDiscriminatedUnion<[z.ZodObject<
|
|
|
2335
2544
|
id: z.ZodString;
|
|
2336
2545
|
kind: z.ZodLiteral<"focus">;
|
|
2337
2546
|
handoff: z.ZodString;
|
|
2338
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
2339
|
-
type: z.ZodLiteral<"request">;
|
|
2340
|
-
v: z.ZodLiteral<1>;
|
|
2341
|
-
id: z.ZodString;
|
|
2342
|
-
kind: z.ZodLiteral<"answer-expert">;
|
|
2343
|
-
expert: z.ZodString;
|
|
2344
|
-
questionId: z.ZodString;
|
|
2345
|
-
question: z.ZodString;
|
|
2346
|
-
blocking: z.ZodBoolean;
|
|
2347
|
-
from: z.ZodObject<{
|
|
2348
|
-
id: z.ZodString;
|
|
2349
|
-
name: z.ZodString;
|
|
2350
|
-
}, z.core.$strip>;
|
|
2351
|
-
asker: z.ZodString;
|
|
2352
2547
|
}, z.core.$strip>], "kind">;
|
|
2353
2548
|
/**
|
|
2354
2549
|
* The request is over (its handoff was cancelled, dismissed or replaced): the machine drops what it
|
|
@@ -2440,7 +2635,8 @@ export declare const HandedOverMessageSchema: z.ZodObject<{
|
|
|
2440
2635
|
* An answered or dropped question is sent again down the session's own link until it is acked.
|
|
2441
2636
|
* A question asked of an expert (protocol 0.13.0) has `expert`, and `owner` is the host's name; its
|
|
2442
2637
|
* `code` says where it stands for ask_expert, and an answered one has the `commit` and `branch` its
|
|
2443
|
-
* answer describes.
|
|
2638
|
+
* answer describes. From 0.17.0 no office sends one for an expert's question, which the asker's own
|
|
2639
|
+
* runner answers, though an office from before 0.17.0 may still send a late end.
|
|
2444
2640
|
*/
|
|
2445
2641
|
export declare const AskedMessageSchema: z.ZodObject<{
|
|
2446
2642
|
type: z.ZodLiteral<"asked">;
|
|
@@ -2463,8 +2659,8 @@ export declare const AskedMessageSchema: z.ZodObject<{
|
|
|
2463
2659
|
EXPERT_CAP: "EXPERT_CAP";
|
|
2464
2660
|
EXPERT_DROPPED: "EXPERT_DROPPED";
|
|
2465
2661
|
EXPERT_FORK_FAILED: "EXPERT_FORK_FAILED";
|
|
2662
|
+
EXPERT_NOT_SET_UP: "EXPERT_NOT_SET_UP";
|
|
2466
2663
|
EXPERT_PLUGIN_OLD: "EXPERT_PLUGIN_OLD";
|
|
2467
|
-
EXPERT_QUESTION_HELD: "EXPERT_QUESTION_HELD";
|
|
2468
2664
|
EXPERT_QUEUED: "EXPERT_QUEUED";
|
|
2469
2665
|
EXPERT_RUNNER_UNREACHABLE: "EXPERT_RUNNER_UNREACHABLE";
|
|
2470
2666
|
EXPERT_STARTING: "EXPERT_STARTING";
|
|
@@ -2503,21 +2699,6 @@ export declare const ExpertRightsMessageSchema: z.ZodObject<{
|
|
|
2503
2699
|
host: z.ZodString;
|
|
2504
2700
|
}, z.core.$strip>>;
|
|
2505
2701
|
}, z.core.$strip>;
|
|
2506
|
-
/**
|
|
2507
|
-
* Which of this runner's experts the server shows in at least one office (protocol 0.13.0), sent only
|
|
2508
|
-
* to a runner that said `experts`: once its hello is let in (as the server last kept them, or none),
|
|
2509
|
-
* after each `experts` message, and whenever the offices change. The runner sends no `experts` on a
|
|
2510
|
-
* connection before that connection's first `hosting`, so a server from before experts, which sends
|
|
2511
|
-
* none, is never sent one.
|
|
2512
|
-
* `expertSenior` (protocol 0.14.0): this server reads `expert-senior`, so the runner may send it. A
|
|
2513
|
-
* server that reads it says it on every `hosting`; the runner goes by the connection's last one.
|
|
2514
|
-
*/
|
|
2515
|
-
export declare const HostingMessageSchema: z.ZodObject<{
|
|
2516
|
-
type: z.ZodLiteral<"hosting">;
|
|
2517
|
-
v: z.ZodLiteral<1>;
|
|
2518
|
-
listed: z.ZodArray<z.ZodString>;
|
|
2519
|
-
expertSenior: z.ZodOptional<z.ZodLiteral<true>>;
|
|
2520
|
-
}, z.core.$strip>;
|
|
2521
2702
|
/**
|
|
2522
2703
|
* A person acting on a driven session from the floor (protocol 0.5.0), sent only to a runner that said
|
|
2523
2704
|
* `drive`, and only to the owner's own runner. `by` is the person acting, whom the runner checks is its
|
|
@@ -2768,6 +2949,193 @@ export declare const ServerExpertCreationSuggestionEndedMessageSchema: z.ZodDisc
|
|
|
2768
2949
|
refused: "refused";
|
|
2769
2950
|
}>;
|
|
2770
2951
|
}, z.core.$strip>], "why">;
|
|
2952
|
+
/**
|
|
2953
|
+
* Every expert record whose project an office on this server holds (protocol 0.17.0), the whole list
|
|
2954
|
+
* each time, each marked `yours` for this runner's person, and the caps of asks.json that the
|
|
2955
|
+
* asker's runner checks over its person's questions on all their computers (`asking`): open
|
|
2956
|
+
* questions per person per expert, questions per person in the last day, and the hours after which
|
|
2957
|
+
* a question still unanswered ends. Sent to a runner that said `expertInstances` once its hello is
|
|
2958
|
+
* let in, even an empty one, and whenever it changes; the first on a connection opens the family on
|
|
2959
|
+
* it (see "Expert records and instances"). Each key once.
|
|
2960
|
+
*/
|
|
2961
|
+
export declare const ExpertDirectoryMessageSchema: z.ZodObject<{
|
|
2962
|
+
type: z.ZodLiteral<"expert-directory">;
|
|
2963
|
+
v: z.ZodLiteral<1>;
|
|
2964
|
+
experts: z.ZodArray<z.ZodObject<{
|
|
2965
|
+
key: z.ZodString;
|
|
2966
|
+
expertRecordId: z.ZodUUID;
|
|
2967
|
+
project: z.ZodObject<{
|
|
2968
|
+
id: z.ZodString;
|
|
2969
|
+
name: z.ZodString;
|
|
2970
|
+
}, z.core.$strip>;
|
|
2971
|
+
owner: z.ZodObject<{
|
|
2972
|
+
id: z.ZodString;
|
|
2973
|
+
name: z.ZodString;
|
|
2974
|
+
}, z.core.$strip>;
|
|
2975
|
+
yours: z.ZodOptional<z.ZodLiteral<true>>;
|
|
2976
|
+
revision: z.ZodNumber;
|
|
2977
|
+
groundingTokens: z.ZodOptional<z.ZodNumber>;
|
|
2978
|
+
}, z.core.$strip>>;
|
|
2979
|
+
asking: z.ZodObject<{
|
|
2980
|
+
openPerPersonPerExpert: z.ZodNumber;
|
|
2981
|
+
perPersonPerDay: z.ZodNumber;
|
|
2982
|
+
maxAgeHours: z.ZodNumber;
|
|
2983
|
+
}, z.core.$strip>;
|
|
2984
|
+
}, z.core.$strip>;
|
|
2985
|
+
/**
|
|
2986
|
+
* The expert record `expertRecordId` at `revision`, with its definition (protocol 0.17.0): in answer
|
|
2987
|
+
* to `expert-record-wanted`, and sent unasked when the revision changes to every linked runner whose
|
|
2988
|
+
* `expert-instance-states` has that record at `grounding` or `proof`, `ready`, or failed for a reason
|
|
2989
|
+
* other than `clone` or `key-used-here`; a runner still cloning asks once it has the project.
|
|
2990
|
+
* `owner` is the expert's owner, and `yours` marks it as this runner's person's own.
|
|
2991
|
+
*/
|
|
2992
|
+
export declare const ExpertRecordMessageSchema: z.ZodObject<{
|
|
2993
|
+
type: z.ZodLiteral<"expert-record">;
|
|
2994
|
+
v: z.ZodLiteral<1>;
|
|
2995
|
+
expertRecordId: z.ZodUUID;
|
|
2996
|
+
revision: z.ZodNumber;
|
|
2997
|
+
owner: z.ZodObject<{
|
|
2998
|
+
id: z.ZodString;
|
|
2999
|
+
name: z.ZodString;
|
|
3000
|
+
}, z.core.$strip>;
|
|
3001
|
+
yours: z.ZodOptional<z.ZodLiteral<true>>;
|
|
3002
|
+
definition: z.ZodObject<{
|
|
3003
|
+
key: z.ZodString;
|
|
3004
|
+
project: z.ZodObject<{
|
|
3005
|
+
id: z.ZodString;
|
|
3006
|
+
name: z.ZodString;
|
|
3007
|
+
}, z.core.$strip>;
|
|
3008
|
+
subject: z.ZodString;
|
|
3009
|
+
model: z.ZodString;
|
|
3010
|
+
promoteAtTokens: z.ZodNumber;
|
|
3011
|
+
areas: z.ZodArray<z.ZodString>;
|
|
3012
|
+
proof: z.ZodObject<{
|
|
3013
|
+
question: z.ZodString;
|
|
3014
|
+
answer: z.ZodString;
|
|
3015
|
+
}, z.core.$strip>;
|
|
3016
|
+
}, z.core.$strip>;
|
|
3017
|
+
}, z.core.$strip>;
|
|
3018
|
+
/**
|
|
3019
|
+
* The answer to `expert-definition` for the expert `key` (protocol 0.17.0): `published`, as the record
|
|
3020
|
+
* `expertRecordId` at `revision` (a definition unchanged keeps its revision); or `refused`, for its
|
|
3021
|
+
* `reason`: `edited-elsewhere`, the record changed since the revision `basedOn` named, so the runner
|
|
3022
|
+
* writes the record's `definition`, at `revision`, into the expert file; `key-taken`, another
|
|
3023
|
+
* person's expert has the key; `not-owner`, the record `basedOn` named is now another person's, its
|
|
3024
|
+
* owner changed; `project-not-in-an-office`, no office on this server holds its project; `deleted`,
|
|
3025
|
+
* the record `basedOn` named was deleted on the floor.
|
|
3026
|
+
*/
|
|
3027
|
+
export declare const ExpertDefinitionResultMessageSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
3028
|
+
type: z.ZodLiteral<"expert-definition-result">;
|
|
3029
|
+
v: z.ZodLiteral<1>;
|
|
3030
|
+
key: z.ZodString;
|
|
3031
|
+
outcome: z.ZodLiteral<"published">;
|
|
3032
|
+
expertRecordId: z.ZodUUID;
|
|
3033
|
+
revision: z.ZodNumber;
|
|
3034
|
+
}, z.core.$strip>, z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
3035
|
+
type: z.ZodLiteral<"expert-definition-result">;
|
|
3036
|
+
v: z.ZodLiteral<1>;
|
|
3037
|
+
key: z.ZodString;
|
|
3038
|
+
outcome: z.ZodLiteral<"refused">;
|
|
3039
|
+
reason: z.ZodLiteral<"edited-elsewhere">;
|
|
3040
|
+
expertRecordId: z.ZodUUID;
|
|
3041
|
+
revision: z.ZodNumber;
|
|
3042
|
+
definition: z.ZodObject<{
|
|
3043
|
+
key: z.ZodString;
|
|
3044
|
+
project: z.ZodObject<{
|
|
3045
|
+
id: z.ZodString;
|
|
3046
|
+
name: z.ZodString;
|
|
3047
|
+
}, z.core.$strip>;
|
|
3048
|
+
subject: z.ZodString;
|
|
3049
|
+
model: z.ZodString;
|
|
3050
|
+
promoteAtTokens: z.ZodNumber;
|
|
3051
|
+
areas: z.ZodArray<z.ZodString>;
|
|
3052
|
+
proof: z.ZodObject<{
|
|
3053
|
+
question: z.ZodString;
|
|
3054
|
+
answer: z.ZodString;
|
|
3055
|
+
}, z.core.$strip>;
|
|
3056
|
+
}, z.core.$strip>;
|
|
3057
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
3058
|
+
type: z.ZodLiteral<"expert-definition-result">;
|
|
3059
|
+
v: z.ZodLiteral<1>;
|
|
3060
|
+
key: z.ZodString;
|
|
3061
|
+
outcome: z.ZodLiteral<"refused">;
|
|
3062
|
+
reason: z.ZodEnum<{
|
|
3063
|
+
deleted: "deleted";
|
|
3064
|
+
"key-taken": "key-taken";
|
|
3065
|
+
"not-owner": "not-owner";
|
|
3066
|
+
"project-not-in-an-office": "project-not-in-an-office";
|
|
3067
|
+
}>;
|
|
3068
|
+
}, z.core.$strip>], "reason">], "outcome">;
|
|
3069
|
+
/**
|
|
3070
|
+
* The expert record `expertRecordId` of the expert `key` was deleted on the floor, by `by` (protocol
|
|
3071
|
+
* 0.17.0): sent to every linked runner then, and to each runner that links within the 30 days after.
|
|
3072
|
+
* A runner acts on it only where its files are tied to that record, never another record of the key.
|
|
3073
|
+
*/
|
|
3074
|
+
export declare const ExpertDeletedMessageSchema: z.ZodObject<{
|
|
3075
|
+
type: z.ZodLiteral<"expert-deleted">;
|
|
3076
|
+
v: z.ZodLiteral<1>;
|
|
3077
|
+
key: z.ZodString;
|
|
3078
|
+
expertRecordId: z.ZodUUID;
|
|
3079
|
+
by: z.ZodObject<{
|
|
3080
|
+
id: z.ZodString;
|
|
3081
|
+
name: z.ZodString;
|
|
3082
|
+
}, z.core.$strip>;
|
|
3083
|
+
}, z.core.$strip>;
|
|
3084
|
+
/**
|
|
3085
|
+
* Set up this computer's instance of the expert `key` from the record `expertRecordId` (protocol
|
|
3086
|
+
* 0.17.0): its person's one click on the floor, or Try again after a failure (`again`, which grounds
|
|
3087
|
+
* it again now). Sent to that person's own runner on the computer they chose; `by` is the account
|
|
3088
|
+
* that runner said hello as, which the runner checks is its own, starting nothing otherwise. Nothing
|
|
3089
|
+
* is queued: the server refuses at once when that runner isn't linked. How the set-up goes, the
|
|
3090
|
+
* runner says in `expert-instance-states`.
|
|
3091
|
+
*/
|
|
3092
|
+
export declare const SetUpExpertInstanceMessageSchema: z.ZodObject<{
|
|
3093
|
+
type: z.ZodLiteral<"set-up-expert-instance">;
|
|
3094
|
+
v: z.ZodLiteral<1>;
|
|
3095
|
+
request: z.ZodString;
|
|
3096
|
+
key: z.ZodString;
|
|
3097
|
+
expertRecordId: z.ZodUUID;
|
|
3098
|
+
by: z.ZodObject<{
|
|
3099
|
+
id: z.ZodString;
|
|
3100
|
+
name: z.ZodString;
|
|
3101
|
+
}, z.core.$strip>;
|
|
3102
|
+
again: z.ZodOptional<z.ZodLiteral<true>>;
|
|
3103
|
+
}, z.core.$strip>;
|
|
3104
|
+
/**
|
|
3105
|
+
* The offer to set up the expert `key` on this computer, from the record `expertRecordId`, ended
|
|
3106
|
+
* (protocol 0.17.0): `dismissed` on the floor; `expired`; `set-up`, an instance of it is listed; or
|
|
3107
|
+
* `gone`, the record was deleted or its project left every office. Sent to that person's runner on
|
|
3108
|
+
* that computer when it ends, and on each link for every offer of that computer that ended in the 30
|
|
3109
|
+
* days after it was offered.
|
|
3110
|
+
*/
|
|
3111
|
+
export declare const ExpertSetUpOfferEndedMessageSchema: z.ZodObject<{
|
|
3112
|
+
type: z.ZodLiteral<"expert-set-up-offer-ended">;
|
|
3113
|
+
v: z.ZodLiteral<1>;
|
|
3114
|
+
key: z.ZodString;
|
|
3115
|
+
expertRecordId: z.ZodUUID;
|
|
3116
|
+
why: z.ZodEnum<{
|
|
3117
|
+
dismissed: "dismissed";
|
|
3118
|
+
expired: "expired";
|
|
3119
|
+
gone: "gone";
|
|
3120
|
+
"set-up": "set-up";
|
|
3121
|
+
}>;
|
|
3122
|
+
}, z.core.$strip>;
|
|
3123
|
+
/**
|
|
3124
|
+
* This runner's person's questions to experts on their other computers (protocol 0.17.0), from the
|
|
3125
|
+
* records those computers' runners sent (`expert-question`): `open`, how many are open per expert,
|
|
3126
|
+
* and `askedAtInTheLastDay`, when each of the last day's was asked. The runner adds its own and
|
|
3127
|
+
* checks the directory's `asking` caps against the total. Sent after the directory on each link, and
|
|
3128
|
+
* whenever those records change.
|
|
3129
|
+
*/
|
|
3130
|
+
export declare const ExpertQuestionsAskedOnYourOtherComputersMessageSchema: z.ZodObject<{
|
|
3131
|
+
type: z.ZodLiteral<"expert-questions-asked-on-your-other-computers">;
|
|
3132
|
+
v: z.ZodLiteral<1>;
|
|
3133
|
+
open: z.ZodArray<z.ZodObject<{
|
|
3134
|
+
key: z.ZodString;
|
|
3135
|
+
count: z.ZodNumber;
|
|
3136
|
+
}, z.core.$strip>>;
|
|
3137
|
+
askedAtInTheLastDay: z.ZodArray<z.ZodISODateTime>;
|
|
3138
|
+
}, z.core.$strip>;
|
|
2771
3139
|
export declare const OfficeServerMessageSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
2772
3140
|
type: z.ZodLiteral<"repair">;
|
|
2773
3141
|
v: z.ZodLiteral<1>;
|
|
@@ -2842,20 +3210,6 @@ export declare const OfficeServerMessageSchema: z.ZodDiscriminatedUnion<[z.ZodOb
|
|
|
2842
3210
|
id: z.ZodString;
|
|
2843
3211
|
kind: z.ZodLiteral<"focus">;
|
|
2844
3212
|
handoff: z.ZodString;
|
|
2845
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
2846
|
-
type: z.ZodLiteral<"request">;
|
|
2847
|
-
v: z.ZodLiteral<1>;
|
|
2848
|
-
id: z.ZodString;
|
|
2849
|
-
kind: z.ZodLiteral<"answer-expert">;
|
|
2850
|
-
expert: z.ZodString;
|
|
2851
|
-
questionId: z.ZodString;
|
|
2852
|
-
question: z.ZodString;
|
|
2853
|
-
blocking: z.ZodBoolean;
|
|
2854
|
-
from: z.ZodObject<{
|
|
2855
|
-
id: z.ZodString;
|
|
2856
|
-
name: z.ZodString;
|
|
2857
|
-
}, z.core.$strip>;
|
|
2858
|
-
asker: z.ZodString;
|
|
2859
3213
|
}, z.core.$strip>], "kind">, z.ZodObject<{
|
|
2860
3214
|
type: z.ZodLiteral<"release">;
|
|
2861
3215
|
v: z.ZodLiteral<1>;
|
|
@@ -2932,8 +3286,8 @@ export declare const OfficeServerMessageSchema: z.ZodDiscriminatedUnion<[z.ZodOb
|
|
|
2932
3286
|
EXPERT_CAP: "EXPERT_CAP";
|
|
2933
3287
|
EXPERT_DROPPED: "EXPERT_DROPPED";
|
|
2934
3288
|
EXPERT_FORK_FAILED: "EXPERT_FORK_FAILED";
|
|
3289
|
+
EXPERT_NOT_SET_UP: "EXPERT_NOT_SET_UP";
|
|
2935
3290
|
EXPERT_PLUGIN_OLD: "EXPERT_PLUGIN_OLD";
|
|
2936
|
-
EXPERT_QUESTION_HELD: "EXPERT_QUESTION_HELD";
|
|
2937
3291
|
EXPERT_QUEUED: "EXPERT_QUEUED";
|
|
2938
3292
|
EXPERT_RUNNER_UNREACHABLE: "EXPERT_RUNNER_UNREACHABLE";
|
|
2939
3293
|
EXPERT_STARTING: "EXPERT_STARTING";
|
|
@@ -3090,11 +3444,6 @@ export declare const OfficeServerMessageSchema: z.ZodDiscriminatedUnion<[z.ZodOb
|
|
|
3090
3444
|
repo: z.ZodString;
|
|
3091
3445
|
host: z.ZodString;
|
|
3092
3446
|
}, z.core.$strip>>;
|
|
3093
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
3094
|
-
type: z.ZodLiteral<"hosting">;
|
|
3095
|
-
v: z.ZodLiteral<1>;
|
|
3096
|
-
listed: z.ZodArray<z.ZodString>;
|
|
3097
|
-
expertSenior: z.ZodOptional<z.ZodLiteral<true>>;
|
|
3098
3447
|
}, z.core.$strip>, z.ZodObject<{
|
|
3099
3448
|
type: z.ZodLiteral<"create-expert-from-suggestion">;
|
|
3100
3449
|
v: z.ZodLiteral<1>;
|
|
@@ -3152,7 +3501,135 @@ export declare const OfficeServerMessageSchema: z.ZodDiscriminatedUnion<[z.ZodOb
|
|
|
3152
3501
|
expired: "expired";
|
|
3153
3502
|
refused: "refused";
|
|
3154
3503
|
}>;
|
|
3155
|
-
}, z.core.$strip>], "why"
|
|
3504
|
+
}, z.core.$strip>], "why">, z.ZodObject<{
|
|
3505
|
+
type: z.ZodLiteral<"expert-directory">;
|
|
3506
|
+
v: z.ZodLiteral<1>;
|
|
3507
|
+
experts: z.ZodArray<z.ZodObject<{
|
|
3508
|
+
key: z.ZodString;
|
|
3509
|
+
expertRecordId: z.ZodUUID;
|
|
3510
|
+
project: z.ZodObject<{
|
|
3511
|
+
id: z.ZodString;
|
|
3512
|
+
name: z.ZodString;
|
|
3513
|
+
}, z.core.$strip>;
|
|
3514
|
+
owner: z.ZodObject<{
|
|
3515
|
+
id: z.ZodString;
|
|
3516
|
+
name: z.ZodString;
|
|
3517
|
+
}, z.core.$strip>;
|
|
3518
|
+
yours: z.ZodOptional<z.ZodLiteral<true>>;
|
|
3519
|
+
revision: z.ZodNumber;
|
|
3520
|
+
groundingTokens: z.ZodOptional<z.ZodNumber>;
|
|
3521
|
+
}, z.core.$strip>>;
|
|
3522
|
+
asking: z.ZodObject<{
|
|
3523
|
+
openPerPersonPerExpert: z.ZodNumber;
|
|
3524
|
+
perPersonPerDay: z.ZodNumber;
|
|
3525
|
+
maxAgeHours: z.ZodNumber;
|
|
3526
|
+
}, z.core.$strip>;
|
|
3527
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
3528
|
+
type: z.ZodLiteral<"expert-record">;
|
|
3529
|
+
v: z.ZodLiteral<1>;
|
|
3530
|
+
expertRecordId: z.ZodUUID;
|
|
3531
|
+
revision: z.ZodNumber;
|
|
3532
|
+
owner: z.ZodObject<{
|
|
3533
|
+
id: z.ZodString;
|
|
3534
|
+
name: z.ZodString;
|
|
3535
|
+
}, z.core.$strip>;
|
|
3536
|
+
yours: z.ZodOptional<z.ZodLiteral<true>>;
|
|
3537
|
+
definition: z.ZodObject<{
|
|
3538
|
+
key: z.ZodString;
|
|
3539
|
+
project: z.ZodObject<{
|
|
3540
|
+
id: z.ZodString;
|
|
3541
|
+
name: z.ZodString;
|
|
3542
|
+
}, z.core.$strip>;
|
|
3543
|
+
subject: z.ZodString;
|
|
3544
|
+
model: z.ZodString;
|
|
3545
|
+
promoteAtTokens: z.ZodNumber;
|
|
3546
|
+
areas: z.ZodArray<z.ZodString>;
|
|
3547
|
+
proof: z.ZodObject<{
|
|
3548
|
+
question: z.ZodString;
|
|
3549
|
+
answer: z.ZodString;
|
|
3550
|
+
}, z.core.$strip>;
|
|
3551
|
+
}, z.core.$strip>;
|
|
3552
|
+
}, z.core.$strip>, z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
3553
|
+
type: z.ZodLiteral<"expert-definition-result">;
|
|
3554
|
+
v: z.ZodLiteral<1>;
|
|
3555
|
+
key: z.ZodString;
|
|
3556
|
+
outcome: z.ZodLiteral<"published">;
|
|
3557
|
+
expertRecordId: z.ZodUUID;
|
|
3558
|
+
revision: z.ZodNumber;
|
|
3559
|
+
}, z.core.$strip>, z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
3560
|
+
type: z.ZodLiteral<"expert-definition-result">;
|
|
3561
|
+
v: z.ZodLiteral<1>;
|
|
3562
|
+
key: z.ZodString;
|
|
3563
|
+
outcome: z.ZodLiteral<"refused">;
|
|
3564
|
+
reason: z.ZodLiteral<"edited-elsewhere">;
|
|
3565
|
+
expertRecordId: z.ZodUUID;
|
|
3566
|
+
revision: z.ZodNumber;
|
|
3567
|
+
definition: z.ZodObject<{
|
|
3568
|
+
key: z.ZodString;
|
|
3569
|
+
project: z.ZodObject<{
|
|
3570
|
+
id: z.ZodString;
|
|
3571
|
+
name: z.ZodString;
|
|
3572
|
+
}, z.core.$strip>;
|
|
3573
|
+
subject: z.ZodString;
|
|
3574
|
+
model: z.ZodString;
|
|
3575
|
+
promoteAtTokens: z.ZodNumber;
|
|
3576
|
+
areas: z.ZodArray<z.ZodString>;
|
|
3577
|
+
proof: z.ZodObject<{
|
|
3578
|
+
question: z.ZodString;
|
|
3579
|
+
answer: z.ZodString;
|
|
3580
|
+
}, z.core.$strip>;
|
|
3581
|
+
}, z.core.$strip>;
|
|
3582
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
3583
|
+
type: z.ZodLiteral<"expert-definition-result">;
|
|
3584
|
+
v: z.ZodLiteral<1>;
|
|
3585
|
+
key: z.ZodString;
|
|
3586
|
+
outcome: z.ZodLiteral<"refused">;
|
|
3587
|
+
reason: z.ZodEnum<{
|
|
3588
|
+
deleted: "deleted";
|
|
3589
|
+
"key-taken": "key-taken";
|
|
3590
|
+
"not-owner": "not-owner";
|
|
3591
|
+
"project-not-in-an-office": "project-not-in-an-office";
|
|
3592
|
+
}>;
|
|
3593
|
+
}, z.core.$strip>], "reason">], "outcome">, z.ZodObject<{
|
|
3594
|
+
type: z.ZodLiteral<"expert-deleted">;
|
|
3595
|
+
v: z.ZodLiteral<1>;
|
|
3596
|
+
key: z.ZodString;
|
|
3597
|
+
expertRecordId: z.ZodUUID;
|
|
3598
|
+
by: z.ZodObject<{
|
|
3599
|
+
id: z.ZodString;
|
|
3600
|
+
name: z.ZodString;
|
|
3601
|
+
}, z.core.$strip>;
|
|
3602
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
3603
|
+
type: z.ZodLiteral<"set-up-expert-instance">;
|
|
3604
|
+
v: z.ZodLiteral<1>;
|
|
3605
|
+
request: z.ZodString;
|
|
3606
|
+
key: z.ZodString;
|
|
3607
|
+
expertRecordId: z.ZodUUID;
|
|
3608
|
+
by: z.ZodObject<{
|
|
3609
|
+
id: z.ZodString;
|
|
3610
|
+
name: z.ZodString;
|
|
3611
|
+
}, z.core.$strip>;
|
|
3612
|
+
again: z.ZodOptional<z.ZodLiteral<true>>;
|
|
3613
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
3614
|
+
type: z.ZodLiteral<"expert-set-up-offer-ended">;
|
|
3615
|
+
v: z.ZodLiteral<1>;
|
|
3616
|
+
key: z.ZodString;
|
|
3617
|
+
expertRecordId: z.ZodUUID;
|
|
3618
|
+
why: z.ZodEnum<{
|
|
3619
|
+
dismissed: "dismissed";
|
|
3620
|
+
expired: "expired";
|
|
3621
|
+
gone: "gone";
|
|
3622
|
+
"set-up": "set-up";
|
|
3623
|
+
}>;
|
|
3624
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
3625
|
+
type: z.ZodLiteral<"expert-questions-asked-on-your-other-computers">;
|
|
3626
|
+
v: z.ZodLiteral<1>;
|
|
3627
|
+
open: z.ZodArray<z.ZodObject<{
|
|
3628
|
+
key: z.ZodString;
|
|
3629
|
+
count: z.ZodNumber;
|
|
3630
|
+
}, z.core.$strip>>;
|
|
3631
|
+
askedAtInTheLastDay: z.ZodArray<z.ZodISODateTime>;
|
|
3632
|
+
}, z.core.$strip>], "type">;
|
|
3156
3633
|
export type HandoffRepo = z.infer<typeof HandoffRepoSchema>;
|
|
3157
3634
|
export type Handoff = z.infer<typeof HandoffSchema>;
|
|
3158
3635
|
export type HelloMessage = z.infer<typeof HelloMessageSchema>;
|
|
@@ -3196,18 +3673,28 @@ export type DriveRefusal = Extract<DrivenMessage, {
|
|
|
3196
3673
|
kind: "refused";
|
|
3197
3674
|
}>;
|
|
3198
3675
|
export type DriveRefusalReason = DriveRefusal["reason"];
|
|
3199
|
-
export type ExpertListing = z.infer<typeof ExpertListingSchema>;
|
|
3200
3676
|
export type ExpertRight = z.infer<typeof ExpertRightSchema>;
|
|
3201
3677
|
export type ExpertCode = z.infer<typeof ExpertCodeSchema>;
|
|
3202
|
-
export type ExpertState = z.infer<typeof ExpertStateSchema>;
|
|
3203
|
-
export type ExpertCap = z.infer<typeof ExpertCapSchema>;
|
|
3204
|
-
export type ExpertRefusal = z.infer<typeof ExpertRefusalSchema>;
|
|
3205
|
-
export type ExpertsMessage = z.infer<typeof ExpertsMessageSchema>;
|
|
3206
3678
|
export type AskExpertMessage = z.infer<typeof AskExpertMessageSchema>;
|
|
3207
3679
|
export type ExpertRightsMessage = z.infer<typeof ExpertRightsMessageSchema>;
|
|
3208
|
-
export type
|
|
3209
|
-
export type
|
|
3680
|
+
export type ExpertDefinition = z.infer<typeof ExpertDefinitionSchema>;
|
|
3681
|
+
export type ExpertInstanceState = z.infer<typeof ExpertInstanceStateSchema>;
|
|
3682
|
+
export type ExpertDirectoryEntry = z.infer<typeof ExpertDirectoryEntrySchema>;
|
|
3683
|
+
export type ExpertDefinitionMessage = z.infer<typeof ExpertDefinitionMessageSchema>;
|
|
3684
|
+
export type ExpertRecordWantedMessage = z.infer<typeof ExpertRecordWantedMessageSchema>;
|
|
3685
|
+
export type ExpertInstanceStatesMessage = z.infer<typeof ExpertInstanceStatesMessageSchema>;
|
|
3686
|
+
export type ExpertQuestionMessage = z.infer<typeof ExpertQuestionMessageSchema>;
|
|
3687
|
+
export type ExpertSetUpOfferedMessage = z.infer<typeof ExpertSetUpOfferedMessageSchema>;
|
|
3688
|
+
export type ExpertProofFailedMessage = z.infer<typeof ExpertProofFailedMessageSchema>;
|
|
3689
|
+
export type ExpertDirectoryMessage = z.infer<typeof ExpertDirectoryMessageSchema>;
|
|
3690
|
+
export type ExpertRecordMessage = z.infer<typeof ExpertRecordMessageSchema>;
|
|
3691
|
+
export type ExpertDefinitionResultMessage = z.infer<typeof ExpertDefinitionResultMessageSchema>;
|
|
3692
|
+
export type ExpertDeletedMessage = z.infer<typeof ExpertDeletedMessageSchema>;
|
|
3693
|
+
export type SetUpExpertInstanceMessage = z.infer<typeof SetUpExpertInstanceMessageSchema>;
|
|
3694
|
+
export type ExpertSetUpOfferEndedMessage = z.infer<typeof ExpertSetUpOfferEndedMessageSchema>;
|
|
3695
|
+
export type ExpertQuestionsAskedOnYourOtherComputersMessage = z.infer<typeof ExpertQuestionsAskedOnYourOtherComputersMessageSchema>;
|
|
3210
3696
|
export type ExpertCreationSuggestionMessage = z.infer<typeof ExpertCreationSuggestionMessageSchema>;
|
|
3697
|
+
export type ExpertCreationSuggestionRepetition = z.infer<typeof ExpertCreationSuggestionRepetitionSchema>;
|
|
3211
3698
|
export type RunnerExpertCreationSuggestionEndedMessage = z.infer<typeof RunnerExpertCreationSuggestionEndedMessageSchema>;
|
|
3212
3699
|
export type ExpertCreationProgressState = z.infer<typeof ExpertCreationProgressStateSchema>;
|
|
3213
3700
|
export type ExpertCreationProgressMessage = z.infer<typeof ExpertCreationProgressMessageSchema>;
|