mirror of
https://github.com/google-gemini/gemini-cli.git
synced 2026-04-21 10:34:35 -07:00
feat(sandbox): dynamic macOS sandbox expansion and worktree support (#23301)
This commit is contained in:
@@ -31,7 +31,11 @@ import {
|
||||
sanitizeEnvironment,
|
||||
type EnvironmentSanitizationConfig,
|
||||
} from './environmentSanitization.js';
|
||||
import { NoopSandboxManager, type SandboxManager } from './sandboxManager.js';
|
||||
import {
|
||||
NoopSandboxManager,
|
||||
type SandboxManager,
|
||||
type SandboxPermissions,
|
||||
} from './sandboxManager.js';
|
||||
import type { SandboxConfig } from '../config/config.js';
|
||||
import { killProcessGroup } from '../utils/process-utils.js';
|
||||
import {
|
||||
@@ -84,6 +88,7 @@ export type ShellExecutionResult = ExecutionResult;
|
||||
export type ShellExecutionHandle = ExecutionHandle;
|
||||
|
||||
export interface ShellExecutionConfig {
|
||||
additionalPermissions?: SandboxPermissions;
|
||||
terminalWidth?: number;
|
||||
terminalHeight?: number;
|
||||
pager?: string;
|
||||
@@ -441,6 +446,7 @@ export class ShellExecutionService {
|
||||
...shellExecutionConfig,
|
||||
...(shellExecutionConfig.sandboxConfig || {}),
|
||||
sanitizationConfig,
|
||||
additionalPermissions: shellExecutionConfig.additionalPermissions,
|
||||
},
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user