v0

package
v0.1.158 Latest Latest
Warning

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

Go to latest
Published: May 2, 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 {

	// package_name is the identifier accepted by the native package manager.
	PackageName string `protobuf:"bytes,1,opt,name=package_name,json=packageName,proto3" json:"package_name,omitempty"` // e.g. "github.com/gin-gonic/gin"
	// version is the semantic or service-specific version for this resource.
	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 is true when the requested operation completed successfully.
	Success bool `protobuf:"varint,1,opt,name=success,proto3" json:"success,omitempty"`
	// error explains why the operation failed; empty means success at this layer.
	Error string `protobuf:"bytes,2,opt,name=error,proto3" json:"error,omitempty"`
	// installed_version is the version resolved by the package manager.
	InstalledVersion string `protobuf:"bytes,3,opt,name=installed_version,json=installedVersion,proto3" json:"installed_version,omitempty"`
	// contains filtered or unexported fields
}

AddDependencyResponse reports the dependency version resolved by the package manager.

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 is a workspace- or service-relative source file path.
	File string `protobuf:"bytes,1,opt,name=file,proto3" json:"file,omitempty"` // relative path within the service
	// find is the text or pattern to locate before applying an edit.
	Find string `protobuf:"bytes,2,opt,name=find,proto3" json:"find,omitempty"` // text to find (may not be an exact match)
	// replace is the replacement text used by an edit operation.
	Replace string `protobuf:"bytes,3,opt,name=replace,proto3" json:"replace,omitempty"` // replacement text
	// auto_fix asks the agent to run language fixers after editing.
	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 is true when the requested operation completed successfully.
	Success bool `protobuf:"varint,1,opt,name=success,proto3" json:"success,omitempty"`
	// content is the file content after the edit and optional fixers.
	Content string `protobuf:"bytes,2,opt,name=content,proto3" json:"content,omitempty"` // the file content after edit + fix
	// error explains why the operation failed; empty means success at this layer.
	Error string `protobuf:"bytes,3,opt,name=error,proto3" json:"error,omitempty"` // why the edit failed (e.g. "FIND block not matched")
	// strategy names the edit or execution strategy that produced the result.
	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"
	// fix_actions names formatters or import fixers that ran after the edit.
	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
}

