docs: deprecate inbox and document remote dashboard
Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
@@ -17,6 +17,7 @@ import (
|
||||
)
|
||||
|
||||
func cmdInbox(args []string, stdout, stderr io.Writer) error {
|
||||
fmt.Fprintln(stderr, "warning: inbox is deprecated; use agent-notify server and [remote] config")
|
||||
if len(args) == 0 {
|
||||
return fmt.Errorf("usage: agent-notify inbox <list|show|done|rm|clear|serve|ssh-config>")
|
||||
}
|
||||
|
||||
@@ -192,6 +192,20 @@ func cmdDoctor() error {
|
||||
}
|
||||
cfgPath := config.DefaultPath()
|
||||
fmt.Printf(" config=%s\n", cfgPath)
|
||||
cfg, err := config.LoadDefault()
|
||||
if err != nil {
|
||||
fmt.Printf("✗ config load failed: %v\n", err)
|
||||
} else if cfg.Remote.Enabled {
|
||||
if cfg.Remote.URL == "" {
|
||||
fmt.Println("✗ remote.enabled but remote.url is empty — set url to your agent-notify server (e.g. http://host:8080)")
|
||||
}
|
||||
if cfg.Remote.Token == "" {
|
||||
fmt.Println("✗ remote.enabled but remote.token is empty — must match AGENT_NOTIFY_TOKEN on agent-notify server")
|
||||
}
|
||||
if cfg.Remote.URL != "" && cfg.Remote.Token != "" {
|
||||
fmt.Printf("✓ remote dashboard configured (%s)\n", cfg.Remote.URL)
|
||||
}
|
||||
}
|
||||
fmt.Printf(" hook_log=%s\n", logx.Path())
|
||||
return nil
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user