diff --git a/copilot-sdk b/copilot-sdk index 27f487f..062b61c 160000 --- a/copilot-sdk +++ b/copilot-sdk @@ -1 +1 @@ -Subproject commit 27f487f9a65b7b39dbb96d0a13fbedc9c65cbcb1 +Subproject commit 062b61c8aa63b9b5d45fa1d7b01723e6660ffa83 diff --git a/src/Process/ProcessManager.php b/src/Process/ProcessManager.php index d6f0b39..763b06d 100644 --- a/src/Process/ProcessManager.php +++ b/src/Process/ProcessManager.php @@ -144,7 +144,13 @@ public function getStdioTransport(): StdioTransport protected function startProcess(): void { if (empty($this->cliPath)) { - $this->cliPath = (new ExecutableFinder)->find(name: 'copilot', default: 'copilot'); + $this->cliPath = (new ExecutableFinder)->find(name: 'copilot'); + } + + if (empty($this->cliPath)) { + throw new RuntimeException( + 'Path to Copilot CLI is required. Please provide it via the cli_path option, or use cli_url to rely on a remote CLI.', + ); } // Handle 'gh copilot' case