dineway 0.1.36 → 0.1.38
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 +2 -2
- package/dist/api/route-utils.d.mts +1 -1
- package/dist/api/schemas/index.d.mts +1 -1
- package/dist/{api-K0U9SYx7.mjs → api-r5soQc-k.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/seed.d.mts +4 -0
- package/dist/astro/middleware/seed.mjs +20 -2
- package/dist/astro/middleware.mjs +2 -2
- 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/health.mjs +1 -1
- package/dist/astro/routes/api/manifest.mjs +1 -1
- package/dist/astro/routes/api/mcp.mjs +1 -1
- 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/{bylines-C8EfvtqH.d.mts → bylines-CzOBMwy1.d.mts} +4 -4
- package/dist/cli/index.mjs +89 -48
- package/dist/index.d.mts +1 -1
- package/dist/index.mjs +1 -1
- package/dist/media/local-runtime.d.mts +1 -1
- package/dist/plugins/adapt-sandbox-entry.d.mts +1 -1
- package/dist/runtime.d.mts +1 -1
- package/dist/version-BBFj5zZe.mjs +6 -0
- package/package.json +1 -1
- package/dist/version-BCYrkQqz.mjs +0 -6
package/README.md
CHANGED
|
@@ -244,8 +244,8 @@ What happens:
|
|
|
244
244
|
3. The CLI recovers an existing site by `placeId` for the same owner, or creates the one allowed site for that restaurant.
|
|
245
245
|
4. The managed database is provisioned and initialized. Repeat deploys skip migrations and seed when local deploy metadata already matches the current site, database, Dineway migration set, and seed file.
|
|
246
246
|
5. The site is scanned, changed files are uploaded, global CDN is configured, and remote build progress is polled.
|
|
247
|
-
6.
|
|
248
|
-
7. `DINEWAY_SITE_URL` and `DINEWAY_TOKEN` are saved to your project `.env` automatically so remote CLI commands work out of the box.
|
|
247
|
+
6. On first bootstrap issue, you receive a **one-time setup link** to register your admin passkey on the live site.
|
|
248
|
+
7. `DINEWAY_SITE_URL` and `DINEWAY_TOKEN` are saved to your project `.env` automatically so remote CLI commands work out of the box. Repeat deploys refresh `DINEWAY_TOKEN` from Forgeway's already-issued bootstrap response.
|
|
249
249
|
|
|
250
250
|
Examples:
|
|
251
251
|
|
|
@@ -5,7 +5,7 @@ import "../types-BgE6gMFI.mjs";
|
|
|
5
5
|
import "../runner-pAnQS6iI.mjs";
|
|
6
6
|
import "../index-2tBfB_8X.mjs";
|
|
7
7
|
import "../index-CpbixmRL.mjs";
|
|
8
|
-
import "../bylines-
|
|
8
|
+
import "../bylines-CzOBMwy1.mjs";
|
|
9
9
|
import "../types-BBETcziA.mjs";
|
|
10
10
|
import "../validate-BzUCAU2a.mjs";
|
|
11
11
|
import { Kysely } from "kysely";
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { $ as updateSectionBody, $n as cursorPaginationQuery, $t as createCommentBody, A as userDetailSchema, An as mediaUploadUrlBody, At as passkeyRegisterVerifyBody, B as wpRewriteUrlsBody, Bn as contentScheduleBody, Bt as contextEntryCreateBody, C as updateWidgetBody, Cn as mediaExistingResponseSchema, Ct as authMeActionBody, D as widgetSchema, Dn as mediaProviderListQuery, Dt as magicLinkSendBody, E as widgetAreaWithWidgetsSchema, En as mediaListResponseSchema, Et as inviteRegisterOptionsBody, F as importProbeBody, Fn as contentListQuery, Ft as reviewRequestListQuery, G as searchResultSchema, Gn as contentTranslationsResponseSchema, Gt as contextEntrySupersedeBody, H as searchQuery, Hn as contentSeoSchema, Ht as contextEntryListQuery, I as wpMediaImportBody, In as contentListResponseSchema, It as reviewRequestResolveBody, J as siteSettingsSchema, Jn as trashedContentItemSchema, Jt as commentBulkResponseSchema, K as searchSuggestQuery, Kn as contentTrashQuery, Kt as adminCommentListResponseSchema, L as wpPluginAnalyzeBody, Ln as contentPreviewUrlBody, Lt as hitlRequestListQuery, M as userSchema, Mn as contentCompareResponseSchema, Mt as passkeyVerifyBody, N as userUpdateBody, Nn as contentCreateBody, Nt as signupCompleteBody, O as allowedDomainCreateBody, On as mediaResponseSchema, Ot as passkeyOptionsBody, P as usersListQuery, Pn as contentItemSchema, Pt as signupRequestBody, Q as sectionsListQuery, Qn as countResponseSchema, Qt as commentStatusBody, R as wpPluginExecuteBody, Rn as contentPublishBody, Rt as hitlRequestResolveBody, S as reorderWidgetsBody, Sn as mediaConfirmResponseSchema, St as updateMenuItemBody, T as widgetAreaWithWidgetsAndCountSchema, Tn as mediaListQuery, Tt as inviteCreateBody, U as searchRebuildBody, Un as contentTermsBody, Ut as contextEntryReviewBody, V as searchEnableBody, Vn as contentSeoInput, Vt as contextEntryDiffQuery, W as searchResponseSchema, Wn as contentTranslationSchema, Wt as contextEntryStaleQuery, X as sectionListResponseSchema, Xn as VALID_ROLE_LEVELS, Xt as commentListQuery, Y as createSectionBody, Yn as trashedContentListResponseSchema, Yt as commentCountsResponseSchema, Z as sectionSchema, Zn as apiErrorSchema, Zt as commentSchema, _ as redirectSchema, _n as updateCollectionBody, _t as menuSchema, a as bylineUpdateBody, an as collectionSchema, ar as roleLevel, at as termGetResponseSchema, b as createWidgetAreaBody, bn as formatFileSize, bt as reorderMenuItemsBody, c as createRedirectBody, cn as createFieldBody, ct as termSchema, d as notFoundListResponseSchema, dn as fieldResponseSchema, dt as updateTermBody, en as publicCommentListResponseSchema, er as deleteResponseSchema, et as createTaxonomyDefBody, f as notFoundPruneBody, fn as fieldSchema, ft as createMenuBody, g as redirectListResponseSchema, gn as schemaExportQuery, gt as menuListItemSchema, h as notFoundSummarySchema, hn as orphanedTableSchema, ht as menuItemTypeEnum, i as bylineSummarySchema, in as collectionResponseSchema, ir as offsetPaginationQuery, it as taxonomyListResponseSchema, j as userListResponseSchema, jn as mediaUploadUrlResponseSchema, jt as passkeyRenameBody, k as allowedDomainUpdateBody, kn as mediaUpdateBody, kt as passkeyRegisterOptionsBody, l as notFoundEntrySchema, ln as fieldListResponseSchema, lt as termTranslationsSchema, m as notFoundSummaryResponseSchema, mn as orphanedTableListResponseSchema, mt as menuItemSchema, n as bylineCreditSchema, nn as collectionGetQuery, nr as localeCode, nt as taxonomyDefSchema, o as bylinesListQuery, on as collectionWithFieldsResponseSchema, or as slugPattern, ot as termListResponseSchema, p as notFoundSummaryQuery, pn as orphanRegisterBody, pt as createMenuItemBody, q as settingsUpdateBody, qn as contentUpdateBody, qt as commentBulkBody, r as bylineListResponseSchema, rn as collectionListResponseSchema, rr as localeFilterQuery, rt as taxonomyDefTranslationsSchema, s as contentBylineInputSchema, sn as createCollectionBody, sr as successEnvelope, st as termResponseSchema, t as bylineCreateBody, tn as publicCommentSchema, tr as httpUrl, tt as createTermBody, u as notFoundListQuery, un as fieldReorderBody, ut as termWithCountSchema, v as redirectsListQuery, vn as updateFieldBody, vt as menuTranslationsSchema, w as widgetAreaSchema, wn as mediaItemSchema, wt as inviteCompleteBody, x as createWidgetBody, xn as mediaConfirmBody, xt as updateMenuBody, y as updateRedirectBody, yn as DEFAULT_MAX_UPLOAD_SIZE, yt as menuWithItemsSchema, z as wpPrepareBody, zn as contentResponseSchema, zt as siteBriefingQuery } from "../../bylines-
|
|
1
|
+
import { $ as updateSectionBody, $n as cursorPaginationQuery, $t as createCommentBody, A as userDetailSchema, An as mediaUploadUrlBody, At as passkeyRegisterVerifyBody, B as wpRewriteUrlsBody, Bn as contentScheduleBody, Bt as contextEntryCreateBody, C as updateWidgetBody, Cn as mediaExistingResponseSchema, Ct as authMeActionBody, D as widgetSchema, Dn as mediaProviderListQuery, Dt as magicLinkSendBody, E as widgetAreaWithWidgetsSchema, En as mediaListResponseSchema, Et as inviteRegisterOptionsBody, F as importProbeBody, Fn as contentListQuery, Ft as reviewRequestListQuery, G as searchResultSchema, Gn as contentTranslationsResponseSchema, Gt as contextEntrySupersedeBody, H as searchQuery, Hn as contentSeoSchema, Ht as contextEntryListQuery, I as wpMediaImportBody, In as contentListResponseSchema, It as reviewRequestResolveBody, J as siteSettingsSchema, Jn as trashedContentItemSchema, Jt as commentBulkResponseSchema, K as searchSuggestQuery, Kn as contentTrashQuery, Kt as adminCommentListResponseSchema, L as wpPluginAnalyzeBody, Ln as contentPreviewUrlBody, Lt as hitlRequestListQuery, M as userSchema, Mn as contentCompareResponseSchema, Mt as passkeyVerifyBody, N as userUpdateBody, Nn as contentCreateBody, Nt as signupCompleteBody, O as allowedDomainCreateBody, On as mediaResponseSchema, Ot as passkeyOptionsBody, P as usersListQuery, Pn as contentItemSchema, Pt as signupRequestBody, Q as sectionsListQuery, Qn as countResponseSchema, Qt as commentStatusBody, R as wpPluginExecuteBody, Rn as contentPublishBody, Rt as hitlRequestResolveBody, S as reorderWidgetsBody, Sn as mediaConfirmResponseSchema, St as updateMenuItemBody, T as widgetAreaWithWidgetsAndCountSchema, Tn as mediaListQuery, Tt as inviteCreateBody, U as searchRebuildBody, Un as contentTermsBody, Ut as contextEntryReviewBody, V as searchEnableBody, Vn as contentSeoInput, Vt as contextEntryDiffQuery, W as searchResponseSchema, Wn as contentTranslationSchema, Wt as contextEntryStaleQuery, X as sectionListResponseSchema, Xn as VALID_ROLE_LEVELS, Xt as commentListQuery, Y as createSectionBody, Yn as trashedContentListResponseSchema, Yt as commentCountsResponseSchema, Z as sectionSchema, Zn as apiErrorSchema, Zt as commentSchema, _ as redirectSchema, _n as updateCollectionBody, _t as menuSchema, a as bylineUpdateBody, an as collectionSchema, ar as roleLevel, at as termGetResponseSchema, b as createWidgetAreaBody, bn as formatFileSize, bt as reorderMenuItemsBody, c as createRedirectBody, cn as createFieldBody, ct as termSchema, d as notFoundListResponseSchema, dn as fieldResponseSchema, dt as updateTermBody, en as publicCommentListResponseSchema, er as deleteResponseSchema, et as createTaxonomyDefBody, f as notFoundPruneBody, fn as fieldSchema, ft as createMenuBody, g as redirectListResponseSchema, gn as schemaExportQuery, gt as menuListItemSchema, h as notFoundSummarySchema, hn as orphanedTableSchema, ht as menuItemTypeEnum, i as bylineSummarySchema, in as collectionResponseSchema, ir as offsetPaginationQuery, it as taxonomyListResponseSchema, j as userListResponseSchema, jn as mediaUploadUrlResponseSchema, jt as passkeyRenameBody, k as allowedDomainUpdateBody, kn as mediaUpdateBody, kt as passkeyRegisterOptionsBody, l as notFoundEntrySchema, ln as fieldListResponseSchema, lt as termTranslationsSchema, m as notFoundSummaryResponseSchema, mn as orphanedTableListResponseSchema, mt as menuItemSchema, n as bylineCreditSchema, nn as collectionGetQuery, nr as localeCode, nt as taxonomyDefSchema, o as bylinesListQuery, on as collectionWithFieldsResponseSchema, or as slugPattern, ot as termListResponseSchema, p as notFoundSummaryQuery, pn as orphanRegisterBody, pt as createMenuItemBody, q as settingsUpdateBody, qn as contentUpdateBody, qt as commentBulkBody, r as bylineListResponseSchema, rn as collectionListResponseSchema, rr as localeFilterQuery, rt as taxonomyDefTranslationsSchema, s as contentBylineInputSchema, sn as createCollectionBody, sr as successEnvelope, st as termResponseSchema, t as bylineCreateBody, tn as publicCommentSchema, tr as httpUrl, tt as createTermBody, u as notFoundListQuery, un as fieldReorderBody, ut as termWithCountSchema, v as redirectsListQuery, vn as updateFieldBody, vt as menuTranslationsSchema, w as widgetAreaSchema, wn as mediaItemSchema, wt as inviteCompleteBody, x as createWidgetBody, xn as mediaConfirmBody, xt as updateMenuBody, y as updateRedirectBody, yn as DEFAULT_MAX_UPLOAD_SIZE, yt as menuWithItemsSchema, z as wpPrepareBody, zn as contentResponseSchema, zt as siteBriefingQuery } from "../../bylines-CzOBMwy1.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, bylineListResponseSchema, bylineSummarySchema, bylineUpdateBody, bylinesListQuery, collectionGetQuery, collectionListResponseSchema, collectionResponseSchema, collectionSchema, collectionWithFieldsResponseSchema, commentBulkBody, commentBulkResponseSchema, commentCountsResponseSchema, commentListQuery, commentSchema, commentStatusBody, 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, 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 };
|
|
@@ -16,7 +16,7 @@ import { n as requestCached } from "./request-cache-BpwuE2ix.mjs";
|
|
|
16
16
|
import { u as PluginStateRepository } from "./briefing-Jsxs587i.mjs";
|
|
17
17
|
import { n as SchemaRegistry, t as SchemaError } from "./registry-i__XP2WV.mjs";
|
|
18
18
|
import { n as hashString } from "./hash-DFFrkivP.mjs";
|
|
19
|
-
import { n as VERSION, t as COMMIT } from "./version-
|
|
19
|
+
import { n as VERSION, t as COMMIT } from "./version-BBFj5zZe.mjs";
|
|
20
20
|
import { i as pluginManifestSchema, r as normalizeManifestRoute } from "./manifest-schema-C6fzQoWn.mjs";
|
|
21
21
|
import { t as DinewayStorageError } from "./types-CNNQ8l0v.mjs";
|
|
22
22
|
import { sql } from "kysely";
|
package/dist/astro/index.d.mts
CHANGED
|
@@ -6,7 +6,7 @@ import "../types-BgE6gMFI.mjs";
|
|
|
6
6
|
import "../runner-pAnQS6iI.mjs";
|
|
7
7
|
import "../index-2tBfB_8X.mjs";
|
|
8
8
|
import "../index-CpbixmRL.mjs";
|
|
9
|
-
import "../bylines-
|
|
9
|
+
import "../bylines-CzOBMwy1.mjs";
|
|
10
10
|
import "../types-BBETcziA.mjs";
|
|
11
11
|
import "../validate-BzUCAU2a.mjs";
|
|
12
12
|
import { DinewayHandlers, DinewayManifest, ManifestCollection } from "./types.mjs";
|
package/dist/astro/index.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { n as VERSION, t as COMMIT } from "../version-
|
|
1
|
+
import { n as VERSION, t as COMMIT } from "../version-BBFj5zZe.mjs";
|
|
2
2
|
import { t as defaultSeed } from "../default-5A3XVR7L.mjs";
|
|
3
3
|
import { n as validateAllowedOrigins, r as validateOriginShape } from "../allowed-origins-3RuuoFjC.mjs";
|
|
4
4
|
import { createRequire } from "node:module";
|
|
@@ -5,7 +5,7 @@ import "../../types-BgE6gMFI.mjs";
|
|
|
5
5
|
import "../../runner-pAnQS6iI.mjs";
|
|
6
6
|
import "../../index-2tBfB_8X.mjs";
|
|
7
7
|
import "../../index-CpbixmRL.mjs";
|
|
8
|
-
import "../../bylines-
|
|
8
|
+
import "../../bylines-CzOBMwy1.mjs";
|
|
9
9
|
import "../../types-BBETcziA.mjs";
|
|
10
10
|
import "../../validate-BzUCAU2a.mjs";
|
|
11
11
|
import { DinewayHandlers } from "../types.mjs";
|
|
@@ -73,7 +73,25 @@ async function seedForgewayAdmin(db, env) {
|
|
|
73
73
|
await runMigrations(db);
|
|
74
74
|
return db.transaction().execute(async (trx) => {
|
|
75
75
|
const userCount = await trx.selectFrom("users").select((eb) => eb.fn.countAll().as("count")).executeTakeFirstOrThrow();
|
|
76
|
-
if (Number(userCount.count) > 0)
|
|
76
|
+
if (Number(userCount.count) > 0) {
|
|
77
|
+
if (seedEnv.DINEWAY_SEED_ADMIN_API_TOKEN_HASH && seedEnv.DINEWAY_SEED_ADMIN_API_TOKEN_PREFIX) {
|
|
78
|
+
const existingAdmin = await trx.selectFrom("users").select("id").where("email", "=", email).where("role", "=", ROLE_ADMIN).executeTakeFirst();
|
|
79
|
+
if (existingAdmin) {
|
|
80
|
+
const apiToken = await seedApiTokenFromHash(trx, {
|
|
81
|
+
tokenHash: seedEnv.DINEWAY_SEED_ADMIN_API_TOKEN_HASH,
|
|
82
|
+
prefix: seedEnv.DINEWAY_SEED_ADMIN_API_TOKEN_PREFIX,
|
|
83
|
+
userId: existingAdmin.id,
|
|
84
|
+
expiresAt: seedEnv.DINEWAY_SEED_ADMIN_API_TOKEN_EXPIRES_AT ?? null
|
|
85
|
+
});
|
|
86
|
+
return {
|
|
87
|
+
status: "seeded_existing_user_api_token",
|
|
88
|
+
userId: existingAdmin.id,
|
|
89
|
+
apiTokenSeeded: apiToken.inserted
|
|
90
|
+
};
|
|
91
|
+
}
|
|
92
|
+
}
|
|
93
|
+
return { status: "skipped_existing_users" };
|
|
94
|
+
}
|
|
77
95
|
const now = (/* @__PURE__ */ new Date()).toISOString();
|
|
78
96
|
const userId = ulid();
|
|
79
97
|
const name = seedEnv.DINEWAY_SEED_ADMIN_NAME ?? defaultNameForEmail(email);
|
|
@@ -125,7 +143,7 @@ const onRequest = defineMiddleware(async (context, next) => {
|
|
|
125
143
|
DINEWAY_SEED_ADMIN_API_TOKEN_PREFIX: import.meta.env.DINEWAY_SEED_ADMIN_API_TOKEN_PREFIX,
|
|
126
144
|
DINEWAY_SEED_ADMIN_API_TOKEN_EXPIRES_AT: import.meta.env.DINEWAY_SEED_ADMIN_API_TOKEN_EXPIRES_AT
|
|
127
145
|
});
|
|
128
|
-
if (result.status === "seeded" || result.status === "skipped_existing_users") seedChecked = true;
|
|
146
|
+
if (result.status === "seeded" || result.status === "seeded_existing_user_api_token" || result.status === "skipped_existing_users") seedChecked = true;
|
|
129
147
|
}
|
|
130
148
|
return next();
|
|
131
149
|
});
|
|
@@ -25,7 +25,7 @@ import "../byline-DpNNSjET.mjs";
|
|
|
25
25
|
import { t as normalizeMediaValue } from "../normalize-BY_EJnd9.mjs";
|
|
26
26
|
import "../placeholder-b0Ufu0La.mjs";
|
|
27
27
|
import "../seo-BPb_reaG.mjs";
|
|
28
|
-
import { $ as validateRev, A as handleRevisionGet, B as handleContentDuplicate, D as handleMediaGet, E as handleMediaDelete, F as handleContentCountScheduled, G as handleContentPermanentDelete, H as handleContentGetIncludingTrashed, I as handleContentCountTrashed, J as handleContentSchedule, K as handleContentPublish, L as handleContentCreate, M as handleRevisionRestore, O as handleMediaList, P as handleContentCompare, Q as handleContentUpdate, R as handleContentDelete, T as handleMediaCreate, U as handleContentList, V as handleContentGet, W as handleContentListTrashed, X as handleContentUnpublish, Y as handleContentTranslations, Z as handleContentUnschedule, d as createPluginBundleStore, j as handleRevisionList, k as handleMediaUpdate, q as handleContentRestore, z as handleContentDiscardDraft } from "../api-
|
|
28
|
+
import { $ as validateRev, A as handleRevisionGet, B as handleContentDuplicate, D as handleMediaGet, E as handleMediaDelete, F as handleContentCountScheduled, G as handleContentPermanentDelete, H as handleContentGetIncludingTrashed, I as handleContentCountTrashed, J as handleContentSchedule, K as handleContentPublish, L as handleContentCreate, M as handleRevisionRestore, O as handleMediaList, P as handleContentCompare, Q as handleContentUpdate, R as handleContentDelete, T as handleMediaCreate, U as handleContentList, V as handleContentGet, W as handleContentListTrashed, X as handleContentUnpublish, Y as handleContentTranslations, Z as handleContentUnschedule, d as createPluginBundleStore, j as handleRevisionList, k as handleMediaUpdate, q as handleContentRestore, z as handleContentDiscardDraft } from "../api-r5soQc-k.mjs";
|
|
29
29
|
import { n as requestCached } from "../request-cache-BpwuE2ix.mjs";
|
|
30
30
|
import "../dashboard-BC9bgPOH.mjs";
|
|
31
31
|
import { u as PluginStateRepository } from "../briefing-Jsxs587i.mjs";
|
|
@@ -37,7 +37,7 @@ import { c as createPublicMediaUrlResolver } from "../settings-DORe02PC.mjs";
|
|
|
37
37
|
import "../briefing-DD82WaEy.mjs";
|
|
38
38
|
import "../review-requests-DuIxM4YM.mjs";
|
|
39
39
|
import { n as hashString } from "../hash-DFFrkivP.mjs";
|
|
40
|
-
import { n as VERSION, t as COMMIT } from "../version-
|
|
40
|
+
import { n as VERSION, t as COMMIT } from "../version-BBFj5zZe.mjs";
|
|
41
41
|
import "../query-BnRpB09I.mjs";
|
|
42
42
|
import "../zod-generator-C4BgFBZV.mjs";
|
|
43
43
|
import "../schema-U-SeFWwn.mjs";
|
|
@@ -14,7 +14,7 @@ import "../../../../../../menus-DOaL6NaF.mjs";
|
|
|
14
14
|
import "../../../../../../redirect-BaVvo2te.mjs";
|
|
15
15
|
import "../../../../../../byline-DpNNSjET.mjs";
|
|
16
16
|
import "../../../../../../seo-BPb_reaG.mjs";
|
|
17
|
-
import "../../../../../../api-
|
|
17
|
+
import "../../../../../../api-r5soQc-k.mjs";
|
|
18
18
|
import "../../../../../../request-cache-BpwuE2ix.mjs";
|
|
19
19
|
import "../../../../../../dashboard-BC9bgPOH.mjs";
|
|
20
20
|
import { c as handlePluginGet, o as handlePluginDisable } from "../../../../../../briefing-Jsxs587i.mjs";
|
|
@@ -14,7 +14,7 @@ import "../../../../../../menus-DOaL6NaF.mjs";
|
|
|
14
14
|
import "../../../../../../redirect-BaVvo2te.mjs";
|
|
15
15
|
import "../../../../../../byline-DpNNSjET.mjs";
|
|
16
16
|
import "../../../../../../seo-BPb_reaG.mjs";
|
|
17
|
-
import "../../../../../../api-
|
|
17
|
+
import "../../../../../../api-r5soQc-k.mjs";
|
|
18
18
|
import "../../../../../../request-cache-BpwuE2ix.mjs";
|
|
19
19
|
import "../../../../../../dashboard-BC9bgPOH.mjs";
|
|
20
20
|
import { c as handlePluginGet, s as handlePluginEnable } from "../../../../../../briefing-Jsxs587i.mjs";
|
|
@@ -13,7 +13,7 @@ import "../../../../../../menus-DOaL6NaF.mjs";
|
|
|
13
13
|
import "../../../../../../redirect-BaVvo2te.mjs";
|
|
14
14
|
import "../../../../../../byline-DpNNSjET.mjs";
|
|
15
15
|
import "../../../../../../seo-BPb_reaG.mjs";
|
|
16
|
-
import "../../../../../../api-
|
|
16
|
+
import "../../../../../../api-r5soQc-k.mjs";
|
|
17
17
|
import "../../../../../../request-cache-BpwuE2ix.mjs";
|
|
18
18
|
import "../../../../../../dashboard-BC9bgPOH.mjs";
|
|
19
19
|
import { c as handlePluginGet } from "../../../../../../briefing-Jsxs587i.mjs";
|
|
@@ -14,7 +14,7 @@ import "../../../../../../menus-DOaL6NaF.mjs";
|
|
|
14
14
|
import "../../../../../../redirect-BaVvo2te.mjs";
|
|
15
15
|
import "../../../../../../byline-DpNNSjET.mjs";
|
|
16
16
|
import "../../../../../../seo-BPb_reaG.mjs";
|
|
17
|
-
import { a as handleMarketplaceUninstall } from "../../../../../../api-
|
|
17
|
+
import { a as handleMarketplaceUninstall } from "../../../../../../api-r5soQc-k.mjs";
|
|
18
18
|
import "../../../../../../request-cache-BpwuE2ix.mjs";
|
|
19
19
|
import "../../../../../../dashboard-BC9bgPOH.mjs";
|
|
20
20
|
import { l as handlePluginList } from "../../../../../../briefing-Jsxs587i.mjs";
|
|
@@ -14,7 +14,7 @@ import "../../../../../../menus-DOaL6NaF.mjs";
|
|
|
14
14
|
import "../../../../../../redirect-BaVvo2te.mjs";
|
|
15
15
|
import "../../../../../../byline-DpNNSjET.mjs";
|
|
16
16
|
import "../../../../../../seo-BPb_reaG.mjs";
|
|
17
|
-
import { c as handleMarketplaceUpdatePreview, o as handleMarketplaceUpdate } from "../../../../../../api-
|
|
17
|
+
import { c as handleMarketplaceUpdatePreview, o as handleMarketplaceUpdate } from "../../../../../../api-r5soQc-k.mjs";
|
|
18
18
|
import "../../../../../../request-cache-BpwuE2ix.mjs";
|
|
19
19
|
import "../../../../../../dashboard-BC9bgPOH.mjs";
|
|
20
20
|
import "../../../../../../briefing-Jsxs587i.mjs";
|
|
@@ -13,7 +13,7 @@ import "../../../../../menus-DOaL6NaF.mjs";
|
|
|
13
13
|
import "../../../../../redirect-BaVvo2te.mjs";
|
|
14
14
|
import "../../../../../byline-DpNNSjET.mjs";
|
|
15
15
|
import "../../../../../seo-BPb_reaG.mjs";
|
|
16
|
-
import "../../../../../api-
|
|
16
|
+
import "../../../../../api-r5soQc-k.mjs";
|
|
17
17
|
import "../../../../../request-cache-BpwuE2ix.mjs";
|
|
18
18
|
import "../../../../../dashboard-BC9bgPOH.mjs";
|
|
19
19
|
import { l as handlePluginList } from "../../../../../briefing-Jsxs587i.mjs";
|
|
@@ -13,7 +13,7 @@ import "../../../../../../../menus-DOaL6NaF.mjs";
|
|
|
13
13
|
import "../../../../../../../redirect-BaVvo2te.mjs";
|
|
14
14
|
import "../../../../../../../byline-DpNNSjET.mjs";
|
|
15
15
|
import "../../../../../../../seo-BPb_reaG.mjs";
|
|
16
|
-
import { t as handleMarketplaceGetPlugin } from "../../../../../../../api-
|
|
16
|
+
import { t as handleMarketplaceGetPlugin } from "../../../../../../../api-r5soQc-k.mjs";
|
|
17
17
|
import "../../../../../../../request-cache-BpwuE2ix.mjs";
|
|
18
18
|
import "../../../../../../../dashboard-BC9bgPOH.mjs";
|
|
19
19
|
import "../../../../../../../briefing-Jsxs587i.mjs";
|
|
@@ -14,7 +14,7 @@ import "../../../../../../../menus-DOaL6NaF.mjs";
|
|
|
14
14
|
import "../../../../../../../redirect-BaVvo2te.mjs";
|
|
15
15
|
import "../../../../../../../byline-DpNNSjET.mjs";
|
|
16
16
|
import "../../../../../../../seo-BPb_reaG.mjs";
|
|
17
|
-
import { n as handleMarketplaceInstall, r as handleMarketplaceInstallPreview } from "../../../../../../../api-
|
|
17
|
+
import { n as handleMarketplaceInstall, r as handleMarketplaceInstallPreview } from "../../../../../../../api-r5soQc-k.mjs";
|
|
18
18
|
import "../../../../../../../request-cache-BpwuE2ix.mjs";
|
|
19
19
|
import "../../../../../../../dashboard-BC9bgPOH.mjs";
|
|
20
20
|
import "../../../../../../../briefing-Jsxs587i.mjs";
|
|
@@ -13,7 +13,7 @@ import "../../../../../../menus-DOaL6NaF.mjs";
|
|
|
13
13
|
import "../../../../../../redirect-BaVvo2te.mjs";
|
|
14
14
|
import "../../../../../../byline-DpNNSjET.mjs";
|
|
15
15
|
import "../../../../../../seo-BPb_reaG.mjs";
|
|
16
|
-
import { i as handleMarketplaceSearch } from "../../../../../../api-
|
|
16
|
+
import { i as handleMarketplaceSearch } from "../../../../../../api-r5soQc-k.mjs";
|
|
17
17
|
import "../../../../../../request-cache-BpwuE2ix.mjs";
|
|
18
18
|
import "../../../../../../dashboard-BC9bgPOH.mjs";
|
|
19
19
|
import "../../../../../../briefing-Jsxs587i.mjs";
|
|
@@ -13,7 +13,7 @@ import "../../../../../menus-DOaL6NaF.mjs";
|
|
|
13
13
|
import "../../../../../redirect-BaVvo2te.mjs";
|
|
14
14
|
import "../../../../../byline-DpNNSjET.mjs";
|
|
15
15
|
import "../../../../../seo-BPb_reaG.mjs";
|
|
16
|
-
import { s as handleMarketplaceUpdateCheck } from "../../../../../api-
|
|
16
|
+
import { s as handleMarketplaceUpdateCheck } from "../../../../../api-r5soQc-k.mjs";
|
|
17
17
|
import "../../../../../request-cache-BpwuE2ix.mjs";
|
|
18
18
|
import "../../../../../dashboard-BC9bgPOH.mjs";
|
|
19
19
|
import "../../../../../briefing-Jsxs587i.mjs";
|
|
@@ -13,7 +13,7 @@ import "../../../../../../../menus-DOaL6NaF.mjs";
|
|
|
13
13
|
import "../../../../../../../redirect-BaVvo2te.mjs";
|
|
14
14
|
import "../../../../../../../byline-DpNNSjET.mjs";
|
|
15
15
|
import "../../../../../../../seo-BPb_reaG.mjs";
|
|
16
|
-
import { l as handleThemeGetDetail } from "../../../../../../../api-
|
|
16
|
+
import { l as handleThemeGetDetail } from "../../../../../../../api-r5soQc-k.mjs";
|
|
17
17
|
import "../../../../../../../request-cache-BpwuE2ix.mjs";
|
|
18
18
|
import "../../../../../../../dashboard-BC9bgPOH.mjs";
|
|
19
19
|
import "../../../../../../../briefing-Jsxs587i.mjs";
|
|
@@ -13,7 +13,7 @@ import "../../../../../../menus-DOaL6NaF.mjs";
|
|
|
13
13
|
import "../../../../../../redirect-BaVvo2te.mjs";
|
|
14
14
|
import "../../../../../../byline-DpNNSjET.mjs";
|
|
15
15
|
import "../../../../../../seo-BPb_reaG.mjs";
|
|
16
|
-
import { u as handleThemeSearch } from "../../../../../../api-
|
|
16
|
+
import { u as handleThemeSearch } from "../../../../../../api-r5soQc-k.mjs";
|
|
17
17
|
import "../../../../../../request-cache-BpwuE2ix.mjs";
|
|
18
18
|
import "../../../../../../dashboard-BC9bgPOH.mjs";
|
|
19
19
|
import "../../../../../../briefing-Jsxs587i.mjs";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { n as VERSION, t as COMMIT } from "../../../version-
|
|
1
|
+
import { n as VERSION, t as COMMIT } from "../../../version-BBFj5zZe.mjs";
|
|
2
2
|
import { r as handleError } from "../../../error-DLkgOP5m.mjs";
|
|
3
3
|
import { t as getAuthMode } from "../../../mode-Bd55iLcP.mjs";
|
|
4
4
|
import { i as experimentalSiteContextWorkflowsEnabled } from "../../../experimental-workflows-BbZbIEZp.mjs";
|
|
@@ -14,7 +14,7 @@ import "../../../fts-manager-DnfOsF4s.mjs";
|
|
|
14
14
|
import "../../../registry-i__XP2WV.mjs";
|
|
15
15
|
import "../../../loader-p2imNN98.mjs";
|
|
16
16
|
import "../../../settings-DORe02PC.mjs";
|
|
17
|
-
import { n as VERSION } from "../../../version-
|
|
17
|
+
import { n as VERSION } from "../../../version-BBFj5zZe.mjs";
|
|
18
18
|
import "../../../query-BnRpB09I.mjs";
|
|
19
19
|
import "../../../zod-generator-C4BgFBZV.mjs";
|
|
20
20
|
import "../../../schema-U-SeFWwn.mjs";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { n as VERSION } from "../../../version-
|
|
1
|
+
import { n as VERSION } from "../../../version-BBFj5zZe.mjs";
|
|
2
2
|
import { r as handleError } from "../../../error-DLkgOP5m.mjs";
|
|
3
3
|
import { $ as createMenuBody, $t as contentListQuery, A as searchRebuildBody, B as updateSectionBody, Bt as mediaConfirmResponseSchema, C as userDetailSchema, D as usersListQuery, Dt as fieldListResponseSchema, E as userUpdateBody, Et as createFieldBody, F as siteSettingsSchema, Ft as updateCollectionBody, G as taxonomyListResponseSchema, H as createTermBody, I as createSectionBody, It as updateFieldBody, J as termResponseSchema, Jt as mediaUploadUrlBody, K as termGetResponseSchema, Kt as mediaResponseSchema, L as sectionListResponseSchema, Lt as DEFAULT_MAX_UPLOAD_SIZE, Mn as successEnvelope, Mt as orphanedTableListResponseSchema, N as searchSuggestQuery, O as searchEnableBody, Ot as fieldReorderBody, P as settingsUpdateBody, Q as updateTermBody, Qt as contentItemSchema, R as sectionSchema, S as allowedDomainUpdateBody, Sn as apiErrorSchema, St as collectionResponseSchema, T as userSchema, Tn as deleteResponseSchema, Tt as createCollectionBody, Ut as mediaListQuery, Vt as mediaExistingResponseSchema, Wt as mediaListResponseSchema, Xt as contentCompareResponseSchema, Yt as mediaUploadUrlResponseSchema, Zt as contentCreateBody, _ as widgetAreaSchema, _t as createCommentBody, a as notFoundPruneBody, b as widgetSchema, bt as collectionGetQuery, ct as updateMenuBody, d as redirectsListQuery, dn as contentUpdateBody, dt as commentBulkBody, en as contentListResponseSchema, et as createMenuItemBody, f as updateRedirectBody, ft as commentBulkResponseSchema, g as updateWidgetBody, gt as commentStatusBody, h as reorderWidgetsBody, ht as commentSchema, i as notFoundListResponseSchema, in as contentScheduleBody, j as searchResponseSchema, jt as orphanRegisterBody, k as searchQuery, kt as fieldResponseSchema, l as redirectListResponseSchema, ln as contentTranslationsResponseSchema, lt as updateMenuItemBody, m as createWidgetBody, mt as commentListQuery, nn as contentPublishBody, ot as menuWithItemsSchema, p as createWidgetAreaBody, pn as trashedContentListResponseSchema, pt as commentCountsResponseSchema, q as termListResponseSchema, qt as mediaUpdateBody, r as notFoundListQuery, rn as contentResponseSchema, rt as menuListItemSchema, s as notFoundSummaryResponseSchema, sn as contentTermsBody, st as reorderMenuItemsBody, t as createRedirectBody, tt as menuItemSchema, u as redirectSchema, un as contentTrashQuery, ut as adminCommentListResponseSchema, v as widgetAreaWithWidgetsAndCountSchema, vt as publicCommentListResponseSchema, w as userListResponseSchema, wt as collectionWithFieldsResponseSchema, x as allowedDomainCreateBody, xt as collectionListResponseSchema, y as widgetAreaWithWidgetsSchema, z as sectionsListQuery, zt as mediaConfirmBody } from "../../../redirects-x5ol_Qj9.mjs";
|
|
4
4
|
import { z } from "zod";
|
|
@@ -13,7 +13,7 @@ import "../../../../../../../menus-DOaL6NaF.mjs";
|
|
|
13
13
|
import "../../../../../../../redirect-BaVvo2te.mjs";
|
|
14
14
|
import "../../../../../../../byline-DpNNSjET.mjs";
|
|
15
15
|
import "../../../../../../../seo-BPb_reaG.mjs";
|
|
16
|
-
import { b as handleSchemaFieldDelete, w as handleSchemaFieldUpdate, x as handleSchemaFieldGet } from "../../../../../../../api-
|
|
16
|
+
import { b as handleSchemaFieldDelete, w as handleSchemaFieldUpdate, x as handleSchemaFieldGet } from "../../../../../../../api-r5soQc-k.mjs";
|
|
17
17
|
import "../../../../../../../request-cache-BpwuE2ix.mjs";
|
|
18
18
|
import "../../../../../../../dashboard-BC9bgPOH.mjs";
|
|
19
19
|
import "../../../../../../../briefing-Jsxs587i.mjs";
|
|
@@ -13,7 +13,7 @@ import "../../../../../../../menus-DOaL6NaF.mjs";
|
|
|
13
13
|
import "../../../../../../../redirect-BaVvo2te.mjs";
|
|
14
14
|
import "../../../../../../../byline-DpNNSjET.mjs";
|
|
15
15
|
import "../../../../../../../seo-BPb_reaG.mjs";
|
|
16
|
-
import { S as handleSchemaFieldList, y as handleSchemaFieldCreate } from "../../../../../../../api-
|
|
16
|
+
import { S as handleSchemaFieldList, y as handleSchemaFieldCreate } from "../../../../../../../api-r5soQc-k.mjs";
|
|
17
17
|
import "../../../../../../../request-cache-BpwuE2ix.mjs";
|
|
18
18
|
import "../../../../../../../dashboard-BC9bgPOH.mjs";
|
|
19
19
|
import "../../../../../../../briefing-Jsxs587i.mjs";
|
|
@@ -13,7 +13,7 @@ import "../../../../../../../menus-DOaL6NaF.mjs";
|
|
|
13
13
|
import "../../../../../../../redirect-BaVvo2te.mjs";
|
|
14
14
|
import "../../../../../../../byline-DpNNSjET.mjs";
|
|
15
15
|
import "../../../../../../../seo-BPb_reaG.mjs";
|
|
16
|
-
import { C as handleSchemaFieldReorder } from "../../../../../../../api-
|
|
16
|
+
import { C as handleSchemaFieldReorder } from "../../../../../../../api-r5soQc-k.mjs";
|
|
17
17
|
import "../../../../../../../request-cache-BpwuE2ix.mjs";
|
|
18
18
|
import "../../../../../../../dashboard-BC9bgPOH.mjs";
|
|
19
19
|
import "../../../../../../../briefing-Jsxs587i.mjs";
|
|
@@ -13,7 +13,7 @@ import "../../../../../../menus-DOaL6NaF.mjs";
|
|
|
13
13
|
import "../../../../../../redirect-BaVvo2te.mjs";
|
|
14
14
|
import "../../../../../../byline-DpNNSjET.mjs";
|
|
15
15
|
import "../../../../../../seo-BPb_reaG.mjs";
|
|
16
|
-
import { g as handleSchemaCollectionGet, h as handleSchemaCollectionDelete, v as handleSchemaCollectionUpdate } from "../../../../../../api-
|
|
16
|
+
import { g as handleSchemaCollectionGet, h as handleSchemaCollectionDelete, v as handleSchemaCollectionUpdate } from "../../../../../../api-r5soQc-k.mjs";
|
|
17
17
|
import "../../../../../../request-cache-BpwuE2ix.mjs";
|
|
18
18
|
import "../../../../../../dashboard-BC9bgPOH.mjs";
|
|
19
19
|
import "../../../../../../briefing-Jsxs587i.mjs";
|
|
@@ -13,7 +13,7 @@ import "../../../../../menus-DOaL6NaF.mjs";
|
|
|
13
13
|
import "../../../../../redirect-BaVvo2te.mjs";
|
|
14
14
|
import "../../../../../byline-DpNNSjET.mjs";
|
|
15
15
|
import "../../../../../seo-BPb_reaG.mjs";
|
|
16
|
-
import { _ as handleSchemaCollectionList, m as handleSchemaCollectionCreate } from "../../../../../api-
|
|
16
|
+
import { _ as handleSchemaCollectionList, m as handleSchemaCollectionCreate } from "../../../../../api-r5soQc-k.mjs";
|
|
17
17
|
import "../../../../../request-cache-BpwuE2ix.mjs";
|
|
18
18
|
import "../../../../../dashboard-BC9bgPOH.mjs";
|
|
19
19
|
import "../../../../../briefing-Jsxs587i.mjs";
|
|
@@ -13,7 +13,7 @@ import "../../../../../menus-DOaL6NaF.mjs";
|
|
|
13
13
|
import "../../../../../redirect-BaVvo2te.mjs";
|
|
14
14
|
import "../../../../../byline-DpNNSjET.mjs";
|
|
15
15
|
import "../../../../../seo-BPb_reaG.mjs";
|
|
16
|
-
import { p as handleOrphanedTableRegister } from "../../../../../api-
|
|
16
|
+
import { p as handleOrphanedTableRegister } from "../../../../../api-r5soQc-k.mjs";
|
|
17
17
|
import "../../../../../request-cache-BpwuE2ix.mjs";
|
|
18
18
|
import "../../../../../dashboard-BC9bgPOH.mjs";
|
|
19
19
|
import "../../../../../briefing-Jsxs587i.mjs";
|
|
@@ -13,7 +13,7 @@ import "../../../../../menus-DOaL6NaF.mjs";
|
|
|
13
13
|
import "../../../../../redirect-BaVvo2te.mjs";
|
|
14
14
|
import "../../../../../byline-DpNNSjET.mjs";
|
|
15
15
|
import "../../../../../seo-BPb_reaG.mjs";
|
|
16
|
-
import { f as handleOrphanedTableList } from "../../../../../api-
|
|
16
|
+
import { f as handleOrphanedTableList } from "../../../../../api-r5soQc-k.mjs";
|
|
17
17
|
import "../../../../../request-cache-BpwuE2ix.mjs";
|
|
18
18
|
import "../../../../../dashboard-BC9bgPOH.mjs";
|
|
19
19
|
import "../../../../../briefing-Jsxs587i.mjs";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { t as OptionsRepository } from "../../../../options-BF11H_FD.mjs";
|
|
2
|
-
import { n as VERSION } from "../../../../version-
|
|
2
|
+
import { n as VERSION } from "../../../../version-BBFj5zZe.mjs";
|
|
3
3
|
import { t as getAuthMode } from "../../../../mode-Bd55iLcP.mjs";
|
|
4
4
|
|
|
5
5
|
//#region src/astro/routes/api/well-known/auth.ts
|
package/dist/astro/types.d.mts
CHANGED
|
@@ -8,7 +8,7 @@ import "../runner-pAnQS6iI.mjs";
|
|
|
8
8
|
import "../index-2tBfB_8X.mjs";
|
|
9
9
|
import "../index-CpbixmRL.mjs";
|
|
10
10
|
import { d as Storage } from "../types-BYjPylrZ.mjs";
|
|
11
|
-
import "../bylines-
|
|
11
|
+
import "../bylines-CzOBMwy1.mjs";
|
|
12
12
|
import "../types-BBETcziA.mjs";
|
|
13
13
|
import "../validate-BzUCAU2a.mjs";
|
|
14
14
|
import "../index.mjs";
|
|
@@ -1020,15 +1020,15 @@ declare const contextEntryListQuery: z.ZodObject<{
|
|
|
1020
1020
|
cursor: z.ZodOptional<z.ZodString>;
|
|
1021
1021
|
}, z.core.$strip>;
|
|
1022
1022
|
declare const contextEntryStaleQuery: z.ZodObject<{
|
|
1023
|
-
|
|
1023
|
+
scope: z.ZodOptional<z.ZodString>;
|
|
1024
1024
|
limit: z.ZodOptional<z.ZodCoercedNumber<unknown>>;
|
|
1025
|
+
cursor: z.ZodOptional<z.ZodString>;
|
|
1025
1026
|
includeInherited: z.ZodPipe<z.ZodOptional<z.ZodEnum<{
|
|
1026
1027
|
true: "true";
|
|
1027
1028
|
false: "false";
|
|
1028
1029
|
}>>, z.ZodTransform<boolean | undefined, "true" | "false" | undefined>>;
|
|
1029
1030
|
contextTypes: z.ZodPipe<z.ZodOptional<z.ZodString>, z.ZodTransform<string[] | undefined, string | undefined>>;
|
|
1030
1031
|
tags: z.ZodPipe<z.ZodOptional<z.ZodString>, z.ZodTransform<string[] | undefined, string | undefined>>;
|
|
1031
|
-
scope: z.ZodOptional<z.ZodString>;
|
|
1032
1032
|
createdByActorType: z.ZodOptional<z.ZodEnum<{
|
|
1033
1033
|
user: "user";
|
|
1034
1034
|
api_token: "api_token";
|
|
@@ -1049,6 +1049,7 @@ declare const contextEntryDiffQuery: z.ZodObject<{
|
|
|
1049
1049
|
declare const contextEntryCreateBody: z.ZodObject<{
|
|
1050
1050
|
scope: z.ZodString;
|
|
1051
1051
|
contextType: z.ZodEnum<{
|
|
1052
|
+
decision: "decision";
|
|
1052
1053
|
brand_voice: "brand_voice";
|
|
1053
1054
|
seo_strategy: "seo_strategy";
|
|
1054
1055
|
audience: "audience";
|
|
@@ -1058,7 +1059,6 @@ declare const contextEntryCreateBody: z.ZodObject<{
|
|
|
1058
1059
|
migration_note: "migration_note";
|
|
1059
1060
|
plugin_note: "plugin_note";
|
|
1060
1061
|
agent_reasoning: "agent_reasoning";
|
|
1061
|
-
decision: "decision";
|
|
1062
1062
|
risk: "risk";
|
|
1063
1063
|
content_gap: "content_gap";
|
|
1064
1064
|
style_exception: "style_exception";
|
|
@@ -1073,6 +1073,7 @@ declare const contextEntryCreateBody: z.ZodObject<{
|
|
|
1073
1073
|
declare const contextEntrySupersedeBody: z.ZodObject<{
|
|
1074
1074
|
scope: z.ZodOptional<z.ZodString>;
|
|
1075
1075
|
contextType: z.ZodOptional<z.ZodEnum<{
|
|
1076
|
+
decision: "decision";
|
|
1076
1077
|
brand_voice: "brand_voice";
|
|
1077
1078
|
seo_strategy: "seo_strategy";
|
|
1078
1079
|
audience: "audience";
|
|
@@ -1082,7 +1083,6 @@ declare const contextEntrySupersedeBody: z.ZodObject<{
|
|
|
1082
1083
|
migration_note: "migration_note";
|
|
1083
1084
|
plugin_note: "plugin_note";
|
|
1084
1085
|
agent_reasoning: "agent_reasoning";
|
|
1085
|
-
decision: "decision";
|
|
1086
1086
|
risk: "risk";
|
|
1087
1087
|
content_gap: "content_gap";
|
|
1088
1088
|
style_exception: "style_exception";
|
package/dist/cli/index.mjs
CHANGED
|
@@ -191,6 +191,14 @@ function removeMarketplaceCredential(registryUrl) {
|
|
|
191
191
|
const DEFAULT_DINEWAY_URL = "http://localhost:4321";
|
|
192
192
|
const ENV_KEY_PATTERN = /^[A-Za-z_][A-Za-z0-9_]*$/;
|
|
193
193
|
const LINE_SPLIT_PATTERN$1 = /\r?\n/;
|
|
194
|
+
const DINEWAY_LOCAL_STATE_GITIGNORE_COMMENT = "# Dineway local state";
|
|
195
|
+
const DINEWAY_LOCAL_STATE_GITIGNORE_ENTRIES = [
|
|
196
|
+
".dineway/deploy.json",
|
|
197
|
+
".dineway/forgeway.json",
|
|
198
|
+
".dineway/types.ts",
|
|
199
|
+
".dineway/schema.json",
|
|
200
|
+
".dineway/uploads/"
|
|
201
|
+
];
|
|
194
202
|
const NEWLINE_PATTERN = /\r?\n/g;
|
|
195
203
|
function parseDotenvValue(value) {
|
|
196
204
|
const trimmed = value.trim();
|
|
@@ -258,6 +266,15 @@ async function ensureProjectGitignoreEntry(cwd, entry) {
|
|
|
258
266
|
if (existing.split(LINE_SPLIT_PATTERN$1).map((line) => line.trim()).includes(entry)) return;
|
|
259
267
|
await writeFile(gitignorePath, `${existing}${existing && !existing.endsWith("\n") ? "\n" : ""}${entry}\n`, "utf-8");
|
|
260
268
|
}
|
|
269
|
+
async function ensureProjectGitignoreDinewayLocalState(cwd) {
|
|
270
|
+
const gitignorePath = join(cwd, ".gitignore");
|
|
271
|
+
const existing = await readFile(gitignorePath, "utf-8").catch(() => "");
|
|
272
|
+
const lines = new Set(existing.split(LINE_SPLIT_PATTERN$1).map((line) => line.trim()));
|
|
273
|
+
const missingEntries = DINEWAY_LOCAL_STATE_GITIGNORE_ENTRIES.filter((entry) => !lines.has(entry));
|
|
274
|
+
if (missingEntries.length === 0) return;
|
|
275
|
+
const block = [DINEWAY_LOCAL_STATE_GITIGNORE_COMMENT, ...missingEntries].join("\n");
|
|
276
|
+
await writeFile(gitignorePath, `${existing}${existing.trim() ? existing.endsWith("\n") ? "\n" : "\n\n" : ""}${block}\n`, "utf-8");
|
|
277
|
+
}
|
|
261
278
|
|
|
262
279
|
//#endregion
|
|
263
280
|
//#region src/cli/client-factory.ts
|
|
@@ -1553,45 +1570,67 @@ const flyTarget = {
|
|
|
1553
1570
|
|
|
1554
1571
|
//#endregion
|
|
1555
1572
|
//#region src/cli/commands/deploy/utils/config.ts
|
|
1573
|
+
const DINEWAY_DIR_NAME = ".dineway";
|
|
1574
|
+
const DEPLOY_STATE_FILE_NAME = "deploy.json";
|
|
1575
|
+
function deployStatePath(cwd) {
|
|
1576
|
+
return join(cwd, DINEWAY_DIR_NAME, DEPLOY_STATE_FILE_NAME);
|
|
1577
|
+
}
|
|
1578
|
+
function emptyDeployState() {
|
|
1579
|
+
return { version: 1 };
|
|
1580
|
+
}
|
|
1556
1581
|
async function readDeployPackageJson(cwd) {
|
|
1557
1582
|
const content = await readFile(join(cwd, "package.json"), "utf-8");
|
|
1558
1583
|
return JSON.parse(content);
|
|
1559
1584
|
}
|
|
1585
|
+
async function readDeployState(cwd) {
|
|
1586
|
+
try {
|
|
1587
|
+
const content = await readFile(deployStatePath(cwd), "utf-8");
|
|
1588
|
+
return {
|
|
1589
|
+
...emptyDeployState(),
|
|
1590
|
+
...JSON.parse(content),
|
|
1591
|
+
version: 1
|
|
1592
|
+
};
|
|
1593
|
+
} catch (error) {
|
|
1594
|
+
if (error && typeof error === "object" && error.code === "ENOENT") return emptyDeployState();
|
|
1595
|
+
throw error;
|
|
1596
|
+
}
|
|
1597
|
+
}
|
|
1598
|
+
async function writeDeployState(cwd, state) {
|
|
1599
|
+
await mkdir(join(cwd, DINEWAY_DIR_NAME), { recursive: true });
|
|
1600
|
+
await writeFile(deployStatePath(cwd), JSON.stringify({
|
|
1601
|
+
...state,
|
|
1602
|
+
version: 1
|
|
1603
|
+
}, null, " ") + "\n", "utf-8");
|
|
1604
|
+
}
|
|
1560
1605
|
async function readSavedDeployTarget(cwd) {
|
|
1561
|
-
return (await
|
|
1606
|
+
return (await readDeployState(cwd)).target;
|
|
1562
1607
|
}
|
|
1563
1608
|
async function writeDeployTarget(cwd, target) {
|
|
1564
|
-
|
|
1565
|
-
|
|
1566
|
-
|
|
1567
|
-
|
|
1568
|
-
|
|
1569
|
-
|
|
1570
|
-
|
|
1571
|
-
}
|
|
1572
|
-
};
|
|
1573
|
-
await writeFile(pkgPath, JSON.stringify(pkg, null, " ") + "\n", "utf-8");
|
|
1609
|
+
await writeDeployState(cwd, {
|
|
1610
|
+
...await readDeployState(cwd),
|
|
1611
|
+
target
|
|
1612
|
+
});
|
|
1613
|
+
}
|
|
1614
|
+
async function readForgewayDeployMetadata(cwd) {
|
|
1615
|
+
return (await readDeployState(cwd)).targets?.forgeway ?? {};
|
|
1574
1616
|
}
|
|
1575
1617
|
async function writeForgewayDeployMetadata(cwd, metadata) {
|
|
1576
|
-
const
|
|
1577
|
-
|
|
1578
|
-
|
|
1579
|
-
|
|
1580
|
-
|
|
1581
|
-
...pkg.dineway?.deploy,
|
|
1618
|
+
const state = await readDeployState(cwd);
|
|
1619
|
+
await writeDeployState(cwd, {
|
|
1620
|
+
...state,
|
|
1621
|
+
targets: {
|
|
1622
|
+
...state.targets,
|
|
1582
1623
|
forgeway: {
|
|
1583
|
-
...
|
|
1624
|
+
...state.targets?.forgeway,
|
|
1584
1625
|
...metadata
|
|
1585
1626
|
}
|
|
1586
1627
|
}
|
|
1587
|
-
};
|
|
1588
|
-
await writeFile(pkgPath, JSON.stringify(pkg, null, " ") + "\n", "utf-8");
|
|
1628
|
+
});
|
|
1589
1629
|
}
|
|
1590
1630
|
|
|
1591
1631
|
//#endregion
|
|
1592
1632
|
//#region src/cli/commands/deploy/utils/forgeway-secrets.ts
|
|
1593
1633
|
const DINEWAY_CONFIG_DIR_NAME = ".dineway";
|
|
1594
|
-
const DINEWAY_CONFIG_GITIGNORE = "*\n!.gitignore\n";
|
|
1595
1634
|
const TRAILING_SLASH_PATTERN$1 = /\/$/;
|
|
1596
1635
|
function getDinewayConfigDir(cwd = process.cwd()) {
|
|
1597
1636
|
return join(cwd, DINEWAY_CONFIG_DIR_NAME);
|
|
@@ -1608,19 +1647,10 @@ async function readStore(cwd = process.cwd()) {
|
|
|
1608
1647
|
}
|
|
1609
1648
|
}
|
|
1610
1649
|
async function writeStore(store, cwd = process.cwd()) {
|
|
1611
|
-
|
|
1612
|
-
await mkdir(dir, {
|
|
1650
|
+
await mkdir(getDinewayConfigDir(cwd), {
|
|
1613
1651
|
recursive: true,
|
|
1614
1652
|
mode: 448
|
|
1615
1653
|
});
|
|
1616
|
-
try {
|
|
1617
|
-
await writeFile(join(dir, ".gitignore"), DINEWAY_CONFIG_GITIGNORE, {
|
|
1618
|
-
encoding: "utf-8",
|
|
1619
|
-
flag: "wx"
|
|
1620
|
-
});
|
|
1621
|
-
} catch (error) {
|
|
1622
|
-
if (!error || typeof error !== "object" || error.code !== "EEXIST") throw error;
|
|
1623
|
-
}
|
|
1624
1654
|
const file = getForgewaySecretPath(cwd);
|
|
1625
1655
|
await writeFile(file, JSON.stringify(store, null, " ") + "\n", {
|
|
1626
1656
|
encoding: "utf-8",
|
|
@@ -1885,8 +1915,8 @@ async function promptRequired(question, initialValue, deps, errorMessage) {
|
|
|
1885
1915
|
if (!answer) throw new Error(errorMessage);
|
|
1886
1916
|
return answer;
|
|
1887
1917
|
}
|
|
1888
|
-
function
|
|
1889
|
-
return
|
|
1918
|
+
async function readSavedForgewayMetadata(cwd) {
|
|
1919
|
+
return await readForgewayDeployMetadata(cwd).catch(() => ({}));
|
|
1890
1920
|
}
|
|
1891
1921
|
async function resolveForgewayAccountEmail(options, grant, cwd, deps) {
|
|
1892
1922
|
const stored = await (deps.readCredentials ?? readForgewayCredentials)(cwd);
|
|
@@ -1964,8 +1994,7 @@ async function resolveFormalAccountCredentials(context, grant, email, deps) {
|
|
|
1964
1994
|
return credentials;
|
|
1965
1995
|
}
|
|
1966
1996
|
async function resolveShadowProjectContext(cwd, options, deps) {
|
|
1967
|
-
const
|
|
1968
|
-
const saved = pkg ? getSavedForgewayMetadata(pkg) : {};
|
|
1997
|
+
const saved = await readSavedForgewayMetadata(cwd);
|
|
1969
1998
|
const platformApiUrl = normalizePlatformApiUrl(getEnv("DINEWAY_API_BASE_URL") ?? getEnv("FORGEWAY_API_URL") ?? (typeof saved.platformApiUrl === "string" ? saved.platformApiUrl : void 0));
|
|
1970
1999
|
const savedPlaceId = options.placeId ?? getEnv("DINEWAY_PLACE_ID") ?? (typeof saved.placeId === "string" ? saved.placeId : void 0);
|
|
1971
2000
|
let grant = await (deps.readShadowGrant ?? readForgewayShadowGrant)(platformApiUrl, savedPlaceId, cwd);
|
|
@@ -2054,8 +2083,12 @@ async function createShadowUser(platformApiUrl, placeId, deps) {
|
|
|
2054
2083
|
function isRecord(value) {
|
|
2055
2084
|
return typeof value === "object" && value !== null && !Array.isArray(value);
|
|
2056
2085
|
}
|
|
2086
|
+
function scalarText(value) {
|
|
2087
|
+
if (typeof value === "string" || typeof value === "number" || typeof value === "boolean") return String(value);
|
|
2088
|
+
return "";
|
|
2089
|
+
}
|
|
2057
2090
|
function uniqueStrings(values) {
|
|
2058
|
-
return [...new Set(values.map((value) =>
|
|
2091
|
+
return [...new Set(values.map((value) => scalarText(value).trim()).filter(Boolean))];
|
|
2059
2092
|
}
|
|
2060
2093
|
function displayText(value) {
|
|
2061
2094
|
if (typeof value === "string" || typeof value === "number") return String(value);
|
|
@@ -2064,10 +2097,10 @@ function displayText(value) {
|
|
|
2064
2097
|
return "";
|
|
2065
2098
|
}
|
|
2066
2099
|
function normalizeCompare(value) {
|
|
2067
|
-
return
|
|
2100
|
+
return scalarText(value).toLowerCase().normalize("NFKD").replace(DIACRITICS_PATTERN, "").replace(NON_COMPARE_PATTERN, "");
|
|
2068
2101
|
}
|
|
2069
2102
|
function candidatePlaceId(candidate) {
|
|
2070
|
-
return
|
|
2103
|
+
return (scalarText(candidate.placeId) || scalarText(candidate.id)).trim();
|
|
2071
2104
|
}
|
|
2072
2105
|
function candidateNameTexts(candidate) {
|
|
2073
2106
|
return uniqueStrings([
|
|
@@ -2184,7 +2217,7 @@ function scorePlaceCandidate(candidate, context) {
|
|
|
2184
2217
|
score += 10;
|
|
2185
2218
|
reasons.push("food_type");
|
|
2186
2219
|
}
|
|
2187
|
-
const businessStatus =
|
|
2220
|
+
const businessStatus = (scalarText(candidate.businessStatus) || scalarText(candidate.business_status)).toUpperCase();
|
|
2188
2221
|
if (businessStatus === "OPERATIONAL") {
|
|
2189
2222
|
score += 4;
|
|
2190
2223
|
reasons.push("operational");
|
|
@@ -2435,8 +2468,7 @@ async function createDeploymentSite(context, input, deps) {
|
|
|
2435
2468
|
});
|
|
2436
2469
|
}
|
|
2437
2470
|
async function resolveDeploymentSite(cwd, context, options, seedPath, deps, preResolvedRestaurant) {
|
|
2438
|
-
const
|
|
2439
|
-
const saved = pkg ? getSavedForgewayMetadata(pkg) : {};
|
|
2471
|
+
const saved = await readSavedForgewayMetadata(cwd);
|
|
2440
2472
|
const explicitSite = options.site;
|
|
2441
2473
|
const savedSite = typeof saved.siteId === "string" ? saved.siteId : saved.siteSlug;
|
|
2442
2474
|
const siteRef = context.placeId ? explicitSite : explicitSite ?? savedSite;
|
|
@@ -2487,9 +2519,7 @@ function localDatabaseInitializationMatches(metadata, siteId, databaseId, finger
|
|
|
2487
2519
|
return metadata?.status === "succeeded" && metadata.siteId === siteId && metadata.databaseId === databaseId && initializationFingerprintsMatch(metadata.fingerprint, fingerprint);
|
|
2488
2520
|
}
|
|
2489
2521
|
async function readLocalDatabaseInitializationMetadata(cwd) {
|
|
2490
|
-
|
|
2491
|
-
if (!pkg) return void 0;
|
|
2492
|
-
return getSavedForgewayMetadata(pkg).databaseInitialization;
|
|
2522
|
+
return (await readSavedForgewayMetadata(cwd)).databaseInitialization;
|
|
2493
2523
|
}
|
|
2494
2524
|
async function writeLocalDatabaseInitializationMetadata(cwd, metadata) {
|
|
2495
2525
|
await writeForgewayDeployMetadata(cwd, { databaseInitialization: {
|
|
@@ -2793,7 +2823,12 @@ async function persistForgewayCliEnv(cwd, params) {
|
|
|
2793
2823
|
}
|
|
2794
2824
|
function formatDinewayAdminBootstrapMessage(bootstrap) {
|
|
2795
2825
|
if (!bootstrap) return "";
|
|
2796
|
-
if (bootstrap.status === "already_issued") return
|
|
2826
|
+
if (bootstrap.status === "already_issued") return [
|
|
2827
|
+
"Dineway admin access is ready. Local CLI defaults were saved to .env.",
|
|
2828
|
+
`Dineway admin email: ${bootstrap.adminEmail}`,
|
|
2829
|
+
`Dineway admin bootstrap: ${bootstrap.message}`,
|
|
2830
|
+
"CLI example: npx dineway whoami"
|
|
2831
|
+
].join("\n");
|
|
2797
2832
|
return [
|
|
2798
2833
|
"Dineway admin access is ready. Local CLI defaults were saved to .env.",
|
|
2799
2834
|
`Dineway admin email: ${bootstrap.adminEmail}`,
|
|
@@ -2806,6 +2841,7 @@ async function deployForgeway(cwd, options, deps = {}) {
|
|
|
2806
2841
|
const sourceDir = resolve(cwd);
|
|
2807
2842
|
if (!(await stat(sourceDir).catch(() => null))?.isDirectory()) throw new Error(`"${sourceDir}" is not a valid directory.`);
|
|
2808
2843
|
if (EXCLUDE_PATTERNS.includes(basename(sourceDir))) throw new Error(`"${basename(sourceDir)}" is an excluded directory and cannot be deployed.`);
|
|
2844
|
+
await ensureProjectGitignoreDinewayLocalState(cwd);
|
|
2809
2845
|
const verbose = isVerboseDeploy(options);
|
|
2810
2846
|
const seedPath = options.skipSeed ? null : await resolveSeedPath$1(cwd, options.seed);
|
|
2811
2847
|
if (options.skipSeed) consola.info("Skipping seed initialization by request");
|
|
@@ -2850,7 +2886,7 @@ async function deployForgeway(cwd, options, deps = {}) {
|
|
|
2850
2886
|
const url = deployment.liveUrl ?? `https://${site.domain}`;
|
|
2851
2887
|
await (deps.writeProjectEnv ?? persistForgewayCliEnv)(cwd, {
|
|
2852
2888
|
siteUrl: url,
|
|
2853
|
-
token: deployment.dinewayAdminBootstrap?.
|
|
2889
|
+
token: deployment.dinewayAdminBootstrap?.apiToken
|
|
2854
2890
|
});
|
|
2855
2891
|
const bootstrapMessage = formatDinewayAdminBootstrapMessage(deployment.dinewayAdminBootstrap);
|
|
2856
2892
|
const statusMessage = deployment.isReady ? `Deploy complete: ${url}` : `Deploy started for ${site.domain}. Check Forgeway for build status.`;
|
|
@@ -3479,8 +3515,13 @@ const deployCommand = defineCommand({
|
|
|
3479
3515
|
const build = options.dryRun ? null : await runBuild(cwd, options.env);
|
|
3480
3516
|
consola.info(options.dryRun ? "[dry-run] Would run build" : `Built with ${build?.display}`);
|
|
3481
3517
|
}
|
|
3482
|
-
if (!options.dryRun)
|
|
3483
|
-
|
|
3518
|
+
if (!options.dryRun) {
|
|
3519
|
+
await ensureProjectGitignoreDinewayLocalState(cwd);
|
|
3520
|
+
await writeDeployTarget(cwd, target.name);
|
|
3521
|
+
} else {
|
|
3522
|
+
consola.info("[dry-run] Would ensure Dineway local state entries in .gitignore");
|
|
3523
|
+
consola.info(`[dry-run] Would save .dineway/deploy.json target=${target.name}`);
|
|
3524
|
+
}
|
|
3484
3525
|
const result = await target.deploy(cwd, options);
|
|
3485
3526
|
if (result.url) consola.success(result.url);
|
|
3486
3527
|
consola.success(result.message);
|
package/dist/index.d.mts
CHANGED
|
@@ -11,7 +11,7 @@ import { $ as TranslationSummary, A as MenuItem, B as getPluginSettings, C as Ta
|
|
|
11
11
|
import { _ as WxrSite, a as getAllSources, b as parseWxrString, c as getUrlSources, d as importReusableBlocksAsSections, f as WxrAttachment, g as WxrPost, h as WxrData, i as clearSources, l as probeUrl, m as WxrCategory, n as parseWxrDate, o as getFileSources, p as WxrAuthor, r as wxrSource, s as getSource, t as wordpressRestSource, u as registerSource, v as WxrTag, x as decodeSlug, y as parseWxr } from "./index-CpbixmRL.mjs";
|
|
12
12
|
import { n as generatePlaceholder, r as normalizeMediaValue, t as PlaceholderData } from "./placeholder-BZpCpid_.mjs";
|
|
13
13
|
import { a as ListOptions, c as S3StorageConfig, d as Storage, f as StorageDescriptor, i as FileInfo, l as SignedUploadOptions, n as DinewayStorageError, o as ListResult, p as UploadResult, r as DownloadResult, s as LocalStorageConfig, t as CreateStorageFn, u as SignedUploadUrl } from "./types-BYjPylrZ.mjs";
|
|
14
|
-
import "./bylines-
|
|
14
|
+
import "./bylines-CzOBMwy1.mjs";
|
|
15
15
|
import { DinewayRequestContext, getRequestContext, runWithContext } from "./request-context.mjs";
|
|
16
16
|
import { adaptSandboxEntry } from "./plugins/adapt-sandbox-entry.mjs";
|
|
17
17
|
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-BBETcziA.mjs";
|
package/dist/index.mjs
CHANGED
|
@@ -24,7 +24,7 @@ import "./byline-DpNNSjET.mjs";
|
|
|
24
24
|
import { t as normalizeMediaValue } from "./normalize-BY_EJnd9.mjs";
|
|
25
25
|
import { t as generatePlaceholder } from "./placeholder-b0Ufu0La.mjs";
|
|
26
26
|
import "./seo-BPb_reaG.mjs";
|
|
27
|
-
import { A as handleRevisionGet, B as handleContentDuplicate, D as handleMediaGet, E as handleMediaDelete, F as handleContentCountScheduled, G as handleContentPermanentDelete, H as handleContentGetIncludingTrashed, I as handleContentCountTrashed, J as handleContentSchedule, K as handleContentPublish, L as handleContentCreate, M as handleRevisionRestore, N as generateManifest, O as handleMediaList, P as handleContentCompare, Q as handleContentUpdate, R as handleContentDelete, T as handleMediaCreate, U as handleContentList, V as handleContentGet, W as handleContentListTrashed, X as handleContentUnpublish, Y as handleContentTranslations, Z as handleContentUnschedule, j as handleRevisionList, k as handleMediaUpdate, q as handleContentRestore, z as handleContentDiscardDraft } from "./api-
|
|
27
|
+
import { A as handleRevisionGet, B as handleContentDuplicate, D as handleMediaGet, E as handleMediaDelete, F as handleContentCountScheduled, G as handleContentPermanentDelete, H as handleContentGetIncludingTrashed, I as handleContentCountTrashed, J as handleContentSchedule, K as handleContentPublish, L as handleContentCreate, M as handleRevisionRestore, N as generateManifest, O as handleMediaList, P as handleContentCompare, Q as handleContentUpdate, R as handleContentDelete, T as handleMediaCreate, U as handleContentList, V as handleContentGet, W as handleContentListTrashed, X as handleContentUnpublish, Y as handleContentTranslations, Z as handleContentUnschedule, j as handleRevisionList, k as handleMediaUpdate, q as handleContentRestore, z as handleContentDiscardDraft } from "./api-r5soQc-k.mjs";
|
|
28
28
|
import "./request-cache-BpwuE2ix.mjs";
|
|
29
29
|
import "./dashboard-BC9bgPOH.mjs";
|
|
30
30
|
import "./briefing-Jsxs587i.mjs";
|
|
@@ -7,7 +7,7 @@ import "../runner-pAnQS6iI.mjs";
|
|
|
7
7
|
import "../index-2tBfB_8X.mjs";
|
|
8
8
|
import "../index-CpbixmRL.mjs";
|
|
9
9
|
import { d as Storage } from "../types-BYjPylrZ.mjs";
|
|
10
|
-
import "../bylines-
|
|
10
|
+
import "../bylines-CzOBMwy1.mjs";
|
|
11
11
|
import "../types-BBETcziA.mjs";
|
|
12
12
|
import "../validate-BzUCAU2a.mjs";
|
|
13
13
|
import "../index.mjs";
|
|
@@ -5,7 +5,7 @@ import "../types-BgE6gMFI.mjs";
|
|
|
5
5
|
import "../runner-pAnQS6iI.mjs";
|
|
6
6
|
import "../index-2tBfB_8X.mjs";
|
|
7
7
|
import "../index-CpbixmRL.mjs";
|
|
8
|
-
import "../bylines-
|
|
8
|
+
import "../bylines-CzOBMwy1.mjs";
|
|
9
9
|
import "../types-BBETcziA.mjs";
|
|
10
10
|
import "../validate-BzUCAU2a.mjs";
|
|
11
11
|
|
package/dist/runtime.d.mts
CHANGED
|
@@ -5,7 +5,7 @@ import "./types-BgE6gMFI.mjs";
|
|
|
5
5
|
import "./runner-pAnQS6iI.mjs";
|
|
6
6
|
import "./index-2tBfB_8X.mjs";
|
|
7
7
|
import "./index-CpbixmRL.mjs";
|
|
8
|
-
import "./bylines-
|
|
8
|
+
import "./bylines-CzOBMwy1.mjs";
|
|
9
9
|
import "./types-BBETcziA.mjs";
|
|
10
10
|
import "./validate-BzUCAU2a.mjs";
|
|
11
11
|
import { t as getMediaProvider } from "./provider-loader-BaZhx7E3.mjs";
|
package/package.json
CHANGED