dineway 0.1.26 → 0.1.28

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.
Files changed (71) hide show
  1. package/dist/api/route-utils.d.mts +1 -1
  2. package/dist/api/schemas/index.d.mts +1 -1
  3. package/dist/{api-CXQfCGRX.mjs → api-B1tPdBKN.mjs} +1 -1
  4. package/dist/astro/index.d.mts +1 -1
  5. package/dist/astro/index.mjs +1 -1
  6. package/dist/astro/middleware/auth.d.mts +1 -1
  7. package/dist/astro/middleware/seed.mjs +1 -1
  8. package/dist/astro/middleware.mjs +2 -2
  9. package/dist/astro/routes/api/admin/api-tokens/_id_.mjs +1 -1
  10. package/dist/astro/routes/api/admin/api-tokens/index.mjs +1 -1
  11. package/dist/astro/routes/api/admin/comments/_id_/status.mjs +1 -1
  12. package/dist/astro/routes/api/admin/comments/_id_.mjs +1 -1
  13. package/dist/astro/routes/api/admin/comments/bulk.mjs +1 -1
  14. package/dist/astro/routes/api/admin/comments/counts.mjs +1 -1
  15. package/dist/astro/routes/api/admin/comments/index.mjs +1 -1
  16. package/dist/astro/routes/api/admin/context/_id_/history.mjs +1 -1
  17. package/dist/astro/routes/api/admin/context/_id_/index.mjs +1 -1
  18. package/dist/astro/routes/api/admin/context/_id_/review.mjs +2 -2
  19. package/dist/astro/routes/api/admin/context/_id_/supersede.mjs +2 -2
  20. package/dist/astro/routes/api/admin/context/diff.mjs +1 -1
  21. package/dist/astro/routes/api/admin/context/index.mjs +2 -2
  22. package/dist/astro/routes/api/admin/context/stale.mjs +1 -1
  23. package/dist/astro/routes/api/admin/hitl-requests/_id_/index.mjs +1 -1
  24. package/dist/astro/routes/api/admin/hitl-requests/_id_/resolve.mjs +1 -1
  25. package/dist/astro/routes/api/admin/hitl-requests/index.mjs +1 -1
  26. package/dist/astro/routes/api/admin/oauth-clients/_id_.mjs +1 -1
  27. package/dist/astro/routes/api/admin/oauth-clients/index.mjs +1 -1
  28. package/dist/astro/routes/api/admin/plugins/_id_/disable.mjs +1 -1
  29. package/dist/astro/routes/api/admin/plugins/_id_/enable.mjs +1 -1
  30. package/dist/astro/routes/api/admin/plugins/_id_/index.mjs +1 -1
  31. package/dist/astro/routes/api/admin/plugins/_id_/uninstall.mjs +1 -1
  32. package/dist/astro/routes/api/admin/plugins/_id_/update.mjs +1 -1
  33. package/dist/astro/routes/api/admin/plugins/index.mjs +1 -1
  34. package/dist/astro/routes/api/admin/plugins/marketplace/_id_/index.mjs +1 -1
  35. package/dist/astro/routes/api/admin/plugins/marketplace/_id_/install.mjs +1 -1
  36. package/dist/astro/routes/api/admin/plugins/marketplace/index.mjs +1 -1
  37. package/dist/astro/routes/api/admin/plugins/updates.mjs +1 -1
  38. package/dist/astro/routes/api/admin/themes/marketplace/_id_/index.mjs +1 -1
  39. package/dist/astro/routes/api/admin/themes/marketplace/index.mjs +1 -1
  40. package/dist/astro/routes/api/auth/setup-token/index.mjs +4 -4
  41. package/dist/astro/routes/api/comments/_collection_/_contentId_/index.mjs +1 -1
  42. package/dist/astro/routes/api/health.mjs +1 -1
  43. package/dist/astro/routes/api/manifest.mjs +1 -1
  44. package/dist/astro/routes/api/mcp.mjs +1 -1
  45. package/dist/astro/routes/api/openapi.json.mjs +1 -1
  46. package/dist/astro/routes/api/schema/collections/_slug_/fields/_fieldSlug_.mjs +1 -1
  47. package/dist/astro/routes/api/schema/collections/_slug_/fields/index.mjs +1 -1
  48. package/dist/astro/routes/api/schema/collections/_slug_/fields/reorder.mjs +1 -1
  49. package/dist/astro/routes/api/schema/collections/_slug_/index.mjs +1 -1
  50. package/dist/astro/routes/api/schema/collections/index.mjs +1 -1
  51. package/dist/astro/routes/api/schema/orphans/_slug_.mjs +1 -1
  52. package/dist/astro/routes/api/schema/orphans/index.mjs +1 -1
  53. package/dist/astro/routes/api/well-known/auth.mjs +1 -1
  54. package/dist/astro/types.d.mts +1 -1
  55. package/dist/{bylines-D9TSSOe0.d.mts → bylines-Cf_VHc-Y.d.mts} +7 -7
  56. package/dist/cli/index.mjs +286 -247
  57. package/dist/client/index.d.mts +7 -1
  58. package/dist/client/index.mjs +4 -0
  59. package/dist/index.d.mts +1 -1
  60. package/dist/index.mjs +1 -1
  61. package/dist/media/local-runtime.d.mts +1 -1
  62. package/dist/plugins/adapt-sandbox-entry.d.mts +1 -1
  63. package/dist/runtime.d.mts +1 -1
  64. package/dist/version-B9lKhZ7w.mjs +6 -0
  65. package/package.json +1 -1
  66. package/dist/version-C-Dcb5bX.mjs +0 -6
  67. /package/dist/{auth-control-guard-1FHtkDP6.mjs → auth-control-guard-C-6ysFEy.mjs} +0 -0
  68. /package/dist/{comments-yTbeIYc2.mjs → comments-85tbgZQN.mjs} +0 -0
  69. /package/dist/{context-DgqEfcWz.mjs → context-cudavuns.mjs} +0 -0
  70. /package/dist/{context-route-helpers-Dq5U_AXp.mjs → context-route-helpers--PJWR-5R.mjs} +0 -0
  71. /package/dist/{hitl-requests-DaRuZ7tb.mjs → hitl-requests-BQiAzKqo.mjs} +0 -0
