dineway 0.2.38 → 0.2.40
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-BbtYp_4V.mjs → activity-LXZdjKwI.mjs} +1 -1
- package/dist/{activity-events-CiFN61xq.mjs → activity-events-DoqeOM8x.mjs} +1 -1
- package/dist/adapter-symbols-Bq3JsWGM.d.mts +5 -0
- package/dist/{adapters-Rol-inz6.d.mts → adapters-C8nRpUuj.d.mts} +22 -6
- package/dist/after.d.mts +10 -0
- package/dist/{after-BVaUn7bK.mjs → after.mjs} +3 -2
- package/dist/{allowed-origins-B2Jh2tzw.mjs → allowed-origins-B4zstd2d.mjs} +1 -1
- package/dist/api/route-utils.d.mts +12 -10
- package/dist/api/route-utils.mjs +18 -19
- package/dist/api/schemas/index.d.mts +1 -1
- package/dist/api/schemas/index.mjs +5 -5
- package/dist/{api-qTefA3vh.mjs → api-CQishNjZ.mjs} +11 -11
- package/dist/{api-tokens-OAgvq4xg.mjs → api-tokens-CNHnKO57.mjs} +1 -1
- package/dist/{apply-CC0OQb8V.mjs → apply-D4rZHDyg.mjs} +18 -18
- package/dist/astro/index.d.mts +13 -11
- package/dist/astro/index.mjs +20 -14
- package/dist/astro/middleware/auth.d.mts +11 -9
- package/dist/astro/middleware/auth.mjs +7 -8
- package/dist/astro/middleware/redirect.mjs +7 -7
- package/dist/astro/middleware/request-context.mjs +4 -5
- package/dist/astro/middleware/seed.d.mts +1 -1
- package/dist/astro/middleware/seed.mjs +3 -3
- package/dist/astro/middleware/setup.mjs +1 -1
- package/dist/astro/middleware.d.mts +9 -1
- package/dist/astro/middleware.mjs +301 -132
- 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 +22 -23
- package/dist/astro/routes/api/admin/byline-fields/_slug_/usage.mjs +5 -5
- package/dist/astro/routes/api/admin/byline-fields/_slug_.mjs +11 -11
- package/dist/astro/routes/api/admin/byline-fields/index.mjs +11 -11
- package/dist/astro/routes/api/admin/byline-fields/reorder.mjs +11 -11
- package/dist/astro/routes/api/admin/bylines/_id_/index.mjs +19 -20
- package/dist/astro/routes/api/admin/bylines/_id_/translations.mjs +19 -20
- package/dist/astro/routes/api/admin/bylines/index.mjs +19 -20
- package/dist/astro/routes/api/admin/comments/_id_/status.mjs +16 -17
- package/dist/astro/routes/api/admin/comments/_id_.mjs +6 -7
- package/dist/astro/routes/api/admin/comments/bulk.mjs +12 -13
- package/dist/astro/routes/api/admin/comments/counts.mjs +6 -7
- package/dist/astro/routes/api/admin/comments/index.mjs +12 -13
- package/dist/astro/routes/api/admin/context/_id_/history.mjs +37 -38
- package/dist/astro/routes/api/admin/context/_id_/index.mjs +37 -38
- package/dist/astro/routes/api/admin/context/_id_/review.mjs +42 -43
- package/dist/astro/routes/api/admin/context/_id_/supersede.mjs +42 -43
- package/dist/astro/routes/api/admin/context/diff.mjs +41 -42
- package/dist/astro/routes/api/admin/context/index.mjs +42 -43
- package/dist/astro/routes/api/admin/context/stale.mjs +41 -42
- package/dist/astro/routes/api/admin/hitl-requests/_id_/index.mjs +37 -38
- package/dist/astro/routes/api/admin/hitl-requests/_id_/resolve.mjs +41 -42
- package/dist/astro/routes/api/admin/hitl-requests/index.mjs +41 -42
- package/dist/astro/routes/api/admin/hooks/exclusive/_hookName_.mjs +38 -39
- 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 +66 -67
- package/dist/astro/routes/api/admin/plugins/_id_/enable.mjs +66 -67
- package/dist/astro/routes/api/admin/plugins/_id_/index.mjs +58 -59
- package/dist/astro/routes/api/admin/plugins/_id_/uninstall.mjs +65 -66
- package/dist/astro/routes/api/admin/plugins/_id_/update.mjs +65 -66
- package/dist/astro/routes/api/admin/plugins/index.mjs +58 -59
- package/dist/astro/routes/api/admin/plugins/marketplace/_id_/icon.mjs +2 -2
- package/dist/astro/routes/api/admin/plugins/marketplace/_id_/index.mjs +58 -59
- package/dist/astro/routes/api/admin/plugins/marketplace/_id_/install.mjs +65 -66
- package/dist/astro/routes/api/admin/plugins/marketplace/index.mjs +58 -59
- package/dist/astro/routes/api/admin/plugins/updates.mjs +58 -59
- package/dist/astro/routes/api/admin/review-requests/_id_/image.mjs +23 -24
- package/dist/astro/routes/api/admin/review-requests/_id_/index.mjs +34 -35
- package/dist/astro/routes/api/admin/review-requests/_id_/resolve.mjs +50 -51
- package/dist/astro/routes/api/admin/review-requests/_id_/revoke.mjs +8 -8
- package/dist/astro/routes/api/admin/review-requests/index.mjs +48 -49
- package/dist/astro/routes/api/admin/themes/marketplace/_id_/index.mjs +58 -59
- package/dist/astro/routes/api/admin/themes/marketplace/_id_/thumbnail.mjs +2 -2
- package/dist/astro/routes/api/admin/themes/marketplace/index.mjs +58 -59
- 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 +5 -5
- 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 +12 -12
- package/dist/astro/routes/api/auth/magic-link/verify.mjs +2 -2
- package/dist/astro/routes/api/auth/me.mjs +10 -10
- 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 +7 -7
- package/dist/astro/routes/api/auth/passkey/index.mjs +1 -1
- package/dist/astro/routes/api/auth/passkey/options.mjs +14 -14
- 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 +6 -6
- package/dist/astro/routes/api/auth/setup-token/verify.mjs +3 -3
- package/dist/astro/routes/api/auth/signup/complete.mjs +12 -12
- package/dist/astro/routes/api/auth/signup/request.mjs +12 -12
- package/dist/astro/routes/api/auth/signup/verify.mjs +1 -1
- package/dist/astro/routes/api/comments/_collection_/_contentId_/index.d.mts +11 -9
- package/dist/astro/routes/api/comments/_collection_/_contentId_/index.mjs +19 -20
- package/dist/astro/routes/api/comments/_collection_/_contentId_/reactions.mjs +17 -18
- package/dist/astro/routes/api/content/_collection_/_id_/compare.mjs +2 -2
- package/dist/astro/routes/api/content/_collection_/_id_/discard-draft.mjs +6 -6
- package/dist/astro/routes/api/content/_collection_/_id_/duplicate.mjs +6 -6
- package/dist/astro/routes/api/content/_collection_/_id_/permanent.mjs +6 -6
- package/dist/astro/routes/api/content/_collection_/_id_/preview-url.mjs +20 -21
- package/dist/astro/routes/api/content/_collection_/_id_/publish.mjs +29 -30
- package/dist/astro/routes/api/content/_collection_/_id_/release-readiness.mjs +8 -8
- package/dist/astro/routes/api/content/_collection_/_id_/restore.mjs +6 -6
- package/dist/astro/routes/api/content/_collection_/_id_/revisions.mjs +2 -2
- package/dist/astro/routes/api/content/_collection_/_id_/schedule.mjs +29 -30
- package/dist/astro/routes/api/content/_collection_/_id_/terms/_taxonomy_.mjs +18 -19
- package/dist/astro/routes/api/content/_collection_/_id_/translations.mjs +2 -2
- package/dist/astro/routes/api/content/_collection_/_id_/unpublish.mjs +6 -6
- package/dist/astro/routes/api/content/_collection_/_id_.mjs +12 -12
- package/dist/astro/routes/api/content/_collection_/authors.mjs +2 -2
- package/dist/astro/routes/api/content/_collection_/index.mjs +12 -12
- package/dist/astro/routes/api/content/_collection_/trash.mjs +8 -8
- package/dist/astro/routes/api/dashboard.mjs +11 -12
- 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 +22 -23
- package/dist/astro/routes/api/import/wordpress/analyze.mjs +10 -10
- package/dist/astro/routes/api/import/wordpress/execute.d.mts +11 -9
- package/dist/astro/routes/api/import/wordpress/execute.mjs +45 -46
- package/dist/astro/routes/api/import/wordpress/media.d.mts +11 -9
- package/dist/astro/routes/api/import/wordpress/media.mjs +13 -13
- package/dist/astro/routes/api/import/wordpress/prepare.mjs +46 -47
- package/dist/astro/routes/api/import/wordpress/rewrite-urls.d.mts +12 -10
- package/dist/astro/routes/api/import/wordpress/rewrite-urls.mjs +43 -44
- package/dist/astro/routes/api/import/wordpress-plugin/analyze.d.mts +1 -1
- package/dist/astro/routes/api/import/wordpress-plugin/analyze.mjs +26 -27
- package/dist/astro/routes/api/import/wordpress-plugin/execute.d.mts +11 -9
- package/dist/astro/routes/api/import/wordpress-plugin/execute.mjs +50 -51
- package/dist/astro/routes/api/integration/artifact.mjs +8 -9
- package/dist/astro/routes/api/integration/dispatch.mjs +12 -13
- package/dist/astro/routes/api/integrations/_provider_.mjs +9 -10
- package/dist/astro/routes/api/integrations/index.mjs +8 -9
- package/dist/astro/routes/api/manifest.mjs +5 -5
- package/dist/astro/routes/api/mcp.mjs +87 -88
- package/dist/astro/routes/api/media/_id_/confirm.mjs +11 -11
- 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 +12 -12
- package/dist/astro/routes/api/media.mjs +15 -15
- package/dist/astro/routes/api/menus/_name_/items/_id_.mjs +42 -43
- package/dist/astro/routes/api/menus/_name_/items.mjs +42 -43
- package/dist/astro/routes/api/menus/_name_/reorder.mjs +42 -43
- package/dist/astro/routes/api/menus/_name_/translations.mjs +42 -43
- package/dist/astro/routes/api/menus/_name_.mjs +42 -43
- package/dist/astro/routes/api/menus/index.mjs +42 -43
- package/dist/astro/routes/api/oauth/authorize.mjs +8 -8
- package/dist/astro/routes/api/oauth/device/authorize.mjs +6 -6
- package/dist/astro/routes/api/oauth/device/code.mjs +10 -10
- package/dist/astro/routes/api/oauth/device/token.mjs +9 -9
- 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 +7 -7
- package/dist/astro/routes/api/openapi.json.mjs +5 -5
- package/dist/astro/routes/api/plugins/_pluginId_/_...path_.mjs +3 -3
- package/dist/astro/routes/api/redirects/404s/index.mjs +13 -13
- package/dist/astro/routes/api/redirects/404s/summary.mjs +13 -13
- package/dist/astro/routes/api/redirects/_id_.mjs +42 -43
- package/dist/astro/routes/api/redirects/index.mjs +42 -43
- 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 +60 -61
- package/dist/astro/routes/api/schema/collections/_slug_/fields/index.mjs +60 -61
- package/dist/astro/routes/api/schema/collections/_slug_/fields/reorder.mjs +60 -61
- package/dist/astro/routes/api/schema/collections/_slug_/index.mjs +60 -61
- package/dist/astro/routes/api/schema/collections/index.mjs +60 -61
- package/dist/astro/routes/api/schema/index.mjs +10 -10
- package/dist/astro/routes/api/schema/orphans/_slug_.mjs +58 -59
- package/dist/astro/routes/api/schema/orphans/index.mjs +58 -59
- package/dist/astro/routes/api/search/enable.mjs +13 -13
- package/dist/astro/routes/api/search/index.mjs +12 -12
- package/dist/astro/routes/api/search/rebuild.mjs +13 -13
- package/dist/astro/routes/api/search/stats.mjs +7 -7
- package/dist/astro/routes/api/search/suggest.mjs +12 -12
- package/dist/astro/routes/api/sections/_slug_.mjs +42 -43
- package/dist/astro/routes/api/sections/index.mjs +42 -43
- package/dist/astro/routes/api/settings/email.mjs +4 -4
- package/dist/astro/routes/api/settings/reviews.mjs +9 -9
- package/dist/astro/routes/api/settings.mjs +42 -43
- 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 +30 -31
- package/dist/astro/routes/api/setup/dev-reset.mjs +2 -2
- package/dist/astro/routes/api/setup/index.mjs +32 -33
- package/dist/astro/routes/api/setup/status.mjs +3 -3
- package/dist/astro/routes/api/snapshot.mjs +8 -9
- package/dist/astro/routes/api/system/heartbeat.mjs +2 -2
- package/dist/astro/routes/api/taxonomies/_name_/terms/_slug_/translations.mjs +45 -46
- package/dist/astro/routes/api/taxonomies/_name_/terms/_slug_.mjs +45 -46
- package/dist/astro/routes/api/taxonomies/_name_/terms/index.mjs +45 -46
- package/dist/astro/routes/api/taxonomies/index.mjs +45 -46
- package/dist/astro/routes/api/themes/preview.mjs +6 -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 +41 -42
- package/dist/astro/routes/api/widget-areas/_name_/widgets/_id_.mjs +42 -43
- package/dist/astro/routes/api/widget-areas/_name_/widgets.mjs +42 -43
- package/dist/astro/routes/api/widget-areas/_name_.mjs +39 -40
- package/dist/astro/routes/api/widget-areas/index.mjs +42 -43
- package/dist/astro/routes/api/widget-components.mjs +2 -2
- package/dist/astro/routes/robots.txt.mjs +8 -9
- package/dist/astro/routes/sitemap-_collection_.xml.mjs +16 -17
- package/dist/astro/routes/sitemap.xml.mjs +15 -16
- package/dist/astro/session-driver.d.mts +1 -1
- package/dist/astro/session-driver.mjs +2 -2
- package/dist/astro/types.d.mts +14 -12
- package/dist/{audit-F5iWkbcJ.mjs → audit-Cl495Ze3.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-DPOSBNFI.mjs → auth-control-guard-DbjgJdlo.mjs} +1 -1
- package/dist/{authorize-CXIjxIfC.mjs → authorize-DDmgmnW-.mjs} +1 -1
- package/dist/{briefing-BiBHuHqK.mjs → briefing-COw-WcYz.mjs} +6 -6
- package/dist/{briefing-DQYj9x6H.mjs → briefing-DsD-Ouwc.mjs} +1 -1
- package/dist/{bundle-DImnxo71.mjs → bundle-bhiszAui.mjs} +2 -2
- package/dist/{byline-BCPYEtzy.mjs → byline-TYk2kad6.mjs} +6 -6
- package/dist/{byline-fields-CY6V0ew1.mjs → byline-fields-BKj5f3Ub.mjs} +1 -1
- package/dist/{byline-fields-S7igJ-zQ.d.mts → byline-fields-D-b9CWux.d.mts} +14 -14
- package/dist/{byline-fields-DGNKitg3.mjs → byline-fields-DZ46DF10.mjs} +3 -3
- package/dist/{byline-registry-CkuVVeJJ.mjs → byline-registry-CJihchD1.mjs} +1 -1
- package/dist/{bylines-BkRyEw1m.mjs → bylines-6T9iVC9j.mjs} +3 -3
- package/dist/{bylines-Do1KuJkk.mjs → bylines-CvTSCAw9.mjs} +5 -5
- package/dist/{cache-DZDOBJv3.mjs → cache-B5NSHhxG.mjs} +2 -2
- package/dist/{chunks-BnG3LPMN.mjs → chunks-C8vSD_5L.mjs} +1 -1
- package/dist/cli/index.mjs +52 -56
- package/dist/cli/plugin-kit.d.mts +11 -9
- package/dist/cli/plugin-kit.mjs +2 -2
- package/dist/client/index.d.mts +11 -9
- package/dist/client/index.mjs +2 -2
- package/dist/{client-factory-6vLLT06O.mjs → client-factory-C1ZQCMog.mjs} +1 -1
- package/dist/{comment-DX7gSK1w.mjs → comment-DAQfUjqt.mjs} +2 -2
- package/dist/{comment-reaction-Cun5eIXL.mjs → comment-reaction-Dp3G7UZc.mjs} +1 -1
- package/dist/{comments-CFswogn0.mjs → comments-BrvIaRAx.mjs} +1 -1
- package/dist/{content-Bf6Z1KsW.mjs → content-CIKsrvU9.mjs} +5 -5
- package/dist/{content-refresh-9M9cc55-.mjs → content-refresh-BilzqcLt.mjs} +4 -4
- package/dist/{context-4B6AEEJg.mjs → context-DAs_MZjJ.mjs} +11 -11
- package/dist/{context-BrRrM0lb.mjs → context-DVTvucNb.mjs} +2 -2
- package/dist/{context-route-helpers-CWAHJFl3.mjs → context-route-helpers-BP-UJ4u8.mjs} +1 -1
- package/dist/{d1-binding-D6HZa3ks.mjs → d1-binding-DrLMBUxu.mjs} +6 -2
- package/dist/{dashboard-DHv8q_NK.mjs → dashboard-BAjWCGCP.mjs} +4 -4
- package/dist/database/batch.d.mts +2 -1
- package/dist/database/batch.mjs +2 -2
- package/dist/database/d1/index.d.mts +11 -9
- package/dist/database/d1/index.mjs +5 -5
- package/dist/db/index.d.mts +4 -4
- package/dist/db/index.mjs +3 -13
- 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-Prqg6ycD.mjs → device-flow-Dh0rNlh1.mjs} +3 -3
- package/dist/{discovery-CYcZJ1o3.mjs → discovery-V0e0Gg8j.mjs} +4 -4
- package/dist/{enrich-BjF-J4sF.mjs → enrich-B7PIJ8Iy.mjs} +1 -1
- package/dist/{evidence-CoLCtvqq.mjs → evidence-Vnp_fQbC.mjs} +6 -6
- package/dist/{field-defs-cache-BKKFFf_V.mjs → field-defs-cache-aXUeXJdC.mjs} +6 -6
- package/dist/{fts-manager-DA74x_uP.mjs → fts-manager-BrPpYtK0.mjs} +1 -1
- package/dist/{hitl-requests-B4am5rjr.mjs → hitl-requests-BxMMON3s.mjs} +2 -2
- package/dist/{hitl-route-helpers-CwIBl1Rq.mjs → hitl-route-helpers-sdnjpx2k.mjs} +4 -4
- package/dist/{import-Bg-IiofM.mjs → import-C2-v4FCs.mjs} +9 -9
- package/dist/{index-mlJSqFkG.d.mts → index-BVGe04wF.d.mts} +3 -3
- package/dist/index.d.mts +17 -15
- package/dist/index.mjs +98 -98
- package/dist/{integration-credentials-Br16M1VE.mjs → integration-credentials-DMEXZU2J.mjs} +2 -2
- package/dist/{jsonld-B2e_FWju.d.mts → jsonld-wRF85RXo.d.mts} +2 -2
- package/dist/{load-B2oitobd.mjs → load-DvCVppOF.mjs} +1 -1
- package/dist/{loader-Cgsx23wU.mjs → loader-Dp6zLmQm.mjs} +3 -3
- package/dist/{manifest-schema-DBXM_g8l.mjs → manifest-schema-CCvogfrP.mjs} +1 -1
- package/dist/{mcp-reviewed-executor-B_65l7Hq.mjs → mcp-reviewed-executor-B8Gbin3T.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 +13 -11
- package/dist/media/local-runtime.mjs +2 -2
- package/dist/{media-BZqwtRTZ.mjs → media-C5ba8fvI.mjs} +1 -1
- package/dist/{media-allowlist-CyByjUXh.mjs → media-allowlist-DQvscVkS.mjs} +1 -1
- package/dist/{menus-BJvvB0n9.mjs → menus-CyNpBQrX.mjs} +2 -2
- package/dist/{menus-DNcY6Do7.mjs → menus-w5xwT-f5.mjs} +7 -7
- package/dist/{migrations-C7YXse7V.mjs → migrations-CLlX25HO.mjs} +2 -2
- package/dist/{oauth-authorization-B_mmz7O2.mjs → oauth-authorization-CdqJZUMf.mjs} +4 -4
- package/dist/{oauth-clients-Cr4pdIAE.mjs → oauth-clients-CHNb9MAZ.mjs} +2 -2
- package/dist/object-cache/memory.d.mts +1 -1
- package/dist/{object-cache-DYGlsI-R.mjs → object-cache-mxCW-Rpt.mjs} +1 -1
- package/dist/page/index.d.mts +12 -10
- package/dist/page/index.mjs +1 -1
- package/dist/{parse-BscLr3p2.mjs → parse-THHCpJLB.mjs} +1 -1
- package/dist/plugin-utils.d.mts +11 -9
- package/dist/plugins/adapt-sandbox-entry.d.mts +11 -9
- package/dist/plugins/adapt-sandbox-entry.mjs +1 -1
- package/dist/{plugins-CE6y1ImU.mjs → plugins-pfraURNp.mjs} +8 -8
- package/dist/{policy-Dej7NJFD.mjs → policy-D2USlibj.mjs} +2 -2
- package/dist/{preview-E1xKZGsX.mjs → preview-Bh7D7F27.mjs} +3 -3
- package/dist/{provider-loader-H2wdGD0o.d.mts → provider-loader-DT7vQ5FI.d.mts} +1 -1
- package/dist/{public-url-Dj1vD21t.d.mts → public-url-CG5YbNqB.d.mts} +1 -1
- package/dist/{public-url-zoO-QbN6.d.mts → public-url-Ccv0Xmue.d.mts} +2 -2
- package/dist/{publication-authorization-DEf-rGSM.mjs → publication-authorization-B_HJSnzR.mjs} +10 -10
- package/dist/{query-DnK6LJdA.mjs → query-DLeahg3x.mjs} +4 -4
- package/dist/{query-COquV-XH.mjs → query-xspvw7Ui.mjs} +15 -15
- package/dist/{rate-limit-RaBJEgyt.mjs → rate-limit-BsBr_U9g.mjs} +2 -2
- package/dist/{redirect-HLI3wT5Y.mjs → redirect-BQFa1THe.mjs} +2 -2
- package/dist/{redirects-DpRiuRWn.mjs → redirects-CVfxefrz.mjs} +3 -3
- package/dist/{redirects-D16GFaOa.mjs → redirects-DJcsgz_X.mjs} +5 -5
- package/dist/{registry-DcV93OL_.mjs → registry-Dclv9iHv.mjs} +7 -7
- package/dist/{release-DFBXSMnD.mjs → release-Da2UFygt.mjs} +3 -3
- package/dist/request-context.d.mts +5 -1
- package/dist/request-context.mjs +12 -1
- package/dist/{request-meta-C6yGqnGD.mjs → request-meta-CjORiJQ_.mjs} +1 -1
- package/dist/{review-payload-CzN5RQL4.mjs → review-payload-Bap86e75.mjs} +13 -13
- package/dist/{review-requests-BF2eEKr8.mjs → review-requests-CUVn0RBl.mjs} +2 -2
- package/dist/{review-requests-CQX7T3MV.mjs → review-requests-CcSUTm_l.mjs} +2 -2
- package/dist/{review-route-helpers-BYx3Px90.mjs → review-route-helpers-CKBfGKCi.mjs} +1 -1
- package/dist/{revocation-DZ8e4JCS.mjs → revocation-C_ZQvGRT.mjs} +2 -2
- package/dist/{runner-CVeq0266.mjs → runner-CRU7BXjr.mjs} +1 -1
- package/dist/{runner-Cxl-vyk2.d.mts → runner-SoP1rphP.d.mts} +1 -1
- package/dist/{runs-B8kCirJ6.mjs → runs-BtaAiLTw.mjs} +4 -4
- package/dist/runtime.d.mts +14 -11
- package/dist/runtime.mjs +5 -4
- package/dist/scheduled-publish-BxdShRGs.d.mts +9 -0
- package/dist/schema-CosVhHJt.mjs +8 -0
- package/dist/{search-C9qOBgvo.mjs → search-BI9uKr7U.mjs} +3 -3
- package/dist/{secrets-BP2YTPWn.mjs → secrets-D_pergcD.mjs} +4 -4
- package/dist/{sections-CkoQY7Z9.mjs → sections-BqqYq9RW.mjs} +2 -2
- package/dist/seed/index.d.mts +2 -2
- package/dist/seed/index.mjs +24 -25
- package/dist/seo/index.d.mts +3 -3
- package/dist/seo/index.mjs +9 -9
- package/dist/{seo-Bypxm1iD.mjs → seo-B-5PsaJO.mjs} +1 -1
- package/dist/{seo-B3cQl1r2.mjs → seo-Bs_DUxJf.mjs} +2 -2
- package/dist/{service-CMR5_eSN.mjs → service-B65aJsN7.mjs} +3 -3
- package/dist/{service-mJBl4ZP4.mjs → service-W2xuGLgw.mjs} +2 -2
- package/dist/{session-user-DeqTcAmR.mjs → session-user-B8yYh0g5.mjs} +1 -1
- package/dist/{settings-DiAKrrP4.mjs → settings-CyJ2-MKx.mjs} +2 -2
- package/dist/{settings-dNtUakSt.mjs → settings-DsBzKeUQ.mjs} +8 -8
- package/dist/{setup-complete-CNhQl2Cu.mjs → setup-complete-t9yamqBb.mjs} +1 -1
- package/dist/{site-activity-BrN2NviL.mjs → site-activity-DU0UPDji.mjs} +1 -1
- package/dist/{site-context-BBmRiuZl.mjs → site-context-Dic2jHuw.mjs} +15 -15
- package/dist/{site-url-DoTPKRND.mjs → site-url-Tw6CfBB2.mjs} +1 -1
- package/dist/{state-jyNZ6-7L.mjs → state-jx6Yiwsm.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-CjmmGlVw.mjs → store-32e6dfD-.mjs} +2 -2
- package/dist/{submission-eaVl2STP.mjs → submission-DJmRejGR.mjs} +10 -10
- package/dist/{taxonomies-H63wRvul.mjs → taxonomies-BFsUR7kc.mjs} +3 -3
- package/dist/{taxonomies-Cz2F2QAm.mjs → taxonomies-lWGNLKgn.mjs} +7 -7
- package/dist/{taxonomy-CAd9SL-L.mjs → taxonomy-DN6i1upz.mjs} +3 -3
- package/dist/{trusted-proxy-CvDP0g0F.mjs → trusted-proxy-hYufGFPK.mjs} +1 -1
- package/dist/{types-BFoQ5a1v.d.mts → types-CgcOeaiQ.d.mts} +1 -1
- package/dist/{types-5xfwCI4m.d.mts → types-D5JfvPvx.d.mts} +14 -23
- package/dist/{types-BqxIv8Il.mjs → types-RFzE_V1M.mjs} +1 -1
- package/dist/ui/server-runtime.d.mts +15 -13
- package/dist/ui/server-runtime.mjs +25 -26
- package/dist/{user-1-YV30lf.mjs → user-Btai9rl3.mjs} +2 -2
- package/dist/{utils-BoWkoty8.mjs → utils-CYxGuO_P.mjs} +2 -2
- package/dist/{validate-CupwWNWL.mjs → validate-C05z0m7M.mjs} +3 -3
- package/dist/{validate-CCOsvPg2.d.mts → validate-kmN2lS8H.d.mts} +3 -3
- package/dist/version-CISd4wX_.mjs +6 -0
- package/dist/{widgets-DbOctkXv.mjs → widgets-BOrDZdQ3.mjs} +3 -3
- package/dist/{wordpress-slugs-pQlLXbKn.mjs → wordpress-slugs-ROzITIBK.mjs} +1 -1
- package/dist/{worker-hQbWAsIT.mjs → worker-CKU70ODm.mjs} +10 -10
- package/dist/workers-build-BkmPhclj.mjs +70 -0
- package/dist/{zod-generator-BzACAoR5.mjs → zod-generator-DkrWuID7.mjs} +2 -2
- package/package.json +11 -19
- package/dist/astro/middleware/workers.d.mts +0 -6
- package/dist/astro/middleware/workers.mjs +0 -8
- package/dist/d1-dialect-BBxPg6Om.mjs +0 -48
- package/dist/db/d1.d.mts +0 -7
- package/dist/db/d1.mjs +0 -13
- package/dist/schema-DFeC5axi.mjs +0 -8
- package/dist/version-9AyJ5JWH.mjs +0 -6
- package/dist/workers-build-BaQCrSmf.mjs +0 -36
- /package/dist/{api-tokens-DA18zxza.mjs → api-tokens-0N3nafqZ.mjs} +0 -0
- /package/dist/{challenge-store-D-_-VavY.mjs → challenge-store-DFGsDtCj.mjs} +0 -0
- /package/dist/{components-gMTtJqHg.mjs → components-rFN8NH3N.mjs} +0 -0
- /package/dist/{context-types-DLD_HnKT.mjs → context-types-CPWAJRs5.mjs} +0 -0
- /package/dist/{cron-BVYo08mi.mjs → cron-C7HCJPPl.mjs} +0 -0
- /package/dist/{default-w3MwLng7.mjs → default-BS6VQRkB.mjs} +0 -0
- /package/dist/{email-console-CpvgEN1w.mjs → email-console-GqK6hgMJ.mjs} +0 -0
- /package/dist/{error-B-44r5TD.mjs → error-B5a45Tfb.mjs} +0 -0
- /package/dist/{escape-B1GM0yJU.mjs → escape-CE7xOWzJ.mjs} +0 -0
- /package/dist/{experimental-workflows-fzJHB3ZI.mjs → experimental-workflows-BbxpWwBy.mjs} +0 -0
- /package/dist/{forgeway-account-CnWOIusE.mjs → forgeway-account-DcTxh3Gw.mjs} +0 -0
- /package/dist/{hash-DvMZXj2L.mjs → hash-D2Rqd2J2.mjs} +0 -0
- /package/dist/{media-url-D-elxQjL.mjs → media-url-D9kdpoLS.mjs} +0 -0
- /package/dist/{mime-D_ae-u_U.mjs → mime-BnVhH671.mjs} +0 -0
- /package/dist/{mode-CPf_KZ37.mjs → mode-BJwb_MgK.mjs} +0 -0
- /package/dist/{normalize-5rct_U0I.mjs → normalize-aTwryvvi.mjs} +0 -0
- /package/dist/{oauth-authority-DOjME4Hh.mjs → oauth-authority-P5YMSk2z.mjs} +0 -0
- /package/dist/{oauth-state-store-D2H9hKcN.mjs → oauth-state-store-CMqLdo4I.mjs} +0 -0
- /package/dist/{options-BcqHWpc-.mjs → options-JiLWB6Bt.mjs} +0 -0
- /package/dist/{output-CdmbQioY.mjs → output-7HDrYTSQ.mjs} +0 -0
- /package/dist/{parser-ehIlj32k.mjs → parser-kettsjWc.mjs} +0 -0
- /package/dist/{passkey-config-sUQoLEj_.mjs → passkey-config-DVzQ3dv3.mjs} +0 -0
- /package/dist/{patterns-CZ7D4y_R.mjs → patterns-Ay-4KImK.mjs} +0 -0
- /package/dist/{placeholder-CQKI6vLd.d.mts → placeholder-DJLP_HY7.d.mts} +0 -0
- /package/dist/{portable-text-DH3Om_2D.mjs → portable-text-tQhvPLf1.mjs} +0 -0
- /package/dist/{process-cache-MHM4Sqzs.mjs → process-cache-C19OA3am.mjs} +0 -0
- /package/dist/{provider-loader-Dnv2neOu.mjs → provider-loader-DERzBMUz.mjs} +0 -0
- /package/dist/{public-discovery-CTql6jdZ.mjs → public-discovery-BGyhuD5U.mjs} +0 -0
- /package/dist/{public-url-DNt9A1yS.mjs → public-url-DFXUU6Wp.mjs} +0 -0
- /package/dist/{public-url-4sMO36Gw.mjs → public-url-sR8SVmTt.mjs} +0 -0
- /package/dist/{redirect-Cjjb5VYr.mjs → redirect-BxacnBYL.mjs} +0 -0
- /package/dist/{request-cache-DPmV5nk4.mjs → request-cache-8_ifFzVw.mjs} +0 -0
- /package/dist/{resolve-CpOV2jt_.mjs → resolve-DEKC4qVa.mjs} +0 -0
- /package/dist/{revision-090sZyGc.mjs → revision-W6FDfDqx.mjs} +0 -0
- /package/dist/{runtime-env-v-1UXPAH.mjs → runtime-env-CPTzh0mZ.mjs} +0 -0
- /package/dist/{seo-contributions-atY3jZEV.mjs → seo-contributions-LEFs1d7w.mjs} +0 -0
- /package/dist/{service-CeEi6nax.mjs → service-kQ5ljRzX.mjs} +0 -0
- /package/dist/{setup-nonce-BUmfCiY1.mjs → setup-nonce-B6A5Y1ea.mjs} +0 -0
- /package/dist/{sidecar-client-CbrX8nuw.mjs → sidecar-client-BwPhhz-F.mjs} +0 -0
- /package/dist/{slugify-Di8Q_MFq.mjs → slugify-kD31VIv2.mjs} +0 -0
- /package/dist/{ssrf-COxLChKv.mjs → ssrf-C9dyjU8O.mjs} +0 -0
- /package/dist/{stable-hash-DEtJgcp7.mjs → stable-hash-B9Tbb2f_.mjs} +0 -0
- /package/dist/{status-DBSB6tdS.mjs → status-Bjf_uSrW.mjs} +0 -0
- /package/dist/{tokens-I3tSjoFI.mjs → tokens-D-StaTAQ.mjs} +0 -0
- /package/dist/{transport-aPKvM53n.mjs → transport-BrU1aDY5.mjs} +0 -0
- /package/dist/{types-CVRNRAA5.d.mts → types-B--VyN3n.d.mts} +0 -0
- /package/dist/{types-SddyDti7.d.mts → types-B03h5jt_.d.mts} +0 -0
- /package/dist/{types-CyBH89BS.mjs → types-COvyXIp7.mjs} +0 -0
- /package/dist/{types-DNPP-eu4.d.mts → types-CtGSEKEJ.d.mts} +0 -0
- /package/dist/{types-ChSk0dmw.mjs → types-DNBL-4Sn.mjs} +0 -0
- /package/dist/{types-CAD4OvmF.d.mts → types-DsJTXStN.d.mts} +0 -0
- /package/dist/{types-BWsEjujW.d.mts → types-KFzuijKE.d.mts} +0 -0
- /package/dist/{types-BKsk4nnM.mjs → types-PLJ9hlhh.mjs} +0 -0
- /package/dist/{types-1qU0-N1P.d.mts → types-SlLXjRpg.d.mts} +0 -0
- /package/dist/{url-DfqolpO2.mjs → url-DGG3hw_h.mjs} +0 -0
- /package/dist/{url-Ce0qtSdB.mjs → url-DUz3LbCs.mjs} +0 -0
|
@@ -1,22 +1,21 @@
|
|
|
1
|
-
import "../../d1-binding-
|
|
1
|
+
import "../../d1-binding-DrLMBUxu.mjs";
|
|
2
2
|
import "../../dialect-helpers-C6xtO-Ui.mjs";
|
|
3
3
|
import { n as getI18nConfig } from "../../config-XW5tMrH8.mjs";
|
|
4
4
|
import "../../base64-Cz-aU0X1.mjs";
|
|
5
|
-
import "../../types-
|
|
6
|
-
import "../../loader-
|
|
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 { n as getPublicOrigin } from "../../public-url-4sMO36Gw.mjs";
|
|
5
|
+
import "../../types-RFzE_V1M.mjs";
|
|
6
|
+
import "../../loader-Dp6zLmQm.mjs";
|
|
7
|
+
import "../../object-cache-mxCW-Rpt.mjs";
|
|
8
|
+
import "../../media-C5ba8fvI.mjs";
|
|
9
|
+
import "../../options-JiLWB6Bt.mjs";
|
|
10
|
+
import "../../request-cache-8_ifFzVw.mjs";
|
|
11
|
+
import "../../content-refresh-BilzqcLt.mjs";
|
|
12
|
+
import "../../fts-manager-BrPpYtK0.mjs";
|
|
13
|
+
import "../../public-discovery-BGyhuD5U.mjs";
|
|
14
|
+
import { n as SchemaRegistry } from "../../registry-Dclv9iHv.mjs";
|
|
15
|
+
import { a as getSiteSettingsWithDb } from "../../settings-DsBzKeUQ.mjs";
|
|
16
|
+
import "../../discovery-V0e0Gg8j.mjs";
|
|
17
|
+
import { t as handleSitemapData } from "../../seo-B-5PsaJO.mjs";
|
|
18
|
+
import { n as getPublicOrigin } from "../../public-url-sR8SVmTt.mjs";
|
|
20
19
|
|
|
21
20
|
//#region src/astro/routes/sitemap.xml.ts
|
|
22
21
|
const prerender = false;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { a as currentTimestampValue } from "../dialect-helpers-C6xtO-Ui.mjs";
|
|
2
2
|
import "../base64-Cz-aU0X1.mjs";
|
|
3
|
-
import "../types-
|
|
4
|
-
import { r as getDb } from "../loader-
|
|
3
|
+
import "../types-RFzE_V1M.mjs";
|
|
4
|
+
import { r as getDb } from "../loader-Dp6zLmQm.mjs";
|
|
5
5
|
|
|
6
6
|
//#region src/astro/session-driver.ts
|
|
7
7
|
function createDinewaySessionDriver(dbFactory = getDb) {
|
package/dist/astro/types.d.mts
CHANGED
|
@@ -1,15 +1,17 @@
|
|
|
1
|
-
import { i as ContentItem } from "../types-
|
|
2
|
-
import {
|
|
3
|
-
import { t as Database } from "../types-
|
|
4
|
-
import { f as MediaProvider, p as MediaProviderCapabilities } from "../placeholder-
|
|
5
|
-
import "../runner-
|
|
6
|
-
import "../index-
|
|
7
|
-
import "../types-
|
|
8
|
-
import
|
|
9
|
-
import "../
|
|
10
|
-
import "../
|
|
11
|
-
import "../
|
|
12
|
-
import "../
|
|
1
|
+
import { i as ContentItem } from "../types-CgcOeaiQ.mjs";
|
|
2
|
+
import { At as ResolvedPlugin, B as PluginActor, E as HttpAccess, Eo as PluginMcpRegistry, F as PageMetadataContribution, Ga as MediaListResponse, Ka as MediaResponse, M as PageFragmentContribution, Oo as DinewayConfig, So as SandboxRunner, Tt as PublicPageContext, Ut as PublicationAuthorizationService, Ws as MediaItem, co as SandboxedPluginEntry, do as ConfirmedContentPublicationResult, fo as PublishConfirmedContentInput, go as HookPipeline, ho as EmailPipeline, ht as PluginRouteAuthorization, lo as AtomicConfirmedContentAuthorizer, mt as PluginRouteApiTokenPolicy, nc as Element, so as DinewayRuntime, uo as ConfirmedContentAuthorizer, vc as ContentListResponse, yc as ContentResponse } from "../types-D5JfvPvx.mjs";
|
|
3
|
+
import { t as Database } from "../types-B--VyN3n.mjs";
|
|
4
|
+
import { f as MediaProvider, p as MediaProviderCapabilities } from "../placeholder-DJLP_HY7.mjs";
|
|
5
|
+
import "../runner-SoP1rphP.mjs";
|
|
6
|
+
import "../index-BVGe04wF.mjs";
|
|
7
|
+
import "../types-B03h5jt_.mjs";
|
|
8
|
+
import "../adapters-C8nRpUuj.mjs";
|
|
9
|
+
import { d as Storage } from "../types-KFzuijKE.mjs";
|
|
10
|
+
import "../scheduled-publish-BxdShRGs.mjs";
|
|
11
|
+
import "../public-url-Ccv0Xmue.mjs";
|
|
12
|
+
import "../validate-kmN2lS8H.mjs";
|
|
13
|
+
import "../byline-fields-D-b9CWux.mjs";
|
|
14
|
+
import "../types-DsJTXStN.mjs";
|
|
13
15
|
import "../index.mjs";
|
|
14
16
|
import { Kysely } from "kysely";
|
|
15
17
|
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { atomicBatch, rowUnchanged } from "./database/batch.mjs";
|
|
2
|
-
import { i as encodeCursor, r as decodeCursor } from "./types-
|
|
3
|
-
import { t as SiteActivityRepository } from "./site-activity-
|
|
4
|
-
import { r as ReviewRequestRepository } from "./review-requests-
|
|
5
|
-
import { n as isSiteContextType, t as SITE_CONTEXT_TYPES } from "./context-types-
|
|
6
|
-
import { n as SchemaRegistry } from "./registry-
|
|
7
|
-
import { a as getSiteSettingsWithDb } from "./settings-
|
|
2
|
+
import { i as encodeCursor, r as decodeCursor } from "./types-RFzE_V1M.mjs";
|
|
3
|
+
import { t as SiteActivityRepository } from "./site-activity-DU0UPDji.mjs";
|
|
4
|
+
import { r as ReviewRequestRepository } from "./review-requests-CUVn0RBl.mjs";
|
|
5
|
+
import { n as isSiteContextType, t as SITE_CONTEXT_TYPES } from "./context-types-CPWAJRs5.mjs";
|
|
6
|
+
import { n as SchemaRegistry } from "./registry-Dclv9iHv.mjs";
|
|
7
|
+
import { a as getSiteSettingsWithDb } from "./settings-DsBzKeUQ.mjs";
|
|
8
8
|
import { sql } from "kysely";
|
|
9
9
|
import { ulid } from "ulidx";
|
|
10
10
|
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { c as __exportAll } from "./runner-
|
|
2
|
-
import { t as capabilitiesToDeclaredAccess } from "./types-
|
|
1
|
+
import { c as __exportAll } from "./runner-CRU7BXjr.mjs";
|
|
2
|
+
import { t as capabilitiesToDeclaredAccess } from "./types-DNBL-4Sn.mjs";
|
|
3
3
|
import { createHash } from "node:crypto";
|
|
4
4
|
import { imageSize } from "image-size";
|
|
5
5
|
import { createWriteStream } from "node:fs";
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import { c as __exportAll } from "./runner-
|
|
1
|
+
import { c as __exportAll } from "./runner-CRU7BXjr.mjs";
|
|
2
2
|
import { atomicBatch, rowUnchanged } from "./database/batch.mjs";
|
|
3
3
|
import { t as validateIdentifier } from "./validate-Co3j6T_K.mjs";
|
|
4
4
|
import { l as listTablesLike } from "./dialect-helpers-C6xtO-Ui.mjs";
|
|
5
|
-
import { i as encodeCursor, r as decodeCursor, t as DinewayValidationError } from "./types-
|
|
6
|
-
import { a as invalidateBylineObjectCache, o as invalidateCollectionCache } from "./object-cache-
|
|
7
|
-
import { n as chunks, t as SQL_BATCH_SIZE } from "./chunks-
|
|
8
|
-
import { i as setRequestCacheEntry, n as peekRequestCache, t as clearRequestCacheEntry } from "./request-cache-
|
|
9
|
-
import { n as getBylineFieldDefs } from "./field-defs-cache-
|
|
5
|
+
import { i as encodeCursor, r as decodeCursor, t as DinewayValidationError } from "./types-RFzE_V1M.mjs";
|
|
6
|
+
import { a as invalidateBylineObjectCache, o as invalidateCollectionCache } from "./object-cache-mxCW-Rpt.mjs";
|
|
7
|
+
import { n as chunks, t as SQL_BATCH_SIZE } from "./chunks-C8vSD_5L.mjs";
|
|
8
|
+
import { i as setRequestCacheEntry, n as peekRequestCache, t as clearRequestCacheEntry } from "./request-cache-8_ifFzVw.mjs";
|
|
9
|
+
import { n as getBylineFieldDefs } from "./field-defs-cache-aXUeXJdC.mjs";
|
|
10
10
|
import { sql } from "kysely";
|
|
11
11
|
import { ulid } from "ulidx";
|
|
12
12
|
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { n as BylineSchemaRegistry, r as mapBylineSchemaError, t as BylineSchemaError } from "./byline-registry-
|
|
1
|
+
import { n as BylineSchemaRegistry, r as mapBylineSchemaError, t as BylineSchemaError } from "./byline-registry-CJihchD1.mjs";
|
|
2
2
|
|
|
3
3
|
//#region src/api/handlers/byline-fields.ts
|
|
4
4
|
function bylineSchemaErrorResult(error) {
|
|
@@ -4,7 +4,7 @@ import { z } from "zod";
|
|
|
4
4
|
/** Valid role level values */
|
|
5
5
|
declare const VALID_ROLE_LEVELS: Set<number>;
|
|
6
6
|
/** Role level — coerces string/number to valid RoleLevel (10|20|30|40|50) */
|
|
7
|
-
declare const roleLevel: z.ZodCoercedNumber<unknown> & z.ZodType<
|
|
7
|
+
declare const roleLevel: z.ZodCoercedNumber<unknown> & z.ZodType<10 | 20 | 30 | 40 | 50, unknown, z.core.$ZodTypeInternals<10 | 20 | 30 | 40 | 50, unknown>>;
|
|
8
8
|
/** Pagination query params — cursor-based */
|
|
9
9
|
declare const cursorPaginationQuery: z.ZodObject<{
|
|
10
10
|
cursor: z.ZodOptional<z.ZodString>;
|
|
@@ -856,9 +856,9 @@ declare const createFieldBody: z.ZodObject<{
|
|
|
856
856
|
string: "string";
|
|
857
857
|
number: "number";
|
|
858
858
|
boolean: "boolean";
|
|
859
|
+
file: "file";
|
|
859
860
|
json: "json";
|
|
860
861
|
url: "url";
|
|
861
|
-
file: "file";
|
|
862
862
|
slug: "slug";
|
|
863
863
|
image: "image";
|
|
864
864
|
datetime: "datetime";
|
|
@@ -914,9 +914,9 @@ declare const updateFieldBody: z.ZodObject<{
|
|
|
914
914
|
string: "string";
|
|
915
915
|
number: "number";
|
|
916
916
|
boolean: "boolean";
|
|
917
|
+
file: "file";
|
|
917
918
|
json: "json";
|
|
918
919
|
url: "url";
|
|
919
|
-
file: "file";
|
|
920
920
|
slug: "slug";
|
|
921
921
|
image: "image";
|
|
922
922
|
datetime: "datetime";
|
|
@@ -1008,9 +1008,9 @@ declare const fieldSchema: z.ZodObject<{
|
|
|
1008
1008
|
string: "string";
|
|
1009
1009
|
number: "number";
|
|
1010
1010
|
boolean: "boolean";
|
|
1011
|
+
file: "file";
|
|
1011
1012
|
json: "json";
|
|
1012
1013
|
url: "url";
|
|
1013
|
-
file: "file";
|
|
1014
1014
|
slug: "slug";
|
|
1015
1015
|
image: "image";
|
|
1016
1016
|
datetime: "datetime";
|
|
@@ -1083,9 +1083,9 @@ declare const collectionWithFieldsResponseSchema: z.ZodObject<{
|
|
|
1083
1083
|
string: "string";
|
|
1084
1084
|
number: "number";
|
|
1085
1085
|
boolean: "boolean";
|
|
1086
|
+
file: "file";
|
|
1086
1087
|
json: "json";
|
|
1087
1088
|
url: "url";
|
|
1088
|
-
file: "file";
|
|
1089
1089
|
slug: "slug";
|
|
1090
1090
|
image: "image";
|
|
1091
1091
|
datetime: "datetime";
|
|
@@ -1142,9 +1142,9 @@ declare const fieldResponseSchema: z.ZodObject<{
|
|
|
1142
1142
|
string: "string";
|
|
1143
1143
|
number: "number";
|
|
1144
1144
|
boolean: "boolean";
|
|
1145
|
+
file: "file";
|
|
1145
1146
|
json: "json";
|
|
1146
1147
|
url: "url";
|
|
1147
|
-
file: "file";
|
|
1148
1148
|
slug: "slug";
|
|
1149
1149
|
image: "image";
|
|
1150
1150
|
datetime: "datetime";
|
|
@@ -1179,9 +1179,9 @@ declare const fieldListResponseSchema: z.ZodObject<{
|
|
|
1179
1179
|
string: "string";
|
|
1180
1180
|
number: "number";
|
|
1181
1181
|
boolean: "boolean";
|
|
1182
|
+
file: "file";
|
|
1182
1183
|
json: "json";
|
|
1183
1184
|
url: "url";
|
|
1184
|
-
file: "file";
|
|
1185
1185
|
slug: "slug";
|
|
1186
1186
|
image: "image";
|
|
1187
1187
|
datetime: "datetime";
|
|
@@ -1368,13 +1368,13 @@ declare const contextEntryListQuery: z.ZodObject<{
|
|
|
1368
1368
|
declare const contextEntryStaleQuery: z.ZodObject<{
|
|
1369
1369
|
limit: z.ZodOptional<z.ZodCoercedNumber<unknown>>;
|
|
1370
1370
|
cursor: z.ZodOptional<z.ZodString>;
|
|
1371
|
+
scope: z.ZodOptional<z.ZodString>;
|
|
1371
1372
|
includeInherited: z.ZodPipe<z.ZodOptional<z.ZodEnum<{
|
|
1372
1373
|
true: "true";
|
|
1373
1374
|
false: "false";
|
|
1374
1375
|
}>>, z.ZodTransform<boolean | undefined, "true" | "false" | undefined>>;
|
|
1375
1376
|
contextTypes: z.ZodPipe<z.ZodOptional<z.ZodString>, z.ZodTransform<string[] | undefined, string | undefined>>;
|
|
1376
1377
|
tags: z.ZodPipe<z.ZodOptional<z.ZodString>, z.ZodTransform<string[] | undefined, string | undefined>>;
|
|
1377
|
-
scope: z.ZodOptional<z.ZodString>;
|
|
1378
1378
|
createdByActorType: z.ZodOptional<z.ZodEnum<{
|
|
1379
1379
|
user: "user";
|
|
1380
1380
|
api_token: "api_token";
|
|
@@ -1545,7 +1545,7 @@ declare const signupCompleteBody: z.ZodObject<{
|
|
|
1545
1545
|
}, z.core.$strip>;
|
|
1546
1546
|
declare const inviteCreateBody: z.ZodObject<{
|
|
1547
1547
|
email: z.ZodString;
|
|
1548
|
-
role: z.ZodOptional<z.ZodCoercedNumber<unknown> & z.ZodType<
|
|
1548
|
+
role: z.ZodOptional<z.ZodCoercedNumber<unknown> & z.ZodType<10 | 20 | 30 | 40 | 50, unknown, z.core.$ZodTypeInternals<10 | 20 | 30 | 40 | 50, unknown>>>;
|
|
1549
1549
|
}, z.core.$strip>;
|
|
1550
1550
|
declare const inviteCompleteBody: z.ZodObject<{
|
|
1551
1551
|
token: z.ZodString;
|
|
@@ -1637,9 +1637,9 @@ declare const authMeActionBody: z.ZodObject<{
|
|
|
1637
1637
|
* from `referenceCollection` + `referenceId` (a translation_group id).
|
|
1638
1638
|
*/
|
|
1639
1639
|
declare const menuItemTypeEnum: z.ZodEnum<{
|
|
1640
|
+
custom: "custom";
|
|
1640
1641
|
collection: "collection";
|
|
1641
1642
|
taxonomy: "taxonomy";
|
|
1642
|
-
custom: "custom";
|
|
1643
1643
|
page: "page";
|
|
1644
1644
|
post: "post";
|
|
1645
1645
|
}>;
|
|
@@ -1654,9 +1654,9 @@ declare const updateMenuBody: z.ZodObject<{
|
|
|
1654
1654
|
}, z.core.$strict>;
|
|
1655
1655
|
declare const createMenuItemBody: z.ZodObject<{
|
|
1656
1656
|
type: z.ZodEnum<{
|
|
1657
|
+
custom: "custom";
|
|
1657
1658
|
collection: "collection";
|
|
1658
1659
|
taxonomy: "taxonomy";
|
|
1659
|
-
custom: "custom";
|
|
1660
1660
|
page: "page";
|
|
1661
1661
|
post: "post";
|
|
1662
1662
|
}>;
|
|
@@ -2097,15 +2097,15 @@ declare const usersListQuery: z.ZodObject<{
|
|
|
2097
2097
|
declare const userUpdateBody: z.ZodObject<{
|
|
2098
2098
|
name: z.ZodOptional<z.ZodString>;
|
|
2099
2099
|
email: z.ZodOptional<z.ZodString>;
|
|
2100
|
-
role: z.ZodOptional<z.ZodCoercedNumber<unknown> & z.ZodType<
|
|
2100
|
+
role: z.ZodOptional<z.ZodCoercedNumber<unknown> & z.ZodType<10 | 20 | 30 | 40 | 50, unknown, z.core.$ZodTypeInternals<10 | 20 | 30 | 40 | 50, unknown>>>;
|
|
2101
2101
|
}, z.core.$strip>;
|
|
2102
2102
|
declare const allowedDomainCreateBody: z.ZodObject<{
|
|
2103
2103
|
domain: z.ZodString;
|
|
2104
|
-
defaultRole: z.ZodCoercedNumber<unknown> & z.ZodType<
|
|
2104
|
+
defaultRole: z.ZodCoercedNumber<unknown> & z.ZodType<10 | 20 | 30 | 40 | 50, unknown, z.core.$ZodTypeInternals<10 | 20 | 30 | 40 | 50, unknown>>;
|
|
2105
2105
|
}, z.core.$strip>;
|
|
2106
2106
|
declare const allowedDomainUpdateBody: z.ZodObject<{
|
|
2107
2107
|
enabled: z.ZodOptional<z.ZodBoolean>;
|
|
2108
|
-
defaultRole: z.ZodOptional<z.ZodCoercedNumber<unknown> & z.ZodType<
|
|
2108
|
+
defaultRole: z.ZodOptional<z.ZodCoercedNumber<unknown> & z.ZodType<10 | 20 | 30 | 40 | 50, unknown, z.core.$ZodTypeInternals<10 | 20 | 30 | 40 | 50, unknown>>>;
|
|
2109
2109
|
}, z.core.$strip>;
|
|
2110
2110
|
declare const userSchema: z.ZodObject<{
|
|
2111
2111
|
id: z.ZodString;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { i as RESERVED_BYLINE_FIELD_SLUGS } from "./types-
|
|
2
|
-
import { n as isSiteContextType, t as SITE_CONTEXT_TYPES } from "./context-types-
|
|
3
|
-
import { Ln as roleLevel, Nn as httpUrl } from "./redirects-
|
|
1
|
+
import { i as RESERVED_BYLINE_FIELD_SLUGS } from "./types-COvyXIp7.mjs";
|
|
2
|
+
import { n as isSiteContextType, t as SITE_CONTEXT_TYPES } from "./context-types-CPWAJRs5.mjs";
|
|
3
|
+
import { Ln as roleLevel, Nn as httpUrl } from "./redirects-CVfxefrz.mjs";
|
|
4
4
|
import { z } from "zod";
|
|
5
5
|
|
|
6
6
|
//#region src/api/schemas/context.ts
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { atomicBatch, rowUnchanged } from "./database/batch.mjs";
|
|
2
2
|
import { t as validateIdentifier } from "./validate-Co3j6T_K.mjs";
|
|
3
|
-
import { i as RESERVED_BYLINE_FIELD_SLUGS, t as BYLINE_FIELD_TYPES } from "./types-
|
|
3
|
+
import { i as RESERVED_BYLINE_FIELD_SLUGS, t as BYLINE_FIELD_TYPES } from "./types-COvyXIp7.mjs";
|
|
4
4
|
import { sql } from "kysely";
|
|
5
5
|
import { ulid } from "ulidx";
|
|
6
6
|
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { c as __exportAll } from "./runner-
|
|
1
|
+
import { c as __exportAll } from "./runner-CRU7BXjr.mjs";
|
|
2
2
|
import { n as getI18nConfig } from "./config-XW5tMrH8.mjs";
|
|
3
|
-
import { t as DinewayValidationError } from "./types-
|
|
4
|
-
import { t as BylineRepository } from "./byline-
|
|
3
|
+
import { t as DinewayValidationError } from "./types-RFzE_V1M.mjs";
|
|
4
|
+
import { t as BylineRepository } from "./byline-TYk2kad6.mjs";
|
|
5
5
|
|
|
6
6
|
//#region src/api/handlers/bylines.ts
|
|
7
7
|
var bylines_exports = /* @__PURE__ */ __exportAll({
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { c as __exportAll } from "./runner-
|
|
1
|
+
import { c as __exportAll } from "./runner-CRU7BXjr.mjs";
|
|
2
2
|
import { t as validateIdentifier } from "./validate-Co3j6T_K.mjs";
|
|
3
|
-
import { o as isMissingTableError, r as getDb } from "./loader-
|
|
4
|
-
import { t as BylineRepository } from "./byline-
|
|
5
|
-
import { n as resolveLocaleChain } from "./resolve-
|
|
3
|
+
import { o as isMissingTableError, r as getDb } from "./loader-Dp6zLmQm.mjs";
|
|
4
|
+
import { t as BylineRepository } from "./byline-TYk2kad6.mjs";
|
|
5
|
+
import { n as resolveLocaleChain } from "./resolve-DEKC4qVa.mjs";
|
|
6
6
|
import { sql } from "kysely";
|
|
7
7
|
|
|
8
8
|
//#region src/bylines/index.ts
|
|
@@ -184,7 +184,7 @@ async function getBylinesForEntries(collection, entries) {
|
|
|
184
184
|
*/
|
|
185
185
|
async function getEntriesByByline(collection, byline, options = {}) {
|
|
186
186
|
validateIdentifier(collection, "collection");
|
|
187
|
-
const { getDinewayCollection } = await import("./query-
|
|
187
|
+
const { getDinewayCollection } = await import("./query-xspvw7Ui.mjs").then((n) => n.o);
|
|
188
188
|
const { entries } = await getDinewayCollection(collection, {
|
|
189
189
|
where: { byline },
|
|
190
190
|
...options.locale !== void 0 ? { locale: options.locale } : {},
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { c as __exportAll } from "./runner-
|
|
2
|
-
import { i as matchPattern, n as interpolateDestination, t as compilePattern } from "./patterns-
|
|
1
|
+
import { c as __exportAll } from "./runner-CRU7BXjr.mjs";
|
|
2
|
+
import { i as matchPattern, n as interpolateDestination, t as compilePattern } from "./patterns-Ay-4KImK.mjs";
|
|
3
3
|
|
|
4
4
|
//#region src/redirects/cache.ts
|
|
5
5
|
var cache_exports = /* @__PURE__ */ __exportAll({
|
package/dist/cli/index.mjs
CHANGED
|
@@ -1,58 +1,56 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
import { a as runMigrations, n as getMigrationFingerprint, r as getMigrationStatus } from "../runner-
|
|
2
|
+
import { a as runMigrations, n as getMigrationFingerprint, r as getMigrationStatus } from "../runner-CRU7BXjr.mjs";
|
|
3
3
|
import { t as createDatabase } from "../connection-DJ3GzHVH.mjs";
|
|
4
|
-
import "../d1-binding-
|
|
4
|
+
import "../d1-binding-DrLMBUxu.mjs";
|
|
5
5
|
import { AtomicWriteConflict, atomicBatch, rowUnchanged } from "../database/batch.mjs";
|
|
6
6
|
import { t as validateIdentifier } from "../validate-Co3j6T_K.mjs";
|
|
7
7
|
import { l as listTablesLike } from "../dialect-helpers-C6xtO-Ui.mjs";
|
|
8
8
|
import { n as getI18nConfig, r as isI18nEnabled } from "../config-XW5tMrH8.mjs";
|
|
9
9
|
import { i as encodeBase64url } from "../base64-Cz-aU0X1.mjs";
|
|
10
|
-
import "../types-
|
|
11
|
-
import { o as isMissingTableError } from "../loader-
|
|
10
|
+
import "../types-RFzE_V1M.mjs";
|
|
11
|
+
import { o as isMissingTableError } from "../loader-Dp6zLmQm.mjs";
|
|
12
12
|
import "../actor-DxUAJgQX.mjs";
|
|
13
13
|
import "../atomic-authority-CnBQJ14T.mjs";
|
|
14
|
-
import "../
|
|
15
|
-
import "../
|
|
16
|
-
import
|
|
17
|
-
import "../
|
|
18
|
-
import { t as
|
|
19
|
-
import { t as
|
|
20
|
-
import { t as
|
|
21
|
-
import
|
|
22
|
-
import "../
|
|
23
|
-
import "../
|
|
24
|
-
import "../
|
|
25
|
-
import "../
|
|
26
|
-
import { t as
|
|
27
|
-
import
|
|
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 { t as
|
|
41
|
-
import { t as
|
|
42
|
-
import { n as
|
|
43
|
-
import { n as
|
|
44
|
-
import {
|
|
45
|
-
import { n as output, t as configureOutputMode } from "../output-CdmbQioY.mjs";
|
|
14
|
+
import "../object-cache-mxCW-Rpt.mjs";
|
|
15
|
+
import { n as slugify } from "../slugify-kD31VIv2.mjs";
|
|
16
|
+
import "../revision-W6FDfDqx.mjs";
|
|
17
|
+
import { t as ContentRepository } from "../content-CIKsrvU9.mjs";
|
|
18
|
+
import { t as MediaRepository } from "../media-C5ba8fvI.mjs";
|
|
19
|
+
import { t as TaxonomyRepository } from "../taxonomy-DN6i1upz.mjs";
|
|
20
|
+
import { t as OptionsRepository } from "../options-JiLWB6Bt.mjs";
|
|
21
|
+
import "../redirect-BQFa1THe.mjs";
|
|
22
|
+
import "../request-cache-8_ifFzVw.mjs";
|
|
23
|
+
import "../byline-registry-CJihchD1.mjs";
|
|
24
|
+
import "../field-defs-cache-aXUeXJdC.mjs";
|
|
25
|
+
import { t as BylineRepository } from "../byline-TYk2kad6.mjs";
|
|
26
|
+
import { n as DinewayToolsService, r as integrationResponse, t as DinewayToolsError } from "../service-kQ5ljRzX.mjs";
|
|
27
|
+
import "../runtime-env-CPTzh0mZ.mjs";
|
|
28
|
+
import { i as parseEncryptionKeys, n as fingerprintKey, r as generateEncryptionKey, t as DinewaySecretsError } from "../secrets-D_pergcD.mjs";
|
|
29
|
+
import "../content-refresh-BilzqcLt.mjs";
|
|
30
|
+
import { n as resolveAndValidateExternalUrl, t as SsrfError } from "../ssrf-C9dyjU8O.mjs";
|
|
31
|
+
import "../fts-manager-BrPpYtK0.mjs";
|
|
32
|
+
import "../public-discovery-BGyhuD5U.mjs";
|
|
33
|
+
import { n as SchemaRegistry } from "../registry-Dclv9iHv.mjs";
|
|
34
|
+
import "../settings-DsBzKeUQ.mjs";
|
|
35
|
+
import { n as VERSION } from "../version-CISd4wX_.mjs";
|
|
36
|
+
import { t as IntegrationCredentialStore } from "../store-32e6dfD-.mjs";
|
|
37
|
+
import { a as reconcileManifestAccess, i as pluginManifestSchema } from "../manifest-schema-CCvogfrP.mjs";
|
|
38
|
+
import "../migrations-CLlX25HO.mjs";
|
|
39
|
+
import { t as validateSeed } from "../validate-C05z0m7M.mjs";
|
|
40
|
+
import { t as applySeed } from "../apply-D4rZHDyg.mjs";
|
|
41
|
+
import { n as validateWorkersBindings, t as WORKERS_BUILD_METADATA } from "../workers-build-BkmPhclj.mjs";
|
|
42
|
+
import { n as d1ReleaseRevision } from "../state-jx6Yiwsm.mjs";
|
|
43
|
+
import { a as createForgewayAccountClient, c as normalizeForgewayApiUrl, d as refreshForgewayAccountCredentials, f as removeStoredForgewayAccount, g as writeForgewayCredentials, h as readForgewayCredentials, i as completeForgewayAccountLogin, l as normalizeForgewayEmail, m as listForgewayCredentials, n as DEFAULT_FORGEWAY_API_BASE_URL, o as getForgewayDinewayAccount, p as sendForgewayAccountLoginLink, r as InvalidForgewayAccountCredentialsError, s as normalizeDinewayWebUrl, t as DEFAULT_DINEWAY_WEB_URL, u as readStoredForgewayAccount } from "../forgeway-account-DcTxh3Gw.mjs";
|
|
44
|
+
import { n as output, t as configureOutputMode } from "../output-7HDrYTSQ.mjs";
|
|
46
45
|
import { createHeaderAwareFetch, isRedirectResponse, resolveCustomHeaders } from "../client/external-auth-headers.mjs";
|
|
47
|
-
import { t as convertDataForRead } from "../portable-text-
|
|
48
|
-
import { _ as saveMarketplaceCredential, a as ensureProjectGitignoreDinewayLocalState, c as resolveDinewayBaseUrl, d as getCredentials, f as getMarketplaceCredential, g as saveCredentials, h as resolveCredentialKey, i as DEFAULT_DINEWAY_URL, l as resolveDinewayToken, m as removeMarketplaceCredential, n as connectionArgs, o as ensureProjectGitignoreEntry, p as removeCredentials, r as createClientFromArgs, s as readProjectEnv, u as upsertProjectEnv } from "../client-factory-
|
|
49
|
-
import { t as migrateD1Release } from "../release-
|
|
50
|
-
import { t as createD1Dialect } from "../d1-dialect-BBxPg6Om.mjs";
|
|
46
|
+
import { t as convertDataForRead } from "../portable-text-tQhvPLf1.mjs";
|
|
47
|
+
import { _ as saveMarketplaceCredential, a as ensureProjectGitignoreDinewayLocalState, c as resolveDinewayBaseUrl, d as getCredentials, f as getMarketplaceCredential, g as saveCredentials, h as resolveCredentialKey, i as DEFAULT_DINEWAY_URL, l as resolveDinewayToken, m as removeMarketplaceCredential, n as connectionArgs, o as ensureProjectGitignoreEntry, p as removeCredentials, r as createClientFromArgs, s as readProjectEnv, u as upsertProjectEnv } from "../client-factory-C1ZQCMog.mjs";
|
|
48
|
+
import { t as migrateD1Release } from "../release-Da2UFygt.mjs";
|
|
51
49
|
import { LocalStorage } from "../storage/local.mjs";
|
|
52
|
-
import { r as fileExists$11, t as bundleCommand } from "../bundle-
|
|
50
|
+
import { r as fileExists$11, t as bundleCommand } from "../bundle-bhiszAui.mjs";
|
|
53
51
|
import { createRequire } from "node:module";
|
|
54
52
|
import { createHash } from "node:crypto";
|
|
55
|
-
import { Kysely, sql } from "kysely";
|
|
53
|
+
import { CompiledQuery, Kysely, sql } from "kysely";
|
|
56
54
|
import { z } from "zod";
|
|
57
55
|
import { createGzipDecoder, unpackTar } from "modern-tar";
|
|
58
56
|
import { createReadStream, existsSync, readFileSync, writeFileSync } from "node:fs";
|
|
@@ -928,7 +926,7 @@ async function readProjectDinewayConfig(cwd) {
|
|
|
928
926
|
}
|
|
929
927
|
async function readD1Project(cwd) {
|
|
930
928
|
const config = await readProjectDinewayConfig(cwd);
|
|
931
|
-
if (config?.database?.entrypoint !== "dineway/db/d1") throw new Error("Configure database: d1({ binding: 'DB' }) in this project's Dineway integration.");
|
|
929
|
+
if (config?.database?.entrypoint !== "@dineway-ai/cloudflare/db/d1") throw new Error("Configure database: d1({ binding: 'DB' }) in this project's Dineway integration.");
|
|
932
930
|
const { binding } = z.object({ binding: z.string().regex(BINDING_NAME) }).parse(config.database.config);
|
|
933
931
|
const jiti = createJiti(join(cwd, "package.json"), {
|
|
934
932
|
fsCache: false,
|
|
@@ -989,6 +987,12 @@ async function loadProjectWrangler(cwd, config, environment) {
|
|
|
989
987
|
}, { hideWarnings: true }))
|
|
990
988
|
};
|
|
991
989
|
}
|
|
990
|
+
/** Load the site's optional platform package only for an explicit D1 migration. */
|
|
991
|
+
async function loadD1Dialect(cwd) {
|
|
992
|
+
const module = await import(pathToFileURL(createRequire(join(cwd, "package.json")).resolve("@dineway-ai/cloudflare/db/dialect")).href);
|
|
993
|
+
if (typeof module.createD1Dialect !== "function") throw new Error("Install @dineway-ai/cloudflare before migrating D1.");
|
|
994
|
+
return module.createD1Dialect;
|
|
995
|
+
}
|
|
992
996
|
|
|
993
997
|
//#endregion
|
|
994
998
|
//#region src/cli/commands/database.ts
|
|
@@ -1036,7 +1040,7 @@ async function migrateProjectD1(options) {
|
|
|
1036
1040
|
});
|
|
1037
1041
|
const binding = proxy.env[project.binding];
|
|
1038
1042
|
if (!binding || typeof binding.batch !== "function" || typeof binding.prepare !== "function") throw new Error(`Wrangler did not provide D1 binding ${project.binding}.`);
|
|
1039
|
-
db = new Kysely({ dialect:
|
|
1043
|
+
db = new Kysely({ dialect: (await loadD1Dialect(cwd))(binding) });
|
|
1040
1044
|
const applied = await migrateD1Release(db, project.plugins, { adopt: options.adopt });
|
|
1041
1045
|
return {
|
|
1042
1046
|
...target,
|
|
@@ -3953,7 +3957,7 @@ const devCommand = defineCommand({
|
|
|
3953
3957
|
consola.error("No package.json found");
|
|
3954
3958
|
process.exit(1);
|
|
3955
3959
|
}
|
|
3956
|
-
const database = (await readProjectDinewayConfig(cwd))?.database?.entrypoint === "dineway/db/d1" ? void 0 : resolveCliDatabaseTarget(cwd, args.database);
|
|
3960
|
+
const database = (await readProjectDinewayConfig(cwd))?.database?.entrypoint === "@dineway-ai/cloudflare/db/d1" ? void 0 : resolveCliDatabaseTarget(cwd, args.database);
|
|
3957
3961
|
if (database) {
|
|
3958
3962
|
consola.info(`Database: ${database.display}`);
|
|
3959
3963
|
if (database.localPath && !await fileExists$3(database.localPath)) consola.start("Database not found, initializing...");
|
|
@@ -3974,7 +3978,7 @@ const devCommand = defineCommand({
|
|
|
3974
3978
|
const remoteUrl = pkg.dineway?.url || process.env.DINEWAY_URL;
|
|
3975
3979
|
if (!remoteUrl) consola.warn("No remote URL configured. Set DINEWAY_URL or dineway.url in package.json");
|
|
3976
3980
|
else try {
|
|
3977
|
-
const { createClientFromArgs } = await import("../client-factory-
|
|
3981
|
+
const { createClientFromArgs } = await import("../client-factory-C1ZQCMog.mjs").then((n) => n.t);
|
|
3978
3982
|
const client = createClientFromArgs({ url: remoteUrl });
|
|
3979
3983
|
const schema = await client.schemaExport();
|
|
3980
3984
|
const types = await client.schemaTypes();
|
|
@@ -4803,15 +4807,7 @@ async function readPackageJson$1(cwd) {
|
|
|
4803
4807
|
}
|
|
4804
4808
|
async function runSqlFile(db, filePath) {
|
|
4805
4809
|
const statements = (await readFile(filePath, "utf-8")).split("\n").filter((line) => !line.trim().startsWith("--")).join("\n").split(";").map((s) => s.trim()).filter((s) => s.length > 0);
|
|
4806
|
-
for (const statement of statements) await db.executeQuery(
|
|
4807
|
-
sql: statement,
|
|
4808
|
-
parameters: [],
|
|
4809
|
-
query: {
|
|
4810
|
-
kind: "RawNode",
|
|
4811
|
-
sqlFragments: [statement],
|
|
4812
|
-
parameters: []
|
|
4813
|
-
}
|
|
4814
|
-
});
|
|
4810
|
+
for (const statement of statements) await db.executeQuery(CompiledQuery.raw(statement));
|
|
4815
4811
|
}
|
|
4816
4812
|
/**
|
|
4817
4813
|
* Check if database has already been initialized with template schema
|
|
@@ -5995,7 +5991,7 @@ const publishCommand = defineCommand({
|
|
|
5995
5991
|
const pluginDir = resolve(args.dir);
|
|
5996
5992
|
try {
|
|
5997
5993
|
const { runCommand } = await import("citty");
|
|
5998
|
-
const { bundleCommand } = await import("../bundle-
|
|
5994
|
+
const { bundleCommand } = await import("../bundle-bhiszAui.mjs").then((n) => n.n);
|
|
5999
5995
|
await runCommand(bundleCommand, { rawArgs: ["--dir", pluginDir] });
|
|
6000
5996
|
} catch {
|
|
6001
5997
|
consola.error("Build failed");
|
|
@@ -1,12 +1,14 @@
|
|
|
1
|
-
import "../types-
|
|
2
|
-
import "../types-
|
|
3
|
-
import "../runner-
|
|
4
|
-
import "../index-
|
|
5
|
-
import "../types-
|
|
6
|
-
import "../
|
|
7
|
-
import "../
|
|
8
|
-
import "../
|
|
9
|
-
import "../
|
|
1
|
+
import "../types-D5JfvPvx.mjs";
|
|
2
|
+
import "../types-B--VyN3n.mjs";
|
|
3
|
+
import "../runner-SoP1rphP.mjs";
|
|
4
|
+
import "../index-BVGe04wF.mjs";
|
|
5
|
+
import "../types-B03h5jt_.mjs";
|
|
6
|
+
import "../adapters-C8nRpUuj.mjs";
|
|
7
|
+
import "../scheduled-publish-BxdShRGs.mjs";
|
|
8
|
+
import "../public-url-Ccv0Xmue.mjs";
|
|
9
|
+
import "../validate-kmN2lS8H.mjs";
|
|
10
|
+
import "../byline-fields-D-b9CWux.mjs";
|
|
11
|
+
import "../types-DsJTXStN.mjs";
|
|
10
12
|
import { DinewayClient, PluginRequestOptions } from "../client/index.mjs";
|
|
11
13
|
import { SubCommandsDef } from "citty";
|
|
12
14
|
|
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-7HDrYTSQ.mjs";
|
|
2
|
+
import { n as connectionArgs, r as createClientFromArgs } from "../client-factory-C1ZQCMog.mjs";
|
|
3
3
|
|
|
4
4
|
export { configureOutputMode, connectionArgs, createClientFromArgs, output };
|