From ca1b0c2d3e750a789e62df55ad7892a66ef85076 Mon Sep 17 00:00:00 2001 From: tiye Date: Fri, 13 Nov 2026 18:56:03 +0800 Subject: [PATCH 1/2] =?UTF-8?q?=E4=BF=9D=E7=95=99=20Msg=20Buffer=20?= =?UTF-8?q?=E4=BA=8B=E4=BB=B6=E8=A7=A3=E7=A0=81=E7=9A=84=E8=BE=93=E5=85=A5?= =?UTF-8?q?=E7=B1=BB=E5=9E=8B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- calcit.cirru | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/calcit.cirru b/calcit.cirru index eed873e..6ed0da2 100644 --- a/calcit.cirru +++ b/calcit.cirru @@ -2304,7 +2304,8 @@ 'normalize-event $ %{} 'CodeEntry (:doc |) :code $ quote $ defn normalize-event (raw) if - = (enum-definition raw) (Some schema/DispatchOp) + and (enum? raw) + = (enum-definition raw) (Some schema/DispatchOp) decode-map-as raw app.schema/DispatchOp match raw (:states cursor data) @@ -2313,7 +2314,7 @@ , data _ $ do (eprintln "|unknown op:" raw) (schema/DispatchOp :unhandled) :examples $ [] - :schema $ quote $ Fn AnyEnum (-> schema/DispatchOp) (:open :decode) + :schema $ quote $ Fn Input (-> schema/DispatchOp) (:generics Input) 'on-control! $ %{} 'CodeEntry (:doc |) :code $ quote $ defn on-control! (control) (dispatch! control) :examples $ [] From 9b971e43f6a9fda9e49ab476cc44231509648df0 Mon Sep 17 00:00:00 2001 From: tiye Date: Fri, 13 Nov 2026 18:59:10 +0800 Subject: [PATCH 2/2] =?UTF-8?q?=E6=A0=87=E6=B3=A8=20Msg=20Buffer=20?= =?UTF-8?q?=E5=A1=AB=E5=85=A5=E5=9B=9E=E8=B0=83=E7=9A=84=E5=85=B7=E5=90=8D?= =?UTF-8?q?=E4=BA=8B=E4=BB=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- calcit.cirru | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/calcit.cirru b/calcit.cirru index 6ed0da2..da9b9ad 100644 --- a/calcit.cirru +++ b/calcit.cirru @@ -1593,7 +1593,7 @@ :code $ quote $ defn on-fill (cursor state on-submit) %{} respo.schema/RespoListener (:name :on-fill) :handler $ fn (event dispatch!) - hint-fn $ Fn AnyEnum + hint-fn $ Fn app.schema/FillEvent Fn DispatchOp $ -> Unit -> Unit match (try-decode-map-as event 'app.schema/FillEvent)