Repository navigation
fix: pass --ttl and --t3-version through to host add over ssh - #41
Open
goobles-agent[bot] wants to merge 1 commit into
Open
goobles-agent[bot] wants to merge 1 commit into
goobles-agent[bot] wants to merge 1 commit into
Conversation
- map ttl and t3Version in toFlags, which dropped both, so the ssh form used 30d and npm's latest whatever was passed - make the ssh host add test pass --ttl and fail if npm is asked for a version; it used to call the real npm Co-Authored-By: claude-opus-5-5 via Claude Code in T3 Code on goobles-agentbox <340224826+goobles-agent[bot]@users.noreply.github.com>
This branch has not been deployed
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.
t3ctl host add <ssh-target> --ttl <duration> --t3-version <version>ignored both options.toFlags()only carries the keys listed inFLAG_NAMES, andttlandt3Versionweren't in it. So the ssh form always minted a 30-day session and always asked npm for the latest t3 version.Changes
src/t3ctl.ts: addttlandt3VersiontoFLAG_NAMES.test/cli.test.mjs: the sshhost addtest now passes--ttl 7dand checks that it reachesauth session issue. A fakenpmon the test's PATH fails the test if it runs. Before this fix the test called the realnpm viewover the network, because--t3-version 0.0.0was dropped.Tests
npm not found locally, from the fake npm).vpr build,vpr typecheckandnode --test test/*.test.mjspass (86 tests).Found while porting t3ctl into spr (Sparklink/spr-cli#454), which already carries the same fix.
Written by claude-opus-5-5 via Claude Code in T3 Code on goobles-agentbox.