Repository navigation
feat(agent-gh): add a native Windows PowerShell 7 build - #26
Merged
Merged
Conversation
Architecture Inside the changed components — 1 viewComponent view — Windows agent-gh tooling Platform router, installation scripts, and the native PowerShell agent-gh wrapper
Data flow The other flows — 1 sequence
Tip Run 🪧 More tips
Thanks for using PR Lens! It's free for OSS. If it helped, a star helps other teams find it. |
1 of 6 tasks
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.
🔗 Linked issue
❓ Type of change
📚 Description
agent-ghonly ran through bash, so Windows hosts needed WSL or Git Bash to read public GitHub data aswolfstar-agent-beep. This addsscripts/github-public.ps1, a native PowerShell 7 twin ofscripts/github-public.sh. It allows the same reads, refuses the same writes, raw GraphQL, non-GETAPI calls, headers, host overrides and input files, and never falls back to personal credentials.$HOME\.config\wolfstar-agent-kit\github-public-token.agent-gh --setup-tokenprompts without echo and creates the file with a protected ACL for the user,SYSTEMandAdministrators. A normal read never creates it. A file with any other allow rule, a link, or a token that is notgithub_pat_is refused.gh.exeonly, neverPATHor the working directory.GH_TOKEN,GH_HOST,GH_PROMPT_DISABLEDandGH_CONFIG_DIRfor theghcall, clears the conflicting token variables, and restores every previous value afterwards. User and machine variables are untouched.pnpm sync:contextandpnpm check:contextnow go throughscripts/agent-context-platform.ts. Linux and macOS run the same bash scripts as before. Windows runsscripts/sync-agent-context.ps1, which installsagent-gh.ps1in$HOME\.local\binidempotently, never touches the token, and adds the directory to the userPATHonly with-AddToPath.scripts/github-public-ps.test.tsreads the bash allowlist and gh locations and runs one refusal table against both wrappers, so the two cannot drift. A newwindows-2025CI job runs the suite with real ACLs, and the Linux test job now runspnpm test:github-public.Setup, Windows and Linux differences, and troubleshooting live in
docs/agent-gh.md.