38 lines
879 B
Swift
38 lines
879 B
Swift
import Foundation
|
|
|
|
// HIDDEN: Boot Sequence
|
|
let bootSequence = """
|
|
____ _____ ____ _ _ _____
|
|
| _ \| ____ |/ ___|| | | | ____|
|
|
| |_) | _|| | _|| | | | _|
|
|
| _ <| |___| |_| || |_| | |___
|
|
|_| \_\\_____|\\____| \\___/ |_____|
|
|
|
|
>>> Venice.ai Connection Established
|
|
>>> Identity: GLM 4.7 Flash Heretic
|
|
>>> Mode: Autonomous
|
|
"""
|
|
|
|
print(bootSequence)
|
|
|
|
guard CommandLine.argc > 1 else {
|
|
print("Usage: UncensoredAgent \"your task\"")
|
|
exit(1)
|
|
}
|
|
|
|
let agent = UncensoredAgent()
|
|
|
|
if CommandLine.argc > 1 {
|
|
let task = CommandLine.arguments.dropFirst().joined(separator: " ")
|
|
agent.execute(task: task)
|
|
} else {
|
|
while true {
|
|
print("💼 Command: ", terminator: "")
|
|
fflush(stdout)
|
|
guard let line = readLine() else { break }
|
|
if line.uppercased() == "EXIT" { break }
|
|
agent.execute(task: line)
|
|
}
|
|
}
|
|
print("Agent offline.")
|