Documentation
¶
Index ¶
- func InputSchema(name string) map[string]any
- func OutputSchema(name string) map[string]any
- type Result
- type Runtime
- func (r *Runtime) AgentDockContext(ctx context.Context) (Result, error)
- func (r *Runtime) Call(ctx context.Context, name string, args map[string]any) (Result, error)
- func (r *Runtime) Close() error
- func (r *Runtime) Config() config.Config
- func (r *Runtime) RuntimeCapabilities(ctx context.Context, refresh bool) (Result, error)
- func (r *Runtime) RuntimeMCPManage(ctx context.Context, args map[string]any) (Result, error)
- func (r *Runtime) RuntimeMCPServer(ctx context.Context, name string) (Result, error)
- func (r *Runtime) RuntimeMCPServers(ctx context.Context) (Result, error)
- func (r *Runtime) RuntimeSkill(skill string) (Result, error)
- func (r *Runtime) RuntimeSkillFile(skill, relativePath string) (Result, error)
- func (r *Runtime) RuntimeSkillFiles(skill string) (Result, error)
- func (r *Runtime) RuntimeSkills() (Result, error)
- func (r *Runtime) RuntimeStatus() Result
- func (r *Runtime) RuntimeTask(id string) (Result, error)
- func (r *Runtime) RuntimeTaskDelete(id string) (Result, error)
- func (r *Runtime) RuntimeTasks(status string, limit int) (Result, error)
- func (r *Runtime) ToolNames() []string
- func (r *Runtime) Workspace() *workspace.Workspace
- type SessionStore
- type ToolDefinition
- type ToolError
- type ToolHandler
- type ToolSpec
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func InputSchema ¶
func OutputSchema ¶
Types ¶
type Runtime ¶
type Runtime struct {
// contains filtered or unexported fields
}
func (*Runtime) AgentDockContext ¶
func (*Runtime) RuntimeCapabilities ¶
func (*Runtime) RuntimeMCPManage ¶
func (*Runtime) RuntimeMCPServer ¶
func (*Runtime) RuntimeMCPServers ¶
func (*Runtime) RuntimeSkillFile ¶ added in v0.5.3
RuntimeSkillFile 只读取当前激活 Skill 包内的普通 UTF-8 文本文件。 路径解析和符号链接校验都在 AgentDock 内完成,调用方无需挂载宿主机目录。
func (*Runtime) RuntimeSkillFiles ¶ added in v0.5.3
RuntimeSkillFiles 返回当前激活 Skill 包的安全文件清单。 隐藏文件、安装元数据和符号链接不会暴露给控制面。
func (*Runtime) RuntimeSkills ¶
func (*Runtime) RuntimeStatus ¶
func (*Runtime) RuntimeTasks ¶
type SessionStore ¶
func NewSessionStore ¶
func NewSessionStore() *SessionStore
type ToolDefinition ¶
type ToolDefinition struct {
Name string
Title string
Description string
FileArgRewritePaths []string
FileResultRewritePaths []string
InputSchema map[string]any
OutputSchema map[string]any
}
func ToolDefinitions ¶
func ToolDefinitions() []ToolDefinition
ToolDefinitions 只导出 MCP 层需要的描述和 schema,不暴露 handler。
type ToolError ¶
type ToolSpec ¶
type ToolSpec struct {
Name string
Title string
Description string
FileArgRewritePaths []string
FileResultRewritePaths []string
InputSchema func() map[string]any
OutputSchema func() map[string]any
Availability func(config.Config) bool
Handler ToolHandler
}
ToolSpec 是工具公开入口的单一事实源:运行时分发、MCP 描述、 配置开关都从这里派生,避免多处手写列表漂移。
Source Files
¶
- agentdock.go
- agentdock_context.go
- args.go
- bounded_file.go
- bounded_output.go
- browser.go
- command.go
- command_invocation.go
- command_runtime_other.go
- diff_preview.go
- dynamic_mcp.go
- edit_file.go
- errors.go
- file_edit.go
- file_publish.go
- file_runtime.go
- file_runtime_other.go
- file_snapshot.go
- file_snapshot_unix.go
- git.go
- git_actions.go
- git_parse.go
- git_repo.go
- git_unified.go
- github.go
- http_body.go
- ignore.go
- image.go
- image_return.go
- image_source.go
- memory.go
- memory_card.go
- memory_edit.go
- notes.go
- patch.go
- private_notes.go
- recall.go
- recall_paths.go
- redact.go
- rename_noreplace_linux.go
- runtime.go
- runtime_api.go
- runtime_skill_files.go
- schema_input.go
- schema_output.go
- scoped_env.go
- search.go
- skill_resource.go
- skill_tools.go
- specs.go
- task_manage.go
- text.go
- text_edit_prepare.go
- unified.go
- wsl_files_other.go
- wsl_patch_policy.go
Click to show internal directories.
Click to hide internal directories.