@isoplan/protocol 0.13.0 → 0.15.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/area-covers.d.ts +7 -0
- package/dist/area-covers.js +16 -0
- package/dist/area-covers.js.map +1 -0
- package/dist/dismissals.d.ts +7 -0
- package/dist/dismissals.js +15 -0
- package/dist/dismissals.js.map +1 -0
- package/dist/facts.d.ts +61 -0
- package/dist/facts.js +40 -0
- package/dist/facts.js.map +1 -1
- package/dist/index.d.ts +2 -0
- package/dist/index.js +2 -0
- package/dist/index.js.map +1 -1
- package/dist/messages.d.ts +410 -5
- package/dist/messages.js +255 -4
- package/dist/messages.js.map +1 -1
- package/package.json +1 -1
package/dist/messages.d.ts
CHANGED
|
@@ -148,6 +148,17 @@ export declare const HelloMessageSchema: z.ZodObject<{
|
|
|
148
148
|
* runner from before 0.10.0 drops the field it doesn't know and would run the session from the floor.
|
|
149
149
|
* `experts` (protocol 0.13.0): this runner hosts experts. It answers `hosting` with `experts`, and
|
|
150
150
|
* takes `answer-expert` requests; the server sends neither to a runner that didn't say it.
|
|
151
|
+
* `hiddenStarts` (protocol 0.14.0, isoplan-app#315): this runner can start a session from the floor
|
|
152
|
+
* hidden (a start's `hidden`), in a clone Isoplan keeps for itself. The server sends `hidden` only to
|
|
153
|
+
* a runner that says it: a runner from before 0.14.0 drops the field it doesn't know and would start
|
|
154
|
+
* the session in the person's own checkout.
|
|
155
|
+
* `canCreateExpertsFromSuggestions` (protocol 0.15.0, isoplan-app#328): this runner suggests creating
|
|
156
|
+
* an expert where a session would have been helped by one, and creates it when a person confirms
|
|
157
|
+
* (see `expert-creation-suggestion`). It sends `expert-creation-suggestion`,
|
|
158
|
+
* `expert-creation-suggestion-ended` and `expert-creation-progress`, and takes
|
|
159
|
+
* `expert-creation-suggestion-dismissals`, `draft-office-wide-expert-creation-suggestion`,
|
|
160
|
+
* `create-expert-from-suggestion` and `expert-creation-suggestion-ended`; the server sends none of
|
|
161
|
+
* these to a runner that didn't say it.
|
|
151
162
|
*/
|
|
152
163
|
export declare const RunnerHelloMessageSchema: z.ZodObject<{
|
|
153
164
|
type: z.ZodLiteral<"runner">;
|
|
@@ -175,6 +186,8 @@ export declare const RunnerHelloMessageSchema: z.ZodObject<{
|
|
|
175
186
|
terminal: "terminal";
|
|
176
187
|
}>>>;
|
|
177
188
|
experts: z.ZodOptional<z.ZodLiteral<true>>;
|
|
189
|
+
hiddenStarts: z.ZodOptional<z.ZodLiteral<true>>;
|
|
190
|
+
canCreateExpertsFromSuggestions: z.ZodOptional<z.ZodLiteral<true>>;
|
|
178
191
|
}, z.core.$strip>;
|
|
179
192
|
/** All of the session's facts. Sent on connect and on repair. */
|
|
180
193
|
export declare const FullMessageSchema: z.ZodObject<{
|
|
@@ -361,6 +374,19 @@ export declare const FullMessageSchema: z.ZodObject<{
|
|
|
361
374
|
moreAgents: z.ZodOptional<z.ZodNumber>;
|
|
362
375
|
extra: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
363
376
|
}, z.core.$strip>>>;
|
|
377
|
+
areas: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
378
|
+
project: z.ZodOptional<z.ZodObject<{
|
|
379
|
+
id: z.ZodString;
|
|
380
|
+
name: z.ZodString;
|
|
381
|
+
}, z.core.$strip>>;
|
|
382
|
+
away: z.ZodOptional<z.ZodBoolean>;
|
|
383
|
+
folder: z.ZodString;
|
|
384
|
+
reads: z.ZodNumber;
|
|
385
|
+
searches: z.ZodNumber;
|
|
386
|
+
tokens: z.ZodNumber;
|
|
387
|
+
ms: z.ZodNumber;
|
|
388
|
+
corrections: z.ZodNumber;
|
|
389
|
+
}, z.core.$strip>>>;
|
|
364
390
|
}, z.core.$strip>;
|
|
365
391
|
}, z.core.$strip>;
|
|
366
392
|
/** What changed since the last message. `seq` goes up by one per message, so a gap shows. */
|
|
@@ -548,6 +574,19 @@ export declare const ChangesMessageSchema: z.ZodObject<{
|
|
|
548
574
|
moreAgents: z.ZodOptional<z.ZodNumber>;
|
|
549
575
|
extra: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
550
576
|
}, z.core.$strip>>>;
|
|
577
|
+
areas: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
578
|
+
project: z.ZodOptional<z.ZodObject<{
|
|
579
|
+
id: z.ZodString;
|
|
580
|
+
name: z.ZodString;
|
|
581
|
+
}, z.core.$strip>>;
|
|
582
|
+
away: z.ZodOptional<z.ZodBoolean>;
|
|
583
|
+
folder: z.ZodString;
|
|
584
|
+
reads: z.ZodNumber;
|
|
585
|
+
searches: z.ZodNumber;
|
|
586
|
+
tokens: z.ZodNumber;
|
|
587
|
+
ms: z.ZodNumber;
|
|
588
|
+
corrections: z.ZodNumber;
|
|
589
|
+
}, z.core.$strip>>>;
|
|
551
590
|
}, z.core.$strip>;
|
|
552
591
|
remove: z.ZodObject<{
|
|
553
592
|
agents: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
@@ -611,7 +650,6 @@ export declare const MAX_EXPERT_ANSWER_LENGTH = 8000;
|
|
|
611
650
|
export declare const ExpertNameSchema: z.ZodString;
|
|
612
651
|
/** Every situation ask_expert tells its agent about, by a stable code. */
|
|
613
652
|
export declare const ExpertCodeSchema: z.ZodEnum<{
|
|
614
|
-
EXPERT_ANSWER_WITHHELD: "EXPERT_ANSWER_WITHHELD";
|
|
615
653
|
EXPERT_CAP: "EXPERT_CAP";
|
|
616
654
|
EXPERT_DROPPED: "EXPERT_DROPPED";
|
|
617
655
|
EXPERT_FORK_FAILED: "EXPERT_FORK_FAILED";
|
|
@@ -634,7 +672,20 @@ export declare const ExpertCapSchema: z.ZodEnum<{
|
|
|
634
672
|
"asker-open": "asker-open";
|
|
635
673
|
"expert-tokens": "expert-tokens";
|
|
636
674
|
}>;
|
|
637
|
-
/**
|
|
675
|
+
/** The most folders or globs an expert's area names (protocol 0.15.0). */
|
|
676
|
+
export declare const MAX_AREA_PATHS = 20;
|
|
677
|
+
/**
|
|
678
|
+
* An expert's name as people read it, from its key: the key's words, split on dashes, each
|
|
679
|
+
* capitalised, then "Expert" (`pairing` is "Pairing Expert", `pairing-tokens` "Pairing Tokens Expert").
|
|
680
|
+
*/
|
|
681
|
+
export declare const expertDisplayName: (key: string) => string;
|
|
682
|
+
/**
|
|
683
|
+
* One expert a runner hosts, as it lists it to an office server whose list takes its repo. `senior`
|
|
684
|
+
* (protocol 0.14.0): it has a senior generation, which its junior can ask (see `expert-senior`);
|
|
685
|
+
* absent from an older runner. `areas` (protocol 0.15.0): the folders and globs of its repo it
|
|
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.
|
|
688
|
+
*/
|
|
638
689
|
export declare const ExpertListingSchema: z.ZodObject<{
|
|
639
690
|
name: z.ZodString;
|
|
640
691
|
project: z.ZodObject<{
|
|
@@ -647,6 +698,8 @@ export declare const ExpertListingSchema: z.ZodObject<{
|
|
|
647
698
|
ready: "ready";
|
|
648
699
|
starting: "starting";
|
|
649
700
|
}>;
|
|
701
|
+
senior: z.ZodOptional<z.ZodBoolean>;
|
|
702
|
+
areas: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
650
703
|
}, z.core.$strip>;
|
|
651
704
|
/** One expert a session may ask: `repo` is its project's short name, `host` the hosting person's name. */
|
|
652
705
|
export declare const ExpertRightSchema: z.ZodObject<{
|
|
@@ -905,8 +958,22 @@ export declare const ExpertsMessageSchema: z.ZodObject<{
|
|
|
905
958
|
ready: "ready";
|
|
906
959
|
starting: "starting";
|
|
907
960
|
}>;
|
|
961
|
+
senior: z.ZodOptional<z.ZodBoolean>;
|
|
962
|
+
areas: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
908
963
|
}, z.core.$strip>>;
|
|
909
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>;
|
|
910
977
|
/**
|
|
911
978
|
* A session asks an expert a question (protocol 0.13.0), on its own short link with the session's
|
|
912
979
|
* hello, as ask-room is. `key` is the tool call's id: asked again under it, it is the same question.
|
|
@@ -924,6 +991,98 @@ export declare const AskExpertMessageSchema: z.ZodObject<{
|
|
|
924
991
|
blocking: z.ZodBoolean;
|
|
925
992
|
key: z.ZodString;
|
|
926
993
|
}, z.core.$strip>;
|
|
994
|
+
/** The most sessions a `draft-office-wide-expert-creation-suggestion` names. */
|
|
995
|
+
export declare const MAX_EXPERT_CREATION_SUGGESTION_SESSIONS = 20;
|
|
996
|
+
/** The most dismissed areas an `expert-creation-suggestion-dismissals` lists. */
|
|
997
|
+
export declare const MAX_EXPERT_CREATION_SUGGESTION_DISMISSALS = 1000;
|
|
998
|
+
/**
|
|
999
|
+
* A runner suggests creating an expert (protocol 0.15.0), once per session and folder, for a session
|
|
1000
|
+
* in a repo the office takes. `session` is the session that showed the need (for an office-wide one,
|
|
1001
|
+
* the latest that searched the area), `project` its repo, and `folder` the folder whose signals passed
|
|
1002
|
+
* their threshold, which dismissals name. `scope`: `session`, from that session's own signals, or
|
|
1003
|
+
* `office`, in answer to a `draft-office-wide-expert-creation-suggestion`, whose `request` is then its
|
|
1004
|
+
* `id`. The draft: `key`, the expert's name (shown as `expertDisplayName(key)`), `subject`, `area`
|
|
1005
|
+
* and `proof`, as the runner's local model wrote them and the secret check passed them. `why`, the
|
|
1006
|
+
* signals that passed their thresholds, each other one 0: `share`, the share of the session's context
|
|
1007
|
+
* 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. `at`: when it was
|
|
1009
|
+
* suggested. Of its text, only these leave the machine, under ADR 0004's case for an expert creation
|
|
1010
|
+
* suggestion's draft.
|
|
1011
|
+
*/
|
|
1012
|
+
export declare const ExpertCreationSuggestionMessageSchema: z.ZodObject<{
|
|
1013
|
+
type: z.ZodLiteral<"expert-creation-suggestion">;
|
|
1014
|
+
v: z.ZodLiteral<1>;
|
|
1015
|
+
id: z.ZodString;
|
|
1016
|
+
session: z.ZodString;
|
|
1017
|
+
project: z.ZodObject<{
|
|
1018
|
+
id: z.ZodString;
|
|
1019
|
+
name: z.ZodString;
|
|
1020
|
+
}, z.core.$strip>;
|
|
1021
|
+
folder: z.ZodString;
|
|
1022
|
+
scope: z.ZodEnum<{
|
|
1023
|
+
office: "office";
|
|
1024
|
+
session: "session";
|
|
1025
|
+
}>;
|
|
1026
|
+
key: z.ZodString;
|
|
1027
|
+
subject: z.ZodString;
|
|
1028
|
+
area: z.ZodArray<z.ZodString>;
|
|
1029
|
+
proof: z.ZodObject<{
|
|
1030
|
+
question: z.ZodString;
|
|
1031
|
+
answer: z.ZodString;
|
|
1032
|
+
}, z.core.$strip>;
|
|
1033
|
+
why: z.ZodObject<{
|
|
1034
|
+
share: z.ZodNumber;
|
|
1035
|
+
tokens: z.ZodNumber;
|
|
1036
|
+
minutes: z.ZodNumber;
|
|
1037
|
+
corrections: z.ZodNumber;
|
|
1038
|
+
}, z.core.$strip>;
|
|
1039
|
+
at: z.ZodISODateTime;
|
|
1040
|
+
}, z.core.$strip>;
|
|
1041
|
+
/**
|
|
1042
|
+
* A runner ends its expert creation suggestion `id` itself (protocol 0.15.0): `withdrawn`, it took the
|
|
1043
|
+
* suggestion back before anyone created the expert or dismissed it; `no-draft`, it couldn't draft the
|
|
1044
|
+
* office-wide suggestion the `draft-office-wide-expert-creation-suggestion` of that id asked for (the
|
|
1045
|
+
* secret check matched, or its model gave no usable draft).
|
|
1046
|
+
*/
|
|
1047
|
+
export declare const RunnerExpertCreationSuggestionEndedMessageSchema: z.ZodObject<{
|
|
1048
|
+
type: z.ZodLiteral<"expert-creation-suggestion-ended">;
|
|
1049
|
+
v: z.ZodLiteral<1>;
|
|
1050
|
+
id: z.ZodString;
|
|
1051
|
+
why: z.ZodEnum<{
|
|
1052
|
+
"no-draft": "no-draft";
|
|
1053
|
+
withdrawn: "withdrawn";
|
|
1054
|
+
}>;
|
|
1055
|
+
}, z.core.$strip>;
|
|
1056
|
+
/**
|
|
1057
|
+
* Where creating an expert stands on the runner that took the `create-expert-from-suggestion` request
|
|
1058
|
+
* `request`, for the expert creation suggestion `expertCreationSuggestionId` (protocol 0.15.0), sent
|
|
1059
|
+
* as each state is reached: `cloning`, it prepares the expert's own clone of the repo; `grounding`,
|
|
1060
|
+
* the expert reads what its subject rests on, as any expert grounds (its area decides only which
|
|
1061
|
+
* folders it covers, for expert creation suggestions); `proof`, it answers its
|
|
1062
|
+
* proof question; `ready`, it answers questions; `failed`, it stopped, with `detail` in the runner's
|
|
1063
|
+
* own words (no checkout of the repo on this machine, a key already used here, a failed proof).
|
|
1064
|
+
*/
|
|
1065
|
+
export declare const ExpertCreationProgressStateSchema: z.ZodEnum<{
|
|
1066
|
+
cloning: "cloning";
|
|
1067
|
+
failed: "failed";
|
|
1068
|
+
grounding: "grounding";
|
|
1069
|
+
proof: "proof";
|
|
1070
|
+
ready: "ready";
|
|
1071
|
+
}>;
|
|
1072
|
+
export declare const ExpertCreationProgressMessageSchema: z.ZodObject<{
|
|
1073
|
+
type: z.ZodLiteral<"expert-creation-progress">;
|
|
1074
|
+
v: z.ZodLiteral<1>;
|
|
1075
|
+
request: z.ZodString;
|
|
1076
|
+
expertCreationSuggestionId: z.ZodString;
|
|
1077
|
+
state: z.ZodEnum<{
|
|
1078
|
+
cloning: "cloning";
|
|
1079
|
+
failed: "failed";
|
|
1080
|
+
grounding: "grounding";
|
|
1081
|
+
proof: "proof";
|
|
1082
|
+
ready: "ready";
|
|
1083
|
+
}>;
|
|
1084
|
+
detail: z.ZodOptional<z.ZodString>;
|
|
1085
|
+
}, z.core.$strip>;
|
|
927
1086
|
/**
|
|
928
1087
|
* What a runner says of the driven sessions it holds (protocol 0.5.0), sent only by a runner that said
|
|
929
1088
|
* `drive`. `started`, `output` (for an output request or a release) and `handed-back` answer a `drive`
|
|
@@ -1209,6 +1368,8 @@ export declare const DataLayerMessageSchema: z.ZodDiscriminatedUnion<[z.ZodObjec
|
|
|
1209
1368
|
terminal: "terminal";
|
|
1210
1369
|
}>>>;
|
|
1211
1370
|
experts: z.ZodOptional<z.ZodLiteral<true>>;
|
|
1371
|
+
hiddenStarts: z.ZodOptional<z.ZodLiteral<true>>;
|
|
1372
|
+
canCreateExpertsFromSuggestions: z.ZodOptional<z.ZodLiteral<true>>;
|
|
1212
1373
|
}, z.core.$strip>, z.ZodObject<{
|
|
1213
1374
|
type: z.ZodLiteral<"full">;
|
|
1214
1375
|
v: z.ZodLiteral<1>;
|
|
@@ -1393,6 +1554,19 @@ export declare const DataLayerMessageSchema: z.ZodDiscriminatedUnion<[z.ZodObjec
|
|
|
1393
1554
|
moreAgents: z.ZodOptional<z.ZodNumber>;
|
|
1394
1555
|
extra: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
1395
1556
|
}, z.core.$strip>>>;
|
|
1557
|
+
areas: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
1558
|
+
project: z.ZodOptional<z.ZodObject<{
|
|
1559
|
+
id: z.ZodString;
|
|
1560
|
+
name: z.ZodString;
|
|
1561
|
+
}, z.core.$strip>>;
|
|
1562
|
+
away: z.ZodOptional<z.ZodBoolean>;
|
|
1563
|
+
folder: z.ZodString;
|
|
1564
|
+
reads: z.ZodNumber;
|
|
1565
|
+
searches: z.ZodNumber;
|
|
1566
|
+
tokens: z.ZodNumber;
|
|
1567
|
+
ms: z.ZodNumber;
|
|
1568
|
+
corrections: z.ZodNumber;
|
|
1569
|
+
}, z.core.$strip>>>;
|
|
1396
1570
|
}, z.core.$strip>;
|
|
1397
1571
|
}, z.core.$strip>, z.ZodObject<{
|
|
1398
1572
|
type: z.ZodLiteral<"changes">;
|
|
@@ -1578,6 +1752,19 @@ export declare const DataLayerMessageSchema: z.ZodDiscriminatedUnion<[z.ZodObjec
|
|
|
1578
1752
|
moreAgents: z.ZodOptional<z.ZodNumber>;
|
|
1579
1753
|
extra: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
1580
1754
|
}, z.core.$strip>>>;
|
|
1755
|
+
areas: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
1756
|
+
project: z.ZodOptional<z.ZodObject<{
|
|
1757
|
+
id: z.ZodString;
|
|
1758
|
+
name: z.ZodString;
|
|
1759
|
+
}, z.core.$strip>>;
|
|
1760
|
+
away: z.ZodOptional<z.ZodBoolean>;
|
|
1761
|
+
folder: z.ZodString;
|
|
1762
|
+
reads: z.ZodNumber;
|
|
1763
|
+
searches: z.ZodNumber;
|
|
1764
|
+
tokens: z.ZodNumber;
|
|
1765
|
+
ms: z.ZodNumber;
|
|
1766
|
+
corrections: z.ZodNumber;
|
|
1767
|
+
}, z.core.$strip>>>;
|
|
1581
1768
|
}, z.core.$strip>;
|
|
1582
1769
|
remove: z.ZodObject<{
|
|
1583
1770
|
agents: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
@@ -1990,6 +2177,8 @@ export declare const DataLayerMessageSchema: z.ZodDiscriminatedUnion<[z.ZodObjec
|
|
|
1990
2177
|
ready: "ready";
|
|
1991
2178
|
starting: "starting";
|
|
1992
2179
|
}>;
|
|
2180
|
+
senior: z.ZodOptional<z.ZodBoolean>;
|
|
2181
|
+
areas: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
1993
2182
|
}, z.core.$strip>>;
|
|
1994
2183
|
}, z.core.$strip>, z.ZodObject<{
|
|
1995
2184
|
type: z.ZodLiteral<"ask-expert">;
|
|
@@ -1998,6 +2187,59 @@ export declare const DataLayerMessageSchema: z.ZodDiscriminatedUnion<[z.ZodObjec
|
|
|
1998
2187
|
question: z.ZodString;
|
|
1999
2188
|
blocking: z.ZodBoolean;
|
|
2000
2189
|
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
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
2195
|
+
type: z.ZodLiteral<"expert-creation-suggestion">;
|
|
2196
|
+
v: z.ZodLiteral<1>;
|
|
2197
|
+
id: z.ZodString;
|
|
2198
|
+
session: z.ZodString;
|
|
2199
|
+
project: z.ZodObject<{
|
|
2200
|
+
id: z.ZodString;
|
|
2201
|
+
name: z.ZodString;
|
|
2202
|
+
}, z.core.$strip>;
|
|
2203
|
+
folder: z.ZodString;
|
|
2204
|
+
scope: z.ZodEnum<{
|
|
2205
|
+
office: "office";
|
|
2206
|
+
session: "session";
|
|
2207
|
+
}>;
|
|
2208
|
+
key: z.ZodString;
|
|
2209
|
+
subject: z.ZodString;
|
|
2210
|
+
area: z.ZodArray<z.ZodString>;
|
|
2211
|
+
proof: z.ZodObject<{
|
|
2212
|
+
question: z.ZodString;
|
|
2213
|
+
answer: z.ZodString;
|
|
2214
|
+
}, z.core.$strip>;
|
|
2215
|
+
why: z.ZodObject<{
|
|
2216
|
+
share: z.ZodNumber;
|
|
2217
|
+
tokens: z.ZodNumber;
|
|
2218
|
+
minutes: z.ZodNumber;
|
|
2219
|
+
corrections: z.ZodNumber;
|
|
2220
|
+
}, z.core.$strip>;
|
|
2221
|
+
at: z.ZodISODateTime;
|
|
2222
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
2223
|
+
type: z.ZodLiteral<"expert-creation-suggestion-ended">;
|
|
2224
|
+
v: z.ZodLiteral<1>;
|
|
2225
|
+
id: z.ZodString;
|
|
2226
|
+
why: z.ZodEnum<{
|
|
2227
|
+
"no-draft": "no-draft";
|
|
2228
|
+
withdrawn: "withdrawn";
|
|
2229
|
+
}>;
|
|
2230
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
2231
|
+
type: z.ZodLiteral<"expert-creation-progress">;
|
|
2232
|
+
v: z.ZodLiteral<1>;
|
|
2233
|
+
request: z.ZodString;
|
|
2234
|
+
expertCreationSuggestionId: z.ZodString;
|
|
2235
|
+
state: z.ZodEnum<{
|
|
2236
|
+
cloning: "cloning";
|
|
2237
|
+
failed: "failed";
|
|
2238
|
+
grounding: "grounding";
|
|
2239
|
+
proof: "proof";
|
|
2240
|
+
ready: "ready";
|
|
2241
|
+
}>;
|
|
2242
|
+
detail: z.ZodOptional<z.ZodString>;
|
|
2001
2243
|
}, z.core.$strip>], "type">;
|
|
2002
2244
|
/** Asks the data layer to send its facts in full. */
|
|
2003
2245
|
export declare const RepairMessageSchema: z.ZodObject<{
|
|
@@ -2218,7 +2460,6 @@ export declare const AskedMessageSchema: z.ZodObject<{
|
|
|
2218
2460
|
key: z.ZodOptional<z.ZodString>;
|
|
2219
2461
|
expert: z.ZodOptional<z.ZodString>;
|
|
2220
2462
|
code: z.ZodOptional<z.ZodEnum<{
|
|
2221
|
-
EXPERT_ANSWER_WITHHELD: "EXPERT_ANSWER_WITHHELD";
|
|
2222
2463
|
EXPERT_CAP: "EXPERT_CAP";
|
|
2223
2464
|
EXPERT_DROPPED: "EXPERT_DROPPED";
|
|
2224
2465
|
EXPERT_FORK_FAILED: "EXPERT_FORK_FAILED";
|
|
@@ -2268,11 +2509,14 @@ export declare const ExpertRightsMessageSchema: z.ZodObject<{
|
|
|
2268
2509
|
* after each `experts` message, and whenever the offices change. The runner sends no `experts` on a
|
|
2269
2510
|
* connection before that connection's first `hosting`, so a server from before experts, which sends
|
|
2270
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.
|
|
2271
2514
|
*/
|
|
2272
2515
|
export declare const HostingMessageSchema: z.ZodObject<{
|
|
2273
2516
|
type: z.ZodLiteral<"hosting">;
|
|
2274
2517
|
v: z.ZodLiteral<1>;
|
|
2275
2518
|
listed: z.ZodArray<z.ZodString>;
|
|
2519
|
+
expertSenior: z.ZodOptional<z.ZodLiteral<true>>;
|
|
2276
2520
|
}, z.core.$strip>;
|
|
2277
2521
|
/**
|
|
2278
2522
|
* A person acting on a driven session from the floor (protocol 0.5.0), sent only to a runner that said
|
|
@@ -2310,6 +2554,7 @@ export declare const DriveMessageSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
2310
2554
|
orca: "orca";
|
|
2311
2555
|
terminal: "terminal";
|
|
2312
2556
|
}>>;
|
|
2557
|
+
hidden: z.ZodOptional<z.ZodBoolean>;
|
|
2313
2558
|
}, z.core.$strip>, z.ZodObject<{
|
|
2314
2559
|
type: z.ZodLiteral<"drive">;
|
|
2315
2560
|
v: z.ZodLiteral<1>;
|
|
@@ -2431,6 +2676,98 @@ export declare const DrivePolicyMessageSchema: z.ZodObject<{
|
|
|
2431
2676
|
v: z.ZodLiteral<1>;
|
|
2432
2677
|
bypassAllowed: z.ZodArray<z.ZodString>;
|
|
2433
2678
|
}, z.core.$strip>;
|
|
2679
|
+
/**
|
|
2680
|
+
* Create the expert the expert creation suggestion `expertCreationSuggestionId` drafted (protocol
|
|
2681
|
+
* 0.15.0), as the person who confirmed it (`by`) set it on the floor, sent to the runner of the
|
|
2682
|
+
* computer they chose, one of their own, which checks `by` is its own person. The runner finds its
|
|
2683
|
+
* checkout of `project`, writes the expert file `key` with `subject`, `model`, `area` and `proof`, and
|
|
2684
|
+
* answers with `expert-creation-progress` under `request`. Nothing is queued: the server refuses at
|
|
2685
|
+
* once when that runner isn't linked.
|
|
2686
|
+
*/
|
|
2687
|
+
export declare const CreateExpertFromSuggestionMessageSchema: z.ZodObject<{
|
|
2688
|
+
type: z.ZodLiteral<"create-expert-from-suggestion">;
|
|
2689
|
+
v: z.ZodLiteral<1>;
|
|
2690
|
+
request: z.ZodString;
|
|
2691
|
+
expertCreationSuggestionId: z.ZodString;
|
|
2692
|
+
key: z.ZodString;
|
|
2693
|
+
subject: z.ZodString;
|
|
2694
|
+
model: z.ZodString;
|
|
2695
|
+
project: z.ZodObject<{
|
|
2696
|
+
id: z.ZodString;
|
|
2697
|
+
name: z.ZodString;
|
|
2698
|
+
}, z.core.$strip>;
|
|
2699
|
+
area: z.ZodArray<z.ZodString>;
|
|
2700
|
+
proof: z.ZodObject<{
|
|
2701
|
+
question: z.ZodString;
|
|
2702
|
+
answer: z.ZodString;
|
|
2703
|
+
}, z.core.$strip>;
|
|
2704
|
+
by: z.ZodObject<{
|
|
2705
|
+
id: z.ZodString;
|
|
2706
|
+
name: z.ZodString;
|
|
2707
|
+
}, z.core.$strip>;
|
|
2708
|
+
}, z.core.$strip>;
|
|
2709
|
+
/**
|
|
2710
|
+
* Draft an office-wide expert creation suggestion on `folder` of `project` (protocol 0.15.0), which
|
|
2711
|
+
* several sessions searched within the period: sent to the runner of the latest of them. `sessions`:
|
|
2712
|
+
* those on this runner's machine, newest first, whose work in the folder the draft is made from; the
|
|
2713
|
+
* first is the suggestion's `session`. The runner answers with `expert-creation-suggestion`, scope
|
|
2714
|
+
* `office`, whose `id` is `request`, or with `expert-creation-suggestion-ended` `no-draft`.
|
|
2715
|
+
* `searchedBySessions` and `searchWindowDays` let the runner say why it is office-wide.
|
|
2716
|
+
*/
|
|
2717
|
+
export declare const DraftOfficeWideExpertCreationSuggestionMessageSchema: z.ZodObject<{
|
|
2718
|
+
type: z.ZodLiteral<"draft-office-wide-expert-creation-suggestion">;
|
|
2719
|
+
v: z.ZodLiteral<1>;
|
|
2720
|
+
request: z.ZodString;
|
|
2721
|
+
project: z.ZodObject<{
|
|
2722
|
+
id: z.ZodString;
|
|
2723
|
+
name: z.ZodString;
|
|
2724
|
+
}, z.core.$strip>;
|
|
2725
|
+
folder: z.ZodString;
|
|
2726
|
+
sessions: z.ZodArray<z.ZodString>;
|
|
2727
|
+
searchedBySessions: z.ZodNumber;
|
|
2728
|
+
searchWindowDays: z.ZodNumber;
|
|
2729
|
+
}, z.core.$strip>;
|
|
2730
|
+
/**
|
|
2731
|
+
* The areas this runner's person dismissed (protocol 0.15.0), the whole list each time: sent to a
|
|
2732
|
+
* runner that said `canCreateExpertsFromSuggestions` once its hello is let in, even an empty one, and
|
|
2733
|
+
* whenever the list changes. The runner suggests no expert on an area it lists, and sends none of its
|
|
2734
|
+
* expert creation suggestion messages on a connection before the connection's first one (see
|
|
2735
|
+
* `expert-creation-suggestion`).
|
|
2736
|
+
*/
|
|
2737
|
+
export declare const ExpertCreationSuggestionDismissalsMessageSchema: z.ZodObject<{
|
|
2738
|
+
type: z.ZodLiteral<"expert-creation-suggestion-dismissals">;
|
|
2739
|
+
v: z.ZodLiteral<1>;
|
|
2740
|
+
dismissals: z.ZodArray<z.ZodObject<{
|
|
2741
|
+
project: z.ZodString;
|
|
2742
|
+
folder: z.ZodString;
|
|
2743
|
+
until: z.ZodOptional<z.ZodISODateTime>;
|
|
2744
|
+
forever: z.ZodOptional<z.ZodLiteral<true>>;
|
|
2745
|
+
}, z.core.$strip>>;
|
|
2746
|
+
}, z.core.$strip>;
|
|
2747
|
+
/**
|
|
2748
|
+
* How the expert creation suggestion `id` ended (protocol 0.15.0), sent to the runner that sent it:
|
|
2749
|
+
* `made`, once the expert `key` is created and ready (with the key the person set, which may differ
|
|
2750
|
+
* from the draft's), so the runner can tell the session that showed the need; `dismissed`, by a person
|
|
2751
|
+
* on the floor, and only that; `refused`, the office won't keep it (its repo isn't taken there, the
|
|
2752
|
+
* session is someone else's, it names an id the office didn't ask for, and the like); `expired`,
|
|
2753
|
+
* unopened or with no expert created for the period the server keeps expert creation suggestions.
|
|
2754
|
+
*/
|
|
2755
|
+
export declare const ServerExpertCreationSuggestionEndedMessageSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
2756
|
+
type: z.ZodLiteral<"expert-creation-suggestion-ended">;
|
|
2757
|
+
v: z.ZodLiteral<1>;
|
|
2758
|
+
id: z.ZodString;
|
|
2759
|
+
why: z.ZodLiteral<"made">;
|
|
2760
|
+
key: z.ZodString;
|
|
2761
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
2762
|
+
type: z.ZodLiteral<"expert-creation-suggestion-ended">;
|
|
2763
|
+
v: z.ZodLiteral<1>;
|
|
2764
|
+
id: z.ZodString;
|
|
2765
|
+
why: z.ZodEnum<{
|
|
2766
|
+
dismissed: "dismissed";
|
|
2767
|
+
expired: "expired";
|
|
2768
|
+
refused: "refused";
|
|
2769
|
+
}>;
|
|
2770
|
+
}, z.core.$strip>], "why">;
|
|
2434
2771
|
export declare const OfficeServerMessageSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
2435
2772
|
type: z.ZodLiteral<"repair">;
|
|
2436
2773
|
v: z.ZodLiteral<1>;
|
|
@@ -2592,7 +2929,6 @@ export declare const OfficeServerMessageSchema: z.ZodDiscriminatedUnion<[z.ZodOb
|
|
|
2592
2929
|
key: z.ZodOptional<z.ZodString>;
|
|
2593
2930
|
expert: z.ZodOptional<z.ZodString>;
|
|
2594
2931
|
code: z.ZodOptional<z.ZodEnum<{
|
|
2595
|
-
EXPERT_ANSWER_WITHHELD: "EXPERT_ANSWER_WITHHELD";
|
|
2596
2932
|
EXPERT_CAP: "EXPERT_CAP";
|
|
2597
2933
|
EXPERT_DROPPED: "EXPERT_DROPPED";
|
|
2598
2934
|
EXPERT_FORK_FAILED: "EXPERT_FORK_FAILED";
|
|
@@ -2643,6 +2979,7 @@ export declare const OfficeServerMessageSchema: z.ZodDiscriminatedUnion<[z.ZodOb
|
|
|
2643
2979
|
orca: "orca";
|
|
2644
2980
|
terminal: "terminal";
|
|
2645
2981
|
}>>;
|
|
2982
|
+
hidden: z.ZodOptional<z.ZodBoolean>;
|
|
2646
2983
|
}, z.core.$strip>, z.ZodObject<{
|
|
2647
2984
|
type: z.ZodLiteral<"drive">;
|
|
2648
2985
|
v: z.ZodLiteral<1>;
|
|
@@ -2757,7 +3094,65 @@ export declare const OfficeServerMessageSchema: z.ZodDiscriminatedUnion<[z.ZodOb
|
|
|
2757
3094
|
type: z.ZodLiteral<"hosting">;
|
|
2758
3095
|
v: z.ZodLiteral<1>;
|
|
2759
3096
|
listed: z.ZodArray<z.ZodString>;
|
|
2760
|
-
|
|
3097
|
+
expertSenior: z.ZodOptional<z.ZodLiteral<true>>;
|
|
3098
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
3099
|
+
type: z.ZodLiteral<"create-expert-from-suggestion">;
|
|
3100
|
+
v: z.ZodLiteral<1>;
|
|
3101
|
+
request: z.ZodString;
|
|
3102
|
+
expertCreationSuggestionId: z.ZodString;
|
|
3103
|
+
key: z.ZodString;
|
|
3104
|
+
subject: z.ZodString;
|
|
3105
|
+
model: z.ZodString;
|
|
3106
|
+
project: z.ZodObject<{
|
|
3107
|
+
id: z.ZodString;
|
|
3108
|
+
name: z.ZodString;
|
|
3109
|
+
}, z.core.$strip>;
|
|
3110
|
+
area: z.ZodArray<z.ZodString>;
|
|
3111
|
+
proof: z.ZodObject<{
|
|
3112
|
+
question: z.ZodString;
|
|
3113
|
+
answer: z.ZodString;
|
|
3114
|
+
}, z.core.$strip>;
|
|
3115
|
+
by: z.ZodObject<{
|
|
3116
|
+
id: z.ZodString;
|
|
3117
|
+
name: z.ZodString;
|
|
3118
|
+
}, z.core.$strip>;
|
|
3119
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
3120
|
+
type: z.ZodLiteral<"draft-office-wide-expert-creation-suggestion">;
|
|
3121
|
+
v: z.ZodLiteral<1>;
|
|
3122
|
+
request: z.ZodString;
|
|
3123
|
+
project: z.ZodObject<{
|
|
3124
|
+
id: z.ZodString;
|
|
3125
|
+
name: z.ZodString;
|
|
3126
|
+
}, z.core.$strip>;
|
|
3127
|
+
folder: z.ZodString;
|
|
3128
|
+
sessions: z.ZodArray<z.ZodString>;
|
|
3129
|
+
searchedBySessions: z.ZodNumber;
|
|
3130
|
+
searchWindowDays: z.ZodNumber;
|
|
3131
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
3132
|
+
type: z.ZodLiteral<"expert-creation-suggestion-dismissals">;
|
|
3133
|
+
v: z.ZodLiteral<1>;
|
|
3134
|
+
dismissals: z.ZodArray<z.ZodObject<{
|
|
3135
|
+
project: z.ZodString;
|
|
3136
|
+
folder: z.ZodString;
|
|
3137
|
+
until: z.ZodOptional<z.ZodISODateTime>;
|
|
3138
|
+
forever: z.ZodOptional<z.ZodLiteral<true>>;
|
|
3139
|
+
}, z.core.$strip>>;
|
|
3140
|
+
}, z.core.$strip>, z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
3141
|
+
type: z.ZodLiteral<"expert-creation-suggestion-ended">;
|
|
3142
|
+
v: z.ZodLiteral<1>;
|
|
3143
|
+
id: z.ZodString;
|
|
3144
|
+
why: z.ZodLiteral<"made">;
|
|
3145
|
+
key: z.ZodString;
|
|
3146
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
3147
|
+
type: z.ZodLiteral<"expert-creation-suggestion-ended">;
|
|
3148
|
+
v: z.ZodLiteral<1>;
|
|
3149
|
+
id: z.ZodString;
|
|
3150
|
+
why: z.ZodEnum<{
|
|
3151
|
+
dismissed: "dismissed";
|
|
3152
|
+
expired: "expired";
|
|
3153
|
+
refused: "refused";
|
|
3154
|
+
}>;
|
|
3155
|
+
}, z.core.$strip>], "why">], "type">;
|
|
2761
3156
|
export type HandoffRepo = z.infer<typeof HandoffRepoSchema>;
|
|
2762
3157
|
export type Handoff = z.infer<typeof HandoffSchema>;
|
|
2763
3158
|
export type HelloMessage = z.infer<typeof HelloMessageSchema>;
|
|
@@ -2811,6 +3206,16 @@ export type ExpertsMessage = z.infer<typeof ExpertsMessageSchema>;
|
|
|
2811
3206
|
export type AskExpertMessage = z.infer<typeof AskExpertMessageSchema>;
|
|
2812
3207
|
export type ExpertRightsMessage = z.infer<typeof ExpertRightsMessageSchema>;
|
|
2813
3208
|
export type HostingMessage = z.infer<typeof HostingMessageSchema>;
|
|
3209
|
+
export type ExpertSeniorMessage = z.infer<typeof ExpertSeniorMessageSchema>;
|
|
3210
|
+
export type ExpertCreationSuggestionMessage = z.infer<typeof ExpertCreationSuggestionMessageSchema>;
|
|
3211
|
+
export type RunnerExpertCreationSuggestionEndedMessage = z.infer<typeof RunnerExpertCreationSuggestionEndedMessageSchema>;
|
|
3212
|
+
export type ExpertCreationProgressState = z.infer<typeof ExpertCreationProgressStateSchema>;
|
|
3213
|
+
export type ExpertCreationProgressMessage = z.infer<typeof ExpertCreationProgressMessageSchema>;
|
|
3214
|
+
export type CreateExpertFromSuggestionMessage = z.infer<typeof CreateExpertFromSuggestionMessageSchema>;
|
|
3215
|
+
export type DraftOfficeWideExpertCreationSuggestionMessage = z.infer<typeof DraftOfficeWideExpertCreationSuggestionMessageSchema>;
|
|
3216
|
+
export type ExpertCreationSuggestionDismissalsMessage = z.infer<typeof ExpertCreationSuggestionDismissalsMessageSchema>;
|
|
3217
|
+
export type ExpertCreationSuggestionDismissal = ExpertCreationSuggestionDismissalsMessage["dismissals"][number];
|
|
3218
|
+
export type ServerExpertCreationSuggestionEndedMessage = z.infer<typeof ServerExpertCreationSuggestionEndedMessageSchema>;
|
|
2814
3219
|
/**
|
|
2815
3220
|
* The reasons the floor shows for a refused drive request: a runner's, and `offline`, the server's
|
|
2816
3221
|
* own, for a request it refused at once because the owner's runner isn't linked (nothing is queued).
|