Remove jq and git endpoint dependencies#13
Open
sibicramesh wants to merge 1 commit into
Open
Conversation
The runner failed on stock macOS endpoints: /usr/bin/git is an Xcode CLT stub that dies headless (no GUI session), and jq isn't present without Homebrew. Both are now gone, so render/runner work with only system tools. - runner.sh: fetch the repo tarball via curl + tar (codeload) instead of git init/fetch/checkout. - render.sh: build config JSON with printf + a small awk/sed escaper instead of jq; output matches jq's pretty-print byte-for-byte. - render-plist.sh: build the profile envelope with printf and let plutil parse + convert it (plutil also validates), dropping jq. plutil stays (macOS-native). - Regenerated examples/claude/settings.windows.json (was stale vs the generator). - Docs: state each script's real prerequisites. All five examples reproduce byte-for-byte from the rewritten scripts under a system-only PATH. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
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.
Why
The Cursor runner failed on stock macOS endpoints under an MDM:
xcode-select: error: No developer tools were found …—/usr/bin/gitis a Command Line Tools stub that can't self-install in a headless (no-GUI) root session.render.sh: error: jq is required—jqisn't present without Homebrew.Both dependencies are now removed, so
render.sh/runner.shrun with only tools that ship with macOS and Linux.What changed
runner.sh— fetches the repo tarball viacurl+tarfromcodeload.github.com/.../tar.gz/$REFinstead ofgit init/fetch/checkout. Same source of truth andREFpinning; only the transport changed.render.sh— builds config JSON withprintf+ a smallawk/sedJSON escaper instead ofjq. Output matches jq's pretty-print byte-for-byte.render-plist.sh— builds the profile envelope withprintfand letsplutilparse + convert it (which also validates), droppingjq.plutilstays (macOS-native, required to emit a real profile).examples/claude/settings.windows.json— regenerated (it was stale vs. even the previous generator).curl+tar,plutil,sh+awk+sed).Verification
examples/reproduce byte-for-byte from the rewritten scripts, run under a system-onlyPATH(/usr/bin:/bin:/usr/sbin:/sbin) to prove nojq/git/Homebrew.--envvalues (quotes, backslash,$, spaces).sh -nclean; bad-input paths still reject with a nonzero exit.No behavior change to the generated configs — only the tooling used to produce them.