Skip to content

update on calcit trait usages#68

Merged
NoEgAm merged 2 commits intomainfrom
updates
Mar 10, 2026
Merged

update on calcit trait usages#68
NoEgAm merged 2 commits intomainfrom
updates

Conversation

@tiye
Copy link
Copy Markdown
Member

@tiye tiye commented Feb 20, 2026

No description provided.

Copy link
Copy Markdown

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

This PR updates the project to newer Calcit tooling/runtime versions and refreshes generated snapshots/docs to reflect updated trait/record usage patterns.

Changes:

  • Bump @calcit/procs (and related transitive deps) and update Calcit/dependency versions in deps.cirru.
  • Regenerate compact.cirru to migrate several defrecord! usages to the newer impl-traits / defimpl / deftrait style, plus some related predicate updates.
  • Expand/refresh the Calcit agent CLI guidance documentation.

Reviewed changes

Copilot reviewed 6 out of 8 changed files in this pull request and generated 4 comments.

Show a summary per file
File Description
yarn.lock Updates locked @calcit/procs (+ transitive @cirru/parser.ts) versions.
package.json Bumps @calcit/procs dependency range.
llms/Calcit.md Adds extensive CLI workflow guidance for LLM/agent usage.
deps.cirru Updates :calcit-version and several Calcit module dependency versions.
compact.cirru Regenerated snapshot reflecting new trait/record patterns and updated helpers/usages.
calcit.cirru Minor metadata change in snapshot content.
.gitignore Ignores .yarn/ directory.
.gitattributes Marks .pnp.* as linguist-generated.

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

:data $ {}
|T $ %{} :Leaf (:at 1504777353661) (:by |root) (:text |hsl)
|j $ %{} :Leaf (:at 1504777353661) (:by |root) (:text |0)
|j $ %{} :Leaf (:at 1771566270665) (:by |S1lNv50FW) (:text |0)
Copy link

Copilot AI Feb 20, 2026

Choose a reason for hiding this comment

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

This change only updates the :at/:by metadata for a single leaf node in calcit.cirru (no functional change). Since calcit.cirru is typically treated as generated/editor data, please confirm this edit is intentional; otherwise consider reverting to avoid unnecessary churn and attribution/timestamp noise in diffs.

Copilot uses AI. Check for mistakes.
Comment on lines +781 to 785
````bash
# Cirru one liner
cr edit def app.core/multiply -e 'defn multiply (x y) (* x y)'
# or JSON
cr edit def app.core/multiply -j '["defn", "multiply", ["x", "y"], ["*", "x", "y"]]'
```

**更新文档和示例:**
# 基本操作:**

Copy link

Copilot AI Feb 20, 2026

Choose a reason for hiding this comment

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

This section opens a 4-backtick code fence (````bash) and then starts a nested 3-backtick fence without closing the first one, which will break Markdown rendering. Also the line # 基本操作:** contains stray `**` inside the code block. Suggest using a single code fence and removing the stray asterisks.

Copilot uses AI. Check for mistakes.
Comment on lines 2889 to +2893
hint $ if (record? target-node)
if (&record:matches? target-node schema/CirruLeaf) (:text target-node) nil
if
and (record? target-node)
= :Leaf $ &record:get-name target-node
:text target-node
Copy link

Copilot AI Feb 20, 2026

Choose a reason for hiding this comment

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

hint does if (record? target-node) and then immediately checks and (record? target-node) again, which is redundant. Consider removing the duplicate record? check and/or reusing the existing leaf? predicate to keep leaf detection logic consistent.

Copilot uses AI. Check for mistakes.
Comment on lines 1024 to +1028
sorted-children $ -> (:data expr) (.to-list) (.sort-by first)
first-id $ if (empty? sorted-children) nil
first $ first sorted-children
last-id $ if (empty? sorted-children) nil
first $ last sorted-children
Copy link

Copilot AI Feb 20, 2026

Choose a reason for hiding this comment

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

sorted-children is now used to derive first-id/last-id, but get-min-key / get-max-key are still imported in this namespace and no longer referenced. Please remove the unused bisection-key.util refers (or switch back to using them) to avoid dead imports.

Copilot uses AI. Check for mistakes.
@NoEgAm NoEgAm merged commit a07fc42 into main Mar 10, 2026
1 check passed
@NoEgAm NoEgAm deleted the updates branch March 10, 2026 08:38
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.

3 participants