@hearsay-tools/squawk 0.18.0-dev.8215 → 0.18.0-dev.8218

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 (53) hide show
  1. package/dist/ci-wait/controller.d.ts +7 -7
  2. package/dist/contract/index.js +2 -0
  3. package/dist/delegation/routes.d.ts +65 -65
  4. package/dist/server/activity-routes.d.ts +23 -23
  5. package/dist/server/models-routes.d.ts +13 -13
  6. package/dist/server/runners-routes.d.ts +10 -10
  7. package/dist/server/server.d.ts +1520 -1520
  8. package/dist/server/server.js +8 -9
  9. package/dist/server/server.js.map +1 -1
  10. package/package.json +4 -4
  11. package/scripts/profile-lint-compare.ts +101 -0
  12. package/scripts/profile-lint.ts +116 -14
  13. package/web/dist/assets/{accounts-section-3TFV3bKA.js → accounts-section-DpX5vTr7.js} +1 -1
  14. package/web/dist/assets/{activity-motion-DIEqBTn_.js → activity-motion-B7vHpK-u.js} +1 -1
  15. package/web/dist/assets/{activity-route-1e-zJAwF.js → activity-route-D84XrmQO.js} +1 -1
  16. package/web/dist/assets/{agent-config-section-BEhRUFXI.js → agent-config-section-Btyd_I6J.js} +1 -1
  17. package/web/dist/assets/{agent-defaults-section-CPFpExY0.js → agent-defaults-section-D42khLKT.js} +1 -1
  18. package/web/dist/assets/{appearance-DmZqmV_h.js → appearance-BdWvRErI.js} +1 -1
  19. package/web/dist/assets/{automations-route-BQTvY9OZ.js → automations-route-CVK-f13I.js} +1 -1
  20. package/web/dist/assets/{commit-diff-panel-CrCQrLkj.js → commit-diff-panel-DEgRHEFl.js} +1 -1
  21. package/web/dist/assets/{diff-CSURjwWN.js → diff-K_Xswloe.js} +2 -2
  22. package/web/dist/assets/{diff-view-C0EkYWIb.js → diff-view-DQOZSURG.js} +1 -1
  23. package/web/dist/assets/{file-preview-Dwpny4J1.js → file-preview-PwiOYFhV.js} +1 -1
  24. package/web/dist/assets/{git-toolbar-Cxylz9oM.js → git-toolbar-DfFwDI49.js} +1 -1
  25. package/web/dist/assets/{github-QMdDPo6m.js → github-DHOg6-co.js} +1 -1
  26. package/web/dist/assets/{global-activity-route-CbOpfU7Q.js → global-activity-route-Bx6y-b0h.js} +1 -1
  27. package/web/dist/assets/{index-Bra3Zx6_.js → index-Br3WCnOm.js} +6 -6
  28. package/web/dist/assets/{markdown-CVLWRUFa.js → markdown-POxkTBG0.js} +1 -1
  29. package/web/dist/assets/{notifications-section-y0N1nPKx.js → notifications-section-B-lcEfAs.js} +1 -1
  30. package/web/dist/assets/preview-pane-connected-DeAYL6ND.js +3 -0
  31. package/web/dist/assets/{projects-section-DwrBHp8U.js → projects-section-B1MB9FoT.js} +1 -1
  32. package/web/dist/assets/{prompt-templates-section-B63ytixw.js → prompt-templates-section-C6NTpSpA.js} +1 -1
  33. package/web/dist/assets/{remote-settings-notice-BaEqkFLb.js → remote-settings-notice-CrHduqnC.js} +1 -1
  34. package/web/dist/assets/repo-git-KGxu_ZKb.js +1 -0
  35. package/web/dist/assets/{report-reader-4K1U0nwt.js → report-reader-CnXmsiMI.js} +1 -1
  36. package/web/dist/assets/{reports-DzfdonA_.js → reports-CzsCz6ZC.js} +1 -1
  37. package/web/dist/assets/{run-header-BwxE9ges.js → run-header-BcuJbBox.js} +2 -2
  38. package/web/dist/assets/{settings-agent-picker-BsfSkgY9.js → settings-agent-picker-D9OiVDV3.js} +1 -1
  39. package/web/dist/assets/{settings-shell-DDTVjo7C.js → settings-shell-D9LDT4iY.js} +1 -1
  40. package/web/dist/assets/{skills-Cw_PL5-A.js → skills-Df3f4tt8.js} +1 -1
  41. package/web/dist/assets/{task-changes-DLzIXSTR.js → task-changes-B45GjG50.js} +1 -1
  42. package/web/dist/assets/{task-commits-amn0LePZ.js → task-commits-C6_f5ewJ.js} +1 -1
  43. package/web/dist/assets/{task-files-9b6zqJWa.js → task-files-YaD4DU-8.js} +1 -1
  44. package/web/dist/assets/{task-github-item-DJvWvk2q.js → task-github-item-D1QAOVjQ.js} +1 -1
  45. package/web/dist/assets/{task-thread-DA-IdbEA.js → task-thread-BoOE1dvx.js} +6 -6
  46. package/web/dist/assets/{thread-state-PGrlMiQA.js → thread-state-C3QKqNMn.js} +1 -1
  47. package/web/dist/assets/{use-hand-to-agent-state-CMiYRssU.js → use-hand-to-agent-state-DGAvwfdj.js} +1 -1
  48. package/web/dist/assets/{workflows-DowJdAnR.js → workflows-B2pwgXHF.js} +3 -3
  49. package/web/dist/assets/{workspace-tools-BPmJcyzi.js → workspace-tools-DfCerd4L.js} +1 -1
  50. package/web/dist/assets/{worktrees-section-Bn-NIqrK.js → worktrees-section-Dhlt22RI.js} +1 -1
  51. package/web/dist/index.html +1 -1
  52. package/web/dist/assets/preview-pane-connected-DzLCKXRK.js +0 -3
  53. package/web/dist/assets/repo-git-CY6YcBMo.js +0 -1
