Documentation
¶
Index ¶
Constants ¶
View Source
const ( APIVersion = "mekugi-tool-plugin/v1" ExecutionOutputBudgetBytes = 16 << 20 )
Variables ¶
This section is empty.
Functions ¶
func ConfigureProcessGroup ¶
ConfigureProcessGroup makes command cancellation terminate descendants that inherited the command's standard streams instead of leaving Wait blocked.
func EnableFrontendOrphanCleanup ¶
EnableFrontendOrphanCleanup is for a dedicated authenticated frontend process, not a router or test process that owns unrelated child commands.
Types ¶
type ExecutionOutput ¶
type ExecutionOutput struct {
OmittedOutput *OmittedOutput `json:"omittedOutput,omitempty"`
FailureClass string `json:"failureClass,omitempty"`
Stdout string `json:"stdout"`
Stderr string `json:"stderr"`
ExitCode int `json:"exitCode"`
}
func ExecuteBuiltin ¶
ExecuteBuiltin runs bundled readers in the authenticated frontend process. Configured plugins remain isolated JavaScript hosts, never native executors.
func FormatOutput ¶
func FormatOutput(ctx context.Context, arguments []string) (ExecutionOutput, error)
FormatOutput formats bounded output entirely in the frontend process.
type OmittedOutput ¶
type OmittedOutput struct {
// Host-owned mcat provenance, not part of the plugin wire protocol.
SourceRow uint64 `json:"-"`
MaxTokens int `json:"-"`
StdoutKind string `json:"stdoutKind,omitempty"`
StderrKind string `json:"stderrKind,omitempty"`
Stdout string `json:"stdout"`
Stderr string `json:"stderr"`
}
type Tool ¶
type Tool struct {
Specification json.RawMessage `json:"specification"`
NativeExecutor string `json:"nativeExecutor,omitempty"`
}
Click to show internal directories.
Click to hide internal directories.