dineway 0.2.0 → 0.2.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +17 -17
- package/dist/activity-BDMlkpYY.mjs +79 -0
- package/dist/{activity-events-y6eT8UW6.mjs → activity-events-DEYmJhWd.mjs} +1 -77
- package/dist/{actor-CrObAPV0.mjs → actor-DA7yL9Yp.mjs} +1 -1
- package/dist/{allowed-origins-_oeyP6x-.mjs → allowed-origins-VLgv2PL1.mjs} +1 -1
- package/dist/api/route-utils.d.mts +9 -10
- package/dist/api/route-utils.mjs +14 -14
- package/dist/api/schemas/index.d.mts +2 -2
- package/dist/api/schemas/index.mjs +5 -5
- package/dist/{api-ByrU2q-Z.mjs → api-DsO87Qak.mjs} +51 -23
- package/dist/{api-tokens-CjVMQT-X.mjs → api-tokens-C4K9eocv.mjs} +1 -1
- package/dist/{apply-bZswmZPm.mjs → apply-DHT0l398.mjs} +19 -19
- package/dist/astro/index.d.mts +10 -11
- package/dist/astro/index.mjs +18 -5
- package/dist/astro/middleware/auth.d.mts +9 -19
- package/dist/astro/middleware/auth.mjs +6 -6
- package/dist/astro/middleware/redirect.mjs +5 -5
- package/dist/astro/middleware/request-context.mjs +2 -2
- 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 +142 -98
- package/dist/astro/routes/api/admin/allowed-domains/_domain_.mjs +6 -6
- package/dist/astro/routes/api/admin/allowed-domains/index.mjs +6 -6
- 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 +9 -9
- package/dist/astro/routes/api/admin/byline-fields/index.mjs +9 -9
- package/dist/astro/routes/api/admin/byline-fields/reorder.mjs +9 -9
- package/dist/astro/routes/api/admin/bylines/_id_/index.mjs +16 -16
- package/dist/astro/routes/api/admin/bylines/_id_/translations.mjs +16 -16
- package/dist/astro/routes/api/admin/bylines/index.mjs +16 -16
- package/dist/astro/routes/api/admin/comments/_id_/status.mjs +12 -12
- package/dist/astro/routes/api/admin/comments/_id_.mjs +5 -5
- package/dist/astro/routes/api/admin/comments/bulk.mjs +10 -10
- package/dist/astro/routes/api/admin/comments/counts.mjs +5 -5
- package/dist/astro/routes/api/admin/comments/index.mjs +10 -10
- package/dist/astro/routes/api/admin/context/_id_/history.mjs +25 -24
- package/dist/astro/routes/api/admin/context/_id_/index.mjs +25 -24
- package/dist/astro/routes/api/admin/context/_id_/review.mjs +30 -29
- package/dist/astro/routes/api/admin/context/_id_/supersede.mjs +30 -29
- package/dist/astro/routes/api/admin/context/diff.mjs +29 -28
- package/dist/astro/routes/api/admin/context/index.mjs +30 -29
- package/dist/astro/routes/api/admin/context/stale.mjs +29 -28
- package/dist/astro/routes/api/admin/hitl-requests/_id_/index.mjs +25 -24
- package/dist/astro/routes/api/admin/hitl-requests/_id_/resolve.mjs +29 -28
- package/dist/astro/routes/api/admin/hitl-requests/index.mjs +29 -28
- package/dist/astro/routes/api/admin/hooks/exclusive/_hookName_.mjs +26 -25
- package/dist/astro/routes/api/admin/hooks/exclusive/index.mjs +2 -2
- 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 +55 -51
- package/dist/astro/routes/api/admin/plugins/_id_/enable.mjs +55 -51
- package/dist/astro/routes/api/admin/plugins/_id_/index.mjs +47 -44
- package/dist/astro/routes/api/admin/plugins/_id_/uninstall.mjs +54 -50
- package/dist/astro/routes/api/admin/plugins/_id_/update.mjs +54 -50
- package/dist/astro/routes/api/admin/plugins/index.mjs +47 -44
- package/dist/astro/routes/api/admin/plugins/marketplace/_id_/icon.mjs +2 -2
- package/dist/astro/routes/api/admin/plugins/marketplace/_id_/index.mjs +47 -44
- package/dist/astro/routes/api/admin/plugins/marketplace/_id_/install.mjs +54 -50
- package/dist/astro/routes/api/admin/plugins/marketplace/index.mjs +47 -44
- package/dist/astro/routes/api/admin/plugins/updates.mjs +47 -44
- package/dist/astro/routes/api/admin/review-requests/_id_/index.mjs +5 -5
- package/dist/astro/routes/api/admin/review-requests/_id_/resolve.mjs +30 -65
- package/dist/astro/routes/api/admin/review-requests/index.d.mts +2 -1
- package/dist/astro/routes/api/admin/review-requests/index.mjs +58 -11
- package/dist/astro/routes/api/admin/themes/marketplace/_id_/index.mjs +47 -44
- package/dist/astro/routes/api/admin/themes/marketplace/_id_/thumbnail.mjs +2 -2
- package/dist/astro/routes/api/admin/themes/marketplace/index.mjs +47 -44
- 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 +7 -7
- package/dist/astro/routes/api/admin/users/_id_/send-recovery.mjs +2 -2
- package/dist/astro/routes/api/admin/users/index.mjs +6 -6
- package/dist/astro/routes/api/auth/dev-bypass.mjs +4 -4
- package/dist/astro/routes/api/auth/invite/accept.mjs +1 -1
- package/dist/astro/routes/api/auth/invite/complete.mjs +10 -10
- package/dist/astro/routes/api/auth/invite/index.mjs +7 -7
- package/dist/astro/routes/api/auth/invite/register-options.mjs +9 -9
- package/dist/astro/routes/api/auth/logout.mjs +2 -2
- package/dist/astro/routes/api/auth/magic-link/send.mjs +9 -9
- package/dist/astro/routes/api/auth/magic-link/verify.mjs +2 -2
- package/dist/astro/routes/api/auth/me.mjs +8 -8
- 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 +6 -6
- package/dist/astro/routes/api/auth/passkey/index.mjs +1 -1
- package/dist/astro/routes/api/auth/passkey/options.mjs +11 -11
- package/dist/astro/routes/api/auth/passkey/register/options.mjs +9 -9
- package/dist/astro/routes/api/auth/passkey/register/verify.mjs +10 -10
- package/dist/astro/routes/api/auth/passkey/verify.mjs +10 -10
- package/dist/astro/routes/api/auth/setup-token/index.mjs +5 -5
- package/dist/astro/routes/api/auth/setup-token/verify.mjs +2 -2
- package/dist/astro/routes/api/auth/signup/complete.mjs +10 -10
- package/dist/astro/routes/api/auth/signup/request.mjs +9 -9
- package/dist/astro/routes/api/auth/signup/verify.mjs +1 -1
- package/dist/astro/routes/api/comments/_collection_/_contentId_/index.mjs +13 -13
- package/dist/astro/routes/api/comments/_collection_/_contentId_/reactions.mjs +12 -12
- package/dist/astro/routes/api/content/_collection_/_id_/compare.mjs +2 -2
- package/dist/astro/routes/api/content/_collection_/_id_/discard-draft.mjs +6 -5
- package/dist/astro/routes/api/content/_collection_/_id_/duplicate.mjs +6 -5
- package/dist/astro/routes/api/content/_collection_/_id_/permanent.mjs +6 -5
- package/dist/astro/routes/api/content/_collection_/_id_/preview-url.mjs +10 -10
- package/dist/astro/routes/api/content/_collection_/_id_/publish.mjs +49 -21
- package/dist/astro/routes/api/content/_collection_/_id_/restore.mjs +6 -5
- package/dist/astro/routes/api/content/_collection_/_id_/revisions.mjs +2 -2
- package/dist/astro/routes/api/content/_collection_/_id_/schedule.mjs +67 -33
- package/dist/astro/routes/api/content/_collection_/_id_/terms/_taxonomy_.mjs +14 -14
- package/dist/astro/routes/api/content/_collection_/_id_/translations.mjs +2 -2
- package/dist/astro/routes/api/content/_collection_/_id_/unpublish.mjs +6 -5
- package/dist/astro/routes/api/content/_collection_/_id_.mjs +11 -10
- package/dist/astro/routes/api/content/_collection_/authors.mjs +2 -2
- package/dist/astro/routes/api/content/_collection_/index.mjs +11 -10
- package/dist/astro/routes/api/content/_collection_/trash.mjs +7 -7
- package/dist/astro/routes/api/dashboard.mjs +8 -8
- 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 +8 -9
- package/dist/astro/routes/api/import/wordpress/execute.mjs +35 -34
- package/dist/astro/routes/api/import/wordpress/media.d.mts +8 -9
- package/dist/astro/routes/api/import/wordpress/media.mjs +12 -12
- package/dist/astro/routes/api/import/wordpress/prepare.mjs +34 -33
- package/dist/astro/routes/api/import/wordpress/rewrite-urls.d.mts +9 -10
- package/dist/astro/routes/api/import/wordpress/rewrite-urls.mjs +31 -30
- 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 +8 -9
- package/dist/astro/routes/api/import/wordpress-plugin/execute.mjs +40 -39
- package/dist/astro/routes/api/integrations/_provider_.d.mts +8 -0
- package/dist/astro/routes/api/integrations/_provider_.mjs +51 -0
- package/dist/astro/routes/api/integrations/index.d.mts +7 -0
- package/dist/astro/routes/api/integrations/index.mjs +24 -0
- package/dist/astro/routes/api/manifest.mjs +4 -4
- package/dist/astro/routes/api/mcp.mjs +474 -167
- package/dist/astro/routes/api/media/_id_/confirm.mjs +10 -10
- package/dist/astro/routes/api/media/_id_.mjs +8 -8
- 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 +30 -29
- package/dist/astro/routes/api/menus/_name_/items.mjs +30 -29
- package/dist/astro/routes/api/menus/_name_/reorder.mjs +30 -29
- package/dist/astro/routes/api/menus/_name_/translations.mjs +30 -29
- package/dist/astro/routes/api/menus/_name_.mjs +30 -29
- package/dist/astro/routes/api/menus/index.mjs +30 -29
- 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 +4 -4
- package/dist/astro/routes/api/plugins/_pluginId_/_...path_.mjs +20 -5
- package/dist/astro/routes/api/redirects/404s/index.mjs +10 -10
- package/dist/astro/routes/api/redirects/404s/summary.mjs +10 -10
- package/dist/astro/routes/api/redirects/_id_.mjs +31 -30
- package/dist/astro/routes/api/redirects/index.mjs +31 -30
- 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 +49 -45
- package/dist/astro/routes/api/schema/collections/_slug_/fields/index.mjs +49 -45
- package/dist/astro/routes/api/schema/collections/_slug_/fields/reorder.mjs +49 -45
- package/dist/astro/routes/api/schema/collections/_slug_/index.mjs +49 -45
- package/dist/astro/routes/api/schema/collections/index.mjs +49 -45
- package/dist/astro/routes/api/schema/index.mjs +8 -8
- package/dist/astro/routes/api/schema/orphans/_slug_.mjs +47 -44
- package/dist/astro/routes/api/schema/orphans/index.mjs +47 -44
- package/dist/astro/routes/api/search/enable.mjs +11 -11
- package/dist/astro/routes/api/search/index.mjs +10 -10
- package/dist/astro/routes/api/search/rebuild.mjs +11 -11
- package/dist/astro/routes/api/search/stats.mjs +6 -6
- package/dist/astro/routes/api/search/suggest.mjs +10 -10
- package/dist/astro/routes/api/sections/_slug_.mjs +30 -29
- package/dist/astro/routes/api/sections/index.mjs +30 -29
- package/dist/astro/routes/api/settings/email.mjs +3 -3
- package/dist/astro/routes/api/settings.mjs +30 -29
- package/dist/astro/routes/api/setup/admin-verify.mjs +12 -12
- package/dist/astro/routes/api/setup/admin.mjs +10 -10
- package/dist/astro/routes/api/setup/dev-bypass.mjs +25 -25
- package/dist/astro/routes/api/setup/dev-reset.mjs +1 -1
- package/dist/astro/routes/api/setup/index.mjs +27 -27
- package/dist/astro/routes/api/setup/status.mjs +3 -3
- package/dist/astro/routes/api/snapshot.mjs +6 -6
- package/dist/astro/routes/api/taxonomies/_name_/terms/_slug_/translations.mjs +33 -32
- package/dist/astro/routes/api/taxonomies/_name_/terms/_slug_.mjs +33 -32
- package/dist/astro/routes/api/taxonomies/_name_/terms/index.mjs +33 -32
- package/dist/astro/routes/api/taxonomies/index.mjs +33 -32
- package/dist/astro/routes/api/themes/preview.mjs +4 -4
- package/dist/astro/routes/api/typegen.mjs +4 -4
- package/dist/astro/routes/api/well-known/auth.mjs +2 -2
- package/dist/astro/routes/api/well-known/oauth-authorization-server.mjs +3 -3
- package/dist/astro/routes/api/well-known/oauth-protected-resource.mjs +3 -3
- package/dist/astro/routes/api/widget-areas/_name_/reorder.mjs +29 -28
- package/dist/astro/routes/api/widget-areas/_name_/widgets/_id_.mjs +30 -29
- package/dist/astro/routes/api/widget-areas/_name_/widgets.mjs +30 -29
- package/dist/astro/routes/api/widget-areas/_name_.mjs +27 -26
- package/dist/astro/routes/api/widget-areas/index.mjs +30 -29
- package/dist/astro/routes/api/widget-components.mjs +2 -2
- package/dist/astro/routes/robots.txt.mjs +6 -6
- package/dist/astro/routes/sitemap-_collection_.xml.mjs +9 -9
- package/dist/astro/routes/sitemap.xml.mjs +7 -7
- package/dist/astro/session-driver.d.mts +1 -1
- package/dist/astro/session-driver.mjs +2 -2
- package/dist/astro/types.d.mts +13 -12
- package/dist/{audit-ByVKIwWF.mjs → audit-BzhwRVym.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-CqeUmQsv.mjs → auth-control-guard-B_Dx-epW.mjs} +1 -1
- package/dist/{authorize-CcBxcHtz.mjs → authorize-D6MkRtPw.mjs} +1 -1
- package/dist/{briefing-BJaJI8dm.mjs → briefing-Cl70iEH5.mjs} +1 -1
- package/dist/{briefing-CawZ59CY.mjs → briefing-GFhLTLJo.mjs} +7 -7
- package/dist/{bundle-7C_DpkEq.mjs → bundle-CIrUlrkQ.mjs} +2 -2
- package/dist/{byline-e51-fWRs.mjs → byline-BJa1MyKB.mjs} +6 -6
- package/dist/{byline-fields-D-N5qVIG.mjs → byline-fields-BKzA0fJU.mjs} +1 -1
- package/dist/{byline-fields-CUvbslGc.d.mts → byline-fields-DxMpdtsZ.d.mts} +57 -47
- package/dist/{byline-fields-DOJO16Gm.mjs → byline-fields-yT4herdN.mjs} +10 -4
- package/dist/{byline-registry-87nNnYl4.mjs → byline-registry-Ba54M74c.mjs} +2 -2
- package/dist/{bylines-CMQNCNFh.mjs → bylines-B53Saxdb.mjs} +3 -3
- package/dist/{bylines-y4LO-dTj.mjs → bylines-kixFoaRV.mjs} +5 -5
- package/dist/{cache-C-FNTFYK.mjs → cache-fpisdt5Q.mjs} +2 -2
- package/dist/{chunks-CxBt-GxR.mjs → chunks-DX_b8_4Z.mjs} +1 -1
- package/dist/cli/index.d.mts +29 -1
- package/dist/cli/index.mjs +1527 -1222
- package/dist/cli/plugin-kit.d.mts +75 -0
- package/dist/cli/plugin-kit.mjs +4 -0
- package/dist/client/external-auth-headers.d.mts +1 -1
- package/dist/client/index.d.mts +27 -52
- package/dist/client/index.mjs +34 -7
- package/dist/client-factory-DEtHApCc.mjs +323 -0
- package/dist/{comment-DlA4iChg.mjs → comment-B88XcvU1.mjs} +1 -1
- package/dist/{comment-reaction-DfFao1ST.mjs → comment-reaction-Ckn6vCmB.mjs} +1 -1
- package/dist/{comments-DApFGMsP.mjs → comments-BDXsbL7z.mjs} +1 -1
- package/dist/{content-Bh4BDjv8.mjs → content-Cbl8HbIR.mjs} +2 -2
- package/dist/{content-refresh-CgutSUfO.mjs → content-refresh-BmkilU5M.mjs} +5 -5
- package/dist/{context-CK4ym2Sf.mjs → context-AJNd0tcG.mjs} +2 -2
- package/dist/{context-C5W3G18y.mjs → context-DT0tIsfw.mjs} +24 -13
- package/dist/{context-route-helpers-MASyGgWf.mjs → context-route-helpers-DhP--tTq.mjs} +2 -2
- package/dist/{dashboard-DQkVT7Ei.mjs → dashboard-YvDEYbS3.mjs} +4 -4
- package/dist/db/index.d.mts +3 -3
- package/dist/db/index.mjs +1 -1
- package/dist/db/libsql.d.mts +1 -1
- package/dist/db/postgres.d.mts +1 -1
- package/dist/db/sqlite.d.mts +1 -1
- package/dist/{device-flow-BnqRH-T9.mjs → device-flow-BKKeobcV.mjs} +5 -5
- package/dist/{enrich-DIFIFA8O.mjs → enrich-Ck9tfMqe.mjs} +1 -1
- package/dist/{error-CytFlgcd.mjs → error-BW9f_ynq.mjs} +16 -2
- package/dist/{experimental-workflows-BMsUnIAw.mjs → experimental-workflows-CgO73K4e.mjs} +1 -1
- package/dist/{field-defs-cache-DRNdhBJv.mjs → field-defs-cache-CiXP3eO3.mjs} +4 -4
- package/dist/{fts-manager-Crzypjqu.mjs → fts-manager-Zo9uhGel.mjs} +1 -1
- package/dist/{hitl-requests-B4Vbcmaq.mjs → hitl-requests-Bee8Cjj8.mjs} +2 -2
- package/dist/{hitl-route-helpers-hEVzvP8l.mjs → hitl-route-helpers-DtHaKGgm.mjs} +5 -5
- package/dist/{import-Bh9biJfx.mjs → import-C-zxnT89.mjs} +7 -7
- package/dist/{index-D4y6NGiy.d.mts → index-DybFmYtZ.d.mts} +79 -3
- package/dist/index.d.mts +15 -17
- package/dist/index.mjs +83 -78
- package/dist/integration-credentials-D3ZneN0L.mjs +49 -0
- package/dist/{jsonld-Dq0gsnOH.d.mts → jsonld-CoTa8I1a.d.mts} +2 -2
- package/dist/{load-DmYeniXl.mjs → load-Cuiyh8LT.mjs} +1 -1
- package/dist/{loader-CjWqjweO.mjs → loader-WHf22FwU.mjs} +2 -2
- package/dist/{manifest-schema-BxVPYMJR.mjs → manifest-schema-DKa3ZaJL.mjs} +6 -2
- package/dist/{mcp-reviewed-executor-TwVbMzG6.mjs → mcp-reviewed-executor-DnlF7mIL.mjs} +6 -3
- 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 +10 -11
- package/dist/media/local-runtime.mjs +2 -2
- package/dist/{media-DMj0grzC.mjs → media-B4m-cnmj.mjs} +1 -1
- package/dist/{media-allowlist-BlVCSzHx.mjs → media-allowlist-BQyIBPzd.mjs} +1 -1
- package/dist/{menus-TaW1gKnk.mjs → menus-LYALU2Mf.mjs} +2 -2
- package/dist/{menus-xvsnVZXw.mjs → menus-oYfViqfE.mjs} +6 -6
- package/dist/{oauth-authorization-DiaGvRVz.mjs → oauth-authorization-CX7aa8Ph.mjs} +5 -5
- package/dist/{oauth-clients-Dl9E8dEM.mjs → oauth-clients-D9Gg0WjF.mjs} +2 -2
- package/dist/object-cache/memory.d.mts +1 -1
- package/dist/output-13u4dvu-.mjs +68 -0
- package/dist/page/index.d.mts +9 -3
- package/dist/page/index.mjs +1 -1
- package/dist/{parse-CbymENaR.mjs → parse-B-Y84oJl.mjs} +1 -1
- package/dist/plugin-utils.d.mts +8 -9
- package/dist/plugins/adapt-sandbox-entry.d.mts +8 -9
- package/dist/plugins/adapt-sandbox-entry.mjs +3 -1
- package/dist/{plugins-BolVa-tl.mjs → plugins-B7-4Okii.mjs} +95 -10
- package/dist/portable-text-Ehqj3I_y.d.mts +45 -0
- package/dist/{preview-vSVg6fwG.mjs → preview-BMIReQGc.mjs} +2 -2
- package/dist/{provider-loader-MD8zAbnH.d.mts → provider-loader-BIbIiz0P.d.mts} +1 -1
- package/dist/{public-url-gsp3oUbu.d.mts → public-url-DYISdY_R.d.mts} +1 -1
- package/dist/publication-authorization-BVQ5rCAF.mjs +985 -0
- package/dist/{query-CfRCdaL3.mjs → query-C_m8sn-S.mjs} +13 -13
- package/dist/{query-jaAmw8E1.mjs → query-DNczixZr.mjs} +3 -3
- package/dist/{rate-limit-ZLdyWoZF.mjs → rate-limit-oUGexQO1.mjs} +2 -2
- package/dist/{redirect-BAjt4Z6b.mjs → redirect-DoDgOWIA.mjs} +2 -2
- package/dist/{redirects-BTdwpQtE.mjs → redirects-CrP6U4hZ.mjs} +4 -4
- package/dist/{redirects-CA-xylPG.mjs → redirects-E_B6hvuz.mjs} +18 -10
- package/dist/{registry-CtyVedcN.mjs → registry-SEJqFliS.mjs} +24 -10
- package/dist/{request-meta-CUypToDJ.mjs → request-meta-DHFIzWcf.mjs} +1 -1
- package/dist/review-payload-BysRWpxS.mjs +111 -0
- package/dist/{review-requests-DUyEmtmG.mjs → review-requests-CObSuTYU.mjs} +1 -1
- package/dist/review-requests-Cu9051_B.mjs +142 -0
- package/dist/review-route-helpers-Dp_7PH8r.mjs +41 -0
- package/dist/{runner-1tC2tIRV.d.mts → runner-Bcy5w0vj.d.mts} +1 -1
- package/dist/{runner-DB7CRfOF.mjs → runner-BfWbi9YY.mjs} +1166 -447
- package/dist/runtime.d.mts +9 -10
- package/dist/runtime.mjs +3 -3
- package/dist/schema-Dk_N31V4.mjs +8 -0
- package/dist/{search-DSaLgEFI.mjs → search-BXEQepxL.mjs} +3 -3
- package/dist/{secrets-CDZo2k8L.mjs → secrets-CpGpyGcO.mjs} +1 -1
- package/dist/{sections-PVVXHGfp.mjs → sections-DxvEF6Bj.mjs} +2 -2
- package/dist/seed/index.d.mts +2 -2
- package/dist/seed/index.mjs +19 -19
- package/dist/seo/index.d.mts +1 -1
- package/dist/seo/index.mjs +1 -1
- package/dist/{seo-CQG3GCHQ.mjs → seo-D1RiaooQ.mjs} +1 -1
- package/dist/service-CY0aH6eI.mjs +347 -0
- package/dist/{service-DiN4ZuPp.mjs → service-QdG0YHws.mjs} +2 -2
- package/dist/{settings-i4VPP8bT.mjs → settings-Dje-PHXo.mjs} +2 -2
- package/dist/{settings-BbqgHWpU.mjs → settings-SVDAB7_W.mjs} +5 -5
- package/dist/{site-activity-Dy3FROs0.mjs → site-activity-BVK40wCy.mjs} +1 -1
- package/dist/{site-context-DQiL8Fl5.mjs → site-context-CzaEGizi.mjs} +565 -129
- package/dist/stable-hash-DshcXvRE.mjs +19 -0
- 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-CCfMD6nw.mjs +262 -0
- package/dist/{taxonomies-9s-v03H-.mjs → taxonomies-DuhGjBa8.mjs} +3 -3
- package/dist/{taxonomies-DRiixp_E.mjs → taxonomies-WVnFki0o.mjs} +6 -6
- package/dist/{taxonomy-Dvsw6BOs.mjs → taxonomy-CCo2plmV.mjs} +2 -2
- package/dist/{types-DU0bU2Wu.d.mts → types-BFeoAIHl.d.mts} +596 -2
- package/dist/{types-Dq1qT19x.mjs → types-Bshd_6wQ.mjs} +1 -1
- package/dist/{runtime-BOeiQsCv.d.mts → types-CJezJeNE.d.mts} +3561 -1355
- package/dist/{types-4garmdWa.mjs → types-CK0r-Xq4.mjs} +5 -2
- package/dist/{types-C_ly5eTp.d.mts → types-GtwhHAg8.d.mts} +1 -1
- package/dist/{types-DW_-sFyz.d.mts → types-ywmuDETA.d.mts} +2 -0
- package/dist/ui/server-runtime.d.mts +12 -14
- package/dist/ui/server-runtime.mjs +21 -21
- package/dist/{user-BIZPzCb9.mjs → user-Bcvr5ihC.mjs} +2 -2
- package/dist/{utils-CMDhr5Xd.mjs → utils-B7gemXz5.mjs} +1 -1
- package/dist/{validate-CZvb-BKB.d.mts → validate-YiX3rly5.d.mts} +59 -5
- package/dist/{validate-DNs0pTSc.mjs → validate-qKzI3BCv.mjs} +2 -2
- package/dist/version-DEAV9k58.mjs +6 -0
- package/dist/{widgets-f0ibZUIq.mjs → widgets-DyGcotPM.mjs} +3 -3
- package/dist/{wordpress-slugs-BhHJX8XE.mjs → wordpress-slugs-D_LfQCan.mjs} +1 -1
- package/dist/{zod-generator-B7TMjyFJ.mjs → zod-generator-Cr3SiHsc.mjs} +2 -2
- package/package.json +16 -6
- package/dist/hitl-Hw1RmWOq.mjs +0 -677
- package/dist/review-requests-C9Ff11Vq.mjs +0 -79
- package/dist/schema-DXdYj4R3.mjs +0 -8
- package/dist/types-C46EvNdc.d.mts +0 -56
- package/dist/types-C8XW6L19.d.mts +0 -1468
- package/dist/version-BTvfRGc6.mjs +0 -6
- /package/dist/{adapters-NVSs4UH7.d.mts → adapters-DnMDRQ4e.d.mts} +0 -0
- /package/dist/{api-tokens-2r7OWi_I.mjs → api-tokens-D4tcY8R6.mjs} +0 -0
- /package/dist/{challenge-store-Bjlepa2E.mjs → challenge-store-BMkL2kmt.mjs} +0 -0
- /package/dist/{components-Bclf98Be.mjs → components-D0w9MzQe.mjs} +0 -0
- /package/dist/{context-types-DqTo6C79.mjs → context-types-eBuMDAg-.mjs} +0 -0
- /package/dist/{cron-cKcNTix_.mjs → cron-D_c3WUPN.mjs} +0 -0
- /package/dist/{default--K40jqm0.mjs → default-BxoI3SoK.mjs} +0 -0
- /package/dist/{email-console-ChgKFO8-.mjs → email-console-BEMwuxhV.mjs} +0 -0
- /package/dist/{escape-Bd4P_xKg.mjs → escape-smSUOb7u.mjs} +0 -0
- /package/dist/{hash-BPmX6P8I.mjs → hash-mxxx2oPW.mjs} +0 -0
- /package/dist/{media-url-lEKSrpr9.mjs → media-url-B6d-yVI6.mjs} +0 -0
- /package/dist/{mime-CA7Lgovc.mjs → mime-C0vOHFm7.mjs} +0 -0
- /package/dist/{mode-C4CIyjtR.mjs → mode-DPC7segX.mjs} +0 -0
- /package/dist/{normalize-5ek_z7de.mjs → normalize-Cyt7JdF7.mjs} +0 -0
- /package/dist/{oauth-state-store-CNoXafF7.mjs → oauth-state-store-DPVzeoyY.mjs} +0 -0
- /package/dist/{oauth-user-lookup-Ygw4bNyt.mjs → oauth-user-lookup-3E5jlXrr.mjs} +0 -0
- /package/dist/{parser-C1nYd-81.mjs → parser-DX_c5iG3.mjs} +0 -0
- /package/dist/{passkey-config-BUwu8BA3.mjs → passkey-config-DE_0EGEP.mjs} +0 -0
- /package/dist/{patterns-BhAvqO0S.mjs → patterns-CoqlXUvk.mjs} +0 -0
- /package/dist/{placeholder-uvNRZBX9.d.mts → placeholder-C6ZjZcmJ.d.mts} +0 -0
- /package/dist/{portable-text-dA_UlJwW.mjs → portable-text-BASHceim.mjs} +0 -0
- /package/dist/{process-cache-7xgAO9JY.mjs → process-cache-CCDgti7j.mjs} +0 -0
- /package/dist/{provider-loader-D0w9dqjm.mjs → provider-loader-BeQcnPN1.mjs} +0 -0
- /package/dist/{public-url-BEz_sM9n.mjs → public-url-BA-7LKvQ.mjs} +0 -0
- /package/dist/{redirect-wphRBv4y.mjs → redirect-CZFAqHLr.mjs} +0 -0
- /package/dist/{request-cache-D9GQBxMP.mjs → request-cache-CBFjCwSt.mjs} +0 -0
- /package/dist/{resolve-Cb6Dbz-C.mjs → resolve-B6BpqwAR.mjs} +0 -0
- /package/dist/{seo-qa7Dn0jK.mjs → seo-BLszyJxd.mjs} +0 -0
- /package/dist/{seo-contributions-C1EnikHB.mjs → seo-contributions-Ci8_12_r.mjs} +0 -0
- /package/dist/{session-user-CAKImna3.mjs → session-user-BwliEFp0.mjs} +0 -0
- /package/dist/{setup-complete-B8fl-mjV.mjs → setup-complete-PvF8I7Oh.mjs} +0 -0
- /package/dist/{setup-nonce-CoyjILvW.mjs → setup-nonce-DkpYROqg.mjs} +0 -0
- /package/dist/{sidecar-client-C3mqXg4C.mjs → sidecar-client-dt5fv23q.mjs} +0 -0
- /package/dist/{site-url-BML3GQYm.mjs → site-url-DfYDZyWl.mjs} +0 -0
- /package/dist/{ssrf-DWe8jwAp.mjs → ssrf-BZHvtFEv.mjs} +0 -0
- /package/dist/{status-DANd8ERo.mjs → status-BN40hMpr.mjs} +0 -0
- /package/dist/{tokens-1RK1n6ED.mjs → tokens-DIzhPT80.mjs} +0 -0
- /package/dist/{transaction-C2EOMTJA.mjs → transaction-0LEAAy8R.mjs} +0 -0
- /package/dist/{transport-CcJu3Co8.d.mts → transport-BZ3aqdu7.d.mts} +0 -0
- /package/dist/{transport-BNmCqLu7.mjs → transport-C46KHLMP.mjs} +0 -0
- /package/dist/{trusted-proxy-DTXQ2IMv.mjs → trusted-proxy-czZuby6G.mjs} +0 -0
- /package/dist/{types-B3t5cxhU.mjs → types-B7TDDFMG.mjs} +0 -0
- /package/dist/{types-CDpH6MA4.d.mts → types-BsTXSvKG.d.mts} +0 -0
- /package/dist/{types-DF7ZuGGk.d.mts → types-CDcuRd4z.d.mts} +0 -0
- /package/dist/{types-Rc3gQqqw.d.mts → types-S9VIopdY.d.mts} +0 -0
- /package/dist/{types-POH8PQZh.d.mts → types-YxFz4lDr.d.mts} +0 -0
- /package/dist/{types-C5CVgwsV.mjs → types-gvNBqijt.mjs} +0 -0
- /package/dist/{url-CpyFDFpO.mjs → url-D282S1Zw.mjs} +0 -0
- /package/dist/{url-Cac7a9QZ.mjs → url-guoXQQcV.mjs} +0 -0
package/README.md
CHANGED
|
@@ -57,14 +57,14 @@ npx skills add dineway/dineway-skills
|
|
|
57
57
|
|
|
58
58
|
This installs the following skills into your project:
|
|
59
59
|
|
|
60
|
-
| Skill
|
|
61
|
-
|
|
|
62
|
-
| `building-restaurant
|
|
63
|
-
| `building-
|
|
64
|
-
| `dineway-cli`
|
|
65
|
-
| `enrich-
|
|
66
|
-
| `frontend-design`
|
|
67
|
-
| `brainstorming`
|
|
60
|
+
| Skill | What It Does |
|
|
61
|
+
| ----------------------------- | ---------------------------------------------------------------------- |
|
|
62
|
+
| `dineway-building-restaurant` | End-to-end restaurant site creation from real place data |
|
|
63
|
+
| `dineway-building-site` | General Dineway site building patterns |
|
|
64
|
+
| `dineway-cli` | CLI commands for managing content, schema, media, and deployment |
|
|
65
|
+
| `dineway-enrich-places` | Fetches your restaurant's real data (hours, reviews, photos, location) |
|
|
66
|
+
| `dineway-frontend-design` | Creates distinctive, production-grade visual design |
|
|
67
|
+
| `dineway-brainstorming` | Explores design and architecture options before building |
|
|
68
68
|
|
|
69
69
|
---
|
|
70
70
|
|
|
@@ -75,17 +75,17 @@ This installs the following skills into your project:
|
|
|
75
75
|
Paste this into your AI agent's input:
|
|
76
76
|
|
|
77
77
|
```text
|
|
78
|
-
Use building-restaurant
|
|
78
|
+
Use dineway-building-restaurant to build an AI-ready Dineway restaurant site for "YOUR RESTAURANT NAME" in "YOUR CITY, COUNTRY".
|
|
79
79
|
```
|
|
80
80
|
|
|
81
81
|
Replace with your real restaurant name and city. Examples:
|
|
82
82
|
|
|
83
83
|
```text
|
|
84
|
-
Use building-restaurant
|
|
84
|
+
Use dineway-building-restaurant to build an AI-ready Dineway restaurant site for "Peace Harmony" in "Sydney, Australia".
|
|
85
85
|
```
|
|
86
86
|
|
|
87
87
|
```text
|
|
88
|
-
Use building-restaurant
|
|
88
|
+
Use dineway-building-restaurant to build an AI-ready Dineway restaurant site for "La Maison Rouge" in "Paris, France".
|
|
89
89
|
```
|
|
90
90
|
|
|
91
91
|
The agent will automatically:
|
|
@@ -436,7 +436,7 @@ The agent fetches publicly available business data: your restaurant name, addres
|
|
|
436
436
|
|
|
437
437
|
### Can I use Dineway for non-restaurant businesses?
|
|
438
438
|
|
|
439
|
-
Yes. While optimized for restaurants, Dineway's content engine, admin panel, and plugin system work for any local business. Use the `building-
|
|
439
|
+
Yes. While optimized for restaurants, Dineway's content engine, admin panel, and plugin system work for any local business. Use the `dineway-building-site` skill instead of `dineway-building-restaurant`.
|
|
440
440
|
|
|
441
441
|
---
|
|
442
442
|
|
|
@@ -451,13 +451,13 @@ STEP 1: Install skills
|
|
|
451
451
|
RUN: npx skills add dineway/dineway-skills
|
|
452
452
|
|
|
453
453
|
STEP 2: Build the site
|
|
454
|
-
INVOKE SKILL: building-restaurant
|
|
454
|
+
INVOKE SKILL: dineway-building-restaurant
|
|
455
455
|
INPUTS: restaurant name, city/country
|
|
456
456
|
The skill internally invokes:
|
|
457
|
-
- enrich-
|
|
458
|
-
- brainstorming (design decisions)
|
|
459
|
-
- frontend-design (visual implementation)
|
|
460
|
-
- building-
|
|
457
|
+
- dineway-enrich-places (fetch real place data)
|
|
458
|
+
- dineway-brainstorming (design decisions)
|
|
459
|
+
- dineway-frontend-design (visual implementation)
|
|
460
|
+
- dineway-building-site (CMS integration)
|
|
461
461
|
- dineway-cli (content seeding, media upload)
|
|
462
462
|
|
|
463
463
|
STEP 3: Validate
|
|
@@ -0,0 +1,79 @@
|
|
|
1
|
+
import { t as SiteActivityRepository } from "./site-activity-BVK40wCy.mjs";
|
|
2
|
+
import { n as resolveActorIdentity } from "./actor-DA7yL9Yp.mjs";
|
|
3
|
+
|
|
4
|
+
//#region src/site-context/activity.ts
|
|
5
|
+
const REDACTED = "[redacted]";
|
|
6
|
+
const TRUNCATED = "[truncated]";
|
|
7
|
+
const MAX_DEPTH = 6;
|
|
8
|
+
const MAX_OBJECT_KEYS = 100;
|
|
9
|
+
const MAX_ARRAY_ITEMS = 50;
|
|
10
|
+
const MAX_STRING_LENGTH = 2e3;
|
|
11
|
+
const SECRET_KEY_PATTERN = /^(authorization|cookie|set-cookie|password|secret|token|token[_-]?hash|api[_-]?key|apikey|access[_-]?token|refresh[_-]?token|auth[_-]?token|private[_-]?key|privatekey|credential|credentials)$/i;
|
|
12
|
+
var SiteActivityLogger = class {
|
|
13
|
+
repository;
|
|
14
|
+
constructor(db) {
|
|
15
|
+
this.repository = new SiteActivityRepository(db);
|
|
16
|
+
}
|
|
17
|
+
async log(locals, input) {
|
|
18
|
+
const actor = resolveActorIdentity(locals);
|
|
19
|
+
return this.repository.create({
|
|
20
|
+
actorType: actor.actorType,
|
|
21
|
+
actorId: actor.actorId,
|
|
22
|
+
authMetadata: redactActivityRecord(actor.authMetadata),
|
|
23
|
+
actionType: input.actionType,
|
|
24
|
+
subjectType: input.subjectType,
|
|
25
|
+
subjectId: input.subjectId ?? null,
|
|
26
|
+
relatedSubjectType: input.relatedSubjectType ?? null,
|
|
27
|
+
relatedSubjectId: input.relatedSubjectId ?? null,
|
|
28
|
+
sourceType: input.sourceType ?? null,
|
|
29
|
+
sourceName: input.sourceName ?? null,
|
|
30
|
+
resultStatus: input.resultStatus,
|
|
31
|
+
scope: input.scope,
|
|
32
|
+
summary: truncateString(input.summary),
|
|
33
|
+
detail: input.detail ? redactActivityRecord(input.detail) : null,
|
|
34
|
+
createdAt: input.createdAt
|
|
35
|
+
});
|
|
36
|
+
}
|
|
37
|
+
};
|
|
38
|
+
function redactActivityRecord(input) {
|
|
39
|
+
const redacted = redactActivityValue(input, 0);
|
|
40
|
+
if (isRecord(redacted)) return redacted;
|
|
41
|
+
return {};
|
|
42
|
+
}
|
|
43
|
+
function redactActivityValue(value, depth, key) {
|
|
44
|
+
if (key && isSecretKey(key)) return REDACTED;
|
|
45
|
+
if (value === null || value === void 0) return value;
|
|
46
|
+
if (typeof value === "string") return truncateString(value);
|
|
47
|
+
if (typeof value === "number" || typeof value === "boolean") return value;
|
|
48
|
+
if (typeof value === "bigint") return value.toString();
|
|
49
|
+
if (value instanceof Date) return value.toISOString();
|
|
50
|
+
if (depth >= MAX_DEPTH) return TRUNCATED;
|
|
51
|
+
if (Array.isArray(value)) {
|
|
52
|
+
const items = value.slice(0, MAX_ARRAY_ITEMS).map((item) => redactActivityValue(item, depth + 1));
|
|
53
|
+
if (value.length > MAX_ARRAY_ITEMS) items.push(TRUNCATED);
|
|
54
|
+
return items;
|
|
55
|
+
}
|
|
56
|
+
if (isRecord(value)) {
|
|
57
|
+
const entries = Object.entries(value);
|
|
58
|
+
const redacted = {};
|
|
59
|
+
for (const [entryKey, entryValue] of entries.slice(0, MAX_OBJECT_KEYS)) redacted[entryKey] = redactActivityValue(entryValue, depth + 1, entryKey);
|
|
60
|
+
if (entries.length > MAX_OBJECT_KEYS) redacted.__truncated_keys = entries.length - MAX_OBJECT_KEYS;
|
|
61
|
+
return redacted;
|
|
62
|
+
}
|
|
63
|
+
if (typeof value === "symbol") return value.description ? `Symbol(${value.description})` : "Symbol()";
|
|
64
|
+
if (typeof value === "function") return value.name ? `[function ${value.name}]` : "[function anonymous]";
|
|
65
|
+
return "[unsupported]";
|
|
66
|
+
}
|
|
67
|
+
function truncateString(value) {
|
|
68
|
+
if (value.length <= MAX_STRING_LENGTH) return value;
|
|
69
|
+
return `${value.slice(0, MAX_STRING_LENGTH)}...${TRUNCATED}`;
|
|
70
|
+
}
|
|
71
|
+
function isSecretKey(key) {
|
|
72
|
+
return SECRET_KEY_PATTERN.test(key);
|
|
73
|
+
}
|
|
74
|
+
function isRecord(value) {
|
|
75
|
+
return typeof value === "object" && value !== null && !Array.isArray(value);
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
//#endregion
|
|
79
|
+
export { redactActivityRecord as n, SiteActivityLogger as t };
|
|
@@ -1,81 +1,5 @@
|
|
|
1
|
-
import { t as
|
|
2
|
-
import { t as resolveActorIdentity } from "./actor-CrObAPV0.mjs";
|
|
1
|
+
import { t as SiteActivityLogger } from "./activity-BDMlkpYY.mjs";
|
|
3
2
|
|
|
4
|
-
//#region src/site-context/activity.ts
|
|
5
|
-
const REDACTED = "[redacted]";
|
|
6
|
-
const TRUNCATED = "[truncated]";
|
|
7
|
-
const MAX_DEPTH = 6;
|
|
8
|
-
const MAX_OBJECT_KEYS = 100;
|
|
9
|
-
const MAX_ARRAY_ITEMS = 50;
|
|
10
|
-
const MAX_STRING_LENGTH = 2e3;
|
|
11
|
-
const SECRET_KEY_PATTERN = /^(authorization|cookie|set-cookie|password|secret|token|token[_-]?hash|api[_-]?key|apikey|access[_-]?token|refresh[_-]?token|auth[_-]?token|private[_-]?key|privatekey|credential|credentials)$/i;
|
|
12
|
-
var SiteActivityLogger = class {
|
|
13
|
-
repository;
|
|
14
|
-
constructor(db) {
|
|
15
|
-
this.repository = new SiteActivityRepository(db);
|
|
16
|
-
}
|
|
17
|
-
async log(locals, input) {
|
|
18
|
-
const actor = resolveActorIdentity(locals);
|
|
19
|
-
return this.repository.create({
|
|
20
|
-
actorType: actor.actorType,
|
|
21
|
-
actorId: actor.actorId,
|
|
22
|
-
authMetadata: redactActivityRecord(actor.authMetadata),
|
|
23
|
-
actionType: input.actionType,
|
|
24
|
-
subjectType: input.subjectType,
|
|
25
|
-
subjectId: input.subjectId ?? null,
|
|
26
|
-
relatedSubjectType: input.relatedSubjectType ?? null,
|
|
27
|
-
relatedSubjectId: input.relatedSubjectId ?? null,
|
|
28
|
-
sourceType: input.sourceType ?? null,
|
|
29
|
-
sourceName: input.sourceName ?? null,
|
|
30
|
-
resultStatus: input.resultStatus,
|
|
31
|
-
scope: input.scope,
|
|
32
|
-
summary: truncateString(input.summary),
|
|
33
|
-
detail: input.detail ? redactActivityRecord(input.detail) : null,
|
|
34
|
-
createdAt: input.createdAt
|
|
35
|
-
});
|
|
36
|
-
}
|
|
37
|
-
};
|
|
38
|
-
function redactActivityRecord(input) {
|
|
39
|
-
const redacted = redactActivityValue(input, 0);
|
|
40
|
-
if (isRecord$1(redacted)) return redacted;
|
|
41
|
-
return {};
|
|
42
|
-
}
|
|
43
|
-
function redactActivityValue(value, depth, key) {
|
|
44
|
-
if (key && isSecretKey(key)) return REDACTED;
|
|
45
|
-
if (value === null || value === void 0) return value;
|
|
46
|
-
if (typeof value === "string") return truncateString(value);
|
|
47
|
-
if (typeof value === "number" || typeof value === "boolean") return value;
|
|
48
|
-
if (typeof value === "bigint") return value.toString();
|
|
49
|
-
if (value instanceof Date) return value.toISOString();
|
|
50
|
-
if (depth >= MAX_DEPTH) return TRUNCATED;
|
|
51
|
-
if (Array.isArray(value)) {
|
|
52
|
-
const items = value.slice(0, MAX_ARRAY_ITEMS).map((item) => redactActivityValue(item, depth + 1));
|
|
53
|
-
if (value.length > MAX_ARRAY_ITEMS) items.push(TRUNCATED);
|
|
54
|
-
return items;
|
|
55
|
-
}
|
|
56
|
-
if (isRecord$1(value)) {
|
|
57
|
-
const entries = Object.entries(value);
|
|
58
|
-
const redacted = {};
|
|
59
|
-
for (const [entryKey, entryValue] of entries.slice(0, MAX_OBJECT_KEYS)) redacted[entryKey] = redactActivityValue(entryValue, depth + 1, entryKey);
|
|
60
|
-
if (entries.length > MAX_OBJECT_KEYS) redacted.__truncated_keys = entries.length - MAX_OBJECT_KEYS;
|
|
61
|
-
return redacted;
|
|
62
|
-
}
|
|
63
|
-
if (typeof value === "symbol") return value.description ? `Symbol(${value.description})` : "Symbol()";
|
|
64
|
-
if (typeof value === "function") return value.name ? `[function ${value.name}]` : "[function anonymous]";
|
|
65
|
-
return "[unsupported]";
|
|
66
|
-
}
|
|
67
|
-
function truncateString(value) {
|
|
68
|
-
if (value.length <= MAX_STRING_LENGTH) return value;
|
|
69
|
-
return `${value.slice(0, MAX_STRING_LENGTH)}...${TRUNCATED}`;
|
|
70
|
-
}
|
|
71
|
-
function isSecretKey(key) {
|
|
72
|
-
return SECRET_KEY_PATTERN.test(key);
|
|
73
|
-
}
|
|
74
|
-
function isRecord$1(value) {
|
|
75
|
-
return typeof value === "object" && value !== null && !Array.isArray(value);
|
|
76
|
-
}
|
|
77
|
-
|
|
78
|
-
//#endregion
|
|
79
3
|
//#region src/site-context/activity-events.ts
|
|
80
4
|
async function logSiteActivitySafely(db, locals, input) {
|
|
81
5
|
if (!db) return;
|
|
@@ -1,13 +1,12 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { t as Database } from "../types-
|
|
3
|
-
import
|
|
4
|
-
import "../
|
|
5
|
-
import "../
|
|
6
|
-
import "../
|
|
7
|
-
import "../byline-fields-
|
|
8
|
-
import "../types-
|
|
9
|
-
import "../
|
|
10
|
-
import { t as getPublicOrigin } from "../public-url-gsp3oUbu.mjs";
|
|
1
|
+
import { Cs as parseBody, Ds as handleError, Dt as StorageCollection, Es as apiSuccess, Ot as StorageCollectionConfig, Ss as isParseError, Ts as apiError, bs as OptionsRepository, ws as parseQuery, xs as ParseResult } from "../types-CJezJeNE.mjs";
|
|
2
|
+
import { t as Database } from "../types-BFeoAIHl.mjs";
|
|
3
|
+
import "../runner-Bcy5w0vj.mjs";
|
|
4
|
+
import "../index-DybFmYtZ.mjs";
|
|
5
|
+
import "../types-S9VIopdY.mjs";
|
|
6
|
+
import "../validate-YiX3rly5.mjs";
|
|
7
|
+
import "../byline-fields-DxMpdtsZ.mjs";
|
|
8
|
+
import "../types-BsTXSvKG.mjs";
|
|
9
|
+
import { t as getPublicOrigin } from "../public-url-DYISdY_R.mjs";
|
|
11
10
|
import { Kysely } from "kysely";
|
|
12
11
|
|
|
13
12
|
//#region src/api/auth-storage.d.ts
|
package/dist/api/route-utils.mjs
CHANGED
|
@@ -1,21 +1,21 @@
|
|
|
1
1
|
import "../dialect-helpers-fk43GbDb.mjs";
|
|
2
2
|
import "../base64-F8-DUraK.mjs";
|
|
3
|
-
import "../types-
|
|
3
|
+
import "../types-Bshd_6wQ.mjs";
|
|
4
4
|
import "../object-cache-D51qOseS.mjs";
|
|
5
|
-
import "../content-
|
|
6
|
-
import "../media-
|
|
7
|
-
import "../user-
|
|
5
|
+
import "../content-Cbl8HbIR.mjs";
|
|
6
|
+
import "../media-B4m-cnmj.mjs";
|
|
7
|
+
import "../user-Bcvr5ihC.mjs";
|
|
8
8
|
import { t as OptionsRepository } from "../options-DQPTH5n0.mjs";
|
|
9
|
-
import { r as createStorageAccess } from "../context-
|
|
10
|
-
import "../enrich-
|
|
11
|
-
import "../seo-
|
|
12
|
-
import "../content-refresh-
|
|
13
|
-
import { n as apiSuccess, r as handleError, t as apiError } from "../error-
|
|
14
|
-
import { i as parseQuery, n as parseBody, t as isParseError } from "../parse-
|
|
15
|
-
import "../ssrf-
|
|
16
|
-
import "../cron-
|
|
17
|
-
import { n as getPublicOrigin } from "../public-url-
|
|
18
|
-
import { t as finalizeSetup } from "../setup-complete-
|
|
9
|
+
import { r as createStorageAccess } from "../context-DT0tIsfw.mjs";
|
|
10
|
+
import "../enrich-Ck9tfMqe.mjs";
|
|
11
|
+
import "../seo-D1RiaooQ.mjs";
|
|
12
|
+
import "../content-refresh-BmkilU5M.mjs";
|
|
13
|
+
import { n as apiSuccess, r as handleError, t as apiError } from "../error-BW9f_ynq.mjs";
|
|
14
|
+
import { i as parseQuery, n as parseBody, t as isParseError } from "../parse-B-Y84oJl.mjs";
|
|
15
|
+
import "../ssrf-BZHvtFEv.mjs";
|
|
16
|
+
import "../cron-D_c3WUPN.mjs";
|
|
17
|
+
import { n as getPublicOrigin } from "../public-url-BA-7LKvQ.mjs";
|
|
18
|
+
import { t as finalizeSetup } from "../setup-complete-PvF8I7Oh.mjs";
|
|
19
19
|
|
|
20
20
|
//#region src/api/auth-storage.ts
|
|
21
21
|
/**
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { $ as settingsUpdateBody, $n as
|
|
1
|
+
import { $ as settingsUpdateBody, $n as contentTermsBody, $t as adminCommentListResponseSchema, A as widgetAreaSchema, An as mediaConfirmResponseSchema, At as inviteCompleteBody, B as usersListQuery, Bn as contentAuthorSchema, Bt as signupRequestBody, C as redirectSchema, Cn as orphanedTableSchema, Ct as menuSchema, D as createWidgetBody, Dn as DEFAULT_MAX_UPLOAD_SIZE, Dt as updateMenuBody, E as createWidgetAreaBody, En as updateFieldBody, Et as reorderMenuItemsBody, F as allowedDomainUpdateBody, Fn as mediaProviderListQuery, Ft as passkeyRegisterOptionsBody, G as wpPrepareBody, Gn as contentListQuery, Gt as hitlRequestResolveBody, H as wpMediaImportBody, Hn as contentCompareResponseSchema, Ht as reviewRequestListQuery, I as userDetailSchema, In as mediaResponseSchema, It as passkeyRegisterVerifyBody, J as searchQuery, Jn as contentPublishBody, Jt as contextEntryDiffQuery, K as wpRewriteUrlsBody, Kn as contentListResponseSchema, Kt as siteBriefingQuery, L as userListResponseSchema, Ln as mediaUpdateBody, Lt as passkeyRenameBody, M as widgetAreaWithWidgetsSchema, Mn as mediaItemSchema, Mt as inviteRegisterOptionsBody, N as widgetSchema, Nn as mediaListQuery, Nt as magicLinkSendBody, O as reorderWidgetsBody, On as formatFileSize, Ot as updateMenuItemBody, P as allowedDomainCreateBody, Pn as mediaListResponseSchema, Pt as passkeyOptionsBody, Q as searchSuggestQuery, Qn as contentSeoSchema, Qt as contextEntrySupersedeBody, R as userSchema, Rn as mediaUploadUrlBody, Rt as passkeyVerifyBody, S as redirectListResponseSchema, Sn as orphanedTableListResponseSchema, St as menuListItemSchema, T as updateRedirectBody, Tn as updateCollectionBody, Tt as menuWithItemsSchema, U as wpPluginAnalyzeBody, Un as contentCreateBody, Ut as reviewRequestResolveBody, V as importProbeBody, Vn as contentAuthorsResponseSchema, Vt as reviewRequestCreateBody, W as wpPluginExecuteBody, Wn as contentItemSchema, Wt as hitlRequestListQuery, X as searchResponseSchema, Xn as contentScheduleBody, Xt as contextEntryReviewBody, Y as searchRebuildBody, Yn as contentResponseSchema, Yt as contextEntryListQuery, Z as searchResultSchema, Zn as contentSeoInput, Zt as contextEntryStaleQuery, _ as notFoundListResponseSchema, _n as fieldListResponseSchema, _r as successEnvelope, _t as updateTermBody, a as bylineFieldUpdateBody, an as commentStatusBody, ar as trashedContentListResponseSchema, at as updateSectionBody, b as notFoundSummaryResponseSchema, bn as fieldSchema, bt as menuItemSchema, c as bylineCreditSchema, cn as publicCommentListResponseSchema, cr as countResponseSchema, ct as taxonomyDefSchema, d as bylineUpdateBody, dn as collectionListResponseSchema, dr as httpUrl, dt as termGetResponseSchema, en as commentBulkBody, er as contentTranslationSchema, et as siteSettingsSchema, f as bylinesListQuery, fn as collectionResponseSchema, fr as localeCode, ft as termListResponseSchema, g as notFoundListQuery, gn as createFieldBody, gr as slugPattern, gt as termWithCountSchema, h as notFoundEntrySchema, hn as createCollectionBody, hr as roleLevel, ht as termTranslationsSchema, i as bylineFieldReorderBody, in as commentSchema, ir as trashedContentItemSchema, it as sectionsListQuery, j as widgetAreaWithWidgetsAndCountSchema, jn as mediaExistingResponseSchema, jt as inviteCreateBody, k as updateWidgetBody, kn as mediaConfirmBody, kt as authMeActionBody, l as bylineListResponseSchema, ln as publicCommentSchema, lr as cursorPaginationQuery, lt as taxonomyDefTranslationsSchema, m as createRedirectBody, mn as collectionWithFieldsResponseSchema, mr as offsetPaginationQuery, mt as termSchema, n as bylineFieldDefinitionSchema, nn as commentCountsResponseSchema, nr as contentTrashQuery, nt as sectionListResponseSchema, o as bylineFieldUsageResponseSchema, on as createCommentBody, or as VALID_ROLE_LEVELS, ot as createTaxonomyDefBody, p as contentBylineInputSchema, pn as collectionSchema, pr as localeFilterQuery, pt as termResponseSchema, q as searchEnableBody, qn as contentPreviewUrlBody, qt as contextEntryCreateBody, r as bylineFieldListResponseSchema, rn as commentListQuery, rr as contentUpdateBody, rt as sectionSchema, s as bylineCreateBody, sn as createReactionBody, sr as apiErrorSchema, st as createTermBody, t as bylineFieldCreateBody, tn as commentBulkResponseSchema, tr as contentTranslationsResponseSchema, tt as createSectionBody, u as bylineSummarySchema, un as collectionGetQuery, ur as deleteResponseSchema, ut as taxonomyListResponseSchema, v as notFoundPruneBody, vn as fieldReorderBody, vt as createMenuBody, w as redirectsListQuery, wn as schemaExportQuery, wt as menuTranslationsSchema, x as notFoundSummarySchema, xn as orphanRegisterBody, xt as menuItemTypeEnum, y as notFoundSummaryQuery, yn as fieldResponseSchema, yt as createMenuItemBody, z as userUpdateBody, zn as mediaUploadUrlResponseSchema, zt as signupCompleteBody } from "../../byline-fields-DxMpdtsZ.mjs";
|
|
2
2
|
import { atprotoLoginBody, setupAdminBody, setupAdminVerifyBody, setupAtprotoAdminBody, setupBody } from "./setup.mjs";
|
|
3
|
-
export { DEFAULT_MAX_UPLOAD_SIZE, VALID_ROLE_LEVELS, adminCommentListResponseSchema, allowedDomainCreateBody, allowedDomainUpdateBody, apiErrorSchema, atprotoLoginBody, authMeActionBody, bylineCreateBody, bylineCreditSchema, bylineFieldCreateBody, bylineFieldDefinitionSchema, bylineFieldListResponseSchema, bylineFieldReorderBody, bylineFieldUpdateBody, bylineFieldUsageResponseSchema, bylineListResponseSchema, bylineSummarySchema, bylineUpdateBody, bylinesListQuery, collectionGetQuery, collectionListResponseSchema, collectionResponseSchema, collectionSchema, collectionWithFieldsResponseSchema, commentBulkBody, commentBulkResponseSchema, commentCountsResponseSchema, commentListQuery, commentSchema, commentStatusBody, contentAuthorSchema, contentAuthorsResponseSchema, contentBylineInputSchema, contentCompareResponseSchema, contentCreateBody, contentItemSchema, contentListQuery, contentListResponseSchema, contentPreviewUrlBody, contentPublishBody, contentResponseSchema, contentScheduleBody, contentSeoInput, contentSeoSchema, contentTermsBody, contentTranslationSchema, contentTranslationsResponseSchema, contentTrashQuery, contentUpdateBody, contextEntryCreateBody, contextEntryDiffQuery, contextEntryListQuery, contextEntryReviewBody, contextEntryStaleQuery, contextEntrySupersedeBody, countResponseSchema, createCollectionBody, createCommentBody, createFieldBody, createMenuBody, createMenuItemBody, createReactionBody, createRedirectBody, createSectionBody, createTaxonomyDefBody, createTermBody, createWidgetAreaBody, createWidgetBody, cursorPaginationQuery, deleteResponseSchema, fieldListResponseSchema, fieldReorderBody, fieldResponseSchema, fieldSchema, formatFileSize, hitlRequestListQuery, hitlRequestResolveBody, httpUrl, importProbeBody, inviteCompleteBody, inviteCreateBody, inviteRegisterOptionsBody, localeCode, localeFilterQuery, magicLinkSendBody, mediaConfirmBody, mediaConfirmResponseSchema, mediaExistingResponseSchema, mediaItemSchema, mediaListQuery, mediaListResponseSchema, mediaProviderListQuery, mediaResponseSchema, mediaUpdateBody, mediaUploadUrlBody, mediaUploadUrlResponseSchema, menuItemSchema, menuItemTypeEnum, menuListItemSchema, menuSchema, menuTranslationsSchema, menuWithItemsSchema, notFoundEntrySchema, notFoundListQuery, notFoundListResponseSchema, notFoundPruneBody, notFoundSummaryQuery, notFoundSummaryResponseSchema, notFoundSummarySchema, offsetPaginationQuery, orphanRegisterBody, orphanedTableListResponseSchema, orphanedTableSchema, passkeyOptionsBody, passkeyRegisterOptionsBody, passkeyRegisterVerifyBody, passkeyRenameBody, passkeyVerifyBody, publicCommentListResponseSchema, publicCommentSchema, redirectListResponseSchema, redirectSchema, redirectsListQuery, reorderMenuItemsBody, reorderWidgetsBody, reviewRequestListQuery, reviewRequestResolveBody, roleLevel, schemaExportQuery, searchEnableBody, searchQuery, searchRebuildBody, searchResponseSchema, searchResultSchema, searchSuggestQuery, sectionListResponseSchema, sectionSchema, sectionsListQuery, settingsUpdateBody, setupAdminBody, setupAdminVerifyBody, setupAtprotoAdminBody, setupBody, signupCompleteBody, signupRequestBody, siteBriefingQuery, siteSettingsSchema, slugPattern, successEnvelope, taxonomyDefSchema, taxonomyDefTranslationsSchema, taxonomyListResponseSchema, termGetResponseSchema, termListResponseSchema, termResponseSchema, termSchema, termTranslationsSchema, termWithCountSchema, trashedContentItemSchema, trashedContentListResponseSchema, updateCollectionBody, updateFieldBody, updateMenuBody, updateMenuItemBody, updateRedirectBody, updateSectionBody, updateTermBody, updateWidgetBody, userDetailSchema, userListResponseSchema, userSchema, userUpdateBody, usersListQuery, widgetAreaSchema, widgetAreaWithWidgetsAndCountSchema, widgetAreaWithWidgetsSchema, widgetSchema, wpMediaImportBody, wpPluginAnalyzeBody, wpPluginExecuteBody, wpPrepareBody, wpRewriteUrlsBody };
|
|
3
|
+
export { DEFAULT_MAX_UPLOAD_SIZE, VALID_ROLE_LEVELS, adminCommentListResponseSchema, allowedDomainCreateBody, allowedDomainUpdateBody, apiErrorSchema, atprotoLoginBody, authMeActionBody, bylineCreateBody, bylineCreditSchema, bylineFieldCreateBody, bylineFieldDefinitionSchema, bylineFieldListResponseSchema, bylineFieldReorderBody, bylineFieldUpdateBody, bylineFieldUsageResponseSchema, bylineListResponseSchema, bylineSummarySchema, bylineUpdateBody, bylinesListQuery, collectionGetQuery, collectionListResponseSchema, collectionResponseSchema, collectionSchema, collectionWithFieldsResponseSchema, commentBulkBody, commentBulkResponseSchema, commentCountsResponseSchema, commentListQuery, commentSchema, commentStatusBody, contentAuthorSchema, contentAuthorsResponseSchema, contentBylineInputSchema, contentCompareResponseSchema, contentCreateBody, contentItemSchema, contentListQuery, contentListResponseSchema, contentPreviewUrlBody, contentPublishBody, contentResponseSchema, contentScheduleBody, contentSeoInput, contentSeoSchema, contentTermsBody, contentTranslationSchema, contentTranslationsResponseSchema, contentTrashQuery, contentUpdateBody, contextEntryCreateBody, contextEntryDiffQuery, contextEntryListQuery, contextEntryReviewBody, contextEntryStaleQuery, contextEntrySupersedeBody, countResponseSchema, createCollectionBody, createCommentBody, createFieldBody, createMenuBody, createMenuItemBody, createReactionBody, createRedirectBody, createSectionBody, createTaxonomyDefBody, createTermBody, createWidgetAreaBody, createWidgetBody, cursorPaginationQuery, deleteResponseSchema, fieldListResponseSchema, fieldReorderBody, fieldResponseSchema, fieldSchema, formatFileSize, hitlRequestListQuery, hitlRequestResolveBody, httpUrl, importProbeBody, inviteCompleteBody, inviteCreateBody, inviteRegisterOptionsBody, localeCode, localeFilterQuery, magicLinkSendBody, mediaConfirmBody, mediaConfirmResponseSchema, mediaExistingResponseSchema, mediaItemSchema, mediaListQuery, mediaListResponseSchema, mediaProviderListQuery, mediaResponseSchema, mediaUpdateBody, mediaUploadUrlBody, mediaUploadUrlResponseSchema, menuItemSchema, menuItemTypeEnum, menuListItemSchema, menuSchema, menuTranslationsSchema, menuWithItemsSchema, notFoundEntrySchema, notFoundListQuery, notFoundListResponseSchema, notFoundPruneBody, notFoundSummaryQuery, notFoundSummaryResponseSchema, notFoundSummarySchema, offsetPaginationQuery, orphanRegisterBody, orphanedTableListResponseSchema, orphanedTableSchema, passkeyOptionsBody, passkeyRegisterOptionsBody, passkeyRegisterVerifyBody, passkeyRenameBody, passkeyVerifyBody, publicCommentListResponseSchema, publicCommentSchema, redirectListResponseSchema, redirectSchema, redirectsListQuery, reorderMenuItemsBody, reorderWidgetsBody, reviewRequestCreateBody, reviewRequestListQuery, reviewRequestResolveBody, roleLevel, schemaExportQuery, searchEnableBody, searchQuery, searchRebuildBody, searchResponseSchema, searchResultSchema, searchSuggestQuery, sectionListResponseSchema, sectionSchema, sectionsListQuery, settingsUpdateBody, setupAdminBody, setupAdminVerifyBody, setupAtprotoAdminBody, setupBody, signupCompleteBody, signupRequestBody, siteBriefingQuery, siteSettingsSchema, slugPattern, successEnvelope, taxonomyDefSchema, taxonomyDefTranslationsSchema, taxonomyListResponseSchema, termGetResponseSchema, termListResponseSchema, termResponseSchema, termSchema, termTranslationsSchema, termWithCountSchema, trashedContentItemSchema, trashedContentListResponseSchema, updateCollectionBody, updateFieldBody, updateMenuBody, updateMenuItemBody, updateRedirectBody, updateSectionBody, updateTermBody, updateWidgetBody, userDetailSchema, userListResponseSchema, userSchema, userUpdateBody, usersListQuery, widgetAreaSchema, widgetAreaWithWidgetsAndCountSchema, widgetAreaWithWidgetsSchema, widgetSchema, wpMediaImportBody, wpPluginAnalyzeBody, wpPluginExecuteBody, wpPrepareBody, wpRewriteUrlsBody };
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import "../../context-types-
|
|
2
|
-
import { $ as createMenuBody, $t as contentCompareResponseSchema, A as searchRebuildBody, An as localeCode, At as fieldResponseSchema, B as updateSectionBody, Bt as mediaConfirmBody, C as userDetailSchema, Cn as contentBylineInputSchema, Ct as collectionResponseSchema, D as usersListQuery, Dn as cursorPaginationQuery, Dt as createFieldBody, E as userUpdateBody, En as countResponseSchema, Et as createCollectionBody, F as siteSettingsSchema, Fn as successEnvelope, Ft as schemaExportQuery, G as taxonomyListResponseSchema, Gt as mediaListResponseSchema, H as createTermBody, Ht as mediaExistingResponseSchema, I as createSectionBody, It as updateCollectionBody, J as termResponseSchema, Jt as mediaUpdateBody, K as termGetResponseSchema, Kt as mediaProviderListQuery, L as sectionListResponseSchema, Lt as updateFieldBody, M as searchResultSchema, Mn as offsetPaginationQuery, Mt as orphanRegisterBody, N as searchSuggestQuery, Nn as roleLevel, Nt as orphanedTableListResponseSchema, O as searchEnableBody, On as deleteResponseSchema, Ot as fieldListResponseSchema, P as settingsUpdateBody, Pn as slugPattern, Pt as orphanedTableSchema, Q as updateTermBody, Qt as contentAuthorsResponseSchema, R as sectionSchema, Rt as DEFAULT_MAX_UPLOAD_SIZE, S as allowedDomainUpdateBody, Sn as bylinesListQuery, St as collectionListResponseSchema, T as userSchema, Tn as apiErrorSchema, Tt as collectionWithFieldsResponseSchema, U as taxonomyDefSchema, Ut as mediaItemSchema, V as createTaxonomyDefBody, Vt as mediaConfirmResponseSchema, W as taxonomyDefTranslationsSchema, Wt as mediaListQuery, X as termTranslationsSchema, Xt as mediaUploadUrlResponseSchema, Y as termSchema, Yt as mediaUploadUrlBody, Z as termWithCountSchema, Zt as contentAuthorSchema, _ as widgetAreaSchema, _n as bylineCreateBody, _t as createCommentBody, a as notFoundPruneBody, an as contentPublishBody, at as menuTranslationsSchema, b as widgetSchema, bn as bylineSummarySchema, bt as publicCommentSchema, c as notFoundSummarySchema, cn as contentSeoInput, ct as updateMenuBody, d as redirectsListQuery, dn as contentTranslationSchema, dt as commentBulkBody, en as contentCreateBody, et as createMenuItemBody, f as updateRedirectBody, fn as contentTranslationsResponseSchema, ft as commentBulkResponseSchema, g as updateWidgetBody, gn as trashedContentListResponseSchema, gt as commentStatusBody, h as reorderWidgetsBody, hn as trashedContentItemSchema, ht as commentSchema, i as notFoundListResponseSchema, in as contentPreviewUrlBody, it as menuSchema, j as searchResponseSchema, jn as localeFilterQuery, jt as fieldSchema, k as searchQuery, kn as httpUrl, kt as fieldReorderBody, l as redirectListResponseSchema, ln as contentSeoSchema, lt as updateMenuItemBody, m as createWidgetBody, mn as contentUpdateBody, mt as commentListQuery, n as notFoundEntrySchema, nn as contentListQuery, nt as menuItemTypeEnum, o as notFoundSummaryQuery, on as contentResponseSchema, ot as menuWithItemsSchema, p as createWidgetAreaBody, pn as contentTrashQuery, pt as commentCountsResponseSchema, q as termListResponseSchema, qt as mediaResponseSchema, r as notFoundListQuery, rn as contentListResponseSchema, rt as menuListItemSchema, s as notFoundSummaryResponseSchema, sn as contentScheduleBody, st as reorderMenuItemsBody, t as createRedirectBody, tn as contentItemSchema, tt as menuItemSchema, u as redirectSchema, un as contentTermsBody, ut as adminCommentListResponseSchema, v as widgetAreaWithWidgetsAndCountSchema, vn as bylineCreditSchema, vt as createReactionBody, w as userListResponseSchema, wn as VALID_ROLE_LEVELS, wt as collectionSchema, x as allowedDomainCreateBody, xn as bylineUpdateBody, xt as collectionGetQuery, y as widgetAreaWithWidgetsSchema, yn as bylineListResponseSchema, yt as publicCommentListResponseSchema, z as sectionsListQuery, zt as formatFileSize } from "../../redirects-
|
|
3
|
-
import { A as
|
|
1
|
+
import "../../context-types-eBuMDAg-.mjs";
|
|
2
|
+
import { $ as createMenuBody, $t as contentCompareResponseSchema, A as searchRebuildBody, An as localeCode, At as fieldResponseSchema, B as updateSectionBody, Bt as mediaConfirmBody, C as userDetailSchema, Cn as contentBylineInputSchema, Ct as collectionResponseSchema, D as usersListQuery, Dn as cursorPaginationQuery, Dt as createFieldBody, E as userUpdateBody, En as countResponseSchema, Et as createCollectionBody, F as siteSettingsSchema, Fn as successEnvelope, Ft as schemaExportQuery, G as taxonomyListResponseSchema, Gt as mediaListResponseSchema, H as createTermBody, Ht as mediaExistingResponseSchema, I as createSectionBody, It as updateCollectionBody, J as termResponseSchema, Jt as mediaUpdateBody, K as termGetResponseSchema, Kt as mediaProviderListQuery, L as sectionListResponseSchema, Lt as updateFieldBody, M as searchResultSchema, Mn as offsetPaginationQuery, Mt as orphanRegisterBody, N as searchSuggestQuery, Nn as roleLevel, Nt as orphanedTableListResponseSchema, O as searchEnableBody, On as deleteResponseSchema, Ot as fieldListResponseSchema, P as settingsUpdateBody, Pn as slugPattern, Pt as orphanedTableSchema, Q as updateTermBody, Qt as contentAuthorsResponseSchema, R as sectionSchema, Rt as DEFAULT_MAX_UPLOAD_SIZE, S as allowedDomainUpdateBody, Sn as bylinesListQuery, St as collectionListResponseSchema, T as userSchema, Tn as apiErrorSchema, Tt as collectionWithFieldsResponseSchema, U as taxonomyDefSchema, Ut as mediaItemSchema, V as createTaxonomyDefBody, Vt as mediaConfirmResponseSchema, W as taxonomyDefTranslationsSchema, Wt as mediaListQuery, X as termTranslationsSchema, Xt as mediaUploadUrlResponseSchema, Y as termSchema, Yt as mediaUploadUrlBody, Z as termWithCountSchema, Zt as contentAuthorSchema, _ as widgetAreaSchema, _n as bylineCreateBody, _t as createCommentBody, a as notFoundPruneBody, an as contentPublishBody, at as menuTranslationsSchema, b as widgetSchema, bn as bylineSummarySchema, bt as publicCommentSchema, c as notFoundSummarySchema, cn as contentSeoInput, ct as updateMenuBody, d as redirectsListQuery, dn as contentTranslationSchema, dt as commentBulkBody, en as contentCreateBody, et as createMenuItemBody, f as updateRedirectBody, fn as contentTranslationsResponseSchema, ft as commentBulkResponseSchema, g as updateWidgetBody, gn as trashedContentListResponseSchema, gt as commentStatusBody, h as reorderWidgetsBody, hn as trashedContentItemSchema, ht as commentSchema, i as notFoundListResponseSchema, in as contentPreviewUrlBody, it as menuSchema, j as searchResponseSchema, jn as localeFilterQuery, jt as fieldSchema, k as searchQuery, kn as httpUrl, kt as fieldReorderBody, l as redirectListResponseSchema, ln as contentSeoSchema, lt as updateMenuItemBody, m as createWidgetBody, mn as contentUpdateBody, mt as commentListQuery, n as notFoundEntrySchema, nn as contentListQuery, nt as menuItemTypeEnum, o as notFoundSummaryQuery, on as contentResponseSchema, ot as menuWithItemsSchema, p as createWidgetAreaBody, pn as contentTrashQuery, pt as commentCountsResponseSchema, q as termListResponseSchema, qt as mediaResponseSchema, r as notFoundListQuery, rn as contentListResponseSchema, rt as menuListItemSchema, s as notFoundSummaryResponseSchema, sn as contentScheduleBody, st as reorderMenuItemsBody, t as createRedirectBody, tn as contentItemSchema, tt as menuItemSchema, u as redirectSchema, un as contentTermsBody, ut as adminCommentListResponseSchema, v as widgetAreaWithWidgetsAndCountSchema, vn as bylineCreditSchema, vt as createReactionBody, w as userListResponseSchema, wn as VALID_ROLE_LEVELS, wt as collectionSchema, x as allowedDomainCreateBody, xn as bylineUpdateBody, xt as collectionGetQuery, y as widgetAreaWithWidgetsSchema, yn as bylineListResponseSchema, yt as publicCommentListResponseSchema, z as sectionsListQuery, zt as formatFileSize } from "../../redirects-E_B6hvuz.mjs";
|
|
3
|
+
import { A as siteBriefingQuery, C as signupCompleteBody, D as reviewRequestResolveBody, E as reviewRequestListQuery, F as contextEntryStaleQuery, I as contextEntrySupersedeBody, M as contextEntryDiffQuery, N as contextEntryListQuery, O as hitlRequestListQuery, P as contextEntryReviewBody, S as passkeyVerifyBody, T as reviewRequestCreateBody, _ as magicLinkSendBody, a as bylineFieldUpdateBody, b as passkeyRegisterVerifyBody, c as wpMediaImportBody, d as wpPrepareBody, f as wpRewriteUrlsBody, g as inviteRegisterOptionsBody, h as inviteCreateBody, i as bylineFieldReorderBody, j as contextEntryCreateBody, k as hitlRequestResolveBody, l as wpPluginAnalyzeBody, m as inviteCompleteBody, n as bylineFieldDefinitionSchema, o as bylineFieldUsageResponseSchema, p as authMeActionBody, r as bylineFieldListResponseSchema, s as importProbeBody, t as bylineFieldCreateBody, u as wpPluginExecuteBody, v as passkeyOptionsBody, w as signupRequestBody, x as passkeyRenameBody, y as passkeyRegisterOptionsBody } from "../../byline-fields-yT4herdN.mjs";
|
|
4
4
|
import { atprotoLoginBody, setupAdminBody, setupAdminVerifyBody, setupAtprotoAdminBody, setupBody } from "./setup.mjs";
|
|
5
|
-
import "../../status-
|
|
5
|
+
import "../../status-BN40hMpr.mjs";
|
|
6
6
|
|
|
7
|
-
export { DEFAULT_MAX_UPLOAD_SIZE, VALID_ROLE_LEVELS, adminCommentListResponseSchema, allowedDomainCreateBody, allowedDomainUpdateBody, apiErrorSchema, atprotoLoginBody, authMeActionBody, bylineCreateBody, bylineCreditSchema, bylineFieldCreateBody, bylineFieldDefinitionSchema, bylineFieldListResponseSchema, bylineFieldReorderBody, bylineFieldUpdateBody, bylineFieldUsageResponseSchema, bylineListResponseSchema, bylineSummarySchema, bylineUpdateBody, bylinesListQuery, collectionGetQuery, collectionListResponseSchema, collectionResponseSchema, collectionSchema, collectionWithFieldsResponseSchema, commentBulkBody, commentBulkResponseSchema, commentCountsResponseSchema, commentListQuery, commentSchema, commentStatusBody, contentAuthorSchema, contentAuthorsResponseSchema, contentBylineInputSchema, contentCompareResponseSchema, contentCreateBody, contentItemSchema, contentListQuery, contentListResponseSchema, contentPreviewUrlBody, contentPublishBody, contentResponseSchema, contentScheduleBody, contentSeoInput, contentSeoSchema, contentTermsBody, contentTranslationSchema, contentTranslationsResponseSchema, contentTrashQuery, contentUpdateBody, contextEntryCreateBody, contextEntryDiffQuery, contextEntryListQuery, contextEntryReviewBody, contextEntryStaleQuery, contextEntrySupersedeBody, countResponseSchema, createCollectionBody, createCommentBody, createFieldBody, createMenuBody, createMenuItemBody, createReactionBody, createRedirectBody, createSectionBody, createTaxonomyDefBody, createTermBody, createWidgetAreaBody, createWidgetBody, cursorPaginationQuery, deleteResponseSchema, fieldListResponseSchema, fieldReorderBody, fieldResponseSchema, fieldSchema, formatFileSize, hitlRequestListQuery, hitlRequestResolveBody, httpUrl, importProbeBody, inviteCompleteBody, inviteCreateBody, inviteRegisterOptionsBody, localeCode, localeFilterQuery, magicLinkSendBody, mediaConfirmBody, mediaConfirmResponseSchema, mediaExistingResponseSchema, mediaItemSchema, mediaListQuery, mediaListResponseSchema, mediaProviderListQuery, mediaResponseSchema, mediaUpdateBody, mediaUploadUrlBody, mediaUploadUrlResponseSchema, menuItemSchema, menuItemTypeEnum, menuListItemSchema, menuSchema, menuTranslationsSchema, menuWithItemsSchema, notFoundEntrySchema, notFoundListQuery, notFoundListResponseSchema, notFoundPruneBody, notFoundSummaryQuery, notFoundSummaryResponseSchema, notFoundSummarySchema, offsetPaginationQuery, orphanRegisterBody, orphanedTableListResponseSchema, orphanedTableSchema, passkeyOptionsBody, passkeyRegisterOptionsBody, passkeyRegisterVerifyBody, passkeyRenameBody, passkeyVerifyBody, publicCommentListResponseSchema, publicCommentSchema, redirectListResponseSchema, redirectSchema, redirectsListQuery, reorderMenuItemsBody, reorderWidgetsBody, reviewRequestListQuery, reviewRequestResolveBody, roleLevel, schemaExportQuery, searchEnableBody, searchQuery, searchRebuildBody, searchResponseSchema, searchResultSchema, searchSuggestQuery, sectionListResponseSchema, sectionSchema, sectionsListQuery, settingsUpdateBody, setupAdminBody, setupAdminVerifyBody, setupAtprotoAdminBody, setupBody, signupCompleteBody, signupRequestBody, siteBriefingQuery, siteSettingsSchema, slugPattern, successEnvelope, taxonomyDefSchema, taxonomyDefTranslationsSchema, taxonomyListResponseSchema, termGetResponseSchema, termListResponseSchema, termResponseSchema, termSchema, termTranslationsSchema, termWithCountSchema, trashedContentItemSchema, trashedContentListResponseSchema, updateCollectionBody, updateFieldBody, updateMenuBody, updateMenuItemBody, updateRedirectBody, updateSectionBody, updateTermBody, updateWidgetBody, userDetailSchema, userListResponseSchema, userSchema, userUpdateBody, usersListQuery, widgetAreaSchema, widgetAreaWithWidgetsAndCountSchema, widgetAreaWithWidgetsSchema, widgetSchema, wpMediaImportBody, wpPluginAnalyzeBody, wpPluginExecuteBody, wpPrepareBody, wpRewriteUrlsBody };
|
|
7
|
+
export { DEFAULT_MAX_UPLOAD_SIZE, VALID_ROLE_LEVELS, adminCommentListResponseSchema, allowedDomainCreateBody, allowedDomainUpdateBody, apiErrorSchema, atprotoLoginBody, authMeActionBody, bylineCreateBody, bylineCreditSchema, bylineFieldCreateBody, bylineFieldDefinitionSchema, bylineFieldListResponseSchema, bylineFieldReorderBody, bylineFieldUpdateBody, bylineFieldUsageResponseSchema, bylineListResponseSchema, bylineSummarySchema, bylineUpdateBody, bylinesListQuery, collectionGetQuery, collectionListResponseSchema, collectionResponseSchema, collectionSchema, collectionWithFieldsResponseSchema, commentBulkBody, commentBulkResponseSchema, commentCountsResponseSchema, commentListQuery, commentSchema, commentStatusBody, contentAuthorSchema, contentAuthorsResponseSchema, contentBylineInputSchema, contentCompareResponseSchema, contentCreateBody, contentItemSchema, contentListQuery, contentListResponseSchema, contentPreviewUrlBody, contentPublishBody, contentResponseSchema, contentScheduleBody, contentSeoInput, contentSeoSchema, contentTermsBody, contentTranslationSchema, contentTranslationsResponseSchema, contentTrashQuery, contentUpdateBody, contextEntryCreateBody, contextEntryDiffQuery, contextEntryListQuery, contextEntryReviewBody, contextEntryStaleQuery, contextEntrySupersedeBody, countResponseSchema, createCollectionBody, createCommentBody, createFieldBody, createMenuBody, createMenuItemBody, createReactionBody, createRedirectBody, createSectionBody, createTaxonomyDefBody, createTermBody, createWidgetAreaBody, createWidgetBody, cursorPaginationQuery, deleteResponseSchema, fieldListResponseSchema, fieldReorderBody, fieldResponseSchema, fieldSchema, formatFileSize, hitlRequestListQuery, hitlRequestResolveBody, httpUrl, importProbeBody, inviteCompleteBody, inviteCreateBody, inviteRegisterOptionsBody, localeCode, localeFilterQuery, magicLinkSendBody, mediaConfirmBody, mediaConfirmResponseSchema, mediaExistingResponseSchema, mediaItemSchema, mediaListQuery, mediaListResponseSchema, mediaProviderListQuery, mediaResponseSchema, mediaUpdateBody, mediaUploadUrlBody, mediaUploadUrlResponseSchema, menuItemSchema, menuItemTypeEnum, menuListItemSchema, menuSchema, menuTranslationsSchema, menuWithItemsSchema, notFoundEntrySchema, notFoundListQuery, notFoundListResponseSchema, notFoundPruneBody, notFoundSummaryQuery, notFoundSummaryResponseSchema, notFoundSummarySchema, offsetPaginationQuery, orphanRegisterBody, orphanedTableListResponseSchema, orphanedTableSchema, passkeyOptionsBody, passkeyRegisterOptionsBody, passkeyRegisterVerifyBody, passkeyRenameBody, passkeyVerifyBody, publicCommentListResponseSchema, publicCommentSchema, redirectListResponseSchema, redirectSchema, redirectsListQuery, reorderMenuItemsBody, reorderWidgetsBody, reviewRequestCreateBody, reviewRequestListQuery, reviewRequestResolveBody, roleLevel, schemaExportQuery, searchEnableBody, searchQuery, searchRebuildBody, searchResponseSchema, searchResultSchema, searchSuggestQuery, sectionListResponseSchema, sectionSchema, sectionsListQuery, settingsUpdateBody, setupAdminBody, setupAdminVerifyBody, setupAtprotoAdminBody, setupBody, signupCompleteBody, signupRequestBody, siteBriefingQuery, siteSettingsSchema, slugPattern, successEnvelope, taxonomyDefSchema, taxonomyDefTranslationsSchema, taxonomyListResponseSchema, termGetResponseSchema, termListResponseSchema, termResponseSchema, termSchema, termTranslationsSchema, termWithCountSchema, trashedContentItemSchema, trashedContentListResponseSchema, updateCollectionBody, updateFieldBody, updateMenuBody, updateMenuItemBody, updateRedirectBody, updateSectionBody, updateTermBody, updateWidgetBody, userDetailSchema, userListResponseSchema, userSchema, userUpdateBody, usersListQuery, widgetAreaSchema, widgetAreaWithWidgetsAndCountSchema, widgetAreaWithWidgetsSchema, widgetSchema, wpMediaImportBody, wpPluginAnalyzeBody, wpPluginExecuteBody, wpPrepareBody, wpRewriteUrlsBody };
|
|
@@ -1,26 +1,26 @@
|
|
|
1
1
|
import { r as validatePluginIdentifier, t as validateIdentifier } from "./validate-VPnKoIzW.mjs";
|
|
2
2
|
import { r as isI18nEnabled } from "./config-CVssduLe.mjs";
|
|
3
3
|
import { r as encodeBase64, t as decodeBase64 } from "./base64-F8-DUraK.mjs";
|
|
4
|
-
import { n as ScheduledNotDueError, t as DinewayValidationError } from "./types-
|
|
4
|
+
import { n as ScheduledNotDueError, t as DinewayValidationError } from "./types-Bshd_6wQ.mjs";
|
|
5
5
|
import { o as invalidateCollectionCache } from "./object-cache-D51qOseS.mjs";
|
|
6
|
-
import { r as RevisionRepository, t as ContentRepository } from "./content-
|
|
7
|
-
import { t as MediaRepository } from "./media-
|
|
8
|
-
import { n as chunks, t as SQL_BATCH_SIZE } from "./chunks-
|
|
9
|
-
import { t as UserRepository } from "./user-
|
|
10
|
-
import { t as CommentRepository } from "./comment-
|
|
11
|
-
import { t as withTransaction } from "./transaction-
|
|
12
|
-
import { t as RedirectRepository } from "./redirect-
|
|
13
|
-
import { r as requestCached } from "./request-cache-
|
|
14
|
-
import { t as BylineRepository } from "./byline-
|
|
15
|
-
import { r as parseAllowedMimeTypes, t as matchesMimeAllowlist } from "./mime-
|
|
16
|
-
import { t as SeoRepository } from "./seo-
|
|
17
|
-
import { i as invalidateRedirectCache } from "./cache-
|
|
18
|
-
import { u as PluginStateRepository } from "./briefing-
|
|
19
|
-
import { n as hashString } from "./hash-
|
|
20
|
-
import { n as SchemaRegistry, t as SchemaError } from "./registry-
|
|
21
|
-
import { n as VERSION, t as COMMIT } from "./version-
|
|
22
|
-
import { a as reconcileManifestAccess, i as pluginManifestSchema, r as normalizeManifestRoute } from "./manifest-schema-
|
|
23
|
-
import { t as DinewayStorageError } from "./types-
|
|
6
|
+
import { r as RevisionRepository, t as ContentRepository } from "./content-Cbl8HbIR.mjs";
|
|
7
|
+
import { t as MediaRepository } from "./media-B4m-cnmj.mjs";
|
|
8
|
+
import { n as chunks, t as SQL_BATCH_SIZE } from "./chunks-DX_b8_4Z.mjs";
|
|
9
|
+
import { t as UserRepository } from "./user-Bcvr5ihC.mjs";
|
|
10
|
+
import { t as CommentRepository } from "./comment-B88XcvU1.mjs";
|
|
11
|
+
import { t as withTransaction } from "./transaction-0LEAAy8R.mjs";
|
|
12
|
+
import { t as RedirectRepository } from "./redirect-DoDgOWIA.mjs";
|
|
13
|
+
import { r as requestCached } from "./request-cache-CBFjCwSt.mjs";
|
|
14
|
+
import { t as BylineRepository } from "./byline-BJa1MyKB.mjs";
|
|
15
|
+
import { r as parseAllowedMimeTypes, t as matchesMimeAllowlist } from "./mime-C0vOHFm7.mjs";
|
|
16
|
+
import { t as SeoRepository } from "./seo-D1RiaooQ.mjs";
|
|
17
|
+
import { i as invalidateRedirectCache } from "./cache-fpisdt5Q.mjs";
|
|
18
|
+
import { u as PluginStateRepository } from "./briefing-GFhLTLJo.mjs";
|
|
19
|
+
import { n as hashString } from "./hash-mxxx2oPW.mjs";
|
|
20
|
+
import { n as SchemaRegistry, t as SchemaError } from "./registry-SEJqFliS.mjs";
|
|
21
|
+
import { n as VERSION, t as COMMIT } from "./version-DEAV9k58.mjs";
|
|
22
|
+
import { a as reconcileManifestAccess, i as pluginManifestSchema, r as normalizeManifestRoute } from "./manifest-schema-DKa3ZaJL.mjs";
|
|
23
|
+
import { t as DinewayStorageError } from "./types-gvNBqijt.mjs";
|
|
24
24
|
import { sql } from "kysely";
|
|
25
25
|
import { createGzipDecoder, unpackTar } from "modern-tar";
|
|
26
26
|
|
|
@@ -171,6 +171,16 @@ var ContentUpdateApiError = class extends Error {
|
|
|
171
171
|
async function collectionHasSeo(db, collection) {
|
|
172
172
|
return (await db.selectFrom("_dineway_collections").select("has_seo").where("slug", "=", collection).executeTakeFirst())?.has_seo === 1;
|
|
173
173
|
}
|
|
174
|
+
async function collectionSupportsRevisions(db, collection) {
|
|
175
|
+
const row = await db.selectFrom("_dineway_collections").select("supports").where("slug", "=", collection).executeTakeFirst();
|
|
176
|
+
if (!row?.supports) return false;
|
|
177
|
+
try {
|
|
178
|
+
const supports = JSON.parse(row.supports);
|
|
179
|
+
return Array.isArray(supports) && supports.includes("revisions");
|
|
180
|
+
} catch {
|
|
181
|
+
return false;
|
|
182
|
+
}
|
|
183
|
+
}
|
|
174
184
|
async function getCollectionFieldSlugs(db, collection) {
|
|
175
185
|
const collectionRow = await db.selectFrom("_dineway_collections").select("id").where("slug", "=", collection).executeTakeFirst();
|
|
176
186
|
if (!collectionRow) return null;
|
|
@@ -502,6 +512,7 @@ async function handleContentGetIncludingTrashed(db, collection, id, locale) {
|
|
|
502
512
|
async function handleContentCreate(db, collection, body) {
|
|
503
513
|
try {
|
|
504
514
|
const hasSeo = await collectionHasSeo(db, collection);
|
|
515
|
+
const usesDraftRevisions = await collectionSupportsRevisions(db, collection);
|
|
505
516
|
if (body.seo && !hasSeo) return {
|
|
506
517
|
success: false,
|
|
507
518
|
error: {
|
|
@@ -521,7 +532,7 @@ async function handleContentCreate(db, collection, body) {
|
|
|
521
532
|
const slugSource = getSlugSource(body.data);
|
|
522
533
|
if (slugSource) slug = await repo.generateUniqueSlug(collection, slugSource, body.locale);
|
|
523
534
|
}
|
|
524
|
-
|
|
535
|
+
let created = await repo.create({
|
|
525
536
|
type: collection,
|
|
526
537
|
slug,
|
|
527
538
|
data: body.data,
|
|
@@ -532,10 +543,27 @@ async function handleContentCreate(db, collection, body) {
|
|
|
532
543
|
createdAt: body.createdAt,
|
|
533
544
|
publishedAt: body.publishedAt
|
|
534
545
|
});
|
|
535
|
-
if (
|
|
546
|
+
if (usesDraftRevisions && created.status === "draft") {
|
|
547
|
+
const revision = await new RevisionRepository(trx).create({
|
|
548
|
+
collection,
|
|
549
|
+
entryId: created.id,
|
|
550
|
+
data: created.data,
|
|
551
|
+
authorId: body.authorId
|
|
552
|
+
});
|
|
553
|
+
await repo.setDraftRevision(collection, created.id, revision.id);
|
|
554
|
+
const revisioned = await repo.findById(collection, created.id);
|
|
555
|
+
if (!revisioned) throw new Error("Failed to reload content Draft Revision");
|
|
556
|
+
created = revisioned;
|
|
557
|
+
}
|
|
558
|
+
if (body.bylines !== void 0) {
|
|
559
|
+
const credits = await bylineRepo.setContentBylines(collection, created.id, body.bylines);
|
|
560
|
+
created.primaryBylineId = credits[0]?.byline.translationGroup ?? null;
|
|
561
|
+
}
|
|
536
562
|
await hydrateBylines(trx, collection, created);
|
|
537
|
-
if (body.seo && hasSeo)
|
|
538
|
-
|
|
563
|
+
if (body.seo && hasSeo) {
|
|
564
|
+
const seoRepo = new SeoRepository(trx);
|
|
565
|
+
created.seo = await seoRepo.upsert(collection, created.id, body.seo);
|
|
566
|
+
} else if (hasSeo) created.seo = { ...SEO_DEFAULTS };
|
|
539
567
|
return created;
|
|
540
568
|
});
|
|
541
569
|
return {
|
|
@@ -1,17 +1,17 @@
|
|
|
1
|
-
import { a as __exportAll } from "./runner-
|
|
1
|
+
import { a as __exportAll } from "./runner-BfWbi9YY.mjs";
|
|
2
2
|
import { n as getI18nConfig } from "./config-CVssduLe.mjs";
|
|
3
|
-
import { r as RevisionRepository, t as ContentRepository } from "./content-
|
|
4
|
-
import { t as MediaRepository } from "./media-
|
|
5
|
-
import { t as TaxonomyRepository } from "./taxonomy-
|
|
6
|
-
import { t as withTransaction } from "./transaction-
|
|
7
|
-
import { t as RedirectRepository } from "./redirect-
|
|
8
|
-
import { t as BylineRepository } from "./byline-
|
|
9
|
-
import { a as markContentMediaUsageCollectionStaleSafely } from "./content-refresh-
|
|
10
|
-
import { t as FTSManager } from "./fts-manager-
|
|
11
|
-
import { n as SchemaRegistry } from "./registry-
|
|
12
|
-
import { s as setSiteSettings } from "./settings-
|
|
13
|
-
import { a as validateExternalUrl, r as ssrfSafeFetch } from "./ssrf-
|
|
14
|
-
import { t as validateSeed } from "./validate-
|
|
3
|
+
import { r as RevisionRepository, t as ContentRepository } from "./content-Cbl8HbIR.mjs";
|
|
4
|
+
import { t as MediaRepository } from "./media-B4m-cnmj.mjs";
|
|
5
|
+
import { t as TaxonomyRepository } from "./taxonomy-CCo2plmV.mjs";
|
|
6
|
+
import { t as withTransaction } from "./transaction-0LEAAy8R.mjs";
|
|
7
|
+
import { t as RedirectRepository } from "./redirect-DoDgOWIA.mjs";
|
|
8
|
+
import { t as BylineRepository } from "./byline-BJa1MyKB.mjs";
|
|
9
|
+
import { a as markContentMediaUsageCollectionStaleSafely } from "./content-refresh-BmkilU5M.mjs";
|
|
10
|
+
import { t as FTSManager } from "./fts-manager-Zo9uhGel.mjs";
|
|
11
|
+
import { n as SchemaRegistry } from "./registry-SEJqFliS.mjs";
|
|
12
|
+
import { s as setSiteSettings } from "./settings-SVDAB7_W.mjs";
|
|
13
|
+
import { a as validateExternalUrl, r as ssrfSafeFetch } from "./ssrf-BZHvtFEv.mjs";
|
|
14
|
+
import { t as validateSeed } from "./validate-qKzI3BCv.mjs";
|
|
15
15
|
import { ulid } from "ulidx";
|
|
16
16
|
import { imageSize } from "image-size";
|
|
17
17
|
import mime from "mime/lite";
|
|
@@ -283,7 +283,7 @@ async function applySeed(db, seed, options = {}) {
|
|
|
283
283
|
}
|
|
284
284
|
}
|
|
285
285
|
}
|
|
286
|
-
const { invalidateTaxonomyDefsCache } = await import("./taxonomies-
|
|
286
|
+
const { invalidateTaxonomyDefsCache } = await import("./taxonomies-WVnFki0o.mjs").then((n) => n.u);
|
|
287
287
|
invalidateTaxonomyDefsCache();
|
|
288
288
|
}
|
|
289
289
|
if (includeContent && seed.bylines) {
|
|
@@ -559,9 +559,9 @@ async function applySeed(db, seed, options = {}) {
|
|
|
559
559
|
}
|
|
560
560
|
}
|
|
561
561
|
}
|
|
562
|
-
const { invalidateBylineCache } = await import("./bylines-
|
|
563
|
-
const { invalidateUrlPatternCache } = await import("./query-
|
|
564
|
-
const { invalidateRedirectCache } = await import("./cache-
|
|
562
|
+
const { invalidateBylineCache } = await import("./bylines-kixFoaRV.mjs").then((n) => n.t);
|
|
563
|
+
const { invalidateUrlPatternCache } = await import("./query-C_m8sn-S.mjs").then((n) => n.o);
|
|
564
|
+
const { invalidateRedirectCache } = await import("./cache-fpisdt5Q.mjs").then((n) => n.t);
|
|
565
565
|
invalidateBylineCache();
|
|
566
566
|
invalidateUrlPatternCache();
|
|
567
567
|
invalidateRedirectCache();
|
|
@@ -645,7 +645,7 @@ async function applyContentTaxonomies(db, collectionSlug, contentId, entry, isUp
|
|
|
645
645
|
if (isUpdate) await db.deleteFrom("content_taxonomies").where("collection", "=", collectionSlug).where("entry_id", "=", contentId).execute();
|
|
646
646
|
if (!entry.taxonomies) {
|
|
647
647
|
if (isUpdate) {
|
|
648
|
-
const { invalidateTermCache } = await import("./taxonomies-
|
|
648
|
+
const { invalidateTermCache } = await import("./taxonomies-WVnFki0o.mjs").then((n) => n.u);
|
|
649
649
|
invalidateTermCache();
|
|
650
650
|
}
|
|
651
651
|
return;
|
|
@@ -657,7 +657,7 @@ async function applyContentTaxonomies(db, collectionSlug, contentId, entry, isUp
|
|
|
657
657
|
if (term) await termRepo.attachToEntry(collectionSlug, contentId, term.id);
|
|
658
658
|
}
|
|
659
659
|
}
|
|
660
|
-
const { invalidateTermCache } = await import("./taxonomies-
|
|
660
|
+
const { invalidateTermCache } = await import("./taxonomies-WVnFki0o.mjs").then((n) => n.u);
|
|
661
661
|
invalidateTermCache();
|
|
662
662
|
}
|
|
663
663
|
/**
|
package/dist/astro/index.d.mts
CHANGED
|
@@ -1,15 +1,14 @@
|
|
|
1
|
-
import { i as ContentItem } from "../types-
|
|
2
|
-
import {
|
|
3
|
-
import "../types-
|
|
4
|
-
import
|
|
5
|
-
import "../
|
|
6
|
-
import
|
|
7
|
-
import "../
|
|
8
|
-
import "../
|
|
1
|
+
import { i as ContentItem } from "../types-GtwhHAg8.mjs";
|
|
2
|
+
import { ao as getStoredConfig, co as StorageDescriptor, es as MediaItem, oo as LocalStorageConfig, ro as DinewayConfig, so as S3StorageConfig, vt as ResolvedPlugin } from "../types-CJezJeNE.mjs";
|
|
3
|
+
import "../types-BFeoAIHl.mjs";
|
|
4
|
+
import "../runner-Bcy5w0vj.mjs";
|
|
5
|
+
import "../index-DybFmYtZ.mjs";
|
|
6
|
+
import "../types-S9VIopdY.mjs";
|
|
7
|
+
import { i as ObjectCacheRuntimeConfig, r as ObjectCacheDescriptor } from "../types-CDcuRd4z.mjs";
|
|
8
|
+
import "../validate-YiX3rly5.mjs";
|
|
9
|
+
import "../byline-fields-DxMpdtsZ.mjs";
|
|
10
|
+
import "../types-BsTXSvKG.mjs";
|
|
9
11
|
import { DinewayHandlers, DinewayManifest, ManifestCollection } from "./types.mjs";
|
|
10
|
-
import "../byline-fields-CUvbslGc.mjs";
|
|
11
|
-
import "../types-CDpH6MA4.mjs";
|
|
12
|
-
import "../validate-CZvb-BKB.mjs";
|
|
13
12
|
import { AstroIntegration } from "astro";
|
|
14
13
|
|
|
15
14
|
//#region src/astro/storage/adapters.d.ts
|