@sonordev/site-kit 7.2.0 → 7.4.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (108) hide show
  1. package/CHANGELOG.md +15 -0
  2. package/agent-manifest.json +6 -4
  3. package/dist/{AnalyticsProvider-SLFFBRPE.js → AnalyticsProvider-BQXV3ZF3.js} +4 -4
  4. package/dist/{ArticleViewTracker-TM5AMGN2.js → ArticleViewTracker-3DH53RSB.js} +3 -3
  5. package/dist/{BlocksPopup-YJNJIVPO.js → BlocksPopup-FGWYVHCH.js} +4 -4
  6. package/dist/{ChatWidget-XKOSH66S.js → ChatWidget-CDQZCLVH.js} +5 -5
  7. package/dist/{FileField-CI4UL5SH.js → FileField-IPJ7L2W6.js} +3 -3
  8. package/dist/{FormSpotlight-F2AAEGBN.js → FormSpotlight-CQI2DBWI.js} +1 -1
  9. package/dist/{FormStage-BI5R5CNC.js → FormStage-4WHD6ED4.js} +1 -1
  10. package/dist/{ManagedForm-G6COGHXL.js → ManagedForm-7FZNH4L2.js} +6 -6
  11. package/dist/{ManagedNewsletterForm-BO3WCGXX.js → ManagedNewsletterForm-3D2BK3KQ.js} +4 -4
  12. package/dist/{SignalCore-ZA6WHKBR.js → SignalCore-HEQYITTM.js} +3 -3
  13. package/dist/{SiteChat-YJADDTKG.js → SiteChat-DMPDXY3W.js} +1 -1
  14. package/dist/{SiteDesignReporter-5YAW36AQ.js → SiteDesignReporter-Y2IOJE52.js} +5 -5
  15. package/dist/{SitePopups-ST5PMKZE.js → SitePopups-HD2LDKVU.js} +4 -4
  16. package/dist/SitemapSync-OKPZHRX6.js +8 -0
  17. package/dist/_client/booking-widget.js +5 -5
  18. package/dist/_client/testimonial-section.d.ts +1 -1
  19. package/dist/_client/testimonial-section.js +2 -1
  20. package/dist/affiliates/index.js +3 -3
  21. package/dist/analytics/index.js +4 -4
  22. package/dist/articles/index.js +1 -1
  23. package/dist/articles/server-ui.js +1 -1
  24. package/dist/chat/index.js +6 -6
  25. package/dist/{chunk-D6ZC7XKZ.js → chunk-3E3PPSNR.js} +2 -2
  26. package/dist/{chunk-6U3VLV2C.js → chunk-4BHRA7TI.js} +1 -1
  27. package/dist/{chunk-R46IQIGK.js → chunk-4DJMJ4V5.js} +2 -2
  28. package/dist/{chunk-BC4Y3S3D.js → chunk-5O62CER4.js} +7 -3
  29. package/dist/{chunk-EJVQJCG5.js → chunk-6LLTLLEJ.js} +2 -2
  30. package/dist/{chunk-BR4ZKUHH.js → chunk-7HPZSWS4.js} +17 -1
  31. package/dist/{chunk-S54ECQGY.js → chunk-AH4AXO4P.js} +1 -1
  32. package/dist/{chunk-D5DCBD4Y.js → chunk-ATE6IFVK.js} +1 -1
  33. package/dist/{chunk-GGORNBSC.js → chunk-AV4QAK5F.js} +1 -1
  34. package/dist/chunk-CAT235HY.js +13 -0
  35. package/dist/{chunk-JJ3DELUL.js → chunk-CG4ETW5Y.js} +2 -2
  36. package/dist/{chunk-JWTQS5F5.js → chunk-CKW4HFJG.js} +1 -1
  37. package/dist/{chunk-FR6BYFPC.js → chunk-CSN45MHO.js} +1 -1
  38. package/dist/{chunk-GEXT7BTE.js → chunk-D2RGEWHS.js} +1 -1
  39. package/dist/{chunk-JMLK6MH7.js → chunk-DA5XC7Y6.js} +1 -1
  40. package/dist/{chunk-CF5QNFYU.js → chunk-EHR4NIMX.js} +2 -2
  41. package/dist/{chunk-5V2V5C3Y.js → chunk-FUQTV5O6.js} +1 -1
  42. package/dist/{chunk-K4ZHAURD.js → chunk-GK7TV7EK.js} +1 -1
  43. package/dist/{chunk-RPZ7OQGD.js → chunk-IE5SSOCN.js} +3 -10
  44. package/dist/{chunk-HGFAEDG3.js → chunk-JRCNUUNG.js} +1 -1
  45. package/dist/{chunk-F24FNCTK.js → chunk-KHQ5GD6T.js} +1 -1
  46. package/dist/{chunk-IAM3D3RL.js → chunk-MDP7EB4J.js} +3 -3
  47. package/dist/{chunk-BKY2ZNM7.js → chunk-MHGAZ3LL.js} +1 -1
  48. package/dist/chunk-OD2ULW5Z.js +57 -0
  49. package/dist/{chunk-64DKGVEI.js → chunk-OOD6GMT4.js} +2 -2
  50. package/dist/{chunk-OWZ7ATLZ.js → chunk-PF64OEXC.js} +1 -1
  51. package/dist/{chunk-5YCEMV2L.js → chunk-PQDJNIHR.js} +1 -1
  52. package/dist/{chunk-VX5CMNMM.js → chunk-UAYAJPEP.js} +7 -1
  53. package/dist/{chunk-VHKEF5ZB.js → chunk-XA2BNW5M.js} +1 -1
  54. package/dist/{chunk-VO3JYRT5.js → chunk-XEMHGJEG.js} +8 -8
  55. package/dist/{chunk-NV72HZ4W.js → chunk-YCFW2OQO.js} +1 -1
  56. package/dist/{chunk-QL6XNPSD.js → chunk-ZTLU3BSW.js} +26 -9
  57. package/dist/client/index.js +3 -3
  58. package/dist/commerce/index.js +4 -4
  59. package/dist/engage/index.js +7 -7
  60. package/dist/fleet/index.js +4 -4
  61. package/dist/forms/index.js +7 -7
  62. package/dist/forms/server.js +2 -2
  63. package/dist/images/index.js +4 -4
  64. package/dist/index.js +1 -1
  65. package/dist/layout/client.js +7 -7
  66. package/dist/layout/index.js +9 -9
  67. package/dist/llms/agent-access.d.ts +4 -0
  68. package/dist/llms/index.js +6 -6
  69. package/dist/maps/index.js +3 -3
  70. package/dist/mcp/WebMcpTools.d.ts +5 -4
  71. package/dist/mcp/client.js +14 -7
  72. package/dist/mcp/discovery.d.ts +48 -0
  73. package/dist/mcp/handlers.d.ts +13 -7
  74. package/dist/mcp/index.d.ts +5 -3
  75. package/dist/mcp/index.js +61 -17
  76. package/dist/mcp/serverCard.d.ts +6 -7
  77. package/dist/mcp/sonor.js +8 -8
  78. package/dist/reputation/TestimonialSection.d.ts +1 -1
  79. package/dist/reputation/VisualReviewCard.d.ts +6 -0
  80. package/dist/reputation/index.d.ts +2 -1
  81. package/dist/reputation/index.js +3 -1
  82. package/dist/reputation/review-photo.d.ts +2 -0
  83. package/dist/reputation/server.d.ts +3 -2
  84. package/dist/reputation/server.js +2 -0
  85. package/dist/reputation/types.d.ts +22 -0
  86. package/dist/revalidate/index.js +2 -2
  87. package/dist/seo/client.js +4 -4
  88. package/dist/seo/index.js +4 -4
  89. package/dist/seo/llms.js +6 -6
  90. package/dist/seo/register-sitemap-cli.js +1 -1
  91. package/dist/seo/sitemap.js +4 -4
  92. package/dist/server/index.js +3 -3
  93. package/dist/server/mint-site-token.d.ts +1 -2
  94. package/dist/shared/fresh-fetch.d.ts +9 -3
  95. package/dist/shared/version.d.ts +1 -1
  96. package/dist/signal/index.js +2 -2
  97. package/dist/sitemap/index.js +4 -4
  98. package/dist/sync/index.js +5 -5
  99. package/dist/website/images.js +4 -4
  100. package/dist/website/index.js +5 -5
  101. package/dist/website/popups.js +4 -4
  102. package/dist/{writeLLMsTxt-OV24LQVL.js → writeLLMsTxt-OL4KQERZ.js} +3 -3
  103. package/package.json +1 -1
  104. package/src/forms/README.md +2 -2
  105. package/src/llms/README.md +69 -0
  106. package/src/mcp/README.md +50 -16
  107. package/src/reputation/README.md +25 -0
  108. package/dist/SitemapSync-RJTEBINX.js +0 -8