@@ -598,6 +598,8 @@ export function createApp(deps) {
598
598
  stamp: environmentStamp,
599
599
  onChange: (checks) => { void healthCache.patch((payload) => ({ ...payload, checks })).catch(() => { }); },
600
600
  });
601
+ let bootRepoRoot;
602
+ const trimHealthRepo = (repo, localHandoff, fullRoot) => repo ? { ...repo, root: localHandoff ? (fullRoot ?? repo.root) : basename(repo.root) } : null;
601
603
  const healthSnapshot = async () => {
602
604
  const [checks, repo, config, workspace] = await Promise.all([
603
605
  backendChecks.read(),
@@ -605,6 +607,7 @@ export function createApp(deps) {
605
607
  healthConfig(bootRoot, deps.home),
606
608
  workspaceSummary(),
607
609
  ]);
610
+ bootRepoRoot = repo?.root;
608
611
  // Callers outside the cockpit read this JSON.
609
612
  const forge = resolveProjectForge(repo);
610
613
  const caps = capabilities();
@@ -615,15 +618,11 @@ export function createApp(deps) {
615
618
  // the key as always-present, which is a shape no client ever receives. The contract schema
616
619
  // says `.optional()`, and contract-parity.test.ts holds the two together.
617
620
  ...(update?.latest !== undefined ? { latestVersion: update.latest } : {}),
618
- // Health is CORS-open and, in hosted mode, reachable off the loopback —
619
- // so any site/host that reads it would learn the developer's absolute
620
- // checkout path and username (#431). Local mode keeps the full path;
621
- // hosted/remote mode trims it to a basename.
622
- // The field is always present and a string, but under CEZ_REMOTE it is
623
- // no longer an absolute path. A hosted cockpit's paths are on a machine
624
- // the reader does not have anyway.
621
+ // Health is CORS-open and, in hosted mode, reachable off the loopback (#431). Local mode
622
+ // keeps full paths; hosted/remote mode trims repoRoot and repo.root to basenames so host
623
+ // checkout paths and usernames are never exposed.
625
624
  repoRoot: caps.localHandoff ? bootRoot : basename(bootRoot),
626
- repo,
625
+ repo: trimHealthRepo(repo, caps.localHandoff),
627
626
  checks,
628
627
  defaultRunner: config.defaultRunner,
629
628
  // Non-blocking: cached availability or null-until-warm — health must never pay a `gh`
@@ -651,7 +650,7 @@ export function createApp(deps) {
651
650
  const inCurrentMode = (payload) => {
652
651
  const caps = capabilities();
653
652
  const repoRoot = caps.localHandoff ? bootRoot : basename(bootRoot);
654
- return { ...payload, capabilities: caps, repoRoot, plugins: pluginHealth(pluginLoadReport(), { hostPaths: caps.localHandoff }) };
653
+ return { ...payload, capabilities: caps, repoRoot, repo: trimHealthRepo(payload.repo, caps.localHandoff, bootRepoRoot), plugins: pluginHealth(pluginLoadReport(), { hostPaths: caps.localHandoff }) };
655
654
  };
656
655
  const healthCache = createHealthCache({
657
656
  snapshot: healthSnapshot,