Help us shape the future of Go! Take the 2026 Go Developer Survey

claudesettings

package
v0.0.68 Latest Latest
Warning

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

Go to latest
Published: Apr 16, 2026 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Attribution added in v0.0.32

type Attribution struct {
	Commit *string `yaml:"commit,omitempty"`
	Pr     *string `yaml:"pr,omitempty"`
}

Attribution holds optional attribution messages appended to commits and PRs. nil = not configured, pointer to "" = explicitly off, pointer to value = custom text.

type ChangeNotifier

type ChangeNotifier interface {
	NotifyClaudeSettingsChange(projectID string)
}

ChangeNotifier is called after settings updates from the UI to push a SyncClaudeSettingsCommand to connected Agent Managers.

type ClaudeSettings

type ClaudeSettings struct {
	ProjectID   string       `yaml:"project_id"`
	Language    *string      `yaml:"language,omitempty"`
	Attribution *Attribution `yaml:"attribution,omitempty"`
	UpdatedAt   time.Time    `yaml:"updated_at"`
}

ClaudeSettings represents project-scoped Claude Code settings (e.g. language) that are synced to .claude/settings.json on agents. One ClaudeSettings per project.

type Repository

type Repository interface {
	// Get returns the settings for a project.
	// Returns an empty ClaudeSettings (not an error) if none exists yet.
	Get(ctx context.Context, projectID string) (*ClaudeSettings, error)

	// Upsert creates or replaces the settings for a project.
	Upsert(ctx context.Context, cs *ClaudeSettings) error
}

Repository provides persistence for project-scoped Claude Code settings.

type Server

type Server struct {
	// contains filtered or unexported fields
}

Server implements the ClaudeSettingsService RPC handlers.

func NewServer

func NewServer(repo Repository, notifier ChangeNotifier, resolver WorkDirResolver) *Server

NewServer creates a new Claude Code settings service server.

func (*Server) GetClaudeSettings

GetClaudeSettings returns the settings for a project.

func (*Server) SyncClaudeSettingsFromDir

SyncClaudeSettingsFromDir reads .claude/settings.json from the given directory and merges its settings into the stored set.

func (*Server) UpdateClaudeSettings

UpdateClaudeSettings replaces the settings for a project.

type WorkDirResolver added in v0.0.45

type WorkDirResolver interface {
	ResolveWorkDir(projectID string) (string, error)
}

WorkDirResolver resolves the absolute working directory for a project by looking up the connected agent's work_dir.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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