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
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ Text diff

### 使用者影响

升级到 Calcit 和 `@calcit/procs` **0.40.0** 后,请重新安装依赖、编译并刷新。文本输入、Run 输出、原 Map 存档和页面 HUD 继续适用。 应用操作和 Reel 控制通过 `ResolvedOp` union 区分。Reel 面板直接接收独立控制回调,原存档结构保持兼容。
升级到 Calcit 和 `@calcit/procs` **0.41.0** 后,请重新安装依赖、编译并刷新。文本输入、Run 输出、原 Map 存档和页面 HUD 继续适用。 应用操作和 Reel 控制通过 `ResolvedOp` union 区分。Reel 面板直接接收独立控制回调,原存档结构保持兼容。

Reel 使用 `State<Op, Store>`。业务更新器接收具名操作。状态路径和顶层状态键统一使用 `CursorKey = Tag | String | Number`,已有 Map 或 Struct 存档仍在恢复时校验。恢复成功后才注册离页保存。

Expand All @@ -16,7 +16,7 @@ Reel 使用 `State<Op, Store>`。业务更新器接收具名操作。状态路
Use `calcit.cirru` and `deps.cirru`; do not restore the retired `compact.cirru`
or `package.cirru`. Generated `js-out/` is not committed.

Use Node 24 and Yarn 4.18.0. Install Calcit 0.40.0 and Caps 0.1.1 separately
Use Node 24 and Yarn 4.18.0. Install Calcit 0.41.0 and Caps 0.1.1 separately
(the latter follows [the official Caps installation](https://github.com/calcit-lang/caps)); Corepack/Yarn does not install Caps. Strict dependency installation and the original type/test gates are retained.
Browser and production acceptance remain separate from successful compilation.

Expand Down
16 changes: 8 additions & 8 deletions calcit.cirru
Original file line number Diff line number Diff line change
Expand Up @@ -42,8 +42,8 @@
-> Unit
println $ :content store
if dev?
Option :some $ comp-controlled-reel reel ({}) on-control
Option :none
Some $ comp-controlled-reel reel ({}) on-control
, None
:examples $ []
:schema $ quote $ Fn (reel.typed/State text-diff.schema/Op text-diff.schema/Store)
Fn reel.typed/Control $ -> Unit
Expand Down Expand Up @@ -93,9 +93,9 @@
:defs $ {}
'*reel $ %{} 'CodeEntry (:doc |)
:code $ quote $ defref *reel
typed/State :base schema/store :store schema/store :records ([]) :pointer (Option :none) :stopped? false :display? false :merged? false
typed/State :base schema/store :store schema/store :records ([]) :pointer None :stopped? false :display? false :merged? false
:examples $ []
:schema $ quote $ Ref (reel.typed/State text-diff.schema/Op text-diff.schema/Store)
:schema $ quote $ Ref (typed/State schema/Op schema/Store)
'dispatch! $ %{} 'CodeEntry (:doc |)
:code $ quote $ defn dispatch! (op)
when config/dev? $ println |Dispatch: op
Expand All @@ -105,7 +105,7 @@
typed/record-op updater @*reel action (generate-id!) (shared/now-ms)
, &unit
:examples $ []
:schema $ quote $ Fn text-diff.schema/ResolvedOp (-> Unit) (:features :js-ffi)
:schema $ quote $ Fn schema/ResolvedOp (-> Unit) (:features :js-ffi)
'main! $ %{} 'CodeEntry (:doc |)
:code $ quote $ defn main! ()
println "|Running mode:" $ if config/dev? |dev |release
Expand All @@ -132,7 +132,7 @@
'on-control! $ %{} 'CodeEntry (:doc |)
:code $ quote $ defn on-control! (control) (dispatch! control)
:examples $ []
:schema $ quote $ Fn reel.typed/Control (-> Unit)
:schema $ quote $ Fn typed/Control (-> Unit)
'persist-storage! $ %{} 'CodeEntry (:doc |)
:code $ quote $ defn persist-storage! ()
browser/storage-set!
Expand Down Expand Up @@ -213,12 +213,12 @@
if (struct? data) (&struct:to-map data) data
, text-diff.schema/Store
:examples $ []
:schema $ quote $ Fn Input (-> text-diff.schema/Store) (:generics Input)
:schema $ quote $ Fn Input (-> Store) (:generics Input)
'store $ %{} 'CodeEntry (:doc |)
:code $ quote $ def store
Store :states ({}) :content |
:examples $ []
:schema $ quote text-diff.schema/Store
:schema $ quote Store
:ns $ %{} 'NsEntry (:doc |)
:code $ quote $ ns text-diff.schema
'text-diff.updater $ %{} 'FileEntry
Expand Down
2 changes: 1 addition & 1 deletion deps.cirru
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@

{} (:calcit-version |0.40.0)
{} (:calcit-version |0.41.0)
:version |0.1.4
:dependencies $ {} (|Respo/reel.calcit |0.11.0)
|Respo/respo-markdown.calcit |0.8.2
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
"vite": "^8.3.1"
},
"dependencies": {
"@calcit/procs": "0.40.0",
"@calcit/procs": "0.41.0",
"cirru-color": "^0.2.4",
"copy-text-to-clipboard": "^3.2.2",
"dayjs": "^1.11.20",
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.