claudecode

package
v0.0.21 Latest Latest
Warning

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

Go to latest
Published: Oct 18, 2026 License: MIT Imports: 20 Imported by: 0

Documentation

Overview

Package claudecode binds the immutable Claude Code target to the reviewed global native-manager contract and implements its ownership-safe controller.

Index

Constants

View Source
const (
	MarketplaceName = "aura-plugins"
	MarketplaceRepo = "dayvidpham/aura-plugins"
	LegacyPackage   = "pasture"
	LegacyVersion   = "0.0.4"
)

Variables

This section is empty.

Functions

func Contract

Contract is the complete static Claude activation contract. Its admission is the target runtime contract's own: a floor at the recorded Claude Code version, read from that contract and never restated here.

Types

type Activator

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

func (*Activator) Ensure

func (*Activator) Inspect

func (*Activator) Remove

func (*Activator) StrategyKind

func (a *Activator) StrategyKind() activation.StrategyKind

type CommandResult

type CommandResult struct {
	Stdout []byte
	Stderr []byte
}

CommandResult is the complete bounded native process result.

type Controller

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

Controller is stateless. Every plan and action is derived from immutable bindings, the supplied registry facts, and a fresh complete native probe.

func NewController

func NewController(runner Runner, manifests ManifestReader) (*Controller, error)

func (*Controller) Activator

func (c *Controller) Activator() *Activator

func (*Controller) ClosePlan

func (*Controller) ExecuteAction

func (c *Controller) ExecuteAction(ctx context.Context, request service.GroupSelection, plan service.GroupPlan, step service.GroupStep) error

func (*Controller) Harness

func (c *Controller) Harness() ir.HarnessID

func (*Controller) InspectAction

func (c *Controller) InspectAction(ctx context.Context, request service.GroupSelection, plan service.GroupPlan, step service.GroupStep, executeErr error) (service.GroupFacts, error)

func (*Controller) PlanSelection

func (c *Controller) PlanSelection(ctx context.Context, request service.GroupSelection) (service.GroupPlan, error)

func (*Controller) PreflightCell

func (c *Controller) PreflightCell(ctx context.Context, request service.GroupCell) error

func (*Controller) StrategyKind

func (c *Controller) StrategyKind() activation.StrategyKind

type ManifestReader

type ManifestReader interface {
	ReadPluginManifest(installPath string) ([]byte, error)
}

ManifestReader reads version evidence from a native-reported install path. It is separate from Runner because versionless rows require exact filesystem evidence and no manager output may substitute for it.

type OSManifestReader

type OSManifestReader struct{}

func (OSManifestReader) ReadPluginManifest

func (OSManifestReader) ReadPluginManifest(installPath string) ([]byte, error)

type OSRunner

type OSRunner struct{}

OSRunner is the production runner.

func (OSRunner) Run

type Runner

type Runner interface {
	Run(context.Context, activation.CommandSchema) (CommandResult, error)
}

Runner is the injected native process boundary. Implementations execute the literal CommandSchema directly and never through a shell.

Jump to

Keyboard shortcuts

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