@hearsay-tools/squawk 0.18.0-pr3586.6464.2 → 0.18.0-pr3586.6470

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.
@@ -309,7 +309,7 @@ function negotiate(accept, offers) {
309
309
  return best?.offer ?? null;
310
310
  }
311
311
  /** What `GET /repo/commit/:sha` offers, DEFAULT FIRST: the legacy `text/plain` blob is what a
312
- * request with no opinion has always received (§2), so it also wins an Accept tie. */
312
+ * request with no opinion has always received, so it also wins an Accept tie. */
313
313
  const COMMIT_FORMATS = ['text/plain', 'application/json'];
314
314
  /** What `GET /runs/:id/files` offers, DEFAULT FIRST. `image/*` rather than a concrete type: which
315
315
  * image type the bytes are is only known once the path resolves, and the raw branch refuses
@@ -697,8 +697,7 @@ export function createApp(deps) {
697
697
  healthConfig(bootRoot, deps.home),
698
698
  workspaceSummary(),
699
699
  ]);
700
- // Additive fields only below — the pre-forge shape is the most
701
- // externally-depended-on JSON in the app (BACKWARD_COMPATIBILITY.md).
700
+ // Callers outside the cockpit read this JSON.
702
701
  const forge = resolveProjectForge(repo);
703
702
  const caps = capabilities();
704
703
  return {
@@ -750,7 +749,7 @@ export function createApp(deps) {
750
749
  // the same number — but the normal state of a background `hsq serve` is NO
751
750
  // subscriber, and then nothing refreshes the cache at all: the next `GET
752
751
  // /api/health`, an hour later, would answer with the boot pre-warm's payload
753
- // and only the request AFTER it would see the truth. `repo.branch` going stale is
752
+ // and only the request AFTER it would see the truth. `repo.branch` going stale there is
754
753
  // literally #369, so past this age correctness beats the latency win and the
755
754
  // read waits for the compute. `refreshHealth` dedupes, so waiting costs one.
756
755
  const HEALTH_MAX_STALE_MS = 60_000;
@@ -2295,7 +2294,7 @@ export function createApp(deps) {
2295
2294
  .use('/ui-state', bodyLimit({ maxSize: UI_STATE_BODY_LIMIT }))
2296
2295
  .put('/ui-state', jsonZodValidator(uiStateBody), async (c) => {
2297
2296
  const { root: repoRoot, dataDir } = c.get('project');
2298
- // `.passthrough()` keeps unknown prefs (BACKWARD_COMPATIBILITY.md), but a
2297
+ // `.passthrough()` keeps unknown prefs, but a
2299
2298
  // single request may not stuff an unbounded key set (#429) — the shared
2300
2299
  // schema+cap half of both ui-state routes lives in `uiStateBody`.
2301
2300
  const parsed = { data: c.req.valid('json') };
@@ -3373,8 +3372,8 @@ export function createApp(deps) {
3373
3372
  if (wantsRaw) {
3374
3373
  const mime = imageMimeType(result.path);
3375
3374
  if (mime === null || result.tooLarge) {
3376
- // `?raw=1` ASKED for bytes, so it hears why it cannot have them — that 409 and its
3377
- // wording are the protected surface (§2). An `Accept` is only a preference, so a
3375
+ // `?raw=1` ASKED for bytes, so it hears why it cannot have them (a 409 with the
3376
+ // reason). An `Accept` is only a preference, so a
3378
3377
  // resource with no image representation falls THROUGH to the JSON answer below rather
3379
3378
  // than turning a browser's navigation to a text file into an error.
3380
3379
  if (query.raw !== undefined) {
@@ -4001,8 +4000,8 @@ export function createApp(deps) {
4001
4000
  // One commit's message + stat + patch — the Repo view expands it inline.
4002
4001
  // `?structured=1` is the ADDITIVE sibling (R5 Step 1.7): the new repo view's commit-diff
4003
4002
  // shape `{sha, subject, author, when, files, stat}` with 409 + reason on failure. The
4004
- // legacy text answer below is a protected surface (BACKWARD_COMPATIBILITY.md) — its
4005
- // shape, including the in-band failure sentences, stays exactly as it was.
4003
+ // legacy text answer below is what the route returns without the flag, in-band failure
4004
+ // sentences included.
4006
4005
  //
4007
4006
  // `Accept: application/json` reaches the same structured answer without the flag, and
4008
4007
  // `Accept: text/plain` asks for the blob; the flag still wins whenever it is present, and a
@@ -4200,7 +4199,7 @@ export function createApp(deps) {
4200
4199
  // ---- assemble the chained families --------------------------------------
4201
4200
  // Every chained family is registered ONCE and mounted into the versioned table. There is no
4202
4201
  // second, unversioned spelling: `/api/*` was removed once the whole API was reachable under
4203
- // `/api/v1` (BACKWARD_COMPATIBILITY.md). One surface means one thing to keep working, and
4202
+ // `/api/v1`. One surface means one thing to keep working, and
4204
4203
  // it is the one the typed client describes.
4205
4204
  //
4206
4205
  // ---- chained family: voice mode (project-scoped, gated on CEZ_VOICE) ----