(flag: string, action: 'start' | 'stop' | 'restart')
| 274 | } |
| 275 | |
| 276 | private assertLifecycleFlag(flag: string, action: 'start' | 'stop' | 'restart') { |
| 277 | if (isMcpLifecycleFlag(flag)) { |
| 278 | return |
| 279 | } |
| 280 | throw new Error( |
| 281 | `${flag} is not a lifecycle-managed FlyEnv service and cannot be ${action}ed via MCP. ` + |
| 282 | 'Use list_online_versions plus install_service for installable runtimes/toolchains such as bun, ' + |
| 283 | 'and manage project execution outside these service lifecycle tools.' |
| 284 | ) |
| 285 | } |
| 286 | |
| 287 | private assertInstallableFlag(flag: string) { |
| 288 | if (isMcpInstallableFlag(flag)) { |
no test coverage detected