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

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.
Files changed (122) hide show
  1. package/README.md +3 -4
  2. package/dist/contract/events.d.ts +4 -4
  3. package/dist/contract/health.d.ts +2 -5
  4. package/dist/contract/index.d.ts +0 -1
  5. package/dist/contract/index.js +458 -592
  6. package/dist/contract/workspace.d.ts +1 -1
  7. package/dist/data-gitignore.js +0 -1
  8. package/dist/data-gitignore.js.map +1 -1
  9. package/dist/delegation/routes.d.ts +11 -11
  10. package/dist/delegation/transport.d.ts +66 -66
  11. package/dist/home/identity.d.ts +0 -2
  12. package/dist/home/identity.js +2 -2
  13. package/dist/home/identity.js.map +1 -1
  14. package/dist/server/capabilities.d.ts +0 -1
  15. package/dist/server/capabilities.js +0 -3
  16. package/dist/server/capabilities.js.map +1 -1
  17. package/dist/server/forge/github.d.ts +1 -2
  18. package/dist/server/forge/github.js +3 -4
  19. package/dist/server/forge/github.js.map +1 -1
  20. package/dist/server/forge/types.d.ts +2 -2
  21. package/dist/server/git-changes.d.ts +1 -1
  22. package/dist/server/run-checkout.js +2 -2
  23. package/dist/server/run-checkout.js.map +1 -1
  24. package/dist/server/server.d.ts +1580 -1775
  25. package/dist/server/server.js +10 -21
  26. package/dist/server/server.js.map +1 -1
  27. package/dist/server/validators.js +1 -1
  28. package/dist/server-install/types.d.ts +3 -3
  29. package/dist/server-install/types.js +3 -3
  30. package/dist/ui-state.d.ts +3 -3
  31. package/dist/ui-state.js +3 -3
  32. package/dist/workflows/continuation-admission.d.ts +72 -72
  33. package/dist/workflows/run/wait-engine.d.ts +72 -72
  34. package/dist/workspace/ui-state.js +1 -1
  35. package/dist/workspace/ui-state.js.map +1 -1
  36. package/package.json +4 -4
  37. package/web/dist/assets/activity-motion-Cd6HKRn5.js +2 -0
  38. package/web/dist/assets/{activity-route-Cq5GO6rp.js → activity-route-Dgjznc_j.js} +1 -1
  39. package/web/dist/assets/agent-accounts-WZgtbThS.js +18 -0
  40. package/web/dist/assets/attention-C_kiJ1bk.js +1 -0
  41. package/web/dist/assets/{cez-idle-xv7f96fc.js → cez-idle-TVRD1sce.js} +1 -1
  42. package/web/dist/assets/{commit-diff-panel-BInf9r-P.js → commit-diff-panel-Bsf9f2Cd.js} +1 -1
  43. package/web/dist/assets/{diff-BvCB85J2.js → diff-BB8od2CB.js} +2 -2
  44. package/web/dist/assets/{diff-view-Cnlbd7ej.js → diff-view-Bbf1guXZ.js} +4 -4
  45. package/web/dist/assets/{file-preview-EiGdhbDV.js → file-preview-DYaWK5Hi.js} +1 -1
  46. package/web/dist/assets/git-toolbar-CPxEOnk6.js +1 -0
  47. package/web/dist/assets/{github-DQe-Ussy.js → github-4ILuqTHS.js} +1 -1
  48. package/web/dist/assets/{global-activity-route-_1mbn6gk.js → global-activity-route-BaL40ikO.js} +1 -1
  49. package/web/dist/assets/index-BXr2mRSZ.js +17 -0
  50. package/web/dist/assets/index-Bv_JpzCB.css +1 -0
  51. package/web/dist/assets/{live-protocol-DjH6ZQwI.js → live-protocol-aMLJJ0MQ.js} +1 -1
  52. package/web/dist/assets/preview-pane-connected-CVIYmAKK.js +3 -0
  53. package/web/dist/assets/{project-router-iGGf0Wcy.js → project-router-_4jaKCY-.js} +1 -1
  54. package/web/dist/assets/project-scope-context-BwaC58sQ.js +4 -0
  55. package/web/dist/assets/{prompt-template-menu-D1AqFsnv.js → prompt-template-menu-Q6yvBBX2.js} +1 -1
  56. package/web/dist/assets/queries-jqgF_s0L.js +1 -0
  57. package/web/dist/assets/{reference-chip-uYFiC2FE.js → reference-chip-BFXq2y0V.js} +1 -1
  58. package/web/dist/assets/{repo-git-B_xucWJR.js → repo-git-BXcJkKGQ.js} +1 -1
  59. package/web/dist/assets/{report-reader-Csv7xOrn.js → report-reader-B2xFHTUH.js} +1 -1
  60. package/web/dist/assets/reports-JoaY6sCT.js +1 -0
  61. package/web/dist/assets/{run-header-C941_3eU.js → run-header-4CYT6aL6.js} +2 -2
  62. package/web/dist/assets/skills-C1zxbSly.js +1 -0
  63. package/web/dist/assets/{tab-link-dVF0beIK.js → tab-link-BmBr8sDS.js} +1 -1
  64. package/web/dist/assets/{task-changes-BaCA5Izd.js → task-changes-DDHU2MYs.js} +1 -1
  65. package/web/dist/assets/{task-commits-B4oZHsub.js → task-commits-ntmx-1wH.js} +1 -1
  66. package/web/dist/assets/{task-files-Bg_J255X.js → task-files-DlUIW3P5.js} +1 -1
  67. package/web/dist/assets/task-github-item-Qg7SGfny.js +1 -0
  68. package/web/dist/assets/task-thread-BKdI_JXT.js +9 -0
  69. package/web/dist/assets/{thread-state-DA5kehiy.js → thread-state-D8yAejJN.js} +1 -1
  70. package/web/dist/assets/use-desktop-DpH_9i2n.js +1 -0
  71. package/web/dist/assets/use-hand-to-agent-state-DSRe0E7u.js +1 -0
  72. package/web/dist/assets/{useInfiniteQuery-CYsKbsRE.js → useInfiniteQuery-BK0ElV__.js} +1 -1
  73. package/web/dist/assets/useQuery-Qq5WoH8B.js +1 -0
  74. package/web/dist/assets/{workflows-CsCKM6GN.js → workflows-CK12d25D.js} +2 -2
  75. package/web/dist/assets/{ws-DdguL17F.js → ws-CayNmoGi.js} +1 -1
  76. package/web/dist/index.html +15 -15
  77. package/web/dist/live-worker.js +1 -1
  78. package/dist/contract/voice.d.ts +0 -213
  79. package/dist/voice/decide.d.ts +0 -35
  80. package/dist/voice/decide.js +0 -329
  81. package/dist/voice/decide.js.map +0 -1
  82. package/dist/voice/decision-log.d.ts +0 -48
  83. package/dist/voice/decision-log.js +0 -117
  84. package/dist/voice/decision-log.js.map +0 -1
  85. package/dist/voice/engine.d.ts +0 -119
  86. package/dist/voice/engine.js +0 -61
  87. package/dist/voice/engine.js.map +0 -1
  88. package/dist/voice/fake-engine.d.ts +0 -10
  89. package/dist/voice/fake-engine.js +0 -192
  90. package/dist/voice/fake-engine.js.map +0 -1
  91. package/dist/voice/jev-engine.d.ts +0 -17
  92. package/dist/voice/jev-engine.js +0 -110
  93. package/dist/voice/jev-engine.js.map +0 -1
  94. package/dist/voice/pending-ask.d.ts +0 -17
  95. package/dist/voice/pending-ask.js +0 -51
  96. package/dist/voice/pending-ask.js.map +0 -1
  97. package/dist/voice/routes.d.ts +0 -115
  98. package/dist/voice/routes.js +0 -92
  99. package/dist/voice/routes.js.map +0 -1
  100. package/dist/voice/sentence.d.ts +0 -21
  101. package/dist/voice/sentence.js +0 -61
  102. package/dist/voice/sentence.js.map +0 -1
  103. package/dist/voice/thresholds.d.ts +0 -28
  104. package/dist/voice/thresholds.js +0 -29
  105. package/dist/voice/thresholds.js.map +0 -1
  106. package/scripts/voice-replay.ts +0 -50
  107. package/web/dist/assets/activity-motion-CbA_TAx4.js +0 -2
  108. package/web/dist/assets/agent-accounts-Cof8AiVl.js +0 -18
  109. package/web/dist/assets/attention-BjWQsJVw.js +0 -1
  110. package/web/dist/assets/git-toolbar-D6W3lamH.js +0 -1
  111. package/web/dist/assets/index-Cs-8u_FQ.js +0 -17
  112. package/web/dist/assets/index-WLruDkjz.css +0 -1
  113. package/web/dist/assets/preview-pane-connected-DgZ5q0xy.js +0 -3
  114. package/web/dist/assets/project-scope-context-DK2mtfmt.js +0 -4
  115. package/web/dist/assets/queries-CMLTX79n.js +0 -1
  116. package/web/dist/assets/reports-BVp32fGs.js +0 -1
  117. package/web/dist/assets/skills-PpSAbEYS.js +0 -1
  118. package/web/dist/assets/task-github-item-DyBh5-Q_.js +0 -1
  119. package/web/dist/assets/task-thread-D6wp7G61.js +0 -9
  120. package/web/dist/assets/use-desktop-BL6xT4Rz.js +0 -1
  121. package/web/dist/assets/use-hand-to-agent-state-CPhF3TRe.js +0 -1
  122. package/web/dist/assets/useQuery-DMywwX-_.js +0 -1
