create-fluixi 1.0.0-alpha.110 → 1.0.0-alpha.112

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 (2) hide show
  1. package/dist/index.js +32 -0
  2. package/package.json +3 -3
package/dist/index.js CHANGED
@@ -924,6 +924,7 @@ ${BAR2}
924
924
  }
925
925
  if (authResult) addDeps(pkg, "dependencies", authResult.dependencies);
926
926
  writeFileSync3(pkgPath, JSON.stringify(pkg, null, 2) + "\n");
927
+ writeAgentsGuide(target, pkg, format);
927
928
  const authTag = auth === "oauth2" ? `OAuth2 ${provider ?? "oidc"}` : auth === "better-auth" ? "Better Auth" : "";
928
929
  const tag = `${c2.cyan(mode.toUpperCase())} ${c2.gray("\xB7")} ${c2.cyan(format === "html" ? "html``" : "JSX")}` + (authTag ? ` ${c2.gray("\xB7")} ${c2.cyan(authTag)}` : "");
929
930
  if (interactive) output2.write(`${BAR2}
@@ -949,3 +950,34 @@ ${c2.gray("\u2514")}
949
950
  `);
950
951
  }
951
952
  main();
953
+ function writeAgentsGuide(target, pkg, format) {
954
+ const deps = pkg.dependencies ?? {};
955
+ const rules = [
956
+ "- `node_modules/@fluixi/core/llms.txt`: the framework (components, signals, routing, server code).",
957
+ ...deps["@fluixi-ui/kit"] ? ["- `node_modules/@fluixi-ui/kit/llms.txt`: the component library (controls, layout, skins)."] : [],
958
+ ...deps["@fluixi/forms"] ? ["- `node_modules/@fluixi/forms/llms.txt`: forms (fields, validation, submitting)."] : []
959
+ ];
960
+ const scripts = Object.keys(pkg.scripts ?? {}).map((name) => `- \`npm run ${name}\``);
961
+ const markup = format === "html" ? "Components are written as html`` templates, compiled at build time." : "Components are written in JSX.";
962
+ const guide = [
963
+ "# Agent instructions",
964
+ "",
965
+ `This app is built with Fluixi and @fluixi/start. ${markup}`,
966
+ "",
967
+ "Fluixi looks like React and works like Solid: components run once, and code written from React",
968
+ "habits compiles but does not update. Before writing code, read the rules for the installed",
969
+ "versions:",
970
+ "",
971
+ ...rules,
972
+ "",
973
+ "The full guide is at https://docs.fluixi.com/llms-full.txt; any docs page is Markdown at its",
974
+ "address plus `.md`.",
975
+ "",
976
+ "## Commands",
977
+ "",
978
+ ...scripts,
979
+ ""
980
+ ].join("\n");
981
+ writeFileSync3(join2(target, "AGENTS.md"), guide);
982
+ writeFileSync3(join2(target, "CLAUDE.md"), "@AGENTS.md\n");
983
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "create-fluixi",
3
- "version": "1.0.0-alpha.110",
3
+ "version": "1.0.0-alpha.112",
4
4
  "license": "MIT",
5
5
  "author": "Ibrahima Touré",
6
6
  "description": "Scaffold a new Fluixi app — `npm create fluixi <dir>`.",
@@ -29,8 +29,8 @@
29
29
  "devDependencies": {
30
30
  "esbuild": "^0.24.0",
31
31
  "vitest": "^5.0.3",
32
- "@fluixi/cli": "1.0.0-alpha.110",
33
- "@fluixi/compiler": "1.0.0-alpha.110"
32
+ "@fluixi/cli": "1.0.0-alpha.112",
33
+ "@fluixi/compiler": "1.0.0-alpha.112"
34
34
  },
35
35
  "nx": {
36
36
  "targets": {