@calcit/procs 0.13.27 → 0.13.29

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 (98) hide show
  1. package/.yarn/install-state.gz +0 -0
  2. package/README.md +34 -34
  3. package/RFCs/02-04-runtime-traits-plan.md +1 -1
  4. package/RFCs/02-17-register-platform-api-rfc.md +1 -1
  5. package/RFCs/02-18-language-theory-evolution-plan.md +3 -3
  6. package/RFCs/03-05-function-schema-dual-track-rfc.md +3 -3
  7. package/RFCs/03-18-query-def-tree-show-chunked-display-plan.md +11 -11
  8. package/RFCs/04-13-type-slot-mechanism-rfc.md +10 -10
  9. package/RFCs/05-12-program-diff-rfc.md +7 -7
  10. package/RFCs/06-15-effects-graph-rfc.md +16 -16
  11. package/RFCs/07-06-semantic-tree-navigation-rfc.md +33 -33
  12. package/RFCs/07-19-doc-knowledge-index-rfc.md +15 -15
  13. package/RFCs/07-19-type-introspection-consistency-rfc.md +3 -3
  14. package/RFCs/07-26-agent-docs-and-evaluation-rfc.md +1 -1
  15. package/RFCs/07-26-agent-machine-protocol-rfc.md +5 -5
  16. package/RFCs/07-26-safe-structured-editing-rfc.md +4 -4
  17. package/RFCs/07-26-static-semantic-analysis-rfc.md +9 -9
  18. package/RFCs/07-28-git-module-store-rfc.md +4 -4
  19. package/RFCs/07-28-persistent-tree-cursor-rfc.md +54 -54
  20. package/RFCs/08-08-cross-backend-host-ffi-contracts-rfc.md +4 -4
  21. package/RFCs/08-14-architecture-scaffold-rfc.md +7 -7
  22. package/RFCs/08-14-todo-placeholder-rfc.md +2 -2
  23. package/RFCs/08-18-calcit-typed-js-ffi-boundary-rfc.md +2 -2
  24. package/RFCs/08-21-js-ffi-runtime-contract-validation-rfc.md +295 -0
  25. package/RFCs/08-21-setup-calcit-version-and-toolchain-contract-rfc.md +241 -0
  26. package/RFCs/08-21-static-type-system-evolution-roadmap.md +315 -0
  27. package/RFCs/08-21-type-quality-ci-adoption-rfc.md +272 -0
  28. package/RFCs/README.md +7 -4
  29. package/editing-history/20260820-1704-repository-maintenance-review.md +21 -0
  30. package/editing-history/20260821-1512-type-system-ecosystem-rfcs.md +25 -0
  31. package/editing-history/20260821-1648-type-quality-and-ffi-doc-hints.md +12 -0
  32. package/editing-history/202608211958-calcit-command-alias.md +6 -0
  33. package/editing-history/202608212018-cli-review-followups.md +4 -0
  34. package/editing-history/202608212200-review-followups.md +11 -0
  35. package/editing-history/202608212232-unsafe-coerce-inventory.md +25 -0
  36. package/editing-history/202608212243-unsafe-coerce-boundary-evidence.md +27 -0
  37. package/editing-history/202608212305-quality-unsafe-boundary-gate.md +13 -0
  38. package/editing-history/202608212327-quality-agent-protocol-v2.md +7 -0
  39. package/editing-history/202608212330-release-asset-manifest.md +9 -0
  40. package/editing-history/202608212334-quality-v1-reporting.md +10 -0
  41. package/editing-history/202608212344-quality-metric-name-comparison.md +5 -0
  42. package/editing-history/202608212345-release-manifest-review.md +6 -0
  43. package/editing-history/202608212346-quality-baseline-migration-docs.md +5 -0
  44. package/editing-history/202608220012-release-0-13-29.md +5 -0
  45. package/editing-history/ARCHIVE.md +45 -4
  46. package/editing-history/README.md +3 -1
  47. package/history/202608212020-release-01328.md +5 -0
  48. package/lib/package.json +11 -11
  49. package/package.json +11 -11
  50. package/profiling/README.md +3 -3
  51. package/profiling/profile-once.sh +1 -1
  52. package/profiling/samply-once.sh +4 -4
  53. package/profiling/samply-summary.py +1 -1
  54. package/editing-history/2026-07-28-1346-edit-transaction.md +0 -27
  55. package/editing-history/2026-07-28-1454-persistent-tree-cursor.md +0 -30
  56. package/editing-history/2026-07-28-1651-cursor-focus-stack-clipboard.md +0 -30
  57. package/editing-history/2026-07-28-1719-cursor-navigation-search-selection.md +0 -21
  58. package/editing-history/2026-07-28-1958-agent-rfc-split.md +0 -14
  59. package/editing-history/2026-07-28-2004-cursor-editing-docs.md +0 -14
  60. package/editing-history/2026-07-28-2132-cursor-recoverable-clipboard.md +0 -18
  61. package/editing-history/2026-07-28-2151-cursor-native-structural-editing.md +0 -20
  62. package/editing-history/2026-07-28-2158-document-cursor-native-workflows.md +0 -13
  63. package/editing-history/2026-07-29-0022-add-cursor-cli-options.md +0 -7
  64. package/editing-history/2026-07-29-0022-audit-cursor-development-scenarios.md +0 -6
  65. package/editing-history/2026-07-29-0022-complete-cursor-structural-edits.md +0 -8
  66. package/editing-history/2026-07-29-0022-document-cursor-edit-recipes.md +0 -8
  67. package/editing-history/2026-07-29-0022-edit-target-cursor-alias.md +0 -6
  68. package/editing-history/2026-07-29-0022-guide-agents-through-cursor-workflows.md +0 -7
  69. package/editing-history/2026-07-29-0022-query-from-active-cursor.md +0 -8
  70. package/editing-history/2026-07-29-0022-tree-target-cursor-alias.md +0 -5
  71. package/editing-history/202608021730-release-0.12.58.md +0 -5
  72. package/editing-history/202608021928-release-0.12.59.md +0 -5
  73. package/editing-history/202608082312-release-0.13.5.md +0 -10
  74. package/editing-history/202608090107-release-0.13.6.md +0 -10
  75. package/editing-history/202608091812-release-0.13.7.md +0 -8
  76. package/editing-history/202608101042-release-0.13.8.md +0 -6
  77. package/editing-history/202608101101-release-pr-workflow.md +0 -8
  78. package/editing-history/202608101102-release-doc-tracked-path.md +0 -5
  79. package/editing-history/202608110140-release-0.13.9.md +0 -4
  80. package/editing-history/202608111349-release-0.13.10.md +0 -13
  81. package/editing-history/202608111650-release-0.13.11.md +0 -5
  82. package/editing-history/202608121900-release-0.13.12.md +0 -5
  83. package/editing-history/202608130003-release-0.13.13.md +0 -9
  84. package/editing-history/202608131650-release-0.13.15.md +0 -10
  85. package/editing-history/20260816-0254-release-0.13.17.md +0 -5
  86. package/editing-history/20260817-0006-release-0-13-18.md +0 -6
  87. package/editing-history/202608171118-project-module-runtime-resolution.md +0 -6
  88. package/editing-history/202608171133-visible-module-versions-and-cleanup.md +0 -6
  89. package/editing-history/202608171140-module-caches-root.md +0 -5
  90. package/editing-history/202608171200-module-cache-review-follow-up.md +0 -5
  91. package/editing-history/202608171205-release-0-13-19.md +0 -4
  92. package/editing-history/202608171215-module-path-resolution-docs.md +0 -4
  93. package/editing-history/202608171409-module-cache-review-followup.md +0 -5
  94. package/editing-history/202608171427-module-cache-review-followup-locking.md +0 -5
  95. package/editing-history/202608171438-module-docs-home-lock.md +0 -4
  96. package/editing-history/202608171611-dependency-audit-review.md +0 -4
  97. package/editing-history/202608181000-release-0-13-20.md +0 -5
  98. package/editing-history/202608181930-release-0-13-21.md +0 -5
