cursor

package
v2026.701.4 Latest Latest
Warning

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

Go to latest
Published: Jul 1, 2026 License: MIT Imports: 17 Imported by: 0

Documentation

Index

Constants

View Source
const (
	DefaultPort     = 8766
	IntegrationName = "cursor"
)
View Source
const DefaultModelID = "composer-2.5"

Variables

This section is empty.

Functions

func Bootstrap

func Bootstrap(out BootstrapIO, dir string) error

func DefaultBaseURL

func DefaultBaseURL(port int) string

func DefaultModelIDs added in v2026.621.0

func DefaultModelIDs() []string

func DevIntegrationDir

func DevIntegrationDir() string

func EnsureSidecarIfConfigured

func EnsureSidecarIfConfigured(ctx context.Context, cfg *config.Root, cwd string, out BootstrapIO) error

func EntryScript

func EntryScript(dir string) string

func FilterModelIDs

func FilterModelIDs(ids []string) []string

func InstallDir

func InstallDir() (string, error)

func InstallDirReady

func InstallDirReady(dir string) bool

func InstallRuntime

func InstallRuntime(out BootstrapIO, dir string) error

func InstallRuntimeClean

func InstallRuntimeClean(out BootstrapIO, dir string) error

func KickSidecarIfConfigured

func KickSidecarIfConfigured(ctx context.Context, cfg *config.Root, cwd string, out BootstrapIO)

func NodeModulesDir

func NodeModulesDir(dir string) string

func OrderModelIDs

func OrderModelIDs(ids []string) []string

func ResolveInstallDir

func ResolveInstallDir() (string, error)

func ReviveSidecarIfConfigured

func ReviveSidecarIfConfigured(ctx context.Context, cfg *config.Root, cwd string, err error)

func WaitSidecarIfConfigured

func WaitSidecarIfConfigured(ctx context.Context, cfg *config.Root, cwd string, out BootstrapIO) error

Types

type BootstrapIO

type BootstrapIO interface {
	Print(msg string)
}

type DiscardBootstrap

type DiscardBootstrap struct{}

func (DiscardBootstrap) Print

func (DiscardBootstrap) Print(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, allowCursorInternalTools bool, 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
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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