fimo 2.5.0 → 2.5.1-staging.1

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.
@@ -13,23 +13,6 @@ 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;
33
16
  export interface ReleaseMeta {
34
17
  source: 'npm' | 'url' | 'dev' | null;
35
18
  /** Immutable artifact URL, baked into `source: 'url'` development tarballs. */
@@ -3,16 +3,6 @@
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
- //
16
6
  // PATH RESOLUTION — DO NOT SWAP THIS FOR A RELATIVE PATH.
17
7
  // Anchored on `import.meta.url` so it works regardless of how the consumer
18
8
  // is packaged or bundled. A `path.join(__dirname, '../templates')` looks
@@ -45,29 +35,6 @@ export function getTemplatePath(framework = DEFAULT_TEMPLATE) {
45
35
  export function getWelcomeTemplatePath() {
46
36
  return path.resolve(PACKAGE_ROOT, 'templates', 'welcome');
47
37
  }
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
- }
71
38
  export function readReleaseMeta() {
72
39
  try {
73
40
  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.1-staging.1",
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.1-staging.1",
197
+ "@fimo/api-contracts": "2.5.1-staging.1",
198
+ "@fimo/cli-kit": "2.5.1-staging.1",
199
+ "@fimo/framework-detect": "2.5.1-staging.1",
200
+ "@fimo/routes": "2.5.1-staging.1",
201
+ "@fimo/sdk": "2.5.1-staging.1",
202
+ "@fimo/tsconfig": "2.5.1-staging.1",
203
203
  "@types/node": "22.18.6",
204
204
  "agent-install": "^0.0.5",
205
205
  "astro": "^7.1.6",
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
  }
@@ -25,6 +25,5 @@
25
25
  }
26
26
  }
27
27
  },
28
- "version": "4",
29
- "source": "cli"
28
+ "version": "4"
30
29
  }
@@ -9,8 +9,8 @@
9
9
  "check": "astro sync && astro check"
10
10
  },
11
11
  "dependencies": {
12
- "fimo": "2.5.0",
13
- "fimo-astro": "2.5.0"
12
+ "fimo": "2.5.1-staging.1",
13
+ "fimo-astro": "2.5.1-staging.1"
14
14
  },
15
15
  "devDependencies": {
16
16
  "@astrojs/check": "^0.9.10",
@@ -10,6 +10,5 @@
10
10
  "path": "/"
11
11
  }
12
12
  },
13
- "version": "4",
14
- "source": "cli"
13
+ "version": "4"
15
14
  }
@@ -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.1-staging.1",
16
+ "fimo-next": "2.5.1-staging.1",
17
+ "fimo-react": "2.5.1-staging.1",
18
18
  "next": "^16.3.3",
19
19
  "react": "^19.2.7",
20
20
  "react-dom": "^19.2.7"
@@ -23,6 +23,5 @@
23
23
  }
24
24
  }
25
25
  },
26
- "version": "4",
27
- "source": "cli"
26
+ "version": "4"
28
27
  }
@@ -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.1-staging.1",
25
+ "fimo-react": "2.5.1-staging.1",
26
+ "fimo-react-router": "2.5.1-staging.1",
27
+ "fimo-vite": "2.5.1-staging.1",
28
28
  "input-otp": "^1.4.2",
29
29
  "isbot": "^5",
30
30
  "lucide-react": "^0.577.0",
@@ -11,6 +11,5 @@
11
11
  "params": { "locale": { "type": "locale", "optional": true } }
12
12
  }
13
13
  },
14
- "version": "4",
15
- "source": "cli"
14
+ "version": "4"
16
15
  }
@@ -11,8 +11,8 @@
11
11
  "prepare": "svelte-kit sync"
12
12
  },
13
13
  "dependencies": {
14
- "fimo": "2.5.0",
15
- "fimo-sveltekit": "2.5.0"
14
+ "fimo": "2.5.1-staging.1",
15
+ "fimo-sveltekit": "2.5.1-staging.1"
16
16
  },
17
17
  "devDependencies": {
18
18
  "@sveltejs/kit": "^2.70.2",
@@ -23,6 +23,5 @@
23
23
  "params": { "locale": { "type": "locale", "optional": true } }
24
24
  }
25
25
  },
26
- "version": "4",
27
- "source": "cli"
26
+ "version": "4"
28
27
  }
@@ -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.1-staging.1",
15
+ "fimo-react": "2.5.1-staging.1",
16
+ "fimo-react-router": "2.5.1-staging.1",
17
+ "fimo-vite": "2.5.1-staging.1",
18
18
  "react": "^19.2.7",
19
19
  "react-dom": "^19.2.7",
20
20
  "react-router": "^8.3.0"
@@ -48,6 +48,5 @@
48
48
  "email_recipients": []
49
49
  }
50
50
  },
51
- "version": "4",
52
- "source": "cli"
51
+ "version": "4"
53
52
  }