1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
|
// Command ori-mock-agent is a deterministic ACP agent speaking on stdio.
// It lets you try the full ori experience — streaming, thoughts, plan, tool
// calls, permissions — without Claude Code or any network access:
//
// ori --agent-cmd "bin/ori-mock-agent"
package main
import (
"flag"
"fmt"
"os"
"time"
"rickub.com/bots-garden/ori/internal/mockagent"
)
func main() {
delay := flag.Duration("delay", 300*time.Millisecond, "pause between streamed updates")
flag.Parse()
agent := mockagent.New()
agent.Delay = *delay
if err := agent.Run(os.Stdin, os.Stdout); err != nil {
fmt.Fprintln(os.Stderr, "ori-mock-agent:", err)
os.Exit(1)
}
}
|