Documentation
¶
Index ¶
- func ClaudeConfigDir() (string, error)
- func ClaudePluginsDir() (string, error)
- func InstalledPluginsPath() (string, error)
- func KnownMarketplacesPath() (string, error)
- func LoadAllPlugins() ([]plugin.Plugin, error)
- func LoadMarketplaceManifest(marketplacePath string) (*marketplace.MarketplaceManifest, error)
- type InstalledPluginsV2
- type KnownMarketplaces
- type MarketplaceEntry
- type MarketplaceSource
- type PluginInstall
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ClaudeConfigDir ¶
ClaudeConfigDir returns the path to the Claude Code configuration directory Respects CLAUDE_CONFIG_DIR environment variable for custom locations
func ClaudePluginsDir ¶
ClaudePluginsDir returns the path to the Claude Code plugins directory This is where marketplaces and installed plugins are tracked
func InstalledPluginsPath ¶
InstalledPluginsPath returns the path to installed_plugins.json
func KnownMarketplacesPath ¶
KnownMarketplacesPath returns the path to known_marketplaces.json
func LoadAllPlugins ¶
LoadAllPlugins loads all plugins from all known marketplaces Also discovers plugins from popular marketplaces not yet installed
func LoadMarketplaceManifest ¶
func LoadMarketplaceManifest(marketplacePath string) (*marketplace.MarketplaceManifest, error)
LoadMarketplaceManifest loads a marketplace.json file from a marketplace directory
Types ¶
type InstalledPluginsV2 ¶
type InstalledPluginsV2 struct {
Version int `json:"version"`
Plugins map[string][]PluginInstall `json:"plugins"`
}
InstalledPluginsV2 represents the installed_plugins_v2.json structure
func LoadInstalledPlugins ¶
func LoadInstalledPlugins() (*InstalledPluginsV2, error)
LoadInstalledPlugins loads the installed_plugins_v2.json file
type KnownMarketplaces ¶
type KnownMarketplaces map[string]MarketplaceEntry
KnownMarketplaces represents the known_marketplaces.json structure
func LoadKnownMarketplaces ¶
func LoadKnownMarketplaces() (KnownMarketplaces, error)
LoadKnownMarketplaces loads the known_marketplaces.json file
type MarketplaceEntry ¶
type MarketplaceEntry struct {
Source MarketplaceSource `json:"source"`
InstallLocation string `json:"installLocation"`
LastUpdated string `json:"lastUpdated"`
}
MarketplaceEntry represents a single marketplace entry
type MarketplaceSource ¶
MarketplaceSource represents the source of a marketplace
type PluginInstall ¶
type PluginInstall struct {
Scope string `json:"scope"`
InstallPath string `json:"installPath"`
Version string `json:"version"`
InstalledAt string `json:"installedAt"`
LastUpdated string `json:"lastUpdated"`
GitCommitSha string `json:"gitCommitSha"`
IsLocal bool `json:"isLocal"`
ProjectPath string `json:"projectPath,omitempty"`
}
PluginInstall represents a single plugin installation entry