@hearsay-tools/squawk 0.18.0-pr3429.5979 → 0.18.0-pr3433.6018

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 (85) hide show
  1. package/dist/automations/service.d.ts +1 -1
  2. package/dist/automations/service.js +1 -1
  3. package/dist/ci-wait/controller.d.ts +37 -37
  4. package/dist/ci-wait/tools.d.ts +4 -4
  5. package/dist/contract/automation-schedule.d.ts +9 -0
  6. package/dist/contract/automations.d.ts +1 -9
  7. package/dist/contract/index.js +1956 -1960
  8. package/dist/contract/run-status.d.ts +32 -0
  9. package/dist/contract/runs.d.ts +1 -21
  10. package/dist/delegation/routes.d.ts +9 -9
  11. package/dist/delegation/service.d.ts +1 -1
  12. package/dist/delegation/service.js +1 -1
  13. package/dist/delegation/transport.d.ts +9 -9
  14. package/dist/discovery/catalog.d.ts +2 -9
  15. package/dist/discovery/catalog.js +1 -18
  16. package/dist/discovery/catalog.js.map +1 -1
  17. package/dist/discovery/choices.d.ts +10 -0
  18. package/dist/discovery/choices.js +19 -0
  19. package/dist/discovery/choices.js.map +1 -0
  20. package/dist/runs/run-exits.d.ts +290 -290
  21. package/dist/serve-command.js +1 -0
  22. package/dist/serve-command.js.map +1 -1
  23. package/dist/server/live-routes.d.ts +6 -6
  24. package/dist/server/project-context.d.ts +5 -1
  25. package/dist/server/project-context.js +7 -4
  26. package/dist/server/project-context.js.map +1 -1
  27. package/dist/server/reports-api.d.ts +2 -2
  28. package/dist/server/server.d.ts +1420 -1418
  29. package/dist/server/server.js +4 -5
  30. package/dist/server/server.js.map +1 -1
  31. package/dist/server/start-run-options.d.ts +2 -1
  32. package/dist/server/start-run-options.js +1 -1
  33. package/dist/server/start-run-options.js.map +1 -1
  34. package/dist/server/workspace-live-routes.d.ts +6 -6
  35. package/dist/server/workspace-projects.d.ts +1 -1
  36. package/dist/server/workspace-projects.js +1 -0
  37. package/dist/server/workspace-projects.js.map +1 -1
  38. package/dist/workflows/input-acknowledgement.d.ts +24 -24
  39. package/package.json +4 -4
  40. package/scripts/benchmark-run-store.ts +2 -1
  41. package/scripts/benchmark-workspace-events.ts +2 -1
  42. package/scripts/measure-transcript-facts-health.mjs +2 -1
  43. package/web/dist/assets/{activity-motion-XsGcc9eM.js → activity-motion-Bqd8S9Xy.js} +2 -2
  44. package/web/dist/assets/{activity-route-DIDXHV7J.js → activity-route-DQI_8J09.js} +1 -1
  45. package/web/dist/assets/{agent-accounts-CuRvwNoA.js → agent-accounts-C6eyz75V.js} +1 -1
  46. package/web/dist/assets/{cez-idle-DtpdVf_5.js → cez-idle-NomdGTfa.js} +1 -1
  47. package/web/dist/assets/{commit-diff-panel-DtHg36xc.js → commit-diff-panel-C7BUSPzE.js} +1 -1
  48. package/web/dist/assets/{control-locations-CljaLD_b.js → control-locations-DlrUP5vD.js} +1 -1
  49. package/web/dist/assets/{diff-ImdJ4tPA.js → diff-Bwy0qFul.js} +2 -2
  50. package/web/dist/assets/{diff-view-BMqNpcSH.js → diff-view-B9kgeZTm.js} +1 -1
  51. package/web/dist/assets/{file-preview-C58stPPw.js → file-preview-DrXgM1-S.js} +1 -1
  52. package/web/dist/assets/{git-toolbar-Dzp24LO7.js → git-toolbar-B1gOn_1U.js} +1 -1
  53. package/web/dist/assets/{github-Cn0hlJsH.js → github-g-ZOTwHQ.js} +1 -1
  54. package/web/dist/assets/{github-sidebar-model-BSNdxNKJ.js → github-sidebar-model-BdoLA7qT.js} +1 -1
  55. package/web/dist/assets/{global-activity-route-D5ke1ZQa.js → global-activity-route-CZ_xwiz3.js} +1 -1
  56. package/web/dist/assets/index-75IttVLX.js +17 -0
  57. package/web/dist/assets/{live-protocol-BAiIX_Mf.js → live-protocol-DBPXI6ks.js} +1 -1
  58. package/web/dist/assets/{live-refetch-CstQIN6c.js → live-refetch-pzhdhNS_.js} +1 -1
  59. package/web/dist/assets/{preview-pane-connected-Cl-W1pDv.js → preview-pane-connected-Cx8q-Yrh.js} +1 -1
  60. package/web/dist/assets/{project-router-Dd63wBeA.js → project-router-BFKfAFvq.js} +1 -1
  61. package/web/dist/assets/project-scope-context-DSkcNKO7.js +4 -0
  62. package/web/dist/assets/{queries-BPdWfTBN.js → queries-BtScxiQP.js} +1 -1
  63. package/web/dist/assets/{repo-git-YYivBJ2x.js → repo-git-DgZuI4FP.js} +1 -1
  64. package/web/dist/assets/{report-reader-gGAlVnKU.js → report-reader-CeBtx_Sf.js} +1 -1
  65. package/web/dist/assets/reports-CRPxIRMM.js +1 -0
  66. package/web/dist/assets/{run-header-CxRJxVsR.js → run-header-C8Eeonkx.js} +2 -2
  67. package/web/dist/assets/{skills-CEFXcZA5.js → skills-DDoJCcmD.js} +1 -1
  68. package/web/dist/assets/{tab-link-CDrve3Rf.js → tab-link-DDpdYMnv.js} +1 -1
  69. package/web/dist/assets/{task-changes-Bm4gjXBb.js → task-changes-XAcKfebn.js} +1 -1
  70. package/web/dist/assets/{task-commits-DYHV533w.js → task-commits-D5V0Q0au.js} +1 -1
  71. package/web/dist/assets/{task-files-Bqvj0rbX.js → task-files-CkPJZE0w.js} +1 -1
  72. package/web/dist/assets/{task-github-item-YkTV2--_.js → task-github-item-CbCOKkvp.js} +1 -1
  73. package/web/dist/assets/{task-thread-CempX7k0.js → task-thread-DyR8HsDz.js} +5 -5
  74. package/web/dist/assets/{thread-state-BpcneWuV.js → thread-state-BtmIMbkZ.js} +1 -1
  75. package/web/dist/assets/{use-hand-to-agent-state-B9qtivFb.js → use-hand-to-agent-state-BUpbMYM9.js} +1 -1
  76. package/web/dist/assets/{useInfiniteQuery-hrWYY8aw.js → useInfiniteQuery-BmfExLUr.js} +1 -1
  77. package/web/dist/assets/useQuery-8pHkglP4.js +1 -0
  78. package/web/dist/assets/{workflows-z-CqJ0JW.js → workflows-CEFtJj_h.js} +1 -1
  79. package/web/dist/assets/{ws-Cn8d-Fu-.js → ws-CEQH0TUT.js} +1 -1
  80. package/web/dist/index.html +13 -13
  81. package/web/dist/live-worker.js +1 -1
  82. package/web/dist/assets/index-lMBPAedr.js +0 -17
  83. package/web/dist/assets/project-scope-context-wlB-Y0ii.js +0 -4
  84. package/web/dist/assets/reports-B_xpuTvK.js +0 -1
  85. package/web/dist/assets/useQuery-BHmKi9_o.js +0 -1
