@cimplify/cli 0.6.14 → 0.6.16

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 (82) hide show
  1. package/dist/{add-6SPMUMSJ.mjs → add-BBVSJ5ZJ.mjs} +1 -1
  2. package/dist/chunk-F5EGUNQZ.mjs +5707 -0
  3. package/dist/{chunk-CNIFXKZV.mjs → chunk-GL2J7272.mjs} +1 -1
  4. package/dist/{chunk-RGF2RSSR.mjs → chunk-KCKMGRII.mjs} +2 -2
  5. package/dist/dispatcher.mjs +9 -9
  6. package/dist/{doctor-726TVOXT.mjs → doctor-T6NA3EMW.mjs} +2 -2
  7. package/dist/{explain-6BWR5MCK.mjs → explain-22NV6OL6.mjs} +2 -2
  8. package/dist/{introspect-4LD27NVX.mjs → introspect-QOW24PJF.mjs} +2 -2
  9. package/dist/{list-2YRVKBXY.mjs → list-JHUIIMC2.mjs} +1 -1
  10. package/dist/{update-J65Z6Q7E.mjs → update-IOMLDQEN.mjs} +1 -1
  11. package/package.json +2 -2
  12. package/templates/storefront-auto/app/categories/[slug]/page.tsx +2 -2
  13. package/templates/storefront-auto/app/collections/[slug]/page.tsx +2 -2
  14. package/templates/storefront-auto/app/llms.txt/route.ts +2 -2
  15. package/templates/storefront-auto/app/page.tsx +2 -2
  16. package/templates/storefront-auto/app/products/[slug]/page.tsx +9 -4
  17. package/templates/storefront-auto/app/shop/page.tsx +2 -2
  18. package/templates/storefront-auto/app/sitemap-page/page.tsx +2 -2
  19. package/templates/storefront-auto/bun.lock +10 -681
  20. package/templates/storefront-auto/package.json +1 -1
  21. package/templates/storefront-bakery/app/categories/[slug]/page.tsx +2 -2
  22. package/templates/storefront-bakery/app/collections/[slug]/page.tsx +2 -2
  23. package/templates/storefront-bakery/app/llms.txt/route.ts +2 -2
  24. package/templates/storefront-bakery/app/page.tsx +2 -2
  25. package/templates/storefront-bakery/app/shop/page.tsx +2 -2
  26. package/templates/storefront-bakery/app/sitemap-page/page.tsx +2 -2
  27. package/templates/storefront-bakery/bun.lock +10 -681
  28. package/templates/storefront-bakery/package.json +1 -1
  29. package/templates/storefront-fashion/app/categories/[slug]/page.tsx +2 -2
  30. package/templates/storefront-fashion/app/collections/[slug]/page.tsx +2 -2
  31. package/templates/storefront-fashion/app/llms.txt/route.ts +2 -2
  32. package/templates/storefront-fashion/app/page.tsx +2 -2
  33. package/templates/storefront-fashion/app/products/[slug]/page.tsx +9 -4
  34. package/templates/storefront-fashion/app/shop/page.tsx +2 -2
  35. package/templates/storefront-fashion/app/sitemap-page/page.tsx +2 -2
  36. package/templates/storefront-fashion/bun.lock +12 -683
  37. package/templates/storefront-fashion/package.json +1 -1
  38. package/templates/storefront-grocery/app/categories/[slug]/page.tsx +2 -2
  39. package/templates/storefront-grocery/app/collections/[slug]/page.tsx +2 -2
  40. package/templates/storefront-grocery/app/llms.txt/route.ts +2 -2
  41. package/templates/storefront-grocery/app/page.tsx +2 -2
  42. package/templates/storefront-grocery/app/shop/page.tsx +2 -2
  43. package/templates/storefront-grocery/app/sitemap-page/page.tsx +2 -2
  44. package/templates/storefront-grocery/bun.lock +10 -681
  45. package/templates/storefront-grocery/package.json +1 -1
  46. package/templates/storefront-pharmacy/app/categories/[slug]/page.tsx +2 -2
  47. package/templates/storefront-pharmacy/app/collections/[slug]/page.tsx +2 -2
  48. package/templates/storefront-pharmacy/app/llms.txt/route.ts +2 -2
  49. package/templates/storefront-pharmacy/app/page.tsx +2 -2
  50. package/templates/storefront-pharmacy/app/products/[slug]/page.tsx +9 -4
  51. package/templates/storefront-pharmacy/app/shop/page.tsx +2 -2
  52. package/templates/storefront-pharmacy/app/sitemap-page/page.tsx +2 -2
  53. package/templates/storefront-pharmacy/bun.lock +10 -681
  54. package/templates/storefront-pharmacy/package.json +1 -1
  55. package/templates/storefront-restaurant/app/categories/[slug]/page.tsx +2 -2
  56. package/templates/storefront-restaurant/app/collections/[slug]/page.tsx +2 -2
  57. package/templates/storefront-restaurant/app/llms.txt/route.ts +2 -2
  58. package/templates/storefront-restaurant/app/page.tsx +2 -2
  59. package/templates/storefront-restaurant/app/reservations/page.tsx +2 -2
  60. package/templates/storefront-restaurant/app/shop/page.tsx +2 -2
  61. package/templates/storefront-restaurant/app/sitemap-page/page.tsx +2 -2
  62. package/templates/storefront-restaurant/bun.lock +10 -681
  63. package/templates/storefront-restaurant/package.json +1 -1
  64. package/templates/storefront-retail/app/categories/[slug]/page.tsx +2 -2
  65. package/templates/storefront-retail/app/collections/[slug]/page.tsx +2 -2
  66. package/templates/storefront-retail/app/llms.txt/route.ts +2 -2
  67. package/templates/storefront-retail/app/page.tsx +2 -2
  68. package/templates/storefront-retail/app/products/[slug]/page.tsx +9 -4
  69. package/templates/storefront-retail/app/shop/page.tsx +2 -2
  70. package/templates/storefront-retail/app/sitemap-page/page.tsx +2 -2
  71. package/templates/storefront-retail/bun.lock +10 -681
  72. package/templates/storefront-retail/package.json +1 -1
  73. package/templates/storefront-services/app/book/page.tsx +2 -2
  74. package/templates/storefront-services/app/categories/[slug]/page.tsx +2 -2
  75. package/templates/storefront-services/app/collections/[slug]/page.tsx +2 -2
  76. package/templates/storefront-services/app/llms.txt/route.ts +2 -2
  77. package/templates/storefront-services/app/page.tsx +2 -2
  78. package/templates/storefront-services/app/shop/page.tsx +2 -2
  79. package/templates/storefront-services/app/sitemap-page/page.tsx +2 -2
  80. package/templates/storefront-services/bun.lock +10 -681
  81. package/templates/storefront-services/package.json +1 -1
  82. package/dist/chunk-RIOQDUQO.mjs +0 -5707
