taskPluginProtocolJSONValue encodes a task view for a hook, which receives it parsed from the text.
(view dto.TaskView)
| 1167 | // taskPluginProtocolJSONValue encodes a task view for a hook, which receives |
| 1168 | // it parsed from the text. |
| 1169 | func taskPluginProtocolJSONValue(view dto.TaskView) (any, error) { |
| 1170 | encoded, err := common.Marshal(view) |
| 1171 | if err != nil { |
| 1172 | return nil, err |
| 1173 | } |
| 1174 | return pluginruntime.RawJSON(encoded), nil |
| 1175 | } |
| 1176 | |
| 1177 | func taskPluginProtocolRendererContext( |
| 1178 | request pluginruntime.ProtocolRequestContext, |
no test coverage detected