@@ -66,9 +66,6 @@ import { bodyLimit } from 'hono/body-limit';
66
66
  import { streamSSE } from 'hono/streaming';
67
67
  import { matchedRoutes } from 'hono/route';
68
68
  import { jsonZodValidator, paramZodValidator, queryZodValidator } from './validators.js';
69
- import { RecentVoiceActions } from '../voice/decision-log.js';
70
- import { selectVoiceEngine } from '../voice/engine.js';
71
- import { createVoiceRoutes } from '../voice/routes.js';
72
69
  import { deliverOnce, registryEntry, sendAgentReport } from '../runs/webhook.js';
73
70
  import { parse as parseYaml, stringify as stringifyYaml } from 'yaml';
74
71
  import { z } from 'zod';
@@ -309,7 +306,7 @@ function negotiate(accept, offers) {
309
306
  return best?.offer ?? null;
310
307
  }
311
308
  /** 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. */
309
+ * request with no opinion has always received, so it also wins an Accept tie. */
313
310
  const COMMIT_FORMATS = ['text/plain', 'application/json'];
314
311
  /** What `GET /runs/:id/files` offers, DEFAULT FIRST. `image/*` rather than a concrete type: which
315
312
  * image type the bytes are is only known once the path resolves, and the raw branch refuses
@@ -697,8 +694,7 @@ export function createApp(deps) {
697
694
  healthConfig(bootRoot, deps.home),
698
695
  workspaceSummary(),
699
696
  ]);
700
- // Additive fields only below — the pre-forge shape is the most
701
- // externally-depended-on JSON in the app (BACKWARD_COMPATIBILITY.md).
697
+ // Callers outside the cockpit read this JSON.
702
698
  const forge = resolveProjectForge(repo);
703
699
  const caps = capabilities();
704
700
  return {
@@ -750,7 +746,7 @@ export function createApp(deps) {
750
746
  // the same number — but the normal state of a background `hsq serve` is NO
751
747
  // subscriber, and then nothing refreshes the cache at all: the next `GET
752
748
  // /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
749
+ // and only the request AFTER it would see the truth. `repo.branch` going stale there is
754
750
  // literally #369, so past this age correctness beats the latency win and the
755
751
  // read waits for the compute. `refreshHealth` dedupes, so waiting costs one.
756
752
  const HEALTH_MAX_STALE_MS = 60_000;
@@ -2295,7 +2291,7 @@ export function createApp(deps) {
2295
2291
  .use('/ui-state', bodyLimit({ maxSize: UI_STATE_BODY_LIMIT }))
2296
2292
  .put('/ui-state', jsonZodValidator(uiStateBody), async (c) => {
2297
2293
  const { root: repoRoot, dataDir } = c.get('project');
2298
- // `.passthrough()` keeps unknown prefs (BACKWARD_COMPATIBILITY.md), but a
2294
+ // `.passthrough()` keeps unknown prefs, but a
2299
2295
  // single request may not stuff an unbounded key set (#429) — the shared
2300
2296
  // schema+cap half of both ui-state routes lives in `uiStateBody`.
2301
2297
  const parsed = { data: c.req.valid('json') };
@@ -3373,8 +3369,8 @@ export function createApp(deps) {
3373
3369
  if (wantsRaw) {
3374
3370
  const mime = imageMimeType(result.path);
3375
3371
  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
3372
+ // `?raw=1` ASKED for bytes, so it hears why it cannot have them (a 409 with the
3373
+ // reason). An `Accept` is only a preference, so a
3378
3374
  // resource with no image representation falls THROUGH to the JSON answer below rather
3379
3375
  // than turning a browser's navigation to a text file into an error.
3380
3376
  if (query.raw !== undefined) {
@@ -4001,8 +3997,8 @@ export function createApp(deps) {
4001
3997
  // One commit's message + stat + patch — the Repo view expands it inline.
4002
3998
  // `?structured=1` is the ADDITIVE sibling (R5 Step 1.7): the new repo view's commit-diff
4003
3999
  // 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.
4000
+ // legacy text answer below is what the route returns without the flag, in-band failure
4001
+ // sentences included.
4006
4002
  //
4007
4003
  // `Accept: application/json` reaches the same structured answer without the flag, and
4008
4004
  // `Accept: text/plain` asks for the blob; the flag still wins whenever it is present, and a
@@ -4200,15 +4196,9 @@ export function createApp(deps) {
4200
4196
  // ---- assemble the chained families --------------------------------------
4201
4197
  // Every chained family is registered ONCE and mounted into the versioned table. There is no
4202
4198
  // 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
4199
+ // `/api/v1`. One surface means one thing to keep working, and
4204
4200
  // it is the one the typed client describes.
4205
4201
  //
4206
- // ---- chained family: voice mode (project-scoped, gated on CEZ_VOICE) ----
4207
- const voiceRoutes = createVoiceRoutes({
4208
- voiceEnabled: () => capabilities().voice,
4209
- engine: () => selectVoiceEngine(process.env),
4210
- recent: new RecentVoiceActions(),
4211
- });
4212
4202
  // MOUNT ORDER IS REGISTRATION ORDER. Hono matches in the order routes were added, so each
4213
4203
  // family keeps its internal order and the families keep theirs relative to each other.
4214
4204
  //
@@ -4260,8 +4250,7 @@ export function createApp(deps) {
4260
4250
  .route('/', githubRoutes)
4261
4251
  .route('/', repoRoutes)
4262
4252
  .route('/', configRoutes)
4263
- .route('/', agentConfigRoutes)
4264
- .route('/', voiceRoutes);
4253
+ .route('/', agentConfigRoutes);
4265
4254
  projectRoutePaths = new Set(v1.routes.filter((route) => route.method !== 'ALL')
4266
4255
  .flatMap((route) => [V1_PREFIX, V1_SCOPED_PREFIX].map((prefix) => `${route.method} ${prefix}${route.path}`)));
4267
4256
  // ---- chained family: the cross-project run index (workspace-level) -------