alinea 2.0.0-preview.13 → 2.0.0-preview.14

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 (323) hide show
  1. package/dist/.init/content/pages/welcome.json +1 -1
  2. package/dist/.mcp/later/dev.json +1 -1
  3. package/dist/.mcp/online/dev.json +1 -1
  4. package/dist/adapter/next/cms.js +6 -2
  5. package/dist/adapter/next/context.js +1 -4
  6. package/dist/adapter/next/handler.js +12 -1
  7. package/dist/backend/CommitEntries.d.ts +17 -0
  8. package/dist/backend/CommitEntries.js +39 -0
  9. package/dist/backend/Handler.d.ts +9 -0
  10. package/dist/backend/Handler.js +80 -20
  11. package/dist/backend/api/BasicAuth.js +5 -1
  12. package/dist/backend/api/CreateBackend.js +2 -2
  13. package/dist/backend/api/DatabaseApi.js +18 -5
  14. package/dist/backend/api/GithubApi.d.ts +13 -0
  15. package/dist/backend/api/GithubApi.js +170 -30
  16. package/dist/backend/api/database.js +2 -2
  17. package/dist/backend/util/Syncable.d.ts +6 -0
  18. package/dist/backend/util/Syncable.js +3 -1
  19. package/dist/bundled.d.ts +911 -151
  20. package/dist/chunks/{chunk-5H4D5JQL.js → chunk-2PP7WJUJ.js} +1 -11
  21. package/dist/chunks/{chunk-QHHMKJUO.js → chunk-7DDPSWRY.js} +465 -2
  22. package/dist/chunks/{chunk-HOETF6HN.js → chunk-PMGIIYDD.js} +1 -0
  23. package/dist/chunks/{chunk-3QFSGTGF.js → chunk-SCV3TEXM.js} +1 -1
  24. package/dist/chunks/{chunk-UPY2RUZF.js → chunk-TWBREZWC.js} +30 -0
  25. package/dist/cli/Generate.js +20 -7
  26. package/dist/cli/Mcp.js +1 -1
  27. package/dist/cli/Serve.js +1 -1
  28. package/dist/cli/bin.js +1 -1
  29. package/dist/cli/build/BuildEmitter.d.ts +5 -1
  30. package/dist/cli/build/BuildEmitter.js +8 -3
  31. package/dist/cli/generate/CompileConfig.js +10 -6
  32. package/dist/cli/generate/DevDB.d.ts +4 -1
  33. package/dist/cli/generate/DevDB.js +15 -7
  34. package/dist/cli/generate/GenerateDashboard.js +1 -0
  35. package/dist/cli/generate/MediaLocations.d.ts +18 -0
  36. package/dist/cli/generate/MediaLocations.js +69 -0
  37. package/dist/cli/serve/CreateLocalServer.js +1 -0
  38. package/dist/cli/serve/mcp/DevMcp.js +1 -1
  39. package/dist/cloud/CloudRemote.js +21 -7
  40. package/dist/cms.d.ts +4 -2
  41. package/dist/components/Alert.js +2 -2
  42. package/dist/components/AppShell.js +2 -2
  43. package/dist/components/AsyncList.d.ts +52 -0
  44. package/dist/components/AsyncList.js +69 -0
  45. package/dist/components/Breadcrumbs.js +6 -6
  46. package/dist/components/Button.js +4 -4
  47. package/dist/components/Calendar.js +18 -18
  48. package/dist/components/Checkbox.js +10 -10
  49. package/dist/components/CheckboxGroup.js +2 -2
  50. package/dist/components/Collapsible.js +5 -5
  51. package/dist/components/ColorSwatch.js +2 -2
  52. package/dist/components/ColorSwatchPicker.js +4 -4
  53. package/dist/components/ComboBox.d.ts +27 -9
  54. package/dist/components/ComboBox.js +40 -9
  55. package/dist/components/Command.js +13 -13
  56. package/dist/components/ContentCard.js +28 -28
  57. package/dist/components/ContentGrid.js +11 -11
  58. package/dist/components/DataList.js +1 -1
  59. package/dist/components/DateField.d.ts +4 -0
  60. package/dist/components/DateField.js +2 -2
  61. package/dist/components/DatePicker.js +2 -2
  62. package/dist/components/DateRangePicker.js +2 -2
  63. package/dist/components/Dialog.d.ts +14 -3
  64. package/dist/components/Dialog.js +38 -11
  65. package/dist/components/DropZone.js +6 -6
  66. package/dist/components/DropdownMenu.js +8 -8
  67. package/dist/components/Empty.js +4 -4
  68. package/dist/components/Field.d.ts +1 -1
  69. package/dist/components/Field.js +18 -12
  70. package/dist/components/Form.d.ts +23 -0
  71. package/dist/components/Form.js +64 -0
  72. package/dist/components/Link.d.ts +8 -1
  73. package/dist/components/List.js +27 -27
  74. package/dist/components/MediaPreview.js +5 -5
  75. package/dist/components/MultipleSelect.d.ts +13 -8
  76. package/dist/components/MultipleSelect.js +25 -25
  77. package/dist/components/NavRail.js +7 -7
  78. package/dist/components/NumberField.d.ts +5 -1
  79. package/dist/components/NumberField.js +6 -4
  80. package/dist/components/Page.js +6 -6
  81. package/dist/components/Popover.js +2 -2
  82. package/dist/components/PreviewFrame.js +8 -8
  83. package/dist/components/RadioGroup.js +10 -10
  84. package/dist/components/Resizable.js +1 -1
  85. package/dist/components/SearchField.js +8 -8
  86. package/dist/components/Select.d.ts +13 -10
  87. package/dist/components/Select.js +18 -32
  88. package/dist/components/Sheet.js +6 -6
  89. package/dist/components/Sidebar.js +5 -5
  90. package/dist/components/SortableList.js +12 -12
  91. package/dist/components/Spinner.js +4 -4
  92. package/dist/components/Stack.d.ts +20 -0
  93. package/dist/components/Stack.js +45 -0
  94. package/dist/components/Surface.js +1 -1
  95. package/dist/components/Switch.js +5 -5
  96. package/dist/components/Table.d.ts +11 -1
  97. package/dist/components/Table.js +81 -53
  98. package/dist/components/Tabs.js +6 -6
  99. package/dist/components/TagGroup.js +10 -10
  100. package/dist/components/TextField.d.ts +7 -1
  101. package/dist/components/TextField.js +20 -11
  102. package/dist/components/TimeField.d.ts +6 -1
  103. package/dist/components/TimeField.js +51 -26
  104. package/dist/components/Timestamp.js +1 -1
  105. package/dist/components/ToggleGroup.js +2 -2
  106. package/dist/components/Toolbar.js +3 -3
  107. package/dist/components/Tooltip.js +5 -4
  108. package/dist/components/Tree.js +27 -27
  109. package/dist/components/internal/DateControl.js +11 -11
  110. package/dist/components/internal/FormScope.d.ts +2 -0
  111. package/dist/components/internal/FormScope.js +8 -0
  112. package/dist/components/internal/ListBoxGroup.d.ts +12 -0
  113. package/dist/components/internal/ListBoxGroup.js +46 -0
  114. package/dist/components/internal/ListBoxOption.d.ts +2 -2
  115. package/dist/components/internal/ListBoxOption.js +5 -5
  116. package/dist/components/internal/Locale.js +2 -2
  117. package/dist/components/internal/PopoverSurface.js +5 -4
  118. package/dist/components/internal/SelectionCheckbox.js +5 -5
  119. package/dist/components/internal/Slot.js +1 -1
  120. package/dist/components/internal/ToggleButton.js +4 -4
  121. package/dist/components/internal/Trigger.js +2 -2
  122. package/dist/components/internal/useDragDrop.js +2 -2
  123. package/dist/components/types.d.ts +4 -0
  124. package/dist/components.d.ts +3 -0
  125. package/dist/components.js +3 -0
  126. package/dist/core/Client.js +12 -1
  127. package/dist/core/Config.d.ts +6 -0
  128. package/dist/core/Config.js +12 -0
  129. package/dist/core/DashboardEntry.d.ts +19 -0
  130. package/dist/core/DashboardEntry.js +0 -0
  131. package/dist/core/Document.d.ts +2 -2
  132. package/dist/core/Document.js +10 -3
  133. package/dist/core/EntryFields.d.ts +8 -2
  134. package/dist/core/Field.d.ts +5 -0
  135. package/dist/core/Filter.d.ts +19 -2
  136. package/dist/core/Filter.js +5 -0
  137. package/dist/core/Graph.d.ts +10 -2
  138. package/dist/core/Overview.d.ts +74 -5
  139. package/dist/core/Overview.js +1 -0
  140. package/dist/core/Root.js +1 -1
  141. package/dist/core/Scope.d.ts +5 -0
  142. package/dist/core/Scope.js +22 -5
  143. package/dist/core/Type.d.ts +25 -6
  144. package/dist/core/Type.js +25 -7
  145. package/dist/core/db/LocalStore.d.ts +7 -0
  146. package/dist/core/field/CreateField.d.ts +1 -2
  147. package/dist/core/source/Source.d.ts +2 -0
  148. package/dist/core/source/Source.js +11 -0
  149. package/dist/core/util/Async.d.ts +2 -0
  150. package/dist/core/util/Async.js +12 -1
  151. package/dist/core/util/Checks.js +1 -1
  152. package/dist/core/util/Slugs.js +4 -3
  153. package/dist/dashboard/App.css +13 -11
  154. package/dist/dashboard/App.d.ts +1 -0
  155. package/dist/dashboard/App.js +22 -6
  156. package/dist/dashboard/Href.d.ts +37 -0
  157. package/dist/dashboard/Href.js +46 -0
  158. package/dist/dashboard/app/ActivityStatus.js +34 -12
  159. package/dist/dashboard/app/AuthView.js +2 -2
  160. package/dist/dashboard/app/BlockSettings.d.ts +9 -0
  161. package/dist/dashboard/app/BlockSettings.js +16 -0
  162. package/dist/dashboard/app/BlockSheet.js +3 -3
  163. package/dist/dashboard/app/BlockSheetStoryFrame.js +2 -2
  164. package/dist/dashboard/app/CompactField.js +15 -15
  165. package/dist/dashboard/app/CroppedImage.js +2 -2
  166. package/dist/dashboard/app/DashboardLayout.d.ts +1 -1
  167. package/dist/dashboard/app/DashboardLayout.js +12 -0
  168. package/dist/dashboard/app/EntryActions.d.ts +11 -0
  169. package/dist/dashboard/app/EntryActions.js +30 -0
  170. package/dist/dashboard/app/EntryFields.d.ts +15 -2
  171. package/dist/dashboard/app/EntryFields.js +26 -5
  172. package/dist/dashboard/app/EntryHeader.js +17 -7
  173. package/dist/dashboard/app/EntryReferences.js +2 -2
  174. package/dist/dashboard/app/EntrySidebar.js +25 -23
  175. package/dist/dashboard/app/EntrySidebarPreview.js +2 -2
  176. package/dist/dashboard/app/EntryValidationModal.js +3 -3
  177. package/dist/dashboard/app/Explorer.js +84 -45
  178. package/dist/dashboard/app/ExplorerBatchActions.js +4 -4
  179. package/dist/dashboard/app/ExplorerControls.js +5 -5
  180. package/dist/dashboard/app/ExplorerList.js +2 -2
  181. package/dist/dashboard/app/ExplorerModal.js +3 -3
  182. package/dist/dashboard/app/ExplorerOverviewHeader.d.ts +6 -0
  183. package/dist/dashboard/app/ExplorerOverviewHeader.js +28 -0
  184. package/dist/dashboard/app/ExplorerTable.js +7 -7
  185. package/dist/dashboard/app/ExplorerTabs.d.ts +12 -0
  186. package/dist/dashboard/app/ExplorerTabs.js +42 -0
  187. package/dist/dashboard/app/ImageEditor.js +31 -31
  188. package/dist/dashboard/app/LinkPicker.js +3 -3
  189. package/dist/dashboard/app/LocaleMenu.js +9 -9
  190. package/dist/dashboard/app/MediaPreviewCell.js +5 -5
  191. package/dist/dashboard/app/OverviewCell.js +12 -10
  192. package/dist/dashboard/app/RemoveDialog.js +5 -0
  193. package/dist/dashboard/app/SearchBar.js +4 -4
  194. package/dist/dashboard/app/SettingsTab.d.ts +6 -0
  195. package/dist/dashboard/app/SettingsTab.js +27 -0
  196. package/dist/dashboard/app/SidebarTree.js +19 -19
  197. package/dist/dashboard/app/WorkspaceMenu.js +6 -6
  198. package/dist/dashboard/app/WorkspaceRoots.js +102 -98
  199. package/dist/dashboard/app/editor/FileEditor.js +18 -18
  200. package/dist/dashboard/app/pages/EntryPage.js +42 -39
  201. package/dist/dashboard/app/pages/RootPage.js +3 -3
  202. package/dist/dashboard/app/pages/SplashPage.js +94 -79
  203. package/dist/dashboard/app/pages/UsersPage.js +9 -9
  204. package/dist/dashboard/app/ui/DashboardModal.js +14 -14
  205. package/dist/dashboard/atoms/activity.d.ts +1 -0
  206. package/dist/dashboard/atoms/activity.js +8 -5
  207. package/dist/dashboard/atoms/config.d.ts +2 -0
  208. package/dist/dashboard/atoms/dashboard.d.ts +11 -0
  209. package/dist/dashboard/atoms/dashboard.js +8 -0
  210. package/dist/dashboard/atoms/editor.d.ts +7 -1
  211. package/dist/dashboard/atoms/editor.js +14 -2
  212. package/dist/dashboard/atoms/explorer.d.ts +15 -0
  213. package/dist/dashboard/atoms/explorer.js +43 -14
  214. package/dist/dashboard/atoms/graph.d.ts +5 -0
  215. package/dist/dashboard/atoms/graph.js +26 -1
  216. package/dist/dashboard/atoms/nav.d.ts +16 -10
  217. package/dist/dashboard/atoms/nav.js +96 -36
  218. package/dist/dashboard/atoms/overview.d.ts +26 -4
  219. package/dist/dashboard/atoms/overview.js +41 -12
  220. package/dist/dashboard/atoms/root.js +7 -1
  221. package/dist/dashboard/boot/ActivityEvent.d.ts +1 -1
  222. package/dist/dashboard/boot/Boot.js +6 -0
  223. package/dist/dashboard/boot/DashboardWorker.d.ts +6 -0
  224. package/dist/dashboard/boot/DashboardWorker.js +89 -8
  225. package/dist/dashboard/boot/LoadWorker.js +3 -0
  226. package/dist/dashboard/boot/SyncEvent.d.ts +7 -0
  227. package/dist/dashboard/boot/SyncEvent.js +14 -0
  228. package/dist/dashboard/boot/WorkerDB.d.ts +1 -0
  229. package/dist/dashboard/boot/WorkerDB.js +3 -0
  230. package/dist/dashboard/cms/EntryTable.d.ts +4 -3
  231. package/dist/dashboard/cms/EntryTable.js +2 -2
  232. package/dist/dashboard/cms/ViewProps.d.ts +3 -2
  233. package/dist/dashboard/cms/hooks.d.ts +34 -18
  234. package/dist/dashboard/cms/hooks.js +43 -18
  235. package/dist/dashboard/contexts.d.ts +3 -2
  236. package/dist/dashboard/contexts.js +3 -2
  237. package/dist/dashboard/hook/UseEntryEditor.d.ts +1 -1
  238. package/dist/dashboard/hook/UseEntryEditor.js +7 -3
  239. package/dist/dashboard/icons.d.ts +1 -0
  240. package/dist/dashboard/icons.js +15 -0
  241. package/dist/database/BrowserEntryStore.js +35 -13
  242. package/dist/database/DatabaseTables.js +1 -1
  243. package/dist/database/EntryDatabase.d.ts +10 -1
  244. package/dist/database/EntryDatabase.js +31 -10
  245. package/dist/database/EntryStore.js +1 -11
  246. package/dist/database/entry/EntryTable.d.ts +5 -3
  247. package/dist/database/entry/EntryTable.js +25 -8
  248. package/dist/database/query/Condition.d.ts +4 -1
  249. package/dist/database/query/Condition.js +16 -5
  250. package/dist/database/query/EntryQuery.js +59 -7
  251. package/dist/database/query/Relation.d.ts +13 -1
  252. package/dist/database/query/Relation.js +19 -1
  253. package/dist/database/query/Search.d.ts +7 -1
  254. package/dist/database/query/Search.js +54 -9
  255. package/dist/database/sync/EntrySyncer.d.ts +2 -0
  256. package/dist/database/sync/EntrySyncer.js +4 -2
  257. package/dist/database/sync/Ingest.d.ts +2 -1
  258. package/dist/database/sync/Ingest.js +20 -6
  259. package/dist/field/code/CodeField.view.js +12 -12
  260. package/dist/field/link/EntryLink.d.ts +4 -5
  261. package/dist/field/link/FileLink.d.ts +2 -2
  262. package/dist/field/link/ImageLink.d.ts +2 -5
  263. package/dist/field/link/ImageLink.js +0 -1
  264. package/dist/field/link/LinkField.view.js +18 -15
  265. package/dist/field/list/ListField.view.js +50 -35
  266. package/dist/field/metadata/MetadataField.view.js +14 -14
  267. package/dist/field/richtext/RichTextBlock.js +39 -35
  268. package/dist/field/richtext/RichTextExtensions.js +23 -23
  269. package/dist/field/richtext/RichTextField.view.js +6 -6
  270. package/dist/field/richtext/RichTextInsertMenu.js +5 -5
  271. package/dist/field/richtext/RichTextToolbar.js +26 -1
  272. package/dist/field/richtext/Toolbar.d.ts +9 -1
  273. package/dist/field/richtext/Toolbar.js +12 -2
  274. package/dist/field/select/SelectField.view.js +1 -0
  275. package/dist/index.css +174 -23
  276. package/dist/index.d.ts +1 -0
  277. package/dist/index.js +3 -1
  278. package/dist/next.d.ts +2 -0
  279. package/dist/next.edge.d.ts +2 -0
  280. package/dist/picker/entry/EntryPicker.d.ts +3 -1
  281. package/dist/picker/entry/EntryPicker.js +15 -1
  282. package/dist/preview/react.js +3 -0
  283. package/dist/query.d.ts +26 -14
  284. package/dist/query.js +4 -0
  285. package/dist/types.d.ts +8 -5
  286. package/dist/ui/Stack.d.ts +4 -2
  287. package/docs/ai-setup.md +3 -3
  288. package/docs/cli.md +4 -2
  289. package/docs/components/combo-box.md +105 -16
  290. package/docs/components/date-field.md +1 -1
  291. package/docs/components/dialog.md +51 -0
  292. package/docs/components/form.md +67 -0
  293. package/docs/components/link.md +10 -0
  294. package/docs/components/multiple-select.md +9 -17
  295. package/docs/components/number-field.md +5 -1
  296. package/docs/components/select.md +9 -20
  297. package/docs/components/stack.md +42 -0
  298. package/docs/components/table.md +83 -0
  299. package/docs/components/text-field.md +9 -1
  300. package/docs/components/time-field.md +5 -1
  301. package/docs/components.md +39 -1
  302. package/docs/configuration.md +3 -1
  303. package/docs/custom-fields.md +135 -7
  304. package/docs/deploy/self-host.md +2 -0
  305. package/docs/deploy.md +7 -4
  306. package/docs/fields/image.md +0 -1
  307. package/docs/fields/list.md +19 -0
  308. package/docs/fields/object.md +5 -3
  309. package/docs/fields/rich-text.md +31 -0
  310. package/docs/index.md +8 -6
  311. package/docs/instant-publishing.md +23 -2
  312. package/docs/overviews.md +128 -4
  313. package/docs/query/filtering.md +2 -0
  314. package/docs/query/related.md +58 -9
  315. package/docs/query.md +52 -1
  316. package/docs/quickstart.md +5 -5
  317. package/docs/schema/document.md +2 -0
  318. package/docs/schema/type.md +3 -1
  319. package/docs/upgrading.md +100 -19
  320. package/llms-full.txt +1022 -125
  321. package/package.json +1 -1
  322. package/readme.md +2 -2
  323. package/dist/chunks/{chunk-4ZA6KZHS.js → chunk-6FQ5IMNA.js} +3 -3
