Documentation
¶
Index ¶
- Constants
- Variables
- func FileReadMetadata(worktree protocol.WorktreeID, revisions map[string]string) *map[string]json.RawMessage
- func ManagedWorktreePath(projectRoot string, id protocol.WorktreeID) string
- func VerifyWorktreeMembership(ctx context.Context, root, path string) error
- func WorkspaceDirectory(path string) (string, error)
- type AgentInvocation
- type Assembly
- type BuiltInSkill
- type CatalogSpec
- type CodeIndexServiceProvider
- type ConnectionToolConfig
- type DatabaseExecutor
- type DatabaseOperation
- type DatabaseServiceProvider
- type DefaultPlugin
- type GitCommandResult
- type GitOptions
- type GitRunner
- type Host
- type Module
- type Node
- type Options
- type ProjectSourcePreparer
- type ProjectWorktree
- type PromptPart
- type RepositoryWatch
- type RepositoryWatchFilter
- type SSHFactory
- type SSHService
- type SSHServiceOptions
- type SSHServiceProvider
- type SkillProvider
- type TerminalFactory
- type TerminalLaunch
- type TerminalService
- type TerminalServiceProvider
- type Tool
- type ToolMeta
- type ToolRequest
- type ToolResult
- type ToolSpec
- type WorkspaceBinder
- type WorkspaceBindings
- type WorkspaceCommand
- type WorkspaceCommandScope
- type WorkspaceFactory
- type WorkspaceLock
- type WorkspaceOptions
- type WorkspaceRuntime
- type WorkspaceServiceProvider
- type WorkspaceServices
- type WorkspaceToolConfig
Constants ¶
View Source
const ( WorkspaceLockEffect = moduleapi.WorkspaceLockEffect WorkspaceLockLocal = moduleapi.WorkspaceLockLocal WorkspaceLockChange = moduleapi.WorkspaceLockChange )
Variables ¶
View Source
var NewTerminalService = terminal.New
View Source
var OpenSSHTerminal = terminal.OpenSSH
View Source
var ValidateTerminalViewport = terminal.ValidateViewport
Functions ¶
func FileReadMetadata ¶
func FileReadMetadata(worktree protocol.WorktreeID, revisions map[string]string) *map[string]json.RawMessage
FileReadMetadata records the revisions of files whose source a native tool returned. Later edits can reuse those reads in the same worktree.
func ManagedWorktreePath ¶
func ManagedWorktreePath(projectRoot string, id protocol.WorktreeID) string
func WorkspaceDirectory ¶
Types ¶
type AgentInvocation ¶
type AgentInvocation = store.AgentInvocation
type Assembly ¶
func HarnessAssembly ¶
func HarnessAssembly() Assembly
type BuiltInSkill ¶
type BuiltInSkill = moduleapi.BuiltInSkill
func LoadBuiltInSkill ¶
func LoadBuiltInSkill(tree fs.FS, pkg, name string) (BuiltInSkill, error)
LoadBuiltInSkill parses the skill document in a native module's embedded tree.
type CatalogSpec ¶
type CatalogSpec = moduleapi.CatalogSpec
func LoadCatalog ¶
func LoadCatalog(raw []byte) (CatalogSpec, error)
type CodeIndexServiceProvider ¶
type CodeIndexServiceProvider = moduleapi.CodeIndexServiceProvider
type ConnectionToolConfig ¶
type ConnectionToolConfig = moduleapi.ConnectionToolConfig
type DatabaseExecutor ¶
type DatabaseExecutor = moduleapi.DatabaseExecutor
type DatabaseOperation ¶
type DatabaseOperation = store.DatabaseOperation
type DatabaseServiceProvider ¶
type DatabaseServiceProvider = moduleapi.DatabaseServiceProvider
type DefaultPlugin ¶
type DefaultPlugin = plugins.DefaultPackage
type GitCommandResult ¶
type GitCommandResult = moduleapi.GitCommandResult
type GitOptions ¶
type GitOptions = moduleapi.GitOptions
type ProjectSourcePreparer ¶
type ProjectSourcePreparer = moduleapi.ProjectSourcePreparer
type ProjectWorktree ¶
type ProjectWorktree = store.ProjectWorktree
type PromptPart ¶
type RepositoryWatch ¶
type RepositoryWatch = moduleapi.RepositoryWatch
type RepositoryWatchFilter ¶
type RepositoryWatchFilter = moduleapi.RepositoryWatchFilter
type SSHFactory ¶
type SSHFactory = moduleapi.SSHFactory
type SSHService ¶
type SSHService = moduleapi.SSHService
type SSHServiceOptions ¶
type SSHServiceOptions = moduleapi.SSHServiceOptions
type SSHServiceProvider ¶
type SSHServiceProvider = moduleapi.SSHServiceProvider
type SkillProvider ¶
type SkillProvider = moduleapi.SkillProvider
type TerminalFactory ¶
type TerminalFactory = moduleapi.TerminalFactory
type TerminalLaunch ¶
type TerminalService ¶
type TerminalServiceProvider ¶
type TerminalServiceProvider = moduleapi.TerminalServiceProvider
type Tool ¶
func BuildCustomTool ¶
func BuildCustomTool(spec ToolSpec, instruction string, execute func(context.Context, ToolRequest) ToolResult) (Tool, error)
type ToolRequest ¶
type ToolRequest = canonical.ToolRequest
type ToolResult ¶
type ToolResult = engine.ToolResult
type WorkspaceBinder ¶
type WorkspaceBinder = moduleapi.WorkspaceBinder
type WorkspaceBindings ¶
type WorkspaceBindings = moduleapi.WorkspaceBindings
type WorkspaceCommand ¶
type WorkspaceCommand = moduleapi.WorkspaceCommand
type WorkspaceCommandScope ¶
type WorkspaceCommandScope = moduleapi.WorkspaceCommandScope
type WorkspaceFactory ¶
type WorkspaceFactory[T any] = moduleapi.WorkspaceFactory[T]
type WorkspaceLock ¶
type WorkspaceLock = moduleapi.WorkspaceLock
type WorkspaceOptions ¶
type WorkspaceOptions = moduleapi.WorkspaceOptions
type WorkspaceRuntime ¶
type WorkspaceRuntime = moduleapi.WorkspaceRuntime
type WorkspaceServiceProvider ¶
type WorkspaceServiceProvider = moduleapi.WorkspaceServiceProvider
type WorkspaceServices ¶
type WorkspaceServices = moduleapi.WorkspaceServices
type WorkspaceToolConfig ¶
type WorkspaceToolConfig = moduleapi.WorkspaceToolConfig
Click to show internal directories.
Click to hide internal directories.