MCPcopy Create free account
hub / github.com/OpenRaiser/NanoResearch / _split_command

Function _split_command

nanoresearch/agents/project_runner_core.py:49–56  ·  view source on GitHub ↗
(command: str)

Source from the content-addressed store, hash-verified

47
48
49def _split_command(command: str) -> list[str]:
50 raw = str(command or "").strip()
51 if not raw:
52 return []
53 try:
54 return shlex.split(raw, posix=platform.system() != "Windows")
55 except ValueError:
56 return raw.split()
57
58
59def _truncate_shell_chain(tokens: list[str]) -> list[str]:

Callers 3

_unwrap_shell_wrapperFunction · 0.85
normalize_target_specFunction · 0.85
_coerce_command_tokensFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected