@hearsay-tools/squawk 0.18.0-pr3943.7448 → 0.18.0-pr3946.7451

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 (33) hide show
  1. package/dist/contract/automations.d.ts +1 -2
  2. package/dist/contract/index.js +2 -2
  3. package/dist/delegation/transport.d.ts +65 -65
  4. package/dist/server/activity-routes.d.ts +23 -23
  5. package/dist/server/reports-api.d.ts +2 -2
  6. package/dist/server/server.d.ts +58 -58
  7. package/package.json +4 -4
  8. package/web/dist/assets/{activity-motion-o9t7R6w0.js → activity-motion-dNVCOgIS.js} +1 -1
  9. package/web/dist/assets/{activity-route-DFIP-vbS.js → activity-route-DMnwyl9c.js} +1 -1
  10. package/web/dist/assets/{commit-diff-panel-DLHbzd-I.js → commit-diff-panel-0YMWMSS5.js} +1 -1
  11. package/web/dist/assets/{diff-DW6zX5VO.js → diff-uoV05LOo.js} +2 -2
  12. package/web/dist/assets/{diff-view-B_vAaIni.js → diff-view-DsgNtCun.js} +1 -1
  13. package/web/dist/assets/{file-preview-xNYoqHe9.js → file-preview-lbIox3_r.js} +1 -1
  14. package/web/dist/assets/{git-toolbar-BoSRYjTp.js → git-toolbar-BKPdSdFU.js} +1 -1
  15. package/web/dist/assets/{github-zOTpV02k.js → github-CKFgh3_h.js} +1 -1
  16. package/web/dist/assets/{global-activity-route-BhcZDouq.js → global-activity-route-Dn7DpFx9.js} +1 -1
  17. package/web/dist/assets/{index-CWNdWkBE.js → index-Du3iOaSl.js} +3 -3
  18. package/web/dist/assets/{markdown-Ck8p1gVn.js → markdown-4X0eZfcY.js} +1 -1
  19. package/web/dist/assets/{preview-pane-connected-BvY7mK_c.js → preview-pane-connected-Bglr5RzA.js} +1 -1
  20. package/web/dist/assets/{repo-git-CEEZ_nZX.js → repo-git-PioGdOOQ.js} +1 -1
  21. package/web/dist/assets/{report-reader-Dmgy-hhv.js → report-reader-CoWKOnD5.js} +1 -1
  22. package/web/dist/assets/{reports-COAotabm.js → reports-CDR_xSv6.js} +1 -1
  23. package/web/dist/assets/{run-header-B8xmhI15.js → run-header--v3zgN-D.js} +1 -1
  24. package/web/dist/assets/{skills-BwM713T1.js → skills-CMCb5oGu.js} +1 -1
  25. package/web/dist/assets/{task-changes-0j1ulBxe.js → task-changes-gdJm6bLV.js} +1 -1
  26. package/web/dist/assets/{task-commits-Dvx1tSjo.js → task-commits-Ddrh4yVp.js} +1 -1
  27. package/web/dist/assets/{task-files-DJgWkj06.js → task-files-B3GsdzeL.js} +1 -1
  28. package/web/dist/assets/{task-github-item-B7GdPdvU.js → task-github-item-DT3qM81J.js} +1 -1
  29. package/web/dist/assets/{task-thread-_qloB2zP.js → task-thread-Co28WXQc.js} +1 -1
  30. package/web/dist/assets/{thread-state-Dduv2dZP.js → thread-state-Rg1AjAMm.js} +1 -1
  31. package/web/dist/assets/{use-hand-to-agent-state-B29K-wGw.js → use-hand-to-agent-state-BuuvdaEy.js} +1 -1
  32. package/web/dist/assets/{workflows-u2-nGsg9.js → workflows-BROu_Zz4.js} +1 -1
  33. package/web/dist/index.html +1 -1
@@ -102,8 +102,7 @@ export declare const automationTaskSchema: z.ZodObject<{
102
102
  systemPrompt: z.ZodOptional<z.ZodString>;
103
103
  }, z.core.$strip>;
104
104
  export type AutomationTask = z.infer<typeof automationTaskSchema>;
105
- /** Keep only the keys a write request accepts. A stored task may carry retired keys such as
106
- * `variants` or `generateFollowups`; never apply to caller input. */
105
+ /** Remove a saved-only field before building a write request; never apply to caller input. */
107
106
  export declare function writableAutomationTask<T extends object>(task: T): Omit<T, 'variants'>;
