Commit e04b47f
Changed files (1)
internal
del
internal/del/assistant.go
@@ -1,7 +1,10 @@
package del
import (
+ "bufio"
"fmt"
+ "os"
+ "strings"
)
type Tool struct {
@@ -26,4 +29,19 @@ func NewDel(provider AIProvider) *Del {
func (d *Del) StartREPL() {
fmt.Printf("๐ค Del (%s) is ready!\n", d.aiProvider.Name())
+ fmt.Println("Type 'quit' to exit.")
+ scanner := bufio.NewScanner(os.Stdin)
+
+ for {
+ fmt.Print("๐ค You: ")
+ if !scanner.Scan() {
+ break
+ }
+ input := strings.TrimSpace(scanner.Text())
+ if input == "quit" || input == "exit" {
+ fmt.Println("๐ค Del says: Peace out! โ๏ธ")
+ break
+ }
+ fmt.Printf("๐ค (mock reply): You said '%s'\n", input)
+ }
}