@@ -182,6 +182,10 @@ interface MenuItem {
182
182
  parentId?: string | null;
183
183
  sortOrder: number;
184
184
  }
185
+ interface SetupLinkResult {
186
+ setupUrl: string;
187
+ expiresAt: string;
188
+ }
185
189
  /** Full schema export (returned by /api/schema) */
186
190
  interface SchemaExport {
187
191
  collections: Array<{
@@ -392,6 +396,8 @@ declare class DinewayClient {
392
396
  menus(): Promise<Menu[]>;
393
397
  /** Get a menu with its items */
394
398
  menu(name: string): Promise<MenuWithItems>;
399
+ /** Create a one-time browser setup link for the current admin user. */
400
+ createSetupLink(): Promise<SetupLinkResult>;
395
401
  /** Make a typed JSON request to the API */
396
402
  private request;
397
403
  /** Make a raw request — caller handles response */
@@ -402,4 +408,4 @@ declare class DinewayClient {
402
408
  private getFieldSchemas;
403
409
  }
404
410
  //#endregion
405
- export { ApiError, ClientResponse, Collection, CollectionWithFields, ContentItem, DinewayApiError, DinewayClient, DinewayClientError, DinewayClientOptions, Field, type Interceptor, ListResult, Manifest, MediaItem, Menu, MenuItem, MenuWithItems, type PortableTextBlock, PublishContentOptions, SchemaExport, SearchResult, Taxonomy, Term, createTransport, csrfInterceptor, devBypassInterceptor, markdownToPortableText, portableTextToMarkdown, tokenInterceptor };
411
+ export { ApiError, ClientResponse, Collection, CollectionWithFields, ContentItem, DinewayApiError, DinewayClient, DinewayClientError, DinewayClientOptions, Field, type Interceptor, ListResult, Manifest, MediaItem, Menu, MenuItem, MenuWithItems, type PortableTextBlock, PublishContentOptions, SchemaExport, SearchResult, SetupLinkResult, Taxonomy, Term, createTransport, csrfInterceptor, devBypassInterceptor, markdownToPortableText, portableTextToMarkdown, tokenInterceptor };
@@ -285,6 +285,10 @@ var DinewayClient = class {
285
285
  async menu(name) {
286
286
  return this.request("GET", `/menus/${encodeURIComponent(name)}`);
287
287
  }
288
+ /** Create a one-time browser setup link for the current admin user. */
289
+ async createSetupLink() {
290
+ return this.request("POST", "/auth/setup-token");
291
+ }
288
292
  /** Make a typed JSON request to the API */
289
293
  async request(method, path, body) {
290
294
  const response = await this.requestRaw(method, path, body);
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-D9TSSOe0.mjs";
14
+ import "./bylines-Cf_VHc-Y.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-CXQfCGRX.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-B1tPdBKN.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-D9TSSOe0.mjs";
10
+ import "../bylines-Cf_VHc-Y.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-D9TSSOe0.mjs";
8
+ import "../bylines-Cf_VHc-Y.mjs";
9
9
  import "../types-BBETcziA.mjs";
10
10
  import "../validate-BzUCAU2a.mjs";
11
11
 
@@ -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-D9TSSOe0.mjs";
8
+ import "./bylines-Cf_VHc-Y.mjs";
9
9
  import "./types-BBETcziA.mjs";
10
10
  import "./validate-BzUCAU2a.mjs";
11
11
  import { t as getMediaProvider } from "./provider-loader-BaZhx7E3.mjs";
@@ -0,0 +1,6 @@
1
+ //#region src/version.ts
2
+ const VERSION = "0.1.28";
3
+ const COMMIT = "75f78e7a";
4
+
5
+ //#endregion
6
+ export { VERSION as n, COMMIT as t };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "dineway",
3
- "version": "0.1.26",
3
+ "version": "0.1.28",
4
4
  "description": "Agentic Website builder for restaurants — structured content meets AI via the Model Context Protocol",
5
5
  "type": "module",
6
6
  "publishConfig": {
@@ -1,6 +0,0 @@
1
- //#region src/version.ts
2
- const VERSION = "0.1.26";
3
- const COMMIT = "e8fde982";
4
-
5
- //#endregion
6
- export { VERSION as n, COMMIT as t };