dineway 0.2.26 → 0.2.28
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-C6JLcUzM.mjs → activity-DWlF3FUa.mjs} +2 -2
- package/dist/{activity-events-u9wIH8CQ.mjs → activity-events-BYksOnTL.mjs} +1 -1
- package/dist/{adapters-BZWb3OVu.d.mts → adapters-C-iHnQYy.d.mts} +8 -1
- package/dist/{allowed-origins-CjTNO3cD.mjs → allowed-origins-DeknDs56.mjs} +1 -1
- package/dist/api/route-utils.d.mts +10 -10
- package/dist/api/route-utils.mjs +15 -14
- package/dist/api/schemas/index.d.mts +1 -1
- package/dist/api/schemas/index.mjs +5 -5
- package/dist/{api-COtLcrtJ.mjs → api-CJTbBaOw.mjs} +19 -18
- package/dist/{api-tokens-CI5sgE1g.mjs → api-tokens-d43xs7C1.mjs} +1 -1
- package/dist/{apply-DNy1dp8W.mjs → apply-CS_138du.mjs} +19 -18
- package/dist/astro/index.d.mts +11 -11
- package/dist/astro/index.mjs +29 -7
- package/dist/astro/middleware/auth.d.mts +9 -9
- package/dist/astro/middleware/auth.mjs +6 -6
- package/dist/astro/middleware/redirect.mjs +3 -3
- package/dist/astro/middleware/request-context.mjs +3 -3
- package/dist/astro/middleware/seed.d.mts +1 -1
- package/dist/astro/middleware/seed.mjs +1 -1
- package/dist/astro/middleware/setup.mjs +1 -1
- package/dist/astro/middleware.mjs +92 -90
- package/dist/astro/routes/api/admin/allowed-domains/_domain_.mjs +7 -7
- package/dist/astro/routes/api/admin/allowed-domains/index.mjs +7 -7
- 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 +18 -18
- package/dist/astro/routes/api/admin/byline-fields/_slug_/usage.mjs +4 -4
- package/dist/astro/routes/api/admin/byline-fields/_slug_.mjs +10 -10
- package/dist/astro/routes/api/admin/byline-fields/index.mjs +10 -10
- package/dist/astro/routes/api/admin/byline-fields/reorder.mjs +10 -10
- package/dist/astro/routes/api/admin/bylines/_id_/index.mjs +15 -15
- package/dist/astro/routes/api/admin/bylines/_id_/translations.mjs +15 -15
- package/dist/astro/routes/api/admin/bylines/index.mjs +15 -15
- package/dist/astro/routes/api/admin/comments/_id_/status.mjs +13 -13
- package/dist/astro/routes/api/admin/comments/_id_.mjs +4 -4
- package/dist/astro/routes/api/admin/comments/bulk.mjs +10 -10
- package/dist/astro/routes/api/admin/comments/counts.mjs +4 -4
- package/dist/astro/routes/api/admin/comments/index.mjs +10 -10
- package/dist/astro/routes/api/admin/context/_id_/history.mjs +26 -25
- package/dist/astro/routes/api/admin/context/_id_/index.mjs +26 -25
- package/dist/astro/routes/api/admin/context/_id_/review.mjs +31 -30
- package/dist/astro/routes/api/admin/context/_id_/supersede.mjs +31 -30
- package/dist/astro/routes/api/admin/context/diff.mjs +30 -29
- package/dist/astro/routes/api/admin/context/index.mjs +31 -30
- package/dist/astro/routes/api/admin/context/stale.mjs +30 -29
- package/dist/astro/routes/api/admin/hitl-requests/_id_/index.mjs +26 -25
- package/dist/astro/routes/api/admin/hitl-requests/_id_/resolve.mjs +30 -29
- package/dist/astro/routes/api/admin/hitl-requests/index.mjs +30 -29
- package/dist/astro/routes/api/admin/hooks/exclusive/_hookName_.mjs +27 -26
- 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 +57 -56
- package/dist/astro/routes/api/admin/plugins/_id_/enable.mjs +57 -56
- package/dist/astro/routes/api/admin/plugins/_id_/index.mjs +49 -48
- package/dist/astro/routes/api/admin/plugins/_id_/uninstall.mjs +56 -55
- package/dist/astro/routes/api/admin/plugins/_id_/update.mjs +56 -55
- package/dist/astro/routes/api/admin/plugins/index.mjs +49 -48
- package/dist/astro/routes/api/admin/plugins/marketplace/_id_/icon.mjs +2 -2
- package/dist/astro/routes/api/admin/plugins/marketplace/_id_/index.mjs +49 -48
- package/dist/astro/routes/api/admin/plugins/marketplace/_id_/install.mjs +56 -55
- package/dist/astro/routes/api/admin/plugins/marketplace/index.mjs +49 -48
- package/dist/astro/routes/api/admin/plugins/updates.mjs +49 -48
- package/dist/astro/routes/api/admin/review-requests/_id_/index.mjs +4 -4
- package/dist/astro/routes/api/admin/review-requests/_id_/resolve.mjs +31 -30
- package/dist/astro/routes/api/admin/review-requests/index.mjs +31 -30
- package/dist/astro/routes/api/admin/themes/marketplace/_id_/index.mjs +49 -48
- package/dist/astro/routes/api/admin/themes/marketplace/_id_/thumbnail.mjs +2 -2
- package/dist/astro/routes/api/admin/themes/marketplace/index.mjs +49 -48
- 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 +8 -8
- package/dist/astro/routes/api/admin/users/_id_/send-recovery.mjs +3 -3
- package/dist/astro/routes/api/admin/users/index.mjs +7 -7
- package/dist/astro/routes/api/auth/dev-bypass.mjs +3 -3
- package/dist/astro/routes/api/auth/invite/accept.mjs +1 -1
- package/dist/astro/routes/api/auth/invite/complete.mjs +12 -12
- package/dist/astro/routes/api/auth/invite/index.mjs +9 -9
- package/dist/astro/routes/api/auth/invite/register-options.mjs +11 -11
- package/dist/astro/routes/api/auth/logout.mjs +2 -2
- package/dist/astro/routes/api/auth/magic-link/send.mjs +11 -11
- package/dist/astro/routes/api/auth/magic-link/verify.mjs +2 -2
- package/dist/astro/routes/api/auth/me.mjs +9 -9
- 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 +7 -7
- package/dist/astro/routes/api/auth/passkey/index.mjs +1 -1
- package/dist/astro/routes/api/auth/passkey/options.mjs +13 -13
- package/dist/astro/routes/api/auth/passkey/register/options.mjs +11 -11
- package/dist/astro/routes/api/auth/passkey/register/verify.mjs +12 -12
- package/dist/astro/routes/api/auth/passkey/verify.mjs +12 -12
- package/dist/astro/routes/api/auth/setup-token/index.mjs +4 -4
- package/dist/astro/routes/api/auth/setup-token/verify.mjs +2 -2
- package/dist/astro/routes/api/auth/signup/complete.mjs +12 -12
- package/dist/astro/routes/api/auth/signup/request.mjs +11 -11
- 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/comments/_collection_/_contentId_/reactions.mjs +13 -13
- package/dist/astro/routes/api/content/_collection_/_id_/compare.mjs +2 -2
- package/dist/astro/routes/api/content/_collection_/_id_/discard-draft.mjs +5 -5
- package/dist/astro/routes/api/content/_collection_/_id_/duplicate.mjs +5 -5
- package/dist/astro/routes/api/content/_collection_/_id_/permanent.mjs +5 -5
- package/dist/astro/routes/api/content/_collection_/_id_/preview-url.mjs +54 -16
- package/dist/astro/routes/api/content/_collection_/_id_/publish.mjs +17 -17
- package/dist/astro/routes/api/content/_collection_/_id_/release-readiness.mjs +9 -9
- package/dist/astro/routes/api/content/_collection_/_id_/restore.mjs +5 -5
- package/dist/astro/routes/api/content/_collection_/_id_/revisions.mjs +2 -2
- package/dist/astro/routes/api/content/_collection_/_id_/schedule.mjs +17 -17
- package/dist/astro/routes/api/content/_collection_/_id_/terms/_taxonomy_.mjs +14 -13
- package/dist/astro/routes/api/content/_collection_/_id_/translations.mjs +2 -2
- package/dist/astro/routes/api/content/_collection_/_id_/unpublish.mjs +5 -5
- package/dist/astro/routes/api/content/_collection_/_id_.mjs +11 -11
- package/dist/astro/routes/api/content/_collection_/authors.mjs +2 -2
- package/dist/astro/routes/api/content/_collection_/index.mjs +11 -11
- package/dist/astro/routes/api/content/_collection_/trash.mjs +8 -8
- package/dist/astro/routes/api/dashboard.mjs +8 -7
- 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 +19 -19
- package/dist/astro/routes/api/import/wordpress/analyze.mjs +8 -8
- package/dist/astro/routes/api/import/wordpress/execute.d.mts +9 -9
- package/dist/astro/routes/api/import/wordpress/execute.mjs +36 -35
- package/dist/astro/routes/api/import/wordpress/media.d.mts +9 -9
- package/dist/astro/routes/api/import/wordpress/media.mjs +12 -12
- package/dist/astro/routes/api/import/wordpress/prepare.mjs +35 -34
- package/dist/astro/routes/api/import/wordpress/rewrite-urls.d.mts +10 -10
- package/dist/astro/routes/api/import/wordpress/rewrite-urls.mjs +32 -31
- package/dist/astro/routes/api/import/wordpress-plugin/analyze.d.mts +1 -1
- package/dist/astro/routes/api/import/wordpress-plugin/analyze.mjs +22 -22
- package/dist/astro/routes/api/import/wordpress-plugin/execute.d.mts +9 -9
- package/dist/astro/routes/api/import/wordpress-plugin/execute.mjs +41 -40
- package/dist/astro/routes/api/integrations/_provider_.mjs +7 -7
- package/dist/astro/routes/api/integrations/index.mjs +6 -6
- package/dist/astro/routes/api/manifest.mjs +5 -5
- package/dist/astro/routes/api/mcp.mjs +70 -73
- package/dist/astro/routes/api/media/_id_/confirm.mjs +10 -10
- package/dist/astro/routes/api/media/_id_.mjs +9 -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 +11 -11
- package/dist/astro/routes/api/media.mjs +14 -14
- package/dist/astro/routes/api/menus/_name_/items/_id_.mjs +31 -30
- package/dist/astro/routes/api/menus/_name_/items.mjs +31 -30
- package/dist/astro/routes/api/menus/_name_/reorder.mjs +31 -30
- package/dist/astro/routes/api/menus/_name_/translations.mjs +31 -30
- package/dist/astro/routes/api/menus/_name_.mjs +31 -30
- package/dist/astro/routes/api/menus/index.mjs +31 -30
- 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 +5 -5
- package/dist/astro/routes/api/plugins/_pluginId_/_...path_.mjs +4 -4
- package/dist/astro/routes/api/redirects/404s/index.mjs +11 -11
- package/dist/astro/routes/api/redirects/404s/summary.mjs +11 -11
- package/dist/astro/routes/api/redirects/_id_.mjs +32 -31
- package/dist/astro/routes/api/redirects/index.mjs +32 -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 +51 -50
- package/dist/astro/routes/api/schema/collections/_slug_/fields/index.mjs +51 -50
- package/dist/astro/routes/api/schema/collections/_slug_/fields/reorder.mjs +51 -50
- package/dist/astro/routes/api/schema/collections/_slug_/index.mjs +51 -50
- package/dist/astro/routes/api/schema/collections/index.mjs +51 -50
- package/dist/astro/routes/api/schema/index.mjs +8 -8
- package/dist/astro/routes/api/schema/orphans/_slug_.mjs +49 -48
- package/dist/astro/routes/api/schema/orphans/index.mjs +49 -48
- package/dist/astro/routes/api/search/enable.mjs +10 -10
- package/dist/astro/routes/api/search/index.mjs +9 -9
- package/dist/astro/routes/api/search/rebuild.mjs +10 -10
- package/dist/astro/routes/api/search/stats.mjs +4 -4
- package/dist/astro/routes/api/search/suggest.mjs +9 -9
- package/dist/astro/routes/api/sections/_slug_.mjs +31 -30
- package/dist/astro/routes/api/sections/index.mjs +31 -30
- package/dist/astro/routes/api/settings/email.mjs +4 -4
- package/dist/astro/routes/api/settings.mjs +31 -30
- package/dist/astro/routes/api/setup/admin-verify.mjs +14 -14
- package/dist/astro/routes/api/setup/admin.mjs +12 -12
- package/dist/astro/routes/api/setup/dev-bypass.mjs +25 -24
- package/dist/astro/routes/api/setup/dev-reset.mjs +2 -2
- package/dist/astro/routes/api/setup/index.mjs +27 -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.mjs +34 -33
- package/dist/astro/routes/api/taxonomies/_name_/terms/_slug_.mjs +34 -33
- package/dist/astro/routes/api/taxonomies/_name_/terms/index.mjs +34 -33
- package/dist/astro/routes/api/taxonomies/index.mjs +34 -33
- package/dist/astro/routes/api/themes/preview.mjs +5 -5
- 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 +30 -29
- package/dist/astro/routes/api/widget-areas/_name_/widgets/_id_.mjs +31 -30
- package/dist/astro/routes/api/widget-areas/_name_/widgets.mjs +31 -30
- package/dist/astro/routes/api/widget-areas/_name_.mjs +28 -27
- package/dist/astro/routes/api/widget-areas/index.mjs +31 -30
- package/dist/astro/routes/api/widget-components.mjs +2 -2
- package/dist/astro/routes/robots.txt.mjs +5 -5
- package/dist/astro/routes/sitemap-_collection_.xml.mjs +12 -12
- package/dist/astro/routes/sitemap.xml.mjs +11 -11
- package/dist/astro/session-driver.d.mts +1 -1
- package/dist/astro/types.d.mts +13 -13
- package/dist/auth/providers/github.d.mts +1 -1
- package/dist/auth/providers/google.d.mts +1 -1
- package/dist/{auth-control-guard-BQLSUQd7.mjs → auth-control-guard-Bg93z3D6.mjs} +1 -1
- package/dist/{authorize-D8etr-1g.mjs → authorize-Dg75h4BN.mjs} +1 -1
- package/dist/{briefing-Yao75K3z.mjs → briefing-BoIXsh3Y.mjs} +1 -1
- package/dist/{briefing-DcDVI-0v.mjs → briefing-Cd2HhhHi.mjs} +6 -6
- package/dist/{bundle-MGZ2MLSb.mjs → bundle-DicQY2p2.mjs} +1 -1
- package/dist/{byline-CbFno1Kd.mjs → byline-MGIfM2Is.mjs} +4 -4
- package/dist/{byline-fields-CjCCA-Wn.d.mts → byline-fields-B31h2riE.d.mts} +20 -20
- package/dist/{byline-fields-C0IOddTf.mjs → byline-fields-C4OeOttq.mjs} +3 -3
- package/dist/{byline-fields-CS1Hi2N4.mjs → byline-fields-GoUVaGw4.mjs} +1 -1
- package/dist/{byline-registry-BLgrU3dA.mjs → byline-registry-CF9nobxT.mjs} +2 -2
- package/dist/{bylines-DXXMlc1A.mjs → bylines-CL8Z6AxI.mjs} +3 -3
- package/dist/{bylines-BotyuTdY.mjs → bylines-t_uHsP44.mjs} +1 -1
- package/dist/{cache-Cf5yPNNw.mjs → cache-DrNKKDn0.mjs} +1 -1
- package/dist/cli/index.d.mts +1 -1
- package/dist/cli/index.mjs +395 -133
- package/dist/cli/plugin-kit.d.mts +9 -9
- package/dist/cli/plugin-kit.mjs +2 -2
- package/dist/client/external-auth-headers.d.mts +1 -1
- package/dist/client/index.d.mts +11 -11
- package/dist/client/index.mjs +2 -2
- package/dist/{client-factory-BDDerNBz.mjs → client-factory-DXfeovxp.mjs} +2 -1
- package/dist/{comment-reaction-mHuRHspq.mjs → comment-reaction-NZjadbiB.mjs} +1 -1
- package/dist/{comments-BFbF0xaG.mjs → comments-Csi3B9JI.mjs} +1 -1
- package/dist/{connection-CiJWiWya.mjs → connection-DJ3GzHVH.mjs} +2 -3
- package/dist/{content-C0qGd2Nt.mjs → content-CzUrmMC3.mjs} +3 -115
- package/dist/{content-refresh-BkGWtwUN.mjs → content-refresh-C_jcjzOr.mjs} +4 -4
- package/dist/{context-BEgiPeP-.mjs → context-BET1jeas.mjs} +10 -10
- package/dist/{context-CnCdZ2xZ.mjs → context-Dv932KXa.mjs} +2 -2
- package/dist/{context-route-helpers-CXxj6-jq.mjs → context-route-helpers-CgVXswZ_.mjs} +2 -2
- package/dist/{dashboard-B8Sk45s8.mjs → dashboard-CKAH1KwM.mjs} +4 -4
- package/dist/db/index.d.mts +4 -4
- package/dist/db/index.mjs +9 -1
- package/dist/db/libsql-http.d.mts +27 -0
- package/dist/db/libsql-http.mjs +29 -0
- package/dist/db/libsql.d.mts +1 -1
- package/dist/db/libsql.mjs +3 -43
- package/dist/db/postgres.d.mts +1 -1
- package/dist/db/sqlite.d.mts +1 -1
- package/dist/{device-flow-DCbF6FAE.mjs → device-flow-BED7L-O7.mjs} +5 -5
- package/dist/{discovery-CUX99M46.mjs → discovery-SVnRaAxj.mjs} +4 -48
- package/dist/{enrich-Ck9tfMqe.mjs → enrich-Uw_OA9Ve.mjs} +1 -1
- package/dist/{field-defs-cache-7Ka899yA.mjs → field-defs-cache-BIHTU5Yj.mjs} +3 -3
- package/dist/{hitl-requests-DU4wJSml.mjs → hitl-requests-BKVxqzAh.mjs} +2 -2
- package/dist/{hitl-route-helpers-CkRqaLaJ.mjs → hitl-route-helpers-50Lvsuq3.mjs} +5 -5
- package/dist/{import-BcSW07F1.mjs → import-BCY1k1zB.mjs} +8 -8
- package/dist/{index-C7X4h_27.d.mts → index-DNNw5fp0.d.mts} +3 -3
- package/dist/index.d.mts +15 -15
- package/dist/index.mjs +84 -82
- package/dist/{integration-credentials-ylo0bguS.mjs → integration-credentials-CTrvXgEc.mjs} +2 -2
- package/dist/{jsonld-thSA4Rua.d.mts → jsonld-But0MmMT.d.mts} +2 -2
- package/dist/libsql-dialect-DMqpBfJI.mjs +47 -0
- package/dist/{manifest-schema-VGSvatoU.mjs → manifest-schema-owbEUmv1.mjs} +1 -1
- package/dist/{mcp-reviewed-executor-lqfDtcFo.mjs → mcp-reviewed-executor-A_W2J5b7.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 +11 -11
- package/dist/media/local-runtime.mjs +1 -1
- package/dist/{media-allowlist-D3AHS_q3.mjs → media-allowlist-BdbIzYO3.mjs} +1 -1
- package/dist/{menus-oIJaGGUU.mjs → menus-CRmcWAM5.mjs} +1 -1
- package/dist/{menus-D_pqSYJ3.mjs → menus-Cu3TUXyl.mjs} +5 -5
- package/dist/{oauth-authorization-DHeVHdGr.mjs → oauth-authorization-TG2Kxgur.mjs} +5 -5
- package/dist/{oauth-clients-8cVhd-8W.mjs → oauth-clients-DLJMG4h7.mjs} +2 -2
- package/dist/object-cache/memory.d.mts +1 -1
- package/dist/page/index.d.mts +10 -10
- package/dist/page/index.mjs +1 -1
- package/dist/{parse-RN_EgAxL.mjs → parse-CJC9DGe9.mjs} +1 -1
- package/dist/plugin-utils.d.mts +9 -9
- package/dist/plugins/adapt-sandbox-entry.d.mts +9 -9
- package/dist/plugins/adapt-sandbox-entry.mjs +1 -1
- package/dist/{plugins-DMImBiT9.mjs → plugins-BC9Rb6PJ.mjs} +6 -6
- package/dist/{preview-DDtW5YuZ.mjs → preview-CjL_29aE.mjs} +3 -3
- package/dist/{provider-loader-DZ9uy48J.d.mts → provider-loader-CGoW_-Bs.d.mts} +1 -1
- package/dist/{public-url-Binfty0i.d.mts → public-url-C_peKTjR.d.mts} +1 -1
- package/dist/public-url-DjWfilkD.mjs +46 -0
- package/dist/{public-url-BuERxOoY.d.mts → public-url-UpDevWVD.d.mts} +2 -2
- package/dist/{publication-authorization-DYAGeWto.mjs → publication-authorization-HLwH38BA.mjs} +23 -7
- package/dist/{query-DzsPhsZk.mjs → query-BAfn0Uxp.mjs} +7 -7
- package/dist/{query-qvv6Rar8.mjs → query-MvFwA1uK.mjs} +2 -2
- package/dist/{rate-limit-BIuuIxP3.mjs → rate-limit-JhnJUEno.mjs} +2 -2
- package/dist/{redirect-B_9GwIZd.mjs → redirect-CnG6nJ4H.mjs} +1 -1
- package/dist/{redirects-Cj4lrY_X.mjs → redirects-C9pg6Dcg.mjs} +3 -3
- package/dist/{redirects-DvsWZIiC.mjs → redirects-lCwNKPUn.mjs} +5 -5
- package/dist/{registry-BwcF6gAj.mjs → registry-QxrUJAWY.mjs} +7 -7
- package/dist/{request-meta-C0druWvK.mjs → request-meta-DnZm9Kbu.mjs} +1 -1
- package/dist/{review-payload-Cg9dtFgV.mjs → review-payload-BuLgXTY6.mjs} +1 -1
- package/dist/{review-requests-B2tCLjdA.mjs → review-requests-uI-yUXcr.mjs} +2 -2
- package/dist/{review-route-helpers-CeYzVpNa.mjs → review-route-helpers-BvX04ahf.mjs} +2 -2
- package/dist/revision-De7OmYVD.mjs +118 -0
- package/dist/{runner-DnswPQIl.d.mts → runner-o39FihbH.d.mts} +1 -1
- package/dist/runtime.d.mts +10 -10
- package/dist/runtime.mjs +1 -1
- package/dist/{schema-86uC3yVE.mjs → schema-CD3EA3nN.mjs} +1 -1
- package/dist/{search-CeXUu1KD.mjs → search-BtCHwx_Z.mjs} +1 -1
- package/dist/{secrets-re9BzPUD.mjs → secrets-MqvM60s_.mjs} +2 -2
- package/dist/seed/index.d.mts +2 -2
- package/dist/seed/index.mjs +20 -19
- package/dist/seo/index.d.mts +3 -3
- package/dist/seo/index.mjs +7 -6
- package/dist/{seo-BpuKUrBs.mjs → seo-BhMH6i2e.mjs} +1 -1
- package/dist/{seo-BVmdKP7v.mjs → seo-CTXMR4YD.mjs} +1 -1
- package/dist/{service-CSeV_04p.mjs → service-evnf21UO.mjs} +2 -2
- package/dist/{settings-DXp6vRdV.mjs → settings-CCqefqC9.mjs} +5 -5
- package/dist/{settings-ClnGCe1a.mjs → settings-COtVNdOx.mjs} +1 -1
- package/dist/{setup-complete-BcjodOdW.mjs → setup-complete-C8LTo8cO.mjs} +1 -1
- package/dist/{site-context-DRSrU7hX.mjs → site-context-b3_xbkdc.mjs} +14 -14
- package/dist/{site-url-C1PUhgWO.mjs → site-url-AGgA46Lw.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/{store-C6bydUdt.mjs → store-BtCoeap4.mjs} +1 -1
- package/dist/{taxonomies-CHHgZFzB.mjs → taxonomies-DxtqEjcj.mjs} +2 -2
- package/dist/{taxonomies-Dfmkapin.mjs → taxonomies-xvaQ7gVM.mjs} +4 -4
- package/dist/{taxonomy-BUo9B6qp.mjs → taxonomy--vcXXfwc.mjs} +1 -1
- package/dist/{types-ZDyMKdrZ.d.mts → types-DneBBuYl.d.mts} +18 -11
- package/dist/{types-DCkWipbM.d.mts → types-m37xNtUj.d.mts} +1 -1
- package/dist/ui/server-runtime.d.mts +13 -13
- package/dist/ui/server-runtime.mjs +21 -21
- package/dist/{user-BprdjWGE.mjs → user-Dn3wV227.mjs} +1 -1
- package/dist/{utils-D_bwAtcb.mjs → utils-iGiCys50.mjs} +1 -1
- package/dist/{validate-Cdvc9APD.mjs → validate-BHVQSpUy.mjs} +2 -2
- package/dist/{validate-SXACKtqW.d.mts → validate-BiPYhXNZ.d.mts} +3 -3
- package/dist/version-BGH0og9l.mjs +6 -0
- package/dist/{widgets-DMzBMhsO.mjs → widgets-CBCHUg_u.mjs} +2 -2
- package/dist/{wordpress-slugs-CuizIp_V.mjs → wordpress-slugs-BYW2B_5x.mjs} +1 -1
- package/dist/{zod-generator-C0nwBbg8.mjs → zod-generator-DMlY4cI3.mjs} +1 -1
- package/package.json +9 -2
- package/src/components/DinewayImage.astro +4 -0
- package/dist/version-BjNGau7O.mjs +0 -6
- /package/dist/{actor-Bu9whHez.mjs → actor-BraTCiOp.mjs} +0 -0
- /package/dist/{api-tokens-BkXlt3V6.mjs → api-tokens-CZ472rzA.mjs} +0 -0
- /package/dist/{audit-BGHS3IuK.mjs → audit-CmiNnrbj.mjs} +0 -0
- /package/dist/{challenge-store-DvRxUsXv.mjs → challenge-store-ugPhBaVf.mjs} +0 -0
- /package/dist/{chunks-Dh8yqZt3.mjs → chunks-Bw3_BuVW.mjs} +0 -0
- /package/dist/{comment-eqM9KHbj.mjs → comment-DuDtCn-f.mjs} +0 -0
- /package/dist/{components-D5HxUv7y.mjs → components-CINP4h-l.mjs} +0 -0
- /package/dist/{context-types-eBuMDAg-.mjs → context-types-fEeyXC1D.mjs} +0 -0
- /package/dist/{cron-fQf7oVvf.mjs → cron-DIsnItPn.mjs} +0 -0
- /package/dist/{default-CnbyLh9W.mjs → default-D8jeKsT3.mjs} +0 -0
- /package/dist/{email-console-vFj2FFuJ.mjs → email-console-DRb6jkoC.mjs} +0 -0
- /package/dist/{error-DWL9Pwyt.mjs → error-BPA9T0AW.mjs} +0 -0
- /package/dist/{escape-DBggE3jq.mjs → escape-DgNqnHuj.mjs} +0 -0
- /package/dist/{experimental-workflows-Dvn_xgew.mjs → experimental-workflows-DOo7QDRn.mjs} +0 -0
- /package/dist/{fts-manager-D4K5mA0j.mjs → fts-manager-BB44uXMm.mjs} +0 -0
- /package/dist/{hash-mxxx2oPW.mjs → hash-CEky-IDp.mjs} +0 -0
- /package/dist/{load-B1cm00WU.mjs → load-C-cMlsPv.mjs} +0 -0
- /package/dist/{media-DNde5-Am.mjs → media-4xtXwq7L.mjs} +0 -0
- /package/dist/{media-url-LSeVcoln.mjs → media-url-BhbJfG3Y.mjs} +0 -0
- /package/dist/{mime-C0vOHFm7.mjs → mime-Bg7yUeHW.mjs} +0 -0
- /package/dist/{mode-DYsXVFoY.mjs → mode-CgD_xAEJ.mjs} +0 -0
- /package/dist/{normalize-Cyt7JdF7.mjs → normalize-BY2gOygP.mjs} +0 -0
- /package/dist/{oauth-state-store-CUU4azTF.mjs → oauth-state-store-Dbj-J0K5.mjs} +0 -0
- /package/dist/{oauth-user-lookup-CRFHKN_W.mjs → oauth-user-lookup-D2NAYPjU.mjs} +0 -0
- /package/dist/{options-DQPTH5n0.mjs → options-1dBRkoCl.mjs} +0 -0
- /package/dist/{output-13u4dvu-.mjs → output-A4ZfzzA0.mjs} +0 -0
- /package/dist/{parser-Co69H1x-.mjs → parser-C3ux7a3Y.mjs} +0 -0
- /package/dist/{passkey-config-e-0KLl2R.mjs → passkey-config-DUc1iP_-.mjs} +0 -0
- /package/dist/{patterns-CoqlXUvk.mjs → patterns-CP9gkiCE.mjs} +0 -0
- /package/dist/{placeholder-DeJydgkj.d.mts → placeholder-0cGpMonY.d.mts} +0 -0
- /package/dist/{portable-text-B7E-ali_.d.mts → portable-text-Cu4n_8zI.d.mts} +0 -0
- /package/dist/{portable-text-C8Tvp4_g.mjs → portable-text-U85hOafW.mjs} +0 -0
- /package/dist/{process-cache-CCDgti7j.mjs → process-cache-DsMwJ3LM.mjs} +0 -0
- /package/dist/{provider-loader-BIxppPHS.mjs → provider-loader-BPHG3BR5.mjs} +0 -0
- /package/dist/{public-discovery-BlJ80Hoh.mjs → public-discovery-CyDzK1-S.mjs} +0 -0
- /package/dist/{public-url-jFEiiLag.mjs → public-url-CmBKcpsJ.mjs} +0 -0
- /package/dist/{redirect-C2bJtYhP.mjs → redirect-D_bb_Cc3.mjs} +0 -0
- /package/dist/{request-cache-CBFjCwSt.mjs → request-cache-DoT2mKBT.mjs} +0 -0
- /package/dist/{resolve-Doh2USIE.mjs → resolve-BDWXnk_V.mjs} +0 -0
- /package/dist/{review-requests-Bo4jcxtU.mjs → review-requests-DaYnr3XR.mjs} +0 -0
- /package/dist/{sections-BQdtDQUw.mjs → sections-BM88PvRO.mjs} +0 -0
- /package/dist/{seo-contributions-CPDwm9MH.mjs → seo-contributions-DzusM9lG.mjs} +0 -0
- /package/dist/{service-CY0aH6eI.mjs → service-BB1n90wh.mjs} +0 -0
- /package/dist/{session-user-DTopk3zO.mjs → session-user-BQZHuGOS.mjs} +0 -0
- /package/dist/{setup-nonce-C76FNEst.mjs → setup-nonce-220YhE1R.mjs} +0 -0
- /package/dist/{sidecar-client-CQF4fcO7.mjs → sidecar-client-SDgPreXV.mjs} +0 -0
- /package/dist/{site-activity-By0wWO0g.mjs → site-activity-kfZ9X0no.mjs} +0 -0
- /package/dist/{ssrf-CxOWiF0p.mjs → ssrf-D00lPvtF.mjs} +0 -0
- /package/dist/{stable-hash-DshcXvRE.mjs → stable-hash-_A3p1ln2.mjs} +0 -0
- /package/dist/{status-DvSRKIiF.mjs → status-BdZSXIP_.mjs} +0 -0
- /package/dist/{tokens-COJxRo8q.mjs → tokens-ShJZm_QS.mjs} +0 -0
- /package/dist/{transaction-Chz7SBGr.mjs → transaction-L0tzAOfM.mjs} +0 -0
- /package/dist/{transport-BDQ73F0l.mjs → transport-DtrY0-hI.mjs} +0 -0
- /package/dist/{transport-BfF60P73.d.mts → transport-SoRbXDM4.d.mts} +0 -0
- /package/dist/{trusted-proxy-j2KYPN4r.mjs → trusted-proxy-9b2fSXK2.mjs} +0 -0
- /package/dist/{types-B0P-ECRI.d.mts → types-B-KSspMO.d.mts} +0 -0
- /package/dist/{types-DA4L0OLk.mjs → types-B-nDjnzA.mjs} +0 -0
- /package/dist/{types-gG3syKwc.d.mts → types-B2W3CeZN.d.mts} +0 -0
- /package/dist/{types-C0hcZkqG.d.mts → types-BdsNqnHA.d.mts} +0 -0
- /package/dist/{types-VkWKA-R2.d.mts → types-Cd_2Jeqp.d.mts} +0 -0
- /package/dist/{types-B7TDDFMG.mjs → types-D1l9cCKM.mjs} +0 -0
- /package/dist/{types-DN82MbYv.d.mts → types-D8iukuuI.d.mts} +0 -0
- /package/dist/{types-Cnz2EIEp.d.mts → types-ZdWRfUsC.d.mts} +0 -0
- /package/dist/{types-gnLXQcvx.mjs → types-dgGPmsl_.mjs} +0 -0
- /package/dist/{url-Bm__30we.mjs → url-C_pLSrGZ.mjs} +0 -0
- /package/dist/{url-BG-3f-Vy.mjs → url-CmjWycVK.mjs} +0 -0
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import "../types-
|
|
2
|
-
import "../types-
|
|
3
|
-
import "../runner-
|
|
4
|
-
import "../index-
|
|
5
|
-
import "../types-
|
|
6
|
-
import "../public-url-
|
|
7
|
-
import "../validate-
|
|
8
|
-
import "../byline-fields-
|
|
9
|
-
import "../types-
|
|
1
|
+
import "../types-DneBBuYl.mjs";
|
|
2
|
+
import "../types-B2W3CeZN.mjs";
|
|
3
|
+
import "../runner-o39FihbH.mjs";
|
|
4
|
+
import "../index-DNNw5fp0.mjs";
|
|
5
|
+
import "../types-BdsNqnHA.mjs";
|
|
6
|
+
import "../public-url-UpDevWVD.mjs";
|
|
7
|
+
import "../validate-BiPYhXNZ.mjs";
|
|
8
|
+
import "../byline-fields-B31h2riE.mjs";
|
|
9
|
+
import "../types-ZdWRfUsC.mjs";
|
|
10
10
|
import { DinewayClient, PluginRequestOptions } from "../client/index.mjs";
|
|
11
11
|
import { SubCommandsDef } from "citty";
|
|
12
12
|
|
package/dist/cli/plugin-kit.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { n as output, t as configureOutputMode } from "../output-
|
|
2
|
-
import { n as connectionArgs, r as createClientFromArgs } from "../client-factory-
|
|
1
|
+
import { n as output, t as configureOutputMode } from "../output-A4ZfzzA0.mjs";
|
|
2
|
+
import { n as connectionArgs, r as createClientFromArgs } from "../client-factory-DXfeovxp.mjs";
|
|
3
3
|
|
|
4
4
|
export { configureOutputMode, connectionArgs, createClientFromArgs, output };
|
package/dist/client/index.d.mts
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
import { Jt as PublicationReadinessResult, Ut as PublicationPolicyOverride, Xt as PublicationReceipt } from "../types-
|
|
2
|
-
import "../types-
|
|
3
|
-
import "../runner-
|
|
4
|
-
import "../index-
|
|
5
|
-
import "../types-
|
|
6
|
-
import "../public-url-
|
|
7
|
-
import "../validate-
|
|
8
|
-
import "../byline-fields-
|
|
9
|
-
import "../types-
|
|
10
|
-
import { a as tokenInterceptor, i as devBypassInterceptor, n as createTransport, r as csrfInterceptor, t as Interceptor } from "../transport-
|
|
11
|
-
import { n as markdownToPortableText, r as portableTextToMarkdown, t as PortableTextBlock } from "../portable-text-
|
|
1
|
+
import { Jt as PublicationReadinessResult, Ut as PublicationPolicyOverride, Xt as PublicationReceipt } from "../types-DneBBuYl.mjs";
|
|
2
|
+
import "../types-B2W3CeZN.mjs";
|
|
3
|
+
import "../runner-o39FihbH.mjs";
|
|
4
|
+
import "../index-DNNw5fp0.mjs";
|
|
5
|
+
import "../types-BdsNqnHA.mjs";
|
|
6
|
+
import "../public-url-UpDevWVD.mjs";
|
|
7
|
+
import "../validate-BiPYhXNZ.mjs";
|
|
8
|
+
import "../byline-fields-B31h2riE.mjs";
|
|
9
|
+
import "../types-ZdWRfUsC.mjs";
|
|
10
|
+
import { a as tokenInterceptor, i as devBypassInterceptor, n as createTransport, r as csrfInterceptor, t as Interceptor } from "../transport-SoRbXDM4.mjs";
|
|
11
|
+
import { n as markdownToPortableText, r as portableTextToMarkdown, t as PortableTextBlock } from "../portable-text-Cu4n_8zI.mjs";
|
|
12
12
|
|
|
13
13
|
//#region src/client/index.d.ts
|
|
14
14
|
interface DinewayClientOptions {
|
package/dist/client/index.mjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { i as portableTextToMarkdown, n as convertDataForWrite, r as markdownToPortableText, t as convertDataForRead } from "../portable-text-
|
|
2
|
-
import { a as tokenInterceptor, i as refreshInterceptor, n as csrfInterceptor, r as devBypassInterceptor, t as createTransport } from "../transport-
|
|
1
|
+
import { i as portableTextToMarkdown, n as convertDataForWrite, r as markdownToPortableText, t as convertDataForRead } from "../portable-text-U85hOafW.mjs";
|
|
2
|
+
import { a as tokenInterceptor, i as refreshInterceptor, n as csrfInterceptor, r as devBypassInterceptor, t as createTransport } from "../transport-DtrY0-hI.mjs";
|
|
3
3
|
import mime from "mime/lite";
|
|
4
4
|
|
|
5
5
|
//#region src/client/index.ts
|
|
@@ -161,7 +161,8 @@ const DINEWAY_LOCAL_STATE_GITIGNORE_ENTRIES = [
|
|
|
161
161
|
".dineway/forgeway.json",
|
|
162
162
|
".dineway/types.ts",
|
|
163
163
|
".dineway/schema.json",
|
|
164
|
-
".dineway/uploads/"
|
|
164
|
+
".dineway/uploads/",
|
|
165
|
+
".dineway/sites-deploy.tar.gz"
|
|
165
166
|
];
|
|
166
167
|
const NEWLINE_PATTERN = /\r?\n/g;
|
|
167
168
|
function parseDotenvValue(value) {
|
|
@@ -17,7 +17,6 @@ var DinewayDatabaseError = class extends Error {
|
|
|
17
17
|
|
|
18
18
|
//#endregion
|
|
19
19
|
//#region src/database/native-drivers.ts
|
|
20
|
-
const runtimeRequire = createRequire(import.meta.url);
|
|
21
20
|
function isBetterSqlite3Factory(value) {
|
|
22
21
|
return typeof value === "function";
|
|
23
22
|
}
|
|
@@ -29,12 +28,12 @@ function loadCjsDefault(module) {
|
|
|
29
28
|
return module;
|
|
30
29
|
}
|
|
31
30
|
function loadBetterSqlite3() {
|
|
32
|
-
const factory = loadCjsDefault(
|
|
31
|
+
const factory = loadCjsDefault(createRequire(import.meta.url)("better-sqlite3"));
|
|
33
32
|
if (!isBetterSqlite3Factory(factory)) throw new Error("Invalid better-sqlite3 module shape");
|
|
34
33
|
return factory;
|
|
35
34
|
}
|
|
36
35
|
function loadLibsqlDialect() {
|
|
37
|
-
const module =
|
|
36
|
+
const module = createRequire(import.meta.url)("@libsql/kysely-libsql");
|
|
38
37
|
const dialect = typeof module === "object" && module !== null && "LibsqlDialect" in module ? module.LibsqlDialect : void 0;
|
|
39
38
|
if (!isLibsqlDialectConstructor(dialect)) throw new Error("Invalid @libsql/kysely-libsql module shape");
|
|
40
39
|
return dialect;
|
|
@@ -3,122 +3,10 @@ import { t as validateIdentifier } from "./validate-VPnKoIzW.mjs";
|
|
|
3
3
|
import { i as encodeCursor, n as ScheduledNotDueError, r as decodeCursor, t as DinewayValidationError } from "./types-CFvpEEOl.mjs";
|
|
4
4
|
import { o as invalidateCollectionCache } from "./object-cache-D51qOseS.mjs";
|
|
5
5
|
import { n as slugify } from "./slugify-KSsVD_D3.mjs";
|
|
6
|
+
import { t as RevisionRepository } from "./revision-De7OmYVD.mjs";
|
|
6
7
|
import { sql } from "kysely";
|
|
7
|
-
import {
|
|
8
|
+
import { ulid } from "ulidx";
|
|
8
9
|
|
|
9
|
-
//#region src/database/repositories/revision.ts
|
|
10
|
-
const monotonic = monotonicFactory();
|
|
11
|
-
/**
|
|
12
|
-
* Revision repository for version history
|
|
13
|
-
*
|
|
14
|
-
* Each revision stores a JSON snapshot of the content at a point in time.
|
|
15
|
-
* Used when collection has `supports: ["revisions"]` enabled.
|
|
16
|
-
*/
|
|
17
|
-
var RevisionRepository = class {
|
|
18
|
-
constructor(db) {
|
|
19
|
-
this.db = db;
|
|
20
|
-
}
|
|
21
|
-
/**
|
|
22
|
-
* Create a new revision
|
|
23
|
-
*/
|
|
24
|
-
async create(input) {
|
|
25
|
-
const id = monotonic();
|
|
26
|
-
const row = {
|
|
27
|
-
id,
|
|
28
|
-
collection: input.collection,
|
|
29
|
-
entry_id: input.entryId,
|
|
30
|
-
data: JSON.stringify(input.data),
|
|
31
|
-
author_id: input.authorId ?? null
|
|
32
|
-
};
|
|
33
|
-
await this.db.insertInto("revisions").values(row).execute();
|
|
34
|
-
const revision = await this.findById(id);
|
|
35
|
-
if (!revision) throw new Error("Failed to create revision");
|
|
36
|
-
return revision;
|
|
37
|
-
}
|
|
38
|
-
/**
|
|
39
|
-
* Find revision by ID
|
|
40
|
-
*/
|
|
41
|
-
async findById(id) {
|
|
42
|
-
const row = await this.db.selectFrom("revisions").selectAll().where("id", "=", id).executeTakeFirst();
|
|
43
|
-
return row ? this.rowToRevision(row) : null;
|
|
44
|
-
}
|
|
45
|
-
/**
|
|
46
|
-
* Get all revisions for an entry (newest first)
|
|
47
|
-
*
|
|
48
|
-
* Orders by monotonic ULID (descending). The monotonic factory
|
|
49
|
-
* guarantees strictly increasing IDs even within the same millisecond.
|
|
50
|
-
*/
|
|
51
|
-
async findByEntry(collection, entryId, options = {}) {
|
|
52
|
-
let query = this.db.selectFrom("revisions").selectAll().where("collection", "=", collection).where("entry_id", "=", entryId).orderBy("id", "desc");
|
|
53
|
-
if (options.limit) query = query.limit(options.limit);
|
|
54
|
-
return (await query.execute()).map((row) => this.rowToRevision(row));
|
|
55
|
-
}
|
|
56
|
-
/**
|
|
57
|
-
* Get the most recent revision for an entry
|
|
58
|
-
*/
|
|
59
|
-
async findLatest(collection, entryId) {
|
|
60
|
-
const row = await this.db.selectFrom("revisions").selectAll().where("collection", "=", collection).where("entry_id", "=", entryId).orderBy("id", "desc").limit(1).executeTakeFirst();
|
|
61
|
-
return row ? this.rowToRevision(row) : null;
|
|
62
|
-
}
|
|
63
|
-
/**
|
|
64
|
-
* Count revisions for an entry
|
|
65
|
-
*/
|
|
66
|
-
async countByEntry(collection, entryId) {
|
|
67
|
-
const result = await this.db.selectFrom("revisions").select((eb) => eb.fn.count("id").as("count")).where("collection", "=", collection).where("entry_id", "=", entryId).executeTakeFirst();
|
|
68
|
-
return Number(result?.count || 0);
|
|
69
|
-
}
|
|
70
|
-
/**
|
|
71
|
-
* Delete all revisions for an entry (use when entry is deleted)
|
|
72
|
-
*/
|
|
73
|
-
async deleteByEntry(collection, entryId) {
|
|
74
|
-
const result = await this.db.deleteFrom("revisions").where("collection", "=", collection).where("entry_id", "=", entryId).executeTakeFirst();
|
|
75
|
-
return Number(result.numDeletedRows ?? 0);
|
|
76
|
-
}
|
|
77
|
-
/**
|
|
78
|
-
* Delete old revisions, keeping the most recent N and any revisions
|
|
79
|
-
* referenced by the content entry's live or draft pointers.
|
|
80
|
-
*/
|
|
81
|
-
async pruneOldRevisions(collection, entryId, keepCount) {
|
|
82
|
-
const keep = await this.db.selectFrom("revisions").select("id").where("collection", "=", collection).where("entry_id", "=", entryId).orderBy("created_at", "desc").orderBy("id", "desc").limit(keepCount).execute();
|
|
83
|
-
const keepIds = new Set(keep.map((r) => r.id));
|
|
84
|
-
if (keepIds.size === 0) return 0;
|
|
85
|
-
if (await this.db.selectFrom("_dineway_collections").select("slug").where("slug", "=", collection).executeTakeFirst()) {
|
|
86
|
-
validateIdentifier(collection, "collection slug");
|
|
87
|
-
const tableName = `ec_${collection}`;
|
|
88
|
-
const row = (await sql`
|
|
89
|
-
SELECT live_revision_id, draft_revision_id
|
|
90
|
-
FROM ${sql.ref(tableName)}
|
|
91
|
-
WHERE id = ${entryId}
|
|
92
|
-
`.execute(this.db)).rows[0];
|
|
93
|
-
if (row?.live_revision_id) keepIds.add(row.live_revision_id);
|
|
94
|
-
if (row?.draft_revision_id) keepIds.add(row.draft_revision_id);
|
|
95
|
-
}
|
|
96
|
-
const result = await this.db.deleteFrom("revisions").where("collection", "=", collection).where("entry_id", "=", entryId).where("id", "not in", [...keepIds]).executeTakeFirst();
|
|
97
|
-
return Number(result.numDeletedRows ?? 0);
|
|
98
|
-
}
|
|
99
|
-
/**
|
|
100
|
-
* Update revision data in place
|
|
101
|
-
* Used for autosave to avoid creating many small revisions.
|
|
102
|
-
*/
|
|
103
|
-
async updateData(id, data) {
|
|
104
|
-
await this.db.updateTable("revisions").set({ data: JSON.stringify(data) }).where("id", "=", id).execute();
|
|
105
|
-
}
|
|
106
|
-
/**
|
|
107
|
-
* Convert database row to Revision object
|
|
108
|
-
*/
|
|
109
|
-
rowToRevision(row) {
|
|
110
|
-
return {
|
|
111
|
-
id: row.id,
|
|
112
|
-
collection: row.collection,
|
|
113
|
-
entryId: row.entry_id,
|
|
114
|
-
data: JSON.parse(row.data),
|
|
115
|
-
authorId: row.author_id,
|
|
116
|
-
createdAt: row.created_at
|
|
117
|
-
};
|
|
118
|
-
}
|
|
119
|
-
};
|
|
120
|
-
|
|
121
|
-
//#endregion
|
|
122
10
|
//#region src/database/repositories/content.ts
|
|
123
11
|
var content_exports = /* @__PURE__ */ __exportAll({ ContentRepository: () => ContentRepository });
|
|
124
12
|
const ULID_PATTERN = /^[0-9A-Z]{26}$/;
|
|
@@ -975,4 +863,4 @@ var ContentRepository = class {
|
|
|
975
863
|
};
|
|
976
864
|
|
|
977
865
|
//#endregion
|
|
978
|
-
export { content_exports as n,
|
|
866
|
+
export { content_exports as n, ContentRepository as t };
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { t as validateIdentifier } from "./validate-VPnKoIzW.mjs";
|
|
2
2
|
import { r as isI18nEnabled } from "./config-CVssduLe.mjs";
|
|
3
3
|
import { i as encodeCursor, r as decodeCursor } from "./types-CFvpEEOl.mjs";
|
|
4
|
-
import { n as chunks, t as SQL_BATCH_SIZE } from "./chunks-
|
|
5
|
-
import { t as withTransaction } from "./transaction-
|
|
6
|
-
import { n as normalizeMime } from "./mime-
|
|
7
|
-
import { n as hashString } from "./hash-
|
|
4
|
+
import { n as chunks, t as SQL_BATCH_SIZE } from "./chunks-Bw3_BuVW.mjs";
|
|
5
|
+
import { t as withTransaction } from "./transaction-L0tzAOfM.mjs";
|
|
6
|
+
import { n as normalizeMime } from "./mime-Bg7yUeHW.mjs";
|
|
7
|
+
import { n as hashString } from "./hash-CEky-IDp.mjs";
|
|
8
8
|
import { sql } from "kysely";
|
|
9
9
|
import { ulid } from "ulidx";
|
|
10
10
|
|
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
import { n as validateJsonFieldName } from "./validate-VPnKoIzW.mjs";
|
|
2
2
|
import { c as jsonExtractExpr } from "./dialect-helpers-fk43GbDb.mjs";
|
|
3
3
|
import { i as encodeCursor, r as decodeCursor } from "./types-CFvpEEOl.mjs";
|
|
4
|
-
import { t as ContentRepository } from "./content-
|
|
5
|
-
import { t as MediaRepository } from "./media-
|
|
6
|
-
import { t as UserRepository } from "./user-
|
|
7
|
-
import { t as OptionsRepository } from "./options-
|
|
8
|
-
import { t as withTransaction } from "./transaction-
|
|
9
|
-
import { t as enrichImageMetadata } from "./enrich-
|
|
10
|
-
import { t as SeoRepository } from "./seo-
|
|
11
|
-
import { a as markContentMediaUsageCollectionStaleSafely } from "./content-refresh-
|
|
12
|
-
import { a as validateExternalUrl, i as stripCredentialHeaders, t as SsrfError } from "./ssrf-
|
|
13
|
-
import { t as CronAccessImpl } from "./cron-
|
|
4
|
+
import { t as ContentRepository } from "./content-CzUrmMC3.mjs";
|
|
5
|
+
import { t as MediaRepository } from "./media-4xtXwq7L.mjs";
|
|
6
|
+
import { t as UserRepository } from "./user-Dn3wV227.mjs";
|
|
7
|
+
import { t as OptionsRepository } from "./options-1dBRkoCl.mjs";
|
|
8
|
+
import { t as withTransaction } from "./transaction-L0tzAOfM.mjs";
|
|
9
|
+
import { t as enrichImageMetadata } from "./enrich-Uw_OA9Ve.mjs";
|
|
10
|
+
import { t as SeoRepository } from "./seo-BhMH6i2e.mjs";
|
|
11
|
+
import { a as markContentMediaUsageCollectionStaleSafely } from "./content-refresh-C_jcjzOr.mjs";
|
|
12
|
+
import { a as validateExternalUrl, i as stripCredentialHeaders, t as SsrfError } from "./ssrf-D00lPvtF.mjs";
|
|
13
|
+
import { t as CronAccessImpl } from "./cron-DIsnItPn.mjs";
|
|
14
14
|
import { sql } from "kysely";
|
|
15
15
|
import { ulid } from "ulidx";
|
|
16
16
|
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { _ as toPublicContextDiff, v as toPublicContextEntry, y as toPublicContextEntryPage } from "./site-context-
|
|
2
|
-
import { a as ContextRepository, i as parseSiteBriefingScope, n as SiteBriefingError } from "./briefing-
|
|
1
|
+
import { _ as toPublicContextDiff, v as toPublicContextEntry, y as toPublicContextEntryPage } from "./site-context-b3_xbkdc.mjs";
|
|
2
|
+
import { a as ContextRepository, i as parseSiteBriefingScope, n as SiteBriefingError } from "./briefing-Cd2HhhHi.mjs";
|
|
3
3
|
|
|
4
4
|
//#region src/api/handlers/context.ts
|
|
5
5
|
async function handleContextEntryList(db, input = {}) {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { n as resolveActorIdentity } from "./actor-
|
|
2
|
-
import { p as logSiteActivitySafely } from "./activity-events-
|
|
1
|
+
import { n as resolveActorIdentity } from "./actor-BraTCiOp.mjs";
|
|
2
|
+
import { p as logSiteActivitySafely } from "./activity-events-BYksOnTL.mjs";
|
|
3
3
|
|
|
4
4
|
//#region src/api/context-route-helpers.ts
|
|
5
5
|
function resolveContextRouteActor(locals) {
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { t as validateIdentifier } from "./validate-VPnKoIzW.mjs";
|
|
2
|
-
import { t as ContentRepository } from "./content-
|
|
3
|
-
import { t as MediaRepository } from "./media-
|
|
4
|
-
import { t as UserRepository } from "./user-
|
|
5
|
-
import { t as ReviewRequestRepository } from "./review-requests-
|
|
2
|
+
import { t as ContentRepository } from "./content-CzUrmMC3.mjs";
|
|
3
|
+
import { t as MediaRepository } from "./media-4xtXwq7L.mjs";
|
|
4
|
+
import { t as UserRepository } from "./user-Dn3wV227.mjs";
|
|
5
|
+
import { t as ReviewRequestRepository } from "./review-requests-DaYnr3XR.mjs";
|
|
6
6
|
import { sql } from "kysely";
|
|
7
7
|
|
|
8
8
|
//#region src/api/handlers/dashboard.ts
|
package/dist/db/index.d.mts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import "../types-
|
|
2
|
-
import { i as runMigrations, n as getMigrationStatus, r as rollbackMigration, t as MigrationStatus } from "../runner-
|
|
3
|
-
import { a as
|
|
4
|
-
export { type DatabaseDescriptor, type DatabaseDialectType, type LibsqlConfig, type MigrationStatus, type PostgresConfig, type SqliteConfig, getMigrationStatus, libsql, postgres, rollbackMigration, runMigrations, sqlite };
|
|
1
|
+
import "../types-B2W3CeZN.mjs";
|
|
2
|
+
import { i as runMigrations, n as getMigrationStatus, r as rollbackMigration, t as MigrationStatus } from "../runner-o39FihbH.mjs";
|
|
3
|
+
import { a as PostgresConfig, c as libsqlHttp, i as LibsqlHttpConfig, l as postgres, n as DatabaseDialectType, o as SqliteConfig, r as LibsqlConfig, s as libsql, t as DatabaseDescriptor, u as sqlite } from "../adapters-C-iHnQYy.mjs";
|
|
4
|
+
export { type DatabaseDescriptor, type DatabaseDialectType, type LibsqlConfig, type LibsqlHttpConfig, type MigrationStatus, type PostgresConfig, type SqliteConfig, getMigrationStatus, libsql, libsqlHttp, postgres, rollbackMigration, runMigrations, sqlite };
|
package/dist/db/index.mjs
CHANGED
|
@@ -40,6 +40,14 @@ function libsql(config) {
|
|
|
40
40
|
type: "sqlite"
|
|
41
41
|
};
|
|
42
42
|
}
|
|
43
|
+
/** Remote libSQL over HTTP, suitable for Cloudflare Workers and ChatGPT Sites. */
|
|
44
|
+
function libsqlHttp(config = {}) {
|
|
45
|
+
return {
|
|
46
|
+
entrypoint: "dineway/db/libsql-http",
|
|
47
|
+
config,
|
|
48
|
+
type: "sqlite"
|
|
49
|
+
};
|
|
50
|
+
}
|
|
43
51
|
/**
|
|
44
52
|
* PostgreSQL database adapter
|
|
45
53
|
*
|
|
@@ -59,4 +67,4 @@ function postgres(config) {
|
|
|
59
67
|
}
|
|
60
68
|
|
|
61
69
|
//#endregion
|
|
62
|
-
export { getMigrationStatus, libsql, postgres, rollbackMigration, runMigrations, sqlite };
|
|
70
|
+
export { getMigrationStatus, libsql, libsqlHttp, postgres, rollbackMigration, runMigrations, sqlite };
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import { i as LibsqlHttpConfig } from "../adapters-C-iHnQYy.mjs";
|
|
2
|
+
import { Kysely, MigrationLockOptions, SqliteAdapter } from "kysely";
|
|
3
|
+
import { LibsqlDialect } from "@libsql/kysely-libsql";
|
|
4
|
+
|
|
5
|
+
//#region src/db/libsql-dialect.d.ts
|
|
6
|
+
interface MigrationLockRow {
|
|
7
|
+
id: string;
|
|
8
|
+
is_locked: number;
|
|
9
|
+
}
|
|
10
|
+
type MigrationLockDatabase = Record<string, MigrationLockRow>;
|
|
11
|
+
declare class LibsqlMigrationLockAdapter extends SqliteAdapter {
|
|
12
|
+
#private;
|
|
13
|
+
acquireMigrationLock(db: Kysely<MigrationLockDatabase>, options: MigrationLockOptions): Promise<void>;
|
|
14
|
+
releaseMigrationLock(db: Kysely<MigrationLockDatabase>, options: MigrationLockOptions): Promise<void>;
|
|
15
|
+
}
|
|
16
|
+
declare class LibsqlDialect$1 extends LibsqlDialect {
|
|
17
|
+
createAdapter(): LibsqlMigrationLockAdapter;
|
|
18
|
+
}
|
|
19
|
+
//#endregion
|
|
20
|
+
//#region src/db/libsql-http.d.ts
|
|
21
|
+
declare function resolveLibsqlHttpConfig(config: LibsqlHttpConfig): {
|
|
22
|
+
url: string;
|
|
23
|
+
authToken?: string;
|
|
24
|
+
};
|
|
25
|
+
declare function createDialect(config: LibsqlHttpConfig): LibsqlDialect$1;
|
|
26
|
+
//#endregion
|
|
27
|
+
export { createDialect, resolveLibsqlHttpConfig };
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import { t as LibsqlDialect } from "../libsql-dialect-DMqpBfJI.mjs";
|
|
2
|
+
|
|
3
|
+
//#region src/db/libsql-http.ts
|
|
4
|
+
const LIBSQL_SCHEME = /^libsql:/;
|
|
5
|
+
function resolveLibsqlHttpConfig(config) {
|
|
6
|
+
const url = config.url || process.env.DINEWAY_DATABASE_URL;
|
|
7
|
+
if (!url) throw new Error("libsqlHttp requires DINEWAY_DATABASE_URL at runtime.");
|
|
8
|
+
let parsed;
|
|
9
|
+
try {
|
|
10
|
+
parsed = new URL(url);
|
|
11
|
+
} catch {
|
|
12
|
+
throw new Error("libsqlHttp requires a remote libsql:// or HTTP(S) database URL.");
|
|
13
|
+
}
|
|
14
|
+
if (![
|
|
15
|
+
"libsql:",
|
|
16
|
+
"http:",
|
|
17
|
+
"https:"
|
|
18
|
+
].includes(parsed.protocol) || !parsed.hostname || parsed.username || parsed.password) throw new Error("libsqlHttp requires a remote libsql:// or HTTP(S) database URL without embedded credentials.");
|
|
19
|
+
return {
|
|
20
|
+
url: parsed.protocol === "libsql:" ? url.replace(LIBSQL_SCHEME, "https:") : url,
|
|
21
|
+
authToken: config.authToken || process.env.DINEWAY_DATABASE_AUTH_TOKEN
|
|
22
|
+
};
|
|
23
|
+
}
|
|
24
|
+
function createDialect(config) {
|
|
25
|
+
return new LibsqlDialect(resolveLibsqlHttpConfig(config));
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
//#endregion
|
|
29
|
+
export { createDialect, resolveLibsqlHttpConfig };
|
package/dist/db/libsql.d.mts
CHANGED
package/dist/db/libsql.mjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
1
|
+
import { t as LibsqlDialect } from "../libsql-dialect-DMqpBfJI.mjs";
|
|
2
|
+
import { SqliteDialect } from "kysely";
|
|
3
3
|
import BetterSqlite3 from "better-sqlite3";
|
|
4
4
|
|
|
5
5
|
//#region src/db/libsql.ts
|
|
@@ -12,52 +12,12 @@ import BetterSqlite3 from "better-sqlite3";
|
|
|
12
12
|
* remote libSQL deployments.
|
|
13
13
|
* Loaded at runtime via virtual module.
|
|
14
14
|
*/
|
|
15
|
-
const MIGRATION_LOCK_LEASE_MS = 5 * 6e4;
|
|
16
|
-
const MIGRATION_LOCK_WAIT_MS = 3e4;
|
|
17
|
-
const MIGRATION_LOCK_POLL_MS = 50;
|
|
18
|
-
function sleep(ms) {
|
|
19
|
-
return new Promise((resolve) => setTimeout(resolve, ms));
|
|
20
|
-
}
|
|
21
|
-
var LibsqlMigrationLockAdapter = class extends SqliteAdapter {
|
|
22
|
-
#claims = /* @__PURE__ */ new Map();
|
|
23
|
-
async acquireMigrationLock(db, options) {
|
|
24
|
-
const queryDb = options.lockTableSchema ? db.withSchema(options.lockTableSchema) : db;
|
|
25
|
-
const claimKey = `${options.lockTableSchema ?? ""}.${options.lockTable}:${options.lockRowId}`;
|
|
26
|
-
const waitDeadline = Date.now() + MIGRATION_LOCK_WAIT_MS;
|
|
27
|
-
for (;;) {
|
|
28
|
-
const now = Date.now();
|
|
29
|
-
const claim = now + MIGRATION_LOCK_LEASE_MS;
|
|
30
|
-
if ((await queryDb.updateTable(options.lockTable).set({ is_locked: claim }).where("id", "=", options.lockRowId).where((expression) => expression.or([expression("is_locked", "=", 0), expression("is_locked", "<=", now)])).executeTakeFirst()).numUpdatedRows === 1n) {
|
|
31
|
-
this.#claims.set(claimKey, claim);
|
|
32
|
-
return;
|
|
33
|
-
}
|
|
34
|
-
if (now >= waitDeadline) throw new Error("Timed out waiting for the libSQL migration lock");
|
|
35
|
-
await sleep(MIGRATION_LOCK_POLL_MS);
|
|
36
|
-
}
|
|
37
|
-
}
|
|
38
|
-
async releaseMigrationLock(db, options) {
|
|
39
|
-
const claimKey = `${options.lockTableSchema ?? ""}.${options.lockTable}:${options.lockRowId}`;
|
|
40
|
-
const claim = this.#claims.get(claimKey);
|
|
41
|
-
if (claim === void 0) return;
|
|
42
|
-
const queryDb = options.lockTableSchema ? db.withSchema(options.lockTableSchema) : db;
|
|
43
|
-
try {
|
|
44
|
-
await queryDb.updateTable(options.lockTable).set({ is_locked: 0 }).where("id", "=", options.lockRowId).where("is_locked", "=", claim).execute();
|
|
45
|
-
} finally {
|
|
46
|
-
this.#claims.delete(claimKey);
|
|
47
|
-
}
|
|
48
|
-
}
|
|
49
|
-
};
|
|
50
|
-
var LibsqlDialect$1 = class extends LibsqlDialect {
|
|
51
|
-
createAdapter() {
|
|
52
|
-
return new LibsqlMigrationLockAdapter();
|
|
53
|
-
}
|
|
54
|
-
};
|
|
55
15
|
/**
|
|
56
16
|
* Create a libSQL dialect from config
|
|
57
17
|
*/
|
|
58
18
|
function createDialect(config) {
|
|
59
19
|
if (config.url === ":memory:" || config.url.startsWith("file:")) return new SqliteDialect({ database: new BetterSqlite3(config.url === ":memory:" ? config.url : config.url.slice(5)) });
|
|
60
|
-
return new LibsqlDialect
|
|
20
|
+
return new LibsqlDialect({
|
|
61
21
|
url: config.url,
|
|
62
22
|
authToken: config.authToken
|
|
63
23
|
});
|
package/dist/db/postgres.d.mts
CHANGED
package/dist/db/sqlite.d.mts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { t as withTransaction } from "./transaction-
|
|
2
|
-
import { a as hashApiToken, n as TOKEN_PREFIXES, r as generatePrefixedToken, t as ALL_VALID_SCOPES } from "./api-tokens-
|
|
3
|
-
import { a as filterExperimentalSiteContextWorkflowScopes, i as experimentalSiteContextWorkflowsEnabled, o as getExperimentalSiteContextWorkflowScopesDisabledMessage, r as disabledExperimentalSiteContextWorkflowScopes } from "./experimental-workflows-
|
|
4
|
-
import { o as lookupOAuthClient } from "./oauth-clients-
|
|
5
|
-
import { t as lookupUserRoleAndStatus } from "./oauth-user-lookup-
|
|
1
|
+
import { t as withTransaction } from "./transaction-L0tzAOfM.mjs";
|
|
2
|
+
import { a as hashApiToken, n as TOKEN_PREFIXES, r as generatePrefixedToken, t as ALL_VALID_SCOPES } from "./api-tokens-CZ472rzA.mjs";
|
|
3
|
+
import { a as filterExperimentalSiteContextWorkflowScopes, i as experimentalSiteContextWorkflowsEnabled, o as getExperimentalSiteContextWorkflowScopesDisabledMessage, r as disabledExperimentalSiteContextWorkflowScopes } from "./experimental-workflows-DOo7QDRn.mjs";
|
|
4
|
+
import { o as lookupOAuthClient } from "./oauth-clients-DLJMG4h7.mjs";
|
|
5
|
+
import { t as lookupUserRoleAndStatus } from "./oauth-user-lookup-D2NAYPjU.mjs";
|
|
6
6
|
import { clampScopes } from "@dineway-ai/auth";
|
|
7
7
|
import { generateCodeVerifier } from "arctic";
|
|
8
8
|
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
import { t as validateIdentifier } from "./validate-VPnKoIzW.mjs";
|
|
2
2
|
import { i as encodeCursor, r as decodeCursor } from "./types-CFvpEEOl.mjs";
|
|
3
|
-
import { n as publicDiscoveryExclusions } from "./public-discovery-
|
|
4
|
-
import { n as SchemaRegistry } from "./registry-
|
|
3
|
+
import { n as publicDiscoveryExclusions } from "./public-discovery-CyDzK1-S.mjs";
|
|
4
|
+
import { n as SchemaRegistry } from "./registry-QxrUJAWY.mjs";
|
|
5
|
+
import { t as resolveContentUrl } from "./public-url-DjWfilkD.mjs";
|
|
5
6
|
import { sql } from "kysely";
|
|
6
7
|
|
|
7
8
|
//#region src/seo/canonical-url.ts
|
|
@@ -19,51 +20,6 @@ function resolveCanonicalUrl(value, siteUrl) {
|
|
|
19
20
|
}
|
|
20
21
|
}
|
|
21
22
|
|
|
22
|
-
//#endregion
|
|
23
|
-
//#region src/seo/public-url.ts
|
|
24
|
-
const PLACEHOLDER_RE = /\{[^}]+\}/;
|
|
25
|
-
const MULTIPLE_SLASHES_RE = /\/+/g;
|
|
26
|
-
const UNSAFE_SLUG_RE = /[\\/?#\s]/;
|
|
27
|
-
const UNSAFE_PATH_RE = /[\\?#\s]/;
|
|
28
|
-
const DOT_SEGMENT_RE = /(?:^|\/)\.{1,2}(?:\/|$)/;
|
|
29
|
-
/**
|
|
30
|
-
* Returns a same-origin public URL, or null when the collection has no usable route.
|
|
31
|
-
* urlField paths are authoritative, including case, trailing slash and locale prefix.
|
|
32
|
-
* Pattern routes add locale prefixes and preserve the declared slash convention. Never infer a route from
|
|
33
|
-
* a collection name when the site has not declared one.
|
|
34
|
-
*/
|
|
35
|
-
function resolveContentUrl(input) {
|
|
36
|
-
const { cfg, urlField, urlPattern } = input;
|
|
37
|
-
const locale = input.locale || cfg?.defaultLocale;
|
|
38
|
-
if (cfg && (!locale || !cfg.locales.includes(locale))) return null;
|
|
39
|
-
let path;
|
|
40
|
-
if (urlField) {
|
|
41
|
-
const value = input.data?.[urlField];
|
|
42
|
-
if (typeof value !== "string" || !value) return null;
|
|
43
|
-
path = value;
|
|
44
|
-
} else {
|
|
45
|
-
if (!urlPattern?.includes("{slug}") || !input.slug || UNSAFE_SLUG_RE.test(input.slug)) return null;
|
|
46
|
-
if (input.slug === "." || input.slug === "..") return null;
|
|
47
|
-
path = urlPattern.replaceAll("{slug}", encodeURIComponent(input.slug));
|
|
48
|
-
if (PLACEHOLDER_RE.test(path)) return null;
|
|
49
|
-
if (!path.startsWith("/")) path = `/${path}`;
|
|
50
|
-
if (path.startsWith("//")) return null;
|
|
51
|
-
path = path.replace(MULTIPLE_SLASHES_RE, "/");
|
|
52
|
-
if (cfg && (locale !== cfg.defaultLocale || cfg.prefixDefaultLocale)) path = `/${locale}${path}`;
|
|
53
|
-
}
|
|
54
|
-
if (!path.startsWith("/") || path.startsWith("//") || UNSAFE_PATH_RE.test(path)) return null;
|
|
55
|
-
try {
|
|
56
|
-
if (DOT_SEGMENT_RE.test(decodeURIComponent(path))) return null;
|
|
57
|
-
const origin = new URL(input.siteUrl);
|
|
58
|
-
if (!["http:", "https:"].includes(origin.protocol) || origin.username || origin.password) return null;
|
|
59
|
-
const url = new URL(path, origin.origin);
|
|
60
|
-
if (url.origin !== origin.origin) return null;
|
|
61
|
-
return url.href;
|
|
62
|
-
} catch {
|
|
63
|
-
return null;
|
|
64
|
-
}
|
|
65
|
-
}
|
|
66
|
-
|
|
67
23
|
//#endregion
|
|
68
24
|
//#region src/seo/discovery.ts
|
|
69
25
|
/**
|
|
@@ -179,4 +135,4 @@ function escapeLike(value) {
|
|
|
179
135
|
}
|
|
180
136
|
|
|
181
137
|
//#endregion
|
|
182
|
-
export {
|
|
138
|
+
export { resolveCanonicalUrl as n, listPublicContent as t };
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { a as __exportAll } from "./runner-CQnzfBpD.mjs";
|
|
2
2
|
import { getRequestContext } from "./request-context.mjs";
|
|
3
3
|
import { t as after } from "./after-BfniwgIf.mjs";
|
|
4
|
-
import { r as requestCached } from "./request-cache-
|
|
5
|
-
import { n as BylineSchemaRegistry } from "./byline-registry-
|
|
6
|
-
import { n as invalidateProcessCache, r as processCachedAsync, t as createProcessCache } from "./process-cache-
|
|
4
|
+
import { r as requestCached } from "./request-cache-DoT2mKBT.mjs";
|
|
5
|
+
import { n as BylineSchemaRegistry } from "./byline-registry-CF9nobxT.mjs";
|
|
6
|
+
import { n as invalidateProcessCache, r as processCachedAsync, t as createProcessCache } from "./process-cache-DsMwJ3LM.mjs";
|
|
7
7
|
|
|
8
8
|
//#region src/bylines/field-defs-cache.ts
|
|
9
9
|
var field_defs_cache_exports = /* @__PURE__ */ __exportAll({ getBylineFieldDefs: () => getBylineFieldDefs });
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { b as HitlRequestService } from "./site-context-
|
|
2
|
-
import { t as ExperimentalSiteContextWorkflowDisabledError } from "./experimental-workflows-
|
|
1
|
+
import { b as HitlRequestService } from "./site-context-b3_xbkdc.mjs";
|
|
2
|
+
import { t as ExperimentalSiteContextWorkflowDisabledError } from "./experimental-workflows-DOo7QDRn.mjs";
|
|
3
3
|
|
|
4
4
|
//#region src/api/handlers/hitl-requests.ts
|
|
5
5
|
const HITL_NOT_FOUND_RE = /not found/i;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { t as WorkflowHitlCoordinator } from "./site-context-
|
|
2
|
-
import { t as apiError } from "./error-
|
|
3
|
-
import { n as resolveActorIdentity } from "./actor-
|
|
4
|
-
import { p as logSiteActivitySafely } from "./activity-events-
|
|
5
|
-
import { t as ExperimentalSiteContextWorkflowDisabledError } from "./experimental-workflows-
|
|
1
|
+
import { t as WorkflowHitlCoordinator } from "./site-context-b3_xbkdc.mjs";
|
|
2
|
+
import { t as apiError } from "./error-BPA9T0AW.mjs";
|
|
3
|
+
import { n as resolveActorIdentity } from "./actor-BraTCiOp.mjs";
|
|
4
|
+
import { p as logSiteActivitySafely } from "./activity-events-BYksOnTL.mjs";
|
|
5
|
+
import { t as ExperimentalSiteContextWorkflowDisabledError } from "./experimental-workflows-DOo7QDRn.mjs";
|
|
6
6
|
import { Role } from "@dineway-ai/auth";
|
|
7
7
|
|
|
8
8
|
//#region src/api/hitl-route-helpers.ts
|