@calcit/procs 0.12.53 → 0.12.54

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (41) hide show
  1. package/.yarn/install-state.gz +0 -0
  2. package/README.md +9 -10
  3. package/RFCs/04-13-type-slot-mechanism-rfc.md +516 -115
  4. package/RFCs/04-16-wasm-data-structures.md +1 -1
  5. package/RFCs/07-26-agent-docs-and-evaluation-rfc.md +33 -0
  6. package/RFCs/07-26-agent-machine-protocol-rfc.md +102 -0
  7. package/RFCs/07-26-safe-structured-editing-rfc.md +66 -0
  8. package/RFCs/07-26-static-semantic-analysis-rfc.md +105 -0
  9. package/RFCs/07-28-git-module-store-rfc.md +59 -0
  10. package/RFCs/07-28-persistent-tree-cursor-rfc.md +287 -0
  11. package/RFCs/README.md +9 -3
  12. package/editing-history/2026-07-28-1346-edit-transaction.md +27 -0
  13. package/editing-history/2026-07-28-1454-persistent-tree-cursor.md +30 -0
  14. package/editing-history/2026-07-28-1651-cursor-focus-stack-clipboard.md +30 -0
  15. package/editing-history/2026-07-28-1719-cursor-navigation-search-selection.md +21 -0
  16. package/editing-history/2026-07-28-1958-agent-rfc-split.md +14 -0
  17. package/editing-history/2026-07-28-2004-cursor-editing-docs.md +14 -0
  18. package/editing-history/2026-07-28-2132-cursor-recoverable-clipboard.md +18 -0
  19. package/editing-history/2026-07-28-2151-cursor-native-structural-editing.md +20 -0
  20. package/editing-history/2026-07-28-2158-document-cursor-native-workflows.md +13 -0
  21. package/editing-history/2026-07-29-0022-add-cursor-cli-options.md +7 -0
  22. package/editing-history/2026-07-29-0022-audit-cursor-development-scenarios.md +6 -0
  23. package/editing-history/2026-07-29-0022-complete-cursor-structural-edits.md +8 -0
  24. package/editing-history/2026-07-29-0022-document-cursor-edit-recipes.md +8 -0
  25. package/editing-history/2026-07-29-0022-echo-cursor-commands.md +6 -0
  26. package/editing-history/2026-07-29-0022-edit-target-cursor-alias.md +6 -0
  27. package/editing-history/2026-07-29-0022-guide-agents-through-cursor-workflows.md +7 -0
  28. package/editing-history/2026-07-29-0022-query-from-active-cursor.md +8 -0
  29. package/editing-history/2026-07-29-0022-tree-target-cursor-alias.md +5 -0
  30. package/editing-history/2026-07-29-1242-agent-guide-cold-start-validation.md +15 -0
  31. package/editing-history/2026-07-29-1242-cirru-quote-input-errors.md +13 -0
  32. package/editing-history/2026-07-29-1242-internal-wasm-doc-boundary.md +13 -0
  33. package/editing-history/2026-07-30-1130-pr-281-review-fixes.md +5 -0
  34. package/editing-history/20260729-1421-consolidate-local-state-and-cursor-tools.md +22 -0
  35. package/editing-history/20260729-1422-document-calcit-local-state.md +15 -0
  36. package/editing-history/20260729-1952-strengthen-polymorphism-diagnostics.md +21 -0
  37. package/editing-history/202607301429-entry-type-slots.md +29 -0
  38. package/editing-history/202607301435-release-0.12.54.md +22 -0
  39. package/lib/package.json +1 -1
  40. package/package.json +1 -1
  41. package/RFCs/07-26-agent-semantic-interface-roadmap-rfc.md +0 -793
