code: func AddAgentUpdateHandlers(cs wsclient.ClientServer, cfg *config.Config, saver statemanager.Saver, taskEngine engine.TaskEngine) {
  	singleUpdater := &updater{
  		acs:        cs,
  		config:     cfg,
  		fs:         os.Default,
  		httpclient: httpclient.New(updateDownloadTimeout, false),
  	}
  	cs.AddRequestHandler(singleUpdater.stageUpdateHandler())
  	cs.AddRequestHandler(singleUpdater.performUpdateHandler(saver, taskEngine))
  }
docs: // AddAgentUpdateHandlers adds the needed update handlers to perform agent
  // updates