fimo 0.15.0-staging.1 → 0.15.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 (46) hide show
  1. package/assets/skills/fimo/SKILL.md +11 -4
  2. package/assets/skills/fimo-cli/SKILL.md +28 -27
  3. package/assets/skills/fimo-cli/references/account.md +0 -2
  4. package/assets/skills/fimo-cli/references/agent-setup.md +7 -9
  5. package/assets/skills/fimo-cli/references/agents.md +0 -2
  6. package/assets/skills/fimo-cli/references/analytics.md +0 -2
  7. package/assets/skills/fimo-cli/references/assets.md +2 -4
  8. package/assets/skills/fimo-cli/references/branches.md +0 -2
  9. package/assets/skills/fimo-cli/references/content.md +9 -11
  10. package/assets/skills/fimo-cli/references/credits.md +0 -2
  11. package/assets/skills/fimo-cli/references/deploy.md +2 -4
  12. package/assets/skills/fimo-cli/references/describe.md +0 -2
  13. package/assets/skills/fimo-cli/references/domains.md +0 -2
  14. package/assets/skills/fimo-cli/references/forms.md +5 -7
  15. package/assets/skills/fimo-cli/references/history.md +0 -2
  16. package/assets/skills/fimo-cli/references/init.md +27 -19
  17. package/assets/skills/fimo-cli/references/integrations/firecrawl.md +0 -2
  18. package/assets/skills/fimo-cli/references/integrations.md +0 -2
  19. package/assets/skills/fimo-cli/references/invite.md +0 -2
  20. package/assets/skills/fimo-cli/references/labels.md +3 -5
  21. package/assets/skills/fimo-cli/references/locales.md +2 -4
  22. package/assets/skills/fimo-cli/references/mcp.md +2 -4
  23. package/assets/skills/fimo-cli/references/media.md +0 -2
  24. package/assets/skills/fimo-cli/references/preview.md +0 -2
  25. package/assets/skills/fimo-cli/references/project-vars-and-secrets.md +0 -2
  26. package/assets/skills/fimo-cli/references/projects.md +1 -3
  27. package/assets/skills/fimo-cli/references/schedules.md +0 -2
  28. package/assets/skills/fimo-cli/references/support.md +0 -2
  29. package/assets/skills/fimo-cli/references/webhooks.md +0 -2
  30. package/assets/skills/fimo-migration/SKILL.md +99 -146
  31. package/assets/skills/fimo-migration/references/frameworks/nextjs.md +26 -0
  32. package/assets/skills/fimo-migration/references/inventory/coordinator.md +40 -0
  33. package/assets/skills/fimo-migration/references/inventory/locales/next-intl.md +39 -0
  34. package/assets/skills/fimo-migration/references/inventory/locales.md +41 -0
  35. package/assets/skills/fimo-migration/references/workflow.md +3 -2
  36. package/assets/skills/fimo-migration/scripts/inventory/locales/next-intl.mjs +459 -0
  37. package/assets/skills/fimo-studio/SKILL.md +1 -1
  38. package/assets/skills/fimo-studio/references/project-creation.md +10 -18
  39. package/dist/build/astro/config.js +20 -1
  40. package/dist/cli/bundle.json +1 -1
  41. package/dist/cli/index.js +72 -66
  42. package/package.json +2 -1
  43. package/templates/nextjs/AGENTS.md +10 -5
  44. package/templates/react-router/AGENTS.md +4 -3
  45. package/templates/react-router/package.json +1 -1
  46. package/templates/sveltekit/AGENTS.md +24 -4
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "fimo",
3
- "version": "0.15.0-staging.1",
3
+ "version": "0.15.0-staging.2",
4
4
  "description": "Fimo CLI - create, deploy, and manage Fimo projects",
