dineway 0.1.35 → 0.1.37
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 +15 -3
- package/dist/api/route-utils.d.mts +1 -1
- package/dist/api/schemas/index.d.mts +1 -1
- package/dist/{api-Ow6RbraA.mjs → api-DpeH2EYq.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.mjs +1 -1
- package/dist/astro/middleware.mjs +4 -4
- 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/auth/dev-bypass.mjs +1 -1
- package/dist/astro/routes/api/content/_collection_/_id_/preview-url.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/setup/dev-bypass.mjs +1 -1
- package/dist/astro/routes/api/setup/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-CtD_p_1z.d.mts → bylines-CNe_OWKA.d.mts} +16 -16
- package/dist/cli/index.mjs +302 -72
- package/dist/db/index.mjs +1 -1
- package/dist/index.d.mts +1 -1
- package/dist/index.mjs +3 -3
- package/dist/media/local-runtime.d.mts +1 -1
- package/dist/plugins/adapt-sandbox-entry.d.mts +1 -1
- package/dist/{preview-5HuX6fjF.mjs → preview-BhgxNRWI.mjs} +1 -1
- package/dist/{runner-lqEiJbO-.mjs → runner-S3smkgdc.mjs} +15 -2
- package/dist/runtime.d.mts +1 -1
- package/dist/version-BWhBEejU.mjs +6 -0
- package/package.json +2 -2
- package/dist/version-q9Wd8cwL.mjs +0 -6
package/dist/db/index.mjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import "../dialect-helpers-TkdbkFad.mjs";
|
|
2
|
-
import {
|
|
2
|
+
import { i as runMigrations, n as getMigrationStatus, r as rollbackMigration } from "../runner-S3smkgdc.mjs";
|
|
3
3
|
|
|
4
4
|
//#region src/db/adapters.ts
|
|
5
5
|
/**
|
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-CNe_OWKA.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
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { getRequestContext, runWithContext } from "./request-context.mjs";
|
|
2
2
|
import { t as DinewayDatabaseError } from "./connection-BCNICDWN.mjs";
|
|
3
3
|
import "./dialect-helpers-TkdbkFad.mjs";
|
|
4
|
-
import {
|
|
4
|
+
import { n as getMigrationStatus } from "./runner-S3smkgdc.mjs";
|
|
5
5
|
import { n as getI18nConfig, r as isI18nEnabled, t as getFallbackChain } from "./config-XW5tMrH8.mjs";
|
|
6
6
|
import { _ as portableTextToProsemirror, a as SandboxNotAvailableError, b as reference, c as createPluginManager, f as HookPipeline, g as after, h as definePlugin, i as NoopSandboxRunner, l as PluginRouteError, n as NodeSandboxRunner, o as createNoopSandboxRunner, p as createHookPipeline, r as createNodeSandboxRunner, s as PluginManager, t as isStandardPluginDefinition, v as prosemirrorToPortableText, x as image, y as portableText } from "./plugins-DCDVDF4B.mjs";
|
|
7
7
|
import { t as decodeSlug } from "./slugify-BzGxlOFx.mjs";
|
|
@@ -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-DpeH2EYq.mjs";
|
|
28
28
|
import "./request-cache-BpwuE2ix.mjs";
|
|
29
29
|
import "./dashboard-BC9bgPOH.mjs";
|
|
30
30
|
import "./briefing-Jsxs587i.mjs";
|
|
@@ -53,7 +53,7 @@ import "./import-Br7aP9yh.mjs";
|
|
|
53
53
|
import { n as sanitizeHref, t as isSafeHref } from "./url-BzhfYtRn.mjs";
|
|
54
54
|
import { c as createEditable, i as getTranslations, l as createNoop, n as getDinewayEntry, r as getEditMeta, s as resolveDinewayPath, t as getDinewayCollection } from "./query-DHvNhBhi.mjs";
|
|
55
55
|
import { a as verifyPreviewSignature, i as signPreviewUrl, n as defaultPreviewSidecarClient, r as parsePreviewSignatureHeader, t as buildPreviewSignatureHeader } from "./sidecar-client-lrf7ErYJ.mjs";
|
|
56
|
-
import { a as createFilePreviewMiddleware, c as dropSessionDatabaseTables, d as SessionDatabaseLimitError, f as isBlockedInPreview, i as getPreviewUrl, l as getAppliedSnapshotMeta, n as isPreviewRequest, o as renderPreviewToolbar, p as renderPreviewLoadingPage, r as buildPreviewUrl, s as applySnapshotToDatabase, t as getPreviewToken, u as FileSessionDatabaseFactory } from "./preview-
|
|
56
|
+
import { a as createFilePreviewMiddleware, c as dropSessionDatabaseTables, d as SessionDatabaseLimitError, f as isBlockedInPreview, i as getPreviewUrl, l as getAppliedSnapshotMeta, n as isPreviewRequest, o as renderPreviewToolbar, p as renderPreviewLoadingPage, r as buildPreviewUrl, s as applySnapshotToDatabase, t as getPreviewToken, u as FileSessionDatabaseFactory } from "./preview-BhgxNRWI.mjs";
|
|
57
57
|
import { n as parseWxrString, t as parseWxr } from "./parser-egIGEco-.mjs";
|
|
58
58
|
import { adaptSandboxEntry } from "./plugins/adapt-sandbox-entry.mjs";
|
|
59
59
|
import "./ssrf-KAIQS48_.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-CNe_OWKA.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-CNe_OWKA.mjs";
|
|
9
9
|
import "../types-BBETcziA.mjs";
|
|
10
10
|
import "../validate-BzUCAU2a.mjs";
|
|
11
11
|
|
|
@@ -4,8 +4,8 @@ import { a as verifyPreviewSignature, t as buildPreviewSignatureHeader } from ".
|
|
|
4
4
|
import { t as generatePreviewToken } from "./tokens-CsP8Se8S.mjs";
|
|
5
5
|
import BetterSqlite3 from "better-sqlite3";
|
|
6
6
|
import { sql } from "kysely";
|
|
7
|
-
import { ulid } from "ulidx";
|
|
8
7
|
import { createHash } from "node:crypto";
|
|
8
|
+
import { ulid } from "ulidx";
|
|
9
9
|
import { existsSync, mkdirSync, readdirSync, rmSync, statSync } from "node:fs";
|
|
10
10
|
import { join } from "node:path";
|
|
11
11
|
|
|
@@ -3,6 +3,7 @@ import { t as validateIdentifier } from "./validate-VPnKoIzW.mjs";
|
|
|
3
3
|
import { c as listTablesLike, i as currentTimestampValue, n as columnExists, o as isSqlite, r as currentTimestamp, t as binaryType } from "./dialect-helpers-TkdbkFad.mjs";
|
|
4
4
|
import { n as getI18nConfig } from "./config-XW5tMrH8.mjs";
|
|
5
5
|
import { Migrator, sql } from "kysely";
|
|
6
|
+
import { createHash } from "node:crypto";
|
|
6
7
|
|
|
7
8
|
//#region src/database/migrations/001_initial.ts
|
|
8
9
|
var _001_initial_exports = /* @__PURE__ */ __exportAll({
|
|
@@ -2221,8 +2222,20 @@ const MIGRATIONS = Object.freeze({
|
|
|
2221
2222
|
"044_credential_algorithm": _044_credential_algorithm_exports,
|
|
2222
2223
|
"045_i18n_menus_and_taxonomies": _045_i18n_menus_and_taxonomies_exports
|
|
2223
2224
|
});
|
|
2225
|
+
const MIGRATION_NAMES = Object.freeze(Object.keys(MIGRATIONS).toSorted());
|
|
2224
2226
|
/** Total number of registered migrations. Exported for use in tests. */
|
|
2225
|
-
const MIGRATION_COUNT =
|
|
2227
|
+
const MIGRATION_COUNT = MIGRATION_NAMES.length;
|
|
2228
|
+
function getMigrationFingerprint() {
|
|
2229
|
+
const hash = createHash("sha256");
|
|
2230
|
+
for (const name of MIGRATION_NAMES) {
|
|
2231
|
+
hash.update(name);
|
|
2232
|
+
hash.update("\0");
|
|
2233
|
+
}
|
|
2234
|
+
return {
|
|
2235
|
+
migrationHash: `sha256:${hash.digest("hex")}`,
|
|
2236
|
+
migrationCount: MIGRATION_COUNT
|
|
2237
|
+
};
|
|
2238
|
+
}
|
|
2226
2239
|
/**
|
|
2227
2240
|
* Migration provider that uses statically imported migrations.
|
|
2228
2241
|
* This approach works well with bundlers and avoids filesystem access.
|
|
@@ -2293,4 +2306,4 @@ async function rollbackMigration(db) {
|
|
|
2293
2306
|
}
|
|
2294
2307
|
|
|
2295
2308
|
//#endregion
|
|
2296
|
-
export {
|
|
2309
|
+
export { runMigrations as i, getMigrationStatus as n, rollbackMigration as r, getMigrationFingerprint as t };
|
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-CNe_OWKA.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
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "dineway",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.37",
|
|
4
4
|
"description": "Agentic Website builder for restaurants — structured content meets AI via the Model Context Protocol",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"publishConfig": {
|
|
@@ -347,8 +347,8 @@
|
|
|
347
347
|
"ulidx": "^2.4.1",
|
|
348
348
|
"upng-js": "^2.1.0",
|
|
349
349
|
"zod": "^4.4.1",
|
|
350
|
-
"@dineway-ai/admin": "^0.1.15",
|
|
351
350
|
"@dineway-ai/gutenberg-to-portable-text": "^0.1.13",
|
|
351
|
+
"@dineway-ai/admin": "^0.1.15",
|
|
352
352
|
"@dineway-ai/auth": "^0.1.15"
|
|
353
353
|
},
|
|
354
354
|
"optionalDependencies": {
|