Repository navigation
Conversation
yoavain
commented
Nov 29, 2026
Owner
- Add an offer to run setup when the shell has no wtp command. npm install -g cannot show this step to the user.
- Ask only before the TUI, list, ls, assign and switch, and only in a terminal. Skip --json and assign --no-cd.
- Save wtp.setupPrompt false in the global git config after a clear "n". Ctrl+C exits with code 130 and saves nothing.
- Delete wtp.setupPrompt on setup and on setup --remove.
- Skip the offer when the profile has the wtp function but the shell has not loaded it. Setup adds nothing there.
- Skip the offer when setup cannot give the shell a wtp command.
- Ignore the node_modules/.bin folders on PATH. npx adds its own worktree-pool there. Setup must not write launchers into these folders.
- Do not ask when stderr is not a terminal. The user cannot see the question there.
- End a successful setup with one "Next:" line. Hide the other hints about the shell in that run.
- Add askAnswer under askYesNo. The offer must tell a clear no from Ctrl+C and from other input.
- Update the install section of the README with two steps. Keep the step labels outside the code block. cmd passes a # comment to npm as arguments.
- Add tests for the offer, the answers and wtp.setupPrompt.
- Stub resetPrompt in the setup tests. The real function changes the global git config of the developer.
* Add an offer to run setup when the shell has no wtp command. npm install -g cannot show this step to the user. * Ask only before the TUI, list, ls, assign and switch, and only in a terminal. Skip --json and assign --no-cd. * Save wtp.setupPrompt false in the global git config after a clear "n". Ctrl+C exits with code 130 and saves nothing. * Delete wtp.setupPrompt on setup and on setup --remove. * Skip the offer when the profile has the wtp function but the shell has not loaded it. Setup adds nothing there. * Skip the offer when setup cannot give the shell a wtp command. * Ignore the node_modules/.bin folders on PATH. npx adds its own worktree-pool there. Setup must not write launchers into these folders. * Do not ask when stderr is not a terminal. The user cannot see the question there. * End a successful setup with one "Next:" line. Hide the other hints about the shell in that run. * Add askAnswer under askYesNo. The offer must tell a clear no from Ctrl+C and from other input. * Update the install section of the README with two steps. Keep the step labels outside the code block. cmd passes a # comment to npm as arguments. * Add tests for the offer, the answers and wtp.setupPrompt. * Stub resetPrompt in the setup tests. The real function changes the global git config of the developer.
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #31 +/- ##
==========================================
+ Coverage 84.23% 84.75% +0.52%
==========================================
Files 57 58 +1
Lines 1605 1660 +55
Branches 531 555 +24
==========================================
+ Hits 1352 1407 +55
- Misses 121 122 +1
+ Partials 132 131 -1 ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
* Set sourceMap to false in tsconfig.build.json. The package does not ship the src files for the maps. * Add a prebuild script to delete dist. A build does not remove old files, so npm pack includes them. * Add rimraf 6.1.4 for this script. Snyk rates it Healthy. Sibling projects use it too.
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.