@@ -81,15 +81,6 @@ function json(name) {
81
81
  }
82
82
  });
83
83
  }
84
- function blob(name) {
85
- return new Column({
86
- name,
87
- type: blobType,
88
- mapFromDriverValue(value) {
89
- return new Uint8Array(value);
90
- }
91
- });
92
- }
93
84
 
94
85
  export {
95
86
  id,
@@ -98,6 +89,5 @@ export {
98
89
  integer,
99
90
  number,
100
91
  boolean,
101
- json,
102
- blob
92
+ json
103
93
  };
@@ -127,12 +127,13 @@ import {
127
127
  $f282e36c29c025e8$export$f9d5c8beee7d008d,
128
128
  $f302ef02e940a6f8$export$ccdee5eaf73cf661,
129
129
  $f8a024fbad3a5a2e$export$542a6fd13ac93354,
130
+ $fd2148440a13ec26$export$571b5131b7e65c11,
130
131
  $fd2148440a13ec26$export$75ee7c75d68f5b0e,
131
132
  $fd2148440a13ec26$export$aca958c65c314e6c,
132
133
  $fd2148440a13ec26$export$fc1a364ae1f3ff10,
133
134
  $fd3c5e01e837dc20$export$8042c6c013fd5226,
134
135
  $fe16bffc7a557bf0$export$7f54fc3180508a52
135
- } from "./chunk-HOETF6HN.js";
136
+ } from "./chunk-PMGIIYDD.js";
136
137
  import {
137
138
  $12a3c853105e5a70$export$ad991b66133851cf,
138
139
  $2aaf608024c21ca1$export$680ea196effce5f,
@@ -1311,6 +1312,23 @@ var $1f3c3b1a70cec653$export$ff05c3ac10437e03 = /* @__PURE__ */ (0, $QpkXT$creat
1311
1312
  // node_modules/react-aria-components/dist/private/Form.mjs
1312
1313
  import $iSTzu$react, { createContext as $iSTzu$createContext, forwardRef as $iSTzu$forwardRef } from "react";
1313
1314
  var $cdaed739b1139372$export$c24727297075ec6a = /* @__PURE__ */ (0, $iSTzu$createContext)(null);
1315
+ var $cdaed739b1139372$export$a7fed597f4b8afd8 = /* @__PURE__ */ (0, $iSTzu$forwardRef)(function Form(props, ref) {
1316
+ [props, ref] = (0, $7230ffa83bc0c2cf$export$29f1550f4b0d4415)(props, ref, $cdaed739b1139372$export$c24727297075ec6a);
1317
+ let { validationErrors, validationBehavior = "native", children, className, ...domProps } = props;
1318
+ return /* @__PURE__ */ (0, $iSTzu$react).createElement((0, $7230ffa83bc0c2cf$export$df3a06d6289f983e).form, {
1319
+ noValidate: validationBehavior !== "native",
1320
+ ...domProps,
1321
+ ref,
1322
+ className: className || "react-aria-Form"
1323
+ }, /* @__PURE__ */ (0, $iSTzu$react).createElement($cdaed739b1139372$export$c24727297075ec6a.Provider, {
1324
+ value: {
1325
+ ...props,
1326
+ validationBehavior
1327
+ }
1328
+ }, /* @__PURE__ */ (0, $iSTzu$react).createElement((0, $fd2148440a13ec26$export$571b5131b7e65c11).Provider, {
1329
+ value: validationErrors ?? {}
1330
+ }, children)));
1331
+ });
1314
1332
 
1315
1333
  // node_modules/react-stately/dist/private/checkbox/useCheckboxGroupState.mjs
1316
1334
  import { useState as $84m2W$useState, useRef as $84m2W$useRef } from "react";
@@ -13080,6 +13098,445 @@ function $143fb904d86051ce$var$renderDropIndicatorWrapper(parent, reusableView,
13080
13098
  return indicator;
13081
13099
  }
13082
13100
 
13101
+ // node_modules/react-stately/dist/private/data/useListData.mjs
13102
+ import { useState as $3Jrml$useState, useMemo as $3Jrml$useMemo } from "react";
13103
+ function $232f8dea1b0a4f2f$export$79c0c687a5963b0a(opts, dispatch) {
13104
+ let { cursor, getKey } = opts;
13105
+ return {
13106
+ setSelectedKeys(selectedKeys) {
13107
+ dispatch((state) => ({
13108
+ ...state,
13109
+ selectedKeys
13110
+ }));
13111
+ },
13112
+ addKeysToSelection(selectedKeys) {
13113
+ dispatch((state) => {
13114
+ if (state.selectedKeys === "all") return state;
13115
+ if (selectedKeys === "all") return {
13116
+ ...state,
13117
+ selectedKeys: "all"
13118
+ };
13119
+ return {
13120
+ ...state,
13121
+ selectedKeys: /* @__PURE__ */ new Set([
13122
+ ...state.selectedKeys,
13123
+ ...selectedKeys
13124
+ ])
13125
+ };
13126
+ });
13127
+ },
13128
+ removeKeysFromSelection(selectedKeys) {
13129
+ dispatch((state) => {
13130
+ if (selectedKeys === "all") return {
13131
+ ...state,
13132
+ selectedKeys: /* @__PURE__ */ new Set()
13133
+ };
13134
+ let selection = state.selectedKeys === "all" ? new Set(state.items.map(getKey)) : new Set(state.selectedKeys);
13135
+ for (let key of selectedKeys) selection.delete(key);
13136
+ return {
13137
+ ...state,
13138
+ selectedKeys: selection
13139
+ };
13140
+ });
13141
+ },
13142
+ setFilterText(filterText) {
13143
+ dispatch((state) => ({
13144
+ ...state,
13145
+ filterText
13146
+ }));
13147
+ },
13148
+ insert(index, ...values) {
13149
+ dispatch((state) => $232f8dea1b0a4f2f$var$insert(state, index, ...values));
13150
+ },
13151
+ insertBefore(key, ...values) {
13152
+ dispatch((state) => {
13153
+ let index = state.items.findIndex((item) => getKey?.(item) === key);
13154
+ if (index === -1) {
13155
+ if (state.items.length === 0) index = 0;
13156
+ else return state;
13157
+ }
13158
+ return $232f8dea1b0a4f2f$var$insert(state, index, ...values);
13159
+ });
13160
+ },
13161
+ insertAfter(key, ...values) {
13162
+ dispatch((state) => {
13163
+ let index = state.items.findIndex((item) => getKey?.(item) === key);
13164
+ if (index === -1) {
13165
+ if (state.items.length === 0) index = 0;
13166
+ else return state;
13167
+ }
13168
+ return $232f8dea1b0a4f2f$var$insert(state, index + 1, ...values);
13169
+ });
13170
+ },
13171
+ prepend(...values) {
13172
+ dispatch((state) => $232f8dea1b0a4f2f$var$insert(state, 0, ...values));
13173
+ },
13174
+ append(...values) {
13175
+ dispatch((state) => $232f8dea1b0a4f2f$var$insert(state, state.items.length, ...values));
13176
+ },
13177
+ remove(...keys) {
13178
+ dispatch((state) => {
13179
+ let keySet = new Set(keys);
13180
+ let items = state.items.filter((item) => !keySet.has(getKey(item)));
13181
+ let selection = "all";
13182
+ if (state.selectedKeys !== "all") {
13183
+ selection = new Set(state.selectedKeys);
13184
+ for (let key of keys) selection.delete(key);
13185
+ }
13186
+ if (cursor == null && items.length === 0) selection = /* @__PURE__ */ new Set();
13187
+ return {
13188
+ ...state,
13189
+ items,
13190
+ selectedKeys: selection
13191
+ };
13192
+ });
13193
+ },
13194
+ removeSelectedItems() {
13195
+ dispatch((state) => {
13196
+ if (state.selectedKeys === "all") return {
13197
+ ...state,
13198
+ items: [],
13199
+ selectedKeys: /* @__PURE__ */ new Set()
13200
+ };
13201
+ let selectedKeys = state.selectedKeys;
13202
+ let items = state.items.filter((item) => !selectedKeys.has(getKey(item)));
13203
+ return {
13204
+ ...state,
13205
+ items,
13206
+ selectedKeys: /* @__PURE__ */ new Set()
13207
+ };
13208
+ });
13209
+ },
13210
+ move(key, toIndex) {
13211
+ dispatch((state) => {
13212
+ let index = state.items.findIndex((item2) => getKey(item2) === key);
13213
+ if (index === -1) return state;
13214
+ let copy = state.items.slice();
13215
+ let [item] = copy.splice(index, 1);
13216
+ copy.splice(toIndex, 0, item);
13217
+ return {
13218
+ ...state,
13219
+ items: copy
13220
+ };
13221
+ });
13222
+ },
13223
+ moveBefore(key, keys) {
13224
+ dispatch((state) => {
13225
+ let toIndex = state.items.findIndex((item) => getKey(item) === key);
13226
+ if (toIndex === -1) return state;
13227
+ let keyArray = Array.isArray(keys) ? keys : [
13228
+ ...keys
13229
+ ];
13230
+ let indices = keyArray.map((key2) => state.items.findIndex((item) => getKey(item) === key2)).sort((a, b) => a - b);
13231
+ return $232f8dea1b0a4f2f$var$move(state, indices, toIndex);
13232
+ });
13233
+ },
13234
+ moveAfter(key, keys) {
13235
+ dispatch((state) => {
13236
+ let toIndex = state.items.findIndex((item) => getKey(item) === key);
13237
+ if (toIndex === -1) return state;
13238
+ let keyArray = Array.isArray(keys) ? keys : [
13239
+ ...keys
13240
+ ];
13241
+ let indices = keyArray.map((key2) => state.items.findIndex((item) => getKey(item) === key2)).sort((a, b) => a - b);
13242
+ return $232f8dea1b0a4f2f$var$move(state, indices, toIndex + 1);
13243
+ });
13244
+ },
13245
+ update(key, newValue) {
13246
+ dispatch((state) => {
13247
+ let index = state.items.findIndex((item) => getKey(item) === key);
13248
+ if (index === -1) return state;
13249
+ let updatedValue;
13250
+ if (typeof newValue === "function") updatedValue = newValue(state.items[index]);
13251
+ else updatedValue = newValue;
13252
+ return {
13253
+ ...state,
13254
+ items: [
13255
+ ...state.items.slice(0, index),
13256
+ updatedValue,
13257
+ ...state.items.slice(index + 1)
13258
+ ]
13259
+ };
13260
+ });
13261
+ }
13262
+ };
13263
+ }
13264
+ function $232f8dea1b0a4f2f$var$insert(state, index, ...values) {
13265
+ return {
13266
+ ...state,
13267
+ items: [
13268
+ ...state.items.slice(0, index),
13269
+ ...values,
13270
+ ...state.items.slice(index)
13271
+ ]
13272
+ };
13273
+ }
13274
+ function $232f8dea1b0a4f2f$var$move(state, indices, toIndex) {
13275
+ toIndex -= indices.filter((index) => index < toIndex).length;
13276
+ let moves = indices.map((from) => ({
13277
+ from,
13278
+ to: toIndex++
13279
+ }));
13280
+ for (let i = 0; i < moves.length; i++) {
13281
+ let a = moves[i].from;
13282
+ for (let j = i; j < moves.length; j++) {
13283
+ let b = moves[j].from;
13284
+ if (b > a) moves[j].from--;
13285
+ }
13286
+ }
13287
+ for (let i = 0; i < moves.length; i++) {
13288
+ let a = moves[i];
13289
+ for (let j = moves.length - 1; j > i; j--) {
13290
+ let b = moves[j];
13291
+ if (b.from < a.to) a.to++;
13292
+ else b.from++;
13293
+ }
13294
+ }
13295
+ let copy = state.items.slice();
13296
+ for (let move of moves) {
13297
+ let [item] = copy.splice(move.from, 1);
13298
+ copy.splice(move.to, 0, item);
13299
+ }
13300
+ return {
13301
+ ...state,
13302
+ items: copy
13303
+ };
13304
+ }
13305
+
13306
+ // node_modules/react-stately/dist/private/data/useAsyncList.mjs
13307
+ import { useReducer as $9gyWu$useReducer, useRef as $9gyWu$useRef, useEffect as $9gyWu$useEffect } from "react";
13308
+ function $c73d3f3d5ec90946$var$reducer(data, action) {
13309
+ let selectedKeys;
13310
+ switch (data.state) {
13311
+ case "idle":
13312
+ case "error":
13313
+ switch (action.type) {
13314
+ case "loading":
13315
+ case "loadingMore":
13316
+ case "sorting":
13317
+ case "filtering":
13318
+ return {
13319
+ ...data,
13320
+ filterText: action.filterText ?? data.filterText,
13321
+ state: action.type,
13322
+ // Reset items to an empty list if loading, but not when sorting.
13323
+ items: action.type === "loading" ? [] : data.items,
13324
+ sortDescriptor: action.sortDescriptor ?? data.sortDescriptor,
13325
+ abortController: action.abortController
13326
+ };
13327
+ case "update":
13328
+ return {
13329
+ ...data,
13330
+ ...action.updater?.(data)
13331
+ };
13332
+ case "success":
13333
+ case "error":
13334
+ return data;
13335
+ default:
13336
+ throw new Error(`Invalid action "${action.type}" in state "${data.state}"`);
13337
+ }
13338
+ case "loading":
13339
+ case "sorting":
13340
+ case "filtering":
13341
+ switch (action.type) {
13342
+ case "success":
13343
+ if (action.abortController !== data.abortController) return data;
13344
+ selectedKeys = action.selectedKeys ?? data.selectedKeys;
13345
+ return {
13346
+ ...data,
13347
+ filterText: action.filterText ?? data.filterText,
13348
+ state: "idle",
13349
+ items: [
13350
+ ...action.items ?? []
13351
+ ],
13352
+ selectedKeys: selectedKeys === "all" ? "all" : new Set(selectedKeys),
13353
+ sortDescriptor: action.sortDescriptor ?? data.sortDescriptor,
13354
+ abortController: void 0,
13355
+ cursor: action.cursor
13356
+ };
13357
+ case "error":
13358
+ if (action.abortController !== data.abortController) return data;
13359
+ return {
13360
+ ...data,
13361
+ state: "error",
13362
+ error: action.error,
13363
+ abortController: void 0
13364
+ };
13365
+ case "loading":
13366
+ case "loadingMore":
13367
+ case "sorting":
13368
+ case "filtering":
13369
+ data.abortController?.abort("aborting current load and starting new one");
13370
+ return {
13371
+ ...data,
13372
+ filterText: action.filterText ?? data.filterText,
13373
+ state: action.type,
13374
+ // Reset items to an empty list if loading, but not when sorting.
13375
+ items: action.type === "loading" ? [] : data.items,
13376
+ abortController: action.abortController
13377
+ };
13378
+ case "update":
13379
+ return {
13380
+ ...data,
13381
+ ...action.updater?.(data)
13382
+ };
13383
+ default:
13384
+ throw new Error(`Invalid action "${action.type}" in state "${data.state}"`);
13385
+ }
13386
+ case "loadingMore":
13387
+ switch (action.type) {
13388
+ case "success":
13389
+ selectedKeys = data.selectedKeys === "all" || action.selectedKeys === "all" ? "all" : /* @__PURE__ */ new Set([
13390
+ ...data.selectedKeys,
13391
+ ...action.selectedKeys ?? []
13392
+ ]);
13393
+ return {
13394
+ ...data,
13395
+ state: "idle",
13396
+ items: [
13397
+ ...data.items,
13398
+ ...action.items ?? []
13399
+ ],
13400
+ selectedKeys,
13401
+ sortDescriptor: action.sortDescriptor ?? data.sortDescriptor,
13402
+ abortController: void 0,
13403
+ cursor: action.cursor
13404
+ };
13405
+ case "error":
13406
+ if (action.abortController !== data.abortController) return data;
13407
+ return {
13408
+ ...data,
13409
+ state: "error",
13410
+ error: action.error
13411
+ };
13412
+ case "loading":
13413
+ case "sorting":
13414
+ case "filtering":
13415
+ data.abortController?.abort();
13416
+ return {
13417
+ ...data,
13418
+ filterText: action.filterText ?? data.filterText,
13419
+ state: action.type,
13420
+ // Reset items to an empty list if loading, but not when sorting.
13421
+ items: action.type === "loading" ? [] : data.items,
13422
+ abortController: action.abortController
13423
+ };
13424
+ case "loadingMore":
13425
+ action.abortController?.abort();
13426
+ return data;
13427
+ case "update":
13428
+ return {
13429
+ ...data,
13430
+ ...action.updater?.(data)
13431
+ };
13432
+ default:
13433
+ throw new Error(`Invalid action "${action.type}" in state "${data.state}"`);
13434
+ }
13435
+ default:
13436
+ throw new Error(`Invalid state "${data.state}"`);
13437
+ }
13438
+ }
13439
+ function $c73d3f3d5ec90946$export$bc3384a35de93d66(options) {
13440
+ const { load, sort, initialSelectedKeys, initialSortDescriptor, getKey = (item) => item.id || item.key, initialFilterText = "" } = options;
13441
+ let [data, dispatch] = (0, $9gyWu$useReducer)($c73d3f3d5ec90946$var$reducer, {
13442
+ state: "idle",
13443
+ error: void 0,
13444
+ items: [],
13445
+ selectedKeys: initialSelectedKeys === "all" ? "all" : new Set(initialSelectedKeys),
13446
+ sortDescriptor: initialSortDescriptor,
13447
+ filterText: initialFilterText
13448
+ });
13449
+ const dispatchFetch = async (action, fn) => {
13450
+ let abortController = new AbortController();
13451
+ try {
13452
+ dispatch({
13453
+ ...action,
13454
+ abortController
13455
+ });
13456
+ let previousFilterText = action.filterText ?? data.filterText;
13457
+ let response = await fn({
13458
+ items: data.items.slice(),
13459
+ selectedKeys: data.selectedKeys,
13460
+ sortDescriptor: action.sortDescriptor ?? data.sortDescriptor,
13461
+ signal: abortController.signal,
13462
+ cursor: action.type === "loadingMore" ? data.cursor : void 0,
13463
+ filterText: previousFilterText,
13464
+ loadingState: data.state
13465
+ });
13466
+ let filterText = response.filterText ?? previousFilterText;
13467
+ dispatch({
13468
+ type: "success",
13469
+ ...response,
13470
+ abortController
13471
+ });
13472
+ if (filterText && filterText !== previousFilterText && !abortController.signal.aborted) dispatchFetch({
13473
+ type: "filtering",
13474
+ filterText
13475
+ }, load);
13476
+ } catch (e) {
13477
+ dispatch({
13478
+ type: "error",
13479
+ error: e,
13480
+ abortController
13481
+ });
13482
+ }
13483
+ };
13484
+ let didDispatchInitialFetch = (0, $9gyWu$useRef)(false);
13485
+ (0, $9gyWu$useEffect)(() => {
13486
+ if (!didDispatchInitialFetch.current) {
13487
+ dispatchFetch({
13488
+ type: "loading"
13489
+ }, load);
13490
+ didDispatchInitialFetch.current = true;
13491
+ }
13492
+ }, []);
13493
+ return {
13494
+ items: data.items,
13495
+ selectedKeys: data.selectedKeys,
13496
+ sortDescriptor: data.sortDescriptor,
13497
+ isLoading: data.state === "loading" || data.state === "loadingMore" || data.state === "sorting" || data.state === "filtering",
13498
+ loadingState: data.state,
13499
+ error: data.error,
13500
+ filterText: data.filterText,
13501
+ getItem(key) {
13502
+ return data.items.find((item) => getKey(item) === key);
13503
+ },
13504
+ reload() {
13505
+ dispatchFetch({
13506
+ type: "loading"
13507
+ }, load);
13508
+ },
13509
+ loadMore() {
13510
+ if (data.state === "loading" || data.state === "loadingMore" || data.state === "filtering" || data.cursor == null) return;
13511
+ dispatchFetch({
13512
+ type: "loadingMore"
13513
+ }, load);
13514
+ },
13515
+ sort(sortDescriptor) {
13516
+ dispatchFetch({
13517
+ type: "sorting",
13518
+ sortDescriptor
13519
+ }, sort || load);
13520
+ },
13521
+ ...(0, $232f8dea1b0a4f2f$export$79c0c687a5963b0a)({
13522
+ ...options,
13523
+ getKey,
13524
+ cursor: data.cursor
13525
+ }, (fn) => {
13526
+ dispatch({
13527
+ type: "update",
13528
+ updater: fn
13529
+ });
13530
+ }),
13531
+ setFilterText(filterText) {
13532
+ dispatchFetch({
13533
+ type: "filtering",
13534
+ filterText
13535
+ }, load);
13536
+ }
13537
+ };
13538
+ }
13539
+
13083
13540
  export {
13084
13541
  $7230ffa83bc0c2cf$export$fabf2dc03a41866e,
13085
13542
  $4b38b5b75ecc6208$export$2f2b9559550c7bbc,
@@ -13095,6 +13552,8 @@ export {
13095
13552
  $6f9a1820b787aac7$export$ad2135cac3a11b3d,
13096
13553
  $6f9a1820b787aac7$export$e11f8ba65d857bff,
13097
13554
  $6f9a1820b787aac7$export$5d847498420df57b,
13555
+ $1f3c3b1a70cec653$export$ff05c3ac10437e03,
13556
+ $cdaed739b1139372$export$a7fed597f4b8afd8,
13098
13557
  $ed8ccb2e23e76301$export$4aa08d5625cb8ead,
13099
13558
  $ed8ccb2e23e76301$export$48513f6b9f8ce62d,
13100
13559
  $3a442827418ebe87$export$eb2fcfdbd7ba97d4,
@@ -13122,6 +13581,7 @@ export {
13122
13581
  $f2ff30fde7b014be$export$3ddf2d174ce01153,
13123
13582
  $dbdc5e6e7ce01b4b$export$c02625b26074192c,
13124
13583
  $dbdc5e6e7ce01b4b$export$72b9695b8216309a,
13584
+ $5400c097f4765e59$export$5d8dc44abd10a920,
13125
13585
  $5400c097f4765e59$export$d9781c7894a82487,
13126
13586
  $5400c097f4765e59$export$5eaee2322dd727eb,
13127
13587
  $5400c097f4765e59$export$7edc06cf1783b30f,
@@ -13158,9 +13618,12 @@ export {
13158
13618
  $db7105decd081705$export$4c260019440d418f,
13159
13619
  $05a50f7d78b03ad9$export$8c610744efcf8a1d,
13160
13620
  $05a50f7d78b03ad9$export$28c660c63b792dea,
13621
+ $89d060d8eb451127$export$8953bccafd7bce87,
13161
13622
  $89d060d8eb451127$export$7fbedc92909ed28e,
13162
13623
  $89d060d8eb451127$export$4b687e3f663d618c,
13163
13624
  $89d060d8eb451127$export$53d36ab85dc89436,
13625
+ $89d060d8eb451127$export$533df5f8efd48cc9,
13164
13626
  $32ef394310635fd5$export$2cfc5be7a55829f6,
13165
- $143fb904d86051ce$export$89be5a243e59c4b2
13627
+ $143fb904d86051ce$export$89be5a243e59c4b2,
13628
+ $c73d3f3d5ec90946$export$bc3384a35de93d66
13166
13629
  };
@@ -24673,6 +24673,7 @@ export {
24673
24673
  $ea3928288112382f$export$a966af930f325cab,
24674
24674
  $ea3928288112382f$export$439d29a4e110a164,
24675
24675
  $fd2148440a13ec26$export$aca958c65c314e6c,
24676
+ $fd2148440a13ec26$export$571b5131b7e65c11,
24676
24677
  $fd2148440a13ec26$export$fc1a364ae1f3ff10,
24677
24678
  $fd2148440a13ec26$export$75ee7c75d68f5b0e,
24678
24679
  $d11d85ad4808f162$export$49ff6f28c54f1cbe,
@@ -1,7 +1,7 @@
1
1
  // package.json with { type: 'json' }
2
2
  var package_default = {
3
3
  name: "alinea",
4
- version: "2.0.0-preview.13",
4
+ version: "2.0.0-preview.14",
5
5
  description: "Open source, Git-based headless CMS for Next.js",
6
6
  keywords: [
7
7
  "cms",
@@ -143,6 +143,34 @@ var object = (definition) => {
143
143
  )
144
144
  );
145
145
  };
146
+ var union = (...types) => {
147
+ let definitions = types.map(
148
+ (type2) => type2 instanceof Type ? type2 : object(type2)
149
+ );
150
+ return type(
151
+ (value) => {
152
+ let current = ctx.path.length;
153
+ let relevancy = 0;
154
+ let expectation = void 0;
155
+ for (let type2 of definitions) {
156
+ ctx.path.splice(current, Infinity);
157
+ if (type2.validate(value, ctx))
158
+ return true;
159
+ if (ctx.path.length >= relevancy) {
160
+ relevancy = ctx.path.length;
161
+ expectation = [ctx.path.slice(), ctx.expected, ctx.value];
162
+ }
163
+ }
164
+ if (expectation) {
165
+ ctx.path = expectation[0];
166
+ ctx.expected = expectation[1];
167
+ ctx.value = expectation[2];
168
+ }
169
+ return false;
170
+ },
171
+ (path) => `(${definitions.map((type2) => `${type2.gen(path)}`).join(" || ")})`
172
+ );
173
+ };
146
174
  var array = (inner) => isArray.and(
147
175
  type(
148
176
  (value, ctx2) => {
@@ -161,9 +189,11 @@ var array = (inner) => isArray.and(
161
189
  export {
162
190
  type,
163
191
  optional,
192
+ instance,
164
193
  string,
165
194
  number,
166
195
  boolean,
167
196
  object,
197
+ union,
168
198
  array
169
199
  };
@@ -5,6 +5,7 @@ import "../chunks/chunk-CQ52GEHY.js";
5
5
 
6
6
  // src/cli/Generate.ts
7
7
  import { Config } from "alinea/core/Config";
8
+ import { MediaLocation } from "alinea/core/media/MediaLocation";
8
9
  import { hashBlob } from "alinea/core/source/GitUtils";
9
10
  import { genEffect } from "alinea/core/util/Async";
10
11
  import { basename, join } from "alinea/core/util/Paths";
@@ -17,9 +18,10 @@ import { fillCache } from "./generate/FillCache.js";
17
18
  import { generatedPaths } from "./generate/GeneratedPaths.js";
18
19
  import { generateDashboard } from "./generate/GenerateDashboard.js";
19
20
  import { linkMediaFiles } from "./generate/LinkMediaFiles.js";
21
+ import { remoteLocations } from "./generate/MediaLocations.js";
20
22
  import { dirname } from "./util/Dirname.js";
21
23
  import { findConfigFile } from "./util/FindConfigFile.js";
22
- import { reportError, reportFatal } from "./util/Report.js";
24
+ import { reportError, reportFatal, reportWarning } from "./util/Report.js";
23
25
  var __dirname = dirname(import.meta.url);
24
26
  async function generatePackage(context, cms, configFingerprint) {
25
27
  const { config } = cms;
@@ -76,11 +78,10 @@ async function* generate(options) {
76
78
  for await (const cms of builds) {
77
79
  Config.handlerUrl(cms.config);
78
80
  if (cmd === "build") {
79
- const baseUrl = Config.baseUrl(cms.config, "production");
80
- if (!baseUrl) {
81
- reportFatal(
82
- "No baseUrl was set for the production build in Alinea config"
83
- );
81
+ try {
82
+ Config.serverHandlerUrl(cms.config, "production");
83
+ } catch (error) {
84
+ reportFatal(error instanceof Error ? error.message : String(error));
84
85
  process.exit(1);
85
86
  }
86
87
  }
@@ -111,7 +112,8 @@ async function* generate(options) {
111
112
  if (dashboard)
112
113
  [, dbSize] = await Promise.all([
113
114
  dashboard,
114
- current.finalize(),
115
+ // A build ships the file: lay its tables out in order once
116
+ current.finalize({ rewrite: cmd === "build" }),
115
117
  linkMediaFiles(rootDir, current)
116
118
  ]);
117
119
  let message = `${cmd} ${location} in `;
@@ -133,6 +135,7 @@ async function* generate(options) {
133
135
  continue;
134
136
  }
135
137
  for await (const db2 of indexing) {
138
+ if (!afterGenerateCalled) await warnRemoteLocations(rootDir, db2);
136
139
  yield { cms, db: db2, configFingerprint };
137
140
  if (onAfterGenerate && !afterGenerateCalled) {
138
141
  const recordCount = await db2.count({});
@@ -153,6 +156,16 @@ async function* generate(options) {
153
156
  await db?.close();
154
157
  }
155
158
  }
159
+ async function warnRemoteLocations(rootDir, db) {
160
+ for (const file of await remoteLocations(rootDir, db)) {
161
+ const mediaDir = MediaLocation.directory(db.config, file.workspace);
162
+ reportWarning(
163
+ `Media file ${file.file} has a url as location, it can't be served`,
164
+ `location: ${file.location}`,
165
+ file.local ? `Run \`alinea build --fix\` to point it at ${join(mediaDir, file.local)}` : `Point location at the file in ${mediaDir || "the public dir"}, eg. "/${basename(new URL(file.location).pathname)}"`
166
+ );
167
+ }
168
+ }
156
169
  export {
157
170
  generate
158
171
  };
package/dist/cli/Mcp.js CHANGED
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  package_default
3
- } from "../chunks/chunk-3QFSGTGF.js";
3
+ } from "../chunks/chunk-SCV3TEXM.js";
4
4
  import "../chunks/chunk-CQ52GEHY.js";
5
5
 
6
6
  // src/cli/Mcp.ts
package/dist/cli/Serve.js CHANGED
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  package_default
3
- } from "../chunks/chunk-3QFSGTGF.js";
3
+ } from "../chunks/chunk-SCV3TEXM.js";
4
4
  import "../chunks/chunk-CQ52GEHY.js";
5
5
 
6
6
  // src/cli/Serve.ts