@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.
- package/README.md +52 -256
- package/dist/{PreviewEditorSidebar-Dbvb7GIr.mjs → PreviewEditorSidebar-DceRseRV.mjs} +3 -3
- package/dist/{PreviewEditorUI-e9O9l20X.mjs → PreviewEditorUI-BNunq3kk.mjs} +2 -2
- package/dist/{SdkPreviewModeRuntime-BZHt6e9w.mjs → SdkPreviewModeRuntime-Bt87-62u.mjs} +495 -292
- package/dist/{SiteChromeCustomizeContext-CvuGbHJX.mjs → SiteChromeCustomizeContext-BLl-OlL4.mjs} +600 -533
- package/dist/_dts/ai/src/contracts/commandExposure.d.ts +1 -1
- package/dist/_dts/ai/src/contracts/proposals.d.ts +4897 -4897
- package/dist/_dts/api/src/index.d.ts +2 -1
- package/dist/_dts/api/src/sdk-event-management.d.ts +53 -0
- package/dist/_dts/api/src/sdk-event-schedule.d.ts +3 -6
- package/dist/_dts/api/src/sdkContracts.d.ts +37 -50
- package/dist/_dts/api/src/sdkThemeWire.d.ts +2595 -0
- package/dist/_dts/api/src/sitePlatformEndpoints.d.ts +13 -29
- package/dist/_dts/blocks/src/PageRenderer.d.ts +20 -10
- package/dist/_dts/blocks/src/index.d.ts +2 -1
- package/dist/_dts/blocks/src/pageRendererBoundaries.d.ts +30 -0
- package/dist/_dts/blocks/src/pageRenderingMode.d.ts +37 -0
- package/dist/_dts/blocks/src/server.d.ts +1 -1
- package/dist/_dts/db/src/generated/supabase/database.types.d.ts +14 -0
- package/dist/_dts/media-core/src/index.d.ts +1 -0
- package/dist/_dts/preview-next/src/client/blocks/pageDesignRuntimePreview.d.ts +2 -0
- package/dist/_dts/preview-next/src/client/index.d.ts +47 -47
- package/dist/_dts/preview-next/src/client/preview/PreviewShell.d.ts +18 -6
- package/dist/_dts/preview-next/src/client/preview/PreviewShellLayout.d.ts +30 -21
- package/dist/_dts/preview-next/src/client/preview/PreviewThemedSiteDocument.d.ts +18 -5
- package/dist/_dts/preview-next/src/client/preview/themeRuntime.d.ts +9 -0
- package/dist/_dts/preview-next/src/client/sdk/SdkPreviewMode.d.ts +21 -6
- package/dist/_dts/preview-next/src/client/sdk-runtime.d.ts +8 -8
- package/dist/_dts/sdk/src/config/types.d.ts +4 -4
- package/dist/_dts/sdk/src/next/catch-all.d.ts +6 -0
- package/dist/_dts/sdk/src/next/index.d.ts +2 -1
- package/dist/_dts/sdk/src/next/renderSdkContent.d.ts +33 -0
- package/dist/_dts/sdk/src/next/types.d.ts +23 -9
- package/dist/_dts/sdk/src/preview-next/before-render.d.ts +4 -6
- package/dist/_dts/sdk/src/preview-next/client/index.d.ts +3 -3
- package/dist/_dts/sdk/src/preview-next/client/runtime.d.ts +1 -1
- package/dist/_dts/sdk/src/rendering/blocks-page-renderer.d.ts +25 -3
- package/dist/_dts/sdk/src/rendering/components/Block.shared.d.ts +13 -2
- package/dist/_dts/sdk/src/rendering/components/Layout.d.ts +31 -18
- package/dist/_dts/sdk/src/rendering/components/pageShared.d.ts +20 -9
- package/dist/_dts/sdk/src/rendering/index.d.ts +4 -2
- package/dist/_dts/sdk/src/rendering/renderingMode.d.ts +23 -0
- package/dist/_dts/sdk/src/rendering/server.d.ts +5 -3
- package/dist/_dts/sdk/src/rendering/themeRuntime.d.ts +6 -0
- package/dist/_dts/sdk/src/version.d.ts +1 -1
- package/dist/_dts/theme-core/src/buttons/index.d.ts +1 -0
- package/dist/_dts/theme-core/src/palette/index.d.ts +1 -0
- package/dist/_dts/theme-core/src/site-styles/headerLayoutStyleCatalog.d.ts +254 -0
- package/dist/_dts/theme-core/src/site-styles/headerLegacyLooks.d.ts +372 -0
- package/dist/_dts/theme-core/src/site-styles/headerLookBranding.d.ts +106 -0
- package/dist/_dts/theme-core/src/site-styles/headerLookSelection.d.ts +2 -0
- package/dist/_dts/theme-core/src/site-styles/headerLookTypes.d.ts +212 -0
- package/dist/_dts/theme-core/src/site-styles/headerLooks.d.ts +7 -841
- package/dist/_dts/theme-core/src/site-styles/headerStyleCompiler.d.ts +3 -0
- package/dist/_dts/theme-core/src/site-styles/headerStyleCompilerPrimitives.d.ts +23 -0
- package/dist/client/client.mjs +911 -762
- package/dist/client/hooks.mjs +59 -36
- package/dist/client/rendering/client.mjs +593 -547
- package/dist/client/rendering.mjs +994 -783
- package/dist/preview-next/before-render.mjs +10 -3
- package/dist/preview-next/client/runtime.mjs +3 -3
- package/dist/{sdk-runtime-Cn_QSCOg.mjs → sdk-runtime-C20CVWbb.mjs} +1 -1
- package/dist/{separator-CEoGABRc.mjs → separator-BE3NCquy.mjs} +1 -1
- package/dist/server/components.mjs +549 -399
- package/dist/server/config-validation.mjs +59 -36
- package/dist/server/config.mjs +59 -36
- package/dist/server/data.mjs +59 -36
- package/dist/server/index.mjs +1 -1
- package/dist/server/manifest.mjs +4966 -0
- package/dist/server/next.mjs +700 -537
- package/dist/server/page-converter.mjs +40 -36
- package/dist/server/prebuild.mjs +1 -1
- package/dist/server/rendering/server.mjs +571 -404
- package/dist/server/rendering.mjs +571 -404
- package/dist/server/routing.mjs +472 -402
- package/dist/server/server.mjs +60 -37
- package/dist/server/theme-bridge.mjs +70 -66
- package/package.json +9 -12
- package/dist/_dts/api/src/event-presentation.d.ts +0 -14
- package/dist/_dts/blocks/src/definitions.d.ts +0 -14
- package/dist/_dts/sdk/src/cli/canonical-entry-policy.d.ts +0 -53
- package/dist/_dts/sdk/src/cli/commands/audit.d.ts +0 -101
- package/dist/_dts/sdk/src/cli/commands/block.d.ts +0 -24
- package/dist/_dts/sdk/src/cli/commands/compare.d.ts +0 -62
- package/dist/_dts/sdk/src/cli/commands/content-type.d.ts +0 -10
- package/dist/_dts/sdk/src/cli/commands/content.d.ts +0 -56
- package/dist/_dts/sdk/src/cli/commands/delete.d.ts +0 -14
- package/dist/_dts/sdk/src/cli/commands/deploy.d.ts +0 -43
- package/dist/_dts/sdk/src/cli/commands/drafts.d.ts +0 -18
- package/dist/_dts/sdk/src/cli/commands/entry.d.ts +0 -55
- package/dist/_dts/sdk/src/cli/commands/env.d.ts +0 -31
- package/dist/_dts/sdk/src/cli/commands/event.d.ts +0 -23
- package/dist/_dts/sdk/src/cli/commands/eventOccurrenceSchedule.d.ts +0 -12
- package/dist/_dts/sdk/src/cli/commands/identifiers.d.ts +0 -10
- package/dist/_dts/sdk/src/cli/commands/init-docs.d.ts +0 -13
- package/dist/_dts/sdk/src/cli/commands/manifest.d.ts +0 -10
- package/dist/_dts/sdk/src/cli/commands/media-validation.d.ts +0 -3
- package/dist/_dts/sdk/src/cli/commands/migrate.d.ts +0 -11
- package/dist/_dts/sdk/src/cli/commands/navigation.d.ts +0 -12
- package/dist/_dts/sdk/src/cli/commands/page.d.ts +0 -14
- package/dist/_dts/sdk/src/cli/commands/publish-all.d.ts +0 -50
- package/dist/_dts/sdk/src/cli/commands/pull-dated-offering-scope.d.ts +0 -10
- package/dist/_dts/sdk/src/cli/commands/pull-dry-run.d.ts +0 -70
- package/dist/_dts/sdk/src/cli/commands/pull-scope-diff.d.ts +0 -8
- package/dist/_dts/sdk/src/cli/commands/pull.d.ts +0 -43
- package/dist/_dts/sdk/src/cli/commands/push/consts.d.ts +0 -3
- package/dist/_dts/sdk/src/cli/commands/push/execute/diff.d.ts +0 -19
- package/dist/_dts/sdk/src/cli/commands/push/execute/footer.d.ts +0 -42
- package/dist/_dts/sdk/src/cli/commands/push/execute/localMediaReporting.d.ts +0 -23
- package/dist/_dts/sdk/src/cli/commands/push/execute/media.d.ts +0 -22
- package/dist/_dts/sdk/src/cli/commands/push/execute/metadata.d.ts +0 -1
- package/dist/_dts/sdk/src/cli/commands/push/execute/reporting.d.ts +0 -7
- package/dist/_dts/sdk/src/cli/commands/push/execute/theme.d.ts +0 -63
- package/dist/_dts/sdk/src/cli/commands/push/filter.d.ts +0 -15
- package/dist/_dts/sdk/src/cli/commands/push/metadata.d.ts +0 -29
- package/dist/_dts/sdk/src/cli/commands/push/normalizeLocalContent.d.ts +0 -2
- package/dist/_dts/sdk/src/cli/commands/push/options.d.ts +0 -32
- package/dist/_dts/sdk/src/cli/commands/push/publishGuidance.d.ts +0 -15
- package/dist/_dts/sdk/src/cli/commands/push/pushAllExtras.d.ts +0 -25
- package/dist/_dts/sdk/src/cli/commands/push/scopes/commandBackedDatedOfferingScope.d.ts +0 -83
- package/dist/_dts/sdk/src/cli/commands/push/scopes/eventCategories.d.ts +0 -4
- package/dist/_dts/sdk/src/cli/commands/push/scopes/events.d.ts +0 -4
- package/dist/_dts/sdk/src/cli/commands/push/scopes/mediaPrep.d.ts +0 -14
- package/dist/_dts/sdk/src/cli/commands/push/scopes/pushScopeGeneric.d.ts +0 -6
- package/dist/_dts/sdk/src/cli/commands/push/scopes/types.d.ts +0 -87
- package/dist/_dts/sdk/src/cli/commands/push/scopes/venues.d.ts +0 -4
- package/dist/_dts/sdk/src/cli/commands/push/stale-resolution.d.ts +0 -48
- package/dist/_dts/sdk/src/cli/commands/push/stale.d.ts +0 -17
- package/dist/_dts/sdk/src/cli/commands/push/verification.d.ts +0 -56
- package/dist/_dts/sdk/src/cli/commands/push/workflowPlan.d.ts +0 -34
- package/dist/_dts/sdk/src/cli/commands/push-execute.d.ts +0 -54
- package/dist/_dts/sdk/src/cli/commands/push.d.ts +0 -40
- package/dist/_dts/sdk/src/cli/commands/setup.d.ts +0 -3
- package/dist/_dts/sdk/src/cli/commands/style.d.ts +0 -60
- package/dist/_dts/sdk/src/cli/commands/verify.d.ts +0 -11
- package/dist/_dts/sdk/src/cli/commands/webhooks.d.ts +0 -44
- package/dist/_dts/sdk/src/cli/config-loader.d.ts +0 -47
- package/dist/_dts/sdk/src/cli/content/collectionWriters.d.ts +0 -23
- package/dist/_dts/sdk/src/cli/content/edit/format.d.ts +0 -2
- package/dist/_dts/sdk/src/cli/content/edit/path.d.ts +0 -14
- package/dist/_dts/sdk/src/cli/content/edit/planner.d.ts +0 -46
- package/dist/_dts/sdk/src/cli/content/entryPaths.d.ts +0 -6
- package/dist/_dts/sdk/src/cli/content/footerFile.d.ts +0 -10
- package/dist/_dts/sdk/src/cli/content/fs-utils.d.ts +0 -39
- package/dist/_dts/sdk/src/cli/content/legacyEventScheduleShapeError.d.ts +0 -5
- package/dist/_dts/sdk/src/cli/content/localEventSchedule.d.ts +0 -17
- package/dist/_dts/sdk/src/cli/content/media-manifest.d.ts +0 -13
- package/dist/_dts/sdk/src/cli/content/metadataAfterPush.d.ts +0 -25
- package/dist/_dts/sdk/src/cli/content/metadataStore.d.ts +0 -29
- package/dist/_dts/sdk/src/cli/content/reader.d.ts +0 -488
- package/dist/_dts/sdk/src/cli/content/writer.d.ts +0 -142
- package/dist/_dts/sdk/src/cli/env-scope.d.ts +0 -2
- package/dist/_dts/sdk/src/cli/env.d.ts +0 -71
- package/dist/_dts/sdk/src/cli/errors.d.ts +0 -62
- package/dist/_dts/sdk/src/cli/helpers/ai-runtime.d.ts +0 -2
- package/dist/_dts/sdk/src/cli/helpers.d.ts +0 -399
- package/dist/_dts/sdk/src/cli/index.d.ts +0 -11
- package/dist/_dts/sdk/src/cli/init-docs/constants.d.ts +0 -16
- package/dist/_dts/sdk/src/cli/init-docs/index.d.ts +0 -12
- package/dist/_dts/sdk/src/cli/init-docs/templates.d.ts +0 -18
- package/dist/_dts/sdk/src/cli/init-docs/zod-to-markdown.d.ts +0 -28
- package/dist/_dts/sdk/src/cli/load-config.d.ts +0 -14
- package/dist/_dts/sdk/src/cli/media/identifiers.d.ts +0 -18
- package/dist/_dts/sdk/src/cli/media/local-media.d.ts +0 -14
- package/dist/_dts/sdk/src/cli/media/local-sync.d.ts +0 -91
- package/dist/_dts/sdk/src/cli/media/portable.d.ts +0 -11
- package/dist/_dts/sdk/src/cli/media/rich-text.d.ts +0 -12
- package/dist/_dts/sdk/src/cli/media/value-utils.d.ts +0 -15
- package/dist/_dts/sdk/src/cli/media/write-guard.d.ts +0 -52
- package/dist/_dts/sdk/src/cli/merge-remote/entryLocal.d.ts +0 -3
- package/dist/_dts/sdk/src/cli/merge-remote/entryMerge.d.ts +0 -78
- package/dist/_dts/sdk/src/cli/merge-remote/entryMergePlan.d.ts +0 -45
- package/dist/_dts/sdk/src/cli/merge-remote/entryMergePush.d.ts +0 -24
- package/dist/_dts/sdk/src/cli/merge-remote/entryMergeReport.d.ts +0 -18
- package/dist/_dts/sdk/src/cli/merge-remote/entryRemote.d.ts +0 -9
- package/dist/_dts/sdk/src/cli/merge-remote/entrySnapshots.d.ts +0 -48
- package/dist/_dts/sdk/src/cli/merge-remote/mergeFieldChanges.d.ts +0 -22
- package/dist/_dts/sdk/src/cli/merge-remote/pageLocal.d.ts +0 -3
- package/dist/_dts/sdk/src/cli/merge-remote/pageMerge.d.ts +0 -78
- package/dist/_dts/sdk/src/cli/merge-remote/pageMergePlan.d.ts +0 -36
- package/dist/_dts/sdk/src/cli/merge-remote/pageMergePush.d.ts +0 -23
- package/dist/_dts/sdk/src/cli/merge-remote/pageMergeReport.d.ts +0 -17
- package/dist/_dts/sdk/src/cli/merge-remote/pageSnapshots.d.ts +0 -46
- package/dist/_dts/sdk/src/cli/merge-remote/sharedBaseSnapshots.d.ts +0 -32
- package/dist/_dts/sdk/src/cli/merge-remote/sharedMergePlan.d.ts +0 -27
- package/dist/_dts/sdk/src/cli/merge-remote/sharedMergeReport.d.ts +0 -63
- package/dist/_dts/sdk/src/cli/migrations/entries.d.ts +0 -28
- package/dist/_dts/sdk/src/cli/migrations/events.d.ts +0 -73
- package/dist/_dts/sdk/src/cli/navigationIdentity.d.ts +0 -11
- package/dist/_dts/sdk/src/cli/output.d.ts +0 -133
- package/dist/_dts/sdk/src/cli/program.d.ts +0 -29
- package/dist/_dts/sdk/src/cli/push-config.d.ts +0 -49
- package/dist/_dts/sdk/src/cli/setup/setupPlan.d.ts +0 -51
- package/dist/_dts/sdk/src/cli/site-commands/commandKeys.d.ts +0 -13
- package/dist/_dts/sdk/src/cli/site-commands/commandRuntime.d.ts +0 -170
- package/dist/_dts/sdk/src/cli/site-commands/commandRuntimeCompat.d.ts +0 -21
- package/dist/_dts/sdk/src/cli/site-commands/commandSurfaceDispatch.d.ts +0 -32
- package/dist/_dts/sdk/src/cli/site-commands/datedOfferingCommands.d.ts +0 -53
- package/dist/_dts/sdk/src/cli/site-commands/entryCommands.d.ts +0 -65
- package/dist/_dts/sdk/src/cli/site-commands/eventScheduleCompiler.d.ts +0 -24
- package/dist/_dts/sdk/src/cli/site-commands/footerCommands.d.ts +0 -68
- package/dist/_dts/sdk/src/cli/site-commands/formCommands.d.ts +0 -53
- package/dist/_dts/sdk/src/cli/site-commands/index.d.ts +0 -8
- package/dist/_dts/sdk/src/cli/site-commands/localBlockManifestResolver.d.ts +0 -31
- package/dist/_dts/sdk/src/cli/site-commands/navigationCommands.d.ts +0 -57
- package/dist/_dts/sdk/src/cli/site-commands/oneOffCommands.d.ts +0 -82
- package/dist/_dts/sdk/src/cli/site-commands/pageCommands.d.ts +0 -84
- package/dist/_dts/sdk/src/cli/site-commands/pushExecution.d.ts +0 -39
- package/dist/_dts/sdk/src/cli/site-commands/pushExecutionPlan.d.ts +0 -8
- package/dist/_dts/sdk/src/cli/site-commands/pushExecutionTypes.d.ts +0 -97
- package/dist/_dts/sdk/src/cli/site-commands/residualSettingsTrimming.d.ts +0 -15
- package/dist/_dts/sdk/src/cli/sync/diff.d.ts +0 -222
- package/dist/_dts/sdk/src/cli/sync/executor.d.ts +0 -84
- package/dist/_dts/sdk/src/cli/sync/field-diff.d.ts +0 -39
- package/dist/_dts/sdk/src/cli/sync/index.d.ts +0 -10
- package/dist/_dts/sdk/src/cli/sync/mapper.d.ts +0 -41
- package/dist/_dts/sdk/src/cli/sync/media-sync.d.ts +0 -15
- package/dist/_dts/sdk/src/cli/sync/media.d.ts +0 -158
- package/dist/_dts/sdk/src/cli/sync/syncResultAggregation.d.ts +0 -4
- package/dist/_dts/sdk/src/cli/sync/validation.d.ts +0 -68
- package/dist/_dts/sdk/src/cli/utils/checksum.d.ts +0 -1
- package/dist/_dts/sdk/src/client/management/blocks.d.ts +0 -19
- package/dist/_dts/sdk/src/client/management/catalog.d.ts +0 -10
- package/dist/_dts/sdk/src/client/management/entries.d.ts +0 -6
- package/dist/_dts/sdk/src/client/management/eventCategories.d.ts +0 -6
- package/dist/_dts/sdk/src/client/management/events.d.ts +0 -7
- package/dist/_dts/sdk/src/client/management/footer.d.ts +0 -9
- package/dist/_dts/sdk/src/client/management/forms.d.ts +0 -6
- package/dist/_dts/sdk/src/client/management/http.d.ts +0 -79
- package/dist/_dts/sdk/src/client/management/identifiers.d.ts +0 -11
- package/dist/_dts/sdk/src/client/management/index.d.ts +0 -41
- package/dist/_dts/sdk/src/client/management/media.d.ts +0 -72
- package/dist/_dts/sdk/src/client/management/navigation.d.ts +0 -6
- package/dist/_dts/sdk/src/client/management/pages.d.ts +0 -6
- package/dist/_dts/sdk/src/client/management/pull.d.ts +0 -6
- package/dist/_dts/sdk/src/client/management/settings-branding.d.ts +0 -32
- package/dist/_dts/sdk/src/client/management/settings.d.ts +0 -6
- package/dist/_dts/sdk/src/client/management/theme.d.ts +0 -8
- package/dist/_dts/sdk/src/client/management/types.d.ts +0 -1069
- package/dist/_dts/sdk/src/client/management/venues.d.ts +0 -6
- package/dist/_dts/sdk/src/client/management/webhooks.d.ts +0 -3
- package/dist/_dts/sdk/src/test/env.d.ts +0 -4
- package/dist/_dts/site-commands/src/adapter.d.ts +0 -23
- package/dist/_dts/site-commands/src/appointmentCommandSchemas.d.ts +0 -100
- package/dist/_dts/site-commands/src/capabilityGaps.d.ts +0 -8
- package/dist/_dts/site-commands/src/commandContract.d.ts +0 -1277
- package/dist/_dts/site-commands/src/commandDomain.d.ts +0 -20
- package/dist/_dts/site-commands/src/commandIdentifiers.d.ts +0 -7
- package/dist/_dts/site-commands/src/commandValidation.d.ts +0 -10
- package/dist/_dts/site-commands/src/commands.d.ts +0 -1983
- package/dist/_dts/site-commands/src/domain.d.ts +0 -104
- package/dist/_dts/site-commands/src/eventCommandContent.d.ts +0 -11
- package/dist/_dts/site-commands/src/exposure.d.ts +0 -41
- package/dist/_dts/site-commands/src/guards.d.ts +0 -1
- package/dist/_dts/site-commands/src/index.d.ts +0 -18
- package/dist/_dts/site-commands/src/metadata.d.ts +0 -555
- package/dist/_dts/site-commands/src/pagePaths.d.ts +0 -6
- package/dist/_dts/site-commands/src/planner.d.ts +0 -58
- package/dist/_dts/site-commands/src/refContributions.d.ts +0 -11
- package/dist/_dts/site-commands/src/refs.d.ts +0 -90
- package/dist/_dts/site-commands/src/siteStyleCommandSchema.d.ts +0 -405
- package/dist/_dts/site-commands/src/siteStyleSelectionSchemaBuilder.d.ts +0 -46
- package/dist/_dts/site-commands/src/stableJson.d.ts +0 -5
- package/dist/_dts/site-commands/src/staticExecutionGaps.d.ts +0 -10
- package/dist/_dts/site-commands/src/venueCommandMapping.d.ts +0 -21
- package/dist/_dts/theme-core/src/data.d.ts +0 -12
- package/dist/_dts/theme-core/src/site-styles/headerStyleParts.d.ts +0 -4
- package/dist/cli/index.mjs +0 -162962
- package/dist/cli/init-docs/content/agents-section.md +0 -67
- package/dist/cli/init-docs/content/cli-reference.md +0 -1238
- package/dist/cli/init-docs/content/content-management.md +0 -792
- package/dist/cli/init-docs/content/context-brand.md +0 -125
- package/dist/cli/init-docs/content/context-brief.md +0 -77
- package/dist/cli/init-docs/content/context-knowledge.md +0 -111
- package/dist/cli/init-docs/content/getting-started.md +0 -171
- package/dist/cli/init-docs/content/site-workflows-readme.md +0 -96
- package/dist/cli/init-docs/content/workflow-add-block.md +0 -299
- package/dist/cli/init-docs/content/workflow-agent-safe-sync.md +0 -83
- package/dist/cli/init-docs/content/workflow-block-extensions.md +0 -370
- package/dist/cli/init-docs/content/workflow-cmsify-page.md +0 -357
- package/dist/cli/init-docs/content/workflow-content-types.md +0 -330
- package/dist/cli/init-docs/content/workflow-create-page.md +0 -212
- package/dist/cli/init-docs/content/workflow-custom-block.md +0 -470
- package/dist/cli/init-docs/content/workflow-editor-workflows.md +0 -130
- package/dist/cli/init-docs/content/workflow-isr-revalidation.md +0 -158
- package/dist/cli/init-docs/content/workflow-preview-mode.md +0 -239
- package/dist/cli/init-docs/content/workflow-publish.md +0 -285
- package/dist/cli/init-docs/content/workflow-remote-setup.md +0 -51
- package/dist/cli/init-docs/content/workflow-templates.md +0 -381
- /package/dist/_dts/{sdk/src/cli/utils/mime.d.ts → media-core/src/mimeType.d.ts} +0 -0
|
@@ -1,91 +0,0 @@
|
|
|
1
|
-
import type { ManagementClient } from '../../client/management';
|
|
2
|
-
import type { PulledContent } from '../../client/management/types';
|
|
3
|
-
import type { LocalContent } from '../content/reader';
|
|
4
|
-
import { type LocalMediaManifest } from '../content/media-manifest';
|
|
5
|
-
export type LocalMediaPushSummary = {
|
|
6
|
-
totalReferences: number;
|
|
7
|
-
identifiers: number;
|
|
8
|
-
resolved: number;
|
|
9
|
-
reused: number;
|
|
10
|
-
uploaded: number;
|
|
11
|
-
assigned: number;
|
|
12
|
-
skipped: number;
|
|
13
|
-
pendingUploads: number;
|
|
14
|
-
pendingAssignments: number;
|
|
15
|
-
};
|
|
16
|
-
export type LocalMediaUploadFailureKind = 'max_object_size' | 'unsupported_mime' | 'quota_or_storage_limit' | 'auth_or_permission' | 'network' | 'cms_api' | 'unknown';
|
|
17
|
-
export type LocalMediaPushItemStatus = 'resolved' | 'reused' | 'assigned' | 'pending_upload' | 'uploaded' | 'skipped' | 'missing_local_file' | 'failed';
|
|
18
|
-
export type LocalMediaPushItemReport = Readonly<{
|
|
19
|
-
identifier: string;
|
|
20
|
-
status: LocalMediaPushItemStatus;
|
|
21
|
-
targetEnv?: string;
|
|
22
|
-
filename?: string;
|
|
23
|
-
sizeBytes?: number;
|
|
24
|
-
mimeType?: string;
|
|
25
|
-
locations?: readonly string[];
|
|
26
|
-
message?: string;
|
|
27
|
-
failureKind?: LocalMediaUploadFailureKind;
|
|
28
|
-
rawError?: string;
|
|
29
|
-
}>;
|
|
30
|
-
export type LocalMediaPushReport = Readonly<{
|
|
31
|
-
targetEnv?: string;
|
|
32
|
-
summary: LocalMediaPushSummary;
|
|
33
|
-
items: readonly LocalMediaPushItemReport[];
|
|
34
|
-
failedIdentifiers: readonly string[];
|
|
35
|
-
missingIdentifiers: readonly string[];
|
|
36
|
-
}>;
|
|
37
|
-
export type LocalMediaPushEvent = Readonly<{
|
|
38
|
-
type: 'upload_started';
|
|
39
|
-
item: LocalMediaPushItemReport;
|
|
40
|
-
}> | Readonly<{
|
|
41
|
-
type: 'upload_succeeded';
|
|
42
|
-
item: LocalMediaPushItemReport;
|
|
43
|
-
}> | Readonly<{
|
|
44
|
-
type: 'upload_failed';
|
|
45
|
-
item: LocalMediaPushItemReport;
|
|
46
|
-
}>;
|
|
47
|
-
export type LocalMediaPushResult = {
|
|
48
|
-
content: LocalContent;
|
|
49
|
-
manifest: LocalMediaManifest;
|
|
50
|
-
summary: LocalMediaPushSummary;
|
|
51
|
-
report: LocalMediaPushReport;
|
|
52
|
-
warnings: string[];
|
|
53
|
-
errors: string[];
|
|
54
|
-
hasChanges: boolean;
|
|
55
|
-
};
|
|
56
|
-
export type LocalMediaPullSummary = {
|
|
57
|
-
totalReferences: number;
|
|
58
|
-
identifiersAssigned: number;
|
|
59
|
-
downloaded: number;
|
|
60
|
-
skipped: number;
|
|
61
|
-
pendingDownloads: number;
|
|
62
|
-
};
|
|
63
|
-
export type LocalMediaPullResult = {
|
|
64
|
-
content: PulledContent;
|
|
65
|
-
manifest: LocalMediaManifest;
|
|
66
|
-
summary: LocalMediaPullSummary;
|
|
67
|
-
warnings: string[];
|
|
68
|
-
};
|
|
69
|
-
type SyncLocalMediaForPushOptions = {
|
|
70
|
-
contentDir: string;
|
|
71
|
-
content: LocalContent;
|
|
72
|
-
client: ManagementClient;
|
|
73
|
-
dryRun: boolean;
|
|
74
|
-
forceUpdateAsset?: boolean;
|
|
75
|
-
targetEnv?: string;
|
|
76
|
-
onEvent?: (event: LocalMediaPushEvent) => void;
|
|
77
|
-
};
|
|
78
|
-
type SyncLocalMediaForPullOptions = {
|
|
79
|
-
contentDir: string;
|
|
80
|
-
content: PulledContent;
|
|
81
|
-
client: ManagementClient;
|
|
82
|
-
dryRun: boolean;
|
|
83
|
-
allowCmsWrites?: boolean;
|
|
84
|
-
supabaseUrl?: string;
|
|
85
|
-
siteId?: string;
|
|
86
|
-
downloadFiles: boolean;
|
|
87
|
-
};
|
|
88
|
-
export declare function classifyLocalMediaUploadFailure(error: unknown): LocalMediaUploadFailureKind;
|
|
89
|
-
export declare function syncLocalMediaForPush(options: SyncLocalMediaForPushOptions): Promise<LocalMediaPushResult>;
|
|
90
|
-
export declare function syncLocalMediaForPull(options: SyncLocalMediaForPullOptions): Promise<LocalMediaPullResult>;
|
|
91
|
-
export {};
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Strip environment-specific media fields from a payload in-place.
|
|
3
|
-
*
|
|
4
|
-
* This makes pulled/persisted JSON portable across CMS DBs by removing:
|
|
5
|
-
* - `assetId` (DB-specific)
|
|
6
|
-
* - `storagePath`/`storageBucket` (storage-specific)
|
|
7
|
-
* - `src` when it’s derived from CMS storage (i.e. when identifier/asset fields exist)
|
|
8
|
-
*
|
|
9
|
-
* Note: external URL-only media (no identifier/asset fields) keeps `src`.
|
|
10
|
-
*/
|
|
11
|
-
export declare function stripEnvSpecificMediaFieldsInPlace(value: unknown): void;
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
type AnyRecord = Record<string, unknown>;
|
|
2
|
-
export type RichTextImageAttrsRef = {
|
|
3
|
-
attrs: AnyRecord;
|
|
4
|
-
location: string;
|
|
5
|
-
};
|
|
6
|
-
/**
|
|
7
|
-
* Walk any JSON-like payload and collect TipTap rich text image node attrs.
|
|
8
|
-
*
|
|
9
|
-
* TipTap nodes look like: { type: 'image', attrs: { src?: string, identifier?: string, ... } }
|
|
10
|
-
*/
|
|
11
|
-
export declare function collectRichTextImageAttrs(value: unknown, out?: RichTextImageAttrsRef[], location?: string): RichTextImageAttrsRef[];
|
|
12
|
-
export {};
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import type { ManagementMediaAsset } from '../../client/management/types';
|
|
2
|
-
import type { MediaValue } from './identifiers';
|
|
3
|
-
/**
|
|
4
|
-
* Normalize a media identifier to the canonical slug form.
|
|
5
|
-
* Returns null when the raw value is empty or invalid.
|
|
6
|
-
*/
|
|
7
|
-
export declare const normalizeMediaIdentifierInput: (raw: string) => string | null;
|
|
8
|
-
/**
|
|
9
|
-
* Normalize a media value to the portable identifier-only representation.
|
|
10
|
-
*
|
|
11
|
-
* This mutates the original media value in-place by:
|
|
12
|
-
* - setting `identifier` (required)
|
|
13
|
-
* - removing env-specific fields (`assetId`, `storagePath`, `storageBucket`, `src`, `mimeType`)
|
|
14
|
-
*/
|
|
15
|
-
export declare const normalizeMediaValueToIdentifierOnly: (value: MediaValue, identifier: string, asset?: Pick<ManagementMediaAsset, "width" | "height"> | null) => void;
|
|
@@ -1,52 +0,0 @@
|
|
|
1
|
-
import type { ManagementClient } from '../../client/management';
|
|
2
|
-
import type { LocalContent } from '../content/reader';
|
|
3
|
-
type DiagnosticSeverity = 'error' | 'warning' | 'info';
|
|
4
|
-
export declare const MEDIA_GUARD_DIAGNOSTIC_CODES: readonly ["missing_identifier", "invalid_identifier", "unresolved_identifier", "resolution_api_error", "identifier_normalized", "legacy_fields_stripped"];
|
|
5
|
-
export type MediaGuardDiagnosticCode = typeof MEDIA_GUARD_DIAGNOSTIC_CODES[number];
|
|
6
|
-
export interface MediaGuardDiagnostic {
|
|
7
|
-
code: MediaGuardDiagnosticCode;
|
|
8
|
-
severity: DiagnosticSeverity;
|
|
9
|
-
message: string;
|
|
10
|
-
location: string;
|
|
11
|
-
identifier?: string;
|
|
12
|
-
details?: Record<string, string>;
|
|
13
|
-
}
|
|
14
|
-
export type MediaWritePolicy = {
|
|
15
|
-
mode: 'resolve-or-reject';
|
|
16
|
-
client: ManagementClient;
|
|
17
|
-
} | {
|
|
18
|
-
mode: 'reject-only';
|
|
19
|
-
};
|
|
20
|
-
export declare const MEDIA_GUARD_BYPASS_ENV_VAR = "RIVERBANK_SKIP_MEDIA_GUARD";
|
|
21
|
-
export declare const isMediaGuardBypassed: () => boolean;
|
|
22
|
-
export interface MediaWriteGuardResult<TPayload> {
|
|
23
|
-
payload: TPayload;
|
|
24
|
-
diagnostics: MediaGuardDiagnostic[];
|
|
25
|
-
hasBlockingErrors: boolean;
|
|
26
|
-
}
|
|
27
|
-
export type MediaValidationResult = {
|
|
28
|
-
skipped: true;
|
|
29
|
-
warning: string;
|
|
30
|
-
} | {
|
|
31
|
-
skipped: false;
|
|
32
|
-
diagnostics: MediaGuardDiagnostic[];
|
|
33
|
-
hasBlockingErrors: boolean;
|
|
34
|
-
};
|
|
35
|
-
export declare const formatMediaGuardDiagnostic: (diagnostic: MediaGuardDiagnostic) => string;
|
|
36
|
-
export declare function buildEntryGuardContent(contentType: string, identifier: string, data: Record<string, unknown>): LocalContent;
|
|
37
|
-
export declare function buildBlockGuardContent(pageIdentifier: string, blockIdentifier: string, blockKind: string, data: Record<string, unknown>): LocalContent;
|
|
38
|
-
export declare function guardLocalContentMediaWrites(content: LocalContent, policy: MediaWritePolicy): Promise<MediaWriteGuardResult<LocalContent>>;
|
|
39
|
-
export declare function guardEntryDataForWrite(options: {
|
|
40
|
-
contentType: string;
|
|
41
|
-
identifier: string;
|
|
42
|
-
data: Record<string, unknown>;
|
|
43
|
-
policy: MediaWritePolicy;
|
|
44
|
-
}): Promise<MediaWriteGuardResult<Record<string, unknown>>>;
|
|
45
|
-
export declare function guardBlockDataForWrite(options: {
|
|
46
|
-
pageIdentifier: string;
|
|
47
|
-
blockIdentifier: string;
|
|
48
|
-
blockKind: string;
|
|
49
|
-
data: Record<string, unknown>;
|
|
50
|
-
policy: MediaWritePolicy;
|
|
51
|
-
}): Promise<MediaWriteGuardResult<Record<string, unknown>>>;
|
|
52
|
-
export {};
|
|
@@ -1,78 +0,0 @@
|
|
|
1
|
-
import type { LocalEntry } from '../content/reader';
|
|
2
|
-
export type EntryMergeSubject = Readonly<{
|
|
3
|
-
contentType: string;
|
|
4
|
-
identifier: string;
|
|
5
|
-
}>;
|
|
6
|
-
export type EntryMergeInputs = Readonly<{
|
|
7
|
-
subject: EntryMergeSubject;
|
|
8
|
-
base: LocalEntry | null;
|
|
9
|
-
local: LocalEntry | null;
|
|
10
|
-
remote: LocalEntry | null;
|
|
11
|
-
}>;
|
|
12
|
-
export type EntryMergeConflict = Readonly<{
|
|
13
|
-
code: 'missing_base';
|
|
14
|
-
subject: EntryMergeSubject;
|
|
15
|
-
message: string;
|
|
16
|
-
}> | Readonly<{
|
|
17
|
-
code: 'same_field_changed';
|
|
18
|
-
subject: EntryMergeSubject;
|
|
19
|
-
fieldPath: string;
|
|
20
|
-
message: string;
|
|
21
|
-
}> | Readonly<{
|
|
22
|
-
code: 'local_delete_remote_edit';
|
|
23
|
-
subject: EntryMergeSubject;
|
|
24
|
-
message: string;
|
|
25
|
-
}> | Readonly<{
|
|
26
|
-
code: 'remote_delete_local_edit';
|
|
27
|
-
subject: EntryMergeSubject;
|
|
28
|
-
message: string;
|
|
29
|
-
}> | Readonly<{
|
|
30
|
-
code: 'unsupported_nested_merge';
|
|
31
|
-
subject: EntryMergeSubject;
|
|
32
|
-
fieldPath: string;
|
|
33
|
-
message: string;
|
|
34
|
-
}>;
|
|
35
|
-
export type EntryMergeDecision = Readonly<{
|
|
36
|
-
kind: 'unchanged';
|
|
37
|
-
subject: EntryMergeSubject;
|
|
38
|
-
desired: LocalEntry | null;
|
|
39
|
-
}> | Readonly<{
|
|
40
|
-
kind: 'bootstrap_base';
|
|
41
|
-
subject: EntryMergeSubject;
|
|
42
|
-
desired: LocalEntry;
|
|
43
|
-
}> | Readonly<{
|
|
44
|
-
kind: 'preserve_remote';
|
|
45
|
-
subject: EntryMergeSubject;
|
|
46
|
-
desired: LocalEntry | null;
|
|
47
|
-
}> | Readonly<{
|
|
48
|
-
kind: 'apply_local_create' | 'apply_local_update';
|
|
49
|
-
subject: EntryMergeSubject;
|
|
50
|
-
desired: LocalEntry;
|
|
51
|
-
}> | Readonly<{
|
|
52
|
-
kind: 'apply_local_delete';
|
|
53
|
-
subject: EntryMergeSubject;
|
|
54
|
-
desired: null;
|
|
55
|
-
}> | Readonly<{
|
|
56
|
-
kind: 'auto_merge';
|
|
57
|
-
subject: EntryMergeSubject;
|
|
58
|
-
desired: LocalEntry;
|
|
59
|
-
localFieldPaths: readonly string[];
|
|
60
|
-
remoteFieldPaths: readonly string[];
|
|
61
|
-
}> | Readonly<{
|
|
62
|
-
kind: 'conflict';
|
|
63
|
-
subject: EntryMergeSubject;
|
|
64
|
-
conflict: EntryMergeConflict;
|
|
65
|
-
}>;
|
|
66
|
-
export type ComparableEntry = Readonly<{
|
|
67
|
-
identifier: string;
|
|
68
|
-
slug?: string;
|
|
69
|
-
status?: LocalEntry['status'];
|
|
70
|
-
hasUnpublishedChanges?: boolean;
|
|
71
|
-
data: Readonly<Record<string, unknown>>;
|
|
72
|
-
blocks?: Readonly<Record<string, unknown>>;
|
|
73
|
-
}>;
|
|
74
|
-
export type ComparableEntryContent = Pick<ComparableEntry, 'identifier' | 'slug' | 'data' | 'blocks'>;
|
|
75
|
-
export declare function planEntryMerge(input: EntryMergeInputs): EntryMergeDecision;
|
|
76
|
-
export declare function comparableEntry(entry: LocalEntry | null): ComparableEntry | null;
|
|
77
|
-
export declare function comparableEntryContent(entry: LocalEntry | null): ComparableEntryContent | null;
|
|
78
|
-
export declare function entryContentsEqual(left: LocalEntry | null, right: LocalEntry | null): boolean;
|
|
@@ -1,45 +0,0 @@
|
|
|
1
|
-
import type { PulledEntries } from '../../client/management/types';
|
|
2
|
-
import type { LocalEntry } from '../content/reader';
|
|
3
|
-
import { type EntryBaseSnapshotTarget } from './entrySnapshots';
|
|
4
|
-
import { type EntryMergeDecision } from './entryMerge';
|
|
5
|
-
export type EntryMergePushScope = Readonly<{
|
|
6
|
-
kind: 'all_entries';
|
|
7
|
-
}> | Readonly<{
|
|
8
|
-
kind: 'content_type';
|
|
9
|
-
contentType: string;
|
|
10
|
-
}> | Readonly<{
|
|
11
|
-
kind: 'single_entry';
|
|
12
|
-
contentType: string;
|
|
13
|
-
identifier: string;
|
|
14
|
-
}>;
|
|
15
|
-
export type RemoteEntryMergePlan = Readonly<{
|
|
16
|
-
scope: EntryMergePushScope;
|
|
17
|
-
decisions: readonly EntryMergeDecision[];
|
|
18
|
-
summary: RemoteEntryMergePlanSummary;
|
|
19
|
-
}>;
|
|
20
|
-
export type RemoteEntryMergePlanSummary = Readonly<{
|
|
21
|
-
unchanged: number;
|
|
22
|
-
bootstrapBase: number;
|
|
23
|
-
preserveRemote: number;
|
|
24
|
-
applyLocalCreate: number;
|
|
25
|
-
applyLocalUpdate: number;
|
|
26
|
-
applyLocalDelete: number;
|
|
27
|
-
autoMerge: number;
|
|
28
|
-
conflicts: number;
|
|
29
|
-
}>;
|
|
30
|
-
export type RemoteEntryMergePlanInput = Readonly<{
|
|
31
|
-
contentDir: string;
|
|
32
|
-
target: EntryBaseSnapshotTarget;
|
|
33
|
-
scope: EntryMergePushScope;
|
|
34
|
-
localEntries: ReadonlyMap<string, readonly LocalEntry[]>;
|
|
35
|
-
remoteEntries: RemoteEntriesByType;
|
|
36
|
-
}>;
|
|
37
|
-
export type RemoteEntriesByType = ReadonlyMap<string, ReadonlyArray<PulledEntries['entries'][number]>>;
|
|
38
|
-
export declare function buildRemoteEntryMergePlan(input: RemoteEntryMergePlanInput): Promise<RemoteEntryMergePlan>;
|
|
39
|
-
export declare function summarizeEntryMergeDecisions(decisions: readonly EntryMergeDecision[]): RemoteEntryMergePlanSummary;
|
|
40
|
-
export declare function entryMergePushScope(input: Readonly<{
|
|
41
|
-
contentType?: string;
|
|
42
|
-
identifier?: string;
|
|
43
|
-
}>): EntryMergePushScope;
|
|
44
|
-
export declare function remotePulledEntriesByType(entries: Readonly<Record<string, PulledEntries['entries']>>): RemoteEntriesByType;
|
|
45
|
-
export declare function pulledEntriesToRemoteByType(contentType: string, entries: PulledEntries['entries']): RemoteEntriesByType;
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
import { type SiteId } from '../../../../core/src/index';
|
|
2
|
-
import type { ManagementClient } from '../../client/management/types';
|
|
3
|
-
import type { ContentMetadataTarget } from '../content/metadataStore';
|
|
4
|
-
import type { LocalEntry } from '../content/reader';
|
|
5
|
-
import type { EnvTarget } from '../helpers';
|
|
6
|
-
import type { OutputContext } from '../output';
|
|
7
|
-
export type RemoteEntryMergePushResult = Readonly<{
|
|
8
|
-
success: boolean;
|
|
9
|
-
}>;
|
|
10
|
-
export declare function planAndReportRemoteEntryMerge(input: Readonly<{
|
|
11
|
-
output: OutputContext;
|
|
12
|
-
client: Pick<ManagementClient, 'entries' | 'pull'>;
|
|
13
|
-
contentDir: string;
|
|
14
|
-
target: EnvTarget;
|
|
15
|
-
siteId: SiteId;
|
|
16
|
-
metadataTarget: ContentMetadataTarget;
|
|
17
|
-
contentType?: string;
|
|
18
|
-
identifier?: string;
|
|
19
|
-
localEntries: ReadonlyMap<string, readonly LocalEntry[]>;
|
|
20
|
-
dryRun: boolean;
|
|
21
|
-
jsonOutput: boolean;
|
|
22
|
-
jsonDiff: boolean;
|
|
23
|
-
skipMeta: boolean;
|
|
24
|
-
}>): Promise<RemoteEntryMergePushResult>;
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
import type { OutputContext } from '../output';
|
|
2
|
-
import type { EntryMergeDecision } from './entryMerge';
|
|
3
|
-
import type { RemoteEntryMergePlan } from './entryMergePlan';
|
|
4
|
-
import { type RemoteMergeDecisionReport, type RemoteMergeJsonReport } from './sharedMergeReport';
|
|
5
|
-
type RemoteEntryMergeSubjectJson = Readonly<{
|
|
6
|
-
contentType: string;
|
|
7
|
-
identifier: string;
|
|
8
|
-
}>;
|
|
9
|
-
export type RemoteEntryMergeDecisionReport = RemoteMergeDecisionReport<EntryMergeDecision, RemoteEntryMergeSubjectJson>;
|
|
10
|
-
export type RemoteEntryMergeJsonReport = RemoteMergeJsonReport<'entries', RemoteEntryMergePlan['summary'], EntryMergeDecision, RemoteEntryMergeSubjectJson>;
|
|
11
|
-
export declare function remoteEntryMergeJsonReport(input: Readonly<{
|
|
12
|
-
plan: RemoteEntryMergePlan;
|
|
13
|
-
dryRun: boolean;
|
|
14
|
-
}>): RemoteEntryMergeJsonReport;
|
|
15
|
-
export declare function writeRemoteEntryMergeHumanReport(output: Pick<OutputContext, 'info'>, plan: RemoteEntryMergePlan, options: Readonly<{
|
|
16
|
-
dryRun: boolean;
|
|
17
|
-
}>): void;
|
|
18
|
-
export {};
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import type { ManagementClient, PulledEntries } from '../../client/management/types';
|
|
2
|
-
import type { OutputContext } from '../output';
|
|
3
|
-
import { type EntryMergePushScope, type RemoteEntriesByType } from './entryMergePlan';
|
|
4
|
-
export declare function fetchRemoteEntriesForMerge(input: Readonly<{
|
|
5
|
-
client: Pick<ManagementClient, 'pull'>;
|
|
6
|
-
scope: EntryMergePushScope;
|
|
7
|
-
output: Pick<OutputContext, 'info' | 'warn'>;
|
|
8
|
-
}>): Promise<RemoteEntriesByType>;
|
|
9
|
-
export declare function fetchRemotePulledEntriesForContentType(client: Pick<ManagementClient, 'pull'>, contentType: string, output: Pick<OutputContext, 'info'>): Promise<PulledEntries>;
|
|
@@ -1,48 +0,0 @@
|
|
|
1
|
-
import type { PulledEntries } from '../../client/management/types';
|
|
2
|
-
import type { EntryForOutput, EnvTarget } from '../helpers';
|
|
3
|
-
import type { LocalEntry } from '../content/reader';
|
|
4
|
-
import { type BaseSnapshotTarget } from './sharedBaseSnapshots';
|
|
5
|
-
export type EntryBaseSnapshotTarget = BaseSnapshotTarget;
|
|
6
|
-
export type EntryBaseSnapshotSubject = Readonly<{
|
|
7
|
-
contentType: string;
|
|
8
|
-
identifier: string;
|
|
9
|
-
}>;
|
|
10
|
-
export type EntryBaseSnapshot = Readonly<{
|
|
11
|
-
version: 'entry-base.v1';
|
|
12
|
-
target: Readonly<{
|
|
13
|
-
env: EnvTarget;
|
|
14
|
-
siteIdHash: string;
|
|
15
|
-
}>;
|
|
16
|
-
subject: EntryBaseSnapshotSubject;
|
|
17
|
-
pulledAt: string;
|
|
18
|
-
remoteVersion: Readonly<{
|
|
19
|
-
createdAt?: string;
|
|
20
|
-
updatedAt?: string;
|
|
21
|
-
publishedAt?: string | null;
|
|
22
|
-
}>;
|
|
23
|
-
entry: LocalEntry;
|
|
24
|
-
}>;
|
|
25
|
-
export type WriteEntryBaseSnapshotsInput = Readonly<{
|
|
26
|
-
contentDir: string;
|
|
27
|
-
target: EntryBaseSnapshotTarget;
|
|
28
|
-
contentType: string;
|
|
29
|
-
entries: EntryForOutput[];
|
|
30
|
-
meta: PulledEntries['meta'];
|
|
31
|
-
cleanupMissing?: boolean;
|
|
32
|
-
}>;
|
|
33
|
-
export type WriteEntryBaseSnapshotsResult = Readonly<{
|
|
34
|
-
rootDir: string;
|
|
35
|
-
count: number;
|
|
36
|
-
}>;
|
|
37
|
-
export declare function entryBaseSnapshotRoot(contentDir: string): string;
|
|
38
|
-
export declare function entryBaseSnapshotPath(input: Readonly<{
|
|
39
|
-
contentDir: string;
|
|
40
|
-
target: EntryBaseSnapshotTarget;
|
|
41
|
-
subject: EntryBaseSnapshotSubject;
|
|
42
|
-
}>): string;
|
|
43
|
-
export declare function writeEntryBaseSnapshots(input: WriteEntryBaseSnapshotsInput): Promise<WriteEntryBaseSnapshotsResult>;
|
|
44
|
-
export declare function readEntryBaseSnapshot(input: Readonly<{
|
|
45
|
-
contentDir: string;
|
|
46
|
-
target: EntryBaseSnapshotTarget;
|
|
47
|
-
subject: EntryBaseSnapshotSubject;
|
|
48
|
-
}>): Promise<EntryBaseSnapshot | null>;
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
export type ScalarMergeChangeValue = string | number | boolean | null | undefined;
|
|
2
|
-
export type MergeChange = Readonly<{
|
|
3
|
-
path: string;
|
|
4
|
-
}> & (Readonly<{
|
|
5
|
-
value: ScalarMergeChangeValue;
|
|
6
|
-
containerKind: 'scalar' | 'null';
|
|
7
|
-
}> | Readonly<{
|
|
8
|
-
value: Record<string, unknown>;
|
|
9
|
-
containerKind: 'object';
|
|
10
|
-
}> | Readonly<{
|
|
11
|
-
value: readonly unknown[];
|
|
12
|
-
containerKind: 'array';
|
|
13
|
-
}>);
|
|
14
|
-
export type ScalarMergeChange = Extract<MergeChange, {
|
|
15
|
-
containerKind: 'scalar' | 'null';
|
|
16
|
-
}>;
|
|
17
|
-
export declare function collectMergeChanges(currentPath: string, base: unknown, next: unknown, changes: Map<string, MergeChange>): void;
|
|
18
|
-
export declare function firstNestedContainerChange<TChange extends MergeChange>(localChanges: ReadonlyMap<string, TChange>, remoteChanges: ReadonlyMap<string, TChange>): TChange | null;
|
|
19
|
-
export declare function firstSameFieldConflictPath(localChanges: ReadonlyMap<string, MergeChange>, remoteChanges: ReadonlyMap<string, MergeChange>): string | null;
|
|
20
|
-
export declare function scalarMergeChanges<TChange extends MergeChange>(changes: ReadonlyMap<string, TChange>, label: string): readonly Extract<TChange, {
|
|
21
|
-
containerKind: 'scalar' | 'null';
|
|
22
|
-
}>[];
|
|
@@ -1,78 +0,0 @@
|
|
|
1
|
-
import type { LocalPage } from '../content/reader';
|
|
2
|
-
export type PageMergeSubject = Readonly<{
|
|
3
|
-
identifier: string;
|
|
4
|
-
}>;
|
|
5
|
-
export type PageMergeInputs = Readonly<{
|
|
6
|
-
subject: PageMergeSubject;
|
|
7
|
-
base: LocalPage | null;
|
|
8
|
-
local: LocalPage | null;
|
|
9
|
-
remote: LocalPage | null;
|
|
10
|
-
}>;
|
|
11
|
-
export type PageMergeConflict = Readonly<{
|
|
12
|
-
code: 'missing_base';
|
|
13
|
-
subject: PageMergeSubject;
|
|
14
|
-
message: string;
|
|
15
|
-
}> | Readonly<{
|
|
16
|
-
code: 'same_field_changed';
|
|
17
|
-
subject: PageMergeSubject;
|
|
18
|
-
fieldPath: string;
|
|
19
|
-
message: string;
|
|
20
|
-
}> | Readonly<{
|
|
21
|
-
code: 'local_delete_unsupported';
|
|
22
|
-
subject: PageMergeSubject;
|
|
23
|
-
message: string;
|
|
24
|
-
}> | Readonly<{
|
|
25
|
-
code: 'remote_delete_local_edit';
|
|
26
|
-
subject: PageMergeSubject;
|
|
27
|
-
message: string;
|
|
28
|
-
}> | Readonly<{
|
|
29
|
-
code: 'unsupported_nested_merge';
|
|
30
|
-
subject: PageMergeSubject;
|
|
31
|
-
fieldPath: string;
|
|
32
|
-
message: string;
|
|
33
|
-
}>;
|
|
34
|
-
export type PageMergeDecision = Readonly<{
|
|
35
|
-
kind: 'unchanged';
|
|
36
|
-
subject: PageMergeSubject;
|
|
37
|
-
desired: LocalPage | null;
|
|
38
|
-
}> | Readonly<{
|
|
39
|
-
kind: 'bootstrap_base';
|
|
40
|
-
subject: PageMergeSubject;
|
|
41
|
-
desired: LocalPage;
|
|
42
|
-
}> | Readonly<{
|
|
43
|
-
kind: 'preserve_remote';
|
|
44
|
-
subject: PageMergeSubject;
|
|
45
|
-
desired: LocalPage | null;
|
|
46
|
-
}> | Readonly<{
|
|
47
|
-
kind: 'apply_local_create' | 'apply_local_update';
|
|
48
|
-
subject: PageMergeSubject;
|
|
49
|
-
desired: LocalPage;
|
|
50
|
-
}> | Readonly<{
|
|
51
|
-
kind: 'auto_merge';
|
|
52
|
-
subject: PageMergeSubject;
|
|
53
|
-
desired: LocalPage;
|
|
54
|
-
localFieldPaths: readonly string[];
|
|
55
|
-
remoteFieldPaths: readonly string[];
|
|
56
|
-
}> | Readonly<{
|
|
57
|
-
kind: 'conflict';
|
|
58
|
-
subject: PageMergeSubject;
|
|
59
|
-
conflict: PageMergeConflict;
|
|
60
|
-
}>;
|
|
61
|
-
export type ComparablePage = Readonly<{
|
|
62
|
-
identifier: string;
|
|
63
|
-
title: string;
|
|
64
|
-
path: string;
|
|
65
|
-
status?: LocalPage['status'];
|
|
66
|
-
hasUnpublishedChanges?: boolean;
|
|
67
|
-
seoTitle?: string;
|
|
68
|
-
seoDescription?: string;
|
|
69
|
-
blocks?: ReadonlyArray<Readonly<{
|
|
70
|
-
identifier: string;
|
|
71
|
-
kind: string;
|
|
72
|
-
position?: number;
|
|
73
|
-
data: Readonly<Record<string, unknown>>;
|
|
74
|
-
}>>;
|
|
75
|
-
}>;
|
|
76
|
-
export declare function planPageMerge(input: PageMergeInputs): PageMergeDecision;
|
|
77
|
-
export declare function comparablePage(page: LocalPage | null): ComparablePage | null;
|
|
78
|
-
export declare function pagesEqual(left: LocalPage | null, right: LocalPage | null): boolean;
|
|
@@ -1,36 +0,0 @@
|
|
|
1
|
-
import type { PulledPages } from '../../client/management/types';
|
|
2
|
-
import type { LocalPage } from '../content/reader';
|
|
3
|
-
import { type PageMergeDecision } from './pageMerge';
|
|
4
|
-
import { type PageBaseSnapshotTarget } from './pageSnapshots';
|
|
5
|
-
export type PageMergePushScope = Readonly<{
|
|
6
|
-
kind: 'all_pages';
|
|
7
|
-
}> | Readonly<{
|
|
8
|
-
kind: 'single_page';
|
|
9
|
-
identifier: string;
|
|
10
|
-
}>;
|
|
11
|
-
export type RemotePageMergePlan = Readonly<{
|
|
12
|
-
scope: PageMergePushScope;
|
|
13
|
-
decisions: readonly PageMergeDecision[];
|
|
14
|
-
summary: RemotePageMergePlanSummary;
|
|
15
|
-
}>;
|
|
16
|
-
export type RemotePageMergePlanSummary = Readonly<{
|
|
17
|
-
unchanged: number;
|
|
18
|
-
bootstrapBase: number;
|
|
19
|
-
preserveRemote: number;
|
|
20
|
-
applyLocalCreate: number;
|
|
21
|
-
applyLocalUpdate: number;
|
|
22
|
-
autoMerge: number;
|
|
23
|
-
conflicts: number;
|
|
24
|
-
}>;
|
|
25
|
-
export type RemotePageMergePlanInput = Readonly<{
|
|
26
|
-
contentDir: string;
|
|
27
|
-
target: PageBaseSnapshotTarget;
|
|
28
|
-
scope: PageMergePushScope;
|
|
29
|
-
localPages: readonly LocalPage[];
|
|
30
|
-
remotePages: readonly PulledPages['pages'][number][];
|
|
31
|
-
}>;
|
|
32
|
-
export declare function buildRemotePageMergePlan(input: RemotePageMergePlanInput): Promise<RemotePageMergePlan>;
|
|
33
|
-
export declare function summarizePageMergeDecisions(decisions: readonly PageMergeDecision[]): RemotePageMergePlanSummary;
|
|
34
|
-
export declare function pageMergePushScope(input: Readonly<{
|
|
35
|
-
identifier?: string;
|
|
36
|
-
}>): PageMergePushScope;
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
import type { SiteId } from '../../../../core/src/index';
|
|
2
|
-
import type { ManagementClient } from '../../client/management/types';
|
|
3
|
-
import type { ContentMetadataTarget } from '../content/metadataStore';
|
|
4
|
-
import type { LocalPage } from '../content/reader';
|
|
5
|
-
import type { EnvTarget } from '../helpers';
|
|
6
|
-
import type { OutputContext } from '../output';
|
|
7
|
-
export type RemotePageMergePushResult = Readonly<{
|
|
8
|
-
success: boolean;
|
|
9
|
-
}>;
|
|
10
|
-
export declare function planAndReportRemotePageMerge(input: Readonly<{
|
|
11
|
-
output: OutputContext;
|
|
12
|
-
client: Pick<ManagementClient, 'pages' | 'blocks' | 'pull'>;
|
|
13
|
-
contentDir: string;
|
|
14
|
-
target: EnvTarget;
|
|
15
|
-
siteId: SiteId;
|
|
16
|
-
metadataTarget: ContentMetadataTarget;
|
|
17
|
-
identifier?: string;
|
|
18
|
-
localPages: readonly LocalPage[];
|
|
19
|
-
dryRun: boolean;
|
|
20
|
-
jsonOutput: boolean;
|
|
21
|
-
jsonDiff: boolean;
|
|
22
|
-
skipMeta: boolean;
|
|
23
|
-
}>): Promise<RemotePageMergePushResult>;
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
import type { OutputContext } from '../output';
|
|
2
|
-
import type { PageMergeDecision } from './pageMerge';
|
|
3
|
-
import type { RemotePageMergePlan } from './pageMergePlan';
|
|
4
|
-
import { type RemoteMergeDecisionReport, type RemoteMergeJsonReport } from './sharedMergeReport';
|
|
5
|
-
type RemotePageMergeSubjectJson = Readonly<{
|
|
6
|
-
identifier: string;
|
|
7
|
-
}>;
|
|
8
|
-
export type RemotePageMergeDecisionReport = RemoteMergeDecisionReport<PageMergeDecision, RemotePageMergeSubjectJson>;
|
|
9
|
-
export type RemotePageMergeJsonReport = RemoteMergeJsonReport<'pages', RemotePageMergePlan['summary'], PageMergeDecision, RemotePageMergeSubjectJson>;
|
|
10
|
-
export declare function remotePageMergeJsonReport(input: Readonly<{
|
|
11
|
-
plan: RemotePageMergePlan;
|
|
12
|
-
dryRun: boolean;
|
|
13
|
-
}>): RemotePageMergeJsonReport;
|
|
14
|
-
export declare function writeRemotePageMergeHumanReport(output: Pick<OutputContext, 'info'>, plan: RemotePageMergePlan, options: Readonly<{
|
|
15
|
-
dryRun: boolean;
|
|
16
|
-
}>): void;
|
|
17
|
-
export {};
|
|
@@ -1,46 +0,0 @@
|
|
|
1
|
-
import type { PulledPages } from '../../client/management/types';
|
|
2
|
-
import type { EnvTarget } from '../helpers';
|
|
3
|
-
import type { LocalPage } from '../content/reader';
|
|
4
|
-
import { type BaseSnapshotTarget } from './sharedBaseSnapshots';
|
|
5
|
-
export type PageBaseSnapshotTarget = BaseSnapshotTarget;
|
|
6
|
-
export type PageBaseSnapshotSubject = Readonly<{
|
|
7
|
-
identifier: string;
|
|
8
|
-
}>;
|
|
9
|
-
export type PageBaseSnapshot = Readonly<{
|
|
10
|
-
version: 'page-base.v1';
|
|
11
|
-
target: Readonly<{
|
|
12
|
-
env: EnvTarget;
|
|
13
|
-
siteIdHash: string;
|
|
14
|
-
}>;
|
|
15
|
-
subject: PageBaseSnapshotSubject;
|
|
16
|
-
pulledAt: string;
|
|
17
|
-
remoteVersion: Readonly<{
|
|
18
|
-
createdAt?: string;
|
|
19
|
-
updatedAt?: string;
|
|
20
|
-
publishedAt?: string | null;
|
|
21
|
-
}>;
|
|
22
|
-
page: LocalPage;
|
|
23
|
-
}>;
|
|
24
|
-
export type WritePageBaseSnapshotsInput = Readonly<{
|
|
25
|
-
contentDir: string;
|
|
26
|
-
target: PageBaseSnapshotTarget;
|
|
27
|
-
pages: PulledPages['pages'];
|
|
28
|
-
meta: PulledPages['meta'];
|
|
29
|
-
cleanupMissing?: boolean;
|
|
30
|
-
}>;
|
|
31
|
-
export type WritePageBaseSnapshotsResult = Readonly<{
|
|
32
|
-
rootDir: string;
|
|
33
|
-
count: number;
|
|
34
|
-
}>;
|
|
35
|
-
export declare function pageBaseSnapshotRoot(contentDir: string): string;
|
|
36
|
-
export declare function pageBaseSnapshotPath(input: Readonly<{
|
|
37
|
-
contentDir: string;
|
|
38
|
-
target: PageBaseSnapshotTarget;
|
|
39
|
-
subject: PageBaseSnapshotSubject;
|
|
40
|
-
}>): string;
|
|
41
|
-
export declare function writePageBaseSnapshots(input: WritePageBaseSnapshotsInput): Promise<WritePageBaseSnapshotsResult>;
|
|
42
|
-
export declare function readPageBaseSnapshot(input: Readonly<{
|
|
43
|
-
contentDir: string;
|
|
44
|
-
target: PageBaseSnapshotTarget;
|
|
45
|
-
subject: PageBaseSnapshotSubject;
|
|
46
|
-
}>): Promise<PageBaseSnapshot | null>;
|