@hearsay-tools/squawk 0.18.0-pr4337.8439 → 0.18.0-pr4337.8442

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 (87) hide show
  1. package/dist/ci-wait/controller.d.ts +7 -7
  2. package/dist/contract/index.js +5 -2
  3. package/dist/contract/live-coordination.d.ts +30 -12
  4. package/dist/contract/live.d.ts +29 -0
  5. package/dist/server/activity-routes.d.ts +23 -23
  6. package/dist/server/automations-routes.d.ts +150 -150
  7. package/dist/server/live-routes.d.ts +7 -0
  8. package/dist/server/live-routes.js +1 -0
  9. package/dist/server/live-routes.js.map +1 -1
  10. package/dist/server/models-routes.d.ts +12 -12
  11. package/dist/server/project-settings-routes.js +1 -0
  12. package/dist/server/project-settings-routes.js.map +1 -1
  13. package/dist/server/providers-routes.d.ts +57 -57
  14. package/dist/server/repo-routes.d.ts +21 -21
  15. package/dist/server/reports-api.d.ts +2 -2
  16. package/dist/server/run-event-feed.d.ts +7 -1
  17. package/dist/server/run-event-feed.js +58 -9
  18. package/dist/server/run-event-feed.js.map +1 -1
  19. package/dist/server/runner-install-routes.d.ts +10 -10
  20. package/dist/server/runs-routes.d.ts +303 -303
  21. package/dist/server/server.d.ts +7 -0
  22. package/dist/server/workspace-live-routes.d.ts +7 -0
  23. package/dist/server/workspace-routes.d.ts +84 -84
  24. package/package.json +4 -4
  25. package/web/dist/assets/{accounts-section-DPb768q9.js → accounts-section-DbBWy1h-.js} +1 -1
  26. package/web/dist/assets/{activity-motion-D3CzGjrR.js → activity-motion--OtBLAG2.js} +1 -1
  27. package/web/dist/assets/{activity-route-DFJlsU13.js → activity-route-DhPIkMRQ.js} +1 -1
  28. package/web/dist/assets/{agent-config-section-2esq_SCK.js → agent-config-section-DmHFEfLn.js} +1 -1
  29. package/web/dist/assets/{agent-defaults-section-DykQGFoV.js → agent-defaults-section-BSM4exrC.js} +1 -1
  30. package/web/dist/assets/{appearance-CEhpCQZS.js → appearance-DDZh2js5.js} +1 -1
  31. package/web/dist/assets/{archive-on-merge-field-BlGo3o7a.js → archive-on-merge-field-BQXdK50c.js} +1 -1
  32. package/web/dist/assets/attention-DShuKoMT.js +1 -0
  33. package/web/dist/assets/{automation-format-CUP262Tk.js → automation-format-DB34jUyF.js} +1 -1
  34. package/web/dist/assets/{automations-route-C6e7440u.js → automations-route-5SrHa_fk.js} +1 -1
  35. package/web/dist/assets/{cez-idle-CQtDz5jk.js → cez-idle-CdswdDRd.js} +1 -1
  36. package/web/dist/assets/{commit-diff-panel-CloSSaTz.js → commit-diff-panel-DAblJOWW.js} +1 -1
  37. package/web/dist/assets/{diff-DVDzDVOV.js → diff-D6dgppr7.js} +2 -2
  38. package/web/dist/assets/{diff-view-isM51Pgu.js → diff-view-DA0QN32e.js} +1 -1
  39. package/web/dist/assets/{file-preview-BZA9e981.js → file-preview-BqpyguUL.js} +1 -1
  40. package/web/dist/assets/{folder-browser-CffyHz8w.js → folder-browser-Bv_vTEU3.js} +1 -1
  41. package/web/dist/assets/{git-toolbar-DHAavjba.js → git-toolbar-CTWmcYLa.js} +1 -1
  42. package/web/dist/assets/{github-MN8flcF0.js → github-B-xnHpoW.js} +1 -1
  43. package/web/dist/assets/{global-activity-route-CAXyZ8LF.js → global-activity-route-gYuCqamk.js} +1 -1
  44. package/web/dist/assets/{index-CHIFhfha.js → index-DCIRYVqB.js} +5 -5
  45. package/web/dist/assets/{label-6PgIe3Ny.js → label-DRrVct19.js} +1 -1
  46. package/web/dist/assets/{live-protocol-DteqtbyN.js → live-protocol-DMhTnCmf.js} +1 -1
  47. package/web/dist/assets/{live-reads-BxjlQXfN.js → live-reads-BuThrTt7.js} +1 -1
  48. package/web/dist/assets/{markdown-DhdLkyGx.js → markdown-d2-nofJ3.js} +1 -1
  49. package/web/dist/assets/{notifications-section-Yiyd4TEk.js → notifications-section-BNrYh6dQ.js} +1 -1
  50. package/web/dist/assets/{open-in-menu-AZMtej8C.js → open-in-menu-DpJFqH3v.js} +1 -1
  51. package/web/dist/assets/{preview-pane-connected-BnNucXbg.js → preview-pane-connected-BwTG5ZIm.js} +1 -1
  52. package/web/dist/assets/{project-location-DzOgHfcA.js → project-location-DNdux3-n.js} +1 -1
  53. package/web/dist/assets/{project-router-CDPfL2Jz.js → project-router-GVIIqwXL.js} +1 -1
  54. package/web/dist/assets/{project-scope-context-D9axDY18.js → project-scope-context-blU6DPq1.js} +1 -1
  55. package/web/dist/assets/{projects-section-CYnMlFyZ.js → projects-section-DfZ6ledr.js} +1 -1
  56. package/web/dist/assets/{prompt-templates-section-BaaI89Ej.js → prompt-templates-section-C2_9c8s-.js} +1 -1
  57. package/web/dist/assets/{queries-DzwCG927.js → queries-CihFAzQA.js} +1 -1
  58. package/web/dist/assets/{reference-chip-BnIoiMgY.js → reference-chip-DDmY2Wa2.js} +1 -1
  59. package/web/dist/assets/{remote-settings-notice-Drbpb7K4.js → remote-settings-notice-BEn0VAfk.js} +1 -1
  60. package/web/dist/assets/{repo-git-UR__WAGI.js → repo-git-kS-kyHgg.js} +1 -1
  61. package/web/dist/assets/{report-reader-DydKaDxP.js → report-reader-BcVFsRsD.js} +1 -1
  62. package/web/dist/assets/{reports-FE9fPBLK.js → reports-DqYF_Hlr.js} +1 -1
  63. package/web/dist/assets/{resources-section-BAz7yc3V.js → resources-section-B2o8ytO4.js} +1 -1
  64. package/web/dist/assets/{run-header-DsyPfNlS.js → run-header-BstZeaqM.js} +1 -1
  65. package/web/dist/assets/{settings-agent-picker-i4wCYEex.js → settings-agent-picker-rNyNJEU2.js} +1 -1
  66. package/web/dist/assets/{settings-shell-C1RbQ--s.js → settings-shell-BAmJvzuG.js} +1 -1
  67. package/web/dist/assets/{sidebar-section-CdvgsziI.js → sidebar-section-BTf_4d6s.js} +1 -1
  68. package/web/dist/assets/{skills-Cx1c72fB.js → skills-Cbg8WPDT.js} +1 -1
  69. package/web/dist/assets/{tab-link-BaKE6KnE.js → tab-link-Bwm_Gn01.js} +1 -1
  70. package/web/dist/assets/{task-changes-CJCU26Rn.js → task-changes-Ck289AHW.js} +1 -1
  71. package/web/dist/assets/{task-commits-BvDHw2z3.js → task-commits-Ze6RgzC8.js} +1 -1
  72. package/web/dist/assets/{task-files-BtEb73_A.js → task-files-D28yguBF.js} +1 -1
  73. package/web/dist/assets/{task-github-item-DguvLtyn.js → task-github-item-BvS_N-Rv.js} +1 -1
  74. package/web/dist/assets/{task-groups-DoiPFEfM.js → task-groups-AQ1zMByj.js} +1 -1
  75. package/web/dist/assets/{task-thread-DiiErUqw.js → task-thread-DhHHmYnk.js} +1 -1
  76. package/web/dist/assets/{tasks-table-CmESFng9.js → tasks-table-BGoadobM.js} +1 -1
  77. package/web/dist/assets/{thread-state-XrQOGOYN.js → thread-state-CNAlLytB.js} +1 -1
  78. package/web/dist/assets/{use-hand-to-agent-state-CDqXR3F2.js → use-hand-to-agent-state-B8mS8z45.js} +1 -1
  79. package/web/dist/assets/{useInfiniteQuery-GZp9laKm.js → useInfiniteQuery-CS_BO-SK.js} +1 -1
  80. package/web/dist/assets/useQuery-Ys0_fBIg.js +1 -0
  81. package/web/dist/assets/{workflows-C8Wu6BrK.js → workflows-Ck02MIW2.js} +1 -1
  82. package/web/dist/assets/{workspace-tools-DG99Pw_m.js → workspace-tools-KELtYCoO.js} +1 -1
  83. package/web/dist/assets/{worktrees-section-BtDBsA-d.js → worktrees-section-DhPBqflI.js} +1 -1
  84. package/web/dist/index.html +16 -16
  85. package/web/dist/live-worker.js +2 -2
  86. package/web/dist/assets/attention-CvHM4cjG.js +0 -1
  87. package/web/dist/assets/useQuery-CzVHT8UE.js +0 -1
