@batijs/cli 0.0.657 → 0.0.659

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 (61) hide show
  1. package/dist/boilerplates/@batijs/auth0/bati.config.mjs +1 -1
  2. package/dist/boilerplates/@batijs/authjs/bati.config.mjs +2 -16
  3. package/dist/boilerplates/@batijs/aws/bati.config.mjs +1 -13
  4. package/dist/boilerplates/@batijs/better-auth/bati.config.mjs +2 -17
  5. package/dist/boilerplates/@batijs/biome/bati.config.mjs +2 -16
  6. package/dist/boilerplates/@batijs/cloudflare/bati.config.mjs +1 -15
  7. package/dist/boilerplates/@batijs/compiled/bati.config.mjs +1 -13
  8. package/dist/boilerplates/@batijs/d1/bati.config.mjs +1 -1
  9. package/dist/boilerplates/@batijs/d1-kysely/bati.config.mjs +1 -1
  10. package/dist/boilerplates/@batijs/d1-sqlite/bati.config.mjs +4 -18
  11. package/dist/boilerplates/@batijs/docker-compose/bati.config.mjs +2 -14
  12. package/dist/boilerplates/@batijs/dokploy/bati.config.mjs +2 -14
  13. package/dist/boilerplates/@batijs/drizzle/bati.config.mjs +1 -17
  14. package/dist/boilerplates/@batijs/edgeone/bati.config.mjs +2 -14
  15. package/dist/boilerplates/@batijs/elysia/bati.config.mjs +2 -15
  16. package/dist/boilerplates/@batijs/eslint/bati.config.mjs +2 -14
  17. package/dist/boilerplates/@batijs/express/bati.config.mjs +2 -15
  18. package/dist/boilerplates/@batijs/fastify/bati.config.mjs +2 -15
  19. package/dist/boilerplates/@batijs/google-analytics/bati.config.mjs +2 -14
  20. package/dist/boilerplates/@batijs/hono/bati.config.mjs +2 -15
  21. package/dist/boilerplates/@batijs/kysely/bati.config.mjs +2 -16
  22. package/dist/boilerplates/@batijs/mantine/bati.config.mjs +2 -14
  23. package/dist/boilerplates/@batijs/netlify/bati.config.mjs +4 -18
  24. package/dist/boilerplates/@batijs/oxlint/bati.config.mjs +2 -14
  25. package/dist/boilerplates/@batijs/plausible.io/bati.config.mjs +4 -18
  26. package/dist/boilerplates/@batijs/pnpm/bati.config.mjs +1 -1
  27. package/dist/boilerplates/@batijs/postgres/bati.config.mjs +1 -13
  28. package/dist/boilerplates/@batijs/prettier/bati.config.mjs +2 -14
  29. package/dist/boilerplates/@batijs/prisma/bati.config.mjs +2 -20
  30. package/dist/boilerplates/@batijs/react/bati.config.mjs +2 -14
  31. package/dist/boilerplates/@batijs/react-better-auth/bati.config.mjs +1 -1
  32. package/dist/boilerplates/@batijs/react-sentry/bati.config.mjs +1 -1
  33. package/dist/boilerplates/@batijs/sentry/bati.config.mjs +1 -14
  34. package/dist/boilerplates/@batijs/shadcn-ui/bati.config.mjs +4 -19
  35. package/dist/boilerplates/@batijs/shared/bati.config.mjs +1 -94
  36. package/dist/boilerplates/@batijs/shared-agents/bati.config.mjs +2 -7
  37. package/dist/boilerplates/@batijs/shared-agents/hooks/after.mjs +17 -7
  38. package/dist/boilerplates/@batijs/shared-agents/hooks/asset-boilerplates/shared-agents/compose.mjs +14 -35
  39. package/dist/boilerplates/@batijs/shared-agents/hooks/asset-packages/features/dist/{features-CStxEDu3.mjs → features-CGdfnf9U.mjs} +110 -84
  40. package/dist/boilerplates/@batijs/shared-agents/hooks/asset-packages/features/dist/index.mjs +5 -158
  41. package/dist/boilerplates/@batijs/shared-db/bati.config.mjs +1 -1
  42. package/dist/boilerplates/@batijs/shared-env/bati.config.mjs +1 -1
  43. package/dist/boilerplates/@batijs/shared-server/bati.config.mjs +1 -1
  44. package/dist/boilerplates/@batijs/shared-todo/bati.config.mjs +1 -1
  45. package/dist/boilerplates/@batijs/solid/bati.config.mjs +4 -18
  46. package/dist/boilerplates/@batijs/solid-better-auth/bati.config.mjs +1 -1
  47. package/dist/boilerplates/@batijs/solid-sentry/bati.config.mjs +1 -1
  48. package/dist/boilerplates/@batijs/sqlite/bati.config.mjs +1 -13
  49. package/dist/boilerplates/@batijs/storybook/bati.config.mjs +2 -14
  50. package/dist/boilerplates/@batijs/tailwindcss/bati.config.mjs +2 -27
  51. package/dist/boilerplates/@batijs/telefunc/bati.config.mjs +4 -20
  52. package/dist/boilerplates/@batijs/trpc/bati.config.mjs +4 -19
  53. package/dist/boilerplates/@batijs/ts-rest/bati.config.mjs +2 -14
  54. package/dist/boilerplates/@batijs/universal-deploy/bati.config.mjs +4 -21
  55. package/dist/boilerplates/@batijs/vercel/bati.config.mjs +1 -13
  56. package/dist/boilerplates/@batijs/vue/bati.config.mjs +2 -14
  57. package/dist/boilerplates/@batijs/vue-better-auth/bati.config.mjs +1 -1
  58. package/dist/boilerplates/@batijs/vue-sentry/bati.config.mjs +1 -1
  59. package/dist/index.js +2 -6
  60. package/package.json +5 -5
  61. package/dist/boilerplates/@batijs/shared-agents/hooks/asset-boilerplates/shared-agents/agents-md.mjs +0 -70
