@cimplify/cli 0.13.3 → 0.13.5
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.
- package/README.md +11 -8
- package/dist/{add-F7GKDXAD.mjs → add-NZ47GUMD.mjs} +4 -5
- package/dist/{assets-Y4JE6MSG.mjs → assets-OEY6FHHZ.mjs} +4 -5
- package/dist/{auth-step-up-EHL5PM2L.mjs → auth-step-up-ALEUQUCE.mjs} +5 -6
- package/dist/{cancel-QSZE2XC2.mjs → cancel-FD66LTTS.mjs} +4 -5
- package/dist/chunk-4O4G2CDE.mjs +162 -0
- package/dist/{chunk-C4M3DXKC.mjs → chunk-5KYR6WJB.mjs} +10 -2
- package/dist/{chunk-QKDCMUWP.mjs → chunk-5YVMA7A5.mjs} +3 -2
- package/dist/{chunk-4YIFBYBV.mjs → chunk-5ZQURRIM.mjs} +1 -2
- package/dist/{chunk-QA36VSLX.mjs → chunk-6CHBU7O4.mjs} +1 -1
- package/dist/{chunk-SVJPU4K7.mjs → chunk-BDC7XQIL.mjs} +51 -43
- package/dist/{chunk-72VM62IN.mjs → chunk-GOTWRZVM.mjs} +6 -6
- package/dist/{chunk-UP7N53C4.mjs → chunk-IK6NQHTG.mjs} +1 -1
- package/dist/{chunk-OVHZV57L.mjs → chunk-MLVBE5V2.mjs} +1 -1
- package/dist/{chunk-RR4NOZGY.mjs → chunk-OE7YRDLH.mjs} +5 -6
- package/dist/{chunk-VJJDGHZC.mjs → chunk-PDGKBATF.mjs} +1 -2
- package/dist/{chunk-5U5OXOPN.mjs → chunk-RU53TQLZ.mjs} +1 -1
- package/dist/{chunk-JPXK5BLA.mjs → chunk-TOQGLBWF.mjs} +1 -1
- package/dist/{deploy-UTAYLZOM.mjs → deploy-SLRFPGTH.mjs} +8 -9
- package/dist/{dev-SYFBDJSY.mjs → dev-L3W6UXYN.mjs} +19 -26
- package/dist/dispatcher.mjs +41 -33
- package/dist/{doctor-QPCWLW4L.mjs → doctor-6NI2XNTD.mjs} +8 -9
- package/dist/{domains-OS3DXSDN.mjs → domains-7D7WJAMC.mjs} +5 -6
- package/dist/{env-UVO4OIEO.mjs → env-PAENNABF.mjs} +6 -7
- package/dist/{explain-XB67PYQQ.mjs → explain-HPRJBFHS.mjs} +3 -4
- package/dist/{inspect-ULWQHT7J.mjs → inspect-MGVG4Z44.mjs} +3 -4
- package/dist/introspect-3OYRCVUF.mjs +8 -0
- package/dist/{link-VQN2WPZO.mjs → link-KGNQWCSZ.mjs} +4 -5
- package/dist/lint-EYKIQ6RO.mjs +1331 -0
- package/dist/{list-DZTPWNU3.mjs → list-QNEUCCP5.mjs} +3 -4
- package/dist/{login-UZ5Y7GIO.mjs → login-NCO4P5G5.mjs} +5 -6
- package/dist/{logout-XYWZR6QJ.mjs → logout-MF6SOLPE.mjs} +2 -3
- package/dist/{logs-YNXDXAF7.mjs → logs-76TCJBIQ.mjs} +4 -5
- package/dist/{mock-HFVAAYK2.mjs → mock-CAWNXSGC.mjs} +2 -3
- package/dist/{projects-RJ44DJKZ.mjs → projects-U75DOOR7.mjs} +4 -5
- package/dist/repo-IE5IOLR5.mjs +8 -0
- package/dist/{rollback-Z2PRL7FS.mjs → rollback-ZL3V7SYH.mjs} +5 -6
- package/dist/{status-RR3GGTVU.mjs → status-52HG63FE.mjs} +4 -5
- package/dist/{unlink-JBVZYOA3.mjs → unlink-TCG3NBAR.mjs} +2 -3
- package/dist/{update-B5HANRBK.mjs → update-47HG7LN7.mjs} +4 -5
- package/dist/{whoami-5G32NNEP.mjs → whoami-B5Y5KSOZ.mjs} +3 -4
- package/package.json +3 -2
- package/templates/storefront-auto/app/categories/[slug]/page.tsx +1 -0
- package/templates/storefront-auto/app/collections/[slug]/page.tsx +1 -0
- package/templates/storefront-auto/app/page.tsx +4 -1
- package/templates/storefront-auto/app/products/[slug]/page.tsx +1 -0
- package/templates/storefront-auto/components/auth-error-toast.tsx +2 -2
- package/templates/storefront-auto/package.json +1 -1
- package/templates/storefront-bakery/app/categories/[slug]/page.tsx +1 -0
- package/templates/storefront-bakery/app/collections/[slug]/page.tsx +1 -0
- package/templates/storefront-bakery/app/page.tsx +1 -1
- package/templates/storefront-bakery/components/auth-error-toast.tsx +2 -2
- package/templates/storefront-bakery/package.json +1 -1
- package/templates/storefront-fashion/app/categories/[slug]/page.tsx +1 -0
- package/templates/storefront-fashion/app/collections/[slug]/page.tsx +1 -0
- package/templates/storefront-fashion/app/page.tsx +1 -1
- package/templates/storefront-fashion/app/products/[slug]/page.tsx +1 -0
- package/templates/storefront-fashion/components/auth-error-toast.tsx +2 -2
- package/templates/storefront-fashion/package.json +1 -1
- package/templates/storefront-grocery/app/categories/[slug]/page.tsx +1 -0
- package/templates/storefront-grocery/app/collections/[slug]/page.tsx +1 -0
- package/templates/storefront-grocery/app/page.tsx +1 -1
- package/templates/storefront-grocery/components/auth-error-toast.tsx +2 -2
- package/templates/storefront-grocery/package.json +1 -1
- package/templates/storefront-pharmacy/app/categories/[slug]/page.tsx +1 -0
- package/templates/storefront-pharmacy/app/collections/[slug]/page.tsx +1 -0
- package/templates/storefront-pharmacy/app/globals.css +11 -3
- package/templates/storefront-pharmacy/app/page.tsx +4 -1
- package/templates/storefront-pharmacy/app/products/[slug]/page.tsx +1 -0
- package/templates/storefront-pharmacy/components/auth-error-toast.tsx +2 -2
- package/templates/storefront-pharmacy/components/pharmacy-hero.tsx +10 -3
- package/templates/storefront-pharmacy/components/urgent-ctas.tsx +30 -5
- package/templates/storefront-pharmacy/package.json +1 -1
- package/templates/storefront-restaurant/app/categories/[slug]/page.tsx +1 -0
- package/templates/storefront-restaurant/app/collections/[slug]/page.tsx +1 -0
- package/templates/storefront-restaurant/app/page.tsx +1 -1
- package/templates/storefront-restaurant/components/auth-error-toast.tsx +2 -2
- package/templates/storefront-restaurant/package.json +1 -1
- package/templates/storefront-retail/app/categories/[slug]/page.tsx +1 -0
- package/templates/storefront-retail/app/collections/[slug]/page.tsx +1 -0
- package/templates/storefront-retail/app/page.tsx +1 -1
- package/templates/storefront-retail/app/products/[slug]/page.tsx +1 -0
- package/templates/storefront-retail/components/auth-error-toast.tsx +2 -2
- package/templates/storefront-retail/package.json +1 -1
- package/templates/storefront-services/app/book/book-client.tsx +3 -5
- package/templates/storefront-services/app/categories/[slug]/page.tsx +1 -0
- package/templates/storefront-services/app/collections/[slug]/page.tsx +1 -0
- package/templates/storefront-services/app/page.tsx +1 -1
- package/templates/storefront-services/components/auth-error-toast.tsx +2 -2
- package/templates/storefront-services/package.json +1 -1
- package/dist/agent-CEYZNYXA.mjs +0 -25
- package/dist/chunk-KNTFZ6LD.mjs +0 -2090
- package/dist/chunk-YPC4VU65.mjs +0 -76
- package/dist/chunk-ZPVN6UXL.mjs +0 -74
- package/dist/introspect-D4473WPV.mjs +0 -9
- package/dist/repo-OK6CVG3G.mjs +0 -9
|
@@ -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-
|
|
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-
|
|
40
|
+
className="text-background/60 hover:text-background transition-colors text-base leading-none"
|
|
41
41
|
>
|
|
42
42
|
×
|
|
43
43
|
</button>
|
|
@@ -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-
|
|
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-
|
|
40
|
+
className="text-background/60 hover:text-background transition-colors text-base leading-none"
|
|
41
41
|
>
|
|
42
42
|
×
|
|
43
43
|
</button>
|
|
@@ -4,7 +4,7 @@ import { useState } from "react";
|
|
|
4
4
|
import { useRouter } from "next/navigation";
|
|
5
5
|
import type { Product } from "@cimplify/sdk";
|
|
6
6
|
import type { AvailableSlot } from "@cimplify/sdk";
|
|
7
|
-
import {
|
|
7
|
+
import { DateSlotPicker, Price, useCart } from "@cimplify/sdk/react";
|
|
8
8
|
import { brand } from "@/lib/brand";
|
|
9
9
|
|
|
10
10
|
/**
|
|
@@ -19,9 +19,7 @@ import { brand } from "@/lib/brand";
|
|
|
19
19
|
export function BookClient({ treatments }: { treatments: Product[] }) {
|
|
20
20
|
const router = useRouter();
|
|
21
21
|
const { addItem } = useCart();
|
|
22
|
-
const [selectedTreatment, setSelectedTreatment] = useState<Product | undefined>(
|
|
23
|
-
treatments[0],
|
|
24
|
-
);
|
|
22
|
+
const [selectedTreatment, setSelectedTreatment] = useState<Product | undefined>(treatments[0]);
|
|
25
23
|
const [selectedSlot, setSelectedSlot] = useState<AvailableSlot | null>(null);
|
|
26
24
|
const [submitting, setSubmitting] = useState(false);
|
|
27
25
|
|
|
@@ -83,7 +81,7 @@ export function BookClient({ treatments }: { treatments: Product[] }) {
|
|
|
83
81
|
<p className="font-semibold text-sm m-0 truncate">{t.name}</p>
|
|
84
82
|
<p className="text-xs text-muted-foreground m-0">
|
|
85
83
|
{t.duration_minutes ? `${t.duration_minutes} min · ` : ""}
|
|
86
|
-
|
|
84
|
+
<Price amount={t.default_price} />
|
|
87
85
|
</p>
|
|
88
86
|
</div>
|
|
89
87
|
{active && (
|
|
@@ -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-
|
|
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-
|
|
40
|
+
className="text-background/60 hover:text-background transition-colors text-base leading-none"
|
|
41
41
|
>
|
|
42
42
|
×
|
|
43
43
|
</button>
|
package/dist/agent-CEYZNYXA.mjs
DELETED
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
#!/usr/bin/env node
|
|
2
|
-
import { startTunnelRuntime } from './chunk-KNTFZ6LD.mjs';
|
|
3
|
-
import { info } from './chunk-ZPVN6UXL.mjs';
|
|
4
|
-
|
|
5
|
-
// src/commands/agent.ts
|
|
6
|
-
var FLAG_CHECK = "--check";
|
|
7
|
-
async function run(argv) {
|
|
8
|
-
if (argv.includes(FLAG_CHECK)) {
|
|
9
|
-
info("ok");
|
|
10
|
-
return;
|
|
11
|
-
}
|
|
12
|
-
const cwd = process.cwd();
|
|
13
|
-
info("cimplify agent: supervising the preview tunnel");
|
|
14
|
-
const stop = startTunnelRuntime(cwd);
|
|
15
|
-
await new Promise((resolve) => {
|
|
16
|
-
const shutdown = () => {
|
|
17
|
-
stop();
|
|
18
|
-
resolve();
|
|
19
|
-
};
|
|
20
|
-
process.once("SIGINT", shutdown);
|
|
21
|
-
process.once("SIGTERM", shutdown);
|
|
22
|
-
});
|
|
23
|
-
}
|
|
24
|
-
|
|
25
|
-
export { run as default };
|