@@ -1,6 +1,6 @@
1
- export { BookingWidget } from '../chunk-GGORNBSC.js';
2
- export { createBooking, createSlotHold, detectTimezone, fetchAvailability, fetchAvailableDates, fetchBookingTypeDetails, fetchBookingTypes, formatDate, formatDuration, formatTime, prepareMeeting, releaseSlotHold } from '../chunk-BKY2ZNM7.js';
3
- import '../chunk-D6ZC7XKZ.js';
4
- import '../chunk-K4ZHAURD.js';
5
- import '../chunk-F24FNCTK.js';
1
+ export { BookingWidget } from '../chunk-AV4QAK5F.js';
2
+ export { createBooking, createSlotHold, detectTimezone, fetchAvailability, fetchAvailableDates, fetchBookingTypeDetails, fetchBookingTypes, formatDate, formatDuration, formatTime, prepareMeeting, releaseSlotHold } from '../chunk-MHGAZ3LL.js';
3
+ import '../chunk-3E3PPSNR.js';
4
+ import '../chunk-GK7TV7EK.js';
5
+ import '../chunk-KHQ5GD6T.js';
6
6
  import '../chunk-PKBMQBKP.js';
@@ -1,6 +1,6 @@
1
- export { ManagedImage, assignImageToSlot, clearImageSlot, fetchManagedImage, fetchManagedImages, listImageFiles, uploadImage } from '../chunk-JMLK6MH7.js';
1
+ export { ManagedImage, assignImageToSlot, clearImageSlot, fetchManagedImage, fetchManagedImages, listImageFiles, uploadImage } from '../chunk-DA5XC7Y6.js';
2
2
  export { ManagedFavicon, getManagedFaviconUrl } from '../chunk-GW7GSBO7.js';
