Composio powers 1000+ toolkits, tool search, context management, authentication, and a sandboxed workbench to help you build AI agents that turn intent into action.

next
ts 20 lines 679 Bytes
Raw
1 import { Data, Runtime } from 'effect';
2
3 /**
4 * Aborted shell setup must fail the process: install.sh only runs its guarded
5 * inline PATH fallback when `composio install` exits non-zero, so a successful
6 * exit here would leave the user with no PATH setup and a green install. The
7 * abort reason is already printed before this error is raised, so the runtime
8 * prints nothing further (`[Runtime.errorReported]` is false) and exits 1.
9 */
10 export class ShellSetupAbortError extends Data.TaggedError('commands/ShellSetupAbortError')<{
11 readonly message: string;
12 }> {
13 get [Runtime.errorReported]() {
14 return false;
15 }
16
17 get [Runtime.errorExitCode]() {
18 return 1;
19 }
20 }