Add per-workspace port forwarding configuration#45
Merged
Conversation
- Add `perry ports <name> [ports...]` command to configure ports per workspace - Update `perry proxy` to use configured ports when none specified - Add Port Forwarding card to workspace settings in Web UI - Ports persist in workspace state and are used automatically CLI usage: perry ports myproject 3000 5173 # Configure ports perry proxy myproject # Uses configured ports Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
Comment on lines
+278
to
286
| .handler(async ({ input }) => { | ||
| try { | ||
| return await ctx.workspaces.setPortForwards(input.name, input.forwards); | ||
| } catch (err) { | ||
| mapErrorToORPC(err, 'Failed to set port forwards'); | ||
| } | ||
| }); | ||
|
|
||
| const getInfo = os.handler(async () => { |
This comment was marked as outdated.
This comment was marked as outdated.
Sorry, something went wrong.
Validate port numbers are in valid range 1-65535 at the API boundary, matching CLI and UI validation. Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
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
perry ports <name> [ports...]CLI command to configure ports per workspaceperry proxyto use configured ports when none specifiedUsage
CLI:
Web UI:
Workspace Settings tab → Port Forwarding section
Test plan
perry portssaves and retrieves portsperry proxyuses configured ports🤖 Generated with Claude Code