config

package
v0.4.3 Latest Latest
Warning

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

Go to latest
Published: Feb 4, 2026 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ClaudeConfigDir

func ClaudeConfigDir() (string, error)

ClaudeConfigDir returns the path to the Claude Code configuration directory Respects CLAUDE_CONFIG_DIR environment variable for custom locations

func ClaudePluginsDir

func ClaudePluginsDir() (string, error)

ClaudePluginsDir returns the path to the Claude Code plugins directory This is where marketplaces and installed plugins are tracked

func InstalledPluginsPath

func InstalledPluginsPath() (string, error)

InstalledPluginsPath returns the path to installed_plugins.json

func KnownMarketplacesPath

func KnownMarketplacesPath() (string, error)

KnownMarketplacesPath returns the path to known_marketplaces.json

func LoadAllPlugins

func LoadAllPlugins() ([]plugin.Plugin, error)

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

type MarketplaceSource struct {
	Source string `json:"source"`
	Repo   string `json:"repo"`
}

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

Jump to

Keyboard shortcuts

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