@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.
- package/README.md +3 -3
- package/dist/ci-wait/controller.d.ts +37 -37
- package/dist/contract/events.d.ts +4 -4
- package/dist/contract/health.d.ts +2 -3
- package/dist/contract/index.js +1 -1
- package/dist/contract/workspace.d.ts +1 -1
- package/dist/delegation/transport.d.ts +62 -62
- package/dist/home/identity.d.ts +0 -2
- package/dist/home/identity.js +2 -2
- package/dist/home/identity.js.map +1 -1
- package/dist/server/forge/github.d.ts +1 -2
- package/dist/server/forge/github.js +3 -4
- package/dist/server/forge/github.js.map +1 -1
- package/dist/server/forge/types.d.ts +2 -2
- package/dist/server/git-changes.d.ts +1 -1
- package/dist/server/reports-api.d.ts +2 -2
- package/dist/server/run-checkout.js +2 -2
- package/dist/server/run-checkout.js.map +1 -1
- package/dist/server/server.js +9 -10
- package/dist/server/server.js.map +1 -1
- package/dist/server/validators.js +1 -1
- 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/voice/routes.d.ts +19 -19
- package/dist/workspace/ui-state.js +1 -1
- package/dist/workspace/ui-state.js.map +1 -1
- package/package.json +4 -4
package/dist/server/server.js
CHANGED
|
@@ -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
|
|
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
|
-
//
|
|
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
|
|
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
|
|
3377
|
-
//
|
|
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
|
|
4005
|
-
//
|
|
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
|
|
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) ----
|