(ctx context.Context, sessionStore session.Store, runConfig *config.RuntimeConfig, refreshInterval time.Duration, agentSources config.Sources, authToken string)
| 34 | } |
| 35 | |
| 36 | func New(ctx context.Context, sessionStore session.Store, runConfig *config.RuntimeConfig, refreshInterval time.Duration, agentSources config.Sources, authToken string) (*Server, error) { |
| 37 | return NewWithManager(NewSessionManager(ctx, agentSources, sessionStore, refreshInterval, runConfig), authToken), nil |
| 38 | } |
| 39 | |
| 40 | // NewWithManager builds a Server around an already-constructed SessionManager. |
| 41 | // Useful when the runtime is owned by another component (e.g. the TUI) and |