cursor

package
v0.20260527.1 Latest Latest
Warning

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

Go to latest
Published: May 27, 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 DevIntegrationDir

func DevIntegrationDir() string

func EnsureSidecarIfConfigured added in v0.20260526.3

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

func EntryScript

func EntryScript(dir string) string

func FilterModelIDs added in v0.20260526.3

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

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 KickSidecarIfConfigured added in v0.20260526.3

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

func NodeModulesDir

func NodeModulesDir(dir string) string

func OrderModelIDs added in v0.20260526.3

func OrderModelIDs(ids []string) []string

func ResolveInstallDir

func ResolveInstallDir() (string, error)

func ReviveSidecarIfConfigured added in v0.20260527.1

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

func WaitSidecarIfConfigured added in v0.20260526.3

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

Types

type BootstrapIO

type BootstrapIO interface {
	Print(msg string)
}

type DiscardBootstrap added in v0.20260526.3

type DiscardBootstrap struct{}

func (DiscardBootstrap) Print added in v0.20260526.3

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, 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
}

Jump to

Keyboard shortcuts

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