Versions in this module Expand all Collapse all v0 v0.12.0 Mar 9, 2026 v0.11.0 Mar 2, 2026 Changes in this version + const AdapterName + const ConfigFileName + const ProjectConfigDir + func ProjectConfigPath() string + func ReadProjectConfig() (*core.Config, error) + func ReadUserConfig() (*core.Config, error) + func WriteProjectConfig(cfg *core.Config) error + type Adapter struct + func NewAdapter() *Adapter + func (a *Adapter) DefaultPaths() []string + func (a *Adapter) FromCore(cfg *core.Config) *Config + func (a *Adapter) Marshal(cfg *core.Config) ([]byte, error) + func (a *Adapter) Name() string + func (a *Adapter) Parse(data []byte) (*core.Config, error) + func (a *Adapter) ReadFile(path string) (*core.Config, error) + func (a *Adapter) SupportedEvents() []core.Event + func (a *Adapter) ToCore(cursorCfg *Config) *core.Config + func (a *Adapter) WriteFile(cfg *core.Config, path string) error + type Config struct + Hooks map[CursorEvent][]Hook + Version int + func NewConfig() *Config + type CursorEvent string + const AfterAgentResponse + const AfterAgentThought + const AfterFileEdit + const AfterMCPExecution + const AfterShellExecution + const AfterTabFileEdit + const BeforeMCPExecution + const BeforeReadFile + const BeforeShellExecution + const BeforeSubmitPrompt + const BeforeTabFileRead + const Stop + type Hook struct + Command string