startup

package
v1.167.0 Latest Latest
Warning

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

Go to latest
Published: Jan 12, 2026 License: MIT Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AuthenticateGHCLI added in v1.57.0

func AuthenticateGHCLI(githubHost, token string, env []string) error

AuthenticateGHCLI authenticates gh CLI for GitHub Enterprise Server

func AutoDiscoverInstallationID added in v1.57.0

func AutoDiscoverInstallationID(appIDStr, pemPath, repoFullName string) (string, error)

AutoDiscoverInstallationID discovers the installation ID for a given repository using cache

func GenerateGitHubAppToken added in v1.57.0

func GenerateGitHubAppToken(appIDStr, installationIDStr, pemPath string) (string, error)

GenerateGitHubAppToken generates a GitHub App installation token

func GetGitHubToken added in v1.57.0

func GetGitHubToken(repoFullName string) (string, error)

GetGitHubToken retrieves the GitHub token for authentication

func InitGitHubRepo

func InitGitHubRepo(repoFullName, cloneDir string, ignoreMissingConfig bool) error

InitGitHubRepo initializes a GitHub repository with proper git clone functionality

func SetupClaudeCode

func SetupClaudeCode(homeDir string) error

SetupClaudeCode sets up Claude Code configuration

func SetupGitHubAuth added in v1.57.0

func SetupGitHubAuth(repoFullName string) error

SetupGitHubAuth sets up GitHub authentication using gh CLI

func SetupMCPServers

func SetupMCPServers(homeDir, configFlag string) error

SetupMCPServers sets up MCP servers from configuration

func Sync added in v1.131.0

func Sync(opts SyncOptions) error

Sync synchronizes settings from Settings Secret to Claude configuration files

Types

type MCPServerConfig

type MCPServerConfig struct {
	ID        string            `json:"id"`
	Name      string            `json:"name"`
	Endpoint  string            `json:"endpoint"`
	Enabled   bool              `json:"enabled"`
	Transport string            `json:"transport"`
	Command   string            `json:"command,omitempty"`
	Args      []string          `json:"args,omitempty"`
	Env       map[string]string `json:"env,omitempty"`
	Timeout   int               `json:"timeout,omitempty"`
}

MCPServerConfig represents MCP server configuration

type SyncOptions added in v1.131.0

type SyncOptions struct {
	SettingsFile              string // Path to the mounted settings.json from Settings Secret
	OutputDir                 string // Home directory (generates ~/.claude.json and ~/.claude/)
	CredentialsFile           string // Path to the mounted credentials.json from Credentials Secret (optional)
	ClaudeMDFile              string // Path to CLAUDE.md file to copy (optional, default: /tmp/config/CLAUDE.md)
	NotificationSubscriptions string // Path to notification subscriptions directory (optional)
	NotificationsDir          string // Path to notifications output directory (optional)
	RegisterMarketplaces      bool   // Register cloned marketplaces using claude CLI
}

SyncOptions contains options for the sync command

Jump to

Keyboard shortcuts

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