Files
synapbus/internal/actions/types.go
T
Algis DumbrisandClaude Opus 4.6 fe8928a7fc refactor: consolidate 30 MCP tools into 4 hybrid tools (my_status, search, execute, send_message)
- JS/TS execution engine (goja + esbuild) with sandboxed runtime and call() bridge
- BM25 action discovery index over 23 registered actions
- ServiceBridge mapping call() invocations to existing service methods
- Admin CLI subcommands for webhook/k8s/gc operations
- Pagination support (offset/limit) in read_inbox, search_messages, get_channel_messages
- Fixed test assertions for call() envelope structure {ok, result}

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-03-15 08:29:37 +02:00

27 lines
894 B
Go

package actions
// Action represents a callable operation in the system.
type Action struct {
Name string `json:"name"`
Category string `json:"category"` // messaging, channels, swarm, attachments
Description string `json:"description"`
Params []Param `json:"params"`
Returns string `json:"returns"` // Human-readable return description
Examples []Example `json:"examples"`
}
// Param describes an action parameter.
type Param struct {
Name string `json:"name"`
Type string `json:"type"` // string, number, boolean
Description string `json:"description"`
Required bool `json:"required"`
Default string `json:"default,omitempty"`
}
// Example shows a usage example for the action.
type Example struct {
Description string `json:"description"`
Code string `json:"code"` // JS code example using call()
}