Skip to content

chore: upgrade @calcit/procs to 0.12.30#78

Open
tiye wants to merge 5 commits into
mainfrom
buf-list
Open

chore: upgrade @calcit/procs to 0.12.30#78
tiye wants to merge 5 commits into
mainfrom
buf-list

Conversation

@tiye
Copy link
Copy Markdown
Member

@tiye tiye commented Apr 28, 2026

Upgrade calcit dependency to 0.12.30 which stabilizes gensym ids for consistent JS codegen.

Summary by CodeRabbit

  • Documentation

    • Switched path notation examples from comma- to dot-separated across guides and examples.
    • Consolidated standalone API pages into an inline/source-doc approach and updated README/API docs and server-rendering guidance.
  • Public API

    • Small public API signature change: one parameter was renamed/repurposed (adjust call sites accordingly).
  • Chores

    • Version bumped to 0.16.40
    • Updated project dependency ranges.

Copilot AI review requested due to automatic review settings April 28, 2026 10:50
@coderabbitai
Copy link
Copy Markdown
Contributor

coderabbitai Bot commented Apr 28, 2026

Warning

Rate limit exceeded

@tiye has exceeded the limit for the number of commits that can be reviewed per hour. Please wait 57 minutes and 32 seconds before requesting another review.

You’ve run out of usage credits. Purchase more in the billing tab.

⌛ How to resolve this issue?

After the wait time has elapsed, a review can be triggered using the @coderabbitai review command as a PR comment. Alternatively, push new commits to this PR.

We recommend that you space out your commits to avoid hitting the rate limit.

🚦 How do rate limits work?

CodeRabbit enforces hourly rate limits for each developer per organization.

Our paid plans have higher rate limits than the trial, open-source and free plans. In all cases, we re-allow further reviews after a brief timeout.

Please see our FAQ for further information.

ℹ️ Review info
⚙️ Run configuration

Configuration used: Organization UI

Review profile: ASSERTIVE

Plan: Pro

Run ID: 99dc4d65-cc52-4089-b859-350ee635fe53

📥 Commits

Reviewing files that changed from the base of the PR and between c580cf2 and 21be052.

📒 Files selected for processing (2)
  • compact.cirru
  • package.json

Walkthrough

Version bumped to 0.16.40; DOM patch collection refactored from atom-mutating lists to a buffered list abstraction used in mount-app!, realize-ssr!, and rerender-app!. Extensive API docs were consolidated/removed in favor of source doc-strings and dot-separated path notation; @calcit/procs dependency bumped.

Changes

Runtime Patch Collection Refactoring

Layer / File(s) Summary
Data Shape / Buffer API
compact.cirru
Introduces use of buffered list abstraction (&buf-list:new, &buf-list:push, &buf-list:to-list) replacing previous atom-backed *changes mutation.
Core Implementation
compact.cirru
mount-app!, realize-ssr!, and rerender-app! updated to collect patch ops into buffer and call patch-instance! with buffered list; logging updated to consume buffered list.
Patching Alignment
compact.cirru
apply-dom-changes and related patching helpers adjusted to align with new op data structure (_coord / _n-coord forms) expected by buffered flow.
Public API / Signature
compact.cirru
mount-app! signature changed from (target markup *dispatch-fn) to (target element *dispatch-fn).
Version / Snapshot
compact.cirru
Snapshot header/about string updated and version bumped to 0.16.40.

Docs & API Consolidation

