fimo 2.11.0-staging.4 → 2.11.0-staging.6
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/assets/skills/fimo-cli/SKILL.studio.md +1 -1
- package/assets/skills/fimo-cli/references/domains.md +1 -1
- package/assets/skills/fimo-cli/references/preview.md +7 -0
- package/assets/skills/fimo-code/references/content/richtext.md +2 -0
- package/assets/skills/fimo-code/references/frameworks/seo-head.md +7 -2
- package/assets/skills/fimo-studio/references/ai-chat/agents.md +4 -0
- package/assets/skills/fimo-studio/references/ai-chat/default-agents.md +1 -1
- package/assets/skills/fimo-studio/references/ai-chat.md +2 -1
- package/assets/skills/fimo-studio/references/knowledge.md +1 -1
- package/assets/skills/fimo-studio/references/seo-settings.md +1 -1
- package/dist/cli/bundle.json +1 -1
- package/dist/cli/index.js +23 -20
- package/dist/runtime/seo/resolver.d.ts +4 -3
- package/dist/runtime/seo/resolver.js +7 -3
- package/package.json +8 -8
- package/templates/astro/package.json +4 -3
- package/templates/nextjs/package.json +4 -4
- package/templates/react-router/package.json +5 -5
- package/templates/sveltekit/package.json +3 -3
- package/templates/vite/package.json +5 -5
|
@@ -11,7 +11,7 @@ import type { FimoRouteConfig, FimoSEO, RouteSEO } from '../shared/fimo-config.t
|
|
|
11
11
|
* - the Vite SEO plugin (`vite/plugin-seo`)
|
|
12
12
|
*
|
|
13
13
|
* The resolver does not read files or mutate HTML. The one outside input it reads
|
|
14
|
-
* is the platform's `FIMO_SITE_URL`,
|
|
14
|
+
* is the platform's `FIMO_SITE_URL`, the site's address when `seo.url` is not set.
|
|
15
15
|
* Instead, it focuses only on the decision logic:
|
|
16
16
|
* - normalize the incoming pathname
|
|
17
17
|
* - find the best matching route config
|
|
@@ -29,9 +29,10 @@ import type { FimoRouteConfig, FimoSEO, RouteSEO } from '../shared/fimo-config.t
|
|
|
29
29
|
*/
|
|
30
30
|
export declare const SEO_FIELD_KEYS: readonly ["title", "description", "siteName", "url", "image", "favicon", "twitterSite", "robots", "themeColor", "locale"];
|
|
31
31
|
/**
|
|
32
|
-
* The site's address: what the platform sets in `FIMO_SITE_URL
|
|
32
|
+
* The site's address: the `seo.url` the owner set, else what the platform sets in `FIMO_SITE_URL`
|
|
33
|
+
* (the primary domain, else the built-in address).
|
|
33
34
|
* A browser has no `process`; Vite builds pass the address through `virtual:fimo-config`.
|
|
34
|
-
*
|
|
35
|
+
* A value in the variable that is not an http(s) URL is ignored.
|
|
35
36
|
*/
|
|
36
37
|
export declare function resolveSiteUrl(configuredUrl?: string): string | undefined;
|
|
37
38
|
export declare function withSiteUrl(seo?: FimoSEO): FimoSEO | undefined;
|
|
@@ -11,7 +11,7 @@ import { matchFimoRoute } from '../routes/index.js';
|
|
|
11
11
|
* - the Vite SEO plugin (`vite/plugin-seo`)
|
|
12
12
|
*
|
|
13
13
|
* The resolver does not read files or mutate HTML. The one outside input it reads
|
|
14
|
-
* is the platform's `FIMO_SITE_URL`,
|
|
14
|
+
* is the platform's `FIMO_SITE_URL`, the site's address when `seo.url` is not set.
|
|
15
15
|
* Instead, it focuses only on the decision logic:
|
|
16
16
|
* - normalize the incoming pathname
|
|
17
17
|
* - find the best matching route config
|
|
@@ -40,11 +40,15 @@ export const SEO_FIELD_KEYS = [
|
|
|
40
40
|
'locale',
|
|
41
41
|
];
|
|
42
42
|
/**
|
|
43
|
-
* The site's address: what the platform sets in `FIMO_SITE_URL
|
|
43
|
+
* The site's address: the `seo.url` the owner set, else what the platform sets in `FIMO_SITE_URL`
|
|
44
|
+
* (the primary domain, else the built-in address).
|
|
44
45
|
* A browser has no `process`; Vite builds pass the address through `virtual:fimo-config`.
|
|
45
|
-
*
|
|
46
|
+
* A value in the variable that is not an http(s) URL is ignored.
|
|
46
47
|
*/
|
|
47
48
|
export function resolveSiteUrl(configuredUrl) {
|
|
49
|
+
if (configuredUrl?.trim()) {
|
|
50
|
+
return configuredUrl;
|
|
51
|
+
}
|
|
48
52
|
const value = globalThis.process?.env?.FIMO_SITE_URL?.trim();
|
|
49
53
|
return value && /^https?:\/\//i.test(value) && URL.canParse(value) ? value : configuredUrl;
|
|
50
54
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "fimo",
|
|
3
|
-
"version": "2.11.0-staging.
|
|
3
|
+
"version": "2.11.0-staging.6",
|
|
4
4
|
"description": "CLI for Fimo, the website platform for sites built with coding agents: CMS, previews, site agents, and hosting. Create, deploy, and manage Fimo sites.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"ai-agents",
|
|
@@ -202,13 +202,13 @@
|
|
|
202
202
|
"devDependencies": {
|
|
203
203
|
"@clack/core": "^1.5.1",
|
|
204
204
|
"@clack/prompts": "^1.8.1",
|
|
205
|
-
"@fimo/agents-bundle": "2.11.0-staging.
|
|
206
|
-
"@fimo/api-contracts": "2.11.0-staging.
|
|
207
|
-
"@fimo/cli-kit": "2.11.0-staging.
|
|
208
|
-
"@fimo/framework-detect": "2.11.0-staging.
|
|
209
|
-
"@fimo/routes": "2.11.0-staging.
|
|
210
|
-
"@fimo/sdk": "2.11.0-staging.
|
|
211
|
-
"@fimo/tsconfig": "2.11.0-staging.
|
|
205
|
+
"@fimo/agents-bundle": "2.11.0-staging.6",
|
|
206
|
+
"@fimo/api-contracts": "2.11.0-staging.6",
|
|
207
|
+
"@fimo/cli-kit": "2.11.0-staging.6",
|
|
208
|
+
"@fimo/framework-detect": "2.11.0-staging.6",
|
|
209
|
+
"@fimo/routes": "2.11.0-staging.6",
|
|
210
|
+
"@fimo/sdk": "2.11.0-staging.6",
|
|
211
|
+
"@fimo/tsconfig": "2.11.0-staging.6",
|
|
212
212
|
"@types/node": "22.18.6",
|
|
213
213
|
"agent-install": "^0.0.5",
|
|
214
214
|
"astro": "^7.4.5",
|
|
@@ -9,13 +9,14 @@
|
|
|
9
9
|
"check": "astro sync && astro check"
|
|
10
10
|
},
|
|
11
11
|
"dependencies": {
|
|
12
|
-
"fimo": "2.11.0-staging.
|
|
13
|
-
"fimo-analytics": "2.11.0-staging.
|
|
14
|
-
"fimo-astro": "2.11.0-staging.
|
|
12
|
+
"fimo": "2.11.0-staging.6",
|
|
13
|
+
"fimo-analytics": "2.11.0-staging.6",
|
|
14
|
+
"fimo-astro": "2.11.0-staging.6",
|
|
15
15
|
"zod": "^4.4.3"
|
|
16
16
|
},
|
|
17
17
|
"devDependencies": {
|
|
18
18
|
"@astrojs/check": "^0.9.10",
|
|
19
|
+
"@emnapi/runtime": "^1.11.3",
|
|
19
20
|
"astro": "^7.1.6",
|
|
20
21
|
"typescript": "^6.0.3"
|
|
21
22
|
},
|
|
@@ -12,10 +12,10 @@
|
|
|
12
12
|
},
|
|
13
13
|
"dependencies": {
|
|
14
14
|
"@tanstack/react-query": "^5.80.6",
|
|
15
|
-
"fimo": "2.11.0-staging.
|
|
16
|
-
"fimo-analytics": "2.11.0-staging.
|
|
17
|
-
"fimo-next": "2.11.0-staging.
|
|
18
|
-
"fimo-react": "2.11.0-staging.
|
|
15
|
+
"fimo": "2.11.0-staging.6",
|
|
16
|
+
"fimo-analytics": "2.11.0-staging.6",
|
|
17
|
+
"fimo-next": "2.11.0-staging.6",
|
|
18
|
+
"fimo-react": "2.11.0-staging.6",
|
|
19
19
|
"next": "16.4.2",
|
|
20
20
|
"react": "^19.2.7",
|
|
21
21
|
"react-dom": "^19.2.7",
|
|
@@ -21,11 +21,11 @@
|
|
|
21
21
|
"cn": "0.2.4",
|
|
22
22
|
"date-fns": "^4.1.0",
|
|
23
23
|
"embla-carousel-react": "^8.6.0",
|
|
24
|
-
"fimo": "2.11.0-staging.
|
|
25
|
-
"fimo-analytics": "2.11.0-staging.
|
|
26
|
-
"fimo-react": "2.11.0-staging.
|
|
27
|
-
"fimo-react-router": "2.11.0-staging.
|
|
28
|
-
"fimo-vite": "2.11.0-staging.
|
|
24
|
+
"fimo": "2.11.0-staging.6",
|
|
25
|
+
"fimo-analytics": "2.11.0-staging.6",
|
|
26
|
+
"fimo-react": "2.11.0-staging.6",
|
|
27
|
+
"fimo-react-router": "2.11.0-staging.6",
|
|
28
|
+
"fimo-vite": "2.11.0-staging.6",
|
|
29
29
|
"input-otp": "^1.4.2",
|
|
30
30
|
"isbot": "^5",
|
|
31
31
|
"lucide-react": "^0.577.0",
|
|
@@ -11,9 +11,9 @@
|
|
|
11
11
|
"prepare": "svelte-kit sync"
|
|
12
12
|
},
|
|
13
13
|
"dependencies": {
|
|
14
|
-
"fimo": "2.11.0-staging.
|
|
15
|
-
"fimo-analytics": "2.11.0-staging.
|
|
16
|
-
"fimo-sveltekit": "2.11.0-staging.
|
|
14
|
+
"fimo": "2.11.0-staging.6",
|
|
15
|
+
"fimo-analytics": "2.11.0-staging.6",
|
|
16
|
+
"fimo-sveltekit": "2.11.0-staging.6",
|
|
17
17
|
"zod": "^4.4.3"
|
|
18
18
|
},
|
|
19
19
|
"devDependencies": {
|
|
@@ -11,11 +11,11 @@
|
|
|
11
11
|
},
|
|
12
12
|
"dependencies": {
|
|
13
13
|
"@tanstack/react-query": "^5.80.6",
|
|
14
|
-
"fimo": "2.11.0-staging.
|
|
15
|
-
"fimo-analytics": "2.11.0-staging.
|
|
16
|
-
"fimo-react": "2.11.0-staging.
|
|
17
|
-
"fimo-react-router": "2.11.0-staging.
|
|
18
|
-
"fimo-vite": "2.11.0-staging.
|
|
14
|
+
"fimo": "2.11.0-staging.6",
|
|
15
|
+
"fimo-analytics": "2.11.0-staging.6",
|
|
16
|
+
"fimo-react": "2.11.0-staging.6",
|
|
17
|
+
"fimo-react-router": "2.11.0-staging.6",
|
|
18
|
+
"fimo-vite": "2.11.0-staging.6",
|
|
19
19
|
"react": "^19.2.7",
|
|
20
20
|
"react-dom": "^19.2.7",
|
|
21
21
|
"react-router": "^8.3.0",
|