chore: source formatting and spec allignment

This commit is contained in:
2026-07-18 14:20:23 +02:00
parent a594b99e90
commit 16a210c0ad
119 changed files with 8868 additions and 5250 deletions

View File

@@ -23,6 +23,7 @@ surface PreviewControlSurface {
provides:
StartPreviewRequested(project)
StopPreviewRequested(server)
OpenPreviewInBrowserRequested(project)
}
surface PreviewHttpSurface {
@@ -48,6 +49,14 @@ rule StopPreview {
ensures: server.is_running = false
}
rule OpenPreviewInBrowser {
when: OpenPreviewInBrowserRequested(project)
-- Starts or reuses the project's localhost preview server, then opens its
-- base URL in the external system browser. This is separate from the
-- post editor's internal preview pane (editor_post.allium EditorModes).
ensures: ExternalBrowserOpened(url: preview_base_url(project))
}
-- Route resolution
-- Preview renders all posts (published + draft) on-demand via Liquid templates.
-- Content priority: DB content (draft edits) over published .md file content.