@moinulmoin/eden 0.1.2 → 0.1.4

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
@@ -17,15 +17,15 @@ create a new Eden-native agent, start with `eden agent init`.
17
17
  Use any one of these package managers:
18
18
 
19
19
  ```sh
20
- npm install --global @moinulmoin/eden@0.1.2
20
+ npm install --global @moinulmoin/eden@0.1.4
21
21
  ```
22
22
 
23
23
  ```sh
24
- pnpm add --global @moinulmoin/eden@0.1.2
24
+ pnpm add --global @moinulmoin/eden@0.1.4
25
25
  ```
26
26
 
27
27
  ```sh
28
- bun add --global @moinulmoin/eden@0.1.2
28
+ bun add --global @moinulmoin/eden@0.1.4
29
29
  ```
30
30
 
31
31
  Then confirm the CLI is available:
@@ -160,7 +160,7 @@ remains in the current shell.
160
160
  Deploy the Agent to an explicit preview target:
161
161
 
162
162
  ```sh
163
- pnpm run deploy -- \
163
+ pnpm run deploy \
164
164
  --env preview \
165
165
  --name my-agent-preview
166
166
  ```
@@ -207,6 +207,8 @@ Run `eden <command> --help` for command-specific options.
207
207
 
208
208
  ## Documentation
209
209
 
210
+ - [Documentation index](https://github.com/moinulmoin/eden/blob/main/docs/README.md)
211
+ - [Installation](https://github.com/moinulmoin/eden/blob/main/docs/install.md)
210
212
  - [Deploying Eve projects](https://github.com/moinulmoin/eden/blob/main/docs/deploy.md)
211
213
  - [Eden Agent CLI](https://github.com/moinulmoin/eden/blob/main/docs/agent-cli.md)
212
214
  - [Validation and cleanup](https://github.com/moinulmoin/eden/blob/main/docs/validation.md)
package/dist/index.js CHANGED
@@ -128,12 +128,19 @@ export default greet;
128
128
  "deploy": "eden agent deploy"
129
129
  },
130
130
  "devDependencies": {
131
- "@moinulmoin/eden": "0.1.2",
132
- "@moinulmoin/eden-definitions": "0.1.2",
131
+ "@moinulmoin/eden": "0.1.4",
132
+ "@moinulmoin/eden-definitions": "0.1.4",
133
133
  "typescript": "5.9.3",
134
134
  "wrangler": "4.120.0"
135
135
  }
136
136
  }
137
+ `,
138
+ },
139
+ {
140
+ relativePath: "pnpm-workspace.yaml",
141
+ content: `allowBuilds:
142
+ esbuild: true
143
+ workerd: true
137
144
  `,
138
145
  },
139
146
  {
@@ -858,6 +865,7 @@ function initRootEntriesAllowed(state, stageName) {
858
865
  INIT_STATE_FILE,
859
866
  "agent",
860
867
  "package.json",
868
+ "pnpm-workspace.yaml",
861
869
  "wrangler.jsonc",
862
870
  ".eden",
863
871
  ]);
@@ -1682,7 +1690,8 @@ async function copyDeploymentGenerationSnapshot(root, generation) {
1682
1690
  errorOnExist: true,
1683
1691
  });
1684
1692
  const validated = await readArtifactGenerationAt(root, snapshotGeneration);
1685
- if (stableJson(validated.artifacts) !== stableJson(generation.artifacts)) {
1693
+ if (stableArtifactIdentity(validated.artifacts) !==
1694
+ stableArtifactIdentity(generation.artifacts)) {
1686
1695
  throw cliError({
1687
1696
  code: "ARTIFACT_INCOHERENT",
1688
1697
  message: "The immutable deployment snapshot changed while it was being copied; no remote action was started.",
@@ -2210,6 +2219,14 @@ function stableJson(value) {
2210
2219
  }
2211
2220
  return JSON.stringify(value);
2212
2221
  }
2222
+ function stableArtifactIdentity(artifacts) {
2223
+ const { buildMetadata, ...artifactsWithoutMetadata } = artifacts;
2224
+ const metadataWithoutCreatedAt = Object.fromEntries(Object.entries(buildMetadata).filter(([key]) => key !== "createdAt"));
2225
+ return stableJson({
2226
+ ...artifactsWithoutMetadata,
2227
+ buildMetadata: metadataWithoutCreatedAt,
2228
+ });
2229
+ }
2213
2230
  async function assertCanonicalGenerationMatches(projectRoot, generationDirectory, generationId, expected) {
2214
2231
  try {
2215
2232
  const canonical = await readArtifactGenerationAt(projectRoot, generationDirectory);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@moinulmoin/eden",
3
- "version": "0.1.2",
3
+ "version": "0.1.4",
4
4
  "description": "Deploy existing Eve agents to Cloudflare and author Cloudflare-native Eden Agents.",
5
5
  "keywords": [
6
6
  "ai",
@@ -31,8 +31,8 @@
31
31
  "NOTICE"
32
32
  ],
33
33
  "dependencies": {
34
- "@moinulmoin/eden-compiler": "0.1.2",
35
- "@moinulmoin/eden-runtime-cloudflare": "0.1.2",
34
+ "@moinulmoin/eden-compiler": "0.1.4",
35
+ "@moinulmoin/eden-runtime-cloudflare": "0.1.4",
36
36
  "chokidar": "5.0.0",
37
37
  "wrangler": "4.120.0"
38
38
  },