claude_code

package
v0.5.0 Latest Latest
Warning

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

Go to latest
Published: Dec 16, 2025 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

type Client struct {
	clients.BaseClient
}

Client implements the clients.Client interface for Claude Code

func NewClient

func NewClient() *Client

NewClient creates a new Claude Code client

func (*Client) EnsureAssetSupport

func (c *Client) EnsureAssetSupport(ctx context.Context, scope *clients.InstallScope) error

EnsureAssetSupport is a no-op for Claude Code since it loads global rules fine. This method exists to satisfy the Client interface.

func (*Client) GetVersion

func (c *Client) GetVersion() string

GetVersion returns the Claude Code version

func (*Client) InstallAssets

func (c *Client) InstallAssets(ctx context.Context, req clients.InstallRequest) (clients.InstallResponse, error)

InstallAssets installs assets to Claude Code using client-specific handlers

func (*Client) InstallHooks

func (c *Client) InstallHooks(ctx context.Context) error

InstallHooks installs Claude Code-specific hooks (auto-update and usage tracking)

func (*Client) IsInstalled

func (c *Client) IsInstalled() bool

IsInstalled checks if Claude Code is installed by checking for .claude directory

func (*Client) ListAssets

func (c *Client) ListAssets(ctx context.Context, scope *clients.InstallScope) ([]clients.InstalledSkill, error)

ListAssets returns all installed skills for a given scope

func (*Client) ReadSkill

func (c *Client) ReadSkill(ctx context.Context, name string, scope *clients.InstallScope) (*clients.SkillContent, error)

ReadSkill reads the content of a specific skill by name

func (*Client) ShouldInstall

func (c *Client) ShouldInstall(ctx context.Context) (bool, error)

ShouldInstall always returns true for Claude Code. Claude Code has a SessionStart hook that fires once per session, so no deduplication is needed.

func (*Client) UninstallAssets

func (c *Client) UninstallAssets(ctx context.Context, req clients.UninstallRequest) (clients.UninstallResponse, error)

UninstallAssets removes assets from Claude Code

func (*Client) UninstallHooks

func (c *Client) UninstallHooks(ctx context.Context) error

UninstallHooks removes Claude Code-specific hooks (SessionStart and PostToolUse)

func (*Client) VerifyAssets

func (c *Client) VerifyAssets(ctx context.Context, assets []*lockfile.Asset, scope *clients.InstallScope) []clients.VerifyResult

VerifyAssets checks if assets are actually installed on the filesystem

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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