@hearsay-tools/squawk 0.18.0-pr3543.6393 → 0.18.0-pr3545.6411

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 (107) hide show
  1. package/README.md +1 -2
  2. package/dist/autosave-cleanup.d.ts +2 -1
  3. package/dist/autosave-cleanup.js +22 -3
  4. package/dist/autosave-cleanup.js.map +1 -1
  5. package/dist/autosave-commit.d.ts +2 -2
  6. package/dist/autosave-commit.js +4 -4
  7. package/dist/autosave-commit.js.map +1 -1
  8. package/dist/autosave-git.d.ts +15 -8
  9. package/dist/autosave-git.js +141 -45
  10. package/dist/autosave-git.js.map +1 -1
  11. package/dist/autosave-holders.d.ts +2 -0
  12. package/dist/autosave-holders.js +5 -3
  13. package/dist/autosave-holders.js.map +1 -1
  14. package/dist/ci-wait/controller.d.ts +41 -41
  15. package/dist/cli-dispatch.d.ts +0 -3
  16. package/dist/cli-dispatch.js +6 -17
  17. package/dist/cli-dispatch.js.map +1 -1
  18. package/dist/contract/health.d.ts +0 -2
  19. package/dist/contract/index.js +0 -1
  20. package/dist/delegation/routes.d.ts +9 -9
  21. package/dist/delegation/transport.d.ts +15 -15
  22. package/dist/delegation/workspace-removal.js +8 -21
  23. package/dist/delegation/workspace-removal.js.map +1 -1
  24. package/dist/index.js +1 -1
  25. package/dist/index.js.map +1 -1
  26. package/dist/runs/run-exits.d.ts +290 -290
  27. package/dist/runs/run-index.d.ts +0 -10
  28. package/dist/runs/run-index.js +16 -70
  29. package/dist/runs/run-index.js.map +1 -1
  30. package/dist/runs/run-references.d.ts +3 -0
  31. package/dist/runs/run-references.js +8 -1
  32. package/dist/runs/run-references.js.map +1 -1
  33. package/dist/runs/store.d.ts +10 -0
  34. package/dist/runs/store.js +18 -21
  35. package/dist/runs/store.js.map +1 -1
  36. package/dist/server/activity-routes.d.ts +23 -23
  37. package/dist/server/activity-sources.d.ts +2 -2
  38. package/dist/server/activity-sources.js +4 -4
  39. package/dist/server/activity-sources.js.map +1 -1
  40. package/dist/server/capabilities.d.ts +0 -5
  41. package/dist/server/capabilities.js +0 -1
  42. package/dist/server/capabilities.js.map +1 -1
  43. package/dist/server/forge/draft-pr.js +15 -25
  44. package/dist/server/forge/draft-pr.js.map +1 -1
  45. package/dist/server/server.d.ts +1304 -1361
  46. package/dist/server/server.js +8 -37
  47. package/dist/server/server.js.map +1 -1
  48. package/dist/server/start-server.js +7 -10
  49. package/dist/server/start-server.js.map +1 -1
  50. package/dist/server/workspace-live-routes.d.ts +6 -6
  51. package/dist/server/workspace-projects.d.ts +1 -6
  52. package/dist/server/workspace-projects.js +3 -14
  53. package/dist/server/workspace-projects.js.map +1 -1
  54. package/dist/workflows/continuation-admission.d.ts +72 -72
  55. package/dist/workflows/input-acknowledgement.d.ts +24 -24
  56. package/dist/workspace/projects-cli.d.ts +0 -2
  57. package/dist/workspace/projects-cli.js +4 -27
  58. package/dist/workspace/projects-cli.js.map +1 -1
  59. package/dist/workspace/projects.d.ts +1 -5
  60. package/dist/workspace/projects.js +8 -5
  61. package/dist/workspace/projects.js.map +1 -1
  62. package/package.json +4 -4
  63. package/scripts/benchmark-project-probes.mjs +1 -1
  64. package/scripts/benchmark-workspace-events.ts +1 -1
  65. package/web/dist/assets/{activity-motion-DdE0kJi3.js → activity-motion-u7cCOvIh.js} +1 -1
  66. package/web/dist/assets/{activity-route-DLSJeSnu.js → activity-route-BthlzLJS.js} +1 -1
  67. package/web/dist/assets/{agent-accounts-CH91aYcr.js → agent-accounts-CbqP0u9A.js} +1 -1
  68. package/web/dist/assets/attention-CCx8Iagl.js +1 -0
  69. package/web/dist/assets/{commit-diff-panel-1KsqfPQm.js → commit-diff-panel-B1FnfuXx.js} +1 -1
  70. package/web/dist/assets/{diff-BcgZstvZ.js → diff-DwhVa59f.js} +2 -2
  71. package/web/dist/assets/{diff-view-Bf81mon2.js → diff-view-C4JhxweA.js} +1 -1
  72. package/web/dist/assets/{file-preview-CWH2pPkO.js → file-preview-xqxo9aYs.js} +1 -1
  73. package/web/dist/assets/{git-toolbar-BDazbdBO.js → git-toolbar-B5EhJG95.js} +1 -1
  74. package/web/dist/assets/{github-DYA-wBvz.js → github-CGvl-B9Z.js} +1 -1
  75. package/web/dist/assets/{global-activity-route-CalieTgD.js → global-activity-route-n_BdJZWx.js} +1 -1
  76. package/web/dist/assets/index-O1VoICYw.js +17 -0
  77. package/web/dist/assets/{preview-pane-connected-BUPElme2.js → preview-pane-connected-OWg6VXKi.js} +1 -1
  78. package/web/dist/assets/{project-router-DZfQkmEw.js → project-router-Coo_s3l-.js} +1 -1
  79. package/web/dist/assets/{project-scope-context-DHDNqsXD.js → project-scope-context-WiGQMFsB.js} +1 -1
  80. package/web/dist/assets/{prompt-template-menu-Dyu7XblO.js → prompt-template-menu-Ch7UoIKH.js} +1 -1
  81. package/web/dist/assets/{queries-BvZol9tf.js → queries-BLvbAnL8.js} +1 -1
  82. package/web/dist/assets/{reference-chip-BD5-b_CU.js → reference-chip-P6ytqWNt.js} +1 -1
  83. package/web/dist/assets/{repo-git-B-pzLLjM.js → repo-git-ZeZnpwuR.js} +1 -1
  84. package/web/dist/assets/{report-reader-BKo8xIqy.js → report-reader-D_uzPRmR.js} +1 -1
  85. package/web/dist/assets/{reports-CHoco8IF.js → reports-C49_pROg.js} +1 -1
  86. package/web/dist/assets/{run-header-Co7v26sT.js → run-header-BR1PGTJB.js} +1 -1
  87. package/web/dist/assets/{skills-BVSRZ4Fr.js → skills-BHpdpRR-.js} +1 -1
  88. package/web/dist/assets/{tab-link-CXiNVJ5a.js → tab-link-CONf2d_z.js} +1 -1
  89. package/web/dist/assets/{task-changes-CItEr9td.js → task-changes-DqcCJDTC.js} +1 -1
  90. package/web/dist/assets/{task-commits-BYAybF0L.js → task-commits-Jmpz5NtV.js} +1 -1
  91. package/web/dist/assets/{task-files-CW8lh-Jp.js → task-files-BFSteFDh.js} +1 -1
  92. package/web/dist/assets/{task-github-item-FWzM8NKC.js → task-github-item-CIno99eX.js} +1 -1
  93. package/web/dist/assets/{task-thread-CCUIMhcV.js → task-thread-BKkxwKd_.js} +1 -1
  94. package/web/dist/assets/{thread-state-CFLv_VQJ.js → thread-state-Bwt_th_-.js} +1 -1
  95. package/web/dist/assets/{use-desktop-DhAwfRfO.js → use-desktop-CW-Femww.js} +1 -1
  96. package/web/dist/assets/{use-hand-to-agent-state-CqFlsg5z.js → use-hand-to-agent-state-XV1UwyxH.js} +1 -1
  97. package/web/dist/assets/{useInfiniteQuery-BmndP0ve.js → useInfiniteQuery-BgLdxmcZ.js} +1 -1
  98. package/web/dist/assets/useQuery-CY8bJTYi.js +1 -0
  99. package/web/dist/assets/{workflows-DJgvKk6C.js → workflows-DUCROjgb.js} +1 -1
  100. package/web/dist/assets/{ws-DBsqEdPb.js → ws-8bmD25V4.js} +1 -1
  101. package/web/dist/index.html +12 -12
  102. package/dist/task-branch-head.d.ts +0 -7
  103. package/dist/task-branch-head.js +0 -34
  104. package/dist/task-branch-head.js.map +0 -1
  105. package/web/dist/assets/attention-BQflw45i.js +0 -1
  106. package/web/dist/assets/index-B7K7I3e9.js +0 -17
  107. package/web/dist/assets/useQuery-CsEdg2zt.js +0 -1
