RemotePlugin implements the plugins.Plugin interface by delegating execution to a remote ChatCLI server via gRPC.
| 18 | // RemotePlugin implements the plugins.Plugin interface by delegating execution |
| 19 | // to a remote ChatCLI server via gRPC. |
| 20 | type RemotePlugin struct { |
| 21 | name string |
| 22 | description string |
| 23 | usage string |
| 24 | version string |
| 25 | schema string |
| 26 | client *Client // gRPC client for remote execution |
| 27 | } |
| 28 | |
| 29 | // NewRemotePlugin creates a RemotePlugin from server-provided metadata. |
| 30 | func NewRemotePlugin(info *pb.PluginInfo, client *Client) *RemotePlugin { |
nothing calls this directly
no outgoing calls
no test coverage detected