repl: move completion logic to internal module #59889
+878
−786
Merged
Loading