fc644ecd6e
Reemplaza el scaffold del echobot por la plataforma completa de bots traida desde ~/DataProyects/Github/agents_and_robots tras la operacion Matrix-out: los bots ya no hablan por Matrix sino por el bus unibus (modelo todo-rooms + E2E via shell/transportunibus sobre github.com/enmanuel/unibus/pkg/client). - go.mod: replace de unibus -> ../unibus y de fn-registry -> ../../../.. (paths relativos reajustados a la nueva ubicacion dentro de fn_registry). - app.md: bump a 0.2.0, descripcion + arquitectura + comandos + gotchas reales. - modulo Go conservado como github.com/enmanuel/agents (sin reescribir imports). agents_and_robots queda archivado como museo de la era Matrix.
38 lines
826 B
Go
38 lines
826 B
Go
package tools
|
|
|
|
// SSHCommandSpec describes an SSH command to execute. Pure data — no execution.
|
|
type SSHCommandSpec struct {
|
|
Target string // references a named target in ssh config
|
|
Command string
|
|
Timeout string
|
|
}
|
|
|
|
// HTTPCallSpec describes an HTTP call to make. Pure data.
|
|
type HTTPCallSpec struct {
|
|
Method string
|
|
URL string
|
|
Headers map[string]string
|
|
Body string
|
|
Timeout string
|
|
}
|
|
|
|
// ScriptSpec describes a script to run. Pure data.
|
|
type ScriptSpec struct {
|
|
Name string
|
|
Args []string
|
|
Timeout string
|
|
}
|
|
|
|
// FileOpsSpec describes a file operation. Pure data.
|
|
type FileOpsSpec struct {
|
|
Op string // read | write | list | delete
|
|
Path string
|
|
}
|
|
|
|
// MCPCallSpec describes a call to an MCP server. Pure data.
|
|
type MCPCallSpec struct {
|
|
ServerName string
|
|
ToolName string
|
|
Arguments map[string]any
|
|
}
|