@wjarka/cezarion 0.17.0-pr2465.3756 → 0.17.0-pr2467.3759
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/delegation/routes.d.ts +62 -62
- package/dist/delegation/transport.d.ts +62 -62
- package/dist/server/self-update-routes.d.ts +11 -11
- package/dist/server/server.d.ts +1222 -1222
- package/dist/voice/routes.d.ts +19 -19
- package/package.json +3 -3
|
@@ -94,11 +94,12 @@ export declare function ciToolRoutes(capabilities: Map<string, Capability>): imp
|
|
|
94
94
|
"/api/v1/tools/wait": {
|
|
95
95
|
$post: {
|
|
96
96
|
output: {
|
|
97
|
-
|
|
97
|
+
ok: false;
|
|
98
|
+
code: "authentication" | "capability_revoked" | "capacity" | "command_failed" | "finish_requested" | "generation_mismatch" | "gh_missing" | "inaccessible_pr" | "invalid_request" | "malformed_data" | "manager_disposed" | "output_limit" | "persistence" | "query_timeout" | "registration_aborted" | "root_finish_pending" | "run_cancelled" | "run_missing" | "run_not_running" | "run_stopping" | "session_closed" | "session_replaced" | "turn_changed" | "unauthorized" | "unavailable" | "unsupported_host" | "wait_conflict" | "worker_execution_stopped" | "worker_wait_pending";
|
|
98
99
|
message: string;
|
|
99
100
|
};
|
|
100
101
|
outputFormat: "json";
|
|
101
|
-
status:
|
|
102
|
+
status: import("hono/utils/http-status").ContentfulStatusCode;
|
|
102
103
|
input: {
|
|
103
104
|
json: {
|
|
104
105
|
pr: string;
|
|
@@ -134,12 +135,11 @@ export declare function ciToolRoutes(capabilities: Map<string, Capability>): imp
|
|
|
134
135
|
};
|
|
135
136
|
} | {
|
|
136
137
|
output: {
|
|
137
|
-
|
|
138
|
-
code: "authentication" | "capability_revoked" | "capacity" | "command_failed" | "finish_requested" | "generation_mismatch" | "gh_missing" | "inaccessible_pr" | "invalid_request" | "malformed_data" | "manager_disposed" | "output_limit" | "persistence" | "query_timeout" | "registration_aborted" | "root_finish_pending" | "run_cancelled" | "run_missing" | "run_not_running" | "run_stopping" | "session_closed" | "session_replaced" | "turn_changed" | "unauthorized" | "unavailable" | "unsupported_host" | "wait_conflict" | "worker_execution_stopped" | "worker_wait_pending";
|
|
138
|
+
code: 'capability_revoked';
|
|
139
139
|
message: string;
|
|
140
140
|
};
|
|
141
141
|
outputFormat: "json";
|
|
142
|
-
status:
|
|
142
|
+
status: 401;
|
|
143
143
|
input: {
|
|
144
144
|
json: {
|
|
145
145
|
pr: string;
|
|
@@ -245,11 +245,12 @@ export declare function ciToolRoutes(capabilities: Map<string, Capability>): imp
|
|
|
245
245
|
"/api/v1/tools/ask": {
|
|
246
246
|
$post: {
|
|
247
247
|
output: {
|
|
248
|
-
|
|
248
|
+
ok: false;
|
|
249
|
+
code: 'unavailable';
|
|
249
250
|
message: string;
|
|
250
251
|
};
|
|
251
252
|
outputFormat: "json";
|
|
252
|
-
status:
|
|
253
|
+
status: import("hono/utils/http-status").ContentfulStatusCode;
|
|
253
254
|
input: {
|
|
254
255
|
json: {
|
|
255
256
|
questions: {
|
|
@@ -267,12 +268,11 @@ export declare function ciToolRoutes(capabilities: Map<string, Capability>): imp
|
|
|
267
268
|
};
|
|
268
269
|
} | {
|
|
269
270
|
output: {
|
|
270
|
-
|
|
271
|
-
code: 'unavailable';
|
|
271
|
+
code: 'capability_revoked';
|
|
272
272
|
message: string;
|
|
273
273
|
};
|
|
274
274
|
outputFormat: "json";
|
|
275
|
-
status:
|
|
275
|
+
status: 401;
|
|
276
276
|
input: {
|
|
277
277
|
json: {
|
|
278
278
|
questions: {
|
|
@@ -340,11 +340,12 @@ export declare function ciToolRoutes(capabilities: Map<string, Capability>): imp
|
|
|
340
340
|
"/api/v1/tools/cancel-wait": {
|
|
341
341
|
$post: {
|
|
342
342
|
output: {
|
|
343
|
-
|
|
343
|
+
cancelled: false;
|
|
344
|
+
code: 'unavailable';
|
|
344
345
|
message: string;
|
|
345
346
|
};
|
|
346
347
|
outputFormat: "json";
|
|
347
|
-
status:
|
|
348
|
+
status: import("hono/utils/http-status").ContentfulStatusCode;
|
|
348
349
|
input: {
|
|
349
350
|
json: {
|
|
350
351
|
wait_id: string;
|
|
@@ -352,12 +353,11 @@ export declare function ciToolRoutes(capabilities: Map<string, Capability>): imp
|
|
|
352
353
|
};
|
|
353
354
|
} | {
|
|
354
355
|
output: {
|
|
355
|
-
|
|
356
|
-
code: 'unavailable';
|
|
356
|
+
code: 'capability_revoked';
|
|
357
357
|
message: string;
|
|
358
358
|
};
|
|
359
359
|
outputFormat: "json";
|
|
360
|
-
status:
|
|
360
|
+
status: 401;
|
|
361
361
|
input: {
|
|
362
362
|
json: {
|
|
363
363
|
wait_id: string;
|
|
@@ -405,11 +405,12 @@ export declare function ciToolRoutes(capabilities: Map<string, Capability>): imp
|
|
|
405
405
|
"/api/v1/tools/done": {
|
|
406
406
|
$post: {
|
|
407
407
|
output: {
|
|
408
|
-
|
|
408
|
+
ok: false;
|
|
409
|
+
code: 'unavailable';
|
|
409
410
|
message: string;
|
|
410
411
|
};
|
|
411
412
|
outputFormat: "json";
|
|
412
|
-
status:
|
|
413
|
+
status: import("hono/utils/http-status").ContentfulStatusCode;
|
|
413
414
|
input: {
|
|
414
415
|
json: {
|
|
415
416
|
summary?: string | undefined;
|
|
@@ -417,12 +418,11 @@ export declare function ciToolRoutes(capabilities: Map<string, Capability>): imp
|
|
|
417
418
|
};
|
|
418
419
|
} | {
|
|
419
420
|
output: {
|
|
420
|
-
|
|
421
|
-
code: 'unavailable';
|
|
421
|
+
code: 'capability_revoked';
|
|
422
422
|
message: string;
|
|
423
423
|
};
|
|
424
424
|
outputFormat: "json";
|
|
425
|
-
status:
|
|
425
|
+
status: 401;
|
|
426
426
|
input: {
|
|
427
427
|
json: {
|
|
428
428
|
summary?: string | undefined;
|
|
@@ -490,11 +490,13 @@ export declare function ciToolRoutes(capabilities: Map<string, Capability>): imp
|
|
|
490
490
|
"/api/v1/tools/preview-stop": {
|
|
491
491
|
$post: {
|
|
492
492
|
output: {
|
|
493
|
-
|
|
493
|
+
ok: boolean;
|
|
494
|
+
code: "adopted" | "approval_required" | "headless" | "invalid_input" | "not_registered" | "port_held" | "port_in_use" | "preview_disabled" | "restarted" | "stopped" | "unavailable" | "worktree_missing";
|
|
494
495
|
message: string;
|
|
496
|
+
hint: string;
|
|
495
497
|
};
|
|
496
498
|
outputFormat: "json";
|
|
497
|
-
status:
|
|
499
|
+
status: import("hono/utils/http-status").ContentfulStatusCode;
|
|
498
500
|
input: {
|
|
499
501
|
json: {
|
|
500
502
|
port: number;
|
|
@@ -503,13 +505,11 @@ export declare function ciToolRoutes(capabilities: Map<string, Capability>): imp
|
|
|
503
505
|
};
|
|
504
506
|
} | {
|
|
505
507
|
output: {
|
|
506
|
-
|
|
507
|
-
code: "adopted" | "approval_required" | "headless" | "invalid_input" | "not_registered" | "port_held" | "port_in_use" | "preview_disabled" | "restarted" | "stopped" | "unavailable" | "worktree_missing";
|
|
508
|
+
code: 'capability_revoked';
|
|
508
509
|
message: string;
|
|
509
|
-
hint: string;
|
|
510
510
|
};
|
|
511
511
|
outputFormat: "json";
|
|
512
|
-
status:
|
|
512
|
+
status: 401;
|
|
513
513
|
input: {
|
|
514
514
|
json: {
|
|
515
515
|
port: number;
|
|
@@ -522,11 +522,13 @@ export declare function ciToolRoutes(capabilities: Map<string, Capability>): imp
|
|
|
522
522
|
"/api/v1/tools/preview-serve": {
|
|
523
523
|
$post: {
|
|
524
524
|
output: {
|
|
525
|
-
|
|
525
|
+
ok: boolean;
|
|
526
|
+
code: "cezar_port" | "cwd_outside_worktree" | "headless" | "invalid_input" | "port_held" | "preview_disabled" | "registered" | "replaced" | "too_many" | "unavailable" | "worktree_missing";
|
|
526
527
|
message: string;
|
|
528
|
+
hint: string;
|
|
527
529
|
};
|
|
528
530
|
outputFormat: "json";
|
|
529
|
-
status:
|
|
531
|
+
status: import("hono/utils/http-status").ContentfulStatusCode;
|
|
530
532
|
input: {
|
|
531
533
|
json: {
|
|
532
534
|
command: string;
|
|
@@ -538,13 +540,11 @@ export declare function ciToolRoutes(capabilities: Map<string, Capability>): imp
|
|
|
538
540
|
};
|
|
539
541
|
} | {
|
|
540
542
|
output: {
|
|
541
|
-
|
|
542
|
-
code: "cezar_port" | "cwd_outside_worktree" | "headless" | "invalid_input" | "port_held" | "preview_disabled" | "registered" | "replaced" | "too_many" | "unavailable" | "worktree_missing";
|
|
543
|
+
code: 'capability_revoked';
|
|
543
544
|
message: string;
|
|
544
|
-
hint: string;
|
|
545
545
|
};
|
|
546
546
|
outputFormat: "json";
|
|
547
|
-
status:
|
|
547
|
+
status: 401;
|
|
548
548
|
input: {
|
|
549
549
|
json: {
|
|
550
550
|
command: string;
|
|
@@ -560,11 +560,12 @@ export declare function ciToolRoutes(capabilities: Map<string, Capability>): imp
|
|
|
560
560
|
"/api/v1/tools/schedule-task": {
|
|
561
561
|
$post: {
|
|
562
562
|
output: {
|
|
563
|
-
|
|
563
|
+
ok: false;
|
|
564
|
+
code: import('../contract/index.js').ScheduledTaskRefusalCode;
|
|
564
565
|
message: string;
|
|
565
566
|
};
|
|
566
567
|
outputFormat: "json";
|
|
567
|
-
status:
|
|
568
|
+
status: import("hono/utils/http-status").ContentfulStatusCode;
|
|
568
569
|
input: {
|
|
569
570
|
json: {
|
|
570
571
|
at?: string | undefined;
|
|
@@ -582,12 +583,11 @@ export declare function ciToolRoutes(capabilities: Map<string, Capability>): imp
|
|
|
582
583
|
};
|
|
583
584
|
} | {
|
|
584
585
|
output: {
|
|
585
|
-
|
|
586
|
-
code: import('../contract/index.js').ScheduledTaskRefusalCode;
|
|
586
|
+
code: 'capability_revoked';
|
|
587
587
|
message: string;
|
|
588
588
|
};
|
|
589
589
|
outputFormat: "json";
|
|
590
|
-
status:
|
|
590
|
+
status: 401;
|
|
591
591
|
input: {
|
|
592
592
|
json: {
|
|
593
593
|
at?: string | undefined;
|
|
@@ -646,11 +646,12 @@ export declare function ciToolRoutes(capabilities: Map<string, Capability>): imp
|
|
|
646
646
|
"/api/v1/tools/scheduled-tasks": {
|
|
647
647
|
$post: {
|
|
648
648
|
output: {
|
|
649
|
-
|
|
649
|
+
ok: false;
|
|
650
|
+
code: import('../contract/index.js').ScheduledTaskRefusalCode;
|
|
650
651
|
message: string;
|
|
651
652
|
};
|
|
652
653
|
outputFormat: "json";
|
|
653
|
-
status:
|
|
654
|
+
status: import("hono/utils/http-status").ContentfulStatusCode;
|
|
654
655
|
input: {
|
|
655
656
|
json: {
|
|
656
657
|
at?: string | undefined;
|
|
@@ -684,12 +685,11 @@ export declare function ciToolRoutes(capabilities: Map<string, Capability>): imp
|
|
|
684
685
|
};
|
|
685
686
|
} | {
|
|
686
687
|
output: {
|
|
687
|
-
|
|
688
|
-
code: import('../contract/index.js').ScheduledTaskRefusalCode;
|
|
688
|
+
code: 'capability_revoked';
|
|
689
689
|
message: string;
|
|
690
690
|
};
|
|
691
691
|
outputFormat: "json";
|
|
692
|
-
status:
|
|
692
|
+
status: 401;
|
|
693
693
|
input: {
|
|
694
694
|
json: {
|
|
695
695
|
at?: string | undefined;
|
|
@@ -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;
|
|
@@ -64,18 +76,6 @@ export declare function createDelegationRoutes(service: DelegationService, crede
|
|
|
64
76
|
offset?: string | undefined;
|
|
65
77
|
};
|
|
66
78
|
};
|
|
67
|
-
} | {
|
|
68
|
-
output: {
|
|
69
|
-
error: string;
|
|
70
|
-
code?: "invalid_input" | undefined;
|
|
71
|
-
};
|
|
72
|
-
outputFormat: "json";
|
|
73
|
-
status: 400;
|
|
74
|
-
input: {
|
|
75
|
-
query: {
|
|
76
|
-
offset?: string | undefined;
|
|
77
|
-
};
|
|
78
|
-
};
|
|
79
79
|
};
|
|
80
80
|
};
|
|
81
81
|
} & {
|
|
@@ -610,6 +610,18 @@ export declare function createDelegationRoutes(service: DelegationService, crede
|
|
|
610
610
|
} & {
|
|
611
611
|
"/:workerId": {
|
|
612
612
|
$get: {
|
|
613
|
+
output: {
|
|
614
|
+
error: string;
|
|
615
|
+
code?: "invalid_input" | undefined;
|
|
616
|
+
};
|
|
617
|
+
outputFormat: "json";
|
|
618
|
+
status: 400;
|
|
619
|
+
input: {
|
|
620
|
+
param: {
|
|
621
|
+
workerId: string;
|
|
622
|
+
};
|
|
623
|
+
};
|
|
624
|
+
} | {
|
|
613
625
|
output: {
|
|
614
626
|
workerId: string;
|
|
615
627
|
parentRunId: string;
|
|
@@ -713,7 +725,11 @@ export declare function createDelegationRoutes(service: DelegationService, crede
|
|
|
713
725
|
workerId: string;
|
|
714
726
|
};
|
|
715
727
|
};
|
|
716
|
-
}
|
|
728
|
+
};
|
|
729
|
+
};
|
|
730
|
+
} & {
|
|
731
|
+
"/:workerId/collect": {
|
|
732
|
+
$post: {
|
|
717
733
|
output: {
|
|
718
734
|
error: string;
|
|
719
735
|
code?: "invalid_input" | undefined;
|
|
@@ -724,12 +740,10 @@ export declare function createDelegationRoutes(service: DelegationService, crede
|
|
|
724
740
|
param: {
|
|
725
741
|
workerId: string;
|
|
726
742
|
};
|
|
743
|
+
} & {
|
|
744
|
+
json: Record<string, never>;
|
|
727
745
|
};
|
|
728
|
-
}
|
|
729
|
-
};
|
|
730
|
-
} & {
|
|
731
|
-
"/:workerId/collect": {
|
|
732
|
-
$post: {
|
|
746
|
+
} | {
|
|
733
747
|
output: {
|
|
734
748
|
workerId: string;
|
|
735
749
|
parentRunId: string;
|
|
@@ -831,7 +845,11 @@ export declare function createDelegationRoutes(service: DelegationService, crede
|
|
|
831
845
|
} & {
|
|
832
846
|
json: Record<string, never>;
|
|
833
847
|
};
|
|
834
|
-
}
|
|
848
|
+
};
|
|
849
|
+
};
|
|
850
|
+
} & {
|
|
851
|
+
"/:workerId/steer": {
|
|
852
|
+
$post: {
|
|
835
853
|
output: {
|
|
836
854
|
error: string;
|
|
837
855
|
code?: "invalid_input" | undefined;
|
|
@@ -843,13 +861,11 @@ export declare function createDelegationRoutes(service: DelegationService, crede
|
|
|
843
861
|
workerId: string;
|
|
844
862
|
};
|
|
845
863
|
} & {
|
|
846
|
-
json:
|
|
864
|
+
json: {
|
|
865
|
+
text: string;
|
|
866
|
+
};
|
|
847
867
|
};
|
|
848
|
-
}
|
|
849
|
-
};
|
|
850
|
-
} & {
|
|
851
|
-
"/:workerId/steer": {
|
|
852
|
-
$post: {
|
|
868
|
+
} | {
|
|
853
869
|
output: {
|
|
854
870
|
workerId: string;
|
|
855
871
|
state: "delivered" | "queued";
|
|
@@ -865,7 +881,11 @@ export declare function createDelegationRoutes(service: DelegationService, crede
|
|
|
865
881
|
text: string;
|
|
866
882
|
};
|
|
867
883
|
};
|
|
868
|
-
}
|
|
884
|
+
};
|
|
885
|
+
};
|
|
886
|
+
} & {
|
|
887
|
+
"/:workerId/stop": {
|
|
888
|
+
$post: {
|
|
869
889
|
output: {
|
|
870
890
|
error: string;
|
|
871
891
|
code?: "invalid_input" | undefined;
|
|
@@ -877,15 +897,9 @@ export declare function createDelegationRoutes(service: DelegationService, crede
|
|
|
877
897
|
workerId: string;
|
|
878
898
|
};
|
|
879
899
|
} & {
|
|
880
|
-
json:
|
|
881
|
-
text: string;
|
|
882
|
-
};
|
|
900
|
+
json: Record<string, never>;
|
|
883
901
|
};
|
|
884
|
-
}
|
|
885
|
-
};
|
|
886
|
-
} & {
|
|
887
|
-
"/:workerId/stop": {
|
|
888
|
-
$post: {
|
|
902
|
+
} | {
|
|
889
903
|
output: {
|
|
890
904
|
workerId: string;
|
|
891
905
|
state: "stopping" | "terminated";
|
|
@@ -899,7 +913,11 @@ export declare function createDelegationRoutes(service: DelegationService, crede
|
|
|
899
913
|
} & {
|
|
900
914
|
json: Record<string, never>;
|
|
901
915
|
};
|
|
902
|
-
}
|
|
916
|
+
};
|
|
917
|
+
};
|
|
918
|
+
} & {
|
|
919
|
+
"/:workerId/destroy": {
|
|
920
|
+
$post: {
|
|
903
921
|
output: {
|
|
904
922
|
error: string;
|
|
905
923
|
code?: "invalid_input" | undefined;
|
|
@@ -913,11 +931,7 @@ export declare function createDelegationRoutes(service: DelegationService, crede
|
|
|
913
931
|
} & {
|
|
914
932
|
json: Record<string, never>;
|
|
915
933
|
};
|
|
916
|
-
}
|
|
917
|
-
};
|
|
918
|
-
} & {
|
|
919
|
-
"/:workerId/destroy": {
|
|
920
|
-
$post: {
|
|
934
|
+
} | {
|
|
921
935
|
output: {
|
|
922
936
|
workerId: string;
|
|
923
937
|
state: "complete" | "incomplete";
|
|
@@ -940,20 +954,6 @@ export declare function createDelegationRoutes(service: DelegationService, crede
|
|
|
940
954
|
} & {
|
|
941
955
|
json: Record<string, never>;
|
|
942
956
|
};
|
|
943
|
-
} | {
|
|
944
|
-
output: {
|
|
945
|
-
error: string;
|
|
946
|
-
code?: "invalid_input" | undefined;
|
|
947
|
-
};
|
|
948
|
-
outputFormat: "json";
|
|
949
|
-
status: 400;
|
|
950
|
-
input: {
|
|
951
|
-
param: {
|
|
952
|
-
workerId: string;
|
|
953
|
-
};
|
|
954
|
-
} & {
|
|
955
|
-
json: Record<string, never>;
|
|
956
|
-
};
|
|
957
957
|
} | {
|
|
958
958
|
output: {
|
|
959
959
|
workerId: string;
|
|
@@ -983,13 +983,11 @@ export declare function createDelegationRoutes(service: DelegationService, crede
|
|
|
983
983
|
"/:workerId/diff": {
|
|
984
984
|
$get: {
|
|
985
985
|
output: {
|
|
986
|
-
|
|
987
|
-
|
|
988
|
-
diff: string;
|
|
989
|
-
truncated: boolean;
|
|
986
|
+
error: string;
|
|
987
|
+
code?: "invalid_input" | undefined;
|
|
990
988
|
};
|
|
991
989
|
outputFormat: "json";
|
|
992
|
-
status:
|
|
990
|
+
status: 400;
|
|
993
991
|
input: {
|
|
994
992
|
param: {
|
|
995
993
|
workerId: string;
|
|
@@ -997,11 +995,13 @@ export declare function createDelegationRoutes(service: DelegationService, crede
|
|
|
997
995
|
};
|
|
998
996
|
} | {
|
|
999
997
|
output: {
|
|
1000
|
-
|
|
1001
|
-
|
|
998
|
+
workerId: string;
|
|
999
|
+
baselineSha: string;
|
|
1000
|
+
diff: string;
|
|
1001
|
+
truncated: boolean;
|
|
1002
1002
|
};
|
|
1003
1003
|
outputFormat: "json";
|
|
1004
|
-
status:
|
|
1004
|
+
status: 200;
|
|
1005
1005
|
input: {
|
|
1006
1006
|
param: {
|
|
1007
1007
|
workerId: string;
|
|
@@ -2,6 +2,18 @@ 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
|
+
} | {
|
|
5
17
|
output: {
|
|
6
18
|
workers: {
|
|
7
19
|
workerId: string;
|
|
@@ -39,18 +51,6 @@ export declare function createDelegationApp(routes: DelegationRoutes): import("h
|
|
|
39
51
|
offset?: string | undefined;
|
|
40
52
|
};
|
|
41
53
|
};
|
|
42
|
-
} | {
|
|
43
|
-
output: {
|
|
44
|
-
error: string;
|
|
45
|
-
code?: "invalid_input" | undefined;
|
|
46
|
-
};
|
|
47
|
-
outputFormat: "json";
|
|
48
|
-
status: 400;
|
|
49
|
-
input: {
|
|
50
|
-
query: {
|
|
51
|
-
offset?: string | undefined;
|
|
52
|
-
};
|
|
53
|
-
};
|
|
54
54
|
};
|
|
55
55
|
};
|
|
56
56
|
} & {
|
|
@@ -585,6 +585,18 @@ export declare function createDelegationApp(routes: DelegationRoutes): import("h
|
|
|
585
585
|
} & {
|
|
586
586
|
"/:workerId": {
|
|
587
587
|
$get: {
|
|
588
|
+
output: {
|
|
589
|
+
error: string;
|
|
590
|
+
code?: "invalid_input" | undefined;
|
|
591
|
+
};
|
|
592
|
+
outputFormat: "json";
|
|
593
|
+
status: 400;
|
|
594
|
+
input: {
|
|
595
|
+
param: {
|
|
596
|
+
workerId: string;
|
|
597
|
+
};
|
|
598
|
+
};
|
|
599
|
+
} | {
|
|
588
600
|
output: {
|
|
589
601
|
workerId: string;
|
|
590
602
|
parentRunId: string;
|
|
@@ -688,7 +700,11 @@ export declare function createDelegationApp(routes: DelegationRoutes): import("h
|
|
|
688
700
|
workerId: string;
|
|
689
701
|
};
|
|
690
702
|
};
|
|
691
|
-
}
|
|
703
|
+
};
|
|
704
|
+
};
|
|
705
|
+
} & {
|
|
706
|
+
"/:workerId/collect": {
|
|
707
|
+
$post: {
|
|
692
708
|
output: {
|
|
693
709
|
error: string;
|
|
694
710
|
code?: "invalid_input" | undefined;
|
|
@@ -699,12 +715,10 @@ export declare function createDelegationApp(routes: DelegationRoutes): import("h
|
|
|
699
715
|
param: {
|
|
700
716
|
workerId: string;
|
|
701
717
|
};
|
|
718
|
+
} & {
|
|
719
|
+
json: Record<string, never>;
|
|
702
720
|
};
|
|
703
|
-
}
|
|
704
|
-
};
|
|
705
|
-
} & {
|
|
706
|
-
"/:workerId/collect": {
|
|
707
|
-
$post: {
|
|
721
|
+
} | {
|
|
708
722
|
output: {
|
|
709
723
|
workerId: string;
|
|
710
724
|
parentRunId: string;
|
|
@@ -806,7 +820,11 @@ export declare function createDelegationApp(routes: DelegationRoutes): import("h
|
|
|
806
820
|
} & {
|
|
807
821
|
json: Record<string, never>;
|
|
808
822
|
};
|
|
809
|
-
}
|
|
823
|
+
};
|
|
824
|
+
};
|
|
825
|
+
} & {
|
|
826
|
+
"/:workerId/steer": {
|
|
827
|
+
$post: {
|
|
810
828
|
output: {
|
|
811
829
|
error: string;
|
|
812
830
|
code?: "invalid_input" | undefined;
|
|
@@ -818,13 +836,11 @@ export declare function createDelegationApp(routes: DelegationRoutes): import("h
|
|
|
818
836
|
workerId: string;
|
|
819
837
|
};
|
|
820
838
|
} & {
|
|
821
|
-
json:
|
|
839
|
+
json: {
|
|
840
|
+
text: string;
|
|
841
|
+
};
|
|
822
842
|
};
|
|
823
|
-
}
|
|
824
|
-
};
|
|
825
|
-
} & {
|
|
826
|
-
"/:workerId/steer": {
|
|
827
|
-
$post: {
|
|
843
|
+
} | {
|
|
828
844
|
output: {
|
|
829
845
|
workerId: string;
|
|
830
846
|
state: "delivered" | "queued";
|
|
@@ -840,7 +856,11 @@ export declare function createDelegationApp(routes: DelegationRoutes): import("h
|
|
|
840
856
|
text: string;
|
|
841
857
|
};
|
|
842
858
|
};
|
|
843
|
-
}
|
|
859
|
+
};
|
|
860
|
+
};
|
|
861
|
+
} & {
|
|
862
|
+
"/:workerId/stop": {
|
|
863
|
+
$post: {
|
|
844
864
|
output: {
|
|
845
865
|
error: string;
|
|
846
866
|
code?: "invalid_input" | undefined;
|
|
@@ -852,15 +872,9 @@ export declare function createDelegationApp(routes: DelegationRoutes): import("h
|
|
|
852
872
|
workerId: string;
|
|
853
873
|
};
|
|
854
874
|
} & {
|
|
855
|
-
json:
|
|
856
|
-
text: string;
|
|
857
|
-
};
|
|
875
|
+
json: Record<string, never>;
|
|
858
876
|
};
|
|
859
|
-
}
|
|
860
|
-
};
|
|
861
|
-
} & {
|
|
862
|
-
"/:workerId/stop": {
|
|
863
|
-
$post: {
|
|
877
|
+
} | {
|
|
864
878
|
output: {
|
|
865
879
|
workerId: string;
|
|
866
880
|
state: "stopping" | "terminated";
|
|
@@ -874,7 +888,11 @@ export declare function createDelegationApp(routes: DelegationRoutes): import("h
|
|
|
874
888
|
} & {
|
|
875
889
|
json: Record<string, never>;
|
|
876
890
|
};
|
|
877
|
-
}
|
|
891
|
+
};
|
|
892
|
+
};
|
|
893
|
+
} & {
|
|
894
|
+
"/:workerId/destroy": {
|
|
895
|
+
$post: {
|
|
878
896
|
output: {
|
|
879
897
|
error: string;
|
|
880
898
|
code?: "invalid_input" | undefined;
|
|
@@ -888,11 +906,7 @@ export declare function createDelegationApp(routes: DelegationRoutes): import("h
|
|
|
888
906
|
} & {
|
|
889
907
|
json: Record<string, never>;
|
|
890
908
|
};
|
|
891
|
-
}
|
|
892
|
-
};
|
|
893
|
-
} & {
|
|
894
|
-
"/:workerId/destroy": {
|
|
895
|
-
$post: {
|
|
909
|
+
} | {
|
|
896
910
|
output: {
|
|
897
911
|
workerId: string;
|
|
898
912
|
state: "complete" | "incomplete";
|
|
@@ -915,20 +929,6 @@ export declare function createDelegationApp(routes: DelegationRoutes): import("h
|
|
|
915
929
|
} & {
|
|
916
930
|
json: Record<string, never>;
|
|
917
931
|
};
|
|
918
|
-
} | {
|
|
919
|
-
output: {
|
|
920
|
-
error: string;
|
|
921
|
-
code?: "invalid_input" | undefined;
|
|
922
|
-
};
|
|
923
|
-
outputFormat: "json";
|
|
924
|
-
status: 400;
|
|
925
|
-
input: {
|
|
926
|
-
param: {
|
|
927
|
-
workerId: string;
|
|
928
|
-
};
|
|
929
|
-
} & {
|
|
930
|
-
json: Record<string, never>;
|
|
931
|
-
};
|
|
932
932
|
} | {
|
|
933
933
|
output: {
|
|
934
934
|
workerId: string;
|
|
@@ -958,13 +958,11 @@ export declare function createDelegationApp(routes: DelegationRoutes): import("h
|
|
|
958
958
|
"/:workerId/diff": {
|
|
959
959
|
$get: {
|
|
960
960
|
output: {
|
|
961
|
-
|
|
962
|
-
|
|
963
|
-
diff: string;
|
|
964
|
-
truncated: boolean;
|
|
961
|
+
error: string;
|
|
962
|
+
code?: "invalid_input" | undefined;
|
|
965
963
|
};
|
|
966
964
|
outputFormat: "json";
|
|
967
|
-
status:
|
|
965
|
+
status: 400;
|
|
968
966
|
input: {
|
|
969
967
|
param: {
|
|
970
968
|
workerId: string;
|
|
@@ -972,11 +970,13 @@ export declare function createDelegationApp(routes: DelegationRoutes): import("h
|
|
|
972
970
|
};
|
|
973
971
|
} | {
|
|
974
972
|
output: {
|
|
975
|
-
|
|
976
|
-
|
|
973
|
+
workerId: string;
|
|
974
|
+
baselineSha: string;
|
|
975
|
+
diff: string;
|
|
976
|
+
truncated: boolean;
|
|
977
977
|
};
|
|
978
978
|
outputFormat: "json";
|
|
979
|
-
status:
|
|
979
|
+
status: 200;
|
|
980
980
|
input: {
|
|
981
981
|
param: {
|
|
982
982
|
workerId: string;
|