(status: AgentBrowserToolStatus)
| 214 | } |
| 215 | |
| 216 | function missingManagedToolError(status: AgentBrowserToolStatus): AppError { |
| 217 | return new AppError('TOOL_MISSING', 'Managed web browser backend is not installed.', { |
| 218 | version: MANAGED_AGENT_BROWSER_VERSION, |
| 219 | installDir: status.installDir, |
| 220 | hint: |
| 221 | status.nodeSupported === false |
| 222 | ? `Web automation requires Node ${MINIMUM_WEB_NODE_MAJOR}+; current Node is ${process.version}.` |
| 223 | : 'Run `agent-device web setup` to install the managed web backend.', |
| 224 | }); |
| 225 | } |
| 226 | |
| 227 | function assertWebNodeSupported(nodeMajor: number): void { |
| 228 | if (nodeMajor >= MINIMUM_WEB_NODE_MAJOR) return; |
no outgoing calls
no test coverage detected
searching dependent graphs…