-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmain.go
More file actions
27 lines (24 loc) · 994 Bytes
/
Copy pathmain.go
File metadata and controls
27 lines (24 loc) · 994 Bytes
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
package main
import (
"github.com/alecthomas/kong"
cli2 "github.com/elek/acpp/cli"
)
type CLI struct {
Replay cli2.Replay `cmd:"" help:"Replay ACP messages from stdin (JSONL) to test channels"`
Cat cli2.Cat `cmd:"" help:"Send prompts from stdin to ACP agent, output JSONL"`
Run cli2.Run `cmd:"" help:"Send prompt to ACP agent and display formatted response"`
Serve cli2.Serve `cmd:"" help:"Start the web UI, scheduler, and (with a token) the Discord bot on a shared router"`
Sandbox cli2.Sandbox `cmd:"" help:"Start an interactive command (bash by default) inside a sandbox"`
Read cli2.Read `cmd:"" help:"Read a text file (used by sandbox delegation)"`
Tck cli2.Tck `cmd:"" help:"Test ACP agent binaries and report a compatibility matrix"`
}
func main() {
var app CLI
ctx := kong.Parse(&app,
kong.Name("acpp"),
kong.Description("Agent Client Protocol Proxy & Utility"),
kong.UsageOnError(),
)
err := ctx.Run()
ctx.FatalIfErrorf(err)
}