@@ -2,7 +2,7 @@ import type { Home } from '../home/home.ts';
2
2
  import type { z } from 'zod';
3
3
  import { type AutomationListQuery, type OnceStatus } from '../contract/index.js';
4
4
  import { automationCreateSchema, automationUpdateSchema } from '../contract/index.js';
5
- import { type HostDiscovery } from '../discovery/catalog.ts';
5
+ import { type HostDiscovery } from '../discovery/choices.ts';
6
6
  import type { RunStore } from '../runs/store.ts';
7
7
  import type { ForgeAvailability } from '../server/forge/index.ts';
8
8
  import type { RunManager } from '../workflows/run.ts';
@@ -2,7 +2,7 @@ import { nextOccurrence, ONCE_PAST_DUE_MESSAGE, onceInstant } from '../contract/
2
2
  import { SCHEDULED_TASK_NOTE } from '../contract/index.js';
3
3
  import { MODEL_DISCOVERY_RUNNERS } from '../contract/index.js';
4
4
  import { loadConfig } from '../config.js';
5
- import { missingModelChoices } from '../discovery/catalog.js';
5
+ import { missingModelChoices } from '../discovery/choices.js';
6
6
  import { githubBaselineState } from './github-baseline.js';
7
7
  import { SCHEDULE_LEASE_HELD_REASON, ScheduleRunner } from './schedule-runner.js';
