acpsvc

package
v0.28.6 Latest Latest
Warning

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

Go to latest
Published: Jun 9, 2026 License: Apache-2.0 Imports: 28 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

func New(deps Deps) libacp.AgentFactory

func NewACPCommandRunner

func NewACPCommandRunner(transport func() *Transport) localtools.CommandRunner

func NewACPCommandRunnerWithShell added in v0.28.4

func NewACPCommandRunnerWithShell(transport func() *Transport, shell localtools.PlatformShell) localtools.CommandRunner

func NewACPCwdResolver

func NewACPCwdResolver(transport func() *Transport) func(context.Context) string

func NewACPFileIO

func NewACPFileIO(transport func() *Transport) localtools.FileIO

func ReadConfigValue

func ReadConfigValue(ctx context.Context, db libdb.DBManager, key string) string

Types

type ChainRegistry

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

func LoadChainRegistry

func LoadChainRegistry() (*ChainRegistry, error)

func LoadChainRegistryFrom

func LoadChainRegistryFrom(filename, envVar string) (*ChainRegistry, error)

LoadChainRegistryFrom loads the ACP chain for a specific profile: filename is the ~/.contenox/ file the chain is read from, envVar overrides that path. A missing file is a hard error (fail closed) — callers must not fall back to a different chain.

func (*ChainRegistry) Default

func (*ChainRegistry) Source

func (r *ChainRegistry) Source() string

type Deps

type Deps struct {
	Engine          *enginesvc.Engine
	DB              libdb.DBManager
	ChainRegistry   *ChainRegistry
	DefaultModel    string
	DefaultProvider string
	DefaultThink    string
	WorkspaceID     string
	// ContenoxDir is the active .contenox directory, used to locate auxiliary
	// chains (e.g. chain-compact.json for the /compact command).
	ContenoxDir string

	// KnownPolicies are the HITL policy preset names shown by /policy when
	// listing. Display only — empty just omits the list.
	KnownPolicies []string
	// HITLDefaultPolicyName is the policy the engine falls back to when no
	// override is set, shown by /policy so the status is accurate. Display only.
	HITLDefaultPolicyName string
}

type Transport

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

func (*Transport) AskApproval

func (t *Transport) AskApproval(ctx context.Context, req hitlservice.ApprovalRequest) (bool, error)

func (*Transport) Authenticate

func (*Transport) Cancel

func (*Transport) Close

func (t *Transport) Close(ctx context.Context) error

func (*Transport) Initialize

func (*Transport) ListSessions

func (*Transport) LoadSession

func (*Transport) NewSession

func (*Transport) Prompt

Jump to

Keyboard shortcuts

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