@wix/agent-skills 1.31.0 → 1.31.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (115) hide show
  1. package/package.json +1 -1
  2. package/skills/wix-app/SKILL.md +7 -8
  3. package/skills/wix-app/references/DASHBOARD_PAGE.md +1 -1
  4. package/skills/wix-app/references/STORES_VERSIONING.md +1 -1
  5. package/skills/wix-app/references/WIX_PATTERNS_DOCS.md +11 -50
  6. package/skills/wix-app/references/dashboard-page/DATA_SOURCES.md +14 -10
  7. package/skills/wix-app/references/dashboard-page/DRAFT_TEMPLATE.md +5 -8
  8. package/skills/wix-app/references/dashboard-page/TABLE_STATE.md +5 -4
  9. package/skills/wix-headless-kit/SKILL.md +31 -14
  10. package/skills/wix-headless-kit/guides/api-run.md +116 -31
  11. package/skills/wix-headless-kit/guides/existing-site.md +9 -2
  12. package/skills/wix-headless-kit/guides/reference-mode.md +9 -1
  13. package/skills/wix-headless-kit/install/AGENTS.md +10 -7
  14. package/skills/wix-headless-kit/install/attach.mjs +35 -30
  15. package/skills/wix-headless-kit/install/background.mjs +32 -0
  16. package/skills/wix-headless-kit/install/bootstrap.mjs +28 -11
  17. package/skills/wix-headless-kit/install/check.mjs +2 -2
  18. package/skills/wix-headless-kit/install/context.mjs +62 -8
  19. package/skills/wix-headless-kit/install/deploy.mjs +36 -11
  20. package/skills/wix-headless-kit/install/env-ignore.mjs +16 -0
  21. package/skills/wix-headless-kit/install/install.mjs +95 -0
  22. package/skills/wix-headless-kit/install/pins.json +1 -1
  23. package/skills/wix-headless-kit/install/proc.mjs +46 -0
  24. package/skills/wix-headless-kit/install/setup.mjs +18 -27
  25. package/skills/wix-headless-kit/install/templates.mjs +4 -3
  26. package/skills/wix-headless-templates/blog/app/components/blog/RichContent.tsx +3 -2
  27. package/skills/wix-headless-templates/blog/project/package-lock.json +1287 -1299
  28. package/skills/wix-headless-templates/blog/project/package.json +1 -1
  29. package/skills/wix-headless-templates/blog/project/src/components/blog/RichContent.tsx +3 -2
  30. package/skills/wix-headless-templates/blog/rest/authors.ts +5 -5
  31. package/skills/wix-headless-templates/blog/rest/comments.ts +4 -4
  32. package/skills/wix-headless-templates/blog/rest/post-likes.ts +3 -3
  33. package/skills/wix-headless-templates/blog/rest/posts.ts +4 -4
  34. package/skills/wix-headless-templates/blog/rest/taxonomy.ts +5 -5
  35. package/skills/wix-headless-templates/blog/seed/SEED.md +1 -1
  36. package/skills/wix-headless-templates/blog/seed/seed-blog.mjs +4 -3
  37. package/skills/wix-headless-templates/bookings/rest/booking.ts +4 -4
  38. package/skills/wix-headless-templates/bookings/rest/services.ts +4 -4
  39. package/skills/wix-headless-templates/bookings/seed/SEED.md +1 -1
  40. package/skills/wix-headless-templates/bookings/seed/seed-bookings.mjs +4 -2
  41. package/skills/wix-headless-templates/cms/rest/collections.ts +3 -3
  42. package/skills/wix-headless-templates/cms/rest/items.ts +4 -4
  43. package/skills/wix-headless-templates/cms/seed/seed-cms.mjs +2 -1
  44. package/skills/wix-headless-templates/donations/rest/campaigns.ts +4 -4
  45. package/skills/wix-headless-templates/donations/rest/donate.ts +3 -3
  46. package/skills/wix-headless-templates/donations/seed/SEED.md +1 -1
  47. package/skills/wix-headless-templates/donations/seed/seed-donations.mjs +5 -3
  48. package/skills/wix-headless-templates/events/rest/events.ts +4 -4
  49. package/skills/wix-headless-templates/events/rest/orders.ts +4 -4
  50. package/skills/wix-headless-templates/events/rest/registration.ts +4 -4
  51. package/skills/wix-headless-templates/events/seed/SEED.md +1 -1
  52. package/skills/wix-headless-templates/events/seed/seed-events.mjs +5 -3
  53. package/skills/wix-headless-templates/faq/rest/faq.ts +4 -4
  54. package/skills/wix-headless-templates/faq/seed/seed-faq.mjs +2 -1
  55. package/skills/wix-headless-templates/forms/rest/forms.ts +4 -4
  56. package/skills/wix-headless-templates/forms/rest/submissions.ts +4 -4
  57. package/skills/wix-headless-templates/forms/seed/seed-forms.mjs +2 -1
  58. package/skills/wix-headless-templates/members/rest/auth.ts +3 -3
  59. package/skills/wix-headless-templates/members/rest/members.ts +4 -4
  60. package/skills/wix-headless-templates/members/seed/seed-members.mjs +2 -1
  61. package/skills/wix-headless-templates/portfolio/rest/portfolio.ts +4 -4
  62. package/skills/wix-headless-templates/portfolio/seed/SEED.md +4 -2
  63. package/skills/wix-headless-templates/portfolio/seed/seed-portfolio.mjs +8 -7
  64. package/skills/wix-headless-templates/pricing-plans/rest/plan-access.ts +3 -3
  65. package/skills/wix-headless-templates/pricing-plans/rest/plans.ts +4 -4
  66. package/skills/wix-headless-templates/pricing-plans/rest/purchase.ts +3 -3
  67. package/skills/wix-headless-templates/pricing-plans/seed/seed-pricing-plans.mjs +2 -1
  68. package/skills/wix-headless-templates/rentals/rest/rentals.ts +4 -4
  69. package/skills/wix-headless-templates/rentals/seed/SEED.md +1 -1
  70. package/skills/wix-headless-templates/rentals/seed/seed-rentals.mjs +4 -2
  71. package/skills/wix-headless-templates/restaurants/rest/menu.ts +4 -4
  72. package/skills/wix-headless-templates/restaurants/rest/ordering.ts +5 -5
  73. package/skills/wix-headless-templates/restaurants/rest/reservations.ts +4 -4
  74. package/skills/wix-headless-templates/restaurants/seed/SEED.md +1 -1
  75. package/skills/wix-headless-templates/restaurants/seed/seed-restaurants.mjs +6 -4
  76. package/skills/wix-headless-templates/shared/capabilities/site-search/rest/search.ts +4 -4
  77. package/skills/wix-headless-templates/shared/capabilities/site-search/seed/install.mjs +6 -4
  78. package/skills/wix-headless-templates/shared/seed/images.mjs +41 -5
  79. package/skills/wix-headless-templates/shared/seed/main.mjs +15 -0
  80. package/skills/wix-headless-templates/shared/seed/wix-cli.mjs +43 -11
  81. package/skills/wix-headless-templates/storefront/INSTRUCTIONS.md +1 -1
  82. package/skills/wix-headless-templates/storefront/rest/cart.ts +5 -5
  83. package/skills/wix-headless-templates/storefront/rest/catalog.ts +5 -5
  84. package/skills/wix-headless-templates/storefront/seed/SEED.md +44 -14
  85. package/skills/wix-headless-templates/storefront/seed/seed-store.mjs +23 -15
  86. package/skills/wix-manage/SKILL.md +28 -18
  87. package/skills/wix-manage/references/app-installation/install-wix-apps.md +5 -1
  88. package/skills/wix-manage/references/app-installation/list-installed-apps.md +19 -9
  89. package/skills/wix-manage/references/automations/activation-status.md +52 -0
  90. package/skills/wix-manage/references/automations/api-catalog.md +81 -0
  91. package/skills/wix-manage/references/automations/build-and-manage-automations.md +34 -0
  92. package/skills/wix-manage/references/bookings/booking-service-policy-setup.md +3 -0
  93. package/skills/wix-manage/references/bookings/create-and-update-booking-services.md +277 -363
  94. package/skills/wix-manage/references/bookings/external-calendar-integration.md +3 -0
  95. package/skills/wix-manage/references/bookings/multi-resource-service-creation.md +3 -0
  96. package/skills/wix-manage/references/cms/cms-data-items-crud.md +11 -2
  97. package/skills/wix-manage/references/cms/cms-publishing-flow.md +63 -16
  98. package/skills/wix-manage/references/custom-apps/use-app-skills-and-app-tools.md +3 -1
  99. package/skills/wix-manage/references/forms/update-form.md +3 -0
  100. package/skills/wix-manage/references/pricing-plans/create-and-update-pricing-plans.md +3 -0
  101. package/skills/wix-manage/references/restaurants/wix-restaurants-setup.md +3 -0
  102. package/skills/wix-manage/references/sites/create-headless-site.md +7 -50
  103. package/skills/wix-manage/references/sites/manage-oauth-apps.md +4 -4
  104. package/skills/wix-manage/references/sites/read-site-context.md +4 -0
  105. package/skills/wix-manage/references/sites/send-feedback-to-wix.md +92 -0
  106. package/skills/wix-manage/references/sites/upload-static-site.md +298 -283
  107. package/skills/wix-manage/references/stores/add-store-pages-to-site.md +3 -0
  108. package/skills/wix-manage/references/stores/change-store-currency.md +3 -0
  109. package/skills/wix-manage/references/stores/create-product-catalog-v3.md +3 -0
  110. package/skills/wix-manage/references/stores/find-products-query-and-search-catalog-v3.md +3 -0
  111. package/skills/wix-manage/references/stores/update-product-with-options.md +192 -22
  112. package/skills/wix-manage/references/bookings/create-appointment-service.md +0 -243
  113. package/skills/wix-manage/references/bookings/create-booking-service-from-prompt.md +0 -31
  114. package/skills/wix-manage/references/bookings/create-class-service.md +0 -222
  115. package/skills/wix-manage/references/bookings/create-course-service.md +0 -251
