(ctx context.Context, data wshrpc.CommandWaveAIGetToolDiffData)
| 1300 | } |
| 1301 | |
| 1302 | func (ws *WshServer) WaveAIGetToolDiffCommand(ctx context.Context, data wshrpc.CommandWaveAIGetToolDiffData) (*wshrpc.CommandWaveAIGetToolDiffRtnData, error) { |
| 1303 | originalContent, modifiedContent, err := aiusechat.CreateWriteTextFileDiff(ctx, data.ChatId, data.ToolCallId) |
| 1304 | if err != nil { |
| 1305 | return nil, err |
| 1306 | } |
| 1307 | |
| 1308 | return &wshrpc.CommandWaveAIGetToolDiffRtnData{ |
| 1309 | OriginalContents64: base64.StdEncoding.EncodeToString(originalContent), |
| 1310 | ModifiedContents64: base64.StdEncoding.EncodeToString(modifiedContent), |
| 1311 | }, nil |
| 1312 | } |
| 1313 | |
| 1314 | var wshActivityRe = regexp.MustCompile(`^[a-z:#]+$`) |
| 1315 |
nothing calls this directly
no test coverage detected