@cimplify/sdk 0.42.1 → 0.44.0

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 (34) hide show
  1. package/dist/dispatcher.mjs +1 -1
  2. package/dist/mock/cli.mjs +439 -2
  3. package/dist/mock/library.d.mts +2 -2
  4. package/dist/mock/library.d.ts +2 -2
  5. package/dist/mock/library.js +438 -1
  6. package/dist/mock/library.mjs +438 -1
  7. package/dist/mock/msw.d.mts +1 -1
  8. package/dist/mock/msw.d.ts +1 -1
  9. package/dist/mock/msw.js +438 -1
  10. package/dist/mock/msw.mjs +438 -1
  11. package/dist/{server-CVEsjECc.d.mts → server-DD-Cd1Ob.d.mts} +1 -1
  12. package/dist/{server-CVEsjECc.d.ts → server-DD-Cd1Ob.d.ts} +1 -1
  13. package/package.json +1 -1
  14. package/templates/storefront-bakery/.claude/skills/cimplify-storefront/SKILL.md +145 -0
  15. package/templates/storefront-bakery/.cursor/rules/cimplify-storefront.mdc +25 -0
  16. package/templates/storefront-bakery/CLAUDE.md +22 -0
  17. package/templates/storefront-fashion/.claude/skills/cimplify-storefront/SKILL.md +145 -0
  18. package/templates/storefront-fashion/.cursor/rules/cimplify-storefront.mdc +25 -0
  19. package/templates/storefront-fashion/.env.example +2 -2
  20. package/templates/storefront-fashion/CLAUDE.md +22 -0
  21. package/templates/storefront-fashion/lib/brand.ts +2 -2
  22. package/templates/storefront-fashion/package.json +3 -3
  23. package/templates/storefront-grocery/.claude/skills/cimplify-storefront/SKILL.md +145 -0
  24. package/templates/storefront-grocery/.cursor/rules/cimplify-storefront.mdc +25 -0
  25. package/templates/storefront-grocery/CLAUDE.md +22 -0
  26. package/templates/storefront-restaurant/.claude/skills/cimplify-storefront/SKILL.md +145 -0
  27. package/templates/storefront-restaurant/.cursor/rules/cimplify-storefront.mdc +25 -0
  28. package/templates/storefront-restaurant/CLAUDE.md +22 -0
  29. package/templates/storefront-retail/.claude/skills/cimplify-storefront/SKILL.md +145 -0
  30. package/templates/storefront-retail/.cursor/rules/cimplify-storefront.mdc +25 -0
  31. package/templates/storefront-retail/CLAUDE.md +22 -0
  32. package/templates/storefront-services/.claude/skills/cimplify-storefront/SKILL.md +145 -0
  33. package/templates/storefront-services/.cursor/rules/cimplify-storefront.mdc +25 -0
  34. package/templates/storefront-services/CLAUDE.md +22 -0
@@ -7994,6 +7994,442 @@ function seedGrocery(registry) {
7994
7994
  return { businessId };
7995
7995
  }
7996
7996
 