108
107
  /**
109
108
  * A one-time schedule's archive record (hearsay-tools/cezarion#1465): written after its task
@@ -4336,9 +4336,9 @@ var automationTaskSchema = createRunInputBaseSchema.omit({ task: true, images: t
4336
4336
  variants: z29.union([z29.literal(1), z29.literal(2), z29.literal(3)]).optional(),
4337
4337
  systemPrompt: z29.string().optional()
4338
4338
  });
4339
- var WRITABLE_TASK_KEYS = new Set(Object.keys(automationTaskSchema.shape).filter((key) => key !== "variants"));
4340
4339
  function writableAutomationTask(task) {
4341
- return Object.fromEntries(Object.entries(task).filter(([key]) => WRITABLE_TASK_KEYS.has(key)));
4340
+ const { variants: _variants, ...writable } = task;
4341
+ return writable;
4342
4342
  }
4343
4343
  var automationArchiveSchema = z29.object({
4344
4344
  at: z29.string(),
@@ -2,6 +2,18 @@ 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
+ } | {
5
17
  output: {
6
18
  workers: {
7
19
  workerId: string;
@@ -48,18 +60,6 @@ export declare function createDelegationApp(routes: DelegationRoutes): import("h
48
60
  offset?: string | undefined;
49
61
  };
50
62
  };
51
- } | {
52
- output: {
53
- error: string;
54
- code?: "invalid_input" | undefined;
55
- };
56
- outputFormat: "json";
57
- status: 400;
58
- input: {
59
- query: {
60
- offset?: string | undefined;
61
- };
62
- };
63
63
  };
64
64
  };
65
65
  } & {
@@ -598,6 +598,18 @@ export declare function createDelegationApp(routes: DelegationRoutes): import("h
598
598
  } & {
599
599
  "/:workerId": {
600
600
  $get: {
601
+ output: {
602
+ error: string;
603
+ code?: "invalid_input" | undefined;
604
+ };
605
+ outputFormat: "json";
606
+ status: 400;
607
+ input: {
608
+ param: {
609
+ workerId: string;
610
+ };
611
+ };
612
+ } | {
601
613
  output: {
602
614
  workerId: string;
603
615
  settled: boolean;
@@ -715,7 +727,11 @@ export declare function createDelegationApp(routes: DelegationRoutes): import("h
715
727
  workerId: string;
716
728
  };
717
729
  };
718
- } | {
730
+ };
731
+ };
732
+ } & {
733
+ "/:workerId/collect": {
734
+ $post: {
719
735
  output: {
720
736
  error: string;
721
737
  code?: "invalid_input" | undefined;
@@ -726,12 +742,10 @@ export declare function createDelegationApp(routes: DelegationRoutes): import("h
726
742
  param: {
727
743
  workerId: string;
728
744
  };
745
+ } & {
746
+ json: Record<string, never>;
729
747
  };
730
- };
731
- };
732
- } & {
733
- "/:workerId/collect": {
734
- $post: {
748
+ } | {
735
749
  output: {
736
750
  workerId: string;
737
751
  parentRunId: string;
@@ -854,7 +868,11 @@ export declare function createDelegationApp(routes: DelegationRoutes): import("h
854
868
  } & {
855
869
  json: Record<string, never>;
856
870
  };
857
- } | {
871
+ };
872
+ };
873
+ } & {
874
+ "/:workerId/steer": {
875
+ $post: {
858
876
  output: {
859
877
  error: string;
860
878
  code?: "invalid_input" | undefined;
@@ -866,13 +884,11 @@ export declare function createDelegationApp(routes: DelegationRoutes): import("h
866
884
  workerId: string;
867
885
  };
868
886
  } & {
869
- json: Record<string, never>;
887
+ json: {
888
+ text: string;
889
+ };
870
890
  };
871
- };
872
- };
873
- } & {
874
- "/:workerId/steer": {
875
- $post: {
891
+ } | {
876
892
  output: {
877
893
  workerId: string;
878
894
  state: "delivered" | "queued";
@@ -888,7 +904,11 @@ export declare function createDelegationApp(routes: DelegationRoutes): import("h
888
904
  text: string;
889
905
  };
890
906
  };
891
- } | {
907
+ };
908
+ };
909
+ } & {
910
+ "/:workerId/stop": {
911
+ $post: {
892
912
  output: {
893
913
  error: string;
894
914
  code?: "invalid_input" | undefined;
@@ -900,15 +920,9 @@ export declare function createDelegationApp(routes: DelegationRoutes): import("h
900
920
  workerId: string;
901
921
  };
902
922
  } & {
903
- json: {
904
- text: string;
905
- };
923
+ json: Record<string, never>;
906
924
  };
907
- };
908
- };
909
- } & {
910
- "/:workerId/stop": {
911
- $post: {
925
+ } | {
912
926
  output: {
913
927
  workerId: string;
914
928
  state: "stopping" | "terminated";
@@ -922,7 +936,11 @@ export declare function createDelegationApp(routes: DelegationRoutes): import("h
922
936
  } & {
923
937
  json: Record<string, never>;
924
938
  };
925
- } | {
939
+ };
940
+ };
941
+ } & {
942
+ "/:workerId/destroy": {
943
+ $post: {
926
944
  output: {
927
945
  error: string;
928
946
  code?: "invalid_input" | undefined;
@@ -934,13 +952,11 @@ export declare function createDelegationApp(routes: DelegationRoutes): import("h
934
952
  workerId: string;
935
953
  };
936
954
  } & {
937
- json: Record<string, never>;
955
+ json: {
956
+ discardWork?: true | undefined;
957
+ };
938
958
  };
939
- };
940
- };
941
- } & {
942
- "/:workerId/destroy": {
943
- $post: {
959
+ } | {
944
960
  output: {
945
961
  workerId: string;
946
962
  state: "complete" | "incomplete";
@@ -969,22 +985,6 @@ export declare function createDelegationApp(routes: DelegationRoutes): import("h
969
985
  discardWork?: true | undefined;
970
986
  };
971
987
  };
972
- } | {
973
- output: {
974
- error: string;
975
- code?: "invalid_input" | undefined;
976
- };
977
- outputFormat: "json";
978
- status: 400;
979
- input: {
980
- param: {
981
- workerId: string;
982
- };
983
- } & {
984
- json: {
985
- discardWork?: true | undefined;
986
- };
987
- };
988
988
  } | {
989
989
  output: {
990
990
  workerId: string;
@@ -1020,13 +1020,11 @@ export declare function createDelegationApp(routes: DelegationRoutes): import("h
1020
1020
  "/:workerId/diff": {
1021
1021
  $get: {
1022
1022
  output: {
1023
- workerId: string;
1024
- baselineSha: string;
1025
- diff: string;
1026
- truncated: boolean;
1023
+ error: string;
1024
+ code?: "invalid_input" | undefined;
1027
1025
  };
1028
1026
  outputFormat: "json";
1029
- status: 200;
1027
+ status: 400;
1030
1028
  input: {
1031
1029
  param: {
1032
1030
  workerId: string;
@@ -1034,11 +1032,13 @@ export declare function createDelegationApp(routes: DelegationRoutes): import("h
1034
1032
  };
1035
1033
  } | {
1036
1034
  output: {
1037
- error: string;
1038
- code?: "invalid_input" | undefined;
1035
+ workerId: string;
1036
+ baselineSha: string;
1037
+ diff: string;
1038
+ truncated: boolean;
1039
1039
  };
1040
1040
  outputFormat: "json";
1041
- status: 400;
1041
+ status: 200;
1042
1042
  input: {
1043
1043
  param: {
1044
1044
  workerId: string;
@@ -59,6 +59,29 @@ export declare function ciProgressPlugs(demand: ActivityDemand): {
59
59
  export declare function createActivityRoutes(routeDeps: ActivityRouteDeps): import("hono/hono-base").HonoBase<import("hono/types").BlankEnv, {
60
60
  "/workspace/activity": {
61
61
  $get: {
62
+ output: {
63
+ error: string;
64
+ code?: "invalid_input" | undefined;
65
+ };
66
+ outputFormat: "json";
67
+ status: 400;
68
+ input: {
69
+ query: {
70
+ project?: string | undefined;
71
+ };
72
+ };
73
+ } | {
74
+ output: {
75
+ error: string;
76
+ };
77
+ outputFormat: "json";
78
+ status: 404 | 409 | 503;
79
+ input: {
80
+ query: {
81
+ project?: string | undefined;
82
+ };
83
+ };
84
+ } | {
62
85
  output: {
63
86
  generatedAt: string;
64
87
  projects: {
@@ -289,29 +312,6 @@ export declare function createActivityRoutes(routeDeps: ActivityRouteDeps): impo
289
312
  project?: string | undefined;
290
313
  };
291
314
  };
292
- } | {
293
- output: {
294
- error: string;
295
- code?: "invalid_input" | undefined;
296
- };
297
- outputFormat: "json";
298
- status: 400;
299
- input: {
300
- query: {
301
- project?: string | undefined;
302
- };
303
- };
304
- } | {
305
- output: {
306
- error: string;
307
- };
308
- outputFormat: "json";
309
- status: 404 | 409 | 503;
310
- input: {
311
- query: {
312
- project?: string | undefined;
313
- };
314
- };
315
315
  };
316
316
  };
317
317
  }, "/", "/workspace/activity">;
@@ -40,7 +40,7 @@ export declare const reportsRoutes: import("hono/hono-base").HonoBase<ProjectApi
40
40
  error: string;
41
41
  };
42
42
  outputFormat: "json";
43
- status: 409;
43
+ status: 400;
44
44
  input: {
45
45
  query: {
46
46
  q?: string | undefined;
@@ -53,7 +53,7 @@ export declare const reportsRoutes: import("hono/hono-base").HonoBase<ProjectApi
53
53
  error: string;
54
54
  };
55
55
  outputFormat: "json";
56
- status: 400;
56
+ status: 409;
57
57
  input: {
58
58
  query: {
59
59
  q?: string | undefined;
@@ -4328,19 +4328,6 @@ export declare function createApp(deps: ServerDeps): import("hono/hono-base").Ho
4328
4328
  } & {
4329
4329
  "/repo/commit/:sha": {
4330
4330
  $get: {
4331
- output: string;
4332
- outputFormat: "text";
4333
- status: import("hono/utils/http-status").ContentfulStatusCode;
4334
- input: {
4335
- query: {
4336
- structured?: string | undefined;
4337
- };
4338
- } & {
4339
- param: {
4340
- sha: string;
4341
- };
4342
- };
4343
- } | {
4344
4331
  output: {
4345
4332
  error: string;
4346
4333
  code?: "invalid_input" | undefined;
@@ -4404,6 +4391,19 @@ export declare function createApp(deps: ServerDeps): import("hono/hono-base").Ho
4404
4391
  sha: string;
4405
4392
  };
4406
4393
  };
4394
+ } | {
4395
+ output: string;
4396
+ outputFormat: "text";
4397
+ status: import("hono/utils/http-status").ContentfulStatusCode;
4398
+ input: {
4399
+ query: {
4400
+ structured?: string | undefined;
4401
+ };
4402
+ } & {
4403
+ param: {
4404
+ sha: string;
4405
+ };
4406
+ };
4407
4407
  };
4408
4408
  };
4409
4409
  } & {
@@ -18140,20 +18140,20 @@ export declare function createApp(deps: ServerDeps): import("hono/hono-base").Ho
18140
18140
  } & {
18141
18141
  "/runs/:id/handoff": {
18142
18142
  $get: {
18143
- output: string;
18144
- outputFormat: "text";
18145
- status: 200;
18143
+ output: {
18144
+ error: string;
18145
+ };
18146
+ outputFormat: "json";
18147
+ status: 404;
18146
18148
  input: {
18147
18149
  param: {
18148
18150
  id: string;
18149
18151
  };
18150
18152
  };
18151
18153
  } | {
18152
- output: {
18153
- error: string;
18154
- };
18155
- outputFormat: "json";
18156
- status: 404;
18154
+ output: string;
18155
+ outputFormat: "text";
18156
+ status: 200;
18157
18157
  input: {
18158
18158
  param: {
18159
18159
  id: string;
@@ -18191,20 +18191,20 @@ export declare function createApp(deps: ServerDeps): import("hono/hono-base").Ho
18191
18191
  } & {
18192
18192
  "/runs/:id/diff": {
18193
18193
  $get: {
18194
- output: string;
18195
- outputFormat: "text";
18196
- status: import("hono/utils/http-status").ContentfulStatusCode;
18194
+ output: {
18195
+ error: string;
18196
+ };
18197
+ outputFormat: "json";
18198
+ status: 404 | 409;
18197
18199
  input: {
18198
18200
  param: {
18199
18201
  id: string;
18200
18202
  };
18201
18203
  };
18202
18204
  } | {
18203
- output: {
18204
- error: string;
18205
- };
18206
- outputFormat: "json";
18207
- status: 404 | 409;
18205
+ output: string;
18206
+ outputFormat: "text";
18207
+ status: import("hono/utils/http-status").ContentfulStatusCode;
18208
18208
  input: {
18209
18209
  param: {
18210
18210
  id: string;
@@ -20248,19 +20248,6 @@ export declare function createApp(deps: ServerDeps): import("hono/hono-base").Ho
20248
20248
  } & {
20249
20249
  "/repo/commit/:sha": {
20250
20250
  $get: {
20251
- output: string;
20252
- outputFormat: "text";
20253
- status: import("hono/utils/http-status").ContentfulStatusCode;
20254
- input: {
20255
- query: {
20256
- structured?: string | undefined;
20257
- };
20258
- } & {
20259
- param: {
20260
- sha: string;
20261
- };
20262
- };
20263
- } | {
20264
20251
  output: {
20265
20252
  error: string;
20266
20253
  code?: "invalid_input" | undefined;
@@ -20324,6 +20311,19 @@ export declare function createApp(deps: ServerDeps): import("hono/hono-base").Ho
20324
20311
  sha: string;
20325
20312
  };
20326
20313
  };
20314
+ } | {
20315
+ output: string;
20316
+ outputFormat: "text";
20317
+ status: import("hono/utils/http-status").ContentfulStatusCode;
20318
+ input: {
20319
+ query: {
20320
+ structured?: string | undefined;
20321
+ };
20322
+ } & {
20323
+ param: {
20324
+ sha: string;
20325
+ };
20326
+ };
20327
20327
  };
20328
20328
  };
20329
20329
  } & {
@@ -34060,20 +34060,20 @@ export declare function createApp(deps: ServerDeps): import("hono/hono-base").Ho
34060
34060
  } & {
34061
34061
  "/runs/:id/handoff": {
34062
34062
  $get: {
34063
- output: string;
34064
- outputFormat: "text";
34065
- status: 200;
34063
+ output: {
34064
+ error: string;
34065
+ };
34066
+ outputFormat: "json";
34067
+ status: 404;
34066
34068
  input: {
34067
34069
  param: {
34068
34070
  id: string;
34069
34071
  };
34070
34072
  };
34071
34073
  } | {
34072
- output: {
34073
- error: string;
34074
- };
34075
- outputFormat: "json";
34076
- status: 404;
34074
+ output: string;
34075
+ outputFormat: "text";
34076
+ status: 200;
34077
34077
  input: {
34078
34078
  param: {
34079
34079
  id: string;
@@ -34111,20 +34111,20 @@ export declare function createApp(deps: ServerDeps): import("hono/hono-base").Ho
34111
34111
  } & {
34112
34112
  "/runs/:id/diff": {
34113
34113
  $get: {
34114
- output: string;
34115
- outputFormat: "text";
34116
- status: import("hono/utils/http-status").ContentfulStatusCode;
34114
+ output: {
34115
+ error: string;
34116
+ };
34117
+ outputFormat: "json";
34118
+ status: 404 | 409;
34117
34119
  input: {
34118
34120
  param: {
34119
34121
  id: string;
34120
34122
  };
34121
34123
  };
34122
34124
  } | {
34123
- output: {
34124
- error: string;
34125
- };
34126
- outputFormat: "json";
34127
- status: 404 | 409;
34125
+ output: string;
34126
+ outputFormat: "text";
34127
+ status: import("hono/utils/http-status").ContentfulStatusCode;
34128
34128
  input: {
34129
34129
  param: {
34130
34130
  id: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hearsay-tools/squawk",
3
- "version": "0.18.0-pr3943.7448",
3
+ "version": "0.18.0-pr3946.7451",
4
4
  "description": "Local cockpit for running and tracking AI agent tasks in your repo. Uses your logged-in `claude` CLI and `gh` — zero config, zero database.",
5
5
  "license": "MIT",
6
6
  "type": "module",
@@ -63,8 +63,8 @@
63
63
  "devDependencies": {
64
64
  "@babel/parser": "^8.0.8",
65
65
  "@babel/types": "^8.0.8",
66
- "@open-mercato/cezar-api-client": "0.18.0-pr3943.7448",
67
- "@open-mercato/cezar-contract": "0.18.0-pr3943.7448",
66
+ "@open-mercato/cezar-api-client": "0.18.0-pr3946.7451",
67
+ "@open-mercato/cezar-contract": "0.18.0-pr3946.7451",
68
68
  "@types/node": "^24.19.1",
69
69
  "@types/ws": "^8.18.1",
70
70
  "esbuild": "^0.28.1",
@@ -81,5 +81,5 @@
81
81
  "publishConfig": {
82
82
  "access": "public"
83
83
  },
84
- "gitHead": "f16e78bebe9803328127f45bf79e63e0cc2afb90"
84
+ "gitHead": "903ae308ef3cda1b31fd8f5b735e2725f1d829c1"
85
85
  }