ai-forge-cli 0.4.6 → 0.4.7

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.
@@ -17,7 +17,7 @@ import { join } from "path";
17
17
  var add_component_default = defineCommand({
18
18
  meta: {
19
19
  name: "add:component",
20
- description: "Create a new React component"
20
+ description: "Create a React component. Creates: <target>/<Name>.tsx, updates index.ts. Default: src/components/ui/. Use --feature, --page, or --layout to target specific folders."
21
21
  },
22
22
  args: {
23
23
  name: {
@@ -24,7 +24,7 @@ import { join } from "path";
24
24
  var add_feature_default = defineCommand({
25
25
  meta: {
26
26
  name: "add:feature",
27
- description: "Create a new feature with vertical slice architecture"
27
+ description: "Create a full-stack feature. Creates: convex/features/<name>/ (schema, queries, mutations), src/features/<name>/ (hooks, components), src/routes/<name>/ (index, $id). Use for data-driven features with backend."
28
28
  },
29
29
  args: {
30
30
  name: {
@@ -17,7 +17,7 @@ import { join } from "path";
17
17
  var add_hook_default = defineCommand({
18
18
  meta: {
19
19
  name: "add:hook",
20
- description: "Create a new React hook"
20
+ description: "Create a React hook. Without --feature: creates src/hooks/<useName>.ts. With --feature: appends to src/features/<name>/hooks.ts. Auto-prefixes 'use' if needed."
21
21
  },
22
22
  args: {
23
23
  name: {
@@ -34,7 +34,7 @@ function runCommand(cmd, args, cwd) {
34
34
  var add_integration_default = defineCommand({
35
35
  meta: {
36
36
  name: "add:integration",
37
- description: "Add an infrastructure integration (auth, storage)"
37
+ description: "Add infrastructure. auth: creates convex/auth.ts, src/components/auth/ (LoginForm, SignupForm, AuthGuard, UserMenu), routes. storage: creates convex/lib/storage.ts, src/components/storage/ (FileUpload, FilePreview)."
38
38
  },
39
39
  args: {
40
40
  name: {
@@ -20,7 +20,7 @@ var LAYOUT_PRESETS = ["dashboard", "auth", "marketing"];
20
20
  var add_layout_default = defineCommand({
21
21
  meta: {
22
22
  name: "add:layout",
23
- description: "Create a layout (dashboard, auth, marketing, or custom)"
23
+ description: "Create a layout wrapper for grouped routes. Creates: src/routes/<name>/_layout.tsx, index.tsx. Dashboard preset adds Sidebar/Header in src/components/layout/. Use for shared navigation."
24
24
  },
25
25
  args: {
26
26
  name: {
@@ -17,7 +17,7 @@ import { join } from "path";
17
17
  var add_page_default = defineCommand({
18
18
  meta: {
19
19
  name: "add:page",
20
- description: "Create a non-feature page (about, pricing, settings)"
20
+ description: "Create a standalone page without backend. Creates: src/routes/<name>.tsx, src/components/<name>/<Name>Content.tsx. Use for static pages like about, pricing, settings."
21
21
  },
22
22
  args: {
23
23
  name: {
@@ -17,7 +17,7 @@ import { join } from "path";
17
17
  var add_util_default = defineCommand({
18
18
  meta: {
19
19
  name: "add:util",
20
- description: "Create a new utility function in src/lib"
20
+ description: "Create a utility function. Creates: src/lib/<name>.ts, updates src/lib/index.ts. Use for shared helpers like formatDate, cn, validators."
21
21
  },
22
22
  args: {
23
23
  name: {
package/dist/index.js CHANGED
@@ -20,13 +20,13 @@ var main = defineCommand({
20
20
  },
21
21
  subCommands: {
22
22
  init: () => import("./init-C4FFZDSP.js").then((m) => m.default),
23
- "add:feature": () => import("./add-feature-VEY62Y5M.js").then((m) => m.default),
24
- "add:integration": () => import("./add-integration-NJ56UXSY.js").then((m) => m.default),
25
- "add:page": () => import("./add-page-GIC2ZXJI.js").then((m) => m.default),
26
- "add:layout": () => import("./add-layout-2KQPPTJX.js").then((m) => m.default),
27
- "add:component": () => import("./add-component-AQPCXQ4O.js").then((m) => m.default),
28
- "add:hook": () => import("./add-hook-OE4BKE6B.js").then((m) => m.default),
29
- "add:util": () => import("./add-util-T5JXAV4G.js").then((m) => m.default),
23
+ "add:feature": () => import("./add-feature-TYLPV3DB.js").then((m) => m.default),
24
+ "add:integration": () => import("./add-integration-ESA7JFY7.js").then((m) => m.default),
25
+ "add:page": () => import("./add-page-G75JUU77.js").then((m) => m.default),
26
+ "add:layout": () => import("./add-layout-IVTJUG6G.js").then((m) => m.default),
27
+ "add:component": () => import("./add-component-B3O3RZWD.js").then((m) => m.default),
28
+ "add:hook": () => import("./add-hook-VJC6P6AP.js").then((m) => m.default),
29
+ "add:util": () => import("./add-util-V5SQRVJC.js").then((m) => m.default),
30
30
  check: () => import("./check-YMGJNKME.js").then((m) => m.default),
31
31
  version: () => import("./version-VO3LHLDO.js").then((m) => m.default)
32
32
  },
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ai-forge-cli",
3
- "version": "0.4.6",
3
+ "version": "0.4.7",
4
4
  "description": "TypeScript stack scaffolding & enforcement CLI for TanStack Start + Convex",
5
5
  "type": "module",
6
6
  "license": "MIT",