dineway 0.1.7 → 0.1.8

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 CHANGED
@@ -52,6 +52,25 @@ Or add to an existing Astro project:
52
52
  npm install dineway
53
53
  ```
54
54
 
55
+ ## CLI
56
+
57
+ The Dineway CLI (`dineway`) manages projects and instances. Commands fall into three categories:
58
+
59
+ - **Local commands** — work directly on local project files or a SQLite file, no running server needed: `init`, `dev`, `seed`, `export-seed`, `auth secret`
60
+ - **Deployment commands** — orchestrate platform CLIs or generate provider files: `deploy`
61
+ - **Remote commands** — talk to a running Dineway instance via HTTP: `types`, `login`, `logout`, `whoami`, `content`, `schema`, `media`, `search`, `taxonomy`, `menu`
62
+
63
+ ### Authentication
64
+
65
+ Remote commands resolve auth automatically in this order:
66
+
67
+ 1. `--token` flag
68
+ 2. `DINEWAY_TOKEN` env var
69
+ 3. Stored credentials from `dineway login`
70
+ 4. Dev bypass (localhost only — no token needed)
71
+
72
+ For local dev servers, just run the command — auth is handled automatically. For remote instances, run `dineway login --url https://my-site.example.com` first.
73
+
55
74
  ## Quick Start
56
75
 
57
76
  ### Create and Run
@@ -1,4 +1,4 @@
1
- import { n as VERSION, t as COMMIT } from "../version-BYz0EzvH.mjs";
1
+ import { n as VERSION, t as COMMIT } from "../version-DxxaFHZ_.mjs";
2
2
  import { t as defaultSeed } from "../default-VjJyuuG9.mjs";
3
3
  import { createRequire } from "node:module";
4
4
  import { existsSync, readFileSync } from "node:fs";
@@ -4,7 +4,7 @@ import "../connection-BCNICDWN.mjs";
4
4
  import { t as validateIdentifier } from "../validate-VPnKoIzW.mjs";
5
5
  import { a as isSqlite } from "../dialect-helpers-DhTzaUxP.mjs";
6
6
  import { r as runMigrations } from "../runner-DWZm2KQm.mjs";
7
- import { $t as validateRev, B as DEV_CONSOLE_EMAIL_PLUGIN_ID, Bt as handleContentDuplicate, Ct as handleMediaDelete, Dt as handleRevisionGet, Et as handleMediaUpdate, Ft as handleContentCountScheduled, G as resolveExclusiveHooks, Gt as handleContentPermanentDelete, H as EmailPipeline, Ht as handleContentGetIncludingTrashed, It as handleContentCountTrashed, J as sanitizeHeadersForSandbox, Jt as handleContentSchedule, K as CronExecutor, Kt as handleContentPublish, Lt as handleContentCreate, Mt as hashString, Nt as PluginStateRepository, Ot as handleRevisionList, Pt as handleContentCompare, Qt as handleContentUpdate, Rt as handleContentDelete, St as handleMediaCreate, Tt as handleMediaList, Ut as handleContentList, V as devConsoleEmailDeliver, Vt as handleContentGet, W as createHookPipeline, Wt as handleContentListTrashed, X as definePlugin, Xt as handleContentUnpublish, Y as getTrustedProxyHeaders, Yt as handleContentTranslations, Zt as handleContentUnschedule, kt as handleRevisionRestore, pt as after, q as extractRequestMeta, qt as handleContentRestore, vt as createPluginBundleStore, wt as handleMediaGet, z as PluginRouteRegistry, zt as handleContentDiscardDraft } from "../search-DTLEWZR1.mjs";
7
+ import { $t as validateRev, B as DEV_CONSOLE_EMAIL_PLUGIN_ID, Bt as handleContentDuplicate, Ct as handleMediaDelete, Dt as handleRevisionGet, Et as handleMediaUpdate, Ft as handleContentCountScheduled, G as resolveExclusiveHooks, Gt as handleContentPermanentDelete, H as EmailPipeline, Ht as handleContentGetIncludingTrashed, It as handleContentCountTrashed, J as sanitizeHeadersForSandbox, Jt as handleContentSchedule, K as CronExecutor, Kt as handleContentPublish, Lt as handleContentCreate, Mt as hashString, Nt as PluginStateRepository, Ot as handleRevisionList, Pt as handleContentCompare, Qt as handleContentUpdate, Rt as handleContentDelete, St as handleMediaCreate, Tt as handleMediaList, Ut as handleContentList, V as devConsoleEmailDeliver, Vt as handleContentGet, W as createHookPipeline, Wt as handleContentListTrashed, X as definePlugin, Xt as handleContentUnpublish, Y as getTrustedProxyHeaders, Yt as handleContentTranslations, Zt as handleContentUnschedule, kt as handleRevisionRestore, pt as after, q as extractRequestMeta, qt as handleContentRestore, vt as createPluginBundleStore, wt as handleMediaGet, z as PluginRouteRegistry, zt as handleContentDiscardDraft } from "../search-Hlm6g8Td.mjs";
8
8
  import { r as RevisionRepository } from "../content-DWi4d0rT.mjs";