@@ -0,0 +1,52 @@
1
+ ---
2
+ name: "Automations Activation Status"
3
+ description: "Read an automation’s current ACTIVE or INACTIVE status and distinguish it from historical run outcomes."
4
+ ---
5
+
6
+ # Inspect activation status
7
+
8
+ An automation's current state is `configuration.status`: ACTIVE is eligible for new trigger
9
+ events; INACTIVE is not. Neither value proves that a historical run succeeded or that a
10
+ pending activation has stopped.
11
+
12
+ 1. Resolve the requested name with one Query Automations call filtered by that exact name
13
+ (below); don't page through other automations. If the ID is already supplied, go to Get.
14
+ If several match, open your answer by listing each match's full returned ID and asking
15
+ which one the user means; don't report a single status. If none match, say so and ask the
16
+ user to check the name or site; never guess an ID.
17
+ 2. Get the matching returned ID and read `configuration.status`.
18
+ 3. Answer briefly and completely in one reply. Start with the automation's exact name, its
19
+ returned ID and ACTIVE/INACTIVE from that response, then say what it means for new trigger
20
+ events. If the user asks whether the status says anything about past runs, answer it
21
+ directly in the next sentence: status does not show whether past runs succeeded; they are
22
+ visible in the automation's activity view in the site dashboard.
23
+ 4. If Get returns not found, do not state a status. Open with: the automation wasn't found on
24
+ this site, so its status can't be determined, and ask the user to confirm the site and the
25
+ automation ID. This question is required. Then give the possible causes below.
26
+
27
+ Use an authorized site-scoped client with Set Up Automations permission. REST calls use
28
+ `Authorization: <token>`. An API key also needs `wix-site-id: <metaSiteId>`; do not combine it
29
+ with `wix-account-id`. Never print credentials.
30
+
31
+ `POST https://www.wixapis.com/automations-service/v2/automations/query`
32
+
33
+ ```json
34
+ {"query":{"filter":{"name":"<automation name>"},"cursorPaging":{"limit":25}}}
35
+ ```
36
+
37
+ Read `automations[]` and `pagingMetadata.cursors.next`; continue pages if needed. Retain the
38
+ returned `id` and exact name. Then:
39
+
40
+ `GET https://www.wixapis.com/automations-service/v2/automations/<automationId>`
41
+
42
+ Read `automation.configuration.status` from the Get response. Never infer status from the
43
+ name or a previous mutation. Do not validate, change configuration, toggle status or test-run
44
+ an automation to answer this read-only request.
45
+
46
+ Not-found causes (step 4): unpublished builder drafts do not appear
47
+ through this API, but a 404 can also mean deletion or a changed ID after overriding a
48
+ preinstalled automation. When the user's history supports an unpublished builder draft as the
49
+ cause, ask the owner to publish or discard it rather than reproducing its edits.
50
+
51
+ Official contracts: [Query Automations](https://dev.wix.com/docs/api-reference/business-management/automations/automations/automations-v2/query-automations),
52
+ [Get Automation](https://dev.wix.com/docs/api-reference/business-management/automations/automations/automations-v2/get-automation).
@@ -0,0 +1,81 @@
1
+ ---
2
+ name: "Automations API Catalog"
3
+ description: "Discover installed automation triggers and actions and inspect their schemas through site-scoped public catalog APIs."
4
+ ---
5
+
6
+ # Discover installed automation capabilities
7
+
8
+ Check the site's installed trigger/action catalogs, then inspect the chosen components'
9
+ schemas. This recipe is read-only: do not create an automation, install an app, generate email
10
+ content, or run an action to establish availability.
11
+
12
+ ## Authentication
13
+
14
+ Use an authorized site-scoped client with Set Up Automations permission. REST calls use
15
+ `Authorization: <token>`. An API key also needs `wix-site-id: <metaSiteId>`; do not combine it
16
+ with `wix-account-id`. OAuth app tokens are bound to a site instance. Never print credentials.
17
+ A 401/403 is an access failure, not evidence that a catalog component is unavailable.
18
+
19
+ ## Resolve, select, inspect
20
+
21
+ 1. Use a known key only as a search hint. Resolve an exact candidate first; if it is absent,
22
+ browse small pages and compare names/semantics locally. Do not conclude that a remembered
23
+ key exists on this site without a successful Resolve response.
24
+ 2. For triggers, request `basicFieldsOnly: true` while browsing, then hydrate only the chosen
25
+ trigger with Get Trigger By App Id And Key. Compare its payload and filters to the intent.
26
+ 3. Actions already include schemas in Resolve. Retain the chosen returned identity and
27
+ required input fields; avoid repeating the whole catalog just to read display names.
28
+ 4. Summarize the available pair and required configuration, distinguishing what the trigger
29
+ supplies from values the user would need to choose. Do not mutate anything to prove it.
30
+
31
+ ### Trigger discovery
32
+
33
+ `POST https://www.wixapis.com/v1/triggers/resolve`
34
+
35
+ ```json
36
+ {"basicFieldsOnly":true,"query":{"filter":{"triggerKey":"contacts-new_contact_was_created"},"paging":{"limit":25,"offset":0}}}
37
+ ```
38
+
39
+ Read `results[]` and `paging`. A nonempty matching result establishes an installed trigger;
40
+ use its returned `appId` and `triggerKey` in:
41
+
42
+ `GET https://www.wixapis.com/v1/triggers/apps/<appId>/keys/<triggerKey>`
43
+
44
+ Read `trigger.payloadDataSchema`, `trigger.filters` and `trigger.automationConfigSchema`.
45
+ The contact-created key above is a discovery hint; names and availability may vary by site.
46
+
47
+ ### Action discovery
48
+
49
+ `POST https://www.wixapis.com/v1/actions/resolve`
50
+
51
+ ```json
52
+ {"query":{"filter":{"actionKey":"addLabelsToContact"},"paging":{"limit":25,"offset":0}}}
53
+ ```
54
+
55
+ Read `actions[]`, `paging`, and each chosen action's `appId`, `actionKey`, `inputSchema`,
56
+ `outputSchema` and `interfaceConfiguration`. Inspect required properties, types, enums and
57
+ field descriptions before explaining configuration. For an existing runtime version use
58
+ `GET https://www.wixapis.com/v1/actions/apps/<appId>/keys/<actionKey>` and read `action`.
59
+ A site may have Add label to contact without Create task; never substitute one for the other.
60
+
61
+ ### Bounded fallback
62
+
63
+ Remove the exact-key filter to browse; use offset pages of at most 25 entries, with no sort.
64
+ Resolve Actions has no `basicFieldsOnly` option and rejects displayName filters; search names
65
+ locally. Compact each page to identities and display names before adding it to reasoning
66
+ context. Fetch each catalog page and static schema once, cache it for this site, and hydrate only a
67
+ shortlist; never re-fetch a page or schema you already have. Pages can overlap;
68
+ de-duplicate by appId+key. Only a complete scan with distinct count equal to `paging.total`
69
+ proves absence; state the evidence ("scanned N distinct of `paging.total` N"). Without that
70
+ proof, say the component was "not found in the installed catalog", never that it is not
71
+ installed. Either way, list the closest related actions you saw in that scan, as findings
72
+ rather than substitutes, with their returned `appId`/`actionKey` and display name; don't fetch
73
+ their schemas unless the user asks.
74
+
75
+ Resolve is site-scoped; global Query catalogs can include uninstalled apps and do not prove
76
+ availability. The method schemas below confirm the full public URLs; do not invent a private
77
+ transport or guess a new path if access fails.
78
+
79
+ Official contracts: [Resolve Triggers](https://dev.wix.com/docs/api-reference/business-management/automations/triggers/trigger-catalog/resolve-triggers),
80
+ [Resolve Actions](https://dev.wix.com/docs/api-reference/business-management/automations/actions/action-catalog/resolve-actions).
81
+ For current automation status use [Automations Activation Status](https://dev.wix.com/docs/api-reference/business-management/automations/skills/automations-activation-status).
@@ -0,0 +1,34 @@
1
+ ---
2
+ name: "Build and Manage Wix Automations"
3
+ description: "Discover installed automation triggers and actions and inspect an automation’s current active status without changing site data."
4
+ ---
5
+
6
+ # Build and Manage Wix Automations
7
+
8
+ Use this guide to discover installed automation capabilities and inspect whether an
9
+ automation is active. These are read-only workflows. Creation, configuration edits,
10
+ activation and test execution are outside what this skill covers.
11
+ Do not perform a write when the user asks only to inspect.
12
+
13
+ | Request | Load |
14
+ | --- | --- |
15
+ | Check which triggers/actions are available and what inputs they need | [Automations API Catalog](https://dev.wix.com/docs/api-reference/business-management/automations/skills/automations-api-catalog) |
16
+ | Is an automation turned on? What does its status mean? | [Automations Activation Status](https://dev.wix.com/docs/api-reference/business-management/automations/skills/automations-activation-status) |
17
+
18
+ For a capability check, resolve the site's catalogs, retain the returned app/key identities,
19
+ and inspect the selected schemas. A remembered action key is a search hint, not evidence that
20
+ the action is installed. State missing prerequisites without offering an unverified substitute.
21
+ If a requested action isn't found, report it exactly as the "Bounded fallback" section of
22
+ [Automations API Catalog](https://dev.wix.com/docs/api-reference/business-management/automations/skills/automations-api-catalog) says (scan evidence, "not found" vs "not installed", closest
23
+ related actions).
24
+ Resolve the trigger once and scan the action catalog once; answer from those results instead
25
+ of repeating either call.
26
+
27
+ For current status, find the exact automation, Get its returned ID, and report the status
28
+ from that response. Every status answer names the automation and its returned ID. Current ACTIVE/INACTIVE status is separate from historical run results.
29
+
30
+ Status questions need only Query and Get Automation: don't call the trigger or action catalogs
31
+ for them. Query by the exact name with one bounded page before paging further.
32
+
33
+ Keep the requested site context fixed. Do not expose tokens or credentials. Tie every claim
34
+ to the returned data, and distinguish a missing record from proof of nonexistence.
@@ -5,6 +5,9 @@ description: Sets up booking policies, cancellation rules, and waitlist configur
5
5
 
6
6
  # Technical Step-by-Step Instructions: Configuring Wix Bookings Service Policies (Real-World, API-First)
7
7
 
8
+ > These calls need the Wix Bookings app on the site (`appDefId` `13d21c63-b5ec-5912-8397-c3a5ddb27a97`); a `428`, a `400` naming the app, or an empty result on a site that should have content means it is not there. [List Installed Apps](../app-installation/list-installed-apps.md) shows what the site has; [Install Wix Apps](../app-installation/install-wix-apps.md) adds it by that id.
9
+
10
+
8
11
  ## Description
9
12
 
10
13
  Below are the recommended steps to successfully configure booking, cancellation, and waitlist policies for Wix Bookings services. This recipe covers policy inheritance, service-specific overrides, and common policy configurations for different business models.