dineway 0.2.39 → 0.2.41
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/dist/{activity-LXZdjKwI.mjs → activity-BuhkMdv8.mjs} +2 -2
- package/dist/{activity-events-DoqeOM8x.mjs → activity-events-DkHsy7Y0.mjs} +1 -1
- package/dist/{allowed-origins-DiVrMLxh.mjs → allowed-origins-Clitkhiv.mjs} +1 -1
- package/dist/api/route-utils.d.mts +15 -12
- package/dist/api/route-utils.mjs +27 -20
- package/dist/api/schemas/index.d.mts +1 -1
- package/dist/api/schemas/index.mjs +10 -5
- package/dist/{api-COSxvdOi.mjs → api-CMbsIQ46.mjs} +41 -13
- package/dist/{api-tokens-CNHnKO57.mjs → api-tokens-ciHNTdN2.mjs} +1 -1
- package/dist/{apply-D4rZHDyg.mjs → apply-B5qoX19G.mjs} +62 -18
- package/dist/astro/index.d.mts +16 -13
- package/dist/astro/index.mjs +31 -5
- package/dist/astro/middleware/auth.d.mts +14 -11
- package/dist/astro/middleware/auth.mjs +8 -8
- package/dist/astro/middleware/redirect.mjs +10 -6
- package/dist/astro/middleware/request-context.mjs +5 -5
- package/dist/astro/middleware/seed.d.mts +1 -1
- package/dist/astro/middleware/seed.mjs +2 -2
- package/dist/astro/middleware/setup.mjs +1 -1
- package/dist/astro/middleware.d.mts +2 -2
- package/dist/astro/middleware.mjs +266 -176
- package/dist/astro/routes/api/admin/allowed-domains/_domain_.mjs +12 -7
- package/dist/astro/routes/api/admin/allowed-domains/index.mjs +12 -7
- package/dist/astro/routes/api/admin/api-tokens/_id_.mjs +4 -4
- package/dist/astro/routes/api/admin/api-tokens/index.mjs +7 -7
- package/dist/astro/routes/api/admin/briefing.mjs +41 -22
- package/dist/astro/routes/api/admin/byline-fields/_slug_/usage.mjs +4 -4
- package/dist/astro/routes/api/admin/byline-fields/_slug_.mjs +14 -10
- package/dist/astro/routes/api/admin/byline-fields/index.mjs +14 -10
- package/dist/astro/routes/api/admin/byline-fields/reorder.mjs +14 -10
- package/dist/astro/routes/api/admin/bylines/_id_/index.mjs +25 -19
- package/dist/astro/routes/api/admin/bylines/_id_/translations.mjs +25 -19
- package/dist/astro/routes/api/admin/bylines/index.mjs +25 -19
- package/dist/astro/routes/api/admin/comments/_id_/status.mjs +20 -16
- package/dist/astro/routes/api/admin/comments/_id_.mjs +10 -7
- package/dist/astro/routes/api/admin/comments/bulk.mjs +18 -13
- package/dist/astro/routes/api/admin/comments/counts.mjs +10 -7
- package/dist/astro/routes/api/admin/comments/index.mjs +18 -13
- package/dist/astro/routes/api/admin/context/_id_/history.mjs +51 -39
- package/dist/astro/routes/api/admin/context/_id_/index.mjs +51 -39
- package/dist/astro/routes/api/admin/context/_id_/review.mjs +57 -44
- package/dist/astro/routes/api/admin/context/_id_/supersede.mjs +57 -44
- package/dist/astro/routes/api/admin/context/diff.mjs +56 -43
- package/dist/astro/routes/api/admin/context/index.mjs +57 -44
- package/dist/astro/routes/api/admin/context/stale.mjs +56 -43
- package/dist/astro/routes/api/admin/hitl-requests/_id_/index.mjs +51 -39
- package/dist/astro/routes/api/admin/hitl-requests/_id_/resolve.mjs +56 -43
- package/dist/astro/routes/api/admin/hitl-requests/index.mjs +56 -43
- package/dist/astro/routes/api/admin/hooks/exclusive/_hookName_.mjs +52 -40
- package/dist/astro/routes/api/admin/hooks/exclusive/index.mjs +3 -3
- package/dist/astro/routes/api/admin/oauth-clients/_id_.mjs +7 -7
- package/dist/astro/routes/api/admin/oauth-clients/index.mjs +7 -7
- package/dist/astro/routes/api/admin/plugins/_id_/disable.mjs +78 -68
- package/dist/astro/routes/api/admin/plugins/_id_/enable.mjs +78 -68
- package/dist/astro/routes/api/admin/plugins/_id_/index.mjs +71 -60
- package/dist/astro/routes/api/admin/plugins/_id_/uninstall.mjs +78 -67
- package/dist/astro/routes/api/admin/plugins/_id_/update.mjs +78 -67
- package/dist/astro/routes/api/admin/plugins/index.mjs +71 -60
- package/dist/astro/routes/api/admin/plugins/marketplace/_id_/icon.mjs +2 -2
- package/dist/astro/routes/api/admin/plugins/marketplace/_id_/index.mjs +71 -60
- package/dist/astro/routes/api/admin/plugins/marketplace/_id_/install.mjs +78 -67
- package/dist/astro/routes/api/admin/plugins/marketplace/index.mjs +71 -60
- package/dist/astro/routes/api/admin/plugins/updates.mjs +71 -60
- package/dist/astro/routes/api/admin/review-requests/_id_/image.mjs +38 -23
- package/dist/astro/routes/api/admin/review-requests/_id_/index.mjs +46 -36
- package/dist/astro/routes/api/admin/review-requests/_id_/resolve.mjs +63 -52
- package/dist/astro/routes/api/admin/review-requests/_id_/revoke.mjs +9 -9
- package/dist/astro/routes/api/admin/review-requests/index.mjs +61 -50
- package/dist/astro/routes/api/admin/themes/marketplace/_id_/index.mjs +71 -60
- package/dist/astro/routes/api/admin/themes/marketplace/_id_/thumbnail.mjs +2 -2
- package/dist/astro/routes/api/admin/themes/marketplace/index.mjs +71 -60
- package/dist/astro/routes/api/admin/users/_id_/disable.mjs +1 -1
- package/dist/astro/routes/api/admin/users/_id_/enable.mjs +1 -1
- package/dist/astro/routes/api/admin/users/_id_/index.mjs +11 -7
- package/dist/astro/routes/api/admin/users/_id_/send-recovery.mjs +3 -3
- package/dist/astro/routes/api/admin/users/index.mjs +12 -7
- package/dist/astro/routes/api/auth/dev-bypass.mjs +4 -4
- package/dist/astro/routes/api/auth/invite/accept.mjs +1 -1
- package/dist/astro/routes/api/auth/invite/complete.mjs +17 -12
- package/dist/astro/routes/api/auth/invite/index.mjs +14 -9
- package/dist/astro/routes/api/auth/invite/register-options.mjs +16 -11
- package/dist/astro/routes/api/auth/logout.mjs +2 -2
- package/dist/astro/routes/api/auth/magic-link/send.mjs +17 -12
- package/dist/astro/routes/api/auth/magic-link/verify.mjs +2 -2
- package/dist/astro/routes/api/auth/me.mjs +14 -11
- package/dist/astro/routes/api/auth/mode.mjs +1 -1
- package/dist/astro/routes/api/auth/oauth/_provider_/callback.mjs +3 -3
- package/dist/astro/routes/api/auth/oauth/_provider_.mjs +3 -3
- package/dist/astro/routes/api/auth/passkey/_id_.mjs +12 -7
- package/dist/astro/routes/api/auth/passkey/index.mjs +1 -1
- package/dist/astro/routes/api/auth/passkey/options.mjs +19 -14
- package/dist/astro/routes/api/auth/passkey/register/options.mjs +16 -11
- package/dist/astro/routes/api/auth/passkey/register/verify.mjs +17 -12
- package/dist/astro/routes/api/auth/passkey/verify.mjs +17 -12
- package/dist/astro/routes/api/auth/setup-token/index.mjs +6 -6
- package/dist/astro/routes/api/auth/setup-token/verify.mjs +2 -2
- package/dist/astro/routes/api/auth/signup/complete.mjs +17 -12
- package/dist/astro/routes/api/auth/signup/request.mjs +17 -12
- package/dist/astro/routes/api/auth/signup/verify.mjs +1 -1
- package/dist/astro/routes/api/comments/_collection_/_contentId_/index.d.mts +14 -11
- package/dist/astro/routes/api/comments/_collection_/_contentId_/index.mjs +23 -19
- package/dist/astro/routes/api/comments/_collection_/_contentId_/reactions.mjs +23 -18
- package/dist/astro/routes/api/content/_collection_/_id_/compare.mjs +2 -2
- package/dist/astro/routes/api/content/_collection_/_id_/discard-draft.mjs +8 -8
- package/dist/astro/routes/api/content/_collection_/_id_/duplicate.mjs +8 -8
- package/dist/astro/routes/api/content/_collection_/_id_/permanent.mjs +8 -8
- package/dist/astro/routes/api/content/_collection_/_id_/preview-url.mjs +25 -20
- package/dist/astro/routes/api/content/_collection_/_id_/publish.mjs +41 -31
- package/dist/astro/routes/api/content/_collection_/_id_/release-readiness.mjs +14 -9
- package/dist/astro/routes/api/content/_collection_/_id_/restore.mjs +8 -8
- package/dist/astro/routes/api/content/_collection_/_id_/revisions.mjs +2 -2
- package/dist/astro/routes/api/content/_collection_/_id_/schedule.mjs +41 -31
- package/dist/astro/routes/api/content/_collection_/_id_/terms/_taxonomy_.mjs +30 -20
- package/dist/astro/routes/api/content/_collection_/_id_/translations.mjs +2 -2
- package/dist/astro/routes/api/content/_collection_/_id_/unpublish.mjs +8 -8
- package/dist/astro/routes/api/content/_collection_/_id_.mjs +25 -14
- package/dist/astro/routes/api/content/_collection_/authors.mjs +2 -2
- package/dist/astro/routes/api/content/_collection_/index.mjs +25 -14
- package/dist/astro/routes/api/content/_collection_/trash.mjs +13 -8
- package/dist/astro/routes/api/dashboard.mjs +21 -13
- 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 +30 -23
- package/dist/astro/routes/api/import/wordpress/analyze.mjs +13 -10
- package/dist/astro/routes/api/import/wordpress/execute.d.mts +14 -11
- package/dist/astro/routes/api/import/wordpress/execute.mjs +58 -47
- package/dist/astro/routes/api/import/wordpress/media.d.mts +14 -11
- package/dist/astro/routes/api/import/wordpress/media.mjs +17 -14
- package/dist/astro/routes/api/import/wordpress/prepare.mjs +61 -48
- package/dist/astro/routes/api/import/wordpress/rewrite-urls.d.mts +15 -12
- package/dist/astro/routes/api/import/wordpress/rewrite-urls.mjs +58 -45
- package/dist/astro/routes/api/import/wordpress-plugin/analyze.d.mts +1 -1
- package/dist/astro/routes/api/import/wordpress-plugin/analyze.mjs +32 -26
- package/dist/astro/routes/api/import/wordpress-plugin/callback.mjs +1 -1
- package/dist/astro/routes/api/import/wordpress-plugin/execute.d.mts +14 -11
- package/dist/astro/routes/api/import/wordpress-plugin/execute.mjs +63 -52
- package/dist/astro/routes/api/integration/artifact.mjs +9 -9
- package/dist/astro/routes/api/integration/dispatch.mjs +14 -14
- package/dist/astro/routes/api/integrations/_provider_.mjs +9 -9
- package/dist/astro/routes/api/integrations/index.mjs +8 -8
- package/dist/astro/routes/api/manifest.mjs +5 -5
- package/dist/astro/routes/api/mcp.mjs +141 -93
- package/dist/astro/routes/api/media/_id_/confirm.mjs +15 -12
- package/dist/astro/routes/api/media/_id_.mjs +14 -9
- 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 +16 -13
- package/dist/astro/routes/api/media.mjs +19 -16
- package/dist/astro/routes/api/menus/_name_/items/_id_.mjs +57 -44
- package/dist/astro/routes/api/menus/_name_/items.mjs +57 -44
- package/dist/astro/routes/api/menus/_name_/reorder.mjs +57 -44
- package/dist/astro/routes/api/menus/_name_/translations.mjs +57 -44
- package/dist/astro/routes/api/menus/_name_.mjs +57 -44
- package/dist/astro/routes/api/menus/index.mjs +57 -44
- package/dist/astro/routes/api/oauth/authorize.mjs +7 -7
- package/dist/astro/routes/api/oauth/device/authorize.mjs +5 -5
- 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 +5 -5
- package/dist/astro/routes/api/oauth/token/revoke.mjs +5 -5
- package/dist/astro/routes/api/oauth/token.mjs +6 -6
- package/dist/astro/routes/api/openapi.json.mjs +10 -5
- package/dist/astro/routes/api/plugins/_pluginId_/_...path_.mjs +4 -4
- package/dist/astro/routes/api/redirects/404s/index.mjs +15 -13
- package/dist/astro/routes/api/redirects/404s/summary.mjs +15 -13
- package/dist/astro/routes/api/redirects/_id_.mjs +57 -44
- package/dist/astro/routes/api/redirects/index.mjs +57 -44
- 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 +73 -62
- package/dist/astro/routes/api/schema/collections/_slug_/fields/index.mjs +73 -62
- package/dist/astro/routes/api/schema/collections/_slug_/fields/reorder.mjs +73 -62
- package/dist/astro/routes/api/schema/collections/_slug_/index.mjs +73 -62
- package/dist/astro/routes/api/schema/collections/index.mjs +73 -62
- package/dist/astro/routes/api/schema/index.mjs +13 -10
- package/dist/astro/routes/api/schema/orphans/_slug_.mjs +71 -60
- package/dist/astro/routes/api/schema/orphans/index.mjs +71 -60
- package/dist/astro/routes/api/search/enable.mjs +20 -13
- package/dist/astro/routes/api/search/index.mjs +19 -12
- package/dist/astro/routes/api/search/rebuild.mjs +20 -13
- package/dist/astro/routes/api/search/stats.mjs +12 -7
- package/dist/astro/routes/api/search/suggest.mjs +19 -12
- package/dist/astro/routes/api/sections/_slug_.mjs +57 -44
- package/dist/astro/routes/api/sections/index.mjs +57 -44
- package/dist/astro/routes/api/settings/email.mjs +5 -5
- package/dist/astro/routes/api/settings/reviews.mjs +11 -11
- package/dist/astro/routes/api/settings.mjs +57 -44
- package/dist/astro/routes/api/setup/admin-verify.mjs +19 -14
- package/dist/astro/routes/api/setup/admin.mjs +17 -12
- package/dist/astro/routes/api/setup/dev-bypass.mjs +44 -32
- package/dist/astro/routes/api/setup/dev-reset.mjs +2 -2
- package/dist/astro/routes/api/setup/index.mjs +47 -34
- package/dist/astro/routes/api/setup/status.mjs +3 -3
- package/dist/astro/routes/api/snapshot.mjs +9 -9
- package/dist/astro/routes/api/system/heartbeat.mjs +2 -2
- package/dist/astro/routes/api/taxonomies/_name_/terms/_slug_/translations.mjs +60 -47
- package/dist/astro/routes/api/taxonomies/_name_/terms/_slug_.mjs +60 -47
- package/dist/astro/routes/api/taxonomies/_name_/terms/index.mjs +60 -47
- package/dist/astro/routes/api/taxonomies/index.mjs +60 -47
- package/dist/astro/routes/api/themes/preview.mjs +7 -7
- 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 +56 -43
- package/dist/astro/routes/api/widget-areas/_name_/widgets/_id_.mjs +57 -44
- package/dist/astro/routes/api/widget-areas/_name_/widgets.mjs +57 -44
- package/dist/astro/routes/api/widget-areas/_name_.mjs +53 -41
- package/dist/astro/routes/api/widget-areas/index.mjs +57 -44
- package/dist/astro/routes/api/widget-components.mjs +2 -2
- package/dist/astro/routes/robots.txt.mjs +14 -9
- package/dist/astro/routes/sitemap-_collection_.xml.mjs +20 -16
- package/dist/astro/routes/sitemap.xml.mjs +19 -15
- package/dist/astro/session-driver.d.mts +1 -1
- package/dist/astro/session-driver.mjs +8 -3
- package/dist/astro/types.d.mts +21 -14
- package/dist/{atomic-authority-CnBQJ14T.mjs → atomic-authority-Bf5QZboB.mjs} +2 -2
- package/dist/{audit-Cl495Ze3.mjs → audit-hXJBTPY0.mjs} +1 -1
- package/dist/auth/providers/github.d.mts +1 -1
- package/dist/auth/providers/google.d.mts +1 -1
- package/dist/{auth-control-guard-DbjgJdlo.mjs → auth-control-guard-DpUP6Fs_.mjs} +1 -1
- package/dist/{authorize-DDmgmnW-.mjs → authorize-DWNOqMKq.mjs} +1 -1
- package/dist/{briefing-DsD-Ouwc.mjs → briefing-BzvBeIJh.mjs} +1 -1
- package/dist/{briefing-COw-WcYz.mjs → briefing-DYiV93rg.mjs} +995 -7
- package/dist/{bundle-bhiszAui.mjs → bundle-DWn5eFKz.mjs} +2 -2
- package/dist/{byline-TYk2kad6.mjs → byline-3qjp1-oa.mjs} +65 -14
- package/dist/{byline-fields-CKhPED5o.d.mts → byline-fields-Bne2v0ti.d.mts} +42 -38
- package/dist/{byline-fields-BKj5f3Ub.mjs → byline-fields-DRMCc0V_.mjs} +1 -1
- package/dist/{byline-fields-DZ46DF10.mjs → byline-fields-wWu2Cb3l.mjs} +3 -3
- package/dist/{byline-registry-CJihchD1.mjs → byline-registry-Caj0_gbU.mjs} +1 -1
- package/dist/{bylines-6T9iVC9j.mjs → bylines-BSn9O1Wx.mjs} +3 -3
- package/dist/{bylines-CvTSCAw9.mjs → bylines-CGuJi-zu.mjs} +5 -5
- package/dist/{patterns-Ay-4KImK.mjs → cache-DsEbwFVE.mjs} +51 -1
- package/dist/{chunks-C8vSD_5L.mjs → chunks-Bb56aCtB.mjs} +1 -1
- package/dist/cli/index.mjs +488 -58
- package/dist/cli/plugin-kit.d.mts +14 -11
- package/dist/cli/plugin-kit.mjs +2 -2
- package/dist/client/external-auth-headers.d.mts +1 -1
- package/dist/client/index.d.mts +16 -13
- package/dist/client/index.mjs +2 -2
- package/dist/{client-factory-C1ZQCMog.mjs → client-factory-BLbm250o.mjs} +1 -1
- package/dist/{comment-DAQfUjqt.mjs → comment-BWDG1nQm.mjs} +2 -2
- package/dist/{comment-reaction-Dp3G7UZc.mjs → comment-reaction-B7pLTlQ7.mjs} +1 -1
- package/dist/{comments-BrvIaRAx.mjs → comments-xkten8nV.mjs} +1 -1
- package/dist/config-6R0bchVE.mjs +125 -0
- package/dist/{content-CIKsrvU9.mjs → content-BigS8BAv.mjs} +302 -45
- package/dist/content-Dr22fzA_.mjs +390 -0
- package/dist/{content-refresh-BilzqcLt.mjs → content-refresh-DJuFIqQ4.mjs} +14 -8
- package/dist/content-storage/index.d.mts +180 -0
- package/dist/content-storage/index.mjs +29 -0
- package/dist/content-storage/store.d.mts +3 -0
- package/dist/content-storage/store.mjs +5 -0
- package/dist/{review-payload-Bap86e75.mjs → content-write-DAZCNKWl.mjs} +838 -131
- package/dist/{context-DAs_MZjJ.mjs → context-0806nV9h.mjs} +292 -23
- package/dist/{context-DVTvucNb.mjs → context-CCsI5nTK.mjs} +2 -2
- package/dist/{context-route-helpers-BP-UJ4u8.mjs → context-route-helpers-TP3EqxRQ.mjs} +2 -2
- package/dist/{dashboard-BAjWCGCP.mjs → dashboard-CSrnhBO6.mjs} +4 -4
- package/dist/database/batch.d.mts +1 -1
- package/dist/database/batch.mjs +1 -1
- package/dist/database/d1/index.d.mts +14 -11
- package/dist/database/d1/index.mjs +4 -4
- package/dist/database/instrumentation.mjs +3 -2
- package/dist/db/index.d.mts +3 -3
- package/dist/db/index.mjs +1 -1
- 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-Dh0rNlh1.mjs → device-flow-SoZh-HvN.mjs} +3 -3
- package/dist/{discovery-V0e0Gg8j.mjs → discovery-49qXmdwv.mjs} +4 -4
- package/dist/{enrich-B7PIJ8Iy.mjs → enrich-CAMsD1aT.mjs} +1 -1
- package/dist/{error-B5a45Tfb.mjs → error-sL4aemcW.mjs} +2 -0
- package/dist/{evidence-Vnp_fQbC.mjs → evidence-B3O9_VKm.mjs} +7 -7
- package/dist/{field-defs-cache-aXUeXJdC.mjs → field-defs-cache-dn5Tw79A.mjs} +4 -4
- package/dist/{fts-manager-BrPpYtK0.mjs → fts-manager-Zu5ITic0.mjs} +1 -1
- package/dist/{hitl-requests-BxMMON3s.mjs → hitl-requests-B5vOPseK.mjs} +2 -2
- package/dist/{hitl-route-helpers-sdnjpx2k.mjs → hitl-route-helpers-C3icmGdj.mjs} +5 -5
- package/dist/hook-events-BQw73jc7.d.mts +32 -0
- package/dist/{import-C2-v4FCs.mjs → import-CKnKQj3f.mjs} +9 -9
- package/dist/{index-BVGe04wF.d.mts → index-CLj17kW9.d.mts} +12 -5
- package/dist/index.d.mts +19 -16
- package/dist/index.mjs +107 -98
- package/dist/{integration-credentials-DMEXZU2J.mjs → integration-credentials-DpuRw1kx.mjs} +2 -2
- package/dist/{jsonld-XWmmAoVo.d.mts → jsonld-CN91qtDw.d.mts} +2 -2
- package/dist/{load-DvCVppOF.mjs → load-CiRTddkJ.mjs} +1 -1
- package/dist/{loader-Dp6zLmQm.mjs → loader-CCwWFQSh.mjs} +16 -5
- package/dist/{manifest-schema-CCvogfrP.mjs → manifest-schema-DaQpgyTB.mjs} +1 -1
- package/dist/{mcp-reviewed-executor-B8Gbin3T.mjs → mcp-reviewed-executor-DA6Q9sDc.mjs} +6 -6
- package/dist/media/image-endpoint.mjs +1 -1
- package/dist/media/index.d.mts +1 -1
- package/dist/media/index.mjs +2 -2
- package/dist/media/local-runtime.d.mts +16 -13
- package/dist/media/local-runtime.mjs +3 -3
- package/dist/{media-C5ba8fvI.mjs → media-BjH5OD-A.mjs} +1 -1
- package/dist/{media-allowlist-DQvscVkS.mjs → media-allowlist-C8HJ2O61.mjs} +1 -1
- package/dist/{menus-CyNpBQrX.mjs → menus-CbBi7Ad7.mjs} +2 -2
- package/dist/{menus-w5xwT-f5.mjs → menus-D0c8CeVg.mjs} +7 -7
- package/dist/migration-DJuj7ZwN.mjs +526 -0
- package/dist/{migrations-CLlX25HO.mjs → migrations-BAjF60cl.mjs} +1 -1
- package/dist/{oauth-authorization-CdqJZUMf.mjs → oauth-authorization-CSSRMOKn.mjs} +4 -4
- package/dist/{oauth-clients-CHNb9MAZ.mjs → oauth-clients-DX5HIJJv.mjs} +2 -2
- package/dist/object-cache/memory.d.mts +1 -1
- package/dist/{object-cache-mxCW-Rpt.mjs → object-cache-DyI1SOBK.mjs} +3 -1
- package/dist/owned-metadata-BPmUjZqI.mjs +69 -0
- package/dist/page/index.d.mts +15 -12
- package/dist/page/index.mjs +1 -1
- package/dist/{parse-THHCpJLB.mjs → parse-C6kCR1OT.mjs} +1 -1
- package/dist/plugin-utils.d.mts +14 -11
- package/dist/plugins/adapt-sandbox-entry.d.mts +14 -11
- package/dist/plugins/adapt-sandbox-entry.mjs +1 -1
- package/dist/{plugins-pfraURNp.mjs → plugins-V0W65r3v.mjs} +16 -962
- package/dist/{policy-B6mVa7ib.mjs → policy-DbceGc4P.mjs} +2 -2
- package/dist/{preview-Bh7D7F27.mjs → preview-CWiIjMDi.mjs} +2 -2
- package/dist/{provider-loader-DT7vQ5FI.d.mts → provider-loader-oLKm1AU8.d.mts} +1 -1
- package/dist/{public-url-Ccv0Xmue.d.mts → public-url-CEC1vj02.d.mts} +2 -2
- package/dist/{public-url-BvnTaacI.d.mts → public-url-CKrUov8D.d.mts} +1 -1
- package/dist/{publication-authorization-B_HJSnzR.mjs → publication-authorization-wMR-tEQ_.mjs} +43 -17
- package/dist/{query-xspvw7Ui.mjs → query-DDi367tF.mjs} +14 -14
- package/dist/{query-DLeahg3x.mjs → query-DLnnpEuf.mjs} +4 -4
- package/dist/{rate-limit-BsBr_U9g.mjs → rate-limit-DeVLLe4z.mjs} +2 -2
- package/dist/{redirect-BQFa1THe.mjs → redirect-CJ-FAbNK.mjs} +2 -2
- package/dist/{redirects-DJcsgz_X.mjs → redirects-BKi6mek4.mjs} +4 -5
- package/dist/{redirects-CVfxefrz.mjs → redirects-I78-ZYLV.mjs} +5 -386
- package/dist/{registry-Dclv9iHv.mjs → registry-zXXZezu-.mjs} +7 -7
- package/dist/{release-B3Q-9B7N.mjs → release-Cpi0-Bzq.mjs} +173 -22
- package/dist/request-context.d.mts +30 -0
- package/dist/{request-meta-CjORiJQ_.mjs → request-meta-DZYuLXx_.mjs} +1 -1
- package/dist/review-payload-Bhi52CbI.mjs +112 -0
- package/dist/{review-requests-CcSUTm_l.mjs → review-requests-C-ScxD9n.mjs} +2 -2
- package/dist/{review-requests-CUVn0RBl.mjs → review-requests-DZYM51yI.mjs} +2 -2
- package/dist/{review-route-helpers-CKBfGKCi.mjs → review-route-helpers-DXNDyx_q.mjs} +2 -2
- package/dist/{revision-W6FDfDqx.mjs → revision-B_HYO2AE.mjs} +42 -7
- package/dist/revisions-CQ7rMP5d.mjs +55 -0
- package/dist/{revocation-C_ZQvGRT.mjs → revocation-4we8kfBg.mjs} +2 -2
- package/dist/{runner-CRU7BXjr.mjs → runner-CuG8o1uW.mjs} +558 -487
- package/dist/{runner-SoP1rphP.d.mts → runner-DXQkyPeX.d.mts} +1 -1
- package/dist/{runs-BtaAiLTw.mjs → runs-BjgLfqCn.mjs} +5 -5
- package/dist/runtime-Bs2JMbb2.d.mts +45 -0
- package/dist/runtime-Ch5G-tnG.mjs +400 -0
- package/dist/runtime.d.mts +15 -12
- package/dist/runtime.mjs +9 -4
- package/dist/schema-BA05k0TN.mjs +8 -0
- package/dist/{search-BI9uKr7U.mjs → search-DMrzhfx_.mjs} +4 -98
- package/dist/{secrets-D_pergcD.mjs → secrets-CIYcw9T9.mjs} +4 -4
- package/dist/{sections-BqqYq9RW.mjs → sections-BTrSEhqB.mjs} +2 -2
- package/dist/seed/index.d.mts +2 -2
- package/dist/seed/index.mjs +38 -26
- package/dist/seo/index.d.mts +3 -3
- package/dist/seo/index.mjs +12 -9
- package/dist/{seo-Bs_DUxJf.mjs → seo-Cv7ud_m2.mjs} +44 -5
- package/dist/{seo-B-5PsaJO.mjs → seo-DkjtBh-y.mjs} +1 -1
- package/dist/{service-W2xuGLgw.mjs → service-BBJM08uD.mjs} +2 -2
- package/dist/{service-B65aJsN7.mjs → service-CkMuD5AE.mjs} +3 -3
- package/dist/{settings-DsBzKeUQ.mjs → settings-BUONaNnG.mjs} +7 -7
- package/dist/{settings-CyJ2-MKx.mjs → settings-CI-NtWEc.mjs} +2 -2
- package/dist/{setup-complete-DeivSVJi.mjs → setup-complete-DoVbVrHx.mjs} +1 -1
- package/dist/{site-activity-DU0UPDji.mjs → site-activity-hpfJkmxQ.mjs} +1 -1
- package/dist/{site-context-Dic2jHuw.mjs → site-context-BW3GRCJH.mjs} +15 -15
- package/dist/{site-url-Tw6CfBB2.mjs → site-url-CYatfe3q.mjs} +1 -1
- package/dist/{state-DM7blWfT.mjs → state-CKkqoA6i.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 +2 -2
- package/dist/{store-32e6dfD-.mjs → store-BzaAtszy.mjs} +3 -3
- package/dist/submission-DLgjQ_Ew.mjs +205 -0
- package/dist/{taxonomies-BFsUR7kc.mjs → taxonomies-C02-Vuh3.mjs} +3 -3
- package/dist/{taxonomies-lWGNLKgn.mjs → taxonomies-D5wO9zmB.mjs} +7 -7
- package/dist/{taxonomy-DN6i1upz.mjs → taxonomy-BK7JmHlo.mjs} +53 -3
- package/dist/terms-EskuqbKE.mjs +104 -0
- package/dist/text-extraction-CdqMGYQK.mjs +96 -0
- package/dist/{tokens-D-StaTAQ.mjs → tokens-D8HEH277.mjs} +1 -1
- package/dist/{trusted-proxy-hYufGFPK.mjs → trusted-proxy-Dg3U9Lrv.mjs} +1 -1
- package/dist/{types-RFzE_V1M.mjs → types-BI3ULB3A.mjs} +2 -2
- package/dist/{types-CJynaYg1.d.mts → types-C3jUu4Bc.d.mts} +90 -34
- package/dist/{types-B--VyN3n.d.mts → types-Dpv_MvwZ.d.mts} +1 -1
- package/dist/{types-CgcOeaiQ.d.mts → types-ex-UrNlz.d.mts} +1 -1
- package/dist/types-qOEot0UQ.d.mts +83 -0
- package/dist/ui/server-runtime.d.mts +18 -15
- package/dist/ui/server-runtime.mjs +29 -25
- package/dist/{user-Btai9rl3.mjs → user-Bl2_8rhJ.mjs} +2 -2
- package/dist/{utils-CYxGuO_P.mjs → utils-CklSLz9F.mjs} +2 -2
- package/dist/{validate-C05z0m7M.mjs → validate-C-yk7mmX.mjs} +3 -3
- package/dist/{validate-kmN2lS8H.d.mts → validate-DUscf6VG.d.mts} +3 -3
- package/dist/version-BlE1LEPb.mjs +6 -0
- package/dist/version-store-BXv2D0de.mjs +208 -0
- package/dist/version-store-B_THJCc0.d.mts +98 -0
- package/dist/{widgets-BOrDZdQ3.mjs → widgets-9xHBhL_L.mjs} +3 -3
- package/dist/{wordpress-slugs-ROzITIBK.mjs → wordpress-slugs-yaeD7cxn.mjs} +1 -1
- package/dist/{worker-Bg35R37I.mjs → worker-CC_Rt1pB.mjs} +10 -10
- package/dist/write-intent-DuHVqks9.mjs +108 -0
- package/dist/{zod-generator-DkrWuID7.mjs → zod-generator-B5Pt8fv0.mjs} +2 -2
- package/package.json +16 -4
- package/dist/cache-B5NSHhxG.mjs +0 -52
- package/dist/cron-C7HCJPPl.mjs +0 -271
- package/dist/schema-CosVhHJt.mjs +0 -8
- package/dist/submission-DJmRejGR.mjs +0 -411
- package/dist/version-BnLdwIT1.mjs +0 -6
- /package/dist/{actor-DxUAJgQX.mjs → actor-D0AW80ld.mjs} +0 -0
- /package/dist/{adapter-symbols-Bq3JsWGM.d.mts → adapter-symbols-B9mi-BUh.d.mts} +0 -0
- /package/dist/{adapters-C8nRpUuj.d.mts → adapters-lDnJjNDz.d.mts} +0 -0
- /package/dist/{api-tokens-0N3nafqZ.mjs → api-tokens-CdfsE9PL.mjs} +0 -0
- /package/dist/{base64-Cz-aU0X1.mjs → base64-qvSs0Gxy.mjs} +0 -0
- /package/dist/{challenge-store-BPn3goP9.mjs → challenge-store-7IZ_NqWg.mjs} +0 -0
- /package/dist/{components-rFN8NH3N.mjs → components-JA6tFHmE.mjs} +0 -0
- /package/dist/{context-types-CPWAJRs5.mjs → context-types-DDIJhGLs.mjs} +0 -0
- /package/dist/{default-BS6VQRkB.mjs → default-C2azCFSB.mjs} +0 -0
- /package/dist/{email-console-GqK6hgMJ.mjs → email-console-BYQp_5Qr.mjs} +0 -0
- /package/dist/{escape-CE7xOWzJ.mjs → escape-4_NNa6GR.mjs} +0 -0
- /package/dist/{experimental-workflows-BbxpWwBy.mjs → experimental-workflows-CPNiI2EL.mjs} +0 -0
- /package/dist/{forgeway-account-DcTxh3Gw.mjs → forgeway-account-YzraapbX.mjs} +0 -0
- /package/dist/{hash-D2Rqd2J2.mjs → hash-qSYPMJ8w.mjs} +0 -0
- /package/dist/{media-url-D9kdpoLS.mjs → media-url-D5E1a47B.mjs} +0 -0
- /package/dist/{mime-BnVhH671.mjs → mime-FkfazULS.mjs} +0 -0
- /package/dist/{mode-D0gePRtf.mjs → mode-C3RI5Z5t.mjs} +0 -0
- /package/dist/{normalize-aTwryvvi.mjs → normalize-DrmlLn40.mjs} +0 -0
- /package/dist/{oauth-authority-P5YMSk2z.mjs → oauth-authority-DVlLFhsZ.mjs} +0 -0
- /package/dist/{oauth-state-store-CMqLdo4I.mjs → oauth-state-store-nf-78RbK.mjs} +0 -0
- /package/dist/{options-JiLWB6Bt.mjs → options-yFkLUuTw.mjs} +0 -0
- /package/dist/{output-7HDrYTSQ.mjs → output-ljHaxIHX.mjs} +0 -0
- /package/dist/{parser-kettsjWc.mjs → parser-CTlxybRo.mjs} +0 -0
- /package/dist/{passkey-config-DVzQ3dv3.mjs → passkey-config-BLon3ct9.mjs} +0 -0
- /package/dist/{placeholder-DJLP_HY7.d.mts → placeholder-DdZV3I8x.d.mts} +0 -0
- /package/dist/{portable-text-tQhvPLf1.mjs → portable-text-CSbRjM-T.mjs} +0 -0
- /package/dist/{portable-text-BE7nszX6.d.mts → portable-text-HNmwL-7L.d.mts} +0 -0
- /package/dist/{process-cache-C19OA3am.mjs → process-cache-CMy5M80h.mjs} +0 -0
- /package/dist/{provider-loader-DERzBMUz.mjs → provider-loader-DlaT1usE.mjs} +0 -0
- /package/dist/{public-discovery-BGyhuD5U.mjs → public-discovery-BnqYofSK.mjs} +0 -0
- /package/dist/{public-url-DFXUU6Wp.mjs → public-url-BHjYWuaN.mjs} +0 -0
- /package/dist/{public-url-sR8SVmTt.mjs → public-url-GQygrYmg.mjs} +0 -0
- /package/dist/{redirect-BxacnBYL.mjs → redirect-CokmLN5o.mjs} +0 -0
- /package/dist/{request-cache-8_ifFzVw.mjs → request-cache-CizvDoxV.mjs} +0 -0
- /package/dist/{resolve-DEKC4qVa.mjs → resolve-BxFGSKYu.mjs} +0 -0
- /package/dist/{runtime-env-CPTzh0mZ.mjs → runtime-env-DpYGy4pT.mjs} +0 -0
- /package/dist/{scheduled-publish-BxdShRGs.d.mts → scheduled-publish-eCNGpvNm.d.mts} +0 -0
- /package/dist/{seo-contributions-LEFs1d7w.mjs → seo-contributions-ZKqrqsdT.mjs} +0 -0
- /package/dist/{service-kQ5ljRzX.mjs → service-DeX1PRNt.mjs} +0 -0
- /package/dist/{session-user-eweCNKzW.mjs → session-user-D36BRaZY.mjs} +0 -0
- /package/dist/{setup-nonce-B6A5Y1ea.mjs → setup-nonce-B9IO7PbK.mjs} +0 -0
- /package/dist/{sidecar-client-BwPhhz-F.mjs → sidecar-client-2hx5G46s.mjs} +0 -0
- /package/dist/{slugify-kD31VIv2.mjs → slugify-DvoaEPtL.mjs} +0 -0
- /package/dist/{ssrf-C9dyjU8O.mjs → ssrf-DcD8vn3E.mjs} +0 -0
- /package/dist/{stable-hash-B9Tbb2f_.mjs → stable-hash-9RDJgfif.mjs} +0 -0
- /package/dist/{status-Bjf_uSrW.mjs → status-B2xUokyJ.mjs} +0 -0
- /package/dist/{transport-BrU1aDY5.mjs → transport-BHYE4pox.mjs} +0 -0
- /package/dist/{transport-CZbtxgKZ.d.mts → transport-CVU5rp7W.d.mts} +0 -0
- /package/dist/{types-DNBL-4Sn.mjs → types-B3Uq7Czg.mjs} +0 -0
- /package/dist/{types-DsJTXStN.d.mts → types-BJztoTbF.d.mts} +0 -0
- /package/dist/{types-COvyXIp7.mjs → types-BgUxCuwu.mjs} +0 -0
- /package/dist/{types-KFzuijKE.d.mts → types-C0heD9oI.d.mts} +0 -0
- /package/dist/{types-B03h5jt_.d.mts → types-DheoByey.d.mts} +0 -0
- /package/dist/{types-SlLXjRpg.d.mts → types-I5LHzk_M.d.mts} +0 -0
- /package/dist/{types-PLJ9hlhh.mjs → types-Nm0cMxEh.mjs} +0 -0
- /package/dist/{types-CtGSEKEJ.d.mts → types-PxxPTFSl.d.mts} +0 -0
- /package/dist/{url-DGG3hw_h.mjs → url-Coamqvs4.mjs} +0 -0
- /package/dist/{url-DUz3LbCs.mjs → url-dn4mFfCI.mjs} +0 -0
- /package/dist/{workers-build-5UQ4j69Q.mjs → workers-build-4926MPc0.mjs} +0 -0
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import "../../../../d1-binding-DrLMBUxu.mjs";
|
|
2
|
-
import "../../../../
|
|
3
|
-
import "../../../../
|
|
4
|
-
import "../../../../
|
|
5
|
-
import "../../../../secrets-
|
|
6
|
-
import "../../../../store-
|
|
7
|
-
import { r as handleIntegrationCredentialSet, t as handleIntegrationCredentialDelete } from "../../../../integration-credentials-
|
|
8
|
-
import { a as unwrapResult, r as handleError, t as apiError } from "../../../../error-
|
|
9
|
-
import { n as parseBody, t as isParseError } from "../../../../parse-
|
|
10
|
-
import { n as requirePerm } from "../../../../authorize-
|
|
2
|
+
import "../../../../runtime-env-DpYGy4pT.mjs";
|
|
3
|
+
import "../../../../base64-qvSs0Gxy.mjs";
|
|
4
|
+
import "../../../../options-yFkLUuTw.mjs";
|
|
5
|
+
import "../../../../secrets-CIYcw9T9.mjs";
|
|
6
|
+
import "../../../../store-BzaAtszy.mjs";
|
|
7
|
+
import { r as handleIntegrationCredentialSet, t as handleIntegrationCredentialDelete } from "../../../../integration-credentials-DpuRw1kx.mjs";
|
|
8
|
+
import { a as unwrapResult, r as handleError, t as apiError } from "../../../../error-sL4aemcW.mjs";
|
|
9
|
+
import { n as parseBody, t as isParseError } from "../../../../parse-C6kCR1OT.mjs";
|
|
10
|
+
import { n as requirePerm } from "../../../../authorize-DWNOqMKq.mjs";
|
|
11
11
|
import { z } from "zod";
|
|
12
12
|
|
|
13
13
|
//#region src/astro/routes/api/integrations/[provider].ts
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import "../../../../d1-binding-DrLMBUxu.mjs";
|
|
2
|
-
import "../../../../
|
|
3
|
-
import "../../../../
|
|
4
|
-
import "../../../../
|
|
5
|
-
import "../../../../secrets-
|
|
6
|
-
import "../../../../store-
|
|
7
|
-
import { n as handleIntegrationCredentialList } from "../../../../integration-credentials-
|
|
8
|
-
import { a as unwrapResult, r as handleError, t as apiError } from "../../../../error-
|
|
9
|
-
import { n as requirePerm } from "../../../../authorize-
|
|
2
|
+
import "../../../../runtime-env-DpYGy4pT.mjs";
|
|
3
|
+
import "../../../../base64-qvSs0Gxy.mjs";
|
|
4
|
+
import "../../../../options-yFkLUuTw.mjs";
|
|
5
|
+
import "../../../../secrets-CIYcw9T9.mjs";
|
|
6
|
+
import "../../../../store-BzaAtszy.mjs";
|
|
7
|
+
import { n as handleIntegrationCredentialList } from "../../../../integration-credentials-DpuRw1kx.mjs";
|
|
8
|
+
import { a as unwrapResult, r as handleError, t as apiError } from "../../../../error-sL4aemcW.mjs";
|
|
9
|
+
import { n as requirePerm } from "../../../../authorize-DWNOqMKq.mjs";
|
|
10
10
|
|
|
11
11
|
//#region src/astro/routes/api/integrations/index.ts
|
|
12
12
|
const prerender = false;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { t as OptionsRepository } from "../../../options-
|
|
2
|
-
import { n as VERSION, t as COMMIT } from "../../../version-
|
|
3
|
-
import { r as handleError } from "../../../error-
|
|
4
|
-
import { i as experimentalSiteContextWorkflowsEnabled } from "../../../experimental-workflows-
|
|
5
|
-
import { t as getAuthMode } from "../../../mode-
|
|
1
|
+
import { t as OptionsRepository } from "../../../options-yFkLUuTw.mjs";
|
|
2
|
+
import { n as VERSION, t as COMMIT } from "../../../version-BlE1LEPb.mjs";
|
|
3
|
+
import { r as handleError } from "../../../error-sL4aemcW.mjs";
|
|
4
|
+
import { i as experimentalSiteContextWorkflowsEnabled } from "../../../experimental-workflows-CPNiI2EL.mjs";
|
|
5
|
+
import { t as getAuthMode } from "../../../mode-C3RI5Z5t.mjs";
|
|
6
6
|
|
|
7
7
|
//#region src/astro/routes/api/manifest.ts
|
|
8
8
|
const prerender = false;
|
|
@@ -1,65 +1,76 @@
|
|
|
1
1
|
import "../../../d1-binding-DrLMBUxu.mjs";
|
|
2
2
|
import "../../../dialect-helpers-C6xtO-Ui.mjs";
|
|
3
|
-
import "../../../
|
|
4
|
-
import "../../../
|
|
5
|
-
import "../../../
|
|
6
|
-
import {
|
|
7
|
-
import "../../../
|
|
8
|
-
import "../../../
|
|
9
|
-
import "../../../
|
|
10
|
-
import "../../../
|
|
11
|
-
import "../../../
|
|
12
|
-
import "../../../
|
|
13
|
-
import "../../../
|
|
14
|
-
import "../../../
|
|
15
|
-
import
|
|
16
|
-
import
|
|
17
|
-
import
|
|
18
|
-
import "../../../
|
|
19
|
-
import "../../../
|
|
20
|
-
import "../../../
|
|
21
|
-
import "../../../
|
|
22
|
-
import "../../../
|
|
23
|
-
import "../../../
|
|
24
|
-
import "../../../
|
|
25
|
-
import { r as
|
|
26
|
-
import { t as
|
|
27
|
-
import { d as
|
|
28
|
-
import
|
|
29
|
-
import "../../../
|
|
30
|
-
import
|
|
31
|
-
import
|
|
32
|
-
import "../../../
|
|
33
|
-
import "../../../
|
|
34
|
-
import "../../../
|
|
35
|
-
import "../../../
|
|
36
|
-
import "../../../
|
|
37
|
-
import "../../../
|
|
38
|
-
import "../../../
|
|
39
|
-
import
|
|
40
|
-
import "../../../
|
|
41
|
-
import "../../../
|
|
42
|
-
import "../../../
|
|
43
|
-
import
|
|
44
|
-
import
|
|
45
|
-
import
|
|
46
|
-
import "../../../
|
|
47
|
-
import "../../../
|
|
3
|
+
import "../../../config-6R0bchVE.mjs";
|
|
4
|
+
import { r as getContentStorage } from "../../../runtime-Ch5G-tnG.mjs";
|
|
5
|
+
import "../../../revisions-CQ7rMP5d.mjs";
|
|
6
|
+
import { t as readRuntimeEnv } from "../../../runtime-env-DpYGy4pT.mjs";
|
|
7
|
+
import "../../../base64-qvSs0Gxy.mjs";
|
|
8
|
+
import "../../../types-BI3ULB3A.mjs";
|
|
9
|
+
import "../../../loader-CCwWFQSh.mjs";
|
|
10
|
+
import { i as resolveActorIdentity } from "../../../actor-D0AW80ld.mjs";
|
|
11
|
+
import "../../../atomic-authority-Bf5QZboB.mjs";
|
|
12
|
+
import "../../../content-BigS8BAv.mjs";
|
|
13
|
+
import "../../../request-cache-CizvDoxV.mjs";
|
|
14
|
+
import "../../../byline-registry-Caj0_gbU.mjs";
|
|
15
|
+
import "../../../field-defs-cache-dn5Tw79A.mjs";
|
|
16
|
+
import "../../../object-cache-DyI1SOBK.mjs";
|
|
17
|
+
import "../../../byline-3qjp1-oa.mjs";
|
|
18
|
+
import "../../../owned-metadata-BPmUjZqI.mjs";
|
|
19
|
+
import "../../../revision-B_HYO2AE.mjs";
|
|
20
|
+
import "../../../media-BjH5OD-A.mjs";
|
|
21
|
+
import "../../../user-Bl2_8rhJ.mjs";
|
|
22
|
+
import { t as contentTermChangesSchema } from "../../../terms-EskuqbKE.mjs";
|
|
23
|
+
import "../../../options-yFkLUuTw.mjs";
|
|
24
|
+
import "../../../site-activity-hpfJkmxQ.mjs";
|
|
25
|
+
import { r as ReviewRequestRepository } from "../../../review-requests-DZYM51yI.mjs";
|
|
26
|
+
import { a as HITL_REQUEST_STATUSES, i as HITL_REQUEST_PRIORITIES, o as HitlRequestRepository, t as PublicationAuthorizationError } from "../../../publication-authorization-wMR-tEQ_.mjs";
|
|
27
|
+
import { C as ASSIGNMENT_STATUSES, S as ASSIGNMENT_PRIORITIES, _ as toPublicContextDiff, a as EntityResolver, b as HitlRequestService, d as SettingsHitlPayloadBuilder, g as RiskPolicyEvaluator, h as SchemaHitlPayloadBuilder, i as ActorExpertiseService, n as AssignmentService, r as HandoffSnapshotStore, t as WorkflowHitlCoordinator, v as toPublicContextEntry, x as ASSIGNMENT_ACTOR_TYPES, y as toPublicContextEntryPage } from "../../../site-context-BW3GRCJH.mjs";
|
|
28
|
+
import "../../../context-0806nV9h.mjs";
|
|
29
|
+
import "../../../redirect-CJ-FAbNK.mjs";
|
|
30
|
+
import "../../../enrich-CAMsD1aT.mjs";
|
|
31
|
+
import "../../../content-write-DAZCNKWl.mjs";
|
|
32
|
+
import "../../../text-extraction-CdqMGYQK.mjs";
|
|
33
|
+
import "../../../version-store-BXv2D0de.mjs";
|
|
34
|
+
import { n as isContentWriteReplay } from "../../../write-intent-DuHVqks9.mjs";
|
|
35
|
+
import "../../../seo-Cv7ud_m2.mjs";
|
|
36
|
+
import { t as SITE_CONTEXT_TYPES } from "../../../context-types-DDIJhGLs.mjs";
|
|
37
|
+
import { i as parseSiteBriefingScope, m as ContextRepository, r as formatSiteBriefingText, t as SiteBriefingAssembler } from "../../../briefing-DYiV93rg.mjs";
|
|
38
|
+
import { n as DinewayToolsService, t as DinewayToolsError } from "../../../service-DeX1PRNt.mjs";
|
|
39
|
+
import "../../../runs-BjgLfqCn.mjs";
|
|
40
|
+
import { t as DinewaySecretsError } from "../../../secrets-CIYcw9T9.mjs";
|
|
41
|
+
import "../../../content-refresh-DJuFIqQ4.mjs";
|
|
42
|
+
import "../../../ssrf-DcD8vn3E.mjs";
|
|
43
|
+
import "../../../fts-manager-Zu5ITic0.mjs";
|
|
44
|
+
import "../../../public-discovery-BnqYofSK.mjs";
|
|
45
|
+
import "../../../registry-zXXZezu-.mjs";
|
|
46
|
+
import "../../../settings-BUONaNnG.mjs";
|
|
47
|
+
import "../../../evidence-B3O9_VKm.mjs";
|
|
48
|
+
import { r as submitAutomatedReview } from "../../../submission-DLgjQ_Ew.mjs";
|
|
49
|
+
import { n as VERSION } from "../../../version-BlE1LEPb.mjs";
|
|
50
|
+
import "../../../query-DLnnpEuf.mjs";
|
|
51
|
+
import "../../../zod-generator-B5Pt8fv0.mjs";
|
|
52
|
+
import "../../../schema-BA05k0TN.mjs";
|
|
53
|
+
import { t as IntegrationCredentialStore } from "../../../store-BzaAtszy.mjs";
|
|
54
|
+
import { t as apiError } from "../../../error-sL4aemcW.mjs";
|
|
55
|
+
import { T as bylineCreateBody, g as contentSeoInput, j as contentBylineInputSchema, k as bylineUpdateBody } from "../../../content-Dr22fzA_.mjs";
|
|
56
|
+
import { P as settingsUpdateBody } from "../../../redirects-I78-ZYLV.mjs";
|
|
57
|
+
import "../../../byline-fields-wWu2Cb3l.mjs";
|
|
58
|
+
import "../../../status-B2xUokyJ.mjs";
|
|
48
59
|
import "../../../api/schemas/index.mjs";
|
|
49
|
-
import { i as hasScope$1 } from "../../../api-tokens-
|
|
50
|
-
import { r as registerPluginMcpRegistry, t as createReviewedPluginMcpCommandExecutor } from "../../../mcp-reviewed-executor-
|
|
51
|
-
import "../../../activity-
|
|
52
|
-
import { d as logSchemaActivity, o as logContentActivity, p as logSiteActivitySafely, r as contentMcpToolSource, t as activityChangedKeys, x as schemaMcpToolSource } from "../../../activity-events-
|
|
53
|
-
import "../../../utils-
|
|
54
|
-
import "../../../search-
|
|
55
|
-
import { n as prepareReviewerApproval } from "../../../worker-
|
|
56
|
-
import "../../../policy-
|
|
57
|
-
import { a as createForgewayAccountClient, c as normalizeForgewayApiUrl, d as refreshForgewayAccountCredentials, u as readStoredForgewayAccount } from "../../../forgeway-account-
|
|
58
|
-
import { n as convertDataForWrite, t as convertDataForRead } from "../../../portable-text-
|
|
59
|
-
import { t as createSiteIntegrationService } from "../../../service-
|
|
60
|
-
import { t as revokeReview } from "../../../revocation-
|
|
61
|
-
import { Role, canActOnOwn, hasPermission } from "@dineway-ai/auth";
|
|
60
|
+
import { i as hasScope$1 } from "../../../api-tokens-CdfsE9PL.mjs";
|
|
61
|
+
import { r as registerPluginMcpRegistry, t as createReviewedPluginMcpCommandExecutor } from "../../../mcp-reviewed-executor-DA6Q9sDc.mjs";
|
|
62
|
+
import "../../../activity-BuhkMdv8.mjs";
|
|
63
|
+
import { d as logSchemaActivity, o as logContentActivity, p as logSiteActivitySafely, r as contentMcpToolSource, t as activityChangedKeys, x as schemaMcpToolSource } from "../../../activity-events-DkHsy7Y0.mjs";
|
|
64
|
+
import "../../../utils-CklSLz9F.mjs";
|
|
65
|
+
import "../../../search-DMrzhfx_.mjs";
|
|
66
|
+
import { n as prepareReviewerApproval } from "../../../worker-CC_Rt1pB.mjs";
|
|
67
|
+
import "../../../policy-DbceGc4P.mjs";
|
|
68
|
+
import { a as createForgewayAccountClient, c as normalizeForgewayApiUrl, d as refreshForgewayAccountCredentials, u as readStoredForgewayAccount } from "../../../forgeway-account-YzraapbX.mjs";
|
|
69
|
+
import { n as convertDataForWrite, t as convertDataForRead } from "../../../portable-text-CSbRjM-T.mjs";
|
|
70
|
+
import { t as createSiteIntegrationService } from "../../../service-BBJM08uD.mjs";
|
|
71
|
+
import { t as revokeReview } from "../../../revocation-4we8kfBg.mjs";
|
|
62
72
|
import { z } from "zod";
|
|
73
|
+
import { Role, canActOnOwn, hasPermission } from "@dineway-ai/auth";
|
|
63
74
|
import { McpServer } from "@modelcontextprotocol/sdk/server/mcp.js";
|
|
64
75
|
import { ErrorCode, McpError } from "@modelcontextprotocol/sdk/types.js";
|
|
65
76
|
import { ForgewayClient } from "@forgeway/sdk";
|
|
@@ -284,6 +295,16 @@ function registerDinewayTools(server, options) {
|
|
|
284
295
|
|
|
285
296
|
//#endregion
|
|
286
297
|
//#region src/mcp/server.ts
|
|
298
|
+
/**
|
|
299
|
+
* Dineway MCP Server
|
|
300
|
+
*
|
|
301
|
+
* Exposes content, schema, media, search, taxonomy, and menu operations
|
|
302
|
+
* as MCP tools over the Streamable HTTP transport.
|
|
303
|
+
*
|
|
304
|
+
* Tools use the DinewayHandlers interface (same as locals.dineway) so
|
|
305
|
+
* they work with the pre-bound handlers that the middleware provides.
|
|
306
|
+
* The handlers instance is passed per-request via authInfo on the transport.
|
|
307
|
+
*/
|
|
287
308
|
const COLLECTION_SLUG_PATTERN = /^[a-z][a-z0-9_]*$/;
|
|
288
309
|
const ENTITY_RESOLVE_TYPES = [
|
|
289
310
|
"content",
|
|
@@ -353,7 +374,7 @@ function getDineway(extra) {
|
|
|
353
374
|
}
|
|
354
375
|
async function getCollectionFields(dineway, collection) {
|
|
355
376
|
try {
|
|
356
|
-
const { SchemaRegistry } = await import("../../../schema-
|
|
377
|
+
const { SchemaRegistry } = await import("../../../schema-BA05k0TN.mjs").then((n) => n.t);
|
|
357
378
|
return (await new SchemaRegistry(dineway.db).getCollectionWithFields(collection))?.fields ?? null;
|
|
358
379
|
} catch {
|
|
359
380
|
return null;
|
|
@@ -370,7 +391,7 @@ async function applyReadMarkdown(dineway, collection, items) {
|
|
|
370
391
|
for (const item of items) if (item.data && typeof item.data === "object") item.data = convertDataForRead(item.data, fields, false);
|
|
371
392
|
}
|
|
372
393
|
async function invalidateBylines() {
|
|
373
|
-
const { invalidateBylineCache } = await import("../../../bylines-
|
|
394
|
+
const { invalidateBylineCache } = await import("../../../bylines-CGuJi-zu.mjs").then((n) => n.t);
|
|
374
395
|
invalidateBylineCache();
|
|
375
396
|
}
|
|
376
397
|
function canReadDrafts(extra) {
|
|
@@ -1939,8 +1960,10 @@ function createMcpServer(options = {}) {
|
|
|
1939
1960
|
title: "Create Content",
|
|
1940
1961
|
description: "Create a new content item in a collection. The 'data' object should contain field values matching the collection's schema (use schema_get_collection to check). For rich text (portableText) fields, pass a Markdown string — converted to Portable Text automatically; prefer this. Pass a Portable Text JSON array only for complex content Markdown can't express. A slug is auto-generated if not provided. Items are created as 'draft' by default — use content_publish to make them live.",
|
|
1941
1962
|
inputSchema: z.object({
|
|
1963
|
+
operationId: z.string().min(1).max(256).optional().describe("Reuse the same value when retrying an identical save after a timeout."),
|
|
1942
1964
|
collection: z.string().describe("Collection slug (e.g. 'posts', 'pages')"),
|
|
1943
1965
|
data: z.record(z.string(), z.unknown()).describe("Field values as key-value pairs matching the collection schema"),
|
|
1966
|
+
terms: contentTermChangesSchema.optional().describe("Taxonomy names mapped to term IDs, saved atomically with the content."),
|
|
1944
1967
|
slug: z.string().optional().describe("URL slug (auto-generated from title if omitted)"),
|
|
1945
1968
|
status: z.literal("draft").optional().describe("Initial status. Content creation is draft-only."),
|
|
1946
1969
|
locale: z.string().optional().describe("Locale for this content (e.g. 'fr'). Defaults to default locale."),
|
|
@@ -1961,14 +1984,16 @@ function createMcpServer(options = {}) {
|
|
|
1961
1984
|
}
|
|
1962
1985
|
const data = await convertWriteData(dineway, args.collection, args.data);
|
|
1963
1986
|
const result = await dineway.handleContentCreate(args.collection, {
|
|
1987
|
+
operationId: args.operationId,
|
|
1964
1988
|
data,
|
|
1989
|
+
terms: args.terms,
|
|
1965
1990
|
slug: args.slug,
|
|
1966
1991
|
authorId: userId,
|
|
1967
1992
|
locale: args.locale,
|
|
1968
1993
|
translationOf: args.translationOf,
|
|
1969
1994
|
bylines: args.bylines
|
|
1970
1995
|
});
|
|
1971
|
-
if (result.success) {
|
|
1996
|
+
if (result.success && !isContentWriteReplay(result)) {
|
|
1972
1997
|
const itemId = extractContentId(result.data);
|
|
1973
1998
|
if (itemId) await logMcpContentActivity(dineway, locals, args.collection, itemId, "created", "content_create", {
|
|
1974
1999
|
changedFields: activityChangedKeys(args.data),
|
|
@@ -1983,10 +2008,12 @@ function createMcpServer(options = {}) {
|
|
|
1983
2008
|
title: "Update Content",
|
|
1984
2009
|
description: "Update an existing content item. Only include fields you want to change in the 'data' object — unspecified fields are left unchanged. Rich text (portableText) fields accept a Markdown string (recommended, converted automatically); use a Portable Text JSON array only for complex content Markdown can't express. Pass the _rev token from content_get to enable optimistic concurrency checking (the update fails if the item was modified since you read it). `seo` and `bylines` are persisted alongside field updates. `publishedAt` requires content:publish_any permission and is useful for content imports.",
|
|
1985
2010
|
inputSchema: z.object({
|
|
2011
|
+
operationId: z.string().min(1).max(256).optional().describe("Reuse the same value when retrying an identical save after a timeout."),
|
|
1986
2012
|
collection: z.string().describe("Collection slug"),
|
|
1987
2013
|
id: z.string().describe("Content item ID or slug"),
|
|
1988
2014
|
locale: z.string().optional().describe("Locale to scope slug lookup. Only affects slug resolution; IDs are globally unique."),
|
|
1989
2015
|
data: z.record(z.string(), z.unknown()).optional().describe("Field values to update (only include changed fields)"),
|
|
2016
|
+
terms: contentTermChangesSchema.optional().describe("Replace assignments for the supplied taxonomies in the same save."),
|
|
1990
2017
|
slug: z.string().optional().describe("New URL slug"),
|
|
1991
2018
|
status: z.literal("draft").optional().describe("Set to 'draft' to unpublish the item. Publishing uses content_publish."),
|
|
1992
2019
|
seo: contentSeoInput.optional().describe("Per-content SEO metadata. Only valid for collections with SEO enabled."),
|
|
@@ -2014,13 +2041,32 @@ function createMcpServer(options = {}) {
|
|
|
2014
2041
|
role: userRole
|
|
2015
2042
|
}, "content:publish_any")) return errorResult("[INSUFFICIENT_PERMISSIONS] Setting publishedAt requires content:publish_any permission");
|
|
2016
2043
|
}
|
|
2017
|
-
const hasInlineUpdates = args.data || args.slug || args.seo !== void 0 || args.bylines !== void 0 || args.publishedAt !== void 0;
|
|
2044
|
+
const hasInlineUpdates = args.terms !== void 0 || args.data || args.slug || args.seo !== void 0 || args.bylines !== void 0 || args.publishedAt !== void 0;
|
|
2018
2045
|
const data = args.data ? await convertWriteData(dineway, args.collection, args.data) : args.data;
|
|
2019
2046
|
if (args.status === "draft") {
|
|
2020
2047
|
requireOwnership(extra, ownerId, "content:publish_own", "content:publish_any");
|
|
2048
|
+
if (getContentStorage(dineway.db, args.collection)) {
|
|
2049
|
+
const result = await dineway.handleContentUpdate(args.collection, resolvedId, {
|
|
2050
|
+
operationId: args.operationId,
|
|
2051
|
+
data,
|
|
2052
|
+
terms: args.terms,
|
|
2053
|
+
slug: args.slug,
|
|
2054
|
+
authorId: userId,
|
|
2055
|
+
locale: args.locale,
|
|
2056
|
+
seo: args.seo,
|
|
2057
|
+
bylines: args.bylines,
|
|
2058
|
+
publishedAt: args.publishedAt,
|
|
2059
|
+
_rev: args._rev,
|
|
2060
|
+
status: "draft"
|
|
2061
|
+
});
|
|
2062
|
+
if (result.success && !isContentWriteReplay(result)) await logMcpContentActivity(dineway, locals, args.collection, resolvedId, "unpublished", "content_update");
|
|
2063
|
+
return unwrap(result);
|
|
2064
|
+
}
|
|
2021
2065
|
if (hasInlineUpdates) {
|
|
2022
2066
|
const updateResult = await dineway.handleContentUpdate(args.collection, resolvedId, {
|
|
2067
|
+
operationId: args.operationId,
|
|
2023
2068
|
data,
|
|
2069
|
+
terms: args.terms,
|
|
2024
2070
|
slug: args.slug,
|
|
2025
2071
|
authorId: userId,
|
|
2026
2072
|
locale: args.locale,
|
|
@@ -2043,7 +2089,9 @@ function createMcpServer(options = {}) {
|
|
|
2043
2089
|
return unwrap(unpublishResult);
|
|
2044
2090
|
}
|
|
2045
2091
|
const result = await dineway.handleContentUpdate(args.collection, resolvedId, {
|
|
2092
|
+
operationId: args.operationId,
|
|
2046
2093
|
data,
|
|
2094
|
+
terms: args.terms,
|
|
2047
2095
|
slug: args.slug,
|
|
2048
2096
|
authorId: userId,
|
|
2049
2097
|
locale: args.locale,
|
|
@@ -2052,7 +2100,7 @@ function createMcpServer(options = {}) {
|
|
|
2052
2100
|
publishedAt: args.publishedAt,
|
|
2053
2101
|
_rev: args._rev
|
|
2054
2102
|
});
|
|
2055
|
-
if (result.success) await logMcpContentActivity(dineway, locals, args.collection, resolvedId, "updated", "content_update", {
|
|
2103
|
+
if (result.success && !isContentWriteReplay(result)) await logMcpContentActivity(dineway, locals, args.collection, resolvedId, "updated", "content_update", {
|
|
2056
2104
|
changedFields: activityChangedKeys(args.data),
|
|
2057
2105
|
slugChanged: args.slug !== void 0,
|
|
2058
2106
|
seoChanged: args.seo !== void 0,
|
|
@@ -2434,7 +2482,7 @@ function createMcpServer(options = {}) {
|
|
|
2434
2482
|
requireRole(extra, Role.EDITOR);
|
|
2435
2483
|
const ec = getDineway(extra);
|
|
2436
2484
|
try {
|
|
2437
|
-
const { SchemaRegistry } = await import("../../../schema-
|
|
2485
|
+
const { SchemaRegistry } = await import("../../../schema-BA05k0TN.mjs").then((n) => n.t);
|
|
2438
2486
|
return jsonResult({ items: await new SchemaRegistry(ec.db).listCollections() });
|
|
2439
2487
|
} catch (error) {
|
|
2440
2488
|
return errorResult(error);
|
|
@@ -2450,7 +2498,7 @@ function createMcpServer(options = {}) {
|
|
|
2450
2498
|
requireRole(extra, Role.EDITOR);
|
|
2451
2499
|
const ec = getDineway(extra);
|
|
2452
2500
|
try {
|
|
2453
|
-
const { SchemaRegistry } = await import("../../../schema-
|
|
2501
|
+
const { SchemaRegistry } = await import("../../../schema-BA05k0TN.mjs").then((n) => n.t);
|
|
2454
2502
|
const collection = await new SchemaRegistry(ec.db).getCollectionWithFields(args.slug);
|
|
2455
2503
|
if (!collection) return errorResult(`Collection '${args.slug}' not found`);
|
|
2456
2504
|
return jsonResult(collection);
|
|
@@ -2480,7 +2528,7 @@ function createMcpServer(options = {}) {
|
|
|
2480
2528
|
requireRole(extra, Role.ADMIN);
|
|
2481
2529
|
const ec = getDineway(extra);
|
|
2482
2530
|
try {
|
|
2483
|
-
const { SchemaRegistry } = await import("../../../schema-
|
|
2531
|
+
const { SchemaRegistry } = await import("../../../schema-BA05k0TN.mjs").then((n) => n.t);
|
|
2484
2532
|
const collection = await new SchemaRegistry(ec.db).createCollection({
|
|
2485
2533
|
slug: args.slug,
|
|
2486
2534
|
label: args.label,
|
|
@@ -2544,7 +2592,7 @@ function createMcpServer(options = {}) {
|
|
|
2544
2592
|
request
|
|
2545
2593
|
});
|
|
2546
2594
|
}
|
|
2547
|
-
const { SchemaRegistry } = await import("../../../schema-
|
|
2595
|
+
const { SchemaRegistry } = await import("../../../schema-BA05k0TN.mjs").then((n) => n.t);
|
|
2548
2596
|
await new SchemaRegistry(ec.db).deleteCollection(args.slug, { force: args.force });
|
|
2549
2597
|
ec.invalidateManifest();
|
|
2550
2598
|
await logSchemaActivity(ec.db, locals, {
|
|
@@ -2608,7 +2656,7 @@ function createMcpServer(options = {}) {
|
|
|
2608
2656
|
requireRole(extra, Role.ADMIN);
|
|
2609
2657
|
const ec = getDineway(extra);
|
|
2610
2658
|
try {
|
|
2611
|
-
const { SchemaRegistry } = await import("../../../schema-
|
|
2659
|
+
const { SchemaRegistry } = await import("../../../schema-BA05k0TN.mjs").then((n) => n.t);
|
|
2612
2660
|
const field = await new SchemaRegistry(ec.db).createField(args.collection, {
|
|
2613
2661
|
slug: args.slug,
|
|
2614
2662
|
label: args.label,
|
|
@@ -2677,7 +2725,7 @@ function createMcpServer(options = {}) {
|
|
|
2677
2725
|
request
|
|
2678
2726
|
});
|
|
2679
2727
|
}
|
|
2680
|
-
const { SchemaRegistry } = await import("../../../schema-
|
|
2728
|
+
const { SchemaRegistry } = await import("../../../schema-BA05k0TN.mjs").then((n) => n.t);
|
|
2681
2729
|
await new SchemaRegistry(ec.db).deleteField(args.collection, args.fieldSlug);
|
|
2682
2730
|
ec.invalidateManifest();
|
|
2683
2731
|
await logSchemaActivity(ec.db, locals, {
|
|
@@ -2810,7 +2858,7 @@ function createMcpServer(options = {}) {
|
|
|
2810
2858
|
requireScope(extra, "content:read");
|
|
2811
2859
|
const ec = getDineway(extra);
|
|
2812
2860
|
try {
|
|
2813
|
-
const { searchWithDb } = await import("../../../search-
|
|
2861
|
+
const { searchWithDb } = await import("../../../search-DMrzhfx_.mjs").then((n) => n.t);
|
|
2814
2862
|
return jsonResult(await searchWithDb(ec.db, args.query, {
|
|
2815
2863
|
collections: args.collections,
|
|
2816
2864
|
locale: args.locale,
|
|
@@ -2836,7 +2884,7 @@ function createMcpServer(options = {}) {
|
|
|
2836
2884
|
requireScope(extra, "content:read");
|
|
2837
2885
|
const ec = getDineway(extra);
|
|
2838
2886
|
try {
|
|
2839
|
-
const { BylineRepository } = await import("../../../byline-
|
|
2887
|
+
const { BylineRepository } = await import("../../../byline-3qjp1-oa.mjs").then((n) => n.n);
|
|
2840
2888
|
return jsonResult(await new BylineRepository(ec.db).findMany({
|
|
2841
2889
|
search: args.search,
|
|
2842
2890
|
isGuest: args.isGuest,
|
|
@@ -2858,7 +2906,7 @@ function createMcpServer(options = {}) {
|
|
|
2858
2906
|
requireScope(extra, "content:read");
|
|
2859
2907
|
const ec = getDineway(extra);
|
|
2860
2908
|
try {
|
|
2861
|
-
const { BylineRepository } = await import("../../../byline-
|
|
2909
|
+
const { BylineRepository } = await import("../../../byline-3qjp1-oa.mjs").then((n) => n.n);
|
|
2862
2910
|
const byline = await new BylineRepository(ec.db).findById(args.id);
|
|
2863
2911
|
if (!byline) return errorResult(`Byline '${args.id}' not found`);
|
|
2864
2912
|
return jsonResult(byline);
|
|
@@ -2876,7 +2924,7 @@ function createMcpServer(options = {}) {
|
|
|
2876
2924
|
requireRole(extra, Role.EDITOR);
|
|
2877
2925
|
const ec = getDineway(extra);
|
|
2878
2926
|
try {
|
|
2879
|
-
const { handleBylineCreate } = await import("../../../bylines-
|
|
2927
|
+
const { handleBylineCreate } = await import("../../../bylines-BSn9O1Wx.mjs").then((n) => n.t);
|
|
2880
2928
|
const result = await handleBylineCreate(ec.db, args);
|
|
2881
2929
|
if (result.success) await invalidateBylines();
|
|
2882
2930
|
return unwrap(result);
|
|
@@ -2896,7 +2944,7 @@ function createMcpServer(options = {}) {
|
|
|
2896
2944
|
requireRole(extra, Role.EDITOR);
|
|
2897
2945
|
const ec = getDineway(extra);
|
|
2898
2946
|
try {
|
|
2899
|
-
const { handleBylineUpdate } = await import("../../../bylines-
|
|
2947
|
+
const { handleBylineUpdate } = await import("../../../bylines-BSn9O1Wx.mjs").then((n) => n.t);
|
|
2900
2948
|
const { id, ...input } = args;
|
|
2901
2949
|
const result = await handleBylineUpdate(ec.db, id, input);
|
|
2902
2950
|
if (result.success) await invalidateBylines();
|
|
@@ -2915,7 +2963,7 @@ function createMcpServer(options = {}) {
|
|
|
2915
2963
|
requireRole(extra, Role.EDITOR);
|
|
2916
2964
|
const ec = getDineway(extra);
|
|
2917
2965
|
try {
|
|
2918
|
-
const { BylineRepository } = await import("../../../byline-
|
|
2966
|
+
const { BylineRepository } = await import("../../../byline-3qjp1-oa.mjs").then((n) => n.n);
|
|
2919
2967
|
if (!await new BylineRepository(ec.db).delete(args.id)) return errorResult(`Byline '${args.id}' not found`);
|
|
2920
2968
|
await invalidateBylines();
|
|
2921
2969
|
return jsonResult({ deleted: args.id });
|
|
@@ -2932,7 +2980,7 @@ function createMcpServer(options = {}) {
|
|
|
2932
2980
|
requireScope(extra, "content:read");
|
|
2933
2981
|
const ec = getDineway(extra);
|
|
2934
2982
|
try {
|
|
2935
|
-
const { handleBylineTranslations } = await import("../../../bylines-
|
|
2983
|
+
const { handleBylineTranslations } = await import("../../../bylines-BSn9O1Wx.mjs").then((n) => n.t);
|
|
2936
2984
|
return unwrap(await handleBylineTranslations(ec.db, args.id));
|
|
2937
2985
|
} catch (error) {
|
|
2938
2986
|
return errorResult(error);
|
|
@@ -2947,7 +2995,7 @@ function createMcpServer(options = {}) {
|
|
|
2947
2995
|
requireScope(extra, "content:read");
|
|
2948
2996
|
const ec = getDineway(extra);
|
|
2949
2997
|
try {
|
|
2950
|
-
const { handleTaxonomyList } = await import("../../../taxonomies-
|
|
2998
|
+
const { handleTaxonomyList } = await import("../../../taxonomies-C02-Vuh3.mjs").then((n) => n.l);
|
|
2951
2999
|
return unwrap(await handleTaxonomyList(ec.db, { locale: args.locale }));
|
|
2952
3000
|
} catch (error) {
|
|
2953
3001
|
return errorResult(error);
|
|
@@ -2967,12 +3015,12 @@ function createMcpServer(options = {}) {
|
|
|
2967
3015
|
requireScope(extra, "content:read");
|
|
2968
3016
|
const ec = getDineway(extra);
|
|
2969
3017
|
try {
|
|
2970
|
-
const { handleTaxonomyList } = await import("../../../taxonomies-
|
|
3018
|
+
const { handleTaxonomyList } = await import("../../../taxonomies-C02-Vuh3.mjs").then((n) => n.l);
|
|
2971
3019
|
const listResult = await handleTaxonomyList(ec.db, { locale: args.locale });
|
|
2972
3020
|
if (!listResult.success) return unwrap(listResult);
|
|
2973
3021
|
if (!listResult.data.taxonomies.find((t) => t.name === args.taxonomy)) return errorResult(`Taxonomy '${args.taxonomy}' not found`);
|
|
2974
|
-
const { TaxonomyRepository } = await import("../../../taxonomy-
|
|
2975
|
-
const { decodeCursor, encodeCursor } = await import("../../../types-
|
|
3022
|
+
const { TaxonomyRepository } = await import("../../../taxonomy-BK7JmHlo.mjs").then((n) => n.n);
|
|
3023
|
+
const { decodeCursor, encodeCursor } = await import("../../../types-BI3ULB3A.mjs").then((n) => n.a);
|
|
2976
3024
|
const repo = new TaxonomyRepository(ec.db);
|
|
2977
3025
|
const limit = Math.min(args.limit ?? 50, 100);
|
|
2978
3026
|
const terms = await repo.findByName(args.taxonomy, { locale: args.locale });
|
|
@@ -3021,7 +3069,7 @@ function createMcpServer(options = {}) {
|
|
|
3021
3069
|
requireRole(extra, Role.EDITOR);
|
|
3022
3070
|
const ec = getDineway(extra);
|
|
3023
3071
|
try {
|
|
3024
|
-
const { handleTermCreate } = await import("../../../taxonomies-
|
|
3072
|
+
const { handleTermCreate } = await import("../../../taxonomies-C02-Vuh3.mjs").then((n) => n.l);
|
|
3025
3073
|
return unwrap(await handleTermCreate(ec.db, args.taxonomy, {
|
|
3026
3074
|
slug: args.slug,
|
|
3027
3075
|
label: args.label,
|
|
@@ -3051,7 +3099,7 @@ function createMcpServer(options = {}) {
|
|
|
3051
3099
|
requireRole(extra, Role.EDITOR);
|
|
3052
3100
|
const ec = getDineway(extra);
|
|
3053
3101
|
try {
|
|
3054
|
-
const { handleTermUpdate } = await import("../../../taxonomies-
|
|
3102
|
+
const { handleTermUpdate } = await import("../../../taxonomies-C02-Vuh3.mjs").then((n) => n.l);
|
|
3055
3103
|
return unwrap(await handleTermUpdate(ec.db, args.taxonomy, args.termSlug, {
|
|
3056
3104
|
slug: args.slug,
|
|
3057
3105
|
label: args.label,
|
|
@@ -3076,7 +3124,7 @@ function createMcpServer(options = {}) {
|
|
|
3076
3124
|
requireRole(extra, Role.EDITOR);
|
|
3077
3125
|
const ec = getDineway(extra);
|
|
3078
3126
|
try {
|
|
3079
|
-
const { handleTermDelete } = await import("../../../taxonomies-
|
|
3127
|
+
const { handleTermDelete } = await import("../../../taxonomies-C02-Vuh3.mjs").then((n) => n.l);
|
|
3080
3128
|
return unwrap(await handleTermDelete(ec.db, args.taxonomy, args.termSlug, { locale: args.locale }));
|
|
3081
3129
|
} catch (error) {
|
|
3082
3130
|
return errorResult(error);
|
|
@@ -3091,7 +3139,7 @@ function createMcpServer(options = {}) {
|
|
|
3091
3139
|
requireScope(extra, "content:read");
|
|
3092
3140
|
const ec = getDineway(extra);
|
|
3093
3141
|
try {
|
|
3094
|
-
const { handleTermTranslations } = await import("../../../taxonomies-
|
|
3142
|
+
const { handleTermTranslations } = await import("../../../taxonomies-C02-Vuh3.mjs").then((n) => n.l);
|
|
3095
3143
|
return unwrap(await handleTermTranslations(ec.db, args.id));
|
|
3096
3144
|
} catch (error) {
|
|
3097
3145
|
return errorResult(error);
|
|
@@ -3106,7 +3154,7 @@ function createMcpServer(options = {}) {
|
|
|
3106
3154
|
requireScope(extra, "content:read");
|
|
3107
3155
|
const ec = getDineway(extra);
|
|
3108
3156
|
try {
|
|
3109
|
-
const { handleMenuList } = await import("../../../menus-
|
|
3157
|
+
const { handleMenuList } = await import("../../../menus-CbBi7Ad7.mjs").then((n) => n.d);
|
|
3110
3158
|
return unwrap(await handleMenuList(ec.db, { locale: args.locale }));
|
|
3111
3159
|
} catch (error) {
|
|
3112
3160
|
return errorResult(error);
|
|
@@ -3124,7 +3172,7 @@ function createMcpServer(options = {}) {
|
|
|
3124
3172
|
requireScope(extra, "content:read");
|
|
3125
3173
|
const ec = getDineway(extra);
|
|
3126
3174
|
try {
|
|
3127
|
-
const { handleMenuGet } = await import("../../../menus-
|
|
3175
|
+
const { handleMenuGet } = await import("../../../menus-CbBi7Ad7.mjs").then((n) => n.d);
|
|
3128
3176
|
return unwrap(await handleMenuGet(ec.db, args.name, { locale: args.locale }));
|
|
3129
3177
|
} catch (error) {
|
|
3130
3178
|
return errorResult(error);
|
|
@@ -3139,7 +3187,7 @@ function createMcpServer(options = {}) {
|
|
|
3139
3187
|
requireScope(extra, "content:read");
|
|
3140
3188
|
const ec = getDineway(extra);
|
|
3141
3189
|
try {
|
|
3142
|
-
const { handleMenuTranslations } = await import("../../../menus-
|
|
3190
|
+
const { handleMenuTranslations } = await import("../../../menus-CbBi7Ad7.mjs").then((n) => n.d);
|
|
3143
3191
|
return unwrap(await handleMenuTranslations(ec.db, args.id));
|
|
3144
3192
|
} catch (error) {
|
|
3145
3193
|
return errorResult(error);
|
|
@@ -3159,7 +3207,7 @@ function createMcpServer(options = {}) {
|
|
|
3159
3207
|
requireRole(extra, Role.EDITOR);
|
|
3160
3208
|
const ec = getDineway(extra);
|
|
3161
3209
|
try {
|
|
3162
|
-
const { handleMenuCreate } = await import("../../../menus-
|
|
3210
|
+
const { handleMenuCreate } = await import("../../../menus-CbBi7Ad7.mjs").then((n) => n.d);
|
|
3163
3211
|
return unwrap(await handleMenuCreate(ec.db, {
|
|
3164
3212
|
name: args.name,
|
|
3165
3213
|
label: args.label,
|
|
@@ -3183,7 +3231,7 @@ function createMcpServer(options = {}) {
|
|
|
3183
3231
|
requireRole(extra, Role.EDITOR);
|
|
3184
3232
|
const ec = getDineway(extra);
|
|
3185
3233
|
try {
|
|
3186
|
-
const { handleMenuUpdate } = await import("../../../menus-
|
|
3234
|
+
const { handleMenuUpdate } = await import("../../../menus-CbBi7Ad7.mjs").then((n) => n.d);
|
|
3187
3235
|
return unwrap(await handleMenuUpdate(ec.db, args.name, {
|
|
3188
3236
|
label: args.label,
|
|
3189
3237
|
locale: args.locale
|
|
@@ -3205,7 +3253,7 @@ function createMcpServer(options = {}) {
|
|
|
3205
3253
|
requireRole(extra, Role.EDITOR);
|
|
3206
3254
|
const ec = getDineway(extra);
|
|
3207
3255
|
try {
|
|
3208
|
-
const { handleMenuDelete } = await import("../../../menus-
|
|
3256
|
+
const { handleMenuDelete } = await import("../../../menus-CbBi7Ad7.mjs").then((n) => n.d);
|
|
3209
3257
|
return unwrap(await handleMenuDelete(ec.db, args.name, { locale: args.locale }));
|
|
3210
3258
|
} catch (error) {
|
|
3211
3259
|
return errorResult(error);
|
|
@@ -3240,7 +3288,7 @@ function createMcpServer(options = {}) {
|
|
|
3240
3288
|
requireRole(extra, Role.EDITOR);
|
|
3241
3289
|
const ec = getDineway(extra);
|
|
3242
3290
|
try {
|
|
3243
|
-
const { handleMenuSetItems } = await import("../../../menus-
|
|
3291
|
+
const { handleMenuSetItems } = await import("../../../menus-CbBi7Ad7.mjs").then((n) => n.d);
|
|
3244
3292
|
return unwrap(await handleMenuSetItems(ec.db, args.name, args.items, { locale: args.locale }));
|
|
3245
3293
|
} catch (error) {
|
|
3246
3294
|
return errorResult(error);
|
|
@@ -3287,7 +3335,7 @@ function createMcpServer(options = {}) {
|
|
|
3287
3335
|
requireRole(extra, Role.ADMIN);
|
|
3288
3336
|
const ec = getDineway(extra);
|
|
3289
3337
|
try {
|
|
3290
|
-
const { handleSettingsGet } = await import("../../../settings-
|
|
3338
|
+
const { handleSettingsGet } = await import("../../../settings-CI-NtWEc.mjs").then((n) => n.r);
|
|
3291
3339
|
return unwrap(await handleSettingsGet(ec.db, ec.storage));
|
|
3292
3340
|
} catch (error) {
|
|
3293
3341
|
return errorResult(error);
|
|
@@ -3324,7 +3372,7 @@ function createMcpServer(options = {}) {
|
|
|
3324
3372
|
request
|
|
3325
3373
|
});
|
|
3326
3374
|
}
|
|
3327
|
-
const { handleSettingsUpdate } = await import("../../../settings-
|
|
3375
|
+
const { handleSettingsUpdate } = await import("../../../settings-CI-NtWEc.mjs").then((n) => n.r);
|
|
3328
3376
|
const result = await handleSettingsUpdate(ec.db, ec.storage, settingsInput);
|
|
3329
3377
|
if (!result.success) return unwrap(result);
|
|
3330
3378
|
await logSiteActivitySafely(ec.db, locals, {
|
|
@@ -1,16 +1,19 @@
|
|
|
1
|
-
import "../../../../../
|
|
2
|
-
import "../../../../../
|
|
3
|
-
import
|
|
4
|
-
import { t as
|
|
5
|
-
import "../../../../../
|
|
6
|
-
import "../../../../../
|
|
7
|
-
import
|
|
8
|
-
import
|
|
9
|
-
import {
|
|
10
|
-
import "../../../../../
|
|
11
|
-
import "../../../../../
|
|
1
|
+
import "../../../../../d1-binding-DrLMBUxu.mjs";
|
|
2
|
+
import "../../../../../base64-qvSs0Gxy.mjs";
|
|
3
|
+
import "../../../../../types-BI3ULB3A.mjs";
|
|
4
|
+
import { t as MediaRepository } from "../../../../../media-BjH5OD-A.mjs";
|
|
5
|
+
import "../../../../../terms-EskuqbKE.mjs";
|
|
6
|
+
import { t as enrichImageMetadata } from "../../../../../enrich-CAMsD1aT.mjs";
|
|
7
|
+
import "../../../../../context-types-DDIJhGLs.mjs";
|
|
8
|
+
import "../../../../../public-discovery-BnqYofSK.mjs";
|
|
9
|
+
import { n as apiSuccess, r as handleError, t as apiError } from "../../../../../error-sL4aemcW.mjs";
|
|
10
|
+
import { r as parseOptionalBody, t as isParseError } from "../../../../../parse-C6kCR1OT.mjs";
|
|
11
|
+
import "../../../../../content-Dr22fzA_.mjs";
|
|
12
|
+
import { Bt as mediaConfirmBody } from "../../../../../redirects-I78-ZYLV.mjs";
|
|
13
|
+
import "../../../../../byline-fields-wWu2Cb3l.mjs";
|
|
14
|
+
import "../../../../../status-B2xUokyJ.mjs";
|
|
12
15
|
import "../../../../../api/schemas/index.mjs";
|
|
13
|
-
import { n as requirePerm, t as requireOwnerPerm } from "../../../../../authorize-
|
|
16
|
+
import { n as requirePerm, t as requireOwnerPerm } from "../../../../../authorize-DWNOqMKq.mjs";
|
|
14
17
|
|
|
15
18
|
//#region src/astro/routes/api/media/[id]/confirm.ts
|
|
16
19
|
const prerender = false;
|