3
- import '../chunk-D6ZC7XKZ.js';
4
- import '../chunk-K4ZHAURD.js';
5
- import '../chunk-F24FNCTK.js';
3
+ import '../chunk-3E3PPSNR.js';
4
+ import '../chunk-GK7TV7EK.js';
5
+ import '../chunk-KHQ5GD6T.js';
6
6
  import '../chunk-PKBMQBKP.js';
@@ -1,13 +1,13 @@
1
1
  'use client';
2
- export { SiteDesignReporter } from '../chunk-5YCEMV2L.js';
3
- export { SITE_DESIGN_PATH, cleanFontStack, colorToHex, getSiteDesignTokens, measureSiteDesign, readDeclaredDesign, sendSiteDesign } from '../chunk-JJ3DELUL.js';
2
+ export { SiteDesignReporter } from '../chunk-PQDJNIHR.js';
3
+ export { SITE_DESIGN_PATH, cleanFontStack, colorToHex, getSiteDesignTokens, measureSiteDesign, readDeclaredDesign, sendSiteDesign } from '../chunk-CG4ETW5Y.js';
4
4
  export { DEFAULT_POPUP_TOKENS, PopupBlocks } from '../chunk-BF7TZYC3.js';
5
5
  import '../chunk-IHG36STL.js';
6
6
  import '../chunk-YC7ELZS3.js';
7
7
  import '../chunk-S22FSH7C.js';
8
8
  import '../chunk-43OCZ3JA.js';
9
9
  import '../chunk-EKBEOXTH.js';
