(nextPath)
| 141 | } |
| 142 | |
| 143 | function setWorkspacePath(nextPath) { |
| 144 | if (!nextPath || typeof nextPath !== "string") return false; |
| 145 | try { |
| 146 | const stat = fs.statSync(nextPath); |
| 147 | if (!stat.isDirectory()) return false; |
| 148 | currentWorkspace = nextPath; |
| 149 | return true; |
| 150 | } catch { |
| 151 | return false; |
| 152 | } |
| 153 | } |
| 154 | |
| 155 | function buildCliArgs(sessionId, model, isResuming) { |
| 156 | const args = [ |