@cimplify/cli 0.13.2 → 0.13.4

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 (96) hide show
  1. package/README.md +11 -8
  2. package/dist/{add-F7GKDXAD.mjs → add-542NLKYG.mjs} +4 -5
  3. package/dist/{assets-Y4JE6MSG.mjs → assets-OEY6FHHZ.mjs} +4 -5
  4. package/dist/{auth-step-up-EHL5PM2L.mjs → auth-step-up-ALEUQUCE.mjs} +5 -6
  5. package/dist/{cancel-QSZE2XC2.mjs → cancel-FD66LTTS.mjs} +4 -5
  6. package/dist/chunk-4O4G2CDE.mjs +162 -0
  7. package/dist/{chunk-C4M3DXKC.mjs → chunk-5KYR6WJB.mjs} +10 -2
  8. package/dist/{chunk-4YIFBYBV.mjs → chunk-5ZQURRIM.mjs} +1 -2
  9. package/dist/{chunk-QA36VSLX.mjs → chunk-6CHBU7O4.mjs} +1 -1
  10. package/dist/{chunk-QKRGKFHE.mjs → chunk-7NUSJVN3.mjs} +3 -2
  11. package/dist/{chunk-D7DVYTVI.mjs → chunk-HJQ6PF5N.mjs} +6 -6
  12. package/dist/{chunk-UP7N53C4.mjs → chunk-IK6NQHTG.mjs} +1 -1
  13. package/dist/{chunk-OVHZV57L.mjs → chunk-MLVBE5V2.mjs} +1 -1
  14. package/dist/{chunk-RR4NOZGY.mjs → chunk-OE7YRDLH.mjs} +5 -6
  15. package/dist/{chunk-VJJDGHZC.mjs → chunk-PDGKBATF.mjs} +1 -2
  16. package/dist/{chunk-5U5OXOPN.mjs → chunk-RU53TQLZ.mjs} +1 -1
  17. package/dist/{chunk-JPXK5BLA.mjs → chunk-TOQGLBWF.mjs} +1 -1
  18. package/dist/{chunk-SVJPU4K7.mjs → chunk-VCDGYXFU.mjs} +51 -43
  19. package/dist/{deploy-UTAYLZOM.mjs → deploy-SLRFPGTH.mjs} +8 -9
  20. package/dist/{dev-3U6WW5D7.mjs → dev-L3W6UXYN.mjs} +19 -26
  21. package/dist/dispatcher.mjs +41 -33
  22. package/dist/{doctor-6NYHQ7YE.mjs → doctor-E6JH4VSN.mjs} +8 -9
  23. package/dist/{domains-OS3DXSDN.mjs → domains-7D7WJAMC.mjs} +5 -6
  24. package/dist/{env-UVO4OIEO.mjs → env-PAENNABF.mjs} +6 -7
  25. package/dist/{explain-O363MCQ2.mjs → explain-SZPLL5MP.mjs} +3 -4
  26. package/dist/{inspect-ULWQHT7J.mjs → inspect-MGVG4Z44.mjs} +3 -4
  27. package/dist/introspect-SDHD3PVX.mjs +8 -0
  28. package/dist/{link-VQN2WPZO.mjs → link-KGNQWCSZ.mjs} +4 -5
  29. package/dist/lint-NM3APP7L.mjs +1327 -0
  30. package/dist/{list-DZTPWNU3.mjs → list-W5JABY7B.mjs} +3 -4
  31. package/dist/{login-UZ5Y7GIO.mjs → login-NCO4P5G5.mjs} +5 -6
  32. package/dist/{logout-XYWZR6QJ.mjs → logout-MF6SOLPE.mjs} +2 -3
  33. package/dist/{logs-YNXDXAF7.mjs → logs-76TCJBIQ.mjs} +4 -5
  34. package/dist/{mock-HFVAAYK2.mjs → mock-CAWNXSGC.mjs} +2 -3
  35. package/dist/{projects-RJ44DJKZ.mjs → projects-U75DOOR7.mjs} +4 -5
  36. package/dist/repo-IE5IOLR5.mjs +8 -0
  37. package/dist/{rollback-Z2PRL7FS.mjs → rollback-ZL3V7SYH.mjs} +5 -6
  38. package/dist/{status-RR3GGTVU.mjs → status-52HG63FE.mjs} +4 -5
  39. package/dist/{unlink-JBVZYOA3.mjs → unlink-TCG3NBAR.mjs} +2 -3
  40. package/dist/{update-QA5WJ6YL.mjs → update-447FR363.mjs} +4 -5
  41. package/dist/{whoami-5G32NNEP.mjs → whoami-B5Y5KSOZ.mjs} +3 -4
  42. package/package.json +3 -2
  43. package/templates/storefront-auto/app/categories/[slug]/page.tsx +1 -0
  44. package/templates/storefront-auto/app/collections/[slug]/page.tsx +1 -0
  45. package/templates/storefront-auto/app/page.tsx +4 -1
  46. package/templates/storefront-auto/app/products/[slug]/page.tsx +1 -0
  47. package/templates/storefront-auto/components/auth-error-toast.tsx +2 -2
  48. package/templates/storefront-auto/package.json +1 -1
  49. package/templates/storefront-bakery/app/categories/[slug]/page.tsx +1 -0
  50. package/templates/storefront-bakery/app/collections/[slug]/page.tsx +1 -0
  51. package/templates/storefront-bakery/app/page.tsx +1 -1
  52. package/templates/storefront-bakery/components/auth-error-toast.tsx +2 -2
  53. package/templates/storefront-bakery/package.json +1 -1
  54. package/templates/storefront-fashion/app/categories/[slug]/page.tsx +1 -0
  55. package/templates/storefront-fashion/app/collections/[slug]/page.tsx +1 -0
  56. package/templates/storefront-fashion/app/page.tsx +1 -1
  57. package/templates/storefront-fashion/app/products/[slug]/page.tsx +1 -0
  58. package/templates/storefront-fashion/components/auth-error-toast.tsx +2 -2
  59. package/templates/storefront-fashion/package.json +1 -1
  60. package/templates/storefront-grocery/app/categories/[slug]/page.tsx +1 -0
  61. package/templates/storefront-grocery/app/collections/[slug]/page.tsx +1 -0
  62. package/templates/storefront-grocery/app/page.tsx +1 -1
  63. package/templates/storefront-grocery/components/auth-error-toast.tsx +2 -2
  64. package/templates/storefront-grocery/package.json +1 -1
  65. package/templates/storefront-pharmacy/app/categories/[slug]/page.tsx +1 -0
  66. package/templates/storefront-pharmacy/app/collections/[slug]/page.tsx +1 -0
  67. package/templates/storefront-pharmacy/app/globals.css +11 -3
  68. package/templates/storefront-pharmacy/app/page.tsx +4 -1
  69. package/templates/storefront-pharmacy/app/products/[slug]/page.tsx +1 -0
  70. package/templates/storefront-pharmacy/components/auth-error-toast.tsx +2 -2
  71. package/templates/storefront-pharmacy/components/pharmacy-hero.tsx +10 -3
  72. package/templates/storefront-pharmacy/components/urgent-ctas.tsx +30 -5
  73. package/templates/storefront-pharmacy/package.json +1 -1
  74. package/templates/storefront-restaurant/app/categories/[slug]/page.tsx +1 -0
  75. package/templates/storefront-restaurant/app/collections/[slug]/page.tsx +1 -0
  76. package/templates/storefront-restaurant/app/page.tsx +1 -1
  77. package/templates/storefront-restaurant/components/auth-error-toast.tsx +2 -2
  78. package/templates/storefront-restaurant/package.json +1 -1
  79. package/templates/storefront-retail/app/categories/[slug]/page.tsx +1 -0
  80. package/templates/storefront-retail/app/collections/[slug]/page.tsx +1 -0
  81. package/templates/storefront-retail/app/page.tsx +1 -1
  82. package/templates/storefront-retail/app/products/[slug]/page.tsx +1 -0
  83. package/templates/storefront-retail/components/auth-error-toast.tsx +2 -2
  84. package/templates/storefront-retail/package.json +1 -1
  85. package/templates/storefront-services/app/book/book-client.tsx +3 -5
  86. package/templates/storefront-services/app/categories/[slug]/page.tsx +1 -0
  87. package/templates/storefront-services/app/collections/[slug]/page.tsx +1 -0
  88. package/templates/storefront-services/app/page.tsx +1 -1
  89. package/templates/storefront-services/components/auth-error-toast.tsx +2 -2
  90. package/templates/storefront-services/package.json +1 -1
  91. package/dist/agent-24IISIOQ.mjs +0 -25
  92. package/dist/chunk-YPC4VU65.mjs +0 -76
  93. package/dist/chunk-YTZ233XM.mjs +0 -2046
  94. package/dist/chunk-ZPVN6UXL.mjs +0 -74
  95. package/dist/introspect-UKSR3JBF.mjs +0 -9
  96. package/dist/repo-OK6CVG3G.mjs +0 -9
