clawfire 0.5.1 → 0.6.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.
Files changed (40) hide show
  1. package/README.md +10 -10
  2. package/dist/cli.js +76 -16
  3. package/dist/codegen.cjs.map +1 -1
  4. package/dist/codegen.d.cts +1 -1
  5. package/dist/codegen.d.ts +1 -1
  6. package/dist/codegen.js.map +1 -1
  7. package/dist/{dev-server-7S6FZNJT.js → dev-server-GD445Q6F.js} +3 -3
  8. package/dist/dev.cjs +3 -3
  9. package/dist/dev.cjs.map +1 -1
  10. package/dist/dev.js +3 -3
  11. package/dist/dev.js.map +1 -1
  12. package/dist/{discover-DYNqz_ym.d.cts → discover-8p9Mujyt.d.cts} +3 -3
  13. package/dist/{discover-DYNqz_ym.d.ts → discover-8p9Mujyt.d.ts} +3 -3
  14. package/dist/functions.cjs.map +1 -1
  15. package/dist/functions.d.cts +1 -1
  16. package/dist/functions.d.ts +1 -1
  17. package/dist/functions.js.map +1 -1
  18. package/package.json +1 -1
  19. package/templates/CLAUDE.md +22 -19
  20. package/templates/functions/index.ts +3 -3
  21. package/templates/starter/.claude/skills/clawfire-api/SKILL.md +8 -8
  22. package/templates/starter/.claude/skills/clawfire-diagnose/SKILL.md +6 -6
  23. package/templates/starter/.claude/skills/clawfire-model/SKILL.md +2 -2
  24. package/templates/starter/CLAUDE.md +33 -31
  25. package/templates/starter/app/pages/index.html +7 -6
  26. package/templates/starter/functions/index.ts +52 -0
  27. package/templates/starter/functions/package.json +22 -0
  28. package/templates/starter/functions/tsconfig.json +18 -0
  29. package/templates/starter/package.json +4 -2
  30. package/templates/starter/tsconfig.json +1 -1
  31. /package/templates/{app → functions}/routes/auth/login.ts +0 -0
  32. /package/templates/{app → functions}/routes/health.ts +0 -0
  33. /package/templates/{app → functions}/schemas/user.ts +0 -0
  34. /package/templates/starter/{app → functions}/routes/health.ts +0 -0
  35. /package/templates/starter/{app → functions}/routes/todos/create.ts +0 -0
  36. /package/templates/starter/{app → functions}/routes/todos/delete.ts +0 -0
  37. /package/templates/starter/{app → functions}/routes/todos/list.ts +0 -0
  38. /package/templates/starter/{app → functions}/routes/todos/update.ts +0 -0
  39. /package/templates/starter/{app → functions}/schemas/todo.ts +0 -0
  40. /package/templates/starter/{app → functions}/store.ts +0 -0
package/dist/dev.js CHANGED
@@ -3520,8 +3520,8 @@ var DevServer = class {
3520
3520
  onSetupRoutes: options.onSetupRoutes || (() => {
3521
3521
  })
3522
3522
  };
3523
- this.routesDir = resolve6(this.options.projectDir, "app/routes");
3524
- this.schemasDir = resolve6(this.options.projectDir, "app/schemas");
3523
+ this.routesDir = resolve6(this.options.projectDir, "functions/routes");
3524
+ this.schemasDir = resolve6(this.options.projectDir, "functions/schemas");
3525
3525
  this.publicDir = resolve6(this.options.projectDir, "public");
3526
3526
  this.pagesDir = resolve6(this.options.projectDir, "app/pages");
3527
3527
  this.componentsDir = resolve6(this.options.projectDir, "app/components");
@@ -4083,7 +4083,7 @@ ${liveReloadScript}
4083
4083
  }
4084
4084
  console.log("");
4085
4085
  if (watching) {
4086
- const watchDirs = ["app/routes/", "app/schemas/", "public/"];
4086
+ const watchDirs = ["functions/routes/", "functions/schemas/", "public/"];
4087
4087
  if (pagesActive) watchDirs.push("app/pages/", "app/components/");
4088
4088
  console.log(` \x1B[35mHot Reload\x1B[0m : \x1B[32mON\x1B[0m`);
4089
4089
  console.log(` \x1B[2mWatching: ${watchDirs.join(", ")}\x1B[0m`);