@hearsay-tools/squawk 0.18.0-pr4052.7721 → 0.18.0-pr4053.7727
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 +46 -46
- package/dist/core/runner-definition.d.ts +1 -1
- package/dist/delegation/routes.d.ts +79 -79
- package/dist/delegation/transport.d.ts +65 -65
- package/dist/runs/lifecycle.d.ts +75 -0
- package/dist/runs/lifecycle.js +63 -0
- package/dist/runs/lifecycle.js.map +1 -0
- package/dist/runs/outcome-commit.d.ts +2 -0
- package/dist/runs/outcome-commit.js +1 -1
- package/dist/runs/outcome-commit.js.map +1 -1
- package/dist/runs/record-write-rules.d.ts +15 -3
- package/dist/runs/record-write-rules.js +38 -10
- package/dist/runs/record-write-rules.js.map +1 -1
- package/dist/runs/store.d.ts +8 -0
- package/dist/runs/store.js +135 -131
- package/dist/runs/store.js.map +1 -1
- package/dist/server/activity-routes.d.ts +23 -23
- package/dist/server/models-routes.d.ts +13 -13
- package/dist/server/provider-sign-in-routes.d.ts +2 -2
- package/dist/server/server.d.ts +1635 -1635
- package/dist/workflows/run/usage-accounting.js +3 -1
- package/dist/workflows/run/usage-accounting.js.map +1 -1
- package/package.json +4 -4
|
@@ -285,12 +285,11 @@ export declare function ciToolRoutes(capabilities: Map<string, Capability>): imp
|
|
|
285
285
|
"/api/v1/tools/ask": {
|
|
286
286
|
$post: {
|
|
287
287
|
output: {
|
|
288
|
-
|
|
289
|
-
code: 'unavailable';
|
|
288
|
+
code: 'capability_revoked';
|
|
290
289
|
message: string;
|
|
291
290
|
};
|
|
292
291
|
outputFormat: "json";
|
|
293
|
-
status:
|
|
292
|
+
status: 401;
|
|
294
293
|
input: {
|
|
295
294
|
json: {
|
|
296
295
|
questions: {
|
|
@@ -309,11 +308,12 @@ export declare function ciToolRoutes(capabilities: Map<string, Capability>): imp
|
|
|
309
308
|
};
|
|
310
309
|
} | {
|
|
311
310
|
output: {
|
|
312
|
-
|
|
311
|
+
ok: false;
|
|
312
|
+
code: 'unavailable';
|
|
313
313
|
message: string;
|
|
314
314
|
};
|
|
315
315
|
outputFormat: "json";
|
|
316
|
-
status:
|
|
316
|
+
status: import("hono/utils/http-status").ContentfulStatusCode;
|
|
317
317
|
input: {
|
|
318
318
|
json: {
|
|
319
319
|
questions: {
|
|
@@ -383,12 +383,11 @@ export declare function ciToolRoutes(capabilities: Map<string, Capability>): imp
|
|
|
383
383
|
"/api/v1/tools/cancel-wait": {
|
|
384
384
|
$post: {
|
|
385
385
|
output: {
|
|
386
|
-
|
|
387
|
-
code: 'unavailable';
|
|
386
|
+
code: 'capability_revoked';
|
|
388
387
|
message: string;
|
|
389
388
|
};
|
|
390
389
|
outputFormat: "json";
|
|
391
|
-
status:
|
|
390
|
+
status: 401;
|
|
392
391
|
input: {
|
|
393
392
|
json: {
|
|
394
393
|
wait_id: string;
|
|
@@ -396,11 +395,12 @@ export declare function ciToolRoutes(capabilities: Map<string, Capability>): imp
|
|
|
396
395
|
};
|
|
397
396
|
} | {
|
|
398
397
|
output: {
|
|
399
|
-
|
|
398
|
+
cancelled: false;
|
|
399
|
+
code: 'unavailable';
|
|
400
400
|
message: string;
|
|
401
401
|
};
|
|
402
402
|
outputFormat: "json";
|
|
403
|
-
status:
|
|
403
|
+
status: import("hono/utils/http-status").ContentfulStatusCode;
|
|
404
404
|
input: {
|
|
405
405
|
json: {
|
|
406
406
|
wait_id: string;
|
|
@@ -448,12 +448,11 @@ export declare function ciToolRoutes(capabilities: Map<string, Capability>): imp
|
|
|
448
448
|
"/api/v1/tools/done": {
|
|
449
449
|
$post: {
|
|
450
450
|
output: {
|
|
451
|
-
|
|
452
|
-
code: 'unavailable';
|
|
451
|
+
code: 'capability_revoked';
|
|
453
452
|
message: string;
|
|
454
453
|
};
|
|
455
454
|
outputFormat: "json";
|
|
456
|
-
status:
|
|
455
|
+
status: 401;
|
|
457
456
|
input: {
|
|
458
457
|
json: {
|
|
459
458
|
summary?: string | undefined;
|
|
@@ -461,11 +460,12 @@ export declare function ciToolRoutes(capabilities: Map<string, Capability>): imp
|
|
|
461
460
|
};
|
|
462
461
|
} | {
|
|
463
462
|
output: {
|
|
464
|
-
|
|
463
|
+
ok: false;
|
|
464
|
+
code: 'unavailable';
|
|
465
465
|
message: string;
|
|
466
466
|
};
|
|
467
467
|
outputFormat: "json";
|
|
468
|
-
status:
|
|
468
|
+
status: import("hono/utils/http-status").ContentfulStatusCode;
|
|
469
469
|
input: {
|
|
470
470
|
json: {
|
|
471
471
|
summary?: string | undefined;
|
|
@@ -548,13 +548,11 @@ export declare function ciToolRoutes(capabilities: Map<string, Capability>): imp
|
|
|
548
548
|
"/api/v1/tools/preview-stop": {
|
|
549
549
|
$post: {
|
|
550
550
|
output: {
|
|
551
|
-
|
|
552
|
-
code: "adopted" | "approval_required" | "headless" | "invalid_input" | "not_registered" | "port_held" | "port_in_use" | "preview_disabled" | "restarted" | "stopped" | "unavailable" | "worktree_missing";
|
|
551
|
+
code: 'capability_revoked';
|
|
553
552
|
message: string;
|
|
554
|
-
hint: string;
|
|
555
553
|
};
|
|
556
554
|
outputFormat: "json";
|
|
557
|
-
status:
|
|
555
|
+
status: 401;
|
|
558
556
|
input: {
|
|
559
557
|
json: {
|
|
560
558
|
port: number;
|
|
@@ -563,11 +561,13 @@ export declare function ciToolRoutes(capabilities: Map<string, Capability>): imp
|
|
|
563
561
|
};
|
|
564
562
|
} | {
|
|
565
563
|
output: {
|
|
566
|
-
|
|
564
|
+
ok: boolean;
|
|
565
|
+
code: "adopted" | "approval_required" | "headless" | "invalid_input" | "not_registered" | "port_held" | "port_in_use" | "preview_disabled" | "restarted" | "stopped" | "unavailable" | "worktree_missing";
|
|
567
566
|
message: string;
|
|
567
|
+
hint: string;
|
|
568
568
|
};
|
|
569
569
|
outputFormat: "json";
|
|
570
|
-
status:
|
|
570
|
+
status: import("hono/utils/http-status").ContentfulStatusCode;
|
|
571
571
|
input: {
|
|
572
572
|
json: {
|
|
573
573
|
port: number;
|
|
@@ -580,13 +580,11 @@ export declare function ciToolRoutes(capabilities: Map<string, Capability>): imp
|
|
|
580
580
|
"/api/v1/tools/preview-serve": {
|
|
581
581
|
$post: {
|
|
582
582
|
output: {
|
|
583
|
-
|
|
584
|
-
code: "cezar_port" | "cwd_outside_worktree" | "headless" | "invalid_input" | "port_held" | "preview_disabled" | "registered" | "replaced" | "too_many" | "unavailable" | "worktree_missing";
|
|
583
|
+
code: 'capability_revoked';
|
|
585
584
|
message: string;
|
|
586
|
-
hint: string;
|
|
587
585
|
};
|
|
588
586
|
outputFormat: "json";
|
|
589
|
-
status:
|
|
587
|
+
status: 401;
|
|
590
588
|
input: {
|
|
591
589
|
json: {
|
|
592
590
|
command: string;
|
|
@@ -598,11 +596,13 @@ export declare function ciToolRoutes(capabilities: Map<string, Capability>): imp
|
|
|
598
596
|
};
|
|
599
597
|
} | {
|
|
600
598
|
output: {
|
|
601
|
-
|
|
599
|
+
ok: boolean;
|
|
600
|
+
code: "cezar_port" | "cwd_outside_worktree" | "headless" | "invalid_input" | "port_held" | "preview_disabled" | "registered" | "replaced" | "too_many" | "unavailable" | "worktree_missing";
|
|
602
601
|
message: string;
|
|
602
|
+
hint: string;
|
|
603
603
|
};
|
|
604
604
|
outputFormat: "json";
|
|
605
|
-
status:
|
|
605
|
+
status: import("hono/utils/http-status").ContentfulStatusCode;
|
|
606
606
|
input: {
|
|
607
607
|
json: {
|
|
608
608
|
command: string;
|
|
@@ -618,12 +618,11 @@ export declare function ciToolRoutes(capabilities: Map<string, Capability>): imp
|
|
|
618
618
|
"/api/v1/tools/automation": {
|
|
619
619
|
$post: {
|
|
620
620
|
output: {
|
|
621
|
-
|
|
622
|
-
code: import('../contract/index.js').ScheduledTaskRefusalCode;
|
|
621
|
+
code: 'capability_revoked';
|
|
623
622
|
message: string;
|
|
624
623
|
};
|
|
625
624
|
outputFormat: "json";
|
|
626
|
-
status:
|
|
625
|
+
status: 401;
|
|
627
626
|
input: {
|
|
628
627
|
json: {
|
|
629
628
|
action: "create";
|
|
@@ -703,11 +702,12 @@ export declare function ciToolRoutes(capabilities: Map<string, Capability>): imp
|
|
|
703
702
|
};
|
|
704
703
|
} | {
|
|
705
704
|
output: {
|
|
706
|
-
|
|
705
|
+
ok: false;
|
|
706
|
+
code: import('../contract/index.js').ScheduledTaskRefusalCode;
|
|
707
707
|
message: string;
|
|
708
708
|
};
|
|
709
709
|
outputFormat: "json";
|
|
710
|
-
status:
|
|
710
|
+
status: import("hono/utils/http-status").ContentfulStatusCode;
|
|
711
711
|
input: {
|
|
712
712
|
json: {
|
|
713
713
|
action: "create";
|
|
@@ -963,12 +963,11 @@ export declare function ciToolRoutes(capabilities: Map<string, Capability>): imp
|
|
|
963
963
|
"/api/v1/tools/schedule-task": {
|
|
964
964
|
$post: {
|
|
965
965
|
output: {
|
|
966
|
-
|
|
967
|
-
code: import('../contract/index.js').ScheduledTaskRefusalCode;
|
|
966
|
+
code: 'capability_revoked';
|
|
968
967
|
message: string;
|
|
969
968
|
};
|
|
970
969
|
outputFormat: "json";
|
|
971
|
-
status:
|
|
970
|
+
status: 401;
|
|
972
971
|
input: {
|
|
973
972
|
json: {
|
|
974
973
|
at?: string | undefined;
|
|
@@ -985,11 +984,12 @@ export declare function ciToolRoutes(capabilities: Map<string, Capability>): imp
|
|
|
985
984
|
};
|
|
986
985
|
} | {
|
|
987
986
|
output: {
|
|
988
|
-
|
|
987
|
+
ok: false;
|
|
988
|
+
code: import('../contract/index.js').ScheduledTaskRefusalCode;
|
|
989
989
|
message: string;
|
|
990
990
|
};
|
|
991
991
|
outputFormat: "json";
|
|
992
|
-
status:
|
|
992
|
+
status: import("hono/utils/http-status").ContentfulStatusCode;
|
|
993
993
|
input: {
|
|
994
994
|
json: {
|
|
995
995
|
at?: string | undefined;
|
|
@@ -1006,10 +1006,6 @@ export declare function ciToolRoutes(capabilities: Map<string, Capability>): imp
|
|
|
1006
1006
|
};
|
|
1007
1007
|
} | {
|
|
1008
1008
|
output: {
|
|
1009
|
-
ok: false;
|
|
1010
|
-
code: "automations_off" | "conflict" | "invalid_request" | "not_found" | "unavailable";
|
|
1011
|
-
message: string;
|
|
1012
|
-
} | {
|
|
1013
1009
|
ok: true;
|
|
1014
1010
|
task: {
|
|
1015
1011
|
id: string;
|
|
@@ -1021,6 +1017,10 @@ export declare function ciToolRoutes(capabilities: Map<string, Capability>): imp
|
|
|
1021
1017
|
url?: string | undefined;
|
|
1022
1018
|
};
|
|
1023
1019
|
note: string;
|
|
1020
|
+
} | {
|
|
1021
|
+
ok: false;
|
|
1022
|
+
code: "automations_off" | "conflict" | "invalid_request" | "not_found" | "unavailable";
|
|
1023
|
+
message: string;
|
|
1024
1024
|
};
|
|
1025
1025
|
outputFormat: "json";
|
|
1026
1026
|
status: import("hono/utils/http-status").ContentfulStatusCode;
|
|
@@ -1044,12 +1044,11 @@ export declare function ciToolRoutes(capabilities: Map<string, Capability>): imp
|
|
|
1044
1044
|
"/api/v1/tools/scheduled-tasks": {
|
|
1045
1045
|
$post: {
|
|
1046
1046
|
output: {
|
|
1047
|
-
|
|
1048
|
-
code: import('../contract/index.js').ScheduledTaskRefusalCode;
|
|
1047
|
+
code: 'capability_revoked';
|
|
1049
1048
|
message: string;
|
|
1050
1049
|
};
|
|
1051
1050
|
outputFormat: "json";
|
|
1052
|
-
status:
|
|
1051
|
+
status: 401;
|
|
1053
1052
|
input: {
|
|
1054
1053
|
json: {
|
|
1055
1054
|
at?: string | undefined;
|
|
@@ -1082,11 +1081,12 @@ export declare function ciToolRoutes(capabilities: Map<string, Capability>): imp
|
|
|
1082
1081
|
};
|
|
1083
1082
|
} | {
|
|
1084
1083
|
output: {
|
|
1085
|
-
|
|
1084
|
+
ok: false;
|
|
1085
|
+
code: import('../contract/index.js').ScheduledTaskRefusalCode;
|
|
1086
1086
|
message: string;
|
|
1087
1087
|
};
|
|
1088
1088
|
outputFormat: "json";
|
|
1089
|
-
status:
|
|
1089
|
+
status: import("hono/utils/http-status").ContentfulStatusCode;
|
|
1090
1090
|
input: {
|
|
1091
1091
|
json: {
|
|
1092
1092
|
at?: string | undefined;
|
|
@@ -69,7 +69,7 @@ export interface RunnerDefinition {
|
|
|
69
69
|
* A runner's native mock (the `mock` part): the script in `packages/cezar/scripts/`, the variable
|
|
70
70
|
* that points the runner at it, and the prompt each shared parity scenario sends it. Plain data in
|
|
71
71
|
* `runners/<id>/mock.ts`. `core/skill-probe.ts` and the parity kit read it from the registry, and
|
|
72
|
-
* `lint/mock-scenario-boundary.ts`
|
|
72
|
+
* `lint/mock-scenario-boundary.ts` parses `script` from the source of `runners/<id>/mock.ts`.
|
|
73
73
|
*/
|
|
74
74
|
export interface RunnerMock {
|
|
75
75
|
/** The mock script's file name in `packages/cezar/scripts/`. */
|
|
@@ -27,6 +27,18 @@ export declare function delegationFailure(error: unknown): {
|
|
|
27
27
|
export declare function createDelegationRoutes(service: DelegationService, credentials: CredentialRegistry): import("hono/hono-base").HonoBase<Env, {
|
|
28
28
|
"/list": {
|
|
29
29
|
$get: {
|
|
30
|
+
output: {
|
|
31
|
+
error: string;
|
|
32
|
+
code?: "invalid_input" | undefined;
|
|
33
|
+
};
|
|
34
|
+
outputFormat: "json";
|
|
35
|
+
status: 400;
|
|
36
|
+
input: {
|
|
37
|
+
query: {
|
|
38
|
+
offset?: string | undefined;
|
|
39
|
+
};
|
|
40
|
+
};
|
|
41
|
+
} | {
|
|
30
42
|
output: {
|
|
31
43
|
workers: {
|
|
32
44
|
workerId: string;
|
|
@@ -73,34 +85,12 @@ export declare function createDelegationRoutes(service: DelegationService, crede
|
|
|
73
85
|
offset?: string | undefined;
|
|
74
86
|
};
|
|
75
87
|
};
|
|
76
|
-
} | {
|
|
77
|
-
output: {
|
|
78
|
-
error: string;
|
|
79
|
-
code?: "invalid_input" | undefined;
|
|
80
|
-
};
|
|
81
|
-
outputFormat: "json";
|
|
82
|
-
status: 400;
|
|
83
|
-
input: {
|
|
84
|
-
query: {
|
|
85
|
-
offset?: string | undefined;
|
|
86
|
-
};
|
|
87
|
-
};
|
|
88
88
|
};
|
|
89
89
|
};
|
|
90
90
|
} & {
|
|
91
91
|
"/discover": {
|
|
92
92
|
$post: {
|
|
93
93
|
output: {
|
|
94
|
-
scope: "host-default-account";
|
|
95
|
-
runners: {
|
|
96
|
-
requiresAccountHome?: boolean | undefined;
|
|
97
|
-
status: "connected" | "disconnected" | "not-installed" | "unknown";
|
|
98
|
-
enabled?: boolean | undefined;
|
|
99
|
-
hint?: string | undefined;
|
|
100
|
-
authFailureId?: string | undefined;
|
|
101
|
-
runner: string;
|
|
102
|
-
}[];
|
|
103
|
-
} | {
|
|
104
94
|
tasks: {
|
|
105
95
|
id: string;
|
|
106
96
|
title: string;
|
|
@@ -112,6 +102,16 @@ export declare function createDelegationRoutes(service: DelegationService, crede
|
|
|
112
102
|
reason?: string | undefined;
|
|
113
103
|
}[];
|
|
114
104
|
nextOffset?: number | undefined;
|
|
105
|
+
} | {
|
|
106
|
+
scope: "host-default-account";
|
|
107
|
+
runners: {
|
|
108
|
+
requiresAccountHome?: boolean | undefined;
|
|
109
|
+
status: "connected" | "disconnected" | "not-installed" | "unknown";
|
|
110
|
+
enabled?: boolean | undefined;
|
|
111
|
+
hint?: string | undefined;
|
|
112
|
+
authFailureId?: string | undefined;
|
|
113
|
+
runner: string;
|
|
114
|
+
}[];
|
|
115
115
|
} | {
|
|
116
116
|
runner: string;
|
|
117
117
|
models: {
|
|
@@ -232,13 +232,13 @@ export declare function createDelegationRoutes(service: DelegationService, crede
|
|
|
232
232
|
status: 200;
|
|
233
233
|
input: {
|
|
234
234
|
json: {
|
|
235
|
-
workerIds: string[];
|
|
236
|
-
timeoutSeconds?: number | undefined;
|
|
237
|
-
mode?: "all" | "any" | "one" | undefined;
|
|
238
|
-
} | {
|
|
239
235
|
requestIds: string[];
|
|
240
236
|
mode?: "all" | "any" | "one" | undefined;
|
|
241
237
|
timeoutSeconds?: number | undefined;
|
|
238
|
+
} | {
|
|
239
|
+
workerIds: string[];
|
|
240
|
+
timeoutSeconds?: number | undefined;
|
|
241
|
+
mode?: "all" | "any" | "one" | undefined;
|
|
242
242
|
} | {
|
|
243
243
|
peerIds: string[];
|
|
244
244
|
timeoutSeconds?: number | undefined;
|
|
@@ -629,6 +629,18 @@ export declare function createDelegationRoutes(service: DelegationService, crede
|
|
|
629
629
|
} & {
|
|
630
630
|
"/:workerId": {
|
|
631
631
|
$get: {
|
|
632
|
+
output: {
|
|
633
|
+
error: string;
|
|
634
|
+
code?: "invalid_input" | undefined;
|
|
635
|
+
};
|
|
636
|
+
outputFormat: "json";
|
|
637
|
+
status: 400;
|
|
638
|
+
input: {
|
|
639
|
+
param: {
|
|
640
|
+
workerId: string;
|
|
641
|
+
};
|
|
642
|
+
};
|
|
643
|
+
} | {
|
|
632
644
|
output: {
|
|
633
645
|
workerId: string;
|
|
634
646
|
settled: boolean;
|
|
@@ -746,7 +758,11 @@ export declare function createDelegationRoutes(service: DelegationService, crede
|
|
|
746
758
|
workerId: string;
|
|
747
759
|
};
|
|
748
760
|
};
|
|
749
|
-
}
|
|
761
|
+
};
|
|
762
|
+
};
|
|
763
|
+
} & {
|
|
764
|
+
"/:workerId/collect": {
|
|
765
|
+
$post: {
|
|
750
766
|
output: {
|
|
751
767
|
error: string;
|
|
752
768
|
code?: "invalid_input" | undefined;
|
|
@@ -757,12 +773,10 @@ export declare function createDelegationRoutes(service: DelegationService, crede
|
|
|
757
773
|
param: {
|
|
758
774
|
workerId: string;
|
|
759
775
|
};
|
|
776
|
+
} & {
|
|
777
|
+
json: Record<string, never>;
|
|
760
778
|
};
|
|
761
|
-
}
|
|
762
|
-
};
|
|
763
|
-
} & {
|
|
764
|
-
"/:workerId/collect": {
|
|
765
|
-
$post: {
|
|
779
|
+
} | {
|
|
766
780
|
output: {
|
|
767
781
|
workerId: string;
|
|
768
782
|
parentRunId: string;
|
|
@@ -885,7 +899,11 @@ export declare function createDelegationRoutes(service: DelegationService, crede
|
|
|
885
899
|
} & {
|
|
886
900
|
json: Record<string, never>;
|
|
887
901
|
};
|
|
888
|
-
}
|
|
902
|
+
};
|
|
903
|
+
};
|
|
904
|
+
} & {
|
|
905
|
+
"/:workerId/steer": {
|
|
906
|
+
$post: {
|
|
889
907
|
output: {
|
|
890
908
|
error: string;
|
|
891
909
|
code?: "invalid_input" | undefined;
|
|
@@ -897,13 +915,11 @@ export declare function createDelegationRoutes(service: DelegationService, crede
|
|
|
897
915
|
workerId: string;
|
|
898
916
|
};
|
|
899
917
|
} & {
|
|
900
|
-
json:
|
|
918
|
+
json: {
|
|
919
|
+
text: string;
|
|
920
|
+
};
|
|
901
921
|
};
|
|
902
|
-
}
|
|
903
|
-
};
|
|
904
|
-
} & {
|
|
905
|
-
"/:workerId/steer": {
|
|
906
|
-
$post: {
|
|
922
|
+
} | {
|
|
907
923
|
output: {
|
|
908
924
|
workerId: string;
|
|
909
925
|
state: "delivered" | "queued";
|
|
@@ -919,7 +935,11 @@ export declare function createDelegationRoutes(service: DelegationService, crede
|
|
|
919
935
|
text: string;
|
|
920
936
|
};
|
|
921
937
|
};
|
|
922
|
-
}
|
|
938
|
+
};
|
|
939
|
+
};
|
|
940
|
+
} & {
|
|
941
|
+
"/:workerId/stop": {
|
|
942
|
+
$post: {
|
|
923
943
|
output: {
|
|
924
944
|
error: string;
|
|
925
945
|
code?: "invalid_input" | undefined;
|
|
@@ -931,15 +951,9 @@ export declare function createDelegationRoutes(service: DelegationService, crede
|
|
|
931
951
|
workerId: string;
|
|
932
952
|
};
|
|
933
953
|
} & {
|
|
934
|
-
json:
|
|
935
|
-
text: string;
|
|
936
|
-
};
|
|
954
|
+
json: Record<string, never>;
|
|
937
955
|
};
|
|
938
|
-
}
|
|
939
|
-
};
|
|
940
|
-
} & {
|
|
941
|
-
"/:workerId/stop": {
|
|
942
|
-
$post: {
|
|
956
|
+
} | {
|
|
943
957
|
output: {
|
|
944
958
|
workerId: string;
|
|
945
959
|
state: "stopping" | "terminated";
|
|
@@ -953,7 +967,11 @@ export declare function createDelegationRoutes(service: DelegationService, crede
|
|
|
953
967
|
} & {
|
|
954
968
|
json: Record<string, never>;
|
|
955
969
|
};
|
|
956
|
-
}
|
|
970
|
+
};
|
|
971
|
+
};
|
|
972
|
+
} & {
|
|
973
|
+
"/:workerId/destroy": {
|
|
974
|
+
$post: {
|
|
957
975
|
output: {
|
|
958
976
|
error: string;
|
|
959
977
|
code?: "invalid_input" | undefined;
|
|
@@ -965,13 +983,11 @@ export declare function createDelegationRoutes(service: DelegationService, crede
|
|
|
965
983
|
workerId: string;
|
|
966
984
|
};
|
|
967
985
|
} & {
|
|
968
|
-
json:
|
|
986
|
+
json: {
|
|
987
|
+
discardWork?: true | undefined;
|
|
988
|
+
};
|
|
969
989
|
};
|
|
970
|
-
}
|
|
971
|
-
};
|
|
972
|
-
} & {
|
|
973
|
-
"/:workerId/destroy": {
|
|
974
|
-
$post: {
|
|
990
|
+
} | {
|
|
975
991
|
output: {
|
|
976
992
|
workerId: string;
|
|
977
993
|
state: "complete" | "incomplete";
|
|
@@ -1000,22 +1016,6 @@ export declare function createDelegationRoutes(service: DelegationService, crede
|
|
|
1000
1016
|
discardWork?: true | undefined;
|
|
1001
1017
|
};
|
|
1002
1018
|
};
|
|
1003
|
-
} | {
|
|
1004
|
-
output: {
|
|
1005
|
-
error: string;
|
|
1006
|
-
code?: "invalid_input" | undefined;
|
|
1007
|
-
};
|
|
1008
|
-
outputFormat: "json";
|
|
1009
|
-
status: 400;
|
|
1010
|
-
input: {
|
|
1011
|
-
param: {
|
|
1012
|
-
workerId: string;
|
|
1013
|
-
};
|
|
1014
|
-
} & {
|
|
1015
|
-
json: {
|
|
1016
|
-
discardWork?: true | undefined;
|
|
1017
|
-
};
|
|
1018
|
-
};
|
|
1019
1019
|
} | {
|
|
1020
1020
|
output: {
|
|
1021
1021
|
workerId: string;
|
|
@@ -1051,13 +1051,11 @@ export declare function createDelegationRoutes(service: DelegationService, crede
|
|
|
1051
1051
|
"/:workerId/diff": {
|
|
1052
1052
|
$get: {
|
|
1053
1053
|
output: {
|
|
1054
|
-
|
|
1055
|
-
|
|
1056
|
-
diff: string;
|
|
1057
|
-
truncated: boolean;
|
|
1054
|
+
error: string;
|
|
1055
|
+
code?: "invalid_input" | undefined;
|
|
1058
1056
|
};
|
|
1059
1057
|
outputFormat: "json";
|
|
1060
|
-
status:
|
|
1058
|
+
status: 400;
|
|
1061
1059
|
input: {
|
|
1062
1060
|
param: {
|
|
1063
1061
|
workerId: string;
|
|
@@ -1065,11 +1063,13 @@ export declare function createDelegationRoutes(service: DelegationService, crede
|
|
|
1065
1063
|
};
|
|
1066
1064
|
} | {
|
|
1067
1065
|
output: {
|
|
1068
|
-
|
|
1069
|
-
|
|
1066
|
+
workerId: string;
|
|
1067
|
+
baselineSha: string;
|
|
1068
|
+
diff: string;
|
|
1069
|
+
truncated: boolean;
|
|
1070
1070
|
};
|
|
1071
1071
|
outputFormat: "json";
|
|
1072
|
-
status:
|
|
1072
|
+
status: 200;
|
|
1073
1073
|
input: {
|
|
1074
1074
|
param: {
|
|
1075
1075
|
workerId: string;
|