cursor

package
v0.20260526.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 26, 2026 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

View Source
const (
	DefaultPort     = 8766
	IntegrationName = "cursor"
)

Variables

This section is empty.

Functions

func Bootstrap

func Bootstrap(out BootstrapIO, dir string) error

func DefaultBaseURL

func DefaultBaseURL(port int) string

func DevIntegrationDir

func DevIntegrationDir() string

func EntryScript

func EntryScript(dir string) string

func InstallDir

func InstallDir() (string, error)

func InstallDirReady

func InstallDirReady(dir string) bool

func InstallRuntime

func InstallRuntime(out BootstrapIO, dir string) error

InstallRuntime copies the embedded bundle into dir and ensures npm prod deps for the sidecar.

func InstallRuntimeClean

func InstallRuntimeClean(out BootstrapIO, dir string) error

InstallRuntimeClean removes any previous runtime under dir, redeploys the embedded bundle, and reinstalls prod npm deps.

func NodeModulesDir

func NodeModulesDir(dir string) string

func ResolveInstallDir

func ResolveInstallDir() (string, error)

Types

type BootstrapIO

type BootstrapIO interface {
	Print(msg string)
}

type Manager

type Manager struct {
	Port int
}

func DefaultManager

func DefaultManager() *Manager

func (*Manager) Ensure

func (m *Manager) Ensure(ctx context.Context, apiKey, cwd string, out BootstrapIO) (baseURL string, err error)

func (*Manager) ProxyStatus

func (m *Manager) ProxyStatus(ctx context.Context) ProxyStatus

func (*Manager) Stop

func (m *Manager) Stop()

type ProxyStatus

type ProxyStatus struct {
	Port       int
	BaseURL    string
	InstallDir string
	Managed    bool
	Healthy    bool
}

ProxyStatus is a snapshot of the local Cursor API sidecar.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL