Documentation
¶
Overview ¶
Package mcode drives MiniMax Code through its native ACP stdio interface.
Index ¶
- Constants
- Variables
- func CheckCLIAvailable(ctx context.Context, binary string) (string, error)
- func CheckWorkspace(ctx context.Context, c WorkspaceConfig) error
- func Installation() agent.Installation
- func NewExecutorFactory(runtimeRoot string, config *WorkspaceConfig) agent.ExecutorFactory
- func ValidateWorkspaceReadiness(raw []byte) error
- type Session
- func (s *Session) AwaitSettlement(ctx context.Context) (agent.TurnSettlement, error)
- func (s *Session) Cancel(ctx context.Context) error
- func (s *Session) CancellationOutcome() proto.DonePayload
- func (s *Session) ListWorkspaceDirectory(context.Context, string, int) (agent.WorkspaceDirectoryResult, error)
- func (s *Session) ReadWorkspaceFile(context.Context, string, int) (agent.WorkspaceReadResult, error)
- func (s *Session) SteerWithReceipt(ctx context.Context, input proto.PromptSteerPayload, written func()) error
- func (s *Session) SubmitFunctionResult(ctx context.Context, result proto.FunctionResultPayload) error
- func (s *Session) WriteWorkspaceFile(context.Context, string, []byte) (agent.WorkspaceWriteResult, error)
- type WorkspaceConfig
Constants ¶
const SupportedVersion = "0.4.12"
Variables ¶
var Declaration = agent.Declaration{Declaration: declaration.Declaration, Discover: discover}
Declaration binds the shared MiniMax Code declaration to discovery and execution factories.
var ErrCLINotFound = errors.New("mcode CLI not found")
Functions ¶
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 ¶
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 (*Session) CancellationOutcome ¶
func (s *Session) CancellationOutcome() proto.DonePayload
func (*Session) ListWorkspaceDirectory ¶
func (*Session) ReadWorkspaceFile ¶
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 (*Session) WriteWorkspaceFile ¶
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)
Source Files
¶
- connection.go
- contracts.go
- declaration.go
- discovery_workspace.go
- environment_mcp.go
- events.go
- execution.go
- executor.go
- executor_turn.go
- functions.go
- installation.go
- mcp_observations.go
- model_provider.go
- options.go
- protocol.go
- session.go
- steering.go
- subagent_cancel.go
- subagent_coordination.go
- subagent_messages.go
- subagents.go
- tool_observations.go
- unsupported.go
- version.go
- workspace.go
- workspace_readiness.go