v0

package
v0.1.156 Latest Latest
Warning

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

Go to latest
Published: Apr 24, 2026 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

View Source
const (
	Code_Execute_FullMethodName        = "/codefly.services.code.v0.Code/Execute"
	Code_ListSymbols_FullMethodName    = "/codefly.services.code.v0.Code/ListSymbols"
	Code_GetDiagnostics_FullMethodName = "/codefly.services.code.v0.Code/GetDiagnostics"
	Code_GoToDefinition_FullMethodName = "/codefly.services.code.v0.Code/GoToDefinition"
	Code_FindReferences_FullMethodName = "/codefly.services.code.v0.Code/FindReferences"
	Code_GetHoverInfo_FullMethodName   = "/codefly.services.code.v0.Code/GetHoverInfo"
	Code_ApplyEdit_FullMethodName      = "/codefly.services.code.v0.Code/ApplyEdit"
	Code_GetCallGraph_FullMethodName   = "/codefly.services.code.v0.Code/GetCallGraph"
	Code_ShellExec_FullMethodName      = "/codefly.services.code.v0.Code/ShellExec"
)

Variables

View Source
var (
	SymbolKind_name = map[int32]string{
		0:  "SYMBOL_KIND_UNKNOWN",
		1:  "SYMBOL_KIND_FUNCTION",
		2:  "SYMBOL_KIND_METHOD",
		3:  "SYMBOL_KIND_STRUCT",
		4:  "SYMBOL_KIND_INTERFACE",
		5:  "SYMBOL_KIND_CONSTANT",
		6:  "SYMBOL_KIND_VARIABLE",
		7:  "SYMBOL_KIND_TYPE_ALIAS",
		8:  "SYMBOL_KIND_PACKAGE",
		9:  "SYMBOL_KIND_FIELD",
		10: "SYMBOL_KIND_ENUM",
		11: "SYMBOL_KIND_CLASS",
	}
	SymbolKind_value = map[string]int32{
		"SYMBOL_KIND_UNKNOWN":    0,
		"SYMBOL_KIND_FUNCTION":   1,
		"SYMBOL_KIND_METHOD":     2,
		"SYMBOL_KIND_STRUCT":     3,
		"SYMBOL_KIND_INTERFACE":  4,
		"SYMBOL_KIND_CONSTANT":   5,
		"SYMBOL_KIND_VARIABLE":   6,
		"SYMBOL_KIND_TYPE_ALIAS": 7,
		"SYMBOL_KIND_PACKAGE":    8,
		"SYMBOL_KIND_FIELD":      9,
		"SYMBOL_KIND_ENUM":       10,
		"SYMBOL_KIND_CLASS":      11,
	}
)

Enum value maps for SymbolKind.

View Source
var (
	DiagnosticSeverity_name = map[int32]string{
		0: "DIAGNOSTIC_SEVERITY_UNKNOWN",
		1: "DIAGNOSTIC_SEVERITY_ERROR",
		2: "DIAGNOSTIC_SEVERITY_WARNING",
		3: "DIAGNOSTIC_SEVERITY_INFORMATION",
		4: "DIAGNOSTIC_SEVERITY_HINT",
	}
	DiagnosticSeverity_value = map[string]int32{
		"DIAGNOSTIC_SEVERITY_UNKNOWN":     0,
		"DIAGNOSTIC_SEVERITY_ERROR":       1,
		"DIAGNOSTIC_SEVERITY_WARNING":     2,
		"DIAGNOSTIC_SEVERITY_INFORMATION": 3,
		"DIAGNOSTIC_SEVERITY_HINT":        4,
	}
)

Enum value maps for DiagnosticSeverity.

View Source
var (
	CompletionKind_name = map[int32]string{
		0:  "COMPLETION_KIND_UNKNOWN",
		1:  "COMPLETION_KIND_TEXT",
		2:  "COMPLETION_KIND_METHOD",
		3:  "COMPLETION_KIND_FUNCTION",
		4:  "COMPLETION_KIND_CONSTRUCTOR",
		5:  "COMPLETION_KIND_FIELD",
		6:  "COMPLETION_KIND_VARIABLE",
		7:  "COMPLETION_KIND_CLASS",
		8:  "COMPLETION_KIND_INTERFACE",
		9:  "COMPLETION_KIND_MODULE",
		10: "COMPLETION_KIND_PROPERTY",
		11: "COMPLETION_KIND_UNIT",
		12: "COMPLETION_KIND_VALUE",
		13: "COMPLETION_KIND_ENUM",
		14: "COMPLETION_KIND_KEYWORD",
		15: "COMPLETION_KIND_SNIPPET",
		16: "COMPLETION_KIND_COLOR",
		17: "COMPLETION_KIND_FILE",
		18: "COMPLETION_KIND_REFERENCE",
		19: "COMPLETION_KIND_FOLDER",
		20: "COMPLETION_KIND_ENUM_MEMBER",
		21: "COMPLETION_KIND_CONSTANT",
		22: "COMPLETION_KIND_STRUCT",
		23: "COMPLETION_KIND_EVENT",
		24: "COMPLETION_KIND_OPERATOR",
		25: "COMPLETION_KIND_TYPE_PARAMETER",
	}
	CompletionKind_value = map[string]int32{
		"COMPLETION_KIND_UNKNOWN":        0,
		"COMPLETION_KIND_TEXT":           1,
		"COMPLETION_KIND_METHOD":         2,
		"COMPLETION_KIND_FUNCTION":       3,
		"COMPLETION_KIND_CONSTRUCTOR":    4,
		"COMPLETION_KIND_FIELD":          5,
		"COMPLETION_KIND_VARIABLE":       6,
		"COMPLETION_KIND_CLASS":          7,
		"COMPLETION_KIND_INTERFACE":      8,
		"COMPLETION_KIND_MODULE":         9,
		"COMPLETION_KIND_PROPERTY":       10,
		"COMPLETION_KIND_UNIT":           11,
		"COMPLETION_KIND_VALUE":          12,
		"COMPLETION_KIND_ENUM":           13,
		"COMPLETION_KIND_KEYWORD":        14,
		"COMPLETION_KIND_SNIPPET":        15,
		"COMPLETION_KIND_COLOR":          16,
		"COMPLETION_KIND_FILE":           17,
		"COMPLETION_KIND_REFERENCE":      18,
		"COMPLETION_KIND_FOLDER":         19,
		"COMPLETION_KIND_ENUM_MEMBER":    20,
		"COMPLETION_KIND_CONSTANT":       21,
		"COMPLETION_KIND_STRUCT":         22,
		"COMPLETION_KIND_EVENT":          23,
		"COMPLETION_KIND_OPERATOR":       24,
		"COMPLETION_KIND_TYPE_PARAMETER": 25,
	}
)

Enum value maps for CompletionKind.

View Source
var (
	ListSymbolsStatus_Status_name = map[int32]string{
		0: "UNKNOWN",
		1: "SUCCESS",
		2: "ERROR",
	}
	ListSymbolsStatus_Status_value = map[string]int32{
		"UNKNOWN": 0,
		"SUCCESS": 1,
		"ERROR":   2,
	}
)

Enum value maps for ListSymbolsStatus_Status.

View Source
var Code_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "codefly.services.code.v0.Code",
	HandlerType: (*CodeServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "Execute",
			Handler:    _Code_Execute_Handler,
		},
		{
			MethodName: "ListSymbols",
			Handler:    _Code_ListSymbols_Handler,
		},
		{
			MethodName: "GetDiagnostics",
			Handler:    _Code_GetDiagnostics_Handler,
		},
		{
			MethodName: "GoToDefinition",
			Handler:    _Code_GoToDefinition_Handler,
		},
		{
			MethodName: "FindReferences",
			Handler:    _Code_FindReferences_Handler,
		},
		{
			MethodName: "GetHoverInfo",
			Handler:    _Code_GetHoverInfo_Handler,
		},
		{
			MethodName: "ApplyEdit",
			Handler:    _Code_ApplyEdit_Handler,
		},
		{
			MethodName: "GetCallGraph",
			Handler:    _Code_GetCallGraph_Handler,
		},
		{
			MethodName: "ShellExec",
			Handler:    _Code_ShellExec_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "codefly/services/code/v0/code.proto",
}

Code_ServiceDesc is the grpc.ServiceDesc for Code service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)

View Source
var File_codefly_services_code_v0_code_proto protoreflect.FileDescriptor

Functions

func RegisterCodeServer

func RegisterCodeServer(s grpc.ServiceRegistrar, srv CodeServer)

Types

type AddDependencyRequest

type AddDependencyRequest struct {
	PackageName string `protobuf:"bytes,1,opt,name=package_name,json=packageName,proto3" json:"package_name,omitempty"` // e.g. "github.com/gin-gonic/gin"
	Version     string `protobuf:"bytes,2,opt,name=version,proto3" json:"version,omitempty"`                            // optional: specific version
	// contains filtered or unexported fields
}

AddDependency adds a package/module via the language package manager.

func (*AddDependencyRequest) Descriptor deprecated

func (*AddDependencyRequest) Descriptor() ([]byte, []int)

Deprecated: Use AddDependencyRequest.ProtoReflect.Descriptor instead.

func (*AddDependencyRequest) GetPackageName

func (x *AddDependencyRequest) GetPackageName() string

func (*AddDependencyRequest) GetVersion

func (x *AddDependencyRequest) GetVersion() string

func (*AddDependencyRequest) ProtoMessage

func (*AddDependencyRequest) ProtoMessage()

func (*AddDependencyRequest) ProtoReflect

func (x *AddDependencyRequest) ProtoReflect() protoreflect.Message

func (*AddDependencyRequest) Reset

func (x *AddDependencyRequest) Reset()

func (*AddDependencyRequest) String

func (x *AddDependencyRequest) String() string

type AddDependencyResponse

type AddDependencyResponse struct {
	Success          bool   `protobuf:"varint,1,opt,name=success,proto3" json:"success,omitempty"`
	Error            string `protobuf:"bytes,2,opt,name=error,proto3" json:"error,omitempty"`
	InstalledVersion string `protobuf:"bytes,3,opt,name=installed_version,json=installedVersion,proto3" json:"installed_version,omitempty"`
	// contains filtered or unexported fields
}

func (*AddDependencyResponse) Descriptor deprecated

func (*AddDependencyResponse) Descriptor() ([]byte, []int)

Deprecated: Use AddDependencyResponse.ProtoReflect.Descriptor instead.

func (*AddDependencyResponse) GetError

func (x *AddDependencyResponse) GetError() string

func (*AddDependencyResponse) GetInstalledVersion

func (x *AddDependencyResponse) GetInstalledVersion() string

func (*AddDependencyResponse) GetSuccess

func (x *AddDependencyResponse) GetSuccess() bool

func (*AddDependencyResponse) ProtoMessage

func (*AddDependencyResponse) ProtoMessage()

func (*AddDependencyResponse) ProtoReflect

func (x *AddDependencyResponse) ProtoReflect() protoreflect.Message

func (*AddDependencyResponse) Reset

func (x *AddDependencyResponse) Reset()

func (*AddDependencyResponse) String

func (x *AddDependencyResponse) String() string

type ApplyEditRequest

type ApplyEditRequest struct {
	File    string `protobuf:"bytes,1,opt,name=file,proto3" json:"file,omitempty"`                       // relative path within the service
	Find    string `protobuf:"bytes,2,opt,name=find,proto3" json:"find,omitempty"`                       // text to find (may not be an exact match)
	Replace string `protobuf:"bytes,3,opt,name=replace,proto3" json:"replace,omitempty"`                 // replacement text
	AutoFix bool   `protobuf:"varint,4,opt,name=auto_fix,json=autoFix,proto3" json:"auto_fix,omitempty"` // if true, run language-specific fixers after edit
	// contains filtered or unexported fields
}

ApplyEdit performs a smart FIND/REPLACE on a file at the plugin level. The plugin owns the matching strategies because it knows the language: exact match, whitespace-normalized, indent-shifted, anchor-based, fuzzy scored. After a successful edit, the plugin runs Fix (goimports, gofmt, etc.) automatically.

func (*ApplyEditRequest) Descriptor deprecated

func (*ApplyEditRequest) Descriptor() ([]byte, []int)

Deprecated: Use ApplyEditRequest.ProtoReflect.Descriptor instead.

func (*ApplyEditRequest) GetAutoFix

func (x *ApplyEditRequest) GetAutoFix() bool

func (*ApplyEditRequest) GetFile

func (x *ApplyEditRequest) GetFile() string

func (*ApplyEditRequest) GetFind

func (x *ApplyEditRequest) GetFind() string

func (*ApplyEditRequest) GetReplace

func (x *ApplyEditRequest) GetReplace() string

func (*ApplyEditRequest) ProtoMessage

func (*ApplyEditRequest) ProtoMessage()

func (*ApplyEditRequest) ProtoReflect

func (x *ApplyEditRequest) ProtoReflect() protoreflect.Message

func (*ApplyEditRequest) Reset

func (x *ApplyEditRequest) Reset()

func (*ApplyEditRequest) String

func (x *ApplyEditRequest) String() string

type ApplyEditResponse

type ApplyEditResponse struct {
	Success    bool     `protobuf:"varint,1,opt,name=success,proto3" json:"success,omitempty"`
	Content    string   `protobuf:"bytes,2,opt,name=content,proto3" json:"content,omitempty"`                         // the file content after edit + fix
	Error      string   `protobuf:"bytes,3,opt,name=error,proto3" json:"error,omitempty"`                             // why the edit failed (e.g. "FIND block not matched")
	Strategy   string   `protobuf:"bytes,4,opt,name=strategy,proto3" json:"strategy,omitempty"`                       // which matching strategy was used: "exact", "trailing", "trimmed", "indent_shifted", "anchor", "fuzzy_score", "fuzzy_block"
	FixActions []string `protobuf:"bytes,5,rep,name=fix_actions,json=fixActions,proto3" json:"fix_actions,omitempty"` // what fixers ran: "goimports", "gofmt", etc.
	// contains filtered or unexported fields
}

func (*ApplyEditResponse) Descriptor deprecated

func (*ApplyEditResponse) Descriptor() ([]byte, []int)

Deprecated: Use ApplyEditResponse.ProtoReflect.Descriptor instead.

func (*ApplyEditResponse) GetContent

func (x *ApplyEditResponse) GetContent() string

func (*ApplyEditResponse) GetError

func (x *ApplyEditResponse) GetError() string

func (*ApplyEditResponse) GetFixActions

func (x *ApplyEditResponse) GetFixActions() []string

func (*ApplyEditResponse) GetStrategy

func (x *ApplyEditResponse) GetStrategy() string

func (*ApplyEditResponse) GetSuccess

func (x *ApplyEditResponse) GetSuccess() bool

func (*ApplyEditResponse) ProtoMessage

func (*ApplyEditResponse) ProtoMessage()

func (*ApplyEditResponse) ProtoReflect

func (x *ApplyEditResponse) ProtoReflect() protoreflect.Message

func (*ApplyEditResponse) Reset

func (x *ApplyEditResponse) Reset()

func (*ApplyEditResponse) String

func (x *ApplyEditResponse) String() string

type CallEdge

type CallEdge struct {
	CallerId string    `protobuf:"bytes,1,opt,name=caller_id,json=callerId,proto3" json:"caller_id,omitempty"` // qualified name of the calling function
	CalleeId string    `protobuf:"bytes,2,opt,name=callee_id,json=calleeId,proto3" json:"callee_id,omitempty"` // qualified name of the called function
	CallType string    `protobuf:"bytes,3,opt,name=call_type,json=callType,proto3" json:"call_type,omitempty"` // "static", "interface", "closure"
	CallSite *Location `protobuf:"bytes,4,opt,name=call_site,json=callSite,proto3" json:"call_site,omitempty"` // where the call happens in source
	// contains filtered or unexported fields
}

CallEdge represents a function call from one symbol to another.

func (*CallEdge) Descriptor deprecated

func (*CallEdge) Descriptor() ([]byte, []int)

Deprecated: Use CallEdge.ProtoReflect.Descriptor instead.

func (*CallEdge) GetCallSite

func (x *CallEdge) GetCallSite() *Location

func (*CallEdge) GetCallType

func (x *CallEdge) GetCallType() string

func (*CallEdge) GetCalleeId

func (x *CallEdge) GetCalleeId() string

func (*CallEdge) GetCallerId

func (x *CallEdge) GetCallerId() string

func (*CallEdge) ProtoMessage

func (*CallEdge) ProtoMessage()

func (*CallEdge) ProtoReflect

func (x *CallEdge) ProtoReflect() protoreflect.Message

func (*CallEdge) Reset

func (x *CallEdge) Reset()

func (*CallEdge) String

func (x *CallEdge) String() string

type CodeClient

