@hearsay-tools/squawk 0.19.0-pr4598.9138 → 0.19.0-pr4599.9140

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 (109) hide show
  1. package/dist/contract/hosts.d.ts +0 -254
  2. package/dist/contract/index.js +0 -35
  3. package/dist/core/http-route-registry.d.ts +4 -7
  4. package/dist/core/http-route-registry.js +0 -6
  5. package/dist/core/http-route-registry.js.map +1 -1
  6. package/dist/delegation/transport.d.ts +78 -78
  7. package/dist/features/automations/automations-routes.d.ts +150 -150
  8. package/dist/features/automations/server-plugin.js.map +1 -1
  9. package/dist/features/hosts/bootstrap.d.ts +0 -1
  10. package/dist/features/hosts/bootstrap.js +6 -9
  11. package/dist/features/hosts/bootstrap.js.map +1 -1
  12. package/dist/features/hosts/index.d.ts +1 -7
  13. package/dist/features/hosts/index.js +16 -23
  14. package/dist/features/hosts/index.js.map +1 -1
  15. package/dist/features/hosts/routes.d.ts +2 -91
  16. package/dist/features/hosts/routes.js +11 -134
  17. package/dist/features/hosts/routes.js.map +1 -1
  18. package/dist/features/hosts/supervisor.d.ts +8 -22
  19. package/dist/features/hosts/supervisor.js +37 -94
  20. package/dist/features/hosts/supervisor.js.map +1 -1
  21. package/dist/features/webhooks/server-plugin.js.map +1 -1
  22. package/dist/plugin/index.d.ts +1 -1
  23. package/dist/plugin/index.js.map +1 -1
  24. package/dist/server/checkout.d.ts +0 -10
  25. package/dist/server/checkout.js +1 -1
  26. package/dist/server/checkout.js.map +1 -1
  27. package/dist/server/create-project.d.ts +0 -6
  28. package/dist/server/create-project.js +1 -1
  29. package/dist/server/create-project.js.map +1 -1
  30. package/dist/server/plugin-http-routes.d.ts +6 -18
  31. package/dist/server/plugin-http-routes.js +14 -24
  32. package/dist/server/plugin-http-routes.js.map +1 -1
  33. package/dist/server/project-settings-routes.d.ts +107 -107
  34. package/dist/server/provider-sign-in-routes.d.ts +2 -2
  35. package/dist/server/repo-routes.d.ts +39 -39
  36. package/dist/server/runner-install-routes.d.ts +10 -10
  37. package/dist/server/server.d.ts +1195 -1195
  38. package/dist/server/server.js +8 -10
  39. package/dist/server/server.js.map +1 -1
  40. package/dist/server/workspace-identity-routes.d.ts +5 -5
  41. package/package.json +4 -4
  42. package/web/dist/assets/{accounts-section-BsgnDmow.js → accounts-section-BXIfRpqn.js} +1 -1
  43. package/web/dist/assets/{activity-motion-Ckq9kC3I.js → activity-motion-CiMnzmaL.js} +1 -1
  44. package/web/dist/assets/{activity-route-5S9WhN9U.js → activity-route-7rgwez-p.js} +1 -1
  45. package/web/dist/assets/{agent-config-section-D8pxNy2V.js → agent-config-section-D35Gh915.js} +1 -1
  46. package/web/dist/assets/{agent-defaults-section-et5LHv9W.js → agent-defaults-section-qela9Lh0.js} +1 -1
  47. package/web/dist/assets/{appearance-D_t3wCjY.js → appearance-PSBR-L16.js} +1 -1
  48. package/web/dist/assets/{archive-on-merge-field-C63xRNFZ.js → archive-on-merge-field-BJFWDQ73.js} +1 -1
  49. package/web/dist/assets/ask-card-BOsa7Rhk.js +9 -0
  50. package/web/dist/assets/{automations-route-B5YBpGMc.js → automations-route-DvhHg4fm.js} +1 -1
  51. package/web/dist/assets/{commit-list-Bjc-pQxv.js → commit-list-DebGaysy.js} +1 -1
  52. package/web/dist/assets/{diff-lwWO-At7.js → diff-BSfVn71B.js} +2 -2
  53. package/web/dist/assets/{diff-controls-CaCUSyxs.js → diff-controls-BBgyFS1R.js} +1 -1
  54. package/web/dist/assets/{diff-view-4wxDvYXE.js → diff-view-CmGMWIlZ.js} +1 -1
  55. package/web/dist/assets/{discard-changes-dialog-B3gvm7lX.js → discard-changes-dialog-C6sD9mz8.js} +1 -1
  56. package/web/dist/assets/{file-preview-98pJhZJj.js → file-preview-Clm9psfR.js} +1 -1
  57. package/web/dist/assets/{git-toolbar-CepvG0Ng.js → git-toolbar-G_q1J1Qo.js} +1 -1
  58. package/web/dist/assets/{github-4Jhl7lLG.js → github-S25ca8_M.js} +1 -1
  59. package/web/dist/assets/{global-activity-route-DhmrWj31.js → global-activity-route-C6wsa2VH.js} +1 -1
  60. package/web/dist/assets/index-QckSsk-V.css +1 -0
  61. package/web/dist/assets/{index-DJB0lid-.js → index-n7br_LJj.js} +4 -4
  62. package/web/dist/assets/{markdown-BAPhDASs.js → markdown-DBTrMXVS.js} +1 -1
  63. package/web/dist/assets/{option-select-BwSkbCrQ.js → option-select-lxOL23-m.js} +1 -1
  64. package/web/dist/assets/{preferences-section-Cvh644K0.js → preferences-section-BjUffanB.js} +1 -1
  65. package/web/dist/assets/{preview-pane-connected-B08ZdGux.js → preview-pane-connected-DzT-ebVU.js} +1 -1
  66. package/web/dist/assets/{project-location-DR8go8oL.js → project-location-BEdaj_mZ.js} +1 -1
  67. package/web/dist/assets/{projects-section-XDboHBFP.js → projects-section-DBfKeeqR.js} +1 -1
  68. package/web/dist/assets/{prompt-templates-section-DcxD28iA.js → prompt-templates-section-D7SvCECE.js} +1 -1
  69. package/web/dist/assets/{remote-settings-notice-Dtaa3ovl.js → remote-settings-notice-BFW5hckZ.js} +1 -1
  70. package/web/dist/assets/{repo-git-Dp9R2TuI.js → repo-git-DufonnxZ.js} +1 -1
  71. package/web/dist/assets/{report-reader-mbkd2DKt.js → report-reader-BNeaSf9l.js} +1 -1
  72. package/web/dist/assets/{reports-ya2OW-iR.js → reports-Dg96OgK_.js} +1 -1
  73. package/web/dist/assets/{resources-section-g5XRlefz.js → resources-section-mlWGic7N.js} +1 -1
  74. package/web/dist/assets/{review-notes-drafts-BdBvLP6E.js → review-notes-drafts-B8XEe0To.js} +1 -1
  75. package/web/dist/assets/{review-panel-Ba8yb8Fu.js → review-panel-DeGoLgcB.js} +1 -1
  76. package/web/dist/assets/{review-strip-CdlMeV2i.js → review-strip-B0dxLGVX.js} +1 -1
  77. package/web/dist/assets/{run-header-BTRXYB4W.js → run-header-CO7X2ksL.js} +1 -1
  78. package/web/dist/assets/{select-DdH25sWT.js → select-BCP0bQL_.js} +1 -1
  79. package/web/dist/assets/{session-context-section-BqEdLdTv.js → session-context-section-DNHeVwaW.js} +1 -1
  80. package/web/dist/assets/{settings-agent-picker-b4M6fQ8m.js → settings-agent-picker-DpNZjBNf.js} +1 -1
  81. package/web/dist/assets/{settings-save-bar-DFY_Km4X.js → settings-save-bar-DTuXtrOh.js} +1 -1
  82. package/web/dist/assets/{settings-shell-BUwdvhI9.js → settings-shell-DA8Ljpv9.js} +1 -1
  83. package/web/dist/assets/{sidebar-section-CcucfASN.js → sidebar-section-CXPEyE4l.js} +1 -1
  84. package/web/dist/assets/{skills-BLkPhZO8.js → skills-CNCCc6b5.js} +1 -1
  85. package/web/dist/assets/{task-changes-Drvnew5P.js → task-changes-BIdArX0Y.js} +1 -1
  86. package/web/dist/assets/{task-commits-1MJHuX1i.js → task-commits-BMEqcu53.js} +1 -1
  87. package/web/dist/assets/{task-file-scope-CB3L3KQl.js → task-file-scope-DHm_aCX9.js} +1 -1
  88. package/web/dist/assets/{task-files-B9okW1TC.js → task-files-Dmc9mysp.js} +1 -1
  89. package/web/dist/assets/{task-github-item-CMNk7FxR.js → task-github-item-BVQHPtmd.js} +1 -1
  90. package/web/dist/assets/{task-thread-a6CXLxwn.css → task-thread-BObu0KsD.css} +1 -1
  91. package/web/dist/assets/task-thread-DonhRFPP.js +2 -0
  92. package/web/dist/assets/{thread-state-qNczqxZQ.js → thread-state-qIdHMY4r.js} +1 -1
  93. package/web/dist/assets/{use-finish-run-Dvm4JnAH.js → use-finish-run-BRlt2Xcp.js} +1 -1
  94. package/web/dist/assets/{use-hand-to-agent-state-CBJvP-US.js → use-hand-to-agent-state-DA5WLXGY.js} +1 -1
  95. package/web/dist/assets/use-path-bases-DJciTjQE.js +1 -0
  96. package/web/dist/assets/{workflows-BUcx-n8J.js → workflows-BGZZkVU_.js} +1 -1
  97. package/web/dist/assets/{workspace-tools-dbiR1fzO.js → workspace-tools-DIcwDrFd.js} +1 -1
  98. package/web/dist/assets/{worktrees-section-Dyb_QkSd.js → worktrees-section-BTKs5R9c.js} +1 -1
  99. package/web/dist/index.html +2 -2
  100. package/dist/features/hosts/gateway-routes.d.ts +0 -14
  101. package/dist/features/hosts/gateway-routes.js +0 -20
  102. package/dist/features/hosts/gateway-routes.js.map +0 -1
  103. package/dist/features/hosts/gateway.d.ts +0 -105
  104. package/dist/features/hosts/gateway.js +0 -758
  105. package/dist/features/hosts/gateway.js.map +0 -1
  106. package/web/dist/assets/ask-card-kqWOqKIc.js +0 -9
  107. package/web/dist/assets/index-BK1FcZrA.css +0 -1
  108. package/web/dist/assets/task-thread-_2ch8BRt.js +0 -2
  109. package/web/dist/assets/use-path-bases-C9yvZF5B.js +0 -1
