fimo 2.5.0-staging.3 → 2.5.0
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-studio/references/publish-and-deploy.md +3 -4
- package/dist/cli/bundle.json +2 -2
- package/dist/cli/index.js +2 -2
- package/dist/runtime/templates.d.ts +17 -0
- package/dist/runtime/templates.js +33 -0
- package/package.json +8 -8
- package/release.json +2 -2
- package/templates/astro/.fimo/config.json +2 -1
- package/templates/astro/package.json +2 -2
- package/templates/nextjs/.fimo/config.json +2 -1
- package/templates/nextjs/package.json +3 -3
- package/templates/react-router/.fimo/config.json +2 -1
- package/templates/react-router/package.json +4 -4
- package/templates/sveltekit/.fimo/config.json +2 -1
- package/templates/sveltekit/package.json +2 -2
- package/templates/vite/.fimo/config.json +2 -1
- package/templates/vite/package.json +4 -4
- package/templates/welcome/template/.fimo/config.json +2 -1
|
@@ -13,6 +13,23 @@ export declare const DEFAULT_TEMPLATE: TemplateFramework;
|
|
|
13
13
|
*/
|
|
14
14
|
export declare function getTemplatePath(framework?: TemplateFramework): string;
|
|
15
15
|
export declare function getWelcomeTemplatePath(): string;
|
|
16
|
+
/**
|
|
17
|
+
* Absolute path to the legacy template at `apps/api/templates/default/`.
|
|
18
|
+
*
|
|
19
|
+
* Only used by the API's `updateConfigs()` path to refresh legacy
|
|
20
|
+
* `source: 'app'` projects' `.fimo/` tree. New projects (any provenance)
|
|
21
|
+
* are on the new shape and short-circuit `updateConfigs` via the version
|
|
22
|
+
* gate; this resolver is never read for them.
|
|
23
|
+
*
|
|
24
|
+
* IMPORTANT — workspace + Docker prune ONLY. The legacy directory lives at
|
|
25
|
+
* `apps/api/templates/default/`, not inside the fimo package itself. This
|
|
26
|
+
* resolver assumes the API and CLI live as siblings under `apps/` — true
|
|
27
|
+
* in the monorepo AND in the API's Docker image (turbo prune carries both).
|
|
28
|
+
* If we ever publish fimo to npm + run the API outside the workspace, this
|
|
29
|
+
* function would resolve to a non-existent path. Acceptable today: the API
|
|
30
|
+
* is only ever deployed via Docker prune.
|
|
31
|
+
*/
|
|
32
|
+
export declare function getLegacyTemplateDir(): string;
|
|
16
33
|
export interface ReleaseMeta {
|
|
17
34
|
source: 'npm' | 'url' | 'dev' | null;
|
|
18
35
|
/** Immutable artifact URL, baked into `source: 'url'` development tarballs. */
|
|
@@ -3,6 +3,16 @@
|
|
|
3
3
|
// Resolves on-disk paths to template directories that consumers (the CLI
|
|
4
4
|
// itself, the API's project provisioning code) read at runtime.
|
|
5
5
|
//
|
|
6
|
+
// Why two resolvers:
|
|
7
|
+
// - getTemplatePath(framework) returns the NEW canonical template
|
|
8
|
+
// bundled with this package (at `apps/cli/templates/<framework>/` in
|
|
9
|
+
// the workspace; `node_modules/fimo/templates/<framework>/` once
|
|
10
|
+
// installed).
|
|
11
|
+
// - getLegacyTemplateDir() returns the OLD template at
|
|
12
|
+
// `apps/api/templates/default/`. Used ONLY by the API's
|
|
13
|
+
// `updateConfigs()` path for legacy `source: 'app'` projects on a
|
|
14
|
+
// pre-v4 shape. Will be removed when the legacy template sunsets.
|
|
15
|
+
//
|
|
6
16
|
// PATH RESOLUTION — DO NOT SWAP THIS FOR A RELATIVE PATH.
|
|
7
17
|
// Anchored on `import.meta.url` so it works regardless of how the consumer
|
|
8
18
|
// is packaged or bundled. A `path.join(__dirname, '../templates')` looks
|
|
@@ -35,6 +45,29 @@ export function getTemplatePath(framework = DEFAULT_TEMPLATE) {
|
|
|
35
45
|
export function getWelcomeTemplatePath() {
|
|
36
46
|
return path.resolve(PACKAGE_ROOT, 'templates', 'welcome');
|
|
37
47
|
}
|
|
48
|
+
/**
|
|
49
|
+
* Absolute path to the legacy template at `apps/api/templates/default/`.
|
|
50
|
+
*
|
|
51
|
+
* Only used by the API's `updateConfigs()` path to refresh legacy
|
|
52
|
+
* `source: 'app'` projects' `.fimo/` tree. New projects (any provenance)
|
|
53
|
+
* are on the new shape and short-circuit `updateConfigs` via the version
|
|
54
|
+
* gate; this resolver is never read for them.
|
|
55
|
+
*
|
|
56
|
+
* IMPORTANT — workspace + Docker prune ONLY. The legacy directory lives at
|
|
57
|
+
* `apps/api/templates/default/`, not inside the fimo package itself. This
|
|
58
|
+
* resolver assumes the API and CLI live as siblings under `apps/` — true
|
|
59
|
+
* in the monorepo AND in the API's Docker image (turbo prune carries both).
|
|
60
|
+
* If we ever publish fimo to npm + run the API outside the workspace, this
|
|
61
|
+
* function would resolve to a non-existent path. Acceptable today: the API
|
|
62
|
+
* is only ever deployed via Docker prune.
|
|
63
|
+
*/
|
|
64
|
+
export function getLegacyTemplateDir() {
|
|
65
|
+
// From apps/cli/dist/runtime/templates.js:
|
|
66
|
+
// ../../ → apps/cli
|
|
67
|
+
// ../../../ → apps
|
|
68
|
+
// ../../../api/templates/default → apps/api/templates/default
|
|
69
|
+
return path.resolve(PACKAGE_ROOT, '..', 'api', 'templates', 'default');
|
|
70
|
+
}
|
|
38
71
|
export function readReleaseMeta() {
|
|
39
72
|
try {
|
|
40
73
|
const raw = fs.readFileSync(RELEASE_FILE, 'utf8');
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "fimo",
|
|
3
|
-
"version": "2.5.0
|
|
3
|
+
"version": "2.5.0",
|
|
4
4
|
"description": "Fimo CLI - create, deploy, and manage Fimo projects",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"astro-component"
|
|
@@ -193,13 +193,13 @@
|
|
|
193
193
|
"devDependencies": {
|
|
194
194
|
"@clack/core": "^1.2.0",
|
|
195
195
|
"@clack/prompts": "^1.2.0",
|
|
196
|
-
"@fimo/agents-bundle": "2.5.0
|
|
197
|
-
"@fimo/api-contracts": "2.5.0
|
|
198
|
-
"@fimo/cli-kit": "2.5.0
|
|
199
|
-
"@fimo/framework-detect": "2.5.0
|
|
200
|
-
"@fimo/routes": "2.5.0
|
|
201
|
-
"@fimo/sdk": "2.5.0
|
|
202
|
-
"@fimo/tsconfig": "2.5.0
|
|
196
|
+
"@fimo/agents-bundle": "2.5.0",
|
|
197
|
+
"@fimo/api-contracts": "2.5.0",
|
|
198
|
+
"@fimo/cli-kit": "2.5.0",
|
|
199
|
+
"@fimo/framework-detect": "2.5.0",
|
|
200
|
+
"@fimo/routes": "2.5.0",
|
|
201
|
+
"@fimo/sdk": "2.5.0",
|
|
202
|
+
"@fimo/tsconfig": "2.5.0",
|
|
203
203
|
"@types/node": "22.18.6",
|
|
204
204
|
"agent-install": "^0.0.5",
|
|
205
205
|
"astro": "^7.1.6",
|
package/release.json
CHANGED
|
@@ -12,9 +12,9 @@
|
|
|
12
12
|
},
|
|
13
13
|
"dependencies": {
|
|
14
14
|
"@tanstack/react-query": "^5.80.6",
|
|
15
|
-
"fimo": "2.5.0
|
|
16
|
-
"fimo-next": "2.5.0
|
|
17
|
-
"fimo-react": "2.5.0
|
|
15
|
+
"fimo": "2.5.0",
|
|
16
|
+
"fimo-next": "2.5.0",
|
|
17
|
+
"fimo-react": "2.5.0",
|
|
18
18
|
"next": "^16.3.3",
|
|
19
19
|
"react": "^19.2.7",
|
|
20
20
|
"react-dom": "^19.2.7"
|
|
@@ -21,10 +21,10 @@
|
|
|
21
21
|
"cn": "0.2.4",
|
|
22
22
|
"date-fns": "^4.1.0",
|
|
23
23
|
"embla-carousel-react": "^8.6.0",
|
|
24
|
-
"fimo": "2.5.0
|
|
25
|
-
"fimo-react": "2.5.0
|
|
26
|
-
"fimo-react-router": "2.5.0
|
|
27
|
-
"fimo-vite": "2.5.0
|
|
24
|
+
"fimo": "2.5.0",
|
|
25
|
+
"fimo-react": "2.5.0",
|
|
26
|
+
"fimo-react-router": "2.5.0",
|
|
27
|
+
"fimo-vite": "2.5.0",
|
|
28
28
|
"input-otp": "^1.4.2",
|
|
29
29
|
"isbot": "^5",
|
|
30
30
|
"lucide-react": "^0.577.0",
|
|
@@ -11,10 +11,10 @@
|
|
|
11
11
|
},
|
|
12
12
|
"dependencies": {
|
|
13
13
|
"@tanstack/react-query": "^5.80.6",
|
|
14
|
-
"fimo": "2.5.0
|
|
15
|
-
"fimo-react": "2.5.0
|
|
16
|
-
"fimo-react-router": "2.5.0
|
|
17
|
-
"fimo-vite": "2.5.0
|
|
14
|
+
"fimo": "2.5.0",
|
|
15
|
+
"fimo-react": "2.5.0",
|
|
16
|
+
"fimo-react-router": "2.5.0",
|
|
17
|
+
"fimo-vite": "2.5.0",
|
|
18
18
|
"react": "^19.2.7",
|
|
19
19
|
"react-dom": "^19.2.7",
|
|
20
20
|
"react-router": "^8.3.0"
|