@moinulmoin/eden 0.1.0
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/LICENSE +201 -0
- package/NOTICE +42 -0
- package/README.md +20 -0
- package/dist/eve-control-plane.d.ts +228 -0
- package/dist/eve-control-plane.js +2007 -0
- package/dist/eve-packaging.d.ts +261 -0
- package/dist/eve-packaging.js +2056 -0
- package/dist/eve-runtime-config.d.ts +126 -0
- package/dist/eve-runtime-config.js +446 -0
- package/dist/eve-runtime-image.d.ts +121 -0
- package/dist/eve-runtime-image.js +1134 -0
- package/dist/eve.d.ts +49 -0
- package/dist/eve.js +234 -0
- package/dist/index.d.ts +196 -0
- package/dist/index.js +6840 -0
- package/package.json +56 -0
package/LICENSE
ADDED
|
@@ -0,0 +1,201 @@
|
|
|
1
|
+
Apache License
|
|
2
|
+
Version 2.0, January 2004
|
|
3
|
+
http://www.apache.org/licenses/
|
|
4
|
+
|
|
5
|
+
TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
|
|
6
|
+
|
|
7
|
+
1. Definitions.
|
|
8
|
+
|
|
9
|
+
"License" shall mean the terms and conditions for use, reproduction,
|
|
10
|
+
and distribution as defined by Sections 1 through 9 of this document.
|
|
11
|
+
|
|
12
|
+
"Licensor" shall mean the copyright owner or entity authorized by
|
|
13
|
+
the copyright owner that is granting the License.
|
|
14
|
+
|
|
15
|
+
"Legal Entity" shall mean the union of the acting entity and all
|
|
16
|
+
other entities that control, are controlled by, or are under common
|
|
17
|
+
control with that entity. For the purposes of this definition,
|
|
18
|
+
"control" means (i) the power, direct or indirect, to cause the
|
|
19
|
+
direction or management of such entity, whether by contract or
|
|
20
|
+
otherwise, or (ii) ownership of fifty percent (50%) or more of the
|
|
21
|
+
outstanding shares, or (iii) beneficial ownership of such entity.
|
|
22
|
+
|
|
23
|
+
"You" (or "Your") shall mean an individual or Legal Entity
|
|
24
|
+
exercising permissions granted by this License.
|
|
25
|
+
|
|
26
|
+
"Source" form shall mean the preferred form for making modifications,
|
|
27
|
+
including but not limited to software source code, documentation
|
|
28
|
+
source, and configuration files.
|
|
29
|
+
|
|
30
|
+
"Object" form shall mean any form resulting from mechanical
|
|
31
|
+
transformation or translation of a Source form, including but
|
|
32
|
+
not limited to compiled object code, generated documentation,
|
|
33
|
+
and conversions to other media types.
|
|
34
|
+
|
|
35
|
+
"Work" shall mean the work of authorship, whether in Source or
|
|
36
|
+
Object form, made available under the License, as indicated by a
|
|
37
|
+
copyright notice that is included in or attached to the work
|
|
38
|
+
(an example is provided in the Appendix below).
|
|
39
|
+
|
|
40
|
+
"Derivative Works" shall mean any work, whether in Source or Object
|
|
41
|
+
form, that is based on (or derived from) the Work and for which the
|
|
42
|
+
editorial revisions, annotations, elaborations, or other modifications
|
|
43
|
+
represent, as a whole, an original work of authorship. For the purposes
|
|
44
|
+
of this License, Derivative Works shall not include works that remain
|
|
45
|
+
separable from, or merely link (or bind by name) to the interfaces of,
|
|
46
|
+
the Work and Derivative Works thereof.
|
|
47
|
+
|
|
48
|
+
"Contribution" shall mean any work of authorship, including
|
|
49
|
+
the original version of the Work and any modifications or additions
|
|
50
|
+
to that Work or Derivative Works thereof, that is intentionally
|
|
51
|
+
submitted to Licensor for inclusion in the Work by the copyright owner
|
|
52
|
+
or by an individual or Legal Entity authorized to submit on behalf of
|
|
53
|
+
the copyright owner. For the purposes of this definition, "submitted"
|
|
54
|
+
means any form of electronic, verbal, or written communication sent
|
|
55
|
+
to the Licensor or its representatives, including but not limited to
|
|
56
|
+
communication on electronic mailing lists, source code control systems,
|
|
57
|
+
and issue tracking systems that are managed by, or on behalf of, the
|
|
58
|
+
Licensor for the purpose of discussing and improving the Work, but
|
|
59
|
+
excluding communication that is conspicuously marked or otherwise
|
|
60
|
+
designated in writing by the copyright owner as "Not a Contribution."
|
|
61
|
+
|
|
62
|
+
"Contributor" shall mean Licensor and any individual or Legal Entity
|
|
63
|
+
on behalf of whom a Contribution has been received by Licensor and
|
|
64
|
+
subsequently incorporated within the Work.
|
|
65
|
+
|
|
66
|
+
2. Grant of Copyright License. Subject to the terms and conditions of
|
|
67
|
+
this License, each Contributor hereby grants to You a perpetual,
|
|
68
|
+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
|
69
|
+
copyright license to reproduce, prepare Derivative Works of,
|
|
70
|
+
publicly display, publicly perform, sublicense, and distribute the
|
|
71
|
+
Work and such Derivative Works in Source or Object form.
|
|
72
|
+
|
|
73
|
+
3. Grant of Patent License. Subject to the terms and conditions of
|
|
74
|
+
this License, each Contributor hereby grants to You a perpetual,
|
|
75
|
+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
|
76
|
+
(except as stated in this section) patent license to make, have made,
|
|
77
|
+
use, offer to sell, sell, import, and otherwise transfer the Work,
|
|
78
|
+
where such license applies only to those patent claims licensable
|
|
79
|
+
by such Contributor that are necessarily infringed by their
|
|
80
|
+
Contribution(s) alone or by combination of their Contribution(s)
|
|
81
|
+
with the Work to which such Contribution(s) was submitted. If You
|
|
82
|
+
institute patent litigation against any entity (including a
|
|
83
|
+
cross-claim or counterclaim in a lawsuit) alleging that the Work
|
|
84
|
+
or a Contribution incorporated within the Work constitutes direct
|
|
85
|
+
or contributory patent infringement, then any patent licenses
|
|
86
|
+
granted to You under this License for that Work shall terminate
|
|
87
|
+
as of the date such litigation is filed.
|
|
88
|
+
|
|
89
|
+
4. Redistribution. You may reproduce and distribute copies of the
|
|
90
|
+
Work or Derivative Works thereof in any medium, with or without
|
|
91
|
+
modifications, and in Source or Object form, provided that You
|
|
92
|
+
meet the following conditions:
|
|
93
|
+
|
|
94
|
+
(a) You must give any other recipients of the Work or
|
|
95
|
+
Derivative Works a copy of this License; and
|
|
96
|
+
|
|
97
|
+
(b) You must cause any modified files to carry prominent notices
|
|
98
|
+
stating that You changed the files; and
|
|
99
|
+
|
|
100
|
+
(c) You must retain, in the Source form of any Derivative Works
|
|
101
|
+
that You distribute, all copyright, patent, trademark, and
|
|
102
|
+
attribution notices from the Source form of the Work,
|
|
103
|
+
excluding those notices that do not pertain to any part of
|
|
104
|
+
the Derivative Works; and
|
|
105
|
+
|
|
106
|
+
(d) If the Work includes a "NOTICE" text file as part of its
|
|
107
|
+
distribution, then any Derivative Works that You distribute must
|
|
108
|
+
include a readable copy of the attribution notices contained
|
|
109
|
+
within such NOTICE file, excluding those notices that do not
|
|
110
|
+
pertain to any part of the Derivative Works, in at least one
|
|
111
|
+
of the following places: within a NOTICE text file distributed
|
|
112
|
+
as part of the Derivative Works; within the Source form or
|
|
113
|
+
documentation, if provided along with the Derivative Works; or,
|
|
114
|
+
within a display generated by the Derivative Works, if and
|
|
115
|
+
wherever such third-party notices normally appear. The contents
|
|
116
|
+
of the NOTICE file are for informational purposes only and
|
|
117
|
+
do not modify the License. You may add Your own attribution
|
|
118
|
+
notices within Derivative Works that You distribute, alongside
|
|
119
|
+
or as an addendum to the NOTICE text from the Work, provided
|
|
120
|
+
that such additional attribution notices cannot be construed
|
|
121
|
+
as modifying the License.
|
|
122
|
+
|
|
123
|
+
You may add Your own copyright statement to Your modifications and
|
|
124
|
+
may provide additional or different license terms and conditions
|
|
125
|
+
for use, reproduction, or distribution of Your modifications, or
|
|
126
|
+
for any such Derivative Works as a whole, provided Your use,
|
|
127
|
+
reproduction, and distribution of the Work otherwise complies with
|
|
128
|
+
the conditions stated in this License.
|
|
129
|
+
|
|
130
|
+
5. Submission of Contributions. Unless You explicitly state otherwise,
|
|
131
|
+
any Contribution intentionally submitted for inclusion in the Work
|
|
132
|
+
by You to the Licensor shall be under the terms and conditions of
|
|
133
|
+
this License, without any additional terms or conditions.
|
|
134
|
+
Notwithstanding the above, nothing herein shall supersede or modify
|
|
135
|
+
the terms of any separate license agreement you may have executed
|
|
136
|
+
with Licensor regarding such Contributions.
|
|
137
|
+
|
|
138
|
+
6. Trademarks. This License does not grant permission to use the trade
|
|
139
|
+
names, trademarks, service marks, or product names of the Licensor,
|
|
140
|
+
except as required for reasonable and customary use in describing the
|
|
141
|
+
origin of the Work and reproducing the content of the NOTICE file.
|
|
142
|
+
|
|
143
|
+
7. Disclaimer of Warranty. Unless required by applicable law or
|
|
144
|
+
agreed to in writing, Licensor provides the Work (and each
|
|
145
|
+
Contributor provides its Contributions) on an "AS IS" BASIS,
|
|
146
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
|
|
147
|
+
implied, including, without limitation, any warranties or conditions
|
|
148
|
+
of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
|
|
149
|
+
PARTICULAR PURPOSE. You are solely responsible for determining the
|
|
150
|
+
appropriateness of using or redistributing the Work and assume any
|
|
151
|
+
risks associated with Your exercise of permissions under this License.
|
|
152
|
+
|
|
153
|
+
8. Limitation of Liability. In no event and under no legal theory,
|
|
154
|
+
whether in tort (including negligence), contract, or otherwise,
|
|
155
|
+
unless required by applicable law (such as deliberate and grossly
|
|
156
|
+
negligent acts) or agreed to in writing, shall any Contributor be
|
|
157
|
+
liable to You for damages, including any direct, indirect, special,
|
|
158
|
+
incidental, or consequential damages of any character arising as a
|
|
159
|
+
result of this License or out of the use or inability to use the
|
|
160
|
+
Work (including but not limited to damages for loss of goodwill,
|
|
161
|
+
work stoppage, computer failure or malfunction, or any and all
|
|
162
|
+
other commercial damages or losses), even if such Contributor
|
|
163
|
+
has been advised of the possibility of such damages.
|
|
164
|
+
|
|
165
|
+
9. Accepting Warranty or Additional Liability. While redistributing
|
|
166
|
+
the Work or Derivative Works thereof, You may choose to offer,
|
|
167
|
+
and charge a fee for, acceptance of support, warranty, indemnity,
|
|
168
|
+
or other liability obligations and/or rights consistent with this
|
|
169
|
+
License. However, in accepting such obligations, You may act only
|
|
170
|
+
on Your own behalf and on Your sole responsibility, not on behalf
|
|
171
|
+
of any other Contributor, and only if You agree to indemnify,
|
|
172
|
+
defend, and hold each Contributor harmless for any liability
|
|
173
|
+
incurred by, or claims asserted against, such Contributor by reason
|
|
174
|
+
of your accepting any such warranty or additional liability.
|
|
175
|
+
|
|
176
|
+
END OF TERMS AND CONDITIONS
|
|
177
|
+
|
|
178
|
+
APPENDIX: How to apply the Apache License to your work.
|
|
179
|
+
|
|
180
|
+
To apply the Apache License to your work, attach the following
|
|
181
|
+
boilerplate notice, with the fields enclosed by brackets "{}"
|
|
182
|
+
replaced with your own identifying information. (Don't include
|
|
183
|
+
the brackets!) The text should be enclosed in the appropriate
|
|
184
|
+
comment syntax for the file format. We also recommend that a
|
|
185
|
+
file or class name and purpose be included on the same "printed
|
|
186
|
+
page" as the copyright notice for easier identification within
|
|
187
|
+
third-party archives.
|
|
188
|
+
|
|
189
|
+
Copyright {yyyy} {name of copyright owner}
|
|
190
|
+
|
|
191
|
+
Licensed under the Apache License, Version 2.0 (the "License");
|
|
192
|
+
you may not use this file except in compliance with the License.
|
|
193
|
+
You may obtain a copy of the License at
|
|
194
|
+
|
|
195
|
+
http://www.apache.org/licenses/LICENSE-2.0
|
|
196
|
+
|
|
197
|
+
Unless required by applicable law or agreed to in writing, software
|
|
198
|
+
distributed under the License is distributed on an "AS IS" BASIS,
|
|
199
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
200
|
+
See the License for the specific language governing permissions and
|
|
201
|
+
limitations under the License.
|
package/NOTICE
ADDED
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
eve
|
|
2
|
+
Copyright 2026 Vercel, Inc. and contributors
|
|
3
|
+
|
|
4
|
+
This product includes software developed at Vercel, Inc.
|
|
5
|
+
(https://vercel.com/).
|
|
6
|
+
|
|
7
|
+
Eden
|
|
8
|
+
Copyright 2026 Eden contributors
|
|
9
|
+
|
|
10
|
+
This repository contains Eden-owned modified derivative implementations
|
|
11
|
+
informed by portable concepts from the Eve framework:
|
|
12
|
+
|
|
13
|
+
Eve, version 0.31.3
|
|
14
|
+
https://github.com/vercel/eve
|
|
15
|
+
reference commit: 0b102bc90e7cf2c3e294f6ca3af86c307d449b1a
|
|
16
|
+
|
|
17
|
+
Eve is distributed under the Apache License, Version 2.0. The applicable
|
|
18
|
+
Apache-2.0 terms are included in LICENSE. This notice is retained for the
|
|
19
|
+
Eve attribution obligation; it does not grant ownership of Eden's original
|
|
20
|
+
implementation.
|
|
21
|
+
|
|
22
|
+
Cloudflare Containers
|
|
23
|
+
@cloudflare/containers, version 0.3.7
|
|
24
|
+
https://github.com/cloudflare/containers
|
|
25
|
+
|
|
26
|
+
Eden's generated Worker host bundle includes software from
|
|
27
|
+
`@cloudflare/containers`, distributed under MIT OR Apache-2.0. Eden
|
|
28
|
+
redistributes that bundled software under the Apache-2.0 option included in
|
|
29
|
+
LICENSE.
|
|
30
|
+
|
|
31
|
+
The following Eden source files are marked in-file as modified derivatives of
|
|
32
|
+
portable Eve concepts:
|
|
33
|
+
|
|
34
|
+
packages/definitions/src/index.ts
|
|
35
|
+
packages/compiler/src/index.ts
|
|
36
|
+
packages/client/src/protocol.ts
|
|
37
|
+
packages/runtime-cloudflare/src/session-journal.ts
|
|
38
|
+
packages/runtime-cloudflare/src/model-normalizers.ts
|
|
39
|
+
|
|
40
|
+
Eden does not include unmodified Eve source. The listed files are Eden-owned
|
|
41
|
+
modifications and must retain their in-file modified-derivative notices when
|
|
42
|
+
redistributed.
|
package/README.md
ADDED
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
# @moinulmoin/eden
|
|
2
|
+
|
|
3
|
+
CLI for Eden Deploy and Eden Agent.
|
|
4
|
+
|
|
5
|
+
```sh
|
|
6
|
+
npm install --global @moinulmoin/eden@0.1.0
|
|
7
|
+
eden --help
|
|
8
|
+
```
|
|
9
|
+
|
|
10
|
+
The package requires Node `>=24.17.0 <25`. pnpm and Bun may also install the
|
|
11
|
+
package; Bun is an installer, not the Eden runtime.
|
|
12
|
+
|
|
13
|
+
- `eden preflight`, `eden deploy`, `eden destroy`: host an existing Eve project
|
|
14
|
+
on Cloudflare without rewriting its source.
|
|
15
|
+
- `eden agent`: author and operate a Cloudflare-native Eden Agent.
|
|
16
|
+
|
|
17
|
+
Full setup, requirements, architecture, and validation guidance:
|
|
18
|
+
<https://github.com/moinulmoin/eden#readme>
|
|
19
|
+
|
|
20
|
+
Apache-2.0. See the packaged `LICENSE` and `NOTICE` files.
|
|
@@ -0,0 +1,228 @@
|
|
|
1
|
+
import { type EveCliEnvironment, type EveCliExecutionRequest } from "./eve.js";
|
|
2
|
+
import { type EveNodeImage, type EveProjectBuildCandidate, type EveProjectBuilder } from "./eve-packaging.js";
|
|
3
|
+
import { type EveHostRequirements, type EveRuntimeCleanup } from "./eve-runtime-image.js";
|
|
4
|
+
import { type EveRuntimeConfig, type EveRuntimeInjection, type EveRuntimeProtectedStore } from "./eve-runtime-config.js";
|
|
5
|
+
import type { EveHostConfig } from "@moinulmoin/eden-runtime-cloudflare";
|
|
6
|
+
export declare const DEFAULT_EVE_HOST_REQUIREMENTS: EveHostRequirements;
|
|
7
|
+
export declare const DEFAULT_EVE_NODE_IMAGE: EveNodeImage;
|
|
8
|
+
export type EvePreflightCheckStatus = "passed" | "failed" | "blocked" | "skipped";
|
|
9
|
+
export interface EvePreflightCheck {
|
|
10
|
+
readonly id: string;
|
|
11
|
+
readonly status: EvePreflightCheckStatus;
|
|
12
|
+
readonly message: string;
|
|
13
|
+
readonly remediation?: string;
|
|
14
|
+
}
|
|
15
|
+
export interface EvePreflightCandidate {
|
|
16
|
+
readonly generationId: string;
|
|
17
|
+
readonly sourceDigest: string;
|
|
18
|
+
readonly outputDigest: string;
|
|
19
|
+
readonly imageDigest?: string;
|
|
20
|
+
}
|
|
21
|
+
export type EveDeploymentStatus = "deployed" | "failed" | "indeterminate";
|
|
22
|
+
export interface EveDeploymentMetadata {
|
|
23
|
+
readonly status: EveDeploymentStatus;
|
|
24
|
+
readonly targetKey: string;
|
|
25
|
+
readonly deploymentId: string;
|
|
26
|
+
readonly workerName: string;
|
|
27
|
+
readonly containerApplicationName: string;
|
|
28
|
+
readonly stableContainerInstanceName: string;
|
|
29
|
+
readonly stableWorkersDevOrigin: string;
|
|
30
|
+
readonly imageReference: string;
|
|
31
|
+
readonly runtimeVariableNames: readonly string[];
|
|
32
|
+
readonly evidenceRetained: true;
|
|
33
|
+
}
|
|
34
|
+
export interface EvePreflightResult {
|
|
35
|
+
readonly command: "eve preflight" | "eve deploy";
|
|
36
|
+
readonly ok: boolean;
|
|
37
|
+
readonly environment: EveCliEnvironment;
|
|
38
|
+
readonly name: string;
|
|
39
|
+
readonly checks: readonly EvePreflightCheck[];
|
|
40
|
+
readonly candidate: EvePreflightCandidate | null;
|
|
41
|
+
readonly deployment?: EveDeploymentMetadata;
|
|
42
|
+
}
|
|
43
|
+
export type EveCloudflareTargetState = "absent" | "owned" | "unowned" | "mismatched" | "cross-environment" | "ambiguous";
|
|
44
|
+
export interface EveCloudflareReadRequest {
|
|
45
|
+
readonly projectId: string;
|
|
46
|
+
readonly sourceDigest: string;
|
|
47
|
+
readonly environment: EveCliEnvironment;
|
|
48
|
+
readonly name: string;
|
|
49
|
+
}
|
|
50
|
+
export interface EveCloudflareReadResult {
|
|
51
|
+
readonly accountAccess: "available" | "unavailable";
|
|
52
|
+
readonly containerAccess: "available" | "unavailable";
|
|
53
|
+
readonly accountId?: string;
|
|
54
|
+
readonly workersDevSubdomain?: string;
|
|
55
|
+
readonly stableWorkersDevOrigin?: string;
|
|
56
|
+
readonly target: {
|
|
57
|
+
readonly state: EveCloudflareTargetState;
|
|
58
|
+
readonly matchesCandidate?: boolean;
|
|
59
|
+
readonly message?: string;
|
|
60
|
+
readonly remediation?: string;
|
|
61
|
+
readonly identity?: EveDeploymentIdentityProof;
|
|
62
|
+
};
|
|
63
|
+
}
|
|
64
|
+
export type EveCloudflareReadRunner = (request: EveCloudflareReadRequest) => EveCloudflareReadResult | Promise<EveCloudflareReadResult>;
|
|
65
|
+
export interface EvePreflightRuntimeEvidence {
|
|
66
|
+
readonly ok: boolean;
|
|
67
|
+
readonly checks: readonly EvePreflightCheck[];
|
|
68
|
+
readonly imageDigest?: string;
|
|
69
|
+
readonly imageReference?: string;
|
|
70
|
+
readonly cleanup: EveRuntimeCleanup;
|
|
71
|
+
}
|
|
72
|
+
export interface EvePreflightRuntimeRunnerRequest {
|
|
73
|
+
readonly candidate: EveProjectBuildCandidate;
|
|
74
|
+
readonly nodeImage: EveNodeImage;
|
|
75
|
+
readonly healthPort: number;
|
|
76
|
+
readonly hostRequirements: EveHostRequirements;
|
|
77
|
+
readonly publicOrigin?: string;
|
|
78
|
+
readonly runtimeInjection?: EveRuntimeInjection;
|
|
79
|
+
readonly retainImage?: boolean;
|
|
80
|
+
}
|
|
81
|
+
export type EvePreflightRuntimeRunner = (request: EvePreflightRuntimeRunnerRequest) => EvePreflightRuntimeEvidence | Promise<EvePreflightRuntimeEvidence>;
|
|
82
|
+
export interface EveDeploymentIdentity {
|
|
83
|
+
readonly projectId: string;
|
|
84
|
+
readonly sourceDigest: string;
|
|
85
|
+
readonly generationId: string;
|
|
86
|
+
readonly deploymentId: string;
|
|
87
|
+
readonly environment: EveCliEnvironment;
|
|
88
|
+
readonly name: string;
|
|
89
|
+
readonly accountId: string;
|
|
90
|
+
readonly workersDevSubdomain: string;
|
|
91
|
+
readonly stableWorkersDevOrigin: string;
|
|
92
|
+
readonly workerName: string;
|
|
93
|
+
readonly containerApplicationName: string;
|
|
94
|
+
readonly stableContainerInstanceName: string;
|
|
95
|
+
readonly containerImage: string;
|
|
96
|
+
readonly runtimeVariableNames: readonly string[];
|
|
97
|
+
readonly runtimeRevisionHandle?: string;
|
|
98
|
+
}
|
|
99
|
+
export type EveDeploymentIdentityProof = Partial<EveDeploymentIdentity>;
|
|
100
|
+
export interface EveDeploymentPublicationRequest {
|
|
101
|
+
readonly identity: EveDeploymentIdentity;
|
|
102
|
+
readonly hostConfig: EveHostConfig;
|
|
103
|
+
readonly workerSource: string;
|
|
104
|
+
readonly workerSourcePath: string;
|
|
105
|
+
readonly wranglerConfigPath: string;
|
|
106
|
+
readonly runtimeInjection?: EveRuntimeInjection;
|
|
107
|
+
}
|
|
108
|
+
export type EveDeploymentPublicationResult = {
|
|
109
|
+
readonly status: "published";
|
|
110
|
+
readonly identity: EveDeploymentIdentityProof;
|
|
111
|
+
readonly createdByAttempt: boolean;
|
|
112
|
+
readonly ownershipProven: true;
|
|
113
|
+
} | {
|
|
114
|
+
readonly status: "failed";
|
|
115
|
+
readonly reason: string;
|
|
116
|
+
readonly createdByAttempt?: boolean;
|
|
117
|
+
readonly ownershipProven?: boolean;
|
|
118
|
+
} | {
|
|
119
|
+
readonly status: "indeterminate";
|
|
120
|
+
readonly reason: string;
|
|
121
|
+
readonly ownershipEvidenceRetained: true;
|
|
122
|
+
};
|
|
123
|
+
export type EveDeploymentPublicationRunner = (request: EveDeploymentPublicationRequest) => EveDeploymentPublicationResult | Promise<EveDeploymentPublicationResult>;
|
|
124
|
+
export interface EveDeploymentCompensationRequest {
|
|
125
|
+
readonly identity: EveDeploymentIdentity;
|
|
126
|
+
readonly publication: EveDeploymentPublicationResult & {
|
|
127
|
+
readonly status: "published" | "failed";
|
|
128
|
+
};
|
|
129
|
+
}
|
|
130
|
+
export type EveDeploymentCompensationRunner = (request: EveDeploymentCompensationRequest) => void | Promise<void>;
|
|
131
|
+
export interface EveDeploymentHealthRequest {
|
|
132
|
+
readonly identity: EveDeploymentIdentity;
|
|
133
|
+
readonly origin: string;
|
|
134
|
+
}
|
|
135
|
+
export type EveDeploymentHealthResult = {
|
|
136
|
+
readonly status: "ready";
|
|
137
|
+
readonly identity: EveDeploymentIdentityProof;
|
|
138
|
+
} | {
|
|
139
|
+
readonly status: "failed";
|
|
140
|
+
readonly reason: string;
|
|
141
|
+
} | {
|
|
142
|
+
readonly status: "indeterminate";
|
|
143
|
+
readonly reason: string;
|
|
144
|
+
};
|
|
145
|
+
export type EveDeploymentHealthRunner = (request: EveDeploymentHealthRequest) => EveDeploymentHealthResult | Promise<EveDeploymentHealthResult>;
|
|
146
|
+
export interface EveImagePublicationRequest {
|
|
147
|
+
readonly accountId: string;
|
|
148
|
+
readonly targetImageReference: string;
|
|
149
|
+
readonly localImageReference: string;
|
|
150
|
+
readonly localImageTag: string;
|
|
151
|
+
readonly generationRoot: string;
|
|
152
|
+
}
|
|
153
|
+
export type EveImagePublicationResult = {
|
|
154
|
+
readonly status: "published";
|
|
155
|
+
readonly imageReference: string;
|
|
156
|
+
readonly imageDigest: string;
|
|
157
|
+
} | {
|
|
158
|
+
readonly status: "indeterminate";
|
|
159
|
+
readonly reason: string;
|
|
160
|
+
readonly evidenceRetained: true;
|
|
161
|
+
};
|
|
162
|
+
export type EveImagePublicationRunner = (request: EveImagePublicationRequest) => EveImagePublicationResult | Promise<EveImagePublicationResult>;
|
|
163
|
+
export interface EvePreflightOptions {
|
|
164
|
+
/**
|
|
165
|
+
* The candidate builder is intentionally the existing packaging seam. It
|
|
166
|
+
* owns source snapshots, frozen installs, project-local Eve build, and
|
|
167
|
+
* source/input race checks.
|
|
168
|
+
*/
|
|
169
|
+
readonly builder?: EveProjectBuilder;
|
|
170
|
+
readonly nodeImage?: EveNodeImage;
|
|
171
|
+
readonly artifactRoot?: string;
|
|
172
|
+
readonly healthPort?: number;
|
|
173
|
+
readonly hostRequirements?: EveHostRequirements | ((candidate: EveProjectBuildCandidate) => EveHostRequirements | Promise<EveHostRequirements>);
|
|
174
|
+
/**
|
|
175
|
+
* A runtime runner is required for env-file preflight so runtime values can
|
|
176
|
+
* enter only through the deployment-safety protected local injection seam.
|
|
177
|
+
*/
|
|
178
|
+
readonly runtimeRunner?: EvePreflightRuntimeRunner;
|
|
179
|
+
/**
|
|
180
|
+
* Deployment-safety owns opening/parsing the opaque environment file. The
|
|
181
|
+
* control plane receives only this typed handoff.
|
|
182
|
+
*/
|
|
183
|
+
readonly runtimeConfigLoader?: EveRuntimeConfigLoader;
|
|
184
|
+
readonly cloudflareRead?: EveCloudflareReadRunner;
|
|
185
|
+
readonly containerImageReference?: string;
|
|
186
|
+
readonly protectedStore?: EveRuntimeProtectedStore;
|
|
187
|
+
readonly publish?: EveDeploymentPublicationRunner;
|
|
188
|
+
readonly publishImage?: EveImagePublicationRunner;
|
|
189
|
+
readonly compensate?: EveDeploymentCompensationRunner;
|
|
190
|
+
readonly health?: EveDeploymentHealthRunner;
|
|
191
|
+
readonly afterPromotion?: () => void | Promise<void>;
|
|
192
|
+
readonly retainRuntimeImage?: boolean;
|
|
193
|
+
readonly stdout?: (line: string) => void;
|
|
194
|
+
/**
|
|
195
|
+
* Destroy seams. Defaults use only Wrangler reads/deletes plus the
|
|
196
|
+
* immutable local deployment record; tests may inject exact fakes.
|
|
197
|
+
*/
|
|
198
|
+
readonly destroyCloudflareRead?: EveDestroyCloudflareReadRunner;
|
|
199
|
+
readonly deleteWorker?: EveWorkerDeleteRunner;
|
|
200
|
+
readonly deleteContainer?: EveContainerDeleteRunner;
|
|
201
|
+
}
|
|
202
|
+
export interface EveDestroyTargetRead {
|
|
203
|
+
readonly workerExists: boolean;
|
|
204
|
+
readonly containerApplicationId?: string;
|
|
205
|
+
readonly accountId?: string;
|
|
206
|
+
}
|
|
207
|
+
export type EveDestroyCloudflareReadRunner = (request: EveDestroyCloudflareReadRequest) => EveDestroyTargetRead | Promise<EveDestroyTargetRead>;
|
|
208
|
+
export type EveWorkerDeleteRunner = (request: {
|
|
209
|
+
readonly name: string;
|
|
210
|
+
}) => "deleted" | "absent" | "indeterminate" | Promise<"deleted" | "absent" | "indeterminate">;
|
|
211
|
+
export type EveContainerDeleteRunner = (request: {
|
|
212
|
+
readonly applicationId: string;
|
|
213
|
+
}) => "deleted" | "absent" | "indeterminate" | Promise<"deleted" | "absent" | "indeterminate">;
|
|
214
|
+
export type EveRuntimeConfigLoader = (path: string, cwd: string) => EveRuntimeConfig | Promise<EveRuntimeConfig>;
|
|
215
|
+
export interface EveDestroyCloudflareReadRequest {
|
|
216
|
+
readonly workerName: string;
|
|
217
|
+
readonly containerApplicationName: string;
|
|
218
|
+
}
|
|
219
|
+
export declare function runEveControlPlane(request: EveCliExecutionRequest, options?: EvePreflightOptions): Promise<void>;
|
|
220
|
+
export interface EveDestroyOutcome {
|
|
221
|
+
readonly ok: boolean;
|
|
222
|
+
readonly status: "destroyed" | "absent" | "failed" | "indeterminate";
|
|
223
|
+
readonly environment: EveCliEnvironment;
|
|
224
|
+
readonly name: string;
|
|
225
|
+
readonly checks: readonly EvePreflightCheck[];
|
|
226
|
+
}
|
|
227
|
+
export declare function runEveDestroy(request: EveCliExecutionRequest, options?: EvePreflightOptions): Promise<void>;
|
|
228
|
+
//# sourceMappingURL=eve-control-plane.d.ts.map
|