acputil

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Mar 19, 2026 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	// ErrNotSupported 不支持
	ErrNotSupported = errors.New("NotSupported")
	// ErrSessionNotFound 会话不存在
	ErrSessionNotFound = errors.New("SessionNotFound")
	// ErrInPrompting 对话进行中
	ErrInPrompting = errors.New("InPrompting")
)

Functions

This section is empty.

Types

type ClientFS

type ClientFS interface {
	// ReadTextFile 读文本文件
	ReadTextFile(ctx context.Context, params acp.ReadTextFileRequest) (acp.ReadTextFileResponse, error)
	// WriteTextFile 写文本文件
	WriteTextFile(ctx context.Context, params acp.WriteTextFileRequest) (acp.WriteTextFileResponse, error)
}

ClientFS ACP 客户端文件系统

type ClientTerminal

type ClientTerminal interface {
	// CreateTerminal 创建终端
	CreateTerminal(ctx context.Context, params acp.CreateTerminalRequest) (acp.CreateTerminalResponse, error)
	// TerminalOutput 获取终端输出
	TerminalOutput(ctx context.Context, params acp.TerminalOutputRequest) (acp.TerminalOutputResponse, error)
	// ReleaseTerminal 释放终端
	ReleaseTerminal(ctx context.Context, params acp.ReleaseTerminalRequest) (acp.ReleaseTerminalResponse, error)
	// WaitForTerminalExit 等待终端结束
	WaitForTerminalExit(ctx context.Context, params acp.WaitForTerminalExitRequest) (acp.WaitForTerminalExitResponse, error)
	// KillTerminalCommand 杀终端
	KillTerminalCommand(ctx context.Context, params acp.KillTerminalCommandRequest) (acp.KillTerminalCommandResponse, error)
}

ClientTerminal ACP 客户端终端

type NopFS

type NopFS struct{}

NopFS 无文件系统

func (NopFS) ReadTextFile

ReadTextFile 读文本文件

func (NopFS) WriteTextFile

WriteTextFile 写文本文件

type NopTerminal

type NopTerminal struct{}

NopTerminal 无终端

func (NopTerminal) CreateTerminal

CreateTerminal 创建终端

func (NopTerminal) KillTerminalCommand

KillTerminalCommand 杀终端

func (NopTerminal) ReleaseTerminal

ReleaseTerminal 释放终端

func (NopTerminal) TerminalOutput

TerminalOutput 获取终端输出

func (NopTerminal) WaitForTerminalExit

WaitForTerminalExit 等待终端结束

Jump to

Keyboard shortcuts

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