type CodeClient interface {
	// Execute is the unified dispatch entry point for every code operation.
	// Clients wrap the specific request type in a CodeRequest oneof; the
	// plugin's Execute handler unwraps + dispatches. This is the path Mind
	// uses for everything except the few direct RPCs below that predate
	// the unification and still have live callers in codefly-cli.
	Execute(ctx context.Context, in *CodeRequest, opts ...grpc.CallOption) (*CodeResponse, error)
	ListSymbols(ctx context.Context, in *ListSymbolsRequest, opts ...grpc.CallOption) (*ListSymbolsResponse, error)
	GetDiagnostics(ctx context.Context, in *GetDiagnosticsRequest, opts ...grpc.CallOption) (*GetDiagnosticsResponse, error)
	GoToDefinition(ctx context.Context, in *GoToDefinitionRequest, opts ...grpc.CallOption) (*GoToDefinitionResponse, error)
	FindReferences(ctx context.Context, in *FindReferencesRequest, opts ...grpc.CallOption) (*FindReferencesResponse, error)
	GetHoverInfo(ctx context.Context, in *GetHoverInfoRequest, opts ...grpc.CallOption) (*GetHoverInfoResponse, error)
	ApplyEdit(ctx context.Context, in *ApplyEditRequest, opts ...grpc.CallOption) (*ApplyEditResponse, error)
	GetCallGraph(ctx context.Context, in *GetCallGraphRequest, opts ...grpc.CallOption) (*GetCallGraphResponse, error)
	// ShellExec is the one sanctioned path for running shell commands
	// against a workspace. Clients call this instead of os/exec so all
	// process spawning crosses the plugin boundary (the agent).
	ShellExec(ctx context.Context, in *ShellExecRequest, opts ...grpc.CallOption) (*ShellExecResponse, error)
}

CodeClient is the client API for Code service.

For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.

func NewCodeClient

func NewCodeClient(cc grpc.ClientConnInterface) CodeClient

type CodeRequest

type CodeRequest struct {

	// Types that are valid to be assigned to Operation:
	//
	//	*CodeRequest_ListSymbols
	//	*CodeRequest_GetDiagnostics
	//	*CodeRequest_GoToDefinition
	//	*CodeRequest_FindReferences
	//	*CodeRequest_RenameSymbol
	//	*CodeRequest_GetHoverInfo
	//	*CodeRequest_Fix
	//	*CodeRequest_ApplyEdit
	//	*CodeRequest_ListDependencies
	//	*CodeRequest_AddDependency
	//	*CodeRequest_RemoveDependency
	//	*CodeRequest_GetProjectInfo
	//	*CodeRequest_GetCompletions
	//	*CodeRequest_GetCallGraph
	//	*CodeRequest_ReadFile
	//	*CodeRequest_WriteFile
	//	*CodeRequest_CreateFile
	//	*CodeRequest_DeleteFile
	//	*CodeRequest_MoveFile
	//	*CodeRequest_ListFiles
	//	*CodeRequest_Search
	//	*CodeRequest_GitLog
	//	*CodeRequest_GitShow
	//	*CodeRequest_GitBlame
	//	*CodeRequest_GitDiff
	//	*CodeRequest_ShellExec
	Operation isCodeRequest_Operation `protobuf_oneof:"operation"`
	// contains filtered or unexported fields
}

CodeRequest wraps all code operations into a single dispatch envelope. Plugins implement one Execute RPC; core provides default handlers for file I/O, git, fix, apply-edit, dependency mgmt, project info. Mind never handles any of these directly — it ALWAYS forwards to the appropriate codefly plugin via Execute (or via one of the remaining direct RPCs: ListSymbols / FindReferences / GoToDefinition / GetDiagnostics / GetHoverInfo / ApplyEdit / ShellExec / GetCallGraph).

func (*CodeRequest) Descriptor deprecated

func (*CodeRequest) Descriptor() ([]byte, []int)

Deprecated: Use CodeRequest.ProtoReflect.Descriptor instead.

func (*CodeRequest) GetAddDependency

func (x *CodeRequest) GetAddDependency() *AddDependencyRequest

func (*CodeRequest) GetApplyEdit

func (x *CodeRequest) GetApplyEdit() *ApplyEditRequest

func (*CodeRequest) GetCreateFile

func (x *CodeRequest) GetCreateFile() *CreateFileRequest

func (*CodeRequest) GetDeleteFile

func (x *CodeRequest) GetDeleteFile() *DeleteFileRequest

func (*CodeRequest) GetFindReferences

func (x *CodeRequest) GetFindReferences() *FindReferencesRequest

func (*CodeRequest) GetFix

func (x *CodeRequest) GetFix() *FixRequest

func (*CodeRequest) GetGetCallGraph

func (x *CodeRequest) GetGetCallGraph() *GetCallGraphRequest

func (*CodeRequest) GetGetCompletions

func (x *CodeRequest) GetGetCompletions() *GetCompletionsRequest

func (*CodeRequest) GetGetDiagnostics

func (x *CodeRequest) GetGetDiagnostics() *GetDiagnosticsRequest

func (*CodeRequest) GetGetHoverInfo

func (x *CodeRequest) GetGetHoverInfo() *GetHoverInfoRequest

func (*CodeRequest) GetGetProjectInfo

func (x *CodeRequest) GetGetProjectInfo() *GetProjectInfoRequest

func (*CodeRequest) GetGitBlame

func (x *CodeRequest) GetGitBlame() *GitBlameRequest

func (*CodeRequest) GetGitDiff

func (x *CodeRequest) GetGitDiff() *GitDiffRequest

func (*CodeRequest) GetGitLog

func (x *CodeRequest) GetGitLog() *GitLogRequest

func (*CodeRequest) GetGitShow

func (x *CodeRequest) GetGitShow() *GitShowRequest

func (*CodeRequest) GetGoToDefinition

func (x *CodeRequest) GetGoToDefinition() *GoToDefinitionRequest

func (*CodeRequest) GetListDependencies

func (x *CodeRequest) GetListDependencies() *ListDependenciesRequest

func (*CodeRequest) GetListFiles

func (x *CodeRequest) GetListFiles() *ListFilesRequest

func (*CodeRequest) GetListSymbols

func (x *CodeRequest) GetListSymbols() *ListSymbolsRequest

func (*CodeRequest) GetMoveFile

func (x *CodeRequest) GetMoveFile() *MoveFileRequest

func (*CodeRequest) GetOperation

func (x *CodeRequest) GetOperation() isCodeRequest_Operation

func (*CodeRequest) GetReadFile

func (x *CodeRequest) GetReadFile() *ReadFileRequest

func (*CodeRequest) GetRemoveDependency

func (x *CodeRequest) GetRemoveDependency() *RemoveDependencyRequest

func (*CodeRequest) GetRenameSymbol

func (x *CodeRequest) GetRenameSymbol() *RenameSymbolRequest

func (*CodeRequest) GetSearch

func (x *CodeRequest) GetSearch() *SearchRequest

func (*CodeRequest) GetShellExec

func (x *CodeRequest) GetShellExec() *ShellExecRequest

func (*CodeRequest) GetWriteFile

func (x *CodeRequest) GetWriteFile() *WriteFileRequest

func (*CodeRequest) ProtoMessage

func (*CodeRequest) ProtoMessage()

func (*CodeRequest) ProtoReflect

func (x *CodeRequest) ProtoReflect() protoreflect.Message

func (*CodeRequest) Reset

func (x *CodeRequest) Reset()

func (*CodeRequest) String

func (x *CodeRequest) String() string

type CodeRequest_AddDependency

type CodeRequest_AddDependency struct {
	AddDependency *AddDependencyRequest `protobuf:"bytes,17,opt,name=add_dependency,json=addDependency,proto3,oneof"`
}

type CodeRequest_ApplyEdit

type CodeRequest_ApplyEdit struct {
	ApplyEdit *ApplyEditRequest `protobuf:"bytes,14,opt,name=apply_edit,json=applyEdit,proto3,oneof"`
}

type CodeRequest_CreateFile

type CodeRequest_CreateFile struct {
	CreateFile *CreateFileRequest `protobuf:"bytes,28,opt,name=create_file,json=createFile,proto3,oneof"`
}

type CodeRequest_DeleteFile

type CodeRequest_DeleteFile struct {
	DeleteFile *DeleteFileRequest `protobuf:"bytes,29,opt,name=delete_file,json=deleteFile,proto3,oneof"`
}

type CodeRequest_FindReferences

type CodeRequest_FindReferences struct {
	FindReferences *FindReferencesRequest `protobuf:"bytes,10,opt,name=find_references,json=findReferences,proto3,oneof"`
}

type CodeRequest_Fix

type CodeRequest_Fix struct {
	Fix *FixRequest `protobuf:"bytes,13,opt,name=fix,proto3,oneof"`
}

type CodeRequest_GetCallGraph

type CodeRequest_GetCallGraph struct {
	GetCallGraph *GetCallGraphRequest `protobuf:"bytes,25,opt,name=get_call_graph,json=getCallGraph,proto3,oneof"`
}

type CodeRequest_GetCompletions

type CodeRequest_GetCompletions struct {
	GetCompletions *GetCompletionsRequest `protobuf:"bytes,20,opt,name=get_completions,json=getCompletions,proto3,oneof"`
}

type CodeRequest_GetDiagnostics

type CodeRequest_GetDiagnostics struct {
	GetDiagnostics *GetDiagnosticsRequest `protobuf:"bytes,8,opt,name=get_diagnostics,json=getDiagnostics,proto3,oneof"`
}

type CodeRequest_GetHoverInfo

type CodeRequest_GetHoverInfo struct {
	GetHoverInfo *GetHoverInfoRequest `protobuf:"bytes,12,opt,name=get_hover_info,json=getHoverInfo,proto3,oneof"`
}

type CodeRequest_GetProjectInfo

type CodeRequest_GetProjectInfo struct {
	GetProjectInfo *GetProjectInfoRequest `protobuf:"bytes,19,opt,name=get_project_info,json=getProjectInfo,proto3,oneof"`
}

type CodeRequest_GitBlame

type CodeRequest_GitBlame struct {
	GitBlame *GitBlameRequest `protobuf:"bytes,35,opt,name=git_blame,json=gitBlame,proto3,oneof"`
}

type CodeRequest_GitDiff

type CodeRequest_GitDiff struct {
	GitDiff *GitDiffRequest `protobuf:"bytes,36,opt,name=git_diff,json=gitDiff,proto3,oneof"`
}

type CodeRequest_GitLog

type CodeRequest_GitLog struct {
	GitLog *GitLogRequest `protobuf:"bytes,33,opt,name=git_log,json=gitLog,proto3,oneof"`
}

type CodeRequest_GitShow

type CodeRequest_GitShow struct {
	GitShow *GitShowRequest `protobuf:"bytes,34,opt,name=git_show,json=gitShow,proto3,oneof"`
}

type CodeRequest_GoToDefinition

type CodeRequest_GoToDefinition struct {
	GoToDefinition *GoToDefinitionRequest `protobuf:"bytes,9,opt,name=go_to_definition,json=goToDefinition,proto3,oneof"`
}

type CodeRequest_ListDependencies

type CodeRequest_ListDependencies struct {
	ListDependencies *ListDependenciesRequest `protobuf:"bytes,16,opt,name=list_dependencies,json=listDependencies,proto3,oneof"`
}

type CodeRequest_ListFiles

type CodeRequest_ListFiles struct {
	ListFiles *ListFilesRequest `protobuf:"bytes,31,opt,name=list_files,json=listFiles,proto3,oneof"`
}

type CodeRequest_ListSymbols

type CodeRequest_ListSymbols struct {
	ListSymbols *ListSymbolsRequest `protobuf:"bytes,7,opt,name=list_symbols,json=listSymbols,proto3,oneof"`
}

type CodeRequest_MoveFile

type CodeRequest_MoveFile struct {
	MoveFile *MoveFileRequest `protobuf:"bytes,30,opt,name=move_file,json=moveFile,proto3,oneof"`
}

type CodeRequest_ReadFile

type CodeRequest_ReadFile struct {
	// File and git operations — handled by the Code agent's default server
	// (pkg/code/DefaultCodeServer in codefly core) backed by the workspace's
	// virtual filesystem and go-git. Mind never touches files directly.
	ReadFile *ReadFileRequest `protobuf:"bytes,26,opt,name=read_file,json=readFile,proto3,oneof"`
}

type CodeRequest_RemoveDependency

type CodeRequest_RemoveDependency struct {
	RemoveDependency *RemoveDependencyRequest `protobuf:"bytes,18,opt,name=remove_dependency,json=removeDependency,proto3,oneof"`
}

type CodeRequest_RenameSymbol

type CodeRequest_RenameSymbol struct {
	RenameSymbol *RenameSymbolRequest `protobuf:"bytes,11,opt,name=rename_symbol,json=renameSymbol,proto3,oneof"`
}
type CodeRequest_Search struct {
	Search *SearchRequest `protobuf:"bytes,32,opt,name=search,proto3,oneof"`
}

type CodeRequest_ShellExec

type CodeRequest_ShellExec struct {
	// Shell execution — the ONE sanctioned path for running commands
	// against a workspace. Mind never calls os/exec directly; it goes
	// through this RPC so the plugin boundary owns all process spawning.
	ShellExec *ShellExecRequest `protobuf:"bytes,37,opt,name=shell_exec,json=shellExec,proto3,oneof"`
}

type CodeRequest_WriteFile

type CodeRequest_WriteFile struct {
	WriteFile *WriteFileRequest `protobuf:"bytes,27,opt,name=write_file,json=writeFile,proto3,oneof"`
}

type CodeResponse

type CodeResponse struct {

	// Types that are valid to be assigned to Result:
	//
	//	*CodeResponse_ListSymbols
	//	*CodeResponse_GetDiagnostics
	//	*CodeResponse_GoToDefinition
	//	*CodeResponse_FindReferences
	//	*CodeResponse_RenameSymbol
	//	*CodeResponse_GetHoverInfo
	//	*CodeResponse_Fix
	//	*CodeResponse_ApplyEdit
	//	*CodeResponse_ListDependencies
	//	*CodeResponse_AddDependency
	//	*CodeResponse_RemoveDependency
	//	*CodeResponse_GetProjectInfo
	//	*CodeResponse_GetCompletions
	//	*CodeResponse_GetCallGraph
	//	*CodeResponse_ReadFile
	//	*CodeResponse_WriteFile
	//	*CodeResponse_CreateFile
	//	*CodeResponse_DeleteFile
	//	*CodeResponse_MoveFile
	//	*CodeResponse_ListFiles
	//	*CodeResponse_Search
	//	*CodeResponse_GitLog
	//	*CodeResponse_GitShow
	//	*CodeResponse_GitBlame
	//	*CodeResponse_GitDiff
	//	*CodeResponse_ShellExec
	Result isCodeResponse_Result `protobuf_oneof:"result"`
	// contains filtered or unexported fields
}

CodeResponse wraps all code operation results.

func (*CodeResponse) Descriptor deprecated

func (*CodeResponse) Descriptor() ([]byte, []int)

Deprecated: Use CodeResponse.ProtoReflect.Descriptor instead.

func (*CodeResponse) GetAddDependency

func (x *CodeResponse) GetAddDependency() *AddDependencyResponse

func (*CodeResponse) GetApplyEdit

func (x *CodeResponse) GetApplyEdit() *ApplyEditResponse

func (*CodeResponse) GetCreateFile

func (x *CodeResponse) GetCreateFile() *CreateFileResponse

func (*CodeResponse) GetDeleteFile

func (x *CodeResponse) GetDeleteFile() *DeleteFileResponse

func (*CodeResponse) GetFindReferences

func (x *CodeResponse) GetFindReferences() *FindReferencesResponse

func (*CodeResponse) GetFix

func (x *CodeResponse) GetFix() *FixResponse

func (*CodeResponse) GetGetCallGraph

func (x *CodeResponse) GetGetCallGraph() *GetCallGraphResponse

func (*CodeResponse) GetGetCompletions

func (x *CodeResponse) GetGetCompletions() *GetCompletionsResponse

func (*CodeResponse) GetGetDiagnostics

func (x *CodeResponse) GetGetDiagnostics() *GetDiagnosticsResponse

func (*CodeResponse) GetGetHoverInfo

func (x *CodeResponse) GetGetHoverInfo() *GetHoverInfoResponse

func (*CodeResponse) GetGetProjectInfo

func (x *CodeResponse) GetGetProjectInfo() *GetProjectInfoResponse

func (*CodeResponse) GetGitBlame

func (x *CodeResponse) GetGitBlame() *GitBlameResponse

func (*CodeResponse) GetGitDiff

func (x *CodeResponse) GetGitDiff() *GitDiffResponse

func (*CodeResponse) GetGitLog

func (x *CodeResponse) GetGitLog() *GitLogResponse

func (*CodeResponse) GetGitShow

func (x *CodeResponse) GetGitShow() *GitShowResponse

func (*CodeResponse) GetGoToDefinition

func (x *CodeResponse) GetGoToDefinition() *GoToDefinitionResponse

func (*CodeResponse) GetListDependencies

func (x *CodeResponse) GetListDependencies() *ListDependenciesResponse

func (*CodeResponse) GetListFiles

func (x *CodeResponse) GetListFiles() *ListFilesResponse

func (*CodeResponse) GetListSymbols

func (x *CodeResponse) GetListSymbols() *ListSymbolsResponse

func (*CodeResponse) GetMoveFile

func (x *CodeResponse) GetMoveFile() *MoveFileResponse

func (*CodeResponse) GetReadFile

func (x *CodeResponse) GetReadFile() *ReadFileResponse

func (*CodeResponse) GetRemoveDependency

func (x *CodeResponse) GetRemoveDependency() *RemoveDependencyResponse

func (*CodeResponse) GetRenameSymbol

func (x *CodeResponse) GetRenameSymbol() *RenameSymbolResponse

func (*CodeResponse) GetResult

func (x *CodeResponse) GetResult() isCodeResponse_Result

func (*CodeResponse) GetSearch

func (x *CodeResponse) GetSearch() *SearchResponse

func (*CodeResponse) GetShellExec

func (x *CodeResponse) GetShellExec() *ShellExecResponse

func (*CodeResponse) GetWriteFile

