MCPcopy Create free account
hub / github.com/anus-dev/ANUS / loadSandboxConfig

Function loadSandboxConfig

packages/cli/src/config/sandboxConfig.ts:94–108  ·  view source on GitHub ↗
(
  settings: Settings,
  argv: SandboxCliArgs,
)

Source from the content-addressed store, hash-verified

92}
93
94export async function loadSandboxConfig(
95 settings: Settings,
96 argv: SandboxCliArgs,
97): Promise<SandboxConfig | undefined> {
98 const sandboxOption = argv.sandbox ?? settings.sandbox;
99 const command = getSandboxCommand(sandboxOption);
100
101 const packageJson = await getPackageJson();
102 const image =
103 argv.sandboxImage ??
104 process.env['ANUS_SANDBOX_IMAGE'] ??
105 packageJson?.config?.sandboxImageUri;
106
107 return command && image ? { command, image } : undefined;
108}

Callers 1

loadCliConfigFunction · 0.85

Calls 2

getSandboxCommandFunction · 0.85
getPackageJsonFunction · 0.85

Tested by

no test coverage detected