@wix/agent-skills 1.15.0 → 1.16.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.
- package/README.md +5 -1
- package/package.json +1 -1
- package/skills/wix-app/SKILL.md +4 -1
- package/skills/wix-app/references/APP_TOOLS.md +134 -0
- package/skills/wix-app/references/CUSTOM_ELEMENT_WIDGET.md +1 -1
- package/skills/wix-app/references/DASHBOARD_PAGE.md +0 -10
- package/skills/wix-app/references/DATA_COLLECTION.md +6 -4
- package/skills/wix-app/references/EDITOR_REACT_COMPONENT.md +28 -7
- package/skills/wix-app/references/SERVICE_PLUGIN.md +12 -10
- package/skills/wix-app/references/STORES_VERSIONING.md +9 -211
- package/skills/wix-app/references/app-tools/TOOLS.md +75 -0
- package/skills/wix-app/references/backend-event/COMMON-EVENTS.md +5 -0
- package/skills/wix-app/references/dashboard-page/DASHBOARD_API.md +2 -2
- package/skills/wix-app/references/editor-react-component/A11Y-REVIEW-REFERENCE.md +172 -0
- package/skills/wix-app/references/editor-react-component/A11Y-REVIEW.md +138 -0
- package/skills/wix-app/references/editor-react-component/ANIMATED-COMPONENTS.md +172 -0
- package/skills/wix-app/references/editor-react-component/BRANDED-COMPONENTS.md +29 -0
- package/skills/wix-app/references/editor-react-component/COMPONENT-API.md +1 -1
- package/skills/wix-app/references/editor-react-component/COMPONENT-PREVIEW.md +57 -0
- package/skills/wix-app/references/editor-react-component/CSS-GUIDELINES.md +33 -2
- package/skills/wix-app/references/editor-react-component/DESIGN-STATES.md +5 -3
- package/skills/wix-app/references/editor-react-component/DIRECTIONALITY.md +18 -1
- package/skills/wix-app/references/editor-react-component/PARTS.md +15 -2
- package/skills/wix-app/references/editor-react-component/REACT-GUIDELINES.md +4 -3
- package/skills/wix-app/references/service-plugin/BOOKINGS-STAFF-SORTING.md +13 -9
- package/skills/wix-app/references/service-plugin/DISCOUNT-TRIGGERS.md +4 -0
- package/skills/wix-app/references/service-plugin/GIFT-CARDS.md +4 -0
- package/skills/wix-app/references/service-plugin/PAYMENT-SETTINGS.md +3 -1
- package/skills/wix-app/references/service-plugin/SHIPPING-RATES.md +4 -0
- package/skills/wix-app/references/service-plugin/TOOLS_PROVIDER.md +54 -0
- package/skills/wix-app/references/stores/CATEGORIES.md +22 -0
- package/skills/wix-app/references/stores/GET_PRODUCT.md +99 -0
- package/skills/wix-app/references/stores/INVENTORY.md +37 -0
- package/skills/wix-app/references/stores/QUERY.md +119 -0
- package/skills/wix-app/references/stores/WRITE.md +55 -0
- package/skills/wix-docs/SKILL.md +35 -3
- package/skills/wix-headless/SKILL.md +9 -2
- package/skills/wix-headless/entry/bootstrap.mjs +2 -2
- package/skills/wix-headless/entry/skill.md +0 -2
- package/skills/wix-headless/references/CAPABILITIES.md +6 -4
- package/skills/wix-headless/references/CONTENT.md +36 -0
- package/skills/wix-headless/references/DESIGN.md +54 -0
- package/skills/wix-headless/references/DISCOVERY.md +25 -1
- package/skills/wix-headless/references/FEEDBACK.md +16 -5
- package/skills/wix-headless/references/IMAGE_GENERATION.md +10 -0
- package/skills/wix-headless/references/SDK_HANDOFF.md +2 -0
- package/skills/wix-headless/references/SEED.md +3 -1
- package/skills/wix-headless/references/SETUP.md +1 -1
- package/skills/wix-headless/references/inline-recipes/how-to-code-a-store.md +3 -2
- package/skills/wix-headless/references/inline-recipes/how-to-code-restaurant-reservations.md +42 -2
- package/skills/wix-headless/references/inline-recipes/setup-bookings.md +5 -1
- package/skills/wix-headless/references/inline-recipes/setup-forms.md +1 -1
- package/skills/wix-headless/references/inline-recipes/setup-online-store.md +33 -8
- package/skills/wix-headless/references/inline-recipes/setup-portfolio.md +3 -1
- package/skills/wix-headless/references/inline-recipes/setup-restaurant-experiences.md +73 -0
- package/skills/wix-headless/references/inline-recipes/setup-restaurant-orders.md +38 -2
- package/skills/wix-headless/references/inline-recipes/setup-restaurant-reservations.md +20 -1
- package/skills/wix-headless/references/inline-recipes/setup-restaurants.md +1 -1
- package/skills/wix-headless/references/managed/CONNECT.md +2 -2
- package/skills/wix-headless/references/managed/CREATE.md +15 -1
- package/skills/wix-headless/references/managed/DEPLOYMENT.md +47 -0
- package/skills/wix-headless/references/self-managed/DEPLOYMENT.md +8 -0
- package/skills/wix-headless/references/stripe/DEPLOYMENT.md +8 -0
- package/skills/wix-manage/SKILL.md +131 -12
- package/skills/wix-manage/references/analytics/analytics-dashboard-navigation.md +41 -0
- package/skills/wix-manage/references/analytics/query-site-analytics.md +66 -9
- package/skills/wix-manage/references/app-installation/app-installation-dashboard-navigation.md +28 -0
- package/skills/wix-manage/references/app-installation/install-wix-apps.md +3 -0
- package/skills/wix-manage/references/blog/blog-dashboard-navigation.md +56 -0
- package/skills/wix-manage/references/blog/how-to-create-blog-posts.md +31 -6
- package/skills/wix-manage/references/bookings/booking-service-policy-setup.md +3 -1
- package/skills/wix-manage/references/bookings/bookings-dashboard-navigation.md +63 -0
- package/skills/wix-manage/references/bookings/create-booking-service-from-prompt.md +6 -5
- package/skills/wix-manage/references/bookings/create-course-service.md +30 -5
- package/skills/wix-manage/references/bookings/diagnose-availability-issues.md +85 -42
- package/skills/wix-manage/references/cms/cms-dashboard-navigation.md +44 -0
- package/skills/wix-manage/references/cms/cms-data-items-crud.md +31 -3
- package/skills/wix-manage/references/cms/cms-publishing-flow.md +287 -0
- package/skills/wix-manage/references/cms/cms-schema-management.md +33 -1
- package/skills/wix-manage/references/contacts/contacts-dashboard-navigation.md +46 -0
- package/skills/wix-manage/references/contacts/create-a-contact.md +82 -0
- package/skills/wix-manage/references/contacts/update-a-contact.md +119 -0
- package/skills/wix-manage/references/dashboard-navigation/dashboard-navigation.md +82 -0
- package/skills/wix-manage/references/dashboard-navigation/routes.json +1733 -0
- package/skills/wix-manage/references/domains/domains-dashboard-navigation.md +32 -0
- package/skills/wix-manage/references/ecommerce/ecom-pricing.md +4 -4
- package/skills/wix-manage/references/ecommerce/ecom-shipping.md +1 -1
- package/skills/wix-manage/references/ecommerce/gift-cards/ecom-gift-cards-goal-sell-gift-cards.md +338 -0
- package/skills/wix-manage/references/ecommerce/pricing-promotions/ecom-pricing-create-discount-rule.md +42 -78
- package/skills/wix-manage/references/ecommerce/pricing-promotions/ecom-pricing-flow-bundle-and-save.md +1 -1
- package/skills/wix-manage/references/ecommerce/pricing-promotions/ecom-pricing-flow-stock-mover.md +1 -1
- package/skills/wix-manage/references/ecommerce/pricing-promotions/ecom-pricing-flow-upsell-boost.md +1 -1
- package/skills/wix-manage/references/ecommerce/recommend-ecommerce-strategy.md +90 -92
- package/skills/wix-manage/references/events/create-wix-event.md +176 -0
- package/skills/wix-manage/references/events/manage-wix-events.md +174 -0
- package/skills/wix-manage/references/forms/forms-dashboard-navigation.md +44 -0
- package/skills/wix-manage/references/get-paid/get-paid-dashboard-navigation.md +52 -0
- package/skills/wix-manage/references/get-paid/how-to-setup-wix-payments.md +30 -7
- package/skills/wix-manage/references/google-ads/billing-and-payment.md +80 -0
- package/skills/wix-manage/references/google-ads/create-performance-max-campaign.md +212 -0
- package/skills/wix-manage/references/google-ads/get-campaign-suggestions.md +110 -0
- package/skills/wix-manage/references/google-ads/google-ads-dashboard-navigation.md +25 -0
- package/skills/wix-manage/references/google-ads/install-and-create-account.md +155 -0
- package/skills/wix-manage/references/google-ads/manage-campaign-lifecycle.md +63 -0
- package/skills/wix-manage/references/google-ads/query-campaign-analytics.md +155 -0
- package/skills/wix-manage/references/marketing/create-and-publish-social-post.md +225 -144
- package/skills/wix-manage/references/marketing/generate-and-publish-marketing-plan.md +19 -10
- package/skills/wix-manage/references/marketing/marketing-dashboard-navigation.md +52 -0
- package/skills/wix-manage/references/pricing-plans/create-and-update-pricing-plans.md +99 -1
- package/skills/wix-manage/references/pricing-plans/pricing-plans-dashboard-navigation.md +45 -0
- package/skills/wix-manage/references/restaurants/restaurants-dashboard-navigation.md +68 -0
- package/skills/wix-manage/references/restaurants/wix-restaurants-setup.md +94 -125
- package/skills/wix-manage/references/site-properties/change-payment-currency-site-properties.md +48 -9
- package/skills/wix-manage/references/site-properties/site-properties-dashboard-navigation.md +31 -0
- package/skills/wix-manage/references/sites/create-headless-site.md +52 -0
- package/skills/wix-manage/references/sites/create-site-from-template.md +2 -25
- package/skills/wix-manage/references/sites/site-import.md +243 -0
- package/skills/wix-manage/references/sites/sites-dashboard-navigation.md +29 -0
- package/skills/wix-manage/references/stores/add-store-pages-to-site.md +17 -1
- package/skills/wix-manage/references/stores/create-product-from-image.md +8 -6
- package/skills/wix-manage/references/stores/create-product-with-options-catalog-v3.md +16 -10
- package/skills/wix-manage/references/stores/find-products-query-and-search-catalog-v3.md +26 -8
- package/skills/wix-manage/references/stores/stores-dashboard-navigation.md +65 -0
- package/skills/wix-manage/references/stores/update-product-with-options.md +39 -7
- package/skills/wix-replatform/.publish-manifest.json +8 -0
- package/skills/wix-replatform/SKILL.md +693 -0
- package/skills/wix-replatform/lib/artifact-freshness.js +215 -0
- package/skills/wix-replatform/lib/completion-report.js +200 -0
- package/skills/wix-replatform/lib/config-env.js +59 -0
- package/skills/wix-replatform/lib/execution-manifest.js +185 -0
- package/skills/wix-replatform/lib/execution-state.js +173 -0
- package/skills/wix-replatform/lib/import-recovery.js +313 -0
- package/skills/wix-replatform/lib/local-state.js +642 -0
- package/skills/wix-replatform/lib/orchestration-preflight.js +143 -0
- package/skills/wix-replatform/lib/orchestration-router.js +122 -0
- package/skills/wix-replatform/lib/orchestration-state.js +455 -0
- package/skills/wix-replatform/lib/progress-log.js +224 -0
- package/skills/wix-replatform/lib/progress-log.sh +140 -0
- package/skills/wix-replatform/lib/url-preservation-state.js +391 -0
- package/skills/wix-replatform/resources/rp-discovery/SKILL.md +184 -0
- package/skills/wix-replatform/resources/rp-execute-import/SKILL.md +529 -0
- package/skills/wix-replatform/resources/rp-execute-setup/SKILL.md +316 -0
- package/skills/wix-replatform/resources/rp-execute-setup/scripts/mint-token.sh +64 -0
- package/skills/wix-replatform/resources/rp-import-codegen/SKILL.md +1114 -0
- package/skills/wix-replatform/resources/rp-mapper/SKILL.md +430 -0
- package/skills/wix-replatform/resources/rp-mapper/lib/mapping-resolve.js +217 -0
- package/skills/wix-replatform/resources/rp-mapper/scripts/resolve-mapping.js +148 -0
- package/skills/wix-replatform/resources/rp-mapper/wix-business-solutions-taxonomy.md +378 -0
- package/skills/wix-replatform/resources/rp-setup-discovery/SKILL.md +183 -0
- package/skills/wix-replatform/resources/rp-source-csv/SKILL.md +478 -0
- package/skills/wix-replatform/resources/rp-source-csv/lib/canonical-record.js +136 -0
- package/skills/wix-replatform/resources/rp-source-csv/lib/csv-fileset.js +0 -0
- package/skills/wix-replatform/resources/rp-source-csv/lib/csv-fingerprint.js +310 -0
- package/skills/wix-replatform/resources/rp-source-csv/lib/csv-layout.js +1081 -0
- package/skills/wix-replatform/resources/rp-source-csv/lib/csv-parse.js +618 -0
- package/skills/wix-replatform/resources/rp-source-csv/scripts/csv-discovery.js +949 -0
- package/skills/wix-replatform/resources/rp-source-csv/source-schema.example.json +196 -0
- package/skills/wix-replatform/resources/rp-source-csv/vendors/bigcommerce.json +66 -0
- package/skills/wix-replatform/resources/rp-source-csv/vendors/magento.json +60 -0
- package/skills/wix-replatform/resources/rp-source-csv/vendors/shopify.json +95 -0
- package/skills/wix-replatform/resources/rp-source-csv/vendors/woocommerce.json +82 -0
- package/skills/wix-replatform/resources/rp-source-wordpress/SKILL.md +256 -0
- package/skills/wix-replatform/resources/rp-source-wordpress/lib/wp-http.js +249 -0
- package/skills/wix-replatform/resources/rp-source-wordpress/lib/wp-route-classifier.js +444 -0
- package/skills/wix-replatform/resources/rp-source-wordpress/scripts/wp-discovery.js +774 -0
- package/skills/wix-replatform/resources/rp-source-wordpress/source-schema.example.json +71 -0
- package/skills/wix-replatform/resources/rp-target-wix/SKILL.md +632 -0
- package/skills/wix-replatform/resources/rp-target-wix/SPEC-product-reviews-and-blog-authorship.md +330 -0
- package/skills/wix-replatform/resources/rp-target-wix/domains/README.md +21 -0
- package/skills/wix-replatform/resources/rp-target-wix/domains/blog/domain.json +19 -0
- package/skills/wix-replatform/resources/rp-target-wix/domains/blog/entities/category.json +37 -0
- package/skills/wix-replatform/resources/rp-target-wix/domains/blog/entities/comment.json +37 -0
- package/skills/wix-replatform/resources/rp-target-wix/domains/blog/entities/post.json +39 -0
- package/skills/wix-replatform/resources/rp-target-wix/domains/blog/entities/tag.json +35 -0
- package/skills/wix-replatform/resources/rp-target-wix/domains/cms/domain.json +14 -0
- package/skills/wix-replatform/resources/rp-target-wix/domains/cms/entities/collection.json +35 -0
- package/skills/wix-replatform/resources/rp-target-wix/domains/cms/entities/data-item.json +36 -0
- package/skills/wix-replatform/resources/rp-target-wix/domains/cms/entities/reference.json +35 -0
- package/skills/wix-replatform/resources/rp-target-wix/domains/crm/domain.json +14 -0
- package/skills/wix-replatform/resources/rp-target-wix/domains/crm/entities/contact.json +131 -0
- package/skills/wix-replatform/resources/rp-target-wix/domains/crm/entities/email-subscription.json +37 -0
- package/skills/wix-replatform/resources/rp-target-wix/domains/crm/entities/label.json +37 -0
- package/skills/wix-replatform/resources/rp-target-wix/domains/ecom/domain.json +21 -0
- package/skills/wix-replatform/resources/rp-target-wix/domains/ecom/entities/order-line-item.json +37 -0
- package/skills/wix-replatform/resources/rp-target-wix/domains/ecom/entities/order-refund.json +37 -0
- package/skills/wix-replatform/resources/rp-target-wix/domains/ecom/entities/order.json +97 -0
- package/skills/wix-replatform/resources/rp-target-wix/domains/index.json +528 -0
- package/skills/wix-replatform/resources/rp-target-wix/domains/media/domain.json +14 -0
- package/skills/wix-replatform/resources/rp-target-wix/domains/media/entities/media-file.json +38 -0
- package/skills/wix-replatform/resources/rp-target-wix/domains/media/entities/media-folder.json +37 -0
- package/skills/wix-replatform/resources/rp-target-wix/domains/members/domain.json +13 -0
- package/skills/wix-replatform/resources/rp-target-wix/domains/members/entities/badge.json +37 -0
- package/skills/wix-replatform/resources/rp-target-wix/domains/members/entities/member.json +53 -0
- package/skills/wix-replatform/resources/rp-target-wix/domains/schema.json +84 -0
- package/skills/wix-replatform/resources/rp-target-wix/domains/stores/domain.json +25 -0
- package/skills/wix-replatform/resources/rp-target-wix/domains/stores/entities/category.json +37 -0
- package/skills/wix-replatform/resources/rp-target-wix/domains/stores/entities/coupon.json +37 -0
- package/skills/wix-replatform/resources/rp-target-wix/domains/stores/entities/inventory-item.json +38 -0
- package/skills/wix-replatform/resources/rp-target-wix/domains/stores/entities/product-tag.json +37 -0
- package/skills/wix-replatform/resources/rp-target-wix/domains/stores/entities/product.json +90 -0
- package/skills/wix-replatform/resources/rp-target-wix/lib/audit-summary.js +64 -0
- package/skills/wix-replatform/resources/rp-target-wix/lib/contract-ledger.js +141 -0
- package/skills/wix-replatform/resources/rp-target-wix/lib/domain-knowledge.js +384 -0
- package/skills/wix-replatform/resources/rp-target-wix/lib/ndjson.js +260 -0
- package/skills/wix-replatform/resources/rp-target-wix/lib/stores-verification.js +238 -0
- package/skills/wix-replatform/resources/rp-target-wix/lib/wix-build.js +237 -0
- package/skills/wix-replatform/resources/rp-target-wix/lib/wix-target-spec.js +238 -0
- package/skills/wix-replatform/resources/rp-target-wix/lib/wix-writers.js +2219 -0
- package/skills/wix-replatform/resources/rp-target-wix/scripts/domain-knowledge-validate.js +31 -0
- package/skills/wix-replatform/resources/rp-target-wix/scripts/domain-knowledge.js +100 -0
- package/skills/wix-replatform/resources/rp-target-wix/scripts/verify-stores.js +107 -0
- package/skills/wix-replatform/resources/rp-telemetry/SKILL.md +344 -0
- package/skills/wix-replatform/resources/rp-telemetry/lib/bi-sink.js +250 -0
- package/skills/wix-replatform/resources/rp-telemetry/lib/telemetry-recorder.js +1927 -0
- package/skills/wix-replatform/resources/rp-telemetry/scripts/meter-from-audit.js +83 -0
- package/skills/wix-replatform/resources/rp-telemetry/scripts/rp-telemetry.js +141 -0
- package/skills/wix-replatform/scripts/artifact-freshness.js +76 -0
- package/skills/wix-replatform/scripts/execution-manifest-validate.js +43 -0
- package/skills/wix-replatform/scripts/execution-state-prepare.js +128 -0
- package/skills/wix-replatform/scripts/orchestration-preflight.js +48 -0
- package/skills/wix-replatform/scripts/orchestration-route.js +46 -0
- package/skills/wix-replatform/scripts/orchestration-state.js +245 -0
- package/skills/wix-vibe-headless/SKILL.md +54 -25
- package/skills/wix-vibe-headless/install/deploy.cjs +95 -0
- package/skills/wix-vibe-headless/install/pin-agents-md.cjs +34 -0
- package/skills/wix-vibe-headless/platforms/README.md +26 -0
- package/skills/wix-vibe-headless/platforms/base44.md +177 -0
- package/skills/wix-vibe-headless/platforms/generic.md +122 -0
- package/skills/wix-vibe-headless/references/blog/INSTRUCTIONS.md +230 -119
- package/skills/wix-vibe-headless/references/blog/app/components/PostCard.jsx +43 -0
- package/skills/wix-vibe-headless/references/blog/app/components/PostChips.jsx +25 -0
- package/skills/wix-vibe-headless/references/blog/app/components/PostGrid.jsx +15 -0
- package/skills/wix-vibe-headless/references/blog/app/context/TaxonomyContext.jsx +35 -0
- package/skills/wix-vibe-headless/references/blog/app/hooks/usePostDetail.js +38 -0
- package/skills/wix-vibe-headless/references/blog/app/pages/Blog.jsx +40 -0
- package/skills/wix-vibe-headless/references/blog/app/pages/CategoryPage.jsx +54 -0
- package/skills/wix-vibe-headless/references/blog/app/pages/PostDetail.jsx +65 -0
- package/skills/wix-vibe-headless/references/blog/app/pages/TagPage.jsx +50 -0
- package/skills/wix-vibe-headless/references/blog/seed/SEED.md +103 -0
- package/skills/wix-vibe-headless/references/blog/seed/seed-blog.js +270 -0
- package/skills/wix-vibe-headless/references/bookings/INSTRUCTIONS.md +260 -145
- package/skills/wix-vibe-headless/references/bookings/app/components/BookingForm.jsx +65 -0
- package/skills/wix-vibe-headless/references/bookings/app/components/ServiceCard.jsx +47 -0
- package/skills/wix-vibe-headless/references/bookings/app/components/ServiceGrid.jsx +13 -0
- package/skills/wix-vibe-headless/references/bookings/app/components/SlotPicker.jsx +126 -0
- package/skills/wix-vibe-headless/references/bookings/app/hooks/useServiceDetail.js +108 -0
- package/skills/wix-vibe-headless/references/bookings/app/hooks/useServices.js +58 -0
- package/skills/wix-vibe-headless/references/bookings/app/lib/serviceFacts.js +95 -0
- package/skills/wix-vibe-headless/references/bookings/app/pages/ServiceDetail.jsx +94 -0
- package/skills/wix-vibe-headless/references/bookings/app/pages/Services.jsx +89 -0
- package/skills/wix-vibe-headless/references/bookings/{wix-bookings-checkout.js → app/rest/wix-bookings-checkout.js} +1 -1
- package/skills/wix-vibe-headless/references/bookings/{wix-bookings-services.js → app/rest/wix-bookings-services.js} +90 -12
- package/skills/wix-vibe-headless/references/bookings/seed/SEED.md +117 -0
- package/skills/wix-vibe-headless/references/bookings/seed/seed-bookings.js +333 -0
- package/skills/wix-vibe-headless/references/cms/INSTRUCTIONS.md +169 -147
- package/skills/wix-vibe-headless/references/cms/app/collection.config.js +31 -0
- package/skills/wix-vibe-headless/references/cms/app/lib/wixImage.js +18 -0
- package/skills/wix-vibe-headless/references/cms/{wix-cms.js → app/rest/wix-cms.js} +47 -2
- package/skills/wix-vibe-headless/references/cms/seed/SEED.md +145 -0
- package/skills/wix-vibe-headless/references/events/INSTRUCTIONS.md +228 -131
- package/skills/wix-vibe-headless/references/events/app/components/CategoryFilter.jsx +23 -0
- package/skills/wix-vibe-headless/references/events/app/components/EventCard.jsx +43 -0
- package/skills/wix-vibe-headless/references/events/app/components/EventGrid.jsx +13 -0
- package/skills/wix-vibe-headless/references/events/app/components/EventRegistration.jsx +29 -0
- package/skills/wix-vibe-headless/references/events/app/components/RsvpForm.jsx +57 -0
- package/skills/wix-vibe-headless/references/events/app/components/TicketPicker.jsx +78 -0
- package/skills/wix-vibe-headless/references/events/app/hooks/useEventDetail.js +27 -0
- package/skills/wix-vibe-headless/references/events/app/hooks/useEventsList.js +54 -0
- package/skills/wix-vibe-headless/references/events/app/hooks/useRsvpForm.js +40 -0
- package/skills/wix-vibe-headless/references/events/app/hooks/useTicketing.js +81 -0
- package/skills/wix-vibe-headless/references/events/app/pages/EventDetail.jsx +48 -0
- package/skills/wix-vibe-headless/references/events/app/pages/Events.jsx +36 -0
- package/skills/wix-vibe-headless/references/events/{wix-events-browse.js → app/rest/wix-events-browse.js} +3 -2
- package/skills/wix-vibe-headless/references/events/seed/SEED.md +107 -0
- package/skills/wix-vibe-headless/references/events/seed/seed-events.js +251 -0
- package/skills/wix-vibe-headless/references/members/INSTRUCTIONS.md +276 -188
- package/skills/wix-vibe-headless/references/members/app/components/LoginForm.jsx +101 -0
- package/skills/wix-vibe-headless/references/members/app/components/MemberMenu.jsx +33 -0
- package/skills/wix-vibe-headless/references/members/app/components/RequireAuth.jsx +21 -0
- package/skills/wix-vibe-headless/references/members/app/components/SocialButtons.jsx +29 -0
- package/skills/wix-vibe-headless/references/members/app/context/MemberContext.jsx +54 -0
- package/skills/wix-vibe-headless/references/members/app/hooks/useLoginForm.js +77 -0
- package/skills/wix-vibe-headless/references/members/app/pages/Account.jsx +36 -0
- package/skills/wix-vibe-headless/references/members/app/pages/Callback.jsx +32 -0
- package/skills/wix-vibe-headless/references/members/app/pages/Login.jsx +35 -0
- package/skills/wix-vibe-headless/references/members/{wix-members-auth.js → app/rest/wix-members-auth.js} +6 -3
- package/skills/wix-vibe-headless/references/members/install/Register.jsx +22 -0
- package/skills/wix-vibe-headless/references/members/seed/SEED.md +22 -0
- package/skills/wix-vibe-headless/references/portfolio/INSTRUCTIONS.md +233 -104
- package/skills/wix-vibe-headless/references/portfolio/app/components/CollectionCard.jsx +31 -0
- package/skills/wix-vibe-headless/references/portfolio/app/components/CollectionGrid.jsx +15 -0
- package/skills/wix-vibe-headless/references/portfolio/app/components/ProjectCard.jsx +39 -0
- package/skills/wix-vibe-headless/references/portfolio/app/components/ProjectGrid.jsx +15 -0
- package/skills/wix-vibe-headless/references/portfolio/app/components/ProjectMedia.jsx +29 -0
- package/skills/wix-vibe-headless/references/portfolio/app/hooks/useCollectionProjects.js +35 -0
- package/skills/wix-vibe-headless/references/portfolio/app/hooks/usePortfolioGallery.js +27 -0
- package/skills/wix-vibe-headless/references/portfolio/app/hooks/useProjectDetail.js +25 -0
- package/skills/wix-vibe-headless/references/portfolio/app/pages/CollectionPage.jsx +39 -0
- package/skills/wix-vibe-headless/references/portfolio/app/pages/Portfolio.jsx +27 -0
- package/skills/wix-vibe-headless/references/portfolio/app/pages/ProjectDetail.jsx +60 -0
- package/skills/wix-vibe-headless/references/portfolio/{wix-portfolio.js → app/rest/wix-portfolio.js} +84 -55
- package/skills/wix-vibe-headless/references/portfolio/seed/SEED.md +94 -0
- package/skills/wix-vibe-headless/references/portfolio/seed/seed-portfolio.js +236 -0
- package/skills/wix-vibe-headless/references/pricing-plans/INSTRUCTIONS.md +240 -117
- package/skills/wix-vibe-headless/references/pricing-plans/app/components/OrderCard.jsx +35 -0
- package/skills/wix-vibe-headless/references/pricing-plans/app/components/PlanCard.jsx +48 -0
- package/skills/wix-vibe-headless/references/pricing-plans/app/components/PlanGrid.jsx +16 -0
- package/skills/wix-vibe-headless/references/pricing-plans/app/components/PlanPrice.jsx +35 -0
- package/skills/wix-vibe-headless/references/pricing-plans/app/hooks/useMyPlans.js +25 -0
- package/skills/wix-vibe-headless/references/pricing-plans/app/hooks/usePlanDetail.js +28 -0
- package/skills/wix-vibe-headless/references/pricing-plans/app/hooks/usePlans.js +30 -0
- package/skills/wix-vibe-headless/references/pricing-plans/app/pages/MyPlans.jsx +30 -0
- package/skills/wix-vibe-headless/references/pricing-plans/app/pages/PlanDetail.jsx +53 -0
- package/skills/wix-vibe-headless/references/pricing-plans/app/pages/Plans.jsx +28 -0
- package/skills/wix-vibe-headless/references/pricing-plans/seed/SEED.md +86 -0
- package/skills/wix-vibe-headless/references/pricing-plans/seed/seed-pricing-plans.js +251 -0
- package/skills/wix-vibe-headless/references/restaurants/INSTRUCTIONS.md +248 -124
- package/skills/wix-vibe-headless/references/restaurants/app/components/ItemDialog.jsx +81 -0
- package/skills/wix-vibe-headless/references/restaurants/app/components/MenuItemCard.jsx +71 -0
- package/skills/wix-vibe-headless/references/restaurants/app/components/MenuList.jsx +43 -0
- package/skills/wix-vibe-headless/references/restaurants/app/components/OrderCartButton.jsx +21 -0
- package/skills/wix-vibe-headless/references/restaurants/app/components/OrderCartDrawer.jsx +60 -0
- package/skills/wix-vibe-headless/references/restaurants/app/context/OrderCartContext.jsx +63 -0
- package/skills/wix-vibe-headless/references/restaurants/app/hooks/useItemOrder.js +32 -0
- package/skills/wix-vibe-headless/references/restaurants/app/hooks/useReservation.js +73 -0
- package/skills/wix-vibe-headless/references/restaurants/app/pages/Menu.jsx +28 -0
- package/skills/wix-vibe-headless/references/restaurants/app/pages/Reservations.jsx +102 -0
- package/skills/wix-vibe-headless/references/restaurants/seed/SEED.md +180 -0
- package/skills/wix-vibe-headless/references/restaurants/seed/seed-restaurants.js +452 -0
- package/skills/wix-vibe-headless/references/shared/app/components/WixManageBanner.jsx +56 -0
- package/skills/wix-vibe-headless/references/shared/{wix-client.js → app/rest/wix-client.js} +6 -8
- package/skills/wix-vibe-headless/references/shared/app/rest/wix-config.js +6 -0
- package/skills/wix-vibe-headless/references/storefront/INSTRUCTIONS.md +263 -148
- package/skills/wix-vibe-headless/references/storefront/app/components/CartButton.jsx +20 -0
- package/skills/wix-vibe-headless/references/storefront/app/components/CartDrawer.jsx +150 -0
- package/skills/wix-vibe-headless/references/storefront/app/components/ProductCard.jsx +167 -0
- package/skills/wix-vibe-headless/references/storefront/app/components/ProductGallery.jsx +51 -0
- package/skills/wix-vibe-headless/references/storefront/app/components/ProductGrid.jsx +54 -0
- package/skills/wix-vibe-headless/references/storefront/app/components/VariantPicker.jsx +119 -0
- package/skills/wix-vibe-headless/references/storefront/app/context/CartContext.jsx +71 -0
- package/skills/wix-vibe-headless/references/storefront/app/hooks/useProductDetail.js +109 -0
- package/skills/wix-vibe-headless/references/storefront/app/hooks/useShop.js +98 -0
- package/skills/wix-vibe-headless/references/storefront/app/lib/storeImage.js +27 -0
- package/skills/wix-vibe-headless/references/storefront/app/pages/ProductDetail.jsx +139 -0
- package/skills/wix-vibe-headless/references/storefront/app/pages/Shop.jsx +75 -0
- package/skills/wix-vibe-headless/references/storefront/{wix-store-cart.js → app/rest/wix-store-cart.js} +1 -1
- package/skills/wix-vibe-headless/references/storefront/{wix-store-catalog.js → app/rest/wix-store-catalog.js} +25 -2
- package/skills/wix-vibe-headless/references/storefront/seed/SEED.md +111 -0
- package/skills/wix-vibe-headless/references/storefront/seed/seed-store.js +299 -0
- /package/skills/wix-vibe-headless/references/blog/{wix-blog.js → app/rest/wix-blog.js} +0 -0
- /package/skills/wix-vibe-headless/references/events/{wix-events-registration.js → app/rest/wix-events-registration.js} +0 -0
- /package/skills/wix-vibe-headless/references/pricing-plans/{wix-pricing-plans.js → app/rest/wix-pricing-plans.js} +0 -0
- /package/skills/wix-vibe-headless/references/restaurants/{wix-restaurants-menu.js → app/rest/wix-restaurants-menu.js} +0 -0
- /package/skills/wix-vibe-headless/references/restaurants/{wix-restaurants-ordering.js → app/rest/wix-restaurants-ordering.js} +0 -0
- /package/skills/wix-vibe-headless/references/restaurants/{wix-restaurants-reservations.js → app/rest/wix-restaurants-reservations.js} +0 -0
|
@@ -0,0 +1,177 @@
|
|
|
1
|
+
# Wix Managed Headless — Base44 build instructions
|
|
2
|
+
|
|
3
|
+
You are building a **Wix Managed** headless site inside Base44 — the business is described in your
|
|
4
|
+
initial prompt, and the Wix connector is already configured; use it for all admin API calls.
|
|
5
|
+
|
|
6
|
+
Your Wix client id is in your prompt — a public, buyer-facing credential (anonymous visitor tokens
|
|
7
|
+
only), safe in the frontend; use it directly for the Wix client setup.
|
|
8
|
+
|
|
9
|
+
> **`wix-vibe-headless` and `wix-docs` are the complete build and seed path for this app — the Wix connector supplies the token for admin API calls.** **Do NOT use the Base44 commerce kit (or any Base44 solution kit).**
|
|
10
|
+
|
|
11
|
+
Follow STEPs 1–5 below exactly (run STEP 4 in parallel with STEP 3).
|
|
12
|
+
|
|
13
|
+
## STEP 1 — Install the Wix skills locally
|
|
14
|
+
|
|
15
|
+
Install two skills — they land under `.agents/skills/`:
|
|
16
|
+
- **`wix-vibe-headless`** — the client build **and** seed guide (STEPs 3–4): your main source of
|
|
17
|
+
truth. Seeding lives here too, per-vertical under `references/<vertical>/seed/`.
|
|
18
|
+
- **`wix-docs`** — a **fallback**: search + read the Wix API docs for anything `wix-vibe-headless`
|
|
19
|
+
doesn't cover.
|
|
20
|
+
|
|
21
|
+
Install via the skills CLI — run this through exec_tool, exactly as written. It installs the two
|
|
22
|
+
skills, then runs `deploy.cjs <vertical…>` (lays the shared transport + **each** listed vertical's
|
|
23
|
+
REST scaffolds and UI client into `src/`) and `pin-agents-md.cjs` (pins the project's AGENTS.md
|
|
24
|
+
note so later turns keep the rules).
|
|
25
|
+
|
|
26
|
+
**Set `VERTICALS`** to what the prompt asks for (too vague to tell? do STEP 2 first, then set it):
|
|
27
|
+
|
|
28
|
+
| vertical | pick it when the app needs to |
|
|
29
|
+
|---|---|
|
|
30
|
+
| `storefront` | sell products |
|
|
31
|
+
| `bookings` | take appointments or service bookings |
|
|
32
|
+
| `blog` | publish articles |
|
|
33
|
+
| `events` | publish events with RSVPs or ticket sales |
|
|
34
|
+
| `portfolio` | showcase creative work |
|
|
35
|
+
| `pricing-plans` | sell memberships or subscriptions |
|
|
36
|
+
| `restaurants` | show a menu, take orders, book tables |
|
|
37
|
+
| `members` | let visitors sign in — this is **auth** |
|
|
38
|
+
| `cms` | keep its own structured content — user submissions, galleries, listings, anything the rows above don't already cover |
|
|
39
|
+
|
|
40
|
+
**List every vertical the app actually uses** — one is the common case, and name more when the intent
|
|
41
|
+
spans them, so all their scaffolds come from the skill rather than being written by hand. Anything the
|
|
42
|
+
app stores itself needs `cms`, and anything where visitors sign in needs `members`, so those two often
|
|
43
|
+
join whichever vertical is the main one. Adding one later is fine too: re-run with the extra name (the
|
|
44
|
+
copy only fills in missing files).
|
|
45
|
+
|
|
46
|
+
```js
|
|
47
|
+
const { execSync } = require('child_process');
|
|
48
|
+
const { readdirSync } = require('fs');
|
|
49
|
+
const VERTICALS = ['storefront']; // ← set from the prompt; list every vertical the app uses
|
|
50
|
+
// const VERTICALS = ['members', 'cms']; // ← e.g. visitors sign in AND the app stores what they submit
|
|
51
|
+
const results = {};
|
|
52
|
+
for (const skill of ['wix-vibe-headless', 'wix-docs']) {
|
|
53
|
+
try {
|
|
54
|
+
const out = execSync(`CI=1 npx -y skills add wix/skills/skills/${skill} --yes 2>&1`,
|
|
55
|
+
{ cwd: '/app', timeout: 60000, shell: '/bin/bash' }).toString().replace(/\x1b\[[0-9;]*m/g, '');
|
|
56
|
+
results[skill] = /installed 1 skill|found 1 skill/i.test(out) ? 'success'
|
|
57
|
+
: out.includes('No valid skills') ? 'not_found' : 'unknown';
|
|
58
|
+
} catch (e) { results[skill] = 'error: ' + e.message; }
|
|
59
|
+
}
|
|
60
|
+
// Deploy the shared transport + each listed vertical's scaffolds/UI into src/.
|
|
61
|
+
const deploy = execSync(`node /app/.agents/skills/wix-vibe-headless/install/deploy.cjs ${VERTICALS.join(' ')}`, { cwd: '/app' }).toString();
|
|
62
|
+
// Pin the project's AGENTS.md note (idempotent) so the rules survive after this doc leaves context.
|
|
63
|
+
const agentsMd = execSync(`node /app/.agents/skills/wix-vibe-headless/install/pin-agents-md.cjs`, { cwd: '/app' }).toString();
|
|
64
|
+
return { results, installed: readdirSync('/app/.agents/skills'), deploy: JSON.parse(deploy), agentsMd: JSON.parse(agentsMd) };
|
|
65
|
+
```
|
|
66
|
+
|
|
67
|
+
Read the skills with **`read_file`** (rooted at `/app` → workspace-relative path, e.g.
|
|
68
|
+
`.agents/skills/wix-vibe-headless/SKILL.md`; absolute `/app/...` fails — exec_tool/shell wants
|
|
69
|
+
absolute). Prefer it over `cat`/exec_tool and web-fetch, which cap output (~5000 chars) and
|
|
70
|
+
truncate. Always read from **`.agents/skills/` exactly**, on later turns too — don't guess; ignore
|
|
71
|
+
stray copies like `agent/skills/`.
|
|
72
|
+
|
|
73
|
+
## STEP 2 (optional) — Brief doesn't say what to build? Read the site
|
|
74
|
+
|
|
75
|
+
Only when the business description is vague or missing (else skip to STEP 3). Don't guess the Wix
|
|
76
|
+
Business Solution — **read the site in one call** via the connector (exec_tool):
|
|
77
|
+
|
|
78
|
+
```js
|
|
79
|
+
const { accessToken } = await base44.asServiceRole.connectors.getConnection("wix");
|
|
80
|
+
const res = await fetch("https://www.wixapis.com/_api/dynamic-context/v1/dynamic-context/markdown", {
|
|
81
|
+
method: "POST",
|
|
82
|
+
headers: { Authorization: `Bearer ${accessToken}`, "Content-Type": "application/json" },
|
|
83
|
+
body: JSON.stringify({ siteId: "<metasite id from your prompt>" }),
|
|
84
|
+
});
|
|
85
|
+
return (await res.json()).markdown;
|
|
86
|
+
```
|
|
87
|
+
|
|
88
|
+
It returns a markdown report — installed apps (by name), status, URL, locale, CMS collections
|
|
89
|
+
([docs](https://dev.wix.com/docs/api-reference/tools/dynamic-site-context/get-dynamic-context-markdown.md)).
|
|
90
|
+
Build for the installed apps' solutions (several → prioritize by the user's words and which holds
|
|
91
|
+
real, non-sample content); the same output drives STEP 4's seeding — never seed guessed ones. If it
|
|
92
|
+
fails or shows nothing relevant, ask the user what they offer.
|
|
93
|
+
|
|
94
|
+
## STEP 3 — Build the client
|
|
95
|
+
|
|
96
|
+
Read `.agents/skills/wix-vibe-headless/SKILL.md` and follow it **EXACTLY** — the single source of
|
|
97
|
+
truth for how the client is built.
|
|
98
|
+
|
|
99
|
+
**REST scaffolds are already in `src/rest/`** (STEP 1). Write `src/rest/wix-config.js` with your
|
|
100
|
+
`WIX_CLIENT_ID` and `WIX_METASITE_ID` from the prompt — the one place both ids live (a single write,
|
|
101
|
+
nothing to read). Some
|
|
102
|
+
verticals also ship a **ready UI client** under `src/` (STEP 1 deployed it) — theme + wire it per
|
|
103
|
+
`INSTRUCTIONS.md`, don't rebuild. STEP 1 already deployed these files — **don't `read_file` the
|
|
104
|
+
deployed component/page source to inspect them**; every field shape is in `INSTRUCTIONS.md`. Read a
|
|
105
|
+
deployed file only on a real fallback (an error, or a field the snippets don't cover).
|
|
106
|
+
|
|
107
|
+
**`src/App.jsx`: edit surgically, never rewrite.** It carries required platform auth scaffolding
|
|
108
|
+
(`AuthProvider`/`useAuth` from `@/lib/AuthContext`); a full rewrite drops them → the validator
|
|
109
|
+
rejects the write. Wire routes/imports in with `find_replace`, leave the rest as-is.
|
|
110
|
+
|
|
111
|
+
## STEP 4 — Manage and seed the business
|
|
112
|
+
|
|
113
|
+
**Never delete or clean up anything on the user's site — seeding is additive only.** It's a live
|
|
114
|
+
user-owned business, so never delete or overwrite existing content, even apparent sample data. If a
|
|
115
|
+
cleanup truly seems needed, ask the user first.
|
|
116
|
+
|
|
117
|
+
Seed by calling your vertical's ready-made seed module — read
|
|
118
|
+
`.agents/skills/wix-vibe-headless/references/<vertical>/seed/SEED.md` and load its `seed-*.js` via
|
|
119
|
+
its loader snippet (build-time exec_tool); call its functions with your data. Gaps or an unexpected
|
|
120
|
+
shape → the **`wix-docs`** skill.
|
|
121
|
+
|
|
122
|
+
**Auth for these admin calls is the already-configured Wix connector — nothing else.** Get its
|
|
123
|
+
access token and send it as a bearer token; do **not** hand-roll a token getter (e.g.
|
|
124
|
+
`getAdminToken()`), install/run the Wix CLI (`@wix/cli`), or device-login (no managed-project auth
|
|
125
|
+
flow applies to Base44):
|
|
126
|
+
|
|
127
|
+
```js
|
|
128
|
+
const { accessToken } = await base44.asServiceRole.connectors.getConnection("wix");
|
|
129
|
+
// then: fetch(url, { headers: { Authorization: `Bearer ${accessToken}`, "Content-Type": "application/json" }, ... })
|
|
130
|
+
```
|
|
131
|
+
|
|
132
|
+
Inline via exec_tool, `base44` is already declared — use it directly; do **not** import
|
|
133
|
+
`@base44/sdk`, re-declare it, or call `createClient()` (that's for standalone `.js` files only;
|
|
134
|
+
inline it throws *"Identifier 'base44' has already been declared."*).
|
|
135
|
+
|
|
136
|
+
**Entity images.** For image-bearing entities (store products, blog covers, bookings services,
|
|
137
|
+
restaurant items, portfolio projects, event heroes, CMS items), generate with **Base44's built-in
|
|
138
|
+
image generation**, then attach via the vertical seed module's image-attach step — `wix-docs` if the
|
|
139
|
+
module doesn't cover that entity.
|
|
140
|
+
|
|
141
|
+
**Seed images with the FINAL url, in one call.** Seeding writes to Wix, so use the real
|
|
142
|
+
`https://media.base44.com/...` url from the **completed** `generate_image` result and pass it straight
|
|
143
|
+
into your single `setupStore`/seed call (images included). A still-generating `/__generating__/<id>.png`
|
|
144
|
+
placeholder is not a real url — Wix can't fetch it. `generate_image` runs in the background while you
|
|
145
|
+
build the client, so the urls are ready by the time you seed.
|
|
146
|
+
|
|
147
|
+
The connector + seeding are **admin-only** (STEP 4) — **not** part of the client, which is built
|
|
148
|
+
solely per the `wix-vibe-headless` skill.
|
|
149
|
+
|
|
150
|
+
## Parallelism
|
|
151
|
+
|
|
152
|
+
Run STEP 3 and STEP 4 in parallel — building and seeding are independent. Within each, also
|
|
153
|
+
parallelize independent work (API calls, multiple entities).
|
|
154
|
+
|
|
155
|
+
## STEP 5 — Wrap up
|
|
156
|
+
|
|
157
|
+
Once the site is built and seeded:
|
|
158
|
+
|
|
159
|
+
1. **Mount the preview-only manage banner** (required; links the app to its Wix back office; shipped,
|
|
160
|
+
self-gates to the preview, never on the published site): render the `<WixManageBanner/>` component
|
|
161
|
+
in your Layout's fixed top region, above the header, per your vertical's INSTRUCTIONS STEP 4.
|
|
162
|
+
2. **Ask the user to open** `https://manage.wix.com/dashboard/{metaSiteId}` (substitute your
|
|
163
|
+
metasite id) to complete setup in Wix (required), and mention that the preview shows a dismissible
|
|
164
|
+
top banner linking to this same dashboard.
|
|
165
|
+
|
|
166
|
+
**Preview briefly, don't chase images.** A quick render check is enough. Generated images show as
|
|
167
|
+
alt-text/broken in this preview because `generate_image` returns a `/__generating__/…` placeholder —
|
|
168
|
+
the platform swaps every placeholder for the final url **automatically at the end of the turn**
|
|
169
|
+
(failed ones get a stock fallback), in your own components and the seeded data alike. So a broken
|
|
170
|
+
image in the preview is expected and already handled: **do NOT swap, re-seed, re-attach, or debug
|
|
171
|
+
image urls.** Hand-editing a placeholder `src` is wasted work and just risks find_replace errors on
|
|
172
|
+
urls that are about to be replaced anyway. Leave them and finish.
|
|
173
|
+
|
|
174
|
+
## Later admin requests
|
|
175
|
+
|
|
176
|
+
For any later admin/management request, work as in STEP 4: your vertical's seed module first, else
|
|
177
|
+
`wix-docs` — all over the connector.
|
|
@@ -0,0 +1,122 @@
|
|
|
1
|
+
# Wix Managed Headless — build instructions (any stack)
|
|
2
|
+
|
|
3
|
+
You are building a **Wix Managed** headless site — the business, your `WIX_CLIENT_ID`, and metasite
|
|
4
|
+
id are in your prompt. This skill is **client-only REST** over the public `WIX_CLIENT_ID`
|
|
5
|
+
(visitor-facing, safe in the browser) — no `@wix/sdk`, no backend, no build step.
|
|
6
|
+
|
|
7
|
+
## What you've got in the skill
|
|
8
|
+
|
|
9
|
+
The docs were authored for **one host stack** (Vite + react-router, `.jsx`, files pre-copied into
|
|
10
|
+
`src/`) — you may be on another, so **adapt these assets to your stack; don't copy the host's setup.**
|
|
11
|
+
Everything is under `.agents/skills/wix-vibe-headless/references/`.
|
|
12
|
+
|
|
13
|
+
**Shared transport — both files, used by every vertical (`shared/app/rest/`):**
|
|
14
|
+
|
|
15
|
+
| file | what's in it |
|
|
16
|
+
|---|---|
|
|
17
|
+
| `wix-client.js` | The transport: exchanges `WIX_CLIENT_ID` for an anonymous **visitor token**, persists + refreshes it (that token *is* the cart/session identity), and exposes `wixApiRequest(path, {method, body, query})` — plus the member-session swap (`setSessionTokens` / `clearSession` / `isMember`). Plain `fetch`; SSR-guards `window`/`localStorage`; maps 402 + error bodies. |
|
|
18
|
+
| `wix-config.js` | Holds `WIX_CLIENT_ID` + `WIX_METASITE_ID` — the only values to fill in. |
|
|
19
|
+
|
|
20
|
+
**Every `references/<vertical>/` holds the same four things:**
|
|
21
|
+
|
|
22
|
+
- `app/rest/wix-*.js` — the vertical's **data layer**: named calls carrying the exact request/response
|
|
23
|
+
**shapes**, fieldsets, and paging.
|
|
24
|
+
- `app/{components,pages,hooks,context}/…` — a **reference UI** (+ hooks/providers) built on that data
|
|
25
|
+
layer; the field shapes and route patterns it uses (e.g. `/product/:slug`) are the data contract.
|
|
26
|
+
- `seed/seed-*.js` — build-time **seeding functions** that create content.
|
|
27
|
+
- `INSTRUCTIONS.md` — the vertical's build guide + field-shape snippets; `seed/SEED.md` — how the seed
|
|
28
|
+
module is run.
|
|
29
|
+
|
|
30
|
+
**The nine verticals — data layer (`app/rest/`) + seed module (`seed/`):**
|
|
31
|
+
|
|
32
|
+
| vertical | `app/rest/` data layer | seed module |
|
|
33
|
+
|---|---|---|
|
|
34
|
+
| storefront | `wix-store-catalog.js`, `wix-store-cart.js` — products & variants; server cart + checkout redirect | `seed-store.js` |
|
|
35
|
+
| bookings | `wix-bookings-services.js`, `wix-bookings-checkout.js` — services/categories/slots; booking + checkout | `seed-bookings.js` |
|
|
36
|
+
| blog | `wix-blog.js` — posts (list + by-slug), categories, tags | `seed-blog.js` |
|
|
37
|
+
| events | `wix-events-browse.js`, `wix-events-registration.js` — events & categories; RSVP / ticketing + checkout | `seed-events.js` |
|
|
38
|
+
| portfolio | `wix-portfolio.js` — collections, projects, galleries | `seed-portfolio.js` |
|
|
39
|
+
| restaurants | `wix-restaurants-menu.js`, `-ordering.js`, `-reservations.js` — menu; online ordering; table reservations | `seed-restaurants.js` |
|
|
40
|
+
| cms | `wix-cms.js` — Wix Data collections: list / detail / filter + form CRUD | `seed-cms.js` |
|
|
41
|
+
| pricing-plans | `wix-pricing-plans.js` — plans list + subscribe/checkout | `seed-pricing-plans.js` |
|
|
42
|
+
| members | `wix-members-auth.js` — custom login/signup (email+password, social, SSO), session, account | *(none — members sign up at runtime; nothing to seed)* |
|
|
43
|
+
|
|
44
|
+
Anything in the docs about the **host's own setup** — copying files into `src/`, its `@/` alias, its
|
|
45
|
+
`import.meta.env` flags, a theming file, its build/exec/connector tooling — is that host's, not a
|
|
46
|
+
rule: **adapt it to your stack or ignore it.** The `SKILL.md` **"shared model"** (public-client-id
|
|
47
|
+
auth, money = objects → render `formattedValue`, visitor token = cart identity, member login swaps
|
|
48
|
+
the token set) is **universal — follow it as-is**.
|
|
49
|
+
|
|
50
|
+
## The flow — install → build client → seed → done
|
|
51
|
+
|
|
52
|
+
Run **build the client** (step 2) and **seed** (step 3) in parallel; parallelize independent work within each.
|
|
53
|
+
|
|
54
|
+
### 1 · Install the skills
|
|
55
|
+
|
|
56
|
+
Two skills, into `.agents/skills/`: **`wix-vibe-headless`** (this build guide + the seed modules —
|
|
57
|
+
self-contained) and **`wix-docs`** (fallback to search/read the Wix API reference).
|
|
58
|
+
|
|
59
|
+
```bash
|
|
60
|
+
CI=1 npx skills@latest add wix/skills/skills/wix-vibe-headless --yes
|
|
61
|
+
CI=1 npx skills@latest add wix/skills/skills/wix-docs --yes
|
|
62
|
+
```
|
|
63
|
+
|
|
64
|
+
### 2 · Build the client
|
|
65
|
+
|
|
66
|
+
Pull the whole client reference into context in two reads — **this is basically your prompt: it's all
|
|
67
|
+
the client code you need.** Build the client from it in your own stack's idiom (your router, file
|
|
68
|
+
extensions, design tokens), and set `WIX_CLIENT_ID` + `WIX_METASITE_ID` in `wix-config`.
|
|
69
|
+
|
|
70
|
+
```bash
|
|
71
|
+
V=<vertical> # the vertical you're building
|
|
72
|
+
|
|
73
|
+
# utils — transport + data layer (plain fetch, already SSR-guarded; use ~as-is)
|
|
74
|
+
find .agents/skills/wix-vibe-headless/references/shared/app/rest \
|
|
75
|
+
.agents/skills/wix-vibe-headless/references/$V/app/rest \
|
|
76
|
+
-type f -name '*.js' -exec tail -n +1 {} +
|
|
77
|
+
|
|
78
|
+
# components/pages — a reference UI (rebuild for your framework; keep the field shapes + route patterns)
|
|
79
|
+
find .agents/skills/wix-vibe-headless/references/$V/app \
|
|
80
|
+
-type f \( -name '*.jsx' -o -name '*.js' \) -not -path '*/rest/*' -exec tail -n +1 {} +
|
|
81
|
+
```
|
|
82
|
+
|
|
83
|
+
### 3 · Seed the content
|
|
84
|
+
|
|
85
|
+
**⛔ NO CLEANUP — EVER.** Strictly **additive**: never delete, reset, or overwrite anything on the
|
|
86
|
+
user's live site — not even apparent sample/demo content. If something looks wrong, leave it and tell
|
|
87
|
+
the user.
|
|
88
|
+
|
|
89
|
+
**Auth** (the public client id won't do): if your platform has a **built-in Wix connector**, use it
|
|
90
|
+
(it holds the credential). Otherwise take a **Wix API key** into your secrets manager (never hardcode
|
|
91
|
+
or commit) — create one at **[account API keys → Add key](https://manage.wix.com/account/api-keys/addkey)**
|
|
92
|
+
([how-to](https://dev.wix.com/docs/api-reference/articles/authentication/api-keys/generate-an-api-key)) —
|
|
93
|
+
and send it **raw as `Authorization` (no `Bearer`)** with a **`wix-site-id`** header (`wix-account-id`
|
|
94
|
+
only for account-level APIs — one, not both):
|
|
95
|
+
|
|
96
|
+
```bash
|
|
97
|
+
curl -X POST 'https://www.wixapis.com/stores/v3/products/query' \
|
|
98
|
+
-H 'Authorization: <API_KEY>' -H 'wix-site-id: <METASITE_ID>' \
|
|
99
|
+
-H 'Content-Type: application/json' -d '{"query":{"cursorPaging":{"limit":10}}}'
|
|
100
|
+
```
|
|
101
|
+
|
|
102
|
+
Pull the seed code into context — **this is your seeding prompt: it's all the code you need.** Run
|
|
103
|
+
these functions (adapting the exec + auth to your platform) to create the content:
|
|
104
|
+
|
|
105
|
+
```bash
|
|
106
|
+
V=<vertical>
|
|
107
|
+
find .agents/skills/wix-vibe-headless/references/$V/seed -name '*.js' -exec tail -n +1 {} +
|
|
108
|
+
```
|
|
109
|
+
|
|
110
|
+
They encode the Wix API sequences (incl. app-install + provisioning-race handling); use `wix-docs`
|
|
111
|
+
for anything they don't cover. Content queries return `REQUIRED_APP_NOT_INSTALLED` until the app is
|
|
112
|
+
installed + seeded (expected; the seed modules install it first). Image seeding = two Wix Media calls
|
|
113
|
+
(`generate-upload-url` → `PUT` the bytes) before attaching.
|
|
114
|
+
|
|
115
|
+
### 4 · Done
|
|
116
|
+
|
|
117
|
+
Mount the preview-only manage banner (regenerate `WixManageBanner` for your stack — it reads
|
|
118
|
+
`WIX_METASITE_ID` from `wix-config`, already set in step 2, and self-hides while it's still the
|
|
119
|
+
placeholder; mount above the header, SSR-safe, portable preview-gate, **never on the published
|
|
120
|
+
site**), then tell
|
|
121
|
+
the user to open `https://manage.wix.com/dashboard/{metaSiteId}` to finish setup in Wix (payments,
|
|
122
|
+
content).
|