@@ -342,257 +342,3 @@ export declare const hostServerActiveTasksResultSchema: z.ZodObject<{
342
342
  activeCount: z.ZodNumber;
343
343
  }, z.core.$strip>;
344
344
  export type HostServerActiveTasksResult = z.infer<typeof hostServerActiveTasksResultSchema>;
345
- /**
346
- * Machine-readable error codes returned by the main server's host gateway
347
- * (`ALL /api/v1/hosts/:hostId/api/v1/*`, spec § Architecture 3 & § 6, hearsay-tools/squawk#4540).
348
- */
349
- export declare const HOST_GATEWAY_ERROR_CODES: readonly ['host-unreachable', 'host-version-mismatch', 'host-not-hosted', 'host-identity-changed', 'host-several-servers', 'host-paused', 'host-upgrade-unsupported', 'host-unexpected-redirect', 'host-nested-gateway-unsupported'];
350
- export declare const hostGatewayErrorCodeSchema: z.ZodEnum<{
351
- "host-identity-changed": "host-identity-changed";
352
- "host-nested-gateway-unsupported": "host-nested-gateway-unsupported";
353
- "host-not-hosted": "host-not-hosted";
354
- "host-paused": "host-paused";
355
- "host-several-servers": "host-several-servers";
356
- "host-unexpected-redirect": "host-unexpected-redirect";
357
- "host-unreachable": "host-unreachable";
358
- "host-upgrade-unsupported": "host-upgrade-unsupported";
359
- "host-version-mismatch": "host-version-mismatch";
360
- }>;
361
- export type HostGatewayErrorCode = z.infer<typeof hostGatewayErrorCodeSchema>;
362
- /** Error body returned by the host gateway on 400 / 409 / 502 refusals. */
363
- export declare const hostGatewayErrorResponseSchema: z.ZodObject<{
364
- code: z.ZodEnum<{
365
- "host-identity-changed": "host-identity-changed";
366
- "host-nested-gateway-unsupported": "host-nested-gateway-unsupported";
367
- "host-not-hosted": "host-not-hosted";
368
- "host-paused": "host-paused";
369
- "host-several-servers": "host-several-servers";
370
- "host-unexpected-redirect": "host-unexpected-redirect";
371
- "host-unreachable": "host-unreachable";
372
- "host-upgrade-unsupported": "host-upgrade-unsupported";
373
- "host-version-mismatch": "host-version-mismatch";
374
- }>;
375
- error: z.ZodString;
376
- }, z.core.$strip>;
377
- export type HostGatewayErrorResponse = z.infer<typeof hostGatewayErrorResponseSchema>;
378
- /**
379
- * Per-host project listing in `GET /api/v1/hosts/projects` (spec § Architecture 4,
380
- * hearsay-tools/squawk#4540). Every session may read it, so it carries ONLY `id`, `label`,
381
- * `state`, and `projects` (never `reason`, `sshAlias`, or other admin-only host fields).
382
- *
383
- * `projects` is:
384
- * - `[...]` when the host is connected and its project list was read (`[]` = no projects),
385
- * - `[]` when the host is not connected,
386
- * - `null` when the host was connected but reading its projects failed (timeout, non-2xx,
387
- * malformed JSON, or response > 1 MiB), so the rail can distinguish "no projects" from
388
- * "could not read".
389
- */
390
- export declare const hostProjectsEntrySchema: z.ZodObject<{
391
- id: z.ZodString;
392
- label: z.ZodString;
393
- state: z.ZodEnum<{
394
- "cannot-persist": "cannot-persist";
395
- connected: "connected";
396
- connecting: "connecting";
397
- "identity-changed": "identity-changed";
398
- "needs-node": "needs-node";
399
- "not-hosted": "not-hosted";
400
- paused: "paused";
401
- "several-servers": "several-servers";
402
- unreachable: "unreachable";
403
- "version-mismatch": "version-mismatch";
404
- }>;
405
- projects: z.ZodNullable<z.ZodArray<z.ZodObject<{
406
- id: z.ZodString;
407
- name: z.ZodString;
408
- root: z.ZodString;
409
- addedAt: z.ZodString;
410
- lastOpenedAt: z.ZodString;
411
- source: z.ZodEnum<{
412
- checkout: "checkout";
413
- local: "local";
414
- }>;
415
- status: z.ZodEnum<{
416
- missing: "missing";
417
- "not-git": "not-git";
418
- ok: "ok";
419
- }>;
420
- branch: z.ZodOptional<z.ZodString>;
421
- forge: z.ZodOptional<z.ZodString>;
422
- repoUrl: z.ZodOptional<z.ZodString>;
423
- maxParallel: z.ZodOptional<z.ZodNumber>;
424
- tags: z.ZodOptional<z.ZodArray<z.ZodString>>;
425
- webhook: z.ZodOptional<z.ZodObject<{
426
- url: z.ZodString;
427
- tokenSet: z.ZodBoolean;
428
- triggers: z.ZodOptional<z.ZodArray<z.ZodEnum<{
429
- cancelled: "cancelled";
430
- done: "done";
431
- failed: "failed";
432
- "needs-you": "needs-you";
433
- running: "running";
434
- "waiting-ci": "waiting-ci";
435
- "waiting-other": "waiting-other";
436
- "waiting-timer": "waiting-timer";
437
- "waiting-workers": "waiting-workers";
438
- }>>>;
439
- }, z.core.$strip>>;
440
- webhooks: z.ZodOptional<z.ZodArray<z.ZodObject<{
441
- id: z.ZodString;
442
- name: z.ZodString;
443
- description: z.ZodOptional<z.ZodString>;
444
- url: z.ZodString;
445
- tokenSet: z.ZodBoolean;
446
- tasks: z.ZodBoolean;
447
- triggers: z.ZodOptional<z.ZodArray<z.ZodEnum<{
448
- cancelled: "cancelled";
449
- done: "done";
450
- failed: "failed";
451
- "needs-you": "needs-you";
452
- running: "running";
453
- "waiting-ci": "waiting-ci";
454
- "waiting-other": "waiting-other";
455
- "waiting-timer": "waiting-timer";
456
- "waiting-workers": "waiting-workers";
457
- }>>>;
458
- agent: z.ZodBoolean;
459
- }, z.core.$strip>>>;
460
- }, z.core.$strip>>>;
461
- }, z.core.$strip>;
462
- export type HostProjectsEntry = z.infer<typeof hostProjectsEntrySchema>;
463
- /** `GET /api/v1/hosts/projects` response: local projects plus every saved host's state and projects. */
464
- export declare const hostsProjectsResponseSchema: z.ZodObject<{
465
- local: z.ZodObject<{
466
- projects: z.ZodArray<z.ZodObject<{
467
- id: z.ZodString;
468
- name: z.ZodString;
469
- root: z.ZodString;
470
- addedAt: z.ZodString;
471
- lastOpenedAt: z.ZodString;
472
- source: z.ZodEnum<{
473
- checkout: "checkout";
474
- local: "local";
475
- }>;
476
- status: z.ZodEnum<{
477
- missing: "missing";
478
- "not-git": "not-git";
479
- ok: "ok";
480
- }>;
481
- branch: z.ZodOptional<z.ZodString>;
482
- forge: z.ZodOptional<z.ZodString>;
483
- repoUrl: z.ZodOptional<z.ZodString>;
484
- maxParallel: z.ZodOptional<z.ZodNumber>;
485
- tags: z.ZodOptional<z.ZodArray<z.ZodString>>;
486
- webhook: z.ZodOptional<z.ZodObject<{
487
- url: z.ZodString;
488
- tokenSet: z.ZodBoolean;
489
- triggers: z.ZodOptional<z.ZodArray<z.ZodEnum<{
490
- cancelled: "cancelled";
491
- done: "done";
492
- failed: "failed";
493
- "needs-you": "needs-you";
494
- running: "running";
495
- "waiting-ci": "waiting-ci";
496
- "waiting-other": "waiting-other";
497
- "waiting-timer": "waiting-timer";
498
- "waiting-workers": "waiting-workers";
499
- }>>>;
500
- }, z.core.$strip>>;
501
- webhooks: z.ZodOptional<z.ZodArray<z.ZodObject<{
502
- id: z.ZodString;
503
- name: z.ZodString;
504
- description: z.ZodOptional<z.ZodString>;
505
- url: z.ZodString;
506
- tokenSet: z.ZodBoolean;
507
- tasks: z.ZodBoolean;
508
- triggers: z.ZodOptional<z.ZodArray<z.ZodEnum<{
509
- cancelled: "cancelled";
510
- done: "done";
511
- failed: "failed";
512
- "needs-you": "needs-you";
513
- running: "running";
514
- "waiting-ci": "waiting-ci";
515
- "waiting-other": "waiting-other";
516
- "waiting-timer": "waiting-timer";
517
- "waiting-workers": "waiting-workers";
518
- }>>>;
519
- agent: z.ZodBoolean;
520
- }, z.core.$strip>>>;
521
- }, z.core.$strip>>;
522
- bootProject: z.ZodNullable<z.ZodString>;
523
- }, z.core.$strip>;
524
- hosts: z.ZodArray<z.ZodObject<{
525
- id: z.ZodString;
526
- label: z.ZodString;
527
- state: z.ZodEnum<{
528
- "cannot-persist": "cannot-persist";
529
- connected: "connected";
530
- connecting: "connecting";
531
- "identity-changed": "identity-changed";
532
- "needs-node": "needs-node";
533
- "not-hosted": "not-hosted";
534
- paused: "paused";
535
- "several-servers": "several-servers";
536
- unreachable: "unreachable";
537
- "version-mismatch": "version-mismatch";
538
- }>;
539
- projects: z.ZodNullable<z.ZodArray<z.ZodObject<{
540
- id: z.ZodString;
541
- name: z.ZodString;
542
- root: z.ZodString;
543
- addedAt: z.ZodString;
544
- lastOpenedAt: z.ZodString;
545
- source: z.ZodEnum<{
546
- checkout: "checkout";
547
- local: "local";
548
- }>;
549
- status: z.ZodEnum<{
550
- missing: "missing";
551
- "not-git": "not-git";
552
- ok: "ok";
553
- }>;
554
- branch: z.ZodOptional<z.ZodString>;
555
- forge: z.ZodOptional<z.ZodString>;
556
- repoUrl: z.ZodOptional<z.ZodString>;
557
- maxParallel: z.ZodOptional<z.ZodNumber>;
558
- tags: z.ZodOptional<z.ZodArray<z.ZodString>>;
559
- webhook: z.ZodOptional<z.ZodObject<{
560
- url: z.ZodString;
561
- tokenSet: z.ZodBoolean;
562
- triggers: z.ZodOptional<z.ZodArray<z.ZodEnum<{
563
- cancelled: "cancelled";
564
- done: "done";
565
- failed: "failed";
566
- "needs-you": "needs-you";
567
- running: "running";
568
- "waiting-ci": "waiting-ci";
569
- "waiting-other": "waiting-other";
570
- "waiting-timer": "waiting-timer";
571
- "waiting-workers": "waiting-workers";
572
- }>>>;
573
- }, z.core.$strip>>;
574
- webhooks: z.ZodOptional<z.ZodArray<z.ZodObject<{
575
- id: z.ZodString;
576
- name: z.ZodString;
577
- description: z.ZodOptional<z.ZodString>;
578
- url: z.ZodString;
579
- tokenSet: z.ZodBoolean;
580
- tasks: z.ZodBoolean;
581
- triggers: z.ZodOptional<z.ZodArray<z.ZodEnum<{
582
- cancelled: "cancelled";
583
- done: "done";
584
- failed: "failed";
585
- "needs-you": "needs-you";
586
- running: "running";
587
- "waiting-ci": "waiting-ci";
588
- "waiting-other": "waiting-other";
589
- "waiting-timer": "waiting-timer";
590
- "waiting-workers": "waiting-workers";
591
- }>>>;
592
- agent: z.ZodBoolean;
593
- }, z.core.$strip>>>;
594
- }, z.core.$strip>>>;
595
- }, z.core.$strip>>;
596
- warning: z.ZodOptional<z.ZodString>;
597
- }, z.core.$strip>;
598
- export type HostsProjectsResponse = z.infer<typeof hostsProjectsResponseSchema>;
@@ -6722,36 +6722,6 @@ var hostServerActiveTasksResultSchema = z61.object({
6722
6722
  port: hostPortSchema,
6723
6723
  activeCount: z61.number().int().min(0)
6724
6724
  });
