@wjarka/cezarion 0.17.0-pr2152.3287 → 0.17.0-pr2155.3291
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 +22 -22
- package/dist/delegation/transport.d.ts +62 -62
- package/dist/server/server.d.ts +1181 -1181
- package/dist/voice/routes.d.ts +19 -19
- package/package.json +3 -3
|
@@ -477,13 +477,11 @@ export declare function ciToolRoutes(capabilities: Map<string, Capability>): imp
|
|
|
477
477
|
"/api/v1/tools/preview-stop": {
|
|
478
478
|
$post: {
|
|
479
479
|
output: {
|
|
480
|
-
|
|
481
|
-
code: "adopted" | "approval_required" | "headless" | "invalid_input" | "not_registered" | "port_held" | "port_in_use" | "preview_disabled" | "restarted" | "stopped" | "unavailable" | "worktree_missing";
|
|
480
|
+
code: 'capability_revoked';
|
|
482
481
|
message: string;
|
|
483
|
-
hint: string;
|
|
484
482
|
};
|
|
485
483
|
outputFormat: "json";
|
|
486
|
-
status:
|
|
484
|
+
status: 401;
|
|
487
485
|
input: {
|
|
488
486
|
json: {
|
|
489
487
|
port: number;
|
|
@@ -492,11 +490,13 @@ export declare function ciToolRoutes(capabilities: Map<string, Capability>): imp
|
|
|
492
490
|
};
|
|
493
491
|
} | {
|
|
494
492
|
output: {
|
|
495
|
-
|
|
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";
|
|
496
495
|
message: string;
|
|
496
|
+
hint: string;
|
|
497
497
|
};
|
|
498
498
|
outputFormat: "json";
|
|
499
|
-
status:
|
|
499
|
+
status: import("hono/utils/http-status").ContentfulStatusCode;
|
|
500
500
|
input: {
|
|
501
501
|
json: {
|
|
502
502
|
port: number;
|
|
@@ -509,13 +509,11 @@ export declare function ciToolRoutes(capabilities: Map<string, Capability>): imp
|
|
|
509
509
|
"/api/v1/tools/preview-serve": {
|
|
510
510
|
$post: {
|
|
511
511
|
output: {
|
|
512
|
-
|
|
513
|
-
code: "cezar_port" | "cwd_outside_worktree" | "headless" | "invalid_input" | "port_held" | "preview_disabled" | "registered" | "replaced" | "too_many" | "unavailable" | "worktree_missing";
|
|
512
|
+
code: 'capability_revoked';
|
|
514
513
|
message: string;
|
|
515
|
-
hint: string;
|
|
516
514
|
};
|
|
517
515
|
outputFormat: "json";
|
|
518
|
-
status:
|
|
516
|
+
status: 401;
|
|
519
517
|
input: {
|
|
520
518
|
json: {
|
|
521
519
|
command: string;
|
|
@@ -527,11 +525,13 @@ export declare function ciToolRoutes(capabilities: Map<string, Capability>): imp
|
|
|
527
525
|
};
|
|
528
526
|
} | {
|
|
529
527
|
output: {
|
|
530
|
-
|
|
528
|
+
ok: boolean;
|
|
529
|
+
code: "cezar_port" | "cwd_outside_worktree" | "headless" | "invalid_input" | "port_held" | "preview_disabled" | "registered" | "replaced" | "too_many" | "unavailable" | "worktree_missing";
|
|
531
530
|
message: string;
|
|
531
|
+
hint: string;
|
|
532
532
|
};
|
|
533
533
|
outputFormat: "json";
|
|
534
|
-
status:
|
|
534
|
+
status: import("hono/utils/http-status").ContentfulStatusCode;
|
|
535
535
|
input: {
|
|
536
536
|
json: {
|
|
537
537
|
command: string;
|
|
@@ -547,12 +547,11 @@ export declare function ciToolRoutes(capabilities: Map<string, Capability>): imp
|
|
|
547
547
|
"/api/v1/tools/schedule-task": {
|
|
548
548
|
$post: {
|
|
549
549
|
output: {
|
|
550
|
-
|
|
551
|
-
code: import('../contract/index.js').ScheduledTaskRefusalCode;
|
|
550
|
+
code: 'capability_revoked';
|
|
552
551
|
message: string;
|
|
553
552
|
};
|
|
554
553
|
outputFormat: "json";
|
|
555
|
-
status:
|
|
554
|
+
status: 401;
|
|
556
555
|
input: {
|
|
557
556
|
json: {
|
|
558
557
|
at?: string | undefined;
|
|
@@ -570,11 +569,12 @@ export declare function ciToolRoutes(capabilities: Map<string, Capability>): imp
|
|
|
570
569
|
};
|
|
571
570
|
} | {
|
|
572
571
|
output: {
|
|
573
|
-
|
|
572
|
+
ok: false;
|
|
573
|
+
code: import('../contract/index.js').ScheduledTaskRefusalCode;
|
|
574
574
|
message: string;
|
|
575
575
|
};
|
|
576
576
|
outputFormat: "json";
|
|
577
|
-
status:
|
|
577
|
+
status: import("hono/utils/http-status").ContentfulStatusCode;
|
|
578
578
|
input: {
|
|
579
579
|
json: {
|
|
580
580
|
at?: string | undefined;
|
|
@@ -633,12 +633,11 @@ export declare function ciToolRoutes(capabilities: Map<string, Capability>): imp
|
|
|
633
633
|
"/api/v1/tools/scheduled-tasks": {
|
|
634
634
|
$post: {
|
|
635
635
|
output: {
|
|
636
|
-
|
|
637
|
-
code: import('../contract/index.js').ScheduledTaskRefusalCode;
|
|
636
|
+
code: 'capability_revoked';
|
|
638
637
|
message: string;
|
|
639
638
|
};
|
|
640
639
|
outputFormat: "json";
|
|
641
|
-
status:
|
|
640
|
+
status: 401;
|
|
642
641
|
input: {
|
|
643
642
|
json: {
|
|
644
643
|
at?: string | undefined;
|
|
@@ -672,11 +671,12 @@ export declare function ciToolRoutes(capabilities: Map<string, Capability>): imp
|
|
|
672
671
|
};
|
|
673
672
|
} | {
|
|
674
673
|
output: {
|
|
675
|
-
|
|
674
|
+
ok: false;
|
|
675
|
+
code: import('../contract/index.js').ScheduledTaskRefusalCode;
|
|
676
676
|
message: string;
|
|
677
677
|
};
|
|
678
678
|
outputFormat: "json";
|
|
679
|
-
status:
|
|
679
|
+
status: import("hono/utils/http-status").ContentfulStatusCode;
|
|
680
680
|
input: {
|
|
681
681
|
json: {
|
|
682
682
|
at?: string | undefined;
|
|
@@ -2,18 +2,6 @@ import type { DelegationRoutes } from './routes.ts';
|
|
|
2
2
|
export declare function createDelegationApp(routes: DelegationRoutes): import("hono/hono-base").HonoBase<import("hono/types").BlankEnv, import("hono/types").BlankSchema | import("hono/types").MergeSchemaPath<{
|
|
3
3
|
"/list": {
|
|
4
4
|
$get: {
|
|
5
|
-
output: {
|
|
6
|
-
error: string;
|
|
7
|
-
code?: "invalid_input" | undefined;
|
|
8
|
-
};
|
|
9
|
-
outputFormat: "json";
|
|
10
|
-
status: 400;
|
|
11
|
-
input: {
|
|
12
|
-
query: {
|
|
13
|
-
offset?: string | undefined;
|
|
14
|
-
};
|
|
15
|
-
};
|
|
16
|
-
} | {
|
|
17
5
|
output: {
|
|
18
6
|
workers: {
|
|
19
7
|
workerId: string;
|
|
@@ -51,6 +39,18 @@ export declare function createDelegationApp(routes: DelegationRoutes): import("h
|
|
|
51
39
|
offset?: string | undefined;
|
|
52
40
|
};
|
|
53
41
|
};
|
|
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,18 +585,6 @@ 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
|
-
} | {
|
|
600
588
|
output: {
|
|
601
589
|
workerId: string;
|
|
602
590
|
parentRunId: string;
|
|
@@ -700,11 +688,7 @@ export declare function createDelegationApp(routes: DelegationRoutes): import("h
|
|
|
700
688
|
workerId: string;
|
|
701
689
|
};
|
|
702
690
|
};
|
|
703
|
-
}
|
|
704
|
-
};
|
|
705
|
-
} & {
|
|
706
|
-
"/:workerId/collect": {
|
|
707
|
-
$post: {
|
|
691
|
+
} | {
|
|
708
692
|
output: {
|
|
709
693
|
error: string;
|
|
710
694
|
code?: "invalid_input" | undefined;
|
|
@@ -715,10 +699,12 @@ export declare function createDelegationApp(routes: DelegationRoutes): import("h
|
|
|
715
699
|
param: {
|
|
716
700
|
workerId: string;
|
|
717
701
|
};
|
|
718
|
-
} & {
|
|
719
|
-
json: Record<string, never>;
|
|
720
702
|
};
|
|
721
|
-
}
|
|
703
|
+
};
|
|
704
|
+
};
|
|
705
|
+
} & {
|
|
706
|
+
"/:workerId/collect": {
|
|
707
|
+
$post: {
|
|
722
708
|
output: {
|
|
723
709
|
workerId: string;
|
|
724
710
|
parentRunId: string;
|
|
@@ -820,11 +806,7 @@ export declare function createDelegationApp(routes: DelegationRoutes): import("h
|
|
|
820
806
|
} & {
|
|
821
807
|
json: Record<string, never>;
|
|
822
808
|
};
|
|
823
|
-
}
|
|
824
|
-
};
|
|
825
|
-
} & {
|
|
826
|
-
"/:workerId/steer": {
|
|
827
|
-
$post: {
|
|
809
|
+
} | {
|
|
828
810
|
output: {
|
|
829
811
|
error: string;
|
|
830
812
|
code?: "invalid_input" | undefined;
|
|
@@ -836,11 +818,13 @@ export declare function createDelegationApp(routes: DelegationRoutes): import("h
|
|
|
836
818
|
workerId: string;
|
|
837
819
|
};
|
|
838
820
|
} & {
|
|
839
|
-
json:
|
|
840
|
-
text: string;
|
|
841
|
-
};
|
|
821
|
+
json: Record<string, never>;
|
|
842
822
|
};
|
|
843
|
-
}
|
|
823
|
+
};
|
|
824
|
+
};
|
|
825
|
+
} & {
|
|
826
|
+
"/:workerId/steer": {
|
|
827
|
+
$post: {
|
|
844
828
|
output: {
|
|
845
829
|
workerId: string;
|
|
846
830
|
state: "delivered" | "queued";
|
|
@@ -856,11 +840,7 @@ export declare function createDelegationApp(routes: DelegationRoutes): import("h
|
|
|
856
840
|
text: string;
|
|
857
841
|
};
|
|
858
842
|
};
|
|
859
|
-
}
|
|
860
|
-
};
|
|
861
|
-
} & {
|
|
862
|
-
"/:workerId/stop": {
|
|
863
|
-
$post: {
|
|
843
|
+
} | {
|
|
864
844
|
output: {
|
|
865
845
|
error: string;
|
|
866
846
|
code?: "invalid_input" | undefined;
|
|
@@ -872,9 +852,15 @@ export declare function createDelegationApp(routes: DelegationRoutes): import("h
|
|
|
872
852
|
workerId: string;
|
|
873
853
|
};
|
|
874
854
|
} & {
|
|
875
|
-
json:
|
|
855
|
+
json: {
|
|
856
|
+
text: string;
|
|
857
|
+
};
|
|
876
858
|
};
|
|
877
|
-
}
|
|
859
|
+
};
|
|
860
|
+
};
|
|
861
|
+
} & {
|
|
862
|
+
"/:workerId/stop": {
|
|
863
|
+
$post: {
|
|
878
864
|
output: {
|
|
879
865
|
workerId: string;
|
|
880
866
|
state: "stopping" | "terminated";
|
|
@@ -888,11 +874,7 @@ export declare function createDelegationApp(routes: DelegationRoutes): import("h
|
|
|
888
874
|
} & {
|
|
889
875
|
json: Record<string, never>;
|
|
890
876
|
};
|
|
891
|
-
}
|
|
892
|
-
};
|
|
893
|
-
} & {
|
|
894
|
-
"/:workerId/destroy": {
|
|
895
|
-
$post: {
|
|
877
|
+
} | {
|
|
896
878
|
output: {
|
|
897
879
|
error: string;
|
|
898
880
|
code?: "invalid_input" | undefined;
|
|
@@ -906,7 +888,11 @@ export declare function createDelegationApp(routes: DelegationRoutes): import("h
|
|
|
906
888
|
} & {
|
|
907
889
|
json: Record<string, never>;
|
|
908
890
|
};
|
|
909
|
-
}
|
|
891
|
+
};
|
|
892
|
+
};
|
|
893
|
+
} & {
|
|
894
|
+
"/:workerId/destroy": {
|
|
895
|
+
$post: {
|
|
910
896
|
output: {
|
|
911
897
|
workerId: string;
|
|
912
898
|
state: "complete" | "incomplete";
|
|
@@ -929,6 +915,20 @@ export declare function createDelegationApp(routes: DelegationRoutes): import("h
|
|
|
929
915
|
} & {
|
|
930
916
|
json: Record<string, never>;
|
|
931
917
|
};
|
|
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,11 +958,13 @@ export declare function createDelegationApp(routes: DelegationRoutes): import("h
|
|
|
958
958
|
"/:workerId/diff": {
|
|
959
959
|
$get: {
|
|
960
960
|
output: {
|
|
961
|
-
|
|
962
|
-
|
|
961
|
+
workerId: string;
|
|
962
|
+
baselineSha: string;
|
|
963
|
+
diff: string;
|
|
964
|
+
truncated: boolean;
|
|
963
965
|
};
|
|
964
966
|
outputFormat: "json";
|
|
965
|
-
status:
|
|
967
|
+
status: 200;
|
|
966
968
|
input: {
|
|
967
969
|
param: {
|
|
968
970
|
workerId: string;
|
|
@@ -970,13 +972,11 @@ export declare function createDelegationApp(routes: DelegationRoutes): import("h
|
|
|
970
972
|
};
|
|
971
973
|
} | {
|
|
972
974
|
output: {
|
|
973
|
-
|
|
974
|
-
|
|
975
|
-
diff: string;
|
|
976
|
-
truncated: boolean;
|
|
975
|
+
error: string;
|
|
976
|
+
code?: "invalid_input" | undefined;
|
|
977
977
|
};
|
|
978
978
|
outputFormat: "json";
|
|
979
|
-
status:
|
|
979
|
+
status: 400;
|
|
980
980
|
input: {
|
|
981
981
|
param: {
|
|
982
982
|
workerId: string;
|