feat(bsk): harden browser file transfer transactions

This commit is contained in:
Ljy-0827 committed 2026-08-21 16:31:47 +08:00
1 parent f9d395ee41
commit 9393f0e58b
24 files changed
+1398 -399

No files matched your search

+9
View File
@@ -37,10 +37,18 @@ export type RpcErrorReason =
| "file_input_not_activated"
| "set_file_input_failed"
| "download_capture_failed"
| "transfer_outcome_unknown"
| "transfer_timeout"
| "cleanup_failed";
export type TransferEffectState = "none" | "committed" | "unknown";
export type TransferCleanupState = "complete" | "failed";
export interface RpcErrorData {
reason?: RpcErrorReason;
effect_state?: TransferEffectState;
phase?: string;
cleanup_state?: TransferCleanupState;
[key: string]: unknown;
}
@@ -533,6 +541,7 @@ export interface DownloadParams {
tab_id?: number;
timeout_ms?: number;
browser_relative_dir?: string;
max_byte_size?: number;
}
export interface DownloadResult {