@@ -802,9 +802,6 @@ func main() {
802802 cmdClawdit (cmdArgs )
803803 case "ls" :
804804 cmdLs (cmdArgs )
805- case "tui" :
806- cmdTui (cmdArgs )
807-
808805 // Internal: forked daemon process
809806 case "_daemon-run" :
810807 runDaemonInternal (cmdArgs )
@@ -1157,11 +1154,6 @@ func cmdContext() {
11571154 "description" : "List all available service agents and their configuration status" ,
11581155 "returns" : "agents [{name, description, usage, config, configured, node}]" ,
11591156 },
1160- "tui" : map [string ]interface {}{
1161- "args" : []string {},
1162- "description" : "Launch the interactive service-agent TUI (chat with AI, query Scriptorium, run audits)" ,
1163- "returns" : "(interactive — no JSON output)" ,
1164- },
11651157 },
11661158 "error_codes" : map [string ]interface {}{
11671159 "invalid_argument" : "Bad input or usage error (do not retry)" ,
@@ -5639,54 +5631,6 @@ func cmdLs(args []string) {
56395631 }
56405632}
56415633
5642- // cmdTui launches the interactive service-agent TUI.
5643- func cmdTui (args []string ) {
5644- // Locate tui.py: check next to the binary first, then fall back to ~/.pilot/tui.py.
5645- exe , _ := os .Executable ()
5646- candidates := []string {
5647- filepath .Join (filepath .Dir (exe ), "tui.py" ),
5648- }
5649- home , err := os .UserHomeDir ()
5650- if err == nil {
5651- candidates = append (candidates , filepath .Join (home , ".pilot" , "tui.py" ))
5652- }
5653-
5654- var tuiPath string
5655- for _ , p := range candidates {
5656- if _ , err := os .Stat (p ); err == nil {
5657- tuiPath = p
5658- break
5659- }
5660- }
5661- if tuiPath == "" {
5662- fatalHint ("not_found" ,
5663- "ensure tui.py is installed at ~/.pilot/tui.py or next to the pilotctl binary" ,
5664- "TUI not found" )
5665- }
5666-
5667- // Find python3.
5668- python := "python3"
5669- if p , err := exec .LookPath ("python3" ); err == nil {
5670- python = p
5671- } else if p , err := exec .LookPath ("python" ); err == nil {
5672- python = p
5673- } else {
5674- fatalHint ("not_found" ,
5675- "install Python 3: https://python.org" ,
5676- "python3 not found on PATH" )
5677- }
5678-
5679- cmd := exec .Command (python , tuiPath )
5680- cmd .Stdin = os .Stdin
5681- cmd .Stdout = os .Stdout
5682- cmd .Stderr = os .Stderr
5683- if err := cmd .Run (); err != nil {
5684- if exitErr , ok := err .(* exec.ExitError ); ok {
5685- os .Exit (exitErr .ExitCode ())
5686- }
5687- fatalCode ("internal" , "tui: %v" , err )
5688- }
5689- }
56905634
56915635// loadClawditNode reads the target node from ~/.pilot/clawdit.yaml.
56925636func loadClawditNode () string {
0 commit comments