feat(bat): 补全工作流命令与人工校对状态
bat-rust / Build and test Rust (push) Canceled after 0s
bat-rust / Build and test Go API (push) Canceled after 0s

Refs #43
This commit is contained in:
2026-08-19 21:33:33 +08:00
parent 550ee7fd9a
commit 72c1a879a3
21 changed files with 797 additions and 41 deletions
+7 -1
View File
@@ -80,7 +80,7 @@ type rpcRequest struct {
JSONRPC string `json:"jsonrpc"`
ID uint64 `json:"id"`
Method string `json:"method"`
Params any `json:"params,omitempty"`
Params any `json:"params"`
}
type rpcResponse struct {
@@ -273,6 +273,12 @@ type TranslationTaskUpdateParams struct {
ProviderRunID string `json:"provider_run_id,omitempty"`
}
// TranslationProofread marks the current localized workflow as manual
// proofreading. Rust owns the persisted localized state.
func (c *Client) TranslationProofread(ctx context.Context) (json.RawMessage, error) {
return c.rawData(ctx, "translation.proofread", nil)
}
// Ack is returned by accepted daemon control methods.
type Ack struct {
Command string `json:"command"`