@@ -0,0 +1,13 @@
1
+ # Cirru quote input diagnostics
2
+
3
+ - Clarified CLI errors for missing or malformed `quote` transport wrappers.
4
+ - Distinguished symbol, string, and expression payload examples in parser hints.
5
+ - Added coverage for ambiguous bare forms and multi-payload quote input.
6
+
7
+ Validation:
8
+
9
+ - `cargo fmt`
10
+ - `cargo clippy -- -D warnings`
11
+ - `cargo test`
12
+ - `yarn check-all`
13
+
@@ -0,0 +1,13 @@
1
+ # Internal WASM documentation boundary
2
+
3
+ - Removed `cr-wasm` from installation, quick-reference, feature, and public CLI documentation.
4
+ - Kept the WASM backend implementation and validation workflow unchanged.
5
+ - Moved the detailed backend notes under `scripts/` and reframed them as repository-internal validation documentation.
6
+ - Reduced `cr ir` coverage to a short compiler-debugging note instead of presenting it as a normal project workflow.
7
+
8
+ Validation:
9
+
10
+ - `bash scripts/check-docs-md.sh`
11
+ - `yarn check-all`
12
+ - `git diff --check`
13
+
@@ -0,0 +1,5 @@
1
+ # PR 281 review fixes
2
+
3
+ - Guard recursive static definition inference, falling back to `:dynamic` for cycles.
4
+ - Validate dependency module paths before filesystem or Git operations and avoid reporting a reset for untracked-only changes.
5
+ - Correct JS FFI intent classification, bounded cursor state recovery, and CLI/documentation consistency.
@@ -0,0 +1,22 @@
1
+ # Consolidate local state and cursor tools
2
+
3
+ ## Summary
4
+
5
+ - Consolidated project-local sidecar files under `.calcit/`: cursor state now uses `.calcit/cursor.cirru`, and persisted runtime errors use `.calcit/error.cirru`.
6
+ - Added one-time migration from `.calcit-cursor.cirru` and `.calcit-error.cirru` without dual writes.
7
+ - Kept state paths relative to the selected snapshot, including commands invoked from another working directory.
8
+ - Extended cursor schema v4 with one region anchor, up to 16 named marks, and a compact last-query descriptor.
9
+ - Added `cursor anchor`, `clear-anchor`, `region`, `mark`, `goto`, `marks`, and `rm-mark`, plus `query next` and `query prev`.
10
+ - Applied the same path transforms to the active cursor, anchor, and marks during structural edits; stale query continuation is rejected after a snapshot revision change.
11
+ - Bounded the complete cursor file to 64 KiB and retained existing history, stack, and mark count limits.
12
+
13
+ ## Validation
14
+
15
+ - `cargo fmt`
16
+ - `cargo clippy --all-targets -- -D warnings`
17
+ - `cargo test`
18
+ - `yarn compile`
19
+ - `yarn check-all`
20
+ - `yarn check-agent-interface`
21
+ - Real-project regression on a temporary Respo workflow copy, including legacy migration, region/marks/query continuation, and successful `cr js` compilation.
22
+ - Release binary changed from 8,196,752 bytes to 8,280,352 bytes on the same arm64 build environment (about 1.02%).
@@ -0,0 +1,15 @@
1
+ # Document Calcit local state
2
+
3
+ ## Summary
4
+
5
+ - Documented `.calcit/` as the bounded project-local state directory and recommended ignoring the directory as a unit.
6
+ - Updated cursor RFC and Agent guidance for anchor/region, named marks, query continuation, migration behavior, and state-size limits.
7
+ - Moved the recommended multiline snippet location to `.calcit/snippets/`.
8
+ - Updated error-stack references to `.calcit/error.cirru` while preserving historical editing records.
9
+ - Clarified that `.compact-inc.cirru` remains the existing watcher protocol rather than project-local diagnostic state.
10
+ - Corrected repository-local Agent examples and replaced the obsolete binary-size threshold with a same-platform exact-byte baseline comparison.
11
+
12
+ ## Validation
13
+
14
+ - `target/debug/cr docs check-md docs/CalcitAgent.md --entry calcit/test.cirru` (4/4 blocks passed)
15
+ - `git diff --check`
@@ -0,0 +1,21 @@
1
+ # Strengthen polymorphism diagnostics
2
+
3
+ ## Summary
4
+
5
+ - Clarified the static-semantics RFC around parametric generics, trait bounds, applied data types, callback contracts, enums, optionals, and type slots.
6
+ - Restored the intended compatibility rule that legacy `:any` is parsed and serialized as `:dynamic`, rather than acting as a separate static top type.
7
+ - Added generic and trait-bound evidence to type-coverage reports.
8
+ - Added stable aggregate diagnostics for coverage gaps and unresolved dynamic debt, including per-occurrence impact and relationship-aware suggestions for Agents.
9
+ - Reduced false positives from generated metadata namespaces, `defimpl` declarations, and singleton-list wrappers around Cirru data declarations.
10
+ - Updated Agent and feature documentation with a concise workflow for replacing accidental dynamic types with concrete types, type variables, trait bounds, parameterized containers, or enums.
11
+
12
+ ## Validation
13
+
14
+ - `cargo fmt`
15
+ - `cargo clippy -- -D warnings`
16
+ - `cargo test`
17
+ - `yarn compile`
18
+ - `yarn check-agent-interface` (12/12 scenarios)
19
+ - `yarn check-all`
20
+ - `cr docs check-md` for `docs/CalcitAgent.md`, `docs/features/static-analysis.md`, and `docs/features/polymorphism.md`
21
+ - Real-project regression on a temporary Respo workflow copy, including type reports and successful `cr js` compilation.
@@ -0,0 +1,29 @@
1
+ # Entry-level type slots
2
+
3
+ Date: 2026-07-30 14:29 +0800
4
+
5
+ ## Context
6
+
7
+ `with-type-slot` represented a build-wide type choice as a body wrapper. Its single-body and multi-body preprocessing paths diverged, so adding an otherwise meaningless `do` could decide whether a runtime `with-type-slot` call leaked into generated code. Respo also needs the same dispatch `Op` type across a large component call graph without passing generics through every API.
8
+
9
+ ## Changes
10
+
11
+ - Added optional `:type-slots` maps to default and named entry configurations.
12
+ - Added `cr config type-slots`, `set-type-slot`, and `rm-type-slot` commands.
13
+ - Installed the selected entry's bindings before preprocessing and validated configured full type paths after module loading.
14
+ - Kept named entry configurations independent instead of inheriting default bindings.
15
+ - Made `with-type-slot` compile-time-only for both single and multiple bodies; codegen now rejects leaked forms.
16
+ - Preserved unrelated raw Snapshot EDN when a type-slot config command writes its map.
17
+ - Migrated type-slot fixtures and added round-trip, entry isolation, diagnostic, and multi-body erasure coverage.
18
+ - Updated the static-analysis, entry, project-structure, core API, and RFC documentation.
19
+
20
+ ## Validation
21
+
22
+ - `cargo fmt --all`
23
+ - `cargo clippy -- -D warnings`
24
+ - `cargo test`
25
+ - `yarn compile`
26
+ - `yarn check-agent-interface`
27
+ - `yarn check-all`
28
+ - Calcit Markdown checks for the updated static-analysis and entry documentation
29
+ - Respo main/test entry regression, JS codegen, Node tests, and all Markdown code blocks with the new CLI
@@ -0,0 +1,22 @@
1
+ # Release 0.12.54
2
+
3
+ Date: 2026-07-30 14:35 +0800
4
+
5
+ ## Release scope
6
+
7
+ - Entry-level `:type-slots` configuration and CLI management commands.
8
+ - Compile-time-only `with-type-slot` erasure for single and multiple bodies.
9
+ - Snapshot/config preservation, type-slot diagnostics, regression fixtures, and documentation.
10
+ - The earlier PR 281 review fixes already carried by the same branch.
11
+
12
+ ## Pre-release evidence
13
+
14
+ - Feature commit `5e180a2e` passed the repository Test workflow on PR #282.
15
+ - Local validation passed `cargo fmt`, Clippy with warnings denied, all Rust tests, TypeScript compilation, Agent interface checks, and the full Rust/JS/WASM integration suite.
16
+ - Respo passed check-only, JS codegen, Node tests, and all Markdown checks with the new CLI.
17
+
18
+ ## Version changes
19
+
20
+ - `Cargo.toml`: `0.12.54`
21
+ - `package.json`: `0.12.54`
22
+ - `Cargo.lock`: refreshed with `cargo update --workspace`
package/lib/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@calcit/procs",
3
- "version": "0.12.53",
3
+ "version": "0.12.54",
4
4
  "main": "./lib/calcit.procs.mjs",
5
5
  "devDependencies": {
6
6
  "@types/node": "^25.7.0",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@calcit/procs",
3
- "version": "0.12.53",
3
+ "version": "0.12.54",
4
4
  "main": "./lib/calcit.procs.mjs",
5
5
  "devDependencies": {
6
6
  "@types/node": "^25.7.0",