fimo 0.15.0 → 0.16.0-staging.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.
Files changed (31) hide show
  1. package/assets/content-templates/forms/react.eta +3 -3
  2. package/assets/skills/fimo-cli/SKILL.md +8 -8
  3. package/assets/skills/fimo-cli/references/account.md +1 -1
  4. package/assets/skills/fimo-cli/references/agents.md +9 -9
  5. package/assets/skills/fimo-cli/references/branches.md +38 -37
  6. package/assets/skills/fimo-cli/references/credits.md +1 -1
  7. package/assets/skills/fimo-cli/references/deploy.md +7 -7
  8. package/assets/skills/fimo-cli/references/history.md +13 -6
  9. package/assets/skills/fimo-cli/references/init.md +6 -2
  10. package/assets/skills/fimo-cli/references/locales.md +1 -1
  11. package/assets/skills/fimo-cli/references/mcp.md +8 -8
  12. package/assets/skills/fimo-cli/references/preview.md +8 -5
  13. package/assets/skills/fimo-cli/references/project-vars-and-secrets.md +1 -1
  14. package/assets/skills/fimo-cli/references/projects.md +3 -3
  15. package/assets/skills/fimo-cli/references/schedules.md +8 -5
  16. package/assets/skills/fimo-cli/references/support.md +1 -1
  17. package/assets/skills/fimo-cli/references/webhooks.md +8 -4
  18. package/assets/skills/fimo-code/SKILL.md +1 -0
  19. package/assets/skills/fimo-code/references/frameworks/compatibility.md +13 -8
  20. package/assets/skills/fimo-code/references/frameworks/hosting.md +23 -18
  21. package/assets/skills/fimo-studio/references/webhooks.md +2 -2
  22. package/dist/cli/bundle.json +1 -1
  23. package/dist/cli/index.js +43 -30
  24. package/dist/runtime/sveltekit/runtime.js +4 -1
  25. package/package.json +1 -1
  26. package/release.json +2 -2
  27. package/templates/astro/AGENTS.md +1 -0
  28. package/templates/nextjs/AGENTS.md +1 -0
  29. package/templates/react-router/AGENTS.md +1 -0
  30. package/templates/react-router/package.json +1 -1
  31. package/templates/sveltekit/AGENTS.md +1 -0
@@ -1,6 +1,9 @@
1
+ import { env as publicEnv } from '$env/dynamic/public';
1
2
  import { requireContentApiUrl } from '../content/client/runtime.js';
2
3
  function resolveApiUrl(apiUrl) {
3
- return apiUrl ?? (typeof process === 'undefined' ? undefined : process.env.PUBLIC_FIMO_API_URL);
4
+ return (apiUrl ??
5
+ publicEnv.PUBLIC_FIMO_API_URL ??
6
+ (typeof process === 'undefined' ? undefined : process.env.PUBLIC_FIMO_API_URL));
4
7
  }
5
8
  export function createSvelteKitContentRuntime(options) {
6
9
  const apiUrl = resolveApiUrl(options.apiUrl);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "fimo",
3
- "version": "0.15.0",
3
+ "version": "0.16.0-staging.2",
4
4
  "description": "Fimo CLI - create, deploy, and manage Fimo projects",
5
5
  "bin": {
6
6
  "fimo": "dist/cli/index.js"
package/release.json CHANGED
@@ -1,5 +1,5 @@
1
1
  {
2
2
  "source": "npm",
3
- "apiUrl": "https://api.fimo.ai",
4
- "webUrl": "https://fimo.ai"
3
+ "apiUrl": "https://api.staging.fimo.team",
4
+ "webUrl": "https://staging.fimo.team"
5
5
  }
@@ -31,6 +31,7 @@ a code-only task, or use `npx fimo@latest` for project-local code generation and
31
31
  - Use generated schema clients, `getLabels({ locale })`, and native components from `fimo/astro/components` for editable values.
32
32
  - Do not add React or a second deployment platform.
33
33
  - Never edit `.fimo/project.json`; it links this directory to the remote project.
34
+ - Keep `.fimo/config.json#runtime` true to the code: framework, `dev`/`build`/`install` commands, output directory. Update it when you rename a package script, move the build output, or change framework; the reference is `fimo skills get fimo-code --ref frameworks/hosting`.
34
35
  - Keep secrets in the Fimo dashboard, not committed environment files.
35
36
  - Pass flags to interactive Fimo commands when scripting them.
36
37
 
@@ -38,6 +38,7 @@ The scaffolded homepage is disposable. Replace it on the first real generation.
38
38
  - The application owns routes, locale resolution, links, HTML language/direction, and SEO. Fimo connects to those decisions.
39
39
  - Do not add a second deployment platform.
40
40
  - Never edit `.fimo/project.json`; it links this directory to the remote project.
41
+ - Keep `.fimo/config.json#runtime` true to the code: framework, `dev`/`build`/`install` commands, output directory. Update it when you rename a package script, move the build output, or change framework; the reference is `fimo skills get fimo-code --ref frameworks/hosting`.
41
42
  - Keep secrets in the Fimo dashboard, not in committed environment files.
42
43
  - Pass flags to interactive Fimo commands when scripting them.
43
44
 
@@ -42,6 +42,7 @@ breaks that. Load `fimo-code` for the exact primitives, but the rule is:
42
42
  - **Deploy is on-demand**, not a save step. Batch related edits into one deploy.
43
43
  - Do not add a second deploy tool (Vercel, Netlify, etc.).
44
44
  - **Never edit `.fimo/project.json`** — it links this folder to the remote project.
45
+ - **Keep `.fimo/config.json#runtime` true to the code** — framework, `dev`/`build`/`install` commands, output directory. Update it when you rename a package script, move the build output, or change framework; the reference is `fimo skills get fimo-code --ref frameworks/hosting`.
45
46
  - The scaffolded homepage is disposable starter content. Replace it on the first real generation.
46
47
  - **Secrets live in the Fimo dashboard**, not in a committed `.env`.
47
48
  - When scripting, pass flags to `fimo` commands (`fimo deploy -m "…"`, `fimo delete -y`) — bare interactive forms hang in non-TTY shells.
@@ -21,7 +21,7 @@
21
21
  "cmdk": "^1.1.1",
22
22
  "date-fns": "^4.1.0",
23
23
  "embla-carousel-react": "^8.6.0",
24
- "fimo": "0.15.0",
24
+ "fimo": "0.16.0-staging.2",
25
25
  "input-otp": "^1.4.2",
26
26
  "isbot": "^5",
27
27
  "lucide-react": "^0.577.0",
@@ -30,6 +30,7 @@ a code-only task, or use `npx fimo@latest` for project-local code generation and
30
30
  - The application owns routes, locale resolution, links, HTML language/direction, and SEO. Fimo connects to those decisions.
31
31
  - Do not add a second deployment platform.
32
32
  - Never edit `.fimo/project.json`; it links this directory to the remote project.
33
+ - Keep `.fimo/config.json#runtime` true to the code: framework, `dev`/`build`/`install` commands, output directory. Update it when you rename a package script, move the build output, or change framework; the reference is `fimo skills get fimo-code --ref frameworks/hosting`.
33
34
  - Keep secrets in the Fimo dashboard, not committed environment files.
34
35
  - Pass flags to interactive Fimo commands when scripting them.
35
36