@hearsay-tools/squawk 0.18.0-pr3766.6977 → 0.18.0-pr3768.6979

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.
@@ -280,12 +280,11 @@ export declare function ciToolRoutes(capabilities: Map<string, Capability>): imp
280
280
  "/api/v1/tools/ask": {
281
281
  $post: {
282
282
  output: {
283
- ok: false;
284
- code: 'unavailable';
283
+ code: 'capability_revoked';
285
284
  message: string;
286
285
  };
287
286
  outputFormat: "json";
288
- status: import("hono/utils/http-status").ContentfulStatusCode;
287
+ status: 401;
289
288
  input: {
290
289
  json: {
291
290
  questions: {
@@ -303,11 +302,12 @@ export declare function ciToolRoutes(capabilities: Map<string, Capability>): imp
303
302
  };
304
303
  } | {
305
304
  output: {
306
- code: 'capability_revoked';
305
+ ok: false;
306
+ code: 'unavailable';
307
307
  message: string;
308
308
  };
309
309
  outputFormat: "json";
310
- status: 401;
310
+ status: import("hono/utils/http-status").ContentfulStatusCode;
311
311
  input: {
312
312
  json: {
313
313
  questions: {
@@ -375,12 +375,11 @@ export declare function ciToolRoutes(capabilities: Map<string, Capability>): imp
375
375
  "/api/v1/tools/cancel-wait": {
376
376
  $post: {
377
377
  output: {
378
- cancelled: false;
379
- code: 'unavailable';
378
+ code: 'capability_revoked';
380
379
  message: string;
381
380
  };
382
381
  outputFormat: "json";
383
- status: import("hono/utils/http-status").ContentfulStatusCode;
382
+ status: 401;
384
383
  input: {
385
384
  json: {
386
385
  wait_id: string;
@@ -388,11 +387,12 @@ export declare function ciToolRoutes(capabilities: Map<string, Capability>): imp
388
387
  };
389
388
  } | {
390
389
  output: {
391
- code: 'capability_revoked';
390
+ cancelled: false;
391
+ code: 'unavailable';
392
392
  message: string;
393
393
  };
394
394
  outputFormat: "json";
395
- status: 401;
395
+ status: import("hono/utils/http-status").ContentfulStatusCode;
396
396
  input: {
397
397
  json: {
398
398
  wait_id: string;
@@ -440,12 +440,11 @@ export declare function ciToolRoutes(capabilities: Map<string, Capability>): imp
440
440
  "/api/v1/tools/done": {
441
441
  $post: {
442
442
  output: {
443
- ok: false;
444
- code: 'unavailable';
443
+ code: 'capability_revoked';
445
444
  message: string;
446
445
  };
447
446
  outputFormat: "json";
448
- status: import("hono/utils/http-status").ContentfulStatusCode;
447
+ status: 401;
449
448
  input: {
450
449
  json: {
451
450
  summary?: string | undefined;
@@ -453,11 +452,12 @@ export declare function ciToolRoutes(capabilities: Map<string, Capability>): imp
453
452
  };
454
453
  } | {
455
454
  output: {
456
- code: 'capability_revoked';
455
+ ok: false;
456
+ code: 'unavailable';
457
457
  message: string;
458
458
  };
459
459
  outputFormat: "json";
460
- status: 401;
460
+ status: import("hono/utils/http-status").ContentfulStatusCode;
461
461
  input: {
462
462
  json: {
463
463
  summary?: string | undefined;
@@ -540,13 +540,11 @@ export declare function ciToolRoutes(capabilities: Map<string, Capability>): imp
540
540
  "/api/v1/tools/preview-stop": {
541
541
  $post: {
542
542
  output: {
543
- ok: boolean;
544
- code: "adopted" | "approval_required" | "headless" | "invalid_input" | "not_registered" | "port_held" | "port_in_use" | "preview_disabled" | "restarted" | "stopped" | "unavailable" | "worktree_missing";
543
+ code: 'capability_revoked';
545
544
  message: string;
546
- hint: string;
547
545
  };
548
546
  outputFormat: "json";
549
- status: import("hono/utils/http-status").ContentfulStatusCode;
547
+ status: 401;
550
548
  input: {
551
549
  json: {
552
550
  port: number;
@@ -555,11 +553,13 @@ export declare function ciToolRoutes(capabilities: Map<string, Capability>): imp
555
553
  };
556
554
  } | {
557
555
  output: {
558
- code: 'capability_revoked';
556
+ ok: boolean;
557
+ code: "adopted" | "approval_required" | "headless" | "invalid_input" | "not_registered" | "port_held" | "port_in_use" | "preview_disabled" | "restarted" | "stopped" | "unavailable" | "worktree_missing";
559
558
  message: string;
559
+ hint: string;
560
560
  };
561
561
  outputFormat: "json";
562
- status: 401;
562
+ status: import("hono/utils/http-status").ContentfulStatusCode;
563
563
  input: {
564
564
  json: {
565
565
  port: number;
@@ -572,13 +572,11 @@ export declare function ciToolRoutes(capabilities: Map<string, Capability>): imp
572
572
  "/api/v1/tools/preview-serve": {
573
573
  $post: {
574
574
  output: {
575
- ok: boolean;
576
- code: "cezar_port" | "cwd_outside_worktree" | "headless" | "invalid_input" | "port_held" | "preview_disabled" | "registered" | "replaced" | "too_many" | "unavailable" | "worktree_missing";
575
+ code: 'capability_revoked';
577
576
  message: string;
578
- hint: string;
579
577
  };
580
578
  outputFormat: "json";
581
- status: import("hono/utils/http-status").ContentfulStatusCode;
579
+ status: 401;
582
580
  input: {
583
581
  json: {
584
582
  command: string;
@@ -590,11 +588,13 @@ export declare function ciToolRoutes(capabilities: Map<string, Capability>): imp
590
588
  };
591
589
  } | {
592
590
  output: {
593
- code: 'capability_revoked';
591
+ ok: boolean;
592
+ code: "cezar_port" | "cwd_outside_worktree" | "headless" | "invalid_input" | "port_held" | "preview_disabled" | "registered" | "replaced" | "too_many" | "unavailable" | "worktree_missing";
594
593
  message: string;
594
+ hint: string;
595
595
  };
596
596
  outputFormat: "json";
597
- status: 401;
597
+ status: import("hono/utils/http-status").ContentfulStatusCode;
598
598
  input: {
599
599
  json: {
600
600
  command: string;
@@ -610,12 +610,11 @@ export declare function ciToolRoutes(capabilities: Map<string, Capability>): imp
610
610
  "/api/v1/tools/schedule-task": {
611
611
  $post: {
612
612
  output: {
613
- ok: false;
614
- code: import('../contract/index.js').ScheduledTaskRefusalCode;
613
+ code: 'capability_revoked';
615
614
  message: string;
616
615
  };
617
616
  outputFormat: "json";
618
- status: import("hono/utils/http-status").ContentfulStatusCode;
617
+ status: 401;
619
618
  input: {
620
619
  json: {
621
620
  at?: string | undefined;
@@ -632,11 +631,12 @@ export declare function ciToolRoutes(capabilities: Map<string, Capability>): imp
632
631
  };
633
632
  } | {
634
633
  output: {
635
- code: 'capability_revoked';
634
+ ok: false;
635
+ code: import('../contract/index.js').ScheduledTaskRefusalCode;
636
636
  message: string;
637
637
  };
638
638
  outputFormat: "json";
639
- status: 401;
639
+ status: import("hono/utils/http-status").ContentfulStatusCode;
640
640
  input: {
641
641
  json: {
642
642
  at?: string | undefined;
@@ -691,12 +691,11 @@ export declare function ciToolRoutes(capabilities: Map<string, Capability>): imp
691
691
  "/api/v1/tools/scheduled-tasks": {
692
692
  $post: {
693
693
  output: {
694
- ok: false;
695
- code: import('../contract/index.js').ScheduledTaskRefusalCode;
694
+ code: 'capability_revoked';
696
695
  message: string;
697
696
  };
698
697
  outputFormat: "json";
699
- status: import("hono/utils/http-status").ContentfulStatusCode;
698
+ status: 401;
700
699
  input: {
701
700
  json: {
702
701
  at?: string | undefined;
@@ -729,11 +728,12 @@ export declare function ciToolRoutes(capabilities: Map<string, Capability>): imp
729
728
  };
730
729
  } | {
731
730
  output: {
732
- code: 'capability_revoked';
731
+ ok: false;
732
+ code: import('../contract/index.js').ScheduledTaskRefusalCode;
733
733
  message: string;
734
734
  };
735
735
  outputFormat: "json";
736
- status: 401;
736
+ status: import("hono/utils/http-status").ContentfulStatusCode;
737
737
  input: {
738
738
  json: {
739
739
  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;
@@ -51,6 +39,18 @@ export declare function createDelegationApp(routes: DelegationRoutes): import("h
51
39
  offset?: string | undefined;
52
40
  };
53
41
  };
42
+ } | {
43
+ output: {
44
+ error: string;
45
+ code?: "invalid_input" | undefined;
46
+ };
47
+ outputFormat: "json";
48
+ status: 400;
49
+ input: {
50
+ query: {
51
+ offset?: string | undefined;
52
+ };
53
+ };
54
54
  };
55
55
  };
56
56
  } & {
@@ -588,18 +588,6 @@ export declare function createDelegationApp(routes: DelegationRoutes): import("h
588
588
  } & {
589
589
  "/:workerId": {
590
590
  $get: {
591
- output: {
592
- error: string;
593
- code?: "invalid_input" | undefined;
594
- };
595
- outputFormat: "json";
596
- status: 400;
597
- input: {
598
- param: {
599
- workerId: string;
600
- };
601
- };
602
- } | {
603
591
  output: {
604
592
  workerId: string;
605
593
  parentRunId: string;
@@ -707,11 +695,7 @@ export declare function createDelegationApp(routes: DelegationRoutes): import("h
707
695
  workerId: string;
708
696
  };
709
697
  };
710
- };
711
- };
712
- } & {
713
- "/:workerId/collect": {
714
- $post: {
698
+ } | {
715
699
  output: {
716
700
  error: string;
717
701
  code?: "invalid_input" | undefined;
@@ -722,10 +706,12 @@ export declare function createDelegationApp(routes: DelegationRoutes): import("h
722
706
  param: {
723
707
  workerId: string;
724
708
  };
725
- } & {
726
- json: Record<string, never>;
727
709
  };
728
- } | {
710
+ };
711
+ };
712
+ } & {
713
+ "/:workerId/collect": {
714
+ $post: {
729
715
  output: {
730
716
  workerId: string;
731
717
  parentRunId: string;
@@ -827,11 +813,7 @@ export declare function createDelegationApp(routes: DelegationRoutes): import("h
827
813
  } & {
828
814
  json: Record<string, never>;
829
815
  };
830
- };
831
- };
832
- } & {
833
- "/:workerId/steer": {
834
- $post: {
816
+ } | {
835
817
  output: {
836
818
  error: string;
837
819
  code?: "invalid_input" | undefined;
@@ -843,11 +825,13 @@ export declare function createDelegationApp(routes: DelegationRoutes): import("h
843
825
  workerId: string;
844
826
  };
845
827
  } & {
846
- json: {
847
- text: string;
848
- };
828
+ json: Record<string, never>;
849
829
  };
850
- } | {
830
+ };
831
+ };
832
+ } & {
833
+ "/:workerId/steer": {
834
+ $post: {
851
835
  output: {
852
836
  workerId: string;
853
837
  state: "delivered" | "queued";
@@ -863,11 +847,7 @@ export declare function createDelegationApp(routes: DelegationRoutes): import("h
863
847
  text: string;
864
848
  };
865
849
  };
866
- };
867
- };
868
- } & {
869
- "/:workerId/stop": {
870
- $post: {
850
+ } | {
871
851
  output: {
872
852
  error: string;
873
853
  code?: "invalid_input" | undefined;
@@ -879,9 +859,15 @@ export declare function createDelegationApp(routes: DelegationRoutes): import("h
879
859
  workerId: string;
880
860
  };
881
861
  } & {
882
- json: Record<string, never>;
862
+ json: {
863
+ text: string;
864
+ };
883
865
  };
884
- } | {
866
+ };
867
+ };
868
+ } & {
869
+ "/:workerId/stop": {
870
+ $post: {
885
871
  output: {
886
872
  workerId: string;
887
873
  state: "stopping" | "terminated";
@@ -895,11 +881,7 @@ export declare function createDelegationApp(routes: DelegationRoutes): import("h
895
881
  } & {
896
882
  json: Record<string, never>;
897
883
  };
898
- };
899
- };
900
- } & {
901
- "/:workerId/destroy": {
902
- $post: {
884
+ } | {
903
885
  output: {
904
886
  error: string;
905
887
  code?: "invalid_input" | undefined;
@@ -913,7 +895,11 @@ export declare function createDelegationApp(routes: DelegationRoutes): import("h
913
895
  } & {
914
896
  json: Record<string, never>;
915
897
  };
916
- } | {
898
+ };
899
+ };
900
+ } & {
901
+ "/:workerId/destroy": {
902
+ $post: {
917
903
  output: {
918
904
  workerId: string;
919
905
  state: "complete" | "incomplete";
@@ -936,6 +922,20 @@ export declare function createDelegationApp(routes: DelegationRoutes): import("h
936
922
  } & {
937
923
  json: Record<string, never>;
938
924
  };
925
+ } | {
926
+ output: {
927
+ error: string;
928
+ code?: "invalid_input" | undefined;
929
+ };
930
+ outputFormat: "json";
931
+ status: 400;
932
+ input: {
933
+ param: {
934
+ workerId: string;
935
+ };
936
+ } & {
937
+ json: Record<string, never>;
938
+ };
939
939
  } | {
940
940
  output: {
941
941
  workerId: string;
@@ -965,11 +965,13 @@ export declare function createDelegationApp(routes: DelegationRoutes): import("h
965
965
  "/:workerId/diff": {
966
966
  $get: {
967
967
  output: {
968
- error: string;
969
- code?: "invalid_input" | undefined;
968
+ workerId: string;
969
+ baselineSha: string;
970
+ diff: string;
971
+ truncated: boolean;
970
972
  };
971
973
  outputFormat: "json";
972
- status: 400;
974
+ status: 200;
973
975
  input: {
974
976
  param: {
975
977
  workerId: string;
@@ -977,13 +979,11 @@ export declare function createDelegationApp(routes: DelegationRoutes): import("h
977
979
  };
978
980
  } | {
979
981
  output: {
980
- workerId: string;
981
- baselineSha: string;
982
- diff: string;
983
- truncated: boolean;
982
+ error: string;
983
+ code?: "invalid_input" | undefined;
984
984
  };
985
985
  outputFormat: "json";
986
- status: 200;
986
+ status: 400;
987
987
  input: {
988
988
  param: {
989
989
  workerId: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hearsay-tools/squawk",
3
- "version": "0.18.0-pr3766.6977",
3
+ "version": "0.18.0-pr3768.6979",
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-pr3766.6977",
67
- "@open-mercato/cezar-contract": "0.18.0-pr3766.6977",
66
+ "@open-mercato/cezar-api-client": "0.18.0-pr3768.6979",
67
+ "@open-mercato/cezar-contract": "0.18.0-pr3768.6979",
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": "939e6a7bd3df440bc6dc92fa1ec6661ef8e67a41"
84
+ "gitHead": "6671f9562a231a33cefd11088a2df3ddb46612b3"
85
85
  }