@hearsay-tools/squawk 0.18.0-pr3988.7580 → 0.18.0-pr3988.7581

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.
@@ -285,12 +285,11 @@ export declare function ciToolRoutes(capabilities: Map<string, Capability>): imp
285
285
  "/api/v1/tools/ask": {
286
286
  $post: {
287
287
  output: {
288
- ok: false;
289
- code: 'unavailable';
288
+ code: 'capability_revoked';
290
289
  message: string;
291
290
  };
292
291
  outputFormat: "json";
293
- status: import("hono/utils/http-status").ContentfulStatusCode;
292
+ status: 401;
294
293
  input: {
295
294
  json: {
296
295
  questions: {
@@ -308,11 +307,12 @@ export declare function ciToolRoutes(capabilities: Map<string, Capability>): imp
308
307
  };
309
308
  } | {
310
309
  output: {
311
- code: 'capability_revoked';
310
+ ok: false;
311
+ code: 'unavailable';
312
312
  message: string;
313
313
  };
314
314
  outputFormat: "json";
315
- status: 401;
315
+ status: import("hono/utils/http-status").ContentfulStatusCode;
316
316
  input: {
317
317
  json: {
318
318
  questions: {
@@ -380,12 +380,11 @@ export declare function ciToolRoutes(capabilities: Map<string, Capability>): imp
380
380
  "/api/v1/tools/cancel-wait": {
381
381
  $post: {
382
382
  output: {
383
- cancelled: false;
384
- code: 'unavailable';
383
+ code: 'capability_revoked';
385
384
  message: string;
386
385
  };
387
386
  outputFormat: "json";
388
- status: import("hono/utils/http-status").ContentfulStatusCode;
387
+ status: 401;
389
388
  input: {
390
389
  json: {
391
390
  wait_id: string;
@@ -393,11 +392,12 @@ export declare function ciToolRoutes(capabilities: Map<string, Capability>): imp
393
392
  };
394
393
  } | {
395
394
  output: {
396
- code: 'capability_revoked';
395
+ cancelled: false;
396
+ code: 'unavailable';
397
397
  message: string;
398
398
  };
399
399
  outputFormat: "json";
400
- status: 401;
400
+ status: import("hono/utils/http-status").ContentfulStatusCode;
401
401
  input: {
402
402
  json: {
403
403
  wait_id: string;
@@ -445,12 +445,11 @@ export declare function ciToolRoutes(capabilities: Map<string, Capability>): imp
445
445
  "/api/v1/tools/done": {
446
446
  $post: {
447
447
  output: {
448
- ok: false;
449
- code: 'unavailable';
448
+ code: 'capability_revoked';
450
449
  message: string;
451
450
  };
452
451
  outputFormat: "json";
453
- status: import("hono/utils/http-status").ContentfulStatusCode;
452
+ status: 401;
454
453
  input: {
455
454
  json: {
456
455
  summary?: string | undefined;
@@ -458,11 +457,12 @@ export declare function ciToolRoutes(capabilities: Map<string, Capability>): imp
458
457
  };
459
458
  } | {
460
459
  output: {
461
- code: 'capability_revoked';
460
+ ok: false;
461
+ code: 'unavailable';
462
462
  message: string;
463
463
  };
464
464
  outputFormat: "json";
465
- status: 401;
465
+ status: import("hono/utils/http-status").ContentfulStatusCode;
466
466
  input: {
467
467
  json: {
468
468
  summary?: string | undefined;
@@ -545,13 +545,11 @@ export declare function ciToolRoutes(capabilities: Map<string, Capability>): imp
545
545
  "/api/v1/tools/preview-stop": {
546
546
  $post: {
547
547
  output: {
548
- ok: boolean;
549
- code: "adopted" | "approval_required" | "headless" | "invalid_input" | "not_registered" | "port_held" | "port_in_use" | "preview_disabled" | "restarted" | "stopped" | "unavailable" | "worktree_missing";
548
+ code: 'capability_revoked';
550
549
  message: string;
551
- hint: string;
552
550
  };
553
551
  outputFormat: "json";
554
- status: import("hono/utils/http-status").ContentfulStatusCode;
552
+ status: 401;
555
553
  input: {
556
554
  json: {
557
555
  port: number;
@@ -560,11 +558,13 @@ export declare function ciToolRoutes(capabilities: Map<string, Capability>): imp
560
558
  };
561
559
  } | {
562
560
  output: {
563
- code: 'capability_revoked';
561
+ ok: boolean;
562
+ code: "adopted" | "approval_required" | "headless" | "invalid_input" | "not_registered" | "port_held" | "port_in_use" | "preview_disabled" | "restarted" | "stopped" | "unavailable" | "worktree_missing";
564
563
  message: string;
564
+ hint: string;
565
565
  };
566
566
  outputFormat: "json";
567
- status: 401;
567
+ status: import("hono/utils/http-status").ContentfulStatusCode;
568
568
  input: {
569
569
  json: {
570
570
  port: number;
@@ -577,13 +577,11 @@ export declare function ciToolRoutes(capabilities: Map<string, Capability>): imp
577
577
  "/api/v1/tools/preview-serve": {
578
578
  $post: {
579
579
  output: {
580
- ok: boolean;
581
- code: "cezar_port" | "cwd_outside_worktree" | "headless" | "invalid_input" | "port_held" | "preview_disabled" | "registered" | "replaced" | "too_many" | "unavailable" | "worktree_missing";
580
+ code: 'capability_revoked';
582
581
  message: string;
583
- hint: string;
584
582
  };
585
583
  outputFormat: "json";
586
- status: import("hono/utils/http-status").ContentfulStatusCode;
584
+ status: 401;
587
585
  input: {
588
586
  json: {
589
587
  command: string;
@@ -595,11 +593,13 @@ export declare function ciToolRoutes(capabilities: Map<string, Capability>): imp
595
593
  };
596
594
  } | {
597
595
  output: {
598
- code: 'capability_revoked';
596
+ ok: boolean;
597
+ code: "cezar_port" | "cwd_outside_worktree" | "headless" | "invalid_input" | "port_held" | "preview_disabled" | "registered" | "replaced" | "too_many" | "unavailable" | "worktree_missing";
599
598
  message: string;
599
+ hint: string;
600
600
  };
601
601
  outputFormat: "json";
602
- status: 401;
602
+ status: import("hono/utils/http-status").ContentfulStatusCode;
603
603
  input: {
604
604
  json: {
605
605
  command: string;
@@ -615,12 +615,11 @@ export declare function ciToolRoutes(capabilities: Map<string, Capability>): imp
615
615
  "/api/v1/tools/automation": {
616
616
  $post: {
617
617
  output: {
618
- ok: false;
619
- code: import('../contract/index.js').ScheduledTaskRefusalCode;
618
+ code: 'capability_revoked';
620
619
  message: string;
621
620
  };
622
621
  outputFormat: "json";
623
- status: import("hono/utils/http-status").ContentfulStatusCode;
622
+ status: 401;
624
623
  input: {
625
624
  json: {
626
625
  action: "create";
@@ -700,11 +699,12 @@ export declare function ciToolRoutes(capabilities: Map<string, Capability>): imp
700
699
  };
701
700
  } | {
702
701
  output: {
703
- code: 'capability_revoked';
702
+ ok: false;
703
+ code: import('../contract/index.js').ScheduledTaskRefusalCode;
704
704
  message: string;
705
705
  };
706
706
  outputFormat: "json";
707
- status: 401;
707
+ status: import("hono/utils/http-status").ContentfulStatusCode;
708
708
  input: {
709
709
  json: {
710
710
  action: "create";
@@ -960,12 +960,11 @@ export declare function ciToolRoutes(capabilities: Map<string, Capability>): imp
960
960
  "/api/v1/tools/schedule-task": {
961
961
  $post: {
962
962
  output: {
963
- ok: false;
964
- code: import('../contract/index.js').ScheduledTaskRefusalCode;
963
+ code: 'capability_revoked';
965
964
  message: string;
966
965
  };
967
966
  outputFormat: "json";
968
- status: import("hono/utils/http-status").ContentfulStatusCode;
967
+ status: 401;
969
968
  input: {
970
969
  json: {
971
970
  at?: string | undefined;
@@ -982,11 +981,12 @@ export declare function ciToolRoutes(capabilities: Map<string, Capability>): imp
982
981
  };
983
982
  } | {
984
983
  output: {
985
- code: 'capability_revoked';
984
+ ok: false;
985
+ code: import('../contract/index.js').ScheduledTaskRefusalCode;
986
986
  message: string;
987
987
  };
988
988
  outputFormat: "json";
989
- status: 401;
989
+ status: import("hono/utils/http-status").ContentfulStatusCode;
990
990
  input: {
991
991
  json: {
992
992
  at?: string | undefined;
@@ -1041,12 +1041,11 @@ export declare function ciToolRoutes(capabilities: Map<string, Capability>): imp
1041
1041
  "/api/v1/tools/scheduled-tasks": {
1042
1042
  $post: {
1043
1043
  output: {
1044
- ok: false;
1045
- code: import('../contract/index.js').ScheduledTaskRefusalCode;
1044
+ code: 'capability_revoked';
1046
1045
  message: string;
1047
1046
  };
1048
1047
  outputFormat: "json";
1049
- status: import("hono/utils/http-status").ContentfulStatusCode;
1048
+ status: 401;
1050
1049
  input: {
1051
1050
  json: {
1052
1051
  at?: string | undefined;
@@ -1079,11 +1078,12 @@ export declare function ciToolRoutes(capabilities: Map<string, Capability>): imp
1079
1078
  };
1080
1079
  } | {
1081
1080
  output: {
1082
- code: 'capability_revoked';
1081
+ ok: false;
1082
+ code: import('../contract/index.js').ScheduledTaskRefusalCode;
1083
1083
  message: string;
1084
1084
  };
1085
1085
  outputFormat: "json";
1086
- status: 401;
1086
+ status: import("hono/utils/http-status").ContentfulStatusCode;
1087
1087
  input: {
1088
1088
  json: {
1089
1089
  at?: string | undefined;
@@ -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;
@@ -60,6 +48,18 @@ export declare function createDelegationApp(routes: DelegationRoutes): import("h
60
48
  offset?: string | undefined;
61
49
  };
62
50
  };
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,18 +598,6 @@ 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
- } | {
613
601
  output: {
614
602
  workerId: string;
615
603
  settled: boolean;
@@ -727,11 +715,7 @@ export declare function createDelegationApp(routes: DelegationRoutes): import("h
727
715
  workerId: string;
728
716
  };
729
717
  };
730
- };
731
- };
732
- } & {
733
- "/:workerId/collect": {
734
- $post: {
718
+ } | {
735
719
  output: {
736
720
  error: string;
737
721
  code?: "invalid_input" | undefined;
@@ -742,10 +726,12 @@ export declare function createDelegationApp(routes: DelegationRoutes): import("h
742
726
  param: {
743
727
  workerId: string;
744
728
  };
745
- } & {
746
- json: Record<string, never>;
747
729
  };
748
- } | {
730
+ };
731
+ };
732
+ } & {
733
+ "/:workerId/collect": {
734
+ $post: {
749
735
  output: {
750
736
  workerId: string;
751
737
  parentRunId: string;
@@ -868,11 +854,7 @@ export declare function createDelegationApp(routes: DelegationRoutes): import("h
868
854
  } & {
869
855
  json: Record<string, never>;
870
856
  };
871
- };
872
- };
873
- } & {
874
- "/:workerId/steer": {
875
- $post: {
857
+ } | {
876
858
  output: {
877
859
  error: string;
878
860
  code?: "invalid_input" | undefined;
@@ -884,11 +866,13 @@ export declare function createDelegationApp(routes: DelegationRoutes): import("h
884
866
  workerId: string;
885
867
  };
886
868
  } & {
887
- json: {
888
- text: string;
889
- };
869
+ json: Record<string, never>;
890
870
  };
891
- } | {
871
+ };
872
+ };
873
+ } & {
874
+ "/:workerId/steer": {
875
+ $post: {
892
876
  output: {
893
877
  workerId: string;
894
878
  state: "delivered" | "queued";
@@ -904,11 +888,7 @@ export declare function createDelegationApp(routes: DelegationRoutes): import("h
904
888
  text: string;
905
889
  };
906
890
  };
907
- };
908
- };
909
- } & {
910
- "/:workerId/stop": {
911
- $post: {
891
+ } | {
912
892
  output: {
913
893
  error: string;
914
894
  code?: "invalid_input" | undefined;
@@ -920,9 +900,15 @@ export declare function createDelegationApp(routes: DelegationRoutes): import("h
920
900
  workerId: string;
921
901
  };
922
902
  } & {
923
- json: Record<string, never>;
903
+ json: {
904
+ text: string;
905
+ };
924
906
  };
925
- } | {
907
+ };
908
+ };
909
+ } & {
910
+ "/:workerId/stop": {
911
+ $post: {
926
912
  output: {
927
913
  workerId: string;
928
914
  state: "stopping" | "terminated";
@@ -936,11 +922,7 @@ export declare function createDelegationApp(routes: DelegationRoutes): import("h
936
922
  } & {
937
923
  json: Record<string, never>;
938
924
  };
939
- };
940
- };
941
- } & {
942
- "/:workerId/destroy": {
943
- $post: {
925
+ } | {
944
926
  output: {
945
927
  error: string;
946
928
  code?: "invalid_input" | undefined;
@@ -952,11 +934,13 @@ export declare function createDelegationApp(routes: DelegationRoutes): import("h
952
934
  workerId: string;
953
935
  };
954
936
  } & {
955
- json: {
956
- discardWork?: true | undefined;
957
- };
937
+ json: Record<string, never>;
958
938
  };
959
- } | {
939
+ };
940
+ };
941
+ } & {
942
+ "/:workerId/destroy": {
943
+ $post: {
960
944
  output: {
961
945
  workerId: string;
962
946
  state: "complete" | "incomplete";
@@ -985,6 +969,22 @@ export declare function createDelegationApp(routes: DelegationRoutes): import("h
985
969
  discardWork?: true | undefined;
986
970
  };
987
971
  };
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,11 +1020,13 @@ export declare function createDelegationApp(routes: DelegationRoutes): import("h
1020
1020
  "/:workerId/diff": {
1021
1021
  $get: {
1022
1022
  output: {
1023
- error: string;
1024
- code?: "invalid_input" | undefined;
1023
+ workerId: string;
1024
+ baselineSha: string;
1025
+ diff: string;
1026
+ truncated: boolean;
1025
1027
  };
1026
1028
  outputFormat: "json";
1027
- status: 400;
1029
+ status: 200;
1028
1030
  input: {
1029
1031
  param: {
1030
1032
  workerId: string;
@@ -1032,13 +1034,11 @@ export declare function createDelegationApp(routes: DelegationRoutes): import("h
1032
1034
  };
1033
1035
  } | {
1034
1036
  output: {
1035
- workerId: string;
1036
- baselineSha: string;
1037
- diff: string;
1038
- truncated: boolean;
1037
+ error: string;
1038
+ code?: "invalid_input" | undefined;
1039
1039
  };
1040
1040
  outputFormat: "json";
1041
- status: 200;
1041
+ status: 400;
1042
1042
  input: {
1043
1043
  param: {
1044
1044
  workerId: string;
@@ -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: {
@@ -311,6 +288,29 @@ export declare function createActivityRoutes(routeDeps: ActivityRouteDeps): impo
311
288
  project?: string | undefined;
312
289
  };
313
290
  };
291
+ } | {
292
+ output: {
293
+ error: string;
294
+ code?: "invalid_input" | undefined;
295
+ };
296
+ outputFormat: "json";
297
+ status: 400;
298
+ input: {
299
+ query: {
300
+ project?: string | undefined;
301
+ };
302
+ };
303
+ } | {
304
+ output: {
305
+ error: string;
306
+ };
307
+ outputFormat: "json";
308
+ status: 404 | 409 | 503;
309
+ input: {
310
+ query: {
311
+ project?: string | undefined;
312
+ };
313
+ };
314
314
  };
315
315
  };
316
316
  }, "/", "/workspace/activity">;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hearsay-tools/squawk",
3
- "version": "0.18.0-pr3988.7580",
3
+ "version": "0.18.0-pr3988.7581",
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-pr3988.7580",
67
- "@open-mercato/cezar-contract": "0.18.0-pr3988.7580",
66
+ "@open-mercato/cezar-api-client": "0.18.0-pr3988.7581",
67
+ "@open-mercato/cezar-contract": "0.18.0-pr3988.7581",
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": "09d11a7c7e426dd11e086916eebd7845280d79f6"
84
+ "gitHead": "b2536478b931da5f6fb100c28978184c8fb82c22"
85
85
  }