9
9
  import "../base64-F8-DUraK.mjs";
10
10
  import "../types-BawVha09.mjs";
@@ -17,7 +17,7 @@ import { i as setI18nConfig } from "../config-BXwuX8Bx.mjs";
17
17
  import { i as FTSManager, n as SchemaRegistry } from "../registry-C0zjeB9P.mjs";
18
18
  import { n as getDb } from "../loader-sMG4TZ-u.mjs";
19
19
  import "../request-cache-Dk5qPSOx.mjs";
20
- import { n as VERSION, t as COMMIT } from "../version-BYz0EzvH.mjs";
20
+ import { n as VERSION, t as COMMIT } from "../version-DxxaFHZ_.mjs";
21
21
  import "../taxonomies-1s5PaS_8.mjs";
22
22
  import { r as normalizeManifestRoute } from "../manifest-schema-D1MSVnoI.mjs";
23
23
  import { a as invalidateUrlPatternCache } from "../query-kDmwCsHh.mjs";
package/dist/index.mjs CHANGED
@@ -2,7 +2,7 @@ import { getRequestContext, runWithContext } from "./request-context.mjs";
2
2
  import { t as DinewayDatabaseError } from "./connection-BCNICDWN.mjs";
3
3
  import "./dialect-helpers-DhTzaUxP.mjs";
4
4
  import { t as getMigrationStatus } from "./runner-DWZm2KQm.mjs";