10
- import '../chunk-D6ZC7XKZ.js';
11
- import '../chunk-K4ZHAURD.js';
12
- import '../chunk-F24FNCTK.js';
10
+ import '../chunk-3E3PPSNR.js';
11
+ import '../chunk-GK7TV7EK.js';
12
+ import '../chunk-KHQ5GD6T.js';
13
13
  import '../chunk-PKBMQBKP.js';
@@ -1,14 +1,14 @@
1
1
  'use client';
2
2
  export { DEFAULT_POPUP_TOKENS, PopupBlocks } from '../chunk-BF7TZYC3.js';
3
3
  import '../chunk-IHG36STL.js';
4
- export { SitePopups } from '../chunk-EJVQJCG5.js';
4
+ export { SitePopups } from '../chunk-6LLTLLEJ.js';
5
5
  import '../chunk-27FISYK4.js';
6
6
  import '../chunk-S22FSH7C.js';
7
7
  import '../chunk-24QZEO3Q.js';
8
8
  import '../chunk-GJWI74ZZ.js';
9
9
  import '../chunk-43OCZ3JA.js';
10
10
  import '../chunk-EKBEOXTH.js';
11
- import '../chunk-D6ZC7XKZ.js';
12
- import '../chunk-K4ZHAURD.js';
13
- import '../chunk-F24FNCTK.js';
11
+ import '../chunk-3E3PPSNR.js';
12
+ import '../chunk-GK7TV7EK.js';
13
+ import '../chunk-KHQ5GD6T.js';
14
14
  import '../chunk-PKBMQBKP.js';
@@ -1,8 +1,8 @@
1
- export { writeLLMsTxtToPublic } from './chunk-QL6XNPSD.js';
2
- import './chunk-6U3VLV2C.js';
1
+ export { writeLLMsTxtToPublic } from './chunk-ZTLU3BSW.js';
2
+ import './chunk-4BHRA7TI.js';
3
3
  import './chunk-L5UOHS6E.js';
4
4
  import './chunk-WMVK77ND.js';
5
- import './chunk-VX5CMNMM.js';
5
+ import './chunk-UAYAJPEP.js';
6
6
  import './chunk-NZ4RXN3G.js';
7
7
  import './chunk-MJP63SSS.js';
8
8
  import './chunk-YVKRYQRG.js';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sonordev/site-kit",
3
- "version": "7.2.0",
3
+ "version": "7.4.0",
4
4
  "type": "module",
5
5
  "packageManager": "pnpm@11.5.3",
6
6
  "description": "Complete client-side integration kit for Sonor - SEO, Analytics, Engage, Forms, Blog",
@@ -242,8 +242,8 @@ nothing to configure.
242
242
  - **Agent-sent leads are tagged.** When the browser reports that an agent
243
243
  pressed submit (`SubmitEvent.agentInvoked`), the submission carries that
244
244
  flag and the lead is tagged in Sonor, so you can see how those leads compare
245
- over time. It's the browser's word, so it never changes how a submission is
246
- checked. The agent is handed the outcome of its submit (`respondWith`).
245
+ over time, and Sonor's spam screening takes it into account. The agent is
246
+ handed the outcome of its submit (`respondWith`).
247
247
  - **Nothing typed before the form loads is lost.** `ServerForm` renders the
248
248
  form in the page HTML and loads the interactive version at idle. Since
249
249
  7.2.0, typing into the server-rendered form starts that upgrade at once and
@@ -229,6 +229,75 @@ with `optimizedLLMsTxt: false` in `createSitemap`, so one writer owns the file.
229
229
  Reads behind this write always bypass Next's Data Cache — hosts persist it
230
230
  between builds, and a cached read is how a site shipped a months-old llms.txt.
231
231
 
