@wjarka/cezarion 0.16.0-pr1204.1908 → 0.16.0-pr1205.1916

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.
@@ -50,11 +50,17 @@ export declare function ciToolRoutes(capabilities: Map<string, Capability>): imp
50
50
  "/api/v1/tools/ci-wait": {
51
51
  $post: {
52
52
  output: {
53
- code: 'capability_revoked';
54
- message: string;
53
+ prUrl: string;
54
+ repository: string;
55
+ prNumber: number;
56
+ headSha: string;
57
+ waitId: string;
58
+ registeredAt: string;
59
+ deadline: string;
60
+ phase: "delivered" | "parked" | "registered" | "wake-pending" | "withdrawn";
55
61
  };
56
62
  outputFormat: "json";
57
- status: 401;
63
+ status: import("hono/utils/http-status").ContentfulStatusCode;
58
64
  input: {
59
65
  json: {
60
66
  pr: string;
@@ -63,11 +69,11 @@ export declare function ciToolRoutes(capabilities: Map<string, Capability>): imp
63
69
  };
64
70
  } | {
65
71
  output: {
66
- code: "authentication" | "capability_revoked" | "capacity" | "command_failed" | "finish_requested" | "generation_mismatch" | "gh_missing" | "human_ask_pending" | "human_ask_unanswered" | "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";
72
+ code: 'capability_revoked';
67
73
  message: string;
68
74
  };
69
75
  outputFormat: "json";
70
- status: 503;
76
+ status: 401;
71
77
  input: {
72
78
  json: {
73
79
  pr: string;
@@ -76,17 +82,11 @@ export declare function ciToolRoutes(capabilities: Map<string, Capability>): imp
76
82
  };
77
83
  } | {
78
84
  output: {
79
- prUrl: string;
80
- repository: string;
81
- prNumber: number;
82
- headSha: string;
83
- waitId: string;
84
- registeredAt: string;
85
- deadline: string;
86
- phase: "delivered" | "parked" | "registered" | "wake-pending" | "withdrawn";
85
+ code: "authentication" | "capability_revoked" | "capacity" | "command_failed" | "finish_requested" | "generation_mismatch" | "gh_missing" | "human_ask_pending" | "human_ask_unanswered" | "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";
86
+ message: string;
87
87
  };
88
88
  outputFormat: "json";
89
- status: import("hono/utils/http-status").ContentfulStatusCode;
89
+ status: 503;
90
90
  input: {
91
91
  json: {
92
92
  pr: string;
@@ -99,11 +99,13 @@ export declare function ciToolRoutes(capabilities: Map<string, Capability>): imp
99
99
  "/api/v1/tools/preview-stop": {
100
100
  $post: {
101
101
  output: {
102
- code: 'capability_revoked';
102
+ ok: boolean;
103
+ code: "adopted" | "approval_required" | "headless" | "invalid_input" | "not_registered" | "port_held" | "port_in_use" | "preview_disabled" | "restarted" | "stopped" | "unavailable" | "worktree_missing";
103
104
  message: string;
105
+ hint: string;
104
106
  };
105
107
  outputFormat: "json";
106
- status: 401;
108
+ status: import("hono/utils/http-status").ContentfulStatusCode;
107
109
  input: {
108
110
  json: {
109
111
  port: number;
@@ -112,13 +114,11 @@ export declare function ciToolRoutes(capabilities: Map<string, Capability>): imp
112
114
  };
113
115
  } | {
114
116
  output: {
115
- ok: boolean;
116
- code: "adopted" | "approval_required" | "headless" | "invalid_input" | "not_registered" | "port_held" | "port_in_use" | "preview_disabled" | "restarted" | "stopped" | "unavailable" | "worktree_missing";
117
+ code: 'capability_revoked';
117
118
  message: string;
118
- hint: string;
119
119
  };
120
120
  outputFormat: "json";
121
- status: import("hono/utils/http-status").ContentfulStatusCode;
121
+ status: 401;
122
122
  input: {
123
123
  json: {
124
124
  port: number;
@@ -131,11 +131,13 @@ export declare function ciToolRoutes(capabilities: Map<string, Capability>): imp
131
131
  "/api/v1/tools/preview-serve": {
132
132
  $post: {
133
133
  output: {
134
- code: 'capability_revoked';
134
+ ok: boolean;
135
+ code: "cezar_port" | "cwd_outside_worktree" | "headless" | "invalid_input" | "port_held" | "preview_disabled" | "registered" | "replaced" | "too_many" | "unavailable" | "worktree_missing";
135
136
  message: string;
137
+ hint: string;
136
138
  };
137
139
  outputFormat: "json";
138
- status: 401;
140
+ status: import("hono/utils/http-status").ContentfulStatusCode;
139
141
  input: {
140
142
  json: {
141
143
  command: string;
@@ -147,13 +149,11 @@ export declare function ciToolRoutes(capabilities: Map<string, Capability>): imp
147
149
  };
148
150
  } | {
149
151
  output: {
150
- ok: boolean;
151
- code: "cezar_port" | "cwd_outside_worktree" | "headless" | "invalid_input" | "port_held" | "preview_disabled" | "registered" | "replaced" | "too_many" | "unavailable" | "worktree_missing";
152
+ code: 'capability_revoked';
152
153
  message: string;
153
- hint: string;
154
154
  };
155
155
  outputFormat: "json";
156
- status: import("hono/utils/http-status").ContentfulStatusCode;
156
+ status: 401;
157
157
  input: {
158
158
  json: {
159
159
  command: string;
@@ -462,6 +462,18 @@ export declare function createDelegationApp(routes: DelegationRoutes): import("h
462
462
  } & {
463
463
  "/:workerId": {
464
464
  $get: {
465
+ output: {
466
+ error: string;
467
+ code?: "invalid_input" | undefined;
468
+ };
469
+ outputFormat: "json";
470
+ status: 400;
471
+ input: {
472
+ param: {
473
+ workerId: string;
474
+ };
475
+ };
476
+ } | {
465
477
  output: {
466
478
  workerId: string;
467
479
  parentRunId: string;
@@ -543,7 +555,11 @@ export declare function createDelegationApp(routes: DelegationRoutes): import("h
543
555
  workerId: string;
544
556
  };
545
557
  };
546
- } | {
558
+ };
559
+ };
560
+ } & {
561
+ "/:workerId/collect": {
562
+ $post: {
547
563
  output: {
548
564
  error: string;
549
565
  code?: "invalid_input" | undefined;
@@ -554,12 +570,10 @@ export declare function createDelegationApp(routes: DelegationRoutes): import("h
554
570
  param: {
555
571
  workerId: string;
556
572
  };
573
+ } & {
574
+ json: Record<string, never>;
557
575
  };
558
- };
559
- };
560
- } & {
561
- "/:workerId/collect": {
562
- $post: {
576
+ } | {
563
577
  output: {
564
578
  workerId: string;
565
579
  parentRunId: string;
@@ -661,7 +675,11 @@ export declare function createDelegationApp(routes: DelegationRoutes): import("h
661
675
  } & {
662
676
  json: Record<string, never>;
663
677
  };
664
- } | {
678
+ };
679
+ };
680
+ } & {
681
+ "/:workerId/steer": {
682
+ $post: {
665
683
  output: {
666
684
  error: string;
667
685
  code?: "invalid_input" | undefined;
@@ -673,13 +691,11 @@ export declare function createDelegationApp(routes: DelegationRoutes): import("h
673
691
  workerId: string;
674
692
  };
675
693
  } & {
676
- json: Record<string, never>;
694
+ json: {
695
+ text: string;
696
+ };
677
697
  };
678
- };
679
- };
680
- } & {
681
- "/:workerId/steer": {
682
- $post: {
698
+ } | {
683
699
  output: {
684
700
  workerId: string;
685
701
  state: "delivered" | "queued";
@@ -695,7 +711,11 @@ export declare function createDelegationApp(routes: DelegationRoutes): import("h
695
711
  text: string;
696
712
  };
697
713
  };
698
- } | {
714
+ };
715
+ };
716
+ } & {
717
+ "/:workerId/stop": {
718
+ $post: {
699
719
  output: {
700
720
  error: string;
701
721
  code?: "invalid_input" | undefined;
@@ -707,15 +727,9 @@ export declare function createDelegationApp(routes: DelegationRoutes): import("h
707
727
  workerId: string;
708
728
  };
709
729
  } & {
710
- json: {
711
- text: string;
712
- };
730
+ json: Record<string, never>;
713
731
  };
714
- };
715
- };
716
- } & {
717
- "/:workerId/stop": {
718
- $post: {
732
+ } | {
719
733
  output: {
720
734
  workerId: string;
721
735
  state: "stopping" | "terminated";
@@ -729,7 +743,11 @@ export declare function createDelegationApp(routes: DelegationRoutes): import("h
729
743
  } & {
730
744
  json: Record<string, never>;
731
745
  };
732
- } | {
746
+ };
747
+ };
748
+ } & {
749
+ "/:workerId/destroy": {
750
+ $post: {
733
751
  output: {
734
752
  error: string;
735
753
  code?: "invalid_input" | undefined;
@@ -743,11 +761,7 @@ export declare function createDelegationApp(routes: DelegationRoutes): import("h
743
761
  } & {
744
762
  json: Record<string, never>;
745
763
  };
746
- };
747
- };
748
- } & {
749
- "/:workerId/destroy": {
750
- $post: {
764
+ } | {
751
765
  output: {
752
766
  workerId: string;
753
767
  state: "complete" | "incomplete";
@@ -770,20 +784,6 @@ export declare function createDelegationApp(routes: DelegationRoutes): import("h
770
784
  } & {
771
785
  json: Record<string, never>;
772
786
  };
773
- } | {
774
- output: {
775
- error: string;
776
- code?: "invalid_input" | undefined;
777
- };
778
- outputFormat: "json";
779
- status: 400;
780
- input: {
781
- param: {
782
- workerId: string;
783
- };
784
- } & {
785
- json: Record<string, never>;
786
- };
787
787
  } | {
788
788
  output: {
789
789
  workerId: string;
@@ -813,13 +813,11 @@ export declare function createDelegationApp(routes: DelegationRoutes): import("h
813
813
  "/:workerId/diff": {
814
814
  $get: {
815
815
  output: {
816
- workerId: string;
817
- baselineSha: string;
818
- diff: string;
819
- truncated: boolean;
816
+ error: string;
817
+ code?: "invalid_input" | undefined;
820
818
  };
821
819
  outputFormat: "json";
822
- status: 200;
820
+ status: 400;
823
821
  input: {
824
822
  param: {
825
823
  workerId: string;
@@ -827,11 +825,13 @@ export declare function createDelegationApp(routes: DelegationRoutes): import("h
827
825
  };
828
826
  } | {
829
827
  output: {
830
- error: string;
831
- code?: "invalid_input" | undefined;
828
+ workerId: string;
829
+ baselineSha: string;
830
+ diff: string;
831
+ truncated: boolean;
832
832
  };
833
833
  outputFormat: "json";
834
- status: 400;
834
+ status: 200;
835
835
  input: {
836
836
  param: {
837
837
  workerId: string;