2025-09-06 01:26:54 +00:00
|
|
|
package main
|
|
|
|
|
|
|
|
|
|
type TextSpan struct {
|
2026-01-25 00:00:40 +00:00
|
|
|
Text string `json:"text"`
|
|
|
|
|
Pos int `json:"pos"`
|
|
|
|
|
Len int `json:"len"`
|
|
|
|
|
Append bool `json:"append"`
|
2025-09-06 01:26:54 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
type ProcessTextRequest struct {
|
|
|
|
|
Action string `json:"action"`
|
|
|
|
|
Input []TextSpan `json:"input"`
|
|
|
|
|
}
|
|
|
|
|
|
2026-01-25 00:00:40 +00:00
|
|
|
type ListProcessorsResponse struct {
|
|
|
|
|
Name string `json:"name"`
|
|
|
|
|
Label string `json:"label"`
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
type SetStatusbarMessage struct {
|
|
|
|
|
Message string `json:"message"`
|
|
|
|
|
Error bool `json:"error"`
|
|
|
|
|
}
|
|
|
|
|
|
2025-09-06 01:26:54 +00:00
|
|
|
type ProcessTextResponse struct {
|
|
|
|
|
Output []TextSpan `json:"output"`
|
|
|
|
|
}
|