Repository navigation
Conversation
…thods
validate_syntax warned "unknown method(s)" on code that renders fine,
because it only knew a hand-curated list of Replicad methods:
- Calls on ECMAScript built-ins (`Math.cos`, `Number.isFinite`) are now
resolved against the real built-in, so `Math.cso(` is still flagged.
- EdgeFinder/FaceFinder/CornerFinder filters (`e.inDirection("Y")` in a
fillet callback) join the list. A test reads the bundled replicad
typings and fails if a new filter is missing.
- Array, String and Number instance methods (`pts.map`, `parts.push`,
`n.toFixed`, `Object.keys(o).map`) are accepted when the prototype has
them as functions, so the check can't drift.
Typos like `.extrdue(`, `Math.cso(` and `pts.pussh(` are still reported.
The cost: a Replicad typo that is also an array or string method goes
unflagged. Of the 92 built-in names, the realistic one is `.filter(` or
`.fill(` for `.fillet(`, and that still fails at runtime with "not a
function".
Extension, mcp-server and plugin manifest move to 1.30.1.
Co-Authored-By: Claude Opus 5.5 <[email protected]>
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
asbis
added a commit
that referenced
this pull request
Oct 13, 2026
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Co-Authored-By: Claude Opus 5.5 <[email protected]>
This branch was successfully deployed
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.
validate_syntaxwarned "unknown method(s)" on.shape.tscode that renders fine, because it only knew a hand-curated list of Replicad methods. Three kinds of calls now pass:Math.cos(a),Number.isFinite(x)Math.cso(is still flagged.fillet(2, (e) => e.inDirection("Y"))pts.map(...),parts.push(x),n.toFixed(2),Object.keys(o).map(...)Array.prototype,String.prototypeorNumber.prototypehas the name as a functionTypos are still reported:
.extrdue(,Math.cso(,pts.pussh(.Trade-off. A Replicad typo that is also an array or string method now goes unflagged. Of the 92 built-in method names, five also exist in Replicad (
find,normalize,reverse,sub,constructor) and are valid either way. The realistic typo that gets through is.filter(or.fill(for.fillet(. Excluding those names would bring back warnings on everyarr.filter(...)andArray(n).fill(0), and the typo still fails at runtime with "not a function".Extension, mcp-server and plugin manifest move to 1.30.1.
Test plan
pnpm --filter @shapeitup/mcp-server exec vitest run: 308/308. The three new instance-method tests fail with the prototype check switched off.pnpm lintexits 0pnpm release:check: version checks pass at 1.30.1. Before the commit it still reported a dirty working tree and that the branch isn't master.🤖 Generated with Claude Code