Structs§
Constants§
- HARNESS_
MIGRATION_ DISAGREEMENTS - Legacy globals whose hand-written migration deliberately differs from what a name lookup in the generated table finds, with the reason.
- HARNESS_
REPLACEMENT_ FAMILIES - The
harness_*_replacementfamilies, in one list so anything meaning “any capability migration” walks the same set.
Functions§
- find_
closest_ match - Find the closest match to
nameamongcandidates, withinmax_distedits or by reordering its non-empty underscore-separated segments. Candidates within the edit-distance threshold rank ahead of reorder-only matches. - generated_
harness_ migration - The typed harness path that replaced a removed global, from the generated
projection of
harn_vm::stdlib::harness_migration_for_builtin. - harness_
clock_ replacement - Map an ambient clock-capability builtin to its
harness.clock.*replacement. Returns the new identifier text (including the receiver path) so thebindings/thread-harness-clockrepair can replace the call-site identifier in place. The mapping is the source of truth for the E4.3 → E4.6 migration; downstream replatform agents query it via [Code::repair_template]. - harness_
env_ replacement - Map an ambient env-capability builtin to its
harness.env.*replacement. Backs thebindings/thread-harness-envrepair. - harness_
fs_ replacement - Map an ambient fs-capability builtin to its
harness.fs.*replacement. Backs thebindings/thread-harness-fsrepair the E4.4 → E4.6 migration uses to rewrite.harnscripts off the legacy surface. - harness_
net_ replacement - Map an ambient net-capability builtin to its
harness.net.*replacement. Backs thebindings/thread-harness-netrepair. Every script-facing network effect is exposed only throughHarnessNet; response constructors and event encoders remain pure globals. - harness_
random_ replacement - Map an ambient random-capability builtin to its
harness.random.*replacement. Backs thebindings/thread-harness-randomrepair. - harness_
stdio_ replacement - Map an ambient stdio-capability builtin to its
harness.stdio.*replacement soharn fixcan replace the call in place once the relevant harness binding is available. - lexer_
error_ code - normalize_
diagnostic_ path - Normalize diagnostic filenames lexically for display.
- parser_
error_ code - parser_
error_ help - parser_
error_ label - parser_
error_ message - removed_
global_ replacement - What an undefined name should have been, for the type checker’s “did you mean”.
- renamed_
stdlib_ symbol - Return the replacement for stdlib symbols that were directly renamed.
- render_
diagnostic - Render a Rust-style diagnostic message.
- render_
diagnostic_ with_ code - render_
diagnostic_ with_ related - render_
type_ diagnostic