MCPcopy Create free account
hub / github.com/DeusData/codebase-memory-mcp / getArch

Function getArch

pkg/npm/install.js:26–32  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

24}
25
26function getArch() {
27 switch (process.arch) {
28 case 'arm64': return 'arm64';
29 case 'x64': return 'amd64';
30 default: throw new Error(`Unsupported architecture: ${process.arch}`);
31 }
32}
33
34// Security: only follow HTTPS URLs (defense-in-depth).
35function validateUrl(url) {

Callers 1

mainFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected