dineway 0.2.44 → 0.2.45
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/api/route-utils.d.mts +1 -1
- package/dist/api/schemas/index.d.mts +1 -1
- package/dist/{api-Dz33hkaL.mjs → api-CB2KRW3W.mjs} +1 -1
- package/dist/astro/index.d.mts +1 -1
- package/dist/astro/index.mjs +1 -1
- package/dist/astro/middleware/auth.d.mts +1 -1
- package/dist/astro/middleware.mjs +2 -2
- package/dist/astro/routes/api/admin/comments/_id_/status.mjs +1 -1
- package/dist/astro/routes/api/admin/comments/_id_.mjs +1 -1
- package/dist/astro/routes/api/admin/comments/bulk.mjs +1 -1
- package/dist/astro/routes/api/admin/comments/counts.mjs +1 -1
- package/dist/astro/routes/api/admin/comments/index.mjs +1 -1
- package/dist/astro/routes/api/admin/context/_id_/history.mjs +1 -1
- package/dist/astro/routes/api/admin/context/_id_/index.mjs +1 -1
- package/dist/astro/routes/api/admin/context/_id_/review.mjs +2 -2
- package/dist/astro/routes/api/admin/context/_id_/supersede.mjs +2 -2
- package/dist/astro/routes/api/admin/context/diff.mjs +1 -1
- package/dist/astro/routes/api/admin/context/index.mjs +2 -2
- package/dist/astro/routes/api/admin/context/stale.mjs +1 -1
- package/dist/astro/routes/api/admin/plugins/_id_/disable.mjs +1 -1
- package/dist/astro/routes/api/admin/plugins/_id_/enable.mjs +1 -1
- package/dist/astro/routes/api/admin/plugins/_id_/index.mjs +1 -1
- package/dist/astro/routes/api/admin/plugins/_id_/uninstall.mjs +1 -1
- package/dist/astro/routes/api/admin/plugins/_id_/update.mjs +1 -1
- package/dist/astro/routes/api/admin/plugins/index.mjs +1 -1
- package/dist/astro/routes/api/admin/plugins/marketplace/_id_/index.mjs +1 -1
- package/dist/astro/routes/api/admin/plugins/marketplace/_id_/install.mjs +1 -1
- package/dist/astro/routes/api/admin/plugins/marketplace/index.mjs +1 -1
- package/dist/astro/routes/api/admin/plugins/updates.mjs +1 -1
- package/dist/astro/routes/api/admin/themes/marketplace/_id_/index.mjs +1 -1
- package/dist/astro/routes/api/admin/themes/marketplace/index.mjs +1 -1
- package/dist/astro/routes/api/comments/_collection_/_contentId_/index.d.mts +1 -1
- package/dist/astro/routes/api/comments/_collection_/_contentId_/index.mjs +1 -1
- package/dist/astro/routes/api/comments/_collection_/_contentId_/reactions.mjs +1 -1
- package/dist/astro/routes/api/health.mjs +1 -1
- package/dist/astro/routes/api/import/wordpress/execute.d.mts +1 -1
- package/dist/astro/routes/api/import/wordpress/media.d.mts +1 -1
- package/dist/astro/routes/api/import/wordpress/rewrite-urls.d.mts +1 -1
- package/dist/astro/routes/api/import/wordpress-plugin/execute.d.mts +1 -1
- package/dist/astro/routes/api/manifest.mjs +1 -1
- package/dist/astro/routes/api/mcp.mjs +3 -3
- package/dist/astro/routes/api/openapi.json.mjs +1 -1
- package/dist/astro/routes/api/schema/collections/_slug_/fields/_fieldSlug_.mjs +1 -1
- package/dist/astro/routes/api/schema/collections/_slug_/fields/index.mjs +1 -1
- package/dist/astro/routes/api/schema/collections/_slug_/fields/reorder.mjs +1 -1
- package/dist/astro/routes/api/schema/collections/_slug_/index.mjs +1 -1
- package/dist/astro/routes/api/schema/collections/index.mjs +1 -1
- package/dist/astro/routes/api/schema/orphans/_slug_.mjs +1 -1
- package/dist/astro/routes/api/schema/orphans/index.mjs +1 -1
- package/dist/astro/routes/api/well-known/auth.mjs +1 -1
- package/dist/astro/types.d.mts +1 -1
- package/dist/{byline-fields-LAgJ9PSU.d.mts → byline-fields-Dyts_tJ5.d.mts} +7 -7
- package/dist/cli/index.mjs +7 -5
- package/dist/cli/plugin-kit.d.mts +1 -1
- package/dist/cli/plugin-kit.mjs +1 -1
- package/dist/client/index.d.mts +1 -1
- package/dist/client/index.mjs +2 -2
- package/dist/content-storage/index.d.mts +10 -2
- package/dist/content-storage/index.mjs +2 -2
- package/dist/database/d1/index.d.mts +1 -1
- package/dist/index.d.mts +1 -1
- package/dist/index.mjs +1 -1
- package/dist/media/local-runtime.d.mts +1 -1
- package/dist/{migration-C9nW8q7f.mjs → migration-B9FyV3ET.mjs} +62 -22
- package/dist/page/index.d.mts +1 -1
- package/dist/plugin-utils.d.mts +1 -1
- package/dist/plugins/adapt-sandbox-entry.d.mts +1 -1
- package/dist/runtime.d.mts +1 -1
- package/dist/ui/server-runtime.d.mts +1 -1
- package/dist/version-CtBv2gNa.mjs +6 -0
- package/package.json +3 -3
- package/dist/version-DU2EdwT0.mjs +0 -6
- /package/dist/{comments-CaCApohz.mjs → comments-BFXekTqN.mjs} +0 -0
- /package/dist/{context-DIiMrXaP.mjs → context-CjeMWXtq.mjs} +0 -0
- /package/dist/{context-route-helpers-CUrRB8qt.mjs → context-route-helpers-CGA2fsiz.mjs} +0 -0
- /package/dist/{forgeway-account-B-z2_ZOQ.mjs → forgeway-account-CVSG1imu.mjs} +0 -0
- /package/dist/{output-4F_wq70p.mjs → output-TGkiEMQF.mjs} +0 -0
- /package/dist/{portable-text-DeJeHr_T.mjs → portable-text-CJ9v0T_j.mjs} +0 -0
- /package/dist/{transport-DHTeMsJG.mjs → transport-C_bzEHB4.mjs} +0 -0
|
@@ -10,7 +10,7 @@ import "../hook-events-lN-kz-4_.mjs";
|
|
|
10
10
|
import "../scheduled-publish-7kZkKw7t.mjs";
|
|
11
11
|
import "../public-url-CvNSyMJJ.mjs";
|
|
12
12
|
import "../validate-CleBZbkv.mjs";
|
|
13
|
-
import "../byline-fields-
|
|
13
|
+
import "../byline-fields-Dyts_tJ5.mjs";
|
|
14
14
|
import "../types-BuplUVZ4.mjs";
|
|
15
15
|
import { t as getPublicOrigin } from "../public-url-DLcDMtBJ.mjs";
|
|
16
16
|
import { Kysely } from "kysely";
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { $ as settingsUpdateBody, $n as contentResponseSchema, $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 contentPublicationReceiptSchema, 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 contentReleaseReadinessResponseSchema, 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 contentPublishResponseSchema, Xt as contextEntryReviewBody, Y as searchRebuildBody, Yn as contentPublishBody, Yt as contextEntryListQuery, Z as searchResultSchema, Zn as contentReleaseReadinessQuery, Zt as contextEntryStaleQuery, _ as notFoundListResponseSchema, _n as fieldListResponseSchema, _r as localeFilterQuery, _t as updateTermBody, a as bylineFieldUpdateBody, an as commentStatusBody, ar as contentTranslationsResponseSchema, at as updateSectionBody, b as notFoundSummaryResponseSchema, bn as fieldSchema, br as slugPattern, bt as menuItemSchema, c as bylineCreditSchema, cn as publicCommentListResponseSchema, cr as trashedContentItemSchema, ct as taxonomyDefSchema, d as bylineUpdateBody, dn as collectionListResponseSchema, dr as apiErrorSchema, dt as termGetResponseSchema, en as commentBulkBody, er as contentScheduleBody, et as siteSettingsSchema, f as bylinesListQuery, fn as collectionResponseSchema, fr as countResponseSchema, ft as termListResponseSchema, g as notFoundListQuery, gn as createFieldBody, gr as localeCode, gt as termWithCountSchema, h as notFoundEntrySchema, hn as createCollectionBody, hr as httpUrl, ht as termTranslationsSchema, i as bylineFieldReorderBody, in as commentSchema, ir as contentTranslationSchema, 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 trashedContentListResponseSchema, lt as taxonomyDefTranslationsSchema, m as createRedirectBody, mn as collectionWithFieldsResponseSchema, mr as deleteResponseSchema, mt as termSchema, n as bylineFieldDefinitionSchema, nn as commentCountsResponseSchema, nr as contentSeoSchema, nt as sectionListResponseSchema, o as bylineFieldUsageResponseSchema, on as createCommentBody, or as contentTrashQuery, ot as createTaxonomyDefBody, p as contentBylineInputSchema, pn as collectionSchema, pr as cursorPaginationQuery, pt as termResponseSchema, q as searchEnableBody, qn as contentPreviewUrlBody, qt as contextEntryCreateBody, r as bylineFieldListResponseSchema, rn as commentListQuery, rr as contentTermsBody, rt as sectionSchema, s as bylineCreateBody, sn as createReactionBody, sr as contentUpdateBody, st as createTermBody, t as bylineFieldCreateBody, tn as commentBulkResponseSchema, tr as contentSeoInput, tt as createSectionBody, u as bylineSummarySchema, un as collectionGetQuery, ur as VALID_ROLE_LEVELS, ut as taxonomyListResponseSchema, v as notFoundPruneBody, vn as fieldReorderBody, vr as offsetPaginationQuery, vt as createMenuBody, w as redirectsListQuery, wn as schemaExportQuery, wt as menuTranslationsSchema, x as notFoundSummarySchema, xn as orphanRegisterBody, xr as successEnvelope, xt as menuItemTypeEnum, y as notFoundSummaryQuery, yn as fieldResponseSchema, yr as roleLevel, yt as createMenuItemBody, z as userUpdateBody, zn as mediaUploadUrlResponseSchema, zt as signupCompleteBody } from "../../byline-fields-
|
|
1
|
+
import { $ as settingsUpdateBody, $n as contentResponseSchema, $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 contentPublicationReceiptSchema, 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 contentReleaseReadinessResponseSchema, 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 contentPublishResponseSchema, Xt as contextEntryReviewBody, Y as searchRebuildBody, Yn as contentPublishBody, Yt as contextEntryListQuery, Z as searchResultSchema, Zn as contentReleaseReadinessQuery, Zt as contextEntryStaleQuery, _ as notFoundListResponseSchema, _n as fieldListResponseSchema, _r as localeFilterQuery, _t as updateTermBody, a as bylineFieldUpdateBody, an as commentStatusBody, ar as contentTranslationsResponseSchema, at as updateSectionBody, b as notFoundSummaryResponseSchema, bn as fieldSchema, br as slugPattern, bt as menuItemSchema, c as bylineCreditSchema, cn as publicCommentListResponseSchema, cr as trashedContentItemSchema, ct as taxonomyDefSchema, d as bylineUpdateBody, dn as collectionListResponseSchema, dr as apiErrorSchema, dt as termGetResponseSchema, en as commentBulkBody, er as contentScheduleBody, et as siteSettingsSchema, f as bylinesListQuery, fn as collectionResponseSchema, fr as countResponseSchema, ft as termListResponseSchema, g as notFoundListQuery, gn as createFieldBody, gr as localeCode, gt as termWithCountSchema, h as notFoundEntrySchema, hn as createCollectionBody, hr as httpUrl, ht as termTranslationsSchema, i as bylineFieldReorderBody, in as commentSchema, ir as contentTranslationSchema, 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 trashedContentListResponseSchema, lt as taxonomyDefTranslationsSchema, m as createRedirectBody, mn as collectionWithFieldsResponseSchema, mr as deleteResponseSchema, mt as termSchema, n as bylineFieldDefinitionSchema, nn as commentCountsResponseSchema, nr as contentSeoSchema, nt as sectionListResponseSchema, o as bylineFieldUsageResponseSchema, on as createCommentBody, or as contentTrashQuery, ot as createTaxonomyDefBody, p as contentBylineInputSchema, pn as collectionSchema, pr as cursorPaginationQuery, pt as termResponseSchema, q as searchEnableBody, qn as contentPreviewUrlBody, qt as contextEntryCreateBody, r as bylineFieldListResponseSchema, rn as commentListQuery, rr as contentTermsBody, rt as sectionSchema, s as bylineCreateBody, sn as createReactionBody, sr as contentUpdateBody, st as createTermBody, t as bylineFieldCreateBody, tn as commentBulkResponseSchema, tr as contentSeoInput, tt as createSectionBody, u as bylineSummarySchema, un as collectionGetQuery, ur as VALID_ROLE_LEVELS, ut as taxonomyListResponseSchema, v as notFoundPruneBody, vn as fieldReorderBody, vr as offsetPaginationQuery, vt as createMenuBody, w as redirectsListQuery, wn as schemaExportQuery, wt as menuTranslationsSchema, x as notFoundSummarySchema, xn as orphanRegisterBody, xr as successEnvelope, xt as menuItemTypeEnum, y as notFoundSummaryQuery, yn as fieldResponseSchema, yr as roleLevel, yt as createMenuItemBody, z as userUpdateBody, zn as mediaUploadUrlResponseSchema, zt as signupCompleteBody } from "../../byline-fields-Dyts_tJ5.mjs";
|
|
2
2
|
import { atprotoLoginBody, setupAdminBody, setupAdminVerifyBody, setupAtprotoAdminBody, setupBody } from "./setup.mjs";
|
|
3
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, contentPublicationReceiptSchema, contentPublishBody, contentPublishResponseSchema, contentReleaseReadinessQuery, contentReleaseReadinessResponseSchema, 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 };
|
|
@@ -12,7 +12,7 @@ import { n as prepareContentWrite } from "./content-write-eOTKAf2d.mjs";
|
|
|
12
12
|
import { u as PluginStateRepository } from "./briefing-9YqN5XoW.mjs";
|
|
13
13
|
import { n as hashString } from "./hash-BinU5FKm.mjs";
|
|
14
14
|
import { n as SchemaRegistry, t as SchemaError } from "./registry-3xWpSYNI.mjs";
|
|
15
|
-
import { n as VERSION, t as COMMIT } from "./version-
|
|
15
|
+
import { n as VERSION, t as COMMIT } from "./version-CtBv2gNa.mjs";
|
|
16
16
|
import { a as reconcileManifestAccess, i as pluginManifestSchema, r as normalizeManifestRoute } from "./manifest-schema-B_rWNZn5.mjs";
|
|
17
17
|
import { t as DinewayStorageError } from "./types-PX2c4KA4.mjs";
|
|
18
18
|
import { sql } from "kysely";
|
package/dist/astro/index.d.mts
CHANGED
|
@@ -12,7 +12,7 @@ import "../hook-events-lN-kz-4_.mjs";
|
|
|
12
12
|
import "../scheduled-publish-7kZkKw7t.mjs";
|
|
13
13
|
import "../public-url-CvNSyMJJ.mjs";
|
|
14
14
|
import "../validate-CleBZbkv.mjs";
|
|
15
|
-
import "../byline-fields-
|
|
15
|
+
import "../byline-fields-Dyts_tJ5.mjs";
|
|
16
16
|
import "../types-BuplUVZ4.mjs";
|
|
17
17
|
import { DinewayHandlers, DinewayManifest, ManifestCollection } from "./types.mjs";
|
|
18
18
|
import { AstroIntegration } from "astro";
|
package/dist/astro/index.mjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { a as validateContentStorage } from "../config---A7Bg68.mjs";
|
|
2
2
|
import { t as INTERNAL_MEDIA_PREFIX } from "../normalize-DrmlLn40.mjs";
|
|
3
|
-
import { n as VERSION, t as COMMIT } from "../version-
|
|
3
|
+
import { n as VERSION, t as COMMIT } from "../version-CtBv2gNa.mjs";
|
|
4
4
|
import { t as defaultSeed } from "../default-BxRRjN_x.mjs";
|
|
5
5
|
import { n as validateAllowedOrigins, r as validateOriginShape } from "../allowed-origins-CQyKpMbJ.mjs";
|
|
6
6
|
import { r as writeWorkersBuildMetadata } from "../workers-build-Bd4w1aw9.mjs";
|
|
@@ -10,7 +10,7 @@ import "../../hook-events-lN-kz-4_.mjs";
|
|
|
10
10
|
import "../../scheduled-publish-7kZkKw7t.mjs";
|
|
11
11
|
import "../../public-url-CvNSyMJJ.mjs";
|
|
12
12
|
import "../../validate-CleBZbkv.mjs";
|
|
13
|
-
import "../../byline-fields-
|
|
13
|
+
import "../../byline-fields-Dyts_tJ5.mjs";
|
|
14
14
|
import "../../types-BuplUVZ4.mjs";
|
|
15
15
|
import { DinewayHandlers } from "../types.mjs";
|
|
16
16
|
import { User } from "@dineway-ai/auth";
|
|
@@ -64,8 +64,8 @@ import "../submission-C7tI1Frs.mjs";
|
|
|
64
64
|
import "../dashboard-C_x93lbv.mjs";
|
|
65
65
|
import "../briefing-CXQA-DpY.mjs";
|
|
66
66
|
import "../review-requests-BQZp6VaG.mjs";
|
|
67
|
-
import { n as VERSION, t as COMMIT } from "../version-
|
|
68
|
-
import { A as handleRevisionGet, D as handleMediaGet, E as handleMediaDelete, M as handleRevisionRestore, O as handleMediaList, T as handleMediaCreate, d as createPluginBundleStore, j as handleRevisionList, k as handleMediaUpdate } from "../api-
|
|
67
|
+
import { n as VERSION, t as COMMIT } from "../version-CtBv2gNa.mjs";
|
|
68
|
+
import { A as handleRevisionGet, D as handleMediaGet, E as handleMediaDelete, M as handleRevisionRestore, O as handleMediaList, T as handleMediaCreate, d as createPluginBundleStore, j as handleRevisionList, k as handleMediaUpdate } from "../api-CB2KRW3W.mjs";
|
|
69
69
|
import "../query-D0qnvePL.mjs";
|
|
70
70
|
import "../zod-generator-DBu-v5Zy.mjs";
|
|
71
71
|
import "../schema-2x9K4t9t.mjs";
|
|
@@ -17,7 +17,7 @@ import "../../../../../../byline-fields-Bnw5NflJ.mjs";
|
|
|
17
17
|
import "../../../../../../status-CDqWWt6i.mjs";
|
|
18
18
|
import "../../../../../../api/schemas/index.mjs";
|
|
19
19
|
import { n as requirePerm } from "../../../../../../authorize-Cg8wByla.mjs";
|
|
20
|
-
import { a as handleCommentGet } from "../../../../../../comments-
|
|
20
|
+
import { a as handleCommentGet } from "../../../../../../comments-BFXekTqN.mjs";
|
|
21
21
|
import { t as getSiteBaseUrl } from "../../../../../../site-url-5O6ra5VE.mjs";
|
|
22
22
|
import { i as sendCommentNotification, r as lookupContentAuthor, t as moderateComment } from "../../../../../../service-Y-ZEhFVM.mjs";
|
|
23
23
|
|
|
@@ -7,7 +7,7 @@ import "../../../../../object-cache-qP60KjUp.mjs";
|
|
|
7
7
|
import "../../../../../comment-CbGlRPPS.mjs";
|
|
8
8
|
import { a as unwrapResult, i as requireDb, r as handleError, t as apiError } from "../../../../../error-HuAkl_6r.mjs";
|
|
9
9
|
import { n as requirePerm } from "../../../../../authorize-Cg8wByla.mjs";
|
|
10
|
-
import { a as handleCommentGet, i as handleCommentDelete } from "../../../../../comments-
|
|
10
|
+
import { a as handleCommentGet, i as handleCommentDelete } from "../../../../../comments-BFXekTqN.mjs";
|
|
11
11
|
|
|
12
12
|
//#region src/astro/routes/api/admin/comments/[id].ts
|
|
13
13
|
const prerender = false;
|
|
@@ -16,7 +16,7 @@ import "../../../../../byline-fields-Bnw5NflJ.mjs";
|
|
|
16
16
|
import "../../../../../status-CDqWWt6i.mjs";
|
|
17
17
|
import "../../../../../api/schemas/index.mjs";
|
|
18
18
|
import { n as requirePerm } from "../../../../../authorize-Cg8wByla.mjs";
|
|
19
|
-
import { n as handleCommentBulk } from "../../../../../comments-
|
|
19
|
+
import { n as handleCommentBulk } from "../../../../../comments-BFXekTqN.mjs";
|
|
20
20
|
|
|
21
21
|
//#region src/astro/routes/api/admin/comments/bulk.ts
|
|
22
22
|
const prerender = false;
|
|
@@ -7,7 +7,7 @@ import "../../../../../object-cache-qP60KjUp.mjs";
|
|
|
7
7
|
import "../../../../../comment-CbGlRPPS.mjs";
|
|
8
8
|
import { a as unwrapResult, i as requireDb, r as handleError } from "../../../../../error-HuAkl_6r.mjs";
|
|
9
9
|
import { n as requirePerm } from "../../../../../authorize-Cg8wByla.mjs";
|
|
10
|
-
import { r as handleCommentCounts } from "../../../../../comments-
|
|
10
|
+
import { r as handleCommentCounts } from "../../../../../comments-BFXekTqN.mjs";
|
|
11
11
|
|
|
12
12
|
//#region src/astro/routes/api/admin/comments/counts.ts
|
|
13
13
|
const prerender = false;
|
|
@@ -16,7 +16,7 @@ import "../../../../../byline-fields-Bnw5NflJ.mjs";
|
|
|
16
16
|
import "../../../../../status-CDqWWt6i.mjs";
|
|
17
17
|
import "../../../../../api/schemas/index.mjs";
|
|
18
18
|
import { n as requirePerm } from "../../../../../authorize-Cg8wByla.mjs";
|
|
19
|
-
import { o as handleCommentInbox } from "../../../../../comments-
|
|
19
|
+
import { o as handleCommentInbox } from "../../../../../comments-BFXekTqN.mjs";
|
|
20
20
|
|
|
21
21
|
//#region src/astro/routes/api/admin/comments/index.ts
|
|
22
22
|
const prerender = false;
|
|
@@ -49,7 +49,7 @@ import "../../../../../../activity-events-D4JfWJFI.mjs";
|
|
|
49
49
|
import "../../../../../../utils-WY63JOPB.mjs";
|
|
50
50
|
import "../../../../../../search--Qmm2s6n.mjs";
|
|
51
51
|
import { n as requirePerm } from "../../../../../../authorize-Cg8wByla.mjs";
|
|
52
|
-
import { i as handleContextEntryHistory } from "../../../../../../context-
|
|
52
|
+
import { i as handleContextEntryHistory } from "../../../../../../context-CjeMWXtq.mjs";
|
|
53
53
|
|
|
54
54
|
//#region src/astro/routes/api/admin/context/[id]/history.ts
|
|
55
55
|
const prerender = false;
|
|
@@ -49,7 +49,7 @@ import "../../../../../../activity-events-D4JfWJFI.mjs";
|
|
|
49
49
|
import "../../../../../../utils-WY63JOPB.mjs";
|
|
50
50
|
import "../../../../../../search--Qmm2s6n.mjs";
|
|
51
51
|
import { n as requirePerm } from "../../../../../../authorize-Cg8wByla.mjs";
|
|
52
|
-
import { r as handleContextEntryGet } from "../../../../../../context-
|
|
52
|
+
import { r as handleContextEntryGet } from "../../../../../../context-CjeMWXtq.mjs";
|
|
53
53
|
|
|
54
54
|
//#region src/astro/routes/api/admin/context/[id]/index.ts
|
|
55
55
|
const prerender = false;
|
|
@@ -55,8 +55,8 @@ import "../../../../../../activity-events-D4JfWJFI.mjs";
|
|
|
55
55
|
import "../../../../../../utils-WY63JOPB.mjs";
|
|
56
56
|
import "../../../../../../search--Qmm2s6n.mjs";
|
|
57
57
|
import { n as requirePerm } from "../../../../../../authorize-Cg8wByla.mjs";
|
|
58
|
-
import { o as handleContextEntryReview } from "../../../../../../context-
|
|
59
|
-
import { n as resolveContextRouteActor, t as logContextRouteActivity } from "../../../../../../context-route-helpers-
|
|
58
|
+
import { o as handleContextEntryReview } from "../../../../../../context-CjeMWXtq.mjs";
|
|
59
|
+
import { n as resolveContextRouteActor, t as logContextRouteActivity } from "../../../../../../context-route-helpers-CGA2fsiz.mjs";
|
|
60
60
|
|
|
61
61
|
//#region src/astro/routes/api/admin/context/[id]/review.ts
|
|
62
62
|
const prerender = false;
|
|
@@ -55,8 +55,8 @@ import "../../../../../../activity-events-D4JfWJFI.mjs";
|
|
|
55
55
|
import "../../../../../../utils-WY63JOPB.mjs";
|
|
56
56
|
import "../../../../../../search--Qmm2s6n.mjs";
|
|
57
57
|
import { n as requirePerm } from "../../../../../../authorize-Cg8wByla.mjs";
|
|
58
|
-
import { c as handleContextEntrySupersede } from "../../../../../../context-
|
|
59
|
-
import { n as resolveContextRouteActor, t as logContextRouteActivity } from "../../../../../../context-route-helpers-
|
|
58
|
+
import { c as handleContextEntrySupersede } from "../../../../../../context-CjeMWXtq.mjs";
|
|
59
|
+
import { n as resolveContextRouteActor, t as logContextRouteActivity } from "../../../../../../context-route-helpers-CGA2fsiz.mjs";
|
|
60
60
|
|
|
61
61
|
//#region src/astro/routes/api/admin/context/[id]/supersede.ts
|
|
62
62
|
const prerender = false;
|
|
@@ -55,7 +55,7 @@ import "../../../../../activity-events-D4JfWJFI.mjs";
|
|
|
55
55
|
import "../../../../../utils-WY63JOPB.mjs";
|
|
56
56
|
import "../../../../../search--Qmm2s6n.mjs";
|
|
57
57
|
import { n as requirePerm } from "../../../../../authorize-Cg8wByla.mjs";
|
|
58
|
-
import { n as handleContextEntryDiff } from "../../../../../context-
|
|
58
|
+
import { n as handleContextEntryDiff } from "../../../../../context-CjeMWXtq.mjs";
|
|
59
59
|
|
|
60
60
|
//#region src/astro/routes/api/admin/context/diff.ts
|
|
61
61
|
const prerender = false;
|
|
@@ -55,8 +55,8 @@ import "../../../../../activity-events-D4JfWJFI.mjs";
|
|
|
55
55
|
import "../../../../../utils-WY63JOPB.mjs";
|
|
56
56
|
import "../../../../../search--Qmm2s6n.mjs";
|
|
57
57
|
import { n as requirePerm } from "../../../../../authorize-Cg8wByla.mjs";
|
|
58
|
-
import { a as handleContextEntryList, t as handleContextEntryCreate } from "../../../../../context-
|
|
59
|
-
import { n as resolveContextRouteActor, t as logContextRouteActivity } from "../../../../../context-route-helpers-
|
|
58
|
+
import { a as handleContextEntryList, t as handleContextEntryCreate } from "../../../../../context-CjeMWXtq.mjs";
|
|
59
|
+
import { n as resolveContextRouteActor, t as logContextRouteActivity } from "../../../../../context-route-helpers-CGA2fsiz.mjs";
|
|
60
60
|
|
|
61
61
|
//#region src/astro/routes/api/admin/context/index.ts
|
|
62
62
|
const prerender = false;
|
|
@@ -55,7 +55,7 @@ import "../../../../../activity-events-D4JfWJFI.mjs";
|
|
|
55
55
|
import "../../../../../utils-WY63JOPB.mjs";
|
|
56
56
|
import "../../../../../search--Qmm2s6n.mjs";
|
|
57
57
|
import { n as requirePerm } from "../../../../../authorize-Cg8wByla.mjs";
|
|
58
|
-
import { s as handleContextEntryStale } from "../../../../../context-
|
|
58
|
+
import { s as handleContextEntryStale } from "../../../../../context-CjeMWXtq.mjs";
|
|
59
59
|
|
|
60
60
|
//#region src/astro/routes/api/admin/context/stale.ts
|
|
61
61
|
const prerender = false;
|
|
@@ -49,7 +49,7 @@ import "../../../../../../submission-C7tI1Frs.mjs";
|
|
|
49
49
|
import "../../../../../../dashboard-C_x93lbv.mjs";
|
|
50
50
|
import "../../../../../../briefing-CXQA-DpY.mjs";
|
|
51
51
|
import "../../../../../../review-requests-BQZp6VaG.mjs";
|
|
52
|
-
import "../../../../../../api-
|
|
52
|
+
import "../../../../../../api-CB2KRW3W.mjs";
|
|
53
53
|
import "../../../../../../query-D0qnvePL.mjs";
|
|
54
54
|
import "../../../../../../zod-generator-DBu-v5Zy.mjs";
|
|
55
55
|
import "../../../../../../schema-2x9K4t9t.mjs";
|
|
@@ -49,7 +49,7 @@ import "../../../../../../submission-C7tI1Frs.mjs";
|
|
|
49
49
|
import "../../../../../../dashboard-C_x93lbv.mjs";
|
|
50
50
|
import "../../../../../../briefing-CXQA-DpY.mjs";
|
|
51
51
|
import "../../../../../../review-requests-BQZp6VaG.mjs";
|
|
52
|
-
import "../../../../../../api-
|
|
52
|
+
import "../../../../../../api-CB2KRW3W.mjs";
|
|
53
53
|
import "../../../../../../query-D0qnvePL.mjs";
|
|
54
54
|
import "../../../../../../zod-generator-DBu-v5Zy.mjs";
|
|
55
55
|
import "../../../../../../schema-2x9K4t9t.mjs";
|
|
@@ -47,7 +47,7 @@ import "../../../../../../submission-C7tI1Frs.mjs";
|
|
|
47
47
|
import "../../../../../../dashboard-C_x93lbv.mjs";
|
|
48
48
|
import "../../../../../../briefing-CXQA-DpY.mjs";
|
|
49
49
|
import "../../../../../../review-requests-BQZp6VaG.mjs";
|
|
50
|
-
import "../../../../../../api-
|
|
50
|
+
import "../../../../../../api-CB2KRW3W.mjs";
|
|
51
51
|
import "../../../../../../query-D0qnvePL.mjs";
|
|
52
52
|
import "../../../../../../zod-generator-DBu-v5Zy.mjs";
|
|
53
53
|
import "../../../../../../schema-2x9K4t9t.mjs";
|
|
@@ -49,7 +49,7 @@ import "../../../../../../submission-C7tI1Frs.mjs";
|
|
|
49
49
|
import "../../../../../../dashboard-C_x93lbv.mjs";
|
|
50
50
|
import "../../../../../../briefing-CXQA-DpY.mjs";
|
|
51
51
|
import "../../../../../../review-requests-BQZp6VaG.mjs";
|
|
52
|
-
import { a as handleMarketplaceUninstall } from "../../../../../../api-
|
|
52
|
+
import { a as handleMarketplaceUninstall } from "../../../../../../api-CB2KRW3W.mjs";
|
|
53
53
|
import "../../../../../../query-D0qnvePL.mjs";
|
|
54
54
|
import "../../../../../../zod-generator-DBu-v5Zy.mjs";
|
|
55
55
|
import "../../../../../../schema-2x9K4t9t.mjs";
|
|
@@ -49,7 +49,7 @@ import "../../../../../../submission-C7tI1Frs.mjs";
|
|
|
49
49
|
import "../../../../../../dashboard-C_x93lbv.mjs";
|
|
50
50
|
import "../../../../../../briefing-CXQA-DpY.mjs";
|
|
51
51
|
import "../../../../../../review-requests-BQZp6VaG.mjs";
|
|
52
|
-
import { c as handleMarketplaceUpdatePreview, o as handleMarketplaceUpdate } from "../../../../../../api-
|
|
52
|
+
import { c as handleMarketplaceUpdatePreview, o as handleMarketplaceUpdate } from "../../../../../../api-CB2KRW3W.mjs";
|
|
53
53
|
import "../../../../../../query-D0qnvePL.mjs";
|
|
54
54
|
import "../../../../../../zod-generator-DBu-v5Zy.mjs";
|
|
55
55
|
import "../../../../../../schema-2x9K4t9t.mjs";
|
|
@@ -47,7 +47,7 @@ import "../../../../../submission-C7tI1Frs.mjs";
|
|
|
47
47
|
import "../../../../../dashboard-C_x93lbv.mjs";
|
|
48
48
|
import "../../../../../briefing-CXQA-DpY.mjs";
|
|
49
49
|
import "../../../../../review-requests-BQZp6VaG.mjs";
|
|
50
|
-
import "../../../../../api-
|
|
50
|
+
import "../../../../../api-CB2KRW3W.mjs";
|
|
51
51
|
import "../../../../../query-D0qnvePL.mjs";
|
|
52
52
|
import "../../../../../zod-generator-DBu-v5Zy.mjs";
|
|
53
53
|
import "../../../../../schema-2x9K4t9t.mjs";
|
|
@@ -47,7 +47,7 @@ import "../../../../../../../submission-C7tI1Frs.mjs";
|
|
|
47
47
|
import "../../../../../../../dashboard-C_x93lbv.mjs";
|
|
48
48
|
import "../../../../../../../briefing-CXQA-DpY.mjs";
|
|
49
49
|
import "../../../../../../../review-requests-BQZp6VaG.mjs";
|
|
50
|
-
import { t as handleMarketplaceGetPlugin } from "../../../../../../../api-
|
|
50
|
+
import { t as handleMarketplaceGetPlugin } from "../../../../../../../api-CB2KRW3W.mjs";
|
|
51
51
|
import "../../../../../../../query-D0qnvePL.mjs";
|
|
52
52
|
import "../../../../../../../zod-generator-DBu-v5Zy.mjs";
|
|
53
53
|
import "../../../../../../../schema-2x9K4t9t.mjs";
|
|
@@ -49,7 +49,7 @@ import "../../../../../../../submission-C7tI1Frs.mjs";
|
|
|
49
49
|
import "../../../../../../../dashboard-C_x93lbv.mjs";
|
|
50
50
|
import "../../../../../../../briefing-CXQA-DpY.mjs";
|
|
51
51
|
import "../../../../../../../review-requests-BQZp6VaG.mjs";
|
|
52
|
-
import { n as handleMarketplaceInstall, r as handleMarketplaceInstallPreview } from "../../../../../../../api-
|
|
52
|
+
import { n as handleMarketplaceInstall, r as handleMarketplaceInstallPreview } from "../../../../../../../api-CB2KRW3W.mjs";
|
|
53
53
|
import "../../../../../../../query-D0qnvePL.mjs";
|
|
54
54
|
import "../../../../../../../zod-generator-DBu-v5Zy.mjs";
|
|
55
55
|
import "../../../../../../../schema-2x9K4t9t.mjs";
|
|
@@ -47,7 +47,7 @@ import "../../../../../../submission-C7tI1Frs.mjs";
|
|
|
47
47
|
import "../../../../../../dashboard-C_x93lbv.mjs";
|
|
48
48
|
import "../../../../../../briefing-CXQA-DpY.mjs";
|
|
49
49
|
import "../../../../../../review-requests-BQZp6VaG.mjs";
|
|
50
|
-
import { i as handleMarketplaceSearch } from "../../../../../../api-
|
|
50
|
+
import { i as handleMarketplaceSearch } from "../../../../../../api-CB2KRW3W.mjs";
|
|
51
51
|
import "../../../../../../query-D0qnvePL.mjs";
|
|
52
52
|
import "../../../../../../zod-generator-DBu-v5Zy.mjs";
|
|
53
53
|
import "../../../../../../schema-2x9K4t9t.mjs";
|
|
@@ -47,7 +47,7 @@ import "../../../../../submission-C7tI1Frs.mjs";
|
|
|
47
47
|
import "../../../../../dashboard-C_x93lbv.mjs";
|
|
48
48
|
import "../../../../../briefing-CXQA-DpY.mjs";
|
|
49
49
|
import "../../../../../review-requests-BQZp6VaG.mjs";
|
|
50
|
-
import { s as handleMarketplaceUpdateCheck } from "../../../../../api-
|
|
50
|
+
import { s as handleMarketplaceUpdateCheck } from "../../../../../api-CB2KRW3W.mjs";
|
|
51
51
|
import "../../../../../query-D0qnvePL.mjs";
|
|
52
52
|
import "../../../../../zod-generator-DBu-v5Zy.mjs";
|
|
53
53
|
import "../../../../../schema-2x9K4t9t.mjs";
|
|
@@ -47,7 +47,7 @@ import "../../../../../../../submission-C7tI1Frs.mjs";
|
|
|
47
47
|
import "../../../../../../../dashboard-C_x93lbv.mjs";
|
|
48
48
|
import "../../../../../../../briefing-CXQA-DpY.mjs";
|
|
49
49
|
import "../../../../../../../review-requests-BQZp6VaG.mjs";
|
|
50
|
-
import { l as handleThemeGetDetail } from "../../../../../../../api-
|
|
50
|
+
import { l as handleThemeGetDetail } from "../../../../../../../api-CB2KRW3W.mjs";
|
|
51
51
|
import "../../../../../../../query-D0qnvePL.mjs";
|
|
52
52
|
import "../../../../../../../zod-generator-DBu-v5Zy.mjs";
|
|
53
53
|
import "../../../../../../../schema-2x9K4t9t.mjs";
|
|
@@ -47,7 +47,7 @@ import "../../../../../../submission-C7tI1Frs.mjs";
|
|
|
47
47
|
import "../../../../../../dashboard-C_x93lbv.mjs";
|
|
48
48
|
import "../../../../../../briefing-CXQA-DpY.mjs";
|
|
49
49
|
import "../../../../../../review-requests-BQZp6VaG.mjs";
|
|
50
|
-
import { u as handleThemeSearch } from "../../../../../../api-
|
|
50
|
+
import { u as handleThemeSearch } from "../../../../../../api-CB2KRW3W.mjs";
|
|
51
51
|
import "../../../../../../query-D0qnvePL.mjs";
|
|
52
52
|
import "../../../../../../zod-generator-DBu-v5Zy.mjs";
|
|
53
53
|
import "../../../../../../schema-2x9K4t9t.mjs";
|
|
@@ -11,7 +11,7 @@ import "../../../../../../hook-events-lN-kz-4_.mjs";
|
|
|
11
11
|
import "../../../../../../scheduled-publish-7kZkKw7t.mjs";
|
|
12
12
|
import "../../../../../../public-url-CvNSyMJJ.mjs";
|
|
13
13
|
import "../../../../../../validate-CleBZbkv.mjs";
|
|
14
|
-
import "../../../../../../byline-fields-
|
|
14
|
+
import "../../../../../../byline-fields-Dyts_tJ5.mjs";
|
|
15
15
|
import "../../../../../../types-BuplUVZ4.mjs";
|
|
16
16
|
import { Kysely } from "kysely";
|
|
17
17
|
import { APIContext, APIRoute } from "astro";
|
|
@@ -23,7 +23,7 @@ import "../../../../../../status-CDqWWt6i.mjs";
|
|
|
23
23
|
import "../../../../../../api/schemas/index.mjs";
|
|
24
24
|
import "../../../../../../trusted-proxy-Dmi1gZXh.mjs";
|
|
25
25
|
import { t as extractRequestMeta } from "../../../../../../request-meta-DOBXMRX0.mjs";
|
|
26
|
-
import { c as hashIp, s as handleCommentList, t as checkRateLimit } from "../../../../../../comments-
|
|
26
|
+
import { c as hashIp, s as handleCommentList, t as checkRateLimit } from "../../../../../../comments-BFXekTqN.mjs";
|
|
27
27
|
import { t as getSiteBaseUrl } from "../../../../../../site-url-5O6ra5VE.mjs";
|
|
28
28
|
import { i as sendCommentNotification, n as prepareComment } from "../../../../../../service-Y-ZEhFVM.mjs";
|
|
29
29
|
import { sql } from "kysely";
|
|
@@ -21,7 +21,7 @@ import "../../../../../../api/schemas/index.mjs";
|
|
|
21
21
|
import "../../../../../../trusted-proxy-Dmi1gZXh.mjs";
|
|
22
22
|
import { t as extractRequestMeta } from "../../../../../../request-meta-DOBXMRX0.mjs";
|
|
23
23
|
import { t as CommentReactionRepository } from "../../../../../../comment-reaction-CFkwluRq.mjs";
|
|
24
|
-
import { c as hashIp } from "../../../../../../comments-
|
|
24
|
+
import { c as hashIp } from "../../../../../../comments-BFXekTqN.mjs";
|
|
25
25
|
|
|
26
26
|
//#region src/api/handlers/comment-reactions.ts
|
|
27
27
|
const REACTION_RATE_LIMIT = 30;
|
|
@@ -10,7 +10,7 @@ import "../../../../../hook-events-lN-kz-4_.mjs";
|
|
|
10
10
|
import "../../../../../scheduled-publish-7kZkKw7t.mjs";
|
|
11
11
|
import "../../../../../public-url-CvNSyMJJ.mjs";
|
|
12
12
|
import "../../../../../validate-CleBZbkv.mjs";
|
|
13
|
-
import "../../../../../byline-fields-
|
|
13
|
+
import "../../../../../byline-fields-Dyts_tJ5.mjs";
|
|
14
14
|
import "../../../../../types-BuplUVZ4.mjs";
|
|
15
15
|
import { DinewayHandlers, DinewayManifest } from "../../../../types.mjs";
|
|
16
16
|
import { APIRoute } from "astro";
|
|
@@ -10,7 +10,7 @@ import "../../../../../hook-events-lN-kz-4_.mjs";
|
|
|
10
10
|
import "../../../../../scheduled-publish-7kZkKw7t.mjs";
|
|
11
11
|
import "../../../../../public-url-CvNSyMJJ.mjs";
|
|
12
12
|
import "../../../../../validate-CleBZbkv.mjs";
|
|
13
|
-
import "../../../../../byline-fields-
|
|
13
|
+
import "../../../../../byline-fields-Dyts_tJ5.mjs";
|
|
14
14
|
import "../../../../../types-BuplUVZ4.mjs";
|
|
15
15
|
import { DinewayHandlers } from "../../../../types.mjs";
|
|
16
16
|
import { AttachmentInfo } from "./analyze.mjs";
|
|
@@ -11,7 +11,7 @@ import "../../../../../hook-events-lN-kz-4_.mjs";
|
|
|
11
11
|
import "../../../../../scheduled-publish-7kZkKw7t.mjs";
|
|
12
12
|
import "../../../../../public-url-CvNSyMJJ.mjs";
|
|
13
13
|
import "../../../../../validate-CleBZbkv.mjs";
|
|
14
|
-
import "../../../../../byline-fields-
|
|
14
|
+
import "../../../../../byline-fields-Dyts_tJ5.mjs";
|
|
15
15
|
import "../../../../../types-BuplUVZ4.mjs";
|
|
16
16
|
import { DinewayHandlers } from "../../../../types.mjs";
|
|
17
17
|
import { Kysely } from "kysely";
|
|
@@ -10,7 +10,7 @@ import "../../../../../hook-events-lN-kz-4_.mjs";
|
|
|
10
10
|
import "../../../../../scheduled-publish-7kZkKw7t.mjs";
|
|
11
11
|
import "../../../../../public-url-CvNSyMJJ.mjs";
|
|
12
12
|
import "../../../../../validate-CleBZbkv.mjs";
|
|
13
|
-
import "../../../../../byline-fields-
|
|
13
|
+
import "../../../../../byline-fields-Dyts_tJ5.mjs";
|
|
14
14
|
import { f as NormalizedItem, s as ImportConfig, u as ImportResult } from "../../../../../types-BuplUVZ4.mjs";
|
|
15
15
|
import { DinewayHandlers, DinewayManifest } from "../../../../types.mjs";
|
|
16
16
|
import { APIRoute } from "astro";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { t as OptionsRepository } from "../../../options-yFkLUuTw.mjs";
|
|
2
|
-
import { n as VERSION, t as COMMIT } from "../../../version-
|
|
2
|
+
import { n as VERSION, t as COMMIT } from "../../../version-CtBv2gNa.mjs";
|
|
3
3
|
import { r as handleError } from "../../../error-HuAkl_6r.mjs";
|
|
4
4
|
import { i as experimentalSiteContextWorkflowsEnabled } from "../../../experimental-workflows-BtKXzyIH.mjs";
|
|
5
5
|
import { t as getAuthMode } from "../../../mode-BoM5FjH7.mjs";
|
|
@@ -45,7 +45,7 @@ import "../../../registry-3xWpSYNI.mjs";
|
|
|
45
45
|
import "../../../settings-D0SBKo-W.mjs";
|
|
46
46
|
import "../../../evidence-FRy3SVTP.mjs";
|
|
47
47
|
import { r as submitAutomatedReview } from "../../../submission-C7tI1Frs.mjs";
|
|
48
|
-
import { n as VERSION } from "../../../version-
|
|
48
|
+
import { n as VERSION } from "../../../version-CtBv2gNa.mjs";
|
|
49
49
|
import "../../../query-D0qnvePL.mjs";
|
|
50
50
|
import "../../../zod-generator-DBu-v5Zy.mjs";
|
|
51
51
|
import "../../../schema-2x9K4t9t.mjs";
|
|
@@ -64,8 +64,8 @@ import "../../../utils-WY63JOPB.mjs";
|
|
|
64
64
|
import "../../../search--Qmm2s6n.mjs";
|
|
65
65
|
import { n as prepareReviewerApproval } from "../../../worker-CcvePQzq.mjs";
|
|
66
66
|
import "../../../policy-BL8yj6uD.mjs";
|
|
67
|
-
import {
|
|
68
|
-
import {
|
|
67
|
+
import { a as createForgewayAccountClient, c as normalizeForgewayApiUrl, d as refreshForgewayAccountCredentials, u as readStoredForgewayAccount } from "../../../forgeway-account-CVSG1imu.mjs";
|
|
68
|
+
import { n as convertDataForWrite, t as convertDataForRead } from "../../../portable-text-CJ9v0T_j.mjs";
|
|
69
69
|
import { t as createSiteIntegrationService } from "../../../service-CcUWmln9.mjs";
|
|
70
70
|
import { t as revokeReview } from "../../../revocation-ibEJ8ZqU.mjs";
|
|
71
71
|
import { z } from "zod";
|
|
@@ -3,7 +3,7 @@ import "../../../base64-qvSs0Gxy.mjs";
|
|
|
3
3
|
import "../../../types-BI3ULB3A.mjs";
|
|
4
4
|
import "../../../terms-EskuqbKE.mjs";
|
|
5
5
|
import "../../../public-discovery-CGRirTJH.mjs";
|
|
6
|
-
import { n as VERSION } from "../../../version-
|
|
6
|
+
import { n as VERSION } from "../../../version-CtBv2gNa.mjs";
|
|
7
7
|
import { r as handleError } from "../../../error-HuAkl_6r.mjs";
|
|
8
8
|
import { I as deleteResponseSchema, N as apiErrorSchema, S as contentUpdateBody, U as successEnvelope, a as contentItemSchema, b as contentTranslationsResponseSchema, d as contentPublishResponseSchema, f as contentReleaseReadinessQuery, h as contentScheduleBody, i as contentCreateBody, m as contentResponseSchema, n as contentAuthorsResponseSchema, o as contentListQuery, p as contentReleaseReadinessResponseSchema, r as contentCompareResponseSchema, s as contentListResponseSchema, u as contentPublishBody, v as contentTermsBody, w as trashedContentListResponseSchema, x as contentTrashQuery } from "../../../content-C8i4DyTt.mjs";
|
|
9
9
|
import { $ as createMenuBody, A as searchRebuildBody, At as fieldResponseSchema, B as updateSectionBody, Bt as mediaConfirmBody, C as userDetailSchema, Ct as collectionResponseSchema, D as usersListQuery, Dt as createFieldBody, E as userUpdateBody, Et as createCollectionBody, F as siteSettingsSchema, 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, L as sectionListResponseSchema, Lt as updateFieldBody, Mt as orphanRegisterBody, N as searchSuggestQuery, Nt as orphanedTableListResponseSchema, O as searchEnableBody, Ot as fieldListResponseSchema, P as settingsUpdateBody, Q as updateTermBody, R as sectionSchema, Rt as DEFAULT_MAX_UPLOAD_SIZE, S as allowedDomainUpdateBody, St as collectionListResponseSchema, T as userSchema, Tt as collectionWithFieldsResponseSchema, Vt as mediaConfirmResponseSchema, Wt as mediaListQuery, Xt as mediaUploadUrlResponseSchema, Yt as mediaUploadUrlBody, _ as widgetAreaSchema, _t as createCommentBody, a as notFoundPruneBody, b as widgetSchema, ct as updateMenuBody, d as redirectsListQuery, dt as commentBulkBody, et as createMenuItemBody, f as updateRedirectBody, ft as commentBulkResponseSchema, g as updateWidgetBody, gt as commentStatusBody, h as reorderWidgetsBody, ht as commentSchema, i as notFoundListResponseSchema, j as searchResponseSchema, k as searchQuery, kt as fieldReorderBody, l as redirectListResponseSchema, lt as updateMenuItemBody, m as createWidgetBody, mt as commentListQuery, ot as menuWithItemsSchema, p as createWidgetAreaBody, pt as commentCountsResponseSchema, q as termListResponseSchema, qt as mediaResponseSchema, r as notFoundListQuery, rt as menuListItemSchema, s as notFoundSummaryResponseSchema, st as reorderMenuItemsBody, t as createRedirectBody, tt as menuItemSchema, u as redirectSchema, ut as adminCommentListResponseSchema, v as widgetAreaWithWidgetsAndCountSchema, w as userListResponseSchema, x as allowedDomainCreateBody, xt as collectionGetQuery, y as widgetAreaWithWidgetsSchema, yt as publicCommentListResponseSchema, z as sectionsListQuery } from "../../../redirects-BwnvcNyN.mjs";
|
|
@@ -47,7 +47,7 @@ import "../../../../../../../submission-C7tI1Frs.mjs";
|
|
|
47
47
|
import "../../../../../../../dashboard-C_x93lbv.mjs";
|
|
48
48
|
import "../../../../../../../briefing-CXQA-DpY.mjs";
|
|
49
49
|
import "../../../../../../../review-requests-BQZp6VaG.mjs";
|
|
50
|
-
import { b as handleSchemaFieldDelete, w as handleSchemaFieldUpdate, x as handleSchemaFieldGet } from "../../../../../../../api-
|
|
50
|
+
import { b as handleSchemaFieldDelete, w as handleSchemaFieldUpdate, x as handleSchemaFieldGet } from "../../../../../../../api-CB2KRW3W.mjs";
|
|
51
51
|
import "../../../../../../../query-D0qnvePL.mjs";
|
|
52
52
|
import "../../../../../../../zod-generator-DBu-v5Zy.mjs";
|
|
53
53
|
import "../../../../../../../schema-2x9K4t9t.mjs";
|
|
@@ -47,7 +47,7 @@ import "../../../../../../../submission-C7tI1Frs.mjs";
|
|
|
47
47
|
import "../../../../../../../dashboard-C_x93lbv.mjs";
|
|
48
48
|
import "../../../../../../../briefing-CXQA-DpY.mjs";
|
|
49
49
|
import "../../../../../../../review-requests-BQZp6VaG.mjs";
|
|
50
|
-
import { S as handleSchemaFieldList, y as handleSchemaFieldCreate } from "../../../../../../../api-
|
|
50
|
+
import { S as handleSchemaFieldList, y as handleSchemaFieldCreate } from "../../../../../../../api-CB2KRW3W.mjs";
|
|
51
51
|
import "../../../../../../../query-D0qnvePL.mjs";
|
|
52
52
|
import "../../../../../../../zod-generator-DBu-v5Zy.mjs";
|
|
53
53
|
import "../../../../../../../schema-2x9K4t9t.mjs";
|
|
@@ -47,7 +47,7 @@ import "../../../../../../../submission-C7tI1Frs.mjs";
|
|
|
47
47
|
import "../../../../../../../dashboard-C_x93lbv.mjs";
|
|
48
48
|
import "../../../../../../../briefing-CXQA-DpY.mjs";
|
|
49
49
|
import "../../../../../../../review-requests-BQZp6VaG.mjs";
|
|
50
|
-
import { C as handleSchemaFieldReorder } from "../../../../../../../api-
|
|
50
|
+
import { C as handleSchemaFieldReorder } from "../../../../../../../api-CB2KRW3W.mjs";
|
|
51
51
|
import "../../../../../../../query-D0qnvePL.mjs";
|
|
52
52
|
import "../../../../../../../zod-generator-DBu-v5Zy.mjs";
|
|
53
53
|
import "../../../../../../../schema-2x9K4t9t.mjs";
|
|
@@ -47,7 +47,7 @@ import "../../../../../../submission-C7tI1Frs.mjs";
|
|
|
47
47
|
import "../../../../../../dashboard-C_x93lbv.mjs";
|
|
48
48
|
import "../../../../../../briefing-CXQA-DpY.mjs";
|
|
49
49
|
import "../../../../../../review-requests-BQZp6VaG.mjs";
|
|
50
|
-
import { g as handleSchemaCollectionGet, h as handleSchemaCollectionDelete, v as handleSchemaCollectionUpdate } from "../../../../../../api-
|
|
50
|
+
import { g as handleSchemaCollectionGet, h as handleSchemaCollectionDelete, v as handleSchemaCollectionUpdate } from "../../../../../../api-CB2KRW3W.mjs";
|
|
51
51
|
import "../../../../../../query-D0qnvePL.mjs";
|
|
52
52
|
import "../../../../../../zod-generator-DBu-v5Zy.mjs";
|
|
53
53
|
import "../../../../../../schema-2x9K4t9t.mjs";
|
|
@@ -47,7 +47,7 @@ import "../../../../../submission-C7tI1Frs.mjs";
|
|
|
47
47
|
import "../../../../../dashboard-C_x93lbv.mjs";
|
|
48
48
|
import "../../../../../briefing-CXQA-DpY.mjs";
|
|
49
49
|
import "../../../../../review-requests-BQZp6VaG.mjs";
|
|
50
|
-
import { _ as handleSchemaCollectionList, m as handleSchemaCollectionCreate } from "../../../../../api-
|
|
50
|
+
import { _ as handleSchemaCollectionList, m as handleSchemaCollectionCreate } from "../../../../../api-CB2KRW3W.mjs";
|
|
51
51
|
import "../../../../../query-D0qnvePL.mjs";
|
|
52
52
|
import "../../../../../zod-generator-DBu-v5Zy.mjs";
|
|
53
53
|
import "../../../../../schema-2x9K4t9t.mjs";
|
|
@@ -47,7 +47,7 @@ import "../../../../../submission-C7tI1Frs.mjs";
|
|
|
47
47
|
import "../../../../../dashboard-C_x93lbv.mjs";
|
|
48
48
|
import "../../../../../briefing-CXQA-DpY.mjs";
|
|
49
49
|
import "../../../../../review-requests-BQZp6VaG.mjs";
|
|
50
|
-
import { p as handleOrphanedTableRegister } from "../../../../../api-
|
|
50
|
+
import { p as handleOrphanedTableRegister } from "../../../../../api-CB2KRW3W.mjs";
|
|
51
51
|
import "../../../../../query-D0qnvePL.mjs";
|
|
52
52
|
import "../../../../../zod-generator-DBu-v5Zy.mjs";
|
|
53
53
|
import "../../../../../schema-2x9K4t9t.mjs";
|
|
@@ -47,7 +47,7 @@ import "../../../../../submission-C7tI1Frs.mjs";
|
|
|
47
47
|
import "../../../../../dashboard-C_x93lbv.mjs";
|
|
48
48
|
import "../../../../../briefing-CXQA-DpY.mjs";
|
|
49
49
|
import "../../../../../review-requests-BQZp6VaG.mjs";
|
|
50
|
-
import { f as handleOrphanedTableList } from "../../../../../api-
|
|
50
|
+
import { f as handleOrphanedTableList } from "../../../../../api-CB2KRW3W.mjs";
|
|
51
51
|
import "../../../../../query-D0qnvePL.mjs";
|
|
52
52
|
import "../../../../../zod-generator-DBu-v5Zy.mjs";
|
|
53
53
|
import "../../../../../schema-2x9K4t9t.mjs";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { t as OptionsRepository } from "../../../../options-yFkLUuTw.mjs";
|
|
2
|
-
import { n as VERSION } from "../../../../version-
|
|
2
|
+
import { n as VERSION } from "../../../../version-CtBv2gNa.mjs";
|
|
3
3
|
import { t as getAuthMode } from "../../../../mode-BoM5FjH7.mjs";
|
|
4
4
|
|
|
5
5
|
//#region src/astro/routes/api/well-known/auth.ts
|
package/dist/astro/types.d.mts
CHANGED
|
@@ -13,7 +13,7 @@ import { d as Storage } from "../types-B2rEY0ik.mjs";
|
|
|
13
13
|
import "../scheduled-publish-7kZkKw7t.mjs";
|
|
14
14
|
import "../public-url-CvNSyMJJ.mjs";
|
|
15
15
|
import "../validate-CleBZbkv.mjs";
|
|
16
|
-
import "../byline-fields-
|
|
16
|
+
import "../byline-fields-Dyts_tJ5.mjs";
|
|
17
17
|
import "../types-BuplUVZ4.mjs";
|
|
18
18
|
import "../index.mjs";
|
|
19
19
|
import { Kysely } from "kysely";
|
|
@@ -1238,8 +1238,8 @@ declare const createReactionBody: z.ZodObject<{
|
|
|
1238
1238
|
}, z.core.$strip>;
|
|
1239
1239
|
declare const commentStatusBody: z.ZodObject<{
|
|
1240
1240
|
status: z.ZodEnum<{
|
|
1241
|
-
approved: "approved";
|
|
1242
1241
|
pending: "pending";
|
|
1242
|
+
approved: "approved";
|
|
1243
1243
|
spam: "spam";
|
|
1244
1244
|
trash: "trash";
|
|
1245
1245
|
}>;
|
|
@@ -1255,8 +1255,8 @@ declare const commentBulkBody: z.ZodObject<{
|
|
|
1255
1255
|
}, z.core.$strip>;
|
|
1256
1256
|
declare const commentListQuery: z.ZodObject<{
|
|
1257
1257
|
status: z.ZodOptional<z.ZodEnum<{
|
|
1258
|
-
approved: "approved";
|
|
1259
1258
|
pending: "pending";
|
|
1259
|
+
approved: "approved";
|
|
1260
1260
|
spam: "spam";
|
|
1261
1261
|
trash: "trash";
|
|
1262
1262
|
}>>;
|
|
@@ -1291,8 +1291,8 @@ declare const commentSchema: z.ZodObject<{
|
|
|
1291
1291
|
authorEmail: z.ZodString;
|
|
1292
1292
|
body: z.ZodString;
|
|
1293
1293
|
status: z.ZodEnum<{
|
|
1294
|
-
approved: "approved";
|
|
1295
1294
|
pending: "pending";
|
|
1295
|
+
approved: "approved";
|
|
1296
1296
|
spam: "spam";
|
|
1297
1297
|
trash: "trash";
|
|
1298
1298
|
}>;
|
|
@@ -1324,8 +1324,8 @@ declare const adminCommentListResponseSchema: z.ZodObject<{
|
|
|
1324
1324
|
authorEmail: z.ZodString;
|
|
1325
1325
|
body: z.ZodString;
|
|
1326
1326
|
status: z.ZodEnum<{
|
|
1327
|
-
approved: "approved";
|
|
1328
1327
|
pending: "pending";
|
|
1328
|
+
approved: "approved";
|
|
1329
1329
|
spam: "spam";
|
|
1330
1330
|
trash: "trash";
|
|
1331
1331
|
}>;
|
|
@@ -1373,11 +1373,11 @@ declare const contextEntryStaleQuery: z.ZodObject<{
|
|
|
1373
1373
|
limit: z.ZodOptional<z.ZodCoercedNumber<unknown>>;
|
|
1374
1374
|
cursor: z.ZodOptional<z.ZodString>;
|
|
1375
1375
|
scope: z.ZodOptional<z.ZodString>;
|
|
1376
|
+
contextTypes: z.ZodPipe<z.ZodOptional<z.ZodString>, z.ZodTransform<string[] | undefined, string | undefined>>;
|
|
1376
1377
|
includeInherited: z.ZodPipe<z.ZodOptional<z.ZodEnum<{
|
|
1377
1378
|
true: "true";
|
|
1378
1379
|
false: "false";
|
|
1379
1380
|
}>>, z.ZodTransform<boolean | undefined, "true" | "false" | undefined>>;
|
|
1380
|
-
contextTypes: z.ZodPipe<z.ZodOptional<z.ZodString>, z.ZodTransform<string[] | undefined, string | undefined>>;
|
|
1381
1381
|
tags: z.ZodPipe<z.ZodOptional<z.ZodString>, z.ZodTransform<string[] | undefined, string | undefined>>;
|
|
1382
1382
|
createdByActorType: z.ZodOptional<z.ZodEnum<{
|
|
1383
1383
|
user: "user";
|
|
@@ -1465,8 +1465,8 @@ declare const siteBriefingQuery: z.ZodObject<{
|
|
|
1465
1465
|
//#region src/api/schemas/hitl-requests.d.ts
|
|
1466
1466
|
declare const hitlRequestListQuery: z.ZodObject<{
|
|
1467
1467
|
status: z.ZodOptional<z.ZodEnum<{
|
|
1468
|
-
approved: "approved";
|
|
1469
1468
|
pending: "pending";
|
|
1469
|
+
approved: "approved";
|
|
1470
1470
|
rejected: "rejected";
|
|
1471
1471
|
}>>;
|
|
1472
1472
|
priority: z.ZodOptional<z.ZodEnum<{
|
|
@@ -1499,8 +1499,8 @@ declare const reviewRequestCreateBody: z.ZodObject<{
|
|
|
1499
1499
|
}, z.core.$strip>;
|
|
1500
1500
|
declare const reviewRequestListQuery: z.ZodObject<{
|
|
1501
1501
|
status: z.ZodOptional<z.ZodEnum<{
|
|
1502
|
-
approved: "approved";
|
|
1503
1502
|
pending: "pending";
|
|
1503
|
+
approved: "approved";
|
|
1504
1504
|
rejected: "rejected";
|
|
1505
1505
|
resolved: "resolved";
|
|
1506
1506
|
}>>;
|
package/dist/cli/index.mjs
CHANGED
|
@@ -42,7 +42,7 @@ import "../fts-manager-BHwhq1lC.mjs";
|
|
|
42
42
|
import "../public-discovery-CGRirTJH.mjs";
|
|
43
43
|
import { n as SchemaRegistry } from "../registry-3xWpSYNI.mjs";
|
|
44
44
|
import "../settings-D0SBKo-W.mjs";
|
|
45
|
-
import { n as VERSION } from "../version-
|
|
45
|
+
import { n as VERSION } from "../version-CtBv2gNa.mjs";
|
|
46
46
|
import { t as IntegrationCredentialStore } from "../store-rYMso0t7.mjs";
|
|
47
47
|
import { a as reconcileManifestAccess, i as pluginManifestSchema } from "../manifest-schema-B_rWNZn5.mjs";
|
|
48
48
|
import "../content-C8i4DyTt.mjs";
|
|
@@ -51,13 +51,13 @@ import { t as validateSeed } from "../validate-WOW5vZz_.mjs";
|
|
|
51
51
|
import { t as applySeed } from "../apply-SoTzf8LK.mjs";
|
|
52
52
|
import { n as validateWorkersBindings, t as WORKERS_BUILD_METADATA } from "../workers-build-Bd4w1aw9.mjs";
|
|
53
53
|
import { n as d1ReleaseRevision } from "../state-LzJZ7qpq.mjs";
|
|
54
|
+
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-CVSG1imu.mjs";
|
|
55
|
+
import { n as output, t as configureOutputMode } from "../output-TGkiEMQF.mjs";
|
|
54
56
|
import { createHeaderAwareFetch, isRedirectResponse, resolveCustomHeaders } from "../client/external-auth-headers.mjs";
|
|
55
|
-
import { t as convertDataForRead } from "../portable-text-
|
|
56
|
-
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-B-z2_ZOQ.mjs";
|
|
57
|
-
import { n as output, t as configureOutputMode } from "../output-4F_wq70p.mjs";
|
|
57
|
+
import { t as convertDataForRead } from "../portable-text-CJ9v0T_j.mjs";
|
|
58
58
|
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-8GnB8iz5.mjs";
|
|
59
59
|
import { t as migrateD1Release } from "../release-Bk-UaI2C.mjs";
|
|
60
|
-
import { a as verifyContentMigration,
|
|
60
|
+
import { a as verifyContentMigration, i as stageContentMigrationEntry, l as contentMigrationSnapshotSchema, n as completeContentMigration, o as verifyContentMigrationPage, r as rollbackContentMigration, s as bootstrapContentDirectoryPage, t as activateContentMigrationEntry, u as migrateContentStorageConfig } from "../migration-B9FyV3ET.mjs";
|
|
61
61
|
import { LocalStorage } from "../storage/local.mjs";
|
|
62
62
|
import { r as fileExists$11, t as bundleCommand } from "../bundle-CnJWXvur.mjs";
|
|
63
63
|
import { createRequire } from "node:module";
|
|
@@ -1206,6 +1206,7 @@ const actions = [
|
|
|
1206
1206
|
"copy",
|
|
1207
1207
|
"freeze",
|
|
1208
1208
|
"verify",
|
|
1209
|
+
"verify-page",
|
|
1209
1210
|
"activate",
|
|
1210
1211
|
"resume",
|
|
1211
1212
|
"rollback",
|
|
@@ -1308,6 +1309,7 @@ async function runContentStorageCommand(options) {
|
|
|
1308
1309
|
}
|
|
1309
1310
|
if (!options.archive) throw new Error("Provide a private --archive directory. Keep the same archive for the entire migration and at least seven days afterward.");
|
|
1310
1311
|
const archive = createFileContentArchive(resolve(project.cwd, options.archive));
|
|
1312
|
+
if (options.action === "verify-page") return await verifyContentMigrationPage(primary, migration, archive, limit);
|
|
1311
1313
|
if (options.action === "verify") return await verifyContentMigration(primary, migration, archive);
|
|
1312
1314
|
if (options.action === "rollback") {
|
|
1313
1315
|
await rollbackContentMigration(primary, migration, archive);
|
|
@@ -10,7 +10,7 @@ import "../hook-events-lN-kz-4_.mjs";
|
|
|
10
10
|
import "../scheduled-publish-7kZkKw7t.mjs";
|
|
11
11
|
import "../public-url-CvNSyMJJ.mjs";
|
|
12
12
|
import "../validate-CleBZbkv.mjs";
|
|
13
|
-
import "../byline-fields-
|
|
13
|
+
import "../byline-fields-Dyts_tJ5.mjs";
|
|
14
14
|
import "../types-BuplUVZ4.mjs";
|
|
15
15
|
import { DinewayClient, PluginRequestOptions } from "../client/index.mjs";
|
|
16
16
|
import { SubCommandsDef } from "citty";
|
package/dist/cli/plugin-kit.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { n as output, t as configureOutputMode } from "../output-
|
|
1
|
+
import { n as output, t as configureOutputMode } from "../output-TGkiEMQF.mjs";
|
|
2
2
|
import { n as connectionArgs, r as createClientFromArgs } from "../client-factory-8GnB8iz5.mjs";
|
|
3
3
|
|
|
4
4
|
export { configureOutputMode, connectionArgs, createClientFromArgs, output };
|
package/dist/client/index.d.mts
CHANGED
|
@@ -10,7 +10,7 @@ import "../hook-events-lN-kz-4_.mjs";
|
|
|
10
10
|
import "../scheduled-publish-7kZkKw7t.mjs";
|
|
11
11
|
import "../public-url-CvNSyMJJ.mjs";
|
|
12
12
|
import "../validate-CleBZbkv.mjs";
|
|
13
|
-
import "../byline-fields-
|
|
13
|
+
import "../byline-fields-Dyts_tJ5.mjs";
|
|
14
14
|
import "../types-BuplUVZ4.mjs";
|
|
15
15
|
import { a as tokenInterceptor, i as devBypassInterceptor, n as createTransport, r as csrfInterceptor, t as Interceptor } from "../transport-Cm1beMRX.mjs";
|
|
16
16
|
import { n as markdownToPortableText, r as portableTextToMarkdown, t as PortableTextBlock } from "../portable-text-BZYFFIgm.mjs";
|
package/dist/client/index.mjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { i as portableTextToMarkdown, n as convertDataForWrite, r as markdownToPortableText, t as convertDataForRead } from "../portable-text-
|
|
2
|
-
import { a as tokenInterceptor, i as refreshInterceptor, n as csrfInterceptor, r as devBypassInterceptor, t as createTransport } from "../transport-
|
|
1
|
+
import { i as portableTextToMarkdown, n as convertDataForWrite, r as markdownToPortableText, t as convertDataForRead } from "../portable-text-CJ9v0T_j.mjs";
|
|
2
|
+
import { a as tokenInterceptor, i as refreshInterceptor, n as csrfInterceptor, r as devBypassInterceptor, t as createTransport } from "../transport-C_bzEHB4.mjs";
|
|
3
3
|
import mime from "mime/lite";
|
|
4
4
|
|
|
5
5
|
//#region src/client/index.ts
|
|
@@ -180,7 +180,15 @@ interface MigrationEntry {
|
|
|
180
180
|
declare function stageContentMigrationEntry(db: Kysely<Database>, migration: ContentMigrationIdentity, entryId: string, archive: ContentMigrationArchive): Promise<MigrationEntry>;
|
|
181
181
|
/** Activate one verified entry while the city remains frozen; retries use its persisted receipt. */
|
|
182
182
|
declare function activateContentMigrationEntry(db: Kysely<Database>, migration: ContentMigrationIdentity, entryId: string, archive: ContentMigrationArchive): Promise<void>;
|
|
183
|
-
/**
|
|
183
|
+
/** Verify one bounded page. Durable per-entry receipts let a later process resume the freeze. */
|
|
184
|
+
declare function verifyContentMigrationPage(db: Kysely<Database>, migration: ContentMigrationIdentity, archive: ContentMigrationArchive, limit?: number): Promise<{
|
|
185
|
+
done: false;
|
|
186
|
+
count: number;
|
|
187
|
+
} | {
|
|
188
|
+
done: true;
|
|
189
|
+
count: number;
|
|
190
|
+
digest: string;
|
|
191
|
+
}>;
|
|
184
192
|
declare function verifyContentMigration(db: Kysely<Database>, migration: ContentMigrationIdentity, archive: ContentMigrationArchive): Promise<{
|
|
185
193
|
count: number;
|
|
186
194
|
digest: string;
|
|
@@ -190,4 +198,4 @@ declare function completeContentMigration(db: Kysely<Database>, migration: Conte
|
|
|
190
198
|
/** Restore the archived source only before writes have reopened. Never deletes either copy. */
|
|
191
199
|
declare function rollbackContentMigration(db: Kysely<Database>, migration: ContentMigrationIdentity, archive: ContentMigrationArchive): Promise<void>;
|
|
192
200
|
//#endregion
|
|
193
|
-
export { type ContentLocation, type ContentMigrationArchive, type ContentMigrationIdentity, type ContentMigrationSnapshot, type ContentPartitionContext, type ContentPartitionResolver, type ContentPartitionRoute, type ContentPartitionRule, type ContentStorageActivation, type ContentStorageCommand, type ContentStorageConfig, ContentStorageCoordinator, ContentStorageError, ContentStorageReplay, type ContentStorageRuntime, type ContentStorageValue, type ContentStore, type ContentStoreCollection, type ContentStoreDescriptor, ContentVersionStore, type PreparedContentVersion, activateContentMigrationEntry, assertContentStorageConfiguration, assertContentVersionStore, beginContentMigration, bootstrapContentDirectoryPage, cancelContentMigration, canonicalContentJson, captureContentMigrationSnapshot, completeContentMigration, contentDigest, contentMigrationSnapshotSchema, contentStoreCollectionFromFields, contentStoreCollectionSchema, contentStoreRequestSchema, contentVersionSchema, freezeContentPartition, getContentStorage, hydrateContentRows, installContentStorageConfig, installContentVersionStore, migrateContentStorageConfig, readContentPartitionRoute, readRevisionData, readRevisionDataBatch, registerContentStorage, resolveContentPartition, rollbackContentMigration, stageContentMigrationEntry, validateContentStorage, verifyContentMigration };
|
|
201
|
+
export { type ContentLocation, type ContentMigrationArchive, type ContentMigrationIdentity, type ContentMigrationSnapshot, type ContentPartitionContext, type ContentPartitionResolver, type ContentPartitionRoute, type ContentPartitionRule, type ContentStorageActivation, type ContentStorageCommand, type ContentStorageConfig, ContentStorageCoordinator, ContentStorageError, ContentStorageReplay, type ContentStorageRuntime, type ContentStorageValue, type ContentStore, type ContentStoreCollection, type ContentStoreDescriptor, ContentVersionStore, type PreparedContentVersion, activateContentMigrationEntry, assertContentStorageConfiguration, assertContentVersionStore, beginContentMigration, bootstrapContentDirectoryPage, cancelContentMigration, canonicalContentJson, captureContentMigrationSnapshot, completeContentMigration, contentDigest, contentMigrationSnapshotSchema, contentStoreCollectionFromFields, contentStoreCollectionSchema, contentStoreRequestSchema, contentVersionSchema, freezeContentPartition, getContentStorage, hydrateContentRows, installContentStorageConfig, installContentVersionStore, migrateContentStorageConfig, readContentPartitionRoute, readRevisionData, readRevisionDataBatch, registerContentStorage, resolveContentPartition, rollbackContentMigration, stageContentMigrationEntry, validateContentStorage, verifyContentMigration, verifyContentMigrationPage };
|
|
@@ -23,6 +23,6 @@ import { a as contentStoreRequestSchema, i as contentStoreCollectionSchema, n as
|
|
|
23
23
|
import "../write-intent-D6xfcx1f.mjs";
|
|
24
24
|
import "../seo-DxrTizK0.mjs";
|
|
25
25
|
import "../content-C8i4DyTt.mjs";
|
|
26
|
-
import { a as verifyContentMigration, c as
|
|
26
|
+
import { a as verifyContentMigration, c as captureContentMigrationSnapshot, i as stageContentMigrationEntry, l as contentMigrationSnapshotSchema, n as completeContentMigration, o as verifyContentMigrationPage, r as rollbackContentMigration, s as bootstrapContentDirectoryPage, t as activateContentMigrationEntry, u as migrateContentStorageConfig } from "../migration-B9FyV3ET.mjs";
|
|
27
27
|
|
|
28
|
-
export { ContentStorageCoordinator, ContentStorageError, ContentStorageReplay, ContentVersionStore, activateContentMigrationEntry, assertContentStorageConfiguration, assertContentVersionStore, beginContentMigration, bootstrapContentDirectoryPage, cancelContentMigration, canonicalContentJson, captureContentMigrationSnapshot, completeContentMigration, contentDigest, contentMigrationSnapshotSchema, contentStoreCollectionFromFields, contentStoreCollectionSchema, contentStoreRequestSchema, contentVersionSchema, freezeContentPartition, getContentStorage, hydrateContentRows, installContentStorageConfig, installContentVersionStore, migrateContentStorageConfig, readContentPartitionRoute, readRevisionData, readRevisionDataBatch, registerContentStorage, resolveContentPartition, rollbackContentMigration, stageContentMigrationEntry, validateContentStorage, verifyContentMigration };
|
|
28
|
+
export { ContentStorageCoordinator, ContentStorageError, ContentStorageReplay, ContentVersionStore, activateContentMigrationEntry, assertContentStorageConfiguration, assertContentVersionStore, beginContentMigration, bootstrapContentDirectoryPage, cancelContentMigration, canonicalContentJson, captureContentMigrationSnapshot, completeContentMigration, contentDigest, contentMigrationSnapshotSchema, contentStoreCollectionFromFields, contentStoreCollectionSchema, contentStoreRequestSchema, contentVersionSchema, freezeContentPartition, getContentStorage, hydrateContentRows, installContentStorageConfig, installContentVersionStore, migrateContentStorageConfig, readContentPartitionRoute, readRevisionData, readRevisionDataBatch, registerContentStorage, resolveContentPartition, rollbackContentMigration, stageContentMigrationEntry, validateContentStorage, verifyContentMigration, verifyContentMigrationPage };
|
|
@@ -10,7 +10,7 @@ import "../../hook-events-lN-kz-4_.mjs";
|
|
|
10
10
|
import "../../scheduled-publish-7kZkKw7t.mjs";
|
|
11
11
|
import "../../public-url-CvNSyMJJ.mjs";
|
|
12
12
|
import "../../validate-CleBZbkv.mjs";
|
|
13
|
-
import "../../byline-fields-
|
|
13
|
+
import "../../byline-fields-Dyts_tJ5.mjs";
|
|
14
14
|
import "../../types-BuplUVZ4.mjs";
|
|
15
15
|
import { Kysely } from "kysely";
|
|
16
16
|
|
package/dist/index.d.mts
CHANGED
|
@@ -16,7 +16,7 @@ import { a as ListOptions, c as S3StorageConfig, d as Storage, f as StorageDescr
|
|
|
16
16
|
import "./scheduled-publish-7kZkKw7t.mjs";
|
|
17
17
|
import { c as I18nConfig, d as isI18nEnabled, l as getFallbackChain, n as resolveContentUrl, t as ResolveContentUrlInput, u as getI18nConfig } from "./public-url-CvNSyMJJ.mjs";
|
|
18
18
|
import { C as SiteSettingKey, S as SeoSettings, _ as SeedTaxonomyTerm, a as applySeed, b as ValidationResult, c as SeedCollection, d as SeedFile, f as SeedMenu, g as SeedTaxonomy, l as SeedContentEntry, o as SeedApplyOptions, p as SeedMenuItem, s as SeedApplyResult, t as validateSeed, u as SeedField, v as SeedWidget, w as SiteSettings, x as MediaReference, y as SeedWidgetArea } from "./validate-CleBZbkv.mjs";
|
|
19
|
-
import "./byline-fields-
|
|
19
|
+
import "./byline-fields-Dyts_tJ5.mjs";
|
|
20
20
|
import { DinewayRequestContext, getRequestContext, runWithContext } from "./request-context.mjs";
|
|
21
21
|
import { adaptSandboxEntry } from "./plugins/adapt-sandbox-entry.mjs";
|
|
22
22
|
import { S as UrlInput, _ as SourceAuth, a as FileInput, b as SourceProbeResult, c as ImportContext, d as ImportSource, f as NormalizedItem, g as ProbeResult, h as PostTypeMapping, i as FieldCompatibility, l as ImportFieldDef, m as PostTypeAnalysis, n as CollectionSchemaStatus, o as ImportAnalysis, p as OAuthInput, r as FetchOptions, s as ImportConfig, t as AttachmentInfo, u as ImportResult, v as SourceCapabilities, x as SuggestedAction, y as SourceInput } from "./types-BuplUVZ4.mjs";
|
package/dist/index.mjs
CHANGED
|
@@ -62,7 +62,7 @@ import { n as prepareAutomatedReview, r as submitAutomatedReview, t as ReviewSub
|
|
|
62
62
|
import "./dashboard-C_x93lbv.mjs";
|
|
63
63
|
import "./briefing-CXQA-DpY.mjs";
|
|
64
64
|
import "./review-requests-BQZp6VaG.mjs";
|
|
65
|
-
import { A as handleRevisionGet, D as handleMediaGet, E as handleMediaDelete, M as handleRevisionRestore, N as generateManifest, O as handleMediaList, T as handleMediaCreate, j as handleRevisionList, k as handleMediaUpdate } from "./api-
|
|
65
|
+
import { A as handleRevisionGet, D as handleMediaGet, E as handleMediaDelete, M as handleRevisionRestore, N as generateManifest, O as handleMediaList, T as handleMediaCreate, j as handleRevisionList, k as handleMediaUpdate } from "./api-CB2KRW3W.mjs";
|
|
66
66
|
import { t as getCollectionInfo } from "./query-D0qnvePL.mjs";
|
|
67
67
|
import { r as validateContent } from "./zod-generator-DBu-v5Zy.mjs";
|
|
68
68
|
import "./schema-2x9K4t9t.mjs";
|
|
@@ -12,7 +12,7 @@ import { d as Storage } from "../types-B2rEY0ik.mjs";
|
|
|
12
12
|
import "../scheduled-publish-7kZkKw7t.mjs";
|
|
13
13
|
import "../public-url-CvNSyMJJ.mjs";
|
|
14
14
|
import "../validate-CleBZbkv.mjs";
|
|
15
|
-
import "../byline-fields-
|
|
15
|
+
import "../byline-fields-Dyts_tJ5.mjs";
|
|
16
16
|
import "../types-BuplUVZ4.mjs";
|
|
17
17
|
import "../index.mjs";
|
|
18
18
|
import { Kysely } from "kysely";
|
|
@@ -203,7 +203,14 @@ async function migrationState(db, migration) {
|
|
|
203
203
|
return row;
|
|
204
204
|
}
|
|
205
205
|
async function migrationManifest(db, migration) {
|
|
206
|
-
const rows =
|
|
206
|
+
const rows = [];
|
|
207
|
+
let after = "";
|
|
208
|
+
for (;;) {
|
|
209
|
+
const page = (await sql`SELECT * FROM _dineway_content_migration_entries WHERE migration_id=${migration.id} AND state<>'skipped' AND entry_id>${after} ORDER BY entry_id LIMIT 128`.execute(db)).rows;
|
|
210
|
+
rows.push(...page);
|
|
211
|
+
if (page.length < 128) break;
|
|
212
|
+
after = page.at(-1).entry_id;
|
|
213
|
+
}
|
|
207
214
|
return {
|
|
208
215
|
rows,
|
|
209
216
|
digest: await contentDigest(rows.map((row) => ({
|
|
@@ -395,47 +402,80 @@ async function activateContentMigrationEntry(db, migration, entryId, archive) {
|
|
|
395
402
|
});
|
|
396
403
|
invalidateCollectionCache(migration.collection);
|
|
397
404
|
}
|
|
398
|
-
/**
|
|
399
|
-
async function
|
|
400
|
-
|
|
401
|
-
|
|
405
|
+
/** Verify one bounded page. Durable per-entry receipts let a later process resume the freeze. */
|
|
406
|
+
async function verifyContentMigrationPage(db, migration, archive, limit = 20) {
|
|
407
|
+
if (!Number.isSafeInteger(limit) || limit < 1 || limit > 100) throw new ContentStorageError("INVALID_CONFIG", "Verification pages require a limit from 1 to 100.");
|
|
408
|
+
const { collection, partition, id } = migration;
|
|
409
|
+
let route = await readContentPartitionRoute(db, collection, partition);
|
|
402
410
|
const phase = await migrationState(db, migration);
|
|
411
|
+
if (route.route.migration_id !== id || route.route.state !== "frozen") throw new ContentStorageError("CONFLICT", "The final verification requires a frozen partition.");
|
|
403
412
|
if (["verified", "activating"].includes(phase.state)) return {
|
|
413
|
+
done: true,
|
|
404
414
|
count: phase.verified_count,
|
|
405
415
|
digest: phase.manifest_digest
|
|
406
416
|
};
|
|
407
417
|
if (!["frozen", "verifying"].includes(phase.state)) throw new ContentStorageError("CONFLICT", "The migration cannot be verified in its current state.");
|
|
408
418
|
await atomicBatch(db, {
|
|
409
|
-
checks: [
|
|
410
|
-
statements: [sql`UPDATE _dineway_content_partitions SET epoch=epoch+1,
|
|
419
|
+
checks: [route.check, sql`EXISTS (SELECT 1 FROM _dineway_content_migrations WHERE id=${id} AND state=${phase.state})`],
|
|
420
|
+
statements: [sql`UPDATE _dineway_content_partitions SET epoch=epoch+1,updated_at=${(/* @__PURE__ */ new Date()).toISOString()} WHERE collection=${collection} AND partition=${partition}`.compile(db), sql`UPDATE _dineway_content_migrations SET state='verifying',updated_at=${(/* @__PURE__ */ new Date()).toISOString()} WHERE id=${id}`.compile(db)]
|
|
411
421
|
});
|
|
412
|
-
const
|
|
413
|
-
|
|
414
|
-
|
|
415
|
-
|
|
416
|
-
|
|
417
|
-
|
|
418
|
-
|
|
422
|
+
const epoch = route.route.epoch + 1;
|
|
423
|
+
route = await readContentPartitionRoute(db, collection, partition);
|
|
424
|
+
if (route.route.epoch !== epoch || route.route.migration_id !== id || route.route.state !== "frozen") throw new ContentStorageError("CONFLICT", "Another verification attempt superseded this page.");
|
|
425
|
+
const verifying = sql`EXISTS (SELECT 1 FROM _dineway_content_migrations WHERE id=${id} AND state='verifying')`;
|
|
426
|
+
const current = sql`FROM _dineway_content_locations l JOIN ${sql.table(`ec_${collection}`)} c ON c.id=l.entry_id
|
|
427
|
+
LEFT JOIN _dineway_content_migration_entries m ON m.migration_id=${id} AND m.entry_id=l.entry_id
|
|
428
|
+
WHERE l.collection=${collection} AND l.partition=${partition}`;
|
|
429
|
+
const sequence = sql`(SELECT coalesce(max(sequence),0) FROM _dineway_content_changes j WHERE j.collection=l.collection AND j.entry_id=l.entry_id)`;
|
|
430
|
+
const pending = sql`${current} AND (m.state IS NULL OR m.state <> ('checked:' || ${sequence}))`;
|
|
431
|
+
const page = (await sql`SELECT l.entry_id,${sequence} AS sequence ${pending} ORDER BY l.entry_id LIMIT ${limit}`.execute(db)).rows;
|
|
432
|
+
for (const row of page) {
|
|
433
|
+
const checkpoint = await stageMigrationEntry(db, migration, row.entry_id, archive, route.route.epoch);
|
|
434
|
+
if (!checkpoint) throw new ContentStorageError("CONFLICT", "The migration entry was not prepared.");
|
|
435
|
+
await atomicBatch(db, {
|
|
436
|
+
checks: [
|
|
437
|
+
route.check,
|
|
438
|
+
verifying,
|
|
439
|
+
rowUnchanged("_dineway_content_migration_entries", { ...checkpoint }),
|
|
440
|
+
sql`${contentChangeSequence(collection, row.entry_id)}=${row.sequence}`
|
|
441
|
+
],
|
|
442
|
+
statements: [sql`UPDATE _dineway_content_migration_entries SET state=${"checked:" + row.sequence} WHERE migration_id=${id} AND entry_id=${row.entry_id}`.compile(db)]
|
|
443
|
+
});
|
|
419
444
|
}
|
|
445
|
+
if (page.length === limit) return {
|
|
446
|
+
done: false,
|
|
447
|
+
count: page.length
|
|
448
|
+
};
|
|
420
449
|
await atomicBatch(db, {
|
|
421
|
-
checks: [
|
|
422
|
-
statements: [sql`UPDATE _dineway_content_migration_entries SET state='skipped' WHERE migration_id=${
|
|
450
|
+
checks: [route.check, verifying],
|
|
451
|
+
statements: [sql`UPDATE _dineway_content_migration_entries SET state='skipped' WHERE migration_id=${id} AND NOT EXISTS (SELECT 1 FROM ${sql.table(`ec_${collection}`)} c JOIN _dineway_content_locations l ON l.collection=${collection} AND l.entry_id=c.id WHERE c.id=_dineway_content_migration_entries.entry_id AND l.partition=${partition})`.compile(db), sql`DELETE FROM _dineway_content_locations WHERE collection=${collection} AND partition=${partition} AND NOT EXISTS (SELECT 1 FROM ${sql.table(`ec_${collection}`)} c WHERE c.id=_dineway_content_locations.entry_id)`.compile(db)]
|
|
423
452
|
});
|
|
424
453
|
const manifest = await migrationManifest(db, migration);
|
|
425
454
|
await atomicBatch(db, {
|
|
426
455
|
checks: [
|
|
427
|
-
|
|
428
|
-
|
|
429
|
-
sql`(SELECT
|
|
430
|
-
sql`
|
|
456
|
+
route.check,
|
|
457
|
+
verifying,
|
|
458
|
+
sql`NOT EXISTS (SELECT 1 ${pending})`,
|
|
459
|
+
sql`(SELECT count(*) FROM _dineway_content_locations WHERE collection=${collection} AND partition=${partition})=${manifest.rows.length}`,
|
|
460
|
+
sql`(SELECT count(*) FROM _dineway_content_migration_entries WHERE migration_id=${id} AND state LIKE 'checked:%')=${manifest.rows.length}`
|
|
431
461
|
],
|
|
432
|
-
statements: [sql`UPDATE _dineway_content_migrations SET state='verified',
|
|
462
|
+
statements: [sql`UPDATE _dineway_content_migration_entries SET state='prepared' WHERE migration_id=${id} AND state LIKE 'checked:%'`.compile(db), sql`UPDATE _dineway_content_migrations SET state='verified',manifest_digest=${manifest.digest},verified_count=${manifest.rows.length},updated_at=${(/* @__PURE__ */ new Date()).toISOString()} WHERE id=${id}`.compile(db)]
|
|
433
463
|
});
|
|
434
464
|
return {
|
|
465
|
+
done: true,
|
|
435
466
|
count: manifest.rows.length,
|
|
436
467
|
digest: manifest.digest
|
|
437
468
|
};
|
|
438
469
|
}
|
|
470
|
+
async function verifyContentMigration(db, migration, archive) {
|
|
471
|
+
for (;;) {
|
|
472
|
+
const page = await verifyContentMigrationPage(db, migration, archive);
|
|
473
|
+
if (page.done) return {
|
|
474
|
+
count: page.count,
|
|
475
|
+
digest: page.digest
|
|
476
|
+
};
|
|
477
|
+
}
|
|
478
|
+
}
|
|
439
479
|
/** Reopen writes only after every sealed entry has activated; old archives remain retained. */
|
|
440
480
|
async function completeContentMigration(db, migration) {
|
|
441
481
|
const phase = await migrationState(db, migration);
|
|
@@ -524,4 +564,4 @@ async function rollbackContentMigration(db, migration, archive) {
|
|
|
524
564
|
}
|
|
525
565
|
|
|
526
566
|
//#endregion
|
|
527
|
-
export { verifyContentMigration as a,
|
|
567
|
+
export { verifyContentMigration as a, captureContentMigrationSnapshot as c, stageContentMigrationEntry as i, contentMigrationSnapshotSchema as l, completeContentMigration as n, verifyContentMigrationPage as o, rollbackContentMigration as r, bootstrapContentDirectoryPage as s, activateContentMigrationEntry as t, migrateContentStorageConfig as u };
|
package/dist/page/index.d.mts
CHANGED
|
@@ -10,7 +10,7 @@ import "../hook-events-lN-kz-4_.mjs";
|
|
|
10
10
|
import "../scheduled-publish-7kZkKw7t.mjs";
|
|
11
11
|
import "../public-url-CvNSyMJJ.mjs";
|
|
12
12
|
import "../validate-CleBZbkv.mjs";
|
|
13
|
-
import "../byline-fields-
|
|
13
|
+
import "../byline-fields-Dyts_tJ5.mjs";
|
|
14
14
|
import "../types-BuplUVZ4.mjs";
|
|
15
15
|
import { _ as CreatePublicPageContextInput, a as generateSiteSeoContributions, c as ResolvedPageMetadata, d as renderPageMetadata, f as resolvePageMetadata, g as resolvePageImage, h as imageMetadataContributions, i as generateBaseSeoContributions, l as createSha256CspHash, m as mergePageSchema, n as buildWebSiteJsonLd, o as renderFragments, p as safeJsonLdSerialize, r as cleanJsonLd, s as resolveFragments, t as buildBlogPostingJsonLd, u as escapeHtmlAttr, v as createPublicPageContext } from "../jsonld-DZXdAyOK.mjs";
|
|
16
16
|
|
package/dist/plugin-utils.d.mts
CHANGED
|
@@ -10,7 +10,7 @@ import "./hook-events-lN-kz-4_.mjs";
|
|
|
10
10
|
import "./scheduled-publish-7kZkKw7t.mjs";
|
|
11
11
|
import "./public-url-CvNSyMJJ.mjs";
|
|
12
12
|
import "./validate-CleBZbkv.mjs";
|
|
13
|
-
import "./byline-fields-
|
|
13
|
+
import "./byline-fields-Dyts_tJ5.mjs";
|
|
14
14
|
import "./types-BuplUVZ4.mjs";
|
|
15
15
|
import { DinewayHandlers } from "./astro/types.mjs";
|
|
16
16
|
|
|
@@ -10,7 +10,7 @@ import "../hook-events-lN-kz-4_.mjs";
|
|
|
10
10
|
import "../scheduled-publish-7kZkKw7t.mjs";
|
|
11
11
|
import "../public-url-CvNSyMJJ.mjs";
|
|
12
12
|
import "../validate-CleBZbkv.mjs";
|
|
13
|
-
import "../byline-fields-
|
|
13
|
+
import "../byline-fields-Dyts_tJ5.mjs";
|
|
14
14
|
import "../types-BuplUVZ4.mjs";
|
|
15
15
|
|
|
16
16
|
//#region src/plugins/adapt-sandbox-entry.d.ts
|
package/dist/runtime.d.mts
CHANGED
|
@@ -10,7 +10,7 @@ import "./hook-events-lN-kz-4_.mjs";
|
|
|
10
10
|
import "./scheduled-publish-7kZkKw7t.mjs";
|
|
11
11
|
import "./public-url-CvNSyMJJ.mjs";
|
|
12
12
|
import "./validate-CleBZbkv.mjs";
|
|
13
|
-
import "./byline-fields-
|
|
13
|
+
import "./byline-fields-Dyts_tJ5.mjs";
|
|
14
14
|
import { withPrimaryDatabase } from "./request-context.mjs";
|
|
15
15
|
import "./types-BuplUVZ4.mjs";
|
|
16
16
|
import { t as getMediaProvider } from "./provider-loader-Dl8SscrT.mjs";
|
|
@@ -11,7 +11,7 @@ import "../hook-events-lN-kz-4_.mjs";
|
|
|
11
11
|
import "../scheduled-publish-7kZkKw7t.mjs";
|
|
12
12
|
import "../public-url-CvNSyMJJ.mjs";
|
|
13
13
|
import { x as MediaReference } from "../validate-CleBZbkv.mjs";
|
|
14
|
-
import "../byline-fields-
|
|
14
|
+
import "../byline-fields-Dyts_tJ5.mjs";
|
|
15
15
|
import "../types-BuplUVZ4.mjs";
|
|
16
16
|
import { t as getPublicOrigin } from "../public-url-DLcDMtBJ.mjs";
|
|
17
17
|
import { a as generateSiteSeoContributions, c as ResolvedPageMetadata, d as renderPageMetadata, f as resolvePageMetadata, i as generateBaseSeoContributions, l as createSha256CspHash, o as renderFragments } from "../jsonld-DZXdAyOK.mjs";
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "dineway",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.45",
|
|
4
4
|
"description": "Agentic Website builder for restaurants — structured content meets AI via the Model Context Protocol",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"publishConfig": {
|
|
@@ -425,8 +425,8 @@
|
|
|
425
425
|
"upng-js": "^2.1.0",
|
|
426
426
|
"zod": "^4.4.1",
|
|
427
427
|
"@dineway-ai/admin": "^0.2.14",
|
|
428
|
-
"@dineway-ai/
|
|
429
|
-
"@dineway-ai/
|
|
428
|
+
"@dineway-ai/auth": "^0.2.7",
|
|
429
|
+
"@dineway-ai/gutenberg-to-portable-text": "^0.2.3"
|
|
430
430
|
},
|
|
431
431
|
"optionalDependencies": {
|
|
432
432
|
"@aws-sdk/client-s3": "^3.1049.0",
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|