7997
+ // src/mock/seeds/fashion.ts
7998
+ var ISO8 = "2026-01-01T00:00:00.000Z";
7999
+ var img3 = (id) => `https://images.unsplash.com/photo-${id}?w=900&h=1200&fit=crop&auto=format&q=80`;
8000
+ var PHOTO2 = {
8001
+ "heavyweight-hoodie-charcoal": "1556905055-8f358a7a47b2",
8002
+ "heavyweight-hoodie-cream": "1576566588028-4147f3842f27",
8003
+ "heavyweight-hoodie-cobalt": "1542838686-37da4a9fd1b3",
8004
+ "studio-tee-black": "1521572163474-6864f9cf17ab",
8005
+ "studio-tee-natural": "1485518882345-15568b007407",
8006
+ "graphic-tee-frx-mark": "1521223890158-f9f7c3d5d504",
8007
+ "carbon-bomber": "1591047139829-d91aecb6caea",
8008
+ "field-jacket-olive": "1564859228273-274232fdb516",
8009
+ "wide-leg-trouser": "1542272604-787c3835535d",
8010
+ "track-pant-charcoal": "1604176354204-9268737828e4",
8011
+ "studio-cap": "1620799140408-edc6dcb6d633",
8012
+ "tote-natural": "1591195853828-11db59a44f6b",
8013
+ "knit-beanie": "1542838132-92c53300491e",
8014
+ "studio-sock-3pack": "1602810318383-e386cc2a3ccf"
8015
+ };
8016
+ var photoFor2 = (slug) => img3(PHOTO2[slug] ?? "1556905055-8f358a7a47b2");
8017
+ var SIZES = ["XS", "S", "M", "L", "XL", "2XL"];
8018
+ function seedFashion(registry) {
8019
+ const businessId = "bus_studio_frx";
8020
+ const business = {
8021
+ id: businessId,
8022
+ name: "Studio FRX",
8023
+ handle: "studiofrx",
8024
+ business_type: "retail",
8025
+ email: "hello@studiofrx.test",
8026
+ default_currency: "GHS",
8027
+ default_phone: "+233244000000",
8028
+ default_address: "Osu Oxford Street, Accra",
8029
+ default_offers_table_service: false,
8030
+ default_accepts_online_orders: true,
8031
+ image: img3("1490481651871-ab68de25d43d"),
8032
+ status: "active",
8033
+ created_at: ISO8,
8034
+ updated_at: ISO8,
8035
+ created_by: "seed",
8036
+ preferences: {
8037
+ tagline: "Limited-run streetwear from Accra",
8038
+ description: "Heavyweight cotton, garment-dyed in Tema, hand-screened. Each drop is a closed run \u2014 when it's gone, it's gone.",
8039
+ instagram: "https://instagram.com/studiofrx",
8040
+ theme: "monochrome",
8041
+ checkout: { allow_guest: true }
8042
+ },
8043
+ is_online_only: false,
8044
+ enabled_payment_types: ["card", "mobile_money"],
8045
+ default_location_settings: {},
8046
+ country_code: "GH",
8047
+ timezone: "Africa/Accra"
8048
+ };
8049
+ registry.businesses.put(businessId, business);
8050
+ const categories = [
8051
+ { slug: "new-arrivals", name: "New Arrivals", description: "Just dropped \u2014 the latest from the studio." },
8052
+ { slug: "hoodies", name: "Hoodies", description: "Heavyweight 500gsm, garment-dyed in Tema." },
8053
+ { slug: "tees", name: "Tees", description: "14oz cotton, oversized cut, hand-screened." },
8054
+ { slug: "outerwear", name: "Outerwear", description: "Bombers, field jackets, made for layering." },
8055
+ { slug: "bottoms", name: "Bottoms", description: "Wide-leg trousers and track pants." },
8056
+ { slug: "accessories", name: "Accessories", description: "Caps, totes, beanies, socks." }
8057
+ ];
8058
+ const catIds = /* @__PURE__ */ new Map();
8059
+ for (const c of categories) {
8060
+ const id = `cat_${c.slug}`;
8061
+ catIds.set(c.slug, id);
8062
+ const cat = {
8063
+ id,
8064
+ business_id: businessId,
8065
+ name: c.name,
8066
+ slug: c.slug,
8067
+ description: c.description,
8068
+ product_ids: [],
8069
+ display_order: 0,
8070
+ is_active: true,
8071
+ created_at: ISO8,
8072
+ updated_at: ISO8
8073
+ };
8074
+ registry.categories.put(id, cat);
8075
+ }
8076
+ const products = [
8077
+ // Hoodies
8078
+ {
8079
+ slug: "heavyweight-hoodie-charcoal",
8080
+ name: "Heavyweight Hoodie \xB7 Charcoal",
8081
+ price: "650.00",
8082
+ category: "hoodies",
8083
+ description: "500gsm garment-dyed cotton, hand-screened FRX seal at chest. Numbered run of 600. Oversized fit; size down for regular cut.",
8084
+ tags: ["hoodie", "signature", "drop-04"],
8085
+ isSignature: true
8086
+ },
8087
+ {
8088
+ slug: "heavyweight-hoodie-cream",
8089
+ name: "Heavyweight Hoodie \xB7 Cream",
8090
+ price: "650.00",
8091
+ category: "hoodies",
8092
+ description: "500gsm garment-dyed cotton in natural cream. Numbered run of 600.",
8093
+ tags: ["hoodie", "drop-04"],
8094
+ isNew: true
8095
+ },
8096
+ {
8097
+ slug: "heavyweight-hoodie-cobalt",
8098
+ name: "Heavyweight Hoodie \xB7 Cobalt",
8099
+ price: "650.00",
8100
+ category: "hoodies",
8101
+ description: "Limited cobalt-blue colourway. 500gsm garment-dyed cotton. Numbered run of 200.",
8102
+ tags: ["hoodie", "limited", "drop-04"],
8103
+ isNew: true
8104
+ },
8105
+ // Tees
8106
+ {
8107
+ slug: "studio-tee-black",
8108
+ name: "Studio Tee \xB7 Black",
8109
+ price: "220.00",
8110
+ category: "tees",
8111
+ description: "14oz heavyweight cotton, garment-dyed. Dropped shoulder, oversized fit. The everyday FRX.",
8112
+ tags: ["tee", "signature"],
8113
+ isSignature: true
8114
+ },
8115
+ {
8116
+ slug: "studio-tee-natural",
8117
+ name: "Studio Tee \xB7 Natural",
8118
+ price: "220.00",
8119
+ category: "tees",
8120
+ description: "14oz heavyweight cotton in undyed natural. Softens beautifully with wear.",
8121
+ tags: ["tee"]
8122
+ },
8123
+ {
8124
+ slug: "graphic-tee-frx-mark",
8125
+ name: "Graphic Tee \xB7 FRX Mark",
8126
+ price: "260.00",
8127
+ category: "tees",
8128
+ description: "Hand-screened FRX seal, oversized fit. 14oz cotton. Numbered run of 400.",
8129
+ tags: ["tee", "graphic", "drop-04"],
8130
+ isNew: true
8131
+ },
8132
+ // Outerwear
8133
+ {
8134
+ slug: "carbon-bomber",
8135
+ name: "Carbon Bomber",
8136
+ price: "1200.00",
8137
+ category: "outerwear",
8138
+ description: "Waxed cotton outer, ribbed cuffs, two-way zip. Cut for layering over a hoodie.",
8139
+ tags: ["outerwear", "premium"],
8140
+ isSignature: true
8141
+ },
8142
+ {
8143
+ slug: "field-jacket-olive",
8144
+ name: "Field Jacket \xB7 Olive",
8145
+ price: "1450.00",
8146
+ category: "outerwear",
8147
+ description: "Garment-dyed military canvas, four utility pockets, drawcord hem. A workhorse.",
8148
+ tags: ["outerwear", "premium", "drop-04"],
8149
+ isNew: true
8150
+ },
8151
+ // Bottoms
8152
+ {
8153
+ slug: "wide-leg-trouser",
8154
+ name: "Wide-Leg Trouser",
8155
+ price: "480.00",
8156
+ category: "bottoms",
8157
+ description: "Heavy twill cotton, pleated front, side pockets. Cut for an oversized silhouette.",
8158
+ tags: ["bottom"]
8159
+ },
8160
+ {
8161
+ slug: "track-pant-charcoal",
8162
+ name: "Track Pant \xB7 Charcoal",
8163
+ price: "380.00",
8164
+ category: "bottoms",
8165
+ description: "Heavyweight loopback fleece, tapered leg, elasticated cuffs. The bottom half of the hoodie set.",
8166
+ tags: ["bottom"]
8167
+ },
8168
+ // Accessories
8169
+ {
8170
+ slug: "studio-cap",
8171
+ name: "Studio Cap",
8172
+ price: "120.00",
8173
+ category: "accessories",
8174
+ description: "Brushed cotton 6-panel, embroidered FRX. Adjustable strap.",
8175
+ tags: ["accessory"]
8176
+ },
8177
+ {
8178
+ slug: "tote-natural",
8179
+ name: "Studio Tote \xB7 Natural",
8180
+ price: "150.00",
8181
+ category: "accessories",
8182
+ description: "12oz natural canvas, screen-printed FRX seal. Roomy.",
8183
+ tags: ["accessory"]
8184
+ },
8185
+ {
8186
+ slug: "knit-beanie",
8187
+ name: "Knit Beanie",
8188
+ price: "140.00",
8189
+ category: "accessories",
8190
+ description: "Merino wool blend, woven label. Two colourways.",
8191
+ tags: ["accessory"]
8192
+ },
8193
+ {
8194
+ slug: "studio-sock-3pack",
8195
+ name: "Studio Sock \xB7 3-pack",
8196
+ price: "180.00",
8197
+ category: "accessories",
8198
+ description: "Heavy-cuff crew socks, 3-pack. Cotton-rich blend.",
8199
+ tags: ["accessory"]
8200
+ }
8201
+ ];
8202
+ for (const p of products) {
8203
+ const id = `prod_${p.slug}`;
8204
+ const catId = catIds.get(p.category);
8205
+ const product = {
8206
+ id,
8207
+ business_id: businessId,
8208
+ name: p.name,
8209
+ slug: p.slug,
8210
+ description: p.description,
8211
+ product_type: "product",
8212
+ base_price: p.price,
8213
+ currency: "GHS",
8214
+ image: photoFor2(p.slug),
8215
+ images: [photoFor2(p.slug)],
8216
+ is_available: true,
8217
+ category_ids: [catId],
8218
+ collection_ids: [],
8219
+ add_on_ids: [],
8220
+ variant_ids: [],
8221
+ tags: p.tags ?? [],
8222
+ is_signature: p.isSignature ?? false,
8223
+ is_new: p.isNew ?? false,
8224
+ render_hint: "physical",
8225
+ created_at: ISO8,
8226
+ updated_at: ISO8
8227
+ };
8228
+ registry.products.put(id, product);
8229
+ const cat = registry.categories.get(catId);
8230
+ cat.product_ids.push(id);
8231
+ registry.categories.put(catId, cat);
8232
+ }
8233
+ for (const p of products) {
8234
+ const productId = `prod_${p.slug}`;
8235
+ const axis = {
8236
+ id: `axis_${p.slug}_size`,
8237
+ business_id: businessId,
8238
+ product_id: productId,
8239
+ name: "Size",
8240
+ display_order: 0,
8241
+ affects_recipe: false,
8242
+ values: SIZES.map((s, i) => ({
8243
+ id: `axv_${p.slug}_size_${s.toLowerCase()}`,
8244
+ business_id: businessId,
8245
+ axis_id: `axis_${p.slug}_size`,
8246
+ name: s,
8247
+ display_order: i,
8248
+ created_at: ISO8,
8249
+ updated_at: ISO8
8250
+ })),
8251
+ created_at: ISO8,
8252
+ updated_at: ISO8
8253
+ };
8254
+ registry.variantAxes.put(axis.id, axis);
8255
+ const variantIds = [];
8256
+ let firstVariant = true;
8257
+ for (const sz of axis.values) {
8258
+ const variantId = `var_${p.slug}_size_${sz.name.toLowerCase()}`;
8259
+ const variant = {
8260
+ id: variantId,
8261
+ product_id: productId,
8262
+ business_id: businessId,
8263
+ name: sz.name,
8264
+ sku: `${p.slug.toUpperCase()}-${sz.name}`,
8265
+ price_adjustment: "0.00",
8266
+ component_multiplier: "1.00",
8267
+ is_default: firstVariant,
8268
+ is_active: true,
8269
+ axis_value_ids: [sz.id],
8270
+ created_at: ISO8,
8271
+ updated_at: ISO8
8272
+ };
8273
+ registry.variants.put(variantId, variant);
8274
+ variantIds.push(variantId);
8275
+ firstVariant = false;
8276
+ }
8277
+ const product = registry.products.get(productId);
8278
+ product.variant_ids = variantIds;
8279
+ registry.products.put(productId, product);
8280
+ }
8281
+ const drop04 = {
8282
+ id: "col_drop_04",
8283
+ business_id: businessId,
8284
+ name: "Drop 04",
8285
+ slug: "drop-04",
8286
+ description: "Spring 2026 capsule. 412 pieces left.",
8287
+ product_ids: [
8288
+ "prod_heavyweight-hoodie-charcoal",
8289
+ "prod_heavyweight-hoodie-cream",
8290
+ "prod_heavyweight-hoodie-cobalt",
8291
+ "prod_graphic-tee-frx-mark",
8292
+ "prod_field-jacket-olive"
8293
+ ],
8294
+ is_active: true,
8295
+ created_at: ISO8,
8296
+ updated_at: ISO8
8297
+ };
8298
+ const bestSellers = {
8299
+ id: "col_best_sellers",
8300
+ business_id: businessId,
8301
+ name: "Best Sellers",
8302
+ slug: "best-sellers",
8303
+ description: "What everyone's buying.",
8304
+ product_ids: [
8305
+ "prod_studio-tee-black",
8306
+ "prod_heavyweight-hoodie-charcoal",
8307
+ "prod_carbon-bomber",
8308
+ "prod_studio-cap",
8309
+ "prod_track-pant-charcoal"
8310
+ ],
8311
+ is_active: true,
8312
+ created_at: ISO8,
8313
+ updated_at: ISO8
8314
+ };
8315
+ registry.collections.put(drop04.id, drop04);
8316
+ registry.collections.put(bestSellers.id, bestSellers);
8317
+ for (const col of [drop04, bestSellers]) {
8318
+ for (const pid of col.product_ids) {
8319
+ const p = registry.products.get(pid);
8320
+ if (p) {
8321
+ p.collection_ids.push(col.id);
8322
+ registry.products.put(pid, p);
8323
+ }
8324
+ }
8325
+ }
8326
+ const tags = [
8327
+ { id: "tag_signature", business_id: businessId, name: "Signature", slug: "signature", color: "#0a0a0a", sort_order: 0, usage_count: 3, created_at: ISO8, updated_at: ISO8 },
8328
+ { id: "tag_drop_04", business_id: businessId, name: "Drop 04", slug: "drop-04", color: "#dc2626", sort_order: 1, usage_count: 5, created_at: ISO8, updated_at: ISO8 },
8329
+ { id: "tag_limited", business_id: businessId, name: "Limited", slug: "limited", color: "#dc2626", sort_order: 2, usage_count: 1, created_at: ISO8, updated_at: ISO8 },
8330
+ { id: "tag_premium", business_id: businessId, name: "Premium", slug: "premium", color: "#7c3aed", sort_order: 3, usage_count: 2, created_at: ISO8, updated_at: ISO8 }
8331
+ ];
8332
+ for (const t of tags) registry.tags.put(t.id, t);
8333
+ const apparel = {
8334
+ id: "tax_apparel",
8335
+ business_id: businessId,
8336
+ name: "Apparel",
8337
+ slug: "apparel",
8338
+ path: ["Apparel"],
8339
+ attribute_template_ids: ["attr_fabric", "attr_country_of_origin"],
8340
+ created_at: ISO8,
8341
+ updated_at: ISO8
8342
+ };
8343
+ registry.taxonomies.put(apparel.id, apparel);
8344
+ const attrs = [
8345
+ {
8346
+ id: "attr_fabric",
8347
+ business_id: businessId,
8348
+ namespace: "core",
8349
+ name: "Fabric",
8350
+ slug: "fabric",
8351
+ description: 'Material composition (e.g. "100% cotton, 500gsm").',
8352
+ attribute_type: "text",
8353
+ is_required: false,
8354
+ is_filterable: true,
8355
+ visibility: "public",
8356
+ display_order: 0,
8357
+ applies_to: "product",
8358
+ created_at: ISO8,
8359
+ updated_at: ISO8
8360
+ },
8361
+ {
8362
+ id: "attr_country_of_origin",
8363
+ business_id: businessId,
8364
+ namespace: "core",
8365
+ name: "Country of origin",
8366
+ slug: "country-of-origin",
8367
+ attribute_type: "text",
8368
+ is_required: false,
8369
+ is_filterable: true,
8370
+ visibility: "public",
8371
+ display_order: 1,
8372
+ applies_to: "product",
8373
+ created_at: ISO8,
8374
+ updated_at: ISO8
8375
+ },
8376
+ {
8377
+ id: "attr_fit",
8378
+ business_id: businessId,
8379
+ namespace: "core",
8380
+ name: "Fit",
8381
+ slug: "fit",
8382
+ attribute_type: "single_select",
8383
+ options: ["regular", "oversized", "relaxed", "slim"],
8384
+ is_required: false,
8385
+ is_filterable: true,
8386
+ visibility: "public",
8387
+ display_order: 2,
8388
+ applies_to: "product",
8389
+ created_at: ISO8,
8390
+ updated_at: ISO8
8391
+ }
8392
+ ];
8393
+ for (const a of attrs) registry.attributeDefs.put(a.id, a);
8394
+ const articles = [
8395
+ {
8396
+ id: "kb_sizing",
8397
+ business_id: businessId,
8398
+ title: "Sizing & fit",
8399
+ slug: "sizing",
8400
+ content: "Our pieces are cut for an oversized, dropped-shoulder fit. Order true to size for the intended fit; size down for a regular cut. Charts on every product page.",
8401
+ category: "products",
8402
+ tags: ["sizing", "fit"],
8403
+ created_at: ISO8,
8404
+ updated_at: ISO8
8405
+ },
8406
+ {
8407
+ id: "kb_drops",
8408
+ business_id: businessId,
8409
+ title: "Drops & restocks",
8410
+ slug: "drops",
8411
+ content: "Each drop is a closed, numbered run. We don't restock. The FRX list gets a 24-hour head start before each drop opens to the public.",
8412
+ category: "general",
8413
+ tags: ["drops", "restocks"],
8414
+ created_at: ISO8,
8415
+ updated_at: ISO8
8416
+ },
8417
+ {
8418
+ id: "kb_returns",
8419
+ business_id: businessId,
8420
+ title: "Returns",
8421
+ slug: "returns",
8422
+ content: "Free returns within 30 days from the US, UK, and EU. Item must be unworn with original tags. Underwear and final-sale items aren't returnable.",
8423
+ category: "logistics",
8424
+ tags: ["returns"],
8425
+ created_at: ISO8,
8426
+ updated_at: ISO8
8427
+ }
8428
+ ];
8429
+ for (const a of articles) registry.knowledgeArticles.put(a.id, a);
8430
+ return { businessId };
8431
+ }
8432
+
7997
8433
  // src/mock/seeds/registry.ts
7998
8434
  var SEEDS = {
7999
8435
  default: seedDefault,
@@ -8002,7 +8438,8 @@ var SEEDS = {
8002
8438
  restaurant: seedRestaurant,
8003
8439
  retail: seedRetail,
8004
8440
  services: seedServices,
8005
- grocery: seedGrocery
8441
+ grocery: seedGrocery,
8442
+ fashion: seedFashion
8006
8443
  };
8007
8444
  function applySeed(registry, name) {
8008
8445
  const fn = SEEDS[name];