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
- func Contract(descriptor target.TargetDescriptor) (activation.ActivationContract, error)
- type Activator
- func (a *Activator) Ensure(ctx context.Context, source apply.Source, key registry.Key, ...) (apply.Outcome, error)
- func (a *Activator) Inspect(ctx context.Context, source apply.Source, key registry.Key, ...) (apply.Outcome, error)
- func (a *Activator) Remove(ctx context.Context, source apply.Source, key registry.Key, ...) (apply.Outcome, error)
- func (a *Activator) StrategyKind() activation.StrategyKind
- type CommandResult
- type Controller
- func (c *Controller) Activator() *Activator
- func (c *Controller) ClosePlan(ctx context.Context, request service.GroupSelection, plan service.GroupPlan, ...) error
- func (c *Controller) ExecuteAction(ctx context.Context, request service.GroupSelection, plan service.GroupPlan, ...) error
- func (c *Controller) Harness() ir.HarnessID
- func (c *Controller) InspectAction(ctx context.Context, request service.GroupSelection, plan service.GroupPlan, ...) (service.GroupFacts, error)
- func (c *Controller) PlanSelection(ctx context.Context, request service.GroupSelection) (service.GroupPlan, error)
- func (c *Controller) PreflightCell(ctx context.Context, request service.GroupCell) error
- func (c *Controller) StrategyKind() activation.StrategyKind
- type ManifestReader
- type OSManifestReader
- type OSRunner
- type Runner
Constants ¶
const ( MarketplaceName = "aura-plugins" MarketplaceRepo = "dayvidpham/aura-plugins" LegacyPackage = "pasture" LegacyVersion = "0.0.4" )
Variables ¶
This section is empty.
Functions ¶
func Contract ¶
func Contract(descriptor target.TargetDescriptor) (activation.ActivationContract, error)
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) StrategyKind ¶
func (a *Activator) StrategyKind() activation.StrategyKind
type CommandResult ¶
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 (c *Controller) ClosePlan(ctx context.Context, request service.GroupSelection, plan service.GroupPlan, stage service.GroupTerminalStage) error
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 (*Controller) StrategyKind ¶
func (c *Controller) StrategyKind() activation.StrategyKind
type ManifestReader ¶
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 ¶
func (OSRunner) Run(ctx context.Context, schema activation.CommandSchema) (CommandResult, error)
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.