package codeserver

import (
	"fmt"
	"os/exec"

	"zlh-agent/internal/state"
)

/*
   Verify validates that code-server is installed and usable.

   This does NOT start the service.
*/
func Verify(cfg state.Config) error {

	if _, err := exec.LookPath("code-server"); err != nil {
		return fmt.Errorf("code-server binary not found in PATH")
	}

	return nil
}
