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

Function agentInstallCommand

graph-ui/src/agents/AgentSetup.tsx:7–8  ·  view source on GitHub ↗
(root: string, project: string, port: number)

Source from the content-addressed store, hash-verified

5/** POSIX shell word quoting; paths and indexed names are data, never commands. */
6export const shellWord = (value: string): string => `'${value.replaceAll("'", "'\\''")}'`;
7export const agentInstallCommand = (root: string, project: string, port: number): string =>
8 `python3 ~/Downloads/cbm-atlas-trace.py --install-claude --root ${shellWord(root)} --project ${shellWord(project)} --daemon-url ${shellWord(`http://127.0.0.1:${port}`)}`;
9
10export default function AgentSetup({ api, project, port }: { api?: Pick<AtlasApi, 'repoInfo'>; project?: string; port: number }) {
11 const [open, setOpen] = useState(false);

Callers 2

AgentSetupFunction · 0.85

Calls 1

shellWordFunction · 0.85

Tested by

no test coverage detected