@@ -3,7 +3,7 @@ function e(e, t) {
3
3
  if (!e) throw Error(t);
4
4
  }
5
5
  function t(t) {
6
- return `enforce` in t && e(t.enforce === `pre` || t.enforce === `post`, `'enforce' must be 'pre' or 'post', was ${t.enforce}`), `if` in t && e(typeof t.if == `function`, `'if' must be a function`), `nextSteps` in t && e(typeof t.nextSteps == `function`, `'nextSteps' must be a function`), `knip` in t && (e(typeof t.knip == `object` && t.knip !== null, `'knip' must be an object`), `entry` in t.knip && e(Array.isArray(t.knip.entry), `'knip.entry' must be an array`), `ignoreDependencies` in t.knip && e(Array.isArray(t.knip.ignoreDependencies), `'knip.ignoreDependencies' must be an array`), `ignore` in t.knip && e(Array.isArray(t.knip.ignore), `'knip.ignore' must be an array`), `vite` in t.knip && e(typeof t.knip.vite == `boolean`, `'knip.vite' must be a boolean`)), `env` in t && e(typeof t.env == `function`, `'env' must be a function of meta`), `deploy` in t && e(Array.isArray(t.deploy) || typeof t.deploy == `function`, `'deploy' must be an array or a function of meta`), `skills` in t && e(typeof t.skills == `function`, `'skills' must be a function of meta`), t;
6
+ return `enforce` in t && e(t.enforce === `pre` || t.enforce === `post`, `'enforce' must be 'pre' or 'post', was ${t.enforce}`), `if` in t && e(typeof t.if == `function`, `'if' must be a function`), `nextSteps` in t && e(typeof t.nextSteps == `function`, `'nextSteps' must be a function`), `knip` in t && (e(typeof t.knip == `object` && t.knip !== null, `'knip' must be an object`), `entry` in t.knip && e(Array.isArray(t.knip.entry), `'knip.entry' must be an array`), `ignoreDependencies` in t.knip && e(Array.isArray(t.knip.ignoreDependencies), `'knip.ignoreDependencies' must be an array`), `ignore` in t.knip && e(Array.isArray(t.knip.ignore), `'knip.ignore' must be an array`), `vite` in t.knip && e(typeof t.knip.vite == `boolean`, `'knip.vite' must be a boolean`)), `env` in t && e(typeof t.env == `function`, `'env' must be a function of meta`), `deploy` in t && e(Array.isArray(t.deploy) || typeof t.deploy == `function`, `'deploy' must be an array or a function of meta`), t;
7
7
  }