232
+ #### Agent discovery for a custom MCP server
233
+
234
+ A custom server stays opt-in. Share the same `mcp` options between the
235
+ build-time writer and both route handlers so the short and full files point
236
+ at the same tools. This adds links to an existing server; it doesn't create
237
+ the endpoint, card, or catalog.
238
+
239
+ ```ts
240
+ // lib/agent-access.ts
241
+ import type { AgentAccessOptions } from '@sonordev/site-kit/seo/llms'
242
+
243
+ export const agentAccess: AgentAccessOptions = {
244
+ endpoint: '/api/mcp',
245
+ card: '/api/mcp/server-card',
246
+ catalog: '/.well-known/ai-catalog.json', // omit unless this document is served
247
+ position: 'after-intro',
248
+ }
249
+ ```
250
+
251
+ ```ts
252
+ // The site's build-time writer
253
+ import { writeLLMsTxtToPublic } from '@sonordev/site-kit/seo/llms'
254
+ import { agentAccess } from '../lib/agent-access'
255
+
256
+ await writeLLMsTxtToPublic({
257
+ full: true,
258
+ site: 'example.com',
259
+ mcp: agentAccess,
260
+ })
261
+ ```
262
+
263
+ ```ts
264
+ // app/llms.txt/route.ts
265
+ import { createLLMsTxtHandler } from '@sonordev/site-kit/seo/llms'
266
+ import { agentAccess } from '@/lib/agent-access'
267
+
268
+ export const GET = createLLMsTxtHandler({
269
+ baseUrl: 'https://example.com',
270
+ mcp: agentAccess,
271
+ })
272
+ ```
273
+
274
+ ```ts
275
+ // app/llms-full.txt/route.ts — use the same options
276
+ import { createLLMsFullTxtHandler } from '@sonordev/site-kit/seo/llms'
277
+ import { agentAccess } from '@/lib/agent-access'
278
+
279
+ export const GET = createLLMsFullTxtHandler({
280
+ baseUrl: 'https://example.com',
281
+ mcp: agentAccess,
282
+ })
283
+ ```
284
+
285
+ `after-intro` preserves the title and introduction and puts Agent access
286
+ before the first content section. `end` places it at the end. Existing
287
+ markdown that already contains Agent access or a recognized server-card link
288
+ is preserved, so update a site's existing discovery section directly when
289
+ its URLs change. The optional catalog is an experimental discovery document,
290
+ not a requirement for using the MCP endpoint.
291
+
292
+ The writer applies these options to both files, whether Sonor generated the
293
+ content or local data supplied it. It resolves the origin from
294
+ `NEXT_PUBLIC_SITE_URL`, falling back to the `site` host. The handlers apply
295
+ explicit options even when serving an older file through `preferStatic`;
296
+ they use `baseUrl` or the configured site URL and never read the incoming
297
+ request. A CDN serving `public/llms.txt` directly still needs the build-time
298
+ writer to update that file. `mcp: false` disables automatic insertion; it
299
+ doesn't remove a site's existing discovery text.
300
+
232
301
  ### Step 5: On-Demand Revalidation (optional)
233
302
 
234
303
  When Sonor data changes (page summaries, FAQs, etc.), bust the ISR cache instantly instead of waiting for `s-maxage` to expire:
package/src/mcp/README.md CHANGED
@@ -9,7 +9,7 @@ definitions:
9
9
  | Surface | Who uses it | Entry point |
10
10
  |---|---|---|
11
11
  | Remote MCP endpoint (Streamable HTTP) | Off-browser agents — Claude, Cursor, any MCP client | `createMcpHandler` |
12
- | MCP Server Card (SEP-2127) | Crawlers and clients discovering the endpoint | `createMcpServerCardHandler` |
12
+ | Server card and experimental AI catalog | Crawlers and clients discovering the endpoint | `createMcpServerCardHandler`, `createMcpAiCatalogHandler` |
13
13
  | In-page WebMCP | Browser-driving agents | `<WebMcpTools>`, `declarativeToolForm` |
14
14
 
15
15
  One definition feeding all three is the point. The alternative — a tool list for
