Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -519,7 +519,7 @@ persist at a fixed path (a `go run` temp binary is deleted on exit).
* * * * * GITHUB_TOKEN=... cd /home/agentloop && ./agentloop # build once: go build -o agentloop .
```

(`-loop` and `-loop-data` default to `./loop` and `./loop-data`.) The global lock in
(`-loop-dir` and `-loop-data` default to `./loop` and `./loop-data`.) The global lock in
`loop-data/agentloop.lock` ensures overlapping invocations exit immediately, so a short cron
interval is safe.

Expand Down Expand Up @@ -622,7 +622,7 @@ Sub-commands:
| `-rp-id` | `localhost` | WebAuthn Relying Party ID (effective domain, no scheme) |
| `-rp-name` | `AgentLoop` | Shown by the platform's passkey UI |
| `-origins` | derived from `-addr` | Comma-separated list of allowed browser origins |
| `-loop` | `loop` | Config directory |
| `-loop-dir` | `loop` | Config directory |
| `-loop-data` | `loop-data` | Runtime data directory |

For anything other than localhost, run the server behind a TLS-terminating
Expand Down
2 changes: 1 addition & 1 deletion cron.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ import (

func runCron(args []string) error {
fs := flag.NewFlagSet("cron", flag.ContinueOnError)
loopFlag := fs.String("loop", "", "loop config dir (default: <binary-dir>/loop)")
loopFlag := fs.String("loop-dir", "", "loop config dir (default: <binary-dir>/loop)")
dataFlag := fs.String("loop-data", "", "loop data dir (default: <binary-dir>/loop-data)")
logFlag := fs.String("log", "", "log file (default: $HOME/.sharedinbox-agent-logs/agentloop-cron.log)")
if err := fs.Parse(args); err != nil {
Expand Down
6 changes: 3 additions & 3 deletions init.go
Original file line number Diff line number Diff line change
Expand Up @@ -12,16 +12,16 @@ import (
"github.com/guettli/agentloop/internal/loop"
)

// runInit implements: agentloop init [-loop dir] [-loop-data dir] <repo-url>
// runInit implements: agentloop init [-loop-dir dir] [-loop-data dir] <repo-url>
func runInit(args []string) error {
fs := flag.NewFlagSet("init", flag.ContinueOnError)
loopDir := fs.String("loop", "loop", "config directory to create")
loopDir := fs.String("loop-dir", "loop", "config directory to create")
dataDir := fs.String("loop-data", "loop-data", "runtime data directory to create")
if err := fs.Parse(args); err != nil {
return err
}
if fs.NArg() != 1 {
return fmt.Errorf("usage: agentloop init [-loop dir] [-loop-data dir] <repo-url>")
return fmt.Errorf("usage: agentloop init [-loop-dir dir] [-loop-data dir] <repo-url>")
}
return initLoop(*loopDir, *dataDir, fs.Arg(0))
}
Expand Down
2 changes: 1 addition & 1 deletion main.go
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ func helperCmd() string {
}

func run() error {
loopDir := flag.String("loop", "loop", "path to the (git-tracked) config directory")
loopDir := flag.String("loop-dir", "loop", "path to the (git-tracked) config directory")
dataDir := flag.String("loop-data", "loop-data", "path to the runtime data directory (clones, metadata)")
flag.Parse()

Expand Down
2 changes: 1 addition & 1 deletion serve.go
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ const webuiStoreDirName = "webui"
// doing.
func runServe(args []string) error {
fs := flag.NewFlagSet("serve", flag.ContinueOnError)
loopDir := fs.String("loop", "loop", "path to the (git-tracked) config directory")
loopDir := fs.String("loop-dir", "loop", "path to the (git-tracked) config directory")
dataDir := fs.String("loop-data", "loop-data", "path to the runtime data directory")
addr := fs.String("addr", "127.0.0.1:8080", "TCP address to listen on")
rpID := fs.String("rp-id", "localhost", "WebAuthn Relying Party ID (effective domain, no scheme/port)")
Expand Down
6 changes: 3 additions & 3 deletions status.go
Original file line number Diff line number Diff line change
Expand Up @@ -21,16 +21,16 @@ import (
// inspector with no other coupling to the loop runner.
const metaSuffix = ".meta"

// runStatus implements: agentloop status [-loop dir] [-loop-data dir]
// runStatus implements: agentloop status [-loop-dir dir] [-loop-data dir]
func runStatus(args []string) error {
fs := flag.NewFlagSet("status", flag.ContinueOnError)
loopDir := fs.String("loop", "loop", "path to the (git-tracked) config directory")
loopDir := fs.String("loop-dir", "loop", "path to the (git-tracked) config directory")
dataDir := fs.String("loop-data", "loop-data", "path to the runtime data directory")
if err := fs.Parse(args); err != nil {
return err
}
if fs.NArg() != 0 {
return fmt.Errorf("usage: agentloop status [-loop dir] [-loop-data dir]")
return fmt.Errorf("usage: agentloop status [-loop-dir dir] [-loop-data dir]")
}
return printStatus(os.Stdout, *loopDir, *dataDir, time.Now())
}
Expand Down