fix: cross-runtime compat and bump stitch-sdk to 0.3.5 - #188
Merged
Conversation
- Replace Bun.file() with node:fs/promises readFile in ParseArgsStep so the CLI works via npx/bun x where Bun global is unavailable. - Bump @google/stitch-sdk 0.3.4 → 0.3.5 to fix AJV MissingRefError crash on tool list (schema repair before AJV compilation).
davideast
force-pushed
the
fix/cross-runtime-file-read
branch
from
May 14, 2026 13:34
6ef262c to
64d72e0
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.
Fixes
1.
Bun is not definedwhen running viabun x/npxParseArgsStep.tsusedBun.file()to read the-fargument file. TheBunglobal is not available when the CLI is invoked viabun xornpx. Replaced withreadFile()fromnode:fs/promiseswhich works in both runtimes.2.
MissingRefError: can't resolve reference #/$defs/ScreenInstanceBumps
@google/stitch-sdkfrom0.3.4to0.3.5, which repairs tool schemas before AJV compilation can trigger a crash. See google-labs-code/stitch-sdk#355.Changes
src/commands/tool/steps/ParseArgsStep.tsBun.file()→readFile()fromnode:fs/promisespackage.json@google/stitch-sdk0.3.4→0.3.5bun.lock