8
8
  //#endregion
9
9
  //#region bati.config.ts
package/dist/index.js CHANGED
@@ -2638,7 +2638,7 @@ function kebabCase(str, joiner) {
2638
2638
  //#endregion
2639
2639
  //#region package.json
2640
2640
  var name = "@batijs/cli";
2641
- var version = "0.0.657";
2641
+ var version = "0.0.659";
2642
2642
  var description = "Next-gen scaffolder. Get started with fully-functional apps, and choose any tool you want";
2643
2643
  //#endregion
2644
2644
  //#region rules.ts
@@ -3055,11 +3055,7 @@ async function run() {
3055
3055
  env,
3056
3056
  deploy
3057
3057
  }, meta);
3058
- const skills = meta.BATI.hasAiAgent ? filteredBoilerplates.flatMap((b) => b.config.skills?.(meta) ?? []) : [];
3059
- for (const onafter of hooksMap.get("after") ?? []) await onafter(args.project, meta, {
3060
- skills,
3061
- env
3062
- });
3058
+ for (const onafter of hooksMap.get("after") ?? []) await onafter(args.project, meta);
3063
3059
  if (args.knip) await generateKnipConfig(args.project, filteredBoilerplates);
3064
3060
  if (!args["skip-git"]) gitInit(args.project);
3065
3061
  const nextSteps = filteredBoilerplates.flatMap((b) => b.config.nextSteps?.(meta, pm.run, colorette_exports)).filter(Boolean);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@batijs/cli",
3
- "version": "0.0.657",
3
+ "version": "0.0.659",
4
4
  "type": "module",
