cursor

package
v2026.1012.2 Latest Latest
Warning

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

Go to latest
Published: Oct 12, 2026 License: MIT Imports: 22 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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 HealthOKForTest added in v2026.1009.0

func HealthOKForTest(ctx context.Context, port int) bool

func HealthProofForTest added in v2026.1009.0

func HealthProofForTest(key, nonce string, id HealthIdentityForTest) 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 ManagedPIDForTest added in v2026.1009.0

func ManagedPIDForTest() int

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 RuntimeDigestForTest added in v2026.1009.0

func RuntimeDigestForTest(dir string) (string, error)

func SDKInstalledForTest added in v2026.1009.0

func SDKInstalledForTest(dir string) bool

func VerifySidecarForTest added in v2026.1009.0

func VerifySidecarForTest(ctx context.Context, port int, id HealthIdentityForTest, key string) 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 HealthIdentityForTest added in v2026.1009.0

type HealthIdentityForTest = healthIdentity

func ExpectedHealthForTest added in v2026.1009.0

func ExpectedHealthForTest(dir, cwd string, internal bool) (HealthIdentityForTest, error)

type HealthResponseForTest added in v2026.1009.0

type HealthResponseForTest = healthResponse

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