@hearsay-tools/squawk 0.19.0-pr4579.9096 → 0.19.0-pr4588.9103
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/contract/hosts.d.ts +5 -47
- package/dist/contract/index.js +1 -19
- package/dist/delegation/transport.d.ts +78 -78
- package/dist/features/automations/automations-routes.d.ts +150 -150
- package/dist/features/hosts/cli.d.ts +3 -13
- package/dist/features/hosts/cli.js +27 -199
- package/dist/features/hosts/cli.js.map +1 -1
- package/dist/features/hosts/host-server-cli.js +3 -21
- package/dist/features/hosts/host-server-cli.js.map +1 -1
- package/dist/features/hosts/host-server.d.ts +1 -10
- package/dist/features/hosts/host-server.js +0 -74
- package/dist/features/hosts/host-server.js.map +1 -1
- package/dist/features/hosts/index.d.ts +2 -4
- package/dist/features/hosts/index.js +2 -14
- package/dist/features/hosts/index.js.map +1 -1
- package/dist/features/hosts/registry.d.ts +0 -28
- package/dist/features/hosts/registry.js +1 -42
- package/dist/features/hosts/registry.js.map +1 -1
- package/dist/features/hosts/routes.d.ts +45 -47
- package/dist/features/hosts/routes.js +7 -14
- package/dist/features/hosts/routes.js.map +1 -1
- package/dist/features/webhooks/routes.d.ts +38 -38
- package/dist/server/repo-routes.d.ts +52 -52
- package/dist/server/runs-routes.d.ts +16 -16
- package/package.json +4 -4
- package/web/dist/assets/{accounts-section-DrA0kndh.js → accounts-section-DL3fIJ3Y.js} +1 -1
- package/web/dist/assets/{activity-motion-C23PnhhH.js → activity-motion-nt1FXMrF.js} +1 -1
- package/web/dist/assets/{activity-route-CWGPbwtG.js → activity-route-xVy2K_Fi.js} +1 -1
- package/web/dist/assets/{agent-config-section-DWZQ2DSW.js → agent-config-section-nFavGeR2.js} +1 -1
- package/web/dist/assets/{agent-defaults-section-Da4tKbp7.js → agent-defaults-section-CN0pC4xG.js} +1 -1
- package/web/dist/assets/{appearance-Bm4ePfiH.js → appearance-zGuTSgIy.js} +1 -1
- package/web/dist/assets/{archive-on-merge-field-DuRmMR6k.js → archive-on-merge-field-BaKNf-j4.js} +1 -1
- package/web/dist/assets/{ask-card-vM_Z-WAg.js → ask-card-huOW3GMV.js} +3 -3
- package/web/dist/assets/{automations-route-B8zD3wux.js → automations-route-GBaRU2IS.js} +2 -2
- package/web/dist/assets/{commit-list-lwVhwbS8.js → commit-list-x-75vYko.js} +1 -1
- package/web/dist/assets/{diff-CC5UqjNZ.js → diff-Bhh_CAtI.js} +2 -2
- package/web/dist/assets/{diff-controls-C8KWZ5S-.js → diff-controls-BOnMrLuP.js} +1 -1
- package/web/dist/assets/{diff-view-DiuQQoKq.js → diff-view-DiPeQi9D.js} +1 -1
- package/web/dist/assets/{discard-changes-dialog-CX7M4k9n.js → discard-changes-dialog-BMofaFwH.js} +1 -1
- package/web/dist/assets/{file-preview-C_0CRYAr.js → file-preview-ChwOU1Uc.js} +1 -1
- package/web/dist/assets/{git-toolbar-PM540i_A.js → git-toolbar-BdhjSQLm.js} +1 -1
- package/web/dist/assets/{github-CeBvZzjo.js → github-DqXXUCBy.js} +1 -1
- package/web/dist/assets/{global-activity-route-CiTt7W6o.js → global-activity-route-CZJRu2G1.js} +1 -1
- package/web/dist/assets/index-CbSPKU4g.js +21 -0
- package/web/dist/assets/{markdown-CqzDs1kO.js → markdown-DMFXz4xY.js} +1 -1
- package/web/dist/assets/{option-select-CDOKbUov.js → option-select-Cq_bhgu6.js} +1 -1
- package/web/dist/assets/{preferences-section-cdbIMfEU.js → preferences-section-CHhUi72X.js} +1 -1
- package/web/dist/assets/{preview-pane-connected-BcU9ryyW.js → preview-pane-connected-DH9rjYI7.js} +2 -2
- package/web/dist/assets/{project-location-BpBbcl3v.js → project-location-CSXt_Yk6.js} +1 -1
- package/web/dist/assets/{projects-section-CX1WJq4d.js → projects-section-CSBdiEM-.js} +1 -1
- package/web/dist/assets/{prompt-templates-section-DrQthAY7.js → prompt-templates-section-DaJbpROr.js} +2 -2
- package/web/dist/assets/{remote-settings-notice-_MtFnktv.js → remote-settings-notice-Chx8LxP6.js} +1 -1
- package/web/dist/assets/repo-git-D8Sn_897.js +1 -0
- package/web/dist/assets/{report-reader-iboN3k6l.js → report-reader-Ccymt9jp.js} +1 -1
- package/web/dist/assets/reports-GvAw7DYA.js +1 -0
- package/web/dist/assets/{resources-section-BmDbIpaO.js → resources-section-BWqoBxtC.js} +1 -1
- package/web/dist/assets/{review-notes-drafts-DXxIudVB.js → review-notes-drafts-BKzyNpXo.js} +1 -1
- package/web/dist/assets/{review-panel-BjWbFGev.js → review-panel-DxAlY6hQ.js} +1 -1
- package/web/dist/assets/{review-strip-QIghY88F.js → review-strip-QDKNuOm9.js} +1 -1
- package/web/dist/assets/run-header-BS7SXYup.js +2 -0
- package/web/dist/assets/{select-BxuV2GlN.js → select-DVQEFrtF.js} +1 -1
- package/web/dist/assets/{session-context-section-OLW5UTvx.js → session-context-section-YxCcDlRl.js} +2 -2
- package/web/dist/assets/{settings-agent-picker-Dasyc6Qo.js → settings-agent-picker-CDyluV99.js} +1 -1
- package/web/dist/assets/{settings-save-bar-Mrc6Vm7P.js → settings-save-bar-CMJaZn_P.js} +1 -1
- package/web/dist/assets/settings-shell-DHVB7FYt.js +1 -0
- package/web/dist/assets/{sidebar-section-CVNvjM29.js → sidebar-section-hphp-63V.js} +1 -1
- package/web/dist/assets/{skills-7MwCp2i_.js → skills-BlHcP8uc.js} +1 -1
- package/web/dist/assets/{task-changes-DSZjztX7.js → task-changes-DWMFWq5g.js} +1 -1
- package/web/dist/assets/{task-commits-P_ElCQ4M.js → task-commits-q5Cn_tdG.js} +1 -1
- package/web/dist/assets/{task-file-scope-B63NmSov.js → task-file-scope-BKjO7lKK.js} +1 -1
- package/web/dist/assets/{task-files-CSFB6sG7.js → task-files-DbRJAKAg.js} +1 -1
- package/web/dist/assets/{task-github-item-BJ1rGyc6.js → task-github-item-DV6uUcx2.js} +1 -1
- package/web/dist/assets/{task-thread-C0DbAGi_.js → task-thread-05LMMzIs.js} +1 -1
- package/web/dist/assets/{thread-state-B7pyjJYO.js → thread-state-uf_28v2G.js} +1 -1
- package/web/dist/assets/{use-finish-run-B1Gy5JPt.js → use-finish-run-BsTPLn1d.js} +1 -1
- package/web/dist/assets/{use-hand-to-agent-state-CMyKCFeb.js → use-hand-to-agent-state-DyjrAs-3.js} +1 -1
- package/web/dist/assets/use-path-bases-hbJkikc4.js +1 -0
- package/web/dist/assets/{workflows-seQiL2pi.js → workflows-B5xr64g0.js} +3 -3
- package/web/dist/assets/{workspace-tools-BDf7nsE5.js → workspace-tools-DGlrX2Uj.js} +1 -1
- package/web/dist/assets/{worktrees-section-x7r5wRhx.js → worktrees-section-D2bbdi3Y.js} +1 -1
- package/web/dist/index.html +1 -1
- package/dist/features/hosts/bootstrap.d.ts +0 -120
- package/dist/features/hosts/bootstrap.js +0 -469
- package/dist/features/hosts/bootstrap.js.map +0 -1
- package/dist/features/hosts/host-actions.d.ts +0 -56
- package/dist/features/hosts/host-actions.js +0 -367
- package/dist/features/hosts/host-actions.js.map +0 -1
- package/dist/features/hosts/ssh.d.ts +0 -85
- package/dist/features/hosts/ssh.js +0 -271
- package/dist/features/hosts/ssh.js.map +0 -1
- package/dist/features/hosts/supervisor.d.ts +0 -191
- package/dist/features/hosts/supervisor.js +0 -620
- package/dist/features/hosts/supervisor.js.map +0 -1
- package/dist/features/hosts/tunnel.d.ts +0 -46
- package/dist/features/hosts/tunnel.js +0 -244
- package/dist/features/hosts/tunnel.js.map +0 -1
- package/web/dist/assets/index-UFO7Bk2I.js +0 -21
- package/web/dist/assets/repo-git-5JS3oL12.js +0 -1
- package/web/dist/assets/reports-Cn3kWlK7.js +0 -1
- package/web/dist/assets/run-header-BWLcG57S.js +0 -2
- package/web/dist/assets/settings-shell-DWRk12-i.js +0 -1
- package/web/dist/assets/use-path-bases-wGc__G57.js +0 -1
package/dist/contract/hosts.d.ts
CHANGED
|
@@ -18,23 +18,16 @@ export declare const hostPortSchema: z.ZodNumber;
|
|
|
18
18
|
/** Derive the default host id from an SSH alias (lowercased, non-alphanumeric runs to `-`, max 32). */
|
|
19
19
|
export declare function slugHostId(sshAlias: string): string;
|
|
20
20
|
/**
|
|
21
|
-
* Host states
|
|
21
|
+
* Host states. Named schema so S3 can widen it to the full set in spec § 6
|
|
22
|
+
* (`connecting`, `connected`, `unreachable`, `needs-node`, `version-mismatch`, `not-hosted`,
|
|
23
|
+
* `identity-changed`, `several-servers`, `paused`, `cannot-persist`).
|
|
22
24
|
*/
|
|
23
|
-
export declare const HOST_STATES: readonly ['
|
|
25
|
+
export declare const HOST_STATES: readonly ['unreachable'];
|
|
24
26
|
export declare const hostStateSchema: z.ZodEnum<{
|
|
25
|
-
"cannot-persist": "cannot-persist";
|
|
26
|
-
connected: "connected";
|
|
27
|
-
connecting: "connecting";
|
|
28
|
-
"identity-changed": "identity-changed";
|
|
29
|
-
"needs-node": "needs-node";
|
|
30
|
-
"not-hosted": "not-hosted";
|
|
31
|
-
paused: "paused";
|
|
32
|
-
"several-servers": "several-servers";
|
|
33
27
|
unreachable: "unreachable";
|
|
34
|
-
"version-mismatch": "version-mismatch";
|
|
35
28
|
}>;
|
|
36
29
|
export type HostState = z.infer<typeof hostStateSchema>;
|
|
37
|
-
/** Default unreachable reason
|
|
30
|
+
/** Default unreachable reason in S1 before SSH bootstrap (S3) exists. */
|
|
38
31
|
export declare const HOST_NOT_CONNECTED_REASON = "not connected yet";
|
|
39
32
|
/** Saved host entry in `<config>/hosts.json` (spec § Architecture 1). */
|
|
40
33
|
export declare const hostEntrySchema: z.ZodObject<{
|
|
@@ -70,16 +63,7 @@ export declare const hostSummarySchema: z.ZodObject<{
|
|
|
70
63
|
id: z.ZodString;
|
|
71
64
|
label: z.ZodString;
|
|
72
65
|
state: z.ZodEnum<{
|
|
73
|
-
"cannot-persist": "cannot-persist";
|
|
74
|
-
connected: "connected";
|
|
75
|
-
connecting: "connecting";
|
|
76
|
-
"identity-changed": "identity-changed";
|
|
77
|
-
"needs-node": "needs-node";
|
|
78
|
-
"not-hosted": "not-hosted";
|
|
79
|
-
paused: "paused";
|
|
80
|
-
"several-servers": "several-servers";
|
|
81
66
|
unreachable: "unreachable";
|
|
82
|
-
"version-mismatch": "version-mismatch";
|
|
83
67
|
}>;
|
|
84
68
|
reason: z.ZodOptional<z.ZodString>;
|
|
85
69
|
kind: z.ZodOptional<z.ZodLiteral<"ssh">>;
|
|
@@ -99,16 +83,7 @@ export declare const hostsListResponseSchema: z.ZodObject<{
|
|
|
99
83
|
id: z.ZodString;
|
|
100
84
|
label: z.ZodString;
|
|
101
85
|
state: z.ZodEnum<{
|
|
102
|
-
"cannot-persist": "cannot-persist";
|
|
103
|
-
connected: "connected";
|
|
104
|
-
connecting: "connecting";
|
|
105
|
-
"identity-changed": "identity-changed";
|
|
106
|
-
"needs-node": "needs-node";
|
|
107
|
-
"not-hosted": "not-hosted";
|
|
108
|
-
paused: "paused";
|
|
109
|
-
"several-servers": "several-servers";
|
|
110
86
|
unreachable: "unreachable";
|
|
111
|
-
"version-mismatch": "version-mismatch";
|
|
112
87
|
}>;
|
|
113
88
|
reason: z.ZodOptional<z.ZodString>;
|
|
114
89
|
kind: z.ZodOptional<z.ZodLiteral<"ssh">>;
|
|
@@ -147,16 +122,7 @@ export declare const hostResponseSchema: z.ZodObject<{
|
|
|
147
122
|
id: z.ZodString;
|
|
148
123
|
label: z.ZodString;
|
|
149
124
|
state: z.ZodEnum<{
|
|
150
|
-
"cannot-persist": "cannot-persist";
|
|
151
|
-
connected: "connected";
|
|
152
|
-
connecting: "connecting";
|
|
153
|
-
"identity-changed": "identity-changed";
|
|
154
|
-
"needs-node": "needs-node";
|
|
155
|
-
"not-hosted": "not-hosted";
|
|
156
|
-
paused: "paused";
|
|
157
|
-
"several-servers": "several-servers";
|
|
158
125
|
unreachable: "unreachable";
|
|
159
|
-
"version-mismatch": "version-mismatch";
|
|
160
126
|
}>;
|
|
161
127
|
reason: z.ZodOptional<z.ZodString>;
|
|
162
128
|
kind: z.ZodOptional<z.ZodLiteral<"ssh">>;
|
|
@@ -334,11 +300,3 @@ export declare const hostServerInstallRuntimeResultSchema: z.ZodObject<{
|
|
|
334
300
|
prunedVersions: z.ZodArray<z.ZodString>;
|
|
335
301
|
}, z.core.$strip>;
|
|
336
302
|
export type HostServerInstallRuntimeResult = z.infer<typeof hostServerInstallRuntimeResultSchema>;
|
|
337
|
-
/** Output contract of `hsq host-server active-tasks --port <n> --json`. */
|
|
338
|
-
export declare const hostServerActiveTasksResultSchema: z.ZodObject<{
|
|
339
|
-
ok: z.ZodLiteral<true>;
|
|
340
|
-
action: z.ZodLiteral<"active-tasks">;
|
|
341
|
-
port: z.ZodNumber;
|
|
342
|
-
activeCount: z.ZodNumber;
|
|
343
|
-
}, z.core.$strip>;
|
|
344
|
-
export type HostServerActiveTasksResult = z.infer<typeof hostServerActiveTasksResultSchema>;
|
package/dist/contract/index.js
CHANGED
|
@@ -6521,18 +6521,7 @@ var hostPortSchema = z61.number().int("port must be an integer").min(1, "port mu
|
|
|
6521
6521
|
function slugHostId(sshAlias) {
|
|
6522
6522
|
return sshAlias.toLowerCase().replace(/[^a-z0-9]+/g, "-").replace(/^-+|-+$/g, "").slice(0, 32).replace(/-+$/g, "");
|
|
6523
6523
|
}
|
|
6524
|
-
var HOST_STATES = [
|
|
6525
|
-
"connecting",
|
|
6526
|
-
"connected",
|
|
6527
|
-
"unreachable",
|
|
6528
|
-
"needs-node",
|
|
6529
|
-
"version-mismatch",
|
|
6530
|
-
"not-hosted",
|
|
6531
|
-
"identity-changed",
|
|
6532
|
-
"several-servers",
|
|
6533
|
-
"paused",
|
|
6534
|
-
"cannot-persist"
|
|
6535
|
-
];
|
|
6524
|
+
var HOST_STATES = ["unreachable"];
|
|
6536
6525
|
var hostStateSchema = z61.enum(HOST_STATES);
|
|
6537
6526
|
var HOST_NOT_CONNECTED_REASON = "not connected yet";
|
|
6538
6527
|
var hostEntrySchema = z61.object({
|
|
@@ -6716,12 +6705,6 @@ var hostServerInstallRuntimeResultSchema = z61.object({
|
|
|
6716
6705
|
alreadyInstalled: z61.boolean(),
|
|
6717
6706
|
prunedVersions: z61.array(z61.string())
|
|
6718
6707
|
});
|
|
6719
|
-
var hostServerActiveTasksResultSchema = z61.object({
|
|
6720
|
-
ok: z61.literal(true),
|
|
6721
|
-
action: z61.literal("active-tasks"),
|
|
6722
|
-
port: hostPortSchema,
|
|
6723
|
-
activeCount: z61.number().int().min(0)
|
|
6724
|
-
});
|
|
6725
6708
|
export {
|
|
6726
6709
|
ACTIVITY_CHECKS_MAX,
|
|
6727
6710
|
ACTIVITY_CHECK_NAME_MAX,
|
|
@@ -7084,7 +7067,6 @@ export {
|
|
|
7084
7067
|
hostPortSchema,
|
|
7085
7068
|
hostResponseSchema,
|
|
7086
7069
|
hostRouteParamsSchema,
|
|
7087
|
-
hostServerActiveTasksResultSchema,
|
|
7088
7070
|
hostServerClaimPhaseSchema,
|
|
7089
7071
|
hostServerClaimSummarySchema,
|
|
7090
7072
|
hostServerEnsureResultSchema,
|
|
@@ -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;
|
|
@@ -931,11 +917,7 @@ export declare function createDelegationApp(routes: DelegationRoutes): import("h
|
|
|
931
917
|
} & {
|
|
932
918
|
json: Record<string, never>;
|
|
933
919
|
};
|
|
934
|
-
}
|
|
935
|
-
};
|
|
936
|
-
} & {
|
|
937
|
-
"/:workerId/steer": {
|
|
938
|
-
$post: {
|
|
920
|
+
} | {
|
|
939
921
|
output: {
|
|
940
922
|
error: string;
|
|
941
923
|
code?: "invalid_input" | undefined;
|
|
@@ -947,11 +929,13 @@ export declare function createDelegationApp(routes: DelegationRoutes): import("h
|
|
|
947
929
|
workerId: string;
|
|
948
930
|
};
|
|
949
931
|
} & {
|
|
950
|
-
json:
|
|
951
|
-
text: string;
|
|
952
|
-
};
|
|
932
|
+
json: Record<string, never>;
|
|
953
933
|
};
|
|
954
|
-
}
|
|
934
|
+
};
|
|
935
|
+
};
|
|
936
|
+
} & {
|
|
937
|
+
"/:workerId/steer": {
|
|
938
|
+
$post: {
|
|
955
939
|
output: {
|
|
956
940
|
workerId: string;
|
|
957
941
|
state: "delivered" | "queued";
|
|
@@ -967,11 +951,7 @@ export declare function createDelegationApp(routes: DelegationRoutes): import("h
|
|
|
967
951
|
text: string;
|
|
968
952
|
};
|
|
969
953
|
};
|
|
970
|
-
}
|
|
971
|
-
};
|
|
972
|
-
} & {
|
|
973
|
-
"/:workerId/stop": {
|
|
974
|
-
$post: {
|
|
954
|
+
} | {
|
|
975
955
|
output: {
|
|
976
956
|
error: string;
|
|
977
957
|
code?: "invalid_input" | undefined;
|
|
@@ -983,9 +963,15 @@ export declare function createDelegationApp(routes: DelegationRoutes): import("h
|
|
|
983
963
|
workerId: string;
|
|
984
964
|
};
|
|
985
965
|
} & {
|
|
986
|
-
json:
|
|
966
|
+
json: {
|
|
967
|
+
text: string;
|
|
968
|
+
};
|
|
987
969
|
};
|
|
988
|
-
}
|
|
970
|
+
};
|
|
971
|
+
};
|
|
972
|
+
} & {
|
|
973
|
+
"/:workerId/stop": {
|
|
974
|
+
$post: {
|
|
989
975
|
output: {
|
|
990
976
|
workerId: string;
|
|
991
977
|
state: "stopping" | "terminated";
|
|
@@ -999,11 +985,7 @@ export declare function createDelegationApp(routes: DelegationRoutes): import("h
|
|
|
999
985
|
} & {
|
|
1000
986
|
json: Record<string, never>;
|
|
1001
987
|
};
|
|
1002
|
-
}
|
|
1003
|
-
};
|
|
1004
|
-
} & {
|
|
1005
|
-
"/:workerId/destroy": {
|
|
1006
|
-
$post: {
|
|
988
|
+
} | {
|
|
1007
989
|
output: {
|
|
1008
990
|
error: string;
|
|
1009
991
|
code?: "invalid_input" | undefined;
|
|
@@ -1015,11 +997,13 @@ export declare function createDelegationApp(routes: DelegationRoutes): import("h
|
|
|
1015
997
|
workerId: string;
|
|
1016
998
|
};
|
|
1017
999
|
} & {
|
|
1018
|
-
json:
|
|
1019
|
-
discardWork?: true | undefined;
|
|
1020
|
-
};
|
|
1000
|
+
json: Record<string, never>;
|
|
1021
1001
|
};
|
|
1022
|
-
}
|
|
1002
|
+
};
|
|
1003
|
+
};
|
|
1004
|
+
} & {
|
|
1005
|
+
"/:workerId/destroy": {
|
|
1006
|
+
$post: {
|
|
1023
1007
|
output: {
|
|
1024
1008
|
workerId: string;
|
|
1025
1009
|
state: "complete" | "incomplete";
|
|
@@ -1048,6 +1032,22 @@ export declare function createDelegationApp(routes: DelegationRoutes): import("h
|
|
|
1048
1032
|
discardWork?: true | undefined;
|
|
1049
1033
|
};
|
|
1050
1034
|
};
|
|
1035
|
+
} | {
|
|
1036
|
+
output: {
|
|
1037
|
+
error: string;
|
|
1038
|
+
code?: "invalid_input" | undefined;
|
|
1039
|
+
};
|
|
1040
|
+
outputFormat: "json";
|
|
1041
|
+
status: 400;
|
|
1042
|
+
input: {
|
|
1043
|
+
param: {
|
|
1044
|
+
workerId: string;
|
|
1045
|
+
};
|
|
1046
|
+
} & {
|
|
1047
|
+
json: {
|
|
1048
|
+
discardWork?: true | undefined;
|
|
1049
|
+
};
|
|
1050
|
+
};
|
|
1051
1051
|
} | {
|
|
1052
1052
|
output: {
|
|
1053
1053
|
workerId: string;
|
|
@@ -1083,11 +1083,18 @@ export declare function createDelegationApp(routes: DelegationRoutes): import("h
|
|
|
1083
1083
|
"/:workerId/summary": {
|
|
1084
1084
|
$post: {
|
|
1085
1085
|
output: {
|
|
1086
|
-
|
|
1087
|
-
|
|
1086
|
+
workerId: string;
|
|
1087
|
+
revision: number;
|
|
1088
|
+
source: "assistant" | "failure";
|
|
1089
|
+
seq: number;
|
|
1090
|
+
totalLines: number;
|
|
1091
|
+
offset: number;
|
|
1092
|
+
lineCount: number;
|
|
1093
|
+
text: string;
|
|
1094
|
+
nextOffset?: number | undefined;
|
|
1088
1095
|
};
|
|
1089
1096
|
outputFormat: "json";
|
|
1090
|
-
status:
|
|
1097
|
+
status: 200;
|
|
1091
1098
|
input: {
|
|
1092
1099
|
param: {
|
|
1093
1100
|
workerId: string;
|
|
@@ -1100,18 +1107,11 @@ export declare function createDelegationApp(routes: DelegationRoutes): import("h
|
|
|
1100
1107
|
};
|
|
1101
1108
|
} | {
|
|
1102
1109
|
output: {
|
|
1103
|
-
|
|
1104
|
-
|
|
1105
|
-
source: "assistant" | "failure";
|
|
1106
|
-
seq: number;
|
|
1107
|
-
totalLines: number;
|
|
1108
|
-
offset: number;
|
|
1109
|
-
lineCount: number;
|
|
1110
|
-
text: string;
|
|
1111
|
-
nextOffset?: number | undefined;
|
|
1110
|
+
error: string;
|
|
1111
|
+
code?: "invalid_input" | undefined;
|
|
1112
1112
|
};
|
|
1113
1113
|
outputFormat: "json";
|
|
1114
|
-
status:
|
|
1114
|
+
status: 400;
|
|
1115
1115
|
input: {
|
|
1116
1116
|
param: {
|
|
1117
1117
|
workerId: string;
|
|
@@ -1128,11 +1128,13 @@ export declare function createDelegationApp(routes: DelegationRoutes): import("h
|
|
|
1128
1128
|
"/:workerId/diff": {
|
|
1129
1129
|
$get: {
|
|
1130
1130
|
output: {
|
|
1131
|
-
|
|
1132
|
-
|
|
1131
|
+
workerId: string;
|
|
1132
|
+
baselineSha: string;
|
|
1133
|
+
diff: string;
|
|
1134
|
+
truncated: boolean;
|
|
1133
1135
|
};
|
|
1134
1136
|
outputFormat: "json";
|
|
1135
|
-
status:
|
|
1137
|
+
status: 200;
|
|
1136
1138
|
input: {
|
|
1137
1139
|
param: {
|
|
1138
1140
|
workerId: string;
|
|
@@ -1140,13 +1142,11 @@ export declare function createDelegationApp(routes: DelegationRoutes): import("h
|
|
|
1140
1142
|
};
|
|
1141
1143
|
} | {
|
|
1142
1144
|
output: {
|
|
1143
|
-
|
|
1144
|
-
|
|
1145
|
-
diff: string;
|
|
1146
|
-
truncated: boolean;
|
|
1145
|
+
error: string;
|
|
1146
|
+
code?: "invalid_input" | undefined;
|
|
1147
1147
|
};
|
|
1148
1148
|
outputFormat: "json";
|
|
1149
|
-
status:
|
|
1149
|
+
status: 400;
|
|
1150
1150
|
input: {
|
|
1151
1151
|
param: {
|
|
1152
1152
|
workerId: string;
|