Add stdlib prelude (Power, Ground, NotConnected, Layout, Board)#606
Merged
Add stdlib prelude (Power, Ground, NotConnected, Layout, Board)#606
Conversation
LK
approved these changes
Mar 6, 2026
Build Performance
Measured with hyperfine. Times show median ±stddev. |
There was a problem hiding this comment.
Cursor Bugbot has reviewed your changes and found 1 potential issue.
Bugbot Autofix is OFF. To automatically fix reported issues with cloud agents, enable autofix in the Cursor dashboard.
| ("2.54mm", 2, 16, "Vertical", "Male", "SMD"): WR_PHD_2_54_SMD_MALE_DUAL(32), | ||
| ("2.54mm", 2, 17, "Vertical", "Male", "SMD"): WR_PHD_2_54_SMD_MALE_DUAL(34), | ||
| ("2.54mm", 2, 18, "Vertical", "Male", "SMD"): WR_PHD_2_54_SMD_MALE_DUAL(36), | ||
| } |
There was a problem hiding this comment.
Directory name typo "manufactuers" in new stdlib path
Medium Severity
The new file is placed under stdlib/bom/manufactuers/ which is a misspelling of "manufacturers". Since this becomes part of the stdlib import path (e.g., load("@stdlib/bom/manufactuers/wurth_electronik.zen", ...)), fixing this typo later would be a breaking change for any downstream consumers.
Make Power, Ground, NotConnected, Layout, and Board implicitly available in user .zen files without explicit load() statements. Remove now-redundant imports across all .zen files, tests, examples, and docs.
49b0dd9 to
dede52b
Compare
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.


Make Power, Ground, NotConnected, Layout, and Board implicitly available in user .zen files without explicit load() statements. Remove now-redundant imports across all .zen files, tests, examples, and docs.
Note
Medium Risk
Touches core evaluation and symbol indexing behavior by injecting globals into every user module, which can affect name resolution, load order, and tests (notably net auto-naming); broad surface-area changes but scoped to a small, explicit symbol set with opt-out.
Overview
Adds an evaluator stdlib prelude that auto-injects
Power,Ground,NotConnected,Layout, andBoardinto user.zenmodule scope (with an opt-out flag and automatic disabling for stdlib modules to avoid cycles), and ensures LSP symbol indexing also resolves these implicit symbols.Refactors test harnesses to materialize embedded stdlib
.zensources in-memory (stdlib_files_for_tests/eval_zen) and updates snapshots to account for changed net auto-naming (including regex sanitization in one CLI test).Cleans up repo usage by removing redundant
load()statements across examples/tests/templates/docs, documenting the prelude indocs/pages/spec.mdx, and dropping the embeddedstdlib/docs/spec.md.Written by Cursor Bugbot for commit dede52b. This will update automatically on new commits. Configure here.