@@ -121,12 +121,9 @@ export declare function ciToolRoutes(capabilities: Map<string, Capability>): imp
121
121
  } & {
122
122
  "/api/v1/tools/:name": {
123
123
  $post: {
124
- output: {
125
- code: string;
126
- message: string;
127
- };
124
+ output: never;
128
125
  outputFormat: "json";
129
- status: 401;
126
+ status: import("hono/utils/http-status").ContentfulStatusCode;
130
127
  input: {
131
128
  json: unknown;
132
129
  } & {
@@ -149,9 +146,12 @@ export declare function ciToolRoutes(capabilities: Map<string, Capability>): imp
149
146
  };
150
147
  };
151
148
  } | {
152
- output: never;
149
+ output: {
150
+ code: string;
151
+ message: string;
152
+ };
153
153
  outputFormat: "json";
154
- status: import("hono/utils/http-status").ContentfulStatusCode;
154
+ status: 401;
155
155
  input: {
156
156
  json: unknown;
157
157
  } & {
@@ -5125,6 +5125,7 @@ var liveRunErrorSchema = identity.extend({
5125
5125
  var liveRunBatchSchema = identity.extend({
5126
5126
  type: z38.literal("batch"),
5127
5127
  events: z38.array(runHistoryEventSchema).max(LIVE_EVENT_LIMIT),
5128
+ snapshots: z38.array(runHistoryEventSchema).max(LIVE_EVENT_LIMIT).optional(),
5128
5129
  cursor: runHistoryCursorSchema,
5129
5130
  afterSeq: z38.number().int().nonnegative(),
5130
5131
  hasMore: z38.boolean()
@@ -5138,6 +5139,7 @@ var liveRunFrameSchema = z38.union([
5138
5139
  z38.object({ type: z38.literal("ready"), generation: z38.string() }),
5139
5140
  z38.object({ type: z38.literal("ping") }),
5140
5141
  identity.extend({ type: z38.literal("event"), name: z38.enum(["run-event", "ui-event"]), event: runHistoryEventSchema }),
5142
+ identity.extend({ type: z38.literal("snapshot"), name: z38.literal("ui-event"), event: runHistoryEventSchema }),
5141
5143
  liveRunErrorSchema
5142
5144
  ]);
5143
5145
 
@@ -5289,8 +5291,8 @@ var activityQuerySchema = z39.object({
5289
5291
 
5290
5292
  // ../contract/src/live-coordination.ts
5291
5293
  import { z as z40 } from "zod";
5292
- var LIVE_PROTOCOL = 3;
5293
- var LIVE_WORKER_NAME = "cezar-live-v3";
5294
+ var LIVE_PROTOCOL = 4;
5295
+ var LIVE_WORKER_NAME = "cezar-live-v4";
5294
5296
  var LEASE_MS = 15e3;
5295
5297
  var RENEW_MS = 5e3;
5296
5298
  function allowedLiveRead(path) {
@@ -5316,6 +5318,7 @@ var ownerInputSchema = z40.discriminatedUnion("type", [
5316
5318
  workspaceReady: z40.literal(true).optional()
5317
5319
  }).refine((value) => new Set(value.entries.map((e) => e.id)).size === value.entries.length),
5318
5320
  envelope.extend({ type: z40.literal("ack"), id: z40.string(), seq: z40.number().int().nonnegative() }),
5321
+ envelope.extend({ type: z40.literal("ack-snapshot"), id: z40.string() }),
5319
5322
  envelope.extend({ type: z40.literal("refresh"), id: z40.string() })
5320
5323
  ]);
5321
5324
  var wireFrameSchema = z40.object({ event: z40.string(), data: z40.string(), id: z40.string() });
@@ -4,9 +4,10 @@ import { liveRunFrameSchema } from './live.ts';
4
4
  * the workspace lane reads `?runs=summary` (hearsay-tools/cezarion#2730), so an old worker that
5
5
  * still streams full records never feeds a new document. Version 3: the worker sends a late or
6
6
  * rejoining workspace subscriber the stream's `ready`, and the runs index applies only frames of
7
- * a known generation (hearsay-tools/cezarion#2729); a version-2 worker sends no such `ready`. */
8
- export declare const LIVE_PROTOCOL = 3;
9
- export declare const LIVE_WORKER_NAME = "cezar-live-v3";
7
+ * a known generation (hearsay-tools/cezarion#2729); a version-2 worker sends no such `ready`.
8
+ * Version 4: snapshot frames and snapshot acks preserve cursors and bound subscriber buffers. */
9
+ export declare const LIVE_PROTOCOL = 4;
10
+ export declare const LIVE_WORKER_NAME = "cezar-live-v4";
10
11
  export declare const LEASE_MS = 15000;
11
12
  export declare const RENEW_MS = 5000;
12
13
  /** Only periodic public cockpit GET families; never arbitrary URLs or mutation execution. */
@@ -48,7 +49,7 @@ export declare const liveEntrySchema: z.ZodObject<{
48
49
  }, z.core.$strip>], "kind">;
49
50
  }, z.core.$strip>;
50
51
  export declare const ownerInputSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
51
- version: z.ZodLiteral<3>;
52
+ version: z.ZodLiteral<4>;
52
53
  documentId: z.ZodString;
53
54
  epoch: z.ZodNumber;
54
55
  type: z.ZodLiteral<"sync">;
@@ -73,14 +74,20 @@ export declare const ownerInputSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
73
74
  }, z.core.$strip>>;
74
75
  workspaceReady: z.ZodOptional<z.ZodLiteral<true>>;
75
76
  }, z.core.$strip>, z.ZodObject<{
76
- version: z.ZodLiteral<3>;
77
+ version: z.ZodLiteral<4>;
77
78
  documentId: z.ZodString;
78
79
  epoch: z.ZodNumber;
79
80
  type: z.ZodLiteral<"ack">;
80
81
  id: z.ZodString;
81
82
  seq: z.ZodNumber;
82
83
  }, z.core.$strip>, z.ZodObject<{
83
- version: z.ZodLiteral<3>;
84
+ version: z.ZodLiteral<4>;
85
+ documentId: z.ZodString;
86
+ epoch: z.ZodNumber;
87
+ type: z.ZodLiteral<"ack-snapshot">;
88
+ id: z.ZodString;
89
+ }, z.core.$strip>, z.ZodObject<{
90
+ version: z.ZodLiteral<4>;
84
91
  documentId: z.ZodString;
85
92
  epoch: z.ZodNumber;
86
93
  type: z.ZodLiteral<"refresh">;
@@ -94,19 +101,19 @@ export declare const wireFrameSchema: z.ZodObject<{
94
101
  }, z.core.$strip>;
95
102
  export declare const ownerOutputSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
96
103
  type: z.ZodLiteral<"unavailable">;
97
- version: z.ZodLiteral<3>;
104
+ version: z.ZodLiteral<4>;
98
105
  epoch: z.ZodNumber;
99
106
  reason: z.ZodString;
100
107
  }, z.core.$strip>, z.ZodObject<{
101
108
  type: z.ZodLiteral<"hello">;
102
- version: z.ZodLiteral<3>;
109
+ version: z.ZodLiteral<4>;
103
110
  }, z.core.$strip>, z.ZodObject<{
104
111
  type: z.ZodLiteral<"alive">;
105
- version: z.ZodLiteral<3>;
112
+ version: z.ZodLiteral<4>;
106
113
  epoch: z.ZodNumber;
107
114
  }, z.core.$strip>, z.ZodObject<{
108
115
  type: z.ZodLiteral<"frame">;
109
- version: z.ZodLiteral<3>;
116
+ version: z.ZodLiteral<4>;
110
117
  epoch: z.ZodNumber;
111
118
  id: z.ZodString;
112
119
  frame: z.ZodUnion<readonly [z.ZodObject<{
@@ -132,6 +139,17 @@ export declare const ownerOutputSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
132
139
  stepId: z.ZodOptional<z.ZodString>;
133
140
  type: z.ZodString;
134
141
  }, z.core.$catchall<z.ZodAny>>;
142
+ }, z.core.$strip>, z.ZodObject<{
143
+ projectId: z.ZodString;
144
+ runId: z.ZodString;
145
+ type: z.ZodLiteral<"snapshot">;
146
+ name: z.ZodLiteral<"ui-event">;
147
+ event: z.ZodObject<{
148
+ seq: z.ZodNumber;
149
+ ts: z.ZodString;
150
+ stepId: z.ZodOptional<z.ZodString>;
151
+ type: z.ZodString;
152
+ }, z.core.$catchall<z.ZodAny>>;
135
153
  }, z.core.$strip>, z.ZodObject<{
136
154
  projectId: z.ZodString;
137
155
  runId: z.ZodString;
@@ -144,14 +162,14 @@ export declare const ownerOutputSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
144
162
  }, z.core.$strip>]>]>;
145
163
  }, z.core.$strip>, z.ZodObject<{
146
164
  type: z.ZodLiteral<"value">;
147
- version: z.ZodLiteral<3>;
165
+ version: z.ZodLiteral<4>;
148
166
  epoch: z.ZodNumber;
149
167
  id: z.ZodString;
150
168
  value: z.ZodUnknown;
151
169
  error: z.ZodOptional<z.ZodString>;
152
170
  }, z.core.$strip>, z.ZodObject<{
153
171
  type: z.ZodLiteral<"reset">;
154
- version: z.ZodLiteral<3>;
172
+ version: z.ZodLiteral<4>;
155
173
  epoch: z.ZodNumber;
156
174
  id: z.ZodString;
157
175
  reason: z.ZodString;
@@ -35,6 +35,12 @@ export declare const liveRunBatchSchema: z.ZodObject<{
35
35
  stepId: z.ZodOptional<z.ZodString>;
36
36
  type: z.ZodString;
37
37
  }, z.core.$catchall<z.ZodAny>>>;
38
+ snapshots: z.ZodOptional<z.ZodArray<z.ZodObject<{
39
+ seq: z.ZodNumber;
40
+ ts: z.ZodString;
41
+ stepId: z.ZodOptional<z.ZodString>;
42
+ type: z.ZodString;
43
+ }, z.core.$catchall<z.ZodAny>>>>;
38
44
  cursor: z.ZodString;
39
45
  afterSeq: z.ZodNumber;
40
46
  hasMore: z.ZodBoolean;
@@ -50,6 +56,12 @@ export declare const liveRunBatchResultSchema: z.ZodUnion<readonly [z.ZodObject<
50
56
  stepId: z.ZodOptional<z.ZodString>;
51
57
  type: z.ZodString;
52
58
  }, z.core.$catchall<z.ZodAny>>>;
59
+ snapshots: z.ZodOptional<z.ZodArray<z.ZodObject<{
60
+ seq: z.ZodNumber;
61
+ ts: z.ZodString;
62
+ stepId: z.ZodOptional<z.ZodString>;
63
+ type: z.ZodString;
64
+ }, z.core.$catchall<z.ZodAny>>>>;
53
65
  cursor: z.ZodString;
54
66
  afterSeq: z.ZodNumber;
55
67
  hasMore: z.ZodBoolean;
@@ -76,6 +88,12 @@ export declare const liveRunBatchResponseSchema: z.ZodObject<{
76
88
  stepId: z.ZodOptional<z.ZodString>;
77
89
  type: z.ZodString;
78
90
  }, z.core.$catchall<z.ZodAny>>>;
91
+ snapshots: z.ZodOptional<z.ZodArray<z.ZodObject<{
92
+ seq: z.ZodNumber;
93
+ ts: z.ZodString;
94
+ stepId: z.ZodOptional<z.ZodString>;
95
+ type: z.ZodString;
96
+ }, z.core.$catchall<z.ZodAny>>>>;
79
97
  cursor: z.ZodString;
80
98
  afterSeq: z.ZodNumber;
81
99
  hasMore: z.ZodBoolean;
@@ -110,6 +128,17 @@ export declare const liveRunFrameSchema: z.ZodUnion<readonly [z.ZodObject<{
110
128
  stepId: z.ZodOptional<z.ZodString>;
111
129
  type: z.ZodString;
112
130
  }, z.core.$catchall<z.ZodAny>>;
131
+ }, z.core.$strip>, z.ZodObject<{
132
+ projectId: z.ZodString;
133
+ runId: z.ZodString;
134
+ type: z.ZodLiteral<"snapshot">;
135
+ name: z.ZodLiteral<"ui-event">;
136
+ event: z.ZodObject<{
137
+ seq: z.ZodNumber;
138
+ ts: z.ZodString;
139
+ stepId: z.ZodOptional<z.ZodString>;
140
+ type: z.ZodString;
141
+ }, z.core.$catchall<z.ZodAny>>;
113
142
  }, z.core.$strip>, z.ZodObject<{
114
143
  projectId: z.ZodString;
115
144
  runId: z.ZodString;
@@ -58,29 +58,6 @@ export declare function ciProgressPlugs(): {
58
58
  export declare function createActivityRoutes(routeDeps: ActivityRouteDeps): import("hono/hono-base").HonoBase<import("hono/types").BlankEnv, {
59
59
  "/workspace/activity": {
60
60
  $get: {
61
- output: {
62
- error: string;
63
- code?: "invalid_input" | undefined;
64
- };
65
- outputFormat: "json";
66
- status: 400;
67
- input: {
68
- query: {
69
- project?: string | undefined;
70
- };
71
- };
72
- } | {
73
- output: {
74
- error: string;
75
- };
76
- outputFormat: "json";
77
- status: 404 | 409 | 503;
78
- input: {
79
- query: {
80
- project?: string | undefined;
81
- };
82
- };
83
- } | {
84
61
  output: {
85
62
  generatedAt: string;
86
63
  projects: {
@@ -327,6 +304,29 @@ export declare function createActivityRoutes(routeDeps: ActivityRouteDeps): impo
327
304
  project?: string | undefined;
328
305
  };
329
306
  };
307
+ } | {
308
+ output: {
309
+ error: string;
310
+ code?: "invalid_input" | undefined;
311
+ };
312
+ outputFormat: "json";
313
+ status: 400;
314
+ input: {
315
+ query: {
316
+ project?: string | undefined;
317
+ };
318
+ };
319
+ } | {
320
+ output: {
321
+ error: string;
322
+ };
323
+ outputFormat: "json";
324
+ status: 404 | 409 | 503;
325
+ input: {
326
+ query: {
327
+ project?: string | undefined;
328
+ };
329
+ };
330
330
  };
331
331
  };
332
332
  }, "/", "/workspace/activity">;