dineway 0.1.15 → 0.1.17
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 +22 -0
- package/dist/{activity-events-B4wp7CrU.mjs → activity-events-DbqJBNaY.mjs} +1 -1
- package/dist/{allowed-origins-C1AKK9AT.mjs → allowed-origins-D85wzUp6.mjs} +1 -1
- package/dist/api/route-utils.d.mts +10 -10
- package/dist/api/route-utils.mjs +15 -15
- package/dist/api/schemas/index.d.mts +2 -2
- package/dist/api/schemas/index.mjs +4 -4
- package/dist/{api-DX6X_a82.mjs → api-CgxdfUg4.mjs} +96 -17
- package/dist/{api-tokens-D7UjLbdt.mjs → api-tokens-CMmUPFae.mjs} +1 -1
- package/dist/{apply-Bm5QgdrE.mjs → apply-CGVHi2r7.mjs} +165 -85
- package/dist/astro/index.d.mts +11 -11
- package/dist/astro/index.mjs +3 -3
- package/dist/astro/middleware/auth.d.mts +10 -10
- package/dist/astro/middleware/auth.mjs +5 -5
- package/dist/astro/middleware/redirect.mjs +6 -6
- package/dist/astro/middleware/request-context.mjs +4 -4
- package/dist/astro/middleware/setup.mjs +1 -1
- package/dist/astro/middleware.mjs +119 -77
- package/dist/astro/routes/api/admin/allowed-domains/_domain_.mjs +5 -5
- package/dist/astro/routes/api/admin/allowed-domains/index.mjs +5 -5
- package/dist/astro/routes/api/admin/api-tokens/_id_.mjs +4 -4
- package/dist/astro/routes/api/admin/api-tokens/index.mjs +6 -6
- package/dist/astro/routes/api/admin/briefing.mjs +19 -19
- package/dist/astro/routes/api/admin/bylines/_id_/index.mjs +12 -12
- package/dist/astro/routes/api/admin/bylines/index.mjs +12 -12
- package/dist/astro/routes/api/admin/comments/_id_/status.mjs +13 -13
- package/dist/astro/routes/api/admin/comments/_id_.mjs +6 -6
- package/dist/astro/routes/api/admin/comments/bulk.mjs +10 -10
- package/dist/astro/routes/api/admin/comments/counts.mjs +6 -6
- package/dist/astro/routes/api/admin/comments/index.mjs +10 -10
- package/dist/astro/routes/api/admin/context/_id_/history.mjs +26 -26
- package/dist/astro/routes/api/admin/context/_id_/index.mjs +26 -26
- package/dist/astro/routes/api/admin/context/_id_/review.mjs +30 -30
- package/dist/astro/routes/api/admin/context/_id_/supersede.mjs +30 -30
- package/dist/astro/routes/api/admin/context/diff.mjs +29 -29
- package/dist/astro/routes/api/admin/context/index.mjs +30 -30
- package/dist/astro/routes/api/admin/context/stale.mjs +29 -29
- package/dist/astro/routes/api/admin/hitl-requests/_id_/index.mjs +26 -26
- package/dist/astro/routes/api/admin/hitl-requests/_id_/resolve.mjs +29 -29
- package/dist/astro/routes/api/admin/hitl-requests/index.mjs +29 -29
- package/dist/astro/routes/api/admin/hooks/exclusive/_hookName_.mjs +27 -27
- package/dist/astro/routes/api/admin/hooks/exclusive/index.mjs +3 -3
- package/dist/astro/routes/api/admin/oauth-clients/_id_.mjs +6 -6
- package/dist/astro/routes/api/admin/oauth-clients/index.mjs +6 -6
- package/dist/astro/routes/api/admin/plugins/_id_/disable.mjs +47 -47
- package/dist/astro/routes/api/admin/plugins/_id_/enable.mjs +47 -47
- package/dist/astro/routes/api/admin/plugins/_id_/index.mjs +40 -40
- package/dist/astro/routes/api/admin/plugins/_id_/uninstall.mjs +46 -46
- package/dist/astro/routes/api/admin/plugins/_id_/update.mjs +46 -46
- package/dist/astro/routes/api/admin/plugins/index.mjs +40 -40
- package/dist/astro/routes/api/admin/plugins/marketplace/_id_/icon.mjs +2 -2
- package/dist/astro/routes/api/admin/plugins/marketplace/_id_/index.mjs +40 -40
- package/dist/astro/routes/api/admin/plugins/marketplace/_id_/install.mjs +46 -46
- package/dist/astro/routes/api/admin/plugins/marketplace/index.mjs +40 -40
- package/dist/astro/routes/api/admin/plugins/updates.mjs +40 -40
- package/dist/astro/routes/api/admin/review-requests/_id_/index.mjs +6 -6
- package/dist/astro/routes/api/admin/review-requests/_id_/resolve.mjs +29 -29
- package/dist/astro/routes/api/admin/review-requests/index.mjs +10 -10
- package/dist/astro/routes/api/admin/themes/marketplace/_id_/index.mjs +40 -40
- package/dist/astro/routes/api/admin/themes/marketplace/_id_/thumbnail.mjs +2 -2
- package/dist/astro/routes/api/admin/themes/marketplace/index.mjs +40 -40
- package/dist/astro/routes/api/admin/users/_id_/disable.mjs +2 -2
- package/dist/astro/routes/api/admin/users/_id_/enable.mjs +1 -1
- package/dist/astro/routes/api/admin/users/_id_/index.mjs +6 -6
- package/dist/astro/routes/api/admin/users/_id_/send-recovery.mjs +3 -3
- package/dist/astro/routes/api/admin/users/index.mjs +5 -5
- package/dist/astro/routes/api/auth/dev-bypass.mjs +5 -5
- package/dist/astro/routes/api/auth/invite/accept.mjs +1 -1
- package/dist/astro/routes/api/auth/invite/complete.mjs +10 -10
- package/dist/astro/routes/api/auth/invite/index.mjs +7 -7
- package/dist/astro/routes/api/auth/invite/register-options.mjs +9 -9
- package/dist/astro/routes/api/auth/logout.mjs +2 -2
- package/dist/astro/routes/api/auth/magic-link/send.mjs +9 -9
- package/dist/astro/routes/api/auth/magic-link/verify.mjs +2 -2
- package/dist/astro/routes/api/auth/me.mjs +5 -5
- package/dist/astro/routes/api/auth/mode.mjs +1 -1
- package/dist/astro/routes/api/auth/oauth/_provider_/callback.mjs +2 -2
- package/dist/astro/routes/api/auth/oauth/_provider_.mjs +2 -2
- package/dist/astro/routes/api/auth/passkey/_id_.mjs +5 -5
- package/dist/astro/routes/api/auth/passkey/index.mjs +1 -1
- package/dist/astro/routes/api/auth/passkey/options.mjs +11 -11
- package/dist/astro/routes/api/auth/passkey/register/options.mjs +9 -9
- package/dist/astro/routes/api/auth/passkey/register/verify.mjs +10 -10
- package/dist/astro/routes/api/auth/passkey/verify.mjs +10 -10
- package/dist/astro/routes/api/auth/signup/complete.mjs +10 -10
- package/dist/astro/routes/api/auth/signup/request.mjs +9 -9
- package/dist/astro/routes/api/auth/signup/verify.mjs +1 -1
- package/dist/astro/routes/api/comments/_collection_/_contentId_/index.mjs +14 -14
- package/dist/astro/routes/api/content/_collection_/_id_/compare.mjs +2 -2
- package/dist/astro/routes/api/content/_collection_/_id_/discard-draft.mjs +6 -6
- package/dist/astro/routes/api/content/_collection_/_id_/duplicate.mjs +6 -6
- package/dist/astro/routes/api/content/_collection_/_id_/permanent.mjs +7 -7
- package/dist/astro/routes/api/content/_collection_/_id_/preview-url.mjs +12 -12
- package/dist/astro/routes/api/content/_collection_/_id_/publish.mjs +28 -28
- package/dist/astro/routes/api/content/_collection_/_id_/restore.mjs +6 -6
- package/dist/astro/routes/api/content/_collection_/_id_/revisions.mjs +2 -2
- package/dist/astro/routes/api/content/_collection_/_id_/schedule.mjs +10 -10
- package/dist/astro/routes/api/content/_collection_/_id_/terms/_taxonomy_.mjs +13 -13
- package/dist/astro/routes/api/content/_collection_/_id_/translations.mjs +2 -2
- package/dist/astro/routes/api/content/_collection_/_id_/unpublish.mjs +6 -6
- package/dist/astro/routes/api/content/_collection_/_id_.mjs +10 -10
- package/dist/astro/routes/api/content/_collection_/index.mjs +10 -10
- package/dist/astro/routes/api/content/_collection_/trash.mjs +6 -6
- package/dist/astro/routes/api/dashboard.mjs +9 -9
- package/dist/astro/routes/api/dev/emails.mjs +2 -2
- package/dist/astro/routes/api/health.mjs +1 -1
- package/dist/astro/routes/api/import/probe.d.mts +3 -3
- package/dist/astro/routes/api/import/probe.mjs +10 -10
- package/dist/astro/routes/api/import/wordpress/analyze.mjs +3 -3
- package/dist/astro/routes/api/import/wordpress/execute.mjs +29 -29
- package/dist/astro/routes/api/import/wordpress/media.mjs +7 -7
- package/dist/astro/routes/api/import/wordpress/prepare.mjs +33 -33
- package/dist/astro/routes/api/import/wordpress/rewrite-url-helpers.d.mts +48 -0
- package/dist/astro/routes/api/import/wordpress/rewrite-url-helpers.mjs +124 -0
- package/dist/astro/routes/api/import/wordpress/rewrite-urls.mjs +32 -145
- package/dist/astro/routes/api/import/wordpress-plugin/analyze.d.mts +1 -1
- package/dist/astro/routes/api/import/wordpress-plugin/analyze.mjs +10 -10
- package/dist/astro/routes/api/import/wordpress-plugin/callback.mjs +1 -1
- package/dist/astro/routes/api/import/wordpress-plugin/execute.d.mts +1 -1
- package/dist/astro/routes/api/import/wordpress-plugin/execute.mjs +33 -33
- package/dist/astro/routes/api/manifest.mjs +4 -4
- package/dist/astro/routes/api/mcp.mjs +277 -91
- package/dist/astro/routes/api/media/_id_/confirm.mjs +6 -6
- package/dist/astro/routes/api/media/_id_.mjs +6 -6
- package/dist/astro/routes/api/media/file/_...key_.mjs +1 -1
- package/dist/astro/routes/api/media/providers/_providerId_/_itemId_.mjs +2 -2
- package/dist/astro/routes/api/media/providers/_providerId_/index.mjs +2 -2
- package/dist/astro/routes/api/media/providers/index.mjs +2 -2
- package/dist/astro/routes/api/media/upload-url.mjs +11 -13
- package/dist/astro/routes/api/media.mjs +18 -18
- package/dist/astro/routes/api/menus/_name_/items.mjs +45 -36
- package/dist/astro/routes/api/menus/_name_/reorder.mjs +34 -31
- package/dist/astro/routes/api/menus/_name_/translations.d.mts +8 -0
- package/dist/astro/routes/api/menus/_name_/translations.mjs +111 -0
- package/dist/astro/routes/api/menus/_name_.mjs +47 -36
- package/dist/astro/routes/api/menus/index.mjs +34 -32
- package/dist/astro/routes/api/oauth/authorize.mjs +7 -7
- package/dist/astro/routes/api/oauth/device/authorize.mjs +6 -6
- package/dist/astro/routes/api/oauth/device/code.mjs +9 -9
- package/dist/astro/routes/api/oauth/device/token.mjs +8 -8
- package/dist/astro/routes/api/oauth/register.mjs +4 -4
- package/dist/astro/routes/api/oauth/token/refresh.mjs +6 -6
- package/dist/astro/routes/api/oauth/token/revoke.mjs +6 -6
- package/dist/astro/routes/api/oauth/token.mjs +6 -6
- package/dist/astro/routes/api/openapi.json.mjs +3 -3
- package/dist/astro/routes/api/plugins/_pluginId_/_...path_.mjs +3 -3
- package/dist/astro/routes/api/redirects/404s/index.mjs +12 -12
- package/dist/astro/routes/api/redirects/404s/summary.mjs +12 -12
- package/dist/astro/routes/api/redirects/_id_.mjs +31 -31
- package/dist/astro/routes/api/redirects/index.mjs +31 -31
- package/dist/astro/routes/api/revisions/_revisionId_/index.mjs +2 -2
- package/dist/astro/routes/api/revisions/_revisionId_/restore.mjs +2 -2
- package/dist/astro/routes/api/schema/collections/_slug_/fields/_fieldSlug_.mjs +41 -41
- package/dist/astro/routes/api/schema/collections/_slug_/fields/index.mjs +41 -41
- package/dist/astro/routes/api/schema/collections/_slug_/fields/reorder.mjs +41 -41
- package/dist/astro/routes/api/schema/collections/_slug_/index.mjs +41 -41
- package/dist/astro/routes/api/schema/collections/index.mjs +41 -41
- package/dist/astro/routes/api/schema/index.mjs +6 -6
- package/dist/astro/routes/api/schema/orphans/_slug_.mjs +40 -40
- package/dist/astro/routes/api/schema/orphans/index.mjs +40 -40
- package/dist/astro/routes/api/search/enable.mjs +12 -12
- package/dist/astro/routes/api/search/index.mjs +11 -11
- package/dist/astro/routes/api/search/rebuild.mjs +12 -12
- package/dist/astro/routes/api/search/stats.mjs +8 -8
- package/dist/astro/routes/api/search/suggest.mjs +11 -11
- package/dist/astro/routes/api/sections/_slug_.mjs +30 -30
- package/dist/astro/routes/api/sections/index.mjs +30 -30
- package/dist/astro/routes/api/settings/email.mjs +4 -4
- package/dist/astro/routes/api/settings.mjs +30 -30
- package/dist/astro/routes/api/setup/admin-verify.mjs +12 -12
- package/dist/astro/routes/api/setup/admin.mjs +10 -10
- package/dist/astro/routes/api/setup/dev-bypass.mjs +25 -25
- package/dist/astro/routes/api/setup/dev-reset.mjs +2 -2
- package/dist/astro/routes/api/setup/index.mjs +26 -26
- package/dist/astro/routes/api/setup/status.mjs +3 -3
- package/dist/astro/routes/api/snapshot.mjs +7 -7
- package/dist/astro/routes/api/taxonomies/_name_/terms/_slug_/translations.d.mts +8 -0
- package/dist/astro/routes/api/taxonomies/_name_/terms/_slug_/translations.mjs +131 -0
- package/dist/astro/routes/api/taxonomies/_name_/terms/_slug_.mjs +49 -41
- package/dist/astro/routes/api/taxonomies/_name_/terms/index.mjs +36 -34
- package/dist/astro/routes/api/taxonomies/index.mjs +36 -34
- package/dist/astro/routes/api/themes/preview.mjs +6 -6
- package/dist/astro/routes/api/typegen.mjs +4 -4
- package/dist/astro/routes/api/well-known/auth.mjs +3 -3
- package/dist/astro/routes/api/well-known/oauth-authorization-server.mjs +3 -3
- package/dist/astro/routes/api/well-known/oauth-protected-resource.mjs +3 -3
- package/dist/astro/routes/api/widget-areas/_name_/reorder.mjs +29 -29
- package/dist/astro/routes/api/widget-areas/_name_/widgets/_id_.mjs +30 -30
- package/dist/astro/routes/api/widget-areas/_name_/widgets.mjs +30 -30
- package/dist/astro/routes/api/widget-areas/_name_.mjs +28 -28
- package/dist/astro/routes/api/widget-areas/index.mjs +30 -30
- package/dist/astro/routes/api/widget-components.mjs +2 -2
- package/dist/astro/routes/robots.txt.mjs +9 -9
- package/dist/astro/routes/sitemap-_collection_.xml.mjs +9 -9
- package/dist/astro/routes/sitemap.xml.mjs +10 -10
- package/dist/astro/types.d.mts +16 -14
- package/dist/auth/providers/github.d.mts +1 -1
- package/dist/auth/providers/google.d.mts +1 -1
- package/dist/{auth-control-guard-DOZ3UCsP.mjs → auth-control-guard--r6LlNkX.mjs} +1 -1
- package/dist/{authorize-BAdbMCwC.mjs → authorize-wQDmXQJ1.mjs} +1 -1
- package/dist/{briefing-MVYe_Uyf.mjs → briefing-4k6R0KAr.mjs} +7 -7
- package/dist/{briefing-rty4O-wa.mjs → briefing-DM7e2yd3.mjs} +1 -1
- package/dist/{byline-naZxOPSa.mjs → byline-BxAf79s1.mjs} +4 -4
- package/dist/{bylines-DCvz5gtm.d.mts → bylines--KurdDQK.d.mts} +84 -22
- package/dist/{bylines-C4LIBOOO.mjs → bylines-DhCnhR70.mjs} +3 -3
- package/dist/{cache-DEbQ13c9.mjs → cache-inQvbrP5.mjs} +1 -1
- package/dist/{chunks-D_jVet6z.mjs → chunks-vkrCT4Ta.mjs} +7 -1
- package/dist/cli/index.mjs +337 -102
- package/dist/client/external-auth-headers.d.mts +1 -1
- package/dist/client/index.d.mts +1 -1
- package/dist/client/index.mjs +1 -1
- package/dist/{comment-DFO-gWDH.mjs → comment-BmJXz3lc.mjs} +1 -1
- package/dist/{comments--BsZ9pqA.mjs → comments-BW1qFiTa.mjs} +1 -1
- package/dist/{content-CyLkb-qH.mjs → content-DvpMad_N.mjs} +4 -3
- package/dist/{context-DNfcm853.mjs → context-CGbVhAmd.mjs} +2 -2
- package/dist/{context-CNIkMzot.mjs → context-CT44ux1O.mjs} +10 -10
- package/dist/{context-route-helpers-MurhoxWF.mjs → context-route-helpers-CcvSXJtQ.mjs} +1 -1
- package/dist/{dashboard-DqnYU8EU.mjs → dashboard-6gH7SlPM.mjs} +9 -18
- package/dist/database/instrumentation.d.mts +1 -1
- package/dist/database/instrumentation.mjs +14 -4
- package/dist/db/index.d.mts +3 -3
- package/dist/db/index.mjs +2 -2
- package/dist/db/libsql.d.mts +1 -1
- package/dist/db/postgres.d.mts +1 -1
- package/dist/db/sqlite.d.mts +1 -1
- package/dist/{device-flow-BGEH5jfn.mjs → device-flow-DaTBhALC.mjs} +5 -5
- package/dist/{dialect-helpers-DhTzaUxP.mjs → dialect-helpers-TkdbkFad.mjs} +7 -1
- package/dist/{fts-manager-B1pTNEG_.mjs → fts-manager-D7KVeBmg.mjs} +1 -1
- package/dist/{hitl-requests-ChT32Ilo.mjs → hitl-requests-CUnch_4e.mjs} +2 -2
- package/dist/{hitl-route-helpers-CSit54Ru.mjs → hitl-route-helpers-DcUCm57p.mjs} +4 -4
- package/dist/{import-BHRLhXAn.mjs → import-BVqG28WP.mjs} +3 -3
- package/dist/{import-CNcKWTbp.mjs → import-DE2ziezs.mjs} +2 -2
- package/dist/{index-CYfhYgXd.d.mts → index-DpMWSamU.d.mts} +2 -2
- package/dist/{index-EUAWaIxW.d.mts → index-JzJUzE4o.d.mts} +47 -47
- package/dist/index.d.mts +16 -16
- package/dist/index.mjs +65 -65
- package/dist/{jsonld-D2gUY4kA.d.mts → jsonld-BjsoTL5m.d.mts} +2 -2
- package/dist/{loader-PZnPxFLc.mjs → loader-CQFxFOt1.mjs} +2 -2
- package/dist/media/index.d.mts +2 -2
- package/dist/media/index.mjs +2 -2
- package/dist/media/local-runtime.d.mts +12 -12
- package/dist/media/local-runtime.mjs +3 -3
- package/dist/{media-_7Fxdu45.mjs → media-Cg4zc9fq.mjs} +12 -9
- package/dist/media-allowlist-eS3AZ2L_.mjs +26 -0
- package/dist/{menus-DYW_UHjv.mjs → menus-BDW1yIdj.mjs} +80 -87
- package/dist/menus-CwI7DQJ5.mjs +569 -0
- package/dist/mime-DJOFDGux.mjs +35 -0
- package/dist/{oauth-authorization-DxGjiWKL.mjs → oauth-authorization-DcYRiDfi.mjs} +5 -5
- package/dist/{oauth-clients-DxO_NO7k.mjs → oauth-clients-CgKFA-VH.mjs} +2 -2
- package/dist/page/index.d.mts +2 -2
- package/dist/page/index.mjs +1 -1
- package/dist/{parse-C9106ehs.mjs → parse-BBfZRZYb.mjs} +1 -1
- package/dist/{placeholder-Bh1dfUOd.d.mts → placeholder-DKMMLt42.d.mts} +1 -1
- package/dist/plugins/adapt-sandbox-entry.d.mts +10 -10
- package/dist/plugins/adapt-sandbox-entry.mjs +1 -1
- package/dist/{plugins-D7-ILNib.mjs → plugins-DKceDtUM.mjs} +9 -7
- package/dist/{preview-DvYRU-Oy.mjs → preview-CIDYFBzd.mjs} +2 -2
- package/dist/{provider-loader-BiQ6lNmf.d.mts → provider-loader-D0F6E2qv.d.mts} +1 -1
- package/dist/{query-CsbOywSY.mjs → query-BtuwuZRd.mjs} +3 -3
- package/dist/{query-B9BO5goQ.mjs → query-CWPxZjGM.mjs} +11 -11
- package/dist/{rate-limit-DmVTHI5v.mjs → rate-limit-GN64_Jaw.mjs} +5 -5
- package/dist/{redirect-CGl64yOX.mjs → redirect-BHo9--Jz.mjs} +3 -3
- package/dist/{redirects-Cgi_cZfN.mjs → redirects-Bc40BgxA.mjs} +4 -4
- package/dist/{redirects-lrlmYXVE.mjs → redirects-xVDvj_yQ.mjs} +68 -15
- package/dist/{registry-C-_hxLqa.mjs → registry-DumDzFDn.mjs} +5 -5
- package/dist/{request-cache-DHMRr2Lf.mjs → request-cache-DmVyQUBh.mjs} +5 -1
- package/dist/request-context.d.mts +19 -1
- package/dist/request-context.mjs +15 -3
- package/dist/{request-meta-DixlNKKa.mjs → request-meta-BVx9KkL-.mjs} +1 -1
- package/dist/{review-requests-C2DIHwlJ.mjs → review-requests-BYuoyse0.mjs} +1 -1
- package/dist/{review-requests-DIyjw-K_.mjs → review-requests-vCw7_3DS.mjs} +1 -1
- package/dist/{runner-BU6Lo1ZS.d.mts → runner-CHR_W79l.d.mts} +1 -1
- package/dist/{runner-DWZm2KQm.mjs → runner-lqEiJbO-.mjs} +496 -181
- package/dist/{runtime-QuuFSlc6.d.mts → runtime-B5hJAnKF.d.mts} +17 -16
- package/dist/runtime.d.mts +11 -11
- package/dist/runtime.mjs +5 -5
- package/dist/{schema-BECjUhP8.mjs → schema-D1z41cq_.mjs} +1 -1
- package/dist/{search-DqTHQqtV.mjs → search-CPcQGTHW.mjs} +2 -2
- package/dist/{secrets-CkoJ9zN0.mjs → secrets-AFKoqUXj.mjs} +2 -2
- package/dist/{sections-B61OxnfB.mjs → sections-B9RYyf3I.mjs} +2 -2
- package/dist/seed/index.d.mts +2 -2
- package/dist/seed/index.mjs +19 -19
- package/dist/seo/index.d.mts +1 -1
- package/dist/{seo-CUQctrog.mjs → seo-BPz1KkCq.mjs} +1 -1
- package/dist/{service-CyOsm0R6.mjs → service-DgiH1Yud.mjs} +2 -2
- package/dist/{settings-Dzgswvg4.mjs → settings-BGCo_c2y.mjs} +1 -1
- package/dist/{settings-DGtLLSaz.mjs → settings-qPzY2KIF.mjs} +4 -4
- package/dist/{setup-complete-ChilE-da.mjs → setup-complete-4EiBS1E5.mjs} +1 -1
- package/dist/{site-activity-B8FjLIVh.mjs → site-activity-lsCX_cqp.mjs} +1 -1
- package/dist/{site-context-WBxoD99D.mjs → site-context-DHRIU6x9.mjs} +58 -34
- package/dist/{site-url-BP7k7OCe.mjs → site-url-oyqzZtoL.mjs} +1 -1
- package/dist/storage/local.d.mts +1 -1
- package/dist/storage/local.mjs +1 -1
- package/dist/storage/s3.d.mts +1 -1
- package/dist/storage/s3.mjs +1 -1
- package/dist/taxonomies-BWmxbumf.mjs +350 -0
- package/dist/taxonomies-aQXvYVPm.mjs +507 -0
- package/dist/taxonomy-DI-0HgKe.mjs +217 -0
- package/dist/{tokens-BOJw-D9F.mjs → tokens-DB4dASZl.mjs} +1 -1
- package/dist/{types-DZPw8Rru.d.mts → types-CYBaBvtm.d.mts} +9 -0
- package/dist/{types-C0mmVRJN.d.mts → types-CsnHvu4J.d.mts} +1 -0
- package/dist/{types-Bs6lTBBW.mjs → types-D1DjBFA9.mjs} +8 -2
- package/dist/{types-Q616b2Hn.d.mts → types-DS5PYew4.d.mts} +1 -1
- package/dist/ui/server-runtime.d.mts +7 -7
- package/dist/ui/server-runtime.mjs +19 -19
- package/dist/{user-CcXq-zoL.mjs → user-2aI21yV1.mjs} +1 -1
- package/dist/{utils-C0ONdBul.mjs → utils-BJF19gfk.mjs} +1 -1
- package/dist/{validate-C7TzfamJ.mjs → validate-B8ZvLeOE.mjs} +12 -8
- package/dist/{validate-BwmQEbu8.d.mts → validate-BQ24E8rK.d.mts} +21 -4
- package/dist/version-CjsyxeBD.mjs +6 -0
- package/dist/{widgets-B7DRpZvy.mjs → widgets-Cce2-2fM.mjs} +2 -2
- package/dist/{wordpress-slugs-CnporCYH.mjs → wordpress-slugs-C4EhE6fo.mjs} +1 -1
- package/dist/{zod-generator-DBVP8D0P.mjs → zod-generator-BKhtHT3e.mjs} +3 -3
- package/package.json +5 -5
- package/dist/menus-DS3_5nWY.mjs +0 -312
- package/dist/taxonomies-D2aZGuns.mjs +0 -270
- package/dist/taxonomies-z6Lz91BC.mjs +0 -355
- package/dist/taxonomy-D5cbhc8u.mjs +0 -165
- package/dist/version-DzWaHle7.mjs +0 -6
- /package/dist/{adapters-DuLQZhRY.d.mts → adapters-BPzUiHHm.d.mts} +0 -0
- /package/dist/{api-tokens-CPjC3zf8.mjs → api-tokens-B7fvbHM2.mjs} +0 -0
- /package/dist/{base64-Cz-aU0X1.mjs → base64-C1Q9yr0B.mjs} +0 -0
- /package/dist/{challenge-store-DDTbisbf.mjs → challenge-store-anhwVER0.mjs} +0 -0
- /package/dist/{components-BPknylYg.mjs → components-BQiBW_Ji.mjs} +0 -0
- /package/dist/{config-CAMFxGaV.mjs → config-XW5tMrH8.mjs} +0 -0
- /package/dist/{context-types-C-LwdAxx.mjs → context-types-DuiyY6xF.mjs} +0 -0
- /package/dist/{cron-CKxvBrRT.mjs → cron-fV9baRVc.mjs} +0 -0
- /package/dist/{db-errors-DyZkswzF.mjs → db-errors-BnUbfGsK.mjs} +0 -0
- /package/dist/{default-D4ngTpW8.mjs → default-2JDm1rj_.mjs} +0 -0
- /package/dist/{email-console-CuefUXfX.mjs → email-console-_pTim1bU.mjs} +0 -0
- /package/dist/{entity-aliases-C0v-yNET.mjs → entity-aliases-PJV8IxDq.mjs} +0 -0
- /package/dist/{error-BMUPwxgx.mjs → error-Dyf9fGZE.mjs} +0 -0
- /package/dist/{escape-BRVaw1Ai.mjs → escape-Bn168-uP.mjs} +0 -0
- /package/dist/{experimental-workflows-C9X7yblQ.mjs → experimental-workflows-CSRjuEwS.mjs} +0 -0
- /package/dist/{hash-CDX7M0ze.mjs → hash-V8oZo1W2.mjs} +0 -0
- /package/dist/{load-B2XtDw__.mjs → load-BvyvS_76.mjs} +0 -0
- /package/dist/{manifest-schema-CgFJAp0H.mjs → manifest-schema-CU0XL_ZK.mjs} +0 -0
- /package/dist/{mode-DUhxwUhv.mjs → mode-DWw2di1I.mjs} +0 -0
- /package/dist/{normalize-C49G_o1k.mjs → normalize-9GU-bv_T.mjs} +0 -0
- /package/dist/{oauth-state-store-C5UFhzwD.mjs → oauth-state-store-DhifLitQ.mjs} +0 -0
- /package/dist/{oauth-user-lookup-Bi0ek9eM.mjs → oauth-user-lookup-nyXQ2_6Q.mjs} +0 -0
- /package/dist/{options-z8VVg1Ll.mjs → options-BF11H_FD.mjs} +0 -0
- /package/dist/{passkey-config-BRSZx4pW.mjs → passkey-config-DZOjt0Hd.mjs} +0 -0
- /package/dist/{patterns-K0DLqWir.mjs → patterns-CW4n2PQs.mjs} +0 -0
- /package/dist/{placeholder-C2P5fKa4.mjs → placeholder-BJPmhjHP.mjs} +0 -0
- /package/dist/{provider-loader-C21b9OpH.mjs → provider-loader-Decn0Ktc.mjs} +0 -0
- /package/dist/{public-url-Cun8N3NU.mjs → public-url-5fFLJhjh.mjs} +0 -0
- /package/dist/{redirect-COZy-3iY.mjs → redirect-C077gVTf.mjs} +0 -0
- /package/dist/{seo-C007Luwn.mjs → seo-DJoop90w.mjs} +0 -0
- /package/dist/{seo-contributions-B1fWCnqY.mjs → seo-contributions-CQzUjJKY.mjs} +0 -0
- /package/dist/{setup-nonce-BpmLXAuu.mjs → setup-nonce-DN6BHIlP.mjs} +0 -0
- /package/dist/{sidecar-client-B1C6Cf80.mjs → sidecar-client-Dta0AELf.mjs} +0 -0
- /package/dist/{slugify-PDTDtMXp.mjs → slugify-BzGxlOFx.mjs} +0 -0
- /package/dist/{ssrf-DDwRxF6B.mjs → ssrf-BOSGjXxb.mjs} +0 -0
- /package/dist/{transaction-x2tJQ-A1.mjs → transaction-qfqpPVpu.mjs} +0 -0
- /package/dist/{transport-D3i4yWRE.mjs → transport-B3jxvfio.mjs} +0 -0
- /package/dist/{transport-BXe1AM79.d.mts → transport-CyOHECBA.d.mts} +0 -0
- /package/dist/{trusted-proxy-BbaZfkT9.mjs → trusted-proxy-8N8sX1D1.mjs} +0 -0
- /package/dist/{types-DJlpx5Ay.d.mts → types-6N-00csp.d.mts} +0 -0
- /package/dist/{types-BFmjniC2.d.mts → types-B45uSz1j.d.mts} +0 -0
- /package/dist/{types-B7kpsMJ3.d.mts → types-BDm7Ipoq.d.mts} +0 -0
- /package/dist/{types-0Vr68fc2.d.mts → types-BeYn-Yf0.d.mts} +0 -0
- /package/dist/{types-OPs5Q_sX.d.mts → types-D_wGrwiY.d.mts} +0 -0
- /package/dist/{types-DL7Y8D_t.mjs → types-Dz2EKzsX.mjs} +0 -0
- /package/dist/{types-fAInWQDO.mjs → types-iNqHe2-V.mjs} +0 -0
- /package/dist/{url-DNjT2abR.mjs → url-DOS4RGym.mjs} +0 -0
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { s as ImportConfig, u as ImportResult } from "../../../../../types-
|
|
1
|
+
import { s as ImportConfig, u as ImportResult } from "../../../../../types-BeYn-Yf0.mjs";
|
|
2
2
|
import { APIRoute } from "astro";
|
|
3
3
|
|
|
4
4
|
//#region src/astro/routes/api/import/wordpress-plugin/execute.d.ts
|
|
@@ -1,37 +1,37 @@
|
|
|
1
|
-
import "../../../../../dialect-helpers-
|
|
2
|
-
import { n as slugify } from "../../../../../slugify-
|
|
3
|
-
import "../../../../../content-
|
|
4
|
-
import "../../../../../base64-
|
|
5
|
-
import "../../../../../types-
|
|
6
|
-
import "../../../../../media-
|
|
7
|
-
import "../../../../../options-
|
|
8
|
-
import "../../../../../site-activity-
|
|
9
|
-
import "../../../../../review-requests-
|
|
10
|
-
import "../../../../../entity-aliases-
|
|
11
|
-
import { t as BylineRepository } from "../../../../../byline-
|
|
12
|
-
import "../../../../../
|
|
13
|
-
import "../../../../../
|
|
14
|
-
import "../../../../../
|
|
15
|
-
import "../../../../../
|
|
16
|
-
import "../../../../../
|
|
17
|
-
import "../../../../../
|
|
18
|
-
import "../../../../../
|
|
19
|
-
import "../../../../../query-
|
|
20
|
-
import "../../../../../zod-generator-
|
|
21
|
-
import "../../../../../schema-
|
|
22
|
-
import { n as apiSuccess, r as handleError, t as apiError } from "../../../../../error-
|
|
23
|
-
import { n as parseBody, t as isParseError } from "../../../../../parse-
|
|
24
|
-
import "../../../../../redirects-
|
|
25
|
-
import { i as wpPluginExecuteBody } from "../../../../../import-
|
|
1
|
+
import "../../../../../dialect-helpers-TkdbkFad.mjs";
|
|
2
|
+
import { n as slugify } from "../../../../../slugify-BzGxlOFx.mjs";
|
|
3
|
+
import "../../../../../content-DvpMad_N.mjs";
|
|
4
|
+
import "../../../../../base64-C1Q9yr0B.mjs";
|
|
5
|
+
import "../../../../../types-D1DjBFA9.mjs";
|
|
6
|
+
import "../../../../../media-Cg4zc9fq.mjs";
|
|
7
|
+
import "../../../../../options-BF11H_FD.mjs";
|
|
8
|
+
import "../../../../../site-activity-lsCX_cqp.mjs";
|
|
9
|
+
import "../../../../../review-requests-BYuoyse0.mjs";
|
|
10
|
+
import "../../../../../entity-aliases-PJV8IxDq.mjs";
|
|
11
|
+
import { t as BylineRepository } from "../../../../../byline-BxAf79s1.mjs";
|
|
12
|
+
import "../../../../../request-cache-DmVyQUBh.mjs";
|
|
13
|
+
import "../../../../../briefing-4k6R0KAr.mjs";
|
|
14
|
+
import "../../../../../context-types-DuiyY6xF.mjs";
|
|
15
|
+
import "../../../../../fts-manager-D7KVeBmg.mjs";
|
|
16
|
+
import "../../../../../registry-DumDzFDn.mjs";
|
|
17
|
+
import "../../../../../loader-CQFxFOt1.mjs";
|
|
18
|
+
import "../../../../../settings-qPzY2KIF.mjs";
|
|
19
|
+
import "../../../../../query-BtuwuZRd.mjs";
|
|
20
|
+
import "../../../../../zod-generator-BKhtHT3e.mjs";
|
|
21
|
+
import "../../../../../schema-D1z41cq_.mjs";
|
|
22
|
+
import { n as apiSuccess, r as handleError, t as apiError } from "../../../../../error-Dyf9fGZE.mjs";
|
|
23
|
+
import { n as parseBody, t as isParseError } from "../../../../../parse-BBfZRZYb.mjs";
|
|
24
|
+
import "../../../../../redirects-xVDvj_yQ.mjs";
|
|
25
|
+
import { i as wpPluginExecuteBody } from "../../../../../import-DE2ziezs.mjs";
|
|
26
26
|
import "../../../../../api/schemas/index.mjs";
|
|
27
|
-
import { s as getSource } from "../../../../../import-
|
|
28
|
-
import { n as resolveAndValidateExternalUrl, t as SsrfError } from "../../../../../ssrf-
|
|
29
|
-
import { m as resolveImportByline } from "../../../../../utils-
|
|
30
|
-
import "../../../../../search-
|
|
31
|
-
import { n as requirePerm } from "../../../../../authorize-
|
|
32
|
-
import { _ as RiskPolicyEvaluator, p as WordPressImportHitlPayloadBuilder } from "../../../../../site-context-
|
|
33
|
-
import "../../../../../activity-events-
|
|
34
|
-
import { i as resolveHitlRouteActor, n as hitlRequiredRouteError, t as ensureWorkflowHitlRouteRequest } from "../../../../../hitl-route-helpers-
|
|
27
|
+
import { s as getSource } from "../../../../../import-BVqG28WP.mjs";
|
|
28
|
+
import { n as resolveAndValidateExternalUrl, t as SsrfError } from "../../../../../ssrf-BOSGjXxb.mjs";
|
|
29
|
+
import { m as resolveImportByline } from "../../../../../utils-BJF19gfk.mjs";
|
|
30
|
+
import "../../../../../search-CPcQGTHW.mjs";
|
|
31
|
+
import { n as requirePerm } from "../../../../../authorize-wQDmXQJ1.mjs";
|
|
32
|
+
import { _ as RiskPolicyEvaluator, p as WordPressImportHitlPayloadBuilder } from "../../../../../site-context-DHRIU6x9.mjs";
|
|
33
|
+
import "../../../../../activity-events-DbqJBNaY.mjs";
|
|
34
|
+
import { i as resolveHitlRouteActor, n as hitlRequiredRouteError, t as ensureWorkflowHitlRouteRequest } from "../../../../../hitl-route-helpers-DcUCm57p.mjs";
|
|
35
35
|
import { z } from "zod";
|
|
36
36
|
import { ContentRepository, SchemaRegistry } from "dineway";
|
|
37
37
|
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { n as VERSION, t as COMMIT } from "../../../version-
|
|
2
|
-
import { r as handleError } from "../../../error-
|
|
3
|
-
import { t as getAuthMode } from "../../../mode-
|
|
4
|
-
import { i as experimentalSiteContextWorkflowsEnabled } from "../../../experimental-workflows-
|
|
1
|
+
import { n as VERSION, t as COMMIT } from "../../../version-CjsyxeBD.mjs";
|
|
2
|
+
import { r as handleError } from "../../../error-Dyf9fGZE.mjs";
|
|
3
|
+
import { t as getAuthMode } from "../../../mode-DWw2di1I.mjs";
|
|
4
|
+
import { i as experimentalSiteContextWorkflowsEnabled } from "../../../experimental-workflows-CSRjuEwS.mjs";
|
|
5
5
|
|
|
6
6
|
//#region src/astro/routes/api/manifest.ts
|
|
7
7
|
const prerender = false;
|
|
@@ -1,32 +1,32 @@
|
|
|
1
|
-
import "../../../dialect-helpers-
|
|
2
|
-
import "../../../content-
|
|
3
|
-
import "../../../base64-
|
|
4
|
-
import "../../../types-
|
|
5
|
-
import "../../../media-
|
|
6
|
-
import "../../../options-
|
|
7
|
-
import "../../../site-activity-
|
|
8
|
-
import { t as ReviewRequestRepository } from "../../../review-requests-
|
|
9
|
-
import "../../../entity-aliases-
|
|
10
|
-
import
|
|
11
|
-
import { t as
|
|
12
|
-
import "../../../
|
|
13
|
-
import "../../../
|
|
14
|
-
import "../../../
|
|
15
|
-
import "../../../
|
|
16
|
-
import "../../../
|
|
17
|
-
import { n as VERSION } from "../../../version-
|
|
18
|
-
import "../../../query-
|
|
19
|
-
import "../../../zod-generator-
|
|
20
|
-
import "../../../schema-
|
|
21
|
-
import { t as apiError } from "../../../error-
|
|
22
|
-
import { P as settingsUpdateBody,
|
|
23
|
-
import "../../../import-
|
|
1
|
+
import "../../../dialect-helpers-TkdbkFad.mjs";
|
|
2
|
+
import "../../../content-DvpMad_N.mjs";
|
|
3
|
+
import "../../../base64-C1Q9yr0B.mjs";
|
|
4
|
+
import "../../../types-D1DjBFA9.mjs";
|
|
5
|
+
import "../../../media-Cg4zc9fq.mjs";
|
|
6
|
+
import "../../../options-BF11H_FD.mjs";
|
|
7
|
+
import "../../../site-activity-lsCX_cqp.mjs";
|
|
8
|
+
import { t as ReviewRequestRepository } from "../../../review-requests-BYuoyse0.mjs";
|
|
9
|
+
import "../../../entity-aliases-PJV8IxDq.mjs";
|
|
10
|
+
import "../../../request-cache-DmVyQUBh.mjs";
|
|
11
|
+
import { a as ContextRepository, i as parseSiteBriefingScope, r as formatSiteBriefingText, t as SiteBriefingAssembler } from "../../../briefing-4k6R0KAr.mjs";
|
|
12
|
+
import { t as SITE_CONTEXT_TYPES } from "../../../context-types-DuiyY6xF.mjs";
|
|
13
|
+
import "../../../fts-manager-D7KVeBmg.mjs";
|
|
14
|
+
import "../../../registry-DumDzFDn.mjs";
|
|
15
|
+
import "../../../loader-CQFxFOt1.mjs";
|
|
16
|
+
import "../../../settings-qPzY2KIF.mjs";
|
|
17
|
+
import { n as VERSION } from "../../../version-CjsyxeBD.mjs";
|
|
18
|
+
import "../../../query-BtuwuZRd.mjs";
|
|
19
|
+
import "../../../zod-generator-BKhtHT3e.mjs";
|
|
20
|
+
import "../../../schema-D1z41cq_.mjs";
|
|
21
|
+
import { t as apiError } from "../../../error-Dyf9fGZE.mjs";
|
|
22
|
+
import { P as settingsUpdateBody, on as contentSeoInput, xn as contentBylineInputSchema } from "../../../redirects-xVDvj_yQ.mjs";
|
|
23
|
+
import "../../../import-DE2ziezs.mjs";
|
|
24
24
|
import "../../../api/schemas/index.mjs";
|
|
25
|
-
import "../../../utils-
|
|
26
|
-
import "../../../search-
|
|
27
|
-
import { i as hasScope } from "../../../api-tokens-
|
|
28
|
-
import { C as HITL_REQUEST_STATUSES, E as ASSIGNMENT_STATUSES, S as HITL_REQUEST_PRIORITIES, T as ASSIGNMENT_PRIORITIES, _ as RiskPolicyEvaluator, a as ActorExpertiseService, b as toPublicContextEntry, f as SettingsHitlPayloadBuilder, g as SchemaHitlPayloadBuilder, i as HandoffSnapshotStore, n as HitlRequestService, o as EntityResolver, r as AssignmentService, t as WorkflowHitlCoordinator, v as ReviewPayloadBuilder, w as ASSIGNMENT_ACTOR_TYPES, x as toPublicContextEntryPage, y as toPublicContextDiff } from "../../../site-context-
|
|
29
|
-
import { T as resolveActorIdentity, b as schemaMcpToolSource, d as logSchemaActivity, o as logContentActivity, p as logSiteActivitySafely, r as contentMcpToolSource, t as activityChangedKeys } from "../../../activity-events-
|
|
25
|
+
import "../../../utils-BJF19gfk.mjs";
|
|
26
|
+
import "../../../search-CPcQGTHW.mjs";
|
|
27
|
+
import { i as hasScope } from "../../../api-tokens-B7fvbHM2.mjs";
|
|
28
|
+
import { C as HITL_REQUEST_STATUSES, E as ASSIGNMENT_STATUSES, S as HITL_REQUEST_PRIORITIES, T as ASSIGNMENT_PRIORITIES, _ as RiskPolicyEvaluator, a as ActorExpertiseService, b as toPublicContextEntry, f as SettingsHitlPayloadBuilder, g as SchemaHitlPayloadBuilder, i as HandoffSnapshotStore, n as HitlRequestService, o as EntityResolver, r as AssignmentService, t as WorkflowHitlCoordinator, v as ReviewPayloadBuilder, w as ASSIGNMENT_ACTOR_TYPES, x as toPublicContextEntryPage, y as toPublicContextDiff } from "../../../site-context-DHRIU6x9.mjs";
|
|
29
|
+
import { T as resolveActorIdentity, b as schemaMcpToolSource, d as logSchemaActivity, o as logContentActivity, p as logSiteActivitySafely, r as contentMcpToolSource, t as activityChangedKeys } from "../../../activity-events-DbqJBNaY.mjs";
|
|
30
30
|
import { z } from "zod";
|
|
31
31
|
import { Role, canActOnOwn, hasPermission } from "@dineway-ai/auth";
|
|
32
32
|
import { WebStandardStreamableHTTPServerTransport } from "@modelcontextprotocol/sdk/server/webStandardStreamableHttp.js";
|
|
@@ -1993,7 +1993,7 @@ function createMcpServer() {
|
|
|
1993
1993
|
requireRole(extra, Role.EDITOR);
|
|
1994
1994
|
const ec = getDineway(extra);
|
|
1995
1995
|
try {
|
|
1996
|
-
const { SchemaRegistry } = await import("../../../schema-
|
|
1996
|
+
const { SchemaRegistry } = await import("../../../schema-D1z41cq_.mjs").then((n) => n.t);
|
|
1997
1997
|
return jsonResult({ items: await new SchemaRegistry(ec.db).listCollections() });
|
|
1998
1998
|
} catch (error) {
|
|
1999
1999
|
return errorResult(error);
|
|
@@ -2009,7 +2009,7 @@ function createMcpServer() {
|
|
|
2009
2009
|
requireRole(extra, Role.EDITOR);
|
|
2010
2010
|
const ec = getDineway(extra);
|
|
2011
2011
|
try {
|
|
2012
|
-
const { SchemaRegistry } = await import("../../../schema-
|
|
2012
|
+
const { SchemaRegistry } = await import("../../../schema-D1z41cq_.mjs").then((n) => n.t);
|
|
2013
2013
|
const collection = await new SchemaRegistry(ec.db).getCollectionWithFields(args.slug);
|
|
2014
2014
|
if (!collection) return errorResult(`Collection '${args.slug}' not found`);
|
|
2015
2015
|
return jsonResult(collection);
|
|
@@ -2039,7 +2039,7 @@ function createMcpServer() {
|
|
|
2039
2039
|
requireRole(extra, Role.ADMIN);
|
|
2040
2040
|
const ec = getDineway(extra);
|
|
2041
2041
|
try {
|
|
2042
|
-
const { SchemaRegistry } = await import("../../../schema-
|
|
2042
|
+
const { SchemaRegistry } = await import("../../../schema-D1z41cq_.mjs").then((n) => n.t);
|
|
2043
2043
|
const collection = await new SchemaRegistry(ec.db).createCollection({
|
|
2044
2044
|
slug: args.slug,
|
|
2045
2045
|
label: args.label,
|
|
@@ -2103,7 +2103,7 @@ function createMcpServer() {
|
|
|
2103
2103
|
request
|
|
2104
2104
|
});
|
|
2105
2105
|
}
|
|
2106
|
-
const { SchemaRegistry } = await import("../../../schema-
|
|
2106
|
+
const { SchemaRegistry } = await import("../../../schema-D1z41cq_.mjs").then((n) => n.t);
|
|
2107
2107
|
await new SchemaRegistry(ec.db).deleteCollection(args.slug, { force: args.force });
|
|
2108
2108
|
ec.invalidateManifest();
|
|
2109
2109
|
await logSchemaActivity(ec.db, locals, {
|
|
@@ -2167,7 +2167,7 @@ function createMcpServer() {
|
|
|
2167
2167
|
requireRole(extra, Role.ADMIN);
|
|
2168
2168
|
const ec = getDineway(extra);
|
|
2169
2169
|
try {
|
|
2170
|
-
const { SchemaRegistry } = await import("../../../schema-
|
|
2170
|
+
const { SchemaRegistry } = await import("../../../schema-D1z41cq_.mjs").then((n) => n.t);
|
|
2171
2171
|
const field = await new SchemaRegistry(ec.db).createField(args.collection, {
|
|
2172
2172
|
slug: args.slug,
|
|
2173
2173
|
label: args.label,
|
|
@@ -2236,7 +2236,7 @@ function createMcpServer() {
|
|
|
2236
2236
|
request
|
|
2237
2237
|
});
|
|
2238
2238
|
}
|
|
2239
|
-
const { SchemaRegistry } = await import("../../../schema-
|
|
2239
|
+
const { SchemaRegistry } = await import("../../../schema-D1z41cq_.mjs").then((n) => n.t);
|
|
2240
2240
|
await new SchemaRegistry(ec.db).deleteField(args.collection, args.fieldSlug);
|
|
2241
2241
|
ec.invalidateManifest();
|
|
2242
2242
|
await logSchemaActivity(ec.db, locals, {
|
|
@@ -2369,7 +2369,7 @@ function createMcpServer() {
|
|
|
2369
2369
|
requireScope(extra, "content:read");
|
|
2370
2370
|
const ec = getDineway(extra);
|
|
2371
2371
|
try {
|
|
2372
|
-
const { searchWithDb } = await import("../../../search-
|
|
2372
|
+
const { searchWithDb } = await import("../../../search-CPcQGTHW.mjs").then((n) => n.t);
|
|
2373
2373
|
return jsonResult(await searchWithDb(ec.db, args.query, {
|
|
2374
2374
|
collections: args.collections,
|
|
2375
2375
|
locale: args.locale,
|
|
@@ -2381,21 +2381,15 @@ function createMcpServer() {
|
|
|
2381
2381
|
});
|
|
2382
2382
|
server.registerTool("taxonomy_list", {
|
|
2383
2383
|
title: "List Taxonomies",
|
|
2384
|
-
description: "List all taxonomy definitions (e.g. categories, tags). Taxonomies are classification systems applied to content. Each has a name, label, and can be hierarchical (categories) or flat (tags).",
|
|
2385
|
-
inputSchema: z.object({}),
|
|
2384
|
+
description: "List all taxonomy definitions (e.g. categories, tags). Taxonomies are classification systems applied to content. Each has a name, label, and can be hierarchical (categories) or flat (tags). Optionally filter by locale.",
|
|
2385
|
+
inputSchema: z.object({ locale: z.string().optional().describe("Filter by locale (omit for all)") }),
|
|
2386
2386
|
annotations: { readOnlyHint: true }
|
|
2387
|
-
}, async (
|
|
2387
|
+
}, async (args, extra) => {
|
|
2388
2388
|
requireScope(extra, "content:read");
|
|
2389
2389
|
const ec = getDineway(extra);
|
|
2390
2390
|
try {
|
|
2391
|
-
|
|
2392
|
-
|
|
2393
|
-
name: row.name,
|
|
2394
|
-
label: row.label,
|
|
2395
|
-
labelSingular: row.label_singular ?? void 0,
|
|
2396
|
-
hierarchical: row.hierarchical === 1,
|
|
2397
|
-
collections: row.collections ? JSON.parse(row.collections) : []
|
|
2398
|
-
})));
|
|
2391
|
+
const { handleTaxonomyList } = await import("../../../taxonomies-aQXvYVPm.mjs").then((n) => n.l);
|
|
2392
|
+
return unwrap(await handleTaxonomyList(ec.db, { locale: args.locale }));
|
|
2399
2393
|
} catch (error) {
|
|
2400
2394
|
return errorResult(error);
|
|
2401
2395
|
}
|
|
@@ -2406,24 +2400,46 @@ function createMcpServer() {
|
|
|
2406
2400
|
inputSchema: z.object({
|
|
2407
2401
|
taxonomy: z.string().describe("Taxonomy name (e.g. 'categories', 'tags')"),
|
|
2408
2402
|
limit: z.number().int().min(1).max(100).optional().describe("Max items (default 50)"),
|
|
2409
|
-
cursor: z.string().optional().describe("Pagination cursor")
|
|
2403
|
+
cursor: z.string().min(1).max(2048).optional().describe("Pagination cursor"),
|
|
2404
|
+
locale: z.string().optional().describe("Filter by locale (omit for all)")
|
|
2410
2405
|
}),
|
|
2411
2406
|
annotations: { readOnlyHint: true }
|
|
2412
2407
|
}, async (args, extra) => {
|
|
2413
2408
|
requireScope(extra, "content:read");
|
|
2414
2409
|
const ec = getDineway(extra);
|
|
2415
2410
|
try {
|
|
2416
|
-
const
|
|
2417
|
-
|
|
2411
|
+
const { handleTaxonomyList } = await import("../../../taxonomies-aQXvYVPm.mjs").then((n) => n.l);
|
|
2412
|
+
const listResult = await handleTaxonomyList(ec.db, { locale: args.locale });
|
|
2413
|
+
if (!listResult.success) return unwrap(listResult);
|
|
2414
|
+
if (!listResult.data.taxonomies.find((t) => t.name === args.taxonomy)) return errorResult(`Taxonomy '${args.taxonomy}' not found`);
|
|
2415
|
+
const { TaxonomyRepository } = await import("../../../taxonomy-DI-0HgKe.mjs").then((n) => n.n);
|
|
2416
|
+
const { decodeCursor, encodeCursor } = await import("../../../types-D1DjBFA9.mjs").then((n) => n.i);
|
|
2417
|
+
const repo = new TaxonomyRepository(ec.db);
|
|
2418
2418
|
const limit = Math.min(args.limit ?? 50, 100);
|
|
2419
|
-
|
|
2420
|
-
|
|
2421
|
-
|
|
2422
|
-
|
|
2423
|
-
|
|
2419
|
+
const terms = await repo.findByName(args.taxonomy, { locale: args.locale });
|
|
2420
|
+
let startIdx = 0;
|
|
2421
|
+
if (args.cursor) {
|
|
2422
|
+
const decoded = decodeCursor(args.cursor);
|
|
2423
|
+
if (!decoded) return errorResult("Invalid cursor");
|
|
2424
|
+
startIdx = terms.findIndex((t) => t.label > decoded.orderValue || t.label === decoded.orderValue && t.id > decoded.id);
|
|
2425
|
+
if (startIdx < 0) startIdx = terms.length;
|
|
2426
|
+
}
|
|
2427
|
+
const page = terms.slice(startIdx, startIdx + limit);
|
|
2428
|
+
const hasMore = startIdx + limit < terms.length;
|
|
2429
|
+
const last = page.at(-1);
|
|
2430
|
+
const nextCursor = hasMore && last ? encodeCursor(last.label, last.id) : void 0;
|
|
2424
2431
|
return jsonResult({
|
|
2425
|
-
items
|
|
2426
|
-
|
|
2432
|
+
items: page.map((t) => ({
|
|
2433
|
+
id: t.id,
|
|
2434
|
+
name: t.name,
|
|
2435
|
+
slug: t.slug,
|
|
2436
|
+
label: t.label,
|
|
2437
|
+
parentId: t.parentId,
|
|
2438
|
+
description: typeof t.data?.description === "string" ? t.data.description : void 0,
|
|
2439
|
+
locale: t.locale,
|
|
2440
|
+
translationGroup: t.translationGroup
|
|
2441
|
+
})),
|
|
2442
|
+
nextCursor
|
|
2427
2443
|
});
|
|
2428
2444
|
} catch (error) {
|
|
2429
2445
|
return errorResult(error);
|
|
@@ -2431,72 +2447,242 @@ function createMcpServer() {
|
|
|
2431
2447
|
});
|
|
2432
2448
|
server.registerTool("taxonomy_create_term", {
|
|
2433
2449
|
title: "Create Taxonomy Term",
|
|
2434
|
-
description: "Create a new term in a taxonomy. For hierarchical taxonomies like categories, you can specify a parentId to create a child term.",
|
|
2450
|
+
description: "Create a new term in a taxonomy. For hierarchical taxonomies like categories, you can specify a parentId to create a child term. The parent must exist and belong to the same taxonomy.",
|
|
2435
2451
|
inputSchema: z.object({
|
|
2436
2452
|
taxonomy: z.string().describe("Taxonomy name (e.g. 'categories', 'tags')"),
|
|
2437
2453
|
slug: z.string().describe("URL-safe identifier for the term"),
|
|
2438
2454
|
label: z.string().describe("Display name"),
|
|
2439
2455
|
parentId: z.string().optional().describe("Parent term ID for hierarchical taxonomies"),
|
|
2440
|
-
description: z.string().optional().describe("Description of the term")
|
|
2456
|
+
description: z.string().optional().describe("Description of the term"),
|
|
2457
|
+
locale: z.string().optional().describe("Locale for the new term (e.g. 'es')"),
|
|
2458
|
+
translationOf: z.string().optional().describe("Term id to join as a translation (same translation_group)")
|
|
2441
2459
|
})
|
|
2442
2460
|
}, async (args, extra) => {
|
|
2443
|
-
requireScope(extra, "
|
|
2461
|
+
requireScope(extra, "taxonomies:manage");
|
|
2444
2462
|
requireRole(extra, Role.EDITOR);
|
|
2445
2463
|
const ec = getDineway(extra);
|
|
2446
2464
|
try {
|
|
2447
|
-
const {
|
|
2448
|
-
|
|
2449
|
-
if (!taxonomy) return errorResult(`Taxonomy '${args.taxonomy}' not found`);
|
|
2450
|
-
const id = ulid();
|
|
2451
|
-
await ec.db.insertInto("_dineway_taxonomy_terms").values({
|
|
2452
|
-
id,
|
|
2453
|
-
taxonomy_id: taxonomy.id,
|
|
2465
|
+
const { handleTermCreate } = await import("../../../taxonomies-aQXvYVPm.mjs").then((n) => n.l);
|
|
2466
|
+
return unwrap(await handleTermCreate(ec.db, args.taxonomy, {
|
|
2454
2467
|
slug: args.slug,
|
|
2455
2468
|
label: args.label,
|
|
2456
|
-
|
|
2457
|
-
description: args.description
|
|
2458
|
-
|
|
2459
|
-
|
|
2469
|
+
parentId: args.parentId,
|
|
2470
|
+
description: args.description,
|
|
2471
|
+
locale: args.locale,
|
|
2472
|
+
translationOf: args.translationOf
|
|
2473
|
+
}));
|
|
2474
|
+
} catch (error) {
|
|
2475
|
+
return errorResult(error);
|
|
2476
|
+
}
|
|
2477
|
+
});
|
|
2478
|
+
server.registerTool("taxonomy_update_term", {
|
|
2479
|
+
title: "Update Taxonomy Term",
|
|
2480
|
+
description: "Update an existing term in a taxonomy. Any field can be omitted to leave it unchanged. Renaming a term's slug must not collide with another term in the same taxonomy. Set parentId to null to detach from a parent.",
|
|
2481
|
+
inputSchema: z.object({
|
|
2482
|
+
taxonomy: z.string().describe("Taxonomy name (e.g. 'categories', 'tags')"),
|
|
2483
|
+
termSlug: z.string().describe("Current slug of the term to update"),
|
|
2484
|
+
slug: z.string().optional().describe("New slug (must be unique in the taxonomy)"),
|
|
2485
|
+
label: z.string().optional().describe("New display name"),
|
|
2486
|
+
parentId: z.string().nullable().optional().describe("New parent term ID; null to detach"),
|
|
2487
|
+
description: z.string().optional().describe("New description"),
|
|
2488
|
+
locale: z.string().optional().describe("Locale of the term to update")
|
|
2489
|
+
})
|
|
2490
|
+
}, async (args, extra) => {
|
|
2491
|
+
requireScope(extra, "taxonomies:manage");
|
|
2492
|
+
requireRole(extra, Role.EDITOR);
|
|
2493
|
+
const ec = getDineway(extra);
|
|
2494
|
+
try {
|
|
2495
|
+
const { handleTermUpdate } = await import("../../../taxonomies-aQXvYVPm.mjs").then((n) => n.l);
|
|
2496
|
+
return unwrap(await handleTermUpdate(ec.db, args.taxonomy, args.termSlug, {
|
|
2497
|
+
slug: args.slug,
|
|
2498
|
+
label: args.label,
|
|
2499
|
+
parentId: args.parentId,
|
|
2500
|
+
description: args.description
|
|
2501
|
+
}, { locale: args.locale }));
|
|
2502
|
+
} catch (error) {
|
|
2503
|
+
return errorResult(error);
|
|
2504
|
+
}
|
|
2505
|
+
});
|
|
2506
|
+
server.registerTool("taxonomy_delete_term", {
|
|
2507
|
+
title: "Delete Taxonomy Term",
|
|
2508
|
+
description: "Permanently delete a term from a taxonomy. Any content tagged with this term loses the association. Cannot delete a term that has children.",
|
|
2509
|
+
inputSchema: z.object({
|
|
2510
|
+
taxonomy: z.string().describe("Taxonomy name"),
|
|
2511
|
+
termSlug: z.string().describe("Slug of the term to delete"),
|
|
2512
|
+
locale: z.string().optional().describe("Locale of the term to delete")
|
|
2513
|
+
}),
|
|
2514
|
+
annotations: { destructiveHint: true }
|
|
2515
|
+
}, async (args, extra) => {
|
|
2516
|
+
requireScope(extra, "taxonomies:manage");
|
|
2517
|
+
requireRole(extra, Role.EDITOR);
|
|
2518
|
+
const ec = getDineway(extra);
|
|
2519
|
+
try {
|
|
2520
|
+
const { handleTermDelete } = await import("../../../taxonomies-aQXvYVPm.mjs").then((n) => n.l);
|
|
2521
|
+
return unwrap(await handleTermDelete(ec.db, args.taxonomy, args.termSlug, { locale: args.locale }));
|
|
2522
|
+
} catch (error) {
|
|
2523
|
+
return errorResult(error);
|
|
2524
|
+
}
|
|
2525
|
+
});
|
|
2526
|
+
server.registerTool("taxonomy_term_translations", {
|
|
2527
|
+
title: "List Term Translations",
|
|
2528
|
+
description: "Return every locale variant of a taxonomy term, identified via its shared translation_group.",
|
|
2529
|
+
inputSchema: z.object({ id: z.string().describe("Term id (or translation_group)") }),
|
|
2530
|
+
annotations: { readOnlyHint: true }
|
|
2531
|
+
}, async (args, extra) => {
|
|
2532
|
+
requireScope(extra, "content:read");
|
|
2533
|
+
const ec = getDineway(extra);
|
|
2534
|
+
try {
|
|
2535
|
+
const { handleTermTranslations } = await import("../../../taxonomies-aQXvYVPm.mjs").then((n) => n.l);
|
|
2536
|
+
return unwrap(await handleTermTranslations(ec.db, args.id));
|
|
2460
2537
|
} catch (error) {
|
|
2461
2538
|
return errorResult(error);
|
|
2462
2539
|
}
|
|
2463
2540
|
});
|
|
2464
2541
|
server.registerTool("menu_list", {
|
|
2465
2542
|
title: "List Menus",
|
|
2466
|
-
description: "List
|
|
2467
|
-
inputSchema: z.object({}),
|
|
2543
|
+
description: "List navigation menus. Menus are per-locale: filter by `locale` to get just one locale's worth, or omit to list every row (one per locale per menu name).",
|
|
2544
|
+
inputSchema: z.object({ locale: z.string().optional().describe("Filter by locale (omit for all)") }),
|
|
2468
2545
|
annotations: { readOnlyHint: true }
|
|
2469
|
-
}, async (
|
|
2546
|
+
}, async (args, extra) => {
|
|
2470
2547
|
requireScope(extra, "content:read");
|
|
2471
2548
|
const ec = getDineway(extra);
|
|
2472
2549
|
try {
|
|
2473
|
-
|
|
2474
|
-
|
|
2475
|
-
"name",
|
|
2476
|
-
"label",
|
|
2477
|
-
"created_at",
|
|
2478
|
-
"updated_at"
|
|
2479
|
-
]).orderBy("name", "asc").execute());
|
|
2550
|
+
const { handleMenuList } = await import("../../../menus-CwI7DQJ5.mjs").then((n) => n.d);
|
|
2551
|
+
return unwrap(await handleMenuList(ec.db, { locale: args.locale }));
|
|
2480
2552
|
} catch (error) {
|
|
2481
2553
|
return errorResult(error);
|
|
2482
2554
|
}
|
|
2483
2555
|
});
|
|
2484
2556
|
server.registerTool("menu_get", {
|
|
2485
2557
|
title: "Get Menu with Items",
|
|
2486
|
-
description: "Get a menu by name including
|
|
2487
|
-
inputSchema: z.object({
|
|
2558
|
+
description: "Get a menu by name, including its items. When multiple locales exist, pass `locale` to pick the right one.",
|
|
2559
|
+
inputSchema: z.object({
|
|
2560
|
+
name: z.string().describe("Menu name (e.g. 'main', 'footer')"),
|
|
2561
|
+
locale: z.string().optional().describe("Locale to resolve the menu for")
|
|
2562
|
+
}),
|
|
2488
2563
|
annotations: { readOnlyHint: true }
|
|
2489
2564
|
}, async (args, extra) => {
|
|
2490
2565
|
requireScope(extra, "content:read");
|
|
2491
2566
|
const ec = getDineway(extra);
|
|
2492
2567
|
try {
|
|
2493
|
-
const
|
|
2494
|
-
|
|
2495
|
-
|
|
2496
|
-
return
|
|
2497
|
-
|
|
2498
|
-
|
|
2499
|
-
|
|
2568
|
+
const { handleMenuGet } = await import("../../../menus-CwI7DQJ5.mjs").then((n) => n.d);
|
|
2569
|
+
return unwrap(await handleMenuGet(ec.db, args.name, { locale: args.locale }));
|
|
2570
|
+
} catch (error) {
|
|
2571
|
+
return errorResult(error);
|
|
2572
|
+
}
|
|
2573
|
+
});
|
|
2574
|
+
server.registerTool("menu_translations", {
|
|
2575
|
+
title: "List Menu Translations",
|
|
2576
|
+
description: "Return every locale variant of a menu, identified via the shared translation_group.",
|
|
2577
|
+
inputSchema: z.object({ id: z.string().describe("Menu id (or translation_group)") }),
|
|
2578
|
+
annotations: { readOnlyHint: true }
|
|
2579
|
+
}, async (args, extra) => {
|
|
2580
|
+
requireScope(extra, "content:read");
|
|
2581
|
+
const ec = getDineway(extra);
|
|
2582
|
+
try {
|
|
2583
|
+
const { handleMenuTranslations } = await import("../../../menus-CwI7DQJ5.mjs").then((n) => n.d);
|
|
2584
|
+
return unwrap(await handleMenuTranslations(ec.db, args.id));
|
|
2585
|
+
} catch (error) {
|
|
2586
|
+
return errorResult(error);
|
|
2587
|
+
}
|
|
2588
|
+
});
|
|
2589
|
+
server.registerTool("menu_create", {
|
|
2590
|
+
title: "Create Menu",
|
|
2591
|
+
description: "Create a new navigation menu. The `name` is the stable identifier used by site templates (e.g. 'main', 'footer'); `label` is the human-readable name shown in the admin. Menus are per-locale, so pass `locale` when the same menu name exists in multiple translations. Add items afterwards with menu_set_items. If `translationOf` is set, `locale` must also be set.",
|
|
2592
|
+
inputSchema: z.object({
|
|
2593
|
+
name: z.string().regex(COLLECTION_SLUG_PATTERN).describe("Stable identifier (lowercase letters, numbers, underscores)"),
|
|
2594
|
+
label: z.string().describe("Display name for the admin"),
|
|
2595
|
+
locale: z.string().optional().describe("Locale for this menu (e.g. 'fr-fr')"),
|
|
2596
|
+
translationOf: z.string().optional().describe("Existing menu id to create this locale variant from")
|
|
2597
|
+
})
|
|
2598
|
+
}, async (args, extra) => {
|
|
2599
|
+
requireScope(extra, "menus:manage");
|
|
2600
|
+
requireRole(extra, Role.EDITOR);
|
|
2601
|
+
const ec = getDineway(extra);
|
|
2602
|
+
try {
|
|
2603
|
+
const { handleMenuCreate } = await import("../../../menus-CwI7DQJ5.mjs").then((n) => n.d);
|
|
2604
|
+
return unwrap(await handleMenuCreate(ec.db, {
|
|
2605
|
+
name: args.name,
|
|
2606
|
+
label: args.label,
|
|
2607
|
+
locale: args.locale,
|
|
2608
|
+
translationOf: args.translationOf
|
|
2609
|
+
}));
|
|
2610
|
+
} catch (error) {
|
|
2611
|
+
return errorResult(error);
|
|
2612
|
+
}
|
|
2613
|
+
});
|
|
2614
|
+
server.registerTool("menu_update", {
|
|
2615
|
+
title: "Update Menu",
|
|
2616
|
+
description: "Update a menu's label. The `name` (stable identifier) cannot be changed. On multi-locale installs, pass `locale` so the correct translation is updated.",
|
|
2617
|
+
inputSchema: z.object({
|
|
2618
|
+
name: z.string().describe("Menu name to update"),
|
|
2619
|
+
label: z.string().describe("New display label"),
|
|
2620
|
+
locale: z.string().optional().describe("Locale of the menu to update")
|
|
2621
|
+
})
|
|
2622
|
+
}, async (args, extra) => {
|
|
2623
|
+
requireScope(extra, "menus:manage");
|
|
2624
|
+
requireRole(extra, Role.EDITOR);
|
|
2625
|
+
const ec = getDineway(extra);
|
|
2626
|
+
try {
|
|
2627
|
+
const { handleMenuUpdate } = await import("../../../menus-CwI7DQJ5.mjs").then((n) => n.d);
|
|
2628
|
+
return unwrap(await handleMenuUpdate(ec.db, args.name, {
|
|
2629
|
+
label: args.label,
|
|
2630
|
+
locale: args.locale
|
|
2631
|
+
}));
|
|
2632
|
+
} catch (error) {
|
|
2633
|
+
return errorResult(error);
|
|
2634
|
+
}
|
|
2635
|
+
});
|
|
2636
|
+
server.registerTool("menu_delete", {
|
|
2637
|
+
title: "Delete Menu",
|
|
2638
|
+
description: "Delete a menu. Items are also removed. Cannot be undone. On multi-locale installs, pass `locale` so only the intended translation is removed.",
|
|
2639
|
+
inputSchema: z.object({
|
|
2640
|
+
name: z.string().describe("Menu name to delete"),
|
|
2641
|
+
locale: z.string().optional().describe("Locale of the menu to delete")
|
|
2642
|
+
}),
|
|
2643
|
+
annotations: { destructiveHint: true }
|
|
2644
|
+
}, async (args, extra) => {
|
|
2645
|
+
requireScope(extra, "menus:manage");
|
|
2646
|
+
requireRole(extra, Role.EDITOR);
|
|
2647
|
+
const ec = getDineway(extra);
|
|
2648
|
+
try {
|
|
2649
|
+
const { handleMenuDelete } = await import("../../../menus-CwI7DQJ5.mjs").then((n) => n.d);
|
|
2650
|
+
return unwrap(await handleMenuDelete(ec.db, args.name, { locale: args.locale }));
|
|
2651
|
+
} catch (error) {
|
|
2652
|
+
return errorResult(error);
|
|
2653
|
+
}
|
|
2654
|
+
});
|
|
2655
|
+
server.registerTool("menu_set_items", {
|
|
2656
|
+
title: "Set Menu Items",
|
|
2657
|
+
description: "Replace the entire item list of a menu in one call. This is atomic: the existing items are deleted and the new list is inserted in the order provided. Use this rather than per-item add/remove tools so the resulting order and parent links are unambiguous. On multi-locale installs, pass `locale` so only the intended translation is rewritten.",
|
|
2658
|
+
inputSchema: z.object({
|
|
2659
|
+
name: z.string().describe("Menu name to update"),
|
|
2660
|
+
locale: z.string().optional().describe("Locale of the menu to rewrite"),
|
|
2661
|
+
items: z.array(z.object({
|
|
2662
|
+
label: z.string().describe("Item display text"),
|
|
2663
|
+
type: z.enum([
|
|
2664
|
+
"custom",
|
|
2665
|
+
"page",
|
|
2666
|
+
"post",
|
|
2667
|
+
"taxonomy",
|
|
2668
|
+
"collection"
|
|
2669
|
+
]).describe("Item kind"),
|
|
2670
|
+
customUrl: z.string().optional().describe("URL for type='custom' items (ignored otherwise)"),
|
|
2671
|
+
referenceCollection: z.string().optional().describe("Target collection slug for content references"),
|
|
2672
|
+
referenceId: z.string().optional().describe("Target content/term ID for references"),
|
|
2673
|
+
titleAttr: z.string().optional().describe("HTML title attribute"),
|
|
2674
|
+
target: z.string().optional().describe("HTML target attribute, e.g. '_blank'"),
|
|
2675
|
+
cssClasses: z.string().optional().describe("Space-separated CSS classes"),
|
|
2676
|
+
parentIndex: z.number().int().nonnegative().optional().describe("Array index of the parent item (must be earlier in the list). Omit for top-level items.")
|
|
2677
|
+
})).describe("Ordered list of menu items")
|
|
2678
|
+
})
|
|
2679
|
+
}, async (args, extra) => {
|
|
2680
|
+
requireScope(extra, "menus:manage");
|
|
2681
|
+
requireRole(extra, Role.EDITOR);
|
|
2682
|
+
const ec = getDineway(extra);
|
|
2683
|
+
try {
|
|
2684
|
+
const { handleMenuSetItems } = await import("../../../menus-CwI7DQJ5.mjs").then((n) => n.d);
|
|
2685
|
+
return unwrap(await handleMenuSetItems(ec.db, args.name, args.items, { locale: args.locale }));
|
|
2500
2686
|
} catch (error) {
|
|
2501
2687
|
return errorResult(error);
|
|
2502
2688
|
}
|
|
@@ -2542,7 +2728,7 @@ function createMcpServer() {
|
|
|
2542
2728
|
requireRole(extra, Role.ADMIN);
|
|
2543
2729
|
const ec = getDineway(extra);
|
|
2544
2730
|
try {
|
|
2545
|
-
const { handleSettingsGet } = await import("../../../settings-
|
|
2731
|
+
const { handleSettingsGet } = await import("../../../settings-BGCo_c2y.mjs").then((n) => n.r);
|
|
2546
2732
|
return unwrap(await handleSettingsGet(ec.db, ec.storage));
|
|
2547
2733
|
} catch (error) {
|
|
2548
2734
|
return errorResult(error);
|
|
@@ -2579,7 +2765,7 @@ function createMcpServer() {
|
|
|
2579
2765
|
request
|
|
2580
2766
|
});
|
|
2581
2767
|
}
|
|
2582
|
-
const { handleSettingsUpdate } = await import("../../../settings-
|
|
2768
|
+
const { handleSettingsUpdate } = await import("../../../settings-BGCo_c2y.mjs").then((n) => n.r);
|
|
2583
2769
|
const result = await handleSettingsUpdate(ec.db, ec.storage, settingsInput);
|
|
2584
2770
|
if (!result.success) return unwrap(result);
|
|
2585
2771
|
await logSiteActivitySafely(ec.db, locals, {
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import "../../../../../context-types-
|
|
2
|
-
import { n as apiSuccess, r as handleError, t as apiError } from "../../../../../error-
|
|
3
|
-
import { r as parseOptionalBody, t as isParseError } from "../../../../../parse-
|
|
4
|
-
import {
|
|
5
|
-
import "../../../../../import-
|
|
1
|
+
import "../../../../../context-types-DuiyY6xF.mjs";
|
|
2
|
+
import { n as apiSuccess, r as handleError, t as apiError } from "../../../../../error-Dyf9fGZE.mjs";
|
|
3
|
+
import { r as parseOptionalBody, t as isParseError } from "../../../../../parse-BBfZRZYb.mjs";
|
|
4
|
+
import { Bt as mediaConfirmBody } from "../../../../../redirects-xVDvj_yQ.mjs";
|
|
5
|
+
import "../../../../../import-DE2ziezs.mjs";
|
|
6
6
|
import "../../../../../api/schemas/index.mjs";
|
|
7
|
-
import { n as requirePerm, t as requireOwnerPerm } from "../../../../../authorize-
|
|
7
|
+
import { n as requirePerm, t as requireOwnerPerm } from "../../../../../authorize-wQDmXQJ1.mjs";
|
|
8
8
|
import { MediaRepository } from "dineway";
|
|
9
9
|
|
|
10
10
|
//#region src/astro/routes/api/media/[id]/confirm.ts
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import "../../../../context-types-
|
|
2
|
-
import { a as unwrapResult, r as handleError, t as apiError } from "../../../../error-
|
|
3
|
-
import { n as parseBody, t as isParseError } from "../../../../parse-
|
|
4
|
-
import {
|
|
5
|
-
import "../../../../import-
|
|
1
|
+
import "../../../../context-types-DuiyY6xF.mjs";
|
|
2
|
+
import { a as unwrapResult, r as handleError, t as apiError } from "../../../../error-Dyf9fGZE.mjs";
|
|
3
|
+
import { n as parseBody, t as isParseError } from "../../../../parse-BBfZRZYb.mjs";
|
|
4
|
+
import { Jt as mediaUpdateBody } from "../../../../redirects-xVDvj_yQ.mjs";
|
|
5
|
+
import "../../../../import-DE2ziezs.mjs";
|
|
6
6
|
import "../../../../api/schemas/index.mjs";
|
|
7
|
-
import { n as requirePerm, t as requireOwnerPerm } from "../../../../authorize-
|
|
7
|
+
import { n as requirePerm, t as requireOwnerPerm } from "../../../../authorize-wQDmXQJ1.mjs";
|
|
8
8
|
|
|
9
9
|
//#region src/astro/routes/api/media/[id].ts
|
|
10
10
|
const prerender = false;
|