@cimplify/cli 0.5.3 → 0.6.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.
Files changed (61) hide show
  1. package/dist/{add-3DANJHCI.mjs → add-5EMD74VD.mjs} +1 -1
  2. package/dist/cancel-HANLRA6Q.mjs +34 -0
  3. package/dist/{chunk-2547SIWD.mjs → chunk-DAHD6YWI.mjs} +1 -1
  4. package/dist/{chunk-BB7IBX6X.mjs → chunk-O6RONGAI.mjs} +1 -1
  5. package/dist/{chunk-ZEGSQVM5.mjs → chunk-OILDQUAD.mjs} +21 -21
  6. package/dist/dispatcher.mjs +12 -10
  7. package/dist/{doctor-TD4RZCCM.mjs → doctor-YPO2MQZF.mjs} +2 -2
  8. package/dist/{explain-7OSAQVJ6.mjs → explain-L5ZDNMHC.mjs} +1 -1
  9. package/dist/{introspect-SKQMAYFJ.mjs → introspect-PQ476BL7.mjs} +2 -2
  10. package/dist/{list-XLJOS2DK.mjs → list-5ORRWEYK.mjs} +1 -1
  11. package/dist/{update-4GX2J3IB.mjs → update-4AZUFFQ3.mjs} +1 -1
  12. package/package.json +1 -1
  13. package/templates/manifest.json +2 -2
  14. package/templates/storefront-auto/.claude/skills/cimplify-storefront/SKILL.md +2 -2
  15. package/templates/storefront-auto/.env.example +0 -5
  16. package/templates/storefront-auto/README.md +0 -4
  17. package/templates/storefront-auto/next.config.ts +6 -0
  18. package/templates/storefront-auto/package.json +1 -1
  19. package/templates/storefront-bakery/.claude/skills/cimplify-storefront/SKILL.md +2 -2
  20. package/templates/storefront-bakery/.env.example +0 -5
  21. package/templates/storefront-bakery/AGENTS.md +2 -2
  22. package/templates/storefront-bakery/README.md +0 -4
  23. package/templates/storefront-bakery/next.config.ts +6 -0
  24. package/templates/storefront-bakery/package.json +1 -1
  25. package/templates/storefront-fashion/.claude/skills/cimplify-storefront/SKILL.md +2 -2
  26. package/templates/storefront-fashion/.env.example +0 -5
  27. package/templates/storefront-fashion/AGENTS.md +1 -1
  28. package/templates/storefront-fashion/README.md +0 -4
  29. package/templates/storefront-fashion/next.config.ts +6 -0
  30. package/templates/storefront-fashion/package.json +1 -1
  31. package/templates/storefront-grocery/.claude/skills/cimplify-storefront/SKILL.md +2 -2
  32. package/templates/storefront-grocery/.env.example +0 -5
  33. package/templates/storefront-grocery/AGENTS.md +1 -2
  34. package/templates/storefront-grocery/README.md +0 -4
  35. package/templates/storefront-grocery/next.config.ts +6 -0
  36. package/templates/storefront-grocery/package.json +1 -1
  37. package/templates/storefront-pharmacy/.claude/skills/cimplify-storefront/SKILL.md +2 -2
  38. package/templates/storefront-pharmacy/.env.example +0 -5
  39. package/templates/storefront-pharmacy/AGENTS.md +1 -1
  40. package/templates/storefront-pharmacy/README.md +0 -4
  41. package/templates/storefront-pharmacy/next.config.ts +6 -0
  42. package/templates/storefront-pharmacy/package.json +1 -1
  43. package/templates/storefront-restaurant/.claude/skills/cimplify-storefront/SKILL.md +2 -2
  44. package/templates/storefront-restaurant/.env.example +0 -5
  45. package/templates/storefront-restaurant/AGENTS.md +1 -2
  46. package/templates/storefront-restaurant/README.md +0 -4
  47. package/templates/storefront-restaurant/next.config.ts +6 -0
  48. package/templates/storefront-restaurant/package.json +1 -1
  49. package/templates/storefront-retail/.claude/skills/cimplify-storefront/SKILL.md +2 -2
  50. package/templates/storefront-retail/.env.example +0 -5
  51. package/templates/storefront-retail/AGENTS.md +1 -1
  52. package/templates/storefront-retail/README.md +0 -4
  53. package/templates/storefront-retail/next.config.ts +6 -0
  54. package/templates/storefront-retail/package.json +1 -1
  55. package/templates/storefront-services/.claude/skills/cimplify-storefront/SKILL.md +2 -2
  56. package/templates/storefront-services/.env.example +0 -5
  57. package/templates/storefront-services/AGENTS.md +1 -2
  58. package/templates/storefront-services/README.md +0 -4
  59. package/templates/storefront-services/next.config.ts +6 -0
  60. package/templates/storefront-services/package.json +1 -1
  61. package/dist/{deploy-3IFXUWPM.mjs → deploy-7BPO5BNB.mjs} +1 -1
