claudesdk

package
v0.0.14 Latest Latest
Warning

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

Go to latest
Published: Nov 7, 2026 License: MIT Imports: 24 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Declaration = agent.Declaration{Declaration: declaration.Declaration, Discover: discover}

Declaration binds the shared Claude Code declaration to discovery and execution factories.

Functions

func Installation

func Installation() agent.Installation

func NewExecutorFactory

func NewExecutorFactory(config Config) agent.ExecutorFactory

Types

type Config

type Config struct {
	Node       string
	Entrypoint string
	// StateRoot and RuntimeRoot hold each Session's native state, derived from its state key.
	StateRoot   string
	RuntimeRoot string
	Env         []string
	// Workspace is the trusted workspace directory; empty means environment:none.
	Workspace string
}

func ConfigureLocal

func ConfigureLocal(config Config, workspace string) (Config, error)

ConfigureLocal binds the dedicated workspace and keeps only the workspace environment names of the process environment.

type RuntimeInfo

type RuntimeInfo struct {
	Type     string   `json:"type"`
	Protocol int      `json:"protocol"`
	Node     string   `json:"node"`
	SDK      string   `json:"sdk"`
	MCP      string   `json:"mcp"`
	Native   string   `json:"native"`
	Features []string `json:"features"`
}

RuntimeInfo describes a successful local probe, not provider authentication or execution capability. Versions are checked against the installed pinned manifest.

func CheckRuntime

func CheckRuntime(ctx context.Context, config Config) (RuntimeInfo, error)

CheckRuntime checks the packaged companion and exact execution entrypoint. It does not create Session state, register an engine or make a model request.

func (RuntimeInfo) SupportsFunctionResultImages

func (info RuntimeInfo) SupportsFunctionResultImages() bool

func (RuntimeInfo) SupportsHTTPMCP

func (info RuntimeInfo) SupportsHTTPMCP() bool

func (RuntimeInfo) SupportsHTTPMCPBearer

func (info RuntimeInfo) SupportsHTTPMCPBearer() bool

func (RuntimeInfo) SupportsHTTPMCPRequired

func (info RuntimeInfo) SupportsHTTPMCPRequired() bool

func (RuntimeInfo) SupportsLocalRuntime

func (info RuntimeInfo) SupportsLocalRuntime() bool

func (RuntimeInfo) SupportsMessageImages

func (info RuntimeInfo) SupportsMessageImages() bool

func (RuntimeInfo) SupportsStructuredOutput

func (info RuntimeInfo) SupportsStructuredOutput() bool

func (RuntimeInfo) SupportsSubagents

func (info RuntimeInfo) SupportsSubagents() bool

func (RuntimeInfo) SupportsToolSearch

func (info RuntimeInfo) SupportsToolSearch() bool

func (RuntimeInfo) SupportsWorkspaceFunctions

func (info RuntimeInfo) SupportsWorkspaceFunctions() bool

func (RuntimeInfo) SupportsWorkspaceMCP

func (info RuntimeInfo) SupportsWorkspaceMCP() bool

func (RuntimeInfo) SupportsWorkspaceStructuredOutput

func (info RuntimeInfo) SupportsWorkspaceStructuredOutput() bool

func (RuntimeInfo) SupportsWorkspaceToolSearch

func (info RuntimeInfo) SupportsWorkspaceToolSearch() bool

Jump to

Keyboard shortcuts

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