6725
- var HOST_GATEWAY_ERROR_CODES = [
6726
- "host-unreachable",
6727
- "host-version-mismatch",
6728
- "host-not-hosted",
6729
- "host-identity-changed",
6730
- "host-several-servers",
6731
- "host-paused",
6732
- "host-upgrade-unsupported",
6733
- "host-unexpected-redirect",
6734
- "host-nested-gateway-unsupported"
6735
- ];
6736
- var hostGatewayErrorCodeSchema = z61.enum(HOST_GATEWAY_ERROR_CODES);
6737
- var hostGatewayErrorResponseSchema = z61.object({
6738
- code: hostGatewayErrorCodeSchema,
6739
- error: z61.string().min(1)
6740
- });
6741
- var hostProjectsEntrySchema = z61.object({
6742
- id: hostIdSchema,
6743
- label: hostLabelSchema,
6744
- state: hostStateSchema,
6745
- projects: z61.array(projectListEntrySchema).nullable()
6746
- });
6747
- var hostsProjectsResponseSchema = z61.object({
6748
- local: z61.object({
6749
- projects: z61.array(projectListEntrySchema),
6750
- bootProject: z61.string().nullable()
6751
- }),
6752
- hosts: z61.array(hostProjectsEntrySchema),
6753
- warning: z61.string().optional()
6754
- });
6755
6725
  export {
6756
6726
  ACTIVITY_CHECKS_MAX,
6757
6727
  ACTIVITY_CHECK_NAME_MAX,
@@ -6788,7 +6758,6 @@ export {
6788
6758
  HANDOFF_AUTOSAVE_RECORDS_MAX,
6789
6759
  HOME_FILE_PATTERN,
6790
6760
  HOME_RECOVERY_REASONS,
6791
- HOST_GATEWAY_ERROR_CODES,
6792
6761
  HOST_ID_PATTERN,
6793
6762
  HOST_NOT_CONNECTED_REASON,
6794
6763
  HOST_STATES,
@@ -7110,12 +7079,9 @@ export {
7110
7079
  homeRecoverySchema,
7111
7080
  hostDiscoveryRequestSchema,
7112
7081
  hostEntrySchema,
7113
- hostGatewayErrorCodeSchema,
7114
- hostGatewayErrorResponseSchema,
7115
7082
  hostIdSchema,
7116
7083
  hostLabelSchema,
7117
7084
  hostPortSchema,
7118
- hostProjectsEntrySchema,
7119
7085
  hostResponseSchema,
7120
7086
  hostRouteParamsSchema,
7121
7087
  hostServerActiveTasksResultSchema,
@@ -7133,7 +7099,6 @@ export {
7133
7099
  hostStateSchema,
7134
7100
  hostSummarySchema,
7135
7101
  hostsListResponseSchema,
7136
- hostsProjectsResponseSchema,
7137
7102
  hostsRegistryFileSchema,
7138
7103
  humanAskClosedEventSchema,
7139
7104
  humanInputDeliveredEventSchema,
@@ -18,7 +18,9 @@ export interface HttpRouteContext {
18
18
  readonly isHostedMode: () => boolean;
19
19
  /** Invoke the cockpit HTTP app in-process (synthetic loopback Host, no Origin). */
20
20
  fetchApp(request: Request): Promise<Response>;
21
- /** Shared cockpit server context (hearsay-tools/squawk#4442, hearsay-tools/squawk#4540). */
21
+ }
22
+ export interface HttpRouteBundleContext extends HttpRouteContext {
23
+ /** Shared cockpit server context for route bundles (hearsay-tools/squawk#4442). */
22
24
  readonly server?: ServerPluginContext | undefined;
23
25
  }
24
26
  export interface HttpHandlerRouteDefinition {
@@ -32,11 +34,6 @@ export interface HttpHandlerRouteDefinition {
32
34
  * enforces auth and its own streaming body cap before buffering request bytes.
33
35
  */
34
36
  readonly managesBodyLimit?: boolean | undefined;
35
- /**
36
- * When true, the main server's response-compression middleware skips this route so streaming
37
- * proxy responses are never buffered or re-compressed after the upstream applied `Accept-Encoding`.
38
- */
39
- readonly skipCompression?: boolean | undefined;
40
37
  handle(request: Request, context: HttpRouteContext): Response | Promise<Response>;
41
38
  }
42
39
  export interface HttpBundleRouteDefinition {
@@ -47,7 +44,7 @@ export interface HttpBundleRouteDefinition {
47
44
  * Build the Hono sub-app mounted under `/api/v1/p/:projectId` and `/api/v1` (when `scope` is
48
45
  * `'project'`) or under `/api/v1` only (when `scope` is `'workspace'`).
49
46
  */
50
- createRoutes(context: HttpRouteContext): Hono<any, any, any>;
47
+ createRoutes(context: HttpRouteBundleContext): Hono<any, any, any>;
51
48
  }
52
49
  export type HttpRouteDefinition = HttpHandlerRouteDefinition | HttpBundleRouteDefinition;
53
50
  export declare function isHttpBundleRoute(route: HttpRouteDefinition): route is HttpBundleRouteDefinition;
@@ -17,15 +17,9 @@ function checkHandlerShape(route) {
17
17
  if (typeof route.path !== 'string' || !route.path.startsWith(API_V1_PREFIX) || route.path.length <= API_V1_PREFIX.length) {
18
18
  throw new Error(`HTTP routes: '${route.id}' path must start with '${API_V1_PREFIX}', got ${JSON.stringify(route.path)}.`);
19
19
  }
20
- if (route.path === `${API_V1_PREFIX}*`) {
21
- throw new Error(`HTTP routes: '${route.id}' cannot register a root wildcard path ('${route.path}').`);
22
- }
23
20
  if (route.managesBodyLimit !== undefined && typeof route.managesBodyLimit !== 'boolean') {
24
21
  throw new Error(`HTTP routes: '${route.id}' managesBodyLimit must be a boolean.`);
25
22
  }
26
- if (route.skipCompression !== undefined && typeof route.skipCompression !== 'boolean') {
27
- throw new Error(`HTTP routes: '${route.id}' skipCompression must be a boolean.`);
28
- }
29
23
  if (typeof route.handle !== 'function')
30
24
  throw new Error(`HTTP routes: '${route.id}' needs a handle function.`);
31
25
  }
@@ -1 +1 @@
1
- {"version":3,"file":"http-route-registry.js","sourceRoot":"","sources":["../../src/core/http-route-registry.ts"],"names":[],"mappings":"AAQA,OAAO,EAAE,mBAAmB,EAAE,MAAM,eAAe,CAAC;AAGpD,MAAM,CAAC,MAAM,kBAAkB,GAAG,CAAC,KAAK,EAAE,MAAM,EAAE,KAAK,EAAE,OAAO,EAAE,QAAQ,EAAE,KAAK,CAAU,CAAC;AAG5F,MAAM,CAAC,MAAM,iB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C;AACH,CAAC;AAED,MAAM,UAAU,iBAAiB,CAAC,KAA0B;IAC1D,0BAA0B,CAAC,KAAK,CAAC,CAAC;IAClC,MAAM,CAAC,QAAQ,CAAC,KAAK,CAAC,EAAE,EAAE,KAAK,CAAC,CAAC;IACjC,IAAI,CAAC,iBAAiB,CAAC,KAAK,CAAC;QAAE,YAAY,CAAC,GAAG,CAAC,KAAK,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC;AACrE,CAAC;AAED,MAAM,UAAU,cAAc,KAAW,MAAM,CAAC,IAAI,EAAE,CAAC,CAAC,CAAC;AAEzD,oDAAoD;AACpD,MAAM,UAAU,gBAAgB,KAAc,OAAO,MAAM,CAAC,QAAQ,EAAE,CAAC,CAAC,CAAC;AAEzE,gFAAgF;AAChF,MAAM,UAAU,oBAAoB;IAClC,OAAO,MAAM,CAAC,MAAM,EAAE,CAAC;AACzB,CAAC"}
@@ -2,18 +2,6 @@ import type { DelegationRoutes } from './routes.ts';
2
2
  export declare function createDelegationApp(routes: DelegationRoutes): import("hono/hono-base").HonoBase<import("hono/types").BlankEnv, import("hono/types").BlankSchema | import("hono/types").MergeSchemaPath<{
3
3
  "/list": {
4
4
  $get: {
5
- output: {
6
- error: string;
7
- code?: "invalid_input" | undefined;
8
- };
9
- outputFormat: "json";
10
- status: 400;
11
- input: {
12
- query: {
13
- offset?: string | undefined;
14
- };
15
- };
16
- } | {
17
5
  output: {
18
6
  workers: {
19
7
  workerId: string;
@@ -66,6 +54,18 @@ export declare function createDelegationApp(routes: DelegationRoutes): import("h
66
54
  offset?: string | undefined;
67
55
  };
68
56
  };
57
+ } | {
58
+ output: {
59
+ error: string;
60
+ code?: "invalid_input" | undefined;
61
+ };
62
+ outputFormat: "json";
63
+ status: 400;
64
+ input: {
65
+ query: {
66
+ offset?: string | undefined;
67
+ };
68
+ };
69
69
  };
70
70
  };
71
71
  } & {
@@ -652,18 +652,6 @@ export declare function createDelegationApp(routes: DelegationRoutes): import("h
652
652
  } & {
653
653
  "/:workerId": {
654
654
  $get: {
655
- output: {
656
- error: string;
657
- code?: "invalid_input" | undefined;
658
- };
659
- outputFormat: "json";
660
- status: 400;
661
- input: {
662
- param: {
663
- workerId: string;
664
- };
665
- };
666
- } | {
667
655
  output: {
668
656
  workerId: string;
669
657
  settled: boolean;
@@ -788,11 +776,7 @@ export declare function createDelegationApp(routes: DelegationRoutes): import("h
788
776
  workerId: string;
789
777
  };
790
778
  };
791
- };
792
- };
793
- } & {
794
- "/:workerId/collect": {
795
- $post: {
779
+ } | {
796
780
  output: {
797
781
  error: string;
798
782
  code?: "invalid_input" | undefined;
@@ -803,10 +787,12 @@ export declare function createDelegationApp(routes: DelegationRoutes): import("h
803
787
  param: {
804
788
  workerId: string;
805
789
  };
806
- } & {
807
- json: Record<string, never>;
808
790
  };
809
- } | {
791
+ };
792
+ };
793
+ } & {
794
+ "/:workerId/collect": {
795
+ $post: {
810
796
  output: {
811
797
  workerId: string;
812
798
  parentRunId: string;
@@ -931,11 +917,7 @@ export declare function createDelegationApp(routes: DelegationRoutes): import("h
931
917
  } & {
932
918
  json: Record<string, never>;
933
919
  };
934
- };
935
- };
936
- } & {
937
- "/:workerId/steer": {
938
- $post: {
920
+ } | {
939
921
  output: {
940
922
  error: string;
941
923
  code?: "invalid_input" | undefined;
@@ -947,11 +929,13 @@ export declare function createDelegationApp(routes: DelegationRoutes): import("h
947
929
  workerId: string;
948
930
  };
949
931
  } & {
950
- json: {
951
- text: string;
952
- };
932
+ json: Record<string, never>;
953
933
  };
954
- } | {
934
+ };
935
+ };
936
+ } & {
937
+ "/:workerId/steer": {
938
+ $post: {
955
939
  output: {
956
940
  workerId: string;
957
941
  state: "delivered" | "queued";
@@ -967,11 +951,7 @@ export declare function createDelegationApp(routes: DelegationRoutes): import("h
967
951
  text: string;
968
952
  };
969
953
  };
970
- };
971
- };
972
- } & {
973
- "/:workerId/stop": {
974
- $post: {
954
+ } | {
975
955
  output: {
976
956
  error: string;
977
957
  code?: "invalid_input" | undefined;
@@ -983,9 +963,15 @@ export declare function createDelegationApp(routes: DelegationRoutes): import("h
983
963
  workerId: string;
984
964
  };
985
965
  } & {
986
- json: Record<string, never>;
966
+ json: {
967
+ text: string;
968
+ };
987
969
  };
988
- } | {
970
+ };
971
+ };
972
+ } & {
973
+ "/:workerId/stop": {
974
+ $post: {
989
975
  output: {
990
976
  workerId: string;
991
977
  state: "stopping" | "terminated";
@@ -999,11 +985,7 @@ export declare function createDelegationApp(routes: DelegationRoutes): import("h
999
985
  } & {
1000
986
  json: Record<string, never>;
1001
987
  };
1002
- };
1003
- };
1004
- } & {
1005
- "/:workerId/destroy": {
1006
- $post: {
988
+ } | {
1007
989
  output: {
1008
990
  error: string;
1009
991
  code?: "invalid_input" | undefined;
@@ -1015,11 +997,13 @@ export declare function createDelegationApp(routes: DelegationRoutes): import("h
1015
997
  workerId: string;
1016
998
  };
1017
999
  } & {
1018
- json: {
1019
- discardWork?: true | undefined;
1020
- };
1000
+ json: Record<string, never>;
1021
1001
  };
1022
- } | {
1002
+ };
1003
+ };
1004
+ } & {
1005
+ "/:workerId/destroy": {
1006
+ $post: {
1023
1007
  output: {
1024
1008
  workerId: string;
1025
1009
  state: "complete" | "incomplete";
@@ -1048,6 +1032,22 @@ export declare function createDelegationApp(routes: DelegationRoutes): import("h
1048
1032
  discardWork?: true | undefined;
1049
1033
  };
1050
1034
  };
1035
+ } | {
1036
+ output: {
1037
+ error: string;
1038
+ code?: "invalid_input" | undefined;
1039
+ };
1040
+ outputFormat: "json";
1041
+ status: 400;
1042
+ input: {
1043
+ param: {
1044
+ workerId: string;
1045
+ };
1046
+ } & {
1047
+ json: {
1048
+ discardWork?: true | undefined;
1049
+ };
1050
+ };
1051
1051
  } | {
1052
1052
  output: {
1053
1053
  workerId: string;
@@ -1083,11 +1083,18 @@ export declare function createDelegationApp(routes: DelegationRoutes): import("h
1083
1083
  "/:workerId/summary": {
1084
1084
  $post: {
1085
1085
  output: {
1086
- error: string;
1087
- code?: "invalid_input" | undefined;
1086
+ workerId: string;
1087
+ revision: number;
1088
+ source: "assistant" | "failure";
1089
+ seq: number;
1090
+ totalLines: number;
1091
+ offset: number;
1092
+ lineCount: number;
1093
+ text: string;
1094
+ nextOffset?: number | undefined;
1088
1095
  };
1089
1096
  outputFormat: "json";
1090
- status: 400;
1097
+ status: 200;
1091
1098
  input: {
1092
1099
  param: {
1093
1100
  workerId: string;
@@ -1100,18 +1107,11 @@ export declare function createDelegationApp(routes: DelegationRoutes): import("h
1100
1107
  };
1101
1108
  } | {
1102
1109
  output: {
1103
- workerId: string;
1104
- revision: number;
1105
- source: "assistant" | "failure";
1106
- seq: number;
1107
- totalLines: number;
1108
- offset: number;
1109
- lineCount: number;
1110
- text: string;
1111
- nextOffset?: number | undefined;
1110
+ error: string;
1111
+ code?: "invalid_input" | undefined;
1112
1112
  };
1113
1113
  outputFormat: "json";
1114
- status: 200;
1114
+ status: 400;
1115
1115
  input: {
1116
1116
  param: {
1117
1117
  workerId: string;
@@ -1128,11 +1128,13 @@ export declare function createDelegationApp(routes: DelegationRoutes): import("h
1128
1128
  "/:workerId/diff": {
1129
1129
  $get: {
1130
1130
  output: {
1131
- error: string;
1132
- code?: "invalid_input" | undefined;
1131
+ workerId: string;
1132
+ baselineSha: string;
1133
+ diff: string;
1134
+ truncated: boolean;
1133
1135
  };
1134
1136
  outputFormat: "json";
1135
- status: 400;
1137
+ status: 200;
1136
1138
  input: {
1137
1139
  param: {
1138
1140
  workerId: string;
@@ -1140,13 +1142,11 @@ export declare function createDelegationApp(routes: DelegationRoutes): import("h
1140
1142
  };
1141
1143
  } | {
1142
1144
  output: {
1143
- workerId: string;
1144
- baselineSha: string;
1145
- diff: string;
1146
- truncated: boolean;
1145
+ error: string;
1146
+ code?: "invalid_input" | undefined;
1147
1147
  };
1148
1148
  outputFormat: "json";
1149
- status: 200;
1149
+ status: 400;
1150
1150
  input: {
1151
1151
  param: {
1152
1152
  workerId: string;