@sonordev/site-kit 5.8.3 → 6.0.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 +11 -11
- package/agent-manifest.json +17 -11
- package/dist/{AnalyticsProvider-IGOD64MY.mjs → AnalyticsProvider-6QVM2B6O.mjs} +6 -6
- package/dist/{AnalyticsProvider-IGOD64MY.mjs.map → AnalyticsProvider-6QVM2B6O.mjs.map} +1 -1
- package/dist/{AnalyticsProvider-DPXR6FSV.js → AnalyticsProvider-AZQXLRWN.js} +10 -10
- package/dist/{AnalyticsProvider-DPXR6FSV.js.map → AnalyticsProvider-AZQXLRWN.js.map} +1 -1
- package/dist/ArticleFaqSection-3KZ24MFS.js +13 -0
- package/dist/ArticleFaqSection-3KZ24MFS.js.map +1 -0
- package/dist/ArticleFaqSection-XZPXJVH4.mjs +11 -0
- package/dist/ArticleFaqSection-XZPXJVH4.mjs.map +1 -0
- package/dist/{BlogViewTracker-Q7Y4MN4B.mjs → ArticleViewTracker-AEWJMXQQ.mjs} +13 -13
- package/dist/ArticleViewTracker-AEWJMXQQ.mjs.map +1 -0
- package/dist/{BlogViewTracker-S3CSRBIZ.js → ArticleViewTracker-CFBTQ46B.js} +16 -16
- package/dist/ArticleViewTracker-CFBTQ46B.js.map +1 -0
- package/dist/ChatWidget-6626OPXO.mjs +15 -0
- package/dist/{ChatWidget-G3KOUDX5.mjs.map → ChatWidget-6626OPXO.mjs.map} +1 -1
- package/dist/ChatWidget-U24AYLXF.js +24 -0
- package/dist/{ChatWidget-76R7NOWD.js.map → ChatWidget-U24AYLXF.js.map} +1 -1
- package/dist/EngageWidget-TR47W2ZI.mjs +12 -0
- package/dist/{EngageWidget-UJ47PQFG.mjs.map → EngageWidget-TR47W2ZI.mjs.map} +1 -1
- package/dist/EngageWidget-XUTDFRF3.js +21 -0
- package/dist/{EngageWidget-HD4F2ZVE.js.map → EngageWidget-XUTDFRF3.js.map} +1 -1
- package/dist/{FileField-WNMEA3PK.mjs → FileField-DNNC5IPS.mjs} +5 -5
- package/dist/{FileField-WNMEA3PK.mjs.map → FileField-DNNC5IPS.mjs.map} +1 -1
- package/dist/{FileField-FV6WSZMX.js → FileField-R4RQG77G.js} +6 -6
- package/dist/{FileField-FV6WSZMX.js.map → FileField-R4RQG77G.js.map} +1 -1
- package/dist/{FormSpotlight-2VRQXEFI.js → FormSpotlight-7ILRAD3W.js} +9 -9
- package/dist/{FormSpotlight-2VRQXEFI.js.map → FormSpotlight-7ILRAD3W.js.map} +1 -1
- package/dist/{FormSpotlight-NGWEPGI4.mjs → FormSpotlight-MXY4I46H.mjs} +3 -3
- package/dist/{FormSpotlight-NGWEPGI4.mjs.map → FormSpotlight-MXY4I46H.mjs.map} +1 -1
- package/dist/{FormStage-Q3KQVFVW.js → FormStage-CVD3I3SE.js} +9 -9
- package/dist/{FormStage-Q3KQVFVW.js.map → FormStage-CVD3I3SE.js.map} +1 -1
- package/dist/{FormStage-7L4BBOLC.mjs → FormStage-FDJGRGEU.mjs} +3 -3
- package/dist/{FormStage-7L4BBOLC.mjs.map → FormStage-FDJGRGEU.mjs.map} +1 -1
- package/dist/ManagedForm-5675CLWS.mjs +16 -0
- package/dist/{ManagedForm-Z7QE4KYI.mjs.map → ManagedForm-5675CLWS.mjs.map} +1 -1
- package/dist/ManagedForm-KYIK54SL.js +25 -0
- package/dist/{ManagedForm-4ZGU4R3G.js.map → ManagedForm-KYIK54SL.js.map} +1 -1
- package/dist/{ManagedNewsletterForm-4TVO2VL4.mjs → ManagedNewsletterForm-DFLDGNQU.mjs} +11 -11
- package/dist/ManagedNewsletterForm-DFLDGNQU.mjs.map +1 -0
- package/dist/{ManagedNewsletterForm-22EPZB7Z.js → ManagedNewsletterForm-IH3MRJOD.js} +13 -13
- package/dist/ManagedNewsletterForm-IH3MRJOD.js.map +1 -0
- package/dist/{SignalCore-2N7UZGF3.js → SignalCore-6LYIZFXK.js} +11 -11
- package/dist/{SignalCore-2N7UZGF3.js.map → SignalCore-6LYIZFXK.js.map} +1 -1
- package/dist/{SignalCore-57OK3DHA.mjs → SignalCore-ZH3R6XD3.mjs} +5 -5
- package/dist/{SignalCore-57OK3DHA.mjs.map → SignalCore-ZH3R6XD3.mjs.map} +1 -1
- package/dist/SitemapSync-PKBXWVI6.mjs +9 -0
- package/dist/{SitemapSync-WIUEYOBS.mjs.map → SitemapSync-PKBXWVI6.mjs.map} +1 -1
- package/dist/SitemapSync-PZ76V5MX.js +18 -0
- package/dist/{SitemapSync-GF4OKN4Z.js.map → SitemapSync-PZ76V5MX.js.map} +1 -1
- package/dist/analytics/index.js +9 -9
- package/dist/analytics/index.mjs +4 -4
- package/dist/{blog-styles-7AKRUMV7.mjs → article-styles-DACUAOVT.mjs} +124 -124
- package/dist/article-styles-DACUAOVT.mjs.map +1 -0
- package/dist/{blog-styles-6EY3BS5Y.js → article-styles-JHHTNHOK.js} +125 -125
- package/dist/article-styles-JHHTNHOK.js.map +1 -0
- package/dist/article-tables-EWXG4LNP.js +17 -0
- package/dist/article-tables-EWXG4LNP.js.map +1 -0
- package/dist/article-tables-OGE52LNT.mjs +4 -0
- package/dist/article-tables-OGE52LNT.mjs.map +1 -0
- package/dist/{blog/BlogPost.d.ts → articles/Article.d.ts} +18 -16
- package/dist/articles/Article.d.ts.map +1 -0
- package/dist/{blog/BlogFAQ.d.ts → articles/ArticleFAQ.d.ts} +6 -6
- package/dist/articles/ArticleFAQ.d.ts.map +1 -0
- package/dist/articles/ArticleFaqSection.d.ts +3 -0
- package/dist/articles/ArticleFaqSection.d.ts.map +1 -0
- package/dist/{blog/BlogList.d.ts → articles/ArticleList.d.ts} +16 -16
- package/dist/articles/ArticleList.d.ts.map +1 -0
- package/dist/{blog/BlogViewTracker.d.ts → articles/ArticleViewTracker.d.ts} +4 -4
- package/dist/articles/ArticleViewTracker.d.ts.map +1 -0
- package/dist/{blog → articles}/AuthorCard.d.ts +3 -3
- package/dist/articles/AuthorCard.d.ts.map +1 -0
- package/dist/{blog → articles}/AuthorPage.d.ts +1 -1
- package/dist/articles/AuthorPage.d.ts.map +1 -0
- package/dist/{blog → articles}/ClusterLandingPage.d.ts +6 -6
- package/dist/articles/ClusterLandingPage.d.ts.map +1 -0
- package/dist/{blog → articles}/ClusterNavigation.d.ts +5 -5
- package/dist/articles/ClusterNavigation.d.ts.map +1 -0
- package/dist/{blog → articles}/ManagedNewsletterForm.d.ts +1 -1
- package/dist/articles/ManagedNewsletterForm.d.ts.map +1 -0
- package/dist/{blog → articles}/NewsletterShell.d.ts +1 -1
- package/dist/articles/NewsletterShell.d.ts.map +1 -0
- package/dist/{blog → articles}/NewsletterWidget.d.ts +4 -4
- package/dist/articles/NewsletterWidget.d.ts.map +1 -0
- package/dist/{blog/BlogLayout.d.ts → articles/PublicationLayout.d.ts} +18 -18
- package/dist/articles/PublicationLayout.d.ts.map +1 -0
- package/dist/{blog/BlogSidebar.d.ts → articles/PublicationSidebar.d.ts} +8 -8
- package/dist/articles/PublicationSidebar.d.ts.map +1 -0
- package/dist/{blog → articles}/RelatedPosts.d.ts +6 -6
- package/dist/articles/RelatedPosts.d.ts.map +1 -0
- package/dist/{blog → articles}/ServiceCallout.d.ts +4 -4
- package/dist/articles/ServiceCallout.d.ts.map +1 -0
- package/dist/{blog → articles}/TableOfContents.d.ts +1 -1
- package/dist/articles/TableOfContents.d.ts.map +1 -0
- package/dist/{blog/blog-styles.d.ts → articles/article-styles.d.ts} +5 -5
- package/dist/articles/article-styles.d.ts.map +1 -0
- package/dist/{blog/blog-tables.d.ts → articles/article-tables.d.ts} +4 -4
- package/dist/articles/article-tables.d.ts.map +1 -0
- package/dist/articles/artwork.d.ts +14 -0
- package/dist/articles/artwork.d.ts.map +1 -0
- package/dist/{blog → articles}/author-schema.d.ts +6 -5
- package/dist/articles/author-schema.d.ts.map +1 -0
- package/dist/{blog → articles}/author-social.d.ts +2 -2
- package/dist/articles/author-social.d.ts.map +1 -0
- package/dist/{blog → articles}/excerpt.d.ts +2 -2
- package/dist/articles/excerpt.d.ts.map +1 -0
- package/dist/{blog → articles}/index.d.ts +26 -31
- package/dist/articles/index.d.ts.map +1 -0
- package/dist/{blog → articles}/index.js +39 -73
- package/dist/articles/index.js.map +1 -0
- package/dist/{blog → articles}/index.mjs +16 -17
- package/dist/articles/index.mjs.map +1 -0
- package/dist/articles/news-sitemap.d.ts +47 -0
- package/dist/articles/news-sitemap.d.ts.map +1 -0
- package/dist/{blog/processBlogHtml.d.ts → articles/processArticleHtml.d.ts} +4 -4
- package/dist/articles/processArticleHtml.d.ts.map +1 -0
- package/dist/articles/public-reads.d.ts +27 -0
- package/dist/articles/public-reads.d.ts.map +1 -0
- package/dist/{blog → articles}/reading-time.d.ts +2 -2
- package/dist/articles/reading-time.d.ts.map +1 -0
- package/dist/{blog → articles}/routes.d.ts +16 -12
- package/dist/articles/routes.d.ts.map +1 -0
- package/dist/{blog → articles}/server-core.d.ts +94 -81
- package/dist/articles/server-core.d.ts.map +1 -0
- package/dist/articles/server-ui.d.ts +29 -0
- package/dist/articles/server-ui.d.ts.map +1 -0
- package/dist/{chunk-W2U5SLMY.js → articles/server-ui.js} +378 -499
- package/dist/articles/server-ui.js.map +1 -0
- package/dist/{chunk-MWKI6ZIS.mjs → articles/server-ui.mjs} +328 -474
- package/dist/articles/server-ui.mjs.map +1 -0
- package/dist/{blog → articles}/server.d.ts +94 -81
- package/dist/articles/server.d.ts.map +1 -0
- package/dist/articles/server.js +236 -0
- package/dist/articles/server.mjs +11 -0
- package/dist/{blog → articles}/types.d.ts +34 -34
- package/dist/articles/types.d.ts.map +1 -0
- package/dist/articles/widget-styles.d.ts +9 -0
- package/dist/articles/widget-styles.d.ts.map +1 -0
- package/dist/brand/extract-brand-profile.d.ts +1 -1
- package/dist/{chunk-PIEHBSCN.js → chunk-254IW4FC.js} +9 -9
- package/dist/{chunk-PIEHBSCN.js.map → chunk-254IW4FC.js.map} +1 -1
- package/dist/chunk-2KRAY5NC.mjs +6 -0
- package/dist/{chunk-5FETEH3Y.mjs.map → chunk-2KRAY5NC.mjs.map} +1 -1
- package/dist/{chunk-MQS6AF5K.mjs → chunk-2WEBUZNP.mjs} +3 -3
- package/dist/{chunk-MQS6AF5K.mjs.map → chunk-2WEBUZNP.mjs.map} +1 -1
- package/dist/{chunk-4C5CZJIN.mjs → chunk-2YSB4FIC.mjs} +4 -4
- package/dist/{chunk-4C5CZJIN.mjs.map → chunk-2YSB4FIC.mjs.map} +1 -1
- package/dist/{chunk-I7HOMMIK.js → chunk-3GHPFLEH.js} +15 -15
- package/dist/{chunk-I7HOMMIK.js.map → chunk-3GHPFLEH.js.map} +1 -1
- package/dist/{chunk-CY2RFEW6.js → chunk-3LCJJ6Y6.js} +3 -3
- package/dist/{chunk-CY2RFEW6.js.map → chunk-3LCJJ6Y6.js.map} +1 -1
- package/dist/{chunk-QOOLMSBY.mjs → chunk-3OCXVTN5.mjs} +3 -3
- package/dist/{chunk-QOOLMSBY.mjs.map → chunk-3OCXVTN5.mjs.map} +1 -1
- package/dist/{chunk-AJBOEV4I.mjs → chunk-3T2CVHFO.mjs} +3 -3
- package/dist/chunk-3T2CVHFO.mjs.map +1 -0
- package/dist/{chunk-NR7YZQRR.js → chunk-3U5SVB4W.js} +4 -4
- package/dist/{chunk-NR7YZQRR.js.map → chunk-3U5SVB4W.js.map} +1 -1
- package/dist/{chunk-I3ND4XYW.js → chunk-4BEGKFMN.js} +8 -8
- package/dist/{chunk-I3ND4XYW.js.map → chunk-4BEGKFMN.js.map} +1 -1
- package/dist/{chunk-YFX3Q56O.mjs → chunk-4KAMU5HD.mjs} +3 -3
- package/dist/chunk-4KAMU5HD.mjs.map +1 -0
- package/dist/{chunk-ZPLN537Q.mjs → chunk-4WCA2HM6.mjs} +2 -2
- package/dist/chunk-4WCA2HM6.mjs.map +1 -0
- package/dist/{chunk-6CCS2EGF.js → chunk-5DSUPTBU.js} +13 -13
- package/dist/{chunk-6CCS2EGF.js.map → chunk-5DSUPTBU.js.map} +1 -1
- package/dist/{chunk-GHECYDSZ.mjs → chunk-5F2FIM5A.mjs} +16 -15
- package/dist/chunk-5F2FIM5A.mjs.map +1 -0
- package/dist/{chunk-Y5QZPUL3.mjs → chunk-5YVQWLSQ.mjs} +5 -5
- package/dist/chunk-5YVQWLSQ.mjs.map +1 -0
- package/dist/chunk-6DCAMW62.mjs +55 -0
- package/dist/chunk-6DCAMW62.mjs.map +1 -0
- package/dist/{chunk-Q2NBD54V.js → chunk-7THQ4UW3.js} +2 -2
- package/dist/chunk-7THQ4UW3.js.map +1 -0
- package/dist/{chunk-LGOQ65JQ.mjs → chunk-7TKSRUQU.mjs} +7 -7
- package/dist/{chunk-LGOQ65JQ.mjs.map → chunk-7TKSRUQU.mjs.map} +1 -1
- package/dist/{chunk-4TLFZ6NR.mjs → chunk-AS2HUIDW.mjs} +3 -3
- package/dist/chunk-AS2HUIDW.mjs.map +1 -0
- package/dist/{chunk-YN7QHLWF.js → chunk-BBBJHYPH.js} +5 -5
- package/dist/chunk-BBBJHYPH.js.map +1 -0
- package/dist/{chunk-2TS4ALOA.js → chunk-BZG34WHF.js} +14 -14
- package/dist/{chunk-2TS4ALOA.js.map → chunk-BZG34WHF.js.map} +1 -1
- package/dist/{chunk-4LYW6PMU.mjs → chunk-C2CTLLIO.mjs} +3 -3
- package/dist/chunk-C2CTLLIO.mjs.map +1 -0
- package/dist/{chunk-O237KKCX.mjs → chunk-C5VITBN7.mjs} +5 -5
- package/dist/chunk-C5VITBN7.mjs.map +1 -0
- package/dist/{chunk-75A4KY4X.mjs → chunk-CFRJ2MK5.mjs} +2 -2
- package/dist/chunk-CFRJ2MK5.mjs.map +1 -0
- package/dist/{chunk-G2WC3CXW.js → chunk-CLO3K7PF.js} +2 -2
- package/dist/chunk-CLO3K7PF.js.map +1 -0
- package/dist/{chunk-SFC3OWSE.mjs → chunk-CSSNZGTU.mjs} +4 -4
- package/dist/{chunk-SFC3OWSE.mjs.map → chunk-CSSNZGTU.mjs.map} +1 -1
- package/dist/{chunk-7VZYP4K5.js → chunk-CZGGUPPQ.js} +15 -15
- package/dist/{chunk-7VZYP4K5.js.map → chunk-CZGGUPPQ.js.map} +1 -1
- package/dist/{chunk-FTB5LAD3.js → chunk-D47W5DE4.js} +4 -4
- package/dist/{chunk-FTB5LAD3.js.map → chunk-D47W5DE4.js.map} +1 -1
- package/dist/{chunk-AK6JZ3OE.mjs → chunk-EDLNMGQC.mjs} +3 -3
- package/dist/{chunk-DO6ATNLN.js.map → chunk-EDLNMGQC.mjs.map} +1 -1
- package/dist/chunk-EL74YDNX.js +8 -0
- package/dist/{chunk-7R6H3GQ4.js.map → chunk-EL74YDNX.js.map} +1 -1
- package/dist/{chunk-HX6ZG3PP.js → chunk-EMHSHAVW.js} +3 -3
- package/dist/chunk-EMHSHAVW.js.map +1 -0
- package/dist/{chunk-7TC3GRXQ.js → chunk-G6KQ3C3W.js} +25 -23
- package/dist/chunk-G6KQ3C3W.js.map +1 -0
- package/dist/{chunk-HEOLGDUX.mjs → chunk-GQ3SDRL6.mjs} +4 -4
- package/dist/{chunk-HEOLGDUX.mjs.map → chunk-GQ3SDRL6.mjs.map} +1 -1
- package/dist/{chunk-IIHIRHSW.js → chunk-HFCQGSD2.js} +18 -18
- package/dist/{chunk-IIHIRHSW.js.map → chunk-HFCQGSD2.js.map} +1 -1
- package/dist/{chunk-XZO5I4RS.mjs → chunk-HIZJD7TU.mjs} +3 -3
- package/dist/{chunk-XZO5I4RS.mjs.map → chunk-HIZJD7TU.mjs.map} +1 -1
- package/dist/{chunk-UQY5KC64.mjs → chunk-HOOVYWTO.mjs} +4 -4
- package/dist/{chunk-UQY5KC64.mjs.map → chunk-HOOVYWTO.mjs.map} +1 -1
- package/dist/{chunk-NBT4L2D7.js → chunk-HX5JPNMN.js} +8 -8
- package/dist/{chunk-NBT4L2D7.js.map → chunk-HX5JPNMN.js.map} +1 -1
- package/dist/chunk-HXHRS3PX.mjs +349 -0
- package/dist/chunk-HXHRS3PX.mjs.map +1 -0
- package/dist/{chunk-XBX2K3GA.js → chunk-IBJOGXQI.js} +4 -4
- package/dist/{chunk-XBX2K3GA.js.map → chunk-IBJOGXQI.js.map} +1 -1
- package/dist/{chunk-3OO5EDKD.mjs → chunk-JMNBU2RG.mjs} +9 -9
- package/dist/{chunk-3OO5EDKD.mjs.map → chunk-JMNBU2RG.mjs.map} +1 -1
- package/dist/{chunk-R7GHP3FY.js → chunk-JONWE26J.js} +3 -3
- package/dist/chunk-JONWE26J.js.map +1 -0
- package/dist/{chunk-PQYQHZWV.mjs → chunk-JSXLTZUP.mjs} +6 -6
- package/dist/{chunk-PQYQHZWV.mjs.map → chunk-JSXLTZUP.mjs.map} +1 -1
- package/dist/{chunk-FD72QL42.mjs → chunk-JXCMCASE.mjs} +3 -3
- package/dist/{chunk-FD72QL42.mjs.map → chunk-JXCMCASE.mjs.map} +1 -1
- package/dist/{chunk-TR3F3CLV.js → chunk-KA4NNWOK.js} +10 -10
- package/dist/{chunk-TR3F3CLV.js.map → chunk-KA4NNWOK.js.map} +1 -1
- package/dist/{chunk-K4TCEAUX.js → chunk-KR7ATPAN.js} +5 -5
- package/dist/chunk-KR7ATPAN.js.map +1 -0
- package/dist/{chunk-JLVCWC6A.mjs → chunk-KZVSB5WE.mjs} +2 -2
- package/dist/chunk-KZVSB5WE.mjs.map +1 -0
- package/dist/chunk-LWCAZDY2.js +355 -0
- package/dist/chunk-LWCAZDY2.js.map +1 -0
- package/dist/{chunk-5HFD36AN.js → chunk-MCG4BSRW.js} +5 -5
- package/dist/{chunk-5HFD36AN.js.map → chunk-MCG4BSRW.js.map} +1 -1
- package/dist/{chunk-S2Y7LVQ2.js → chunk-MIYGP34I.js} +14 -14
- package/dist/{chunk-S2Y7LVQ2.js.map → chunk-MIYGP34I.js.map} +1 -1
- package/dist/{chunk-PI3FHABB.js → chunk-MS2EE6LT.js} +10 -10
- package/dist/{chunk-PI3FHABB.js.map → chunk-MS2EE6LT.js.map} +1 -1
- package/dist/{chunk-QQQAW6WY.js → chunk-N6CB7MK7.js} +6 -6
- package/dist/{chunk-QQQAW6WY.js.map → chunk-N6CB7MK7.js.map} +1 -1
- package/dist/{chunk-LMEUYRRR.js → chunk-NAA5J2JM.js} +233 -120
- package/dist/chunk-NAA5J2JM.js.map +1 -0
- package/dist/{chunk-OE7CTIOU.mjs → chunk-NE6QGHFT.mjs} +4 -4
- package/dist/{chunk-OE7CTIOU.mjs.map → chunk-NE6QGHFT.mjs.map} +1 -1
- package/dist/{chunk-NCDF2RK4.mjs → chunk-NR52QHOD.mjs} +3 -3
- package/dist/{chunk-NCDF2RK4.mjs.map → chunk-NR52QHOD.mjs.map} +1 -1
- package/dist/{chunk-GQF6QAQS.js → chunk-OGNX6JT4.js} +5 -5
- package/dist/chunk-OGNX6JT4.js.map +1 -0
- package/dist/{chunk-FVW6FT6L.js → chunk-OSU4QA5M.js} +8 -8
- package/dist/{chunk-FVW6FT6L.js.map → chunk-OSU4QA5M.js.map} +1 -1
- package/dist/{chunk-UEUWC3PH.mjs → chunk-PJYTYM5G.mjs} +3 -3
- package/dist/{chunk-UEUWC3PH.mjs.map → chunk-PJYTYM5G.mjs.map} +1 -1
- package/dist/{chunk-DO6ATNLN.js → chunk-PRAHDLKT.js} +5 -5
- package/dist/chunk-PRAHDLKT.js.map +1 -0
- package/dist/{chunk-RFAAY3BW.mjs → chunk-QEM2F2DC.mjs} +3 -3
- package/dist/{chunk-RFAAY3BW.mjs.map → chunk-QEM2F2DC.mjs.map} +1 -1
- package/dist/{chunk-F3KA6V2Y.js → chunk-QOCLSJIU.js} +3 -3
- package/dist/{chunk-F3KA6V2Y.js.map → chunk-QOCLSJIU.js.map} +1 -1
- package/dist/{chunk-R5IPDAMM.mjs → chunk-QVBAAPNT.mjs} +3 -3
- package/dist/{chunk-R5IPDAMM.mjs.map → chunk-QVBAAPNT.mjs.map} +1 -1
- package/dist/{chunk-POJZA67T.mjs → chunk-RC4L4DV2.mjs} +4 -4
- package/dist/{chunk-POJZA67T.mjs.map → chunk-RC4L4DV2.mjs.map} +1 -1
- package/dist/{chunk-ZVI7MBVF.mjs → chunk-RDPI27TS.mjs} +12 -10
- package/dist/chunk-RDPI27TS.mjs.map +1 -0
- package/dist/{chunk-OEW2LFOV.js → chunk-RLUNEEGM.js} +4 -4
- package/dist/{chunk-OEW2LFOV.js.map → chunk-RLUNEEGM.js.map} +1 -1
- package/dist/{chunk-HBHS5VRN.mjs → chunk-RPCODOWG.mjs} +3 -3
- package/dist/{chunk-HBHS5VRN.mjs.map → chunk-RPCODOWG.mjs.map} +1 -1
- package/dist/{chunk-ROSYCNXG.mjs → chunk-RZGVNDO6.mjs} +4 -4
- package/dist/{chunk-ROSYCNXG.mjs.map → chunk-RZGVNDO6.mjs.map} +1 -1
- package/dist/{chunk-MYMZRHTC.js → chunk-SCRB5DZM.js} +8 -8
- package/dist/{chunk-MYMZRHTC.js.map → chunk-SCRB5DZM.js.map} +1 -1
- package/dist/{chunk-YQTE32QK.js → chunk-SG7CWD2R.js} +17 -16
- package/dist/chunk-SG7CWD2R.js.map +1 -0
- package/dist/{chunk-XEB77DQS.js → chunk-TBXWJJGT.js} +3 -3
- package/dist/chunk-TBXWJJGT.js.map +1 -0
- package/dist/{chunk-QXMWNIKL.mjs → chunk-TCCGP3FT.mjs} +3 -3
- package/dist/{chunk-QXMWNIKL.mjs.map → chunk-TCCGP3FT.mjs.map} +1 -1
- package/dist/{chunk-CZEIHFLW.js → chunk-TCZHRSWY.js} +4 -4
- package/dist/{chunk-CZEIHFLW.js.map → chunk-TCZHRSWY.js.map} +1 -1
- package/dist/{chunk-LB44BNJ2.js → chunk-TST2IKYO.js} +14 -14
- package/dist/{chunk-LB44BNJ2.js.map → chunk-TST2IKYO.js.map} +1 -1
- package/dist/{chunk-U2V542EO.mjs → chunk-UHYRVALN.mjs} +2 -2
- package/dist/{chunk-U2V542EO.mjs.map → chunk-UHYRVALN.mjs.map} +1 -1
- package/dist/{chunk-4L7OHRWB.mjs → chunk-UO6KTHBQ.mjs} +4 -4
- package/dist/{chunk-4L7OHRWB.mjs.map → chunk-UO6KTHBQ.mjs.map} +1 -1
- package/dist/{chunk-H5NBFNND.js → chunk-UZKXOZHR.js} +2 -2
- package/dist/chunk-UZKXOZHR.js.map +1 -0
- package/dist/{chunk-NMM27UOF.js → chunk-VINLIMAX.js} +3 -3
- package/dist/{chunk-NMM27UOF.js.map → chunk-VINLIMAX.js.map} +1 -1
- package/dist/{chunk-UHM3CCCC.js → chunk-WDEGGHTB.js} +12 -12
- package/dist/{chunk-UHM3CCCC.js.map → chunk-WDEGGHTB.js.map} +1 -1
- package/dist/{chunk-PIPERXI7.mjs → chunk-WV5YQL3W.mjs} +3 -3
- package/dist/{chunk-PIPERXI7.mjs.map → chunk-WV5YQL3W.mjs.map} +1 -1
- package/dist/{chunk-3EY5E35M.mjs → chunk-X3MY4PL7.mjs} +210 -107
- package/dist/chunk-X3MY4PL7.mjs.map +1 -0
- package/dist/{chunk-4NVMAYMQ.mjs → chunk-XKXZ4OW4.mjs} +4 -4
- package/dist/{chunk-4NVMAYMQ.mjs.map → chunk-XKXZ4OW4.mjs.map} +1 -1
- package/dist/{chunk-WINDP776.mjs → chunk-XSBKR3VF.mjs} +5 -5
- package/dist/{chunk-WINDP776.mjs.map → chunk-XSBKR3VF.mjs.map} +1 -1
- package/dist/{chunk-SEP5D4MI.js → chunk-Y2CP5J6Q.js} +2 -2
- package/dist/{chunk-SEP5D4MI.js.map → chunk-Y2CP5J6Q.js.map} +1 -1
- package/dist/{chunk-VVBMWV4O.js → chunk-YGDQVZEL.js} +7 -7
- package/dist/{chunk-VVBMWV4O.js.map → chunk-YGDQVZEL.js.map} +1 -1
- package/dist/{chunk-KV7XXLJV.mjs → chunk-YPGUV6BT.mjs} +3 -3
- package/dist/{chunk-KV7XXLJV.mjs.map → chunk-YPGUV6BT.mjs.map} +1 -1
- package/dist/chunk-YRCR7WY3.js +65 -0
- package/dist/chunk-YRCR7WY3.js.map +1 -0
- package/dist/{chunk-F2KW4OJF.mjs → chunk-YWLBQ3L5.mjs} +4 -4
- package/dist/{chunk-F2KW4OJF.mjs.map → chunk-YWLBQ3L5.mjs.map} +1 -1
- package/dist/{chunk-CNTDV7HM.js → chunk-YYEBFQGS.js} +4 -4
- package/dist/{chunk-CNTDV7HM.js.map → chunk-YYEBFQGS.js.map} +1 -1
- package/dist/chunk-ZL35JCDA.mjs +61 -0
- package/dist/chunk-ZL35JCDA.mjs.map +1 -0
- package/dist/chunk-ZR43XFUM.js +60 -0
- package/dist/chunk-ZR43XFUM.js.map +1 -0
- package/dist/{chunk-25F2EXOC.mjs → chunk-ZR4TYCQW.mjs} +3 -3
- package/dist/{chunk-25F2EXOC.mjs.map → chunk-ZR4TYCQW.mjs.map} +1 -1
- package/dist/cli/commands/setup.d.ts +2 -2
- package/dist/cli/commands/sync.d.ts +2 -2
- package/dist/cli/commands/sync.d.ts.map +1 -1
- package/dist/cli/index.js +76 -76
- package/dist/cli/index.mjs +29 -29
- package/dist/client/index.js +5 -5
- package/dist/client/index.mjs +4 -4
- package/dist/commerce/index.js +57 -57
- package/dist/commerce/index.mjs +5 -5
- package/dist/discover-LPN55L5B.js +21 -0
- package/dist/{discover-NGEPXZOD.js.map → discover-LPN55L5B.js.map} +1 -1
- package/dist/discover-QGA6QFSR.mjs +4 -0
- package/dist/{discover-CYXYKHZ2.mjs.map → discover-QGA6QFSR.mjs.map} +1 -1
- package/dist/engage/index.js +13 -13
- package/dist/engage/index.mjs +7 -7
- package/dist/fleet/contract.d.ts +1 -1
- package/dist/fleet/contract.js +12 -12
- package/dist/fleet/contract.mjs +1 -1
- package/dist/fleet/index.js +20 -20
- package/dist/fleet/index.mjs +5 -5
- package/dist/forms/index.js +16 -16
- package/dist/forms/index.mjs +9 -9
- package/dist/forms/server.js +10 -10
- package/dist/forms/server.mjs +8 -8
- package/dist/forms/static.js +7 -7
- package/dist/forms/static.mjs +6 -6
- package/dist/images/index.js +11 -11
- package/dist/images/index.mjs +4 -4
- package/dist/index.d.ts +2 -2
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +70 -70
- package/dist/index.mjs +12 -12
- package/dist/layout/client.js +10 -10
- package/dist/layout/client.mjs +9 -9
- package/dist/layout/index.js +12 -12
- package/dist/layout/index.mjs +10 -10
- package/dist/llms/SpeakableSchema.d.ts +1 -1
- package/dist/llms/SpeakableSchema.d.ts.map +1 -1
- package/dist/llms/client.js +15 -15
- package/dist/llms/client.mjs +1 -1
- package/dist/llms/generateLLMsTxt.d.ts.map +1 -1
- package/dist/llms/index.js +32 -31
- package/dist/llms/index.js.map +1 -1
- package/dist/llms/index.mjs +8 -7
- package/dist/llms/index.mjs.map +1 -1
- package/dist/llms/types.d.ts +7 -0
- package/dist/llms/types.d.ts.map +1 -1
- package/dist/maps/index.js +5 -5
- package/dist/maps/index.mjs +3 -3
- package/dist/og/index.js +7 -7
- package/dist/og/index.mjs +2 -2
- package/dist/og/route.d.ts +6 -6
- package/dist/og/route.js.map +1 -1
- package/dist/og/route.mjs.map +1 -1
- package/dist/og/wiring.d.ts +4 -4
- package/dist/og/wiring.d.ts.map +1 -1
- package/dist/proxy/index.js +5 -5
- package/dist/proxy/index.mjs +3 -3
- package/dist/redirects/index.js +10 -10
- package/dist/redirects/index.mjs +3 -3
- package/dist/redirects/not-found.js +7 -7
- package/dist/redirects/not-found.mjs +3 -3
- package/dist/robots/indexnow.d.ts +17 -0
- package/dist/robots/indexnow.d.ts.map +1 -0
- package/dist/robots/indexnow.js +39 -0
- package/dist/robots/indexnow.js.map +1 -0
- package/dist/robots/indexnow.mjs +34 -0
- package/dist/robots/indexnow.mjs.map +1 -0
- package/dist/search/contract.d.ts +1 -1
- package/dist/search/contract.js +3 -3
- package/dist/search/contract.mjs +1 -1
- package/dist/search/index.js +7 -7
- package/dist/search/index.mjs +5 -5
- package/dist/seo/client.js +6 -6
- package/dist/seo/client.mjs +5 -5
- package/dist/seo/index.js +47 -47
- package/dist/seo/index.js.map +1 -1
- package/dist/seo/index.mjs +12 -12
- package/dist/seo/index.mjs.map +1 -1
- package/dist/seo/register-sitemap-cli.js +12 -12
- package/dist/seo/register-sitemap-cli.mjs +5 -5
- package/dist/seo/server.js +21 -21
- package/dist/seo/server.mjs +5 -5
- package/dist/server/index.js +3 -3
- package/dist/server/index.mjs +2 -2
- package/dist/{server-api-A2EFCTZX.mjs → server-api-7F5P6CSH.mjs} +6 -6
- package/dist/{server-api-A2EFCTZX.mjs.map → server-api-7F5P6CSH.mjs.map} +1 -1
- package/dist/{server-api-IWTZ7C3O.js → server-api-OC5JNK6R.js} +24 -24
- package/dist/{server-api-IWTZ7C3O.js.map → server-api-OC5JNK6R.js.map} +1 -1
- package/dist/shared/build-entries.d.ts +9 -7
- package/dist/shared/build-entries.d.ts.map +1 -1
- package/dist/shared/version.d.ts +1 -1
- package/dist/signal/index.js +11 -11
- package/dist/signal/index.mjs +2 -2
- package/dist/sitemap/discover.d.ts +1 -1
- package/dist/sitemap/index.d.ts +7 -1
- package/dist/sitemap/index.d.ts.map +1 -1
- package/dist/sitemap/index.js +47 -30
- package/dist/sitemap/index.js.map +1 -1
- package/dist/sitemap/index.mjs +26 -9
- package/dist/sitemap/index.mjs.map +1 -1
- package/dist/sitemap/shared.d.ts +1 -1
- package/dist/sitemap/shared.d.ts.map +1 -1
- package/dist/sites/site-param.d.ts +2 -2
- package/dist/sync/index.js +17 -17
- package/dist/sync/index.mjs +4 -4
- package/dist/types.d.ts +1 -1
- package/dist/types.d.ts.map +1 -1
- package/dist/writeLLMsTxt-ATADOUVZ.js +20 -0
- package/dist/writeLLMsTxt-QJFXBHZF.mjs +11 -0
- package/package.json +20 -14
- package/dist/BlogPostFaqSection-P3GXVQPA.mjs +0 -11
- package/dist/BlogPostFaqSection-P3GXVQPA.mjs.map +0 -1
- package/dist/BlogPostFaqSection-YG5J4B4U.js +0 -13
- package/dist/BlogPostFaqSection-YG5J4B4U.js.map +0 -1
- package/dist/BlogViewTracker-Q7Y4MN4B.mjs.map +0 -1
- package/dist/BlogViewTracker-S3CSRBIZ.js.map +0 -1
- package/dist/ChatWidget-76R7NOWD.js +0 -24
- package/dist/ChatWidget-G3KOUDX5.mjs +0 -15
- package/dist/EngageWidget-HD4F2ZVE.js +0 -21
- package/dist/EngageWidget-UJ47PQFG.mjs +0 -12
- package/dist/ManagedForm-4ZGU4R3G.js +0 -25
- package/dist/ManagedForm-Z7QE4KYI.mjs +0 -16
- package/dist/ManagedNewsletterForm-22EPZB7Z.js.map +0 -1
- package/dist/ManagedNewsletterForm-4TVO2VL4.mjs.map +0 -1
- package/dist/SitemapSync-GF4OKN4Z.js +0 -18
- package/dist/SitemapSync-WIUEYOBS.mjs +0 -9
- package/dist/blog/AuthorCard.d.ts.map +0 -1
- package/dist/blog/AuthorPage.d.ts.map +0 -1
- package/dist/blog/BlogFAQ.d.ts.map +0 -1
- package/dist/blog/BlogLayout.d.ts.map +0 -1
- package/dist/blog/BlogList.d.ts.map +0 -1
- package/dist/blog/BlogPost.d.ts.map +0 -1
- package/dist/blog/BlogPostFaqSection.d.ts +0 -3
- package/dist/blog/BlogPostFaqSection.d.ts.map +0 -1
- package/dist/blog/BlogSidebar.d.ts.map +0 -1
- package/dist/blog/BlogViewTracker.d.ts.map +0 -1
- package/dist/blog/ClusterLandingPage.d.ts.map +0 -1
- package/dist/blog/ClusterNavigation.d.ts.map +0 -1
- package/dist/blog/ManagedNewsletterForm.d.ts.map +0 -1
- package/dist/blog/NewsletterShell.d.ts.map +0 -1
- package/dist/blog/NewsletterWidget.d.ts.map +0 -1
- package/dist/blog/RelatedPosts.d.ts.map +0 -1
- package/dist/blog/ServiceCallout.d.ts.map +0 -1
- package/dist/blog/TableOfContents.d.ts.map +0 -1
- package/dist/blog/artwork.d.ts +0 -14
- package/dist/blog/artwork.d.ts.map +0 -1
- package/dist/blog/author-schema.d.ts.map +0 -1
- package/dist/blog/author-social.d.ts.map +0 -1
- package/dist/blog/blog-styles.d.ts.map +0 -1
- package/dist/blog/blog-tables.d.ts.map +0 -1
- package/dist/blog/excerpt.d.ts.map +0 -1
- package/dist/blog/index.d.ts.map +0 -1
- package/dist/blog/index.js.map +0 -1
- package/dist/blog/index.mjs.map +0 -1
- package/dist/blog/processBlogHtml.d.ts.map +0 -1
- package/dist/blog/public-reads.d.ts +0 -27
- package/dist/blog/public-reads.d.ts.map +0 -1
- package/dist/blog/reading-time.d.ts.map +0 -1
- package/dist/blog/routes.d.ts.map +0 -1
- package/dist/blog/server-core.d.ts.map +0 -1
- package/dist/blog/server-ui.d.ts +0 -29
- package/dist/blog/server-ui.d.ts.map +0 -1
- package/dist/blog/server-ui.js +0 -267
- package/dist/blog/server-ui.js.map +0 -1
- package/dist/blog/server-ui.mjs +0 -203
- package/dist/blog/server-ui.mjs.map +0 -1
- package/dist/blog/server.d.ts.map +0 -1
- package/dist/blog/server.js +0 -207
- package/dist/blog/server.mjs +0 -10
- package/dist/blog/types.d.ts.map +0 -1
- package/dist/blog/widget-styles.d.ts +0 -9
- package/dist/blog/widget-styles.d.ts.map +0 -1
- package/dist/blog-styles-6EY3BS5Y.js.map +0 -1
- package/dist/blog-styles-7AKRUMV7.mjs.map +0 -1
- package/dist/blog-tables-DWDEWA3S.js +0 -17
- package/dist/blog-tables-DWDEWA3S.js.map +0 -1
- package/dist/blog-tables-QGIHOESZ.mjs +0 -4
- package/dist/blog-tables-QGIHOESZ.mjs.map +0 -1
- package/dist/chunk-3EY5E35M.mjs.map +0 -1
- package/dist/chunk-4LYW6PMU.mjs.map +0 -1
- package/dist/chunk-4TLFZ6NR.mjs.map +0 -1
- package/dist/chunk-5B4J3IBX.mjs +0 -164
- package/dist/chunk-5B4J3IBX.mjs.map +0 -1
- package/dist/chunk-5FETEH3Y.mjs +0 -6
- package/dist/chunk-75A4KY4X.mjs.map +0 -1
- package/dist/chunk-7R6H3GQ4.js +0 -8
- package/dist/chunk-7TC3GRXQ.js.map +0 -1
- package/dist/chunk-AJBOEV4I.mjs.map +0 -1
- package/dist/chunk-AK6JZ3OE.mjs.map +0 -1
- package/dist/chunk-FHPW7XVH.js +0 -175
- package/dist/chunk-FHPW7XVH.js.map +0 -1
- package/dist/chunk-G2WC3CXW.js.map +0 -1
- package/dist/chunk-GHECYDSZ.mjs.map +0 -1
- package/dist/chunk-GQF6QAQS.js.map +0 -1
- package/dist/chunk-H5NBFNND.js.map +0 -1
- package/dist/chunk-HX6ZG3PP.js.map +0 -1
- package/dist/chunk-JLVCWC6A.mjs.map +0 -1
- package/dist/chunk-K4TCEAUX.js.map +0 -1
- package/dist/chunk-LMEUYRRR.js.map +0 -1
- package/dist/chunk-MWKI6ZIS.mjs.map +0 -1
- package/dist/chunk-O237KKCX.mjs.map +0 -1
- package/dist/chunk-Q2NBD54V.js.map +0 -1
- package/dist/chunk-R7GHP3FY.js.map +0 -1
- package/dist/chunk-W2U5SLMY.js.map +0 -1
- package/dist/chunk-XEB77DQS.js.map +0 -1
- package/dist/chunk-Y5QZPUL3.mjs.map +0 -1
- package/dist/chunk-YFX3Q56O.mjs.map +0 -1
- package/dist/chunk-YN7QHLWF.js.map +0 -1
- package/dist/chunk-YQTE32QK.js.map +0 -1
- package/dist/chunk-ZPLN537Q.mjs.map +0 -1
- package/dist/chunk-ZVI7MBVF.mjs.map +0 -1
- package/dist/discover-CYXYKHZ2.mjs +0 -4
- package/dist/discover-NGEPXZOD.js +0 -21
- package/dist/writeLLMsTxt-CQ7A4AAL.js +0 -19
- package/dist/writeLLMsTxt-NX5MSPYX.mjs +0 -10
- /package/dist/{blog → articles}/server.js.map +0 -0
- /package/dist/{blog → articles}/server.mjs.map +0 -0
package/dist/cli/index.js
CHANGED
|
@@ -3,12 +3,12 @@
|
|
|
3
3
|
|
|
4
4
|
var chunkJS75ORH7_js = require('../chunk-JS75ORH7.js');
|
|
5
5
|
var chunkI7AZC5ZQ_js = require('../chunk-I7AZC5ZQ.js');
|
|
6
|
-
var
|
|
6
|
+
var chunkRLUNEEGM_js = require('../chunk-RLUNEEGM.js');
|
|
7
7
|
var chunkCUNZAD46_js = require('../chunk-CUNZAD46.js');
|
|
8
8
|
var chunkNN2YE5WT_js = require('../chunk-NN2YE5WT.js');
|
|
9
|
-
var
|
|
10
|
-
var
|
|
11
|
-
var
|
|
9
|
+
var chunkY2CP5J6Q_js = require('../chunk-Y2CP5J6Q.js');
|
|
10
|
+
var chunkJONWE26J_js = require('../chunk-JONWE26J.js');
|
|
11
|
+
var chunkEL74YDNX_js = require('../chunk-EL74YDNX.js');
|
|
12
12
|
var chunkSNAQBZPT_js = require('../chunk-SNAQBZPT.js');
|
|
13
13
|
var events = require('events');
|
|
14
14
|
var childProcess = require('child_process');
|
|
@@ -13545,7 +13545,7 @@ function buildEnvelope(input, nowMs = Date.now()) {
|
|
|
13545
13545
|
ok: exitCode === 0 /* OK */,
|
|
13546
13546
|
command,
|
|
13547
13547
|
schemaVersion: 1,
|
|
13548
|
-
siteKitVersion:
|
|
13548
|
+
siteKitVersion: chunkEL74YDNX_js.SITE_KIT_VERSION,
|
|
13549
13549
|
exitCode,
|
|
13550
13550
|
status: statusForCode(exitCode),
|
|
13551
13551
|
summary,
|
|
@@ -22569,7 +22569,7 @@ async function generateLayout() {
|
|
|
22569
22569
|
await fs3__default.default.writeFile(layoutPath, newContent, "utf-8");
|
|
22570
22570
|
}
|
|
22571
22571
|
async function findLayoutFile() {
|
|
22572
|
-
return
|
|
22572
|
+
return chunkY2CP5J6Q_js.findRootLayout(process.cwd());
|
|
22573
22573
|
}
|
|
22574
22574
|
var isDockerCached;
|
|
22575
22575
|
function hasDockerEnv() {
|
|
@@ -26596,12 +26596,12 @@ function findPageCards(cwd) {
|
|
|
26596
26596
|
else if (CARD_FILE.test(entry.name)) found.push(full);
|
|
26597
26597
|
}
|
|
26598
26598
|
};
|
|
26599
|
-
for (const rel of
|
|
26599
|
+
for (const rel of chunkY2CP5J6Q_js.NEXT_APP_DIRS) walk(path12__default.default.join(cwd, rel));
|
|
26600
26600
|
return found;
|
|
26601
26601
|
}
|
|
26602
26602
|
function findPageFiles(cwd) {
|
|
26603
26603
|
const found = [];
|
|
26604
|
-
const pageFile = new RegExp(`^page\\.(${
|
|
26604
|
+
const pageFile = new RegExp(`^page\\.(${chunkY2CP5J6Q_js.NEXT_SOURCE_EXTENSIONS.join("|")})$`);
|
|
26605
26605
|
const walk = (dir) => {
|
|
26606
26606
|
let entries;
|
|
26607
26607
|
try {
|
|
@@ -26616,11 +26616,11 @@ function findPageFiles(cwd) {
|
|
|
26616
26616
|
else if (pageFile.test(entry.name)) found.push(full);
|
|
26617
26617
|
}
|
|
26618
26618
|
};
|
|
26619
|
-
for (const rel of
|
|
26619
|
+
for (const rel of chunkY2CP5J6Q_js.NEXT_APP_DIRS) walk(path12__default.default.join(cwd, rel));
|
|
26620
26620
|
return found;
|
|
26621
26621
|
}
|
|
26622
26622
|
function routeOf(cwd, dir) {
|
|
26623
|
-
const appRoot =
|
|
26623
|
+
const appRoot = chunkY2CP5J6Q_js.NEXT_APP_DIRS.map((rel2) => path12__default.default.join(cwd, rel2)).find((root) => dir === root || dir.startsWith(root + path12__default.default.sep));
|
|
26624
26624
|
const rel = appRoot ? path12__default.default.relative(appRoot, dir) : dir;
|
|
26625
26625
|
const segments = rel.split(path12__default.default.sep).filter((s) => s && !(s.startsWith("(") && s.endsWith(")"))).map((s) => s.startsWith("[") && s.endsWith("]") ? "*" : s);
|
|
26626
26626
|
return `/${segments.join("/")}`;
|
|
@@ -26629,7 +26629,7 @@ function readCodeCards(cwd, pageCards) {
|
|
|
26629
26629
|
const code = pageCards.filter((f) => /^opengraph-image\.(tsx|ts|jsx|js)$/.test(path12__default.default.basename(f)));
|
|
26630
26630
|
return code.map((file) => {
|
|
26631
26631
|
const dir = path12__default.default.dirname(file);
|
|
26632
|
-
const page =
|
|
26632
|
+
const page = chunkY2CP5J6Q_js.findConventionFile(dir, "page");
|
|
26633
26633
|
const source = page ? readSourceGraph([page], { maxDepth: 2, maxFiles: 40 }).map((f) => f.source).join("\n") : "";
|
|
26634
26634
|
const pageOwn = page ? readSourceGraph([page], { maxDepth: 0 })[0]?.source ?? "" : "";
|
|
26635
26635
|
return {
|
|
@@ -26638,12 +26638,12 @@ function readCodeCards(cwd, pageCards) {
|
|
|
26638
26638
|
declaresUrl: /\bcodeCardImage\s*\(/.test(source),
|
|
26639
26639
|
// A page that deletes the key itself (the pre-`images: false` workaround)
|
|
26640
26640
|
// is fine too.
|
|
26641
|
-
|
|
26641
|
+
articleDeclaresImages: /\bgenerateArticleMetadata\s*\(/.test(pageOwn) && !/\bimages\s*:\s*false\b/.test(pageOwn) && !/\bdelete\s+[\w.]+\.images\b/.test(pageOwn)
|
|
26642
26642
|
};
|
|
26643
26643
|
});
|
|
26644
26644
|
}
|
|
26645
26645
|
function readTrailingSlash(cwd) {
|
|
26646
|
-
const rel =
|
|
26646
|
+
const rel = chunkY2CP5J6Q_js.findNextConfig(cwd);
|
|
26647
26647
|
if (!rel) return false;
|
|
26648
26648
|
try {
|
|
26649
26649
|
return /\btrailingSlash\s*:\s*true\b/.test(fs20__namespace.default.readFileSync(path12__default.default.join(cwd, rel), "utf-8"));
|
|
@@ -26655,7 +26655,7 @@ function readOgWiring(cwd, known = {}) {
|
|
|
26655
26655
|
const siteCard = ["public/og.png", "public/og.jpg", "public/opengraph.png"].some(
|
|
26656
26656
|
(rel) => safeExists(path12__default.default.join(cwd, rel))
|
|
26657
26657
|
);
|
|
26658
|
-
const layoutPath =
|
|
26658
|
+
const layoutPath = chunkY2CP5J6Q_js.findRootLayout(cwd);
|
|
26659
26659
|
let layout = "";
|
|
26660
26660
|
if (layoutPath) {
|
|
26661
26661
|
try {
|
|
@@ -26723,10 +26723,10 @@ function judgeOgWiring(facts) {
|
|
|
26723
26723
|
});
|
|
26724
26724
|
}
|
|
26725
26725
|
for (const card of facts.codeCards ?? []) {
|
|
26726
|
-
if (card.
|
|
26726
|
+
if (card.articleDeclaresImages) {
|
|
26727
26727
|
problems.push({
|
|
26728
|
-
message: `${card.route} has its own card (${card.file}), but its page's
|
|
26729
|
-
fix: "Pass images: false to
|
|
26728
|
+
message: `${card.route} has its own card (${card.file}), but its page's generateArticleMetadata declares the featured image, which beats the card`,
|
|
26729
|
+
fix: "Pass images: false to generateArticleMetadata in that page."
|
|
26730
26730
|
});
|
|
26731
26731
|
}
|
|
26732
26732
|
if (facts.trailingSlash && !card.declaresUrl) {
|
|
@@ -26844,7 +26844,7 @@ async function checkPackageInstalled(cwd) {
|
|
|
26844
26844
|
};
|
|
26845
26845
|
}
|
|
26846
26846
|
async function checkSiteKitLayout(cwd) {
|
|
26847
|
-
const layoutPath =
|
|
26847
|
+
const layoutPath = chunkY2CP5J6Q_js.findRootLayout(cwd);
|
|
26848
26848
|
if (!layoutPath) {
|
|
26849
26849
|
return {
|
|
26850
26850
|
id: "layout.sitekit",
|
|
@@ -26888,7 +26888,7 @@ async function checkSiteKitLayout(cwd) {
|
|
|
26888
26888
|
};
|
|
26889
26889
|
}
|
|
26890
26890
|
async function checkSitemap(cwd) {
|
|
26891
|
-
const sitemapRel =
|
|
26891
|
+
const sitemapRel = chunkY2CP5J6Q_js.findSitemapRoute(cwd);
|
|
26892
26892
|
if (!sitemapRel) {
|
|
26893
26893
|
return {
|
|
26894
26894
|
id: "sitemap.managed",
|
|
@@ -26971,12 +26971,12 @@ function locPath(loc) {
|
|
|
26971
26971
|
async function checkSitemapTrailingSlash(cwd) {
|
|
26972
26972
|
const id = "sitemap.trailing-slash";
|
|
26973
26973
|
const title = "Sitemap trailing slash";
|
|
26974
|
-
const configRel =
|
|
26974
|
+
const configRel = chunkY2CP5J6Q_js.findNextConfig(cwd);
|
|
26975
26975
|
const config2 = configRel ? await readFileOrNull(path12__default.default.join(cwd, configRel)) || "" : "";
|
|
26976
26976
|
if (!TRAILING_SLASH_ON.test(config2)) {
|
|
26977
26977
|
return { id, title, level: "ok", message: "next.config leaves trailingSlash off" };
|
|
26978
26978
|
}
|
|
26979
|
-
const sitemapRel =
|
|
26979
|
+
const sitemapRel = chunkY2CP5J6Q_js.findSitemapRoute(cwd);
|
|
26980
26980
|
const source = sitemapRel ? await readFileOrNull(path12__default.default.join(cwd, sitemapRel)) || "" : "";
|
|
26981
26981
|
const forcesOff = /\btrailingSlash\s*:\s*false\b/.test(source);
|
|
26982
26982
|
const removeForcedOff = `Remove trailingSlash: false from ${sitemapRel}. createSitemap follows next.config.`;
|
|
@@ -26985,7 +26985,7 @@ async function checkSitemapTrailingSlash(cwd) {
|
|
|
26985
26985
|
const locs = built.flatMap((xml) => [...xml.matchAll(/<loc>\s*([^<\s]+)\s*<\/loc>/g)].map((m) => m[1]));
|
|
26986
26986
|
const unslashed = locs.filter((loc) => {
|
|
26987
26987
|
const p = locPath(loc);
|
|
26988
|
-
return
|
|
26988
|
+
return chunkJONWE26J_js.applyTrailingSlash(p, true) !== p;
|
|
26989
26989
|
});
|
|
26990
26990
|
if (unslashed.length === 0) {
|
|
26991
26991
|
return { id, title, level: "ok", message: `All ${locs.length} URLs in the built sitemap match trailingSlash: true` };
|
|
@@ -27361,7 +27361,7 @@ async function checkSsrRenderFromBuild(cwd) {
|
|
|
27361
27361
|
}
|
|
27362
27362
|
async function checkNetlifyMiddleware(cwd) {
|
|
27363
27363
|
const runtimeRe = /runtime\s*[:=]\s*['"](nodejs|edge)['"]/;
|
|
27364
|
-
for (const rel of
|
|
27364
|
+
for (const rel of chunkY2CP5J6Q_js.NEXT_PROXY_FILES) {
|
|
27365
27365
|
const content = await readFileOrNull(path12__default.default.join(cwd, rel));
|
|
27366
27366
|
if (content === null) continue;
|
|
27367
27367
|
if (runtimeRe.test(content)) {
|
|
@@ -27377,7 +27377,7 @@ async function checkNetlifyMiddleware(cwd) {
|
|
|
27377
27377
|
}
|
|
27378
27378
|
return { id: "middleware.netlify", title: "Proxy / middleware", level: "ok", message: `${rel} present` };
|
|
27379
27379
|
}
|
|
27380
|
-
for (const rel of
|
|
27380
|
+
for (const rel of chunkY2CP5J6Q_js.NEXT_MIDDLEWARE_FILES) {
|
|
27381
27381
|
const content = await readFileOrNull(path12__default.default.join(cwd, rel));
|
|
27382
27382
|
if (content === null) continue;
|
|
27383
27383
|
if (/runtime\s*[:=]\s*['"]nodejs['"]/.test(content)) {
|
|
@@ -27541,9 +27541,9 @@ async function resolveRouteCopy(paths) {
|
|
|
27541
27541
|
}
|
|
27542
27542
|
async function readManagedOgImages(cwd) {
|
|
27543
27543
|
if (!process.env.SONOR_API_KEY) return void 0;
|
|
27544
|
-
const appDir =
|
|
27544
|
+
const appDir = chunkY2CP5J6Q_js.findAppDirForDiscovery(cwd);
|
|
27545
27545
|
if (!appDir) return void 0;
|
|
27546
|
-
const routes = [...new Set(
|
|
27546
|
+
const routes = [...new Set(chunkY2CP5J6Q_js.discoverNextJsRoutes(appDir).map((r) => r.path))];
|
|
27547
27547
|
const copy = await resolveRouteCopy(routes);
|
|
27548
27548
|
return copy.filter((r) => r.managedOgImage).map((r) => r.path);
|
|
27549
27549
|
}
|
|
@@ -27701,7 +27701,7 @@ async function renderCard(config2, outPath, cwd, chrome, tmpSuffix) {
|
|
|
27701
27701
|
const tmpHtml = path12__default.default.join(cwd, `.sonor-og-${tmpSuffix}.html`);
|
|
27702
27702
|
try {
|
|
27703
27703
|
await fs3__default.default.mkdir(path12__default.default.dirname(outPath), { recursive: true });
|
|
27704
|
-
await fs3__default.default.writeFile(tmpHtml, inlinePublicPaths(
|
|
27704
|
+
await fs3__default.default.writeFile(tmpHtml, inlinePublicPaths(chunkRLUNEEGM_js.buildOgHtml(config2), cwd));
|
|
27705
27705
|
const { stdout } = await execFileAsync5(
|
|
27706
27706
|
chrome,
|
|
27707
27707
|
[
|
|
@@ -27746,7 +27746,7 @@ async function compressCard(pngPath, cwd) {
|
|
|
27746
27746
|
}
|
|
27747
27747
|
}
|
|
27748
27748
|
function codeOgImageFile(dir) {
|
|
27749
|
-
return
|
|
27749
|
+
return chunkY2CP5J6Q_js.findConventionFile(dir, "opengraph-image") ?? chunkY2CP5J6Q_js.findConventionFile(path12__default.default.join(dir, "opengraph-image"), "route");
|
|
27750
27750
|
}
|
|
27751
27751
|
function discoverDynamicSegments(appDir) {
|
|
27752
27752
|
const found = [];
|
|
@@ -27759,12 +27759,12 @@ function discoverDynamicSegments(appDir) {
|
|
|
27759
27759
|
const isGroup = entry.name.startsWith("(") && entry.name.endsWith(")");
|
|
27760
27760
|
const isDynamic = entry.name.startsWith("[") && entry.name.endsWith("]");
|
|
27761
27761
|
const nextUrl = isGroup || isDynamic ? urlSegments : [...urlSegments, entry.name];
|
|
27762
|
-
const nextPattern = isGroup ? pattern : [...pattern, isDynamic ?
|
|
27762
|
+
const nextPattern = isGroup ? pattern : [...pattern, isDynamic ? chunkRLUNEEGM_js.DYNAMIC : entry.name];
|
|
27763
27763
|
if (isDynamic) {
|
|
27764
|
-
if (
|
|
27764
|
+
if (chunkY2CP5J6Q_js.hasPageFile(full)) {
|
|
27765
27765
|
found.push({ dir: full, path: `/${nextPattern.join("/")}`, parent: `/${urlSegments.join("/")}` });
|
|
27766
27766
|
}
|
|
27767
|
-
} else if (!isGroup && nextPattern.includes(
|
|
27767
|
+
} else if (!isGroup && nextPattern.includes(chunkRLUNEEGM_js.DYNAMIC) && chunkY2CP5J6Q_js.hasPageFile(full)) {
|
|
27768
27768
|
found.push({ dir: full, path: `/${nextPattern.join("/")}`, parent: null });
|
|
27769
27769
|
}
|
|
27770
27770
|
walk(full, nextUrl, nextPattern);
|
|
@@ -27835,11 +27835,11 @@ async function runOg(options) {
|
|
|
27835
27835
|
};
|
|
27836
27836
|
}
|
|
27837
27837
|
if (options.pages !== false) {
|
|
27838
|
-
const appDir =
|
|
27838
|
+
const appDir = chunkY2CP5J6Q_js.findAppDirForDiscovery(cwd);
|
|
27839
27839
|
if (!appDir) {
|
|
27840
27840
|
console.log(source_default.yellow(" ! No app/ directory found \u2014 skipped per-page cards."));
|
|
27841
27841
|
} else {
|
|
27842
|
-
const routes = [...new Set(
|
|
27842
|
+
const routes = [...new Set(chunkY2CP5J6Q_js.discoverNextJsRoutes(appDir).map((r) => r.path))];
|
|
27843
27843
|
if (!routes.length) {
|
|
27844
27844
|
console.log(source_default.yellow(" ! No static routes discovered \u2014 skipped per-page cards."));
|
|
27845
27845
|
} else {
|
|
@@ -27865,11 +27865,11 @@ async function runOg(options) {
|
|
|
27865
27865
|
dir: seg.dir
|
|
27866
27866
|
}));
|
|
27867
27867
|
const targets = [...withCopy, ...dynamic];
|
|
27868
|
-
const paramKeys =
|
|
27868
|
+
const paramKeys = chunkRLUNEEGM_js.paramCardKeys(config2.cards, targets.map((t) => t.path));
|
|
27869
27869
|
const paramRoutes = paramKeys.length ? await resolveRouteCopy(paramKeys.map((k2) => k2.path)) : [];
|
|
27870
|
-
const strayKeys =
|
|
27870
|
+
const strayKeys = chunkRLUNEEGM_js.unmatchedCardKeys(config2.cards, targets.map((t) => t.path));
|
|
27871
27871
|
if (strayKeys.length) {
|
|
27872
|
-
const patterns = targets.filter((t) => t.path.includes(
|
|
27872
|
+
const patterns = targets.filter((t) => t.path.includes(chunkRLUNEEGM_js.DYNAMIC)).map((t) => t.path);
|
|
27873
27873
|
console.log(
|
|
27874
27874
|
source_default.yellow(
|
|
27875
27875
|
` ! ${strayKeys.length} \`cards\` key${strayKeys.length === 1 ? "" : "s"} in og.config.ts matched no route: ${strayKeys.join(", ")}`
|
|
@@ -27899,7 +27899,7 @@ async function runOg(options) {
|
|
|
27899
27899
|
checks.push({ id: "og.code-card", title: route.path, level: "ok", message: `Code-based card kept: ${file}` });
|
|
27900
27900
|
}
|
|
27901
27901
|
const reports = await pooled(toRender, RENDER_CONCURRENCY, async (route, i) => {
|
|
27902
|
-
const pageConfig =
|
|
27902
|
+
const pageConfig = chunkRLUNEEGM_js.pageCardConfig(config2, route, brand);
|
|
27903
27903
|
const dir = route.dir;
|
|
27904
27904
|
for (const ext2 of ["png", "jpg", "jpeg"]) {
|
|
27905
27905
|
await fs3__default.default.rm(path12__default.default.join(dir, `opengraph-image.${ext2}`), { force: true });
|
|
@@ -27913,15 +27913,15 @@ async function runOg(options) {
|
|
|
27913
27913
|
clean = reportCard(`${route.path} ${source_default.gray(path12__default.default.relative(cwd, file))}`, report) && clean;
|
|
27914
27914
|
checks.push(cardCheck(route.path, path12__default.default.relative(cwd, file), report));
|
|
27915
27915
|
}
|
|
27916
|
-
const paramDir = path12__default.default.join(cwd, "public",
|
|
27916
|
+
const paramDir = path12__default.default.join(cwd, "public", chunkRLUNEEGM_js.PARAM_CARD_DIR);
|
|
27917
27917
|
await fs3__default.default.rm(paramDir, { recursive: true, force: true });
|
|
27918
27918
|
let paramReports = [];
|
|
27919
27919
|
if (paramRoutes.length) {
|
|
27920
27920
|
console.log("");
|
|
27921
|
-
console.log(source_default.bold(" Per-URL cards") + source_default.gray(` public/${
|
|
27921
|
+
console.log(source_default.bold(" Per-URL cards") + source_default.gray(` public/${chunkRLUNEEGM_js.PARAM_CARD_DIR}/, declare with paramCardImage()`));
|
|
27922
27922
|
paramReports = await pooled(paramRoutes, RENDER_CONCURRENCY, async (route, i) => {
|
|
27923
|
-
const pageConfig =
|
|
27924
|
-
const jpg = path12__default.default.join(cwd, "public",
|
|
27923
|
+
const pageConfig = chunkRLUNEEGM_js.pageCardConfig(config2, route, brand);
|
|
27924
|
+
const jpg = path12__default.default.join(cwd, "public", chunkRLUNEEGM_js.paramCardUrl(route.path));
|
|
27925
27925
|
const png = jpg.replace(/\.jpg$/, ".png");
|
|
27926
27926
|
const report = await renderCard(pageConfig, png, cwd, chrome, `param-${i}`);
|
|
27927
27927
|
const file = await compressCard(png, cwd);
|
|
@@ -31580,7 +31580,7 @@ async function syncCommand2(options) {
|
|
|
31580
31580
|
process.exit(1);
|
|
31581
31581
|
}
|
|
31582
31582
|
const syncPages = options.pages !== false;
|
|
31583
|
-
const
|
|
31583
|
+
const syncArticles = options.articles === true;
|
|
31584
31584
|
const syncSchemas = options.schemas === true;
|
|
31585
31585
|
if (options.dryRun) {
|
|
31586
31586
|
console.log(source_default.yellow(" Running in dry-run mode - no changes will be made"));
|
|
@@ -31589,8 +31589,8 @@ async function syncCommand2(options) {
|
|
|
31589
31589
|
if (syncPages) {
|
|
31590
31590
|
await syncPagesToPortal(apiUrl, apiKey, options.dryRun);
|
|
31591
31591
|
}
|
|
31592
|
-
if (
|
|
31593
|
-
await
|
|
31592
|
+
if (syncArticles) {
|
|
31593
|
+
await syncArticlesToSonor(apiUrl, apiKey, options.dryRun);
|
|
31594
31594
|
}
|
|
31595
31595
|
if (syncSchemas) {
|
|
31596
31596
|
await syncSchemasToPortal(apiUrl, apiKey, options.dryRun);
|
|
@@ -31599,7 +31599,7 @@ async function syncCommand2(options) {
|
|
|
31599
31599
|
}
|
|
31600
31600
|
async function syncPagesToPortal(apiUrl, apiKey, dryRun) {
|
|
31601
31601
|
const spinner = ora("Discovering pages...").start();
|
|
31602
|
-
const appDir =
|
|
31602
|
+
const appDir = chunkY2CP5J6Q_js.findAppDirForDiscovery();
|
|
31603
31603
|
if (!appDir) {
|
|
31604
31604
|
spinner.fail("Could not find app directory");
|
|
31605
31605
|
return;
|
|
@@ -31831,17 +31831,17 @@ function enrichPagesWithContent(pages) {
|
|
|
31831
31831
|
}
|
|
31832
31832
|
return enriched;
|
|
31833
31833
|
}
|
|
31834
|
-
var
|
|
31835
|
-
var
|
|
31836
|
-
function
|
|
31834
|
+
var ARTICLE_DIRS = ["app/articles", "content/articles", "app/blog", "content/blog", "posts", "src/content/blog"];
|
|
31835
|
+
var ARTICLE_EXTENSIONS = [".mdx", ".md"];
|
|
31836
|
+
function findArticlesDir() {
|
|
31837
31837
|
const cwd = process.cwd();
|
|
31838
|
-
for (const dir of
|
|
31838
|
+
for (const dir of ARTICLE_DIRS) {
|
|
31839
31839
|
const full = path12__default.default.join(cwd, dir);
|
|
31840
31840
|
if (fs20.existsSync(full)) return full;
|
|
31841
31841
|
}
|
|
31842
31842
|
return null;
|
|
31843
31843
|
}
|
|
31844
|
-
async function
|
|
31844
|
+
async function discoverArticles(dir) {
|
|
31845
31845
|
const posts = [];
|
|
31846
31846
|
async function walk(currentDir) {
|
|
31847
31847
|
const entries = fs20.readdirSync(currentDir);
|
|
@@ -31852,7 +31852,7 @@ async function discoverBlogPosts(dir) {
|
|
|
31852
31852
|
await walk(fullPath);
|
|
31853
31853
|
continue;
|
|
31854
31854
|
}
|
|
31855
|
-
if (!
|
|
31855
|
+
if (!ARTICLE_EXTENSIONS.some((ext2) => entry.endsWith(ext2))) continue;
|
|
31856
31856
|
const content = await fs3__default.default.readFile(fullPath, "utf-8");
|
|
31857
31857
|
const frontmatter = extractFrontmatter(content);
|
|
31858
31858
|
const slug = entry.replace(/\.(mdx?|tsx?)$/, "");
|
|
@@ -31888,15 +31888,15 @@ function extractFrontmatter(content) {
|
|
|
31888
31888
|
}
|
|
31889
31889
|
return result;
|
|
31890
31890
|
}
|
|
31891
|
-
async function
|
|
31892
|
-
const
|
|
31893
|
-
if (!
|
|
31894
|
-
console.log(source_default.gray(
|
|
31891
|
+
async function syncArticlesToSonor(_apiUrl, _apiKey, _dryRun) {
|
|
31892
|
+
const articlesDir = findArticlesDir();
|
|
31893
|
+
if (!articlesDir) {
|
|
31894
|
+
console.log(source_default.gray(` No articles directory found (checked: ${ARTICLE_DIRS.join(", ")})`));
|
|
31895
31895
|
return;
|
|
31896
31896
|
}
|
|
31897
|
-
const spinner = ora("Discovering
|
|
31898
|
-
const posts = await
|
|
31899
|
-
spinner.succeed(`Found ${posts.length} local markdown post(s) in ${path12__default.default.relative(process.cwd(),
|
|
31897
|
+
const spinner = ora("Discovering local articles...").start();
|
|
31898
|
+
const posts = await discoverArticles(articlesDir);
|
|
31899
|
+
spinner.succeed(`Found ${posts.length} local markdown post(s) in ${path12__default.default.relative(process.cwd(), articlesDir)}`);
|
|
31900
31900
|
if (posts.length === 0) return;
|
|
31901
31901
|
for (const post of posts.slice(0, 10)) {
|
|
31902
31902
|
console.log(source_default.gray(` ${post.slug}: ${post.title || "(no title)"}`));
|
|
@@ -31905,8 +31905,8 @@ async function syncBlogToPortal(_apiUrl, _apiKey, _dryRun) {
|
|
|
31905
31905
|
console.log(source_default.gray(` ... and ${posts.length - 10} more`));
|
|
31906
31906
|
}
|
|
31907
31907
|
console.log("");
|
|
31908
|
-
console.log(source_default.yellow("
|
|
31909
|
-
console.log(source_default.yellow(" Create these
|
|
31908
|
+
console.log(source_default.yellow(" Sonor articles are managed in Broadcast; there's no local-file import path."));
|
|
31909
|
+
console.log(source_default.yellow(" Create these in Broadcast > Articles in the Sonor app; the site serves them automatically."));
|
|
31910
31910
|
}
|
|
31911
31911
|
async function discoverSchemaUsage(appDir) {
|
|
31912
31912
|
const usages = [];
|
|
@@ -31959,7 +31959,7 @@ async function discoverSchemaUsage(appDir) {
|
|
|
31959
31959
|
return usages;
|
|
31960
31960
|
}
|
|
31961
31961
|
async function syncSchemasToPortal(apiUrl, apiKey, dryRun) {
|
|
31962
|
-
const appDir =
|
|
31962
|
+
const appDir = chunkY2CP5J6Q_js.findAppDirForDiscovery();
|
|
31963
31963
|
if (!appDir) {
|
|
31964
31964
|
console.log(source_default.gray(" No app directory found"));
|
|
31965
31965
|
return;
|
|
@@ -32002,7 +32002,7 @@ async function apiRoutesCommand(options) {
|
|
|
32002
32002
|
console.log("");
|
|
32003
32003
|
console.log(source_default.bold(" Site-Kit API Routes"));
|
|
32004
32004
|
console.log("");
|
|
32005
|
-
const appDir =
|
|
32005
|
+
const appDir = chunkY2CP5J6Q_js.findAppDirForDiscovery();
|
|
32006
32006
|
if (!appDir) {
|
|
32007
32007
|
console.log(source_default.red(" \u2717 Could not find app directory"));
|
|
32008
32008
|
console.log(source_default.gray(" Make sure you are in a Next.js project with an app directory"));
|
|
@@ -32034,7 +32034,7 @@ async function apiRoutesCommand(options) {
|
|
|
32034
32034
|
console.log("");
|
|
32035
32035
|
console.log(source_default.bold(" Available endpoints:"));
|
|
32036
32036
|
console.log(source_default.gray(" GET/POST /_uptrade/api/forms/:formId/submit"));
|
|
32037
|
-
console.log(source_default.gray(" GET /_uptrade/api/
|
|
32037
|
+
console.log(source_default.gray(" GET /_uptrade/api/articles"));
|
|
32038
32038
|
console.log(source_default.gray(" GET /_uptrade/api/locations"));
|
|
32039
32039
|
console.log(source_default.gray(" GET /_uptrade/api/reviews"));
|
|
32040
32040
|
console.log(source_default.gray(" ... and more"));
|
|
@@ -32259,7 +32259,7 @@ async function scaffoldCommand(options) {
|
|
|
32259
32259
|
);
|
|
32260
32260
|
console.log("");
|
|
32261
32261
|
const cwd = process.cwd();
|
|
32262
|
-
const appDir =
|
|
32262
|
+
const appDir = chunkY2CP5J6Q_js.findAppDirForDiscovery(cwd);
|
|
32263
32263
|
if (!appDir) {
|
|
32264
32264
|
console.log(source_default.red(" \u2717 No app directory found (app/ or src/app/)"));
|
|
32265
32265
|
process.exit(1);
|
|
@@ -32602,13 +32602,13 @@ function readGraph(cwd, rel) {
|
|
|
32602
32602
|
}
|
|
32603
32603
|
var LINK_DISCOVERY_LINE = /^.*\bLink\b.*(llms[^\n]*describedby|describedby[^\n]*llms).*$/im;
|
|
32604
32604
|
function findDiscoverySource(cwd) {
|
|
32605
|
-
for (const rel of
|
|
32605
|
+
for (const rel of chunkY2CP5J6Q_js.findProxyFiles(cwd)) {
|
|
32606
32606
|
const src = readGraph(cwd, rel);
|
|
32607
32607
|
const viaFactory = /\bcreate(Proxy|Middleware)\s*\(/.test(src) && /\bllmsDiscovery\b(?!\s*:\s*false\b)/.test(src);
|
|
32608
32608
|
if (viaFactory) return `${rel} (createProxy llmsDiscovery)`;
|
|
32609
32609
|
if (src.includes("buildAiDiscoveryHeaders")) return `${rel} (buildAiDiscoveryHeaders)`;
|
|
32610
32610
|
}
|
|
32611
|
-
const nextConfig =
|
|
32611
|
+
const nextConfig = chunkY2CP5J6Q_js.findNextConfig(cwd);
|
|
32612
32612
|
if (nextConfig) {
|
|
32613
32613
|
const src = read(cwd, nextConfig);
|
|
32614
32614
|
if (/\bllmsTxtDiscoveryLink\s*:(?!\s*false\b)/.test(src)) return `${nextConfig} (llmsTxtDiscoveryLink)`;
|
|
@@ -32620,14 +32620,14 @@ function findDiscoverySource(cwd) {
|
|
|
32620
32620
|
return null;
|
|
32621
32621
|
}
|
|
32622
32622
|
function findLayoutHeadersAttempt(cwd) {
|
|
32623
|
-
const layout =
|
|
32623
|
+
const layout = chunkY2CP5J6Q_js.findRootLayout(cwd);
|
|
32624
32624
|
if (!layout) return null;
|
|
32625
32625
|
const src = read(cwd, path12__default.default.relative(cwd, layout));
|
|
32626
32626
|
return src.includes("buildAiDiscoveryHeaders") || /\bexport\s+(async\s+)?function\s+headers\b/.test(src) ? path12__default.default.relative(cwd, layout) : null;
|
|
32627
32627
|
}
|
|
32628
32628
|
function readGeoWiring(cwd) {
|
|
32629
|
-
const appDir =
|
|
32630
|
-
const sitemap =
|
|
32629
|
+
const appDir = chunkY2CP5J6Q_js.NEXT_APP_DIRS.find((rel) => exists(cwd, rel)) ?? null;
|
|
32630
|
+
const sitemap = chunkY2CP5J6Q_js.findSitemapRoute(cwd);
|
|
32631
32631
|
const sitemapSrc = sitemap ? readGraph(cwd, sitemap) : "";
|
|
32632
32632
|
const sitemapListsLlms = /\bincludeLlms(Full)?TxtInSitemap\s*:\s*true\b/.test(sitemapSrc) || /['"`/]llms(-full)?\.txt['"`]/.test(sitemapSrc);
|
|
32633
32633
|
const sitemapWritesStatic = /\bcreateSitemap\s*\(/.test(sitemapSrc);
|
|
@@ -32635,7 +32635,7 @@ function readGeoWiring(cwd) {
|
|
|
32635
32635
|
const writesLlmsFull = writesLlms && /\boptimizedLLMsFullTxt\s*:\s*true\b/.test(sitemapSrc);
|
|
32636
32636
|
const llms = LLMS_FILES.map(({ path: urlPath, handler }) => {
|
|
32637
32637
|
const file = urlPath.slice(1);
|
|
32638
|
-
const routeAbs = appDir ?
|
|
32638
|
+
const routeAbs = appDir ? chunkY2CP5J6Q_js.findConventionFile(path12__default.default.join(cwd, appDir, file), "route") : null;
|
|
32639
32639
|
const route = routeAbs ? path12__default.default.relative(cwd, routeAbs) : null;
|
|
32640
32640
|
const routeSrc = route ? readGraph(cwd, route) : "";
|
|
32641
32641
|
const publicFile = exists(cwd, path12__default.default.join("public", file));
|
|
@@ -32759,7 +32759,7 @@ async function ensureLlmsRouteFiles(appDir, dryRun) {
|
|
|
32759
32759
|
["llms.txt", LLMS_ROUTE],
|
|
32760
32760
|
["llms-full.txt", LLMS_FULL_ROUTE]
|
|
32761
32761
|
]) {
|
|
32762
|
-
if (
|
|
32762
|
+
if (chunkY2CP5J6Q_js.findConventionFile(path12__default.default.join(appDir, dir), "route")) continue;
|
|
32763
32763
|
const file = path12__default.default.join(appDir, dir, "route.ts");
|
|
32764
32764
|
await fs3__default.default.mkdir(path12__default.default.dirname(file), { recursive: true });
|
|
32765
32765
|
await fs3__default.default.writeFile(file, source, "utf-8");
|
|
@@ -32769,7 +32769,7 @@ async function ensureLlmsRouteFiles(appDir, dryRun) {
|
|
|
32769
32769
|
}
|
|
32770
32770
|
async function geoCommand(options) {
|
|
32771
32771
|
if (options.forInstall) {
|
|
32772
|
-
const appDir2 =
|
|
32772
|
+
const appDir2 = chunkY2CP5J6Q_js.findAppDirForDiscovery();
|
|
32773
32773
|
if (!appDir2) return;
|
|
32774
32774
|
const created = await ensureLlmsRouteFiles(appDir2, options.dryRun);
|
|
32775
32775
|
if (created > 0) {
|
|
@@ -32790,7 +32790,7 @@ async function geoCommand(options) {
|
|
|
32790
32790
|
)
|
|
32791
32791
|
);
|
|
32792
32792
|
console.log("");
|
|
32793
|
-
const appDir =
|
|
32793
|
+
const appDir = chunkY2CP5J6Q_js.findAppDirForDiscovery();
|
|
32794
32794
|
if (!appDir) {
|
|
32795
32795
|
console.log(source_default.red(" \u2717 No app directory (app/ or src/app/)"));
|
|
32796
32796
|
process.exit(1);
|
|
@@ -32851,7 +32851,7 @@ async function geoCommand(options) {
|
|
|
32851
32851
|
(0, import_dotenv2.config)({ path: ".env.local", quiet: true });
|
|
32852
32852
|
(0, import_dotenv2.config)({ path: ".env", quiet: true });
|
|
32853
32853
|
var program2 = new Command();
|
|
32854
|
-
program2.name("sonor-setup").description("Setup + verification toolchain for @sonordev/site-kit").version(
|
|
32854
|
+
program2.name("sonor-setup").description("Setup + verification toolchain for @sonordev/site-kit").version(chunkEL74YDNX_js.SITE_KIT_VERSION);
|
|
32855
32855
|
withAgentFlags(
|
|
32856
32856
|
program2.command("verify").description("Verify the integration actually works (health + key + SSR) \u2014 exit 0 = done").option("--url <url>", "Verify a running/deployed URL server-renders (recommended for agents)").option("--offline", "Skip the network key-validity ping").option("--strict", "Treat warnings as failures")
|
|
32857
32857
|
).action(verifyCommand);
|
|
@@ -32884,11 +32884,11 @@ withAgentFlags(
|
|
|
32884
32884
|
).action(upgradeCommand);
|
|
32885
32885
|
program2.command("scan").description("Scan codebase for forms, metadata, widgets, schemas, FAQs, analytics, images").option("-d, --dir <path>", "Directory to scan", ".").option("--forms", "Only scan for forms").option("--meta", "Only scan for metadata").option("--widgets", "Only scan for widgets").option("--schemas", "Only scan for schema markup").option("--faqs", "Only scan for FAQ sections").option("--analytics", "Only scan for analytics scripts").option("--images", "Only scan for images").option("--sitemaps", "Only scan for sitemaps").option("--strict", "Exit with code 1 on violations (for CI)").action(scanCommand);
|
|
32886
32886
|
program2.command("migrate").description("Migrate detected components into Sonor-managed equivalents (network)").option("--dry-run", "Show changes without applying").option("-f, --file <path>", "Migrate a specific file").option("--images", "Also upload and migrate images").option("--no-images", "Skip image migration entirely").action(migrateCommand);
|
|
32887
|
-
program2.command("images <subcommand>").description("Manage images: scan, upload, migrate, all (combined)").option("-d, --dir <path>", "Directory to scan", ".").option("--dry-run", "Show changes without applying").option("--folder <path>", "Target folder in Files module").option("--category <name>", "File category (website,
|
|
32887
|
+
program2.command("images <subcommand>").description("Manage images: scan, upload, migrate, all (combined)").option("-d, --dir <path>", "Directory to scan", ".").option("--dry-run", "Show changes without applying").option("--folder <path>", "Target folder in Files module").option("--category <name>", "File category (website, articles, etc.)").option("--skip-critical", "Keep hero/logo/header images local for PageSpeed (LCP)", true).option("--no-skip-critical", "Upload all images including critical ones").action(imagesCommand);
|
|
32888
32888
|
program2.command("locations <subcommand> [arg]").description("Manage location pages: template, upload, generate").option("-n, --name <name>", "Template name").option("-t, --template <name>", "Template to use").option("--type <type>", "Page type: area-index, location-hub, service-location").option("-l, --locations <cities...>", 'List of cities (e.g., "Seattle, WA")').option("--locations-file <path>", "JSON file with locations array").option("--dry-run", "Show changes without applying").option("--enhance", "Use Signal AI to enhance extracted template").action(locationsCommand);
|
|
32889
32889
|
program2.command("faqs <subcommand>").description("Sync ManagedFAQ paths to Sonor so they show in SEO Managed FAQs").option("--dry-run", "Show what would be synced without creating sections").action((subcommand, options) => faqsCommand(subcommand, options));
|
|
32890
32890
|
program2.command("setup").description("AI-powered comprehensive SEO setup (FAQs, metadata, schema)").option("--dry-run", "Preview what would be created").option("--faqs-only", "Only extract and setup FAQs").option("--schema-only", "Only generate schema markup").option("--metadata-only", "Only generate metadata").option("-v, --verbose", "Show detailed output").action(setupCommand);
|
|
32891
|
-
program2.command("sync").description("Sync local content to Sonor (pages,
|
|
32891
|
+
program2.command("sync").description("Sync local content to Sonor (pages, articles, schemas)").option("--pages", "Sync pages to SEO module").option("--articles", "List local markdown articles to recreate in Broadcast").option("--schemas", "Sync schema markup to SEO module").option("--dry-run", "Show changes without syncing").action(syncCommand2);
|
|
32892
32892
|
program2.command("api-routes").description("Generate API proxy routes").option("--dry-run", "Show changes without applying").option("--force", "Overwrite existing routes").action(apiRoutesCommand);
|
|
32893
32893
|
program2.command("scaffold").description("Scaffold the full Site-Kit stack (sitemap, robots, llms, middleware, manifest, error pages)").option("--dry-run", "Show what would be created").option("-f, --force", "Overwrite existing files").option("--minimal", "Only create sitemap, robots, llms routes").action(scaffoldCommand);
|
|
32894
32894
|
program2.command("geo").description("Check llms.txt / GEO wiring (routes, sitemap, discovery headers)").option("--dry-run", "With --ensure-routes, show actions only").option("--ensure-routes", "Create llms.txt and llms-full.txt routes if missing").option("--for-install", "Create missing llms routes only (quiet; use from app postinstall)").action(geoCommand);
|