func (x *CodeResponse) GetWriteFile() *WriteFileResponse

func (*CodeResponse) ProtoMessage

func (*CodeResponse) ProtoMessage()

func (*CodeResponse) ProtoReflect

func (x *CodeResponse) ProtoReflect() protoreflect.Message

func (*CodeResponse) Reset

func (x *CodeResponse) Reset()

func (*CodeResponse) String

func (x *CodeResponse) String() string

type CodeResponse_AddDependency

type CodeResponse_AddDependency struct {
	AddDependency *AddDependencyResponse `protobuf:"bytes,17,opt,name=add_dependency,json=addDependency,proto3,oneof"`
}

type CodeResponse_ApplyEdit

type CodeResponse_ApplyEdit struct {
	ApplyEdit *ApplyEditResponse `protobuf:"bytes,14,opt,name=apply_edit,json=applyEdit,proto3,oneof"`
}

type CodeResponse_CreateFile

type CodeResponse_CreateFile struct {
	CreateFile *CreateFileResponse `protobuf:"bytes,28,opt,name=create_file,json=createFile,proto3,oneof"`
}

type CodeResponse_DeleteFile

type CodeResponse_DeleteFile struct {
	DeleteFile *DeleteFileResponse `protobuf:"bytes,29,opt,name=delete_file,json=deleteFile,proto3,oneof"`
}

type CodeResponse_FindReferences

type CodeResponse_FindReferences struct {
	FindReferences *FindReferencesResponse `protobuf:"bytes,10,opt,name=find_references,json=findReferences,proto3,oneof"`
}

type CodeResponse_Fix

type CodeResponse_Fix struct {
	Fix *FixResponse `protobuf:"bytes,13,opt,name=fix,proto3,oneof"`
}

type CodeResponse_GetCallGraph

type CodeResponse_GetCallGraph struct {
	GetCallGraph *GetCallGraphResponse `protobuf:"bytes,25,opt,name=get_call_graph,json=getCallGraph,proto3,oneof"`
}

type CodeResponse_GetCompletions

type CodeResponse_GetCompletions struct {
	GetCompletions *GetCompletionsResponse `protobuf:"bytes,20,opt,name=get_completions,json=getCompletions,proto3,oneof"`
}

type CodeResponse_GetDiagnostics

type CodeResponse_GetDiagnostics struct {
	GetDiagnostics *GetDiagnosticsResponse `protobuf:"bytes,8,opt,name=get_diagnostics,json=getDiagnostics,proto3,oneof"`
}

type CodeResponse_GetHoverInfo

type CodeResponse_GetHoverInfo struct {
	GetHoverInfo *GetHoverInfoResponse `protobuf:"bytes,12,opt,name=get_hover_info,json=getHoverInfo,proto3,oneof"`
}

type CodeResponse_GetProjectInfo

type CodeResponse_GetProjectInfo struct {
	GetProjectInfo *GetProjectInfoResponse `protobuf:"bytes,19,opt,name=get_project_info,json=getProjectInfo,proto3,oneof"`
}

type CodeResponse_GitBlame

type CodeResponse_GitBlame struct {
	GitBlame *GitBlameResponse `protobuf:"bytes,35,opt,name=git_blame,json=gitBlame,proto3,oneof"`
}

type CodeResponse_GitDiff

type CodeResponse_GitDiff struct {
	GitDiff *GitDiffResponse `protobuf:"bytes,36,opt,name=git_diff,json=gitDiff,proto3,oneof"`
}

type CodeResponse_GitLog

type CodeResponse_GitLog struct {
	GitLog *GitLogResponse `protobuf:"bytes,33,opt,name=git_log,json=gitLog,proto3,oneof"`
}

type CodeResponse_GitShow

type CodeResponse_GitShow struct {
	GitShow *GitShowResponse `protobuf:"bytes,34,opt,name=git_show,json=gitShow,proto3,oneof"`
}

type CodeResponse_GoToDefinition

type CodeResponse_GoToDefinition struct {
	GoToDefinition *GoToDefinitionResponse `protobuf:"bytes,9,opt,name=go_to_definition,json=goToDefinition,proto3,oneof"`
}

type CodeResponse_ListDependencies

type CodeResponse_ListDependencies struct {
	ListDependencies *ListDependenciesResponse `protobuf:"bytes,16,opt,name=list_dependencies,json=listDependencies,proto3,oneof"`
}

type CodeResponse_ListFiles

type CodeResponse_ListFiles struct {
	ListFiles *ListFilesResponse `protobuf:"bytes,31,opt,name=list_files,json=listFiles,proto3,oneof"`
}

type CodeResponse_ListSymbols

type CodeResponse_ListSymbols struct {
	ListSymbols *ListSymbolsResponse `protobuf:"bytes,7,opt,name=list_symbols,json=listSymbols,proto3,oneof"`
}

type CodeResponse_MoveFile

type CodeResponse_MoveFile struct {
	MoveFile *MoveFileResponse `protobuf:"bytes,30,opt,name=move_file,json=moveFile,proto3,oneof"`
}

type CodeResponse_ReadFile

type CodeResponse_ReadFile struct {
	// File and git operation responses.
	ReadFile *ReadFileResponse `protobuf:"bytes,26,opt,name=read_file,json=readFile,proto3,oneof"`
}

type CodeResponse_RemoveDependency

type CodeResponse_RemoveDependency struct {
	RemoveDependency *RemoveDependencyResponse `protobuf:"bytes,18,opt,name=remove_dependency,json=removeDependency,proto3,oneof"`
}

type CodeResponse_RenameSymbol

type CodeResponse_RenameSymbol struct {
	RenameSymbol *RenameSymbolResponse `protobuf:"bytes,11,opt,name=rename_symbol,json=renameSymbol,proto3,oneof"`
}
type CodeResponse_Search struct {
	Search *SearchResponse `protobuf:"bytes,32,opt,name=search,proto3,oneof"`
}

type CodeResponse_ShellExec

type CodeResponse_ShellExec struct {
	ShellExec *ShellExecResponse `protobuf:"bytes,37,opt,name=shell_exec,json=shellExec,proto3,oneof"`
}

type CodeResponse_WriteFile

type CodeResponse_WriteFile struct {
	WriteFile *WriteFileResponse `protobuf:"bytes,27,opt,name=write_file,json=writeFile,proto3,oneof"`
}

type CodeServer

type CodeServer interface {
	// Execute is the unified dispatch entry point for every code operation.
	// Clients wrap the specific request type in a CodeRequest oneof; the
	// plugin's Execute handler unwraps + dispatches. This is the path Mind
	// uses for everything except the few direct RPCs below that predate
	// the unification and still have live callers in codefly-cli.
	Execute(context.Context, *CodeRequest) (*CodeResponse, error)
	ListSymbols(context.Context, *ListSymbolsRequest) (*ListSymbolsResponse, error)
	GetDiagnostics(context.Context, *GetDiagnosticsRequest) (*GetDiagnosticsResponse, error)
	GoToDefinition(context.Context, *GoToDefinitionRequest) (*GoToDefinitionResponse, error)
	FindReferences(context.Context, *FindReferencesRequest) (*FindReferencesResponse, error)
	GetHoverInfo(context.Context, *GetHoverInfoRequest) (*GetHoverInfoResponse, error)
	ApplyEdit(context.Context, *ApplyEditRequest) (*ApplyEditResponse, error)
	GetCallGraph(context.Context, *GetCallGraphRequest) (*GetCallGraphResponse, error)
	// ShellExec is the one sanctioned path for running shell commands
	// against a workspace. Clients call this instead of os/exec so all
	// process spawning crosses the plugin boundary (the agent).
	ShellExec(context.Context, *ShellExecRequest) (*ShellExecResponse, error)
	// contains filtered or unexported methods
}

CodeServer is the server API for Code service. All implementations must embed UnimplementedCodeServer for forward compatibility.

type CompletionItem

type CompletionItem struct {
	Label         string         `protobuf:"bytes,1,opt,name=label,proto3" json:"label,omitempty"` // the text to display and insert
	Kind          CompletionKind `protobuf:"varint,2,opt,name=kind,proto3,enum=codefly.services.code.v0.CompletionKind" json:"kind,omitempty"`
	Detail        string         `protobuf:"bytes,3,opt,name=detail,proto3" json:"detail,omitempty"`                           // short description (e.g. type signature)
	Documentation string         `protobuf:"bytes,4,opt,name=documentation,proto3" json:"documentation,omitempty"`             // longer documentation (may be markdown)
	InsertText    string         `protobuf:"bytes,5,opt,name=insert_text,json=insertText,proto3" json:"insert_text,omitempty"` // text to insert (if different from label)
	SortText      string         `protobuf:"bytes,6,opt,name=sort_text,json=sortText,proto3" json:"sort_text,omitempty"`       // text used for sorting
	// contains filtered or unexported fields
}

CompletionItem represents a single completion suggestion.

func (*CompletionItem) Descriptor deprecated

func (*CompletionItem) Descriptor() ([]byte, []int)

Deprecated: Use CompletionItem.ProtoReflect.Descriptor instead.

func (*CompletionItem) GetDetail

func (x *CompletionItem) GetDetail() string

func (*CompletionItem) GetDocumentation

func (x *CompletionItem) GetDocumentation() string

func (*CompletionItem) GetInsertText

func (x *CompletionItem) GetInsertText() string

func (*CompletionItem) GetKind

func (x *CompletionItem) GetKind() CompletionKind

func (*CompletionItem) GetLabel

func (x *CompletionItem) GetLabel() string

func (*CompletionItem) GetSortText

func (x *CompletionItem) GetSortText() string

func (*CompletionItem) ProtoMessage

func (*CompletionItem) ProtoMessage()

func (*CompletionItem) ProtoReflect

func (x *CompletionItem) ProtoReflect() protoreflect.Message

func (*CompletionItem) Reset

func (x *CompletionItem) Reset()

func (*CompletionItem) String

func (x *CompletionItem) String() string

type CompletionKind

type CompletionKind int32

CompletionKind mirrors LSP CompletionItemKind.

const (
	CompletionKind_COMPLETION_KIND_UNKNOWN        CompletionKind = 0
	CompletionKind_COMPLETION_KIND_TEXT           CompletionKind = 1
	CompletionKind_COMPLETION_KIND_METHOD         CompletionKind = 2
	CompletionKind_COMPLETION_KIND_FUNCTION       CompletionKind = 3
	CompletionKind_COMPLETION_KIND_CONSTRUCTOR    CompletionKind = 4
	CompletionKind_COMPLETION_KIND_FIELD          CompletionKind = 5
	CompletionKind_COMPLETION_KIND_VARIABLE       CompletionKind = 6
	CompletionKind_COMPLETION_KIND_CLASS          CompletionKind = 7
	CompletionKind_COMPLETION_KIND_INTERFACE      CompletionKind = 8
	CompletionKind_COMPLETION_KIND_MODULE         CompletionKind = 9
	CompletionKind_COMPLETION_KIND_PROPERTY       CompletionKind = 10
	CompletionKind_COMPLETION_KIND_UNIT           CompletionKind = 11
	CompletionKind_COMPLETION_KIND_VALUE          CompletionKind = 12
	CompletionKind_COMPLETION_KIND_ENUM           CompletionKind = 13
	CompletionKind_COMPLETION_KIND_KEYWORD        CompletionKind = 14
	CompletionKind_COMPLETION_KIND_SNIPPET        CompletionKind = 15
	CompletionKind_COMPLETION_KIND_COLOR          CompletionKind = 16
	CompletionKind_COMPLETION_KIND_FILE           CompletionKind = 17
	CompletionKind_COMPLETION_KIND_REFERENCE      CompletionKind = 18
	CompletionKind_COMPLETION_KIND_FOLDER         CompletionKind = 19
	CompletionKind_COMPLETION_KIND_ENUM_MEMBER    CompletionKind = 20
	CompletionKind_COMPLETION_KIND_CONSTANT       CompletionKind = 21
	CompletionKind_COMPLETION_KIND_STRUCT         CompletionKind = 22
	CompletionKind_COMPLETION_KIND_EVENT          CompletionKind = 23
	CompletionKind_COMPLETION_KIND_OPERATOR       CompletionKind = 24
	CompletionKind_COMPLETION_KIND_TYPE_PARAMETER CompletionKind = 25
)

func (CompletionKind) Descriptor

func (CompletionKind) Enum

func (x CompletionKind) Enum() *CompletionKind

func (CompletionKind) EnumDescriptor deprecated

func (CompletionKind) EnumDescriptor() ([]byte, []int)

Deprecated: Use CompletionKind.Descriptor instead.

func (CompletionKind) Number

func (CompletionKind) String

func (x CompletionKind) String() string

func (CompletionKind) Type

type CreateFileRequest

type CreateFileRequest struct {
	Path      string `protobuf:"bytes,1,opt,name=path,proto3" json:"path,omitempty"` // relative path within the service
	Content   string `protobuf:"bytes,2,opt,name=content,proto3" json:"content,omitempty"`
	Overwrite bool   `protobuf:"varint,3,opt,name=overwrite,proto3" json:"overwrite,omitempty"` // if true, overwrite existing file
	// contains filtered or unexported fields
}

CreateFile creates a new file. Fails if the file already exists unless overwrite is set.

func (*CreateFileRequest) Descriptor deprecated

func (*CreateFileRequest) Descriptor() ([]byte, []int)

Deprecated: Use CreateFileRequest.ProtoReflect.Descriptor instead.

func (*CreateFileRequest) GetContent

func (x *CreateFileRequest) GetContent() string

func (*CreateFileRequest) GetOverwrite

func (x *CreateFileRequest) GetOverwrite() bool

func (*CreateFileRequest) GetPath

func (x *CreateFileRequest) GetPath() string

func (*CreateFileRequest) ProtoMessage

func (*CreateFileRequest) ProtoMessage()

func (*CreateFileRequest) ProtoReflect

func (x *CreateFileRequest) ProtoReflect() protoreflect.Message

func (*CreateFileRequest) Reset

func (x *CreateFileRequest) Reset()

func (*CreateFileRequest) String

func (x *CreateFileRequest) String() string

type CreateFileResponse

type CreateFileResponse struct {
	Success bool   `protobuf:"varint,1,opt,name=success,proto3" json:"success,omitempty"`
	Error   string `protobuf:"bytes,2,opt,name=error,proto3" json:"error,omitempty"`
	// contains filtered or unexported fields
}

func (*CreateFileResponse) Descriptor deprecated

func (*CreateFileResponse) Descriptor() ([]byte, []int)

Deprecated: Use CreateFileResponse.ProtoReflect.Descriptor instead.

func (*CreateFileResponse) GetError

func (x *CreateFileResponse) GetError() string

func (*CreateFileResponse) GetSuccess

func (x *CreateFileResponse) GetSuccess() bool

func (*CreateFileResponse) ProtoMessage

func (*CreateFileResponse) ProtoMessage()

func (*CreateFileResponse) ProtoReflect

func (x *CreateFileResponse) ProtoReflect() protoreflect.Message

func (*CreateFileResponse) Reset

func (x *CreateFileResponse) Reset()

func (*CreateFileResponse) String

func (x *CreateFileResponse) String() string

type DeleteFileRequest

type DeleteFileRequest struct {
	Path string `protobuf:"bytes,1,opt,name=path,proto3" json:"path,omitempty"` // relative path within the service
	// contains filtered or unexported fields
}

DeleteFile removes a file from the service's source tree.

func (*DeleteFileRequest) Descriptor deprecated

func (*DeleteFileRequest) Descriptor() ([]byte, []int)

Deprecated: Use DeleteFileRequest.ProtoReflect.Descriptor instead.

func (*DeleteFileRequest) GetPath

func (x *DeleteFileRequest) GetPath() string

func (*DeleteFileRequest) ProtoMessage

func (*DeleteFileRequest) ProtoMessage()

func (*DeleteFileRequest) ProtoReflect

func (x *DeleteFileRequest) ProtoReflect() protoreflect.Message

func (*DeleteFileRequest) Reset

func (x *DeleteFileRequest) Reset()

func (*DeleteFileRequest) String

func (x *DeleteFileRequest) String() string

type DeleteFileResponse

type DeleteFileResponse struct {
	Success bool   `protobuf:"varint,1,opt,name=success,proto3" json:"success,omitempty"`
	Error   string `protobuf:"bytes,2,opt,name=error,proto3" json:"error,omitempty"`
	// contains filtered or unexported fields
}

func (*DeleteFileResponse) Descriptor deprecated

func (*DeleteFileResponse) Descriptor() ([]byte, []int)

Deprecated: Use DeleteFileResponse.ProtoReflect.Descriptor instead.

func (*DeleteFileResponse) GetError

func (x *DeleteFileResponse) GetError() string

func (*DeleteFileResponse) GetSuccess

func (x *DeleteFileResponse) GetSuccess() bool

func (*DeleteFileResponse) ProtoMessage

func (*DeleteFileResponse) ProtoMessage()

func (*DeleteFileResponse) ProtoReflect

func (x *DeleteFileResponse) ProtoReflect() protoreflect.Message

func (*DeleteFileResponse) Reset

func (x *DeleteFileResponse) Reset()

func (*DeleteFileResponse) String

func (x *DeleteFileResponse) String() string

type Dependency