Layer / File(s) Summary
Top-level API docs
README.md, docs/api.md
Replaced external-page API reference with an inline note pointing to source doc-strings in compact.cirru; added CLI guidance and new API tables mapping namespaces to functions.
Guide updates
docs/guide/server-rendering.md, docs/guide/dom-elements.md
Replaced API-link style references with inline function names and added SSR notes (event muting, realize-ssr! behavior); pointed to respo.core/create-element and cr query guidance.
Agent examples / path notation
docs/Respo-Agent.md
Changed examples from comma-separated path indices to dot-separated notation (e.g., 2.1, 2.1.0).
Removed/Consolidated API pages
docs/apis/* (many files)
Bulk deletion/removal of many standalone API pages (e.g., defcomp.md, create-element.md, render-app.md, apply-dom-changes.md, patch-instance.md, etc.), reflecting migration of API text into source doc-strings.
Minor docs edits
docs/*
Various small content adjustments and link text updates to align with the new in-source documentation approach.

Dependency

Layer / File(s) Summary
Package manifest
package.json
Bumped @calcit/procs dependency from ^0.12.24 to ^0.12.30.

Sequence Diagram(s)

sequenceDiagram
    participant Client as Client (mount-app!)
    participant Renderer as Renderer (realize-ssr!/rerender-app!)
    participant Buffer as BufList (buffer abstraction)
    participant Patcher as Patch Engine (patch-instance!)
    Client->>Buffer: &buf-list:new
    Client->>Buffer: &buf-list:push (collect ops)
    Client->>Patcher: &buf-list:to-list -> patch-instance!(ops)
    Renderer->>Buffer: &buf-list:new
    Renderer->>Buffer: &buf-list:push (collect ssr ops)
    Renderer->>Patcher: &buf-list:to-list -> patch-instance!(ops)
    Patcher->>Renderer: apply ops to DOM
Loading

Estimated code review effort

🎯 3 (Moderate) | ⏱️ ~25 minutes

Possibly related PRs

  • Respo/respo.calcit#75: Touches compact.cirru and core functions (mount/app, realize-ssr!, render!) — related to signature and core-function changes.
🚥 Pre-merge checks | ✅ 4 | ❌ 1

❌ Failed checks (1 warning)

Check name Status Explanation Resolution
Title check ⚠️ Warning The title mentions upgrading @calcit/procs to 0.12.30, but the PR includes extensive refactoring of core patching logic, documentation restructuring, and API changes far beyond a simple dependency upgrade. Revise the title to reflect the actual scope of changes, such as 'refactor: introduce buffered patch list and restructure API documentation' or provide a more accurate description of the primary change.
✅ Passed checks (4 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.
Linked Issues check ✅ Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check ✅ Passed Check skipped because no linked issues were found for this pull request.

✏️ Tip: You can configure your own custom pre-merge checks in the settings.

✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch buf-list

Tip

💬 Introducing Slack Agent: The best way for teams to turn conversations into code.

Slack Agent is built on CodeRabbit's deep understanding of your code, so your team can collaborate across the entire SDLC without losing context.

  • Generate code and open pull requests
  • Plan features and break down work
  • Investigate incidents and troubleshoot customer tickets together
  • Automate recurring tasks and respond to alerts with triggers
  • Summarize progress and report instantly

Built for teams:

  • Shared memory across your entire org—no repeating context
  • Per-thread sandboxes to safely plan and execute work
  • Governance built-in—scoped access, auditability, and budget controls

One agent for your entire SDLC. Right inside Slack.

👉 Get started


Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Upgrades the @calcit/procs dependency to 0.12.30 to get stabilized gensym ids and more consistent JS codegen output.

Changes:

  • Bump @calcit/procs from ^0.12.24 to ^0.12.30 and refresh yarn.lock (including updated transitive @calcit/ternary-tree).
  • Update agent documentation examples to use dot-delimited -p paths (e.g., 2.1.0).
  • Regenerate compact.cirru snapshot reflecting the new runtime/codegen behavior (including switching change collection to &buf-list).

Reviewed changes

Copilot reviewed 3 out of 4 changed files in this pull request and generated 1 comment.

File Description
yarn.lock Locks @calcit/procs@0.12.30 and updated transitive versions/checksums.
package.json Updates declared dependency on @calcit/procs to ^0.12.30.
docs/Respo-Agent.md Aligns cr tree path examples with dot-separated indexing.
compact.cirru Updated machine-generated snapshot to match new compiler/runtime output (buffered change collection).

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread compact.cirru
Copy link
Copy Markdown
Contributor

@coderabbitai coderabbitai Bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actionable comments posted: 2

🤖 Prompt for all review comments with AI agents
Verify each finding against the current code and only fix it if needed.

Inline comments:
In `@compact.cirru`:
- Around line 1300-1303: In realize-ssr! the collect! callback currently
declares four separate parameters but collect-mounting and other emitters pass a
single tuple; change the callback signature used in collect! (and the duplicate
at the second occurrence calling collect-mounting) to accept one tuple argument
and destructure it inside (e.g. receive one arg then bind/op/extract op, coord,
n-coord, v), so the callback matches collect-mounting's single-tuple emission;
update references around collect!, collect-mounting, changes, &buf-list:push and
build-deliver-event accordingly.

In `@docs/Respo-Agent.md`:
- Around line 892-905: The checklist's fenced bash blocks are not properly
nested under the numbered list which triggers MD029/MD031; fix by moving the
opening and closing ```bash fences so they're indented under item "3. **Make
surgical change**" (add a blank line before the fence, indent the fence and its
contents to match the list level), ensure there's a blank line after the closing
fence before the next list item, and preserve the inner lines (cr tree replace
... and echo ... | cr tree replace ...) exactly as shown so the code remains
unchanged.
🪄 Autofix (Beta)

Fix all unresolved CodeRabbit comments on this PR:

  • Push a commit to this branch (recommended)
  • Create a new PR with the fixes

ℹ️ Review info
⚙️ Run configuration

Configuration used: Organization UI

Review profile: ASSERTIVE

Plan: Pro

Run ID: ba6a7ef4-a0b8-4140-87f8-7ebc3283a45e

📥 Commits

Reviewing files that changed from the base of the PR and between e56ceee and 1f51098.

⛔ Files ignored due to path filters (1)
  • yarn.lock is excluded by !**/yarn.lock, !**/*.lock
📒 Files selected for processing (3)
  • compact.cirru
  • docs/Respo-Agent.md
  • package.json

Comment thread compact.cirru
Comment thread docs/Respo-Agent.md
Copy link
Copy Markdown
Contributor

@coderabbitai coderabbitai Bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

♻️ Duplicate comments (2)
compact.cirru (1)

1299-1307: ⚠️ Potential issue | 🔴 Critical | ⚡ Quick win

Unresolved: realize-ssr! collect! callback still has the wrong arity.

collect-mounting always calls its collect! argument with a single tuple (e.g., collect! $ :: :effect-mount next-coord n-coord fn). However, the collect! closure defined here still declares four separate parameters (op coord n-coord v) and re-packs them into [] op coord n-coord v before pushing.

When called with one argument:

  • op = the full tuple (e.g., (:: :effect-mount …))
  • coord, n-coord, v = nil

So &buf-list:to-list changes yields entries like [tuple nil nil nil] instead of tuple. apply-dom-changes then pattern-matches each entry as a tuple using match op (:effect-mount …), which will fail to destructure the outer list, silently dropping all mount effects during SSR hydration.

🐛 Proposed fix — align signature with how collect-mounting calls it
-                  collect! $ fn (op coord n-coord v)
-                    &buf-list:push changes $ [] op coord n-coord v
+                  collect! $ fn (op)
+                    &buf-list:push changes op
🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

In `@compact.cirru` around lines 1299 - 1307, The collect! callback in
realize-ssr! currently expects four args (op coord n-coord v) and repacks them,
but collect-mounting invokes collect! with one tuple; change the closure passed
to collect! so it accepts a single parameter (e.g., entry or tuple) and push
that value directly via &buf-list:push (avoid repacking into [] op coord n-coord
v) so that &buf-list:to-list changes yields the original tuples that
apply-dom-changes / match patterns (like :effect-mount) expect.
docs/Respo-Agent.md (1)

892-906: ⚠️ Potential issue | 🟡 Minor | ⚡ Quick win

Markdownlint warnings (MD029, MD031) still present in checklist code-fence block.

The 3. Make surgical change list item still has its fenced bash block placed at column 0 rather than indented under the list item, and item 4. retains the literal prefix 4 instead of the 1/1/1 ordered-list style required by MD029.

🛠️ Proposed markdown fix
 3. **Make surgical change**

-```bash
-# JSON inline (recommended)
-cr tree replace namespace-name/def-name -p "2.1.0" -j '"new-value"'
-
-# Or from stdin (JSON format)
-echo '"new-value"' | cr tree replace namespace-name/def-name -p "2.1.0" -s -J
-```
+   ```bash
+   # JSON inline (recommended)
+   cr tree replace namespace-name/def-name -p "2.1.0" -j '"new-value"'
+
+   # Or from stdin (JSON format)
+   echo '"new-value"' | cr tree replace namespace-name/def-name -p "2.1.0" -s -J
+   ```

-4. **Verify immediately**
-   ```bash
+1. **Verify immediately**
+
+   ```bash
    cr tree show namespace-name/def-name -p "2.1"  # Confirm change
    cr --check-only  # Verify syntax
    ```
🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

In `@docs/Respo-Agent.md` around lines 892 - 906, The checklist's fenced bash
block under the "3. **Make surgical change**" list item must be indented to be
part of the list and the following ordered item should use the
MD029/MD031-compliant "1." ordinal; update the block around the "3. **Make
surgical change**" heading so the triple-backtick ```bash and its contents are
indented under that list item (matching the list's indentation), and change the
subsequent "4. **Verify immediately**" list marker to "1. **Verify
immediately**" while likewise indenting its ```bash block; locate the sections
by the exact headings "3. **Make surgical change**" and "4. **Verify
immediately**" and the bash snippets that begin with cr tree replace and cr tree
show to apply the fixes.
🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

Duplicate comments:
In `@compact.cirru`:
- Around line 1299-1307: The collect! callback in realize-ssr! currently expects
four args (op coord n-coord v) and repacks them, but collect-mounting invokes
collect! with one tuple; change the closure passed to collect! so it accepts a
single parameter (e.g., entry or tuple) and push that value directly via
&buf-list:push (avoid repacking into [] op coord n-coord v) so that
&buf-list:to-list changes yields the original tuples that apply-dom-changes /
match patterns (like :effect-mount) expect.

In `@docs/Respo-Agent.md`:
- Around line 892-906: The checklist's fenced bash block under the "3. **Make
surgical change**" list item must be indented to be part of the list and the
following ordered item should use the MD029/MD031-compliant "1." ordinal; update
the block around the "3. **Make surgical change**" heading so the
triple-backtick ```bash and its contents are indented under that list item
(matching the list's indentation), and change the subsequent "4. **Verify
immediately**" list marker to "1. **Verify immediately**" while likewise
indenting its ```bash block; locate the sections by the exact headings "3.
**Make surgical change**" and "4. **Verify immediately**" and the bash snippets
that begin with cr tree replace and cr tree show to apply the fixes.

ℹ️ Review info
⚙️ Run configuration

Configuration used: Organization UI

Review profile: ASSERTIVE

Plan: Pro

Run ID: 3f9a9a7d-803a-4a0f-9afd-247a6143c0eb

📥 Commits

Reviewing files that changed from the base of the PR and between 1f51098 and c580cf2.

📒 Files selected for processing (27)
  • README.md
  • compact.cirru
  • docs/Respo-Agent.md
  • docs/api.md
  • docs/apis/activate-instance.md
  • docs/apis/apply-dom-changes.md
  • docs/apis/clear-cache!.md
  • docs/apis/comp-inspect.md
  • docs/apis/comp-space.md
  • docs/apis/create-element.md
  • docs/apis/defcomp.md
  • docs/apis/defeffect.md
  • docs/apis/div.md
  • docs/apis/expand-tag.md
  • docs/apis/find-element-diffs.md
  • docs/apis/list->.md
  • docs/apis/make-html.md
  • docs/apis/make-string.md
  • docs/apis/mute-element.md
  • docs/apis/patch-instance.md
  • docs/apis/pick-states.md
  • docs/apis/purify-element.md
  • docs/apis/realize-ssr_.md
  • docs/apis/render!.md
  • docs/apis/render-app.md
  • docs/guide/dom-elements.md
  • docs/guide/server-rendering.md
💤 Files with no reviewable changes (21)
  • docs/apis/mute-element.md
  • docs/apis/div.md
  • docs/apis/list->.md
  • docs/apis/realize-ssr_.md
  • docs/apis/comp-inspect.md
  • docs/apis/expand-tag.md
  • docs/apis/clear-cache!.md
  • docs/apis/patch-instance.md
  • docs/apis/purify-element.md
  • docs/apis/render-app.md
  • docs/apis/pick-states.md
  • docs/apis/activate-instance.md
  • docs/apis/find-element-diffs.md
  • docs/apis/make-html.md
  • docs/apis/apply-dom-changes.md
  • docs/apis/render!.md
  • docs/apis/defcomp.md
  • docs/apis/defeffect.md
  • docs/apis/make-string.md
  • docs/apis/create-element.md
  • docs/apis/comp-space.md

@tiye tiye force-pushed the buf-list branch 2 times, most recently from c2c4501 to 21be052 Compare May 10, 2026 15:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants