profiles

package
v0.0.7 Latest Latest
Warning

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

Go to latest
Published: May 1, 2026 License: BSD-3-Clause Imports: 8 Imported by: 0

Documentation

Overview

Package profiles is the vestigial home of the Claude Desktop (Claude Cowork) support. Every other agent has been ported to internal/clients; this package stays until Claude Desktop is ported too. It exposes a lightweight clients.Client adapter via Client() so the rest of the app sees one unified registry.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GatewayURL added in v0.0.7

func GatewayURL(apertureHost string) string

GatewayURL normalizes the aperture host for Claude Cowork's gateway config. Claude Cowork requires HTTPS and no trailing slash.

func RegisterIfSupported added in v0.0.7

func RegisterIfSupported()

RegisterIfSupported registers the Claude Desktop client on platforms that support it (darwin, windows). Call from the cmd entrypoint after importing the other client packages, to keep platform gating in one place.

Types

type Backend

type Backend struct {
	Type        BackendType
	DisplayName string
}

Backend is a selectable upstream destination. Kept for Claude Desktop's internal bookkeeping; not exposed outside this package.

type BackendType

type BackendType string

BackendType identifies the upstream Claude Desktop routes to.

const (
	// BackendAnthropic is the only backend Claude Desktop supports.
	BackendAnthropic BackendType = "anthropic"
)

type ClaudeDesktopProfile added in v0.0.7

type ClaudeDesktopProfile struct{}

ClaudeDesktopProfile implements Profile for the Claude Cowork application (Claude Code GUI). During install, it writes platform-specific gateway configuration (macOS plist / Windows registry) and downloads the installer. On launch, it re-checks the configuration and starts the desktop app.

func (*ClaudeDesktopProfile) BinaryName added in v0.0.7

func (c *ClaudeDesktopProfile) BinaryName() string

func (*ClaudeDesktopProfile) CommonPaths added in v0.0.7

func (c *ClaudeDesktopProfile) CommonPaths() []string

func (*ClaudeDesktopProfile) Env added in v0.0.7

func (c *ClaudeDesktopProfile) Env(_ string, _ Backend) (map[string]string, error)

Env is not used for desktop app profiles but satisfies the Profile interface.

func (*ClaudeDesktopProfile) InstallHint added in v0.0.7

func (c *ClaudeDesktopProfile) InstallHint() string

func (*ClaudeDesktopProfile) Launch added in v0.0.7

func (c *ClaudeDesktopProfile) Launch(apertureHost string) error

Launch checks whether the gateway configuration matches the current aperture host, updates it if needed, and starts the desktop app.

func (*ClaudeDesktopProfile) Name added in v0.0.7

func (c *ClaudeDesktopProfile) Name() string

func (*ClaudeDesktopProfile) RequiredCompat added in v0.0.7

func (c *ClaudeDesktopProfile) RequiredCompat(b Backend) []string

func (*ClaudeDesktopProfile) RunInstall added in v0.0.7

func (c *ClaudeDesktopProfile) RunInstall(apertureHost string) (*exec.Cmd, error)

RunInstall writes the gateway configuration and returns a command that downloads and runs the installer. The TUI executes this with terminal takeover so the user sees download progress.

func (*ClaudeDesktopProfile) SupportedBackends added in v0.0.7

func (c *ClaudeDesktopProfile) SupportedBackends() []Backend

Jump to

Keyboard shortcuts

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