ApplyEditResponse reports the selected matching strategy and post-edit content.

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 {

	// caller_id is the qualified symbol name of the calling function.
	CallerId string `protobuf:"bytes,1,opt,name=caller_id,json=callerId,proto3" json:"caller_id,omitempty"` // qualified name of the calling function
	// callee_id is the qualified symbol name of the called function.
	CalleeId string `protobuf:"bytes,2,opt,name=callee_id,json=calleeId,proto3" json:"callee_id,omitempty"` // qualified name of the called function
	// call_type identifies how the call was resolved, such as static or interface dispatch.
	CallType string `protobuf:"bytes,3,opt,name=call_type,json=callType,proto3" json:"call_type,omitempty"` // "static", "interface", "closure"
	// call_site is the source location where the call occurs.
	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 directly exposes symbol listing for older CLI callers.
	ListSymbols(ctx context.Context, in *ListSymbolsRequest, opts ...grpc.CallOption) (*ListSymbolsResponse, error)
	// GetDiagnostics directly exposes language diagnostics for older CLI callers.
	GetDiagnostics(ctx context.Context, in *GetDiagnosticsRequest, opts ...grpc.CallOption) (*GetDiagnosticsResponse, error)
	// GoToDefinition directly exposes definition lookup for older CLI callers.
	GoToDefinition(ctx context.Context, in *GoToDefinitionRequest, opts ...grpc.CallOption) (*GoToDefinitionResponse, error)
	// FindReferences directly exposes reference lookup for older CLI callers.
	FindReferences(ctx context.Context, in *FindReferencesRequest, opts ...grpc.CallOption) (*FindReferencesResponse, error)
	// GetHoverInfo directly exposes hover information for older CLI callers.
	GetHoverInfo(ctx context.Context, in *GetHoverInfoRequest, opts ...grpc.CallOption) (*GetHoverInfoResponse, error)
	// ApplyEdit directly exposes smart edits for older CLI callers.
	ApplyEdit(ctx context.Context, in *ApplyEditRequest, opts ...grpc.CallOption) (*ApplyEditResponse, error)
	// GetCallGraph directly exposes call graph analysis for older CLI callers.
	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.

Code exposes language-aware analysis and editing operations backed by a service agent.

func NewCodeClient

func NewCodeClient(cc grpc.ClientConnInterface) CodeClient

type CodeRequest

type CodeRequest struct {

	// operation selects exactly one supported operation variant.
	//
	// 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 {
	// add_dependency installs a package through the native package manager.
	AddDependency *AddDependencyRequest `protobuf:"bytes,17,opt,name=add_dependency,json=addDependency,proto3,oneof"`
}

type CodeRequest_ApplyEdit

type CodeRequest_ApplyEdit struct {
	// apply_edit applies a smart find/replace edit through the plugin.
	ApplyEdit *ApplyEditRequest `protobuf:"bytes,14,opt,name=apply_edit,json=applyEdit,proto3,oneof"`
}

type CodeRequest_CreateFile

type CodeRequest_CreateFile struct {
	// create_file creates a new file, optionally overwriting an existing path.
	CreateFile *CreateFileRequest `protobuf:"bytes,28,opt,name=create_file,json=createFile,proto3,oneof"`
}

type CodeRequest_DeleteFile

type CodeRequest_DeleteFile struct {
	// delete_file removes a file from the service tree.
	DeleteFile *DeleteFileRequest `protobuf:"bytes,29,opt,name=delete_file,json=deleteFile,proto3,oneof"`
}

type CodeRequest_FindReferences

type CodeRequest_FindReferences struct {
	// find_references resolves usage locations for a symbol at a source position.
	FindReferences *FindReferencesRequest `protobuf:"bytes,10,opt,name=find_references,json=findReferences,proto3,oneof"`
}

type CodeRequest_Fix

type CodeRequest_Fix struct {
	// fix runs language-specific formatting and import fixers for one file.
	Fix *FixRequest `protobuf:"bytes,13,opt,name=fix,proto3,oneof"`
}

type CodeRequest_GetCallGraph

type CodeRequest_GetCallGraph struct {
	// get_call_graph runs whole-program call graph analysis.
	GetCallGraph *GetCallGraphRequest `protobuf:"bytes,25,opt,name=get_call_graph,json=getCallGraph,proto3,oneof"`
}

type CodeRequest_GetCompletions

type CodeRequest_GetCompletions struct {
	// get_completions asks the language server for completion items.
	GetCompletions *GetCompletionsRequest `protobuf:"bytes,20,opt,name=get_completions,json=getCompletions,proto3,oneof"`
}

type CodeRequest_GetDiagnostics

type CodeRequest_GetDiagnostics struct {
	// get_diagnostics asks language tooling for compiler or linter findings.
	GetDiagnostics *GetDiagnosticsRequest `protobuf:"bytes,8,opt,name=get_diagnostics,json=getDiagnostics,proto3,oneof"`
}

type CodeRequest_GetHoverInfo

type CodeRequest_GetHoverInfo struct {
	// get_hover_info asks the language server for hover text at a source position.
	GetHoverInfo *GetHoverInfoRequest `protobuf:"bytes,12,opt,name=get_hover_info,json=getHoverInfo,proto3,oneof"`
}

type CodeRequest_GetProjectInfo

type CodeRequest_GetProjectInfo struct {
	// get_project_info asks the plugin for language-specific project metadata.
	GetProjectInfo *GetProjectInfoRequest `protobuf:"bytes,19,opt,name=get_project_info,json=getProjectInfo,proto3,oneof"`
}

type CodeRequest_GitBlame

type CodeRequest_GitBlame struct {
	// git_blame attributes source lines to commits.
	GitBlame *GitBlameRequest `protobuf:"bytes,35,opt,name=git_blame,json=gitBlame,proto3,oneof"`
}

type CodeRequest_GitDiff

type CodeRequest_GitDiff struct {
	// git_diff returns working-tree or ref-to-ref changes.
	GitDiff *GitDiffRequest `protobuf:"bytes,36,opt,name=git_diff,json=gitDiff,proto3,oneof"`
}

type CodeRequest_GitLog

type CodeRequest_GitLog struct {
	// git_log reads commit history for the service checkout.
	GitLog *GitLogRequest `protobuf:"bytes,33,opt,name=git_log,json=gitLog,proto3,oneof"`
}

type CodeRequest_GitShow

type CodeRequest_GitShow struct {
	// git_show reads a file as it existed at a git ref.
	GitShow *GitShowRequest `protobuf:"bytes,34,opt,name=git_show,json=gitShow,proto3,oneof"`
}

type CodeRequest_GoToDefinition

type CodeRequest_GoToDefinition struct {
	// go_to_definition resolves the declaration for a symbol at a source position.
	GoToDefinition *GoToDefinitionRequest `protobuf:"bytes,9,opt,name=go_to_definition,json=goToDefinition,proto3,oneof"`
}

type CodeRequest_ListDependencies

type CodeRequest_ListDependencies struct {
	// list_dependencies reads dependencies from the native package manager.
	ListDependencies *ListDependenciesRequest `protobuf:"bytes,16,opt,name=list_dependencies,json=listDependencies,proto3,oneof"`
}

type CodeRequest_ListFiles

type CodeRequest_ListFiles struct {
	// list_files enumerates files under a service-relative path.
	ListFiles *ListFilesRequest `protobuf:"bytes,31,opt,name=list_files,json=listFiles,proto3,oneof"`
}

type CodeRequest_ListSymbols

type CodeRequest_ListSymbols struct {
	// list_symbols asks the analyzer for symbols in a file or across the service.
	ListSymbols *ListSymbolsRequest `protobuf:"bytes,7,opt,name=list_symbols,json=listSymbols,proto3,oneof"`
}

type CodeRequest_MoveFile

type CodeRequest_MoveFile struct {
	// move_file renames or moves a file and can rewrite imports.
	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 {
	// remove_dependency removes a package through the native package manager.
	RemoveDependency *RemoveDependencyRequest `protobuf:"bytes,18,opt,name=remove_dependency,json=removeDependency,proto3,oneof"`
}

type CodeRequest_RenameSymbol

type CodeRequest_RenameSymbol struct {
	// rename_symbol requests a language-aware rename across the service.
	RenameSymbol *RenameSymbolRequest `protobuf:"bytes,11,opt,name=rename_symbol,json=renameSymbol,proto3,oneof"`
}
type CodeRequest_Search struct {
	// search runs literal or regex search across service files.
	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 {
	// write_file replaces a complete file body in the service tree.
	WriteFile *WriteFileRequest `protobuf:"bytes,27,opt,name=write_file,json=writeFile,proto3,oneof"`
}

type CodeResponse

type CodeResponse struct {

	// result selects exactly one supported result variant.
	//
	// 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 {
	// add_dependency returns the installed dependency version.
	AddDependency *AddDependencyResponse `protobuf:"bytes,17,opt,name=add_dependency,json=addDependency,proto3,oneof"`
}

type CodeResponse_ApplyEdit

type CodeResponse_ApplyEdit struct {
	// apply_edit returns edited content and the matching strategy used.
	ApplyEdit *ApplyEditResponse `protobuf:"bytes,14,opt,name=apply_edit,json=applyEdit,proto3,oneof"`
}

type CodeResponse_CreateFile

type CodeResponse_CreateFile struct {
	// create_file reports the result of file creation.
	CreateFile *CreateFileResponse `protobuf:"bytes,28,opt,name=create_file,json=createFile,proto3,oneof"`
}

type CodeResponse_DeleteFile

type CodeResponse_DeleteFile struct {
	// delete_file reports the result of file deletion.
	DeleteFile *DeleteFileResponse `protobuf:"bytes,29,opt,name=delete_file,json=deleteFile,proto3,oneof"`
}

type CodeResponse_FindReferences

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

type CodeResponse_Fix

type CodeResponse_Fix struct {
	// fix returns formatted content and fixer actions.
	Fix *FixResponse `protobuf:"bytes,13,opt,name=fix,proto3,oneof"`
}

type CodeResponse_GetCallGraph

type CodeResponse_GetCallGraph struct {
	// get_call_graph returns call and implementation edges.
	GetCallGraph *GetCallGraphResponse `protobuf:"bytes,25,opt,name=get_call_graph,json=getCallGraph,proto3,oneof"`
}

type CodeResponse_GetCompletions

type CodeResponse_GetCompletions struct {
	// get_completions returns language-server completion items.
	GetCompletions *GetCompletionsResponse `protobuf:"bytes,20,opt,name=get_completions,json=getCompletions,proto3,oneof"`
}

type CodeResponse_GetDiagnostics

type CodeResponse_GetDiagnostics struct {
	// get_diagnostics returns compiler or linter diagnostics.
	GetDiagnostics *GetDiagnosticsResponse `protobuf:"bytes,8,opt,name=get_diagnostics,json=getDiagnostics,proto3,oneof"`
}

type CodeResponse_GetHoverInfo

type CodeResponse_GetHoverInfo struct {
	// get_hover_info returns hover documentation and type information.
	GetHoverInfo *GetHoverInfoResponse `protobuf:"bytes,12,opt,name=get_hover_info,json=getHoverInfo,proto3,oneof"`
}

type CodeResponse_GetProjectInfo

type CodeResponse_GetProjectInfo struct {
	// get_project_info returns package, dependency, and file-hash metadata.
	GetProjectInfo *GetProjectInfoResponse `protobuf:"bytes,19,opt,name=get_project_info,json=getProjectInfo,proto3,oneof"`
}

type CodeResponse_GitBlame

type CodeResponse_GitBlame struct {
	// git_blame returns per-line commit attribution.
	GitBlame *GitBlameResponse `protobuf:"bytes,35,opt,name=git_blame,json=gitBlame,proto3,oneof"`
}

type CodeResponse_GitDiff

type CodeResponse_GitDiff struct {
	// git_diff returns unified diff text and changed-file stats.
	GitDiff *GitDiffResponse `protobuf:"bytes,36,opt,name=git_diff,json=gitDiff,proto3,oneof"`
}

type CodeResponse_GitLog

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

type CodeResponse_GitShow

type CodeResponse_GitShow struct {
	// git_show returns file content from a git ref.
	GitShow *GitShowResponse `protobuf:"bytes,34,opt,name=git_show,json=gitShow,proto3,oneof"`
}

type CodeResponse_GoToDefinition

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

type CodeResponse_ListDependencies

type CodeResponse_ListDependencies struct {
	// list_dependencies returns package manager dependencies.
	ListDependencies *ListDependenciesResponse `protobuf:"bytes,16,opt,name=list_dependencies,json=listDependencies,proto3,oneof"`
}

type CodeResponse_ListFiles

type CodeResponse_ListFiles struct {
	// list_files returns file metadata under the requested path.
	ListFiles *ListFilesResponse `protobuf:"bytes,31,opt,name=list_files,json=listFiles,proto3,oneof"`
}

type CodeResponse_ListSymbols

type CodeResponse_ListSymbols struct {
	// list_symbols returns symbols discovered by language analysis.
	ListSymbols *ListSymbolsResponse `protobuf:"bytes,7,opt,name=list_symbols,json=listSymbols,proto3,oneof"`
}

type CodeResponse_MoveFile

type CodeResponse_MoveFile struct {
	// move_file reports the result of moving a file and rewriting imports.
	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 {
	// remove_dependency reports dependency removal status.
	RemoveDependency *RemoveDependencyResponse `protobuf:"bytes,18,opt,name=remove_dependency,json=removeDependency,proto3,oneof"`
}

type CodeResponse_RenameSymbol

type CodeResponse_RenameSymbol struct {
	// rename_symbol returns edits applied by a language-aware rename.
	RenameSymbol *RenameSymbolResponse `protobuf:"bytes,11,opt,name=rename_symbol,json=renameSymbol,proto3,oneof"`
}
type CodeResponse_Search struct {
	// search returns matching lines and truncation metadata.
	Search *SearchResponse `protobuf:"bytes,32,opt,name=search,proto3,oneof"`
}

type CodeResponse_ShellExec

type CodeResponse_ShellExec struct {
	// shell_exec returns process exit status and captured streams.
	ShellExec *ShellExecResponse `protobuf:"bytes,37,opt,name=shell_exec,json=shellExec,proto3,oneof"`
}

type CodeResponse_WriteFile

type CodeResponse_WriteFile struct {
	// write_file reports the result of a file replacement.
	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 directly exposes symbol listing for older CLI callers.
	ListSymbols(context.Context, *ListSymbolsRequest) (*ListSymbolsResponse, error)
	// GetDiagnostics directly exposes language diagnostics for older CLI callers.
	GetDiagnostics(context.Context, *GetDiagnosticsRequest) (*GetDiagnosticsResponse, error)
	// GoToDefinition directly exposes definition lookup for older CLI callers.
	GoToDefinition(context.Context, *GoToDefinitionRequest) (*GoToDefinitionResponse, error)
	// FindReferences directly exposes reference lookup for older CLI callers.
	FindReferences(context.Context, *FindReferencesRequest) (*FindReferencesResponse, error)
	// GetHoverInfo directly exposes hover information for older CLI callers.
	GetHoverInfo(context.Context, *GetHoverInfoRequest) (*GetHoverInfoResponse, error)
	// ApplyEdit directly exposes smart edits for older CLI callers.
	ApplyEdit(context.Context, *ApplyEditRequest) (*ApplyEditResponse, error)
	// GetCallGraph directly exposes call graph analysis for older CLI callers.
	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.

Code exposes language-aware analysis and editing operations backed by a service agent.

type CompletionItem

type CompletionItem struct {

	// label is the text shown to the user for this suggestion.
	Label string `protobuf:"bytes,1,opt,name=label,proto3" json:"label,omitempty"` // the text to display and insert
	// kind classifies the completion item using LSP-style categories.
	Kind CompletionKind `protobuf:"varint,2,opt,name=kind,proto3,enum=codefly.services.code.v0.CompletionKind" json:"kind,omitempty"`
	// detail is a short description such as a type signature.
	Detail string `protobuf:"bytes,3,opt,name=detail,proto3" json:"detail,omitempty"` // short description (e.g. type signature)
	// documentation is the doc comment or hover text supplied by language tooling.
	Documentation string `protobuf:"bytes,4,opt,name=documentation,proto3" json:"documentation,omitempty"` // longer documentation (may be markdown)
	// insert_text is inserted when it differs from label.
	InsertText string `protobuf:"bytes,5,opt,name=insert_text,json=insertText,proto3" json:"insert_text,omitempty"` // text to insert (if different from label)
	// sort_text controls client-side ordering when provided by the analyzer.
	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 (
	// COMPLETION_KIND_UNKNOWN is the default value when completion kind is not specified.
	CompletionKind_COMPLETION_KIND_UNKNOWN CompletionKind = 0
	// COMPLETION_KIND_TEXT represents a text completion item.
	CompletionKind_COMPLETION_KIND_TEXT CompletionKind = 1
	// COMPLETION_KIND_METHOD represents a method completion item.
	CompletionKind_COMPLETION_KIND_METHOD CompletionKind = 2
	// COMPLETION_KIND_FUNCTION represents a function completion item.
	CompletionKind_COMPLETION_KIND_FUNCTION CompletionKind = 3
	// COMPLETION_KIND_CONSTRUCTOR represents a constructor completion item.
	CompletionKind_COMPLETION_KIND_CONSTRUCTOR CompletionKind = 4
	// COMPLETION_KIND_FIELD represents a field completion item.
	CompletionKind_COMPLETION_KIND_FIELD CompletionKind = 5
	// COMPLETION_KIND_VARIABLE represents a variable completion item.
	CompletionKind_COMPLETION_KIND_VARIABLE CompletionKind = 6
	// COMPLETION_KIND_CLASS represents a class completion item.
	CompletionKind_COMPLETION_KIND_CLASS CompletionKind = 7
	// COMPLETION_KIND_INTERFACE represents an interface completion item.
	CompletionKind_COMPLETION_KIND_INTERFACE CompletionKind = 8
	// COMPLETION_KIND_MODULE represents a module completion item.
	CompletionKind_COMPLETION_KIND_MODULE CompletionKind = 9
	// COMPLETION_KIND_PROPERTY represents a property completion item.
	CompletionKind_COMPLETION_KIND_PROPERTY CompletionKind = 10
	// COMPLETION_KIND_UNIT represents a unit completion item.
	CompletionKind_COMPLETION_KIND_UNIT CompletionKind = 11
	// COMPLETION_KIND_VALUE represents a value completion item.
	CompletionKind_COMPLETION_KIND_VALUE CompletionKind = 12
	// COMPLETION_KIND_ENUM represents an enum completion item.
	CompletionKind_COMPLETION_KIND_ENUM CompletionKind = 13
	// COMPLETION_KIND_KEYWORD represents a keyword completion item.
	CompletionKind_COMPLETION_KIND_KEYWORD CompletionKind = 14
	// COMPLETION_KIND_SNIPPET represents a snippet completion item.
	CompletionKind_COMPLETION_KIND_SNIPPET CompletionKind = 15
	// COMPLETION_KIND_COLOR represents a color completion item.
	CompletionKind_COMPLETION_KIND_COLOR CompletionKind = 16
	// COMPLETION_KIND_FILE represents a file completion item.
	CompletionKind_COMPLETION_KIND_FILE CompletionKind = 17
	// COMPLETION_KIND_REFERENCE represents a reference completion item.
	CompletionKind_COMPLETION_KIND_REFERENCE CompletionKind = 18
	// COMPLETION_KIND_FOLDER represents a folder completion item.
	CompletionKind_COMPLETION_KIND_FOLDER CompletionKind = 19
	// COMPLETION_KIND_ENUM_MEMBER represents an enum member completion item.
	CompletionKind_COMPLETION_KIND_ENUM_MEMBER CompletionKind = 20
	// COMPLETION_KIND_CONSTANT represents a constant completion item.
	CompletionKind_COMPLETION_KIND_CONSTANT CompletionKind = 21
	// COMPLETION_KIND_STRUCT represents a struct completion item.
	CompletionKind_COMPLETION_KIND_STRUCT CompletionKind = 22
	// COMPLETION_KIND_EVENT represents an event completion item.
	CompletionKind_COMPLETION_KIND_EVENT CompletionKind = 23
	// COMPLETION_KIND_OPERATOR represents an operator completion item.
	CompletionKind_COMPLETION_KIND_OPERATOR CompletionKind = 24
	// COMPLETION_KIND_TYPE_PARAMETER represents a type parameter completion item.
	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 is a workspace- or service-relative filesystem path.
	Path string `protobuf:"bytes,1,opt,name=path,proto3" json:"path,omitempty"` // relative path within the service
	// content is the initial file body to write.
	Content string `protobuf:"bytes,2,opt,name=content,proto3" json:"content,omitempty"`
	// overwrite permits replacing an existing file when true.
	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 is true when the requested operation completed successfully.
	Success bool `protobuf:"varint,1,opt,name=success,proto3" json:"success,omitempty"`
	// error explains why the operation failed; empty means success at this layer.
	Error string `protobuf:"bytes,2,opt,name=error,proto3" json:"error,omitempty"`
	// contains filtered or unexported fields
}

CreateFileResponse reports whether the file was created.

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 is a workspace- or service-relative filesystem path.
	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 is true when the requested operation completed successfully.
	Success bool `protobuf:"varint,1,opt,name=success,proto3" json:"success,omitempty"`
	// error explains why the operation failed; empty means success at this layer.
	Error string `protobuf:"bytes,2,opt,name=error,proto3" json:"error,omitempty"`
	// contains filtered or unexported fields
}

DeleteFileResponse reports whether the file was removed.

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 is the package, module, or dependency identifier.
	Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` // e.g. "github.com/gin-gonic/gin", "requests"
	// version is the semantic or service-specific version for this resource.
	Version string `protobuf:"bytes,2,opt,name=version,proto3" json:"version,omitempty"` // e.g. "v1.9.1", "2.31.0"
	// direct is true when the project explicitly depends on this package.
	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 is a workspace- or service-relative source file path.
	File string `protobuf:"bytes,1,opt,name=file,proto3" json:"file,omitempty"` // relative path
	// line is the 1-based source line number.
	Line int32 `protobuf:"varint,2,opt,name=line,proto3" json:"line,omitempty"` // 1-based line number
	// column is the 1-based source column number when known.
	Column int32 `protobuf:"varint,3,opt,name=column,proto3" json:"column,omitempty"` // 1-based column number
	// end_line is the 1-based ending source line for a range.
	EndLine int32 `protobuf:"varint,4,opt,name=end_line,json=endLine,proto3" json:"end_line,omitempty"`
	// end_column is the 1-based ending source column for a range.
	EndColumn int32 `protobuf:"varint,5,opt,name=end_column,json=endColumn,proto3" json:"end_column,omitempty"`
	// message is the compiler, linter, or language-server diagnostic text.
	Message string `protobuf:"bytes,6,opt,name=message,proto3" json:"message,omitempty"`
	// severity is the diagnostic level such as error, warning, information, or hint.
	Severity DiagnosticSeverity `protobuf:"varint,7,opt,name=severity,proto3,enum=codefly.services.code.v0.DiagnosticSeverity" json:"severity,omitempty"`
	// source identifies the compiler, linter, language server, or tool that produced the item.
	Source string `protobuf:"bytes,8,opt,name=source,proto3" json:"source,omitempty"` // e.g. "gopls", "pylsp", "typescript"
	// code is the diagnostic or rule identifier from the producing tool.
	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 (
	// DIAGNOSTIC_SEVERITY_UNKNOWN is the default value when diagnostic severity is not specified.
	DiagnosticSeverity_DIAGNOSTIC_SEVERITY_UNKNOWN DiagnosticSeverity = 0
	// DIAGNOSTIC_SEVERITY_ERROR reports an error diagnostic.
	DiagnosticSeverity_DIAGNOSTIC_SEVERITY_ERROR DiagnosticSeverity = 1
	// DIAGNOSTIC_SEVERITY_WARNING reports a warning diagnostic.
	DiagnosticSeverity_DIAGNOSTIC_SEVERITY_WARNING DiagnosticSeverity = 2
	// DIAGNOSTIC_SEVERITY_INFORMATION reports an informational diagnostic.
	DiagnosticSeverity_DIAGNOSTIC_SEVERITY_INFORMATION DiagnosticSeverity = 3
	// DIAGNOSTIC_SEVERITY_HINT reports a hint diagnostic.
	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 is a workspace- or service-relative filesystem path.
	Path string `protobuf:"bytes,1,opt,name=path,proto3" json:"path,omitempty"` // relative path within the service
	// size_bytes is the file size in bytes.
	SizeBytes int64 `protobuf:"varint,2,opt,name=size_bytes,json=sizeBytes,proto3" json:"size_bytes,omitempty"`
	// is_directory is true when the path is a directory.
	IsDirectory bool `protobuf:"varint,3,opt,name=is_directory,json=isDirectory,proto3" json:"is_directory,omitempty"`
	// contains filtered or unexported fields
}

FileInfo describes a file or directory returned by ListFiles.

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 is a workspace- or service-relative source file path.
	File string `protobuf:"bytes,1,opt,name=file,proto3" json:"file,omitempty"` // relative path
	// line is the 1-based source line number.
	Line int32 `protobuf:"varint,2,opt,name=line,proto3" json:"line,omitempty"` // 1-based
	// column is the 1-based source column number when known.
	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 are usage sites returned by the language server.
	Locations []*Location `protobuf:"bytes,1,rep,name=locations,proto3" json:"locations,omitempty"`
	// contains filtered or unexported fields
}

FindReferencesResponse returns source locations that reference the selected symbol.

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 is a workspace- or service-relative source file path.
	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 is true when the requested operation completed successfully.
	Success bool `protobuf:"varint,1,opt,name=success,proto3" json:"success,omitempty"`
	// content is the fixed file content; it may be empty when no rewrite was needed.
	Content string `protobuf:"bytes,2,opt,name=content,proto3" json:"content,omitempty"` // the fixed file content (empty if unchanged)
	// error explains why the operation failed; empty means success at this layer.
	Error string `protobuf:"bytes,3,opt,name=error,proto3" json:"error,omitempty"` // non-fatal: fixer not available, etc.
	// actions are native formatter, fixer, or lifecycle actions performed by the agent.
	Actions []string `protobuf:"bytes,4,rep,name=actions,proto3" json:"actions,omitempty"` // what was done: "goimports", "gofmt", etc.
	// contains filtered or unexported fields
}

FixResponse returns the formatted content and the fixer actions that ran.

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 selects the call graph algorithm when the language backend supports choices.
	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 are function-to-function call edges discovered by whole-program analysis.
	Calls []*CallEdge `protobuf:"bytes,1,rep,name=calls,proto3" json:"calls,omitempty"`
	// implements are type-to-interface relationships discovered by analysis.
	Implements []*ImplementsEdge `protobuf:"bytes,2,rep,name=implements,proto3" json:"implements,omitempty"`
	// functions_analyzed is the number of functions included in analysis.
	FunctionsAnalyzed int32 `protobuf:"varint,3,opt,name=functions_analyzed,json=functionsAnalyzed,proto3" json:"functions_analyzed,omitempty"`
	// algorithm_used reports the actual analysis algorithm that ran.
	AlgorithmUsed string `protobuf:"bytes,4,opt,name=algorithm_used,json=algorithmUsed,proto3" json:"algorithm_used,omitempty"`
	// error explains why the operation failed; empty means success at this layer.
	Error string `protobuf:"bytes,5,opt,name=error,proto3" json:"error,omitempty"`
	// contains filtered or unexported fields
}

GetCallGraphResponse returns call edges and interface implementation edges.

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 is a workspace- or service-relative source file path.
	File string `protobuf:"bytes,1,opt,name=file,proto3" json:"file,omitempty"` // relative path
	// line is the 1-based source line number.
	Line int32 `protobuf:"varint,2,opt,name=line,proto3" json:"line,omitempty"` // 1-based
	// column is the 1-based source column number when known.
	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 are completion suggestions from the language server.
	Items []*CompletionItem `protobuf:"bytes,1,rep,name=items,proto3" json:"items,omitempty"`
	// is_incomplete means further typing may change or refine the result set.
	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
}

GetCompletionsResponse returns suggestions for the requested source position.

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 is a workspace- or service-relative source file path.
	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 are compiler, linter, or language-server findings.
	Diagnostics []*Diagnostic `protobuf:"bytes,1,rep,name=diagnostics,proto3" json:"diagnostics,omitempty"`
	// contains filtered or unexported fields
}

GetDiagnosticsResponse returns compiler, linter, or language-server diagnostics.

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 is a workspace- or service-relative source file path.
	File string `protobuf:"bytes,1,opt,name=file,proto3" json:"file,omitempty"` // relative path
	// line is the 1-based source line number.
	Line int32 `protobuf:"varint,2,opt,name=line,proto3" json:"line,omitempty"` // 1-based
	// column is the 1-based source column number when known.
	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 is the hover content, often markdown from the language server.
	Content string `protobuf:"bytes,1,opt,name=content,proto3" json:"content,omitempty"` // the hover content (may contain markdown)
	// language is the implementation language detected for this service or project.
	Language string `protobuf:"bytes,2,opt,name=language,proto3" json:"language,omitempty"` // language hint for code blocks (e.g. "go")
	// range is the source range covered by hover or diagnostic information.
	Range *Location `protobuf:"bytes,3,opt,name=range,proto3" json:"range,omitempty"` // the range the hover applies to
	// contains filtered or unexported fields
}

GetHoverInfoResponse returns hover text and the source range it describes.

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 is the Codefly module name that groups services.
	Module string `protobuf:"bytes,1,opt,name=module,proto3" json:"module,omitempty"` // e.g. "github.com/codefly-dev/mind"
	// language is the implementation language detected for this service or project.
	Language string `protobuf:"bytes,2,opt,name=language,proto3" json:"language,omitempty"` // e.g. "go"
	// language_version is the detected compiler or runtime version.
	LanguageVersion string `protobuf:"bytes,3,opt,name=language_version,json=languageVersion,proto3" json:"language_version,omitempty"` // e.g. "1.25"
	// packages describes the package or module layout within the service.
	Packages []*PackageInfo `protobuf:"bytes,4,rep,name=packages,proto3" json:"packages,omitempty"` // package structure
	// dependencies are packages discovered from manifests or lock files.
	Dependencies []*Dependency `protobuf:"bytes,5,rep,name=dependencies,proto3" json:"dependencies,omitempty"` // reuse existing Dependency message
	// file_hashes maps source paths to content hashes for change detection.
	FileHashes map[string]string `` // path -> SHA-256 for change detection
	/* 165-byte string literal not displayed */
	// error explains why the operation failed; empty means success at this layer.
	Error string `protobuf:"bytes,7,opt,name=error,proto3" json:"error,omitempty"`
	// contains filtered or unexported fields
}

GetProjectInfoResponse returns language metadata useful for ingestion and planning.

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 is the commit SHA responsible for the line.
	Hash string `protobuf:"bytes,1,opt,name=hash,proto3" json:"hash,omitempty"` // commit SHA
	// author is the commit author identity.
	Author string `protobuf:"bytes,2,opt,name=author,proto3" json:"author,omitempty"`
	// date is the commit timestamp in ISO 8601 form.
	Date string `protobuf:"bytes,3,opt,name=date,proto3" json:"date,omitempty"` // ISO 8601
	// line is the 1-based source line number.
	Line int32 `protobuf:"varint,4,opt,name=line,proto3" json:"line,omitempty"` // 1-based line number
	// content is the source text on this line.
	Content string `protobuf:"bytes,5,opt,name=content,proto3" json:"content,omitempty"` // the line content
	// contains filtered or unexported fields
}

GitBlameLine attributes one source line to the commit that last changed it.

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 is a workspace- or service-relative filesystem path.
	Path string `protobuf:"bytes,1,opt,name=path,proto3" json:"path,omitempty"` // relative path within the service
	// start_line is the optional 1-based first line to inspect.
	StartLine int32 `protobuf:"varint,2,opt,name=start_line,json=startLine,proto3" json:"start_line,omitempty"` // optional: 1-based start line (0 = from beginning)
	// end_line is the optional 1-based final line to inspect.
	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 are blame records in source order.
	Lines []*GitBlameLine `protobuf:"bytes,1,rep,name=lines,proto3" json:"lines,omitempty"`
	// error explains why the operation failed; empty means success at this layer.
	Error string `protobuf:"bytes,2,opt,name=error,proto3" json:"error,omitempty"`
	// contains filtered or unexported fields
}

GitBlameResponse returns blame attribution for the requested line range.

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 is the full commit SHA.
	Hash string `protobuf:"bytes,1,opt,name=hash,proto3" json:"hash,omitempty"` // full SHA
	// short_hash is an abbreviated commit SHA for display.
	ShortHash string `protobuf:"bytes,2,opt,name=short_hash,json=shortHash,proto3" json:"short_hash,omitempty"` // abbreviated SHA
	// author is the commit author identity.
	Author string `protobuf:"bytes,3,opt,name=author,proto3" json:"author,omitempty"`
	// date is the commit timestamp in ISO 8601 form.
	Date string `protobuf:"bytes,4,opt,name=date,proto3" json:"date,omitempty"` // ISO 8601
	// message is the first line of the commit message.
	Message string `protobuf:"bytes,5,opt,name=message,proto3" json:"message,omitempty"` // first line of commit message
	// files_changed is the number of files modified by the operation.
	FilesChanged int32 `protobuf:"varint,6,opt,name=files_changed,json=filesChanged,proto3" json:"files_changed,omitempty"`
	// contains filtered or unexported fields
}

GitCommit summarizes one commit returned by GitLog.

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 is a workspace- or service-relative filesystem path.
	Path string `protobuf:"bytes,1,opt,name=path,proto3" json:"path,omitempty"`
	// additions is the number of added lines for this path.
	Additions int32 `protobuf:"varint,2,opt,name=additions,proto3" json:"additions,omitempty"`
	// deletions is the number of removed lines for this path.
	Deletions int32 `protobuf:"varint,3,opt,name=deletions,proto3" json:"deletions,omitempty"`
	// status is the git, lifecycle, diagnostic, or operation state for this item.
	Status string `protobuf:"bytes,4,opt,name=status,proto3" json:"status,omitempty"` // "added", "modified", "deleted", "renamed"
	// contains filtered or unexported fields
}

GitDiffFile summarizes changes for one path in a diff.

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 {

	// base_ref selects the older side of the diff, or the working tree base when empty.
	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
	// head_ref selects the newer side of the diff, or the working tree when empty.
	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 is a workspace- or service-relative filesystem path.
	Path string `protobuf:"bytes,3,opt,name=path,proto3" json:"path,omitempty"` // optional: restrict to a specific file or directory
	// stat_only omits unified diff text and returns only changed-file stats.
	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)
	// context_lines controls the unified diff context size.
	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 is the unified diff for the file or git change.
	Diff string `protobuf:"bytes,1,opt,name=diff,proto3" json:"diff,omitempty"` // unified diff text (empty if stat_only)
	// files are workspace- or service-relative file paths affected by this operation.
	Files []*GitDiffFile `protobuf:"bytes,2,rep,name=files,proto3" json:"files,omitempty"`
	// error explains why the operation failed; empty means success at this layer.
	Error string `protobuf:"bytes,3,opt,name=error,proto3" json:"error,omitempty"`
	// contains filtered or unexported fields
}

GitDiffResponse returns unified diff text and per-file change stats.

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 {

	// max_count limits how many commits are returned; zero selects the default.
	MaxCount int32 `protobuf:"varint,1,opt,name=max_count,json=maxCount,proto3" json:"max_count,omitempty"` // 0 = default (50)
	// since filters commits using a git-compatible date expression.
	Since string `protobuf:"bytes,2,opt,name=since,proto3" json:"since,omitempty"` // optional: ISO date or relative (e.g. "2 weeks ago")
	// path is a workspace- or service-relative filesystem path.
	Path string `protobuf:"bytes,3,opt,name=path,proto3" json:"path,omitempty"` // optional: restrict to commits touching this path
	// ref selects the branch, tag, or commit used as the history tip.
	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 are git history entries ordered newest first.
	Commits []*GitCommit `protobuf:"bytes,1,rep,name=commits,proto3" json:"commits,omitempty"`
	// error explains why the operation failed; empty means success at this layer.
	Error string `protobuf:"bytes,2,opt,name=error,proto3" json:"error,omitempty"`
	// contains filtered or unexported fields
}

GitLogResponse returns commit history for the requested ref and path filter.

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 is the git revision to read from.
	Ref string `protobuf:"bytes,1,opt,name=ref,proto3" json:"ref,omitempty"` // commit hash, branch, tag (e.g. "HEAD~5", "abc123")
	// path is a workspace- or service-relative filesystem path.
	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 is the file body at ref; it is empty when exists is false.
	Content string `protobuf:"bytes,1,opt,name=content,proto3" json:"content,omitempty"`
	// exists reports whether the path existed at the requested ref.
	Exists bool `protobuf:"varint,2,opt,name=exists,proto3" json:"exists,omitempty"` // false if the file didn't exist at that ref
	// error explains why the operation failed; empty means success at this layer.
	Error string `protobuf:"bytes,3,opt,name=error,proto3" json:"error,omitempty"`
	// contains filtered or unexported fields
}

GitShowResponse returns file content as it existed at the requested git ref.

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 is a workspace- or service-relative source file path.
	File string `protobuf:"bytes,1,opt,name=file,proto3" json:"file,omitempty"` // relative path
	// line is the 1-based source line number.
	Line int32 `protobuf:"varint,2,opt,name=line,proto3" json:"line,omitempty"` // 1-based
	// column is the 1-based source column number when known.
	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 are declaration locations returned by the language server.
	Locations []*Location `protobuf:"bytes,1,rep,name=locations,proto3" json:"locations,omitempty"`
	// contains filtered or unexported fields
}

GoToDefinitionResponse returns zero or more declaration locations for the symbol.

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 {

	// type_id is the qualified symbol name of the concrete type.
	TypeId string `protobuf:"bytes,1,opt,name=type_id,json=typeId,proto3" json:"type_id,omitempty"` // qualified name of the concrete type
	// interface_id is the qualified symbol name of the implemented interface.
	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
}

ListDependenciesRequest carries optional filters for listing dependencies.

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 are packages or services required by this resource.
	Dependencies []*Dependency `protobuf:"bytes,1,rep,name=dependencies,proto3" json:"dependencies,omitempty"`
	// error explains why the operation failed; empty means success at this layer.
	Error string `protobuf:"bytes,2,opt,name=error,proto3" json:"error,omitempty"`
	// contains filtered or unexported fields
}

ListDependenciesResponse returns dependencies discovered by the native package manager.

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 is a workspace- or service-relative filesystem path.
	Path string `protobuf:"bytes,1,opt,name=path,proto3" json:"path,omitempty"` // optional: subdirectory (empty = root)
	// extensions restrict file results to the listed suffixes.
	Extensions []string `protobuf:"bytes,2,rep,name=extensions,proto3" json:"extensions,omitempty"` // optional: filter by extension (e.g. ".go", ".py")
	// recursive includes nested directories when true.
	Recursive bool `protobuf:"varint,3,opt,name=recursive,proto3" json:"recursive,omitempty"` // if true, list recursively
	// contains filtered or unexported fields
}

ListFilesRequest carries optional filters for listing files.

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 are files or directories under the requested path.
	Files []*FileInfo `protobuf:"bytes,1,rep,name=files,proto3" json:"files,omitempty"`
	// contains filtered or unexported fields
}

ListFilesResponse contains file metadata for paths matching the request filters.

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
}

ListSymbolsRequest carries optional filters for listing symbols.

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 reports the lifecycle or operation status.
	Status *ListSymbolsStatus `protobuf:"bytes,1,opt,name=status,proto3" json:"status,omitempty"`
	// symbols are code entities returned by language analysis.
	Symbols []*Symbol `protobuf:"bytes,2,rep,name=symbols,proto3" json:"symbols,omitempty"`
	// contains filtered or unexported fields
}

ListSymbolsResponse returns language symbols discovered for the requested scope.

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 is the machine-readable lifecycle state.
	State ListSymbolsStatus_Status `protobuf:"varint,1,opt,name=state,proto3,enum=codefly.services.code.v0.ListSymbolsStatus_Status" json:"state,omitempty"`
	// message is a human-readable status or diagnostic summary.
	Message string `protobuf:"bytes,2,opt,name=message,proto3" json:"message,omitempty"`
	// contains filtered or unexported fields
}

ListSymbolsStatus reports the state and message for the list symbols lifecycle phase.

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

Status enumerates lifecycle status values.

const (
	// UNKNOWN is the default value when status is not specified.
	ListSymbolsStatus_UNKNOWN ListSymbolsStatus_Status = 0
	// SUCCESS means the operation completed successfully.
	ListSymbolsStatus_SUCCESS ListSymbolsStatus_Status = 1
	// ERROR means the phase failed and message carries diagnostics.
	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 is a workspace- or service-relative source file path.
	File string `protobuf:"bytes,1,opt,name=file,proto3" json:"file,omitempty"` // Relative path within the service, e.g. "pkg/handlers/health.go"
	// line is the 1-based source line number.
	Line int32 `protobuf:"varint,2,opt,name=line,proto3" json:"line,omitempty"` // 1-based line number
	// column is the 1-based source column number when known.
	Column int32 `protobuf:"varint,3,opt,name=column,proto3" json:"column,omitempty"` // 1-based column number
	// end_line is the 1-based ending source line for a range.
	EndLine int32 `protobuf:"varint,4,opt,name=end_line,json=endLine,proto3" json:"end_line,omitempty"`
	// end_column is the 1-based ending source column for a range.
	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 {

	// old_path is the current service-relative file path.
	OldPath string `protobuf:"bytes,1,opt,name=old_path,json=oldPath,proto3" json:"old_path,omitempty"` // current relative path
	// new_path is the target service-relative file path.
	NewPath string `protobuf:"bytes,2,opt,name=new_path,json=newPath,proto3" json:"new_path,omitempty"` // target relative path
	// update_imports asks the agent to rewrite imports that referenced old_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 is true when the requested operation completed successfully.
	Success bool `protobuf:"varint,1,opt,name=success,proto3" json:"success,omitempty"`
	// error explains why the operation failed; empty means success at this layer.
	Error string `protobuf:"bytes,2,opt,name=error,proto3" json:"error,omitempty"`
	// updated_files lists files whose imports or references were rewritten.
	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
}

MoveFileResponse reports the move and any files rewritten because imports changed.

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 is the language-level package or module name.
	Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` // e.g. "github.com/codefly-dev/mind/pkg/run"
	// relative_path is the package directory relative to the service root.
	RelativePath string `protobuf:"bytes,2,opt,name=relative_path,json=relativePath,proto3" json:"relative_path,omitempty"` // e.g. "pkg/run"
	// files are source files that belong to the package.
	Files []string `protobuf:"bytes,3,rep,name=files,proto3" json:"files,omitempty"` // Go files in the package
	// imports are direct imports used by files in the package.
	Imports []string `protobuf:"bytes,4,rep,name=imports,proto3" json:"imports,omitempty"` // direct imports
	// doc is package-level documentation extracted from source comments.
	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 is a workspace- or service-relative filesystem path.
	Path string `protobuf:"bytes,1,opt,name=path,proto3" json:"path,omitempty"` // relative path within the service
	// contains filtered or unexported fields
}

ReadFileRequest identifies a source file to read from the service tree.

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 is the full file body; it is empty when exists is false.
	Content string `protobuf:"bytes,1,opt,name=content,proto3" json:"content,omitempty"`
	// exists reports whether the requested file or resource was found.
	Exists bool `protobuf:"varint,2,opt,name=exists,proto3" json:"exists,omitempty"`
	// contains filtered or unexported fields
}

ReadFileResponse returns the file contents when the path exists.

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 {

	// package_name is the package or dependency identifier used by the native manager.
	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 is true when the requested operation completed successfully.
	Success bool `protobuf:"varint,1,opt,name=success,proto3" json:"success,omitempty"`
	// error explains why the operation failed; empty means success at this layer.
	Error string `protobuf:"bytes,2,opt,name=error,proto3" json:"error,omitempty"`
	// contains filtered or unexported fields
}

RemoveDependencyResponse reports whether the package manager removed the dependency.

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 is a workspace- or service-relative source file path.
	File string `protobuf:"bytes,1,opt,name=file,proto3" json:"file,omitempty"` // relative path
	// line is the 1-based source line number.
	Line int32 `protobuf:"varint,2,opt,name=line,proto3" json:"line,omitempty"` // 1-based
	// column is the 1-based source column number when known.
	Column int32 `protobuf:"varint,3,opt,name=column,proto3" json:"column,omitempty"` // 1-based
	// new_name is the replacement symbol name requested by the caller.
	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 is true when the requested operation completed successfully.
	Success bool `protobuf:"varint,1,opt,name=success,proto3" json:"success,omitempty"`
	// error explains why the operation failed; empty means success at this layer.
	Error string `protobuf:"bytes,2,opt,name=error,proto3" json:"error,omitempty"`
	// edits contains the text replacements produced by the language server.
	Edits []*TextEdit `protobuf:"bytes,3,rep,name=edits,proto3" json:"edits,omitempty"` // the edits that were applied
	// files lists files modified by the rename.
	Files []string `protobuf:"bytes,4,rep,name=files,proto3" json:"files,omitempty"` // files that were modified
	// contains filtered or unexported fields
}

RenameSymbolResponse reports the language-server edits applied by the rename.

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 is a workspace- or service-relative source file path.
	File string `protobuf:"bytes,1,opt,name=file,proto3" json:"file,omitempty"` // relative path within the service
	// line is the 1-based source line number.
	Line int32 `protobuf:"varint,2,opt,name=line,proto3" json:"line,omitempty"` // 1-based line number
	// text is the matched line, usually trimmed by the search implementation.
	Text string `protobuf:"bytes,3,opt,name=text,proto3" json:"text,omitempty"` // the matching line (trimmed)
	// context_before contains lines immediately before the match.
	ContextBefore []string `protobuf:"bytes,4,rep,name=context_before,json=contextBefore,proto3" json:"context_before,omitempty"`
	// context_after contains lines immediately after the match.
	ContextAfter []string `protobuf:"bytes,5,rep,name=context_after,json=contextAfter,proto3" json:"context_after,omitempty"`
	// contains filtered or unexported fields
}

SearchMatch identifies one matching line and optional surrounding context.

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 is the search expression or test filter requested by the caller.
	Pattern string `protobuf:"bytes,1,opt,name=pattern,proto3" json:"pattern,omitempty"` // regex or literal pattern
	// literal treats pattern as plain text instead of a regular expression.
	Literal bool `protobuf:"varint,2,opt,name=literal,proto3" json:"literal,omitempty"` // if true, treat pattern as literal string (no regex)
	// case_insensitive makes matching ignore letter case.
	CaseInsensitive bool `protobuf:"varint,3,opt,name=case_insensitive,json=caseInsensitive,proto3" json:"case_insensitive,omitempty"`
	// path is a workspace- or service-relative filesystem path.
	Path string `protobuf:"bytes,4,opt,name=path,proto3" json:"path,omitempty"` // optional: restrict to subdirectory
	// extensions restrict file results to the listed suffixes.
	Extensions []string `protobuf:"bytes,5,rep,name=extensions,proto3" json:"extensions,omitempty"` // optional: filter by extension (e.g. ".go", ".py")
	// exclude contains glob patterns to skip during the search.
	Exclude []string `protobuf:"bytes,6,rep,name=exclude,proto3" json:"exclude,omitempty"` // optional: glob patterns to exclude
	// max_results caps returned matches; zero uses the gateway default.
	MaxResults int32 `protobuf:"varint,7,opt,name=max_results,json=maxResults,proto3" json:"max_results,omitempty"` // 0 = default (100)
	// context_lines is the number of neighboring lines returned around each match.
	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
}

