v0.5.1: Windows polish (shell syntax, README)#22
Merged
MasonStation merged 3 commits intomainfrom Apr 22, 2026
Merged
Conversation
Detects the user's shell and emits one variant of the env-var assignment the user needs to paste. First-match-wins rules: 1. $SHELL contains bash/zsh/fish/sh -> export X=Y 2. $PSModulePath is set -> $env:X = "Y" 3. cfg(windows) -> set X=Y 4. fallback -> export X=Y After the block, prints a one-line hint with the alternatives so users can self-correct if detection misfires (Git Bash on Windows correctly falls into case 1 via $SHELL). Previously printed bash 'export X=Y' unconditionally, which failed when pasted into PowerShell or cmd on Windows. Closes #21 Co-Authored-By: Claude Opus 4.7 (1M context) <[email protected]>
Covers: - npx phantom-secrets init works unchanged - PowerShell / cmd / Git Bash export-syntax reference - SAC / Mark-of-the-Web troubleshooting - Known platform gaps (clipboard auto-clear, ARM64) Closes #12 Co-Authored-By: Claude Opus 4.7 (1M context) <[email protected]>
- workspace 0.5.0 -> 0.5.1 (rolls through all 5 crates)
- npm/package.json 0.5.0 -> 0.5.1
- npm/bin/cli.js VERSION 0.5.0 -> 0.5.1
- Cargo.lock refreshed via cargo update --workspace --offline
(5 workspace entries only; no transitive dep changes)
Co-Authored-By: Claude Opus 4.7 (1M context) <[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.
Windows polish pass before first
npm publish. Keeps the first-run experience sane for Windows users.Summary
phantom start#21) — detect `$SHELL` / `$PSModulePath` / cfg(windows) and emit bash `export X=Y`, PowerShell `$env:X = "Y"`, or cmd `set X=Y`. Prints a one-line hint with the alternatives. Previously printed bash unconditionally.Test plan
Release flow after merge
Closes #12, #21