@farm.js/create-app 0.1.35 → 0.1.37

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.
@@ -1,4 +1,4 @@
1
- //#region \0rolldown/runtime.js
1
+ // \0rolldown/runtime.js
2
2
  var __create = Object.create;
3
3
  var __defProp = Object.defineProperty;
4
4
  var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
@@ -19,7 +19,6 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
19
19
  value: mod,
20
20
  enumerable: true
21
21
  }) : target, mod));
22
- //#endregion
23
22
  Object.defineProperty(exports, "__toESM", {
24
23
  enumerable: true,
25
24
  get: function() {
package/dist/utils.js CHANGED
@@ -1,8 +1,8 @@
1
1
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
2
- const require_rolldown_runtime = require("./rolldown-runtime-VH7oDXx4.js");
2
+ const require_rolldown_runtime = require("./rolldown-runtime-CmQyd0Gu.js");
3
3
  let picocolors = require("picocolors");
4
4
  picocolors = require_rolldown_runtime.__toESM(picocolors);
5
- //#region src/utils.ts
5
+ // src/utils.ts
6
6
  const logger = {
7
7
  info: (message) => console.log(`${picocolors.default.blue("ℹ")} ${message}`),
8
8
  success: (message) => console.log(`${picocolors.default.green("✓")} ${message}`),
@@ -25,7 +25,6 @@ function showBanner() {
25
25
  console.log(picocolors.default.bold(picocolors.default.green("Create FARMJS App")) + picocolors.default.dim(" the framework for the web and agents"));
26
26
  console.log("");
27
27
  }
28
- //#endregion
29
28
  exports.logger = logger;
30
29
  exports.showBanner = showBanner;
31
30
 
package/dist/utils.mjs CHANGED
@@ -1,5 +1,5 @@
1
1
  import pc from "picocolors";
2
- //#region src/utils.ts
2
+ // src/utils.ts
3
3
  const logger = {
4
4
  info: (message) => console.log(`${pc.blue("ℹ")} ${message}`),
5
5
  success: (message) => console.log(`${pc.green("✓")} ${message}`),
@@ -22,7 +22,6 @@ function showBanner() {
22
22
  console.log(pc.bold(pc.green("Create FARMJS App")) + pc.dim(" the framework for the web and agents"));
23
23
  console.log("");
24
24
  }
25
- //#endregion
26
25
  export { logger, showBanner };
27
26
 
28
27
  //# sourceMappingURL=utils.mjs.map
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@farm.js/create-app",
3
- "version": "0.1.35",
3
+ "version": "0.1.37",
4
4
  "description": "Create a new FARMJS application",
5
5
  "keywords": [
6
6
  "@farm.js/create-app",
@@ -11,16 +11,16 @@
11
11
  "type-check": "tsc --noEmit"
12
12
  },
13
13
  "dependencies": {
14
- "@farm.js/core": "0.1.35",
15
- "@farm.js/preact": "0.1.0-beta.33",
14
+ "@farm.js/core": "0.1.37",
15
+ "@farm.js/preact": "0.1.0-beta.34",
16
16
  "@fontsource-variable/geist": "5.3.0",
17
17
  "@fontsource-variable/geist-mono": "5.3.0",
18
18
  "preact": "10.29.8",
19
- "zod": "4.1.12"
19
+ "zod": "4.6.7"
20
20
  },
21
21
  "devDependencies": {
22
- "@farm.js/cli": "0.1.35",
23
- "@farm.js/devtools": "0.1.35",
22
+ "@farm.js/cli": "0.1.37",
23
+ "@farm.js/devtools": "0.1.37",
24
24
  "@tailwindcss/vite": "^4.3.3",
25
25
  "tailwindcss": "^4.0.0",
26
26
  "typescript": "^5.3.3"
@@ -78,6 +78,14 @@ export default function HomePage() {
78
78
  .md, is listed in /llms.txt, and carries JSON-LD and Open Graph from your metadata.
79
79
  </p>
80
80
  </li>
81
+ <li>
82
+ <span>05</span>
83
+ <p>
84
+ <strong>Server functions.</strong> src/app/api/greeting/route.ts runs only on the
85
+ server. The button above calls it through a typed client, so a change to its input
86
+ or output shows up as a type error here.
87
+ </p>
88
+ </li>
81
89
  </ul>
82
90
 
83
91
  <ResourceLinks className="resource-links" />
@@ -10,16 +10,16 @@
10
10
  "type-check": "tsc --noEmit"
11
11
  },
12
12
  "dependencies": {
13
- "@farm.js/core": "0.1.35",
13
+ "@farm.js/core": "0.1.37",
14
14
  "@farm.js/solid": "0.1.0-beta.30",
15
15
  "@fontsource-variable/geist": "5.3.0",
16
16
  "@fontsource-variable/geist-mono": "5.3.0",
17
17
  "solid-js": "1.9.14",
18
- "zod": "4.1.12"
18
+ "zod": "4.6.7"
19
19
  },
20
20
  "devDependencies": {
21
- "@farm.js/cli": "0.1.35",
22
- "@farm.js/devtools": "0.1.35",
21
+ "@farm.js/cli": "0.1.37",
22
+ "@farm.js/devtools": "0.1.37",
23
23
  "@tailwindcss/vite": "^4.3.3",
24
24
  "tailwindcss": "^4.0.0",
25
25
  "typescript": "^5.3.3"
@@ -68,6 +68,14 @@ export default function HomePage() {
68
68
  .md, is listed in /llms.txt, and carries JSON-LD and Open Graph from your metadata.
69
69
  </p>
70
70
  </li>
71
+ <li>
72
+ <span>05</span>
73
+ <p>
74
+ <strong>Server functions.</strong> src/app/api/greeting/route.ts runs only on the
75
+ server. The button above calls it through a typed client, so a change to its input
76
+ or output shows up as a type error here.
77
+ </p>
78
+ </li>
71
79
  </ul>
72
80
 
73
81
  <ResourceLinks className="resource-links" />
@@ -11,16 +11,16 @@
11
11
  "type-check": "svelte-check --tsconfig ./tsconfig.json"
12
12
  },
13
13
  "dependencies": {
14
- "@farm.js/core": "0.1.35",
14
+ "@farm.js/core": "0.1.37",
15
15
  "@farm.js/svelte": "0.1.0-beta.34",
16
16
  "@fontsource-variable/geist": "5.3.0",
17
17
  "@fontsource-variable/geist-mono": "5.3.0",
18
18
  "svelte": "5.56.8",
19
- "zod": "4.1.12"
19
+ "zod": "4.6.7"
20
20
  },
21
21
  "devDependencies": {
22
- "@farm.js/cli": "0.1.35",
23
- "@farm.js/devtools": "0.1.35",
22
+ "@farm.js/cli": "0.1.37",
23
+ "@farm.js/devtools": "0.1.37",
24
24
  "@tailwindcss/vite": "^4.3.3",
25
25
  "svelte-check": "4.7.5",
26
26
  "tailwindcss": "^4.0.0",
@@ -71,6 +71,10 @@
71
71
  <span>04</span>
72
72
  <p><strong>Agent-ready.</strong> Every page also answers as Markdown at its URL plus .md, is listed in /llms.txt, and carries JSON-LD and Open Graph from your metadata.</p>
73
73
  </li>
74
+ <li>
75
+ <span>05</span>
76
+ <p><strong>Server functions.</strong> src/app/api/greeting/route.ts runs only on the server. The button above calls it through a typed client, so a change to its input or output shows up as a type error here.</p>
77
+ </li>
74
78
  </ul>
75
79
 
76
80
  <ResourceLinks class="resource-links" />
@@ -10,16 +10,16 @@
10
10
  "type-check": "vue-tsc --noEmit"
11
11
  },
12
12
  "dependencies": {
13
- "@farm.js/core": "0.1.35",
14
- "@farm.js/vue": "0.1.0-beta.32",
13
+ "@farm.js/core": "0.1.37",
14
+ "@farm.js/vue": "0.1.0-beta.33",
15
15
  "@fontsource-variable/geist": "5.3.0",
16
16
  "@fontsource-variable/geist-mono": "5.3.0",
17
- "vue": "3.5.41",
18
- "zod": "4.1.12"
17
+ "vue": "3.5.44",
18
+ "zod": "4.6.7"
19
19
  },
20
20
  "devDependencies": {
21
- "@farm.js/cli": "0.1.35",
22
- "@farm.js/devtools": "0.1.35",
21
+ "@farm.js/cli": "0.1.37",
22
+ "@farm.js/devtools": "0.1.37",
23
23
  "@tailwindcss/vite": "^4.3.3",
24
24
  "tailwindcss": "^4.0.0",
25
25
  "typescript": "^5.3.3",
@@ -82,6 +82,14 @@ async function callServer() {
82
82
  is listed in /llms.txt, and carries JSON-LD and Open Graph from your metadata.
83
83
  </p>
84
84
  </li>
85
+ <li>
86
+ <span>05</span>
87
+ <p>
88
+ <strong>Server functions.</strong> src/app/api/greeting/route.ts runs only on the
89
+ server. The button above calls it through a typed client, so a change to its input or
90
+ output shows up as a type error here.
91
+ </p>
92
+ </li>
85
93
  </ul>
86
94
 
87
95
  <ResourceLinks class="resource-links" />
@@ -1,4 +1,5 @@
1
- # FARMJS Auth needs no environment variables in local development.
1
+ # FARMJS Auth needs no environment variables in local development; it generates
2
+ # a random secret in .farm/auth-secret.
2
3
  # Configure these values in the production deployment environment.
3
4
 
4
5
  # FARM_AUTH_URL=https://your-app.example.com
@@ -27,7 +27,8 @@ pnpm dev
27
27
 
28
28
  Open [http://localhost:3000](http://localhost:3000), create an account, and continue to the
29
29
  protected dashboard. Local development needs no database or auth environment variables; FARMJS Auth
30
- creates and migrates `.farm/auth.sqlite` when auth is first used.
30
+ creates and migrates `.farm/auth.sqlite` and generates a random secret in `.farm/auth-secret` when auth
31
+ is first used.
31
32
 
32
33
  ## How it is wired
33
34
 
@@ -12,11 +12,11 @@
12
12
  "type-check": "tsc --noEmit"
13
13
  },
14
14
  "dependencies": {
15
- "@farm.js/auth": "0.1.35",
16
- "@farm.js/core": "0.1.35",
17
- "@farming-labs/docs": "0.2.127",
18
- "@farming-labs/farmjs": "0.2.127",
19
- "@farming-labs/theme": "0.2.127",
15
+ "@farm.js/auth": "0.1.37",
16
+ "@farm.js/core": "0.1.37",
17
+ "@farming-labs/docs": "0.2.130",
18
+ "@farming-labs/farmjs": "0.2.130",
19
+ "@farming-labs/theme": "0.2.130",
20
20
  "@fontsource-variable/geist": "5.3.0",
21
21
  "@fontsource-variable/geist-mono": "5.3.0",
22
22
  "better-call": "1.3.2",
@@ -24,8 +24,8 @@
24
24
  "react-dom": "^19.0.0"
25
25
  },
26
26
  "devDependencies": {
27
- "@farm.js/cli": "0.1.35",
28
- "@farm.js/devtools": "0.1.35",
27
+ "@farm.js/cli": "0.1.37",
28
+ "@farm.js/devtools": "0.1.37",
29
29
  "@tailwindcss/vite": "^4.3.3",
30
30
  "@types/node": "22.20.1",
31
31
  "@types/react": "^19.0.0",
@@ -10,18 +10,18 @@
10
10
  "type-check": "tsc --noEmit"
11
11
  },
12
12
  "dependencies": {
13
- "@farm.js/core": "0.1.35",
14
- "@farming-labs/docs": "0.2.127",
15
- "@farming-labs/farmjs": "0.2.127",
16
- "@farming-labs/theme": "0.2.127",
13
+ "@farm.js/core": "0.1.37",
14
+ "@farming-labs/docs": "0.2.130",
15
+ "@farming-labs/farmjs": "0.2.130",
16
+ "@farming-labs/theme": "0.2.130",
17
17
  "@fontsource-variable/geist": "5.3.0",
18
18
  "@fontsource-variable/geist-mono": "5.3.0",
19
19
  "react": "^19.0.0",
20
20
  "react-dom": "^19.0.0"
21
21
  },
22
22
  "devDependencies": {
23
- "@farm.js/cli": "0.1.35",
24
- "@farm.js/devtools": "0.1.35",
23
+ "@farm.js/cli": "0.1.37",
24
+ "@farm.js/devtools": "0.1.37",
25
25
  "@tailwindcss/vite": "^4.3.3",
26
26
  "@types/react": "^19.0.0",
27
27
  "@types/react-dom": "^19.0.0",
@@ -12,11 +12,11 @@
12
12
  "type-check": "tsc --noEmit"
13
13
  },
14
14
  "dependencies": {
15
- "@farm.js/better-auth": "0.1.35",
16
- "@farm.js/core": "0.1.35",
17
- "@farming-labs/docs": "0.2.127",
18
- "@farming-labs/farmjs": "0.2.127",
19
- "@farming-labs/theme": "0.2.127",
15
+ "@farm.js/better-auth": "0.1.37",
16
+ "@farm.js/core": "0.1.37",
17
+ "@farming-labs/docs": "0.2.130",
18
+ "@farming-labs/farmjs": "0.2.130",
19
+ "@farming-labs/theme": "0.2.130",
20
20
  "@fontsource-variable/geist": "5.3.0",
21
21
  "@fontsource-variable/geist-mono": "5.3.0",
22
22
  "better-auth": "1.6.25",
@@ -26,8 +26,8 @@
26
26
  "react-dom": "^19.0.0"
27
27
  },
28
28
  "devDependencies": {
29
- "@farm.js/cli": "0.1.35",
30
- "@farm.js/devtools": "0.1.35",
29
+ "@farm.js/cli": "0.1.37",
30
+ "@farm.js/devtools": "0.1.37",
31
31
  "@tailwindcss/vite": "^4.3.3",
32
32
  "@types/node": "22.20.1",
33
33
  "@types/pg": "8.20.0",
@@ -11,19 +11,19 @@
11
11
  "type-check": "tsc --noEmit"
12
12
  },
13
13
  "dependencies": {
14
- "@farm.js/core": "0.1.35",
15
- "@farm.js/react": "0.1.0-beta.30",
16
- "@farming-labs/docs": "0.2.127",
17
- "@farming-labs/farmjs": "0.2.127",
18
- "@farming-labs/theme": "0.2.127",
14
+ "@farm.js/core": "0.1.37",
15
+ "@farm.js/react": "0.1.0-beta.32",
16
+ "@farming-labs/docs": "0.2.130",
17
+ "@farming-labs/farmjs": "0.2.130",
18
+ "@farming-labs/theme": "0.2.130",
19
19
  "@fontsource-variable/geist": "5.3.0",
20
20
  "@fontsource-variable/geist-mono": "5.3.0",
21
21
  "react": "19.2.8",
22
22
  "react-dom": "19.2.8"
23
23
  },
24
24
  "devDependencies": {
25
- "@farm.js/cli": "0.1.35",
26
- "@farm.js/devtools": "0.1.35",
25
+ "@farm.js/cli": "0.1.37",
26
+ "@farm.js/devtools": "0.1.37",
27
27
  "@playwright/test": "^1.52.0",
28
28
  "@tailwindcss/vite": "^4.3.3",
29
29
  "@types/node": "22.20.1",