Add Windows PowerShell support, .env config, and dependency auto-install#3
Open
adam110th wants to merge 1 commit intos2-streamstore:mainfrom
Open
Add Windows PowerShell support, .env config, and dependency auto-install#3adam110th wants to merge 1 commit intos2-streamstore:mainfrom
adam110th wants to merge 1 commit intos2-streamstore:mainfrom
Conversation
New files: - install.ps1: Windows installer (full port of install.sh) - uninstall.ps1: Windows uninstaller (full port of uninstall.sh) - statusline.ps1: Windows status line + cached poller - .gitignore: Python, bash, IDE, OS, and secrets patterns - .env.example: Template with single-quoted API key format Key design decisions: - Native PowerShell JSON (ConvertFrom-Json/ConvertTo-Json) eliminates jq dependency on Windows - Same export ANTHROPIC_API_KEY="..." env file format for cross-platform compatibility; PS scripts parse it with regex - ANSI escape codes via [char]27 for modern Windows Terminal - Background polling via Start-Process -WindowStyle Hidden with self-invocation (-Poll switch), replacing bash's fork+disown - Atomic file writes via temp file + Move-Item -Force Enhancements to existing scripts: - install.sh/install.ps1: Read API key from .env files (script dir and cwd), offer interactive dependency auto-install (uv via official script, jq/curl via detected package manager) - statusline.sh/statusline.ps1: Read API key from .env as fallback - README.md: Windows install/uninstall sections, updated options table, file locations tree, and Windows troubleshooting Co-Authored-By: Claude Opus 4.6 <[email protected]>
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
install.sh,uninstall.sh, andstatusline.shas.ps1equivalents — no jq dependency on Windows (uses nativeConvertFrom-Json/ConvertTo-Json).envfile support: All scripts (bash and PowerShell) now readANTHROPIC_API_KEYfrom.envfiles as an additional key source, with single-quoted value formatNew Files
install.ps1install.sh, native JSON, ANSI colorsuninstall.ps1statusline.ps1Invoke-RestMethodandStart-Process -WindowStyle Hidden.gitignore.env.exampleANTHROPIC_API_KEY='sk-ant-your-key-here'Modified Files
install.sh.envreading,SCRIPT_DIRmoved before key resolution, interactive dep auto-installstatusline.sh.envfallback in background pollerREADME.mdDesign Decisions
export ANTHROPIC_API_KEY="..."env file format — cross-platform compatibility[char]27— works in Windows Terminal and modern PowerShellStart-Process -WindowStyle Hiddenwith-Pollself-invocation — replaces& disownfor background pollingMove-Item -Force(same pattern as bash)Test plan
.\install.ps1 -Help— verified help output.\install.ps1 -ApiKey test-key -Unattended— full install flow completes.\uninstall.ps1 -PurgeData -Unattended— full uninstall flow completesecho '{"model":"claude-opus","contextPercent":42,"cost":"1.23"}' | powershell -File statusline.ps1— outputs[Opus] | 42% | $1.23🤖 Generated with Claude Code