@hearsay-tools/squawk 0.19.0-pr4648.9240 → 0.19.0-pr4650.9244
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/index.js +16 -1
- package/dist/contract/task-result.d.ts +11 -0
- package/dist/features/hosts/routes.d.ts +64 -64
- package/dist/features/mcp/tools.js +37 -1
- package/dist/features/mcp/tools.js.map +1 -1
- package/dist/features/webhooks/routes.d.ts +38 -38
- package/dist/server/models-routes.d.ts +12 -12
- package/dist/server/providers-routes.d.ts +58 -58
- package/dist/server/runners-routes.d.ts +10 -10
- package/dist/server/runs-routes.d.ts +178 -0
- package/dist/server/runs-routes.js +20 -0
- package/dist/server/runs-routes.js.map +1 -1
- package/dist/server/server.d.ts +356 -0
- package/dist/server/workspace-live-routes.d.ts +5 -5
- package/dist/server/workspace-routes.d.ts +85 -85
- package/dist/task-cli/cli.js +39 -4
- package/dist/task-cli/cli.js.map +1 -1
- package/dist/task-cli/operations.d.ts +8 -0
- package/dist/task-cli/operations.js +21 -0
- package/dist/task-cli/operations.js.map +1 -1
- package/package.json +4 -4
- package/web/dist/assets/{accounts-section-BOZ9JyE6.js → accounts-section-BROiR4ew.js} +1 -1
- package/web/dist/assets/{activity-motion-D48R7Vry.js → activity-motion-BWSUUfiT.js} +1 -1
- package/web/dist/assets/{activity-route-jcGRtnMT.js → activity-route-B2N8ZaZ_.js} +1 -1
- package/web/dist/assets/{agent-accounts-CUthX0Yh.js → agent-accounts-DjIbGucr.js} +1 -1
- package/web/dist/assets/{agent-config-section-BvwoyNZb.js → agent-config-section-Ck4CXMFm.js} +1 -1
- package/web/dist/assets/{agent-defaults-section-Hb-jy4TN.js → agent-defaults-section-CSonqNrH.js} +1 -1
- package/web/dist/assets/{appearance-EXKzoghV.js → appearance-CtRi80xH.js} +1 -1
- package/web/dist/assets/{archive-on-merge-field-Ni7bKGkG.js → archive-on-merge-field-DWIBlp84.js} +1 -1
- package/web/dist/assets/{ask-card-CkE44gm3.js → ask-card-Cr2AS4K4.js} +1 -1
- package/web/dist/assets/{automations-route-3bhtdTy3.js → automations-route-iHpqtQ2V.js} +1 -1
- package/web/dist/assets/{commit-list-DSw7qvVY.js → commit-list-BjI9yFlp.js} +1 -1
- package/web/dist/assets/{diff-BidPzsVK.js → diff-BKikntA1.js} +2 -2
- package/web/dist/assets/{diff-controls-DeMSGYln.js → diff-controls-DXLI7YrY.js} +1 -1
- package/web/dist/assets/{diff-view-BqU4sJld.js → diff-view-NHfT1G3r.js} +1 -1
- package/web/dist/assets/{discard-changes-dialog-B1AO0GSt.js → discard-changes-dialog-COQOWWB4.js} +1 -1
- package/web/dist/assets/{file-preview-BIZXTzkp.js → file-preview-CuynH2GY.js} +1 -1
- package/web/dist/assets/{folder-browser-C9Phl0rS.js → folder-browser-p1qA81Do.js} +1 -1
- package/web/dist/assets/{git-toolbar-BBon1yHh.js → git-toolbar-C27plnSQ.js} +1 -1
- package/web/dist/assets/{github-QOB5Qi4v.js → github-BVFqmL19.js} +1 -1
- package/web/dist/assets/{global-activity-route-lSnYAZE9.js → global-activity-route-DUa3ZKH5.js} +1 -1
- package/web/dist/assets/{hosts-DDwDUxT9.js → hosts-dk-7MbxQ.js} +1 -1
- package/web/dist/assets/{index-BuR9xHfb.js → index-BMO-SCLT.js} +5 -5
- package/web/dist/assets/{label-D6vgq5lF.js → label-B4KzRUWE.js} +1 -1
- package/web/dist/assets/{markdown-A6dvDky9.js → markdown-RyIndDEG.js} +1 -1
- package/web/dist/assets/{open-in-menu-Bb_jc7pm.js → open-in-menu-GSvSbohX.js} +1 -1
- package/web/dist/assets/{option-select-CCpypHbW.js → option-select-DRpdIulm.js} +1 -1
- package/web/dist/assets/{preferences-section-B75Zx0mY.js → preferences-section-PTJo2Ohl.js} +1 -1
- package/web/dist/assets/{preview-DiBpgf-5.js → preview-B13nIXDV.js} +1 -1
- package/web/dist/assets/{preview-pane-connected-BVu2oO0V.js → preview-pane-connected-B9GKjFwm.js} +1 -1
- package/web/dist/assets/{project-location-D1etWKHg.js → project-location-BE1vP9ox.js} +1 -1
- package/web/dist/assets/{project-router-yoWCTDaT.js → project-router-Bl7pejIP.js} +1 -1
- package/web/dist/assets/project-scope-context-BT4qzyOz.js +4 -0
- package/web/dist/assets/{projects-section-BRnIJ47e.js → projects-section-B3-nydjA.js} +1 -1
- package/web/dist/assets/{prompt-templates-section-D7JLM5BM.js → prompt-templates-section-JgrQfgx0.js} +1 -1
- package/web/dist/assets/{queries-ChH9ctc-.js → queries-CzUiyqt4.js} +1 -1
- package/web/dist/assets/{reference-chip-BPRZm7Kb.js → reference-chip-jxISA5ls.js} +1 -1
- package/web/dist/assets/{remote-settings-notice-Ip6H5hLU.js → remote-settings-notice-BihAOLqD.js} +1 -1
- package/web/dist/assets/{repo-git-Wf30akEt.js → repo-git-B1q5EsnP.js} +1 -1
- package/web/dist/assets/{report-reader-DhcZcNql.js → report-reader-DjeG4XbX.js} +1 -1
- package/web/dist/assets/{report-selection-CwPw7vbG.js → report-selection-DBxcKtc9.js} +1 -1
- package/web/dist/assets/{reports-DPKDwzxY.js → reports-DWiYYakL.js} +1 -1
- package/web/dist/assets/{resources-section-DaWcyqur.js → resources-section-DWjxu1Aj.js} +1 -1
- package/web/dist/assets/{review-notes-drafts-D7QuBuTL.js → review-notes-drafts-iAtTr6a6.js} +1 -1
- package/web/dist/assets/{review-panel-Bpxl4TvO.js → review-panel-DPRxBYq7.js} +1 -1
- package/web/dist/assets/{review-strip-Da5n1k8s.js → review-strip-S4KkkMIo.js} +1 -1
- package/web/dist/assets/{run-detail-refresh-CVSK_VKG.js → run-detail-refresh-e7rB9lt5.js} +1 -1
- package/web/dist/assets/{run-diff-CPuNFD3X.js → run-diff-QWOM0ICK.js} +1 -1
- package/web/dist/assets/{run-header-B8EAOHFc.js → run-header-BNh2z4aw.js} +1 -1
- package/web/dist/assets/{select-xjUzLrk9.js → select-DlJM2_n-.js} +1 -1
- package/web/dist/assets/{session-context-section-C7OTexKU.js → session-context-section-vdKhbdZx.js} +1 -1
- package/web/dist/assets/{settings-agent-picker-mESK-hj4.js → settings-agent-picker-tNi4Xm3k.js} +1 -1
- package/web/dist/assets/{settings-save-bar-BUaa1kHw.js → settings-save-bar-fQqyWU1c.js} +1 -1
- package/web/dist/assets/{settings-shell-BKSsBxqQ.js → settings-shell-B-pmSB5-.js} +1 -1
- package/web/dist/assets/{sidebar-section-BFBZlQ-x.js → sidebar-section-DBgf2u5s.js} +1 -1
- package/web/dist/assets/{skills-BSqszv5g.js → skills-BePs-LtJ.js} +1 -1
- package/web/dist/assets/{status-dot-Fp5SnPHI.js → status-dot-BlqTixB7.js} +1 -1
- package/web/dist/assets/{tab-link-j06AaWSU.js → tab-link-tv_Wy5eF.js} +1 -1
- package/web/dist/assets/{task-changes-B4KFHxVa.js → task-changes-D-ehUptL.js} +1 -1
- package/web/dist/assets/{task-commits-D-UAUoZ5.js → task-commits-BgDfumUM.js} +1 -1
- package/web/dist/assets/{task-file-scope-BhWG35a8.js → task-file-scope-Bqt2wkkO.js} +1 -1
- package/web/dist/assets/{task-files-BOCx_Lp0.js → task-files-BME7tXzx.js} +1 -1
- package/web/dist/assets/{task-github-item-CZqaaxNv.js → task-github-item-BQL_jlnH.js} +1 -1
- package/web/dist/assets/{task-thread-D3d419VX.js → task-thread-D-BHmr_Z.js} +1 -1
- package/web/dist/assets/{thread-state-B0pz2Y8K.js → thread-state-DWcNrVOV.js} +1 -1
- package/web/dist/assets/{use-finish-run-TX3pIPCS.js → use-finish-run-B4gkbFl_.js} +1 -1
- package/web/dist/assets/{use-hand-to-agent-state-D2oChRzw.js → use-hand-to-agent-state-7ItPHT6A.js} +1 -1
- package/web/dist/assets/use-path-bases-DfSirdvs.js +1 -0
- package/web/dist/assets/use-workspace-config-save-Dz8Cl7MP.js +1 -0
- package/web/dist/assets/{workflows-BwzNhxT0.js → workflows-CFKtz_8t.js} +1 -1
- package/web/dist/assets/{workspace-tools-Be_j9oke.js → workspace-tools-CBQyH8IV.js} +1 -1
- package/web/dist/assets/{worktrees-section-cnibWU5-.js → worktrees-section-CA7lv70p.js} +1 -1
- package/web/dist/index.html +14 -14
- package/web/dist/assets/project-scope-context-hfRzPMZ4.js +0 -4
- package/web/dist/assets/use-path-bases-DFxEHoyU.js +0 -1
- package/web/dist/assets/use-workspace-config-save-DR8brU5p.js +0 -1
|
@@ -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;
|
|
@@ -290,10 +290,28 @@ export declare function createAgentProfilesRoutes(deps: AgentProfilesRouteDeps):
|
|
|
290
290
|
"/workspace/agent-profiles": {
|
|
291
291
|
$post: {
|
|
292
292
|
output: {
|
|
293
|
-
|
|
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
|
+
};
|
|
294
312
|
};
|
|
295
313
|
outputFormat: "json";
|
|
296
|
-
status:
|
|
314
|
+
status: 201;
|
|
297
315
|
input: {
|
|
298
316
|
json: {
|
|
299
317
|
provider: string;
|
|
@@ -319,7 +337,7 @@ export declare function createAgentProfilesRoutes(deps: AgentProfilesRouteDeps):
|
|
|
319
337
|
error: string;
|
|
320
338
|
};
|
|
321
339
|
outputFormat: "json";
|
|
322
|
-
status:
|
|
340
|
+
status: 409;
|
|
323
341
|
input: {
|
|
324
342
|
json: {
|
|
325
343
|
provider: string;
|
|
@@ -329,28 +347,10 @@ export declare function createAgentProfilesRoutes(deps: AgentProfilesRouteDeps):
|
|
|
329
347
|
};
|
|
330
348
|
} | {
|
|
331
349
|
output: {
|
|
332
|
-
|
|
333
|
-
id: string;
|
|
334
|
-
provider: string;
|
|
335
|
-
label: string;
|
|
336
|
-
configDir?: string | undefined;
|
|
337
|
-
path?: string | undefined;
|
|
338
|
-
exists: boolean;
|
|
339
|
-
looksValid: boolean;
|
|
340
|
-
isDefault: boolean;
|
|
341
|
-
status?: {
|
|
342
|
-
requiresAccountHome?: boolean | undefined;
|
|
343
|
-
provider: string;
|
|
344
|
-
status: "connected" | "disconnected" | "not-installed" | "unknown";
|
|
345
|
-
enabled?: boolean | undefined;
|
|
346
|
-
hint?: string | undefined;
|
|
347
|
-
authFailureId?: string | undefined;
|
|
348
|
-
profileId?: string | undefined;
|
|
349
|
-
} | undefined;
|
|
350
|
-
};
|
|
350
|
+
error: string;
|
|
351
351
|
};
|
|
352
352
|
outputFormat: "json";
|
|
353
|
-
status:
|
|
353
|
+
status: 500;
|
|
354
354
|
input: {
|
|
355
355
|
json: {
|
|
356
356
|
provider: string;
|
|
@@ -384,7 +384,7 @@ export declare function createAgentProfilesRoutes(deps: AgentProfilesRouteDeps):
|
|
|
384
384
|
error: string;
|
|
385
385
|
};
|
|
386
386
|
outputFormat: "json";
|
|
387
|
-
status:
|
|
387
|
+
status: 400;
|
|
388
388
|
input: {
|
|
389
389
|
param: {
|
|
390
390
|
id: string;
|
|
@@ -400,7 +400,7 @@ export declare function createAgentProfilesRoutes(deps: AgentProfilesRouteDeps):
|
|
|
400
400
|
error: string;
|
|
401
401
|
};
|
|
402
402
|
outputFormat: "json";
|
|
403
|
-
status:
|
|
403
|
+
status: 404;
|
|
404
404
|
input: {
|
|
405
405
|
param: {
|
|
406
406
|
id: string;
|
|
@@ -416,7 +416,7 @@ export declare function createAgentProfilesRoutes(deps: AgentProfilesRouteDeps):
|
|
|
416
416
|
error: string;
|
|
417
417
|
};
|
|
418
418
|
outputFormat: "json";
|
|
419
|
-
status:
|
|
419
|
+
status: 409;
|
|
420
420
|
input: {
|
|
421
421
|
param: {
|
|
422
422
|
id: string;
|
|
@@ -542,10 +542,9 @@ export declare function createAgentProfilesRoutes(deps: AgentProfilesRouteDeps):
|
|
|
542
542
|
$put: {
|
|
543
543
|
output: {
|
|
544
544
|
error: string;
|
|
545
|
-
code: "no-boot-project";
|
|
546
545
|
};
|
|
547
546
|
outputFormat: "json";
|
|
548
|
-
status:
|
|
547
|
+
status: 400;
|
|
549
548
|
input: {
|
|
550
549
|
json: {
|
|
551
550
|
projectId: string;
|
|
@@ -569,9 +568,10 @@ export declare function createAgentProfilesRoutes(deps: AgentProfilesRouteDeps):
|
|
|
569
568
|
} | {
|
|
570
569
|
output: {
|
|
571
570
|
error: string;
|
|
571
|
+
code: "no-boot-project";
|
|
572
572
|
};
|
|
573
573
|
outputFormat: "json";
|
|
574
|
-
status:
|
|
574
|
+
status: 409;
|
|
575
575
|
input: {
|
|
576
576
|
json: {
|
|
577
577
|
projectId: string;
|
|
@@ -635,7 +635,7 @@ export declare function createAgentProfilesRoutes(deps: AgentProfilesRouteDeps):
|
|
|
635
635
|
error: string;
|
|
636
636
|
};
|
|
637
637
|
outputFormat: "json";
|
|
638
|
-
status:
|
|
638
|
+
status: 404;
|
|
639
639
|
input: {
|
|
640
640
|
param: {
|
|
641
641
|
id: string;
|
|
@@ -646,7 +646,7 @@ export declare function createAgentProfilesRoutes(deps: AgentProfilesRouteDeps):
|
|
|
646
646
|
error: string;
|
|
647
647
|
};
|
|
648
648
|
outputFormat: "json";
|
|
649
|
-
status:
|
|
649
|
+
status: 409;
|
|
650
650
|
input: {
|
|
651
651
|
param: {
|
|
652
652
|
id: string;
|
|
@@ -657,7 +657,7 @@ export declare function createAgentProfilesRoutes(deps: AgentProfilesRouteDeps):
|
|
|
657
657
|
error: string;
|
|
658
658
|
};
|
|
659
659
|
outputFormat: "json";
|
|
660
|
-
status:
|
|
660
|
+
status: 500;
|
|
661
661
|
input: {
|
|
662
662
|
param: {
|
|
663
663
|
id: string;
|
|
@@ -58,11 +58,15 @@ export declare function createRunnersRoutes(options: {
|
|
|
58
58
|
"/runner-install/:runner": {
|
|
59
59
|
$post: {
|
|
60
60
|
output: {
|
|
61
|
-
|
|
62
|
-
|
|
61
|
+
supported: boolean;
|
|
62
|
+
installedVersion: string | null;
|
|
63
|
+
latestVersion: string | null;
|
|
64
|
+
updateAvailable: boolean;
|
|
65
|
+
phase: "activating" | "checking" | "downloading" | "extracting" | "failed" | "idle" | "removing" | "verifying";
|
|
66
|
+
error: string | null;
|
|
63
67
|
};
|
|
64
68
|
outputFormat: "json";
|
|
65
|
-
status:
|
|
69
|
+
status: 202;
|
|
66
70
|
input: {
|
|
67
71
|
param: {
|
|
68
72
|
runner: string;
|
|
@@ -74,15 +78,11 @@ export declare function createRunnersRoutes(options: {
|
|
|
74
78
|
};
|
|
75
79
|
} | {
|
|
76
80
|
output: {
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
latestVersion: string | null;
|
|
80
|
-
updateAvailable: boolean;
|
|
81
|
-
phase: "activating" | "checking" | "downloading" | "extracting" | "failed" | "idle" | "removing" | "verifying";
|
|
82
|
-
error: string | null;
|
|
81
|
+
error: string;
|
|
82
|
+
code?: "invalid_input" | undefined;
|
|
83
83
|
};
|
|
84
84
|
outputFormat: "json";
|
|
85
|
-
status:
|
|
85
|
+
status: 400;
|
|
86
86
|
input: {
|
|
87
87
|
param: {
|
|
88
88
|
runner: string;
|
|
@@ -12522,6 +12522,184 @@ export declare function createRunsRoutes(deps: RunsRouteDeps): import("hono/hono
|
|
|
12522
12522
|
};
|
|
12523
12523
|
};
|
|
12524
12524
|
};
|
|
12525
|
+
} & {
|
|
12526
|
+
"/runs/:id/result": {
|
|
12527
|
+
$get: {
|
|
12528
|
+
output: {
|
|
12529
|
+
error: string;
|
|
12530
|
+
code?: "invalid_input" | undefined;
|
|
12531
|
+
};
|
|
12532
|
+
outputFormat: "json";
|
|
12533
|
+
status: 400;
|
|
12534
|
+
input: {
|
|
12535
|
+
param: {
|
|
12536
|
+
id: string;
|
|
12537
|
+
};
|
|
12538
|
+
} & {
|
|
12539
|
+
query: {
|
|
12540
|
+
includeDiff?: "1" | undefined;
|
|
12541
|
+
maxChars?: number | undefined;
|
|
12542
|
+
};
|
|
12543
|
+
};
|
|
12544
|
+
} | {
|
|
12545
|
+
output: {
|
|
12546
|
+
error: string;
|
|
12547
|
+
};
|
|
12548
|
+
outputFormat: "json";
|
|
12549
|
+
status: 409;
|
|
12550
|
+
input: {
|
|
12551
|
+
param: {
|
|
12552
|
+
id: string;
|
|
12553
|
+
};
|
|
12554
|
+
} & {
|
|
12555
|
+
query: {
|
|
12556
|
+
includeDiff?: "1" | undefined;
|
|
12557
|
+
maxChars?: number | undefined;
|
|
12558
|
+
};
|
|
12559
|
+
};
|
|
12560
|
+
} | {
|
|
12561
|
+
output: {
|
|
12562
|
+
error: string;
|
|
12563
|
+
};
|
|
12564
|
+
outputFormat: "json";
|
|
12565
|
+
status: 404;
|
|
12566
|
+
input: {
|
|
12567
|
+
param: {
|
|
12568
|
+
id: string;
|
|
12569
|
+
};
|
|
12570
|
+
} & {
|
|
12571
|
+
query: {
|
|
12572
|
+
includeDiff?: "1" | undefined;
|
|
12573
|
+
maxChars?: number | undefined;
|
|
12574
|
+
};
|
|
12575
|
+
};
|
|
12576
|
+
} | {
|
|
12577
|
+
output: {
|
|
12578
|
+
taskId: string;
|
|
12579
|
+
revision: number;
|
|
12580
|
+
observedAt: string;
|
|
12581
|
+
status: "cancelled" | "done" | "failed" | "queued" | "review" | "running" | "waiting";
|
|
12582
|
+
outcome: "cancelled" | "completed" | "destroyed" | "failed" | "review-ready" | "running";
|
|
12583
|
+
lastExecutionOutcome: "cancelled" | "completed" | "failed" | "review-ready" | "running";
|
|
12584
|
+
settled: boolean;
|
|
12585
|
+
partial: boolean;
|
|
12586
|
+
error?: string | undefined;
|
|
12587
|
+
runner?: string | undefined;
|
|
12588
|
+
model?: string | undefined;
|
|
12589
|
+
baselineSha?: string | undefined;
|
|
12590
|
+
head: {
|
|
12591
|
+
state: "available";
|
|
12592
|
+
sha: string;
|
|
12593
|
+
} | {
|
|
12594
|
+
state: "unavailable";
|
|
12595
|
+
reason: "missing" | "no-assistant-output" | "unreadable" | "unsupported" | "unverified";
|
|
12596
|
+
detail?: string | undefined;
|
|
12597
|
+
sha?: string | undefined;
|
|
12598
|
+
} | {
|
|
12599
|
+
state: "deleted";
|
|
12600
|
+
reason: "missing";
|
|
12601
|
+
sha?: string | undefined;
|
|
12602
|
+
};
|
|
12603
|
+
changes?: {
|
|
12604
|
+
state: "unchanged";
|
|
12605
|
+
} | {
|
|
12606
|
+
state: "changed";
|
|
12607
|
+
paths: string[];
|
|
12608
|
+
truncated: boolean;
|
|
12609
|
+
headMoved: boolean;
|
|
12610
|
+
branchMoved: boolean;
|
|
12611
|
+
indexMoved: boolean;
|
|
12612
|
+
} | {
|
|
12613
|
+
state: "unavailable";
|
|
12614
|
+
reason: string;
|
|
12615
|
+
} | undefined;
|
|
12616
|
+
parentRunId?: string | undefined;
|
|
12617
|
+
cleanup?: "cleaning" | "complete" | "incomplete" | "requested" | "retained" | "terminating" | undefined;
|
|
12618
|
+
source: "live" | "stored";
|
|
12619
|
+
workspace: {
|
|
12620
|
+
kind: "owned" | "project" | "shared";
|
|
12621
|
+
state: "available" | "deleted" | "unavailable";
|
|
12622
|
+
branch?: string | undefined;
|
|
12623
|
+
baselineSha?: string | undefined;
|
|
12624
|
+
hostRunId?: string | undefined;
|
|
12625
|
+
};
|
|
12626
|
+
summary: {
|
|
12627
|
+
state: "unavailable";
|
|
12628
|
+
reason: "missing" | "no-assistant-output" | "unreadable" | "unsupported" | "unverified";
|
|
12629
|
+
detail?: string | undefined;
|
|
12630
|
+
} | {
|
|
12631
|
+
state: "deleted";
|
|
12632
|
+
reason: "missing";
|
|
12633
|
+
} | {
|
|
12634
|
+
state: "available";
|
|
12635
|
+
text: string;
|
|
12636
|
+
source: "assistant" | "failure";
|
|
12637
|
+
seq: number;
|
|
12638
|
+
truncated: boolean;
|
|
12639
|
+
totalLines: number;
|
|
12640
|
+
};
|
|
12641
|
+
diff: {
|
|
12642
|
+
state: "unavailable";
|
|
12643
|
+
reason: "missing" | "no-assistant-output" | "unreadable" | "unsupported" | "unverified";
|
|
12644
|
+
detail?: string | undefined;
|
|
12645
|
+
} | {
|
|
12646
|
+
state: "deleted";
|
|
12647
|
+
reason: "missing";
|
|
12648
|
+
} | {
|
|
12649
|
+
state: "available";
|
|
12650
|
+
truncated: boolean;
|
|
12651
|
+
bytes: number;
|
|
12652
|
+
patch?: string | undefined;
|
|
12653
|
+
patchTruncated?: boolean | undefined;
|
|
12654
|
+
};
|
|
12655
|
+
artifacts: {
|
|
12656
|
+
state: "unavailable";
|
|
12657
|
+
reason: "missing" | "no-assistant-output" | "unreadable" | "unsupported" | "unverified";
|
|
12658
|
+
detail?: string | undefined;
|
|
12659
|
+
} | {
|
|
12660
|
+
state: "deleted";
|
|
12661
|
+
reason: "missing";
|
|
12662
|
+
} | {
|
|
12663
|
+
state: "available";
|
|
12664
|
+
items: ({
|
|
12665
|
+
id: string;
|
|
12666
|
+
kind: "attachment" | "published";
|
|
12667
|
+
name?: string | undefined;
|
|
12668
|
+
size?: number | undefined;
|
|
12669
|
+
state: "available";
|
|
12670
|
+
} | {
|
|
12671
|
+
state: "unavailable";
|
|
12672
|
+
reason: "missing" | "no-assistant-output" | "unreadable" | "unsupported" | "unverified";
|
|
12673
|
+
detail?: string | undefined;
|
|
12674
|
+
id: string;
|
|
12675
|
+
kind: "attachment" | "published";
|
|
12676
|
+
name?: string | undefined;
|
|
12677
|
+
size?: number | undefined;
|
|
12678
|
+
} | {
|
|
12679
|
+
state: "deleted";
|
|
12680
|
+
reason: "missing";
|
|
12681
|
+
id: string;
|
|
12682
|
+
kind: "attachment" | "published";
|
|
12683
|
+
name?: string | undefined;
|
|
12684
|
+
size?: number | undefined;
|
|
12685
|
+
})[];
|
|
12686
|
+
truncated: boolean;
|
|
12687
|
+
};
|
|
12688
|
+
};
|
|
12689
|
+
outputFormat: "json";
|
|
12690
|
+
status: import("hono/utils/http-status").ContentfulStatusCode;
|
|
12691
|
+
input: {
|
|
12692
|
+
param: {
|
|
12693
|
+
id: string;
|
|
12694
|
+
};
|
|
12695
|
+
} & {
|
|
12696
|
+
query: {
|
|
12697
|
+
includeDiff?: "1" | undefined;
|
|
12698
|
+
maxChars?: number | undefined;
|
|
12699
|
+
};
|
|
12700
|
+
};
|
|
12701
|
+
};
|
|
12702
|
+
};
|
|
12525
12703
|
} & {
|
|
12526
12704
|
"/runs/:id/diff": {
|
|
12527
12705
|
$get: {
|
|
@@ -16,6 +16,7 @@ import { latestSession } from '../contract/index.js';
|
|
|
16
16
|
import { archiveSchema, continueSchema, openInSchema, queuedMessagePatchSchema } from '../contract/index.js';
|
|
17
17
|
import { removedRunnerMessage } from '../contract/index.js';
|
|
18
18
|
import { archiveFinishedRequestSchema, archivedRunsQuerySchema, attachmentFileParamSchema, createRunInputSchema, markAllReadRequestSchema, messageInputSchema as messageSchema, notifyRunInputSchema, patchRunInputSchema as patchRunSchema, pinRunInputSchema, runSummariesQuerySchema, } from '../contract/index.js';
|
|
19
|
+
import { TASK_RESULT_DIFF_DEFAULT_MAX_CHARS, taskResultParamsSchema, taskResultQuerySchema, taskResultSchema, } from '../contract/index.js';
|
|
19
20
|
import { artifactPreview, loadFileLink, rasterMime } from './file-link.js';
|
|
20
21
|
import { listArtifacts, readArtifact, readArtifactMetadata } from '../task-files/artifact-kind.js';
|
|
21
22
|
import { loadConfig } from '../config.js';
|
|
@@ -34,6 +35,7 @@ import { fallbackProjectWriteError } from '../project-paths.js';
|
|
|
34
35
|
import { deriveRunContextEvents, HistoryCursorError, readRunHistoryPage } from '../runs/event-history.js';
|
|
35
36
|
import { ownPullRequestNumbers } from '../runs/pull-requests.js';
|
|
36
37
|
import { ARCHIVED_WINDOW } from '../runs/run-index.js';
|
|
38
|
+
import { readPublicTaskResult } from '../runs/task-result-builder.js';
|
|
37
39
|
import { captureTaskResultBeforeRemoval, markTaskResultWorktreeDeleted } from '../runs/task-result-preparation.js';
|
|
38
40
|
import { resolveAttachmentPathAsync } from '../workflows/attachment-path.js';
|
|
39
41
|
import { toPastedContent } from '../workflows/pasted-content.js';
|
|
@@ -559,6 +561,24 @@ export function createRunsRoutes(deps) {
|
|
|
559
561
|
}),
|
|
560
562
|
},
|
|
561
563
|
});
|
|
564
|
+
})
|
|
565
|
+
.get('/runs/:id/result', paramZodValidator(taskResultParamsSchema), queryZodValidator(taskResultQuerySchema), async (c) => {
|
|
566
|
+
const { root: repoRoot, store, manager } = c.get('project');
|
|
567
|
+
const { id } = c.req.valid('param');
|
|
568
|
+
const run = store.getRun(id);
|
|
569
|
+
if (!run) {
|
|
570
|
+
return store.isUnreadable(id)
|
|
571
|
+
? c.json({ error: UNREADABLE_RUN_ERROR }, 409)
|
|
572
|
+
: c.json({ error: 'not found' }, 404);
|
|
573
|
+
}
|
|
574
|
+
const query = c.req.valid('query');
|
|
575
|
+
const includeDiff = query.includeDiff === '1';
|
|
576
|
+
const result = await readPublicTaskResult(repoRoot, store, run, {
|
|
577
|
+
isActive: manager.isActive(id) || store.claims.runOwnership(id) === 'foreign',
|
|
578
|
+
includeDiff,
|
|
579
|
+
...(includeDiff ? { maxChars: query.maxChars ?? TASK_RESULT_DIFF_DEFAULT_MAX_CHARS } : {}),
|
|
580
|
+
});
|
|
581
|
+
return c.json(taskResultSchema.parse(result));
|
|
562
582
|
})
|
|
563
583
|
.get('/runs/:id/diff', async (c) => {
|
|
564
584
|
const checkout = runCheckout(c.get('project'), c.req.param('id'), 'read', { directory: 'existing-worktree' });
|