()
| 153 | } |
| 154 | |
| 155 | override getTools(): ToolSet { |
| 156 | return createAITools({ |
| 157 | workspace: this.workspace, |
| 158 | shell: { |
| 159 | defaultBackend: "shell", |
| 160 | backends: { |
| 161 | shell: { |
| 162 | description: |
| 163 | "just-bash in a Dynamic Worker. Cold-start fast, no " + |
| 164 | "container, no public network. Good for cat / grep / sed / " + |
| 165 | "awk / jq / head / tail / sort / find, quick file " + |
| 166 | "inspection, text transformations, and `git` (clone / " + |
| 167 | "status / diff / log) — the shell registers a built-in " + |
| 168 | "`git` command that forwards to the host workspace, so " + |
| 169 | "network-bound subcommands like `git clone` work even " + |
| 170 | "though the isolate itself has no public network. Only " + |
| 171 | "https:// URLs are supported. Cannot run npm, node, python, " + |
| 172 | "or any binary outside just-bash's built-in command set.", |
| 173 | }, |
| 174 | container: { |
| 175 | description: |
| 176 | "Cloudflare Container running computerd over capnweb. Full Linux " + |
| 177 | "userland: npm, node, python, package managers, test " + |
| 178 | "runners, real binaries on $PATH, and public network. Cold " + |
| 179 | "start is much slower because the container must boot; " + |
| 180 | "reach for it when the shell backend can't run the command. " + |
| 181 | "For git itself, prefer the shell backend.", |
| 182 | }, |
| 183 | }, |
| 184 | }, |
| 185 | }); |
| 186 | } |
| 187 | } |
nothing calls this directly
no test coverage detected