mcode

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: 33 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

Overview

Package mcode drives MiniMax Code through its native ACP stdio interface.

Index

Constants

This section is empty.

Variables

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

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

View Source
var ErrCLINotFound = errors.New("mcode CLI not found")
View Source
var SupportedVersion = declaration.Declaration.Native.Version

Functions

func CheckCLIAvailable

func CheckCLIAvailable(ctx context.Context, binary string) (string, error)

func CheckWorkspace

func CheckWorkspace(ctx context.Context, c WorkspaceConfig) error

CheckWorkspace verifies the installed companion. Public qualification remains an operator deployment requirement, not an implication of this probe.

func Installation

func Installation() agent.Installation

func NewExecutorFactory

func NewExecutorFactory(runtimeRoot string, config *WorkspaceConfig) agent.ExecutorFactory

NewExecutorFactory fixes the deployment workspace once; nil selects none.

func ValidateWorkspaceReadiness

func ValidateWorkspaceReadiness(raw []byte) error

ValidateWorkspaceReadiness checks the installed companion's private contract. Neither upstream version alone nor a successful CLI --version proves cleanup.

Types

type Session

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

func (*Session) AwaitSettlement

func (s *Session) AwaitSettlement(ctx context.Context) (agent.TurnSettlement, error)

func (*Session) Cancel

func (s *Session) Cancel(ctx context.Context) error

func (*Session) CancellationOutcome

func (s *Session) CancellationOutcome() proto.DonePayload

func (*Session) SteerWithReceipt

func (s *Session) SteerWithReceipt(ctx context.Context, input proto.PromptSteerPayload, written func()) error

Native acceptance belongs to the active ACP Turn; it does not promise model consumption.

func (*Session) SubmitFunctionResult

func (s *Session) SubmitFunctionResult(ctx context.Context, result proto.FunctionResultPayload) error

type WorkspaceConfig

type WorkspaceConfig struct {
	Binary, Node, Companion, Directory string
}

WorkspaceConfig is frozen deployment input, separate from public Agent options.

func ConfigureLocal

func ConfigureLocal(binary, node, companion, workspace string) (WorkspaceConfig, error)

Jump to

Keyboard shortcuts

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