@@ -17,7 +17,7 @@
17
17
  "check": "bun run typecheck && bun run test:run"
18
18
  },
19
19
  "dependencies": {
20
- "@cimplify/sdk": "^0.49.0",
20
+ "@cimplify/sdk": "^0.49.2",
21
21
  "next": "^16.2.6",
22
22
  "react": "^19.0.0",
23
23
  "react-dom": "^19.0.0"
@@ -1,7 +1,7 @@
1
1
  import type { Metadata } from "next";
2
2
  import { Suspense } from "react";
3
3
  import { cacheTag, cacheLife } from "next/cache";
4
- import { getServerClient, tags, type Product } from "@cimplify/sdk/server";
4
+ import { CACHE_LIFE_DEFAULT, getServerClient, tags, type Product } from "@cimplify/sdk/server";
5
5
  import { BookClient } from "./book-client";
6
6
  import { brand } from "@/lib/brand";
7
7
 
@@ -13,7 +13,7 @@ export const metadata: Metadata = {
13
13
  async function getTreatments(): Promise<Product[]> {
14
14
  "use cache";
15
15
  cacheTag(tags.products());
16
- cacheLife("hours");
16
+ cacheLife(CACHE_LIFE_DEFAULT);
17
17
 
18
18
  const client = getServerClient();
19
19
  const r = await client.catalogue.getProducts({ limit: 50 });
@@ -4,7 +4,7 @@ import Link from "next/link";
4
4
  import { notFound } from "next/navigation";
5
5
  import { cacheTag, cacheLife } from "next/cache";
6
6
  import {
7
- getServerClient,
7
+ CACHE_LIFE_DEFAULT, getServerClient,
8
8
  tags,
9
9
  type Category,
10
10
  type Product,
@@ -20,7 +20,7 @@ interface CategoryData {
20
20
  async function getCategory(slug: string): Promise<CategoryData | null> {
21
21
  "use cache";
22
22
  cacheTag(tags.categories());
23
- cacheLife("hours");
23
+ cacheLife(CACHE_LIFE_DEFAULT);
24
24
 
25
25
  const client = getServerClient();
26
26
  const catRes = await client.catalogue.getCategoryBySlug(slug);
@@ -4,7 +4,7 @@ import Link from "next/link";
4
4
  import { notFound } from "next/navigation";
5
5
  import { cacheTag, cacheLife } from "next/cache";
6
6
  import {
7
- getServerClient,
7
+ CACHE_LIFE_DEFAULT, getServerClient,
8
8
  tags,
9
9
  type Collection,
10
10
  type Product,
@@ -20,7 +20,7 @@ interface CollectionData {
20
20
  async function getCollection(slug: string): Promise<CollectionData | null> {
21
21
  "use cache";
22
22
  cacheTag(tags.collections());
23
- cacheLife("hours");
23
+ cacheLife(CACHE_LIFE_DEFAULT);
24
24
 
25
25
  const client = getServerClient();
26
26
  const colRes = await client.catalogue.getCollectionBySlug(slug);
@@ -1,12 +1,12 @@
1
1
  import { cacheTag, cacheLife } from "next/cache";
2
- import { getServerClient, tags, type Product } from "@cimplify/sdk/server";
2
+ import { CACHE_LIFE_DEFAULT, getServerClient, tags, type Product } from "@cimplify/sdk/server";
3
3
  import { brand } from "@/lib/brand";
4
4
  import { getSiteUrl } from "@/lib/site-url";
5
5
 
6
6
  async function buildLlmsTxt(SITE_URL: string): Promise<string> {
7
7
  "use cache";
8
8
  cacheTag(tags.products(), tags.categories(), tags.collections());
9
- cacheLife("hours");
9
+ cacheLife(CACHE_LIFE_DEFAULT);
10
10
 
11
11
  const client = getServerClient();
12
12
  const [productsRes, categoriesRes, collectionsRes] = await Promise.all([
@@ -1,7 +1,7 @@
1
1
  import type { Metadata } from "next";
2
2
  import { Suspense } from "react";
3
3
  import { cacheTag, cacheLife } from "next/cache";
4
- import { getServerClient, tags, type Product } from "@cimplify/sdk/server";
4
+ import { CACHE_LIFE_DEFAULT, getServerClient, tags, type Product } from "@cimplify/sdk/server";
5
5
  import { Hero } from "@/components/hero";
6
6
  import { CollectionStrip } from "@/components/collection-strip";
7
7
  import { CategoryGrid } from "@/components/category-grid";
@@ -15,7 +15,7 @@ export const metadata: Metadata = {
15
15
  async function getHomeData() {
16
16
  "use cache";
17
17
  cacheTag(tags.collections(), tags.categories(), tags.products());
18
- cacheLife("hours");
18
+ cacheLife(CACHE_LIFE_DEFAULT);
19
19
 
20
20
  const client = getServerClient();
21
21
  const [colRes, catRes] = await Promise.all([
@@ -1,6 +1,6 @@
1
1
  import type { Metadata } from "next";
2
2
  import { cacheTag, cacheLife } from "next/cache";
3
- import { getServerClient, tags } from "@cimplify/sdk/server";
3
+ import { CACHE_LIFE_DEFAULT, getServerClient, tags } from "@cimplify/sdk/server";
4
4
  import { ShopClient } from "./shop-client";
5
5
  import { brand } from "@/lib/brand";
6
6
 
@@ -12,7 +12,7 @@ export const metadata: Metadata = {
12
12
  async function getShopData() {
13
13
  "use cache";
14
14
  cacheTag(tags.products(), tags.categories());
15
- cacheLife("hours");
15
+ cacheLife(CACHE_LIFE_DEFAULT);
16
16
 
17
17
  const client = getServerClient();
18
18
  const [p, c] = await Promise.all([
@@ -1,7 +1,7 @@
1
1
  import type { Metadata } from "next";
2
2
  import Link from "next/link";
3
3
  import { cacheTag, cacheLife } from "next/cache";
4
- import { getServerClient, tags, type Product } from "@cimplify/sdk/server";
4
+ import { CACHE_LIFE_DEFAULT, getServerClient, tags, type Product } from "@cimplify/sdk/server";
5
5
  import { brand } from "@/lib/brand";
6
6
 
7
7
  export const metadata: Metadata = {
@@ -18,7 +18,7 @@ interface SitemapData {
18
18
  async function getSitemap(): Promise<SitemapData> {
19
19
  "use cache";
20
20
  cacheTag(tags.products(), tags.categories(), tags.collections());
21
- cacheLife("hours");
21
+ cacheLife(CACHE_LIFE_DEFAULT);
22
22
 
23
23
  const client = getServerClient();
24
24
  const [pRes, cRes, colRes] = await Promise.all([