@@ -355,7 +355,7 @@ export function createApp(deps) {
355
355
  // The host-wide services and the provider closures built on them live in `./server-deps.ts`.
356
356
  const { modelCatalog, providerAuth, workspaceConfig, openTerminal, openFile, openApp, detectEnvironment } = resolveServerDeps(deps, bootRoot);
357
357
  const { providerStatus, providerActionError, invalidateHostModels } = createProviderStatus({ modelCatalog, providerAuth, workspaceConfig });
358
- const workspaceProjects = deps.workspaceProjects ?? createWorkspaceProjects({ bootRoot, bootProjectId, bindHost, home: deps.home });
358
+ const workspaceProjects = deps.workspaceProjects ?? createWorkspaceProjects({ bootRoot, bootProjectId, home: deps.home });
359
359
  const { resolveBootProject } = workspaceProjects;
360
360
  // Health's workspace garnish: id+name ONLY — never `root` (#431, see the
361
361
  // health route). Reads only the registry file; no per-root status probes,
@@ -364,11 +364,10 @@ export function createApp(deps) {
364
364
  try {
365
365
  const registry = (await loadWorkspaceConfig(deps.home.workspaceConfig)).projects;
366
366
  const bootProject = await resolveBootProject(registry);
367
- const visible = await workspaceProjects.visibleProjects(registry, bootProject);
368
367
  return {
369
368
  // Explicit picks, not a spread: the registry schema passes unknown
370
369
  // keys through, and `root` must never ride along onto health.
371
- projects: visible.map((p) => ({
370
+ projects: registry.map((p) => ({
372
371
  id: p.id,
373
372
  name: p.name || basename(p.root),
374
373
  })),
@@ -382,7 +381,6 @@ export function createApp(deps) {
382
381
  // Hosted-mode gate (spec §"Deployment modes") — read per request so
383
382
  // CEZ_REMOTE flips take effect live (and tests can toggle it).
384
383
  const capabilities = () => resolveCapabilities(process.env, bindHost, deps.squawkPort?.(), deps.home);
385
- const singleProjectRefusal = (action) => ({ error: `single-project mode is enabled; ${action} is disabled` });
386
384
  // Inbox live updates (spec 007). Opt-in (#471): no capability, no watcher —
387
385
  // and since step 2.3 the per-dataDir watch is created lazily by the first
388
386
  // SSE subscription (and torn down with the last), nothing to start here.
@@ -397,7 +395,7 @@ export function createApp(deps) {
397
395
  // Non-boot projects build lazily on first scoped request; their managers
398
396
  // count against the same workspace semaphore as the boot manager (step 2.5).
399
397
  const contexts = createWorkspaceProjectContexts(deps, taskWebhooks, {
400
- listProjects: () => workspaceProjects.listVisibleProjects(),
398
+ listProjects: () => workspaceProjects.listProjects(),
401
399
  squawkPort: deps.squawkPort,
402
400
  });
403
401
  // Workspace-level SSE bus (step 2.8) — the registry mutators and the
@@ -444,12 +442,10 @@ export function createApp(deps) {
444
442
  };
445
443
  /**
446
444
  * Read-modify-write one project's webhook list (hearsay-tools/cezarion#1576), with the PATCH
447
- * route's guards: single-project mode refuses, an unknown project 404s without a write, and a
445
+ * route's guards: an unknown project 404s without a write, and a
448
446
  * failed write (a read-only home) answers 500 having persisted nothing.
449
447
  */
450
448
  const editProjectWebhooks = async (raw, edit) => {
451
- if (capabilities().singleProject)
452
- return { ...singleProjectRefusal('editing projects'), status: 409 };
453
449
  const resolved = await workspaceProjects.resolveProjectId(raw);
454
450
  if ('error' in resolved)
455
451
  return { ...resolved, status: 404 };
@@ -1623,7 +1619,7 @@ export function createApp(deps) {
1623
1619
  let projectsDir = defaultWorkspaceConfig().projectsDir;
1624
1620
  try {
1625
1621
  projectsDir = (await loadWorkspaceConfig(deps.home.workspaceConfig)).projectsDir;
1626
- projects = await workspaceProjects.listVisibleProjects();
1622
+ projects = await workspaceProjects.listProjects();
1627
1623
  }
1628
1624
  catch {
1629
1625
  // unreadable workspace — degrade to the empty registry + defaults
@@ -1643,9 +1639,6 @@ export function createApp(deps) {
1643
1639
  return c.json(registered.body, 200);
1644
1640
  })
1645
1641
  .delete('/projects/:projectId', async (c) => {
1646
- if (capabilities().singleProject) {
1647
- return c.json(singleProjectRefusal('removing projects'), 409);
1648
- }
1649
1642
  const raw = c.req.param('projectId');
1650
1643
  // Same gate the scoped-route resolver applies, and the same 404 wording —
1651
1644
  // a malformed id is an unknown project, not a validation essay.
@@ -1718,9 +1711,6 @@ export function createApp(deps) {
1718
1711
  // `~/.cezar/agent-accounts.json` beside the accounts it names, so a Squawk version that has
1719
1712
  // never heard of accounts cannot drop it (see workspace/agent-accounts.ts).
1720
1713
  .patch('/projects/:projectId', jsonZodValidator(updateProjectInputSchema), async (c) => {
1721
- if (capabilities().singleProject) {
1722
- return c.json(singleProjectRefusal('editing projects'), 409);
1723
- }
1724
1714
  const raw = c.req.param('projectId');
1725
1715
  // Same gate + 404 wording as DELETE: a malformed id is an unknown project.
1726
1716
  const resolved = await workspaceProjects.resolveProjectId(raw);
@@ -1799,11 +1789,7 @@ export function createApp(deps) {
1799
1789
  })
1800
1790
  // "Send test" (#589): one `task.test` delivery to the STORED webhook, now, with the timeout
1801
1791
  // the real deliveries use and no retries — the settings page wants the answer, not a queue.
1802
- // Refused in single-project mode like every other registry edit route.
1803
1792
  .post('/projects/:projectId/webhook/test', async (c) => {
1804
- if (capabilities().singleProject) {
1805
- return c.json(singleProjectRefusal('editing projects'), 409);
1806
- }
1807
1793
  const raw = c.req.param('projectId');
1808
1794
  const entry = await workspaceProjects.resolveRegistryEntry(raw);
1809
1795
  if (!entry)
@@ -1817,8 +1803,8 @@ export function createApp(deps) {
1817
1803
  })
1818
1804
  // ---- project webhooks (hearsay-tools/cezarion#1576) ----
1819
1805
  // Several webhooks per project, each with its own task-state selection and an explicit
1820
- // "Expose to agents" switch. Registry edits like the PATCH above: refused in single-project
1821
- // mode, 404 on an unknown project or webhook, and a write that names nothing else leaves the
1806
+ // "Expose to agents" switch. Registry edits like the PATCH above:
1807
+ // 404 on an unknown project or webhook, and a write that names nothing else leaves the
1822
1808
  // rest of the entry alone. The first write stores `webhooks` and drops the old `webhook` key.
1823
1809
  .post('/projects/:projectId/webhooks', jsonZodValidator(createProjectWebhookInputSchema), async (c) => {
1824
1810
  const input = c.req.valid('json');
@@ -1868,9 +1854,6 @@ export function createApp(deps) {
1868
1854
  })
1869
1855
  // "Send test" for one webhook: one `task.test` delivery, now, no retries.
1870
1856
  .post('/projects/:projectId/webhooks/:webhookId/test', paramZodValidator(projectWebhookParamsSchema), async (c) => {
1871
- if (capabilities().singleProject) {
1872
- return c.json(singleProjectRefusal('editing projects'), 409);
1873
- }
1874
1857
  const { projectId, webhookId } = c.req.valid('param');
1875
1858
  const entry = await workspaceProjects.resolveRegistryEntry(projectId);
1876
1859
  if (!entry)
@@ -1883,9 +1866,6 @@ export function createApp(deps) {
1883
1866
  })
1884
1867
  .get('/projects/checkout/:checkoutId/progress', paramZodValidator(checkoutProgressParamsSchema), c => c.json({ progress: checkoutProgress.get(c.req.valid('param').checkoutId) }))
1885
1868
  .post('/projects/checkout', jsonZodValidator(() => checkoutSchema, { message: 'url must be a GitHub repository' }), async (c) => {
1886
- if (capabilities().singleProject) {
1887
- return c.json(singleProjectRefusal('adding projects'), 409);
1888
- }
1889
1869
  const parsed = { data: c.req.valid('json') };
1890
1870
  const { url, name, checkoutId } = parsed.data;
1891
1871
  const result = await checkoutRepo({
@@ -1934,9 +1914,6 @@ export function createApp(deps) {
1934
1914
  return c.json(await listGithubOwners(deps.projectCommandRunner));
1935
1915
  })
1936
1916
  .post('/projects/create', jsonZodValidator(() => createProjectInputSchema, { message: 'project name must be a valid GitHub repository name — letters, digits, ".", "-" and "_" only, no spaces' }), async (c) => {
1937
- if (capabilities().singleProject) {
1938
- return c.json(singleProjectRefusal('adding projects'), 409);
1939
- }
1940
1917
  const { name, github, checkoutId } = c.req.valid('json');
1941
1918
  if (github && !capabilities().localHandoff) {
1942
1919
  return c.json({ error: HOSTED_GITHUB_CREATE_REFUSAL }, 409);
@@ -2011,9 +1988,6 @@ export function createApp(deps) {
2011
1988
  * Returns the status + body for the caller to answer with.
2012
1989
  */
2013
1990
  const registerFolder = async (spelled, source) => {
2014
- if (capabilities().singleProject) {
2015
- return { status: 409, body: singleProjectRefusal('adding projects') };
2016
- }
2017
1991
  // `~` is expanded for the same reason `/api/fs/browse` expands it: the
2018
1992
  // dialog hands back absolute paths, but a hand-written body (curl, a
2019
1993
  // future CLI) spells home the way a shell does.
@@ -2282,9 +2256,6 @@ export function createApp(deps) {
2282
2256
  // ---- chained family: filesystem browse (workspace-level) ----
2283
2257
  const fsBrowseRoutes = new Hono()
2284
2258
  .get('/fs/browse', queryZodValidator(browseQuerySchema), async (c) => {
2285
- if (capabilities().singleProject) {
2286
- return c.json(singleProjectRefusal('folder browsing'), 409);
2287
- }
2288
2259
  const query = c.req.valid('query');
2289
2260
  const root = resolveBrowseRoot(await workspaceBrowseRoot());
2290
2261
  const result = await browseDirectory({
@@ -4357,7 +4328,7 @@ export function createApp(deps) {
4357
4328
  const projectRunSources = async () => {
4358
4329
  let projects = [];
4359
4330
  try {
4360
- projects = await workspaceProjects.listVisibleProjects();
4331
+ projects = await workspaceProjects.listProjects();
4361
4332
  }
4362
4333
  catch {
4363
4334
  // unreadable workspace — no rows, never a 500. The palette degrades to the active