@hearsay-tools/squawk 0.18.0-dev.7436 → 0.18.0-dev.7439
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/ci-wait/tools.d.ts +4 -4
- package/dist/contract/delegation.d.ts +26 -0
- package/dist/contract/index.js +13 -1
- package/dist/contract/runs.d.ts +3 -0
- package/dist/delegation/cli.js +10 -7
- package/dist/delegation/cli.js.map +1 -1
- package/dist/delegation/owned-workspace-release.d.ts +2 -3
- package/dist/delegation/owned-workspace-release.js +2 -2
- package/dist/delegation/owned-workspace-release.js.map +1 -1
- package/dist/delegation/routes.d.ts +19 -3
- package/dist/delegation/routes.js +3 -3
- package/dist/delegation/routes.js.map +1 -1
- package/dist/delegation/service.d.ts +16 -3
- package/dist/delegation/service.js +4 -4
- package/dist/delegation/service.js.map +1 -1
- package/dist/delegation/transport.d.ts +95 -79
- package/dist/delegation/worker-cleanup.d.ts +6 -2
- package/dist/delegation/worker-cleanup.js +27 -7
- package/dist/delegation/worker-cleanup.js.map +1 -1
- package/dist/delegation/workspace-kinds.d.ts +8 -2
- package/dist/delegation/workspace-kinds.js +7 -2
- package/dist/delegation/workspace-kinds.js.map +1 -1
- package/dist/delegation/workspace-record.js +3 -2
- package/dist/delegation/workspace-record.js.map +1 -1
- package/dist/delegation/workspace-removal.d.ts +9 -4
- package/dist/delegation/workspace-removal.js +55 -38
- package/dist/delegation/workspace-removal.js.map +1 -1
- package/dist/delegation/workspace-work.d.ts +35 -0
- package/dist/delegation/workspace-work.js +75 -0
- package/dist/delegation/workspace-work.js.map +1 -0
- package/dist/runs/delegation-state.d.ts +1 -0
- package/dist/runs/run-exits.d.ts +6 -0
- package/dist/runs/store.d.ts +2 -0
- package/dist/server/activity-routes.d.ts +23 -23
- package/dist/server/server.d.ts +60 -8
- package/dist/server/server.js +3 -3
- package/dist/server/server.js.map +1 -1
- package/dist/workflows/continuation-admission.d.ts +1 -0
- package/dist/workflows/run/wait-engine.d.ts +1 -0
- package/package.json +4 -4
- package/web/dist/assets/{activity-motion-CQKAazEg.js → activity-motion-dNVCOgIS.js} +1 -1
- package/web/dist/assets/{activity-route-C6oKznjI.js → activity-route-DMnwyl9c.js} +1 -1
- package/web/dist/assets/{agent-accounts-T6Q6vL9r.js → agent-accounts-DpQGh6AY.js} +1 -1
- package/web/dist/assets/attention-KNpeHgY7.js +1 -0
- package/web/dist/assets/{commit-diff-panel-DUeb6EUF.js → commit-diff-panel-0YMWMSS5.js} +1 -1
- package/web/dist/assets/{diff-DVALb2F0.js → diff-uoV05LOo.js} +2 -2
- package/web/dist/assets/{diff-view-DxV_tLUt.js → diff-view-DsgNtCun.js} +1 -1
- package/web/dist/assets/{file-preview-BFS1UwXr.js → file-preview-lbIox3_r.js} +1 -1
- package/web/dist/assets/{git-toolbar-C89FoROy.js → git-toolbar-BKPdSdFU.js} +1 -1
- package/web/dist/assets/{github-B4Meld9S.js → github-CKFgh3_h.js} +1 -1
- package/web/dist/assets/{global-activity-route-CuU0bmKz.js → global-activity-route-Dn7DpFx9.js} +1 -1
- package/web/dist/assets/index-Du3iOaSl.js +14 -0
- package/web/dist/assets/{markdown-DuVt8jbQ.js → markdown-4X0eZfcY.js} +1 -1
- package/web/dist/assets/{picker-pill-CwbEYCjL.js → picker-pill-CbOFEu2Q.js} +1 -1
- package/web/dist/assets/{preview-pane-connected-CSwZ6Xl5.js → preview-pane-connected-Bglr5RzA.js} +1 -1
- package/web/dist/assets/{project-router-B73juPC3.js → project-router-mfT7Zjrz.js} +1 -1
- package/web/dist/assets/project-scope-context-CN_qUdKE.js +4 -0
- package/web/dist/assets/{prompt-template-menu-nShN9uXQ.js → prompt-template-menu-DRZbBFIy.js} +1 -1
- package/web/dist/assets/queries-DCMqb5cz.js +1 -0
- package/web/dist/assets/{reference-chip-yXXzlbts.js → reference-chip-DpSg7B3L.js} +1 -1
- package/web/dist/assets/{repo-git-CDOCx8X4.js → repo-git-PioGdOOQ.js} +1 -1
- package/web/dist/assets/{report-reader-CgYcjz5W.js → report-reader-CoWKOnD5.js} +1 -1
- package/web/dist/assets/{reports-nt1YPqOJ.js → reports-CDR_xSv6.js} +1 -1
- package/web/dist/assets/run-header--v3zgN-D.js +2 -0
- package/web/dist/assets/{skills-D45ND2YB.js → skills-CMCb5oGu.js} +1 -1
- package/web/dist/assets/{tab-link-BwGcrAfg.js → tab-link-DRCtSLMC.js} +1 -1
- package/web/dist/assets/{task-changes-NPbEK_pM.js → task-changes-gdJm6bLV.js} +1 -1
- package/web/dist/assets/{task-commits-D_YFcFld.js → task-commits-Ddrh4yVp.js} +1 -1
- package/web/dist/assets/{task-files-eHbJ4ftX.js → task-files-B3GsdzeL.js} +1 -1
- package/web/dist/assets/{task-github-item-D0splQvy.js → task-github-item-DT3qM81J.js} +1 -1
- package/web/dist/assets/{task-thread-B_pBPheb.js → task-thread-Co28WXQc.js} +1 -1
- package/web/dist/assets/{thread-state-DFXgDkC_.js → thread-state-Rg1AjAMm.js} +1 -1
- package/web/dist/assets/{use-desktop-D3W91YLi.js → use-desktop-BylUB37R.js} +1 -1
- package/web/dist/assets/{use-hand-to-agent-state-CVgHwx89.js → use-hand-to-agent-state-BuuvdaEy.js} +1 -1
- package/web/dist/assets/{useInfiniteQuery-B6Kx_mBY.js → useInfiniteQuery-kvMYflQO.js} +1 -1
- package/web/dist/assets/useQuery-CBcJwUYN.js +1 -0
- package/web/dist/assets/{workflows-fidBxppB.js → workflows-BROu_Zz4.js} +2 -2
- package/web/dist/assets/{ws-Bb6iWQU5.js → ws-X7SxM79d.js} +1 -1
- package/web/dist/index.html +13 -13
- package/web/dist/assets/attention-KYhxOgNq.js +0 -1
- package/web/dist/assets/index-Cwfi9cG9.js +0 -14
- package/web/dist/assets/project-scope-context-B2P3zXB1.js +0 -4
- package/web/dist/assets/queries-B6a1W2sa.js +0 -1
- package/web/dist/assets/run-header-DaqWXi5W.js +0 -2
- package/web/dist/assets/useQuery-D8aTqerT.js +0 -1
package/dist/server/server.d.ts
CHANGED
|
@@ -6854,6 +6854,7 @@ export declare function createApp(deps: ServerDeps): import("hono/hono-base").Ho
|
|
|
6854
6854
|
phase: "cleaning" | "complete" | "incomplete" | "requested" | "terminating";
|
|
6855
6855
|
remaining: ("branch" | "process" | "worktree")[];
|
|
6856
6856
|
error?: string | undefined;
|
|
6857
|
+
discardWork?: true | undefined;
|
|
6857
6858
|
} | undefined;
|
|
6858
6859
|
context?: {
|
|
6859
6860
|
text?: string | undefined;
|
|
@@ -8119,6 +8120,7 @@ export declare function createApp(deps: ServerDeps): import("hono/hono-base").Ho
|
|
|
8119
8120
|
phase: "cleaning" | "complete" | "incomplete" | "requested" | "terminating";
|
|
8120
8121
|
remaining: ("branch" | "process" | "worktree")[];
|
|
8121
8122
|
error?: string | undefined;
|
|
8123
|
+
discardWork?: true | undefined;
|
|
8122
8124
|
retry?: {
|
|
8123
8125
|
attempts: number;
|
|
8124
8126
|
nextAt: string;
|
|
@@ -8192,7 +8194,9 @@ export declare function createApp(deps: ServerDeps): import("hono/hono-base").Ho
|
|
|
8192
8194
|
id: string;
|
|
8193
8195
|
};
|
|
8194
8196
|
} & {
|
|
8195
|
-
json:
|
|
8197
|
+
json: {
|
|
8198
|
+
discardWork?: true | undefined;
|
|
8199
|
+
};
|
|
8196
8200
|
};
|
|
8197
8201
|
} | {
|
|
8198
8202
|
output: {
|
|
@@ -8210,12 +8214,18 @@ export declare function createApp(deps: ServerDeps): import("hono/hono-base").Ho
|
|
|
8210
8214
|
id: string;
|
|
8211
8215
|
};
|
|
8212
8216
|
} & {
|
|
8213
|
-
json:
|
|
8217
|
+
json: {
|
|
8218
|
+
discardWork?: true | undefined;
|
|
8219
|
+
};
|
|
8214
8220
|
};
|
|
8215
8221
|
} | {
|
|
8216
8222
|
output: {
|
|
8217
8223
|
workerId: string;
|
|
8218
8224
|
state: "complete" | "incomplete";
|
|
8225
|
+
work?: {
|
|
8226
|
+
uncommittedFiles: number;
|
|
8227
|
+
commits: number;
|
|
8228
|
+
} | undefined;
|
|
8219
8229
|
deleted?: ({
|
|
8220
8230
|
kind: "worktree";
|
|
8221
8231
|
path: string;
|
|
@@ -8237,12 +8247,18 @@ export declare function createApp(deps: ServerDeps): import("hono/hono-base").Ho
|
|
|
8237
8247
|
id: string;
|
|
8238
8248
|
};
|
|
8239
8249
|
} & {
|
|
8240
|
-
json:
|
|
8250
|
+
json: {
|
|
8251
|
+
discardWork?: true | undefined;
|
|
8252
|
+
};
|
|
8241
8253
|
};
|
|
8242
8254
|
} | {
|
|
8243
8255
|
output: {
|
|
8244
8256
|
workerId: string;
|
|
8245
8257
|
state: "complete" | "incomplete";
|
|
8258
|
+
work?: {
|
|
8259
|
+
uncommittedFiles: number;
|
|
8260
|
+
commits: number;
|
|
8261
|
+
} | undefined;
|
|
8246
8262
|
deleted?: ({
|
|
8247
8263
|
kind: "worktree";
|
|
8248
8264
|
path: string;
|
|
@@ -8264,7 +8280,9 @@ export declare function createApp(deps: ServerDeps): import("hono/hono-base").Ho
|
|
|
8264
8280
|
id: string;
|
|
8265
8281
|
};
|
|
8266
8282
|
} & {
|
|
8267
|
-
json:
|
|
8283
|
+
json: {
|
|
8284
|
+
discardWork?: true | undefined;
|
|
8285
|
+
};
|
|
8268
8286
|
};
|
|
8269
8287
|
};
|
|
8270
8288
|
};
|
|
@@ -9246,6 +9264,7 @@ export declare function createApp(deps: ServerDeps): import("hono/hono-base").Ho
|
|
|
9246
9264
|
phase: "cleaning" | "complete" | "incomplete" | "requested" | "terminating";
|
|
9247
9265
|
remaining: ("branch" | "process" | "worktree")[];
|
|
9248
9266
|
error?: string | undefined;
|
|
9267
|
+
discardWork?: true | undefined;
|
|
9249
9268
|
} | undefined;
|
|
9250
9269
|
context?: {
|
|
9251
9270
|
text?: string | undefined;
|
|
@@ -10383,6 +10402,7 @@ export declare function createApp(deps: ServerDeps): import("hono/hono-base").Ho
|
|
|
10383
10402
|
phase: "cleaning" | "complete" | "incomplete" | "requested" | "terminating";
|
|
10384
10403
|
remaining: ("branch" | "process" | "worktree")[];
|
|
10385
10404
|
error?: string | undefined;
|
|
10405
|
+
discardWork?: true | undefined;
|
|
10386
10406
|
} | undefined;
|
|
10387
10407
|
context?: {
|
|
10388
10408
|
text?: string | undefined;
|
|
@@ -11521,6 +11541,7 @@ export declare function createApp(deps: ServerDeps): import("hono/hono-base").Ho
|
|
|
11521
11541
|
phase: "cleaning" | "complete" | "incomplete" | "requested" | "terminating";
|
|
11522
11542
|
remaining: ("branch" | "process" | "worktree")[];
|
|
11523
11543
|
error?: string | undefined;
|
|
11544
|
+
discardWork?: true | undefined;
|
|
11524
11545
|
} | undefined;
|
|
11525
11546
|
context?: {
|
|
11526
11547
|
text?: string | undefined;
|
|
@@ -12686,6 +12707,7 @@ export declare function createApp(deps: ServerDeps): import("hono/hono-base").Ho
|
|
|
12686
12707
|
phase: "cleaning" | "complete" | "incomplete" | "requested" | "terminating";
|
|
12687
12708
|
remaining: ("branch" | "process" | "worktree")[];
|
|
12688
12709
|
error?: string | undefined;
|
|
12710
|
+
discardWork?: true | undefined;
|
|
12689
12711
|
} | undefined;
|
|
12690
12712
|
context?: {
|
|
12691
12713
|
text?: string | undefined;
|
|
@@ -13799,6 +13821,7 @@ export declare function createApp(deps: ServerDeps): import("hono/hono-base").Ho
|
|
|
13799
13821
|
phase: "cleaning" | "complete" | "incomplete" | "requested" | "terminating";
|
|
13800
13822
|
remaining: ("branch" | "process" | "worktree")[];
|
|
13801
13823
|
error?: string | undefined;
|
|
13824
|
+
discardWork?: true | undefined;
|
|
13802
13825
|
} | undefined;
|
|
13803
13826
|
context?: {
|
|
13804
13827
|
text?: string | undefined;
|
|
@@ -14912,6 +14935,7 @@ export declare function createApp(deps: ServerDeps): import("hono/hono-base").Ho
|
|
|
14912
14935
|
phase: "cleaning" | "complete" | "incomplete" | "requested" | "terminating";
|
|
14913
14936
|
remaining: ("branch" | "process" | "worktree")[];
|
|
14914
14937
|
error?: string | undefined;
|
|
14938
|
+
discardWork?: true | undefined;
|
|
14915
14939
|
} | undefined;
|
|
14916
14940
|
context?: {
|
|
14917
14941
|
text?: string | undefined;
|
|
@@ -15431,6 +15455,7 @@ export declare function createApp(deps: ServerDeps): import("hono/hono-base").Ho
|
|
|
15431
15455
|
phase: "cleaning" | "complete" | "incomplete" | "requested" | "terminating";
|
|
15432
15456
|
remaining: ("branch" | "process" | "worktree")[];
|
|
15433
15457
|
error?: string | undefined;
|
|
15458
|
+
discardWork?: true | undefined;
|
|
15434
15459
|
} | undefined;
|
|
15435
15460
|
context?: {
|
|
15436
15461
|
text?: string | undefined;
|
|
@@ -17341,6 +17366,7 @@ export declare function createApp(deps: ServerDeps): import("hono/hono-base").Ho
|
|
|
17341
17366
|
phase: "cleaning" | "complete" | "incomplete" | "requested" | "terminating";
|
|
17342
17367
|
remaining: ("branch" | "process" | "worktree")[];
|
|
17343
17368
|
error?: string | undefined;
|
|
17369
|
+
discardWork?: true | undefined;
|
|
17344
17370
|
} | undefined;
|
|
17345
17371
|
context?: {
|
|
17346
17372
|
text?: string | undefined;
|
|
@@ -22748,6 +22774,7 @@ export declare function createApp(deps: ServerDeps): import("hono/hono-base").Ho
|
|
|
22748
22774
|
phase: "cleaning" | "complete" | "incomplete" | "requested" | "terminating";
|
|
22749
22775
|
remaining: ("branch" | "process" | "worktree")[];
|
|
22750
22776
|
error?: string | undefined;
|
|
22777
|
+
discardWork?: true | undefined;
|
|
22751
22778
|
} | undefined;
|
|
22752
22779
|
context?: {
|
|
22753
22780
|
text?: string | undefined;
|
|
@@ -24013,6 +24040,7 @@ export declare function createApp(deps: ServerDeps): import("hono/hono-base").Ho
|
|
|
24013
24040
|
phase: "cleaning" | "complete" | "incomplete" | "requested" | "terminating";
|
|
24014
24041
|
remaining: ("branch" | "process" | "worktree")[];
|
|
24015
24042
|
error?: string | undefined;
|
|
24043
|
+
discardWork?: true | undefined;
|
|
24016
24044
|
retry?: {
|
|
24017
24045
|
attempts: number;
|
|
24018
24046
|
nextAt: string;
|
|
@@ -24086,7 +24114,9 @@ export declare function createApp(deps: ServerDeps): import("hono/hono-base").Ho
|
|
|
24086
24114
|
id: string;
|
|
24087
24115
|
};
|
|
24088
24116
|
} & {
|
|
24089
|
-
json:
|
|
24117
|
+
json: {
|
|
24118
|
+
discardWork?: true | undefined;
|
|
24119
|
+
};
|
|
24090
24120
|
};
|
|
24091
24121
|
} | {
|
|
24092
24122
|
output: {
|
|
@@ -24104,12 +24134,18 @@ export declare function createApp(deps: ServerDeps): import("hono/hono-base").Ho
|
|
|
24104
24134
|
id: string;
|
|
24105
24135
|
};
|
|
24106
24136
|
} & {
|
|
24107
|
-
json:
|
|
24137
|
+
json: {
|
|
24138
|
+
discardWork?: true | undefined;
|
|
24139
|
+
};
|
|
24108
24140
|
};
|
|
24109
24141
|
} | {
|
|
24110
24142
|
output: {
|
|
24111
24143
|
workerId: string;
|
|
24112
24144
|
state: "complete" | "incomplete";
|
|
24145
|
+
work?: {
|
|
24146
|
+
uncommittedFiles: number;
|
|
24147
|
+
commits: number;
|
|
24148
|
+
} | undefined;
|
|
24113
24149
|
deleted?: ({
|
|
24114
24150
|
kind: "worktree";
|
|
24115
24151
|
path: string;
|
|
@@ -24131,12 +24167,18 @@ export declare function createApp(deps: ServerDeps): import("hono/hono-base").Ho
|
|
|
24131
24167
|
id: string;
|
|
24132
24168
|
};
|
|
24133
24169
|
} & {
|
|
24134
|
-
json:
|
|
24170
|
+
json: {
|
|
24171
|
+
discardWork?: true | undefined;
|
|
24172
|
+
};
|
|
24135
24173
|
};
|
|
24136
24174
|
} | {
|
|
24137
24175
|
output: {
|
|
24138
24176
|
workerId: string;
|
|
24139
24177
|
state: "complete" | "incomplete";
|
|
24178
|
+
work?: {
|
|
24179
|
+
uncommittedFiles: number;
|
|
24180
|
+
commits: number;
|
|
24181
|
+
} | undefined;
|
|
24140
24182
|
deleted?: ({
|
|
24141
24183
|
kind: "worktree";
|
|
24142
24184
|
path: string;
|
|
@@ -24158,7 +24200,9 @@ export declare function createApp(deps: ServerDeps): import("hono/hono-base").Ho
|
|
|
24158
24200
|
id: string;
|
|
24159
24201
|
};
|
|
24160
24202
|
} & {
|
|
24161
|
-
json:
|
|
24203
|
+
json: {
|
|
24204
|
+
discardWork?: true | undefined;
|
|
24205
|
+
};
|
|
24162
24206
|
};
|
|
24163
24207
|
};
|
|
24164
24208
|
};
|
|
@@ -25140,6 +25184,7 @@ export declare function createApp(deps: ServerDeps): import("hono/hono-base").Ho
|
|
|
25140
25184
|
phase: "cleaning" | "complete" | "incomplete" | "requested" | "terminating";
|
|
25141
25185
|
remaining: ("branch" | "process" | "worktree")[];
|
|
25142
25186
|
error?: string | undefined;
|
|
25187
|
+
discardWork?: true | undefined;
|
|
25143
25188
|
} | undefined;
|
|
25144
25189
|
context?: {
|
|
25145
25190
|
text?: string | undefined;
|
|
@@ -26277,6 +26322,7 @@ export declare function createApp(deps: ServerDeps): import("hono/hono-base").Ho
|
|
|
26277
26322
|
phase: "cleaning" | "complete" | "incomplete" | "requested" | "terminating";
|
|
26278
26323
|
remaining: ("branch" | "process" | "worktree")[];
|
|
26279
26324
|
error?: string | undefined;
|
|
26325
|
+
discardWork?: true | undefined;
|
|
26280
26326
|
} | undefined;
|
|
26281
26327
|
context?: {
|
|
26282
26328
|
text?: string | undefined;
|
|
@@ -27415,6 +27461,7 @@ export declare function createApp(deps: ServerDeps): import("hono/hono-base").Ho
|
|
|
27415
27461
|
phase: "cleaning" | "complete" | "incomplete" | "requested" | "terminating";
|
|
27416
27462
|
remaining: ("branch" | "process" | "worktree")[];
|
|
27417
27463
|
error?: string | undefined;
|
|
27464
|
+
discardWork?: true | undefined;
|
|
27418
27465
|
} | undefined;
|
|
27419
27466
|
context?: {
|
|
27420
27467
|
text?: string | undefined;
|
|
@@ -28580,6 +28627,7 @@ export declare function createApp(deps: ServerDeps): import("hono/hono-base").Ho
|
|
|
28580
28627
|
phase: "cleaning" | "complete" | "incomplete" | "requested" | "terminating";
|
|
28581
28628
|
remaining: ("branch" | "process" | "worktree")[];
|
|
28582
28629
|
error?: string | undefined;
|
|
28630
|
+
discardWork?: true | undefined;
|
|
28583
28631
|
} | undefined;
|
|
28584
28632
|
context?: {
|
|
28585
28633
|
text?: string | undefined;
|
|
@@ -29693,6 +29741,7 @@ export declare function createApp(deps: ServerDeps): import("hono/hono-base").Ho
|
|
|
29693
29741
|
phase: "cleaning" | "complete" | "incomplete" | "requested" | "terminating";
|
|
29694
29742
|
remaining: ("branch" | "process" | "worktree")[];
|
|
29695
29743
|
error?: string | undefined;
|
|
29744
|
+
discardWork?: true | undefined;
|
|
29696
29745
|
} | undefined;
|
|
29697
29746
|
context?: {
|
|
29698
29747
|
text?: string | undefined;
|
|
@@ -30806,6 +30855,7 @@ export declare function createApp(deps: ServerDeps): import("hono/hono-base").Ho
|
|
|
30806
30855
|
phase: "cleaning" | "complete" | "incomplete" | "requested" | "terminating";
|
|
30807
30856
|
remaining: ("branch" | "process" | "worktree")[];
|
|
30808
30857
|
error?: string | undefined;
|
|
30858
|
+
discardWork?: true | undefined;
|
|
30809
30859
|
} | undefined;
|
|
30810
30860
|
context?: {
|
|
30811
30861
|
text?: string | undefined;
|
|
@@ -31325,6 +31375,7 @@ export declare function createApp(deps: ServerDeps): import("hono/hono-base").Ho
|
|
|
31325
31375
|
phase: "cleaning" | "complete" | "incomplete" | "requested" | "terminating";
|
|
31326
31376
|
remaining: ("branch" | "process" | "worktree")[];
|
|
31327
31377
|
error?: string | undefined;
|
|
31378
|
+
discardWork?: true | undefined;
|
|
31328
31379
|
} | undefined;
|
|
31329
31380
|
context?: {
|
|
31330
31381
|
text?: string | undefined;
|
|
@@ -33235,6 +33286,7 @@ export declare function createApp(deps: ServerDeps): import("hono/hono-base").Ho
|
|
|
33235
33286
|
phase: "cleaning" | "complete" | "incomplete" | "requested" | "terminating";
|
|
33236
33287
|
remaining: ("branch" | "process" | "worktree")[];
|
|
33237
33288
|
error?: string | undefined;
|
|
33289
|
+
discardWork?: true | undefined;
|
|
33238
33290
|
} | undefined;
|
|
33239
33291
|
context?: {
|
|
33240
33292
|
text?: string | undefined;
|
package/dist/server/server.js
CHANGED
|
@@ -51,7 +51,7 @@ import { DelegationService } from '../delegation/service.js';
|
|
|
51
51
|
import { runRelationships } from './run-relationships.js';
|
|
52
52
|
import { delegationFailure } from '../delegation/routes.js';
|
|
53
53
|
import { githubItemParamsSchema } from '../contract/index.js';
|
|
54
|
-
import { workerEmptyRequestSchema, runRelationshipsSchema } from '../contract/index.js';
|
|
54
|
+
import { workerDestroyRequestSchema, workerEmptyRequestSchema, runRelationshipsSchema } from '../contract/index.js';
|
|
55
55
|
import { existsSync, readFileSync, statSync } from 'node:fs';
|
|
56
56
|
import { randomUUID } from 'node:crypto';
|
|
57
57
|
import { createAutomationService, onceCreateAnswer } from '../automations/service.js';
|
|
@@ -2444,11 +2444,11 @@ export function createApp(deps) {
|
|
|
2444
2444
|
return c.json({ error: 'not found' }, 404);
|
|
2445
2445
|
return c.json(runRelationshipsSchema.parse(runRelationships(store, run)));
|
|
2446
2446
|
})
|
|
2447
|
-
.post('/runs/:id/worker-destroy', queryZodValidator(workerEmptyRequestSchema, { code: 'invalid_input', message: 'Invalid cleanup query' }), paramZodValidator(runIdParamSchema, { code: 'invalid_input', message: 'Invalid worker ID' }), jsonZodValidator(
|
|
2447
|
+
.post('/runs/:id/worker-destroy', queryZodValidator(workerEmptyRequestSchema, { code: 'invalid_input', message: 'Invalid cleanup query' }), paramZodValidator(runIdParamSchema, { code: 'invalid_input', message: 'Invalid worker ID' }), jsonZodValidator(workerDestroyRequestSchema, { absent: {}, malformed: null, code: 'invalid_input', message: 'Invalid cleanup input' }), async (c) => {
|
|
2448
2448
|
const project = c.get('project');
|
|
2449
2449
|
delegationService.registerProject(project);
|
|
2450
2450
|
try {
|
|
2451
|
-
const result = await delegationService.destroyForHuman(project.id, c.req.valid('param').id);
|
|
2451
|
+
const result = await delegationService.destroyForHuman(project.id, c.req.valid('param').id, c.req.valid('json'));
|
|
2452
2452
|
return result.state === 'incomplete' ? c.json(result, 409) : c.json(result, 200);
|
|
2453
2453
|
}
|
|
2454
2454
|
catch (error) {
|