@hearsay-tools/squawk 0.18.0-pr4299.8339 → 0.18.0-pr4300.8344
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/delegation/transport.d.ts +65 -65
- package/dist/server/activity-routes.d.ts +23 -23
- package/dist/server/models-routes.d.ts +12 -12
- package/dist/server/providers-routes.d.ts +58 -57
- package/dist/server/providers-routes.js +6 -6
- package/dist/server/providers-routes.js.map +1 -1
- package/dist/server/repo-routes.d.ts +34 -34
- package/dist/server/reports-api.d.ts +2 -2
- package/dist/server/runs-routes.d.ts +16 -16
- package/dist/server/server.d.ts +58 -58
- package/dist/server/server.js +1 -0
- package/dist/server/server.js.map +1 -1
- package/dist/server/workspace-routes.d.ts +84 -84
- package/package.json +4 -4
- package/web/dist/assets/{accounts-section-BOvRm84F.js → accounts-section-D3rKSj1e.js} +1 -1
- package/web/dist/assets/{activity-motion-BGnxXoSR.js → activity-motion-CFgok4CI.js} +1 -1
- package/web/dist/assets/{activity-route-Ydl82wRv.js → activity-route-HvdWBepL.js} +1 -1
- package/web/dist/assets/{agent-config-section-CWGkeds9.js → agent-config-section-DbmhTCJA.js} +1 -1
- package/web/dist/assets/{agent-defaults-section-LW-y7EbV.js → agent-defaults-section-5fBA2FMV.js} +1 -1
- package/web/dist/assets/{appearance-KQCxvweq.js → appearance-ZpysBpxH.js} +1 -1
- package/web/dist/assets/{archive-on-merge-field-CqcQ_V_s.js → archive-on-merge-field-BlGo3o7a.js} +1 -1
- package/web/dist/assets/{automations-route-EYAx7F5Y.js → automations-route-aINxoEQX.js} +1 -1
- package/web/dist/assets/{commit-diff-panel-Dn66n8t7.js → commit-diff-panel-BzAqXG0p.js} +1 -1
- package/web/dist/assets/{diff-BVksMz5Q.js → diff-lVUk7FAR.js} +2 -2
- package/web/dist/assets/{diff-view-CsEHWJZz.js → diff-view-B5RGiepv.js} +1 -1
- package/web/dist/assets/{file-preview-FAlEJ1cx.js → file-preview-Bn5u5k1W.js} +1 -1
- package/web/dist/assets/{folder-browser-B5OlxUTn.js → folder-browser-CffyHz8w.js} +1 -1
- package/web/dist/assets/{git-toolbar-RB61GwY7.js → git-toolbar-xLFz5nnr.js} +1 -1
- package/web/dist/assets/{github-B83lFoyq.js → github-DxiILmDg.js} +1 -1
- package/web/dist/assets/{global-activity-route-ByTd6-Co.js → global-activity-route-BmqMaZug.js} +1 -1
- package/web/dist/assets/{index-F6ngXb7T.js → index-DndX-kC-.js} +5 -5
- package/web/dist/assets/{label-I5VElFnm.js → label-6PgIe3Ny.js} +1 -1
- package/web/dist/assets/{markdown-C5LEInuz.js → markdown-DHYxiDex.js} +1 -1
- package/web/dist/assets/{notifications-section-BKk70JWC.js → notifications-section-xHvjaRxV.js} +1 -1
- package/web/dist/assets/{open-in-menu-B3c0Ti3f.js → open-in-menu-AZMtej8C.js} +1 -1
- package/web/dist/assets/{preview-pane-connected-cnI0j6jA.js → preview-pane-connected-C5Lsjf2P.js} +1 -1
- package/web/dist/assets/{project-location-Cy6GQdLI.js → project-location-DzOgHfcA.js} +1 -1
- package/web/dist/assets/{projects-section-6Hm2G07S.js → projects-section-0ov7IK9p.js} +1 -1
- package/web/dist/assets/{prompt-templates-section-Cuzl3OXR.js → prompt-templates-section-DgLWN4ZB.js} +1 -1
- package/web/dist/assets/{queries-fKV3_1l7.js → queries-DzwCG927.js} +1 -1
- package/web/dist/assets/{reference-chip-DlHw9fzn.js → reference-chip-BnIoiMgY.js} +1 -1
- package/web/dist/assets/{remote-settings-notice-gRZtO9f4.js → remote-settings-notice-kmlL_JEi.js} +1 -1
- package/web/dist/assets/{repo-git-CEOVYEqE.js → repo-git-D-L0KYwh.js} +1 -1
- package/web/dist/assets/{report-reader-xkm4C2I-.js → report-reader-Fb02sGC6.js} +1 -1
- package/web/dist/assets/{reports-Cn7Y5wuV.js → reports--yxm1Dbp.js} +1 -1
- package/web/dist/assets/{resources-section-DD674cR0.js → resources-section-CZu7afz7.js} +1 -1
- package/web/dist/assets/{run-header-DdDGRgle.js → run-header-Bajufo9w.js} +1 -1
- package/web/dist/assets/{settings-agent-picker-BUU7YTUe.js → settings-agent-picker-XdHS0cXP.js} +1 -1
- package/web/dist/assets/{settings-shell-BEU3xNKX.js → settings-shell-63smMna1.js} +1 -1
- package/web/dist/assets/{sidebar-section-CsdpZ2HY.js → sidebar-section-Dgf9Tda6.js} +1 -1
- package/web/dist/assets/{skills-DAV92Dfo.js → skills-CVoGqJeT.js} +1 -1
- package/web/dist/assets/{task-changes-DDT3_Ewp.js → task-changes-Cd30VNwk.js} +1 -1
- package/web/dist/assets/{task-commits-D3JKpobQ.js → task-commits-33kwaiVP.js} +1 -1
- package/web/dist/assets/{task-files-CpPiI1PW.js → task-files-W2NkAX0s.js} +1 -1
- package/web/dist/assets/{task-github-item-CdLRcMoD.js → task-github-item-C7dEQxMN.js} +1 -1
- package/web/dist/assets/{task-groups-JRTdCEHW.js → task-groups-DoiPFEfM.js} +1 -1
- package/web/dist/assets/{task-thread-IH9IBhzt.js → task-thread-Bi5cKYmZ.js} +1 -1
- package/web/dist/assets/{tasks-table-BzZggRo7.js → tasks-table-CmESFng9.js} +1 -1
- package/web/dist/assets/{thread-state-Cbr1DOuT.js → thread-state-DI7JLoTx.js} +1 -1
- package/web/dist/assets/{use-hand-to-agent-state-Bz9OEGmR.js → use-hand-to-agent-state-B869bBKO.js} +1 -1
- package/web/dist/assets/{workflows-tzdllpoB.js → workflows-CeRdeF9n.js} +1 -1
- package/web/dist/assets/{workspace-tools-8UTakmy2.js → workspace-tools-YqTAoyv7.js} +1 -1
- package/web/dist/assets/{worktrees-section-BEQY8IIx.js → worktrees-section-9fwC5DGp.js} +1 -1
- package/web/dist/index.html +8 -8
|
@@ -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
|
} & {
|
|
@@ -652,18 +652,6 @@ export declare function createDelegationApp(routes: DelegationRoutes): import("h
|
|
|
652
652
|
} & {
|
|
653
653
|
"/:workerId": {
|
|
654
654
|
$get: {
|
|
655
|
-
output: {
|
|
656
|
-
error: string;
|
|
657
|
-
code?: "invalid_input" | undefined;
|
|
658
|
-
};
|
|
659
|
-
outputFormat: "json";
|
|
660
|
-
status: 400;
|
|
661
|
-
input: {
|
|
662
|
-
param: {
|
|
663
|
-
workerId: string;
|
|
664
|
-
};
|
|
665
|
-
};
|
|
666
|
-
} | {
|
|
667
655
|
output: {
|
|
668
656
|
workerId: string;
|
|
669
657
|
settled: boolean;
|
|
@@ -788,11 +776,7 @@ export declare function createDelegationApp(routes: DelegationRoutes): import("h
|
|
|
788
776
|
workerId: string;
|
|
789
777
|
};
|
|
790
778
|
};
|
|
791
|
-
}
|
|
792
|
-
};
|
|
793
|
-
} & {
|
|
794
|
-
"/:workerId/collect": {
|
|
795
|
-
$post: {
|
|
779
|
+
} | {
|
|
796
780
|
output: {
|
|
797
781
|
error: string;
|
|
798
782
|
code?: "invalid_input" | undefined;
|
|
@@ -803,10 +787,12 @@ export declare function createDelegationApp(routes: DelegationRoutes): import("h
|
|
|
803
787
|
param: {
|
|
804
788
|
workerId: string;
|
|
805
789
|
};
|
|
806
|
-
} & {
|
|
807
|
-
json: Record<string, never>;
|
|
808
790
|
};
|
|
809
|
-
}
|
|
791
|
+
};
|
|
792
|
+
};
|
|
793
|
+
} & {
|
|
794
|
+
"/:workerId/collect": {
|
|
795
|
+
$post: {
|
|
810
796
|
output: {
|
|
811
797
|
workerId: string;
|
|
812
798
|
parentRunId: string;
|
|
@@ -929,11 +915,7 @@ export declare function createDelegationApp(routes: DelegationRoutes): import("h
|
|
|
929
915
|
} & {
|
|
930
916
|
json: Record<string, never>;
|
|
931
917
|
};
|
|
932
|
-
}
|
|
933
|
-
};
|
|
934
|
-
} & {
|
|
935
|
-
"/:workerId/steer": {
|
|
936
|
-
$post: {
|
|
918
|
+
} | {
|
|
937
919
|
output: {
|
|
938
920
|
error: string;
|
|
939
921
|
code?: "invalid_input" | undefined;
|
|
@@ -945,11 +927,13 @@ export declare function createDelegationApp(routes: DelegationRoutes): import("h
|
|
|
945
927
|
workerId: string;
|
|
946
928
|
};
|
|
947
929
|
} & {
|
|
948
|
-
json:
|
|
949
|
-
text: string;
|
|
950
|
-
};
|
|
930
|
+
json: Record<string, never>;
|
|
951
931
|
};
|
|
952
|
-
}
|
|
932
|
+
};
|
|
933
|
+
};
|
|
934
|
+
} & {
|
|
935
|
+
"/:workerId/steer": {
|
|
936
|
+
$post: {
|
|
953
937
|
output: {
|
|
954
938
|
workerId: string;
|
|
955
939
|
state: "delivered" | "queued";
|
|
@@ -965,11 +949,7 @@ export declare function createDelegationApp(routes: DelegationRoutes): import("h
|
|
|
965
949
|
text: string;
|
|
966
950
|
};
|
|
967
951
|
};
|
|
968
|
-
}
|
|
969
|
-
};
|
|
970
|
-
} & {
|
|
971
|
-
"/:workerId/stop": {
|
|
972
|
-
$post: {
|
|
952
|
+
} | {
|
|
973
953
|
output: {
|
|
974
954
|
error: string;
|
|
975
955
|
code?: "invalid_input" | undefined;
|
|
@@ -981,9 +961,15 @@ export declare function createDelegationApp(routes: DelegationRoutes): import("h
|
|
|
981
961
|
workerId: string;
|
|
982
962
|
};
|
|
983
963
|
} & {
|
|
984
|
-
json:
|
|
964
|
+
json: {
|
|
965
|
+
text: string;
|
|
966
|
+
};
|
|
985
967
|
};
|
|
986
|
-
}
|
|
968
|
+
};
|
|
969
|
+
};
|
|
970
|
+
} & {
|
|
971
|
+
"/:workerId/stop": {
|
|
972
|
+
$post: {
|
|
987
973
|
output: {
|
|
988
974
|
workerId: string;
|
|
989
975
|
state: "stopping" | "terminated";
|
|
@@ -997,11 +983,7 @@ export declare function createDelegationApp(routes: DelegationRoutes): import("h
|
|
|
997
983
|
} & {
|
|
998
984
|
json: Record<string, never>;
|
|
999
985
|
};
|
|
1000
|
-
}
|
|
1001
|
-
};
|
|
1002
|
-
} & {
|
|
1003
|
-
"/:workerId/destroy": {
|
|
1004
|
-
$post: {
|
|
986
|
+
} | {
|
|
1005
987
|
output: {
|
|
1006
988
|
error: string;
|
|
1007
989
|
code?: "invalid_input" | undefined;
|
|
@@ -1013,11 +995,13 @@ export declare function createDelegationApp(routes: DelegationRoutes): import("h
|
|
|
1013
995
|
workerId: string;
|
|
1014
996
|
};
|
|
1015
997
|
} & {
|
|
1016
|
-
json:
|
|
1017
|
-
discardWork?: true | undefined;
|
|
1018
|
-
};
|
|
998
|
+
json: Record<string, never>;
|
|
1019
999
|
};
|
|
1020
|
-
}
|
|
1000
|
+
};
|
|
1001
|
+
};
|
|
1002
|
+
} & {
|
|
1003
|
+
"/:workerId/destroy": {
|
|
1004
|
+
$post: {
|
|
1021
1005
|
output: {
|
|
1022
1006
|
workerId: string;
|
|
1023
1007
|
state: "complete" | "incomplete";
|
|
@@ -1046,6 +1030,22 @@ export declare function createDelegationApp(routes: DelegationRoutes): import("h
|
|
|
1046
1030
|
discardWork?: true | undefined;
|
|
1047
1031
|
};
|
|
1048
1032
|
};
|
|
1033
|
+
} | {
|
|
1034
|
+
output: {
|
|
1035
|
+
error: string;
|
|
1036
|
+
code?: "invalid_input" | undefined;
|
|
1037
|
+
};
|
|
1038
|
+
outputFormat: "json";
|
|
1039
|
+
status: 400;
|
|
1040
|
+
input: {
|
|
1041
|
+
param: {
|
|
1042
|
+
workerId: string;
|
|
1043
|
+
};
|
|
1044
|
+
} & {
|
|
1045
|
+
json: {
|
|
1046
|
+
discardWork?: true | undefined;
|
|
1047
|
+
};
|
|
1048
|
+
};
|
|
1049
1049
|
} | {
|
|
1050
1050
|
output: {
|
|
1051
1051
|
workerId: string;
|
|
@@ -1081,11 +1081,13 @@ export declare function createDelegationApp(routes: DelegationRoutes): import("h
|
|
|
1081
1081
|
"/:workerId/diff": {
|
|
1082
1082
|
$get: {
|
|
1083
1083
|
output: {
|
|
1084
|
-
|
|
1085
|
-
|
|
1084
|
+
workerId: string;
|
|
1085
|
+
baselineSha: string;
|
|
1086
|
+
diff: string;
|
|
1087
|
+
truncated: boolean;
|
|
1086
1088
|
};
|
|
1087
1089
|
outputFormat: "json";
|
|
1088
|
-
status:
|
|
1090
|
+
status: 200;
|
|
1089
1091
|
input: {
|
|
1090
1092
|
param: {
|
|
1091
1093
|
workerId: string;
|
|
@@ -1093,13 +1095,11 @@ export declare function createDelegationApp(routes: DelegationRoutes): import("h
|
|
|
1093
1095
|
};
|
|
1094
1096
|
} | {
|
|
1095
1097
|
output: {
|
|
1096
|
-
|
|
1097
|
-
|
|
1098
|
-
diff: string;
|
|
1099
|
-
truncated: boolean;
|
|
1098
|
+
error: string;
|
|
1099
|
+
code?: "invalid_input" | undefined;
|
|
1100
1100
|
};
|
|
1101
1101
|
outputFormat: "json";
|
|
1102
|
-
status:
|
|
1102
|
+
status: 400;
|
|
1103
1103
|
input: {
|
|
1104
1104
|
param: {
|
|
1105
1105
|
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: {
|
|
@@ -327,6 +304,29 @@ export declare function createActivityRoutes(routeDeps: ActivityRouteDeps): impo
|
|
|
327
304
|
project?: string | undefined;
|
|
328
305
|
};
|
|
329
306
|
};
|
|
307
|
+
} | {
|
|
308
|
+
output: {
|
|
309
|
+
error: string;
|
|
310
|
+
code?: "invalid_input" | undefined;
|
|
311
|
+
};
|
|
312
|
+
outputFormat: "json";
|
|
313
|
+
status: 400;
|
|
314
|
+
input: {
|
|
315
|
+
query: {
|
|
316
|
+
project?: string | undefined;
|
|
317
|
+
};
|
|
318
|
+
};
|
|
319
|
+
} | {
|
|
320
|
+
output: {
|
|
321
|
+
error: string;
|
|
322
|
+
};
|
|
323
|
+
outputFormat: "json";
|
|
324
|
+
status: 404 | 409 | 503;
|
|
325
|
+
input: {
|
|
326
|
+
query: {
|
|
327
|
+
project?: string | undefined;
|
|
328
|
+
};
|
|
329
|
+
};
|
|
330
330
|
};
|
|
331
331
|
};
|
|
332
332
|
}, "/", "/workspace/activity">;
|
|
@@ -22,6 +22,18 @@ export declare function createModelsRoutes(options: {
|
|
|
22
22
|
profileId?: string | undefined;
|
|
23
23
|
};
|
|
24
24
|
};
|
|
25
|
+
} | {
|
|
26
|
+
output: {
|
|
27
|
+
error: string;
|
|
28
|
+
};
|
|
29
|
+
outputFormat: "json";
|
|
30
|
+
status: 400;
|
|
31
|
+
input: {
|
|
32
|
+
query: {
|
|
33
|
+
runner: string | string[];
|
|
34
|
+
profileId?: string | undefined;
|
|
35
|
+
};
|
|
36
|
+
};
|
|
25
37
|
} | {
|
|
26
38
|
output: {
|
|
27
39
|
runner: string;
|
|
@@ -43,18 +55,6 @@ export declare function createModelsRoutes(options: {
|
|
|
43
55
|
profileId?: string | undefined;
|
|
44
56
|
};
|
|
45
57
|
};
|
|
46
|
-
} | {
|
|
47
|
-
output: {
|
|
48
|
-
error: string;
|
|
49
|
-
};
|
|
50
|
-
outputFormat: "json";
|
|
51
|
-
status: 400;
|
|
52
|
-
input: {
|
|
53
|
-
query: {
|
|
54
|
-
runner: string | string[];
|
|
55
|
-
profileId?: string | undefined;
|
|
56
|
-
};
|
|
57
|
-
};
|
|
58
58
|
};
|
|
59
59
|
};
|
|
60
60
|
}, "/", "/models">;
|
|
@@ -70,18 +70,10 @@ export declare function createProvidersRoutes(deps: ProvidersRouteDeps): import(
|
|
|
70
70
|
};
|
|
71
71
|
} | {
|
|
72
72
|
output: {
|
|
73
|
-
|
|
74
|
-
requiresAccountHome?: boolean | undefined;
|
|
75
|
-
provider: string;
|
|
76
|
-
status: "connected" | "disconnected" | "not-installed" | "unknown";
|
|
77
|
-
enabled?: boolean | undefined;
|
|
78
|
-
hint?: string | undefined;
|
|
79
|
-
authFailureId?: string | undefined;
|
|
80
|
-
profileId?: string | undefined;
|
|
81
|
-
}[];
|
|
73
|
+
error: string;
|
|
82
74
|
};
|
|
83
75
|
outputFormat: "json";
|
|
84
|
-
status:
|
|
76
|
+
status: 500;
|
|
85
77
|
input: {
|
|
86
78
|
param: {
|
|
87
79
|
provider: string;
|
|
@@ -93,10 +85,18 @@ export declare function createProvidersRoutes(deps: ProvidersRouteDeps): import(
|
|
|
93
85
|
};
|
|
94
86
|
} | {
|
|
95
87
|
output: {
|
|
96
|
-
|
|
88
|
+
providers: {
|
|
89
|
+
requiresAccountHome?: boolean | undefined;
|
|
90
|
+
provider: string;
|
|
91
|
+
status: "connected" | "disconnected" | "not-installed" | "unknown";
|
|
92
|
+
enabled?: boolean | undefined;
|
|
93
|
+
hint?: string | undefined;
|
|
94
|
+
authFailureId?: string | undefined;
|
|
95
|
+
profileId?: string | undefined;
|
|
96
|
+
}[];
|
|
97
97
|
};
|
|
98
98
|
outputFormat: "json";
|
|
99
|
-
status:
|
|
99
|
+
status: import("hono/utils/http-status").ContentfulStatusCode;
|
|
100
100
|
input: {
|
|
101
101
|
param: {
|
|
102
102
|
provider: string;
|
|
@@ -128,18 +128,10 @@ export declare function createProvidersRoutes(deps: ProvidersRouteDeps): import(
|
|
|
128
128
|
};
|
|
129
129
|
} | {
|
|
130
130
|
output: {
|
|
131
|
-
|
|
132
|
-
requiresAccountHome?: boolean | undefined;
|
|
133
|
-
provider: string;
|
|
134
|
-
status: "connected" | "disconnected" | "not-installed" | "unknown";
|
|
135
|
-
enabled?: boolean | undefined;
|
|
136
|
-
hint?: string | undefined;
|
|
137
|
-
authFailureId?: string | undefined;
|
|
138
|
-
profileId?: string | undefined;
|
|
139
|
-
}[];
|
|
131
|
+
error: string;
|
|
140
132
|
};
|
|
141
133
|
outputFormat: "json";
|
|
142
|
-
status:
|
|
134
|
+
status: 409;
|
|
143
135
|
input: {
|
|
144
136
|
param: {
|
|
145
137
|
provider: string;
|
|
@@ -151,10 +143,18 @@ export declare function createProvidersRoutes(deps: ProvidersRouteDeps): import(
|
|
|
151
143
|
};
|
|
152
144
|
} | {
|
|
153
145
|
output: {
|
|
154
|
-
|
|
146
|
+
providers: {
|
|
147
|
+
requiresAccountHome?: boolean | undefined;
|
|
148
|
+
provider: string;
|
|
149
|
+
status: "connected" | "disconnected" | "not-installed" | "unknown";
|
|
150
|
+
enabled?: boolean | undefined;
|
|
151
|
+
hint?: string | undefined;
|
|
152
|
+
authFailureId?: string | undefined;
|
|
153
|
+
profileId?: string | undefined;
|
|
154
|
+
}[];
|
|
155
155
|
};
|
|
156
156
|
outputFormat: "json";
|
|
157
|
-
status:
|
|
157
|
+
status: import("hono/utils/http-status").ContentfulStatusCode;
|
|
158
158
|
input: {
|
|
159
159
|
param: {
|
|
160
160
|
provider: string;
|
|
@@ -173,7 +173,7 @@ export declare function createProvidersRoutes(deps: ProvidersRouteDeps): import(
|
|
|
173
173
|
error: string;
|
|
174
174
|
};
|
|
175
175
|
outputFormat: "json";
|
|
176
|
-
status:
|
|
176
|
+
status: 400;
|
|
177
177
|
input: {
|
|
178
178
|
json: {
|
|
179
179
|
provider: string;
|
|
@@ -185,7 +185,7 @@ export declare function createProvidersRoutes(deps: ProvidersRouteDeps): import(
|
|
|
185
185
|
error: string;
|
|
186
186
|
};
|
|
187
187
|
outputFormat: "json";
|
|
188
|
-
status:
|
|
188
|
+
status: 409;
|
|
189
189
|
input: {
|
|
190
190
|
json: {
|
|
191
191
|
provider: string;
|
|
@@ -235,6 +235,7 @@ export declare function createProvidersRoutes(deps: ProvidersRouteDeps): import(
|
|
|
235
235
|
};
|
|
236
236
|
}, "/", "/providers/connect">;
|
|
237
237
|
export interface AgentProfilesRouteDeps {
|
|
238
|
+
bootRoot: string;
|
|
238
239
|
home: Home;
|
|
239
240
|
capabilities: ServerCapabilitiesFn;
|
|
240
241
|
providerAuth: ProviderAuthService;
|
|
@@ -289,10 +290,28 @@ export declare function createAgentProfilesRoutes(deps: AgentProfilesRouteDeps):
|
|
|
289
290
|
"/workspace/agent-profiles": {
|
|
290
291
|
$post: {
|
|
291
292
|
output: {
|
|
292
|
-
|
|
293
|
+
profile: {
|
|
294
|
+
id: string;
|
|
295
|
+
provider: string;
|
|
296
|
+
label: string;
|
|
297
|
+
configDir?: string | undefined;
|
|
298
|
+
path?: string | undefined;
|
|
299
|
+
exists: boolean;
|
|
300
|
+
looksValid: boolean;
|
|
301
|
+
isDefault: boolean;
|
|
302
|
+
status?: {
|
|
303
|
+
requiresAccountHome?: boolean | undefined;
|
|
304
|
+
provider: string;
|
|
305
|
+
status: "connected" | "disconnected" | "not-installed" | "unknown";
|
|
306
|
+
enabled?: boolean | undefined;
|
|
307
|
+
hint?: string | undefined;
|
|
308
|
+
authFailureId?: string | undefined;
|
|
309
|
+
profileId?: string | undefined;
|
|
310
|
+
} | undefined;
|
|
311
|
+
};
|
|
293
312
|
};
|
|
294
313
|
outputFormat: "json";
|
|
295
|
-
status:
|
|
314
|
+
status: 201;
|
|
296
315
|
input: {
|
|
297
316
|
json: {
|
|
298
317
|
provider: string;
|
|
@@ -318,7 +337,7 @@ export declare function createAgentProfilesRoutes(deps: AgentProfilesRouteDeps):
|
|
|
318
337
|
error: string;
|
|
319
338
|
};
|
|
320
339
|
outputFormat: "json";
|
|
321
|
-
status:
|
|
340
|
+
status: 409;
|
|
322
341
|
input: {
|
|
323
342
|
json: {
|
|
324
343
|
provider: string;
|
|
@@ -328,28 +347,10 @@ export declare function createAgentProfilesRoutes(deps: AgentProfilesRouteDeps):
|
|
|
328
347
|
};
|
|
329
348
|
} | {
|
|
330
349
|
output: {
|
|
331
|
-
|
|
332
|
-
id: string;
|
|
333
|
-
provider: string;
|
|
334
|
-
label: string;
|
|
335
|
-
configDir?: string | undefined;
|
|
336
|
-
path?: string | undefined;
|
|
337
|
-
exists: boolean;
|
|
338
|
-
looksValid: boolean;
|
|
339
|
-
isDefault: boolean;
|
|
340
|
-
status?: {
|
|
341
|
-
requiresAccountHome?: boolean | undefined;
|
|
342
|
-
provider: string;
|
|
343
|
-
status: "connected" | "disconnected" | "not-installed" | "unknown";
|
|
344
|
-
enabled?: boolean | undefined;
|
|
345
|
-
hint?: string | undefined;
|
|
346
|
-
authFailureId?: string | undefined;
|
|
347
|
-
profileId?: string | undefined;
|
|
348
|
-
} | undefined;
|
|
349
|
-
};
|
|
350
|
+
error: string;
|
|
350
351
|
};
|
|
351
352
|
outputFormat: "json";
|
|
352
|
-
status:
|
|
353
|
+
status: 500;
|
|
353
354
|
input: {
|
|
354
355
|
json: {
|
|
355
356
|
provider: string;
|
|
@@ -383,7 +384,7 @@ export declare function createAgentProfilesRoutes(deps: AgentProfilesRouteDeps):
|
|
|
383
384
|
error: string;
|
|
384
385
|
};
|
|
385
386
|
outputFormat: "json";
|
|
386
|
-
status:
|
|
387
|
+
status: 400;
|
|
387
388
|
input: {
|
|
388
389
|
param: {
|
|
389
390
|
id: string;
|
|
@@ -399,7 +400,7 @@ export declare function createAgentProfilesRoutes(deps: AgentProfilesRouteDeps):
|
|
|
399
400
|
error: string;
|
|
400
401
|
};
|
|
401
402
|
outputFormat: "json";
|
|
402
|
-
status:
|
|
403
|
+
status: 404;
|
|
403
404
|
input: {
|
|
404
405
|
param: {
|
|
405
406
|
id: string;
|
|
@@ -415,7 +416,7 @@ export declare function createAgentProfilesRoutes(deps: AgentProfilesRouteDeps):
|
|
|
415
416
|
error: string;
|
|
416
417
|
};
|
|
417
418
|
outputFormat: "json";
|
|
418
|
-
status:
|
|
419
|
+
status: 409;
|
|
419
420
|
input: {
|
|
420
421
|
param: {
|
|
421
422
|
id: string;
|
|
@@ -543,7 +544,7 @@ export declare function createAgentProfilesRoutes(deps: AgentProfilesRouteDeps):
|
|
|
543
544
|
error: string;
|
|
544
545
|
};
|
|
545
546
|
outputFormat: "json";
|
|
546
|
-
status:
|
|
547
|
+
status: 400;
|
|
547
548
|
input: {
|
|
548
549
|
json: {
|
|
549
550
|
projectId: string;
|
|
@@ -556,7 +557,7 @@ export declare function createAgentProfilesRoutes(deps: AgentProfilesRouteDeps):
|
|
|
556
557
|
error: string;
|
|
557
558
|
};
|
|
558
559
|
outputFormat: "json";
|
|
559
|
-
status:
|
|
560
|
+
status: 404;
|
|
560
561
|
input: {
|
|
561
562
|
json: {
|
|
562
563
|
projectId: string;
|
|
@@ -620,7 +621,7 @@ export declare function createAgentProfilesRoutes(deps: AgentProfilesRouteDeps):
|
|
|
620
621
|
error: string;
|
|
621
622
|
};
|
|
622
623
|
outputFormat: "json";
|
|
623
|
-
status:
|
|
624
|
+
status: 404;
|
|
624
625
|
input: {
|
|
625
626
|
param: {
|
|
626
627
|
id: string;
|
|
@@ -631,7 +632,7 @@ export declare function createAgentProfilesRoutes(deps: AgentProfilesRouteDeps):
|
|
|
631
632
|
error: string;
|
|
632
633
|
};
|
|
633
634
|
outputFormat: "json";
|
|
634
|
-
status:
|
|
635
|
+
status: 409;
|
|
635
636
|
input: {
|
|
636
637
|
param: {
|
|
637
638
|
id: string;
|
|
@@ -642,7 +643,7 @@ export declare function createAgentProfilesRoutes(deps: AgentProfilesRouteDeps):
|
|
|
642
643
|
error: string;
|
|
643
644
|
};
|
|
644
645
|
outputFormat: "json";
|
|
645
|
-
status:
|
|
646
|
+
status: 500;
|
|
646
647
|
input: {
|
|
647
648
|
param: {
|
|
648
649
|
id: string;
|
|
@@ -108,7 +108,7 @@ export function createProvidersRoutes(deps) {
|
|
|
108
108
|
});
|
|
109
109
|
}
|
|
110
110
|
export function createAgentProfilesRoutes(deps) {
|
|
111
|
-
const { home, capabilities, providerAuth, providerStatus, invalidateHostModels, workspaceProjects, resolveWorkspaceProfile, projectRootFor, } = deps;
|
|
111
|
+
const { bootRoot, home, capabilities, providerAuth, providerStatus, invalidateHostModels, workspaceProjects, resolveWorkspaceProfile, projectRootFor, } = deps;
|
|
112
112
|
const agentProfileBody = async (profile, includePaths) => ({
|
|
113
113
|
id: profile.id,
|
|
114
114
|
provider: profile.provider,
|
|
@@ -136,9 +136,8 @@ export function createAgentProfilesRoutes(deps) {
|
|
|
136
136
|
assign(project.id, project.root);
|
|
137
137
|
if (bootId !== undefined) {
|
|
138
138
|
if (out[bootId] === undefined) {
|
|
139
|
-
const
|
|
140
|
-
|
|
141
|
-
assign(bootId, bootRoot);
|
|
139
|
+
const resolvedBootRoot = (await projectRootFor(bootId).catch(() => null)) ?? bootRoot;
|
|
140
|
+
assign(bootId, resolvedBootRoot);
|
|
142
141
|
}
|
|
143
142
|
if (out[bootId] !== undefined)
|
|
144
143
|
out.default = out[bootId];
|
|
@@ -342,7 +341,8 @@ export function createAgentProfilesRoutes(deps) {
|
|
|
342
341
|
}, home);
|
|
343
342
|
}
|
|
344
343
|
catch (err) {
|
|
345
|
-
|
|
344
|
+
console.error('[hsq] failed to save agent account selection:', err);
|
|
345
|
+
return c.json({ error: 'Could not save account selection.' }, 500);
|
|
346
346
|
}
|
|
347
347
|
return c.json({
|
|
348
348
|
selections: capabilities().settingsAdmin ? store.selections : {},
|
|
@@ -362,7 +362,7 @@ export function createAgentProfilesRoutes(deps) {
|
|
|
362
362
|
}, home);
|
|
363
363
|
}
|
|
364
364
|
catch (err) {
|
|
365
|
-
return c.json({ error:
|
|
365
|
+
return c.json({ error: writeErrorMessage(err) }, 500);
|
|
366
366
|
}
|
|
367
367
|
if (!removed)
|
|
368
368
|
return c.json({ error: `unknown account: ${id}` }, 404);
|