@hearsay-tools/squawk 0.18.0-dev.7999 → 0.18.0-dev.8004
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.
- package/dist/ci-wait/controller.d.ts +42 -42
- package/dist/delegation/routes.d.ts +65 -65
- package/dist/delegation/transport.d.ts +65 -65
- package/dist/server/models-routes.d.ts +13 -13
- package/dist/server/runner-install-routes.d.ts +10 -10
- package/dist/server/server.d.ts +1551 -1551
- package/package.json +4 -4
|
@@ -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
|
} & {
|
|
@@ -604,6 +604,18 @@ export declare function createDelegationApp(routes: DelegationRoutes): import("h
|
|
|
604
604
|
} & {
|
|
605
605
|
"/:workerId": {
|
|
606
606
|
$get: {
|
|
607
|
+
output: {
|
|
608
|
+
error: string;
|
|
609
|
+
code?: "invalid_input" | undefined;
|
|
610
|
+
};
|
|
611
|
+
outputFormat: "json";
|
|
612
|
+
status: 400;
|
|
613
|
+
input: {
|
|
614
|
+
param: {
|
|
615
|
+
workerId: string;
|
|
616
|
+
};
|
|
617
|
+
};
|
|
618
|
+
} | {
|
|
607
619
|
output: {
|
|
608
620
|
workerId: string;
|
|
609
621
|
settled: boolean;
|
|
@@ -721,7 +733,11 @@ export declare function createDelegationApp(routes: DelegationRoutes): import("h
|
|
|
721
733
|
workerId: string;
|
|
722
734
|
};
|
|
723
735
|
};
|
|
724
|
-
}
|
|
736
|
+
};
|
|
737
|
+
};
|
|
738
|
+
} & {
|
|
739
|
+
"/:workerId/collect": {
|
|
740
|
+
$post: {
|
|
725
741
|
output: {
|
|
726
742
|
error: string;
|
|
727
743
|
code?: "invalid_input" | undefined;
|
|
@@ -732,12 +748,10 @@ export declare function createDelegationApp(routes: DelegationRoutes): import("h
|
|
|
732
748
|
param: {
|
|
733
749
|
workerId: string;
|
|
734
750
|
};
|
|
751
|
+
} & {
|
|
752
|
+
json: Record<string, never>;
|
|
735
753
|
};
|
|
736
|
-
}
|
|
737
|
-
};
|
|
738
|
-
} & {
|
|
739
|
-
"/:workerId/collect": {
|
|
740
|
-
$post: {
|
|
754
|
+
} | {
|
|
741
755
|
output: {
|
|
742
756
|
workerId: string;
|
|
743
757
|
parentRunId: string;
|
|
@@ -860,7 +874,11 @@ export declare function createDelegationApp(routes: DelegationRoutes): import("h
|
|
|
860
874
|
} & {
|
|
861
875
|
json: Record<string, never>;
|
|
862
876
|
};
|
|
863
|
-
}
|
|
877
|
+
};
|
|
878
|
+
};
|
|
879
|
+
} & {
|
|
880
|
+
"/:workerId/steer": {
|
|
881
|
+
$post: {
|
|
864
882
|
output: {
|
|
865
883
|
error: string;
|
|
866
884
|
code?: "invalid_input" | undefined;
|
|
@@ -872,13 +890,11 @@ export declare function createDelegationApp(routes: DelegationRoutes): import("h
|
|
|
872
890
|
workerId: string;
|
|
873
891
|
};
|
|
874
892
|
} & {
|
|
875
|
-
json:
|
|
893
|
+
json: {
|
|
894
|
+
text: string;
|
|
895
|
+
};
|
|
876
896
|
};
|
|
877
|
-
}
|
|
878
|
-
};
|
|
879
|
-
} & {
|
|
880
|
-
"/:workerId/steer": {
|
|
881
|
-
$post: {
|
|
897
|
+
} | {
|
|
882
898
|
output: {
|
|
883
899
|
workerId: string;
|
|
884
900
|
state: "delivered" | "queued";
|
|
@@ -894,7 +910,11 @@ export declare function createDelegationApp(routes: DelegationRoutes): import("h
|
|
|
894
910
|
text: string;
|
|
895
911
|
};
|
|
896
912
|
};
|
|
897
|
-
}
|
|
913
|
+
};
|
|
914
|
+
};
|
|
915
|
+
} & {
|
|
916
|
+
"/:workerId/stop": {
|
|
917
|
+
$post: {
|
|
898
918
|
output: {
|
|
899
919
|
error: string;
|
|
900
920
|
code?: "invalid_input" | undefined;
|
|
@@ -906,15 +926,9 @@ export declare function createDelegationApp(routes: DelegationRoutes): import("h
|
|
|
906
926
|
workerId: string;
|
|
907
927
|
};
|
|
908
928
|
} & {
|
|
909
|
-
json:
|
|
910
|
-
text: string;
|
|
911
|
-
};
|
|
929
|
+
json: Record<string, never>;
|
|
912
930
|
};
|
|
913
|
-
}
|
|
914
|
-
};
|
|
915
|
-
} & {
|
|
916
|
-
"/:workerId/stop": {
|
|
917
|
-
$post: {
|
|
931
|
+
} | {
|
|
918
932
|
output: {
|
|
919
933
|
workerId: string;
|
|
920
934
|
state: "stopping" | "terminated";
|
|
@@ -928,7 +942,11 @@ export declare function createDelegationApp(routes: DelegationRoutes): import("h
|
|
|
928
942
|
} & {
|
|
929
943
|
json: Record<string, never>;
|
|
930
944
|
};
|
|
931
|
-
}
|
|
945
|
+
};
|
|
946
|
+
};
|
|
947
|
+
} & {
|
|
948
|
+
"/:workerId/destroy": {
|
|
949
|
+
$post: {
|
|
932
950
|
output: {
|
|
933
951
|
error: string;
|
|
934
952
|
code?: "invalid_input" | undefined;
|
|
@@ -940,13 +958,11 @@ export declare function createDelegationApp(routes: DelegationRoutes): import("h
|
|
|
940
958
|
workerId: string;
|
|
941
959
|
};
|
|
942
960
|
} & {
|
|
943
|
-
json:
|
|
961
|
+
json: {
|
|
962
|
+
discardWork?: true | undefined;
|
|
963
|
+
};
|
|
944
964
|
};
|
|
945
|
-
}
|
|
946
|
-
};
|
|
947
|
-
} & {
|
|
948
|
-
"/:workerId/destroy": {
|
|
949
|
-
$post: {
|
|
965
|
+
} | {
|
|
950
966
|
output: {
|
|
951
967
|
workerId: string;
|
|
952
968
|
state: "complete" | "incomplete";
|
|
@@ -975,22 +991,6 @@ export declare function createDelegationApp(routes: DelegationRoutes): import("h
|
|
|
975
991
|
discardWork?: true | undefined;
|
|
976
992
|
};
|
|
977
993
|
};
|
|
978
|
-
} | {
|
|
979
|
-
output: {
|
|
980
|
-
error: string;
|
|
981
|
-
code?: "invalid_input" | undefined;
|
|
982
|
-
};
|
|
983
|
-
outputFormat: "json";
|
|
984
|
-
status: 400;
|
|
985
|
-
input: {
|
|
986
|
-
param: {
|
|
987
|
-
workerId: string;
|
|
988
|
-
};
|
|
989
|
-
} & {
|
|
990
|
-
json: {
|
|
991
|
-
discardWork?: true | undefined;
|
|
992
|
-
};
|
|
993
|
-
};
|
|
994
994
|
} | {
|
|
995
995
|
output: {
|
|
996
996
|
workerId: string;
|
|
@@ -1026,13 +1026,11 @@ export declare function createDelegationApp(routes: DelegationRoutes): import("h
|
|
|
1026
1026
|
"/:workerId/diff": {
|
|
1027
1027
|
$get: {
|
|
1028
1028
|
output: {
|
|
1029
|
-
|
|
1030
|
-
|
|
1031
|
-
diff: string;
|
|
1032
|
-
truncated: boolean;
|
|
1029
|
+
error: string;
|
|
1030
|
+
code?: "invalid_input" | undefined;
|
|
1033
1031
|
};
|
|
1034
1032
|
outputFormat: "json";
|
|
1035
|
-
status:
|
|
1033
|
+
status: 400;
|
|
1036
1034
|
input: {
|
|
1037
1035
|
param: {
|
|
1038
1036
|
workerId: string;
|
|
@@ -1040,11 +1038,13 @@ export declare function createDelegationApp(routes: DelegationRoutes): import("h
|
|
|
1040
1038
|
};
|
|
1041
1039
|
} | {
|
|
1042
1040
|
output: {
|
|
1043
|
-
|
|
1044
|
-
|
|
1041
|
+
workerId: string;
|
|
1042
|
+
baselineSha: string;
|
|
1043
|
+
diff: string;
|
|
1044
|
+
truncated: boolean;
|
|
1045
1045
|
};
|
|
1046
1046
|
outputFormat: "json";
|
|
1047
|
-
status:
|
|
1047
|
+
status: 200;
|
|
1048
1048
|
input: {
|
|
1049
1049
|
param: {
|
|
1050
1050
|
workerId: string;
|
|
@@ -30,10 +30,19 @@ export declare function createModelsRoutes(options: {
|
|
|
30
30
|
};
|
|
31
31
|
} | {
|
|
32
32
|
output: {
|
|
33
|
-
|
|
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;
|
|
34
43
|
};
|
|
35
44
|
outputFormat: "json";
|
|
36
|
-
status:
|
|
45
|
+
status: import("hono/utils/http-status").ContentfulStatusCode;
|
|
37
46
|
input: {
|
|
38
47
|
query: {
|
|
39
48
|
runner: string | string[];
|
|
@@ -54,19 +63,10 @@ export declare function createModelsRoutes(options: {
|
|
|
54
63
|
};
|
|
55
64
|
} | {
|
|
56
65
|
output: {
|
|
57
|
-
|
|
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;
|
|
66
|
+
error: string;
|
|
67
67
|
};
|
|
68
68
|
outputFormat: "json";
|
|
69
|
-
status:
|
|
69
|
+
status: 400;
|
|
70
70
|
input: {
|
|
71
71
|
query: {
|
|
72
72
|
runner: string | string[];
|
|
@@ -51,15 +51,11 @@ export declare function createRunnerInstallRoutes(options: {
|
|
|
51
51
|
"/runner-install/:runner": {
|
|
52
52
|
$post: {
|
|
53
53
|
output: {
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
latestVersion: string | null;
|
|
57
|
-
updateAvailable: boolean;
|
|
58
|
-
phase: "activating" | "checking" | "downloading" | "extracting" | "failed" | "idle" | "removing" | "verifying";
|
|
59
|
-
error: string | null;
|
|
54
|
+
error: string;
|
|
55
|
+
code?: "invalid_input" | undefined;
|
|
60
56
|
};
|
|
61
57
|
outputFormat: "json";
|
|
62
|
-
status:
|
|
58
|
+
status: 400;
|
|
63
59
|
input: {
|
|
64
60
|
param: {
|
|
65
61
|
runner: string;
|
|
@@ -71,11 +67,15 @@ export declare function createRunnerInstallRoutes(options: {
|
|
|
71
67
|
};
|
|
72
68
|
} | {
|
|
73
69
|
output: {
|
|
74
|
-
|
|
75
|
-
|
|
70
|
+
supported: boolean;
|
|
71
|
+
installedVersion: string | null;
|
|
72
|
+
latestVersion: string | null;
|
|
73
|
+
updateAvailable: boolean;
|
|
74
|
+
phase: "activating" | "checking" | "downloading" | "extracting" | "failed" | "idle" | "removing" | "verifying";
|
|
75
|
+
error: string | null;
|
|
76
76
|
};
|
|
77
77
|
outputFormat: "json";
|
|
78
|
-
status:
|
|
78
|
+
status: 202;
|
|
79
79
|
input: {
|
|
80
80
|
param: {
|
|
81
81
|
runner: string;
|