@hearsay-tools/squawk 0.18.0-pr3582.6463 → 0.18.0-pr3586.6464.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +3 -4
- package/dist/contract/events.d.ts +4 -4
- package/dist/contract/health.d.ts +3 -2
- package/dist/contract/index.js +1 -5
- package/dist/contract/projects.d.ts +1 -9
- package/dist/contract/workspace.d.ts +1 -1
- package/dist/data-gitignore.js +0 -1
- package/dist/data-gitignore.js.map +1 -1
- package/dist/server/activity-routes.d.ts +23 -23
- package/dist/server/forge/github.d.ts +3 -3
- package/dist/server/forge/github.js +5 -5
- package/dist/server/forge/github.js.map +1 -1
- package/dist/server/forge/types.d.ts +3 -3
- package/dist/server/git-changes.d.ts +1 -1
- package/dist/server/live-routes.d.ts +6 -6
- package/dist/server/project-context.d.ts +1 -3
- package/dist/server/project-context.js +1 -3
- package/dist/server/project-context.js.map +1 -1
- package/dist/server/run-checkout.js +2 -2
- package/dist/server/run-checkout.js.map +1 -1
- package/dist/server/server-deps.d.ts +1 -1
- package/dist/server/server-deps.js +1 -3
- package/dist/server/server-deps.js.map +1 -1
- package/dist/server/server.d.ts +58 -80
- package/dist/server/server.js +16 -21
- package/dist/server/server.js.map +1 -1
- package/dist/server/validators.js +1 -1
- package/dist/server/workspace-live-routes.d.ts +6 -6
- package/dist/server-install/types.d.ts +3 -3
- package/dist/server-install/types.js +3 -3
- package/dist/ui-state.d.ts +3 -3
- package/dist/ui-state.js +3 -3
- package/dist/workspace/ui-state.js +1 -1
- package/dist/workspace/ui-state.js.map +1 -1
- package/package.json +4 -4
- package/web/dist/assets/activity-motion-CbA_TAx4.js +2 -0
- package/web/dist/assets/{activity-route-su3KawLr.js → activity-route-Cq5GO6rp.js} +1 -1
- package/web/dist/assets/{agent-accounts-DseqHuGY.js → agent-accounts-Cof8AiVl.js} +1 -1
- package/web/dist/assets/{alert-dialog-CPBKJTj_.js → alert-dialog-CH4SXGfX.js} +1 -1
- package/web/dist/assets/attention-BjWQsJVw.js +1 -0
- package/web/dist/assets/button-DGwhwRuD.js +3 -0
- package/web/dist/assets/{centered-state-8l6wvu0C.js → centered-state-B5QmAy2y.js} +1 -1
- package/web/dist/assets/{commit-diff-panel-DmhrguZk.js → commit-diff-panel-BInf9r-P.js} +1 -1
- package/web/dist/assets/{dialog-CkU56ywj.js → dialog-B7p5oc5r.js} +1 -1
- package/web/dist/assets/diff-BvCB85J2.js +3 -0
- package/web/dist/assets/{diff-controls-DzcrZF8L.js → diff-controls-CeYlCm_y.js} +1 -1
- package/web/dist/assets/{diff-view-BNL7l7Vp.js → diff-view-Cnlbd7ej.js} +4 -4
- package/web/dist/assets/{dist-D4TujV9O.js → dist-ClnpAEgV.js} +1 -1
- package/web/dist/assets/{dropdown-menu-BN2BI4R1.js → dropdown-menu-DPrTX-zi.js} +1 -1
- package/web/dist/assets/{es2015-DnySZnV4.js → es2015-DTn4s5Lh.js} +1 -1
- package/web/dist/assets/{file-preview-Cm1jWwBy.js → file-preview-EiGdhbDV.js} +2 -2
- package/web/dist/assets/{git-toolbar-Dya9briW.js → git-toolbar-D6W3lamH.js} +1 -1
- package/web/dist/assets/{github-wWGhoE3O.js → github-DQe-Ussy.js} +1 -1
- package/web/dist/assets/{global-activity-route-DpQr_eU9.js → global-activity-route-_1mbn6gk.js} +1 -1
- package/web/dist/assets/{image-preview-DpaJAUA9.js → image-preview-cn57tA1m.js} +1 -1
- package/web/dist/assets/index-Cs-8u_FQ.js +17 -0
- package/web/dist/assets/index-WLruDkjz.css +1 -0
- package/web/dist/assets/{nav-row-styles-DoZBu-jT.js → nav-row-styles-DSBuSnEE.js} +1 -1
- package/web/dist/assets/preview-pane-connected-DgZ5q0xy.js +3 -0
- package/web/dist/assets/{project-router-uJ3SkX70.js → project-router-iGGf0Wcy.js} +1 -1
- package/web/dist/assets/project-scope-context-DK2mtfmt.js +4 -0
- package/web/dist/assets/{prompt-template-menu-D5T9W-K3.js → prompt-template-menu-D1AqFsnv.js} +1 -1
- package/web/dist/assets/queries-CMLTX79n.js +1 -0
- package/web/dist/assets/{reference-chip-AZWOlSRV.js → reference-chip-uYFiC2FE.js} +1 -1
- package/web/dist/assets/repo-git-B_xucWJR.js +1 -0
- package/web/dist/assets/{report-reader-kzlovTso.js → report-reader-Csv7xOrn.js} +1 -1
- package/web/dist/assets/reports-BVp32fGs.js +1 -0
- package/web/dist/assets/run-header-C941_3eU.js +2 -0
- package/web/dist/assets/skills-PpSAbEYS.js +1 -0
- package/web/dist/assets/{tab-link-h4IjTsRH.js → tab-link-dVF0beIK.js} +1 -1
- package/web/dist/assets/task-changes-BaCA5Izd.js +1 -0
- package/web/dist/assets/task-commits-B4oZHsub.js +1 -0
- package/web/dist/assets/task-files-Bg_J255X.js +1 -0
- package/web/dist/assets/{task-github-item-DyZdbhco.js → task-github-item-DyBh5-Q_.js} +1 -1
- package/web/dist/assets/task-thread-D6wp7G61.js +9 -0
- package/web/dist/assets/{thread-state-hhRCETQT.js → thread-state-DA5kehiy.js} +1 -1
- package/web/dist/assets/{toaster-2NK3PogQ.js → toaster-CoMJoQvk.js} +1 -1
- package/web/dist/assets/{use-desktop-C3yCutND.js → use-desktop-BL6xT4Rz.js} +1 -1
- package/web/dist/assets/use-hand-to-agent-state-CPhF3TRe.js +1 -0
- package/web/dist/assets/{useInfiniteQuery-BcY0ra-k.js → useInfiniteQuery-CYsKbsRE.js} +1 -1
- package/web/dist/assets/useQuery-DMywwX-_.js +1 -0
- package/web/dist/assets/workflows-CsCKM6GN.js +7 -0
- package/web/dist/assets/ws-DdguL17F.js +1 -0
- package/web/dist/assets/{zoomable-image-D0zshpve.js → zoomable-image-C7mEDZaS.js} +1 -1
- package/web/dist/index.html +22 -23
- package/dist/server/launch-key.d.ts +0 -5
- package/dist/server/launch-key.js +0 -35
- package/dist/server/launch-key.js.map +0 -1
- package/web/dist/assets/activity-motion-BeswQRe1.js +0 -2
- package/web/dist/assets/attention-DlfFfWoj.js +0 -1
- package/web/dist/assets/button-Czdi8NqC.js +0 -3
- package/web/dist/assets/diff-DDwr1gUX.js +0 -3
- package/web/dist/assets/index-DS1HIBHa.css +0 -1
- package/web/dist/assets/index-DYx21hr3.js +0 -17
- package/web/dist/assets/input-Dilvz-YI.js +0 -1
- package/web/dist/assets/preview-pane-connected-DSStovll.js +0 -3
- package/web/dist/assets/project-scope-context-X6-LgbYE.js +0 -4
- package/web/dist/assets/queries-00V5jnAV.js +0 -1
- package/web/dist/assets/repo-git-DJPSn50o.js +0 -1
- package/web/dist/assets/reports-Ds7nog_M.js +0 -1
- package/web/dist/assets/run-header-skVwUvR-.js +0 -2
- package/web/dist/assets/skills-BJPLRZL5.js +0 -1
- package/web/dist/assets/task-changes-Db3dmYAT.js +0 -1
- package/web/dist/assets/task-commits-D4HdW5xE.js +0 -1
- package/web/dist/assets/task-files-sdaEBCfr.js +0 -1
- package/web/dist/assets/task-thread-QKAKHYiJ.js +0 -9
- package/web/dist/assets/use-hand-to-agent-state-wGtVosbN.js +0 -1
- package/web/dist/assets/useQuery-C96hAjNV.js +0 -1
- package/web/dist/assets/workflows-DRO8PcD-.js +0 -7
- package/web/dist/assets/ws-BD6s7UXb.js +0 -1
package/README.md
CHANGED
|
@@ -404,8 +404,7 @@ Task and project views share one browser window and live updates over Server-Sen
|
|
|
404
404
|
|
|
405
405
|
The cockpit is a React app served pre-built from the package — `npx -p @hearsay-tools/squawk hsq`
|
|
406
406
|
still means no build step and no dev server on your machine — with a dark/light
|
|
407
|
-
theme
|
|
408
|
-
a GitHub page.
|
|
407
|
+
theme and a ⌘K command palette.
|
|
409
408
|
|
|
410
409
|
GitHub issue and PR lists refresh every 60 seconds while mounted in a foreground browser tab.
|
|
411
410
|
Automatic reads retain the server's 60-second cache: while online and visible, upstream edits
|
|
@@ -491,7 +490,7 @@ server stopped, and `HSQ_HOME` (`CEZ_HOME` fallback) selects which workspace the
|
|
|
491
490
|
|
|
492
491
|
Settings split along the same line: **General** (the project's folder, its
|
|
493
492
|
registry facts, its parallel-task ceiling, and Remove), **Agents**, **Agent config**,
|
|
494
|
-
**Worktrees**, **Sidebar
|
|
493
|
+
**Worktrees**, **Sidebar** and **Prompt templates** describe one
|
|
495
494
|
repo and live under `/p/<projectId>/settings`; **Appearance**,
|
|
496
495
|
**Notifications**, **Resources**, **Skills**, **Agent accounts** and **Projects**
|
|
497
496
|
are yours or the machine's and live at `/settings/global`.
|
|
@@ -607,7 +606,7 @@ a queue or a routing rule. Removing one changes what you see and nothing else.
|
|
|
607
606
|
**Old page URLs keep working.** Every unprefixed page path — `/`, `/tasks/<id>`,
|
|
608
607
|
`/settings` — still answers, bound to the project Squawk was started in; the
|
|
609
608
|
cockpit redirects flat paths to their `/p/<boot>/…` twin, so existing bookmarks
|
|
610
|
-
|
|
609
|
+
need no change. The HTTP API is the exception: it moved to
|
|
611
610
|
`/api/v1/…` (see the CHANGELOG), so a script that calls it needs the extra
|
|
612
611
|
segment.
|
|
613
612
|
|
|
@@ -12,10 +12,10 @@ import { z } from 'zod';
|
|
|
12
12
|
/**
|
|
13
13
|
* One line of a run transcript.
|
|
14
14
|
*
|
|
15
|
-
* Open by design: `type` is a plain string and unknown keys pass through, because
|
|
16
|
-
*
|
|
17
|
-
*
|
|
18
|
-
*
|
|
15
|
+
* Open by design: `type` is a plain string and unknown keys pass through, because the event
|
|
16
|
+
* vocabulary is an APPEND-ONLY on-disk format (BACKWARD_COMPATIBILITY.md) that old NDJSON
|
|
17
|
+
* recordings must keep replaying forever. Closing this schema would make a recording written by
|
|
18
|
+
* a newer Squawk unreadable by an older one — the opposite of what the format promises.
|
|
19
19
|
*/
|
|
20
20
|
export declare const runEventSchema: z.ZodObject<{
|
|
21
21
|
seq: z.ZodNumber;
|
|
@@ -38,8 +38,9 @@ export declare const capabilitiesSchema: z.ZodObject<{
|
|
|
38
38
|
}, z.core.$strip>;
|
|
39
39
|
export type Capabilities = z.infer<typeof capabilitiesSchema>;
|
|
40
40
|
/**
|
|
41
|
-
* `GET /api/v1/health` — the CORS-open discovery endpoint.
|
|
42
|
-
*
|
|
41
|
+
* `GET /api/v1/health` — the CORS-open discovery endpoint (BACKWARD_COMPATIBILITY.md).
|
|
42
|
+
*
|
|
43
|
+
* Additive fields only: this is the most externally-depended-on JSON in the app.
|
|
43
44
|
*/
|
|
44
45
|
export declare const healthResponseSchema: z.ZodObject<{
|
|
45
46
|
version: z.ZodString;
|
package/dist/contract/index.js
CHANGED
|
@@ -2709,7 +2709,7 @@ var runRecordSchema = z20.object({
|
|
|
2709
2709
|
pinned: z20.boolean().optional(),
|
|
2710
2710
|
/** When the pin was set. Deliberately WRITE-ONLY today, like the `archivedAt` above it:
|
|
2711
2711
|
* ordering inside `Pinned` uses the ordinary status/recency rules, so nothing reads this
|
|
2712
|
-
* yet. It is here because a field on
|
|
2712
|
+
* yet. It is here because a field on a protected surface is far cheaper to add now than to
|
|
2713
2713
|
* add later — "pinned oldest first" and "unpin what you pinned a month ago" both need it,
|
|
2714
2714
|
* and neither can be reconstructed after the fact. */
|
|
2715
2715
|
pinnedAt: z20.string().optional(),
|
|
@@ -3662,9 +3662,6 @@ var fsBrowseResponseSchema = z22.object({
|
|
|
3662
3662
|
* silently short list. */
|
|
3663
3663
|
truncated: z22.boolean()
|
|
3664
3664
|
});
|
|
3665
|
-
var launchKeyResponseSchema = z22.object({
|
|
3666
|
-
key: z22.string()
|
|
3667
|
-
});
|
|
3668
3665
|
var checkoutProgressParamsSchema = z22.object({ checkoutId: z22.string().min(1).max(128) });
|
|
3669
3666
|
var checkoutProgressResponseSchema = z22.object({ progress: checkoutProgressEventSchema.nullable() });
|
|
3670
3667
|
var registerProjectInputSchema = z22.object({
|
|
@@ -6230,7 +6227,6 @@ export {
|
|
|
6230
6227
|
isUsageLimitHold,
|
|
6231
6228
|
isValidTimeZone,
|
|
6232
6229
|
isoWeekday,
|
|
6233
|
-
launchKeyResponseSchema,
|
|
6234
6230
|
liveDemandSchema,
|
|
6235
6231
|
liveEntrySchema,
|
|
6236
6232
|
liveRunBatchResponseSchema,
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
2
|
/**
|
|
3
3
|
* The project-registry family: `GET/POST/PATCH/DELETE /api/v1/projects`, the folder picker
|
|
4
|
-
* (`GET /api/v1/fs/browse`) that feeds it
|
|
4
|
+
* (`GET /api/v1/fs/browse`) that feeds it.
|
|
5
5
|
*
|
|
6
6
|
* Node-free by construction (see README rule 1) — `zod` and nothing else.
|
|
7
7
|
*/
|
|
@@ -684,14 +684,6 @@ export declare const fsBrowseResponseSchema: z.ZodObject<{
|
|
|
684
684
|
truncated: z.ZodBoolean;
|
|
685
685
|
}, z.core.$strip>;
|
|
686
686
|
export type FsBrowseResponse = z.infer<typeof fsBrowseResponseSchema>;
|
|
687
|
-
/** `GET /api/v1/launch-key` — the bookmarklet auto-start secret (spec 011). Fetched to COMPARE
|
|
688
|
-
* against the `?key=` query param and to bake into the `javascript:` links the Settings → Skills
|
|
689
|
-
* bookmarklet panel generates. The value never renders as text, never logs, and never goes back
|
|
690
|
-
* into the address bar. */
|
|
691
|
-
export declare const launchKeyResponseSchema: z.ZodObject<{
|
|
692
|
-
key: z.ZodString;
|
|
693
|
-
}, z.core.$strip>;
|
|
694
|
-
export type LaunchKeyResponse = z.infer<typeof launchKeyResponseSchema>;
|
|
695
687
|
export declare const checkoutProgressParamsSchema: z.ZodObject<{
|
|
696
688
|
checkoutId: z.ZodString;
|
|
697
689
|
}, z.core.$strip>;
|
|
@@ -123,7 +123,7 @@ export declare function normalizeSidebarLimits(value: unknown): Required<Sidebar
|
|
|
123
123
|
/**
|
|
124
124
|
* `GET/PUT /api/v1/ui-state` — the per-repo GUI prefs in `.ai/cezar/ui-state.json`.
|
|
125
125
|
*
|
|
126
|
-
* An OPEN bag on purpose (
|
|
126
|
+
* An OPEN bag on purpose (BACKWARD_COMPATIBILITY.md): unknown keys round-trip untouched, so a
|
|
127
127
|
* newer cockpit's prefs survive an older server and a future pref needs no server change. Hence
|
|
128
128
|
* `z.looseObject`, not a closed object — the keys below are the ones the server's schema *names*,
|
|
129
129
|
* never the ones it *permits*. The write side caps the TOP-LEVEL key count at 200 (#429); that cap
|
package/dist/data-gitignore.js
CHANGED
|
@@ -28,7 +28,6 @@ export function ensureDataGitignore(repoRoot) {
|
|
|
28
28
|
't/', // per-run agent TMPDIRs, short enough for Chromium's socket (hearsay-tools/cezarion#1022)
|
|
29
29
|
'todos.json',
|
|
30
30
|
'todos.json.tmp',
|
|
31
|
-
'launch-key',
|
|
32
31
|
'cockpit.lock*',
|
|
33
32
|
'automations.json',
|
|
34
33
|
'automations.json.tmp',
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"data-gitignore.js","sourceRoot":"","sources":["../src/data-gitignore.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,oBAAoB,CAAC;AAClD,OAAO,EAAE,UAAU,EAAE,SAAS,EAAE,YAAY,EAAE,aAAa,EAAE,MAAM,SAAS,CAAC;AAC7E,OAAO,EAAE,IAAI,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AAC1C,OAAO,EAAE,YAAY,EAAE,MAAM,oBAAoB,CAAC;AAClD,OAAO,EAAE,mBAAmB,EAAE,MAAM,+BAA+B,CAAC;AAEpE;;;;GAIG;AACH,MAAM,UAAU,mBAAmB,CAAC,QAAgB;IAClD,MAAM,EAAE,KAAK,EAAE,KAAK,EAAE,GAAG,YAAY,CAAC,QAAQ,CAAC,CAAC;IAChD,MAAM,QAAQ,GAAG,KAAK,CAAC,CAAC,CAAE,CAAC;IAC3B,IAAI,mBAAmB,CAAC,KAAK,CAAC;QAAE,OAAO;IACvC,MAAM,IAAI,GAAG,IAAI,CAAC,KAAK,EAAE,YAAY,CAAC,CAAC;IACvC,MAAM,MAAM,GAAG;QACb,WAAW;QACX,eAAe;QACf,0BAA0B,EAAE,gEAAgE;QAC5F,wBAAwB,EAAE,gEAAgE;QAC1F,SAAS;QACT,aAAa;Q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AC;IAAC,MAAM,CAAC;QACP,YAAY;IACd,CAAC;AACH,CAAC"}
|
|
@@ -59,6 +59,29 @@ export declare function ciProgressPlugs(demand: ActivityDemand): {
|
|
|
59
59
|
export declare function createActivityRoutes(routeDeps: ActivityRouteDeps): import("hono/hono-base").HonoBase<import("hono/types").BlankEnv, {
|
|
60
60
|
"/workspace/activity": {
|
|
61
61
|
$get: {
|
|
62
|
+
output: {
|
|
63
|
+
error: string;
|
|
64
|
+
code?: "invalid_input" | undefined;
|
|
65
|
+
};
|
|
66
|
+
outputFormat: "json";
|
|
67
|
+
status: 400;
|
|
68
|
+
input: {
|
|
69
|
+
query: {
|
|
70
|
+
project?: string | undefined;
|
|
71
|
+
};
|
|
72
|
+
};
|
|
73
|
+
} | {
|
|
74
|
+
output: {
|
|
75
|
+
error: string;
|
|
76
|
+
};
|
|
77
|
+
outputFormat: "json";
|
|
78
|
+
status: 404 | 409 | 503;
|
|
79
|
+
input: {
|
|
80
|
+
query: {
|
|
81
|
+
project?: string | undefined;
|
|
82
|
+
};
|
|
83
|
+
};
|
|
84
|
+
} | {
|
|
62
85
|
output: {
|
|
63
86
|
generatedAt: string;
|
|
64
87
|
projects: {
|
|
@@ -289,29 +312,6 @@ export declare function createActivityRoutes(routeDeps: ActivityRouteDeps): impo
|
|
|
289
312
|
project?: string | undefined;
|
|
290
313
|
};
|
|
291
314
|
};
|
|
292
|
-
} | {
|
|
293
|
-
output: {
|
|
294
|
-
error: string;
|
|
295
|
-
code?: "invalid_input" | undefined;
|
|
296
|
-
};
|
|
297
|
-
outputFormat: "json";
|
|
298
|
-
status: 400;
|
|
299
|
-
input: {
|
|
300
|
-
query: {
|
|
301
|
-
project?: string | undefined;
|
|
302
|
-
};
|
|
303
|
-
};
|
|
304
|
-
} | {
|
|
305
|
-
output: {
|
|
306
|
-
error: string;
|
|
307
|
-
};
|
|
308
|
-
outputFormat: "json";
|
|
309
|
-
status: 404 | 409 | 503;
|
|
310
|
-
input: {
|
|
311
|
-
query: {
|
|
312
|
-
project?: string | undefined;
|
|
313
|
-
};
|
|
314
|
-
};
|
|
315
315
|
};
|
|
316
316
|
};
|
|
317
317
|
}, "/", "/workspace/activity">;
|
|
@@ -12,7 +12,8 @@ import type { ForgeAvailability, ForgeComment, ForgeCommentsData, ForgeDriver, F
|
|
|
12
12
|
* The GitHub forge driver — all `gh`-CLI logic in one place, moved here from
|
|
13
13
|
* `src/server/github.ts` (tab listing) and `src/server/pr.ts` (draft PRs)
|
|
14
14
|
* behind the `ForgeDriver` seam. Those modules remain as thin delegates.
|
|
15
|
-
* `/api/github`'s response shape is this driver's serialization
|
|
15
|
+
* `/api/github`'s response shape is this driver's serialization and is
|
|
16
|
+
* protected by BACKWARD_COMPATIBILITY.md — additive changes only.
|
|
16
17
|
*/
|
|
17
18
|
export declare const GH_PR_DIFF_FILE_CAP = 300;
|
|
18
19
|
export declare const GH_PR_PATCH_CAP: number;
|
|
@@ -363,8 +364,7 @@ export declare function fetchGithubComments(repoRoot: string, kind: 'issue' | 'p
|
|
|
363
364
|
* Non-blocking availability for `GET /api/health` (#major-health-latency): serves the last-known
|
|
364
365
|
* probe immediately (stale-while-revalidate) and only returns `null` on a cold start, before the
|
|
365
366
|
* first probe has ever warmed the cache. It NEVER shells out to `gh` on the request that reads it,
|
|
366
|
-
* so health stays
|
|
367
|
-
* ~500–650 ms on its own). `null` is contract-safe — the whole `forge` field is additive, so
|
|
367
|
+
* so health stays fast (a `gh repo view` round-trip is ~500–650 ms on its own). `null` is contract-safe — the whole `forge` field is additive, so
|
|
368
368
|
* "unknown until warm" is a valid answer.
|
|
369
369
|
*
|
|
370
370
|
* Serving the stale value while revalidating is what keeps the GitHub nav item from flickering:
|
|
@@ -23,7 +23,8 @@ import { refNumberFromUrl } from '../../contract/index.js';
|
|
|
23
23
|
* The GitHub forge driver — all `gh`-CLI logic in one place, moved here from
|
|
24
24
|
* `src/server/github.ts` (tab listing) and `src/server/pr.ts` (draft PRs)
|
|
25
25
|
* behind the `ForgeDriver` seam. Those modules remain as thin delegates.
|
|
26
|
-
* `/api/github`'s response shape is this driver's serialization
|
|
26
|
+
* `/api/github`'s response shape is this driver's serialization and is
|
|
27
|
+
* protected by BACKWARD_COMPATIBILITY.md — additive changes only.
|
|
27
28
|
*/
|
|
28
29
|
export const GH_PR_DIFF_FILE_CAP = 300;
|
|
29
30
|
export const GH_PR_PATCH_CAP = 512 * 1024;
|
|
@@ -1951,8 +1952,8 @@ function mockGithubRefStatus(prs, issues) {
|
|
|
1951
1952
|
*
|
|
1952
1953
|
* Since #525 the thread is sourced from `/issues/{n}/timeline`, which returns comments AND events
|
|
1953
1954
|
* in one stream: `commented` rows go through the unchanged `normalizeComments`, the rest through
|
|
1954
|
-
* `normalizeEvents`. `comments[]` therefore keeps its exact pre-#525 shape, contents and cap
|
|
1955
|
-
* see the top-up below for the one case that needed defending.
|
|
1955
|
+
* `normalizeEvents`. `comments[]` therefore keeps its exact pre-#525 shape, contents and cap
|
|
1956
|
+
* (BACKWARD_COMPATIBILITY.md) — see the top-up below for the one case that needed defending.
|
|
1956
1957
|
*/
|
|
1957
1958
|
function commentsCacheKey(repoRoot, kind, number) {
|
|
1958
1959
|
// NUL separator: cannot appear in a filesystem path, so roots can never alias.
|
|
@@ -2295,8 +2296,7 @@ async function detectGithub(repoRoot) {
|
|
|
2295
2296
|
* Non-blocking availability for `GET /api/health` (#major-health-latency): serves the last-known
|
|
2296
2297
|
* probe immediately (stale-while-revalidate) and only returns `null` on a cold start, before the
|
|
2297
2298
|
* first probe has ever warmed the cache. It NEVER shells out to `gh` on the request that reads it,
|
|
2298
|
-
* so health stays
|
|
2299
|
-
* ~500–650 ms on its own). `null` is contract-safe — the whole `forge` field is additive, so
|
|
2299
|
+
* so health stays fast (a `gh repo view` round-trip is ~500–650 ms on its own). `null` is contract-safe — the whole `forge` field is additive, so
|
|
2300
2300
|
* "unknown until warm" is a valid answer.
|
|
2301
2301
|
*
|
|
2302
2302
|
* Serving the stale value while revalidating is what keeps the GitHub nav item from flickering:
|