(root: string, project: string, port: number)
| 5 | /** POSIX shell word quoting; paths and indexed names are data, never commands. */ |
| 6 | export const shellWord = (value: string): string => `'${value.replaceAll("'", "'\\''")}'`; |
| 7 | export 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 | |
| 10 | export default function AgentSetup({ api, project, port }: { api?: Pick<AtlasApi, 'repoInfo'>; project?: string; port: number }) { |
| 11 | const [open, setOpen] = useState(false); |
no test coverage detected