deployai 0.1.0-beta.45 → 0.1.0-beta.47
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/dist/index.js +103 -84
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -21619,7 +21619,7 @@ var ARCH_NODES = [
|
|
|
21619
21619
|
{ id: "local-scripts", kind: "actor", zone: "outside", label: "Local scripts", summary: "\u05E4\u05E7\u05D5\u05D3\u05D5\u05EA \u05E9\u05D4\u05E6\u05D5\u05D5\u05EA \u05DE\u05E8\u05D9\u05E5 \u05DE\u05D4\u05DE\u05D7\u05E9\u05D1: prompts:pull \u05D5\u05BEprompts:push (\u05E7\u05D5\u05D1\u05E5 \u05E4\u05E8\u05D5\u05DE\u05E4\u05D8 \u05DE\u05D5\u05DC \u05D4\u05D8\u05E7\u05E1\u05D8 \u05D4\u05D7\u05D9), costs:push (\u05DE\u05D7\u05D9\u05E8\u05D9 Cloudflare), content:push \u05D5\u05BEcontent:pull (\u05D4\u05EA\u05D5\u05DB\u05DF \u05D1\u05D9\u05DF \u05DE\u05E1\u05D3 \u05D4\u05E0\u05EA\u05D5\u05E0\u05D9\u05DD \u05E9\u05DC \u05D4\u05DE\u05D7\u05E9\u05D1 \u05DC\u05D6\u05D4 \u05E9\u05DC \u05D4\u05E9\u05E8\u05EA, \u05D3\u05E8\u05DA SSH). LOCAL_SCRIPTS_TOKEN \u05E4\u05D5\u05EA\u05D7 \u05D0\u05EA \u05D4\u05BEAPI \u05E9\u05DC \u05D4\u05E4\u05E7\u05D5\u05D3\u05D5\u05EA \u05D4\u05D0\u05DC\u05D4 \u05D5\u05E9\u05DC \u05D4\u05BEBoard watcher, \u05D5\u05D9\u05DB\u05D5\u05DC \u05DC\u05E9\u05E0\u05D5\u05EA \u05E4\u05E8\u05D5\u05DE\u05E4\u05D8\u05D9\u05DD \u05D5\u05DE\u05D7\u05D9\u05E8\u05D9\u05DD \u05D7\u05D9\u05D9\u05DD.", summaryEn: "Commands the team runs from the computer: prompts:pull and prompts:push (a prompt file against the live text), costs:push (Cloudflare prices), content:push and content:pull (content between the computer's database and the server's, over SSH). LOCAL_SCRIPTS_TOKEN opens the API of these commands and of the Board watcher, and can change live prompts and prices.", code: ["scripts/prompts-sync.ts", "scripts/costs-push.ts", "scripts/content-sync.ts"], env: ["LOCAL_SCRIPTS_TOKEN", "BOARD_URL"], docs: ["docs/13-run-locally.md"], decisions: ["D-204", "D-471", "D-677", "D-696"] },
|
|
21620
21620
|
{ id: "visitor", kind: "actor", zone: "outside", label: "\u05DE\u05D1\u05E7\u05E8 \u05D1\u05D0\u05EA\u05E8", labelEn: "Site visitor", summary: "\u05DE\u05D1\u05E7\u05E8 \u05D1\u05D0\u05EA\u05E8 \u05E9\u05DC \u05DC\u05E7\u05D5\u05D7 \u05D1\u05DB\u05EA\u05D5\u05D1\u05EA <slug>.<\u05D3\u05D5\u05DE\u05D9\u05D9\u05DF \u05D0\u05EA\u05E8\u05D9\u05DD> (\u05DB\u05DE\u05D5 deploy-net.com \u05D0\u05D5 freesite.click) \u05D0\u05D5 \u05D1\u05D3\u05D5\u05DE\u05D9\u05D9\u05DF \u05DE\u05E9\u05DC\u05D5.", summaryEn: "A visitor on a customer site at <slug>.<a sites domain> (like deploy-net.com or freesite.click) or on their own domain." },
|
|
21621
21621
|
// Platform
|
|
21622
|
-
{ id: "web", kind: "app", zone: "platform", label: "Web app (Next.js)", summary: "\u05D0\u05EA\u05E8 \u05D4\u05E9\u05D9\u05D5\u05D5\u05E7, \u05DC\u05D5\u05D7 \u05D4\u05D1\u05E7\u05E8\u05D4, \u05D4\u05D0\u05D3\u05DE\u05D9\u05DF \u05D5\u05D4\u05BEAPI \u05E9\u05DC \u05D4\u05BECLI. \u05DE\u05DB\u05E0\u05D9\u05E1 \u05E2\u05D1\u05D5\u05D3\u05D5\u05EA \u05DC\u05EA\u05D5\u05E8.", summaryEn: "The marketing site, the dashboard, the admin and the CLI API. Puts jobs in the queue.", code: ["apps/web/src/app", "apps/web/src/server"], env: ["DEPLOYAI_SPACE", "BETTER_AUTH_SECRET", "NEXT_PUBLIC_SUPPORT_WHATSAPP", "DEV_SUPERADMIN_PASSWORD", "OPENAI_APPS_CHALLENGE"], portability: "Our app (site, dashboard, API, builds)", docs: ["docs/04-architecture.md"], decisions: ["D-020", "D-057", "D-104", "D-149", "D-238", "D-293"] },
|
|
21622
|
+
{ id: "web", kind: "app", zone: "platform", label: "Web app (Next.js)", summary: "\u05D0\u05EA\u05E8 \u05D4\u05E9\u05D9\u05D5\u05D5\u05E7, \u05DC\u05D5\u05D7 \u05D4\u05D1\u05E7\u05E8\u05D4, \u05D4\u05D0\u05D3\u05DE\u05D9\u05DF \u05D5\u05D4\u05BEAPI \u05E9\u05DC \u05D4\u05BECLI. \u05DE\u05DB\u05E0\u05D9\u05E1 \u05E2\u05D1\u05D5\u05D3\u05D5\u05EA \u05DC\u05EA\u05D5\u05E8.", summaryEn: "The marketing site, the dashboard, the admin and the CLI API. Puts jobs in the queue.", code: ["apps/web/src/app", "apps/web/src/server"], env: ["DEPLOYAI_SPACE", "BETTER_AUTH_SECRET", "NEXT_PUBLIC_SUPPORT_WHATSAPP", "DEV_SUPERADMIN_PASSWORD", "OPENAI_APPS_CHALLENGE", "POSTHOG_PROJECT_KEY"], portability: "Our app (site, dashboard, API, builds)", docs: ["docs/04-architecture.md"], decisions: ["D-020", "D-057", "D-104", "D-149", "D-238", "D-293"] },
|
|
21623
21623
|
{ id: "queue", kind: "db", zone: "platform", label: "pg-boss queue", summary: "\u05DB\u05DC \u05DE\u05D4 \u05E9\u05D0\u05D9\u05D8\u05D9 \u05D0\u05D5 \u05E0\u05D5\u05D2\u05E2 \u05D1\u05BECloudflare \u05E8\u05E5 \u05DB\u05E2\u05D1\u05D5\u05D3\u05D4 \u05D1\u05EA\u05D5\u05E8.", summaryEn: "Everything slow or that touches Cloudflare runs as a job in the queue.", code: ["apps/web/src/server/queue.ts"], portability: "Job queue", decisions: ["D-058"] },
|
|
21624
21624
|
{ id: "worker", kind: "app", zone: "platform", label: "Job worker", summary: "\u05EA\u05D4\u05DC\u05D9\u05DA \u05E0\u05E4\u05E8\u05D3 \u05E9\u05DE\u05E8\u05D9\u05E5 \u05D0\u05EA \u05D4\u05E2\u05D1\u05D5\u05D3\u05D5\u05EA \u05DE\u05D4\u05EA\u05D5\u05E8: \u05D1\u05E0\u05D9\u05D9\u05D4, \u05D4\u05E2\u05DC\u05D0\u05D4, \u05E0\u05D9\u05EA\u05D5\u05D1, \u05D1\u05D9\u05E7\u05D5\u05E8\u05D9\u05DD, \u05E2\u05DC\u05D5\u05D9\u05D5\u05EA \u05D5\u05DE\u05D9\u05D9\u05DC\u05D9\u05DD \u05DC\u05DE\u05E9\u05E4\u05DA (pnpm worker, \u05D0\u05D5 pnpm worker:public \u05DE\u05D0\u05D7\u05D5\u05E8\u05D9 \u05D4\u05BEtunnel).", summaryEn: "A separate process that runs the queued jobs: build, upload, routing, visits, costs and lifecycle emails (pnpm worker, or pnpm worker:public behind the tunnel).", code: ["apps/web/src/server/worker.ts", "apps/web/src/server/jobs.ts", "apps/web/src/server/site-data.ts", "apps/web/src/server/lifecycle", "apps/web/src/server/host-report.ts"], env: ["BUILD_SLOTS", "LIFECYCLE_NOW", "A11Y_RENDER", "DOCKER_HOST", "HOST_REPORT_PATH", "APP_SHOTS_SITES"], decisions: ["D-058", "D-148", "D-180", "D-340"] },
|
|
21625
21625
|
{ id: "build", kind: "app", zone: "platform", label: "Build service (Docker)", summary: "\u05E7\u05D5\u05E0\u05D8\u05D9\u05D9\u05E0\u05E8 \u05D7\u05D3\u05E9 \u05DC\u05DB\u05DC \u05E9\u05DC\u05D1, \u05D1\u05DC\u05D9 \u05E1\u05D5\u05D3\u05D5\u05EA. \u05D1\u05D5\u05E0\u05D4 \u05D0\u05EA \u05D4\u05E7\u05D5\u05D3 \u05E9\u05DC \u05D4\u05DC\u05E7\u05D5\u05D7 \u05DC\u05E7\u05D5\u05D1\u05E5 Worker.", summaryEn: "A fresh container for every step, with no secrets. Builds the customer's code into a Worker file.", code: ["apps/web/src/server/build.ts"], env: ["BUILD_MODE"] },
|
|
@@ -23631,6 +23631,7 @@ var ENV_KEYS = {
|
|
|
23631
23631
|
BETTER_AUTH_SECRET: { scope: "own", section: "app", required: ["server"], sample: { local: "change-me-to-a-long-random-string", server: "" }, about: "Signs login sessions and our own links; changing it logs everyone out. 32 characters or more in production: openssl rand -base64 48" },
|
|
23632
23632
|
APP_SHOTS_SITES: { scope: "local", section: "app", about: "The demo app sites whose product page screenshots are taken again with each new app version (D-609): uptime:<siteId>:<host>,cron:<siteId>:<host>. Unset: no automatic screenshots; pnpm apps:shots still works by hand." },
|
|
23633
23633
|
DEV_SUPERADMIN_PASSWORD: { scope: "local", section: "app", about: "The superadmin password after every local wipe. Without it the one in apps/web/local-logins.md is kept (D-100)." },
|
|
23634
|
+
POSTHOG_PROJECT_KEY: { scope: "own", section: "app", about: "PostHog project key (phc_..., EU cloud) for session replay on our own sign up, move and pay pages, Israel only (D-999). Read by the server at request time, so no rebuild. A separate project for dev and prod. Empty records nothing." },
|
|
23634
23635
|
NEXT_PUBLIC_SUPPORT_WHATSAPP: { scope: "same", section: "app", about: "The WhatsApp number people reach us on, digits with the country code (972...). Empty shows only the email (D-237)." },
|
|
23635
23636
|
OPENAI_APPS_CHALLENGE: { scope: "server", section: "app", about: "The domain check token from the OpenAI platform portal (Plugins, domain verification), served as plain text at /.well-known/openai-apps-challenge (D-474). Unset: that page is a 404." },
|
|
23636
23637
|
TUNNEL_ORIGIN_CERT: { scope: "local", section: "app", about: "The cloudflared login certificate pnpm dev:public checks. Default ~/.cloudflared/cert.pem." },
|
|
@@ -23669,7 +23670,7 @@ var ENV_KEYS = {
|
|
|
23669
23670
|
CARDCOM_DEPARTMENT_ID: { scope: "same", section: "payments", about: "Optional. The Cardcom department number put on every invoice and credit invoice, for reports on a shared terminal (D-371)." },
|
|
23670
23671
|
CARDCOM_CSS_URL: { scope: "own", section: "payments", about: "Our stylesheet for Cardcom's card page, https only, test terminals only (D-699). Leave unset: the app address is used, the tunnel in dev." },
|
|
23671
23672
|
CARDCOM_TOKEN_KEY: { scope: "server", section: "payments", required: ["server"], about: "32 bytes in base64 that seal saved card tokens (openssl rand -base64 32). Back it up offline; without it no saved card works." },
|
|
23672
|
-
BUILD_MODE: { scope: "own", section: "builds", sample: { server: "docker" }, about: "docker = a fresh container per build.
|
|
23673
|
+
BUILD_MODE: { scope: "own", section: "builds", sample: { server: "docker" }, about: "docker = a fresh container per build. Production only: empty on this computer, so only static sites build and Docker Desktop can stay closed. Set docker here only to test builds or run cli:e2e (D-1009)." },
|
|
23673
23674
|
BUILD_SLOTS: { scope: "own", section: "builds", about: "Builds running at the same time in the queue worker. Default 2." },
|
|
23674
23675
|
DOCKER_HOST: { scope: "server", section: "builds", sample: { server: "unix:///run/user/<uid of deploy>/docker.sock" }, about: "Rootless Docker of the deploy user (D-340). Read by docker itself." },
|
|
23675
23676
|
STORAGE_DIR: { scope: "local", section: "builds", about: "Folder for files when a space stores them on disk (tests). Default apps/web/.deployai-uploads." },
|
|
@@ -23876,6 +23877,93 @@ function blockedLine(codes) {
|
|
|
23876
23877
|
return BLOCKED_REASONS.filter((c) => set2.has(c)).join(" ");
|
|
23877
23878
|
}
|
|
23878
23879
|
|
|
23880
|
+
// ../shared/src/ui-sources.ts
|
|
23881
|
+
var UI_SOURCES = [
|
|
23882
|
+
{ key: "shadcn", name: "shadcn/ui", url: "https://ui.shadcn.com", install: "npx shadcn@latest add <component>", license: "MIT", terms: "Free for any use; keep the license notice.", use: "Forms, dialogs, menus, tabs, tables: the plain building blocks.", frameworks: "React (Astro with the React integration)", react: true, fits: ["business", "shop", "blog", "portfolio", "restaurant", "clinic"], licenseUrl: "https://github.com/shadcn-ui/ui/blob/main/LICENSE.md", checkedOn: "2026-10-30" },
|
|
23883
|
+
{ key: "magicui", name: "Magic UI", url: "https://magicui.design", install: 'npx shadcn@latest add "https://magicui.design/r/<component>.json"', license: "MIT", terms: "Free components only (not Magic UI Pro); keep the license notice.", use: "Marketing sections: animated backgrounds, marquees, number tickers, bento grids.", frameworks: "React", react: true, fits: ["business", "portfolio", "restaurant"], licenseUrl: "https://github.com/magicuidesign/magicui/blob/main/LICENSE.md", checkedOn: "2026-10-30" },
|
|
23884
|
+
{ key: "aceternity", name: "Aceternity UI", url: "https://ui.aceternity.com", install: 'npx shadcn@latest add "https://ui.aceternity.com/registry/<component>.json"', license: "Aceternity licence", terms: "Free components only (not Pro or templates). Allowed in the owner's own site; never publish the component source on its own or sell it as a template.", use: "Hero effects: spotlight, background beams, cards with motion, scroll effects.", frameworks: "React", react: true, fits: ["business", "portfolio"], licenseUrl: "https://ui.aceternity.com/licence", checkedOn: "2026-10-30" },
|
|
23885
|
+
{ key: "reactbits", name: "React Bits", url: "https://reactbits.dev", install: "Copy the component from its page (or its shadcn registry line on that page)", license: "MIT + Commons Clause", terms: "Allowed as part of a website; never sell the components themselves.", use: "Text animations, backgrounds, small interactive effects.", frameworks: "React", react: true, fits: ["portfolio", "business"], licenseUrl: "https://github.com/DavidHDev/react-bits/blob/main/LICENSE.md", checkedOn: "2026-10-30" },
|
|
23886
|
+
{ key: "embla", name: "Embla Carousel", url: "https://www.embla-carousel.com", install: "npm install embla-carousel", license: "MIT", terms: "Free for any use.", use: "Sliders and carousels, with plain JavaScript in any framework.", frameworks: "Any (plain JS, React, Vue, Svelte)", react: false, fits: ["shop", "restaurant", "portfolio", "business"], licenseUrl: "https://github.com/davidjerleke/embla-carousel/blob/master/LICENSE", checkedOn: "2026-10-30" },
|
|
23887
|
+
{ key: "swiper", name: "Swiper", url: "https://swiperjs.com", install: "npm install swiper", license: "MIT", terms: "Free for any use.", use: "Galleries and touch sliders, like many WordPress themes use.", frameworks: "Any (plain JS, React, Vue)", react: false, fits: ["restaurant", "portfolio", "shop"], licenseUrl: "https://github.com/nolimits4web/swiper/blob/master/LICENSE", checkedOn: "2026-10-30" },
|
|
23888
|
+
{ key: "motion", name: "Motion", url: "https://motion.dev", install: "npm install motion", license: "MIT", terms: "The free library only (not Motion+).", use: "Animations on scroll and on enter, in plain JS or React.", frameworks: "Any (plain JS, React, Vue)", react: false, fits: ["business", "shop", "blog", "portfolio", "restaurant", "clinic"], licenseUrl: "https://github.com/motiondivision/motion/blob/main/LICENSE.md", checkedOn: "2026-10-30" },
|
|
23889
|
+
// Plain HTML and Tailwind kits (D-562): no React, so they fit the Astro samples as they are. Licenses read 2026-11-01.
|
|
23890
|
+
{ key: "daisyui", name: "DaisyUI", url: "https://daisyui.com", install: 'npm i -D daisyui, then add @plugin "daisyui"; to the main CSS file (Tailwind 4)', license: "MIT", terms: "Free for any use; keep the license notice. Never the paid themes, templates or blocks from its store.", use: "Whole-site parts with themes: buttons, cards, navbars, forms, modals.", frameworks: "Any with Tailwind (plain HTML, Astro, React)", react: false, fits: ["business", "shop", "blog", "portfolio", "restaurant", "clinic"], licenseUrl: "https://github.com/saadeghi/daisyui/blob/master/LICENSE", checkedOn: "2026-11-01" },
|
|
23891
|
+
{ key: "hyperui", name: "HyperUI", url: "https://hyperui.dev", install: "Copy the HTML from the component page", license: "MIT", terms: "Free for any use; keep the license notice.", use: "Marketing sections (hero, call to action, pricing, FAQ, footer) and shop blocks.", frameworks: "Any with Tailwind (plain HTML, Astro, React)", react: false, fits: ["business", "shop", "clinic", "restaurant"], licenseUrl: "https://github.com/markmead/hyperui/blob/main/LICENSE", checkedOn: "2026-11-01" },
|
|
23892
|
+
{ key: "flowbite", name: "Flowbite", url: "https://flowbite.com", install: "npm install flowbite, add its theme and plugin lines to the main CSS file as its Tailwind 4 guide says, then copy the component HTML", license: "MIT", terms: "The open-source library only; keep the license notice. Never Flowbite Pro blocks, the Figma kit or paid templates (they are not MIT).", use: "Interactive parts: dropdowns, modals, tabs, carousels, forms, tables.", frameworks: "Any (plain HTML, Astro, React, Vue, Svelte)", react: false, fits: ["business", "shop", "clinic"], licenseUrl: "https://github.com/themesberg/flowbite/blob/main/LICENSE.md", checkedOn: "2026-11-01" },
|
|
23893
|
+
{ key: "preline", name: "Preline UI", url: "https://preline.co", install: "npm i preline, add its CSS and script lines as its install guide says, then copy the component HTML", license: "MIT + Preline Fair Use", terms: "Free in the owner's own site, commercial too. Never build a competing UI kit or builder from it; never anything marked Pro.", use: "Full sections with small scripts: hero, navbars, pricing, account pages.", frameworks: "Any (plain HTML, Astro, React, Vue)", react: false, fits: ["business", "clinic", "restaurant", "shop"], licenseUrl: "https://github.com/htmlstreamofficial/preline/blob/main/LICENSE", checkedOn: "2026-11-01" },
|
|
23894
|
+
{ key: "uiverse", name: "Uiverse", url: "https://uiverse.io", install: "Copy the HTML and CSS (or Tailwind) from the element page", license: "MIT", terms: "Free for any use; keep the license notice. Made by many people, so check each one on a phone and with the keyboard.", use: "Small eye-catching pieces: buttons, loaders, toggles, cards.", frameworks: "Any (plain HTML and CSS)", react: false, fits: ["portfolio", "business", "restaurant"], licenseUrl: "https://github.com/uiverse-io/galaxy/blob/main/LICENSE", checkedOn: "2026-11-01" },
|
|
23895
|
+
// React, for forms and app parts on a site that already uses React islands.
|
|
23896
|
+
{ key: "originui", name: "Origin UI (coss ui)", url: "https://coss.com/ui", install: "npx shadcn@latest add <the registry address on the component page>", license: "MIT", terms: "Free for any use; keep the license notice.", use: "Form and app parts: inputs, selects, buttons, tables, dialogs.", frameworks: "React (Astro with the React integration)", react: true, fits: ["clinic", "shop", "business"], licenseUrl: "https://github.com/origin-space/originui/blob/main/LICENSE", checkedOn: "2026-11-01" }
|
|
23897
|
+
];
|
|
23898
|
+
function uiSourcesText() {
|
|
23899
|
+
return [
|
|
23900
|
+
"UI sources you may use for visual sections (install each from its own place, never copy from elsewhere; free tiers only; add a line per component to .deployai/migration/credits.md with its source, URL and license):",
|
|
23901
|
+
"Pick by the kind of site you read from the scan (Fits), and prefer the kits with no React: they load faster.",
|
|
23902
|
+
...UI_SOURCES.map((s) => `- ${s.name} (${s.url}, ${s.license}; ${s.frameworks}${s.react ? "" : ", no React"}): ${s.use} Fits: ${s.fits.join(", ")}. Install: ${s.install}. ${s.terms}`),
|
|
23903
|
+
"React components need React in the site: in an Astro site, add it with npx astro add react and use them as islands only where they move or react; keep the rest plain Astro.",
|
|
23904
|
+
"",
|
|
23905
|
+
uiPartsText()
|
|
23906
|
+
].join("\n");
|
|
23907
|
+
}
|
|
23908
|
+
var UI_PART_KEYS = ["product-card", "product-grid", "product-page", "cart", "checkout-summary", "category-filter", "shop-banner", "post-card", "post-list", "article-layout", "author-box", "related-posts", "newsletter", "tags-list", "toc"];
|
|
23909
|
+
var UI_PARTS = [
|
|
23910
|
+
{ part: "product-card", kind: "shop", source: "hyperui", sourceName: "HyperUI", url: "https://www.hyperui.dev/components/marketing/product-cards", license: "MIT", licenseUrl: "https://github.com/markmead/hyperui/blob/main/LICENSE", react: false, how: "Copy the HTML from the page", note: "Eight cards; two have Add to cart." },
|
|
23911
|
+
{ part: "product-card", kind: "shop", source: "merakiui", sourceName: "Meraki UI", url: "https://merakiui.com/components/application-ui/cards", license: "MIT", licenseUrl: "https://github.com/merakiui/merakiui/blob/main/LICENSE", react: false, how: "Copy the HTML from the page", note: "Product cards with price and Add to cart; RTL versions for Hebrew." },
|
|
23912
|
+
{ part: "product-card", kind: "shop", source: "flowbite", sourceName: "Flowbite", url: "https://flowbite.com/docs/components/card/", license: "MIT", licenseUrl: "https://github.com/themesberg/flowbite/blob/main/LICENSE.md", react: false, how: "Copy the HTML from the E-commerce card section", note: "Image, rating, price, Add to cart." },
|
|
23913
|
+
{ part: "product-card", kind: "shop", source: "daisyui", sourceName: "DaisyUI", url: "https://daisyui.com/components/card/", license: "MIT", licenseUrl: "https://github.com/saadeghi/daisyui/blob/master/LICENSE", react: false, how: "With DaisyUI installed, copy the card HTML", note: "A plain card; add the price." },
|
|
23914
|
+
{ part: "product-grid", kind: "shop", source: "hyperui", sourceName: "HyperUI", url: "https://www.hyperui.dev/components/marketing/product-collections", license: "MIT", licenseUrl: "https://github.com/markmead/hyperui/blob/main/LICENSE", react: false, how: "Copy the HTML from the page", note: "Grids, with dropdown or side filters." },
|
|
23915
|
+
{ part: "product-grid", kind: "shop", source: "tailblocks", sourceName: "Tailblocks", url: "https://github.com/mertJF/tailblocks/blob/master/src/blocks/ecommerce/light/a.js", license: "MIT", licenseUrl: "https://github.com/mertJF/tailblocks/blob/master/LICENSE", react: true, how: "Copy the markup from the file and turn it into Astro", note: "An eight item grid; older Tailwind classes." },
|
|
23916
|
+
{ part: "product-page", kind: "shop", source: "tailblocks", sourceName: "Tailblocks", url: "https://github.com/mertJF/tailblocks/blob/master/src/blocks/ecommerce/light/c.js", license: "MIT", licenseUrl: "https://github.com/mertJF/tailblocks/blob/master/LICENSE", react: true, how: "Copy the markup from the file and turn it into Astro", note: "One image, color, size, quantity and price; no gallery (see the prompt)." },
|
|
23917
|
+
{ part: "cart", kind: "shop", source: "hyperui", sourceName: "HyperUI", url: "https://www.hyperui.dev/components/marketing/carts", license: "MIT", licenseUrl: "https://github.com/markmead/hyperui/blob/main/LICENSE", react: false, how: "Copy the HTML from the page", note: "A mini cart, one with quantity and remove, and a cart page." },
|
|
23918
|
+
{ part: "cart", kind: "shop", source: "daisyui", sourceName: "DaisyUI", url: "https://daisyui.com/components/drawer/", license: "MIT", licenseUrl: "https://github.com/saadeghi/daisyui/blob/master/LICENSE", react: false, how: "With DaisyUI installed, copy the drawer-end example and put the cart inside", note: "The side drawer only; pair it with the HyperUI cart." },
|
|
23919
|
+
{ part: "checkout-summary", kind: "shop", source: "hyperui", sourceName: "HyperUI", url: "https://www.hyperui.dev/components/marketing/carts", license: "MIT", licenseUrl: "https://github.com/markmead/hyperui/blob/main/LICENSE", react: false, how: "Copy the Page cart and keep its summary block", note: "Subtotal, VAT, discount and total. No payment: the owner chooses that." },
|
|
23920
|
+
{ part: "category-filter", kind: "shop", source: "hyperui", sourceName: "HyperUI", url: "https://www.hyperui.dev/components/application/filters", license: "MIT", licenseUrl: "https://github.com/markmead/hyperui/blob/main/LICENSE", react: false, how: "Copy the HTML from the page (needs @tailwindcss/forms)", note: "Dropdown and accordion filters." },
|
|
23921
|
+
{ part: "category-filter", kind: "shop", source: "hyperui", sourceName: "HyperUI", url: "https://www.hyperui.dev/components/marketing/product-collections", license: "MIT", licenseUrl: "https://github.com/markmead/hyperui/blob/main/LICENSE", react: false, how: "Copy the Filtering (Side) HTML", note: "A sidebar with sort, availability, price and colors." },
|
|
23922
|
+
{ part: "shop-banner", kind: "shop", source: "hyperui", sourceName: "HyperUI", url: "https://www.hyperui.dev/components/marketing/banners", license: "MIT", licenseUrl: "https://github.com/markmead/hyperui/blob/main/LICENSE", react: false, how: "Copy the HTML from the page", note: "A hero banner; put a real product photo in." },
|
|
23923
|
+
{ part: "shop-banner", kind: "shop", source: "hyperui", sourceName: "HyperUI", url: "https://www.hyperui.dev/components/marketing/announcements", license: "MIT", licenseUrl: "https://github.com/markmead/hyperui/blob/main/LICENSE", react: false, how: "Copy the HTML from the page", note: "A thin top bar for a real sale or free shipping." },
|
|
23924
|
+
{ part: "post-card", kind: "blog", source: "hyperui", sourceName: "HyperUI", url: "https://www.hyperui.dev/components/marketing/blog-cards", license: "MIT", licenseUrl: "https://github.com/markmead/hyperui/blob/main/LICENSE", react: false, how: "Copy the HTML from the page", note: "Seven cards with image, date, excerpt and tags." },
|
|
23925
|
+
{ part: "post-card", kind: "blog", source: "merakiui", sourceName: "Meraki UI", url: "https://merakiui.com/components/marketing/blog", license: "MIT", licenseUrl: "https://github.com/merakiui/merakiui/blob/main/LICENSE", react: false, how: "Copy the HTML from the Cards section", note: "RTL versions for Hebrew." },
|
|
23926
|
+
{ part: "post-list", kind: "blog", source: "astrowind", sourceName: "AstroWind", url: "https://github.com/arthelokyo/astrowind/tree/main/src/components/blog", license: "MIT", licenseUrl: "https://github.com/onwidget/astrowind/blob/main/LICENSE.md", react: false, how: "Copy Grid.astro and GridItem.astro (or List.astro and ListItem.astro) and Pagination.astro, then fix their imports", note: "Astro files; the repository moved to arthelokyo." },
|
|
23927
|
+
{ part: "post-list", kind: "blog", source: "merakiui", sourceName: "Meraki UI", url: "https://merakiui.com/components/marketing/blog", license: "MIT", licenseUrl: "https://github.com/merakiui/merakiui/blob/main/LICENSE", react: false, how: "Copy the HTML from the Grid or Recent Posts section", note: "RTL versions for Hebrew." },
|
|
23928
|
+
{ part: "post-list", kind: "blog", source: "astro-blog", sourceName: "Astro blog starter", url: "https://github.com/withastro/astro/blob/main/examples/blog/src/pages/blog/index.astro", license: "MIT", licenseUrl: "https://github.com/withastro/astro/blob/main/LICENSE", react: false, how: "Copy the file", note: "A content collection grid; plain CSS, not Tailwind." },
|
|
23929
|
+
{ part: "article-layout", kind: "blog", source: "astrowind", sourceName: "AstroWind", url: "https://github.com/arthelokyo/astrowind/blob/main/src/components/blog/SinglePost.astro", license: "MIT", licenseUrl: "https://github.com/onwidget/astrowind/blob/main/LICENSE.md", react: false, how: "Copy the file and its imports (PostTags, share)", note: "Date, author, category, reading time, image, tags, share." },
|
|
23930
|
+
{ part: "article-layout", kind: "blog", source: "astro-blog", sourceName: "Astro blog starter", url: "https://github.com/withastro/astro/blob/main/examples/blog/src/layouts/BlogPost.astro", license: "MIT", licenseUrl: "https://github.com/withastro/astro/blob/main/LICENSE", react: false, how: "Copy the file", note: "Hero image, title, dates and the text; plain CSS." },
|
|
23931
|
+
{ part: "article-layout", kind: "blog", source: "merakiui", sourceName: "Meraki UI", url: "https://merakiui.com/components/marketing/blog", license: "MIT", licenseUrl: "https://github.com/merakiui/merakiui/blob/main/LICENSE", react: false, how: "Copy the HTML from the Single Post section", note: "RTL versions for Hebrew." },
|
|
23932
|
+
{ part: "author-box", kind: "blog", source: "merakiui", sourceName: "Meraki UI", url: "https://merakiui.com/components/marketing/blog", license: "MIT", licenseUrl: "https://github.com/merakiui/merakiui/blob/main/LICENSE", react: false, how: "Copy the author line (photo, name, role) from the blog components", note: "A byline, not a full box (see the prompt)." },
|
|
23933
|
+
{ part: "related-posts", kind: "blog", source: "astrowind", sourceName: "AstroWind", url: "https://github.com/arthelokyo/astrowind/blob/main/src/components/blog/RelatedPosts.astro", license: "MIT", licenseUrl: "https://github.com/onwidget/astrowind/blob/main/LICENSE.md", react: false, how: "Copy the file, widgets/BlogHighlightedPosts.astro and their utils", note: "Up to four posts by shared tags." },
|
|
23934
|
+
{ part: "newsletter", kind: "blog", source: "hyperui", sourceName: "HyperUI", url: "https://www.hyperui.dev/components/marketing/newsletter-signup", license: "MIT", licenseUrl: "https://github.com/markmead/hyperui/blob/main/LICENSE", react: false, how: "Copy the HTML from the page (needs @tailwindcss/forms)", note: "Wire it to the inbox block or the owner's list." },
|
|
23935
|
+
{ part: "newsletter", kind: "blog", source: "astrowind", sourceName: "AstroWind", url: "https://github.com/arthelokyo/astrowind/blob/main/src/components/widgets/Newsletter.astro", license: "MIT", licenseUrl: "https://github.com/onwidget/astrowind/blob/main/LICENSE.md", react: false, how: "Copy the file and its WidgetWrapper and Headline imports", note: "Email and Subscribe; no backend." },
|
|
23936
|
+
{ part: "tags-list", kind: "blog", source: "astrowind", sourceName: "AstroWind", url: "https://github.com/arthelokyo/astrowind/blob/main/src/components/blog/Tags.astro", license: "MIT", licenseUrl: "https://github.com/onwidget/astrowind/blob/main/LICENSE.md", react: false, how: "Copy the file and fix its imports", note: "Tag or category links." },
|
|
23937
|
+
{ part: "toc", kind: "blog", source: "astro-cactus", sourceName: "Astro Theme Cactus", url: "https://github.com/chrismwilliams/astro-theme-cactus/blob/main/src/components/blog/TOC.astro", license: "MIT", licenseUrl: "https://github.com/chrismwilliams/astro-theme-cactus/blob/main/LICENSE", react: false, how: "Copy TOC.astro, TOCHeading.astro and src/utils/generateToc, pass the headings from render()", note: "Folds, and stays in view on wide screens." }
|
|
23938
|
+
];
|
|
23939
|
+
var UI_PART_PROMPTS = {
|
|
23940
|
+
"product-page": "Build the product page as one Astro component: a gallery of the product's real photos (large image, thumbnails under it that swap it, swipe on a phone, arrows with labels for the keyboard), then name, price with VAT, the options the product really has, quantity and Add to cart, then the description and the shipping and returns lines the owner gave. Mobile first, right to left in Hebrew, no React unless the site already has it, images with width, height and alt.",
|
|
23941
|
+
"author-box": "Build an author box as one Astro component for the end of a post: the author's photo, name, one line about them and links they gave (site, social), from the author data the posts already have. Never invent a bio: leave out what the owner did not give. Right to left in Hebrew, no React."
|
|
23942
|
+
};
|
|
23943
|
+
function uiPartsText() {
|
|
23944
|
+
const by = /* @__PURE__ */ new Map();
|
|
23945
|
+
for (const p of UI_PARTS) by.set(p.part, [...by.get(p.part) ?? [], p]);
|
|
23946
|
+
return [
|
|
23947
|
+
"Ready parts for a shop or a blog (free, MIT): copy a part from its page into the site, keep its license notice, and add it to .deployai/migration/credits.md. Prefer the ones with no React. Use only the parts the site needs.",
|
|
23948
|
+
...UI_PART_KEYS.map((k) => {
|
|
23949
|
+
const list = (by.get(k) ?? []).map((p) => `${p.sourceName} ${p.url} (${p.how}${p.react ? "; React markup, turn it into Astro" : ""})`).join("; ");
|
|
23950
|
+
const prompt = UI_PART_PROMPTS[k];
|
|
23951
|
+
return `- ${k}: ${list}${prompt ? `. Build it yourself instead when it falls short: ${prompt}` : ""}`;
|
|
23952
|
+
})
|
|
23953
|
+
].join("\n");
|
|
23954
|
+
}
|
|
23955
|
+
var SKILLS = "npx skills@1.9.0 add";
|
|
23956
|
+
var KEEP = "Free for any use; keep the license notice. Never copy its files into the site.";
|
|
23957
|
+
var LAYOUT_KITS = [
|
|
23958
|
+
{ key: "hallmark", name: "Hallmark", url: "https://github.com/nutlope/hallmark", install: `${SKILLS} nutlope/hallmark`, license: "MIT", role: "look", fits: ["business", "shop", "restaurant", "clinic"], use: "Builds each page around what the visitor came to do (book, buy, call) in one of fifty themes, then checks it in a browser at eight widths. Redesign keeps the content and wiring. It runs its own scripts.", terms: `${KEEP} No tags upstream, so it installs from main. Never its image generation (a paid key); fonts and photos are saved into the site, each photo with its credit; no Tailwind from a CDN.`, licenseUrl: "https://github.com/nutlope/hallmark/blob/main/LICENSE", checkedOn: "2026-11-17" },
|
|
23959
|
+
{ key: "taste", name: "Taste Skill", url: "https://github.com/Leonxlnx/taste-skill", install: `${SKILLS} https://github.com/Leonxlnx/taste-skill/tree/v2.5.1`, license: "MIT", role: "look", fits: ["portfolio", "blog"], use: "Picks one art direction for the whole site from curated references, then checks it in the browser. It runs its own scripts.", terms: KEEP, licenseUrl: "https://github.com/Leonxlnx/taste-skill/blob/main/LICENSE", checkedOn: "2026-11-17" },
|
|
23960
|
+
{ key: "interfaces", name: "Interfaces (Jakub Krehel)", url: "https://github.com/jakubkrehel/skills", install: `${SKILLS} jakubkrehel/skills --skill better-interface better-layout better-typography`, license: "MIT", role: "review", use: "Reviews and polishes what was built: better-interface, better-layout, better-typography. Text only, no scripts.", terms: `${KEEP} No tags upstream, so it installs from main.`, licenseUrl: "https://github.com/jakubkrehel/skills/blob/main/LICENSE", checkedOn: "2026-11-17" },
|
|
23961
|
+
{ key: "humanizer", name: "Humanizer", url: "https://github.com/blader/humanizer", install: `${SKILLS} https://github.com/blader/humanizer/tree/v4.0.0`, license: "MIT", role: "copy", use: "Takes the signs of AI writing out of English text on the site. Text only.", terms: KEEP, licenseUrl: "https://github.com/blader/humanizer/blob/main/LICENSE", checkedOn: "2026-11-17" },
|
|
23962
|
+
{ key: "marketingskills", name: "Marketing Skills", url: "https://github.com/coreyhaines31/marketingskills", install: `${SKILLS} https://github.com/coreyhaines31/marketingskills/tree/v2.14.12 --skill copywriting cro seo-audit schema`, license: "MIT", role: "copy", use: "Four skills only: copywriting and cro for words that sell, seo-audit and schema for search. Text only.", terms: `${KEEP} Only these four skills; never its tools/ command lines.`, licenseUrl: "https://github.com/coreyhaines31/marketingskills/blob/main/LICENSE", checkedOn: "2026-11-17" },
|
|
23963
|
+
{ key: "aislop", name: "aislop", url: "https://github.com/scanaislop/aislop", install: "npx aislop@0.22.1 scan", license: "MIT", role: "code", use: "Scans the code for what agents leave behind (dead code, swallowed errors, unsafe casts, copies) and scores it 0 to 100. No AI, nothing installed.", terms: "Free for any use. Scan only: never its hook, its global install or its tools download.", licenseUrl: "https://github.com/scanaislop/aislop/blob/main/LICENSE", checkedOn: "2026-11-17" }
|
|
23964
|
+
];
|
|
23965
|
+
var QUALITY_KITS_LINE = "Read https://deployai.co.il/kits.md before you build or redesign a site.";
|
|
23966
|
+
|
|
23879
23967
|
// ../shared/src/deployai-md.ts
|
|
23880
23968
|
var DEPLOYAI_MD = `# DeployAI rules
|
|
23881
23969
|
|
|
@@ -23933,7 +24021,7 @@ ${SITE_COPY_RULE}
|
|
|
23933
24021
|
|
|
23934
24022
|
## A site's first version
|
|
23935
24023
|
|
|
23936
|
-
${FIRST_SITE_RULE}
|
|
24024
|
+
${FIRST_SITE_RULE} ${QUALITY_KITS_LINE}
|
|
23937
24025
|
|
|
23938
24026
|
## While you build
|
|
23939
24027
|
|
|
@@ -23968,7 +24056,8 @@ var DEPLOYAI_LATER_RULES = [
|
|
|
23968
24056
|
{ has: "never been live", text: FIRST_SITE_RULE },
|
|
23969
24057
|
{ has: "local preview", text: LOCAL_PREVIEW_RULE },
|
|
23970
24058
|
{ has: "git history", text: GIT_HISTORY_RULE },
|
|
23971
|
-
{ has: "never word for word", text: SITE_COPY_RULE }
|
|
24059
|
+
{ has: "never word for word", text: SITE_COPY_RULE },
|
|
24060
|
+
{ has: "kits.md", text: QUALITY_KITS_LINE }
|
|
23972
24061
|
];
|
|
23973
24062
|
function parseLaterRules(json2) {
|
|
23974
24063
|
try {
|
|
@@ -24016,82 +24105,6 @@ function stackSummary(s) {
|
|
|
24016
24105
|
return [frameworkName(s.framework), ...s.bindings.map((b) => b.toUpperCase()), s.css === "tailwind" ? "Tailwind" : null, s.fonts.join(", "), s.dir.toUpperCase()].filter(Boolean).join(" \xB7 ");
|
|
24017
24106
|
}
|
|
24018
24107
|
|
|
24019
|
-
// ../shared/src/ui-sources.ts
|
|
24020
|
-
var UI_SOURCES = [
|
|
24021
|
-
{ key: "shadcn", name: "shadcn/ui", url: "https://ui.shadcn.com", install: "npx shadcn@latest add <component>", license: "MIT", terms: "Free for any use; keep the license notice.", use: "Forms, dialogs, menus, tabs, tables: the plain building blocks.", frameworks: "React (Astro with the React integration)", react: true, fits: ["business", "shop", "blog", "portfolio", "restaurant", "clinic"], licenseUrl: "https://github.com/shadcn-ui/ui/blob/main/LICENSE.md", checkedOn: "2026-10-30" },
|
|
24022
|
-
{ key: "magicui", name: "Magic UI", url: "https://magicui.design", install: 'npx shadcn@latest add "https://magicui.design/r/<component>.json"', license: "MIT", terms: "Free components only (not Magic UI Pro); keep the license notice.", use: "Marketing sections: animated backgrounds, marquees, number tickers, bento grids.", frameworks: "React", react: true, fits: ["business", "portfolio", "restaurant"], licenseUrl: "https://github.com/magicuidesign/magicui/blob/main/LICENSE.md", checkedOn: "2026-10-30" },
|
|
24023
|
-
{ key: "aceternity", name: "Aceternity UI", url: "https://ui.aceternity.com", install: 'npx shadcn@latest add "https://ui.aceternity.com/registry/<component>.json"', license: "Aceternity licence", terms: "Free components only (not Pro or templates). Allowed in the owner's own site; never publish the component source on its own or sell it as a template.", use: "Hero effects: spotlight, background beams, cards with motion, scroll effects.", frameworks: "React", react: true, fits: ["business", "portfolio"], licenseUrl: "https://ui.aceternity.com/licence", checkedOn: "2026-10-30" },
|
|
24024
|
-
{ key: "reactbits", name: "React Bits", url: "https://reactbits.dev", install: "Copy the component from its page (or its shadcn registry line on that page)", license: "MIT + Commons Clause", terms: "Allowed as part of a website; never sell the components themselves.", use: "Text animations, backgrounds, small interactive effects.", frameworks: "React", react: true, fits: ["portfolio", "business"], licenseUrl: "https://github.com/DavidHDev/react-bits/blob/main/LICENSE.md", checkedOn: "2026-10-30" },
|
|
24025
|
-
{ key: "embla", name: "Embla Carousel", url: "https://www.embla-carousel.com", install: "npm install embla-carousel", license: "MIT", terms: "Free for any use.", use: "Sliders and carousels, with plain JavaScript in any framework.", frameworks: "Any (plain JS, React, Vue, Svelte)", react: false, fits: ["shop", "restaurant", "portfolio", "business"], licenseUrl: "https://github.com/davidjerleke/embla-carousel/blob/master/LICENSE", checkedOn: "2026-10-30" },
|
|
24026
|
-
{ key: "swiper", name: "Swiper", url: "https://swiperjs.com", install: "npm install swiper", license: "MIT", terms: "Free for any use.", use: "Galleries and touch sliders, like many WordPress themes use.", frameworks: "Any (plain JS, React, Vue)", react: false, fits: ["restaurant", "portfolio", "shop"], licenseUrl: "https://github.com/nolimits4web/swiper/blob/master/LICENSE", checkedOn: "2026-10-30" },
|
|
24027
|
-
{ key: "motion", name: "Motion", url: "https://motion.dev", install: "npm install motion", license: "MIT", terms: "The free library only (not Motion+).", use: "Animations on scroll and on enter, in plain JS or React.", frameworks: "Any (plain JS, React, Vue)", react: false, fits: ["business", "shop", "blog", "portfolio", "restaurant", "clinic"], licenseUrl: "https://github.com/motiondivision/motion/blob/main/LICENSE.md", checkedOn: "2026-10-30" },
|
|
24028
|
-
// Plain HTML and Tailwind kits (D-562): no React, so they fit the Astro samples as they are. Licenses read 2026-11-01.
|
|
24029
|
-
{ key: "daisyui", name: "DaisyUI", url: "https://daisyui.com", install: 'npm i -D daisyui, then add @plugin "daisyui"; to the main CSS file (Tailwind 4)', license: "MIT", terms: "Free for any use; keep the license notice. Never the paid themes, templates or blocks from its store.", use: "Whole-site parts with themes: buttons, cards, navbars, forms, modals.", frameworks: "Any with Tailwind (plain HTML, Astro, React)", react: false, fits: ["business", "shop", "blog", "portfolio", "restaurant", "clinic"], licenseUrl: "https://github.com/saadeghi/daisyui/blob/master/LICENSE", checkedOn: "2026-11-01" },
|
|
24030
|
-
{ key: "hyperui", name: "HyperUI", url: "https://hyperui.dev", install: "Copy the HTML from the component page", license: "MIT", terms: "Free for any use; keep the license notice.", use: "Marketing sections (hero, call to action, pricing, FAQ, footer) and shop blocks.", frameworks: "Any with Tailwind (plain HTML, Astro, React)", react: false, fits: ["business", "shop", "clinic", "restaurant"], licenseUrl: "https://github.com/markmead/hyperui/blob/main/LICENSE", checkedOn: "2026-11-01" },
|
|
24031
|
-
{ key: "flowbite", name: "Flowbite", url: "https://flowbite.com", install: "npm install flowbite, add its theme and plugin lines to the main CSS file as its Tailwind 4 guide says, then copy the component HTML", license: "MIT", terms: "The open-source library only; keep the license notice. Never Flowbite Pro blocks, the Figma kit or paid templates (they are not MIT).", use: "Interactive parts: dropdowns, modals, tabs, carousels, forms, tables.", frameworks: "Any (plain HTML, Astro, React, Vue, Svelte)", react: false, fits: ["business", "shop", "clinic"], licenseUrl: "https://github.com/themesberg/flowbite/blob/main/LICENSE.md", checkedOn: "2026-11-01" },
|
|
24032
|
-
{ key: "preline", name: "Preline UI", url: "https://preline.co", install: "npm i preline, add its CSS and script lines as its install guide says, then copy the component HTML", license: "MIT + Preline Fair Use", terms: "Free in the owner's own site, commercial too. Never build a competing UI kit or builder from it; never anything marked Pro.", use: "Full sections with small scripts: hero, navbars, pricing, account pages.", frameworks: "Any (plain HTML, Astro, React, Vue)", react: false, fits: ["business", "clinic", "restaurant", "shop"], licenseUrl: "https://github.com/htmlstreamofficial/preline/blob/main/LICENSE", checkedOn: "2026-11-01" },
|
|
24033
|
-
{ key: "uiverse", name: "Uiverse", url: "https://uiverse.io", install: "Copy the HTML and CSS (or Tailwind) from the element page", license: "MIT", terms: "Free for any use; keep the license notice. Made by many people, so check each one on a phone and with the keyboard.", use: "Small eye-catching pieces: buttons, loaders, toggles, cards.", frameworks: "Any (plain HTML and CSS)", react: false, fits: ["portfolio", "business", "restaurant"], licenseUrl: "https://github.com/uiverse-io/galaxy/blob/main/LICENSE", checkedOn: "2026-11-01" },
|
|
24034
|
-
// React, for forms and app parts on a site that already uses React islands.
|
|
24035
|
-
{ key: "originui", name: "Origin UI (coss ui)", url: "https://coss.com/ui", install: "npx shadcn@latest add <the registry address on the component page>", license: "MIT", terms: "Free for any use; keep the license notice.", use: "Form and app parts: inputs, selects, buttons, tables, dialogs.", frameworks: "React (Astro with the React integration)", react: true, fits: ["clinic", "shop", "business"], licenseUrl: "https://github.com/origin-space/originui/blob/main/LICENSE", checkedOn: "2026-11-01" }
|
|
24036
|
-
];
|
|
24037
|
-
function uiSourcesText() {
|
|
24038
|
-
return [
|
|
24039
|
-
"UI sources you may use for visual sections (install each from its own place, never copy from elsewhere; free tiers only; add a line per component to .deployai/migration/credits.md with its source, URL and license):",
|
|
24040
|
-
"Pick by the kind of site you read from the scan (Fits), and prefer the kits with no React: they load faster.",
|
|
24041
|
-
...UI_SOURCES.map((s) => `- ${s.name} (${s.url}, ${s.license}; ${s.frameworks}${s.react ? "" : ", no React"}): ${s.use} Fits: ${s.fits.join(", ")}. Install: ${s.install}. ${s.terms}`),
|
|
24042
|
-
"React components need React in the site: in an Astro site, add it with npx astro add react and use them as islands only where they move or react; keep the rest plain Astro.",
|
|
24043
|
-
"",
|
|
24044
|
-
uiPartsText()
|
|
24045
|
-
].join("\n");
|
|
24046
|
-
}
|
|
24047
|
-
var UI_PART_KEYS = ["product-card", "product-grid", "product-page", "cart", "checkout-summary", "category-filter", "shop-banner", "post-card", "post-list", "article-layout", "author-box", "related-posts", "newsletter", "tags-list", "toc"];
|
|
24048
|
-
var UI_PARTS = [
|
|
24049
|
-
{ part: "product-card", kind: "shop", source: "hyperui", sourceName: "HyperUI", url: "https://www.hyperui.dev/components/marketing/product-cards", license: "MIT", licenseUrl: "https://github.com/markmead/hyperui/blob/main/LICENSE", react: false, how: "Copy the HTML from the page", note: "Eight cards; two have Add to cart." },
|
|
24050
|
-
{ part: "product-card", kind: "shop", source: "merakiui", sourceName: "Meraki UI", url: "https://merakiui.com/components/application-ui/cards", license: "MIT", licenseUrl: "https://github.com/merakiui/merakiui/blob/main/LICENSE", react: false, how: "Copy the HTML from the page", note: "Product cards with price and Add to cart; RTL versions for Hebrew." },
|
|
24051
|
-
{ part: "product-card", kind: "shop", source: "flowbite", sourceName: "Flowbite", url: "https://flowbite.com/docs/components/card/", license: "MIT", licenseUrl: "https://github.com/themesberg/flowbite/blob/main/LICENSE.md", react: false, how: "Copy the HTML from the E-commerce card section", note: "Image, rating, price, Add to cart." },
|
|
24052
|
-
{ part: "product-card", kind: "shop", source: "daisyui", sourceName: "DaisyUI", url: "https://daisyui.com/components/card/", license: "MIT", licenseUrl: "https://github.com/saadeghi/daisyui/blob/master/LICENSE", react: false, how: "With DaisyUI installed, copy the card HTML", note: "A plain card; add the price." },
|
|
24053
|
-
{ part: "product-grid", kind: "shop", source: "hyperui", sourceName: "HyperUI", url: "https://www.hyperui.dev/components/marketing/product-collections", license: "MIT", licenseUrl: "https://github.com/markmead/hyperui/blob/main/LICENSE", react: false, how: "Copy the HTML from the page", note: "Grids, with dropdown or side filters." },
|
|
24054
|
-
{ part: "product-grid", kind: "shop", source: "tailblocks", sourceName: "Tailblocks", url: "https://github.com/mertJF/tailblocks/blob/master/src/blocks/ecommerce/light/a.js", license: "MIT", licenseUrl: "https://github.com/mertJF/tailblocks/blob/master/LICENSE", react: true, how: "Copy the markup from the file and turn it into Astro", note: "An eight item grid; older Tailwind classes." },
|
|
24055
|
-
{ part: "product-page", kind: "shop", source: "tailblocks", sourceName: "Tailblocks", url: "https://github.com/mertJF/tailblocks/blob/master/src/blocks/ecommerce/light/c.js", license: "MIT", licenseUrl: "https://github.com/mertJF/tailblocks/blob/master/LICENSE", react: true, how: "Copy the markup from the file and turn it into Astro", note: "One image, color, size, quantity and price; no gallery (see the prompt)." },
|
|
24056
|
-
{ part: "cart", kind: "shop", source: "hyperui", sourceName: "HyperUI", url: "https://www.hyperui.dev/components/marketing/carts", license: "MIT", licenseUrl: "https://github.com/markmead/hyperui/blob/main/LICENSE", react: false, how: "Copy the HTML from the page", note: "A mini cart, one with quantity and remove, and a cart page." },
|
|
24057
|
-
{ part: "cart", kind: "shop", source: "daisyui", sourceName: "DaisyUI", url: "https://daisyui.com/components/drawer/", license: "MIT", licenseUrl: "https://github.com/saadeghi/daisyui/blob/master/LICENSE", react: false, how: "With DaisyUI installed, copy the drawer-end example and put the cart inside", note: "The side drawer only; pair it with the HyperUI cart." },
|
|
24058
|
-
{ part: "checkout-summary", kind: "shop", source: "hyperui", sourceName: "HyperUI", url: "https://www.hyperui.dev/components/marketing/carts", license: "MIT", licenseUrl: "https://github.com/markmead/hyperui/blob/main/LICENSE", react: false, how: "Copy the Page cart and keep its summary block", note: "Subtotal, VAT, discount and total. No payment: the owner chooses that." },
|
|
24059
|
-
{ part: "category-filter", kind: "shop", source: "hyperui", sourceName: "HyperUI", url: "https://www.hyperui.dev/components/application/filters", license: "MIT", licenseUrl: "https://github.com/markmead/hyperui/blob/main/LICENSE", react: false, how: "Copy the HTML from the page (needs @tailwindcss/forms)", note: "Dropdown and accordion filters." },
|
|
24060
|
-
{ part: "category-filter", kind: "shop", source: "hyperui", sourceName: "HyperUI", url: "https://www.hyperui.dev/components/marketing/product-collections", license: "MIT", licenseUrl: "https://github.com/markmead/hyperui/blob/main/LICENSE", react: false, how: "Copy the Filtering (Side) HTML", note: "A sidebar with sort, availability, price and colors." },
|
|
24061
|
-
{ part: "shop-banner", kind: "shop", source: "hyperui", sourceName: "HyperUI", url: "https://www.hyperui.dev/components/marketing/banners", license: "MIT", licenseUrl: "https://github.com/markmead/hyperui/blob/main/LICENSE", react: false, how: "Copy the HTML from the page", note: "A hero banner; put a real product photo in." },
|
|
24062
|
-
{ part: "shop-banner", kind: "shop", source: "hyperui", sourceName: "HyperUI", url: "https://www.hyperui.dev/components/marketing/announcements", license: "MIT", licenseUrl: "https://github.com/markmead/hyperui/blob/main/LICENSE", react: false, how: "Copy the HTML from the page", note: "A thin top bar for a real sale or free shipping." },
|
|
24063
|
-
{ part: "post-card", kind: "blog", source: "hyperui", sourceName: "HyperUI", url: "https://www.hyperui.dev/components/marketing/blog-cards", license: "MIT", licenseUrl: "https://github.com/markmead/hyperui/blob/main/LICENSE", react: false, how: "Copy the HTML from the page", note: "Seven cards with image, date, excerpt and tags." },
|
|
24064
|
-
{ part: "post-card", kind: "blog", source: "merakiui", sourceName: "Meraki UI", url: "https://merakiui.com/components/marketing/blog", license: "MIT", licenseUrl: "https://github.com/merakiui/merakiui/blob/main/LICENSE", react: false, how: "Copy the HTML from the Cards section", note: "RTL versions for Hebrew." },
|
|
24065
|
-
{ part: "post-list", kind: "blog", source: "astrowind", sourceName: "AstroWind", url: "https://github.com/arthelokyo/astrowind/tree/main/src/components/blog", license: "MIT", licenseUrl: "https://github.com/onwidget/astrowind/blob/main/LICENSE.md", react: false, how: "Copy Grid.astro and GridItem.astro (or List.astro and ListItem.astro) and Pagination.astro, then fix their imports", note: "Astro files; the repository moved to arthelokyo." },
|
|
24066
|
-
{ part: "post-list", kind: "blog", source: "merakiui", sourceName: "Meraki UI", url: "https://merakiui.com/components/marketing/blog", license: "MIT", licenseUrl: "https://github.com/merakiui/merakiui/blob/main/LICENSE", react: false, how: "Copy the HTML from the Grid or Recent Posts section", note: "RTL versions for Hebrew." },
|
|
24067
|
-
{ part: "post-list", kind: "blog", source: "astro-blog", sourceName: "Astro blog starter", url: "https://github.com/withastro/astro/blob/main/examples/blog/src/pages/blog/index.astro", license: "MIT", licenseUrl: "https://github.com/withastro/astro/blob/main/LICENSE", react: false, how: "Copy the file", note: "A content collection grid; plain CSS, not Tailwind." },
|
|
24068
|
-
{ part: "article-layout", kind: "blog", source: "astrowind", sourceName: "AstroWind", url: "https://github.com/arthelokyo/astrowind/blob/main/src/components/blog/SinglePost.astro", license: "MIT", licenseUrl: "https://github.com/onwidget/astrowind/blob/main/LICENSE.md", react: false, how: "Copy the file and its imports (PostTags, share)", note: "Date, author, category, reading time, image, tags, share." },
|
|
24069
|
-
{ part: "article-layout", kind: "blog", source: "astro-blog", sourceName: "Astro blog starter", url: "https://github.com/withastro/astro/blob/main/examples/blog/src/layouts/BlogPost.astro", license: "MIT", licenseUrl: "https://github.com/withastro/astro/blob/main/LICENSE", react: false, how: "Copy the file", note: "Hero image, title, dates and the text; plain CSS." },
|
|
24070
|
-
{ part: "article-layout", kind: "blog", source: "merakiui", sourceName: "Meraki UI", url: "https://merakiui.com/components/marketing/blog", license: "MIT", licenseUrl: "https://github.com/merakiui/merakiui/blob/main/LICENSE", react: false, how: "Copy the HTML from the Single Post section", note: "RTL versions for Hebrew." },
|
|
24071
|
-
{ part: "author-box", kind: "blog", source: "merakiui", sourceName: "Meraki UI", url: "https://merakiui.com/components/marketing/blog", license: "MIT", licenseUrl: "https://github.com/merakiui/merakiui/blob/main/LICENSE", react: false, how: "Copy the author line (photo, name, role) from the blog components", note: "A byline, not a full box (see the prompt)." },
|
|
24072
|
-
{ part: "related-posts", kind: "blog", source: "astrowind", sourceName: "AstroWind", url: "https://github.com/arthelokyo/astrowind/blob/main/src/components/blog/RelatedPosts.astro", license: "MIT", licenseUrl: "https://github.com/onwidget/astrowind/blob/main/LICENSE.md", react: false, how: "Copy the file, widgets/BlogHighlightedPosts.astro and their utils", note: "Up to four posts by shared tags." },
|
|
24073
|
-
{ part: "newsletter", kind: "blog", source: "hyperui", sourceName: "HyperUI", url: "https://www.hyperui.dev/components/marketing/newsletter-signup", license: "MIT", licenseUrl: "https://github.com/markmead/hyperui/blob/main/LICENSE", react: false, how: "Copy the HTML from the page (needs @tailwindcss/forms)", note: "Wire it to the inbox block or the owner's list." },
|
|
24074
|
-
{ part: "newsletter", kind: "blog", source: "astrowind", sourceName: "AstroWind", url: "https://github.com/arthelokyo/astrowind/blob/main/src/components/widgets/Newsletter.astro", license: "MIT", licenseUrl: "https://github.com/onwidget/astrowind/blob/main/LICENSE.md", react: false, how: "Copy the file and its WidgetWrapper and Headline imports", note: "Email and Subscribe; no backend." },
|
|
24075
|
-
{ part: "tags-list", kind: "blog", source: "astrowind", sourceName: "AstroWind", url: "https://github.com/arthelokyo/astrowind/blob/main/src/components/blog/Tags.astro", license: "MIT", licenseUrl: "https://github.com/onwidget/astrowind/blob/main/LICENSE.md", react: false, how: "Copy the file and fix its imports", note: "Tag or category links." },
|
|
24076
|
-
{ part: "toc", kind: "blog", source: "astro-cactus", sourceName: "Astro Theme Cactus", url: "https://github.com/chrismwilliams/astro-theme-cactus/blob/main/src/components/blog/TOC.astro", license: "MIT", licenseUrl: "https://github.com/chrismwilliams/astro-theme-cactus/blob/main/LICENSE", react: false, how: "Copy TOC.astro, TOCHeading.astro and src/utils/generateToc, pass the headings from render()", note: "Folds, and stays in view on wide screens." }
|
|
24077
|
-
];
|
|
24078
|
-
var UI_PART_PROMPTS = {
|
|
24079
|
-
"product-page": "Build the product page as one Astro component: a gallery of the product's real photos (large image, thumbnails under it that swap it, swipe on a phone, arrows with labels for the keyboard), then name, price with VAT, the options the product really has, quantity and Add to cart, then the description and the shipping and returns lines the owner gave. Mobile first, right to left in Hebrew, no React unless the site already has it, images with width, height and alt.",
|
|
24080
|
-
"author-box": "Build an author box as one Astro component for the end of a post: the author's photo, name, one line about them and links they gave (site, social), from the author data the posts already have. Never invent a bio: leave out what the owner did not give. Right to left in Hebrew, no React."
|
|
24081
|
-
};
|
|
24082
|
-
function uiPartsText() {
|
|
24083
|
-
const by = /* @__PURE__ */ new Map();
|
|
24084
|
-
for (const p of UI_PARTS) by.set(p.part, [...by.get(p.part) ?? [], p]);
|
|
24085
|
-
return [
|
|
24086
|
-
"Ready parts for a shop or a blog (free, MIT): copy a part from its page into the site, keep its license notice, and add it to .deployai/migration/credits.md. Prefer the ones with no React. Use only the parts the site needs.",
|
|
24087
|
-
...UI_PART_KEYS.map((k) => {
|
|
24088
|
-
const list = (by.get(k) ?? []).map((p) => `${p.sourceName} ${p.url} (${p.how}${p.react ? "; React markup, turn it into Astro" : ""})`).join("; ");
|
|
24089
|
-
const prompt = UI_PART_PROMPTS[k];
|
|
24090
|
-
return `- ${k}: ${list}${prompt ? `. Build it yourself instead when it falls short: ${prompt}` : ""}`;
|
|
24091
|
-
})
|
|
24092
|
-
].join("\n");
|
|
24093
|
-
}
|
|
24094
|
-
|
|
24095
24108
|
// ../shared/src/migration.ts
|
|
24096
24109
|
var BLOCKED_MOVE_ENDINGS = ["gov", "gov.il", "mil", "mil.il", "idf.il", "muni.il", "bank", "insurance"];
|
|
24097
24110
|
var BLOCKED_MOVE_HOSTS = [
|
|
@@ -25500,7 +25513,7 @@ function formatBytes(n2) {
|
|
|
25500
25513
|
}
|
|
25501
25514
|
|
|
25502
25515
|
// src/version.ts
|
|
25503
|
-
var CLI_VERSION = "0.1.0-beta.
|
|
25516
|
+
var CLI_VERSION = "0.1.0-beta.47";
|
|
25504
25517
|
|
|
25505
25518
|
// src/api.ts
|
|
25506
25519
|
function apiContext(apiFlag, root) {
|
|
@@ -26565,7 +26578,7 @@ function cleanRules(v) {
|
|
|
26565
26578
|
const o = v && typeof v === "object" ? v : {};
|
|
26566
26579
|
const rules = {};
|
|
26567
26580
|
if (o.rules && typeof o.rules === "object") {
|
|
26568
|
-
for (const [k, t] of Object.entries(o.rules)) if (typeof t === "string" && t.trim() && t.length <
|
|
26581
|
+
for (const [k, t] of Object.entries(o.rules)) if (typeof t === "string" && t.trim() && t.length < 4e4) rules[k] = t;
|
|
26569
26582
|
}
|
|
26570
26583
|
const extra = Array.isArray(o.extra) ? o.extra.filter((t) => typeof t === "string" && t.trim().length > 0 && t.length < 4e3).slice(0, 20) : [];
|
|
26571
26584
|
return { rules, extra };
|
|
@@ -30113,13 +30126,16 @@ ${choices.brief}
|
|
|
30113
30126
|
|
|
30114
30127
|
// src/commands/addon.ts
|
|
30115
30128
|
import { dirname as dirname6, join as join20, resolve as resolve5 } from "path";
|
|
30116
|
-
import { mkdirSync as mkdirSync10 } from "fs";
|
|
30117
|
-
import { existsSync as existsSync17, writeFileSync as writeFileSync16 } from "fs";
|
|
30129
|
+
import { mkdirSync as mkdirSync10, existsSync as existsSync17, writeFileSync as writeFileSync16 } from "fs";
|
|
30118
30130
|
function linkedProjectId2(root) {
|
|
30119
30131
|
const id = readProject(root)?.projectId;
|
|
30120
30132
|
if (!id) throw new CliError("This folder is not linked to a DeployAI site. Run: npx deployai@latest login, then npx deployai@latest link", 1, "not_linked");
|
|
30121
30133
|
return id;
|
|
30122
30134
|
}
|
|
30135
|
+
function requireSiteCode(root) {
|
|
30136
|
+
if (filesIn(root).length) return;
|
|
30137
|
+
throw new CliError("This folder has no site code yet, so an add-on has nothing to change. Run: npx deployai@latest pull, then run this command again. If pull says the site has no version yet, build the site and deploy it first, then add the add-ons.", 1, "empty_folder");
|
|
30138
|
+
}
|
|
30123
30139
|
var STATUS_WORDS = { todo: "not started", served: "in progress", done: "done", failed: "failed", skipped: "skipped" };
|
|
30124
30140
|
async function addonsCommand(root, ctx) {
|
|
30125
30141
|
requireToken(ctx);
|
|
@@ -30168,6 +30184,7 @@ async function addonsRunCommand(root, ctx, opts = {}) {
|
|
|
30168
30184
|
out(r.addons.some((a) => a.owned) ? "Every add-on of this site is done or skipped. To run one again: npx deployai@latest addon run <name>" : "This site has no add-ons yet. See them: npx deployai@latest addons");
|
|
30169
30185
|
return;
|
|
30170
30186
|
}
|
|
30187
|
+
requireSiteCode(root);
|
|
30171
30188
|
const all = opts.all === true || !opts.oneByOne && readProject(root)?.addonsAll === true;
|
|
30172
30189
|
if (!order && r.picked && !r.agreed && todo.length > 1 && (opts.all || !all)) {
|
|
30173
30190
|
const stamps = readStamps(root);
|
|
@@ -30243,6 +30260,7 @@ function printAddon(root, a) {
|
|
|
30243
30260
|
async function addonNextCommand(root, ctx) {
|
|
30244
30261
|
requireToken(ctx);
|
|
30245
30262
|
const projectId = linkedProjectId2(root);
|
|
30263
|
+
requireSiteCode(root);
|
|
30246
30264
|
try {
|
|
30247
30265
|
printAddon(root, await apiRequest(ctx, "/api/cli/addons/next", AddonServe, { method: "POST", body: { projectId } }));
|
|
30248
30266
|
} catch (e3) {
|
|
@@ -30256,6 +30274,7 @@ async function addonNextCommand(root, ctx) {
|
|
|
30256
30274
|
async function addonRunCommand(root, ctx, key2) {
|
|
30257
30275
|
requireToken(ctx);
|
|
30258
30276
|
const projectId = linkedProjectId2(root);
|
|
30277
|
+
requireSiteCode(root);
|
|
30259
30278
|
printAddon(root, await apiRequest(ctx, `/api/cli/addons/${encodeURIComponent(key2.trim().toLowerCase())}?projectId=${encodeURIComponent(projectId)}`, AddonServe));
|
|
30260
30279
|
}
|
|
30261
30280
|
async function addonDoneCommand(root, ctx, runId, opts) {
|