@@ -1,6 +0,0 @@
1
- # Audit cursor development scenarios
2
-
3
- - Mapped the cursor contract to high-frequency development workflows.
4
- - Specified symmetric Paredit operations, duplication, target aliases, and subtree search.
5
- - Clarified transaction, source-undo, and concurrent-agent boundaries.
6
- - Kept workspace, module, and project-wide operations explicit rather than cursor-dependent.
@@ -1,8 +0,0 @@
1
- # Complete cursor structural edits
2
-
3
- - Implemented leftward slurp/barf operations and clipboard-preserving duplication.
4
- - Used staged Snapshot and sidecar writes with explicit partial-success diagnostics.
5
- - Added reusable active target/path resolution for `@cursor` aliases.
6
- - Covered selection tracking, invalid boundaries, and parallel-test temporary-directory collisions.
7
-
8
- The operations were round-trip tested on a temporary copy of `respo-calcit-workflow` with the globally installed `cr`.
@@ -1,8 +0,0 @@
1
- # Document cursor edit recipes
2
-
3
- - Added concrete recipes for cursor-aware query, tree, and edit commands.
4
- - Documented symmetric slurp/barf and clipboard-preserving duplicate operations.
5
- - Added cursor-scoped leaf and structural searches.
6
- - Clarified navigation history and multi-agent boundaries.
7
-
8
- The documented workflow was exercised against a temporary Respo project and finished with a successful JS build.
@@ -1,6 +0,0 @@
1
- # Edit target cursor alias
2
-
3
- - Added `@cursor` definition targets to definition, metadata, copy/move, rename, and split operations.
4
- - Defined the alias as the source for two-target commands while keeping destinations explicit.
5
- - Reused a single active target/path resolution when an edit references both.
6
- - Left transaction operation files self-contained with concrete targets and paths.
@@ -1,7 +0,0 @@
1
- # Guide agents through cursor workflows
2
-
3
- - Documented cursor target aliases and subtree-scoped search for agents.
4
- - Added symmetric structural editing and duplication guidance.
5
- - Clarified that cursor history is navigation-only and the sidecar is not a concurrency primitive.
6
-
7
- All executable Markdown blocks passed `cr docs check-md`.
@@ -1,8 +0,0 @@
1
- # Query from the active cursor
2
-
3
- - Allowed definition-oriented queries to use `@cursor` as their target.
4
- - Added cursor-scoped structural expression search with absolute result paths.
5
- - Made `query type-at @cursor --path @cursor` resolve one validated cursor state.
6
- - Rejected conflicting explicit filters for cursor-scoped searches.
7
-
8
- Real-project checks covered search selection, type evidence, and bounded semantic context.
@@ -1,5 +0,0 @@
1
- # Tree target cursor alias
2
-
3
- - Allowed every target-bearing `cr tree` command to resolve `@cursor` as both definition target and structural path.
4
- - Reused one validated active cursor when both aliases occur in the same command.
5
- - Preserved target mismatch rejection for explicit definitions.
@@ -1,5 +0,0 @@
1
- # Release 0.12.58
2
-
3
- - Release the receiver-first method inference and trait nominal-identity fixes merged in PR #288.
4
- - Synchronize the crate, npm package, and Cargo lockfile versions at `0.12.58`.
5
- - The merge commit passed the main Test and CodeQL workflows before this release commit.
@@ -1,5 +0,0 @@
1
- # Release 0.12.59
2
-
3
- - Release the top-level nominal value schema fix from PR #291.
4
- - Synchronize the crate, npm package, and Cargo lockfile versions at `0.12.59`.
5
- - The merged main commit passed Test and CodeQL before this release preparation.
@@ -1,10 +0,0 @@
1
- # Release 0.13.5
2
-
3
- - Bumped the Calcit package versions in `Cargo.toml`, `package.json`, and
4
- `Cargo.lock` from 0.13.4 to 0.13.5.
5
- - Releases typed static `js-get`/`js-set` field access with external-object
6
- traits (PR #316) and the `unsafe-coerce` named-type preservation fix.
7
- - Consolidated redundant non-functional editing-history notes (release and
8
- release-policy entries) into `ARCHIVE.md`.
9
- - Verified with formatting, tests, clippy, compilation, full checks, agent
10
- interface smoke checks, and Markdown example checks.
@@ -1,10 +0,0 @@
1
- # Release 0.13.6
2
-
3
- - Bumped the Calcit package versions in `Cargo.toml`, `package.json`, and
4
- `Cargo.lock` from 0.13.5 to 0.13.6.
5
- - Releases the opt-in `W_JS_FFI_UNTYPED_ACCESS` warning (behind
6
- `--warn-dyn-method`) for untyped raw JS FFI access on bare `JsObject`, plus
7
- the cheap JS codegen readability improvements (line-based indentation, blank
8
- lines between top-level functions, verbatim `&raw-code` preservation).
9
- - Verified with formatting, tests, clippy, compilation, full checks, agent
10
- interface smoke checks, and Markdown example checks.
@@ -1,8 +0,0 @@
1
- # Release 0.13.7
2
-
3
- Released the merged definition-attached core test and `cr` CLI accuracy work.
4
-
5
- - Bumped the Rust crate and npm package versions from `0.13.6` to `0.13.7`.
6
- - Updated `Cargo.lock` with the workspace version through `cargo update --workspace`.
7
- - Release validation covers the merged PR's core tests, native/JS/WASM targets,
8
- Agent CLI interface, and the repository test workflow before tagging.
@@ -1,6 +0,0 @@
1
- ## Release 0.13.8
2
-
3
- - Publishes the typed Struct field-access and collection path-boundary work
4
- merged through PR #327.
5
- - Keeps module branch resolution robust by fetching and pruning remote branch
6
- refs before checkout.
@@ -1,8 +0,0 @@
1
- ## Release PR workflow
2
-
3
- - `main` is protected by a pull-request requirement, including release version
4
- changes; release commits must be created on a dedicated release branch.
5
- - A release tag is created only after the release PR is green, merged, and
6
- fetched back onto local `main`.
7
- - Publication verification uses non-interactive `gh pr checks` and `gh run
8
- list` polling, then confirms matching crates.io and npm versions.
@@ -1,5 +0,0 @@
1
- ## Release documentation tracked path
2
-
3
- - The repository tracks its agent instructions as `Agents.md`; release-flow
4
- documentation updates must stage that exact path so the release PR includes
5
- the operational guidance as well as its history record.
@@ -1,4 +0,0 @@
1
- ## Release 0.13.9
2
-
3
- - Bump the Cargo and npm package versions together after merging PR #331.
4
- - Refresh the workspace lockfile before creating the release PR and tag.
@@ -1,13 +0,0 @@
1
- # Release 0.13.10
2
-
3
- Release the agent migration convergence improvements merged in PR #333:
4
-
5
- - quoted Cirru import-list input for `cr edit imports`;
6
- - safe transaction round-tripping for quoted empty lists;
7
- - revision support for leaf examples and definition-attached tests;
8
- - a larger codegen worker stack for finite real-world module graphs;
9
- - corrected tree path help and serialized snapshot mutation guidance.
10
-
11
- The changes were validated against the Respo dependency chain without Lilac or
12
- the external `calcit-test` module, in addition to the full Calcit Rust, native,
13
- JavaScript, agent-interface, and WASM gates.
@@ -1,5 +0,0 @@
1
- ## Release 0.13.11
2
-
3
- - Bump the Cargo crate and `@calcit/procs` package together so published artifacts stay version-aligned.
4
- - This release includes trailing `Option` parameter sugar, stronger typed Option/struct handling, and the terminating JS string replacement fix from the preceding merged PRs.
5
- - Run the full repository validation before tagging and publishing the release.
@@ -1,5 +0,0 @@
1
- # Release 0.13.12
2
-
3
- - 合并类型指导与 Dynamic 审计能力,强化 Option/Result 的组合式使用建议。
4
- - 支持 `Struct :field value` 类型化构造语法,省略的 `Option<T>` 字段自动补为 `%none`。
5
- - 更新 Struct、Agent 和类型系统相关文档及回归测试。
@@ -1,9 +0,0 @@
1
- # release 0.13.13 from caps module-store branch
2
-
3
- ## Summary
4
-
5
- - Released version `0.13.13` directly from `codex/caps-project-module-store`
6
- while keeping the feature branch unmerged, as requested.
7
- - Kept the Rust crate, npm package, and workspace lockfile versions aligned.
8
- - The branch had already passed PR CI; the release update was additionally
9
- checked with formatting and the `caps` test suite.
@@ -1,10 +0,0 @@
1
- # Release Calcit 0.13.15
2
-
3
- ## Change summary
4
-
5
- - Released the merged `decode-map-as` runtime decoder and its core snapshot metadata, examples, and tests.
6
- - Kept Cargo and npm package versions synchronized at `0.13.15` for the direct-main release workflow.
7
-
8
- ## Knowledge point
9
-
10
- Version-only release changes are allowed directly on `main`; the functional implementation was merged and validated before this release commit. The release tag is created from the synchronized `main` commit so Cargo and npm publish the same version.
@@ -1,5 +0,0 @@
1
- # Release 0.13.17
2
-
3
- - PR #358 已合并到 `main`,包含嵌套 Struct 类型上下文修复、typed Struct 访问引导、项目源码迁移告警边界和 `.calcit/snippets/` 路径提示。
4
- - Cargo 与 npm 包版本同步从 `0.13.16` 升至 `0.13.17`,并执行 `cargo update --workspace` 更新 `Cargo.lock`。
5
- - 本次 release commit 位于已验证的 `main`,后续从该提交创建不带 `v` 前缀的 `0.13.17` tag 并发布 GitHub Release。
@@ -1,6 +0,0 @@
1
- # 2026-08-17 00:06 发布 0.13.18
2
-
3
- - PR #363 已合并到 `main`,修复宏展开字段告警的源码位置误判。
4
- - 将 `Cargo.toml` 与 `package.json` 版本统一升级到 `0.13.18`。
5
- - 执行 `cargo update --workspace` 同步 `Cargo.lock`,依赖版本无变化。
6
- - 后续从已同步的 `main` 创建并推送不带 `v` 前缀的 `0.13.18` tag,触发 crates.io 与 npm 发布。
@@ -1,6 +0,0 @@
1
- # Project module runtime resolution
2
-
3
- - `caps` already stores immutable dependency revisions in `~/.config/calcit/modules/.store/` and builds the project's `.calcit/modules/` link view.
4
- - Runtime loaders must consume only that project view. Retaining a global module fallback can silently run a dependency revision that was not selected by the project's dependency graph.
5
- - Centralize the project module directory calculation in `calcit::project_module_folder`, then use it for normal execution, WASM codegen, queries, configuration inspection, markdown checks, call-graph comparison, and the Cirru integration harness.
6
- - Keep explicitly relative and absolute module paths working; only package-style module paths are constrained to the project view.
@@ -1,6 +0,0 @@
1
- # Visible module versions and cache cleanup
2
-
3
- - Store immutable module revisions under `~/.config/calcit/modules/versions/` instead of a hidden `.store/` directory, retaining the owner, repository, and resolved commit in the path.
4
- - Write `metadata.txt` beside each cached revision so the requested reference remains inspectable and global cleanup can select the highest SemVer release without a network request. When one commit is observed through multiple refs, retain the highest observed SemVer ref for cleanup ordering.
5
- - Add `caps clean` as an explicit global cleanup command. It preserves one newest revision per module (SemVer takes precedence; materialization time breaks non-SemVer ties) and removes older revision directories.
6
- - Rewrite `~/.config/calcit/modules/AGENTS.md` on each `caps` invocation. The guide treats `versions/` as immutable cache data and directs dependency changes through a repository commit, new tag, dependency update, and reinstall.
@@ -1,5 +0,0 @@
1
- # Module caches root
2
-
3
- - Move the global immutable cache from the nested `modules/versions/` proposal to the clearer sibling path `~/.config/calcit/module-caches/`.
4
- - Keep `~/.config/calcit/modules/` reserved for the legacy module root and per-project link vocabulary; `module-caches/AGENTS.md` is the authoritative generated guidance for cached revisions.
5
- - Derive the cache root as a sibling of `CALCIT_MODULES_DIR`, so custom test and CI roots preserve the same `modules/` plus `module-caches/` layout.
@@ -1,5 +0,0 @@
1
- # Module cache review follow-up
2
-
3
- - Scope `cr docs` module documentation and scope discovery to the current project's `.calcit/modules/` directory, removing the final global fallback.
4
- - Register each successfully materialized project module view in `module-caches/projects/`; global cleanup preserves every cached revision that remains linked by one of those views.
5
- - When a cached commit is later resolved through a SemVer tag, refresh its metadata with the highest observed SemVer ref so cleanup ordering stays correct.
@@ -1,4 +0,0 @@
1
- # Release 0.13.19
2
-
3
- - Publish the project-scoped module resolution, visible `module-caches` store, safe cleanup, and documentation fixes from PR #364.
4
- - Keep Cargo and npm package versions synchronized at `0.13.19` for the direct PR-branch release.
@@ -1,4 +0,0 @@
1
- # Module path resolution documentation
2
-
3
- - Clarify that project-local `.calcit/modules/` links are mandatory only for package-style module paths.
4
- - Preserve the documented behavior of explicit relative paths (resolved from the snapshot) and absolute paths (resolved directly).
@@ -1,5 +0,0 @@
1
- # Module cache review follow-up
2
-
3
- - Added a shared inter-process metadata lock for cache revision metadata updates and cleanup scans, preventing concurrent `caps` processes from losing the highest observed SemVer reference.
4
- - Made project-view installation transactional across module links and `caps-state.cirru`; registration failures now restore the previous view and state before returning an error.
5
- - Added concurrency and rollback regression tests, and routed module documentation tests through project-root-aware resolver helpers so the production path is covered.
@@ -1,5 +0,0 @@
1
- # Module cache locking follow-up
2
-
3
- - Replaced removable lock files with OS-managed `fs4` locks, so ownership is released when the handle or process exits on every supported platform.
4
- - Held the cache lock across revision installation and metadata publication, and added a project-scoped lock spanning module view activation, state replacement, registration, rollback, and cleanup.
5
- - Isolated the documentation fallback regression test against the actual `$HOME/.config/calcit/modules` layout without leaking the test environment.
@@ -1,4 +0,0 @@
1
- # 2026-08-17 14:38 — Serialize documentation HOME access
2
-
3
- - Shared the documentation test HOME mutex between `TestHome` and tests that read the guidebook through the process environment.
4
- - Guarded `collect_docs_for_query_uses_guidebook_without_module` so it cannot race with tests that temporarily replace `HOME`.
@@ -1,4 +0,0 @@
1
- # Address dependency audit documentation review
2
-
3
- - Clarified that `docs check-md --entry` takes a snapshot filename, unlike named-entry selection in `config modules` and top-level `--check-only`.
4
- - Recorded Markdown validation for both changed dependency-audit documents.
@@ -1,5 +0,0 @@
1
- # Release 0.13.20
2
-
3
- - Publish the typed JavaScript FFI capability boundary and browser/Node target validation from PR #367.
4
- - Reorganize and expand the JavaScript FFI documentation, including adapter design, diagnostics, and release checks.
5
- - Keep Cargo and npm package versions synchronized at `0.13.20` for the direct PR-branch release.
@@ -1,5 +0,0 @@
1
- # Release 0.13.21
2
-
3
- - Publish the typed JavaScript FFI boundary and the related struct/enum type-resolution fixes merged from PR #367.
4
- - Improve migration diagnostics for projects moving their version field to `deps.cirru`.
5
- - Keep Cargo and npm package versions synchronized at `0.13.21`.