v0

package
v0.2.11 Latest Latest
Warning

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

Go to latest
Published: Jun 27, 2026 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

View Source
const (
	Code_Execute_FullMethodName   = "/codefly.services.code.v0.Code/Execute"
	Code_ApplyEdit_FullMethodName = "/codefly.services.code.v0.Code/ApplyEdit"
	Code_ShellExec_FullMethodName = "/codefly.services.code.v0.Code/ShellExec"
)

Variables

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: "ApplyEdit",
			Handler:    _Code_ApplyEdit_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 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 and dispatches the operation.
	Execute(ctx context.Context, in *CodeRequest, opts ...grpc.CallOption) (*CodeResponse, error)
	// ApplyEdit directly exposes smart edits for older CLI callers.
	ApplyEdit(ctx context.Context, in *ApplyEditRequest, opts ...grpc.CallOption) (*ApplyEditResponse, 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_Fix
	//	*CodeRequest_ApplyEdit
	//	*CodeRequest_ListDependencies
	//	*CodeRequest_AddDependency
	//	*CodeRequest_RemoveDependency
	//	*CodeRequest_GetProjectInfo
	//	*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: ApplyEdit / ShellExec).

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) GetFix

func (x *CodeRequest) GetFix() *FixRequest

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) GetListDependencies

func (x *CodeRequest) GetListDependencies() *ListDependenciesRequest

func (*CodeRequest) GetListFiles

func (x *CodeRequest) GetListFiles() *ListFilesRequest

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) 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_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_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_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_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_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_Fix
	//	*CodeResponse_ApplyEdit
	//	*CodeResponse_ListDependencies
	//	*CodeResponse_AddDependency
	//	*CodeResponse_RemoveDependency
	//	*CodeResponse_GetProjectInfo
	//	*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) GetFix

func (x *CodeResponse) GetFix() *FixResponse

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) GetListDependencies

func (x *CodeResponse) GetListDependencies() *ListDependenciesResponse

func (*CodeResponse) GetListFiles

func (x *CodeResponse) GetListFiles() *ListFilesResponse

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) 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_Fix

type CodeResponse_Fix struct {
	// fix returns formatted content and fixer actions.
	Fix *FixResponse `protobuf:"bytes,13,opt,name=fix,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_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_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_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 and dispatches the operation.
	Execute(context.Context, *CodeRequest) (*CodeResponse, error)
	// ApplyEdit directly exposes smart edits for older CLI callers.
	ApplyEdit(context.Context, *ApplyEditRequest) (*ApplyEditResponse, 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 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 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 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 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 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 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 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 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) 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

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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