5
5
  "bin": {
6
6
  "fimo": "dist/cli/index.js"
@@ -122,6 +122,7 @@
122
122
  "postinstall": "node scripts/postinstall.mjs",
123
123
  "test": "vitest run",
124
124
  "test:integration:astro": "vitest run --config vitest.integration.config.ts test/integration/astro-runtime.test.ts",
125
+ "test:integration:astro-compat": "vitest run --config vitest.integration.config.ts test/integration/astro-compat.test.ts",
125
126
  "test:integration:frameworks": "vitest run --config vitest.integration.config.ts",
126
127
  "test:integration:next": "vitest run --config vitest.integration.config.ts test/integration/next-runtime.test.ts",
127
128
  "test:integration:sveltekit": "vitest run --config vitest.integration.config.ts test/integration/sveltekit-runtime.test.ts",
@@ -4,14 +4,18 @@ This is a Fimo project. Fimo connects content, media, forms, analytics, editing,
4
4
 
5
5
  ## Load the Fimo skills before doing Fimo work
6
6
 
7
- Load only the skill relevant to the task:
7
+ Before writing schema-driven code, running CLI/deploy workflows, or migrating content, load only the
8
+ skill relevant to the task. During onboarding, preserve the exact CLI invocation prefix from the
9
+ initiating prompt for every operational command; otherwise default to `npx fimo@latest`:
8
10
 
9
11
  ```bash
10
- pnpm exec fimo skills get fimo-code # code and framework APIs from this project runtime
11
- npx fimo@latest skills get fimo-cli # operational workflows: push, deploy, labels, domains
12
+ pnpm exec fimo skills get fimo-code # match the lockfile; code + framework APIs come from this project runtime
13
+ npx fimo@latest skills get fimo-cli # default prefix; keep the onboarding prefix when one was supplied
12
14
  ```
13
15
 
14
- Use the command that matches the project lockfile. Add `--ref <doc>` for one reference at a time. For Next.js code, start with `fimo-code --ref frameworks/next`, then load the App Router, Pages Router, or locale reference only when needed.
16
+ Use `npm exec fimo`, `yarn fimo`, or `bunx --no-install fimo` instead of `pnpm exec fimo` when that
17
+ matches the project lockfile. Add `--ref <doc>` for one reference at a time. Do not load `fimo-cli` for
18
+ a code-only task, or use `npx fimo@latest` for project-local code generation and validation.
15
19
 
16
20
  ## Never hardcode editable values
17
21
 
@@ -26,10 +30,11 @@ The scaffolded homepage is disposable. Replace it on the first real generation.
26
30
 
27
31
  1. Start the application with the project package manager (`pnpm dev`, `npm run dev`, `yarn dev`, or `bun dev`).
28
32
  2. Build and verify against the local server.
29
- 3. Offer `fimo deploy` for a hosted preview or `fimo deploy --publish` to go live. Deploy only after the developer confirms.
33
+ 3. When a unit of work is done, **offer** to deploy: `fimo deploy` for a hosted preview / shareable link, or `fimo deploy --publish` to go live. Deploy on the developer's request or confirmation. The one exception: new-project onboarding creates a single first hosted preview automatically unless the developer said not to deploy. Never publish without an explicit request.
30
34
 
31
35
  ## Project rules
32
36
 
37
+ - **Deploy is on-demand**, not a save step. Batch related edits into one deploy.
33
38
  - The application owns routes, locale resolution, links, HTML language/direction, and SEO. Fimo connects to those decisions.
34
39
  - Do not add a second deployment platform.
35
40
  - Never edit `.fimo/project.json`; it links this directory to the remote project.
@@ -9,11 +9,12 @@ When asked to create or manage an agent in this project, use Fimo's agent workfl
9
9
  ## Load the Fimo skills before doing Fimo work
10
10
 
11
11
  Before writing schema-driven code, running CLI/deploy workflows, or migrating content, load only the
12
- skill relevant to the task:
12
+ skill relevant to the task. During onboarding, preserve the exact CLI invocation prefix from the
13
+ initiating prompt for every operational command; otherwise default to `npx fimo@latest`:
13
14
 
14
15
  ```bash
15
16
  pnpm exec fimo skills get fimo-code # match the lockfile; code + framework APIs come from this project runtime
16
- npx fimo@latest skills get fimo-cli # operational workflows: push, deploy, labels, domains
17
+ npx fimo@latest skills get fimo-cli # default prefix; keep the onboarding prefix when one was supplied
17
18
  ```
18
19
 
19
20
  Use `npm exec fimo`, `yarn fimo`, or `bunx --no-install fimo` instead of `pnpm exec fimo` when that
@@ -34,7 +35,7 @@ breaks that. Load `fimo-code` for the exact primitives, but the rule is:
34
35
 
35
36
  1. Start the dev server with the project's package manager (`pnpm dev`, `npm run dev`, …) — live reload on localhost.
36
37
  2. Make edits; the running server shows them instantly. No deploy needed to see local changes.
37
- 3. When a unit of work is done, **offer** to deploy: `fimo deploy` for a hosted preview / shareable link, or `fimo deploy --publish` to go live. Only after the developer confirms — never deploy on your own.
38
+ 3. When a unit of work is done, **offer** to deploy: `fimo deploy` for a hosted preview / shareable link, or `fimo deploy --publish` to go live. Deploy on the developer's request or confirmation. The one exception: new-project onboarding creates a single first hosted preview automatically unless the developer said not to deploy. Never publish without an explicit request.
38
39
 
39
40
  ## Project rules
40
41
 
@@ -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-staging.1",
24
+ "fimo": "0.15.0-staging.2",
25
25
  "input-otp": "^1.4.2",
26
26
  "isbot": "^5",
27
27
  "lucide-react": "^0.577.0",
@@ -2,15 +2,35 @@
2
2
 
3
3
  This SvelteKit application is connected to Fimo for content, editing, environments, and hosting.
4
4
 
5
- ## Load Fimo guidance before changing Fimo code
5
+ ## Load the Fimo skills before doing Fimo work
6
+
7
+ Before writing schema-driven code, running CLI/deploy workflows, or migrating content, load only the
8
+ skill relevant to the task. During onboarding, preserve the exact CLI invocation prefix from the
9
+ initiating prompt for every operational command; otherwise default to `npx fimo@latest`:
6
10
 
7
11
  ```bash
8
12
  pnpm exec fimo skills get fimo-code
9
13
  pnpm exec fimo skills get fimo-code --ref frameworks/sveltekit
14
+ npx fimo@latest skills get fimo-cli
10
15
  ```
11
16
 
12
- Load only the additional task reference you need. The SvelteKit reference owns the framework API and setup rules.
17
+ Use `npm exec fimo`, `yarn fimo`, or `bunx --no-install fimo` instead of `pnpm exec fimo` when that
18
+ matches the project lockfile. Add `--ref <doc>` for one reference at a time. Do not load `fimo-cli` for
19
+ a code-only task, or use `npx fimo@latest` for project-local code generation and validation.
20
+
21
+ ## Development loop
22
+
23
+ 1. Start the application with the project package manager (`pnpm dev`, `npm run dev`, `yarn dev`, or `bun dev`).
24
+ 2. Build and verify against the local server.
25
+ 3. When a unit of work is done, **offer** to deploy: `fimo deploy` for a hosted preview / shareable link, or `fimo deploy --publish` to go live. Deploy on the developer's request or confirmation. The one exception: new-project onboarding creates a single first hosted preview automatically unless the developer said not to deploy. Never publish without an explicit request.
26
+
27
+ ## Project rules
13
28
 
14
- The scaffolded homepage is disposable. Replace it when building the requested site. The application owns routes, locale resolution, links, HTML language and direction, and SEO.
29
+ - **Deploy is on-demand**, not a save step. Batch related edits into one deploy.
30
+ - The application owns routes, locale resolution, links, HTML language/direction, and SEO. Fimo connects to those decisions.
31
+ - Do not add a second deployment platform.
32
+ - Never edit `.fimo/project.json`; it links this directory to the remote project.
33
+ - Keep secrets in the Fimo dashboard, not committed environment files.
34
+ - Pass flags to interactive Fimo commands when scripting them.
15
35
 
16
- Never edit `.fimo/project.json`; it links this directory to its Fimo project. Keep secrets in Fimo, not committed environment files. Offer `fimo deploy` only when the developer wants a hosted preview or publication.
36
+ The scaffolded homepage is disposable. Replace it when building the requested site.