5
5
  "scripts": {
6
6
  "check-types": "tsc --noEmit",
@@ -13,8 +13,8 @@
13
13
  "repository": "https://github.com/vikejs/bati",
14
14
  "license": "MIT",
15
15
  "devDependencies": {
16
- "@batijs/build": "0.0.657",
17
- "@batijs/compile": "0.0.657",
16
+ "@batijs/build": "0.0.659",
17
+ "@batijs/compile": "0.0.659",
18
18
  "@inquirer/prompts": "^8.5.2",
19
19
  "@types/node": "^20.19.37",
20
20
  "@types/which": "^3.0.4",
@@ -30,8 +30,8 @@
30
30
  "vite": "^8.0.16"
31
31
  },
32
32
  "dependencies": {
33
- "@batijs/core": "0.0.657",
34
- "@batijs/features": "0.0.657"
33
+ "@batijs/core": "0.0.659",
34
+ "@batijs/features": "0.0.659"
35
35
  },
36
36
  "bin": "./cli.js",
37
37
  "exports": {
@@ -1,70 +0,0 @@
1
- import { features } from "../../asset-packages/features/dist/features-CStxEDu3.mjs";
2
- import { categories } from "../../asset-packages/features/dist/index.mjs";
3
- //#region agents-md.ts
4
- /**
5
- * The canonical `AGENTS.md` body (SKILLS_PLAN.md §3/§6.A): the always-loaded project guide —
6
- * orientation, commands, env, structure — composed from the resolved stack. Kept lean, pointing at
7
- * `README.md` and upstream docs rather than duplicating volatile detail.
8
- */
9
- function buildAgentsMd(meta, hasEnv) {
10
- const run = meta.BATI.pmRun;
11
- const sections = [
12
- `# AGENTS.md
13
-
14
- Guidance for AI coding agents working in this repository. This is a [Vike](https://vike.dev) app
15
- scaffolded with [Bati](https://batijs.dev). Match the existing conventions and the stack below.`,
16
- stackSection(meta),
17
- `## Commands
18
-
19
- - \`${run} dev\` — start the development server
20
- - \`${run} build\` — build for production
21
- - \`${run} preview\` — preview the production build
22
-
23
- Use \`${meta.BATI.pm}\` for package management. See \`package.json\` for the full list of scripts.`
24
- ];
25
- if (hasEnv) sections.push(environmentSection(meta));
26
- sections.push(structureSection(meta));
27
- sections.push(`## Notes for agents
28
-
29
- - Respect the selected stack above; prefer its idioms over introducing new libraries.
30
- - Task-specific how-tos are provided as skills under \`.agents/skills/\` (and \`.claude/skills/\`) — consult them when relevant.
31
- - See \`README.md\` for setup and feature-specific notes.`);
32
- sections.push(referencesSection(meta));
33
- return `${sections.join("\n\n")}\n`;
34
- }
35
- /** `llms.txt` docs indexes for the selected stack (Vike is the always-present foundation). */
36
- function referencesSection(meta) {
37
- const refs = [];
38
- for (const f of features) {
39
- const { llms } = f;
40
- if (llms && f.category !== "AI Agent" && (f.flag === "vike" || meta.BATI.has(f.flag))) refs.push(`- ${f.label} — ${llms}`);
41
- }
42
- return `## References
43
-
44
- LLM-friendly docs (\`llms.txt\`) for this stack — fetch these for authoritative, up-to-date API details:
45
-
46
- ${refs.join("\n")}`;
47
- }
48
- /** Selected features grouped by category (excluding the AI agents themselves), in category order. */
49
- function stackSection(meta) {
50
- const byCategory = /* @__PURE__ */ new Map();
51
- for (const f of features) {
52
- if (f.category === "AI Agent" || !meta.BATI.has(f.flag)) continue;
53
- byCategory.set(f.category, [...byCategory.get(f.category) ?? [], f.label]);
54
- }
55
- return `## Stack\n\n${categories.filter((c) => byCategory.has(c.label)).map((c) => `- **${c.label}:** ${byCategory.get(c.label).join(", ")}`).join("\n")}`;
56
- }
57
- function environmentSection(meta) {
58
- const lines = ["- Client/build-time vars use the `PUBLIC_ENV__*` prefix (read via `import.meta.env`); everything else is server-only."];
59
- if (meta.BATI.hasDotEnvSecrets) lines.unshift("- Environment variables are configured in `.env` (dev defaults are committed there); keep real secrets out of version control.");
60
- else lines.unshift("- Non-secret vars live in `wrangler.jsonc` (`vars`); set secrets with `wrangler secret put <NAME>`. `.env` holds public/dev values only.");
61
- return `## Environment\n\n${lines.join("\n")}`;
62
- }
63
- function structureSection(meta) {
64
- const lines = ["- `pages/` — file-based routing. A route is a directory with a `+Page` file; add `+route`, `+data`, `+config`, `+guard`, or `+Layout` files beside it. See https://vike.dev.", "- `+config.ts` — Vike configuration (global under `pages/`, or per-route)."];
65
- if (meta.BATI.hasServer) lines.push("- The app runs behind a server; the server entry boots Vike (see the `dev` script in `package.json`).");
66
- if (meta.BATI.hasDatabase || meta.BATI.hasOrm) lines.push("- Database access lives in the project's db modules; check the schema/migration files and `package.json`.");
67
- return `## Project structure\n\n${lines.join("\n")}`;
68
- }
69
- //#endregion
70
- export { buildAgentsMd };