@@ -1,8 +1,7 @@
1
1
  #!/usr/bin/env node
2
- import { REGISTRY_INDEX } from './chunk-SVJPU4K7.mjs';
3
- import { parseArgs, flagBool } from './chunk-C4M3DXKC.mjs';
4
- import { CliError, CLI_ERROR_CODE } from './chunk-YPC4VU65.mjs';
5
- import { info, bold, dim, green, result } from './chunk-ZPVN6UXL.mjs';
2
+ import { REGISTRY_INDEX } from './chunk-VCDGYXFU.mjs';
3
+ import { parseArgs, flagBool } from './chunk-5KYR6WJB.mjs';
4
+ import { CliError, CLI_ERROR_CODE, info, bold, dim, green, result } from './chunk-4O4G2CDE.mjs';
6
5
 
7
6
  // src/commands/list.ts
8
7
  async function run(argv) {
@@ -1,10 +1,9 @@
1
1
  #!/usr/bin/env node
2
- import { generatePkcePair, openBrowser } from './chunk-UP7N53C4.mjs';
3
- import { parseArgs, flagString, flagBool } from './chunk-C4M3DXKC.mjs';
4
- import { resolveBaseUrl, ApiClient } from './chunk-JPXK5BLA.mjs';
5
- import { writeAuth } from './chunk-QA36VSLX.mjs';
6
- import { CliError, CLI_ERROR_CODE } from './chunk-YPC4VU65.mjs';
7
- import { success, result, isJsonMode, step, info, dim } from './chunk-ZPVN6UXL.mjs';
2
+ import { generatePkcePair, openBrowser } from './chunk-IK6NQHTG.mjs';
3
+ import { parseArgs, flagString, flagBool } from './chunk-5KYR6WJB.mjs';
4
+ import { resolveBaseUrl, ApiClient } from './chunk-TOQGLBWF.mjs';
5
+ import { writeAuth } from './chunk-6CHBU7O4.mjs';
6
+ import { CliError, CLI_ERROR_CODE, success, result, isJsonMode, step, info, dim } from './chunk-4O4G2CDE.mjs';
8
7
  import os from 'os';
9
8
 
10
9
  var FLAG_API_KEY = "api-key";
@@ -1,7 +1,6 @@
1
1
  #!/usr/bin/env node
2
- import { clearAuth } from './chunk-QA36VSLX.mjs';
3
- import './chunk-YPC4VU65.mjs';
4
- import { success, info, result } from './chunk-ZPVN6UXL.mjs';
2
+ import { clearAuth } from './chunk-6CHBU7O4.mjs';
3
+ import { success, info, result } from './chunk-4O4G2CDE.mjs';
5
4
 
6
5
  // src/commands/logout.ts
7
6
  async function run(_argv) {
@@ -1,10 +1,9 @@
1
1
  #!/usr/bin/env node
2
2
  import { TERMINAL_DEPLOYMENT_STATUSES } from './chunk-MXYUAJEW.mjs';
3
- import { parseArgs, flagString, flagBool } from './chunk-C4M3DXKC.mjs';
4
- import { ApiClient } from './chunk-JPXK5BLA.mjs';
5
- import { readAuth, readProjectLink, readProjectState } from './chunk-QA36VSLX.mjs';
6
- import { CliError, CLI_ERROR_CODE } from './chunk-YPC4VU65.mjs';
7
- import { isJsonMode, failure, result, red } from './chunk-ZPVN6UXL.mjs';
3
+ import { parseArgs, flagString, flagBool } from './chunk-5KYR6WJB.mjs';
4
+ import { ApiClient } from './chunk-TOQGLBWF.mjs';
5
+ import { readAuth, readProjectLink, readProjectState } from './chunk-6CHBU7O4.mjs';
6
+ import { CliError, CLI_ERROR_CODE, isJsonMode, failure, result, red } from './chunk-4O4G2CDE.mjs';
8
7
 
9
8
  // src/commands/logs.ts
10
9
  var FLAG_DEPLOYMENT = "deployment";
@@ -1,7 +1,6 @@
1
1
  #!/usr/bin/env node
2
- import { parseArgs, flagString, flagBool } from './chunk-C4M3DXKC.mjs';
3
- import { CliError, CLI_ERROR_CODE } from './chunk-YPC4VU65.mjs';
4
- import { info, dim } from './chunk-ZPVN6UXL.mjs';
2
+ import { parseArgs, flagString, flagBool } from './chunk-5KYR6WJB.mjs';
3
+ import { CliError, CLI_ERROR_CODE, info, dim } from './chunk-4O4G2CDE.mjs';
5
4
  import { spawn } from 'child_process';
6
5
  import { existsSync, writeFileSync } from 'fs';
7
6
  import path from 'path';
@@ -1,10 +1,9 @@
1
1
  #!/usr/bin/env node
2
2
  import { REPO_PROVIDER } from './chunk-MXYUAJEW.mjs';
3
- import { parseArgs, flagString, flagBool } from './chunk-C4M3DXKC.mjs';
4
- import { ApiClient } from './chunk-JPXK5BLA.mjs';
5
- import { readAuth } from './chunk-QA36VSLX.mjs';
6
- import { CliError, CLI_ERROR_CODE } from './chunk-YPC4VU65.mjs';
7
- import { info, dim, result, bold, success } from './chunk-ZPVN6UXL.mjs';
3
+ import { parseArgs, flagString, flagBool } from './chunk-5KYR6WJB.mjs';
4
+ import { ApiClient } from './chunk-TOQGLBWF.mjs';
5
+ import { readAuth } from './chunk-6CHBU7O4.mjs';
6
+ import { CliError, CLI_ERROR_CODE, info, dim, result, bold, success } from './chunk-4O4G2CDE.mjs';
8
7
 
9
8
  // src/commands/projects.ts
10
9
  var SUB_LS = "ls";
@@ -0,0 +1,8 @@
1
+ #!/usr/bin/env node
2
+ export { run as default, fetchCloneToken, fetchRepoRecord } from './chunk-OE7YRDLH.mjs';
3
+ import './chunk-5ZQURRIM.mjs';
4
+ import './chunk-MXYUAJEW.mjs';
5
+ import './chunk-5KYR6WJB.mjs';
6
+ import './chunk-TOQGLBWF.mjs';
7
+ import './chunk-6CHBU7O4.mjs';
8
+ import './chunk-4O4G2CDE.mjs';
@@ -1,11 +1,10 @@
1
1
  #!/usr/bin/env node
2
- import { pollDeployment } from './chunk-VJJDGHZC.mjs';
2
+ import { pollDeployment } from './chunk-PDGKBATF.mjs';
3
3
  import { DEPLOYMENT_STATUS, DEPLOY_TRIGGER } from './chunk-MXYUAJEW.mjs';
4
- import { parseArgs, flagBool } from './chunk-C4M3DXKC.mjs';
5
- import { ApiClient } from './chunk-JPXK5BLA.mjs';
6
- import { readAuth, readProjectLink, writeProjectState } from './chunk-QA36VSLX.mjs';
7
- import { CliError, CLI_ERROR_CODE, EXIT_CODE } from './chunk-YPC4VU65.mjs';
8
- import { step, success, info, dim, result } from './chunk-ZPVN6UXL.mjs';
4
+ import { parseArgs, flagBool } from './chunk-5KYR6WJB.mjs';
5
+ import { ApiClient } from './chunk-TOQGLBWF.mjs';
6
+ import { readAuth, readProjectLink, writeProjectState } from './chunk-6CHBU7O4.mjs';
7
+ import { CliError, CLI_ERROR_CODE, step, success, info, dim, result, EXIT_CODE } from './chunk-4O4G2CDE.mjs';
9
8
 
10
9
  // src/commands/rollback.ts
11
10
  var FLAG_NO_POLL = "no-poll";
@@ -1,10 +1,9 @@
1
1
  #!/usr/bin/env node
2
2
  import { DEPLOYMENT_STATUS } from './chunk-MXYUAJEW.mjs';
3
- import { parseArgs } from './chunk-C4M3DXKC.mjs';
4
- import { ApiClient } from './chunk-JPXK5BLA.mjs';
5
- import { readAuth, readProjectLink, readProjectState } from './chunk-QA36VSLX.mjs';
6
- import './chunk-YPC4VU65.mjs';
7
- import { bold, dim, info, result } from './chunk-ZPVN6UXL.mjs';
3
+ import { parseArgs } from './chunk-5KYR6WJB.mjs';
4
+ import { ApiClient } from './chunk-TOQGLBWF.mjs';
5
+ import { readAuth, readProjectLink, readProjectState } from './chunk-6CHBU7O4.mjs';
6
+ import { bold, dim, info, result } from './chunk-4O4G2CDE.mjs';
8
7
 
9
8
  // src/commands/status.ts
10
9
  var QUERY_LIMIT = "limit";
@@ -1,7 +1,6 @@
1
1
  #!/usr/bin/env node
2
- import { clearProjectLink } from './chunk-QA36VSLX.mjs';
3
- import './chunk-YPC4VU65.mjs';
4
- import { success, info, result } from './chunk-ZPVN6UXL.mjs';
2
+ import { clearProjectLink } from './chunk-6CHBU7O4.mjs';
3
+ import { success, info, result } from './chunk-4O4G2CDE.mjs';
5
4
 
6
5
  // src/commands/unlink.ts
7
6
  async function run(_argv) {
@@ -1,9 +1,8 @@
1
1
  #!/usr/bin/env node
2
- import { package_default } from './chunk-QKRGKFHE.mjs';
3
- import { promptYesNo } from './chunk-4YIFBYBV.mjs';
4
- import { parseArgs, flagBool, flagString } from './chunk-C4M3DXKC.mjs';
5
- import { CliError, CLI_ERROR_CODE } from './chunk-YPC4VU65.mjs';
6
- import { success, bold, info, dim, result, failure, step, isJsonMode } from './chunk-ZPVN6UXL.mjs';
2
+ import { package_default } from './chunk-7NUSJVN3.mjs';
3
+ import { promptYesNo } from './chunk-5ZQURRIM.mjs';
4
+ import { parseArgs, flagBool, flagString } from './chunk-5KYR6WJB.mjs';
5
+ import { success, bold, info, dim, result, failure, CliError, CLI_ERROR_CODE, step, isJsonMode } from './chunk-4O4G2CDE.mjs';
7
6
  import { spawn } from 'child_process';
8
7
  import { basename, dirname } from 'path';
9
8
 
@@ -1,8 +1,7 @@
1
1
  #!/usr/bin/env node
2
- import { ApiClient } from './chunk-JPXK5BLA.mjs';
3
- import { readAuth } from './chunk-QA36VSLX.mjs';
4
- import './chunk-YPC4VU65.mjs';
5
- import { info, bold, dim, result } from './chunk-ZPVN6UXL.mjs';
2
+ import { ApiClient } from './chunk-TOQGLBWF.mjs';
3
+ import { readAuth } from './chunk-6CHBU7O4.mjs';
4
+ import { info, bold, dim, result } from './chunk-4O4G2CDE.mjs';
6
5
 
7
6
  // src/commands/whoami.ts
8
7
  var ENDPOINT_AUTH_ME = "/v1/auth/me";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cimplify/cli",
3
- "version": "0.13.2",
3
+ "version": "0.13.4",
4
4
  "description": "Cimplify CLI — deploy, manage env vars, link projects, and scaffold storefronts",
5
5
  "keywords": [
6
6
  "cimplify",
@@ -41,7 +41,8 @@
41
41
  "@babel/parser": "^8.0.4",
42
42
  "@babel/traverse": "^8.0.4",
43
43
  "@babel/types": "^8.0.4",
44
- "@cimplify/sdk": "^0.99.2"
44
+ "@cimplify/sdk": "^0.100.4",
45
+ "re2js": "^1.4.0"
45
46
  },
46
47
  "devDependencies": {
47
48
  "@aws-sdk/client-s3": "^3.1070.0",
@@ -42,6 +42,7 @@ async function getCategory(slug: string): Promise<CategoryResult> {
42
42
  cacheOptions: {
43
43
  revalidate: 3600,
44
44
  tags: [
45
+ tags.products(),
45
46
  tags.category(catRes.value.id),
46
47
  tags.categoryProducts(catRes.value.id),
47
48
  ],
@@ -42,6 +42,7 @@ async function getCollection(slug: string): Promise<CollectionResult> {
42
42
  cacheOptions: {
43
43
  revalidate: 3600,
44
44
  tags: [
45
+ tags.products(),
45
46
  tags.collection(colRes.value.id),
46
47
  tags.collectionProducts(colRes.value.id),
47
48
  ],
@@ -19,7 +19,10 @@ export const revalidate = 3600;
19
19
 
20
20
  async function getHomeData() {
21
21
  const client = getServerClient();
22
- const productsRes = await client.catalogue.getProducts({ limit: 12 });
22
+ const productsRes = await client.catalogue.getProducts(
23
+ { limit: 12 },
24
+ { cacheOptions: { revalidate: 3600, tags: [tags.products()] } },
25
+ );
23
26
  const allProducts: Product[] = productsRes.ok ? productsRes.value.items : [];
24
27
 
25
28
  return {
@@ -73,6 +73,7 @@ async function getProduct(slug: string): Promise<ProductResult> {
73
73
  cacheOptions: {
74
74
  revalidate: 3600,
75
75
  tags: [
76
+ tags.products(),
76
77
  tags.product(product.id),
77
78
  tags.categoryProducts(product.category_id),
78
79
  ],
@@ -30,14 +30,14 @@ export function AuthErrorToast() {
30
30
  <div
31
31
  role="status"
32
32
  aria-live="polite"
33
- className="fixed bottom-4 left-1/2 -translate-x-1/2 z-50 max-w-sm rounded-lg bg-zinc-900 text-white px-4 py-3 text-sm shadow-lg flex items-center gap-3"
33
+ className="fixed bottom-4 left-1/2 -translate-x-1/2 z-50 max-w-sm rounded-lg bg-foreground text-background px-4 py-3 text-sm shadow-lg flex items-center gap-3"
34
34
  >
35
35
  <span>{message}</span>
36
36
  <button
37
37
  type="button"
38
38
  onClick={() => setMessage(null)}
39
39
  aria-label="Dismiss"
40
- className="text-zinc-400 hover:text-white transition-colors text-base leading-none"
40
+ className="text-background/60 hover:text-background transition-colors text-base leading-none"
41
41
  >
42
42
  ×
43
43
  </button>
@@ -17,7 +17,7 @@
17
17
  "check": "bun run typecheck && bun run test:run"
18
18
  },
19
19
  "dependencies": {
20
- "@cimplify/sdk": "^0.99.2",
20
+ "@cimplify/sdk": "^0.100.4",
21
21
  "next": "^16.2.6",
22
22
  "react": "^19.0.0",
23
23
  "react-dom": "^19.0.0"
@@ -42,6 +42,7 @@ async function getCategory(slug: string): Promise<CategoryResult> {
42
42
  cacheOptions: {
43
43
  revalidate: 3600,
44
44
  tags: [
45
+ tags.products(),
45
46
  tags.category(catRes.value.id),
46
47
  tags.categoryProducts(catRes.value.id),
47
48
  ],
@@ -42,6 +42,7 @@ async function getCollection(slug: string): Promise<CollectionResult> {
42
42
  cacheOptions: {
43
43
  revalidate: 3600,
44
44
  tags: [
45
+ tags.products(),
45
46
  tags.collection(colRes.value.id),
46
47
  tags.collectionProducts(colRes.value.id),
47
48
  ],
@@ -34,7 +34,7 @@ async function getHomeData() {
34
34
  {
35
35
  cacheOptions: {
36
36
  revalidate: 3600,
37
- tags: [tags.collectionProducts(col.id)],
37
+ tags: [tags.products(), tags.collectionProducts(col.id)],
38
38
  },
39
39
  },
40
40
  );
@@ -30,14 +30,14 @@ export function AuthErrorToast() {
30
30
  <div
31
31
  role="status"
32
32
  aria-live="polite"
33
- className="fixed bottom-4 left-1/2 -translate-x-1/2 z-50 max-w-sm rounded-lg bg-zinc-900 text-white px-4 py-3 text-sm shadow-lg flex items-center gap-3"
33
+ className="fixed bottom-4 left-1/2 -translate-x-1/2 z-50 max-w-sm rounded-lg bg-foreground text-background px-4 py-3 text-sm shadow-lg flex items-center gap-3"
34
34
  >
35
35
  <span>{message}</span>
36
36
  <button
37
37
  type="button"
38
38
  onClick={() => setMessage(null)}
39
39
  aria-label="Dismiss"
40
- className="text-zinc-400 hover:text-white transition-colors text-base leading-none"
40
+ className="text-background/60 hover:text-background transition-colors text-base leading-none"
41
41
  >
42
42
  ×
43
43
  </button>
@@ -17,7 +17,7 @@
17
17
  "check": "bun run typecheck && bun run test:run"
18
18
  },
19
19
  "dependencies": {
20
- "@cimplify/sdk": "^0.99.2",
20
+ "@cimplify/sdk": "^0.100.4",
21
21
  "next": "^16.2.6",
22
22
  "react": "^19.0.0",
23
23
  "react-dom": "^19.0.0"
@@ -42,6 +42,7 @@ async function getCategory(slug: string): Promise<CategoryResult> {
42
42
  cacheOptions: {
43
43
  revalidate: 3600,
44
44
  tags: [
45
+ tags.products(),
45
46
  tags.category(catRes.value.id),
46
47
  tags.categoryProducts(catRes.value.id),
47
48
  ],
@@ -42,6 +42,7 @@ async function getCollection(slug: string): Promise<CollectionResult> {
42
42
  cacheOptions: {
43
43
  revalidate: 3600,
44
44
  tags: [
45
+ tags.products(),
45
46
  tags.collection(colRes.value.id),
46
47
  tags.collectionProducts(colRes.value.id),
47
48
  ],
@@ -51,7 +51,7 @@ async function getHomeData() {
51
51
  {
52
52
  cacheOptions: {
53
53
  revalidate: 3600,
54
- tags: [tags.collectionProducts(col.id)],
54
+ tags: [tags.products(), tags.collectionProducts(col.id)],
55
55
  },
56
56
  },
57
57
  );
@@ -73,6 +73,7 @@ async function getProduct(slug: string): Promise<ProductResult> {
73
73
  cacheOptions: {
74
74
  revalidate: 3600,
75
75
  tags: [
76
+ tags.products(),
76
77
  tags.product(product.id),
77
78
  tags.categoryProducts(product.category_id),
78
79
  ],
@@ -30,14 +30,14 @@ export function AuthErrorToast() {
30
30
  <div
31
31
  role="status"
32
32
  aria-live="polite"
33
- className="fixed bottom-4 left-1/2 -translate-x-1/2 z-50 max-w-sm rounded-lg bg-zinc-900 text-white px-4 py-3 text-sm shadow-lg flex items-center gap-3"
33
+ className="fixed bottom-4 left-1/2 -translate-x-1/2 z-50 max-w-sm rounded-lg bg-foreground text-background px-4 py-3 text-sm shadow-lg flex items-center gap-3"
34
34
  >
35
35
  <span>{message}</span>
36
36
  <button
37
37
  type="button"
38
38
  onClick={() => setMessage(null)}
39
39
  aria-label="Dismiss"
40
- className="text-zinc-400 hover:text-white transition-colors text-base leading-none"
40
+ className="text-background/60 hover:text-background transition-colors text-base leading-none"
41
41
  >
42
42
  ×
43
43
  </button>
@@ -19,7 +19,7 @@
19
19
  "check": "bun run typecheck && bun run test:run"
20
20
  },
21
21
  "dependencies": {
22
- "@cimplify/sdk": "^0.99.2",
22
+ "@cimplify/sdk": "^0.100.4",
23
23
  "next": "^16.2.6",
24
24
  "react": "^19.0.0",
25
25
  "react-dom": "^19.0.0"
@@ -42,6 +42,7 @@ async function getCategory(slug: string): Promise<CategoryResult> {
42
42
  cacheOptions: {
43
43
  revalidate: 3600,
44
44
  tags: [
45
+ tags.products(),
45
46
  tags.category(catRes.value.id),
46
47
  tags.categoryProducts(catRes.value.id),
47
48
  ],
@@ -42,6 +42,7 @@ async function getCollection(slug: string): Promise<CollectionResult> {
42
42
  cacheOptions: {
43
43
  revalidate: 3600,
44
44
  tags: [
45
+ tags.products(),
45
46
  tags.collection(colRes.value.id),
46
47
  tags.collectionProducts(colRes.value.id),
47
48
  ],
@@ -34,7 +34,7 @@ async function getHomeData() {
34
34
  {
35
35
  cacheOptions: {
36
36
  revalidate: 3600,
37
- tags: [tags.collectionProducts(col.id)],
37
+ tags: [tags.products(), tags.collectionProducts(col.id)],
38
38
  },
39
39
  },
40
40
  );
@@ -30,14 +30,14 @@ export function AuthErrorToast() {
30
30
  <div
31
31
  role="status"
32
32
  aria-live="polite"
33
- className="fixed bottom-4 left-1/2 -translate-x-1/2 z-50 max-w-sm rounded-lg bg-zinc-900 text-white px-4 py-3 text-sm shadow-lg flex items-center gap-3"
33
+ className="fixed bottom-4 left-1/2 -translate-x-1/2 z-50 max-w-sm rounded-lg bg-foreground text-background px-4 py-3 text-sm shadow-lg flex items-center gap-3"
34
34
  >
35
35
  <span>{message}</span>
36
36
  <button
37
37
  type="button"
38
38
  onClick={() => setMessage(null)}
39
39
  aria-label="Dismiss"
40
- className="text-zinc-400 hover:text-white transition-colors text-base leading-none"
40
+ className="text-background/60 hover:text-background transition-colors text-base leading-none"
41
41
  >
42
42
  ×
43
43
  </button>
@@ -17,7 +17,7 @@
17
17
  "check": "bun run typecheck && bun run test:run"
18
18
  },
19
19
  "dependencies": {
20
- "@cimplify/sdk": "^0.99.2",
20
+ "@cimplify/sdk": "^0.100.4",
21
21
  "next": "^16.2.6",
22
22
  "react": "^19.0.0",
23
23
  "react-dom": "^19.0.0"
@@ -42,6 +42,7 @@ async function getCategory(slug: string): Promise<CategoryResult> {
42
42
  cacheOptions: {
43
43
  revalidate: 3600,
44
44
  tags: [
45
+ tags.products(),
45
46
  tags.category(catRes.value.id),
46
47
  tags.categoryProducts(catRes.value.id),
47
48
  ],
@@ -42,6 +42,7 @@ async function getCollection(slug: string): Promise<CollectionResult> {
42
42
  cacheOptions: {
43
43
  revalidate: 3600,
44
44
  tags: [
45
+ tags.products(),
45
46
  tags.collection(colRes.value.id),
46
47
  tags.collectionProducts(colRes.value.id),
47
48
  ],
@@ -23,6 +23,7 @@
23
23
  --color-accent-foreground: oklch(0.28 0.1 195);
24
24
  --color-destructive: oklch(0.58 0.24 27);
25
25
  --color-destructive-foreground: oklch(0.99 0 0);
26
+ --color-success: oklch(0.72 0.18 150);
26
27
  --color-border: oklch(0.92 0.01 180);
27
28
  --color-input: oklch(0.94 0.01 180);
28
29
  --color-ring: oklch(0.58 0.12 195);
@@ -30,7 +31,8 @@
30
31
  }
31
32
 
32
33
  @layer base {
33
- html, body {
34
+ html,
35
+ body {
34
36
  margin: 0;
35
37
  padding: 0;
36
38
  background: var(--color-background);
@@ -38,8 +40,14 @@
38
40
  -webkit-font-smoothing: antialiased;
39
41
  -moz-osx-font-smoothing: grayscale;
40
42
  }
41
- a { color: inherit; text-decoration: none; }
42
- h1, h2, h3, h4 {
43
+ a {
44
+ color: inherit;
45
+ text-decoration: none;
46
+ }
47
+ h1,
48
+ h2,
49
+ h3,
50
+ h4 {
43
51
  font-family: var(--font-sans);
44
52
  letter-spacing: -0.02em;
45
53
  font-weight: 600;
@@ -20,7 +20,10 @@ export const revalidate = 3600;
20
20
 
21
21
  async function getHomeData() {
22
22
  const client = getServerClient();
23
- const productsRes = await client.catalogue.getProducts({ limit: 12 });
23
+ const productsRes = await client.catalogue.getProducts(
24
+ { limit: 12 },
25
+ { cacheOptions: { revalidate: 3600, tags: [tags.products()] } },
26
+ );
24
27
  const allProducts: Product[] = productsRes.ok ? productsRes.value.items : [];
25
28
 
26
29
  return {
@@ -73,6 +73,7 @@ async function getProduct(slug: string): Promise<ProductResult> {
73
73
  cacheOptions: {
74
74
  revalidate: 3600,
75
75
  tags: [
76
+ tags.products(),
76
77
  tags.product(product.id),
77
78
  tags.categoryProducts(product.category_id),
78
79
  ],
@@ -30,14 +30,14 @@ export function AuthErrorToast() {
30
30
  <div
31
31
  role="status"
32
32
  aria-live="polite"
33
- className="fixed bottom-4 left-1/2 -translate-x-1/2 z-50 max-w-sm rounded-lg bg-zinc-900 text-white px-4 py-3 text-sm shadow-lg flex items-center gap-3"
33
+ className="fixed bottom-4 left-1/2 -translate-x-1/2 z-50 max-w-sm rounded-lg bg-foreground text-background px-4 py-3 text-sm shadow-lg flex items-center gap-3"
34
34
  >
35
35
  <span>{message}</span>
36
36
  <button
37
37
  type="button"
38
38
  onClick={() => setMessage(null)}
39
39
  aria-label="Dismiss"
40
- className="text-zinc-400 hover:text-white transition-colors text-base leading-none"
40
+ className="text-background/60 hover:text-background transition-colors text-base leading-none"
41
41
  >
42
42
  ×
43
43
  </button>
@@ -18,7 +18,7 @@ export function PharmacyHero() {
18
18
  <div className="grid grid-cols-1 lg:grid-cols-[1.4fr_1fr] gap-10 lg:gap-14 items-end">
19
19
  <div>
20
20
  <span className="inline-flex items-center gap-2 mb-6 px-3 py-1.5 rounded-full bg-background/10 text-background/90 text-[11px] font-mono uppercase tracking-[0.18em]">
21
- <span className="grid place-items-center w-1.5 h-1.5 rounded-full bg-green-400 animate-pulse" />
21
+ <span className="grid place-items-center w-1.5 h-1.5 rounded-full bg-success animate-pulse" />
22
22
  {brand.hero.badge}
23
23
  </span>
24
24
  <h1 className="text-[clamp(2.5rem,6.4vw,5.25rem)] font-bold m-0 -tracking-[0.04em] leading-[0.98]">
@@ -76,7 +76,7 @@ function InfoChip({ eyebrow, value, live }: InfoChipProps) {
76
76
  {eyebrow}
77
77
  </span>
78
78
  {live && (
79
- <span className="grid place-items-center w-1.5 h-1.5 rounded-full bg-green-400 animate-pulse" />
79
+ <span className="grid place-items-center w-1.5 h-1.5 rounded-full bg-success animate-pulse" />
80
80
  )}
81
81
  </div>
82
82
  <p className="text-sm font-semibold text-background -tracking-[0.01em] leading-snug">
@@ -88,7 +88,14 @@ function InfoChip({ eyebrow, value, live }: InfoChipProps) {
88
88
 
89
89
  function ArrowIcon() {
90
90
  return (
91
- <svg viewBox="0 0 24 24" fill="none" stroke="currentColor" strokeWidth="2" className="w-3.5 h-3.5" aria-hidden>
91
+ <svg
92
+ viewBox="0 0 24 24"
93
+ fill="none"
94
+ stroke="currentColor"
95
+ strokeWidth="2"
96
+ className="w-3.5 h-3.5"
97
+ aria-hidden
98
+ >
92
99
  <path d="M5 12h14M13 6l6 6-6 6" strokeLinecap="round" strokeLinejoin="round" />
93
100
  </svg>
94
101
  );
@@ -46,7 +46,7 @@ export function UrgentCtas() {
46
46
  {consult.eyebrow}
47
47
  </span>
48
48
  <span className="inline-flex items-center gap-2 px-2 py-0.5 rounded-full bg-background/10 text-background/85 text-[10px] font-mono uppercase tracking-[0.14em]">
49
- <span className="grid place-items-center w-1.5 h-1.5 rounded-full bg-green-400 animate-pulse" />
49
+ <span className="grid place-items-center w-1.5 h-1.5 rounded-full bg-success animate-pulse" />
50
50
  {consult.hoursLabel}
51
51
  </span>
52
52
  </div>
@@ -88,10 +88,21 @@ function UploadIllustration() {
88
88
  return (
89
89
  <div className="relative h-24 sm:h-28 rounded-xl border border-dashed border-primary/40 bg-primary/[0.04] grid place-items-center overflow-hidden">
90
90
  <div className="flex flex-col items-center gap-1.5 text-primary/80">
91
- <svg viewBox="0 0 24 24" fill="none" stroke="currentColor" strokeWidth="1.5" className="w-7 h-7" aria-hidden>
91
+ <svg
92
+ viewBox="0 0 24 24"
93
+ fill="none"
94
+ stroke="currentColor"
95
+ strokeWidth="1.5"
96
+ className="w-7 h-7"
97
+ aria-hidden
98
+ >
92
99
  <path d="M12 3v12" strokeLinecap="round" />
93
100
  <path d="M7 8l5-5 5 5" strokeLinecap="round" strokeLinejoin="round" />
94
- <path d="M5 17v3a1 1 0 0 0 1 1h12a1 1 0 0 0 1-1v-3" strokeLinecap="round" strokeLinejoin="round" />
101
+ <path
102
+ d="M5 17v3a1 1 0 0 0 1 1h12a1 1 0 0 0 1-1v-3"
103
+ strokeLinecap="round"
104
+ strokeLinejoin="round"
105
+ />
95
106
  </svg>
96
107
  <span className="text-[11px] font-mono uppercase tracking-[0.16em]">Drag · JPG · PDF</span>
97
108
  </div>
@@ -101,7 +112,14 @@ function UploadIllustration() {
101
112
 
102
113
  function LockIcon() {
103
114
  return (
104
- <svg viewBox="0 0 24 24" fill="none" stroke="currentColor" strokeWidth="1.5" className="w-3 h-3" aria-hidden>
115
+ <svg
116
+ viewBox="0 0 24 24"
117
+ fill="none"
118
+ stroke="currentColor"
119
+ strokeWidth="1.5"
120
+ className="w-3 h-3"
121
+ aria-hidden
122
+ >
105
123
  <rect x="5" y="11" width="14" height="9" rx="2" />
106
124
  <path d="M8 11V8a4 4 0 0 1 8 0v3" />
107
125
  </svg>
@@ -110,7 +128,14 @@ function LockIcon() {
110
128
 
111
129
  function ArrowIcon() {
112
130
  return (
113
- <svg viewBox="0 0 24 24" fill="none" stroke="currentColor" strokeWidth="2" className="w-3.5 h-3.5" aria-hidden>
131
+ <svg
132
+ viewBox="0 0 24 24"
133
+ fill="none"
134
+ stroke="currentColor"
135
+ strokeWidth="2"
136
+ className="w-3.5 h-3.5"
137
+ aria-hidden
138
+ >
114
139
  <path d="M5 12h14M13 6l6 6-6 6" strokeLinecap="round" strokeLinejoin="round" />
115
140
  </svg>
116
141
  );