INNER CODE UNIT · TypeScript

promptWorkspaceTrust

superagent-ai/grok-cli · src/index.ts:192

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?",
        "",
        "  [Y] Yes, always in sandbox",
        "  [n] No, run on host",
        "  [s] Yes, this session only",
        "",

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…