@moinulmoin/eden 0.2.0 → 0.2.2

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/README.md CHANGED
@@ -12,15 +12,15 @@ If you already have an Eve project, start with `eden deploy`.
12
12
  Use any one of these package managers:
13
13
 
14
14
  ```sh
15
- npm install --global @moinulmoin/eden@0.2.0
15
+ npm install --global @moinulmoin/eden@0.2.2
16
16
  ```
17
17
 
18
18
  ```sh
19
- pnpm add --global @moinulmoin/eden@0.2.0
19
+ pnpm add --global @moinulmoin/eden@0.2.2
20
20
  ```
21
21
 
22
22
  ```sh
23
- bun add --global @moinulmoin/eden@0.2.0
23
+ bun add --global @moinulmoin/eden@0.2.2
24
24
  ```
25
25
 
26
26
  Then confirm the CLI is available:
@@ -237,6 +237,15 @@ export interface EveDestroyCloudflareReadRequest {
237
237
  /** Exact `repository:tag` image refs recorded for this target. */
238
238
  readonly registryImages?: readonly string[];
239
239
  }
240
+ /**
241
+ * Container applications in the account that belong to this exact target.
242
+ * Eden names a target's Container application `<name>-container`; containers
243
+ * owned by anything else in the account never count.
244
+ */
245
+ export declare function exactTargetContainerEntries(value: unknown, name: string): readonly {
246
+ readonly id: string;
247
+ readonly name: string;
248
+ }[] | undefined;
240
249
  export declare function runEveControlPlane(request: EveCliExecutionRequest, options?: EvePreflightOptions): Promise<void>;
241
250
  export interface EveDestroyOutcome {
242
251
  readonly ok: boolean;
@@ -353,6 +353,14 @@ async function readWorkersDevSubdomain(accountId) {
353
353
  return undefined;
354
354
  }
355
355
  }
356
+ /**
357
+ * Container applications in the account that belong to this exact target.
358
+ * Eden names a target's Container application `<name>-container`; containers
359
+ * owned by anything else in the account never count.
360
+ */
361
+ export function exactTargetContainerEntries(value, name) {
362
+ return exactContainerEntries(value, boundedResourceName(name, "container"));
363
+ }
356
364
  async function defaultCloudflareRead(request) {
357
365
  const account = await readWranglerJson(["whoami", "--json"]);
358
366
  const containers = await readWranglerJson([
@@ -362,7 +370,6 @@ async function defaultCloudflareRead(request) {
362
370
  "--per-page",
363
371
  "100",
364
372
  ]);
365
- const containerCollection = jsonCollection(containers.value);
366
373
  const deployments = await readWranglerJson([
367
374
  "deployments",
368
375
  "list",
@@ -374,7 +381,7 @@ async function defaultCloudflareRead(request) {
374
381
  const accountAccess = account.failed || accountId === undefined
375
382
  ? "unavailable"
376
383
  : "available";
377
- const containerEntries = exactContainerEntries(containers.value, request.name);
384
+ const containerEntries = exactTargetContainerEntries(containers.value, request.name);
378
385
  const containerAccess = containers.failed || containerEntries === undefined
379
386
  ? "unavailable"
380
387
  : "available";
@@ -403,7 +410,7 @@ async function defaultCloudflareRead(request) {
403
410
  };
404
411
  }
405
412
  if (deploymentEntries.length === 0 &&
406
- containerCollection?.length === 0) {
413
+ containerEntries?.length === 0) {
407
414
  return {
408
415
  accountAccess,
409
416
  containerAccess,
@@ -1693,7 +1700,7 @@ async function collectEvePreflight(request, options) {
1693
1700
  if (hostRequirements !== undefined && hostRequirementsValid) {
1694
1701
  eveProgress(options, "building linux/amd64 runtime image, booting eve, checking health");
1695
1702
  try {
1696
- if (runtimeConfig !== undefined && request.command === "preflight") {
1703
+ if (runtimeConfig !== undefined) {
1697
1704
  runtimeInjection = await prepareEveRuntimeInjection(runtimeConfig, {
1698
1705
  mode: "preflight",
1699
1706
  });
@@ -1,4 +1,4 @@
1
- export declare const EVE_RESERVED_HOST_VARIABLES: readonly ["HOST", "NITRO_HOST", "PORT", "NITRO_PORT", "NODE_ENV", "WORKFLOW_LOCAL_BASE_URL", "EDEN_EVE_DEPLOYMENT_ID", "EDEN_EVE_GENERATION_ID"];
1
+ export declare const EVE_RESERVED_HOST_VARIABLES: readonly ["HOST", "NITRO_HOST", "PORT", "NITRO_PORT", "NODE_ENV", "NODE_EXTRA_CA_CERTS", "WORKFLOW_LOCAL_BASE_URL", "EDEN_EVE_DEPLOYMENT_ID", "EDEN_EVE_GENERATION_ID"];
2
2
  export type EveReservedHostVariable = (typeof EVE_RESERVED_HOST_VARIABLES)[number];
3
3
  export declare const EVE_START_COMMAND: readonly ["./node_modules/.bin/eve", "start", "--host", "0.0.0.0", "--port", "8080"];
4
4
  type EveRuntimeValueMap = Readonly<Record<string, string>>;
@@ -7,6 +7,7 @@ export const EVE_RESERVED_HOST_VARIABLES = Object.freeze([
7
7
  "PORT",
8
8
  "NITRO_PORT",
9
9
  "NODE_ENV",
10
+ "NODE_EXTRA_CA_CERTS",
10
11
  "WORKFLOW_LOCAL_BASE_URL",
11
12
  "EDEN_EVE_DEPLOYMENT_ID",
12
13
  "EDEN_EVE_GENERATION_ID",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@moinulmoin/eden",
3
- "version": "0.2.0",
3
+ "version": "0.2.2",
4
4
  "description": "Deploy existing Eve projects to your own Cloudflare account.",
5
5
  "keywords": [
6
6
  "ai",
@@ -31,7 +31,7 @@
31
31
  "NOTICE"
32
32
  ],
33
33
  "dependencies": {
34
- "@moinulmoin/eden-runtime-cloudflare": "0.2.0",
34
+ "@moinulmoin/eden-runtime-cloudflare": "0.2.2",
35
35
  "wrangler": "4.120.0"
36
36
  },
37
37
  "devDependencies": {