@riverbankcms/sdk 0.128.0 → 0.129.1

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 (290) hide show
  1. package/README.md +52 -256
  2. package/dist/{PreviewEditorSidebar-Dbvb7GIr.mjs → PreviewEditorSidebar-DceRseRV.mjs} +3 -3
  3. package/dist/{PreviewEditorUI-e9O9l20X.mjs → PreviewEditorUI-BNunq3kk.mjs} +2 -2
  4. package/dist/{SdkPreviewModeRuntime-BZHt6e9w.mjs → SdkPreviewModeRuntime-Bt87-62u.mjs} +495 -292
  5. package/dist/{SiteChromeCustomizeContext-CvuGbHJX.mjs → SiteChromeCustomizeContext-BLl-OlL4.mjs} +600 -533
  6. package/dist/_dts/ai/src/contracts/commandExposure.d.ts +1 -1
  7. package/dist/_dts/ai/src/contracts/proposals.d.ts +4897 -4897
  8. package/dist/_dts/api/src/index.d.ts +2 -1
  9. package/dist/_dts/api/src/sdk-event-management.d.ts +53 -0
  10. package/dist/_dts/api/src/sdk-event-schedule.d.ts +3 -6
  11. package/dist/_dts/api/src/sdkContracts.d.ts +37 -50
  12. package/dist/_dts/api/src/sdkThemeWire.d.ts +2595 -0
  13. package/dist/_dts/api/src/sitePlatformEndpoints.d.ts +13 -29
  14. package/dist/_dts/blocks/src/PageRenderer.d.ts +20 -10
  15. package/dist/_dts/blocks/src/index.d.ts +2 -1
  16. package/dist/_dts/blocks/src/pageRendererBoundaries.d.ts +30 -0
  17. package/dist/_dts/blocks/src/pageRenderingMode.d.ts +37 -0
  18. package/dist/_dts/blocks/src/server.d.ts +1 -1
  19. package/dist/_dts/db/src/generated/supabase/database.types.d.ts +14 -0
  20. package/dist/_dts/media-core/src/index.d.ts +1 -0
  21. package/dist/_dts/preview-next/src/client/blocks/pageDesignRuntimePreview.d.ts +2 -0
  22. package/dist/_dts/preview-next/src/client/index.d.ts +47 -47
  23. package/dist/_dts/preview-next/src/client/preview/PreviewShell.d.ts +18 -6
  24. package/dist/_dts/preview-next/src/client/preview/PreviewShellLayout.d.ts +30 -21
  25. package/dist/_dts/preview-next/src/client/preview/PreviewThemedSiteDocument.d.ts +18 -5
  26. package/dist/_dts/preview-next/src/client/preview/themeRuntime.d.ts +9 -0
  27. package/dist/_dts/preview-next/src/client/sdk/SdkPreviewMode.d.ts +21 -6
  28. package/dist/_dts/preview-next/src/client/sdk-runtime.d.ts +8 -8
  29. package/dist/_dts/sdk/src/config/types.d.ts +4 -4
  30. package/dist/_dts/sdk/src/next/catch-all.d.ts +6 -0
  31. package/dist/_dts/sdk/src/next/index.d.ts +2 -1
  32. package/dist/_dts/sdk/src/next/renderSdkContent.d.ts +33 -0
  33. package/dist/_dts/sdk/src/next/types.d.ts +23 -9
  34. package/dist/_dts/sdk/src/preview-next/before-render.d.ts +4 -6
  35. package/dist/_dts/sdk/src/preview-next/client/index.d.ts +3 -3
  36. package/dist/_dts/sdk/src/preview-next/client/runtime.d.ts +1 -1
  37. package/dist/_dts/sdk/src/rendering/blocks-page-renderer.d.ts +25 -3
  38. package/dist/_dts/sdk/src/rendering/components/Block.shared.d.ts +13 -2
  39. package/dist/_dts/sdk/src/rendering/components/Layout.d.ts +31 -18
  40. package/dist/_dts/sdk/src/rendering/components/pageShared.d.ts +20 -9
  41. package/dist/_dts/sdk/src/rendering/index.d.ts +4 -2
  42. package/dist/_dts/sdk/src/rendering/renderingMode.d.ts +23 -0
  43. package/dist/_dts/sdk/src/rendering/server.d.ts +5 -3
  44. package/dist/_dts/sdk/src/rendering/themeRuntime.d.ts +6 -0
  45. package/dist/_dts/sdk/src/version.d.ts +1 -1
  46. package/dist/_dts/theme-core/src/buttons/index.d.ts +1 -0
  47. package/dist/_dts/theme-core/src/palette/index.d.ts +1 -0
  48. package/dist/_dts/theme-core/src/site-styles/headerLayoutStyleCatalog.d.ts +254 -0
  49. package/dist/_dts/theme-core/src/site-styles/headerLegacyLooks.d.ts +372 -0
  50. package/dist/_dts/theme-core/src/site-styles/headerLookBranding.d.ts +106 -0
  51. package/dist/_dts/theme-core/src/site-styles/headerLookSelection.d.ts +2 -0
  52. package/dist/_dts/theme-core/src/site-styles/headerLookTypes.d.ts +212 -0
  53. package/dist/_dts/theme-core/src/site-styles/headerLooks.d.ts +7 -841
  54. package/dist/_dts/theme-core/src/site-styles/headerStyleCompiler.d.ts +3 -0
  55. package/dist/_dts/theme-core/src/site-styles/headerStyleCompilerPrimitives.d.ts +23 -0
  56. package/dist/client/client.mjs +911 -762
  57. package/dist/client/hooks.mjs +59 -36
  58. package/dist/client/rendering/client.mjs +593 -547
  59. package/dist/client/rendering.mjs +994 -783
  60. package/dist/preview-next/before-render.mjs +10 -3
  61. package/dist/preview-next/client/runtime.mjs +3 -3
  62. package/dist/{sdk-runtime-Cn_QSCOg.mjs → sdk-runtime-C20CVWbb.mjs} +1 -1
  63. package/dist/{separator-CEoGABRc.mjs → separator-BE3NCquy.mjs} +1 -1
  64. package/dist/server/components.mjs +549 -399
  65. package/dist/server/config-validation.mjs +59 -36
  66. package/dist/server/config.mjs +59 -36
  67. package/dist/server/data.mjs +59 -36
  68. package/dist/server/index.mjs +1 -1
  69. package/dist/server/manifest.mjs +4966 -0
  70. package/dist/server/next.mjs +700 -537
  71. package/dist/server/page-converter.mjs +40 -36
  72. package/dist/server/prebuild.mjs +1 -1
  73. package/dist/server/rendering/server.mjs +571 -404
  74. package/dist/server/rendering.mjs +571 -404
  75. package/dist/server/routing.mjs +472 -402
  76. package/dist/server/server.mjs +60 -37
  77. package/dist/server/theme-bridge.mjs +70 -66
  78. package/package.json +9 -12
  79. package/dist/_dts/api/src/event-presentation.d.ts +0 -14
  80. package/dist/_dts/blocks/src/definitions.d.ts +0 -14
  81. package/dist/_dts/sdk/src/cli/canonical-entry-policy.d.ts +0 -53
  82. package/dist/_dts/sdk/src/cli/commands/audit.d.ts +0 -101
  83. package/dist/_dts/sdk/src/cli/commands/block.d.ts +0 -24
  84. package/dist/_dts/sdk/src/cli/commands/compare.d.ts +0 -62
  85. package/dist/_dts/sdk/src/cli/commands/content-type.d.ts +0 -10
  86. package/dist/_dts/sdk/src/cli/commands/content.d.ts +0 -56
  87. package/dist/_dts/sdk/src/cli/commands/delete.d.ts +0 -14
  88. package/dist/_dts/sdk/src/cli/commands/deploy.d.ts +0 -43
  89. package/dist/_dts/sdk/src/cli/commands/drafts.d.ts +0 -18
  90. package/dist/_dts/sdk/src/cli/commands/entry.d.ts +0 -55
  91. package/dist/_dts/sdk/src/cli/commands/env.d.ts +0 -31
  92. package/dist/_dts/sdk/src/cli/commands/event.d.ts +0 -23
  93. package/dist/_dts/sdk/src/cli/commands/eventOccurrenceSchedule.d.ts +0 -12
  94. package/dist/_dts/sdk/src/cli/commands/identifiers.d.ts +0 -10
  95. package/dist/_dts/sdk/src/cli/commands/init-docs.d.ts +0 -13
  96. package/dist/_dts/sdk/src/cli/commands/manifest.d.ts +0 -10
  97. package/dist/_dts/sdk/src/cli/commands/media-validation.d.ts +0 -3
  98. package/dist/_dts/sdk/src/cli/commands/migrate.d.ts +0 -11
  99. package/dist/_dts/sdk/src/cli/commands/navigation.d.ts +0 -12
  100. package/dist/_dts/sdk/src/cli/commands/page.d.ts +0 -14
  101. package/dist/_dts/sdk/src/cli/commands/publish-all.d.ts +0 -50
  102. package/dist/_dts/sdk/src/cli/commands/pull-dated-offering-scope.d.ts +0 -10
  103. package/dist/_dts/sdk/src/cli/commands/pull-dry-run.d.ts +0 -70
  104. package/dist/_dts/sdk/src/cli/commands/pull-scope-diff.d.ts +0 -8
  105. package/dist/_dts/sdk/src/cli/commands/pull.d.ts +0 -43
  106. package/dist/_dts/sdk/src/cli/commands/push/consts.d.ts +0 -3
  107. package/dist/_dts/sdk/src/cli/commands/push/execute/diff.d.ts +0 -19
  108. package/dist/_dts/sdk/src/cli/commands/push/execute/footer.d.ts +0 -42
  109. package/dist/_dts/sdk/src/cli/commands/push/execute/localMediaReporting.d.ts +0 -23
  110. package/dist/_dts/sdk/src/cli/commands/push/execute/media.d.ts +0 -22
  111. package/dist/_dts/sdk/src/cli/commands/push/execute/metadata.d.ts +0 -1
  112. package/dist/_dts/sdk/src/cli/commands/push/execute/reporting.d.ts +0 -7
  113. package/dist/_dts/sdk/src/cli/commands/push/execute/theme.d.ts +0 -63
  114. package/dist/_dts/sdk/src/cli/commands/push/filter.d.ts +0 -15
  115. package/dist/_dts/sdk/src/cli/commands/push/metadata.d.ts +0 -29
  116. package/dist/_dts/sdk/src/cli/commands/push/normalizeLocalContent.d.ts +0 -2
  117. package/dist/_dts/sdk/src/cli/commands/push/options.d.ts +0 -32
  118. package/dist/_dts/sdk/src/cli/commands/push/publishGuidance.d.ts +0 -15
  119. package/dist/_dts/sdk/src/cli/commands/push/pushAllExtras.d.ts +0 -25
  120. package/dist/_dts/sdk/src/cli/commands/push/scopes/commandBackedDatedOfferingScope.d.ts +0 -83
  121. package/dist/_dts/sdk/src/cli/commands/push/scopes/eventCategories.d.ts +0 -4
  122. package/dist/_dts/sdk/src/cli/commands/push/scopes/events.d.ts +0 -4
  123. package/dist/_dts/sdk/src/cli/commands/push/scopes/mediaPrep.d.ts +0 -14
  124. package/dist/_dts/sdk/src/cli/commands/push/scopes/pushScopeGeneric.d.ts +0 -6
  125. package/dist/_dts/sdk/src/cli/commands/push/scopes/types.d.ts +0 -87
  126. package/dist/_dts/sdk/src/cli/commands/push/scopes/venues.d.ts +0 -4
  127. package/dist/_dts/sdk/src/cli/commands/push/stale-resolution.d.ts +0 -48
  128. package/dist/_dts/sdk/src/cli/commands/push/stale.d.ts +0 -17
  129. package/dist/_dts/sdk/src/cli/commands/push/verification.d.ts +0 -56
  130. package/dist/_dts/sdk/src/cli/commands/push/workflowPlan.d.ts +0 -34
  131. package/dist/_dts/sdk/src/cli/commands/push-execute.d.ts +0 -54
  132. package/dist/_dts/sdk/src/cli/commands/push.d.ts +0 -40
  133. package/dist/_dts/sdk/src/cli/commands/setup.d.ts +0 -3
  134. package/dist/_dts/sdk/src/cli/commands/style.d.ts +0 -60
  135. package/dist/_dts/sdk/src/cli/commands/verify.d.ts +0 -11
  136. package/dist/_dts/sdk/src/cli/commands/webhooks.d.ts +0 -44
  137. package/dist/_dts/sdk/src/cli/config-loader.d.ts +0 -47
  138. package/dist/_dts/sdk/src/cli/content/collectionWriters.d.ts +0 -23
  139. package/dist/_dts/sdk/src/cli/content/edit/format.d.ts +0 -2
  140. package/dist/_dts/sdk/src/cli/content/edit/path.d.ts +0 -14
  141. package/dist/_dts/sdk/src/cli/content/edit/planner.d.ts +0 -46
  142. package/dist/_dts/sdk/src/cli/content/entryPaths.d.ts +0 -6
  143. package/dist/_dts/sdk/src/cli/content/footerFile.d.ts +0 -10
  144. package/dist/_dts/sdk/src/cli/content/fs-utils.d.ts +0 -39
  145. package/dist/_dts/sdk/src/cli/content/legacyEventScheduleShapeError.d.ts +0 -5
  146. package/dist/_dts/sdk/src/cli/content/localEventSchedule.d.ts +0 -17
  147. package/dist/_dts/sdk/src/cli/content/media-manifest.d.ts +0 -13
  148. package/dist/_dts/sdk/src/cli/content/metadataAfterPush.d.ts +0 -25
  149. package/dist/_dts/sdk/src/cli/content/metadataStore.d.ts +0 -29
  150. package/dist/_dts/sdk/src/cli/content/reader.d.ts +0 -488
  151. package/dist/_dts/sdk/src/cli/content/writer.d.ts +0 -142
  152. package/dist/_dts/sdk/src/cli/env-scope.d.ts +0 -2
  153. package/dist/_dts/sdk/src/cli/env.d.ts +0 -71
  154. package/dist/_dts/sdk/src/cli/errors.d.ts +0 -62
  155. package/dist/_dts/sdk/src/cli/helpers/ai-runtime.d.ts +0 -2
  156. package/dist/_dts/sdk/src/cli/helpers.d.ts +0 -399
  157. package/dist/_dts/sdk/src/cli/index.d.ts +0 -11
  158. package/dist/_dts/sdk/src/cli/init-docs/constants.d.ts +0 -16
  159. package/dist/_dts/sdk/src/cli/init-docs/index.d.ts +0 -12
  160. package/dist/_dts/sdk/src/cli/init-docs/templates.d.ts +0 -18
  161. package/dist/_dts/sdk/src/cli/init-docs/zod-to-markdown.d.ts +0 -28
  162. package/dist/_dts/sdk/src/cli/load-config.d.ts +0 -14
  163. package/dist/_dts/sdk/src/cli/media/identifiers.d.ts +0 -18
  164. package/dist/_dts/sdk/src/cli/media/local-media.d.ts +0 -14
  165. package/dist/_dts/sdk/src/cli/media/local-sync.d.ts +0 -91
  166. package/dist/_dts/sdk/src/cli/media/portable.d.ts +0 -11
  167. package/dist/_dts/sdk/src/cli/media/rich-text.d.ts +0 -12
  168. package/dist/_dts/sdk/src/cli/media/value-utils.d.ts +0 -15
  169. package/dist/_dts/sdk/src/cli/media/write-guard.d.ts +0 -52
  170. package/dist/_dts/sdk/src/cli/merge-remote/entryLocal.d.ts +0 -3
  171. package/dist/_dts/sdk/src/cli/merge-remote/entryMerge.d.ts +0 -78
  172. package/dist/_dts/sdk/src/cli/merge-remote/entryMergePlan.d.ts +0 -45
  173. package/dist/_dts/sdk/src/cli/merge-remote/entryMergePush.d.ts +0 -24
  174. package/dist/_dts/sdk/src/cli/merge-remote/entryMergeReport.d.ts +0 -18
  175. package/dist/_dts/sdk/src/cli/merge-remote/entryRemote.d.ts +0 -9
  176. package/dist/_dts/sdk/src/cli/merge-remote/entrySnapshots.d.ts +0 -48
  177. package/dist/_dts/sdk/src/cli/merge-remote/mergeFieldChanges.d.ts +0 -22
  178. package/dist/_dts/sdk/src/cli/merge-remote/pageLocal.d.ts +0 -3
  179. package/dist/_dts/sdk/src/cli/merge-remote/pageMerge.d.ts +0 -78
  180. package/dist/_dts/sdk/src/cli/merge-remote/pageMergePlan.d.ts +0 -36
  181. package/dist/_dts/sdk/src/cli/merge-remote/pageMergePush.d.ts +0 -23
  182. package/dist/_dts/sdk/src/cli/merge-remote/pageMergeReport.d.ts +0 -17
  183. package/dist/_dts/sdk/src/cli/merge-remote/pageSnapshots.d.ts +0 -46
  184. package/dist/_dts/sdk/src/cli/merge-remote/sharedBaseSnapshots.d.ts +0 -32
  185. package/dist/_dts/sdk/src/cli/merge-remote/sharedMergePlan.d.ts +0 -27
  186. package/dist/_dts/sdk/src/cli/merge-remote/sharedMergeReport.d.ts +0 -63
  187. package/dist/_dts/sdk/src/cli/migrations/entries.d.ts +0 -28
  188. package/dist/_dts/sdk/src/cli/migrations/events.d.ts +0 -73
  189. package/dist/_dts/sdk/src/cli/navigationIdentity.d.ts +0 -11
  190. package/dist/_dts/sdk/src/cli/output.d.ts +0 -133
  191. package/dist/_dts/sdk/src/cli/program.d.ts +0 -29
  192. package/dist/_dts/sdk/src/cli/push-config.d.ts +0 -49
  193. package/dist/_dts/sdk/src/cli/setup/setupPlan.d.ts +0 -51
  194. package/dist/_dts/sdk/src/cli/site-commands/commandKeys.d.ts +0 -13
  195. package/dist/_dts/sdk/src/cli/site-commands/commandRuntime.d.ts +0 -170
  196. package/dist/_dts/sdk/src/cli/site-commands/commandRuntimeCompat.d.ts +0 -21
  197. package/dist/_dts/sdk/src/cli/site-commands/commandSurfaceDispatch.d.ts +0 -32
  198. package/dist/_dts/sdk/src/cli/site-commands/datedOfferingCommands.d.ts +0 -53
  199. package/dist/_dts/sdk/src/cli/site-commands/entryCommands.d.ts +0 -65
  200. package/dist/_dts/sdk/src/cli/site-commands/eventScheduleCompiler.d.ts +0 -24
  201. package/dist/_dts/sdk/src/cli/site-commands/footerCommands.d.ts +0 -68
  202. package/dist/_dts/sdk/src/cli/site-commands/formCommands.d.ts +0 -53
  203. package/dist/_dts/sdk/src/cli/site-commands/index.d.ts +0 -8
  204. package/dist/_dts/sdk/src/cli/site-commands/localBlockManifestResolver.d.ts +0 -31
  205. package/dist/_dts/sdk/src/cli/site-commands/navigationCommands.d.ts +0 -57
  206. package/dist/_dts/sdk/src/cli/site-commands/oneOffCommands.d.ts +0 -82
  207. package/dist/_dts/sdk/src/cli/site-commands/pageCommands.d.ts +0 -84
  208. package/dist/_dts/sdk/src/cli/site-commands/pushExecution.d.ts +0 -39
  209. package/dist/_dts/sdk/src/cli/site-commands/pushExecutionPlan.d.ts +0 -8
  210. package/dist/_dts/sdk/src/cli/site-commands/pushExecutionTypes.d.ts +0 -97
  211. package/dist/_dts/sdk/src/cli/site-commands/residualSettingsTrimming.d.ts +0 -15
  212. package/dist/_dts/sdk/src/cli/sync/diff.d.ts +0 -222
  213. package/dist/_dts/sdk/src/cli/sync/executor.d.ts +0 -84
  214. package/dist/_dts/sdk/src/cli/sync/field-diff.d.ts +0 -39
  215. package/dist/_dts/sdk/src/cli/sync/index.d.ts +0 -10
  216. package/dist/_dts/sdk/src/cli/sync/mapper.d.ts +0 -41
  217. package/dist/_dts/sdk/src/cli/sync/media-sync.d.ts +0 -15
  218. package/dist/_dts/sdk/src/cli/sync/media.d.ts +0 -158
  219. package/dist/_dts/sdk/src/cli/sync/syncResultAggregation.d.ts +0 -4
  220. package/dist/_dts/sdk/src/cli/sync/validation.d.ts +0 -68
  221. package/dist/_dts/sdk/src/cli/utils/checksum.d.ts +0 -1
  222. package/dist/_dts/sdk/src/client/management/blocks.d.ts +0 -19
  223. package/dist/_dts/sdk/src/client/management/catalog.d.ts +0 -10
  224. package/dist/_dts/sdk/src/client/management/entries.d.ts +0 -6
  225. package/dist/_dts/sdk/src/client/management/eventCategories.d.ts +0 -6
  226. package/dist/_dts/sdk/src/client/management/events.d.ts +0 -7
  227. package/dist/_dts/sdk/src/client/management/footer.d.ts +0 -9
  228. package/dist/_dts/sdk/src/client/management/forms.d.ts +0 -6
  229. package/dist/_dts/sdk/src/client/management/http.d.ts +0 -79
  230. package/dist/_dts/sdk/src/client/management/identifiers.d.ts +0 -11
  231. package/dist/_dts/sdk/src/client/management/index.d.ts +0 -41
  232. package/dist/_dts/sdk/src/client/management/media.d.ts +0 -72
  233. package/dist/_dts/sdk/src/client/management/navigation.d.ts +0 -6
  234. package/dist/_dts/sdk/src/client/management/pages.d.ts +0 -6
  235. package/dist/_dts/sdk/src/client/management/pull.d.ts +0 -6
  236. package/dist/_dts/sdk/src/client/management/settings-branding.d.ts +0 -32
  237. package/dist/_dts/sdk/src/client/management/settings.d.ts +0 -6
  238. package/dist/_dts/sdk/src/client/management/theme.d.ts +0 -8
  239. package/dist/_dts/sdk/src/client/management/types.d.ts +0 -1069
  240. package/dist/_dts/sdk/src/client/management/venues.d.ts +0 -6
  241. package/dist/_dts/sdk/src/client/management/webhooks.d.ts +0 -3
  242. package/dist/_dts/sdk/src/test/env.d.ts +0 -4
  243. package/dist/_dts/site-commands/src/adapter.d.ts +0 -23
  244. package/dist/_dts/site-commands/src/appointmentCommandSchemas.d.ts +0 -100
  245. package/dist/_dts/site-commands/src/capabilityGaps.d.ts +0 -8
  246. package/dist/_dts/site-commands/src/commandContract.d.ts +0 -1277
  247. package/dist/_dts/site-commands/src/commandDomain.d.ts +0 -20
  248. package/dist/_dts/site-commands/src/commandIdentifiers.d.ts +0 -7
  249. package/dist/_dts/site-commands/src/commandValidation.d.ts +0 -10
  250. package/dist/_dts/site-commands/src/commands.d.ts +0 -1983
  251. package/dist/_dts/site-commands/src/domain.d.ts +0 -104
  252. package/dist/_dts/site-commands/src/eventCommandContent.d.ts +0 -11
  253. package/dist/_dts/site-commands/src/exposure.d.ts +0 -41
  254. package/dist/_dts/site-commands/src/guards.d.ts +0 -1
  255. package/dist/_dts/site-commands/src/index.d.ts +0 -18
  256. package/dist/_dts/site-commands/src/metadata.d.ts +0 -555
  257. package/dist/_dts/site-commands/src/pagePaths.d.ts +0 -6
  258. package/dist/_dts/site-commands/src/planner.d.ts +0 -58
  259. package/dist/_dts/site-commands/src/refContributions.d.ts +0 -11
  260. package/dist/_dts/site-commands/src/refs.d.ts +0 -90
  261. package/dist/_dts/site-commands/src/siteStyleCommandSchema.d.ts +0 -405
  262. package/dist/_dts/site-commands/src/siteStyleSelectionSchemaBuilder.d.ts +0 -46
  263. package/dist/_dts/site-commands/src/stableJson.d.ts +0 -5
  264. package/dist/_dts/site-commands/src/staticExecutionGaps.d.ts +0 -10
  265. package/dist/_dts/site-commands/src/venueCommandMapping.d.ts +0 -21
  266. package/dist/_dts/theme-core/src/data.d.ts +0 -12
  267. package/dist/_dts/theme-core/src/site-styles/headerStyleParts.d.ts +0 -4
  268. package/dist/cli/index.mjs +0 -162962
  269. package/dist/cli/init-docs/content/agents-section.md +0 -67
  270. package/dist/cli/init-docs/content/cli-reference.md +0 -1238
  271. package/dist/cli/init-docs/content/content-management.md +0 -792
  272. package/dist/cli/init-docs/content/context-brand.md +0 -125
  273. package/dist/cli/init-docs/content/context-brief.md +0 -77
  274. package/dist/cli/init-docs/content/context-knowledge.md +0 -111
  275. package/dist/cli/init-docs/content/getting-started.md +0 -171
  276. package/dist/cli/init-docs/content/site-workflows-readme.md +0 -96
  277. package/dist/cli/init-docs/content/workflow-add-block.md +0 -299
  278. package/dist/cli/init-docs/content/workflow-agent-safe-sync.md +0 -83
  279. package/dist/cli/init-docs/content/workflow-block-extensions.md +0 -370
  280. package/dist/cli/init-docs/content/workflow-cmsify-page.md +0 -357
  281. package/dist/cli/init-docs/content/workflow-content-types.md +0 -330
  282. package/dist/cli/init-docs/content/workflow-create-page.md +0 -212
  283. package/dist/cli/init-docs/content/workflow-custom-block.md +0 -470
  284. package/dist/cli/init-docs/content/workflow-editor-workflows.md +0 -130
  285. package/dist/cli/init-docs/content/workflow-isr-revalidation.md +0 -158
  286. package/dist/cli/init-docs/content/workflow-preview-mode.md +0 -239
  287. package/dist/cli/init-docs/content/workflow-publish.md +0 -285
  288. package/dist/cli/init-docs/content/workflow-remote-setup.md +0 -51
  289. package/dist/cli/init-docs/content/workflow-templates.md +0 -381
  290. /package/dist/_dts/{sdk/src/cli/utils/mime.d.ts → media-core/src/mimeType.d.ts} +0 -0