@@ -17,7 +17,7 @@
17
17
  "check": "bun run typecheck && bun run test:run"
18
18
  },
19
19
  "dependencies": {
20
- "@cimplify/sdk": "^0.46.0",
20
+ "@cimplify/sdk": "^0.46.1",
21
21
  "next": "^16.2.4",
22
22
  "react": "^19.0.0",
23
23
  "react-dom": "^19.0.0"
@@ -49,7 +49,7 @@ mock: { seed, businessId }
49
49
  1. Edit `lib/brand.ts`. Replace every field with the merchant's content. Use the brief / context the user gave you.
50
50
  2. Edit `app/globals.css` `@theme { … }`. Change `--color-primary`, `--color-background`, `--color-foreground`, optionally `--radius`. Use OKLCH; if the brand only gave hex, convert.
51
51
  3. (Optional) Swap fonts in `app/layout.tsx` — `next/font/google` import + the variable wired into the `<html>` className.
52
- 4. Set `.env.local`: `NEXT_PUBLIC_CIMPLIFY_API_URL`, `NEXT_PUBLIC_CIMPLIFY_PUBLIC_KEY`, `NEXT_PUBLIC_CIMPLIFY_BUSINESS_ID`, `NEXT_PUBLIC_SITE_URL`.
52
+ 4. Set `.env.local`: `NEXT_PUBLIC_CIMPLIFY_PUBLIC_KEY` (optional: `NEXT_PUBLIC_SITE_URL`).
53
53
 
54
54
  Don't touch any other file. If the rebrand needs content not in the schema, add the field to `Brand` first, populate it, then read it from the page.
55
55
 
@@ -131,7 +131,7 @@ cimplify domains add my-store.com
131
131
  | Which page reads which `brand.X` field | `AGENTS.md` at project root |
132
132
  | Architectural rules | `AGENTS.md` at project root + this skill |
133
133
  | Running locally | `bun dev` (boots mock + Next together) |
134
- | Switching mock seed | edit `dev:mock` in `package.json` and `NEXT_PUBLIC_CIMPLIFY_BUSINESS_ID` in `.env.local` |
134
+ | Switching mock seed | edit `dev:mock` in `package.json` |
135
135
  | Full SDK reference | `docs/sdk/storefronts.md` in the Cimplify repo |
136
136
 
137
137
  ## What to do when the user asks something out-of-scope
@@ -2,11 +2,6 @@
2
2
  # production; the mock accepts any value during local dev.
3
3
  NEXT_PUBLIC_CIMPLIFY_PUBLIC_KEY=mock-dev
4
4
 
5
- # Mock seed for local dev — picks which fixture business to serve. The
6
- # scaffold sets this to the right one for your template, so you only
7
- # need to change it when previewing other industries against the mock.
8
- NEXT_PUBLIC_CIMPLIFY_BUSINESS_ID=bus_currents_electronics
9
-
10
5
  # Optional. Forces a fixed canonical URL for sitemap.xml, robots.txt,
11
6
  # OpenGraph, and llms.txt. Leave unset and the storefront derives the
12
7
  # canonical from the request `Host` header automatically.
@@ -6,7 +6,7 @@ If you are an AI agent (Claude, Cursor, Aider, devin, …) working on this store
6
6
 
7
7
  1. **Edit `lib/brand.ts`** — every visible string lives here.
8
8
  2. **Edit `app/globals.css`** — `@theme { … }` block for palette + radius + font references.
9
- 3. **Edit `.env.local`** — `NEXT_PUBLIC_CIMPLIFY_API_URL`, `NEXT_PUBLIC_CIMPLIFY_PUBLIC_KEY`, `NEXT_PUBLIC_CIMPLIFY_BUSINESS_ID`, `NEXT_PUBLIC_SITE_URL`.
9
+ 3. **Edit `.env.local`** — `NEXT_PUBLIC_CIMPLIFY_PUBLIC_KEY` (optional: `NEXT_PUBLIC_SITE_URL`).
10
10
 
11
11
  ## Aesthetic
12
12
 
@@ -51,8 +51,6 @@ cimplify-mock --seed services # Serene Spa
51
51
  cimplify-mock --seed grocery # FreshMart
52
52
  ```
53
53
 
54
- Update `NEXT_PUBLIC_CIMPLIFY_BUSINESS_ID` in `.env.local` to match the seeded business.
55
-
56
54
  For a fresh scaffold with another design altogether:
57
55
 
58
56
  ```bash
@@ -68,8 +66,6 @@ cimplify init my-store --template grocery # coming soon
68
66
  # .env.local
69
67
  - NEXT_PUBLIC_CIMPLIFY_PUBLIC_KEY=mock-dev
70
68
  + NEXT_PUBLIC_CIMPLIFY_PUBLIC_KEY=<your tenant key>
71
- - NEXT_PUBLIC_CIMPLIFY_BUSINESS_ID=bus_currents_electronics
72
- + NEXT_PUBLIC_CIMPLIFY_BUSINESS_ID=<your business id>
73
69
  ```
74
70
 
75
71
  Deploy with `cimplify deploy --prod` after linking the project. See [`cimplify` CLI docs](https://www.cimplify.dev/docs/cli). `next.config.ts` already whitelists the SDK image hosts under `images.remotePatterns`.
@@ -7,6 +7,12 @@ const STOREFRONT_URL =
7
7
  ? "https://storefronts.cimplify.io"
8
8
  : "http://127.0.0.1:8787";
9
9
 
10
+ if (STOREFRONT_URL === "http://127.0.0.1:8787") {
11
+ console.warn(
12
+ "[cimplify] next.config resolved the local storefront API URL; production deploys must run with NODE_ENV=production.",
13
+ );
14
+ }
15
+
10
16
  const nextConfig: NextConfig = {
11
17
  // Enable Next 16's `cacheComponents` mode so we can use `'use cache'` +
12
18
  // `cacheTag` / `cacheLife` for SSR caching. Cached chrome streams first,
@@ -17,7 +17,7 @@
17
17
  "check": "bun run typecheck && bun run test:run"
18
18
  },
19
19
  "dependencies": {
20
- "@cimplify/sdk": "^0.46.0",
20
+ "@cimplify/sdk": "^0.46.1",
21
21
  "next": "^16.2.4",
22
22
  "react": "^19.0.0",
23
23
  "react-dom": "^19.0.0"
@@ -49,7 +49,7 @@ mock: { seed, businessId }
49
49
  1. Edit `lib/brand.ts`. Replace every field with the merchant's content. Use the brief / context the user gave you.
50
50
  2. Edit `app/globals.css` `@theme { … }`. Change `--color-primary`, `--color-background`, `--color-foreground`, optionally `--radius`. Use OKLCH; if the brand only gave hex, convert.
51
51
  3. (Optional) Swap fonts in `app/layout.tsx` — `next/font/google` import + the variable wired into the `<html>` className.
52
- 4. Set `.env.local`: `NEXT_PUBLIC_CIMPLIFY_API_URL`, `NEXT_PUBLIC_CIMPLIFY_PUBLIC_KEY`, `NEXT_PUBLIC_CIMPLIFY_BUSINESS_ID`, `NEXT_PUBLIC_SITE_URL`.
52
+ 4. Set `.env.local`: `NEXT_PUBLIC_CIMPLIFY_PUBLIC_KEY` (optional: `NEXT_PUBLIC_SITE_URL`).
53
53
 
54
54
  Don't touch any other file. If the rebrand needs content not in the schema, add the field to `Brand` first, populate it, then read it from the page.
55
55
 
@@ -131,7 +131,7 @@ cimplify domains add my-store.com
131
131
  | Which page reads which `brand.X` field | `AGENTS.md` at project root |
132
132
  | Architectural rules | `AGENTS.md` at project root + this skill |
133
133
  | Running locally | `bun dev` (boots mock + Next together) |
134
- | Switching mock seed | edit `dev:mock` in `package.json` and `NEXT_PUBLIC_CIMPLIFY_BUSINESS_ID` in `.env.local` |
134
+ | Switching mock seed | edit `dev:mock` in `package.json` |
135
135
  | Full SDK reference | `docs/sdk/storefronts.md` in the Cimplify repo |
136
136
 
137
137
  ## What to do when the user asks something out-of-scope
@@ -2,11 +2,6 @@
2
2
  # production; the mock accepts any value during local dev.
3
3
  NEXT_PUBLIC_CIMPLIFY_PUBLIC_KEY=mock-dev
4
4
 
5
- # Mock seed for local dev — picks which fixture business to serve. The
6
- # scaffold sets this to the right one for your template, so you only
7
- # need to change it when previewing other industries against the mock.
8
- NEXT_PUBLIC_CIMPLIFY_BUSINESS_ID=bus_serene_spa
9
-
10
5
  # Optional. Forces a fixed canonical URL for sitemap.xml, robots.txt,
11
6
  # OpenGraph, and llms.txt. Leave unset and the storefront derives the
12
7
  # canonical from the request `Host` header automatically.
@@ -6,8 +6,7 @@ If you are an AI agent (Claude, Cursor, Aider, devin, …) working on this store
6
6
 
7
7
  1. **Edit `lib/brand.ts`** — every visible string lives here.
8
8
  2. **Edit `app/globals.css`** — `@theme { … }` for palette + radius.
9
- 3. **Edit `.env.local`** — `NEXT_PUBLIC_CIMPLIFY_BUSINESS_ID=bus_serene_spa` for the bundled seed.
10
-
9
+ 3. **Edit `.env.local`** — set `NEXT_PUBLIC_CIMPLIFY_PUBLIC_KEY` (the only required var).
11
10
  ## Aesthetic
12
11
 
13
12
  - **Fraunces serif + Inter** — warm, slightly editorial headings.
@@ -56,16 +56,12 @@ cimplify-mock --seed services # Serene Spa
56
56
  cimplify-mock --seed grocery # FreshMart
57
57
  ```
58
58
 
59
- Update `NEXT_PUBLIC_CIMPLIFY_BUSINESS_ID` in `.env.local` to match the seeded business.
60
-
61
59
  ## Go live
62
60
 
63
61
  ```diff
64
62
  # .env.local
65
63
  - NEXT_PUBLIC_CIMPLIFY_PUBLIC_KEY=mock-dev
66
64
  + NEXT_PUBLIC_CIMPLIFY_PUBLIC_KEY=<your tenant key>
67
- - NEXT_PUBLIC_CIMPLIFY_BUSINESS_ID=bus_serene_spa
68
- + NEXT_PUBLIC_CIMPLIFY_BUSINESS_ID=<your business id>
69
65
  ```
70
66
 
71
67
  Deploy with `cimplify deploy --prod` after linking the project. See [`cimplify` CLI docs](https://www.cimplify.dev/docs/cli). `next.config.ts` already whitelists the SDK image hosts under `images.remotePatterns`.
@@ -7,6 +7,12 @@ const STOREFRONT_URL =
7
7
  ? "https://storefronts.cimplify.io"
8
8
  : "http://127.0.0.1:8787";
9
9
 
10
+ if (STOREFRONT_URL === "http://127.0.0.1:8787") {
11
+ console.warn(
12
+ "[cimplify] next.config resolved the local storefront API URL; production deploys must run with NODE_ENV=production.",
13
+ );
14
+ }
15
+
10
16
  const nextConfig: NextConfig = {
11
17
  // Enable Next 16's `cacheComponents` mode so we can use `'use cache'` +
12
18
  // `cacheTag` / `cacheLife` for SSR caching. Cached chrome streams first,
@@ -17,7 +17,7 @@
17
17
  "check": "bun run typecheck && bun run test:run"
18
18
  },
19
19
  "dependencies": {
20
- "@cimplify/sdk": "^0.46.0",
20
+ "@cimplify/sdk": "^0.46.1",
21
21
  "next": "^16.2.4",
22
22
  "react": "^19.0.0",
23
23
  "react-dom": "^19.0.0"
@@ -1,6 +1,6 @@
1
1
  #!/usr/bin/env node
2
- import { pollDeployment } from './chunk-VTR5R5NQ.mjs';
3
2
  import { gitDetectRoot, gitStatusPorcelain, gitCurrentBranch, gitCurrentSha, gitGetRemoteUrl, isFreestyleRemote, gitPushToUrl, gitPush } from './chunk-K5464A3L.mjs';
3
+ import { pollDeployment } from './chunk-VTR5R5NQ.mjs';
4
4
  import { fetchCloneToken } from './chunk-R3FDBXR6.mjs';
5
5
  import { promptYesNo } from './chunk-ITAFAORS.mjs';
6
6
  import { TOKEN_PURPOSE, ENV_SCOPE, DEPLOY_TRIGGER, DEPLOYMENT_STATUS } from './chunk-MXYUAJEW.mjs';