SearchRequest searches service files using either regex or literal matching.

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 are the search hits returned by the gateway.
	Matches []*SearchMatch `protobuf:"bytes,1,rep,name=matches,proto3" json:"matches,omitempty"`
	// truncated is true when max_results stopped the search before all hits were returned.
	Truncated bool `protobuf:"varint,2,opt,name=truncated,proto3" json:"truncated,omitempty"` // true if max_results was hit
	// total_matches is the number of hits observed before truncation.
	TotalMatches int32 `protobuf:"varint,3,opt,name=total_matches,json=totalMatches,proto3" json:"total_matches,omitempty"`
	// contains filtered or unexported fields
}

SearchResponse returns matching source lines and truncation metadata.

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
}

ShellExecRequest asks the code agent to run a command inside its service sandbox.

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 {

	// exit_code is the process exit status returned by the operating system.
	ExitCode int32 `protobuf:"varint,1,opt,name=exit_code,json=exitCode,proto3" json:"exit_code,omitempty"`
	// stdout is the process standard output stream.
	Stdout string `protobuf:"bytes,2,opt,name=stdout,proto3" json:"stdout,omitempty"`
	// stderr is the process standard error stream.
	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
}

ShellExecResponse returns process exit status and captured streams.

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 is the symbol name as reported by the language analyzer.
	Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` // e.g. "HandleHealth"
	// kind classifies the language construct so callers can filter or render it.
	Kind SymbolKind `protobuf:"varint,2,opt,name=kind,proto3,enum=codefly.services.code.v0.SymbolKind" json:"kind,omitempty"`
	// location points to the declaration range for this symbol.
	Location *Location `protobuf:"bytes,3,opt,name=location,proto3" json:"location,omitempty"`
	// signature is the declaration text or callable shape for a symbol.
	Signature string `protobuf:"bytes,4,opt,name=signature,proto3" json:"signature,omitempty"` // e.g. "func HandleHealth(w http.ResponseWriter, r *http.Request)"
	// documentation is the doc comment or hover text supplied by language tooling.
	Documentation string `protobuf:"bytes,5,opt,name=documentation,proto3" json:"documentation,omitempty"` // Doc comment, if present
	// parent is the containing type, package, or symbol name when the analyzer provides one.
	Parent string `protobuf:"bytes,6,opt,name=parent,proto3" json:"parent,omitempty"` // Containing symbol name, e.g. "Server" for a method
	// children contains nested symbols such as struct fields or interface methods.
	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>"
	// body_hash is a normalized hash of a function or method body.
	BodyHash string `protobuf:"bytes,9,opt,name=body_hash,json=bodyHash,proto3" json:"body_hash,omitempty"` // sha256 of normalized function body
	// signature_hash is a normalized hash of a declaration signature.
	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 (
	// SYMBOL_KIND_UNKNOWN is the default value when symbol kind is not specified.
	SymbolKind_SYMBOL_KIND_UNKNOWN SymbolKind = 0
	// SYMBOL_KIND_FUNCTION represents a function symbol.
	SymbolKind_SYMBOL_KIND_FUNCTION SymbolKind = 1
	// SYMBOL_KIND_METHOD represents a method symbol.
	SymbolKind_SYMBOL_KIND_METHOD SymbolKind = 2
	// SYMBOL_KIND_STRUCT represents a struct symbol.
	SymbolKind_SYMBOL_KIND_STRUCT SymbolKind = 3
	// SYMBOL_KIND_INTERFACE represents an interface symbol.
	SymbolKind_SYMBOL_KIND_INTERFACE SymbolKind = 4
	// SYMBOL_KIND_CONSTANT represents a constant symbol.
	SymbolKind_SYMBOL_KIND_CONSTANT SymbolKind = 5
	// SYMBOL_KIND_VARIABLE represents a variable symbol.
	SymbolKind_SYMBOL_KIND_VARIABLE SymbolKind = 6
	// SYMBOL_KIND_TYPE_ALIAS represents a type alias symbol.
	SymbolKind_SYMBOL_KIND_TYPE_ALIAS SymbolKind = 7
	// SYMBOL_KIND_PACKAGE represents a package symbol.
	SymbolKind_SYMBOL_KIND_PACKAGE SymbolKind = 8
	// SYMBOL_KIND_FIELD represents a field symbol.
	SymbolKind_SYMBOL_KIND_FIELD SymbolKind = 9
	// SYMBOL_KIND_ENUM represents an enum symbol.
	SymbolKind_SYMBOL_KIND_ENUM SymbolKind = 10
	// SYMBOL_KIND_CLASS represents a class symbol.
	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 is a workspace- or service-relative source file path.
	File string `protobuf:"bytes,1,opt,name=file,proto3" json:"file,omitempty"` // relative path
	// start_line is the 1-based starting line of the replacement range.
	StartLine int32 `protobuf:"varint,2,opt,name=start_line,json=startLine,proto3" json:"start_line,omitempty"` // 1-based
	// start_column is the 1-based starting column for an edit range.
	StartColumn int32 `protobuf:"varint,3,opt,name=start_column,json=startColumn,proto3" json:"start_column,omitempty"`
	// end_line is the 1-based ending source line for a range.
	EndLine int32 `protobuf:"varint,4,opt,name=end_line,json=endLine,proto3" json:"end_line,omitempty"`
	// end_column is the 1-based ending source column for a range.
	EndColumn int32 `protobuf:"varint,5,opt,name=end_column,json=endColumn,proto3" json:"end_column,omitempty"`
	// new_text is the replacement text inserted by this edit.
	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 is a workspace- or service-relative filesystem path.
	Path string `protobuf:"bytes,1,opt,name=path,proto3" json:"path,omitempty"` // relative path within the service
	// content is the complete replacement body for the file.
	Content string `protobuf:"bytes,2,opt,name=content,proto3" json:"content,omitempty"`
	// contains filtered or unexported fields
}

WriteFileRequest writes a complete file body under the service tree.

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 is true when the requested operation completed successfully.
	Success bool `protobuf:"varint,1,opt,name=success,proto3" json:"success,omitempty"`
	// error explains why the operation failed; empty means success at this layer.
	Error string `protobuf:"bytes,2,opt,name=error,proto3" json:"error,omitempty"`
	// contains filtered or unexported fields
}

WriteFileResponse reports whether the file write succeeded.

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