@@ -1,56 +0,0 @@
1
- import { Command } from 'commander';
2
- import { type ContentEditOperation, type ContentEditPlan, type PageBlockMoveTarget } from '../content/edit/planner';
3
- import { type OutputContext } from '../output';
4
- type CommonEditOptions = Readonly<{
5
- contentDir?: string;
6
- write?: boolean;
7
- }>;
8
- type FieldSetOptions = CommonEditOptions & Readonly<{
9
- value?: string;
10
- jsonValue?: string;
11
- }>;
12
- type MoveBlockOptions = CommonEditOptions & Readonly<{
13
- before?: string;
14
- after?: string;
15
- toStart?: boolean;
16
- toEnd?: boolean;
17
- }>;
18
- export type RunContentEditErrorCode = 'missing_file' | 'invalid_json' | 'read_failed';
19
- export type RunContentEditError = Readonly<{
20
- code: RunContentEditErrorCode;
21
- message: string;
22
- }>;
23
- export type RunContentEditResult = Readonly<{
24
- success: true;
25
- plan: ContentEditPlan;
26
- filePath: string;
27
- written: boolean;
28
- }> | Readonly<{
29
- success: false;
30
- plan?: ContentEditPlan;
31
- filePath: string;
32
- written: false;
33
- error?: RunContentEditError;
34
- }>;
35
- export declare function runPageContentEdit(input: Readonly<{
36
- operation: ContentEditOperation;
37
- contentDir?: string;
38
- write: boolean;
39
- output: OutputContext;
40
- }>): Promise<RunContentEditResult>;
41
- export declare function parseContentEditValue(options: FieldSetOptions): Readonly<{
42
- ok: true;
43
- value: unknown;
44
- } | {
45
- ok: false;
46
- error: string;
47
- }>;
48
- export declare function parseMoveTarget(options: MoveBlockOptions): Readonly<{
49
- ok: true;
50
- target: PageBlockMoveTarget;
51
- } | {
52
- ok: false;
53
- error: string;
54
- }>;
55
- export declare const contentCommand: Command;
56
- export {};
@@ -1,14 +0,0 @@
1
- /**
2
- * Delete Command
3
- *
4
- * Explicitly delete content from the CMS.
5
- *
6
- * Usage:
7
- * riverbankcms delete entry <type> <identifier>
8
- * riverbankcms delete block <page-identifier> <block-identifier>
9
- *
10
- * These destructive one-off commands intentionally remain direct for #931 so
11
- * their confirmation and remote --yes safety semantics stay unchanged.
12
- */
13
- import { Command } from 'commander';
14
- export declare const deleteCommand: Command;
@@ -1,43 +0,0 @@
1
- /**
2
- * Deploy Command
3
- *
4
- * Automates the full deploy workflow for SDK sites:
5
- * 1. Run verification (if configured)
6
- * 2. Check working directory is clean
7
- * 3. Generate prebuild cache (unless --preview)
8
- * 4. Commit cache changes
9
- * 5. Push to remote
10
- *
11
- * Usage:
12
- * riverbankcms deploy # Full deploy with cache generation
13
- * riverbankcms deploy --preview # Preview deploy (skip cache generation)
14
- */
15
- import { Command } from 'commander';
16
- import { type SimpleGit } from 'simple-git';
17
- import type { DeployConfig } from '../../config/types';
18
- interface LoadedDeployConfig {
19
- siteId: string;
20
- deploy: DeployConfig;
21
- contentTypes?: string[];
22
- }
23
- /**
24
- * Load deploy configuration from riverbank.config.ts.
25
- * @internal Exported for testing
26
- */
27
- export declare function loadDeployConfig(): Promise<LoadedDeployConfig>;
28
- /**
29
- * Check if working directory is clean (excluding prebuild output).
30
- * @internal Exported for testing
31
- */
32
- export declare function checkWorkingDirectoryClean(git: SimpleGit, prebuildOutput: string): Promise<{
33
- clean: boolean;
34
- dirtyFiles: string[];
35
- }>;
36
- /**
37
- * Commit prebuild cache if there are changes.
38
- * Squashes consecutive unpushed cache commits.
39
- * @internal Exported for testing
40
- */
41
- export declare function commitCacheIfChanged(git: SimpleGit, prebuildOutput: string): Promise<boolean>;
42
- export declare const createDeployCommand: () => Command;
43
- export {};
@@ -1,18 +0,0 @@
1
- /**
2
- * Drafts Command (Phase 7.3)
3
- *
4
- * Cross-type overview of pages and entries with pending (unpublished) changes.
5
- * Consumes the SDK `pull.drafts()` operation (server-side `GET pull/drafts`),
6
- * which is correctly server-filtered and fully enumerated — replacing the
7
- * post-pagination `entry list --status draft` trap.
8
- *
9
- * Usage:
10
- * riverbankcms drafts
11
- * riverbankcms drafts --json
12
- */
13
- import { Command } from 'commander';
14
- import type { PulledDrafts } from '../../client/management/types';
15
- /** Flatten the drafts overview into unified table rows for human display. */
16
- export declare function draftsToTableRows(drafts: PulledDrafts): string[][];
17
- export declare const createDraftsCommand: () => Command;
18
- export declare const draftsCommand: Command;
@@ -1,55 +0,0 @@
1
- /**
2
- * Entry Command
3
- *
4
- * Manage content entries via CLI.
5
- *
6
- * Usage:
7
- * riverbankcms entry upsert <type> <identifier> --data <json>
8
- * riverbankcms entry publish <type> <identifier>
9
- * riverbankcms entry unpublish <type> <identifier>
10
- * riverbankcms entry get <type> <identifier>
11
- * riverbankcms entry get <type> <uuid> --by-id
12
- * riverbankcms entry list <type> [--limit N] [--page N]
13
- */
14
- import { Command } from 'commander';
15
- import { type EntryScaffold } from '../../../../content-model/src/index';
16
- import type { ManagementClient, ManagementEntry } from '../../client/management/types';
17
- import { type MediaValidationResult } from '../media/write-guard';
18
- export declare const ENTRY_LIST_COLUMNS: readonly ["id", "identifier", "slug", "status", "hasUnpublishedChanges", "updatedAt", "createdAt", "publishedAt", "title", "contentType"];
19
- export type EntryListColumn = (typeof ENTRY_LIST_COLUMNS)[number];
20
- export declare function parseEntryListColumns(input: string): {
21
- columns: EntryListColumn[];
22
- } | {
23
- error: string;
24
- };
25
- export declare function pickEntryListColumns(entry: ManagementEntry, columns: EntryListColumn[]): Partial<Record<EntryListColumn, unknown>>;
26
- export declare function getEntryListColumnHelp(): string;
27
- export declare function parseEntryStatusFilter(value: string | undefined): 'draft' | 'published' | undefined | {
28
- error: string;
29
- };
30
- export declare function filterEntriesByStatus(entries: ManagementEntry[], status: 'draft' | 'published' | undefined): ManagementEntry[];
31
- export declare function validateEntryUpsertMedia(options: {
32
- client: ManagementClient;
33
- contentType: string;
34
- identifier: string;
35
- data: Record<string, unknown>;
36
- }): Promise<MediaValidationResult>;
37
- export declare function findEntryById(client: ManagementClient, contentType: string, entryId: string, options?: {
38
- limit?: number;
39
- maxPages?: number;
40
- }): Promise<ManagementEntry | null>;
41
- /**
42
- * Resolve a scaffold for a content type from the discovery catalog (the field
43
- * DSL), or an error listing the available keys. Sourced from
44
- * `client.catalog.contentTypes()`, matching how `content-type list` resolves its
45
- * source from the client. (An offline local-config fallback is not implemented:
46
- * the normalized field DSL is only exposed over the catalog API, and
47
- * `content-type list` likewise has no local fallback.)
48
- */
49
- export declare function resolveEntryScaffold(client: ManagementClient, contentType: string): Promise<{
50
- scaffold: EntryScaffold;
51
- } | {
52
- error: string;
53
- availableKeys: string[];
54
- }>;
55
- export declare const entryCommand: Command;
@@ -1,31 +0,0 @@
1
- /**
2
- * Environment Command
3
- *
4
- * Inspect the current CLI environment configuration.
5
- *
6
- * Usage:
7
- * riverbankcms env status # Show active environment
8
- * riverbankcms env status --env=remote # Show remote environment
9
- * riverbankcms env status --env=both # Show both environments
10
- * riverbankcms env status --json # Machine-readable output
11
- */
12
- import { Command } from 'commander';
13
- import type { EnvTarget } from '../helpers';
14
- export interface EnvStatusResult {
15
- target: EnvTarget;
16
- configured: boolean;
17
- siteId: string | null;
18
- dashboardUrl: string | null;
19
- managementApiKey: {
20
- set: boolean;
21
- masked: string;
22
- };
23
- apiKey: {
24
- set: boolean;
25
- };
26
- }
27
- /** Get the status of a single environment target. No network calls. */
28
- export declare function getEnvStatus(target: EnvTarget): EnvStatusResult;
29
- /** Format a single environment status for human-readable output. */
30
- export declare function formatEnvStatus(status: EnvStatusResult): string;
31
- export declare const envCommand: Command;
@@ -1,23 +0,0 @@
1
- import { Command } from 'commander';
2
- import type { EventOccurrenceCapacityIntent, EventOccurrenceScheduleInput, ManagementEventOccurrence, EventSeriesUpsertInput, ManagementEventSeries } from '../../client/management/types';
3
- import { canCancelEventStatus } from './eventOccurrenceSchedule';
4
- export { canCancelEventStatus };
5
- export declare function toEventUpsertInput(identifier: string, raw: Record<string, unknown>): EventSeriesUpsertInput;
6
- export declare function buildCancelledEventUpsertInput(current: ManagementEventSeries): EventSeriesUpsertInput;
7
- type OccurrenceScheduleOptions = Readonly<{
8
- startsAt?: string;
9
- endsAt?: string;
10
- durationMinutes?: string;
11
- }>;
12
- type OccurrenceCapacityOptions = Readonly<{
13
- capacity?: string;
14
- inheritCapacity?: boolean;
15
- }>;
16
- export declare function occurrenceScheduleFromOptions(options: OccurrenceScheduleOptions, required: true): EventOccurrenceScheduleInput;
17
- export declare function occurrenceScheduleFromOptions(options: OccurrenceScheduleOptions, required: false): EventOccurrenceScheduleInput | undefined;
18
- export declare function occurrenceCapacityFromOptions(options: OccurrenceCapacityOptions): EventOccurrenceCapacityIntent | undefined;
19
- export declare function formatDeletionEligibility(occurrence: ManagementEventOccurrence): string;
20
- export declare function occurrenceListJson(occurrences: readonly ManagementEventOccurrence[]): Readonly<{
21
- occurrences: readonly ManagementEventOccurrence[];
22
- }>;
23
- export declare const eventCommand: Command;
@@ -1,12 +0,0 @@
1
- import type { ManagementEventSeries } from '../../client/management/types';
2
- export declare function portableEventScheduleOutput(event: ManagementEventSeries): {
3
- schedule: import("../../../../api/src/sdkContracts").SdkEventCanonicalScheduleInput;
4
- preset: import("../../../../api/src/index").EventPreset;
5
- bookingScope: "single_occurrence" | "whole_series";
6
- occurrences: readonly Readonly<{
7
- startsAt: string;
8
- endsAt: string;
9
- timeZone: string;
10
- }>[];
11
- };
12
- export declare function canCancelEventStatus(status: ManagementEventSeries['status']): boolean;
@@ -1,10 +0,0 @@
1
- /**
2
- * Identifiers Command
3
- *
4
- * Manage SDK identifiers for pages, blocks, and entries.
5
- *
6
- * Usage:
7
- * riverbankcms identifiers backfill # Backfill identifiers for content without them
8
- */
9
- import { Command } from 'commander';
10
- export declare const identifiersCommand: Command;
@@ -1,13 +0,0 @@
1
- /**
2
- * init-docs Command
3
- *
4
- * Scaffold agent documentation and site context.
5
- */
6
- import { Command } from 'commander';
7
- interface InitDocsOptions {
8
- path?: string;
9
- config?: string;
10
- }
11
- export declare function runInitDocs(options: InitDocsOptions, command: Command): Promise<void>;
12
- export declare const createInitDocsCommand: () => Command;
13
- export {};
@@ -1,10 +0,0 @@
1
- /**
2
- * Manifest Command
3
- *
4
- * CLI tool for converting HTML (with Tailwind/CSS) into declarative block manifests.
5
- *
6
- * Usage:
7
- * riverbankcms manifest generate --html <file> --theme <file> [options]
8
- */
9
- import { Command } from 'commander';
10
- export declare const manifestCommand: Command;
@@ -1,3 +0,0 @@
1
- import type { MediaValidationResult } from '../media/write-guard';
2
- import type { OutputContext } from '../output';
3
- export declare function reportMediaValidationWarningsAndCollectBlocking(output: Pick<OutputContext, 'warn'>, validation: MediaValidationResult): string[];
@@ -1,11 +0,0 @@
1
- /**
2
- * Migrate Command
3
- *
4
- * Local-only utilities to migrate SDK on-disk content formats.
5
- *
6
- * Usage:
7
- * riverbankcms migrate entries [contentType] [--content-dir <dir>] [--dry-run] [--force] [--yes]
8
- * riverbankcms migrate events [--content-dir <dir>] [--dry-run] [--yes]
9
- */
10
- import { Command } from 'commander';
11
- export declare const migrateCommand: Command;
@@ -1,12 +0,0 @@
1
- /**
2
- * Navigation Command
3
- *
4
- * Manage navigation menus via CLI.
5
- *
6
- * Usage:
7
- * riverbankcms navigation upsert <menu-name> --file <json-file>
8
- * riverbankcms navigation get <menu-name>
9
- * riverbankcms navigation list
10
- */
11
- import { Command } from 'commander';
12
- export declare const navigationCommand: Command;
@@ -1,14 +0,0 @@
1
- /**
2
- * Page Command
3
- *
4
- * Manage pages via CLI.
5
- *
6
- * Usage:
7
- * riverbankcms page upsert <identifier> --title <title> --path <path>
8
- * riverbankcms page publish <identifier>
9
- * riverbankcms page unpublish <identifier>
10
- * riverbankcms page get <identifier>
11
- * riverbankcms page list [--limit N] [--page N]
12
- */
13
- import { Command } from 'commander';
14
- export declare const pageCommand: Command;
@@ -1,50 +0,0 @@
1
- /**
2
- * Publish-All Command
3
- *
4
- * Publish all entries of a specific content type.
5
- *
6
- * Features:
7
- * - Publishes all entries with unpublished changes
8
- * - Skips already-published entries (no-op for clean entries)
9
- * - Continues on failure, reports all results at end
10
- * - Supports --env for multi-environment operations
11
- * - Requires --yes for remote environments
12
- *
13
- * Usage:
14
- * riverbankcms publish-all <content-type>
15
- * riverbankcms publish-all <content-type> --env=remote --yes
16
- * riverbankcms publish-all <content-type> --env=both --yes
17
- * riverbankcms publish-all <content-type> --dry-run
18
- */
19
- import { Command } from 'commander';
20
- import { type ManagementEntry } from '../../client/management';
21
- export interface PublishResult {
22
- identifier: string;
23
- success: boolean;
24
- skipped: boolean;
25
- error?: string;
26
- }
27
- export interface PublishAllSummary {
28
- total: number;
29
- published: number;
30
- skipped: number;
31
- failed: number;
32
- errors: Array<{
33
- identifier: string;
34
- error: string;
35
- }>;
36
- }
37
- /**
38
- * Filter entries into those needing publishing vs already published.
39
- * Exported for testing.
40
- */
41
- export declare function categorizeEntries(entries: ManagementEntry[]): {
42
- toPublish: ManagementEntry[];
43
- alreadyPublished: ManagementEntry[];
44
- };
45
- /**
46
- * Aggregate publish results into a summary.
47
- * Exported for testing.
48
- */
49
- export declare function aggregateResults(results: PublishResult[]): Omit<PublishAllSummary, 'total'>;
50
- export declare const createPublishAllCommand: () => Command;
@@ -1,10 +0,0 @@
1
- import type { OutputContext } from '../output';
2
- export type DatedOfferingPullScope = 'venues' | 'event-categories' | 'events';
3
- export declare function isDatedOfferingPullScope(scope: string): scope is DatedOfferingPullScope;
4
- export declare function filterPullItemsByIdentifier<TItem>(items: readonly TItem[], identifier: string | undefined, getIdentifier: (item: TItem) => string): TItem[];
5
- export declare function reportMissingScopedPullItem(input: Readonly<{
6
- output: OutputContext;
7
- scope: DatedOfferingPullScope;
8
- identifier: string | undefined;
9
- found: boolean;
10
- }>): boolean;
@@ -1,70 +0,0 @@
1
- import type { ManagementFooterContent, PulledEventCategories, PulledEvents, PulledVenues } from '../../client/management/types';
2
- import type { LocalEvent, LocalEventCategory, LocalFooterContent, LocalTheme, LocalVenue } from '../content/reader';
3
- export type DryRunDiffType = 'create' | 'update' | 'unchanged';
4
- export interface DryRunDiffSummary {
5
- create: number;
6
- update: number;
7
- unchanged: number;
8
- }
9
- export interface DryRunItemDiff {
10
- type: DryRunDiffType;
11
- identifier: string;
12
- changes?: string[];
13
- }
14
- export declare function calculateKeyedArrayPullDiff<TRemote, TLocal>(args: {
15
- remoteItems: TRemote[];
16
- localItems: TLocal[];
17
- getRemoteId: (item: TRemote) => string;
18
- getLocalId: (item: TLocal) => string;
19
- remoteToComparable: (item: TRemote) => Record<string, unknown>;
20
- localToComparable: (item: TLocal) => Record<string, unknown>;
21
- }): {
22
- diffs: DryRunItemDiff[];
23
- summary: DryRunDiffSummary;
24
- };
25
- export declare function formatDryRunArrayDiff(args: {
26
- label: string;
27
- diffs: DryRunItemDiff[];
28
- summary: DryRunDiffSummary;
29
- }): {
30
- summaryText: string;
31
- detailText: string;
32
- };
33
- /**
34
- * Format keyed array diff with field-level before/after values for human display.
35
- * Used by pull --dry-run --diff for scoped pulls (venues, events, etc.).
36
- */
37
- export declare function formatHumanArrayDiff<TRemote, TLocal>(args: {
38
- label: string;
39
- diffs: DryRunItemDiff[];
40
- summary: DryRunDiffSummary;
41
- remoteItems: TRemote[];
42
- localItems: TLocal[];
43
- getRemoteId: (item: TRemote) => string;
44
- getLocalId: (item: TLocal) => string;
45
- remoteToComparable: (item: TRemote) => Record<string, unknown>;
46
- localToComparable: (item: TLocal) => Record<string, unknown>;
47
- }): {
48
- summaryText: string;
49
- detailText: string;
50
- };
51
- export declare function calculateThemePullDiff(args: {
52
- remoteTheme: unknown;
53
- localTheme: LocalTheme | null;
54
- }): {
55
- type: DryRunDiffType;
56
- changes?: string[];
57
- };
58
- export declare function calculateFooterPullDiff(args: {
59
- remoteFooter: ManagementFooterContent | null;
60
- localFooter: LocalFooterContent | null;
61
- }): {
62
- type: DryRunDiffType;
63
- changes?: string[];
64
- };
65
- export declare function mapRemoteVenueToLocalComparable(v: PulledVenues['venues'][number]): Record<string, unknown>;
66
- export declare function mapLocalVenueToComparable(v: LocalVenue): Record<string, unknown>;
67
- export declare function mapRemoteEventCategoryToLocalComparable(c: PulledEventCategories['eventCategories'][number]): Record<string, unknown>;
68
- export declare function mapLocalEventCategoryToComparable(c: LocalEventCategory): Record<string, unknown>;
69
- export declare function mapRemoteEventToLocalComparable(event: PulledEvents['events'][number]): Record<string, unknown>;
70
- export declare function mapLocalEventToComparable(event: LocalEvent): Record<string, unknown>;
@@ -1,8 +0,0 @@
1
- import type { ContentDiff } from '../sync';
2
- /**
3
- * In pull --dry-run, scoped pulls should only report diffs for the requested scope.
4
- *
5
- * `PulledContent` always includes a `settings` object (even when pulling entries/pages/etc),
6
- * so `calculatePullDiff()` can otherwise report settings changes for unrelated scopes.
7
- */
8
- export declare function maskPullDiffForScope(diff: ContentDiff, pullScope: string): ContentDiff;
@@ -1,43 +0,0 @@
1
- /**
2
- * Pull Command
3
- *
4
- * Pulls content from the CMS and saves to local JSON files.
5
- *
6
- * Usage:
7
- * riverbankcms pull # Pull all content
8
- * riverbankcms pull entries # Pull all entries
9
- * riverbankcms pull entries blog-post # Pull specific content type
10
- * riverbankcms pull entries blog-post welcome # Pull specific entry
11
- * riverbankcms pull pages # Pull all pages
12
- * riverbankcms pull pages home # Pull specific page
13
- * riverbankcms pull navigation # Pull navigation menus
14
- * riverbankcms pull settings # Pull site settings
15
- * riverbankcms pull footer # Pull footer content
16
- */
17
- import { Command } from 'commander';
18
- import type { ManagementClient, PulledContent } from '../../client/management';
19
- import type { OutputContext } from '../output';
20
- import type { EntryBaseSnapshotTarget } from '../merge-remote/entrySnapshots';
21
- export declare function entryBaseSnapshotTargetForPull(input: Readonly<{
22
- isRemote: boolean;
23
- siteId: string;
24
- }>): EntryBaseSnapshotTarget;
25
- /**
26
- * Fetch broad generic content, including paginated entry payloads when needed,
27
- * then remove canonical/owner-managed entry types before diffing or writing.
28
- */
29
- export declare function pullAllContentWithCanonicalEntryPolicy(client: ManagementClient, output: OutputContext): Promise<PulledContent>;
30
- export declare function createScopedPullContent(meta: Omit<PulledContent['meta'], 'truncation'> & Partial<Pick<PulledContent['meta'], 'truncation'>>, overrides: Partial<Omit<PulledContent, 'meta'>>): PulledContent;
31
- /**
32
- * Determines whether the pull command should prompt for overwrite confirmation.
33
- * Scoped pulls (e.g., `pull entries blog-post`) only modify their target subdirectory,
34
- * so they skip the confirmation. Broad pulls (`pull` or `pull all`) require it.
35
- */
36
- export declare function shouldPromptForOverwrite(opts: {
37
- pullScope: string;
38
- contentDirExists: boolean;
39
- force: boolean;
40
- yes: boolean;
41
- }): boolean;
42
- export declare const createPullCommand: () => Command;
43
- export declare const pullCommand: Command;
@@ -1,3 +0,0 @@
1
- export declare const VALID_PUSH_SCOPES: readonly ["entries", "pages", "navigation", "forms", "settings", "theme", "footer", "venues", "event-categories", "events", "all"];
2
- export type PushScope = (typeof VALID_PUSH_SCOPES)[number];
3
- export declare function isValidPushScope(scope: string): scope is PushScope;
@@ -1,19 +0,0 @@
1
- import type { PulledContent } from '../../../../client/management/types';
2
- import type { LoadedCliConfig } from '../../../config-loader';
3
- import type { LocalContent } from '../../../content/reader';
4
- import type { OutputContext } from '../../../output';
5
- import { type ContentDiff, type JsonDiffMode } from '../../../sync';
6
- import type { LocalMediaPushReport } from '../../../media/local-sync';
7
- export declare function displayDiff(params: {
8
- output: OutputContext;
9
- diff: ContentDiff;
10
- config: LoadedCliConfig;
11
- dryRun: boolean;
12
- isRemote: boolean;
13
- jsonOutput: boolean;
14
- jsonDiffMode: JsonDiffMode | undefined;
15
- localContent: LocalContent;
16
- remoteContent: PulledContent;
17
- humanDiff?: boolean;
18
- mediaReport?: LocalMediaPushReport;
19
- }): unknown;
@@ -1,42 +0,0 @@
1
- import type { ManagementFooterContent } from '../../../../client/management/types';
2
- import { writeFooterContentAfterPush } from '../../../content/footerFile';
3
- import type { EnvTarget } from '../../../helpers';
4
- import type { OutputContext } from '../../../output';
5
- import { type FooterDiff } from '../../../sync/diff';
6
- import type { PushOptions } from '../options';
7
- export type FooterPushExecutionResult = Readonly<{
8
- success: boolean;
9
- }>;
10
- export type FooterLocalRefreshResult = Readonly<{
11
- kind: 'refreshed';
12
- }> | Readonly<{
13
- kind: 'failed';
14
- cause: unknown;
15
- }>;
16
- type FooterPushDecision = Readonly<{
17
- kind: 'unchanged';
18
- }> | Readonly<{
19
- kind: 'dry-run';
20
- diff: FooterDiff;
21
- }> | Readonly<{
22
- kind: 'apply';
23
- diff: FooterDiff;
24
- }>;
25
- export declare function footerPushDecision(diff: FooterDiff | null, dryRun: boolean): FooterPushDecision;
26
- export declare function footerDryRunPayload(diff: FooterDiff): Readonly<{
27
- kind: 'push';
28
- scope: 'footer';
29
- dryRun: true;
30
- changes: readonly string[];
31
- }>;
32
- export declare function refreshLocalFooterAfterPush(contentDir: string, footer: ManagementFooterContent, writeFooter?: typeof writeFooterContentAfterPush): Promise<FooterLocalRefreshResult>;
33
- export declare function executeFooterPush(input: Readonly<{
34
- output: OutputContext;
35
- target: EnvTarget;
36
- options: PushOptions & {
37
- dryRun: boolean;
38
- };
39
- jsonOutput: boolean;
40
- skipMeta: boolean;
41
- }>): Promise<FooterPushExecutionResult>;
42
- export {};
@@ -1,23 +0,0 @@
1
- import { type OutputContext } from '../../../output';
2
- import type { ManagementClient } from '../../../../client/management';
3
- import type { LocalContent } from '../../../content/reader';
4
- import type { LocalMediaPushEvent, LocalMediaPushReport } from '../../../media/local-sync';
5
- import { type LocalMediaPushResult } from '../../../media/local-sync';
6
- export declare function reportLocalMediaPushEvent(output: OutputContext, event: LocalMediaPushEvent): void;
7
- export declare function reportLocalMediaPushSummary(params: {
8
- output: OutputContext;
9
- report: LocalMediaPushReport;
10
- dryRun: boolean;
11
- includeResolved?: boolean;
12
- }): void;
13
- export declare function syncLocalMediaForPushWithReporting(params: {
14
- output: OutputContext;
15
- contentDir: string;
16
- content: LocalContent;
17
- client: ManagementClient;
18
- dryRun: boolean;
19
- targetEnv: string;
20
- isStructuredOutput: boolean;
21
- forceUpdateAsset?: boolean;
22
- printSummary?: boolean;
23
- }): Promise<LocalMediaPushResult>;
@@ -1,22 +0,0 @@
1
- import type { LocalContent } from '../../../content/reader';
2
- import type { OutputContext } from '../../../output';
3
- import type { ManagementClient } from '../../../../client/management';
4
- /**
5
- * Convert LocalContent to a structure that extractMediaPaths can walk.
6
- * LocalContent.entries is a Map, but extractMediaPaths uses Object.keys()
7
- * which doesn't work on Maps.
8
- */
9
- export declare function localContentToExtractable(content: LocalContent): unknown;
10
- /**
11
- * Sync media from source to target environment for a push.
12
- * Downloads files from source Supabase and uploads to target via management API.
13
- */
14
- export declare function syncMediaFilesForPush(params: {
15
- content: LocalContent;
16
- sourceClient: ManagementClient;
17
- sourceSupabaseUrl: string;
18
- sourceSiteId: string;
19
- targetClient: ManagementClient;
20
- output: OutputContext;
21
- overwrite?: boolean;
22
- }): Promise<void>;
@@ -1 +0,0 @@
1
- export declare function mapIfUpdating<T, R>(shouldUpdate: boolean, items: T[], mapper: (item: T) => R): R[];
@@ -1,7 +0,0 @@
1
- import type { OutputContext } from '../../../output';
2
- import { type SyncResult } from '../../../sync';
3
- export declare function reportSyncResults(params: {
4
- output: OutputContext;
5
- result: SyncResult;
6
- hasErrors: boolean;
7
- }): void;