@isoplan/protocol 0.15.1 → 0.18.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 -1
- package/dist/messages.d.ts +996 -227
- package/dist/messages.js +530 -117
- 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,13 @@ 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.
|
|
166
|
+
* `sharesWhatExpertInstancesLearn` (protocol 0.18.0, isoplan-app#366): this runner sends what its
|
|
167
|
+
* instances' forks learn to their expert records, and takes what other instances learned, in the
|
|
168
|
+
* messages of "What instances learn". The server sends none of them to a runner that didn't say it.
|
|
162
169
|
*/
|
|
163
170
|
export declare const RunnerHelloMessageSchema: z.ZodObject<{
|
|
164
171
|
type: z.ZodLiteral<"runner">;
|
|
@@ -185,9 +192,10 @@ export declare const RunnerHelloMessageSchema: z.ZodObject<{
|
|
|
185
192
|
orca: "orca";
|
|
186
193
|
terminal: "terminal";
|
|
187
194
|
}>>>;
|
|
188
|
-
experts: z.ZodOptional<z.ZodLiteral<true>>;
|
|
189
195
|
hiddenStarts: z.ZodOptional<z.ZodLiteral<true>>;
|
|
190
196
|
canCreateExpertsFromSuggestions: z.ZodOptional<z.ZodLiteral<true>>;
|
|
197
|
+
expertInstances: z.ZodOptional<z.ZodLiteral<true>>;
|
|
198
|
+
sharesWhatExpertInstancesLearn: z.ZodOptional<z.ZodLiteral<true>>;
|
|
191
199
|
}, z.core.$strip>;
|
|
192
200
|
/** All of the session's facts. Sent on connect and on repair. */
|
|
193
201
|
export declare const FullMessageSchema: z.ZodObject<{
|
|
@@ -639,7 +647,7 @@ export declare const OwnerMessageRefusalSchema: z.ZodEnum<{
|
|
|
639
647
|
"no-submit": "no-submit";
|
|
640
648
|
"not-owner": "not-owner";
|
|
641
649
|
}>;
|
|
642
|
-
/** The most experts a
|
|
650
|
+
/** The most experts a session is told it may ask (protocol 0.13.0). */
|
|
643
651
|
export declare const MAX_EXPERTS = 20;
|
|
644
652
|
/** The longest subject an expert lists: what to ask it about, and before which changes. */
|
|
645
653
|
export declare const MAX_EXPERT_SUBJECT_LENGTH = 1000;
|
|
@@ -650,30 +658,23 @@ export declare const MAX_EXPERT_SUBJECT_LENGTH = 1000;
|
|
|
650
658
|
export declare const MAX_EXPERT_ANSWER_LENGTH = 8000;
|
|
651
659
|
/** An expert's name, as its file is named: `~/.claude/isoplan/experts/<name>.json`. */
|
|
652
660
|
export declare const ExpertNameSchema: z.ZodString;
|
|
653
|
-
/**
|
|
661
|
+
/**
|
|
662
|
+
* Every situation ask_expert tells its agent about, by a stable code. `EXPERT_NOT_SET_UP` (protocol
|
|
663
|
+
* 0.17.0): this computer has no instance of the expert yet, so its set-up is offered. No 0.17.0 side
|
|
664
|
+
* sends `EXPERT_QUEUED` or `EXPERT_DROPPED`; an office from before 0.17.0 may still send them in a
|
|
665
|
+
* late end. `EXPERT_QUESTION_HELD` is gone (0.17.0): a runner made it, and no office ever sent it.
|
|
666
|
+
*/
|
|
654
667
|
export declare const ExpertCodeSchema: z.ZodEnum<{
|
|
655
668
|
EXPERT_CAP: "EXPERT_CAP";
|
|
656
669
|
EXPERT_DROPPED: "EXPERT_DROPPED";
|
|
657
670
|
EXPERT_FORK_FAILED: "EXPERT_FORK_FAILED";
|
|
671
|
+
EXPERT_NOT_SET_UP: "EXPERT_NOT_SET_UP";
|
|
658
672
|
EXPERT_PLUGIN_OLD: "EXPERT_PLUGIN_OLD";
|
|
659
|
-
EXPERT_QUESTION_HELD: "EXPERT_QUESTION_HELD";
|
|
660
673
|
EXPERT_QUEUED: "EXPERT_QUEUED";
|
|
661
674
|
EXPERT_RUNNER_UNREACHABLE: "EXPERT_RUNNER_UNREACHABLE";
|
|
662
675
|
EXPERT_STARTING: "EXPERT_STARTING";
|
|
663
676
|
EXPERT_UNKNOWN: "EXPERT_UNKNOWN";
|
|
664
677
|
}>;
|
|
665
|
-
/** `starting`: no generation of it has passed its proof question yet; `ready`: its junior answers; `failed`: its last grounding failed and none answers. */
|
|
666
|
-
export declare const ExpertStateSchema: z.ZodEnum<{
|
|
667
|
-
failed: "failed";
|
|
668
|
-
ready: "ready";
|
|
669
|
-
starting: "starting";
|
|
670
|
-
}>;
|
|
671
|
-
/** 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. */
|
|
672
|
-
export declare const ExpertCapSchema: z.ZodEnum<{
|
|
673
|
-
"asker-day": "asker-day";
|
|
674
|
-
"asker-open": "asker-open";
|
|
675
|
-
"expert-tokens": "expert-tokens";
|
|
676
|
-
}>;
|
|
677
678
|
/** The most folders or globs an expert's area names (protocol 0.15.0). */
|
|
678
679
|
export declare const MAX_AREA_PATHS = 20;
|
|
679
680
|
/**
|
|
@@ -682,53 +683,16 @@ export declare const MAX_AREA_PATHS = 20;
|
|
|
682
683
|
*/
|
|
683
684
|
export declare const expertDisplayName: (key: string) => string;
|
|
684
685
|
/**
|
|
685
|
-
* One expert a
|
|
686
|
-
*
|
|
687
|
-
*
|
|
688
|
-
* covers, from its file, so the office never suggests creating an expert on a folder one already covers;
|
|
689
|
-
* absent from an older runner, or when its file names none. An older server ignores both.
|
|
686
|
+
* One expert a session may ask: `repo` is its project's short name, `host` a person's name: the
|
|
687
|
+
* hosting person's until 0.17.0, and from 0.17.0 the expert's owner's, kept so an older plugin still
|
|
688
|
+
* parses it.
|
|
690
689
|
*/
|
|
691
|
-
export declare const ExpertListingSchema: z.ZodObject<{
|
|
692
|
-
name: z.ZodString;
|
|
693
|
-
project: z.ZodObject<{
|
|
694
|
-
id: z.ZodString;
|
|
695
|
-
name: z.ZodString;
|
|
696
|
-
}, z.core.$strip>;
|
|
697
|
-
subject: z.ZodString;
|
|
698
|
-
state: z.ZodEnum<{
|
|
699
|
-
failed: "failed";
|
|
700
|
-
ready: "ready";
|
|
701
|
-
starting: "starting";
|
|
702
|
-
}>;
|
|
703
|
-
senior: z.ZodOptional<z.ZodBoolean>;
|
|
704
|
-
areas: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
705
|
-
}, z.core.$strip>;
|
|
706
|
-
/** One expert a session may ask: `repo` is its project's short name, `host` the hosting person's name. */
|
|
707
690
|
export declare const ExpertRightSchema: z.ZodObject<{
|
|
708
691
|
name: z.ZodString;
|
|
709
692
|
subject: z.ZodString;
|
|
710
693
|
repo: z.ZodString;
|
|
711
694
|
host: z.ZodString;
|
|
712
695
|
}, z.core.$strip>;
|
|
713
|
-
/**
|
|
714
|
-
* Why the host's runner won't answer an expert question, beside an `unavailable` refusal's `detail`:
|
|
715
|
-
* one of the expert file's caps is reached (`frees`, when it frees), the fork couldn't answer, or this
|
|
716
|
-
* machine hosts no expert by that name now.
|
|
717
|
-
*/
|
|
718
|
-
export declare const ExpertRefusalSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
719
|
-
code: z.ZodLiteral<"EXPERT_CAP">;
|
|
720
|
-
cap: z.ZodEnum<{
|
|
721
|
-
"asker-day": "asker-day";
|
|
722
|
-
"asker-open": "asker-open";
|
|
723
|
-
"expert-tokens": "expert-tokens";
|
|
724
|
-
}>;
|
|
725
|
-
limit: z.ZodNumber;
|
|
726
|
-
frees: z.ZodOptional<z.ZodISODateTime>;
|
|
727
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
728
|
-
code: z.ZodLiteral<"EXPERT_FORK_FAILED">;
|
|
729
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
730
|
-
code: z.ZodLiteral<"EXPERT_UNKNOWN">;
|
|
731
|
-
}, z.core.$strip>], "code">;
|
|
732
696
|
/** 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. */
|
|
733
697
|
export declare const CapSchema: z.ZodEnum<{
|
|
734
698
|
"owner-day": "owner-day";
|
|
@@ -783,14 +747,6 @@ export declare const ReplyMessageSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
783
747
|
v: z.ZodLiteral<1>;
|
|
784
748
|
id: z.ZodString;
|
|
785
749
|
kind: z.ZodLiteral<"focus">;
|
|
786
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
787
|
-
type: z.ZodLiteral<"reply">;
|
|
788
|
-
v: z.ZodLiteral<1>;
|
|
789
|
-
id: z.ZodString;
|
|
790
|
-
kind: z.ZodLiteral<"answer-expert">;
|
|
791
|
-
answer: z.ZodString;
|
|
792
|
-
commit: z.ZodString;
|
|
793
|
-
branch: z.ZodString;
|
|
794
750
|
}, z.core.$strip>], "kind">;
|
|
795
751
|
/**
|
|
796
752
|
* A request the machine won't answer, sent in place of its reply. `over-cap` names the cap it would
|
|
@@ -830,20 +786,6 @@ export declare const RefusalMessageSchema: z.ZodDiscriminatedUnion<[z.ZodObject<
|
|
|
830
786
|
"no-submit": "no-submit";
|
|
831
787
|
"not-owner": "not-owner";
|
|
832
788
|
}>>;
|
|
833
|
-
expert: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
834
|
-
code: z.ZodLiteral<"EXPERT_CAP">;
|
|
835
|
-
cap: z.ZodEnum<{
|
|
836
|
-
"asker-day": "asker-day";
|
|
837
|
-
"asker-open": "asker-open";
|
|
838
|
-
"expert-tokens": "expert-tokens";
|
|
839
|
-
}>;
|
|
840
|
-
limit: z.ZodNumber;
|
|
841
|
-
frees: z.ZodOptional<z.ZodISODateTime>;
|
|
842
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
843
|
-
code: z.ZodLiteral<"EXPERT_FORK_FAILED">;
|
|
844
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
845
|
-
code: z.ZodLiteral<"EXPERT_UNKNOWN">;
|
|
846
|
-
}, z.core.$strip>], "code">>;
|
|
847
789
|
}, z.core.$strip>], "reason">;
|
|
848
790
|
/**
|
|
849
791
|
* The sender's session handed its room over with the command: its agent wrote the brief and pushed.
|
|
@@ -936,46 +878,6 @@ export declare const AskedAckMessageSchema: z.ZodObject<{
|
|
|
936
878
|
v: z.ZodLiteral<1>;
|
|
937
879
|
question: z.ZodString;
|
|
938
880
|
}, z.core.$strip>;
|
|
939
|
-
/**
|
|
940
|
-
* The experts this runner hosts (protocol 0.13.0), as it lists them to this office server, each one
|
|
941
|
-
* whose repo the server's approved list takes. Sent only by a runner that said `experts`, only while
|
|
942
|
-
* its link is up (never through the reply outbox), and never on a connection before that
|
|
943
|
-
* connection's first `hosting`. The runner works the listing out again on every `hosting`, on every
|
|
944
|
-
* change to its experts and every few minutes, and sends it when it differs from the last one it
|
|
945
|
-
* sent on the connection; the first on a connection is always sent, even an empty one. It sends none
|
|
946
|
-
* while it has no approved list. Each one replaces the last. Names are unique.
|
|
947
|
-
*/
|
|
948
|
-
export declare const ExpertsMessageSchema: z.ZodObject<{
|
|
949
|
-
type: z.ZodLiteral<"experts">;
|
|
950
|
-
v: z.ZodLiteral<1>;
|
|
951
|
-
experts: z.ZodArray<z.ZodObject<{
|
|
952
|
-
name: z.ZodString;
|
|
953
|
-
project: z.ZodObject<{
|
|
954
|
-
id: z.ZodString;
|
|
955
|
-
name: z.ZodString;
|
|
956
|
-
}, z.core.$strip>;
|
|
957
|
-
subject: z.ZodString;
|
|
958
|
-
state: z.ZodEnum<{
|
|
959
|
-
failed: "failed";
|
|
960
|
-
ready: "ready";
|
|
961
|
-
starting: "starting";
|
|
962
|
-
}>;
|
|
963
|
-
senior: z.ZodOptional<z.ZodBoolean>;
|
|
964
|
-
areas: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
965
|
-
}, z.core.$strip>>;
|
|
966
|
-
}, z.core.$strip>;
|
|
967
|
-
/**
|
|
968
|
-
* The junior answering the `answer-expert` request `id` has asked its senior (protocol 0.14.0), so
|
|
969
|
-
* the floor can show the senior joining the question's meeting. It carries no text: nothing of the
|
|
970
|
-
* question or of what the junior asked. Sent once per request, when the junior first asks, only to a
|
|
971
|
-
* server whose `hosting` says `expertSenior`, and only while the link is up (never through the reply
|
|
972
|
-
* outbox): a server from before 0.14.0, which doesn't say it, is never sent one.
|
|
973
|
-
*/
|
|
974
|
-
export declare const ExpertSeniorMessageSchema: z.ZodObject<{
|
|
975
|
-
type: z.ZodLiteral<"expert-senior">;
|
|
976
|
-
v: z.ZodLiteral<1>;
|
|
977
|
-
id: z.ZodString;
|
|
978
|
-
}, z.core.$strip>;
|
|
979
881
|
/**
|
|
980
882
|
* A session asks an expert a question (protocol 0.13.0), on its own short link with the session's
|
|
981
883
|
* hello, as ask-room is. `key` is the tool call's id: asked again under it, it is the same question.
|
|
@@ -984,6 +886,8 @@ export declare const ExpertSeniorMessageSchema: z.ZodObject<{
|
|
|
984
886
|
* pairing codes, as for ask-room). It is a message of its own, not an ask-room with an expert, so a
|
|
985
887
|
* server from before experts refuses it rather than asking a room. The session then polls it with
|
|
986
888
|
* ask-check and acks its end with asked-ack, as for a room question.
|
|
889
|
+
* From 0.17.0 a server answers it only with an error `EXPERT_PLUGIN_OLD`, and a 0.17.0 plugin never
|
|
890
|
+
* sends it: it asks its own computer's instance of the expert (see `expert-question`).
|
|
987
891
|
*/
|
|
988
892
|
export declare const AskExpertMessageSchema: z.ZodObject<{
|
|
989
893
|
type: z.ZodLiteral<"ask-expert">;
|
|
@@ -1007,10 +911,20 @@ export declare const MAX_EXPERT_CREATION_SUGGESTION_DISMISSALS = 1000;
|
|
|
1007
911
|
* and `proof`, as the runner's local model wrote them and the secret check passed them. `why`, the
|
|
1008
912
|
* signals that passed their thresholds, each other one 0: `share`, the share of the session's context
|
|
1009
913
|
* spent reading and searching the folder (0 to 1), and `tokens`, those tokens, which are one signal;
|
|
1010
|
-
* `minutes`, the time spent there; `corrections`, the person's corrections there. `
|
|
1011
|
-
*
|
|
1012
|
-
*
|
|
914
|
+
* `minutes`, the time spent there; `corrections`, the person's corrections there. `repetition`
|
|
915
|
+
* (from 0.16.0, a session's suggestion only), what was done in its area again, which suggested it:
|
|
916
|
+
* its `folder`, the file read most, was read in `readings` turns over `sessions` sessions, the
|
|
917
|
+
* area's `files` read again with it; or its folder was searched `searches` times. An older runner
|
|
918
|
+
* sends none, and an older side ignores it. `at`: when it was suggested. Of its text, only these
|
|
919
|
+
* leave the machine, under ADR 0004's case for an expert creation suggestion's draft.
|
|
1013
920
|
*/
|
|
921
|
+
export declare const ExpertCreationSuggestionRepetitionSchema: z.ZodUnion<readonly [z.ZodObject<{
|
|
922
|
+
readings: z.ZodNumber;
|
|
923
|
+
sessions: z.ZodNumber;
|
|
924
|
+
files: z.ZodNumber;
|
|
925
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
926
|
+
searches: z.ZodNumber;
|
|
927
|
+
}, z.core.$strip>]>;
|
|
1014
928
|
export declare const ExpertCreationSuggestionMessageSchema: z.ZodObject<{
|
|
1015
929
|
type: z.ZodLiteral<"expert-creation-suggestion">;
|
|
1016
930
|
v: z.ZodLiteral<1>;
|
|
@@ -1038,6 +952,13 @@ export declare const ExpertCreationSuggestionMessageSchema: z.ZodObject<{
|
|
|
1038
952
|
minutes: z.ZodNumber;
|
|
1039
953
|
corrections: z.ZodNumber;
|
|
1040
954
|
}, z.core.$strip>;
|
|
955
|
+
repetition: z.ZodOptional<z.ZodUnion<readonly [z.ZodObject<{
|
|
956
|
+
readings: z.ZodNumber;
|
|
957
|
+
sessions: z.ZodNumber;
|
|
958
|
+
files: z.ZodNumber;
|
|
959
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
960
|
+
searches: z.ZodNumber;
|
|
961
|
+
}, z.core.$strip>]>>;
|
|
1041
962
|
at: z.ZodISODateTime;
|
|
1042
963
|
}, z.core.$strip>;
|
|
1043
964
|
/**
|
|
@@ -1085,6 +1006,324 @@ export declare const ExpertCreationProgressMessageSchema: z.ZodObject<{
|
|
|
1085
1006
|
}>;
|
|
1086
1007
|
detail: z.ZodOptional<z.ZodString>;
|
|
1087
1008
|
}, z.core.$strip>;
|
|
1009
|
+
/** The most expert records an `expert-directory` or an `expert-instance-states` names. */
|
|
1010
|
+
export declare const MAX_EXPERT_RECORDS = 1000;
|
|
1011
|
+
/** The most times an `expert-questions-asked-on-your-other-computers` lists for the last day. */
|
|
1012
|
+
export declare const MAX_EXPERT_QUESTION_TIMES_IN_THE_LAST_DAY = 1000;
|
|
1013
|
+
/**
|
|
1014
|
+
* Which expert record: made by the server when the record is made, so a record made again under the
|
|
1015
|
+
* key of a deleted one is told apart from the old one.
|
|
1016
|
+
*/
|
|
1017
|
+
export declare const ExpertRecordIdSchema: z.ZodUUID;
|
|
1018
|
+
/**
|
|
1019
|
+
* What every computer's instance of an expert shares, as its owner's expert file says it: its key;
|
|
1020
|
+
* its project, one with a remote, never a folder on one computer (`local:`); its subject; the model
|
|
1021
|
+
* it grounds with; the context, in tokens, at which its junior is promoted (`promoteAtTokens`); the
|
|
1022
|
+
* folders and globs of its repo it covers (`areas`); and its proof question with the answer expected.
|
|
1023
|
+
* `learnedElsewhereTokensPerQuestion` (protocol 0.18.0, isoplan-app#366): the most tokens of what
|
|
1024
|
+
* other instances learned that one fork's question carries, and that a new generation's grounding
|
|
1025
|
+
* carries; absent is DEFAULT_LEARNED_ELSEWHERE_TOKENS_PER_QUESTION. A runner sends it only when the
|
|
1026
|
+
* expert file sets it, so a definition that never set it is the same as before. An owner's computer
|
|
1027
|
+
* from before 0.18.0 publishes the definition without it, which the server takes as a change, so
|
|
1028
|
+
* every computer of a person is updated.
|
|
1029
|
+
* The rest of an expert file is that computer's own, and never leaves it.
|
|
1030
|
+
*/
|
|
1031
|
+
export declare const ExpertDefinitionSchema: z.ZodObject<{
|
|
1032
|
+
key: z.ZodString;
|
|
1033
|
+
project: z.ZodObject<{
|
|
1034
|
+
id: z.ZodString;
|
|
1035
|
+
name: z.ZodString;
|
|
1036
|
+
}, z.core.$strip>;
|
|
1037
|
+
subject: z.ZodString;
|
|
1038
|
+
model: z.ZodString;
|
|
1039
|
+
promoteAtTokens: z.ZodNumber;
|
|
1040
|
+
areas: z.ZodArray<z.ZodString>;
|
|
1041
|
+
proof: z.ZodObject<{
|
|
1042
|
+
question: z.ZodString;
|
|
1043
|
+
answer: z.ZodString;
|
|
1044
|
+
}, z.core.$strip>;
|
|
1045
|
+
learnedElsewhereTokensPerQuestion: z.ZodOptional<z.ZodNumber>;
|
|
1046
|
+
}, z.core.$strip>;
|
|
1047
|
+
/**
|
|
1048
|
+
* Where this computer's instance of the expert `key` stands, set up from (or, on its owner's
|
|
1049
|
+
* computer, published as) the record `expertRecordId`: `setting-up`, with its `step` (`cloning`,
|
|
1050
|
+
* finding this computer's checkout of the project or cloning it; `grounding`; `proof`); `ready`, its
|
|
1051
|
+
* junior answers; or `failed`, with its `failure`: `clone`, the project couldn't be cloned, with
|
|
1052
|
+
* git's words in `detail`, secret-checked on this computer; `proof`, its proof question failed;
|
|
1053
|
+
* `key-used-here`, this computer has its own expert with that key, whose publish was refused
|
|
1054
|
+
* `key-taken`, so the record can't be set up here until that one is renamed; `other`, with why in
|
|
1055
|
+
* `detail`. `senior`: it has a senior generation, which its junior can ask. `groundingTokens`: its
|
|
1056
|
+
* junior's context after grounding. No definition field: the record has it.
|
|
1057
|
+
*/
|
|
1058
|
+
export declare const ExpertInstanceStateSchema: z.ZodObject<{
|
|
1059
|
+
key: z.ZodString;
|
|
1060
|
+
expertRecordId: z.ZodUUID;
|
|
1061
|
+
state: z.ZodEnum<{
|
|
1062
|
+
failed: "failed";
|
|
1063
|
+
ready: "ready";
|
|
1064
|
+
"setting-up": "setting-up";
|
|
1065
|
+
}>;
|
|
1066
|
+
step: z.ZodOptional<z.ZodEnum<{
|
|
1067
|
+
cloning: "cloning";
|
|
1068
|
+
grounding: "grounding";
|
|
1069
|
+
proof: "proof";
|
|
1070
|
+
}>>;
|
|
1071
|
+
senior: z.ZodOptional<z.ZodLiteral<true>>;
|
|
1072
|
+
groundingTokens: z.ZodOptional<z.ZodNumber>;
|
|
1073
|
+
failure: z.ZodOptional<z.ZodObject<{
|
|
1074
|
+
why: z.ZodEnum<{
|
|
1075
|
+
clone: "clone";
|
|
1076
|
+
"key-used-here": "key-used-here";
|
|
1077
|
+
other: "other";
|
|
1078
|
+
proof: "proof";
|
|
1079
|
+
}>;
|
|
1080
|
+
detail: z.ZodOptional<z.ZodString>;
|
|
1081
|
+
}, z.core.$strip>>;
|
|
1082
|
+
}, z.core.$strip>;
|
|
1083
|
+
/**
|
|
1084
|
+
* One expert record in an `expert-directory`: one whose project an office holds. `owner` is the
|
|
1085
|
+
* expert's owner, `yours` marks a record this runner's person owns, `revision` is its definition's
|
|
1086
|
+
* revision now, and `groundingTokens` a junior's context after grounding, as an instance last said.
|
|
1087
|
+
*/
|
|
1088
|
+
export declare const ExpertDirectoryEntrySchema: z.ZodObject<{
|
|
1089
|
+
key: z.ZodString;
|
|
1090
|
+
expertRecordId: z.ZodUUID;
|
|
1091
|
+
project: z.ZodObject<{
|
|
1092
|
+
id: z.ZodString;
|
|
1093
|
+
name: z.ZodString;
|
|
1094
|
+
}, z.core.$strip>;
|
|
1095
|
+
owner: z.ZodObject<{
|
|
1096
|
+
id: z.ZodString;
|
|
1097
|
+
name: z.ZodString;
|
|
1098
|
+
}, z.core.$strip>;
|
|
1099
|
+
yours: z.ZodOptional<z.ZodLiteral<true>>;
|
|
1100
|
+
revision: z.ZodNumber;
|
|
1101
|
+
groundingTokens: z.ZodOptional<z.ZodNumber>;
|
|
1102
|
+
}, z.core.$strip>;
|
|
1103
|
+
/**
|
|
1104
|
+
* The owner's runner publishes the expert's definition from the expert file (protocol 0.17.0), after
|
|
1105
|
+
* checking it for secrets on this computer (a match sends nothing). `basedOn`: the record and
|
|
1106
|
+
* revision this computer last had of it from this server; absent for a file never published there.
|
|
1107
|
+
* Sent on each new connection while the file differs from that revision, and on each change. The
|
|
1108
|
+
* server answers `expert-definition-result`; the same definition and `basedOn` again get the same
|
|
1109
|
+
* result.
|
|
1110
|
+
*/
|
|
1111
|
+
export declare const ExpertDefinitionMessageSchema: z.ZodObject<{
|
|
1112
|
+
type: z.ZodLiteral<"expert-definition">;
|
|
1113
|
+
v: z.ZodLiteral<1>;
|
|
1114
|
+
definition: z.ZodObject<{
|
|
1115
|
+
key: z.ZodString;
|
|
1116
|
+
project: z.ZodObject<{
|
|
1117
|
+
id: z.ZodString;
|
|
1118
|
+
name: z.ZodString;
|
|
1119
|
+
}, z.core.$strip>;
|
|
1120
|
+
subject: z.ZodString;
|
|
1121
|
+
model: z.ZodString;
|
|
1122
|
+
promoteAtTokens: z.ZodNumber;
|
|
1123
|
+
areas: z.ZodArray<z.ZodString>;
|
|
1124
|
+
proof: z.ZodObject<{
|
|
1125
|
+
question: z.ZodString;
|
|
1126
|
+
answer: z.ZodString;
|
|
1127
|
+
}, z.core.$strip>;
|
|
1128
|
+
learnedElsewhereTokensPerQuestion: z.ZodOptional<z.ZodNumber>;
|
|
1129
|
+
}, z.core.$strip>;
|
|
1130
|
+
basedOn: z.ZodOptional<z.ZodObject<{
|
|
1131
|
+
expertRecordId: z.ZodUUID;
|
|
1132
|
+
revision: z.ZodNumber;
|
|
1133
|
+
}, z.core.$strip>>;
|
|
1134
|
+
}, z.core.$strip>;
|
|
1135
|
+
/**
|
|
1136
|
+
* Send this computer the record `expertRecordId` of the expert `key` (protocol 0.17.0), answered
|
|
1137
|
+
* with `expert-record`. Sent only once this computer has a checkout or clone of the record's
|
|
1138
|
+
* project, and again after each new connection's first `expert-directory` while it is still wanted.
|
|
1139
|
+
*/
|
|
1140
|
+
export declare const ExpertRecordWantedMessageSchema: z.ZodObject<{
|
|
1141
|
+
type: z.ZodLiteral<"expert-record-wanted">;
|
|
1142
|
+
v: z.ZodLiteral<1>;
|
|
1143
|
+
key: z.ZodString;
|
|
1144
|
+
expertRecordId: z.ZodUUID;
|
|
1145
|
+
}, z.core.$strip>;
|
|
1146
|
+
/**
|
|
1147
|
+
* Every instance on this computer of this server's expert records whose project this server takes
|
|
1148
|
+
* (protocol 0.17.0), the whole list each time: the first on each connection always, even an empty
|
|
1149
|
+
* one, then only when it differs. An instance set up from one office server is never named to
|
|
1150
|
+
* another. Each key once.
|
|
1151
|
+
*/
|
|
1152
|
+
export declare const ExpertInstanceStatesMessageSchema: z.ZodObject<{
|
|
1153
|
+
type: z.ZodLiteral<"expert-instance-states">;
|
|
1154
|
+
v: z.ZodLiteral<1>;
|
|
1155
|
+
instances: z.ZodArray<z.ZodObject<{
|
|
1156
|
+
key: z.ZodString;
|
|
1157
|
+
expertRecordId: z.ZodUUID;
|
|
1158
|
+
state: z.ZodEnum<{
|
|
1159
|
+
failed: "failed";
|
|
1160
|
+
ready: "ready";
|
|
1161
|
+
"setting-up": "setting-up";
|
|
1162
|
+
}>;
|
|
1163
|
+
step: z.ZodOptional<z.ZodEnum<{
|
|
1164
|
+
cloning: "cloning";
|
|
1165
|
+
grounding: "grounding";
|
|
1166
|
+
proof: "proof";
|
|
1167
|
+
}>>;
|
|
1168
|
+
senior: z.ZodOptional<z.ZodLiteral<true>>;
|
|
1169
|
+
groundingTokens: z.ZodOptional<z.ZodNumber>;
|
|
1170
|
+
failure: z.ZodOptional<z.ZodObject<{
|
|
1171
|
+
why: z.ZodEnum<{
|
|
1172
|
+
clone: "clone";
|
|
1173
|
+
"key-used-here": "key-used-here";
|
|
1174
|
+
other: "other";
|
|
1175
|
+
proof: "proof";
|
|
1176
|
+
}>;
|
|
1177
|
+
detail: z.ZodOptional<z.ZodString>;
|
|
1178
|
+
}, z.core.$strip>>;
|
|
1179
|
+
}, z.core.$strip>>;
|
|
1180
|
+
}, z.core.$strip>;
|
|
1181
|
+
/**
|
|
1182
|
+
* A question this computer's session asked the expert `key` (protocol 0.17.0), as a record with no
|
|
1183
|
+
* words: never the question's or the answer's text. `id` is the tool call's id, `session` the asking
|
|
1184
|
+
* session as its hello names it (`claude-code:<id>`), `blocking` whether its agent waited, `state`
|
|
1185
|
+
* where it stands (`asking`, `answered` or `dropped`, with its `code`), `senior` that its junior asked
|
|
1186
|
+
* its senior, and `askedAt` and `endedAt` when it was asked and ended. Sent at each change of state,
|
|
1187
|
+
* and again after each new connection's first `expert-directory` until its end has gone. The same
|
|
1188
|
+
* `id` and `state` again is the same record.
|
|
1189
|
+
*/
|
|
1190
|
+
export declare const ExpertQuestionMessageSchema: z.ZodObject<{
|
|
1191
|
+
type: z.ZodLiteral<"expert-question">;
|
|
1192
|
+
v: z.ZodLiteral<1>;
|
|
1193
|
+
id: z.ZodString;
|
|
1194
|
+
key: z.ZodString;
|
|
1195
|
+
expertRecordId: z.ZodUUID;
|
|
1196
|
+
session: z.ZodString;
|
|
1197
|
+
blocking: z.ZodBoolean;
|
|
1198
|
+
state: z.ZodEnum<{
|
|
1199
|
+
answered: "answered";
|
|
1200
|
+
asking: "asking";
|
|
1201
|
+
dropped: "dropped";
|
|
1202
|
+
}>;
|
|
1203
|
+
code: z.ZodOptional<z.ZodEnum<{
|
|
1204
|
+
EXPERT_CAP: "EXPERT_CAP";
|
|
1205
|
+
EXPERT_DROPPED: "EXPERT_DROPPED";
|
|
1206
|
+
EXPERT_FORK_FAILED: "EXPERT_FORK_FAILED";
|
|
1207
|
+
EXPERT_NOT_SET_UP: "EXPERT_NOT_SET_UP";
|
|
1208
|
+
EXPERT_PLUGIN_OLD: "EXPERT_PLUGIN_OLD";
|
|
1209
|
+
EXPERT_QUEUED: "EXPERT_QUEUED";
|
|
1210
|
+
EXPERT_RUNNER_UNREACHABLE: "EXPERT_RUNNER_UNREACHABLE";
|
|
1211
|
+
EXPERT_STARTING: "EXPERT_STARTING";
|
|
1212
|
+
EXPERT_UNKNOWN: "EXPERT_UNKNOWN";
|
|
1213
|
+
}>>;
|
|
1214
|
+
senior: z.ZodOptional<z.ZodLiteral<true>>;
|
|
1215
|
+
askedAt: z.ZodISODateTime;
|
|
1216
|
+
endedAt: z.ZodOptional<z.ZodISODateTime>;
|
|
1217
|
+
}, z.core.$strip>;
|
|
1218
|
+
/**
|
|
1219
|
+
* An agent on this computer asked the expert `key`, of which this computer has no instance, so its
|
|
1220
|
+
* person is offered to set it up (protocol 0.17.0, ADR 0013). Sent once per computer per record,
|
|
1221
|
+
* ever, and again after each new connection's first `expert-directory` until it has gone. A repeat
|
|
1222
|
+
* for the same record, person and computer changes nothing. No text of the question.
|
|
1223
|
+
*/
|
|
1224
|
+
export declare const ExpertSetUpOfferedMessageSchema: z.ZodObject<{
|
|
1225
|
+
type: z.ZodLiteral<"expert-set-up-offered">;
|
|
1226
|
+
v: z.ZodLiteral<1>;
|
|
1227
|
+
key: z.ZodString;
|
|
1228
|
+
expertRecordId: z.ZodUUID;
|
|
1229
|
+
}, z.core.$strip>;
|
|
1230
|
+
/**
|
|
1231
|
+
* This computer's instance of the expert `key`, whose record isn't its person's own, failed its proof
|
|
1232
|
+
* question at `revision` until its tries ran out (protocol 0.17.0), for the expert's owner to see:
|
|
1233
|
+
* `answer`, what its fork answered, secret-checked on this computer, or `answerHeld`, that it matched
|
|
1234
|
+
* a secret pattern and so isn't sent. Exactly one of the two. Sent once per revision, and again after
|
|
1235
|
+
* each new connection's first `expert-directory` until it has gone. A repeat for the same record,
|
|
1236
|
+
* computer and revision changes nothing.
|
|
1237
|
+
*/
|
|
1238
|
+
export declare const ExpertProofFailedMessageSchema: z.ZodObject<{
|
|
1239
|
+
type: z.ZodLiteral<"expert-proof-failed">;
|
|
1240
|
+
v: z.ZodLiteral<1>;
|
|
1241
|
+
key: z.ZodString;
|
|
1242
|
+
expertRecordId: z.ZodUUID;
|
|
1243
|
+
revision: z.ZodNumber;
|
|
1244
|
+
answer: z.ZodOptional<z.ZodString>;
|
|
1245
|
+
answerHeld: z.ZodOptional<z.ZodLiteral<true>>;
|
|
1246
|
+
}, z.core.$strip>;
|
|
1247
|
+
/** The longest thing learned a runner sends: a fork's <learned> block is cut to this. */
|
|
1248
|
+
export declare const MAX_WHAT_WAS_LEARNED_LENGTH = 3000;
|
|
1249
|
+
/** The most files one thing learned names. */
|
|
1250
|
+
export declare const MAX_FILES_WHAT_WAS_LEARNED_RESTS_ON = 50;
|
|
1251
|
+
/** The most entries one `expert-learned-since` carries: more go in the messages after it. */
|
|
1252
|
+
export declare const MAX_WHAT_WAS_LEARNED_ENTRIES_PER_MESSAGE = 100;
|
|
1253
|
+
/** How much of what other instances learned one fork's question carries, in tokens, when the definition says none (D17). */
|
|
1254
|
+
export declare const DEFAULT_LEARNED_ELSEWHERE_TOKENS_PER_QUESTION = 20000;
|
|
1255
|
+
/** Made by the runner that wrote it: the server keeps one of each per expert record. */
|
|
1256
|
+
export declare const WhatWasLearnedIdSchema: z.ZodUUID;
|
|
1257
|
+
/** A file a thing learned rests on, and the commit it was read at; absent when unknown. */
|
|
1258
|
+
export declare const FileWhatWasLearnedRestsOnSchema: z.ZodObject<{
|
|
1259
|
+
path: z.ZodString;
|
|
1260
|
+
commit: z.ZodOptional<z.ZodString>;
|
|
1261
|
+
}, z.core.$strip>;
|
|
1262
|
+
/**
|
|
1263
|
+
* One entry of an expert record's sequence, in arrival order: `learned`, a thing an instance learned;
|
|
1264
|
+
* `learned-then-removed`, one removed on the card since (its text and files gone); `removed`, the
|
|
1265
|
+
* removal itself, of the thing `id`, at `at`. Who removed it stays on the server.
|
|
1266
|
+
*/
|
|
1267
|
+
export declare const WhatWasLearnedEntrySchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
1268
|
+
id: z.ZodUUID;
|
|
1269
|
+
text: z.ZodString;
|
|
1270
|
+
files: z.ZodArray<z.ZodObject<{
|
|
1271
|
+
path: z.ZodString;
|
|
1272
|
+
commit: z.ZodOptional<z.ZodString>;
|
|
1273
|
+
}, z.core.$strip>>;
|
|
1274
|
+
learnedAt: z.ZodISODateTime;
|
|
1275
|
+
kind: z.ZodLiteral<"learned">;
|
|
1276
|
+
arrivalNumber: z.ZodNumber;
|
|
1277
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
1278
|
+
kind: z.ZodLiteral<"learned-then-removed">;
|
|
1279
|
+
arrivalNumber: z.ZodNumber;
|
|
1280
|
+
id: z.ZodUUID;
|
|
1281
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
1282
|
+
kind: z.ZodLiteral<"removed">;
|
|
1283
|
+
arrivalNumber: z.ZodNumber;
|
|
1284
|
+
id: z.ZodUUID;
|
|
1285
|
+
at: z.ZodISODateTime;
|
|
1286
|
+
}, z.core.$strip>], "kind">;
|
|
1287
|
+
/** The id an entry adds to the chain: a thing learned's own id, or `removal:<id>` for its removal. */
|
|
1288
|
+
export declare const arrivalEntryId: (entry: Pick<WhatWasLearnedEntry, "kind" | "id">) => string;
|
|
1289
|
+
/**
|
|
1290
|
+
* A fork of this computer's instance of the expert `key`, tied to the record `expertRecordId`, learned
|
|
1291
|
+
* this (protocol 0.18.0): its `text`, cut to MAX_WHAT_WAS_LEARNED_LENGTH; the `files` it rests on,
|
|
1292
|
+
* each with the commit it was read at where the runner knows it; `learnedAt`; and `id`, which the
|
|
1293
|
+
* runner made. Never the question's or the answer's words. Sent once it passed both checks on this
|
|
1294
|
+
* computer, after each listing this connection sends and again while unanswered or refused
|
|
1295
|
+
* `not-an-instance-here`, until `expert-instance-learned-received` for its id comes `kept`,
|
|
1296
|
+
* `removed` or refused `record-gone`. The same id again is the same thing learned.
|
|
1297
|
+
*/
|
|
1298
|
+
export declare const ExpertInstanceLearnedMessageSchema: z.ZodObject<{
|
|
1299
|
+
id: z.ZodUUID;
|
|
1300
|
+
text: z.ZodString;
|
|
1301
|
+
files: z.ZodArray<z.ZodObject<{
|
|
1302
|
+
path: z.ZodString;
|
|
1303
|
+
commit: z.ZodOptional<z.ZodString>;
|
|
1304
|
+
}, z.core.$strip>>;
|
|
1305
|
+
learnedAt: z.ZodISODateTime;
|
|
1306
|
+
type: z.ZodLiteral<"expert-instance-learned">;
|
|
1307
|
+
v: z.ZodLiteral<1>;
|
|
1308
|
+
key: z.ZodString;
|
|
1309
|
+
expertRecordId: z.ZodUUID;
|
|
1310
|
+
}, z.core.$strip>;
|
|
1311
|
+
/**
|
|
1312
|
+
* Send this computer every entry of the record `expertRecordId` after `afterArrivalNumber`, and push
|
|
1313
|
+
* it the new ones on this connection (protocol 0.18.0), answered `expert-learned-since` or
|
|
1314
|
+
* `expert-learned-wanted-after-refused`. Always this computer's own last arrival number for the
|
|
1315
|
+
* record and its `chain` there: 0 and "" when it has none. Sent after a listing on this connection
|
|
1316
|
+
* for each record an instance here is tied to that hasn't been asked for on it, again after a
|
|
1317
|
+
* refusal `not-an-instance-here`, and to start again; one unanswered at a time per record.
|
|
1318
|
+
*/
|
|
1319
|
+
export declare const ExpertLearnedWantedAfterMessageSchema: z.ZodObject<{
|
|
1320
|
+
type: z.ZodLiteral<"expert-learned-wanted-after">;
|
|
1321
|
+
v: z.ZodLiteral<1>;
|
|
1322
|
+
key: z.ZodString;
|
|
1323
|
+
expertRecordId: z.ZodUUID;
|
|
1324
|
+
afterArrivalNumber: z.ZodNumber;
|
|
1325
|
+
chain: z.ZodUnion<readonly [z.ZodLiteral<"">, z.ZodString]>;
|
|
1326
|
+
}, z.core.$strip>;
|
|
1088
1327
|
/**
|
|
1089
1328
|
* What a runner says of the driven sessions it holds (protocol 0.5.0), sent only by a runner that said
|
|
1090
1329
|
* `drive`. `started`, `output` (for an output request or a release) and `handed-back` answer a `drive`
|
|
@@ -1369,9 +1608,10 @@ export declare const DataLayerMessageSchema: z.ZodDiscriminatedUnion<[z.ZodObjec
|
|
|
1369
1608
|
orca: "orca";
|
|
1370
1609
|
terminal: "terminal";
|
|
1371
1610
|
}>>>;
|
|
1372
|
-
experts: z.ZodOptional<z.ZodLiteral<true>>;
|
|
1373
1611
|
hiddenStarts: z.ZodOptional<z.ZodLiteral<true>>;
|
|
1374
1612
|
canCreateExpertsFromSuggestions: z.ZodOptional<z.ZodLiteral<true>>;
|
|
1613
|
+
expertInstances: z.ZodOptional<z.ZodLiteral<true>>;
|
|
1614
|
+
sharesWhatExpertInstancesLearn: z.ZodOptional<z.ZodLiteral<true>>;
|
|
1375
1615
|
}, z.core.$strip>, z.ZodObject<{
|
|
1376
1616
|
type: z.ZodLiteral<"full">;
|
|
1377
1617
|
v: z.ZodLiteral<1>;
|
|
@@ -1847,14 +2087,6 @@ export declare const DataLayerMessageSchema: z.ZodDiscriminatedUnion<[z.ZodObjec
|
|
|
1847
2087
|
v: z.ZodLiteral<1>;
|
|
1848
2088
|
id: z.ZodString;
|
|
1849
2089
|
kind: z.ZodLiteral<"focus">;
|
|
1850
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
1851
|
-
type: z.ZodLiteral<"reply">;
|
|
1852
|
-
v: z.ZodLiteral<1>;
|
|
1853
|
-
id: z.ZodString;
|
|
1854
|
-
kind: z.ZodLiteral<"answer-expert">;
|
|
1855
|
-
answer: z.ZodString;
|
|
1856
|
-
commit: z.ZodString;
|
|
1857
|
-
branch: z.ZodString;
|
|
1858
2090
|
}, z.core.$strip>], "kind">, z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
1859
2091
|
type: z.ZodLiteral<"refusal">;
|
|
1860
2092
|
v: z.ZodLiteral<1>;
|
|
@@ -1887,20 +2119,6 @@ export declare const DataLayerMessageSchema: z.ZodDiscriminatedUnion<[z.ZodObjec
|
|
|
1887
2119
|
"no-submit": "no-submit";
|
|
1888
2120
|
"not-owner": "not-owner";
|
|
1889
2121
|
}>>;
|
|
1890
|
-
expert: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
1891
|
-
code: z.ZodLiteral<"EXPERT_CAP">;
|
|
1892
|
-
cap: z.ZodEnum<{
|
|
1893
|
-
"asker-day": "asker-day";
|
|
1894
|
-
"asker-open": "asker-open";
|
|
1895
|
-
"expert-tokens": "expert-tokens";
|
|
1896
|
-
}>;
|
|
1897
|
-
limit: z.ZodNumber;
|
|
1898
|
-
frees: z.ZodOptional<z.ZodISODateTime>;
|
|
1899
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
1900
|
-
code: z.ZodLiteral<"EXPERT_FORK_FAILED">;
|
|
1901
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
1902
|
-
code: z.ZodLiteral<"EXPERT_UNKNOWN">;
|
|
1903
|
-
}, z.core.$strip>], "code">>;
|
|
1904
2122
|
}, z.core.$strip>], "reason">, z.ZodObject<{
|
|
1905
2123
|
type: z.ZodLiteral<"hand-over">;
|
|
1906
2124
|
v: z.ZodLiteral<1>;
|
|
@@ -2167,34 +2385,12 @@ export declare const DataLayerMessageSchema: z.ZodDiscriminatedUnion<[z.ZodObjec
|
|
|
2167
2385
|
branches: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
2168
2386
|
}, z.core.$strip>>;
|
|
2169
2387
|
}, z.core.$strip>], "kind">, z.ZodObject<{
|
|
2170
|
-
type: z.ZodLiteral<"experts">;
|
|
2171
|
-
v: z.ZodLiteral<1>;
|
|
2172
|
-
experts: z.ZodArray<z.ZodObject<{
|
|
2173
|
-
name: z.ZodString;
|
|
2174
|
-
project: z.ZodObject<{
|
|
2175
|
-
id: z.ZodString;
|
|
2176
|
-
name: z.ZodString;
|
|
2177
|
-
}, z.core.$strip>;
|
|
2178
|
-
subject: z.ZodString;
|
|
2179
|
-
state: z.ZodEnum<{
|
|
2180
|
-
failed: "failed";
|
|
2181
|
-
ready: "ready";
|
|
2182
|
-
starting: "starting";
|
|
2183
|
-
}>;
|
|
2184
|
-
senior: z.ZodOptional<z.ZodBoolean>;
|
|
2185
|
-
areas: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
2186
|
-
}, z.core.$strip>>;
|
|
2187
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
2188
2388
|
type: z.ZodLiteral<"ask-expert">;
|
|
2189
2389
|
v: z.ZodLiteral<1>;
|
|
2190
2390
|
expert: z.ZodString;
|
|
2191
2391
|
question: z.ZodString;
|
|
2192
2392
|
blocking: z.ZodBoolean;
|
|
2193
2393
|
key: z.ZodString;
|
|
2194
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
2195
|
-
type: z.ZodLiteral<"expert-senior">;
|
|
2196
|
-
v: z.ZodLiteral<1>;
|
|
2197
|
-
id: z.ZodString;
|
|
2198
2394
|
}, z.core.$strip>, z.ZodObject<{
|
|
2199
2395
|
type: z.ZodLiteral<"expert-creation-suggestion">;
|
|
2200
2396
|
v: z.ZodLiteral<1>;
|
|
@@ -2222,6 +2418,13 @@ export declare const DataLayerMessageSchema: z.ZodDiscriminatedUnion<[z.ZodObjec
|
|
|
2222
2418
|
minutes: z.ZodNumber;
|
|
2223
2419
|
corrections: z.ZodNumber;
|
|
2224
2420
|
}, z.core.$strip>;
|
|
2421
|
+
repetition: z.ZodOptional<z.ZodUnion<readonly [z.ZodObject<{
|
|
2422
|
+
readings: z.ZodNumber;
|
|
2423
|
+
sessions: z.ZodNumber;
|
|
2424
|
+
files: z.ZodNumber;
|
|
2425
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
2426
|
+
searches: z.ZodNumber;
|
|
2427
|
+
}, z.core.$strip>]>>;
|
|
2225
2428
|
at: z.ZodISODateTime;
|
|
2226
2429
|
}, z.core.$strip>, z.ZodObject<{
|
|
2227
2430
|
type: z.ZodLiteral<"expert-creation-suggestion-ended">;
|
|
@@ -2244,6 +2447,121 @@ export declare const DataLayerMessageSchema: z.ZodDiscriminatedUnion<[z.ZodObjec
|
|
|
2244
2447
|
ready: "ready";
|
|
2245
2448
|
}>;
|
|
2246
2449
|
detail: z.ZodOptional<z.ZodString>;
|
|
2450
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
2451
|
+
type: z.ZodLiteral<"expert-definition">;
|
|
2452
|
+
v: z.ZodLiteral<1>;
|
|
2453
|
+
definition: z.ZodObject<{
|
|
2454
|
+
key: z.ZodString;
|
|
2455
|
+
project: z.ZodObject<{
|
|
2456
|
+
id: z.ZodString;
|
|
2457
|
+
name: z.ZodString;
|
|
2458
|
+
}, z.core.$strip>;
|
|
2459
|
+
subject: z.ZodString;
|
|
2460
|
+
model: z.ZodString;
|
|
2461
|
+
promoteAtTokens: z.ZodNumber;
|
|
2462
|
+
areas: z.ZodArray<z.ZodString>;
|
|
2463
|
+
proof: z.ZodObject<{
|
|
2464
|
+
question: z.ZodString;
|
|
2465
|
+
answer: z.ZodString;
|
|
2466
|
+
}, z.core.$strip>;
|
|
2467
|
+
learnedElsewhereTokensPerQuestion: z.ZodOptional<z.ZodNumber>;
|
|
2468
|
+
}, z.core.$strip>;
|
|
2469
|
+
basedOn: z.ZodOptional<z.ZodObject<{
|
|
2470
|
+
expertRecordId: z.ZodUUID;
|
|
2471
|
+
revision: z.ZodNumber;
|
|
2472
|
+
}, z.core.$strip>>;
|
|
2473
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
2474
|
+
type: z.ZodLiteral<"expert-record-wanted">;
|
|
2475
|
+
v: z.ZodLiteral<1>;
|
|
2476
|
+
key: z.ZodString;
|
|
2477
|
+
expertRecordId: z.ZodUUID;
|
|
2478
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
2479
|
+
type: z.ZodLiteral<"expert-instance-states">;
|
|
2480
|
+
v: z.ZodLiteral<1>;
|
|
2481
|
+
instances: z.ZodArray<z.ZodObject<{
|
|
2482
|
+
key: z.ZodString;
|
|
2483
|
+
expertRecordId: z.ZodUUID;
|
|
2484
|
+
state: z.ZodEnum<{
|
|
2485
|
+
failed: "failed";
|
|
2486
|
+
ready: "ready";
|
|
2487
|
+
"setting-up": "setting-up";
|
|
2488
|
+
}>;
|
|
2489
|
+
step: z.ZodOptional<z.ZodEnum<{
|
|
2490
|
+
cloning: "cloning";
|
|
2491
|
+
grounding: "grounding";
|
|
2492
|
+
proof: "proof";
|
|
2493
|
+
}>>;
|
|
2494
|
+
senior: z.ZodOptional<z.ZodLiteral<true>>;
|
|
2495
|
+
groundingTokens: z.ZodOptional<z.ZodNumber>;
|
|
2496
|
+
failure: z.ZodOptional<z.ZodObject<{
|
|
2497
|
+
why: z.ZodEnum<{
|
|
2498
|
+
clone: "clone";
|
|
2499
|
+
"key-used-here": "key-used-here";
|
|
2500
|
+
other: "other";
|
|
2501
|
+
proof: "proof";
|
|
2502
|
+
}>;
|
|
2503
|
+
detail: z.ZodOptional<z.ZodString>;
|
|
2504
|
+
}, z.core.$strip>>;
|
|
2505
|
+
}, z.core.$strip>>;
|
|
2506
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
2507
|
+
type: z.ZodLiteral<"expert-question">;
|
|
2508
|
+
v: z.ZodLiteral<1>;
|
|
2509
|
+
id: z.ZodString;
|
|
2510
|
+
key: z.ZodString;
|
|
2511
|
+
expertRecordId: z.ZodUUID;
|
|
2512
|
+
session: z.ZodString;
|
|
2513
|
+
blocking: z.ZodBoolean;
|
|
2514
|
+
state: z.ZodEnum<{
|
|
2515
|
+
answered: "answered";
|
|
2516
|
+
asking: "asking";
|
|
2517
|
+
dropped: "dropped";
|
|
2518
|
+
}>;
|
|
2519
|
+
code: z.ZodOptional<z.ZodEnum<{
|
|
2520
|
+
EXPERT_CAP: "EXPERT_CAP";
|
|
2521
|
+
EXPERT_DROPPED: "EXPERT_DROPPED";
|
|
2522
|
+
EXPERT_FORK_FAILED: "EXPERT_FORK_FAILED";
|
|
2523
|
+
EXPERT_NOT_SET_UP: "EXPERT_NOT_SET_UP";
|
|
2524
|
+
EXPERT_PLUGIN_OLD: "EXPERT_PLUGIN_OLD";
|
|
2525
|
+
EXPERT_QUEUED: "EXPERT_QUEUED";
|
|
2526
|
+
EXPERT_RUNNER_UNREACHABLE: "EXPERT_RUNNER_UNREACHABLE";
|
|
2527
|
+
EXPERT_STARTING: "EXPERT_STARTING";
|
|
2528
|
+
EXPERT_UNKNOWN: "EXPERT_UNKNOWN";
|
|
2529
|
+
}>>;
|
|
2530
|
+
senior: z.ZodOptional<z.ZodLiteral<true>>;
|
|
2531
|
+
askedAt: z.ZodISODateTime;
|
|
2532
|
+
endedAt: z.ZodOptional<z.ZodISODateTime>;
|
|
2533
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
2534
|
+
type: z.ZodLiteral<"expert-set-up-offered">;
|
|
2535
|
+
v: z.ZodLiteral<1>;
|
|
2536
|
+
key: z.ZodString;
|
|
2537
|
+
expertRecordId: z.ZodUUID;
|
|
2538
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
2539
|
+
type: z.ZodLiteral<"expert-proof-failed">;
|
|
2540
|
+
v: z.ZodLiteral<1>;
|
|
2541
|
+
key: z.ZodString;
|
|
2542
|
+
expertRecordId: z.ZodUUID;
|
|
2543
|
+
revision: z.ZodNumber;
|
|
2544
|
+
answer: z.ZodOptional<z.ZodString>;
|
|
2545
|
+
answerHeld: z.ZodOptional<z.ZodLiteral<true>>;
|
|
2546
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
2547
|
+
id: z.ZodUUID;
|
|
2548
|
+
text: z.ZodString;
|
|
2549
|
+
files: z.ZodArray<z.ZodObject<{
|
|
2550
|
+
path: z.ZodString;
|
|
2551
|
+
commit: z.ZodOptional<z.ZodString>;
|
|
2552
|
+
}, z.core.$strip>>;
|
|
2553
|
+
learnedAt: z.ZodISODateTime;
|
|
2554
|
+
type: z.ZodLiteral<"expert-instance-learned">;
|
|
2555
|
+
v: z.ZodLiteral<1>;
|
|
2556
|
+
key: z.ZodString;
|
|
2557
|
+
expertRecordId: z.ZodUUID;
|
|
2558
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
2559
|
+
type: z.ZodLiteral<"expert-learned-wanted-after">;
|
|
2560
|
+
v: z.ZodLiteral<1>;
|
|
2561
|
+
key: z.ZodString;
|
|
2562
|
+
expertRecordId: z.ZodUUID;
|
|
2563
|
+
afterArrivalNumber: z.ZodNumber;
|
|
2564
|
+
chain: z.ZodUnion<readonly [z.ZodLiteral<"">, z.ZodString]>;
|
|
2247
2565
|
}, z.core.$strip>], "type">;
|
|
2248
2566
|
/** Asks the data layer to send its facts in full. */
|
|
2249
2567
|
export declare const RepairMessageSchema: z.ZodObject<{
|
|
@@ -2339,20 +2657,6 @@ export declare const RequestMessageSchema: z.ZodDiscriminatedUnion<[z.ZodObject<
|
|
|
2339
2657
|
id: z.ZodString;
|
|
2340
2658
|
kind: z.ZodLiteral<"focus">;
|
|
2341
2659
|
handoff: z.ZodString;
|
|
2342
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
2343
|
-
type: z.ZodLiteral<"request">;
|
|
2344
|
-
v: z.ZodLiteral<1>;
|
|
2345
|
-
id: z.ZodString;
|
|
2346
|
-
kind: z.ZodLiteral<"answer-expert">;
|
|
2347
|
-
expert: z.ZodString;
|
|
2348
|
-
questionId: z.ZodString;
|
|
2349
|
-
question: z.ZodString;
|
|
2350
|
-
blocking: z.ZodBoolean;
|
|
2351
|
-
from: z.ZodObject<{
|
|
2352
|
-
id: z.ZodString;
|
|
2353
|
-
name: z.ZodString;
|
|
2354
|
-
}, z.core.$strip>;
|
|
2355
|
-
asker: z.ZodString;
|
|
2356
2660
|
}, z.core.$strip>], "kind">;
|
|
2357
2661
|
/**
|
|
2358
2662
|
* The request is over (its handoff was cancelled, dismissed or replaced): the machine drops what it
|
|
@@ -2444,7 +2748,8 @@ export declare const HandedOverMessageSchema: z.ZodObject<{
|
|
|
2444
2748
|
* An answered or dropped question is sent again down the session's own link until it is acked.
|
|
2445
2749
|
* A question asked of an expert (protocol 0.13.0) has `expert`, and `owner` is the host's name; its
|
|
2446
2750
|
* `code` says where it stands for ask_expert, and an answered one has the `commit` and `branch` its
|
|
2447
|
-
* answer describes.
|
|
2751
|
+
* answer describes. From 0.17.0 no office sends one for an expert's question, which the asker's own
|
|
2752
|
+
* runner answers, though an office from before 0.17.0 may still send a late end.
|
|
2448
2753
|
*/
|
|
2449
2754
|
export declare const AskedMessageSchema: z.ZodObject<{
|
|
2450
2755
|
type: z.ZodLiteral<"asked">;
|
|
@@ -2467,8 +2772,8 @@ export declare const AskedMessageSchema: z.ZodObject<{
|
|
|
2467
2772
|
EXPERT_CAP: "EXPERT_CAP";
|
|
2468
2773
|
EXPERT_DROPPED: "EXPERT_DROPPED";
|
|
2469
2774
|
EXPERT_FORK_FAILED: "EXPERT_FORK_FAILED";
|
|
2775
|
+
EXPERT_NOT_SET_UP: "EXPERT_NOT_SET_UP";
|
|
2470
2776
|
EXPERT_PLUGIN_OLD: "EXPERT_PLUGIN_OLD";
|
|
2471
|
-
EXPERT_QUESTION_HELD: "EXPERT_QUESTION_HELD";
|
|
2472
2777
|
EXPERT_QUEUED: "EXPERT_QUEUED";
|
|
2473
2778
|
EXPERT_RUNNER_UNREACHABLE: "EXPERT_RUNNER_UNREACHABLE";
|
|
2474
2779
|
EXPERT_STARTING: "EXPERT_STARTING";
|
|
@@ -2507,21 +2812,6 @@ export declare const ExpertRightsMessageSchema: z.ZodObject<{
|
|
|
2507
2812
|
host: z.ZodString;
|
|
2508
2813
|
}, z.core.$strip>>;
|
|
2509
2814
|
}, z.core.$strip>;
|
|
2510
|
-
/**
|
|
2511
|
-
* Which of this runner's experts the server shows in at least one office (protocol 0.13.0), sent only
|
|
2512
|
-
* to a runner that said `experts`: once its hello is let in (as the server last kept them, or none),
|
|
2513
|
-
* after each `experts` message, and whenever the offices change. The runner sends no `experts` on a
|
|
2514
|
-
* connection before that connection's first `hosting`, so a server from before experts, which sends
|
|
2515
|
-
* none, is never sent one.
|
|
2516
|
-
* `expertSenior` (protocol 0.14.0): this server reads `expert-senior`, so the runner may send it. A
|
|
2517
|
-
* server that reads it says it on every `hosting`; the runner goes by the connection's last one.
|
|
2518
|
-
*/
|
|
2519
|
-
export declare const HostingMessageSchema: z.ZodObject<{
|
|
2520
|
-
type: z.ZodLiteral<"hosting">;
|
|
2521
|
-
v: z.ZodLiteral<1>;
|
|
2522
|
-
listed: z.ZodArray<z.ZodString>;
|
|
2523
|
-
expertSenior: z.ZodOptional<z.ZodLiteral<true>>;
|
|
2524
|
-
}, z.core.$strip>;
|
|
2525
2815
|
/**
|
|
2526
2816
|
* A person acting on a driven session from the floor (protocol 0.5.0), sent only to a runner that said
|
|
2527
2817
|
* `drive`, and only to the owner's own runner. `by` is the person acting, whom the runner checks is its
|
|
@@ -2772,6 +3062,289 @@ export declare const ServerExpertCreationSuggestionEndedMessageSchema: z.ZodDisc
|
|
|
2772
3062
|
refused: "refused";
|
|
2773
3063
|
}>;
|
|
2774
3064
|
}, z.core.$strip>], "why">;
|
|
3065
|
+
/**
|
|
3066
|
+
* Every expert record whose project an office on this server holds (protocol 0.17.0), the whole list
|
|
3067
|
+
* each time, each marked `yours` for this runner's person, and the caps of asks.json that the
|
|
3068
|
+
* asker's runner checks over its person's questions on all their computers (`asking`): open
|
|
3069
|
+
* questions per person per expert, questions per person in the last day, and the hours after which
|
|
3070
|
+
* a question still unanswered ends. Sent to a runner that said `expertInstances` once its hello is
|
|
3071
|
+
* let in, even an empty one, and whenever it changes; the first on a connection opens the family on
|
|
3072
|
+
* it (see "Expert records and instances"). Each key once. `sharesWhatExpertInstancesLearn` (protocol
|
|
3073
|
+
* 0.18.0): this server takes and sends the messages of "What instances learn", said only to a runner
|
|
3074
|
+
* whose hello said it; the first directory on a connection decides it for that connection.
|
|
3075
|
+
*/
|
|
3076
|
+
export declare const ExpertDirectoryMessageSchema: z.ZodObject<{
|
|
3077
|
+
type: z.ZodLiteral<"expert-directory">;
|
|
3078
|
+
v: z.ZodLiteral<1>;
|
|
3079
|
+
experts: z.ZodArray<z.ZodObject<{
|
|
3080
|
+
key: z.ZodString;
|
|
3081
|
+
expertRecordId: z.ZodUUID;
|
|
3082
|
+
project: z.ZodObject<{
|
|
3083
|
+
id: z.ZodString;
|
|
3084
|
+
name: z.ZodString;
|
|
3085
|
+
}, z.core.$strip>;
|
|
3086
|
+
owner: z.ZodObject<{
|
|
3087
|
+
id: z.ZodString;
|
|
3088
|
+
name: z.ZodString;
|
|
3089
|
+
}, z.core.$strip>;
|
|
3090
|
+
yours: z.ZodOptional<z.ZodLiteral<true>>;
|
|
3091
|
+
revision: z.ZodNumber;
|
|
3092
|
+
groundingTokens: z.ZodOptional<z.ZodNumber>;
|
|
3093
|
+
}, z.core.$strip>>;
|
|
3094
|
+
asking: z.ZodObject<{
|
|
3095
|
+
openPerPersonPerExpert: z.ZodNumber;
|
|
3096
|
+
perPersonPerDay: z.ZodNumber;
|
|
3097
|
+
maxAgeHours: z.ZodNumber;
|
|
3098
|
+
}, z.core.$strip>;
|
|
3099
|
+
sharesWhatExpertInstancesLearn: z.ZodOptional<z.ZodLiteral<true>>;
|
|
3100
|
+
}, z.core.$strip>;
|
|
3101
|
+
/**
|
|
3102
|
+
* The expert record `expertRecordId` at `revision`, with its definition (protocol 0.17.0): in answer
|
|
3103
|
+
* to `expert-record-wanted`, and sent unasked when the revision changes to every linked runner whose
|
|
3104
|
+
* `expert-instance-states` has that record at `grounding` or `proof`, `ready`, or failed for a reason
|
|
3105
|
+
* other than `clone` or `key-used-here`; a runner still cloning asks once it has the project.
|
|
3106
|
+
* `owner` is the expert's owner, and `yours` marks it as this runner's person's own.
|
|
3107
|
+
*/
|
|
3108
|
+
export declare const ExpertRecordMessageSchema: z.ZodObject<{
|
|
3109
|
+
type: z.ZodLiteral<"expert-record">;
|
|
3110
|
+
v: z.ZodLiteral<1>;
|
|
3111
|
+
expertRecordId: z.ZodUUID;
|
|
3112
|
+
revision: z.ZodNumber;
|
|
3113
|
+
owner: z.ZodObject<{
|
|
3114
|
+
id: z.ZodString;
|
|
3115
|
+
name: z.ZodString;
|
|
3116
|
+
}, z.core.$strip>;
|
|
3117
|
+
yours: z.ZodOptional<z.ZodLiteral<true>>;
|
|
3118
|
+
definition: z.ZodObject<{
|
|
3119
|
+
key: z.ZodString;
|
|
3120
|
+
project: z.ZodObject<{
|
|
3121
|
+
id: z.ZodString;
|
|
3122
|
+
name: z.ZodString;
|
|
3123
|
+
}, z.core.$strip>;
|
|
3124
|
+
subject: z.ZodString;
|
|
3125
|
+
model: z.ZodString;
|
|
3126
|
+
promoteAtTokens: z.ZodNumber;
|
|
3127
|
+
areas: z.ZodArray<z.ZodString>;
|
|
3128
|
+
proof: z.ZodObject<{
|
|
3129
|
+
question: z.ZodString;
|
|
3130
|
+
answer: z.ZodString;
|
|
3131
|
+
}, z.core.$strip>;
|
|
3132
|
+
learnedElsewhereTokensPerQuestion: z.ZodOptional<z.ZodNumber>;
|
|
3133
|
+
}, z.core.$strip>;
|
|
3134
|
+
}, z.core.$strip>;
|
|
3135
|
+
/**
|
|
3136
|
+
* The answer to `expert-definition` for the expert `key` (protocol 0.17.0): `published`, as the record
|
|
3137
|
+
* `expertRecordId` at `revision` (a definition unchanged keeps its revision); or `refused`, for its
|
|
3138
|
+
* `reason`: `edited-elsewhere`, the record changed since the revision `basedOn` named, so the runner
|
|
3139
|
+
* writes the record's `definition`, at `revision`, into the expert file; `key-taken`, another
|
|
3140
|
+
* person's expert has the key; `not-owner`, the record `basedOn` named is now another person's, its
|
|
3141
|
+
* owner changed; `project-not-in-an-office`, no office on this server holds its project; `deleted`,
|
|
3142
|
+
* the record `basedOn` named was deleted on the floor.
|
|
3143
|
+
*/
|
|
3144
|
+
export declare const ExpertDefinitionResultMessageSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
3145
|
+
type: z.ZodLiteral<"expert-definition-result">;
|
|
3146
|
+
v: z.ZodLiteral<1>;
|
|
3147
|
+
key: z.ZodString;
|
|
3148
|
+
outcome: z.ZodLiteral<"published">;
|
|
3149
|
+
expertRecordId: z.ZodUUID;
|
|
3150
|
+
revision: z.ZodNumber;
|
|
3151
|
+
}, z.core.$strip>, z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
3152
|
+
type: z.ZodLiteral<"expert-definition-result">;
|
|
3153
|
+
v: z.ZodLiteral<1>;
|
|
3154
|
+
key: z.ZodString;
|
|
3155
|
+
outcome: z.ZodLiteral<"refused">;
|
|
3156
|
+
reason: z.ZodLiteral<"edited-elsewhere">;
|
|
3157
|
+
expertRecordId: z.ZodUUID;
|
|
3158
|
+
revision: z.ZodNumber;
|
|
3159
|
+
definition: z.ZodObject<{
|
|
3160
|
+
key: z.ZodString;
|
|
3161
|
+
project: z.ZodObject<{
|
|
3162
|
+
id: z.ZodString;
|
|
3163
|
+
name: z.ZodString;
|
|
3164
|
+
}, z.core.$strip>;
|
|
3165
|
+
subject: z.ZodString;
|
|
3166
|
+
model: z.ZodString;
|
|
3167
|
+
promoteAtTokens: z.ZodNumber;
|
|
3168
|
+
areas: z.ZodArray<z.ZodString>;
|
|
3169
|
+
proof: z.ZodObject<{
|
|
3170
|
+
question: z.ZodString;
|
|
3171
|
+
answer: z.ZodString;
|
|
3172
|
+
}, z.core.$strip>;
|
|
3173
|
+
learnedElsewhereTokensPerQuestion: z.ZodOptional<z.ZodNumber>;
|
|
3174
|
+
}, z.core.$strip>;
|
|
3175
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
3176
|
+
type: z.ZodLiteral<"expert-definition-result">;
|
|
3177
|
+
v: z.ZodLiteral<1>;
|
|
3178
|
+
key: z.ZodString;
|
|
3179
|
+
outcome: z.ZodLiteral<"refused">;
|
|
3180
|
+
reason: z.ZodEnum<{
|
|
3181
|
+
deleted: "deleted";
|
|
3182
|
+
"key-taken": "key-taken";
|
|
3183
|
+
"not-owner": "not-owner";
|
|
3184
|
+
"project-not-in-an-office": "project-not-in-an-office";
|
|
3185
|
+
}>;
|
|
3186
|
+
}, z.core.$strip>], "reason">], "outcome">;
|
|
3187
|
+
/**
|
|
3188
|
+
* The expert record `expertRecordId` of the expert `key` was deleted on the floor, by `by` (protocol
|
|
3189
|
+
* 0.17.0): sent to every linked runner then, and to each runner that links within the 30 days after.
|
|
3190
|
+
* A runner acts on it only where its files are tied to that record, never another record of the key.
|
|
3191
|
+
*/
|
|
3192
|
+
export declare const ExpertDeletedMessageSchema: z.ZodObject<{
|
|
3193
|
+
type: z.ZodLiteral<"expert-deleted">;
|
|
3194
|
+
v: z.ZodLiteral<1>;
|
|
3195
|
+
key: z.ZodString;
|
|
3196
|
+
expertRecordId: z.ZodUUID;
|
|
3197
|
+
by: z.ZodObject<{
|
|
3198
|
+
id: z.ZodString;
|
|
3199
|
+
name: z.ZodString;
|
|
3200
|
+
}, z.core.$strip>;
|
|
3201
|
+
}, z.core.$strip>;
|
|
3202
|
+
/**
|
|
3203
|
+
* Set up this computer's instance of the expert `key` from the record `expertRecordId` (protocol
|
|
3204
|
+
* 0.17.0): its person's one click on the floor, or Try again after a failure (`again`, which grounds
|
|
3205
|
+
* it again now). Sent to that person's own runner on the computer they chose; `by` is the account
|
|
3206
|
+
* that runner said hello as, which the runner checks is its own, starting nothing otherwise. Nothing
|
|
3207
|
+
* is queued: the server refuses at once when that runner isn't linked. How the set-up goes, the
|
|
3208
|
+
* runner says in `expert-instance-states`.
|
|
3209
|
+
*/
|
|
3210
|
+
export declare const SetUpExpertInstanceMessageSchema: z.ZodObject<{
|
|
3211
|
+
type: z.ZodLiteral<"set-up-expert-instance">;
|
|
3212
|
+
v: z.ZodLiteral<1>;
|
|
3213
|
+
request: z.ZodString;
|
|
3214
|
+
key: z.ZodString;
|
|
3215
|
+
expertRecordId: z.ZodUUID;
|
|
3216
|
+
by: z.ZodObject<{
|
|
3217
|
+
id: z.ZodString;
|
|
3218
|
+
name: z.ZodString;
|
|
3219
|
+
}, z.core.$strip>;
|
|
3220
|
+
again: z.ZodOptional<z.ZodLiteral<true>>;
|
|
3221
|
+
}, z.core.$strip>;
|
|
3222
|
+
/**
|
|
3223
|
+
* The offer to set up the expert `key` on this computer, from the record `expertRecordId`, ended
|
|
3224
|
+
* (protocol 0.17.0): `dismissed` on the floor; `expired`; `set-up`, an instance of it is listed; or
|
|
3225
|
+
* `gone`, the record was deleted or its project left every office. Sent to that person's runner on
|
|
3226
|
+
* that computer when it ends, and on each link for every offer of that computer that ended in the 30
|
|
3227
|
+
* days after it was offered.
|
|
3228
|
+
*/
|
|
3229
|
+
export declare const ExpertSetUpOfferEndedMessageSchema: z.ZodObject<{
|
|
3230
|
+
type: z.ZodLiteral<"expert-set-up-offer-ended">;
|
|
3231
|
+
v: z.ZodLiteral<1>;
|
|
3232
|
+
key: z.ZodString;
|
|
3233
|
+
expertRecordId: z.ZodUUID;
|
|
3234
|
+
why: z.ZodEnum<{
|
|
3235
|
+
dismissed: "dismissed";
|
|
3236
|
+
expired: "expired";
|
|
3237
|
+
gone: "gone";
|
|
3238
|
+
"set-up": "set-up";
|
|
3239
|
+
}>;
|
|
3240
|
+
}, z.core.$strip>;
|
|
3241
|
+
/**
|
|
3242
|
+
* This runner's person's questions to experts on their other computers (protocol 0.17.0), from the
|
|
3243
|
+
* records those computers' runners sent (`expert-question`): `open`, how many are open per expert,
|
|
3244
|
+
* and `askedAtInTheLastDay`, when each of the last day's was asked. The runner adds its own and
|
|
3245
|
+
* checks the directory's `asking` caps against the total. Sent after the directory on each link, and
|
|
3246
|
+
* whenever those records change.
|
|
3247
|
+
*/
|
|
3248
|
+
export declare const ExpertQuestionsAskedOnYourOtherComputersMessageSchema: z.ZodObject<{
|
|
3249
|
+
type: z.ZodLiteral<"expert-questions-asked-on-your-other-computers">;
|
|
3250
|
+
v: z.ZodLiteral<1>;
|
|
3251
|
+
open: z.ZodArray<z.ZodObject<{
|
|
3252
|
+
key: z.ZodString;
|
|
3253
|
+
count: z.ZodNumber;
|
|
3254
|
+
}, z.core.$strip>>;
|
|
3255
|
+
askedAtInTheLastDay: z.ZodArray<z.ZodISODateTime>;
|
|
3256
|
+
}, z.core.$strip>;
|
|
3257
|
+
/**
|
|
3258
|
+
* The answer to `expert-instance-learned`, by its `id` (protocol 0.18.0): `kept`, at `arrivalNumber`
|
|
3259
|
+
* in the record; `removed`, it was kept and removed on the card since; or `refused`, for its `reason`
|
|
3260
|
+
* (`not-an-instance-here`: the runner sends it again after its next listing, and on its timer). A
|
|
3261
|
+
* repeat of the same id gets the same answer. Only `kept` carries an arrival number.
|
|
3262
|
+
*/
|
|
3263
|
+
export declare const ExpertInstanceLearnedReceivedMessageSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
3264
|
+
type: z.ZodLiteral<"expert-instance-learned-received">;
|
|
3265
|
+
v: z.ZodLiteral<1>;
|
|
3266
|
+
key: z.ZodString;
|
|
3267
|
+
expertRecordId: z.ZodUUID;
|
|
3268
|
+
id: z.ZodUUID;
|
|
3269
|
+
outcome: z.ZodLiteral<"kept">;
|
|
3270
|
+
arrivalNumber: z.ZodNumber;
|
|
3271
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
3272
|
+
type: z.ZodLiteral<"expert-instance-learned-received">;
|
|
3273
|
+
v: z.ZodLiteral<1>;
|
|
3274
|
+
key: z.ZodString;
|
|
3275
|
+
expertRecordId: z.ZodUUID;
|
|
3276
|
+
id: z.ZodUUID;
|
|
3277
|
+
outcome: z.ZodLiteral<"removed">;
|
|
3278
|
+
arrivalNumber: z.ZodOptional<z.ZodNever>;
|
|
3279
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
3280
|
+
type: z.ZodLiteral<"expert-instance-learned-received">;
|
|
3281
|
+
v: z.ZodLiteral<1>;
|
|
3282
|
+
key: z.ZodString;
|
|
3283
|
+
expertRecordId: z.ZodUUID;
|
|
3284
|
+
id: z.ZodUUID;
|
|
3285
|
+
outcome: z.ZodLiteral<"refused">;
|
|
3286
|
+
reason: z.ZodEnum<{
|
|
3287
|
+
"not-an-instance-here": "not-an-instance-here";
|
|
3288
|
+
"record-gone": "record-gone";
|
|
3289
|
+
}>;
|
|
3290
|
+
arrivalNumber: z.ZodOptional<z.ZodNever>;
|
|
3291
|
+
}, z.core.$strip>], "outcome">;
|
|
3292
|
+
/**
|
|
3293
|
+
* Entries of the record `expertRecordId` after `afterArrivalNumber`, in arrival order (protocol
|
|
3294
|
+
* 0.18.0): in answer to `expert-learned-wanted-after`, in as many messages as it takes, each at most
|
|
3295
|
+
* MAX_WHAT_WAS_LEARNED_ENTRIES_PER_MESSAGE entries, each continuing from the one before, `more` on
|
|
3296
|
+
* all but the last; then pushed on that connection as entries arrive, each continuing from the last
|
|
3297
|
+
* sent. `chain` is the chain at its last entry, or at `afterArrivalNumber` when it carries none.
|
|
3298
|
+
* `lastArrivalNumber` is the server's last for the record, at or above every entry's. `startedAgain`,
|
|
3299
|
+
* on the first message of an answer only, which then starts from 0: the number asked after is beyond
|
|
3300
|
+
* the server's last, or the chain asked with isn't the server's at that number (a restored server).
|
|
3301
|
+
*/
|
|
3302
|
+
export declare const ExpertLearnedSinceMessageSchema: z.ZodObject<{
|
|
3303
|
+
type: z.ZodLiteral<"expert-learned-since">;
|
|
3304
|
+
v: z.ZodLiteral<1>;
|
|
3305
|
+
key: z.ZodString;
|
|
3306
|
+
expertRecordId: z.ZodUUID;
|
|
3307
|
+
afterArrivalNumber: z.ZodNumber;
|
|
3308
|
+
entries: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
3309
|
+
id: z.ZodUUID;
|
|
3310
|
+
text: z.ZodString;
|
|
3311
|
+
files: z.ZodArray<z.ZodObject<{
|
|
3312
|
+
path: z.ZodString;
|
|
3313
|
+
commit: z.ZodOptional<z.ZodString>;
|
|
3314
|
+
}, z.core.$strip>>;
|
|
3315
|
+
learnedAt: z.ZodISODateTime;
|
|
3316
|
+
kind: z.ZodLiteral<"learned">;
|
|
3317
|
+
arrivalNumber: z.ZodNumber;
|
|
3318
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
3319
|
+
kind: z.ZodLiteral<"learned-then-removed">;
|
|
3320
|
+
arrivalNumber: z.ZodNumber;
|
|
3321
|
+
id: z.ZodUUID;
|
|
3322
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
3323
|
+
kind: z.ZodLiteral<"removed">;
|
|
3324
|
+
arrivalNumber: z.ZodNumber;
|
|
3325
|
+
id: z.ZodUUID;
|
|
3326
|
+
at: z.ZodISODateTime;
|
|
3327
|
+
}, z.core.$strip>], "kind">>;
|
|
3328
|
+
chain: z.ZodUnion<readonly [z.ZodLiteral<"">, z.ZodString]>;
|
|
3329
|
+
lastArrivalNumber: z.ZodNumber;
|
|
3330
|
+
startedAgain: z.ZodOptional<z.ZodLiteral<true>>;
|
|
3331
|
+
more: z.ZodOptional<z.ZodLiteral<true>>;
|
|
3332
|
+
}, z.core.$strip>;
|
|
3333
|
+
/**
|
|
3334
|
+
* The answer to an `expert-learned-wanted-after` the server can't take (protocol 0.18.0), so the
|
|
3335
|
+
* runner is never left waiting: `record-gone`, and the runner deletes what it has of that record;
|
|
3336
|
+
* `not-an-instance-here`, and it asks again after its next listing, and on its timer.
|
|
3337
|
+
*/
|
|
3338
|
+
export declare const ExpertLearnedWantedAfterRefusedMessageSchema: z.ZodObject<{
|
|
3339
|
+
type: z.ZodLiteral<"expert-learned-wanted-after-refused">;
|
|
3340
|
+
v: z.ZodLiteral<1>;
|
|
3341
|
+
key: z.ZodString;
|
|
3342
|
+
expertRecordId: z.ZodUUID;
|
|
3343
|
+
reason: z.ZodEnum<{
|
|
3344
|
+
"not-an-instance-here": "not-an-instance-here";
|
|
3345
|
+
"record-gone": "record-gone";
|
|
3346
|
+
}>;
|
|
3347
|
+
}, z.core.$strip>;
|
|
2775
3348
|
export declare const OfficeServerMessageSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
2776
3349
|
type: z.ZodLiteral<"repair">;
|
|
2777
3350
|
v: z.ZodLiteral<1>;
|
|
@@ -2846,20 +3419,6 @@ export declare const OfficeServerMessageSchema: z.ZodDiscriminatedUnion<[z.ZodOb
|
|
|
2846
3419
|
id: z.ZodString;
|
|
2847
3420
|
kind: z.ZodLiteral<"focus">;
|
|
2848
3421
|
handoff: z.ZodString;
|
|
2849
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
2850
|
-
type: z.ZodLiteral<"request">;
|
|
2851
|
-
v: z.ZodLiteral<1>;
|
|
2852
|
-
id: z.ZodString;
|
|
2853
|
-
kind: z.ZodLiteral<"answer-expert">;
|
|
2854
|
-
expert: z.ZodString;
|
|
2855
|
-
questionId: z.ZodString;
|
|
2856
|
-
question: z.ZodString;
|
|
2857
|
-
blocking: z.ZodBoolean;
|
|
2858
|
-
from: z.ZodObject<{
|
|
2859
|
-
id: z.ZodString;
|
|
2860
|
-
name: z.ZodString;
|
|
2861
|
-
}, z.core.$strip>;
|
|
2862
|
-
asker: z.ZodString;
|
|
2863
3422
|
}, z.core.$strip>], "kind">, z.ZodObject<{
|
|
2864
3423
|
type: z.ZodLiteral<"release">;
|
|
2865
3424
|
v: z.ZodLiteral<1>;
|
|
@@ -2936,8 +3495,8 @@ export declare const OfficeServerMessageSchema: z.ZodDiscriminatedUnion<[z.ZodOb
|
|
|
2936
3495
|
EXPERT_CAP: "EXPERT_CAP";
|
|
2937
3496
|
EXPERT_DROPPED: "EXPERT_DROPPED";
|
|
2938
3497
|
EXPERT_FORK_FAILED: "EXPERT_FORK_FAILED";
|
|
3498
|
+
EXPERT_NOT_SET_UP: "EXPERT_NOT_SET_UP";
|
|
2939
3499
|
EXPERT_PLUGIN_OLD: "EXPERT_PLUGIN_OLD";
|
|
2940
|
-
EXPERT_QUESTION_HELD: "EXPERT_QUESTION_HELD";
|
|
2941
3500
|
EXPERT_QUEUED: "EXPERT_QUEUED";
|
|
2942
3501
|
EXPERT_RUNNER_UNREACHABLE: "EXPERT_RUNNER_UNREACHABLE";
|
|
2943
3502
|
EXPERT_STARTING: "EXPERT_STARTING";
|
|
@@ -3094,11 +3653,6 @@ export declare const OfficeServerMessageSchema: z.ZodDiscriminatedUnion<[z.ZodOb
|
|
|
3094
3653
|
repo: z.ZodString;
|
|
3095
3654
|
host: z.ZodString;
|
|
3096
3655
|
}, z.core.$strip>>;
|
|
3097
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
3098
|
-
type: z.ZodLiteral<"hosting">;
|
|
3099
|
-
v: z.ZodLiteral<1>;
|
|
3100
|
-
listed: z.ZodArray<z.ZodString>;
|
|
3101
|
-
expertSenior: z.ZodOptional<z.ZodLiteral<true>>;
|
|
3102
3656
|
}, z.core.$strip>, z.ZodObject<{
|
|
3103
3657
|
type: z.ZodLiteral<"create-expert-from-suggestion">;
|
|
3104
3658
|
v: z.ZodLiteral<1>;
|
|
@@ -3156,7 +3710,205 @@ export declare const OfficeServerMessageSchema: z.ZodDiscriminatedUnion<[z.ZodOb
|
|
|
3156
3710
|
expired: "expired";
|
|
3157
3711
|
refused: "refused";
|
|
3158
3712
|
}>;
|
|
3159
|
-
}, z.core.$strip>], "why"
|
|
3713
|
+
}, z.core.$strip>], "why">, z.ZodObject<{
|
|
3714
|
+
type: z.ZodLiteral<"expert-directory">;
|
|
3715
|
+
v: z.ZodLiteral<1>;
|
|
3716
|
+
experts: z.ZodArray<z.ZodObject<{
|
|
3717
|
+
key: z.ZodString;
|
|
3718
|
+
expertRecordId: z.ZodUUID;
|
|
3719
|
+
project: z.ZodObject<{
|
|
3720
|
+
id: z.ZodString;
|
|
3721
|
+
name: z.ZodString;
|
|
3722
|
+
}, z.core.$strip>;
|
|
3723
|
+
owner: z.ZodObject<{
|
|
3724
|
+
id: z.ZodString;
|
|
3725
|
+
name: z.ZodString;
|
|
3726
|
+
}, z.core.$strip>;
|
|
3727
|
+
yours: z.ZodOptional<z.ZodLiteral<true>>;
|
|
3728
|
+
revision: z.ZodNumber;
|
|
3729
|
+
groundingTokens: z.ZodOptional<z.ZodNumber>;
|
|
3730
|
+
}, z.core.$strip>>;
|
|
3731
|
+
asking: z.ZodObject<{
|
|
3732
|
+
openPerPersonPerExpert: z.ZodNumber;
|
|
3733
|
+
perPersonPerDay: z.ZodNumber;
|
|
3734
|
+
maxAgeHours: z.ZodNumber;
|
|
3735
|
+
}, z.core.$strip>;
|
|
3736
|
+
sharesWhatExpertInstancesLearn: z.ZodOptional<z.ZodLiteral<true>>;
|
|
3737
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
3738
|
+
type: z.ZodLiteral<"expert-record">;
|
|
3739
|
+
v: z.ZodLiteral<1>;
|
|
3740
|
+
expertRecordId: z.ZodUUID;
|
|
3741
|
+
revision: z.ZodNumber;
|
|
3742
|
+
owner: z.ZodObject<{
|
|
3743
|
+
id: z.ZodString;
|
|
3744
|
+
name: z.ZodString;
|
|
3745
|
+
}, z.core.$strip>;
|
|
3746
|
+
yours: z.ZodOptional<z.ZodLiteral<true>>;
|
|
3747
|
+
definition: z.ZodObject<{
|
|
3748
|
+
key: z.ZodString;
|
|
3749
|
+
project: z.ZodObject<{
|
|
3750
|
+
id: z.ZodString;
|
|
3751
|
+
name: z.ZodString;
|
|
3752
|
+
}, z.core.$strip>;
|
|
3753
|
+
subject: z.ZodString;
|
|
3754
|
+
model: z.ZodString;
|
|
3755
|
+
promoteAtTokens: z.ZodNumber;
|
|
3756
|
+
areas: z.ZodArray<z.ZodString>;
|
|
3757
|
+
proof: z.ZodObject<{
|
|
3758
|
+
question: z.ZodString;
|
|
3759
|
+
answer: z.ZodString;
|
|
3760
|
+
}, z.core.$strip>;
|
|
3761
|
+
learnedElsewhereTokensPerQuestion: z.ZodOptional<z.ZodNumber>;
|
|
3762
|
+
}, z.core.$strip>;
|
|
3763
|
+
}, z.core.$strip>, z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
3764
|
+
type: z.ZodLiteral<"expert-definition-result">;
|
|
3765
|
+
v: z.ZodLiteral<1>;
|
|
3766
|
+
key: z.ZodString;
|
|
3767
|
+
outcome: z.ZodLiteral<"published">;
|
|
3768
|
+
expertRecordId: z.ZodUUID;
|
|
3769
|
+
revision: z.ZodNumber;
|
|
3770
|
+
}, z.core.$strip>, z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
3771
|
+
type: z.ZodLiteral<"expert-definition-result">;
|
|
3772
|
+
v: z.ZodLiteral<1>;
|
|
3773
|
+
key: z.ZodString;
|
|
3774
|
+
outcome: z.ZodLiteral<"refused">;
|
|
3775
|
+
reason: z.ZodLiteral<"edited-elsewhere">;
|
|
3776
|
+
expertRecordId: z.ZodUUID;
|
|
3777
|
+
revision: z.ZodNumber;
|
|
3778
|
+
definition: z.ZodObject<{
|
|
3779
|
+
key: z.ZodString;
|
|
3780
|
+
project: z.ZodObject<{
|
|
3781
|
+
id: z.ZodString;
|
|
3782
|
+
name: z.ZodString;
|
|
3783
|
+
}, z.core.$strip>;
|
|
3784
|
+
subject: z.ZodString;
|
|
3785
|
+
model: z.ZodString;
|
|
3786
|
+
promoteAtTokens: z.ZodNumber;
|
|
3787
|
+
areas: z.ZodArray<z.ZodString>;
|
|
3788
|
+
proof: z.ZodObject<{
|
|
3789
|
+
question: z.ZodString;
|
|
3790
|
+
answer: z.ZodString;
|
|
3791
|
+
}, z.core.$strip>;
|
|
3792
|
+
learnedElsewhereTokensPerQuestion: z.ZodOptional<z.ZodNumber>;
|
|
3793
|
+
}, z.core.$strip>;
|
|
3794
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
3795
|
+
type: z.ZodLiteral<"expert-definition-result">;
|
|
3796
|
+
v: z.ZodLiteral<1>;
|
|
3797
|
+
key: z.ZodString;
|
|
3798
|
+
outcome: z.ZodLiteral<"refused">;
|
|
3799
|
+
reason: z.ZodEnum<{
|
|
3800
|
+
deleted: "deleted";
|
|
3801
|
+
"key-taken": "key-taken";
|
|
3802
|
+
"not-owner": "not-owner";
|
|
3803
|
+
"project-not-in-an-office": "project-not-in-an-office";
|
|
3804
|
+
}>;
|
|
3805
|
+
}, z.core.$strip>], "reason">], "outcome">, z.ZodObject<{
|
|
3806
|
+
type: z.ZodLiteral<"expert-deleted">;
|
|
3807
|
+
v: z.ZodLiteral<1>;
|
|
3808
|
+
key: z.ZodString;
|
|
3809
|
+
expertRecordId: z.ZodUUID;
|
|
3810
|
+
by: z.ZodObject<{
|
|
3811
|
+
id: z.ZodString;
|
|
3812
|
+
name: z.ZodString;
|
|
3813
|
+
}, z.core.$strip>;
|
|
3814
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
3815
|
+
type: z.ZodLiteral<"set-up-expert-instance">;
|
|
3816
|
+
v: z.ZodLiteral<1>;
|
|
3817
|
+
request: z.ZodString;
|
|
3818
|
+
key: z.ZodString;
|
|
3819
|
+
expertRecordId: z.ZodUUID;
|
|
3820
|
+
by: z.ZodObject<{
|
|
3821
|
+
id: z.ZodString;
|
|
3822
|
+
name: z.ZodString;
|
|
3823
|
+
}, z.core.$strip>;
|
|
3824
|
+
again: z.ZodOptional<z.ZodLiteral<true>>;
|
|
3825
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
3826
|
+
type: z.ZodLiteral<"expert-set-up-offer-ended">;
|
|
3827
|
+
v: z.ZodLiteral<1>;
|
|
3828
|
+
key: z.ZodString;
|
|
3829
|
+
expertRecordId: z.ZodUUID;
|
|
3830
|
+
why: z.ZodEnum<{
|
|
3831
|
+
dismissed: "dismissed";
|
|
3832
|
+
expired: "expired";
|
|
3833
|
+
gone: "gone";
|
|
3834
|
+
"set-up": "set-up";
|
|
3835
|
+
}>;
|
|
3836
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
3837
|
+
type: z.ZodLiteral<"expert-questions-asked-on-your-other-computers">;
|
|
3838
|
+
v: z.ZodLiteral<1>;
|
|
3839
|
+
open: z.ZodArray<z.ZodObject<{
|
|
3840
|
+
key: z.ZodString;
|
|
3841
|
+
count: z.ZodNumber;
|
|
3842
|
+
}, z.core.$strip>>;
|
|
3843
|
+
askedAtInTheLastDay: z.ZodArray<z.ZodISODateTime>;
|
|
3844
|
+
}, z.core.$strip>, z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
3845
|
+
type: z.ZodLiteral<"expert-instance-learned-received">;
|
|
3846
|
+
v: z.ZodLiteral<1>;
|
|
3847
|
+
key: z.ZodString;
|
|
3848
|
+
expertRecordId: z.ZodUUID;
|
|
3849
|
+
id: z.ZodUUID;
|
|
3850
|
+
outcome: z.ZodLiteral<"kept">;
|
|
3851
|
+
arrivalNumber: z.ZodNumber;
|
|
3852
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
3853
|
+
type: z.ZodLiteral<"expert-instance-learned-received">;
|
|
3854
|
+
v: z.ZodLiteral<1>;
|
|
3855
|
+
key: z.ZodString;
|
|
3856
|
+
expertRecordId: z.ZodUUID;
|
|
3857
|
+
id: z.ZodUUID;
|
|
3858
|
+
outcome: z.ZodLiteral<"removed">;
|
|
3859
|
+
arrivalNumber: z.ZodOptional<z.ZodNever>;
|
|
3860
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
3861
|
+
type: z.ZodLiteral<"expert-instance-learned-received">;
|
|
3862
|
+
v: z.ZodLiteral<1>;
|
|
3863
|
+
key: z.ZodString;
|
|
3864
|
+
expertRecordId: z.ZodUUID;
|
|
3865
|
+
id: z.ZodUUID;
|
|
3866
|
+
outcome: z.ZodLiteral<"refused">;
|
|
3867
|
+
reason: z.ZodEnum<{
|
|
3868
|
+
"not-an-instance-here": "not-an-instance-here";
|
|
3869
|
+
"record-gone": "record-gone";
|
|
3870
|
+
}>;
|
|
3871
|
+
arrivalNumber: z.ZodOptional<z.ZodNever>;
|
|
3872
|
+
}, z.core.$strip>], "outcome">, z.ZodObject<{
|
|
3873
|
+
type: z.ZodLiteral<"expert-learned-since">;
|
|
3874
|
+
v: z.ZodLiteral<1>;
|
|
3875
|
+
key: z.ZodString;
|
|
3876
|
+
expertRecordId: z.ZodUUID;
|
|
3877
|
+
afterArrivalNumber: z.ZodNumber;
|
|
3878
|
+
entries: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
3879
|
+
id: z.ZodUUID;
|
|
3880
|
+
text: z.ZodString;
|
|
3881
|
+
files: z.ZodArray<z.ZodObject<{
|
|
3882
|
+
path: z.ZodString;
|
|
3883
|
+
commit: z.ZodOptional<z.ZodString>;
|
|
3884
|
+
}, z.core.$strip>>;
|
|
3885
|
+
learnedAt: z.ZodISODateTime;
|
|
3886
|
+
kind: z.ZodLiteral<"learned">;
|
|
3887
|
+
arrivalNumber: z.ZodNumber;
|
|
3888
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
3889
|
+
kind: z.ZodLiteral<"learned-then-removed">;
|
|
3890
|
+
arrivalNumber: z.ZodNumber;
|
|
3891
|
+
id: z.ZodUUID;
|
|
3892
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
3893
|
+
kind: z.ZodLiteral<"removed">;
|
|
3894
|
+
arrivalNumber: z.ZodNumber;
|
|
3895
|
+
id: z.ZodUUID;
|
|
3896
|
+
at: z.ZodISODateTime;
|
|
3897
|
+
}, z.core.$strip>], "kind">>;
|
|
3898
|
+
chain: z.ZodUnion<readonly [z.ZodLiteral<"">, z.ZodString]>;
|
|
3899
|
+
lastArrivalNumber: z.ZodNumber;
|
|
3900
|
+
startedAgain: z.ZodOptional<z.ZodLiteral<true>>;
|
|
3901
|
+
more: z.ZodOptional<z.ZodLiteral<true>>;
|
|
3902
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
3903
|
+
type: z.ZodLiteral<"expert-learned-wanted-after-refused">;
|
|
3904
|
+
v: z.ZodLiteral<1>;
|
|
3905
|
+
key: z.ZodString;
|
|
3906
|
+
expertRecordId: z.ZodUUID;
|
|
3907
|
+
reason: z.ZodEnum<{
|
|
3908
|
+
"not-an-instance-here": "not-an-instance-here";
|
|
3909
|
+
"record-gone": "record-gone";
|
|
3910
|
+
}>;
|
|
3911
|
+
}, z.core.$strip>], "type">;
|
|
3160
3912
|
export type HandoffRepo = z.infer<typeof HandoffRepoSchema>;
|
|
3161
3913
|
export type Handoff = z.infer<typeof HandoffSchema>;
|
|
3162
3914
|
export type HelloMessage = z.infer<typeof HelloMessageSchema>;
|
|
@@ -3200,18 +3952,35 @@ export type DriveRefusal = Extract<DrivenMessage, {
|
|
|
3200
3952
|
kind: "refused";
|
|
3201
3953
|
}>;
|
|
3202
3954
|
export type DriveRefusalReason = DriveRefusal["reason"];
|
|
3203
|
-
export type ExpertListing = z.infer<typeof ExpertListingSchema>;
|
|
3204
3955
|
export type ExpertRight = z.infer<typeof ExpertRightSchema>;
|
|
3205
3956
|
export type ExpertCode = z.infer<typeof ExpertCodeSchema>;
|
|
3206
|
-
export type ExpertState = z.infer<typeof ExpertStateSchema>;
|
|
3207
|
-
export type ExpertCap = z.infer<typeof ExpertCapSchema>;
|
|
3208
|
-
export type ExpertRefusal = z.infer<typeof ExpertRefusalSchema>;
|
|
3209
|
-
export type ExpertsMessage = z.infer<typeof ExpertsMessageSchema>;
|
|
3210
3957
|
export type AskExpertMessage = z.infer<typeof AskExpertMessageSchema>;
|
|
3211
3958
|
export type ExpertRightsMessage = z.infer<typeof ExpertRightsMessageSchema>;
|
|
3212
|
-
export type
|
|
3213
|
-
export type
|
|
3959
|
+
export type ExpertDefinition = z.infer<typeof ExpertDefinitionSchema>;
|
|
3960
|
+
export type ExpertInstanceState = z.infer<typeof ExpertInstanceStateSchema>;
|
|
3961
|
+
export type ExpertDirectoryEntry = z.infer<typeof ExpertDirectoryEntrySchema>;
|
|
3962
|
+
export type ExpertDefinitionMessage = z.infer<typeof ExpertDefinitionMessageSchema>;
|
|
3963
|
+
export type ExpertRecordWantedMessage = z.infer<typeof ExpertRecordWantedMessageSchema>;
|
|
3964
|
+
export type ExpertInstanceStatesMessage = z.infer<typeof ExpertInstanceStatesMessageSchema>;
|
|
3965
|
+
export type ExpertQuestionMessage = z.infer<typeof ExpertQuestionMessageSchema>;
|
|
3966
|
+
export type ExpertSetUpOfferedMessage = z.infer<typeof ExpertSetUpOfferedMessageSchema>;
|
|
3967
|
+
export type ExpertProofFailedMessage = z.infer<typeof ExpertProofFailedMessageSchema>;
|
|
3968
|
+
export type ExpertDirectoryMessage = z.infer<typeof ExpertDirectoryMessageSchema>;
|
|
3969
|
+
export type ExpertRecordMessage = z.infer<typeof ExpertRecordMessageSchema>;
|
|
3970
|
+
export type ExpertDefinitionResultMessage = z.infer<typeof ExpertDefinitionResultMessageSchema>;
|
|
3971
|
+
export type ExpertDeletedMessage = z.infer<typeof ExpertDeletedMessageSchema>;
|
|
3972
|
+
export type SetUpExpertInstanceMessage = z.infer<typeof SetUpExpertInstanceMessageSchema>;
|
|
3973
|
+
export type ExpertSetUpOfferEndedMessage = z.infer<typeof ExpertSetUpOfferEndedMessageSchema>;
|
|
3974
|
+
export type ExpertQuestionsAskedOnYourOtherComputersMessage = z.infer<typeof ExpertQuestionsAskedOnYourOtherComputersMessageSchema>;
|
|
3975
|
+
export type FileWhatWasLearnedRestsOn = z.infer<typeof FileWhatWasLearnedRestsOnSchema>;
|
|
3976
|
+
export type WhatWasLearnedEntry = z.infer<typeof WhatWasLearnedEntrySchema>;
|
|
3977
|
+
export type ExpertInstanceLearnedMessage = z.infer<typeof ExpertInstanceLearnedMessageSchema>;
|
|
3978
|
+
export type ExpertLearnedWantedAfterMessage = z.infer<typeof ExpertLearnedWantedAfterMessageSchema>;
|
|
3979
|
+
export type ExpertInstanceLearnedReceivedMessage = z.infer<typeof ExpertInstanceLearnedReceivedMessageSchema>;
|
|
3980
|
+
export type ExpertLearnedSinceMessage = z.infer<typeof ExpertLearnedSinceMessageSchema>;
|
|
3981
|
+
export type ExpertLearnedWantedAfterRefusedMessage = z.infer<typeof ExpertLearnedWantedAfterRefusedMessageSchema>;
|
|
3214
3982
|
export type ExpertCreationSuggestionMessage = z.infer<typeof ExpertCreationSuggestionMessageSchema>;
|
|
3983
|
+
export type ExpertCreationSuggestionRepetition = z.infer<typeof ExpertCreationSuggestionRepetitionSchema>;
|
|
3215
3984
|
export type RunnerExpertCreationSuggestionEndedMessage = z.infer<typeof RunnerExpertCreationSuggestionEndedMessageSchema>;
|
|
3216
3985
|
export type ExpertCreationProgressState = z.infer<typeof ExpertCreationProgressStateSchema>;
|
|
3217
3986
|
export type ExpertCreationProgressMessage = z.infer<typeof ExpertCreationProgressMessageSchema>;
|