5
- import { $ as createFilePreviewMiddleware, A as isStandardPluginDefinition, At as generateManifest, Bt as handleContentDuplicate, C as getAllSources, Ct as handleMediaDelete, D as probeUrl, Dt as handleRevisionGet, E as getUrlSources, Et as handleMediaUpdate, F as createNoopSandboxRunner, Ft as handleContentCountScheduled, Gt as handleContentPermanentDelete, Ht as handleContentGetIncludingTrashed, I as PluginManager, It as handleContentCountTrashed, Jt as handleContentSchedule, Kt as handleContentPublish, L as createPluginManager, Lt as handleContentCreate, M as createNodeSandboxRunner, Mt as hashString, N as NoopSandboxRunner, O as registerSource, Ot as handleRevisionList, P as SandboxNotAvailableError, Pt as handleContentCompare, Q as parseWxrString, Qt as handleContentUpdate, R as PluginRouteError, Rt as handleContentDelete, S as clearSources, St as handleMediaCreate, T as getSource, Tt as handleMediaList, U as HookPipeline, Ut as handleContentList, Vt as handleContentGet, W as createHookPipeline, Wt as handleContentListTrashed, X as definePlugin, Xt as handleContentUnpublish, Yt as handleContentTranslations, Z as parseWxr, Zt as handleContentUnschedule, _ as buildPreviewUrl, _t as sanitizeHref, a as search, at as SessionDatabaseLimitError, b as parseWxrDate, bt as getSections, c as getWidgetArea, ct as buildPreviewSignatureHeader, d as getMenu, dt as signPreviewUrl, en as portableText, et as renderPreviewToolbar, f as getMenus, ft as verifyPreviewSignature, g as isPreviewRequest, gt as isSafeHref, h as getPreviewToken, ht as prosemirrorToPortableText, i as getSuggestions, it as FileSessionDatabaseFactory, j as NodeSandboxRunner, jt as computeContentHash, k as importReusableBlocksAsSections, kt as handleRevisionRestore, l as getWidgetAreas, lt as defaultPreviewSidecarClient, m as getComments, mt as portableTextToProsemirror, n as extractSearchableFields, nn as image, nt as dropSessionDatabaseTables, o as searchCollection, ot as isBlockedInPreview, p as getCommentCount, pt as after, qt as handleContentRestore, r as getSearchStats, rt as getAppliedSnapshotMeta, s as searchWithDb, st as renderPreviewLoadingPage, t as extractPlainText, tn as reference, tt as applySnapshotToDatabase, u as getWidgetComponents, ut as parsePreviewSignatureHeader, v as getPreviewUrl, w as getFileSources, wt as handleMediaGet, x as wxrSource, xt as getCollectionInfo, y as wordpressRestSource, yt as getSection, zt as handleContentDiscardDraft } from "./search-DTLEWZR1.mjs";
5
+ import { $ as createFilePreviewMiddleware, A as isStandardPluginDefinition, At as generateManifest, Bt as handleContentDuplicate, C as getAllSources, Ct as handleMediaDelete, D as probeUrl, Dt as handleRevisionGet, E as getUrlSources, Et as handleMediaUpdate, F as createNoopSandboxRunner, Ft as handleContentCountScheduled, Gt as handleContentPermanentDelete, Ht as handleContentGetIncludingTrashed, I as PluginManager, It as handleContentCountTrashed, Jt as handleContentSchedule, Kt as handleContentPublish, L as createPluginManager, Lt as handleContentCreate, M as createNodeSandboxRunner, Mt as hashString, N as NoopSandboxRunner, O as registerSource, Ot as handleRevisionList, P as SandboxNotAvailableError, Pt as handleContentCompare, Q as parseWxrString, Qt as handleContentUpdate, R as PluginRouteError, Rt as handleContentDelete, S as clearSources, St as handleMediaCreate, T as getSource, Tt as handleMediaList, U as HookPipeline, Ut as handleContentList, Vt as handleContentGet, W as createHookPipeline, Wt as handleContentListTrashed, X as definePlugin, Xt as handleContentUnpublish, Yt as handleContentTranslations, Z as parseWxr, Zt as handleContentUnschedule, _ as buildPreviewUrl, _t as sanitizeHref, a as search, at as SessionDatabaseLimitError, b as parseWxrDate, bt as getSections, c as getWidgetArea, ct as buildPreviewSignatureHeader, d as getMenu, dt as signPreviewUrl, en as portableText, et as renderPreviewToolbar, f as getMenus, ft as verifyPreviewSignature, g as isPreviewRequest, gt as isSafeHref, h as getPreviewToken, ht as prosemirrorToPortableText, i as getSuggestions, it as FileSessionDatabaseFactory, j as NodeSandboxRunner, jt as computeContentHash, k as importReusableBlocksAsSections, kt as handleRevisionRestore, l as getWidgetAreas, lt as defaultPreviewSidecarClient, m as getComments, mt as portableTextToProsemirror, n as extractSearchableFields, nn as image, nt as dropSessionDatabaseTables, o as searchCollection, ot as isBlockedInPreview, p as getCommentCount, pt as after, qt as handleContentRestore, r as getSearchStats, rt as getAppliedSnapshotMeta, s as searchWithDb, st as renderPreviewLoadingPage, t as extractPlainText, tn as reference, tt as applySnapshotToDatabase, u as getWidgetComponents, ut as parsePreviewSignatureHeader, v as getPreviewUrl, w as getFileSources, wt as handleMediaGet, x as wxrSource, xt as getCollectionInfo, y as wordpressRestSource, yt as getSection, zt as handleContentDiscardDraft } from "./search-Hlm6g8Td.mjs";
6
6
  import { i as decodeSlug, t as ContentRepository } from "./content-DWi4d0rT.mjs";
7
7
  import "./base64-F8-DUraK.mjs";
8
8
  import { t as DinewayValidationError } from "./types-BawVha09.mjs";
@@ -16,7 +16,7 @@ import { i as invalidateRedirectCache } from "./cache-BdSY-gQN.mjs";
16
16
  import { i as FTSManager, n as SchemaRegistry } from "./registry-C0zjeB9P.mjs";
17
17
  import { n as getDb } from "./loader-sMG4TZ-u.mjs";
18
18
  import { n as requestCached } from "./request-cache-Dk5qPSOx.mjs";
19
- import { n as VERSION, t as COMMIT } from "./version-BYz0EzvH.mjs";
19
+ import { n as VERSION, t as COMMIT } from "./version-DxxaFHZ_.mjs";
20
20
  import { i as pluginManifestSchema } from "./manifest-schema-D1MSVnoI.mjs";
21
21
  import { t as generatePreviewToken } from "./tokens-CJz9ubV6.mjs";
22
22
  import BetterSqlite3 from "better-sqlite3";
@@ -1,5 +1,5 @@
1
1
  //#region src/version.ts
2
- const VERSION = "0.1.7";
2
+ const VERSION = "0.1.8";
3
3
  const COMMIT = "5e088838";
4
4
 
5
5
  //#endregion
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "dineway",
3
- "version": "0.1.7",
3
+ "version": "0.1.8",
4
4
  "description": "Agentic Website builder for restaurants — structured content meets AI via the Model Context Protocol",
5
5
  "type": "module",
6
6
  "main": "dist/index.mjs",