launchframe 0.4.0 → 0.4.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.
@@ -0,0 +1,45 @@
1
+ ---
2
+ name: launchframe
3
+ description: Scaffold a new Next.js project with npx launchframe@latest using a reference URL and SaaS landing copy. Invoked as /launchframe.
4
+ argument-hint: "<url> \"<saas-idea>\""
5
+ user-invocable: true
6
+ ---
7
+
8
+ # Launchframe
9
+
10
+ You are helping the user scaffold a **new** project from **$ARGUMENTS**:
11
+
12
+ - A **reference URL** (the website to copy later with `/clone-website`)
13
+ - A **SaaS idea** string (headline / positioning for the generated landing page)
14
+
15
+ ## Parse inputs
16
+
17
+ 1. Split **$ARGUMENTS** into:
18
+ - **URL** — First `http://` or `https://` URL. Normalize (trim, validate). If invalid or missing, ask once for a correct URL.
19
+ - **SaaS idea** — Everything after the URL, typically in quotes. Strip surrounding quotes. If empty, ask for a short product pitch.
20
+
21
+ 2. Optional flags the user might pass (same as the CLI): `--dir` / `-o` for output folder, `--skip-install` to skip `npm install`.
22
+
23
+ ## Run the published CLI
24
+
25
+ Execute the scaffold using the **latest** package from npm (exact intent: **`launchframe@latest`**):
26
+
27
+ ```bash
28
+ npx launchframe@latest "<url>" "<saas-idea>" [--dir <folder>] [--skip-install]
29
+ ```
30
+
31
+ - Use shell-appropriate quoting (PowerShell vs bash). Escape embedded quotes in the SaaS idea.
32
+ - **Output path:** The Launchframe CLI must not write **inside** the npm package / template directory itself (that would recurse). If the open workspace is this repository, run `npx` with `--dir` pointing to a **sibling** path (e.g. `..\\my-app` on Windows, `../my-app` on macOS/Linux) or ask the user for a folder **outside** the repo.
33
+ - Prefer letting the CLI run `npm install` unless the user passed `--skip-install`.
34
+
35
+ ## After scaffold
36
+
37
+ Tell the user:
38
+
39
+ 1. `cd` into the new project directory.
40
+ 2. `npm run dev` to preview the SaaS landing shell.
41
+ 3. Run **`/clone-website <same-reference-url>`** in that project so the agent can reverse-engineer the reference site into components, while keeping the SaaS idea from `launchframe.context.json` / `src/lib/launchframe-config.ts`.
42
+
43
+ ## Fallback (local dev only)
44
+
45
+ If `npx launchframe@latest` is unavailable (offline), from a **checkout of this repo** you may run `node bin/launchframe.mjs "<url>" "<saas-idea>" ...` with the same rules for `--dir` outside the package root.