Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ Demo https://r.fp-china.org/functor-purity/ .

### 使用者影响

CLI 与 `@calcit/procs` 配对正式 **0.46.0**。升级后重新安装依赖并构建前端。正式模块为 Feather **0.6.14**、UI **0.16.6**、Respo **0.20.0**、JS FFI **0.2.26**、Reel **0.11.10**、Markdown **0.9.10**,传递 Router **0.12.18**。状态路径使用 `CoordKey`,表单和页面事件使用 `RootState | FormState`。Respo 派发具名 `Op`,Reel 控件和快捷键发送具名 `Control`,两者在更新入口通过 union 分流。消息列表用 Respo `ChildPair` 保留原数字键和顺序。
CLI 与 `@calcit/procs` 配对正式 **0.49.0**。升级后重新安装依赖并构建前端。正式模块为 Feather **0.6.15**、UI **0.16.7**、Respo **0.20.1**、JS FFI **0.2.26**、Reel **0.11.11**、Markdown **0.9.11**,传递 Router **0.12.19**。旧存档和组件状态解码保留开放输入边界,以兼容历史 Map、Struct 和 nil;语音接口与页面 HUD 保持原行为。状态路径使用 `CoordKey`,表单和页面事件使用 `RootState | FormState`。Respo 派发具名 `Op`,Reel 控件和快捷键发送具名 `Control`,两者在更新入口通过 union 分流。消息列表用 Respo `ChildPair` 保留原数字键和顺序。

状态读取与表单渲染的 Map 值使用 `StateValue` 泛型,原数据入口继续解码为 `RootState` / `FormState`。归档宏显式导入 `Archive`,使官方格式器输出的短类型名保持可检查;对应工具链问题及消费者证据见 [Calcit #2686](https://github.com/calcit-lang/calcit/issues/2686#issuecomment-6786233272)。

Expand Down
10 changes: 7 additions & 3 deletions calcit.cirru
Original file line number Diff line number Diff line change
Expand Up @@ -299,7 +299,7 @@
{} (:font-size 14)
:color $ hsl 230 70 70
:line-height |14px
, nil
, None
space-x 2
<> (:idx info)
{}
Expand Down Expand Up @@ -650,6 +650,7 @@
:schema $ quote $ Fn Input
-> $ List Message
:generics Input
:open :decode
'decode-state-tree $ %{} 'CodeEntry (:doc |)
:code $ quote $ defn decode-state-tree (raw)
let
Expand Down Expand Up @@ -682,7 +683,7 @@
decode-map-as (storage-map raw) FormState
(:none) (FormState :content |)
:examples $ []
:schema $ quote $ Fn (Map respo.schema/CoordKey StateValue) (-> FormState) (:generics StateValue)
:schema $ quote $ Fn (Map respo.schema/CoordKey StateValue) (-> FormState) (:generics StateValue) (:open :decode)
'read-root-state $ %{} 'CodeEntry (:doc |)
:code $ quote $ defn read-root-state (states)
match (get states :data)
Expand All @@ -691,7 +692,7 @@
decode-map-as (storage-map raw) RootState
(:none) (RootState :content | :voice? false)
:examples $ []
:schema $ quote $ Fn (Map respo.schema/CoordKey StateValue) (-> RootState) (:generics StateValue)
:schema $ quote $ Fn (Map respo.schema/CoordKey StateValue) (-> RootState) (:generics StateValue) (:open :decode)
'state-cursor $ %{} 'CodeEntry (:doc |)
:code $ quote $ defn state-cursor (states)
match (get states :cursor)
Expand All @@ -703,6 +704,7 @@
:schema $ quote $ Fn (Map respo.schema/CoordKey StateValue)
-> $ List respo.schema/CoordKey
:generics StateValue
:open :decode
'storage-map $ %{} 'CodeEntry (:doc |)
:code $ quote $ defn storage-map (raw)
if (struct? raw) (&struct:to-map raw)
Expand All @@ -711,6 +713,7 @@
:schema $ quote $ Fn Input
-> $ Map Tag Dynamic
:generics Input
:open :decode
'store $ %{} 'CodeEntry (:doc |)
:code $ quote $ def store
Store :states
Expand All @@ -728,6 +731,7 @@
:schema $ quote $ Fn (Map K V) K
-> $ Map K V
:generics K V
:open :decode
:ns $ %{} 'NsEntry (:doc |)
:code $ quote $ ns app.schema
'app.updater $ %{} 'FileEntry
Expand Down
12 changes: 6 additions & 6 deletions deps.cirru
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@

{} (:calcit-version |0.46.0)
{} (:calcit-version |0.49.0)
:version |0.0.1
:dependencies $ {} (|Respo/reel.calcit |0.11.10)
|Respo/respo-feather.calcit |0.6.14
|Respo/respo-markdown.calcit |0.9.10
|Respo/respo-ui.calcit |0.16.6
|Respo/respo.calcit |0.20.0
:dependencies $ {} (|Respo/reel.calcit |0.11.11)
|Respo/respo-feather.calcit |0.6.15
|Respo/respo-markdown.calcit |0.9.11
|Respo/respo-ui.calcit |0.16.7
|Respo/respo.calcit |0.20.1
|calcit-lang/js-ffi |0.2.26
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"dependencies": {
"@calcit/procs": "0.46.0",
"@calcit/procs": "0.49.0",
"cirru-color": "0.2.4",
"copy-text-to-clipboard": "3.2.2",
"dayjs": "1.11.23",
Expand Down
10 changes: 5 additions & 5 deletions yarn.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.