@hearsay-tools/squawk 0.18.0-dev.8095 → 0.18.0-dev.8096

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.
@@ -27,18 +27,6 @@ export declare function delegationFailure(error: unknown): {
27
27
  export declare function createDelegationRoutes(service: DelegationService, credentials: CredentialRegistry): import("hono/hono-base").HonoBase<Env, {
28
28
  "/list": {
29
29
  $get: {
30
- output: {
31
- error: string;
32
- code?: "invalid_input" | undefined;
33
- };
34
- outputFormat: "json";
35
- status: 400;
36
- input: {
37
- query: {
38
- offset?: string | undefined;
39
- };
40
- };
41
- } | {
42
30
  output: {
43
31
  workers: {
44
32
  workerId: string;
@@ -91,6 +79,18 @@ export declare function createDelegationRoutes(service: DelegationService, crede
91
79
  offset?: string | undefined;
92
80
  };
93
81
  };
82
+ } | {
83
+ output: {
84
+ error: string;
85
+ code?: "invalid_input" | undefined;
86
+ };
87
+ outputFormat: "json";
88
+ status: 400;
89
+ input: {
90
+ query: {
91
+ offset?: string | undefined;
92
+ };
93
+ };
94
94
  };
95
95
  };
96
96
  } & {
@@ -641,18 +641,6 @@ export declare function createDelegationRoutes(service: DelegationService, crede
641
641
  } & {
642
642
  "/:workerId": {
643
643
  $get: {
644
- output: {
645
- error: string;
646
- code?: "invalid_input" | undefined;
647
- };
648
- outputFormat: "json";
649
- status: 400;
650
- input: {
651
- param: {
652
- workerId: string;
653
- };
654
- };
655
- } | {
656
644
  output: {
657
645
  workerId: string;
658
646
  settled: boolean;
@@ -777,11 +765,7 @@ export declare function createDelegationRoutes(service: DelegationService, crede
777
765
  workerId: string;
778
766
  };
779
767
  };
780
- };
781
- };
782
- } & {
783
- "/:workerId/collect": {
784
- $post: {
768
+ } | {
785
769
  output: {
786
770
  error: string;
787
771
  code?: "invalid_input" | undefined;
@@ -792,10 +776,12 @@ export declare function createDelegationRoutes(service: DelegationService, crede
792
776
  param: {
793
777
  workerId: string;
794
778
  };
795
- } & {
796
- json: Record<string, never>;
797
779
  };
798
- } | {
780
+ };
781
+ };
782
+ } & {
783
+ "/:workerId/collect": {
784
+ $post: {
799
785
  output: {
800
786
  workerId: string;
801
787
  parentRunId: string;
@@ -918,11 +904,7 @@ export declare function createDelegationRoutes(service: DelegationService, crede
918
904
  } & {
919
905
  json: Record<string, never>;
920
906
  };
921
- };
922
- };
923
- } & {
924
- "/:workerId/steer": {
925
- $post: {
907
+ } | {
926
908
  output: {
927
909
  error: string;
928
910
  code?: "invalid_input" | undefined;
@@ -934,11 +916,13 @@ export declare function createDelegationRoutes(service: DelegationService, crede
934
916
  workerId: string;
935
917
  };
936
918
  } & {
937
- json: {
938
- text: string;
939
- };
919
+ json: Record<string, never>;
940
920
  };
941
- } | {
921
+ };
922
+ };
923
+ } & {
924
+ "/:workerId/steer": {
925
+ $post: {
942
926
  output: {
943
927
  workerId: string;
944
928
  state: "delivered" | "queued";
@@ -954,11 +938,7 @@ export declare function createDelegationRoutes(service: DelegationService, crede
954
938
  text: string;
955
939
  };
956
940
  };
957
- };
958
- };
959
- } & {
960
- "/:workerId/stop": {
961
- $post: {
941
+ } | {
962
942
  output: {
963
943
  error: string;
964
944
  code?: "invalid_input" | undefined;
@@ -970,9 +950,15 @@ export declare function createDelegationRoutes(service: DelegationService, crede
970
950
  workerId: string;
971
951
  };
972
952
  } & {
973
- json: Record<string, never>;
953
+ json: {
954
+ text: string;
955
+ };
974
956
  };
975
- } | {
957
+ };
958
+ };
959
+ } & {
960
+ "/:workerId/stop": {
961
+ $post: {
976
962
  output: {
977
963
  workerId: string;
978
964
  state: "stopping" | "terminated";
@@ -986,11 +972,7 @@ export declare function createDelegationRoutes(service: DelegationService, crede
986
972
  } & {
987
973
  json: Record<string, never>;
988
974
  };
989
- };
990
- };
991
- } & {
992
- "/:workerId/destroy": {
993
- $post: {
975
+ } | {
994
976
  output: {
995
977
  error: string;
996
978
  code?: "invalid_input" | undefined;
@@ -1002,11 +984,13 @@ export declare function createDelegationRoutes(service: DelegationService, crede
1002
984
  workerId: string;
1003
985
  };
1004
986
  } & {
1005
- json: {
1006
- discardWork?: true | undefined;
1007
- };
987
+ json: Record<string, never>;
1008
988
  };
1009
- } | {
989
+ };
990
+ };
991
+ } & {
992
+ "/:workerId/destroy": {
993
+ $post: {
1010
994
  output: {
1011
995
  workerId: string;
1012
996
  state: "complete" | "incomplete";
@@ -1035,6 +1019,22 @@ export declare function createDelegationRoutes(service: DelegationService, crede
1035
1019
  discardWork?: true | undefined;
1036
1020
  };
1037
1021
  };
1022
+ } | {
1023
+ output: {
1024
+ error: string;
1025
+ code?: "invalid_input" | undefined;
1026
+ };
1027
+ outputFormat: "json";
1028
+ status: 400;
1029
+ input: {
1030
+ param: {
1031
+ workerId: string;
1032
+ };
1033
+ } & {
1034
+ json: {
1035
+ discardWork?: true | undefined;
1036
+ };
1037
+ };
1038
1038
  } | {
1039
1039
  output: {
1040
1040
  workerId: string;
@@ -1070,11 +1070,13 @@ export declare function createDelegationRoutes(service: DelegationService, crede
1070
1070
  "/:workerId/diff": {
1071
1071
  $get: {
1072
1072
  output: {
1073
- error: string;
1074
- code?: "invalid_input" | undefined;
1073
+ workerId: string;
1074
+ baselineSha: string;
1075
+ diff: string;
1076
+ truncated: boolean;
1075
1077
  };
1076
1078
  outputFormat: "json";
1077
- status: 400;
1079
+ status: 200;
1078
1080
  input: {
1079
1081
  param: {
1080
1082
  workerId: string;
@@ -1082,13 +1084,11 @@ export declare function createDelegationRoutes(service: DelegationService, crede
1082
1084
  };
1083
1085
  } | {
1084
1086
  output: {
1085
- workerId: string;
1086
- baselineSha: string;
1087
- diff: string;
1088
- truncated: boolean;
1087
+ error: string;
1088
+ code?: "invalid_input" | undefined;
1089
1089
  };
1090
1090
  outputFormat: "json";
1091
- status: 200;
1091
+ status: 400;
1092
1092
  input: {
1093
1093
  param: {
1094
1094
  workerId: string;
@@ -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;
@@ -66,6 +54,18 @@ export declare function createDelegationApp(routes: DelegationRoutes): import("h
66
54
  offset?: string | undefined;
67
55
  };
68
56
  };
57
+ } | {
58
+ output: {
59
+ error: string;
60
+ code?: "invalid_input" | undefined;
61
+ };
62
+ outputFormat: "json";
63
+ status: 400;
64
+ input: {
65
+ query: {
66
+ offset?: string | undefined;
67
+ };
68
+ };
69
69
  };
70
70
  };
71
71
  } & {
@@ -616,18 +616,6 @@ export declare function createDelegationApp(routes: DelegationRoutes): import("h
616
616
  } & {
617
617
  "/:workerId": {
618
618
  $get: {
619
- output: {
620
- error: string;
621
- code?: "invalid_input" | undefined;
622
- };
623
- outputFormat: "json";
624
- status: 400;
625
- input: {
626
- param: {
627
- workerId: string;
628
- };
629
- };
630
- } | {
631
619
  output: {
632
620
  workerId: string;
633
621
  settled: boolean;
@@ -752,11 +740,7 @@ export declare function createDelegationApp(routes: DelegationRoutes): import("h
752
740
  workerId: string;
753
741
  };
754
742
  };
755
- };
756
- };
757
- } & {
758
- "/:workerId/collect": {
759
- $post: {
743
+ } | {
760
744
  output: {
761
745
  error: string;
762
746
  code?: "invalid_input" | undefined;
@@ -767,10 +751,12 @@ export declare function createDelegationApp(routes: DelegationRoutes): import("h
767
751
  param: {
768
752
  workerId: string;
769
753
  };
770
- } & {
771
- json: Record<string, never>;
772
754
  };
773
- } | {
755
+ };
756
+ };
757
+ } & {
758
+ "/:workerId/collect": {
759
+ $post: {
774
760
  output: {
775
761
  workerId: string;
776
762
  parentRunId: string;
@@ -893,11 +879,7 @@ export declare function createDelegationApp(routes: DelegationRoutes): import("h
893
879
  } & {
894
880
  json: Record<string, never>;
895
881
  };
896
- };
897
- };
898
- } & {
899
- "/:workerId/steer": {
900
- $post: {
882
+ } | {
901
883
  output: {
902
884
  error: string;
903
885
  code?: "invalid_input" | undefined;
@@ -909,11 +891,13 @@ export declare function createDelegationApp(routes: DelegationRoutes): import("h
909
891
  workerId: string;
910
892
  };
911
893
  } & {
912
- json: {
913
- text: string;
914
- };
894
+ json: Record<string, never>;
915
895
  };
916
- } | {
896
+ };
897
+ };
898
+ } & {
899
+ "/:workerId/steer": {
900
+ $post: {
917
901
  output: {
918
902
  workerId: string;
919
903
  state: "delivered" | "queued";
@@ -929,11 +913,7 @@ export declare function createDelegationApp(routes: DelegationRoutes): import("h
929
913
  text: string;
930
914
  };
931
915
  };
932
- };
933
- };
934
- } & {
935
- "/:workerId/stop": {
936
- $post: {
916
+ } | {
937
917
  output: {
938
918
  error: string;
939
919
  code?: "invalid_input" | undefined;
@@ -945,9 +925,15 @@ export declare function createDelegationApp(routes: DelegationRoutes): import("h
945
925
  workerId: string;
946
926
  };
947
927
  } & {
948
- json: Record<string, never>;
928
+ json: {
929
+ text: string;
930
+ };
949
931
  };
950
- } | {
932
+ };
933
+ };
934
+ } & {
935
+ "/:workerId/stop": {
936
+ $post: {
951
937
  output: {
952
938
  workerId: string;
953
939
  state: "stopping" | "terminated";
@@ -961,11 +947,7 @@ export declare function createDelegationApp(routes: DelegationRoutes): import("h
961
947
  } & {
962
948
  json: Record<string, never>;
963
949
  };
964
- };
965
- };
966
- } & {
967
- "/:workerId/destroy": {
968
- $post: {
950
+ } | {
969
951
  output: {
970
952
  error: string;
971
953
  code?: "invalid_input" | undefined;
@@ -977,11 +959,13 @@ export declare function createDelegationApp(routes: DelegationRoutes): import("h
977
959
  workerId: string;
978
960
  };
979
961
  } & {
980
- json: {
981
- discardWork?: true | undefined;
982
- };
962
+ json: Record<string, never>;
983
963
  };
984
- } | {
964
+ };
965
+ };
966
+ } & {
967
+ "/:workerId/destroy": {
968
+ $post: {
985
969
  output: {
986
970
  workerId: string;
987
971
  state: "complete" | "incomplete";
@@ -1010,6 +994,22 @@ export declare function createDelegationApp(routes: DelegationRoutes): import("h
1010
994
  discardWork?: true | undefined;
1011
995
  };
1012
996
  };
997
+ } | {
998
+ output: {
999
+ error: string;
1000
+ code?: "invalid_input" | undefined;
1001
+ };
1002
+ outputFormat: "json";
1003
+ status: 400;
1004
+ input: {
1005
+ param: {
1006
+ workerId: string;
1007
+ };
1008
+ } & {
1009
+ json: {
1010
+ discardWork?: true | undefined;
1011
+ };
1012
+ };
1013
1013
  } | {
1014
1014
  output: {
1015
1015
  workerId: string;
@@ -1045,11 +1045,13 @@ export declare function createDelegationApp(routes: DelegationRoutes): import("h
1045
1045
  "/:workerId/diff": {
1046
1046
  $get: {
1047
1047
  output: {
1048
- error: string;
1049
- code?: "invalid_input" | undefined;
1048
+ workerId: string;
1049
+ baselineSha: string;
1050
+ diff: string;
1051
+ truncated: boolean;
1050
1052
  };
1051
1053
  outputFormat: "json";
1052
- status: 400;
1054
+ status: 200;
1053
1055
  input: {
1054
1056
  param: {
1055
1057
  workerId: string;
@@ -1057,13 +1059,11 @@ export declare function createDelegationApp(routes: DelegationRoutes): import("h
1057
1059
  };
1058
1060
  } | {
1059
1061
  output: {
1060
- workerId: string;
1061
- baselineSha: string;
1062
- diff: string;
1063
- truncated: boolean;
1062
+ error: string;
1063
+ code?: "invalid_input" | undefined;
1064
1064
  };
1065
1065
  outputFormat: "json";
1066
- status: 200;
1066
+ status: 400;
1067
1067
  input: {
1068
1068
  param: {
1069
1069
  workerId: string;
@@ -30,19 +30,10 @@ export declare function createModelsRoutes(options: {
30
30
  };
31
31
  } | {
32
32
  output: {
33
- runner: string;
34
- models: {
35
- id: string;
36
- label: string;
37
- description: string;
38
- effortLevels?: import('../contract/index.js').EffortLevel[];
39
- }[];
40
- source: import("../core/runner-model-catalog.ts").ModelCatalogSource;
41
- stale: boolean;
42
- reason?: string;
33
+ error: string;
43
34
  };
44
35
  outputFormat: "json";
45
- status: import("hono/utils/http-status").ContentfulStatusCode;
36
+ status: 400;
46
37
  input: {
47
38
  query: {
48
39
  runner: string | string[];
@@ -63,10 +54,19 @@ export declare function createModelsRoutes(options: {
63
54
  };
64
55
  } | {
65
56
  output: {
66
- error: string;
57
+ runner: string;
58
+ models: {
59
+ id: string;
60
+ label: string;
61
+ description: string;
62
+ effortLevels?: import('../contract/index.js').EffortLevel[];
63
+ }[];
64
+ source: import("../core/runner-model-catalog.ts").ModelCatalogSource;
65
+ stale: boolean;
66
+ reason?: string;
67
67
  };
68
68
  outputFormat: "json";
69
- status: 400;
69
+ status: import("hono/utils/http-status").ContentfulStatusCode;
70
70
  input: {
71
71
  query: {
72
72
  runner: string | string[];
@@ -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;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hearsay-tools/squawk",
3
- "version": "0.18.0-dev.8095",
3
+ "version": "0.18.0-dev.8096",
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-dev.8095",
67
- "@open-mercato/cezar-contract": "0.18.0-dev.8095",
66
+ "@open-mercato/cezar-api-client": "0.18.0-dev.8096",
67
+ "@open-mercato/cezar-contract": "0.18.0-dev.8096",
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": "01d61bd2b4e38901f85897b238af3a0597562029"
84
+ "gitHead": "f22d612711108a0ff2e8c13d7af4bc600894297d"
85
85
  }