@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/README.md
CHANGED
|
@@ -17,7 +17,9 @@ ES module only, with TypeScript types. Depends on zod 4.
|
|
|
17
17
|
- **Spin-offs** (0.10.0): a handoff may carry a `task` of its own, at most `MAX_TASK_LENGTH` characters, which makes it a spin-off: the brief is written for that task, and the new session starts on it. The task rides in the handoff (`hand-over` and `handoff`), in `hand-over-check`, and in the floor's `write-brief` request; a `write-brief` reply doesn't repeat it. An older side ignores it.
|
|
18
18
|
- **Questions as Claude Code asks them** (0.11.0): a question's options may carry a `preview`, and the floor's `owner-answer` request may carry `annotations`, keyed by question text: the owner's `notes` on each answer and the `preview` of the option chosen. A question fact may say `asMessage`: the hooks module didn't see it asked, so the plugin answers it by stopping the turn and submitting the answers as the owner's own message. A session fact says `hooks` when Isoplan's hooks module runs inside it. An older side ignores them. From 0.11.1 an `owner-answer` may say `chat` instead: the owner chose "Chat about this", and `answers` is empty.
|
|
19
19
|
- **Stop the reply, end and remove** (0.12.0): `drive` `interrupt` stops the reply in progress and keeps the session open; its turn ends `turn-ended` `stopped`, and with no turn running it does nothing. `stop` may say `remove: true`: the runner also forgets the session, never to open it again, and answers `released` with the new `why` `removed`, which it also sends when its person ends and removes the session on the machine itself. A runner from before 0.12.0 drops `interrupt` and ignores `remove`; a server from before it drops a `released` `removed`.
|
|
20
|
-
- **Experts** (0.13.0): read-only agents a machine's runner hosts, each grounded in one repo, which a session in an office that holds that repo may ask from any machine, through the server. A runner that hosts them says `experts` in its hello; the server answers it `hosting`, which experts of that runner it shows in at least one office, and the runner sends `experts`, its listing (name, project, subject and `state`: `starting`, `ready` or `failed`), only on a connection that has had a `hosting`, only while its link is up, and again when it changes. A session whose fact says `asksExperts` is sent `expert-rights`, the experts it may ask now. It asks with `ask-expert` (expert, question, `blocking`, and the tool call's id as `key`), polls with `ask-check` and acks the end with `asked-ack`, as for a room question; `asked` gains `expert`, an `EXPERT_*` `code`, and the `commit` and `branch` an answer describes. The server asks the host's runner with the `request` kind `answer-expert` (the question's own id as `questionId`, and the asking session as `asker`), which answers with the `reply` kind `answer-expert`, its citations in the answer, or refuses
|
|
20
|
+
- **Experts** (0.13.0): read-only agents a machine's runner hosts, each grounded in one repo, which a session in an office that holds that repo may ask from any machine, through the server. A runner that hosts them says `experts` in its hello; the server answers it `hosting`, which experts of that runner it shows in at least one office, and the runner sends `experts`, its listing (name, project, subject and `state`: `starting`, `ready` or `failed`), only on a connection that has had a `hosting`, only while its link is up, and again when it changes. A session whose fact says `asksExperts` is sent `expert-rights`, the experts it may ask now. It asks with `ask-expert` (expert, question, `blocking`, and the tool call's id as `key`), polls with `ask-check` and acks the end with `asked-ack`, as for a room question; `asked` gains `expert`, an `EXPERT_*` `code`, and the `commit` and `branch` an answer describes. The server asks the host's runner with the `request` kind `answer-expert` (the question's own id as `questionId`, and the asking session as `asker`), which answers with the `reply` kind `answer-expert`, its citations in the answer, or refuses `unavailable` with an `expert` reason (`EXPERT_CAP`, with the cap, its limit and when it frees, `EXPERT_FORK_FAILED` or `EXPERT_UNKNOWN`). Names, subjects, answers and lists are bounded by `MAX_EXPERTS`, `MAX_EXPERT_SUBJECT_LENGTH` and `MAX_EXPERT_ANSWER_LENGTH`. An older side meets none of it: a server from before 0.13.0 drops the hello's `experts` and never sends `hosting`, so its runners never send `experts`, and it refuses `ask-expert` rather than asking a room; a runner or session plugin from before it doesn't say `experts` or `asksExperts`, so it is sent no `hosting`, `answer-expert` or `expert-rights`; and the new `asked` and `unavailable` fields are optional.
|
|
21
|
+
- **Experts' seniors, and hidden starts** (0.14.0): an expert's listing may say `senior`, that it has a senior generation its junior can ask; an older server ignores it. A server that reads it says `expertSenior` on every `hosting`, and only then does the runner send `expert-senior`, under the `answer-expert` request's `id` and with no text, when the junior answering it first asks its senior. A drive start in a folder may say `hidden`, never with mode `orca`: the session works in a clone Isoplan keeps for itself (a worktree of it, with `branch`), so the person's other tools don't list its folder. A runner that can says `hiddenStarts` in its hello, and only such a runner is sent `hidden`; one from before 0.14.0 would drop it and start in the person's own checkout. `EXPERT_ANSWER_WITHHELD` is gone from the expert codes: an expert refuses a secret-matched answer at once, so no released runner ever led a server to send it. An `asked` carrying it no longer parses, and code that names it no longer compiles.
|
|
22
|
+
- **Expert creation suggestions** (0.15.0): Isoplan suggests creating an expert where a session would have been helped by one. A session's facts may carry `areas` (`AreaFactSchema`): per repo-relative folder, the files read and searches made in it, their results' estimated tokens, the time they took and the person's corrections there; counts only, never contents or search patterns. A runner that can says `canCreateExpertsFromSuggestions` in its hello; the server sends it `expert-creation-suggestion-dismissals`, its person's dismissed areas (until a time, or forever), once its hello is let in and whenever they change, and the runner sends no expert creation suggestion messages on a connection before the first, so a server from before 0.15.0 is never sent one. The runner sends `expert-creation-suggestion` (a draft: key, subject, area, proof question and answer, and why it is suggested), `expert-creation-suggestion-ended` (`withdrawn`, or `no-draft`) and `expert-creation-progress` (`cloning`, `grounding`, `proof`, `ready` or `failed`). The server sends `create-expert-from-suggestion`, what the person confirmed, to one of their own runners, `draft-office-wide-expert-creation-suggestion`, asking for an office-wide expert creation suggestion on a folder several sessions searched, and `expert-creation-suggestion-ended` (`made`, with the expert's key; `dismissed`, only by a person on the floor; `refused`, a suggestion the office won't keep, such as one for a repo it doesn't take or someone else's session; or `expired`). `isDismissed(dismissals, project, folder, now)` is the one rule both sides use for whether a dismissal holds: one for the same project whose folder is that folder or one it is in (`.` every folder), for good or until a time later than now, letter case ignored. An expert's listing may say `areas`, the folders and globs it covers; `areaCovers(areas, folder)` is the one rule both sides use for whether they cover a folder: an area whose part before its first wildcard part is that folder or one it is in, `.` every folder, letter case ignored. Area paths are `AreaPathSchema`: relative, with forward slashes, never outside the repo. `expertDisplayName(key)` is the name people read (`pairing-tokens` is "Pairing Tokens Expert").
|
|
21
23
|
- **`PROTOCOL_VERSION`**: the version both sides speak. A message's `v` must match it.
|
|
22
24
|
- **`projectId(remoteUrl, { machine, root })`**: a repository's project id, `host/owner/repo` from its git remote whatever form the remote is written in, or `local:<machine>/<root>` without one.
|
|
23
25
|
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Whether an expert's `areas` (AreaPathSchema: folders and globs) cover `folder`, relative to the
|
|
3
|
+
* same repo's root: one area's part before its first wildcard part (one with any of `* ? [ ] { }`)
|
|
4
|
+
* is the folder or a folder it is in. `.`, or an area that starts with a wildcard, covers every
|
|
5
|
+
* folder. Letter case is ignored, as Windows and macOS ignore it.
|
|
6
|
+
*/
|
|
7
|
+
export declare function areaCovers(areas: readonly string[], folder: string): boolean;
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Whether an expert's `areas` (AreaPathSchema: folders and globs) cover `folder`, relative to the
|
|
3
|
+
* same repo's root: one area's part before its first wildcard part (one with any of `* ? [ ] { }`)
|
|
4
|
+
* is the folder or a folder it is in. `.`, or an area that starts with a wildcard, covers every
|
|
5
|
+
* folder. Letter case is ignored, as Windows and macOS ignore it.
|
|
6
|
+
*/
|
|
7
|
+
export function areaCovers(areas, folder) {
|
|
8
|
+
const target = folder.toLowerCase();
|
|
9
|
+
return areas.some((area) => {
|
|
10
|
+
const parts = area.toLowerCase().split("/");
|
|
11
|
+
const wild = parts.findIndex((part) => /[*?[\]{}]/.test(part));
|
|
12
|
+
const base = (wild < 0 ? parts : parts.slice(0, wild)).join("/") || ".";
|
|
13
|
+
return base === "." || target === base || target.startsWith(base + "/");
|
|
14
|
+
});
|
|
15
|
+
}
|
|
16
|
+
//# sourceMappingURL=area-covers.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"area-covers.js","sourceRoot":"","sources":["../src/area-covers.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AACH,MAAM,UAAU,UAAU,CAAC,KAAwB,EAAE,MAAc;IACjE,MAAM,MAAM,GAAG,MAAM,CAAC,WAAW,EAAE,CAAC;IACpC,OAAO,KAAK,CAAC,IAAI,CAAC,CAAC,IAAI,EAAE,EAAE;QACzB,MAAM,KAAK,GAAG,IAAI,CAAC,WAAW,EAAE,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC;QAC5C,MAAM,IAAI,GAAG,KAAK,CAAC,SAAS,CAAC,CAAC,IAAI,EAAE,EAAE,CAAC,WAAW,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,CAAC;QAC/D,MAAM,IAAI,GAAG,CAAC,IAAI,GAAG,CAAC,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,KAAK,CAAC,CAAC,EAAE,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,GAAG,CAAC,IAAI,GAAG,CAAC;QACxE,OAAO,IAAI,KAAK,GAAG,IAAI,MAAM,KAAK,IAAI,IAAI,MAAM,CAAC,UAAU,CAAC,IAAI,GAAG,GAAG,CAAC,CAAC;IAC1E,CAAC,CAAC,CAAC;AACL,CAAC"}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import type { ExpertCreationSuggestionDismissal } from "./messages.js";
|
|
2
|
+
/**
|
|
3
|
+
* Whether `list` holds a dismissal of `folder` (relative to the repo's root) of `project` at `now`
|
|
4
|
+
* (ms since the epoch): one for the same project, its folder that folder or one it is in (`.` every
|
|
5
|
+
* folder), and for good or `until` a time later than now. Letter case is ignored, as in `areaCovers`.
|
|
6
|
+
*/
|
|
7
|
+
export declare function isDismissed(list: readonly ExpertCreationSuggestionDismissal[], project: string, folder: string, now: number): boolean;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Whether `list` holds a dismissal of `folder` (relative to the repo's root) of `project` at `now`
|
|
3
|
+
* (ms since the epoch): one for the same project, its folder that folder or one it is in (`.` every
|
|
4
|
+
* folder), and for good or `until` a time later than now. Letter case is ignored, as in `areaCovers`.
|
|
5
|
+
*/
|
|
6
|
+
export function isDismissed(list, project, folder, now) {
|
|
7
|
+
const target = folder.toLowerCase();
|
|
8
|
+
return list.some((d) => {
|
|
9
|
+
const base = d.folder.toLowerCase();
|
|
10
|
+
return (d.project.toLowerCase() === project.toLowerCase() &&
|
|
11
|
+
(base === "." || target === base || target.startsWith(base + "/")) &&
|
|
12
|
+
(d.forever === true || Date.parse(d.until ?? "") > now));
|
|
13
|
+
});
|
|
14
|
+
}
|
|
15
|
+
//# sourceMappingURL=dismissals.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"dismissals.js","sourceRoot":"","sources":["../src/dismissals.ts"],"names":[],"mappings":"AAEA;;;;GAIG;AACH,MAAM,UAAU,WAAW,CAAC,IAAkD,EAAE,OAAe,EAAE,MAAc,EAAE,GAAW;IAC1H,MAAM,MAAM,GAAG,MAAM,CAAC,WAAW,EAAE,CAAC;IACpC,OAAO,IAAI,CAAC,IAAI,CAAC,CAAC,CAAC,EAAE,EAAE;QACrB,MAAM,IAAI,GAAG,CAAC,CAAC,MAAM,CAAC,WAAW,EAAE,CAAC;QACpC,OAAO,CACL,CAAC,CAAC,OAAO,CAAC,WAAW,EAAE,KAAK,OAAO,CAAC,WAAW,EAAE;YACjD,CAAC,IAAI,KAAK,GAAG,IAAI,MAAM,KAAK,IAAI,IAAI,MAAM,CAAC,UAAU,CAAC,IAAI,GAAG,GAAG,CAAC,CAAC;YAClE,CAAC,CAAC,CAAC,OAAO,KAAK,IAAI,IAAI,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,KAAK,IAAI,EAAE,CAAC,GAAG,GAAG,CAAC,CACxD,CAAC;IACJ,CAAC,CAAC,CAAC;AACL,CAAC"}
|
package/dist/facts.d.ts
CHANGED
|
@@ -168,6 +168,39 @@ export declare const FileFactSchema: z.ZodObject<{
|
|
|
168
168
|
at: z.ZodISODateTime;
|
|
169
169
|
extra: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
170
170
|
}, z.core.$strip>;
|
|
171
|
+
/** The longest folder or glob an area names (protocol 0.15.0). */
|
|
172
|
+
export declare const MAX_AREA_PATH_LENGTH = 1000;
|
|
173
|
+
/**
|
|
174
|
+
* A folder or a glob in a repo (protocol 0.15.0), relative to the repo's root, with forward slashes:
|
|
175
|
+
* `.` for the root itself, or named parts (`packages/server`, `docs/adr/*.md`) with no empty, `.` or
|
|
176
|
+
* `..` part, no `\` and no `:`. An expert's area is written into its file on another machine, so a
|
|
177
|
+
* path can never point outside the repo.
|
|
178
|
+
*/
|
|
179
|
+
export declare const AreaPathSchema: z.ZodString;
|
|
180
|
+
/**
|
|
181
|
+
* How much a session's agents worked in one folder of a repo (protocol 0.15.0), so the server can
|
|
182
|
+
* suggest creating an expert on it (isoplan-app ADR 0013). Counts only: never file contents, search patterns or
|
|
183
|
+
* results. `folder` is relative to its repo's root (AreaPathSchema). `reads`: files read in it;
|
|
184
|
+
* `searches`: searches in it (Grep, Glob and the like); `tokens`: what their results took, estimated
|
|
185
|
+
* as characters / 4; `ms`: the time from those calls to their results; `corrections`: the person's
|
|
186
|
+
* corrections while the agent worked there (an interrupt, a turned-down tool call, or a message
|
|
187
|
+
* telling it it was wrong). A subagent's calls count to its session's areas. The counts only grow
|
|
188
|
+
* while the session lasts, so each one sent replaces the last. One is known by its folder and
|
|
189
|
+
* project, as a file fact is, and it is sent under the same rules (Elsewhere).
|
|
190
|
+
*/
|
|
191
|
+
export declare const AreaFactSchema: z.ZodObject<{
|
|
192
|
+
project: z.ZodOptional<z.ZodObject<{
|
|
193
|
+
id: z.ZodString;
|
|
194
|
+
name: z.ZodString;
|
|
195
|
+
}, z.core.$strip>>;
|
|
196
|
+
away: z.ZodOptional<z.ZodBoolean>;
|
|
197
|
+
folder: z.ZodString;
|
|
198
|
+
reads: z.ZodNumber;
|
|
199
|
+
searches: z.ZodNumber;
|
|
200
|
+
tokens: z.ZodNumber;
|
|
201
|
+
ms: z.ZodNumber;
|
|
202
|
+
corrections: z.ZodNumber;
|
|
203
|
+
}, z.core.$strip>;
|
|
171
204
|
export declare const WaitFactSchema: z.ZodObject<{
|
|
172
205
|
waiter: z.ZodString;
|
|
173
206
|
on: z.ZodString;
|
|
@@ -401,6 +434,19 @@ export declare const FactsSchema: z.ZodObject<{
|
|
|
401
434
|
moreAgents: z.ZodOptional<z.ZodNumber>;
|
|
402
435
|
extra: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
403
436
|
}, z.core.$strip>>>;
|
|
437
|
+
areas: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
438
|
+
project: z.ZodOptional<z.ZodObject<{
|
|
439
|
+
id: z.ZodString;
|
|
440
|
+
name: z.ZodString;
|
|
441
|
+
}, z.core.$strip>>;
|
|
442
|
+
away: z.ZodOptional<z.ZodBoolean>;
|
|
443
|
+
folder: z.ZodString;
|
|
444
|
+
reads: z.ZodNumber;
|
|
445
|
+
searches: z.ZodNumber;
|
|
446
|
+
tokens: z.ZodNumber;
|
|
447
|
+
ms: z.ZodNumber;
|
|
448
|
+
corrections: z.ZodNumber;
|
|
449
|
+
}, z.core.$strip>>>;
|
|
404
450
|
}, z.core.$strip>;
|
|
405
451
|
/** The records that changed, each replacing the one with the same key. */
|
|
406
452
|
export declare const FactUpsertSchema: z.ZodObject<{
|
|
@@ -583,6 +629,19 @@ export declare const FactUpsertSchema: z.ZodObject<{
|
|
|
583
629
|
moreAgents: z.ZodOptional<z.ZodNumber>;
|
|
584
630
|
extra: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
585
631
|
}, z.core.$strip>>>;
|
|
632
|
+
areas: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
633
|
+
project: z.ZodOptional<z.ZodObject<{
|
|
634
|
+
id: z.ZodString;
|
|
635
|
+
name: z.ZodString;
|
|
636
|
+
}, z.core.$strip>>;
|
|
637
|
+
away: z.ZodOptional<z.ZodBoolean>;
|
|
638
|
+
folder: z.ZodString;
|
|
639
|
+
reads: z.ZodNumber;
|
|
640
|
+
searches: z.ZodNumber;
|
|
641
|
+
tokens: z.ZodNumber;
|
|
642
|
+
ms: z.ZodNumber;
|
|
643
|
+
corrections: z.ZodNumber;
|
|
644
|
+
}, z.core.$strip>>>;
|
|
586
645
|
}, z.core.$strip>;
|
|
587
646
|
/**
|
|
588
647
|
* The keys of records that went away: an agent by its id, an edit or read by agent, file and
|
|
@@ -591,6 +650,7 @@ export declare const FactUpsertSchema: z.ZodObject<{
|
|
|
591
650
|
* the connection. `questionOutcomes`: how each question in `questions` ended, by its id: `answered`,
|
|
592
651
|
* in the terminal or from the floor, or `abandoned`, with no answer (interrupted, or a new prompt
|
|
593
652
|
* came first). Absent, or without a question's id, from a peer that doesn't say (protocol 0.3.5 on).
|
|
653
|
+
* An area is never removed: it goes with its session.
|
|
594
654
|
*/
|
|
595
655
|
export declare const FactRemoveSchema: z.ZodObject<{
|
|
596
656
|
agents: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
@@ -627,6 +687,7 @@ export type Project = z.infer<typeof ProjectSchema>;
|
|
|
627
687
|
export type SessionFact = z.infer<typeof SessionFactSchema>;
|
|
628
688
|
export type AgentFact = z.infer<typeof AgentFactSchema>;
|
|
629
689
|
export type FileFact = z.infer<typeof FileFactSchema>;
|
|
690
|
+
export type AreaFact = z.infer<typeof AreaFactSchema>;
|
|
630
691
|
export type WaitFact = z.infer<typeof WaitFactSchema>;
|
|
631
692
|
export type ReportFact = z.infer<typeof ReportFactSchema>;
|
|
632
693
|
export type QuestionFact = z.infer<typeof QuestionFactSchema>;
|
package/dist/facts.js
CHANGED
|
@@ -152,6 +152,42 @@ export const FileFactSchema = z.object({
|
|
|
152
152
|
...Elsewhere,
|
|
153
153
|
extra: Extra,
|
|
154
154
|
});
|
|
155
|
+
/** The longest folder or glob an area names (protocol 0.15.0). */
|
|
156
|
+
export const MAX_AREA_PATH_LENGTH = 1000;
|
|
157
|
+
/**
|
|
158
|
+
* A folder or a glob in a repo (protocol 0.15.0), relative to the repo's root, with forward slashes:
|
|
159
|
+
* `.` for the root itself, or named parts (`packages/server`, `docs/adr/*.md`) with no empty, `.` or
|
|
160
|
+
* `..` part, no `\` and no `:`. An expert's area is written into its file on another machine, so a
|
|
161
|
+
* path can never point outside the repo.
|
|
162
|
+
*/
|
|
163
|
+
export const AreaPathSchema = z
|
|
164
|
+
.string()
|
|
165
|
+
.min(1)
|
|
166
|
+
.max(MAX_AREA_PATH_LENGTH)
|
|
167
|
+
.refine((path) => !path.includes("\\"), "forward slashes, never `\\`")
|
|
168
|
+
.refine((path) => !path.includes(":"), "a path with no `:`, which Windows reads as a drive or a file's stream")
|
|
169
|
+
.refine((path) => path === "." || !path.split("/").some((part) => part === "" || part === "." || part === ".."), "`.` itself, or a relative path of named parts, with no empty, `.` or `..` part");
|
|
170
|
+
const Count = z.number().int().nonnegative();
|
|
171
|
+
/**
|
|
172
|
+
* How much a session's agents worked in one folder of a repo (protocol 0.15.0), so the server can
|
|
173
|
+
* suggest creating an expert on it (isoplan-app ADR 0013). Counts only: never file contents, search patterns or
|
|
174
|
+
* results. `folder` is relative to its repo's root (AreaPathSchema). `reads`: files read in it;
|
|
175
|
+
* `searches`: searches in it (Grep, Glob and the like); `tokens`: what their results took, estimated
|
|
176
|
+
* as characters / 4; `ms`: the time from those calls to their results; `corrections`: the person's
|
|
177
|
+
* corrections while the agent worked there (an interrupt, a turned-down tool call, or a message
|
|
178
|
+
* telling it it was wrong). A subagent's calls count to its session's areas. The counts only grow
|
|
179
|
+
* while the session lasts, so each one sent replaces the last. One is known by its folder and
|
|
180
|
+
* project, as a file fact is, and it is sent under the same rules (Elsewhere).
|
|
181
|
+
*/
|
|
182
|
+
export const AreaFactSchema = z.object({
|
|
183
|
+
folder: AreaPathSchema,
|
|
184
|
+
reads: Count,
|
|
185
|
+
searches: Count,
|
|
186
|
+
tokens: TokenCount,
|
|
187
|
+
ms: Count,
|
|
188
|
+
corrections: Count,
|
|
189
|
+
...Elsewhere,
|
|
190
|
+
});
|
|
155
191
|
export const WaitFactSchema = z.object({
|
|
156
192
|
waiter: z.string().min(1),
|
|
157
193
|
on: z.string().min(1),
|
|
@@ -212,6 +248,8 @@ export const FactsSchema = z.object({
|
|
|
212
248
|
questions: z.array(QuestionFactSchema).optional(),
|
|
213
249
|
/** Absent from a data layer that doesn't report workflows, which is the same as none. */
|
|
214
250
|
workflows: z.array(WorkflowFactSchema).optional(),
|
|
251
|
+
/** Absent from a data layer that doesn't report areas, which is the same as none. */
|
|
252
|
+
areas: z.array(AreaFactSchema).optional(),
|
|
215
253
|
});
|
|
216
254
|
/** The records that changed, each replacing the one with the same key. */
|
|
217
255
|
export const FactUpsertSchema = z.object({
|
|
@@ -223,6 +261,7 @@ export const FactUpsertSchema = z.object({
|
|
|
223
261
|
reports: z.array(ReportFactSchema).optional(),
|
|
224
262
|
questions: z.array(QuestionFactSchema).optional(),
|
|
225
263
|
workflows: z.array(WorkflowFactSchema).optional(),
|
|
264
|
+
areas: z.array(AreaFactSchema).optional(),
|
|
226
265
|
});
|
|
227
266
|
const FileKey = FileFactSchema.pick({ agent: true, file: true, project: true });
|
|
228
267
|
/**
|
|
@@ -232,6 +271,7 @@ const FileKey = FileFactSchema.pick({ agent: true, file: true, project: true });
|
|
|
232
271
|
* the connection. `questionOutcomes`: how each question in `questions` ended, by its id: `answered`,
|
|
233
272
|
* in the terminal or from the floor, or `abandoned`, with no answer (interrupted, or a new prompt
|
|
234
273
|
* came first). Absent, or without a question's id, from a peer that doesn't say (protocol 0.3.5 on).
|
|
274
|
+
* An area is never removed: it goes with its session.
|
|
235
275
|
*/
|
|
236
276
|
export const FactRemoveSchema = z.object({
|
|
237
277
|
agents: z.array(z.string().min(1)).optional(),
|
package/dist/facts.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"facts.js","sourceRoot":"","sources":["../src/facts.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,kGAAkG;AAClG,0FAA0F;AAE1F,qCAAqC;AACrC,MAAM,IAAI,GAAG,CAAC,CAAC,GAAG,CAAC,QAAQ,CAAC,EAAE,MAAM,EAAE,IAAI,EAAE,CAAC,CAAC;AAE9C,qDAAqD;AACrD,MAAM,KAAK,GAAG,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,MAAM,EAAE,EAAE,CAAC,CAAC,OAAO,EAAE,CAAC,CAAC,QAAQ,EAAE,CAAC;AAE3D,MAAM,CAAC,MAAM,YAAY,GAAG,CAAC,CAAC,IAAI,CAAC,CAAC,aAAa,CAAC,CAAC,CAAC;AAEpD,kFAAkF;AAClF,MAAM,CAAC,MAAM,aAAa,GAAG,CAAC,CAAC,MAAM,CAAC;IACpC,EAAE,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC;IACrB,IAAI,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC;CACxB,CAAC,CAAC;AAEH;;;;;;;GAOG;AACH,MAAM,SAAS,GAAG;IAChB,OAAO,EAAE,aAAa,CAAC,QAAQ,EAAE;IACjC,IAAI,EAAE,CAAC,CAAC,OAAO,EAAE,CAAC,QAAQ,EAAE;CAC7B,CAAC;AAEF,MAAM,CAAC,MAAM,iBAAiB,GAAG,CAAC,CAAC,MAAM,CAAC;IACxC,EAAE,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,CAAC,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CAAC,CAAC,KAAK,CAAC,OAAO,CAAC,CAAC,QAAQ,EAAE;IAClC,KAAK,EAAE,CAAC,CAAC,KAAK,CAAC,cAAc,CAAC,IAAI,CAAC,EAAE,MAAM,EAAE,IAAI,EAAE,EAAE,EAAE,IAAI,EAAE,CAAC,CAAC,CAAC,QAAQ,EAAE;IAC1E,OAAO,EAAE,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,CAAC,QAAQ,EAAE;IAC9C,SAAS,EAAE,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,CAAC,QAAQ,EAAE;IAChD,gBAAgB,EAAE,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,IAAI,CAAC,CAAC,UAAU,EAAE,WAAW,CAAC,CAAC,CAAC,CAAC,QAAQ,EAAE;IAC3F,SAAS,EAAE,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,CAAC,QAAQ,EAAE;CACjD,CAAC,CAAC"}
|
package/dist/index.d.ts
CHANGED
package/dist/index.js
CHANGED
package/dist/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,YAAY,CAAC;AAC3B,cAAc,eAAe,CAAC;AAC9B,cAAc,iBAAiB,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,kBAAkB,CAAC;AACjC,cAAc,iBAAiB,CAAC;AAChC,cAAc,YAAY,CAAC;AAC3B,cAAc,eAAe,CAAC;AAC9B,cAAc,iBAAiB,CAAC"}
|