8
8
  import { validateAutomationPrompt } from './task-template.js';
@@ -288,12 +288,11 @@ export declare function ciToolRoutes(capabilities: Map<string, Capability>): imp
288
288
  "/api/v1/tools/ask": {
289
289
  $post: {
290
290
  output: {
291
- ok: false;
292
- code: 'unavailable';
291
+ code: 'capability_revoked';
293
292
  message: string;
294
293
  };
295
294
  outputFormat: "json";
296
- status: import("hono/utils/http-status").ContentfulStatusCode;
295
+ status: 401;
297
296
  input: {
298
297
  json: {
299
298
  questions: {
@@ -311,11 +310,12 @@ export declare function ciToolRoutes(capabilities: Map<string, Capability>): imp
311
310
  };
312
311
  } | {
313
312
  output: {
314
- code: 'capability_revoked';
313
+ ok: false;
314
+ code: 'unavailable';
315
315
  message: string;
316
316
  };
317
317
  outputFormat: "json";
318
- status: 401;
318
+ status: import("hono/utils/http-status").ContentfulStatusCode;
319
319
  input: {
320
320
  json: {
321
321
  questions: {
@@ -383,12 +383,11 @@ export declare function ciToolRoutes(capabilities: Map<string, Capability>): imp
383
383
  "/api/v1/tools/cancel-wait": {
384
384
  $post: {
385
385
  output: {
386
- cancelled: false;
387
- code: 'unavailable';
386
+ code: 'capability_revoked';
388
387
  message: string;
389
388
  };
390
389
  outputFormat: "json";
391
- status: import("hono/utils/http-status").ContentfulStatusCode;
390
+ status: 401;
392
391
  input: {
393
392
  json: {
394
393
  wait_id: string;
@@ -396,11 +395,12 @@ export declare function ciToolRoutes(capabilities: Map<string, Capability>): imp
396
395
  };
397
396
  } | {
398
397
  output: {
399
- code: 'capability_revoked';
398
+ cancelled: false;
399
+ code: 'unavailable';
400
400
  message: string;
401
401
  };
402
402
  outputFormat: "json";
403
- status: 401;
403
+ status: import("hono/utils/http-status").ContentfulStatusCode;
404
404
  input: {
405
405
  json: {
406
406
  wait_id: string;
@@ -448,12 +448,11 @@ export declare function ciToolRoutes(capabilities: Map<string, Capability>): imp
448
448
  "/api/v1/tools/done": {
449
449
  $post: {
450
450
  output: {
451
- ok: false;
452
- code: 'unavailable';
451
+ code: 'capability_revoked';
453
452
  message: string;
454
453
  };
455
454
  outputFormat: "json";
456
- status: import("hono/utils/http-status").ContentfulStatusCode;
455
+ status: 401;
457
456
  input: {
458
457
  json: {
459
458
  summary?: string | undefined;
@@ -461,11 +460,12 @@ export declare function ciToolRoutes(capabilities: Map<string, Capability>): imp
461
460
  };
462
461
  } | {
463
462
  output: {
464
- code: 'capability_revoked';
463
+ ok: false;
464
+ code: 'unavailable';
465
465
  message: string;
466
466
  };
467
467
  outputFormat: "json";
468
- status: 401;
468
+ status: import("hono/utils/http-status").ContentfulStatusCode;
469
469
  input: {
470
470
  json: {
471
471
  summary?: string | undefined;
@@ -533,13 +533,11 @@ export declare function ciToolRoutes(capabilities: Map<string, Capability>): imp
533
533
  "/api/v1/tools/preview-stop": {
534
534
  $post: {
535
535
  output: {
536
- ok: boolean;
537
- code: "adopted" | "approval_required" | "headless" | "invalid_input" | "not_registered" | "port_held" | "port_in_use" | "preview_disabled" | "restarted" | "stopped" | "unavailable" | "worktree_missing";
536
+ code: 'capability_revoked';
538
537
  message: string;
539
- hint: string;
540
538
  };
541
539
  outputFormat: "json";
542
- status: import("hono/utils/http-status").ContentfulStatusCode;
540
+ status: 401;
543
541
  input: {
544
542
  json: {
545
543
  port: number;
@@ -548,11 +546,13 @@ export declare function ciToolRoutes(capabilities: Map<string, Capability>): imp
548
546
  };
549
547
  } | {
550
548
  output: {
551
- code: 'capability_revoked';
549
+ ok: boolean;
550
+ code: "adopted" | "approval_required" | "headless" | "invalid_input" | "not_registered" | "port_held" | "port_in_use" | "preview_disabled" | "restarted" | "stopped" | "unavailable" | "worktree_missing";
552
551
  message: string;
552
+ hint: string;
553
553
  };
554
554
  outputFormat: "json";
555
- status: 401;
555
+ status: import("hono/utils/http-status").ContentfulStatusCode;
556
556
  input: {
557
557
  json: {
558
558
  port: number;
@@ -565,13 +565,11 @@ export declare function ciToolRoutes(capabilities: Map<string, Capability>): imp
565
565
  "/api/v1/tools/preview-serve": {
566
566
  $post: {
567
567
  output: {
568
- ok: boolean;
569
- code: "cezar_port" | "cwd_outside_worktree" | "headless" | "invalid_input" | "port_held" | "preview_disabled" | "registered" | "replaced" | "too_many" | "unavailable" | "worktree_missing";
568
+ code: 'capability_revoked';
570
569
  message: string;
571
- hint: string;
572
570
  };
573
571
  outputFormat: "json";
574
- status: import("hono/utils/http-status").ContentfulStatusCode;
572
+ status: 401;
575
573
  input: {
576
574
  json: {
577
575
  command: string;
@@ -583,11 +581,13 @@ export declare function ciToolRoutes(capabilities: Map<string, Capability>): imp
583
581
  };
584
582
  } | {
585
583
  output: {
586
- code: 'capability_revoked';
584
+ ok: boolean;
585
+ code: "cezar_port" | "cwd_outside_worktree" | "headless" | "invalid_input" | "port_held" | "preview_disabled" | "registered" | "replaced" | "too_many" | "unavailable" | "worktree_missing";
587
586
  message: string;
587
+ hint: string;
588
588
  };
589
589
  outputFormat: "json";
590
- status: 401;
590
+ status: import("hono/utils/http-status").ContentfulStatusCode;
591
591
  input: {
592
592
  json: {
593
593
  command: string;
@@ -603,12 +603,11 @@ export declare function ciToolRoutes(capabilities: Map<string, Capability>): imp
603
603
  "/api/v1/tools/schedule-task": {
604
604
  $post: {
605
605
  output: {
606
- ok: false;
607
- code: import('../contract/index.js').ScheduledTaskRefusalCode;
606
+ code: 'capability_revoked';
608
607
  message: string;
609
608
  };
610
609
  outputFormat: "json";
611
- status: import("hono/utils/http-status").ContentfulStatusCode;
610
+ status: 401;
612
611
  input: {
613
612
  json: {
614
613
  at?: string | undefined;
@@ -625,11 +624,12 @@ export declare function ciToolRoutes(capabilities: Map<string, Capability>): imp
625
624
  };
626
625
  } | {
627
626
  output: {
628
- code: 'capability_revoked';
627
+ ok: false;
628
+ code: import('../contract/index.js').ScheduledTaskRefusalCode;
629
629
  message: string;
630
630
  };
631
631
  outputFormat: "json";
632
- status: 401;
632
+ status: import("hono/utils/http-status").ContentfulStatusCode;
633
633
  input: {
634
634
  json: {
635
635
  at?: string | undefined;
@@ -684,12 +684,11 @@ export declare function ciToolRoutes(capabilities: Map<string, Capability>): imp
684
684
  "/api/v1/tools/scheduled-tasks": {
685
685
  $post: {
686
686
  output: {
687
- ok: false;
688
- code: import('../contract/index.js').ScheduledTaskRefusalCode;
687
+ code: 'capability_revoked';
689
688
  message: string;
690
689
  };
691
690
  outputFormat: "json";
692
- status: import("hono/utils/http-status").ContentfulStatusCode;
691
+ status: 401;
693
692
  input: {
694
693
  json: {
695
694
  at?: string | undefined;
@@ -722,11 +721,12 @@ export declare function ciToolRoutes(capabilities: Map<string, Capability>): imp
722
721
  };
723
722
  } | {
724
723
  output: {
725
- code: 'capability_revoked';
724
+ ok: false;
725
+ code: import('../contract/index.js').ScheduledTaskRefusalCode;
726
726
  message: string;
727
727
  };
728
728
  outputFormat: "json";
729
- status: 401;
729
+ status: import("hono/utils/http-status").ContentfulStatusCode;
730
730
  input: {
731
731
  json: {
732
732
  at?: string | undefined;
@@ -248,10 +248,6 @@ export declare function invokeScheduleTaskTool(input: unknown): Promise<{
248
248
  }[];
249
249
  isError: boolean;
250
250
  details: {
251
- ok: false;
252
- code: "automations_off" | "conflict" | "invalid_request" | "not_found" | "unavailable";
253
- message: string;
254
- } | {
255
251
  ok: true;
256
252
  task: {
257
253
  id: string;
@@ -263,6 +259,10 @@ export declare function invokeScheduleTaskTool(input: unknown): Promise<{
263
259
  url?: string | undefined;
264
260
  };
265
261
  note: string;
262
+ } | {
263
+ ok: false;
264
+ code: "automations_off" | "conflict" | "invalid_request" | "not_found" | "unavailable";
265
+ message: string;
266
266
  };
267
267
  }>;
268
268
  export declare function invokeScheduledTasksTool(input: unknown): Promise<{
@@ -15,6 +15,15 @@ export declare const ONCE_MIN_LATEST_START_MINUTES = 10;
15
15
  export declare const ONCE_MAX_LATEST_START_MINUTES = 43200;
16
16
  /** The refusal of a one-time schedule whose time has passed: the server's 400 and the editor's field message. */
17
17
  export declare const ONCE_PAST_DUE_MESSAGE = "the due time has passed; choose a later time or use Run now";
18
+ /** Where a one-time schedule stands, derived by the server so clients never re-derive it. */
19
+ export declare const onceStatusSchema: z.ZodEnum<{
20
+ archived: "archived";
21
+ failed: "failed";
22
+ missed: "missed";
23
+ paused: "paused";
24
+ waiting: "waiting";
25
+ }>;
26
+ export type OnceStatus = z.infer<typeof onceStatusSchema>;
18
27
  export declare function unknownTimeZoneMessage(zone: string): string;
19
28
  export declare const automationScheduleSchema: z.ZodObject<{
20
29
  type: z.ZodEnum<{
@@ -1,4 +1,5 @@
1
1
  import { z } from 'zod';
2
+ export { onceStatusSchema, type OnceStatus } from './automation-schedule.ts';
2
3
  /**
3
4
  * Closed automation wire schemas. Storage schemas preserve unknown keys separately. Parity
4
5
  * checks compare named response fields in both directions; open storage catchalls limit
@@ -124,15 +125,6 @@ export declare const automationArchiveSchema: z.ZodObject<{
124
125
  }>>;
125
126
  }, z.core.$strip>;
126
127
  export type AutomationArchive = z.infer<typeof automationArchiveSchema>;
127
- /** Where a one-time schedule stands, derived by the server so clients never re-derive it. */
128
- export declare const onceStatusSchema: z.ZodEnum<{
129
- archived: "archived";
130
- failed: "failed";
131
- missed: "missed";
132
- paused: "paused";
133
- waiting: "waiting";
134
- }>;
135
- export type OnceStatus = z.infer<typeof onceStatusSchema>;
136
128
  /** One stored automation, as every route that answers a single definition serves it. */
137
129
  export declare const automationDefinitionSchema: z.ZodObject<{
138
130
  id: z.ZodString;