chore: cleanup of allium specs
This commit is contained in:
@@ -8,6 +8,13 @@ use "./media.allium" as media
|
|||||||
use "./script.allium" as script
|
use "./script.allium" as script
|
||||||
use "./template.allium" as template
|
use "./template.allium" as template
|
||||||
|
|
||||||
|
enum ProposalStatus {
|
||||||
|
pending
|
||||||
|
accepted
|
||||||
|
discarded
|
||||||
|
expired
|
||||||
|
}
|
||||||
|
|
||||||
entity McpServer {
|
entity McpServer {
|
||||||
transport: http | stdio
|
transport: http | stdio
|
||||||
host: String -- 127.0.0.1 for HTTP
|
host: String -- 127.0.0.1 for HTTP
|
||||||
@@ -27,7 +34,7 @@ surface McpServerSurface {
|
|||||||
|
|
||||||
entity Proposal {
|
entity Proposal {
|
||||||
kind: draft_post | propose_script | propose_template | propose_media_metadata | propose_post_metadata
|
kind: draft_post | propose_script | propose_template | propose_media_metadata | propose_post_metadata
|
||||||
status: pending | accepted | discarded | expired
|
status: ProposalStatus
|
||||||
entity_id: String
|
entity_id: String
|
||||||
data: String
|
data: String
|
||||||
created_at: Timestamp
|
created_at: Timestamp
|
||||||
|
|||||||
@@ -5,6 +5,12 @@
|
|||||||
|
|
||||||
use "./project.allium" as project
|
use "./project.allium" as project
|
||||||
|
|
||||||
|
enum PostStatus {
|
||||||
|
draft
|
||||||
|
published
|
||||||
|
archived
|
||||||
|
}
|
||||||
|
|
||||||
value Slug {
|
value Slug {
|
||||||
value: String
|
value: String
|
||||||
|
|
||||||
@@ -81,7 +87,7 @@ entity Post {
|
|||||||
slug: Slug
|
slug: Slug
|
||||||
excerpt: String?
|
excerpt: String?
|
||||||
content: String?
|
content: String?
|
||||||
status: draft | published | archived
|
status: PostStatus
|
||||||
author: String?
|
author: String?
|
||||||
language: String?
|
language: String?
|
||||||
do_not_translate: Boolean
|
do_not_translate: Boolean
|
||||||
|
|||||||
@@ -5,12 +5,19 @@
|
|||||||
|
|
||||||
use "./metadata.allium" as meta
|
use "./metadata.allium" as meta
|
||||||
|
|
||||||
|
enum PublishJobStatus {
|
||||||
|
pending
|
||||||
|
running
|
||||||
|
completed
|
||||||
|
failed
|
||||||
|
}
|
||||||
|
|
||||||
entity PublishJob {
|
entity PublishJob {
|
||||||
ssh_host: String
|
ssh_host: String
|
||||||
ssh_user: String
|
ssh_user: String
|
||||||
ssh_remote_path: String
|
ssh_remote_path: String
|
||||||
ssh_mode: scp | rsync
|
ssh_mode: scp | rsync
|
||||||
status: pending | running | completed | failed
|
status: PublishJobStatus
|
||||||
|
|
||||||
transitions status {
|
transitions status {
|
||||||
pending -> running
|
pending -> running
|
||||||
|
|||||||
@@ -6,6 +6,27 @@
|
|||||||
-- This document specifies the persisted data model the rewrite must be able
|
-- This document specifies the persisted data model the rewrite must be able
|
||||||
-- to read and write. It is the ground truth for storage compatibility.
|
-- to read and write. It is the ground truth for storage compatibility.
|
||||||
|
|
||||||
|
enum PostStatus {
|
||||||
|
draft
|
||||||
|
published
|
||||||
|
archived
|
||||||
|
}
|
||||||
|
|
||||||
|
enum PostTranslationStatus {
|
||||||
|
draft
|
||||||
|
published
|
||||||
|
}
|
||||||
|
|
||||||
|
enum TemplateStatus {
|
||||||
|
draft
|
||||||
|
published
|
||||||
|
}
|
||||||
|
|
||||||
|
enum ScriptStatus {
|
||||||
|
draft
|
||||||
|
published
|
||||||
|
}
|
||||||
|
|
||||||
-- ============================================================================
|
-- ============================================================================
|
||||||
-- CORE ENTITIES
|
-- CORE ENTITIES
|
||||||
-- ============================================================================
|
-- ============================================================================
|
||||||
@@ -28,7 +49,7 @@ entity Post {
|
|||||||
slug: String -- URL-friendly identifier
|
slug: String -- URL-friendly identifier
|
||||||
excerpt: String? -- Optional summary
|
excerpt: String? -- Optional summary
|
||||||
content: String? -- Draft body (null when published)
|
content: String? -- Draft body (null when published)
|
||||||
status: draft | published | archived
|
status: PostStatus
|
||||||
author: String? -- Author name
|
author: String? -- Author name
|
||||||
created_at: Timestamp
|
created_at: Timestamp
|
||||||
updated_at: Timestamp
|
updated_at: Timestamp
|
||||||
@@ -57,7 +78,7 @@ entity PostTranslation {
|
|||||||
title: String
|
title: String
|
||||||
excerpt: String?
|
excerpt: String?
|
||||||
content: String? -- Draft body (null when published)
|
content: String? -- Draft body (null when published)
|
||||||
status: draft | published
|
status: PostTranslationStatus
|
||||||
created_at: Timestamp
|
created_at: Timestamp
|
||||||
updated_at: Timestamp
|
updated_at: Timestamp
|
||||||
published_at: Timestamp?
|
published_at: Timestamp?
|
||||||
@@ -118,7 +139,7 @@ entity Template {
|
|||||||
enabled: Boolean
|
enabled: Boolean
|
||||||
version: Integer -- Incremented on each update
|
version: Integer -- Incremented on each update
|
||||||
file_path: String -- templates/{slug}.liquid
|
file_path: String -- templates/{slug}.liquid
|
||||||
status: draft | published
|
status: TemplateStatus
|
||||||
content: String? -- Draft body (null when published)
|
content: String? -- Draft body (null when published)
|
||||||
created_at: Timestamp
|
created_at: Timestamp
|
||||||
updated_at: Timestamp
|
updated_at: Timestamp
|
||||||
@@ -134,7 +155,7 @@ entity Script {
|
|||||||
enabled: Boolean
|
enabled: Boolean
|
||||||
version: Integer -- Incremented on each update
|
version: Integer -- Incremented on each update
|
||||||
file_path: String -- scripts/{slug}.{extension}
|
file_path: String -- scripts/{slug}.{extension}
|
||||||
status: draft | published
|
status: ScriptStatus
|
||||||
content: String? -- Draft body (null when published)
|
content: String? -- Draft body (null when published)
|
||||||
created_at: Timestamp
|
created_at: Timestamp
|
||||||
updated_at: Timestamp
|
updated_at: Timestamp
|
||||||
|
|||||||
@@ -9,13 +9,18 @@ config {
|
|||||||
script_extension: String = "script"
|
script_extension: String = "script"
|
||||||
}
|
}
|
||||||
|
|
||||||
|
enum ScriptStatus {
|
||||||
|
draft
|
||||||
|
published
|
||||||
|
}
|
||||||
|
|
||||||
entity Script {
|
entity Script {
|
||||||
slug: String
|
slug: String
|
||||||
title: String
|
title: String
|
||||||
kind: macro | utility | transform
|
kind: macro | utility | transform
|
||||||
entrypoint: String -- default: "render" for macros
|
entrypoint: String -- default: "render" for macros
|
||||||
enabled: Boolean
|
enabled: Boolean
|
||||||
status: draft | published
|
status: ScriptStatus
|
||||||
content: String?
|
content: String?
|
||||||
version: Integer
|
version: Integer
|
||||||
file_path: String
|
file_path: String
|
||||||
|
|||||||
@@ -4,12 +4,17 @@
|
|||||||
-- Distilled from: src/main/engine/TemplateEngine.ts, PageRenderer.ts, schema.ts,
|
-- Distilled from: src/main/engine/TemplateEngine.ts, PageRenderer.ts, schema.ts,
|
||||||
-- bundled starter templates in src/main/engine/templates/
|
-- bundled starter templates in src/main/engine/templates/
|
||||||
|
|
||||||
|
enum TemplateStatus {
|
||||||
|
draft
|
||||||
|
published
|
||||||
|
}
|
||||||
|
|
||||||
entity Template {
|
entity Template {
|
||||||
slug: String
|
slug: String
|
||||||
title: String
|
title: String
|
||||||
kind: post | list | not_found | partial
|
kind: post | list | not_found | partial
|
||||||
enabled: Boolean
|
enabled: Boolean
|
||||||
status: draft | published
|
status: TemplateStatus
|
||||||
content: String?
|
content: String?
|
||||||
version: Integer
|
version: Integer
|
||||||
file_path: String
|
file_path: String
|
||||||
|
|||||||
@@ -7,6 +7,11 @@
|
|||||||
use "./post.allium" as post
|
use "./post.allium" as post
|
||||||
use "./media.allium" as media
|
use "./media.allium" as media
|
||||||
|
|
||||||
|
enum PostTranslationStatus {
|
||||||
|
draft
|
||||||
|
published
|
||||||
|
}
|
||||||
|
|
||||||
surface TranslationControlSurface {
|
surface TranslationControlSurface {
|
||||||
facing _: TranslationOperator
|
facing _: TranslationOperator
|
||||||
|
|
||||||
@@ -43,7 +48,7 @@ entity PostTranslation {
|
|||||||
title: String
|
title: String
|
||||||
excerpt: String?
|
excerpt: String?
|
||||||
content: String?
|
content: String?
|
||||||
status: draft | published
|
status: PostTranslationStatus
|
||||||
file_path: String
|
file_path: String
|
||||||
checksum: String?
|
checksum: String?
|
||||||
created_at: Timestamp
|
created_at: Timestamp
|
||||||
|
|||||||
Reference in New Issue
Block a user