type Dependency struct {
	Name    string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`       // e.g. "github.com/gin-gonic/gin", "requests"
	Version string `protobuf:"bytes,2,opt,name=version,proto3" json:"version,omitempty"` // e.g. "v1.9.1", "2.31.0"
	Direct  bool   `protobuf:"varint,3,opt,name=direct,proto3" json:"direct,omitempty"`  // true if directly imported (vs transitive)
	// contains filtered or unexported fields
}

Dependency represents a package/module dependency.

func (*Dependency) Descriptor deprecated

func (*Dependency) Descriptor() ([]byte, []int)

Deprecated: Use Dependency.ProtoReflect.Descriptor instead.

func (*Dependency) GetDirect

func (x *Dependency) GetDirect() bool

func (*Dependency) GetName

func (x *Dependency) GetName() string

func (*Dependency) GetVersion

func (x *Dependency) GetVersion() string

func (*Dependency) ProtoMessage

func (*Dependency) ProtoMessage()

func (*Dependency) ProtoReflect

func (x *Dependency) ProtoReflect() protoreflect.Message

func (*Dependency) Reset

func (x *Dependency) Reset()

func (*Dependency) String

func (x *Dependency) String() string

type Diagnostic

type Diagnostic struct {
	File      string             `protobuf:"bytes,1,opt,name=file,proto3" json:"file,omitempty"`      // relative path
	Line      int32              `protobuf:"varint,2,opt,name=line,proto3" json:"line,omitempty"`     // 1-based line number
	Column    int32              `protobuf:"varint,3,opt,name=column,proto3" json:"column,omitempty"` // 1-based column number
	EndLine   int32              `protobuf:"varint,4,opt,name=end_line,json=endLine,proto3" json:"end_line,omitempty"`
	EndColumn int32              `protobuf:"varint,5,opt,name=end_column,json=endColumn,proto3" json:"end_column,omitempty"`
	Message   string             `protobuf:"bytes,6,opt,name=message,proto3" json:"message,omitempty"`
	Severity  DiagnosticSeverity `protobuf:"varint,7,opt,name=severity,proto3,enum=codefly.services.code.v0.DiagnosticSeverity" json:"severity,omitempty"`
	Source    string             `protobuf:"bytes,8,opt,name=source,proto3" json:"source,omitempty"` // e.g. "gopls", "pylsp", "typescript"
	Code      string             `protobuf:"bytes,9,opt,name=code,proto3" json:"code,omitempty"`     // diagnostic code (e.g. "unusedimport")
	// contains filtered or unexported fields
}

Diagnostic represents a compiler error, warning, or hint from the language server.

func (*Diagnostic) Descriptor deprecated

func (*Diagnostic) Descriptor() ([]byte, []int)

Deprecated: Use Diagnostic.ProtoReflect.Descriptor instead.

func (*Diagnostic) GetCode

func (x *Diagnostic) GetCode() string

func (*Diagnostic) GetColumn

func (x *Diagnostic) GetColumn() int32

func (*Diagnostic) GetEndColumn

func (x *Diagnostic) GetEndColumn() int32

func (*Diagnostic) GetEndLine

func (x *Diagnostic) GetEndLine() int32

func (*Diagnostic) GetFile

func (x *Diagnostic) GetFile() string

func (*Diagnostic) GetLine

func (x *Diagnostic) GetLine() int32

func (*Diagnostic) GetMessage

func (x *Diagnostic) GetMessage() string

func (*Diagnostic) GetSeverity

func (x *Diagnostic) GetSeverity() DiagnosticSeverity

func (*Diagnostic) GetSource

func (x *Diagnostic) GetSource() string

func (*Diagnostic) ProtoMessage

func (*Diagnostic) ProtoMessage()

func (*Diagnostic) ProtoReflect

func (x *Diagnostic) ProtoReflect() protoreflect.Message

func (*Diagnostic) Reset

func (x *Diagnostic) Reset()

func (*Diagnostic) String

func (x *Diagnostic) String() string

type DiagnosticSeverity

type DiagnosticSeverity int32

DiagnosticSeverity mirrors LSP DiagnosticSeverity.

const (
	DiagnosticSeverity_DIAGNOSTIC_SEVERITY_UNKNOWN     DiagnosticSeverity = 0
	DiagnosticSeverity_DIAGNOSTIC_SEVERITY_ERROR       DiagnosticSeverity = 1
	DiagnosticSeverity_DIAGNOSTIC_SEVERITY_WARNING     DiagnosticSeverity = 2
	DiagnosticSeverity_DIAGNOSTIC_SEVERITY_INFORMATION DiagnosticSeverity = 3
	DiagnosticSeverity_DIAGNOSTIC_SEVERITY_HINT        DiagnosticSeverity = 4
)

func (DiagnosticSeverity) Descriptor

func (DiagnosticSeverity) Enum

func (DiagnosticSeverity) EnumDescriptor deprecated

func (DiagnosticSeverity) EnumDescriptor() ([]byte, []int)

Deprecated: Use DiagnosticSeverity.Descriptor instead.

func (DiagnosticSeverity) Number

func (DiagnosticSeverity) String

func (x DiagnosticSeverity) String() string

func (DiagnosticSeverity) Type

type FileInfo

type FileInfo struct {
	Path        string `protobuf:"bytes,1,opt,name=path,proto3" json:"path,omitempty"` // relative path within the service
	SizeBytes   int64  `protobuf:"varint,2,opt,name=size_bytes,json=sizeBytes,proto3" json:"size_bytes,omitempty"`
	IsDirectory bool   `protobuf:"varint,3,opt,name=is_directory,json=isDirectory,proto3" json:"is_directory,omitempty"`
	// contains filtered or unexported fields
}

func (*FileInfo) Descriptor deprecated

func (*FileInfo) Descriptor() ([]byte, []int)

Deprecated: Use FileInfo.ProtoReflect.Descriptor instead.

func (*FileInfo) GetIsDirectory

func (x *FileInfo) GetIsDirectory() bool

func (*FileInfo) GetPath

func (x *FileInfo) GetPath() string

func (*FileInfo) GetSizeBytes

func (x *FileInfo) GetSizeBytes() int64

func (*FileInfo) ProtoMessage

func (*FileInfo) ProtoMessage()

func (*FileInfo) ProtoReflect

func (x *FileInfo) ProtoReflect() protoreflect.Message

func (*FileInfo) Reset

func (x *FileInfo) Reset()

func (*FileInfo) String

func (x *FileInfo) String() string

type FindReferencesRequest

type FindReferencesRequest struct {
	File   string `protobuf:"bytes,1,opt,name=file,proto3" json:"file,omitempty"`      // relative path
	Line   int32  `protobuf:"varint,2,opt,name=line,proto3" json:"line,omitempty"`     // 1-based
	Column int32  `protobuf:"varint,3,opt,name=column,proto3" json:"column,omitempty"` // 1-based
	// contains filtered or unexported fields
}

FindReferences finds all usages of a symbol at a given position.

func (*FindReferencesRequest) Descriptor deprecated

func (*FindReferencesRequest) Descriptor() ([]byte, []int)

Deprecated: Use FindReferencesRequest.ProtoReflect.Descriptor instead.

func (*FindReferencesRequest) GetColumn

func (x *FindReferencesRequest) GetColumn() int32

func (*FindReferencesRequest) GetFile

func (x *FindReferencesRequest) GetFile() string

func (*FindReferencesRequest) GetLine

func (x *FindReferencesRequest) GetLine() int32

func (*FindReferencesRequest) ProtoMessage

func (*FindReferencesRequest) ProtoMessage()

func (*FindReferencesRequest) ProtoReflect

func (x *FindReferencesRequest) ProtoReflect() protoreflect.Message

func (*FindReferencesRequest) Reset

func (x *FindReferencesRequest) Reset()

func (*FindReferencesRequest) String

func (x *FindReferencesRequest) String() string

type FindReferencesResponse

type FindReferencesResponse struct {
	Locations []*Location `protobuf:"bytes,1,rep,name=locations,proto3" json:"locations,omitempty"`
	// contains filtered or unexported fields
}

func (*FindReferencesResponse) Descriptor deprecated

func (*FindReferencesResponse) Descriptor() ([]byte, []int)

Deprecated: Use FindReferencesResponse.ProtoReflect.Descriptor instead.

func (*FindReferencesResponse) GetLocations

func (x *FindReferencesResponse) GetLocations() []*Location

func (*FindReferencesResponse) ProtoMessage

func (*FindReferencesResponse) ProtoMessage()

func (*FindReferencesResponse) ProtoReflect

func (x *FindReferencesResponse) ProtoReflect() protoreflect.Message

func (*FindReferencesResponse) Reset

func (x *FindReferencesResponse) Reset()

func (*FindReferencesResponse) String

func (x *FindReferencesResponse) String() string

type FixRequest

type FixRequest struct {
	File string `protobuf:"bytes,1,opt,name=file,proto3" json:"file,omitempty"` // relative path within the service
	// contains filtered or unexported fields
}

FixRequest asks the agent to run language-specific fixers on a file. For Go: goimports + gofmt. For Python: ruff/isort + black. For TS: prettier.

func (*FixRequest) Descriptor deprecated

func (*FixRequest) Descriptor() ([]byte, []int)

Deprecated: Use FixRequest.ProtoReflect.Descriptor instead.

func (*FixRequest) GetFile

func (x *FixRequest) GetFile() string

func (*FixRequest) ProtoMessage

func (*FixRequest) ProtoMessage()

func (*FixRequest) ProtoReflect

func (x *FixRequest) ProtoReflect() protoreflect.Message

func (*FixRequest) Reset

func (x *FixRequest) Reset()

func (*FixRequest) String

func (x *FixRequest) String() string

type FixResponse

type FixResponse struct {
	Success bool     `protobuf:"varint,1,opt,name=success,proto3" json:"success,omitempty"`
	Content string   `protobuf:"bytes,2,opt,name=content,proto3" json:"content,omitempty"` // the fixed file content (empty if unchanged)
	Error   string   `protobuf:"bytes,3,opt,name=error,proto3" json:"error,omitempty"`     // non-fatal: fixer not available, etc.
	Actions []string `protobuf:"bytes,4,rep,name=actions,proto3" json:"actions,omitempty"` // what was done: "goimports", "gofmt", etc.
	// contains filtered or unexported fields
}

func (*FixResponse) Descriptor deprecated

func (*FixResponse) Descriptor() ([]byte, []int)

Deprecated: Use FixResponse.ProtoReflect.Descriptor instead.

func (*FixResponse) GetActions

func (x *FixResponse) GetActions() []string

func (*FixResponse) GetContent

func (x *FixResponse) GetContent() string

func (*FixResponse) GetError

func (x *FixResponse) GetError() string

func (*FixResponse) GetSuccess

func (x *FixResponse) GetSuccess() bool

func (*FixResponse) ProtoMessage

func (*FixResponse) ProtoMessage()

func (*FixResponse) ProtoReflect

func (x *FixResponse) ProtoReflect() protoreflect.Message

func (*FixResponse) Reset

func (x *FixResponse) Reset()

func (*FixResponse) String

func (x *FixResponse) String() string

type GetCallGraphRequest

type GetCallGraphRequest struct {
	Algorithm string `protobuf:"bytes,1,opt,name=algorithm,proto3" json:"algorithm,omitempty"` // "vta" (default), "cha", "rta"
	// contains filtered or unexported fields
}

GetCallGraph computes the entire call graph and interface implementations for the project using whole-program analysis (VTA for Go).

func (*GetCallGraphRequest) Descriptor deprecated

func (*GetCallGraphRequest) Descriptor() ([]byte, []int)

Deprecated: Use GetCallGraphRequest.ProtoReflect.Descriptor instead.

func (*GetCallGraphRequest) GetAlgorithm

func (x *GetCallGraphRequest) GetAlgorithm() string

func (*GetCallGraphRequest) ProtoMessage

func (*GetCallGraphRequest) ProtoMessage()

func (*GetCallGraphRequest) ProtoReflect

func (x *GetCallGraphRequest) ProtoReflect() protoreflect.Message

func (*GetCallGraphRequest) Reset

func (x *GetCallGraphRequest) Reset()

func (*GetCallGraphRequest) String

func (x *GetCallGraphRequest) String() string

type GetCallGraphResponse

type GetCallGraphResponse struct {
	Calls             []*CallEdge       `protobuf:"bytes,1,rep,name=calls,proto3" json:"calls,omitempty"`
	Implements        []*ImplementsEdge `protobuf:"bytes,2,rep,name=implements,proto3" json:"implements,omitempty"`
	FunctionsAnalyzed int32             `protobuf:"varint,3,opt,name=functions_analyzed,json=functionsAnalyzed,proto3" json:"functions_analyzed,omitempty"`
	AlgorithmUsed     string            `protobuf:"bytes,4,opt,name=algorithm_used,json=algorithmUsed,proto3" json:"algorithm_used,omitempty"`
	Error             string            `protobuf:"bytes,5,opt,name=error,proto3" json:"error,omitempty"`
	// contains filtered or unexported fields
}

func (*GetCallGraphResponse) Descriptor deprecated

func (*GetCallGraphResponse) Descriptor() ([]byte, []int)

Deprecated: Use GetCallGraphResponse.ProtoReflect.Descriptor instead.

func (*GetCallGraphResponse) GetAlgorithmUsed

func (x *GetCallGraphResponse) GetAlgorithmUsed() string

func (*GetCallGraphResponse) GetCalls

func (x *GetCallGraphResponse) GetCalls() []*CallEdge

func (*GetCallGraphResponse) GetError

func (x *GetCallGraphResponse) GetError() string

func (*GetCallGraphResponse) GetFunctionsAnalyzed

func (x *GetCallGraphResponse) GetFunctionsAnalyzed() int32

func (*GetCallGraphResponse) GetImplements

func (x *GetCallGraphResponse) GetImplements() []*ImplementsEdge

func (*GetCallGraphResponse) ProtoMessage

func (*GetCallGraphResponse) ProtoMessage()

func (*GetCallGraphResponse) ProtoReflect

func (x *GetCallGraphResponse) ProtoReflect() protoreflect.Message

func (*GetCallGraphResponse) Reset

func (x *GetCallGraphResponse) Reset()

func (*GetCallGraphResponse) String

func (x *GetCallGraphResponse) String() string

type GetCompletionsRequest

type GetCompletionsRequest struct {
	File   string `protobuf:"bytes,1,opt,name=file,proto3" json:"file,omitempty"`      // relative path
	Line   int32  `protobuf:"varint,2,opt,name=line,proto3" json:"line,omitempty"`     // 1-based
	Column int32  `protobuf:"varint,3,opt,name=column,proto3" json:"column,omitempty"` // 1-based
	// contains filtered or unexported fields
}

GetCompletions returns context-aware code completions at a position.

func (*GetCompletionsRequest) Descriptor deprecated

func (*GetCompletionsRequest) Descriptor() ([]byte, []int)

Deprecated: Use GetCompletionsRequest.ProtoReflect.Descriptor instead.

func (*GetCompletionsRequest) GetColumn

func (x *GetCompletionsRequest) GetColumn() int32

func (*GetCompletionsRequest) GetFile

func (x *GetCompletionsRequest) GetFile() string

func (*GetCompletionsRequest) GetLine

func (x *GetCompletionsRequest) GetLine() int32

func (*GetCompletionsRequest) ProtoMessage

func (*GetCompletionsRequest) ProtoMessage()

func (*GetCompletionsRequest) ProtoReflect

func (x *GetCompletionsRequest) ProtoReflect() protoreflect.Message

func (*GetCompletionsRequest) Reset

func (x *GetCompletionsRequest) Reset()

func (*GetCompletionsRequest) String

func (x *GetCompletionsRequest) String() string

type GetCompletionsResponse

type GetCompletionsResponse struct {
	Items        []*CompletionItem `protobuf:"bytes,1,rep,name=items,proto3" json:"items,omitempty"`
	IsIncomplete bool              `protobuf:"varint,2,opt,name=is_incomplete,json=isIncomplete,proto3" json:"is_incomplete,omitempty"` // if true, further typing may refine results
	// contains filtered or unexported fields
}

func (*GetCompletionsResponse) Descriptor deprecated

func (*GetCompletionsResponse) Descriptor() ([]byte, []int)

Deprecated: Use GetCompletionsResponse.ProtoReflect.Descriptor instead.

func (*GetCompletionsResponse) GetIsIncomplete

func (x *GetCompletionsResponse) GetIsIncomplete() bool

func (*GetCompletionsResponse) GetItems

func (x *GetCompletionsResponse) GetItems() []*CompletionItem

func (*GetCompletionsResponse) ProtoMessage

func (*GetCompletionsResponse) ProtoMessage()

func (*GetCompletionsResponse) ProtoReflect

func (x *GetCompletionsResponse) ProtoReflect() protoreflect.Message

func (*GetCompletionsResponse) Reset

func (x *GetCompletionsResponse) Reset()

func (*GetCompletionsResponse) String

func (x *GetCompletionsResponse) String() string

type GetDiagnosticsRequest

type GetDiagnosticsRequest struct {
	File string `protobuf:"bytes,1,opt,name=file,proto3" json:"file,omitempty"` // optional: restrict to a single file; empty = all files
	// contains filtered or unexported fields
}

GetDiagnostics returns compiler/linter diagnostics from the language server.

func (*GetDiagnosticsRequest) Descriptor deprecated

func (*GetDiagnosticsRequest) Descriptor() ([]byte, []int)

Deprecated: Use GetDiagnosticsRequest.ProtoReflect.Descriptor instead.

func (*GetDiagnosticsRequest) GetFile

func (x *GetDiagnosticsRequest) GetFile() string

func (*GetDiagnosticsRequest) ProtoMessage

func (*GetDiagnosticsRequest) ProtoMessage()

func (*GetDiagnosticsRequest) ProtoReflect

func (x *GetDiagnosticsRequest) ProtoReflect() protoreflect.Message

func (*GetDiagnosticsRequest) Reset

func (x *GetDiagnosticsRequest) Reset()

func (*GetDiagnosticsRequest) String

func (x *GetDiagnosticsRequest) String() string

type GetDiagnosticsResponse

type GetDiagnosticsResponse struct {
	Diagnostics []*Diagnostic `protobuf:"bytes,1,rep,name=diagnostics,proto3" json:"diagnostics,omitempty"`
	// contains filtered or unexported fields
}

func (*GetDiagnosticsResponse) Descriptor deprecated

func (*GetDiagnosticsResponse) Descriptor() ([]byte, []int)

Deprecated: Use GetDiagnosticsResponse.ProtoReflect.Descriptor instead.

func (*GetDiagnosticsResponse) GetDiagnostics

func (x *GetDiagnosticsResponse) GetDiagnostics() []*Diagnostic

func (*GetDiagnosticsResponse) ProtoMessage

func (*GetDiagnosticsResponse) ProtoMessage()

func (*GetDiagnosticsResponse) ProtoReflect

func (x *GetDiagnosticsResponse) ProtoReflect() protoreflect.Message

func (*GetDiagnosticsResponse) Reset

func (x *GetDiagnosticsResponse) Reset()

func (*GetDiagnosticsResponse) String

func (x *GetDiagnosticsResponse) String() string

type GetHoverInfoRequest

type GetHoverInfoRequest struct {
	File   string `protobuf:"bytes,1,opt,name=file,proto3" json:"file,omitempty"`      // relative path
	Line   int32  `protobuf:"varint,2,opt,name=line,proto3" json:"line,omitempty"`     // 1-based
	Column int32  `protobuf:"varint,3,opt,name=column,proto3" json:"column,omitempty"` // 1-based
	// contains filtered or unexported fields
}

GetHoverInfo returns type information and documentation at a position.

func (*GetHoverInfoRequest) Descriptor deprecated

func (*GetHoverInfoRequest) Descriptor() ([]byte, []int)

Deprecated: Use GetHoverInfoRequest.ProtoReflect.Descriptor instead.

func (*GetHoverInfoRequest) GetColumn

func (x *GetHoverInfoRequest) GetColumn() int32

func (*GetHoverInfoRequest) GetFile

func (x *GetHoverInfoRequest) GetFile() string

func (*GetHoverInfoRequest) GetLine

func (x *GetHoverInfoRequest) GetLine() int32

func (*GetHoverInfoRequest) ProtoMessage

func (*GetHoverInfoRequest) ProtoMessage()

func (*GetHoverInfoRequest) ProtoReflect

func (x *GetHoverInfoRequest) ProtoReflect() protoreflect.Message

func (*GetHoverInfoRequest) Reset

func (x *GetHoverInfoRequest) Reset()

func (*GetHoverInfoRequest) String

func (x *GetHoverInfoRequest) String() string

type GetHoverInfoResponse

type GetHoverInfoResponse struct {
	Content  string    `protobuf:"bytes,1,opt,name=content,proto3" json:"content,omitempty"`   // the hover content (may contain markdown)
	Language string    `protobuf:"bytes,2,opt,name=language,proto3" json:"language,omitempty"` // language hint for code blocks (e.g. "go")
	Range    *Location `protobuf:"bytes,3,opt,name=range,proto3" json:"range,omitempty"`       // the range the hover applies to
	// contains filtered or unexported fields
}

func (*GetHoverInfoResponse) Descriptor deprecated

func (*GetHoverInfoResponse) Descriptor() ([]byte, []int)

Deprecated: Use GetHoverInfoResponse.ProtoReflect.Descriptor instead.

func (*GetHoverInfoResponse) GetContent

func (x *GetHoverInfoResponse) GetContent() string

func (*GetHoverInfoResponse) GetLanguage

func (x *GetHoverInfoResponse) GetLanguage() string

func (*GetHoverInfoResponse) GetRange

func (x *GetHoverInfoResponse) GetRange() *Location

func (*GetHoverInfoResponse) ProtoMessage

func (*GetHoverInfoResponse) ProtoMessage()

func (*GetHoverInfoResponse) ProtoReflect

func (x *GetHoverInfoResponse) ProtoReflect() protoreflect.Message

func (*GetHoverInfoResponse) Reset

func (x *GetHoverInfoResponse) Reset()

func (*GetHoverInfoResponse) String

func (x *GetHoverInfoResponse) String() string

type GetProjectInfoRequest

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

GetProjectInfo returns rich, language-specific project metadata.

func (*GetProjectInfoRequest) Descriptor deprecated

func (*GetProjectInfoRequest) Descriptor() ([]byte, []int)

Deprecated: Use GetProjectInfoRequest.ProtoReflect.Descriptor instead.

func (*GetProjectInfoRequest) ProtoMessage

func (*GetProjectInfoRequest) ProtoMessage()

func (*GetProjectInfoRequest) ProtoReflect

func (x *GetProjectInfoRequest) ProtoReflect() protoreflect.Message

func (*GetProjectInfoRequest) Reset

func (x *GetProjectInfoRequest) Reset()

func (*GetProjectInfoRequest) String

func (x *GetProjectInfoRequest) String() string

type GetProjectInfoResponse

type GetProjectInfoResponse struct {
	Module          string            `protobuf:"bytes,1,opt,name=module,proto3" json:"module,omitempty"`                                          // e.g. "github.com/codefly-dev/mind"
	Language        string            `protobuf:"bytes,2,opt,name=language,proto3" json:"language,omitempty"`                                      // e.g. "go"
	LanguageVersion string            `protobuf:"bytes,3,opt,name=language_version,json=languageVersion,proto3" json:"language_version,omitempty"` // e.g. "1.25"
	Packages        []*PackageInfo    `protobuf:"bytes,4,rep,name=packages,proto3" json:"packages,omitempty"`                                      // package structure
	Dependencies    []*Dependency     `protobuf:"bytes,5,rep,name=dependencies,proto3" json:"dependencies,omitempty"`                              // reuse existing Dependency message
	FileHashes      map[string]string ``                                                                                                           // path -> SHA-256 for change detection
	/* 165-byte string literal not displayed */
	Error string `protobuf:"bytes,7,opt,name=error,proto3" json:"error,omitempty"`
	// contains filtered or unexported fields
}

func (*GetProjectInfoResponse) Descriptor deprecated

func (*GetProjectInfoResponse) Descriptor() ([]byte, []int)

Deprecated: Use GetProjectInfoResponse.ProtoReflect.Descriptor instead.

func (*GetProjectInfoResponse) GetDependencies

func (x *GetProjectInfoResponse) GetDependencies() []*Dependency

func (*GetProjectInfoResponse) GetError

func (x *GetProjectInfoResponse) GetError() string

func (*GetProjectInfoResponse) GetFileHashes

func (x *GetProjectInfoResponse) GetFileHashes() map[string]string

func (*GetProjectInfoResponse) GetLanguage

func (x *GetProjectInfoResponse) GetLanguage() string

func (*GetProjectInfoResponse) GetLanguageVersion

func (x *GetProjectInfoResponse) GetLanguageVersion() string

func (*GetProjectInfoResponse) GetModule

func (x *GetProjectInfoResponse) GetModule() string

func (*GetProjectInfoResponse) GetPackages

func (x *GetProjectInfoResponse) GetPackages() []*PackageInfo

func (*GetProjectInfoResponse) ProtoMessage

func (*GetProjectInfoResponse) ProtoMessage()

func (*GetProjectInfoResponse) ProtoReflect

func (x *GetProjectInfoResponse) ProtoReflect() protoreflect.Message

func (*GetProjectInfoResponse) Reset

func (x *GetProjectInfoResponse) Reset()

func (*GetProjectInfoResponse) String

func (x *GetProjectInfoResponse) String() string

type GitBlameLine

type GitBlameLine struct {
	Hash    string `protobuf:"bytes,1,opt,name=hash,proto3" json:"hash,omitempty"` // commit SHA
	Author  string `protobuf:"bytes,2,opt,name=author,proto3" json:"author,omitempty"`
	Date    string `protobuf:"bytes,3,opt,name=date,proto3" json:"date,omitempty"`       // ISO 8601
	Line    int32  `protobuf:"varint,4,opt,name=line,proto3" json:"line,omitempty"`      // 1-based line number
	Content string `protobuf:"bytes,5,opt,name=content,proto3" json:"content,omitempty"` // the line content
	// contains filtered or unexported fields
}

func (*GitBlameLine) Descriptor deprecated

func (*GitBlameLine) Descriptor() ([]byte, []int)

Deprecated: Use GitBlameLine.ProtoReflect.Descriptor instead.

func (*GitBlameLine) GetAuthor

func (x *GitBlameLine) GetAuthor() string

func (*GitBlameLine) GetContent

func (x *GitBlameLine) GetContent() string

func (*GitBlameLine) GetDate

func (x *GitBlameLine) GetDate() string

func (*GitBlameLine) GetHash

func (x *GitBlameLine) GetHash() string

func (*GitBlameLine) GetLine

func (x *GitBlameLine) GetLine() int32

func (*GitBlameLine) ProtoMessage

func (*GitBlameLine) ProtoMessage()

func (*GitBlameLine) ProtoReflect

func (x *GitBlameLine) ProtoReflect() protoreflect.Message

func (*GitBlameLine) Reset

func (x *GitBlameLine) Reset()

func (*GitBlameLine) String

func (x *GitBlameLine) String() string

type GitBlameRequest

type GitBlameRequest struct {
	Path      string `protobuf:"bytes,1,opt,name=path,proto3" json:"path,omitempty"`                             // relative path within the service
	StartLine int32  `protobuf:"varint,2,opt,name=start_line,json=startLine,proto3" json:"start_line,omitempty"` // optional: 1-based start line (0 = from beginning)
	EndLine   int32  `protobuf:"varint,3,opt,name=end_line,json=endLine,proto3" json:"end_line,omitempty"`       // optional: 1-based end line (0 = to end)
	// contains filtered or unexported fields
}

GitBlameRequest returns per-line blame information for a file.

func (*GitBlameRequest) Descriptor deprecated

func (*GitBlameRequest) Descriptor() ([]byte, []int)

Deprecated: Use GitBlameRequest.ProtoReflect.Descriptor instead.

func (*GitBlameRequest) GetEndLine

func (x *GitBlameRequest) GetEndLine() int32

func (*GitBlameRequest) GetPath

func (x *GitBlameRequest) GetPath() string

func (*GitBlameRequest) GetStartLine

func (x *GitBlameRequest) GetStartLine() int32

func (*GitBlameRequest) ProtoMessage

func (*GitBlameRequest) ProtoMessage()

func (*GitBlameRequest) ProtoReflect

func (x *GitBlameRequest) ProtoReflect() protoreflect.Message

func (*GitBlameRequest) Reset

func (x *GitBlameRequest) Reset()

func (*GitBlameRequest) String

func (x *GitBlameRequest) String() string

type GitBlameResponse

type GitBlameResponse struct {
	Lines []*GitBlameLine `protobuf:"bytes,1,rep,name=lines,proto3" json:"lines,omitempty"`
	Error string          `protobuf:"bytes,2,opt,name=error,proto3" json:"error,omitempty"`
	// contains filtered or unexported fields
}

func (*GitBlameResponse) Descriptor deprecated

func (*GitBlameResponse) Descriptor() ([]byte, []int)

Deprecated: Use GitBlameResponse.ProtoReflect.Descriptor instead.

func (*GitBlameResponse) GetError

func (x *GitBlameResponse) GetError() string

func (*GitBlameResponse) GetLines

func (x *GitBlameResponse) GetLines() []*GitBlameLine

func (*GitBlameResponse) ProtoMessage

func (*GitBlameResponse) ProtoMessage()

func (*GitBlameResponse) ProtoReflect

func (x *GitBlameResponse) ProtoReflect() protoreflect.Message

func (*GitBlameResponse) Reset

func (x *GitBlameResponse) Reset()

func (*GitBlameResponse) String

func (x *GitBlameResponse) String() string

type GitCommit

type GitCommit struct {
	Hash         string `protobuf:"bytes,1,opt,name=hash,proto3" json:"hash,omitempty"`                            // full SHA
	ShortHash    string `protobuf:"bytes,2,opt,name=short_hash,json=shortHash,proto3" json:"short_hash,omitempty"` // abbreviated SHA
	Author       string `protobuf:"bytes,3,opt,name=author,proto3" json:"author,omitempty"`
	Date         string `protobuf:"bytes,4,opt,name=date,proto3" json:"date,omitempty"`       // ISO 8601
	Message      string `protobuf:"bytes,5,opt,name=message,proto3" json:"message,omitempty"` // first line of commit message
	FilesChanged int32  `protobuf:"varint,6,opt,name=files_changed,json=filesChanged,proto3" json:"files_changed,omitempty"`
	// contains filtered or unexported fields
}

func (*GitCommit) Descriptor deprecated

func (*GitCommit) Descriptor() ([]byte, []int)

Deprecated: Use GitCommit.ProtoReflect.Descriptor instead.

func (*GitCommit) GetAuthor

func (x *GitCommit) GetAuthor() string

func (*GitCommit) GetDate

func (x *GitCommit) GetDate() string

func (*GitCommit) GetFilesChanged

func (x *GitCommit) GetFilesChanged() int32

func (*GitCommit) GetHash

func (x *GitCommit) GetHash() string

func (*GitCommit) GetMessage

func (x *GitCommit) GetMessage() string

func (*GitCommit) GetShortHash

func (x *GitCommit) GetShortHash() string

func (*GitCommit) ProtoMessage

func (*GitCommit) ProtoMessage()

func (*GitCommit) ProtoReflect

func (x *GitCommit) ProtoReflect() protoreflect.Message

func (*GitCommit) Reset

func (x *GitCommit) Reset()

func (*GitCommit) String

func (x *GitCommit) String() string

type GitDiffFile

type GitDiffFile struct {
	Path      string `protobuf:"bytes,1,opt,name=path,proto3" json:"path,omitempty"`
	Additions int32  `protobuf:"varint,2,opt,name=additions,proto3" json:"additions,omitempty"`
	Deletions int32  `protobuf:"varint,3,opt,name=deletions,proto3" json:"deletions,omitempty"`
	Status    string `protobuf:"bytes,4,opt,name=status,proto3" json:"status,omitempty"` // "added", "modified", "deleted", "renamed"
	// contains filtered or unexported fields
}

func (*GitDiffFile) Descriptor deprecated

func (*GitDiffFile) Descriptor() ([]byte, []int)

Deprecated: Use GitDiffFile.ProtoReflect.Descriptor instead.

func (*GitDiffFile) GetAdditions

func (x *GitDiffFile) GetAdditions() int32

func (*GitDiffFile) GetDeletions

func (x *GitDiffFile) GetDeletions() int32

func (*GitDiffFile) GetPath

func (x *GitDiffFile) GetPath() string

func (*GitDiffFile) GetStatus

func (x *GitDiffFile) GetStatus() string

func (*GitDiffFile) ProtoMessage

func (*GitDiffFile) ProtoMessage()

func (*GitDiffFile) ProtoReflect

func (x *GitDiffFile) ProtoReflect() protoreflect.Message

func (*GitDiffFile) Reset

func (x *GitDiffFile) Reset()

func (*GitDiffFile) String

func (x *GitDiffFile) String() string

type GitDiffRequest

type GitDiffRequest struct {
	BaseRef      string `protobuf:"bytes,1,opt,name=base_ref,json=baseRef,proto3" json:"base_ref,omitempty"`                 // e.g. "HEAD~3", a commit SHA, or empty for working tree
	HeadRef      string `protobuf:"bytes,2,opt,name=head_ref,json=headRef,proto3" json:"head_ref,omitempty"`                 // e.g. "HEAD" or empty for working tree
	Path         string `protobuf:"bytes,3,opt,name=path,proto3" json:"path,omitempty"`                                      // optional: restrict to a specific file or directory
	StatOnly     bool   `protobuf:"varint,4,opt,name=stat_only,json=statOnly,proto3" json:"stat_only,omitempty"`             // if true, return only file stats (no diff text)
	ContextLines int32  `protobuf:"varint,5,opt,name=context_lines,json=contextLines,proto3" json:"context_lines,omitempty"` // lines of context around changes (default: 3)
	// contains filtered or unexported fields
}

GitDiffRequest returns a unified diff between two refs or the working tree.

func (*GitDiffRequest) Descriptor deprecated

func (*GitDiffRequest) Descriptor() ([]byte, []int)

Deprecated: Use GitDiffRequest.ProtoReflect.Descriptor instead.

func (*GitDiffRequest) GetBaseRef

func (x *GitDiffRequest) GetBaseRef() string

func (*GitDiffRequest) GetContextLines

func (x *GitDiffRequest) GetContextLines() int32

func (*GitDiffRequest) GetHeadRef

func (x *GitDiffRequest) GetHeadRef() string

func (*GitDiffRequest) GetPath

func (x *GitDiffRequest) GetPath() string

func (*GitDiffRequest) GetStatOnly

func (x *GitDiffRequest) GetStatOnly() bool

func (*GitDiffRequest) ProtoMessage

func (*GitDiffRequest) ProtoMessage()

func (*GitDiffRequest) ProtoReflect

func (x *GitDiffRequest) ProtoReflect() protoreflect.Message

func (*GitDiffRequest) Reset

func (x *GitDiffRequest) Reset()

func (*GitDiffRequest) String

func (x *GitDiffRequest) String() string

type GitDiffResponse

type GitDiffResponse struct {
	Diff  string         `protobuf:"bytes,1,opt,name=diff,proto3" json:"diff,omitempty"` // unified diff text (empty if stat_only)
	Files []*GitDiffFile `protobuf:"bytes,2,rep,name=files,proto3" json:"files,omitempty"`
	Error string         `protobuf:"bytes,3,opt,name=error,proto3" json:"error,omitempty"`
	// contains filtered or unexported fields
}

func (*GitDiffResponse) Descriptor deprecated

func (*GitDiffResponse) Descriptor() ([]byte, []int)

Deprecated: Use GitDiffResponse.ProtoReflect.Descriptor instead.

func (*GitDiffResponse) GetDiff

func (x *GitDiffResponse) GetDiff() string

func (*GitDiffResponse) GetError

func (x *GitDiffResponse) GetError() string

func (*GitDiffResponse) GetFiles

func (x *GitDiffResponse) GetFiles() []*GitDiffFile

func (*GitDiffResponse) ProtoMessage

func (*GitDiffResponse) ProtoMessage()

func (*GitDiffResponse) ProtoReflect

func (x *GitDiffResponse) ProtoReflect() protoreflect.Message

func (*GitDiffResponse) Reset

func (x *GitDiffResponse) Reset()

func (*GitDiffResponse) String

func (x *GitDiffResponse) String() string

type GitLogRequest

type GitLogRequest struct {
	MaxCount int32  `protobuf:"varint,1,opt,name=max_count,json=maxCount,proto3" json:"max_count,omitempty"` // 0 = default (50)
	Since    string `protobuf:"bytes,2,opt,name=since,proto3" json:"since,omitempty"`                        // optional: ISO date or relative (e.g. "2 weeks ago")
	Path     string `protobuf:"bytes,3,opt,name=path,proto3" json:"path,omitempty"`                          // optional: restrict to commits touching this path
	Ref      string `protobuf:"bytes,4,opt,name=ref,proto3" json:"ref,omitempty"`                            // optional: branch/tag/ref (default: HEAD)
	// contains filtered or unexported fields
}

GitLogRequest returns recent commit history.

func (*GitLogRequest) Descriptor deprecated

func (*GitLogRequest) Descriptor() ([]byte, []int)

Deprecated: Use GitLogRequest.ProtoReflect.Descriptor instead.

func (*GitLogRequest) GetMaxCount

func (x *GitLogRequest) GetMaxCount() int32

func (*GitLogRequest) GetPath

func (x *GitLogRequest) GetPath() string

func (*GitLogRequest) GetRef

func (x *GitLogRequest) GetRef() string

func (*GitLogRequest) GetSince

func (x *GitLogRequest) GetSince() string

func (*GitLogRequest) ProtoMessage

func (*GitLogRequest) ProtoMessage()

func (*GitLogRequest) ProtoReflect

func (x *GitLogRequest) ProtoReflect() protoreflect.Message

func (*GitLogRequest) Reset

func (x *GitLogRequest) Reset()

func (*GitLogRequest) String

func (x *GitLogRequest) String() string

type GitLogResponse

type GitLogResponse struct {
	Commits []*GitCommit `protobuf:"bytes,1,rep,name=commits,proto3" json:"commits,omitempty"`
	Error   string       `protobuf:"bytes,2,opt,name=error,proto3" json:"error,omitempty"`
	// contains filtered or unexported fields
}

func (*GitLogResponse) Descriptor deprecated

func (*GitLogResponse) Descriptor() ([]byte, []int)

Deprecated: Use GitLogResponse.ProtoReflect.Descriptor instead.

func (*GitLogResponse) GetCommits

func (x *GitLogResponse) GetCommits() []*GitCommit

func (*GitLogResponse) GetError

func (x *GitLogResponse) GetError() string

func (*GitLogResponse) ProtoMessage

func (*GitLogResponse) ProtoMessage()

func (*GitLogResponse) ProtoReflect

func (x *GitLogResponse) ProtoReflect() protoreflect.Message

func (*GitLogResponse) Reset

func (x *GitLogResponse) Reset()

func (*GitLogResponse) String

func (x *GitLogResponse) String() string

type GitShowRequest

type GitShowRequest struct {
	Ref  string `protobuf:"bytes,1,opt,name=ref,proto3" json:"ref,omitempty"`   // commit hash, branch, tag (e.g. "HEAD~5", "abc123")
	Path string `protobuf:"bytes,2,opt,name=path,proto3" json:"path,omitempty"` // relative path within the service
	// contains filtered or unexported fields
}

GitShowRequest returns file content at a specific git ref.

func (*GitShowRequest) Descriptor deprecated

func (*GitShowRequest) Descriptor() ([]byte, []int)

Deprecated: Use GitShowRequest.ProtoReflect.Descriptor instead.

func (*GitShowRequest) GetPath

func (x *GitShowRequest) GetPath() string

func (*GitShowRequest) GetRef

func (x *GitShowRequest) GetRef() string

func (*GitShowRequest) ProtoMessage

func (*GitShowRequest) ProtoMessage()

func (*GitShowRequest) ProtoReflect

func (x *GitShowRequest) ProtoReflect() protoreflect.Message

func (*GitShowRequest) Reset

func (x *GitShowRequest) Reset()

func (*GitShowRequest) String

func (x *GitShowRequest) String() string

type GitShowResponse

type GitShowResponse struct {
	Content string `protobuf:"bytes,1,opt,name=content,proto3" json:"content,omitempty"`
	Exists  bool   `protobuf:"varint,2,opt,name=exists,proto3" json:"exists,omitempty"` // false if the file didn't exist at that ref
	Error   string `protobuf:"bytes,3,opt,name=error,proto3" json:"error,omitempty"`
	// contains filtered or unexported fields
}

func (*GitShowResponse) Descriptor deprecated

func (*GitShowResponse) Descriptor() ([]byte, []int)

Deprecated: Use GitShowResponse.ProtoReflect.Descriptor instead.

func (*GitShowResponse) GetContent

func (x *GitShowResponse) GetContent() string

func (*GitShowResponse) GetError

func (x *GitShowResponse) GetError() string

func (*GitShowResponse) GetExists

func (x *GitShowResponse) GetExists() bool

func (*GitShowResponse) ProtoMessage

func (*GitShowResponse) ProtoMessage()

func (*GitShowResponse) ProtoReflect

func (x *GitShowResponse) ProtoReflect() protoreflect.Message

func (*GitShowResponse) Reset

func (x *GitShowResponse) Reset()

func (*GitShowResponse) String

func (x *GitShowResponse) String() string

type GoToDefinitionRequest

type GoToDefinitionRequest struct {
	File   string `protobuf:"bytes,1,opt,name=file,proto3" json:"file,omitempty"`      // relative path
	Line   int32  `protobuf:"varint,2,opt,name=line,proto3" json:"line,omitempty"`     // 1-based
	Column int32  `protobuf:"varint,3,opt,name=column,proto3" json:"column,omitempty"` // 1-based
	// contains filtered or unexported fields
}

GoToDefinition finds where a symbol at a given position is defined.

func (*GoToDefinitionRequest) Descriptor deprecated

func (*GoToDefinitionRequest) Descriptor() ([]byte, []int)

Deprecated: Use GoToDefinitionRequest.ProtoReflect.Descriptor instead.

func (*GoToDefinitionRequest) GetColumn

func (x *GoToDefinitionRequest) GetColumn() int32

func (*GoToDefinitionRequest) GetFile

func (x *GoToDefinitionRequest) GetFile() string

func (*GoToDefinitionRequest) GetLine

func (x *GoToDefinitionRequest) GetLine() int32

func (*GoToDefinitionRequest) ProtoMessage

func (*GoToDefinitionRequest) ProtoMessage()

func (*GoToDefinitionRequest) ProtoReflect

func (x *GoToDefinitionRequest) ProtoReflect() protoreflect.Message

func (*GoToDefinitionRequest) Reset

func (x *GoToDefinitionRequest) Reset()

func (*GoToDefinitionRequest) String

func (x *GoToDefinitionRequest) String() string

type GoToDefinitionResponse

type GoToDefinitionResponse struct {
	Locations []*Location `protobuf:"bytes,1,rep,name=locations,proto3" json:"locations,omitempty"`
	// contains filtered or unexported fields
}

func (*GoToDefinitionResponse) Descriptor deprecated

func (*GoToDefinitionResponse) Descriptor() ([]byte, []int)

Deprecated: Use GoToDefinitionResponse.ProtoReflect.Descriptor instead.

func (*GoToDefinitionResponse) GetLocations

func (x *GoToDefinitionResponse) GetLocations() []*Location

func (*GoToDefinitionResponse) ProtoMessage

func (*GoToDefinitionResponse) ProtoMessage()

func (*GoToDefinitionResponse) ProtoReflect

func (x *GoToDefinitionResponse) ProtoReflect() protoreflect.Message

func (*GoToDefinitionResponse) Reset

func (x *GoToDefinitionResponse) Reset()

func (*GoToDefinitionResponse) String

func (x *GoToDefinitionResponse) String() string

type ImplementsEdge

type ImplementsEdge struct {
	TypeId      string `protobuf:"bytes,1,opt,name=type_id,json=typeId,proto3" json:"type_id,omitempty"`                // qualified name of the concrete type
	InterfaceId string `protobuf:"bytes,2,opt,name=interface_id,json=interfaceId,proto3" json:"interface_id,omitempty"` // qualified name of the interface
	// contains filtered or unexported fields
}

ImplementsEdge records that a concrete type implements an interface.

func (*ImplementsEdge) Descriptor deprecated

func (*ImplementsEdge) Descriptor() ([]byte, []int)

Deprecated: Use ImplementsEdge.ProtoReflect.Descriptor instead.

func (*ImplementsEdge) GetInterfaceId

func (x *ImplementsEdge) GetInterfaceId() string

func (*ImplementsEdge) GetTypeId

func (x *ImplementsEdge) GetTypeId() string

func (*ImplementsEdge) ProtoMessage

func (*ImplementsEdge) ProtoMessage()

func (*ImplementsEdge) ProtoReflect

func (x *ImplementsEdge) ProtoReflect() protoreflect.Message

func (*ImplementsEdge) Reset

func (x *ImplementsEdge) Reset()

func (*ImplementsEdge) String

func (x *ImplementsEdge) String() string

type ListDependenciesRequest

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

func (*ListDependenciesRequest) Descriptor deprecated

func (*ListDependenciesRequest) Descriptor() ([]byte, []int)

Deprecated: Use ListDependenciesRequest.ProtoReflect.Descriptor instead.

func (*ListDependenciesRequest) ProtoMessage

func (*ListDependenciesRequest) ProtoMessage()

func (*ListDependenciesRequest) ProtoReflect

func (x *ListDependenciesRequest) ProtoReflect() protoreflect.Message

func (*ListDependenciesRequest) Reset

func (x *ListDependenciesRequest) Reset()

func (*ListDependenciesRequest) String

func (x *ListDependenciesRequest) String() string

type ListDependenciesResponse

type ListDependenciesResponse struct {
	Dependencies []*Dependency `protobuf:"bytes,1,rep,name=dependencies,proto3" json:"dependencies,omitempty"`
	Error        string        `protobuf:"bytes,2,opt,name=error,proto3" json:"error,omitempty"`
	// contains filtered or unexported fields
}

func (*ListDependenciesResponse) Descriptor deprecated

func (*ListDependenciesResponse) Descriptor() ([]byte, []int)

Deprecated: Use ListDependenciesResponse.ProtoReflect.Descriptor instead.

func (*ListDependenciesResponse) GetDependencies

func (x *ListDependenciesResponse) GetDependencies() []*Dependency

func (*ListDependenciesResponse) GetError

func (x *ListDependenciesResponse) GetError() string

func (*ListDependenciesResponse) ProtoMessage

func (*ListDependenciesResponse) ProtoMessage()

func (*ListDependenciesResponse) ProtoReflect

func (x *ListDependenciesResponse) ProtoReflect() protoreflect.Message

func (*ListDependenciesResponse) Reset

func (x *ListDependenciesResponse) Reset()

func (*ListDependenciesResponse) String

func (x *ListDependenciesResponse) String() string

type ListFilesRequest

type ListFilesRequest struct {
	Path       string   `protobuf:"bytes,1,opt,name=path,proto3" json:"path,omitempty"`             // optional: subdirectory (empty = root)
	Extensions []string `protobuf:"bytes,2,rep,name=extensions,proto3" json:"extensions,omitempty"` // optional: filter by extension (e.g. ".go", ".py")
	Recursive  bool     `protobuf:"varint,3,opt,name=recursive,proto3" json:"recursive,omitempty"`  // if true, list recursively
	// contains filtered or unexported fields
}

func (*ListFilesRequest) Descriptor deprecated

func (*ListFilesRequest) Descriptor() ([]byte, []int)

Deprecated: Use ListFilesRequest.ProtoReflect.Descriptor instead.

func (*ListFilesRequest) GetExtensions

func (x *ListFilesRequest) GetExtensions() []string

func (*ListFilesRequest) GetPath

func (x *ListFilesRequest) GetPath() string

func (*ListFilesRequest) GetRecursive

func (x *ListFilesRequest) GetRecursive() bool

func (*ListFilesRequest) ProtoMessage

func (*ListFilesRequest) ProtoMessage()

func (*ListFilesRequest) ProtoReflect

func (x *ListFilesRequest) ProtoReflect() protoreflect.Message

func (*ListFilesRequest) Reset

func (x *ListFilesRequest) Reset()

func (*ListFilesRequest) String

func (x *ListFilesRequest) String() string

type ListFilesResponse

type ListFilesResponse struct {
	Files []*FileInfo `protobuf:"bytes,1,rep,name=files,proto3" json:"files,omitempty"`
	// contains filtered or unexported fields
}

func (*ListFilesResponse) Descriptor deprecated

func (*ListFilesResponse) Descriptor() ([]byte, []int)

Deprecated: Use ListFilesResponse.ProtoReflect.Descriptor instead.

func (*ListFilesResponse) GetFiles

func (x *ListFilesResponse) GetFiles() []*FileInfo

func (*ListFilesResponse) ProtoMessage

func (*ListFilesResponse) ProtoMessage()

func (*ListFilesResponse) ProtoReflect

func (x *ListFilesResponse) ProtoReflect() protoreflect.Message

func (*ListFilesResponse) Reset

func (x *ListFilesResponse) Reset()

func (*ListFilesResponse) String

func (x *ListFilesResponse) String() string

type ListSymbolsRequest

type ListSymbolsRequest struct {

	// Optional: restrict to a single file (relative path). If empty, returns
	// symbols for all source files in the service.
	File string `protobuf:"bytes,1,opt,name=file,proto3" json:"file,omitempty"`
	// contains filtered or unexported fields
}

func (*ListSymbolsRequest) Descriptor deprecated

func (*ListSymbolsRequest) Descriptor() ([]byte, []int)

Deprecated: Use ListSymbolsRequest.ProtoReflect.Descriptor instead.

func (*ListSymbolsRequest) GetFile

func (x *ListSymbolsRequest) GetFile() string

func (*ListSymbolsRequest) ProtoMessage

func (*ListSymbolsRequest) ProtoMessage()

func (*ListSymbolsRequest) ProtoReflect

func (x *ListSymbolsRequest) ProtoReflect() protoreflect.Message

func (*ListSymbolsRequest) Reset

func (x *ListSymbolsRequest) Reset()

func (*ListSymbolsRequest) String

func (x *ListSymbolsRequest) String() string

type ListSymbolsResponse

type ListSymbolsResponse struct {
	Status  *ListSymbolsStatus `protobuf:"bytes,1,opt,name=status,proto3" json:"status,omitempty"`
	Symbols []*Symbol          `protobuf:"bytes,2,rep,name=symbols,proto3" json:"symbols,omitempty"`
	// contains filtered or unexported fields
}

func (*ListSymbolsResponse) Descriptor deprecated

func (*ListSymbolsResponse) Descriptor() ([]byte, []int)

Deprecated: Use ListSymbolsResponse.ProtoReflect.Descriptor instead.

func (*ListSymbolsResponse) GetStatus

func (x *ListSymbolsResponse) GetStatus() *ListSymbolsStatus

func (*ListSymbolsResponse) GetSymbols

func (x *ListSymbolsResponse) GetSymbols() []*Symbol

func (*ListSymbolsResponse) ProtoMessage

func (*ListSymbolsResponse) ProtoMessage()

func (*ListSymbolsResponse) ProtoReflect

func (x *ListSymbolsResponse) ProtoReflect() protoreflect.Message

func (*ListSymbolsResponse) Reset

func (x *ListSymbolsResponse) Reset()

func (*ListSymbolsResponse) String

func (x *ListSymbolsResponse) String() string

type ListSymbolsStatus

type ListSymbolsStatus struct {
	State   ListSymbolsStatus_Status `protobuf:"varint,1,opt,name=state,proto3,enum=codefly.services.code.v0.ListSymbolsStatus_Status" json:"state,omitempty"`
	Message string                   `protobuf:"bytes,2,opt,name=message,proto3" json:"message,omitempty"`
	// contains filtered or unexported fields
}

func (*ListSymbolsStatus) Descriptor deprecated

func (*ListSymbolsStatus) Descriptor() ([]byte, []int)

Deprecated: Use ListSymbolsStatus.ProtoReflect.Descriptor instead.

func (*ListSymbolsStatus) GetMessage

func (x *ListSymbolsStatus) GetMessage() string

func (*ListSymbolsStatus) GetState

func (*ListSymbolsStatus) ProtoMessage

func (*ListSymbolsStatus) ProtoMessage()

func (*ListSymbolsStatus) ProtoReflect

func (x *ListSymbolsStatus) ProtoReflect() protoreflect.Message

func (*ListSymbolsStatus) Reset

func (x *ListSymbolsStatus) Reset()

func (*ListSymbolsStatus) String

func (x *ListSymbolsStatus) String() string

type ListSymbolsStatus_Status

type ListSymbolsStatus_Status int32
const (
	ListSymbolsStatus_UNKNOWN ListSymbolsStatus_Status = 0
	ListSymbolsStatus_SUCCESS ListSymbolsStatus_Status = 1
	ListSymbolsStatus_ERROR   ListSymbolsStatus_Status = 2
)

func (ListSymbolsStatus_Status) Descriptor

func (ListSymbolsStatus_Status) Enum

func (ListSymbolsStatus_Status) EnumDescriptor deprecated

func (ListSymbolsStatus_Status) EnumDescriptor() ([]byte, []int)

Deprecated: Use ListSymbolsStatus_Status.Descriptor instead.

func (ListSymbolsStatus_Status) Number

func (ListSymbolsStatus_Status) String

func (x ListSymbolsStatus_Status) String() string

func (ListSymbolsStatus_Status) Type

type Location

type Location struct {
	File      string `protobuf:"bytes,1,opt,name=file,proto3" json:"file,omitempty"`      // Relative path within the service, e.g. "pkg/handlers/health.go"
	Line      int32  `protobuf:"varint,2,opt,name=line,proto3" json:"line,omitempty"`     // 1-based line number
	Column    int32  `protobuf:"varint,3,opt,name=column,proto3" json:"column,omitempty"` // 1-based column number
	EndLine   int32  `protobuf:"varint,4,opt,name=end_line,json=endLine,proto3" json:"end_line,omitempty"`
	EndColumn int32  `protobuf:"varint,5,opt,name=end_column,json=endColumn,proto3" json:"end_column,omitempty"`
	// contains filtered or unexported fields
}

Location identifies where a symbol lives in the source code.

func (*Location) Descriptor deprecated

func (*Location) Descriptor() ([]byte, []int)

Deprecated: Use Location.ProtoReflect.Descriptor instead.

func (*Location) GetColumn

func (x *Location) GetColumn() int32

func (*Location) GetEndColumn

func (x *Location) GetEndColumn() int32

func (*Location) GetEndLine

func (x *Location) GetEndLine() int32

func (*Location) GetFile

func (x *Location) GetFile() string

func (*Location) GetLine

func (x *Location) GetLine() int32

func (*Location) ProtoMessage

func (*Location) ProtoMessage()

func (*Location) ProtoReflect

func (x *Location) ProtoReflect() protoreflect.Message

func (*Location) Reset

func (x *Location) Reset()

func (*Location) String

func (x *Location) String() string

type MoveFileRequest

type MoveFileRequest struct {
	OldPath       string `protobuf:"bytes,1,opt,name=old_path,json=oldPath,proto3" json:"old_path,omitempty"`                    // current relative path
	NewPath       string `protobuf:"bytes,2,opt,name=new_path,json=newPath,proto3" json:"new_path,omitempty"`                    // target relative path
	UpdateImports bool   `protobuf:"varint,3,opt,name=update_imports,json=updateImports,proto3" json:"update_imports,omitempty"` // if true, rewrite imports across the codebase
	// contains filtered or unexported fields
}

MoveFile renames or moves a file within the service, optionally updating imports.

func (*MoveFileRequest) Descriptor deprecated

func (*MoveFileRequest) Descriptor() ([]byte, []int)

Deprecated: Use MoveFileRequest.ProtoReflect.Descriptor instead.

func (*MoveFileRequest) GetNewPath

func (x *MoveFileRequest) GetNewPath() string

func (*MoveFileRequest) GetOldPath

func (x *MoveFileRequest) GetOldPath() string

func (*MoveFileRequest) GetUpdateImports

func (x *MoveFileRequest) GetUpdateImports() bool

func (*MoveFileRequest) ProtoMessage

func (*MoveFileRequest) ProtoMessage()

func (*MoveFileRequest) ProtoReflect

func (x *MoveFileRequest) ProtoReflect() protoreflect.Message

func (*MoveFileRequest) Reset

func (x *MoveFileRequest) Reset()

func (*MoveFileRequest) String

func (x *MoveFileRequest) String() string

type MoveFileResponse

type MoveFileResponse struct {
	Success      bool     `protobuf:"varint,1,opt,name=success,proto3" json:"success,omitempty"`
	Error        string   `protobuf:"bytes,2,opt,name=error,proto3" json:"error,omitempty"`
	UpdatedFiles []string `protobuf:"bytes,3,rep,name=updated_files,json=updatedFiles,proto3" json:"updated_files,omitempty"` // files whose imports were rewritten
	// contains filtered or unexported fields
}

func (*MoveFileResponse) Descriptor deprecated

func (*MoveFileResponse) Descriptor() ([]byte, []int)

Deprecated: Use MoveFileResponse.ProtoReflect.Descriptor instead.

func (*MoveFileResponse) GetError

func (x *MoveFileResponse) GetError() string

func (*MoveFileResponse) GetSuccess

func (x *MoveFileResponse) GetSuccess() bool

func (*MoveFileResponse) GetUpdatedFiles

func (x *MoveFileResponse) GetUpdatedFiles() []string

func (*MoveFileResponse) ProtoMessage

func (*MoveFileResponse) ProtoMessage()

func (*MoveFileResponse) ProtoReflect

func (x *MoveFileResponse) ProtoReflect() protoreflect.Message

func (*MoveFileResponse) Reset

func (x *MoveFileResponse) Reset()

func (*MoveFileResponse) String

func (x *MoveFileResponse) String() string

type PackageInfo

type PackageInfo struct {
	Name         string   `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`                                     // e.g. "github.com/codefly-dev/mind/pkg/run"
	RelativePath string   `protobuf:"bytes,2,opt,name=relative_path,json=relativePath,proto3" json:"relative_path,omitempty"` // e.g. "pkg/run"
	Files        []string `protobuf:"bytes,3,rep,name=files,proto3" json:"files,omitempty"`                                   // Go files in the package
	Imports      []string `protobuf:"bytes,4,rep,name=imports,proto3" json:"imports,omitempty"`                               // direct imports
	Doc          string   `protobuf:"bytes,5,opt,name=doc,proto3" json:"doc,omitempty"`                                       // package doc comment
	// contains filtered or unexported fields
}

PackageInfo describes a single package/module within the project.

func (*PackageInfo) Descriptor deprecated

func (*PackageInfo) Descriptor() ([]byte, []int)

Deprecated: Use PackageInfo.ProtoReflect.Descriptor instead.

func (*PackageInfo) GetDoc

func (x *PackageInfo) GetDoc() string

func (*PackageInfo) GetFiles

func (x *PackageInfo) GetFiles() []string

func (*PackageInfo) GetImports

func (x *PackageInfo) GetImports() []string

func (*PackageInfo) GetName

func (x *PackageInfo) GetName() string

func (*PackageInfo) GetRelativePath

func (x *PackageInfo) GetRelativePath() string

func (*PackageInfo) ProtoMessage

func (*PackageInfo) ProtoMessage()

func (*PackageInfo) ProtoReflect

func (x *PackageInfo) ProtoReflect() protoreflect.Message

func (*PackageInfo) Reset

func (x *PackageInfo) Reset()

func (*PackageInfo) String

func (x *PackageInfo) String() string

type ReadFileRequest

type ReadFileRequest struct {
	Path string `protobuf:"bytes,1,opt,name=path,proto3" json:"path,omitempty"` // relative path within the service
	// contains filtered or unexported fields
}

func (*ReadFileRequest) Descriptor deprecated

func (*ReadFileRequest) Descriptor() ([]byte, []int)

Deprecated: Use ReadFileRequest.ProtoReflect.Descriptor instead.

func (*ReadFileRequest) GetPath

func (x *ReadFileRequest) GetPath() string

func (*ReadFileRequest) ProtoMessage

func (*ReadFileRequest) ProtoMessage()

func (*ReadFileRequest) ProtoReflect

func (x *ReadFileRequest) ProtoReflect() protoreflect.Message

func (*ReadFileRequest) Reset

func (x *ReadFileRequest) Reset()

func (*ReadFileRequest) String

func (x *ReadFileRequest) String() string

type ReadFileResponse

type ReadFileResponse struct {
	Content string `protobuf:"bytes,1,opt,name=content,proto3" json:"content,omitempty"`
	Exists  bool   `protobuf:"varint,2,opt,name=exists,proto3" json:"exists,omitempty"`
	// contains filtered or unexported fields
}

func (*ReadFileResponse) Descriptor deprecated

func (*ReadFileResponse) Descriptor() ([]byte, []int)

Deprecated: Use ReadFileResponse.ProtoReflect.Descriptor instead.

func (*ReadFileResponse) GetContent

func (x *ReadFileResponse) GetContent() string

func (*ReadFileResponse) GetExists

func (x *ReadFileResponse) GetExists() bool

func (*ReadFileResponse) ProtoMessage

func (*ReadFileResponse) ProtoMessage()

func (*ReadFileResponse) ProtoReflect

func (x *ReadFileResponse) ProtoReflect() protoreflect.Message

func (*ReadFileResponse) Reset

func (x *ReadFileResponse) Reset()

func (*ReadFileResponse) String

func (x *ReadFileResponse) String() string

type RemoveDependencyRequest

type RemoveDependencyRequest struct {
	PackageName string `protobuf:"bytes,1,opt,name=package_name,json=packageName,proto3" json:"package_name,omitempty"`
	// contains filtered or unexported fields
}

RemoveDependency removes a package/module via the language package manager.

func (*RemoveDependencyRequest) Descriptor deprecated

func (*RemoveDependencyRequest) Descriptor() ([]byte, []int)

Deprecated: Use RemoveDependencyRequest.ProtoReflect.Descriptor instead.

func (*RemoveDependencyRequest) GetPackageName

func (x *RemoveDependencyRequest) GetPackageName() string

func (*RemoveDependencyRequest) ProtoMessage

func (*RemoveDependencyRequest) ProtoMessage()

func (*RemoveDependencyRequest) ProtoReflect

func (x *RemoveDependencyRequest) ProtoReflect() protoreflect.Message

func (*RemoveDependencyRequest) Reset

func (x *RemoveDependencyRequest) Reset()

func (*RemoveDependencyRequest) String

func (x *RemoveDependencyRequest) String() string

type RemoveDependencyResponse

type RemoveDependencyResponse struct {
	Success bool   `protobuf:"varint,1,opt,name=success,proto3" json:"success,omitempty"`
	Error   string `protobuf:"bytes,2,opt,name=error,proto3" json:"error,omitempty"`
	// contains filtered or unexported fields
}

func (*RemoveDependencyResponse) Descriptor deprecated

func (*RemoveDependencyResponse) Descriptor() ([]byte, []int)

Deprecated: Use RemoveDependencyResponse.ProtoReflect.Descriptor instead.

func (*RemoveDependencyResponse) GetError

func (x *RemoveDependencyResponse) GetError() string

func (*RemoveDependencyResponse) GetSuccess

func (x *RemoveDependencyResponse) GetSuccess() bool

func (*RemoveDependencyResponse) ProtoMessage

func (*RemoveDependencyResponse) ProtoMessage()

func (*RemoveDependencyResponse) ProtoReflect

func (x *RemoveDependencyResponse) ProtoReflect() protoreflect.Message

func (*RemoveDependencyResponse) Reset

func (x *RemoveDependencyResponse) Reset()

func (*RemoveDependencyResponse) String

func (x *RemoveDependencyResponse) String() string

type RenameSymbolRequest

type RenameSymbolRequest struct {
	File    string `protobuf:"bytes,1,opt,name=file,proto3" json:"file,omitempty"`      // relative path
	Line    int32  `protobuf:"varint,2,opt,name=line,proto3" json:"line,omitempty"`     // 1-based
	Column  int32  `protobuf:"varint,3,opt,name=column,proto3" json:"column,omitempty"` // 1-based
	NewName string `protobuf:"bytes,4,opt,name=new_name,json=newName,proto3" json:"new_name,omitempty"`
	// contains filtered or unexported fields
}

RenameSymbol performs a language-aware rename of a symbol across all files.

func (*RenameSymbolRequest) Descriptor deprecated

func (*RenameSymbolRequest) Descriptor() ([]byte, []int)

Deprecated: Use RenameSymbolRequest.ProtoReflect.Descriptor instead.

func (*RenameSymbolRequest) GetColumn

func (x *RenameSymbolRequest) GetColumn() int32

func (*RenameSymbolRequest) GetFile

func (x *RenameSymbolRequest) GetFile() string

func (*RenameSymbolRequest) GetLine

func (x *RenameSymbolRequest) GetLine() int32

func (*RenameSymbolRequest) GetNewName

func (x *RenameSymbolRequest) GetNewName() string

func (*RenameSymbolRequest) ProtoMessage

func (*RenameSymbolRequest) ProtoMessage()

func (*RenameSymbolRequest) ProtoReflect

func (x *RenameSymbolRequest) ProtoReflect() protoreflect.Message

func (*RenameSymbolRequest) Reset

func (x *RenameSymbolRequest) Reset()

func (*RenameSymbolRequest) String

func (x *RenameSymbolRequest) String() string

type RenameSymbolResponse

type RenameSymbolResponse struct {
	Success bool        `protobuf:"varint,1,opt,name=success,proto3" json:"success,omitempty"`
	Error   string      `protobuf:"bytes,2,opt,name=error,proto3" json:"error,omitempty"`
	Edits   []*TextEdit `protobuf:"bytes,3,rep,name=edits,proto3" json:"edits,omitempty"` // the edits that were applied
	Files   []string    `protobuf:"bytes,4,rep,name=files,proto3" json:"files,omitempty"` // files that were modified
	// contains filtered or unexported fields
}

func (*RenameSymbolResponse) Descriptor deprecated

func (*RenameSymbolResponse) Descriptor() ([]byte, []int)

Deprecated: Use RenameSymbolResponse.ProtoReflect.Descriptor instead.

func (*RenameSymbolResponse) GetEdits

func (x *RenameSymbolResponse) GetEdits() []*TextEdit

func (*RenameSymbolResponse) GetError

func (x *RenameSymbolResponse) GetError() string

func (*RenameSymbolResponse) GetFiles

func (x *RenameSymbolResponse) GetFiles() []string

func (*RenameSymbolResponse) GetSuccess

func (x *RenameSymbolResponse) GetSuccess() bool

func (*RenameSymbolResponse) ProtoMessage

func (*RenameSymbolResponse) ProtoMessage()

func (*RenameSymbolResponse) ProtoReflect

func (x *RenameSymbolResponse) ProtoReflect() protoreflect.Message

func (*RenameSymbolResponse) Reset

func (x *RenameSymbolResponse) Reset()

func (*RenameSymbolResponse) String

func (x *RenameSymbolResponse) String() string

type SearchMatch

type SearchMatch struct {
	File          string   `protobuf:"bytes,1,opt,name=file,proto3" json:"file,omitempty"`  // relative path within the service
	Line          int32    `protobuf:"varint,2,opt,name=line,proto3" json:"line,omitempty"` // 1-based line number
	Text          string   `protobuf:"bytes,3,opt,name=text,proto3" json:"text,omitempty"`  // the matching line (trimmed)
	ContextBefore []string `protobuf:"bytes,4,rep,name=context_before,json=contextBefore,proto3" json:"context_before,omitempty"`
	ContextAfter  []string `protobuf:"bytes,5,rep,name=context_after,json=contextAfter,proto3" json:"context_after,omitempty"`
	// contains filtered or unexported fields
}

func (*SearchMatch) Descriptor deprecated

func (*SearchMatch) Descriptor() ([]byte, []int)

Deprecated: Use SearchMatch.ProtoReflect.Descriptor instead.

func (*SearchMatch) GetContextAfter

func (x *SearchMatch) GetContextAfter() []string

func (*SearchMatch) GetContextBefore

func (x *SearchMatch) GetContextBefore() []string

func (*SearchMatch) GetFile

func (x *SearchMatch) GetFile() string

func (*SearchMatch) GetLine

func (x *SearchMatch) GetLine() int32

func (*SearchMatch) GetText

func (x *SearchMatch) GetText() string

func (*SearchMatch) ProtoMessage

func (*SearchMatch) ProtoMessage()

func (*SearchMatch) ProtoReflect

func (x *SearchMatch) ProtoReflect() protoreflect.Message

func (*SearchMatch) Reset

func (x *SearchMatch) Reset()

func (*SearchMatch) String

func (x *SearchMatch) String() string

type SearchRequest

type SearchRequest struct {
	Pattern         string   `protobuf:"bytes,1,opt,name=pattern,proto3" json:"pattern,omitempty"`  // regex or literal pattern
	Literal         bool     `protobuf:"varint,2,opt,name=literal,proto3" json:"literal,omitempty"` // if true, treat pattern as literal string (no regex)
	CaseInsensitive bool     `protobuf:"varint,3,opt,name=case_insensitive,json=caseInsensitive,proto3" json:"case_insensitive,omitempty"`
	Path            string   `protobuf:"bytes,4,opt,name=path,proto3" json:"path,omitempty"`                                      // optional: restrict to subdirectory
	Extensions      []string `protobuf:"bytes,5,rep,name=extensions,proto3" json:"extensions,omitempty"`                          // optional: filter by extension (e.g. ".go", ".py")
	Exclude         []string `protobuf:"bytes,6,rep,name=exclude,proto3" json:"exclude,omitempty"`                                // optional: glob patterns to exclude
	MaxResults      int32    `protobuf:"varint,7,opt,name=max_results,json=maxResults,proto3" json:"max_results,omitempty"`       // 0 = default (100)
	ContextLines    int32    `protobuf:"varint,8,opt,name=context_lines,json=contextLines,proto3" json:"context_lines,omitempty"` // lines of context around each match
	// contains filtered or unexported fields
}

func (*SearchRequest) Descriptor deprecated

func (*SearchRequest) Descriptor() ([]byte, []int)

Deprecated: Use SearchRequest.ProtoReflect.Descriptor instead.

func (*SearchRequest) GetCaseInsensitive

func (x *SearchRequest) GetCaseInsensitive() bool

func (*SearchRequest) GetContextLines

func (x *SearchRequest) GetContextLines() int32

func (*SearchRequest) GetExclude

func (x *SearchRequest) GetExclude() []string

func (*SearchRequest) GetExtensions

func (x *SearchRequest) GetExtensions() []string

func (*SearchRequest) GetLiteral

func (x *SearchRequest) GetLiteral() bool

func (*SearchRequest) GetMaxResults

func (x *SearchRequest) GetMaxResults() int32

func (*SearchRequest) GetPath

func (x *SearchRequest) GetPath() string

func (*SearchRequest) GetPattern

func (x *SearchRequest) GetPattern() string

func (*SearchRequest) ProtoMessage

func (*SearchRequest) ProtoMessage()

func (*SearchRequest) ProtoReflect

func (x *SearchRequest) ProtoReflect() protoreflect.Message

func (*SearchRequest) Reset

func (x *SearchRequest) Reset()

func (*SearchRequest) String

func (x *SearchRequest) String() string

type SearchResponse

type SearchResponse struct {
	Matches      []*SearchMatch `protobuf:"bytes,1,rep,name=matches,proto3" json:"matches,omitempty"`
	Truncated    bool           `protobuf:"varint,2,opt,name=truncated,proto3" json:"truncated,omitempty"` // true if max_results was hit
	TotalMatches int32          `protobuf:"varint,3,opt,name=total_matches,json=totalMatches,proto3" json:"total_matches,omitempty"`
	// contains filtered or unexported fields
}

func (*SearchResponse) Descriptor deprecated

func (*SearchResponse) Descriptor() ([]byte, []int)

Deprecated: Use SearchResponse.ProtoReflect.Descriptor instead.

func (*SearchResponse) GetMatches

func (x *SearchResponse) GetMatches() []*SearchMatch

func (*SearchResponse) GetTotalMatches

func (x *SearchResponse) GetTotalMatches() int32

func (*SearchResponse) GetTruncated

func (x *SearchResponse) GetTruncated() bool

func (*SearchResponse) ProtoMessage

func (*SearchResponse) ProtoMessage()

func (*SearchResponse) ProtoReflect

func (x *SearchResponse) ProtoReflect() protoreflect.Message

func (*SearchResponse) Reset

func (x *SearchResponse) Reset()

func (*SearchResponse) String

func (x *SearchResponse) String() string

type ShellExecRequest

type ShellExecRequest struct {

	// The full command line, parsed by the shell. Example: "go test ./..."
	Command string `protobuf:"bytes,1,opt,name=command,proto3" json:"command,omitempty"`
	// Optional list of arg overrides. If args is set AND command is
	// empty, args[0] is the program and args[1:] are its arguments,
	// executed WITHOUT a shell. Use this for commands whose arguments
	// contain shell metacharacters that must not be re-interpreted.
	Args []string `protobuf:"bytes,2,rep,name=args,proto3" json:"args,omitempty"`
	// Optional working directory override, relative to the service's
	// source directory. If empty, the command runs in the source root.
	WorkDir string `protobuf:"bytes,3,opt,name=work_dir,json=workDir,proto3" json:"work_dir,omitempty"`
	// Optional additional environment variables. "KEY=VALUE" form.
	// Merged on top of the agent's existing environment.
	Env []string `protobuf:"bytes,4,rep,name=env,proto3" json:"env,omitempty"`
	// Timeout in seconds. 0 means the agent's default (30s).
	TimeoutSeconds int32 `protobuf:"varint,5,opt,name=timeout_seconds,json=timeoutSeconds,proto3" json:"timeout_seconds,omitempty"`
	// contains filtered or unexported fields
}

func (*ShellExecRequest) Descriptor deprecated

func (*ShellExecRequest) Descriptor() ([]byte, []int)

Deprecated: Use ShellExecRequest.ProtoReflect.Descriptor instead.

func (*ShellExecRequest) GetArgs

func (x *ShellExecRequest) GetArgs() []string

func (*ShellExecRequest) GetCommand

func (x *ShellExecRequest) GetCommand() string

func (*ShellExecRequest) GetEnv

func (x *ShellExecRequest) GetEnv() []string

func (*ShellExecRequest) GetTimeoutSeconds

func (x *ShellExecRequest) GetTimeoutSeconds() int32

func (*ShellExecRequest) GetWorkDir

func (x *ShellExecRequest) GetWorkDir() string

func (*ShellExecRequest) ProtoMessage

func (*ShellExecRequest) ProtoMessage()

func (*ShellExecRequest) ProtoReflect

func (x *ShellExecRequest) ProtoReflect() protoreflect.Message

func (*ShellExecRequest) Reset

func (x *ShellExecRequest) Reset()

func (*ShellExecRequest) String

func (x *ShellExecRequest) String() string

type ShellExecResponse

type ShellExecResponse struct {
	ExitCode int32  `protobuf:"varint,1,opt,name=exit_code,json=exitCode,proto3" json:"exit_code,omitempty"`
	Stdout   string `protobuf:"bytes,2,opt,name=stdout,proto3" json:"stdout,omitempty"`
	Stderr   string `protobuf:"bytes,3,opt,name=stderr,proto3" json:"stderr,omitempty"`
	// True if the command was terminated because it exceeded timeout_seconds.
	TimedOut bool `protobuf:"varint,4,opt,name=timed_out,json=timedOut,proto3" json:"timed_out,omitempty"`
	// If the agent could not even launch the process, error carries the
	// reason. exit_code is then left at -1 and stdout/stderr are empty.
	Error string `protobuf:"bytes,5,opt,name=error,proto3" json:"error,omitempty"`
	// contains filtered or unexported fields
}

func (*ShellExecResponse) Descriptor deprecated

func (*ShellExecResponse) Descriptor() ([]byte, []int)

Deprecated: Use ShellExecResponse.ProtoReflect.Descriptor instead.

func (*ShellExecResponse) GetError

func (x *ShellExecResponse) GetError() string

func (*ShellExecResponse) GetExitCode

func (x *ShellExecResponse) GetExitCode() int32

func (*ShellExecResponse) GetStderr

func (x *ShellExecResponse) GetStderr() string

func (*ShellExecResponse) GetStdout

func (x *ShellExecResponse) GetStdout() string

func (*ShellExecResponse) GetTimedOut

func (x *ShellExecResponse) GetTimedOut() bool

func (*ShellExecResponse) ProtoMessage

func (*ShellExecResponse) ProtoMessage()

func (*ShellExecResponse) ProtoReflect

func (x *ShellExecResponse) ProtoReflect() protoreflect.Message

func (*ShellExecResponse) Reset

func (x *ShellExecResponse) Reset()

func (*ShellExecResponse) String

func (x *ShellExecResponse) String() string

type Symbol

type Symbol struct {
	Name          string     `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` // e.g. "HandleHealth"
	Kind          SymbolKind `protobuf:"varint,2,opt,name=kind,proto3,enum=codefly.services.code.v0.SymbolKind" json:"kind,omitempty"`
	Location      *Location  `protobuf:"bytes,3,opt,name=location,proto3" json:"location,omitempty"`
	Signature     string     `protobuf:"bytes,4,opt,name=signature,proto3" json:"signature,omitempty"`         // e.g. "func HandleHealth(w http.ResponseWriter, r *http.Request)"
	Documentation string     `protobuf:"bytes,5,opt,name=documentation,proto3" json:"documentation,omitempty"` // Doc comment, if present
	Parent        string     `protobuf:"bytes,6,opt,name=parent,proto3" json:"parent,omitempty"`               // Containing symbol name, e.g. "Server" for a method
	Children      []*Symbol  `protobuf:"bytes,7,rep,name=children,proto3" json:"children,omitempty"`           // Nested symbols (struct fields, interface methods, etc.)
	// Versioned graph: content-addressed dedup (HyperAST-style).
	// Agents compute these from the parsed AST. Mind uses them for
	// symbol-level dedup across versions.
	QualifiedName string `protobuf:"bytes,8,opt,name=qualified_name,json=qualifiedName,proto3" json:"qualified_name,omitempty"`  // "<package>.<name>" or "<package>.<Type>.<name>"
	BodyHash      string `protobuf:"bytes,9,opt,name=body_hash,json=bodyHash,proto3" json:"body_hash,omitempty"`                 // sha256 of normalized function body
	SignatureHash string `protobuf:"bytes,10,opt,name=signature_hash,json=signatureHash,proto3" json:"signature_hash,omitempty"` // sha256 of function signature
	// contains filtered or unexported fields
}

Symbol represents a single code symbol (function, type, method, etc.).

func (*Symbol) Descriptor deprecated

func (*Symbol) Descriptor() ([]byte, []int)

Deprecated: Use Symbol.ProtoReflect.Descriptor instead.

func (*Symbol) GetBodyHash

func (x *Symbol) GetBodyHash() string

func (*Symbol) GetChildren

func (x *Symbol) GetChildren() []*Symbol

func (*Symbol) GetDocumentation

func (x *Symbol) GetDocumentation() string

func (*Symbol) GetKind

func (x *Symbol) GetKind() SymbolKind

func (*Symbol) GetLocation

func (x *Symbol) GetLocation() *Location

func (*Symbol) GetName

func (x *Symbol) GetName() string

func (*Symbol) GetParent

func (x *Symbol) GetParent() string

func (*Symbol) GetQualifiedName

func (x *Symbol) GetQualifiedName() string

func (*Symbol) GetSignature

func (x *Symbol) GetSignature() string

func (*Symbol) GetSignatureHash

func (x *Symbol) GetSignatureHash() string

func (*Symbol) ProtoMessage

func (*Symbol) ProtoMessage()

func (*Symbol) ProtoReflect

func (x *Symbol) ProtoReflect() protoreflect.Message

func (*Symbol) Reset

func (x *Symbol) Reset()

func (*Symbol) String

func (x *Symbol) String() string

type SymbolKind

type SymbolKind int32

SymbolKind enumerates the kinds of code symbols.

const (
	SymbolKind_SYMBOL_KIND_UNKNOWN    SymbolKind = 0
	SymbolKind_SYMBOL_KIND_FUNCTION   SymbolKind = 1
	SymbolKind_SYMBOL_KIND_METHOD     SymbolKind = 2
	SymbolKind_SYMBOL_KIND_STRUCT     SymbolKind = 3
	SymbolKind_SYMBOL_KIND_INTERFACE  SymbolKind = 4
	SymbolKind_SYMBOL_KIND_CONSTANT   SymbolKind = 5
	SymbolKind_SYMBOL_KIND_VARIABLE   SymbolKind = 6
	SymbolKind_SYMBOL_KIND_TYPE_ALIAS SymbolKind = 7
	SymbolKind_SYMBOL_KIND_PACKAGE    SymbolKind = 8
	SymbolKind_SYMBOL_KIND_FIELD      SymbolKind = 9
	SymbolKind_SYMBOL_KIND_ENUM       SymbolKind = 10
	SymbolKind_SYMBOL_KIND_CLASS      SymbolKind = 11
)

func (SymbolKind) Descriptor

func (SymbolKind) Descriptor() protoreflect.EnumDescriptor

func (SymbolKind) Enum

func (x SymbolKind) Enum() *SymbolKind

func (SymbolKind) EnumDescriptor deprecated

func (SymbolKind) EnumDescriptor() ([]byte, []int)

Deprecated: Use SymbolKind.Descriptor instead.

func (SymbolKind) Number

func (x SymbolKind) Number() protoreflect.EnumNumber

func (SymbolKind) String

func (x SymbolKind) String() string

func (SymbolKind) Type

type TextEdit

type TextEdit struct {
	File        string `protobuf:"bytes,1,opt,name=file,proto3" json:"file,omitempty"`                             // relative path
	StartLine   int32  `protobuf:"varint,2,opt,name=start_line,json=startLine,proto3" json:"start_line,omitempty"` // 1-based
	StartColumn int32  `protobuf:"varint,3,opt,name=start_column,json=startColumn,proto3" json:"start_column,omitempty"`
	EndLine     int32  `protobuf:"varint,4,opt,name=end_line,json=endLine,proto3" json:"end_line,omitempty"`
	EndColumn   int32  `protobuf:"varint,5,opt,name=end_column,json=endColumn,proto3" json:"end_column,omitempty"`
	NewText     string `protobuf:"bytes,6,opt,name=new_text,json=newText,proto3" json:"new_text,omitempty"`
	// contains filtered or unexported fields
}

TextEdit represents a single text replacement in a file.

func (*TextEdit) Descriptor deprecated

func (*TextEdit) Descriptor() ([]byte, []int)

Deprecated: Use TextEdit.ProtoReflect.Descriptor instead.

func (*TextEdit) GetEndColumn

func (x *TextEdit) GetEndColumn() int32

func (*TextEdit) GetEndLine

func (x *TextEdit) GetEndLine() int32

func (*TextEdit) GetFile

func (x *TextEdit) GetFile() string

func (*TextEdit) GetNewText

func (x *TextEdit) GetNewText() string

func (*TextEdit) GetStartColumn

func (x *TextEdit) GetStartColumn() int32

func (*TextEdit) GetStartLine

func (x *TextEdit) GetStartLine() int32

func (*TextEdit) ProtoMessage

func (*TextEdit) ProtoMessage()

func (*TextEdit) ProtoReflect

func (x *TextEdit) ProtoReflect() protoreflect.Message

func (*TextEdit) Reset

func (x *TextEdit) Reset()

func (*TextEdit) String

func (x *TextEdit) String() string

type UnimplementedCodeServer

type UnimplementedCodeServer struct{}

UnimplementedCodeServer must be embedded to have forward compatible implementations.

NOTE: this should be embedded by value instead of pointer to avoid a nil pointer dereference when methods are called.

func (UnimplementedCodeServer) ApplyEdit

func (UnimplementedCodeServer) Execute

func (UnimplementedCodeServer) FindReferences

func (UnimplementedCodeServer) GetCallGraph

func (UnimplementedCodeServer) GetDiagnostics

func (UnimplementedCodeServer) GetHoverInfo

func (UnimplementedCodeServer) GoToDefinition

func (UnimplementedCodeServer) ListSymbols

func (UnimplementedCodeServer) ShellExec

type UnsafeCodeServer

type UnsafeCodeServer interface {
	// contains filtered or unexported methods
}

UnsafeCodeServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to CodeServer will result in compilation errors.

type WriteFileRequest

type WriteFileRequest struct {
	Path    string `protobuf:"bytes,1,opt,name=path,proto3" json:"path,omitempty"` // relative path within the service
	Content string `protobuf:"bytes,2,opt,name=content,proto3" json:"content,omitempty"`
	// contains filtered or unexported fields
}

func (*WriteFileRequest) Descriptor deprecated

func (*WriteFileRequest) Descriptor() ([]byte, []int)

Deprecated: Use WriteFileRequest.ProtoReflect.Descriptor instead.

func (*WriteFileRequest) GetContent

func (x *WriteFileRequest) GetContent() string

func (*WriteFileRequest) GetPath

func (x *WriteFileRequest) GetPath() string

func (*WriteFileRequest) ProtoMessage

func (*WriteFileRequest) ProtoMessage()

func (*WriteFileRequest) ProtoReflect

func (x *WriteFileRequest) ProtoReflect() protoreflect.Message

func (*WriteFileRequest) Reset

func (x *WriteFileRequest) Reset()

func (*WriteFileRequest) String

func (x *WriteFileRequest) String() string

type WriteFileResponse

type WriteFileResponse struct {
	Success bool   `protobuf:"varint,1,opt,name=success,proto3" json:"success,omitempty"`
	Error   string `protobuf:"bytes,2,opt,name=error,proto3" json:"error,omitempty"`
	// contains filtered or unexported fields
}

func (*WriteFileResponse) Descriptor deprecated

func (*WriteFileResponse) Descriptor() ([]byte, []int)

Deprecated: Use WriteFileResponse.ProtoReflect.Descriptor instead.

func (*WriteFileResponse) GetError

func (x *WriteFileResponse) GetError() string

func (*WriteFileResponse) GetSuccess

func (x *WriteFileResponse) GetSuccess() bool

func (*WriteFileResponse) ProtoMessage

func (*WriteFileResponse) ProtoMessage()

func (*WriteFileResponse) ProtoReflect

func (x *WriteFileResponse) ProtoReflect() protoreflect.Message

func (*WriteFileResponse) Reset

func (x *WriteFileResponse) Reset()

func (*WriteFileResponse) String

func (x *WriteFileResponse) String() string

Jump to

Keyboard shortcuts

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