@isoplan/protocol 0.14.0 → 0.15.1
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 +2 -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 +73 -0
- package/dist/facts.js +50 -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 +378 -2
- package/dist/messages.js +224 -5
- package/dist/messages.js.map +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -10,7 +10,7 @@ ES module only, with TypeScript types. Depends on zod 4.
|
|
|
10
10
|
|
|
11
11
|
## What is in it
|
|
12
12
|
|
|
13
|
-
- **Facts** (`FactsSchema` and its parts: `SessionFactSchema`, `AgentFactSchema`, `FileFactSchema`, `WaitFactSchema`, `ReportFactSchema`, `QuestionFactSchema`, `WorkflowFactSchema`): what one session reports, the shape a data layer sends and a server stores. A Claude Code workflow run is a `WorkflowFact`, and each of its agents an `AgentFact` whose `workflow` names the run, its phase and its label; their text is bounded by exported `MAX_WORKFLOW_*` constants.
|
|
13
|
+
- **Facts** (`FactsSchema` and its parts: `SessionFactSchema`, `AgentFactSchema`, `FileFactSchema`, `WaitFactSchema`, `ReportFactSchema`, `QuestionFactSchema`, `WorkflowFactSchema`): what one session reports, the shape a data layer sends and a server stores. A Claude Code workflow run is a `WorkflowFact`, and each of its agents an `AgentFact` whose `workflow` names the run, its phase and its label; their text is bounded by exported `MAX_WORKFLOW_*` constants. From 0.15.1 a data layer keeps a report's text within `MAX_REPORT_LENGTH`: it keeps the start of a longer one, cuts it to fit, ends it in "…" and marks it `cut`. An older data layer sends the whole report, so a longer text still parses, and an older side ignores `cut`.
|
|
14
14
|
- **Messages**: `DataLayerMessageSchema` for what a data layer or runner sends (hellos, full facts, changes, replies, refusals, and the hand-over, take and taken steps of a handoff, and ask-room, ask-check and asked-ack for asking a handed-over room a question), and `OfficeServerMessageSchema` for what a server sends back (repair, conflict, error, request, release, handoff, asked, where a question stands, and ask-rights, whether a session may ask). Each message type has its own schema and type as well, such as `HelloMessage` or `RequestMessage`.
|
|
15
15
|
- **Driven sessions** (0.5.0): a session the runner runs on its person's machine, which they drive from the floor. The server sends `drive` (start, instruct, stop, hand-back, output, answer a permission prompt, release withheld text), each naming who acts, and `drive-policy`, where skipping permission prompts is allowed. The runner sends `driven` (started, turn-started, tool, reply, turn-ended, error, output, prompt, prompt-ended, held, released, handed-back, refused, holding, its sessions, once per connection, and folders, where a new session can start for each repo the office takes, with that and whenever it changes), only while its link is up, and only once the connection's first `drive-policy` has come, so a server from before driven sessions, which sends none, is never sent one. A start names a room, or a folder from the runner's last `folders` and no room, for a fresh session in a room of its own (`room:<session>`). From 0.9.0 a runner lists each repo once, by its main checkout, with `branches`, the branches on its remote (absent from an older runner, or one that couldn't reach the remote), and sends `folders` unasked every few minutes when they changed; a start in a folder may name one of those as `branch`, which opens in a git worktree of it beside the checkout unless the checkout is on it already. From 0.10.0 such a start may say where it opens, `mode`, as a take does (`terminal`, `headless`, `orca`, `desktop`, or `driven`, the default), with its first instruction; a runner says the places it can open in its hello's `starts`, and is sent a `mode` only then, and answers a start that opened elsewhere `opened`. A runner that drives sessions says `drive` in its hello, and can take a handoff as one (mode `driven`). Their text, ids, rooms, tool names, a start's room sessions, the `holding` list and the folders listed are bounded by exported `MAX_*` constants, which a runner keeps its messages within; the acting person (`by`) and project ids aren't bounded, as they aren't anywhere else in the protocol.
|
|
16
16
|
- **Claude Code on the machine** (0.7.0): a runner's hello says `claude`, whether Claude Code for the terminal is there and signed in (`ready`, `signed-out`, `missing`), and `driven` `claude` says it again whenever it changes. The server can send such a runner `install-claude`, which runs Anthropic's native installer with no window, and `sign-in-claude`, which runs `claude auth login`; the runner answers each with `claude` messages under the request's id, with the installer's progress, the sign-in link, or why it failed.
|
|
@@ -19,6 +19,7 @@ ES module only, with TypeScript types. Depends on zod 4.
|
|
|
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
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
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").
|
|
22
23
|
- **`PROTOCOL_VERSION`**: the version both sides speak. A message's `v` must match it.
|
|
23
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.
|
|
24
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,21 +168,64 @@ 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;
|
|
174
207
|
since: z.ZodISODateTime;
|
|
175
208
|
extra: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
176
209
|
}, z.core.$strip>;
|
|
210
|
+
/**
|
|
211
|
+
* The longest report text a data layer sends (protocol 0.15.1). It is MAX_REPLY_LENGTH, because
|
|
212
|
+
* the floor's session view shows a lead's report as its latest reply, beside its driven turns' replies.
|
|
213
|
+
*/
|
|
214
|
+
export declare const MAX_REPORT_LENGTH = 20000;
|
|
177
215
|
/**
|
|
178
216
|
* An agent's final report. One the secret scan matched, and its owner hasn't released, is
|
|
179
217
|
* `withheld`: its `text` then only says so, and the report follows once the owner releases it by
|
|
180
218
|
* `withheld.id`, a random id for this one text. A newer report of the same agent gets a new id.
|
|
219
|
+
* `cut` (protocol 0.15.1 on): the text was longer than MAX_REPORT_LENGTH, so the data layer kept
|
|
220
|
+
* its start, cut it to fit and ended it in "…", before the secret scan. A longer `text` still
|
|
221
|
+
* parses, because a data layer before 0.15.1 sends the whole report, and a server refuses a facts
|
|
222
|
+
* message that doesn't parse.
|
|
181
223
|
*/
|
|
182
224
|
export declare const ReportFactSchema: z.ZodObject<{
|
|
183
225
|
agent: z.ZodString;
|
|
184
226
|
at: z.ZodISODateTime;
|
|
185
227
|
text: z.ZodString;
|
|
228
|
+
cut: z.ZodOptional<z.ZodLiteral<true>>;
|
|
186
229
|
withheld: z.ZodOptional<z.ZodObject<{
|
|
187
230
|
id: z.ZodString;
|
|
188
231
|
}, z.core.$strip>>;
|
|
@@ -351,6 +394,7 @@ export declare const FactsSchema: z.ZodObject<{
|
|
|
351
394
|
agent: z.ZodString;
|
|
352
395
|
at: z.ZodISODateTime;
|
|
353
396
|
text: z.ZodString;
|
|
397
|
+
cut: z.ZodOptional<z.ZodLiteral<true>>;
|
|
354
398
|
withheld: z.ZodOptional<z.ZodObject<{
|
|
355
399
|
id: z.ZodString;
|
|
356
400
|
}, z.core.$strip>>;
|
|
@@ -401,6 +445,19 @@ export declare const FactsSchema: z.ZodObject<{
|
|
|
401
445
|
moreAgents: z.ZodOptional<z.ZodNumber>;
|
|
402
446
|
extra: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
403
447
|
}, z.core.$strip>>>;
|
|
448
|
+
areas: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
449
|
+
project: z.ZodOptional<z.ZodObject<{
|
|
450
|
+
id: z.ZodString;
|
|
451
|
+
name: z.ZodString;
|
|
452
|
+
}, z.core.$strip>>;
|
|
453
|
+
away: z.ZodOptional<z.ZodBoolean>;
|
|
454
|
+
folder: z.ZodString;
|
|
455
|
+
reads: z.ZodNumber;
|
|
456
|
+
searches: z.ZodNumber;
|
|
457
|
+
tokens: z.ZodNumber;
|
|
458
|
+
ms: z.ZodNumber;
|
|
459
|
+
corrections: z.ZodNumber;
|
|
460
|
+
}, z.core.$strip>>>;
|
|
404
461
|
}, z.core.$strip>;
|
|
405
462
|
/** The records that changed, each replacing the one with the same key. */
|
|
406
463
|
export declare const FactUpsertSchema: z.ZodObject<{
|
|
@@ -533,6 +590,7 @@ export declare const FactUpsertSchema: z.ZodObject<{
|
|
|
533
590
|
agent: z.ZodString;
|
|
534
591
|
at: z.ZodISODateTime;
|
|
535
592
|
text: z.ZodString;
|
|
593
|
+
cut: z.ZodOptional<z.ZodLiteral<true>>;
|
|
536
594
|
withheld: z.ZodOptional<z.ZodObject<{
|
|
537
595
|
id: z.ZodString;
|
|
538
596
|
}, z.core.$strip>>;
|
|
@@ -583,6 +641,19 @@ export declare const FactUpsertSchema: z.ZodObject<{
|
|
|
583
641
|
moreAgents: z.ZodOptional<z.ZodNumber>;
|
|
584
642
|
extra: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
585
643
|
}, z.core.$strip>>>;
|
|
644
|
+
areas: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
645
|
+
project: z.ZodOptional<z.ZodObject<{
|
|
646
|
+
id: z.ZodString;
|
|
647
|
+
name: z.ZodString;
|
|
648
|
+
}, z.core.$strip>>;
|
|
649
|
+
away: z.ZodOptional<z.ZodBoolean>;
|
|
650
|
+
folder: z.ZodString;
|
|
651
|
+
reads: z.ZodNumber;
|
|
652
|
+
searches: z.ZodNumber;
|
|
653
|
+
tokens: z.ZodNumber;
|
|
654
|
+
ms: z.ZodNumber;
|
|
655
|
+
corrections: z.ZodNumber;
|
|
656
|
+
}, z.core.$strip>>>;
|
|
586
657
|
}, z.core.$strip>;
|
|
587
658
|
/**
|
|
588
659
|
* The keys of records that went away: an agent by its id, an edit or read by agent, file and
|
|
@@ -591,6 +662,7 @@ export declare const FactUpsertSchema: z.ZodObject<{
|
|
|
591
662
|
* the connection. `questionOutcomes`: how each question in `questions` ended, by its id: `answered`,
|
|
592
663
|
* in the terminal or from the floor, or `abandoned`, with no answer (interrupted, or a new prompt
|
|
593
664
|
* came first). Absent, or without a question's id, from a peer that doesn't say (protocol 0.3.5 on).
|
|
665
|
+
* An area is never removed: it goes with its session.
|
|
594
666
|
*/
|
|
595
667
|
export declare const FactRemoveSchema: z.ZodObject<{
|
|
596
668
|
agents: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
@@ -627,6 +699,7 @@ export type Project = z.infer<typeof ProjectSchema>;
|
|
|
627
699
|
export type SessionFact = z.infer<typeof SessionFactSchema>;
|
|
628
700
|
export type AgentFact = z.infer<typeof AgentFactSchema>;
|
|
629
701
|
export type FileFact = z.infer<typeof FileFactSchema>;
|
|
702
|
+
export type AreaFact = z.infer<typeof AreaFactSchema>;
|
|
630
703
|
export type WaitFact = z.infer<typeof WaitFactSchema>;
|
|
631
704
|
export type ReportFact = z.infer<typeof ReportFactSchema>;
|
|
632
705
|
export type QuestionFact = z.infer<typeof QuestionFactSchema>;
|
package/dist/facts.js
CHANGED
|
@@ -152,21 +152,67 @@ 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),
|
|
158
194
|
since: Time,
|
|
159
195
|
extra: Extra,
|
|
160
196
|
});
|
|
197
|
+
/**
|
|
198
|
+
* The longest report text a data layer sends (protocol 0.15.1). It is MAX_REPLY_LENGTH, because
|
|
199
|
+
* the floor's session view shows a lead's report as its latest reply, beside its driven turns' replies.
|
|
200
|
+
*/
|
|
201
|
+
export const MAX_REPORT_LENGTH = 20000;
|
|
161
202
|
/**
|
|
162
203
|
* An agent's final report. One the secret scan matched, and its owner hasn't released, is
|
|
163
204
|
* `withheld`: its `text` then only says so, and the report follows once the owner releases it by
|
|
164
205
|
* `withheld.id`, a random id for this one text. A newer report of the same agent gets a new id.
|
|
206
|
+
* `cut` (protocol 0.15.1 on): the text was longer than MAX_REPORT_LENGTH, so the data layer kept
|
|
207
|
+
* its start, cut it to fit and ended it in "…", before the secret scan. A longer `text` still
|
|
208
|
+
* parses, because a data layer before 0.15.1 sends the whole report, and a server refuses a facts
|
|
209
|
+
* message that doesn't parse.
|
|
165
210
|
*/
|
|
166
211
|
export const ReportFactSchema = z.object({
|
|
167
212
|
agent: z.string().min(1),
|
|
168
213
|
at: Time,
|
|
169
214
|
text: z.string(),
|
|
215
|
+
cut: z.literal(true).optional(),
|
|
170
216
|
withheld: z.object({ id: z.string().min(1) }).optional(),
|
|
171
217
|
extra: Extra,
|
|
172
218
|
});
|
|
@@ -212,6 +258,8 @@ export const FactsSchema = z.object({
|
|
|
212
258
|
questions: z.array(QuestionFactSchema).optional(),
|
|
213
259
|
/** Absent from a data layer that doesn't report workflows, which is the same as none. */
|
|
214
260
|
workflows: z.array(WorkflowFactSchema).optional(),
|
|
261
|
+
/** Absent from a data layer that doesn't report areas, which is the same as none. */
|
|
262
|
+
areas: z.array(AreaFactSchema).optional(),
|
|
215
263
|
});
|
|
216
264
|
/** The records that changed, each replacing the one with the same key. */
|
|
217
265
|
export const FactUpsertSchema = z.object({
|
|
@@ -223,6 +271,7 @@ export const FactUpsertSchema = z.object({
|
|
|
223
271
|
reports: z.array(ReportFactSchema).optional(),
|
|
224
272
|
questions: z.array(QuestionFactSchema).optional(),
|
|
225
273
|
workflows: z.array(WorkflowFactSchema).optional(),
|
|
274
|
+
areas: z.array(AreaFactSchema).optional(),
|
|
226
275
|
});
|
|
227
276
|
const FileKey = FileFactSchema.pick({ agent: true, file: true, project: true });
|
|
228
277
|
/**
|
|
@@ -232,6 +281,7 @@ const FileKey = FileFactSchema.pick({ agent: true, file: true, project: true });
|
|
|
232
281
|
* the connection. `questionOutcomes`: how each question in `questions` ended, by its id: `answered`,
|
|
233
282
|
* in the terminal or from the floor, or `abandoned`, with no answer (interrupted, or a new prompt
|
|
234
283
|
* came first). Absent, or without a question's id, from a peer that doesn't say (protocol 0.3.5 on).
|
|
284
|
+
* An area is never removed: it goes with its session.
|
|
235
285
|
*/
|
|
236
286
|
export const FactRemoveSchema = z.object({
|
|
237
287
|
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;AACl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Ac,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"}
|