INNER CODE UNIT · TypeScript
hasExplicitSandboxOption
superagent-ai/grok-cli · src/index.ts:188
function hasExplicitSandboxOption(options: CliOptions): boolean {
return options.sandbox === true || options.sandbox === false;
}
async function promptWorkspaceTrust(
cwd: string,
sandboxSupported = isShuruSandboxSupported(),
): Promise<ReturnType<typeof resolveWorkspaceTrustPromptAnswer>> {
const message = sandboxSupported
? [
"",
`Grok has not been run in ${cwd} before.`,
"",
"Sandbox mode isolates agent shell commands in a Shuru microVM so",
"untrusted repos cannot touch your host filesystem or network by default.",
"",
"Run grok in sandbox mode for this directory?",
"",