@imagile-dev/toil-ui 0.1.0-alpha.3 → 0.1.0-beta.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/NOTICE +12 -5
- package/README.md +341 -41
- package/dist/app/assets/Graph-BG4Q-CNd.js +7 -0
- package/dist/app/assets/PowershellMan-24GyLAoI.js +1 -0
- package/dist/app/assets/PowershellMan-Ic3-jSrq.css +1 -0
- package/dist/app/assets/basket-Cj-ZPWsU.svg +73 -0
- package/dist/app/assets/bitter-latin-400-normal-B_gsCfHZ.woff +0 -0
- package/dist/app/assets/bitter-latin-400-normal-Cl9vToDR.woff2 +0 -0
- package/dist/app/assets/bitter-latin-600-normal-B6efaj8C.woff2 +0 -0
- package/dist/app/assets/bitter-latin-600-normal-Bm9hnW4x.woff +0 -0
- package/dist/app/assets/boot-sheet-C9B_iXU-.webp +0 -0
- package/dist/app/assets/chakra-petch-latin-600-normal-DQKfcdKo.woff +0 -0
- package/dist/app/assets/chakra-petch-latin-600-normal-DVQm9bgb.woff2 +0 -0
- package/dist/app/assets/chakra-petch-latin-700-normal-CnDBPjkL.woff2 +0 -0
- package/dist/app/assets/chakra-petch-latin-700-normal-D1s_c2du.woff +0 -0
- package/dist/app/assets/chakra-petch-latin-ext-600-normal-CdGvbdDU.woff2 +0 -0
- package/dist/app/assets/chakra-petch-latin-ext-600-normal-nL80L4xU.woff +0 -0
- package/dist/app/assets/chakra-petch-latin-ext-700-normal-BeviJPUl.woff +0 -0
- package/dist/app/assets/chakra-petch-latin-ext-700-normal-DAkvJhej.woff2 +0 -0
- package/dist/app/assets/chakra-petch-thai-600-normal-BiM5MXH8.woff +0 -0
- package/dist/app/assets/chakra-petch-thai-600-normal-C620THcd.woff2 +0 -0
- package/dist/app/assets/chakra-petch-thai-700-normal-B7WL5pBr.woff2 +0 -0
- package/dist/app/assets/chakra-petch-thai-700-normal-vZLZ_5L8.woff +0 -0
- package/dist/app/assets/chakra-petch-vietnamese-600-normal-Pvj4qcw_.woff +0 -0
- package/dist/app/assets/chakra-petch-vietnamese-600-normal-YQPWIhHU.woff2 +0 -0
- package/dist/app/assets/chakra-petch-vietnamese-700-normal-ZDCXY9IA.woff2 +0 -0
- package/dist/app/assets/chakra-petch-vietnamese-700-normal-gQuUA8Wu.woff +0 -0
- package/dist/app/assets/crate-loading-B9H4D652.webp +0 -0
- package/dist/app/assets/crate-lost-Dk5CaIuV.webp +0 -0
- package/dist/app/assets/dead-drop-BHoO7uon.webp +0 -0
- package/dist/app/assets/depot-BjEccEGj.webp +0 -0
- package/dist/app/assets/door-open-CL1v6qnp.svg +4 -0
- package/dist/app/assets/dungeon-map-Beqcufkh.webp +0 -0
- package/dist/app/assets/dungeon-map-T2FZ-7n0.webp +0 -0
- package/dist/app/assets/empty-room-BvPyqrlb.webp +0 -0
- package/dist/app/assets/{favicon-D8c5IAlv.svg → favicon-pNvr4nr7.svg} +5 -11
- package/dist/app/assets/fira-code-cyrillic-600-normal-BD56RyRT.woff +0 -0
- package/dist/app/assets/fira-code-cyrillic-600-normal-CPRdbepc.woff2 +0 -0
- package/dist/app/assets/fira-code-cyrillic-ext-600-normal-B9wE0zmr.woff2 +0 -0
- package/dist/app/assets/fira-code-cyrillic-ext-600-normal-DldcyWhZ.woff +0 -0
- package/dist/app/assets/fira-code-greek-600-normal-D_h3X2X5.woff +0 -0
- package/dist/app/assets/fira-code-greek-600-normal-Dxp52_By.woff2 +0 -0
- package/dist/app/assets/fira-code-greek-ext-600-normal-C-cQDoOk.woff +0 -0
- package/dist/app/assets/fira-code-greek-ext-600-normal-DtBpFRLc.woff2 +0 -0
- package/dist/app/assets/fira-code-latin-600-normal-BmSSHshu.woff +0 -0
- package/dist/app/assets/fira-code-latin-600-normal-CvYZpPHg.woff2 +0 -0
- package/dist/app/assets/fira-code-latin-ext-600-normal-0PFQL1eg.woff +0 -0
- package/dist/app/assets/fira-code-latin-ext-600-normal-Cb7jxoAi.woff2 +0 -0
- package/dist/app/assets/fira-code-symbols2-600-normal-Bu3RnO39.woff2 +0 -0
- package/dist/app/assets/fira-code-symbols2-600-normal-Dvq6IQE5.woff +0 -0
- package/dist/app/assets/gate-DgvMBPi9.svg +109 -0
- package/dist/app/assets/gauge-sheet-ZMjQ7TPd.svg +1 -0
- package/dist/app/assets/index-BZCjoilm.js +66 -0
- package/dist/app/assets/index-DNYTmC1J.css +1 -0
- package/dist/app/assets/jack-in-Cs60f1qu.webp +0 -0
- package/dist/app/assets/locked-door-CdXyTY3n.svg +4 -0
- package/dist/app/assets/locomotive-CPPtBzL2.webp +0 -0
- package/dist/app/assets/overworld-W3adxmKX.webp +0 -0
- package/dist/app/assets/press-start-2p-latin-400-normal-KLytu4cr.woff +0 -0
- package/dist/app/assets/press-start-2p-latin-400-normal-_wFEWmAB.woff2 +0 -0
- package/dist/app/assets/rye-latin-400-normal-CPBiwIfN.woff +0 -0
- package/dist/app/assets/rye-latin-400-normal-CnIDrDaJ.woff2 +0 -0
- package/dist/app/assets/sage-cave-Bu8KEIPH.webp +0 -0
- package/dist/app/assets/sensor-sheet-Dn-dKnev.svg +1 -0
- package/dist/app/assets/shard-sheet-NpLu-BuT.svg +101 -0
- package/dist/app/assets/skyline-CZ4WZ55S.webp +0 -0
- package/dist/app/assets/splash-Dgll39Db.webp +0 -0
- package/dist/app/assets/splash-hOSg5Qrh.webp +0 -0
- package/dist/app/assets/sprites-BUKsxG6N.webp +0 -0
- package/dist/app/assets/sprout-sheet-BLjjvTMl.svg +143 -0
- package/dist/app/assets/stone-wall-DRNYiEy2.svg +4 -0
- package/dist/app/assets/story-CS6l92Yr.webp +0 -0
- package/dist/app/assets/sun-Cyqqe255.svg +72 -0
- package/dist/app/assets/survey-map-BI4XT_wf.webp +0 -0
- package/dist/app/assets/{theme-crXsh6Dv.css → theme-63MlXwuO.css} +1 -1
- package/dist/app/assets/theme-BJDDePbd.css +1 -0
- package/dist/app/assets/theme-BVugNGOi.css +1 -0
- package/dist/app/assets/theme-C_ukluUB.css +1 -0
- package/dist/app/assets/{theme-ZdVuuddo.css → theme-D3_AOEgB.css} +1 -1
- package/dist/app/assets/theme-DMjUjC0D.css +1 -0
- package/dist/app/assets/title-1MphWZoQ.webp +0 -0
- package/dist/app/assets/tray-BHNdSAiO.webp +0 -0
- package/dist/app/assets/wanted-poster-BnjUajnc.webp +0 -0
- package/dist/app/assets/warp-BNB4TdQ4.webp +0 -0
- package/dist/app/assets/wood-CrrZEj6Y.webp +0 -0
- package/dist/app/index.html +3 -3
- package/dist/server/toil-ui.js +1779 -183
- package/package.json +11 -5
- package/dist/app/assets/Graph-By9iJybf.js +0 -7
- package/dist/app/assets/candle-ledger-LHVvMHKk.webp +0 -0
- package/dist/app/assets/crate-loading-Dw5rbPVs.webp +0 -0
- package/dist/app/assets/crate-lost-CaqeM6QF.webp +0 -0
- package/dist/app/assets/index-DqhhMfsN.js +0 -61
- package/dist/app/assets/index-PfJo8IRH.css +0 -1
- package/dist/app/assets/pallets-rO-RsztZ.webp +0 -0
- package/dist/app/assets/racking-BI-9puyv.webp +0 -0
- package/dist/app/assets/theme-CpEaUF3v.css +0 -1
package/dist/server/toil-ui.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
// toil-ui-build {"version":"0.1.0-
|
|
2
|
+
// toil-ui-build {"version":"0.1.0-beta.1","commit":"2bb247a57f71f431f7bdf756d34752e704e81cb9"}
|
|
3
3
|
import { contractVersion, execute, mapOwi, registry, version } from "@imagile-dev/toil/api";
|
|
4
4
|
import { fileURLToPath, pathToFileURL } from "node:url";
|
|
5
5
|
import { chmodSync, closeSync, cpSync, existsSync, linkSync, lstatSync, mkdirSync, openSync, readFileSync, readSync, readdirSync, renameSync, rmSync, statSync, writeFileSync } from "node:fs";
|
|
@@ -19,7 +19,8 @@ var CONFIG_READS = [
|
|
|
19
19
|
"dossiers show",
|
|
20
20
|
"dossiers check",
|
|
21
21
|
"audit stats",
|
|
22
|
-
"audit list"
|
|
22
|
+
"audit list",
|
|
23
|
+
"theme list"
|
|
23
24
|
];
|
|
24
25
|
/** The changes, each only to toil's own config or dossiers. */
|
|
25
26
|
var CONFIG_CHANGES = [
|
|
@@ -35,7 +36,8 @@ var CONFIG_CHANGES = [
|
|
|
35
36
|
"dossiers person",
|
|
36
37
|
"dossiers wip-limit",
|
|
37
38
|
"dossiers onboard",
|
|
38
|
-
"dossiers describe"
|
|
39
|
+
"dossiers describe",
|
|
40
|
+
"theme set"
|
|
39
41
|
];
|
|
40
42
|
/** Everything `/api/config` runs, and nothing else. */
|
|
41
43
|
var CONFIG_COMMANDS = /* @__PURE__ */ new Set([...CONFIG_READS, ...CONFIG_CHANGES]);
|
|
@@ -1045,6 +1047,15 @@ var tally$1 = (items) => ({
|
|
|
1045
1047
|
count: items.length,
|
|
1046
1048
|
points: items.reduce((n, i) => n + points(i), 0)
|
|
1047
1049
|
});
|
|
1050
|
+
/** Working days (Monday to Friday, UTC) of a sprint gone at `now`, and in total: what "day 7 of 10" reads. */
|
|
1051
|
+
function sprintDays(start, end, now) {
|
|
1052
|
+
const from = Date.parse(start);
|
|
1053
|
+
const to = Date.parse(end);
|
|
1054
|
+
return {
|
|
1055
|
+
gone: weekdays(from, Math.min(Date.parse(now), to)),
|
|
1056
|
+
total: weekdays(from, to)
|
|
1057
|
+
};
|
|
1058
|
+
}
|
|
1048
1059
|
function weekdays(from, to) {
|
|
1049
1060
|
let n = 0;
|
|
1050
1061
|
for (let t = Math.floor(from / DAY$3) * DAY$3; t < to; t += DAY$3) {
|
|
@@ -1096,16 +1107,11 @@ function health(all, changes, now) {
|
|
|
1096
1107
|
reasons
|
|
1097
1108
|
});
|
|
1098
1109
|
}
|
|
1099
|
-
const start = Date.parse(sprint.start);
|
|
1100
|
-
const end = Date.parse(sprint.end);
|
|
1101
1110
|
return {
|
|
1102
1111
|
sprint,
|
|
1103
1112
|
items,
|
|
1104
1113
|
entries,
|
|
1105
|
-
days:
|
|
1106
|
-
gone: weekdays(start, Math.min(Date.parse(now), end)),
|
|
1107
|
-
total: weekdays(start, end)
|
|
1108
|
-
},
|
|
1114
|
+
days: sprintDays(sprint.start, sprint.end, now),
|
|
1109
1115
|
planned: tally$1(kind("planned")),
|
|
1110
1116
|
added: tally$1(kind("added")),
|
|
1111
1117
|
carried: tally$1(kind("carried")),
|
|
@@ -1632,7 +1638,7 @@ function acceptance(item, area, body) {
|
|
|
1632
1638
|
if (inBody) return row("acceptance", "pass", inBody === "heading" ? "A heading in the description lists them." : "The description has a checklist.", "description");
|
|
1633
1639
|
return row("acceptance", "thin", `None found. ${field ? `${field} is empty, and the description has` : "The description has"} no acceptance criteria heading or checklist.`, field ? `field ${field}, description` : "description");
|
|
1634
1640
|
}
|
|
1635
|
-
function description$
|
|
1641
|
+
function description$8(item, area, body) {
|
|
1636
1642
|
const min = area?.minWords ?? 25;
|
|
1637
1643
|
const all = wordCount(body);
|
|
1638
1644
|
const real = wordCount(realText(body, area?.templateLines ?? []));
|
|
@@ -1690,7 +1696,7 @@ function readiness({ item, settings, byId, live }) {
|
|
|
1690
1696
|
const body = item.body ? textOf$1(item.body.content, item.body.format) : "";
|
|
1691
1697
|
const rows = [
|
|
1692
1698
|
acceptance(item, area, body),
|
|
1693
|
-
description$
|
|
1699
|
+
description$8(item, area, body),
|
|
1694
1700
|
doneState(item, byId, live),
|
|
1695
1701
|
blockers$1(item, byId),
|
|
1696
1702
|
scope(item, settings)
|
|
@@ -2296,7 +2302,7 @@ function gap(change, field, reason) {
|
|
|
2296
2302
|
});
|
|
2297
2303
|
}
|
|
2298
2304
|
/** An instant field, or a gap saying it couldn't be read. */
|
|
2299
|
-
function at$
|
|
2305
|
+
function at$3(change, field, value, from) {
|
|
2300
2306
|
const t = typeof value === "number" && Number.isFinite(value) ? new Date(value).toISOString() : instant(value);
|
|
2301
2307
|
if (t === void 0) {
|
|
2302
2308
|
gap(change, field, `${from} holds ${JSON.stringify(value)}, which isn't a date-time`);
|
|
@@ -2568,8 +2574,8 @@ function adoChange(doc, pr, state) {
|
|
|
2568
2574
|
};
|
|
2569
2575
|
change.author = adoPerson(pr.createdBy);
|
|
2570
2576
|
change.state = pr.status === "completed" ? "MERGED" : pr.status === "abandoned" ? "DECLINED" : pr.isDraft === true ? "DRAFT" : "OPEN";
|
|
2571
|
-
change.created = at$
|
|
2572
|
-
const closed = change.state === "MERGED" || change.state === "DECLINED" ? at$
|
|
2577
|
+
change.created = at$3(change, "created", pr.creationDate, "creationDate");
|
|
2578
|
+
const closed = change.state === "MERGED" || change.state === "DECLINED" ? at$3(change, "closedAt", pr.closedDate, "closedDate") : null;
|
|
2573
2579
|
change.closedAt = closed;
|
|
2574
2580
|
change.mergedAt = change.state === "MERGED" ? closed : null;
|
|
2575
2581
|
gap(change, "updated", "Azure DevOps records no last-updated time on a pull request");
|
|
@@ -2600,7 +2606,7 @@ function adoChange(doc, pr, state) {
|
|
|
2600
2606
|
if (prop(thread, "CodeReviewThreadType") === "VoteUpdate") {
|
|
2601
2607
|
const result = Number(prop(thread, "CodeReviewVoteResult"));
|
|
2602
2608
|
const by = adoPerson(comments[0]?.author);
|
|
2603
|
-
const when = at$
|
|
2609
|
+
const when = at$3(change, "reviews", thread.publishedDate ?? comments[0]?.publishedDate, "a vote thread's publishedDate");
|
|
2604
2610
|
if (by && when && Number.isFinite(result)) reviews.push({
|
|
2605
2611
|
by,
|
|
2606
2612
|
state: result >= 5 ? "APPROVED" : result <= -5 ? "CHANGES_REQUESTED" : "DISMISSED",
|
|
@@ -2611,7 +2617,7 @@ function adoChange(doc, pr, state) {
|
|
|
2611
2617
|
const first = comments[0];
|
|
2612
2618
|
if (!first || first.commentType === "system") continue;
|
|
2613
2619
|
const by = adoPerson(first.author);
|
|
2614
|
-
const when = at$
|
|
2620
|
+
const when = at$3(change, "reviews", first.publishedDate, "a comment's publishedDate");
|
|
2615
2621
|
if (by && when && by.id.toLowerCase() !== author) reviews.push({
|
|
2616
2622
|
by,
|
|
2617
2623
|
state: "COMMENTED",
|
|
@@ -2635,7 +2641,7 @@ function adoChange(doc, pr, state) {
|
|
|
2635
2641
|
rollUp(change, [...latest.entries()].map(([context, s]) => ({
|
|
2636
2642
|
name: context,
|
|
2637
2643
|
outcome: STATUS$1[String(s.state)] ?? "pending",
|
|
2638
|
-
at: at$
|
|
2644
|
+
at: at$3(change, "checksAt", s.updatedDate ?? s.creationDate, "a status's creationDate")
|
|
2639
2645
|
})));
|
|
2640
2646
|
} else gap(change, "checks", notIncluded(doc, "checks"));
|
|
2641
2647
|
if (lists.files) {
|
|
@@ -2706,9 +2712,9 @@ function bitbucketChange(doc, pr, state) {
|
|
|
2706
2712
|
const author = isRecord(pr.author) ? pr.author.user : void 0;
|
|
2707
2713
|
change.author = dcPerson(author);
|
|
2708
2714
|
change.state = pr.state === "MERGED" ? "MERGED" : pr.state === "DECLINED" ? "DECLINED" : pr.draft === true ? "DRAFT" : "OPEN";
|
|
2709
|
-
change.created = at$
|
|
2710
|
-
change.updated = at$
|
|
2711
|
-
const closed = at$
|
|
2715
|
+
change.created = at$3(change, "created", pr.createdDate, "createdDate");
|
|
2716
|
+
change.updated = at$3(change, "updated", pr.updatedDate, "updatedDate");
|
|
2717
|
+
const closed = at$3(change, "closedAt", pr.closedDate, "closedDate");
|
|
2712
2718
|
change.closedAt = change.state === "MERGED" || change.state === "DECLINED" ? closed : null;
|
|
2713
2719
|
change.mergedAt = change.state === "MERGED" ? closed : null;
|
|
2714
2720
|
const props = isRecord(pr.properties) ? pr.properties : {};
|
|
@@ -2729,7 +2735,7 @@ function bitbucketChange(doc, pr, state) {
|
|
|
2729
2735
|
if (lists.reviews) reviewTimes(change, lists.reviews.filter(isRecord).flatMap((a) => {
|
|
2730
2736
|
const by = dcPerson(a.user);
|
|
2731
2737
|
const kind = DC_REVIEW[String(a.action)];
|
|
2732
|
-
const when = at$
|
|
2738
|
+
const when = at$3(change, "reviews", a.createdDate, "an activity's createdDate");
|
|
2733
2739
|
return by && kind && when ? [{
|
|
2734
2740
|
by,
|
|
2735
2741
|
state: kind,
|
|
@@ -2744,7 +2750,7 @@ function bitbucketChange(doc, pr, state) {
|
|
|
2744
2750
|
if (lists.checks) rollUp(change, lists.checks.filter(isRecord).map((b) => ({
|
|
2745
2751
|
name: str$1(b.name) ?? str$1(b.key) ?? "build",
|
|
2746
2752
|
outcome: DC_CHECK[String(b.state)] ?? "pending",
|
|
2747
|
-
at: at$
|
|
2753
|
+
at: at$3(change, "checksAt", b.dateAdded, "a build status's dateAdded")
|
|
2748
2754
|
})));
|
|
2749
2755
|
else gap(change, "checks", notIncluded(doc, "checks"));
|
|
2750
2756
|
if (lists.files) {
|
|
@@ -2785,8 +2791,8 @@ function bitbucketCloudChange(doc, pr, state) {
|
|
|
2785
2791
|
};
|
|
2786
2792
|
change.author = cloudPerson(pr.author);
|
|
2787
2793
|
change.state = pr.state === "MERGED" ? "MERGED" : pr.state === "DECLINED" || pr.state === "SUPERSEDED" ? "DECLINED" : pr.draft === true ? "DRAFT" : "OPEN";
|
|
2788
|
-
change.created = at$
|
|
2789
|
-
change.updated = at$
|
|
2794
|
+
change.created = at$3(change, "created", pr.created_on, "created_on");
|
|
2795
|
+
change.updated = at$3(change, "updated", pr.updated_on, "updated_on");
|
|
2790
2796
|
if (change.state === "MERGED" || change.state === "DECLINED") {
|
|
2791
2797
|
gap(change, "mergedAt", "Bitbucket Cloud's pull request records no merge or close time; updated is the nearest it has");
|
|
2792
2798
|
gap(change, "closedAt", "Bitbucket Cloud's pull request records no merge or close time; updated is the nearest it has");
|
|
@@ -2824,7 +2830,7 @@ function bitbucketCloudChange(doc, pr, state) {
|
|
|
2824
2830
|
} : null;
|
|
2825
2831
|
if (!event) return [];
|
|
2826
2832
|
const by = cloudPerson(event.e.user);
|
|
2827
|
-
const when = at$
|
|
2833
|
+
const when = at$3(change, "reviews", event.e.date, "an activity entry's date");
|
|
2828
2834
|
return by && when ? [{
|
|
2829
2835
|
by,
|
|
2830
2836
|
state: event.kind,
|
|
@@ -2839,7 +2845,7 @@ function bitbucketCloudChange(doc, pr, state) {
|
|
|
2839
2845
|
if (lists.checks) rollUp(change, lists.checks.filter(isRecord).map((s) => ({
|
|
2840
2846
|
name: str$1(s.name) ?? str$1(s.key) ?? "build",
|
|
2841
2847
|
outcome: CLOUD_CHECK[String(s.state)] ?? "pending",
|
|
2842
|
-
at: at$
|
|
2848
|
+
at: at$3(change, "checksAt", s.updated_on ?? s.created_on, "a status's updated_on")
|
|
2843
2849
|
})));
|
|
2844
2850
|
else gap(change, "checks", notIncluded(doc, "checks"));
|
|
2845
2851
|
if (lists.files) {
|
|
@@ -3352,10 +3358,10 @@ function githubChange(doc, pr, state) {
|
|
|
3352
3358
|
};
|
|
3353
3359
|
change.author = ghPerson(pr.user);
|
|
3354
3360
|
change.state = str$1(pr.merged_at) ? "MERGED" : pr.state === "closed" ? "DECLINED" : pr.draft === true ? "DRAFT" : "OPEN";
|
|
3355
|
-
change.created = at$
|
|
3356
|
-
change.updated = at$
|
|
3357
|
-
change.mergedAt = at$
|
|
3358
|
-
change.closedAt = at$
|
|
3361
|
+
change.created = at$3(change, "created", pr.created_at, "created_at");
|
|
3362
|
+
change.updated = at$3(change, "updated", pr.updated_at, "updated_at");
|
|
3363
|
+
change.mergedAt = at$3(change, "mergedAt", pr.merged_at, "merged_at");
|
|
3364
|
+
change.closedAt = at$3(change, "closedAt", pr.closed_at, "closed_at");
|
|
3359
3365
|
change.mergeCommit = change.state === "MERGED" ? str$1(pr.merge_commit_sha) : null;
|
|
3360
3366
|
const own = (text) => [...[...text.matchAll(HASH_NUMBER)].map((m) => idFor(doc.connection, `${repo}#${m[1]}`)), ...[...text.matchAll(/(?<![\w.-])([\w.-]+\/[\w.-]+)#(\d+)\b/g)].map((m) => idFor(doc.connection, `${m[1]}#${m[2]}`))];
|
|
3361
3367
|
const fromBranch = branchNumber(change.branch.source);
|
|
@@ -3379,7 +3385,7 @@ function githubChange(doc, pr, state) {
|
|
|
3379
3385
|
if (!isRecord(r)) continue;
|
|
3380
3386
|
const by = ghPerson(r.user);
|
|
3381
3387
|
const kind = REVIEW_STATES[String(r.state)];
|
|
3382
|
-
const when = at$
|
|
3388
|
+
const when = at$3(change, "reviews", r.submitted_at, "a review's submitted_at");
|
|
3383
3389
|
if (!by || !kind || !when) continue;
|
|
3384
3390
|
reviews.push({
|
|
3385
3391
|
by,
|
|
@@ -3413,7 +3419,7 @@ function githubChange(doc, pr, state) {
|
|
|
3413
3419
|
if (lists.checks) rollUp(change, lists.checks.filter(isRecord).map((run) => ({
|
|
3414
3420
|
name: str$1(run.name) ?? "check",
|
|
3415
3421
|
outcome: run.status !== "completed" ? "pending" : FAILING.has(String(run.conclusion)) ? "fail" : "pass",
|
|
3416
|
-
at: at$
|
|
3422
|
+
at: at$3(change, "checksAt", run.completed_at ?? run.started_at, "a check run's completed_at")
|
|
3417
3423
|
})));
|
|
3418
3424
|
else gap(change, "checks", notIncluded(doc, "checks"));
|
|
3419
3425
|
if (typeof pr.mergeable === "boolean") change.mergeable = pr.mergeable;
|
|
@@ -4135,7 +4141,7 @@ function words$2(text) {
|
|
|
4135
4141
|
/** Whether a word can be a term: two characters or more, not a common word, and not a one- or two-digit number (the 02 of 02:00). */
|
|
4136
4142
|
var termWord = (word) => word.length >= 2 && !STOPWORDS.has(word) && !/^\d{1,2}$/.test(word);
|
|
4137
4143
|
/** The terms in some text, stemmed, in order. Each keeps the word it came from. */
|
|
4138
|
-
function terms$
|
|
4144
|
+
function terms$6(text) {
|
|
4139
4145
|
const out = [];
|
|
4140
4146
|
for (const word of words$2(text)) if (termWord(word)) out.push({
|
|
4141
4147
|
term: stem(word),
|
|
@@ -4299,7 +4305,7 @@ var SimilarityIndex = class {
|
|
|
4299
4305
|
terms: /* @__PURE__ */ new Map(),
|
|
4300
4306
|
trigrams: this.on.title ? trigrams(text) : /* @__PURE__ */ new Set()
|
|
4301
4307
|
};
|
|
4302
|
-
for (const { term, word } of terms$
|
|
4308
|
+
for (const { term, word } of terms$6(text)) if (!q.terms.has(term)) q.terms.set(term, word);
|
|
4303
4309
|
return this.rank(this.docs, (doc, explain) => this.scoreQuery(q, doc, explain), options);
|
|
4304
4310
|
}
|
|
4305
4311
|
/** Every other item ranked against the one with this id: highest score first, ties by id. Undefined when the id isn't in the index. */
|
|
@@ -4501,14 +4507,14 @@ var SimilarityIndex = class {
|
|
|
4501
4507
|
if (was === void 0 || word.length < was.length || word.length === was.length && word < was) surface.set(term, word);
|
|
4502
4508
|
};
|
|
4503
4509
|
let titleLength = 0;
|
|
4504
|
-
if (this.on.title) for (const { term, word } of terms$
|
|
4510
|
+
if (this.on.title) for (const { term, word } of terms$6(item.title)) {
|
|
4505
4511
|
title.set(term, (title.get(term) ?? 0) + 1);
|
|
4506
4512
|
note(term, word);
|
|
4507
4513
|
titleLength++;
|
|
4508
4514
|
}
|
|
4509
4515
|
let bodyLength = 0;
|
|
4510
4516
|
let bodyCut = false;
|
|
4511
|
-
if (this.on.body) for (const { term, word } of terms$
|
|
4517
|
+
if (this.on.body) for (const { term, word } of terms$6(bodyText$2(item.body))) {
|
|
4512
4518
|
if (bodyLength === 5e3) {
|
|
4513
4519
|
bodyCut = true;
|
|
4514
4520
|
break;
|
|
@@ -7404,7 +7410,7 @@ var sprintEnvelopes = [
|
|
|
7404
7410
|
var envs = sprintEnvelopes;
|
|
7405
7411
|
var isWrapped = (e) => "history" in e;
|
|
7406
7412
|
var dataOf = (command) => envs.find((e) => !isWrapped(e) && e.meta?.command === command).data;
|
|
7407
|
-
var historyOf$
|
|
7413
|
+
var historyOf$2 = (command) => envs.filter(isWrapped).filter((e) => e.history.meta?.command === command);
|
|
7408
7414
|
var jiraIssues = dataOf("jira issue get").issues;
|
|
7409
7415
|
/**
|
|
7410
7416
|
* The acceptance criteria card-payments keeps in a custom field (its dossier
|
|
@@ -7457,7 +7463,7 @@ var jiraStatus = (id, at, from, to) => ({
|
|
|
7457
7463
|
*/
|
|
7458
7464
|
var moreChangelogs = { "PAY-106": [jiraStatus(40501, "2026-10-06T09:30:00.000+0000", ["10000", "To Do"], ["3", "In Progress"]), jiraStatus(40502, "2026-10-07T12:00:00.000+0000", ["3", "In Progress"], ["10001", "Done"])] };
|
|
7459
7465
|
/** Each issue's `jira issue history` data; an issue nothing changed on since it was created has an empty one. */
|
|
7460
|
-
var JIRA_CHANGELOGS = Object.fromEntries(JIRA_KEYS.map((key) => [key, historyOf$
|
|
7466
|
+
var JIRA_CHANGELOGS = Object.fromEntries(JIRA_KEYS.map((key) => [key, historyOf$2("jira issue history").find((h) => h.key === key)?.history.data ?? moreChangelogs[key] ?? []]));
|
|
7461
7467
|
var ADO_ITERATIONS = dataOf("ado work-item iterations");
|
|
7462
7468
|
var ADO_BATCH = dataOf("ado work-item get-many");
|
|
7463
7469
|
var ADO_IDS = ADO_BATCH.value.map((w) => w.id);
|
|
@@ -7520,7 +7526,7 @@ var GITHUB_PROJECT_ITEMS = dataOf("github project items");
|
|
|
7520
7526
|
var GITHUB_NUMBERS = GITHUB_PROJECT_ITEMS.map((i) => i.content.number);
|
|
7521
7527
|
var GITHUB_ISSUES = dataOf("github issue get");
|
|
7522
7528
|
/** Each issue's `github issue history` timeline; an issue with no events has an empty one. */
|
|
7523
|
-
var GITHUB_EVENTS = Object.fromEntries(GITHUB_NUMBERS.map((n) => [n, historyOf$
|
|
7529
|
+
var GITHUB_EVENTS = Object.fromEntries(GITHUB_NUMBERS.map((n) => [n, historyOf$2("github issue history").find((h) => h.key === String(n))?.history.data ?? []]));
|
|
7524
7530
|
var jiraStatus2 = (name, id, key, category) => ({
|
|
7525
7531
|
self: `https://jira.imagile.dev/rest/api/2/status/${id}`,
|
|
7526
7532
|
name,
|
|
@@ -7630,7 +7636,7 @@ var VERSION$2 = "0.1.0-alpha.1";
|
|
|
7630
7636
|
var card = "card-payments";
|
|
7631
7637
|
var settle = "settlement";
|
|
7632
7638
|
var checkout = "checkout-web";
|
|
7633
|
-
var at$
|
|
7639
|
+
var at$2 = (dossier, area, env) => ({
|
|
7634
7640
|
dossier,
|
|
7635
7641
|
area,
|
|
7636
7642
|
...env ? { env } : {}
|
|
@@ -7644,7 +7650,7 @@ var gets = (dossier, area, field, byNumber) => Object.entries(byNumber).map(([n,
|
|
|
7644
7650
|
include: PR_INCLUDE
|
|
7645
7651
|
},
|
|
7646
7652
|
data,
|
|
7647
|
-
...at$
|
|
7653
|
+
...at$2(dossier, area)
|
|
7648
7654
|
}));
|
|
7649
7655
|
var CANNED = [
|
|
7650
7656
|
{
|
|
@@ -7664,7 +7670,7 @@ var CANNED = [
|
|
|
7664
7670
|
jql: JQL("PAY")
|
|
7665
7671
|
},
|
|
7666
7672
|
data: JIRA_SEARCH,
|
|
7667
|
-
...at$
|
|
7673
|
+
...at$2(card, "jira")
|
|
7668
7674
|
},
|
|
7669
7675
|
...JIRA_KEYS.map((key) => ({
|
|
7670
7676
|
command: "jira issue history",
|
|
@@ -7673,7 +7679,7 @@ var CANNED = [
|
|
|
7673
7679
|
key
|
|
7674
7680
|
},
|
|
7675
7681
|
data: JIRA_CHANGELOGS[key],
|
|
7676
|
-
...at$
|
|
7682
|
+
...at$2(card, "jira")
|
|
7677
7683
|
})),
|
|
7678
7684
|
...Object.entries(JIRA_TRANSITIONS).map(([key, data]) => ({
|
|
7679
7685
|
command: "jira issue transitions",
|
|
@@ -7682,7 +7688,7 @@ var CANNED = [
|
|
|
7682
7688
|
key
|
|
7683
7689
|
},
|
|
7684
7690
|
data,
|
|
7685
|
-
...at$
|
|
7691
|
+
...at$2(card, "jira")
|
|
7686
7692
|
})),
|
|
7687
7693
|
{
|
|
7688
7694
|
command: "bitbucket pr list",
|
|
@@ -7691,7 +7697,7 @@ var CANNED = [
|
|
|
7691
7697
|
state: "ALL"
|
|
7692
7698
|
},
|
|
7693
7699
|
data: BITBUCKET_PRS,
|
|
7694
|
-
...at$
|
|
7700
|
+
...at$2(card, "bitbucket")
|
|
7695
7701
|
},
|
|
7696
7702
|
...gets(card, "bitbucket", "id", BITBUCKET_PR_GETS),
|
|
7697
7703
|
...Object.entries(JENKINS_RUNS).map(([pr, runs]) => ({
|
|
@@ -7702,7 +7708,7 @@ var CANNED = [
|
|
|
7702
7708
|
limit: 5
|
|
7703
7709
|
},
|
|
7704
7710
|
data: runs,
|
|
7705
|
-
...at$
|
|
7711
|
+
...at$2(card, "jenkins")
|
|
7706
7712
|
})),
|
|
7707
7713
|
{
|
|
7708
7714
|
command: "openshift deployment list",
|
|
@@ -7712,7 +7718,7 @@ var CANNED = [
|
|
|
7712
7718
|
namespace: "payments-dev"
|
|
7713
7719
|
},
|
|
7714
7720
|
data: OPENSHIFT["payments-dev"],
|
|
7715
|
-
...at$
|
|
7721
|
+
...at$2(card, "openshift", "dev")
|
|
7716
7722
|
},
|
|
7717
7723
|
{
|
|
7718
7724
|
command: "openshift deployment list",
|
|
@@ -7722,13 +7728,13 @@ var CANNED = [
|
|
|
7722
7728
|
namespace: "payments-prod"
|
|
7723
7729
|
},
|
|
7724
7730
|
data: OPENSHIFT["payments-prod"],
|
|
7725
|
-
...at$
|
|
7731
|
+
...at$2(card, "openshift", "prod")
|
|
7726
7732
|
},
|
|
7727
7733
|
{
|
|
7728
7734
|
command: "ado work-item iterations",
|
|
7729
7735
|
input: { dossier: settle },
|
|
7730
7736
|
data: ADO_ITERATIONS,
|
|
7731
|
-
...at$
|
|
7737
|
+
...at$2(settle, "ado")
|
|
7732
7738
|
},
|
|
7733
7739
|
{
|
|
7734
7740
|
command: "ado work-item search",
|
|
@@ -7737,7 +7743,7 @@ var CANNED = [
|
|
|
7737
7743
|
wiql: WIQL
|
|
7738
7744
|
},
|
|
7739
7745
|
data: ADO_WIQL,
|
|
7740
|
-
...at$
|
|
7746
|
+
...at$2(settle, "ado")
|
|
7741
7747
|
},
|
|
7742
7748
|
{
|
|
7743
7749
|
command: "ado work-item get-many",
|
|
@@ -7746,7 +7752,7 @@ var CANNED = [
|
|
|
7746
7752
|
id: ADO_IDS
|
|
7747
7753
|
},
|
|
7748
7754
|
data: ADO_BATCH,
|
|
7749
|
-
...at$
|
|
7755
|
+
...at$2(settle, "ado")
|
|
7750
7756
|
},
|
|
7751
7757
|
...ADO_IDS.map((id) => ({
|
|
7752
7758
|
command: "ado work-item history",
|
|
@@ -7755,7 +7761,7 @@ var CANNED = [
|
|
|
7755
7761
|
id
|
|
7756
7762
|
},
|
|
7757
7763
|
data: ADO_REVISIONS[id],
|
|
7758
|
-
...at$
|
|
7764
|
+
...at$2(settle, "ado")
|
|
7759
7765
|
})),
|
|
7760
7766
|
...Object.entries(ADO_STATES).map(([type, data]) => ({
|
|
7761
7767
|
command: "ado work-item states",
|
|
@@ -7764,7 +7770,7 @@ var CANNED = [
|
|
|
7764
7770
|
type
|
|
7765
7771
|
},
|
|
7766
7772
|
data,
|
|
7767
|
-
...at$
|
|
7773
|
+
...at$2(settle, "ado")
|
|
7768
7774
|
})),
|
|
7769
7775
|
{
|
|
7770
7776
|
command: "ado pr list",
|
|
@@ -7773,7 +7779,7 @@ var CANNED = [
|
|
|
7773
7779
|
state: "all"
|
|
7774
7780
|
},
|
|
7775
7781
|
data: ADO_PRS,
|
|
7776
|
-
...at$
|
|
7782
|
+
...at$2(settle, "ado")
|
|
7777
7783
|
},
|
|
7778
7784
|
...gets(settle, "ado", "id", ADO_PR_GETS),
|
|
7779
7785
|
{
|
|
@@ -7784,7 +7790,7 @@ var CANNED = [
|
|
|
7784
7790
|
top: 20
|
|
7785
7791
|
},
|
|
7786
7792
|
data: ADO_CI_RUNS,
|
|
7787
|
-
...at$
|
|
7793
|
+
...at$2(settle, "ado")
|
|
7788
7794
|
},
|
|
7789
7795
|
{
|
|
7790
7796
|
command: "ado run list",
|
|
@@ -7794,7 +7800,7 @@ var CANNED = [
|
|
|
7794
7800
|
top: 20
|
|
7795
7801
|
},
|
|
7796
7802
|
data: ADO_DEPLOY_RUNS,
|
|
7797
|
-
...at$
|
|
7803
|
+
...at$2(settle, "ado")
|
|
7798
7804
|
},
|
|
7799
7805
|
{
|
|
7800
7806
|
command: "github project items",
|
|
@@ -7803,7 +7809,7 @@ var CANNED = [
|
|
|
7803
7809
|
project: 7
|
|
7804
7810
|
},
|
|
7805
7811
|
data: GITHUB_PROJECT_ITEMS,
|
|
7806
|
-
...at$
|
|
7812
|
+
...at$2(checkout, "github")
|
|
7807
7813
|
},
|
|
7808
7814
|
{
|
|
7809
7815
|
command: "github issue get",
|
|
@@ -7813,7 +7819,7 @@ var CANNED = [
|
|
|
7813
7819
|
subIssues: true
|
|
7814
7820
|
},
|
|
7815
7821
|
data: GITHUB_ISSUES,
|
|
7816
|
-
...at$
|
|
7822
|
+
...at$2(checkout, "github")
|
|
7817
7823
|
},
|
|
7818
7824
|
...GITHUB_NUMBERS.map((number) => ({
|
|
7819
7825
|
command: "github issue history",
|
|
@@ -7822,7 +7828,7 @@ var CANNED = [
|
|
|
7822
7828
|
number
|
|
7823
7829
|
},
|
|
7824
7830
|
data: GITHUB_EVENTS[number],
|
|
7825
|
-
...at$
|
|
7831
|
+
...at$2(checkout, "github")
|
|
7826
7832
|
})),
|
|
7827
7833
|
{
|
|
7828
7834
|
command: "github pr list",
|
|
@@ -7831,7 +7837,7 @@ var CANNED = [
|
|
|
7831
7837
|
state: "all"
|
|
7832
7838
|
},
|
|
7833
7839
|
data: GITHUB_PRS,
|
|
7834
|
-
...at$
|
|
7840
|
+
...at$2(checkout, "github")
|
|
7835
7841
|
},
|
|
7836
7842
|
...gets(checkout, "github", "number", GITHUB_PR_GETS),
|
|
7837
7843
|
{
|
|
@@ -7841,7 +7847,7 @@ var CANNED = [
|
|
|
7841
7847
|
path: CODEOWNERS_PATHS[0]
|
|
7842
7848
|
},
|
|
7843
7849
|
data: GITHUB_CODEOWNERS,
|
|
7844
|
-
...at$
|
|
7850
|
+
...at$2(checkout, "github")
|
|
7845
7851
|
},
|
|
7846
7852
|
{
|
|
7847
7853
|
command: "bitbucket-cloud pr list",
|
|
@@ -7850,7 +7856,7 @@ var CANNED = [
|
|
|
7850
7856
|
state: "ALL"
|
|
7851
7857
|
},
|
|
7852
7858
|
data: BITBUCKET_CLOUD_PRS,
|
|
7853
|
-
...at$
|
|
7859
|
+
...at$2(checkout, "bitbucket-cloud")
|
|
7854
7860
|
},
|
|
7855
7861
|
...gets(checkout, "bitbucket-cloud", "id", BITBUCKET_CLOUD_PR_GETS),
|
|
7856
7862
|
{
|
|
@@ -7861,7 +7867,7 @@ var CANNED = [
|
|
|
7861
7867
|
namespace: "checkout-staging"
|
|
7862
7868
|
},
|
|
7863
7869
|
data: OPENSHIFT["checkout-staging"],
|
|
7864
|
-
...at$
|
|
7870
|
+
...at$2(checkout, "openshift", "staging")
|
|
7865
7871
|
},
|
|
7866
7872
|
{
|
|
7867
7873
|
command: "openshift deployment list",
|
|
@@ -7871,7 +7877,7 @@ var CANNED = [
|
|
|
7871
7877
|
namespace: "checkout-prod"
|
|
7872
7878
|
},
|
|
7873
7879
|
data: OPENSHIFT["checkout-prod"],
|
|
7874
|
-
...at$
|
|
7880
|
+
...at$2(checkout, "openshift", "prod")
|
|
7875
7881
|
}
|
|
7876
7882
|
];
|
|
7877
7883
|
/** One string per command and input, whatever order the input's keys came in. */
|
|
@@ -7978,7 +7984,7 @@ var FIXES = {
|
|
|
7978
7984
|
CANCELLED: "The call was cancelled by the person or the client; nothing to fix unless that was unintended.",
|
|
7979
7985
|
DATABASE: "The database refused the statement. Run it again to read the database's own message.",
|
|
7980
7986
|
CREDENTIAL_STORE: "Check the OS credential store is available, or set the secret's env var instead.",
|
|
7981
|
-
UNSUPPORTED_NODE: "Install Node 24.
|
|
7987
|
+
UNSUPPORTED_NODE: "Install Node 24.22.1 or later on 24.x, or 26.12.1 or later (CVE-2026-111497).",
|
|
7982
7988
|
GIT_NOT_FOUND: "Install git 2.24 or later and put it on PATH.",
|
|
7983
7989
|
UNSUPPORTED: "The server's release doesn't have the API the command needs; check the area's supported versions.",
|
|
7984
7990
|
INTERNAL: "This is a bug in toil. Report it with toil feedback bug, naming the command."
|
|
@@ -8515,6 +8521,27 @@ var ONBOARD_PLAN = {
|
|
|
8515
8521
|
}]
|
|
8516
8522
|
}
|
|
8517
8523
|
};
|
|
8524
|
+
/** `toil theme list` with no theme set (#427). */
|
|
8525
|
+
var THEME_LIST = {
|
|
8526
|
+
current: "crate",
|
|
8527
|
+
source: "default",
|
|
8528
|
+
default: "crate",
|
|
8529
|
+
themes: [
|
|
8530
|
+
["plain", "Plain"],
|
|
8531
|
+
["crate", "Crate"],
|
|
8532
|
+
["harvest", "Harvest"],
|
|
8533
|
+
["starship", "Starship"],
|
|
8534
|
+
["realm", "Realm"],
|
|
8535
|
+
["sprawl", "Sprawl"],
|
|
8536
|
+
["frontier", "Frontier"],
|
|
8537
|
+
["overworld", "Overworld"]
|
|
8538
|
+
].map(([name, label]) => ({
|
|
8539
|
+
name,
|
|
8540
|
+
label,
|
|
8541
|
+
current: name === "crate",
|
|
8542
|
+
default: name === "crate"
|
|
8543
|
+
}))
|
|
8544
|
+
};
|
|
8518
8545
|
var CONFIG_CANNED = [
|
|
8519
8546
|
{
|
|
8520
8547
|
command: "connections list",
|
|
@@ -8559,6 +8586,11 @@ var CONFIG_CANNED = [
|
|
|
8559
8586
|
command: "dossiers onboard",
|
|
8560
8587
|
input: { plan: true },
|
|
8561
8588
|
data: ONBOARD_PLAN
|
|
8589
|
+
},
|
|
8590
|
+
{
|
|
8591
|
+
command: "theme list",
|
|
8592
|
+
input: {},
|
|
8593
|
+
data: THEME_LIST
|
|
8562
8594
|
}
|
|
8563
8595
|
];
|
|
8564
8596
|
/** A plan with no pin asks nothing and changes nothing, so the preview answers it as it answers a read. */
|
|
@@ -8772,7 +8804,7 @@ function sampleAnswerUsage(chatId, turn, dossier, at = FIXTURE_NOW) {
|
|
|
8772
8804
|
}
|
|
8773
8805
|
//#endregion
|
|
8774
8806
|
//#region src/fixtures/agent.ts
|
|
8775
|
-
var J$
|
|
8807
|
+
var J$2 = (n) => `[[corp-jira:PAY-${n}]]`;
|
|
8776
8808
|
var A = (n) => `[[corp-ado:${n}]]`;
|
|
8777
8809
|
var G = (n) => `[[github:imagile/payments-web#${n}]]`;
|
|
8778
8810
|
/** A pull request, by its OWI change id. */
|
|
@@ -8792,13 +8824,13 @@ var SCRIPTS = {
|
|
|
8792
8824
|
label: "What's at risk in this dossier?",
|
|
8793
8825
|
parts: [
|
|
8794
8826
|
`It is day 7 of 10 of Sprint 42: 3 of 21 points are done and 18 remain.`,
|
|
8795
|
-
`${J$
|
|
8796
|
-
`${J$
|
|
8827
|
+
`${J$2(101)}'s pull request #311 fails its Jenkins build, and ${J$2(102)} and ${J$2(103)} are blocked behind it, holding 11 points back.`,
|
|
8828
|
+
`${J$2(104)} came over from Sprint 41 and its pull request #305 is still open. ${J$2(107)} was added after the sprint started, with no estimate.`
|
|
8797
8829
|
],
|
|
8798
8830
|
proposals: [agentProposal({
|
|
8799
8831
|
item: "corp-jira:PAY-107",
|
|
8800
8832
|
title: "Estimate PAY-107 at 3 points",
|
|
8801
|
-
reason: `${J$
|
|
8833
|
+
reason: `${J$2(107)} was added mid-sprint with no estimate, so the sprint's points leave it out. It is a retry of one call, about the size of ${J$2(105)}.`,
|
|
8802
8834
|
command: "jira issue update",
|
|
8803
8835
|
input: {
|
|
8804
8836
|
dossier: "card-payments",
|
|
@@ -8811,32 +8843,32 @@ var SCRIPTS = {
|
|
|
8811
8843
|
attention: {
|
|
8812
8844
|
label: "What needs attention first?",
|
|
8813
8845
|
parts: [
|
|
8814
|
-
`${J$
|
|
8815
|
-
`${J$
|
|
8816
|
-
`${J$
|
|
8846
|
+
`${J$2(102)} is blocked by ${J$2(101)} and holds up ${J$2(103)}, and nothing has changed on it for 8 days.`,
|
|
8847
|
+
`${J$2(104)} has been in progress for 13.9 days, longer than 85% of this dossier's finished items took (11 days). It came over from Sprint 41 and hasn't been updated for 5.9 days.`,
|
|
8848
|
+
`${J$2(101)}'s latest build failed, and it blocks ${J$2(102)}: fixing that build unblocks the chain.`
|
|
8817
8849
|
]
|
|
8818
8850
|
},
|
|
8819
8851
|
deployed: {
|
|
8820
8852
|
label: "Where is this work deployed?",
|
|
8821
8853
|
parts: [
|
|
8822
|
-
`The dev environment runs payments-core 1.14.0 (4e1d2a9), which includes ${J$
|
|
8854
|
+
`The dev environment runs payments-core 1.14.0 (4e1d2a9), which includes ${J$2(105)} (pull request #298) and ${J$2(106)} (#296).`,
|
|
8823
8855
|
`The prod environment runs 1.13.2 (1a2b3c4), merged before the sprint, so none of Sprint 42's work is in prod yet.`,
|
|
8824
|
-
`${J$
|
|
8856
|
+
`${J$2(101)} and ${J$2(104)} have pull requests still open, so neither is deployed anywhere.`
|
|
8825
8857
|
]
|
|
8826
8858
|
},
|
|
8827
8859
|
people: {
|
|
8828
8860
|
label: "Who's overloaded or blocked?",
|
|
8829
8861
|
parts: [
|
|
8830
|
-
`Nobody is over the dossier's limit of 2 items in progress. J. Smith has ${J$
|
|
8831
|
-
`A. Chen is blocked: ${J$
|
|
8862
|
+
`Nobody is over the dossier's limit of 2 items in progress. J. Smith has ${J$2(101)} in progress for 6.9 days, and A. Chen has ${J$2(104)} in review for 5.9 days.`,
|
|
8863
|
+
`A. Chen is blocked: ${J$2(102)} waits on ${J$2(101)}, still in progress with J. Smith, whose pull request ${BB(311)} now waits on J. Smith after A. Chen asked for changes.`,
|
|
8832
8864
|
`One review waits on J. Smith: ${BB(305)}, open 3.9 working days. A. Chen's Bitbucket account isn't mapped to her yet; the People view suggests it.`
|
|
8833
8865
|
]
|
|
8834
8866
|
},
|
|
8835
8867
|
review: {
|
|
8836
8868
|
label: "What's stuck in review, and why?",
|
|
8837
8869
|
parts: [
|
|
8838
|
-
`${BB(305)} has waited 3.9 working days for a first review from J. Smith, and it now has a merge conflict. It carries ${J$
|
|
8839
|
-
`${BB(311)} waits on its author: A. Chen asked for changes 0.6 working days ago, and its Jenkins build fails. It carries ${J$
|
|
8870
|
+
`${BB(305)} has waited 3.9 working days for a first review from J. Smith, and it now has a merge conflict. It carries ${J$2(104)}, which came over from Sprint 41.`,
|
|
8871
|
+
`${BB(311)} waits on its author: A. Chen asked for changes 0.6 working days ago, and its Jenkins build fails. It carries ${J$2(101)}, which blocks ${J$2(102)}.`,
|
|
8840
8872
|
`A first review here usually comes within 0.3 working days (the median of 4 pull requests), so 305 is well past it.`
|
|
8841
8873
|
]
|
|
8842
8874
|
}
|
|
@@ -8954,23 +8986,38 @@ var VOICED = {
|
|
|
8954
8986
|
"card-payments": {
|
|
8955
8987
|
crate: [
|
|
8956
8988
|
`Day 7 of 10 on Sprint 42. 3 of 21 points are on the truck, 18 still on the floor.`,
|
|
8957
|
-
`${J$
|
|
8958
|
-
`${J$
|
|
8989
|
+
`${J$2(101)} is the pallet in the aisle: its pull request #311 fails the Jenkins build, and ${J$2(102)} and ${J$2(103)} wait behind it. That is 11 points not moving.`,
|
|
8990
|
+
`${J$2(104)} came over from Sprint 41, and its pull request #305 is still open at the dock. ${J$2(107)} turned up after the sprint started, with no estimate on the label.`
|
|
8959
8991
|
],
|
|
8960
8992
|
harvest: [
|
|
8961
8993
|
`We're on day 7 of 10 of Sprint 42. 3 of 21 points are in the barn, and 18 are still in the ground.`,
|
|
8962
|
-
`${J$
|
|
8963
|
-
`${J$
|
|
8994
|
+
`${J$2(101)}'s pull request #311 keeps failing its Jenkins build, and ${J$2(102)} and ${J$2(103)} can't grow until it's mended. That's 11 points waiting on one fence.`,
|
|
8995
|
+
`${J$2(104)} was carried over from Sprint 41, and its pull request #305 is still open. ${J$2(107)} was planted after the sprint started, with no estimate yet.`
|
|
8964
8996
|
],
|
|
8965
8997
|
starship: [
|
|
8966
8998
|
`Ship's log, day 7 of 10 of Sprint 42. 3 of 21 points complete; 18 remain.`,
|
|
8967
|
-
`Fault: ${J$
|
|
8968
|
-
`${J$
|
|
8999
|
+
`Fault: ${J$2(101)}'s pull request #311 fails its Jenkins build. ${J$2(102)} and ${J$2(103)} are held behind it, 11 points in all.`,
|
|
9000
|
+
`${J$2(104)} transferred from Sprint 41 with pull request #305 still open. ${J$2(107)} came aboard after the sprint started, with no estimate logged.`
|
|
8969
9001
|
],
|
|
8970
9002
|
realm: [
|
|
8971
|
-
`
|
|
8972
|
-
`${J$
|
|
8973
|
-
`${J$
|
|
9003
|
+
`Candles gutter on day 7 of 10 of Sprint 42. 3 of 21 points are won as experience; 18 still stand as the sprint's hit points.`,
|
|
9004
|
+
`${J$2(101)}'s pull request #311 fails its Jenkins build: a critical fail on the saving throw. The road is broken there, and ${J$2(102)} and ${J$2(103)} wait behind it, 11 points held.`,
|
|
9005
|
+
`${J$2(104)} was carried from Sprint 41, its pull request #305 still open. ${J$2(107)} entered the ledger after the sprint began, with no estimate rolled.`
|
|
9006
|
+
],
|
|
9007
|
+
sprawl: [
|
|
9008
|
+
`Day 7 of 10 on the run, Sprint 42. 3 of 21 points are clean, 18 still live.`,
|
|
9009
|
+
`${J$2(101)} hit black ICE: its pull request #311 fails the Jenkins build, and ${J$2(102)} and ${J$2(103)} are stuck behind it. 11 points going nowhere.`,
|
|
9010
|
+
`${J$2(104)} rolled over from Sprint 41, its pull request #305 still open, waiting on the fixer. ${J$2(107)} showed up after the sprint started, no estimate on it.`
|
|
9011
|
+
],
|
|
9012
|
+
frontier: [
|
|
9013
|
+
`Day 7 of 10 on the drive for Sprint 42. 3 of 21 points are in the pen; 18 are still out on the range.`,
|
|
9014
|
+
`${J$2(101)} is the busted axle: its pull request #311 keeps failing the Jenkins boiler test, and ${J$2(102)} and ${J$2(103)} sit behind it. That's 11 points going nowhere.`,
|
|
9015
|
+
`${J$2(104)} rode over from Sprint 41, and its telegram, pull request #305, is still waiting on a signature. ${J$2(107)} joined after the drive set out, with no estimate on it.`
|
|
9016
|
+
],
|
|
9017
|
+
overworld: [
|
|
9018
|
+
`Day 7 of 10 of the journey, Sprint 42. 3 of 21 points are carried home; 18 still lie along the road.`,
|
|
9019
|
+
`A locked door: ${J$2(101)}'s pull request #311 fails its Jenkins build, its dungeon trial. ${J$2(102)} and ${J$2(103)} wait behind that door, 11 points in all. Its key is in that build.`,
|
|
9020
|
+
`${J$2(104)} was carried over from Sprint 41, and its pull request #305 still waits at the shop. ${J$2(107)} joined the journey after it began, with no estimate yet.`
|
|
8974
9021
|
]
|
|
8975
9022
|
},
|
|
8976
9023
|
settlement: {
|
|
@@ -8993,10 +9040,28 @@ var VOICED = {
|
|
|
8993
9040
|
`${A(2307)} was removed from the backlog, which OWI logs as done.`
|
|
8994
9041
|
],
|
|
8995
9042
|
realm: [
|
|
8996
|
-
`
|
|
8997
|
-
`${A(2303)} cannot march until ${A(2302)} is done, and 2302's pull request #87 is still
|
|
8998
|
-
`${A(2304)} was carried from Sprint 41, bound to nothing. ${A(2305)} and ${A(2306)}
|
|
9043
|
+
`The dice fall on day 7 of 9 of Sprint 42. 1 of 16 points is won; 15 remain as hit points. ${A(2305)} is not reckoned in points: it is measured in hours.`,
|
|
9044
|
+
`${A(2303)} cannot march until ${A(2302)} is done, and 2302's pull request #87 is still rolling its saving throw.`,
|
|
9045
|
+
`${A(2304)} was carried from Sprint 41, bound to nothing. ${A(2305)} and ${A(2306)} joined the quest after the sprint began.`,
|
|
8999
9046
|
`${A(2307)} was struck from the backlog, which OWI counts as done.`
|
|
9047
|
+
],
|
|
9048
|
+
sprawl: [
|
|
9049
|
+
`Day 7 of 9 on the run, Sprint 42. 1 of 16 points is clean, 15 still live. ${A(2305)} isn't in that count: it's sized in hours, not points.`,
|
|
9050
|
+
`${A(2303)} can't move until ${A(2302)} is done, and 2302's pull request #87 is still in its ICE check.`,
|
|
9051
|
+
`${A(2304)} rolled over from Sprint 41 with nothing linked to it. ${A(2305)} and ${A(2306)} showed up after the sprint started.`,
|
|
9052
|
+
`${A(2307)} got pulled off the backlog, which OWI logs as done.`
|
|
9053
|
+
],
|
|
9054
|
+
frontier: [
|
|
9055
|
+
`Day 7 of 9 on the drive for Sprint 42. 1 of 16 points is in the pen; 15 are still out. ${A(2305)} isn't in that count: it's tallied in hours, not points.`,
|
|
9056
|
+
`${A(2303)} can't move till ${A(2302)} is done, and 2302's pull request #87 is still in its boiler test.`,
|
|
9057
|
+
`${A(2304)} rode over from Sprint 41 with nothing hitched to it. ${A(2305)} and ${A(2306)} joined after the drive set out.`,
|
|
9058
|
+
`${A(2307)} was struck off the backlog, which OWI books as done.`
|
|
9059
|
+
],
|
|
9060
|
+
overworld: [
|
|
9061
|
+
`Day 7 of 9 of the journey, Sprint 42. 1 of 16 points is carried home; 15 remain. ${A(2305)} is not counted in points: it is measured in hours.`,
|
|
9062
|
+
`${A(2303)} waits at a locked door; its key is ${A(2302)}, and 2302's pull request #87 is still in its dungeon trial.`,
|
|
9063
|
+
`${A(2304)} came over from Sprint 41 with nothing linked to it. ${A(2305)} and ${A(2306)} joined the journey after it began.`,
|
|
9064
|
+
`${A(2307)} was taken off the backlog, which OWI counts as done.`
|
|
9000
9065
|
]
|
|
9001
9066
|
},
|
|
9002
9067
|
"checkout-web": {
|
|
@@ -9016,9 +9081,24 @@ var VOICED = {
|
|
|
9016
9081
|
`${G(45)} has been aboard since day one with no estimate logged.`
|
|
9017
9082
|
],
|
|
9018
9083
|
realm: [
|
|
9019
|
-
`
|
|
9020
|
-
`${G(43)}
|
|
9021
|
-
`${G(45)} was taken up on day one.
|
|
9084
|
+
`The torches burn low on day 7 of 10 of Sprint 42. 1 of 11 points is won; 10 remain as hit points.`,
|
|
9085
|
+
`${G(43)} joined the quest after the sprint began, and its draft pull request #53 fails the e2e-safari check: a critical fail.`,
|
|
9086
|
+
`${G(45)} was taken up on day one. No one has yet rolled its estimate.`
|
|
9087
|
+
],
|
|
9088
|
+
sprawl: [
|
|
9089
|
+
`Day 7 of 10 on the run, Sprint 42. 1 of 11 points is clean, 10 still live.`,
|
|
9090
|
+
`${G(43)} showed up after the sprint started, and its draft pull request #53 fails the e2e-safari check.`,
|
|
9091
|
+
`${G(45)} has been live since day one with no estimate on it.`
|
|
9092
|
+
],
|
|
9093
|
+
frontier: [
|
|
9094
|
+
`Day 7 of 10 on the drive for Sprint 42. 1 of 11 points is in the pen; 10 are still out on the range.`,
|
|
9095
|
+
`${G(43)} joined after the drive set out, and its draft telegram, pull request #53, fails the e2e-safari check.`,
|
|
9096
|
+
`${G(45)} has been out on the trail since day one with no estimate on it.`
|
|
9097
|
+
],
|
|
9098
|
+
overworld: [
|
|
9099
|
+
`Day 7 of 10 of the journey, Sprint 42. 1 of 11 points is carried home; 10 remain.`,
|
|
9100
|
+
`${G(43)} joined the journey after it began, and its draft pull request #53 fails the e2e-safari check.`,
|
|
9101
|
+
`${G(45)} has been on the road since day one, and still has no estimate.`
|
|
9022
9102
|
]
|
|
9023
9103
|
}
|
|
9024
9104
|
};
|
|
@@ -9068,11 +9148,55 @@ var ANALYZE_PARTS = [
|
|
|
9068
9148
|
"people",
|
|
9069
9149
|
"review"
|
|
9070
9150
|
];
|
|
9151
|
+
/**
|
|
9152
|
+
* Analyze's top in the preview (#395): the recommendation and its issues,
|
|
9153
|
+
* written top-down as the prompt asks, before the evidence above. Each line
|
|
9154
|
+
* restates facts the evidence already holds, so it can't drift from the data.
|
|
9155
|
+
*/
|
|
9156
|
+
var ANALYZE_TOP = {
|
|
9157
|
+
"card-payments": {
|
|
9158
|
+
recommendation: `Fix ${J$2(101)}'s failing build first: ${J$2(102)} and ${J$2(103)} are blocked behind it, holding 11 points back.`,
|
|
9159
|
+
issues: [
|
|
9160
|
+
`Build failing: ${J$2(101)}'s latest build failed, and it blocks ${J$2(102)}: fixing that build unblocks the chain.`,
|
|
9161
|
+
`Blocked chain: ${J$2(102)} is blocked by ${J$2(101)} and holds up ${J$2(103)}, and nothing has changed on it for 8 days.`,
|
|
9162
|
+
`Aging carry-over: ${J$2(104)} has been in progress for 13.9 days and came over from Sprint 41; its pull request ${BB(305)} has waited 3.9 working days for a first review.`
|
|
9163
|
+
]
|
|
9164
|
+
},
|
|
9165
|
+
settlement: {
|
|
9166
|
+
recommendation: `Get ${A(2302)} done first: ${A(2303)} can't start until it is, and its pull request #87 is still building.`,
|
|
9167
|
+
issues: [
|
|
9168
|
+
`Blocked: ${A(2303)} is blocked by ${A(2302)}, and nothing has changed on it for 7.9 days.`,
|
|
9169
|
+
`Aging carry-over: ${A(2304)} has been in progress for 15 days, longer than 85% of this dossier's finished items took (8.3 days).`,
|
|
9170
|
+
`Review waiting on its author: ${AZ(87)} waits on D. Okafor: J. Park asked for changes 0.8 working days ago.`
|
|
9171
|
+
]
|
|
9172
|
+
},
|
|
9173
|
+
"checkout-web": {
|
|
9174
|
+
recommendation: `Fix ${GH(51)}'s failing checks first: it has waited on them for 2 working days, with no reviewer asked.`,
|
|
9175
|
+
issues: [
|
|
9176
|
+
`Failing build: ${G(43)}'s latest build failed on e2e-safari, and nothing has changed on it for 6 days.`,
|
|
9177
|
+
`Reviews waiting: ${SDK(12)} and ${GH(52)} each wait 1.3 working days for review from Ada D.`,
|
|
9178
|
+
`No estimate: ${G(45)} has no estimate and hasn't been updated for 7.9 days.`
|
|
9179
|
+
]
|
|
9180
|
+
}
|
|
9181
|
+
};
|
|
9182
|
+
/** The scripted Analyze answer's paragraphs, top-down: Recommendation, Issues, then Evidence. */
|
|
9183
|
+
function analyzeParts(dossier) {
|
|
9184
|
+
const script = SCRIPTS[dossier] ?? {};
|
|
9185
|
+
const top = ANALYZE_TOP[dossier];
|
|
9186
|
+
const evidence = ANALYZE_PARTS.flatMap((id) => script[id]?.parts ?? []);
|
|
9187
|
+
if (!top) return evidence;
|
|
9188
|
+
return [
|
|
9189
|
+
`Recommendation: ${top.recommendation}`,
|
|
9190
|
+
["Issues:", ...top.issues.map((t, i) => `${i + 1}. ${t}`)].join("\n"),
|
|
9191
|
+
"Evidence:",
|
|
9192
|
+
...evidence
|
|
9193
|
+
];
|
|
9194
|
+
}
|
|
9071
9195
|
function scriptedAgent({ delay = 0 } = {}) {
|
|
9072
9196
|
const answer = (dossier, prompt, style, chat) => {
|
|
9073
9197
|
const script = SCRIPTS[dossier] ?? {};
|
|
9074
9198
|
if (prompt === "analyze" && SCRIPTS[dossier]) {
|
|
9075
|
-
const parts =
|
|
9199
|
+
const parts = analyzeParts(dossier).map((text) => ({ text }));
|
|
9076
9200
|
return {
|
|
9077
9201
|
prompt: "Analyze",
|
|
9078
9202
|
parts,
|
|
@@ -9261,6 +9385,8 @@ var SECTION_OF = {
|
|
|
9261
9385
|
status: "work",
|
|
9262
9386
|
sprint: "work",
|
|
9263
9387
|
blocker: "work",
|
|
9388
|
+
"blocker-cleared": "work",
|
|
9389
|
+
"sprint-ended": "work",
|
|
9264
9390
|
"pr-opened": "prs",
|
|
9265
9391
|
"pr-review": "prs",
|
|
9266
9392
|
"pr-merged": "prs",
|
|
@@ -9548,6 +9674,52 @@ function observedEvents(before, after, at, previousSync) {
|
|
|
9548
9674
|
});
|
|
9549
9675
|
}
|
|
9550
9676
|
}
|
|
9677
|
+
const now = blockers(after.items);
|
|
9678
|
+
const areas = new Set(after.items.map((i) => i.source.area));
|
|
9679
|
+
for (const [blocked, was] of old) {
|
|
9680
|
+
const item = byId.get(blocked);
|
|
9681
|
+
if (!item || !unfinished(item)) continue;
|
|
9682
|
+
for (const by of [...was].sort()) {
|
|
9683
|
+
if (now.get(blocked)?.has(by)) continue;
|
|
9684
|
+
const blocker = byId.get(by) ?? before.items.find((i) => i.id === by);
|
|
9685
|
+
if (blocker && !areas.has(blocker.source.area)) continue;
|
|
9686
|
+
const refs = blocker ? { [by]: {
|
|
9687
|
+
label: keyOf(blocker),
|
|
9688
|
+
url: blocker.url
|
|
9689
|
+
} } : {};
|
|
9690
|
+
const e = itemEvent(item, "blocker-cleared", stamp, `no longer blocked by [[${by}]]`, null, by, refs);
|
|
9691
|
+
out.push({
|
|
9692
|
+
...e,
|
|
9693
|
+
key: `blocker-cleared:${blocked}:${by}:${stamp}`,
|
|
9694
|
+
observed: { previousSync },
|
|
9695
|
+
who: item.assignee
|
|
9696
|
+
});
|
|
9697
|
+
}
|
|
9698
|
+
}
|
|
9699
|
+
if (previousSync) for (const sprint of sprints(after.items)) {
|
|
9700
|
+
const end = sprint.end ? Date.parse(sprint.end) : NaN;
|
|
9701
|
+
if (!(end > Date.parse(previousSync) && end <= Date.parse(at))) continue;
|
|
9702
|
+
const items = after.items.filter((i) => i.iteration?.name === sprint.name);
|
|
9703
|
+
const done = items.filter((i) => i.statusCategory === "DONE");
|
|
9704
|
+
const pts = (list) => list.reduce((n, i) => n + (i.estimate?.unit === "points" ? i.estimate.value : 0), 0);
|
|
9705
|
+
const figures = [`${done.length} of ${items.length} ${items.length === 1 ? "item" : "items"} done`, ...pts(items) ? [`${pts(done)} of ${pts(items)} points done`] : []];
|
|
9706
|
+
out.push({
|
|
9707
|
+
key: `sprint-ended:${sprint.name}:${isoOf(sprint.end)}`,
|
|
9708
|
+
kind: "sprint-ended",
|
|
9709
|
+
at: isoOf(sprint.end),
|
|
9710
|
+
subject: `sprint:${sprint.name}`,
|
|
9711
|
+
source: sprint.sources[0]?.connection ?? "",
|
|
9712
|
+
label: sprint.name,
|
|
9713
|
+
title: "",
|
|
9714
|
+
url: null,
|
|
9715
|
+
by: null,
|
|
9716
|
+
text: `ended: ${figures.join(", ")}`,
|
|
9717
|
+
cites: [],
|
|
9718
|
+
refs: {},
|
|
9719
|
+
observed: { previousSync },
|
|
9720
|
+
who: null
|
|
9721
|
+
});
|
|
9722
|
+
}
|
|
9551
9723
|
const previous = new Map(before.deployments.map((d) => [d.id, d]));
|
|
9552
9724
|
for (const d of after.deployments) {
|
|
9553
9725
|
const was = previous.get(d.id);
|
|
@@ -9576,7 +9748,9 @@ function observedEvents(before, after, at, previousSync) {
|
|
|
9576
9748
|
var ORDER = {
|
|
9577
9749
|
status: 0,
|
|
9578
9750
|
sprint: 1,
|
|
9751
|
+
"sprint-ended": 1.5,
|
|
9579
9752
|
blocker: 2,
|
|
9753
|
+
"blocker-cleared": 2.5,
|
|
9580
9754
|
"pr-opened": 3,
|
|
9581
9755
|
"pr-review": 4,
|
|
9582
9756
|
"pr-merged": 5,
|
|
@@ -10420,6 +10594,15 @@ function claudeRuntime(version) {
|
|
|
10420
10594
|
const steps = /* @__PURE__ */ new Map();
|
|
10421
10595
|
let apiKeySource;
|
|
10422
10596
|
let lastStep = null;
|
|
10597
|
+
let streaming = null;
|
|
10598
|
+
const step = (s) => {
|
|
10599
|
+
if (!s) return;
|
|
10600
|
+
const seen = steps.get(s.id);
|
|
10601
|
+
const merged = seen ? higherFigures(seen, s) : s;
|
|
10602
|
+
steps.set(s.id, merged);
|
|
10603
|
+
lastStep = merged;
|
|
10604
|
+
r.usage.report([...steps.values()]);
|
|
10605
|
+
};
|
|
10423
10606
|
const settle = (m) => {
|
|
10424
10607
|
const per = m.modelUsage ?? {};
|
|
10425
10608
|
const first = Object.values(per)[0];
|
|
@@ -10457,7 +10640,16 @@ function claudeRuntime(version) {
|
|
|
10457
10640
|
if (m.parent_tool_use_id) continue;
|
|
10458
10641
|
if (m.type === "stream_event") {
|
|
10459
10642
|
const event = m.event;
|
|
10460
|
-
if (event.type === "message_start")
|
|
10643
|
+
if (event.type === "message_start") {
|
|
10644
|
+
current = "";
|
|
10645
|
+
streaming = event.message ?? null;
|
|
10646
|
+
} else if (event.type === "message_delta" && event.usage && streaming) step(claudeStepUsage({
|
|
10647
|
+
...streaming,
|
|
10648
|
+
usage: {
|
|
10649
|
+
...streaming.usage,
|
|
10650
|
+
...event.usage
|
|
10651
|
+
}
|
|
10652
|
+
}));
|
|
10461
10653
|
else if (event.type === "content_block_delta" && event.delta?.type === "text_delta") {
|
|
10462
10654
|
current += event.delta.text ?? "";
|
|
10463
10655
|
r.onText(current);
|
|
@@ -10465,14 +10657,7 @@ function claudeRuntime(version) {
|
|
|
10465
10657
|
} else if (m.type === "assistant") {
|
|
10466
10658
|
const t = textOf(m.message?.content);
|
|
10467
10659
|
if (t) last = t;
|
|
10468
|
-
|
|
10469
|
-
if (step) {
|
|
10470
|
-
const seen = steps.get(step.id);
|
|
10471
|
-
const merged = seen ? higherFigures(seen, step) : step;
|
|
10472
|
-
steps.set(step.id, merged);
|
|
10473
|
-
lastStep = merged;
|
|
10474
|
-
r.usage.report([...steps.values()]);
|
|
10475
|
-
}
|
|
10660
|
+
step(claudeStepUsage(m.message));
|
|
10476
10661
|
} else if (m.type === "result") {
|
|
10477
10662
|
settle(m);
|
|
10478
10663
|
if (m.subtype === "success" && m.is_error !== true && typeof m.result === "string") return m.result || last;
|
|
@@ -10925,14 +11110,22 @@ var ONE_ON_ONE = /^\s*prepare\s+(?:my\s+)?1:1\s+notes\s+for\s+(.+?)\s*[.?!]?\s*$
|
|
|
10925
11110
|
/** The 1:1 notes question for one person: facts about the work, each citing its id, and nothing about the person. */
|
|
10926
11111
|
var oneOnOnePrompt = (dossier, person) => `Prepare 1:1 notes for ${person} in the dossier "${dossier}". Use person_get for ${person} (people_list if the name doesn't match). Stick to facts about the work: what they have in progress and for how long, their open pull requests and what each waits on, reviews waiting on them, what blocks them, and what they finished or reviewed lately, then two or three questions to ask about blockers and support. Cite every item and pull request by its id. No opinion of the person, no score, and no comparison with anyone else.`;
|
|
10927
11112
|
/**
|
|
10928
|
-
* Analyze (#343): the pulse check one press asks,
|
|
10929
|
-
*
|
|
10930
|
-
*
|
|
10931
|
-
*
|
|
11113
|
+
* Analyze (#343): the pulse check one press asks, every line citing its
|
|
11114
|
+
* items. It isn't a starter chip; the button beside Ask sends its id. "Since
|
|
11115
|
+
* the last Analyze" is found in the worklog, which records every question as
|
|
11116
|
+
* an agent run. It is written top-down (#395), in the Minto order: a
|
|
11117
|
+
* Recommendation line, then at most three Issues, then the Evidence in five
|
|
11118
|
+
* parts, each a label at the start of its line, which the page reads back
|
|
11119
|
+
* out (src/model/analysis.ts) and lays out with the evidence folded. The
|
|
11120
|
+
* labels are plain text, so rule 4's "no Markdown" and the voice's rules
|
|
11121
|
+
* still hold.
|
|
10932
11122
|
*/
|
|
10933
11123
|
var ANALYZE_LABEL = "Analyze";
|
|
10934
11124
|
var analyzePrompt = (d) => [
|
|
10935
|
-
`Give a pulse check of the dossier "${d}":
|
|
11125
|
+
`Give a pulse check of the dossier "${d}", top-down: the answer first, then the reasons, then the evidence. Work the evidence out first, then write it in exactly this order, each label as plain text (not a Markdown heading) at the start of its own line:`,
|
|
11126
|
+
"Recommendation: one or two sentences: the one thing to do first, and why, citing the items it rests on.",
|
|
11127
|
+
"Issues: at most three, the ones that matter most, most important first, each on its own line numbered 1. to 3., as a short name, a colon and one sentence citing its items. Write \"Issues: none\" when nothing stands out.",
|
|
11128
|
+
"Evidence: then these five short parts, in this order, each a paragraph that starts with its name. Cite every item and pull request a line rests on; say plainly when a part has nothing.",
|
|
10936
11129
|
`What changed: since the last Analyze, or the last sync if that is more recent. Read worklog_day for today, then each day before it, back to the first day with a finished agent run asked as "Analyze" (at most 7 days back; this Analyze is in the worklog too, as still running, and doesn't count), and say what moved, merged, failed or recovered.`,
|
|
10937
11130
|
"Who is on what: people_list, for each person and agent with work in progress and how long it has been there. Describe load; never rank or score people.",
|
|
10938
11131
|
"Blocked or stuck in review: owi_query for blocked items and what blocks them, and pr_query for pull requests waiting longest, on what and for how many working days.",
|
|
@@ -11082,6 +11275,16 @@ function serverStale(running, disk) {
|
|
|
11082
11275
|
var DISCLAIMER = "Your report is sent to Imagile LLC to improve toil, and it becomes a public GitHub issue in imagile-dev/toil. Your email address stays private: it is used only to tell you about your issue. Before you send, remove company data: internal URLs and hostnames, ticket keys, repository and project names, people's names, other identifiers and credentials. You are responsible for what you send.";
|
|
11083
11276
|
/** Where `toil feedback` sends a report: the function's terminal endpoint (functions/feedback/, `Report`). */
|
|
11084
11277
|
var FEEDBACK_ENDPOINT = "https://func-toil-feedback.azurewebsites.net/api/report";
|
|
11278
|
+
/**
|
|
11279
|
+
* The form on the site, for anyone whose toil can't send (a build with no
|
|
11280
|
+
* commit, a network that blocks the endpoint). Every link to it reads this one
|
|
11281
|
+
* address: `toil feedback`, Toil UI's Feedback dialog, and the toil skill and
|
|
11282
|
+
* Toil UI's themes doc, which test/feedback-consent.test.ts holds to it. The
|
|
11283
|
+
* site's link check (site/scripts/check-links.mjs) fails the build when it
|
|
11284
|
+
* names no page there, or only an old address that forwards (#435). A form
|
|
11285
|
+
* that moves leaves a forwarding address; this one doesn't rely on it.
|
|
11286
|
+
*/
|
|
11287
|
+
var FEEDBACK_FORM = "https://imagile-dev.github.io/toil/about/feedback/";
|
|
11085
11288
|
var MAX_BODY$1 = 4e3;
|
|
11086
11289
|
var MAX_EMAIL = 254;
|
|
11087
11290
|
var CONTROL = /[\u0000-\u001f\u007f]+/g;
|
|
@@ -11108,8 +11311,22 @@ function buildReport(fields, version, commit) {
|
|
|
11108
11311
|
}
|
|
11109
11312
|
//#endregion
|
|
11110
11313
|
//#region src/feedback.ts
|
|
11314
|
+
/**
|
|
11315
|
+
* The Feedback dialog's seam (#265): `toil feedback`, run through the local
|
|
11316
|
+
* server's `api/feedback` (ui/server/server.ts), never by Toil UI calling
|
|
11317
|
+
* anyone itself. A preview is the command run read-only, so it sends nothing
|
|
11318
|
+
* and returns exactly the report it would send and the disclaimer; sending is
|
|
11319
|
+
* the same command again with the person's yes to its `consent` question,
|
|
11320
|
+
* which the page gives only while its checkbox is ticked for that exact
|
|
11321
|
+
* report. The text the dialog shows is the command's own, from the toil the
|
|
11322
|
+
* server runs, so the page has no copy of the disclaimer to drift.
|
|
11323
|
+
*
|
|
11324
|
+
* The site preview passes a fixture (src/fixtures/feedback.ts) that builds the
|
|
11325
|
+
* same report with toil's own code and sends nothing, saying so. The comment
|
|
11326
|
+
* card goes in the box; the box is locked until you sign the card.
|
|
11327
|
+
*/
|
|
11111
11328
|
/** Why sample data sends nothing, said beside the Send button. */
|
|
11112
|
-
var FEEDBACK_SAMPLE_DISABLED =
|
|
11329
|
+
var FEEDBACK_SAMPLE_DISABLED = `This is sample data, so it sends nothing. Toil UI on your own machine sends through toil feedback, or use the form at ${FEEDBACK_FORM}.`;
|
|
11113
11330
|
//#endregion
|
|
11114
11331
|
//#region src/fixtures/feedback.ts
|
|
11115
11332
|
/**
|
|
@@ -11458,7 +11675,7 @@ function categoryOf(e, items) {
|
|
|
11458
11675
|
/** Who a fact belongs to: its `who`, or for a fact recorded before #345, who its line names. */
|
|
11459
11676
|
function whoOf(e, items) {
|
|
11460
11677
|
if (e.who !== void 0) return e.who;
|
|
11461
|
-
if (e.kind === "blocker") return items.get(e.subject)?.assignee ?? null;
|
|
11678
|
+
if (e.kind === "blocker" || e.kind === "blocker-cleared") return items.get(e.subject)?.assignee ?? null;
|
|
11462
11679
|
return e.by ? {
|
|
11463
11680
|
id: e.by,
|
|
11464
11681
|
name: e.by,
|
|
@@ -11537,6 +11754,9 @@ function buildStandup(input) {
|
|
|
11537
11754
|
case "blocker":
|
|
11538
11755
|
put(g.of(e.source, who), "blocked", fromEvent(e));
|
|
11539
11756
|
break;
|
|
11757
|
+
case "blocker-cleared":
|
|
11758
|
+
put(g.of(e.source, who), "progress", fromEvent(e));
|
|
11759
|
+
break;
|
|
11540
11760
|
case "pr-opened":
|
|
11541
11761
|
case "pr-review":
|
|
11542
11762
|
case "pr-merged":
|
|
@@ -13874,23 +14094,23 @@ var THEME_VOICES = new Map([
|
|
|
13874
14094
|
{
|
|
13875
14095
|
name: "crate",
|
|
13876
14096
|
label: "Crate",
|
|
13877
|
-
description: "toil's
|
|
14097
|
+
description: "The toil site's look: its near-black, the drafting grid and the blue glow, the blue accent gradient, dust drifting in the glow, and the crate in its hard hat when there's nothing to show yet.",
|
|
13878
14098
|
schemes: { "dark": {
|
|
13879
|
-
"bg": "#
|
|
13880
|
-
"surface": "#
|
|
13881
|
-
"raised": "#
|
|
13882
|
-
"ink": "#
|
|
13883
|
-
"muted": "#
|
|
13884
|
-
"line": "#
|
|
13885
|
-
"accent": "#
|
|
13886
|
-
"accentInk": "#
|
|
13887
|
-
"link": "#
|
|
13888
|
-
"focus": "#
|
|
13889
|
-
"ok": "#
|
|
13890
|
-
"warn": "#
|
|
13891
|
-
"danger": "#
|
|
13892
|
-
"bannerBg": "#
|
|
13893
|
-
"bannerInk": "#
|
|
14099
|
+
"bg": "#0f1115",
|
|
14100
|
+
"surface": "#171a21",
|
|
14101
|
+
"raised": "#1e222b",
|
|
14102
|
+
"ink": "#e8eaed",
|
|
14103
|
+
"muted": "#a7afba",
|
|
14104
|
+
"line": "#3a414d",
|
|
14105
|
+
"accent": "#8cc4ff",
|
|
14106
|
+
"accentInk": "#0b1220",
|
|
14107
|
+
"link": "#c2e0ff",
|
|
14108
|
+
"focus": "#8cc4ff",
|
|
14109
|
+
"ok": "#6fd394",
|
|
14110
|
+
"warn": "#f0b849",
|
|
14111
|
+
"danger": "#ff8a80",
|
|
14112
|
+
"bannerBg": "#1e222b",
|
|
14113
|
+
"bannerInk": "#c2e0ff"
|
|
13894
14114
|
} },
|
|
13895
14115
|
fonts: {
|
|
13896
14116
|
"body": "'IBM Plex Sans', system-ui, -apple-system, 'Segoe UI', sans-serif",
|
|
@@ -13905,8 +14125,95 @@ var THEME_VOICES = new Map([
|
|
|
13905
14125
|
"emptyState": "assets/crate-lost.webp",
|
|
13906
14126
|
"mark": "assets/mark.svg",
|
|
13907
14127
|
"loading": "assets/crate-loading.webp",
|
|
13908
|
-
"
|
|
13909
|
-
"
|
|
14128
|
+
"momentSplash": "assets/moments/splash.webp",
|
|
14129
|
+
"momentTote": "assets/moments/tote.svg",
|
|
14130
|
+
"momentSigned": "assets/moments/signed.svg",
|
|
14131
|
+
"momentGauge": "assets/moments/gauge.svg",
|
|
14132
|
+
"momentSplit": "assets/moments/split.svg",
|
|
14133
|
+
"momentAisle": "assets/moments/aisle.svg",
|
|
14134
|
+
"momentMerge": "assets/moments/merge.svg",
|
|
14135
|
+
"momentManifest": "assets/moments/manifest.svg"
|
|
14136
|
+
},
|
|
14137
|
+
moments: {
|
|
14138
|
+
"splash": {
|
|
14139
|
+
"art": {
|
|
14140
|
+
"art": "momentSplash",
|
|
14141
|
+
"width": 360,
|
|
14142
|
+
"height": 327
|
|
14143
|
+
},
|
|
14144
|
+
"motif": "rise",
|
|
14145
|
+
"loop": "bob",
|
|
14146
|
+
"line": "Shift's starting. Pulling the manifests off the rack."
|
|
14147
|
+
},
|
|
14148
|
+
"loader": {
|
|
14149
|
+
"art": {
|
|
14150
|
+
"art": "loading",
|
|
14151
|
+
"width": 240,
|
|
14152
|
+
"height": 160
|
|
14153
|
+
},
|
|
14154
|
+
"loop": "roll",
|
|
14155
|
+
"track": {
|
|
14156
|
+
"art": "momentTote",
|
|
14157
|
+
"size": 18,
|
|
14158
|
+
"count": 4,
|
|
14159
|
+
"motif": "march"
|
|
14160
|
+
},
|
|
14161
|
+
"flavour": [
|
|
14162
|
+
"Checking the bills of lading.",
|
|
14163
|
+
"Counting the crates twice.",
|
|
14164
|
+
"Waiting on the forklift.",
|
|
14165
|
+
"Reading the stencil on the side.",
|
|
14166
|
+
"Signing for it in triplicate."
|
|
14167
|
+
]
|
|
14168
|
+
},
|
|
14169
|
+
"tips": { "label": "Foreman's note" },
|
|
14170
|
+
"entrance": "rise",
|
|
14171
|
+
"tabs": "fade",
|
|
14172
|
+
"events": {
|
|
14173
|
+
"item-done": {
|
|
14174
|
+
"art": "momentSigned",
|
|
14175
|
+
"width": 64,
|
|
14176
|
+
"height": 64,
|
|
14177
|
+
"motif": "stamp",
|
|
14178
|
+
"label": "Signed off"
|
|
14179
|
+
},
|
|
14180
|
+
"build-passed": {
|
|
14181
|
+
"art": "momentGauge",
|
|
14182
|
+
"width": 64,
|
|
14183
|
+
"height": 64,
|
|
14184
|
+
"motif": "pop",
|
|
14185
|
+
"label": "Forklift check passed"
|
|
14186
|
+
},
|
|
14187
|
+
"build-failed": {
|
|
14188
|
+
"art": "momentSplit",
|
|
14189
|
+
"width": 64,
|
|
14190
|
+
"height": 64,
|
|
14191
|
+
"motif": "drop",
|
|
14192
|
+
"label": "Load split"
|
|
14193
|
+
},
|
|
14194
|
+
"blocker-cleared": {
|
|
14195
|
+
"art": "momentAisle",
|
|
14196
|
+
"width": 64,
|
|
14197
|
+
"height": 64,
|
|
14198
|
+
"motif": "slide",
|
|
14199
|
+
"label": "Aisle clear"
|
|
14200
|
+
},
|
|
14201
|
+
"pr-merged": {
|
|
14202
|
+
"art": "momentMerge",
|
|
14203
|
+
"width": 64,
|
|
14204
|
+
"height": 64,
|
|
14205
|
+
"motif": "sweep",
|
|
14206
|
+
"label": "Loaded on the truck"
|
|
14207
|
+
},
|
|
14208
|
+
"sprint-ended": {
|
|
14209
|
+
"art": "momentManifest",
|
|
14210
|
+
"width": 64,
|
|
14211
|
+
"height": 64,
|
|
14212
|
+
"motif": "rise",
|
|
14213
|
+
"label": "Shipment closed"
|
|
14214
|
+
}
|
|
14215
|
+
},
|
|
14216
|
+
"recap": { "label": "Shipment closed" }
|
|
13910
14217
|
},
|
|
13911
14218
|
lexicon: {
|
|
13912
14219
|
"dossiers.lede": "Each dossier is one consignment of work: its repositories, its tracker, its pipelines and its environments, all on one manifest. Pick one to see its stories, pull requests, builds and deployments on the same dock.",
|
|
@@ -13983,7 +14290,97 @@ var THEME_VOICES = new Map([
|
|
|
13983
14290
|
"emptyState": "assets/empty-field.svg",
|
|
13984
14291
|
"loading": "assets/watering-can.svg",
|
|
13985
14292
|
"mark": "assets/mark.svg",
|
|
13986
|
-
"fields": "assets/fields.webp"
|
|
14293
|
+
"fields": "assets/fields.webp",
|
|
14294
|
+
"momentSplash": "assets/moments/splash.webp",
|
|
14295
|
+
"momentSprout": "assets/moments/sprout-sheet.svg",
|
|
14296
|
+
"momentBale": "assets/moments/bale.svg",
|
|
14297
|
+
"momentBasket": "assets/moments/basket.svg",
|
|
14298
|
+
"momentSun": "assets/moments/sun.svg",
|
|
14299
|
+
"momentStorm": "assets/moments/storm.svg",
|
|
14300
|
+
"momentGate": "assets/moments/gate.svg",
|
|
14301
|
+
"momentCart": "assets/moments/cart.svg",
|
|
14302
|
+
"momentMoon": "assets/moments/moon.svg"
|
|
14303
|
+
},
|
|
14304
|
+
moments: {
|
|
14305
|
+
"splash": {
|
|
14306
|
+
"art": {
|
|
14307
|
+
"art": "momentSplash",
|
|
14308
|
+
"width": 480,
|
|
14309
|
+
"height": 320
|
|
14310
|
+
},
|
|
14311
|
+
"motif": "fade",
|
|
14312
|
+
"line": "Morning on the farm. Walking out to the fields."
|
|
14313
|
+
},
|
|
14314
|
+
"loader": {
|
|
14315
|
+
"art": {
|
|
14316
|
+
"art": "momentSprout",
|
|
14317
|
+
"width": 128,
|
|
14318
|
+
"height": 128,
|
|
14319
|
+
"frames": 4
|
|
14320
|
+
},
|
|
14321
|
+
"loop": "frames",
|
|
14322
|
+
"track": {
|
|
14323
|
+
"art": "momentBale",
|
|
14324
|
+
"size": 24,
|
|
14325
|
+
"count": 5,
|
|
14326
|
+
"motif": "grow"
|
|
14327
|
+
},
|
|
14328
|
+
"flavour": [
|
|
14329
|
+
"Watering the rows.",
|
|
14330
|
+
"Checking under the leaves.",
|
|
14331
|
+
"Listening to the weather report.",
|
|
14332
|
+
"Counting the hay bales.",
|
|
14333
|
+
"Shooing the crows off the fence."
|
|
14334
|
+
]
|
|
14335
|
+
},
|
|
14336
|
+
"tips": { "label": "From the almanac" },
|
|
14337
|
+
"entrance": "drop",
|
|
14338
|
+
"tabs": "slide",
|
|
14339
|
+
"events": {
|
|
14340
|
+
"item-done": {
|
|
14341
|
+
"art": "momentBasket",
|
|
14342
|
+
"width": 64,
|
|
14343
|
+
"height": 64,
|
|
14344
|
+
"motif": "pop",
|
|
14345
|
+
"label": "Harvested"
|
|
14346
|
+
},
|
|
14347
|
+
"build-passed": {
|
|
14348
|
+
"art": "momentSun",
|
|
14349
|
+
"width": 64,
|
|
14350
|
+
"height": 64,
|
|
14351
|
+
"motif": "rise",
|
|
14352
|
+
"label": "Fair weather"
|
|
14353
|
+
},
|
|
14354
|
+
"build-failed": {
|
|
14355
|
+
"art": "momentStorm",
|
|
14356
|
+
"width": 64,
|
|
14357
|
+
"height": 64,
|
|
14358
|
+
"motif": "drop",
|
|
14359
|
+
"label": "Storm over the field"
|
|
14360
|
+
},
|
|
14361
|
+
"blocker-cleared": {
|
|
14362
|
+
"art": "momentGate",
|
|
14363
|
+
"width": 64,
|
|
14364
|
+
"height": 64,
|
|
14365
|
+
"motif": "slide",
|
|
14366
|
+
"label": "Gate open"
|
|
14367
|
+
},
|
|
14368
|
+
"pr-merged": {
|
|
14369
|
+
"art": "momentCart",
|
|
14370
|
+
"width": 64,
|
|
14371
|
+
"height": 64,
|
|
14372
|
+
"motif": "sweep",
|
|
14373
|
+
"label": "Brought in"
|
|
14374
|
+
},
|
|
14375
|
+
"sprint-ended": {
|
|
14376
|
+
"art": "momentMoon",
|
|
14377
|
+
"width": 64,
|
|
14378
|
+
"height": 64,
|
|
14379
|
+
"motif": "rise",
|
|
14380
|
+
"label": "Season's end"
|
|
14381
|
+
}
|
|
14382
|
+
},
|
|
14383
|
+
"recap": { "label": "Harvest festival" }
|
|
13987
14384
|
},
|
|
13988
14385
|
terms: {
|
|
13989
14386
|
"board": "Farm plot",
|
|
@@ -14062,7 +14459,98 @@ var THEME_VOICES = new Map([
|
|
|
14062
14459
|
"loading": "assets/lightspeed.svg",
|
|
14063
14460
|
"mark": "assets/mark.svg",
|
|
14064
14461
|
"nebula": "assets/nebula.webp",
|
|
14065
|
-
"emptyState": "assets/empty-sector.webp"
|
|
14462
|
+
"emptyState": "assets/empty-sector.webp",
|
|
14463
|
+
"momentWarp": "assets/moments/warp.webp",
|
|
14464
|
+
"momentSensor": "assets/moments/sensor-sheet.svg",
|
|
14465
|
+
"momentPip": "assets/moments/pip.svg",
|
|
14466
|
+
"momentObjective": "assets/moments/objective.svg",
|
|
14467
|
+
"momentNominal": "assets/moments/nominal.svg",
|
|
14468
|
+
"momentRedAlert": "assets/moments/red-alert.svg",
|
|
14469
|
+
"momentAllClear": "assets/moments/all-clear.svg",
|
|
14470
|
+
"momentDocking": "assets/moments/docking.svg",
|
|
14471
|
+
"momentMission": "assets/moments/mission.svg"
|
|
14472
|
+
},
|
|
14473
|
+
moments: {
|
|
14474
|
+
"splash": {
|
|
14475
|
+
"art": {
|
|
14476
|
+
"art": "momentWarp",
|
|
14477
|
+
"width": 480,
|
|
14478
|
+
"height": 320
|
|
14479
|
+
},
|
|
14480
|
+
"motif": "pop",
|
|
14481
|
+
"line": "Dropping out of warp. Bringing the dossiers on screen."
|
|
14482
|
+
},
|
|
14483
|
+
"loader": {
|
|
14484
|
+
"art": {
|
|
14485
|
+
"art": "momentSensor",
|
|
14486
|
+
"width": 128,
|
|
14487
|
+
"height": 128,
|
|
14488
|
+
"frames": 8
|
|
14489
|
+
},
|
|
14490
|
+
"loop": "frames",
|
|
14491
|
+
"track": {
|
|
14492
|
+
"art": "momentPip",
|
|
14493
|
+
"size": 16,
|
|
14494
|
+
"count": 6,
|
|
14495
|
+
"motif": "blink"
|
|
14496
|
+
},
|
|
14497
|
+
"flavour": [
|
|
14498
|
+
"Long-range sensors sweeping the sector.",
|
|
14499
|
+
"Aligning the navigation array.",
|
|
14500
|
+
"Requesting telemetry from the outer stations.",
|
|
14501
|
+
"Cross-checking the star charts.",
|
|
14502
|
+
"Holding position while the readings come in.",
|
|
14503
|
+
"Routing auxiliary power to the scanners."
|
|
14504
|
+
]
|
|
14505
|
+
},
|
|
14506
|
+
"tips": { "label": "Standing orders" },
|
|
14507
|
+
"entrance": "sweep",
|
|
14508
|
+
"tabs": "fade",
|
|
14509
|
+
"events": {
|
|
14510
|
+
"item-done": {
|
|
14511
|
+
"art": "momentObjective",
|
|
14512
|
+
"width": 64,
|
|
14513
|
+
"height": 64,
|
|
14514
|
+
"motif": "pop",
|
|
14515
|
+
"label": "Objective complete"
|
|
14516
|
+
},
|
|
14517
|
+
"build-passed": {
|
|
14518
|
+
"art": "momentNominal",
|
|
14519
|
+
"width": 64,
|
|
14520
|
+
"height": 64,
|
|
14521
|
+
"motif": "rise",
|
|
14522
|
+
"label": "Systems nominal"
|
|
14523
|
+
},
|
|
14524
|
+
"build-failed": {
|
|
14525
|
+
"art": "momentRedAlert",
|
|
14526
|
+
"width": 64,
|
|
14527
|
+
"height": 64,
|
|
14528
|
+
"motif": "drop",
|
|
14529
|
+
"label": "Red alert"
|
|
14530
|
+
},
|
|
14531
|
+
"blocker-cleared": {
|
|
14532
|
+
"art": "momentAllClear",
|
|
14533
|
+
"width": 64,
|
|
14534
|
+
"height": 64,
|
|
14535
|
+
"motif": "slide",
|
|
14536
|
+
"label": "All clear"
|
|
14537
|
+
},
|
|
14538
|
+
"pr-merged": {
|
|
14539
|
+
"art": "momentDocking",
|
|
14540
|
+
"width": 64,
|
|
14541
|
+
"height": 64,
|
|
14542
|
+
"motif": "sweep",
|
|
14543
|
+
"label": "Docking complete"
|
|
14544
|
+
},
|
|
14545
|
+
"sprint-ended": {
|
|
14546
|
+
"art": "momentMission",
|
|
14547
|
+
"width": 64,
|
|
14548
|
+
"height": 64,
|
|
14549
|
+
"motif": "rise",
|
|
14550
|
+
"label": "Mission complete"
|
|
14551
|
+
}
|
|
14552
|
+
},
|
|
14553
|
+
"recap": { "label": "Mission debrief" }
|
|
14066
14554
|
},
|
|
14067
14555
|
terms: {
|
|
14068
14556
|
"sprint": "Ship's status",
|
|
@@ -14107,7 +14595,7 @@ var THEME_VOICES = new Map([
|
|
|
14107
14595
|
{
|
|
14108
14596
|
name: "realm",
|
|
14109
14597
|
label: "Realm",
|
|
14110
|
-
description: "A grimdark house ledger: soot and iron around aged vellum, leather-bound folios with wax-sealed headings, the dependency graph as an engraved war-table map,
|
|
14598
|
+
description: "A grimdark house ledger kept as a tabletop campaign: soot and iron around aged vellum, leather-bound folios with wax-sealed headings, a dungeon map at the foot of every page, a d20 rolling while a view loads, the dependency graph as an engraved war-table map, an item's fields as a character sheet, and the agent as the dungeon master.",
|
|
14111
14599
|
schemes: { "light": {
|
|
14112
14600
|
"bg": "#cbbd9e",
|
|
14113
14601
|
"surface": "#e2d7bf",
|
|
@@ -14144,48 +14632,688 @@ var THEME_VOICES = new Map([
|
|
|
14144
14632
|
"blocked": "assets/broken-road.svg",
|
|
14145
14633
|
"empty": "assets/ledger.svg",
|
|
14146
14634
|
"mark": "assets/mark.svg",
|
|
14147
|
-
"
|
|
14635
|
+
"d20": "assets/d20.svg",
|
|
14636
|
+
"dungeon": "assets/dungeon-map.webp",
|
|
14637
|
+
"rest": "assets/rest.svg",
|
|
14638
|
+
"momentTray": "assets/moments/tray.webp",
|
|
14639
|
+
"momentCandle": "assets/moments/candle.svg",
|
|
14640
|
+
"momentScroll": "assets/moments/scroll.svg",
|
|
14641
|
+
"momentBlade": "assets/moments/broken-blade.svg",
|
|
14642
|
+
"momentRoad": "assets/moments/open-road.svg",
|
|
14643
|
+
"momentLedger": "assets/moments/ledger-quill.svg",
|
|
14644
|
+
"momentCampfire": "assets/moments/campfire.svg"
|
|
14645
|
+
},
|
|
14646
|
+
moments: {
|
|
14647
|
+
"splash": {
|
|
14648
|
+
"art": {
|
|
14649
|
+
"art": "d20",
|
|
14650
|
+
"width": 104,
|
|
14651
|
+
"height": 104
|
|
14652
|
+
},
|
|
14653
|
+
"motif": "stamp",
|
|
14654
|
+
"face": {
|
|
14655
|
+
"value": "sprint-day",
|
|
14656
|
+
"max": 20
|
|
14657
|
+
},
|
|
14658
|
+
"line": "The candles are lit and the party is gathered. The dungeon master rolls for the ledgers."
|
|
14659
|
+
},
|
|
14660
|
+
"loader": {
|
|
14661
|
+
"art": {
|
|
14662
|
+
"art": "d20",
|
|
14663
|
+
"width": 88,
|
|
14664
|
+
"height": 88
|
|
14665
|
+
},
|
|
14666
|
+
"loop": "tumble",
|
|
14667
|
+
"track": {
|
|
14668
|
+
"art": "momentCandle",
|
|
14669
|
+
"size": 26,
|
|
14670
|
+
"count": 5,
|
|
14671
|
+
"motif": "blink"
|
|
14672
|
+
},
|
|
14673
|
+
"flavour": [
|
|
14674
|
+
"The dungeon master consults the quest log.",
|
|
14675
|
+
"Rolling initiative for the party.",
|
|
14676
|
+
"Counting hit points against the ledger.",
|
|
14677
|
+
"Tallying the party's experience points.",
|
|
14678
|
+
"Making a saving throw against the tracker.",
|
|
14679
|
+
"The party takes a short rest while the riders return."
|
|
14680
|
+
]
|
|
14681
|
+
},
|
|
14682
|
+
"tips": { "label": "From the rulebook" },
|
|
14683
|
+
"entrance": "drop",
|
|
14684
|
+
"tabs": "fade",
|
|
14685
|
+
"events": {
|
|
14686
|
+
"item-done": {
|
|
14687
|
+
"art": "momentScroll",
|
|
14688
|
+
"width": 64,
|
|
14689
|
+
"height": 64,
|
|
14690
|
+
"motif": "stamp",
|
|
14691
|
+
"label": "Quest complete"
|
|
14692
|
+
},
|
|
14693
|
+
"build-passed": {
|
|
14694
|
+
"art": "d20",
|
|
14695
|
+
"width": 64,
|
|
14696
|
+
"height": 64,
|
|
14697
|
+
"motif": "pop",
|
|
14698
|
+
"label": "Natural 20"
|
|
14699
|
+
},
|
|
14700
|
+
"build-failed": {
|
|
14701
|
+
"art": "momentBlade",
|
|
14702
|
+
"width": 64,
|
|
14703
|
+
"height": 64,
|
|
14704
|
+
"motif": "drop",
|
|
14705
|
+
"label": "Critical fail"
|
|
14706
|
+
},
|
|
14707
|
+
"blocker-cleared": {
|
|
14708
|
+
"art": "momentRoad",
|
|
14709
|
+
"width": 64,
|
|
14710
|
+
"height": 64,
|
|
14711
|
+
"motif": "slide",
|
|
14712
|
+
"label": "The road is open"
|
|
14713
|
+
},
|
|
14714
|
+
"pr-merged": {
|
|
14715
|
+
"art": "momentLedger",
|
|
14716
|
+
"width": 64,
|
|
14717
|
+
"height": 64,
|
|
14718
|
+
"motif": "sweep",
|
|
14719
|
+
"label": "Entered in the ledger"
|
|
14720
|
+
},
|
|
14721
|
+
"sprint-ended": {
|
|
14722
|
+
"art": "momentCampfire",
|
|
14723
|
+
"width": 64,
|
|
14724
|
+
"height": 64,
|
|
14725
|
+
"motif": "rise",
|
|
14726
|
+
"label": "Long rest"
|
|
14727
|
+
}
|
|
14728
|
+
},
|
|
14729
|
+
"recap": { "label": "Session recap" }
|
|
14148
14730
|
},
|
|
14149
14731
|
terms: {
|
|
14150
14732
|
"epic": "Campaign",
|
|
14151
14733
|
"sprint": "Ledger",
|
|
14152
|
-
"agent": "
|
|
14734
|
+
"agent": "Dungeon master",
|
|
14153
14735
|
"dependencies": "War table",
|
|
14154
|
-
"blocked": "Broken road"
|
|
14736
|
+
"blocked": "Broken road",
|
|
14737
|
+
"people": "Party",
|
|
14738
|
+
"analyses": "Quest log",
|
|
14739
|
+
"priority": "Initiative",
|
|
14740
|
+
"builds": "Saving throws",
|
|
14741
|
+
"passed": "Natural 20",
|
|
14742
|
+
"failed": "Critical fail",
|
|
14743
|
+
"pointsDone": "Experience points",
|
|
14744
|
+
"pointsLeft": "Hit points"
|
|
14155
14745
|
},
|
|
14156
14746
|
lexicon: {
|
|
14157
|
-
"dossiers.lede": "Each dossier is one
|
|
14158
|
-
"dossier.eyebrow": "The ledger",
|
|
14159
|
-
"settings.eyebrow": "The
|
|
14160
|
-
"attention.note": "Open items ranked by their insights, the gravest first. Each insight names the record it rests on.",
|
|
14747
|
+
"dossiers.lede": "Each dossier is one campaign in the house's ledger: its repositories, its tracker, its pipelines and its environments. Choose one to read its quests, pull requests, builds and deployments on a single page.",
|
|
14748
|
+
"dossier.eyebrow": "The campaign ledger",
|
|
14749
|
+
"settings.eyebrow": "The rules of the table",
|
|
14750
|
+
"attention.note": "Open items ranked by their insights, in initiative order, the gravest first. Each insight names the record it rests on.",
|
|
14161
14751
|
"aging.note": "How long each item in progress has stood unfinished, from its history, oldest first.",
|
|
14162
|
-
"trace.note": "Each work item with the pull requests that name it, their latest builds, and the environments where it now stands.",
|
|
14163
|
-
"graph.note": "Arrows run the way each link reads, from the source's own links. Blocking chains run left to right across the war table.",
|
|
14164
|
-
"ask.note": "Answers cite the items they rest on. The
|
|
14165
|
-
"empty.dossiers": "The ledgers are empty: toil sees no dossiers yet. A
|
|
14166
|
-
"empty.sprint": "No sprint is entered in this dossier's work items.",
|
|
14167
|
-
"empty.burnup": "No sprint is entered, so there is
|
|
14752
|
+
"trace.note": "Each work item with the pull requests that name it, their latest builds, each one a saving throw, and the environments where it now stands.",
|
|
14753
|
+
"graph.note": "Arrows run the way each link reads, from the source's own links. Blocking chains run left to right across the war table, room to room as on a dungeon map.",
|
|
14754
|
+
"ask.note": "Answers cite the items they rest on. The dungeon master narrates; it never changes a ticket. What it counsels comes back as a proposal, for you to seal.",
|
|
14755
|
+
"empty.dossiers": "The ledgers are empty: toil sees no dossiers yet. A campaign begins with toil dossiers init.",
|
|
14756
|
+
"empty.sprint": "No sprint is entered in this dossier's work items, so there are no hit points to count.",
|
|
14757
|
+
"empty.burnup": "No sprint is entered, so there is no experience to reckon.",
|
|
14168
14758
|
"empty.column": "None stand here.",
|
|
14169
|
-
"empty.prs": "No pull requests have come before the
|
|
14170
|
-
"empty.builds": "No builds are recorded for this dossier's pull requests.",
|
|
14759
|
+
"empty.prs": "No pull requests have come before the table for this dossier.",
|
|
14760
|
+
"empty.builds": "No builds are recorded for this dossier's pull requests: no saving throw has been rolled.",
|
|
14171
14761
|
"empty.deployments": "This dossier names no environment, so no rider brings word of deployments.",
|
|
14172
|
-
"empty.links": "No links between this dossier's items. The
|
|
14173
|
-
"empty.ask": "Pick a question, or ask your own. The
|
|
14174
|
-
"loading.dossiers": "
|
|
14175
|
-
"loading.dossier": "
|
|
14176
|
-
"loading.graph": "
|
|
14177
|
-
"loading.answer": "The
|
|
14178
|
-
"ask.placeholder": "
|
|
14179
|
-
"ask.placeholder.short": "
|
|
14180
|
-
"ask.welcome": "
|
|
14762
|
+
"empty.links": "No links between this dossier's items. The dungeon map is bare.",
|
|
14763
|
+
"empty.ask": "Pick a question, or ask your own. The dungeon master cites every record an answer rests on.",
|
|
14764
|
+
"loading.dossiers": "Rolling for the ledgers…",
|
|
14765
|
+
"loading.dossier": "Rolling to open the ledger of {name}…",
|
|
14766
|
+
"loading.graph": "Rolling to map the war table…",
|
|
14767
|
+
"loading.answer": "The dungeon master rolls behind the screen…",
|
|
14768
|
+
"ask.placeholder": "Ask the dungeon master about {name}",
|
|
14769
|
+
"ask.placeholder.short": "Ask the dungeon master",
|
|
14770
|
+
"ask.welcome": "Ask the dungeon master about {name}: this season's ledger, the party and their charges, which roads are broken. Every answer names the records it rests on, and no roll changes them.",
|
|
14181
14771
|
"status.cache": "Consulting the ledger",
|
|
14182
14772
|
"status.live": "Sending a rider to the tracker",
|
|
14183
|
-
"status.registry": "Reading the
|
|
14184
|
-
"status.writing": "
|
|
14185
|
-
"status.done": "
|
|
14773
|
+
"status.registry": "Reading the rulebook",
|
|
14774
|
+
"status.writing": "Narrating the reply",
|
|
14775
|
+
"status.done": "Resolved in {seconds} s",
|
|
14186
14776
|
"status.stopped": "Withdrawn after {seconds} s"
|
|
14187
14777
|
},
|
|
14188
|
-
voice: "Speak as the
|
|
14778
|
+
voice: "Speak as the dungeon master of a grim campaign, narrating to the party at the table by candlelight: dramatic but brief, in short, weighty sentences, never cheerful and never unkind to any person. Epics are campaigns, the sprint is this season's ledger, its points left are hit points and its points done experience, a blocker is a broken road, a build is a saving throw, passed a natural 20 and failed a critical fail, and the people are the party. Set the scene in one line, then report the ledger, then the threats, then what the party should do next. The rules are never bent: every figure, citation and fact stays exactly as the data gives it. The dice go around the facts, never instead of them.",
|
|
14779
|
+
alignments: {
|
|
14780
|
+
"label": "Rolled alignment",
|
|
14781
|
+
"values": [
|
|
14782
|
+
"Lawful good",
|
|
14783
|
+
"Neutral good",
|
|
14784
|
+
"Chaotic good",
|
|
14785
|
+
"Lawful neutral",
|
|
14786
|
+
"True neutral",
|
|
14787
|
+
"Chaotic neutral"
|
|
14788
|
+
]
|
|
14789
|
+
}
|
|
14790
|
+
},
|
|
14791
|
+
{
|
|
14792
|
+
name: "sprawl",
|
|
14793
|
+
label: "Sprawl",
|
|
14794
|
+
description: "A terminal at heart in a rain-soaked megacity: monospace type and a block cursor, faint scanlines and a CRT edge glow, neon magenta and cyan on deep blue-black, the skyline at the foot of the page, rain on the glass, the dependency graph as a net map, and the agent as a netrunner.",
|
|
14795
|
+
schemes: { "dark": {
|
|
14796
|
+
"bg": "#07060f",
|
|
14797
|
+
"surface": "#0e0c1d",
|
|
14798
|
+
"raised": "#17142c",
|
|
14799
|
+
"ink": "#eaf6ff",
|
|
14800
|
+
"muted": "#a8a3cf",
|
|
14801
|
+
"line": "#3b2f6b",
|
|
14802
|
+
"accent": "#ff2e88",
|
|
14803
|
+
"accentInk": "#12020a",
|
|
14804
|
+
"link": "#3ff0ff",
|
|
14805
|
+
"focus": "#f2ff4a",
|
|
14806
|
+
"ok": "#39ff9c",
|
|
14807
|
+
"warn": "#ffd23f",
|
|
14808
|
+
"danger": "#ff6470",
|
|
14809
|
+
"bannerBg": "#0e0c1d",
|
|
14810
|
+
"bannerInk": "#3ff0ff"
|
|
14811
|
+
} },
|
|
14812
|
+
fonts: {
|
|
14813
|
+
"body": "'Fira Code', ui-monospace, 'SFMono-Regular', Menlo, Consolas, monospace",
|
|
14814
|
+
"display": "'Chakra Petch', 'Fira Code', ui-monospace, monospace",
|
|
14815
|
+
"mono": "'Fira Code', ui-monospace, 'SFMono-Regular', Menlo, Consolas, monospace"
|
|
14816
|
+
},
|
|
14817
|
+
radius: "0px",
|
|
14818
|
+
motion: "subtle",
|
|
14819
|
+
ambient: { "particles": "rain" },
|
|
14820
|
+
sounds: {},
|
|
14821
|
+
assets: {
|
|
14822
|
+
"skyline": "assets/skyline.webp",
|
|
14823
|
+
"netMap": "assets/net-map.svg",
|
|
14824
|
+
"netrunner": "assets/netrunner.svg",
|
|
14825
|
+
"blackIce": "assets/black-ice.svg",
|
|
14826
|
+
"loading": "assets/jack-in.webp",
|
|
14827
|
+
"emptyState": "assets/dead-drop.webp",
|
|
14828
|
+
"mark": "assets/mark.svg",
|
|
14829
|
+
"momentBoot": "assets/moments/boot-sheet.webp",
|
|
14830
|
+
"momentShard": "assets/moments/shard-sheet.svg",
|
|
14831
|
+
"momentCipher": "assets/moments/cipher-block.svg",
|
|
14832
|
+
"momentGig": "assets/moments/gig-closed.svg",
|
|
14833
|
+
"momentBreach": "assets/moments/ice-breached.svg",
|
|
14834
|
+
"momentTripped": "assets/moments/ice-tripped.svg",
|
|
14835
|
+
"momentCracked": "assets/moments/ice-cracked.svg",
|
|
14836
|
+
"momentPayload": "assets/moments/payload.svg",
|
|
14837
|
+
"momentRunOver": "assets/moments/run-over.svg"
|
|
14838
|
+
},
|
|
14839
|
+
moments: {
|
|
14840
|
+
"splash": {
|
|
14841
|
+
"art": {
|
|
14842
|
+
"art": "momentBoot",
|
|
14843
|
+
"width": 336,
|
|
14844
|
+
"height": 210,
|
|
14845
|
+
"frames": 2
|
|
14846
|
+
},
|
|
14847
|
+
"motif": "fade",
|
|
14848
|
+
"line": "Rain on the glass. Jacking in."
|
|
14849
|
+
},
|
|
14850
|
+
"loader": {
|
|
14851
|
+
"art": {
|
|
14852
|
+
"art": "momentShard",
|
|
14853
|
+
"width": 96,
|
|
14854
|
+
"height": 96,
|
|
14855
|
+
"frames": 4
|
|
14856
|
+
},
|
|
14857
|
+
"loop": "frames",
|
|
14858
|
+
"track": {
|
|
14859
|
+
"art": "momentCipher",
|
|
14860
|
+
"size": 14,
|
|
14861
|
+
"count": 6,
|
|
14862
|
+
"motif": "blink"
|
|
14863
|
+
},
|
|
14864
|
+
"flavour": [
|
|
14865
|
+
"Decrypting the data shard.",
|
|
14866
|
+
"Spoofing the handshake.",
|
|
14867
|
+
"Routing around the black ICE.",
|
|
14868
|
+
"Waiting on the fixer to pick up.",
|
|
14869
|
+
"Rain on the uplink. Retrying.",
|
|
14870
|
+
"Counting the hops to the tracker."
|
|
14871
|
+
]
|
|
14872
|
+
},
|
|
14873
|
+
"tips": { "label": "Word on the street" },
|
|
14874
|
+
"entrance": "sweep",
|
|
14875
|
+
"tabs": "fade",
|
|
14876
|
+
"events": {
|
|
14877
|
+
"item-done": {
|
|
14878
|
+
"art": "momentGig",
|
|
14879
|
+
"width": 64,
|
|
14880
|
+
"height": 64,
|
|
14881
|
+
"motif": "stamp",
|
|
14882
|
+
"label": "Gig closed"
|
|
14883
|
+
},
|
|
14884
|
+
"build-passed": {
|
|
14885
|
+
"art": "momentBreach",
|
|
14886
|
+
"width": 64,
|
|
14887
|
+
"height": 64,
|
|
14888
|
+
"motif": "pop",
|
|
14889
|
+
"label": "ICE breached"
|
|
14890
|
+
},
|
|
14891
|
+
"build-failed": {
|
|
14892
|
+
"art": "momentTripped",
|
|
14893
|
+
"width": 64,
|
|
14894
|
+
"height": 64,
|
|
14895
|
+
"motif": "drop",
|
|
14896
|
+
"label": "Tripped the ICE"
|
|
14897
|
+
},
|
|
14898
|
+
"blocker-cleared": {
|
|
14899
|
+
"art": "momentCracked",
|
|
14900
|
+
"width": 64,
|
|
14901
|
+
"height": 64,
|
|
14902
|
+
"motif": "slide",
|
|
14903
|
+
"label": "Black ICE cracked"
|
|
14904
|
+
},
|
|
14905
|
+
"pr-merged": {
|
|
14906
|
+
"art": "momentPayload",
|
|
14907
|
+
"width": 64,
|
|
14908
|
+
"height": 64,
|
|
14909
|
+
"motif": "sweep",
|
|
14910
|
+
"label": "Payload delivered"
|
|
14911
|
+
},
|
|
14912
|
+
"sprint-ended": {
|
|
14913
|
+
"art": "momentRunOver",
|
|
14914
|
+
"width": 64,
|
|
14915
|
+
"height": 64,
|
|
14916
|
+
"motif": "rise",
|
|
14917
|
+
"label": "End of the run"
|
|
14918
|
+
}
|
|
14919
|
+
},
|
|
14920
|
+
"recap": { "label": "Run debrief" }
|
|
14921
|
+
},
|
|
14922
|
+
terms: {
|
|
14923
|
+
"epic": "Contract",
|
|
14924
|
+
"board": "Gig board",
|
|
14925
|
+
"sprint": "The run",
|
|
14926
|
+
"agent": "Netrunner",
|
|
14927
|
+
"dependencies": "Net map",
|
|
14928
|
+
"blocked": "Black ICE"
|
|
14929
|
+
},
|
|
14930
|
+
lexicon: {
|
|
14931
|
+
"dossiers.lede": "Each dossier is one job in the sprawl: its repositories, its tracker, its pipelines and its environments. Jack into one to pull its stories, pull requests, builds and deployments onto one screen.",
|
|
14932
|
+
"dossier.eyebrow": "Job file",
|
|
14933
|
+
"settings.eyebrow": "Rig config",
|
|
14934
|
+
"attention.note": "Open gigs ranked by their insights, hottest first. Each insight names the data it rests on. Trust the data, not the rumour.",
|
|
14935
|
+
"aging.note": "How long each gig in progress has been running, from its history, oldest first.",
|
|
14936
|
+
"trace.note": "Each work item with the pull requests that name it, their latest ICE checks, and the environments it has jacked into.",
|
|
14937
|
+
"graph.note": "Arrows run the way each link reads, from the source's own links. Blocking chains run left to right across the net.",
|
|
14938
|
+
"ask.note": "Answers cite the gigs they rest on. The netrunner reads; it never changes a ticket. What it suggests comes back as a proposal, for you to run.",
|
|
14939
|
+
"empty.dossiers": "No jobs on the wire: toil sees no dossiers yet. Cut one with toil dossiers init.",
|
|
14940
|
+
"empty.sprint": "No run is live in this dossier's work items. The street is quiet.",
|
|
14941
|
+
"empty.burnup": "No run is live, so there is nothing to burn up.",
|
|
14942
|
+
"empty.column": "Dead channel.",
|
|
14943
|
+
"empty.prs": "No payloads waiting on the fixer for this dossier.",
|
|
14944
|
+
"empty.builds": "No ICE checks logged for this dossier's pull requests.",
|
|
14945
|
+
"empty.deployments": "This dossier names no environment, so there is no prod to jack into.",
|
|
14946
|
+
"empty.links": "No links between this dossier's items. The net map is dark.",
|
|
14947
|
+
"empty.ask": "Pick a question, or ask your own. The netrunner cites every record it touched.",
|
|
14948
|
+
"loading.dossiers": "Pinging the dossiers…",
|
|
14949
|
+
"loading.dossier": "Jacking into {name}…",
|
|
14950
|
+
"loading.graph": "Tracing the net map…",
|
|
14951
|
+
"loading.answer": "Running the numbers…",
|
|
14952
|
+
"ask.placeholder": "Ping the netrunner about {name}",
|
|
14953
|
+
"ask.placeholder.short": "Ping the netrunner",
|
|
14954
|
+
"ask.welcome": "Ping the netrunner about {name}: the run, who is on which gig, where the black ICE sits. Every answer cites the records it rests on.",
|
|
14955
|
+
"status.cache": "Reading the local cache",
|
|
14956
|
+
"status.live": "Jacking in through toil",
|
|
14957
|
+
"status.registry": "Reading the command spec",
|
|
14958
|
+
"status.writing": "Typing",
|
|
14959
|
+
"status.done": "Clean exit in {seconds} s",
|
|
14960
|
+
"status.stopped": "Flatlined after {seconds} s"
|
|
14961
|
+
},
|
|
14962
|
+
voice: "Talk like a laconic street-level netrunner reporting from a rain-soaked megacity: clipped, slangy, a little paranoid, never cruel. Work items are gigs, the sprint is the run, a pull request is a payload waiting on the fixer, a build is an ICE check, a deployment is jacking in to prod, and a blocker is black ICE. Lead with what is burning and who it is stuck behind, then what clears it. Short lines, no hype, no exclamation marks, and nothing ever aimed at a person: the paranoia is about the systems. The slang goes around the facts, never instead of them."
|
|
14963
|
+
},
|
|
14964
|
+
{
|
|
14965
|
+
name: "frontier",
|
|
14966
|
+
label: "Frontier",
|
|
14967
|
+
description: "Steampunk on the wild west frontier: brass, copper and riveted iron over sun-bleached desert wood, panels framed in riveted brass plate, pressure gauges on the tallies, the dependency graph as a railroad survey map, dust and drifting steam, and the agent as a dry telegraph operator.",
|
|
14968
|
+
schemes: { "light": {
|
|
14969
|
+
"bg": "#d6c4a0",
|
|
14970
|
+
"surface": "#efe3c8",
|
|
14971
|
+
"raised": "#f6eedb",
|
|
14972
|
+
"ink": "#22170d",
|
|
14973
|
+
"muted": "#4b3925",
|
|
14974
|
+
"line": "#97794f",
|
|
14975
|
+
"accent": "#8a3812",
|
|
14976
|
+
"accentInk": "#fbf1de",
|
|
14977
|
+
"link": "#1f4859",
|
|
14978
|
+
"focus": "#1e4e85",
|
|
14979
|
+
"ok": "#2e5a1c",
|
|
14980
|
+
"warn": "#683f00",
|
|
14981
|
+
"danger": "#8c1c10",
|
|
14982
|
+
"bannerBg": "#1f1b17",
|
|
14983
|
+
"bannerInk": "#ecd9ad"
|
|
14984
|
+
} },
|
|
14985
|
+
fonts: {
|
|
14986
|
+
"body": "'Bitter', Georgia, 'Times New Roman', serif",
|
|
14987
|
+
"display": "'Rye', 'Bitter', Georgia, serif",
|
|
14988
|
+
"mono": "ui-monospace, 'SFMono-Regular', Menlo, Consolas, monospace"
|
|
14989
|
+
},
|
|
14990
|
+
radius: "3px",
|
|
14991
|
+
motion: "subtle",
|
|
14992
|
+
ambient: { "particles": "steam" },
|
|
14993
|
+
sounds: {},
|
|
14994
|
+
assets: {
|
|
14995
|
+
"wood": "assets/wood.webp",
|
|
14996
|
+
"frame": "assets/brass-plate.svg",
|
|
14997
|
+
"rail": "assets/rivet-rail.svg",
|
|
14998
|
+
"gauge": "assets/gauge.svg",
|
|
14999
|
+
"map": "assets/survey-map.webp",
|
|
15000
|
+
"blocked": "assets/busted-axle.svg",
|
|
15001
|
+
"operator": "assets/telegraph-key.svg",
|
|
15002
|
+
"emptyState": "assets/wanted-poster.webp",
|
|
15003
|
+
"mark": "assets/mark.svg",
|
|
15004
|
+
"loading": "assets/locomotive.webp",
|
|
15005
|
+
"momentDepot": "assets/moments/depot.webp",
|
|
15006
|
+
"momentGauge": "assets/moments/gauge-sheet.svg",
|
|
15007
|
+
"momentPuff": "assets/moments/puff.svg",
|
|
15008
|
+
"momentPaid": "assets/moments/paid.svg",
|
|
15009
|
+
"momentWhistle": "assets/moments/whistle.svg",
|
|
15010
|
+
"momentBlown": "assets/moments/blown.svg",
|
|
15011
|
+
"momentAxle": "assets/moments/axle.svg",
|
|
15012
|
+
"momentTelegram": "assets/moments/telegram.svg",
|
|
15013
|
+
"momentWatch": "assets/moments/watch.svg"
|
|
15014
|
+
},
|
|
15015
|
+
moments: {
|
|
15016
|
+
"splash": {
|
|
15017
|
+
"art": {
|
|
15018
|
+
"art": "momentDepot",
|
|
15019
|
+
"width": 480,
|
|
15020
|
+
"height": 320
|
|
15021
|
+
},
|
|
15022
|
+
"motif": "sweep",
|
|
15023
|
+
"line": "Train's pulling in. Unloading the dossiers at the depot."
|
|
15024
|
+
},
|
|
15025
|
+
"loader": {
|
|
15026
|
+
"art": {
|
|
15027
|
+
"art": "momentGauge",
|
|
15028
|
+
"width": 128,
|
|
15029
|
+
"height": 128,
|
|
15030
|
+
"frames": 8
|
|
15031
|
+
},
|
|
15032
|
+
"loop": "frames",
|
|
15033
|
+
"track": {
|
|
15034
|
+
"art": "momentPuff",
|
|
15035
|
+
"size": 24,
|
|
15036
|
+
"count": 5,
|
|
15037
|
+
"motif": "grow"
|
|
15038
|
+
},
|
|
15039
|
+
"flavour": [
|
|
15040
|
+
"Stoking the firebox.",
|
|
15041
|
+
"Tapping the pressure gauge.",
|
|
15042
|
+
"Waiting on the wire from the next station.",
|
|
15043
|
+
"Taking on water at the tank.",
|
|
15044
|
+
"Oiling the drive rods.",
|
|
15045
|
+
"Checking the timetable twice."
|
|
15046
|
+
]
|
|
15047
|
+
},
|
|
15048
|
+
"tips": { "label": "Off the wire" },
|
|
15049
|
+
"entrance": "slide",
|
|
15050
|
+
"tabs": "fade",
|
|
15051
|
+
"events": {
|
|
15052
|
+
"item-done": {
|
|
15053
|
+
"art": "momentPaid",
|
|
15054
|
+
"width": 64,
|
|
15055
|
+
"height": 64,
|
|
15056
|
+
"motif": "stamp",
|
|
15057
|
+
"label": "Paid in full"
|
|
15058
|
+
},
|
|
15059
|
+
"build-passed": {
|
|
15060
|
+
"art": "momentWhistle",
|
|
15061
|
+
"width": 64,
|
|
15062
|
+
"height": 64,
|
|
15063
|
+
"motif": "rise",
|
|
15064
|
+
"label": "Full head of steam"
|
|
15065
|
+
},
|
|
15066
|
+
"build-failed": {
|
|
15067
|
+
"art": "momentBlown",
|
|
15068
|
+
"width": 64,
|
|
15069
|
+
"height": 64,
|
|
15070
|
+
"motif": "drop",
|
|
15071
|
+
"label": "Boiler's blown"
|
|
15072
|
+
},
|
|
15073
|
+
"blocker-cleared": {
|
|
15074
|
+
"art": "momentAxle",
|
|
15075
|
+
"width": 64,
|
|
15076
|
+
"height": 64,
|
|
15077
|
+
"motif": "slide",
|
|
15078
|
+
"label": "Axle mended"
|
|
15079
|
+
},
|
|
15080
|
+
"pr-merged": {
|
|
15081
|
+
"art": "momentTelegram",
|
|
15082
|
+
"width": 64,
|
|
15083
|
+
"height": 64,
|
|
15084
|
+
"motif": "sweep",
|
|
15085
|
+
"label": "Telegram signed"
|
|
15086
|
+
},
|
|
15087
|
+
"sprint-ended": {
|
|
15088
|
+
"art": "momentWatch",
|
|
15089
|
+
"width": 64,
|
|
15090
|
+
"height": 64,
|
|
15091
|
+
"motif": "rise",
|
|
15092
|
+
"label": "The drive's in"
|
|
15093
|
+
}
|
|
15094
|
+
},
|
|
15095
|
+
"recap": { "label": "Tally at the railhead" }
|
|
15096
|
+
},
|
|
15097
|
+
terms: {
|
|
15098
|
+
"epic": "Territory",
|
|
15099
|
+
"board": "Claims board",
|
|
15100
|
+
"sprint": "Cattle drive",
|
|
15101
|
+
"agent": "Operator",
|
|
15102
|
+
"dependencies": "Rail survey",
|
|
15103
|
+
"blocked": "Busted axle"
|
|
15104
|
+
},
|
|
15105
|
+
lexicon: {
|
|
15106
|
+
"dossiers.lede": "Each dossier is one stake on the frontier: its repositories, its tracker, its pipelines and its environments. Pick one to read its claims, pull requests, builds and deployments off a single wire.",
|
|
15107
|
+
"dossier.eyebrow": "Homestead claim",
|
|
15108
|
+
"settings.eyebrow": "Engine house",
|
|
15109
|
+
"attention.note": "Wanted: open claims ranked by their insights, the most wanted first. Each insight names the record it rests on.",
|
|
15110
|
+
"aging.note": "How long each claim in progress has been out on the trail, from its history, oldest first.",
|
|
15111
|
+
"trace.note": "Each work item with the pull requests that name it, their latest boiler tests, and the stations it has reached.",
|
|
15112
|
+
"graph.note": "Arrows run the way each link reads, from the source's own links. Blocking chains run left to right, like track laid west.",
|
|
15113
|
+
"ask.note": "Answers cite the claims they rest on. The operator reads the wire; it never changes a ticket. What it suggests comes back as a proposal, for you to sign.",
|
|
15114
|
+
"empty.dossiers": "Nothing staked yet: toil sees no dossiers. A claim is filed with toil dossiers init.",
|
|
15115
|
+
"empty.sprint": "No cattle drive is under way in this dossier's work items.",
|
|
15116
|
+
"empty.burnup": "No drive is under way, so there are no head to count.",
|
|
15117
|
+
"empty.column": "Nobody's staked a claim here.",
|
|
15118
|
+
"empty.prs": "No telegrams are waiting on the sheriff's signature for this dossier.",
|
|
15119
|
+
"empty.builds": "No boiler tests on record for this dossier's pull requests.",
|
|
15120
|
+
"empty.deployments": "This dossier names no station, so there is no 5:15 to watch for.",
|
|
15121
|
+
"empty.links": "No links between this dossier's claims. Open country, no track laid.",
|
|
15122
|
+
"empty.ask": "Pick a question, or wire your own. Every answer names the claims it rests on.",
|
|
15123
|
+
"loading.dossiers": "Getting up steam…",
|
|
15124
|
+
"loading.dossier": "Getting up steam for {name}…",
|
|
15125
|
+
"loading.graph": "Surveying the line…",
|
|
15126
|
+
"loading.answer": "Keying the reply…",
|
|
15127
|
+
"ask.placeholder": "Wire the operator about {name}",
|
|
15128
|
+
"ask.placeholder.short": "Wire the operator",
|
|
15129
|
+
"ask.welcome": "Wire the operator about {name}: how the cattle drive is going, who is working which claim, which axles are busted. Every answer names the claims it rests on.",
|
|
15130
|
+
"status.cache": "Reading the station log",
|
|
15131
|
+
"status.live": "Wiring the tracker",
|
|
15132
|
+
"status.registry": "Checking the timetable",
|
|
15133
|
+
"status.writing": "Keying the reply",
|
|
15134
|
+
"status.done": "Wired back in {seconds} s",
|
|
15135
|
+
"status.stopped": "Line cut after {seconds} s"
|
|
15136
|
+
},
|
|
15137
|
+
voice: "Speak like a dry frontier telegraph operator who also keeps the engine running: plain-spoken, unhurried and a little drawled, in short sentences, with the odd steam-age word for the machinery. Work items are claims, the sprint is the cattle drive, a pull request is a telegram waiting on the sheriff's signature, a build is the boiler test, a deployment is the 5:15 leaving the station, a blocker is a busted axle, and what needs attention is wanted. Say where the drive stands first, then what is busted and what it is holding up, then what would get it moving. Dry humour is fine, aimed at the machinery or the paperwork and never at a person. These words go around the facts, never instead of them."
|
|
15138
|
+
},
|
|
15139
|
+
{
|
|
15140
|
+
name: "overworld",
|
|
15141
|
+
label: "Overworld",
|
|
15142
|
+
description: "A top-down 16-bit adventure: an overworld map at the page's edges, panels as dungeon rooms walled in stone, a heart meter for the days left in the sprint and a gem counter for its points, chests that open as quests are done, and the agent as an old sage in a cave.",
|
|
15143
|
+
schemes: { "dark": {
|
|
15144
|
+
"bg": "#111c16",
|
|
15145
|
+
"surface": "#1a2620",
|
|
15146
|
+
"raised": "#223129",
|
|
15147
|
+
"ink": "#f3efdc",
|
|
15148
|
+
"muted": "#bcc7b4",
|
|
15149
|
+
"line": "#4d6355",
|
|
15150
|
+
"accent": "#5cc46e",
|
|
15151
|
+
"accentInk": "#0b120e",
|
|
15152
|
+
"link": "#f2c94c",
|
|
15153
|
+
"focus": "#ffd75e",
|
|
15154
|
+
"ok": "#7ed98f",
|
|
15155
|
+
"warn": "#f2b84b",
|
|
15156
|
+
"danger": "#ff8a7a",
|
|
15157
|
+
"bannerBg": "#0b120e",
|
|
15158
|
+
"bannerInk": "#f3efdc"
|
|
15159
|
+
} },
|
|
15160
|
+
fonts: {
|
|
15161
|
+
"body": "'IBM Plex Sans', system-ui, -apple-system, 'Segoe UI', sans-serif",
|
|
15162
|
+
"display": "'Press Start 2P', 'IBM Plex Sans', system-ui, sans-serif",
|
|
15163
|
+
"mono": "ui-monospace, 'SFMono-Regular', Menlo, Consolas, monospace"
|
|
15164
|
+
},
|
|
15165
|
+
radius: "0px",
|
|
15166
|
+
motion: "subtle",
|
|
15167
|
+
ambient: { "particles": "fairies" },
|
|
15168
|
+
sounds: {},
|
|
15169
|
+
assets: {
|
|
15170
|
+
"overworld": "assets/overworld.webp",
|
|
15171
|
+
"map": "assets/dungeon-map.webp",
|
|
15172
|
+
"wall": "assets/stone-wall.svg",
|
|
15173
|
+
"heart": "assets/heart.svg",
|
|
15174
|
+
"heartEmpty": "assets/heart-empty.svg",
|
|
15175
|
+
"gem": "assets/gem.svg",
|
|
15176
|
+
"chest": "assets/chest.svg",
|
|
15177
|
+
"chestOpen": "assets/chest-open.svg",
|
|
15178
|
+
"key": "assets/key.svg",
|
|
15179
|
+
"blocked": "assets/locked-door.svg",
|
|
15180
|
+
"portrait": "assets/sage.webp",
|
|
15181
|
+
"emptyState": "assets/empty-room.webp",
|
|
15182
|
+
"loading": "assets/sage-cave.webp",
|
|
15183
|
+
"mark": "assets/mark.svg",
|
|
15184
|
+
"momentTitle": "assets/moments/title.webp",
|
|
15185
|
+
"momentMap": "assets/moments/map-sheet.webp",
|
|
15186
|
+
"momentStep": "assets/moments/step.svg",
|
|
15187
|
+
"momentChest": "assets/moments/chest-open.svg",
|
|
15188
|
+
"momentBrazier": "assets/moments/brazier-lit.svg",
|
|
15189
|
+
"momentSnuffed": "assets/moments/brazier-out.svg",
|
|
15190
|
+
"momentDoor": "assets/moments/door-open.svg",
|
|
15191
|
+
"momentKey": "assets/moments/key-raised.svg",
|
|
15192
|
+
"momentCampfire": "assets/moments/campfire.svg"
|
|
15193
|
+
},
|
|
15194
|
+
moments: {
|
|
15195
|
+
"splash": {
|
|
15196
|
+
"art": {
|
|
15197
|
+
"art": "momentTitle",
|
|
15198
|
+
"width": 336,
|
|
15199
|
+
"height": 210
|
|
15200
|
+
},
|
|
15201
|
+
"motif": "drop",
|
|
15202
|
+
"line": "The map unrolls. The road begins at your dossiers."
|
|
15203
|
+
},
|
|
15204
|
+
"loader": {
|
|
15205
|
+
"art": {
|
|
15206
|
+
"art": "momentMap",
|
|
15207
|
+
"width": 128,
|
|
15208
|
+
"height": 128,
|
|
15209
|
+
"frames": 8
|
|
15210
|
+
},
|
|
15211
|
+
"loop": "frames",
|
|
15212
|
+
"track": {
|
|
15213
|
+
"art": "momentStep",
|
|
15214
|
+
"size": 12,
|
|
15215
|
+
"count": 6,
|
|
15216
|
+
"motif": "march"
|
|
15217
|
+
},
|
|
15218
|
+
"flavour": [
|
|
15219
|
+
"Unrolling the map one square at a time.",
|
|
15220
|
+
"Following the old road east.",
|
|
15221
|
+
"Asking the fairies which way the tracker went.",
|
|
15222
|
+
"Lighting the next torch in the corridor.",
|
|
15223
|
+
"Reading the signpost at the crossroads.",
|
|
15224
|
+
"Waiting for the drawbridge to lower."
|
|
15225
|
+
]
|
|
15226
|
+
},
|
|
15227
|
+
"tips": { "label": "The sage's counsel" },
|
|
15228
|
+
"entrance": "slide",
|
|
15229
|
+
"tabs": "fade",
|
|
15230
|
+
"events": {
|
|
15231
|
+
"item-done": {
|
|
15232
|
+
"art": "momentChest",
|
|
15233
|
+
"width": 64,
|
|
15234
|
+
"height": 64,
|
|
15235
|
+
"motif": "pop",
|
|
15236
|
+
"label": "Quest complete"
|
|
15237
|
+
},
|
|
15238
|
+
"build-passed": {
|
|
15239
|
+
"art": "momentBrazier",
|
|
15240
|
+
"width": 64,
|
|
15241
|
+
"height": 64,
|
|
15242
|
+
"motif": "grow",
|
|
15243
|
+
"label": "Trial cleared"
|
|
15244
|
+
},
|
|
15245
|
+
"build-failed": {
|
|
15246
|
+
"art": "momentSnuffed",
|
|
15247
|
+
"width": 64,
|
|
15248
|
+
"height": 64,
|
|
15249
|
+
"motif": "drop",
|
|
15250
|
+
"label": "Trial lost"
|
|
15251
|
+
},
|
|
15252
|
+
"blocker-cleared": {
|
|
15253
|
+
"art": "momentDoor",
|
|
15254
|
+
"width": 64,
|
|
15255
|
+
"height": 64,
|
|
15256
|
+
"motif": "slide",
|
|
15257
|
+
"label": "Door unlocked"
|
|
15258
|
+
},
|
|
15259
|
+
"pr-merged": {
|
|
15260
|
+
"art": "momentKey",
|
|
15261
|
+
"width": 64,
|
|
15262
|
+
"height": 64,
|
|
15263
|
+
"motif": "rise",
|
|
15264
|
+
"label": "Item obtained"
|
|
15265
|
+
},
|
|
15266
|
+
"sprint-ended": {
|
|
15267
|
+
"art": "momentCampfire",
|
|
15268
|
+
"width": 64,
|
|
15269
|
+
"height": 64,
|
|
15270
|
+
"motif": "fade",
|
|
15271
|
+
"label": "Journey's end"
|
|
15272
|
+
}
|
|
15273
|
+
},
|
|
15274
|
+
"recap": { "label": "Tales of the journey" }
|
|
15275
|
+
},
|
|
15276
|
+
terms: {
|
|
15277
|
+
"epic": "Grand quest",
|
|
15278
|
+
"board": "Quest log",
|
|
15279
|
+
"sprint": "Journey",
|
|
15280
|
+
"agent": "Sage",
|
|
15281
|
+
"dependencies": "Dungeon map",
|
|
15282
|
+
"blocked": "Locked door"
|
|
15283
|
+
},
|
|
15284
|
+
lexicon: {
|
|
15285
|
+
"dossiers.lede": "Each dossier is one land to explore: its repositories, its tracker, its pipelines and its environments. Pick one to walk its stories, pull requests, builds and deployments on a single map.",
|
|
15286
|
+
"dossier.eyebrow": "The overworld",
|
|
15287
|
+
"settings.eyebrow": "The sage's cave",
|
|
15288
|
+
"attention.note": "Open items ranked by their insights, the most perilous first. Each insight names the data it rests on.",
|
|
15289
|
+
"aging.note": "How long each quest in progress has been under way, from its history, oldest first.",
|
|
15290
|
+
"trace.note": "Each work item with the pull requests that name it, their latest builds, and the sealed doors it has opened.",
|
|
15291
|
+
"graph.note": "Arrows run the way each link reads, from the source's own links. Blocking chains run left to right: follow the key path.",
|
|
15292
|
+
"ask.note": "Answers cite the items they rest on. The sage reads; it never changes a ticket. What it advises comes back as a proposal for you to carry out.",
|
|
15293
|
+
"empty.dossiers": "The map is blank: toil sees no dossiers yet. A dossier is charted with toil dossiers init.",
|
|
15294
|
+
"empty.sprint": "No journey is under way in this dossier's work items.",
|
|
15295
|
+
"empty.burnup": "No journey is under way, so there is no trail to chart.",
|
|
15296
|
+
"empty.column": "An empty room.",
|
|
15297
|
+
"empty.prs": "No items wait to be appraised at the shop for this dossier.",
|
|
15298
|
+
"empty.builds": "No dungeon trials have run for this dossier's pull requests.",
|
|
15299
|
+
"empty.deployments": "This dossier names no environment, so there is no sealed door to open.",
|
|
15300
|
+
"empty.links": "No links between this dossier's items: every door stands open.",
|
|
15301
|
+
"empty.ask": "Pick a question, or ask your own. The sage names every item an answer rests on.",
|
|
15302
|
+
"loading.dossiers": "Unrolling the map…",
|
|
15303
|
+
"loading.dossier": "Walking the paths of {name}…",
|
|
15304
|
+
"loading.graph": "Drawing the dungeon map…",
|
|
15305
|
+
"loading.answer": "The sage is thinking…",
|
|
15306
|
+
"ask.placeholder": "Ask the sage about {name}",
|
|
15307
|
+
"ask.placeholder.short": "Ask the sage",
|
|
15308
|
+
"ask.welcome": "Ask the sage about {name}: how the journey goes, who carries which quest, which doors are locked. Every answer names the items it rests on.",
|
|
15309
|
+
"status.cache": "Reading the old scrolls",
|
|
15310
|
+
"status.live": "Sending a fairy to the tracker",
|
|
15311
|
+
"status.registry": "Reading the shop's price list",
|
|
15312
|
+
"status.writing": "Writing the advice",
|
|
15313
|
+
"status.done": "Answered in {seconds} s",
|
|
15314
|
+
"status.stopped": "Left the cave after {seconds} s"
|
|
15315
|
+
},
|
|
15316
|
+
voice: "Speak as an old sage in a cave at the edge of the overworld, advising a young hero before the road ahead: brief, warm and a little mysterious, in short sentences, with now and then one cryptic line that still points somewhere useful. Work items are quests, the sprint is the journey, the board is the quest log, a pull request is an item waiting to be appraised at the shop, a build is the dungeon trial, a deployment is opening a sealed door, a blocker is a locked door whose key lies elsewhere, and the critical chain of blockers is the key path. Say how the journey stands first, then which doors are locked and where their keys lie, then what to do next. Kind to every person. The riddles go around the facts, never instead of them: every figure, date and name stays plain."
|
|
14189
15317
|
}
|
|
14190
15318
|
].map((t) => [t.name, t]));
|
|
14191
15319
|
/** Thrown for a theme the server doesn't have; the server answers it as a 400. */
|
|
@@ -14565,6 +15693,7 @@ var AgentHost = class {
|
|
|
14565
15693
|
return this.adapterOptions().options.map((a) => ({
|
|
14566
15694
|
name: a.name,
|
|
14567
15695
|
label: a.label,
|
|
15696
|
+
model: a.model,
|
|
14568
15697
|
problem: a.problem,
|
|
14569
15698
|
workspace: this.runtimes.find((r) => r.name === a.name)?.workspace === true
|
|
14570
15699
|
}));
|
|
@@ -14840,6 +15969,190 @@ var AgentHost = class {
|
|
|
14840
15969
|
return this.status();
|
|
14841
15970
|
}
|
|
14842
15971
|
};
|
|
15972
|
+
/** A label at the start of a line: alone, or followed by a colon or dash and its text; Markdown the model adds anyway (a #, bold) is let through. "Evidence shows" is prose, not a label. */
|
|
15973
|
+
var LABEL = /^[ \t]*(?:#{1,6}[ \t]*)?(?:\*\*|__)?(recommendation|issues|evidence)(?:(?:\*\*|__)?[ \t]*[:\-–—](?:\*\*|__)?[ \t]*(.*)|(?:\*\*|__)?[ \t]*)$/gim;
|
|
15974
|
+
var BULLET = /^[ \t]*(?:\d{1,2}[.)]|[-*•])[ \t]+/;
|
|
15975
|
+
var NONE = /^(?:none|nothing(?: stands out)?|no issues?)\.?$/i;
|
|
15976
|
+
/** "Build failing: [[id]] fails its build" → its short name and the sentence; a sentence with no short name keeps its whole text. */
|
|
15977
|
+
function issueOf(line) {
|
|
15978
|
+
const text = line.replace(BULLET, "").trim();
|
|
15979
|
+
const m = /^([^:[\]]{1,60}):\s+(.+)$/s.exec(text);
|
|
15980
|
+
return m ? {
|
|
15981
|
+
title: m[1].trim(),
|
|
15982
|
+
text: m[2].trim()
|
|
15983
|
+
} : {
|
|
15984
|
+
title: null,
|
|
15985
|
+
text
|
|
15986
|
+
};
|
|
15987
|
+
}
|
|
15988
|
+
var paragraphs = (text) => text.split(/\n\s*\n/).map((p) => p.trim()).filter(Boolean);
|
|
15989
|
+
/**
|
|
15990
|
+
* Reads the Recommendation, Issues and Evidence back out of an answer's
|
|
15991
|
+
* text. Null when it has no Recommendation label: that answer is shown as
|
|
15992
|
+
* it came. Text before the first label goes to the end of the evidence, so
|
|
15993
|
+
* nothing the agent wrote is lost.
|
|
15994
|
+
*/
|
|
15995
|
+
function structureOf(text) {
|
|
15996
|
+
const marks = [...text.matchAll(LABEL)].map((m) => ({
|
|
15997
|
+
label: m[1].toLowerCase(),
|
|
15998
|
+
start: m.index,
|
|
15999
|
+
rest: m[2] ?? "",
|
|
16000
|
+
end: m.index + m[0].length
|
|
16001
|
+
}));
|
|
16002
|
+
const first = marks.find((m) => m.label === "recommendation");
|
|
16003
|
+
if (!first) return null;
|
|
16004
|
+
const used = marks.filter((m, i) => m.start >= first.start && marks.findIndex((n) => n.label === m.label && n.start >= first.start) === i);
|
|
16005
|
+
const section = (label) => {
|
|
16006
|
+
const at = used.findIndex((m) => m.label === label);
|
|
16007
|
+
if (at < 0) return null;
|
|
16008
|
+
const m = used[at];
|
|
16009
|
+
const next = used[at + 1]?.start ?? text.length;
|
|
16010
|
+
return `${m.rest}\n${text.slice(m.end, next)}`.trim();
|
|
16011
|
+
};
|
|
16012
|
+
const recommendation = (section("recommendation") ?? "").replace(/\s*\n\s*/g, " ").trim();
|
|
16013
|
+
if (!recommendation) return null;
|
|
16014
|
+
const lines = (section("issues") ?? "").split("\n").map((l) => l.trim()).filter(Boolean);
|
|
16015
|
+
const bulleted = lines.some((l) => BULLET.test(l));
|
|
16016
|
+
const raw = [];
|
|
16017
|
+
for (const line of lines) if (!bulleted || BULLET.test(line) || !raw.length) raw.push(line);
|
|
16018
|
+
else raw[raw.length - 1] += ` ${line}`;
|
|
16019
|
+
const issues = raw.filter((l) => !NONE.test(l.replace(BULLET, "").trim())).map(issueOf);
|
|
16020
|
+
const before = text.slice(0, first.start).trim();
|
|
16021
|
+
const evidence = [
|
|
16022
|
+
...paragraphs(section("evidence") ?? ""),
|
|
16023
|
+
...issues.slice(3).map((i) => i.title ? `${i.title}: ${i.text}` : i.text),
|
|
16024
|
+
...paragraphs(before)
|
|
16025
|
+
];
|
|
16026
|
+
return {
|
|
16027
|
+
recommendation,
|
|
16028
|
+
issues: issues.slice(0, 3),
|
|
16029
|
+
evidence,
|
|
16030
|
+
extraIssues: Math.max(0, issues.length - 3)
|
|
16031
|
+
};
|
|
16032
|
+
}
|
|
16033
|
+
/** The answer's text, its paragraphs joined back, for `structureOf`. */
|
|
16034
|
+
var textOfParts = (parts) => parts.map((p) => p.text).join("\n\n");
|
|
16035
|
+
var open = (i) => i.statusCategory !== "DONE";
|
|
16036
|
+
/** The snapshot of a dossier's items at a moment, by the same blocks rule the sprint panel uses. */
|
|
16037
|
+
function snapshotOf(items, now) {
|
|
16038
|
+
const byId = new Map(items.map((i) => [i.id, i]));
|
|
16039
|
+
const blocked = [];
|
|
16040
|
+
for (const item of items) {
|
|
16041
|
+
if (!open(item)) continue;
|
|
16042
|
+
const by = item.links.filter((l) => l.type === "blocks" && l.direction === "inward" && byId.has(l.target) && open(byId.get(l.target))).map((l) => l.target);
|
|
16043
|
+
if (by.length) blocked.push({
|
|
16044
|
+
id: item.id,
|
|
16045
|
+
by: [...new Set(by)].sort()
|
|
16046
|
+
});
|
|
16047
|
+
}
|
|
16048
|
+
const points = {};
|
|
16049
|
+
for (const item of items) if (item.estimate?.unit === "points") points[item.id] = item.estimate.value;
|
|
16050
|
+
const h = health([...items], [], now);
|
|
16051
|
+
return {
|
|
16052
|
+
blocked: blocked.sort((a, b) => a.id.localeCompare(b.id)),
|
|
16053
|
+
points,
|
|
16054
|
+
sprint: h ? {
|
|
16055
|
+
name: h.sprint.name,
|
|
16056
|
+
done: h.done.points,
|
|
16057
|
+
remaining: h.remaining.points
|
|
16058
|
+
} : null
|
|
16059
|
+
};
|
|
16060
|
+
}
|
|
16061
|
+
/** An Analyze answer, finished, as a record for the history. */
|
|
16062
|
+
function recordOf(answer, o) {
|
|
16063
|
+
const s = structureOf(textOfParts(answer.parts));
|
|
16064
|
+
return {
|
|
16065
|
+
id: o.id,
|
|
16066
|
+
dossier: o.dossier,
|
|
16067
|
+
startedAt: o.startedAt,
|
|
16068
|
+
at: o.at,
|
|
16069
|
+
adapter: answer.adapter ?? null,
|
|
16070
|
+
model: answer.model ?? null,
|
|
16071
|
+
by: answer.by,
|
|
16072
|
+
usage: answer.usage ?? null,
|
|
16073
|
+
recommendation: s?.recommendation ?? null,
|
|
16074
|
+
issues: s?.issues ?? [],
|
|
16075
|
+
parts: answer.parts,
|
|
16076
|
+
citations: answer.citations.length ? answer.citations : citationsOf(answer.parts),
|
|
16077
|
+
unverified: answer.unverified ?? [],
|
|
16078
|
+
warnings: answer.warnings ?? [],
|
|
16079
|
+
proposals: answer.proposals,
|
|
16080
|
+
snapshot: o.snapshot
|
|
16081
|
+
};
|
|
16082
|
+
}
|
|
16083
|
+
/** What changed from `before` to `after`; `before` null is the first analysis, which has nothing to compare with. */
|
|
16084
|
+
function changesBetween(before, after) {
|
|
16085
|
+
if (!before) return {
|
|
16086
|
+
previous: null,
|
|
16087
|
+
newlyBlocked: [],
|
|
16088
|
+
cleared: [],
|
|
16089
|
+
points: [],
|
|
16090
|
+
sprint: null,
|
|
16091
|
+
cited: [],
|
|
16092
|
+
dropped: [],
|
|
16093
|
+
recommendationChanged: false
|
|
16094
|
+
};
|
|
16095
|
+
const was = new Map(before.snapshot.blocked.map((b) => [b.id, new Set(b.by)]));
|
|
16096
|
+
const now = new Set(after.snapshot.blocked.map((b) => b.id));
|
|
16097
|
+
const newlyBlocked = after.snapshot.blocked.filter((b) => !was.has(b.id) || b.by.some((by) => !was.get(b.id).has(by)));
|
|
16098
|
+
const cleared = before.snapshot.blocked.filter((b) => !now.has(b.id)).map((b) => b.id);
|
|
16099
|
+
const points = [.../* @__PURE__ */ new Set([...Object.keys(before.snapshot.points), ...Object.keys(after.snapshot.points)])].sort().flatMap((id) => {
|
|
16100
|
+
const from = before.snapshot.points[id] ?? null;
|
|
16101
|
+
const to = after.snapshot.points[id] ?? null;
|
|
16102
|
+
return from === to ? [] : [{
|
|
16103
|
+
id,
|
|
16104
|
+
from,
|
|
16105
|
+
to
|
|
16106
|
+
}];
|
|
16107
|
+
});
|
|
16108
|
+
const a = before.snapshot.sprint;
|
|
16109
|
+
const b = after.snapshot.sprint;
|
|
16110
|
+
const sprintMoved = a?.name !== b?.name || a?.done !== b?.done || a?.remaining !== b?.remaining;
|
|
16111
|
+
const cited = after.citations.filter((id) => !before.citations.includes(id));
|
|
16112
|
+
const dropped = before.citations.filter((id) => !after.citations.includes(id));
|
|
16113
|
+
const recommendationChanged = (before.recommendation ?? "") !== (after.recommendation ?? "");
|
|
16114
|
+
return {
|
|
16115
|
+
previous: {
|
|
16116
|
+
id: before.id,
|
|
16117
|
+
at: before.at
|
|
16118
|
+
},
|
|
16119
|
+
newlyBlocked,
|
|
16120
|
+
cleared,
|
|
16121
|
+
points,
|
|
16122
|
+
sprint: sprintMoved ? {
|
|
16123
|
+
from: a,
|
|
16124
|
+
to: b
|
|
16125
|
+
} : null,
|
|
16126
|
+
cited,
|
|
16127
|
+
dropped,
|
|
16128
|
+
recommendationChanged
|
|
16129
|
+
};
|
|
16130
|
+
}
|
|
16131
|
+
/** The history, newest first, each with what changed since the one before. `records` may come in any order. */
|
|
16132
|
+
function historyOf$1(records) {
|
|
16133
|
+
const oldest = [...records].sort((a, b) => a.at.localeCompare(b.at) || a.id.localeCompare(b.id));
|
|
16134
|
+
return oldest.map((r, i) => ({
|
|
16135
|
+
id: r.id,
|
|
16136
|
+
at: r.at,
|
|
16137
|
+
adapter: r.adapter,
|
|
16138
|
+
model: r.model,
|
|
16139
|
+
by: r.by,
|
|
16140
|
+
recommendation: r.recommendation,
|
|
16141
|
+
issues: r.issues,
|
|
16142
|
+
citations: r.citations,
|
|
16143
|
+
unverified: r.unverified.length,
|
|
16144
|
+
changes: changesBetween(oldest[i - 1] ?? null, r)
|
|
16145
|
+
})).reverse();
|
|
16146
|
+
}
|
|
16147
|
+
/** One record opened, with what changed since the one before it. */
|
|
16148
|
+
function viewOf(records, id) {
|
|
16149
|
+
const oldest = [...records].sort((a, b) => a.at.localeCompare(b.at) || a.id.localeCompare(b.id));
|
|
16150
|
+
const i = oldest.findIndex((r) => r.id === id);
|
|
16151
|
+
return i < 0 ? null : {
|
|
16152
|
+
record: oldest[i],
|
|
16153
|
+
changes: changesBetween(oldest[i - 1] ?? null, oldest[i])
|
|
16154
|
+
};
|
|
16155
|
+
}
|
|
14843
16156
|
//#endregion
|
|
14844
16157
|
//#region server/sqlite.ts
|
|
14845
16158
|
var loaded;
|
|
@@ -14888,6 +16201,10 @@ function loadSqlite() {
|
|
|
14888
16201
|
* fact a sync recorded, each source's syncs, the agent's runs and the
|
|
14889
16202
|
* lines a person added. A sync upserts its facts by key, so the same fact
|
|
14890
16203
|
* is one row however often it's synced.
|
|
16204
|
+
* - **analyses**: every Analyze (#395), its answer and a snapshot of what
|
|
16205
|
+
* the dossier looked like when it was made (src/model/analysis.ts), kept
|
|
16206
|
+
* per dossier like the worklog: a sync never rewrites it, and the newest
|
|
16207
|
+
* 100 of a dossier stay until the retention period ends or a wipe.
|
|
14891
16208
|
* - **usage**: the agent's model usage (#295), one row per report an SDK
|
|
14892
16209
|
* made, apart from everything a sync writes. Forgetting a dossier or a
|
|
14893
16210
|
* sync's cleanup never touches it, so a total never drops and a cap never
|
|
@@ -15051,6 +16368,20 @@ var MIGRATIONS = [
|
|
|
15051
16368
|
note TEXT NOT NULL,
|
|
15052
16369
|
PRIMARY KEY (dossier, id)
|
|
15053
16370
|
);
|
|
16371
|
+
`
|
|
16372
|
+
},
|
|
16373
|
+
{
|
|
16374
|
+
version: 4,
|
|
16375
|
+
description: "every Analyze kept per dossier, with a snapshot of what it saw (#395)",
|
|
16376
|
+
sql: `
|
|
16377
|
+
CREATE TABLE analyses (
|
|
16378
|
+
dossier TEXT NOT NULL,
|
|
16379
|
+
id TEXT NOT NULL,
|
|
16380
|
+
at TEXT NOT NULL,
|
|
16381
|
+
record TEXT NOT NULL,
|
|
16382
|
+
PRIMARY KEY (dossier, id)
|
|
16383
|
+
);
|
|
16384
|
+
CREATE INDEX analyses_at ON analyses (dossier, at);
|
|
15054
16385
|
`
|
|
15055
16386
|
}
|
|
15056
16387
|
];
|
|
@@ -15077,6 +16408,10 @@ var WORKLOG_TABLES = [
|
|
|
15077
16408
|
"agent_runs",
|
|
15078
16409
|
"notes"
|
|
15079
16410
|
];
|
|
16411
|
+
/** How far before the last good sync a newly listed fact may be and still count as news: the clocks may disagree (#419). */
|
|
16412
|
+
var NEWS_SKEW_MS = 3e5;
|
|
16413
|
+
/** The tables kept per dossier that a sync never rewrites: the worklog's, and the analyses (#395). */
|
|
16414
|
+
var KEPT_TABLES = [...WORKLOG_TABLES, "analyses"];
|
|
15080
16415
|
/** The one message every OS gives for a wipe while Toil UI runs. */
|
|
15081
16416
|
var RUNNING_MESSAGE = "Toil UI is running; stop it, or use Wipe in the UI.";
|
|
15082
16417
|
/** True while a process with this id exists (EPERM: it exists, under another account). */
|
|
@@ -15326,7 +16661,7 @@ var Cache = class Cache {
|
|
|
15326
16661
|
"transitions",
|
|
15327
16662
|
"change_refs",
|
|
15328
16663
|
"sources",
|
|
15329
|
-
...
|
|
16664
|
+
...KEPT_TABLES
|
|
15330
16665
|
]) this.db.prepare(`DELETE FROM ${table} WHERE dossier = ?`).run(dossier);
|
|
15331
16666
|
this.db.prepare("DELETE FROM dossiers WHERE name = ?").run(dossier);
|
|
15332
16667
|
});
|
|
@@ -15351,7 +16686,7 @@ var Cache = class Cache {
|
|
|
15351
16686
|
"transitions",
|
|
15352
16687
|
"change_refs",
|
|
15353
16688
|
"sources",
|
|
15354
|
-
...
|
|
16689
|
+
...KEPT_TABLES
|
|
15355
16690
|
]) this.db.prepare(`DELETE FROM ${table} WHERE dossier = ?`).run(to);
|
|
15356
16691
|
this.db.prepare("DELETE FROM dossiers WHERE name = ?").run(to);
|
|
15357
16692
|
const rows = this.db.prepare("SELECT command, input_key, envelope FROM responses WHERE dossier = ?").all(from);
|
|
@@ -15379,6 +16714,13 @@ var Cache = class Cache {
|
|
|
15379
16714
|
dossier: to
|
|
15380
16715
|
}), from, r.id).changes);
|
|
15381
16716
|
}
|
|
16717
|
+
for (const r of this.db.prepare("SELECT id, record FROM analyses WHERE dossier = ?").all(from)) {
|
|
16718
|
+
const record = JSON.parse(r.record);
|
|
16719
|
+
moved += Number(this.db.prepare("UPDATE analyses SET dossier = ?, record = ? WHERE dossier = ? AND id = ?").run(to, JSON.stringify({
|
|
16720
|
+
...record,
|
|
16721
|
+
dossier: to
|
|
16722
|
+
}), from, r.id).changes);
|
|
16723
|
+
}
|
|
15382
16724
|
moved += Number(this.db.prepare("UPDATE dossiers SET name = ? WHERE name = ?").run(to, from).changes);
|
|
15383
16725
|
});
|
|
15384
16726
|
return moved;
|
|
@@ -15397,9 +16739,15 @@ var Cache = class Cache {
|
|
|
15397
16739
|
* failed one keeps its last good copy. Items, transitions and change refs
|
|
15398
16740
|
* are the dossier's whole picture as the sync saw it (the sync hands the
|
|
15399
16741
|
* loader a failed source's last good copy, so a failure never blanks them).
|
|
16742
|
+
*
|
|
16743
|
+
* Returns the facts this sync recorded for the first time (#419), which the
|
|
16744
|
+
* theme moments play: none on a dossier's first sync, when everything in its
|
|
16745
|
+
* history would be new, and none from before the last good sync, so a fact
|
|
16746
|
+
* a source only now lists (an old build, a closed issue) isn't news.
|
|
15400
16747
|
*/
|
|
15401
16748
|
saveDossier(save) {
|
|
15402
16749
|
const at = save.finishedAt;
|
|
16750
|
+
let news = [];
|
|
15403
16751
|
this.transaction(() => {
|
|
15404
16752
|
const previous = this.db.prepare("SELECT name FROM dossiers WHERE name = ?").get(save.dossier);
|
|
15405
16753
|
const lastGood = this.db.prepare("SELECT MAX(at) AS at FROM sync_runs WHERE dossier = ? AND ok = 1").get(save.dossier).at;
|
|
@@ -15417,6 +16765,9 @@ var Cache = class Cache {
|
|
|
15417
16765
|
}, at, lastGood)];
|
|
15418
16766
|
const fact = this.db.prepare(`INSERT INTO worklog_events (dossier, key, day, at, kind, event, synced_at) VALUES (?, ?, ?, ?, ?, ?, ?)
|
|
15419
16767
|
ON CONFLICT (dossier, key) DO UPDATE SET day = excluded.day, at = excluded.at, kind = excluded.kind, event = excluded.event, synced_at = excluded.synced_at`);
|
|
16768
|
+
const known = new Set(this.db.prepare("SELECT key FROM worklog_events WHERE dossier = ?").all(save.dossier).map((r) => r.key));
|
|
16769
|
+
const since = lastGood ? Date.parse(lastGood) - NEWS_SKEW_MS : null;
|
|
16770
|
+
news = previous && since !== null ? facts.filter((e) => !known.has(e.key) && (e.observed !== null || Date.parse(e.at) >= since)) : [];
|
|
15420
16771
|
for (const e of facts) fact.run(save.dossier, e.key, dayOf(e.at), e.at, e.kind, JSON.stringify(e), at);
|
|
15421
16772
|
const run = this.db.prepare("INSERT OR REPLACE INTO sync_runs (dossier, area, at, ok, error) VALUES (?, ?, ?, ?, ?)");
|
|
15422
16773
|
for (const s of save.sources) run.run(save.dossier, s.area, at, s.ok ? 1 : 0, s.error);
|
|
@@ -15454,6 +16805,7 @@ var Cache = class Cache {
|
|
|
15454
16805
|
this.db.prepare("INSERT INTO dossiers (name, last_sync_at, status, error) VALUES (?, ?, ?, ?) ON CONFLICT (name) DO UPDATE SET last_sync_at = excluded.last_sync_at, status = excluded.status, error = excluded.error").run(save.dossier, at, status, error);
|
|
15455
16806
|
});
|
|
15456
16807
|
this.prune();
|
|
16808
|
+
return news;
|
|
15457
16809
|
}
|
|
15458
16810
|
/** The facts a sync recorded for a dossier: one day's, or every one the cache holds. */
|
|
15459
16811
|
worklogEvents(dossier, day) {
|
|
@@ -15485,6 +16837,17 @@ var Cache = class Cache {
|
|
|
15485
16837
|
notes(dossier, day) {
|
|
15486
16838
|
return (day === void 0 ? this.db.prepare("SELECT note FROM notes WHERE dossier = ? ORDER BY at, id").all(dossier) : this.db.prepare("SELECT note FROM notes WHERE dossier = ? AND day = ? ORDER BY at, id").all(dossier, day)).map((r) => JSON.parse(r.note));
|
|
15487
16839
|
}
|
|
16840
|
+
/** Keeps one Analyze, and only the newest MAX_ANALYSES of its dossier. */
|
|
16841
|
+
saveAnalysis(record) {
|
|
16842
|
+
this.transaction(() => {
|
|
16843
|
+
this.db.prepare("INSERT OR REPLACE INTO analyses (dossier, id, at, record) VALUES (?, ?, ?, ?)").run(record.dossier, record.id, record.at, JSON.stringify(record));
|
|
16844
|
+
this.db.prepare("DELETE FROM analyses WHERE dossier = ? AND id NOT IN (SELECT id FROM analyses WHERE dossier = ? ORDER BY at DESC, id DESC LIMIT ?)").run(record.dossier, record.dossier, 100);
|
|
16845
|
+
});
|
|
16846
|
+
}
|
|
16847
|
+
/** A dossier's analyses, oldest first. */
|
|
16848
|
+
analyses(dossier) {
|
|
16849
|
+
return this.db.prepare("SELECT record FROM analyses WHERE dossier = ? ORDER BY at, id").all(dossier).map((r) => JSON.parse(r.record));
|
|
16850
|
+
}
|
|
15488
16851
|
/** Deletes every row last synced before the retention period. Returns how many went. */
|
|
15489
16852
|
prune() {
|
|
15490
16853
|
const cutoff = (/* @__PURE__ */ new Date(this.now().getTime() - this.retentionDays * DAY)).toISOString();
|
|
@@ -15503,6 +16866,7 @@ var Cache = class Cache {
|
|
|
15503
16866
|
removed += Number(this.db.prepare("DELETE FROM sync_runs WHERE at < ?").run(cutoff).changes);
|
|
15504
16867
|
removed += Number(this.db.prepare("DELETE FROM agent_runs WHERE started_at < ?").run(cutoff).changes);
|
|
15505
16868
|
removed += Number(this.db.prepare("DELETE FROM notes WHERE at < ?").run(cutoff).changes);
|
|
16869
|
+
if (this.db.prepare("SELECT 1 FROM sqlite_master WHERE type = 'table' AND name = 'analyses'").get()) removed += Number(this.db.prepare("DELETE FROM analyses WHERE at < ?").run(cutoff).changes);
|
|
15506
16870
|
});
|
|
15507
16871
|
return removed;
|
|
15508
16872
|
}
|
|
@@ -15542,7 +16906,7 @@ var Cache = class Cache {
|
|
|
15542
16906
|
"sources",
|
|
15543
16907
|
"dossiers",
|
|
15544
16908
|
"usage",
|
|
15545
|
-
...
|
|
16909
|
+
...KEPT_TABLES
|
|
15546
16910
|
]) out[table] = Number(this.db.prepare(`SELECT COUNT(*) AS n FROM ${table}`).get().n);
|
|
15547
16911
|
return out;
|
|
15548
16912
|
}
|
|
@@ -15638,6 +17002,81 @@ function settingsFrom(env) {
|
|
|
15638
17002
|
} };
|
|
15639
17003
|
}
|
|
15640
17004
|
//#endregion
|
|
17005
|
+
//#region src/analyses.ts
|
|
17006
|
+
/** The history in memory: the preview's, and the App's when it is given none. `seed` is what it starts with. */
|
|
17007
|
+
function memoryAnalyses(seed = []) {
|
|
17008
|
+
const kept = [...seed];
|
|
17009
|
+
let n = 0;
|
|
17010
|
+
const of = (dossier) => kept.filter((r) => r.dossier === dossier);
|
|
17011
|
+
return {
|
|
17012
|
+
list: async (dossier) => historyOf$1(of(dossier)),
|
|
17013
|
+
get: async (dossier, id) => viewOf(of(dossier), id),
|
|
17014
|
+
record: async (dossier, answer, { startedAt, at, items, now }) => {
|
|
17015
|
+
const id = `analysis-${Date.parse(at).toString(36)}-${(n++).toString(36)}`;
|
|
17016
|
+
kept.push(recordOf(answer, {
|
|
17017
|
+
id,
|
|
17018
|
+
dossier,
|
|
17019
|
+
startedAt,
|
|
17020
|
+
at,
|
|
17021
|
+
snapshot: snapshotOf(items, now)
|
|
17022
|
+
}));
|
|
17023
|
+
const mine = of(dossier).sort((a, b) => a.at.localeCompare(b.at));
|
|
17024
|
+
for (const old of mine.slice(0, Math.max(0, mine.length - 100))) kept.splice(kept.indexOf(old), 1);
|
|
17025
|
+
return id;
|
|
17026
|
+
}
|
|
17027
|
+
};
|
|
17028
|
+
}
|
|
17029
|
+
//#endregion
|
|
17030
|
+
//#region server/analyses.ts
|
|
17031
|
+
/**
|
|
17032
|
+
* The history of analyses, server side (#395). Every Analyze the server
|
|
17033
|
+
* answers is kept here as its answer ends, finished and whole: a stopped or
|
|
17034
|
+
* failed one is not an analysis. The record holds when it was asked and
|
|
17035
|
+
* answered, the adapter and model, what it used, its recommendation and
|
|
17036
|
+
* issues, the whole answer, the ids it cited and the ones the citation check
|
|
17037
|
+
* flagged, and a snapshot of the dossier's items at that moment
|
|
17038
|
+
* (src/model/analysis.ts), so the list can say what changed from one to the
|
|
17039
|
+
* next by code. The cache keeps them (`analyses`, schema 4), so they survive
|
|
17040
|
+
* a restart and go with `toil-ui wipe`; the sample keeps them in memory. The
|
|
17041
|
+
* page only reads: nothing it sends can write a record. Minutes taken by
|
|
17042
|
+
* the clerk, never by the people being minuted.
|
|
17043
|
+
*/
|
|
17044
|
+
/** An answer that is whole: not a partial still streaming, and with something in it. */
|
|
17045
|
+
var isWhole = (a) => !!a && !a.activity && a.parts.length > 0;
|
|
17046
|
+
/** The cache's history: what a real Toil UI keeps. `cache` is a getter, since a wipe swaps the file underneath. */
|
|
17047
|
+
function cacheAnalyses(cache, now = () => (/* @__PURE__ */ new Date()).toISOString()) {
|
|
17048
|
+
return {
|
|
17049
|
+
list: async (dossier) => historyOf$1(cache().analyses(dossier)),
|
|
17050
|
+
get: async (dossier, id) => viewOf(cache().analyses(dossier), id),
|
|
17051
|
+
record: async (dossier, answer, startedAt) => {
|
|
17052
|
+
const at = now();
|
|
17053
|
+
const id = randomUUID();
|
|
17054
|
+
cache().saveAnalysis(recordOf(answer, {
|
|
17055
|
+
id,
|
|
17056
|
+
dossier,
|
|
17057
|
+
startedAt,
|
|
17058
|
+
at,
|
|
17059
|
+
snapshot: snapshotOf(cache().items(dossier), at)
|
|
17060
|
+
}));
|
|
17061
|
+
return id;
|
|
17062
|
+
}
|
|
17063
|
+
};
|
|
17064
|
+
}
|
|
17065
|
+
/** The sample's history (`toil-ui --sample`): kept in memory for this run, from the sample's own items. */
|
|
17066
|
+
function sampleAnalyses(api, items, now) {
|
|
17067
|
+
const memory = api.record ? api : memoryAnalyses();
|
|
17068
|
+
return {
|
|
17069
|
+
list: (dossier) => memory.list(dossier),
|
|
17070
|
+
get: (dossier, id) => memory.get(dossier, id),
|
|
17071
|
+
record: async (dossier, answer, startedAt) => memory.record(dossier, answer, {
|
|
17072
|
+
startedAt,
|
|
17073
|
+
at: (/* @__PURE__ */ new Date()).toISOString(),
|
|
17074
|
+
items: await items(dossier),
|
|
17075
|
+
now: now()
|
|
17076
|
+
})
|
|
17077
|
+
};
|
|
17078
|
+
}
|
|
17079
|
+
//#endregion
|
|
15641
17080
|
//#region server/agents/mcp.ts
|
|
15642
17081
|
/**
|
|
15643
17082
|
* A small MCP server over loopback HTTP, for the one SDK that takes tools
|
|
@@ -16061,7 +17500,7 @@ var SyncService = class {
|
|
|
16061
17500
|
watermark: s.error === null ? (/* @__PURE__ */ new Date(Date.parse(run.startedAt) - SKEW_MS)).toISOString() : null,
|
|
16062
17501
|
calls: s.calls
|
|
16063
17502
|
}));
|
|
16064
|
-
this.cache.saveDossier({
|
|
17503
|
+
const news = this.cache.saveDossier({
|
|
16065
17504
|
dossier: name,
|
|
16066
17505
|
startedAt: run.startedAt,
|
|
16067
17506
|
finishedAt: this.now().toISOString(),
|
|
@@ -16071,6 +17510,10 @@ var SyncService = class {
|
|
|
16071
17510
|
deployments: loaded.deployments,
|
|
16072
17511
|
sources
|
|
16073
17512
|
});
|
|
17513
|
+
if (news.length) (this.job.news ??= []).push({
|
|
17514
|
+
dossier: name,
|
|
17515
|
+
events: [...news].sort((a, b) => a.at < b.at ? -1 : a.at > b.at ? 1 : 0).slice(-50)
|
|
17516
|
+
});
|
|
16074
17517
|
const failed = sources.filter((s) => !s.ok);
|
|
16075
17518
|
this.say(`${name}: ${loaded.items.length} items, ${loaded.changes.length} changes, ${loaded.deployments.length} deployments${failed.length ? `; ${failed.map((s) => s.area).join(", ")} failed, showing the last good copy` : ""}`);
|
|
16076
17519
|
}
|
|
@@ -16249,7 +17692,8 @@ function idle() {
|
|
|
16249
17692
|
pages: 0,
|
|
16250
17693
|
retries: 0,
|
|
16251
17694
|
messages: [],
|
|
16252
|
-
error: null
|
|
17695
|
+
error: null,
|
|
17696
|
+
news: []
|
|
16253
17697
|
};
|
|
16254
17698
|
}
|
|
16255
17699
|
//#endregion
|
|
@@ -16627,7 +18071,7 @@ var AssignmentQueue = class {
|
|
|
16627
18071
|
}
|
|
16628
18072
|
get(id) {
|
|
16629
18073
|
const r = this.records.get(id);
|
|
16630
|
-
if (!r) throw new AssignError(`There is no assignment ${id}.`, "Open the Agents
|
|
18074
|
+
if (!r) throw new AssignError(`There is no assignment ${id}.`, "Open the Agents sidebar on the dossier to see its assignments.", 404);
|
|
16631
18075
|
return {
|
|
16632
18076
|
...structuredClone(r),
|
|
16633
18077
|
ranMs: runMs(r, this.o.now())
|
|
@@ -16906,7 +18350,7 @@ var AssignmentQueue = class {
|
|
|
16906
18350
|
}
|
|
16907
18351
|
mutable(id) {
|
|
16908
18352
|
const r = this.records.get(id);
|
|
16909
|
-
if (!r) throw new AssignError(`There is no assignment ${id}.`, "Open the Agents
|
|
18353
|
+
if (!r) throw new AssignError(`There is no assignment ${id}.`, "Open the Agents sidebar on the dossier to see its assignments.", 404);
|
|
16910
18354
|
return r;
|
|
16911
18355
|
}
|
|
16912
18356
|
note(r, kind, title, detail) {
|
|
@@ -17203,6 +18647,9 @@ DIRECTIVES.filter((d) => !d.startsWith("frame-ancestors")).join("; ");
|
|
|
17203
18647
|
* `worklog/rebuild`, `worklog/note` and `worklog/export`, each an explicit
|
|
17204
18648
|
* press on the page: a note goes into the cache, and an export is a file
|
|
17205
18649
|
* toil's file service writes in the folder the person named.
|
|
18650
|
+
* The history of analyses (#395) is `analyses` and `analyses/one`, read
|
|
18651
|
+
* only: the server keeps each Analyze itself as its answer ends whole, and
|
|
18652
|
+
* says which on the answer's last line, so nothing the page sends writes one.
|
|
17206
18653
|
* The building has one door, one key and a guest book, and the guest book is
|
|
17207
18654
|
* toil's audit log.
|
|
17208
18655
|
*/
|
|
@@ -17213,6 +18660,39 @@ var MAX_BODY = 262144;
|
|
|
17213
18660
|
var CSRF_HEADER = "x-toil-ui-csrf";
|
|
17214
18661
|
/** The longest question the agent takes, in characters. */
|
|
17215
18662
|
var MAX_PROMPT = 8e3;
|
|
18663
|
+
/**
|
|
18664
|
+
* Keeps an Analyze in the history (#395) once its answer is whole, and only
|
|
18665
|
+
* then: a stopped, failed or empty answer is no analysis. A record that can't
|
|
18666
|
+
* be kept never fails the answer; the answer says so instead.
|
|
18667
|
+
*/
|
|
18668
|
+
function kept(keeper, dossier, startedAt) {
|
|
18669
|
+
const one = async (answer) => {
|
|
18670
|
+
if (!isWhole(answer)) return answer;
|
|
18671
|
+
try {
|
|
18672
|
+
return {
|
|
18673
|
+
...answer,
|
|
18674
|
+
analysis: await keeper.record(dossier, answer, startedAt)
|
|
18675
|
+
};
|
|
18676
|
+
} catch (e) {
|
|
18677
|
+
return {
|
|
18678
|
+
...answer,
|
|
18679
|
+
warnings: [...answer.warnings ?? [], `Toil UI couldn't keep this analysis in its history: ${e instanceof Error ? e.message : String(e)}`]
|
|
18680
|
+
};
|
|
18681
|
+
}
|
|
18682
|
+
};
|
|
18683
|
+
async function* stream(answers, signal) {
|
|
18684
|
+
let last;
|
|
18685
|
+
for await (const a of answers) {
|
|
18686
|
+
last = a;
|
|
18687
|
+
yield a;
|
|
18688
|
+
}
|
|
18689
|
+
if (!signal.aborted && isWhole(last)) yield await one(last);
|
|
18690
|
+
}
|
|
18691
|
+
return {
|
|
18692
|
+
one,
|
|
18693
|
+
stream
|
|
18694
|
+
};
|
|
18695
|
+
}
|
|
17216
18696
|
/** The session id the page got for the launch token, on every API call. Never a cookie. */
|
|
17217
18697
|
var SESSION_HEADER = "x-toil-ui-session";
|
|
17218
18698
|
var TYPES = {
|
|
@@ -17496,6 +18976,11 @@ function createUiServer(options) {
|
|
|
17496
18976
|
if (typeof value !== "string" || !value) throw new HttpError(400, `Name the ${what}.`, shape);
|
|
17497
18977
|
return value;
|
|
17498
18978
|
};
|
|
18979
|
+
/** The history of analyses, or a 404 when this server keeps none. */
|
|
18980
|
+
const keeper = () => {
|
|
18981
|
+
if (!options.analyses) throw new HttpError(404, "This Toil UI keeps no history of analyses.", "Start toil-ui with its cache to keep every Analyze.");
|
|
18982
|
+
return options.analyses;
|
|
18983
|
+
};
|
|
17499
18984
|
/** The usage view, or a 404 when this server keeps none. */
|
|
17500
18985
|
const usage = () => {
|
|
17501
18986
|
if (!options.usage) throw new HttpError(404, "This Toil UI keeps no record of model usage.", "Start toil-ui with its cache to record what the agent uses.");
|
|
@@ -17657,14 +19142,32 @@ function createUiServer(options) {
|
|
|
17657
19142
|
const style = checkedStyle(body);
|
|
17658
19143
|
const chat = chatOf(body.chat);
|
|
17659
19144
|
const extra = extraOf(body);
|
|
17660
|
-
|
|
19145
|
+
const keep = body.prompt === "analyze" && options.analyses ? kept(options.analyses, body.dossier, (/* @__PURE__ */ new Date()).toISOString()) : null;
|
|
19146
|
+
if (body.stream === true && agent.stream) {
|
|
19147
|
+
const answers = agent.stream(ctx, body.dossier, body.prompt, style, chat, extra);
|
|
19148
|
+
return streamAnswer(res, keep ? keep.stream(answers, ctx.signal) : answers);
|
|
19149
|
+
}
|
|
17661
19150
|
try {
|
|
17662
|
-
|
|
19151
|
+
const answer = await agent.ask(ctx, body.dossier, body.prompt, style, chat, extra);
|
|
19152
|
+
json(res, 200, keep && !ctx.signal.aborted ? await keep.one(answer) : answer);
|
|
17663
19153
|
} catch (e) {
|
|
17664
19154
|
json(res, 502, { error: agentFailure(e) });
|
|
17665
19155
|
}
|
|
17666
19156
|
return;
|
|
17667
19157
|
}
|
|
19158
|
+
case "GET analyses": {
|
|
19159
|
+
const dossier = named(url.searchParams.get("dossier"), "dossier", `Ask ${base}api/analyses?dossier=<name>.`);
|
|
19160
|
+
json(res, 200, await keeper().list(dossier));
|
|
19161
|
+
return;
|
|
19162
|
+
}
|
|
19163
|
+
case "GET analyses/one": {
|
|
19164
|
+
const shape = `Ask ${base}api/analyses/one?dossier=<name>&id=<analysis id>.`;
|
|
19165
|
+
const dossier = named(url.searchParams.get("dossier"), "dossier", shape);
|
|
19166
|
+
const view = await keeper().get(dossier, named(url.searchParams.get("id"), "analysis", shape));
|
|
19167
|
+
if (!view) throw new HttpError(404, `${dossier} has no analysis by that id: it may have passed the retention period, or the cache was wiped.`, "Open the Analyses tab for the ones kept now.");
|
|
19168
|
+
json(res, 200, view);
|
|
19169
|
+
return;
|
|
19170
|
+
}
|
|
17668
19171
|
case "GET agent/session": {
|
|
17669
19172
|
const chat = url.searchParams.get("chat") ?? "";
|
|
17670
19173
|
if (!CHAT_ID.test(chat)) throw new HttpError(400, "Name the chat by its id.", `Ask ${base}api/agent/session?chat=<chat id>.`);
|
|
@@ -17819,7 +19322,7 @@ function createUiServer(options) {
|
|
|
17819
19322
|
} : body.day !== void 0 ? { day: named(body.day, "day", shape) } : { month: named(body.month, "month", shape) };
|
|
17820
19323
|
return worklogCall(res, () => worklog().exportTo(named(body.dossier, "dossier", shape), what, named(body.folder, "folder", shape)));
|
|
17821
19324
|
}
|
|
17822
|
-
default: throw new HttpError(404, `There is no ${key} in the API.`, `The API is under ${base}api/: session, execute, config, config/areas, config/settings, feedback, sync, cache/wipe, usage, usage/settings, worklog/month, worklog/day, worklog/standup, worklog/rebuild, worklog/note, worklog/export, fingerprint, agent/starters, agent/ask, agent/session, agent/renew, agent/prompt, agent/settings, agent/adapters, agent/install, agent/mcp and assignments.`);
|
|
19325
|
+
default: throw new HttpError(404, `There is no ${key} in the API.`, `The API is under ${base}api/: session, execute, config, config/areas, config/settings, feedback, sync, cache/wipe, usage, usage/settings, worklog/month, worklog/day, worklog/standup, worklog/rebuild, worklog/note, worklog/export, analyses, analyses/one, fingerprint, agent/starters, agent/ask, agent/session, agent/renew, agent/prompt, agent/settings, agent/adapters, agent/install, agent/mcp and assignments.`);
|
|
17823
19326
|
}
|
|
17824
19327
|
};
|
|
17825
19328
|
const serveFile = async (res, route) => {
|
|
@@ -17915,7 +19418,7 @@ var USAGE = `Usage: toil-ui [options]
|
|
|
17915
19418
|
toil-ui wipe [--data-dir <dir>]
|
|
17916
19419
|
|
|
17917
19420
|
Starts Toil UI on this machine and prints the one URL that opens it.
|
|
17918
|
-
|
|
19421
|
+
Beta, local only: it binds loopback and reads through toil, read-only.
|
|
17919
19422
|
A sync stores what the dashboards show in a cache in the data folder.
|
|
17920
19423
|
|
|
17921
19424
|
Commands:
|
|
@@ -18006,7 +19509,7 @@ function themesNotice(dataDir, exists = existsSync, path = nodePath) {
|
|
|
18006
19509
|
return `Note: Toil UI no longer reads themes from ${dir}; only its built-in themes are offered. The folder is left as it is, and you can delete it. To ask for a new theme, send a feature request from the Feedback button or with toil feedback feature.`;
|
|
18007
19510
|
}
|
|
18008
19511
|
/** toil's dossier names: lowercase letters, digits and single hyphens, so each is a safe folder name. */
|
|
18009
|
-
var DOSSIER = /^[a-z][a-z0-9]*(-[a-z0-9]+)*$/;
|
|
19512
|
+
var DOSSIER$1 = /^[a-z][a-z0-9]*(-[a-z0-9]+)*$/;
|
|
18010
19513
|
var fwd = (p) => p.replace(/\\/g, "/");
|
|
18011
19514
|
var WorklogService = class {
|
|
18012
19515
|
o;
|
|
@@ -18030,7 +19533,7 @@ var WorklogService = class {
|
|
|
18030
19533
|
return join(this.folder(dossier), monthOf(day), `${day}.md`);
|
|
18031
19534
|
}
|
|
18032
19535
|
checkDossier(dossier) {
|
|
18033
|
-
if (typeof dossier !== "string" || !DOSSIER.test(dossier)) throw new WorklogRefusal("Name a dossier: lowercase letters, digits and single hyphens.", "Use a name toil dossiers list shows.");
|
|
19536
|
+
if (typeof dossier !== "string" || !DOSSIER$1.test(dossier)) throw new WorklogRefusal("Name a dossier: lowercase letters, digits and single hyphens.", "Use a name toil dossiers list shows.");
|
|
18034
19537
|
if (!this.cache.states().some((s) => s.name === dossier) && !this.cache.worklogDays(dossier).length) throw new WorklogRefusal(`Toil UI hasn't synced ${dossier}, so it has no worklog yet.`, "Press Sync now in the Sync panel; each sync records the day it saw.", 404);
|
|
18035
19538
|
return dossier;
|
|
18036
19539
|
}
|
|
@@ -18166,7 +19669,7 @@ var WorklogService = class {
|
|
|
18166
19669
|
return this.serial(() => this.fold(dossier));
|
|
18167
19670
|
}
|
|
18168
19671
|
async fold(dossier) {
|
|
18169
|
-
if (!DOSSIER.test(dossier)) return [];
|
|
19672
|
+
if (!DOSSIER$1.test(dossier)) return [];
|
|
18170
19673
|
const days = this.cache.worklogDays(dossier);
|
|
18171
19674
|
const written = [];
|
|
18172
19675
|
for (const page of await this.pages(dossier, days)) if (this.write(this.pagePath(dossier, page.day), markdownOf(page))) written.push(page.day);
|
|
@@ -18284,7 +19787,7 @@ var WorklogService = class {
|
|
|
18284
19787
|
* agent host; assign-to-agent (#293) will send its assignments the same way.
|
|
18285
19788
|
*/
|
|
18286
19789
|
async recordRun(run) {
|
|
18287
|
-
if (!DOSSIER.test(run.dossier) || run.startedAt < this.cache.openedAt) return;
|
|
19790
|
+
if (!DOSSIER$1.test(run.dossier) || run.startedAt < this.cache.openedAt) return;
|
|
18288
19791
|
this.cache.saveRun(run);
|
|
18289
19792
|
this.write(join(this.folder(run.dossier), "runs", `${run.id}.md`), transcriptOf(run));
|
|
18290
19793
|
this.serial(() => this.foldDay(run.dossier, dayOf(run.startedAt))).catch(() => void 0);
|
|
@@ -18373,6 +19876,98 @@ var WorklogService = class {
|
|
|
18373
19876
|
}
|
|
18374
19877
|
};
|
|
18375
19878
|
//#endregion
|
|
19879
|
+
//#region src/fixtures/analyses.ts
|
|
19880
|
+
/**
|
|
19881
|
+
* The sample history of analyses (#395), for the site preview and `toil-ui
|
|
19882
|
+
* --sample`: card-payments has two earlier Analyze answers from the scripted
|
|
19883
|
+
* agent, so the Analyses tab, its what-changed view and the Overview's
|
|
19884
|
+
* recommendation have something to show, while settlement and checkout-web
|
|
19885
|
+
* have none, so the code's own recommendation shows there. The latest is
|
|
19886
|
+
* today's scripted answer on the sample as it is; the one before it is
|
|
19887
|
+
* scripted too, on a snapshot made a few days earlier by hand: PAY-103 not
|
|
19888
|
+
* yet blocked, PAY-104 then waiting on PAY-105, PAY-102 estimated at two
|
|
19889
|
+
* points fewer, and three fewer points done. Every record says it was the
|
|
19890
|
+
* scripted preview, not a model. The latest is from the sample's own
|
|
19891
|
+
* morning, so the Overview leads with it. Analyze pressed in the preview is kept
|
|
19892
|
+
* beside them, in memory, until the page reloads. Two meetings, minuted
|
|
19893
|
+
* before anyone arrived.
|
|
19894
|
+
*/
|
|
19895
|
+
var DOSSIER = "card-payments";
|
|
19896
|
+
var HOUR = 36e5;
|
|
19897
|
+
var at$1 = (hoursBefore) => (/* @__PURE__ */ new Date(Date.parse(FIXTURE_NOW) - hoursBefore * HOUR)).toISOString();
|
|
19898
|
+
var J$1 = (n) => `corp-jira:PAY-${n}`;
|
|
19899
|
+
/** The snapshot a few days before the sample's day, made by hand from today's. */
|
|
19900
|
+
function earlier(now) {
|
|
19901
|
+
const blocked = now.blocked.filter((b) => b.id !== J$1(103));
|
|
19902
|
+
if (!blocked.some((b) => b.id === J$1(104))) blocked.push({
|
|
19903
|
+
id: J$1(104),
|
|
19904
|
+
by: [J$1(105)]
|
|
19905
|
+
});
|
|
19906
|
+
const points = { ...now.points };
|
|
19907
|
+
const was = points[J$1(102)];
|
|
19908
|
+
if (was !== void 0) points[J$1(102)] = Math.max(0, was - 2);
|
|
19909
|
+
const sprint = now.sprint ? {
|
|
19910
|
+
...now.sprint,
|
|
19911
|
+
done: Math.max(0, now.sprint.done - 3),
|
|
19912
|
+
remaining: now.sprint.remaining + 3
|
|
19913
|
+
} : null;
|
|
19914
|
+
return {
|
|
19915
|
+
blocked: blocked.sort((a, b) => a.id.localeCompare(b.id)),
|
|
19916
|
+
points,
|
|
19917
|
+
sprint
|
|
19918
|
+
};
|
|
19919
|
+
}
|
|
19920
|
+
/** The earlier scripted answer: the same shape, about what the hand-made snapshot shows. */
|
|
19921
|
+
var EARLIER_PARTS = [
|
|
19922
|
+
`Recommendation: Unblock [[${J$1(104)}]] first: it waits on [[${J$1(105)}]], and it came over from Sprint 41.`,
|
|
19923
|
+
[
|
|
19924
|
+
"Issues:",
|
|
19925
|
+
`1. Blocked: [[${J$1(104)}]] is blocked by [[${J$1(105)}]].`,
|
|
19926
|
+
`2. Build failing: [[${J$1(101)}]]'s latest build failed, and it blocks [[${J$1(102)}]].`
|
|
19927
|
+
].join("\n"),
|
|
19928
|
+
"Evidence:",
|
|
19929
|
+
`The scripted preview's earlier analysis, kept so the history has one to compare with. [[${J$1(102)}]] waited on [[${J$1(101)}]]; [[${J$1(103)}]] was not blocked yet.`
|
|
19930
|
+
];
|
|
19931
|
+
/** The sample's records, worked out from the sample's own items. */
|
|
19932
|
+
async function sampleAnalysisRecords() {
|
|
19933
|
+
const now = snapshotOf((await loadDossier(fixtureExecute().execute, DOSSIER)).items, FIXTURE_NOW);
|
|
19934
|
+
const answer = (texts) => {
|
|
19935
|
+
const parts = texts.map((text) => ({ text }));
|
|
19936
|
+
return {
|
|
19937
|
+
prompt: "Analyze",
|
|
19938
|
+
parts,
|
|
19939
|
+
citations: citationsOf(parts),
|
|
19940
|
+
by: "scripted",
|
|
19941
|
+
adapter: "scripted",
|
|
19942
|
+
model: null,
|
|
19943
|
+
proposals: []
|
|
19944
|
+
};
|
|
19945
|
+
};
|
|
19946
|
+
return [recordOf(answer(EARLIER_PARTS), {
|
|
19947
|
+
id: "sample-analysis-1",
|
|
19948
|
+
dossier: DOSSIER,
|
|
19949
|
+
startedAt: at$1(90.5),
|
|
19950
|
+
at: at$1(90),
|
|
19951
|
+
snapshot: earlier(now)
|
|
19952
|
+
}), recordOf(answer(analyzeParts(DOSSIER)), {
|
|
19953
|
+
id: "sample-analysis-2",
|
|
19954
|
+
dossier: DOSSIER,
|
|
19955
|
+
startedAt: at$1(.6),
|
|
19956
|
+
at: at$1(.5),
|
|
19957
|
+
snapshot: now
|
|
19958
|
+
})];
|
|
19959
|
+
}
|
|
19960
|
+
/** The preview's history: the sample's records, then whatever Analyze adds in this page. */
|
|
19961
|
+
function fixtureAnalyses() {
|
|
19962
|
+
let ready;
|
|
19963
|
+
const api = () => ready ??= sampleAnalysisRecords().then((seed) => memoryAnalyses(seed));
|
|
19964
|
+
return {
|
|
19965
|
+
list: async (dossier) => (await api()).list(dossier),
|
|
19966
|
+
get: async (dossier, id) => (await api()).get(dossier, id),
|
|
19967
|
+
record: async (dossier, answer, when) => (await api()).record(dossier, answer, when)
|
|
19968
|
+
};
|
|
19969
|
+
}
|
|
19970
|
+
//#endregion
|
|
18376
19971
|
//#region src/fixtures/worklog.ts
|
|
18377
19972
|
/** How long the sample says its cache keeps things, as a real one does by default. */
|
|
18378
19973
|
var RETENTION = 30;
|
|
@@ -18908,7 +20503,7 @@ function sampleRecords(cards) {
|
|
|
18908
20503
|
stop: {
|
|
18909
20504
|
reason: "time",
|
|
18910
20505
|
message: "Stopped at the time limit of 20 minutes, before the agent finished.",
|
|
18911
|
-
fix: "Raise the limit in the Agents
|
|
20506
|
+
fix: "Raise the limit in the Agents sidebar, or assign a smaller piece of the item."
|
|
18912
20507
|
},
|
|
18913
20508
|
startedOn: startedOn("corp-jira:PAY-101", "codex", minutes(179), [...READ_TOOLS, "codex sandbox"], SAMPLE_FINGERPRINT_BEFORE),
|
|
18914
20509
|
transcript: [
|
|
@@ -19579,7 +21174,7 @@ function hostRunner(o) {
|
|
|
19579
21174
|
toil: o.toilVersion,
|
|
19580
21175
|
toilUi: o.version,
|
|
19581
21176
|
adapter,
|
|
19582
|
-
model: null,
|
|
21177
|
+
model: o.host.adapterChoices().find((c) => c.name === adapter)?.model ?? null,
|
|
19583
21178
|
skills: [],
|
|
19584
21179
|
tools: tools.map((t) => t.name),
|
|
19585
21180
|
dossier: {
|
|
@@ -19953,7 +21548,7 @@ async function main() {
|
|
|
19953
21548
|
return 0;
|
|
19954
21549
|
}
|
|
19955
21550
|
if (parsed.version) {
|
|
19956
|
-
process.stdout.write(`0.1.0-
|
|
21551
|
+
process.stdout.write(`0.1.0-beta.1 (toil ${version})\n`);
|
|
19957
21552
|
return 0;
|
|
19958
21553
|
}
|
|
19959
21554
|
const { settings } = parsed;
|
|
@@ -20012,8 +21607,8 @@ async function main() {
|
|
|
20012
21607
|
commit: typeof toilCommit === "string" ? toilCommit : null
|
|
20013
21608
|
},
|
|
20014
21609
|
toilUi: {
|
|
20015
|
-
version: "0.1.0-
|
|
20016
|
-
commit: "
|
|
21610
|
+
version: "0.1.0-beta.1",
|
|
21611
|
+
commit: "2bb247a57f71f431f7bdf756d34752e704e81cb9"
|
|
20017
21612
|
}
|
|
20018
21613
|
},
|
|
20019
21614
|
toilBundle: toilBundle(),
|
|
@@ -20048,7 +21643,7 @@ async function main() {
|
|
|
20048
21643
|
};
|
|
20049
21644
|
const host = cache ? new AgentHost({
|
|
20050
21645
|
dataDir: settings.dataDir,
|
|
20051
|
-
version: "0.1.0-
|
|
21646
|
+
version: "0.1.0-beta.1",
|
|
20052
21647
|
data: (dossier) => {
|
|
20053
21648
|
const data = cacheData(cache, dossier);
|
|
20054
21649
|
return data && worklog ? {
|
|
@@ -20083,7 +21678,7 @@ async function main() {
|
|
|
20083
21678
|
execute,
|
|
20084
21679
|
mapIds,
|
|
20085
21680
|
data,
|
|
20086
|
-
version: "0.1.0-
|
|
21681
|
+
version: "0.1.0-beta.1",
|
|
20087
21682
|
toilVersion: version,
|
|
20088
21683
|
...fingerprints ? { fingerprints } : {}
|
|
20089
21684
|
}),
|
|
@@ -20154,11 +21749,12 @@ async function main() {
|
|
|
20154
21749
|
...host ? { agentControl: host } : {},
|
|
20155
21750
|
...sync ? { sync } : {},
|
|
20156
21751
|
worklog: worklog ?? fixtureWorklog(),
|
|
21752
|
+
analyses: cache ? cacheAnalyses(() => cache) : sampleAnalyses(fixtureAnalyses(), async (dossier) => (await loadDossier(fixtureExecute().execute, dossier)).items, () => FIXTURE_NOW),
|
|
20157
21753
|
usage,
|
|
20158
21754
|
assignments,
|
|
20159
21755
|
...fingerprints ? { serverStatus: () => fingerprints.server() } : {},
|
|
20160
21756
|
appDir: fileURLToPath(new URL("../app/", import.meta.url)),
|
|
20161
|
-
version: "0.1.0-
|
|
21757
|
+
version: "0.1.0-beta.1",
|
|
20162
21758
|
toil,
|
|
20163
21759
|
config: settings.sample ? {
|
|
20164
21760
|
areas: FIXTURE_AREAS,
|
|
@@ -20179,7 +21775,7 @@ async function main() {
|
|
|
20179
21775
|
return 1;
|
|
20180
21776
|
}
|
|
20181
21777
|
process.stdout.write([
|
|
20182
|
-
`Toil UI 0.1.0-
|
|
21778
|
+
`Toil UI 0.1.0-beta.1 (beta, local only), on toil ${version}`,
|
|
20183
21779
|
settings.sample ? "Serving sample data and the scripted agent; nothing connects to a tracker." : "Syncing through toil, read-only, with your own connections and dossiers. Only its Settings pages, and a dossier's name and description edited in place, change anything: toil's own connections and dossiers, when you ask. The worklog keeps its pages and your notes in its data folder, and writes anywhere else only when you export one. Feedback goes to Imagile only when you send it.",
|
|
20184
21780
|
...cache ? [`The cache is ${cache.paths.db}, kept ${settings.retentionDays} days after each sync; toil-ui wipe deletes it.`] : [],
|
|
20185
21781
|
"",
|