From 8dfc4c21be98ed010a562d2880aa647139d55d7b Mon Sep 17 00:00:00 2001 From: tiye Date: Sun, 23 Aug 2026 02:40:20 +0800 Subject: [PATCH] fix: preserve struct definition schemas --- calcit.cirru | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/calcit.cirru b/calcit.cirru index 35e14d9..3fa05a7 100644 --- a/calcit.cirru +++ b/calcit.cirru @@ -1828,7 +1828,7 @@ :code $ quote defstruct Site (:storage-key 'String) (:archive-key 'String) :examples $ [] - :schema $ :: 'Enum + :schema $ :: 'StructDef |chrome-extension? $ %{} 'CodeEntry (:doc |) :code $ quote def chrome-extension? $ let @@ -2048,7 +2048,7 @@ :code $ quote defstruct ChatMessage (:role 'Tag) (:content 'String) (:thinking 'String) :examples $ [] - :schema $ :: 'Enum + :schema $ :: 'StructDef |ChatSession $ %{} 'CodeEntry (:doc |) :code $ quote defstruct ChatSession (:id 'String) (:created-at 'Number) @@ -2057,7 +2057,7 @@ :preview 'String :is-history? 'Bool :examples $ [] - :schema $ :: 'Enum + :schema $ :: 'StructDef |ChatState $ %{} 'CodeEntry (:doc |) :code $ quote defstruct ChatState (:answer 'Dynamic) (:loading? 'Bool) (:done? 'Bool) @@ -2065,12 +2065,12 @@ :model 'Dynamic :thinking 'Dynamic :examples $ [] - :schema $ :: 'Enum + :schema $ :: 'StructDef |MessageBoxState $ %{} 'CodeEntry (:doc |) :code $ quote defstruct MessageBoxState (:content 'String) (:search? 'Bool) (:think? 'Bool) (:focus-mode? 'Bool) :examples $ [] - :schema $ :: 'Enum + :schema $ :: 'StructDef |Store $ %{} 'CodeEntry (:doc |) :code $ quote defstruct Store (:states 'Map) @@ -2079,7 +2079,7 @@ :model 'Dynamic :archived-count 'Number :examples $ [] - :schema $ :: 'Enum + :schema $ :: 'StructDef |store $ %{} 'CodeEntry (:doc |) :code $ quote def store $ {}