@moinulmoin/eden 0.1.3 → 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.3
20
+ npm install --global @moinulmoin/eden@0.1.4
21
21
  ```
22
22
 
23
23
  ```sh
24
- pnpm add --global @moinulmoin/eden@0.1.3
24
+ pnpm add --global @moinulmoin/eden@0.1.4
25
25
  ```
26
26
 
27
27
  ```sh
28
- bun add --global @moinulmoin/eden@0.1.3
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
  ```
package/dist/index.js CHANGED
@@ -128,8 +128,8 @@ export default greet;
128
128
  "deploy": "eden agent deploy"
129
129
  },
130
130
  "devDependencies": {
131
- "@moinulmoin/eden": "0.1.3",
132
- "@moinulmoin/eden-definitions": "0.1.3",
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
  }
@@ -1690,7 +1690,8 @@ async function copyDeploymentGenerationSnapshot(root, generation) {
1690
1690
  errorOnExist: true,
1691
1691
  });
1692
1692
  const validated = await readArtifactGenerationAt(root, snapshotGeneration);
1693
- if (stableJson(validated.artifacts) !== stableJson(generation.artifacts)) {
1693
+ if (stableArtifactIdentity(validated.artifacts) !==
1694
+ stableArtifactIdentity(generation.artifacts)) {
1694
1695
  throw cliError({
1695
1696
  code: "ARTIFACT_INCOHERENT",
1696
1697
  message: "The immutable deployment snapshot changed while it was being copied; no remote action was started.",
@@ -2218,6 +2219,14 @@ function stableJson(value) {
2218
2219
  }
2219
2220
  return JSON.stringify(value);
2220
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
+ }
2221
2230
  async function assertCanonicalGenerationMatches(projectRoot, generationDirectory, generationId, expected) {
2222
2231
  try {
2223
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.3",
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.3",
35
- "@moinulmoin/eden-runtime-cloudflare": "0.1.3",
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
  },