Repository navigation
Fix macOS extension discovery, sim warning and vdev footer; document Codex (v1.30.1) - #10
Merged
Merged
Conversation
- On macOS the MCP server and the VS Code extension never found each other: the server hardcoded ~/.config/Code/... while VS Code keeps globalStorage under ~/Library/Application Support/Code/.... The path now follows VS Code's rules per OS (APPDATA, XDG_CONFIG_HOME) and picks Cursor / Insiders / VSCodium / Windsurf when the extension ran there. - Every render warned `Import "sim" will always be undefined`: both bundlers' filters predated `sim`. They now share one list in @shapeitup/shared, with a test against the wrapper. - Published builds signed tool results `vdev`: the version probe used __dirname, which the ESM bundle doesn't have. Use the baked-in version. - Codex setup in README, the npm README, INSTALL.md and the website, with startup_timeout_sec = 60 and tool_timeout_sec = 180 (Codex defaults: 10 s / 60 s; a cold npx start took 34 s). - CI runs the @shapeitup/shared tests. Co-Authored-By: Claude Opus 5.5 <[email protected]>
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
This was referenced Oct 12, 2026
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.
Summary
Three bugs found while testing the published
@shapeitup/[email protected]from an empty npm cache, plus Codex setup docs.Fixes
~/.config/Code/User/globalStorage/...on every non-Windows OS. VS Code on macOS uses~/Library/Application Support/Code/..., so the extension never saw the server's heartbeat. Live viewer sync,set_render_mode,toggle_dimensionsand workspace-root detection silently did nothing on Mac. On the maintainer's machine there were 114 orphanedmcp-server-heartbeat-*.jsonfiles in~/.config, and the extension's heartbeat lived only under~/Library.resolveGlobalStorageDir()insubscriber-bus.tsfollows VS Code's rules per OS (~/Library/Application Support,APPDATA,XDG_CONFIG_HOME).tools.tsreuses the result instead of its own copy of the path.Import "sim" will always be undefined(including the README's own example). The warning filters inengine.tsandviewer-provider.tspredatedsim. Both now callisOptionalReexportWarning()from@shapeitup/shared, andbundle-spec.test.tsfails if the wrapper gains an export the filter doesn't cover.[shapeitup mcp vdev …]. The version probe used__dirname, which doesn't exist in the ESM bundle. It now usesprocess.env.SHAPEITUP_MCP_VERSION, which esbuild bakes in, asserverInfoalready did.Docs
README.md,packages/mcp-server/README.md,INSTALL.mdand shapeitup.dev:codex mcp add, thenstartup_timeout_sec = 60andtool_timeout_sec = 180.npxstart measured 34 s, andrender_previewitself allows up to 60 s.~/.agents/skills/shapeitup/, Codex's user-level skills directory.Other
@shapeitup/sharedtests (163 tests, including the new one). They passed locally but never ran in CI.Follow-up, not in this PR
engine.tsandviewer-provider.tsstill inline their own copies of the synthetic wrapper instead of callingbuildSyntheticShapeEntry().Test plan
pnpm lintpnpm buildpnpm test: 65 files, 1231 tests passresolveGlobalStorageDir(macOS / Windows / Linux + XDG paths, picks the editor by heartbeat) andisOptionalReexportWarningdist/index.json macOS with a client that discovers the server the wayextension.tsdoes, by readingmcp-server-heartbeat-<pid>.jsonfrom~/Library/Application Support/Code/...:~/.configset_render_modewas delivered to the subscribercreate_shaperendered with nosimwarningv1.30.1🤖 Generated with Claude Code