X-Git-Url: https://git.giacomolli.uk/onechat/blobdiff_plain/e86df5fad9aa2f280aad845adeefd239b0e944ae..HEAD:/command.go diff --git a/command.go b/command.go index fefb662..8b5f29e 100644 --- a/command.go +++ b/command.go @@ -19,6 +19,8 @@ Commands: import WhatsApp history (stop the daemon first) -n print the plan without model calls --agent NAME import into an existing direct child (default: root) + notify [--agent-id ID] --source SOURCE --id ID --text TEXT + send an external event (default: root) login log in to ChatGPT with a device code probe LOG COUNT [BUILDS] measure the compactor on a log, with real calls version show the build version @@ -80,6 +82,13 @@ func parseCommand(ctx context.Context, args []string) error { return fmt.Errorf("run restore: %w", err) } + return nil + case len(args) > 0 && args[0] == "notify": + err := notify(ctx, args[1:], os.Stdout) + if err != nil { + return fmt.Errorf("submit external event: %w", err) + } + return nil case len(args) > 0 && args[0] == "import": err := whatsappImport(ctx, args[1:], os.Stdout)