framer-dalton 0.0.20 → 0.0.21

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.
@@ -13,9 +13,9 @@ import crypto, { randomUUID } from 'crypto';
13
13
  import { createRequire } from 'module';
14
14
  import * as vm from 'vm';
15
15
 
16
- /* @framer/ai relay server v0.0.20 */
16
+ /* @framer/ai relay server v0.0.21 */
17
17
  var __defProp = Object.defineProperty;
18
- var __knownSymbol = (name, symbol) => (symbol = Symbol[name]) ? symbol : /* @__PURE__ */ Symbol.for("Symbol." + name);
18
+ var __knownSymbol = (name2, symbol) => (symbol = Symbol[name2]) ? symbol : /* @__PURE__ */ Symbol.for("Symbol." + name2);
19
19
  var __typeError = (msg) => {
20
20
  throw TypeError(msg);
21
21
  };
@@ -57,6 +57,20 @@ var __callDispose = (stack, error, hasError) => {
57
57
  };
58
58
  return next();
59
59
  };
60
+
61
+ // package.json
62
+ var name = "framer-dalton";
63
+
64
+ // src/check-node-version.ts
65
+ var MINIMUM_NODE_VERSION = 22;
66
+ var currentMajor = Number(process.versions.node.split(".")[0]);
67
+ if (currentMajor < MINIMUM_NODE_VERSION) {
68
+ console.error(
69
+ `${name} requires Node.js >= ${MINIMUM_NODE_VERSION}. You are running Node.js ${process.versions.node}.
70
+ Please upgrade: https://nodejs.org/`
71
+ );
72
+ process.exit(1);
73
+ }
60
74
  function getLogPath() {
61
75
  if (process.env.XDG_STATE_HOME) {
62
76
  return path.join(process.env.XDG_STATE_HOME, "framer", "relay.log");
@@ -95,7 +109,7 @@ __name(debug, "debug");
95
109
  // src/version.ts
96
110
  var VERSION = (
97
111
  // typeof is used to ensure this can be used just via tsx or node etc. without build
98
- "0.0.20"
112
+ "0.0.21"
99
113
  );
100
114
 
101
115
  // src/relay-client.ts
@@ -46,12 +46,26 @@ npx framer-dalton project list
46
46
 
47
47
  Use that list to infer the likely project from the names and recency. If the right project is already known, use its project ID with `session new`. If there are multiple possible matches, clarify with the user. Only ask the user for a Project URL if there is no clear match. Avoid talking about the technical contents of returned data like IDs.
48
48
 
49
- Create a session:
49
+ Create a session against an existing project:
50
50
 
51
51
  ```bash
52
52
  npx framer-dalton session new "<url or id>"
53
53
  ```
54
54
 
55
+ To create a brand new empty project and connect to it:
56
+
57
+ ```bash
58
+ npx framer-dalton project new
59
+ npx framer-dalton session new "<returned project id>"
60
+ ```
61
+
62
+ To remix (duplicate) an existing project and connect to the copy:
63
+
64
+ ```bash
65
+ npx framer-dalton project remix "<url, project id, or remix link>"
66
+ npx framer-dalton session new "<returned project id>"
67
+ ```
68
+
55
69
  Note that during beta, you cannot connect to non-beta projects. If creating a session errors with a message about this, you need to move your project to beta.
56
70
 
57
71
  #### 2. Look up the API (before EVERY code execution)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "framer-dalton",
3
- "version": "0.0.20",
3
+ "version": "0.0.21",
4
4
  "type": "module",
5
5
  "bin": "./dist/cli.js",
6
6
  "main": "./dist/cli.js",
@@ -23,17 +23,20 @@
23
23
  "@trpc/client": "^11.9.0",
24
24
  "@trpc/server": "^11.9.0",
25
25
  "commander": "^12.1.0",
26
- "framer-api": "0.1.4-alpha.2",
26
+ "framer-api": "0.1.7",
27
27
  "zod": "^4.3.6"
28
28
  },
29
29
  "devDependencies": {
30
30
  "@biomejs/biome": "^2.3.13",
31
- "@framerjs/framer-events": "0.0.173",
31
+ "@framerjs/framer-events": "0.0.175",
32
32
  "@types/node": "24.10.9",
33
33
  "tsup": "^8.0.2",
34
34
  "tsx": "^4.19.0",
35
35
  "typescript": "^5.9.2",
36
36
  "vitest": "^4.0.18"
37
37
  },
38
- "packageManager": "yarn@4.13.0"
38
+ "packageManager": "yarn@4.13.0",
39
+ "engines": {
40
+ "node": ">=22"
41
+ }
39
42
  }