@@ -163,22 +163,45 @@ export const { POST, GET, DELETE, OPTIONS } = createMcpHandler({
163
163
  export const dynamic = 'force-dynamic'
164
164
  ```
165
165
 
166
- ### 3. Mount the card at BOTH well-known paths
166
+ ### 3. Mount the card and optional experimental catalog
167
+
168
+ The [ext-server-card discovery draft](https://github.com/modelcontextprotocol/ext-server-card/blob/main/docs/discovery.md)
169
+ is experimental. It recommends the card beside the endpoint at
170
+ `<streamable-http-url>/server-card` and a domain catalog at
171
+ `/.well-known/ai-catalog.json`. With the default endpoint, use
172
+ `/api/mcp/server-card` as the site's canonical card URL:
167
173
 
168
174
  ```ts
169
- // app/.well-known/mcp-server-card/route.ts ← canonical (SEP-2127)
170
- // app/.well-known/mcp.json/route.ts ← superseded SEP-1649, still probed
171
- import { createMcpServerCardHandler } from '@sonordev/site-kit/mcp'
175
+ // app/api/mcp/server-card/route.ts
176
+ import { createMcpServerCardHandler, MCP_SERVER_CARD_MEDIA_TYPE } from '@sonordev/site-kit/mcp'
172
177
  import { mcpServer } from '@/lib/mcp/server'
173
178
 
174
179
  export const { GET, OPTIONS } = createMcpServerCardHandler({
175
180
  info: mcpServer.info,
176
181
  tools: mcpServer.tools,
177
182
  baseUrl: 'https://example.com',
183
+ contentType: MCP_SERVER_CARD_MEDIA_TYPE, // application/mcp-server-card+json
184
+ })
185
+ ```
186
+
187
+ ```ts
188
+ // app/.well-known/ai-catalog.json/route.ts
189
+ import { createMcpAiCatalogHandler } from '@sonordev/site-kit/mcp'
190
+ import { mcpServer } from '@/lib/mcp/server'
191
+
192
+ export const { GET, OPTIONS } = createMcpAiCatalogHandler({
193
+ info: mcpServer.info,
194
+ baseUrl: 'https://example.com',
195
+ serverCardPath: '/api/mcp/server-card',
178
196
  })
179
- export const revalidate = 3600
180
197
  ```
181
198
 
199
+ The catalog returns `application/ai-catalog+json`. Both handlers use explicit
200
+ configuration and stay statically renderable without reading request data.
201
+ Keep existing `/.well-known/mcp-server-card` and `/.well-known/mcp.json`
202
+ aliases for clients that already use them. The card handler's default remains
203
+ `application/json`; set the vendor content type explicitly on the new path.
204
+
182
205
  ### 4. Register in-page (optional, for browser agents)
183
206
 
184
207
  ```tsx
@@ -188,10 +211,17 @@ export const revalidate = 3600
188
211
  ```
189
212
 
190
213
  Pass no tool list. The component checks for WebMCP support first and only then
191
- fetches `tools/list` from the endpoint — so an ordinary visitor does no work
192
- and the page carries no extra bytes, while an agent gets the same catalog the
193
- endpoint serves. Handing it descriptors from a server component instead would
194
- put the whole catalog in every page's RSC payload.
214
+ fetches `tools/list` from the endpoint. In a supported browser it starts when
215
+ the component mounts, without waiting for window load, an idle period, or a
216
+ human interaction. A browser without WebMCP makes no discovery request and
217
+ receives no catalog. Handing it descriptors from a server component instead
218
+ would put the whole catalog in every page's RSC payload.
219
+
220
+ `defer={true}` preserves the optional load + idle activation. Ordinary parent
221
+ renders keep the current registration; unmounting aborts discovery, remote
222
+ calls, and registrations that support the registration signal. If passing
223
+ `tools` or `localTools` explicitly, keep their arrays stable until the tools
224
+ change.
195
225
 
196
226
  ### 5. Rate-limit the public endpoint (Netlify)
197
227
 
@@ -268,8 +298,8 @@ is not re-exported from `@sonordev/site-kit/mcp`, which stays runtime-neutral.
268
298
 
269
299
  ### The card does not list tools — on purpose
270
300
 
271
- SEP-2127 deliberately omits primitives from the card: what a server exposes can
272
- vary with auth state and flags, so the authoritative list is whatever
301
+ The card's discovery shape omits primitives: what a server exposes can
302
+ vary with auth state and configuration, so the authoritative list is whatever
273
303
  `tools/list` returns at call time. A card that inlined tools would be a second
274
304
  source of truth that goes stale silently.
275
305
 
@@ -279,11 +309,15 @@ point and requires a reverse-DNS prefix, so the hint rides along without
279
309
  pretending to be standard — useful for crawlers that index the card and never
280
310
  connect.
281
311
 
282
- ### Two well-known paths
312
+ ### Experimental discovery and compatibility paths
283
313
 
284
- SEP-1649 proposed `/.well-known/mcp.json`; the ratified SEP-2127 moved to
285
- `/.well-known/mcp-server-card`. Deployed validators still probe the old path.
286
- Serving one document from two URLs costs nothing, so mount both.
314
+ Site-kit keeps `/.well-known/mcp-server-card` and `/.well-known/mcp.json`
315
+ for compatibility with existing integrations. The experimental
316
+ ext-server-card draft adds domain discovery through
317
+ `/.well-known/ai-catalog.json`, which links to the recommended endpoint-local
318
+ card at `/api/mcp/server-card`. These draft conventions aren't a guarantee
319
+ that every agent discovers or uses them. Keep the endpoint and existing card
320
+ URLs working while adding the catalog.
287
321
 
288
322
  ### Dual-era protocol support
289
323
 
@@ -27,6 +27,7 @@ interface TestimonialSectionProps {
27
27
  autoplay?: boolean // Auto-rotate reviews
28
28
  autoplayInterval?: number // ms between rotations
29
29
  showRating?: boolean // Display star ratings
30
+ showPhoto?: boolean // Show attached business photo (default true)
30
31
  maxReviews?: number // Limit displayed count
31
32
  featuredOnly?: boolean // Show featured reviews only
32
33
  service?: string // Filter by service tag
@@ -34,6 +35,29 @@ interface TestimonialSectionProps {
34
35
  }
35
36
  ```
36
37
 
38
+ ## Visual review cards
39
+
40
+ Render a photo and its original review together with a responsive, server-rendered gallery:
41
+
42
+ ```tsx
43
+ import { fetchReviews, VisualReviewGallery } from '@sonordev/site-kit/reputation/server'
44
+
45
+ export default async function ReviewsPage() {
46
+ const reviews = await fetchReviews({ limit: 12 })
47
+ return <VisualReviewGallery reviews={reviews} title="What Our Clients Say" />
48
+ }
49
+ ```
50
+
51
+ `VisualReviewCard` accepts one `review`, optional `showRating` and `className`.
52
+ `VisualReviewGallery` accepts `reviews`, optional `title`, `subtitle`, `showRating`
53
+ and `className`. Both use the site's `--sk-*` brand tokens and work in React
54
+ Server Components. Import `@sonordev/site-kit/brand.css` once for token defaults,
55
+ then override them in your site's CSS.
56
+
57
+ Text-only reviews stay visible while a photo is pending. Adding or removing a
58
+ photo in Sonor updates the public review feed; `image` continues to mean the
59
+ reviewer's avatar. Only HTTPS photo URLs are displayed.
60
+
37
61
  ## API Functions
38
62
 
39
63
  ```ts
@@ -50,6 +74,7 @@ interface Review {
50
74
  id: string; quote: string; name: string; role?: string;
51
75
  rating: number; image?: string; date?: string;
52
76
  platform?: string; isFeatured?: boolean; serviceTags?: string[];
77
+ photo?: { fileId: string; url: string; altText: string; caption: string } | null;
53
78
  }
54
79
 
55
80
  interface ReviewStats {
@@ -1,8 +0,0 @@
1
- export { SitemapSync } from './chunk-GEXT7BTE.js';
2
- import './chunk-YVKRYQRG.js';
3
- import './chunk-43OCZ3JA.js';
4
- import './chunk-EKBEOXTH.js';
5
- import './chunk-D6ZC7XKZ.js';
6
- import './chunk-K4ZHAURD.js';
7
- import './chunk-F24FNCTK.js';
8
- import './chunk-PKBMQBKP.js';