Commit 193b07d
Add clone parameter support to startWorkspace in web and mobile clients (#12)
Previously, the `--clone` flag was only supported in the CLI's `perry start` command
and worked correctly on the backend. However, the web and mobile API clients had
type definitions and function signatures for `startWorkspace` that didn't include
the `clone` parameter, preventing UI clients from passing repository URLs when
starting workspaces.
This change updates both web and mobile API clients to:
- Add `clone` and `env` optional parameters to the `start` RPC type definition
- Update the `startWorkspace` function to accept and pass through these options
This aligns the web/mobile clients with the CLI behavior where `perry start --clone <url>`
creates a workspace with a repository if it doesn't exist.
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-authored-by: Claude Sonnet 4.5 <noreply@anthropic.com>1 parent b3c6454 commit 193b07d
2 files changed
Lines changed: 6 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
151 | 151 | | |
152 | 152 | | |
153 | 153 | | |
154 | | - | |
| 154 | + | |
155 | 155 | | |
156 | 156 | | |
157 | 157 | | |
| |||
230 | 230 | | |
231 | 231 | | |
232 | 232 | | |
233 | | - | |
| 233 | + | |
| 234 | + | |
234 | 235 | | |
235 | 236 | | |
236 | 237 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
53 | 53 | | |
54 | 54 | | |
55 | 55 | | |
56 | | - | |
| 56 | + | |
57 | 57 | | |
58 | 58 | | |
59 | 59 | | |
| |||
107 | 107 | | |
108 | 108 | | |
109 | 109 | | |
110 | | - | |
| 110 | + | |
| 111 | + | |
111 | 112 | | |
112 | 113 | | |
113 | 114 | | |
| |||
0 commit comments