Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewMCPCmd ¶
func NewMCPCmd(globalFlags *flags.GlobalFlags) *cobra.Command
NewMCPCmd builds the 'devsy mcp' parent command.
func NewServeCmd ¶
func NewServeCmd(globalFlags *flags.GlobalFlags) *cobra.Command
NewServeCmd builds the `serve` subcommand.
Types ¶
type BoundedBuffer ¶
type BoundedBuffer struct {
// contains filtered or unexported fields
}
BoundedBuffer is an io.Writer that keeps only the last cap bytes written. Tail retention beats mid-truncation for command output because endings carry exit status, errors, and final state.
func NewBoundedBuffer ¶
func NewBoundedBuffer(cap int) *BoundedBuffer
NewBoundedBuffer returns a BoundedBuffer with the given capacity (minimum 64).
func (*BoundedBuffer) BytesWritten ¶
func (b *BoundedBuffer) BytesWritten() int64
BytesWritten returns the total number of bytes written, including dropped ones.
func (*BoundedBuffer) String ¶
func (b *BoundedBuffer) String() string
String returns the buffered content. When truncated, a marker showing how many bytes were dropped is prepended so callers know output is incomplete.
func (*BoundedBuffer) Truncated ¶
func (b *BoundedBuffer) Truncated() bool
Truncated reports whether more bytes were written than the buffer can hold.
type ErrorPayload ¶
func ClassifyError ¶
func ClassifyError(err error) ErrorPayload