Repository navigation
feat(rust): complete native component and scope fork workflows - #276
Merged
zkochan merged 6 commits intoOct 18, 2026
Merged
Conversation
9 tasks done
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Native component and scope fork workflows
bit forkandbit scope forknow use the Rust client engine for local, remote and patterned selection, immutable source capture, materialization, refactoring, bitmap/provenance updates, package links, history and dependency-policy publication. Actual Harmony/environment/onLoad/onComponentAdd, package/compiler and TypeScript AST adapters remain in the installed CLI. Remote forks use private source captures without publishing imported model objects into the consumer scope.The implementation preserves the released CLI’s local/remote option-forwarding differences, remote ordering, duplicate local/remote matches, callback failure prefixes and exact dependency-cache serialization. Shared rename planning reuses lazy package regex matchers per phase and scope rename combines cache seeding with the following on-add host request while retaining capture/proof boundaries.
Validation
26249cc8d.4799396e8, release binary, helper fingerprints, complete samples and prior slower trials are preserved inscripts/rust/benchmarks/fork-planning-reuse*.jsonandfork-completion*.json. The earlier baseline passed all correctness checks but scope rename CI was 1021.802ms versus Node 1014.847ms; the changed implementation measured 1014.069ms versus Node 1041.988ms. No unchanged rerun or sample deletion replaced that result. These are warm-metadata Linux file-remote fixtures, not first-use/network/cross-platform speed claims.Unsupported grammar/inventory and unsafe preflight plans decline before providers or mutation; once effects begin, failures remain owned. Node service retirement remains separate because fallback registrations, IDE APIs, extensions and server endpoints still use those services.
Part of #73. Base:
rust-workspace-materialization; this is a fork PR for subsequent integration into teambit#10813, which remains open.